dhti-cli 0.7.1 → 1.0.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.
- package/README.md +86 -110
- package/dist/commands/compose.d.ts +4 -0
- package/dist/commands/compose.js +119 -0
- package/dist/commands/conch.d.ts +1 -4
- package/dist/commands/conch.js +155 -156
- package/dist/commands/elixir.d.ts +4 -0
- package/dist/commands/elixir.js +246 -5
- package/dist/resources/docker-compose-master.yml +3 -1
- package/dist/resources/spa/README.md +3 -0
- package/dist/resources/spa/config-schema.ts +53 -0
- package/dist/resources/spa/glycemic.component.tsx +86 -0
- package/dist/resources/spa/glycemic.scss +44 -0
- package/dist/resources/spa/hooks/useDhti.ts +69 -0
- package/dist/resources/spa/hooks/usePatient.ts +61 -0
- package/dist/resources/spa/index.ts +17 -0
- package/dist/resources/spa/models/card.ts +80 -0
- package/dist/resources/spa/models/request.ts +42 -0
- package/dist/resources/spa/routes.json +17 -0
- package/oclif.manifest.json +82 -42
- package/package.json +3 -1
- package/dist/resources/spa/Dockerfile +0 -16
- package/dist/resources/spa/def/importmap.json +0 -39
- package/dist/resources/spa/def/routes.registry.json +0 -1599
- package/dist/resources/spa/def/spa-assemble-config.json +0 -40
package/dist/commands/conch.js
CHANGED
|
@@ -1,204 +1,203 @@
|
|
|
1
1
|
import { Args, Command, Flags } from '@oclif/core';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
|
-
import { exec } from 'node:child_process';
|
|
3
|
+
import { exec, spawn } from 'node:child_process';
|
|
4
4
|
import fs from 'node:fs';
|
|
5
5
|
import os from 'node:os';
|
|
6
6
|
import path from 'node:path';
|
|
7
|
-
import {
|
|
7
|
+
import { promisify } from 'node:util';
|
|
8
|
+
const execAsync = promisify(exec);
|
|
8
9
|
export default class Conch extends Command {
|
|
9
10
|
static args = {
|
|
10
|
-
op: Args.string({ description: 'Operation to perform (install,
|
|
11
|
+
op: Args.string({ description: 'Operation to perform (init, install, or start)' }),
|
|
11
12
|
};
|
|
12
|
-
static description = '
|
|
13
|
-
static examples = [
|
|
13
|
+
static description = 'Initialize, install, or start OpenMRS frontend development';
|
|
14
|
+
static examples = [
|
|
15
|
+
'<%= config.bin %> <%= command.id %> install -n my-app -w ~/projects',
|
|
16
|
+
'<%= config.bin %> <%= command.id %> init -n my-app -w ~/projects',
|
|
17
|
+
'<%= config.bin %> <%= command.id %> start -n my-app -w ~/projects',
|
|
18
|
+
];
|
|
14
19
|
static flags = {
|
|
15
|
-
branch: Flags.string({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
description: 'Name of the container to copy the conch to while in dev mode',
|
|
20
|
+
branch: Flags.string({
|
|
21
|
+
char: 'b',
|
|
22
|
+
default: 'develop',
|
|
23
|
+
description: 'Branch to install from (for install operation)',
|
|
20
24
|
}),
|
|
21
|
-
dev: Flags.string({ char: 'd', default: 'none', description: 'Dev folder to install' }),
|
|
22
25
|
'dry-run': Flags.boolean({
|
|
23
26
|
default: false,
|
|
24
27
|
description: 'Show what changes would be made without actually making them',
|
|
25
28
|
}),
|
|
26
|
-
git: Flags.string({
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
git: Flags.string({
|
|
30
|
+
char: 'g',
|
|
31
|
+
default: 'dermatologist/openmrs-esm-dhti-template',
|
|
32
|
+
description: 'GitHub repository to install (for install operation)',
|
|
33
|
+
}),
|
|
34
|
+
name: Flags.string({ char: 'n', description: 'Name of the conch' }),
|
|
35
|
+
sources: Flags.string({
|
|
36
|
+
char: 's',
|
|
37
|
+
description: 'Additional sources to include when starting (e.g., packages/esm-chatbot-agent)',
|
|
31
38
|
}),
|
|
32
|
-
name: Flags.string({ char: 'n', description: 'Name of the elixir' }),
|
|
33
|
-
repoVersion: Flags.string({ char: 'v', default: '1.0.0', description: 'Version of the conch' }),
|
|
34
39
|
workdir: Flags.string({
|
|
35
40
|
char: 'w',
|
|
36
41
|
default: `${os.homedir()}/dhti`,
|
|
37
|
-
description: 'Working directory
|
|
42
|
+
description: 'Working directory for the conch',
|
|
38
43
|
}),
|
|
39
44
|
};
|
|
40
45
|
async run() {
|
|
41
46
|
const { args, flags } = await this.parse(Conch);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
if (args.op === 'dev') {
|
|
54
|
-
const buildCommand = `cd ${flags.dev} && yarn build && docker cp dist/. ${flags.container}:/usr/share/nginx/html/${flags.name}-${flags.repoVersion}`;
|
|
55
|
-
const restartCommand = `docker restart ${flags.container}`;
|
|
47
|
+
if (args.op === 'init') {
|
|
48
|
+
// Validate required flags
|
|
49
|
+
if (!flags.workdir) {
|
|
50
|
+
console.error(chalk.red('Error: workdir flag is required for init operation'));
|
|
51
|
+
this.exit(1);
|
|
52
|
+
}
|
|
53
|
+
if (!flags.name) {
|
|
54
|
+
console.error(chalk.red('Error: name flag is required for init operation'));
|
|
55
|
+
this.exit(1);
|
|
56
|
+
}
|
|
57
|
+
const targetDir = path.join(flags.workdir, 'openmrs-esm-dhti');
|
|
56
58
|
if (flags['dry-run']) {
|
|
57
|
-
console.log(chalk.yellow('[DRY RUN] Would execute
|
|
58
|
-
console.log(chalk.cyan(` ${
|
|
59
|
-
console.log(chalk.cyan(` ${
|
|
59
|
+
console.log(chalk.yellow('[DRY RUN] Would execute init operation:'));
|
|
60
|
+
console.log(chalk.cyan(` npx degit dermatologist/openmrs-esm-dhti ${targetDir}`));
|
|
61
|
+
console.log(chalk.cyan(` Copy ${targetDir}/packages/esm-starter-app to ${targetDir}/packages/${flags.name}`));
|
|
60
62
|
return;
|
|
61
63
|
}
|
|
62
|
-
console.log(buildCommand);
|
|
63
64
|
try {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
console.
|
|
79
|
-
}
|
|
65
|
+
// Run npx degit to clone the dhti template
|
|
66
|
+
console.log(chalk.blue(`Initializing DHTI template in ${targetDir}...`));
|
|
67
|
+
const degitCommand = `npx degit dermatologist/openmrs-esm-dhti ${targetDir}`;
|
|
68
|
+
await execAsync(degitCommand);
|
|
69
|
+
console.log(chalk.green('✓ DHTI template cloned successfully'));
|
|
70
|
+
// Copy packages/esm-starter-app subdirectory to packages/<name>
|
|
71
|
+
const starterAppSource = path.join(targetDir, 'packages', 'esm-starter-app');
|
|
72
|
+
const targetPackageDir = path.join(targetDir, 'packages', flags.name);
|
|
73
|
+
if (fs.existsSync(starterAppSource)) {
|
|
74
|
+
console.log(chalk.blue(`Copying esm-starter-app to packages/${flags.name}...`));
|
|
75
|
+
fs.cpSync(starterAppSource, targetPackageDir, { recursive: true });
|
|
76
|
+
console.log(chalk.green(`✓ esm-starter-app copied to packages/${flags.name}`));
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
console.log(chalk.yellow(`Warning: esm-starter-app not found at ${starterAppSource}`));
|
|
80
|
+
}
|
|
81
|
+
console.log(chalk.green(`\n✓ Initialization complete! Your workspace is ready at ${targetDir}`));
|
|
82
|
+
console.log(chalk.blue(`\nTo start development, run:`));
|
|
83
|
+
const startCmd = `dhti-cli conch start -w ${flags.workdir} -n ${flags.name}`;
|
|
84
|
+
console.log(chalk.cyan(` ${startCmd}`));
|
|
80
85
|
}
|
|
81
86
|
catch (error) {
|
|
82
|
-
console.
|
|
87
|
+
console.error(chalk.red('Error during initialization:'), error);
|
|
88
|
+
this.exit(1);
|
|
83
89
|
}
|
|
84
90
|
return;
|
|
85
91
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
if (flags
|
|
89
|
-
console.
|
|
92
|
+
if (args.op === 'start') {
|
|
93
|
+
// Validate required flags
|
|
94
|
+
if (!flags.workdir) {
|
|
95
|
+
console.error(chalk.red('Error: workdir flag is required for start operation'));
|
|
96
|
+
this.exit(1);
|
|
90
97
|
}
|
|
91
|
-
|
|
92
|
-
|
|
98
|
+
if (!flags.name) {
|
|
99
|
+
console.error(chalk.red('Error: name flag is required for start operation'));
|
|
100
|
+
this.exit(1);
|
|
93
101
|
}
|
|
94
|
-
|
|
95
|
-
if (flags['dry-run']) {
|
|
96
|
-
console.log(chalk.yellow(`[DRY RUN] Would copy resources from ${RESOURCES_DIR}/spa to ${flags.workdir}/conch`));
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
fs.cpSync(path.join(RESOURCES_DIR, 'spa'), `${flags.workdir}/conch`, { recursive: true });
|
|
100
|
-
}
|
|
101
|
-
// Rewrite files
|
|
102
|
-
const rewrite = () => {
|
|
103
|
-
flags.name = flags.name ?? 'openmrs-esm-genai';
|
|
102
|
+
const targetDir = path.join(flags.workdir, flags.name);
|
|
104
103
|
if (flags['dry-run']) {
|
|
105
|
-
console.log(chalk.yellow('[DRY RUN] Would
|
|
106
|
-
console.log(chalk.cyan(`
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
if (args.op === 'uninstall') {
|
|
111
|
-
console.log(chalk.green(` Remove import: ${flags.name.replace('openmrs-', '@openmrs/')}`));
|
|
112
|
-
}
|
|
113
|
-
console.log(chalk.cyan(` - ${flags.workdir}/conch/def/spa-assemble-config.json`));
|
|
114
|
-
if (args.op === 'install') {
|
|
115
|
-
console.log(chalk.green(` Add module: ${flags.name.replace('openmrs-', '@openmrs/')} = ${flags.repoVersion}`));
|
|
116
|
-
}
|
|
117
|
-
if (args.op === 'uninstall') {
|
|
118
|
-
console.log(chalk.green(` Remove module: ${flags.name.replace('openmrs-', '@openmrs/')}`));
|
|
119
|
-
}
|
|
120
|
-
console.log(chalk.cyan(` - ${flags.workdir}/conch/Dockerfile`));
|
|
121
|
-
console.log(chalk.green(` Update with conch=${flags.name}, version=${flags.repoVersion}, image=${flags.image}`));
|
|
122
|
-
console.log(chalk.cyan(` - ${flags.workdir}/conch/def/routes.registry.json`));
|
|
123
|
-
if (args.op === 'install') {
|
|
124
|
-
console.log(chalk.green(` Add routes for ${flags.name.replace('openmrs-', '@openmrs/')}`));
|
|
125
|
-
}
|
|
126
|
-
if (args.op === 'uninstall') {
|
|
127
|
-
console.log(chalk.green(` Remove routes for ${flags.name.replace('openmrs-', '@openmrs/')}`));
|
|
104
|
+
console.log(chalk.yellow('[DRY RUN] Would execute start operation:'));
|
|
105
|
+
console.log(chalk.cyan(` cd ${targetDir}`));
|
|
106
|
+
let dryRunCommand = 'corepack enable && yarn install && yarn start';
|
|
107
|
+
if (flags.sources) {
|
|
108
|
+
dryRunCommand += ` --sources '${flags.sources}'`;
|
|
128
109
|
}
|
|
110
|
+
console.log(chalk.cyan(` ${dryRunCommand}`));
|
|
129
111
|
return;
|
|
130
112
|
}
|
|
131
|
-
//
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
delete importmap.imports[flags.name.replace('openmrs-', '@openmrs/')];
|
|
137
|
-
fs.writeFileSync(`${flags.workdir}/conch/def/importmap.json`, JSON.stringify(importmap, null, 2));
|
|
138
|
-
// Read and process spa-assemble-config.json
|
|
139
|
-
const spaAssembleConfig = JSON.parse(fs.readFileSync(`${flags.workdir}/conch/def/spa-assemble-config.json`, 'utf8'));
|
|
140
|
-
if (args.op === 'install')
|
|
141
|
-
spaAssembleConfig.frontendModules[flags.name.replace('openmrs-', '@openmrs/')] = `${flags.repoVersion}`;
|
|
142
|
-
if (args.op === 'uninstall')
|
|
143
|
-
delete spaAssembleConfig.frontendModules[flags.name.replace('openmrs-', '@openmrs/')];
|
|
144
|
-
fs.writeFileSync(`${flags.workdir}/conch/def/spa-assemble-config.json`, JSON.stringify(spaAssembleConfig, null, 2));
|
|
145
|
-
// Read and process Dockerfile
|
|
146
|
-
let dockerfile = fs.readFileSync(`${flags.workdir}/conch/Dockerfile`, 'utf8');
|
|
147
|
-
dockerfile = dockerfile
|
|
148
|
-
.replaceAll('conch', flags.name)
|
|
149
|
-
.replaceAll('version', flags.repoVersion)
|
|
150
|
-
.replaceAll('server-image', flags.image);
|
|
151
|
-
fs.writeFileSync(`${flags.workdir}/conch/Dockerfile`, dockerfile);
|
|
152
|
-
// Read routes.json
|
|
153
|
-
const routes = JSON.parse(fs.readFileSync(`${flags.workdir}/conch/${flags.name}/src/routes.json`, 'utf8'));
|
|
154
|
-
// Add to routes.registry.json
|
|
155
|
-
const registry = JSON.parse(fs.readFileSync(`${flags.workdir}/conch/def/routes.registry.json`, 'utf8'));
|
|
156
|
-
if (args.op === 'install')
|
|
157
|
-
registry[flags.name.replace('openmrs-', '@openmrs/')] = routes;
|
|
158
|
-
if (args.op === 'uninstall')
|
|
159
|
-
delete registry[flags.name.replace('openmrs-', '@openmrs/')];
|
|
160
|
-
fs.writeFileSync(`${flags.workdir}/conch/def/routes.registry.json`, JSON.stringify(registry, null, 2));
|
|
161
|
-
};
|
|
162
|
-
if (flags.git !== 'none') {
|
|
163
|
-
const cloneCommand = `git clone ${flags.git} ${flags.workdir}/conch/${flags.name}`;
|
|
164
|
-
const checkoutCommand = `cd ${flags.workdir}/conch/${flags.name} && git checkout ${flags.branch}`;
|
|
165
|
-
if (flags['dry-run']) {
|
|
166
|
-
console.log(chalk.yellow('[DRY RUN] Would execute git commands:'));
|
|
167
|
-
console.log(chalk.cyan(` ${cloneCommand}`));
|
|
168
|
-
console.log(chalk.cyan(` ${checkoutCommand}`));
|
|
169
|
-
rewrite();
|
|
170
|
-
return;
|
|
113
|
+
// Check if directory exists (not in dry-run mode)
|
|
114
|
+
if (!fs.existsSync(targetDir)) {
|
|
115
|
+
console.error(chalk.red(`Error: Directory does not exist: ${targetDir}`));
|
|
116
|
+
console.log(chalk.yellow(`Run 'dhti-cli conch init -n ${flags.name} -w ${flags.workdir}' first`));
|
|
117
|
+
this.exit(1);
|
|
171
118
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
119
|
+
try {
|
|
120
|
+
console.log(chalk.blue(`Starting OpenMRS development server in ${targetDir}...`));
|
|
121
|
+
console.log(chalk.yellow('Press Ctrl-C to stop\n'));
|
|
122
|
+
// Build the start command with sources flag if provided
|
|
123
|
+
let startCommand = 'corepack enable && yarn install && yarn start';
|
|
124
|
+
if (flags.sources) {
|
|
125
|
+
startCommand += ` --sources '${flags.sources}'`;
|
|
177
126
|
}
|
|
178
|
-
//
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
127
|
+
// Spawn corepack enable && yarn install && yarn start with stdio inheritance to show output and allow Ctrl-C
|
|
128
|
+
const child = spawn(startCommand, {
|
|
129
|
+
cwd: targetDir,
|
|
130
|
+
shell: true,
|
|
131
|
+
stdio: 'inherit',
|
|
132
|
+
});
|
|
133
|
+
// Handle process exit
|
|
134
|
+
child.on('exit', (code) => {
|
|
135
|
+
if (code === 0) {
|
|
136
|
+
console.log(chalk.green('\n✓ Development server stopped'));
|
|
183
137
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
138
|
+
else if (code !== null) {
|
|
139
|
+
console.log(chalk.yellow(`\nDevelopment server exited with code ${code}`));
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
// Handle errors
|
|
143
|
+
child.on('error', (error) => {
|
|
144
|
+
console.error(chalk.red('Error starting development server:'), error);
|
|
145
|
+
this.exit(1);
|
|
187
146
|
});
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
147
|
+
// Wait for the child process to complete
|
|
148
|
+
await new Promise((resolve) => {
|
|
149
|
+
child.on('close', () => resolve());
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
catch (error) {
|
|
153
|
+
console.error(chalk.red('Error during start:'), error);
|
|
154
|
+
this.exit(1);
|
|
155
|
+
}
|
|
156
|
+
return;
|
|
191
157
|
}
|
|
192
|
-
|
|
193
|
-
|
|
158
|
+
if (args.op === 'install') {
|
|
159
|
+
// Validate required flags
|
|
160
|
+
if (!flags.workdir) {
|
|
161
|
+
console.error(chalk.red('Error: workdir flag is required for install operation'));
|
|
162
|
+
this.exit(1);
|
|
163
|
+
}
|
|
164
|
+
if (!flags.name) {
|
|
165
|
+
console.error(chalk.red('Error: name flag is required for install operation'));
|
|
166
|
+
this.exit(1);
|
|
167
|
+
}
|
|
168
|
+
// Warn if sources flag is used with install (not applicable)
|
|
169
|
+
if (flags.sources) {
|
|
170
|
+
console.warn(chalk.yellow('Warning: --sources flag is not applicable for install operation. It will be ignored.'));
|
|
171
|
+
console.warn(chalk.yellow('Use --sources with the start operation instead.'));
|
|
172
|
+
}
|
|
173
|
+
const targetDir = path.join(flags.workdir, flags.name);
|
|
174
|
+
const degitSource = `${flags.git}#${flags.branch}`;
|
|
194
175
|
if (flags['dry-run']) {
|
|
195
|
-
console.log(chalk.yellow(
|
|
196
|
-
|
|
176
|
+
console.log(chalk.yellow('[DRY RUN] Would execute install operation:'));
|
|
177
|
+
console.log(chalk.cyan(` npx degit ${degitSource} ${targetDir}`));
|
|
178
|
+
return;
|
|
197
179
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
180
|
+
try {
|
|
181
|
+
console.log(chalk.blue(`Installing from ${degitSource} to ${targetDir}...`));
|
|
182
|
+
const degitCommand = `npx degit ${degitSource} ${targetDir}`;
|
|
183
|
+
await execAsync(degitCommand);
|
|
184
|
+
console.log(chalk.green('✓ Repository cloned successfully'));
|
|
185
|
+
console.log(chalk.green(`\n✓ Installation complete! Your app is ready at ${targetDir}`));
|
|
186
|
+
console.log(chalk.blue(`\nTo start development, run:`));
|
|
187
|
+
let startCmd = `dhti-cli conch start -n ${flags.name} -w ${flags.workdir}`;
|
|
188
|
+
if (flags.sources) {
|
|
189
|
+
startCmd += ` -s '${flags.sources}'`;
|
|
190
|
+
}
|
|
191
|
+
console.log(chalk.cyan(` ${startCmd}`));
|
|
192
|
+
}
|
|
193
|
+
catch (error) {
|
|
194
|
+
console.error(chalk.red('Error during installation:'), error);
|
|
195
|
+
this.exit(1);
|
|
201
196
|
}
|
|
197
|
+
return;
|
|
202
198
|
}
|
|
199
|
+
// If no valid operation is provided
|
|
200
|
+
console.error(chalk.red('Error: Invalid operation. Use "install", "init", or "start"'));
|
|
201
|
+
this.exit(1);
|
|
203
202
|
}
|
|
204
203
|
}
|
|
@@ -10,10 +10,14 @@ export default class Elixir extends Command {
|
|
|
10
10
|
container: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
11
|
dev: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
12
|
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
13
|
+
elixir: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
fhir: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
15
|
git: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
local: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
17
|
name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
18
|
pypi: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
19
|
repoVersion: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
+
subdirectory: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
21
|
whl: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
22
|
workdir: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
23
|
};
|