mancha 0.24.0 → 0.24.2

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 (78) hide show
  1. package/README.md +26 -7
  2. package/dist/browser.d.ts +451 -2
  3. package/dist/browser.js +32 -1
  4. package/dist/cli.js +3 -0
  5. package/dist/cli.js.map +1 -1
  6. package/dist/css_gen_utils.d.ts +8 -915
  7. package/dist/css_gen_utils.js +382 -641
  8. package/dist/css_gen_utils.js.map +1 -1
  9. package/dist/mancha.js +25 -36
  10. package/dist/plugins.js +11 -1
  11. package/dist/plugins.js.map +1 -1
  12. package/dist/store.d.ts +8 -1
  13. package/dist/store.js +10 -3
  14. package/dist/store.js.map +1 -1
  15. package/dist/trusted_attributes.d.ts +0 -3
  16. package/dist/trusted_attributes.js +1 -3
  17. package/dist/trusted_attributes.js.map +1 -1
  18. package/docs/01_syntax.md +2 -0
  19. package/docs/03_reactivity.md +20 -3
  20. package/docs/05_css.md +270 -275
  21. package/docs/06_ssr.md +3 -2
  22. package/docs/07_typescript.md +5 -5
  23. package/docs/10_security.md +204 -0
  24. package/package.json +20 -7
  25. package/.biomeignore +0 -3
  26. package/.github/workflows/ci.yml +0 -109
  27. package/.vscode/extensions.json +0 -3
  28. package/.vscode/launch.json +0 -34
  29. package/biome.json +0 -46
  30. package/dist/browser.js.map +0 -1
  31. package/dist/expressions/ast.test.d.ts +0 -1
  32. package/dist/expressions/ast.test.js +0 -147
  33. package/dist/expressions/ast.test.js.map +0 -1
  34. package/dist/expressions/ast_factory.test.d.ts +0 -1
  35. package/dist/expressions/ast_factory.test.js +0 -94
  36. package/dist/expressions/ast_factory.test.js.map +0 -1
  37. package/dist/expressions/constants.test.d.ts +0 -1
  38. package/dist/expressions/constants.test.js +0 -84
  39. package/dist/expressions/constants.test.js.map +0 -1
  40. package/dist/expressions/eval.test.d.ts +0 -1
  41. package/dist/expressions/eval.test.js +0 -215
  42. package/dist/expressions/eval.test.js.map +0 -1
  43. package/dist/expressions/expressions.test.d.ts +0 -6
  44. package/dist/expressions/expressions.test.js +0 -7
  45. package/dist/expressions/expressions.test.js.map +0 -1
  46. package/dist/expressions/parser.test.d.ts +0 -1
  47. package/dist/expressions/parser.test.js +0 -174
  48. package/dist/expressions/parser.test.js.map +0 -1
  49. package/dist/expressions/tokenizer.test.d.ts +0 -1
  50. package/dist/expressions/tokenizer.test.js +0 -124
  51. package/dist/expressions/tokenizer.test.js.map +0 -1
  52. package/dist/interfaces-C8heJ6BZ.d.ts +0 -452
  53. package/dist/mancha.js.map +0 -1
  54. package/dist/renderer-B4AORGUN.js +0 -43
  55. package/dist/safe_browser.d.ts +0 -16
  56. package/dist/safe_browser.js +0 -1
  57. package/dist/safe_browser.js.map +0 -1
  58. package/dist/test_types/api.d.ts +0 -11
  59. package/dist/test_types/api.js +0 -3
  60. package/dist/test_types/api.js.map +0 -1
  61. package/dist/test_types/nested/child.d.ts +0 -12
  62. package/dist/test_types/nested/child.js +0 -2
  63. package/dist/test_types/nested/child.js.map +0 -1
  64. package/dist/test_types/product.d.ts +0 -11
  65. package/dist/test_types/product.js +0 -3
  66. package/dist/test_types/product.js.map +0 -1
  67. package/dist/test_types/user.d.ts +0 -10
  68. package/dist/test_types/user.js +0 -3
  69. package/dist/test_types/user.js.map +0 -1
  70. package/dist/test_utils.d.ts +0 -20
  71. package/dist/test_utils.js +0 -94
  72. package/dist/test_utils.js.map +0 -1
  73. package/global.d.ts +0 -4
  74. package/gulpfile.ts +0 -47
  75. package/scripts/generate-css-docs.ts +0 -622
  76. package/tsconfig.json +0 -37
  77. package/tsdown.config.ts +0 -32
  78. package/tsec_exemptions.json +0 -9
@@ -1,452 +0,0 @@
1
- //#region src/store.d.ts
2
- /**
3
- * Internal store properties that are always present. These are managed by the framework
4
- * and should not be set directly by users.
5
- */
6
- type InternalStoreState = {
7
- /** Reference to the parent store in a hierarchy. */
8
- $parent?: SignalStore;
9
- /** Reference to the root renderer instance. */
10
- $rootRenderer?: SignalStore;
11
- /** Reference to the root DOM node. */
12
- $rootNode?: Node;
13
- } & {
14
- [key: `$$${string}`]: string | null;
15
- };
16
- /**
17
- * Base type for user-defined store state. Uses `any` intentionally to allow flexible
18
- * user-defined state types without requiring explicit index signatures.
19
- */
20
- type StoreState = Record<string, any>;
21
- /** Type for expression evaluation function. */
22
- type EvalFunction = (thisArg: SignalStoreProxy, args: Record<string, unknown>) => unknown;
23
- /** Type for observer entries that include the store context for proper binding. */
24
- type ObserverEntry = {
25
- observer: Observer<unknown>;
26
- store: SignalStore;
27
- computedKey?: string;
28
- };
29
- /**
30
- * Internal proxy type used within the store implementation. Uses `any` for dynamic property access.
31
- */
32
- type SignalStoreProxy = SignalStore & InternalStoreState & {
33
- [key: string]: any;
34
- };
35
- /**
36
- * The reactive context type exposed to effects and computed functions.
37
- * Includes the store's typed state T, internal state, and an index signature for dynamic access.
38
- */
39
- type ReactiveContext<T extends StoreState = StoreState> = SignalStore<T> & InternalStoreState & T & Record<string, unknown>;
40
- type Observer<T> = (this: SignalStoreProxy) => T;
41
- type KeyValueHandler = (this: SignalStoreProxy, key: string, value: unknown) => void;
42
- /** Symbol used to identify computed value markers. */
43
-
44
- /** Function type for computed value definitions. Receives reactive context as `$` parameter. */
45
- type ComputedFn<T extends StoreState, R> = (this: ReactiveContext<T>, $: ReactiveContext<T>) => R;
46
- declare class SignalStore<T extends StoreState = StoreState> {
47
- protected readonly evalkeys: string[];
48
- protected readonly expressionCache: Map<string, EvalFunction>;
49
- protected readonly observers: Map<string, Set<ObserverEntry>>;
50
- protected readonly keyHandlers: Map<RegExp, Set<KeyValueHandler>>;
51
- readonly _store: Map<string, unknown>;
52
- _lock: Promise<void>;
53
- /** Keys with a scheduled observer run. */
54
- private readonly _pending;
55
- /** Keys whose observers are running right now. */
56
- private readonly _executing;
57
- /** Keys written while their own observers were running, to notify afterwards. */
58
- private readonly _dirty;
59
- /**
60
- * Stores created from this one, disposed along with it. A subrenderer is only reachable
61
- * through the store that created it and the node it renders, so without this nothing ever
62
- * disposes a nested `:for` row or a `:render` subrenderer.
63
- */
64
- protected readonly _children: Set<SignalStore<StoreState>>;
65
- /** Per-key deep-mutation subscribers, kept stable so they can be unsubscribed later. */
66
- private readonly _mutationCallbacks;
67
- /** Set by dispose(). Observers registered by a disposed store must no longer run. */
68
- protected _disposed: boolean;
69
- /**
70
- * Tracks nested computed evaluation depth. When > 0, we're inside a computed
71
- * function and writes to reactive properties should trigger a warning.
72
- */
73
- private _computedDepth;
74
- constructor(data?: T);
75
- private wrapObject;
76
- watch<T>(key: string, observer: Observer<T>): void;
77
- addKeyHandler(pattern: RegExp, handler: KeyValueHandler): void;
78
- /**
79
- * Tags all observer entries matching the given observer function with a computed key.
80
- * Called after effect runs to mark which observers belong to which computed.
81
- */
82
- private tagObserversForComputed;
83
- /**
84
- * Synchronously marks all computeds that depend on this key as dirty.
85
- * Uses the computedKey field on observer entries for O(1) key lookup.
86
- * Cascades through computed chains (if A depends on B, and B is marked dirty,
87
- * then A is also marked dirty).
88
- */
89
- private markDependentComputedsDirty;
90
- /**
91
- * Invokes `entries` and returns their pending tails. Stays synchronous from end to end:
92
- * the caller relies on nothing being able to interleave until it returns.
93
- */
94
- private runObservers;
95
- notify(key: string, debounceMillis?: number): Promise<void>;
96
- get<T>(key: string, observer?: Observer<T>): unknown;
97
- private setupComputed;
98
- /**
99
- * Returns this store's deep-mutation subscriber for `key`. The same key always yields the
100
- * same function, so subscriptions can be matched and removed. Created on demand, so a key
101
- * that never holds an object never retains a closure.
102
- */
103
- private mutationCallback;
104
- /**
105
- * Sets a value in the store.
106
- * @param key - The key to set.
107
- * @param value - The value to set (can be a computed marker).
108
- * @param local - If true, sets directly on this store bypassing ancestor lookup.
109
- * Use for creating local scope variables that shadow ancestors.
110
- */
111
- set(key: string, value: unknown, local?: boolean): Promise<void>;
112
- del(key: string): Promise<void>;
113
- /**
114
- * Releases this store and every store created from it, recording them in `disposed` for the
115
- * single ancestor pass that follows. Observers registered on ancestors are deliberately left
116
- * to the caller: every store here shares this store's ancestors, so removing them once for
117
- * the whole subtree replaces a scan of every ancestor once per descendant.
118
- */
119
- private disposeSubtree;
120
- /**
121
- * Disposes this store by clearing all observers.
122
- * Call this when the store is no longer needed to prevent memory leaks.
123
- * Also removes any observers this store registered on ancestor stores, disposes the stores
124
- * created from this one, and stops listening to deep mutations of the values it holds.
125
- */
126
- dispose(): void;
127
- keys(): string[];
128
- /**
129
- * Checks if a key exists in THIS store only (not ancestors).
130
- * Use `get(key) !== null` to check if a key exists anywhere in the chain.
131
- */
132
- has(key: string): boolean;
133
- /**
134
- * Returns observer statistics for performance reporting.
135
- */
136
- getObserverStats(): {
137
- totalKeys: number;
138
- totalObservers: number;
139
- byKey: Record<string, number>;
140
- };
141
- effect<R>(observer: (this: ReactiveContext<T>) => R, _meta?: EffectMeta): R;
142
- /**
143
- * Creates a computed property that automatically updates when its dependencies change.
144
- * The function is evaluated in a reactive effect, and the result is stored. When any
145
- * reactive property accessed within the function changes, it re-evaluates and updates.
146
- *
147
- * **Important:** This method returns a marker object at runtime, but is typed as
148
- * returning `R` to enable ergonomic property assignment without type casts. The return
149
- * value must be assigned to a store property (via `set()` or `$.prop =`) - do not use
150
- * it directly as a value.
151
- *
152
- * @example
153
- * // Using function() to access reactive `this`:
154
- * store.set('double', store.$computed(function() { return this.count * 2 }));
155
- *
156
- * // Using arrow function with $ parameter (for templates):
157
- * store.set('double', store.$computed(($) => $.count * 2));
158
- *
159
- * // Direct property assignment (ergonomic typing):
160
- * store.$.doubled = store.$computed(($) => $.count * 2);
161
- */
162
- $computed<R>(fn: ComputedFn<T, R>): R;
163
- private proxify;
164
- get $(): SignalStore<T> & InternalStoreState & T;
165
- /**
166
- * Creates an evaluation function for the provided expression.
167
- * @param expr The expression to be evaluated.
168
- * @returns The evaluation function.
169
- */
170
- private makeEvalFunction;
171
- /**
172
- * Retrieves or creates a cached expression function for the provided expression.
173
- * @param expr - The expression to retrieve or create a cached function for.
174
- * @returns The cached expression function.
175
- */
176
- private cachedExpressionFunction;
177
- eval(expr: string, args?: Record<string, unknown>): unknown;
178
- /**
179
- * Executes an async function and returns a reactive state object that tracks the result.
180
- *
181
- * @param fn - The async function to execute.
182
- * @param options - Optional arguments to pass to the function.
183
- * @returns A reactive state object with $pending, $result, and $error properties.
184
- *
185
- * @example
186
- * // In :data attribute - executes on mount
187
- * :data="{ users: $resolve(api.listUsers) }"
188
- *
189
- * // With options
190
- * :data="{ user: $resolve(api.getUser, { path: { id: userId } }) }"
191
- *
192
- * // In :on:click - executes on click
193
- * :on:click="result = $resolve(api.deleteUser, { path: { id } })"
194
- */
195
- $resolve<T, O = unknown>(fn: (options?: O) => Promise<T>, options?: O): {
196
- $pending: boolean;
197
- $result: T | null;
198
- $error: Error | null;
199
- };
200
- }
201
- //#endregion
202
- //#region src/renderer.d.ts
203
- /**
204
- * Represents an abstract class for rendering and manipulating HTML content.
205
- * Extends the `ReactiveProxyStore` class.
206
- *
207
- * @template T - The type of the store state. Defaults to `StoreState`.
208
- */
209
- declare abstract class IRenderer<T extends StoreState = StoreState> extends SignalStore<T> {
210
- abstract readonly impl: string;
211
- private _debugLevel;
212
- protected readonly dirpath: string;
213
- /** Performance data collected during rendering. Reset on each mount(). */
214
- private _perfData;
215
- /** Debug level ordering for comparison. */
216
- private static readonly DEBUG_LEVELS;
217
- readonly _skipNodes: Set<Node>;
218
- readonly _customElements: Map<string, Node>;
219
- /**
220
- * Queue for retrying failed element.value assignments.
221
- *
222
- * Some DOM elements (notably <select>) silently fail when setting .value if
223
- * the required child elements don't exist yet. For example, setting
224
- * select.value = "banana" does nothing if no <option value="banana"> exists.
225
- *
226
- * This happens when :bind on a parent element runs before :for on child
227
- * elements creates those children (due to BFS traversal order).
228
- *
229
- * The fix: after setting .value, check if it actually worked. If not, queue
230
- * a retry callback. These callbacks are executed at the end of renderNode()
231
- * after all child elements have been created.
232
- */
233
- readonly _pendingValueRetries: Array<() => void>;
234
- abstract parseHTML(content: string, params?: ParserParams): Document | DocumentFragment;
235
- abstract serializeHTML(root: DocumentFragment | Node): string;
236
- abstract createElement(tag: string, owner?: Document | null): Element;
237
- abstract createComment(content: string, owner?: Document | null): Node;
238
- abstract textContent(node: Node, tag: string): void;
239
- /** Hides an element without touching its application-owned styles. */
240
- cloakElement(elem: Element): void;
241
- /** Reveals a cloaked element by removing only Mancha's private marker. */
242
- uncloakElement(elem: Element): void;
243
- /**
244
- * Sets the debug level for the current instance.
245
- *
246
- * @param flag - Boolean for backwards compat (true -> 'lifecycle') or a DebugLevel.
247
- * @returns The current instance of the class.
248
- */
249
- debug(flag: boolean | DebugLevel): this;
250
- /**
251
- * Returns whether debugging is enabled (any level except 'off').
252
- */
253
- get debugging(): boolean;
254
- /**
255
- * Checks if the current debug level is at least the specified level.
256
- */
257
- private shouldLog;
258
- /**
259
- * Clears accumulated performance data. Called automatically at the start of `mount()`.
260
- *
261
- * Use this to reset performance tracking before measuring a specific user flow.
262
- * After clearing, only effects and lifecycle events from subsequent operations
263
- * will be included in the next `getPerformanceReport()` call.
264
- *
265
- * @example
266
- * ```js
267
- * // Setup phase
268
- * $.debug('lifecycle');
269
- * await $.mount(document.body);
270
- *
271
- * // Clear to start fresh measurement
272
- * $.clearPerformanceReport();
273
- *
274
- * // Perform user flow to measure
275
- * $.items = generateLargeList();
276
- *
277
- * // Get report for just this flow
278
- * const report = $.getPerformanceReport();
279
- * ```
280
- */
281
- clearPerformanceReport(): void;
282
- /**
283
- * Generates a DOM path for an element (e.g., "html>body>div>ul>li:nth-child(2)").
284
- */
285
- private getNodePath;
286
- /**
287
- * Builds an effect identifier from metadata.
288
- */
289
- buildObserverId(meta?: EffectMeta): string;
290
- /**
291
- * Records an effect execution for performance tracking.
292
- */
293
- recordObserverExecution(meta: EffectMeta | undefined, duration: number): void;
294
- /**
295
- * Returns a structured performance report.
296
- */
297
- getPerformanceReport(): PerformanceReport;
298
- /**
299
- * Override effect() to add performance tracking.
300
- * Wraps the observer so re-executions via notify() are also tracked.
301
- */
302
- effect<T>(observer: () => T, meta?: EffectMeta): T;
303
- /**
304
- * Fetches the remote file at the specified path and returns its content as a string.
305
- * @param fpath - The path of the remote file to fetch.
306
- * @param params - Optional parameters for the fetch operation.
307
- * @returns A promise that resolves to the content of the remote file as a string.
308
- */
309
- fetchRemote(fpath: string, params?: RenderParams): Promise<string>;
310
- /**
311
- * Fetches a local path and returns its content as a string.
312
- *
313
- * @param fpath - The file path of the resource.
314
- * @param params - Optional render parameters.
315
- * @returns A promise that resolves to the fetched resource as a string.
316
- */
317
- fetchLocal(fpath: string, params?: RenderParams): Promise<string>;
318
- /**
319
- * Preprocesses a string content with optional rendering and parsing parameters.
320
- *
321
- * @param content - The string content to preprocess.
322
- * @param params - Optional rendering and parsing parameters.
323
- * @returns A promise that resolves to a DocumentFragment representing the preprocessed content.
324
- */
325
- preprocessString(content: string, params?: RenderParams & ParserParams): Promise<Document | DocumentFragment>;
326
- /**
327
- * Preprocesses a remote file by fetching its content and applying preprocessing steps.
328
- * @param fpath - The path to the remote file.
329
- * @param params - Optional parameters for rendering and parsing.
330
- * @returns A Promise that resolves to a DocumentFragment representing the preprocessed content.
331
- */
332
- preprocessRemote(fpath: string, params?: RenderParams & ParserParams): Promise<Document | DocumentFragment>;
333
- /**
334
- * Preprocesses a local file by fetching its content and applying preprocessing steps.
335
- * @param fpath - The path to the local file.
336
- * @param params - Optional parameters for rendering and parsing.
337
- * @returns A promise that resolves to the preprocessed document fragment.
338
- */
339
- preprocessLocal(fpath: string, params?: RenderParams & ParserParams): Promise<Document | DocumentFragment>;
340
- /**
341
- * Creates a subrenderer from the current renderer instance.
342
- * @returns A new instance of the renderer with the same state as the original.
343
- */
344
- subrenderer(): IRenderer;
345
- /**
346
- * Logs the provided arguments if verbose debugging is enabled.
347
- * @param args - The arguments to be logged.
348
- */
349
- log(...args: unknown[]): void;
350
- /**
351
- * Preprocesses a node by applying all the registered preprocessing plugins.
352
- *
353
- * @template T - The type of the input node.
354
- * @param {T} root - The root node to preprocess.
355
- * @param {RenderParams} [params] - Optional parameters for preprocessing.
356
- * @returns {Promise<T>} - A promise that resolves to the preprocessed node.
357
- */
358
- preprocessNode<T extends Document | DocumentFragment | Node>(root: T, params?: RenderParams): Promise<T>;
359
- /**
360
- * Renders the node and applies all the registered rendering plugins.
361
- *
362
- * @template T - The type of the root node (Document, DocumentFragment, or Node).
363
- * @param {T} root - The root node to render.
364
- * @param {RenderParams} [params] - Optional parameters for rendering.
365
- * @returns {Promise<T>} - A promise that resolves to the fully rendered root node.
366
- */
367
- renderNode<T extends Document | DocumentFragment | Node>(root: T, params?: RenderParams): Promise<T>;
368
- /**
369
- * Mounts the Mancha application to a root element in the DOM.
370
- *
371
- * @param root - The root element to mount the application to.
372
- * @param params - Optional parameters for rendering the application.
373
- * @returns A promise that resolves when the mounting process is complete.
374
- */
375
- mount(root: Document | DocumentFragment | Node, params?: RenderParams): Promise<void>;
376
- }
377
- //#endregion
378
- //#region src/interfaces.d.ts
379
- interface ParserParams {
380
- /** Whether the file parsed is a root document, or a document fragment. */
381
- rootDocument?: boolean;
382
- /** Encoding to use when processing local files. */
383
- encoding?: "ascii" | "utf8";
384
- }
385
- /** The RendererParams interface defines the parameters that can be passed to the renderer. */
386
- interface RenderParams {
387
- /** The current directory of the file being rendered. */
388
- dirpath?: string;
389
- /** Maximum level of recursion allowed when resolving includes. */
390
- maxdepth?: number;
391
- /** Cache policy used when resolving remote paths. */
392
- cache?: RequestCache | null;
393
- /** Whether the current node is the root used in Mancha.moun(...). */
394
- rootNode?: Node;
395
- }
396
- type RendererPlugin = (this: IRenderer, node: ChildNode, params?: RenderParams) => void | Promise<void>;
397
- /** Debug level for controlling performance tracking and logging verbosity. */
398
- type DebugLevel = "off" | "lifecycle" | "effects" | "verbose";
399
- /** Metadata for identifying effects in performance tracking. */
400
- type EffectMeta = {
401
- /** The directive that created this effect (e.g., 'class', 'bind', 'for'). */
402
- directive: string;
403
- /** The DOM element associated with this effect, if any. */
404
- element?: Element;
405
- /** The expression being evaluated by this effect. */
406
- expression?: string;
407
- /** Direct identifier for effects without a DOM element (e.g., computed property key). */
408
- id?: string;
409
- };
410
- /** Statistics for a tracked effect. */
411
- type EffectStats = {
412
- /** Effect identifier (e.g., "bind:my-input:user.name"). */
413
- id: string;
414
- /** Number of times this effect has executed. */
415
- executionCount: number;
416
- /** Total execution time in milliseconds. */
417
- totalTime: number;
418
- /** Average execution time per invocation in milliseconds. */
419
- avgTime: number;
420
- };
421
- /** Structured performance report returned by getPerformanceReport(). */
422
- type PerformanceReport = {
423
- /** Timing data for lifecycle methods. */
424
- lifecycle: {
425
- mountTime?: number;
426
- preprocessTime?: number;
427
- renderTime?: number;
428
- };
429
- /** Effect execution statistics. */
430
- effects: {
431
- /** Total number of unique effects tracked. */
432
- total: number;
433
- /** Aggregate stats grouped by directive type. */
434
- byDirective: Record<string, {
435
- count: number;
436
- totalTime: number;
437
- }>;
438
- /** Top 10 slowest effects by total time. */
439
- slowest: EffectStats[];
440
- };
441
- /** Observer registration statistics. */
442
- observers: {
443
- /** Number of keys with registered observers. */
444
- totalKeys: number;
445
- /** Total number of observer registrations. */
446
- totalObservers: number;
447
- /** Observer count per key. */
448
- byKey: Record<string, number>;
449
- };
450
- };
451
- //#endregion
452
- export { StoreState as a, IRenderer as i, RenderParams as n, RendererPlugin as r, ParserParams as t };
@@ -1 +0,0 @@
1
- {"version":3,"file":"mancha.js","sourceRoot":"","sources":["../src/mancha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,UAAU,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAElE,gDAAgD;AAChD,MAAM,aAAa,GAAG,UAAU,CAAC,QAAQ,EAAE,aAAa,CAAC;AAEzD,qEAAqE;AACrE,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;AAChC,0EAA0E;AAC1E,QAAQ,CAAC,UAAU,GAAG,UAAU,CAAC;AACjC,UAAU,CAAC,MAAM,GAAG,QAAmE,CAAC;AAExF,6FAA6F;AAC7F,IAAI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