@viamrobotics/sdk 0.2.2 → 0.2.3-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/gantry/client.d.ts +22 -0
- package/dist/components/gantry/gantry.d.ts +29 -0
- package/dist/components/gantry.d.ts +2 -0
- package/dist/gen/service/slam/v1/slam_pb.d.ts +43 -0
- package/dist/gen/service/slam/v1/slam_pb_service.d.ts +19 -0
- package/dist/main.d.ts +11 -28
- package/dist/main.es.js +1029 -834
- package/dist/main.umd.js +8 -8
- package/dist/robot/client.d.ts +2 -0
- package/dist/robot/dial.d.ts +9 -1
- package/package.json +2 -1
package/dist/main.es.js
CHANGED
|
@@ -10710,11 +10710,11 @@ var timestamp_pb = {};
|
|
|
10710
10710
|
}, s.inherits(proto.viam.robot.v1.SendSessionHeartbeatResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.robot.v1.SendSessionHeartbeatResponse.displayName = "proto.viam.robot.v1.SendSessionHeartbeatResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.robot.v1.FrameSystemConfig.prototype.toObject = function(n) {
|
|
10711
10711
|
return proto.viam.robot.v1.FrameSystemConfig.toObject(n, this);
|
|
10712
10712
|
}, proto.viam.robot.v1.FrameSystemConfig.toObject = function(n, l) {
|
|
10713
|
-
var c,
|
|
10713
|
+
var c, m = {
|
|
10714
10714
|
frame: (c = l.getFrame()) && u.Transform.toObject(n, c),
|
|
10715
10715
|
kinematics: (c = l.getKinematics()) && o.Struct.toObject(n, c)
|
|
10716
10716
|
};
|
|
10717
|
-
return n && (
|
|
10717
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
10718
10718
|
}), proto.viam.robot.v1.FrameSystemConfig.deserializeBinary = function(n) {
|
|
10719
10719
|
var l = new e.BinaryReader(n), c = new proto.viam.robot.v1.FrameSystemConfig();
|
|
10720
10720
|
return proto.viam.robot.v1.FrameSystemConfig.deserializeBinaryFromReader(c, l);
|
|
@@ -10723,12 +10723,12 @@ var timestamp_pb = {};
|
|
|
10723
10723
|
var c = l.getFieldNumber();
|
|
10724
10724
|
switch (c) {
|
|
10725
10725
|
case 1:
|
|
10726
|
-
var
|
|
10727
|
-
l.readMessage(
|
|
10726
|
+
var m = new u.Transform();
|
|
10727
|
+
l.readMessage(m, u.Transform.deserializeBinaryFromReader), n.setFrame(m);
|
|
10728
10728
|
break;
|
|
10729
10729
|
case 2:
|
|
10730
|
-
var
|
|
10731
|
-
l.readMessage(
|
|
10730
|
+
var m = new o.Struct();
|
|
10731
|
+
l.readMessage(m, o.Struct.deserializeBinaryFromReader), n.setKinematics(m);
|
|
10732
10732
|
break;
|
|
10733
10733
|
default:
|
|
10734
10734
|
l.skipField();
|
|
@@ -10791,8 +10791,8 @@ var timestamp_pb = {};
|
|
|
10791
10791
|
var c = l.getFieldNumber();
|
|
10792
10792
|
switch (c) {
|
|
10793
10793
|
case 1:
|
|
10794
|
-
var
|
|
10795
|
-
l.readMessage(
|
|
10794
|
+
var m = new u.Transform();
|
|
10795
|
+
l.readMessage(m, u.Transform.deserializeBinaryFromReader), n.addSupplementalTransforms(m);
|
|
10796
10796
|
break;
|
|
10797
10797
|
default:
|
|
10798
10798
|
l.skipField();
|
|
@@ -10840,8 +10840,8 @@ var timestamp_pb = {};
|
|
|
10840
10840
|
var c = l.getFieldNumber();
|
|
10841
10841
|
switch (c) {
|
|
10842
10842
|
case 1:
|
|
10843
|
-
var
|
|
10844
|
-
l.readMessage(
|
|
10843
|
+
var m = new proto.viam.robot.v1.FrameSystemConfig();
|
|
10844
|
+
l.readMessage(m, proto.viam.robot.v1.FrameSystemConfig.deserializeBinaryFromReader), n.addFrameSystemConfigs(m);
|
|
10845
10845
|
break;
|
|
10846
10846
|
default:
|
|
10847
10847
|
l.skipField();
|
|
@@ -10873,7 +10873,7 @@ var timestamp_pb = {};
|
|
|
10873
10873
|
}, proto.viam.robot.v1.TransformPoseRequest.repeatedFields_ = [3], e.Message.GENERATE_TO_OBJECT && (proto.viam.robot.v1.TransformPoseRequest.prototype.toObject = function(n) {
|
|
10874
10874
|
return proto.viam.robot.v1.TransformPoseRequest.toObject(n, this);
|
|
10875
10875
|
}, proto.viam.robot.v1.TransformPoseRequest.toObject = function(n, l) {
|
|
10876
|
-
var c,
|
|
10876
|
+
var c, m = {
|
|
10877
10877
|
source: (c = l.getSource()) && u.PoseInFrame.toObject(n, c),
|
|
10878
10878
|
destination: e.Message.getFieldWithDefault(l, 2, ""),
|
|
10879
10879
|
supplementalTransformsList: e.Message.toObjectList(
|
|
@@ -10882,7 +10882,7 @@ var timestamp_pb = {};
|
|
|
10882
10882
|
n
|
|
10883
10883
|
)
|
|
10884
10884
|
};
|
|
10885
|
-
return n && (
|
|
10885
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
10886
10886
|
}), proto.viam.robot.v1.TransformPoseRequest.deserializeBinary = function(n) {
|
|
10887
10887
|
var l = new e.BinaryReader(n), c = new proto.viam.robot.v1.TransformPoseRequest();
|
|
10888
10888
|
return proto.viam.robot.v1.TransformPoseRequest.deserializeBinaryFromReader(c, l);
|
|
@@ -10891,19 +10891,19 @@ var timestamp_pb = {};
|
|
|
10891
10891
|
var c = l.getFieldNumber();
|
|
10892
10892
|
switch (c) {
|
|
10893
10893
|
case 1:
|
|
10894
|
-
var
|
|
10895
|
-
l.readMessage(
|
|
10894
|
+
var m = new u.PoseInFrame();
|
|
10895
|
+
l.readMessage(m, u.PoseInFrame.deserializeBinaryFromReader), n.setSource(m);
|
|
10896
10896
|
break;
|
|
10897
10897
|
case 2:
|
|
10898
|
-
var
|
|
10898
|
+
var m = (
|
|
10899
10899
|
/** @type {string} */
|
|
10900
10900
|
l.readString()
|
|
10901
10901
|
);
|
|
10902
|
-
n.setDestination(
|
|
10902
|
+
n.setDestination(m);
|
|
10903
10903
|
break;
|
|
10904
10904
|
case 3:
|
|
10905
|
-
var
|
|
10906
|
-
l.readMessage(
|
|
10905
|
+
var m = new u.Transform();
|
|
10906
|
+
l.readMessage(m, u.Transform.deserializeBinaryFromReader), n.addSupplementalTransforms(m);
|
|
10907
10907
|
break;
|
|
10908
10908
|
default:
|
|
10909
10909
|
l.skipField();
|
|
@@ -10960,10 +10960,10 @@ var timestamp_pb = {};
|
|
|
10960
10960
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.robot.v1.TransformPoseResponse.prototype.toObject = function(n) {
|
|
10961
10961
|
return proto.viam.robot.v1.TransformPoseResponse.toObject(n, this);
|
|
10962
10962
|
}, proto.viam.robot.v1.TransformPoseResponse.toObject = function(n, l) {
|
|
10963
|
-
var c,
|
|
10963
|
+
var c, m = {
|
|
10964
10964
|
pose: (c = l.getPose()) && u.PoseInFrame.toObject(n, c)
|
|
10965
10965
|
};
|
|
10966
|
-
return n && (
|
|
10966
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
10967
10967
|
}), proto.viam.robot.v1.TransformPoseResponse.deserializeBinary = function(n) {
|
|
10968
10968
|
var l = new e.BinaryReader(n), c = new proto.viam.robot.v1.TransformPoseResponse();
|
|
10969
10969
|
return proto.viam.robot.v1.TransformPoseResponse.deserializeBinaryFromReader(c, l);
|
|
@@ -10972,8 +10972,8 @@ var timestamp_pb = {};
|
|
|
10972
10972
|
var c = l.getFieldNumber();
|
|
10973
10973
|
switch (c) {
|
|
10974
10974
|
case 1:
|
|
10975
|
-
var
|
|
10976
|
-
l.readMessage(
|
|
10975
|
+
var m = new u.PoseInFrame();
|
|
10976
|
+
l.readMessage(m, u.PoseInFrame.deserializeBinaryFromReader), n.setPose(m);
|
|
10977
10977
|
break;
|
|
10978
10978
|
default:
|
|
10979
10979
|
l.skipField();
|
|
@@ -11019,25 +11019,25 @@ var timestamp_pb = {};
|
|
|
11019
11019
|
var c = l.getFieldNumber();
|
|
11020
11020
|
switch (c) {
|
|
11021
11021
|
case 1:
|
|
11022
|
-
var
|
|
11022
|
+
var m = (
|
|
11023
11023
|
/** @type {!Uint8Array} */
|
|
11024
11024
|
l.readBytes()
|
|
11025
11025
|
);
|
|
11026
|
-
n.setPointCloudPcd(
|
|
11026
|
+
n.setPointCloudPcd(m);
|
|
11027
11027
|
break;
|
|
11028
11028
|
case 2:
|
|
11029
|
-
var
|
|
11029
|
+
var m = (
|
|
11030
11030
|
/** @type {string} */
|
|
11031
11031
|
l.readString()
|
|
11032
11032
|
);
|
|
11033
|
-
n.setSource(
|
|
11033
|
+
n.setSource(m);
|
|
11034
11034
|
break;
|
|
11035
11035
|
case 3:
|
|
11036
|
-
var
|
|
11036
|
+
var m = (
|
|
11037
11037
|
/** @type {string} */
|
|
11038
11038
|
l.readString()
|
|
11039
11039
|
);
|
|
11040
|
-
n.setDestination(
|
|
11040
|
+
n.setDestination(m);
|
|
11041
11041
|
break;
|
|
11042
11042
|
default:
|
|
11043
11043
|
l.skipField();
|
|
@@ -11110,11 +11110,11 @@ var timestamp_pb = {};
|
|
|
11110
11110
|
var c = l.getFieldNumber();
|
|
11111
11111
|
switch (c) {
|
|
11112
11112
|
case 1:
|
|
11113
|
-
var
|
|
11113
|
+
var m = (
|
|
11114
11114
|
/** @type {!Uint8Array} */
|
|
11115
11115
|
l.readBytes()
|
|
11116
11116
|
);
|
|
11117
|
-
n.setPointCloudPcd(
|
|
11117
|
+
n.setPointCloudPcd(m);
|
|
11118
11118
|
break;
|
|
11119
11119
|
default:
|
|
11120
11120
|
l.skipField();
|
|
@@ -11193,8 +11193,8 @@ var timestamp_pb = {};
|
|
|
11193
11193
|
var c = l.getFieldNumber();
|
|
11194
11194
|
switch (c) {
|
|
11195
11195
|
case 1:
|
|
11196
|
-
var
|
|
11197
|
-
l.readMessage(
|
|
11196
|
+
var m = new u.ResourceName();
|
|
11197
|
+
l.readMessage(m, u.ResourceName.deserializeBinaryFromReader), n.addResources(m);
|
|
11198
11198
|
break;
|
|
11199
11199
|
default:
|
|
11200
11200
|
l.skipField();
|
|
@@ -11226,11 +11226,11 @@ var timestamp_pb = {};
|
|
|
11226
11226
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.robot.v1.ResourceRPCSubtype.prototype.toObject = function(n) {
|
|
11227
11227
|
return proto.viam.robot.v1.ResourceRPCSubtype.toObject(n, this);
|
|
11228
11228
|
}, proto.viam.robot.v1.ResourceRPCSubtype.toObject = function(n, l) {
|
|
11229
|
-
var c,
|
|
11229
|
+
var c, m = {
|
|
11230
11230
|
subtype: (c = l.getSubtype()) && u.ResourceName.toObject(n, c),
|
|
11231
11231
|
protoService: e.Message.getFieldWithDefault(l, 2, "")
|
|
11232
11232
|
};
|
|
11233
|
-
return n && (
|
|
11233
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
11234
11234
|
}), proto.viam.robot.v1.ResourceRPCSubtype.deserializeBinary = function(n) {
|
|
11235
11235
|
var l = new e.BinaryReader(n), c = new proto.viam.robot.v1.ResourceRPCSubtype();
|
|
11236
11236
|
return proto.viam.robot.v1.ResourceRPCSubtype.deserializeBinaryFromReader(c, l);
|
|
@@ -11239,15 +11239,15 @@ var timestamp_pb = {};
|
|
|
11239
11239
|
var c = l.getFieldNumber();
|
|
11240
11240
|
switch (c) {
|
|
11241
11241
|
case 1:
|
|
11242
|
-
var
|
|
11243
|
-
l.readMessage(
|
|
11242
|
+
var m = new u.ResourceName();
|
|
11243
|
+
l.readMessage(m, u.ResourceName.deserializeBinaryFromReader), n.setSubtype(m);
|
|
11244
11244
|
break;
|
|
11245
11245
|
case 2:
|
|
11246
|
-
var
|
|
11246
|
+
var m = (
|
|
11247
11247
|
/** @type {string} */
|
|
11248
11248
|
l.readString()
|
|
11249
11249
|
);
|
|
11250
|
-
n.setProtoService(
|
|
11250
|
+
n.setProtoService(m);
|
|
11251
11251
|
break;
|
|
11252
11252
|
default:
|
|
11253
11253
|
l.skipField();
|
|
@@ -11327,8 +11327,8 @@ var timestamp_pb = {};
|
|
|
11327
11327
|
var c = l.getFieldNumber();
|
|
11328
11328
|
switch (c) {
|
|
11329
11329
|
case 1:
|
|
11330
|
-
var
|
|
11331
|
-
l.readMessage(
|
|
11330
|
+
var m = new proto.viam.robot.v1.ResourceRPCSubtype();
|
|
11331
|
+
l.readMessage(m, proto.viam.robot.v1.ResourceRPCSubtype.deserializeBinaryFromReader), n.addResourceRpcSubtypes(m);
|
|
11332
11332
|
break;
|
|
11333
11333
|
default:
|
|
11334
11334
|
l.skipField();
|
|
@@ -11360,14 +11360,14 @@ var timestamp_pb = {};
|
|
|
11360
11360
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.robot.v1.Operation.prototype.toObject = function(n) {
|
|
11361
11361
|
return proto.viam.robot.v1.Operation.toObject(n, this);
|
|
11362
11362
|
}, proto.viam.robot.v1.Operation.toObject = function(n, l) {
|
|
11363
|
-
var c,
|
|
11363
|
+
var c, m = {
|
|
11364
11364
|
id: e.Message.getFieldWithDefault(l, 1, ""),
|
|
11365
11365
|
method: e.Message.getFieldWithDefault(l, 2, ""),
|
|
11366
11366
|
arguments: (c = l.getArguments()) && o.Struct.toObject(n, c),
|
|
11367
11367
|
started: (c = l.getStarted()) && r.Timestamp.toObject(n, c),
|
|
11368
11368
|
sessionId: e.Message.getFieldWithDefault(l, 5, "")
|
|
11369
11369
|
};
|
|
11370
|
-
return n && (
|
|
11370
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
11371
11371
|
}), proto.viam.robot.v1.Operation.deserializeBinary = function(n) {
|
|
11372
11372
|
var l = new e.BinaryReader(n), c = new proto.viam.robot.v1.Operation();
|
|
11373
11373
|
return proto.viam.robot.v1.Operation.deserializeBinaryFromReader(c, l);
|
|
@@ -11376,33 +11376,33 @@ var timestamp_pb = {};
|
|
|
11376
11376
|
var c = l.getFieldNumber();
|
|
11377
11377
|
switch (c) {
|
|
11378
11378
|
case 1:
|
|
11379
|
-
var
|
|
11379
|
+
var m = (
|
|
11380
11380
|
/** @type {string} */
|
|
11381
11381
|
l.readString()
|
|
11382
11382
|
);
|
|
11383
|
-
n.setId(
|
|
11383
|
+
n.setId(m);
|
|
11384
11384
|
break;
|
|
11385
11385
|
case 2:
|
|
11386
|
-
var
|
|
11386
|
+
var m = (
|
|
11387
11387
|
/** @type {string} */
|
|
11388
11388
|
l.readString()
|
|
11389
11389
|
);
|
|
11390
|
-
n.setMethod(
|
|
11390
|
+
n.setMethod(m);
|
|
11391
11391
|
break;
|
|
11392
11392
|
case 3:
|
|
11393
|
-
var
|
|
11394
|
-
l.readMessage(
|
|
11393
|
+
var m = new o.Struct();
|
|
11394
|
+
l.readMessage(m, o.Struct.deserializeBinaryFromReader), n.setArguments(m);
|
|
11395
11395
|
break;
|
|
11396
11396
|
case 4:
|
|
11397
|
-
var
|
|
11398
|
-
l.readMessage(
|
|
11397
|
+
var m = new r.Timestamp();
|
|
11398
|
+
l.readMessage(m, r.Timestamp.deserializeBinaryFromReader), n.setStarted(m);
|
|
11399
11399
|
break;
|
|
11400
11400
|
case 5:
|
|
11401
|
-
var
|
|
11401
|
+
var m = (
|
|
11402
11402
|
/** @type {string} */
|
|
11403
11403
|
l.readString()
|
|
11404
11404
|
);
|
|
11405
|
-
n.setSessionId(
|
|
11405
|
+
n.setSessionId(m);
|
|
11406
11406
|
break;
|
|
11407
11407
|
default:
|
|
11408
11408
|
l.skipField();
|
|
@@ -11522,8 +11522,8 @@ var timestamp_pb = {};
|
|
|
11522
11522
|
var c = l.getFieldNumber();
|
|
11523
11523
|
switch (c) {
|
|
11524
11524
|
case 1:
|
|
11525
|
-
var
|
|
11526
|
-
l.readMessage(
|
|
11525
|
+
var m = new proto.viam.robot.v1.Operation();
|
|
11526
|
+
l.readMessage(m, proto.viam.robot.v1.Operation.deserializeBinaryFromReader), n.addOperations(m);
|
|
11527
11527
|
break;
|
|
11528
11528
|
default:
|
|
11529
11529
|
l.skipField();
|
|
@@ -11567,11 +11567,11 @@ var timestamp_pb = {};
|
|
|
11567
11567
|
var c = l.getFieldNumber();
|
|
11568
11568
|
switch (c) {
|
|
11569
11569
|
case 1:
|
|
11570
|
-
var
|
|
11570
|
+
var m = (
|
|
11571
11571
|
/** @type {string} */
|
|
11572
11572
|
l.readString()
|
|
11573
11573
|
);
|
|
11574
|
-
n.setId(
|
|
11574
|
+
n.setId(m);
|
|
11575
11575
|
break;
|
|
11576
11576
|
default:
|
|
11577
11577
|
l.skipField();
|
|
@@ -11632,11 +11632,11 @@ var timestamp_pb = {};
|
|
|
11632
11632
|
var c = l.getFieldNumber();
|
|
11633
11633
|
switch (c) {
|
|
11634
11634
|
case 1:
|
|
11635
|
-
var
|
|
11635
|
+
var m = (
|
|
11636
11636
|
/** @type {string} */
|
|
11637
11637
|
l.readString()
|
|
11638
11638
|
);
|
|
11639
|
-
n.setId(
|
|
11639
|
+
n.setId(m);
|
|
11640
11640
|
break;
|
|
11641
11641
|
default:
|
|
11642
11642
|
l.skipField();
|
|
@@ -11699,25 +11699,25 @@ var timestamp_pb = {};
|
|
|
11699
11699
|
var c = l.getFieldNumber();
|
|
11700
11700
|
switch (c) {
|
|
11701
11701
|
case 1:
|
|
11702
|
-
var
|
|
11702
|
+
var m = (
|
|
11703
11703
|
/** @type {!proto.viam.robot.v1.PeerConnectionType} */
|
|
11704
11704
|
l.readEnum()
|
|
11705
11705
|
);
|
|
11706
|
-
n.setType(
|
|
11706
|
+
n.setType(m);
|
|
11707
11707
|
break;
|
|
11708
11708
|
case 2:
|
|
11709
|
-
var
|
|
11709
|
+
var m = (
|
|
11710
11710
|
/** @type {string} */
|
|
11711
11711
|
l.readString()
|
|
11712
11712
|
);
|
|
11713
|
-
n.setRemoteAddress(
|
|
11713
|
+
n.setRemoteAddress(m);
|
|
11714
11714
|
break;
|
|
11715
11715
|
case 3:
|
|
11716
|
-
var
|
|
11716
|
+
var m = (
|
|
11717
11717
|
/** @type {string} */
|
|
11718
11718
|
l.readString()
|
|
11719
11719
|
);
|
|
11720
|
-
n.setLocalAddress(
|
|
11720
|
+
n.setLocalAddress(m);
|
|
11721
11721
|
break;
|
|
11722
11722
|
default:
|
|
11723
11723
|
l.skipField();
|
|
@@ -11774,11 +11774,11 @@ var timestamp_pb = {};
|
|
|
11774
11774
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.robot.v1.Session.prototype.toObject = function(n) {
|
|
11775
11775
|
return proto.viam.robot.v1.Session.toObject(n, this);
|
|
11776
11776
|
}, proto.viam.robot.v1.Session.toObject = function(n, l) {
|
|
11777
|
-
var c,
|
|
11777
|
+
var c, m = {
|
|
11778
11778
|
id: e.Message.getFieldWithDefault(l, 1, ""),
|
|
11779
11779
|
peerConnectionInfo: (c = l.getPeerConnectionInfo()) && proto.viam.robot.v1.PeerConnectionInfo.toObject(n, c)
|
|
11780
11780
|
};
|
|
11781
|
-
return n && (
|
|
11781
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
11782
11782
|
}), proto.viam.robot.v1.Session.deserializeBinary = function(n) {
|
|
11783
11783
|
var l = new e.BinaryReader(n), c = new proto.viam.robot.v1.Session();
|
|
11784
11784
|
return proto.viam.robot.v1.Session.deserializeBinaryFromReader(c, l);
|
|
@@ -11787,15 +11787,15 @@ var timestamp_pb = {};
|
|
|
11787
11787
|
var c = l.getFieldNumber();
|
|
11788
11788
|
switch (c) {
|
|
11789
11789
|
case 1:
|
|
11790
|
-
var
|
|
11790
|
+
var m = (
|
|
11791
11791
|
/** @type {string} */
|
|
11792
11792
|
l.readString()
|
|
11793
11793
|
);
|
|
11794
|
-
n.setId(
|
|
11794
|
+
n.setId(m);
|
|
11795
11795
|
break;
|
|
11796
11796
|
case 2:
|
|
11797
|
-
var
|
|
11798
|
-
l.readMessage(
|
|
11797
|
+
var m = new proto.viam.robot.v1.PeerConnectionInfo();
|
|
11798
|
+
l.readMessage(m, proto.viam.robot.v1.PeerConnectionInfo.deserializeBinaryFromReader), n.setPeerConnectionInfo(m);
|
|
11799
11799
|
break;
|
|
11800
11800
|
default:
|
|
11801
11801
|
l.skipField();
|
|
@@ -11875,8 +11875,8 @@ var timestamp_pb = {};
|
|
|
11875
11875
|
var c = l.getFieldNumber();
|
|
11876
11876
|
switch (c) {
|
|
11877
11877
|
case 1:
|
|
11878
|
-
var
|
|
11879
|
-
l.readMessage(
|
|
11878
|
+
var m = new proto.viam.robot.v1.Session();
|
|
11879
|
+
l.readMessage(m, proto.viam.robot.v1.Session.deserializeBinaryFromReader), n.addSessions(m);
|
|
11880
11880
|
break;
|
|
11881
11881
|
default:
|
|
11882
11882
|
l.skipField();
|
|
@@ -11921,18 +11921,18 @@ var timestamp_pb = {};
|
|
|
11921
11921
|
var c = l.getFieldNumber();
|
|
11922
11922
|
switch (c) {
|
|
11923
11923
|
case 1:
|
|
11924
|
-
var
|
|
11924
|
+
var m = (
|
|
11925
11925
|
/** @type {string} */
|
|
11926
11926
|
l.readString()
|
|
11927
11927
|
);
|
|
11928
|
-
n.setSubtype(
|
|
11928
|
+
n.setSubtype(m);
|
|
11929
11929
|
break;
|
|
11930
11930
|
case 2:
|
|
11931
|
-
var
|
|
11931
|
+
var m = (
|
|
11932
11932
|
/** @type {string} */
|
|
11933
11933
|
l.readString()
|
|
11934
11934
|
);
|
|
11935
|
-
n.setModel(
|
|
11935
|
+
n.setModel(m);
|
|
11936
11936
|
break;
|
|
11937
11937
|
default:
|
|
11938
11938
|
l.skipField();
|
|
@@ -11969,11 +11969,11 @@ var timestamp_pb = {};
|
|
|
11969
11969
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.robot.v1.Discovery.prototype.toObject = function(n) {
|
|
11970
11970
|
return proto.viam.robot.v1.Discovery.toObject(n, this);
|
|
11971
11971
|
}, proto.viam.robot.v1.Discovery.toObject = function(n, l) {
|
|
11972
|
-
var c,
|
|
11972
|
+
var c, m = {
|
|
11973
11973
|
query: (c = l.getQuery()) && proto.viam.robot.v1.DiscoveryQuery.toObject(n, c),
|
|
11974
11974
|
results: (c = l.getResults()) && o.Struct.toObject(n, c)
|
|
11975
11975
|
};
|
|
11976
|
-
return n && (
|
|
11976
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
11977
11977
|
}), proto.viam.robot.v1.Discovery.deserializeBinary = function(n) {
|
|
11978
11978
|
var l = new e.BinaryReader(n), c = new proto.viam.robot.v1.Discovery();
|
|
11979
11979
|
return proto.viam.robot.v1.Discovery.deserializeBinaryFromReader(c, l);
|
|
@@ -11982,12 +11982,12 @@ var timestamp_pb = {};
|
|
|
11982
11982
|
var c = l.getFieldNumber();
|
|
11983
11983
|
switch (c) {
|
|
11984
11984
|
case 1:
|
|
11985
|
-
var
|
|
11986
|
-
l.readMessage(
|
|
11985
|
+
var m = new proto.viam.robot.v1.DiscoveryQuery();
|
|
11986
|
+
l.readMessage(m, proto.viam.robot.v1.DiscoveryQuery.deserializeBinaryFromReader), n.setQuery(m);
|
|
11987
11987
|
break;
|
|
11988
11988
|
case 2:
|
|
11989
|
-
var
|
|
11990
|
-
l.readMessage(
|
|
11989
|
+
var m = new o.Struct();
|
|
11990
|
+
l.readMessage(m, o.Struct.deserializeBinaryFromReader), n.setResults(m);
|
|
11991
11991
|
break;
|
|
11992
11992
|
default:
|
|
11993
11993
|
l.skipField();
|
|
@@ -12050,8 +12050,8 @@ var timestamp_pb = {};
|
|
|
12050
12050
|
var c = l.getFieldNumber();
|
|
12051
12051
|
switch (c) {
|
|
12052
12052
|
case 1:
|
|
12053
|
-
var
|
|
12054
|
-
l.readMessage(
|
|
12053
|
+
var m = new proto.viam.robot.v1.DiscoveryQuery();
|
|
12054
|
+
l.readMessage(m, proto.viam.robot.v1.DiscoveryQuery.deserializeBinaryFromReader), n.addQueries(m);
|
|
12055
12055
|
break;
|
|
12056
12056
|
default:
|
|
12057
12057
|
l.skipField();
|
|
@@ -12099,8 +12099,8 @@ var timestamp_pb = {};
|
|
|
12099
12099
|
var c = l.getFieldNumber();
|
|
12100
12100
|
switch (c) {
|
|
12101
12101
|
case 1:
|
|
12102
|
-
var
|
|
12103
|
-
l.readMessage(
|
|
12102
|
+
var m = new proto.viam.robot.v1.Discovery();
|
|
12103
|
+
l.readMessage(m, proto.viam.robot.v1.Discovery.deserializeBinaryFromReader), n.addDiscovery(m);
|
|
12104
12104
|
break;
|
|
12105
12105
|
default:
|
|
12106
12106
|
l.skipField();
|
|
@@ -12132,11 +12132,11 @@ var timestamp_pb = {};
|
|
|
12132
12132
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.robot.v1.Status.prototype.toObject = function(n) {
|
|
12133
12133
|
return proto.viam.robot.v1.Status.toObject(n, this);
|
|
12134
12134
|
}, proto.viam.robot.v1.Status.toObject = function(n, l) {
|
|
12135
|
-
var c,
|
|
12135
|
+
var c, m = {
|
|
12136
12136
|
name: (c = l.getName()) && u.ResourceName.toObject(n, c),
|
|
12137
12137
|
status: (c = l.getStatus()) && o.Struct.toObject(n, c)
|
|
12138
12138
|
};
|
|
12139
|
-
return n && (
|
|
12139
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
12140
12140
|
}), proto.viam.robot.v1.Status.deserializeBinary = function(n) {
|
|
12141
12141
|
var l = new e.BinaryReader(n), c = new proto.viam.robot.v1.Status();
|
|
12142
12142
|
return proto.viam.robot.v1.Status.deserializeBinaryFromReader(c, l);
|
|
@@ -12145,12 +12145,12 @@ var timestamp_pb = {};
|
|
|
12145
12145
|
var c = l.getFieldNumber();
|
|
12146
12146
|
switch (c) {
|
|
12147
12147
|
case 1:
|
|
12148
|
-
var
|
|
12149
|
-
l.readMessage(
|
|
12148
|
+
var m = new u.ResourceName();
|
|
12149
|
+
l.readMessage(m, u.ResourceName.deserializeBinaryFromReader), n.setName(m);
|
|
12150
12150
|
break;
|
|
12151
12151
|
case 2:
|
|
12152
|
-
var
|
|
12153
|
-
l.readMessage(
|
|
12152
|
+
var m = new o.Struct();
|
|
12153
|
+
l.readMessage(m, o.Struct.deserializeBinaryFromReader), n.setStatus(m);
|
|
12154
12154
|
break;
|
|
12155
12155
|
default:
|
|
12156
12156
|
l.skipField();
|
|
@@ -12213,8 +12213,8 @@ var timestamp_pb = {};
|
|
|
12213
12213
|
var c = l.getFieldNumber();
|
|
12214
12214
|
switch (c) {
|
|
12215
12215
|
case 1:
|
|
12216
|
-
var
|
|
12217
|
-
l.readMessage(
|
|
12216
|
+
var m = new u.ResourceName();
|
|
12217
|
+
l.readMessage(m, u.ResourceName.deserializeBinaryFromReader), n.addResourceNames(m);
|
|
12218
12218
|
break;
|
|
12219
12219
|
default:
|
|
12220
12220
|
l.skipField();
|
|
@@ -12262,8 +12262,8 @@ var timestamp_pb = {};
|
|
|
12262
12262
|
var c = l.getFieldNumber();
|
|
12263
12263
|
switch (c) {
|
|
12264
12264
|
case 1:
|
|
12265
|
-
var
|
|
12266
|
-
l.readMessage(
|
|
12265
|
+
var m = new proto.viam.robot.v1.Status();
|
|
12266
|
+
l.readMessage(m, proto.viam.robot.v1.Status.deserializeBinaryFromReader), n.addStatus(m);
|
|
12267
12267
|
break;
|
|
12268
12268
|
default:
|
|
12269
12269
|
l.skipField();
|
|
@@ -12295,7 +12295,7 @@ var timestamp_pb = {};
|
|
|
12295
12295
|
}, proto.viam.robot.v1.StreamStatusRequest.repeatedFields_ = [1], e.Message.GENERATE_TO_OBJECT && (proto.viam.robot.v1.StreamStatusRequest.prototype.toObject = function(n) {
|
|
12296
12296
|
return proto.viam.robot.v1.StreamStatusRequest.toObject(n, this);
|
|
12297
12297
|
}, proto.viam.robot.v1.StreamStatusRequest.toObject = function(n, l) {
|
|
12298
|
-
var c,
|
|
12298
|
+
var c, m = {
|
|
12299
12299
|
resourceNamesList: e.Message.toObjectList(
|
|
12300
12300
|
l.getResourceNamesList(),
|
|
12301
12301
|
u.ResourceName.toObject,
|
|
@@ -12303,7 +12303,7 @@ var timestamp_pb = {};
|
|
|
12303
12303
|
),
|
|
12304
12304
|
every: (c = l.getEvery()) && p.Duration.toObject(n, c)
|
|
12305
12305
|
};
|
|
12306
|
-
return n && (
|
|
12306
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
12307
12307
|
}), proto.viam.robot.v1.StreamStatusRequest.deserializeBinary = function(n) {
|
|
12308
12308
|
var l = new e.BinaryReader(n), c = new proto.viam.robot.v1.StreamStatusRequest();
|
|
12309
12309
|
return proto.viam.robot.v1.StreamStatusRequest.deserializeBinaryFromReader(c, l);
|
|
@@ -12312,12 +12312,12 @@ var timestamp_pb = {};
|
|
|
12312
12312
|
var c = l.getFieldNumber();
|
|
12313
12313
|
switch (c) {
|
|
12314
12314
|
case 1:
|
|
12315
|
-
var
|
|
12316
|
-
l.readMessage(
|
|
12315
|
+
var m = new u.ResourceName();
|
|
12316
|
+
l.readMessage(m, u.ResourceName.deserializeBinaryFromReader), n.addResourceNames(m);
|
|
12317
12317
|
break;
|
|
12318
12318
|
case 2:
|
|
12319
|
-
var
|
|
12320
|
-
l.readMessage(
|
|
12319
|
+
var m = new p.Duration();
|
|
12320
|
+
l.readMessage(m, p.Duration.deserializeBinaryFromReader), n.setEvery(m);
|
|
12321
12321
|
break;
|
|
12322
12322
|
default:
|
|
12323
12323
|
l.skipField();
|
|
@@ -12380,8 +12380,8 @@ var timestamp_pb = {};
|
|
|
12380
12380
|
var c = l.getFieldNumber();
|
|
12381
12381
|
switch (c) {
|
|
12382
12382
|
case 1:
|
|
12383
|
-
var
|
|
12384
|
-
l.readMessage(
|
|
12383
|
+
var m = new proto.viam.robot.v1.Status();
|
|
12384
|
+
l.readMessage(m, proto.viam.robot.v1.Status.deserializeBinaryFromReader), n.addStatus(m);
|
|
12385
12385
|
break;
|
|
12386
12386
|
default:
|
|
12387
12387
|
l.skipField();
|
|
@@ -12413,11 +12413,11 @@ var timestamp_pb = {};
|
|
|
12413
12413
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.robot.v1.StopExtraParameters.prototype.toObject = function(n) {
|
|
12414
12414
|
return proto.viam.robot.v1.StopExtraParameters.toObject(n, this);
|
|
12415
12415
|
}, proto.viam.robot.v1.StopExtraParameters.toObject = function(n, l) {
|
|
12416
|
-
var c,
|
|
12416
|
+
var c, m = {
|
|
12417
12417
|
name: (c = l.getName()) && u.ResourceName.toObject(n, c),
|
|
12418
12418
|
params: (c = l.getParams()) && o.Struct.toObject(n, c)
|
|
12419
12419
|
};
|
|
12420
|
-
return n && (
|
|
12420
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
12421
12421
|
}), proto.viam.robot.v1.StopExtraParameters.deserializeBinary = function(n) {
|
|
12422
12422
|
var l = new e.BinaryReader(n), c = new proto.viam.robot.v1.StopExtraParameters();
|
|
12423
12423
|
return proto.viam.robot.v1.StopExtraParameters.deserializeBinaryFromReader(c, l);
|
|
@@ -12426,12 +12426,12 @@ var timestamp_pb = {};
|
|
|
12426
12426
|
var c = l.getFieldNumber();
|
|
12427
12427
|
switch (c) {
|
|
12428
12428
|
case 1:
|
|
12429
|
-
var
|
|
12430
|
-
l.readMessage(
|
|
12429
|
+
var m = new u.ResourceName();
|
|
12430
|
+
l.readMessage(m, u.ResourceName.deserializeBinaryFromReader), n.setName(m);
|
|
12431
12431
|
break;
|
|
12432
12432
|
case 2:
|
|
12433
|
-
var
|
|
12434
|
-
l.readMessage(
|
|
12433
|
+
var m = new o.Struct();
|
|
12434
|
+
l.readMessage(m, o.Struct.deserializeBinaryFromReader), n.setParams(m);
|
|
12435
12435
|
break;
|
|
12436
12436
|
default:
|
|
12437
12437
|
l.skipField();
|
|
@@ -12494,8 +12494,8 @@ var timestamp_pb = {};
|
|
|
12494
12494
|
var c = l.getFieldNumber();
|
|
12495
12495
|
switch (c) {
|
|
12496
12496
|
case 99:
|
|
12497
|
-
var
|
|
12498
|
-
l.readMessage(
|
|
12497
|
+
var m = new proto.viam.robot.v1.StopExtraParameters();
|
|
12498
|
+
l.readMessage(m, proto.viam.robot.v1.StopExtraParameters.deserializeBinaryFromReader), n.addExtra(m);
|
|
12499
12499
|
break;
|
|
12500
12500
|
default:
|
|
12501
12501
|
l.skipField();
|
|
@@ -12561,11 +12561,11 @@ var timestamp_pb = {};
|
|
|
12561
12561
|
var c = l.getFieldNumber();
|
|
12562
12562
|
switch (c) {
|
|
12563
12563
|
case 1:
|
|
12564
|
-
var
|
|
12564
|
+
var m = (
|
|
12565
12565
|
/** @type {string} */
|
|
12566
12566
|
l.readString()
|
|
12567
12567
|
);
|
|
12568
|
-
n.setResume(
|
|
12568
|
+
n.setResume(m);
|
|
12569
12569
|
break;
|
|
12570
12570
|
default:
|
|
12571
12571
|
l.skipField();
|
|
@@ -12592,11 +12592,11 @@ var timestamp_pb = {};
|
|
|
12592
12592
|
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.robot.v1.StartSessionResponse.prototype.toObject = function(n) {
|
|
12593
12593
|
return proto.viam.robot.v1.StartSessionResponse.toObject(n, this);
|
|
12594
12594
|
}, proto.viam.robot.v1.StartSessionResponse.toObject = function(n, l) {
|
|
12595
|
-
var c,
|
|
12595
|
+
var c, m = {
|
|
12596
12596
|
id: e.Message.getFieldWithDefault(l, 1, ""),
|
|
12597
12597
|
heartbeatWindow: (c = l.getHeartbeatWindow()) && p.Duration.toObject(n, c)
|
|
12598
12598
|
};
|
|
12599
|
-
return n && (
|
|
12599
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
12600
12600
|
}), proto.viam.robot.v1.StartSessionResponse.deserializeBinary = function(n) {
|
|
12601
12601
|
var l = new e.BinaryReader(n), c = new proto.viam.robot.v1.StartSessionResponse();
|
|
12602
12602
|
return proto.viam.robot.v1.StartSessionResponse.deserializeBinaryFromReader(c, l);
|
|
@@ -12605,15 +12605,15 @@ var timestamp_pb = {};
|
|
|
12605
12605
|
var c = l.getFieldNumber();
|
|
12606
12606
|
switch (c) {
|
|
12607
12607
|
case 1:
|
|
12608
|
-
var
|
|
12608
|
+
var m = (
|
|
12609
12609
|
/** @type {string} */
|
|
12610
12610
|
l.readString()
|
|
12611
12611
|
);
|
|
12612
|
-
n.setId(
|
|
12612
|
+
n.setId(m);
|
|
12613
12613
|
break;
|
|
12614
12614
|
case 2:
|
|
12615
|
-
var
|
|
12616
|
-
l.readMessage(
|
|
12615
|
+
var m = new p.Duration();
|
|
12616
|
+
l.readMessage(m, p.Duration.deserializeBinaryFromReader), n.setHeartbeatWindow(m);
|
|
12617
12617
|
break;
|
|
12618
12618
|
default:
|
|
12619
12619
|
l.skipField();
|
|
@@ -12667,11 +12667,11 @@ var timestamp_pb = {};
|
|
|
12667
12667
|
var c = l.getFieldNumber();
|
|
12668
12668
|
switch (c) {
|
|
12669
12669
|
case 1:
|
|
12670
|
-
var
|
|
12670
|
+
var m = (
|
|
12671
12671
|
/** @type {string} */
|
|
12672
12672
|
l.readString()
|
|
12673
12673
|
);
|
|
12674
|
-
n.setId(
|
|
12674
|
+
n.setId(m);
|
|
12675
12675
|
break;
|
|
12676
12676
|
default:
|
|
12677
12677
|
l.skipField();
|
|
@@ -13198,39 +13198,39 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13198
13198
|
}, function(e, s, i) {
|
|
13199
13199
|
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
13200
13200
|
var u = i(0), g = i(8), p = i(9), o = i(1), r = i(4), n = i(14);
|
|
13201
|
-
s.client = function(
|
|
13202
|
-
return new l(
|
|
13201
|
+
s.client = function(m, d) {
|
|
13202
|
+
return new l(m, d);
|
|
13203
13203
|
};
|
|
13204
13204
|
var l = function() {
|
|
13205
|
-
function d
|
|
13206
|
-
this.started = !1, this.sentFirstMessage = !1, this.completed = !1, this.closed = !1, this.finishedSending = !1, this.onHeadersCallbacks = [], this.onMessageCallbacks = [], this.onEndCallbacks = [], this.parser = new g.ChunkParser(), this.methodDefinition =
|
|
13205
|
+
function m(d, v) {
|
|
13206
|
+
this.started = !1, this.sentFirstMessage = !1, this.completed = !1, this.closed = !1, this.finishedSending = !1, this.onHeadersCallbacks = [], this.onMessageCallbacks = [], this.onEndCallbacks = [], this.parser = new g.ChunkParser(), this.methodDefinition = d, this.props = v, this.createTransport();
|
|
13207
13207
|
}
|
|
13208
|
-
return
|
|
13209
|
-
var
|
|
13208
|
+
return m.prototype.createTransport = function() {
|
|
13209
|
+
var d = this.props.host + "/" + this.methodDefinition.service.serviceName + "/" + this.methodDefinition.methodName, v = { methodDefinition: this.methodDefinition, debug: this.props.debug || !1, url: d, onHeaders: this.onTransportHeaders.bind(this), onChunk: this.onTransportChunk.bind(this), onEnd: this.onTransportEnd.bind(this) };
|
|
13210
13210
|
this.props.transport ? this.transport = this.props.transport(v) : this.transport = r.makeDefaultTransport(v);
|
|
13211
|
-
},
|
|
13212
|
-
if (this.props.debug && o.debug("onHeaders",
|
|
13211
|
+
}, m.prototype.onTransportHeaders = function(d, v) {
|
|
13212
|
+
if (this.props.debug && o.debug("onHeaders", d, v), this.closed)
|
|
13213
13213
|
this.props.debug && o.debug("grpc.onHeaders received after request was closed - ignoring");
|
|
13214
13214
|
else if (v !== 0) {
|
|
13215
|
-
this.responseHeaders =
|
|
13216
|
-
var y = c(
|
|
13215
|
+
this.responseHeaders = d, this.props.debug && o.debug("onHeaders.responseHeaders", JSON.stringify(this.responseHeaders, null, 2));
|
|
13216
|
+
var y = c(d);
|
|
13217
13217
|
this.props.debug && o.debug("onHeaders.gRPCStatus", y);
|
|
13218
13218
|
var f = y && y >= 0 ? y : p.httpStatusToCode(v);
|
|
13219
13219
|
this.props.debug && o.debug("onHeaders.code", f);
|
|
13220
|
-
var b =
|
|
13221
|
-
if (this.props.debug && o.debug("onHeaders.gRPCMessage", b), this.rawOnHeaders(
|
|
13220
|
+
var b = d.get("grpc-message") || [];
|
|
13221
|
+
if (this.props.debug && o.debug("onHeaders.gRPCMessage", b), this.rawOnHeaders(d), f !== p.Code.OK) {
|
|
13222
13222
|
var M = this.decodeGRPCStatus(b[0]);
|
|
13223
|
-
this.rawOnError(f, M,
|
|
13223
|
+
this.rawOnError(f, M, d);
|
|
13224
13224
|
}
|
|
13225
13225
|
}
|
|
13226
|
-
},
|
|
13226
|
+
}, m.prototype.onTransportChunk = function(d) {
|
|
13227
13227
|
var v = this;
|
|
13228
13228
|
if (this.closed)
|
|
13229
13229
|
this.props.debug && o.debug("grpc.onChunk received after request was closed - ignoring");
|
|
13230
13230
|
else {
|
|
13231
13231
|
var y = [];
|
|
13232
13232
|
try {
|
|
13233
|
-
y = this.parser.parse(
|
|
13233
|
+
y = this.parser.parse(d);
|
|
13234
13234
|
} catch (f) {
|
|
13235
13235
|
return this.props.debug && o.debug("onChunk.parsing error", f, f.message), void this.rawOnError(p.Code.Internal, "parsing error: " + f.message);
|
|
13236
13236
|
}
|
|
@@ -13242,14 +13242,14 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13242
13242
|
f.chunkType === g.ChunkType.TRAILERS && (v.responseHeaders ? (v.responseTrailers = new u.Metadata(f.trailers), v.props.debug && o.debug("onChunk.trailers", v.responseTrailers)) : (v.responseHeaders = new u.Metadata(f.trailers), v.rawOnHeaders(v.responseHeaders)));
|
|
13243
13243
|
});
|
|
13244
13244
|
}
|
|
13245
|
-
},
|
|
13245
|
+
}, m.prototype.onTransportEnd = function() {
|
|
13246
13246
|
if (this.props.debug && o.debug("grpc.onEnd"), this.closed)
|
|
13247
13247
|
this.props.debug && o.debug("grpc.onEnd received after request was closed - ignoring");
|
|
13248
13248
|
else if (this.responseTrailers !== void 0) {
|
|
13249
|
-
var
|
|
13250
|
-
if (
|
|
13249
|
+
var d = c(this.responseTrailers);
|
|
13250
|
+
if (d !== null) {
|
|
13251
13251
|
var v = this.responseTrailers.get("grpc-message"), y = this.decodeGRPCStatus(v[0]);
|
|
13252
|
-
this.rawOnEnd(
|
|
13252
|
+
this.rawOnEnd(d, y, this.responseTrailers);
|
|
13253
13253
|
} else
|
|
13254
13254
|
this.rawOnError(p.Code.Internal, "Response closed without grpc-status (Trailers provided)");
|
|
13255
13255
|
} else {
|
|
@@ -13261,73 +13261,73 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13261
13261
|
var M = this.decodeGRPCStatus(b[0]);
|
|
13262
13262
|
this.rawOnEnd(f, M, this.responseHeaders);
|
|
13263
13263
|
}
|
|
13264
|
-
},
|
|
13265
|
-
if (!
|
|
13264
|
+
}, m.prototype.decodeGRPCStatus = function(d) {
|
|
13265
|
+
if (!d)
|
|
13266
13266
|
return "";
|
|
13267
13267
|
try {
|
|
13268
|
-
return decodeURIComponent(
|
|
13268
|
+
return decodeURIComponent(d);
|
|
13269
13269
|
} catch {
|
|
13270
|
-
return
|
|
13270
|
+
return d;
|
|
13271
13271
|
}
|
|
13272
|
-
},
|
|
13272
|
+
}, m.prototype.rawOnEnd = function(d, v, y) {
|
|
13273
13273
|
var f = this;
|
|
13274
|
-
this.props.debug && o.debug("rawOnEnd",
|
|
13274
|
+
this.props.debug && o.debug("rawOnEnd", d, v, y), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(b) {
|
|
13275
13275
|
if (!f.closed)
|
|
13276
13276
|
try {
|
|
13277
|
-
b(
|
|
13277
|
+
b(d, v, y);
|
|
13278
13278
|
} catch (M) {
|
|
13279
13279
|
setTimeout(function() {
|
|
13280
13280
|
throw M;
|
|
13281
13281
|
});
|
|
13282
13282
|
}
|
|
13283
13283
|
}));
|
|
13284
|
-
},
|
|
13285
|
-
this.props.debug && o.debug("rawOnHeaders",
|
|
13284
|
+
}, m.prototype.rawOnHeaders = function(d) {
|
|
13285
|
+
this.props.debug && o.debug("rawOnHeaders", d), this.completed || this.onHeadersCallbacks.forEach(function(v) {
|
|
13286
13286
|
try {
|
|
13287
|
-
v(
|
|
13287
|
+
v(d);
|
|
13288
13288
|
} catch (y) {
|
|
13289
13289
|
setTimeout(function() {
|
|
13290
13290
|
throw y;
|
|
13291
13291
|
});
|
|
13292
13292
|
}
|
|
13293
13293
|
});
|
|
13294
|
-
},
|
|
13294
|
+
}, m.prototype.rawOnError = function(d, v, y) {
|
|
13295
13295
|
var f = this;
|
|
13296
|
-
y === void 0 && (y = new u.Metadata()), this.props.debug && o.debug("rawOnError",
|
|
13296
|
+
y === void 0 && (y = new u.Metadata()), this.props.debug && o.debug("rawOnError", d, v), this.completed || (this.completed = !0, this.onEndCallbacks.forEach(function(b) {
|
|
13297
13297
|
if (!f.closed)
|
|
13298
13298
|
try {
|
|
13299
|
-
b(
|
|
13299
|
+
b(d, v, y);
|
|
13300
13300
|
} catch (M) {
|
|
13301
13301
|
setTimeout(function() {
|
|
13302
13302
|
throw M;
|
|
13303
13303
|
});
|
|
13304
13304
|
}
|
|
13305
13305
|
}));
|
|
13306
|
-
},
|
|
13306
|
+
}, m.prototype.rawOnMessage = function(d) {
|
|
13307
13307
|
var v = this;
|
|
13308
|
-
this.props.debug && o.debug("rawOnMessage",
|
|
13308
|
+
this.props.debug && o.debug("rawOnMessage", d.toObject()), this.completed || this.closed || this.onMessageCallbacks.forEach(function(y) {
|
|
13309
13309
|
if (!v.closed)
|
|
13310
13310
|
try {
|
|
13311
|
-
y(
|
|
13311
|
+
y(d);
|
|
13312
13312
|
} catch (f) {
|
|
13313
13313
|
setTimeout(function() {
|
|
13314
13314
|
throw f;
|
|
13315
13315
|
});
|
|
13316
13316
|
}
|
|
13317
13317
|
});
|
|
13318
|
-
},
|
|
13319
|
-
this.onHeadersCallbacks.push(
|
|
13320
|
-
},
|
|
13321
|
-
this.onMessageCallbacks.push(
|
|
13322
|
-
},
|
|
13323
|
-
this.onEndCallbacks.push(
|
|
13324
|
-
},
|
|
13318
|
+
}, m.prototype.onHeaders = function(d) {
|
|
13319
|
+
this.onHeadersCallbacks.push(d);
|
|
13320
|
+
}, m.prototype.onMessage = function(d) {
|
|
13321
|
+
this.onMessageCallbacks.push(d);
|
|
13322
|
+
}, m.prototype.onEnd = function(d) {
|
|
13323
|
+
this.onEndCallbacks.push(d);
|
|
13324
|
+
}, m.prototype.start = function(d) {
|
|
13325
13325
|
if (this.started)
|
|
13326
13326
|
throw new Error("Client already started - cannot .start()");
|
|
13327
13327
|
this.started = !0;
|
|
13328
|
-
var v = new u.Metadata(
|
|
13328
|
+
var v = new u.Metadata(d || {});
|
|
13329
13329
|
v.set("content-type", "application/grpc-web+proto"), v.set("x-grpc-web", "1"), this.transport.start(v);
|
|
13330
|
-
},
|
|
13330
|
+
}, m.prototype.send = function(d) {
|
|
13331
13331
|
if (!this.started)
|
|
13332
13332
|
throw new Error("Client not started - .start() must be called before .send()");
|
|
13333
13333
|
if (this.closed)
|
|
@@ -13337,9 +13337,9 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13337
13337
|
if (!this.methodDefinition.requestStream && this.sentFirstMessage)
|
|
13338
13338
|
throw new Error("Message already sent for non-client-streaming method - cannot .send()");
|
|
13339
13339
|
this.sentFirstMessage = !0;
|
|
13340
|
-
var v = n.frameRequest(
|
|
13340
|
+
var v = n.frameRequest(d);
|
|
13341
13341
|
this.transport.sendMessage(v);
|
|
13342
|
-
},
|
|
13342
|
+
}, m.prototype.finishSend = function() {
|
|
13343
13343
|
if (!this.started)
|
|
13344
13344
|
throw new Error("Client not started - .finishSend() must be called before .close()");
|
|
13345
13345
|
if (this.closed)
|
|
@@ -13347,19 +13347,19 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13347
13347
|
if (this.finishedSending)
|
|
13348
13348
|
throw new Error("Client already finished sending - cannot .finishSend()");
|
|
13349
13349
|
this.finishedSending = !0, this.transport.finishSend();
|
|
13350
|
-
},
|
|
13350
|
+
}, m.prototype.close = function() {
|
|
13351
13351
|
if (!this.started)
|
|
13352
13352
|
throw new Error("Client not started - .start() must be called before .close()");
|
|
13353
13353
|
if (this.closed)
|
|
13354
13354
|
throw new Error("Client already closed - cannot .close()");
|
|
13355
13355
|
this.closed = !0, this.props.debug && o.debug("request.abort aborting request"), this.transport.cancel();
|
|
13356
|
-
},
|
|
13356
|
+
}, m;
|
|
13357
13357
|
}();
|
|
13358
|
-
function c(
|
|
13359
|
-
var
|
|
13360
|
-
if (
|
|
13358
|
+
function c(m) {
|
|
13359
|
+
var d = m.get("grpc-status") || [];
|
|
13360
|
+
if (d.length > 0)
|
|
13361
13361
|
try {
|
|
13362
|
-
var v =
|
|
13362
|
+
var v = d[0];
|
|
13363
13363
|
return parseInt(v, 10);
|
|
13364
13364
|
} catch {
|
|
13365
13365
|
return null;
|
|
@@ -13394,14 +13394,14 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13394
13394
|
}([function(g, p, o) {
|
|
13395
13395
|
Object.defineProperty(p, "__esModule", { value: !0 });
|
|
13396
13396
|
var r = o(3), n = function() {
|
|
13397
|
-
function l(c,
|
|
13398
|
-
c === void 0 && (c = {}),
|
|
13399
|
-
var
|
|
13397
|
+
function l(c, m) {
|
|
13398
|
+
c === void 0 && (c = {}), m === void 0 && (m = { splitValues: !1 });
|
|
13399
|
+
var d, v = this;
|
|
13400
13400
|
this.headersMap = {}, c && (typeof Headers < "u" && c instanceof Headers ? r.getHeaderKeys(c).forEach(function(y) {
|
|
13401
13401
|
r.getHeaderValues(c, y).forEach(function(f) {
|
|
13402
|
-
|
|
13402
|
+
m.splitValues ? v.append(y, r.splitHeaderValue(f)) : v.append(y, f);
|
|
13403
13403
|
});
|
|
13404
|
-
}) : typeof (
|
|
13404
|
+
}) : typeof (d = c) == "object" && typeof d.headersMap == "object" && typeof d.forEach == "function" ? c.forEach(function(y, f) {
|
|
13405
13405
|
v.append(y, f);
|
|
13406
13406
|
}) : typeof Map < "u" && c instanceof Map ? c.forEach(function(y, f) {
|
|
13407
13407
|
v.append(f, y);
|
|
@@ -13413,62 +13413,62 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13413
13413
|
}));
|
|
13414
13414
|
}
|
|
13415
13415
|
return l.prototype.appendFromString = function(c) {
|
|
13416
|
-
for (var
|
|
13417
|
-
`),
|
|
13418
|
-
var v = d
|
|
13416
|
+
for (var m = c.split(`\r
|
|
13417
|
+
`), d = 0; d < m.length; d++) {
|
|
13418
|
+
var v = m[d], y = v.indexOf(":");
|
|
13419
13419
|
if (y > 0) {
|
|
13420
13420
|
var f = v.substring(0, y).trim(), b = v.substring(y + 1).trim();
|
|
13421
13421
|
this.append(f, b);
|
|
13422
13422
|
}
|
|
13423
13423
|
}
|
|
13424
|
-
}, l.prototype.delete = function(c,
|
|
13425
|
-
var
|
|
13426
|
-
if (
|
|
13427
|
-
delete this.headersMap[
|
|
13424
|
+
}, l.prototype.delete = function(c, m) {
|
|
13425
|
+
var d = r.normalizeName(c);
|
|
13426
|
+
if (m === void 0)
|
|
13427
|
+
delete this.headersMap[d];
|
|
13428
13428
|
else {
|
|
13429
|
-
var v = this.headersMap[
|
|
13429
|
+
var v = this.headersMap[d];
|
|
13430
13430
|
if (v) {
|
|
13431
|
-
var y = v.indexOf(
|
|
13432
|
-
y >= 0 && v.splice(y, 1), v.length === 0 && delete this.headersMap[
|
|
13431
|
+
var y = v.indexOf(m);
|
|
13432
|
+
y >= 0 && v.splice(y, 1), v.length === 0 && delete this.headersMap[d];
|
|
13433
13433
|
}
|
|
13434
13434
|
}
|
|
13435
|
-
}, l.prototype.append = function(c,
|
|
13436
|
-
var
|
|
13437
|
-
Array.isArray(this.headersMap[v]) || (this.headersMap[v] = []), Array.isArray(
|
|
13438
|
-
|
|
13439
|
-
}) : this.headersMap[v].push(r.normalizeValue(
|
|
13440
|
-
}, l.prototype.set = function(c,
|
|
13441
|
-
var
|
|
13442
|
-
if (Array.isArray(
|
|
13435
|
+
}, l.prototype.append = function(c, m) {
|
|
13436
|
+
var d = this, v = r.normalizeName(c);
|
|
13437
|
+
Array.isArray(this.headersMap[v]) || (this.headersMap[v] = []), Array.isArray(m) ? m.forEach(function(y) {
|
|
13438
|
+
d.headersMap[v].push(r.normalizeValue(y));
|
|
13439
|
+
}) : this.headersMap[v].push(r.normalizeValue(m));
|
|
13440
|
+
}, l.prototype.set = function(c, m) {
|
|
13441
|
+
var d = r.normalizeName(c);
|
|
13442
|
+
if (Array.isArray(m)) {
|
|
13443
13443
|
var v = [];
|
|
13444
|
-
|
|
13444
|
+
m.forEach(function(y) {
|
|
13445
13445
|
v.push(r.normalizeValue(y));
|
|
13446
|
-
}), this.headersMap[
|
|
13446
|
+
}), this.headersMap[d] = v;
|
|
13447
13447
|
} else
|
|
13448
|
-
this.headersMap[
|
|
13449
|
-
}, l.prototype.has = function(c,
|
|
13450
|
-
var
|
|
13451
|
-
if (!Array.isArray(
|
|
13448
|
+
this.headersMap[d] = [r.normalizeValue(m)];
|
|
13449
|
+
}, l.prototype.has = function(c, m) {
|
|
13450
|
+
var d = this.headersMap[r.normalizeName(c)];
|
|
13451
|
+
if (!Array.isArray(d))
|
|
13452
13452
|
return !1;
|
|
13453
|
-
if (
|
|
13454
|
-
var v = r.normalizeValue(
|
|
13455
|
-
return
|
|
13453
|
+
if (m !== void 0) {
|
|
13454
|
+
var v = r.normalizeValue(m);
|
|
13455
|
+
return d.indexOf(v) >= 0;
|
|
13456
13456
|
}
|
|
13457
13457
|
return !0;
|
|
13458
13458
|
}, l.prototype.get = function(c) {
|
|
13459
|
-
var
|
|
13460
|
-
return
|
|
13459
|
+
var m = this.headersMap[r.normalizeName(c)];
|
|
13460
|
+
return m !== void 0 ? m.concat() : [];
|
|
13461
13461
|
}, l.prototype.forEach = function(c) {
|
|
13462
|
-
var
|
|
13463
|
-
Object.getOwnPropertyNames(this.headersMap).forEach(function(
|
|
13464
|
-
c(
|
|
13462
|
+
var m = this;
|
|
13463
|
+
Object.getOwnPropertyNames(this.headersMap).forEach(function(d) {
|
|
13464
|
+
c(d, m.headersMap[d]);
|
|
13465
13465
|
}, this);
|
|
13466
13466
|
}, l.prototype.toHeaders = function() {
|
|
13467
13467
|
if (typeof Headers < "u") {
|
|
13468
13468
|
var c = new Headers();
|
|
13469
|
-
return this.forEach(function(
|
|
13470
|
-
|
|
13471
|
-
c.append(
|
|
13469
|
+
return this.forEach(function(m, d) {
|
|
13470
|
+
d.forEach(function(v) {
|
|
13471
|
+
c.append(m, v);
|
|
13472
13472
|
});
|
|
13473
13473
|
}), c;
|
|
13474
13474
|
}
|
|
@@ -13501,23 +13501,23 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13501
13501
|
var c = n;
|
|
13502
13502
|
if (c instanceof Headers && c.getAll)
|
|
13503
13503
|
return c.getAll(l);
|
|
13504
|
-
var
|
|
13505
|
-
return
|
|
13504
|
+
var m = c.get(l);
|
|
13505
|
+
return m && typeof m == "string" ? [m] : m;
|
|
13506
13506
|
}, p.getHeaderKeys = function(n) {
|
|
13507
|
-
var l = n, c = {},
|
|
13508
|
-
return l.keys ? r.iterateHeadersKeys(l, function(
|
|
13509
|
-
c[
|
|
13510
|
-
}) : l.forEach ? l.forEach(function(
|
|
13511
|
-
c[v] || (c[v] = !0,
|
|
13512
|
-
}) : r.iterateHeaders(l, function(
|
|
13513
|
-
var v =
|
|
13514
|
-
c[v] || (c[v] = !0,
|
|
13515
|
-
}),
|
|
13507
|
+
var l = n, c = {}, m = [];
|
|
13508
|
+
return l.keys ? r.iterateHeadersKeys(l, function(d) {
|
|
13509
|
+
c[d] || (c[d] = !0, m.push(d));
|
|
13510
|
+
}) : l.forEach ? l.forEach(function(d, v) {
|
|
13511
|
+
c[v] || (c[v] = !0, m.push(v));
|
|
13512
|
+
}) : r.iterateHeaders(l, function(d) {
|
|
13513
|
+
var v = d[0];
|
|
13514
|
+
c[v] || (c[v] = !0, m.push(v));
|
|
13515
|
+
}), m;
|
|
13516
13516
|
}, p.splitHeaderValue = function(n) {
|
|
13517
13517
|
var l = [];
|
|
13518
13518
|
return n.split(", ").forEach(function(c) {
|
|
13519
|
-
c.split(",").forEach(function(
|
|
13520
|
-
l.push(
|
|
13519
|
+
c.split(",").forEach(function(m) {
|
|
13520
|
+
l.push(m);
|
|
13521
13521
|
});
|
|
13522
13522
|
}), l;
|
|
13523
13523
|
};
|
|
@@ -13547,8 +13547,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13547
13547
|
var u = this && this.__assign || function() {
|
|
13548
13548
|
return (u = Object.assign || function(r) {
|
|
13549
13549
|
for (var n, l = 1, c = arguments.length; l < c; l++)
|
|
13550
|
-
for (var
|
|
13551
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
13550
|
+
for (var m in n = arguments[l])
|
|
13551
|
+
Object.prototype.hasOwnProperty.call(n, m) && (r[m] = n[m]);
|
|
13552
13552
|
return r;
|
|
13553
13553
|
}).apply(this, arguments);
|
|
13554
13554
|
};
|
|
@@ -13569,12 +13569,12 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13569
13569
|
var c = this;
|
|
13570
13570
|
if (this.reader = n, this.cancelled)
|
|
13571
13571
|
return this.options.debug && p.debug("Fetch.pump.cancel at first pump"), void this.reader.cancel();
|
|
13572
|
-
this.reader.read().then(function(
|
|
13573
|
-
if (
|
|
13572
|
+
this.reader.read().then(function(m) {
|
|
13573
|
+
if (m.done)
|
|
13574
13574
|
return c.options.onEnd(), l;
|
|
13575
|
-
c.options.onChunk(
|
|
13576
|
-
}).catch(function(
|
|
13577
|
-
c.cancelled ? c.options.debug && p.debug("Fetch.catch - request cancelled") : (c.cancelled = !0, c.options.debug && p.debug("Fetch.catch",
|
|
13575
|
+
c.options.onChunk(m.value), c.pump(c.reader, l);
|
|
13576
|
+
}).catch(function(m) {
|
|
13577
|
+
c.cancelled ? c.options.debug && p.debug("Fetch.catch - request cancelled") : (c.cancelled = !0, c.options.debug && p.debug("Fetch.catch", m.message), c.options.onEnd(m));
|
|
13578
13578
|
});
|
|
13579
13579
|
}, r.prototype.send = function(n) {
|
|
13580
13580
|
var l = this;
|
|
@@ -13598,48 +13598,48 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13598
13598
|
return typeof Response < "u" && Response.prototype.hasOwnProperty("body") && typeof Headers == "function";
|
|
13599
13599
|
};
|
|
13600
13600
|
}, function(e, s, i) {
|
|
13601
|
-
var u, g = this && this.__extends || (u = function(
|
|
13601
|
+
var u, g = this && this.__extends || (u = function(d, v) {
|
|
13602
13602
|
return (u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(y, f) {
|
|
13603
13603
|
y.__proto__ = f;
|
|
13604
13604
|
} || function(y, f) {
|
|
13605
13605
|
for (var b in f)
|
|
13606
13606
|
f.hasOwnProperty(b) && (y[b] = f[b]);
|
|
13607
|
-
})(
|
|
13608
|
-
}, function(
|
|
13607
|
+
})(d, v);
|
|
13608
|
+
}, function(d, v) {
|
|
13609
13609
|
function y() {
|
|
13610
|
-
this.constructor =
|
|
13610
|
+
this.constructor = d;
|
|
13611
13611
|
}
|
|
13612
|
-
u(
|
|
13612
|
+
u(d, v), d.prototype = v === null ? Object.create(v) : (y.prototype = v.prototype, new y());
|
|
13613
13613
|
});
|
|
13614
13614
|
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
13615
13615
|
var p = i(0), o = i(1), r = i(11);
|
|
13616
|
-
s.XhrTransport = function(
|
|
13616
|
+
s.XhrTransport = function(d) {
|
|
13617
13617
|
return function(v) {
|
|
13618
13618
|
if (r.detectMozXHRSupport())
|
|
13619
|
-
return new l(v,
|
|
13619
|
+
return new l(v, d);
|
|
13620
13620
|
if (r.detectXHROverrideMimeTypeSupport())
|
|
13621
|
-
return new n(v,
|
|
13621
|
+
return new n(v, d);
|
|
13622
13622
|
throw new Error("This environment's XHR implementation cannot support binary transfer.");
|
|
13623
13623
|
};
|
|
13624
13624
|
};
|
|
13625
13625
|
var n = function() {
|
|
13626
|
-
function
|
|
13626
|
+
function d(v, y) {
|
|
13627
13627
|
this.options = v, this.init = y;
|
|
13628
13628
|
}
|
|
13629
|
-
return
|
|
13629
|
+
return d.prototype.onProgressEvent = function() {
|
|
13630
13630
|
this.options.debug && o.debug("XHR.onProgressEvent.length: ", this.xhr.response.length);
|
|
13631
13631
|
var v = this.xhr.response.substr(this.index);
|
|
13632
13632
|
this.index = this.xhr.response.length;
|
|
13633
|
-
var y =
|
|
13633
|
+
var y = m(v);
|
|
13634
13634
|
this.options.onChunk(y);
|
|
13635
|
-
},
|
|
13635
|
+
}, d.prototype.onLoadEvent = function() {
|
|
13636
13636
|
this.options.debug && o.debug("XHR.onLoadEvent"), this.options.onEnd();
|
|
13637
|
-
},
|
|
13637
|
+
}, d.prototype.onStateChange = function() {
|
|
13638
13638
|
this.options.debug && o.debug("XHR.onStateChange", this.xhr.readyState), this.xhr.readyState === XMLHttpRequest.HEADERS_RECEIVED && this.options.onHeaders(new p.Metadata(this.xhr.getAllResponseHeaders()), this.xhr.status);
|
|
13639
|
-
},
|
|
13639
|
+
}, d.prototype.sendMessage = function(v) {
|
|
13640
13640
|
this.xhr.send(v);
|
|
13641
|
-
},
|
|
13642
|
-
},
|
|
13641
|
+
}, d.prototype.finishSend = function() {
|
|
13642
|
+
}, d.prototype.start = function(v) {
|
|
13643
13643
|
var y = this;
|
|
13644
13644
|
this.metadata = v;
|
|
13645
13645
|
var f = new XMLHttpRequest();
|
|
@@ -13648,88 +13648,88 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13648
13648
|
}), f.withCredentials = !!this.init.withCredentials, f.addEventListener("readystatechange", this.onStateChange.bind(this)), f.addEventListener("progress", this.onProgressEvent.bind(this)), f.addEventListener("loadend", this.onLoadEvent.bind(this)), f.addEventListener("error", function(b) {
|
|
13649
13649
|
y.options.debug && o.debug("XHR.error", b), y.options.onEnd(b.error);
|
|
13650
13650
|
});
|
|
13651
|
-
},
|
|
13651
|
+
}, d.prototype.configureXhr = function() {
|
|
13652
13652
|
this.xhr.responseType = "text", this.xhr.overrideMimeType("text/plain; charset=x-user-defined");
|
|
13653
|
-
},
|
|
13653
|
+
}, d.prototype.cancel = function() {
|
|
13654
13654
|
this.options.debug && o.debug("XHR.abort"), this.xhr.abort();
|
|
13655
|
-
},
|
|
13655
|
+
}, d;
|
|
13656
13656
|
}();
|
|
13657
13657
|
s.XHR = n;
|
|
13658
|
-
var l = function(
|
|
13658
|
+
var l = function(d) {
|
|
13659
13659
|
function v() {
|
|
13660
|
-
return
|
|
13660
|
+
return d !== null && d.apply(this, arguments) || this;
|
|
13661
13661
|
}
|
|
13662
|
-
return g(v,
|
|
13662
|
+
return g(v, d), v.prototype.configureXhr = function() {
|
|
13663
13663
|
this.options.debug && o.debug("MozXHR.configureXhr: setting responseType to 'moz-chunked-arraybuffer'"), this.xhr.responseType = "moz-chunked-arraybuffer";
|
|
13664
13664
|
}, v.prototype.onProgressEvent = function() {
|
|
13665
13665
|
var y = this.xhr.response;
|
|
13666
13666
|
this.options.debug && o.debug("MozXHR.onProgressEvent: ", new Uint8Array(y)), this.options.onChunk(new Uint8Array(y));
|
|
13667
13667
|
}, v;
|
|
13668
13668
|
}(n);
|
|
13669
|
-
function c(
|
|
13670
|
-
var y =
|
|
13669
|
+
function c(d, v) {
|
|
13670
|
+
var y = d.charCodeAt(v);
|
|
13671
13671
|
if (y >= 55296 && y <= 56319) {
|
|
13672
|
-
var f =
|
|
13672
|
+
var f = d.charCodeAt(v + 1);
|
|
13673
13673
|
f >= 56320 && f <= 57343 && (y = 65536 + (y - 55296 << 10) + (f - 56320));
|
|
13674
13674
|
}
|
|
13675
13675
|
return y;
|
|
13676
13676
|
}
|
|
13677
|
-
function d
|
|
13678
|
-
for (var v = new Uint8Array(
|
|
13679
|
-
var b = String.prototype.codePointAt ?
|
|
13677
|
+
function m(d) {
|
|
13678
|
+
for (var v = new Uint8Array(d.length), y = 0, f = 0; f < d.length; f++) {
|
|
13679
|
+
var b = String.prototype.codePointAt ? d.codePointAt(f) : c(d, f);
|
|
13680
13680
|
v[y++] = 255 & b;
|
|
13681
13681
|
}
|
|
13682
13682
|
return v;
|
|
13683
13683
|
}
|
|
13684
|
-
s.MozChunkedArrayBufferXHR = l, s.stringToArrayBuffer =
|
|
13684
|
+
s.MozChunkedArrayBufferXHR = l, s.stringToArrayBuffer = m;
|
|
13685
13685
|
}, function(e, s, i) {
|
|
13686
13686
|
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
13687
13687
|
var u, g = i(0);
|
|
13688
|
-
function p(
|
|
13688
|
+
function p(d) {
|
|
13689
13689
|
return function(v) {
|
|
13690
13690
|
return v === 9 || v === 10 || v === 13;
|
|
13691
|
-
}(
|
|
13691
|
+
}(d) || d >= 32 && d <= 126;
|
|
13692
13692
|
}
|
|
13693
|
-
function o(
|
|
13694
|
-
for (var v = 0; v !==
|
|
13695
|
-
if (!p(
|
|
13693
|
+
function o(d) {
|
|
13694
|
+
for (var v = 0; v !== d.length; ++v)
|
|
13695
|
+
if (!p(d[v]))
|
|
13696
13696
|
throw new Error("Metadata is not valid (printable) ASCII");
|
|
13697
|
-
return String.fromCharCode.apply(String, Array.prototype.slice.call(
|
|
13697
|
+
return String.fromCharCode.apply(String, Array.prototype.slice.call(d));
|
|
13698
13698
|
}
|
|
13699
|
-
function r(
|
|
13700
|
-
return (128 &
|
|
13699
|
+
function r(d) {
|
|
13700
|
+
return (128 & d.getUint8(0)) == 128;
|
|
13701
13701
|
}
|
|
13702
|
-
function n(
|
|
13703
|
-
return
|
|
13702
|
+
function n(d) {
|
|
13703
|
+
return d.getUint32(1, !1);
|
|
13704
13704
|
}
|
|
13705
|
-
function l(
|
|
13706
|
-
return
|
|
13705
|
+
function l(d, v, y) {
|
|
13706
|
+
return d.byteLength - v >= y;
|
|
13707
13707
|
}
|
|
13708
|
-
function c(
|
|
13709
|
-
if (
|
|
13710
|
-
return
|
|
13711
|
-
var f =
|
|
13708
|
+
function c(d, v, y) {
|
|
13709
|
+
if (d.slice)
|
|
13710
|
+
return d.slice(v, y);
|
|
13711
|
+
var f = d.length;
|
|
13712
13712
|
y !== void 0 && (f = y);
|
|
13713
13713
|
for (var b = new Uint8Array(f - v), M = 0, h = v; h < f; h++)
|
|
13714
|
-
b[M++] =
|
|
13714
|
+
b[M++] = d[h];
|
|
13715
13715
|
return b;
|
|
13716
13716
|
}
|
|
13717
|
-
s.decodeASCII = o, s.encodeASCII = function(
|
|
13718
|
-
for (var v = new Uint8Array(
|
|
13719
|
-
var f =
|
|
13717
|
+
s.decodeASCII = o, s.encodeASCII = function(d) {
|
|
13718
|
+
for (var v = new Uint8Array(d.length), y = 0; y !== d.length; ++y) {
|
|
13719
|
+
var f = d.charCodeAt(y);
|
|
13720
13720
|
if (!p(f))
|
|
13721
13721
|
throw new Error("Metadata contains invalid ASCII");
|
|
13722
13722
|
v[y] = f;
|
|
13723
13723
|
}
|
|
13724
13724
|
return v;
|
|
13725
|
-
}, function(
|
|
13726
|
-
|
|
13725
|
+
}, function(d) {
|
|
13726
|
+
d[d.MESSAGE = 1] = "MESSAGE", d[d.TRAILERS = 2] = "TRAILERS";
|
|
13727
13727
|
}(u = s.ChunkType || (s.ChunkType = {}));
|
|
13728
|
-
var
|
|
13729
|
-
function
|
|
13728
|
+
var m = function() {
|
|
13729
|
+
function d() {
|
|
13730
13730
|
this.buffer = null, this.position = 0;
|
|
13731
13731
|
}
|
|
13732
|
-
return
|
|
13732
|
+
return d.prototype.parse = function(v, y) {
|
|
13733
13733
|
if (v.length === 0 && y)
|
|
13734
13734
|
return [];
|
|
13735
13735
|
var f, b = [];
|
|
@@ -13746,17 +13746,17 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13746
13746
|
for (; ; ) {
|
|
13747
13747
|
if (!l(this.buffer, this.position, 5))
|
|
13748
13748
|
return b;
|
|
13749
|
-
var C = c(this.buffer, this.position, this.position + 5), q = new DataView(C.buffer, C.byteOffset, C.byteLength),
|
|
13750
|
-
if (!l(this.buffer, this.position, 5 +
|
|
13749
|
+
var C = c(this.buffer, this.position, this.position + 5), q = new DataView(C.buffer, C.byteOffset, C.byteLength), W = n(q);
|
|
13750
|
+
if (!l(this.buffer, this.position, 5 + W))
|
|
13751
13751
|
return b;
|
|
13752
|
-
var
|
|
13753
|
-
if (this.position += 5 +
|
|
13754
|
-
return b.push({ chunkType: u.TRAILERS, trailers: (f =
|
|
13755
|
-
b.push({ chunkType: u.MESSAGE, data:
|
|
13752
|
+
var x = c(this.buffer, this.position + 5, this.position + 5 + W);
|
|
13753
|
+
if (this.position += 5 + W, r(q))
|
|
13754
|
+
return b.push({ chunkType: u.TRAILERS, trailers: (f = x, new g.Metadata(o(f))) }), b;
|
|
13755
|
+
b.push({ chunkType: u.MESSAGE, data: x });
|
|
13756
13756
|
}
|
|
13757
|
-
},
|
|
13757
|
+
}, d;
|
|
13758
13758
|
}();
|
|
13759
|
-
s.ChunkParser =
|
|
13759
|
+
s.ChunkParser = m;
|
|
13760
13760
|
}, function(e, s, i) {
|
|
13761
13761
|
var u;
|
|
13762
13762
|
Object.defineProperty(s, "__esModule", { value: !0 }), function(g) {
|
|
@@ -13796,11 +13796,11 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13796
13796
|
};
|
|
13797
13797
|
}, function(e, s, i) {
|
|
13798
13798
|
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
13799
|
-
var u = i(3), g = i(4), p = i(6), o = i(12), r = i(7), n = i(5), l = i(9), c = i(13),
|
|
13799
|
+
var u = i(3), g = i(4), p = i(6), o = i(12), r = i(7), n = i(5), l = i(9), c = i(13), m = i(15), d = i(2);
|
|
13800
13800
|
(function(v) {
|
|
13801
13801
|
v.setDefaultTransport = g.setDefaultTransportFactory, v.CrossBrowserHttpTransport = n.CrossBrowserHttpTransport, v.FetchReadableStreamTransport = p.FetchReadableStreamTransport, v.XhrTransport = r.XhrTransport, v.WebsocketTransport = o.WebsocketTransport, v.Code = l.Code, v.Metadata = u.BrowserHeaders, v.client = function(y, f) {
|
|
13802
|
-
return
|
|
13803
|
-
}, v.invoke = c.invoke, v.unary =
|
|
13802
|
+
return d.client(y, f);
|
|
13803
|
+
}, v.invoke = c.invoke, v.unary = m.unary;
|
|
13804
13804
|
})(s.grpc || (s.grpc = {}));
|
|
13805
13805
|
}, function(e, s, i) {
|
|
13806
13806
|
var u;
|
|
@@ -13847,8 +13847,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13847
13847
|
if (v.substr(0, 7) === "http://")
|
|
13848
13848
|
return "ws://" + v.substr(7);
|
|
13849
13849
|
throw new Error("Websocket transport constructed with non-https:// or http:// host.");
|
|
13850
|
-
}(n.url),
|
|
13851
|
-
function
|
|
13850
|
+
}(n.url), m = [];
|
|
13851
|
+
function d(v) {
|
|
13852
13852
|
if (v === u.FINISH_SEND)
|
|
13853
13853
|
l.send(o);
|
|
13854
13854
|
else {
|
|
@@ -13857,17 +13857,17 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13857
13857
|
}
|
|
13858
13858
|
}
|
|
13859
13859
|
return { sendMessage: function(v) {
|
|
13860
|
-
l && l.readyState !== l.CONNECTING ?
|
|
13860
|
+
l && l.readyState !== l.CONNECTING ? d(v) : m.push(v);
|
|
13861
13861
|
}, finishSend: function() {
|
|
13862
|
-
l && l.readyState !== l.CONNECTING ?
|
|
13862
|
+
l && l.readyState !== l.CONNECTING ? d(u.FINISH_SEND) : m.push(u.FINISH_SEND);
|
|
13863
13863
|
}, start: function(v) {
|
|
13864
13864
|
(l = new WebSocket(c, ["grpc-websockets"])).binaryType = "arraybuffer", l.onopen = function() {
|
|
13865
13865
|
var y;
|
|
13866
13866
|
n.debug && g.debug("websocketRequest.onopen"), l.send((y = "", v.forEach(function(f, b) {
|
|
13867
13867
|
y += f + ": " + b.join(", ") + `\r
|
|
13868
13868
|
`;
|
|
13869
|
-
}), p.encodeASCII(y))),
|
|
13870
|
-
|
|
13869
|
+
}), p.encodeASCII(y))), m.forEach(function(f) {
|
|
13870
|
+
d(f);
|
|
13871
13871
|
});
|
|
13872
13872
|
}, l.onclose = function(y) {
|
|
13873
13873
|
n.debug && g.debug("websocketRequest.onclose", y), n.onEnd();
|
|
@@ -13911,8 +13911,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
13911
13911
|
r = c;
|
|
13912
13912
|
}), l.onMessage(function(c) {
|
|
13913
13913
|
n = c;
|
|
13914
|
-
}), l.onEnd(function(c,
|
|
13915
|
-
o.onEnd({ status: c, statusMessage:
|
|
13914
|
+
}), l.onEnd(function(c, m, d) {
|
|
13915
|
+
o.onEnd({ status: c, statusMessage: m, headers: r || new u.Metadata(), message: n, trailers: d });
|
|
13916
13916
|
}), l.start(o.metadata), l.send(o.request), l.finishSend(), { close: function() {
|
|
13917
13917
|
l.close();
|
|
13918
13918
|
} };
|
|
@@ -20127,73 +20127,73 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20127
20127
|
}, 138: (t, e, s) => {
|
|
20128
20128
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ClientChannel = void 0;
|
|
20129
20129
|
var i = s(655), u = s(662), g = s(417), p = s(758), o = s(210), r = function(l) {
|
|
20130
|
-
function c(
|
|
20131
|
-
var v = l.call(this,
|
|
20132
|
-
return Object.defineProperty(v, "streamIDCounter", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(v, "streams", { enumerable: !0, configurable: !0, writable: !0, value: {} }),
|
|
20130
|
+
function c(m, d) {
|
|
20131
|
+
var v = l.call(this, m, d) || this;
|
|
20132
|
+
return Object.defineProperty(v, "streamIDCounter", { enumerable: !0, configurable: !0, writable: !0, value: 0 }), Object.defineProperty(v, "streams", { enumerable: !0, configurable: !0, writable: !0, value: {} }), d.onmessage = function(y) {
|
|
20133
20133
|
return v.onChannelMessage(y);
|
|
20134
|
-
},
|
|
20135
|
-
var y =
|
|
20134
|
+
}, m.addEventListener("iceconnectionstatechange", function() {
|
|
20135
|
+
var y = m.iceConnectionState;
|
|
20136
20136
|
y !== "failed" && y !== "disconnected" && y !== "closed" || v.onConnectionTerminated();
|
|
20137
|
-
}),
|
|
20137
|
+
}), d.addEventListener("close", function() {
|
|
20138
20138
|
return v.onConnectionTerminated();
|
|
20139
20139
|
}), v;
|
|
20140
20140
|
}
|
|
20141
20141
|
return i.__extends(c, l), Object.defineProperty(c.prototype, "transportFactory", { enumerable: !1, configurable: !0, writable: !0, value: function() {
|
|
20142
|
-
var
|
|
20143
|
-
return function(
|
|
20144
|
-
return
|
|
20142
|
+
var m = this;
|
|
20143
|
+
return function(d) {
|
|
20144
|
+
return m.newStream(m.nextStreamID(), d);
|
|
20145
20145
|
};
|
|
20146
20146
|
} }), Object.defineProperty(c.prototype, "onConnectionTerminated", { enumerable: !1, configurable: !0, writable: !0, value: function() {
|
|
20147
20147
|
this.closeWithReason(new p.ConnectionClosedError("data channel closed"));
|
|
20148
|
-
var
|
|
20149
|
-
for (var
|
|
20150
|
-
this.streams[
|
|
20151
|
-
} }), Object.defineProperty(c.prototype, "onChannelMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(
|
|
20152
|
-
var
|
|
20148
|
+
var m = new p.ConnectionClosedError("connection terminated");
|
|
20149
|
+
for (var d in this.streams)
|
|
20150
|
+
this.streams[d].cs.closeWithRecvError(m);
|
|
20151
|
+
} }), Object.defineProperty(c.prototype, "onChannelMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(m) {
|
|
20152
|
+
var d;
|
|
20153
20153
|
try {
|
|
20154
|
-
|
|
20154
|
+
d = o.Response.deserializeBinary(m.data);
|
|
20155
20155
|
} catch (b) {
|
|
20156
20156
|
return void console.error("error deserializing message", b);
|
|
20157
20157
|
}
|
|
20158
|
-
var v =
|
|
20158
|
+
var v = d.getStream();
|
|
20159
20159
|
if (v !== void 0) {
|
|
20160
20160
|
var y = v.getId(), f = this.streams[y];
|
|
20161
|
-
f !== void 0 ? f.cs.onResponse(
|
|
20161
|
+
f !== void 0 ? f.cs.onResponse(d) : console.error("no stream for id; discarding", "id", y);
|
|
20162
20162
|
} else
|
|
20163
20163
|
console.error("no stream id; discarding");
|
|
20164
20164
|
} }), Object.defineProperty(c.prototype, "nextStreamID", { enumerable: !1, configurable: !0, writable: !0, value: function() {
|
|
20165
|
-
var
|
|
20166
|
-
return
|
|
20167
|
-
} }), Object.defineProperty(c.prototype, "newStream", { enumerable: !1, configurable: !0, writable: !0, value: function(
|
|
20165
|
+
var m = new o.Stream();
|
|
20166
|
+
return m.setId(this.streamIDCounter++), m;
|
|
20167
|
+
} }), Object.defineProperty(c.prototype, "newStream", { enumerable: !1, configurable: !0, writable: !0, value: function(m, d) {
|
|
20168
20168
|
var v = this;
|
|
20169
20169
|
if (this.isClosed())
|
|
20170
|
-
return new n(new p.ConnectionClosedError("connection closed"),
|
|
20171
|
-
var y = this.streams[
|
|
20170
|
+
return new n(new p.ConnectionClosedError("connection closed"), d);
|
|
20171
|
+
var y = this.streams[m.getId()];
|
|
20172
20172
|
if (y === void 0) {
|
|
20173
20173
|
if (Object.keys(this.streams).length > 256)
|
|
20174
|
-
return new n(new Error("stream limit hit"),
|
|
20175
|
-
y = { cs: new g.ClientStream(this,
|
|
20174
|
+
return new n(new Error("stream limit hit"), d);
|
|
20175
|
+
y = { cs: new g.ClientStream(this, m, function(f) {
|
|
20176
20176
|
return v.removeStreamByID(f);
|
|
20177
|
-
},
|
|
20177
|
+
}, d) }, this.streams[m.getId()] = y;
|
|
20178
20178
|
}
|
|
20179
20179
|
return y.cs;
|
|
20180
|
-
} }), Object.defineProperty(c.prototype, "removeStreamByID", { enumerable: !1, configurable: !0, writable: !0, value: function(
|
|
20181
|
-
delete this.streams[
|
|
20182
|
-
} }), Object.defineProperty(c.prototype, "writeHeaders", { enumerable: !1, configurable: !0, writable: !0, value: function(
|
|
20180
|
+
} }), Object.defineProperty(c.prototype, "removeStreamByID", { enumerable: !1, configurable: !0, writable: !0, value: function(m) {
|
|
20181
|
+
delete this.streams[m];
|
|
20182
|
+
} }), Object.defineProperty(c.prototype, "writeHeaders", { enumerable: !1, configurable: !0, writable: !0, value: function(m, d) {
|
|
20183
20183
|
var v = new o.Request();
|
|
20184
|
-
v.setStream(
|
|
20185
|
-
} }), Object.defineProperty(c.prototype, "writeMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(
|
|
20184
|
+
v.setStream(m), v.setHeaders(d), this.write(v);
|
|
20185
|
+
} }), Object.defineProperty(c.prototype, "writeMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(m, d) {
|
|
20186
20186
|
var v = new o.Request();
|
|
20187
|
-
v.setStream(
|
|
20188
|
-
} }), Object.defineProperty(c.prototype, "writeReset", { enumerable: !1, configurable: !0, writable: !0, value: function(
|
|
20189
|
-
var
|
|
20190
|
-
|
|
20187
|
+
v.setStream(m), v.setMessage(d), this.write(v);
|
|
20188
|
+
} }), Object.defineProperty(c.prototype, "writeReset", { enumerable: !1, configurable: !0, writable: !0, value: function(m) {
|
|
20189
|
+
var d = new o.Request();
|
|
20190
|
+
d.setStream(m), d.setRstStream(!0), this.write(d);
|
|
20191
20191
|
} }), c;
|
|
20192
20192
|
}(u.BaseChannel);
|
|
20193
20193
|
e.ClientChannel = r;
|
|
20194
20194
|
var n = function() {
|
|
20195
|
-
function l(c,
|
|
20196
|
-
Object.defineProperty(this, "err", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "opts", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.err = c, this.opts =
|
|
20195
|
+
function l(c, m) {
|
|
20196
|
+
Object.defineProperty(this, "err", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(this, "opts", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), this.err = c, this.opts = m;
|
|
20197
20197
|
}
|
|
20198
20198
|
return Object.defineProperty(l.prototype, "start", { enumerable: !1, configurable: !0, writable: !0, value: function() {
|
|
20199
20199
|
var c = this;
|
|
@@ -20207,12 +20207,12 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20207
20207
|
}();
|
|
20208
20208
|
}, 417: (t, e, s) => {
|
|
20209
20209
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.encodeASCII = e.ClientStream = void 0;
|
|
20210
|
-
var i = s(655), u = s(37), g = s(370), p = s(758), o = s(210), r = function(
|
|
20211
|
-
function
|
|
20212
|
-
var M =
|
|
20210
|
+
var i = s(655), u = s(37), g = s(370), p = s(758), o = s(210), r = function(m) {
|
|
20211
|
+
function d(v, y, f, b) {
|
|
20212
|
+
var M = m.call(this, y, f, b) || this;
|
|
20213
20213
|
return Object.defineProperty(M, "channel", { enumerable: !0, configurable: !0, writable: !0, value: void 0 }), Object.defineProperty(M, "headersReceived", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), Object.defineProperty(M, "trailersReceived", { enumerable: !0, configurable: !0, writable: !0, value: !1 }), M.channel = v, M;
|
|
20214
20214
|
}
|
|
20215
|
-
return i.__extends(
|
|
20215
|
+
return i.__extends(d, m), Object.defineProperty(d.prototype, "start", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
|
|
20216
20216
|
var y = "/".concat(this.opts.methodDefinition.service.serviceName, "/").concat(this.opts.methodDefinition.methodName), f = new o.RequestHeaders();
|
|
20217
20217
|
f.setMethod(y), f.setMetadata(l(v));
|
|
20218
20218
|
try {
|
|
@@ -20220,19 +20220,19 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20220
20220
|
} catch (b) {
|
|
20221
20221
|
console.error("error writing headers", b), this.closeWithRecvError(b);
|
|
20222
20222
|
}
|
|
20223
|
-
} }), Object.defineProperty(
|
|
20223
|
+
} }), Object.defineProperty(d.prototype, "sendMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
|
|
20224
20224
|
v ? this.writeMessage(!1, v.slice(5)) : this.writeMessage(!1, void 0);
|
|
20225
|
-
} }), Object.defineProperty(
|
|
20225
|
+
} }), Object.defineProperty(d.prototype, "resetStream", { enumerable: !1, configurable: !0, writable: !0, value: function() {
|
|
20226
20226
|
try {
|
|
20227
20227
|
this.channel.writeReset(this.stream);
|
|
20228
20228
|
} catch (v) {
|
|
20229
20229
|
console.error("error writing reset", v), this.closeWithRecvError(v);
|
|
20230
20230
|
}
|
|
20231
|
-
} }), Object.defineProperty(
|
|
20231
|
+
} }), Object.defineProperty(d.prototype, "finishSend", { enumerable: !1, configurable: !0, writable: !0, value: function() {
|
|
20232
20232
|
this.opts.methodDefinition.requestStream && this.writeMessage(!0, void 0);
|
|
20233
|
-
} }), Object.defineProperty(
|
|
20233
|
+
} }), Object.defineProperty(d.prototype, "cancel", { enumerable: !1, configurable: !0, writable: !0, value: function() {
|
|
20234
20234
|
this.closed || this.resetStream();
|
|
20235
|
-
} }), Object.defineProperty(
|
|
20235
|
+
} }), Object.defineProperty(d.prototype, "writeMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(v, y) {
|
|
20236
20236
|
try {
|
|
20237
20237
|
if (!y || y.length == 0)
|
|
20238
20238
|
return (f = new o.PacketMessage()).setEom(!0), (b = new o.RequestMessage()).setHasMessage(!!y), b.setPacketMessage(f), b.setEos(v), void this.channel.writeMessage(this.stream, b);
|
|
@@ -20243,7 +20243,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20243
20243
|
} catch (h) {
|
|
20244
20244
|
console.error("error writing message", h), this.closeWithRecvError(h);
|
|
20245
20245
|
}
|
|
20246
|
-
} }), Object.defineProperty(
|
|
20246
|
+
} }), Object.defineProperty(d.prototype, "onResponse", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
|
|
20247
20247
|
switch (v.getTypeCase()) {
|
|
20248
20248
|
case o.Response.TypeCase.HEADERS:
|
|
20249
20249
|
if (this.headersReceived)
|
|
@@ -20265,86 +20265,86 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20265
20265
|
default:
|
|
20266
20266
|
console.error("unknown response type", v.getTypeCase());
|
|
20267
20267
|
}
|
|
20268
|
-
} }), Object.defineProperty(
|
|
20268
|
+
} }), Object.defineProperty(d.prototype, "processHeaders", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
|
|
20269
20269
|
this.headersReceived = !0, this.opts.onHeaders(c(v.getMetadata()), 200);
|
|
20270
|
-
} }), Object.defineProperty(
|
|
20271
|
-
var y =
|
|
20270
|
+
} }), Object.defineProperty(d.prototype, "processMessage", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
|
|
20271
|
+
var y = m.prototype.processPacketMessage.call(this, v.getPacketMessage());
|
|
20272
20272
|
if (y) {
|
|
20273
20273
|
var f = new ArrayBuffer(y.length + 5);
|
|
20274
20274
|
new DataView(f, 1, 4).setUint32(0, y.length, !1), new Uint8Array(f, 5).set(y), this.opts.onChunk(new Uint8Array(f));
|
|
20275
20275
|
}
|
|
20276
|
-
} }), Object.defineProperty(
|
|
20276
|
+
} }), Object.defineProperty(d.prototype, "processTrailers", { enumerable: !1, configurable: !0, writable: !0, value: function(v) {
|
|
20277
20277
|
this.trailersReceived = !0;
|
|
20278
20278
|
var y, f, b = c(v.getMetadata()), M = v.getStatus();
|
|
20279
20279
|
M ? (y = M.getCode(), f = M.getMessage(), b.set("grpc-status", "".concat(M.getCode())), f !== void 0 && b.set("grpc-message", M.getMessage())) : (y = 0, b.set("grpc-status", "0"), f = "");
|
|
20280
20280
|
var h = function(w) {
|
|
20281
20281
|
var C = "";
|
|
20282
|
-
return w.forEach(function(q,
|
|
20283
|
-
C += "".concat(q, ": ").concat(
|
|
20282
|
+
return w.forEach(function(q, W) {
|
|
20283
|
+
C += "".concat(q, ": ").concat(W.join(", "), `\r
|
|
20284
20284
|
`);
|
|
20285
20285
|
}), n(C);
|
|
20286
20286
|
}(b), O = new ArrayBuffer(h.length + 5);
|
|
20287
20287
|
new DataView(O, 0, 1).setUint8(0, 128), new DataView(O, 1, 4).setUint32(0, h.length, !1), new Uint8Array(O, 5).set(h), this.opts.onChunk(new Uint8Array(O)), y !== 0 ? this.closeWithRecvError(new p.GRPCError(y, f)) : this.closeWithRecvError();
|
|
20288
|
-
} }),
|
|
20288
|
+
} }), d;
|
|
20289
20289
|
}(g.BaseStream);
|
|
20290
|
-
function n(
|
|
20291
|
-
for (var
|
|
20292
|
-
var b =
|
|
20293
|
-
if (!((
|
|
20290
|
+
function n(m) {
|
|
20291
|
+
for (var d, v, y = new Uint8Array(m.length), f = 0; f !== m.length; ++f) {
|
|
20292
|
+
var b = m.charCodeAt(f);
|
|
20293
|
+
if (!((d = v = b) === 9 || d === 10 || d === 13 || v >= 32 && v <= 126))
|
|
20294
20294
|
throw new Error("Metadata contains invalid ASCII");
|
|
20295
20295
|
y[f] = b;
|
|
20296
20296
|
}
|
|
20297
20297
|
return y;
|
|
20298
20298
|
}
|
|
20299
20299
|
e.ClientStream = r, e.encodeASCII = n;
|
|
20300
|
-
var l = function(
|
|
20301
|
-
if (
|
|
20302
|
-
var
|
|
20303
|
-
if (
|
|
20300
|
+
var l = function(m) {
|
|
20301
|
+
if (m) {
|
|
20302
|
+
var d = new o.Metadata(), v = d.getMdMap();
|
|
20303
|
+
if (m.forEach(function(y, f) {
|
|
20304
20304
|
var b = new o.Strings();
|
|
20305
20305
|
b.setValuesList(f), v.set(y, b);
|
|
20306
|
-
}),
|
|
20307
|
-
return
|
|
20308
|
-
}
|
|
20309
|
-
}, c = function(
|
|
20310
|
-
var
|
|
20311
|
-
return
|
|
20312
|
-
return
|
|
20313
|
-
}),
|
|
20306
|
+
}), d.getMdMap().getLength() !== 0)
|
|
20307
|
+
return d;
|
|
20308
|
+
}
|
|
20309
|
+
}, c = function(m) {
|
|
20310
|
+
var d = new u.grpc.Metadata();
|
|
20311
|
+
return m && m.getMdMap().forEach(function(v, y) {
|
|
20312
|
+
return d.append(y, v.getValuesList());
|
|
20313
|
+
}), d;
|
|
20314
20314
|
};
|
|
20315
20315
|
}, 512: (t, e, s) => {
|
|
20316
20316
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.dialWebRTC = e.dialDirect = void 0;
|
|
20317
|
-
var i = s(655), u = s(37), g = s(138), p = s(758), o = s(743), r = s(34), n = s(165), l = s(400), c = s(982),
|
|
20317
|
+
var i = s(655), u = s(37), g = s(138), p = s(758), o = s(743), r = s(34), n = s(165), l = s(400), c = s(982), m = s(958), d = s(93);
|
|
20318
20318
|
function v(h, O) {
|
|
20319
20319
|
return i.__awaiter(this, void 0, void 0, function() {
|
|
20320
20320
|
var w, C;
|
|
20321
20321
|
return i.__generator(this, function(q) {
|
|
20322
|
-
return M(O), w = function(
|
|
20323
|
-
return u.grpc.CrossBrowserHttpTransport({ withCredentials: !1 })(
|
|
20324
|
-
}, !O?.accessToken || O?.externalAuthAddress && O?.externalAuthToEntity ? O && (O?.credentials || O?.accessToken) ? [2, y(h, w, O)] : [2, w] : ((C = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(O.accessToken)), [2, function(
|
|
20325
|
-
return new f(
|
|
20322
|
+
return M(O), w = function(W) {
|
|
20323
|
+
return u.grpc.CrossBrowserHttpTransport({ withCredentials: !1 })(W);
|
|
20324
|
+
}, !O?.accessToken || O?.externalAuthAddress && O?.externalAuthToEntity ? O && (O?.credentials || O?.accessToken) ? [2, y(h, w, O)] : [2, w] : ((C = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(O.accessToken)), [2, function(W) {
|
|
20325
|
+
return new f(W, w, C);
|
|
20326
20326
|
}]);
|
|
20327
20327
|
});
|
|
20328
20328
|
});
|
|
20329
20329
|
}
|
|
20330
20330
|
function y(h, O, w) {
|
|
20331
20331
|
return i.__awaiter(this, void 0, void 0, function() {
|
|
20332
|
-
var C, q,
|
|
20332
|
+
var C, q, W, x = this;
|
|
20333
20333
|
return i.__generator(this, function(U) {
|
|
20334
20334
|
switch (U.label) {
|
|
20335
20335
|
case 0:
|
|
20336
20336
|
return C = "", q = function() {
|
|
20337
|
-
return i.__awaiter(
|
|
20338
|
-
var I,
|
|
20337
|
+
return i.__awaiter(x, void 0, void 0, function() {
|
|
20338
|
+
var I, z, k, S, R, _, E, F, P, T;
|
|
20339
20339
|
return i.__generator(this, function(j) {
|
|
20340
20340
|
switch (j.label) {
|
|
20341
20341
|
case 0:
|
|
20342
20342
|
return C != "" ? [3, 5] : (I = "", w.accessToken && w.accessToken !== "" ? [3, 2] : ((E = new n.AuthenticateRequest()).setEntity(w.authEntity ? w.authEntity : h.replace(/^(.*:\/\/)/, "")), (S = new n.Credentials()).setType((P = w.credentials) === null || P === void 0 ? void 0 : P.type), S.setPayload((T = w.credentials) === null || T === void 0 ? void 0 : T.payload), E.setCredentials(S), _ = new Promise(function(A, D) {
|
|
20343
|
-
|
|
20343
|
+
z = A, k = D;
|
|
20344
20344
|
}), u.grpc.invoke(l.AuthService.Authenticate, { request: E, host: w.externalAuthAddress ? w.externalAuthAddress : h, transport: O, onMessage: function(A) {
|
|
20345
20345
|
I = A.getAccessToken();
|
|
20346
20346
|
}, onEnd: function(A, D, B) {
|
|
20347
|
-
A == u.grpc.Code.OK ?
|
|
20347
|
+
A == u.grpc.Code.OK ? z(F) : k(D);
|
|
20348
20348
|
} }), [4, _]));
|
|
20349
20349
|
case 1:
|
|
20350
20350
|
return j.sent(), [3, 3];
|
|
@@ -20352,11 +20352,11 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20352
20352
|
I = w.accessToken, j.label = 3;
|
|
20353
20353
|
case 3:
|
|
20354
20354
|
return C = I, w.externalAuthAddress && w.externalAuthToEntity ? ((R = new u.grpc.Metadata()).set("authorization", "Bearer ".concat(C)), _ = new Promise(function(A, D) {
|
|
20355
|
-
|
|
20355
|
+
z = A, k = D;
|
|
20356
20356
|
}), I = "", (E = new n.AuthenticateToRequest()).setEntity(w.externalAuthToEntity), u.grpc.invoke(l.ExternalAuthService.AuthenticateTo, { request: E, host: w.externalAuthAddress, transport: O, metadata: R, onMessage: function(A) {
|
|
20357
20357
|
I = A.getAccessToken();
|
|
20358
20358
|
}, onEnd: function(A, D, B) {
|
|
20359
|
-
A == u.grpc.Code.OK ?
|
|
20359
|
+
A == u.grpc.Code.OK ? z(R) : k(D);
|
|
20360
20360
|
} }), [4, _]) : [3, 5];
|
|
20361
20361
|
case 4:
|
|
20362
20362
|
j.sent(), C = I, j.label = 5;
|
|
@@ -20367,8 +20367,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20367
20367
|
});
|
|
20368
20368
|
}, [4, q()];
|
|
20369
20369
|
case 1:
|
|
20370
|
-
return
|
|
20371
|
-
return new f(I, O,
|
|
20370
|
+
return W = U.sent(), [2, function(I) {
|
|
20371
|
+
return new f(I, O, W);
|
|
20372
20372
|
}];
|
|
20373
20373
|
}
|
|
20374
20374
|
});
|
|
@@ -20393,25 +20393,25 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20393
20393
|
}();
|
|
20394
20394
|
function b(h, O, w) {
|
|
20395
20395
|
return i.__awaiter(this, void 0, void 0, function() {
|
|
20396
|
-
var C, q,
|
|
20397
|
-
return i.__generator(this, function(
|
|
20398
|
-
switch (
|
|
20396
|
+
var C, q, W, x, U, I;
|
|
20397
|
+
return i.__generator(this, function(z) {
|
|
20398
|
+
switch (z.label) {
|
|
20399
20399
|
case 0:
|
|
20400
20400
|
return C = i.__assign({}, w), [4, v(h, C)];
|
|
20401
20401
|
case 1:
|
|
20402
|
-
return q =
|
|
20403
|
-
|
|
20404
|
-
}), u.grpc.unary(
|
|
20402
|
+
return q = z.sent(), I = new Promise(function(k, S) {
|
|
20403
|
+
W = k, x = S;
|
|
20404
|
+
}), u.grpc.unary(m.SignalingService.OptionalWebRTCConfig, { request: new c.OptionalWebRTCConfigRequest(), metadata: { "rpc-host": O }, host: h, transport: q, onEnd: function(k) {
|
|
20405
20405
|
var S = k.status, R = k.statusMessage, _ = k.message;
|
|
20406
20406
|
if (S === u.grpc.Code.OK && _) {
|
|
20407
20407
|
if (!(U = _.getConfig()))
|
|
20408
|
-
return void
|
|
20409
|
-
|
|
20408
|
+
return void W(new c.WebRTCConfig());
|
|
20409
|
+
W(U);
|
|
20410
20410
|
} else
|
|
20411
|
-
|
|
20411
|
+
x(R);
|
|
20412
20412
|
} }), [4, I];
|
|
20413
20413
|
case 2:
|
|
20414
|
-
if (
|
|
20414
|
+
if (z.sent(), !U)
|
|
20415
20415
|
throw new Error("no config");
|
|
20416
20416
|
return [2, U];
|
|
20417
20417
|
}
|
|
@@ -20444,9 +20444,9 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20444
20444
|
}
|
|
20445
20445
|
}
|
|
20446
20446
|
e.dialWebRTC = function(h, O, w) {
|
|
20447
|
-
var C, q,
|
|
20447
|
+
var C, q, W, x, U, I, z;
|
|
20448
20448
|
return i.__awaiter(this, void 0, void 0, function() {
|
|
20449
|
-
var k, S, R, _, E, F, P, T, j, A, D, B,
|
|
20449
|
+
var k, S, R, _, E, F, P, T, j, A, D, B, G, V, Z, oe, re, ge, ae, ne, pe, ie, le, se, ce, ue, me = this;
|
|
20450
20450
|
return i.__generator(this, function(J) {
|
|
20451
20451
|
switch (J.label) {
|
|
20452
20452
|
case 0:
|
|
@@ -20454,19 +20454,19 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20454
20454
|
case 1:
|
|
20455
20455
|
return k = J.sent(), S = k.toObject().additionalIceServersList.map(function(L) {
|
|
20456
20456
|
return { urls: L.urlsList, credential: L.credential, username: L.username };
|
|
20457
|
-
}), w || (w = {}), w.webrtcOptions ? (R = w.webrtcOptions).rtcConfig ? R.rtcConfig.iceServers = i.__spreadArray(i.__spreadArray([], R.rtcConfig.iceServers || [], !0), S, !0) : R.rtcConfig = { iceServers: S } : R = { disableTrickleICE: k.getDisableTrickle(), rtcConfig: { iceServers: S } }, [4, (0,
|
|
20457
|
+
}), w || (w = {}), w.webrtcOptions ? (R = w.webrtcOptions).rtcConfig ? R.rtcConfig.iceServers = i.__spreadArray(i.__spreadArray([], R.rtcConfig.iceServers || [], !0), S, !0) : R.rtcConfig = { iceServers: S } : R = { disableTrickleICE: k.getDisableTrickle(), rtcConfig: { iceServers: S } }, [4, (0, d.newPeerConnectionForClient)(R !== void 0 && R.disableTrickleICE, R?.rtcConfig)];
|
|
20458
20458
|
case 2:
|
|
20459
20459
|
_ = J.sent(), E = _.pc, F = _.dc, P = !1, J.label = 3;
|
|
20460
20460
|
case 3:
|
|
20461
|
-
return J.trys.push([3, , 10, 11]), T = w, w && (T = i.__assign({}, w), w.accessToken || (T.authEntity = (C = w?.webrtcOptions) === null || C === void 0 ? void 0 : C.signalingAuthEntity, T.authEntity || (T.externalAuthAddress ? T.authEntity = (q = w.externalAuthAddress) === null || q === void 0 ? void 0 : q.replace(/^(.*:\/\/)/, "") : T.authEntity = h.replace(/^(.*:\/\/)/, "")), T.credentials = (
|
|
20461
|
+
return J.trys.push([3, , 10, 11]), T = w, w && (T = i.__assign({}, w), w.accessToken || (T.authEntity = (C = w?.webrtcOptions) === null || C === void 0 ? void 0 : C.signalingAuthEntity, T.authEntity || (T.externalAuthAddress ? T.authEntity = (q = w.externalAuthAddress) === null || q === void 0 ? void 0 : q.replace(/^(.*:\/\/)/, "") : T.authEntity = h.replace(/^(.*:\/\/)/, "")), T.credentials = (W = w?.webrtcOptions) === null || W === void 0 ? void 0 : W.signalingCredentials, T.accessToken = (x = w?.webrtcOptions) === null || x === void 0 ? void 0 : x.signalingAccessToken), T.externalAuthAddress = (U = w?.webrtcOptions) === null || U === void 0 ? void 0 : U.signalingExternalAuthAddress, T.externalAuthToEntity = (I = w?.webrtcOptions) === null || I === void 0 ? void 0 : I.signalingExternalAuthToEntity), [4, v(h, T)];
|
|
20462
20462
|
case 4:
|
|
20463
|
-
return j = J.sent(), A = u.grpc.client(
|
|
20463
|
+
return j = J.sent(), A = u.grpc.client(m.SignalingService.Call, { host: h, transport: j }), D = "", B = !1, G = function(L) {
|
|
20464
20464
|
if (!B) {
|
|
20465
20465
|
B = !0;
|
|
20466
20466
|
var N = new c.CallUpdateRequest();
|
|
20467
20467
|
N.setUuid(D);
|
|
20468
20468
|
var $ = new r.Status();
|
|
20469
|
-
$.setCode(o.Code.UNKNOWN), $.setMessage(L), N.setError($), u.grpc.unary(
|
|
20469
|
+
$.setCode(o.Code.UNKNOWN), $.setMessage(L), N.setError($), u.grpc.unary(m.SignalingService.CallUpdate, { request: N, metadata: { "rpc-host": O }, host: h, transport: j, onEnd: function(K) {
|
|
20470
20470
|
var H = K.status, Y = K.statusMessage, Q = K.message;
|
|
20471
20471
|
H === u.grpc.Code.OK && Q || console.error(Y);
|
|
20472
20472
|
} });
|
|
@@ -20475,7 +20475,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20475
20475
|
if (!B) {
|
|
20476
20476
|
B = !0;
|
|
20477
20477
|
var L = new c.CallUpdateRequest();
|
|
20478
|
-
L.setUuid(D), L.setDone(!0), u.grpc.unary(
|
|
20478
|
+
L.setUuid(D), L.setDone(!0), u.grpc.unary(m.SignalingService.CallUpdate, { request: L, metadata: { "rpc-host": O }, host: h, transport: j, onEnd: function(N) {
|
|
20479
20479
|
var $ = N.status, K = N.statusMessage, H = N.message;
|
|
20480
20480
|
$ === u.grpc.Code.OK && H || console.error(K);
|
|
20481
20481
|
} });
|
|
@@ -20485,14 +20485,14 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20485
20485
|
}), re = !1, R?.disableTrickleICE ? [3, 7] : [4, E.createOffer()];
|
|
20486
20486
|
case 5:
|
|
20487
20487
|
return ge = J.sent(), ae = !1, E.onicecandidate = function(L) {
|
|
20488
|
-
return i.__awaiter(
|
|
20488
|
+
return i.__awaiter(me, void 0, void 0, function() {
|
|
20489
20489
|
var N, $;
|
|
20490
20490
|
return i.__generator(this, function(K) {
|
|
20491
20491
|
switch (K.label) {
|
|
20492
20492
|
case 0:
|
|
20493
20493
|
return [4, oe];
|
|
20494
20494
|
case 1:
|
|
20495
|
-
return K.sent(), re ? [2] : L.candidate === null ? (ae = !0, V(), [2]) : (H = L.candidate, (Y = new c.ICECandidate()).setCandidate(H.candidate), H.sdpMid && Y.setSdpMid(H.sdpMid), H.sdpMLineIndex && Y.setSdpmLineIndex(H.sdpMLineIndex), H.usernameFragment && Y.setUsernameFragment(H.usernameFragment), N = Y, ($ = new c.CallUpdateRequest()).setUuid(D), $.setCandidate(N), u.grpc.unary(
|
|
20495
|
+
return K.sent(), re ? [2] : L.candidate === null ? (ae = !0, V(), [2]) : (H = L.candidate, (Y = new c.ICECandidate()).setCandidate(H.candidate), H.sdpMid && Y.setSdpMid(H.sdpMid), H.sdpMLineIndex && Y.setSdpmLineIndex(H.sdpMLineIndex), H.usernameFragment && Y.setUsernameFragment(H.usernameFragment), N = Y, ($ = new c.CallUpdateRequest()).setUuid(D), $.setCandidate(N), u.grpc.unary(m.SignalingService.CallUpdate, { request: $, metadata: { "rpc-host": O }, host: h, transport: j, onEnd: function(Q) {
|
|
20496
20496
|
var ee = Q.status, X = Q.statusMessage, te = Q.message;
|
|
20497
20497
|
ee === u.grpc.Code.OK && te || re || ae || console.error("error sending candidate", X);
|
|
20498
20498
|
} }), [2]);
|
|
@@ -20505,32 +20505,32 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20505
20505
|
J.sent(), J.label = 7;
|
|
20506
20506
|
case 7:
|
|
20507
20507
|
return ne = !1, A.onMessage(function(L) {
|
|
20508
|
-
return i.__awaiter(
|
|
20508
|
+
return i.__awaiter(me, void 0, void 0, function() {
|
|
20509
20509
|
var N, $, K, H, Y, Q;
|
|
20510
20510
|
return i.__generator(this, function(ee) {
|
|
20511
20511
|
switch (ee.label) {
|
|
20512
20512
|
case 0:
|
|
20513
|
-
return (N = L).hasInit() ? ne ? (
|
|
20513
|
+
return (N = L).hasInit() ? ne ? (G("got init stage more than once"), [2]) : ($ = N.getInit(), ne = !0, D = N.getUuid(), K = new RTCSessionDescription(JSON.parse(atob($.getSdp()))), [4, E.setRemoteDescription(K)]) : [3, 2];
|
|
20514
20514
|
case 1:
|
|
20515
20515
|
return ee.sent(), Z(!0), R?.disableTrickleICE ? (re = !0, V(), [2]) : [3, 8];
|
|
20516
20516
|
case 2:
|
|
20517
20517
|
if (!N.hasUpdate())
|
|
20518
20518
|
return [3, 7];
|
|
20519
20519
|
if (!ne)
|
|
20520
|
-
return
|
|
20520
|
+
return G("got update stage before init stage"), [2];
|
|
20521
20521
|
if (N.getUuid() !== D)
|
|
20522
|
-
return
|
|
20522
|
+
return G("uuid mismatch; have=".concat(N.getUuid(), " want=").concat(D)), [2];
|
|
20523
20523
|
H = N.getUpdate(), X = H.getCandidate(), te = { candidate: X.getCandidate() }, X.hasSdpMid() && (te.sdpMid = X.getSdpMid()), X.hasSdpmLineIndex() && (te.sdpMLineIndex = X.getSdpmLineIndex()), X.hasUsernameFragment() && (te.usernameFragment = X.getUsernameFragment()), Y = te, ee.label = 3;
|
|
20524
20524
|
case 3:
|
|
20525
20525
|
return ee.trys.push([3, 5, , 6]), [4, E.addIceCandidate(Y)];
|
|
20526
20526
|
case 4:
|
|
20527
20527
|
return ee.sent(), [3, 6];
|
|
20528
20528
|
case 5:
|
|
20529
|
-
return Q = ee.sent(),
|
|
20529
|
+
return Q = ee.sent(), G(JSON.stringify(Q)), [2];
|
|
20530
20530
|
case 6:
|
|
20531
20531
|
return [3, 8];
|
|
20532
20532
|
case 7:
|
|
20533
|
-
return
|
|
20533
|
+
return G("unknown CallResponse stage"), [2];
|
|
20534
20534
|
case 8:
|
|
20535
20535
|
return [2];
|
|
20536
20536
|
}
|
|
@@ -20549,7 +20549,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20549
20549
|
case 8:
|
|
20550
20550
|
return J.sent(), [4, ue.ready];
|
|
20551
20551
|
case 9:
|
|
20552
|
-
return J.sent(), re = !0, V(), w?.externalAuthAddress || (
|
|
20552
|
+
return J.sent(), re = !0, V(), w?.externalAuthAddress || (z = w?.credentials) === null || z === void 0 || z.type, P = !0, [2, { transportFactory: ue.transportFactory(), peerConnection: E }];
|
|
20553
20553
|
case 10:
|
|
20554
20554
|
return P || E.close(), [7];
|
|
20555
20555
|
case 11:
|
|
@@ -20583,7 +20583,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20583
20583
|
var i = s(655);
|
|
20584
20584
|
e.newPeerConnectionForClient = function(u, g) {
|
|
20585
20585
|
return i.__awaiter(this, void 0, void 0, function() {
|
|
20586
|
-
var p, o, r, n, l, c,
|
|
20586
|
+
var p, o, r, n, l, c, m, d, v = this;
|
|
20587
20587
|
return i.__generator(this, function(y) {
|
|
20588
20588
|
switch (y.label) {
|
|
20589
20589
|
case 0:
|
|
@@ -20633,13 +20633,13 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20633
20633
|
});
|
|
20634
20634
|
}, u ? [4, p.createOffer()] : [2, Promise.resolve({ pc: p, dc: n })];
|
|
20635
20635
|
case 1:
|
|
20636
|
-
|
|
20636
|
+
m = y.sent(), y.label = 2;
|
|
20637
20637
|
case 2:
|
|
20638
|
-
return y.trys.push([2, 4, , 5]), [4, p.setLocalDescription(
|
|
20638
|
+
return y.trys.push([2, 4, , 5]), [4, p.setLocalDescription(m)];
|
|
20639
20639
|
case 3:
|
|
20640
20640
|
return y.sent(), [3, 5];
|
|
20641
20641
|
case 4:
|
|
20642
|
-
return
|
|
20642
|
+
return d = y.sent(), [2, Promise.reject(d)];
|
|
20643
20643
|
case 5:
|
|
20644
20644
|
return p.onicecandidate = function(f) {
|
|
20645
20645
|
return i.__awaiter(v, void 0, void 0, function() {
|
|
@@ -20653,7 +20653,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20653
20653
|
});
|
|
20654
20654
|
};
|
|
20655
20655
|
}, 655: (t, e, s) => {
|
|
20656
|
-
s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => w, __asyncGenerator: () => O, __asyncValues: () => C, __await: () => h, __awaiter: () => l, __classPrivateFieldGet: () => I, __classPrivateFieldIn: () => k, __classPrivateFieldSet: () =>
|
|
20656
|
+
s.r(e), s.d(e, { __assign: () => g, __asyncDelegator: () => w, __asyncGenerator: () => O, __asyncValues: () => C, __await: () => h, __awaiter: () => l, __classPrivateFieldGet: () => I, __classPrivateFieldIn: () => k, __classPrivateFieldSet: () => z, __createBinding: () => m, __decorate: () => o, __exportStar: () => d, __extends: () => u, __generator: () => c, __importDefault: () => U, __importStar: () => x, __makeTemplateObject: () => q, __metadata: () => n, __param: () => r, __read: () => y, __rest: () => p, __spread: () => f, __spreadArray: () => M, __spreadArrays: () => b, __values: () => v });
|
|
20657
20657
|
var i = function(S, R) {
|
|
20658
20658
|
return i = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(_, E) {
|
|
20659
20659
|
_.__proto__ = E;
|
|
@@ -20725,8 +20725,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20725
20725
|
}
|
|
20726
20726
|
function A(D) {
|
|
20727
20727
|
var B;
|
|
20728
|
-
D.done ? F(D.value) : (B = D.value, B instanceof _ ? B : new _(function(
|
|
20729
|
-
|
|
20728
|
+
D.done ? F(D.value) : (B = D.value, B instanceof _ ? B : new _(function(G) {
|
|
20729
|
+
G(B);
|
|
20730
20730
|
})).then(T, j);
|
|
20731
20731
|
}
|
|
20732
20732
|
A((E = E.apply(S, R || [])).next());
|
|
@@ -20784,8 +20784,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20784
20784
|
continue;
|
|
20785
20785
|
}
|
|
20786
20786
|
B = R.call(S, T);
|
|
20787
|
-
} catch (
|
|
20788
|
-
B = [6,
|
|
20787
|
+
} catch (G) {
|
|
20788
|
+
B = [6, G], E = 0;
|
|
20789
20789
|
} finally {
|
|
20790
20790
|
_ = F = 0;
|
|
20791
20791
|
}
|
|
@@ -20796,7 +20796,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20796
20796
|
};
|
|
20797
20797
|
}
|
|
20798
20798
|
}
|
|
20799
|
-
var
|
|
20799
|
+
var m = Object.create ? function(S, R, _, E) {
|
|
20800
20800
|
E === void 0 && (E = _);
|
|
20801
20801
|
var F = Object.getOwnPropertyDescriptor(R, _);
|
|
20802
20802
|
F && !("get" in F ? !R.__esModule : F.writable || F.configurable) || (F = { enumerable: !0, get: function() {
|
|
@@ -20805,9 +20805,9 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20805
20805
|
} : function(S, R, _, E) {
|
|
20806
20806
|
E === void 0 && (E = _), S[E] = R[_];
|
|
20807
20807
|
};
|
|
20808
|
-
function
|
|
20808
|
+
function d(S, R) {
|
|
20809
20809
|
for (var _ in S)
|
|
20810
|
-
_ === "default" || Object.prototype.hasOwnProperty.call(R, _) ||
|
|
20810
|
+
_ === "default" || Object.prototype.hasOwnProperty.call(R, _) || m(R, S, _);
|
|
20811
20811
|
}
|
|
20812
20812
|
function v(S) {
|
|
20813
20813
|
var R = typeof Symbol == "function" && Symbol.iterator, _ = R && S[R], E = 0;
|
|
@@ -20869,29 +20869,29 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20869
20869
|
return E = {}, T("next"), T("throw"), T("return"), E[Symbol.asyncIterator] = function() {
|
|
20870
20870
|
return this;
|
|
20871
20871
|
}, E;
|
|
20872
|
-
function T(
|
|
20873
|
-
F[
|
|
20872
|
+
function T(G) {
|
|
20873
|
+
F[G] && (E[G] = function(V) {
|
|
20874
20874
|
return new Promise(function(Z, oe) {
|
|
20875
|
-
P.push([
|
|
20875
|
+
P.push([G, V, Z, oe]) > 1 || j(G, V);
|
|
20876
20876
|
});
|
|
20877
20877
|
});
|
|
20878
20878
|
}
|
|
20879
|
-
function j(
|
|
20879
|
+
function j(G, V) {
|
|
20880
20880
|
try {
|
|
20881
|
-
(Z = F[
|
|
20881
|
+
(Z = F[G](V)).value instanceof h ? Promise.resolve(Z.value.v).then(A, D) : B(P[0][2], Z);
|
|
20882
20882
|
} catch (oe) {
|
|
20883
20883
|
B(P[0][3], oe);
|
|
20884
20884
|
}
|
|
20885
20885
|
var Z;
|
|
20886
20886
|
}
|
|
20887
|
-
function A(
|
|
20888
|
-
j("next",
|
|
20887
|
+
function A(G) {
|
|
20888
|
+
j("next", G);
|
|
20889
20889
|
}
|
|
20890
|
-
function D(
|
|
20891
|
-
j("throw",
|
|
20890
|
+
function D(G) {
|
|
20891
|
+
j("throw", G);
|
|
20892
20892
|
}
|
|
20893
|
-
function B(
|
|
20894
|
-
|
|
20893
|
+
function B(G, V) {
|
|
20894
|
+
G(V), P.shift(), P.length && j(P[0][0], P[0][1]);
|
|
20895
20895
|
}
|
|
20896
20896
|
}
|
|
20897
20897
|
function w(S) {
|
|
@@ -20917,8 +20917,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20917
20917
|
function E(F) {
|
|
20918
20918
|
R[F] = S[F] && function(P) {
|
|
20919
20919
|
return new Promise(function(T, j) {
|
|
20920
|
-
(function(A, D, B,
|
|
20921
|
-
Promise.resolve(
|
|
20920
|
+
(function(A, D, B, G) {
|
|
20921
|
+
Promise.resolve(G).then(function(V) {
|
|
20922
20922
|
A({ value: V, done: B });
|
|
20923
20923
|
}, D);
|
|
20924
20924
|
})(T, j, (P = S[F](P)).done, P.value);
|
|
@@ -20929,19 +20929,19 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20929
20929
|
function q(S, R) {
|
|
20930
20930
|
return Object.defineProperty ? Object.defineProperty(S, "raw", { value: R }) : S.raw = R, S;
|
|
20931
20931
|
}
|
|
20932
|
-
var
|
|
20932
|
+
var W = Object.create ? function(S, R) {
|
|
20933
20933
|
Object.defineProperty(S, "default", { enumerable: !0, value: R });
|
|
20934
20934
|
} : function(S, R) {
|
|
20935
20935
|
S.default = R;
|
|
20936
20936
|
};
|
|
20937
|
-
function
|
|
20937
|
+
function x(S) {
|
|
20938
20938
|
if (S && S.__esModule)
|
|
20939
20939
|
return S;
|
|
20940
20940
|
var R = {};
|
|
20941
20941
|
if (S != null)
|
|
20942
20942
|
for (var _ in S)
|
|
20943
|
-
_ !== "default" && Object.prototype.hasOwnProperty.call(S, _) &&
|
|
20944
|
-
return
|
|
20943
|
+
_ !== "default" && Object.prototype.hasOwnProperty.call(S, _) && m(R, S, _);
|
|
20944
|
+
return W(R, S), R;
|
|
20945
20945
|
}
|
|
20946
20946
|
function U(S) {
|
|
20947
20947
|
return S && S.__esModule ? S : { default: S };
|
|
@@ -20953,7 +20953,7 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
20953
20953
|
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
20954
20954
|
return _ === "m" ? E : _ === "a" ? E.call(S) : E ? E.value : R.get(S);
|
|
20955
20955
|
}
|
|
20956
|
-
function
|
|
20956
|
+
function z(S, R, _, E, F) {
|
|
20957
20957
|
if (E === "m")
|
|
20958
20958
|
throw new TypeError("Private method is not writable");
|
|
20959
20959
|
if (E === "a" && !F)
|
|
@@ -21422,16 +21422,16 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
21422
21422
|
}
|
|
21423
21423
|
g.Authenticate = { methodName: "Authenticate", service: g, requestStream: !1, responseStream: !1, requestType: i.AuthenticateRequest, responseType: i.AuthenticateResponse }, e.AuthService = g, p.prototype.authenticate = function(n, l, c) {
|
|
21424
21424
|
arguments.length === 2 && (c = arguments[1]);
|
|
21425
|
-
var
|
|
21425
|
+
var m = u.unary(g.Authenticate, { request: n, host: this.serviceHost, metadata: l, transport: this.options.transport, debug: this.options.debug, onEnd: function(d) {
|
|
21426
21426
|
if (c)
|
|
21427
|
-
if (
|
|
21428
|
-
var v = new Error(
|
|
21429
|
-
v.code =
|
|
21427
|
+
if (d.status !== u.Code.OK) {
|
|
21428
|
+
var v = new Error(d.statusMessage);
|
|
21429
|
+
v.code = d.status, v.metadata = d.trailers, c(v, null);
|
|
21430
21430
|
} else
|
|
21431
|
-
c(null,
|
|
21431
|
+
c(null, d.message);
|
|
21432
21432
|
} });
|
|
21433
21433
|
return { cancel: function() {
|
|
21434
|
-
c = null,
|
|
21434
|
+
c = null, m.close();
|
|
21435
21435
|
} };
|
|
21436
21436
|
}, e.AuthServiceClient = p;
|
|
21437
21437
|
var o = function() {
|
|
@@ -21444,16 +21444,16 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
21444
21444
|
}
|
|
21445
21445
|
o.AuthenticateTo = { methodName: "AuthenticateTo", service: o, requestStream: !1, responseStream: !1, requestType: i.AuthenticateToRequest, responseType: i.AuthenticateToResponse }, e.ExternalAuthService = o, r.prototype.authenticateTo = function(n, l, c) {
|
|
21446
21446
|
arguments.length === 2 && (c = arguments[1]);
|
|
21447
|
-
var
|
|
21447
|
+
var m = u.unary(o.AuthenticateTo, { request: n, host: this.serviceHost, metadata: l, transport: this.options.transport, debug: this.options.debug, onEnd: function(d) {
|
|
21448
21448
|
if (c)
|
|
21449
|
-
if (
|
|
21450
|
-
var v = new Error(
|
|
21451
|
-
v.code =
|
|
21449
|
+
if (d.status !== u.Code.OK) {
|
|
21450
|
+
var v = new Error(d.statusMessage);
|
|
21451
|
+
v.code = d.status, v.metadata = d.trailers, c(v, null);
|
|
21452
21452
|
} else
|
|
21453
|
-
c(null,
|
|
21453
|
+
c(null, d.message);
|
|
21454
21454
|
} });
|
|
21455
21455
|
return { cancel: function() {
|
|
21456
|
-
c = null,
|
|
21456
|
+
c = null, m.close();
|
|
21457
21457
|
} };
|
|
21458
21458
|
}, e.ExternalAuthServiceClient = r;
|
|
21459
21459
|
}, 210: (t, e, s) => {
|
|
@@ -21930,8 +21930,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
21930
21930
|
for (; n.nextField() && !n.isEndGroup(); )
|
|
21931
21931
|
if (n.getFieldNumber() === 1) {
|
|
21932
21932
|
var l = r.getMdMap();
|
|
21933
|
-
n.readMessage(l, function(c,
|
|
21934
|
-
i.Map.deserializeBinary(c,
|
|
21933
|
+
n.readMessage(l, function(c, m) {
|
|
21934
|
+
i.Map.deserializeBinary(c, m, i.BinaryReader.prototype.readString, i.BinaryReader.prototype.readMessage, proto.proto.rpc.webrtc.v1.Strings.deserializeBinaryFromReader, "", new proto.proto.rpc.webrtc.v1.Strings());
|
|
21935
21935
|
});
|
|
21936
21936
|
} else
|
|
21937
21937
|
n.skipField();
|
|
@@ -22124,8 +22124,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22124
22124
|
}, i.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.webrtc.v1.CallResponseUpdateStage.prototype.toObject = function(n) {
|
|
22125
22125
|
return proto.proto.rpc.webrtc.v1.CallResponseUpdateStage.toObject(n, this);
|
|
22126
22126
|
}, proto.proto.rpc.webrtc.v1.CallResponseUpdateStage.toObject = function(n, l) {
|
|
22127
|
-
var c,
|
|
22128
|
-
return n && (
|
|
22127
|
+
var c, m = { candidate: (c = l.getCandidate()) && proto.proto.rpc.webrtc.v1.ICECandidate.toObject(n, c) };
|
|
22128
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
22129
22129
|
}), proto.proto.rpc.webrtc.v1.CallResponseUpdateStage.deserializeBinary = function(n) {
|
|
22130
22130
|
var l = new i.BinaryReader(n), c = new proto.proto.rpc.webrtc.v1.CallResponseUpdateStage();
|
|
22131
22131
|
return proto.proto.rpc.webrtc.v1.CallResponseUpdateStage.deserializeBinaryFromReader(c, l);
|
|
@@ -22156,8 +22156,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22156
22156
|
}, i.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.webrtc.v1.CallResponse.prototype.toObject = function(n) {
|
|
22157
22157
|
return proto.proto.rpc.webrtc.v1.CallResponse.toObject(n, this);
|
|
22158
22158
|
}, proto.proto.rpc.webrtc.v1.CallResponse.toObject = function(n, l) {
|
|
22159
|
-
var c,
|
|
22160
|
-
return n && (
|
|
22159
|
+
var c, m = { uuid: i.Message.getFieldWithDefault(l, 1, ""), init: (c = l.getInit()) && proto.proto.rpc.webrtc.v1.CallResponseInitStage.toObject(n, c), update: (c = l.getUpdate()) && proto.proto.rpc.webrtc.v1.CallResponseUpdateStage.toObject(n, c) };
|
|
22160
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
22161
22161
|
}), proto.proto.rpc.webrtc.v1.CallResponse.deserializeBinary = function(n) {
|
|
22162
22162
|
var l = new i.BinaryReader(n), c = new proto.proto.rpc.webrtc.v1.CallResponse();
|
|
22163
22163
|
return proto.proto.rpc.webrtc.v1.CallResponse.deserializeBinaryFromReader(c, l);
|
|
@@ -22209,8 +22209,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22209
22209
|
}, i.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.webrtc.v1.CallUpdateRequest.prototype.toObject = function(n) {
|
|
22210
22210
|
return proto.proto.rpc.webrtc.v1.CallUpdateRequest.toObject(n, this);
|
|
22211
22211
|
}, proto.proto.rpc.webrtc.v1.CallUpdateRequest.toObject = function(n, l) {
|
|
22212
|
-
var c,
|
|
22213
|
-
return n && (
|
|
22212
|
+
var c, m = { uuid: i.Message.getFieldWithDefault(l, 1, ""), candidate: (c = l.getCandidate()) && proto.proto.rpc.webrtc.v1.ICECandidate.toObject(n, c), done: i.Message.getBooleanFieldWithDefault(l, 3, !1), error: (c = l.getError()) && r.Status.toObject(n, c) };
|
|
22213
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
22214
22214
|
}), proto.proto.rpc.webrtc.v1.CallUpdateRequest.deserializeBinary = function(n) {
|
|
22215
22215
|
var l = new i.BinaryReader(n), c = new proto.proto.rpc.webrtc.v1.CallUpdateRequest();
|
|
22216
22216
|
return proto.proto.rpc.webrtc.v1.CallUpdateRequest.deserializeBinaryFromReader(c, l);
|
|
@@ -22287,8 +22287,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22287
22287
|
}, proto.proto.rpc.webrtc.v1.ICEServer.repeatedFields_ = [1], i.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.webrtc.v1.ICEServer.prototype.toObject = function(n) {
|
|
22288
22288
|
return proto.proto.rpc.webrtc.v1.ICEServer.toObject(n, this);
|
|
22289
22289
|
}, proto.proto.rpc.webrtc.v1.ICEServer.toObject = function(n, l) {
|
|
22290
|
-
var c,
|
|
22291
|
-
return n && (
|
|
22290
|
+
var c, m = { urlsList: (c = i.Message.getRepeatedField(l, 1)) == null ? void 0 : c, username: i.Message.getFieldWithDefault(l, 2, ""), credential: i.Message.getFieldWithDefault(l, 3, "") };
|
|
22291
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
22292
22292
|
}), proto.proto.rpc.webrtc.v1.ICEServer.deserializeBinary = function(n) {
|
|
22293
22293
|
var l = new i.BinaryReader(n), c = new proto.proto.rpc.webrtc.v1.ICEServer();
|
|
22294
22294
|
return proto.proto.rpc.webrtc.v1.ICEServer.deserializeBinaryFromReader(c, l);
|
|
@@ -22374,8 +22374,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22374
22374
|
}, i.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.webrtc.v1.AnswerRequestInitStage.prototype.toObject = function(n) {
|
|
22375
22375
|
return proto.proto.rpc.webrtc.v1.AnswerRequestInitStage.toObject(n, this);
|
|
22376
22376
|
}, proto.proto.rpc.webrtc.v1.AnswerRequestInitStage.toObject = function(n, l) {
|
|
22377
|
-
var c,
|
|
22378
|
-
return n && (
|
|
22377
|
+
var c, m = { sdp: i.Message.getFieldWithDefault(l, 1, ""), optionalConfig: (c = l.getOptionalConfig()) && proto.proto.rpc.webrtc.v1.WebRTCConfig.toObject(n, c), deadline: (c = l.getDeadline()) && o.Timestamp.toObject(n, c) };
|
|
22378
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
22379
22379
|
}), proto.proto.rpc.webrtc.v1.AnswerRequestInitStage.deserializeBinary = function(n) {
|
|
22380
22380
|
var l = new i.BinaryReader(n), c = new proto.proto.rpc.webrtc.v1.AnswerRequestInitStage();
|
|
22381
22381
|
return proto.proto.rpc.webrtc.v1.AnswerRequestInitStage.deserializeBinaryFromReader(c, l);
|
|
@@ -22425,8 +22425,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22425
22425
|
}, i.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.webrtc.v1.AnswerRequestUpdateStage.prototype.toObject = function(n) {
|
|
22426
22426
|
return proto.proto.rpc.webrtc.v1.AnswerRequestUpdateStage.toObject(n, this);
|
|
22427
22427
|
}, proto.proto.rpc.webrtc.v1.AnswerRequestUpdateStage.toObject = function(n, l) {
|
|
22428
|
-
var c,
|
|
22429
|
-
return n && (
|
|
22428
|
+
var c, m = { candidate: (c = l.getCandidate()) && proto.proto.rpc.webrtc.v1.ICECandidate.toObject(n, c) };
|
|
22429
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
22430
22430
|
}), proto.proto.rpc.webrtc.v1.AnswerRequestUpdateStage.deserializeBinary = function(n) {
|
|
22431
22431
|
var l = new i.BinaryReader(n), c = new proto.proto.rpc.webrtc.v1.AnswerRequestUpdateStage();
|
|
22432
22432
|
return proto.proto.rpc.webrtc.v1.AnswerRequestUpdateStage.deserializeBinaryFromReader(c, l);
|
|
@@ -22471,8 +22471,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22471
22471
|
}, i.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.webrtc.v1.AnswerRequestErrorStage.prototype.toObject = function(n) {
|
|
22472
22472
|
return proto.proto.rpc.webrtc.v1.AnswerRequestErrorStage.toObject(n, this);
|
|
22473
22473
|
}, proto.proto.rpc.webrtc.v1.AnswerRequestErrorStage.toObject = function(n, l) {
|
|
22474
|
-
var c,
|
|
22475
|
-
return n && (
|
|
22474
|
+
var c, m = { status: (c = l.getStatus()) && r.Status.toObject(n, c) };
|
|
22475
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
22476
22476
|
}), proto.proto.rpc.webrtc.v1.AnswerRequestErrorStage.deserializeBinary = function(n) {
|
|
22477
22477
|
var l = new i.BinaryReader(n), c = new proto.proto.rpc.webrtc.v1.AnswerRequestErrorStage();
|
|
22478
22478
|
return proto.proto.rpc.webrtc.v1.AnswerRequestErrorStage.deserializeBinaryFromReader(c, l);
|
|
@@ -22503,8 +22503,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22503
22503
|
}, i.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.webrtc.v1.AnswerRequest.prototype.toObject = function(n) {
|
|
22504
22504
|
return proto.proto.rpc.webrtc.v1.AnswerRequest.toObject(n, this);
|
|
22505
22505
|
}, proto.proto.rpc.webrtc.v1.AnswerRequest.toObject = function(n, l) {
|
|
22506
|
-
var c,
|
|
22507
|
-
return n && (
|
|
22506
|
+
var c, m = { uuid: i.Message.getFieldWithDefault(l, 1, ""), init: (c = l.getInit()) && proto.proto.rpc.webrtc.v1.AnswerRequestInitStage.toObject(n, c), update: (c = l.getUpdate()) && proto.proto.rpc.webrtc.v1.AnswerRequestUpdateStage.toObject(n, c), done: (c = l.getDone()) && proto.proto.rpc.webrtc.v1.AnswerRequestDoneStage.toObject(n, c), error: (c = l.getError()) && proto.proto.rpc.webrtc.v1.AnswerRequestErrorStage.toObject(n, c) };
|
|
22507
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
22508
22508
|
}), proto.proto.rpc.webrtc.v1.AnswerRequest.deserializeBinary = function(n) {
|
|
22509
22509
|
var l = new i.BinaryReader(n), c = new proto.proto.rpc.webrtc.v1.AnswerRequest();
|
|
22510
22510
|
return proto.proto.rpc.webrtc.v1.AnswerRequest.deserializeBinaryFromReader(c, l);
|
|
@@ -22602,8 +22602,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22602
22602
|
}, i.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.webrtc.v1.AnswerResponseUpdateStage.prototype.toObject = function(n) {
|
|
22603
22603
|
return proto.proto.rpc.webrtc.v1.AnswerResponseUpdateStage.toObject(n, this);
|
|
22604
22604
|
}, proto.proto.rpc.webrtc.v1.AnswerResponseUpdateStage.toObject = function(n, l) {
|
|
22605
|
-
var c,
|
|
22606
|
-
return n && (
|
|
22605
|
+
var c, m = { candidate: (c = l.getCandidate()) && proto.proto.rpc.webrtc.v1.ICECandidate.toObject(n, c) };
|
|
22606
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
22607
22607
|
}), proto.proto.rpc.webrtc.v1.AnswerResponseUpdateStage.deserializeBinary = function(n) {
|
|
22608
22608
|
var l = new i.BinaryReader(n), c = new proto.proto.rpc.webrtc.v1.AnswerResponseUpdateStage();
|
|
22609
22609
|
return proto.proto.rpc.webrtc.v1.AnswerResponseUpdateStage.deserializeBinaryFromReader(c, l);
|
|
@@ -22648,8 +22648,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22648
22648
|
}, i.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.webrtc.v1.AnswerResponseErrorStage.prototype.toObject = function(n) {
|
|
22649
22649
|
return proto.proto.rpc.webrtc.v1.AnswerResponseErrorStage.toObject(n, this);
|
|
22650
22650
|
}, proto.proto.rpc.webrtc.v1.AnswerResponseErrorStage.toObject = function(n, l) {
|
|
22651
|
-
var c,
|
|
22652
|
-
return n && (
|
|
22651
|
+
var c, m = { status: (c = l.getStatus()) && r.Status.toObject(n, c) };
|
|
22652
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
22653
22653
|
}), proto.proto.rpc.webrtc.v1.AnswerResponseErrorStage.deserializeBinary = function(n) {
|
|
22654
22654
|
var l = new i.BinaryReader(n), c = new proto.proto.rpc.webrtc.v1.AnswerResponseErrorStage();
|
|
22655
22655
|
return proto.proto.rpc.webrtc.v1.AnswerResponseErrorStage.deserializeBinaryFromReader(c, l);
|
|
@@ -22680,8 +22680,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22680
22680
|
}, i.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.webrtc.v1.AnswerResponse.prototype.toObject = function(n) {
|
|
22681
22681
|
return proto.proto.rpc.webrtc.v1.AnswerResponse.toObject(n, this);
|
|
22682
22682
|
}, proto.proto.rpc.webrtc.v1.AnswerResponse.toObject = function(n, l) {
|
|
22683
|
-
var c,
|
|
22684
|
-
return n && (
|
|
22683
|
+
var c, m = { uuid: i.Message.getFieldWithDefault(l, 1, ""), init: (c = l.getInit()) && proto.proto.rpc.webrtc.v1.AnswerResponseInitStage.toObject(n, c), update: (c = l.getUpdate()) && proto.proto.rpc.webrtc.v1.AnswerResponseUpdateStage.toObject(n, c), done: (c = l.getDone()) && proto.proto.rpc.webrtc.v1.AnswerResponseDoneStage.toObject(n, c), error: (c = l.getError()) && proto.proto.rpc.webrtc.v1.AnswerResponseErrorStage.toObject(n, c) };
|
|
22684
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
22685
22685
|
}), proto.proto.rpc.webrtc.v1.AnswerResponse.deserializeBinary = function(n) {
|
|
22686
22686
|
var l = new i.BinaryReader(n), c = new proto.proto.rpc.webrtc.v1.AnswerResponse();
|
|
22687
22687
|
return proto.proto.rpc.webrtc.v1.AnswerResponse.deserializeBinaryFromReader(c, l);
|
|
@@ -22769,8 +22769,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22769
22769
|
}, i.Message.GENERATE_TO_OBJECT && (proto.proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse.prototype.toObject = function(n) {
|
|
22770
22770
|
return proto.proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse.toObject(n, this);
|
|
22771
22771
|
}, proto.proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse.toObject = function(n, l) {
|
|
22772
|
-
var c,
|
|
22773
|
-
return n && (
|
|
22772
|
+
var c, m = { config: (c = l.getConfig()) && proto.proto.rpc.webrtc.v1.WebRTCConfig.toObject(n, c) };
|
|
22773
|
+
return n && (m.$jspbMessageInstance = l), m;
|
|
22774
22774
|
}), proto.proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse.deserializeBinary = function(n) {
|
|
22775
22775
|
var l = new i.BinaryReader(n), c = new proto.proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse();
|
|
22776
22776
|
return proto.proto.rpc.webrtc.v1.OptionalWebRTCConfigResponse.deserializeBinaryFromReader(c, l);
|
|
@@ -22808,18 +22808,18 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22808
22808
|
}
|
|
22809
22809
|
g.Call = { methodName: "Call", service: g, requestStream: !1, responseStream: !0, requestType: i.CallRequest, responseType: i.CallResponse }, g.CallUpdate = { methodName: "CallUpdate", service: g, requestStream: !1, responseStream: !1, requestType: i.CallUpdateRequest, responseType: i.CallUpdateResponse }, g.Answer = { methodName: "Answer", service: g, requestStream: !0, responseStream: !0, requestType: i.AnswerResponse, responseType: i.AnswerRequest }, g.OptionalWebRTCConfig = { methodName: "OptionalWebRTCConfig", service: g, requestStream: !1, responseStream: !1, requestType: i.OptionalWebRTCConfigRequest, responseType: i.OptionalWebRTCConfigResponse }, e.SignalingService = g, p.prototype.call = function(o, r) {
|
|
22810
22810
|
var n = { data: [], end: [], status: [] }, l = u.invoke(g.Call, { request: o, host: this.serviceHost, metadata: r, transport: this.options.transport, debug: this.options.debug, onMessage: function(c) {
|
|
22811
|
-
n.data.forEach(function(
|
|
22812
|
-
|
|
22811
|
+
n.data.forEach(function(m) {
|
|
22812
|
+
m(c);
|
|
22813
22813
|
});
|
|
22814
|
-
}, onEnd: function(c,
|
|
22814
|
+
}, onEnd: function(c, m, d) {
|
|
22815
22815
|
n.status.forEach(function(v) {
|
|
22816
|
-
v({ code: c, details:
|
|
22816
|
+
v({ code: c, details: m, metadata: d });
|
|
22817
22817
|
}), n.end.forEach(function(v) {
|
|
22818
|
-
v({ code: c, details:
|
|
22818
|
+
v({ code: c, details: m, metadata: d });
|
|
22819
22819
|
}), n = null;
|
|
22820
22820
|
} });
|
|
22821
|
-
return { on: function(c,
|
|
22822
|
-
return n[c].push(
|
|
22821
|
+
return { on: function(c, m) {
|
|
22822
|
+
return n[c].push(m), this;
|
|
22823
22823
|
}, cancel: function() {
|
|
22824
22824
|
n = null, l.close();
|
|
22825
22825
|
} };
|
|
@@ -22828,8 +22828,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22828
22828
|
var l = u.unary(g.CallUpdate, { request: o, host: this.serviceHost, metadata: r, transport: this.options.transport, debug: this.options.debug, onEnd: function(c) {
|
|
22829
22829
|
if (n)
|
|
22830
22830
|
if (c.status !== u.Code.OK) {
|
|
22831
|
-
var
|
|
22832
|
-
|
|
22831
|
+
var m = new Error(c.statusMessage);
|
|
22832
|
+
m.code = c.status, m.metadata = c.trailers, n(m, null);
|
|
22833
22833
|
} else
|
|
22834
22834
|
n(null, c.message);
|
|
22835
22835
|
} });
|
|
@@ -22838,11 +22838,11 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22838
22838
|
} };
|
|
22839
22839
|
}, p.prototype.answer = function(o) {
|
|
22840
22840
|
var r = { data: [], end: [], status: [] }, n = u.client(g.Answer, { host: this.serviceHost, metadata: o, transport: this.options.transport });
|
|
22841
|
-
return n.onEnd(function(l, c,
|
|
22842
|
-
r.status.forEach(function(
|
|
22843
|
-
|
|
22844
|
-
}), r.end.forEach(function(
|
|
22845
|
-
|
|
22841
|
+
return n.onEnd(function(l, c, m) {
|
|
22842
|
+
r.status.forEach(function(d) {
|
|
22843
|
+
d({ code: l, details: c, metadata: m });
|
|
22844
|
+
}), r.end.forEach(function(d) {
|
|
22845
|
+
d({ code: l, details: c, metadata: m });
|
|
22846
22846
|
}), r = null;
|
|
22847
22847
|
}), n.onMessage(function(l) {
|
|
22848
22848
|
r.data.forEach(function(c) {
|
|
@@ -22862,8 +22862,8 @@ var backOff_1 = backoff.backOff = backOff, BackOff = (
|
|
|
22862
22862
|
var l = u.unary(g.OptionalWebRTCConfig, { request: o, host: this.serviceHost, metadata: r, transport: this.options.transport, debug: this.options.debug, onEnd: function(c) {
|
|
22863
22863
|
if (n)
|
|
22864
22864
|
if (c.status !== u.Code.OK) {
|
|
22865
|
-
var
|
|
22866
|
-
|
|
22865
|
+
var m = new Error(c.statusMessage);
|
|
22866
|
+
m.code = c.status, m.metadata = c.trailers, n(m, null);
|
|
22867
22867
|
} else
|
|
22868
22868
|
n(null, c.message);
|
|
22869
22869
|
} });
|
|
@@ -22980,83 +22980,83 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
22980
22980
|
}([function(p, o, r) {
|
|
22981
22981
|
Object.defineProperty(o, "__esModule", { value: !0 });
|
|
22982
22982
|
var n = r(3), l = function() {
|
|
22983
|
-
function c(
|
|
22984
|
-
|
|
22983
|
+
function c(m, d) {
|
|
22984
|
+
m === void 0 && (m = {}), d === void 0 && (d = { splitValues: !1 });
|
|
22985
22985
|
var v, y = this;
|
|
22986
|
-
this.headersMap = {},
|
|
22987
|
-
n.getHeaderValues(
|
|
22988
|
-
|
|
22986
|
+
this.headersMap = {}, m && (typeof Headers < "u" && m instanceof Headers ? n.getHeaderKeys(m).forEach(function(f) {
|
|
22987
|
+
n.getHeaderValues(m, f).forEach(function(b) {
|
|
22988
|
+
d.splitValues ? y.append(f, n.splitHeaderValue(b)) : y.append(f, b);
|
|
22989
22989
|
});
|
|
22990
|
-
}) : typeof (v =
|
|
22990
|
+
}) : typeof (v = m) == "object" && typeof v.headersMap == "object" && typeof v.forEach == "function" ? m.forEach(function(f, b) {
|
|
22991
22991
|
y.append(f, b);
|
|
22992
|
-
}) : typeof Map < "u" &&
|
|
22992
|
+
}) : typeof Map < "u" && m instanceof Map ? m.forEach(function(f, b) {
|
|
22993
22993
|
y.append(b, f);
|
|
22994
|
-
}) : typeof
|
|
22995
|
-
var b =
|
|
22994
|
+
}) : typeof m == "string" ? this.appendFromString(m) : typeof m == "object" && Object.getOwnPropertyNames(m).forEach(function(f) {
|
|
22995
|
+
var b = m[f];
|
|
22996
22996
|
Array.isArray(b) ? b.forEach(function(M) {
|
|
22997
22997
|
y.append(f, M);
|
|
22998
22998
|
}) : y.append(f, b);
|
|
22999
22999
|
}));
|
|
23000
23000
|
}
|
|
23001
|
-
return c.prototype.appendFromString = function(
|
|
23002
|
-
for (var
|
|
23003
|
-
`), v = 0; v <
|
|
23004
|
-
var y =
|
|
23001
|
+
return c.prototype.appendFromString = function(m) {
|
|
23002
|
+
for (var d = m.split(`\r
|
|
23003
|
+
`), v = 0; v < d.length; v++) {
|
|
23004
|
+
var y = d[v], f = y.indexOf(":");
|
|
23005
23005
|
if (f > 0) {
|
|
23006
23006
|
var b = y.substring(0, f).trim(), M = y.substring(f + 1).trim();
|
|
23007
23007
|
this.append(b, M);
|
|
23008
23008
|
}
|
|
23009
23009
|
}
|
|
23010
|
-
}, c.prototype.delete = function(
|
|
23011
|
-
var v = n.normalizeName(
|
|
23012
|
-
if (
|
|
23010
|
+
}, c.prototype.delete = function(m, d) {
|
|
23011
|
+
var v = n.normalizeName(m);
|
|
23012
|
+
if (d === void 0)
|
|
23013
23013
|
delete this.headersMap[v];
|
|
23014
23014
|
else {
|
|
23015
23015
|
var y = this.headersMap[v];
|
|
23016
23016
|
if (y) {
|
|
23017
|
-
var f = y.indexOf(
|
|
23017
|
+
var f = y.indexOf(d);
|
|
23018
23018
|
f >= 0 && y.splice(f, 1), y.length === 0 && delete this.headersMap[v];
|
|
23019
23019
|
}
|
|
23020
23020
|
}
|
|
23021
|
-
}, c.prototype.append = function(
|
|
23022
|
-
var v = this, y = n.normalizeName(
|
|
23023
|
-
Array.isArray(this.headersMap[y]) || (this.headersMap[y] = []), Array.isArray(
|
|
23021
|
+
}, c.prototype.append = function(m, d) {
|
|
23022
|
+
var v = this, y = n.normalizeName(m);
|
|
23023
|
+
Array.isArray(this.headersMap[y]) || (this.headersMap[y] = []), Array.isArray(d) ? d.forEach(function(f) {
|
|
23024
23024
|
v.headersMap[y].push(n.normalizeValue(f));
|
|
23025
|
-
}) : this.headersMap[y].push(n.normalizeValue(
|
|
23026
|
-
}, c.prototype.set = function(
|
|
23027
|
-
var v = n.normalizeName(
|
|
23028
|
-
if (Array.isArray(
|
|
23025
|
+
}) : this.headersMap[y].push(n.normalizeValue(d));
|
|
23026
|
+
}, c.prototype.set = function(m, d) {
|
|
23027
|
+
var v = n.normalizeName(m);
|
|
23028
|
+
if (Array.isArray(d)) {
|
|
23029
23029
|
var y = [];
|
|
23030
|
-
|
|
23030
|
+
d.forEach(function(f) {
|
|
23031
23031
|
y.push(n.normalizeValue(f));
|
|
23032
23032
|
}), this.headersMap[v] = y;
|
|
23033
23033
|
} else
|
|
23034
|
-
this.headersMap[v] = [n.normalizeValue(
|
|
23035
|
-
}, c.prototype.has = function(
|
|
23036
|
-
var v = this.headersMap[n.normalizeName(
|
|
23034
|
+
this.headersMap[v] = [n.normalizeValue(d)];
|
|
23035
|
+
}, c.prototype.has = function(m, d) {
|
|
23036
|
+
var v = this.headersMap[n.normalizeName(m)];
|
|
23037
23037
|
if (!Array.isArray(v))
|
|
23038
23038
|
return !1;
|
|
23039
|
-
if (
|
|
23040
|
-
var y = n.normalizeValue(
|
|
23039
|
+
if (d !== void 0) {
|
|
23040
|
+
var y = n.normalizeValue(d);
|
|
23041
23041
|
return v.indexOf(y) >= 0;
|
|
23042
23042
|
}
|
|
23043
23043
|
return !0;
|
|
23044
|
-
}, c.prototype.get = function(
|
|
23045
|
-
var
|
|
23046
|
-
return
|
|
23047
|
-
}, c.prototype.forEach = function(
|
|
23048
|
-
var
|
|
23044
|
+
}, c.prototype.get = function(m) {
|
|
23045
|
+
var d = this.headersMap[n.normalizeName(m)];
|
|
23046
|
+
return d !== void 0 ? d.concat() : [];
|
|
23047
|
+
}, c.prototype.forEach = function(m) {
|
|
23048
|
+
var d = this;
|
|
23049
23049
|
Object.getOwnPropertyNames(this.headersMap).forEach(function(v) {
|
|
23050
|
-
|
|
23050
|
+
m(v, d.headersMap[v]);
|
|
23051
23051
|
}, this);
|
|
23052
23052
|
}, c.prototype.toHeaders = function() {
|
|
23053
23053
|
if (typeof Headers < "u") {
|
|
23054
|
-
var
|
|
23055
|
-
return this.forEach(function(
|
|
23054
|
+
var m = new Headers();
|
|
23055
|
+
return this.forEach(function(d, v) {
|
|
23056
23056
|
v.forEach(function(y) {
|
|
23057
|
-
|
|
23057
|
+
m.append(d, y);
|
|
23058
23058
|
});
|
|
23059
|
-
}),
|
|
23059
|
+
}), m;
|
|
23060
23060
|
}
|
|
23061
23061
|
throw new Error("Headers class is not defined");
|
|
23062
23062
|
}, c;
|
|
@@ -23068,11 +23068,11 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
23068
23068
|
o.BrowserHeaders = n.BrowserHeaders;
|
|
23069
23069
|
}, function(p, o, r) {
|
|
23070
23070
|
Object.defineProperty(o, "__esModule", { value: !0 }), o.iterateHeaders = function(n, l) {
|
|
23071
|
-
for (var c = n[Symbol.iterator](),
|
|
23072
|
-
l(
|
|
23071
|
+
for (var c = n[Symbol.iterator](), m = c.next(); !m.done; )
|
|
23072
|
+
l(m.value[0]), m = c.next();
|
|
23073
23073
|
}, o.iterateHeadersKeys = function(n, l) {
|
|
23074
|
-
for (var c = n.keys(),
|
|
23075
|
-
l(
|
|
23074
|
+
for (var c = n.keys(), m = c.next(); !m.done; )
|
|
23075
|
+
l(m.value), m = c.next();
|
|
23076
23076
|
};
|
|
23077
23077
|
}, function(p, o, r) {
|
|
23078
23078
|
Object.defineProperty(o, "__esModule", { value: !0 });
|
|
@@ -23084,26 +23084,26 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
23084
23084
|
}, o.normalizeValue = function(l) {
|
|
23085
23085
|
return typeof l != "string" && (l = String(l)), l;
|
|
23086
23086
|
}, o.getHeaderValues = function(l, c) {
|
|
23087
|
-
var
|
|
23088
|
-
if (
|
|
23089
|
-
return
|
|
23090
|
-
var
|
|
23091
|
-
return
|
|
23087
|
+
var m = l;
|
|
23088
|
+
if (m instanceof Headers && m.getAll)
|
|
23089
|
+
return m.getAll(c);
|
|
23090
|
+
var d = m.get(c);
|
|
23091
|
+
return d && typeof d == "string" ? [d] : d;
|
|
23092
23092
|
}, o.getHeaderKeys = function(l) {
|
|
23093
|
-
var c = l,
|
|
23093
|
+
var c = l, m = {}, d = [];
|
|
23094
23094
|
return c.keys ? n.iterateHeadersKeys(c, function(v) {
|
|
23095
|
-
|
|
23095
|
+
m[v] || (m[v] = !0, d.push(v));
|
|
23096
23096
|
}) : c.forEach ? c.forEach(function(v, y) {
|
|
23097
|
-
|
|
23097
|
+
m[y] || (m[y] = !0, d.push(y));
|
|
23098
23098
|
}) : n.iterateHeaders(c, function(v) {
|
|
23099
23099
|
var y = v[0];
|
|
23100
|
-
|
|
23101
|
-
}),
|
|
23100
|
+
m[y] || (m[y] = !0, d.push(y));
|
|
23101
|
+
}), d;
|
|
23102
23102
|
}, o.splitHeaderValue = function(l) {
|
|
23103
23103
|
var c = [];
|
|
23104
|
-
return l.split(", ").forEach(function(
|
|
23105
|
-
|
|
23106
|
-
c.push(
|
|
23104
|
+
return l.split(", ").forEach(function(m) {
|
|
23105
|
+
m.split(",").forEach(function(d) {
|
|
23106
|
+
c.push(d);
|
|
23107
23107
|
});
|
|
23108
23108
|
}), c;
|
|
23109
23109
|
};
|
|
@@ -23124,10 +23124,10 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
23124
23124
|
function c(f) {
|
|
23125
23125
|
return (128 & f.getUint8(0)) == 128;
|
|
23126
23126
|
}
|
|
23127
|
-
function
|
|
23127
|
+
function m(f) {
|
|
23128
23128
|
return f.getUint32(1, !1);
|
|
23129
23129
|
}
|
|
23130
|
-
function
|
|
23130
|
+
function d(f, b, M) {
|
|
23131
23131
|
return f.byteLength - b >= M;
|
|
23132
23132
|
}
|
|
23133
23133
|
function v(f, b, M) {
|
|
@@ -23165,19 +23165,19 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
23165
23165
|
else {
|
|
23166
23166
|
var w = this.buffer.byteLength - this.position, C = new Uint8Array(w + b.byteLength), q = v(this.buffer, this.position);
|
|
23167
23167
|
C.set(q, 0);
|
|
23168
|
-
var
|
|
23169
|
-
C.set(
|
|
23168
|
+
var W = new Uint8Array(b);
|
|
23169
|
+
C.set(W, w), this.buffer = C, this.position = 0;
|
|
23170
23170
|
}
|
|
23171
23171
|
for (; ; ) {
|
|
23172
|
-
if (!
|
|
23172
|
+
if (!d(this.buffer, this.position, 5))
|
|
23173
23173
|
return O;
|
|
23174
|
-
var
|
|
23175
|
-
if (!
|
|
23174
|
+
var x = v(this.buffer, this.position, this.position + 5), U = new DataView(x.buffer, x.byteOffset, x.byteLength), I = m(U);
|
|
23175
|
+
if (!d(this.buffer, this.position, 5 + I))
|
|
23176
23176
|
return O;
|
|
23177
|
-
var
|
|
23177
|
+
var z = v(this.buffer, this.position + 5, this.position + 5 + I);
|
|
23178
23178
|
if (this.position += 5 + I, c(U))
|
|
23179
|
-
return O.push({ chunkType: o.TRAILERS, trailers: (h =
|
|
23180
|
-
O.push({ chunkType: o.MESSAGE, data:
|
|
23179
|
+
return O.push({ chunkType: o.TRAILERS, trailers: (h = z, new r.Metadata(l(h))) }), O;
|
|
23180
|
+
O.push({ chunkType: o.MESSAGE, data: z });
|
|
23181
23181
|
}
|
|
23182
23182
|
}, f;
|
|
23183
23183
|
}();
|
|
@@ -23222,11 +23222,11 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
23222
23222
|
};
|
|
23223
23223
|
}, 934: function(u, g, p) {
|
|
23224
23224
|
Object.defineProperty(g, "__esModule", { value: !0 }), g.client = void 0;
|
|
23225
|
-
var o = p(65), r = p(617), n = p(8), l = p(346), c = p(57),
|
|
23225
|
+
var o = p(65), r = p(617), n = p(8), l = p(346), c = p(57), m = p(882);
|
|
23226
23226
|
g.client = function(y, f) {
|
|
23227
|
-
return new
|
|
23227
|
+
return new d(y, f);
|
|
23228
23228
|
};
|
|
23229
|
-
var
|
|
23229
|
+
var d = function() {
|
|
23230
23230
|
function y(f, b) {
|
|
23231
23231
|
this.started = !1, this.sentFirstMessage = !1, this.completed = !1, this.closed = !1, this.finishedSending = !1, this.onHeadersCallbacks = [], this.onMessageCallbacks = [], this.onEndCallbacks = [], this.parser = new r.ChunkParser(), this.methodDefinition = f, this.props = b, this.createTransport();
|
|
23232
23232
|
}
|
|
@@ -23362,7 +23362,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
23362
23362
|
if (!this.methodDefinition.requestStream && this.sentFirstMessage)
|
|
23363
23363
|
throw new Error("Message already sent for non-client-streaming method - cannot .send()");
|
|
23364
23364
|
this.sentFirstMessage = !0;
|
|
23365
|
-
var b =
|
|
23365
|
+
var b = m.frameRequest(f);
|
|
23366
23366
|
this.transport.sendMessage(b);
|
|
23367
23367
|
}, y.prototype.finishSend = function() {
|
|
23368
23368
|
if (!this.started)
|
|
@@ -23399,8 +23399,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
23399
23399
|
};
|
|
23400
23400
|
}, 607: function(u, g, p) {
|
|
23401
23401
|
Object.defineProperty(g, "__esModule", { value: !0 }), g.grpc = void 0;
|
|
23402
|
-
var o, r = p(418), n = p(57), l = p(229), c = p(540),
|
|
23403
|
-
(o = g.grpc || (g.grpc = {})).setDefaultTransport = n.setDefaultTransportFactory, o.CrossBrowserHttpTransport =
|
|
23402
|
+
var o, r = p(418), n = p(57), l = p(229), c = p(540), m = p(210), d = p(859), v = p(8), y = p(938), f = p(35), b = p(934);
|
|
23403
|
+
(o = g.grpc || (g.grpc = {})).setDefaultTransport = n.setDefaultTransportFactory, o.CrossBrowserHttpTransport = d.CrossBrowserHttpTransport, o.FetchReadableStreamTransport = l.FetchReadableStreamTransport, o.XhrTransport = m.XhrTransport, o.WebsocketTransport = c.WebsocketTransport, o.Code = v.Code, o.Metadata = r.BrowserHeaders, o.client = function(M, h) {
|
|
23404
23404
|
return b.client(M, h);
|
|
23405
23405
|
}, o.invoke = y.invoke, o.unary = f.unary;
|
|
23406
23406
|
}, 938: function(u, g, p) {
|
|
@@ -23433,56 +23433,56 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
23433
23433
|
}, 229: function(u, g, p) {
|
|
23434
23434
|
var o = this && this.__assign || function() {
|
|
23435
23435
|
return (o = Object.assign || function(c) {
|
|
23436
|
-
for (var
|
|
23437
|
-
for (var y in
|
|
23438
|
-
Object.prototype.hasOwnProperty.call(
|
|
23436
|
+
for (var m, d = 1, v = arguments.length; d < v; d++)
|
|
23437
|
+
for (var y in m = arguments[d])
|
|
23438
|
+
Object.prototype.hasOwnProperty.call(m, y) && (c[y] = m[y]);
|
|
23439
23439
|
return c;
|
|
23440
23440
|
}).apply(this, arguments);
|
|
23441
23441
|
};
|
|
23442
23442
|
Object.defineProperty(g, "__esModule", { value: !0 }), g.detectFetchSupport = g.FetchReadableStreamTransport = void 0;
|
|
23443
23443
|
var r = p(65), n = p(346);
|
|
23444
23444
|
g.FetchReadableStreamTransport = function(c) {
|
|
23445
|
-
return function(
|
|
23446
|
-
return function(
|
|
23447
|
-
return
|
|
23448
|
-
}(
|
|
23445
|
+
return function(m) {
|
|
23446
|
+
return function(d, v) {
|
|
23447
|
+
return d.debug && n.debug("fetchRequest", d), new l(d, v);
|
|
23448
|
+
}(m, c);
|
|
23449
23449
|
};
|
|
23450
23450
|
};
|
|
23451
23451
|
var l = function() {
|
|
23452
|
-
function c(
|
|
23453
|
-
this.cancelled = !1, this.controller = self.AbortController && new AbortController(), this.options =
|
|
23452
|
+
function c(m, d) {
|
|
23453
|
+
this.cancelled = !1, this.controller = self.AbortController && new AbortController(), this.options = m, this.init = d;
|
|
23454
23454
|
}
|
|
23455
|
-
return c.prototype.pump = function(
|
|
23455
|
+
return c.prototype.pump = function(m, d) {
|
|
23456
23456
|
var v = this;
|
|
23457
|
-
if (this.reader =
|
|
23457
|
+
if (this.reader = m, this.cancelled)
|
|
23458
23458
|
return this.options.debug && n.debug("Fetch.pump.cancel at first pump"), void this.reader.cancel().catch(function(y) {
|
|
23459
23459
|
v.options.debug && n.debug("Fetch.pump.reader.cancel exception", y);
|
|
23460
23460
|
});
|
|
23461
23461
|
this.reader.read().then(function(y) {
|
|
23462
23462
|
if (y.done)
|
|
23463
|
-
return v.options.onEnd(),
|
|
23464
|
-
v.options.onChunk(y.value), v.pump(v.reader,
|
|
23463
|
+
return v.options.onEnd(), d;
|
|
23464
|
+
v.options.onChunk(y.value), v.pump(v.reader, d);
|
|
23465
23465
|
}).catch(function(y) {
|
|
23466
23466
|
v.cancelled ? v.options.debug && n.debug("Fetch.catch - request cancelled") : (v.cancelled = !0, v.options.debug && n.debug("Fetch.catch", y.message), v.options.onEnd(y));
|
|
23467
23467
|
});
|
|
23468
|
-
}, c.prototype.send = function(
|
|
23469
|
-
var
|
|
23470
|
-
fetch(this.options.url, o(o({}, this.init), { headers: this.metadata.toHeaders(), method: "POST", body:
|
|
23471
|
-
if (
|
|
23468
|
+
}, c.prototype.send = function(m) {
|
|
23469
|
+
var d = this;
|
|
23470
|
+
fetch(this.options.url, o(o({}, this.init), { headers: this.metadata.toHeaders(), method: "POST", body: m, signal: this.controller && this.controller.signal })).then(function(v) {
|
|
23471
|
+
if (d.options.debug && n.debug("Fetch.response", v), d.options.onHeaders(new r.Metadata(v.headers), v.status), !v.body)
|
|
23472
23472
|
return v;
|
|
23473
|
-
|
|
23473
|
+
d.pump(v.body.getReader(), v);
|
|
23474
23474
|
}).catch(function(v) {
|
|
23475
|
-
|
|
23475
|
+
d.cancelled ? d.options.debug && n.debug("Fetch.catch - request cancelled") : (d.cancelled = !0, d.options.debug && n.debug("Fetch.catch", v.message), d.options.onEnd(v));
|
|
23476
23476
|
});
|
|
23477
|
-
}, c.prototype.sendMessage = function(
|
|
23478
|
-
this.send(
|
|
23477
|
+
}, c.prototype.sendMessage = function(m) {
|
|
23478
|
+
this.send(m);
|
|
23479
23479
|
}, c.prototype.finishSend = function() {
|
|
23480
|
-
}, c.prototype.start = function(
|
|
23481
|
-
this.metadata =
|
|
23480
|
+
}, c.prototype.start = function(m) {
|
|
23481
|
+
this.metadata = m;
|
|
23482
23482
|
}, c.prototype.cancel = function() {
|
|
23483
|
-
var
|
|
23484
|
-
this.cancelled ? this.options.debug && n.debug("Fetch.cancel already cancelled") : (this.cancelled = !0, this.controller ? (this.options.debug && n.debug("Fetch.cancel.controller.abort"), this.controller.abort()) : this.options.debug && n.debug("Fetch.cancel.missing abort controller"), this.reader ? (this.options.debug && n.debug("Fetch.cancel.reader.cancel"), this.reader.cancel().catch(function(
|
|
23485
|
-
|
|
23483
|
+
var m = this;
|
|
23484
|
+
this.cancelled ? this.options.debug && n.debug("Fetch.cancel already cancelled") : (this.cancelled = !0, this.controller ? (this.options.debug && n.debug("Fetch.cancel.controller.abort"), this.controller.abort()) : this.options.debug && n.debug("Fetch.cancel.missing abort controller"), this.reader ? (this.options.debug && n.debug("Fetch.cancel.reader.cancel"), this.reader.cancel().catch(function(d) {
|
|
23485
|
+
m.options.debug && n.debug("Fetch.cancel.reader.cancel exception", d);
|
|
23486
23486
|
})) : this.options.debug && n.debug("Fetch.cancel before reader"));
|
|
23487
23487
|
}, c;
|
|
23488
23488
|
}();
|
|
@@ -23518,13 +23518,13 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
23518
23518
|
g.XhrTransport = function(f) {
|
|
23519
23519
|
return function(b) {
|
|
23520
23520
|
if (c.detectMozXHRSupport())
|
|
23521
|
-
return new m(b, f);
|
|
23522
|
-
if (c.detectXHROverrideMimeTypeSupport())
|
|
23523
23521
|
return new d(b, f);
|
|
23522
|
+
if (c.detectXHROverrideMimeTypeSupport())
|
|
23523
|
+
return new m(b, f);
|
|
23524
23524
|
throw new Error("This environment's XHR implementation cannot support binary transfer.");
|
|
23525
23525
|
};
|
|
23526
23526
|
};
|
|
23527
|
-
var
|
|
23527
|
+
var m = function() {
|
|
23528
23528
|
function f(b, M) {
|
|
23529
23529
|
this.options = b, this.init = M;
|
|
23530
23530
|
}
|
|
@@ -23556,8 +23556,8 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
23556
23556
|
this.options.debug && l.debug("XHR.abort"), this.xhr.abort();
|
|
23557
23557
|
}, f;
|
|
23558
23558
|
}();
|
|
23559
|
-
g.XHR =
|
|
23560
|
-
var
|
|
23559
|
+
g.XHR = m;
|
|
23560
|
+
var d = function(f) {
|
|
23561
23561
|
function b() {
|
|
23562
23562
|
return f !== null && f.apply(this, arguments) || this;
|
|
23563
23563
|
}
|
|
@@ -23567,7 +23567,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
23567
23567
|
var M = this.xhr.response;
|
|
23568
23568
|
this.options.debug && l.debug("MozXHR.onProgressEvent: ", new Uint8Array(M)), this.options.onChunk(new Uint8Array(M));
|
|
23569
23569
|
}, b;
|
|
23570
|
-
}(
|
|
23570
|
+
}(m);
|
|
23571
23571
|
function v(f, b) {
|
|
23572
23572
|
var M = f.charCodeAt(b);
|
|
23573
23573
|
if (M >= 55296 && M <= 56319) {
|
|
@@ -23583,7 +23583,7 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
23583
23583
|
}
|
|
23584
23584
|
return b;
|
|
23585
23585
|
}
|
|
23586
|
-
g.MozChunkedArrayBufferXHR =
|
|
23586
|
+
g.MozChunkedArrayBufferXHR = d, g.stringToArrayBuffer = y;
|
|
23587
23587
|
}, 849: function(u, g) {
|
|
23588
23588
|
var p;
|
|
23589
23589
|
function o() {
|
|
@@ -23622,45 +23622,45 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
23622
23622
|
var l = new Uint8Array([1]);
|
|
23623
23623
|
g.WebsocketTransport = function() {
|
|
23624
23624
|
return function(c) {
|
|
23625
|
-
return function(
|
|
23626
|
-
|
|
23627
|
-
var
|
|
23625
|
+
return function(m) {
|
|
23626
|
+
m.debug && r.debug("websocketRequest", m);
|
|
23627
|
+
var d, v = function(b) {
|
|
23628
23628
|
if (b.substr(0, 8) === "https://")
|
|
23629
23629
|
return "wss://" + b.substr(8);
|
|
23630
23630
|
if (b.substr(0, 7) === "http://")
|
|
23631
23631
|
return "ws://" + b.substr(7);
|
|
23632
23632
|
throw new Error("Websocket transport constructed with non-https:// or http:// host.");
|
|
23633
|
-
}(
|
|
23633
|
+
}(m.url), y = [];
|
|
23634
23634
|
function f(b) {
|
|
23635
23635
|
if (b === o.FINISH_SEND)
|
|
23636
|
-
|
|
23636
|
+
d.send(l);
|
|
23637
23637
|
else {
|
|
23638
23638
|
var M = b, h = new Int8Array(M.byteLength + 1);
|
|
23639
|
-
h.set(new Uint8Array([0])), h.set(M, 1),
|
|
23639
|
+
h.set(new Uint8Array([0])), h.set(M, 1), d.send(h);
|
|
23640
23640
|
}
|
|
23641
23641
|
}
|
|
23642
23642
|
return { sendMessage: function(b) {
|
|
23643
|
-
|
|
23643
|
+
d && d.readyState !== d.CONNECTING ? f(b) : y.push(b);
|
|
23644
23644
|
}, finishSend: function() {
|
|
23645
|
-
|
|
23645
|
+
d && d.readyState !== d.CONNECTING ? f(o.FINISH_SEND) : y.push(o.FINISH_SEND);
|
|
23646
23646
|
}, start: function(b) {
|
|
23647
|
-
(
|
|
23647
|
+
(d = new WebSocket(v, ["grpc-websockets"])).binaryType = "arraybuffer", d.onopen = function() {
|
|
23648
23648
|
var M;
|
|
23649
|
-
|
|
23649
|
+
m.debug && r.debug("websocketRequest.onopen"), d.send((M = "", b.forEach(function(h, O) {
|
|
23650
23650
|
M += h + ": " + O.join(", ") + `\r
|
|
23651
23651
|
`;
|
|
23652
23652
|
}), n.encodeASCII(M))), y.forEach(function(h) {
|
|
23653
23653
|
f(h);
|
|
23654
23654
|
});
|
|
23655
|
-
},
|
|
23656
|
-
|
|
23657
|
-
},
|
|
23658
|
-
|
|
23659
|
-
},
|
|
23660
|
-
|
|
23655
|
+
}, d.onclose = function(M) {
|
|
23656
|
+
m.debug && r.debug("websocketRequest.onclose", M), m.onEnd();
|
|
23657
|
+
}, d.onerror = function(M) {
|
|
23658
|
+
m.debug && r.debug("websocketRequest.onerror", M);
|
|
23659
|
+
}, d.onmessage = function(M) {
|
|
23660
|
+
m.onChunk(new Uint8Array(M.data));
|
|
23661
23661
|
};
|
|
23662
23662
|
}, cancel: function() {
|
|
23663
|
-
|
|
23663
|
+
m.debug && r.debug("websocket.abort"), d.close();
|
|
23664
23664
|
} };
|
|
23665
23665
|
}(c);
|
|
23666
23666
|
};
|
|
@@ -23673,15 +23673,15 @@ var grpcWebClient_umdExports = {}, grpcWebClient_umd = {
|
|
|
23673
23673
|
throw new Error(".unary cannot be used with server-streaming methods. Use .invoke or .client instead.");
|
|
23674
23674
|
if (n.requestStream)
|
|
23675
23675
|
throw new Error(".unary cannot be used with client-streaming methods. Use .client instead.");
|
|
23676
|
-
var c = null,
|
|
23677
|
-
return
|
|
23676
|
+
var c = null, m = null, d = r.client(n, { host: l.host, transport: l.transport, debug: l.debug });
|
|
23677
|
+
return d.onHeaders(function(v) {
|
|
23678
23678
|
c = v;
|
|
23679
|
-
}),
|
|
23680
|
-
|
|
23681
|
-
}),
|
|
23682
|
-
l.onEnd({ status: v, statusMessage: y, headers: c || new o.Metadata(), message:
|
|
23683
|
-
}),
|
|
23684
|
-
|
|
23679
|
+
}), d.onMessage(function(v) {
|
|
23680
|
+
m = v;
|
|
23681
|
+
}), d.onEnd(function(v, y, f) {
|
|
23682
|
+
l.onEnd({ status: v, statusMessage: y, headers: c || new o.Metadata(), message: m, trailers: f });
|
|
23683
|
+
}), d.start(l.metadata), d.send(l.request), d.finishSend(), { close: function() {
|
|
23684
|
+
d.close();
|
|
23685
23685
|
} };
|
|
23686
23686
|
};
|
|
23687
23687
|
}, 882: function(u, g) {
|
|
@@ -28272,11 +28272,11 @@ var EncoderServiceClient_1 = EncoderServiceClient, gantry_pb = {};
|
|
|
28272
28272
|
var n = r.getFieldNumber();
|
|
28273
28273
|
switch (n) {
|
|
28274
28274
|
case 1:
|
|
28275
|
-
var
|
|
28275
|
+
var m = (
|
|
28276
28276
|
/** @type {string} */
|
|
28277
28277
|
r.readString()
|
|
28278
28278
|
);
|
|
28279
|
-
o.setName(
|
|
28279
|
+
o.setName(m);
|
|
28280
28280
|
break;
|
|
28281
28281
|
case 2:
|
|
28282
28282
|
for (var c = (
|
|
@@ -28293,8 +28293,8 @@ var EncoderServiceClient_1 = EncoderServiceClient, gantry_pb = {};
|
|
|
28293
28293
|
o.addSpeedsMmPerSec(c[l]);
|
|
28294
28294
|
break;
|
|
28295
28295
|
case 99:
|
|
28296
|
-
var
|
|
28297
|
-
r.readMessage(
|
|
28296
|
+
var m = new p.Struct();
|
|
28297
|
+
r.readMessage(m, p.Struct.deserializeBinaryFromReader), o.setExtra(m);
|
|
28298
28298
|
break;
|
|
28299
28299
|
default:
|
|
28300
28300
|
r.skipField();
|
|
@@ -28715,11 +28715,11 @@ var EncoderServiceClient_1 = EncoderServiceClient, gantry_pb = {};
|
|
|
28715
28715
|
o.addLengthsMm(c[l]);
|
|
28716
28716
|
break;
|
|
28717
28717
|
case 3:
|
|
28718
|
-
var
|
|
28718
|
+
var m = (
|
|
28719
28719
|
/** @type {boolean} */
|
|
28720
28720
|
r.readBool()
|
|
28721
28721
|
);
|
|
28722
|
-
o.setIsMoving(
|
|
28722
|
+
o.setIsMoving(m);
|
|
28723
28723
|
break;
|
|
28724
28724
|
default:
|
|
28725
28725
|
r.skipField();
|
|
@@ -34539,8 +34539,8 @@ var MotorServiceClient_1 = MotorServiceClient, movementsensor_pb = {};
|
|
|
34539
34539
|
switch (n) {
|
|
34540
34540
|
case 1:
|
|
34541
34541
|
var l = o.getAccuracyMap();
|
|
34542
|
-
r.readMessage(l, function(c,
|
|
34543
|
-
e.Map.deserializeBinary(c,
|
|
34542
|
+
r.readMessage(l, function(c, m) {
|
|
34543
|
+
e.Map.deserializeBinary(c, m, e.BinaryReader.prototype.readString, e.BinaryReader.prototype.readFloat, null, "", 0);
|
|
34544
34544
|
});
|
|
34545
34545
|
break;
|
|
34546
34546
|
default:
|
|
@@ -36453,113 +36453,119 @@ var RobotServiceClient_1 = RobotServiceClient, slam_pb = {};
|
|
|
36453
36453
|
var g = annotations_pb;
|
|
36454
36454
|
s.object.extend(proto, g);
|
|
36455
36455
|
var p = struct_pb;
|
|
36456
|
-
s.object.extend(proto, p)
|
|
36457
|
-
|
|
36458
|
-
|
|
36459
|
-
e.Message.initialize(this,
|
|
36460
|
-
}, s.inherits(proto.viam.service.slam.v1.
|
|
36461
|
-
e.Message.initialize(this,
|
|
36462
|
-
}, s.inherits(proto.viam.service.slam.v1.
|
|
36463
|
-
e.Message.initialize(this,
|
|
36464
|
-
}, s.inherits(proto.viam.service.slam.v1.
|
|
36465
|
-
e.Message.initialize(this,
|
|
36466
|
-
}, s.inherits(proto.viam.service.slam.v1.
|
|
36467
|
-
e.Message.initialize(this,
|
|
36468
|
-
}, s.inherits(proto.viam.service.slam.v1.
|
|
36469
|
-
|
|
36470
|
-
}, proto.viam.service.slam.v1.
|
|
36471
|
-
|
|
36472
|
-
|
|
36456
|
+
s.object.extend(proto, p);
|
|
36457
|
+
var o = timestamp_pb;
|
|
36458
|
+
s.object.extend(proto, o), s.exportSymbol("proto.viam.service.slam.v1.GetInternalStateRequest", null, i), s.exportSymbol("proto.viam.service.slam.v1.GetInternalStateResponse", null, i), s.exportSymbol("proto.viam.service.slam.v1.GetLatestMapInfoRequest", null, i), s.exportSymbol("proto.viam.service.slam.v1.GetLatestMapInfoResponse", null, i), s.exportSymbol("proto.viam.service.slam.v1.GetPointCloudMapRequest", null, i), s.exportSymbol("proto.viam.service.slam.v1.GetPointCloudMapResponse", null, i), s.exportSymbol("proto.viam.service.slam.v1.GetPositionRequest", null, i), s.exportSymbol("proto.viam.service.slam.v1.GetPositionResponse", null, i), proto.viam.service.slam.v1.GetPositionRequest = function(r) {
|
|
36459
|
+
e.Message.initialize(this, r, 0, -1, null, null);
|
|
36460
|
+
}, s.inherits(proto.viam.service.slam.v1.GetPositionRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPositionRequest.displayName = "proto.viam.service.slam.v1.GetPositionRequest"), proto.viam.service.slam.v1.GetPositionResponse = function(r) {
|
|
36461
|
+
e.Message.initialize(this, r, 0, -1, null, null);
|
|
36462
|
+
}, s.inherits(proto.viam.service.slam.v1.GetPositionResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPositionResponse.displayName = "proto.viam.service.slam.v1.GetPositionResponse"), proto.viam.service.slam.v1.GetPointCloudMapRequest = function(r) {
|
|
36463
|
+
e.Message.initialize(this, r, 0, -1, null, null);
|
|
36464
|
+
}, s.inherits(proto.viam.service.slam.v1.GetPointCloudMapRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPointCloudMapRequest.displayName = "proto.viam.service.slam.v1.GetPointCloudMapRequest"), proto.viam.service.slam.v1.GetPointCloudMapResponse = function(r) {
|
|
36465
|
+
e.Message.initialize(this, r, 0, -1, null, null);
|
|
36466
|
+
}, s.inherits(proto.viam.service.slam.v1.GetPointCloudMapResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetPointCloudMapResponse.displayName = "proto.viam.service.slam.v1.GetPointCloudMapResponse"), proto.viam.service.slam.v1.GetInternalStateRequest = function(r) {
|
|
36467
|
+
e.Message.initialize(this, r, 0, -1, null, null);
|
|
36468
|
+
}, s.inherits(proto.viam.service.slam.v1.GetInternalStateRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetInternalStateRequest.displayName = "proto.viam.service.slam.v1.GetInternalStateRequest"), proto.viam.service.slam.v1.GetInternalStateResponse = function(r) {
|
|
36469
|
+
e.Message.initialize(this, r, 0, -1, null, null);
|
|
36470
|
+
}, s.inherits(proto.viam.service.slam.v1.GetInternalStateResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetInternalStateResponse.displayName = "proto.viam.service.slam.v1.GetInternalStateResponse"), proto.viam.service.slam.v1.GetLatestMapInfoRequest = function(r) {
|
|
36471
|
+
e.Message.initialize(this, r, 0, -1, null, null);
|
|
36472
|
+
}, s.inherits(proto.viam.service.slam.v1.GetLatestMapInfoRequest, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetLatestMapInfoRequest.displayName = "proto.viam.service.slam.v1.GetLatestMapInfoRequest"), proto.viam.service.slam.v1.GetLatestMapInfoResponse = function(r) {
|
|
36473
|
+
e.Message.initialize(this, r, 0, -1, null, null);
|
|
36474
|
+
}, s.inherits(proto.viam.service.slam.v1.GetLatestMapInfoResponse, e.Message), s.DEBUG && !COMPILED && (proto.viam.service.slam.v1.GetLatestMapInfoResponse.displayName = "proto.viam.service.slam.v1.GetLatestMapInfoResponse"), e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionRequest.prototype.toObject = function(r) {
|
|
36475
|
+
return proto.viam.service.slam.v1.GetPositionRequest.toObject(r, this);
|
|
36476
|
+
}, proto.viam.service.slam.v1.GetPositionRequest.toObject = function(r, n) {
|
|
36477
|
+
var l = {
|
|
36478
|
+
name: e.Message.getFieldWithDefault(n, 1, "")
|
|
36473
36479
|
};
|
|
36474
|
-
return
|
|
36475
|
-
}), proto.viam.service.slam.v1.GetPositionRequest.deserializeBinary = function(
|
|
36476
|
-
var
|
|
36477
|
-
return proto.viam.service.slam.v1.GetPositionRequest.deserializeBinaryFromReader(
|
|
36478
|
-
}, proto.viam.service.slam.v1.GetPositionRequest.deserializeBinaryFromReader = function(
|
|
36479
|
-
for (;
|
|
36480
|
-
var
|
|
36481
|
-
switch (
|
|
36480
|
+
return r && (l.$jspbMessageInstance = n), l;
|
|
36481
|
+
}), proto.viam.service.slam.v1.GetPositionRequest.deserializeBinary = function(r) {
|
|
36482
|
+
var n = new e.BinaryReader(r), l = new proto.viam.service.slam.v1.GetPositionRequest();
|
|
36483
|
+
return proto.viam.service.slam.v1.GetPositionRequest.deserializeBinaryFromReader(l, n);
|
|
36484
|
+
}, proto.viam.service.slam.v1.GetPositionRequest.deserializeBinaryFromReader = function(r, n) {
|
|
36485
|
+
for (; n.nextField() && !n.isEndGroup(); ) {
|
|
36486
|
+
var l = n.getFieldNumber();
|
|
36487
|
+
switch (l) {
|
|
36482
36488
|
case 1:
|
|
36483
|
-
var
|
|
36489
|
+
var c = (
|
|
36484
36490
|
/** @type {string} */
|
|
36485
|
-
|
|
36491
|
+
n.readString()
|
|
36486
36492
|
);
|
|
36487
|
-
|
|
36493
|
+
r.setName(c);
|
|
36488
36494
|
break;
|
|
36489
36495
|
default:
|
|
36490
|
-
|
|
36496
|
+
n.skipField();
|
|
36491
36497
|
break;
|
|
36492
36498
|
}
|
|
36493
36499
|
}
|
|
36494
|
-
return
|
|
36500
|
+
return r;
|
|
36495
36501
|
}, proto.viam.service.slam.v1.GetPositionRequest.prototype.serializeBinary = function() {
|
|
36496
|
-
var
|
|
36497
|
-
return proto.viam.service.slam.v1.GetPositionRequest.serializeBinaryToWriter(this,
|
|
36498
|
-
}, proto.viam.service.slam.v1.GetPositionRequest.serializeBinaryToWriter = function(
|
|
36499
|
-
var
|
|
36500
|
-
|
|
36502
|
+
var r = new e.BinaryWriter();
|
|
36503
|
+
return proto.viam.service.slam.v1.GetPositionRequest.serializeBinaryToWriter(this, r), r.getResultBuffer();
|
|
36504
|
+
}, proto.viam.service.slam.v1.GetPositionRequest.serializeBinaryToWriter = function(r, n) {
|
|
36505
|
+
var l = void 0;
|
|
36506
|
+
l = r.getName(), l.length > 0 && n.writeString(
|
|
36501
36507
|
1,
|
|
36502
|
-
|
|
36508
|
+
l
|
|
36503
36509
|
);
|
|
36504
36510
|
}, proto.viam.service.slam.v1.GetPositionRequest.prototype.getName = function() {
|
|
36505
36511
|
return (
|
|
36506
36512
|
/** @type {string} */
|
|
36507
36513
|
e.Message.getFieldWithDefault(this, 1, "")
|
|
36508
36514
|
);
|
|
36509
|
-
}, proto.viam.service.slam.v1.GetPositionRequest.prototype.setName = function(
|
|
36510
|
-
return e.Message.setProto3StringField(this, 1,
|
|
36511
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionResponse.prototype.toObject = function(
|
|
36512
|
-
return proto.viam.service.slam.v1.GetPositionResponse.toObject(
|
|
36513
|
-
}, proto.viam.service.slam.v1.GetPositionResponse.toObject = function(
|
|
36514
|
-
var
|
|
36515
|
-
pose: (
|
|
36516
|
-
componentReference: e.Message.getFieldWithDefault(
|
|
36517
|
-
extra: (
|
|
36515
|
+
}, proto.viam.service.slam.v1.GetPositionRequest.prototype.setName = function(r) {
|
|
36516
|
+
return e.Message.setProto3StringField(this, 1, r);
|
|
36517
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPositionResponse.prototype.toObject = function(r) {
|
|
36518
|
+
return proto.viam.service.slam.v1.GetPositionResponse.toObject(r, this);
|
|
36519
|
+
}, proto.viam.service.slam.v1.GetPositionResponse.toObject = function(r, n) {
|
|
36520
|
+
var l, c = {
|
|
36521
|
+
pose: (l = n.getPose()) && u.Pose.toObject(r, l),
|
|
36522
|
+
componentReference: e.Message.getFieldWithDefault(n, 2, ""),
|
|
36523
|
+
extra: (l = n.getExtra()) && p.Struct.toObject(r, l)
|
|
36518
36524
|
};
|
|
36519
|
-
return
|
|
36520
|
-
}), proto.viam.service.slam.v1.GetPositionResponse.deserializeBinary = function(
|
|
36521
|
-
var
|
|
36522
|
-
return proto.viam.service.slam.v1.GetPositionResponse.deserializeBinaryFromReader(
|
|
36523
|
-
}, proto.viam.service.slam.v1.GetPositionResponse.deserializeBinaryFromReader = function(
|
|
36524
|
-
for (;
|
|
36525
|
-
var
|
|
36526
|
-
switch (
|
|
36525
|
+
return r && (c.$jspbMessageInstance = n), c;
|
|
36526
|
+
}), proto.viam.service.slam.v1.GetPositionResponse.deserializeBinary = function(r) {
|
|
36527
|
+
var n = new e.BinaryReader(r), l = new proto.viam.service.slam.v1.GetPositionResponse();
|
|
36528
|
+
return proto.viam.service.slam.v1.GetPositionResponse.deserializeBinaryFromReader(l, n);
|
|
36529
|
+
}, proto.viam.service.slam.v1.GetPositionResponse.deserializeBinaryFromReader = function(r, n) {
|
|
36530
|
+
for (; n.nextField() && !n.isEndGroup(); ) {
|
|
36531
|
+
var l = n.getFieldNumber();
|
|
36532
|
+
switch (l) {
|
|
36527
36533
|
case 1:
|
|
36528
|
-
var
|
|
36529
|
-
|
|
36534
|
+
var c = new u.Pose();
|
|
36535
|
+
n.readMessage(c, u.Pose.deserializeBinaryFromReader), r.setPose(c);
|
|
36530
36536
|
break;
|
|
36531
36537
|
case 2:
|
|
36532
|
-
var
|
|
36538
|
+
var c = (
|
|
36533
36539
|
/** @type {string} */
|
|
36534
|
-
|
|
36540
|
+
n.readString()
|
|
36535
36541
|
);
|
|
36536
|
-
|
|
36542
|
+
r.setComponentReference(c);
|
|
36537
36543
|
break;
|
|
36538
36544
|
case 99:
|
|
36539
|
-
var
|
|
36540
|
-
|
|
36545
|
+
var c = new p.Struct();
|
|
36546
|
+
n.readMessage(c, p.Struct.deserializeBinaryFromReader), r.setExtra(c);
|
|
36541
36547
|
break;
|
|
36542
36548
|
default:
|
|
36543
|
-
|
|
36549
|
+
n.skipField();
|
|
36544
36550
|
break;
|
|
36545
36551
|
}
|
|
36546
36552
|
}
|
|
36547
|
-
return
|
|
36553
|
+
return r;
|
|
36548
36554
|
}, proto.viam.service.slam.v1.GetPositionResponse.prototype.serializeBinary = function() {
|
|
36549
|
-
var
|
|
36550
|
-
return proto.viam.service.slam.v1.GetPositionResponse.serializeBinaryToWriter(this,
|
|
36551
|
-
}, proto.viam.service.slam.v1.GetPositionResponse.serializeBinaryToWriter = function(
|
|
36552
|
-
var
|
|
36553
|
-
|
|
36555
|
+
var r = new e.BinaryWriter();
|
|
36556
|
+
return proto.viam.service.slam.v1.GetPositionResponse.serializeBinaryToWriter(this, r), r.getResultBuffer();
|
|
36557
|
+
}, proto.viam.service.slam.v1.GetPositionResponse.serializeBinaryToWriter = function(r, n) {
|
|
36558
|
+
var l = void 0;
|
|
36559
|
+
l = r.getPose(), l != null && n.writeMessage(
|
|
36554
36560
|
1,
|
|
36555
|
-
|
|
36561
|
+
l,
|
|
36556
36562
|
u.Pose.serializeBinaryToWriter
|
|
36557
|
-
),
|
|
36563
|
+
), l = r.getComponentReference(), l.length > 0 && n.writeString(
|
|
36558
36564
|
2,
|
|
36559
|
-
|
|
36560
|
-
),
|
|
36565
|
+
l
|
|
36566
|
+
), l = r.getExtra(), l != null && n.writeMessage(
|
|
36561
36567
|
99,
|
|
36562
|
-
|
|
36568
|
+
l,
|
|
36563
36569
|
p.Struct.serializeBinaryToWriter
|
|
36564
36570
|
);
|
|
36565
36571
|
}, proto.viam.service.slam.v1.GetPositionResponse.prototype.getPose = function() {
|
|
@@ -36567,8 +36573,8 @@ var RobotServiceClient_1 = RobotServiceClient, slam_pb = {};
|
|
|
36567
36573
|
/** @type{?proto.viam.common.v1.Pose} */
|
|
36568
36574
|
e.Message.getWrapperField(this, u.Pose, 1)
|
|
36569
36575
|
);
|
|
36570
|
-
}, proto.viam.service.slam.v1.GetPositionResponse.prototype.setPose = function(
|
|
36571
|
-
return e.Message.setWrapperField(this, 1,
|
|
36576
|
+
}, proto.viam.service.slam.v1.GetPositionResponse.prototype.setPose = function(r) {
|
|
36577
|
+
return e.Message.setWrapperField(this, 1, r);
|
|
36572
36578
|
}, proto.viam.service.slam.v1.GetPositionResponse.prototype.clearPose = function() {
|
|
36573
36579
|
return this.setPose(void 0);
|
|
36574
36580
|
}, proto.viam.service.slam.v1.GetPositionResponse.prototype.hasPose = function() {
|
|
@@ -36578,97 +36584,97 @@ var RobotServiceClient_1 = RobotServiceClient, slam_pb = {};
|
|
|
36578
36584
|
/** @type {string} */
|
|
36579
36585
|
e.Message.getFieldWithDefault(this, 2, "")
|
|
36580
36586
|
);
|
|
36581
|
-
}, proto.viam.service.slam.v1.GetPositionResponse.prototype.setComponentReference = function(
|
|
36582
|
-
return e.Message.setProto3StringField(this, 2,
|
|
36587
|
+
}, proto.viam.service.slam.v1.GetPositionResponse.prototype.setComponentReference = function(r) {
|
|
36588
|
+
return e.Message.setProto3StringField(this, 2, r);
|
|
36583
36589
|
}, proto.viam.service.slam.v1.GetPositionResponse.prototype.getExtra = function() {
|
|
36584
36590
|
return (
|
|
36585
36591
|
/** @type{?proto.google.protobuf.Struct} */
|
|
36586
36592
|
e.Message.getWrapperField(this, p.Struct, 99)
|
|
36587
36593
|
);
|
|
36588
|
-
}, proto.viam.service.slam.v1.GetPositionResponse.prototype.setExtra = function(
|
|
36589
|
-
return e.Message.setWrapperField(this, 99,
|
|
36594
|
+
}, proto.viam.service.slam.v1.GetPositionResponse.prototype.setExtra = function(r) {
|
|
36595
|
+
return e.Message.setWrapperField(this, 99, r);
|
|
36590
36596
|
}, proto.viam.service.slam.v1.GetPositionResponse.prototype.clearExtra = function() {
|
|
36591
36597
|
return this.setExtra(void 0);
|
|
36592
36598
|
}, proto.viam.service.slam.v1.GetPositionResponse.prototype.hasExtra = function() {
|
|
36593
36599
|
return e.Message.getField(this, 99) != null;
|
|
36594
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.toObject = function(
|
|
36595
|
-
return proto.viam.service.slam.v1.GetPointCloudMapRequest.toObject(
|
|
36596
|
-
}, proto.viam.service.slam.v1.GetPointCloudMapRequest.toObject = function(
|
|
36597
|
-
var
|
|
36598
|
-
name: e.Message.getFieldWithDefault(
|
|
36600
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.toObject = function(r) {
|
|
36601
|
+
return proto.viam.service.slam.v1.GetPointCloudMapRequest.toObject(r, this);
|
|
36602
|
+
}, proto.viam.service.slam.v1.GetPointCloudMapRequest.toObject = function(r, n) {
|
|
36603
|
+
var l = {
|
|
36604
|
+
name: e.Message.getFieldWithDefault(n, 1, "")
|
|
36599
36605
|
};
|
|
36600
|
-
return
|
|
36601
|
-
}), proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinary = function(
|
|
36602
|
-
var
|
|
36603
|
-
return proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinaryFromReader(
|
|
36604
|
-
}, proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinaryFromReader = function(
|
|
36605
|
-
for (;
|
|
36606
|
-
var
|
|
36607
|
-
switch (
|
|
36606
|
+
return r && (l.$jspbMessageInstance = n), l;
|
|
36607
|
+
}), proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinary = function(r) {
|
|
36608
|
+
var n = new e.BinaryReader(r), l = new proto.viam.service.slam.v1.GetPointCloudMapRequest();
|
|
36609
|
+
return proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinaryFromReader(l, n);
|
|
36610
|
+
}, proto.viam.service.slam.v1.GetPointCloudMapRequest.deserializeBinaryFromReader = function(r, n) {
|
|
36611
|
+
for (; n.nextField() && !n.isEndGroup(); ) {
|
|
36612
|
+
var l = n.getFieldNumber();
|
|
36613
|
+
switch (l) {
|
|
36608
36614
|
case 1:
|
|
36609
|
-
var
|
|
36615
|
+
var c = (
|
|
36610
36616
|
/** @type {string} */
|
|
36611
|
-
|
|
36617
|
+
n.readString()
|
|
36612
36618
|
);
|
|
36613
|
-
|
|
36619
|
+
r.setName(c);
|
|
36614
36620
|
break;
|
|
36615
36621
|
default:
|
|
36616
|
-
|
|
36622
|
+
n.skipField();
|
|
36617
36623
|
break;
|
|
36618
36624
|
}
|
|
36619
36625
|
}
|
|
36620
|
-
return
|
|
36626
|
+
return r;
|
|
36621
36627
|
}, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.serializeBinary = function() {
|
|
36622
|
-
var
|
|
36623
|
-
return proto.viam.service.slam.v1.GetPointCloudMapRequest.serializeBinaryToWriter(this,
|
|
36624
|
-
}, proto.viam.service.slam.v1.GetPointCloudMapRequest.serializeBinaryToWriter = function(
|
|
36625
|
-
var
|
|
36626
|
-
|
|
36628
|
+
var r = new e.BinaryWriter();
|
|
36629
|
+
return proto.viam.service.slam.v1.GetPointCloudMapRequest.serializeBinaryToWriter(this, r), r.getResultBuffer();
|
|
36630
|
+
}, proto.viam.service.slam.v1.GetPointCloudMapRequest.serializeBinaryToWriter = function(r, n) {
|
|
36631
|
+
var l = void 0;
|
|
36632
|
+
l = r.getName(), l.length > 0 && n.writeString(
|
|
36627
36633
|
1,
|
|
36628
|
-
|
|
36634
|
+
l
|
|
36629
36635
|
);
|
|
36630
36636
|
}, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.getName = function() {
|
|
36631
36637
|
return (
|
|
36632
36638
|
/** @type {string} */
|
|
36633
36639
|
e.Message.getFieldWithDefault(this, 1, "")
|
|
36634
36640
|
);
|
|
36635
|
-
}, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.setName = function(
|
|
36636
|
-
return e.Message.setProto3StringField(this, 1,
|
|
36637
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.toObject = function(
|
|
36638
|
-
return proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject(
|
|
36639
|
-
}, proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject = function(
|
|
36640
|
-
var
|
|
36641
|
-
pointCloudPcdChunk:
|
|
36641
|
+
}, proto.viam.service.slam.v1.GetPointCloudMapRequest.prototype.setName = function(r) {
|
|
36642
|
+
return e.Message.setProto3StringField(this, 1, r);
|
|
36643
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.toObject = function(r) {
|
|
36644
|
+
return proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject(r, this);
|
|
36645
|
+
}, proto.viam.service.slam.v1.GetPointCloudMapResponse.toObject = function(r, n) {
|
|
36646
|
+
var l = {
|
|
36647
|
+
pointCloudPcdChunk: n.getPointCloudPcdChunk_asB64()
|
|
36642
36648
|
};
|
|
36643
|
-
return
|
|
36644
|
-
}), proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinary = function(
|
|
36645
|
-
var
|
|
36646
|
-
return proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinaryFromReader(
|
|
36647
|
-
}, proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinaryFromReader = function(
|
|
36648
|
-
for (;
|
|
36649
|
-
var
|
|
36650
|
-
switch (
|
|
36649
|
+
return r && (l.$jspbMessageInstance = n), l;
|
|
36650
|
+
}), proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinary = function(r) {
|
|
36651
|
+
var n = new e.BinaryReader(r), l = new proto.viam.service.slam.v1.GetPointCloudMapResponse();
|
|
36652
|
+
return proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinaryFromReader(l, n);
|
|
36653
|
+
}, proto.viam.service.slam.v1.GetPointCloudMapResponse.deserializeBinaryFromReader = function(r, n) {
|
|
36654
|
+
for (; n.nextField() && !n.isEndGroup(); ) {
|
|
36655
|
+
var l = n.getFieldNumber();
|
|
36656
|
+
switch (l) {
|
|
36651
36657
|
case 1:
|
|
36652
|
-
var
|
|
36658
|
+
var c = (
|
|
36653
36659
|
/** @type {!Uint8Array} */
|
|
36654
|
-
|
|
36660
|
+
n.readBytes()
|
|
36655
36661
|
);
|
|
36656
|
-
|
|
36662
|
+
r.setPointCloudPcdChunk(c);
|
|
36657
36663
|
break;
|
|
36658
36664
|
default:
|
|
36659
|
-
|
|
36665
|
+
n.skipField();
|
|
36660
36666
|
break;
|
|
36661
36667
|
}
|
|
36662
36668
|
}
|
|
36663
|
-
return
|
|
36669
|
+
return r;
|
|
36664
36670
|
}, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.serializeBinary = function() {
|
|
36665
|
-
var
|
|
36666
|
-
return proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter(this,
|
|
36667
|
-
}, proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter = function(
|
|
36668
|
-
var
|
|
36669
|
-
|
|
36671
|
+
var r = new e.BinaryWriter();
|
|
36672
|
+
return proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter(this, r), r.getResultBuffer();
|
|
36673
|
+
}, proto.viam.service.slam.v1.GetPointCloudMapResponse.serializeBinaryToWriter = function(r, n) {
|
|
36674
|
+
var l = void 0;
|
|
36675
|
+
l = r.getPointCloudPcdChunk_asU8(), l.length > 0 && n.writeBytes(
|
|
36670
36676
|
1,
|
|
36671
|
-
|
|
36677
|
+
l
|
|
36672
36678
|
);
|
|
36673
36679
|
}, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.getPointCloudPcdChunk = function() {
|
|
36674
36680
|
return (
|
|
@@ -36689,86 +36695,86 @@ var RobotServiceClient_1 = RobotServiceClient, slam_pb = {};
|
|
|
36689
36695
|
this.getPointCloudPcdChunk()
|
|
36690
36696
|
)
|
|
36691
36697
|
);
|
|
36692
|
-
}, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.setPointCloudPcdChunk = function(
|
|
36693
|
-
return e.Message.setProto3BytesField(this, 1,
|
|
36694
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateRequest.prototype.toObject = function(
|
|
36695
|
-
return proto.viam.service.slam.v1.GetInternalStateRequest.toObject(
|
|
36696
|
-
}, proto.viam.service.slam.v1.GetInternalStateRequest.toObject = function(
|
|
36697
|
-
var
|
|
36698
|
-
name: e.Message.getFieldWithDefault(
|
|
36698
|
+
}, proto.viam.service.slam.v1.GetPointCloudMapResponse.prototype.setPointCloudPcdChunk = function(r) {
|
|
36699
|
+
return e.Message.setProto3BytesField(this, 1, r);
|
|
36700
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateRequest.prototype.toObject = function(r) {
|
|
36701
|
+
return proto.viam.service.slam.v1.GetInternalStateRequest.toObject(r, this);
|
|
36702
|
+
}, proto.viam.service.slam.v1.GetInternalStateRequest.toObject = function(r, n) {
|
|
36703
|
+
var l = {
|
|
36704
|
+
name: e.Message.getFieldWithDefault(n, 1, "")
|
|
36699
36705
|
};
|
|
36700
|
-
return
|
|
36701
|
-
}), proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinary = function(
|
|
36702
|
-
var
|
|
36703
|
-
return proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinaryFromReader(
|
|
36704
|
-
}, proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinaryFromReader = function(
|
|
36705
|
-
for (;
|
|
36706
|
-
var
|
|
36707
|
-
switch (
|
|
36706
|
+
return r && (l.$jspbMessageInstance = n), l;
|
|
36707
|
+
}), proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinary = function(r) {
|
|
36708
|
+
var n = new e.BinaryReader(r), l = new proto.viam.service.slam.v1.GetInternalStateRequest();
|
|
36709
|
+
return proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinaryFromReader(l, n);
|
|
36710
|
+
}, proto.viam.service.slam.v1.GetInternalStateRequest.deserializeBinaryFromReader = function(r, n) {
|
|
36711
|
+
for (; n.nextField() && !n.isEndGroup(); ) {
|
|
36712
|
+
var l = n.getFieldNumber();
|
|
36713
|
+
switch (l) {
|
|
36708
36714
|
case 1:
|
|
36709
|
-
var
|
|
36715
|
+
var c = (
|
|
36710
36716
|
/** @type {string} */
|
|
36711
|
-
|
|
36717
|
+
n.readString()
|
|
36712
36718
|
);
|
|
36713
|
-
|
|
36719
|
+
r.setName(c);
|
|
36714
36720
|
break;
|
|
36715
36721
|
default:
|
|
36716
|
-
|
|
36722
|
+
n.skipField();
|
|
36717
36723
|
break;
|
|
36718
36724
|
}
|
|
36719
36725
|
}
|
|
36720
|
-
return
|
|
36726
|
+
return r;
|
|
36721
36727
|
}, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.serializeBinary = function() {
|
|
36722
|
-
var
|
|
36723
|
-
return proto.viam.service.slam.v1.GetInternalStateRequest.serializeBinaryToWriter(this,
|
|
36724
|
-
}, proto.viam.service.slam.v1.GetInternalStateRequest.serializeBinaryToWriter = function(
|
|
36725
|
-
var
|
|
36726
|
-
|
|
36728
|
+
var r = new e.BinaryWriter();
|
|
36729
|
+
return proto.viam.service.slam.v1.GetInternalStateRequest.serializeBinaryToWriter(this, r), r.getResultBuffer();
|
|
36730
|
+
}, proto.viam.service.slam.v1.GetInternalStateRequest.serializeBinaryToWriter = function(r, n) {
|
|
36731
|
+
var l = void 0;
|
|
36732
|
+
l = r.getName(), l.length > 0 && n.writeString(
|
|
36727
36733
|
1,
|
|
36728
|
-
|
|
36734
|
+
l
|
|
36729
36735
|
);
|
|
36730
36736
|
}, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.getName = function() {
|
|
36731
36737
|
return (
|
|
36732
36738
|
/** @type {string} */
|
|
36733
36739
|
e.Message.getFieldWithDefault(this, 1, "")
|
|
36734
36740
|
);
|
|
36735
|
-
}, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.setName = function(
|
|
36736
|
-
return e.Message.setProto3StringField(this, 1,
|
|
36737
|
-
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateResponse.prototype.toObject = function(
|
|
36738
|
-
return proto.viam.service.slam.v1.GetInternalStateResponse.toObject(
|
|
36739
|
-
}, proto.viam.service.slam.v1.GetInternalStateResponse.toObject = function(
|
|
36740
|
-
var
|
|
36741
|
-
internalStateChunk:
|
|
36741
|
+
}, proto.viam.service.slam.v1.GetInternalStateRequest.prototype.setName = function(r) {
|
|
36742
|
+
return e.Message.setProto3StringField(this, 1, r);
|
|
36743
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetInternalStateResponse.prototype.toObject = function(r) {
|
|
36744
|
+
return proto.viam.service.slam.v1.GetInternalStateResponse.toObject(r, this);
|
|
36745
|
+
}, proto.viam.service.slam.v1.GetInternalStateResponse.toObject = function(r, n) {
|
|
36746
|
+
var l = {
|
|
36747
|
+
internalStateChunk: n.getInternalStateChunk_asB64()
|
|
36742
36748
|
};
|
|
36743
|
-
return
|
|
36744
|
-
}), proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinary = function(
|
|
36745
|
-
var
|
|
36746
|
-
return proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinaryFromReader(
|
|
36747
|
-
}, proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinaryFromReader = function(
|
|
36748
|
-
for (;
|
|
36749
|
-
var
|
|
36750
|
-
switch (
|
|
36749
|
+
return r && (l.$jspbMessageInstance = n), l;
|
|
36750
|
+
}), proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinary = function(r) {
|
|
36751
|
+
var n = new e.BinaryReader(r), l = new proto.viam.service.slam.v1.GetInternalStateResponse();
|
|
36752
|
+
return proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinaryFromReader(l, n);
|
|
36753
|
+
}, proto.viam.service.slam.v1.GetInternalStateResponse.deserializeBinaryFromReader = function(r, n) {
|
|
36754
|
+
for (; n.nextField() && !n.isEndGroup(); ) {
|
|
36755
|
+
var l = n.getFieldNumber();
|
|
36756
|
+
switch (l) {
|
|
36751
36757
|
case 1:
|
|
36752
|
-
var
|
|
36758
|
+
var c = (
|
|
36753
36759
|
/** @type {!Uint8Array} */
|
|
36754
|
-
|
|
36760
|
+
n.readBytes()
|
|
36755
36761
|
);
|
|
36756
|
-
|
|
36762
|
+
r.setInternalStateChunk(c);
|
|
36757
36763
|
break;
|
|
36758
36764
|
default:
|
|
36759
|
-
|
|
36765
|
+
n.skipField();
|
|
36760
36766
|
break;
|
|
36761
36767
|
}
|
|
36762
36768
|
}
|
|
36763
|
-
return
|
|
36769
|
+
return r;
|
|
36764
36770
|
}, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.serializeBinary = function() {
|
|
36765
|
-
var
|
|
36766
|
-
return proto.viam.service.slam.v1.GetInternalStateResponse.serializeBinaryToWriter(this,
|
|
36767
|
-
}, proto.viam.service.slam.v1.GetInternalStateResponse.serializeBinaryToWriter = function(
|
|
36768
|
-
var
|
|
36769
|
-
|
|
36771
|
+
var r = new e.BinaryWriter();
|
|
36772
|
+
return proto.viam.service.slam.v1.GetInternalStateResponse.serializeBinaryToWriter(this, r), r.getResultBuffer();
|
|
36773
|
+
}, proto.viam.service.slam.v1.GetInternalStateResponse.serializeBinaryToWriter = function(r, n) {
|
|
36774
|
+
var l = void 0;
|
|
36775
|
+
l = r.getInternalStateChunk_asU8(), l.length > 0 && n.writeBytes(
|
|
36770
36776
|
1,
|
|
36771
|
-
|
|
36777
|
+
l
|
|
36772
36778
|
);
|
|
36773
36779
|
}, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.getInternalStateChunk = function() {
|
|
36774
36780
|
return (
|
|
@@ -36789,8 +36795,96 @@ var RobotServiceClient_1 = RobotServiceClient, slam_pb = {};
|
|
|
36789
36795
|
this.getInternalStateChunk()
|
|
36790
36796
|
)
|
|
36791
36797
|
);
|
|
36792
|
-
}, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.setInternalStateChunk = function(
|
|
36793
|
-
return e.Message.setProto3BytesField(this, 1,
|
|
36798
|
+
}, proto.viam.service.slam.v1.GetInternalStateResponse.prototype.setInternalStateChunk = function(r) {
|
|
36799
|
+
return e.Message.setProto3BytesField(this, 1, r);
|
|
36800
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetLatestMapInfoRequest.prototype.toObject = function(r) {
|
|
36801
|
+
return proto.viam.service.slam.v1.GetLatestMapInfoRequest.toObject(r, this);
|
|
36802
|
+
}, proto.viam.service.slam.v1.GetLatestMapInfoRequest.toObject = function(r, n) {
|
|
36803
|
+
var l = {
|
|
36804
|
+
name: e.Message.getFieldWithDefault(n, 1, "")
|
|
36805
|
+
};
|
|
36806
|
+
return r && (l.$jspbMessageInstance = n), l;
|
|
36807
|
+
}), proto.viam.service.slam.v1.GetLatestMapInfoRequest.deserializeBinary = function(r) {
|
|
36808
|
+
var n = new e.BinaryReader(r), l = new proto.viam.service.slam.v1.GetLatestMapInfoRequest();
|
|
36809
|
+
return proto.viam.service.slam.v1.GetLatestMapInfoRequest.deserializeBinaryFromReader(l, n);
|
|
36810
|
+
}, proto.viam.service.slam.v1.GetLatestMapInfoRequest.deserializeBinaryFromReader = function(r, n) {
|
|
36811
|
+
for (; n.nextField() && !n.isEndGroup(); ) {
|
|
36812
|
+
var l = n.getFieldNumber();
|
|
36813
|
+
switch (l) {
|
|
36814
|
+
case 1:
|
|
36815
|
+
var c = (
|
|
36816
|
+
/** @type {string} */
|
|
36817
|
+
n.readString()
|
|
36818
|
+
);
|
|
36819
|
+
r.setName(c);
|
|
36820
|
+
break;
|
|
36821
|
+
default:
|
|
36822
|
+
n.skipField();
|
|
36823
|
+
break;
|
|
36824
|
+
}
|
|
36825
|
+
}
|
|
36826
|
+
return r;
|
|
36827
|
+
}, proto.viam.service.slam.v1.GetLatestMapInfoRequest.prototype.serializeBinary = function() {
|
|
36828
|
+
var r = new e.BinaryWriter();
|
|
36829
|
+
return proto.viam.service.slam.v1.GetLatestMapInfoRequest.serializeBinaryToWriter(this, r), r.getResultBuffer();
|
|
36830
|
+
}, proto.viam.service.slam.v1.GetLatestMapInfoRequest.serializeBinaryToWriter = function(r, n) {
|
|
36831
|
+
var l = void 0;
|
|
36832
|
+
l = r.getName(), l.length > 0 && n.writeString(
|
|
36833
|
+
1,
|
|
36834
|
+
l
|
|
36835
|
+
);
|
|
36836
|
+
}, proto.viam.service.slam.v1.GetLatestMapInfoRequest.prototype.getName = function() {
|
|
36837
|
+
return (
|
|
36838
|
+
/** @type {string} */
|
|
36839
|
+
e.Message.getFieldWithDefault(this, 1, "")
|
|
36840
|
+
);
|
|
36841
|
+
}, proto.viam.service.slam.v1.GetLatestMapInfoRequest.prototype.setName = function(r) {
|
|
36842
|
+
return e.Message.setProto3StringField(this, 1, r);
|
|
36843
|
+
}, e.Message.GENERATE_TO_OBJECT && (proto.viam.service.slam.v1.GetLatestMapInfoResponse.prototype.toObject = function(r) {
|
|
36844
|
+
return proto.viam.service.slam.v1.GetLatestMapInfoResponse.toObject(r, this);
|
|
36845
|
+
}, proto.viam.service.slam.v1.GetLatestMapInfoResponse.toObject = function(r, n) {
|
|
36846
|
+
var l, c = {
|
|
36847
|
+
lastMapUpdate: (l = n.getLastMapUpdate()) && o.Timestamp.toObject(r, l)
|
|
36848
|
+
};
|
|
36849
|
+
return r && (c.$jspbMessageInstance = n), c;
|
|
36850
|
+
}), proto.viam.service.slam.v1.GetLatestMapInfoResponse.deserializeBinary = function(r) {
|
|
36851
|
+
var n = new e.BinaryReader(r), l = new proto.viam.service.slam.v1.GetLatestMapInfoResponse();
|
|
36852
|
+
return proto.viam.service.slam.v1.GetLatestMapInfoResponse.deserializeBinaryFromReader(l, n);
|
|
36853
|
+
}, proto.viam.service.slam.v1.GetLatestMapInfoResponse.deserializeBinaryFromReader = function(r, n) {
|
|
36854
|
+
for (; n.nextField() && !n.isEndGroup(); ) {
|
|
36855
|
+
var l = n.getFieldNumber();
|
|
36856
|
+
switch (l) {
|
|
36857
|
+
case 1:
|
|
36858
|
+
var c = new o.Timestamp();
|
|
36859
|
+
n.readMessage(c, o.Timestamp.deserializeBinaryFromReader), r.setLastMapUpdate(c);
|
|
36860
|
+
break;
|
|
36861
|
+
default:
|
|
36862
|
+
n.skipField();
|
|
36863
|
+
break;
|
|
36864
|
+
}
|
|
36865
|
+
}
|
|
36866
|
+
return r;
|
|
36867
|
+
}, proto.viam.service.slam.v1.GetLatestMapInfoResponse.prototype.serializeBinary = function() {
|
|
36868
|
+
var r = new e.BinaryWriter();
|
|
36869
|
+
return proto.viam.service.slam.v1.GetLatestMapInfoResponse.serializeBinaryToWriter(this, r), r.getResultBuffer();
|
|
36870
|
+
}, proto.viam.service.slam.v1.GetLatestMapInfoResponse.serializeBinaryToWriter = function(r, n) {
|
|
36871
|
+
var l = void 0;
|
|
36872
|
+
l = r.getLastMapUpdate(), l != null && n.writeMessage(
|
|
36873
|
+
1,
|
|
36874
|
+
l,
|
|
36875
|
+
o.Timestamp.serializeBinaryToWriter
|
|
36876
|
+
);
|
|
36877
|
+
}, proto.viam.service.slam.v1.GetLatestMapInfoResponse.prototype.getLastMapUpdate = function() {
|
|
36878
|
+
return (
|
|
36879
|
+
/** @type{?proto.google.protobuf.Timestamp} */
|
|
36880
|
+
e.Message.getWrapperField(this, o.Timestamp, 1)
|
|
36881
|
+
);
|
|
36882
|
+
}, proto.viam.service.slam.v1.GetLatestMapInfoResponse.prototype.setLastMapUpdate = function(r) {
|
|
36883
|
+
return e.Message.setWrapperField(this, 1, r);
|
|
36884
|
+
}, proto.viam.service.slam.v1.GetLatestMapInfoResponse.prototype.clearLastMapUpdate = function() {
|
|
36885
|
+
return this.setLastMapUpdate(void 0);
|
|
36886
|
+
}, proto.viam.service.slam.v1.GetLatestMapInfoResponse.prototype.hasLastMapUpdate = function() {
|
|
36887
|
+
return e.Message.getField(this, 1) != null;
|
|
36794
36888
|
}, s.object.extend(t, proto.viam.service.slam.v1);
|
|
36795
36889
|
})(slam_pb);
|
|
36796
36890
|
var service_slam_v1_slam_pb = slam_pb, common_v1_common_pb$6 = common_pb, grpc$7 = grpcWebClient_umdExports.grpc, SLAMService = function() {
|
|
@@ -36822,6 +36916,14 @@ SLAMService.GetInternalState = {
|
|
|
36822
36916
|
requestType: service_slam_v1_slam_pb.GetInternalStateRequest,
|
|
36823
36917
|
responseType: service_slam_v1_slam_pb.GetInternalStateResponse
|
|
36824
36918
|
};
|
|
36919
|
+
SLAMService.GetLatestMapInfo = {
|
|
36920
|
+
methodName: "GetLatestMapInfo",
|
|
36921
|
+
service: SLAMService,
|
|
36922
|
+
requestStream: !1,
|
|
36923
|
+
responseStream: !1,
|
|
36924
|
+
requestType: service_slam_v1_slam_pb.GetLatestMapInfoRequest,
|
|
36925
|
+
responseType: service_slam_v1_slam_pb.GetLatestMapInfoResponse
|
|
36926
|
+
};
|
|
36825
36927
|
SLAMService.DoCommand = {
|
|
36826
36928
|
methodName: "DoCommand",
|
|
36827
36929
|
service: SLAMService,
|
|
@@ -36922,6 +37024,29 @@ SLAMServiceClient.prototype.getInternalState = function t(e, s) {
|
|
|
36922
37024
|
}
|
|
36923
37025
|
};
|
|
36924
37026
|
};
|
|
37027
|
+
SLAMServiceClient.prototype.getLatestMapInfo = function t(e, s, i) {
|
|
37028
|
+
arguments.length === 2 && (i = arguments[1]);
|
|
37029
|
+
var u = grpc$7.unary(SLAMService.GetLatestMapInfo, {
|
|
37030
|
+
request: e,
|
|
37031
|
+
host: this.serviceHost,
|
|
37032
|
+
metadata: s,
|
|
37033
|
+
transport: this.options.transport,
|
|
37034
|
+
debug: this.options.debug,
|
|
37035
|
+
onEnd: function(g) {
|
|
37036
|
+
if (i)
|
|
37037
|
+
if (g.status !== grpc$7.Code.OK) {
|
|
37038
|
+
var p = new Error(g.statusMessage);
|
|
37039
|
+
p.code = g.status, p.metadata = g.trailers, i(p, null);
|
|
37040
|
+
} else
|
|
37041
|
+
i(null, g.message);
|
|
37042
|
+
}
|
|
37043
|
+
});
|
|
37044
|
+
return {
|
|
37045
|
+
cancel: function() {
|
|
37046
|
+
i = null, u.close();
|
|
37047
|
+
}
|
|
37048
|
+
};
|
|
37049
|
+
};
|
|
36925
37050
|
SLAMServiceClient.prototype.doCommand = function t(e, s, i) {
|
|
36926
37051
|
arguments.length === 2 && (i = arguments[1]);
|
|
36927
37052
|
var u = grpc$7.unary(SLAMService.DoCommand, {
|
|
@@ -37184,8 +37309,8 @@ var SLAMServiceClient_1 = SLAMServiceClient, sensors_pb = {};
|
|
|
37184
37309
|
break;
|
|
37185
37310
|
case 2:
|
|
37186
37311
|
var l = o.getReadingsMap();
|
|
37187
|
-
r.readMessage(l, function(c,
|
|
37188
|
-
e.Map.deserializeBinary(c,
|
|
37312
|
+
r.readMessage(l, function(c, m) {
|
|
37313
|
+
e.Map.deserializeBinary(c, m, e.BinaryReader.prototype.readString, e.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
37189
37314
|
});
|
|
37190
37315
|
break;
|
|
37191
37316
|
default:
|
|
@@ -39559,9 +39684,16 @@ class RobotClient extends EventDispatcher {
|
|
|
39559
39684
|
console.debug("reconnected successfully!"), events.emit(RECONNECTED, {});
|
|
39560
39685
|
},
|
|
39561
39686
|
(g) => {
|
|
39562
|
-
throw console.debug(`failed to reconnect - retries count: ${u}`), u += 1,
|
|
39687
|
+
throw console.debug(`failed to reconnect - retries count: ${u}`), u += 1, u === this.webrtcOptions?.reconnectMaxAttempts && console.log(
|
|
39688
|
+
`reached max attempts: ${this.webrtcOptions.reconnectMaxAttempts}`
|
|
39689
|
+
), g;
|
|
39563
39690
|
}
|
|
39564
|
-
)
|
|
39691
|
+
),
|
|
39692
|
+
{
|
|
39693
|
+
// default values taken from `exponential-backoff` library
|
|
39694
|
+
maxDelay: this.webrtcOptions?.reconnectMaxWait || Number.POSITIVE_INFINITY,
|
|
39695
|
+
numOfAttempts: this.webrtcOptions?.reconnectMaxAttempts || 10
|
|
39696
|
+
}
|
|
39565
39697
|
);
|
|
39566
39698
|
});
|
|
39567
39699
|
}
|
|
@@ -39698,7 +39830,7 @@ class RobotClient extends EventDispatcher {
|
|
|
39698
39830
|
i
|
|
39699
39831
|
);
|
|
39700
39832
|
this.peerConn = p.peerConnection, this.peerConn.addEventListener("iceconnectionstatechange", () => {
|
|
39701
|
-
this.peerConn?.iceConnectionState === "connected" ? events.emit(RECONNECTED, {}) : this.peerConn?.iceConnectionState === "closed" &&
|
|
39833
|
+
this.peerConn?.iceConnectionState === "connected" ? events.emit(RECONNECTED, {}) : this.peerConn?.iceConnectionState === "closed" && events.emit(DISCONNECTED, {});
|
|
39702
39834
|
}), this.transportFactory = p.transportFactory, p.peerConnection.ontrack = (o) => {
|
|
39703
39835
|
const [r] = o.streams;
|
|
39704
39836
|
if (!r)
|
|
@@ -39843,7 +39975,7 @@ class RobotClient extends EventDispatcher {
|
|
|
39843
39975
|
}), o;
|
|
39844
39976
|
}
|
|
39845
39977
|
}
|
|
39846
|
-
const isLocalConnection = (t) => t.includes(".local"), dialDirect = async (t) => {
|
|
39978
|
+
const isPosInt = (t) => !!(t > 0 && Number.isInteger(t)), isLocalConnection = (t) => t.includes(".local"), dialDirect = async (t) => {
|
|
39847
39979
|
if (console.debug("dialing via gRPC..."), !isLocalConnection(t.host))
|
|
39848
39980
|
throw new Error(
|
|
39849
39981
|
`cannot dial "${t.host}" directly, please use a local url instead.`
|
|
@@ -39860,7 +39992,9 @@ const isLocalConnection = (t) => t.includes(".local"), dialDirect = async (t) =>
|
|
|
39860
39992
|
host: t.host,
|
|
39861
39993
|
signalingAddress: s,
|
|
39862
39994
|
rtcConfig: u,
|
|
39863
|
-
noReconnect: t.noReconnect
|
|
39995
|
+
noReconnect: t.noReconnect,
|
|
39996
|
+
reconnectMaxWait: t.reconnectMaxWait,
|
|
39997
|
+
reconnectMaxAttempts: t.reconnectMaxAttempts
|
|
39864
39998
|
};
|
|
39865
39999
|
let p;
|
|
39866
40000
|
t.disableSessions && (p = { disabled: !0 });
|
|
@@ -39872,12 +40006,21 @@ const isLocalConnection = (t) => t.includes(".local"), dialDirect = async (t) =>
|
|
|
39872
40006
|
return typeof e.signalingAddress != "string" ? !1 : !e.iceServers || Array.isArray(e.iceServers);
|
|
39873
40007
|
}, createRobotClient = async (t) => {
|
|
39874
40008
|
let e;
|
|
39875
|
-
if (isDialWebRTCConf(t))
|
|
40009
|
+
if (isDialWebRTCConf(t)) {
|
|
40010
|
+
if (t.reconnectMaxAttempts && !isPosInt(t.reconnectMaxAttempts))
|
|
40011
|
+
throw new Error(
|
|
40012
|
+
`Value of max reconnect attempts (${t.reconnectMaxAttempts}) should be a positive integer`
|
|
40013
|
+
);
|
|
40014
|
+
if (t.reconnectMaxWait && !isPosInt(t.reconnectMaxWait))
|
|
40015
|
+
throw new Error(
|
|
40016
|
+
`Value of max reconnect wait (${t.reconnectMaxWait}) should be a positive integer`
|
|
40017
|
+
);
|
|
39876
40018
|
try {
|
|
39877
40019
|
e = await dialWebRTC(t);
|
|
39878
40020
|
} catch {
|
|
39879
40021
|
console.debug("failed to connect via WebRTC...");
|
|
39880
40022
|
}
|
|
40023
|
+
}
|
|
39881
40024
|
if (!e)
|
|
39882
40025
|
try {
|
|
39883
40026
|
e = await dialDirect(t);
|
|
@@ -41206,8 +41349,8 @@ var camera_pb = {}, httpbody_pb = {}, any_pb = {};
|
|
|
41206
41349
|
for (var c = (
|
|
41207
41350
|
/** @type {!Array<number>} */
|
|
41208
41351
|
r.isDelimited() ? r.readPackedDouble() : [r.readDouble()]
|
|
41209
|
-
),
|
|
41210
|
-
o.addParameters(c[
|
|
41352
|
+
), m = 0; m < c.length; m++)
|
|
41353
|
+
o.addParameters(c[m]);
|
|
41211
41354
|
break;
|
|
41212
41355
|
default:
|
|
41213
41356
|
r.skipField();
|
|
@@ -41517,6 +41660,57 @@ class EncoderClient {
|
|
|
41517
41660
|
);
|
|
41518
41661
|
}
|
|
41519
41662
|
}
|
|
41663
|
+
class GantryClient {
|
|
41664
|
+
client;
|
|
41665
|
+
name;
|
|
41666
|
+
options;
|
|
41667
|
+
constructor(e, s, i = {}) {
|
|
41668
|
+
this.client = e.createServiceClient(GantryServiceClient_1), this.name = s, this.options = i;
|
|
41669
|
+
}
|
|
41670
|
+
get GantryService() {
|
|
41671
|
+
return this.client;
|
|
41672
|
+
}
|
|
41673
|
+
async getPosition(e = {}) {
|
|
41674
|
+
const s = this.GantryService, i = new gantry_pb.GetPositionRequest();
|
|
41675
|
+
return i.setName(this.name), i.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(i), (await promisify(s.getPosition.bind(s), i)).getPositionsMmList();
|
|
41676
|
+
}
|
|
41677
|
+
async moveToPosition(e, s, i = {}) {
|
|
41678
|
+
const u = this.GantryService, g = new gantry_pb.MoveToPositionRequest();
|
|
41679
|
+
g.setName(this.name), g.setPositionsMmList(e), g.setSpeedsMmPerSecList(s), g.setExtra(struct_pb.Struct.fromJavaScript(i)), this.options.requestLogger?.(g), await promisify(
|
|
41680
|
+
u.moveToPosition.bind(u),
|
|
41681
|
+
g
|
|
41682
|
+
);
|
|
41683
|
+
}
|
|
41684
|
+
async home(e = {}) {
|
|
41685
|
+
const s = this.GantryService, i = new gantry_pb.HomeRequest();
|
|
41686
|
+
return i.setName(this.name), i.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(i), (await promisify(
|
|
41687
|
+
s.home.bind(s),
|
|
41688
|
+
i
|
|
41689
|
+
)).getHomed();
|
|
41690
|
+
}
|
|
41691
|
+
async getLengths(e = {}) {
|
|
41692
|
+
const s = this.GantryService, i = new gantry_pb.GetLengthsRequest();
|
|
41693
|
+
return i.setName(this.name), i.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(i), (await promisify(s.getLengths.bind(s), i)).getLengthsMmList();
|
|
41694
|
+
}
|
|
41695
|
+
async stop(e = {}) {
|
|
41696
|
+
const s = this.GantryService, i = new gantry_pb.StopRequest();
|
|
41697
|
+
i.setName(this.name), i.setExtra(struct_pb.Struct.fromJavaScript(e)), this.options.requestLogger?.(i), await promisify(
|
|
41698
|
+
s.stop.bind(s),
|
|
41699
|
+
i
|
|
41700
|
+
);
|
|
41701
|
+
}
|
|
41702
|
+
async isMoving() {
|
|
41703
|
+
const e = this.GantryService, s = new gantry_pb.IsMovingRequest();
|
|
41704
|
+
return s.setName(this.name), this.options.requestLogger?.(s), (await promisify(
|
|
41705
|
+
e.isMoving.bind(e),
|
|
41706
|
+
s
|
|
41707
|
+
)).getIsMoving();
|
|
41708
|
+
}
|
|
41709
|
+
async doCommand(e) {
|
|
41710
|
+
const s = this.GantryService;
|
|
41711
|
+
return doCommandFromClient(s, this.name, e, this.options);
|
|
41712
|
+
}
|
|
41713
|
+
}
|
|
41520
41714
|
class MotorClient {
|
|
41521
41715
|
client;
|
|
41522
41716
|
name;
|
|
@@ -41782,8 +41976,8 @@ var sensor_pb = {};
|
|
|
41782
41976
|
switch (n) {
|
|
41783
41977
|
case 1:
|
|
41784
41978
|
var l = o.getReadingsMap();
|
|
41785
|
-
r.readMessage(l, function(c,
|
|
41786
|
-
e.Map.deserializeBinary(c,
|
|
41979
|
+
r.readMessage(l, function(c, m) {
|
|
41980
|
+
e.Map.deserializeBinary(c, m, e.BinaryReader.prototype.readString, e.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
41787
41981
|
});
|
|
41788
41982
|
break;
|
|
41789
41983
|
default:
|
|
@@ -42655,7 +42849,7 @@ class ServoClient {
|
|
|
42655
42849
|
return doCommandFromClient(s, this.name, e, this.options);
|
|
42656
42850
|
}
|
|
42657
42851
|
}
|
|
42658
|
-
const version = "0.2.
|
|
42852
|
+
const version = "0.2.3-rc.0";
|
|
42659
42853
|
export {
|
|
42660
42854
|
ArmClient,
|
|
42661
42855
|
BaseClient,
|
|
@@ -42665,6 +42859,7 @@ export {
|
|
|
42665
42859
|
DataManagerClient,
|
|
42666
42860
|
EncoderClient,
|
|
42667
42861
|
EncoderPositionType,
|
|
42862
|
+
GantryClient,
|
|
42668
42863
|
GripperClient,
|
|
42669
42864
|
MotionClient,
|
|
42670
42865
|
MotorClient,
|