matterbridge 1.2.13 → 1.2.15
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/CHANGELOG.md +31 -1
- package/README.md +6 -3
- package/dist/defaultConfigSchema.d.ts +28 -0
- package/dist/defaultConfigSchema.d.ts.map +1 -0
- package/dist/defaultConfigSchema.js +217 -0
- package/dist/defaultConfigSchema.js.map +1 -0
- package/dist/matterbridge.d.ts +22 -0
- package/dist/matterbridge.d.ts.map +1 -1
- package/dist/matterbridge.js +321 -154
- package/dist/matterbridge.js.map +1 -1
- package/dist/matterbridgeDevice.d.ts +22 -14
- package/dist/matterbridgeDevice.d.ts.map +1 -1
- package/dist/matterbridgeDevice.js +2 -2
- package/dist/matterbridgeDevice.js.map +1 -1
- package/frontend/build/asset-manifest.json +6 -6
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/css/main.57bd18a9.css +2 -0
- package/frontend/build/static/css/main.57bd18a9.css.map +1 -0
- package/frontend/build/static/js/main.5886e61b.js +3 -0
- package/frontend/build/static/js/{main.742e4290.js.LICENSE.txt → main.5886e61b.js.LICENSE.txt} +2 -0
- package/frontend/build/static/js/main.5886e61b.js.map +1 -0
- package/package.json +14 -7
- package/frontend/build/static/css/main.979e07d2.css +0 -2
- package/frontend/build/static/css/main.979e07d2.css.map +0 -1
- package/frontend/build/static/js/main.742e4290.js +0 -3
- package/frontend/build/static/js/main.742e4290.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,37 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
## [1.2.
|
|
5
|
+
## [1.2.15] - 2024-05-14
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- [frontend]: Added sponsor link in Header.
|
|
10
|
+
- [frontend]: Added sponsor link in the plugin list.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- [frontend]: Fixed the case when the latest version of Matterbridge or a plugin is not available.
|
|
15
|
+
|
|
16
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
17
|
+
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
|
|
18
|
+
</a>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## [1.2.14] - 2024-05-09
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- [frontend]: Frontend updated to 0.9.0.
|
|
26
|
+
- [frontend]: Added Plugin config editor
|
|
27
|
+
- [frontend]: Added tool column to registered plugins with QRCode, Config, Remove and Enable/Disable
|
|
28
|
+
- [frontend]: Removed Shutdown button when Matterbridge runs as a service or with docker
|
|
29
|
+
- [frontend]: Added Error state to registered plugins
|
|
30
|
+
|
|
31
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
32
|
+
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
|
|
33
|
+
</a>
|
|
34
|
+
|
|
35
|
+
## [1.2.13] - 2024-05-05
|
|
6
36
|
|
|
7
37
|
### Added
|
|
8
38
|
|
package/README.md
CHANGED
|
@@ -107,6 +107,9 @@ Devices page:
|
|
|
107
107
|
Logs page:
|
|
108
108
|

|
|
109
109
|
|
|
110
|
+
Config editor:
|
|
111
|
+

|
|
112
|
+
|
|
110
113
|
## Plugins
|
|
111
114
|
|
|
112
115
|
### Accessory platform example
|
|
@@ -250,7 +253,7 @@ matterbridge -reset [plugin path or plugin name]
|
|
|
250
253
|
matterbridge -factoryreset
|
|
251
254
|
```
|
|
252
255
|
|
|
253
|
-
This will reset the internal
|
|
256
|
+
This will reset the internal storages. All commissioning informations will be lost. All plugins will be unregistered.
|
|
254
257
|
|
|
255
258
|
## How to create your plugin
|
|
256
259
|
|
|
@@ -383,7 +386,7 @@ sudo systemctl disable matterbridge.service
|
|
|
383
386
|
|
|
384
387
|
## Run matterbridge with docker (Linux only)
|
|
385
388
|
|
|
386
|
-
The Matterbridge Docker image, which includes a manifest list for the linux/amd64 and linux/
|
|
389
|
+
The Matterbridge Docker image, which includes a manifest list for the linux/amd64, linux/arm64 and linux/arm/v7 architectures, is published on Docker Hub.
|
|
387
390
|
|
|
388
391
|
### First create the Matterbridge directories
|
|
389
392
|
|
|
@@ -409,7 +412,7 @@ docker run --name matterbridge \
|
|
|
409
412
|
|
|
410
413
|
### Run with docker compose
|
|
411
414
|
|
|
412
|
-
The docker-compose.yml file is available in the
|
|
415
|
+
The docker-compose.yml file is available in the docker directory of the package
|
|
413
416
|
|
|
414
417
|
```
|
|
415
418
|
services:
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file contains the default config end schema for the plugins.
|
|
3
|
+
*
|
|
4
|
+
* @file utils.ts
|
|
5
|
+
* @author Luca Liguori
|
|
6
|
+
* @date 2024-05-07
|
|
7
|
+
* @version 1.0.0
|
|
8
|
+
*
|
|
9
|
+
* Copyright 2024 Luca Liguori.
|
|
10
|
+
*
|
|
11
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
+
* you may not use this file except in compliance with the License.
|
|
13
|
+
* You may obtain a copy of the License at
|
|
14
|
+
*
|
|
15
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
+
*
|
|
17
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
+
* See the License for the specific language governing permissions and
|
|
21
|
+
* limitations under the License. *
|
|
22
|
+
*/
|
|
23
|
+
import { PlatformConfig, PlatformSchema } from './matterbridge.js';
|
|
24
|
+
export declare const zigbee2mqtt_config: PlatformConfig;
|
|
25
|
+
export declare const zigbee2mqtt_schema: PlatformSchema;
|
|
26
|
+
export declare const somfytahoma_config: PlatformConfig;
|
|
27
|
+
export declare const somfytahoma_schema: PlatformSchema;
|
|
28
|
+
//# sourceMappingURL=defaultConfigSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultConfigSchema.d.ts","sourceRoot":"","sources":["../src/defaultConfigSchema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnE,eAAO,MAAM,kBAAkB,EAAE,cAgBhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,cA6FhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,cAShC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,cAwEhC,CAAC"}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file contains the default config end schema for the plugins.
|
|
3
|
+
*
|
|
4
|
+
* @file utils.ts
|
|
5
|
+
* @author Luca Liguori
|
|
6
|
+
* @date 2024-05-07
|
|
7
|
+
* @version 1.0.0
|
|
8
|
+
*
|
|
9
|
+
* Copyright 2024 Luca Liguori.
|
|
10
|
+
*
|
|
11
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
12
|
+
* you may not use this file except in compliance with the License.
|
|
13
|
+
* You may obtain a copy of the License at
|
|
14
|
+
*
|
|
15
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
16
|
+
*
|
|
17
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
18
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
+
* See the License for the specific language governing permissions and
|
|
21
|
+
* limitations under the License. *
|
|
22
|
+
*/
|
|
23
|
+
export const zigbee2mqtt_config = {
|
|
24
|
+
name: 'matterbridge-zigbee2mqtt',
|
|
25
|
+
type: 'DynamicPlatform',
|
|
26
|
+
host: 'localhost',
|
|
27
|
+
username: '',
|
|
28
|
+
password: '',
|
|
29
|
+
port: 1883,
|
|
30
|
+
topic: 'zigbee2mqtt',
|
|
31
|
+
unregisterOnShutdown: false,
|
|
32
|
+
blackList: [],
|
|
33
|
+
whiteList: [],
|
|
34
|
+
switchList: [],
|
|
35
|
+
lightList: [],
|
|
36
|
+
outletList: [],
|
|
37
|
+
featureBlackList: [],
|
|
38
|
+
deviceFeatureBlackList: {},
|
|
39
|
+
};
|
|
40
|
+
export const zigbee2mqtt_schema = {
|
|
41
|
+
title: 'Matterbridge zigbee2mqtt plugin',
|
|
42
|
+
description: 'matterbridge-zigbee2mqtt v. 2.0.13 by https://github.com/Luligu',
|
|
43
|
+
type: 'object',
|
|
44
|
+
required: ['username', 'password', 'host', 'port', 'topic'],
|
|
45
|
+
properties: {
|
|
46
|
+
name: {
|
|
47
|
+
description: 'Plugin name',
|
|
48
|
+
type: 'string',
|
|
49
|
+
readOnly: true,
|
|
50
|
+
},
|
|
51
|
+
type: {
|
|
52
|
+
description: 'Plugin type',
|
|
53
|
+
type: 'string',
|
|
54
|
+
readOnly: true,
|
|
55
|
+
},
|
|
56
|
+
host: {
|
|
57
|
+
description: 'Host',
|
|
58
|
+
type: 'string',
|
|
59
|
+
},
|
|
60
|
+
username: {
|
|
61
|
+
description: 'Username',
|
|
62
|
+
type: 'string',
|
|
63
|
+
},
|
|
64
|
+
password: {
|
|
65
|
+
description: 'Password',
|
|
66
|
+
type: 'string',
|
|
67
|
+
},
|
|
68
|
+
port: {
|
|
69
|
+
description: 'Port',
|
|
70
|
+
type: 'number',
|
|
71
|
+
},
|
|
72
|
+
topic: {
|
|
73
|
+
description: 'Topic',
|
|
74
|
+
type: 'string',
|
|
75
|
+
},
|
|
76
|
+
blackList: {
|
|
77
|
+
description: 'The devices in the list will not be exposed.',
|
|
78
|
+
type: 'array',
|
|
79
|
+
items: {
|
|
80
|
+
type: 'string',
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
whiteList: {
|
|
84
|
+
description: 'Only the devices in the list will be exposed.',
|
|
85
|
+
type: 'array',
|
|
86
|
+
items: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
switchList: {
|
|
91
|
+
description: 'The devices in the list will be exposed like switches.',
|
|
92
|
+
type: 'array',
|
|
93
|
+
items: {
|
|
94
|
+
type: 'string',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
lightList: {
|
|
98
|
+
description: 'The devices in the list will be exposed like lights.',
|
|
99
|
+
type: 'array',
|
|
100
|
+
items: {
|
|
101
|
+
type: 'string',
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
outletList: {
|
|
105
|
+
description: 'The devices in the list will be exposed like outlets.',
|
|
106
|
+
type: 'array',
|
|
107
|
+
items: {
|
|
108
|
+
type: 'string',
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
featureBlackList: {
|
|
112
|
+
description: 'The features in the list will not be exposed for all devices.',
|
|
113
|
+
type: 'array',
|
|
114
|
+
items: {
|
|
115
|
+
type: 'string',
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
deviceFeatureBlackList: {
|
|
119
|
+
description: 'List of features not to be exposed for a single device. Enter in the first field the name of the device and in the second field add all the features to exclude.',
|
|
120
|
+
type: 'object',
|
|
121
|
+
additionalProperties: {
|
|
122
|
+
type: 'array',
|
|
123
|
+
items: {
|
|
124
|
+
type: 'string',
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
unregisterOnShutdown: {
|
|
129
|
+
description: 'Unregister all devices on shutdown (development only)',
|
|
130
|
+
type: 'boolean',
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
};
|
|
134
|
+
export const somfytahoma_config = {
|
|
135
|
+
name: 'matterbridge-somfy-tahoma',
|
|
136
|
+
type: 'DynamicPlatform',
|
|
137
|
+
username: '',
|
|
138
|
+
password: '',
|
|
139
|
+
service: 'somfy_europe',
|
|
140
|
+
blackList: [],
|
|
141
|
+
whiteList: [],
|
|
142
|
+
movementDuration: {},
|
|
143
|
+
};
|
|
144
|
+
export const somfytahoma_schema = {
|
|
145
|
+
title: 'Matterbridge somfy tahoma plugin',
|
|
146
|
+
description: 'matterbridge-somfy-tahoma v. 1.0.7 by https://github.com/Luligu',
|
|
147
|
+
type: 'object',
|
|
148
|
+
required: ['username', 'password', 'service'],
|
|
149
|
+
properties: {
|
|
150
|
+
name: {
|
|
151
|
+
description: 'Plugin name',
|
|
152
|
+
type: 'string',
|
|
153
|
+
readOnly: true,
|
|
154
|
+
},
|
|
155
|
+
type: {
|
|
156
|
+
description: 'Plugin type',
|
|
157
|
+
type: 'string',
|
|
158
|
+
readOnly: true,
|
|
159
|
+
},
|
|
160
|
+
username: {
|
|
161
|
+
description: 'Username',
|
|
162
|
+
type: 'string',
|
|
163
|
+
},
|
|
164
|
+
password: {
|
|
165
|
+
description: 'Password',
|
|
166
|
+
type: 'string',
|
|
167
|
+
},
|
|
168
|
+
service: {
|
|
169
|
+
description: 'Service name to connect to',
|
|
170
|
+
type: 'string',
|
|
171
|
+
oneOf: [
|
|
172
|
+
{
|
|
173
|
+
title: 'Local API (TaHoma / Switch)',
|
|
174
|
+
enum: ['local'],
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
title: 'Somfy Europe (TaHoma / Switch / Connexoon IO)',
|
|
178
|
+
enum: ['somfy_europe'],
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
title: 'Somfy Australia (Connexoon RTS)',
|
|
182
|
+
enum: ['somfy_australia'],
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
title: 'Somfy North America',
|
|
186
|
+
enum: ['somfy_north_america'],
|
|
187
|
+
},
|
|
188
|
+
],
|
|
189
|
+
},
|
|
190
|
+
blackList: {
|
|
191
|
+
description: 'The devices in the list will not be exposed.',
|
|
192
|
+
type: 'array',
|
|
193
|
+
items: {
|
|
194
|
+
type: 'string',
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
whiteList: {
|
|
198
|
+
description: 'Only the devices in the list will be exposed.',
|
|
199
|
+
type: 'array',
|
|
200
|
+
items: {
|
|
201
|
+
type: 'string',
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
movementDuration: {
|
|
205
|
+
description: 'Set the duration in seconds of the full movement for each device. Enter in the first field the name of the device and in the second field the duration in seconds.',
|
|
206
|
+
type: 'object',
|
|
207
|
+
additionalProperties: {
|
|
208
|
+
type: 'integer',
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
unregisterOnShutdown: {
|
|
212
|
+
description: 'Unregister all devices on shutdown (development only)',
|
|
213
|
+
type: 'boolean',
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
};
|
|
217
|
+
//# sourceMappingURL=defaultConfigSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultConfigSchema.js","sourceRoot":"","sources":["../src/defaultConfigSchema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAmB;IAChD,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,aAAa;IACpB,oBAAoB,EAAE,KAAK;IAC3B,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,EAAE;IACd,SAAS,EAAE,EAAE;IACb,UAAU,EAAE,EAAE;IACd,gBAAgB,EAAE,EAAE;IACpB,sBAAsB,EAAE,EAAE;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAmB;IAChD,KAAK,EAAE,iCAAiC;IACxC,WAAW,EAAE,iEAAiE;IAC9E,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC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AAE,CAAC,OAAO,CAAC;iBAChB;gBACD;oBACE,KAAK,EAAE,+CAA+C;oBACtD,IAAI,EAAE,CAAC,cAAc,CAAC;iBACvB;gBACD;oBACE,KAAK,EAAE,iCAAiC;oBACxC,IAAI,EAAE,CAAC,iBAAiB,CAAC;iBAC1B;gBACD;oBACE,KAAK,EAAE,qBAAqB;oBAC5B,IAAI,EAAE,CAAC,qBAAqB,CAAC;iBAC9B;aACF;SACF;QACD,SAAS,EAAE;YACT,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;SACF;QACD,SAAS,EAAE;YACT,WAAW,EAAE,+CAA+C;YAC5D,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;SACF;QACD,gBAAgB,EAAE;YAChB,WAAW,EAAE,oKAAoK;YACjL,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE;gBACpB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,oBAAoB,EAAE;YACpB,WAAW,EAAE,uDAAuD;YACpE,IAAI,EAAE,SAAS;SAChB;KACF;CACF,CAAC"}
|
package/dist/matterbridge.d.ts
CHANGED
|
@@ -27,7 +27,12 @@ export type PlatformConfigValue = string | number | boolean | bigint | object |
|
|
|
27
27
|
export type PlatformConfig = {
|
|
28
28
|
[key: string]: PlatformConfigValue;
|
|
29
29
|
};
|
|
30
|
+
export type PlatformSchemaValue = string | number | boolean | bigint | object | undefined | null;
|
|
31
|
+
export type PlatformSchema = {
|
|
32
|
+
[key: string]: PlatformSchemaValue;
|
|
33
|
+
};
|
|
30
34
|
interface SystemInformation {
|
|
35
|
+
macAddress: string;
|
|
31
36
|
ipv4Address: string;
|
|
32
37
|
ipv6Address: string;
|
|
33
38
|
nodeVersion: string;
|
|
@@ -223,6 +228,23 @@ export declare class Matterbridge extends EventEmitter {
|
|
|
223
228
|
*/
|
|
224
229
|
private stopStorage;
|
|
225
230
|
private testStartMatterBridge;
|
|
231
|
+
/**
|
|
232
|
+
* Loads the schema for a plugin.
|
|
233
|
+
* If the schema file exists, it reads the file and returns the parsed JSON data.
|
|
234
|
+
* If the schema file does not exist, it creates a new file with default configuration and returns it.
|
|
235
|
+
* If any error occurs during file access or creation, it logs an error and return an empty schema.
|
|
236
|
+
*
|
|
237
|
+
* @param plugin - The plugin for which to load the schema.
|
|
238
|
+
* @returns A promise that resolves to the loaded or created schema.
|
|
239
|
+
*/
|
|
240
|
+
private loadPluginSchema;
|
|
241
|
+
/**
|
|
242
|
+
* Saves the plugin configuration to a JSON file.
|
|
243
|
+
* @param plugin - The registered plugin.
|
|
244
|
+
* @param config - The platform configuration.
|
|
245
|
+
* @returns A promise that resolves when the configuration is saved successfully, or rejects with an error.
|
|
246
|
+
*/
|
|
247
|
+
private savePluginConfigFromJson;
|
|
226
248
|
/**
|
|
227
249
|
* Loads the configuration for a plugin.
|
|
228
250
|
* If the configuration file exists, it reads the file and returns the parsed JSON data.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matterbridge.d.ts","sourceRoot":"","sources":["../src/matterbridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;AAEH,OAAO,EAAE,kBAAkB,EAAgC,MAAM,yBAAyB,CAAC;AAS3F,OAAO,YAAY,MAAM,QAAQ,CAAC;AA4ClC,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;AAEjG,MAAM,MAAM,cAAc,GAAG;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAC;CACpC,CAAC;
|
|
1
|
+
{"version":3,"file":"matterbridge.d.ts","sourceRoot":"","sources":["../src/matterbridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;;AAEH,OAAO,EAAE,kBAAkB,EAAgC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