@terra-symposium/standards-reporting 0.0.0-stage → 0.3.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 +39 -2
- package/dist/core.d.ts +122 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +69 -0
- package/dist/core.js.map +1 -0
- package/dist/load-testing.d.ts +78 -0
- package/dist/load-testing.d.ts.map +1 -0
- package/dist/load-testing.js +201 -0
- package/dist/load-testing.js.map +1 -0
- package/dist/metadata.d.ts +7 -0
- package/dist/metadata.d.ts.map +1 -0
- package/dist/metadata.js +26 -0
- package/dist/metadata.js.map +1 -0
- package/dist/playwright.d.ts +113 -0
- package/dist/playwright.d.ts.map +1 -0
- package/dist/playwright.js +568 -0
- package/dist/playwright.js.map +1 -0
- package/dist/slideshow.d.ts +23 -0
- package/dist/slideshow.d.ts.map +1 -0
- package/dist/slideshow.js +281 -0
- package/dist/slideshow.js.map +1 -0
- package/dist/spreadsheet.d.ts +14 -0
- package/dist/spreadsheet.d.ts.map +1 -0
- package/dist/spreadsheet.js +286 -0
- package/dist/spreadsheet.js.map +1 -0
- package/dist/viewports.d.ts +117 -0
- package/dist/viewports.d.ts.map +1 -0
- package/dist/viewports.js +156 -0
- package/dist/viewports.js.map +1 -0
- package/package.json +48 -5
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* packages/reporting/src/viewports.ts
|
|
3
|
+
* Responsive viewport selection and Playwright project naming helpers.
|
|
4
|
+
*/
|
|
5
|
+
import type { LoadTestingConfig } from './core.js';
|
|
6
|
+
import type { PlaywrightTestConfig } from '@playwright/test';
|
|
7
|
+
/** The default responsive viewport catalog used by the shared reporter. */
|
|
8
|
+
export declare const VISUAL_VIEWPORTS: {
|
|
9
|
+
readonly mobile: {
|
|
10
|
+
readonly height: 844;
|
|
11
|
+
readonly width: 390;
|
|
12
|
+
};
|
|
13
|
+
readonly sm: {
|
|
14
|
+
readonly height: 800;
|
|
15
|
+
readonly width: 640;
|
|
16
|
+
};
|
|
17
|
+
readonly md: {
|
|
18
|
+
readonly height: 900;
|
|
19
|
+
readonly width: 768;
|
|
20
|
+
};
|
|
21
|
+
readonly lg: {
|
|
22
|
+
readonly height: 768;
|
|
23
|
+
readonly width: 1024;
|
|
24
|
+
};
|
|
25
|
+
readonly xl: {
|
|
26
|
+
readonly height: 720;
|
|
27
|
+
readonly width: 1280;
|
|
28
|
+
};
|
|
29
|
+
readonly '2xl': {
|
|
30
|
+
readonly height: 864;
|
|
31
|
+
readonly width: 1536;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
/** A named viewport catalog supplied by an application or test suite. */
|
|
35
|
+
export type ViewportCatalog = Readonly<Record<string, {
|
|
36
|
+
height: number;
|
|
37
|
+
width: number;
|
|
38
|
+
}>>;
|
|
39
|
+
/** Names available in the default viewport catalog. */
|
|
40
|
+
export type VisualViewportName = keyof typeof VISUAL_VIEWPORTS;
|
|
41
|
+
/** A resolved viewport with the name retained for project and artifact labels. */
|
|
42
|
+
export type VisualViewport = {
|
|
43
|
+
name: string;
|
|
44
|
+
height: number;
|
|
45
|
+
width: number;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Resolves an environment selection or alias list against an application catalog.
|
|
49
|
+
*
|
|
50
|
+
* @param raw - or whitespace-separated viewport names, aliases, or `all`.
|
|
51
|
+
* @param catalog Viewport catalog against which names are validated.
|
|
52
|
+
* @returns The selected viewport definitions in request order.
|
|
53
|
+
* @throws When the selection contains a name absent from the catalog.
|
|
54
|
+
*/
|
|
55
|
+
export declare const resolveVisualViewports: (raw?: string | undefined, catalog?: ViewportCatalog) => VisualViewport[];
|
|
56
|
+
/**
|
|
57
|
+
* Adds a viewport suffix unless the default single-xl project can retain its base name.
|
|
58
|
+
*
|
|
59
|
+
* @param baseName Base Playwright project name.
|
|
60
|
+
* @param viewport Viewport being assigned to the project.
|
|
61
|
+
* @param selected All viewports selected for the run.
|
|
62
|
+
* @returns The project name used for this viewport.
|
|
63
|
+
*/
|
|
64
|
+
export declare const visualProjectName: (baseName: string, viewport: VisualViewport, selected: readonly VisualViewport[]) => string;
|
|
65
|
+
/**
|
|
66
|
+
* Finds the viewport suffix represented by a Playwright project name.
|
|
67
|
+
*
|
|
68
|
+
* @param projectName Playwright project name to inspect.
|
|
69
|
+
* @param catalog Viewport catalog containing recognized suffixes.
|
|
70
|
+
* @returns The matching viewport name, or the default `xl` name.
|
|
71
|
+
*/
|
|
72
|
+
export declare const projectViewportName: (projectName: string, catalog?: ViewportCatalog) => string;
|
|
73
|
+
/**
|
|
74
|
+
* Removes a recognized viewport suffix from a Playwright project name.
|
|
75
|
+
*
|
|
76
|
+
* @param projectName Playwright project name to normalize.
|
|
77
|
+
* @param catalog Viewport catalog containing recognized suffixes.
|
|
78
|
+
* @returns The base project name without its viewport suffix.
|
|
79
|
+
*/
|
|
80
|
+
export declare const baseVisualProjectName: (projectName: string, catalog?: ViewportCatalog) => string;
|
|
81
|
+
/**
|
|
82
|
+
* Formats a viewport's dimensions for result tables and review slides.
|
|
83
|
+
*
|
|
84
|
+
* @param viewport Viewport name to format.
|
|
85
|
+
* @param catalog Viewport catalog containing dimensions.
|
|
86
|
+
* @returns A width-by-height label using the multiplication sign.
|
|
87
|
+
*/
|
|
88
|
+
export declare const viewportSizeLabel: (viewport: string, catalog?: ViewportCatalog) => string;
|
|
89
|
+
/** Options for the shared responsive Playwright configuration helper. */
|
|
90
|
+
export type ResponsivePlaywrightOptions = {
|
|
91
|
+
/** Project names that represent manual, single-run browser captures. */
|
|
92
|
+
singleRunProjects?: readonly string[];
|
|
93
|
+
/** Disposable Playwright output directory, separate from timestamped reports. */
|
|
94
|
+
outputDir?: string;
|
|
95
|
+
/** Parent directory for timestamped reports and their shared images folder. */
|
|
96
|
+
outputRoot?: string;
|
|
97
|
+
/** Optional structured results file to add to the workbook exactly once. */
|
|
98
|
+
supplementalResultsFile?: string;
|
|
99
|
+
/** Optional path to the repository's quality.json; defaults to the current directory. */
|
|
100
|
+
qualityConfigFile?: string;
|
|
101
|
+
/** Explicit timing settings that override matching quality.json values. */
|
|
102
|
+
loadTesting?: LoadTestingConfig;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Expands every regular Playwright project across Terra's shared responsive viewport set.
|
|
106
|
+
*
|
|
107
|
+
* Setup projects (projects referenced as dependencies, setup-named projects, or projects
|
|
108
|
+
* matching a `.setup.*` file) run once. Manual browser capture projects can be listed in
|
|
109
|
+
* `singleRunProjects`. The helper adds full-page automatic screenshots and the shared
|
|
110
|
+
* evidence reporter while preserving any other configured reporters.
|
|
111
|
+
*
|
|
112
|
+
* @param config Existing Playwright configuration.
|
|
113
|
+
* @param opts Shared matrix and reporting options.
|
|
114
|
+
* @returns Configuration with responsive projects, native screenshots, and reporting.
|
|
115
|
+
*/
|
|
116
|
+
export declare const withResponsivePlaywright: <T extends PlaywrightTestConfig>(cfg: T, opts?: ResponsivePlaywrightOptions) => T;
|
|
117
|
+
//# sourceMappingURL=viewports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewports.d.ts","sourceRoot":"","sources":["../src/viewports.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAYH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAM7D,2EAA2E;AAC3E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;CAOnB,CAAC;AAMX,yEAAyE;AACzE,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAAC;AAE1F,uDAAuD;AACvD,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAE/D,kFAAkF;AAClF,MA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|
+
* packages/reporting/src/viewports.ts
|
|
3
|
+
* Responsive viewport selection and Playwright project naming helpers.
|
|
4
|
+
*/
|
|
5
|
+
/*//////////////////////////////////////////////////
|
|
6
|
+
IMPORTS
|
|
7
|
+
//////////////////////////////////////////////////*/
|
|
8
|
+
// API
|
|
9
|
+
import fs from 'node:fs';
|
|
10
|
+
import path from 'node:path';
|
|
11
|
+
import { readLoadTestingConfig } from './load-testing.js';
|
|
12
|
+
/*//////////////////////////////////////////////////
|
|
13
|
+
CONFIG
|
|
14
|
+
//////////////////////////////////////////////////*/
|
|
15
|
+
/** The default responsive viewport catalog used by the shared reporter. */
|
|
16
|
+
export const VISUAL_VIEWPORTS = {
|
|
17
|
+
mobile: { height: 844, width: 390 },
|
|
18
|
+
sm: { height: 800, width: 640 },
|
|
19
|
+
md: { height: 900, width: 768 },
|
|
20
|
+
lg: { height: 768, width: 1024 },
|
|
21
|
+
xl: { height: 720, width: 1280 },
|
|
22
|
+
'2xl': { height: 864, width: 1536 },
|
|
23
|
+
};
|
|
24
|
+
/*//////////////////////////////////////////////////
|
|
25
|
+
HELPERS
|
|
26
|
+
//////////////////////////////////////////////////*/
|
|
27
|
+
/**
|
|
28
|
+
* Resolves an environment selection or alias list against an application catalog.
|
|
29
|
+
*
|
|
30
|
+
* @param raw - or whitespace-separated viewport names, aliases, or `all`.
|
|
31
|
+
* @param catalog Viewport catalog against which names are validated.
|
|
32
|
+
* @returns The selected viewport definitions in request order.
|
|
33
|
+
* @throws When the selection contains a name absent from the catalog.
|
|
34
|
+
*/
|
|
35
|
+
export const resolveVisualViewports = (raw = process.env.PW_VIEWPORTS, catalog = VISUAL_VIEWPORTS) => {
|
|
36
|
+
const names = Object.keys(catalog);
|
|
37
|
+
const selection = raw?.trim().toLowerCase() || 'all';
|
|
38
|
+
const selected = selection === 'all'
|
|
39
|
+
? names
|
|
40
|
+
: selection
|
|
41
|
+
.split(/[\s,]+/)
|
|
42
|
+
.filter(Boolean)
|
|
43
|
+
.map((n) => (names.includes(n) ? n : { computer: 'xl', default: 'xl', desktop: 'xl', phone: 'mobile', tablet: 'md', wide: '2xl' }[n] || n));
|
|
44
|
+
const unique = selected.filter((n, i) => selected.indexOf(n) === i);
|
|
45
|
+
const invalid = unique.filter((n) => !names.includes(n));
|
|
46
|
+
if (invalid.length)
|
|
47
|
+
throw new Error(`Unknown PW_VIEWPORTS value(s): ${invalid.join(', ')}. Use default, all, or ${names.join(', ')}.`);
|
|
48
|
+
return unique.map((n) => ({ name: n, ...catalog[n] }));
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Adds a viewport suffix unless the default single-xl project can retain its base name.
|
|
52
|
+
*
|
|
53
|
+
* @param baseName Base Playwright project name.
|
|
54
|
+
* @param viewport Viewport being assigned to the project.
|
|
55
|
+
* @param selected All viewports selected for the run.
|
|
56
|
+
* @returns The project name used for this viewport.
|
|
57
|
+
*/
|
|
58
|
+
export const visualProjectName = (baseName, viewport, selected) => selected.length === 1 && viewport.name === 'xl' ? baseName : `${baseName}-${viewport.name}`;
|
|
59
|
+
/**
|
|
60
|
+
* Finds the viewport suffix represented by a Playwright project name.
|
|
61
|
+
*
|
|
62
|
+
* @param projectName Playwright project name to inspect.
|
|
63
|
+
* @param catalog Viewport catalog containing recognized suffixes.
|
|
64
|
+
* @returns The matching viewport name, or the default `xl` name.
|
|
65
|
+
*/
|
|
66
|
+
export const projectViewportName = (projectName, catalog = VISUAL_VIEWPORTS) => {
|
|
67
|
+
const names = Object.keys(catalog).sort((a, b) => b.length - a.length);
|
|
68
|
+
const match = names.find((n) => projectName.endsWith(`-${n}`));
|
|
69
|
+
if (match)
|
|
70
|
+
return match;
|
|
71
|
+
return names.includes(projectName) ? projectName : 'xl';
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Removes a recognized viewport suffix from a Playwright project name.
|
|
75
|
+
*
|
|
76
|
+
* @param projectName Playwright project name to normalize.
|
|
77
|
+
* @param catalog Viewport catalog containing recognized suffixes.
|
|
78
|
+
* @returns The base project name without its viewport suffix.
|
|
79
|
+
*/
|
|
80
|
+
export const baseVisualProjectName = (projectName, catalog = VISUAL_VIEWPORTS) => {
|
|
81
|
+
const viewport = projectViewportName(projectName, catalog);
|
|
82
|
+
return projectName.endsWith(`-${viewport}`) ? projectName.slice(0, -(viewport.length + 1)) : projectName;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Formats a viewport's dimensions for result tables and review slides.
|
|
86
|
+
*
|
|
87
|
+
* @param viewport Viewport name to format.
|
|
88
|
+
* @param catalog Viewport catalog containing dimensions.
|
|
89
|
+
* @returns A width-by-height label using the multiplication sign.
|
|
90
|
+
*/
|
|
91
|
+
export const viewportSizeLabel = (viewport, catalog = VISUAL_VIEWPORTS) => {
|
|
92
|
+
const size = catalog[viewport] || catalog.xl || VISUAL_VIEWPORTS.xl;
|
|
93
|
+
return `${size.width}×${size.height}`;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Expands every regular Playwright project across Terra's shared responsive viewport set.
|
|
97
|
+
*
|
|
98
|
+
* Setup projects (projects referenced as dependencies, setup-named projects, or projects
|
|
99
|
+
* matching a `.setup.*` file) run once. Manual browser capture projects can be listed in
|
|
100
|
+
* `singleRunProjects`. The helper adds full-page automatic screenshots and the shared
|
|
101
|
+
* evidence reporter while preserving any other configured reporters.
|
|
102
|
+
*
|
|
103
|
+
* @param config Existing Playwright configuration.
|
|
104
|
+
* @param opts Shared matrix and reporting options.
|
|
105
|
+
* @returns Configuration with responsive projects, native screenshots, and reporting.
|
|
106
|
+
*/
|
|
107
|
+
export const withResponsivePlaywright = (cfg, opts = {}) => {
|
|
108
|
+
const viewports = resolveVisualViewports();
|
|
109
|
+
const loadTesting = readLoadTestingConfig(opts.qualityConfigFile, opts.loadTesting);
|
|
110
|
+
const sharedDistCandidates = [
|
|
111
|
+
path.resolve(process.cwd(), 'node_modules/@terra-symposium/standards-reporting/dist'),
|
|
112
|
+
path.resolve(process.cwd(), 'dist'),
|
|
113
|
+
path.resolve(process.cwd(), 'packages/reporting/dist'),
|
|
114
|
+
];
|
|
115
|
+
const sharedDist = sharedDistCandidates.find((c) => fs.existsSync(c)) || sharedDistCandidates[0];
|
|
116
|
+
const resolvedSharedDist = fs.existsSync(sharedDist) ? fs.realpathSync(sharedDist) : sharedDist;
|
|
117
|
+
const external = [...(cfg.build?.external || []), path.join(resolvedSharedDist, '**')];
|
|
118
|
+
const projects = (cfg.projects || []);
|
|
119
|
+
const dependencyProjects = new Set(projects.flatMap((p) => p.dependencies || []));
|
|
120
|
+
const singleRun = new Set(opts.singleRunProjects || []);
|
|
121
|
+
const isSetup = (project, idx) => {
|
|
122
|
+
const name = project.name || `project-${idx + 1}`;
|
|
123
|
+
const match = Array.isArray(project.testMatch) ? project.testMatch : [project.testMatch];
|
|
124
|
+
const matchText = match.map((e) => (e instanceof RegExp ? e.source : String(e || ''))).join(' ');
|
|
125
|
+
return dependencyProjects.has(name) || /setup/i.test(name) || /\.setup\.[cm]?[jt]sx?/i.test(matchText);
|
|
126
|
+
};
|
|
127
|
+
const responsiveProjects = projects.flatMap((p, i) => {
|
|
128
|
+
const baseName = p.name || `project-${i + 1}`;
|
|
129
|
+
if (isSetup(p, i) || singleRun.has(baseName))
|
|
130
|
+
return [p];
|
|
131
|
+
return viewports.map((v) => ({
|
|
132
|
+
...p,
|
|
133
|
+
name: visualProjectName(baseName, v, viewports),
|
|
134
|
+
use: { ...(p.use || {}), viewport: { width: v.width, height: v.height }, screenshot: { mode: 'on', fullPage: true, caret: 'initial' } },
|
|
135
|
+
}));
|
|
136
|
+
});
|
|
137
|
+
const cfgdReporters = cfg.reporter ? (Array.isArray(cfg.reporter) ? cfg.reporter : [cfg.reporter]) : [];
|
|
138
|
+
const reportingOpts = { outputRoot: opts.outputRoot, supplementalResultsFile: opts.supplementalResultsFile, qualityConfigFile: opts.qualityConfigFile, loadTesting };
|
|
139
|
+
const reporters = [
|
|
140
|
+
...cfgdReporters.filter((r) => {
|
|
141
|
+
const name = Array.isArray(r) ? r[0] : r;
|
|
142
|
+
return !(typeof name === 'string' && name.includes('@terra-symposium/standards-reporting/playwright'));
|
|
143
|
+
}),
|
|
144
|
+
['@terra-symposium/standards-reporting/playwright', reportingOpts],
|
|
145
|
+
];
|
|
146
|
+
return {
|
|
147
|
+
...cfg,
|
|
148
|
+
metadata: { ...(cfg.metadata || {}), terraLoadTestingEnabled: loadTesting.enabled },
|
|
149
|
+
build: { ...(cfg.build || {}), external },
|
|
150
|
+
outputDir: opts.outputDir || 'test-results/playwright-output',
|
|
151
|
+
projects: responsiveProjects,
|
|
152
|
+
reporter: reporters,
|
|
153
|
+
use: { ...(cfg.use || {}), screenshot: { mode: 'on', fullPage: true, caret: 'initial' } },
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
//# sourceMappingURL=viewports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewports.js","sourceRoot":"","sources":["../src/viewports.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;oDAEoD;AAEpD,MAAM;AACN,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAM1D;;oDAEoD;AAEpD,2EAA2E;AAC3E,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,MAAM,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE;IACnC,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE;IAC/B,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE;IAC/B,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE;IAChC,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE;IAChC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reporting for Terra repositories",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/core.js",
|
|
7
|
+
"types": "./dist/core.d.ts",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=18.18"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"registry": "https://registry.npmjs.org",
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/Terra-Symposium/standards.git"
|
|
18
|
+
},
|
|
19
|
+
"exports": {
|
|
20
|
+
".": "./dist/core.js",
|
|
21
|
+
"./core": "./dist/core.js",
|
|
22
|
+
"./playwright": "./dist/playwright.js",
|
|
23
|
+
"./viewports": "./dist/viewports.js",
|
|
24
|
+
"./load-testing": "./dist/load-testing.js",
|
|
25
|
+
"./spreadsheet": "./dist/spreadsheet.js",
|
|
26
|
+
"./slideshow": "./dist/slideshow.js"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsc -p tsconfig.json",
|
|
33
|
+
"test": "node --test test/*.test.mjs"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"exceljs": "^4.4.0",
|
|
37
|
+
"jszip": "^3.10.2",
|
|
38
|
+
"pptxgenjs": "^4.0.1",
|
|
39
|
+
"sharp": "^0.35.5"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@playwright/test": ">=1.52.0 <2"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@playwright/test": "^1.57.0",
|
|
46
|
+
"@types/node": "^22.14.1",
|
|
47
|
+
"typescript": "^5.9.3"
|
|
48
|
+
}
|
|
49
|
+
}
|