/
index.js
814 lines (755 loc) · 22.5 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
import uuid from 'uuid';
import {StatelessSparkPlugin} from '@ciscospark/spark-core';
import Roap from '../roap/index';
import Media from '../media';
import MeetingStateMachine from '../meeting/state';
import AudioStateMachine from '../meeting/audio';
import VideoStateMachine from '../meeting/video';
import PeerConnectionManager from '../peer-connection-manager';
import MeetingRequest from '../meeting/request';
import Participants from '../participants/index';
import MeetingUtil from '../meeting/util';
import WebRTCStats from '../stats/index';
import IntentToJoinError from '../errors/intent-to-join';
import JoinMeetingError from '../errors/join-meeting';
import {MEETINGS, EVENT_TRIGGERS, EVENT_TYPES, FLOOR_ACTION, BUSY, OUTGOING} from '../constants';
/**
* @export
* @class Meeting
*/
export default class Meeting extends StatelessSparkPlugin {
namespace = MEETINGS;
/**
* Create an instance of Meeting
*
* @param {Object} attrs
* @param {Object} options
* @memberof Meeting
*/
constructor(attrs, options) {
super({}, options);
this.attrs = attrs;
this.options = options;
this.id = uuid.v4();
this.userId = attrs.userId;
this.resource = attrs.resource;
this.deviceUrl = attrs.deviceUrl;
this.roapSeq = 0;
this.meetingInfo = attrs.meetingInfo || {};
this.meetingRequest = new MeetingRequest({}, options);
this.participants = new Participants({}, {parent: this.spark});
this.roap = new Roap({}, options);
this.audio = null;
this.video = null;
this.state = MeetingStateMachine.create(this);
this.stats = null;
this.convoId = null;
this.locusUrl = null;
this.sipUri = null;
this.partner = null;
this.type = null;
this.owner = null;
this.hostId = null;
}
/**
* invite a guest to the call that isn't normally part of this call
* @param {Object} invitee with {emailAddress or email}
* @param {Boolean} alertIfActive optional
* @returns {Promise}
* @memberof Meeting
*/
invite(invitee, alertIfActive = true) {
return this.participants.addParticipant(invitee, alertIfActive);
}
/**
* admit the guest(s) to the call once they are waiting
* @param {Array} participantIds
* @returns {Promise}
* @memberof Meeting
*/
admit(participantIds) {
return this.participants.admitParticipants(participantIds);
}
/**
* Reference to the Participants object
* @returns {Participants}
* @memberof Meeting
*/
getParticipants() {
return this.participants;
}
/**
* Reference to the stats builder object
* @param {Object} options - optional {media: {}, screen: {}} see stats/index
* @returns {MeetingStats}
* @memberof Meeting
*/
getStats(options) {
if (!this.stats) {
return this.createStats(options);
}
return this.stats;
}
/**
* Overwrite the stats builder object
* @param {Object} options - optional {media: {}, screen: {}} see stats/index
* @returns {MeetingStats}
* @memberof Meeting
*/
createStats(options) {
this.stats = new WebRTCStats(this.attrs, this.options, options);
return this.stats;
}
/**
* Convenience function to tell whether a meeting is muted
* @returns {Boolean} if meeting audio muted or not
* @memberof Meeting
*/
isAudioMuted() {
return this.audio.isMuted();
}
/**
* Convenience function to tell if the end user last changed the audio state
* @returns {Boolean} if audio was manipulated by the end user
* @memberof Meeting
*/
isAudioSelf() {
return this.audio.isSelf();
}
/**
* Convenience function to tell whether video is muted
* @returns {Boolean} if meeting video is muted or not
* @memberof Meeting
*/
isVideoMuted() {
return this.video.isMuted();
}
/**
* Convenience function to tell whether the end user changed the video state
* @returns {Boolean} if meeting video is muted or not
* @memberof Meeting
*/
isVideoSelf() {
return this.video.isSelf();
}
/**
* Sets the meeting info on the class instance
* @param {Object} meetingInfo
* @returns {null}
* @memberof Meeting
*/
parseMeetingInfo(meetingInfo) {
// MeetingInfo will be undefined for 1:1 calls
if (meetingInfo && !(this.meetingInfo.errors && this.meetingInfo.errors.length > 0)) {
this.convoId = this.meetingInfo.convoId || this.convoId;
this.locusUrl = this.meetingInfo.locusUrl || this.locusUrl;
this.sipUri = this.meetingInfo.sipMeetingUri || this.sipUri;
this.owner = this.meetingInfo.owner || this.owner;
}
}
/**
* Sets the first locus info on the class instance
* @param {Object} locus
* @returns {null}
* @memberof Meeting
*/
parseLocus(locus) {
if (locus) {
this.locusUrl = locus.url;
if (locus.info) {
this.type = MeetingUtil.getLocusType(locus.info.locusTags);
}
if (locus.participants && locus.self) {
this.partner = MeetingUtil.getLocusPartner(locus.participants, locus.self);
}
if (this.partner) {
this.sipUri = this.partner.person.sipUrl || this.partner.person.emailAddress || this.partner.person.email;
}
this.setLocus(locus);
}
}
/**
* Sets the sip uri on the class instance
* uses meeting info as precedence
* @param {String} sipUri
* @returns {null}
* @memberof Meeting
*/
setSipUri(sipUri) {
// This can be tel no, device id or a sip uri, user Id
this.sipUri = sipUri;
}
/**
* Set the roap seq on the class instance
* @param {Number} seq
* @returns {null}
* @memberof Meeting
*/
setRoapSeq(seq) {
if (seq) {
this.roapSeq = seq;
}
}
/**
* // TODO: change name to genertic parser
* Set the locus info the class instance
* @param {Object} locus
* @returns {null}
* @memberof Meeting
*/
setLocus(locus) {
const mtgLocus = locus.locus || locus;
this.locus = mtgLocus;
this.mediaConnections = locus.mediaConnections;
this.locusUrl = locus.locusUrl || locus.url;
this.locusId = locus.locusId;
this.selfId = locus.selfId;
this.mediaId = locus.mediaId;
this.hostId = mtgLocus.host ? mtgLocus.host.id : this.hostId;
this.participants.set(mtgLocus);
}
/**
* Sets the remote stream on the class instance and emits and
* event do developers
* @param {Object} pc The remote stream peer connection
* @returns {null}
* @memberof Meeting
*/
setRemoteStream(pc) {
if (!pc) {
return;
}
// eslint-disable-next-line no-param-reassign
pc.ontrack = (event) => {
[this.remoteStream] = event.streams;
// eslint-disable-next-line no-warning-comments
// TODO: It's possible for media to not be present
// so we might need to either
// A) wait until we have media flowing
// B) trigger a second event when video is flowing
this.trigger(EVENT_TRIGGERS.MEDIA_READY, {
type: EVENT_TYPES.REMOTE,
stream: this.remoteStream
});
};
}
/**
* Removes the remote stream on the class instance and triggers an event
* to developers
* @returns {null}
* @memberof Meeting
*/
unsetRemoteStream() {
this.remoteStream = null;
}
/**
* Removes the remote stream on the class instance and triggers an event
* to developers
* @returns {null}
* @memberof Meeting
*/
closeRemoteStream() {
return Media.stopStream(this.remoteStream).then(() => {
this.trigger(EVENT_TRIGGERS.MEDIA_STOPPED, {
type: EVENT_TYPES.REMOTE
});
});
}
/**
* Sets the sceen stream on the class instance and triggers and event to developers
* @param {Object} pc a peer connection instance for the screen
* @returns {null}
* @memberof Meeting
*/
setShareStream(pc) {
if (!pc) {
return;
}
// eslint-disable-next-line no-param-reassign
pc.ontrack = (event) => {
[this.remoteShare] = event.streams;
this.trigger(EVENT_TRIGGERS.MEDIA_READY, {
type: EVENT_TYPES.REMOTE_SHARE,
stream: this.remoteShare
});
};
}
/**
* Sets the local media stream on the class and emits an event to the developer
* @param {Steam} localStream the local media stream
* @returns {null}
* @memberof Meeting
*/
setLocalStream(localStream) {
if (localStream) {
this.localStream = localStream;
this.trigger(EVENT_TRIGGERS.MEDIA_READY, {
type: EVENT_TYPES.LOCAL,
stream: this.localStream
});
}
}
/**
* Sets the local media stream on the class and emits an event to the developer
* @param {Steam} localShare the local media stream
* @returns {null}
* @memberof Meeting
*/
setLocalShare(localShare) {
if (localShare) {
this.localShare = localShare;
this.trigger(EVENT_TRIGGERS.MEDIA_READY, {
type: EVENT_TYPES.LOCAL_SHARE,
stream: this.localShare
});
}
}
/**
* Closes the local stream from the class and emits an event to the developer
* @returns {null}
* @memberof Meeting
*/
closeLocalStream() {
return Media.stopStream(this.localStream).then(() => {
this.trigger(EVENT_TRIGGERS.MEDIA_STOPPED, {
type: EVENT_TYPES.LOCAL
});
});
}
/**
* Closes the local stream from the class and emits an event to the developer
* @returns {null}
* @memberof Meeting
*/
closeLocalShare() {
return Media.stopStream(this.localShare).then(() => {
this.trigger(EVENT_TRIGGERS.MEDIA_STOPPED, {
type: EVENT_TYPES.LOCAL_SHARE
});
});
}
/**
* Removes the local stream from the class and emits an event to the developer
* @returns {null}
* @memberof Meeting
*/
unsetLocalStream() {
this.localStream = null;
}
/**
* Removes the local share from the class and emits an event to the developer
* @returns {null}
* @memberof Meeting
*/
unsetLocalShare() {
this.localShare = null;
}
/**
* Sets the peer connections on the class
* @param {PeerConnection} mediaPeerConnection
* @param {PeerConnection} sharePeerConnection
* @returns {null}
* @memberof Meeting
*/
setPeerConnections(mediaPeerConnection, sharePeerConnection) {
this.mediaPeerConnection = mediaPeerConnection;
this.sharePeerConnection = sharePeerConnection;
}
/**
* Close the peer connections and remove them from the class. Triggers an event
* when each is closed.
* @returns {Promise} returns a resolved promise with an array of closed peer connections
* @memberof Meeting
*/
closePeerConnections() {
return Promise.all([
PeerConnectionManager.close(this.mediaPeerConnection),
PeerConnectionManager.close(this.sharePeerConnection)
]);
}
/**
* Unsets the peer connections on the class
* @param {PeerConnection} mediaPeerConnection
* @param {PeerConnection} sharePeerConnection
* @returns {null}
* @memberof Meeting
*/
unsetPeerConnections() {
this.mediaPeerConnection = null;
this.sharePeerConnection = null;
}
/**
* Convenience method to set the correlation id for the Meeting
* @param {String} id correlation id to set on the class
* @returns {null}
* @memberof Meeting
*/
setCorrelationId(id) {
this.correlationId = id;
}
/**
* Mute the audio for a meeting
* @returns {Promise} resolves the data from muting audio {mute, self}
* @returns {Error} an error if there is no audio state machine
* @memberof Meeting
*/
muteAudio() {
if (!this.audio || (this.audio && !this.audio.toggle)) {
return Promise.reject(new Error('no audio control associated to the meeting'));
}
return this.audio.toggle({
mute: true,
self: true
});
}
/**
* Unmute meeting audio
* @returns {Promise} resolves data from muting audio {mute, self}
* @returns {Error} an error if there is no audio state machine
* @memberof Meeting
*/
unmuteAudio() {
if (!this.audio || (this.audio && !this.audio.toggle)) {
return Promise.reject(new Error('no audio control associated to the meeting'));
}
return this.audio.toggle({
mute: false,
self: true
});
}
/**
* Mute the video for a meeting
* @returns {Promise} resolves data from muting video {mute, self}
* @returns {Error} an error if there is no video state machine
* @memberof Meeting
*/
muteVideo() {
if (!this.video || (this.video && !this.video.toggle)) {
return Promise.reject(new Error('no video control associated to the meeting'));
}
return this.video.toggle({
mute: true,
self: true
});
}
/**
* Unmute meeting video
* @returns {Promise} resolves data from muting video {mute, self}
* @returns {Error} an error if there is no video state machine
* @memberof Meeting
*/
unmuteVideo() {
if (!this.video || (this.video && !this.video.toggle)) {
return Promise.reject(new Error('no audio control associated to the meeting'));
}
const options = {};
options.mute = false;
options.self = true;
return this.video.toggle({
mute: false,
self: true
});
}
/**
*
* Specify joining via audio (option: pstn), video, screenshare
* @exports
* @param {object} options A configurable options object for joining a meeting
* @param {String} options.resourceId pass the deviceId
* @param {Number} options.hostPin pass the host pin
* @param {Boolean} options.moderator pass the moderator flag
* @returns {Promise}
* @memberof Meeting
* Scenario A: Joining own claimed personal meeting room, don't pass hostPin, do pass moderator
* Scenario B: Joining other's claimed personal meeting room, do pass hostPin (if desired to join as host, or nullify), do pass moderator
* Scenario C: Joining an unclaimed personal meeting room, -do not- pass hostPin or moderator on first try, -do- pass hostPin and moderator
* if joining as host on second loop, -do not- pass hostPin do pass moderator if joining as guest on second loop
* Scenario D: Joining any other way (sip, pstn, convoId, link just need to specify resourceId)
*/
join(options = {}) {
this.resourceId = options.resourceId;
this.setCorrelationId(this.id);
// this.state.join();
this.spark.meetings.notifyRinging(this, OUTGOING);
// TODO: this should be removed following locus changes.
options = MeetingUtil.cleanOptions(options, this.meetingInfo, this.owner, this.userId);
// normal join meeting, scenario A, D
return MeetingUtil.joinMeeting(this, options)
.then((response) => {
this.setLocus(response);
this.spark.meetings.notifyRinging(this, null, false);
return response;
// this.state.connect();
})
.catch((err) => {
this.spark.meetings.notifyRinging(this, null, false);
// joining a claimed PMR that is not my own, scenario B
if (MeetingUtil.isPinOrGuest(err)) {
if (MeetingUtil.hasOwner(this.meetingInfo)) {
return MeetingUtil.joinMeeting(this, options)
.then((response) => {
this.setLocus(response);
return response;
// this.state.connect();
});
}
// request host pin or non host for unclaimed PMR, start of Scenario C
// see https://sqbu-github.cisco.com/WebExSquared/locus/wiki/Locus-Lobby-and--IVR-Feature
return Promise.reject(new IntentToJoinError(err));
}
this.logger.log('Meeting:index#join --> Error joining the call on getLocalMedia, ', err);
return Promise.reject(new JoinMeetingError(err, options));
});
}
/**
*
* get local media streams based on options passed
* @exports
* @param {object} mediaDirection A configurable options object for joining a meeting
* @returns {Promise}
* @memberof Meeting
*/
getMediaStreams = (mediaDirection) => Media.getUserMedia(mediaDirection)
/**
*
* Specify joining via audio (option: pstn), video, screenshare
* @exports
* @param {object} options A configurable options object for joining a meeting
* @param {Object } options.resourceId pass the deviceId
* @returns {Promise}
* @memberof Meeting
*/
addMedia(options = {}) {
const {localStream, localShare} = options;
// eslint-disable-next-line no-warning-comments
// TODO wire into default config. There's currently an issue with the stateless plugin or how we register
const mediaDirection = Object.assign(this.config.mediaSettings, options.mediaSettings);
// add a setup a function move the create and setup media in future
this.audio = AudioStateMachine.create(mediaDirection, this);
this.video = VideoStateMachine.create(mediaDirection, this);
// this.state.local();
this.setLocalStream(localStream);
this.setLocalShare(localShare);
return Media.attachMedia(mediaDirection, PeerConnectionManager, localStream, localShare)
.then(([mediaPeerConnection, sharePeerConnection]) => {
const updatedsharePeerConnection = PeerConnectionManager.setContentSlides(sharePeerConnection);
this.setPeerConnections(mediaPeerConnection, updatedsharePeerConnection);
this.setRemoteStream(this.mediaPeerConnection);
this.setShareStream(this.sharePeerConnection);
return this.roap.start();
})
.catch((err) => {
this.logger.log('Meeting:index#join --> Error joining the call on roap initialization, ', err);
throw err;
})
.then(() =>
this.roap
.sendRoapMediaRequest({
sdps: MeetingUtil.getSdps(this),
roapSeq: this.roapSeq,
meeting: this // or can pass meeting ID
})
.catch((err) => {
this.logger.error('Meeting:index#join --> Error joining the call on send roap media request, ', err);
throw err;
}))
.then(() => {
// this.state.establish();
});
}
/**
* acknowledge the incoming meeting
* @returns {Promise}
* @memberof Meeting
*/
acknowledge() {
return this.meetingRequest
.acknowledgeMeeting({
locusUrl: this.locusUrl,
deviceUrl: this.deviceUrl,
id: this.id
})
.then((response) => {
this.trigger(EVENT_TRIGGERS.MEETING_ALERTED, this);
return response;
});
}
/**
*
* Decline this meeting
* @param {String} reason
* @returns {Promise}
* @memberof Meeting
*/
decline(reason = BUSY) {
return this.meetingRequest
.declineMeeting({
locusUrl: this.locusUrl,
deviceUrl: this.deviceUrl,
reason
})
.then((response) => this.spark.meetings.destroy(this, response));
}
/**
*
* Leave the current meeting
* @param {Object} options An object of options
* @param {Boolean} options.keepLocalMedia Whether to tear down the local media connections or not.
* @returns {Promise}
* @memberof Meeting
*/
leave() {
// this.state.leave();
return this.meetingRequest
.leaveMeeting({
locusUrl: this.locusUrl,
selfId: this.selfId,
correlationId: this.correlationId,
resourceId: null,
deviceUrl: this.deviceUrl
})
.then(() => this.closeLocalStream())
.then(() => this.closeLocalShare())
.then(() => this.closePeerConnections())
.then(() => {
this.unsetLocalStream();
this.unsetLocalShare();
this.unsetRemoteStream();
this.unsetPeerConnections();
})
.then(() => {
this.roap.stop(this.correlationId, this.roapSeq);
})
.then(() => {
this.state.end();
})
.catch((err) => {
this.state.error();
this.logger.error(`An error occured while trying to leave meeting with an id of ${this.id}`, err);
})
.finally(() => {
this.state.clean();
});
}
// /**
// *
// * Move this meeting to a given device
// * only possible if you are paired with the given device
// * @param {string} deviceID
// * @returns {Promise}
// * @memberof Meeting
// */
// moveToDevice(deviceID) {
// return new Promise((resolve) => resolve(deviceID));
// }
// /**
// *
// * Move this meeting back to the current client device, e.g., personal laptop.
// * @returns {Promise}
// * @memberof Meeting
// */
// moveToClient() {
// return new Promise((resolve) => resolve({}));
// }
// /**
// *
// * Update the audio options of this meeting
// * @param {string} status
// * @returns {Promise}
// * @memberof Meeting
// */
// updateAudio(status) {
// return new Promise((resolve) => resolve(status));
// }
// /**
// *
// * Update the video option of this meeting
// * @param {string} status
// * @returns {Promise}
// * @memberof Meeting
// */
// updateVideo(status) {
// return new Promise((resolve) => resolve(status));
// }
// /**
// *
// * Update screen sharing preference of this meeting
// * @param {string} shareType
// * @returns {Promise}
// * @memberof Meeting
// */
// updateShare(shareType) {
// return new Promise((resolve) => resolve(shareType));
// }
/**
*
* Alias of updateShare
* @param {*} args
* @returns {updateShare}
* @memberof Meeting
*/
share() {
const content = this.locus.mediaShares.find((element) => element.name === 'content');
this.meetingRequest.changeMeetingFloor({
disposition: FLOOR_ACTION.GRANTED,
personUrl: this.locus.self.url,
deviceUrl: this.deviceUrl,
uri: content.url,
resourceUrl: this.resourceUrl
});
}
// /**
// *
// * Send this meeting to the phone system
// * @returns {Promise}
// * @memberof Meeting
// */
// sendDtmf() {
// return new Promise((resolve) => resolve({}));
// }
// /**
// *
// * Get statistics of the current meeting
// * @returns {Promise}
// * @memberof Meeting
// */
// getStats() {
// return new Promise((resolve) => resolve({}));
// }
// /**
// *
// * Lock this meeting
// * @returns {Promise}
// * @memberof Meeting
// */
// lock() {
// return new Promise((resolve) => resolve({}));
// }
// /**
// *
// * Unlock this meeting
// * @returns {Promise}
// * @memberof Meeting
// */
// unlock() {
// return new Promise((resolve) => resolve({}));
// }
// /**
// *
// * Intiate a recording of this meeting
// * @returns {Promise}
// * @memberof Meeting
// */
// startRecording() {
// return new Promise((resolve) => resolve({}));
// }
// /**
// *
// * End the recording of this meeting
// * @returns {Promise}
// * @memberof Meeting
// */
// stopRecording() {
// return new Promise((resolve) => resolve({}));
// }
}