isy-nodejs 1.0.1-alpha.27 → 1.0.1-alpha.29
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/dist/cjs/CodeGeneration/EnumFactory.js +6 -6
- package/dist/cjs/CodeGeneration/EnumFactory.js.map +1 -1
- package/dist/cjs/CodeGeneration/NodeClassFactory.js +7 -7
- package/dist/cjs/CodeGeneration/NodeClassFactory.js.map +1 -1
- package/dist/cjs/Definitions/Global/Commands.js.map +1 -1
- package/dist/cjs/Definitions/Global/Drivers.js.map +1 -1
- package/dist/cjs/Devices/ISYDevice.js.map +1 -1
- package/dist/cjs/Devices/ISYDeviceNode.js.map +1 -1
- package/dist/cjs/Devices/Insteon/InsteonDevice.js.map +1 -1
- package/dist/cjs/Devices/Insteon/InsteonDeviceFactory.js +12 -8
- package/dist/cjs/Devices/Insteon/InsteonDeviceFactory.js.map +1 -1
- package/dist/cjs/Devices/Insteon/InsteonKeypadDevice.js +2 -2
- package/dist/cjs/Devices/Insteon/InsteonKeypadDevice.js.map +1 -1
- package/dist/cjs/Devices/Insteon/InsteonRelayDevice.js +0 -16
- package/dist/cjs/Devices/Insteon/InsteonRelayDevice.js.map +1 -1
- package/dist/cjs/Devices/Insteon/KeypadButton.js +52 -0
- package/dist/cjs/Devices/Insteon/KeypadButton.js.map +1 -0
- package/dist/cjs/Devices/MapsTo.js +11 -0
- package/dist/cjs/Devices/MapsTo.js.map +1 -1
- package/dist/cjs/Devices/NodeFactory.js +5 -4
- package/dist/cjs/Devices/NodeFactory.js.map +1 -1
- package/dist/cjs/Devices/index.js.map +1 -1
- package/dist/cjs/ISY.js +220 -213
- package/dist/cjs/ISY.js.map +1 -1
- package/dist/cjs/ISYNode.js +3 -3
- package/dist/cjs/ISYNode.js.map +1 -1
- package/dist/cjs/ISYScene.js.map +1 -1
- package/dist/cjs/Matter/Behaviors/ISYBridgedDeviceBehavior.js.map +1 -1
- package/dist/cjs/Matter/Behaviors/ISYClusterBehavior.js.map +1 -1
- package/dist/cjs/Matter/Bridge/Server.js +6 -5
- package/dist/cjs/Matter/Bridge/Server.js.map +1 -1
- package/dist/cjs/Model/ClassDefinition.js +2 -2
- package/dist/cjs/Model/ClassDefinition.js.map +1 -1
- package/dist/cjs/Model/ClusterMap.js +2 -2
- package/dist/cjs/Model/ClusterMap.js.map +1 -1
- package/dist/cjs/Model/NodeDef.js.map +1 -1
- package/dist/cjs/Model/NodeInfo.js +3 -3
- package/dist/cjs/Model/NodeInfo.js.map +1 -1
- package/dist/cjs/Utils.js.map +1 -1
- package/dist/cjs/types/CodeGeneration/EnumFactory.d.ts +1 -1
- package/dist/cjs/types/CodeGeneration/EnumFactory.d.ts.map +1 -1
- package/dist/cjs/types/CodeGeneration/NodeClassFactory.d.ts +1 -1
- package/dist/cjs/types/CodeGeneration/NodeClassFactory.d.ts.map +1 -1
- package/dist/cjs/types/Definitions/Global/Commands.d.ts.map +1 -1
- package/dist/cjs/types/Definitions/Global/Drivers.d.ts +1 -1
- package/dist/cjs/types/Definitions/Global/Drivers.d.ts.map +1 -1
- package/dist/cjs/types/Definitions/Global/Events.d.ts +1 -1
- package/dist/cjs/types/Definitions/Global/Events.d.ts.map +1 -1
- package/dist/cjs/types/Devices/ISYDevice.d.ts +2 -3
- package/dist/cjs/types/Devices/ISYDevice.d.ts.map +1 -1
- package/dist/cjs/types/Devices/ISYDeviceNode.d.ts +2 -1
- package/dist/cjs/types/Devices/ISYDeviceNode.d.ts.map +1 -1
- package/dist/cjs/types/Devices/Insteon/InsteonBaseDevice.d.ts +1 -1
- package/dist/cjs/types/Devices/Insteon/InsteonBaseDevice.d.ts.map +1 -1
- package/dist/cjs/types/Devices/Insteon/InsteonDevice.d.ts +10 -9
- package/dist/cjs/types/Devices/Insteon/InsteonDevice.d.ts.map +1 -1
- package/dist/cjs/types/Devices/Insteon/InsteonDeviceFactory.d.ts +2 -1
- package/dist/cjs/types/Devices/Insteon/InsteonDeviceFactory.d.ts.map +1 -1
- package/dist/cjs/types/Devices/Insteon/InsteonFanDevice.d.ts.map +1 -1
- package/dist/cjs/types/Devices/Insteon/InsteonKeypadDevice.d.ts +4 -4
- package/dist/cjs/types/Devices/Insteon/InsteonKeypadDevice.d.ts.map +1 -1
- package/dist/cjs/types/Devices/Insteon/InsteonRelayDevice.d.ts +0 -3
- package/dist/cjs/types/Devices/Insteon/InsteonRelayDevice.d.ts.map +1 -1
- package/dist/cjs/types/Devices/Insteon/KeypadButton.d.ts +63 -0
- package/dist/cjs/types/Devices/Insteon/KeypadButton.d.ts.map +1 -0
- package/dist/cjs/types/Devices/MapsTo.d.ts +0 -9
- package/dist/cjs/types/Devices/MapsTo.d.ts.map +1 -1
- package/dist/cjs/types/Devices/NodeFactory.d.ts +2 -1
- package/dist/cjs/types/Devices/NodeFactory.d.ts.map +1 -1
- package/dist/cjs/types/Devices/ZWave/ZWaveBaseDevice.d.ts +1 -1
- package/dist/cjs/types/Devices/ZWave/ZWaveBaseDevice.d.ts.map +1 -1
- package/dist/cjs/types/Devices/index.d.ts +1 -1
- package/dist/cjs/types/Devices/index.d.ts.map +1 -1
- package/dist/cjs/types/ISY.d.ts +13 -28
- package/dist/cjs/types/ISY.d.ts.map +1 -1
- package/dist/cjs/types/ISYDevice.d.ts +1 -1
- package/dist/cjs/types/ISYDevice.d.ts.map +1 -1
- package/dist/cjs/types/ISYNode.d.ts +6 -4
- package/dist/cjs/types/ISYNode.d.ts.map +1 -1
- package/dist/cjs/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts +3 -8
- package/dist/cjs/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts.map +1 -1
- package/dist/cjs/types/Matter/Behaviors/ISYClusterBehavior.d.ts.map +1 -1
- package/dist/cjs/types/Matter/Behaviors/Insteon/ISYOnOffBehavior.d.ts +3 -40
- package/dist/cjs/types/Matter/Behaviors/Insteon/ISYOnOffBehavior.d.ts.map +1 -1
- package/dist/cjs/types/Matter/Bridge/Server.d.ts.map +1 -1
- package/dist/cjs/types/Model/ClusterMap.d.ts +2 -3
- package/dist/cjs/types/Model/ClusterMap.d.ts.map +1 -1
- package/dist/cjs/types/Model/EnumDefinition.d.ts +1 -1
- package/dist/cjs/types/Model/NodeDef.d.ts.map +1 -1
- package/dist/cjs/types/Model/NodeInfo.d.ts +2 -2
- package/dist/cjs/types/Model/NodeInfo.d.ts.map +1 -1
- package/dist/cjs/types/Utils.d.ts +8 -1
- package/dist/cjs/types/Utils.d.ts.map +1 -1
- package/dist/esm/CodeGeneration/EnumFactory.js +1 -1
- package/dist/esm/CodeGeneration/EnumFactory.js.map +1 -1
- package/dist/esm/CodeGeneration/NodeClassFactory.js +1 -1
- package/dist/esm/CodeGeneration/NodeClassFactory.js.map +1 -1
- package/dist/esm/Definitions/Global/Commands.js.map +1 -1
- package/dist/esm/Definitions/Global/Drivers.js.map +1 -1
- package/dist/esm/Devices/ISYDevice.js.map +1 -1
- package/dist/esm/Devices/ISYDeviceNode.js.map +1 -1
- package/dist/esm/Devices/Insteon/InsteonDevice.js.map +1 -1
- package/dist/esm/Devices/Insteon/InsteonDeviceFactory.js +5 -1
- package/dist/esm/Devices/Insteon/InsteonDeviceFactory.js.map +1 -1
- package/dist/esm/Devices/Insteon/InsteonKeypadDevice.js +2 -2
- package/dist/esm/Devices/Insteon/InsteonKeypadDevice.js.map +1 -1
- package/dist/esm/Devices/Insteon/InsteonRelayDevice.js +0 -16
- package/dist/esm/Devices/Insteon/InsteonRelayDevice.js.map +1 -1
- package/dist/esm/Devices/Insteon/KeypadButton.js +48 -0
- package/dist/esm/Devices/Insteon/KeypadButton.js.map +1 -0
- package/dist/esm/Devices/MapsTo.js +11 -0
- package/dist/esm/Devices/MapsTo.js.map +1 -1
- package/dist/esm/Devices/NodeFactory.js +2 -1
- package/dist/esm/Devices/NodeFactory.js.map +1 -1
- package/dist/esm/Devices/index.js.map +1 -1
- package/dist/esm/ISY.js +220 -183
- package/dist/esm/ISY.js.map +1 -1
- package/dist/esm/ISYNode.js +2 -2
- package/dist/esm/ISYNode.js.map +1 -1
- package/dist/esm/ISYScene.js.map +1 -1
- package/dist/esm/Matter/Behaviors/ISYBridgedDeviceBehavior.js.map +1 -1
- package/dist/esm/Matter/Behaviors/ISYClusterBehavior.js.map +1 -1
- package/dist/esm/Matter/Bridge/Server.js +7 -6
- package/dist/esm/Matter/Bridge/Server.js.map +1 -1
- package/dist/esm/Model/ClassDefinition.js +1 -1
- package/dist/esm/Model/ClassDefinition.js.map +1 -1
- package/dist/esm/Model/ClusterMap.js +2 -2
- package/dist/esm/Model/ClusterMap.js.map +1 -1
- package/dist/esm/Model/NodeDef.js.map +1 -1
- package/dist/esm/Model/NodeInfo.js +1 -1
- package/dist/esm/Model/NodeInfo.js.map +1 -1
- package/dist/esm/Utils.js.map +1 -1
- package/dist/esm/types/CodeGeneration/EnumFactory.d.ts +1 -1
- package/dist/esm/types/CodeGeneration/EnumFactory.d.ts.map +1 -1
- package/dist/esm/types/CodeGeneration/NodeClassFactory.d.ts +1 -1
- package/dist/esm/types/CodeGeneration/NodeClassFactory.d.ts.map +1 -1
- package/dist/esm/types/Definitions/Global/Commands.d.ts.map +1 -1
- package/dist/esm/types/Definitions/Global/Drivers.d.ts +1 -1
- package/dist/esm/types/Definitions/Global/Drivers.d.ts.map +1 -1
- package/dist/esm/types/Definitions/Global/Events.d.ts +1 -1
- package/dist/esm/types/Definitions/Global/Events.d.ts.map +1 -1
- package/dist/esm/types/Devices/ISYDevice.d.ts +2 -3
- package/dist/esm/types/Devices/ISYDevice.d.ts.map +1 -1
- package/dist/esm/types/Devices/ISYDeviceNode.d.ts +2 -1
- package/dist/esm/types/Devices/ISYDeviceNode.d.ts.map +1 -1
- package/dist/esm/types/Devices/Insteon/InsteonBaseDevice.d.ts +1 -1
- package/dist/esm/types/Devices/Insteon/InsteonBaseDevice.d.ts.map +1 -1
- package/dist/esm/types/Devices/Insteon/InsteonDevice.d.ts +10 -9
- package/dist/esm/types/Devices/Insteon/InsteonDevice.d.ts.map +1 -1
- package/dist/esm/types/Devices/Insteon/InsteonDeviceFactory.d.ts +2 -1
- package/dist/esm/types/Devices/Insteon/InsteonDeviceFactory.d.ts.map +1 -1
- package/dist/esm/types/Devices/Insteon/InsteonFanDevice.d.ts.map +1 -1
- package/dist/esm/types/Devices/Insteon/InsteonKeypadDevice.d.ts +4 -4
- package/dist/esm/types/Devices/Insteon/InsteonKeypadDevice.d.ts.map +1 -1
- package/dist/esm/types/Devices/Insteon/InsteonRelayDevice.d.ts +0 -3
- package/dist/esm/types/Devices/Insteon/InsteonRelayDevice.d.ts.map +1 -1
- package/dist/esm/types/Devices/Insteon/KeypadButton.d.ts +63 -0
- package/dist/esm/types/Devices/Insteon/KeypadButton.d.ts.map +1 -0
- package/dist/esm/types/Devices/MapsTo.d.ts +0 -9
- package/dist/esm/types/Devices/MapsTo.d.ts.map +1 -1
- package/dist/esm/types/Devices/NodeFactory.d.ts +2 -1
- package/dist/esm/types/Devices/NodeFactory.d.ts.map +1 -1
- package/dist/esm/types/Devices/ZWave/ZWaveBaseDevice.d.ts +1 -1
- package/dist/esm/types/Devices/ZWave/ZWaveBaseDevice.d.ts.map +1 -1
- package/dist/esm/types/Devices/index.d.ts +1 -1
- package/dist/esm/types/Devices/index.d.ts.map +1 -1
- package/dist/esm/types/ISY.d.ts +13 -28
- package/dist/esm/types/ISY.d.ts.map +1 -1
- package/dist/esm/types/ISYDevice.d.ts +1 -1
- package/dist/esm/types/ISYDevice.d.ts.map +1 -1
- package/dist/esm/types/ISYNode.d.ts +6 -4
- package/dist/esm/types/ISYNode.d.ts.map +1 -1
- package/dist/esm/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts +1 -1
- package/dist/esm/types/Matter/Behaviors/ISYBridgedDeviceBehavior.d.ts.map +1 -1
- package/dist/esm/types/Matter/Behaviors/ISYClusterBehavior.d.ts.map +1 -1
- package/dist/esm/types/Matter/Behaviors/Insteon/ISYOnOffBehavior.d.ts +4 -4
- package/dist/esm/types/Matter/Bridge/Server.d.ts.map +1 -1
- package/dist/esm/types/Model/ClusterMap.d.ts +2 -3
- package/dist/esm/types/Model/ClusterMap.d.ts.map +1 -1
- package/dist/esm/types/Model/NodeDef.d.ts.map +1 -1
- package/dist/esm/types/Model/NodeInfo.d.ts +2 -2
- package/dist/esm/types/Model/NodeInfo.d.ts.map +1 -1
- package/dist/esm/types/Utils.d.ts +8 -1
- package/dist/esm/types/Utils.d.ts.map +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +9 -8
- package/src/CodeGeneration/EnumFactory.ts +2 -1
- package/src/CodeGeneration/NodeClassFactory.ts +2 -1
- package/src/Definitions/Global/Commands.ts +1 -3
- package/src/Definitions/Global/Drivers.ts +7 -16
- package/src/Definitions/Global/Events.ts +3 -3
- package/src/Devices/EndpointFor.ts +3 -2
- package/src/Devices/ISYDevice.ts +3 -6
- package/src/Devices/ISYDeviceNode.ts +2 -1
- package/src/Devices/ISYMultiNodeDevice.ts +1 -1
- package/src/Devices/Insteon/InsteonBaseDevice.ts +2 -2
- package/src/Devices/Insteon/InsteonDevice.ts +3 -2
- package/src/Devices/Insteon/InsteonDeviceFactory.ts +7 -2
- package/src/Devices/Insteon/InsteonDimmableDevice.ts +2 -2
- package/src/Devices/Insteon/InsteonFanDevice.ts +1 -1
- package/src/Devices/Insteon/InsteonKeypadDevice.ts +5 -5
- package/src/Devices/Insteon/InsteonRelayDevice.ts +4 -19
- package/src/Devices/Insteon/{Generated/KeypadButton.ts → KeypadButton.ts} +20 -20
- package/src/Devices/MapsTo.ts +3 -3
- package/src/Devices/NodeFactory.ts +3 -2
- package/src/Devices/ZWave/ZWaveBaseDevice.ts +1 -1
- package/src/Devices/ZWave/ZWaveDimmerSwitchDevice.ts +1 -1
- package/src/Devices/index.ts +2 -2
- package/src/ISY.ts +249 -228
- package/src/ISYDevice.ts +3 -2
- package/src/ISYNode.ts +9 -6
- package/src/ISYScene.ts +1 -1
- package/src/Matter/Behaviors/ISYBridgedDeviceBehavior.ts +5 -3
- package/src/Matter/Behaviors/ISYClusterBehavior.ts +2 -12
- package/src/Matter/Bridge/Server.ts +10 -7
- package/src/Matter/Mappings/Insteon.ts +2 -2
- package/src/Model/ClassDefinition.ts +1 -1
- package/src/Model/ClusterMap.ts +7 -14
- package/src/Model/NodeDef.ts +1 -2
- package/src/Model/NodeInfo.ts +4 -3
- package/src/Utils.ts +13 -6
- package/tsconfig.json +2 -1
- package/dist/cjs/Devices/EndpointFor.js +0 -36
- package/dist/cjs/Devices/EndpointFor.js.map +0 -1
- package/dist/cjs/Matter/Behaviors/ISYOnOffBehavior.js +0 -52
- package/dist/cjs/Matter/Behaviors/ISYOnOffBehavior.js.map +0 -1
- package/dist/cjs/package.json +0 -1
- package/dist/cjs/types/Devices/EndpointFor.d.ts +0 -108
- package/dist/cjs/types/Devices/EndpointFor.d.ts.map +0 -1
- package/dist/cjs/types/Matter/Behaviors/ISYOnOffBehavior.d.ts +0 -55
- package/dist/cjs/types/Matter/Behaviors/ISYOnOffBehavior.d.ts.map +0 -1
- package/dist/esm/Devices/EndpointFor.js +0 -31
- package/dist/esm/Devices/EndpointFor.js.map +0 -1
- package/dist/esm/Matter/Behaviors/ISYOnOffBehavior.js +0 -47
- package/dist/esm/Matter/Behaviors/ISYOnOffBehavior.js.map +0 -1
- package/dist/esm/types/Devices/EndpointFor.d.ts +0 -108
- package/dist/esm/types/Devices/EndpointFor.d.ts.map +0 -1
- package/dist/esm/types/Matter/Behaviors/ISYOnOffBehavior.d.ts +0 -55
- package/dist/esm/types/Matter/Behaviors/ISYOnOffBehavior.d.ts.map +0 -1
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Endpoint } from '@project-chip/matter.js/endpoint';
|
|
2
|
-
import { BridgedDeviceBasicInformationBehavior, BridgedDeviceBasicInformationServer } from '@project-chip/matter.js/behaviors/bridged-device-basic-information';
|
|
3
|
-
export const MatterEndpoint = (base, endpointType) => {
|
|
4
|
-
return class extends base {
|
|
5
|
-
endpointType = endpointType;
|
|
6
|
-
createEndpoint() {
|
|
7
|
-
var p = this.endpointType.with(BridgedDeviceBasicInformationServer);
|
|
8
|
-
const id = this.address.replaceAll(' ', '_').replaceAll('.', ' ');
|
|
9
|
-
return new Endpoint(p, { id: id, address: this.address, bridgedDeviceBasicInformation: {
|
|
10
|
-
nodeLabel: this.label.rightWithToken(32, ' '),
|
|
11
|
-
productName: this.productName.rightWithToken(32, ' '),
|
|
12
|
-
productLabel: this.model.leftWithToken(64, ' '),
|
|
13
|
-
serialNumber: id,
|
|
14
|
-
reachable: this.enabled,
|
|
15
|
-
} });
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
const BISY = BridgedDeviceBasicInformationBehavior.alter({ attributes: { address: { optional: false }, ...BridgedDeviceBasicInformationServer.cluster.attributes } });
|
|
21
|
-
export class BridgedISYNodeInformationServer extends BridgedDeviceBasicInformationServer {
|
|
22
|
-
async initialize() {
|
|
23
|
-
return super.initialize();
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
(function (BridgedISYNodeInformationServer) {
|
|
27
|
-
class State extends BridgedDeviceBasicInformationServer.State {
|
|
28
|
-
}
|
|
29
|
-
BridgedISYNodeInformationServer.State = State;
|
|
30
|
-
})(BridgedISYNodeInformationServer || (BridgedISYNodeInformationServer = {}));
|
|
31
|
-
//# sourceMappingURL=EndpointFor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EndpointFor.js","sourceRoot":"","sources":["../../../src/Devices/EndpointFor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAS5D,OAAO,EAAE,qCAAqC,EAAE,mCAAmC,EAAE,MAAM,oEAAoE,CAAC;AA2BhK,MAAM,CAAC,MAAM,cAAc,GAAE,CAA8F,IAAO,EAAE,YAAe,EAAE,E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kB,+BAA+B,KAA/B,+BAA+B,QAKjD"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { DimmableLightRequirements } from '@project-chip/matter.js/devices/DimmableLightDevice';
|
|
2
|
-
import { OnOffLightRequirements } from '@project-chip/matter.js/devices/OnOffLightDevice';
|
|
3
|
-
import { InsteonDimmableDevice } from '../../Devices/Insteon/InsteonDimmableDevice.js';
|
|
4
|
-
import { InsteonRelayDevice } from '../../Devices/Insteon/InsteonRelayDevice.js';
|
|
5
|
-
import { ISYClusterBehavior } from './ISYClusterBehavior.js';
|
|
6
|
-
import { Converter } from '../../Converters.js';
|
|
7
|
-
export class ISYOnOffBehavior extends ISYClusterBehavior(OnOffLightRequirements.OnOffServer, InsteonRelayDevice) {
|
|
8
|
-
async initialize(_options) {
|
|
9
|
-
await super.initialize(_options);
|
|
10
|
-
this.state.onOff = (await this.device.status);
|
|
11
|
-
//this.state.onOff = await this.device.state;
|
|
12
|
-
}
|
|
13
|
-
on = async () => {
|
|
14
|
-
await super.on();
|
|
15
|
-
await this.device.on();
|
|
16
|
-
//this.device.commands.DON = true;
|
|
17
|
-
};
|
|
18
|
-
async off() {
|
|
19
|
-
await super.off();
|
|
20
|
-
await this.device.off();
|
|
21
|
-
// this.device.drivers = false;
|
|
22
|
-
}
|
|
23
|
-
toggle = async () => {
|
|
24
|
-
//this.device.state = !(await this.device.state);
|
|
25
|
-
};
|
|
26
|
-
async handlePropertyChange({ driver, newValue, oldValue, formattedValue }) {
|
|
27
|
-
return super.handlePropertyChange({ driver, newValue, oldValue, formattedValue });
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export class ISYDimmableBehavior extends ISYClusterBehavior(DimmableLightRequirements.LevelControlServer, InsteonDimmableDevice) {
|
|
31
|
-
async initialize(_options) {
|
|
32
|
-
await super.initialize(_options);
|
|
33
|
-
/*this.state.onLevel = Converter.get('Level255toZero.LightingLevel').to(this.device.drivers.OL)*/
|
|
34
|
-
//this.state.currentLevel = this.device.drivers.ST.value;
|
|
35
|
-
//this.state.onLevel = this.device.drivers.OL;
|
|
36
|
-
}
|
|
37
|
-
setLevel(level) {
|
|
38
|
-
level = Converter.Matter.LevelFrom0To255.LightingLevel.from(level);
|
|
39
|
-
if (level > 0) {
|
|
40
|
-
return this.device.on();
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
return this.device.off();
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=ISYOnOffBehavior.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ISYOnOffBehavior.js","sourceRoot":"","sources":["../../../../src/Matter/Behaviors/ISYOnOffBehavior.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,yBAAyB,EAAE,MAAM,qDAAqD,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAI1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAEjF,OAAO,EAAsB,kBAAkB,EAAuB,MAAM,yBAAyB,CAAC;AAEtG,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,OAAO,gBAAiB,SAAQ,kBAAkB,CAAC,sBAAsB,CAAC,WAAW,EAAE,kBAAkB,CAAC;IACtG,KAAK,CAAC,UAAU,CAAC,QAAa;QACtC,MAAM,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC9C,6CAA6C;IAC9C,CAAC;IAEQ,EAAE,GAAG,KAAK,IAAI,EAAE;QACxB,MAAM,KAAK,CAAC,EAAE,EAAE,CAAC;QACjB,MAAM,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QAEvB,kCAAkC;IACnC,CAAC,CAAC;IAEO,KAAK,CAAC,GAAG;QACjB,MAAM,KAAK,CAAC,GAAG,EAAE,CAAC;QAClB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;QAExB,+BAA+B;IAChC,CAAC;IAEQ,MAAM,GAAG,KAAK,IAAI,EAAE;QAC5B,iDAAiD;IAClD,CAAC,CAAC;IAEO,KAAK,CAAC,oBAAoB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAsC;QAErH,OAAO,KAAK,CAAC,oBAAoB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,CAAC,CAAC;IACnF,CAAC;CACD;AAED,MAAM,OAAO,mBAAoB,SAAQ,kBAAkB,CAAC,yBAAyB,CAAC,kBAAkB,EAAE,qBAAqB,CAAC;IACtH,KAAK,CAAC,UAAU,CAAC,QAAa;QACtC,MAAM,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QACjC,iGAAiG;QACjG,yDAAyD;QAEzD,8CAA8C;IAC/C,CAAC;IAEQ,QAAQ,CAAC,KAAa;QAC9B,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,eAAe,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACnE,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACzB,CAAC;aAAM,CAAC;YACP,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;QAC1B,CAAC;IACF,CAAC;CACD"}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { Endpoint } from '@project-chip/matter.js/endpoint';
|
|
2
|
-
import { SupportedBehaviors } from '@project-chip/matter.js/endpoint/properties';
|
|
3
|
-
import { Behavior } from '@project-chip/matter.js/behavior';
|
|
4
|
-
import { MutableEndpoint, EndpointType } from '@project-chip/matter.js/endpoint/type';
|
|
5
|
-
import type { ClusterBehavior } from '@project-chip/matter.js/behavior/cluster';
|
|
6
|
-
import { type ClusterType } from '@project-chip/matter.js/cluster';
|
|
7
|
-
import type { Constructor } from './Constructor.js';
|
|
8
|
-
import type { ISYDeviceNode } from '../Devices/ISYDeviceNode.js';
|
|
9
|
-
import { BridgedDeviceBasicInformationServer } from '@project-chip/matter.js/behaviors/bridged-device-basic-information';
|
|
10
|
-
export type RelaxTypes<V> = V extends number ? number : V extends bigint ? bigint : V extends object ? V extends (...args: any[]) => any ? V : {
|
|
11
|
-
[K in keyof V]: RelaxTypes<V[K]>;
|
|
12
|
-
} : V;
|
|
13
|
-
export type RelaxedClusterType = RelaxTypes<ClusterType>;
|
|
14
|
-
export type EndpointFor<K extends Behavior.Type, K1 extends Behavior.Type = K, K2 extends Behavior.Type = K, K3 extends Behavior.Type = K> = {
|
|
15
|
-
events: SupportedBehaviors.EventsOf<SupportedBehaviors.MapOf<[K, K1, K2, K3]>>;
|
|
16
|
-
} & MutableEndpoint.With<EndpointType.Empty, SupportedBehaviors.MapOf<[K, K1, K2, K3]>>;
|
|
17
|
-
export type BehaviorsOf<K extends ClusterType.Of<ClusterType.Options<{}>>, K1 extends ClusterType = K, K2 extends ClusterType = K, K3 extends ClusterType = K> = [ClusterBehavior.Type<K>, ClusterBehavior.Type<K1>, ClusterBehavior.Type<K2>, ClusterBehavior.Type<K3>];
|
|
18
|
-
export type SupportedBehaviorsOf<K extends ClusterType.Of<ClusterType.Options<{}>>, K1 extends ClusterType = K, K2 extends ClusterType = K, K3 extends ClusterType = K> = SupportedBehaviors.MapOf<BehaviorsOf<K, K1, K2, K3>>;
|
|
19
|
-
export type EndpointForCluster<K extends ClusterType.Of<ClusterType.Options<{}>>, K1 extends ClusterType = K, K2 extends ClusterType = K, K3 extends ClusterType = K> = {
|
|
20
|
-
events: SupportedBehaviors.EventsOf<SupportedBehaviorsOf<K, K1, K2, K3>>;
|
|
21
|
-
set: (values: SupportedBehaviors.StatePatchOf<SupportedBehaviorsOf<K, K1, K2, K3>>) => void;
|
|
22
|
-
};
|
|
23
|
-
export declare const MatterEndpoint: <P extends EndpointType & MutableEndpoint, T extends Constructor<ISYDeviceNode<any, any, any>>>(base: T, endpointType: P) => {
|
|
24
|
-
new (...args: any[]): {
|
|
25
|
-
endpointType: P;
|
|
26
|
-
createEndpoint<K extends SupportedBehaviors>(): Endpoint;
|
|
27
|
-
family: any;
|
|
28
|
-
readonly typeCode: string;
|
|
29
|
-
readonly deviceClass: any;
|
|
30
|
-
readonly category: import("../ISY.js").Categories;
|
|
31
|
-
readonly subCategory: number;
|
|
32
|
-
declare: any;
|
|
33
|
-
_enabled: any;
|
|
34
|
-
productName: string;
|
|
35
|
-
model: string;
|
|
36
|
-
modelNumber: string;
|
|
37
|
-
version: string;
|
|
38
|
-
_parentDevice: import("../ISYDevice.js").ISYDevice<any, any, any, any>;
|
|
39
|
-
children: import("../ISYNode.js").ISYNode<any, any, any, any>[];
|
|
40
|
-
addChild<K extends import("../ISYNode.js").ISYNode<any, any, any, any>>(childDevice: K): void;
|
|
41
|
-
"__#72@#parentNode": import("../ISYNode.js").ISYNode<any, any, any, any>;
|
|
42
|
-
readonly address: string;
|
|
43
|
-
readonly baseLabel: string;
|
|
44
|
-
readonly flag: any;
|
|
45
|
-
readonly isy: import("../ISY.js").ISY;
|
|
46
|
-
readonly nodeDefId: string;
|
|
47
|
-
baseName: any;
|
|
48
|
-
commands: import("../Definitions/index.js").Command.ForAll<any>;
|
|
49
|
-
drivers: import("../Definitions/index.js").Driver.ForAll<any, false>;
|
|
50
|
-
enabled: boolean;
|
|
51
|
-
events: {
|
|
52
|
-
on(eventName: `${any}Changed` & `${any}Triggered`, listener: (driver: string, newValue: any, oldValue: any, formatted: string, uom: any) => void): import("../Definitions/Global/Events.js").Event.NodeEventEmitter<any>;
|
|
53
|
-
} & Omit<import("../Definitions/Global/Events.js").Event.NodeEventEmitter<any>, "on">;
|
|
54
|
-
folder: string;
|
|
55
|
-
hidden: boolean;
|
|
56
|
-
isDimmable: boolean;
|
|
57
|
-
isLoad: boolean;
|
|
58
|
-
label: string;
|
|
59
|
-
lastChanged: Date;
|
|
60
|
-
location: string;
|
|
61
|
-
logger: (msg: any, level?: keyof import("winston/lib/winston/config/index.js").CliConfigSetLevels, ...meta: any[]) => import("winston").Logger;
|
|
62
|
-
name: string;
|
|
63
|
-
nodeType: number;
|
|
64
|
-
parent: any;
|
|
65
|
-
parentAddress: any;
|
|
66
|
-
parentType: import("../ISYConstants.js").NodeType;
|
|
67
|
-
propsInitialized: boolean;
|
|
68
|
-
scenes: import("../ISYScene.js").ISYScene[];
|
|
69
|
-
spokenName: string;
|
|
70
|
-
type: any;
|
|
71
|
-
readonly parentNode: import("../ISYNode.js").ISYNode<any, any, any, any>;
|
|
72
|
-
addLink(isyScene: import("../ISYScene.js").ISYScene): void;
|
|
73
|
-
applyStatus(prop: import("../Model/DriverState.js").DriverState): void;
|
|
74
|
-
convert(value: any, from: import("../Definitions/index.js").UnitOfMeasure, to: import("../Definitions/index.js").UnitOfMeasure): any;
|
|
75
|
-
convertFrom(value: any, uom: import("../Definitions/index.js").UnitOfMeasure, propertyName?: string): any;
|
|
76
|
-
convertTo(value: any, uom: import("../Definitions/index.js").UnitOfMeasure, propertyName?: string): any;
|
|
77
|
-
emit(event: "propertyChanged" | "controlTriggered", propertyName?: string, newValue?: any, oldValue?: any, formattedValue?: string, controlName?: string): void;
|
|
78
|
-
generateLabel(template: string): string;
|
|
79
|
-
getNotes(): Promise<import("../Model/NodeNotes.js").NodeNotes>;
|
|
80
|
-
handleControlTrigger(controlName: string | number | symbol): boolean;
|
|
81
|
-
handleEvent(event: {
|
|
82
|
-
control?: any;
|
|
83
|
-
data?: any;
|
|
84
|
-
node?: any;
|
|
85
|
-
action?: any;
|
|
86
|
-
fmtAct?: any;
|
|
87
|
-
}): boolean;
|
|
88
|
-
handlePropertyChange(propertyName: string, value: any, uom: import("../Definitions/index.js").UnitOfMeasure, prec?: number, formattedValue?: string): boolean;
|
|
89
|
-
parseResult(node: {
|
|
90
|
-
property: import("../Model/DriverState.js").DriverState | import("../Model/DriverState.js").DriverState[];
|
|
91
|
-
}): void;
|
|
92
|
-
readProperties(): Promise<import("../Model/DriverState.js").DriverState[]>;
|
|
93
|
-
readProperty(propertyName: string): Promise<import("../Model/DriverState.js").DriverState>;
|
|
94
|
-
refresh(): Promise<any>;
|
|
95
|
-
refreshNotes(): Promise<void>;
|
|
96
|
-
sendCommand(command: string, parameters?: Record<string | symbol, string | number | undefined> | string | number): Promise<any>;
|
|
97
|
-
updateProperty(propertyName: string, value: any): Promise<any>;
|
|
98
|
-
};
|
|
99
|
-
} & T;
|
|
100
|
-
export declare class BridgedISYNodeInformationServer extends BridgedDeviceBasicInformationServer {
|
|
101
|
-
initialize(): Promise<void>;
|
|
102
|
-
}
|
|
103
|
-
export declare namespace BridgedISYNodeInformationServer {
|
|
104
|
-
class State extends BridgedDeviceBasicInformationServer.State {
|
|
105
|
-
address: string;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
//# sourceMappingURL=EndpointFor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EndpointFor.d.ts","sourceRoot":"","sources":["../../../../src/Devices/EndpointFor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsB1D,CAAA;AAMC,qBAAa,+BAAgC,SAAQ,mCAAmC;IAGvE,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAS3C;AAED,yBAAiB,+BAA+B,CAAC;IAC/C,MAAa,KAAM,SAAQ,mCAAmC,CAAC,KAAK;QAExD,OAAO,EAAE,MAAM,CAAC;KAC3B;CACJ"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { LevelControlInterface, LevelControlServer } from '@project-chip/matter.js/behaviors/level-control';
|
|
2
|
-
import type { OnOffServer } from '@project-chip/matter.js/behaviors/on-off';
|
|
3
|
-
import type { MaybePromise } from '@project-chip/matter.js/util';
|
|
4
|
-
import { InsteonDimmableDevice } from '../../Devices/Insteon/InsteonDimmableDevice.js';
|
|
5
|
-
import { InsteonRelayDevice } from '../../Devices/Insteon/InsteonRelayDevice.js';
|
|
6
|
-
import { type PropertyChange } from './ISYClusterBehavior.js';
|
|
7
|
-
declare const ISYOnOffBehavior_base: import("@project-chip/matter.js/behavior/cluster").ClusterBehavior.Type<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").OnOff.Cluster, readonly [import("@project-chip/matter.js/cluster").OnOff.Feature.Lighting]>, readonly ["Lighting"]>, typeof OnOffServer, import("@project-chip/matter.js/behaviors/on-off").OnOffInterface> & (new (...args: any[]) => import("./ISYClusterBehavior.js").DeviceBehavior<InsteonRelayDevice, import("@project-chip/matter.js/behavior/cluster").ClusterBehavior.Type<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").OnOff.Cluster, readonly [import("@project-chip/matter.js/cluster").OnOff.Feature.Lighting]>, readonly ["Lighting"]>, typeof OnOffServer, import("@project-chip/matter.js/behaviors/on-off").OnOffInterface>>);
|
|
8
|
-
export declare class ISYOnOffBehavior extends ISYOnOffBehavior_base {
|
|
9
|
-
initialize(_options?: {}): Promise<void>;
|
|
10
|
-
on: () => Promise<void>;
|
|
11
|
-
off(): Promise<void>;
|
|
12
|
-
toggle: () => Promise<void>;
|
|
13
|
-
handlePropertyChange({ driver, newValue, oldValue, formattedValue }: PropertyChange<InsteonRelayDevice>): Promise<void>;
|
|
14
|
-
}
|
|
15
|
-
declare const ISYDimmableBehavior_base: import("@project-chip/matter.js/behavior/cluster").ClusterBehavior.Type<import("@project-chip/matter.js/cluster").ElementModifier.WithAlterations<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").LevelControl.Cluster, readonly [import("@project-chip/matter.js/cluster").LevelControl.Feature.OnOff, import("@project-chip/matter.js/cluster").LevelControl.Feature.Lighting]>, readonly [import("@project-chip/matter.js/cluster").LevelControl.Feature.OnOff]>, readonly ["Lighting", "OnOff"]>, {
|
|
16
|
-
readonly attributes: {
|
|
17
|
-
readonly currentLevel: {
|
|
18
|
-
readonly min: 1;
|
|
19
|
-
readonly max: 254;
|
|
20
|
-
};
|
|
21
|
-
readonly minLevel: {
|
|
22
|
-
readonly default: 1;
|
|
23
|
-
readonly min: 1;
|
|
24
|
-
readonly max: 2;
|
|
25
|
-
};
|
|
26
|
-
readonly maxLevel: {
|
|
27
|
-
readonly default: 254;
|
|
28
|
-
readonly min: 254;
|
|
29
|
-
readonly max: 255;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
}>, import("@project-chip/matter.js/behavior/cluster").ClusterBehavior.Type<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").LevelControl.Cluster, readonly [import("@project-chip/matter.js/cluster").LevelControl.Feature.OnOff, import("@project-chip/matter.js/cluster").LevelControl.Feature.Lighting]>, readonly [import("@project-chip/matter.js/cluster").LevelControl.Feature.OnOff]>, readonly ["Lighting", "OnOff"]>, typeof LevelControlServer, LevelControlInterface>, LevelControlInterface> & (new (...args: any[]) => import("./ISYClusterBehavior.js").DeviceBehavior<InsteonDimmableDevice, import("@project-chip/matter.js/behavior/cluster").ClusterBehavior.Type<import("@project-chip/matter.js/cluster").ElementModifier.WithAlterations<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").LevelControl.Cluster, readonly [import("@project-chip/matter.js/cluster").LevelControl.Feature.OnOff, import("@project-chip/matter.js/cluster").LevelControl.Feature.Lighting]>, readonly [import("@project-chip/matter.js/cluster").LevelControl.Feature.OnOff]>, readonly ["Lighting", "OnOff"]>, {
|
|
33
|
-
readonly attributes: {
|
|
34
|
-
readonly currentLevel: {
|
|
35
|
-
readonly min: 1;
|
|
36
|
-
readonly max: 254;
|
|
37
|
-
};
|
|
38
|
-
readonly minLevel: {
|
|
39
|
-
readonly default: 1;
|
|
40
|
-
readonly min: 1;
|
|
41
|
-
readonly max: 2;
|
|
42
|
-
};
|
|
43
|
-
readonly maxLevel: {
|
|
44
|
-
readonly default: 254;
|
|
45
|
-
readonly min: 254;
|
|
46
|
-
readonly max: 255;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
}>, import("@project-chip/matter.js/behavior/cluster").ClusterBehavior.Type<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").ClusterComposer.WithFeatures<import("@project-chip/matter.js/cluster").LevelControl.Cluster, readonly [import("@project-chip/matter.js/cluster").LevelControl.Feature.OnOff, import("@project-chip/matter.js/cluster").LevelControl.Feature.Lighting]>, readonly [import("@project-chip/matter.js/cluster").LevelControl.Feature.OnOff]>, readonly ["Lighting", "OnOff"]>, typeof LevelControlServer, LevelControlInterface>, LevelControlInterface>>);
|
|
50
|
-
export declare class ISYDimmableBehavior extends ISYDimmableBehavior_base {
|
|
51
|
-
initialize(_options?: {}): Promise<void>;
|
|
52
|
-
setLevel(level: number): MaybePromise<void>;
|
|
53
|
-
}
|
|
54
|
-
export {};
|
|
55
|
-
//# sourceMappingURL=ISYOnOffBehavior.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ISYOnOffBehavior.d.ts","sourceRoot":"","sources":["../../../../../src/Matter/Behaviors/ISYOnOffBehavior.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AACjH,OAAO,KAAK,EAAiB,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAK3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AACvF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AAEjF,OAAO,EAA0C,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;;AAItG,qBAAa,gBAAiB,SAAQ,qBAA0E;IAChG,UAAU,CAAC,QAAQ,CAAC,EAAE,EAAE;IAM9B,EAAE,sBAKT;IAEa,GAAG;IAOT,MAAM,sBAEb;IAEa,oBAAoB,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,cAAc,CAAC,kBAAkB,CAAC;CAItH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED,qBAAa,mBAAoB,SAAQ,wBAAuF;IAChH,UAAU,CAAC,QAAQ,CAAC,EAAE,EAAE;IAQ9B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC;CAQpD"}
|