@dasl/tile-loader 3.1.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +1463 -36
  2. package/dist/at.d.ts +126 -12
  3. package/dist/at.d.ts.map +1 -1
  4. package/dist/at.js +582 -90
  5. package/dist/at.js.map +1 -1
  6. package/dist/car.d.ts +21 -2
  7. package/dist/car.d.ts.map +1 -1
  8. package/dist/car.js +82 -15
  9. package/dist/car.js.map +1 -1
  10. package/dist/content-scheme.d.ts +17 -3
  11. package/dist/content-scheme.d.ts.map +1 -1
  12. package/dist/content-scheme.js +32 -6
  13. package/dist/content-scheme.js.map +1 -1
  14. package/dist/guard.d.ts +342 -0
  15. package/dist/guard.d.ts.map +1 -0
  16. package/dist/guard.js +1544 -0
  17. package/dist/guard.js.map +1 -0
  18. package/dist/index.d.ts +416 -16
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +999 -74
  21. package/dist/index.js.map +1 -1
  22. package/dist/lib/cid.d.ts +25 -0
  23. package/dist/lib/cid.d.ts.map +1 -0
  24. package/dist/lib/cid.js +65 -0
  25. package/dist/lib/cid.js.map +1 -0
  26. package/dist/lib/defaults.d.ts +8 -0
  27. package/dist/lib/defaults.d.ts.map +1 -0
  28. package/dist/lib/defaults.js +14 -0
  29. package/dist/lib/defaults.js.map +1 -0
  30. package/dist/lib/destinations.d.ts +25 -0
  31. package/dist/lib/destinations.d.ts.map +1 -0
  32. package/dist/lib/destinations.js +94 -0
  33. package/dist/lib/destinations.js.map +1 -0
  34. package/dist/lib/drisl.d.ts +10 -0
  35. package/dist/lib/drisl.d.ts.map +1 -0
  36. package/dist/lib/drisl.js +169 -0
  37. package/dist/lib/drisl.js.map +1 -0
  38. package/dist/lib/errors.d.ts +80 -0
  39. package/dist/lib/errors.d.ts.map +1 -0
  40. package/dist/lib/errors.js +44 -0
  41. package/dist/lib/errors.js.map +1 -0
  42. package/dist/lib/fetching.d.ts +24 -0
  43. package/dist/lib/fetching.d.ts.map +1 -0
  44. package/dist/lib/fetching.js +135 -0
  45. package/dist/lib/fetching.js.map +1 -0
  46. package/dist/lib/limits.d.ts +34 -0
  47. package/dist/lib/limits.d.ts.map +1 -0
  48. package/dist/lib/limits.js +33 -0
  49. package/dist/lib/limits.js.map +1 -0
  50. package/dist/lib/pointer.d.ts +83 -0
  51. package/dist/lib/pointer.d.ts.map +1 -0
  52. package/dist/lib/pointer.js +244 -0
  53. package/dist/lib/pointer.js.map +1 -0
  54. package/dist/lib/tab-order.d.ts +16 -0
  55. package/dist/lib/tab-order.d.ts.map +1 -0
  56. package/dist/lib/tab-order.js +66 -0
  57. package/dist/lib/tab-order.js.map +1 -0
  58. package/dist/link.d.ts +110 -13
  59. package/dist/link.d.ts.map +1 -1
  60. package/dist/link.js +336 -43
  61. package/dist/link.js.map +1 -1
  62. package/dist/memory.d.ts +1 -0
  63. package/dist/memory.d.ts.map +1 -1
  64. package/dist/memory.js +5 -0
  65. package/dist/memory.js.map +1 -1
  66. package/dist/mount.d.ts +54 -0
  67. package/dist/mount.d.ts.map +1 -0
  68. package/dist/mount.js +289 -0
  69. package/dist/mount.js.map +1 -0
  70. package/dist/size.d.ts +43 -2
  71. package/dist/size.d.ts.map +1 -1
  72. package/dist/size.js +296 -15
  73. package/dist/size.js.map +1 -1
  74. package/package.json +13 -3
  75. package/src/at.ts +590 -84
  76. package/src/car.ts +79 -16
  77. package/src/content-scheme.ts +38 -7
  78. package/src/guard.ts +1659 -0
  79. package/src/index.ts +1124 -74
  80. package/src/lib/cid.ts +65 -0
  81. package/src/lib/defaults.ts +12 -0
  82. package/src/lib/destinations.ts +79 -0
  83. package/src/lib/drisl.ts +160 -0
  84. package/src/lib/errors.ts +111 -0
  85. package/src/lib/fetching.ts +138 -0
  86. package/src/lib/limits.ts +61 -0
  87. package/src/lib/pointer.ts +290 -0
  88. package/src/lib/tab-order.ts +66 -0
  89. package/src/link.ts +365 -48
  90. package/src/memory.ts +5 -0
  91. package/src/mount.ts +359 -0
  92. package/src/size.ts +304 -16
@@ -0,0 +1,342 @@
1
+ import type { Tile } from './index.js';
2
+ export interface GuardControl {
3
+ /** Stops guarding. What the tile does from then on is left as it is. */
4
+ stop(): void;
5
+ }
6
+ /** What `guardFocus` gives its host. */
7
+ export interface FocusGuardControl extends GuardControl {
8
+ /**
9
+ * Puts the keyboard in the tile for the host, as the user asked: what a
10
+ * control of the host's own calls, for someone who goes into a tile with
11
+ * the keyboard alone (a frame out of the tab order has no other way in,
12
+ * where the guard has no stop of its own in its place: see `tabOrder`).
13
+ * The page sees no Tab then, and the user did not act in the tile, so
14
+ * focus the host gave the frame with `frame.focus()` would be taken for a
15
+ * script's and given back. Given this way it is the user's, as if they
16
+ * had tabbed in. Call it from that control's own handler: the guard takes
17
+ * the host at its word. From a key, only Chrome lets a page put the
18
+ * keyboard in a frame: Firefox and WebKit leave it where it was, and only
19
+ * a press goes in there. The guard's own stop does not go this way.
20
+ */
21
+ focus(): void;
22
+ }
23
+ /**
24
+ * A guard stopped a tile, because it kept taking the keyboard (`focus`) or
25
+ * the page (`scroll`) from the user. Raised on the tile as a `stopped` event,
26
+ * as the dock's are; the tile is closed, and a host that wants it back
27
+ * renders it again.
28
+ */
29
+ export interface GuardStoppedEvent extends Event {
30
+ reason: 'focus' | 'scroll';
31
+ }
32
+ /** The numbers `guardFocus` goes by. First guesses, all of them. */
33
+ export interface FocusGuardOptions {
34
+ /** How long after a Tab pressed on the page focus arriving in the tile is the user tabbing in, in milliseconds. */
35
+ tabMs?: number;
36
+ /** How long after a key typed into a field of the page focus arriving in the tile cannot be the user's click, in milliseconds. */
37
+ typingMs?: number;
38
+ /** How many times the tile may take the keyboard, within `withinMs`, before that is abuse. */
39
+ grabs?: number;
40
+ /** The time those are counted over, in milliseconds. */
41
+ withinMs?: number;
42
+ /**
43
+ * How long the tile's dock gets to say whether the user acted in the tile,
44
+ * in milliseconds. It answers in a few; what the user types while it has
45
+ * not goes to the tile.
46
+ */
47
+ dockMs?: number;
48
+ /** How often the page is looked at for focus that arrived unannounced, in milliseconds. */
49
+ pollMs?: number;
50
+ /**
51
+ * Called when focus was given back: `script` when the page saw nothing
52
+ * that would make it the user's doing, `dock` when the tile's dock said
53
+ * the user had not acted in the tile.
54
+ */
55
+ onReturn?: (why: 'script' | 'dock') => void;
56
+ /** Called when the tile has taken the keyboard `grabs` times within `withinMs`, with how often it has been given back in all. */
57
+ onAbuse?: (what: 'focus', count: number) => void;
58
+ /** Stop the tile then (the default), or only report it (`false`). */
59
+ stop?: boolean;
60
+ /**
61
+ * Whether the user has picked the tile, for a host that has it wait to be
62
+ * picked (`engage`): focus arriving in a tile that is not picked is never
63
+ * the user's doing.
64
+ */
65
+ engaged?: () => boolean;
66
+ /**
67
+ * What a no of the dock's that is only its best guess does: one where the
68
+ * user did act in the tile or on a page of the dock's, and may have
69
+ * pressed in it (a slow device busy loading another tile, say). By
70
+ * default (`true`) the keyboard is given back, that is not counted against
71
+ * the tile, and a layer of the page's lies over the tile until the user
72
+ * picks it, with a press or Enter or Space on it, which puts the keyboard
73
+ * in the tile as `focus()` does, or until the dock's no is over (what it
74
+ * went by has run out with the keyboard out of the tile), when it lifts on
75
+ * its own. Until then the keyboard coming into the tile is never the
76
+ * user's doing, and is given back and counted. Such a no in the `spareMs`
77
+ * after a layer lifted on its own is counted too, and has a layer as well.
78
+ * `false`: given back and counted, as any other no of the dock's.
79
+ */
80
+ pick?: boolean;
81
+ /**
82
+ * How long after the layer lifted on its own a no of the dock's that is
83
+ * only its best guess is counted all the same, in milliseconds (see
84
+ * `pick`): a tile that can have its dock's nos taken for guesses is spared
85
+ * one giving back for each time the user picks it, and at most one in
86
+ * this time otherwise.
87
+ */
88
+ spareMs?: number;
89
+ /**
90
+ * What the layer says, to those who see it and to those who do not (it is
91
+ * the name of the button it is). Default: "Tap or click to use".
92
+ */
93
+ pickLabel?: string;
94
+ /**
95
+ * Where the frame is in the tab order while the guard runs. `'stop'` (the
96
+ * default): out of it, so that someone tabbing down the page passes over
97
+ * the tile, with a stop of the guard's own in its place, right before the
98
+ * frame (`ENTER_CLASS`): Enter or Space there lets the frame into the tab
99
+ * order for the user's next Tab, which takes them into the tile, and the
100
+ * stop says so (`tabLabel`). It cannot be seen until it has the keyboard,
101
+ * and then lies over the tile, taking no press, and says what it is for
102
+ * (`enterLabel`).
103
+ * `'out'`: out of it, and the way in is the host's own (`focus()`).
104
+ * `'keep'`: as its host made it; a frame in the tab order then has Tab
105
+ * take the user into it. The frame gets back what its host gave it when
106
+ * the guard stops. A tabindex the host gave the frame itself is not a
107
+ * `'keep'`.
108
+ */
109
+ tabOrder?: 'stop' | 'out' | 'keep';
110
+ /**
111
+ * What the stop in the frame's place says (see `tabOrder`), to those who
112
+ * see it and to those who do not. Default: "Use the keyboard in" and the
113
+ * tile's name, or "this tile" for a tile with none.
114
+ */
115
+ enterLabel?: string;
116
+ /**
117
+ * What the stop says once the user has pressed it, while their next Tab
118
+ * takes them into the tile (see `tabOrder`). Default: "Press Tab to go in".
119
+ */
120
+ tabLabel?: string;
121
+ }
122
+ /** The class of the layer `guardFocus` lays over a tile for the user to pick it, besides `ENGAGE_CLASS`. */
123
+ export declare const PICK_CLASS = "tile-pick";
124
+ /** The class of what the layer says, inside it, and of what the stop in the frame's place says. */
125
+ export declare const PICK_LABEL_CLASS = "tile-pick-label";
126
+ /** The class of the stop `guardFocus` puts in the frame's place in the tab order (see `tabOrder`). */
127
+ export declare const ENTER_CLASS = "tile-enter";
128
+ /** `guardFocus`'s numbers where a host gives none. */
129
+ export declare const FOCUS_GUARD: Readonly<Record<'tabMs' | 'typingMs' | 'grabs' | 'withinMs' | 'dockMs' | 'pollMs' | 'spareMs', number>>;
130
+ /**
131
+ * Gives back keyboard focus that a tile's script took, and leaves it with a
132
+ * user who went into the tile.
133
+ *
134
+ * Focus arriving in the frame is the user's doing when they went in by the
135
+ * host's own way in (a control of its own calling `focus()`), tabbed into
136
+ * it (from the guard's stop in the frame's place in the tab order, which
137
+ * lets the frame in for that Tab, or into a frame the host keeps in the tab
138
+ * order: see `tabOrder`), or pressed on it. The page sees
139
+ * the Tab key. It never sees the press: only that a mouse is over the
140
+ * frame, and not even that for a finger. So focus
141
+ * stays in the tile when a Tab was just pressed on the page; otherwise, when
142
+ * a mouse is in the frame (or the user has none, or, on a screen that takes
143
+ * fingers, the guard has seen no pointer yet and the keyboard came straight
144
+ * from the page) and they were not typing in a field of the page a moment
145
+ * ago, the tile's dock is asked, which knows
146
+ * whether the user pressed or typed inside this tile. In every other case,
147
+ * and when the dock says no, focus goes back to what had it when the tile
148
+ * took it: to the page alone when nothing of the page's had it then, and
149
+ * never to something the user had left.
150
+ *
151
+ * While the keyboard is in a frame of the page's, where the page cannot see
152
+ * it move, the guard has the tile's dock watch it come into the tile, and a
153
+ * dock that found it come in with no one acting there says no, at once and
154
+ * for as long as what the user typed into the tile before it was given back
155
+ * can make them seem to have acted there.
156
+ *
157
+ * Where the dock's no is only its best guess (someone did act in the tile,
158
+ * and it may have been the user pressing in it), the keyboard is given back
159
+ * all the same, but that is not counted against the tile: a layer of the
160
+ * page's lies over it until the user picks it, which puts the keyboard in,
161
+ * or until the dock's no is over (see `pick`).
162
+ *
163
+ * A dock that has answered before and now does not is taken to say no: its
164
+ * silence is not to be had by keeping it busy. One that has never answered
165
+ * (an older loading server's) leaves the guard with what the page can see:
166
+ * a mouse resting on the tile, or a finger, cannot be told from a press.
167
+ *
168
+ * Giving it back does not win against a tile that keeps taking it: a tile
169
+ * that does so `grabs` times within `withinMs` is reported (`onAbuse`) and
170
+ * stopped (see `GuardStoppedEvent`), unless told otherwise (`stop: false`).
171
+ */
172
+ export declare function guardFocus(tile: Tile, frame: HTMLIFrameElement, options?: FocusGuardOptions): FocusGuardControl;
173
+ export interface ClickGate {
174
+ /** Whether presses on the page are being ignored right now. */
175
+ readonly closed: boolean;
176
+ /** Has the page ignore presses for `ms` from now (`CLICK_GATE.ms` by default). */
177
+ arm(ms?: number): void;
178
+ /** Has it take them again at once. */
179
+ open(): void;
180
+ }
181
+ /** The numbers `clickGate` goes by where it is given none. First guesses. */
182
+ export declare const CLICK_GATE: Readonly<Record<'ms' | 'travel', number>>;
183
+ /**
184
+ * The page's own controls ignore presses and clicks for a moment after
185
+ * something moved them that neither the page nor, as far as it can see, the
186
+ * user did. One per document: `arm(ms)` starts the moment, a press that is
187
+ * ignored starts it again, and a real movement of the pointer across the
188
+ * page, which is the user aiming afresh at what is there now, ends it.
189
+ *
190
+ * A key is not a press: what the keyboard activates is where the focus is,
191
+ * and nothing that moved the page moved that. An element of the host's that
192
+ * must take presses regardless is marked `data-tile-gate="pass"`.
193
+ */
194
+ export declare function clickGate(doc?: Document, options?: {
195
+ travel?: number;
196
+ }): ClickGate;
197
+ /** How a move of the page was accounted for (see `guardScroll`). */
198
+ export interface ScrollMove {
199
+ /** The page's vertical scroll position before and after. */
200
+ from: number;
201
+ to: number;
202
+ verdict: 'user' | 'own' | 'layout' | 'ambiguous' | 'tile' | 'elsewhere';
203
+ /** Whether the move was taken back. */
204
+ undone: boolean;
205
+ }
206
+ /** The numbers `guardScroll` goes by. First guesses, all of them. */
207
+ export interface ScrollGuardOptions {
208
+ /** How long input that asked for a scroll goes on explaining one, in milliseconds. */
209
+ inputMs?: number;
210
+ /** How long a page may coast on, the way it was going, after a finger let go, in milliseconds. */
211
+ flingMs?: number;
212
+ /** How much further than the input asked a move may go and still be the user's, in pixels. */
213
+ slack?: number;
214
+ /** How many times the tile may pull the page back against the user's own scrolling, within `withinMs`, before that is abuse. */
215
+ pulls?: number;
216
+ /** The time those are counted over, in milliseconds. */
217
+ withinMs?: number;
218
+ /** How long the page's controls take no press after a move that is not accounted for, in milliseconds. */
219
+ gateMs?: number;
220
+ /** A move of more than this many pixels in one go is a jump, */
221
+ jumpPx?: number;
222
+ /** after which they take no press for this long, in milliseconds. */
223
+ jumpGateMs?: number;
224
+ /** Take the tile's moves back (the default), or let them stand and only keep presses off what they moved (`false`). */
225
+ undo?: boolean;
226
+ /** The gate that keeps presses off what moved: the document's own by default, `false` for none. */
227
+ gate?: ClickGate | false;
228
+ /**
229
+ * How the page's own scrolling is known for its own: `'patch'` wraps the
230
+ * calls a page scrolls itself with (`scrollTo`, `scrollBy`, `scroll`,
231
+ * `scrollIntoView`, `focus`) so that each says so first. Without it the
232
+ * page says so itself, with `expect()`.
233
+ */
234
+ own?: 'patch';
235
+ /** Called with every move of the page and how it was accounted for. */
236
+ onMove?: (move: ScrollMove) => void;
237
+ /** Called when the tile has pulled the page back `pulls` times within `withinMs`, with how often it was undone in all. */
238
+ onAbuse?: (what: 'scroll', count: number) => void;
239
+ /** Stop the tile then (the default), or only report it (`false`). */
240
+ stop?: boolean;
241
+ /**
242
+ * Whether the user has picked the tile, for a host that has it wait to be
243
+ * picked (`engage`): a tile that is not picked gets no input, so the user
244
+ * cannot have scrolled the page through it.
245
+ */
246
+ engaged?: () => boolean;
247
+ }
248
+ /** `guardScroll`'s numbers where a host gives none. */
249
+ export declare const SCROLL_GUARD: Readonly<Record<'inputMs' | 'flingMs' | 'slack' | 'pulls' | 'withinMs' | 'gateMs' | 'jumpPx' | 'jumpGateMs', number>>;
250
+ export interface ScrollGuardControl extends GuardControl {
251
+ /** The page is about to scroll itself (a "back to top", a change of route): leave it be for `ms` (1000 by default). */
252
+ expect(ms?: number): void;
253
+ }
254
+ /**
255
+ * Accounts for every move of the page a tile is in, and takes back the
256
+ * tile's own.
257
+ *
258
+ * The page's vertical scroll position is followed, and each move is one of:
259
+ *
260
+ * - `user`: the page saw the input for it (a wheel, a key, a finger, a
261
+ * mouse button held down, a pointer on the scrollbar), and the move goes
262
+ * that way and no further than the input asked: a wheel turned by 100
263
+ * does not explain a jump of 1500.
264
+ * - `own`: the page said it would (`expect()`, or `own: 'patch'`), or it
265
+ * navigated, or the user tabbed on.
266
+ * - `layout`: the document's height changed, by as much as the move or
267
+ * more. It stands. Where the tile's own box changed with it, the gate is
268
+ * armed: the move may be the tile's doing after all.
269
+ * - `ambiguous`: none of those, but the page cannot rule the user out. A
270
+ * mouse was inside the tile and may have been wheeling there, the
271
+ * keyboard is in the tile, or a finger may be on it. The same goes for
272
+ * any other frame of the page's: what the user does in one scrolls the
273
+ * page too, and the page sees none of it. The move stands, and the gate
274
+ * is armed: what slid under the pointer takes no press for a moment
275
+ * (`gateMs`; `jumpGateMs` after a jump), or until the pointer has really
276
+ * moved.
277
+ * - `tile`: none of those, and the tile's frame is at or in the viewport
278
+ * once it is done, which is where its own scrolling leaves it. It is
279
+ * taken back before it is painted. (The gate is armed only where the page
280
+ * could not be put back whole: a move that is undone slid nothing under
281
+ * the pointer.)
282
+ * - `elsewhere`: unexplained, and nowhere near the tile. Left alone (the
283
+ * browser and assistive tools scroll pages too), gate armed.
284
+ *
285
+ * A tile that pulls the page back against the way the user has just
286
+ * scrolled is doing it on purpose: `pulls` of those within `withinMs` are
287
+ * reported (`onAbuse`), and the tile is stopped (see `GuardStoppedEvent`)
288
+ * unless told otherwise (`stop: false`). Where another tile with a guard on
289
+ * it is at the viewport as well, which of them it was cannot be told: the
290
+ * move is taken back all the same, and neither is held to it.
291
+ *
292
+ * The page has to say when it scrolls itself, or let the guard wrap its
293
+ * calls: an unexplained move of the page's own that ends at the tile is
294
+ * taken back like the tile's. Only the document's own scrolling is
295
+ * followed, not that of a box inside it.
296
+ */
297
+ export declare function guardScroll(tile: Tile, frame: HTMLIFrameElement, options?: ScrollGuardOptions): ScrollGuardControl;
298
+ export interface EngageOptions {
299
+ /**
300
+ * The element of the host's that holds the frame, and nothing else: the
301
+ * layer is put in it, over the frame. The frame's parent by default. It
302
+ * has to be there before the frame is put in it, since moving a frame
303
+ * reloads it.
304
+ */
305
+ wrapper?: HTMLElement;
306
+ /** What the layer is called for those who do not see it. Default: "Use this tile". */
307
+ label?: string;
308
+ /** Start with the tile picked, as for one the user has just started themselves. Default: not picked. */
309
+ start?: 'idle' | 'engaged';
310
+ /** Called when the tile is picked (`true`) or let go of (`false`), and why. */
311
+ onChange?: (engaged: boolean, why: 'picked' | 'started' | 'pressed elsewhere' | 'escape' | 'out of view' | 'released') => void;
312
+ }
313
+ export interface EngageControl extends GuardControl {
314
+ /** The layer's element, for a host to style or to say something on. */
315
+ readonly layer: HTMLElement;
316
+ /** Whether the user has picked the tile. */
317
+ readonly engaged: boolean;
318
+ /** Lets go of the tile: the layer is back over it. */
319
+ release(): void;
320
+ }
321
+ /** The class of the layer's element. */
322
+ export declare const ENGAGE_CLASS = "tile-engage";
323
+ /**
324
+ * "Press to use": until the user picks the tile, a layer of the host's lies
325
+ * over it. The tile runs and shows, and gets no input. A wheel or a finger
326
+ * on it scrolls the page, the page sees every pointer that crosses it, and
327
+ * focus arriving in the frame is by definition the tile's own doing. A
328
+ * press on the layer picks the tile (that press is spent on it: nothing can
329
+ * hand an event on to another origin's frame). A press anywhere else on the
330
+ * page, the tile leaving the viewport, or Escape, puts the layer back.
331
+ *
332
+ * Until it is picked the tile is not a stop on the way through the page with
333
+ * Tab either (its frame has `tabindex="-1"` meanwhile): the layer is, after
334
+ * it in its box, and Enter or Space there picks the tile and goes into it.
335
+ * (With the focus guard on as well, the frame stays out of the tab order
336
+ * once the tile is picked, and the guard's stop is the way back in.)
337
+ *
338
+ * The layer paints, though too faintly to see: a block that paints nothing
339
+ * does not take a press over a frame. `stop()` takes it away for good.
340
+ */
341
+ export declare function engage(tile: Tile, frame: HTMLIFrameElement, options?: EngageOptions): EngageControl;
342
+ //# sourceMappingURL=guard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guard.d.ts","sourceRoot":"","sources":["../src/guard.ts"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAiBvC,MAAM,WAAW,YAAY;IAC3B,wEAAwE;IACxE,IAAI,IAAK,IAAI,CAAC;CACf;AAED,wCAAwC;AACxC,MAAM,WAAW,iBAAkB,SAAQ,YAAY;IACrD;;;;;;;;;;;;OAYG;IACH,KAAK,IAAK,I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