@flipdish/portal-library 8.4.1 → 8.4.3

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 (362) hide show
  1. package/dist/components/organisms/AssetManager/LibraryTabContent/index.cjs.js.map +1 -1
  2. package/dist/components/organisms/AssetManager/LibraryTabContent/index.js.map +1 -1
  3. package/dist/components/organisms/AssetManager/__mocks__/mockAssets.cjs.js.map +1 -1
  4. package/dist/components/organisms/AssetManager/__mocks__/mockAssets.js.map +1 -1
  5. package/dist/components/organisms/AssetManager/hooks/useGetAssets.cjs.js.map +1 -1
  6. package/dist/components/organisms/AssetManager/hooks/useGetAssets.js.map +1 -1
  7. package/dist/components/organisms/AssetManager/hooks/useUploadAsset.cjs.js.map +1 -1
  8. package/dist/components/organisms/AssetManager/hooks/useUploadAsset.d.ts +1 -1
  9. package/dist/components/organisms/AssetManager/hooks/useUploadAsset.js.map +1 -1
  10. package/dist/components/organisms/AssetManager/index.cjs.js.map +1 -1
  11. package/dist/components/organisms/AssetManager/index.d.ts +1 -0
  12. package/dist/components/organisms/AssetManager/index.js.map +1 -1
  13. package/dist/components/organisms/AssetManager/services/asset.service.cjs.js.map +1 -1
  14. package/dist/components/organisms/AssetManager/services/asset.service.js.map +1 -1
  15. package/dist/components/organisms/AssetManager/types/assets.type.cjs.js +2 -0
  16. package/dist/components/organisms/AssetManager/types/assets.type.cjs.js.map +1 -0
  17. package/dist/components/organisms/AssetManager/types/assets.type.d.ts +1 -0
  18. package/dist/components/organisms/AssetManager/types/assets.type.js +2 -0
  19. package/dist/components/organisms/AssetManager/types/assets.type.js.map +1 -0
  20. package/dist/components/organisms/Heading/{Heading.cjs.js → index.cjs.js} +1 -1
  21. package/dist/components/organisms/Heading/index.cjs.js.map +1 -0
  22. package/dist/components/organisms/Heading/{Heading.js → index.js} +1 -1
  23. package/dist/components/organisms/Heading/index.js.map +1 -0
  24. package/dist/localization/de.json.cjs.js +1 -1
  25. package/dist/localization/de.json.js +1 -1
  26. package/dist/localization/en-US.json.cjs.js +1 -1
  27. package/dist/localization/en-US.json.js +1 -1
  28. package/dist/localization/en.json.cjs.js +1 -1
  29. package/dist/localization/en.json.d.ts +31 -1
  30. package/dist/localization/en.json.js +1 -1
  31. package/dist/localization/es-MX.json.cjs.js +1 -1
  32. package/dist/localization/es-MX.json.js +1 -1
  33. package/dist/localization/es.json.cjs.js +1 -1
  34. package/dist/localization/es.json.js +1 -1
  35. package/dist/localization/fr.json.cjs.js +1 -1
  36. package/dist/localization/fr.json.js +1 -1
  37. package/dist/localization/it.json.cjs.js +1 -1
  38. package/dist/localization/it.json.js +1 -1
  39. package/dist/localization/nl.json.cjs.js +1 -1
  40. package/dist/localization/nl.json.js +1 -1
  41. package/dist/localization/pt.json.cjs.js +1 -1
  42. package/dist/localization/pt.json.js +1 -1
  43. package/dist/mocks/msw/handlers.cjs.js +1 -1
  44. package/dist/mocks/msw/handlers.d.ts +1 -1
  45. package/dist/mocks/msw/handlers.js +1 -1
  46. package/dist/mocks/msw/server.cjs.js +1 -1
  47. package/dist/mocks/msw/server.d.ts +1 -1
  48. package/dist/mocks/msw/server.js +1 -1
  49. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.cjs.js.map +1 -1
  50. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.js.map +1 -1
  51. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-C8kXFDic.cjs.js → @mswjs_interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-npXitu1-.cjs.js} +1 -1
  52. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-C8kXFDic.cjs.js.map → @mswjs_interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-npXitu1-.cjs.js.map} +1 -1
  53. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-C8kXFDic.js → @mswjs_interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-npXitu1-.js} +1 -1
  54. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-C8kXFDic.js.map → @mswjs_interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/browser/hasConfigurableGlobal-npXitu1-.js.map} +1 -1
  55. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js +2 -0
  56. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js.map +1 -0
  57. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js +2 -0
  58. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js.map +1 -0
  59. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/browser/resolveWebSocketUrl-C83-x9iE.cjs.js +2 -0
  60. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/browser/resolveWebSocketUrl-C83-x9iE.cjs.js.map +1 -0
  61. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/browser/resolveWebSocketUrl-C83-x9iE.js +2 -0
  62. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/browser/resolveWebSocketUrl-C83-x9iE.js.map +1 -0
  63. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.cjs.js.map +1 -1
  64. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.js.map +1 -1
  65. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.cjs.js.map +1 -1
  66. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.js.map +1 -1
  67. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.cjs.js.map +1 -1
  68. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.js.map +1 -1
  69. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.cjs.js.map +1 -1
  70. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.js.map +1 -1
  71. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.cjs.js.map +1 -1
  72. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.js.map +1 -1
  73. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.cjs.js.map +1 -1
  74. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.js.map +1 -1
  75. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.cjs.js.map +1 -1
  76. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.js.map +1 -1
  77. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.cjs.js.map +1 -1
  78. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.js.map +1 -1
  79. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.cjs.js.map +1 -1
  80. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.js.map +1 -1
  81. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.cjs.js.map +1 -1
  82. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.js.map +1 -1
  83. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/node/index.cjs.js.map +1 -0
  84. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/node/index.js.map +1 -0
  85. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.cjs.js.map +1 -1
  86. package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.js.map +1 -1
  87. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse-CVs3ngx3.d.d.ts +1 -1
  88. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js +1 -1
  89. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.cjs.js.map +1 -1
  90. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js +1 -1
  91. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/HttpResponse.js.map +1 -1
  92. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js.map +1 -1
  93. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js.map +1 -1
  94. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js.map +1 -1
  95. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js.map +1 -1
  96. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js.map +1 -1
  97. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js.map +1 -1
  98. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/handlers/WebSocketHandler.d.d.ts +4 -3
  99. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js.map +1 -1
  100. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/http.js.map +1 -1
  101. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js.map +1 -1
  102. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/index.js.map +1 -1
  103. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js.map +1 -1
  104. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js.map +1 -1
  105. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js.map +1 -1
  106. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js.map +1 -1
  107. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js.map +1 -1
  108. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js.map +1 -1
  109. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js.map +1 -1
  110. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js.map +1 -1
  111. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.cjs.js.map +1 -1
  112. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.js.map +1 -1
  113. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js.map +1 -1
  114. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js.map +1 -1
  115. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js.map +1 -1
  116. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js.map +1 -1
  117. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js.map +1 -1
  118. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js.map +1 -1
  119. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js.map +1 -1
  120. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js.map +1 -1
  121. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js.map +1 -1
  122. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js.map +1 -1
  123. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js.map +1 -1
  124. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js.map +1 -1
  125. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js.map +1 -1
  126. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js.map +1 -1
  127. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js.map +1 -1
  128. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js.map +1 -1
  129. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js.map +1 -1
  130. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js.map +1 -1
  131. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js.map +1 -1
  132. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js.map +1 -1
  133. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js.map +1 -1
  134. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js.map +1 -1
  135. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js.map +1 -1
  136. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js.map +1 -1
  137. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js.map +1 -1
  138. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js.map +1 -1
  139. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js.map +1 -1
  140. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js.map +1 -1
  141. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js.map +1 -1
  142. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js.map +1 -1
  143. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js.map +1 -1
  144. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js.map +1 -1
  145. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js +1 -1
  146. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.cjs.js.map +1 -1
  147. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js +1 -1
  148. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.js.map +1 -1
  149. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js.map +1 -1
  150. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js.map +1 -1
  151. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js.map +1 -1
  152. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js.map +1 -1
  153. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js.map +1 -1
  154. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js.map +1 -1
  155. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js.map +1 -1
  156. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js.map +1 -1
  157. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js.map +1 -1
  158. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js.map +1 -1
  159. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js.map +1 -1
  160. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js.map +1 -1
  161. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js.map +1 -1
  162. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js.map +1 -1
  163. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js.map +1 -1
  164. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js.map +1 -1
  165. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js.map +1 -1
  166. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js.map +1 -1
  167. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js +1 -1
  168. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.cjs.js.map +1 -1
  169. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js +1 -1
  170. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/ws/webSocketInterceptor.js.map +1 -1
  171. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js +1 -1
  172. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/node/index.cjs.js.map +1 -1
  173. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/node/index.d.d.ts +3 -3
  174. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/node/index.js +1 -1
  175. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/node/index.js.map +1 -1
  176. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js.map +1 -1
  177. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js.map +1 -1
  178. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js.map +1 -1
  179. package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js.map +1 -1
  180. package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/domain.cjs.js.map +1 -1
  181. package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/domain.js.map +1 -1
  182. package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/extract-hostname.cjs.js.map +1 -1
  183. package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/extract-hostname.js.map +1 -1
  184. package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/factory.cjs.js.map +1 -1
  185. package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/factory.js.map +1 -1
  186. package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/is-ip.cjs.js.map +1 -1
  187. package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/is-ip.js.map +1 -1
  188. package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/is-valid.cjs.js.map +1 -1
  189. package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/is-valid.js.map +1 -1
  190. package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/lookup/fast-path.cjs.js.map +1 -1
  191. package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js.map +1 -1
  192. package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/options.cjs.js.map +1 -1
  193. package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/options.js.map +1 -1
  194. package/dist/node_modules/.pnpm/{tldts@7.0.22 → tldts@7.0.23}/node_modules/tldts/dist/es6/index.cjs.js +1 -1
  195. package/dist/node_modules/.pnpm/{tldts@7.0.22 → tldts@7.0.23}/node_modules/tldts/dist/es6/index.cjs.js.map +1 -1
  196. package/dist/node_modules/.pnpm/{tldts@7.0.22 → tldts@7.0.23}/node_modules/tldts/dist/es6/index.js +1 -1
  197. package/dist/node_modules/.pnpm/{tldts@7.0.22 → tldts@7.0.23}/node_modules/tldts/dist/es6/index.js.map +1 -1
  198. package/dist/node_modules/.pnpm/tldts@7.0.23/node_modules/tldts/dist/es6/src/data/trie.cjs.js +2 -0
  199. package/dist/node_modules/.pnpm/tldts@7.0.23/node_modules/tldts/dist/es6/src/data/trie.cjs.js.map +1 -0
  200. package/dist/node_modules/.pnpm/tldts@7.0.23/node_modules/tldts/dist/es6/src/data/trie.js +2 -0
  201. package/dist/node_modules/.pnpm/tldts@7.0.23/node_modules/tldts/dist/es6/src/data/trie.js.map +1 -0
  202. package/dist/node_modules/.pnpm/{tldts@7.0.22 → tldts@7.0.23}/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js +1 -1
  203. package/dist/node_modules/.pnpm/{tldts@7.0.22 → tldts@7.0.23}/node_modules/tldts/dist/es6/src/suffix-trie.cjs.js.map +1 -1
  204. package/dist/node_modules/.pnpm/{tldts@7.0.22 → tldts@7.0.23}/node_modules/tldts/dist/es6/src/suffix-trie.js +1 -1
  205. package/dist/node_modules/.pnpm/{tldts@7.0.22 → tldts@7.0.23}/node_modules/tldts/dist/es6/src/suffix-trie.js.map +1 -1
  206. package/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.cjs.js +1 -1
  207. package/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.js +1 -1
  208. package/package.json +1 -1
  209. package/dist/components/organisms/Heading/Heading.cjs.js.map +0 -1
  210. package/dist/components/organisms/Heading/Heading.js.map +0 -1
  211. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js +0 -2
  212. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.cjs.js.map +0 -1
  213. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js +0 -2
  214. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.js.map +0 -1
  215. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.cjs.js.map +0 -1
  216. package/dist/node_modules/.pnpm/@mswjs_interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/index.js.map +0 -1
  217. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.cjs.js +0 -2
  218. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.cjs.js.map +0 -1
  219. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.js +0 -2
  220. package/dist/node_modules/.pnpm/tldts@7.0.22/node_modules/tldts/dist/es6/src/data/trie.js.map +0 -1
  221. /package/dist/components/organisms/Heading/{Heading.d.ts → index.d.ts} +0 -0
  222. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.cjs.js +0 -0
  223. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/browser/createRequestId-DQcIlohW.js +0 -0
  224. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/browser/interceptors/WebSocket/index.d.d.ts +0 -0
  225. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.cjs.js +0 -0
  226. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-DFaBPilf.js +0 -0
  227. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/BatchInterceptor-D_YqR8qU.d.d.ts +0 -0
  228. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.cjs.js +0 -0
  229. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.js +0 -0
  230. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/Interceptor-DJ2akVWI.d.d.ts +0 -0
  231. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.cjs.js +0 -0
  232. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.js +0 -0
  233. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.cjs.js +0 -0
  234. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/bufferUtils-_8XfKIfX.js +0 -0
  235. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.cjs.js +0 -0
  236. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/fetch-G1DVwDKG.js +0 -0
  237. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.cjs.js +0 -0
  238. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/fetchUtils-CoU35g3M.js +0 -0
  239. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.cjs.js +0 -0
  240. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/getRawRequest-DnwmXyOW.js +0 -0
  241. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.cjs.js +0 -0
  242. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/glossary-glQBRnVD.js +0 -0
  243. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.cjs.js +0 -0
  244. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/handleRequest-Y97UwBbF.js +0 -0
  245. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.cjs.js +0 -0
  246. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/hasConfigurableGlobal-DBJA0vjm.js +0 -0
  247. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/index.cjs.js +0 -0
  248. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/index.d.d.ts +0 -0
  249. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/index.js +0 -0
  250. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.cjs.js +0 -0
  251. /package/dist/node_modules/.pnpm/{@mswjs_interceptors@0.41.0 → @mswjs_interceptors@0.41.2}/node_modules/@mswjs/interceptors/lib/node/node-DwCc6iuP.js +0 -0
  252. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.cjs.js +0 -0
  253. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.d.d.ts +0 -0
  254. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/SetupApi.js +0 -0
  255. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.cjs.js +0 -0
  256. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.d.d.ts +0 -0
  257. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/handlers/HttpHandler.js +0 -0
  258. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.cjs.js +0 -0
  259. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/handlers/RequestHandler.js +0 -0
  260. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/http.cjs.js +0 -0
  261. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/http.js +0 -0
  262. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/index.cjs.js +0 -0
  263. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/index.js +0 -0
  264. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.cjs.js +0 -0
  265. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/isCommonAssetRequest.js +0 -0
  266. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/sharedOptions.d.d.ts +0 -0
  267. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/typeUtils.d.d.ts +0 -0
  268. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.cjs.js +0 -0
  269. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/HttpResponse/decorators.js +0 -0
  270. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.cjs.js +0 -0
  271. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/cookieStore.js +0 -0
  272. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.cjs.js +0 -0
  273. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/executeHandlers.js +0 -0
  274. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.cjs.js +0 -0
  275. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/handleRequest.js +0 -0
  276. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.cjs.js +0 -0
  277. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.d.d.ts +0 -0
  278. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/Disposable.js +0 -0
  279. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.cjs.js +0 -0
  280. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/checkGlobals.js +0 -0
  281. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.cjs.js +0 -0
  282. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/devUtils.js +0 -0
  283. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.cjs.js +0 -0
  284. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/getCallFrame.js +0 -0
  285. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.cjs.js +0 -0
  286. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isHandlerKind.js +0 -0
  287. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.cjs.js +0 -0
  288. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.d.d.ts +0 -0
  289. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isIterable.js +0 -0
  290. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.cjs.js +0 -0
  291. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isObject.js +0 -0
  292. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.cjs.js +0 -0
  293. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/isStringEqual.js +0 -0
  294. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.cjs.js +0 -0
  295. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/jsonParse.js +0 -0
  296. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.cjs.js +0 -0
  297. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/mergeRight.js +0 -0
  298. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.cjs.js +0 -0
  299. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/pipeEvents.js +0 -0
  300. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.cjs.js +0 -0
  301. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/internal/toReadonlyArray.js +0 -0
  302. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.cjs.js +0 -0
  303. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getStatusCodeColor.js +0 -0
  304. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.cjs.js +0 -0
  305. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/getTimestamp.js +0 -0
  306. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.cjs.js +0 -0
  307. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeRequest.js +0 -0
  308. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.cjs.js +0 -0
  309. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/logging/serializeResponse.js +0 -0
  310. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/matchRequestUrl.d.d.ts +0 -0
  311. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.cjs.js +0 -0
  312. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/matching/normalizePath.js +0 -0
  313. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.cjs.js +0 -0
  314. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/getRequestCookies.js +0 -0
  315. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.cjs.js +0 -0
  316. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.d.d.ts +0 -0
  317. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/onUnhandledRequest.js +0 -0
  318. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.cjs.js +0 -0
  319. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/storeResponseCookies.js +0 -0
  320. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.cjs.js +0 -0
  321. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/request/toPublicUrl.js +0 -0
  322. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.cjs.js +0 -0
  323. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/cleanUrl.js +0 -0
  324. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.cjs.js +0 -0
  325. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/getAbsoluteUrl.js +0 -0
  326. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.cjs.js +0 -0
  327. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/utils/url/isAbsoluteUrl.js +0 -0
  328. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.cjs.js +0 -0
  329. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/core/ws/handleWebSocketEvent.js +0 -0
  330. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.cjs.js +0 -0
  331. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/shims/cookie.js +0 -0
  332. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.cjs.js +0 -0
  333. /package/dist/node_modules/.pnpm/{msw@2.12.8_@types_node@20.19.31_typescript@5.4.5 → msw@2.12.9_@types_node@20.19.33_typescript@5.4.5}/node_modules/msw/lib/shims/statuses.js +0 -0
  334. /package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/domain.cjs.js +0 -0
  335. /package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/domain.js +0 -0
  336. /package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/extract-hostname.cjs.js +0 -0
  337. /package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/extract-hostname.js +0 -0
  338. /package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/factory.cjs.js +0 -0
  339. /package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/factory.js +0 -0
  340. /package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/is-ip.cjs.js +0 -0
  341. /package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/is-ip.js +0 -0
  342. /package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/is-valid.cjs.js +0 -0
  343. /package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/is-valid.js +0 -0
  344. /package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/lookup/fast-path.cjs.js +0 -0
  345. /package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/lookup/fast-path.js +0 -0
  346. /package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/options.cjs.js +0 -0
  347. /package/dist/node_modules/.pnpm/{tldts-core@7.0.22 → tldts-core@7.0.23}/node_modules/tldts-core/dist/es6/src/options.js +0 -0
  348. /package/dist/node_modules/.pnpm/{type-fest@5.4.3 → type-fest@5.4.4}/node_modules/type-fest/source/if.d.d.ts +0 -0
  349. /package/dist/node_modules/.pnpm/{type-fest@5.4.3 → type-fest@5.4.4}/node_modules/type-fest/source/internal/object.d.d.ts +0 -0
  350. /package/dist/node_modules/.pnpm/{type-fest@5.4.3 → type-fest@5.4.4}/node_modules/type-fest/source/internal/type.d.d.ts +0 -0
  351. /package/dist/node_modules/.pnpm/{type-fest@5.4.3 → type-fest@5.4.4}/node_modules/type-fest/source/is-any.d.d.ts +0 -0
  352. /package/dist/node_modules/.pnpm/{type-fest@5.4.3 → type-fest@5.4.4}/node_modules/type-fest/source/is-equal.d.d.ts +0 -0
  353. /package/dist/node_modules/.pnpm/{type-fest@5.4.3 → type-fest@5.4.4}/node_modules/type-fest/source/is-never.d.d.ts +0 -0
  354. /package/dist/node_modules/.pnpm/{type-fest@5.4.3 → type-fest@5.4.4}/node_modules/type-fest/source/is-optional-key-of.d.d.ts +0 -0
  355. /package/dist/node_modules/.pnpm/{type-fest@5.4.3 → type-fest@5.4.4}/node_modules/type-fest/source/merge.d.d.ts +0 -0
  356. /package/dist/node_modules/.pnpm/{type-fest@5.4.3 → type-fest@5.4.4}/node_modules/type-fest/source/omit-index-signature.d.d.ts +0 -0
  357. /package/dist/node_modules/.pnpm/{type-fest@5.4.3 → type-fest@5.4.4}/node_modules/type-fest/source/optional-keys-of.d.d.ts +0 -0
  358. /package/dist/node_modules/.pnpm/{type-fest@5.4.3 → type-fest@5.4.4}/node_modules/type-fest/source/partial-deep.d.d.ts +0 -0
  359. /package/dist/node_modules/.pnpm/{type-fest@5.4.3 → type-fest@5.4.4}/node_modules/type-fest/source/pick-index-signature.d.d.ts +0 -0
  360. /package/dist/node_modules/.pnpm/{type-fest@5.4.3 → type-fest@5.4.4}/node_modules/type-fest/source/primitive.d.d.ts +0 -0
  361. /package/dist/node_modules/.pnpm/{type-fest@5.4.3 → type-fest@5.4.4}/node_modules/type-fest/source/required-keys-of.d.d.ts +0 -0
  362. /package/dist/node_modules/.pnpm/{type-fest@5.4.3 → type-fest@5.4.4}/node_modules/type-fest/source/simplify.d.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ClientRequest-Ca8Qykuv.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.mjs"],"sourcesContent":["import { i as RequestController, o as INTERNAL_REQUEST_ID_HEADER_NAME, r as createRequestId, s as Interceptor, t as FetchResponse } from \"./fetchUtils-CoU35g3M.mjs\";\nimport { n as setRawRequest } from \"./getRawRequest-DnwmXyOW.mjs\";\nimport { a as isPropertyAccessible, i as emitAsync, r as isObject, t as handleRequest } from \"./handleRequest-Y97UwBbF.mjs\";\nimport { n as setRawRequestBodyStream } from \"./node-DwCc6iuP.mjs\";\nimport { Logger } from \"@open-draft/logger\";\nimport { invariant } from \"outvariant\";\nimport http, { IncomingMessage, STATUS_CODES, ServerResponse, globalAgent } from \"node:http\";\nimport https, { globalAgent as globalAgent$1 } from \"node:https\";\nimport net from \"node:net\";\nimport { HTTPParser } from \"_http_common\";\nimport { Readable } from \"node:stream\";\nimport { URL as URL$1, parse, urlToHttpOptions } from \"node:url\";\nimport { Agent } from \"http\";\n\n//#region src/interceptors/Socket/utils/normalizeSocketWriteArgs.ts\n/**\n* Normalizes the arguments provided to the `Writable.prototype.write()`\n* and `Writable.prototype.end()`.\n*/\nfunction normalizeSocketWriteArgs(args) {\n\tconst normalized = [\n\t\targs[0],\n\t\tvoid 0,\n\t\tvoid 0\n\t];\n\tif (typeof args[1] === \"string\") normalized[1] = args[1];\n\telse if (typeof args[1] === \"function\") normalized[2] = args[1];\n\tif (typeof args[2] === \"function\") normalized[2] = args[2];\n\treturn normalized;\n}\n\n//#endregion\n//#region src/interceptors/Socket/MockSocket.ts\nvar MockSocket = class extends net.Socket {\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.options = options;\n\t\tthis.connecting = false;\n\t\tthis.connect();\n\t\tthis._final = (callback) => {\n\t\t\tcallback(null);\n\t\t};\n\t}\n\tconnect() {\n\t\tthis.connecting = true;\n\t\treturn this;\n\t}\n\twrite(...args) {\n\t\tconst [chunk, encoding, callback] = normalizeSocketWriteArgs(args);\n\t\tthis.options.write(chunk, encoding, callback);\n\t\treturn true;\n\t}\n\tend(...args) {\n\t\tconst [chunk, encoding, callback] = normalizeSocketWriteArgs(args);\n\t\tthis.options.write(chunk, encoding, callback);\n\t\treturn super.end.apply(this, args);\n\t}\n\tpush(chunk, encoding) {\n\t\tthis.options.read(chunk, encoding);\n\t\treturn super.push(chunk, encoding);\n\t}\n};\n\n//#endregion\n//#region src/interceptors/Socket/utils/baseUrlFromConnectionOptions.ts\nfunction baseUrlFromConnectionOptions(options) {\n\tif (\"href\" in options) return new URL(options.href);\n\tconst protocol = options.port === 443 ? \"https:\" : \"http:\";\n\tconst host = options.host;\n\tconst url = new URL(`${protocol}//${host}`);\n\tif (options.port) url.port = options.port.toString();\n\tif (options.path) url.pathname = options.path;\n\tif (options.auth) {\n\t\tconst [username, password] = options.auth.split(\":\");\n\t\turl.username = username;\n\t\turl.password = password;\n\t}\n\treturn url;\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/utils/recordRawHeaders.ts\nconst kRawHeaders = Symbol(\"kRawHeaders\");\nconst kRestorePatches = Symbol(\"kRestorePatches\");\nfunction recordRawHeader(headers, args, behavior) {\n\tensureRawHeadersSymbol(headers, []);\n\tconst rawHeaders = Reflect.get(headers, kRawHeaders);\n\tif (behavior === \"set\") {\n\t\tfor (let index = rawHeaders.length - 1; index >= 0; index--) if (rawHeaders[index][0].toLowerCase() === args[0].toLowerCase()) rawHeaders.splice(index, 1);\n\t}\n\trawHeaders.push(args);\n}\n/**\n* Define the raw headers symbol on the given `Headers` instance.\n* If the symbol already exists, this function does nothing.\n*/\nfunction ensureRawHeadersSymbol(headers, rawHeaders) {\n\tif (Reflect.has(headers, kRawHeaders)) return;\n\tdefineRawHeadersSymbol(headers, rawHeaders);\n}\n/**\n* Define the raw headers symbol on the given `Headers` instance.\n* If the symbol already exists, it gets overridden.\n*/\nfunction defineRawHeadersSymbol(headers, rawHeaders) {\n\tObject.defineProperty(headers, kRawHeaders, {\n\t\tvalue: rawHeaders,\n\t\tenumerable: false,\n\t\tconfigurable: true\n\t});\n}\n/**\n* Patch the global `Headers` class to store raw headers.\n* This is for compatibility with `IncomingMessage.prototype.rawHeaders`.\n*\n* @note Node.js has their own raw headers symbol but it\n* only records the first header name in case of multi-value headers.\n* Any other headers are normalized before comparing. This makes it\n* incompatible with the `rawHeaders` format.\n*\n* let h = new Headers()\n* h.append('X-Custom', 'one')\n* h.append('x-custom', 'two')\n* h[Symbol('headers map')] // Map { 'X-Custom' => 'one, two' }\n*/\nfunction recordRawFetchHeaders() {\n\tif (Reflect.get(Headers, kRestorePatches)) return Reflect.get(Headers, kRestorePatches);\n\tconst { Headers: OriginalHeaders, Request: OriginalRequest, Response: OriginalResponse } = globalThis;\n\tconst { set, append, delete: headersDeleteMethod } = Headers.prototype;\n\tObject.defineProperty(Headers, kRestorePatches, {\n\t\tvalue: () => {\n\t\t\tHeaders.prototype.set = set;\n\t\t\tHeaders.prototype.append = append;\n\t\t\tHeaders.prototype.delete = headersDeleteMethod;\n\t\t\tglobalThis.Headers = OriginalHeaders;\n\t\t\tglobalThis.Request = OriginalRequest;\n\t\t\tglobalThis.Response = OriginalResponse;\n\t\t\tReflect.deleteProperty(Headers, kRestorePatches);\n\t\t},\n\t\tenumerable: false,\n\t\tconfigurable: true\n\t});\n\tObject.defineProperty(globalThis, \"Headers\", {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue: new Proxy(Headers, { construct(target, args, newTarget) {\n\t\t\tconst headersInit = args[0] || [];\n\t\t\tif (headersInit instanceof Headers && Reflect.has(headersInit, kRawHeaders)) {\n\t\t\t\tconst headers$1 = Reflect.construct(target, [Reflect.get(headersInit, kRawHeaders)], newTarget);\n\t\t\t\tensureRawHeadersSymbol(headers$1, [...Reflect.get(headersInit, kRawHeaders)]);\n\t\t\t\treturn headers$1;\n\t\t\t}\n\t\t\tconst headers = Reflect.construct(target, args, newTarget);\n\t\t\tif (!Reflect.has(headers, kRawHeaders)) ensureRawHeadersSymbol(headers, Array.isArray(headersInit) ? headersInit : Object.entries(headersInit));\n\t\t\treturn headers;\n\t\t} })\n\t});\n\tHeaders.prototype.set = new Proxy(Headers.prototype.set, { apply(target, thisArg, args) {\n\t\trecordRawHeader(thisArg, args, \"set\");\n\t\treturn Reflect.apply(target, thisArg, args);\n\t} });\n\tHeaders.prototype.append = new Proxy(Headers.prototype.append, { apply(target, thisArg, args) {\n\t\trecordRawHeader(thisArg, args, \"append\");\n\t\treturn Reflect.apply(target, thisArg, args);\n\t} });\n\tHeaders.prototype.delete = new Proxy(Headers.prototype.delete, { apply(target, thisArg, args) {\n\t\tconst rawHeaders = Reflect.get(thisArg, kRawHeaders);\n\t\tif (rawHeaders) {\n\t\t\tfor (let index = rawHeaders.length - 1; index >= 0; index--) if (rawHeaders[index][0].toLowerCase() === args[0].toLowerCase()) rawHeaders.splice(index, 1);\n\t\t}\n\t\treturn Reflect.apply(target, thisArg, args);\n\t} });\n\tObject.defineProperty(globalThis, \"Request\", {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue: new Proxy(Request, { construct(target, args, newTarget) {\n\t\t\tconst request = Reflect.construct(target, args, newTarget);\n\t\t\tconst inferredRawHeaders = [];\n\t\t\tif (typeof args[0] === \"object\" && args[0].headers != null) inferredRawHeaders.push(...inferRawHeaders(args[0].headers));\n\t\t\tif (typeof args[1] === \"object\" && args[1].headers != null) inferredRawHeaders.push(...inferRawHeaders(args[1].headers));\n\t\t\tif (inferredRawHeaders.length > 0) ensureRawHeadersSymbol(request.headers, inferredRawHeaders);\n\t\t\treturn request;\n\t\t} })\n\t});\n\tObject.defineProperty(globalThis, \"Response\", {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue: new Proxy(Response, { construct(target, args, newTarget) {\n\t\t\tconst response = Reflect.construct(target, args, newTarget);\n\t\t\tif (typeof args[1] === \"object\" && args[1].headers != null) ensureRawHeadersSymbol(response.headers, inferRawHeaders(args[1].headers));\n\t\t\treturn response;\n\t\t} })\n\t});\n}\nfunction restoreHeadersPrototype() {\n\tif (!Reflect.get(Headers, kRestorePatches)) return;\n\tReflect.get(Headers, kRestorePatches)();\n}\nfunction getRawFetchHeaders(headers) {\n\tif (!Reflect.has(headers, kRawHeaders)) return Array.from(headers.entries());\n\tconst rawHeaders = Reflect.get(headers, kRawHeaders);\n\treturn rawHeaders.length > 0 ? rawHeaders : Array.from(headers.entries());\n}\n/**\n* Infers the raw headers from the given `HeadersInit` provided\n* to the Request/Response constructor.\n*\n* If the `init.headers` is a Headers instance, use it directly.\n* That means the headers were created standalone and already have\n* the raw headers stored.\n* If the `init.headers` is a HeadersInit, create a new Headers\n* instance out of it.\n*/\nfunction inferRawHeaders(headers) {\n\tif (headers instanceof Headers) return Reflect.get(headers, kRawHeaders) || [];\n\treturn Reflect.get(new Headers(headers), kRawHeaders);\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/utils/parserUtils.ts\n/**\n* @see https://github.com/nodejs/node/blob/f3adc11e37b8bfaaa026ea85c1cf22e3a0e29ae9/lib/_http_common.js#L180\n*/\nfunction freeParser(parser, socket) {\n\tif (parser._consumed) parser.unconsume();\n\tparser._headers = [];\n\tparser._url = \"\";\n\tparser.socket = null;\n\tparser.incoming = null;\n\tparser.outgoing = null;\n\tparser.maxHeaderPairs = 2e3;\n\tparser._consumed = false;\n\tparser.onIncoming = null;\n\tparser[HTTPParser.kOnHeaders] = null;\n\tparser[HTTPParser.kOnHeadersComplete] = null;\n\tparser[HTTPParser.kOnMessageBegin] = null;\n\tparser[HTTPParser.kOnMessageComplete] = null;\n\tparser[HTTPParser.kOnBody] = null;\n\tparser[HTTPParser.kOnExecute] = null;\n\tparser[HTTPParser.kOnTimeout] = null;\n\tparser.remove();\n\tparser.free();\n\tif (socket)\n /**\n\t* @note Unassigning the socket's parser will fail this assertion\n\t* if there's still some data being processed on the socket:\n\t* @see https://github.com/nodejs/node/blob/4e1f39b678b37017ac9baa0971e3aeecd3b67b51/lib/_http_client.js#L613\n\t*/\n\tif (socket.destroyed) socket.parser = null;\n\telse socket.once(\"end\", () => {\n\t\tsocket.parser = null;\n\t});\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/MockHttpSocket.ts\nconst kRequestId = Symbol(\"kRequestId\");\nvar MockHttpSocket = class extends MockSocket {\n\tconstructor(options) {\n\t\tsuper({\n\t\t\twrite: (chunk, encoding, callback) => {\n\t\t\t\tif (this.socketState !== \"passthrough\") this.writeBuffer.push([\n\t\t\t\t\tchunk,\n\t\t\t\t\tencoding,\n\t\t\t\t\tcallback\n\t\t\t\t]);\n\t\t\t\tif (chunk) {\n\t\t\t\t\t/**\n\t\t\t\t\t* Forward any writes to the mock socket to the underlying original socket.\n\t\t\t\t\t* This ensures functional duplex connections, like WebSocket.\n\t\t\t\t\t* @see https://github.com/mswjs/interceptors/issues/682\n\t\t\t\t\t*/\n\t\t\t\t\tif (this.socketState === \"passthrough\") this.originalSocket?.write(chunk, encoding, callback);\n\t\t\t\t\tthis.requestParser.execute(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk, encoding));\n\t\t\t\t}\n\t\t\t},\n\t\t\tread: (chunk) => {\n\t\t\t\tif (chunk !== null)\n /**\n\t\t\t\t* @todo We need to free the parser if the connection has been\n\t\t\t\t* upgraded to a non-HTTP protocol. It won't be able to parse data\n\t\t\t\t* from that point onward anyway. No need to keep it in memory.\n\t\t\t\t*/\n\t\t\t\tthis.responseParser.execute(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));\n\t\t\t}\n\t\t});\n\t\tthis.requestRawHeadersBuffer = [];\n\t\tthis.responseRawHeadersBuffer = [];\n\t\tthis.writeBuffer = [];\n\t\tthis.socketState = \"unknown\";\n\t\tthis.onRequestHeaders = (rawHeaders) => {\n\t\t\tthis.requestRawHeadersBuffer.push(...rawHeaders);\n\t\t};\n\t\tthis.onRequestStart = (versionMajor, versionMinor, rawHeaders, _, path, __, ___, ____, shouldKeepAlive) => {\n\t\t\tthis.shouldKeepAlive = shouldKeepAlive;\n\t\t\tconst url = new URL(path || \"\", this.baseUrl);\n\t\t\tconst method = this.connectionOptions.method?.toUpperCase() || \"GET\";\n\t\t\tconst headers = FetchResponse.parseRawHeaders([...this.requestRawHeadersBuffer, ...rawHeaders || []]);\n\t\t\tthis.requestRawHeadersBuffer.length = 0;\n\t\t\tconst canHaveBody = method !== \"GET\" && method !== \"HEAD\";\n\t\t\tif (url.username || url.password) {\n\t\t\t\tif (!headers.has(\"authorization\")) headers.set(\"authorization\", `Basic ${url.username}:${url.password}`);\n\t\t\t\turl.username = \"\";\n\t\t\t\turl.password = \"\";\n\t\t\t}\n\t\t\tthis.requestStream = new Readable({ read: () => {\n\t\t\t\tthis.flushWriteBuffer();\n\t\t\t} });\n\t\t\tconst requestId = createRequestId();\n\t\t\tthis.request = new Request(url, {\n\t\t\t\tmethod,\n\t\t\t\theaders,\n\t\t\t\tcredentials: \"same-origin\",\n\t\t\t\tduplex: canHaveBody ? \"half\" : void 0,\n\t\t\t\tbody: canHaveBody ? Readable.toWeb(this.requestStream) : null\n\t\t\t});\n\t\t\tReflect.set(this.request, kRequestId, requestId);\n\t\t\tsetRawRequest(this.request, Reflect.get(this, \"_httpMessage\"));\n\t\t\tsetRawRequestBodyStream(this.request, this.requestStream);\n\t\t\t/**\n\t\t\t* @fixme Stop relying on the \"X-Request-Id\" request header\n\t\t\t* to figure out if one interceptor has been invoked within another.\n\t\t\t* @see https://github.com/mswjs/interceptors/issues/378\n\t\t\t*/\n\t\t\tif (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) {\n\t\t\t\tthis.passthrough();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.onRequest({\n\t\t\t\trequestId,\n\t\t\t\trequest: this.request,\n\t\t\t\tsocket: this\n\t\t\t});\n\t\t};\n\t\tthis.onResponseHeaders = (rawHeaders) => {\n\t\t\tthis.responseRawHeadersBuffer.push(...rawHeaders);\n\t\t};\n\t\tthis.onResponseStart = (versionMajor, versionMinor, rawHeaders, method, url, status, statusText) => {\n\t\t\tconst headers = FetchResponse.parseRawHeaders([...this.responseRawHeadersBuffer, ...rawHeaders || []]);\n\t\t\tthis.responseRawHeadersBuffer.length = 0;\n\t\t\tconst response = new FetchResponse(\n\t\t\t\t/**\n\t\t\t\t* @note The Fetch API response instance exposed to the consumer\n\t\t\t\t* is created over the response stream of the HTTP parser. It is NOT\n\t\t\t\t* related to the Socket instance. This way, you can read response body\n\t\t\t\t* in response listener while the Socket instance delays the emission\n\t\t\t\t* of \"end\" and other events until those response listeners are finished.\n\t\t\t\t*/\n\t\t\t\tFetchResponse.isResponseWithBody(status) ? Readable.toWeb(this.responseStream = new Readable({ read() {} })) : null,\n\t\t\t\t{\n\t\t\t\t\turl,\n\t\t\t\t\tstatus,\n\t\t\t\t\tstatusText,\n\t\t\t\t\theaders\n\t\t\t\t}\n\t\t\t);\n\t\t\tinvariant(this.request, \"Failed to handle a response: request does not exist\");\n\t\t\tFetchResponse.setUrl(this.request.url, response);\n\t\t\t/**\n\t\t\t* @fixme Stop relying on the \"X-Request-Id\" request header\n\t\t\t* to figure out if one interceptor has been invoked within another.\n\t\t\t* @see https://github.com/mswjs/interceptors/issues/378\n\t\t\t*/\n\t\t\tif (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) return;\n\t\t\tthis.responseListenersPromise = this.onResponse({\n\t\t\t\tresponse,\n\t\t\t\tisMockedResponse: this.socketState === \"mock\",\n\t\t\t\trequestId: Reflect.get(this.request, kRequestId),\n\t\t\t\trequest: this.request,\n\t\t\t\tsocket: this\n\t\t\t});\n\t\t};\n\t\tthis.connectionOptions = options.connectionOptions;\n\t\tthis.createConnection = options.createConnection;\n\t\tthis.onRequest = options.onRequest;\n\t\tthis.onResponse = options.onResponse;\n\t\tthis.baseUrl = baseUrlFromConnectionOptions(this.connectionOptions);\n\t\tthis.requestParser = new HTTPParser();\n\t\tthis.requestParser.initialize(HTTPParser.REQUEST, {});\n\t\tthis.requestParser[HTTPParser.kOnHeaders] = this.onRequestHeaders.bind(this);\n\t\tthis.requestParser[HTTPParser.kOnHeadersComplete] = this.onRequestStart.bind(this);\n\t\tthis.requestParser[HTTPParser.kOnBody] = this.onRequestBody.bind(this);\n\t\tthis.requestParser[HTTPParser.kOnMessageComplete] = this.onRequestEnd.bind(this);\n\t\tthis.responseParser = new HTTPParser();\n\t\tthis.responseParser.initialize(HTTPParser.RESPONSE, {});\n\t\tthis.responseParser[HTTPParser.kOnHeaders] = this.onResponseHeaders.bind(this);\n\t\tthis.responseParser[HTTPParser.kOnHeadersComplete] = this.onResponseStart.bind(this);\n\t\tthis.responseParser[HTTPParser.kOnBody] = this.onResponseBody.bind(this);\n\t\tthis.responseParser[HTTPParser.kOnMessageComplete] = this.onResponseEnd.bind(this);\n\t\tthis.once(\"finish\", () => freeParser(this.requestParser, this));\n\t\tif (this.baseUrl.protocol === \"https:\") {\n\t\t\tReflect.set(this, \"encrypted\", true);\n\t\t\tReflect.set(this, \"authorized\", false);\n\t\t\tReflect.set(this, \"getProtocol\", () => \"TLSv1.3\");\n\t\t\tReflect.set(this, \"getSession\", () => void 0);\n\t\t\tReflect.set(this, \"isSessionReused\", () => false);\n\t\t\tReflect.set(this, \"getCipher\", () => ({\n\t\t\t\tname: \"AES256-SHA\",\n\t\t\t\tstandardName: \"TLS_RSA_WITH_AES_256_CBC_SHA\",\n\t\t\t\tversion: \"TLSv1.3\"\n\t\t\t}));\n\t\t}\n\t}\n\temit(event, ...args) {\n\t\tconst emitEvent = super.emit.bind(this, event, ...args);\n\t\tif (this.responseListenersPromise) {\n\t\t\tthis.responseListenersPromise.finally(emitEvent);\n\t\t\treturn this.listenerCount(event) > 0;\n\t\t}\n\t\treturn emitEvent();\n\t}\n\tdestroy(error) {\n\t\tfreeParser(this.responseParser, this);\n\t\tif (error) this.emit(\"error\", error);\n\t\treturn super.destroy(error);\n\t}\n\t/**\n\t* Establish this Socket connection as-is and pipe\n\t* its data/events through this Socket.\n\t*/\n\tpassthrough() {\n\t\tthis.socketState = \"passthrough\";\n\t\tif (this.destroyed) return;\n\t\tconst socket = this.createConnection();\n\t\tthis.originalSocket = socket;\n\t\t/**\n\t\t* @note Inherit the original socket's connection handle.\n\t\t* Without this, each push to the mock socket results in a\n\t\t* new \"connection\" listener being added (i.e. buffering pushes).\n\t\t* @see https://github.com/nodejs/node/blob/b18153598b25485ce4f54d0c5cb830a9457691ee/lib/net.js#L734\n\t\t*/\n\t\tif (\"_handle\" in socket) Object.defineProperty(this, \"_handle\", {\n\t\t\tvalue: socket._handle,\n\t\t\tenumerable: true,\n\t\t\twritable: true\n\t\t});\n\t\tthis.once(\"close\", () => {\n\t\t\tsocket.removeAllListeners();\n\t\t\tif (!socket.destroyed) socket.destroy();\n\t\t\tthis.originalSocket = void 0;\n\t\t});\n\t\tthis.address = socket.address.bind(socket);\n\t\tlet writeArgs;\n\t\tlet headersWritten = false;\n\t\twhile (writeArgs = this.writeBuffer.shift()) if (writeArgs !== void 0) {\n\t\t\tif (!headersWritten) {\n\t\t\t\tconst [chunk, encoding, callback] = writeArgs;\n\t\t\t\tconst chunkString = chunk.toString();\n\t\t\t\tconst chunkBeforeRequestHeaders = chunkString.slice(0, chunkString.indexOf(\"\\r\\n\") + 2);\n\t\t\t\tconst chunkAfterRequestHeaders = chunkString.slice(chunk.indexOf(\"\\r\\n\\r\\n\"));\n\t\t\t\tconst headersChunk = `${chunkBeforeRequestHeaders}${getRawFetchHeaders(this.request.headers).filter(([name]) => {\n\t\t\t\t\treturn name.toLowerCase() !== INTERNAL_REQUEST_ID_HEADER_NAME;\n\t\t\t\t}).map(([name, value]) => `${name}: ${value}`).join(\"\\r\\n\")}${chunkAfterRequestHeaders}`;\n\t\t\t\tsocket.write(headersChunk, encoding, callback);\n\t\t\t\theadersWritten = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tsocket.write(...writeArgs);\n\t\t}\n\t\tif (Reflect.get(socket, \"encrypted\")) [\n\t\t\t\"encrypted\",\n\t\t\t\"authorized\",\n\t\t\t\"getProtocol\",\n\t\t\t\"getSession\",\n\t\t\t\"isSessionReused\",\n\t\t\t\"getCipher\"\n\t\t].forEach((propertyName) => {\n\t\t\tObject.defineProperty(this, propertyName, {\n\t\t\t\tenumerable: true,\n\t\t\t\tget: () => {\n\t\t\t\t\tconst value = Reflect.get(socket, propertyName);\n\t\t\t\t\treturn typeof value === \"function\" ? value.bind(socket) : value;\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t\tsocket.on(\"lookup\", (...args) => this.emit(\"lookup\", ...args)).on(\"connect\", () => {\n\t\t\tthis.connecting = socket.connecting;\n\t\t\tthis.emit(\"connect\");\n\t\t}).on(\"secureConnect\", () => this.emit(\"secureConnect\")).on(\"secure\", () => this.emit(\"secure\")).on(\"session\", (session) => this.emit(\"session\", session)).on(\"ready\", () => this.emit(\"ready\")).on(\"drain\", () => this.emit(\"drain\")).on(\"data\", (chunk) => {\n\t\t\tthis.push(chunk);\n\t\t}).on(\"error\", (error) => {\n\t\t\tReflect.set(this, \"_hadError\", Reflect.get(socket, \"_hadError\"));\n\t\t\tthis.emit(\"error\", error);\n\t\t}).on(\"resume\", () => this.emit(\"resume\")).on(\"timeout\", () => this.emit(\"timeout\")).on(\"prefinish\", () => this.emit(\"prefinish\")).on(\"finish\", () => this.emit(\"finish\")).on(\"close\", (hadError) => this.emit(\"close\", hadError)).on(\"end\", () => this.emit(\"end\"));\n\t}\n\t/**\n\t* Convert the given Fetch API `Response` instance to an\n\t* HTTP message and push it to the socket.\n\t*/\n\tasync respondWith(response) {\n\t\tif (this.destroyed) return;\n\t\tinvariant(this.socketState !== \"mock\", \"[MockHttpSocket] Failed to respond to the \\\"%s %s\\\" request with \\\"%s %s\\\": the request has already been handled\", this.request?.method, this.request?.url, response.status, response.statusText);\n\t\tif (isPropertyAccessible(response, \"type\") && response.type === \"error\") {\n\t\t\tthis.errorWith(/* @__PURE__ */ new TypeError(\"Network error\"));\n\t\t\treturn;\n\t\t}\n\t\tthis.mockConnect();\n\t\tthis.socketState = \"mock\";\n\t\tthis.flushWriteBuffer();\n\t\tconst serverResponse = new ServerResponse(new IncomingMessage(this));\n\t\t/**\n\t\t* Assign a mock socket instance to the server response to\n\t\t* spy on the response chunk writes. Push the transformed response chunks\n\t\t* to this `MockHttpSocket` instance to trigger the \"data\" event.\n\t\t* @note Providing the same `MockSocket` instance when creating `ServerResponse`\n\t\t* does not have the same effect.\n\t\t* @see https://github.com/nodejs/node/blob/10099bb3f7fd97bb9dd9667188426866b3098e07/test/parallel/test-http-server-response-standalone.js#L32\n\t\t*/\n\t\tserverResponse.assignSocket(new MockSocket({\n\t\t\twrite: (chunk, encoding, callback) => {\n\t\t\t\tthis.push(chunk, encoding);\n\t\t\t\tcallback?.();\n\t\t\t},\n\t\t\tread() {}\n\t\t}));\n\t\t/**\n\t\t* @note Remove the `Connection` and `Date` response headers\n\t\t* injected by `ServerResponse` by default. Those are required\n\t\t* from the server but the interceptor is NOT technically a server.\n\t\t* It's confusing to add response headers that the developer didn't\n\t\t* specify themselves. They can always add these if they wish.\n\t\t* @see https://www.rfc-editor.org/rfc/rfc9110#field.date\n\t\t* @see https://www.rfc-editor.org/rfc/rfc9110#field.connection\n\t\t*/\n\t\tserverResponse.removeHeader(\"connection\");\n\t\tserverResponse.removeHeader(\"date\");\n\t\tconst rawResponseHeaders = getRawFetchHeaders(response.headers);\n\t\t/**\n\t\t* @note Call `.writeHead` in order to set the raw response headers\n\t\t* in the same case as they were provided by the developer. Using\n\t\t* `.setHeader()`/`.appendHeader()` normalizes header names.\n\t\t*/\n\t\tserverResponse.writeHead(response.status, response.statusText || STATUS_CODES[response.status], rawResponseHeaders);\n\t\tthis.once(\"error\", () => {\n\t\t\tserverResponse.destroy();\n\t\t});\n\t\tif (response.body) try {\n\t\t\tconst reader = response.body.getReader();\n\t\t\twhile (true) {\n\t\t\t\tconst { done, value } = await reader.read();\n\t\t\t\tif (done) {\n\t\t\t\t\tserverResponse.end();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tserverResponse.write(value);\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tif (error instanceof Error) {\n\t\t\t\tserverResponse.destroy();\n\t\t\t\t/**\n\t\t\t\t* @note Destroy the request socket gracefully.\n\t\t\t\t* Response stream errors do NOT produce request errors.\n\t\t\t\t*/\n\t\t\t\tthis.destroy();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tserverResponse.destroy();\n\t\t\tthrow error;\n\t\t}\n\t\telse serverResponse.end();\n\t\tif (!this.shouldKeepAlive) {\n\t\t\tthis.emit(\"readable\");\n\t\t\t/**\n\t\t\t* @todo @fixme This is likely a hack.\n\t\t\t* Since we push null to the socket, it never propagates to the\n\t\t\t* parser, and the parser never calls \"onResponseEnd\" to close\n\t\t\t* the response stream. We are closing the stream here manually\n\t\t\t* but that shouldn't be the case.\n\t\t\t*/\n\t\t\tthis.responseStream?.push(null);\n\t\t\tthis.push(null);\n\t\t}\n\t}\n\t/**\n\t* Close this socket connection with the given error.\n\t*/\n\terrorWith(error) {\n\t\tthis.destroy(error);\n\t}\n\tmockConnect() {\n\t\tthis.connecting = false;\n\t\tconst isIPv6 = net.isIPv6(this.connectionOptions.hostname) || this.connectionOptions.family === 6;\n\t\tconst addressInfo = {\n\t\t\taddress: isIPv6 ? \"::1\" : \"127.0.0.1\",\n\t\t\tfamily: isIPv6 ? \"IPv6\" : \"IPv4\",\n\t\t\tport: this.connectionOptions.port\n\t\t};\n\t\tthis.address = () => addressInfo;\n\t\tthis.emit(\"lookup\", null, addressInfo.address, addressInfo.family === \"IPv6\" ? 6 : 4, this.connectionOptions.host);\n\t\tthis.emit(\"connect\");\n\t\tthis.emit(\"ready\");\n\t\tif (this.baseUrl.protocol === \"https:\") {\n\t\t\tthis.emit(\"secure\");\n\t\t\tthis.emit(\"secureConnect\");\n\t\t\tthis.emit(\"session\", this.connectionOptions.session || Buffer.from(\"mock-session-renegotiate\"));\n\t\t\tthis.emit(\"session\", Buffer.from(\"mock-session-resume\"));\n\t\t}\n\t}\n\tflushWriteBuffer() {\n\t\tfor (const writeCall of this.writeBuffer) if (typeof writeCall[2] === \"function\") {\n\t\t\twriteCall[2]();\n\t\t\t/**\n\t\t\t* @note Remove the callback from the write call\n\t\t\t* so it doesn't get called twice on passthrough\n\t\t\t* if `request.end()` was called within `request.write()`.\n\t\t\t* @see https://github.com/mswjs/interceptors/issues/684\n\t\t\t*/\n\t\t\twriteCall[2] = void 0;\n\t\t}\n\t}\n\tonRequestBody(chunk) {\n\t\tinvariant(this.requestStream, \"Failed to write to a request stream: stream does not exist\");\n\t\tthis.requestStream.push(chunk);\n\t}\n\tonRequestEnd() {\n\t\tif (this.requestStream) this.requestStream.push(null);\n\t}\n\tonResponseBody(chunk) {\n\t\tinvariant(this.responseStream, \"Failed to write to a response stream: stream does not exist\");\n\t\tthis.responseStream.push(chunk);\n\t}\n\tonResponseEnd() {\n\t\tif (this.responseStream) this.responseStream.push(null);\n\t}\n};\n\n//#endregion\n//#region src/interceptors/ClientRequest/agents.ts\nvar MockAgent = class extends http.Agent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.customAgent = options.customAgent;\n\t\tthis.onRequest = options.onRequest;\n\t\tthis.onResponse = options.onResponse;\n\t}\n\tcreateConnection(options, callback) {\n\t\tconst createConnection = this.customAgent instanceof http.Agent ? this.customAgent.createConnection : super.createConnection;\n\t\tconst createConnectionOptions = this.customAgent instanceof http.Agent ? {\n\t\t\t...options,\n\t\t\t...this.customAgent.options\n\t\t} : options;\n\t\treturn new MockHttpSocket({\n\t\t\tconnectionOptions: options,\n\t\t\tcreateConnection: createConnection.bind(this.customAgent || this, createConnectionOptions, callback),\n\t\t\tonRequest: this.onRequest.bind(this),\n\t\t\tonResponse: this.onResponse.bind(this)\n\t\t});\n\t}\n};\nvar MockHttpsAgent = class extends https.Agent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.customAgent = options.customAgent;\n\t\tthis.onRequest = options.onRequest;\n\t\tthis.onResponse = options.onResponse;\n\t}\n\tcreateConnection(options, callback) {\n\t\tconst createConnection = this.customAgent instanceof http.Agent ? this.customAgent.createConnection : super.createConnection;\n\t\tconst createConnectionOptions = this.customAgent instanceof http.Agent ? {\n\t\t\t...options,\n\t\t\t...this.customAgent.options\n\t\t} : options;\n\t\treturn new MockHttpSocket({\n\t\t\tconnectionOptions: options,\n\t\t\tcreateConnection: createConnection.bind(this.customAgent || this, createConnectionOptions, callback),\n\t\t\tonRequest: this.onRequest.bind(this),\n\t\t\tonResponse: this.onResponse.bind(this)\n\t\t});\n\t}\n};\n\n//#endregion\n//#region src/utils/getUrlByRequestOptions.ts\nconst logger$2 = new Logger(\"utils getUrlByRequestOptions\");\nconst DEFAULT_PATH = \"/\";\nconst DEFAULT_PROTOCOL = \"http:\";\nconst DEFAULT_HOSTNAME = \"localhost\";\nconst SSL_PORT = 443;\nfunction getAgent(options) {\n\treturn options.agent instanceof Agent ? options.agent : void 0;\n}\nfunction getProtocolByRequestOptions(options) {\n\tif (options.protocol) return options.protocol;\n\tconst agentProtocol = getAgent(options)?.protocol;\n\tif (agentProtocol) return agentProtocol;\n\tconst port = getPortByRequestOptions(options);\n\treturn options.cert || port === SSL_PORT ? \"https:\" : options.uri?.protocol || DEFAULT_PROTOCOL;\n}\nfunction getPortByRequestOptions(options) {\n\tif (options.port) return Number(options.port);\n\tconst agent = getAgent(options);\n\tif (agent?.options.port) return Number(agent.options.port);\n\tif (agent?.defaultPort) return Number(agent.defaultPort);\n}\nfunction getAuthByRequestOptions(options) {\n\tif (options.auth) {\n\t\tconst [username, password] = options.auth.split(\":\");\n\t\treturn {\n\t\t\tusername,\n\t\t\tpassword\n\t\t};\n\t}\n}\n/**\n* Returns true if host looks like an IPv6 address without surrounding brackets\n* It assumes any host containing `:` is definitely not IPv4 and probably IPv6,\n* but note that this could include invalid IPv6 addresses as well.\n*/\nfunction isRawIPv6Address(host) {\n\treturn host.includes(\":\") && !host.startsWith(\"[\") && !host.endsWith(\"]\");\n}\nfunction getHostname(options) {\n\tlet host = options.hostname || options.host;\n\tif (host) {\n\t\tif (isRawIPv6Address(host)) host = `[${host}]`;\n\t\treturn new URL(`http://${host}`).hostname;\n\t}\n\treturn DEFAULT_HOSTNAME;\n}\n/**\n* Creates a `URL` instance from a given `RequestOptions` object.\n*/\nfunction getUrlByRequestOptions(options) {\n\tlogger$2.info(\"request options\", options);\n\tif (options.uri) {\n\t\tlogger$2.info(\"constructing url from explicitly provided \\\"options.uri\\\": %s\", options.uri);\n\t\treturn new URL(options.uri.href);\n\t}\n\tlogger$2.info(\"figuring out url from request options...\");\n\tconst protocol = getProtocolByRequestOptions(options);\n\tlogger$2.info(\"protocol\", protocol);\n\tconst port = getPortByRequestOptions(options);\n\tlogger$2.info(\"port\", port);\n\tconst hostname = getHostname(options);\n\tlogger$2.info(\"hostname\", hostname);\n\tconst path = options.path || DEFAULT_PATH;\n\tlogger$2.info(\"path\", path);\n\tconst credentials = getAuthByRequestOptions(options);\n\tlogger$2.info(\"credentials\", credentials);\n\tconst authString = credentials ? `${credentials.username}:${credentials.password}@` : \"\";\n\tlogger$2.info(\"auth string:\", authString);\n\tconst portString = typeof port !== \"undefined\" ? `:${port}` : \"\";\n\tconst url = new URL(`${protocol}//${hostname}${portString}${path}`);\n\turl.username = credentials?.username || \"\";\n\turl.password = credentials?.password || \"\";\n\tlogger$2.info(\"created url:\", url);\n\treturn url;\n}\n\n//#endregion\n//#region src/utils/cloneObject.ts\nconst logger$1 = new Logger(\"cloneObject\");\nfunction isPlainObject(obj) {\n\tlogger$1.info(\"is plain object?\", obj);\n\tif (obj == null || !obj.constructor?.name) {\n\t\tlogger$1.info(\"given object is undefined, not a plain object...\");\n\t\treturn false;\n\t}\n\tlogger$1.info(\"checking the object constructor:\", obj.constructor.name);\n\treturn obj.constructor.name === \"Object\";\n}\nfunction cloneObject(obj) {\n\tlogger$1.info(\"cloning object:\", obj);\n\tconst enumerableProperties = Object.entries(obj).reduce((acc, [key, value]) => {\n\t\tlogger$1.info(\"analyzing key-value pair:\", key, value);\n\t\tacc[key] = isPlainObject(value) ? cloneObject(value) : value;\n\t\treturn acc;\n\t}, {});\n\treturn isPlainObject(obj) ? enumerableProperties : Object.assign(Object.getPrototypeOf(obj), enumerableProperties);\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/utils/normalizeClientRequestArgs.ts\nconst logger = new Logger(\"http normalizeClientRequestArgs\");\nfunction resolveRequestOptions(args, url) {\n\tif (typeof args[1] === \"undefined\" || typeof args[1] === \"function\") {\n\t\tlogger.info(\"request options not provided, deriving from the url\", url);\n\t\treturn urlToHttpOptions(url);\n\t}\n\tif (args[1]) {\n\t\tlogger.info(\"has custom RequestOptions!\", args[1]);\n\t\tconst requestOptionsFromUrl = urlToHttpOptions(url);\n\t\tlogger.info(\"derived RequestOptions from the URL:\", requestOptionsFromUrl);\n\t\t/**\n\t\t* Clone the request options to lock their state\n\t\t* at the moment they are provided to `ClientRequest`.\n\t\t* @see https://github.com/mswjs/interceptors/issues/86\n\t\t*/\n\t\tlogger.info(\"cloning RequestOptions...\");\n\t\tconst clonedRequestOptions = cloneObject(args[1]);\n\t\tlogger.info(\"successfully cloned RequestOptions!\", clonedRequestOptions);\n\t\treturn {\n\t\t\t...requestOptionsFromUrl,\n\t\t\t...clonedRequestOptions\n\t\t};\n\t}\n\tlogger.info(\"using an empty object as request options\");\n\treturn {};\n}\n/**\n* Overrides the given `URL` instance with the explicit properties provided\n* on the `RequestOptions` object. The options object takes precedence,\n* and will replace URL properties like \"host\", \"path\", and \"port\", if specified.\n*/\nfunction overrideUrlByRequestOptions(url, options) {\n\turl.host = options.host || url.host;\n\turl.hostname = options.hostname || url.hostname;\n\turl.port = options.port ? options.port.toString() : url.port;\n\tif (options.path) {\n\t\tconst parsedOptionsPath = parse(options.path, false);\n\t\turl.pathname = parsedOptionsPath.pathname || \"\";\n\t\turl.search = parsedOptionsPath.search || \"\";\n\t}\n\treturn url;\n}\nfunction resolveCallback(args) {\n\treturn typeof args[1] === \"function\" ? args[1] : args[2];\n}\n/**\n* Normalizes parameters given to a `http.request` call\n* so it always has a `URL` and `RequestOptions`.\n*/\nfunction normalizeClientRequestArgs(defaultProtocol, args) {\n\tlet url;\n\tlet options;\n\tlet callback;\n\tlogger.info(\"arguments\", args);\n\tlogger.info(\"using default protocol:\", defaultProtocol);\n\tif (args.length === 0) {\n\t\tconst url$1 = new URL$1(\"http://localhost\");\n\t\treturn [url$1, resolveRequestOptions(args, url$1)];\n\t}\n\tif (typeof args[0] === \"string\") {\n\t\tlogger.info(\"first argument is a location string:\", args[0]);\n\t\turl = new URL$1(args[0]);\n\t\tlogger.info(\"created a url:\", url);\n\t\tconst requestOptionsFromUrl = urlToHttpOptions(url);\n\t\tlogger.info(\"request options from url:\", requestOptionsFromUrl);\n\t\toptions = resolveRequestOptions(args, url);\n\t\tlogger.info(\"resolved request options:\", options);\n\t\tcallback = resolveCallback(args);\n\t} else if (args[0] instanceof URL$1) {\n\t\turl = args[0];\n\t\tlogger.info(\"first argument is a URL:\", url);\n\t\tif (typeof args[1] !== \"undefined\" && isObject(args[1])) url = overrideUrlByRequestOptions(url, args[1]);\n\t\toptions = resolveRequestOptions(args, url);\n\t\tlogger.info(\"derived request options:\", options);\n\t\tcallback = resolveCallback(args);\n\t} else if (\"hash\" in args[0] && !(\"method\" in args[0])) {\n\t\tconst [legacyUrl] = args;\n\t\tlogger.info(\"first argument is a legacy URL:\", legacyUrl);\n\t\tif (legacyUrl.hostname === null) {\n\t\t\t/**\n\t\t\t* We are dealing with a relative url, so use the path as an \"option\" and\n\t\t\t* merge in any existing options, giving priority to existing options -- i.e. a path in any\n\t\t\t* existing options will take precedence over the one contained in the url. This is consistent\n\t\t\t* with the behaviour in ClientRequest.\n\t\t\t* @see https://github.com/nodejs/node/blob/d84f1312915fe45fe0febe888db692c74894c382/lib/_http_client.js#L122\n\t\t\t*/\n\t\t\tlogger.info(\"given legacy URL is relative (no hostname)\");\n\t\t\treturn isObject(args[1]) ? normalizeClientRequestArgs(defaultProtocol, [{\n\t\t\t\tpath: legacyUrl.path,\n\t\t\t\t...args[1]\n\t\t\t}, args[2]]) : normalizeClientRequestArgs(defaultProtocol, [{ path: legacyUrl.path }, args[1]]);\n\t\t}\n\t\tlogger.info(\"given legacy url is absolute\");\n\t\tconst resolvedUrl = new URL$1(legacyUrl.href);\n\t\treturn args[1] === void 0 ? normalizeClientRequestArgs(defaultProtocol, [resolvedUrl]) : typeof args[1] === \"function\" ? normalizeClientRequestArgs(defaultProtocol, [resolvedUrl, args[1]]) : normalizeClientRequestArgs(defaultProtocol, [\n\t\t\tresolvedUrl,\n\t\t\targs[1],\n\t\t\targs[2]\n\t\t]);\n\t} else if (isObject(args[0])) {\n\t\toptions = { ...args[0] };\n\t\tlogger.info(\"first argument is RequestOptions:\", options);\n\t\toptions.protocol = options.protocol || defaultProtocol;\n\t\tlogger.info(\"normalized request options:\", options);\n\t\turl = getUrlByRequestOptions(options);\n\t\tlogger.info(\"created a URL from RequestOptions:\", url.href);\n\t\tcallback = resolveCallback(args);\n\t} else throw new Error(`Failed to construct ClientRequest with these parameters: ${args}`);\n\toptions.protocol = options.protocol || url.protocol;\n\toptions.method = options.method || \"GET\";\n\t/**\n\t* Ensure that the default Agent is always set.\n\t* This prevents the protocol mismatch for requests with { agent: false },\n\t* where the global Agent is inferred.\n\t* @see https://github.com/mswjs/msw/issues/1150\n\t* @see https://github.com/nodejs/node/blob/418ff70b810f0e7112d48baaa72932a56cfa213b/lib/_http_client.js#L130\n\t* @see https://github.com/nodejs/node/blob/418ff70b810f0e7112d48baaa72932a56cfa213b/lib/_http_client.js#L157-L159\n\t*/\n\tif (!options._defaultAgent) {\n\t\tlogger.info(\"has no default agent, setting the default agent for \\\"%s\\\"\", options.protocol);\n\t\toptions._defaultAgent = options.protocol === \"https:\" ? globalAgent$1 : globalAgent;\n\t}\n\tlogger.info(\"successfully resolved url:\", url.href);\n\tlogger.info(\"successfully resolved options:\", options);\n\tlogger.info(\"successfully resolved callback:\", callback);\n\t/**\n\t* @note If the user-provided URL is not a valid URL in Node.js,\n\t* (e.g. the one provided by the JSDOM polyfills), case it to\n\t* string. Otherwise, this throws on Node.js incompatibility\n\t* (`ERR_INVALID_ARG_TYPE` on the connection listener)\n\t* @see https://github.com/node-fetch/node-fetch/issues/1376#issuecomment-966435555\n\t*/\n\tif (!(url instanceof URL$1)) url = url.toString();\n\treturn [\n\t\turl,\n\t\toptions,\n\t\tcallback\n\t];\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/index.ts\nvar ClientRequestInterceptor = class ClientRequestInterceptor extends Interceptor {\n\tstatic {\n\t\tthis.symbol = Symbol(\"client-request-interceptor\");\n\t}\n\tconstructor() {\n\t\tsuper(ClientRequestInterceptor.symbol);\n\t\tthis.onRequest = async ({ request, socket }) => {\n\t\t\tconst controller = new RequestController(request, {\n\t\t\t\tpassthrough() {\n\t\t\t\t\tsocket.passthrough();\n\t\t\t\t},\n\t\t\t\tasync respondWith(response) {\n\t\t\t\t\tawait socket.respondWith(response);\n\t\t\t\t},\n\t\t\t\terrorWith(reason) {\n\t\t\t\t\tif (reason instanceof Error) socket.errorWith(reason);\n\t\t\t\t}\n\t\t\t});\n\t\t\tawait handleRequest({\n\t\t\t\trequest,\n\t\t\t\trequestId: Reflect.get(request, kRequestId),\n\t\t\t\tcontroller,\n\t\t\t\temitter: this.emitter\n\t\t\t});\n\t\t};\n\t\tthis.onResponse = async ({ requestId, request, response, isMockedResponse }) => {\n\t\t\treturn emitAsync(this.emitter, \"response\", {\n\t\t\t\trequestId,\n\t\t\t\trequest,\n\t\t\t\tresponse,\n\t\t\t\tisMockedResponse\n\t\t\t});\n\t\t};\n\t}\n\tsetup() {\n\t\tconst { ClientRequest: OriginalClientRequest, get: originalGet, request: originalRequest } = http;\n\t\tconst { get: originalHttpsGet, request: originalHttpsRequest } = https;\n\t\tconst onRequest = this.onRequest.bind(this);\n\t\tconst onResponse = this.onResponse.bind(this);\n\t\thttp.ClientRequest = new Proxy(http.ClientRequest, { construct: (target, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"http:\", args);\n\t\t\toptions.agent = new (options.protocol === \"https:\" ? MockHttpsAgent : MockAgent)({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.construct(target, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttp.request = new Proxy(http.request, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"http:\", args);\n\t\t\toptions.agent = new MockAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttp.get = new Proxy(http.get, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"http:\", args);\n\t\t\toptions.agent = new MockAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttps.request = new Proxy(https.request, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"https:\", args);\n\t\t\toptions.agent = new MockHttpsAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttps.get = new Proxy(https.get, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"https:\", args);\n\t\t\toptions.agent = new MockHttpsAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\trecordRawFetchHeaders();\n\t\tthis.subscriptions.push(() => {\n\t\t\thttp.ClientRequest = OriginalClientRequest;\n\t\t\thttp.get = originalGet;\n\t\t\thttp.request = originalRequest;\n\t\t\thttps.get = originalHttpsGet;\n\t\t\thttps.request = originalHttpsRequest;\n\t\t\trestoreHeadersPrototype();\n\t\t});\n\t}\n};\n\n//#endregion\nexport { ClientRequestInterceptor as t };\n//# sourceMappingURL=ClientRequest-Ca8Qykuv.mjs.map"],"names":["normalizeSocketWriteArgs","args","normalized","MockSocket","net","Socket","constructor","options","super","this","connecting","connect","_final","callback","write","chunk","encoding","end","apply","push","read","kRawHeaders","Symbol","kRestorePatches","recordRawHeader","headers","behavior","ensureRawHeadersSymbol","rawHeaders","Reflect","get","index","length","toLowerCase","splice","has","Object","defineProperty","value","enumerable","configurable","defineRawHeadersSymbol","getRawFetchHeaders","Array","from","entries","inferRawHeaders","Headers","freeParser","parser","socket","_consumed","unconsume","_headers","_url","incoming","outgoing","maxHeaderPairs","onIncoming","HTTPParser","kOnHeaders","kOnHeadersComplete","kOnMessageBegin","kOnMessageComplete","kOnBody","kOnExecute","kOnTimeout","remove","free","destroyed","once","kRequestId","MockHttpSocket","socketState","writeBuffer","originalSocket","requestParser","execute","Buffer","isBuffer","responseParser","requestRawHeadersBuffer","responseRawHeadersBuffer","onRequestHeaders","onRequestStart","versionMajor","versionMinor","_","path","__","___","____","shouldKeepAlive","url","URL","baseUrl","method","connectionOptions","toUpperCase","FetchResponse","parseRawHeaders","canHaveBody","username","password","set","requestStream","Readable","flushWriteBuffer","requestId","createRequestId","request","Request","credentials","duplex","body","toWeb","setRawRequest","setRawRequestBodyStream","INTERNAL_REQUEST_ID_HEADER_NAME","passthrough","onRequest","onResponseHeaders","onResponseStart","status","statusText","response","isResponseWithBody","responseStream","invariant","setUrl","responseListenersPromise","onResponse","isMockedResponse","createConnection","href","protocol","port","host","toString","pathname","auth","split","baseUrlFromConnectionOptions","initialize","REQUEST","bind","onRequestBody","onRequestEnd","RESPONSE","onResponseBody","onResponseEnd","name","standardName","version","emit","event","emitEvent","finally","listenerCount","destroy","error","writeArgs","_handle","writable","removeAllListeners","address","headersWritten","shift","chunkString","chunkBeforeRequestHeaders","slice","indexOf","chunkAfterRequestHeaders","headersChunk","filter","map","join","forEach","propertyName","on","session","hadError","respondWith","isPropertyAccessible","type","errorWith","TypeError","mockConnect","serverResponse","ServerResponse","IncomingMessage","assignSocket","removeHeader","rawResponseHeaders","writeHead","STATUS_CODES","reader","getReader","done","Error","isIPv6","hostname","family","addressInfo","writeCall","MockAgent","http","Agent","customAgent","createConnectionOptions","MockHttpsAgent","https","logger$2","Logger","getAgent","agent","getPortByRequestOptions","Number","defaultPort","getUrlByRequestOptions","info","uri","agentProtocol","cert","getProtocolByRequestOptions","includes","startsWith","endsWith","isRawIPv6Address","getHostname","getAuthByRequestOptions","authString","logger$1","isPlainObject","obj","cloneObject","enumerableProperties","reduce","acc","key","assign","getPrototypeOf","logger","resolveRequestOptions","urlToHttpOptions","requestOptionsFromUrl","clonedRequestOptions","resolveCallback","normalizeClientRequestArgs","defaultProtocol","url$1","URL$1","isObject","parsedOptionsPath","parse","search","overrideUrlByRequestOptions","legacyUrl","resolvedUrl","_defaultAgent","globalAgent$1","globalAgent","ClientRequestInterceptor","Interceptor","symbol","async","controller","RequestController","reason","handleRequest","emitter","emitAsync","setup","ClientRequest","OriginalClientRequest","originalGet","originalRequest","originalHttpsGet","originalHttpsRequest","Proxy","construct","target","thisArg","OriginalHeaders","OriginalRequest","Response","OriginalResponse","globalThis","append","delete","headersDeleteMethod","prototype","deleteProperty","newTarget","headersInit","headers$1","isArray","inferredRawHeaders","recordRawFetchHeaders","subscriptions"],"mappings":"6wBAmBA,SAASA,EAAyBC,GACjC,MAAMC,EAAa,CAClBD,EAAK,QACL,OACA,GAKD,MAHuB,iBAAZA,EAAK,GAAiBC,EAAW,GAAKD,EAAK,GAC1B,mBAAZA,EAAK,KAAmBC,EAAW,GAAKD,EAAK,IACtC,mBAAZA,EAAK,KAAmBC,EAAW,GAAKD,EAAK,IACjDC,CACR,CAIA,IAAIC,EAAa,cAAcC,EAAIC,OAClC,WAAAC,CAAYC,GACXC,QACAC,KAAKF,QAAUA,EACfE,KAAKC,YAAa,EAClBD,KAAKE,UACLF,KAAKG,OAAUC,IACdA,EAAS,MAEX,CACA,OAAAF,GAEC,OADAF,KAAKC,YAAa,EACXD,IACR,CACA,KAAAK,IAASb,GACR,MAAOc,EAAOC,EAAUH,GAAYb,EAAyBC,GAE7D,OADAQ,KAAKF,QAAQO,MAAMC,EAAOC,EAAUH,IAC7B,CACR,CACA,GAAAI,IAAOhB,GACN,MAAOc,EAAOC,EAAUH,GAAYb,EAAyBC,GAE7D,OADAQ,KAAKF,QAAQO,MAAMC,EAAOC,EAAUH,GAC7BL,MAAMS,IAA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OAAOF,QAAQX,MAAMuQ,EAAQC,EAASzR,EACvC,IACAmC,OAAOC,eAAe0P,WAAY,UAAW,CAC5CxP,YAAY,EACZ4H,UAAU,EACV7H,MAAO,IAAIiP,MAAMxK,QAAS,CAAE,SAAAyK,CAAUC,EAAQxR,EAAMoS,GACnD,MAAMvL,EAAUjF,QAAQ2P,UAAUC,EAAQxR,EAAMoS,GAC1CI,EAAqB,GAI3B,MAHuB,iBAAZxS,EAAK,IAAsC,MAAnBA,EAAK,GAAGwB,SAAiBgR,EAAmBtR,QAAQ2B,EAAgB7C,EAAK,GAAGwB,UACxF,iBAAZxB,EAAK,IAAsC,MAAnBA,EAAK,GAAGwB,SAAiBgR,EAAmBtR,QAAQ2B,EAAgB7C,EAAK,GAAGwB,UAC3GgR,EAAmBzQ,OAAS,GAAGL,EAAuBmF,EAAQrF,QAASgR,GACpE3L,CACR,MAED1E,OAAOC,eAAe0P,WAAY,WAAY,CAC7CxP,YAAY,EACZ4H,UAAU,EACV7H,MAAO,IAAIiP,MAAMM,SAAU,CAAE,SAAAL,CAAUC,EAAQxR,EAAMoS,GACpD,MAAMxK,EAAWhG,QAAQ2P,UAAUC,EAAQxR,EAAMoS,GAEjD,MADuB,iBAAZpS,EAAK,IAAsC,MAAnBA,EAAK,GAAGwB,SAAiBE,EAAuBkG,EAASpG,QAASqB,EAAgB7C,EAAK,GAAGwB,UACtHoG,CACR,KAEF,CA0zBE6K,GACAjS,KAAKkS,cAAcxR,MAAK,KACvB2L,EAAKmE,cAAgBC,EACrBpE,EAAKhL,IAAMqP,EACXrE,EAAKhG,QAAUsK,EACfjE,EAAMrL,IAAMuP,EACZlE,EAAMrG,QAAUwK,EA9zBbzP,QAAQC,IAAIiB,QAASxB,IAC1BM,QAAQC,IAAIiB,QAASxB,EAArBM,KAg0BA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"ClientRequest-Ca8Qykuv.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/node/ClientRequest-Ca8Qykuv.mjs"],"sourcesContent":["import { i as RequestController, o as INTERNAL_REQUEST_ID_HEADER_NAME, r as createRequestId, s as Interceptor, t as FetchResponse } from \"./fetchUtils-CoU35g3M.mjs\";\nimport { n as setRawRequest } from \"./getRawRequest-DnwmXyOW.mjs\";\nimport { a as isPropertyAccessible, i as emitAsync, r as isObject, t as handleRequest } from \"./handleRequest-Y97UwBbF.mjs\";\nimport { n as setRawRequestBodyStream } from \"./node-DwCc6iuP.mjs\";\nimport { Logger } from \"@open-draft/logger\";\nimport { invariant } from \"outvariant\";\nimport http, { IncomingMessage, STATUS_CODES, ServerResponse, globalAgent } from \"node:http\";\nimport https, { globalAgent as globalAgent$1 } from \"node:https\";\nimport net from \"node:net\";\nimport { HTTPParser } from \"_http_common\";\nimport { Readable } from \"node:stream\";\nimport { URL as URL$1, parse, urlToHttpOptions } from \"node:url\";\nimport { Agent } from \"http\";\n\n//#region src/interceptors/Socket/utils/normalizeSocketWriteArgs.ts\n/**\n* Normalizes the arguments provided to the `Writable.prototype.write()`\n* and `Writable.prototype.end()`.\n*/\nfunction normalizeSocketWriteArgs(args) {\n\tconst normalized = [\n\t\targs[0],\n\t\tvoid 0,\n\t\tvoid 0\n\t];\n\tif (typeof args[1] === \"string\") normalized[1] = args[1];\n\telse if (typeof args[1] === \"function\") normalized[2] = args[1];\n\tif (typeof args[2] === \"function\") normalized[2] = args[2];\n\treturn normalized;\n}\n\n//#endregion\n//#region src/interceptors/Socket/MockSocket.ts\nvar MockSocket = class extends net.Socket {\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.options = options;\n\t\tthis.connecting = false;\n\t\tthis.connect();\n\t\tthis._final = (callback) => {\n\t\t\tcallback(null);\n\t\t};\n\t}\n\tconnect() {\n\t\tthis.connecting = true;\n\t\treturn this;\n\t}\n\twrite(...args) {\n\t\tconst [chunk, encoding, callback] = normalizeSocketWriteArgs(args);\n\t\tthis.options.write(chunk, encoding, callback);\n\t\treturn true;\n\t}\n\tend(...args) {\n\t\tconst [chunk, encoding, callback] = normalizeSocketWriteArgs(args);\n\t\tthis.options.write(chunk, encoding, callback);\n\t\treturn super.end.apply(this, args);\n\t}\n\tpush(chunk, encoding) {\n\t\tthis.options.read(chunk, encoding);\n\t\treturn super.push(chunk, encoding);\n\t}\n};\n\n//#endregion\n//#region src/interceptors/Socket/utils/baseUrlFromConnectionOptions.ts\nfunction baseUrlFromConnectionOptions(options) {\n\tif (\"href\" in options) return new URL(options.href);\n\tconst protocol = options.port === 443 ? \"https:\" : \"http:\";\n\tconst host = options.host;\n\tconst url = new URL(`${protocol}//${host}`);\n\tif (options.port) url.port = options.port.toString();\n\tif (options.path) url.pathname = options.path;\n\tif (options.auth) {\n\t\tconst [username, password] = options.auth.split(\":\");\n\t\turl.username = username;\n\t\turl.password = password;\n\t}\n\treturn url;\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/utils/recordRawHeaders.ts\nconst kRawHeaders = Symbol(\"kRawHeaders\");\nconst kRestorePatches = Symbol(\"kRestorePatches\");\nfunction recordRawHeader(headers, args, behavior) {\n\tensureRawHeadersSymbol(headers, []);\n\tconst rawHeaders = Reflect.get(headers, kRawHeaders);\n\tif (behavior === \"set\") {\n\t\tfor (let index = rawHeaders.length - 1; index >= 0; index--) if (rawHeaders[index][0].toLowerCase() === args[0].toLowerCase()) rawHeaders.splice(index, 1);\n\t}\n\trawHeaders.push(args);\n}\n/**\n* Define the raw headers symbol on the given `Headers` instance.\n* If the symbol already exists, this function does nothing.\n*/\nfunction ensureRawHeadersSymbol(headers, rawHeaders) {\n\tif (Reflect.has(headers, kRawHeaders)) return;\n\tdefineRawHeadersSymbol(headers, rawHeaders);\n}\n/**\n* Define the raw headers symbol on the given `Headers` instance.\n* If the symbol already exists, it gets overridden.\n*/\nfunction defineRawHeadersSymbol(headers, rawHeaders) {\n\tObject.defineProperty(headers, kRawHeaders, {\n\t\tvalue: rawHeaders,\n\t\tenumerable: false,\n\t\tconfigurable: true\n\t});\n}\n/**\n* Patch the global `Headers` class to store raw headers.\n* This is for compatibility with `IncomingMessage.prototype.rawHeaders`.\n*\n* @note Node.js has their own raw headers symbol but it\n* only records the first header name in case of multi-value headers.\n* Any other headers are normalized before comparing. This makes it\n* incompatible with the `rawHeaders` format.\n*\n* let h = new Headers()\n* h.append('X-Custom', 'one')\n* h.append('x-custom', 'two')\n* h[Symbol('headers map')] // Map { 'X-Custom' => 'one, two' }\n*/\nfunction recordRawFetchHeaders() {\n\tif (Reflect.get(Headers, kRestorePatches)) return Reflect.get(Headers, kRestorePatches);\n\tconst { Headers: OriginalHeaders, Request: OriginalRequest, Response: OriginalResponse } = globalThis;\n\tconst { set, append, delete: headersDeleteMethod } = Headers.prototype;\n\tObject.defineProperty(Headers, kRestorePatches, {\n\t\tvalue: () => {\n\t\t\tHeaders.prototype.set = set;\n\t\t\tHeaders.prototype.append = append;\n\t\t\tHeaders.prototype.delete = headersDeleteMethod;\n\t\t\tglobalThis.Headers = OriginalHeaders;\n\t\t\tglobalThis.Request = OriginalRequest;\n\t\t\tglobalThis.Response = OriginalResponse;\n\t\t\tReflect.deleteProperty(Headers, kRestorePatches);\n\t\t},\n\t\tenumerable: false,\n\t\tconfigurable: true\n\t});\n\tObject.defineProperty(globalThis, \"Headers\", {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue: new Proxy(Headers, { construct(target, args, newTarget) {\n\t\t\tconst headersInit = args[0] || [];\n\t\t\tif (headersInit instanceof Headers && Reflect.has(headersInit, kRawHeaders)) {\n\t\t\t\tconst headers$1 = Reflect.construct(target, [Reflect.get(headersInit, kRawHeaders)], newTarget);\n\t\t\t\tensureRawHeadersSymbol(headers$1, [...Reflect.get(headersInit, kRawHeaders)]);\n\t\t\t\treturn headers$1;\n\t\t\t}\n\t\t\tconst headers = Reflect.construct(target, args, newTarget);\n\t\t\tif (!Reflect.has(headers, kRawHeaders)) ensureRawHeadersSymbol(headers, Array.isArray(headersInit) ? headersInit : Object.entries(headersInit));\n\t\t\treturn headers;\n\t\t} })\n\t});\n\tHeaders.prototype.set = new Proxy(Headers.prototype.set, { apply(target, thisArg, args) {\n\t\trecordRawHeader(thisArg, args, \"set\");\n\t\treturn Reflect.apply(target, thisArg, args);\n\t} });\n\tHeaders.prototype.append = new Proxy(Headers.prototype.append, { apply(target, thisArg, args) {\n\t\trecordRawHeader(thisArg, args, \"append\");\n\t\treturn Reflect.apply(target, thisArg, args);\n\t} });\n\tHeaders.prototype.delete = new Proxy(Headers.prototype.delete, { apply(target, thisArg, args) {\n\t\tconst rawHeaders = Reflect.get(thisArg, kRawHeaders);\n\t\tif (rawHeaders) {\n\t\t\tfor (let index = rawHeaders.length - 1; index >= 0; index--) if (rawHeaders[index][0].toLowerCase() === args[0].toLowerCase()) rawHeaders.splice(index, 1);\n\t\t}\n\t\treturn Reflect.apply(target, thisArg, args);\n\t} });\n\tObject.defineProperty(globalThis, \"Request\", {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue: new Proxy(Request, { construct(target, args, newTarget) {\n\t\t\tconst request = Reflect.construct(target, args, newTarget);\n\t\t\tconst inferredRawHeaders = [];\n\t\t\tif (typeof args[0] === \"object\" && args[0].headers != null) inferredRawHeaders.push(...inferRawHeaders(args[0].headers));\n\t\t\tif (typeof args[1] === \"object\" && args[1].headers != null) inferredRawHeaders.push(...inferRawHeaders(args[1].headers));\n\t\t\tif (inferredRawHeaders.length > 0) ensureRawHeadersSymbol(request.headers, inferredRawHeaders);\n\t\t\treturn request;\n\t\t} })\n\t});\n\tObject.defineProperty(globalThis, \"Response\", {\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue: new Proxy(Response, { construct(target, args, newTarget) {\n\t\t\tconst response = Reflect.construct(target, args, newTarget);\n\t\t\tif (typeof args[1] === \"object\" && args[1].headers != null) ensureRawHeadersSymbol(response.headers, inferRawHeaders(args[1].headers));\n\t\t\treturn response;\n\t\t} })\n\t});\n}\nfunction restoreHeadersPrototype() {\n\tif (!Reflect.get(Headers, kRestorePatches)) return;\n\tReflect.get(Headers, kRestorePatches)();\n}\nfunction getRawFetchHeaders(headers) {\n\tif (!Reflect.has(headers, kRawHeaders)) return Array.from(headers.entries());\n\tconst rawHeaders = Reflect.get(headers, kRawHeaders);\n\treturn rawHeaders.length > 0 ? rawHeaders : Array.from(headers.entries());\n}\n/**\n* Infers the raw headers from the given `HeadersInit` provided\n* to the Request/Response constructor.\n*\n* If the `init.headers` is a Headers instance, use it directly.\n* That means the headers were created standalone and already have\n* the raw headers stored.\n* If the `init.headers` is a HeadersInit, create a new Headers\n* instance out of it.\n*/\nfunction inferRawHeaders(headers) {\n\tif (headers instanceof Headers) return Reflect.get(headers, kRawHeaders) || [];\n\treturn Reflect.get(new Headers(headers), kRawHeaders);\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/utils/parserUtils.ts\n/**\n* @see https://github.com/nodejs/node/blob/f3adc11e37b8bfaaa026ea85c1cf22e3a0e29ae9/lib/_http_common.js#L180\n*/\nfunction freeParser(parser, socket) {\n\tif (parser._consumed) parser.unconsume();\n\tparser._headers = [];\n\tparser._url = \"\";\n\tparser.socket = null;\n\tparser.incoming = null;\n\tparser.outgoing = null;\n\tparser.maxHeaderPairs = 2e3;\n\tparser._consumed = false;\n\tparser.onIncoming = null;\n\tparser[HTTPParser.kOnHeaders] = null;\n\tparser[HTTPParser.kOnHeadersComplete] = null;\n\tparser[HTTPParser.kOnMessageBegin] = null;\n\tparser[HTTPParser.kOnMessageComplete] = null;\n\tparser[HTTPParser.kOnBody] = null;\n\tparser[HTTPParser.kOnExecute] = null;\n\tparser[HTTPParser.kOnTimeout] = null;\n\tparser.remove();\n\tparser.free();\n\tif (socket)\n /**\n\t* @note Unassigning the socket's parser will fail this assertion\n\t* if there's still some data being processed on the socket:\n\t* @see https://github.com/nodejs/node/blob/4e1f39b678b37017ac9baa0971e3aeecd3b67b51/lib/_http_client.js#L613\n\t*/\n\tif (socket.destroyed) socket.parser = null;\n\telse socket.once(\"end\", () => {\n\t\tsocket.parser = null;\n\t});\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/MockHttpSocket.ts\nconst kRequestId = Symbol(\"kRequestId\");\nvar MockHttpSocket = class extends MockSocket {\n\tconstructor(options) {\n\t\tsuper({\n\t\t\twrite: (chunk, encoding, callback) => {\n\t\t\t\tif (this.socketState !== \"passthrough\") this.writeBuffer.push([\n\t\t\t\t\tchunk,\n\t\t\t\t\tencoding,\n\t\t\t\t\tcallback\n\t\t\t\t]);\n\t\t\t\tif (chunk) {\n\t\t\t\t\t/**\n\t\t\t\t\t* Forward any writes to the mock socket to the underlying original socket.\n\t\t\t\t\t* This ensures functional duplex connections, like WebSocket.\n\t\t\t\t\t* @see https://github.com/mswjs/interceptors/issues/682\n\t\t\t\t\t*/\n\t\t\t\t\tif (this.socketState === \"passthrough\") this.originalSocket?.write(chunk, encoding, callback);\n\t\t\t\t\tthis.requestParser.execute(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk, encoding));\n\t\t\t\t}\n\t\t\t},\n\t\t\tread: (chunk) => {\n\t\t\t\tif (chunk !== null)\n /**\n\t\t\t\t* @todo We need to free the parser if the connection has been\n\t\t\t\t* upgraded to a non-HTTP protocol. It won't be able to parse data\n\t\t\t\t* from that point onward anyway. No need to keep it in memory.\n\t\t\t\t*/\n\t\t\t\tthis.responseParser.execute(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));\n\t\t\t}\n\t\t});\n\t\tthis.requestRawHeadersBuffer = [];\n\t\tthis.responseRawHeadersBuffer = [];\n\t\tthis.writeBuffer = [];\n\t\tthis.socketState = \"unknown\";\n\t\tthis.onRequestHeaders = (rawHeaders) => {\n\t\t\tthis.requestRawHeadersBuffer.push(...rawHeaders);\n\t\t};\n\t\tthis.onRequestStart = (versionMajor, versionMinor, rawHeaders, _, path, __, ___, ____, shouldKeepAlive) => {\n\t\t\tthis.shouldKeepAlive = shouldKeepAlive;\n\t\t\tconst url = new URL(path || \"\", this.baseUrl);\n\t\t\tconst method = this.connectionOptions.method?.toUpperCase() || \"GET\";\n\t\t\tconst headers = FetchResponse.parseRawHeaders([...this.requestRawHeadersBuffer, ...rawHeaders || []]);\n\t\t\tthis.requestRawHeadersBuffer.length = 0;\n\t\t\tconst canHaveBody = method !== \"GET\" && method !== \"HEAD\";\n\t\t\tif (url.username || url.password) {\n\t\t\t\tif (!headers.has(\"authorization\")) headers.set(\"authorization\", `Basic ${url.username}:${url.password}`);\n\t\t\t\turl.username = \"\";\n\t\t\t\turl.password = \"\";\n\t\t\t}\n\t\t\tthis.requestStream = new Readable({ read: () => {\n\t\t\t\tthis.flushWriteBuffer();\n\t\t\t} });\n\t\t\tconst requestId = createRequestId();\n\t\t\tthis.request = new Request(url, {\n\t\t\t\tmethod,\n\t\t\t\theaders,\n\t\t\t\tcredentials: \"same-origin\",\n\t\t\t\tduplex: canHaveBody ? \"half\" : void 0,\n\t\t\t\tbody: canHaveBody ? Readable.toWeb(this.requestStream) : null\n\t\t\t});\n\t\t\tReflect.set(this.request, kRequestId, requestId);\n\t\t\tsetRawRequest(this.request, Reflect.get(this, \"_httpMessage\"));\n\t\t\tsetRawRequestBodyStream(this.request, this.requestStream);\n\t\t\t/**\n\t\t\t* @fixme Stop relying on the \"X-Request-Id\" request header\n\t\t\t* to figure out if one interceptor has been invoked within another.\n\t\t\t* @see https://github.com/mswjs/interceptors/issues/378\n\t\t\t*/\n\t\t\tif (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) {\n\t\t\t\tthis.passthrough();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.onRequest({\n\t\t\t\trequestId,\n\t\t\t\trequest: this.request,\n\t\t\t\tsocket: this\n\t\t\t});\n\t\t};\n\t\tthis.onResponseHeaders = (rawHeaders) => {\n\t\t\tthis.responseRawHeadersBuffer.push(...rawHeaders);\n\t\t};\n\t\tthis.onResponseStart = (versionMajor, versionMinor, rawHeaders, method, url, status, statusText) => {\n\t\t\tconst headers = FetchResponse.parseRawHeaders([...this.responseRawHeadersBuffer, ...rawHeaders || []]);\n\t\t\tthis.responseRawHeadersBuffer.length = 0;\n\t\t\tconst response = new FetchResponse(\n\t\t\t\t/**\n\t\t\t\t* @note The Fetch API response instance exposed to the consumer\n\t\t\t\t* is created over the response stream of the HTTP parser. It is NOT\n\t\t\t\t* related to the Socket instance. This way, you can read response body\n\t\t\t\t* in response listener while the Socket instance delays the emission\n\t\t\t\t* of \"end\" and other events until those response listeners are finished.\n\t\t\t\t*/\n\t\t\t\tFetchResponse.isResponseWithBody(status) ? Readable.toWeb(this.responseStream = new Readable({ read() {} })) : null,\n\t\t\t\t{\n\t\t\t\t\turl,\n\t\t\t\t\tstatus,\n\t\t\t\t\tstatusText,\n\t\t\t\t\theaders\n\t\t\t\t}\n\t\t\t);\n\t\t\tinvariant(this.request, \"Failed to handle a response: request does not exist\");\n\t\t\tFetchResponse.setUrl(this.request.url, response);\n\t\t\t/**\n\t\t\t* @fixme Stop relying on the \"X-Request-Id\" request header\n\t\t\t* to figure out if one interceptor has been invoked within another.\n\t\t\t* @see https://github.com/mswjs/interceptors/issues/378\n\t\t\t*/\n\t\t\tif (this.request.headers.has(INTERNAL_REQUEST_ID_HEADER_NAME)) return;\n\t\t\tthis.responseListenersPromise = this.onResponse({\n\t\t\t\tresponse,\n\t\t\t\tisMockedResponse: this.socketState === \"mock\",\n\t\t\t\trequestId: Reflect.get(this.request, kRequestId),\n\t\t\t\trequest: this.request,\n\t\t\t\tsocket: this\n\t\t\t});\n\t\t};\n\t\tthis.connectionOptions = options.connectionOptions;\n\t\tthis.createConnection = options.createConnection;\n\t\tthis.onRequest = options.onRequest;\n\t\tthis.onResponse = options.onResponse;\n\t\tthis.baseUrl = baseUrlFromConnectionOptions(this.connectionOptions);\n\t\tthis.requestParser = new HTTPParser();\n\t\tthis.requestParser.initialize(HTTPParser.REQUEST, {});\n\t\tthis.requestParser[HTTPParser.kOnHeaders] = this.onRequestHeaders.bind(this);\n\t\tthis.requestParser[HTTPParser.kOnHeadersComplete] = this.onRequestStart.bind(this);\n\t\tthis.requestParser[HTTPParser.kOnBody] = this.onRequestBody.bind(this);\n\t\tthis.requestParser[HTTPParser.kOnMessageComplete] = this.onRequestEnd.bind(this);\n\t\tthis.responseParser = new HTTPParser();\n\t\tthis.responseParser.initialize(HTTPParser.RESPONSE, {});\n\t\tthis.responseParser[HTTPParser.kOnHeaders] = this.onResponseHeaders.bind(this);\n\t\tthis.responseParser[HTTPParser.kOnHeadersComplete] = this.onResponseStart.bind(this);\n\t\tthis.responseParser[HTTPParser.kOnBody] = this.onResponseBody.bind(this);\n\t\tthis.responseParser[HTTPParser.kOnMessageComplete] = this.onResponseEnd.bind(this);\n\t\tthis.once(\"finish\", () => freeParser(this.requestParser, this));\n\t\tif (this.baseUrl.protocol === \"https:\") {\n\t\t\tReflect.set(this, \"encrypted\", true);\n\t\t\tReflect.set(this, \"authorized\", false);\n\t\t\tReflect.set(this, \"getProtocol\", () => \"TLSv1.3\");\n\t\t\tReflect.set(this, \"getSession\", () => void 0);\n\t\t\tReflect.set(this, \"isSessionReused\", () => false);\n\t\t\tReflect.set(this, \"getCipher\", () => ({\n\t\t\t\tname: \"AES256-SHA\",\n\t\t\t\tstandardName: \"TLS_RSA_WITH_AES_256_CBC_SHA\",\n\t\t\t\tversion: \"TLSv1.3\"\n\t\t\t}));\n\t\t}\n\t}\n\temit(event, ...args) {\n\t\tconst emitEvent = super.emit.bind(this, event, ...args);\n\t\tif (this.responseListenersPromise) {\n\t\t\tthis.responseListenersPromise.finally(emitEvent);\n\t\t\treturn this.listenerCount(event) > 0;\n\t\t}\n\t\treturn emitEvent();\n\t}\n\tdestroy(error) {\n\t\tfreeParser(this.responseParser, this);\n\t\tif (error) this.emit(\"error\", error);\n\t\treturn super.destroy(error);\n\t}\n\t/**\n\t* Establish this Socket connection as-is and pipe\n\t* its data/events through this Socket.\n\t*/\n\tpassthrough() {\n\t\tthis.socketState = \"passthrough\";\n\t\tif (this.destroyed) return;\n\t\tconst socket = this.createConnection();\n\t\tthis.originalSocket = socket;\n\t\t/**\n\t\t* @note Inherit the original socket's connection handle.\n\t\t* Without this, each push to the mock socket results in a\n\t\t* new \"connection\" listener being added (i.e. buffering pushes).\n\t\t* @see https://github.com/nodejs/node/blob/b18153598b25485ce4f54d0c5cb830a9457691ee/lib/net.js#L734\n\t\t*/\n\t\tif (\"_handle\" in socket) Object.defineProperty(this, \"_handle\", {\n\t\t\tvalue: socket._handle,\n\t\t\tenumerable: true,\n\t\t\twritable: true\n\t\t});\n\t\tthis.once(\"close\", () => {\n\t\t\tsocket.removeAllListeners();\n\t\t\tif (!socket.destroyed) socket.destroy();\n\t\t\tthis.originalSocket = void 0;\n\t\t});\n\t\tthis.address = socket.address.bind(socket);\n\t\tlet writeArgs;\n\t\tlet headersWritten = false;\n\t\twhile (writeArgs = this.writeBuffer.shift()) if (writeArgs !== void 0) {\n\t\t\tif (!headersWritten) {\n\t\t\t\tconst [chunk, encoding, callback] = writeArgs;\n\t\t\t\tconst chunkString = chunk.toString();\n\t\t\t\tconst chunkBeforeRequestHeaders = chunkString.slice(0, chunkString.indexOf(\"\\r\\n\") + 2);\n\t\t\t\tconst chunkAfterRequestHeaders = chunkString.slice(chunk.indexOf(\"\\r\\n\\r\\n\"));\n\t\t\t\tconst headersChunk = `${chunkBeforeRequestHeaders}${getRawFetchHeaders(this.request.headers).filter(([name]) => {\n\t\t\t\t\treturn name.toLowerCase() !== INTERNAL_REQUEST_ID_HEADER_NAME;\n\t\t\t\t}).map(([name, value]) => `${name}: ${value}`).join(\"\\r\\n\")}${chunkAfterRequestHeaders}`;\n\t\t\t\tsocket.write(headersChunk, encoding, callback);\n\t\t\t\theadersWritten = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tsocket.write(...writeArgs);\n\t\t}\n\t\tif (Reflect.get(socket, \"encrypted\")) [\n\t\t\t\"encrypted\",\n\t\t\t\"authorized\",\n\t\t\t\"getProtocol\",\n\t\t\t\"getSession\",\n\t\t\t\"isSessionReused\",\n\t\t\t\"getCipher\"\n\t\t].forEach((propertyName) => {\n\t\t\tObject.defineProperty(this, propertyName, {\n\t\t\t\tenumerable: true,\n\t\t\t\tget: () => {\n\t\t\t\t\tconst value = Reflect.get(socket, propertyName);\n\t\t\t\t\treturn typeof value === \"function\" ? value.bind(socket) : value;\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t\tsocket.on(\"lookup\", (...args) => this.emit(\"lookup\", ...args)).on(\"connect\", () => {\n\t\t\tthis.connecting = socket.connecting;\n\t\t\tthis.emit(\"connect\");\n\t\t}).on(\"secureConnect\", () => this.emit(\"secureConnect\")).on(\"secure\", () => this.emit(\"secure\")).on(\"session\", (session) => this.emit(\"session\", session)).on(\"ready\", () => this.emit(\"ready\")).on(\"drain\", () => this.emit(\"drain\")).on(\"data\", (chunk) => {\n\t\t\tthis.push(chunk);\n\t\t}).on(\"error\", (error) => {\n\t\t\tReflect.set(this, \"_hadError\", Reflect.get(socket, \"_hadError\"));\n\t\t\tthis.emit(\"error\", error);\n\t\t}).on(\"resume\", () => this.emit(\"resume\")).on(\"timeout\", () => this.emit(\"timeout\")).on(\"prefinish\", () => this.emit(\"prefinish\")).on(\"finish\", () => this.emit(\"finish\")).on(\"close\", (hadError) => this.emit(\"close\", hadError)).on(\"end\", () => this.emit(\"end\"));\n\t}\n\t/**\n\t* Convert the given Fetch API `Response` instance to an\n\t* HTTP message and push it to the socket.\n\t*/\n\tasync respondWith(response) {\n\t\tif (this.destroyed) return;\n\t\tinvariant(this.socketState !== \"mock\", \"[MockHttpSocket] Failed to respond to the \\\"%s %s\\\" request with \\\"%s %s\\\": the request has already been handled\", this.request?.method, this.request?.url, response.status, response.statusText);\n\t\tif (isPropertyAccessible(response, \"type\") && response.type === \"error\") {\n\t\t\tthis.errorWith(/* @__PURE__ */ new TypeError(\"Network error\"));\n\t\t\treturn;\n\t\t}\n\t\tthis.mockConnect();\n\t\tthis.socketState = \"mock\";\n\t\tthis.flushWriteBuffer();\n\t\tconst serverResponse = new ServerResponse(new IncomingMessage(this));\n\t\t/**\n\t\t* Assign a mock socket instance to the server response to\n\t\t* spy on the response chunk writes. Push the transformed response chunks\n\t\t* to this `MockHttpSocket` instance to trigger the \"data\" event.\n\t\t* @note Providing the same `MockSocket` instance when creating `ServerResponse`\n\t\t* does not have the same effect.\n\t\t* @see https://github.com/nodejs/node/blob/10099bb3f7fd97bb9dd9667188426866b3098e07/test/parallel/test-http-server-response-standalone.js#L32\n\t\t*/\n\t\tserverResponse.assignSocket(new MockSocket({\n\t\t\twrite: (chunk, encoding, callback) => {\n\t\t\t\tthis.push(chunk, encoding);\n\t\t\t\tcallback?.();\n\t\t\t},\n\t\t\tread() {}\n\t\t}));\n\t\t/**\n\t\t* @note Remove the `Connection` and `Date` response headers\n\t\t* injected by `ServerResponse` by default. Those are required\n\t\t* from the server but the interceptor is NOT technically a server.\n\t\t* It's confusing to add response headers that the developer didn't\n\t\t* specify themselves. They can always add these if they wish.\n\t\t* @see https://www.rfc-editor.org/rfc/rfc9110#field.date\n\t\t* @see https://www.rfc-editor.org/rfc/rfc9110#field.connection\n\t\t*/\n\t\tserverResponse.removeHeader(\"connection\");\n\t\tserverResponse.removeHeader(\"date\");\n\t\tconst rawResponseHeaders = getRawFetchHeaders(response.headers);\n\t\t/**\n\t\t* @note Call `.writeHead` in order to set the raw response headers\n\t\t* in the same case as they were provided by the developer. Using\n\t\t* `.setHeader()`/`.appendHeader()` normalizes header names.\n\t\t*/\n\t\tserverResponse.writeHead(response.status, response.statusText || STATUS_CODES[response.status], rawResponseHeaders);\n\t\tthis.once(\"error\", () => {\n\t\t\tserverResponse.destroy();\n\t\t});\n\t\tif (response.body) try {\n\t\t\tconst reader = response.body.getReader();\n\t\t\twhile (true) {\n\t\t\t\tconst { done, value } = await reader.read();\n\t\t\t\tif (done) {\n\t\t\t\t\tserverResponse.end();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tserverResponse.write(value);\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tif (error instanceof Error) {\n\t\t\t\tserverResponse.destroy();\n\t\t\t\t/**\n\t\t\t\t* @note Destroy the request socket gracefully.\n\t\t\t\t* Response stream errors do NOT produce request errors.\n\t\t\t\t*/\n\t\t\t\tthis.destroy();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tserverResponse.destroy();\n\t\t\tthrow error;\n\t\t}\n\t\telse serverResponse.end();\n\t\tif (!this.shouldKeepAlive) {\n\t\t\tthis.emit(\"readable\");\n\t\t\t/**\n\t\t\t* @todo @fixme This is likely a hack.\n\t\t\t* Since we push null to the socket, it never propagates to the\n\t\t\t* parser, and the parser never calls \"onResponseEnd\" to close\n\t\t\t* the response stream. We are closing the stream here manually\n\t\t\t* but that shouldn't be the case.\n\t\t\t*/\n\t\t\tthis.responseStream?.push(null);\n\t\t\tthis.push(null);\n\t\t}\n\t}\n\t/**\n\t* Close this socket connection with the given error.\n\t*/\n\terrorWith(error) {\n\t\tthis.destroy(error);\n\t}\n\tmockConnect() {\n\t\tthis.connecting = false;\n\t\tconst isIPv6 = net.isIPv6(this.connectionOptions.hostname) || this.connectionOptions.family === 6;\n\t\tconst addressInfo = {\n\t\t\taddress: isIPv6 ? \"::1\" : \"127.0.0.1\",\n\t\t\tfamily: isIPv6 ? \"IPv6\" : \"IPv4\",\n\t\t\tport: this.connectionOptions.port\n\t\t};\n\t\tthis.address = () => addressInfo;\n\t\tthis.emit(\"lookup\", null, addressInfo.address, addressInfo.family === \"IPv6\" ? 6 : 4, this.connectionOptions.host);\n\t\tthis.emit(\"connect\");\n\t\tthis.emit(\"ready\");\n\t\tif (this.baseUrl.protocol === \"https:\") {\n\t\t\tthis.emit(\"secure\");\n\t\t\tthis.emit(\"secureConnect\");\n\t\t\tthis.emit(\"session\", this.connectionOptions.session || Buffer.from(\"mock-session-renegotiate\"));\n\t\t\tthis.emit(\"session\", Buffer.from(\"mock-session-resume\"));\n\t\t}\n\t}\n\tflushWriteBuffer() {\n\t\tfor (const writeCall of this.writeBuffer) if (typeof writeCall[2] === \"function\") {\n\t\t\twriteCall[2]();\n\t\t\t/**\n\t\t\t* @note Remove the callback from the write call\n\t\t\t* so it doesn't get called twice on passthrough\n\t\t\t* if `request.end()` was called within `request.write()`.\n\t\t\t* @see https://github.com/mswjs/interceptors/issues/684\n\t\t\t*/\n\t\t\twriteCall[2] = void 0;\n\t\t}\n\t}\n\tonRequestBody(chunk) {\n\t\tinvariant(this.requestStream, \"Failed to write to a request stream: stream does not exist\");\n\t\tthis.requestStream.push(chunk);\n\t}\n\tonRequestEnd() {\n\t\tif (this.requestStream) this.requestStream.push(null);\n\t}\n\tonResponseBody(chunk) {\n\t\tinvariant(this.responseStream, \"Failed to write to a response stream: stream does not exist\");\n\t\tthis.responseStream.push(chunk);\n\t}\n\tonResponseEnd() {\n\t\tif (this.responseStream) this.responseStream.push(null);\n\t}\n};\n\n//#endregion\n//#region src/interceptors/ClientRequest/agents.ts\nvar MockAgent = class extends http.Agent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.customAgent = options.customAgent;\n\t\tthis.onRequest = options.onRequest;\n\t\tthis.onResponse = options.onResponse;\n\t}\n\tcreateConnection(options, callback) {\n\t\tconst createConnection = this.customAgent instanceof http.Agent ? this.customAgent.createConnection : super.createConnection;\n\t\tconst createConnectionOptions = this.customAgent instanceof http.Agent ? {\n\t\t\t...options,\n\t\t\t...this.customAgent.options\n\t\t} : options;\n\t\treturn new MockHttpSocket({\n\t\t\tconnectionOptions: options,\n\t\t\tcreateConnection: createConnection.bind(this.customAgent || this, createConnectionOptions, callback),\n\t\t\tonRequest: this.onRequest.bind(this),\n\t\t\tonResponse: this.onResponse.bind(this)\n\t\t});\n\t}\n};\nvar MockHttpsAgent = class extends https.Agent {\n\tconstructor(options) {\n\t\tsuper();\n\t\tthis.customAgent = options.customAgent;\n\t\tthis.onRequest = options.onRequest;\n\t\tthis.onResponse = options.onResponse;\n\t}\n\tcreateConnection(options, callback) {\n\t\tconst createConnection = this.customAgent instanceof http.Agent ? this.customAgent.createConnection : super.createConnection;\n\t\tconst createConnectionOptions = this.customAgent instanceof http.Agent ? {\n\t\t\t...options,\n\t\t\t...this.customAgent.options\n\t\t} : options;\n\t\treturn new MockHttpSocket({\n\t\t\tconnectionOptions: options,\n\t\t\tcreateConnection: createConnection.bind(this.customAgent || this, createConnectionOptions, callback),\n\t\t\tonRequest: this.onRequest.bind(this),\n\t\t\tonResponse: this.onResponse.bind(this)\n\t\t});\n\t}\n};\n\n//#endregion\n//#region src/utils/getUrlByRequestOptions.ts\nconst logger$2 = new Logger(\"utils getUrlByRequestOptions\");\nconst DEFAULT_PATH = \"/\";\nconst DEFAULT_PROTOCOL = \"http:\";\nconst DEFAULT_HOSTNAME = \"localhost\";\nconst SSL_PORT = 443;\nfunction getAgent(options) {\n\treturn options.agent instanceof Agent ? options.agent : void 0;\n}\nfunction getProtocolByRequestOptions(options) {\n\tif (options.protocol) return options.protocol;\n\tconst agentProtocol = getAgent(options)?.protocol;\n\tif (agentProtocol) return agentProtocol;\n\tconst port = getPortByRequestOptions(options);\n\treturn options.cert || port === SSL_PORT ? \"https:\" : options.uri?.protocol || DEFAULT_PROTOCOL;\n}\nfunction getPortByRequestOptions(options) {\n\tif (options.port) return Number(options.port);\n\tconst agent = getAgent(options);\n\tif (agent?.options.port) return Number(agent.options.port);\n\tif (agent?.defaultPort) return Number(agent.defaultPort);\n}\nfunction getAuthByRequestOptions(options) {\n\tif (options.auth) {\n\t\tconst [username, password] = options.auth.split(\":\");\n\t\treturn {\n\t\t\tusername,\n\t\t\tpassword\n\t\t};\n\t}\n}\n/**\n* Returns true if host looks like an IPv6 address without surrounding brackets\n* It assumes any host containing `:` is definitely not IPv4 and probably IPv6,\n* but note that this could include invalid IPv6 addresses as well.\n*/\nfunction isRawIPv6Address(host) {\n\treturn host.includes(\":\") && !host.startsWith(\"[\") && !host.endsWith(\"]\");\n}\nfunction getHostname(options) {\n\tlet host = options.hostname || options.host;\n\tif (host) {\n\t\tif (isRawIPv6Address(host)) host = `[${host}]`;\n\t\treturn new URL(`http://${host}`).hostname;\n\t}\n\treturn DEFAULT_HOSTNAME;\n}\n/**\n* Creates a `URL` instance from a given `RequestOptions` object.\n*/\nfunction getUrlByRequestOptions(options) {\n\tlogger$2.info(\"request options\", options);\n\tif (options.uri) {\n\t\tlogger$2.info(\"constructing url from explicitly provided \\\"options.uri\\\": %s\", options.uri);\n\t\treturn new URL(options.uri.href);\n\t}\n\tlogger$2.info(\"figuring out url from request options...\");\n\tconst protocol = getProtocolByRequestOptions(options);\n\tlogger$2.info(\"protocol\", protocol);\n\tconst port = getPortByRequestOptions(options);\n\tlogger$2.info(\"port\", port);\n\tconst hostname = getHostname(options);\n\tlogger$2.info(\"hostname\", hostname);\n\tconst path = options.path || DEFAULT_PATH;\n\tlogger$2.info(\"path\", path);\n\tconst credentials = getAuthByRequestOptions(options);\n\tlogger$2.info(\"credentials\", credentials);\n\tconst authString = credentials ? `${credentials.username}:${credentials.password}@` : \"\";\n\tlogger$2.info(\"auth string:\", authString);\n\tconst portString = typeof port !== \"undefined\" ? `:${port}` : \"\";\n\tconst url = new URL(`${protocol}//${hostname}${portString}${path}`);\n\turl.username = credentials?.username || \"\";\n\turl.password = credentials?.password || \"\";\n\tlogger$2.info(\"created url:\", url);\n\treturn url;\n}\n\n//#endregion\n//#region src/utils/cloneObject.ts\nconst logger$1 = new Logger(\"cloneObject\");\nfunction isPlainObject(obj) {\n\tlogger$1.info(\"is plain object?\", obj);\n\tif (obj == null || !obj.constructor?.name) {\n\t\tlogger$1.info(\"given object is undefined, not a plain object...\");\n\t\treturn false;\n\t}\n\tlogger$1.info(\"checking the object constructor:\", obj.constructor.name);\n\treturn obj.constructor.name === \"Object\";\n}\nfunction cloneObject(obj) {\n\tlogger$1.info(\"cloning object:\", obj);\n\tconst enumerableProperties = Object.entries(obj).reduce((acc, [key, value]) => {\n\t\tlogger$1.info(\"analyzing key-value pair:\", key, value);\n\t\tacc[key] = isPlainObject(value) ? cloneObject(value) : value;\n\t\treturn acc;\n\t}, {});\n\treturn isPlainObject(obj) ? enumerableProperties : Object.assign(Object.getPrototypeOf(obj), enumerableProperties);\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/utils/normalizeClientRequestArgs.ts\nconst logger = new Logger(\"http normalizeClientRequestArgs\");\nfunction resolveRequestOptions(args, url) {\n\tif (typeof args[1] === \"undefined\" || typeof args[1] === \"function\") {\n\t\tlogger.info(\"request options not provided, deriving from the url\", url);\n\t\treturn urlToHttpOptions(url);\n\t}\n\tif (args[1]) {\n\t\tlogger.info(\"has custom RequestOptions!\", args[1]);\n\t\tconst requestOptionsFromUrl = urlToHttpOptions(url);\n\t\tlogger.info(\"derived RequestOptions from the URL:\", requestOptionsFromUrl);\n\t\t/**\n\t\t* Clone the request options to lock their state\n\t\t* at the moment they are provided to `ClientRequest`.\n\t\t* @see https://github.com/mswjs/interceptors/issues/86\n\t\t*/\n\t\tlogger.info(\"cloning RequestOptions...\");\n\t\tconst clonedRequestOptions = cloneObject(args[1]);\n\t\tlogger.info(\"successfully cloned RequestOptions!\", clonedRequestOptions);\n\t\treturn {\n\t\t\t...requestOptionsFromUrl,\n\t\t\t...clonedRequestOptions\n\t\t};\n\t}\n\tlogger.info(\"using an empty object as request options\");\n\treturn {};\n}\n/**\n* Overrides the given `URL` instance with the explicit properties provided\n* on the `RequestOptions` object. The options object takes precedence,\n* and will replace URL properties like \"host\", \"path\", and \"port\", if specified.\n*/\nfunction overrideUrlByRequestOptions(url, options) {\n\turl.host = options.host || url.host;\n\turl.hostname = options.hostname || url.hostname;\n\turl.port = options.port ? options.port.toString() : url.port;\n\tif (options.path) {\n\t\tconst parsedOptionsPath = parse(options.path, false);\n\t\turl.pathname = parsedOptionsPath.pathname || \"\";\n\t\turl.search = parsedOptionsPath.search || \"\";\n\t}\n\treturn url;\n}\nfunction resolveCallback(args) {\n\treturn typeof args[1] === \"function\" ? args[1] : args[2];\n}\n/**\n* Normalizes parameters given to a `http.request` call\n* so it always has a `URL` and `RequestOptions`.\n*/\nfunction normalizeClientRequestArgs(defaultProtocol, args) {\n\tlet url;\n\tlet options;\n\tlet callback;\n\tlogger.info(\"arguments\", args);\n\tlogger.info(\"using default protocol:\", defaultProtocol);\n\tif (args.length === 0) {\n\t\tconst url$1 = new URL$1(\"http://localhost\");\n\t\treturn [url$1, resolveRequestOptions(args, url$1)];\n\t}\n\tif (typeof args[0] === \"string\") {\n\t\tlogger.info(\"first argument is a location string:\", args[0]);\n\t\turl = new URL$1(args[0]);\n\t\tlogger.info(\"created a url:\", url);\n\t\tconst requestOptionsFromUrl = urlToHttpOptions(url);\n\t\tlogger.info(\"request options from url:\", requestOptionsFromUrl);\n\t\toptions = resolveRequestOptions(args, url);\n\t\tlogger.info(\"resolved request options:\", options);\n\t\tcallback = resolveCallback(args);\n\t} else if (args[0] instanceof URL$1) {\n\t\turl = args[0];\n\t\tlogger.info(\"first argument is a URL:\", url);\n\t\tif (typeof args[1] !== \"undefined\" && isObject(args[1])) url = overrideUrlByRequestOptions(url, args[1]);\n\t\toptions = resolveRequestOptions(args, url);\n\t\tlogger.info(\"derived request options:\", options);\n\t\tcallback = resolveCallback(args);\n\t} else if (\"hash\" in args[0] && !(\"method\" in args[0])) {\n\t\tconst [legacyUrl] = args;\n\t\tlogger.info(\"first argument is a legacy URL:\", legacyUrl);\n\t\tif (legacyUrl.hostname === null) {\n\t\t\t/**\n\t\t\t* We are dealing with a relative url, so use the path as an \"option\" and\n\t\t\t* merge in any existing options, giving priority to existing options -- i.e. a path in any\n\t\t\t* existing options will take precedence over the one contained in the url. This is consistent\n\t\t\t* with the behaviour in ClientRequest.\n\t\t\t* @see https://github.com/nodejs/node/blob/d84f1312915fe45fe0febe888db692c74894c382/lib/_http_client.js#L122\n\t\t\t*/\n\t\t\tlogger.info(\"given legacy URL is relative (no hostname)\");\n\t\t\treturn isObject(args[1]) ? normalizeClientRequestArgs(defaultProtocol, [{\n\t\t\t\tpath: legacyUrl.path,\n\t\t\t\t...args[1]\n\t\t\t}, args[2]]) : normalizeClientRequestArgs(defaultProtocol, [{ path: legacyUrl.path }, args[1]]);\n\t\t}\n\t\tlogger.info(\"given legacy url is absolute\");\n\t\tconst resolvedUrl = new URL$1(legacyUrl.href);\n\t\treturn args[1] === void 0 ? normalizeClientRequestArgs(defaultProtocol, [resolvedUrl]) : typeof args[1] === \"function\" ? normalizeClientRequestArgs(defaultProtocol, [resolvedUrl, args[1]]) : normalizeClientRequestArgs(defaultProtocol, [\n\t\t\tresolvedUrl,\n\t\t\targs[1],\n\t\t\targs[2]\n\t\t]);\n\t} else if (isObject(args[0])) {\n\t\toptions = { ...args[0] };\n\t\tlogger.info(\"first argument is RequestOptions:\", options);\n\t\toptions.protocol = options.protocol || defaultProtocol;\n\t\tlogger.info(\"normalized request options:\", options);\n\t\turl = getUrlByRequestOptions(options);\n\t\tlogger.info(\"created a URL from RequestOptions:\", url.href);\n\t\tcallback = resolveCallback(args);\n\t} else throw new Error(`Failed to construct ClientRequest with these parameters: ${args}`);\n\toptions.protocol = options.protocol || url.protocol;\n\toptions.method = options.method || \"GET\";\n\t/**\n\t* Ensure that the default Agent is always set.\n\t* This prevents the protocol mismatch for requests with { agent: false },\n\t* where the global Agent is inferred.\n\t* @see https://github.com/mswjs/msw/issues/1150\n\t* @see https://github.com/nodejs/node/blob/418ff70b810f0e7112d48baaa72932a56cfa213b/lib/_http_client.js#L130\n\t* @see https://github.com/nodejs/node/blob/418ff70b810f0e7112d48baaa72932a56cfa213b/lib/_http_client.js#L157-L159\n\t*/\n\tif (!options._defaultAgent) {\n\t\tlogger.info(\"has no default agent, setting the default agent for \\\"%s\\\"\", options.protocol);\n\t\toptions._defaultAgent = options.protocol === \"https:\" ? globalAgent$1 : globalAgent;\n\t}\n\tlogger.info(\"successfully resolved url:\", url.href);\n\tlogger.info(\"successfully resolved options:\", options);\n\tlogger.info(\"successfully resolved callback:\", callback);\n\t/**\n\t* @note If the user-provided URL is not a valid URL in Node.js,\n\t* (e.g. the one provided by the JSDOM polyfills), case it to\n\t* string. Otherwise, this throws on Node.js incompatibility\n\t* (`ERR_INVALID_ARG_TYPE` on the connection listener)\n\t* @see https://github.com/node-fetch/node-fetch/issues/1376#issuecomment-966435555\n\t*/\n\tif (!(url instanceof URL$1)) url = url.toString();\n\treturn [\n\t\turl,\n\t\toptions,\n\t\tcallback\n\t];\n}\n\n//#endregion\n//#region src/interceptors/ClientRequest/index.ts\nvar ClientRequestInterceptor = class ClientRequestInterceptor extends Interceptor {\n\tstatic {\n\t\tthis.symbol = Symbol(\"client-request-interceptor\");\n\t}\n\tconstructor() {\n\t\tsuper(ClientRequestInterceptor.symbol);\n\t\tthis.onRequest = async ({ request, socket }) => {\n\t\t\tconst controller = new RequestController(request, {\n\t\t\t\tpassthrough() {\n\t\t\t\t\tsocket.passthrough();\n\t\t\t\t},\n\t\t\t\tasync respondWith(response) {\n\t\t\t\t\tawait socket.respondWith(response);\n\t\t\t\t},\n\t\t\t\terrorWith(reason) {\n\t\t\t\t\tif (reason instanceof Error) socket.errorWith(reason);\n\t\t\t\t}\n\t\t\t});\n\t\t\tawait handleRequest({\n\t\t\t\trequest,\n\t\t\t\trequestId: Reflect.get(request, kRequestId),\n\t\t\t\tcontroller,\n\t\t\t\temitter: this.emitter\n\t\t\t});\n\t\t};\n\t\tthis.onResponse = async ({ requestId, request, response, isMockedResponse }) => {\n\t\t\treturn emitAsync(this.emitter, \"response\", {\n\t\t\t\trequestId,\n\t\t\t\trequest,\n\t\t\t\tresponse,\n\t\t\t\tisMockedResponse\n\t\t\t});\n\t\t};\n\t}\n\tsetup() {\n\t\tconst { ClientRequest: OriginalClientRequest, get: originalGet, request: originalRequest } = http;\n\t\tconst { get: originalHttpsGet, request: originalHttpsRequest } = https;\n\t\tconst onRequest = this.onRequest.bind(this);\n\t\tconst onResponse = this.onResponse.bind(this);\n\t\thttp.ClientRequest = new Proxy(http.ClientRequest, { construct: (target, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"http:\", args);\n\t\t\toptions.agent = new (options.protocol === \"https:\" ? MockHttpsAgent : MockAgent)({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.construct(target, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttp.request = new Proxy(http.request, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"http:\", args);\n\t\t\toptions.agent = new MockAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttp.get = new Proxy(http.get, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"http:\", args);\n\t\t\toptions.agent = new MockAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttps.request = new Proxy(https.request, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"https:\", args);\n\t\t\toptions.agent = new MockHttpsAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\thttps.get = new Proxy(https.get, { apply: (target, thisArg, args) => {\n\t\t\tconst [url, options, callback] = normalizeClientRequestArgs(\"https:\", args);\n\t\t\toptions.agent = new MockHttpsAgent({\n\t\t\t\tcustomAgent: options.agent,\n\t\t\t\tonRequest,\n\t\t\t\tonResponse\n\t\t\t});\n\t\t\treturn Reflect.apply(target, thisArg, [\n\t\t\t\turl,\n\t\t\t\toptions,\n\t\t\t\tcallback\n\t\t\t]);\n\t\t} });\n\t\trecordRawFetchHeaders();\n\t\tthis.subscriptions.push(() => {\n\t\t\thttp.ClientRequest = OriginalClientRequest;\n\t\t\thttp.get = originalGet;\n\t\t\thttp.request = originalRequest;\n\t\t\thttps.get = originalHttpsGet;\n\t\t\thttps.request = originalHttpsRequest;\n\t\t\trestoreHeadersPrototype();\n\t\t});\n\t}\n};\n\n//#endregion\nexport { ClientRequestInterceptor as t };\n//# sourceMappingURL=ClientRequest-Ca8Qykuv.mjs.map"],"names":["normalizeSocketWriteArgs","args","normalized","MockSocket","net","Socket","constructor","options","super","this","connecting","connect","_final","callback","write","chunk","encoding","end","apply","push","read","kRawHeaders","Symbol","kRestorePatches","recordRawHeader","headers","behavior","ensureRawHeadersSymbol","rawHeaders","Reflect","get","index","length","toLowerCase","splice","has","Object","defineProperty","value","enumerable","configurable","defineRawHeadersSymbol","getRawFetchHeaders","Array","from","entries","inferRawHeaders","Headers","freeParser","parser","socket","_consumed","unconsume","_headers","_url","incoming","outgoing","maxHeaderPairs","onIncoming","HTTPParser","kOnHeaders","kOnHeadersComplete","kOnMessageBegin","kOnMessageComplete","kOnBody","kOnExecute","kOnTimeout","remove","free","destroyed","once","kRequestId","MockHttpSocket","socketState","writeBuffer","originalSocket","requestParser","execute","Buffer","isBuffer","responseParser","requestRawHeadersBuffer","responseRawHeadersBuffer","onRequestHeaders","onRequestStart","versionMajor","versionMinor","_","path","__","___","____","shouldKeepAlive","url","URL","baseUrl","method","connectionOptions","toUpperCase","FetchResponse","parseRawHeaders","canHaveBody","username","password","set","requestStream","Readable","flushWriteBuffer","requestId","createRequestId","request","Request","credentials","duplex","body","toWeb","setRawRequest","setRawRequestBodyStream","INTERNAL_REQUEST_ID_HEADER_NAME","passthrough","onRequest","onResponseHeaders","onResponseStart","status","statusText","response","isResponseWithBody","responseStream","invariant","setUrl","responseListenersPromise","onResponse","isMockedResponse","createConnection","href","protocol","port","host","toString","pathname","auth","split","baseUrlFromConnectionOptions","initialize","REQUEST","bind","onRequestBody","onRequestEnd","RESPONSE","onResponseBody","onResponseEnd","name","standardName","version","emit","event","emitEvent","finally","listenerCount","destroy","error","writeArgs","_handle","writable","removeAllListeners","address","headersWritten","shift","chunkString","chunkBeforeRequestHeaders","slice","indexOf","chunkAfterRequestHeaders","headersChunk","filter","map","join","forEach","propertyName","on","session","hadError","respondWith","isPropertyAccessible","type","errorWith","TypeError","mockConnect","serverResponse","ServerResponse","IncomingMessage","assignSocket","removeHeader","rawResponseHeaders","writeHead","STATUS_CODES","reader","getReader","done","Error","isIPv6","hostname","family","addressInfo","writeCall","MockAgent","http","Agent","customAgent","createConnectionOptions","MockHttpsAgent","https","logger$2","Logger","getAgent","agent","getPortByRequestOptions","Number","defaultPort","getUrlByRequestOptions","info","uri","agentProtocol","cert","getProtocolByRequestOptions","includes","startsWith","endsWith","isRawIPv6Address","getHostname","getAuthByRequestOptions","authString","logger$1","isPlainObject","obj","cloneObject","enumerableProperties","reduce","acc","key","assign","getPrototypeOf","logger","resolveRequestOptions","urlToHttpOptions","requestOptionsFromUrl","clonedRequestOptions","resolveCallback","normalizeClientRequestArgs","defaultProtocol","url$1","URL$1","isObject","parsedOptionsPath","parse","search","overrideUrlByRequestOptions","legacyUrl","resolvedUrl","_defaultAgent","globalAgent$1","globalAgent","ClientRequestInterceptor","Interceptor","symbol","async","controller","RequestController","reason","handleRequest","emitter","emitAsync","setup","ClientRequest","OriginalClientRequest","originalGet","originalRequest","originalHttpsGet","originalHttpsRequest","Proxy","construct","target","thisArg","OriginalHeaders","OriginalRequest","Response","OriginalResponse","globalThis","append","delete","headersDeleteMethod","prototype","deleteProperty","newTarget","headersInit","headers$1","isArray","inferredRawHeaders","recordRawFetchHeaders","subscriptions"],"m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,CACR,MAED1E,OAAOC,eAAe0P,WAAY,WAAY,CAC7CxP,YAAY,EACZ4H,UAAU,EACV7H,MAAO,IAAIiP,MAAMM,SAAU,CAAE,SAAAL,CAAUC,EAAQxR,EAAMoS,GACpD,MAAMxK,EAAWhG,QAAQ2P,UAAUC,EAAQxR,EAAMoS,GAEjD,MADuB,iBAAZpS,EAAK,IAAsC,MAAnBA,EAAK,GAAGwB,SAAiBE,EAAuBkG,EAASpG,QAASqB,EAAgB7C,EAAK,GAAGwB,UACtHoG,CACR,KAEF,CA0zBE6K,GACAjS,KAAKkS,cAAcxR,MAAK,KACvB2L,EAAKmE,cAAgBC,EACrBpE,EAAKhL,IAAMqP,EACXrE,EAAKhG,QAAUsK,EACfjE,EAAMrL,IAAMuP,EACZlE,EAAMrG,QAAUwK,EA9zBbzP,QAAQC,IAAIiB,QAASxB,IAC1BM,QAAQC,IAAIiB,QAASxB,EAArBM,KAg0BA","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"XMLHttpRequest-C8dIZpds.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.0/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.mjs"],"sourcesContent":["import { t as IS_PATCHED_MODULE } from \"./glossary-glQBRnVD.mjs\";\nimport { i as RequestController, o as INTERNAL_REQUEST_ID_HEADER_NAME, r as createRequestId, s as Interceptor, t as FetchResponse } from \"./fetchUtils-CoU35g3M.mjs\";\nimport { n as encodeBuffer, r as toArrayBuffer, t as decodeBuffer } from \"./bufferUtils-_8XfKIfX.mjs\";\nimport { n as setRawRequest } from \"./getRawRequest-DnwmXyOW.mjs\";\nimport { n as isResponseError, t as handleRequest } from \"./handleRequest-Y97UwBbF.mjs\";\nimport { t as hasConfigurableGlobal } from \"./hasConfigurableGlobal-DBJA0vjm.mjs\";\nimport { invariant } from \"outvariant\";\nimport { isNodeProcess } from \"is-node-process\";\n\n//#region src/interceptors/XMLHttpRequest/utils/concatArrayBuffer.ts\n/**\n* Concatenate two `Uint8Array` buffers.\n*/\nfunction concatArrayBuffer(left, right) {\n\tconst result = new Uint8Array(left.byteLength + right.byteLength);\n\tresult.set(left, 0);\n\tresult.set(right, left.byteLength);\n\treturn result;\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/polyfills/EventPolyfill.ts\nvar EventPolyfill = class {\n\tconstructor(type, options) {\n\t\tthis.NONE = 0;\n\t\tthis.CAPTURING_PHASE = 1;\n\t\tthis.AT_TARGET = 2;\n\t\tthis.BUBBLING_PHASE = 3;\n\t\tthis.type = \"\";\n\t\tthis.srcElement = null;\n\t\tthis.currentTarget = null;\n\t\tthis.eventPhase = 0;\n\t\tthis.isTrusted = true;\n\t\tthis.composed = false;\n\t\tthis.cancelable = true;\n\t\tthis.defaultPrevented = false;\n\t\tthis.bubbles = true;\n\t\tthis.lengthComputable = true;\n\t\tthis.loaded = 0;\n\t\tthis.total = 0;\n\t\tthis.cancelBubble = false;\n\t\tthis.returnValue = true;\n\t\tthis.type = type;\n\t\tthis.target = options?.target || null;\n\t\tthis.currentTarget = options?.currentTarget || null;\n\t\tthis.timeStamp = Date.now();\n\t}\n\tcomposedPath() {\n\t\treturn [];\n\t}\n\tinitEvent(type, bubbles, cancelable) {\n\t\tthis.type = type;\n\t\tthis.bubbles = !!bubbles;\n\t\tthis.cancelable = !!cancelable;\n\t}\n\tpreventDefault() {\n\t\tthis.defaultPrevented = true;\n\t}\n\tstopPropagation() {}\n\tstopImmediatePropagation() {}\n};\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/polyfills/ProgressEventPolyfill.ts\nvar ProgressEventPolyfill = class extends EventPolyfill {\n\tconstructor(type, init) {\n\t\tsuper(type);\n\t\tthis.lengthComputable = init?.lengthComputable || false;\n\t\tthis.composed = init?.composed || false;\n\t\tthis.loaded = init?.loaded || 0;\n\t\tthis.total = init?.total || 0;\n\t}\n};\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/utils/createEvent.ts\nconst SUPPORTS_PROGRESS_EVENT = typeof ProgressEvent !== \"undefined\";\nfunction createEvent(target, type, init) {\n\tconst progressEvents = [\n\t\t\"error\",\n\t\t\"progress\",\n\t\t\"loadstart\",\n\t\t\"loadend\",\n\t\t\"load\",\n\t\t\"timeout\",\n\t\t\"abort\"\n\t];\n\t/**\n\t* `ProgressEvent` is not supported in React Native.\n\t* @see https://github.com/mswjs/interceptors/issues/40\n\t*/\n\tconst ProgressEventClass = SUPPORTS_PROGRESS_EVENT ? ProgressEvent : ProgressEventPolyfill;\n\treturn progressEvents.includes(type) ? new ProgressEventClass(type, {\n\t\tlengthComputable: true,\n\t\tloaded: init?.loaded || 0,\n\t\ttotal: init?.total || 0\n\t}) : new EventPolyfill(type, {\n\t\ttarget,\n\t\tcurrentTarget: target\n\t});\n}\n\n//#endregion\n//#region src/utils/findPropertySource.ts\n/**\n* Returns the source object of the given property on the target object\n* (the target itself, any parent in its prototype, or null).\n*/\nfunction findPropertySource(target, propertyName) {\n\tif (!(propertyName in target)) return null;\n\tif (Object.prototype.hasOwnProperty.call(target, propertyName)) return target;\n\tconst prototype = Reflect.getPrototypeOf(target);\n\treturn prototype ? findPropertySource(prototype, propertyName) : null;\n}\n\n//#endregion\n//#region src/utils/createProxy.ts\nfunction createProxy(target, options) {\n\treturn new Proxy(target, optionsToProxyHandler(options));\n}\nfunction optionsToProxyHandler(options) {\n\tconst { constructorCall, methodCall, getProperty, setProperty } = options;\n\tconst handler = {};\n\tif (typeof constructorCall !== \"undefined\") handler.construct = function(target, args, newTarget) {\n\t\tconst next = Reflect.construct.bind(null, target, args, newTarget);\n\t\treturn constructorCall.call(newTarget, args, next);\n\t};\n\thandler.set = function(target, propertyName, nextValue) {\n\t\tconst next = () => {\n\t\t\tconst propertySource = findPropertySource(target, propertyName) || target;\n\t\t\tconst ownDescriptors = Reflect.getOwnPropertyDescriptor(propertySource, propertyName);\n\t\t\tif (typeof ownDescriptors?.set !== \"undefined\") {\n\t\t\t\townDescriptors.set.apply(target, [nextValue]);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn Reflect.defineProperty(propertySource, propertyName, {\n\t\t\t\twritable: true,\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: true,\n\t\t\t\tvalue: nextValue\n\t\t\t});\n\t\t};\n\t\tif (typeof setProperty !== \"undefined\") return setProperty.call(target, [propertyName, nextValue], next);\n\t\treturn next();\n\t};\n\thandler.get = function(target, propertyName, receiver) {\n\t\t/**\n\t\t* @note Using `Reflect.get()` here causes \"TypeError: Illegal invocation\".\n\t\t*/\n\t\tconst next = () => target[propertyName];\n\t\tconst value = typeof getProperty !== \"undefined\" ? getProperty.call(target, [propertyName, receiver], next) : next();\n\t\tif (typeof value === \"function\") return (...args) => {\n\t\t\tconst next$1 = value.bind(target, ...args);\n\t\t\tif (typeof methodCall !== \"undefined\") return methodCall.call(target, [propertyName, args], next$1);\n\t\t\treturn next$1();\n\t\t};\n\t\treturn value;\n\t};\n\treturn handler;\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/utils/isDomParserSupportedType.ts\nfunction isDomParserSupportedType(type) {\n\treturn [\n\t\t\"application/xhtml+xml\",\n\t\t\"application/xml\",\n\t\t\"image/svg+xml\",\n\t\t\"text/html\",\n\t\t\"text/xml\"\n\t].some((supportedType) => {\n\t\treturn type.startsWith(supportedType);\n\t});\n}\n\n//#endregion\n//#region src/utils/parseJson.ts\n/**\n* Parses a given string into JSON.\n* Gracefully handles invalid JSON by returning `null`.\n*/\nfunction parseJson(data) {\n\ttry {\n\t\treturn JSON.parse(data);\n\t} catch (_) {\n\t\treturn null;\n\t}\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/utils/createResponse.ts\n/**\n* Creates a Fetch API `Response` instance from the given\n* `XMLHttpRequest` instance and a response body.\n*/\nfunction createResponse(request, body) {\n\treturn new FetchResponse(FetchResponse.isResponseWithBody(request.status) ? body : null, {\n\t\turl: request.responseURL,\n\t\tstatus: request.status,\n\t\tstatusText: request.statusText,\n\t\theaders: createHeadersFromXMLHttpRequestHeaders(request.getAllResponseHeaders())\n\t});\n}\nfunction createHeadersFromXMLHttpRequestHeaders(headersString) {\n\tconst headers = new Headers();\n\tconst lines = headersString.split(/[\\r\\n]+/);\n\tfor (const line of lines) {\n\t\tif (line.trim() === \"\") continue;\n\t\tconst [name, ...parts] = line.split(\": \");\n\t\tconst value = parts.join(\": \");\n\t\theaders.append(name, value);\n\t}\n\treturn headers;\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/utils/getBodyByteLength.ts\n/**\n* Return a total byte length of the given request/response body.\n* If the `Content-Length` header is present, it will be used as the byte length.\n*/\nasync function getBodyByteLength(input) {\n\tconst explicitContentLength = input.headers.get(\"content-length\");\n\tif (explicitContentLength != null && explicitContentLength !== \"\") return Number(explicitContentLength);\n\treturn (await input.arrayBuffer()).byteLength;\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/XMLHttpRequestController.ts\nconst kIsRequestHandled = Symbol(\"kIsRequestHandled\");\nconst IS_NODE = isNodeProcess();\nconst kFetchRequest = Symbol(\"kFetchRequest\");\n/**\n* An `XMLHttpRequest` instance controller that allows us\n* to handle any given request instance (e.g. responding to it).\n*/\nvar XMLHttpRequestController = class {\n\tconstructor(initialRequest, logger) {\n\t\tthis.initialRequest = initialRequest;\n\t\tthis.logger = logger;\n\t\tthis.method = \"GET\";\n\t\tthis.url = null;\n\t\tthis[kIsRequestHandled] = false;\n\t\tthis.events = /* @__PURE__ */ new Map();\n\t\tthis.uploadEvents = /* @__PURE__ */ new Map();\n\t\tthis.requestId = createRequestId();\n\t\tthis.requestHeaders = new Headers();\n\t\tthis.responseBuffer = new Uint8Array();\n\t\tthis.request = createProxy(initialRequest, {\n\t\t\tsetProperty: ([propertyName, nextValue], invoke) => {\n\t\t\t\tswitch (propertyName) {\n\t\t\t\t\tcase \"ontimeout\": {\n\t\t\t\t\t\tconst eventName = propertyName.slice(2);\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t* @note Proxy callbacks to event listeners because JSDOM has trouble\n\t\t\t\t\t\t* translating these properties to callbacks. It seemed to be operating\n\t\t\t\t\t\t* on events exclusively.\n\t\t\t\t\t\t*/\n\t\t\t\t\t\tthis.request.addEventListener(eventName, nextValue);\n\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t}\n\t\t\t\t\tdefault: return invoke();\n\t\t\t\t}\n\t\t\t},\n\t\t\tmethodCall: ([methodName, args], invoke) => {\n\t\t\t\tswitch (methodName) {\n\t\t\t\t\tcase \"open\": {\n\t\t\t\t\t\tconst [method, url] = args;\n\t\t\t\t\t\tif (typeof url === \"undefined\") {\n\t\t\t\t\t\t\tthis.method = \"GET\";\n\t\t\t\t\t\t\tthis.url = toAbsoluteUrl(method);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.method = method;\n\t\t\t\t\t\t\tthis.url = toAbsoluteUrl(url);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.logger = this.logger.extend(`${this.method} ${this.url.href}`);\n\t\t\t\t\t\tthis.logger.info(\"open\", this.method, this.url.href);\n\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t}\n\t\t\t\t\tcase \"addEventListener\": {\n\t\t\t\t\t\tconst [eventName, listener] = args;\n\t\t\t\t\t\tthis.registerEvent(eventName, listener);\n\t\t\t\t\t\tthis.logger.info(\"addEventListener\", eventName, listener);\n\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t}\n\t\t\t\t\tcase \"setRequestHeader\": {\n\t\t\t\t\t\tconst [name, value] = args;\n\t\t\t\t\t\tthis.requestHeaders.set(name, value);\n\t\t\t\t\t\tthis.logger.info(\"setRequestHeader\", name, value);\n\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t}\n\t\t\t\t\tcase \"send\": {\n\t\t\t\t\t\tconst [body] = args;\n\t\t\t\t\t\tthis.request.addEventListener(\"load\", () => {\n\t\t\t\t\t\t\tif (typeof this.onResponse !== \"undefined\") {\n\t\t\t\t\t\t\t\tconst fetchResponse = createResponse(\n\t\t\t\t\t\t\t\t\tthis.request,\n\t\t\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t\t\t* The `response` property is the right way to read\n\t\t\t\t\t\t\t\t\t* the ambiguous response body, as the request's \"responseType\" may differ.\n\t\t\t\t\t\t\t\t\t* @see https://xhr.spec.whatwg.org/#the-response-attribute\n\t\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\t\tthis.request.response\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\tthis.onResponse.call(this, {\n\t\t\t\t\t\t\t\t\tresponse: fetchResponse,\n\t\t\t\t\t\t\t\t\tisMockedResponse: this[kIsRequestHandled],\n\t\t\t\t\t\t\t\t\trequest: fetchRequest,\n\t\t\t\t\t\t\t\t\trequestId: this.requestId\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tconst requestBody = typeof body === \"string\" ? encodeBuffer(body) : body;\n\t\t\t\t\t\tconst fetchRequest = this.toFetchApiRequest(requestBody);\n\t\t\t\t\t\tthis[kFetchRequest] = fetchRequest.clone();\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t* @note Start request handling on the next tick so that the user\n\t\t\t\t\t\t* could add event listeners for \"loadend\" before the interceptor fires it.\n\t\t\t\t\t\t*/\n\t\t\t\t\t\tqueueMicrotask(() => {\n\t\t\t\t\t\t\t(this.onRequest?.call(this, {\n\t\t\t\t\t\t\t\trequest: fetchRequest,\n\t\t\t\t\t\t\t\trequestId: this.requestId\n\t\t\t\t\t\t\t}) || Promise.resolve()).finally(() => {\n\t\t\t\t\t\t\t\tif (!this[kIsRequestHandled]) {\n\t\t\t\t\t\t\t\t\tthis.logger.info(\"request callback settled but request has not been handled (readystate %d), performing as-is...\", this.request.readyState);\n\t\t\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t\t\t* @note Set the intercepted request ID on the original request in Node.js\n\t\t\t\t\t\t\t\t\t* so that if it triggers any other interceptors, they don't attempt\n\t\t\t\t\t\t\t\t\t* to process it once again.\n\t\t\t\t\t\t\t\t\t*\n\t\t\t\t\t\t\t\t\t* For instance, XMLHttpRequest is often implemented via \"http.ClientRequest\"\n\t\t\t\t\t\t\t\t\t* and we don't want for both XHR and ClientRequest interceptors to\n\t\t\t\t\t\t\t\t\t* handle the same request at the same time (e.g. emit the \"response\" event twice).\n\t\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\t\tif (IS_NODE) this.request.setRequestHeader(INTERNAL_REQUEST_ID_HEADER_NAME, this.requestId);\n\t\t\t\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tdefault: return invoke();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t/**\n\t\t* Proxy the `.upload` property to gather the event listeners/callbacks.\n\t\t*/\n\t\tdefine(this.request, \"upload\", createProxy(this.request.upload, {\n\t\t\tsetProperty: ([propertyName, nextValue], invoke) => {\n\t\t\t\tswitch (propertyName) {\n\t\t\t\t\tcase \"onloadstart\":\n\t\t\t\t\tcase \"onprogress\":\n\t\t\t\t\tcase \"onaboart\":\n\t\t\t\t\tcase \"onerror\":\n\t\t\t\t\tcase \"onload\":\n\t\t\t\t\tcase \"ontimeout\":\n\t\t\t\t\tcase \"onloadend\": {\n\t\t\t\t\t\tconst eventName = propertyName.slice(2);\n\t\t\t\t\t\tthis.registerUploadEvent(eventName, nextValue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn invoke();\n\t\t\t},\n\t\t\tmethodCall: ([methodName, args], invoke) => {\n\t\t\t\tswitch (methodName) {\n\t\t\t\t\tcase \"addEventListener\": {\n\t\t\t\t\t\tconst [eventName, listener] = args;\n\t\t\t\t\t\tthis.registerUploadEvent(eventName, listener);\n\t\t\t\t\t\tthis.logger.info(\"upload.addEventListener\", eventName, listener);\n\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}));\n\t}\n\tregisterEvent(eventName, listener) {\n\t\tconst nextEvents = (this.events.get(eventName) || []).concat(listener);\n\t\tthis.events.set(eventName, nextEvents);\n\t\tthis.logger.info(\"registered event \\\"%s\\\"\", eventName, listener);\n\t}\n\tregisterUploadEvent(eventName, listener) {\n\t\tconst nextEvents = (this.uploadEvents.get(eventName) || []).concat(listener);\n\t\tthis.uploadEvents.set(eventName, nextEvents);\n\t\tthis.logger.info(\"registered upload event \\\"%s\\\"\", eventName, listener);\n\t}\n\t/**\n\t* Responds to the current request with the given\n\t* Fetch API `Response` instance.\n\t*/\n\tasync respondWith(response) {\n\t\t/**\n\t\t* @note Since `XMLHttpRequestController` delegates the handling of the responses\n\t\t* to the \"load\" event listener that doesn't distinguish between the mocked and original\n\t\t* responses, mark the request that had a mocked response with a corresponding symbol.\n\t\t*\n\t\t* Mark this request as having a mocked response immediately since\n\t\t* calculating request/response total body length is asynchronous.\n\t\t*/\n\t\tthis[kIsRequestHandled] = true;\n\t\t/**\n\t\t* Dispatch request upload events for requests with a body.\n\t\t* @see https://github.com/mswjs/interceptors/issues/573\n\t\t*/\n\t\tif (this[kFetchRequest]) {\n\t\t\tconst totalRequestBodyLength = await getBodyByteLength(this[kFetchRequest]);\n\t\t\tthis.trigger(\"loadstart\", this.request.upload, {\n\t\t\t\tloaded: 0,\n\t\t\t\ttotal: totalRequestBodyLength\n\t\t\t});\n\t\t\tthis.trigger(\"progress\", this.request.upload, {\n\t\t\t\tloaded: totalRequestBodyLength,\n\t\t\t\ttotal: totalRequestBodyLength\n\t\t\t});\n\t\t\tthis.trigger(\"load\", this.request.upload, {\n\t\t\t\tloaded: totalRequestBodyLength,\n\t\t\t\ttotal: totalRequestBodyLength\n\t\t\t});\n\t\t\tthis.trigger(\"loadend\", this.request.upload, {\n\t\t\t\tloaded: totalRequestBodyLength,\n\t\t\t\ttotal: totalRequestBodyLength\n\t\t\t});\n\t\t}\n\t\tthis.logger.info(\"responding with a mocked response: %d %s\", response.status, response.statusText);\n\t\tdefine(this.request, \"status\", response.status);\n\t\tdefine(this.request, \"statusText\", response.statusText);\n\t\tdefine(this.request, \"responseURL\", this.url.href);\n\t\tthis.request.getResponseHeader = new Proxy(this.request.getResponseHeader, { apply: (_, __, args) => {\n\t\t\tthis.logger.info(\"getResponseHeader\", args[0]);\n\t\t\tif (this.request.readyState < this.request.HEADERS_RECEIVED) {\n\t\t\t\tthis.logger.info(\"headers not received yet, returning null\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tconst headerValue = response.headers.get(args[0]);\n\t\t\tthis.logger.info(\"resolved response header \\\"%s\\\" to\", args[0], headerValue);\n\t\t\treturn headerValue;\n\t\t} });\n\t\tthis.request.getAllResponseHeaders = new Proxy(this.request.getAllResponseHeaders, { apply: () => {\n\t\t\tthis.logger.info(\"getAllResponseHeaders\");\n\t\t\tif (this.request.readyState < this.request.HEADERS_RECEIVED) {\n\t\t\t\tthis.logger.info(\"headers not received yet, returning empty string\");\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tconst allHeaders = Array.from(response.headers.entries()).map(([headerName, headerValue]) => {\n\t\t\t\treturn `${headerName}: ${headerValue}`;\n\t\t\t}).join(\"\\r\\n\");\n\t\t\tthis.logger.info(\"resolved all response headers to\", allHeaders);\n\t\t\treturn allHeaders;\n\t\t} });\n\t\tObject.defineProperties(this.request, {\n\t\t\tresponse: {\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: false,\n\t\t\t\tget: () => this.response\n\t\t\t},\n\t\t\tresponseText: {\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: false,\n\t\t\t\tget: () => this.responseText\n\t\t\t},\n\t\t\tresponseXML: {\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: false,\n\t\t\t\tget: () => this.responseXML\n\t\t\t}\n\t\t});\n\t\tconst totalResponseBodyLength = await getBodyByteLength(response.clone());\n\t\tthis.logger.info(\"calculated response body length\", totalResponseBodyLength);\n\t\tthis.trigger(\"loadstart\", this.request, {\n\t\t\tloaded: 0,\n\t\t\ttotal: totalResponseBodyLength\n\t\t});\n\t\tthis.setReadyState(this.request.HEADERS_RECEIVED);\n\t\tthis.setReadyState(this.request.LOADING);\n\t\tconst finalizeResponse = () => {\n\t\t\tthis.logger.info(\"finalizing the mocked response...\");\n\t\t\tthis.setReadyState(this.request.DONE);\n\t\t\tthis.trigger(\"load\", this.request, {\n\t\t\t\tloaded: this.responseBuffer.byteLength,\n\t\t\t\ttotal: totalResponseBodyLength\n\t\t\t});\n\t\t\tthis.trigger(\"loadend\", this.request, {\n\t\t\t\tloaded: this.responseBuffer.byteLength,\n\t\t\t\ttotal: totalResponseBodyLength\n\t\t\t});\n\t\t};\n\t\tif (response.body) {\n\t\t\tthis.logger.info(\"mocked response has body, streaming...\");\n\t\t\tconst reader = response.body.getReader();\n\t\t\tconst readNextResponseBodyChunk = async () => {\n\t\t\t\tconst { value, done } = await reader.read();\n\t\t\t\tif (done) {\n\t\t\t\t\tthis.logger.info(\"response body stream done!\");\n\t\t\t\t\tfinalizeResponse();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (value) {\n\t\t\t\t\tthis.logger.info(\"read response body chunk:\", value);\n\t\t\t\t\tthis.responseBuffer = concatArrayBuffer(this.responseBuffer, value);\n\t\t\t\t\tthis.trigger(\"progress\", this.request, {\n\t\t\t\t\t\tloaded: this.responseBuffer.byteLength,\n\t\t\t\t\t\ttotal: totalResponseBodyLength\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treadNextResponseBodyChunk();\n\t\t\t};\n\t\t\treadNextResponseBodyChunk();\n\t\t} else finalizeResponse();\n\t}\n\tresponseBufferToText() {\n\t\treturn decodeBuffer(this.responseBuffer);\n\t}\n\tget response() {\n\t\tthis.logger.info(\"getResponse (responseType: %s)\", this.request.responseType);\n\t\tif (this.request.readyState !== this.request.DONE) return null;\n\t\tswitch (this.request.responseType) {\n\t\t\tcase \"json\": {\n\t\t\t\tconst responseJson = parseJson(this.responseBufferToText());\n\t\t\t\tthis.logger.info(\"resolved response JSON\", responseJson);\n\t\t\t\treturn responseJson;\n\t\t\t}\n\t\t\tcase \"arraybuffer\": {\n\t\t\t\tconst arrayBuffer = toArrayBuffer(this.responseBuffer);\n\t\t\t\tthis.logger.info(\"resolved response ArrayBuffer\", arrayBuffer);\n\t\t\t\treturn arrayBuffer;\n\t\t\t}\n\t\t\tcase \"blob\": {\n\t\t\t\tconst mimeType = this.request.getResponseHeader(\"Content-Type\") || \"text/plain\";\n\t\t\t\tconst responseBlob = new Blob([this.responseBufferToText()], { type: mimeType });\n\t\t\t\tthis.logger.info(\"resolved response Blob (mime type: %s)\", responseBlob, mimeType);\n\t\t\t\treturn responseBlob;\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tconst responseText = this.responseBufferToText();\n\t\t\t\tthis.logger.info(\"resolving \\\"%s\\\" response type as text\", this.request.responseType, responseText);\n\t\t\t\treturn responseText;\n\t\t\t}\n\t\t}\n\t}\n\tget responseText() {\n\t\t/**\n\t\t* Throw when trying to read the response body as text when the\n\t\t* \"responseType\" doesn't expect text. This just respects the spec better.\n\t\t* @see https://xhr.spec.whatwg.org/#the-responsetext-attribute\n\t\t*/\n\t\tinvariant(this.request.responseType === \"\" || this.request.responseType === \"text\", \"InvalidStateError: The object is in invalid state.\");\n\t\tif (this.request.readyState !== this.request.LOADING && this.request.readyState !== this.request.DONE) return \"\";\n\t\tconst responseText = this.responseBufferToText();\n\t\tthis.logger.info(\"getResponseText: \\\"%s\\\"\", responseText);\n\t\treturn responseText;\n\t}\n\tget responseXML() {\n\t\tinvariant(this.request.responseType === \"\" || this.request.responseType === \"document\", \"InvalidStateError: The object is in invalid state.\");\n\t\tif (this.request.readyState !== this.request.DONE) return null;\n\t\tconst contentType = this.request.getResponseHeader(\"Content-Type\") || \"\";\n\t\tif (typeof DOMParser === \"undefined\") {\n\t\t\tconsole.warn(\"Cannot retrieve XMLHttpRequest response body as XML: DOMParser is not defined. You are likely using an environment that is not browser or does not polyfill browser globals correctly.\");\n\t\t\treturn null;\n\t\t}\n\t\tif (isDomParserSupportedType(contentType)) return new DOMParser().parseFromString(this.responseBufferToText(), contentType);\n\t\treturn null;\n\t}\n\terrorWith(error) {\n\t\t/**\n\t\t* @note Mark this request as handled even if it received a mock error.\n\t\t* This prevents the controller from trying to perform this request as-is.\n\t\t*/\n\t\tthis[kIsRequestHandled] = true;\n\t\tthis.logger.info(\"responding with an error\");\n\t\tthis.setReadyState(this.request.DONE);\n\t\tthis.trigger(\"error\", this.request);\n\t\tthis.trigger(\"loadend\", this.request);\n\t}\n\t/**\n\t* Transitions this request's `readyState` to the given one.\n\t*/\n\tsetReadyState(nextReadyState) {\n\t\tthis.logger.info(\"setReadyState: %d -> %d\", this.request.readyState, nextReadyState);\n\t\tif (this.request.readyState === nextReadyState) {\n\t\t\tthis.logger.info(\"ready state identical, skipping transition...\");\n\t\t\treturn;\n\t\t}\n\t\tdefine(this.request, \"readyState\", nextReadyState);\n\t\tthis.logger.info(\"set readyState to: %d\", nextReadyState);\n\t\tif (nextReadyState !== this.request.UNSENT) {\n\t\t\tthis.logger.info(\"triggering \\\"readystatechange\\\" event...\");\n\t\t\tthis.trigger(\"readystatechange\", this.request);\n\t\t}\n\t}\n\t/**\n\t* Triggers given event on the `XMLHttpRequest` instance.\n\t*/\n\ttrigger(eventName, target, options) {\n\t\tconst callback = target[`on${eventName}`];\n\t\tconst event = createEvent(target, eventName, options);\n\t\tthis.logger.info(\"trigger \\\"%s\\\"\", eventName, options || \"\");\n\t\tif (typeof callback === \"function\") {\n\t\t\tthis.logger.info(\"found a direct \\\"%s\\\" callback, calling...\", eventName);\n\t\t\tcallback.call(target, event);\n\t\t}\n\t\tconst events = target instanceof XMLHttpRequestUpload ? this.uploadEvents : this.events;\n\t\tfor (const [registeredEventName, listeners] of events) if (registeredEventName === eventName) {\n\t\t\tthis.logger.info(\"found %d listener(s) for \\\"%s\\\" event, calling...\", listeners.length, eventName);\n\t\t\tlisteners.forEach((listener) => listener.call(target, event));\n\t\t}\n\t}\n\t/**\n\t* Converts this `XMLHttpRequest` instance into a Fetch API `Request` instance.\n\t*/\n\ttoFetchApiRequest(body) {\n\t\tthis.logger.info(\"converting request to a Fetch API Request...\");\n\t\tconst resolvedBody = body instanceof Document ? body.documentElement.innerText : body;\n\t\tconst fetchRequest = new Request(this.url.href, {\n\t\t\tmethod: this.method,\n\t\t\theaders: this.requestHeaders,\n\t\t\tcredentials: this.request.withCredentials ? \"include\" : \"same-origin\",\n\t\t\tbody: [\"GET\", \"HEAD\"].includes(this.method.toUpperCase()) ? null : resolvedBody\n\t\t});\n\t\tdefine(fetchRequest, \"headers\", createProxy(fetchRequest.headers, { methodCall: ([methodName, args], invoke) => {\n\t\t\tswitch (methodName) {\n\t\t\t\tcase \"append\":\n\t\t\t\tcase \"set\": {\n\t\t\t\t\tconst [headerName, headerValue] = args;\n\t\t\t\t\tthis.request.setRequestHeader(headerName, headerValue);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"delete\": {\n\t\t\t\t\tconst [headerName] = args;\n\t\t\t\t\tconsole.warn(`XMLHttpRequest: Cannot remove a \"${headerName}\" header from the Fetch API representation of the \"${fetchRequest.method} ${fetchRequest.url}\" request. XMLHttpRequest headers cannot be removed.`);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn invoke();\n\t\t} }));\n\t\tsetRawRequest(fetchRequest, this.request);\n\t\tthis.logger.info(\"converted request to a Fetch API Request!\", fetchRequest);\n\t\treturn fetchRequest;\n\t}\n};\nfunction toAbsoluteUrl(url) {\n\t/**\n\t* @note XMLHttpRequest interceptor may run in environments\n\t* that implement XMLHttpRequest but don't implement \"location\"\n\t* (for example, React Native). If that's the case, return the\n\t* input URL as-is (nothing to be relative to).\n\t* @see https://github.com/mswjs/msw/issues/1777\n\t*/\n\tif (typeof location === \"undefined\") return new URL(url);\n\treturn new URL(url.toString(), location.href);\n}\nfunction define(target, property, value) {\n\tReflect.defineProperty(target, property, {\n\t\twritable: true,\n\t\tenumerable: true,\n\t\tvalue\n\t});\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/XMLHttpRequestProxy.ts\n/**\n* Create a proxied `XMLHttpRequest` class.\n* The proxied class establishes spies on certain methods,\n* allowing us to intercept requests and respond to them.\n*/\nfunction createXMLHttpRequestProxy({ emitter, logger }) {\n\treturn new Proxy(globalThis.XMLHttpRequest, { construct(target, args, newTarget) {\n\t\tlogger.info(\"constructed new XMLHttpRequest\");\n\t\tconst originalRequest = Reflect.construct(target, args, newTarget);\n\t\t/**\n\t\t* @note Forward prototype descriptors onto the proxied object.\n\t\t* XMLHttpRequest is implemented in JSDOM in a way that assigns\n\t\t* a bunch of descriptors, like \"set responseType()\" on the prototype.\n\t\t* With this propagation, we make sure that those descriptors trigger\n\t\t* when the user operates with the proxied request instance.\n\t\t*/\n\t\tconst prototypeDescriptors = Object.getOwnPropertyDescriptors(target.prototype);\n\t\tfor (const propertyName in prototypeDescriptors) Reflect.defineProperty(originalRequest, propertyName, prototypeDescriptors[propertyName]);\n\t\tconst xhrRequestController = new XMLHttpRequestController(originalRequest, logger);\n\t\txhrRequestController.onRequest = async function({ request, requestId }) {\n\t\t\tconst controller = new RequestController(request, {\n\t\t\t\tpassthrough: () => {\n\t\t\t\t\tthis.logger.info(\"no mocked response received, performing request as-is...\");\n\t\t\t\t},\n\t\t\t\trespondWith: async (response) => {\n\t\t\t\t\tif (isResponseError(response)) {\n\t\t\t\t\t\tthis.errorWith(/* @__PURE__ */ new TypeError(\"Network error\"));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tawait this.respondWith(response);\n\t\t\t\t},\n\t\t\t\terrorWith: (reason) => {\n\t\t\t\t\tthis.logger.info(\"request errored!\", { error: reason });\n\t\t\t\t\tif (reason instanceof Error) this.errorWith(reason);\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.logger.info(\"awaiting mocked response...\");\n\t\t\tthis.logger.info(\"emitting the \\\"request\\\" event for %s listener(s)...\", emitter.listenerCount(\"request\"));\n\t\t\tawait handleRequest({\n\t\t\t\trequest,\n\t\t\t\trequestId,\n\t\t\t\tcontroller,\n\t\t\t\temitter\n\t\t\t});\n\t\t};\n\t\txhrRequestController.onResponse = async function({ response, isMockedResponse, request, requestId }) {\n\t\t\tthis.logger.info(\"emitting the \\\"response\\\" event for %s listener(s)...\", emitter.listenerCount(\"response\"));\n\t\t\temitter.emit(\"response\", {\n\t\t\t\tresponse,\n\t\t\t\tisMockedResponse,\n\t\t\t\trequest,\n\t\t\t\trequestId\n\t\t\t});\n\t\t};\n\t\treturn xhrRequestController.request;\n\t} });\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/index.ts\nvar XMLHttpRequestInterceptor = class XMLHttpRequestInterceptor extends Interceptor {\n\tstatic {\n\t\tthis.interceptorSymbol = Symbol(\"xhr\");\n\t}\n\tconstructor() {\n\t\tsuper(XMLHttpRequestInterceptor.interceptorSymbol);\n\t}\n\tcheckEnvironment() {\n\t\treturn hasConfigurableGlobal(\"XMLHttpRequest\");\n\t}\n\tsetup() {\n\t\tconst logger = this.logger.extend(\"setup\");\n\t\tlogger.info(\"patching \\\"XMLHttpRequest\\\" module...\");\n\t\tconst PureXMLHttpRequest = globalThis.XMLHttpRequest;\n\t\tinvariant(!PureXMLHttpRequest[IS_PATCHED_MODULE], \"Failed to patch the \\\"XMLHttpRequest\\\" module: already patched.\");\n\t\tglobalThis.XMLHttpRequest = createXMLHttpRequestProxy({\n\t\t\temitter: this.emitter,\n\t\t\tlogger: this.logger\n\t\t});\n\t\tlogger.info(\"native \\\"XMLHttpRequest\\\" module patched!\", globalThis.XMLHttpRequest.name);\n\t\tObject.defineProperty(globalThis.XMLHttpRequest, IS_PATCHED_MODULE, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\t\t\tvalue: true\n\t\t});\n\t\tthis.subscriptions.push(() => {\n\t\t\tObject.defineProperty(globalThis.XMLHttpRequest, IS_PATCHED_MODULE, { value: void 0 });\n\t\t\tglobalThis.XMLHttpRequest = PureXMLHttpRequest;\n\t\t\tlogger.info(\"native \\\"XMLHttpRequest\\\" module restored!\", globalThis.XMLHttpRequest.name);\n\t\t});\n\t}\n};\n\n//#endregion\nexport { XMLHttpRequestInterceptor as t };\n//# sourceMappingURL=XMLHttpRequest-C8dIZpds.mjs.map"],"names":["EventPolyfill","constructor","type","options","this","NONE","CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE","srcElement","currentTarget","eventPhase","isTrusted","composed","cancelable","defaultPrevented","bubbles","lengthComputable","loaded","total","cancelBubble","returnValue","target","timeStamp","Date","now","composedPath","initEvent","preventDefault","stopPropagation","stopImmediatePropagation","ProgressEventPolyfill","init","super","SUPPORTS_PROGRESS_EVENT","ProgressEvent","findPropertySource","propertyName","Object","prototype","hasOwnProperty","call","Reflect","getPrototypeOf","createProxy","Proxy","constructorCall","methodCall","getProperty","setProperty","handler","construct","args","newTarget","next","bind","set","nextValue","propertySource","ownDescriptors","getOwnPropertyDescriptor","apply","defineProperty","writable","enumerable","configurable","value","get","receiver","next$1","optionsToProxyHandler","createHeadersFromXMLHttpRequestHeaders","headersString","headers","Headers","lines","split","line","trim","name","parts","join","append","async","getBodyByteLength","input","explicitContentLength","Number","arrayBuffer","byteLength","kIsRequestHandled","Symbol","IS_NODE","isNodeProcess","kFetchRequest","XMLHttpRequestController","initialRequest","logger","method","url","events","Map","uploadEvents","requestId","createRequestId","requestHeaders","responseBuffer","Uint8Array","request","invoke","eventName","slice","addEventListener","methodName","toAbsoluteUrl","extend","href","info","listener","registerEvent","body","onResponse","fetchResponse","FetchResponse","isResponseWithBody","status","responseURL","statusText","getAllResponseHeaders","createResponse","response","isMockedResponse","fetchRequest","requestBody","encodeBuffer","toFetchApiRequest","clone","queueMicrotask","onRequest","Promise","resolve","finally","readyState","setRequestHeader","INTERNAL_REQUEST_ID_HEADER_NAME","define","upload","registerUploadEvent","nextEvents","concat","respondWith","totalRequestBodyLength","trigger","getResponseHeader","_","__","HEADERS_RECEIVED","headerValue","allHeaders","Array","from","entries","map","headerName","defineProperties","responseText","responseXML","totalResponseBodyLength","setReadyState","LOADING","finalizeResponse","DONE","reader","getReader","readNextResponseBodyChunk","done","read","left","right","result","concatArrayBuffer","responseBufferToText","decodeBuffer","responseType","responseJson","data","JSON","parse","parseJson","toArrayBuffer","mimeType","responseBlob","Blob","invariant","contentType","DOMParser","console","warn","some","supportedType","startsWith","parseFromString","errorWith","error","nextReadyState","UNSENT","callback","event","ProgressEventClass","includes","createEvent","XMLHttpRequestUpload","registeredEventName","listeners","length","forEach","resolvedBody","Document","documentElement","innerText","Request","credentials","withCredentials","toUpperCase","setRawRequest","location","URL","toString","property","XMLHttpRequestInterceptor","Interceptor","interceptorSymbol","checkEnvironment","hasConfigurableGlobal","setup","PureXMLHttpRequest","globalThis","XMLHttpRequest","IS_PATCHED_MODULE","emitter","originalRequest","prototypeDescriptors","getOwnPropertyDescriptors","xhrRequestController","controller","RequestController","passthrough","isResponseError","TypeError","reason","Error","listenerCount","handleRequest","emit","createXMLHttpRequestProxy","subscriptions","push"],"mappings":"ydAsBA,IAAIA,EAAgB,MACnB,WAAAC,CAAYC,EAAMC,GACjBC,KAAKC,KAAO,EACZD,KAAKE,gBAAkB,EACvBF,KAAKG,UAAY,EACjBH,KAAKI,eAAiB,EACtBJ,KAAKF,KAAO,GACZE,KAAKK,WAAa,KAClBL,KAAKM,cAAgB,KACrBN,KAAKO,WAAa,EAClBP,KAAKQ,WAAY,EACjBR,KAAKS,UAAW,EAChBT,KAAKU,YAAa,EAClBV,KAAKW,kBAAmB,EACxBX,KAAKY,SAAU,EACfZ,KAAKa,kBAAmB,EACxBb,KAAKc,OAAS,EACdd,KAAKe,MAAQ,EACbf,KAAKgB,cAAe,EACpBhB,KAAKiB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AI8C,UAAU,wBAGxCpP,KAAKkJ,YAAYpB,IAExBwE,UAAY+C,IACXrP,KAAK6F,OAAOoB,KAAK,mBAAoB,CAAEsF,MAAO8C,IAC1CA,aAAkBC,OAAOtP,KAAKsM,UAAU+C,MAG9CrP,KAAK6F,OAAOoB,KAAK,+BACjBjH,KAAK6F,OAAOoB,KAAK,qDAAwD0H,EAAQY,cAAc,kBACzFC,IAAc,CACnBhJ,UACAL,YACA6I,aACAL,WAEF,EACAI,EAAqB1H,WAAatC,gBAAe+C,SAAEA,EAAQC,iBAAEA,EAAgBvB,QAAEA,EAAOL,UAAEA,IACvFnG,KAAK6F,OAAOoB,KAAK,sDAAyD0H,EAAQY,cAAc,aAChGZ,EAAQc,KAAK,WAAY,CACxB3H,WACAC,mBACAvB,UACAL,aAEF,EACO4I,EAAqBvI,OAC7B,GACD,CAmB8BkJ,CAA0B,CACrDf,QAAS3O,KAAK2O,QACd9I,OAAQ7F,KAAK6F,SAEdA,EAAOoB,KAAK,0CAA6CuH,WAAWC,eAAe9J,MACnFzC,OAAOwB,eAAe8K,WAAWC,eAAgBC,EAAAA,EAAmB,CACnE9K,YAAY,EACZC,cAAc,EACdC,OAAO,IAER9D,KAAK2P,cAAcC,MAAK,KACvB1N,OAAOwB,eAAe8K,WAAWC,eAAgBC,EAAAA,EAAmB,CAAE5K,WAAO,IAC7E0K,WAAWC,eAAiBF,EAC5B1I,EAAOoB,KAAK,2CAA8CuH,WAAWC,eAAe9J,QAEtF","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"XMLHttpRequest-C8dIZpds.cjs.js","sources":["../../../../../../../../../../../node_modules/.pnpm/@mswjs+interceptors@0.41.2/node_modules/@mswjs/interceptors/lib/node/XMLHttpRequest-C8dIZpds.mjs"],"sourcesContent":["import { t as IS_PATCHED_MODULE } from \"./glossary-glQBRnVD.mjs\";\nimport { i as RequestController, o as INTERNAL_REQUEST_ID_HEADER_NAME, r as createRequestId, s as Interceptor, t as FetchResponse } from \"./fetchUtils-CoU35g3M.mjs\";\nimport { n as encodeBuffer, r as toArrayBuffer, t as decodeBuffer } from \"./bufferUtils-_8XfKIfX.mjs\";\nimport { n as setRawRequest } from \"./getRawRequest-DnwmXyOW.mjs\";\nimport { n as isResponseError, t as handleRequest } from \"./handleRequest-Y97UwBbF.mjs\";\nimport { t as hasConfigurableGlobal } from \"./hasConfigurableGlobal-DBJA0vjm.mjs\";\nimport { invariant } from \"outvariant\";\nimport { isNodeProcess } from \"is-node-process\";\n\n//#region src/interceptors/XMLHttpRequest/utils/concatArrayBuffer.ts\n/**\n* Concatenate two `Uint8Array` buffers.\n*/\nfunction concatArrayBuffer(left, right) {\n\tconst result = new Uint8Array(left.byteLength + right.byteLength);\n\tresult.set(left, 0);\n\tresult.set(right, left.byteLength);\n\treturn result;\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/polyfills/EventPolyfill.ts\nvar EventPolyfill = class {\n\tconstructor(type, options) {\n\t\tthis.NONE = 0;\n\t\tthis.CAPTURING_PHASE = 1;\n\t\tthis.AT_TARGET = 2;\n\t\tthis.BUBBLING_PHASE = 3;\n\t\tthis.type = \"\";\n\t\tthis.srcElement = null;\n\t\tthis.currentTarget = null;\n\t\tthis.eventPhase = 0;\n\t\tthis.isTrusted = true;\n\t\tthis.composed = false;\n\t\tthis.cancelable = true;\n\t\tthis.defaultPrevented = false;\n\t\tthis.bubbles = true;\n\t\tthis.lengthComputable = true;\n\t\tthis.loaded = 0;\n\t\tthis.total = 0;\n\t\tthis.cancelBubble = false;\n\t\tthis.returnValue = true;\n\t\tthis.type = type;\n\t\tthis.target = options?.target || null;\n\t\tthis.currentTarget = options?.currentTarget || null;\n\t\tthis.timeStamp = Date.now();\n\t}\n\tcomposedPath() {\n\t\treturn [];\n\t}\n\tinitEvent(type, bubbles, cancelable) {\n\t\tthis.type = type;\n\t\tthis.bubbles = !!bubbles;\n\t\tthis.cancelable = !!cancelable;\n\t}\n\tpreventDefault() {\n\t\tthis.defaultPrevented = true;\n\t}\n\tstopPropagation() {}\n\tstopImmediatePropagation() {}\n};\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/polyfills/ProgressEventPolyfill.ts\nvar ProgressEventPolyfill = class extends EventPolyfill {\n\tconstructor(type, init) {\n\t\tsuper(type);\n\t\tthis.lengthComputable = init?.lengthComputable || false;\n\t\tthis.composed = init?.composed || false;\n\t\tthis.loaded = init?.loaded || 0;\n\t\tthis.total = init?.total || 0;\n\t}\n};\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/utils/createEvent.ts\nconst SUPPORTS_PROGRESS_EVENT = typeof ProgressEvent !== \"undefined\";\nfunction createEvent(target, type, init) {\n\tconst progressEvents = [\n\t\t\"error\",\n\t\t\"progress\",\n\t\t\"loadstart\",\n\t\t\"loadend\",\n\t\t\"load\",\n\t\t\"timeout\",\n\t\t\"abort\"\n\t];\n\t/**\n\t* `ProgressEvent` is not supported in React Native.\n\t* @see https://github.com/mswjs/interceptors/issues/40\n\t*/\n\tconst ProgressEventClass = SUPPORTS_PROGRESS_EVENT ? ProgressEvent : ProgressEventPolyfill;\n\treturn progressEvents.includes(type) ? new ProgressEventClass(type, {\n\t\tlengthComputable: true,\n\t\tloaded: init?.loaded || 0,\n\t\ttotal: init?.total || 0\n\t}) : new EventPolyfill(type, {\n\t\ttarget,\n\t\tcurrentTarget: target\n\t});\n}\n\n//#endregion\n//#region src/utils/findPropertySource.ts\n/**\n* Returns the source object of the given property on the target object\n* (the target itself, any parent in its prototype, or null).\n*/\nfunction findPropertySource(target, propertyName) {\n\tif (!(propertyName in target)) return null;\n\tif (Object.prototype.hasOwnProperty.call(target, propertyName)) return target;\n\tconst prototype = Reflect.getPrototypeOf(target);\n\treturn prototype ? findPropertySource(prototype, propertyName) : null;\n}\n\n//#endregion\n//#region src/utils/createProxy.ts\nfunction createProxy(target, options) {\n\treturn new Proxy(target, optionsToProxyHandler(options));\n}\nfunction optionsToProxyHandler(options) {\n\tconst { constructorCall, methodCall, getProperty, setProperty } = options;\n\tconst handler = {};\n\tif (typeof constructorCall !== \"undefined\") handler.construct = function(target, args, newTarget) {\n\t\tconst next = Reflect.construct.bind(null, target, args, newTarget);\n\t\treturn constructorCall.call(newTarget, args, next);\n\t};\n\thandler.set = function(target, propertyName, nextValue) {\n\t\tconst next = () => {\n\t\t\tconst propertySource = findPropertySource(target, propertyName) || target;\n\t\t\tconst ownDescriptors = Reflect.getOwnPropertyDescriptor(propertySource, propertyName);\n\t\t\tif (typeof ownDescriptors?.set !== \"undefined\") {\n\t\t\t\townDescriptors.set.apply(target, [nextValue]);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn Reflect.defineProperty(propertySource, propertyName, {\n\t\t\t\twritable: true,\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: true,\n\t\t\t\tvalue: nextValue\n\t\t\t});\n\t\t};\n\t\tif (typeof setProperty !== \"undefined\") return setProperty.call(target, [propertyName, nextValue], next);\n\t\treturn next();\n\t};\n\thandler.get = function(target, propertyName, receiver) {\n\t\t/**\n\t\t* @note Using `Reflect.get()` here causes \"TypeError: Illegal invocation\".\n\t\t*/\n\t\tconst next = () => target[propertyName];\n\t\tconst value = typeof getProperty !== \"undefined\" ? getProperty.call(target, [propertyName, receiver], next) : next();\n\t\tif (typeof value === \"function\") return (...args) => {\n\t\t\tconst next$1 = value.bind(target, ...args);\n\t\t\tif (typeof methodCall !== \"undefined\") return methodCall.call(target, [propertyName, args], next$1);\n\t\t\treturn next$1();\n\t\t};\n\t\treturn value;\n\t};\n\treturn handler;\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/utils/isDomParserSupportedType.ts\nfunction isDomParserSupportedType(type) {\n\treturn [\n\t\t\"application/xhtml+xml\",\n\t\t\"application/xml\",\n\t\t\"image/svg+xml\",\n\t\t\"text/html\",\n\t\t\"text/xml\"\n\t].some((supportedType) => {\n\t\treturn type.startsWith(supportedType);\n\t});\n}\n\n//#endregion\n//#region src/utils/parseJson.ts\n/**\n* Parses a given string into JSON.\n* Gracefully handles invalid JSON by returning `null`.\n*/\nfunction parseJson(data) {\n\ttry {\n\t\treturn JSON.parse(data);\n\t} catch (_) {\n\t\treturn null;\n\t}\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/utils/createResponse.ts\n/**\n* Creates a Fetch API `Response` instance from the given\n* `XMLHttpRequest` instance and a response body.\n*/\nfunction createResponse(request, body) {\n\treturn new FetchResponse(FetchResponse.isResponseWithBody(request.status) ? body : null, {\n\t\turl: request.responseURL,\n\t\tstatus: request.status,\n\t\tstatusText: request.statusText,\n\t\theaders: createHeadersFromXMLHttpRequestHeaders(request.getAllResponseHeaders())\n\t});\n}\nfunction createHeadersFromXMLHttpRequestHeaders(headersString) {\n\tconst headers = new Headers();\n\tconst lines = headersString.split(/[\\r\\n]+/);\n\tfor (const line of lines) {\n\t\tif (line.trim() === \"\") continue;\n\t\tconst [name, ...parts] = line.split(\": \");\n\t\tconst value = parts.join(\": \");\n\t\theaders.append(name, value);\n\t}\n\treturn headers;\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/utils/getBodyByteLength.ts\n/**\n* Return a total byte length of the given request/response body.\n* If the `Content-Length` header is present, it will be used as the byte length.\n*/\nasync function getBodyByteLength(input) {\n\tconst explicitContentLength = input.headers.get(\"content-length\");\n\tif (explicitContentLength != null && explicitContentLength !== \"\") return Number(explicitContentLength);\n\treturn (await input.arrayBuffer()).byteLength;\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/XMLHttpRequestController.ts\nconst kIsRequestHandled = Symbol(\"kIsRequestHandled\");\nconst IS_NODE = isNodeProcess();\nconst kFetchRequest = Symbol(\"kFetchRequest\");\n/**\n* An `XMLHttpRequest` instance controller that allows us\n* to handle any given request instance (e.g. responding to it).\n*/\nvar XMLHttpRequestController = class {\n\tconstructor(initialRequest, logger) {\n\t\tthis.initialRequest = initialRequest;\n\t\tthis.logger = logger;\n\t\tthis.method = \"GET\";\n\t\tthis.url = null;\n\t\tthis[kIsRequestHandled] = false;\n\t\tthis.events = /* @__PURE__ */ new Map();\n\t\tthis.uploadEvents = /* @__PURE__ */ new Map();\n\t\tthis.requestId = createRequestId();\n\t\tthis.requestHeaders = new Headers();\n\t\tthis.responseBuffer = new Uint8Array();\n\t\tthis.request = createProxy(initialRequest, {\n\t\t\tsetProperty: ([propertyName, nextValue], invoke) => {\n\t\t\t\tswitch (propertyName) {\n\t\t\t\t\tcase \"ontimeout\": {\n\t\t\t\t\t\tconst eventName = propertyName.slice(2);\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t* @note Proxy callbacks to event listeners because JSDOM has trouble\n\t\t\t\t\t\t* translating these properties to callbacks. It seemed to be operating\n\t\t\t\t\t\t* on events exclusively.\n\t\t\t\t\t\t*/\n\t\t\t\t\t\tthis.request.addEventListener(eventName, nextValue);\n\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t}\n\t\t\t\t\tdefault: return invoke();\n\t\t\t\t}\n\t\t\t},\n\t\t\tmethodCall: ([methodName, args], invoke) => {\n\t\t\t\tswitch (methodName) {\n\t\t\t\t\tcase \"open\": {\n\t\t\t\t\t\tconst [method, url] = args;\n\t\t\t\t\t\tif (typeof url === \"undefined\") {\n\t\t\t\t\t\t\tthis.method = \"GET\";\n\t\t\t\t\t\t\tthis.url = toAbsoluteUrl(method);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.method = method;\n\t\t\t\t\t\t\tthis.url = toAbsoluteUrl(url);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.logger = this.logger.extend(`${this.method} ${this.url.href}`);\n\t\t\t\t\t\tthis.logger.info(\"open\", this.method, this.url.href);\n\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t}\n\t\t\t\t\tcase \"addEventListener\": {\n\t\t\t\t\t\tconst [eventName, listener] = args;\n\t\t\t\t\t\tthis.registerEvent(eventName, listener);\n\t\t\t\t\t\tthis.logger.info(\"addEventListener\", eventName, listener);\n\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t}\n\t\t\t\t\tcase \"setRequestHeader\": {\n\t\t\t\t\t\tconst [name, value] = args;\n\t\t\t\t\t\tthis.requestHeaders.set(name, value);\n\t\t\t\t\t\tthis.logger.info(\"setRequestHeader\", name, value);\n\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t}\n\t\t\t\t\tcase \"send\": {\n\t\t\t\t\t\tconst [body] = args;\n\t\t\t\t\t\tthis.request.addEventListener(\"load\", () => {\n\t\t\t\t\t\t\tif (typeof this.onResponse !== \"undefined\") {\n\t\t\t\t\t\t\t\tconst fetchResponse = createResponse(\n\t\t\t\t\t\t\t\t\tthis.request,\n\t\t\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t\t\t* The `response` property is the right way to read\n\t\t\t\t\t\t\t\t\t* the ambiguous response body, as the request's \"responseType\" may differ.\n\t\t\t\t\t\t\t\t\t* @see https://xhr.spec.whatwg.org/#the-response-attribute\n\t\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\t\tthis.request.response\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\tthis.onResponse.call(this, {\n\t\t\t\t\t\t\t\t\tresponse: fetchResponse,\n\t\t\t\t\t\t\t\t\tisMockedResponse: this[kIsRequestHandled],\n\t\t\t\t\t\t\t\t\trequest: fetchRequest,\n\t\t\t\t\t\t\t\t\trequestId: this.requestId\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tconst requestBody = typeof body === \"string\" ? encodeBuffer(body) : body;\n\t\t\t\t\t\tconst fetchRequest = this.toFetchApiRequest(requestBody);\n\t\t\t\t\t\tthis[kFetchRequest] = fetchRequest.clone();\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t* @note Start request handling on the next tick so that the user\n\t\t\t\t\t\t* could add event listeners for \"loadend\" before the interceptor fires it.\n\t\t\t\t\t\t*/\n\t\t\t\t\t\tqueueMicrotask(() => {\n\t\t\t\t\t\t\t(this.onRequest?.call(this, {\n\t\t\t\t\t\t\t\trequest: fetchRequest,\n\t\t\t\t\t\t\t\trequestId: this.requestId\n\t\t\t\t\t\t\t}) || Promise.resolve()).finally(() => {\n\t\t\t\t\t\t\t\tif (!this[kIsRequestHandled]) {\n\t\t\t\t\t\t\t\t\tthis.logger.info(\"request callback settled but request has not been handled (readystate %d), performing as-is...\", this.request.readyState);\n\t\t\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t\t\t* @note Set the intercepted request ID on the original request in Node.js\n\t\t\t\t\t\t\t\t\t* so that if it triggers any other interceptors, they don't attempt\n\t\t\t\t\t\t\t\t\t* to process it once again.\n\t\t\t\t\t\t\t\t\t*\n\t\t\t\t\t\t\t\t\t* For instance, XMLHttpRequest is often implemented via \"http.ClientRequest\"\n\t\t\t\t\t\t\t\t\t* and we don't want for both XHR and ClientRequest interceptors to\n\t\t\t\t\t\t\t\t\t* handle the same request at the same time (e.g. emit the \"response\" event twice).\n\t\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\t\tif (IS_NODE) this.request.setRequestHeader(INTERNAL_REQUEST_ID_HEADER_NAME, this.requestId);\n\t\t\t\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tdefault: return invoke();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t/**\n\t\t* Proxy the `.upload` property to gather the event listeners/callbacks.\n\t\t*/\n\t\tdefine(this.request, \"upload\", createProxy(this.request.upload, {\n\t\t\tsetProperty: ([propertyName, nextValue], invoke) => {\n\t\t\t\tswitch (propertyName) {\n\t\t\t\t\tcase \"onloadstart\":\n\t\t\t\t\tcase \"onprogress\":\n\t\t\t\t\tcase \"onaboart\":\n\t\t\t\t\tcase \"onerror\":\n\t\t\t\t\tcase \"onload\":\n\t\t\t\t\tcase \"ontimeout\":\n\t\t\t\t\tcase \"onloadend\": {\n\t\t\t\t\t\tconst eventName = propertyName.slice(2);\n\t\t\t\t\t\tthis.registerUploadEvent(eventName, nextValue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn invoke();\n\t\t\t},\n\t\t\tmethodCall: ([methodName, args], invoke) => {\n\t\t\t\tswitch (methodName) {\n\t\t\t\t\tcase \"addEventListener\": {\n\t\t\t\t\t\tconst [eventName, listener] = args;\n\t\t\t\t\t\tthis.registerUploadEvent(eventName, listener);\n\t\t\t\t\t\tthis.logger.info(\"upload.addEventListener\", eventName, listener);\n\t\t\t\t\t\treturn invoke();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}));\n\t}\n\tregisterEvent(eventName, listener) {\n\t\tconst nextEvents = (this.events.get(eventName) || []).concat(listener);\n\t\tthis.events.set(eventName, nextEvents);\n\t\tthis.logger.info(\"registered event \\\"%s\\\"\", eventName, listener);\n\t}\n\tregisterUploadEvent(eventName, listener) {\n\t\tconst nextEvents = (this.uploadEvents.get(eventName) || []).concat(listener);\n\t\tthis.uploadEvents.set(eventName, nextEvents);\n\t\tthis.logger.info(\"registered upload event \\\"%s\\\"\", eventName, listener);\n\t}\n\t/**\n\t* Responds to the current request with the given\n\t* Fetch API `Response` instance.\n\t*/\n\tasync respondWith(response) {\n\t\t/**\n\t\t* @note Since `XMLHttpRequestController` delegates the handling of the responses\n\t\t* to the \"load\" event listener that doesn't distinguish between the mocked and original\n\t\t* responses, mark the request that had a mocked response with a corresponding symbol.\n\t\t*\n\t\t* Mark this request as having a mocked response immediately since\n\t\t* calculating request/response total body length is asynchronous.\n\t\t*/\n\t\tthis[kIsRequestHandled] = true;\n\t\t/**\n\t\t* Dispatch request upload events for requests with a body.\n\t\t* @see https://github.com/mswjs/interceptors/issues/573\n\t\t*/\n\t\tif (this[kFetchRequest]) {\n\t\t\tconst totalRequestBodyLength = await getBodyByteLength(this[kFetchRequest]);\n\t\t\tthis.trigger(\"loadstart\", this.request.upload, {\n\t\t\t\tloaded: 0,\n\t\t\t\ttotal: totalRequestBodyLength\n\t\t\t});\n\t\t\tthis.trigger(\"progress\", this.request.upload, {\n\t\t\t\tloaded: totalRequestBodyLength,\n\t\t\t\ttotal: totalRequestBodyLength\n\t\t\t});\n\t\t\tthis.trigger(\"load\", this.request.upload, {\n\t\t\t\tloaded: totalRequestBodyLength,\n\t\t\t\ttotal: totalRequestBodyLength\n\t\t\t});\n\t\t\tthis.trigger(\"loadend\", this.request.upload, {\n\t\t\t\tloaded: totalRequestBodyLength,\n\t\t\t\ttotal: totalRequestBodyLength\n\t\t\t});\n\t\t}\n\t\tthis.logger.info(\"responding with a mocked response: %d %s\", response.status, response.statusText);\n\t\tdefine(this.request, \"status\", response.status);\n\t\tdefine(this.request, \"statusText\", response.statusText);\n\t\tdefine(this.request, \"responseURL\", this.url.href);\n\t\tthis.request.getResponseHeader = new Proxy(this.request.getResponseHeader, { apply: (_, __, args) => {\n\t\t\tthis.logger.info(\"getResponseHeader\", args[0]);\n\t\t\tif (this.request.readyState < this.request.HEADERS_RECEIVED) {\n\t\t\t\tthis.logger.info(\"headers not received yet, returning null\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tconst headerValue = response.headers.get(args[0]);\n\t\t\tthis.logger.info(\"resolved response header \\\"%s\\\" to\", args[0], headerValue);\n\t\t\treturn headerValue;\n\t\t} });\n\t\tthis.request.getAllResponseHeaders = new Proxy(this.request.getAllResponseHeaders, { apply: () => {\n\t\t\tthis.logger.info(\"getAllResponseHeaders\");\n\t\t\tif (this.request.readyState < this.request.HEADERS_RECEIVED) {\n\t\t\t\tthis.logger.info(\"headers not received yet, returning empty string\");\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tconst allHeaders = Array.from(response.headers.entries()).map(([headerName, headerValue]) => {\n\t\t\t\treturn `${headerName}: ${headerValue}`;\n\t\t\t}).join(\"\\r\\n\");\n\t\t\tthis.logger.info(\"resolved all response headers to\", allHeaders);\n\t\t\treturn allHeaders;\n\t\t} });\n\t\tObject.defineProperties(this.request, {\n\t\t\tresponse: {\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: false,\n\t\t\t\tget: () => this.response\n\t\t\t},\n\t\t\tresponseText: {\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: false,\n\t\t\t\tget: () => this.responseText\n\t\t\t},\n\t\t\tresponseXML: {\n\t\t\t\tenumerable: true,\n\t\t\t\tconfigurable: false,\n\t\t\t\tget: () => this.responseXML\n\t\t\t}\n\t\t});\n\t\tconst totalResponseBodyLength = await getBodyByteLength(response.clone());\n\t\tthis.logger.info(\"calculated response body length\", totalResponseBodyLength);\n\t\tthis.trigger(\"loadstart\", this.request, {\n\t\t\tloaded: 0,\n\t\t\ttotal: totalResponseBodyLength\n\t\t});\n\t\tthis.setReadyState(this.request.HEADERS_RECEIVED);\n\t\tthis.setReadyState(this.request.LOADING);\n\t\tconst finalizeResponse = () => {\n\t\t\tthis.logger.info(\"finalizing the mocked response...\");\n\t\t\tthis.setReadyState(this.request.DONE);\n\t\t\tthis.trigger(\"load\", this.request, {\n\t\t\t\tloaded: this.responseBuffer.byteLength,\n\t\t\t\ttotal: totalResponseBodyLength\n\t\t\t});\n\t\t\tthis.trigger(\"loadend\", this.request, {\n\t\t\t\tloaded: this.responseBuffer.byteLength,\n\t\t\t\ttotal: totalResponseBodyLength\n\t\t\t});\n\t\t};\n\t\tif (response.body) {\n\t\t\tthis.logger.info(\"mocked response has body, streaming...\");\n\t\t\tconst reader = response.body.getReader();\n\t\t\tconst readNextResponseBodyChunk = async () => {\n\t\t\t\tconst { value, done } = await reader.read();\n\t\t\t\tif (done) {\n\t\t\t\t\tthis.logger.info(\"response body stream done!\");\n\t\t\t\t\tfinalizeResponse();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (value) {\n\t\t\t\t\tthis.logger.info(\"read response body chunk:\", value);\n\t\t\t\t\tthis.responseBuffer = concatArrayBuffer(this.responseBuffer, value);\n\t\t\t\t\tthis.trigger(\"progress\", this.request, {\n\t\t\t\t\t\tloaded: this.responseBuffer.byteLength,\n\t\t\t\t\t\ttotal: totalResponseBodyLength\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\treadNextResponseBodyChunk();\n\t\t\t};\n\t\t\treadNextResponseBodyChunk();\n\t\t} else finalizeResponse();\n\t}\n\tresponseBufferToText() {\n\t\treturn decodeBuffer(this.responseBuffer);\n\t}\n\tget response() {\n\t\tthis.logger.info(\"getResponse (responseType: %s)\", this.request.responseType);\n\t\tif (this.request.readyState !== this.request.DONE) return null;\n\t\tswitch (this.request.responseType) {\n\t\t\tcase \"json\": {\n\t\t\t\tconst responseJson = parseJson(this.responseBufferToText());\n\t\t\t\tthis.logger.info(\"resolved response JSON\", responseJson);\n\t\t\t\treturn responseJson;\n\t\t\t}\n\t\t\tcase \"arraybuffer\": {\n\t\t\t\tconst arrayBuffer = toArrayBuffer(this.responseBuffer);\n\t\t\t\tthis.logger.info(\"resolved response ArrayBuffer\", arrayBuffer);\n\t\t\t\treturn arrayBuffer;\n\t\t\t}\n\t\t\tcase \"blob\": {\n\t\t\t\tconst mimeType = this.request.getResponseHeader(\"Content-Type\") || \"text/plain\";\n\t\t\t\tconst responseBlob = new Blob([this.responseBufferToText()], { type: mimeType });\n\t\t\t\tthis.logger.info(\"resolved response Blob (mime type: %s)\", responseBlob, mimeType);\n\t\t\t\treturn responseBlob;\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tconst responseText = this.responseBufferToText();\n\t\t\t\tthis.logger.info(\"resolving \\\"%s\\\" response type as text\", this.request.responseType, responseText);\n\t\t\t\treturn responseText;\n\t\t\t}\n\t\t}\n\t}\n\tget responseText() {\n\t\t/**\n\t\t* Throw when trying to read the response body as text when the\n\t\t* \"responseType\" doesn't expect text. This just respects the spec better.\n\t\t* @see https://xhr.spec.whatwg.org/#the-responsetext-attribute\n\t\t*/\n\t\tinvariant(this.request.responseType === \"\" || this.request.responseType === \"text\", \"InvalidStateError: The object is in invalid state.\");\n\t\tif (this.request.readyState !== this.request.LOADING && this.request.readyState !== this.request.DONE) return \"\";\n\t\tconst responseText = this.responseBufferToText();\n\t\tthis.logger.info(\"getResponseText: \\\"%s\\\"\", responseText);\n\t\treturn responseText;\n\t}\n\tget responseXML() {\n\t\tinvariant(this.request.responseType === \"\" || this.request.responseType === \"document\", \"InvalidStateError: The object is in invalid state.\");\n\t\tif (this.request.readyState !== this.request.DONE) return null;\n\t\tconst contentType = this.request.getResponseHeader(\"Content-Type\") || \"\";\n\t\tif (typeof DOMParser === \"undefined\") {\n\t\t\tconsole.warn(\"Cannot retrieve XMLHttpRequest response body as XML: DOMParser is not defined. You are likely using an environment that is not browser or does not polyfill browser globals correctly.\");\n\t\t\treturn null;\n\t\t}\n\t\tif (isDomParserSupportedType(contentType)) return new DOMParser().parseFromString(this.responseBufferToText(), contentType);\n\t\treturn null;\n\t}\n\terrorWith(error) {\n\t\t/**\n\t\t* @note Mark this request as handled even if it received a mock error.\n\t\t* This prevents the controller from trying to perform this request as-is.\n\t\t*/\n\t\tthis[kIsRequestHandled] = true;\n\t\tthis.logger.info(\"responding with an error\");\n\t\tthis.setReadyState(this.request.DONE);\n\t\tthis.trigger(\"error\", this.request);\n\t\tthis.trigger(\"loadend\", this.request);\n\t}\n\t/**\n\t* Transitions this request's `readyState` to the given one.\n\t*/\n\tsetReadyState(nextReadyState) {\n\t\tthis.logger.info(\"setReadyState: %d -> %d\", this.request.readyState, nextReadyState);\n\t\tif (this.request.readyState === nextReadyState) {\n\t\t\tthis.logger.info(\"ready state identical, skipping transition...\");\n\t\t\treturn;\n\t\t}\n\t\tdefine(this.request, \"readyState\", nextReadyState);\n\t\tthis.logger.info(\"set readyState to: %d\", nextReadyState);\n\t\tif (nextReadyState !== this.request.UNSENT) {\n\t\t\tthis.logger.info(\"triggering \\\"readystatechange\\\" event...\");\n\t\t\tthis.trigger(\"readystatechange\", this.request);\n\t\t}\n\t}\n\t/**\n\t* Triggers given event on the `XMLHttpRequest` instance.\n\t*/\n\ttrigger(eventName, target, options) {\n\t\tconst callback = target[`on${eventName}`];\n\t\tconst event = createEvent(target, eventName, options);\n\t\tthis.logger.info(\"trigger \\\"%s\\\"\", eventName, options || \"\");\n\t\tif (typeof callback === \"function\") {\n\t\t\tthis.logger.info(\"found a direct \\\"%s\\\" callback, calling...\", eventName);\n\t\t\tcallback.call(target, event);\n\t\t}\n\t\tconst events = target instanceof XMLHttpRequestUpload ? this.uploadEvents : this.events;\n\t\tfor (const [registeredEventName, listeners] of events) if (registeredEventName === eventName) {\n\t\t\tthis.logger.info(\"found %d listener(s) for \\\"%s\\\" event, calling...\", listeners.length, eventName);\n\t\t\tlisteners.forEach((listener) => listener.call(target, event));\n\t\t}\n\t}\n\t/**\n\t* Converts this `XMLHttpRequest` instance into a Fetch API `Request` instance.\n\t*/\n\ttoFetchApiRequest(body) {\n\t\tthis.logger.info(\"converting request to a Fetch API Request...\");\n\t\tconst resolvedBody = body instanceof Document ? body.documentElement.innerText : body;\n\t\tconst fetchRequest = new Request(this.url.href, {\n\t\t\tmethod: this.method,\n\t\t\theaders: this.requestHeaders,\n\t\t\tcredentials: this.request.withCredentials ? \"include\" : \"same-origin\",\n\t\t\tbody: [\"GET\", \"HEAD\"].includes(this.method.toUpperCase()) ? null : resolvedBody\n\t\t});\n\t\tdefine(fetchRequest, \"headers\", createProxy(fetchRequest.headers, { methodCall: ([methodName, args], invoke) => {\n\t\t\tswitch (methodName) {\n\t\t\t\tcase \"append\":\n\t\t\t\tcase \"set\": {\n\t\t\t\t\tconst [headerName, headerValue] = args;\n\t\t\t\t\tthis.request.setRequestHeader(headerName, headerValue);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase \"delete\": {\n\t\t\t\t\tconst [headerName] = args;\n\t\t\t\t\tconsole.warn(`XMLHttpRequest: Cannot remove a \"${headerName}\" header from the Fetch API representation of the \"${fetchRequest.method} ${fetchRequest.url}\" request. XMLHttpRequest headers cannot be removed.`);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn invoke();\n\t\t} }));\n\t\tsetRawRequest(fetchRequest, this.request);\n\t\tthis.logger.info(\"converted request to a Fetch API Request!\", fetchRequest);\n\t\treturn fetchRequest;\n\t}\n};\nfunction toAbsoluteUrl(url) {\n\t/**\n\t* @note XMLHttpRequest interceptor may run in environments\n\t* that implement XMLHttpRequest but don't implement \"location\"\n\t* (for example, React Native). If that's the case, return the\n\t* input URL as-is (nothing to be relative to).\n\t* @see https://github.com/mswjs/msw/issues/1777\n\t*/\n\tif (typeof location === \"undefined\") return new URL(url);\n\treturn new URL(url.toString(), location.href);\n}\nfunction define(target, property, value) {\n\tReflect.defineProperty(target, property, {\n\t\twritable: true,\n\t\tenumerable: true,\n\t\tvalue\n\t});\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/XMLHttpRequestProxy.ts\n/**\n* Create a proxied `XMLHttpRequest` class.\n* The proxied class establishes spies on certain methods,\n* allowing us to intercept requests and respond to them.\n*/\nfunction createXMLHttpRequestProxy({ emitter, logger }) {\n\treturn new Proxy(globalThis.XMLHttpRequest, { construct(target, args, newTarget) {\n\t\tlogger.info(\"constructed new XMLHttpRequest\");\n\t\tconst originalRequest = Reflect.construct(target, args, newTarget);\n\t\t/**\n\t\t* @note Forward prototype descriptors onto the proxied object.\n\t\t* XMLHttpRequest is implemented in JSDOM in a way that assigns\n\t\t* a bunch of descriptors, like \"set responseType()\" on the prototype.\n\t\t* With this propagation, we make sure that those descriptors trigger\n\t\t* when the user operates with the proxied request instance.\n\t\t*/\n\t\tconst prototypeDescriptors = Object.getOwnPropertyDescriptors(target.prototype);\n\t\tfor (const propertyName in prototypeDescriptors) Reflect.defineProperty(originalRequest, propertyName, prototypeDescriptors[propertyName]);\n\t\tconst xhrRequestController = new XMLHttpRequestController(originalRequest, logger);\n\t\txhrRequestController.onRequest = async function({ request, requestId }) {\n\t\t\tconst controller = new RequestController(request, {\n\t\t\t\tpassthrough: () => {\n\t\t\t\t\tthis.logger.info(\"no mocked response received, performing request as-is...\");\n\t\t\t\t},\n\t\t\t\trespondWith: async (response) => {\n\t\t\t\t\tif (isResponseError(response)) {\n\t\t\t\t\t\tthis.errorWith(/* @__PURE__ */ new TypeError(\"Network error\"));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tawait this.respondWith(response);\n\t\t\t\t},\n\t\t\t\terrorWith: (reason) => {\n\t\t\t\t\tthis.logger.info(\"request errored!\", { error: reason });\n\t\t\t\t\tif (reason instanceof Error) this.errorWith(reason);\n\t\t\t\t}\n\t\t\t});\n\t\t\tthis.logger.info(\"awaiting mocked response...\");\n\t\t\tthis.logger.info(\"emitting the \\\"request\\\" event for %s listener(s)...\", emitter.listenerCount(\"request\"));\n\t\t\tawait handleRequest({\n\t\t\t\trequest,\n\t\t\t\trequestId,\n\t\t\t\tcontroller,\n\t\t\t\temitter\n\t\t\t});\n\t\t};\n\t\txhrRequestController.onResponse = async function({ response, isMockedResponse, request, requestId }) {\n\t\t\tthis.logger.info(\"emitting the \\\"response\\\" event for %s listener(s)...\", emitter.listenerCount(\"response\"));\n\t\t\temitter.emit(\"response\", {\n\t\t\t\tresponse,\n\t\t\t\tisMockedResponse,\n\t\t\t\trequest,\n\t\t\t\trequestId\n\t\t\t});\n\t\t};\n\t\treturn xhrRequestController.request;\n\t} });\n}\n\n//#endregion\n//#region src/interceptors/XMLHttpRequest/index.ts\nvar XMLHttpRequestInterceptor = class XMLHttpRequestInterceptor extends Interceptor {\n\tstatic {\n\t\tthis.interceptorSymbol = Symbol(\"xhr\");\n\t}\n\tconstructor() {\n\t\tsuper(XMLHttpRequestInterceptor.interceptorSymbol);\n\t}\n\tcheckEnvironment() {\n\t\treturn hasConfigurableGlobal(\"XMLHttpRequest\");\n\t}\n\tsetup() {\n\t\tconst logger = this.logger.extend(\"setup\");\n\t\tlogger.info(\"patching \\\"XMLHttpRequest\\\" module...\");\n\t\tconst PureXMLHttpRequest = globalThis.XMLHttpRequest;\n\t\tinvariant(!PureXMLHttpRequest[IS_PATCHED_MODULE], \"Failed to patch the \\\"XMLHttpRequest\\\" module: already patched.\");\n\t\tglobalThis.XMLHttpRequest = createXMLHttpRequestProxy({\n\t\t\temitter: this.emitter,\n\t\t\tlogger: this.logger\n\t\t});\n\t\tlogger.info(\"native \\\"XMLHttpRequest\\\" module patched!\", globalThis.XMLHttpRequest.name);\n\t\tObject.defineProperty(globalThis.XMLHttpRequest, IS_PATCHED_MODULE, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\t\t\tvalue: true\n\t\t});\n\t\tthis.subscriptions.push(() => {\n\t\t\tObject.defineProperty(globalThis.XMLHttpRequest, IS_PATCHED_MODULE, { value: void 0 });\n\t\t\tglobalThis.XMLHttpRequest = PureXMLHttpRequest;\n\t\t\tlogger.info(\"native \\\"XMLHttpRequest\\\" module restored!\", globalThis.XMLHttpRequest.name);\n\t\t});\n\t}\n};\n\n//#endregion\nexport { XMLHttpRequestInterceptor as t };\n//# sourceMappingURL=XMLHttpRequest-C8dIZpds.mjs.map"],"names":["EventPolyfill","constructor","type","options","this","NONE","CAPTURING_PHASE","AT_TARGET","BUBBLING_PHASE","srcElement","currentTarget","eventPhase","isTrusted","composed","cancelable","defaultPrevented","bubbles","lengthComputable","loaded","total","cancelBubble","returnValue","target","timeStamp","Date","now","composedPath","initEvent","preventDefault","stopPropagation","stopImmediatePropagation","ProgressEventPolyfill","init","super","SUPPORTS_PROGRESS_EVENT","ProgressEvent","findPropertySource","propertyName","Object","prototype","hasOwnProperty","call","Reflect","getPrototypeOf","createProxy","Proxy","constructorCall","methodCall","getProperty","setProperty","handler","construct","args","newTarget","next","bind","set","nextValue","propertySource","ownDescriptors","getOwnPropertyDescriptor","apply","defineProperty","writable","enumerable","configurable","value","get","receiver","next$1","optionsToProxyHandler","createHeadersFromXMLHttpRequestHeaders","headersString","headers","Headers","lines","split","line","trim","name","parts","join","append","async","getBodyByteLength","input","explicitContentLength","Number","arrayBuffer","byteLength","kIsRequestHandled","Symbol","IS_NODE","isNodeProcess","kFetchRequest","XMLHttpRequestController","initialRequest","logger","method","url","events","Map","uploadEvents","requestId","createRequestId","requestHeaders","responseBuffer","Uint8Array","request","invoke","eventName","slice","addEventListener","methodName","toAbsoluteUrl","extend","href","info","listener","registerEvent","body","onResponse","fetchResponse","FetchResponse","isResponseWithBody","status","responseURL","statusText","getAllResponseHeaders","createResponse","response","isMockedResponse","fetchRequest","requestBody","encodeBuffer","toFetchApiRequest","clone","queueMicrotask","onRequest","Promise","resolve","finally","readyState","setRequestHeader","INTERNAL_REQUEST_ID_HEADER_NAME","define","upload","registerUploadEvent","nextEvents","concat","respondWith","totalRequestBodyLength","trigger","getResponseHeader","_","__","HEADERS_RECEIVED","headerValue","allHeaders","Array","from","entries","map","headerName","defineProperties","responseText","responseXML","totalResponseBodyLength","setReadyState","LOADING","finalizeResponse","DONE","reader","getReader","readNextResponseBodyChunk","done","read","left","right","result","concatArrayBuffer","responseBufferToText","decodeBuffer","responseType","responseJson","data","JSON","parse","parseJson","toArrayBuffer","mimeType","responseBlob","Blob","invariant","contentType","DOMParser","console","warn","some","supportedType","startsWith","parseFromString","errorWith","error","nextReadyState","UNSENT","callback","event","ProgressEventClass","includes","createEvent","XMLHttpRequestUpload","registeredEventName","listeners","length","forEach","resolvedBody","Document","documentElement","innerText","Request","credentials","withCredentials","toUpperCase","setRawRequest","location","URL","toString","property","XMLHttpRequestInterceptor","Interceptor","interceptorSymbol","checkEnvironment","hasConfigurableGlobal","setup","PureXMLHttpRequest","globalThis","XMLHttpRequest","IS_PATCHED_MODULE","emitter","originalRequest","prototypeDescriptors","getOwnPropertyDescriptors","xhrRequestController","controller","RequestController","passthrough","isResponseError","TypeError","reason","Error","listenerCount","handleRequest","emit","createXMLHttpRequestProxy","subscriptions","push"],"mappings":"ydAsBA,IAAIA,EAAgB,MACnB,WAAAC,CAAYC,EAAMC,GACjBC,KAAKC,KAAO,EACZD,KAAKE,gBAAkB,EACv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