@sentry/mcp-server 0.12.0 → 0.14.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 (570) hide show
  1. package/README.md +19 -4
  2. package/dist/analyze-issue-with-seer-BsNarzJN.js +163 -0
  3. package/dist/analyze-issue-with-seer-BsNarzJN.js.map +1 -0
  4. package/dist/analyze-issue-with-seer-DbAWpyTC.cjs +169 -0
  5. package/dist/analyze-issue-with-seer-DbAWpyTC.cjs.map +1 -0
  6. package/dist/api-client/client.cjs +2 -2
  7. package/dist/api-client/client.d.cts +3 -3
  8. package/dist/api-client/client.d.ts +3 -3
  9. package/dist/api-client/client.js +2 -2
  10. package/dist/api-client/index.cjs +9 -2
  11. package/dist/api-client/index.d.cts +4 -4
  12. package/dist/api-client/index.d.ts +5 -5
  13. package/dist/api-client/index.js +5 -5
  14. package/dist/api-client/schema.cjs +8 -1
  15. package/dist/api-client/schema.d.cts +2 -2
  16. package/dist/api-client/schema.d.ts +2 -2
  17. package/dist/api-client/schema.js +2 -2
  18. package/dist/api-client/types.d.cts +3 -3
  19. package/dist/api-client/types.d.ts +3 -3
  20. package/dist/api-client/types.js +1 -1
  21. package/dist/api-utils-C6QJAzFL.js +31 -0
  22. package/dist/api-utils-C6QJAzFL.js.map +1 -0
  23. package/dist/api-utils-d36iteNO.cjs +36 -0
  24. package/dist/api-utils-d36iteNO.cjs.map +1 -0
  25. package/dist/{client-4jq_wVgn.d.ts → client-BCN17Wbp.d.ts} +43 -11
  26. package/dist/client-BCN17Wbp.d.ts.map +1 -0
  27. package/dist/{client-DkY0ifZf.d.cts → client-CILwfx6G.d.cts} +43 -11
  28. package/dist/client-CILwfx6G.d.cts.map +1 -0
  29. package/dist/{client-CAoHZbyK.js → client-DOYWNvVM.js} +75 -18
  30. package/dist/client-DOYWNvVM.js.map +1 -0
  31. package/dist/{client-B7vZ6JMk.cjs → client-Dkw5iYu3.cjs} +75 -18
  32. package/dist/client-Dkw5iYu3.cjs.map +1 -0
  33. package/dist/constants-ClkMK29-.cjs +182 -0
  34. package/dist/constants-ClkMK29-.cjs.map +1 -0
  35. package/dist/constants-S7AU45oQ.js +164 -0
  36. package/dist/constants-S7AU45oQ.js.map +1 -0
  37. package/dist/constants.cjs +5 -0
  38. package/dist/constants.d.cts +23 -0
  39. package/dist/constants.d.cts.map +1 -0
  40. package/dist/constants.d.ts +23 -0
  41. package/dist/constants.d.ts.map +1 -0
  42. package/dist/constants.js +3 -0
  43. package/dist/create-dsn-CDcL2DLD.js +59 -0
  44. package/dist/create-dsn-CDcL2DLD.js.map +1 -0
  45. package/dist/create-dsn-fESUtX3R.cjs +65 -0
  46. package/dist/create-dsn-fESUtX3R.cjs.map +1 -0
  47. package/dist/create-project-Bg5uDkc4.cjs +82 -0
  48. package/dist/create-project-Bg5uDkc4.cjs.map +1 -0
  49. package/dist/create-project-DY5mFznV.js +76 -0
  50. package/dist/create-project-DY5mFznV.js.map +1 -0
  51. package/dist/create-team-5purh64V.cjs +53 -0
  52. package/dist/create-team-5purh64V.cjs.map +1 -0
  53. package/dist/create-team-C2R7EUC3.js +47 -0
  54. package/dist/create-team-C2R7EUC3.js.map +1 -0
  55. package/dist/defineTool-77H4nSna.js +8 -0
  56. package/dist/defineTool-77H4nSna.js.map +1 -0
  57. package/dist/defineTool-lWNTzWl_.cjs +14 -0
  58. package/dist/defineTool-lWNTzWl_.cjs.map +1 -0
  59. package/dist/{errors-BJSrT6Ou.js → errors-CIoxzIug.js} +1 -1
  60. package/dist/{errors-BJSrT6Ou.js.map → errors-CIoxzIug.js.map} +1 -1
  61. package/dist/{errors-B9fwS-aP.cjs → errors-YmiXLOyx.cjs} +1 -1
  62. package/dist/{errors-B9fwS-aP.cjs.map → errors-YmiXLOyx.cjs.map} +1 -1
  63. package/dist/errors.cjs +1 -1
  64. package/dist/errors.js +1 -1
  65. package/dist/fetch-utils-BMKjO-cc.js +29 -0
  66. package/dist/fetch-utils-BMKjO-cc.js.map +1 -0
  67. package/dist/fetch-utils-Bv9WjUp0.d.ts +14 -0
  68. package/dist/fetch-utils-Bv9WjUp0.d.ts.map +1 -0
  69. package/dist/fetch-utils-DlPjrSk2.js +0 -0
  70. package/dist/fetch-utils-DzdRW4Yd.d.cts +14 -0
  71. package/dist/fetch-utils-DzdRW4Yd.d.cts.map +1 -0
  72. package/dist/fetch-utils-oab6uNp3.cjs +35 -0
  73. package/dist/fetch-utils-oab6uNp3.cjs.map +1 -0
  74. package/dist/find-dsns-CvfcLB9Z.js +52 -0
  75. package/dist/find-dsns-CvfcLB9Z.js.map +1 -0
  76. package/dist/find-dsns-ZZ-thiNk.cjs +58 -0
  77. package/dist/find-dsns-ZZ-thiNk.cjs.map +1 -0
  78. package/dist/find-errors-CuRm4PzL.js +91 -0
  79. package/dist/find-errors-CuRm4PzL.js.map +1 -0
  80. package/dist/find-errors-Drzv7hzM.cjs +97 -0
  81. package/dist/find-errors-Drzv7hzM.cjs.map +1 -0
  82. package/dist/find-issues-C3uk59rn.cjs +98 -0
  83. package/dist/find-issues-C3uk59rn.cjs.map +1 -0
  84. package/dist/find-issues-CAtNGBly.js +92 -0
  85. package/dist/find-issues-CAtNGBly.js.map +1 -0
  86. package/dist/find-organizations-BrdMfZRO.cjs +50 -0
  87. package/dist/find-organizations-BrdMfZRO.cjs.map +1 -0
  88. package/dist/find-organizations-ojXwWWzk.js +45 -0
  89. package/dist/find-organizations-ojXwWWzk.js.map +1 -0
  90. package/dist/find-projects-BZWhlYJh.cjs +45 -0
  91. package/dist/find-projects-BZWhlYJh.cjs.map +1 -0
  92. package/dist/find-projects-fcLG4KpT.js +39 -0
  93. package/dist/find-projects-fcLG4KpT.js.map +1 -0
  94. package/dist/find-releases-BUozr0Z-.js +93 -0
  95. package/dist/find-releases-BUozr0Z-.js.map +1 -0
  96. package/dist/find-releases-CZCVEOHZ.cjs +99 -0
  97. package/dist/find-releases-CZCVEOHZ.cjs.map +1 -0
  98. package/dist/find-tags-Byk4d3oZ.cjs +45 -0
  99. package/dist/find-tags-Byk4d3oZ.cjs.map +1 -0
  100. package/dist/find-tags-d-wF1Se8.js +39 -0
  101. package/dist/find-tags-d-wF1Se8.js.map +1 -0
  102. package/dist/find-teams-BZ118EIK.js +39 -0
  103. package/dist/find-teams-BZ118EIK.js.map +1 -0
  104. package/dist/find-teams-CnU5x9rQ.cjs +45 -0
  105. package/dist/find-teams-CnU5x9rQ.cjs.map +1 -0
  106. package/dist/find-transactions-DIJ80wkd.cjs +89 -0
  107. package/dist/find-transactions-DIJ80wkd.cjs.map +1 -0
  108. package/dist/find-transactions-DZCj81jP.js +83 -0
  109. package/dist/find-transactions-DZCj81jP.js.map +1 -0
  110. package/dist/formatting-BlMiQa9i.cjs +388 -0
  111. package/dist/formatting-BlMiQa9i.cjs.map +1 -0
  112. package/dist/formatting-CHh9Q_OW.d.cts +47 -0
  113. package/dist/formatting-CHh9Q_OW.d.cts.map +1 -0
  114. package/dist/formatting-kdIeURER.d.ts +47 -0
  115. package/dist/formatting-kdIeURER.d.ts.map +1 -0
  116. package/dist/formatting-pUm38KOj.js +370 -0
  117. package/dist/formatting-pUm38KOj.js.map +1 -0
  118. package/dist/formatting-utils-C3sej5ER.js +14 -0
  119. package/dist/formatting-utils-C3sej5ER.js.map +1 -0
  120. package/dist/formatting-utils-DDz14xeB.cjs +20 -0
  121. package/dist/formatting-utils-DDz14xeB.cjs.map +1 -0
  122. package/dist/get-doc-DaTCenOE.cjs +86 -0
  123. package/dist/get-doc-DaTCenOE.cjs.map +1 -0
  124. package/dist/get-doc-YTiQznr1.js +80 -0
  125. package/dist/get-doc-YTiQznr1.js.map +1 -0
  126. package/dist/get-event-attachment-ChRw3jlQ.cjs +144 -0
  127. package/dist/get-event-attachment-ChRw3jlQ.cjs.map +1 -0
  128. package/dist/get-event-attachment-CuU-_5T6.js +138 -0
  129. package/dist/get-event-attachment-CuU-_5T6.js.map +1 -0
  130. package/dist/get-issue-details-CxChU4U9.js +104 -0
  131. package/dist/get-issue-details-CxChU4U9.js.map +1 -0
  132. package/dist/get-issue-details-DFwZRbmU.cjs +110 -0
  133. package/dist/get-issue-details-DFwZRbmU.cjs.map +1 -0
  134. package/dist/index.cjs +73 -23
  135. package/dist/index.cjs.map +1 -1
  136. package/dist/index.js +75 -25
  137. package/dist/index.js.map +1 -1
  138. package/dist/internal/fetch-utils.cjs +3 -0
  139. package/dist/internal/fetch-utils.d.cts +2 -0
  140. package/dist/internal/fetch-utils.d.ts +2 -0
  141. package/dist/internal/fetch-utils.js +3 -0
  142. package/dist/internal/formatting.cjs +1 -1
  143. package/dist/internal/formatting.d.cts +5 -25
  144. package/dist/internal/formatting.d.ts +6 -26
  145. package/dist/internal/formatting.js +1 -1
  146. package/dist/internal/issue-helpers.cjs +1 -1
  147. package/dist/internal/issue-helpers.d.cts +2 -52
  148. package/dist/internal/issue-helpers.d.ts +2 -52
  149. package/dist/internal/issue-helpers.js +1 -1
  150. package/dist/internal/test-fixtures.cjs +214 -0
  151. package/dist/internal/test-fixtures.cjs.map +1 -0
  152. package/dist/internal/test-fixtures.d.cts +2138 -0
  153. package/dist/internal/test-fixtures.d.cts.map +1 -0
  154. package/dist/internal/test-fixtures.d.ts +2138 -0
  155. package/dist/internal/test-fixtures.d.ts.map +1 -0
  156. package/dist/internal/test-fixtures.js +205 -0
  157. package/dist/internal/test-fixtures.js.map +1 -0
  158. package/dist/issue-helpers-BJffpNoO.d.ts +52 -0
  159. package/dist/issue-helpers-BJffpNoO.d.ts.map +1 -0
  160. package/dist/{issue-helpers-BMVLc3mR.js → issue-helpers-CqqYnwYE.js} +1 -1
  161. package/dist/{issue-helpers-BMVLc3mR.js.map → issue-helpers-CqqYnwYE.js.map} +1 -1
  162. package/dist/issue-helpers-Cz01Ipvl.d.cts +52 -0
  163. package/dist/issue-helpers-Cz01Ipvl.d.cts.map +1 -0
  164. package/dist/{issue-helpers-D712fGT2.cjs → issue-helpers-DyAIO0w6.cjs} +1 -1
  165. package/dist/{issue-helpers-D712fGT2.cjs.map → issue-helpers-DyAIO0w6.cjs.map} +1 -1
  166. package/dist/issue-utils-BVAB6I-Z.js +0 -0
  167. package/dist/issue-utils-pdbo-5LW.cjs +0 -0
  168. package/dist/{logging-CXLD0FFB.js → logging-LnQMFw-_.js} +1 -1
  169. package/dist/{logging-CXLD0FFB.js.map → logging-LnQMFw-_.js.map} +1 -1
  170. package/dist/{logging-ByvSjT6V.cjs → logging-oIouXrcb.cjs} +1 -1
  171. package/dist/{logging-ByvSjT6V.cjs.map → logging-oIouXrcb.cjs.map} +1 -1
  172. package/dist/logging.cjs +1 -1
  173. package/dist/logging.js +1 -1
  174. package/dist/{promptDefinitions-BTLIBcGt.cjs → promptDefinitions-C29BWGYg.cjs} +4 -4
  175. package/dist/promptDefinitions-C29BWGYg.cjs.map +1 -0
  176. package/dist/{promptDefinitions-D8yow1m0.js → promptDefinitions-CSKE8T0a.js} +4 -4
  177. package/dist/{promptDefinitions-D8yow1m0.js.map → promptDefinitions-CSKE8T0a.js.map} +1 -1
  178. package/dist/{promptDefinitions-CF2VWdQ6.d.cts → promptDefinitions-CVHtYaj8.d.cts} +3 -3
  179. package/dist/promptDefinitions-CVHtYaj8.d.cts.map +1 -0
  180. package/dist/{promptDefinitions-D5FSQckL.d.ts → promptDefinitions-D3GTBGLr.d.ts} +3 -3
  181. package/dist/promptDefinitions-D3GTBGLr.d.ts.map +1 -0
  182. package/dist/promptDefinitions.cjs +3 -2
  183. package/dist/promptDefinitions.d.cts +1 -1
  184. package/dist/promptDefinitions.d.ts +1 -1
  185. package/dist/promptDefinitions.js +3 -2
  186. package/dist/{prompts-Dt3A8Qfl.js → prompts-C8Y9w5c4.js} +7 -7
  187. package/dist/{prompts-Dt3A8Qfl.js.map → prompts-C8Y9w5c4.js.map} +1 -1
  188. package/dist/{prompts-CDbQrutV.cjs → prompts-Df3i1XSB.cjs} +7 -7
  189. package/dist/{prompts-CDbQrutV.cjs.map → prompts-Df3i1XSB.cjs.map} +1 -1
  190. package/dist/prompts.cjs +2 -2
  191. package/dist/prompts.d.cts +4 -5
  192. package/dist/prompts.d.cts.map +1 -1
  193. package/dist/prompts.d.ts +4 -5
  194. package/dist/prompts.d.ts.map +1 -1
  195. package/dist/prompts.js +2 -2
  196. package/dist/resources-BHF8a1ZB.js +92 -0
  197. package/dist/resources-BHF8a1ZB.js.map +1 -0
  198. package/dist/resources-BM_YQGcb.cjs +104 -0
  199. package/dist/resources-BM_YQGcb.cjs.map +1 -0
  200. package/dist/resources.cjs +5 -2
  201. package/dist/resources.d.cts +26 -12
  202. package/dist/resources.d.cts.map +1 -1
  203. package/dist/resources.d.ts +26 -12
  204. package/dist/resources.d.ts.map +1 -1
  205. package/dist/resources.js +4 -2
  206. package/dist/{schema-BnxGHL_i.d.ts → schema--5m4KI84.d.ts} +3678 -619
  207. package/dist/schema--5m4KI84.d.ts.map +1 -0
  208. package/dist/{schema-BsvGMALe.cjs → schema-B_cMyyJJ.cjs} +94 -8
  209. package/dist/schema-B_cMyyJJ.cjs.map +1 -0
  210. package/dist/{schema-BTfISwFu.cjs → schema-BpJVmev8.cjs} +23 -1
  211. package/dist/{schema-Dv6aLZgz.js.map → schema-BpJVmev8.cjs.map} +1 -1
  212. package/dist/{schema-Dv6aLZgz.js → schema-DtsnsxMl.js} +6 -2
  213. package/dist/schema-DtsnsxMl.js.map +1 -0
  214. package/dist/{schema-C_hp0BR7.js → schema-WDk5Yqww.js} +53 -9
  215. package/dist/schema-WDk5Yqww.js.map +1 -0
  216. package/dist/{schema-BJv7kREf.d.cts → schema-ya35hkEL.d.cts} +3614 -555
  217. package/dist/schema-ya35hkEL.d.cts.map +1 -0
  218. package/dist/schema.cjs +5 -1
  219. package/dist/schema.d.cts +4 -1
  220. package/dist/schema.d.cts.map +1 -1
  221. package/dist/schema.d.ts +4 -1
  222. package/dist/schema.d.ts.map +1 -1
  223. package/dist/schema.js +3 -2
  224. package/dist/search-docs-BLbB_GV2.js +102 -0
  225. package/dist/search-docs-BLbB_GV2.js.map +1 -0
  226. package/dist/search-docs-D5Foht_0.cjs +108 -0
  227. package/dist/search-docs-D5Foht_0.cjs.map +1 -0
  228. package/dist/seer-utils-Ckr8nYlz.js +87 -0
  229. package/dist/seer-utils-Ckr8nYlz.js.map +1 -0
  230. package/dist/seer-utils-CzYEEZb2.cjs +129 -0
  231. package/dist/seer-utils-CzYEEZb2.cjs.map +1 -0
  232. package/dist/{server-DeutbO8v.cjs → server-BpEIZVaZ.cjs} +104 -57
  233. package/dist/server-BpEIZVaZ.cjs.map +1 -0
  234. package/dist/{server-C7cHq_pc.js → server-DOy-M9Ko.js} +104 -57
  235. package/dist/server-DOy-M9Ko.js.map +1 -0
  236. package/dist/server.cjs +40 -13
  237. package/dist/server.d.cts +2 -3
  238. package/dist/server.d.cts.map +1 -1
  239. package/dist/server.d.ts +2 -3
  240. package/dist/server.d.ts.map +1 -1
  241. package/dist/server.js +42 -15
  242. package/dist/{stdio-ZQLC-i5Q.js → stdio-B2NDq7Ax.js} +17 -7
  243. package/dist/stdio-B2NDq7Ax.js.map +1 -0
  244. package/dist/{stdio-B73CCTly.cjs → stdio-DMEgJ_fG.cjs} +17 -7
  245. package/dist/stdio-DMEgJ_fG.cjs.map +1 -0
  246. package/dist/test-setup.cjs +1420 -1230
  247. package/dist/test-setup.cjs.map +1 -1
  248. package/dist/test-setup.js +1262 -1045
  249. package/dist/test-setup.js.map +1 -1
  250. package/dist/toolDefinitions.d.ts +25 -2
  251. package/dist/toolDefinitions.js +1059 -4
  252. package/dist/tools/analyze-issue-with-seer.cjs +16 -0
  253. package/dist/tools/analyze-issue-with-seer.d.cts +16 -0
  254. package/dist/tools/analyze-issue-with-seer.d.cts.map +1 -0
  255. package/dist/tools/analyze-issue-with-seer.d.ts +16 -0
  256. package/dist/tools/analyze-issue-with-seer.d.ts.map +1 -0
  257. package/dist/tools/analyze-issue-with-seer.js +16 -0
  258. package/dist/tools/create-dsn.cjs +12 -0
  259. package/dist/tools/create-dsn.d.cts +15 -0
  260. package/dist/tools/create-dsn.d.cts.map +1 -0
  261. package/dist/tools/create-dsn.d.ts +15 -0
  262. package/dist/tools/create-dsn.d.ts.map +1 -0
  263. package/dist/tools/create-dsn.js +12 -0
  264. package/dist/tools/create-project.cjs +13 -0
  265. package/dist/tools/create-project.d.cts +16 -0
  266. package/dist/tools/create-project.d.cts.map +1 -0
  267. package/dist/tools/create-project.d.ts +16 -0
  268. package/dist/tools/create-project.d.ts.map +1 -0
  269. package/dist/tools/create-project.js +13 -0
  270. package/dist/tools/create-team.cjs +12 -0
  271. package/dist/tools/create-team.d.cts +14 -0
  272. package/dist/tools/create-team.d.cts.map +1 -0
  273. package/dist/tools/create-team.d.ts +14 -0
  274. package/dist/tools/create-team.d.ts.map +1 -0
  275. package/dist/tools/create-team.js +12 -0
  276. package/dist/tools/find-dsns.cjs +12 -0
  277. package/dist/tools/find-dsns.d.cts +14 -0
  278. package/dist/tools/find-dsns.d.cts.map +1 -0
  279. package/dist/tools/find-dsns.d.ts +14 -0
  280. package/dist/tools/find-dsns.d.ts.map +1 -0
  281. package/dist/tools/find-dsns.js +12 -0
  282. package/dist/tools/find-errors.cjs +12 -0
  283. package/dist/tools/find-errors.d.cts +18 -0
  284. package/dist/tools/find-errors.d.cts.map +1 -0
  285. package/dist/tools/find-errors.d.ts +18 -0
  286. package/dist/tools/find-errors.d.ts.map +1 -0
  287. package/dist/tools/find-errors.js +12 -0
  288. package/dist/tools/find-issues.cjs +12 -0
  289. package/dist/tools/find-issues.d.cts +16 -0
  290. package/dist/tools/find-issues.d.cts.map +1 -0
  291. package/dist/tools/find-issues.d.ts +16 -0
  292. package/dist/tools/find-issues.d.ts.map +1 -0
  293. package/dist/tools/find-issues.js +12 -0
  294. package/dist/tools/find-organizations.cjs +10 -0
  295. package/dist/tools/find-organizations.d.cts +9 -0
  296. package/dist/tools/find-organizations.d.cts.map +1 -0
  297. package/dist/tools/find-organizations.d.ts +9 -0
  298. package/dist/tools/find-organizations.d.ts.map +1 -0
  299. package/dist/tools/find-organizations.js +10 -0
  300. package/dist/tools/find-projects.cjs +12 -0
  301. package/dist/tools/find-projects.d.cts +13 -0
  302. package/dist/tools/find-projects.d.cts.map +1 -0
  303. package/dist/tools/find-projects.d.ts +13 -0
  304. package/dist/tools/find-projects.d.ts.map +1 -0
  305. package/dist/tools/find-projects.js +12 -0
  306. package/dist/tools/find-releases.cjs +12 -0
  307. package/dist/tools/find-releases.d.cts +15 -0
  308. package/dist/tools/find-releases.d.cts.map +1 -0
  309. package/dist/tools/find-releases.d.ts +15 -0
  310. package/dist/tools/find-releases.d.ts.map +1 -0
  311. package/dist/tools/find-releases.js +12 -0
  312. package/dist/tools/find-tags.cjs +12 -0
  313. package/dist/tools/find-tags.d.cts +13 -0
  314. package/dist/tools/find-tags.d.cts.map +1 -0
  315. package/dist/tools/find-tags.d.ts +13 -0
  316. package/dist/tools/find-tags.d.ts.map +1 -0
  317. package/dist/tools/find-tags.js +12 -0
  318. package/dist/tools/find-teams.cjs +12 -0
  319. package/dist/tools/find-teams.d.cts +13 -0
  320. package/dist/tools/find-teams.d.cts.map +1 -0
  321. package/dist/tools/find-teams.d.ts +13 -0
  322. package/dist/tools/find-teams.d.ts.map +1 -0
  323. package/dist/tools/find-teams.js +12 -0
  324. package/dist/tools/find-transactions.cjs +12 -0
  325. package/dist/tools/find-transactions.d.cts +17 -0
  326. package/dist/tools/find-transactions.d.cts.map +1 -0
  327. package/dist/tools/find-transactions.d.ts +17 -0
  328. package/dist/tools/find-transactions.d.ts.map +1 -0
  329. package/dist/tools/find-transactions.js +12 -0
  330. package/dist/tools/get-doc.cjs +11 -0
  331. package/dist/tools/get-doc.d.cts +12 -0
  332. package/dist/tools/get-doc.d.cts.map +1 -0
  333. package/dist/tools/get-doc.d.ts +12 -0
  334. package/dist/tools/get-doc.d.ts.map +1 -0
  335. package/dist/tools/get-doc.js +11 -0
  336. package/dist/tools/get-event-attachment.cjs +12 -0
  337. package/dist/tools/get-event-attachment.d.cts +16 -0
  338. package/dist/tools/get-event-attachment.d.cts.map +1 -0
  339. package/dist/tools/get-event-attachment.d.ts +16 -0
  340. package/dist/tools/get-event-attachment.d.ts.map +1 -0
  341. package/dist/tools/get-event-attachment.js +12 -0
  342. package/dist/tools/get-issue-details.cjs +15 -0
  343. package/dist/tools/get-issue-details.d.cts +16 -0
  344. package/dist/tools/get-issue-details.d.cts.map +1 -0
  345. package/dist/tools/get-issue-details.d.ts +16 -0
  346. package/dist/tools/get-issue-details.d.ts.map +1 -0
  347. package/dist/tools/get-issue-details.js +15 -0
  348. package/dist/tools/index.cjs +40 -0
  349. package/dist/tools/index.d.cts +127 -0
  350. package/dist/tools/index.d.cts.map +1 -0
  351. package/dist/tools/index.d.ts +127 -0
  352. package/dist/tools/index.d.ts.map +1 -0
  353. package/dist/tools/index.js +40 -0
  354. package/dist/tools/search-docs.cjs +12 -0
  355. package/dist/tools/search-docs.d.cts +14 -0
  356. package/dist/tools/search-docs.d.cts.map +1 -0
  357. package/dist/tools/search-docs.d.ts +14 -0
  358. package/dist/tools/search-docs.d.ts.map +1 -0
  359. package/dist/tools/search-docs.js +12 -0
  360. package/dist/tools/types.cjs +0 -0
  361. package/dist/tools/types.d.cts +4 -0
  362. package/dist/tools/types.d.ts +4 -0
  363. package/dist/tools/types.js +0 -0
  364. package/dist/tools/update-issue.cjs +16 -0
  365. package/dist/tools/update-issue.d.cts +17 -0
  366. package/dist/tools/update-issue.d.cts.map +1 -0
  367. package/dist/tools/update-issue.d.ts +17 -0
  368. package/dist/tools/update-issue.d.ts.map +1 -0
  369. package/dist/tools/update-issue.js +16 -0
  370. package/dist/tools/update-project.cjs +13 -0
  371. package/dist/tools/update-project.d.cts +18 -0
  372. package/dist/tools/update-project.d.cts.map +1 -0
  373. package/dist/tools/update-project.d.ts +18 -0
  374. package/dist/tools/update-project.d.ts.map +1 -0
  375. package/dist/tools/update-project.js +13 -0
  376. package/dist/tools/utils/api-utils.cjs +8 -0
  377. package/dist/tools/utils/api-utils.d.cts +24 -0
  378. package/dist/tools/utils/api-utils.d.cts.map +1 -0
  379. package/dist/tools/utils/api-utils.d.ts +24 -0
  380. package/dist/tools/utils/api-utils.d.ts.map +1 -0
  381. package/dist/tools/utils/api-utils.js +8 -0
  382. package/dist/tools/utils/defineTool.cjs +3 -0
  383. package/dist/tools/utils/defineTool.d.cts +12 -0
  384. package/dist/tools/utils/defineTool.d.cts.map +1 -0
  385. package/dist/tools/utils/defineTool.d.ts +12 -0
  386. package/dist/tools/utils/defineTool.d.ts.map +1 -0
  387. package/dist/tools/utils/defineTool.js +3 -0
  388. package/dist/tools/utils/fetch-utils.cjs +4 -0
  389. package/dist/tools/utils/fetch-utils.d.cts +2 -0
  390. package/dist/tools/utils/fetch-utils.d.ts +2 -0
  391. package/dist/tools/utils/fetch-utils.js +4 -0
  392. package/dist/tools/utils/formatting-utils.cjs +3 -0
  393. package/dist/tools/utils/formatting-utils.d.cts +15 -0
  394. package/dist/tools/utils/formatting-utils.d.cts.map +1 -0
  395. package/dist/tools/utils/formatting-utils.d.ts +15 -0
  396. package/dist/tools/utils/formatting-utils.d.ts.map +1 -0
  397. package/dist/tools/utils/formatting-utils.js +3 -0
  398. package/dist/tools/utils/issue-utils.cjs +6 -0
  399. package/dist/tools/utils/issue-utils.d.cts +7 -0
  400. package/dist/tools/utils/issue-utils.d.ts +7 -0
  401. package/dist/tools/utils/issue-utils.js +5 -0
  402. package/dist/tools/utils/seer-utils.cjs +9 -0
  403. package/dist/tools/utils/seer-utils.d.cts +28 -0
  404. package/dist/tools/utils/seer-utils.d.cts.map +1 -0
  405. package/dist/tools/utils/seer-utils.d.ts +28 -0
  406. package/dist/tools/utils/seer-utils.d.ts.map +1 -0
  407. package/dist/tools/utils/seer-utils.js +3 -0
  408. package/dist/tools/whoami.cjs +10 -0
  409. package/dist/tools/whoami.d.cts +9 -0
  410. package/dist/tools/whoami.d.cts.map +1 -0
  411. package/dist/tools/whoami.d.ts +9 -0
  412. package/dist/tools/whoami.d.ts.map +1 -0
  413. package/dist/tools/whoami.js +10 -0
  414. package/dist/tools-19Ms1kck.cjs +53 -0
  415. package/dist/tools-19Ms1kck.cjs.map +1 -0
  416. package/dist/tools-mThAUo_3.js +48 -0
  417. package/dist/tools-mThAUo_3.js.map +1 -0
  418. package/dist/transports/stdio.cjs +42 -14
  419. package/dist/transports/stdio.d.cts +2 -3
  420. package/dist/transports/stdio.d.cts.map +1 -1
  421. package/dist/transports/stdio.d.ts +2 -3
  422. package/dist/transports/stdio.d.ts.map +1 -1
  423. package/dist/transports/stdio.js +44 -16
  424. package/dist/{types-NIQW7KyF.d.cts → types-Bg17IGWJ.d.cts} +5 -3
  425. package/dist/types-Bg17IGWJ.d.cts.map +1 -0
  426. package/dist/types-CCHsZshF.js +0 -0
  427. package/dist/types-CUN-2OSS.d.cts +29 -0
  428. package/dist/types-CUN-2OSS.d.cts.map +1 -0
  429. package/dist/{types-Daq2fm0E.d.ts → types-CtTBwGbw.d.ts} +5 -3
  430. package/dist/types-CtTBwGbw.d.ts.map +1 -0
  431. package/dist/types-D_mx318Q.d.cts +29 -0
  432. package/dist/types-D_mx318Q.d.cts.map +1 -0
  433. package/dist/types-DkJtNDXU.d.ts +29 -0
  434. package/dist/types-DkJtNDXU.d.ts.map +1 -0
  435. package/dist/types-qB8a4WQT.d.ts +29 -0
  436. package/dist/types-qB8a4WQT.d.ts.map +1 -0
  437. package/dist/types.d.cts +3 -4
  438. package/dist/types.d.ts +3 -4
  439. package/dist/update-issue-B6eZhAPJ.cjs +115 -0
  440. package/dist/update-issue-B6eZhAPJ.cjs.map +1 -0
  441. package/dist/update-issue-DmLElHPS.js +109 -0
  442. package/dist/update-issue-DmLElHPS.js.map +1 -0
  443. package/dist/update-project-BNPev7W8.js +120 -0
  444. package/dist/update-project-BNPev7W8.js.map +1 -0
  445. package/dist/update-project-CijYCtG1.cjs +126 -0
  446. package/dist/update-project-CijYCtG1.cjs.map +1 -0
  447. package/dist/url-utils-C9hykWmk.cjs +106 -0
  448. package/dist/url-utils-C9hykWmk.cjs.map +1 -0
  449. package/dist/url-utils-DvZYfzPM.js +82 -0
  450. package/dist/url-utils-DvZYfzPM.js.map +1 -0
  451. package/dist/utils/url-utils.cjs +6 -0
  452. package/dist/utils/url-utils.d.cts +37 -0
  453. package/dist/utils/url-utils.d.cts.map +1 -0
  454. package/dist/utils/url-utils.d.ts +37 -0
  455. package/dist/utils/url-utils.d.ts.map +1 -0
  456. package/dist/utils/url-utils.js +3 -0
  457. package/dist/version-C4uvMmw0.js +6 -0
  458. package/dist/version-C4uvMmw0.js.map +1 -0
  459. package/dist/{version-BNmubeQI.cjs → version-Ddz4xg_q.cjs} +2 -2
  460. package/dist/version-Ddz4xg_q.cjs.map +1 -0
  461. package/dist/version.cjs +1 -1
  462. package/dist/version.js +1 -1
  463. package/dist/whoami-CEgbTUqt.cjs +28 -0
  464. package/dist/whoami-CEgbTUqt.cjs.map +1 -0
  465. package/dist/whoami-DesNZnaQ.js +23 -0
  466. package/dist/whoami-DesNZnaQ.js.map +1 -0
  467. package/package.json +24 -14
  468. package/dist/api-client/client.test.cjs +0 -33
  469. package/dist/api-client/client.test.cjs.map +0 -1
  470. package/dist/api-client/client.test.d.ts +0 -1
  471. package/dist/api-client/client.test.js +0 -33
  472. package/dist/api-client/client.test.js.map +0 -1
  473. package/dist/chunk-BLXvPPr8.js +0 -30
  474. package/dist/client-4jq_wVgn.d.ts.map +0 -1
  475. package/dist/client-B7vZ6JMk.cjs.map +0 -1
  476. package/dist/client-CAoHZbyK.js.map +0 -1
  477. package/dist/client-DkY0ifZf.d.cts.map +0 -1
  478. package/dist/dist-BlIWGSIM.cjs +0 -8197
  479. package/dist/dist-BlIWGSIM.cjs.map +0 -1
  480. package/dist/dist-DDpQABxe.js +0 -8054
  481. package/dist/dist-DDpQABxe.js.map +0 -1
  482. package/dist/errors.test.cjs +0 -24
  483. package/dist/errors.test.cjs.map +0 -1
  484. package/dist/errors.test.d.cts +0 -1
  485. package/dist/errors.test.d.ts +0 -1
  486. package/dist/errors.test.js +0 -24
  487. package/dist/errors.test.js.map +0 -1
  488. package/dist/formatting-BaARL2gT.js +0 -68
  489. package/dist/formatting-BaARL2gT.js.map +0 -1
  490. package/dist/formatting-C2kN0ok6.cjs +0 -86
  491. package/dist/formatting-C2kN0ok6.cjs.map +0 -1
  492. package/dist/index-h64gcVNJ.d.ts +0 -1
  493. package/dist/internal/formatting.d.cts.map +0 -1
  494. package/dist/internal/formatting.d.ts.map +0 -1
  495. package/dist/internal/issue-helpers.d.cts.map +0 -1
  496. package/dist/internal/issue-helpers.d.ts.map +0 -1
  497. package/dist/internal/issue-helpers.test.cjs +0 -110
  498. package/dist/internal/issue-helpers.test.cjs.map +0 -1
  499. package/dist/internal/issue-helpers.test.d.cts +0 -1
  500. package/dist/internal/issue-helpers.test.d.ts +0 -1
  501. package/dist/internal/issue-helpers.test.js +0 -110
  502. package/dist/internal/issue-helpers.test.js.map +0 -1
  503. package/dist/magic-string.es-CybcVAw7.cjs +0 -1016
  504. package/dist/magic-string.es-CybcVAw7.cjs.map +0 -1
  505. package/dist/magic-string.es-DY8GVHw9.js +0 -1015
  506. package/dist/magic-string.es-DY8GVHw9.js.map +0 -1
  507. package/dist/promptDefinitions-BTLIBcGt.cjs.map +0 -1
  508. package/dist/promptDefinitions-CF2VWdQ6.d.cts.map +0 -1
  509. package/dist/promptDefinitions-D5FSQckL.d.ts.map +0 -1
  510. package/dist/resources-Bol20Xuo.js +0 -38
  511. package/dist/resources-Bol20Xuo.js.map +0 -1
  512. package/dist/resources-DNyoutxH.cjs +0 -44
  513. package/dist/resources-DNyoutxH.cjs.map +0 -1
  514. package/dist/schema-BJv7kREf.d.cts.map +0 -1
  515. package/dist/schema-BTfISwFu.cjs.map +0 -1
  516. package/dist/schema-BnxGHL_i.d.ts.map +0 -1
  517. package/dist/schema-BsvGMALe.cjs.map +0 -1
  518. package/dist/schema-C_hp0BR7.js.map +0 -1
  519. package/dist/server-C7cHq_pc.js.map +0 -1
  520. package/dist/server-DeutbO8v.cjs.map +0 -1
  521. package/dist/stdio-B73CCTly.cjs.map +0 -1
  522. package/dist/stdio-ZQLC-i5Q.js.map +0 -1
  523. package/dist/toolDefinitions-BOMF-zIC.d.ts +0 -394
  524. package/dist/toolDefinitions-BOMF-zIC.d.ts.map +0 -1
  525. package/dist/toolDefinitions-CUegGcWU.cjs +0 -547
  526. package/dist/toolDefinitions-CUegGcWU.cjs.map +0 -1
  527. package/dist/toolDefinitions-DFAxp3nr.js +0 -541
  528. package/dist/toolDefinitions-DFAxp3nr.js.map +0 -1
  529. package/dist/toolDefinitions-Ipvr4Acw.d.cts +0 -394
  530. package/dist/toolDefinitions-Ipvr4Acw.d.cts.map +0 -1
  531. package/dist/toolDefinitions.cjs +0 -4
  532. package/dist/toolDefinitions.d.cts +0 -2
  533. package/dist/toolDefinitions.test.cjs +0 -15
  534. package/dist/toolDefinitions.test.cjs.map +0 -1
  535. package/dist/toolDefinitions.test.d.cts +0 -1
  536. package/dist/toolDefinitions.test.d.ts +0 -1
  537. package/dist/toolDefinitions.test.js +0 -15
  538. package/dist/toolDefinitions.test.js.map +0 -1
  539. package/dist/tools-DpiQwSTY.js +0 -596
  540. package/dist/tools-DpiQwSTY.js.map +0 -1
  541. package/dist/tools-DyOqlsCW.cjs +0 -602
  542. package/dist/tools-DyOqlsCW.cjs.map +0 -1
  543. package/dist/tools.cjs +0 -11
  544. package/dist/tools.d.cts +0 -335
  545. package/dist/tools.d.cts.map +0 -1
  546. package/dist/tools.d.ts +0 -335
  547. package/dist/tools.d.ts.map +0 -1
  548. package/dist/tools.js +0 -11
  549. package/dist/tools.test.cjs +0 -1298
  550. package/dist/tools.test.cjs.map +0 -1
  551. package/dist/tools.test.d.cts +0 -1
  552. package/dist/tools.test.d.ts +0 -1
  553. package/dist/tools.test.js +0 -1298
  554. package/dist/tools.test.js.map +0 -1
  555. package/dist/types-D5TPcOfv.d.ts +0 -39
  556. package/dist/types-D5TPcOfv.d.ts.map +0 -1
  557. package/dist/types-DRF2IoP_.d.cts +0 -39
  558. package/dist/types-DRF2IoP_.d.cts.map +0 -1
  559. package/dist/types-Daq2fm0E.d.ts.map +0 -1
  560. package/dist/types-NIQW7KyF.d.cts.map +0 -1
  561. package/dist/version-BNmubeQI.cjs.map +0 -1
  562. package/dist/version-CRto5Sn_.js +0 -6
  563. package/dist/version-CRto5Sn_.js.map +0 -1
  564. package/dist/vi.bdSIJ99Y-BfJr7I2s.js +0 -6349
  565. package/dist/vi.bdSIJ99Y-BfJr7I2s.js.map +0 -1
  566. package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs +0 -6355
  567. package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs.map +0 -1
  568. /package/dist/{api-client-CNv_hbPO.js → api-client-ChL_0F2u.js} +0 -0
  569. /package/dist/{types-6zHoEWAx.js → fetch-utils-C0F4eH6S.cjs} +0 -0
  570. /package/dist/{api-client/client.test.d.cts → index-DVGDAddE.d.ts} +0 -0
@@ -1,4 +1,4 @@
1
- import { __commonJS, __require, __toESM } from "./chunk-BLXvPPr8.js";
1
+ import { createRequire } from "node:module";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  import http2, { Agent, IncomingMessage, STATUS_CODES, ServerResponse, globalAgent } from "http";
4
4
  import { Readable } from "stream";
@@ -8,7 +8,34 @@ import { HTTPParser } from "_http_common";
8
8
  import { URL as URL$1, parse, urlToHttpOptions } from "url";
9
9
  import zlib from "zlib";
10
10
 
11
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-3GJB4JDF.mjs
11
+ //#region rolldown:runtime
12
+ var __create$4 = Object.create;
13
+ var __defProp$5 = Object.defineProperty;
14
+ var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
15
+ var __getOwnPropNames$4 = Object.getOwnPropertyNames;
16
+ var __getProtoOf$4 = Object.getPrototypeOf;
17
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
18
+ var __commonJS$4 = (cb, mod) => function() {
19
+ return mod || (0, cb[__getOwnPropNames$4(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
20
+ };
21
+ var __copyProps$4 = (to, from, except, desc) => {
22
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames$4(from), i = 0, n = keys.length, key; i < n; i++) {
23
+ key = keys[i];
24
+ if (!__hasOwnProp$4.call(to, key) && key !== except) __defProp$5(to, key, {
25
+ get: ((k) => from[k]).bind(null, key),
26
+ enumerable: !(desc = __getOwnPropDesc$4(from, key)) || desc.enumerable
27
+ });
28
+ }
29
+ return to;
30
+ };
31
+ var __toESM$4 = (mod, isNodeMode, target) => (target = mod != null ? __create$4(__getProtoOf$4(mod)) : {}, __copyProps$4(isNodeMode || !mod || !mod.__esModule ? __defProp$5(target, "default", {
32
+ value: mod,
33
+ enumerable: true
34
+ }) : target, mod));
35
+ var __require$1 = /* @__PURE__ */ createRequire(import.meta.url);
36
+
37
+ //#endregion
38
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-3GJB4JDF.mjs
12
39
  var kRawRequest = Symbol("kRawRequest");
13
40
  function setRawRequest(request, rawRequest) {
14
41
  Reflect.set(request, kRawRequest, rawRequest);
@@ -80,7 +107,7 @@ invariant.as = (ErrorConstructor, predicate, message$3, ...positionals) => {
80
107
  };
81
108
 
82
109
  //#endregion
83
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-TJDMZZXE.mjs
110
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-TJDMZZXE.mjs
84
111
  var kRawRequestBodyStream = Symbol("kRawRequestBodyStream");
85
112
  function setRawRequestBodyStream(request, stream) {
86
113
  Reflect.set(request, kRawRequestBodyStream, stream);
@@ -173,7 +200,7 @@ var until = async (promise) => {
173
200
  };
174
201
 
175
202
  //#endregion
176
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-LGXJ3UUF.mjs
203
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-LGXJ3UUF.mjs
177
204
  var InterceptorError = class extends Error {
178
205
  constructor(message$3) {
179
206
  super(message$3);
@@ -730,7 +757,7 @@ var Emitter = _Emitter;
730
757
  Emitter.defaultMaxListeners = 10;
731
758
 
732
759
  //#endregion
733
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-IHJSPMYM.mjs
760
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-IHJSPMYM.mjs
734
761
  var INTERNAL_REQUEST_ID_HEADER_NAME = "x-interceptors-internal-request-id";
735
762
  function getGlobalSymbol$1(symbol) {
736
763
  return globalThis[symbol] || void 0;
@@ -972,7 +999,7 @@ FetchResponse.STATUS_CODES_WITH_REDIRECT = [
972
999
  ];
973
1000
 
974
1001
  //#endregion
975
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-GLGFOTGJ.mjs
1002
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-GLGFOTGJ.mjs
976
1003
  function normalizeSocketWriteArgs(args) {
977
1004
  const normalized = [
978
1005
  args[0],
@@ -1330,7 +1357,7 @@ var MockHttpSocket = class extends MockSocket {
1330
1357
  var _a$1;
1331
1358
  if (this.destroyed) return;
1332
1359
  if (isPropertyAccessible(response, "type") && response.type === "error") {
1333
- this.errorWith(new TypeError("Network error"));
1360
+ this.errorWith(/* @__PURE__ */ new TypeError("Network error"));
1334
1361
  return;
1335
1362
  }
1336
1363
  this.mockConnect();
@@ -1785,7 +1812,7 @@ var ClientRequestInterceptor = _ClientRequestInterceptor;
1785
1812
  ClientRequestInterceptor.symbol = Symbol("client-request-interceptor");
1786
1813
 
1787
1814
  //#endregion
1788
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.mjs
1815
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-6HYIRFX2.mjs
1789
1816
  var encoder = new TextEncoder();
1790
1817
  function encodeBuffer(text) {
1791
1818
  return encoder.encode(text);
@@ -1799,7 +1826,7 @@ function toArrayBuffer(array) {
1799
1826
  }
1800
1827
 
1801
1828
  //#endregion
1802
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.mjs
1829
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-TX5GBTFY.mjs
1803
1830
  function hasConfigurableGlobal$1(propertyName) {
1804
1831
  const descriptor = Object.getOwnPropertyDescriptor(globalThis, propertyName);
1805
1832
  if (typeof descriptor === "undefined") return false;
@@ -1813,11 +1840,11 @@ function hasConfigurableGlobal$1(propertyName) {
1813
1840
  }
1814
1841
 
1815
1842
  //#endregion
1816
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.mjs
1843
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-6YM4PLBI.mjs
1817
1844
  var IS_PATCHED_MODULE = Symbol("isPatchedModule");
1818
1845
 
1819
1846
  //#endregion
1820
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-EADPZWWI.mjs
1847
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-EADPZWWI.mjs
1821
1848
  function concatArrayBuffer(left, right) {
1822
1849
  const result = new Uint8Array(left.byteLength + right.byteLength);
1823
1850
  result.set(left, 0);
@@ -2388,7 +2415,7 @@ function createXMLHttpRequestProxy({ emitter, logger: logger$2 }) {
2388
2415
  await this.respondWith(response);
2389
2416
  },
2390
2417
  onRequestError: () => {
2391
- this.errorWith(new TypeError("Network error"));
2418
+ this.errorWith(/* @__PURE__ */ new TypeError("Network error"));
2392
2419
  },
2393
2420
  onError: (error$2) => {
2394
2421
  this.logger.info("request errored!", { error: error$2 });
@@ -2443,9 +2470,9 @@ var XMLHttpRequestInterceptor = _XMLHttpRequestInterceptor;
2443
2470
  XMLHttpRequestInterceptor.interceptorSymbol = Symbol("xhr");
2444
2471
 
2445
2472
  //#endregion
2446
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-GL6JCI7E.mjs
2473
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-GL6JCI7E.mjs
2447
2474
  function createNetworkError(cause) {
2448
- return Object.assign(new TypeError("Failed to fetch"), { cause });
2475
+ return Object.assign(/* @__PURE__ */ new TypeError("Failed to fetch"), { cause });
2449
2476
  }
2450
2477
  var REQUEST_BODY_HEADERS = [
2451
2478
  "content-encoding",
@@ -2646,7 +2673,7 @@ var FetchInterceptor = _FetchInterceptor;
2646
2673
  FetchInterceptor.symbol = Symbol("fetch");
2647
2674
 
2648
2675
  //#endregion
2649
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/chunk-RC2XPCC4.mjs
2676
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/chunk-RC2XPCC4.mjs
2650
2677
  var BatchInterceptor = class extends Interceptor$1 {
2651
2678
  constructor(options) {
2652
2679
  BatchInterceptor.symbol = Symbol(options.name);
@@ -2682,13 +2709,13 @@ var BatchInterceptor = class extends Interceptor$1 {
2682
2709
  };
2683
2710
 
2684
2711
  //#endregion
2685
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/node/index.mjs
2712
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/node/index.mjs
2686
2713
  function getCleanUrl(url, isAbsolute = true) {
2687
2714
  return [isAbsolute && url.origin, url.pathname].filter(Boolean).join("");
2688
2715
  }
2689
2716
 
2690
2717
  //#endregion
2691
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/devUtils.mjs
2718
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/devUtils.mjs
2692
2719
  const LIBRARY_PREFIX = "[MSW]";
2693
2720
  function formatMessage(message$3, ...positionals) {
2694
2721
  const interpolatedMessage = format(message$3, ...positionals);
@@ -2713,7 +2740,7 @@ var InternalError = class extends Error {
2713
2740
  };
2714
2741
 
2715
2742
  //#endregion
2716
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/pipeEvents.mjs
2743
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/pipeEvents.mjs
2717
2744
  function pipeEvents(source, destination) {
2718
2745
  const rawEmit = source.emit;
2719
2746
  if (rawEmit._isPiped) return;
@@ -2726,7 +2753,7 @@ function pipeEvents(source, destination) {
2726
2753
  }
2727
2754
 
2728
2755
  //#endregion
2729
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/toReadonlyArray.mjs
2756
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/toReadonlyArray.mjs
2730
2757
  function toReadonlyArray(source) {
2731
2758
  const clone = [...source];
2732
2759
  Object.freeze(clone);
@@ -2734,7 +2761,7 @@ function toReadonlyArray(source) {
2734
2761
  }
2735
2762
 
2736
2763
  //#endregion
2737
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/Disposable.mjs
2764
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/Disposable.mjs
2738
2765
  var Disposable = class {
2739
2766
  subscriptions = [];
2740
2767
  dispose() {
@@ -2744,7 +2771,7 @@ var Disposable = class {
2744
2771
  };
2745
2772
 
2746
2773
  //#endregion
2747
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/SetupApi.mjs
2774
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/SetupApi.mjs
2748
2775
  var InMemoryHandlersController = class {
2749
2776
  constructor(initialHandlers) {
2750
2777
  this.initialHandlers = initialHandlers;
@@ -2813,7 +2840,7 @@ var SetupApi = class extends Disposable {
2813
2840
  };
2814
2841
 
2815
2842
  //#endregion
2816
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/executeHandlers.mjs
2843
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/executeHandlers.mjs
2817
2844
  const executeHandlers = async ({ request, requestId, handlers, resolutionContext }) => {
2818
2845
  let matchingHandler = null;
2819
2846
  let result = null;
@@ -2835,7 +2862,7 @@ const executeHandlers = async ({ request, requestId, handlers, resolutionContext
2835
2862
  };
2836
2863
 
2837
2864
  //#endregion
2838
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/request/toPublicUrl.mjs
2865
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/request/toPublicUrl.mjs
2839
2866
  function toPublicUrl(url) {
2840
2867
  if (typeof location === "undefined") return url.toString();
2841
2868
  const urlInstance = url instanceof URL ? url : new URL(url);
@@ -2843,7 +2870,7 @@ function toPublicUrl(url) {
2843
2870
  }
2844
2871
 
2845
2872
  //#endregion
2846
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/isCommonAssetRequest.mjs
2873
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/isCommonAssetRequest.mjs
2847
2874
  function isCommonAssetRequest(request) {
2848
2875
  const url = new URL(request.url);
2849
2876
  if (url.protocol === "file:") return true;
@@ -2854,7 +2881,7 @@ function isCommonAssetRequest(request) {
2854
2881
  }
2855
2882
 
2856
2883
  //#endregion
2857
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/request/onUnhandledRequest.mjs
2884
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/request/onUnhandledRequest.mjs
2858
2885
  async function onUnhandledRequest(request, strategy = "warn") {
2859
2886
  const url = new URL(request.url);
2860
2887
  const publicUrl = toPublicUrl(url) + url.search;
@@ -2900,11 +2927,11 @@ var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
2900
2927
  var __getOwnPropNames$3 = Object.getOwnPropertyNames;
2901
2928
  var __getProtoOf$3 = Object.getPrototypeOf;
2902
2929
  var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
2903
- var __require$1 = /* @__PURE__ */ ((x) => typeof __require !== "undefined" ? __require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof __require !== "undefined" ? __require : a)[b] }) : x)(function(x) {
2904
- if (typeof __require !== "undefined") return __require.apply(this, arguments);
2930
+ var __require = /* @__PURE__ */ ((x) => typeof __require$1 !== "undefined" ? __require$1 : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof __require$1 !== "undefined" ? __require$1 : a)[b] }) : x)(function(x) {
2931
+ if (typeof __require$1 !== "undefined") return __require$1.apply(this, arguments);
2905
2932
  throw Error("Dynamic require of \"" + x + "\" is not supported");
2906
2933
  });
2907
- var __commonJS$4 = (cb, mod) => function __require2() {
2934
+ var __commonJS$3 = (cb, mod) => function __require2() {
2908
2935
  return mod || (0, cb[__getOwnPropNames$3(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
2909
2936
  };
2910
2937
  var __copyProps$3 = (to, from, except, desc) => {
@@ -2916,11 +2943,11 @@ var __copyProps$3 = (to, from, except, desc) => {
2916
2943
  }
2917
2944
  return to;
2918
2945
  };
2919
- var __toESM$4 = (mod, isNodeMode, target) => (target = mod != null ? __create$3(__getProtoOf$3(mod)) : {}, __copyProps$3(isNodeMode || !mod || !mod.__esModule ? __defProp$3(target, "default", {
2946
+ var __toESM$3 = (mod, isNodeMode, target) => (target = mod != null ? __create$3(__getProtoOf$3(mod)) : {}, __copyProps$3(isNodeMode || !mod || !mod.__esModule ? __defProp$3(target, "default", {
2920
2947
  value: mod,
2921
2948
  enumerable: true
2922
2949
  }) : target, mod));
2923
- var require_punycode = __commonJS$4({ "node_modules/punycode/punycode.js"(exports$1, module) {
2950
+ var require_punycode = __commonJS$3({ "node_modules/punycode/punycode.js"(exports$1, module) {
2924
2951
  "use strict";
2925
2952
  var maxInt = 2147483647;
2926
2953
  var base = 36;
@@ -3096,7 +3123,7 @@ var require_punycode = __commonJS$4({ "node_modules/punycode/punycode.js"(export
3096
3123
  };
3097
3124
  module.exports = punycode;
3098
3125
  } });
3099
- var require_requires_port = __commonJS$4({ "node_modules/requires-port/index.js"(exports$1, module) {
3126
+ var require_requires_port = __commonJS$3({ "node_modules/requires-port/index.js"(exports$1, module) {
3100
3127
  "use strict";
3101
3128
  module.exports = function required(port, protocol) {
3102
3129
  protocol = protocol.split(":")[0];
@@ -3114,7 +3141,7 @@ var require_requires_port = __commonJS$4({ "node_modules/requires-port/index.js"
3114
3141
  return port !== 0;
3115
3142
  };
3116
3143
  } });
3117
- var require_querystringify = __commonJS$4({ "node_modules/querystringify/index.js"(exports$1) {
3144
+ var require_querystringify = __commonJS$3({ "node_modules/querystringify/index.js"(exports$1) {
3118
3145
  "use strict";
3119
3146
  var has = Object.prototype.hasOwnProperty;
3120
3147
  var undef;
@@ -3158,7 +3185,7 @@ var require_querystringify = __commonJS$4({ "node_modules/querystringify/index.j
3158
3185
  exports$1.stringify = querystringify;
3159
3186
  exports$1.parse = querystring;
3160
3187
  } });
3161
- var require_url_parse = __commonJS$4({ "node_modules/url-parse/index.js"(exports$1, module) {
3188
+ var require_url_parse = __commonJS$3({ "node_modules/url-parse/index.js"(exports$1, module) {
3162
3189
  "use strict";
3163
3190
  var required = require_requires_port();
3164
3191
  var qs = require_querystringify();
@@ -3439,7 +3466,7 @@ var require_url_parse = __commonJS$4({ "node_modules/url-parse/index.js"(exports
3439
3466
  Url.qs = qs;
3440
3467
  module.exports = Url;
3441
3468
  } });
3442
- var require_rules = __commonJS$4({ "node_modules/psl/data/rules.json"(exports$1, module) {
3469
+ var require_rules = __commonJS$3({ "node_modules/psl/data/rules.json"(exports$1, module) {
3443
3470
  module.exports = [
3444
3471
  "ac",
3445
3472
  "com.ac",
@@ -12817,7 +12844,7 @@ var require_rules = __commonJS$4({ "node_modules/psl/data/rules.json"(exports$1,
12817
12844
  "enterprisecloud.nu"
12818
12845
  ];
12819
12846
  } });
12820
- var require_psl = __commonJS$4({ "node_modules/psl/index.js"(exports$1) {
12847
+ var require_psl = __commonJS$3({ "node_modules/psl/index.js"(exports$1) {
12821
12848
  "use strict";
12822
12849
  var Punycode = require_punycode();
12823
12850
  var internals = {};
@@ -12927,7 +12954,7 @@ var require_psl = __commonJS$4({ "node_modules/psl/index.js"(exports$1) {
12927
12954
  return Boolean(parsed.domain && parsed.listed);
12928
12955
  };
12929
12956
  } });
12930
- var require_pubsuffix_psl = __commonJS$4({ "node_modules/tough-cookie/lib/pubsuffix-psl.js"(exports$1) {
12957
+ var require_pubsuffix_psl = __commonJS$3({ "node_modules/tough-cookie/lib/pubsuffix-psl.js"(exports$1) {
12931
12958
  "use strict";
12932
12959
  var psl = require_psl();
12933
12960
  var SPECIAL_USE_DOMAINS = [
@@ -12954,7 +12981,7 @@ var require_pubsuffix_psl = __commonJS$4({ "node_modules/tough-cookie/lib/pubsuf
12954
12981
  }
12955
12982
  exports$1.getPublicSuffix = getPublicSuffix;
12956
12983
  } });
12957
- var require_store = __commonJS$4({ "node_modules/tough-cookie/lib/store.js"(exports$1) {
12984
+ var require_store = __commonJS$3({ "node_modules/tough-cookie/lib/store.js"(exports$1) {
12958
12985
  "use strict";
12959
12986
  var Store$1 = class {
12960
12987
  constructor() {
@@ -12987,7 +13014,7 @@ var require_store = __commonJS$4({ "node_modules/tough-cookie/lib/store.js"(expo
12987
13014
  };
12988
13015
  exports$1.Store = Store$1;
12989
13016
  } });
12990
- var require_universalify = __commonJS$4({ "node_modules/universalify/index.js"(exports$1) {
13017
+ var require_universalify = __commonJS$3({ "node_modules/universalify/index.js"(exports$1) {
12991
13018
  "use strict";
12992
13019
  exports$1.fromCallback = function(fn) {
12993
13020
  return Object.defineProperty(function() {
@@ -13014,7 +13041,7 @@ var require_universalify = __commonJS$4({ "node_modules/universalify/index.js"(e
13014
13041
  }, "name", { value: fn.name });
13015
13042
  };
13016
13043
  } });
13017
- var require_permuteDomain = __commonJS$4({ "node_modules/tough-cookie/lib/permuteDomain.js"(exports$1) {
13044
+ var require_permuteDomain = __commonJS$3({ "node_modules/tough-cookie/lib/permuteDomain.js"(exports$1) {
13018
13045
  "use strict";
13019
13046
  var pubsuffix = require_pubsuffix_psl();
13020
13047
  function permuteDomain(domain, allowSpecialUseDomain) {
@@ -13034,7 +13061,7 @@ var require_permuteDomain = __commonJS$4({ "node_modules/tough-cookie/lib/permut
13034
13061
  }
13035
13062
  exports$1.permuteDomain = permuteDomain;
13036
13063
  } });
13037
- var require_pathMatch = __commonJS$4({ "node_modules/tough-cookie/lib/pathMatch.js"(exports$1) {
13064
+ var require_pathMatch = __commonJS$3({ "node_modules/tough-cookie/lib/pathMatch.js"(exports$1) {
13038
13065
  "use strict";
13039
13066
  function pathMatch$1(reqPath, cookiePath) {
13040
13067
  if (cookiePath === reqPath) return true;
@@ -13047,10 +13074,10 @@ var require_pathMatch = __commonJS$4({ "node_modules/tough-cookie/lib/pathMatch.
13047
13074
  }
13048
13075
  exports$1.pathMatch = pathMatch$1;
13049
13076
  } });
13050
- var require_utilHelper = __commonJS$4({ "node_modules/tough-cookie/lib/utilHelper.js"(exports$1) {
13077
+ var require_utilHelper = __commonJS$3({ "node_modules/tough-cookie/lib/utilHelper.js"(exports$1) {
13051
13078
  function requireUtil() {
13052
13079
  try {
13053
- return __require$1("util");
13080
+ return __require("util");
13054
13081
  } catch (e) {
13055
13082
  return null;
13056
13083
  }
@@ -13075,7 +13102,7 @@ var require_utilHelper = __commonJS$4({ "node_modules/tough-cookie/lib/utilHelpe
13075
13102
  return _lookupCustomInspectSymbol() || tryReadingCustomSymbolFromUtilInspect(options);
13076
13103
  };
13077
13104
  } });
13078
- var require_memstore = __commonJS$4({ "node_modules/tough-cookie/lib/memstore.js"(exports$1) {
13105
+ var require_memstore = __commonJS$3({ "node_modules/tough-cookie/lib/memstore.js"(exports$1) {
13079
13106
  "use strict";
13080
13107
  var { fromCallback } = require_universalify();
13081
13108
  var Store$1 = require_store().Store;
@@ -13223,7 +13250,7 @@ var require_memstore = __commonJS$4({ "node_modules/tough-cookie/lib/memstore.js
13223
13250
  }
13224
13251
  exports$1.inspectFallback = inspectFallback;
13225
13252
  } });
13226
- var require_validators = __commonJS$4({ "node_modules/tough-cookie/lib/validators.js"(exports$1) {
13253
+ var require_validators = __commonJS$3({ "node_modules/tough-cookie/lib/validators.js"(exports$1) {
13227
13254
  "use strict";
13228
13255
  var toString = Object.prototype.toString;
13229
13256
  function isFunction(data) {
@@ -13281,10 +13308,10 @@ var require_validators = __commonJS$4({ "node_modules/tough-cookie/lib/validator
13281
13308
  exports$1.isUrlStringOrObject = isUrlStringOrObject;
13282
13309
  exports$1.validate = validate;
13283
13310
  } });
13284
- var require_version = __commonJS$4({ "node_modules/tough-cookie/lib/version.js"(exports$1, module) {
13311
+ var require_version = __commonJS$3({ "node_modules/tough-cookie/lib/version.js"(exports$1, module) {
13285
13312
  module.exports = "4.1.4";
13286
13313
  } });
13287
- var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(exports$1) {
13314
+ var require_cookie$1 = __commonJS$3({ "node_modules/tough-cookie/lib/cookie.js"(exports$1) {
13288
13315
  "use strict";
13289
13316
  var punycode = require_punycode();
13290
13317
  var urlParse = require_url_parse();
@@ -13346,7 +13373,7 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
13346
13373
  (?::(?:(?::[a-fA-F\\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,7}|:))
13347
13374
  )(?:%[0-9a-zA-Z]{1,})?\\]?
13348
13375
  `.replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
13349
- var IP_V6_REGEX_OBJECT = new RegExp(`^${IP_V6_REGEX}$`);
13376
+ var IP_V6_REGEX_OBJECT = /* @__PURE__ */ new RegExp(`^${IP_V6_REGEX}$`);
13350
13377
  function parseDigits(token, minDigits, maxDigits, trailingOK) {
13351
13378
  let count$1 = 0;
13352
13379
  while (count$1 < token.length) {
@@ -13821,7 +13848,7 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
13821
13848
  let err;
13822
13849
  if (validators.isFunction(url)) {
13823
13850
  cb = url;
13824
- return cb(new Error("No URL was specified"));
13851
+ return cb(/* @__PURE__ */ new Error("No URL was specified"));
13825
13852
  }
13826
13853
  const context$1 = getCookieContext(url);
13827
13854
  if (validators.isFunction(options)) {
@@ -13840,11 +13867,11 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
13840
13867
  if (typeof cookie === "string" || cookie instanceof String) {
13841
13868
  cookie = Cookie$1.parse(cookie, { loose });
13842
13869
  if (!cookie) {
13843
- err = new Error("Cookie failed to parse");
13870
+ err = /* @__PURE__ */ new Error("Cookie failed to parse");
13844
13871
  return cb(options.ignoreError ? null : err);
13845
13872
  }
13846
13873
  } else if (!(cookie instanceof Cookie$1)) {
13847
- err = new Error("First argument to setCookie must be a Cookie object or string");
13874
+ err = /* @__PURE__ */ new Error("First argument to setCookie must be a Cookie object or string");
13848
13875
  return cb(options.ignoreError ? null : err);
13849
13876
  }
13850
13877
  const now = options.now || /* @__PURE__ */ new Date();
@@ -13854,13 +13881,13 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
13854
13881
  ignoreError: options.ignoreError
13855
13882
  });
13856
13883
  if (suffix == null && !IP_V6_REGEX_OBJECT.test(cookie.domain)) {
13857
- err = new Error("Cookie has domain set to a public suffix");
13884
+ err = /* @__PURE__ */ new Error("Cookie has domain set to a public suffix");
13858
13885
  return cb(options.ignoreError ? null : err);
13859
13886
  }
13860
13887
  }
13861
13888
  if (cookie.domain) {
13862
13889
  if (!domainMatch$1(host, cookie.cdomain(), false)) {
13863
- err = new Error(`Cookie not in this host's domain. Cookie:${cookie.cdomain()} Request:${host}`);
13890
+ err = /* @__PURE__ */ new Error(`Cookie not in this host's domain. Cookie:${cookie.cdomain()} Request:${host}`);
13864
13891
  return cb(options.ignoreError ? null : err);
13865
13892
  }
13866
13893
  if (cookie.hostOnly == null) cookie.hostOnly = false;
@@ -13873,12 +13900,12 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
13873
13900
  cookie.pathIsDefault = true;
13874
13901
  }
13875
13902
  if (options.http === false && cookie.httpOnly) {
13876
- err = new Error("Cookie is HttpOnly and this isn't an HTTP API");
13903
+ err = /* @__PURE__ */ new Error("Cookie is HttpOnly and this isn't an HTTP API");
13877
13904
  return cb(options.ignoreError ? null : err);
13878
13905
  }
13879
13906
  if (cookie.sameSite !== "none" && cookie.sameSite !== void 0 && sameSiteContext) {
13880
13907
  if (sameSiteContext === "none") {
13881
- err = new Error("Cookie is SameSite but this is a cross-origin request");
13908
+ err = /* @__PURE__ */ new Error("Cookie is SameSite but this is a cross-origin request");
13882
13909
  return cb(options.ignoreError ? null : err);
13883
13910
  }
13884
13911
  }
@@ -13908,7 +13935,7 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
13908
13935
  };
13909
13936
  if (oldCookie) {
13910
13937
  if (options.http === false && oldCookie.httpOnly) {
13911
- err2 = new Error("old Cookie is HttpOnly and this isn't an HTTP API");
13938
+ err2 = /* @__PURE__ */ new Error("old Cookie is HttpOnly and this isn't an HTTP API");
13912
13939
  return cb(options.ignoreError ? null : err2);
13913
13940
  }
13914
13941
  cookie.creation = oldCookie.creation;
@@ -14008,7 +14035,7 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
14008
14035
  prefixSecurity: getNormalizedPrefixSecurity(this.prefixSecurity),
14009
14036
  cookies: []
14010
14037
  };
14011
- if (!(this.store.getAllCookies && typeof this.store.getAllCookies === "function")) return cb(new Error("store does not support getAllCookies and cannot be serialized"));
14038
+ if (!(this.store.getAllCookies && typeof this.store.getAllCookies === "function")) return cb(/* @__PURE__ */ new Error("store does not support getAllCookies and cannot be serialized"));
14012
14039
  this.store.getAllCookies((err, cookies) => {
14013
14040
  if (err) return cb(err);
14014
14041
  serialized.cookies = cookies.map((cookie) => {
@@ -14024,7 +14051,7 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
14024
14051
  }
14025
14052
  _importCookies(serialized, cb) {
14026
14053
  let cookies = serialized.cookies;
14027
- if (!cookies || !Array.isArray(cookies)) return cb(new Error("serialized jar has no cookies array"));
14054
+ if (!cookies || !Array.isArray(cookies)) return cb(/* @__PURE__ */ new Error("serialized jar has no cookies array"));
14028
14055
  cookies = cookies.slice();
14029
14056
  const putNext = (err) => {
14030
14057
  if (err) return cb(err);
@@ -14153,7 +14180,7 @@ var require_cookie$1 = __commonJS$4({ "node_modules/tough-cookie/lib/cookie.js"(
14153
14180
  exports$1.PrefixSecurityEnum = PrefixSecurityEnum;
14154
14181
  exports$1.ParameterError = validators.ParameterError;
14155
14182
  } });
14156
- var import_tough_cookie = __toESM$4(require_cookie$1(), 1);
14183
+ var import_tough_cookie = __toESM$3(require_cookie$1(), 1);
14157
14184
  var source_default$2 = import_tough_cookie.default;
14158
14185
  /*! Bundled license information:
14159
14186
 
@@ -14351,7 +14378,7 @@ tough-cookie/lib/cookie.js:
14351
14378
  */
14352
14379
 
14353
14380
  //#endregion
14354
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/cookieStore.mjs
14381
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/cookieStore.mjs
14355
14382
  const { Cookie, CookieJar, Store, MemoryCookieStore, domainMatch, pathMatch } = source_default$2;
14356
14383
  var WebStorageCookieStore = class extends Store {
14357
14384
  storage;
@@ -14487,7 +14514,7 @@ var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
14487
14514
  var __getOwnPropNames$2 = Object.getOwnPropertyNames;
14488
14515
  var __getProtoOf$2 = Object.getPrototypeOf;
14489
14516
  var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
14490
- var __commonJS$3 = (cb, mod) => function __require$2() {
14517
+ var __commonJS$2 = (cb, mod) => function __require$2() {
14491
14518
  return mod || (0, cb[__getOwnPropNames$2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
14492
14519
  };
14493
14520
  var __copyProps$2 = (to, from, except, desc) => {
@@ -14499,11 +14526,11 @@ var __copyProps$2 = (to, from, except, desc) => {
14499
14526
  }
14500
14527
  return to;
14501
14528
  };
14502
- var __toESM$3 = (mod, isNodeMode, target) => (target = mod != null ? __create$2(__getProtoOf$2(mod)) : {}, __copyProps$2(isNodeMode || !mod || !mod.__esModule ? __defProp$2(target, "default", {
14529
+ var __toESM$2 = (mod, isNodeMode, target) => (target = mod != null ? __create$2(__getProtoOf$2(mod)) : {}, __copyProps$2(isNodeMode || !mod || !mod.__esModule ? __defProp$2(target, "default", {
14503
14530
  value: mod,
14504
14531
  enumerable: true
14505
14532
  }) : target, mod));
14506
- var require_codes = __commonJS$3({ "node_modules/statuses/codes.json"(exports$1, module) {
14533
+ var require_codes = __commonJS$2({ "node_modules/statuses/codes.json"(exports$1, module) {
14507
14534
  module.exports = {
14508
14535
  "100": "Continue",
14509
14536
  "101": "Switching Protocols",
@@ -14570,7 +14597,7 @@ var require_codes = __commonJS$3({ "node_modules/statuses/codes.json"(exports$1,
14570
14597
  "511": "Network Authentication Required"
14571
14598
  };
14572
14599
  } });
14573
- var require_statuses = __commonJS$3({ "node_modules/statuses/index.js"(exports$1, module) {
14600
+ var require_statuses = __commonJS$2({ "node_modules/statuses/index.js"(exports$1, module) {
14574
14601
  "use strict";
14575
14602
  var codes = require_codes();
14576
14603
  module.exports = status2;
@@ -14627,7 +14654,7 @@ var require_statuses = __commonJS$3({ "node_modules/statuses/index.js"(exports$1
14627
14654
  return getStatusCode(code);
14628
14655
  }
14629
14656
  } });
14630
- var import_statuses = __toESM$3(require_statuses(), 1);
14657
+ var import_statuses = __toESM$2(require_statuses(), 1);
14631
14658
  var source_default$1 = import_statuses.default;
14632
14659
  /*! Bundled license information:
14633
14660
 
@@ -14648,7 +14675,7 @@ var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
14648
14675
  var __getOwnPropNames$1 = Object.getOwnPropertyNames;
14649
14676
  var __getProtoOf$1 = Object.getPrototypeOf;
14650
14677
  var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
14651
- var __commonJS$2 = (cb, mod) => function __require$2() {
14678
+ var __commonJS$1 = (cb, mod) => function __require$2() {
14652
14679
  return mod || (0, cb[__getOwnPropNames$1(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
14653
14680
  };
14654
14681
  var __copyProps$1 = (to, from, except, desc) => {
@@ -14660,11 +14687,11 @@ var __copyProps$1 = (to, from, except, desc) => {
14660
14687
  }
14661
14688
  return to;
14662
14689
  };
14663
- var __toESM$2 = (mod, isNodeMode, target) => (target = mod != null ? __create$1(__getProtoOf$1(mod)) : {}, __copyProps$1(isNodeMode || !mod || !mod.__esModule ? __defProp$1(target, "default", {
14690
+ var __toESM$1 = (mod, isNodeMode, target) => (target = mod != null ? __create$1(__getProtoOf$1(mod)) : {}, __copyProps$1(isNodeMode || !mod || !mod.__esModule ? __defProp$1(target, "default", {
14664
14691
  value: mod,
14665
14692
  enumerable: true
14666
14693
  }) : target, mod));
14667
- var require_set_cookie = __commonJS$2({ "node_modules/set-cookie-parser/lib/set-cookie.js"(exports$1, module) {
14694
+ var require_set_cookie = __commonJS$1({ "node_modules/set-cookie-parser/lib/set-cookie.js"(exports$1, module) {
14668
14695
  "use strict";
14669
14696
  var defaultParseOptions = {
14670
14697
  decodeValues: true,
@@ -14789,7 +14816,7 @@ var require_set_cookie = __commonJS$2({ "node_modules/set-cookie-parser/lib/set-
14789
14816
  module.exports.parseString = parseString;
14790
14817
  module.exports.splitCookiesString = splitCookiesString2;
14791
14818
  } });
14792
- var import_set_cookie_parser = __toESM$2(require_set_cookie());
14819
+ var import_set_cookie_parser = __toESM$1(require_set_cookie());
14793
14820
  var HEADERS_INVALID_CHARACTERS = /[^a-z0-9\-#$%&'*+.^_`|~]/i;
14794
14821
  function normalizeHeaderName(name$2) {
14795
14822
  if (HEADERS_INVALID_CHARACTERS.test(name$2) || name$2.trim() === "") throw new TypeError("Invalid character in header field name");
@@ -14948,7 +14975,7 @@ var Headers$1 = class _Headers {
14948
14975
  };
14949
14976
 
14950
14977
  //#endregion
14951
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/HttpResponse/decorators.mjs
14978
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/HttpResponse/decorators.mjs
14952
14979
  const { message: message$2 } = source_default$1;
14953
14980
  const kSetCookie = Symbol("kSetCookie");
14954
14981
  function normalizeResponseInit(init = {}) {
@@ -14984,14 +15011,14 @@ function decorateResponse(response, init) {
14984
15011
  }
14985
15012
 
14986
15013
  //#endregion
14987
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs
15014
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/request/storeResponseCookies.mjs
14988
15015
  function storeResponseCookies(request, response) {
14989
15016
  const responseCookies = Reflect.get(response, kSetCookie);
14990
15017
  if (responseCookies) cookieStore.setCookie(responseCookies, request.url);
14991
15018
  }
14992
15019
 
14993
15020
  //#endregion
14994
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/handleRequest.mjs
15021
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/handleRequest.mjs
14995
15022
  async function handleRequest(request, requestId, handlers, options, emitter, handleRequestOptions) {
14996
15023
  emitter.emit("request:start", {
14997
15024
  request,
@@ -15066,13 +15093,13 @@ async function handleRequest(request, requestId, handlers, options, emitter, han
15066
15093
  }
15067
15094
 
15068
15095
  //#endregion
15069
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isObject.mjs
15096
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isObject.mjs
15070
15097
  function isObject(value) {
15071
15098
  return value != null && typeof value === "object" && !Array.isArray(value);
15072
15099
  }
15073
15100
 
15074
15101
  //#endregion
15075
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/mergeRight.mjs
15102
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/mergeRight.mjs
15076
15103
  function mergeRight(left, right) {
15077
15104
  return Object.entries(right).reduce((result, [key, rightValue]) => {
15078
15105
  const leftValue = result[key];
@@ -15090,693 +15117,147 @@ function mergeRight(left, right) {
15090
15117
  }
15091
15118
 
15092
15119
  //#endregion
15093
- //#region ../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js
15094
- var require_dist = __commonJS({ "../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js"(exports) {
15095
- Object.defineProperty(exports, "__esModule", { value: true });
15096
- exports.pathToRegexp = exports.tokensToRegexp = exports.regexpToFunction = exports.match = exports.tokensToFunction = exports.compile = exports.parse = void 0;
15097
- /**
15098
- * Tokenize input string.
15099
- */
15100
- function lexer(str) {
15101
- var tokens = [];
15102
- var i = 0;
15103
- while (i < str.length) {
15104
- var char = str[i];
15105
- if (char === "*" || char === "+" || char === "?") {
15106
- tokens.push({
15107
- type: "MODIFIER",
15108
- index: i,
15109
- value: str[i++]
15110
- });
15111
- continue;
15112
- }
15113
- if (char === "\\") {
15114
- tokens.push({
15115
- type: "ESCAPED_CHAR",
15116
- index: i++,
15117
- value: str[i++]
15118
- });
15119
- continue;
15120
- }
15121
- if (char === "{") {
15122
- tokens.push({
15123
- type: "OPEN",
15124
- index: i,
15125
- value: str[i++]
15126
- });
15127
- continue;
15128
- }
15129
- if (char === "}") {
15130
- tokens.push({
15131
- type: "CLOSE",
15132
- index: i,
15133
- value: str[i++]
15134
- });
15135
- continue;
15136
- }
15137
- if (char === ":") {
15138
- var name$2 = "";
15139
- var j = i + 1;
15140
- while (j < str.length) {
15141
- var code = str.charCodeAt(j);
15142
- if (code >= 48 && code <= 57 || code >= 65 && code <= 90 || code >= 97 && code <= 122 || code === 95) {
15143
- name$2 += str[j++];
15144
- continue;
15145
- }
15146
- break;
15147
- }
15148
- if (!name$2) throw new TypeError("Missing parameter name at ".concat(i));
15149
- tokens.push({
15150
- type: "NAME",
15151
- index: i,
15152
- value: name$2
15153
- });
15154
- i = j;
15155
- continue;
15156
- }
15157
- if (char === "(") {
15158
- var count$1 = 1;
15159
- var pattern = "";
15160
- var j = i + 1;
15161
- if (str[j] === "?") throw new TypeError("Pattern cannot start with \"?\" at ".concat(j));
15162
- while (j < str.length) {
15163
- if (str[j] === "\\") {
15164
- pattern += str[j++] + str[j++];
15165
- continue;
15166
- }
15167
- if (str[j] === ")") {
15168
- count$1--;
15169
- if (count$1 === 0) {
15170
- j++;
15171
- break;
15172
- }
15173
- } else if (str[j] === "(") {
15174
- count$1++;
15175
- if (str[j + 1] !== "?") throw new TypeError("Capturing groups are not allowed at ".concat(j));
15176
- }
15177
- pattern += str[j++];
15178
- }
15179
- if (count$1) throw new TypeError("Unbalanced pattern at ".concat(i));
15180
- if (!pattern) throw new TypeError("Missing pattern at ".concat(i));
15181
- tokens.push({
15182
- type: "PATTERN",
15183
- index: i,
15184
- value: pattern
15185
- });
15186
- i = j;
15187
- continue;
15188
- }
15189
- tokens.push({
15190
- type: "CHAR",
15191
- index: i,
15192
- value: str[i++]
15193
- });
15194
- }
15195
- tokens.push({
15196
- type: "END",
15197
- index: i,
15198
- value: ""
15199
- });
15200
- return tokens;
15120
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/browser/chunk-TX5GBTFY.mjs
15121
+ function hasConfigurableGlobal(propertyName) {
15122
+ const descriptor = Object.getOwnPropertyDescriptor(globalThis, propertyName);
15123
+ if (typeof descriptor === "undefined") return false;
15124
+ if (typeof descriptor.get === "function" && typeof descriptor.get() === "undefined") return false;
15125
+ if (typeof descriptor.get === "undefined" && descriptor.value == null) return false;
15126
+ if (typeof descriptor.set === "undefined" && !descriptor.configurable) {
15127
+ console.error(`[MSW] Failed to apply interceptor: the global \`${propertyName}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`);
15128
+ return false;
15201
15129
  }
15202
- /**
15203
- * Parse a string for the raw tokens.
15204
- */
15205
- function parse$1(str, options) {
15206
- if (options === void 0) options = {};
15207
- var tokens = lexer(str);
15208
- var _a$1 = options.prefixes, prefixes = _a$1 === void 0 ? "./" : _a$1, _b$1 = options.delimiter, delimiter = _b$1 === void 0 ? "/#?" : _b$1;
15209
- var result = [];
15210
- var key = 0;
15211
- var i = 0;
15212
- var path = "";
15213
- var tryConsume = function(type$2) {
15214
- if (i < tokens.length && tokens[i].type === type$2) return tokens[i++].value;
15215
- };
15216
- var mustConsume = function(type$2) {
15217
- var value$1 = tryConsume(type$2);
15218
- if (value$1 !== void 0) return value$1;
15219
- var _a$2 = tokens[i], nextType = _a$2.type, index = _a$2.index;
15220
- throw new TypeError("Unexpected ".concat(nextType, " at ").concat(index, ", expected ").concat(type$2));
15221
- };
15222
- var consumeText = function() {
15223
- var result$1 = "";
15224
- var value$1;
15225
- while (value$1 = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR")) result$1 += value$1;
15226
- return result$1;
15227
- };
15228
- var isSafe = function(value$1) {
15229
- for (var _i = 0, delimiter_1 = delimiter; _i < delimiter_1.length; _i++) {
15230
- var char$1 = delimiter_1[_i];
15231
- if (value$1.indexOf(char$1) > -1) return true;
15232
- }
15233
- return false;
15234
- };
15235
- var safePattern = function(prefix$1) {
15236
- var prev = result[result.length - 1];
15237
- var prevText = prefix$1 || (prev && typeof prev === "string" ? prev : "");
15238
- if (prev && !prevText) throw new TypeError("Must have text between two parameters, missing text after \"".concat(prev.name, "\""));
15239
- if (!prevText || isSafe(prevText)) return "[^".concat(escapeString(delimiter), "]+?");
15240
- return "(?:(?!".concat(escapeString(prevText), ")[^").concat(escapeString(delimiter), "])+?");
15241
- };
15242
- while (i < tokens.length) {
15243
- var char = tryConsume("CHAR");
15244
- var name$2 = tryConsume("NAME");
15245
- var pattern = tryConsume("PATTERN");
15246
- if (name$2 || pattern) {
15247
- var prefix = char || "";
15248
- if (prefixes.indexOf(prefix) === -1) {
15249
- path += prefix;
15250
- prefix = "";
15251
- }
15252
- if (path) {
15253
- result.push(path);
15254
- path = "";
15255
- }
15256
- result.push({
15257
- name: name$2 || key++,
15258
- prefix,
15259
- suffix: "",
15260
- pattern: pattern || safePattern(prefix),
15261
- modifier: tryConsume("MODIFIER") || ""
15262
- });
15263
- continue;
15264
- }
15265
- var value = char || tryConsume("ESCAPED_CHAR");
15266
- if (value) {
15267
- path += value;
15268
- continue;
15269
- }
15270
- if (path) {
15271
- result.push(path);
15272
- path = "";
15273
- }
15274
- var open = tryConsume("OPEN");
15275
- if (open) {
15276
- var prefix = consumeText();
15277
- var name_1 = tryConsume("NAME") || "";
15278
- var pattern_1 = tryConsume("PATTERN") || "";
15279
- var suffix = consumeText();
15280
- mustConsume("CLOSE");
15281
- result.push({
15282
- name: name_1 || (pattern_1 ? key++ : ""),
15283
- pattern: name_1 && !pattern_1 ? safePattern(prefix) : pattern_1,
15284
- prefix,
15285
- suffix,
15286
- modifier: tryConsume("MODIFIER") || ""
15287
- });
15288
- continue;
15289
- }
15290
- mustConsume("END");
15291
- }
15292
- return result;
15130
+ return true;
15131
+ }
15132
+
15133
+ //#endregion
15134
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
15135
+ function getGlobalSymbol(symbol) {
15136
+ return globalThis[symbol] || void 0;
15137
+ }
15138
+ function setGlobalSymbol(symbol, value) {
15139
+ globalThis[symbol] = value;
15140
+ }
15141
+ function deleteGlobalSymbol(symbol) {
15142
+ delete globalThis[symbol];
15143
+ }
15144
+ var Interceptor = class {
15145
+ constructor(symbol) {
15146
+ this.symbol = symbol;
15147
+ this.readyState = "INACTIVE";
15148
+ this.emitter = new Emitter();
15149
+ this.subscriptions = [];
15150
+ this.logger = new Logger(symbol.description);
15151
+ this.emitter.setMaxListeners(0);
15152
+ this.logger.info("constructing the interceptor...");
15293
15153
  }
15294
- exports.parse = parse$1;
15295
15154
  /**
15296
- * Compile a string to a template function for the path.
15155
+ * Determine if this interceptor can be applied
15156
+ * in the current environment.
15297
15157
  */
15298
- function compile(str, options) {
15299
- return tokensToFunction(parse$1(str, options), options);
15158
+ checkEnvironment() {
15159
+ return true;
15300
15160
  }
15301
- exports.compile = compile;
15302
15161
  /**
15303
- * Expose a method for transforming tokens into the path function.
15162
+ * Apply this interceptor to the current process.
15163
+ * Returns an already running interceptor instance if it's present.
15304
15164
  */
15305
- function tokensToFunction(tokens, options) {
15306
- if (options === void 0) options = {};
15307
- var reFlags = flags$1(options);
15308
- var _a$1 = options.encode, encode = _a$1 === void 0 ? function(x) {
15309
- return x;
15310
- } : _a$1, _b$1 = options.validate, validate = _b$1 === void 0 ? true : _b$1;
15311
- var matches = tokens.map(function(token) {
15312
- if (typeof token === "object") return new RegExp("^(?:".concat(token.pattern, ")$"), reFlags);
15313
- });
15314
- return function(data) {
15315
- var path = "";
15316
- for (var i = 0; i < tokens.length; i++) {
15317
- var token = tokens[i];
15318
- if (typeof token === "string") {
15319
- path += token;
15320
- continue;
15321
- }
15322
- var value = data ? data[token.name] : void 0;
15323
- var optional = token.modifier === "?" || token.modifier === "*";
15324
- var repeat = token.modifier === "*" || token.modifier === "+";
15325
- if (Array.isArray(value)) {
15326
- if (!repeat) throw new TypeError("Expected \"".concat(token.name, "\" to not repeat, but got an array"));
15327
- if (value.length === 0) {
15328
- if (optional) continue;
15329
- throw new TypeError("Expected \"".concat(token.name, "\" to not be empty"));
15330
- }
15331
- for (var j = 0; j < value.length; j++) {
15332
- var segment = encode(value[j], token);
15333
- if (validate && !matches[i].test(segment)) throw new TypeError("Expected all \"".concat(token.name, "\" to match \"").concat(token.pattern, "\", but got \"").concat(segment, "\""));
15334
- path += token.prefix + segment + token.suffix;
15335
- }
15336
- continue;
15337
- }
15338
- if (typeof value === "string" || typeof value === "number") {
15339
- var segment = encode(String(value), token);
15340
- if (validate && !matches[i].test(segment)) throw new TypeError("Expected \"".concat(token.name, "\" to match \"").concat(token.pattern, "\", but got \"").concat(segment, "\""));
15341
- path += token.prefix + segment + token.suffix;
15342
- continue;
15343
- }
15344
- if (optional) continue;
15345
- var typeOfMessage = repeat ? "an array" : "a string";
15346
- throw new TypeError("Expected \"".concat(token.name, "\" to be ").concat(typeOfMessage));
15347
- }
15348
- return path;
15349
- };
15350
- }
15351
- exports.tokensToFunction = tokensToFunction;
15352
- /**
15353
- * Create path match function from `path-to-regexp` spec.
15354
- */
15355
- function match$1(str, options) {
15356
- var keys = [];
15357
- var re = pathToRegexp(str, keys, options);
15358
- return regexpToFunction(re, keys, options);
15359
- }
15360
- exports.match = match$1;
15361
- /**
15362
- * Create a path match function from `path-to-regexp` output.
15363
- */
15364
- function regexpToFunction(re, keys, options) {
15365
- if (options === void 0) options = {};
15366
- var _a$1 = options.decode, decode = _a$1 === void 0 ? function(x) {
15367
- return x;
15368
- } : _a$1;
15369
- return function(pathname) {
15370
- var m = re.exec(pathname);
15371
- if (!m) return false;
15372
- var path = m[0], index = m.index;
15373
- var params = Object.create(null);
15374
- var _loop_1 = function(i$1) {
15375
- if (m[i$1] === void 0) return "continue";
15376
- var key = keys[i$1 - 1];
15377
- if (key.modifier === "*" || key.modifier === "+") params[key.name] = m[i$1].split(key.prefix + key.suffix).map(function(value) {
15378
- return decode(value, key);
15165
+ apply() {
15166
+ const logger$2 = this.logger.extend("apply");
15167
+ logger$2.info("applying the interceptor...");
15168
+ if (this.readyState === "APPLIED") {
15169
+ logger$2.info("intercepted already applied!");
15170
+ return;
15171
+ }
15172
+ const shouldApply = this.checkEnvironment();
15173
+ if (!shouldApply) {
15174
+ logger$2.info("the interceptor cannot be applied in this environment!");
15175
+ return;
15176
+ }
15177
+ this.readyState = "APPLYING";
15178
+ const runningInstance = this.getInstance();
15179
+ if (runningInstance) {
15180
+ logger$2.info("found a running instance, reusing...");
15181
+ this.on = (event, listener) => {
15182
+ logger$2.info("proxying the \"%s\" listener", event);
15183
+ runningInstance.emitter.addListener(event, listener);
15184
+ this.subscriptions.push(() => {
15185
+ runningInstance.emitter.removeListener(event, listener);
15186
+ logger$2.info("removed proxied \"%s\" listener!", event);
15379
15187
  });
15380
- else params[key.name] = decode(m[i$1], key);
15381
- };
15382
- for (var i = 1; i < m.length; i++) _loop_1(i);
15383
- return {
15384
- path,
15385
- index,
15386
- params
15188
+ return this;
15387
15189
  };
15388
- };
15389
- }
15390
- exports.regexpToFunction = regexpToFunction;
15391
- /**
15392
- * Escape a regular expression string.
15393
- */
15394
- function escapeString(str) {
15395
- return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
15190
+ this.readyState = "APPLIED";
15191
+ return;
15192
+ }
15193
+ logger$2.info("no running instance found, setting up a new instance...");
15194
+ this.setup();
15195
+ this.setInstance();
15196
+ this.readyState = "APPLIED";
15396
15197
  }
15397
15198
  /**
15398
- * Get the flags for a regexp from the options.
15199
+ * Setup the module augments and stubs necessary for this interceptor.
15200
+ * This method is not run if there's a running interceptor instance
15201
+ * to prevent instantiating an interceptor multiple times.
15399
15202
  */
15400
- function flags$1(options) {
15401
- return options && options.sensitive ? "" : "i";
15402
- }
15203
+ setup() {}
15403
15204
  /**
15404
- * Pull out keys from a regexp.
15205
+ * Listen to the interceptor's public events.
15405
15206
  */
15406
- function regexpToRegexp(path, keys) {
15407
- if (!keys) return path;
15408
- var groupsRegex = /\((?:\?<(.*?)>)?(?!\?)/g;
15409
- var index = 0;
15410
- var execResult = groupsRegex.exec(path.source);
15411
- while (execResult) {
15412
- keys.push({
15413
- name: execResult[1] || index++,
15414
- prefix: "",
15415
- suffix: "",
15416
- modifier: "",
15417
- pattern: ""
15418
- });
15419
- execResult = groupsRegex.exec(path.source);
15207
+ on(event, listener) {
15208
+ const logger$2 = this.logger.extend("on");
15209
+ if (this.readyState === "DISPOSING" || this.readyState === "DISPOSED") {
15210
+ logger$2.info("cannot listen to events, already disposed!");
15211
+ return this;
15420
15212
  }
15421
- return path;
15213
+ logger$2.info("adding \"%s\" event listener:", event, listener);
15214
+ this.emitter.on(event, listener);
15215
+ return this;
15422
15216
  }
15423
- /**
15424
- * Transform an array into a regexp.
15425
- */
15426
- function arrayToRegexp(paths, keys, options) {
15427
- var parts = paths.map(function(path) {
15428
- return pathToRegexp(path, keys, options).source;
15429
- });
15430
- return new RegExp("(?:".concat(parts.join("|"), ")"), flags$1(options));
15217
+ once(event, listener) {
15218
+ this.emitter.once(event, listener);
15219
+ return this;
15431
15220
  }
15432
- /**
15433
- * Create a path regexp from string input.
15434
- */
15435
- function stringToRegexp(path, keys, options) {
15436
- return tokensToRegexp(parse$1(path, options), keys, options);
15221
+ off(event, listener) {
15222
+ this.emitter.off(event, listener);
15223
+ return this;
15224
+ }
15225
+ removeAllListeners(event) {
15226
+ this.emitter.removeAllListeners(event);
15227
+ return this;
15437
15228
  }
15438
15229
  /**
15439
- * Expose a function for taking tokens and returning a RegExp.
15230
+ * Disposes of any side-effects this interceptor has introduced.
15440
15231
  */
15441
- function tokensToRegexp(tokens, keys, options) {
15442
- if (options === void 0) options = {};
15443
- var _a$1 = options.strict, strict = _a$1 === void 0 ? false : _a$1, _b$1 = options.start, start = _b$1 === void 0 ? true : _b$1, _c$1 = options.end, end = _c$1 === void 0 ? true : _c$1, _d = options.encode, encode = _d === void 0 ? function(x) {
15444
- return x;
15445
- } : _d, _e = options.delimiter, delimiter = _e === void 0 ? "/#?" : _e, _f = options.endsWith, endsWith = _f === void 0 ? "" : _f;
15446
- var endsWithRe = "[".concat(escapeString(endsWith), "]|$");
15447
- var delimiterRe = "[".concat(escapeString(delimiter), "]");
15448
- var route = start ? "^" : "";
15449
- for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
15450
- var token = tokens_1[_i];
15451
- if (typeof token === "string") route += escapeString(encode(token));
15452
- else {
15453
- var prefix = escapeString(encode(token.prefix));
15454
- var suffix = escapeString(encode(token.suffix));
15455
- if (token.pattern) {
15456
- if (keys) keys.push(token);
15457
- if (prefix || suffix) if (token.modifier === "+" || token.modifier === "*") {
15458
- var mod = token.modifier === "*" ? "?" : "";
15459
- route += "(?:".concat(prefix, "((?:").concat(token.pattern, ")(?:").concat(suffix).concat(prefix, "(?:").concat(token.pattern, "))*)").concat(suffix, ")").concat(mod);
15460
- } else route += "(?:".concat(prefix, "(").concat(token.pattern, ")").concat(suffix, ")").concat(token.modifier);
15461
- else {
15462
- if (token.modifier === "+" || token.modifier === "*") throw new TypeError("Can not repeat \"".concat(token.name, "\" without a prefix and suffix"));
15463
- route += "(".concat(token.pattern, ")").concat(token.modifier);
15464
- }
15465
- } else route += "(?:".concat(prefix).concat(suffix, ")").concat(token.modifier);
15466
- }
15232
+ dispose() {
15233
+ const logger$2 = this.logger.extend("dispose");
15234
+ if (this.readyState === "DISPOSED") {
15235
+ logger$2.info("cannot dispose, already disposed!");
15236
+ return;
15467
15237
  }
15468
- if (end) {
15469
- if (!strict) route += "".concat(delimiterRe, "?");
15470
- route += !options.endsWith ? "$" : "(?=".concat(endsWithRe, ")");
15471
- } else {
15472
- var endToken = tokens[tokens.length - 1];
15473
- var isEndDelimited = typeof endToken === "string" ? delimiterRe.indexOf(endToken[endToken.length - 1]) > -1 : endToken === void 0;
15474
- if (!strict) route += "(?:".concat(delimiterRe, "(?=").concat(endsWithRe, "))?");
15475
- if (!isEndDelimited) route += "(?=".concat(delimiterRe, "|").concat(endsWithRe, ")");
15238
+ logger$2.info("disposing the interceptor...");
15239
+ this.readyState = "DISPOSING";
15240
+ if (!this.getInstance()) {
15241
+ logger$2.info("no interceptors running, skipping dispose...");
15242
+ return;
15476
15243
  }
15477
- return new RegExp(route, flags$1(options));
15244
+ this.clearInstance();
15245
+ logger$2.info("global symbol deleted:", getGlobalSymbol(this.symbol));
15246
+ if (this.subscriptions.length > 0) {
15247
+ logger$2.info("disposing of %d subscriptions...", this.subscriptions.length);
15248
+ for (const dispose of this.subscriptions) dispose();
15249
+ this.subscriptions = [];
15250
+ logger$2.info("disposed of all subscriptions!", this.subscriptions.length);
15251
+ }
15252
+ this.emitter.removeAllListeners();
15253
+ logger$2.info("destroyed the listener!");
15254
+ this.readyState = "DISPOSED";
15478
15255
  }
15479
- exports.tokensToRegexp = tokensToRegexp;
15480
- /**
15481
- * Normalize the given path string, returning a regular expression.
15482
- *
15483
- * An empty array can be passed in for the keys, which will hold the
15484
- * placeholder key descriptions. For example, using `/user/:id`, `keys` will
15485
- * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
15486
- */
15487
- function pathToRegexp(path, keys, options) {
15488
- if (path instanceof RegExp) return regexpToRegexp(path, keys);
15489
- if (Array.isArray(path)) return arrayToRegexp(path, keys, options);
15490
- return stringToRegexp(path, keys, options);
15491
- }
15492
- exports.pathToRegexp = pathToRegexp;
15493
- } });
15494
-
15495
- //#endregion
15496
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/url/cleanUrl.mjs
15497
- const REDUNDANT_CHARACTERS_EXP = /[\?|#].*$/g;
15498
- function getSearchParams(path) {
15499
- return new URL(`/${path}`, "http://localhost").searchParams;
15500
- }
15501
- function cleanUrl(path) {
15502
- if (path.endsWith("?")) return path;
15503
- return path.replace(REDUNDANT_CHARACTERS_EXP, "");
15504
- }
15505
-
15506
- //#endregion
15507
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.mjs
15508
- function isAbsoluteUrl(url) {
15509
- return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
15510
- }
15511
-
15512
- //#endregion
15513
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.mjs
15514
- function getAbsoluteUrl(path, baseUrl) {
15515
- if (isAbsoluteUrl(path)) return path;
15516
- if (path.startsWith("*")) return path;
15517
- const origin = baseUrl || typeof location !== "undefined" && location.href;
15518
- return origin ? decodeURI(new URL(encodeURI(path), origin).href) : path;
15519
- }
15520
-
15521
- //#endregion
15522
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/matching/normalizePath.mjs
15523
- function normalizePath(path, baseUrl) {
15524
- if (path instanceof RegExp) return path;
15525
- const maybeAbsoluteUrl = getAbsoluteUrl(path, baseUrl);
15526
- return cleanUrl(maybeAbsoluteUrl);
15527
- }
15528
-
15529
- //#endregion
15530
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/matching/matchRequestUrl.mjs
15531
- var import_dist = __toESM(require_dist(), 1);
15532
- function coercePath(path) {
15533
- return path.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g, (_, parameterName, wildcard) => {
15534
- const expression = "(.*)";
15535
- if (!parameterName) return expression;
15536
- return parameterName.startsWith(":") ? `${parameterName}${wildcard}` : `${parameterName}${expression}`;
15537
- }).replace(/([^\/])(:)(?=\d+)/, "$1\\$2").replace(/^([^\/]+)(:)(?=\/\/)/, "$1\\$2");
15538
- }
15539
- function matchRequestUrl(url, path, baseUrl) {
15540
- const normalizedPath = normalizePath(path, baseUrl);
15541
- const cleanPath = typeof normalizedPath === "string" ? coercePath(normalizedPath) : normalizedPath;
15542
- const cleanUrl$1 = getCleanUrl(url);
15543
- const result = (0, import_dist.match)(cleanPath, { decode: decodeURIComponent })(cleanUrl$1);
15544
- const params = result && result.params || {};
15545
- return {
15546
- matches: result !== false,
15547
- params
15548
- };
15549
- }
15550
-
15551
- //#endregion
15552
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/getCallFrame.mjs
15553
- const SOURCE_FRAME = /[\/\\]msw[\/\\]src[\/\\](.+)/;
15554
- const BUILD_FRAME = /(node_modules)?[\/\\]lib[\/\\](core|browser|node|native|iife)[\/\\]|^[^\/\\]*$/;
15555
- function getCallFrame(error$2) {
15556
- const stack = error$2.stack;
15557
- if (!stack) return;
15558
- const frames = stack.split("\n").slice(1);
15559
- const declarationFrame = frames.find((frame) => {
15560
- return !(SOURCE_FRAME.test(frame) || BUILD_FRAME.test(frame));
15561
- });
15562
- if (!declarationFrame) return;
15563
- const declarationPath = declarationFrame.replace(/\s*at [^()]*\(([^)]+)\)/, "$1").replace(/^@/, "");
15564
- return declarationPath;
15565
- }
15566
-
15567
- //#endregion
15568
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/handlers/WebSocketHandler.mjs
15569
- const kEmitter$1 = Symbol("kEmitter");
15570
- const kDispatchEvent = Symbol("kDispatchEvent");
15571
- const kSender = Symbol("kSender");
15572
- const kStopPropagationPatched = Symbol("kStopPropagationPatched");
15573
- const KOnStopPropagation = Symbol("KOnStopPropagation");
15574
- var WebSocketHandler = class {
15575
- constructor(url) {
15576
- this.url = url;
15577
- this.id = createRequestId$1();
15578
- this[kEmitter$1] = new Emitter();
15579
- this.callFrame = getCallFrame(new Error());
15580
- this.__kind = "EventHandler";
15581
- }
15582
- __kind;
15583
- id;
15584
- callFrame;
15585
- [kEmitter$1];
15586
- parse(args) {
15587
- const { data: connection } = args.event;
15588
- const { url: clientUrl } = connection.client;
15589
- clientUrl.pathname = clientUrl.pathname.replace(/^\/socket.io\//, "/");
15590
- const match$2 = matchRequestUrl(clientUrl, this.url);
15591
- return { match: match$2 };
15592
- }
15593
- predicate(args) {
15594
- return args.parsedResult.match.matches;
15595
- }
15596
- async [kDispatchEvent](event) {
15597
- const parsedResult = this.parse({ event });
15598
- const connection = event.data;
15599
- const resolvedConnection = {
15600
- ...connection,
15601
- params: parsedResult.match.params || {}
15602
- };
15603
- connection.client.addEventListener("message", createStopPropagationListener(this));
15604
- connection.client.addEventListener("close", createStopPropagationListener(this));
15605
- connection.server.addEventListener("open", createStopPropagationListener(this));
15606
- connection.server.addEventListener("message", createStopPropagationListener(this));
15607
- connection.server.addEventListener("error", createStopPropagationListener(this));
15608
- connection.server.addEventListener("close", createStopPropagationListener(this));
15609
- this[kEmitter$1].emit("connection", resolvedConnection);
15610
- }
15611
- };
15612
- function createStopPropagationListener(handler) {
15613
- return function stopPropagationListener(event) {
15614
- const propagationStoppedAt = Reflect.get(event, "kPropagationStoppedAt");
15615
- if (propagationStoppedAt && handler.id !== propagationStoppedAt) {
15616
- event.stopImmediatePropagation();
15617
- return;
15618
- }
15619
- Object.defineProperty(event, KOnStopPropagation, {
15620
- value() {
15621
- Object.defineProperty(event, "kPropagationStoppedAt", { value: handler.id });
15622
- },
15623
- configurable: true
15624
- });
15625
- if (!Reflect.get(event, kStopPropagationPatched)) {
15626
- event.stopPropagation = new Proxy(event.stopPropagation, { apply: (target, thisArg, args) => {
15627
- Reflect.get(event, KOnStopPropagation)?.call(handler);
15628
- return Reflect.apply(target, thisArg, args);
15629
- } });
15630
- Object.defineProperty(event, kStopPropagationPatched, {
15631
- value: true,
15632
- configurable: false
15633
- });
15634
- }
15635
- };
15636
- }
15637
-
15638
- //#endregion
15639
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/chunk-TX5GBTFY.mjs
15640
- function hasConfigurableGlobal(propertyName) {
15641
- const descriptor = Object.getOwnPropertyDescriptor(globalThis, propertyName);
15642
- if (typeof descriptor === "undefined") return false;
15643
- if (typeof descriptor.get === "function" && typeof descriptor.get() === "undefined") return false;
15644
- if (typeof descriptor.get === "undefined" && descriptor.value == null) return false;
15645
- if (typeof descriptor.set === "undefined" && !descriptor.configurable) {
15646
- console.error(`[MSW] Failed to apply interceptor: the global \`${propertyName}\` property is non-configurable. This is likely an issue with your environment. If you are using a framework, please open an issue about this in their repository.`);
15647
- return false;
15648
- }
15649
- return true;
15650
- }
15651
-
15652
- //#endregion
15653
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/chunk-QED3Q6Z2.mjs
15654
- function getGlobalSymbol(symbol) {
15655
- return globalThis[symbol] || void 0;
15656
- }
15657
- function setGlobalSymbol(symbol, value) {
15658
- globalThis[symbol] = value;
15659
- }
15660
- function deleteGlobalSymbol(symbol) {
15661
- delete globalThis[symbol];
15662
- }
15663
- var Interceptor = class {
15664
- constructor(symbol) {
15665
- this.symbol = symbol;
15666
- this.readyState = "INACTIVE";
15667
- this.emitter = new Emitter();
15668
- this.subscriptions = [];
15669
- this.logger = new Logger(symbol.description);
15670
- this.emitter.setMaxListeners(0);
15671
- this.logger.info("constructing the interceptor...");
15672
- }
15673
- /**
15674
- * Determine if this interceptor can be applied
15675
- * in the current environment.
15676
- */
15677
- checkEnvironment() {
15678
- return true;
15679
- }
15680
- /**
15681
- * Apply this interceptor to the current process.
15682
- * Returns an already running interceptor instance if it's present.
15683
- */
15684
- apply() {
15685
- const logger$2 = this.logger.extend("apply");
15686
- logger$2.info("applying the interceptor...");
15687
- if (this.readyState === "APPLIED") {
15688
- logger$2.info("intercepted already applied!");
15689
- return;
15690
- }
15691
- const shouldApply = this.checkEnvironment();
15692
- if (!shouldApply) {
15693
- logger$2.info("the interceptor cannot be applied in this environment!");
15694
- return;
15695
- }
15696
- this.readyState = "APPLYING";
15697
- const runningInstance = this.getInstance();
15698
- if (runningInstance) {
15699
- logger$2.info("found a running instance, reusing...");
15700
- this.on = (event, listener) => {
15701
- logger$2.info("proxying the \"%s\" listener", event);
15702
- runningInstance.emitter.addListener(event, listener);
15703
- this.subscriptions.push(() => {
15704
- runningInstance.emitter.removeListener(event, listener);
15705
- logger$2.info("removed proxied \"%s\" listener!", event);
15706
- });
15707
- return this;
15708
- };
15709
- this.readyState = "APPLIED";
15710
- return;
15711
- }
15712
- logger$2.info("no running instance found, setting up a new instance...");
15713
- this.setup();
15714
- this.setInstance();
15715
- this.readyState = "APPLIED";
15716
- }
15717
- /**
15718
- * Setup the module augments and stubs necessary for this interceptor.
15719
- * This method is not run if there's a running interceptor instance
15720
- * to prevent instantiating an interceptor multiple times.
15721
- */
15722
- setup() {}
15723
- /**
15724
- * Listen to the interceptor's public events.
15725
- */
15726
- on(event, listener) {
15727
- const logger$2 = this.logger.extend("on");
15728
- if (this.readyState === "DISPOSING" || this.readyState === "DISPOSED") {
15729
- logger$2.info("cannot listen to events, already disposed!");
15730
- return this;
15731
- }
15732
- logger$2.info("adding \"%s\" event listener:", event, listener);
15733
- this.emitter.on(event, listener);
15734
- return this;
15735
- }
15736
- once(event, listener) {
15737
- this.emitter.once(event, listener);
15738
- return this;
15739
- }
15740
- off(event, listener) {
15741
- this.emitter.off(event, listener);
15742
- return this;
15743
- }
15744
- removeAllListeners(event) {
15745
- this.emitter.removeAllListeners(event);
15746
- return this;
15747
- }
15748
- /**
15749
- * Disposes of any side-effects this interceptor has introduced.
15750
- */
15751
- dispose() {
15752
- const logger$2 = this.logger.extend("dispose");
15753
- if (this.readyState === "DISPOSED") {
15754
- logger$2.info("cannot dispose, already disposed!");
15755
- return;
15756
- }
15757
- logger$2.info("disposing the interceptor...");
15758
- this.readyState = "DISPOSING";
15759
- if (!this.getInstance()) {
15760
- logger$2.info("no interceptors running, skipping dispose...");
15761
- return;
15762
- }
15763
- this.clearInstance();
15764
- logger$2.info("global symbol deleted:", getGlobalSymbol(this.symbol));
15765
- if (this.subscriptions.length > 0) {
15766
- logger$2.info("disposing of %d subscriptions...", this.subscriptions.length);
15767
- for (const dispose of this.subscriptions) dispose();
15768
- this.subscriptions = [];
15769
- logger$2.info("disposed of all subscriptions!", this.subscriptions.length);
15770
- }
15771
- this.emitter.removeAllListeners();
15772
- logger$2.info("destroyed the listener!");
15773
- this.readyState = "DISPOSED";
15774
- }
15775
- getInstance() {
15776
- var _a$1;
15777
- const instance = getGlobalSymbol(this.symbol);
15778
- this.logger.info("retrieved global instance:", (_a$1 = instance == null ? void 0 : instance.constructor) == null ? void 0 : _a$1.name);
15779
- return instance;
15256
+ getInstance() {
15257
+ var _a$1;
15258
+ const instance = getGlobalSymbol(this.symbol);
15259
+ this.logger.info("retrieved global instance:", (_a$1 = instance == null ? void 0 : instance.constructor) == null ? void 0 : _a$1.name);
15260
+ return instance;
15780
15261
  }
15781
15262
  setInstance() {
15782
15263
  setGlobalSymbol(this.symbol, this);
@@ -15792,7 +15273,7 @@ function createRequestId() {
15792
15273
  }
15793
15274
 
15794
15275
  //#endregion
15795
- //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.38.7/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.mjs
15276
+ //#region ../../node_modules/.pnpm/@mswjs+interceptors@0.39.2/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.mjs
15796
15277
  function bindEvent(target, event) {
15797
15278
  Object.defineProperties(event, {
15798
15279
  target: {
@@ -16290,353 +15771,824 @@ var WebSocketInterceptor = _WebSocketInterceptor;
16290
15771
  WebSocketInterceptor.symbol = Symbol("websocket");
16291
15772
 
16292
15773
  //#endregion
16293
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/ws/webSocketInterceptor.mjs
16294
- const webSocketInterceptor = new WebSocketInterceptor();
15774
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/ws/webSocketInterceptor.mjs
15775
+ const webSocketInterceptor = new WebSocketInterceptor();
15776
+
15777
+ //#endregion
15778
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isHandlerKind.mjs
15779
+ function isHandlerKind(kind) {
15780
+ return (input) => {
15781
+ return input != null && typeof input === "object" && "__kind" in input && input.__kind === kind;
15782
+ };
15783
+ }
15784
+
15785
+ //#endregion
15786
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/ws/handleWebSocketEvent.mjs
15787
+ function handleWebSocketEvent(options) {
15788
+ webSocketInterceptor.on("connection", async (connection) => {
15789
+ const handlers = options.getHandlers().filter(isHandlerKind("EventHandler"));
15790
+ if (handlers.length > 0) {
15791
+ options?.onMockedConnection(connection);
15792
+ await Promise.all(handlers.map((handler) => {
15793
+ return handler.run(connection);
15794
+ }));
15795
+ return;
15796
+ }
15797
+ const request = new Request(connection.client.url, { headers: {
15798
+ upgrade: "websocket",
15799
+ connection: "upgrade"
15800
+ } });
15801
+ await onUnhandledRequest(request, options.getUnhandledRequestStrategy()).catch((error$2) => {
15802
+ const errorEvent = new Event("error");
15803
+ Object.defineProperty(errorEvent, "cause", {
15804
+ enumerable: true,
15805
+ configurable: false,
15806
+ value: error$2
15807
+ });
15808
+ connection.client.socket.dispatchEvent(errorEvent);
15809
+ });
15810
+ options?.onPassthroughConnection(connection);
15811
+ connection.server.connect();
15812
+ });
15813
+ }
15814
+
15815
+ //#endregion
15816
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/node/index.mjs
15817
+ var DEFAULT_LISTEN_OPTIONS = { onUnhandledRequest: "warn" };
15818
+ var SetupServerCommonApi = class extends SetupApi {
15819
+ interceptor;
15820
+ resolvedOptions;
15821
+ constructor(interceptors, handlers) {
15822
+ super(...handlers);
15823
+ this.interceptor = new BatchInterceptor({
15824
+ name: "setup-server",
15825
+ interceptors
15826
+ });
15827
+ this.resolvedOptions = {};
15828
+ }
15829
+ /**
15830
+ * Subscribe to all requests that are using the interceptor object
15831
+ */
15832
+ init() {
15833
+ this.interceptor.on("request", async ({ request, requestId, controller }) => {
15834
+ const response = await handleRequest(request, requestId, this.handlersController.currentHandlers().filter(isHandlerKind("RequestHandler")), this.resolvedOptions, this.emitter, { onPassthroughResponse(request2) {
15835
+ const acceptHeader = request2.headers.get("accept");
15836
+ if (acceptHeader) {
15837
+ const nextAcceptHeader = acceptHeader.replace(/(,\s+)?msw\/passthrough/, "");
15838
+ if (nextAcceptHeader) request2.headers.set("accept", nextAcceptHeader);
15839
+ else request2.headers.delete("accept");
15840
+ }
15841
+ } });
15842
+ if (response) controller.respondWith(response);
15843
+ return;
15844
+ });
15845
+ this.interceptor.on("unhandledException", ({ error: error$2 }) => {
15846
+ if (error$2 instanceof InternalError) throw error$2;
15847
+ });
15848
+ this.interceptor.on("response", ({ response, isMockedResponse, request, requestId }) => {
15849
+ this.emitter.emit(isMockedResponse ? "response:mocked" : "response:bypass", {
15850
+ response,
15851
+ request,
15852
+ requestId
15853
+ });
15854
+ });
15855
+ handleWebSocketEvent({
15856
+ getUnhandledRequestStrategy: () => {
15857
+ return this.resolvedOptions.onUnhandledRequest;
15858
+ },
15859
+ getHandlers: () => {
15860
+ return this.handlersController.currentHandlers();
15861
+ },
15862
+ onMockedConnection: () => {},
15863
+ onPassthroughConnection: () => {}
15864
+ });
15865
+ }
15866
+ listen(options = {}) {
15867
+ this.resolvedOptions = mergeRight(DEFAULT_LISTEN_OPTIONS, options);
15868
+ this.interceptor.apply();
15869
+ this.init();
15870
+ this.subscriptions.push(() => this.interceptor.dispose());
15871
+ webSocketInterceptor.apply();
15872
+ this.subscriptions.push(() => webSocketInterceptor.dispose());
15873
+ invariant([InterceptorReadyState.APPLYING, InterceptorReadyState.APPLIED].includes(this.interceptor.readyState), devUtils.formatMessage("Failed to start \"setupServer\": the interceptor failed to apply. This is likely an issue with the library and you should report it at \"%s\"."), "https://github.com/mswjs/msw/issues/new/choose");
15874
+ }
15875
+ close() {
15876
+ this.dispose();
15877
+ }
15878
+ };
15879
+ var store = new AsyncLocalStorage();
15880
+ var AsyncHandlersController = class {
15881
+ rootContext;
15882
+ constructor(initialHandlers) {
15883
+ this.rootContext = {
15884
+ initialHandlers,
15885
+ handlers: []
15886
+ };
15887
+ }
15888
+ get context() {
15889
+ return store.getStore() || this.rootContext;
15890
+ }
15891
+ prepend(runtimeHandlers) {
15892
+ this.context.handlers.unshift(...runtimeHandlers);
15893
+ }
15894
+ reset(nextHandlers) {
15895
+ const context$1 = this.context;
15896
+ context$1.handlers = [];
15897
+ context$1.initialHandlers = nextHandlers.length > 0 ? nextHandlers : context$1.initialHandlers;
15898
+ }
15899
+ currentHandlers() {
15900
+ const { initialHandlers, handlers } = this.context;
15901
+ return handlers.concat(initialHandlers);
15902
+ }
15903
+ };
15904
+ var SetupServerApi = class extends SetupServerCommonApi {
15905
+ constructor(handlers, interceptors = [
15906
+ new ClientRequestInterceptor(),
15907
+ new XMLHttpRequestInterceptor(),
15908
+ new FetchInterceptor()
15909
+ ]) {
15910
+ super(interceptors, handlers);
15911
+ this.handlersController = new AsyncHandlersController(handlers);
15912
+ }
15913
+ boundary(callback) {
15914
+ return (...args) => {
15915
+ return store.run({
15916
+ initialHandlers: this.handlersController.currentHandlers(),
15917
+ handlers: []
15918
+ }, callback, ...args);
15919
+ };
15920
+ }
15921
+ close() {
15922
+ super.close();
15923
+ store.disable();
15924
+ }
15925
+ };
15926
+ var setupServer = (...handlers) => {
15927
+ return new SetupServerApi(handlers);
15928
+ };
15929
+
15930
+ //#endregion
15931
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/getCallFrame.mjs
15932
+ const SOURCE_FRAME = /[\/\\]msw[\/\\]src[\/\\](.+)/;
15933
+ const BUILD_FRAME = /(node_modules)?[\/\\]lib[\/\\](core|browser|node|native|iife)[\/\\]|^[^\/\\]*$/;
15934
+ function getCallFrame(error$2) {
15935
+ const stack = error$2.stack;
15936
+ if (!stack) return;
15937
+ const frames = stack.split("\n").slice(1);
15938
+ const declarationFrame = frames.find((frame) => {
15939
+ return !(SOURCE_FRAME.test(frame) || BUILD_FRAME.test(frame));
15940
+ });
15941
+ if (!declarationFrame) return;
15942
+ const declarationPath = declarationFrame.replace(/\s*at [^()]*\(([^)]+)\)/, "$1").replace(/^@/, "");
15943
+ return declarationPath;
15944
+ }
15945
+
15946
+ //#endregion
15947
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isIterable.mjs
15948
+ function isIterable(fn) {
15949
+ if (!fn) return false;
15950
+ return Reflect.has(fn, Symbol.iterator) || Reflect.has(fn, Symbol.asyncIterator);
15951
+ }
15952
+
15953
+ //#endregion
15954
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/handlers/RequestHandler.mjs
15955
+ var RequestHandler = class RequestHandler {
15956
+ static cache = /* @__PURE__ */ new WeakMap();
15957
+ __kind;
15958
+ info;
15959
+ /**
15960
+ * Indicates whether this request handler has been used
15961
+ * (its resolver has successfully executed).
15962
+ */
15963
+ isUsed;
15964
+ resolver;
15965
+ resolverIterator;
15966
+ resolverIteratorResult;
15967
+ options;
15968
+ constructor(args) {
15969
+ this.resolver = args.resolver;
15970
+ this.options = args.options;
15971
+ const callFrame = getCallFrame(/* @__PURE__ */ new Error());
15972
+ this.info = {
15973
+ ...args.info,
15974
+ callFrame
15975
+ };
15976
+ this.isUsed = false;
15977
+ this.__kind = "RequestHandler";
15978
+ }
15979
+ /**
15980
+ * Parse the intercepted request to extract additional information from it.
15981
+ * Parsed result is then exposed to other methods of this request handler.
15982
+ */
15983
+ async parse(_args) {
15984
+ return {};
15985
+ }
15986
+ /**
15987
+ * Test if this handler matches the given request.
15988
+ *
15989
+ * This method is not used internally but is exposed
15990
+ * as a convenience method for consumers writing custom
15991
+ * handlers.
15992
+ */
15993
+ async test(args) {
15994
+ const parsedResult = await this.parse({
15995
+ request: args.request,
15996
+ resolutionContext: args.resolutionContext
15997
+ });
15998
+ return this.predicate({
15999
+ request: args.request,
16000
+ parsedResult,
16001
+ resolutionContext: args.resolutionContext
16002
+ });
16003
+ }
16004
+ extendResolverArgs(_args) {
16005
+ return {};
16006
+ }
16007
+ cloneRequestOrGetFromCache(request) {
16008
+ const existingClone = RequestHandler.cache.get(request);
16009
+ if (typeof existingClone !== "undefined") return existingClone;
16010
+ const clonedRequest = request.clone();
16011
+ RequestHandler.cache.set(request, clonedRequest);
16012
+ return clonedRequest;
16013
+ }
16014
+ /**
16015
+ * Execute this request handler and produce a mocked response
16016
+ * using the given resolver function.
16017
+ */
16018
+ async run(args) {
16019
+ if (this.isUsed && this.options?.once) return null;
16020
+ const requestClone = this.cloneRequestOrGetFromCache(args.request);
16021
+ const parsedResult = await this.parse({
16022
+ request: args.request,
16023
+ resolutionContext: args.resolutionContext
16024
+ });
16025
+ const shouldInterceptRequest = this.predicate({
16026
+ request: args.request,
16027
+ parsedResult,
16028
+ resolutionContext: args.resolutionContext
16029
+ });
16030
+ if (!shouldInterceptRequest) return null;
16031
+ if (this.isUsed && this.options?.once) return null;
16032
+ this.isUsed = true;
16033
+ const executeResolver = this.wrapResolver(this.resolver);
16034
+ const resolverExtras = this.extendResolverArgs({
16035
+ request: args.request,
16036
+ parsedResult
16037
+ });
16038
+ const mockedResponsePromise = executeResolver({
16039
+ ...resolverExtras,
16040
+ requestId: args.requestId,
16041
+ request: args.request
16042
+ }).catch((errorOrResponse) => {
16043
+ if (errorOrResponse instanceof Response) return errorOrResponse;
16044
+ throw errorOrResponse;
16045
+ });
16046
+ const mockedResponse = await mockedResponsePromise;
16047
+ const executionResult = this.createExecutionResult({
16048
+ request: requestClone,
16049
+ requestId: args.requestId,
16050
+ response: mockedResponse,
16051
+ parsedResult
16052
+ });
16053
+ return executionResult;
16054
+ }
16055
+ wrapResolver(resolver) {
16056
+ return async (info) => {
16057
+ if (!this.resolverIterator) {
16058
+ const result = await resolver(info);
16059
+ if (!isIterable(result)) return result;
16060
+ this.resolverIterator = Symbol.iterator in result ? result[Symbol.iterator]() : result[Symbol.asyncIterator]();
16061
+ }
16062
+ this.isUsed = false;
16063
+ const { done, value } = await this.resolverIterator.next();
16064
+ const nextResponse = await value;
16065
+ if (nextResponse) this.resolverIteratorResult = nextResponse.clone();
16066
+ if (done) {
16067
+ this.isUsed = true;
16068
+ return this.resolverIteratorResult?.clone();
16069
+ }
16070
+ return nextResponse;
16071
+ };
16072
+ }
16073
+ createExecutionResult(args) {
16074
+ return {
16075
+ handler: this,
16076
+ request: args.request,
16077
+ requestId: args.requestId,
16078
+ response: args.response,
16079
+ parsedResult: args.parsedResult
16080
+ };
16081
+ }
16082
+ };
16083
+
16084
+ //#endregion
16085
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isStringEqual.mjs
16086
+ function isStringEqual(actual, expected) {
16087
+ return actual.toLowerCase() === expected.toLowerCase();
16088
+ }
16089
+
16090
+ //#endregion
16091
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.mjs
16092
+ function getStatusCodeColor(status$1) {
16093
+ if (status$1 < 300) return "#69AB32";
16094
+ if (status$1 < 400) return "#F0BB4B";
16095
+ return "#E95F5D";
16096
+ }
16097
+
16098
+ //#endregion
16099
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/getTimestamp.mjs
16100
+ function getTimestamp(options) {
16101
+ const now = /* @__PURE__ */ new Date();
16102
+ const timestamp = `${now.getHours().toString().padStart(2, "0")}:${now.getMinutes().toString().padStart(2, "0")}:${now.getSeconds().toString().padStart(2, "0")}`;
16103
+ if (options?.milliseconds) return `${timestamp}.${now.getMilliseconds().toString().padStart(3, "0")}`;
16104
+ return timestamp;
16105
+ }
16295
16106
 
16296
16107
  //#endregion
16297
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isHandlerKind.mjs
16298
- function isHandlerKind(kind) {
16299
- return (input) => {
16300
- return input != null && typeof input === "object" && "__kind" in input && input.__kind === kind;
16108
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/serializeRequest.mjs
16109
+ async function serializeRequest(request) {
16110
+ const requestClone = request.clone();
16111
+ const requestText = await requestClone.text();
16112
+ return {
16113
+ url: new URL(request.url),
16114
+ method: request.method,
16115
+ headers: Object.fromEntries(request.headers.entries()),
16116
+ body: requestText
16301
16117
  };
16302
16118
  }
16303
16119
 
16304
16120
  //#endregion
16305
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/ws/handleWebSocketEvent.mjs
16306
- function handleWebSocketEvent(options) {
16307
- webSocketInterceptor.on("connection", async (connection) => {
16308
- const handlers = options.getHandlers();
16309
- const connectionEvent = new MessageEvent("connection", { data: connection });
16310
- const matchingHandlers = [];
16311
- for (const handler of handlers) if (isHandlerKind("EventHandler")(handler) && handler.predicate({
16312
- event: connectionEvent,
16313
- parsedResult: handler.parse({ event: connectionEvent })
16314
- })) matchingHandlers.push(handler);
16315
- if (matchingHandlers.length > 0) {
16316
- options?.onMockedConnection(connection);
16317
- for (const handler of matchingHandlers) handler[kDispatchEvent](connectionEvent);
16318
- } else {
16319
- const request = new Request(connection.client.url, { headers: {
16320
- upgrade: "websocket",
16321
- connection: "upgrade"
16322
- } });
16323
- await onUnhandledRequest(request, options.getUnhandledRequestStrategy()).catch((error$2) => {
16324
- const errorEvent = new Event("error");
16325
- Object.defineProperty(errorEvent, "cause", {
16326
- enumerable: true,
16327
- configurable: false,
16328
- value: error$2
16329
- });
16330
- connection.client.socket.dispatchEvent(errorEvent);
16331
- });
16332
- options?.onPassthroughConnection(connection);
16333
- connection.server.connect();
16334
- }
16335
- });
16121
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/serializeResponse.mjs
16122
+ const { message: message$1 } = source_default$1;
16123
+ async function serializeResponse(response) {
16124
+ const responseClone = response.clone();
16125
+ const responseText = await responseClone.text();
16126
+ const responseStatus = responseClone.status || 200;
16127
+ const responseStatusText = responseClone.statusText || message$1[responseStatus] || "OK";
16128
+ return {
16129
+ status: responseStatus,
16130
+ statusText: responseStatusText,
16131
+ headers: Object.fromEntries(responseClone.headers.entries()),
16132
+ body: responseText
16133
+ };
16336
16134
  }
16337
16135
 
16338
16136
  //#endregion
16339
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/node/index.mjs
16340
- var DEFAULT_LISTEN_OPTIONS = { onUnhandledRequest: "warn" };
16341
- var SetupServerCommonApi = class extends SetupApi {
16342
- interceptor;
16343
- resolvedOptions;
16344
- constructor(interceptors, handlers) {
16345
- super(...handlers);
16346
- this.interceptor = new BatchInterceptor({
16347
- name: "setup-server",
16348
- interceptors
16349
- });
16350
- this.resolvedOptions = {};
16351
- }
16137
+ //#region ../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js
16138
+ var require_dist = __commonJS$4({ "../../node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist/index.js"(exports) {
16139
+ Object.defineProperty(exports, "__esModule", { value: true });
16140
+ exports.pathToRegexp = exports.tokensToRegexp = exports.regexpToFunction = exports.match = exports.tokensToFunction = exports.compile = exports.parse = void 0;
16352
16141
  /**
16353
- * Subscribe to all requests that are using the interceptor object
16142
+ * Tokenize input string.
16354
16143
  */
16355
- init() {
16356
- this.interceptor.on("request", async ({ request, requestId, controller }) => {
16357
- const response = await handleRequest(request, requestId, this.handlersController.currentHandlers().filter(isHandlerKind("RequestHandler")), this.resolvedOptions, this.emitter, { onPassthroughResponse(request2) {
16358
- const acceptHeader = request2.headers.get("accept");
16359
- if (acceptHeader) {
16360
- const nextAcceptHeader = acceptHeader.replace(/(,\s+)?msw\/passthrough/, "");
16361
- if (nextAcceptHeader) request2.headers.set("accept", nextAcceptHeader);
16362
- else request2.headers.delete("accept");
16144
+ function lexer(str) {
16145
+ var tokens = [];
16146
+ var i = 0;
16147
+ while (i < str.length) {
16148
+ var char = str[i];
16149
+ if (char === "*" || char === "+" || char === "?") {
16150
+ tokens.push({
16151
+ type: "MODIFIER",
16152
+ index: i,
16153
+ value: str[i++]
16154
+ });
16155
+ continue;
16156
+ }
16157
+ if (char === "\\") {
16158
+ tokens.push({
16159
+ type: "ESCAPED_CHAR",
16160
+ index: i++,
16161
+ value: str[i++]
16162
+ });
16163
+ continue;
16164
+ }
16165
+ if (char === "{") {
16166
+ tokens.push({
16167
+ type: "OPEN",
16168
+ index: i,
16169
+ value: str[i++]
16170
+ });
16171
+ continue;
16172
+ }
16173
+ if (char === "}") {
16174
+ tokens.push({
16175
+ type: "CLOSE",
16176
+ index: i,
16177
+ value: str[i++]
16178
+ });
16179
+ continue;
16180
+ }
16181
+ if (char === ":") {
16182
+ var name$2 = "";
16183
+ var j = i + 1;
16184
+ while (j < str.length) {
16185
+ var code = str.charCodeAt(j);
16186
+ if (code >= 48 && code <= 57 || code >= 65 && code <= 90 || code >= 97 && code <= 122 || code === 95) {
16187
+ name$2 += str[j++];
16188
+ continue;
16189
+ }
16190
+ break;
16363
16191
  }
16364
- } });
16365
- if (response) controller.respondWith(response);
16366
- return;
16367
- });
16368
- this.interceptor.on("unhandledException", ({ error: error$2 }) => {
16369
- if (error$2 instanceof InternalError) throw error$2;
16370
- });
16371
- this.interceptor.on("response", ({ response, isMockedResponse, request, requestId }) => {
16372
- this.emitter.emit(isMockedResponse ? "response:mocked" : "response:bypass", {
16373
- response,
16374
- request,
16375
- requestId
16192
+ if (!name$2) throw new TypeError("Missing parameter name at ".concat(i));
16193
+ tokens.push({
16194
+ type: "NAME",
16195
+ index: i,
16196
+ value: name$2
16197
+ });
16198
+ i = j;
16199
+ continue;
16200
+ }
16201
+ if (char === "(") {
16202
+ var count$1 = 1;
16203
+ var pattern = "";
16204
+ var j = i + 1;
16205
+ if (str[j] === "?") throw new TypeError("Pattern cannot start with \"?\" at ".concat(j));
16206
+ while (j < str.length) {
16207
+ if (str[j] === "\\") {
16208
+ pattern += str[j++] + str[j++];
16209
+ continue;
16210
+ }
16211
+ if (str[j] === ")") {
16212
+ count$1--;
16213
+ if (count$1 === 0) {
16214
+ j++;
16215
+ break;
16216
+ }
16217
+ } else if (str[j] === "(") {
16218
+ count$1++;
16219
+ if (str[j + 1] !== "?") throw new TypeError("Capturing groups are not allowed at ".concat(j));
16220
+ }
16221
+ pattern += str[j++];
16222
+ }
16223
+ if (count$1) throw new TypeError("Unbalanced pattern at ".concat(i));
16224
+ if (!pattern) throw new TypeError("Missing pattern at ".concat(i));
16225
+ tokens.push({
16226
+ type: "PATTERN",
16227
+ index: i,
16228
+ value: pattern
16229
+ });
16230
+ i = j;
16231
+ continue;
16232
+ }
16233
+ tokens.push({
16234
+ type: "CHAR",
16235
+ index: i,
16236
+ value: str[i++]
16376
16237
  });
16238
+ }
16239
+ tokens.push({
16240
+ type: "END",
16241
+ index: i,
16242
+ value: ""
16377
16243
  });
16378
- handleWebSocketEvent({
16379
- getUnhandledRequestStrategy: () => {
16380
- return this.resolvedOptions.onUnhandledRequest;
16381
- },
16382
- getHandlers: () => {
16383
- return this.handlersController.currentHandlers();
16384
- },
16385
- onMockedConnection: () => {},
16386
- onPassthroughConnection: () => {}
16387
- });
16244
+ return tokens;
16388
16245
  }
16389
- listen(options = {}) {
16390
- this.resolvedOptions = mergeRight(DEFAULT_LISTEN_OPTIONS, options);
16391
- this.interceptor.apply();
16392
- this.init();
16393
- this.subscriptions.push(() => this.interceptor.dispose());
16394
- webSocketInterceptor.apply();
16395
- this.subscriptions.push(() => webSocketInterceptor.dispose());
16396
- invariant([InterceptorReadyState.APPLYING, InterceptorReadyState.APPLIED].includes(this.interceptor.readyState), devUtils.formatMessage("Failed to start \"setupServer\": the interceptor failed to apply. This is likely an issue with the library and you should report it at \"%s\"."), "https://github.com/mswjs/msw/issues/new/choose");
16246
+ /**
16247
+ * Parse a string for the raw tokens.
16248
+ */
16249
+ function parse$1(str, options) {
16250
+ if (options === void 0) options = {};
16251
+ var tokens = lexer(str);
16252
+ var _a$1 = options.prefixes, prefixes = _a$1 === void 0 ? "./" : _a$1, _b$1 = options.delimiter, delimiter = _b$1 === void 0 ? "/#?" : _b$1;
16253
+ var result = [];
16254
+ var key = 0;
16255
+ var i = 0;
16256
+ var path = "";
16257
+ var tryConsume = function(type$2) {
16258
+ if (i < tokens.length && tokens[i].type === type$2) return tokens[i++].value;
16259
+ };
16260
+ var mustConsume = function(type$2) {
16261
+ var value$1 = tryConsume(type$2);
16262
+ if (value$1 !== void 0) return value$1;
16263
+ var _a$2 = tokens[i], nextType = _a$2.type, index = _a$2.index;
16264
+ throw new TypeError("Unexpected ".concat(nextType, " at ").concat(index, ", expected ").concat(type$2));
16265
+ };
16266
+ var consumeText = function() {
16267
+ var result$1 = "";
16268
+ var value$1;
16269
+ while (value$1 = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR")) result$1 += value$1;
16270
+ return result$1;
16271
+ };
16272
+ var isSafe = function(value$1) {
16273
+ for (var _i = 0, delimiter_1 = delimiter; _i < delimiter_1.length; _i++) {
16274
+ var char$1 = delimiter_1[_i];
16275
+ if (value$1.indexOf(char$1) > -1) return true;
16276
+ }
16277
+ return false;
16278
+ };
16279
+ var safePattern = function(prefix$1) {
16280
+ var prev = result[result.length - 1];
16281
+ var prevText = prefix$1 || (prev && typeof prev === "string" ? prev : "");
16282
+ if (prev && !prevText) throw new TypeError("Must have text between two parameters, missing text after \"".concat(prev.name, "\""));
16283
+ if (!prevText || isSafe(prevText)) return "[^".concat(escapeString(delimiter), "]+?");
16284
+ return "(?:(?!".concat(escapeString(prevText), ")[^").concat(escapeString(delimiter), "])+?");
16285
+ };
16286
+ while (i < tokens.length) {
16287
+ var char = tryConsume("CHAR");
16288
+ var name$2 = tryConsume("NAME");
16289
+ var pattern = tryConsume("PATTERN");
16290
+ if (name$2 || pattern) {
16291
+ var prefix = char || "";
16292
+ if (prefixes.indexOf(prefix) === -1) {
16293
+ path += prefix;
16294
+ prefix = "";
16295
+ }
16296
+ if (path) {
16297
+ result.push(path);
16298
+ path = "";
16299
+ }
16300
+ result.push({
16301
+ name: name$2 || key++,
16302
+ prefix,
16303
+ suffix: "",
16304
+ pattern: pattern || safePattern(prefix),
16305
+ modifier: tryConsume("MODIFIER") || ""
16306
+ });
16307
+ continue;
16308
+ }
16309
+ var value = char || tryConsume("ESCAPED_CHAR");
16310
+ if (value) {
16311
+ path += value;
16312
+ continue;
16313
+ }
16314
+ if (path) {
16315
+ result.push(path);
16316
+ path = "";
16317
+ }
16318
+ var open = tryConsume("OPEN");
16319
+ if (open) {
16320
+ var prefix = consumeText();
16321
+ var name_1 = tryConsume("NAME") || "";
16322
+ var pattern_1 = tryConsume("PATTERN") || "";
16323
+ var suffix = consumeText();
16324
+ mustConsume("CLOSE");
16325
+ result.push({
16326
+ name: name_1 || (pattern_1 ? key++ : ""),
16327
+ pattern: name_1 && !pattern_1 ? safePattern(prefix) : pattern_1,
16328
+ prefix,
16329
+ suffix,
16330
+ modifier: tryConsume("MODIFIER") || ""
16331
+ });
16332
+ continue;
16333
+ }
16334
+ mustConsume("END");
16335
+ }
16336
+ return result;
16397
16337
  }
16398
- close() {
16399
- this.dispose();
16338
+ exports.parse = parse$1;
16339
+ /**
16340
+ * Compile a string to a template function for the path.
16341
+ */
16342
+ function compile(str, options) {
16343
+ return tokensToFunction(parse$1(str, options), options);
16400
16344
  }
16401
- };
16402
- var store = new AsyncLocalStorage();
16403
- var AsyncHandlersController = class {
16404
- rootContext;
16405
- constructor(initialHandlers) {
16406
- this.rootContext = {
16407
- initialHandlers,
16408
- handlers: []
16345
+ exports.compile = compile;
16346
+ /**
16347
+ * Expose a method for transforming tokens into the path function.
16348
+ */
16349
+ function tokensToFunction(tokens, options) {
16350
+ if (options === void 0) options = {};
16351
+ var reFlags = flags$1(options);
16352
+ var _a$1 = options.encode, encode = _a$1 === void 0 ? function(x) {
16353
+ return x;
16354
+ } : _a$1, _b$1 = options.validate, validate = _b$1 === void 0 ? true : _b$1;
16355
+ var matches = tokens.map(function(token) {
16356
+ if (typeof token === "object") return new RegExp("^(?:".concat(token.pattern, ")$"), reFlags);
16357
+ });
16358
+ return function(data) {
16359
+ var path = "";
16360
+ for (var i = 0; i < tokens.length; i++) {
16361
+ var token = tokens[i];
16362
+ if (typeof token === "string") {
16363
+ path += token;
16364
+ continue;
16365
+ }
16366
+ var value = data ? data[token.name] : void 0;
16367
+ var optional = token.modifier === "?" || token.modifier === "*";
16368
+ var repeat = token.modifier === "*" || token.modifier === "+";
16369
+ if (Array.isArray(value)) {
16370
+ if (!repeat) throw new TypeError("Expected \"".concat(token.name, "\" to not repeat, but got an array"));
16371
+ if (value.length === 0) {
16372
+ if (optional) continue;
16373
+ throw new TypeError("Expected \"".concat(token.name, "\" to not be empty"));
16374
+ }
16375
+ for (var j = 0; j < value.length; j++) {
16376
+ var segment = encode(value[j], token);
16377
+ if (validate && !matches[i].test(segment)) throw new TypeError("Expected all \"".concat(token.name, "\" to match \"").concat(token.pattern, "\", but got \"").concat(segment, "\""));
16378
+ path += token.prefix + segment + token.suffix;
16379
+ }
16380
+ continue;
16381
+ }
16382
+ if (typeof value === "string" || typeof value === "number") {
16383
+ var segment = encode(String(value), token);
16384
+ if (validate && !matches[i].test(segment)) throw new TypeError("Expected \"".concat(token.name, "\" to match \"").concat(token.pattern, "\", but got \"").concat(segment, "\""));
16385
+ path += token.prefix + segment + token.suffix;
16386
+ continue;
16387
+ }
16388
+ if (optional) continue;
16389
+ var typeOfMessage = repeat ? "an array" : "a string";
16390
+ throw new TypeError("Expected \"".concat(token.name, "\" to be ").concat(typeOfMessage));
16391
+ }
16392
+ return path;
16409
16393
  };
16410
16394
  }
16411
- get context() {
16412
- return store.getStore() || this.rootContext;
16413
- }
16414
- prepend(runtimeHandlers) {
16415
- this.context.handlers.unshift(...runtimeHandlers);
16416
- }
16417
- reset(nextHandlers) {
16418
- const context$1 = this.context;
16419
- context$1.handlers = [];
16420
- context$1.initialHandlers = nextHandlers.length > 0 ? nextHandlers : context$1.initialHandlers;
16421
- }
16422
- currentHandlers() {
16423
- const { initialHandlers, handlers } = this.context;
16424
- return handlers.concat(initialHandlers);
16425
- }
16426
- };
16427
- var SetupServerApi = class extends SetupServerCommonApi {
16428
- constructor(handlers, interceptors = [
16429
- new ClientRequestInterceptor(),
16430
- new XMLHttpRequestInterceptor(),
16431
- new FetchInterceptor()
16432
- ]) {
16433
- super(interceptors, handlers);
16434
- this.handlersController = new AsyncHandlersController(handlers);
16395
+ exports.tokensToFunction = tokensToFunction;
16396
+ /**
16397
+ * Create path match function from `path-to-regexp` spec.
16398
+ */
16399
+ function match$1(str, options) {
16400
+ var keys = [];
16401
+ var re = pathToRegexp(str, keys, options);
16402
+ return regexpToFunction(re, keys, options);
16435
16403
  }
16436
- boundary(callback) {
16437
- return (...args) => {
16438
- return store.run({
16439
- initialHandlers: this.handlersController.currentHandlers(),
16440
- handlers: []
16441
- }, callback, ...args);
16404
+ exports.match = match$1;
16405
+ /**
16406
+ * Create a path match function from `path-to-regexp` output.
16407
+ */
16408
+ function regexpToFunction(re, keys, options) {
16409
+ if (options === void 0) options = {};
16410
+ var _a$1 = options.decode, decode = _a$1 === void 0 ? function(x) {
16411
+ return x;
16412
+ } : _a$1;
16413
+ return function(pathname) {
16414
+ var m = re.exec(pathname);
16415
+ if (!m) return false;
16416
+ var path = m[0], index = m.index;
16417
+ var params = Object.create(null);
16418
+ var _loop_1 = function(i$1) {
16419
+ if (m[i$1] === void 0) return "continue";
16420
+ var key = keys[i$1 - 1];
16421
+ if (key.modifier === "*" || key.modifier === "+") params[key.name] = m[i$1].split(key.prefix + key.suffix).map(function(value) {
16422
+ return decode(value, key);
16423
+ });
16424
+ else params[key.name] = decode(m[i$1], key);
16425
+ };
16426
+ for (var i = 1; i < m.length; i++) _loop_1(i);
16427
+ return {
16428
+ path,
16429
+ index,
16430
+ params
16431
+ };
16442
16432
  };
16443
16433
  }
16444
- close() {
16445
- super.close();
16446
- store.disable();
16434
+ exports.regexpToFunction = regexpToFunction;
16435
+ /**
16436
+ * Escape a regular expression string.
16437
+ */
16438
+ function escapeString(str) {
16439
+ return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
16447
16440
  }
16448
- };
16449
- var setupServer = (...handlers) => {
16450
- return new SetupServerApi(handlers);
16451
- };
16452
-
16453
- //#endregion
16454
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isIterable.mjs
16455
- function isIterable(fn) {
16456
- if (!fn) return false;
16457
- return Reflect.has(fn, Symbol.iterator) || Reflect.has(fn, Symbol.asyncIterator);
16458
- }
16459
-
16460
- //#endregion
16461
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/handlers/RequestHandler.mjs
16462
- var RequestHandler = class RequestHandler {
16463
- static cache = /* @__PURE__ */ new WeakMap();
16464
- __kind;
16465
- info;
16466
16441
  /**
16467
- * Indicates whether this request handler has been used
16468
- * (its resolver has successfully executed).
16442
+ * Get the flags for a regexp from the options.
16469
16443
  */
16470
- isUsed;
16471
- resolver;
16472
- resolverIterator;
16473
- resolverIteratorResult;
16474
- options;
16475
- constructor(args) {
16476
- this.resolver = args.resolver;
16477
- this.options = args.options;
16478
- const callFrame = getCallFrame(new Error());
16479
- this.info = {
16480
- ...args.info,
16481
- callFrame
16482
- };
16483
- this.isUsed = false;
16484
- this.__kind = "RequestHandler";
16444
+ function flags$1(options) {
16445
+ return options && options.sensitive ? "" : "i";
16485
16446
  }
16486
16447
  /**
16487
- * Parse the intercepted request to extract additional information from it.
16488
- * Parsed result is then exposed to other methods of this request handler.
16448
+ * Pull out keys from a regexp.
16489
16449
  */
16490
- async parse(_args) {
16491
- return {};
16450
+ function regexpToRegexp(path, keys) {
16451
+ if (!keys) return path;
16452
+ var groupsRegex = /\((?:\?<(.*?)>)?(?!\?)/g;
16453
+ var index = 0;
16454
+ var execResult = groupsRegex.exec(path.source);
16455
+ while (execResult) {
16456
+ keys.push({
16457
+ name: execResult[1] || index++,
16458
+ prefix: "",
16459
+ suffix: "",
16460
+ modifier: "",
16461
+ pattern: ""
16462
+ });
16463
+ execResult = groupsRegex.exec(path.source);
16464
+ }
16465
+ return path;
16492
16466
  }
16493
16467
  /**
16494
- * Test if this handler matches the given request.
16495
- *
16496
- * This method is not used internally but is exposed
16497
- * as a convenience method for consumers writing custom
16498
- * handlers.
16468
+ * Transform an array into a regexp.
16499
16469
  */
16500
- async test(args) {
16501
- const parsedResult = await this.parse({
16502
- request: args.request,
16503
- resolutionContext: args.resolutionContext
16504
- });
16505
- return this.predicate({
16506
- request: args.request,
16507
- parsedResult,
16508
- resolutionContext: args.resolutionContext
16470
+ function arrayToRegexp(paths, keys, options) {
16471
+ var parts = paths.map(function(path) {
16472
+ return pathToRegexp(path, keys, options).source;
16509
16473
  });
16474
+ return new RegExp("(?:".concat(parts.join("|"), ")"), flags$1(options));
16510
16475
  }
16511
- extendResolverArgs(_args) {
16512
- return {};
16513
- }
16514
- cloneRequestOrGetFromCache(request) {
16515
- const existingClone = RequestHandler.cache.get(request);
16516
- if (typeof existingClone !== "undefined") return existingClone;
16517
- const clonedRequest = request.clone();
16518
- RequestHandler.cache.set(request, clonedRequest);
16519
- return clonedRequest;
16476
+ /**
16477
+ * Create a path regexp from string input.
16478
+ */
16479
+ function stringToRegexp(path, keys, options) {
16480
+ return tokensToRegexp(parse$1(path, options), keys, options);
16520
16481
  }
16521
16482
  /**
16522
- * Execute this request handler and produce a mocked response
16523
- * using the given resolver function.
16483
+ * Expose a function for taking tokens and returning a RegExp.
16524
16484
  */
16525
- async run(args) {
16526
- if (this.isUsed && this.options?.once) return null;
16527
- const requestClone = this.cloneRequestOrGetFromCache(args.request);
16528
- const parsedResult = await this.parse({
16529
- request: args.request,
16530
- resolutionContext: args.resolutionContext
16531
- });
16532
- const shouldInterceptRequest = this.predicate({
16533
- request: args.request,
16534
- parsedResult,
16535
- resolutionContext: args.resolutionContext
16536
- });
16537
- if (!shouldInterceptRequest) return null;
16538
- if (this.isUsed && this.options?.once) return null;
16539
- this.isUsed = true;
16540
- const executeResolver = this.wrapResolver(this.resolver);
16541
- const resolverExtras = this.extendResolverArgs({
16542
- request: args.request,
16543
- parsedResult
16544
- });
16545
- const mockedResponsePromise = executeResolver({
16546
- ...resolverExtras,
16547
- requestId: args.requestId,
16548
- request: args.request
16549
- }).catch((errorOrResponse) => {
16550
- if (errorOrResponse instanceof Response) return errorOrResponse;
16551
- throw errorOrResponse;
16552
- });
16553
- const mockedResponse = await mockedResponsePromise;
16554
- const executionResult = this.createExecutionResult({
16555
- request: requestClone,
16556
- requestId: args.requestId,
16557
- response: mockedResponse,
16558
- parsedResult
16559
- });
16560
- return executionResult;
16561
- }
16562
- wrapResolver(resolver) {
16563
- return async (info) => {
16564
- if (!this.resolverIterator) {
16565
- const result = await resolver(info);
16566
- if (!isIterable(result)) return result;
16567
- this.resolverIterator = Symbol.iterator in result ? result[Symbol.iterator]() : result[Symbol.asyncIterator]();
16568
- }
16569
- this.isUsed = false;
16570
- const { done, value } = await this.resolverIterator.next();
16571
- const nextResponse = await value;
16572
- if (nextResponse) this.resolverIteratorResult = nextResponse.clone();
16573
- if (done) {
16574
- this.isUsed = true;
16575
- return this.resolverIteratorResult?.clone();
16485
+ function tokensToRegexp(tokens, keys, options) {
16486
+ if (options === void 0) options = {};
16487
+ var _a$1 = options.strict, strict = _a$1 === void 0 ? false : _a$1, _b$1 = options.start, start = _b$1 === void 0 ? true : _b$1, _c$1 = options.end, end = _c$1 === void 0 ? true : _c$1, _d = options.encode, encode = _d === void 0 ? function(x) {
16488
+ return x;
16489
+ } : _d, _e = options.delimiter, delimiter = _e === void 0 ? "/#?" : _e, _f = options.endsWith, endsWith = _f === void 0 ? "" : _f;
16490
+ var endsWithRe = "[".concat(escapeString(endsWith), "]|$");
16491
+ var delimiterRe = "[".concat(escapeString(delimiter), "]");
16492
+ var route = start ? "^" : "";
16493
+ for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
16494
+ var token = tokens_1[_i];
16495
+ if (typeof token === "string") route += escapeString(encode(token));
16496
+ else {
16497
+ var prefix = escapeString(encode(token.prefix));
16498
+ var suffix = escapeString(encode(token.suffix));
16499
+ if (token.pattern) {
16500
+ if (keys) keys.push(token);
16501
+ if (prefix || suffix) if (token.modifier === "+" || token.modifier === "*") {
16502
+ var mod = token.modifier === "*" ? "?" : "";
16503
+ route += "(?:".concat(prefix, "((?:").concat(token.pattern, ")(?:").concat(suffix).concat(prefix, "(?:").concat(token.pattern, "))*)").concat(suffix, ")").concat(mod);
16504
+ } else route += "(?:".concat(prefix, "(").concat(token.pattern, ")").concat(suffix, ")").concat(token.modifier);
16505
+ else {
16506
+ if (token.modifier === "+" || token.modifier === "*") throw new TypeError("Can not repeat \"".concat(token.name, "\" without a prefix and suffix"));
16507
+ route += "(".concat(token.pattern, ")").concat(token.modifier);
16508
+ }
16509
+ } else route += "(?:".concat(prefix).concat(suffix, ")").concat(token.modifier);
16576
16510
  }
16577
- return nextResponse;
16578
- };
16511
+ }
16512
+ if (end) {
16513
+ if (!strict) route += "".concat(delimiterRe, "?");
16514
+ route += !options.endsWith ? "$" : "(?=".concat(endsWithRe, ")");
16515
+ } else {
16516
+ var endToken = tokens[tokens.length - 1];
16517
+ var isEndDelimited = typeof endToken === "string" ? delimiterRe.indexOf(endToken[endToken.length - 1]) > -1 : endToken === void 0;
16518
+ if (!strict) route += "(?:".concat(delimiterRe, "(?=").concat(endsWithRe, "))?");
16519
+ if (!isEndDelimited) route += "(?=".concat(delimiterRe, "|").concat(endsWithRe, ")");
16520
+ }
16521
+ return new RegExp(route, flags$1(options));
16579
16522
  }
16580
- createExecutionResult(args) {
16581
- return {
16582
- handler: this,
16583
- request: args.request,
16584
- requestId: args.requestId,
16585
- response: args.response,
16586
- parsedResult: args.parsedResult
16587
- };
16523
+ exports.tokensToRegexp = tokensToRegexp;
16524
+ /**
16525
+ * Normalize the given path string, returning a regular expression.
16526
+ *
16527
+ * An empty array can be passed in for the keys, which will hold the
16528
+ * placeholder key descriptions. For example, using `/user/:id`, `keys` will
16529
+ * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
16530
+ */
16531
+ function pathToRegexp(path, keys, options) {
16532
+ if (path instanceof RegExp) return regexpToRegexp(path, keys);
16533
+ if (Array.isArray(path)) return arrayToRegexp(path, keys, options);
16534
+ return stringToRegexp(path, keys, options);
16588
16535
  }
16589
- };
16536
+ exports.pathToRegexp = pathToRegexp;
16537
+ } });
16590
16538
 
16591
16539
  //#endregion
16592
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/internal/isStringEqual.mjs
16593
- function isStringEqual(actual, expected) {
16594
- return actual.toLowerCase() === expected.toLowerCase();
16540
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/url/cleanUrl.mjs
16541
+ const REDUNDANT_CHARACTERS_EXP = /[\?|#].*$/g;
16542
+ function getSearchParams(path) {
16543
+ return new URL(`/${path}`, "http://localhost").searchParams;
16544
+ }
16545
+ function cleanUrl(path) {
16546
+ if (path.endsWith("?")) return path;
16547
+ return path.replace(REDUNDANT_CHARACTERS_EXP, "");
16595
16548
  }
16596
16549
 
16597
16550
  //#endregion
16598
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.mjs
16599
- function getStatusCodeColor(status$1) {
16600
- if (status$1 < 300) return "#69AB32";
16601
- if (status$1 < 400) return "#F0BB4B";
16602
- return "#E95F5D";
16551
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.mjs
16552
+ function isAbsoluteUrl(url) {
16553
+ return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
16603
16554
  }
16604
16555
 
16605
16556
  //#endregion
16606
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/getTimestamp.mjs
16607
- function getTimestamp(options) {
16608
- const now = /* @__PURE__ */ new Date();
16609
- const timestamp = `${now.getHours().toString().padStart(2, "0")}:${now.getMinutes().toString().padStart(2, "0")}:${now.getSeconds().toString().padStart(2, "0")}`;
16610
- if (options?.milliseconds) return `${timestamp}.${now.getMilliseconds().toString().padStart(3, "0")}`;
16611
- return timestamp;
16557
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.mjs
16558
+ function getAbsoluteUrl(path, baseUrl) {
16559
+ if (isAbsoluteUrl(path)) return path;
16560
+ if (path.startsWith("*")) return path;
16561
+ const origin = baseUrl || typeof location !== "undefined" && location.href;
16562
+ return origin ? decodeURI(new URL(encodeURI(path), origin).href) : path;
16612
16563
  }
16613
16564
 
16614
16565
  //#endregion
16615
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/serializeRequest.mjs
16616
- async function serializeRequest(request) {
16617
- const requestClone = request.clone();
16618
- const requestText = await requestClone.text();
16619
- return {
16620
- url: new URL(request.url),
16621
- method: request.method,
16622
- headers: Object.fromEntries(request.headers.entries()),
16623
- body: requestText
16624
- };
16566
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/matching/normalizePath.mjs
16567
+ function normalizePath(path, baseUrl) {
16568
+ if (path instanceof RegExp) return path;
16569
+ const maybeAbsoluteUrl = getAbsoluteUrl(path, baseUrl);
16570
+ return cleanUrl(maybeAbsoluteUrl);
16625
16571
  }
16626
16572
 
16627
16573
  //#endregion
16628
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/logging/serializeResponse.mjs
16629
- const { message: message$1 } = source_default$1;
16630
- async function serializeResponse(response) {
16631
- const responseClone = response.clone();
16632
- const responseText = await responseClone.text();
16633
- const responseStatus = responseClone.status || 200;
16634
- const responseStatusText = responseClone.statusText || message$1[responseStatus] || "OK";
16574
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/matching/matchRequestUrl.mjs
16575
+ var import_dist = __toESM$4(require_dist(), 1);
16576
+ function coercePath(path) {
16577
+ return path.replace(/([:a-zA-Z_-]*)(\*{1,2})+/g, (_, parameterName, wildcard) => {
16578
+ const expression = "(.*)";
16579
+ if (!parameterName) return expression;
16580
+ return parameterName.startsWith(":") ? `${parameterName}${wildcard}` : `${parameterName}${expression}`;
16581
+ }).replace(/([^\/])(:)(?=\d+)/, "$1\\$2").replace(/^([^\/]+)(:)(?=\/\/)/, "$1\\$2");
16582
+ }
16583
+ function matchRequestUrl(url, path, baseUrl) {
16584
+ const normalizedPath = normalizePath(path, baseUrl);
16585
+ const cleanPath = typeof normalizedPath === "string" ? coercePath(normalizedPath) : normalizedPath;
16586
+ const cleanUrl$1 = getCleanUrl(url);
16587
+ const result = (0, import_dist.match)(cleanPath, { decode: decodeURIComponent })(cleanUrl$1);
16588
+ const params = result && result.params || {};
16635
16589
  return {
16636
- status: responseStatus,
16637
- statusText: responseStatusText,
16638
- headers: Object.fromEntries(responseClone.headers.entries()),
16639
- body: responseText
16590
+ matches: result !== false,
16591
+ params
16640
16592
  };
16641
16593
  }
16642
16594
 
@@ -16648,7 +16600,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
16648
16600
  var __getOwnPropNames = Object.getOwnPropertyNames;
16649
16601
  var __getProtoOf = Object.getPrototypeOf;
16650
16602
  var __hasOwnProp = Object.prototype.hasOwnProperty;
16651
- var __commonJS$1 = (cb, mod) => function __require$2() {
16603
+ var __commonJS = (cb, mod) => function __require$2() {
16652
16604
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
16653
16605
  };
16654
16606
  var __copyProps = (to, from, except, desc) => {
@@ -16660,11 +16612,11 @@ var __copyProps = (to, from, except, desc) => {
16660
16612
  }
16661
16613
  return to;
16662
16614
  };
16663
- var __toESM$1 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
16615
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
16664
16616
  value: mod,
16665
16617
  enumerable: true
16666
16618
  }) : target, mod));
16667
- var require_cookie = __commonJS$1({ "node_modules/cookie/index.js"(exports$1) {
16619
+ var require_cookie = __commonJS({ "node_modules/cookie/index.js"(exports$1) {
16668
16620
  "use strict";
16669
16621
  exports$1.parse = parse$2;
16670
16622
  exports$1.serialize = serialize;
@@ -16801,7 +16753,7 @@ var require_cookie = __commonJS$1({ "node_modules/cookie/index.js"(exports$1) {
16801
16753
  }
16802
16754
  }
16803
16755
  } });
16804
- var import_cookie = __toESM$1(require_cookie(), 1);
16756
+ var import_cookie = __toESM(require_cookie(), 1);
16805
16757
  var source_default = import_cookie.default;
16806
16758
  /*! Bundled license information:
16807
16759
 
@@ -16815,7 +16767,7 @@ cookie/index.js:
16815
16767
  */
16816
16768
 
16817
16769
  //#endregion
16818
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/utils/request/getRequestCookies.mjs
16770
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/utils/request/getRequestCookies.mjs
16819
16771
  function parseCookies(input) {
16820
16772
  const parsedCookies = source_default.parse(input);
16821
16773
  const cookies = {};
@@ -16852,7 +16804,7 @@ function getAllRequestCookies(request) {
16852
16804
  }
16853
16805
 
16854
16806
  //#endregion
16855
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/handlers/HttpHandler.mjs
16807
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/handlers/HttpHandler.mjs
16856
16808
  var HttpMethods = /* @__PURE__ */ ((HttpMethods2) => {
16857
16809
  HttpMethods2["HEAD"] = "HEAD";
16858
16810
  HttpMethods2["GET"] = "GET";
@@ -16925,7 +16877,7 @@ var HttpHandler = class extends RequestHandler {
16925
16877
  };
16926
16878
 
16927
16879
  //#endregion
16928
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/http.mjs
16880
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/http.mjs
16929
16881
  function createHttpHandler(method) {
16930
16882
  return (path, resolver, options = {}) => {
16931
16883
  return new HttpHandler(method, path, resolver, options);
@@ -16943,7 +16895,7 @@ const http = {
16943
16895
  };
16944
16896
 
16945
16897
  //#endregion
16946
- //#region ../../node_modules/.pnpm/msw@2.8.7_@types+node@22.15.29_typescript@5.8.3/node_modules/msw/lib/core/HttpResponse.mjs
16898
+ //#region ../../node_modules/.pnpm/msw@2.10.2_@types+node@24.0.10_typescript@5.8.3/node_modules/msw/lib/core/HttpResponse.mjs
16947
16899
  const bodyType = Symbol("bodyType");
16948
16900
  var HttpResponse = class HttpResponse extends FetchResponse {
16949
16901
  [bodyType] = null;
@@ -16952,6 +16904,9 @@ var HttpResponse = class HttpResponse extends FetchResponse {
16952
16904
  super(body, responseInit);
16953
16905
  decorateResponse(this, responseInit);
16954
16906
  }
16907
+ static error() {
16908
+ return super.error();
16909
+ }
16955
16910
  /**
16956
16911
  * Create a `Response` with a `Content-Type: "text/plain"` body.
16957
16912
  * @example
@@ -17032,7 +16987,7 @@ var HttpResponse = class HttpResponse extends FetchResponse {
17032
16987
  var autofix = {
17033
16988
  "run_id": 21831,
17034
16989
  "request": { "project_id": 4505138086019073 },
17035
- "status": "NEED_MORE_INFORMATION",
16990
+ "status": "COMPLETED",
17036
16991
  "updated_at": "2025-04-09T22:39:50.778146",
17037
16992
  "steps": [
17038
16993
  {
@@ -18064,6 +18019,19 @@ var event_default = {
18064
18019
  previousEventID
18065
18020
  };
18066
18021
 
18022
+ //#endregion
18023
+ //#region ../mcp-server-mocks/dist/fixtures/event-attachments.json
18024
+ var event_attachments_default = [{
18025
+ "id": "123",
18026
+ "name": "screenshot.png",
18027
+ "type": "event.attachment",
18028
+ "size": 1024,
18029
+ "mimetype": "image/png",
18030
+ "dateCreated": "2025-04-08T21:15:04.000Z",
18031
+ "sha1": "abc123def456",
18032
+ "headers": { "Content-Type": "image/png" }
18033
+ }];
18034
+
18067
18035
  //#endregion
18068
18036
  //#region ../mcp-server-mocks/dist/fixtures/tags.json
18069
18037
  var tags_default = [
@@ -18943,16 +18911,52 @@ const restHandlers = buildHandlers([
18943
18911
  path: "/api/0/organizations/sentry-mcp-evals/issues/PEATED-A8/autofix/",
18944
18912
  fetch: () => HttpResponse.json({ run_id: 123 })
18945
18913
  },
18914
+ {
18915
+ method: "get",
18916
+ path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-41/autofix/",
18917
+ fetch: () => HttpResponse.json({ autofix: null })
18918
+ },
18946
18919
  {
18947
18920
  method: "post",
18948
- path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/teams/the-goats/",
18949
- fetch: async ({ request }) => {
18921
+ path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-41/autofix/",
18922
+ fetch: () => HttpResponse.json({ run_id: 12 })
18923
+ },
18924
+ {
18925
+ method: "get",
18926
+ path: "/api/0/organizations/sentry-mcp-evals/issues/CLOUDFLARE-MCP-45/autofix/",
18927
+ fetch: () => HttpResponse.json({ autofix: {
18928
+ run_id: 13,
18929
+ request: { project_id: 4505138086019073 },
18930
+ status: "COMPLETED",
18931
+ updated_at: "2025-04-09T22:39:50.778146",
18932
+ steps: [{
18933
+ type: "root_cause_analysis",
18934
+ key: "root_cause_analysis",
18935
+ index: 0,
18936
+ status: "COMPLETED",
18937
+ title: "1. **Root Cause Analysis**",
18938
+ output_stream: null,
18939
+ progress: [],
18940
+ description: "The analysis has completed successfully.",
18941
+ causes: [{
18942
+ description: "The analysis has completed successfully.",
18943
+ id: 1,
18944
+ root_cause_reproduction: []
18945
+ }]
18946
+ }]
18947
+ } })
18948
+ },
18949
+ {
18950
+ method: "post",
18951
+ path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/teams/:teamSlug/",
18952
+ fetch: async ({ request, params }) => {
18950
18953
  const body = await request.json();
18954
+ const teamSlug = params.teamSlug;
18951
18955
  return HttpResponse.json({
18952
18956
  ...team_default,
18953
18957
  id: "4509109078196224",
18954
- slug: body?.slug || "the-goats",
18955
- name: body?.name || "the-goats",
18958
+ slug: teamSlug,
18959
+ name: teamSlug,
18956
18960
  dateCreated: "2025-04-07T00:05:48.196710Z"
18957
18961
  });
18958
18962
  }
@@ -19008,8 +19012,221 @@ const restHandlers = buildHandlers([
19008
19012
  };
19009
19013
  return HttpResponse.json(updatedIssue);
19010
19014
  }
19015
+ },
19016
+ {
19017
+ method: "get",
19018
+ path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/events/7ca573c0f4814912aaa9bdc77d1a7d51/attachments/",
19019
+ fetch: () => HttpResponse.json(event_attachments_default)
19020
+ },
19021
+ {
19022
+ method: "get",
19023
+ path: "/api/0/projects/sentry-mcp-evals/cloudflare-mcp/events/7ca573c0f4814912aaa9bdc77d1a7d51/attachments/123/",
19024
+ fetch: () => {
19025
+ const mockBlob = new Blob(["fake image data"], { type: "image/png" });
19026
+ return new HttpResponse(mockBlob, { headers: { "Content-Type": "image/png" } });
19027
+ }
19011
19028
  }
19012
19029
  ]);
19030
+ const searchHandlers = [http.post("https://mcp.sentry.dev/api/search", async ({ request }) => {
19031
+ const body = await request.json();
19032
+ let results = [{
19033
+ id: "product/rate-limiting.md",
19034
+ url: "https://docs.sentry.io/product/rate-limiting",
19035
+ snippet: "Learn how to configure rate limiting in Sentry to prevent quota exhaustion and control event ingestion.",
19036
+ relevance: .95
19037
+ }, {
19038
+ id: "product/accounts/quotas/spike-protection.md",
19039
+ url: "https://docs.sentry.io/product/accounts/quotas/spike-protection",
19040
+ snippet: "Spike protection helps prevent unexpected spikes in event volume from consuming your quota.",
19041
+ relevance: .87
19042
+ }];
19043
+ if (body?.guide) {
19044
+ const guide = body.guide;
19045
+ if (guide.includes("/")) {
19046
+ const [platformName, guideName] = guide.split("/");
19047
+ results = [{
19048
+ id: `platforms/${platformName}/guides/${guideName}.md`,
19049
+ url: `https://docs.sentry.io/platforms/${platformName}/guides/${guideName}`,
19050
+ snippet: `Setup guide for ${guideName} on ${platformName}`,
19051
+ relevance: .95
19052
+ }];
19053
+ } else results = [{
19054
+ id: `platforms/${guide}/index.md`,
19055
+ url: `https://docs.sentry.io/platforms/${guide}`,
19056
+ snippet: `Documentation for ${guide} platform`,
19057
+ relevance: .95
19058
+ }];
19059
+ }
19060
+ return HttpResponse.json({
19061
+ query: body?.query || "",
19062
+ results
19063
+ });
19064
+ })];
19065
+ const docsHandlers = [
19066
+ http.get("https://docs.sentry.io/product/rate-limiting.md", () => {
19067
+ return new HttpResponse(`# Project Rate Limits and Quotas
19068
+
19069
+ Rate limiting allows you to control the volume of events that Sentry accepts from your applications. This helps you manage costs and ensures that a sudden spike in errors doesn't consume your entire quota.
19070
+
19071
+ ## Why Use Rate Limiting?
19072
+
19073
+ - **Cost Control**: Prevent unexpected charges from error spikes
19074
+ - **Noise Reduction**: Filter out repetitive or low-value events
19075
+ - **Resource Management**: Ensure critical projects have quota available
19076
+ - **Performance**: Reduce load on your Sentry organization
19077
+
19078
+ ## Types of Rate Limits
19079
+
19080
+ ### 1. Organization Rate Limits
19081
+
19082
+ Set a maximum number of events per hour across your entire organization:
19083
+
19084
+ \`\`\`python
19085
+ # In your organization settings
19086
+ rate_limit = 1000 # events per hour
19087
+ \`\`\`
19088
+
19089
+ ### 2. Project Rate Limits
19090
+
19091
+ Configure limits for specific projects:
19092
+
19093
+ \`\`\`javascript
19094
+ // Project settings
19095
+ {
19096
+ "rateLimit": {
19097
+ "window": 3600, // 1 hour in seconds
19098
+ "limit": 500 // max events
19099
+ }
19100
+ }
19101
+ \`\`\`
19102
+
19103
+ ### 3. Key-Based Rate Limiting
19104
+
19105
+ Rate limit by specific attributes:
19106
+
19107
+ - **By Release**: Limit events from specific releases
19108
+ - **By User**: Prevent single users from consuming quota
19109
+ - **By Transaction**: Control high-volume transactions
19110
+
19111
+ ## Configuration Examples
19112
+
19113
+ ### SDK Configuration
19114
+
19115
+ Configure client-side sampling to reduce events before they're sent:
19116
+
19117
+ \`\`\`javascript
19118
+ Sentry.init({
19119
+ dsn: "your-dsn",
19120
+ tracesSampleRate: 0.1, // Sample 10% of transactions
19121
+ beforeSend(event) {
19122
+ // Custom filtering logic
19123
+ if (event.exception?.values?.[0]?.value?.includes("NetworkError")) {
19124
+ return null; // Drop network errors
19125
+ }
19126
+ return event;
19127
+ }
19128
+ });
19129
+ \`\`\`
19130
+
19131
+ ### Inbound Filters
19132
+
19133
+ Use Sentry's inbound filters to drop events server-side:
19134
+
19135
+ 1. Go to **Project Settings** → **Inbound Filters**
19136
+ 2. Enable filters for:
19137
+ - Legacy browsers
19138
+ - Web crawlers
19139
+ - Specific error messages
19140
+ - IP addresses
19141
+
19142
+ ### Spike Protection
19143
+
19144
+ Enable spike protection to automatically limit events during traffic spikes:
19145
+
19146
+ \`\`\`python
19147
+ # Project settings
19148
+ spike_protection = {
19149
+ "enabled": True,
19150
+ "max_events_per_hour": 10000,
19151
+ "detection_window": 300 # 5 minutes
19152
+ }
19153
+ \`\`\`
19154
+
19155
+ ## Best Practices
19156
+
19157
+ 1. **Start Conservative**: Begin with lower limits and increase as needed
19158
+ 2. **Monitor Usage**: Regularly review your quota consumption
19159
+ 3. **Use Sampling**: Implement transaction sampling for high-volume apps
19160
+ 4. **Filter Noise**: Drop known low-value events at the SDK level
19161
+ 5. **Set Alerts**: Configure notifications for quota thresholds
19162
+
19163
+ ## Rate Limit Headers
19164
+
19165
+ Sentry returns rate limit information in response headers:
19166
+
19167
+ \`\`\`
19168
+ X-Sentry-Rate-Limit: 60
19169
+ X-Sentry-Rate-Limit-Remaining: 42
19170
+ X-Sentry-Rate-Limit-Reset: 1634567890
19171
+ \`\`\`
19172
+
19173
+ ## Quota Management
19174
+
19175
+ ### Viewing Quota Usage
19176
+
19177
+ 1. Navigate to **Settings** → **Subscription**
19178
+ 2. View usage by:
19179
+ - Project
19180
+ - Event type
19181
+ - Time period
19182
+
19183
+ ### On-Demand Budgets
19184
+
19185
+ Purchase additional events when approaching limits:
19186
+
19187
+ \`\`\`bash
19188
+ # Via API
19189
+ curl -X POST https://sentry.io/api/0/organizations/{org}/quotas/ \\
19190
+ -H 'Authorization: Bearer <token>' \\
19191
+ -d '{"events": 100000}'
19192
+ \`\`\`
19193
+
19194
+ ## Troubleshooting
19195
+
19196
+ ### Events Being Dropped?
19197
+
19198
+ Check:
19199
+ 1. Organization and project rate limits
19200
+ 2. Spike protection status
19201
+ 3. SDK sampling configuration
19202
+ 4. Inbound filter settings
19203
+
19204
+ ### Rate Limit Errors
19205
+
19206
+ If you see 429 errors:
19207
+ - Review your rate limit configuration
19208
+ - Implement exponential backoff
19209
+ - Consider event buffering
19210
+
19211
+ ## Related Documentation
19212
+
19213
+ - [SDK Configuration Guide](/platforms/javascript/configuration)
19214
+ - [Quotas and Billing](/product/quotas)
19215
+ - [Filtering Events](/product/data-management/filtering)`, { headers: { "Content-Type": "text/markdown" } });
19216
+ }),
19217
+ http.get("https://docs.sentry.io/product/accounts/quotas/spike-protection.md", () => {
19218
+ return new HttpResponse(`# Spike Protection
19219
+
19220
+ Spike protection prevents sudden spikes in event volume from consuming your entire quota.
19221
+
19222
+ ## How it works
19223
+
19224
+ When Sentry detects an abnormal spike in events, it automatically activates spike protection...`, { headers: { "Content-Type": "text/markdown" } });
19225
+ }),
19226
+ http.get("https://docs.sentry.io/*.md", () => {
19227
+ return new HttpResponse(null, { status: 404 });
19228
+ })
19229
+ ];
19013
19230
  /**
19014
19231
  * Configured MSW server instance with all Sentry API mock handlers.
19015
19232
  *
@@ -19048,7 +19265,7 @@ const restHandlers = buildHandlers([
19048
19265
  * This matches the real Sentry API behavior where user data must always be queried
19049
19266
  * from the main API server.
19050
19267
  */
19051
- const mswServer = setupServer(...restHandlers);
19268
+ const mswServer = setupServer(...restHandlers, ...searchHandlers, ...docsHandlers);
19052
19269
 
19053
19270
  //#endregion
19054
19271
  //#region src/test-setup.ts