@dasl/tile-loader 3.0.0 → 3.2.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.
- package/README.md +841 -26
- package/dist/at.d.ts +126 -12
- package/dist/at.d.ts.map +1 -1
- package/dist/at.js +574 -90
- package/dist/at.js.map +1 -1
- package/dist/car.d.ts +21 -2
- package/dist/car.d.ts.map +1 -1
- package/dist/car.js +78 -15
- package/dist/car.js.map +1 -1
- package/dist/content-scheme.d.ts +17 -3
- package/dist/content-scheme.d.ts.map +1 -1
- package/dist/content-scheme.js +32 -6
- package/dist/content-scheme.js.map +1 -1
- package/dist/guard.d.ts +242 -0
- package/dist/guard.d.ts.map +1 -0
- package/dist/guard.js +956 -0
- package/dist/guard.js.map +1 -0
- package/dist/index.d.ts +297 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +917 -78
- package/dist/index.js.map +1 -1
- package/dist/lib/cid.d.ts +25 -0
- package/dist/lib/cid.d.ts.map +1 -0
- package/dist/lib/cid.js +65 -0
- package/dist/lib/cid.js.map +1 -0
- package/dist/lib/defaults.d.ts +8 -0
- package/dist/lib/defaults.d.ts.map +1 -0
- package/dist/lib/defaults.js +14 -0
- package/dist/lib/defaults.js.map +1 -0
- package/dist/lib/destinations.d.ts +25 -0
- package/dist/lib/destinations.d.ts.map +1 -0
- package/dist/lib/destinations.js +94 -0
- package/dist/lib/destinations.js.map +1 -0
- package/dist/lib/drisl.d.ts +10 -0
- package/dist/lib/drisl.d.ts.map +1 -0
- package/dist/lib/drisl.js +169 -0
- package/dist/lib/drisl.js.map +1 -0
- package/dist/lib/errors.d.ts +80 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +44 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/fetching.d.ts +24 -0
- package/dist/lib/fetching.d.ts.map +1 -0
- package/dist/lib/fetching.js +135 -0
- package/dist/lib/fetching.js.map +1 -0
- package/dist/lib/limits.d.ts +34 -0
- package/dist/lib/limits.d.ts.map +1 -0
- package/dist/lib/limits.js +33 -0
- package/dist/lib/limits.js.map +1 -0
- package/dist/lib/pointer.d.ts +83 -0
- package/dist/lib/pointer.d.ts.map +1 -0
- package/dist/lib/pointer.js +244 -0
- package/dist/lib/pointer.js.map +1 -0
- package/dist/link.d.ts +110 -13
- package/dist/link.d.ts.map +1 -1
- package/dist/link.js +336 -43
- package/dist/link.js.map +1 -1
- package/dist/memory.d.ts +1 -0
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +5 -0
- package/dist/memory.js.map +1 -1
- package/dist/mount.d.ts +54 -0
- package/dist/mount.d.ts.map +1 -0
- package/dist/mount.js +286 -0
- package/dist/mount.js.map +1 -0
- package/dist/size.d.ts +43 -2
- package/dist/size.d.ts.map +1 -1
- package/dist/size.js +296 -15
- package/dist/size.js.map +1 -1
- package/package.json +13 -3
- package/src/at.ts +582 -84
- package/src/car.ts +75 -16
- package/src/content-scheme.ts +38 -7
- package/src/guard.ts +1013 -0
- package/src/index.ts +1011 -80
- package/src/lib/cid.ts +65 -0
- package/src/lib/defaults.ts +12 -0
- package/src/lib/destinations.ts +79 -0
- package/src/lib/drisl.ts +160 -0
- package/src/lib/errors.ts +111 -0
- package/src/lib/fetching.ts +138 -0
- package/src/lib/limits.ts +61 -0
- package/src/lib/pointer.ts +290 -0
- package/src/link.ts +365 -48
- package/src/memory.ts +5 -0
- package/src/mount.ts +356 -0
- package/src/size.ts +304 -16
package/src/mount.ts
ADDED
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
// Tiles in a list: a feed, a thread, a page of posts. Every running tile is a
|
|
2
|
+
// process or two of the browser's, tens of megabytes each, and the loader
|
|
3
|
+
// runs as many as it is asked to. This module is what asks, for a host with
|
|
4
|
+
// more tiles than it should run at once: a tile is mounted when its place in
|
|
5
|
+
// the page has been in view for a moment, closed when it has been out of
|
|
6
|
+
// view for a while, and no more than a few are live at a time.
|
|
7
|
+
//
|
|
8
|
+
// import { tileMounts } from '@dasl/tile-loader/mount';
|
|
9
|
+
// const mounts = tileMounts({ maxLive: 4 });
|
|
10
|
+
// for (const post of posts) {
|
|
11
|
+
// mounts.watch(post.querySelector('.tile'), () => mothership.loadTile(post.dataset.tile));
|
|
12
|
+
// }
|
|
13
|
+
//
|
|
14
|
+
// Each place is an element of the host's: give it the size the tile will
|
|
15
|
+
// have, so that the page does not move when the tile comes and goes. While
|
|
16
|
+
// its tile is live the frame is its last child and it has the attribute
|
|
17
|
+
// `data-tile-live`, for a style that hides what the place showed before (a
|
|
18
|
+
// card, a screenshot).
|
|
19
|
+
//
|
|
20
|
+
// A tile that is put away is closed (Tile.close()): its frame goes, and the
|
|
21
|
+
// origin it ran on is wiped. Shown again, it starts afresh, on another
|
|
22
|
+
// origin. So this is for tiles whose state the host does not mean to keep.
|
|
23
|
+
//
|
|
24
|
+
// Starting a tile is the costly moment (its runtime spends the browser's
|
|
25
|
+
// WebRTC budget first, where there is one), so tiles are also started a few
|
|
26
|
+
// at a time: a tile counts as starting from when it is mounted until it fires
|
|
27
|
+
// `load`, or for `startLimit` at most. The function that loads a tile gets
|
|
28
|
+
// no longer than that either: one that never answers (the server of a tile's
|
|
29
|
+
// author can see to that) does not keep the other tiles from being mounted.
|
|
30
|
+
|
|
31
|
+
import type { Tile } from './index.js';
|
|
32
|
+
|
|
33
|
+
export interface TileMountOptions {
|
|
34
|
+
/** How many tiles may be live, mounted and running, at once. 6 when left out. */
|
|
35
|
+
maxLive?: number;
|
|
36
|
+
/** How many may be starting at once: mounted, and not loaded yet. 3 when left out. */
|
|
37
|
+
maxStarting?: number;
|
|
38
|
+
/** How long a place has to stay in view before its tile is mounted, in milliseconds. 300 when left out. */
|
|
39
|
+
mountAfter?: number;
|
|
40
|
+
/** How long it has to stay out of view before its tile is closed, in milliseconds. 10 seconds when left out; `Infinity` to close a tile only when another needs its room. */
|
|
41
|
+
closeAfter?: number;
|
|
42
|
+
/**
|
|
43
|
+
* How long a tile counts as starting at most, loaded or not, in
|
|
44
|
+
* milliseconds; and how long the function that loads a tile is waited for
|
|
45
|
+
* before its room is given to another. 5 seconds when left out.
|
|
46
|
+
*/
|
|
47
|
+
startLimit?: number;
|
|
48
|
+
/** What a place is in view of, as for an IntersectionObserver: the viewport when left out. */
|
|
49
|
+
root?: Element | Document | null;
|
|
50
|
+
/** A margin around that, as for an IntersectionObserver (`'200px 0px'` mounts a tile a little before it scrolls in). */
|
|
51
|
+
rootMargin?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface TileMountItem {
|
|
55
|
+
/** The tile, or what loads it: called once, the first time its place has been in view long enough. */
|
|
56
|
+
tile: Tile | (() => Tile | false | Promise<Tile | false>);
|
|
57
|
+
/** Makes the tile's frame. `tile.renderContent()` when left out. */
|
|
58
|
+
render?: (tile: Tile) => HTMLIFrameElement;
|
|
59
|
+
/**
|
|
60
|
+
* Called when the tile has been mounted, with its frame: the moment for
|
|
61
|
+
* `tileSize()`, `tileLinks()` and the like. What it returns, if it is a
|
|
62
|
+
* function, is called when the tile is put away, before it is closed.
|
|
63
|
+
*/
|
|
64
|
+
onMount?: (tile: Tile, frame: HTMLIFrameElement) => void | (() => void);
|
|
65
|
+
/** Called when the tile has been closed, with whether its origin was wiped (what `Tile.close()` resolved to). */
|
|
66
|
+
onClose?: (tile: Tile, wiped: boolean) => void;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface TileMounts {
|
|
70
|
+
/**
|
|
71
|
+
* Watches a place in the page: its tile is mounted there when the place
|
|
72
|
+
* has been in view for a moment and there is room, and closed when it has
|
|
73
|
+
* been out of view for a while, or sooner if another tile needs the room.
|
|
74
|
+
* Returns what stops watching it, closing its tile if it is live; that
|
|
75
|
+
* resolves when the tile is closed.
|
|
76
|
+
*/
|
|
77
|
+
watch (place: Element, item: TileMountItem | TileMountItem['tile']): () => Promise<void>;
|
|
78
|
+
/** How many tiles are live now. */
|
|
79
|
+
readonly live: number;
|
|
80
|
+
/** Stops watching every place and closes every live tile. Resolves when they are closed. */
|
|
81
|
+
stop (): Promise<void>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Guesses, all of them, for a host to replace with what suits its pages: see
|
|
85
|
+
// TileMountOptions.
|
|
86
|
+
const MAX_LIVE = 6;
|
|
87
|
+
const MAX_STARTING = 3;
|
|
88
|
+
const MOUNT_AFTER_MS = 300;
|
|
89
|
+
const CLOSE_AFTER_MS = 10000;
|
|
90
|
+
const START_LIMIT_MS = 5000;
|
|
91
|
+
/** The attribute a place has while its tile is live. */
|
|
92
|
+
export const LIVE_ATTRIBUTE = 'data-tile-live';
|
|
93
|
+
|
|
94
|
+
// One place being watched.
|
|
95
|
+
interface Place {
|
|
96
|
+
el: Element;
|
|
97
|
+
item: TileMountItem;
|
|
98
|
+
inView: boolean;
|
|
99
|
+
// When it last came into view or left it: the live tile longest out of
|
|
100
|
+
// view is the first to make room.
|
|
101
|
+
since: number;
|
|
102
|
+
// The wait before its tile is mounted, or before it is closed.
|
|
103
|
+
timer?: ReturnType<typeof setTimeout>;
|
|
104
|
+
// The tile, once it has been loaded: kept for the next time it is shown.
|
|
105
|
+
// And its loading, while that is under way.
|
|
106
|
+
tile?: Tile;
|
|
107
|
+
loading?: Promise<Tile | undefined>;
|
|
108
|
+
// Its frame, while the tile is live; and what ends that.
|
|
109
|
+
frame?: HTMLIFrameElement;
|
|
110
|
+
mounted?: AbortController;
|
|
111
|
+
unmount?: void | (() => void);
|
|
112
|
+
// It has room and is being mounted (its tile may still be loading).
|
|
113
|
+
mounting?: boolean;
|
|
114
|
+
watched: boolean;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** Mounts tiles in their places as these come into view, a bounded number at a time. */
|
|
118
|
+
export function tileMounts (options: TileMountOptions = {}): TileMounts {
|
|
119
|
+
const maxLive = Math.max(1, options.maxLive ?? MAX_LIVE);
|
|
120
|
+
const maxStarting = Math.max(1, options.maxStarting ?? MAX_STARTING);
|
|
121
|
+
const mountAfter = options.mountAfter ?? MOUNT_AFTER_MS;
|
|
122
|
+
const closeAfter = options.closeAfter ?? CLOSE_AFTER_MS;
|
|
123
|
+
const startLimit = options.startLimit ?? START_LIMIT_MS;
|
|
124
|
+
const places = new Map<Element, Place>();
|
|
125
|
+
// The places whose tile is due and waits for room, first come first served.
|
|
126
|
+
const waiting: Place[] = [];
|
|
127
|
+
// Tiles being closed, for stop() to wait on.
|
|
128
|
+
const closing = new Set<Promise<void>>();
|
|
129
|
+
let live = 0;
|
|
130
|
+
let starting = 0;
|
|
131
|
+
|
|
132
|
+
const observer = new IntersectionObserver((entries) => {
|
|
133
|
+
for (const entry of entries) {
|
|
134
|
+
const place = places.get(entry.target);
|
|
135
|
+
if (place) seen(place, entry.isIntersecting);
|
|
136
|
+
}
|
|
137
|
+
}, { root: options.root ?? null, rootMargin: options.rootMargin ?? '0px' });
|
|
138
|
+
|
|
139
|
+
// A place came into view, or left it.
|
|
140
|
+
function seen (place: Place, inView: boolean) {
|
|
141
|
+
if (place.inView === inView) return;
|
|
142
|
+
place.inView = inView;
|
|
143
|
+
place.since = Date.now();
|
|
144
|
+
clearTimeout(place.timer);
|
|
145
|
+
place.timer = undefined;
|
|
146
|
+
if (inView) {
|
|
147
|
+
// Back in view before its tile was closed: it stays. Otherwise the
|
|
148
|
+
// tile is due once the place has been looked at for a moment, not
|
|
149
|
+
// scrolled past.
|
|
150
|
+
if (!place.frame && !place.mounting) place.timer = setTimeout(() => due(place), mountAfter);
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
// Out of view, it no longer waits for room; and a live tile is on notice.
|
|
154
|
+
drop(place);
|
|
155
|
+
if (place.frame && Number.isFinite(closeAfter)) place.timer = setTimeout(() => { void putAway(place); }, closeAfter);
|
|
156
|
+
// A tile out of view is one that can make room for those that wait.
|
|
157
|
+
fill();
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function due (place: Place) {
|
|
161
|
+
place.timer = undefined;
|
|
162
|
+
if (!place.watched || !place.inView || place.frame || place.mounting || waiting.includes(place)) return;
|
|
163
|
+
waiting.push(place);
|
|
164
|
+
fill();
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function drop (place: Place) {
|
|
168
|
+
const at = waiting.indexOf(place);
|
|
169
|
+
if (at >= 0) waiting.splice(at, 1);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// Mounts the tiles that wait, for as long as there is room for them.
|
|
173
|
+
function fill () {
|
|
174
|
+
while (waiting.length && starting < maxStarting) {
|
|
175
|
+
if (live >= maxLive) {
|
|
176
|
+
// Room is made by the live tile that has been out of view longest.
|
|
177
|
+
// None out of view: the ones that wait go on waiting.
|
|
178
|
+
let oldest: Place | undefined;
|
|
179
|
+
for (const p of places.values()) {
|
|
180
|
+
if (p.frame && !p.inView && (!oldest || p.since < oldest.since)) oldest = p;
|
|
181
|
+
}
|
|
182
|
+
if (!oldest) return;
|
|
183
|
+
void putAway(oldest);
|
|
184
|
+
continue;
|
|
185
|
+
}
|
|
186
|
+
void mount(waiting.shift() as Place);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
async function mount (place: Place) {
|
|
191
|
+
// The room is taken before the tile is loaded, which can take a while.
|
|
192
|
+
place.mounting = true;
|
|
193
|
+
live++;
|
|
194
|
+
starting++;
|
|
195
|
+
// It counts as starting until it has loaded, or been put away, or for
|
|
196
|
+
// startLimit; and once it no longer does, another can start.
|
|
197
|
+
let counted = true;
|
|
198
|
+
const started = () => {
|
|
199
|
+
if (!counted) return false;
|
|
200
|
+
counted = false;
|
|
201
|
+
starting--;
|
|
202
|
+
return true;
|
|
203
|
+
};
|
|
204
|
+
const endStart = () => {
|
|
205
|
+
if (started()) fill();
|
|
206
|
+
};
|
|
207
|
+
const giveUp = () => {
|
|
208
|
+
place.mounting = false;
|
|
209
|
+
live--;
|
|
210
|
+
endStart();
|
|
211
|
+
};
|
|
212
|
+
let tile = place.tile;
|
|
213
|
+
if (!tile) {
|
|
214
|
+
// Loading the tile is the host's doing (a fetch from the server of the
|
|
215
|
+
// tile's author, say) and may never end. It has as long as a tile has
|
|
216
|
+
// to start: after that its room is given back to the tiles that wait.
|
|
217
|
+
// If the tile comes after all it is kept, and mounted if its place is
|
|
218
|
+
// still being looked at and there is room.
|
|
219
|
+
let held = true;
|
|
220
|
+
const tooLong = setTimeout(() => {
|
|
221
|
+
held = false;
|
|
222
|
+
giveUp();
|
|
223
|
+
}, startLimit);
|
|
224
|
+
tile = await load(place);
|
|
225
|
+
clearTimeout(tooLong);
|
|
226
|
+
if (!held) {
|
|
227
|
+
if (tile) due(place);
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
if (!tile) return giveUp();
|
|
231
|
+
}
|
|
232
|
+
// Gone from view, or no longer watched, while its tile was loading.
|
|
233
|
+
if (!place.watched || !place.inView) return giveUp();
|
|
234
|
+
let frame: HTMLIFrameElement;
|
|
235
|
+
try {
|
|
236
|
+
frame = (place.item.render ?? ((t: Tile) => t.renderContent()))(tile);
|
|
237
|
+
}
|
|
238
|
+
catch (err) {
|
|
239
|
+
console.error('[tiles] A tile could not be rendered for its place in the page:', err);
|
|
240
|
+
return giveUp();
|
|
241
|
+
}
|
|
242
|
+
const mounted = new AbortController();
|
|
243
|
+
const { signal } = mounted;
|
|
244
|
+
tile.addEventListener('load', endStart, { signal });
|
|
245
|
+
// A tile the dock stopped is gone from its frame: closing it wipes its origin.
|
|
246
|
+
tile.addEventListener('stopped', () => { void putAway(place); }, { signal });
|
|
247
|
+
const limit = setTimeout(endStart, startLimit);
|
|
248
|
+
// Put away: putAway() sees to the ones that wait, when it is done.
|
|
249
|
+
signal.addEventListener('abort', () => {
|
|
250
|
+
clearTimeout(limit);
|
|
251
|
+
started();
|
|
252
|
+
});
|
|
253
|
+
place.mounting = false;
|
|
254
|
+
place.frame = frame;
|
|
255
|
+
place.mounted = mounted;
|
|
256
|
+
place.el.append(frame);
|
|
257
|
+
place.el.setAttribute(LIVE_ATTRIBUTE, '');
|
|
258
|
+
try {
|
|
259
|
+
place.unmount = place.item.onMount?.(tile, frame);
|
|
260
|
+
}
|
|
261
|
+
catch (err) {
|
|
262
|
+
console.error('[tiles] onMount threw:', err);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// Loads a place's tile, with the function the host gave for it. Once: a
|
|
267
|
+
// place that is due again while its tile is still loading waits for the
|
|
268
|
+
// same answer. A tile that could not be loaded is tried again the next
|
|
269
|
+
// time its place is looked at.
|
|
270
|
+
function load (place: Place): Promise<Tile | undefined> {
|
|
271
|
+
place.loading ??= (async () => {
|
|
272
|
+
try {
|
|
273
|
+
const { tile } = place.item;
|
|
274
|
+
place.tile = (typeof tile === 'function' ? await tile() : tile) || undefined;
|
|
275
|
+
}
|
|
276
|
+
catch (err) {
|
|
277
|
+
console.error('[tiles] A tile could not be loaded for its place in the page:', err);
|
|
278
|
+
}
|
|
279
|
+
place.loading = undefined;
|
|
280
|
+
return place.tile;
|
|
281
|
+
})();
|
|
282
|
+
return place.loading;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
// Closes a live tile: its frame goes and its origin is wiped.
|
|
286
|
+
function putAway (place: Place): Promise<void> {
|
|
287
|
+
const { tile, frame } = place;
|
|
288
|
+
if (!tile || !frame) return Promise.resolve();
|
|
289
|
+
clearTimeout(place.timer);
|
|
290
|
+
place.timer = undefined;
|
|
291
|
+
place.frame = undefined;
|
|
292
|
+
live--;
|
|
293
|
+
place.mounted?.abort();
|
|
294
|
+
place.mounted = undefined;
|
|
295
|
+
place.el.removeAttribute(LIVE_ATTRIBUTE);
|
|
296
|
+
try {
|
|
297
|
+
if (typeof place.unmount === 'function') place.unmount();
|
|
298
|
+
}
|
|
299
|
+
catch (err) {
|
|
300
|
+
console.error('[tiles] What onMount returned threw:', err);
|
|
301
|
+
}
|
|
302
|
+
place.unmount = undefined;
|
|
303
|
+
const closed: Promise<void> = tile.close().then(
|
|
304
|
+
(wiped) => { place.item.onClose?.(tile, wiped); },
|
|
305
|
+
(err) => { console.error('[tiles] A tile could not be closed:', err); },
|
|
306
|
+
).finally(() => {
|
|
307
|
+
closing.delete(closed);
|
|
308
|
+
});
|
|
309
|
+
closing.add(closed);
|
|
310
|
+
// A frame that close() left in the document for the runtime to answer
|
|
311
|
+
// from is not shown meanwhile.
|
|
312
|
+
if (frame.isConnected) frame.style.display = 'none';
|
|
313
|
+
// Still in view, as a tile the dock stopped is: it is not mounted again
|
|
314
|
+
// until its place has left view and come back.
|
|
315
|
+
fill();
|
|
316
|
+
return closed;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
function unwatch (place: Place): Promise<void> {
|
|
320
|
+
if (!place.watched) return Promise.resolve();
|
|
321
|
+
place.watched = false;
|
|
322
|
+
observer.unobserve(place.el);
|
|
323
|
+
places.delete(place.el);
|
|
324
|
+
drop(place);
|
|
325
|
+
clearTimeout(place.timer);
|
|
326
|
+
place.timer = undefined;
|
|
327
|
+
return putAway(place);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
return {
|
|
331
|
+
watch (el, item) {
|
|
332
|
+
const earlier = places.get(el);
|
|
333
|
+
if (earlier) void unwatch(earlier);
|
|
334
|
+
const place: Place = {
|
|
335
|
+
el,
|
|
336
|
+
item: typeof item === 'object' && item !== null && 'tile' in item ? item as TileMountItem : { tile: item as TileMountItem['tile'] },
|
|
337
|
+
inView: false,
|
|
338
|
+
since: Date.now(),
|
|
339
|
+
watched: true,
|
|
340
|
+
};
|
|
341
|
+
// A tile that is there already is not waited for.
|
|
342
|
+
if (typeof place.item.tile !== 'function') place.tile = place.item.tile;
|
|
343
|
+
places.set(el, place);
|
|
344
|
+
observer.observe(el);
|
|
345
|
+
return () => unwatch(place);
|
|
346
|
+
},
|
|
347
|
+
get live () {
|
|
348
|
+
return live;
|
|
349
|
+
},
|
|
350
|
+
async stop () {
|
|
351
|
+
observer.disconnect();
|
|
352
|
+
for (const place of [...places.values()]) void unwatch(place);
|
|
353
|
+
await Promise.all([...closing]);
|
|
354
|
+
},
|
|
355
|
+
};
|
|
356
|
+
}
|