@hyperttp/core 1.3.3 → 1.4.1

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 (46) hide show
  1. package/Core/HyperCore.d.ts +142 -152
  2. package/Core/HyperCore.d.ts.map +1 -1
  3. package/Core/HyperCore.js +289 -286
  4. package/Core/HyperCore.js.map +1 -1
  5. package/README.md +279 -134
  6. package/package.json +14 -8
  7. package/transports/browser.d.ts +228 -0
  8. package/transports/browser.d.ts.map +1 -0
  9. package/transports/browser.js +451 -0
  10. package/transports/browser.js.map +1 -0
  11. package/transports/manager.d.ts +7 -67
  12. package/transports/manager.d.ts.map +1 -1
  13. package/transports/manager.js +138 -145
  14. package/transports/manager.js.map +1 -1
  15. package/transports/node.d.ts +0 -20
  16. package/transports/node.d.ts.map +1 -1
  17. package/transports/node.js +104 -48
  18. package/transports/node.js.map +1 -1
  19. package/utils/decompress.d.ts +16 -18
  20. package/utils/decompress.d.ts.map +1 -1
  21. package/utils/decompress.js +143 -63
  22. package/utils/decompress.js.map +1 -1
  23. package/utils/errors.d.ts +0 -10
  24. package/utils/errors.d.ts.map +1 -1
  25. package/utils/errors.js +1 -11
  26. package/utils/errors.js.map +1 -1
  27. package/utils/merge.d.ts +0 -3
  28. package/utils/merge.d.ts.map +1 -1
  29. package/utils/merge.js +0 -4
  30. package/utils/merge.js.map +1 -1
  31. package/utils/normalize.d.ts +40 -20
  32. package/utils/normalize.d.ts.map +1 -1
  33. package/utils/normalize.js +197 -63
  34. package/utils/normalize.js.map +1 -1
  35. package/utils/pipeline.d.ts +10 -30
  36. package/utils/pipeline.d.ts.map +1 -1
  37. package/utils/pipeline.js +44 -44
  38. package/utils/pipeline.js.map +1 -1
  39. package/utils/response.d.ts +35 -44
  40. package/utils/response.d.ts.map +1 -1
  41. package/utils/response.js +228 -69
  42. package/utils/response.js.map +1 -1
  43. package/utils/retryUtils.d.ts +2 -10
  44. package/utils/retryUtils.d.ts.map +1 -1
  45. package/utils/retryUtils.js +17 -21
  46. package/utils/retryUtils.js.map +1 -1
@@ -1,238 +1,228 @@
1
1
  import type { IHyperCore, HyperTransport, HttpClientOptions, HyperPlugin, InternalRequest, HttpResponse, RequestInterface, StreamResponse, RequestBodyData } from "@hyperttp/types";
2
2
  /**
3
- * @ru Основной класс HTTP-клиента с поддержкой плагинов, потоковой передачи, кэширования URL и гибкой настройки.
4
- * @en Core HTTP client class with plugin support, streaming, URL caching and flexible configuration.
5
- * @implements {IHyperCore}
3
+ * @ru Ядро HTTP-клиента Hyperttp. Обеспечивает диспетчеризацию запросов через
4
+ * конвейер плагинов, пулинг объектов запросов и кэширование URL.
5
+ * @en Hyperttp HTTP client core. Provides request dispatching through the
6
+ * plugin pipeline, request object pooling, and URL caching.
6
7
  */
7
8
  export declare class HyperCore implements IHyperCore {
8
- /**
9
- * @ru Активная конфигурация клиента (объединена с настройками по умолчанию).
10
- * @en Current client configuration (merged with default settings).
11
- */
12
9
  config: HttpClientOptions;
13
10
  private readonly transportManager;
11
+ private readonly transportReady;
14
12
  private readonly defaultHeaders;
15
13
  private readonly pluginCtx;
16
14
  private readonly pipelines;
15
+ private hasRequestPlugins;
16
+ private hasResponseDataPlugins;
17
+ private hasResponsePlugins;
18
+ private hasErrorPlugins;
17
19
  /**
18
- * @ru Создаёт экземпляр HyperCore.
19
- * @en Creates a HyperCore instance.
20
- * @param config - Client configuration (overrides defaults).
21
- * @param transport - Optional transport layer (auto‑selected if omitted).
20
+ * @ru Создаёт новый экземпляр ядра HTTP-клиента.
21
+ * @en Creates a new HTTP client core instance.
22
+ * @param config - Client configuration options.
23
+ * @param transport - Optional custom transport implementation.
22
24
  */
23
25
  constructor(config?: HttpClientOptions, transport?: HyperTransport);
24
26
  /**
25
- * @ru Возвращает текущий транспортный экземпляр (или null, если он ещё не инициализирован).
26
- * @en Returns the current transport instance (or null if not yet initialized).
27
+ * @ru Возвращает имя класса текущего активного транспорта.
28
+ * @en Returns the class name of the currently active transport.
29
+ * @returns Promise resolving to the transport class name.
27
30
  */
28
- private get transport();
29
31
  getTransportName(): Promise<string>;
30
32
  /**
31
- * @ru Гарантирует наличие готового к работе транспорта (асинхронная инициализация при необходимости).
32
- * @en Ensures a ready‑to‑use transport (async initialization if needed).
33
- * @returns Promise resolving to a transport instance.
34
- */
35
- private ensureTransport;
36
- /**
37
- * @ru Внутренний метод диспетчеризации запроса, обрабатывающий как обычные, так и стриминговые ответы.
38
- * @en Internal request dispatcher handling both regular and streaming responses.
39
- * @param req - Internal request object.
40
- * @returns Promise resolving to a response (HttpResponse or StreamResponse).
41
- */
42
- private dispatchInternal;
43
- /**
44
- * @ru Отправляет HTTP-запрос и возвращает обычный (нестриминговый) ответ.
45
- * @en Sends an HTTP request and returns a regular (non‑streaming) response.
46
- * @param req - Internal request object.
47
- * @returns Promise resolving to a typed HTTP response.
33
+ * @ru Отправляет внутренний запрос через полный конвейер обработки:
34
+ * плагины запроса → транспорт → плагины данных ответа → маппинг → плагины ответа.
35
+ * @en Dispatches an internal request through the full processing pipeline:
36
+ * request plugins → transport → response data plugins → mapping → response plugins.
37
+ * @template T - Expected response body type.
38
+ * @param req - The normalized internal request object.
39
+ * @returns Promise resolving to the HTTP response.
48
40
  */
49
41
  dispatch<T = unknown>(req: InternalRequest): Promise<HttpResponse<T>>;
50
42
  /**
51
- * @ru Регистрирует плагин в клиенте. Плагин может добавлять хуки на различных этапах обработки запроса/ответа.
52
- * @en Registers a plugin with the client. The plugin can add hooks at various request/response processing stages.
53
- * @param plugin - Plugin instance to register.
54
- * @returns This instance for chaining.
43
+ * @ru Регистрирует плагин в экземпляре клиента. Плагины выполняются в порядке приоритета.
44
+ * @en Registers a plugin into the client instance. Plugins are executed in priority order.
45
+ * @param plugin - The plugin instance to register.
46
+ * @returns The current instance for chaining.
55
47
  */
56
48
  use(plugin: HyperPlugin): this;
57
- /**
58
- * @ru Выполняет GET-запрос с потоковым ответом.
59
- * @en Performs a GET request with a streaming response.
60
- * @param req - Request URL or configuration object.
61
- * @param signal - Optional AbortSignal to cancel the request.
62
- * @returns Promise resolving to a StreamResponse.
63
- */
64
- stream(req: RequestInterface | string, signal?: AbortSignal): Promise<StreamResponse<unknown>>;
65
- /**
66
- * @ru Выполняет POST-запрос с потоковым ответом.
67
- * @en Performs a POST request with a streaming response.
68
- * @param req - Request URL or configuration object.
69
- * @param body - Request body data.
70
- * @param signal - Optional AbortSignal to cancel the request.
71
- * @returns Promise resolving to a StreamResponse.
72
- */
73
- postStream<T = unknown>(req: RequestInterface | string, body?: RequestBodyData, signal?: AbortSignal): Promise<StreamResponse<T>>;
74
49
  /**
75
50
  * @ru Выполняет GET-запрос.
76
51
  * @en Performs a GET request.
77
- * @param req - Request URL or configuration object.
78
- * @param signal - Optional AbortSignal to cancel the request.
79
- * @returns Promise resolving to an HttpResponse.
52
+ * @template T - Expected response body type.
53
+ * @param req - Request URL or RequestInterface object.
54
+ * @param signal - Optional abort signal.
55
+ * @returns Promise resolving to the HTTP response.
80
56
  */
81
57
  get<T = unknown>(req: RequestInterface | string, signal?: AbortSignal): Promise<HttpResponse<T>>;
82
58
  /**
83
- * @ru Выполняет POST-запрос.
84
- * @en Performs a POST request.
85
- * @param req - Request URL or configuration object.
59
+ * @ru Выполняет POST-запрос с телом.
60
+ * @en Performs a POST request with a body.
61
+ * @template T - Expected response body type.
62
+ * @param req - Request URL or RequestInterface object.
86
63
  * @param body - Request body data.
87
- * @param signal - Optional AbortSignal to cancel the request.
88
- * @returns Promise resolving to an HttpResponse.
64
+ * @param signal - Optional abort signal.
65
+ * @returns Promise resolving to the HTTP response.
89
66
  */
90
67
  post<T = unknown>(req: RequestInterface | string, body?: RequestBodyData, signal?: AbortSignal): Promise<HttpResponse<T>>;
91
68
  /**
92
- * @ru Выполняет PUT-запрос.
93
- * @en Performs a PUT request.
94
- * @param req - Request URL or configuration object.
69
+ * @ru Выполняет PUT-запрос с телом.
70
+ * @en Performs a PUT request with a body.
71
+ * @template T - Expected response body type.
72
+ * @param req - Request URL or RequestInterface object.
95
73
  * @param body - Request body data.
96
- * @param signal - Optional AbortSignal to cancel the request.
97
- * @returns Promise resolving to an HttpResponse.
74
+ * @param signal - Optional abort signal.
75
+ * @returns Promise resolving to the HTTP response.
98
76
  */
99
77
  put<T = unknown>(req: RequestInterface | string, body?: RequestBodyData, signal?: AbortSignal): Promise<HttpResponse<T>>;
100
78
  /**
101
- * @ru Выполняет PATCH-запрос.
102
- * @en Performs a PATCH request.
103
- * @param req - Request URL or configuration object.
79
+ * @ru Выполняет PATCH-запрос с телом.
80
+ * @en Performs a PATCH request with a body.
81
+ * @template T - Expected response body type.
82
+ * @param req - Request URL or RequestInterface object.
104
83
  * @param body - Request body data.
105
- * @param signal - Optional AbortSignal to cancel the request.
106
- * @returns Promise resolving to an HttpResponse.
84
+ * @param signal - Optional abort signal.
85
+ * @returns Promise resolving to the HTTP response.
107
86
  */
108
87
  patch<T = unknown>(req: RequestInterface | string, body?: RequestBodyData, signal?: AbortSignal): Promise<HttpResponse<T>>;
109
88
  /**
110
89
  * @ru Выполняет DELETE-запрос.
111
90
  * @en Performs a DELETE request.
112
- * @param req - Request URL or configuration object.
113
- * @param signal - Optional AbortSignal to cancel the request.
114
- * @returns Promise resolving to an HttpResponse.
91
+ * @template T - Expected response body type.
92
+ * @param req - Request URL or RequestInterface object.
93
+ * @param signal - Optional abort signal.
94
+ * @returns Promise resolving to the HTTP response.
115
95
  */
116
96
  delete<T = unknown>(req: RequestInterface | string, signal?: AbortSignal): Promise<HttpResponse<T>>;
117
97
  /**
118
98
  * @ru Выполняет OPTIONS-запрос.
119
99
  * @en Performs an OPTIONS request.
120
- * @param req - Request URL or configuration object.
121
- * @param body - Request body data.
122
- * @param signal - Optional AbortSignal to cancel the request.
123
- * @returns Promise resolving to an HttpResponse.
100
+ * @template T - Expected response body type.
101
+ * @param req - Request URL or RequestInterface object.
102
+ * @param body - Optional request body data.
103
+ * @param signal - Optional abort signal.
104
+ * @returns Promise resolving to the HTTP response.
124
105
  */
125
106
  options<T = unknown>(req: RequestInterface | string, body?: RequestBodyData, signal?: AbortSignal): Promise<HttpResponse<T>>;
126
107
  /**
127
- * @ru Выполняет HEAD-запрос.
128
- * @en Performs a HEAD request.
129
- * @param req - Request URL or configuration object.
130
- * @param signal - Optional AbortSignal to cancel the request.
131
- * @returns Promise resolving to an HttpResponse with null body.
108
+ * @ru Выполняет HEAD-запрос (без тела ответа).
109
+ * @en Performs a HEAD request (no response body).
110
+ * @param req - Request URL or RequestInterface object.
111
+ * @param signal - Optional abort signal.
112
+ * @returns Promise resolving to the HTTP response with null body.
132
113
  */
133
114
  head(req: RequestInterface | string, signal?: AbortSignal): Promise<HttpResponse<null>>;
134
115
  /**
135
- * @ru Создаёт новый экземпляр HyperCore путём расширения текущей конфигурации.
136
- * @en Creates a new HyperCore instance by extending the current configuration.
137
- * @param options - Partial configuration overrides.
138
- * @returns New HyperCore instance.
116
+ * @ru Инициирует потоковый GET-запрос. Тело ответа возвращается как ReadableStream.
117
+ * @en Initiates a streaming GET request. Response body is returned as a ReadableStream.
118
+ * @param req - Request URL or RequestInterface object.
119
+ * @param signal - Optional abort signal.
120
+ * @returns Promise resolving to the stream response.
121
+ */
122
+ stream(req: RequestInterface | string, signal?: AbortSignal): Promise<StreamResponse<unknown>>;
123
+ /**
124
+ * @ru Инициирует потоковый POST-запрос с телом. Тело ответа возвращается как ReadableStream.
125
+ * @en Initiates a streaming POST request with a body. Response body is returned as a ReadableStream.
126
+ * @template T - Expected response body type.
127
+ * @param req - Request URL or RequestInterface object.
128
+ * @param body - Request body data.
129
+ * @param signal - Optional abort signal.
130
+ * @returns Promise resolving to the stream response.
131
+ */
132
+ postStream<T = unknown>(req: RequestInterface | string, body?: RequestBodyData, signal?: AbortSignal): Promise<StreamResponse<T>>;
133
+ /**
134
+ * @ru Создаёт новый экземпляр клиента, объединяя текущую конфигурацию с переданными опциями.
135
+ * @en Creates a new client instance by merging the current configuration with provided options.
136
+ * @param options - Partial configuration options to extend.
137
+ * @returns A new HyperCore instance.
139
138
  */
140
139
  extend(options: Partial<HttpClientOptions>): HyperCore;
141
140
  /**
142
- * @ru Алиас для {@link extend}. Создаёт новый экземпляр с переопределёнными опциями.
143
- * @en Alias for {@link extend}. Creates a new instance with overridden options.
144
- * @param options - Partial configuration overrides.
145
- * @returns New HyperCore instance.
141
+ * @ru Создаёт полностью новый экземпляр клиента на основе переданных опций.
142
+ * @en Creates a completely new client instance based on provided options.
143
+ * @param options - Partial configuration options for the new instance.
144
+ * @returns A new HyperCore instance.
146
145
  */
147
146
  create(options: Partial<HttpClientOptions>): HyperCore;
148
147
  /**
149
- * @ru Завершает работу клиента: закрывает транспортные соединения.
150
- * @en Shuts down the client: closes transport connections.
151
- * @param graceful - If true, attempts graceful shutdown (waiting for pending requests).
148
+ * @ru Завершает работу клиента и освобождает ресурсы (соединения, пулы).
149
+ * @en Shuts down the client and releases resources (connections, pools).
150
+ * @param graceful - If true, waits for active requests to complete before closing.
152
151
  * @returns Promise that resolves when shutdown is complete.
153
152
  */
154
153
  destroy(graceful?: boolean): Promise<void>;
155
154
  /**
156
- * @ru Выполняет запрос и возвращает распарсенный JSON-ответ.
157
- * @en Performs a request and returns parsed JSON response.
158
- * @param req - Request URL or configuration object.
159
- * @param signal - Optional AbortSignal to cancel the request.
160
- * @returns Promise resolving to the parsed JSON value.
161
- * @throws If response body cannot be parsed as JSON.
155
+ * @ru Выполняет GET-запрос и возвращает распарсенное JSON-тело ответа.
156
+ * @en Performs a GET request and returns the parsed JSON response body.
157
+ * @template T - Expected type of the parsed JSON.
158
+ * @param req - Request URL or RequestInterface object.
159
+ * @param signal - Optional abort signal.
160
+ * @returns Promise resolving to the parsed JSON data.
162
161
  */
163
162
  json<T = unknown>(req: RequestInterface | string, signal?: AbortSignal): Promise<T>;
164
163
  /**
165
- * @ru Выполняет запрос и возвращает ответ в виде текста.
166
- * @en Performs a request and returns response as text.
167
- * @param req - Request URL or configuration object.
168
- * @param signal - Optional AbortSignal to cancel the request.
169
- * @returns Promise resolving to the response body as string.
170
- * @throws If response body cannot be read as text.
164
+ * @ru Выполняет GET-запрос и возвращает тело ответа как текст.
165
+ * @en Performs a GET request and returns the response body as text.
166
+ * @param req - Request URL or RequestInterface object.
167
+ * @param signal - Optional abort signal.
168
+ * @returns Promise resolving to the response text.
171
169
  */
172
170
  text(req: RequestInterface | string, signal?: AbortSignal): Promise<string>;
173
171
  /**
174
- * @ru Выполняет запрос и полностью потребляет тело ответа (без обработки).
175
- * @en Performs a request and fully consumes the response body (no processing).
176
- * @param req - Request URL or configuration object.
177
- * @param signal - Optional AbortSignal to cancel the request.
178
- * @returns Promise that resolves when response body is drained.
172
+ * @ru Выполняет GET-запрос и немедленно отбрасывает тело ответа для освобождения ресурсов.
173
+ * @en Performs a GET request and immediately discards the response body to free resources.
174
+ * @param req - Request URL or RequestInterface object.
175
+ * @param signal - Optional abort signal.
176
+ * @returns Promise that resolves when the stream is drained.
179
177
  */
180
178
  dump(req: RequestInterface | string, signal?: AbortSignal): Promise<void>;
181
179
  /**
182
- * @ru Выполняет пайплайн обработки ответа (мутаторы и сайд-эффекты).
183
- * @en Executes response processing pipeline (mutators and side effects).
184
- * @param response - Response object (HttpResponse or StreamResponse).
185
- * @param req - Original internal request.
186
- */
187
- private runResponsePipeline;
188
- /**
189
- * @ru Обрабатывает ошибки, возникшие при выполнении запроса, с учётом пайплайна ошибок.
190
- * @en Handles errors occurring during request execution, considering the error pipeline.
191
- * @param error - The caught error.
192
- * @param req - Internal request that caused the error.
193
- * @returns If recovered, returns a response; otherwise throws the error.
194
- * @throws The original error if no plugin recovers it.
180
+ * @ru Обрабатывает ошибку диспетчеризации через конвейер плагинов обработки ошибок.
181
+ * @en Handles dispatch errors through the error handling plugin pipeline.
182
+ * @template T - Expected response body type.
183
+ * @param error - The error that occurred.
184
+ * @param req - The original internal request.
185
+ * @returns Promise resolving to a recovered HTTP response, or throws if unrecoverable.
195
186
  */
196
187
  private handleDispatchError;
197
188
  /**
198
- * @ru Применяет декомпрессию к телу ответа в зависимости от заголовка Content-Encoding.
199
- * @en Applies decompression to the response body based on the Content-Encoding header.
200
- * @param rawResponse - Raw transport response object (mutated in place).
189
+ * @ru Создаёт или переиспользует объект InternalRequest из пула, заполняя его поля.
190
+ * @en Creates or reuses an InternalRequest object from the pool, populating its fields.
191
+ * @param method - HTTP method (GET, POST, etc.).
192
+ * @param req - Request URL or RequestInterface object.
193
+ * @param body - Optional request body data.
194
+ * @param signal - Optional abort signal.
195
+ * @param responseType - Optional response type hint ('stream').
196
+ * @returns The populated internal request object.
201
197
  */
202
- private applyDecompression;
198
+ private acquireReq;
203
199
  /**
204
- * @ru Строит внутренний объект запроса на основе пользовательских параметров.
205
- * @en Builds an internal request object from user parameters.
206
- * @param method - HTTP method.
207
- * @param req - Request URL or configuration object.
208
- * @param body - Request body (optional).
209
- * @param signal - AbortSignal (optional).
210
- * @returns Fully constructed InternalRequest.
211
- * @throws If URL is undefined or invalid.
200
+ * @ru Возвращает объект запроса в пул для переиспользования, очищая ссылки для GC.
201
+ * @en Returns the request object to the pool for reuse, clearing references for GC.
202
+ * @param req - The internal request object to recycle.
212
203
  */
213
- private buildInternalRequest;
204
+ private recycleRequest;
214
205
  /**
215
- * @ru Создаёт объект запроса, сохраняя прототип исходного объекта (если есть).
216
- * @en Creates a request object preserving the prototype of the source object (if any).
217
- * @param source - Original request object (may have a custom prototype).
218
- * @param overrides - Properties to override or add.
219
- * @returns New object with merged properties and inherited prototype.
206
+ * @ru Разрешает и кэширует URL, нормализуя его через URL API при необходимости.
207
+ * @en Resolves and caches the URL, normalizing it via the URL API when necessary.
208
+ * @param url - The raw URL string.
209
+ * @returns The resolved and cached URL string.
220
210
  */
221
- private createInternalRequestObject;
211
+ private resolveUrl;
222
212
  /**
223
- * @ru Добавляет параметры запроса к URL-объекту.
224
- * @en Appends query parameters to a URL object.
225
- * @param url - URL object to mutate.
226
- * @param query - Record of query parameters (supports arrays).
213
+ * @ru Добавляет query-параметры к объекту URL, поддерживая массивы значений.
214
+ * @en Appends query parameters to the URL object, supporting arrays of values.
215
+ * @param url - The URL object to modify.
216
+ * @param query - Record of query parameter key-value pairs.
227
217
  */
228
218
  private appendQueryParams;
229
219
  /**
230
- * @ru Упрощённый метод для текстовых/JSON-запросов, определяющий метод из объекта запроса.
231
- * @en Shortcut method for text/JSON requests, determining method from the request object.
232
- * @param req - Request URL or configuration object.
233
- * @param signal - Optional AbortSignal.
234
- * @returns Promise resolving to HttpResponse.
220
+ * @ru Выполняет быстрый запрос с автоматическим определением HTTP-метода.
221
+ * @en Performs a shortcut request with automatic HTTP method detection.
222
+ * @param req - Request URL or RequestInterface object.
223
+ * @param signal - Optional abort signal.
224
+ * @returns Promise resolving to the HTTP response.
235
225
  */
236
- private dispatchShortcut;
226
+ private shortcut;
237
227
  }
238
228
  //# sourceMappingURL=HyperCore.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HyperCore.d.ts","sourceRoot":"","sources":["../../src/Core/HyperCore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,iBAAiB,EAEjB,WAAW,EACX,eAAe,EACf,YAAY,EAEZ,gBAAgB,EAChB,cAAc,EACd,eAAe,EAEhB,MAAM,iBAAiB,CAAC;AAwCzB;;;;GAIG;AACH,qBAAa,SAAU,YAAW,UAAU;IAC1C;;;OAGG;IACI,MAAM,EAAE,iBAAiB,CAAC;IAEjC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAmB;IACpD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAoC;IACnE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgB;IAC1C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqB;IAE/C;;;;;OAKG;gBAED,MAAM,GAAE,iBAAiC,EACzC,SAAS,CAAC,EAAE,cAAc;IAoB5B;;;OAGG;IACH,OAAO,KAAK,SAAS,GAEpB;IAEY,gBAAgB,IAAI,OAAO,CAAC,MAAM,CAAC;IAKhD;;;;OAI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