@ckeditor/ckeditor-cloud-services-collaboration 52.6.1 → 52.6.3

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.
Files changed (112) hide show
  1. package/dist/index.js +45 -1
  2. package/dist/index.js.map +1 -1
  3. package/package.json +3 -3
  4. package/src/ckeditorcloudserviceserror.js +1 -1
  5. package/src/ckeditorcloudservicesservererror.js +1 -1
  6. package/src/collaborativeeditingservice/collaborativeeditingservice.d.ts +1 -1
  7. package/src/collaborativeeditingservice/collaborativeeditingservice.js +2 -1
  8. package/src/collaborativeeditingservice/descriptors/operationmetadatadescriptor.js +1 -1
  9. package/src/collaborativeeditingservice/helpers/operationmetadatahelpers.js +1 -1
  10. package/src/collaborativeeditingservice/messages/collaborativeeditingconnectmessage.js +1 -1
  11. package/src/collaborativeeditingservice/messages/collaborativeeditingreconnectmessage.js +1 -1
  12. package/src/collaborativeeditingservice/messages/collaborativeeditingupdatemessage.js +1 -1
  13. package/src/collaborativeeditingservice/messages/getdocumentdetailsmessage.js +1 -1
  14. package/src/collaborativeeditingservice/responses/collaborativeeditingconnectresponse.js +1 -1
  15. package/src/collaborativeeditingservice/responses/collaborativeeditingresponse.js +1 -1
  16. package/src/collaborativeeditingservice/responses/getdocumentdetailsresponse.js +1 -1
  17. package/src/comments-v2/commentsservice.d.ts +1 -1
  18. package/src/comments-v2/commentsservice.js +2 -1
  19. package/src/comments-v2/descriptors/commentdescriptor.js +1 -1
  20. package/src/comments-v2/descriptors/commentsthreaddescriptor.js +1 -1
  21. package/src/comments-v2/descriptors/commentthreadaddedcomment.js +1 -1
  22. package/src/comments-v2/messages/addcommentmessage.js +1 -1
  23. package/src/comments-v2/messages/comment-threads/addcommentthreadmessage.js +1 -1
  24. package/src/comments-v2/messages/comment-threads/reopencommentthreadmessage.js +1 -1
  25. package/src/comments-v2/messages/comment-threads/resolvecommentthreadmessage.js +1 -1
  26. package/src/comments-v2/messages/comment-threads/updatecommentthreadmessage.js +1 -1
  27. package/src/comments-v2/messages/connectmessage.js +1 -1
  28. package/src/comments-v2/messages/getcommentthreadmessage.js +1 -1
  29. package/src/comments-v2/messages/getdocumentthreadsmessage.js +1 -1
  30. package/src/comments-v2/messages/removecommentmessage.js +1 -1
  31. package/src/comments-v2/messages/removecommentthreadmessage.js +1 -1
  32. package/src/comments-v2/messages/updatecommentmessage.js +1 -1
  33. package/src/comments-v2/responses/addcommentresponse.js +1 -1
  34. package/src/comments-v2/responses/comment-threads/addcommentthreadresponse.js +1 -1
  35. package/src/comments-v2/responses/comment-threads/resolvecommentthreadresponse.js +1 -1
  36. package/src/comments-v2/responses/connectresponse.js +1 -1
  37. package/src/comments-v2/responses/getcommentthreadresponse.js +1 -1
  38. package/src/comments-v2/responses/getdocumentthreadsresponse.js +1 -1
  39. package/src/compiledmessages.js +2 -1
  40. package/src/descriptor.js +1 -1
  41. package/src/descriptors/keyvaluedescriptor.js +1 -1
  42. package/src/editor/editorservice.d.ts +1 -1
  43. package/src/editor/editorservice.js +2 -1
  44. package/src/editor/messages/iseditorbundleuploadedmessage.js +1 -1
  45. package/src/editor/responses/iseditorbundleuploadedresponse.js +1 -1
  46. package/src/errors/ServiceNotConnectedError.js +1 -1
  47. package/src/index.js +1 -1
  48. package/src/message.js +1 -1
  49. package/src/messagescompressor.js +1 -1
  50. package/src/messagesmapper.js +1 -1
  51. package/src/revision-history/descriptors/revisiondescriptor.js +1 -1
  52. package/src/revision-history/messages/revisionhistoryconnectmessage.js +1 -1
  53. package/src/revision-history/messages/revisionhistorygetrevisionmessage.js +1 -1
  54. package/src/revision-history/messages/revisionhistoryreconnectmessage.js +1 -1
  55. package/src/revision-history/messages/revisionhistoryupdaterevisionsmessage.js +1 -1
  56. package/src/revision-history/responses/revisionhistoryconnectresponse.js +1 -1
  57. package/src/revision-history/responses/revisionhistorygetrevisionresponse.js +1 -1
  58. package/src/revision-history/responses/revisionhistoryupdaterevisionsresponse.js +1 -1
  59. package/src/revision-history/revisionhistoryservice.d.ts +1 -1
  60. package/src/revision-history/revisionhistoryservice.js +2 -1
  61. package/src/sessions/descriptors/sessiondescriptor.js +1 -1
  62. package/src/sessions/messages/sessionsconnectmessage.js +1 -1
  63. package/src/sessions/messages/socketconnectmessage.js +1 -1
  64. package/src/sessions/messages/socketdisconnectmessage.js +1 -1
  65. package/src/sessions/responses/sessionsconnectresponse.js +1 -1
  66. package/src/sessions/sessioncollection.js +1 -1
  67. package/src/sessions/sessions.js +1 -1
  68. package/src/track-changes/descriptors/suggestiondescriptor.js +1 -1
  69. package/src/track-changes/messages/addsuggestionmessage.js +1 -1
  70. package/src/track-changes/messages/batchUpdateSuggestionsStateMessage.js +1 -1
  71. package/src/track-changes/messages/connectmessage.js +1 -1
  72. package/src/track-changes/messages/getallsuggestionsmessage.js +1 -1
  73. package/src/track-changes/messages/getsuggestionmessage.js +1 -1
  74. package/src/track-changes/messages/updatesuggestionmessage.js +1 -1
  75. package/src/track-changes/responses/addsuggestionresponse.js +1 -1
  76. package/src/track-changes/responses/connectresponse.js +1 -1
  77. package/src/track-changes/responses/getallsuggestionsresponse.js +1 -1
  78. package/src/track-changes/responses/getsuggestionresponse.js +1 -1
  79. package/src/track-changes/trackchangesservice.d.ts +1 -1
  80. package/src/track-changes/trackchangesservice.js +2 -1
  81. package/src/users/descriptors/userdescriptor.js +1 -1
  82. package/src/users/messages/getmanyusersmessage.js +1 -1
  83. package/src/users/messages/getusermessage.js +1 -1
  84. package/src/users/responses/getmanyusersresponse.js +1 -1
  85. package/src/users/responses/getuserresponse.js +1 -1
  86. package/src/users/user.js +1 -1
  87. package/src/version.d.ts +1 -1
  88. package/src/version.js +1 -1
  89. package/src/websocketgateway/channel.d.ts +3 -3
  90. package/src/websocketgateway/channel.js +2 -1
  91. package/src/websocketgateway/messages/channelmessage.js +1 -1
  92. package/src/websocketgateway/parser/packetparser.js +1 -1
  93. package/src/websocketgateway/parser/packets/bytesbytespacketdatamessage.js +2 -1
  94. package/src/websocketgateway/parser/packets/numberbytespacketdatamessage.js +2 -1
  95. package/src/websocketgateway/parser/packets/numbernumberpacketdatamessag.js +2 -1
  96. package/src/websocketgateway/parser/packets/numberobjectpacketdatamessage.js +2 -1
  97. package/src/websocketgateway/parser/packets/numberstringpacketdatamessag.js +2 -1
  98. package/src/websocketgateway/parser/packets/objectbufferpacketdatamessage.js +2 -1
  99. package/src/websocketgateway/parser/packets/objectobjectpacketdatamessage.js +2 -1
  100. package/src/websocketgateway/parser/packets/packagedatamessage.js +1 -1
  101. package/src/websocketgateway/parser/packets/packetmessage.js +1 -1
  102. package/src/websocketgateway/parser/packets/packetoptionsmessage.js +1 -1
  103. package/src/websocketgateway/parser/packets/stringbytespacketdatamessage.js +2 -1
  104. package/src/websocketgateway/parser/packets/stringnumberpacketdatamessage.js +2 -1
  105. package/src/websocketgateway/parser/packets/stringobjectpacketdatamessage.js +2 -1
  106. package/src/websocketgateway/parser/packets/stringstringpacketdatamessage.js +2 -1
  107. package/src/websocketgateway/parser/parser.d.ts +2 -2
  108. package/src/websocketgateway/parser/parser.js +1 -1
  109. package/src/websocketgateway/parser/parserutils.js +2 -1
  110. package/src/websocketgateway/requestsmanager.js +1 -1
  111. package/src/websocketgateway/websocketgateway.d.ts +6 -6
  112. package/src/websocketgateway/websocketgateway.js +6 -1
package/dist/index.js CHANGED
@@ -20,4 +20,48 @@
20
20
  *
21
21
  *
22
22
  */
23
- import $protobuf from'protobufjs/minimal.js';import _0x1e9410 from'url-parse';import{EmitterMixin,ObservableMixin,priorities,global,Collection}from'@ckeditor/ckeditor5-utils/dist/index.js';import{v4}from'uuid';class Descriptor{['constructor'];static ['DESCRIPTOR_NAME'];static ['DESCRIPTOR'];constructor(..._0x4a6749){}}class Message extends Descriptor{['constructor'];static ['TYPE']='1000';static ['READABLE_TYPE_NAME'];constructor(..._0x568399){super();}static['fromJSON'](object){throw new TypeError('Must\x20be\x20implemented\x20in\x20a\x20child\x20class!');}}class GetUserMessage extends Message{['id'];static ['TYPE']='21';static ['READABLE_TYPE_NAME']='getUser';static ['DESCRIPTOR_NAME']='GetUserMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1}}};constructor(_0x19ba17){super(),this['id']=_0x19ba17;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](data){return new GetUserMessage(data['id']);}}class GetUserResponse extends Message{['attributes'];static ['DESCRIPTOR_NAME']='GetUserResponse';static ['DESCRIPTOR']={'fields':{'attributes':{'rule':'repeated','type':'KeyValueDescriptor','id':0x1}}};constructor(attributes){super(),this['attributes']=attributes;}['toJSON'](){return{'attributes':Object['keys'](this['attributes'])['map'](_0x1decb5=>({'key':_0x1decb5,'value':JSON['stringify'](this['attributes'][_0x1decb5])}))};}static['fromJSON'](data){const attributes=data['attributes']['reduce']((result,_0x1e02af)=>(result[_0x1e02af['key']]=_0x1e02af['value']?JSON['parse'](_0x1e02af['value']):null,result),{});return new GetUserResponse(attributes);}}const messages=((()=>{var _0x246cb1=$protobuf['Reader'],$Writer=$protobuf['Writer'],$util=$protobuf['util'],$root=$protobuf['roots']['default']||($protobuf['roots']['default']={});return $root['OperationMetadataDescriptor']=(function(){function OperationMetadataDescriptor(properties){if(properties){for(var _0x58b34c=Object['keys'](properties),_0x2809e0=0x0;_0x2809e0<_0x58b34c['length'];++_0x2809e0)null!=properties[_0x58b34c[_0x2809e0]]&&(this[_0x58b34c[_0x2809e0]]=properties[_0x58b34c[_0x2809e0]]);}}return OperationMetadataDescriptor['prototype']['userId']='',OperationMetadataDescriptor['prototype']['type']='',OperationMetadataDescriptor['prototype']['createdAt']='',OperationMetadataDescriptor['create']=function(properties){return new OperationMetadataDescriptor(properties);},OperationMetadataDescriptor['encode']=function(_0x3f5b42,writer){return writer||(writer=$Writer['create']()),null!=_0x3f5b42['userId']&&Object['hasOwnProperty']['call'](_0x3f5b42,'userId')&&writer['uint32'](0xa)['string'](_0x3f5b42['userId']),null!=_0x3f5b42['type']&&Object['hasOwnProperty']['call'](_0x3f5b42,'type')&&writer['uint32'](0x12)['string'](_0x3f5b42['type']),null!=_0x3f5b42['createdAt']&&Object['hasOwnProperty']['call'](_0x3f5b42,'createdAt')&&writer['uint32'](0x1a)['string'](_0x3f5b42['createdAt']),writer;},OperationMetadataDescriptor['encodeDelimited']=function(_0x4e78c2,writer){return this['encode'](_0x4e78c2,writer)['ldelim']();},OperationMetadataDescriptor['decode']=function(_0x3e4eb1,length){_0x3e4eb1 instanceof _0x246cb1||(_0x3e4eb1=_0x246cb1['create'](_0x3e4eb1));for(var _0x5a1abb=void 0x0===length?_0x3e4eb1['len']:_0x3e4eb1['pos']+length,_0x2d6ada=new $root['OperationMetadataDescriptor']();_0x3e4eb1['pos']<_0x5a1abb;){var tag=_0x3e4eb1['uint32']();switch(tag>>>0x3){case 0x1:_0x2d6ada['userId']=_0x3e4eb1['string']();break;case 0x2:_0x2d6ada['type']=_0x3e4eb1['string']();break;case 0x3:_0x2d6ada['createdAt']=_0x3e4eb1['string']();break;default:_0x3e4eb1['skipType'](0x7&tag);}}return _0x2d6ada;},OperationMetadataDescriptor['decodeDelimited']=function(_0x11f294){return _0x11f294 instanceof _0x246cb1||(_0x11f294=new _0x246cb1(_0x11f294)),this['decode'](_0x11f294,_0x11f294['uint32']());},OperationMetadataDescriptor['verify']=function(_0x3a2017){return'object'!=typeof _0x3a2017||null===_0x3a2017?'object\x20expected':null!=_0x3a2017['userId']&&_0x3a2017['hasOwnProperty']('userId')&&!$util['isString'](_0x3a2017['userId'])?'userId:\x20string\x20expected':null!=_0x3a2017['type']&&_0x3a2017['hasOwnProperty']('type')&&!$util['isString'](_0x3a2017['type'])?'type:\x20string\x20expected':null!=_0x3a2017['createdAt']&&_0x3a2017['hasOwnProperty']('createdAt')&&!$util['isString'](_0x3a2017['createdAt'])?'createdAt:\x20string\x20expected':null;},OperationMetadataDescriptor['fromObject']=function(object){if(object instanceof $root['OperationMetadataDescriptor'])return object;var _0x524184=new $root['OperationMetadataDescriptor']();return null!=object['userId']&&(_0x524184['userId']=String(object['userId'])),null!=object['type']&&(_0x524184['type']=String(object['type'])),null!=object['createdAt']&&(_0x524184['createdAt']=String(object['createdAt'])),_0x524184;},OperationMetadataDescriptor['toObject']=function(_0x318250,options){options||(options={});var object={};return options['defaults']&&(object['userId']='',object['type']='',object['createdAt']=''),null!=_0x318250['userId']&&_0x318250['hasOwnProperty']('userId')&&(object['userId']=_0x318250['userId']),null!=_0x318250['type']&&_0x318250['hasOwnProperty']('type')&&(object['type']=_0x318250['type']),null!=_0x318250['createdAt']&&_0x318250['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x318250['createdAt']),object;},OperationMetadataDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},OperationMetadataDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/OperationMetadataDescriptor';},OperationMetadataDescriptor;}()),$root['CollaborativeEditingConnectMessage']=(function(){function CollaborativeEditingConnectMessage(properties){if(this['buffers']=[],this['types']=[],properties){for(var _0x267fb0=Object['keys'](properties),_0x8725fb=0x0;_0x8725fb<_0x267fb0['length'];++_0x8725fb)null!=properties[_0x267fb0[_0x8725fb]]&&(this[_0x267fb0[_0x8725fb]]=properties[_0x267fb0[_0x8725fb]]);}}return CollaborativeEditingConnectMessage['prototype']['id']='',CollaborativeEditingConnectMessage['prototype']['bundleVersion']='',CollaborativeEditingConnectMessage['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingConnectMessage['prototype']['types']=$util['emptyArray'],CollaborativeEditingConnectMessage['prototype']['lastOperationId']='',CollaborativeEditingConnectMessage['create']=function(properties){return new CollaborativeEditingConnectMessage(properties);},CollaborativeEditingConnectMessage['encode']=function(_0x5642a4,writer){if(writer||(writer=$Writer['create']()),null!=_0x5642a4['id']&&Object['hasOwnProperty']['call'](_0x5642a4,'id')&&writer['uint32'](0xa)['string'](_0x5642a4['id']),null!=_0x5642a4['bundleVersion']&&Object['hasOwnProperty']['call'](_0x5642a4,'bundleVersion')&&writer['uint32'](0x12)['string'](_0x5642a4['bundleVersion']),null!=_0x5642a4['buffers']&&_0x5642a4['buffers']['length']){for(var _0xe4d8a7=0x0;_0xe4d8a7<_0x5642a4['buffers']['length'];++_0xe4d8a7)writer['uint32'](0x1a)['bytes'](_0x5642a4['buffers'][_0xe4d8a7]);}if(null!=_0x5642a4['types']&&_0x5642a4['types']['length']){writer['uint32'](0x22)['fork']();for(_0xe4d8a7=0x0;_0xe4d8a7<_0x5642a4['types']['length'];++_0xe4d8a7)writer['uint32'](_0x5642a4['types'][_0xe4d8a7]);writer['ldelim']();}return null!=_0x5642a4['lastOperationId']&&Object['hasOwnProperty']['call'](_0x5642a4,'lastOperationId')&&writer['uint32'](0x2a)['string'](_0x5642a4['lastOperationId']),writer;},CollaborativeEditingConnectMessage['encodeDelimited']=function(_0x369b3c,writer){return this['encode'](_0x369b3c,writer)['ldelim']();},CollaborativeEditingConnectMessage['decode']=function(_0x7b42e2,length){_0x7b42e2 instanceof _0x246cb1||(_0x7b42e2=_0x246cb1['create'](_0x7b42e2));for(var _0x3344ca=void 0x0===length?_0x7b42e2['len']:_0x7b42e2['pos']+length,_0x2d4afe=new $root['CollaborativeEditingConnectMessage']();_0x7b42e2['pos']<_0x3344ca;){var tag=_0x7b42e2['uint32']();switch(tag>>>0x3){case 0x1:_0x2d4afe['id']=_0x7b42e2['string']();break;case 0x2:_0x2d4afe['bundleVersion']=_0x7b42e2['string']();break;case 0x3:_0x2d4afe['buffers']&&_0x2d4afe['buffers']['length']||(_0x2d4afe['buffers']=[]),_0x2d4afe['buffers']['push'](_0x7b42e2['bytes']());break;case 0x4:if(_0x2d4afe['types']&&_0x2d4afe['types']['length']||(_0x2d4afe['types']=[]),0x2==(0x7&tag)){for(var _0x4c002e=_0x7b42e2['uint32']()+_0x7b42e2['pos'];_0x7b42e2['pos']<_0x4c002e;)_0x2d4afe['types']['push'](_0x7b42e2['uint32']());}else _0x2d4afe['types']['push'](_0x7b42e2['uint32']());break;case 0x5:_0x2d4afe['lastOperationId']=_0x7b42e2['string']();break;default:_0x7b42e2['skipType'](0x7&tag);}}return _0x2d4afe;},CollaborativeEditingConnectMessage['decodeDelimited']=function(_0x5607cb){return _0x5607cb instanceof _0x246cb1||(_0x5607cb=new _0x246cb1(_0x5607cb)),this['decode'](_0x5607cb,_0x5607cb['uint32']());},CollaborativeEditingConnectMessage['verify']=function(_0xf08dc){if('object'!=typeof _0xf08dc||null===_0xf08dc)return'object\x20expected';if(null!=_0xf08dc['id']&&_0xf08dc['hasOwnProperty']('id')&&!$util['isString'](_0xf08dc['id']))return'id:\x20string\x20expected';if(null!=_0xf08dc['bundleVersion']&&_0xf08dc['hasOwnProperty']('bundleVersion')&&!$util['isString'](_0xf08dc['bundleVersion']))return'bundleVersion:\x20string\x20expected';if(null!=_0xf08dc['buffers']&&_0xf08dc['hasOwnProperty']('buffers')){if(!Array['isArray'](_0xf08dc['buffers']))return'buffers:\x20array\x20expected';for(var _0x10eee7=0x0;_0x10eee7<_0xf08dc['buffers']['length'];++_0x10eee7)if(!(_0xf08dc['buffers'][_0x10eee7]&&'number'==typeof _0xf08dc['buffers'][_0x10eee7]['length']||$util['isString'](_0xf08dc['buffers'][_0x10eee7])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0xf08dc['types']&&_0xf08dc['hasOwnProperty']('types')){if(!Array['isArray'](_0xf08dc['types']))return'types:\x20array\x20expected';for(_0x10eee7=0x0;_0x10eee7<_0xf08dc['types']['length'];++_0x10eee7)if(!$util['isInteger'](_0xf08dc['types'][_0x10eee7]))return'types:\x20integer[]\x20expected';}return null!=_0xf08dc['lastOperationId']&&_0xf08dc['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0xf08dc['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},CollaborativeEditingConnectMessage['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingConnectMessage'])return object;var _0x471939=new $root['CollaborativeEditingConnectMessage']();if(null!=object['id']&&(_0x471939['id']=String(object['id'])),null!=object['bundleVersion']&&(_0x471939['bundleVersion']=String(object['bundleVersion'])),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingConnectMessage.buffers:\x20array\x20expected');_0x471939['buffers']=[];for(var _0x5bd3b8=0x0;_0x5bd3b8<object['buffers']['length'];++_0x5bd3b8)'string'==typeof object['buffers'][_0x5bd3b8]?$util['base64']['decode'](object['buffers'][_0x5bd3b8],_0x471939['buffers'][_0x5bd3b8]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x5bd3b8])),0x0):object['buffers'][_0x5bd3b8]['length']>=0x0&&(_0x471939['buffers'][_0x5bd3b8]=object['buffers'][_0x5bd3b8]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingConnectMessage.types:\x20array\x20expected');_0x471939['types']=[];for(_0x5bd3b8=0x0;_0x5bd3b8<object['types']['length'];++_0x5bd3b8)_0x471939['types'][_0x5bd3b8]=object['types'][_0x5bd3b8]>>>0x0;}return null!=object['lastOperationId']&&(_0x471939['lastOperationId']=String(object['lastOperationId'])),_0x471939;},CollaborativeEditingConnectMessage['toObject']=function(_0x527405,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[]),options['defaults']&&(object['id']='',object['bundleVersion']='',object['lastOperationId']=''),null!=_0x527405['id']&&_0x527405['hasOwnProperty']('id')&&(object['id']=_0x527405['id']),null!=_0x527405['bundleVersion']&&_0x527405['hasOwnProperty']('bundleVersion')&&(object['bundleVersion']=_0x527405['bundleVersion']),_0x527405['buffers']&&_0x527405['buffers']['length']){object['buffers']=[];for(var _0x196daa=0x0;_0x196daa<_0x527405['buffers']['length'];++_0x196daa)object['buffers'][_0x196daa]=options['bytes']===String?$util['base64']['encode'](_0x527405['buffers'][_0x196daa],0x0,_0x527405['buffers'][_0x196daa]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x527405['buffers'][_0x196daa]):_0x527405['buffers'][_0x196daa];}if(_0x527405['types']&&_0x527405['types']['length']){object['types']=[];for(_0x196daa=0x0;_0x196daa<_0x527405['types']['length'];++_0x196daa)object['types'][_0x196daa]=_0x527405['types'][_0x196daa];}return null!=_0x527405['lastOperationId']&&_0x527405['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x527405['lastOperationId']),object;},CollaborativeEditingConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingConnectMessage';},CollaborativeEditingConnectMessage;}()),$root['CollaborativeEditingReconnectMessage']=(function(){function CollaborativeEditingReconnectMessage(properties){if(properties){for(var _0x25a39b=Object['keys'](properties),_0x65fc3e=0x0;_0x65fc3e<_0x25a39b['length'];++_0x65fc3e)null!=properties[_0x25a39b[_0x65fc3e]]&&(this[_0x25a39b[_0x65fc3e]]=properties[_0x25a39b[_0x65fc3e]]);}}return CollaborativeEditingReconnectMessage['prototype']['id']='',CollaborativeEditingReconnectMessage['prototype']['bundleVersion']='',CollaborativeEditingReconnectMessage['prototype']['lastKnowVersion']=0x0,CollaborativeEditingReconnectMessage['create']=function(properties){return new CollaborativeEditingReconnectMessage(properties);},CollaborativeEditingReconnectMessage['encode']=function(_0x23cb4d,writer){return writer||(writer=$Writer['create']()),null!=_0x23cb4d['id']&&Object['hasOwnProperty']['call'](_0x23cb4d,'id')&&writer['uint32'](0xa)['string'](_0x23cb4d['id']),null!=_0x23cb4d['bundleVersion']&&Object['hasOwnProperty']['call'](_0x23cb4d,'bundleVersion')&&writer['uint32'](0x12)['string'](_0x23cb4d['bundleVersion']),null!=_0x23cb4d['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x23cb4d,'lastKnowVersion')&&writer['uint32'](0x18)['uint32'](_0x23cb4d['lastKnowVersion']),writer;},CollaborativeEditingReconnectMessage['encodeDelimited']=function(_0x5a6fa9,writer){return this['encode'](_0x5a6fa9,writer)['ldelim']();},CollaborativeEditingReconnectMessage['decode']=function(_0x492fb0,length){_0x492fb0 instanceof _0x246cb1||(_0x492fb0=_0x246cb1['create'](_0x492fb0));for(var _0x1e2a4c=void 0x0===length?_0x492fb0['len']:_0x492fb0['pos']+length,_0x1de723=new $root['CollaborativeEditingReconnectMessage']();_0x492fb0['pos']<_0x1e2a4c;){var tag=_0x492fb0['uint32']();switch(tag>>>0x3){case 0x1:_0x1de723['id']=_0x492fb0['string']();break;case 0x2:_0x1de723['bundleVersion']=_0x492fb0['string']();break;case 0x3:_0x1de723['lastKnowVersion']=_0x492fb0['uint32']();break;default:_0x492fb0['skipType'](0x7&tag);}}return _0x1de723;},CollaborativeEditingReconnectMessage['decodeDelimited']=function(_0x35271d){return _0x35271d instanceof _0x246cb1||(_0x35271d=new _0x246cb1(_0x35271d)),this['decode'](_0x35271d,_0x35271d['uint32']());},CollaborativeEditingReconnectMessage['verify']=function(_0x6eb4bb){return'object'!=typeof _0x6eb4bb||null===_0x6eb4bb?'object\x20expected':null!=_0x6eb4bb['id']&&_0x6eb4bb['hasOwnProperty']('id')&&!$util['isString'](_0x6eb4bb['id'])?'id:\x20string\x20expected':null!=_0x6eb4bb['bundleVersion']&&_0x6eb4bb['hasOwnProperty']('bundleVersion')&&!$util['isString'](_0x6eb4bb['bundleVersion'])?'bundleVersion:\x20string\x20expected':null!=_0x6eb4bb['lastKnowVersion']&&_0x6eb4bb['hasOwnProperty']('lastKnowVersion')&&!$util['isInteger'](_0x6eb4bb['lastKnowVersion'])?'lastKnowVersion:\x20integer\x20expected':null;},CollaborativeEditingReconnectMessage['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingReconnectMessage'])return object;var _0x59663f=new $root['CollaborativeEditingReconnectMessage']();return null!=object['id']&&(_0x59663f['id']=String(object['id'])),null!=object['bundleVersion']&&(_0x59663f['bundleVersion']=String(object['bundleVersion'])),null!=object['lastKnowVersion']&&(_0x59663f['lastKnowVersion']=object['lastKnowVersion']>>>0x0),_0x59663f;},CollaborativeEditingReconnectMessage['toObject']=function(_0x31844b,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['bundleVersion']='',object['lastKnowVersion']=0x0),null!=_0x31844b['id']&&_0x31844b['hasOwnProperty']('id')&&(object['id']=_0x31844b['id']),null!=_0x31844b['bundleVersion']&&_0x31844b['hasOwnProperty']('bundleVersion')&&(object['bundleVersion']=_0x31844b['bundleVersion']),null!=_0x31844b['lastKnowVersion']&&_0x31844b['hasOwnProperty']('lastKnowVersion')&&(object['lastKnowVersion']=_0x31844b['lastKnowVersion']),object;},CollaborativeEditingReconnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingReconnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingReconnectMessage';},CollaborativeEditingReconnectMessage;}()),$root['CollaborativeEditingUpdateMessage']=(function(){function CollaborativeEditingUpdateMessage(properties){if(this['buffers']=[],this['types']=[],this['metadata']=[],properties){for(var _0x1a4d2b=Object['keys'](properties),_0x4bf51f=0x0;_0x4bf51f<_0x1a4d2b['length'];++_0x4bf51f)null!=properties[_0x1a4d2b[_0x4bf51f]]&&(this[_0x1a4d2b[_0x4bf51f]]=properties[_0x1a4d2b[_0x4bf51f]]);}}return CollaborativeEditingUpdateMessage['prototype']['id']='',CollaborativeEditingUpdateMessage['prototype']['baseVersion']=0x0,CollaborativeEditingUpdateMessage['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingUpdateMessage['prototype']['types']=$util['emptyArray'],CollaborativeEditingUpdateMessage['prototype']['metadata']=$util['emptyArray'],CollaborativeEditingUpdateMessage['prototype']['lastOperationId']='',CollaborativeEditingUpdateMessage['create']=function(properties){return new CollaborativeEditingUpdateMessage(properties);},CollaborativeEditingUpdateMessage['encode']=function(_0x38e6db,writer){if(writer||(writer=$Writer['create']()),null!=_0x38e6db['id']&&Object['hasOwnProperty']['call'](_0x38e6db,'id')&&writer['uint32'](0xa)['string'](_0x38e6db['id']),null!=_0x38e6db['baseVersion']&&Object['hasOwnProperty']['call'](_0x38e6db,'baseVersion')&&writer['uint32'](0x10)['uint32'](_0x38e6db['baseVersion']),null!=_0x38e6db['buffers']&&_0x38e6db['buffers']['length']){for(var _0xcd04c0=0x0;_0xcd04c0<_0x38e6db['buffers']['length'];++_0xcd04c0)writer['uint32'](0x1a)['bytes'](_0x38e6db['buffers'][_0xcd04c0]);}if(null!=_0x38e6db['types']&&_0x38e6db['types']['length']){writer['uint32'](0x22)['fork']();for(_0xcd04c0=0x0;_0xcd04c0<_0x38e6db['types']['length'];++_0xcd04c0)writer['uint32'](_0x38e6db['types'][_0xcd04c0]);writer['ldelim']();}if(null!=_0x38e6db['metadata']&&_0x38e6db['metadata']['length']){for(_0xcd04c0=0x0;_0xcd04c0<_0x38e6db['metadata']['length'];++_0xcd04c0)$root['OperationMetadataDescriptor']['encode'](_0x38e6db['metadata'][_0xcd04c0],writer['uint32'](0x32)['fork']())['ldelim']();}return null!=_0x38e6db['lastOperationId']&&Object['hasOwnProperty']['call'](_0x38e6db,'lastOperationId')&&writer['uint32'](0x3a)['string'](_0x38e6db['lastOperationId']),writer;},CollaborativeEditingUpdateMessage['encodeDelimited']=function(_0x3795bc,writer){return this['encode'](_0x3795bc,writer)['ldelim']();},CollaborativeEditingUpdateMessage['decode']=function(_0x1a90fd,length){_0x1a90fd instanceof _0x246cb1||(_0x1a90fd=_0x246cb1['create'](_0x1a90fd));for(var _0x2d0edd=void 0x0===length?_0x1a90fd['len']:_0x1a90fd['pos']+length,_0x6aed1e=new $root['CollaborativeEditingUpdateMessage']();_0x1a90fd['pos']<_0x2d0edd;){var tag=_0x1a90fd['uint32']();switch(tag>>>0x3){case 0x1:_0x6aed1e['id']=_0x1a90fd['string']();break;case 0x2:_0x6aed1e['baseVersion']=_0x1a90fd['uint32']();break;case 0x3:_0x6aed1e['buffers']&&_0x6aed1e['buffers']['length']||(_0x6aed1e['buffers']=[]),_0x6aed1e['buffers']['push'](_0x1a90fd['bytes']());break;case 0x4:if(_0x6aed1e['types']&&_0x6aed1e['types']['length']||(_0x6aed1e['types']=[]),0x2==(0x7&tag)){for(var _0x517f24=_0x1a90fd['uint32']()+_0x1a90fd['pos'];_0x1a90fd['pos']<_0x517f24;)_0x6aed1e['types']['push'](_0x1a90fd['uint32']());}else _0x6aed1e['types']['push'](_0x1a90fd['uint32']());break;case 0x6:_0x6aed1e['metadata']&&_0x6aed1e['metadata']['length']||(_0x6aed1e['metadata']=[]),_0x6aed1e['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x1a90fd,_0x1a90fd['uint32']()));break;case 0x7:_0x6aed1e['lastOperationId']=_0x1a90fd['string']();break;default:_0x1a90fd['skipType'](0x7&tag);}}return _0x6aed1e;},CollaborativeEditingUpdateMessage['decodeDelimited']=function(_0x504fe5){return _0x504fe5 instanceof _0x246cb1||(_0x504fe5=new _0x246cb1(_0x504fe5)),this['decode'](_0x504fe5,_0x504fe5['uint32']());},CollaborativeEditingUpdateMessage['verify']=function(_0x156ed1){if('object'!=typeof _0x156ed1||null===_0x156ed1)return'object\x20expected';if(null!=_0x156ed1['id']&&_0x156ed1['hasOwnProperty']('id')&&!$util['isString'](_0x156ed1['id']))return'id:\x20string\x20expected';if(null!=_0x156ed1['baseVersion']&&_0x156ed1['hasOwnProperty']('baseVersion')&&!$util['isInteger'](_0x156ed1['baseVersion']))return'baseVersion:\x20integer\x20expected';if(null!=_0x156ed1['buffers']&&_0x156ed1['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x156ed1['buffers']))return'buffers:\x20array\x20expected';for(var _0x42c218=0x0;_0x42c218<_0x156ed1['buffers']['length'];++_0x42c218)if(!(_0x156ed1['buffers'][_0x42c218]&&'number'==typeof _0x156ed1['buffers'][_0x42c218]['length']||$util['isString'](_0x156ed1['buffers'][_0x42c218])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x156ed1['types']&&_0x156ed1['hasOwnProperty']('types')){if(!Array['isArray'](_0x156ed1['types']))return'types:\x20array\x20expected';for(_0x42c218=0x0;_0x42c218<_0x156ed1['types']['length'];++_0x42c218)if(!$util['isInteger'](_0x156ed1['types'][_0x42c218]))return'types:\x20integer[]\x20expected';}if(null!=_0x156ed1['metadata']&&_0x156ed1['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x156ed1['metadata']))return'metadata:\x20array\x20expected';for(_0x42c218=0x0;_0x42c218<_0x156ed1['metadata']['length'];++_0x42c218){var _0x63913=$root['OperationMetadataDescriptor']['verify'](_0x156ed1['metadata'][_0x42c218]);if(_0x63913)return'metadata.'+_0x63913;}}return null!=_0x156ed1['lastOperationId']&&_0x156ed1['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x156ed1['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},CollaborativeEditingUpdateMessage['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingUpdateMessage'])return object;var _0x2b8830=new $root['CollaborativeEditingUpdateMessage']();if(null!=object['id']&&(_0x2b8830['id']=String(object['id'])),null!=object['baseVersion']&&(_0x2b8830['baseVersion']=object['baseVersion']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingUpdateMessage.buffers:\x20array\x20expected');_0x2b8830['buffers']=[];for(var _0x4d9027=0x0;_0x4d9027<object['buffers']['length'];++_0x4d9027)'string'==typeof object['buffers'][_0x4d9027]?$util['base64']['decode'](object['buffers'][_0x4d9027],_0x2b8830['buffers'][_0x4d9027]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x4d9027])),0x0):object['buffers'][_0x4d9027]['length']>=0x0&&(_0x2b8830['buffers'][_0x4d9027]=object['buffers'][_0x4d9027]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingUpdateMessage.types:\x20array\x20expected');_0x2b8830['types']=[];for(_0x4d9027=0x0;_0x4d9027<object['types']['length'];++_0x4d9027)_0x2b8830['types'][_0x4d9027]=object['types'][_0x4d9027]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20array\x20expected');_0x2b8830['metadata']=[];for(_0x4d9027=0x0;_0x4d9027<object['metadata']['length'];++_0x4d9027){if('object'!=typeof object['metadata'][_0x4d9027])throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20object\x20expected');_0x2b8830['metadata'][_0x4d9027]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x4d9027]);}}return null!=object['lastOperationId']&&(_0x2b8830['lastOperationId']=String(object['lastOperationId'])),_0x2b8830;},CollaborativeEditingUpdateMessage['toObject']=function(_0x1f2776,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[],object['metadata']=[]),options['defaults']&&(object['id']='',object['baseVersion']=0x0,object['lastOperationId']=''),null!=_0x1f2776['id']&&_0x1f2776['hasOwnProperty']('id')&&(object['id']=_0x1f2776['id']),null!=_0x1f2776['baseVersion']&&_0x1f2776['hasOwnProperty']('baseVersion')&&(object['baseVersion']=_0x1f2776['baseVersion']),_0x1f2776['buffers']&&_0x1f2776['buffers']['length']){object['buffers']=[];for(var _0xcab584=0x0;_0xcab584<_0x1f2776['buffers']['length'];++_0xcab584)object['buffers'][_0xcab584]=options['bytes']===String?$util['base64']['encode'](_0x1f2776['buffers'][_0xcab584],0x0,_0x1f2776['buffers'][_0xcab584]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x1f2776['buffers'][_0xcab584]):_0x1f2776['buffers'][_0xcab584];}if(_0x1f2776['types']&&_0x1f2776['types']['length']){object['types']=[];for(_0xcab584=0x0;_0xcab584<_0x1f2776['types']['length'];++_0xcab584)object['types'][_0xcab584]=_0x1f2776['types'][_0xcab584];}if(_0x1f2776['metadata']&&_0x1f2776['metadata']['length']){object['metadata']=[];for(_0xcab584=0x0;_0xcab584<_0x1f2776['metadata']['length'];++_0xcab584)object['metadata'][_0xcab584]=$root['OperationMetadataDescriptor']['toObject'](_0x1f2776['metadata'][_0xcab584],options);}return null!=_0x1f2776['lastOperationId']&&_0x1f2776['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x1f2776['lastOperationId']),object;},CollaborativeEditingUpdateMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingUpdateMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingUpdateMessage';},CollaborativeEditingUpdateMessage;}()),$root['GetDocumentDetailsMessage']=(function(){function GetDocumentDetailsMessage(properties){if(properties){for(var _0x58ffea=Object['keys'](properties),_0x536748=0x0;_0x536748<_0x58ffea['length'];++_0x536748)null!=properties[_0x58ffea[_0x536748]]&&(this[_0x58ffea[_0x536748]]=properties[_0x58ffea[_0x536748]]);}}return GetDocumentDetailsMessage['prototype']['documentId']='',GetDocumentDetailsMessage['prototype']['environmentId']='',GetDocumentDetailsMessage['create']=function(properties){return new GetDocumentDetailsMessage(properties);},GetDocumentDetailsMessage['encode']=function(_0x2a989b,writer){return writer||(writer=$Writer['create']()),null!=_0x2a989b['documentId']&&Object['hasOwnProperty']['call'](_0x2a989b,'documentId')&&writer['uint32'](0xa)['string'](_0x2a989b['documentId']),null!=_0x2a989b['environmentId']&&Object['hasOwnProperty']['call'](_0x2a989b,'environmentId')&&writer['uint32'](0x12)['string'](_0x2a989b['environmentId']),writer;},GetDocumentDetailsMessage['encodeDelimited']=function(_0x5d31b6,writer){return this['encode'](_0x5d31b6,writer)['ldelim']();},GetDocumentDetailsMessage['decode']=function(_0x356fad,length){_0x356fad instanceof _0x246cb1||(_0x356fad=_0x246cb1['create'](_0x356fad));for(var _0x2ed56e=void 0x0===length?_0x356fad['len']:_0x356fad['pos']+length,_0x4cd6fb=new $root['GetDocumentDetailsMessage']();_0x356fad['pos']<_0x2ed56e;){var tag=_0x356fad['uint32']();switch(tag>>>0x3){case 0x1:_0x4cd6fb['documentId']=_0x356fad['string']();break;case 0x2:_0x4cd6fb['environmentId']=_0x356fad['string']();break;default:_0x356fad['skipType'](0x7&tag);}}return _0x4cd6fb;},GetDocumentDetailsMessage['decodeDelimited']=function(_0x104507){return _0x104507 instanceof _0x246cb1||(_0x104507=new _0x246cb1(_0x104507)),this['decode'](_0x104507,_0x104507['uint32']());},GetDocumentDetailsMessage['verify']=function(_0x275964){return'object'!=typeof _0x275964||null===_0x275964?'object\x20expected':null!=_0x275964['documentId']&&_0x275964['hasOwnProperty']('documentId')&&!$util['isString'](_0x275964['documentId'])?'documentId:\x20string\x20expected':null!=_0x275964['environmentId']&&_0x275964['hasOwnProperty']('environmentId')&&!$util['isString'](_0x275964['environmentId'])?'environmentId:\x20string\x20expected':null;},GetDocumentDetailsMessage['fromObject']=function(object){if(object instanceof $root['GetDocumentDetailsMessage'])return object;var _0x4a6d82=new $root['GetDocumentDetailsMessage']();return null!=object['documentId']&&(_0x4a6d82['documentId']=String(object['documentId'])),null!=object['environmentId']&&(_0x4a6d82['environmentId']=String(object['environmentId'])),_0x4a6d82;},GetDocumentDetailsMessage['toObject']=function(_0x4ecb22,options){options||(options={});var object={};return options['defaults']&&(object['documentId']='',object['environmentId']=''),null!=_0x4ecb22['documentId']&&_0x4ecb22['hasOwnProperty']('documentId')&&(object['documentId']=_0x4ecb22['documentId']),null!=_0x4ecb22['environmentId']&&_0x4ecb22['hasOwnProperty']('environmentId')&&(object['environmentId']=_0x4ecb22['environmentId']),object;},GetDocumentDetailsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetDocumentDetailsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetDocumentDetailsMessage';},GetDocumentDetailsMessage;}()),$root['CollaborativeEditingConnectResponse']=(function(){function CollaborativeEditingConnectResponse(properties){if(this['buffers']=[],this['types']=[],this['metadata']=[],properties){for(var _0x58b517=Object['keys'](properties),_0x2026c7=0x0;_0x2026c7<_0x58b517['length'];++_0x2026c7)null!=properties[_0x58b517[_0x2026c7]]&&(this[_0x58b517[_0x2026c7]]=properties[_0x58b517[_0x2026c7]]);}}return CollaborativeEditingConnectResponse['prototype']['channel']='',CollaborativeEditingConnectResponse['prototype']['offset']=0x0,CollaborativeEditingConnectResponse['prototype']['version']=0x0,CollaborativeEditingConnectResponse['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingConnectResponse['prototype']['types']=$util['emptyArray'],CollaborativeEditingConnectResponse['prototype']['metadata']=$util['emptyArray'],CollaborativeEditingConnectResponse['prototype']['initData']='',CollaborativeEditingConnectResponse['prototype']['isInitialized']=!0x1,CollaborativeEditingConnectResponse['prototype']['sessionId']='',CollaborativeEditingConnectResponse['prototype']['lastOperationId']='',CollaborativeEditingConnectResponse['prototype']['sessionCreatedAt']='',CollaborativeEditingConnectResponse['create']=function(properties){return new CollaborativeEditingConnectResponse(properties);},CollaborativeEditingConnectResponse['encode']=function(_0x4b53be,writer){if(writer||(writer=$Writer['create']()),null!=_0x4b53be['channel']&&Object['hasOwnProperty']['call'](_0x4b53be,'channel')&&writer['uint32'](0xa)['string'](_0x4b53be['channel']),null!=_0x4b53be['offset']&&Object['hasOwnProperty']['call'](_0x4b53be,'offset')&&writer['uint32'](0x10)['uint32'](_0x4b53be['offset']),null!=_0x4b53be['version']&&Object['hasOwnProperty']['call'](_0x4b53be,'version')&&writer['uint32'](0x18)['uint32'](_0x4b53be['version']),null!=_0x4b53be['buffers']&&_0x4b53be['buffers']['length']){for(var _0x25ca94=0x0;_0x25ca94<_0x4b53be['buffers']['length'];++_0x25ca94)writer['uint32'](0x22)['bytes'](_0x4b53be['buffers'][_0x25ca94]);}if(null!=_0x4b53be['types']&&_0x4b53be['types']['length']){writer['uint32'](0x2a)['fork']();for(_0x25ca94=0x0;_0x25ca94<_0x4b53be['types']['length'];++_0x25ca94)writer['uint32'](_0x4b53be['types'][_0x25ca94]);writer['ldelim']();}if(null!=_0x4b53be['metadata']&&_0x4b53be['metadata']['length']){for(_0x25ca94=0x0;_0x25ca94<_0x4b53be['metadata']['length'];++_0x25ca94)$root['OperationMetadataDescriptor']['encode'](_0x4b53be['metadata'][_0x25ca94],writer['uint32'](0x3a)['fork']())['ldelim']();}return null!=_0x4b53be['initData']&&Object['hasOwnProperty']['call'](_0x4b53be,'initData')&&writer['uint32'](0x42)['string'](_0x4b53be['initData']),null!=_0x4b53be['isInitialized']&&Object['hasOwnProperty']['call'](_0x4b53be,'isInitialized')&&writer['uint32'](0x48)['bool'](_0x4b53be['isInitialized']),null!=_0x4b53be['sessionId']&&Object['hasOwnProperty']['call'](_0x4b53be,'sessionId')&&writer['uint32'](0x52)['string'](_0x4b53be['sessionId']),null!=_0x4b53be['lastOperationId']&&Object['hasOwnProperty']['call'](_0x4b53be,'lastOperationId')&&writer['uint32'](0x5a)['string'](_0x4b53be['lastOperationId']),null!=_0x4b53be['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0x4b53be,'sessionCreatedAt')&&writer['uint32'](0x62)['string'](_0x4b53be['sessionCreatedAt']),writer;},CollaborativeEditingConnectResponse['encodeDelimited']=function(_0x334fa2,writer){return this['encode'](_0x334fa2,writer)['ldelim']();},CollaborativeEditingConnectResponse['decode']=function(_0x1f14cd,length){_0x1f14cd instanceof _0x246cb1||(_0x1f14cd=_0x246cb1['create'](_0x1f14cd));for(var _0x3e7838=void 0x0===length?_0x1f14cd['len']:_0x1f14cd['pos']+length,_0x19906b=new $root['CollaborativeEditingConnectResponse']();_0x1f14cd['pos']<_0x3e7838;){var tag=_0x1f14cd['uint32']();switch(tag>>>0x3){case 0x1:_0x19906b['channel']=_0x1f14cd['string']();break;case 0x2:_0x19906b['offset']=_0x1f14cd['uint32']();break;case 0x3:_0x19906b['version']=_0x1f14cd['uint32']();break;case 0x4:_0x19906b['buffers']&&_0x19906b['buffers']['length']||(_0x19906b['buffers']=[]),_0x19906b['buffers']['push'](_0x1f14cd['bytes']());break;case 0x5:if(_0x19906b['types']&&_0x19906b['types']['length']||(_0x19906b['types']=[]),0x2==(0x7&tag)){for(var _0x386891=_0x1f14cd['uint32']()+_0x1f14cd['pos'];_0x1f14cd['pos']<_0x386891;)_0x19906b['types']['push'](_0x1f14cd['uint32']());}else _0x19906b['types']['push'](_0x1f14cd['uint32']());break;case 0x7:_0x19906b['metadata']&&_0x19906b['metadata']['length']||(_0x19906b['metadata']=[]),_0x19906b['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x1f14cd,_0x1f14cd['uint32']()));break;case 0x8:_0x19906b['initData']=_0x1f14cd['string']();break;case 0x9:_0x19906b['isInitialized']=_0x1f14cd['bool']();break;case 0xa:_0x19906b['sessionId']=_0x1f14cd['string']();break;case 0xb:_0x19906b['lastOperationId']=_0x1f14cd['string']();break;case 0xc:_0x19906b['sessionCreatedAt']=_0x1f14cd['string']();break;default:_0x1f14cd['skipType'](0x7&tag);}}return _0x19906b;},CollaborativeEditingConnectResponse['decodeDelimited']=function(_0x37dd70){return _0x37dd70 instanceof _0x246cb1||(_0x37dd70=new _0x246cb1(_0x37dd70)),this['decode'](_0x37dd70,_0x37dd70['uint32']());},CollaborativeEditingConnectResponse['verify']=function(_0x3c2dd7){if('object'!=typeof _0x3c2dd7||null===_0x3c2dd7)return'object\x20expected';if(null!=_0x3c2dd7['channel']&&_0x3c2dd7['hasOwnProperty']('channel')&&!$util['isString'](_0x3c2dd7['channel']))return'channel:\x20string\x20expected';if(null!=_0x3c2dd7['offset']&&_0x3c2dd7['hasOwnProperty']('offset')&&!$util['isInteger'](_0x3c2dd7['offset']))return'offset:\x20integer\x20expected';if(null!=_0x3c2dd7['version']&&_0x3c2dd7['hasOwnProperty']('version')&&!$util['isInteger'](_0x3c2dd7['version']))return'version:\x20integer\x20expected';if(null!=_0x3c2dd7['buffers']&&_0x3c2dd7['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x3c2dd7['buffers']))return'buffers:\x20array\x20expected';for(var _0x68620e=0x0;_0x68620e<_0x3c2dd7['buffers']['length'];++_0x68620e)if(!(_0x3c2dd7['buffers'][_0x68620e]&&'number'==typeof _0x3c2dd7['buffers'][_0x68620e]['length']||$util['isString'](_0x3c2dd7['buffers'][_0x68620e])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x3c2dd7['types']&&_0x3c2dd7['hasOwnProperty']('types')){if(!Array['isArray'](_0x3c2dd7['types']))return'types:\x20array\x20expected';for(_0x68620e=0x0;_0x68620e<_0x3c2dd7['types']['length'];++_0x68620e)if(!$util['isInteger'](_0x3c2dd7['types'][_0x68620e]))return'types:\x20integer[]\x20expected';}if(null!=_0x3c2dd7['metadata']&&_0x3c2dd7['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x3c2dd7['metadata']))return'metadata:\x20array\x20expected';for(_0x68620e=0x0;_0x68620e<_0x3c2dd7['metadata']['length'];++_0x68620e){var _0x2600fa=$root['OperationMetadataDescriptor']['verify'](_0x3c2dd7['metadata'][_0x68620e]);if(_0x2600fa)return'metadata.'+_0x2600fa;}}return null!=_0x3c2dd7['initData']&&_0x3c2dd7['hasOwnProperty']('initData')&&!$util['isString'](_0x3c2dd7['initData'])?'initData:\x20string\x20expected':null!=_0x3c2dd7['isInitialized']&&_0x3c2dd7['hasOwnProperty']('isInitialized')&&'boolean'!=typeof _0x3c2dd7['isInitialized']?'isInitialized:\x20boolean\x20expected':null!=_0x3c2dd7['sessionId']&&_0x3c2dd7['hasOwnProperty']('sessionId')&&!$util['isString'](_0x3c2dd7['sessionId'])?'sessionId:\x20string\x20expected':null!=_0x3c2dd7['lastOperationId']&&_0x3c2dd7['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x3c2dd7['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x3c2dd7['sessionCreatedAt']&&_0x3c2dd7['hasOwnProperty']('sessionCreatedAt')&&!$util['isString'](_0x3c2dd7['sessionCreatedAt'])?'sessionCreatedAt:\x20string\x20expected':null;},CollaborativeEditingConnectResponse['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingConnectResponse'])return object;var _0x51be5c=new $root['CollaborativeEditingConnectResponse']();if(null!=object['channel']&&(_0x51be5c['channel']=String(object['channel'])),null!=object['offset']&&(_0x51be5c['offset']=object['offset']>>>0x0),null!=object['version']&&(_0x51be5c['version']=object['version']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingConnectResponse.buffers:\x20array\x20expected');_0x51be5c['buffers']=[];for(var _0x56551f=0x0;_0x56551f<object['buffers']['length'];++_0x56551f)'string'==typeof object['buffers'][_0x56551f]?$util['base64']['decode'](object['buffers'][_0x56551f],_0x51be5c['buffers'][_0x56551f]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x56551f])),0x0):object['buffers'][_0x56551f]['length']>=0x0&&(_0x51be5c['buffers'][_0x56551f]=object['buffers'][_0x56551f]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingConnectResponse.types:\x20array\x20expected');_0x51be5c['types']=[];for(_0x56551f=0x0;_0x56551f<object['types']['length'];++_0x56551f)_0x51be5c['types'][_0x56551f]=object['types'][_0x56551f]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20array\x20expected');_0x51be5c['metadata']=[];for(_0x56551f=0x0;_0x56551f<object['metadata']['length'];++_0x56551f){if('object'!=typeof object['metadata'][_0x56551f])throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20object\x20expected');_0x51be5c['metadata'][_0x56551f]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x56551f]);}}return null!=object['initData']&&(_0x51be5c['initData']=String(object['initData'])),null!=object['isInitialized']&&(_0x51be5c['isInitialized']=Boolean(object['isInitialized'])),null!=object['sessionId']&&(_0x51be5c['sessionId']=String(object['sessionId'])),null!=object['lastOperationId']&&(_0x51be5c['lastOperationId']=String(object['lastOperationId'])),null!=object['sessionCreatedAt']&&(_0x51be5c['sessionCreatedAt']=String(object['sessionCreatedAt'])),_0x51be5c;},CollaborativeEditingConnectResponse['toObject']=function(_0x267840,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[],object['metadata']=[]),options['defaults']&&(object['channel']='',object['offset']=0x0,object['version']=0x0,object['initData']='',object['isInitialized']=!0x1,object['sessionId']='',object['lastOperationId']='',object['sessionCreatedAt']=''),null!=_0x267840['channel']&&_0x267840['hasOwnProperty']('channel')&&(object['channel']=_0x267840['channel']),null!=_0x267840['offset']&&_0x267840['hasOwnProperty']('offset')&&(object['offset']=_0x267840['offset']),null!=_0x267840['version']&&_0x267840['hasOwnProperty']('version')&&(object['version']=_0x267840['version']),_0x267840['buffers']&&_0x267840['buffers']['length']){object['buffers']=[];for(var _0x4f95be=0x0;_0x4f95be<_0x267840['buffers']['length'];++_0x4f95be)object['buffers'][_0x4f95be]=options['bytes']===String?$util['base64']['encode'](_0x267840['buffers'][_0x4f95be],0x0,_0x267840['buffers'][_0x4f95be]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x267840['buffers'][_0x4f95be]):_0x267840['buffers'][_0x4f95be];}if(_0x267840['types']&&_0x267840['types']['length']){object['types']=[];for(_0x4f95be=0x0;_0x4f95be<_0x267840['types']['length'];++_0x4f95be)object['types'][_0x4f95be]=_0x267840['types'][_0x4f95be];}if(_0x267840['metadata']&&_0x267840['metadata']['length']){object['metadata']=[];for(_0x4f95be=0x0;_0x4f95be<_0x267840['metadata']['length'];++_0x4f95be)object['metadata'][_0x4f95be]=$root['OperationMetadataDescriptor']['toObject'](_0x267840['metadata'][_0x4f95be],options);}return null!=_0x267840['initData']&&_0x267840['hasOwnProperty']('initData')&&(object['initData']=_0x267840['initData']),null!=_0x267840['isInitialized']&&_0x267840['hasOwnProperty']('isInitialized')&&(object['isInitialized']=_0x267840['isInitialized']),null!=_0x267840['sessionId']&&_0x267840['hasOwnProperty']('sessionId')&&(object['sessionId']=_0x267840['sessionId']),null!=_0x267840['lastOperationId']&&_0x267840['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x267840['lastOperationId']),null!=_0x267840['sessionCreatedAt']&&_0x267840['hasOwnProperty']('sessionCreatedAt')&&(object['sessionCreatedAt']=_0x267840['sessionCreatedAt']),object;},CollaborativeEditingConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingConnectResponse';},CollaborativeEditingConnectResponse;}()),$root['CollaborativeEditingResponse']=(function(){function CollaborativeEditingResponse(properties){if(this['buffers']=[],this['types']=[],this['metadata']=[],properties){for(var _0x23049f=Object['keys'](properties),_0x9aa580=0x0;_0x9aa580<_0x23049f['length'];++_0x9aa580)null!=properties[_0x23049f[_0x9aa580]]&&(this[_0x23049f[_0x9aa580]]=properties[_0x23049f[_0x9aa580]]);}}return CollaborativeEditingResponse['prototype']['version']=0x0,CollaborativeEditingResponse['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingResponse['prototype']['types']=$util['emptyArray'],CollaborativeEditingResponse['prototype']['metadata']=$util['emptyArray'],CollaborativeEditingResponse['prototype']['lastOperationId']='',CollaborativeEditingResponse['prototype']['lastOperationAcceptedAt']='',CollaborativeEditingResponse['create']=function(properties){return new CollaborativeEditingResponse(properties);},CollaborativeEditingResponse['encode']=function(_0x12f889,writer){if(writer||(writer=$Writer['create']()),null!=_0x12f889['version']&&Object['hasOwnProperty']['call'](_0x12f889,'version')&&writer['uint32'](0x8)['uint32'](_0x12f889['version']),null!=_0x12f889['buffers']&&_0x12f889['buffers']['length']){for(var _0x473d04=0x0;_0x473d04<_0x12f889['buffers']['length'];++_0x473d04)writer['uint32'](0x12)['bytes'](_0x12f889['buffers'][_0x473d04]);}if(null!=_0x12f889['types']&&_0x12f889['types']['length']){writer['uint32'](0x1a)['fork']();for(_0x473d04=0x0;_0x473d04<_0x12f889['types']['length'];++_0x473d04)writer['uint32'](_0x12f889['types'][_0x473d04]);writer['ldelim']();}if(null!=_0x12f889['metadata']&&_0x12f889['metadata']['length']){for(_0x473d04=0x0;_0x473d04<_0x12f889['metadata']['length'];++_0x473d04)$root['OperationMetadataDescriptor']['encode'](_0x12f889['metadata'][_0x473d04],writer['uint32'](0x2a)['fork']())['ldelim']();}return null!=_0x12f889['lastOperationId']&&Object['hasOwnProperty']['call'](_0x12f889,'lastOperationId')&&writer['uint32'](0x32)['string'](_0x12f889['lastOperationId']),null!=_0x12f889['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x12f889,'lastOperationAcceptedAt')&&writer['uint32'](0x3a)['string'](_0x12f889['lastOperationAcceptedAt']),writer;},CollaborativeEditingResponse['encodeDelimited']=function(_0x355792,writer){return this['encode'](_0x355792,writer)['ldelim']();},CollaborativeEditingResponse['decode']=function(_0x5a91b5,length){_0x5a91b5 instanceof _0x246cb1||(_0x5a91b5=_0x246cb1['create'](_0x5a91b5));for(var _0x448825=void 0x0===length?_0x5a91b5['len']:_0x5a91b5['pos']+length,_0x27997d=new $root['CollaborativeEditingResponse']();_0x5a91b5['pos']<_0x448825;){var tag=_0x5a91b5['uint32']();switch(tag>>>0x3){case 0x1:_0x27997d['version']=_0x5a91b5['uint32']();break;case 0x2:_0x27997d['buffers']&&_0x27997d['buffers']['length']||(_0x27997d['buffers']=[]),_0x27997d['buffers']['push'](_0x5a91b5['bytes']());break;case 0x3:if(_0x27997d['types']&&_0x27997d['types']['length']||(_0x27997d['types']=[]),0x2==(0x7&tag)){for(var _0x107521=_0x5a91b5['uint32']()+_0x5a91b5['pos'];_0x5a91b5['pos']<_0x107521;)_0x27997d['types']['push'](_0x5a91b5['uint32']());}else _0x27997d['types']['push'](_0x5a91b5['uint32']());break;case 0x5:_0x27997d['metadata']&&_0x27997d['metadata']['length']||(_0x27997d['metadata']=[]),_0x27997d['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x5a91b5,_0x5a91b5['uint32']()));break;case 0x6:_0x27997d['lastOperationId']=_0x5a91b5['string']();break;case 0x7:_0x27997d['lastOperationAcceptedAt']=_0x5a91b5['string']();break;default:_0x5a91b5['skipType'](0x7&tag);}}return _0x27997d;},CollaborativeEditingResponse['decodeDelimited']=function(_0x4f4924){return _0x4f4924 instanceof _0x246cb1||(_0x4f4924=new _0x246cb1(_0x4f4924)),this['decode'](_0x4f4924,_0x4f4924['uint32']());},CollaborativeEditingResponse['verify']=function(_0x3489b3){if('object'!=typeof _0x3489b3||null===_0x3489b3)return'object\x20expected';if(null!=_0x3489b3['version']&&_0x3489b3['hasOwnProperty']('version')&&!$util['isInteger'](_0x3489b3['version']))return'version:\x20integer\x20expected';if(null!=_0x3489b3['buffers']&&_0x3489b3['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x3489b3['buffers']))return'buffers:\x20array\x20expected';for(var _0x2f3489=0x0;_0x2f3489<_0x3489b3['buffers']['length'];++_0x2f3489)if(!(_0x3489b3['buffers'][_0x2f3489]&&'number'==typeof _0x3489b3['buffers'][_0x2f3489]['length']||$util['isString'](_0x3489b3['buffers'][_0x2f3489])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x3489b3['types']&&_0x3489b3['hasOwnProperty']('types')){if(!Array['isArray'](_0x3489b3['types']))return'types:\x20array\x20expected';for(_0x2f3489=0x0;_0x2f3489<_0x3489b3['types']['length'];++_0x2f3489)if(!$util['isInteger'](_0x3489b3['types'][_0x2f3489]))return'types:\x20integer[]\x20expected';}if(null!=_0x3489b3['metadata']&&_0x3489b3['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x3489b3['metadata']))return'metadata:\x20array\x20expected';for(_0x2f3489=0x0;_0x2f3489<_0x3489b3['metadata']['length'];++_0x2f3489){var _0x7720a9=$root['OperationMetadataDescriptor']['verify'](_0x3489b3['metadata'][_0x2f3489]);if(_0x7720a9)return'metadata.'+_0x7720a9;}}return null!=_0x3489b3['lastOperationId']&&_0x3489b3['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x3489b3['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x3489b3['lastOperationAcceptedAt']&&_0x3489b3['hasOwnProperty']('lastOperationAcceptedAt')&&!$util['isString'](_0x3489b3['lastOperationAcceptedAt'])?'lastOperationAcceptedAt:\x20string\x20expected':null;},CollaborativeEditingResponse['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingResponse'])return object;var _0x1a8d8d=new $root['CollaborativeEditingResponse']();if(null!=object['version']&&(_0x1a8d8d['version']=object['version']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingResponse.buffers:\x20array\x20expected');_0x1a8d8d['buffers']=[];for(var _0x2cdcc5=0x0;_0x2cdcc5<object['buffers']['length'];++_0x2cdcc5)'string'==typeof object['buffers'][_0x2cdcc5]?$util['base64']['decode'](object['buffers'][_0x2cdcc5],_0x1a8d8d['buffers'][_0x2cdcc5]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x2cdcc5])),0x0):object['buffers'][_0x2cdcc5]['length']>=0x0&&(_0x1a8d8d['buffers'][_0x2cdcc5]=object['buffers'][_0x2cdcc5]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingResponse.types:\x20array\x20expected');_0x1a8d8d['types']=[];for(_0x2cdcc5=0x0;_0x2cdcc5<object['types']['length'];++_0x2cdcc5)_0x1a8d8d['types'][_0x2cdcc5]=object['types'][_0x2cdcc5]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingResponse.metadata:\x20array\x20expected');_0x1a8d8d['metadata']=[];for(_0x2cdcc5=0x0;_0x2cdcc5<object['metadata']['length'];++_0x2cdcc5){if('object'!=typeof object['metadata'][_0x2cdcc5])throw TypeError('.CollaborativeEditingResponse.metadata:\x20object\x20expected');_0x1a8d8d['metadata'][_0x2cdcc5]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x2cdcc5]);}}return null!=object['lastOperationId']&&(_0x1a8d8d['lastOperationId']=String(object['lastOperationId'])),null!=object['lastOperationAcceptedAt']&&(_0x1a8d8d['lastOperationAcceptedAt']=String(object['lastOperationAcceptedAt'])),_0x1a8d8d;},CollaborativeEditingResponse['toObject']=function(_0x35442e,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[],object['metadata']=[]),options['defaults']&&(object['version']=0x0,object['lastOperationId']='',object['lastOperationAcceptedAt']=''),null!=_0x35442e['version']&&_0x35442e['hasOwnProperty']('version')&&(object['version']=_0x35442e['version']),_0x35442e['buffers']&&_0x35442e['buffers']['length']){object['buffers']=[];for(var _0x210a0e=0x0;_0x210a0e<_0x35442e['buffers']['length'];++_0x210a0e)object['buffers'][_0x210a0e]=options['bytes']===String?$util['base64']['encode'](_0x35442e['buffers'][_0x210a0e],0x0,_0x35442e['buffers'][_0x210a0e]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x35442e['buffers'][_0x210a0e]):_0x35442e['buffers'][_0x210a0e];}if(_0x35442e['types']&&_0x35442e['types']['length']){object['types']=[];for(_0x210a0e=0x0;_0x210a0e<_0x35442e['types']['length'];++_0x210a0e)object['types'][_0x210a0e]=_0x35442e['types'][_0x210a0e];}if(_0x35442e['metadata']&&_0x35442e['metadata']['length']){object['metadata']=[];for(_0x210a0e=0x0;_0x210a0e<_0x35442e['metadata']['length'];++_0x210a0e)object['metadata'][_0x210a0e]=$root['OperationMetadataDescriptor']['toObject'](_0x35442e['metadata'][_0x210a0e],options);}return null!=_0x35442e['lastOperationId']&&_0x35442e['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x35442e['lastOperationId']),null!=_0x35442e['lastOperationAcceptedAt']&&_0x35442e['hasOwnProperty']('lastOperationAcceptedAt')&&(object['lastOperationAcceptedAt']=_0x35442e['lastOperationAcceptedAt']),object;},CollaborativeEditingResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingResponse';},CollaborativeEditingResponse;}()),$root['GetDocumentDetailsResponse']=(function(){function GetDocumentDetailsResponse(properties){if(properties){for(var _0x47b61b=Object['keys'](properties),_0x3d5a59=0x0;_0x3d5a59<_0x47b61b['length'];++_0x3d5a59)null!=properties[_0x47b61b[_0x3d5a59]]&&(this[_0x47b61b[_0x3d5a59]]=properties[_0x47b61b[_0x3d5a59]]);}}return GetDocumentDetailsResponse['prototype']['lastDocumentSessionId']='',GetDocumentDetailsResponse['prototype']['lastDocumentSessionOperationId']='',GetDocumentDetailsResponse['prototype']['currentDocumentSessionId']='',GetDocumentDetailsResponse['prototype']['currentDocumentSessionVersion']=0x0,GetDocumentDetailsResponse['prototype']['currentDocumentSessionOperationId']='',GetDocumentDetailsResponse['create']=function(properties){return new GetDocumentDetailsResponse(properties);},GetDocumentDetailsResponse['encode']=function(_0x5c4e2f,writer){return writer||(writer=$Writer['create']()),null!=_0x5c4e2f['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x5c4e2f,'lastDocumentSessionId')&&writer['uint32'](0xa)['string'](_0x5c4e2f['lastDocumentSessionId']),null!=_0x5c4e2f['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x5c4e2f,'lastDocumentSessionOperationId')&&writer['uint32'](0x12)['string'](_0x5c4e2f['lastDocumentSessionOperationId']),null!=_0x5c4e2f['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x5c4e2f,'currentDocumentSessionId')&&writer['uint32'](0x1a)['string'](_0x5c4e2f['currentDocumentSessionId']),null!=_0x5c4e2f['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x5c4e2f,'currentDocumentSessionVersion')&&writer['uint32'](0x20)['uint32'](_0x5c4e2f['currentDocumentSessionVersion']),null!=_0x5c4e2f['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x5c4e2f,'currentDocumentSessionOperationId')&&writer['uint32'](0x2a)['string'](_0x5c4e2f['currentDocumentSessionOperationId']),writer;},GetDocumentDetailsResponse['encodeDelimited']=function(_0x26da05,writer){return this['encode'](_0x26da05,writer)['ldelim']();},GetDocumentDetailsResponse['decode']=function(_0x22a90f,length){_0x22a90f instanceof _0x246cb1||(_0x22a90f=_0x246cb1['create'](_0x22a90f));for(var _0x30f100=void 0x0===length?_0x22a90f['len']:_0x22a90f['pos']+length,_0x31f43e=new $root['GetDocumentDetailsResponse']();_0x22a90f['pos']<_0x30f100;){var tag=_0x22a90f['uint32']();switch(tag>>>0x3){case 0x1:_0x31f43e['lastDocumentSessionId']=_0x22a90f['string']();break;case 0x2:_0x31f43e['lastDocumentSessionOperationId']=_0x22a90f['string']();break;case 0x3:_0x31f43e['currentDocumentSessionId']=_0x22a90f['string']();break;case 0x4:_0x31f43e['currentDocumentSessionVersion']=_0x22a90f['uint32']();break;case 0x5:_0x31f43e['currentDocumentSessionOperationId']=_0x22a90f['string']();break;default:_0x22a90f['skipType'](0x7&tag);}}return _0x31f43e;},GetDocumentDetailsResponse['decodeDelimited']=function(_0x4e6c03){return _0x4e6c03 instanceof _0x246cb1||(_0x4e6c03=new _0x246cb1(_0x4e6c03)),this['decode'](_0x4e6c03,_0x4e6c03['uint32']());},GetDocumentDetailsResponse['verify']=function(_0x5e6e9f){return'object'!=typeof _0x5e6e9f||null===_0x5e6e9f?'object\x20expected':null!=_0x5e6e9f['lastDocumentSessionId']&&_0x5e6e9f['hasOwnProperty']('lastDocumentSessionId')&&!$util['isString'](_0x5e6e9f['lastDocumentSessionId'])?'lastDocumentSessionId:\x20string\x20expected':null!=_0x5e6e9f['lastDocumentSessionOperationId']&&_0x5e6e9f['hasOwnProperty']('lastDocumentSessionOperationId')&&!$util['isString'](_0x5e6e9f['lastDocumentSessionOperationId'])?'lastDocumentSessionOperationId:\x20string\x20expected':null!=_0x5e6e9f['currentDocumentSessionId']&&_0x5e6e9f['hasOwnProperty']('currentDocumentSessionId')&&!$util['isString'](_0x5e6e9f['currentDocumentSessionId'])?'currentDocumentSessionId:\x20string\x20expected':null!=_0x5e6e9f['currentDocumentSessionVersion']&&_0x5e6e9f['hasOwnProperty']('currentDocumentSessionVersion')&&!$util['isInteger'](_0x5e6e9f['currentDocumentSessionVersion'])?'currentDocumentSessionVersion:\x20integer\x20expected':null!=_0x5e6e9f['currentDocumentSessionOperationId']&&_0x5e6e9f['hasOwnProperty']('currentDocumentSessionOperationId')&&!$util['isString'](_0x5e6e9f['currentDocumentSessionOperationId'])?'currentDocumentSessionOperationId:\x20string\x20expected':null;},GetDocumentDetailsResponse['fromObject']=function(object){if(object instanceof $root['GetDocumentDetailsResponse'])return object;var _0x621fea=new $root['GetDocumentDetailsResponse']();return null!=object['lastDocumentSessionId']&&(_0x621fea['lastDocumentSessionId']=String(object['lastDocumentSessionId'])),null!=object['lastDocumentSessionOperationId']&&(_0x621fea['lastDocumentSessionOperationId']=String(object['lastDocumentSessionOperationId'])),null!=object['currentDocumentSessionId']&&(_0x621fea['currentDocumentSessionId']=String(object['currentDocumentSessionId'])),null!=object['currentDocumentSessionVersion']&&(_0x621fea['currentDocumentSessionVersion']=object['currentDocumentSessionVersion']>>>0x0),null!=object['currentDocumentSessionOperationId']&&(_0x621fea['currentDocumentSessionOperationId']=String(object['currentDocumentSessionOperationId'])),_0x621fea;},GetDocumentDetailsResponse['toObject']=function(_0x1f557,options){options||(options={});var object={};return options['defaults']&&(object['lastDocumentSessionId']='',object['lastDocumentSessionOperationId']='',object['currentDocumentSessionId']='',object['currentDocumentSessionVersion']=0x0,object['currentDocumentSessionOperationId']=''),null!=_0x1f557['lastDocumentSessionId']&&_0x1f557['hasOwnProperty']('lastDocumentSessionId')&&(object['lastDocumentSessionId']=_0x1f557['lastDocumentSessionId']),null!=_0x1f557['lastDocumentSessionOperationId']&&_0x1f557['hasOwnProperty']('lastDocumentSessionOperationId')&&(object['lastDocumentSessionOperationId']=_0x1f557['lastDocumentSessionOperationId']),null!=_0x1f557['currentDocumentSessionId']&&_0x1f557['hasOwnProperty']('currentDocumentSessionId')&&(object['currentDocumentSessionId']=_0x1f557['currentDocumentSessionId']),null!=_0x1f557['currentDocumentSessionVersion']&&_0x1f557['hasOwnProperty']('currentDocumentSessionVersion')&&(object['currentDocumentSessionVersion']=_0x1f557['currentDocumentSessionVersion']),null!=_0x1f557['currentDocumentSessionOperationId']&&_0x1f557['hasOwnProperty']('currentDocumentSessionOperationId')&&(object['currentDocumentSessionOperationId']=_0x1f557['currentDocumentSessionOperationId']),object;},GetDocumentDetailsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetDocumentDetailsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetDocumentDetailsResponse';},GetDocumentDetailsResponse;}()),$root['CommentDescriptor']=(function(){function CommentDescriptor(properties){if(properties){for(var _0x182c04=Object['keys'](properties),_0x16d292=0x0;_0x16d292<_0x182c04['length'];++_0x16d292)null!=properties[_0x182c04[_0x16d292]]&&(this[_0x182c04[_0x16d292]]=properties[_0x182c04[_0x16d292]]);}}return CommentDescriptor['prototype']['commentId']='',CommentDescriptor['prototype']['commentThreadId']='',CommentDescriptor['prototype']['userId']='',CommentDescriptor['prototype']['content']='',CommentDescriptor['prototype']['documentId']='',CommentDescriptor['prototype']['createdAt']='',CommentDescriptor['prototype']['attributes']='',CommentDescriptor['create']=function(properties){return new CommentDescriptor(properties);},CommentDescriptor['encode']=function(_0xbe37a9,writer){return writer||(writer=$Writer['create']()),null!=_0xbe37a9['commentId']&&Object['hasOwnProperty']['call'](_0xbe37a9,'commentId')&&writer['uint32'](0xa)['string'](_0xbe37a9['commentId']),null!=_0xbe37a9['commentThreadId']&&Object['hasOwnProperty']['call'](_0xbe37a9,'commentThreadId')&&writer['uint32'](0x12)['string'](_0xbe37a9['commentThreadId']),null!=_0xbe37a9['userId']&&Object['hasOwnProperty']['call'](_0xbe37a9,'userId')&&writer['uint32'](0x1a)['string'](_0xbe37a9['userId']),null!=_0xbe37a9['content']&&Object['hasOwnProperty']['call'](_0xbe37a9,'content')&&writer['uint32'](0x22)['string'](_0xbe37a9['content']),null!=_0xbe37a9['documentId']&&Object['hasOwnProperty']['call'](_0xbe37a9,'documentId')&&writer['uint32'](0x2a)['string'](_0xbe37a9['documentId']),null!=_0xbe37a9['createdAt']&&Object['hasOwnProperty']['call'](_0xbe37a9,'createdAt')&&writer['uint32'](0x32)['string'](_0xbe37a9['createdAt']),null!=_0xbe37a9['attributes']&&Object['hasOwnProperty']['call'](_0xbe37a9,'attributes')&&writer['uint32'](0x3a)['string'](_0xbe37a9['attributes']),writer;},CommentDescriptor['encodeDelimited']=function(_0x3f655e,writer){return this['encode'](_0x3f655e,writer)['ldelim']();},CommentDescriptor['decode']=function(_0x33f12b,length){_0x33f12b instanceof _0x246cb1||(_0x33f12b=_0x246cb1['create'](_0x33f12b));for(var _0x40e046=void 0x0===length?_0x33f12b['len']:_0x33f12b['pos']+length,_0x5de8fa=new $root['CommentDescriptor']();_0x33f12b['pos']<_0x40e046;){var tag=_0x33f12b['uint32']();switch(tag>>>0x3){case 0x1:_0x5de8fa['commentId']=_0x33f12b['string']();break;case 0x2:_0x5de8fa['commentThreadId']=_0x33f12b['string']();break;case 0x3:_0x5de8fa['userId']=_0x33f12b['string']();break;case 0x4:_0x5de8fa['content']=_0x33f12b['string']();break;case 0x5:_0x5de8fa['documentId']=_0x33f12b['string']();break;case 0x6:_0x5de8fa['createdAt']=_0x33f12b['string']();break;case 0x7:_0x5de8fa['attributes']=_0x33f12b['string']();break;default:_0x33f12b['skipType'](0x7&tag);}}return _0x5de8fa;},CommentDescriptor['decodeDelimited']=function(_0x2ecbca){return _0x2ecbca instanceof _0x246cb1||(_0x2ecbca=new _0x246cb1(_0x2ecbca)),this['decode'](_0x2ecbca,_0x2ecbca['uint32']());},CommentDescriptor['verify']=function(_0x3aa9bd){return'object'!=typeof _0x3aa9bd||null===_0x3aa9bd?'object\x20expected':null!=_0x3aa9bd['commentId']&&_0x3aa9bd['hasOwnProperty']('commentId')&&!$util['isString'](_0x3aa9bd['commentId'])?'commentId:\x20string\x20expected':null!=_0x3aa9bd['commentThreadId']&&_0x3aa9bd['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x3aa9bd['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x3aa9bd['userId']&&_0x3aa9bd['hasOwnProperty']('userId')&&!$util['isString'](_0x3aa9bd['userId'])?'userId:\x20string\x20expected':null!=_0x3aa9bd['content']&&_0x3aa9bd['hasOwnProperty']('content')&&!$util['isString'](_0x3aa9bd['content'])?'content:\x20string\x20expected':null!=_0x3aa9bd['documentId']&&_0x3aa9bd['hasOwnProperty']('documentId')&&!$util['isString'](_0x3aa9bd['documentId'])?'documentId:\x20string\x20expected':null!=_0x3aa9bd['createdAt']&&_0x3aa9bd['hasOwnProperty']('createdAt')&&!$util['isString'](_0x3aa9bd['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3aa9bd['attributes']&&_0x3aa9bd['hasOwnProperty']('attributes')&&!$util['isString'](_0x3aa9bd['attributes'])?'attributes:\x20string\x20expected':null;},CommentDescriptor['fromObject']=function(object){if(object instanceof $root['CommentDescriptor'])return object;var _0x4fbf84=new $root['CommentDescriptor']();return null!=object['commentId']&&(_0x4fbf84['commentId']=String(object['commentId'])),null!=object['commentThreadId']&&(_0x4fbf84['commentThreadId']=String(object['commentThreadId'])),null!=object['userId']&&(_0x4fbf84['userId']=String(object['userId'])),null!=object['content']&&(_0x4fbf84['content']=String(object['content'])),null!=object['documentId']&&(_0x4fbf84['documentId']=String(object['documentId'])),null!=object['createdAt']&&(_0x4fbf84['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x4fbf84['attributes']=String(object['attributes'])),_0x4fbf84;},CommentDescriptor['toObject']=function(_0x4475b3,options){options||(options={});var object={};return options['defaults']&&(object['commentId']='',object['commentThreadId']='',object['userId']='',object['content']='',object['documentId']='',object['createdAt']='',object['attributes']=''),null!=_0x4475b3['commentId']&&_0x4475b3['hasOwnProperty']('commentId')&&(object['commentId']=_0x4475b3['commentId']),null!=_0x4475b3['commentThreadId']&&_0x4475b3['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x4475b3['commentThreadId']),null!=_0x4475b3['userId']&&_0x4475b3['hasOwnProperty']('userId')&&(object['userId']=_0x4475b3['userId']),null!=_0x4475b3['content']&&_0x4475b3['hasOwnProperty']('content')&&(object['content']=_0x4475b3['content']),null!=_0x4475b3['documentId']&&_0x4475b3['hasOwnProperty']('documentId')&&(object['documentId']=_0x4475b3['documentId']),null!=_0x4475b3['createdAt']&&_0x4475b3['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x4475b3['createdAt']),null!=_0x4475b3['attributes']&&_0x4475b3['hasOwnProperty']('attributes')&&(object['attributes']=_0x4475b3['attributes']),object;},CommentDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentDescriptor';},CommentDescriptor;}()),$root['CommentsThreadDescriptor']=(function(){function CommentsThreadDescriptor(properties){if(this['comments']=[],properties){for(var _0x52d2b9=Object['keys'](properties),_0xf632d7=0x0;_0xf632d7<_0x52d2b9['length'];++_0xf632d7)null!=properties[_0x52d2b9[_0xf632d7]]&&(this[_0x52d2b9[_0xf632d7]]=properties[_0x52d2b9[_0xf632d7]]);}}return CommentsThreadDescriptor['prototype']['commentThreadId']='',CommentsThreadDescriptor['prototype']['comments']=$util['emptyArray'],CommentsThreadDescriptor['prototype']['resolvedAt']='',CommentsThreadDescriptor['prototype']['resolvedBy']='',CommentsThreadDescriptor['prototype']['context']='',CommentsThreadDescriptor['prototype']['createdAt']='',CommentsThreadDescriptor['prototype']['deletedAt']='',CommentsThreadDescriptor['prototype']['attributes']='',CommentsThreadDescriptor['prototype']['unlinkedAt']='',CommentsThreadDescriptor['create']=function(properties){return new CommentsThreadDescriptor(properties);},CommentsThreadDescriptor['encode']=function(_0x11a11b,writer){if(writer||(writer=$Writer['create']()),null!=_0x11a11b['commentThreadId']&&Object['hasOwnProperty']['call'](_0x11a11b,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x11a11b['commentThreadId']),null!=_0x11a11b['comments']&&_0x11a11b['comments']['length']){for(var _0x367ef7=0x0;_0x367ef7<_0x11a11b['comments']['length'];++_0x367ef7)$root['CommentDescriptor']['encode'](_0x11a11b['comments'][_0x367ef7],writer['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x11a11b['resolvedAt']&&Object['hasOwnProperty']['call'](_0x11a11b,'resolvedAt')&&writer['uint32'](0x1a)['string'](_0x11a11b['resolvedAt']),null!=_0x11a11b['resolvedBy']&&Object['hasOwnProperty']['call'](_0x11a11b,'resolvedBy')&&writer['uint32'](0x22)['string'](_0x11a11b['resolvedBy']),null!=_0x11a11b['context']&&Object['hasOwnProperty']['call'](_0x11a11b,'context')&&writer['uint32'](0x2a)['string'](_0x11a11b['context']),null!=_0x11a11b['createdAt']&&Object['hasOwnProperty']['call'](_0x11a11b,'createdAt')&&writer['uint32'](0x32)['string'](_0x11a11b['createdAt']),null!=_0x11a11b['deletedAt']&&Object['hasOwnProperty']['call'](_0x11a11b,'deletedAt')&&writer['uint32'](0x3a)['string'](_0x11a11b['deletedAt']),null!=_0x11a11b['attributes']&&Object['hasOwnProperty']['call'](_0x11a11b,'attributes')&&writer['uint32'](0x42)['string'](_0x11a11b['attributes']),null!=_0x11a11b['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x11a11b,'unlinkedAt')&&writer['uint32'](0x4a)['string'](_0x11a11b['unlinkedAt']),writer;},CommentsThreadDescriptor['encodeDelimited']=function(_0x242495,writer){return this['encode'](_0x242495,writer)['ldelim']();},CommentsThreadDescriptor['decode']=function(_0x56764b,length){_0x56764b instanceof _0x246cb1||(_0x56764b=_0x246cb1['create'](_0x56764b));for(var _0x3597e4=void 0x0===length?_0x56764b['len']:_0x56764b['pos']+length,_0x494c26=new $root['CommentsThreadDescriptor']();_0x56764b['pos']<_0x3597e4;){var tag=_0x56764b['uint32']();switch(tag>>>0x3){case 0x1:_0x494c26['commentThreadId']=_0x56764b['string']();break;case 0x2:_0x494c26['comments']&&_0x494c26['comments']['length']||(_0x494c26['comments']=[]),_0x494c26['comments']['push']($root['CommentDescriptor']['decode'](_0x56764b,_0x56764b['uint32']()));break;case 0x3:_0x494c26['resolvedAt']=_0x56764b['string']();break;case 0x4:_0x494c26['resolvedBy']=_0x56764b['string']();break;case 0x5:_0x494c26['context']=_0x56764b['string']();break;case 0x6:_0x494c26['createdAt']=_0x56764b['string']();break;case 0x7:_0x494c26['deletedAt']=_0x56764b['string']();break;case 0x8:_0x494c26['attributes']=_0x56764b['string']();break;case 0x9:_0x494c26['unlinkedAt']=_0x56764b['string']();break;default:_0x56764b['skipType'](0x7&tag);}}return _0x494c26;},CommentsThreadDescriptor['decodeDelimited']=function(_0x72a7d3){return _0x72a7d3 instanceof _0x246cb1||(_0x72a7d3=new _0x246cb1(_0x72a7d3)),this['decode'](_0x72a7d3,_0x72a7d3['uint32']());},CommentsThreadDescriptor['verify']=function(_0x439aac){if('object'!=typeof _0x439aac||null===_0x439aac)return'object\x20expected';if(null!=_0x439aac['commentThreadId']&&_0x439aac['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x439aac['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x439aac['comments']&&_0x439aac['hasOwnProperty']('comments')){if(!Array['isArray'](_0x439aac['comments']))return'comments:\x20array\x20expected';for(var _0x4f112c=0x0;_0x4f112c<_0x439aac['comments']['length'];++_0x4f112c){var _0x1ac3f7=$root['CommentDescriptor']['verify'](_0x439aac['comments'][_0x4f112c]);if(_0x1ac3f7)return'comments.'+_0x1ac3f7;}}return null!=_0x439aac['resolvedAt']&&_0x439aac['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x439aac['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x439aac['resolvedBy']&&_0x439aac['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x439aac['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x439aac['context']&&_0x439aac['hasOwnProperty']('context')&&!$util['isString'](_0x439aac['context'])?'context:\x20string\x20expected':null!=_0x439aac['createdAt']&&_0x439aac['hasOwnProperty']('createdAt')&&!$util['isString'](_0x439aac['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x439aac['deletedAt']&&_0x439aac['hasOwnProperty']('deletedAt')&&!$util['isString'](_0x439aac['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x439aac['attributes']&&_0x439aac['hasOwnProperty']('attributes')&&!$util['isString'](_0x439aac['attributes'])?'attributes:\x20string\x20expected':null!=_0x439aac['unlinkedAt']&&_0x439aac['hasOwnProperty']('unlinkedAt')&&!$util['isString'](_0x439aac['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsThreadDescriptor['fromObject']=function(object){if(object instanceof $root['CommentsThreadDescriptor'])return object;var _0x31fa9b=new $root['CommentsThreadDescriptor']();if(null!=object['commentThreadId']&&(_0x31fa9b['commentThreadId']=String(object['commentThreadId'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsThreadDescriptor.comments:\x20array\x20expected');_0x31fa9b['comments']=[];for(var _0x1354a5=0x0;_0x1354a5<object['comments']['length'];++_0x1354a5){if('object'!=typeof object['comments'][_0x1354a5])throw TypeError('.CommentsThreadDescriptor.comments:\x20object\x20expected');_0x31fa9b['comments'][_0x1354a5]=$root['CommentDescriptor']['fromObject'](object['comments'][_0x1354a5]);}}return null!=object['resolvedAt']&&(_0x31fa9b['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x31fa9b['resolvedBy']=String(object['resolvedBy'])),null!=object['context']&&(_0x31fa9b['context']=String(object['context'])),null!=object['createdAt']&&(_0x31fa9b['createdAt']=String(object['createdAt'])),null!=object['deletedAt']&&(_0x31fa9b['deletedAt']=String(object['deletedAt'])),null!=object['attributes']&&(_0x31fa9b['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x31fa9b['unlinkedAt']=String(object['unlinkedAt'])),_0x31fa9b;},CommentsThreadDescriptor['toObject']=function(_0x5d33dd,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[]),options['defaults']&&(object['commentThreadId']='',object['resolvedAt']='',object['resolvedBy']='',object['context']='',object['createdAt']='',object['deletedAt']='',object['attributes']='',object['unlinkedAt']=''),null!=_0x5d33dd['commentThreadId']&&_0x5d33dd['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x5d33dd['commentThreadId']),_0x5d33dd['comments']&&_0x5d33dd['comments']['length']){object['comments']=[];for(var _0x5d6f49=0x0;_0x5d6f49<_0x5d33dd['comments']['length'];++_0x5d6f49)object['comments'][_0x5d6f49]=$root['CommentDescriptor']['toObject'](_0x5d33dd['comments'][_0x5d6f49],options);}return null!=_0x5d33dd['resolvedAt']&&_0x5d33dd['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x5d33dd['resolvedAt']),null!=_0x5d33dd['resolvedBy']&&_0x5d33dd['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x5d33dd['resolvedBy']),null!=_0x5d33dd['context']&&_0x5d33dd['hasOwnProperty']('context')&&(object['context']=_0x5d33dd['context']),null!=_0x5d33dd['createdAt']&&_0x5d33dd['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x5d33dd['createdAt']),null!=_0x5d33dd['deletedAt']&&_0x5d33dd['hasOwnProperty']('deletedAt')&&(object['deletedAt']=_0x5d33dd['deletedAt']),null!=_0x5d33dd['attributes']&&_0x5d33dd['hasOwnProperty']('attributes')&&(object['attributes']=_0x5d33dd['attributes']),null!=_0x5d33dd['unlinkedAt']&&_0x5d33dd['hasOwnProperty']('unlinkedAt')&&(object['unlinkedAt']=_0x5d33dd['unlinkedAt']),object;},CommentsThreadDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsThreadDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsThreadDescriptor';},CommentsThreadDescriptor;}()),$root['CommentThreadAddedCommentDescriptor']=(function(){function CommentThreadAddedCommentDescriptor(properties){if(properties){for(var _0x5ba9b3=Object['keys'](properties),_0x173557=0x0;_0x173557<_0x5ba9b3['length'];++_0x173557)null!=properties[_0x5ba9b3[_0x173557]]&&(this[_0x5ba9b3[_0x173557]]=properties[_0x5ba9b3[_0x173557]]);}}return CommentThreadAddedCommentDescriptor['prototype']['commentId']='',CommentThreadAddedCommentDescriptor['prototype']['createdAt']='',CommentThreadAddedCommentDescriptor['create']=function(properties){return new CommentThreadAddedCommentDescriptor(properties);},CommentThreadAddedCommentDescriptor['encode']=function(_0x247099,writer){return writer||(writer=$Writer['create']()),null!=_0x247099['commentId']&&Object['hasOwnProperty']['call'](_0x247099,'commentId')&&writer['uint32'](0xa)['string'](_0x247099['commentId']),null!=_0x247099['createdAt']&&Object['hasOwnProperty']['call'](_0x247099,'createdAt')&&writer['uint32'](0x12)['string'](_0x247099['createdAt']),writer;},CommentThreadAddedCommentDescriptor['encodeDelimited']=function(_0x4683df,writer){return this['encode'](_0x4683df,writer)['ldelim']();},CommentThreadAddedCommentDescriptor['decode']=function(_0x177440,length){_0x177440 instanceof _0x246cb1||(_0x177440=_0x246cb1['create'](_0x177440));for(var _0x3f1430=void 0x0===length?_0x177440['len']:_0x177440['pos']+length,_0x46a271=new $root['CommentThreadAddedCommentDescriptor']();_0x177440['pos']<_0x3f1430;){var tag=_0x177440['uint32']();switch(tag>>>0x3){case 0x1:_0x46a271['commentId']=_0x177440['string']();break;case 0x2:_0x46a271['createdAt']=_0x177440['string']();break;default:_0x177440['skipType'](0x7&tag);}}return _0x46a271;},CommentThreadAddedCommentDescriptor['decodeDelimited']=function(_0x364028){return _0x364028 instanceof _0x246cb1||(_0x364028=new _0x246cb1(_0x364028)),this['decode'](_0x364028,_0x364028['uint32']());},CommentThreadAddedCommentDescriptor['verify']=function(_0x3aa33c){return'object'!=typeof _0x3aa33c||null===_0x3aa33c?'object\x20expected':null!=_0x3aa33c['commentId']&&_0x3aa33c['hasOwnProperty']('commentId')&&!$util['isString'](_0x3aa33c['commentId'])?'commentId:\x20string\x20expected':null!=_0x3aa33c['createdAt']&&_0x3aa33c['hasOwnProperty']('createdAt')&&!$util['isString'](_0x3aa33c['createdAt'])?'createdAt:\x20string\x20expected':null;},CommentThreadAddedCommentDescriptor['fromObject']=function(object){if(object instanceof $root['CommentThreadAddedCommentDescriptor'])return object;var _0x442ec5=new $root['CommentThreadAddedCommentDescriptor']();return null!=object['commentId']&&(_0x442ec5['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0x442ec5['createdAt']=String(object['createdAt'])),_0x442ec5;},CommentThreadAddedCommentDescriptor['toObject']=function(_0xec61dc,options){options||(options={});var object={};return options['defaults']&&(object['commentId']='',object['createdAt']=''),null!=_0xec61dc['commentId']&&_0xec61dc['hasOwnProperty']('commentId')&&(object['commentId']=_0xec61dc['commentId']),null!=_0xec61dc['createdAt']&&_0xec61dc['hasOwnProperty']('createdAt')&&(object['createdAt']=_0xec61dc['createdAt']),object;},CommentThreadAddedCommentDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentThreadAddedCommentDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentThreadAddedCommentDescriptor';},CommentThreadAddedCommentDescriptor;}()),$root['CommentsV2AddCommentMessage']=(function(){function CommentsV2AddCommentMessage(properties){if(properties){for(var _0x3aeffe=Object['keys'](properties),_0x120ba6=0x0;_0x120ba6<_0x3aeffe['length'];++_0x120ba6)null!=properties[_0x3aeffe[_0x120ba6]]&&(this[_0x3aeffe[_0x120ba6]]=properties[_0x3aeffe[_0x120ba6]]);}}return CommentsV2AddCommentMessage['prototype']['commentThreadId']='',CommentsV2AddCommentMessage['prototype']['content']='',CommentsV2AddCommentMessage['prototype']['documentId']='',CommentsV2AddCommentMessage['prototype']['commentId']='',CommentsV2AddCommentMessage['prototype']['createdAt']='',CommentsV2AddCommentMessage['prototype']['userId']='',CommentsV2AddCommentMessage['prototype']['attributes']='',CommentsV2AddCommentMessage['prototype']['commentThread']=null,CommentsV2AddCommentMessage['create']=function(properties){return new CommentsV2AddCommentMessage(properties);},CommentsV2AddCommentMessage['encode']=function(_0x1f6b30,writer){return writer||(writer=$Writer['create']()),null!=_0x1f6b30['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1f6b30,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x1f6b30['commentThreadId']),null!=_0x1f6b30['content']&&Object['hasOwnProperty']['call'](_0x1f6b30,'content')&&writer['uint32'](0x12)['string'](_0x1f6b30['content']),null!=_0x1f6b30['documentId']&&Object['hasOwnProperty']['call'](_0x1f6b30,'documentId')&&writer['uint32'](0x1a)['string'](_0x1f6b30['documentId']),null!=_0x1f6b30['commentId']&&Object['hasOwnProperty']['call'](_0x1f6b30,'commentId')&&writer['uint32'](0x22)['string'](_0x1f6b30['commentId']),null!=_0x1f6b30['createdAt']&&Object['hasOwnProperty']['call'](_0x1f6b30,'createdAt')&&writer['uint32'](0x2a)['string'](_0x1f6b30['createdAt']),null!=_0x1f6b30['userId']&&Object['hasOwnProperty']['call'](_0x1f6b30,'userId')&&writer['uint32'](0x32)['string'](_0x1f6b30['userId']),null!=_0x1f6b30['attributes']&&Object['hasOwnProperty']['call'](_0x1f6b30,'attributes')&&writer['uint32'](0x3a)['string'](_0x1f6b30['attributes']),null!=_0x1f6b30['commentThread']&&Object['hasOwnProperty']['call'](_0x1f6b30,'commentThread')&&$root['CommentsThreadDescriptor']['encode'](_0x1f6b30['commentThread'],writer['uint32'](0x42)['fork']())['ldelim'](),writer;},CommentsV2AddCommentMessage['encodeDelimited']=function(_0x508081,writer){return this['encode'](_0x508081,writer)['ldelim']();},CommentsV2AddCommentMessage['decode']=function(_0xa7c206,length){_0xa7c206 instanceof _0x246cb1||(_0xa7c206=_0x246cb1['create'](_0xa7c206));for(var _0x3b728e=void 0x0===length?_0xa7c206['len']:_0xa7c206['pos']+length,_0x88f32f=new $root['CommentsV2AddCommentMessage']();_0xa7c206['pos']<_0x3b728e;){var tag=_0xa7c206['uint32']();switch(tag>>>0x3){case 0x1:_0x88f32f['commentThreadId']=_0xa7c206['string']();break;case 0x2:_0x88f32f['content']=_0xa7c206['string']();break;case 0x3:_0x88f32f['documentId']=_0xa7c206['string']();break;case 0x4:_0x88f32f['commentId']=_0xa7c206['string']();break;case 0x5:_0x88f32f['createdAt']=_0xa7c206['string']();break;case 0x6:_0x88f32f['userId']=_0xa7c206['string']();break;case 0x7:_0x88f32f['attributes']=_0xa7c206['string']();break;case 0x8:_0x88f32f['commentThread']=$root['CommentsThreadDescriptor']['decode'](_0xa7c206,_0xa7c206['uint32']());break;default:_0xa7c206['skipType'](0x7&tag);}}return _0x88f32f;},CommentsV2AddCommentMessage['decodeDelimited']=function(_0x1ef787){return _0x1ef787 instanceof _0x246cb1||(_0x1ef787=new _0x246cb1(_0x1ef787)),this['decode'](_0x1ef787,_0x1ef787['uint32']());},CommentsV2AddCommentMessage['verify']=function(_0xe76c24){if('object'!=typeof _0xe76c24||null===_0xe76c24)return'object\x20expected';if(null!=_0xe76c24['commentThreadId']&&_0xe76c24['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0xe76c24['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0xe76c24['content']&&_0xe76c24['hasOwnProperty']('content')&&!$util['isString'](_0xe76c24['content']))return'content:\x20string\x20expected';if(null!=_0xe76c24['documentId']&&_0xe76c24['hasOwnProperty']('documentId')&&!$util['isString'](_0xe76c24['documentId']))return'documentId:\x20string\x20expected';if(null!=_0xe76c24['commentId']&&_0xe76c24['hasOwnProperty']('commentId')&&!$util['isString'](_0xe76c24['commentId']))return'commentId:\x20string\x20expected';if(null!=_0xe76c24['createdAt']&&_0xe76c24['hasOwnProperty']('createdAt')&&!$util['isString'](_0xe76c24['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0xe76c24['userId']&&_0xe76c24['hasOwnProperty']('userId')&&!$util['isString'](_0xe76c24['userId']))return'userId:\x20string\x20expected';if(null!=_0xe76c24['attributes']&&_0xe76c24['hasOwnProperty']('attributes')&&!$util['isString'](_0xe76c24['attributes']))return'attributes:\x20string\x20expected';if(null!=_0xe76c24['commentThread']&&_0xe76c24['hasOwnProperty']('commentThread')){var _0x3c2b25=$root['CommentsThreadDescriptor']['verify'](_0xe76c24['commentThread']);if(_0x3c2b25)return'commentThread.'+_0x3c2b25;}return null;},CommentsV2AddCommentMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentMessage'])return object;var _0xf26569=new $root['CommentsV2AddCommentMessage']();if(null!=object['commentThreadId']&&(_0xf26569['commentThreadId']=String(object['commentThreadId'])),null!=object['content']&&(_0xf26569['content']=String(object['content'])),null!=object['documentId']&&(_0xf26569['documentId']=String(object['documentId'])),null!=object['commentId']&&(_0xf26569['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0xf26569['createdAt']=String(object['createdAt'])),null!=object['userId']&&(_0xf26569['userId']=String(object['userId'])),null!=object['attributes']&&(_0xf26569['attributes']=String(object['attributes'])),null!=object['commentThread']){if('object'!=typeof object['commentThread'])throw TypeError('.CommentsV2AddCommentMessage.commentThread:\x20object\x20expected');_0xf26569['commentThread']=$root['CommentsThreadDescriptor']['fromObject'](object['commentThread']);}return _0xf26569;},CommentsV2AddCommentMessage['toObject']=function(_0x54b556,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['content']='',object['documentId']='',object['commentId']='',object['createdAt']='',object['userId']='',object['attributes']='',object['commentThread']=null),null!=_0x54b556['commentThreadId']&&_0x54b556['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x54b556['commentThreadId']),null!=_0x54b556['content']&&_0x54b556['hasOwnProperty']('content')&&(object['content']=_0x54b556['content']),null!=_0x54b556['documentId']&&_0x54b556['hasOwnProperty']('documentId')&&(object['documentId']=_0x54b556['documentId']),null!=_0x54b556['commentId']&&_0x54b556['hasOwnProperty']('commentId')&&(object['commentId']=_0x54b556['commentId']),null!=_0x54b556['createdAt']&&_0x54b556['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x54b556['createdAt']),null!=_0x54b556['userId']&&_0x54b556['hasOwnProperty']('userId')&&(object['userId']=_0x54b556['userId']),null!=_0x54b556['attributes']&&_0x54b556['hasOwnProperty']('attributes')&&(object['attributes']=_0x54b556['attributes']),null!=_0x54b556['commentThread']&&_0x54b556['hasOwnProperty']('commentThread')&&(object['commentThread']=$root['CommentsThreadDescriptor']['toObject'](_0x54b556['commentThread'],options)),object;},CommentsV2AddCommentMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentMessage';},CommentsV2AddCommentMessage;}()),$root['CommentsV2AddCommentThreadMessage']=(function(){function CommentsV2AddCommentThreadMessage(properties){if(this['comments']=[],properties){for(var _0x2c31b4=Object['keys'](properties),_0x25ba5=0x0;_0x25ba5<_0x2c31b4['length'];++_0x25ba5)null!=properties[_0x2c31b4[_0x25ba5]]&&(this[_0x2c31b4[_0x25ba5]]=properties[_0x2c31b4[_0x25ba5]]);}}return CommentsV2AddCommentThreadMessage['prototype']['documentId']='',CommentsV2AddCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2AddCommentThreadMessage['prototype']['context']='',CommentsV2AddCommentThreadMessage['prototype']['createdAt']='',CommentsV2AddCommentThreadMessage['prototype']['resolvedAt']='',CommentsV2AddCommentThreadMessage['prototype']['resolvedBy']='',CommentsV2AddCommentThreadMessage['prototype']['attributes']='',CommentsV2AddCommentThreadMessage['prototype']['deletedAt']='',CommentsV2AddCommentThreadMessage['prototype']['comments']=$util['emptyArray'],CommentsV2AddCommentThreadMessage['create']=function(properties){return new CommentsV2AddCommentThreadMessage(properties);},CommentsV2AddCommentThreadMessage['encode']=function(_0x2324fe,writer){if(writer||(writer=$Writer['create']()),null!=_0x2324fe['documentId']&&Object['hasOwnProperty']['call'](_0x2324fe,'documentId')&&writer['uint32'](0xa)['string'](_0x2324fe['documentId']),null!=_0x2324fe['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2324fe,'commentThreadId')&&writer['uint32'](0x12)['string'](_0x2324fe['commentThreadId']),null!=_0x2324fe['context']&&Object['hasOwnProperty']['call'](_0x2324fe,'context')&&writer['uint32'](0x1a)['string'](_0x2324fe['context']),null!=_0x2324fe['createdAt']&&Object['hasOwnProperty']['call'](_0x2324fe,'createdAt')&&writer['uint32'](0x22)['string'](_0x2324fe['createdAt']),null!=_0x2324fe['resolvedAt']&&Object['hasOwnProperty']['call'](_0x2324fe,'resolvedAt')&&writer['uint32'](0x2a)['string'](_0x2324fe['resolvedAt']),null!=_0x2324fe['resolvedBy']&&Object['hasOwnProperty']['call'](_0x2324fe,'resolvedBy')&&writer['uint32'](0x32)['string'](_0x2324fe['resolvedBy']),null!=_0x2324fe['attributes']&&Object['hasOwnProperty']['call'](_0x2324fe,'attributes')&&writer['uint32'](0x3a)['string'](_0x2324fe['attributes']),null!=_0x2324fe['deletedAt']&&Object['hasOwnProperty']['call'](_0x2324fe,'deletedAt')&&writer['uint32'](0x42)['string'](_0x2324fe['deletedAt']),null!=_0x2324fe['comments']&&_0x2324fe['comments']['length']){for(var _0x2c9b9d=0x0;_0x2c9b9d<_0x2324fe['comments']['length'];++_0x2c9b9d)$root['CommentDescriptor']['encode'](_0x2324fe['comments'][_0x2c9b9d],writer['uint32'](0x4a)['fork']())['ldelim']();}return writer;},CommentsV2AddCommentThreadMessage['encodeDelimited']=function(_0x4e9867,writer){return this['encode'](_0x4e9867,writer)['ldelim']();},CommentsV2AddCommentThreadMessage['decode']=function(_0x4196e0,length){_0x4196e0 instanceof _0x246cb1||(_0x4196e0=_0x246cb1['create'](_0x4196e0));for(var _0x55bef0=void 0x0===length?_0x4196e0['len']:_0x4196e0['pos']+length,_0x3a1891=new $root['CommentsV2AddCommentThreadMessage']();_0x4196e0['pos']<_0x55bef0;){var tag=_0x4196e0['uint32']();switch(tag>>>0x3){case 0x1:_0x3a1891['documentId']=_0x4196e0['string']();break;case 0x2:_0x3a1891['commentThreadId']=_0x4196e0['string']();break;case 0x3:_0x3a1891['context']=_0x4196e0['string']();break;case 0x4:_0x3a1891['createdAt']=_0x4196e0['string']();break;case 0x5:_0x3a1891['resolvedAt']=_0x4196e0['string']();break;case 0x6:_0x3a1891['resolvedBy']=_0x4196e0['string']();break;case 0x7:_0x3a1891['attributes']=_0x4196e0['string']();break;case 0x8:_0x3a1891['deletedAt']=_0x4196e0['string']();break;case 0x9:_0x3a1891['comments']&&_0x3a1891['comments']['length']||(_0x3a1891['comments']=[]),_0x3a1891['comments']['push']($root['CommentDescriptor']['decode'](_0x4196e0,_0x4196e0['uint32']()));break;default:_0x4196e0['skipType'](0x7&tag);}}return _0x3a1891;},CommentsV2AddCommentThreadMessage['decodeDelimited']=function(_0x405f4e){return _0x405f4e instanceof _0x246cb1||(_0x405f4e=new _0x246cb1(_0x405f4e)),this['decode'](_0x405f4e,_0x405f4e['uint32']());},CommentsV2AddCommentThreadMessage['verify']=function(_0x4f0936){if('object'!=typeof _0x4f0936||null===_0x4f0936)return'object\x20expected';if(null!=_0x4f0936['documentId']&&_0x4f0936['hasOwnProperty']('documentId')&&!$util['isString'](_0x4f0936['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x4f0936['commentThreadId']&&_0x4f0936['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x4f0936['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x4f0936['context']&&_0x4f0936['hasOwnProperty']('context')&&!$util['isString'](_0x4f0936['context']))return'context:\x20string\x20expected';if(null!=_0x4f0936['createdAt']&&_0x4f0936['hasOwnProperty']('createdAt')&&!$util['isString'](_0x4f0936['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x4f0936['resolvedAt']&&_0x4f0936['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x4f0936['resolvedAt']))return'resolvedAt:\x20string\x20expected';if(null!=_0x4f0936['resolvedBy']&&_0x4f0936['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x4f0936['resolvedBy']))return'resolvedBy:\x20string\x20expected';if(null!=_0x4f0936['attributes']&&_0x4f0936['hasOwnProperty']('attributes')&&!$util['isString'](_0x4f0936['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x4f0936['deletedAt']&&_0x4f0936['hasOwnProperty']('deletedAt')&&!$util['isString'](_0x4f0936['deletedAt']))return'deletedAt:\x20string\x20expected';if(null!=_0x4f0936['comments']&&_0x4f0936['hasOwnProperty']('comments')){if(!Array['isArray'](_0x4f0936['comments']))return'comments:\x20array\x20expected';for(var _0x57da43=0x0;_0x57da43<_0x4f0936['comments']['length'];++_0x57da43){var _0x176233=$root['CommentDescriptor']['verify'](_0x4f0936['comments'][_0x57da43]);if(_0x176233)return'comments.'+_0x176233;}}return null;},CommentsV2AddCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentThreadMessage'])return object;var _0x471995=new $root['CommentsV2AddCommentThreadMessage']();if(null!=object['documentId']&&(_0x471995['documentId']=String(object['documentId'])),null!=object['commentThreadId']&&(_0x471995['commentThreadId']=String(object['commentThreadId'])),null!=object['context']&&(_0x471995['context']=String(object['context'])),null!=object['createdAt']&&(_0x471995['createdAt']=String(object['createdAt'])),null!=object['resolvedAt']&&(_0x471995['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x471995['resolvedBy']=String(object['resolvedBy'])),null!=object['attributes']&&(_0x471995['attributes']=String(object['attributes'])),null!=object['deletedAt']&&(_0x471995['deletedAt']=String(object['deletedAt'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20array\x20expected');_0x471995['comments']=[];for(var _0x24bee1=0x0;_0x24bee1<object['comments']['length'];++_0x24bee1){if('object'!=typeof object['comments'][_0x24bee1])throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20object\x20expected');_0x471995['comments'][_0x24bee1]=$root['CommentDescriptor']['fromObject'](object['comments'][_0x24bee1]);}}return _0x471995;},CommentsV2AddCommentThreadMessage['toObject']=function(_0x2b060e,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[]),options['defaults']&&(object['documentId']='',object['commentThreadId']='',object['context']='',object['createdAt']='',object['resolvedAt']='',object['resolvedBy']='',object['attributes']='',object['deletedAt']=''),null!=_0x2b060e['documentId']&&_0x2b060e['hasOwnProperty']('documentId')&&(object['documentId']=_0x2b060e['documentId']),null!=_0x2b060e['commentThreadId']&&_0x2b060e['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x2b060e['commentThreadId']),null!=_0x2b060e['context']&&_0x2b060e['hasOwnProperty']('context')&&(object['context']=_0x2b060e['context']),null!=_0x2b060e['createdAt']&&_0x2b060e['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x2b060e['createdAt']),null!=_0x2b060e['resolvedAt']&&_0x2b060e['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x2b060e['resolvedAt']),null!=_0x2b060e['resolvedBy']&&_0x2b060e['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x2b060e['resolvedBy']),null!=_0x2b060e['attributes']&&_0x2b060e['hasOwnProperty']('attributes')&&(object['attributes']=_0x2b060e['attributes']),null!=_0x2b060e['deletedAt']&&_0x2b060e['hasOwnProperty']('deletedAt')&&(object['deletedAt']=_0x2b060e['deletedAt']),_0x2b060e['comments']&&_0x2b060e['comments']['length']){object['comments']=[];for(var _0xf9e377=0x0;_0xf9e377<_0x2b060e['comments']['length'];++_0xf9e377)object['comments'][_0xf9e377]=$root['CommentDescriptor']['toObject'](_0x2b060e['comments'][_0xf9e377],options);}return object;},CommentsV2AddCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentThreadMessage';},CommentsV2AddCommentThreadMessage;}()),$root['CommentsV2ReopenCommentThreadMessage']=(function(){function CommentsV2ReopenCommentThreadMessage(properties){if(properties){for(var _0x3cf5f8=Object['keys'](properties),_0x1f1909=0x0;_0x1f1909<_0x3cf5f8['length'];++_0x1f1909)null!=properties[_0x3cf5f8[_0x1f1909]]&&(this[_0x3cf5f8[_0x1f1909]]=properties[_0x3cf5f8[_0x1f1909]]);}}return CommentsV2ReopenCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2ReopenCommentThreadMessage['prototype']['documentId']='',CommentsV2ReopenCommentThreadMessage['create']=function(properties){return new CommentsV2ReopenCommentThreadMessage(properties);},CommentsV2ReopenCommentThreadMessage['encode']=function(_0x22e0f7,writer){return writer||(writer=$Writer['create']()),null!=_0x22e0f7['commentThreadId']&&Object['hasOwnProperty']['call'](_0x22e0f7,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x22e0f7['commentThreadId']),null!=_0x22e0f7['documentId']&&Object['hasOwnProperty']['call'](_0x22e0f7,'documentId')&&writer['uint32'](0x12)['string'](_0x22e0f7['documentId']),writer;},CommentsV2ReopenCommentThreadMessage['encodeDelimited']=function(_0x257894,writer){return this['encode'](_0x257894,writer)['ldelim']();},CommentsV2ReopenCommentThreadMessage['decode']=function(_0x25fefc,length){_0x25fefc instanceof _0x246cb1||(_0x25fefc=_0x246cb1['create'](_0x25fefc));for(var _0x3457fe=void 0x0===length?_0x25fefc['len']:_0x25fefc['pos']+length,_0x1a93ed=new $root['CommentsV2ReopenCommentThreadMessage']();_0x25fefc['pos']<_0x3457fe;){var tag=_0x25fefc['uint32']();switch(tag>>>0x3){case 0x1:_0x1a93ed['commentThreadId']=_0x25fefc['string']();break;case 0x2:_0x1a93ed['documentId']=_0x25fefc['string']();break;default:_0x25fefc['skipType'](0x7&tag);}}return _0x1a93ed;},CommentsV2ReopenCommentThreadMessage['decodeDelimited']=function(_0x116fc5){return _0x116fc5 instanceof _0x246cb1||(_0x116fc5=new _0x246cb1(_0x116fc5)),this['decode'](_0x116fc5,_0x116fc5['uint32']());},CommentsV2ReopenCommentThreadMessage['verify']=function(_0x1de6e7){return'object'!=typeof _0x1de6e7||null===_0x1de6e7?'object\x20expected':null!=_0x1de6e7['commentThreadId']&&_0x1de6e7['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x1de6e7['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x1de6e7['documentId']&&_0x1de6e7['hasOwnProperty']('documentId')&&!$util['isString'](_0x1de6e7['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2ReopenCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2ReopenCommentThreadMessage'])return object;var _0x2b1dc6=new $root['CommentsV2ReopenCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x2b1dc6['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x2b1dc6['documentId']=String(object['documentId'])),_0x2b1dc6;},CommentsV2ReopenCommentThreadMessage['toObject']=function(_0x231017,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x231017['commentThreadId']&&_0x231017['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x231017['commentThreadId']),null!=_0x231017['documentId']&&_0x231017['hasOwnProperty']('documentId')&&(object['documentId']=_0x231017['documentId']),object;},CommentsV2ReopenCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ReopenCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ReopenCommentThreadMessage';},CommentsV2ReopenCommentThreadMessage;}()),$root['CommentsV2ResolveCommentThreadMessage']=(function(){function CommentsV2ResolveCommentThreadMessage(properties){if(properties){for(var _0x1f7ef6=Object['keys'](properties),_0xab160d=0x0;_0xab160d<_0x1f7ef6['length'];++_0xab160d)null!=properties[_0x1f7ef6[_0xab160d]]&&(this[_0x1f7ef6[_0xab160d]]=properties[_0x1f7ef6[_0xab160d]]);}}return CommentsV2ResolveCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2ResolveCommentThreadMessage['prototype']['documentId']='',CommentsV2ResolveCommentThreadMessage['prototype']['resolvedBy']='',CommentsV2ResolveCommentThreadMessage['prototype']['resolvedAt']='',CommentsV2ResolveCommentThreadMessage['create']=function(properties){return new CommentsV2ResolveCommentThreadMessage(properties);},CommentsV2ResolveCommentThreadMessage['encode']=function(_0x4f5f73,writer){return writer||(writer=$Writer['create']()),null!=_0x4f5f73['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4f5f73,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x4f5f73['commentThreadId']),null!=_0x4f5f73['documentId']&&Object['hasOwnProperty']['call'](_0x4f5f73,'documentId')&&writer['uint32'](0x12)['string'](_0x4f5f73['documentId']),null!=_0x4f5f73['resolvedBy']&&Object['hasOwnProperty']['call'](_0x4f5f73,'resolvedBy')&&writer['uint32'](0x1a)['string'](_0x4f5f73['resolvedBy']),null!=_0x4f5f73['resolvedAt']&&Object['hasOwnProperty']['call'](_0x4f5f73,'resolvedAt')&&writer['uint32'](0x22)['string'](_0x4f5f73['resolvedAt']),writer;},CommentsV2ResolveCommentThreadMessage['encodeDelimited']=function(_0x2f6c53,writer){return this['encode'](_0x2f6c53,writer)['ldelim']();},CommentsV2ResolveCommentThreadMessage['decode']=function(_0xddb3b4,length){_0xddb3b4 instanceof _0x246cb1||(_0xddb3b4=_0x246cb1['create'](_0xddb3b4));for(var _0x445409=void 0x0===length?_0xddb3b4['len']:_0xddb3b4['pos']+length,_0x2ebe8e=new $root['CommentsV2ResolveCommentThreadMessage']();_0xddb3b4['pos']<_0x445409;){var tag=_0xddb3b4['uint32']();switch(tag>>>0x3){case 0x1:_0x2ebe8e['commentThreadId']=_0xddb3b4['string']();break;case 0x2:_0x2ebe8e['documentId']=_0xddb3b4['string']();break;case 0x3:_0x2ebe8e['resolvedBy']=_0xddb3b4['string']();break;case 0x4:_0x2ebe8e['resolvedAt']=_0xddb3b4['string']();break;default:_0xddb3b4['skipType'](0x7&tag);}}return _0x2ebe8e;},CommentsV2ResolveCommentThreadMessage['decodeDelimited']=function(_0x571ddb){return _0x571ddb instanceof _0x246cb1||(_0x571ddb=new _0x246cb1(_0x571ddb)),this['decode'](_0x571ddb,_0x571ddb['uint32']());},CommentsV2ResolveCommentThreadMessage['verify']=function(_0x1247ad){return'object'!=typeof _0x1247ad||null===_0x1247ad?'object\x20expected':null!=_0x1247ad['commentThreadId']&&_0x1247ad['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x1247ad['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x1247ad['documentId']&&_0x1247ad['hasOwnProperty']('documentId')&&!$util['isString'](_0x1247ad['documentId'])?'documentId:\x20string\x20expected':null!=_0x1247ad['resolvedBy']&&_0x1247ad['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x1247ad['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x1247ad['resolvedAt']&&_0x1247ad['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x1247ad['resolvedAt'])?'resolvedAt:\x20string\x20expected':null;},CommentsV2ResolveCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2ResolveCommentThreadMessage'])return object;var _0x3f4b74=new $root['CommentsV2ResolveCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x3f4b74['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x3f4b74['documentId']=String(object['documentId'])),null!=object['resolvedBy']&&(_0x3f4b74['resolvedBy']=String(object['resolvedBy'])),null!=object['resolvedAt']&&(_0x3f4b74['resolvedAt']=String(object['resolvedAt'])),_0x3f4b74;},CommentsV2ResolveCommentThreadMessage['toObject']=function(_0x3dd5ea,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['resolvedBy']='',object['resolvedAt']=''),null!=_0x3dd5ea['commentThreadId']&&_0x3dd5ea['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x3dd5ea['commentThreadId']),null!=_0x3dd5ea['documentId']&&_0x3dd5ea['hasOwnProperty']('documentId')&&(object['documentId']=_0x3dd5ea['documentId']),null!=_0x3dd5ea['resolvedBy']&&_0x3dd5ea['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x3dd5ea['resolvedBy']),null!=_0x3dd5ea['resolvedAt']&&_0x3dd5ea['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x3dd5ea['resolvedAt']),object;},CommentsV2ResolveCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ResolveCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ResolveCommentThreadMessage';},CommentsV2ResolveCommentThreadMessage;}()),$root['CommentsV2UpdateCommentThreadMessage']=(function(){function CommentsV2UpdateCommentThreadMessage(properties){if(properties){for(var _0x28b2b9=Object['keys'](properties),_0x53c083=0x0;_0x53c083<_0x28b2b9['length'];++_0x53c083)null!=properties[_0x28b2b9[_0x53c083]]&&(this[_0x28b2b9[_0x53c083]]=properties[_0x28b2b9[_0x53c083]]);}}return CommentsV2UpdateCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2UpdateCommentThreadMessage['prototype']['documentId']='',CommentsV2UpdateCommentThreadMessage['prototype']['context']='',CommentsV2UpdateCommentThreadMessage['prototype']['attributes']='',CommentsV2UpdateCommentThreadMessage['prototype']['unlinkedAt']='',CommentsV2UpdateCommentThreadMessage['create']=function(properties){return new CommentsV2UpdateCommentThreadMessage(properties);},CommentsV2UpdateCommentThreadMessage['encode']=function(_0x127233,writer){return writer||(writer=$Writer['create']()),null!=_0x127233['commentThreadId']&&Object['hasOwnProperty']['call'](_0x127233,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x127233['commentThreadId']),null!=_0x127233['documentId']&&Object['hasOwnProperty']['call'](_0x127233,'documentId')&&writer['uint32'](0x12)['string'](_0x127233['documentId']),null!=_0x127233['context']&&Object['hasOwnProperty']['call'](_0x127233,'context')&&writer['uint32'](0x1a)['string'](_0x127233['context']),null!=_0x127233['attributes']&&Object['hasOwnProperty']['call'](_0x127233,'attributes')&&writer['uint32'](0x22)['string'](_0x127233['attributes']),null!=_0x127233['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x127233,'unlinkedAt')&&writer['uint32'](0x2a)['string'](_0x127233['unlinkedAt']),writer;},CommentsV2UpdateCommentThreadMessage['encodeDelimited']=function(_0x39e32f,writer){return this['encode'](_0x39e32f,writer)['ldelim']();},CommentsV2UpdateCommentThreadMessage['decode']=function(_0x2c49d4,length){_0x2c49d4 instanceof _0x246cb1||(_0x2c49d4=_0x246cb1['create'](_0x2c49d4));for(var _0x3cbdb7=void 0x0===length?_0x2c49d4['len']:_0x2c49d4['pos']+length,_0x4f45bd=new $root['CommentsV2UpdateCommentThreadMessage']();_0x2c49d4['pos']<_0x3cbdb7;){var tag=_0x2c49d4['uint32']();switch(tag>>>0x3){case 0x1:_0x4f45bd['commentThreadId']=_0x2c49d4['string']();break;case 0x2:_0x4f45bd['documentId']=_0x2c49d4['string']();break;case 0x3:_0x4f45bd['context']=_0x2c49d4['string']();break;case 0x4:_0x4f45bd['attributes']=_0x2c49d4['string']();break;case 0x5:_0x4f45bd['unlinkedAt']=_0x2c49d4['string']();break;default:_0x2c49d4['skipType'](0x7&tag);}}return _0x4f45bd;},CommentsV2UpdateCommentThreadMessage['decodeDelimited']=function(_0x46cff6){return _0x46cff6 instanceof _0x246cb1||(_0x46cff6=new _0x246cb1(_0x46cff6)),this['decode'](_0x46cff6,_0x46cff6['uint32']());},CommentsV2UpdateCommentThreadMessage['verify']=function(_0x1f3368){return'object'!=typeof _0x1f3368||null===_0x1f3368?'object\x20expected':null!=_0x1f3368['commentThreadId']&&_0x1f3368['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x1f3368['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x1f3368['documentId']&&_0x1f3368['hasOwnProperty']('documentId')&&!$util['isString'](_0x1f3368['documentId'])?'documentId:\x20string\x20expected':null!=_0x1f3368['context']&&_0x1f3368['hasOwnProperty']('context')&&!$util['isString'](_0x1f3368['context'])?'context:\x20string\x20expected':null!=_0x1f3368['attributes']&&_0x1f3368['hasOwnProperty']('attributes')&&!$util['isString'](_0x1f3368['attributes'])?'attributes:\x20string\x20expected':null!=_0x1f3368['unlinkedAt']&&_0x1f3368['hasOwnProperty']('unlinkedAt')&&!$util['isString'](_0x1f3368['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsV2UpdateCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2UpdateCommentThreadMessage'])return object;var _0x34b621=new $root['CommentsV2UpdateCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x34b621['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x34b621['documentId']=String(object['documentId'])),null!=object['context']&&(_0x34b621['context']=String(object['context'])),null!=object['attributes']&&(_0x34b621['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x34b621['unlinkedAt']=String(object['unlinkedAt'])),_0x34b621;},CommentsV2UpdateCommentThreadMessage['toObject']=function(_0x3c22d8,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['context']='',object['attributes']='',object['unlinkedAt']=''),null!=_0x3c22d8['commentThreadId']&&_0x3c22d8['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x3c22d8['commentThreadId']),null!=_0x3c22d8['documentId']&&_0x3c22d8['hasOwnProperty']('documentId')&&(object['documentId']=_0x3c22d8['documentId']),null!=_0x3c22d8['context']&&_0x3c22d8['hasOwnProperty']('context')&&(object['context']=_0x3c22d8['context']),null!=_0x3c22d8['attributes']&&_0x3c22d8['hasOwnProperty']('attributes')&&(object['attributes']=_0x3c22d8['attributes']),null!=_0x3c22d8['unlinkedAt']&&_0x3c22d8['hasOwnProperty']('unlinkedAt')&&(object['unlinkedAt']=_0x3c22d8['unlinkedAt']),object;},CommentsV2UpdateCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2UpdateCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2UpdateCommentThreadMessage';},CommentsV2UpdateCommentThreadMessage;}()),$root['CommentsV2ConnectMessage']=(function(){function CommentsV2ConnectMessage(properties){if(properties){for(var _0x4e6a75=Object['keys'](properties),_0x5994a9=0x0;_0x5994a9<_0x4e6a75['length'];++_0x5994a9)null!=properties[_0x4e6a75[_0x5994a9]]&&(this[_0x4e6a75[_0x5994a9]]=properties[_0x4e6a75[_0x5994a9]]);}}return CommentsV2ConnectMessage['prototype']['documentId']='',CommentsV2ConnectMessage['create']=function(properties){return new CommentsV2ConnectMessage(properties);},CommentsV2ConnectMessage['encode']=function(_0x222d80,writer){return writer||(writer=$Writer['create']()),null!=_0x222d80['documentId']&&Object['hasOwnProperty']['call'](_0x222d80,'documentId')&&writer['uint32'](0xa)['string'](_0x222d80['documentId']),writer;},CommentsV2ConnectMessage['encodeDelimited']=function(_0x458861,writer){return this['encode'](_0x458861,writer)['ldelim']();},CommentsV2ConnectMessage['decode']=function(_0x2ed17f,length){_0x2ed17f instanceof _0x246cb1||(_0x2ed17f=_0x246cb1['create'](_0x2ed17f));for(var _0x257358=void 0x0===length?_0x2ed17f['len']:_0x2ed17f['pos']+length,_0x25449a=new $root['CommentsV2ConnectMessage']();_0x2ed17f['pos']<_0x257358;){var tag=_0x2ed17f['uint32']();if(tag>>>0x3==0x1)_0x25449a['documentId']=_0x2ed17f['string']();else _0x2ed17f['skipType'](0x7&tag);}return _0x25449a;},CommentsV2ConnectMessage['decodeDelimited']=function(_0xf5f04a){return _0xf5f04a instanceof _0x246cb1||(_0xf5f04a=new _0x246cb1(_0xf5f04a)),this['decode'](_0xf5f04a,_0xf5f04a['uint32']());},CommentsV2ConnectMessage['verify']=function(_0xae7db8){return'object'!=typeof _0xae7db8||null===_0xae7db8?'object\x20expected':null!=_0xae7db8['documentId']&&_0xae7db8['hasOwnProperty']('documentId')&&!$util['isString'](_0xae7db8['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2ConnectMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2ConnectMessage'])return object;var _0x341c94=new $root['CommentsV2ConnectMessage']();return null!=object['documentId']&&(_0x341c94['documentId']=String(object['documentId'])),_0x341c94;},CommentsV2ConnectMessage['toObject']=function(_0xe570f2,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0xe570f2['documentId']&&_0xe570f2['hasOwnProperty']('documentId')&&(object['documentId']=_0xe570f2['documentId']),object;},CommentsV2ConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ConnectMessage';},CommentsV2ConnectMessage;}()),$root['CommentsV2GetCommentThreadMessage']=(function(){function CommentsV2GetCommentThreadMessage(properties){if(properties){for(var _0x36542e=Object['keys'](properties),_0x174251=0x0;_0x174251<_0x36542e['length'];++_0x174251)null!=properties[_0x36542e[_0x174251]]&&(this[_0x36542e[_0x174251]]=properties[_0x36542e[_0x174251]]);}}return CommentsV2GetCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2GetCommentThreadMessage['prototype']['documentId']='',CommentsV2GetCommentThreadMessage['create']=function(properties){return new CommentsV2GetCommentThreadMessage(properties);},CommentsV2GetCommentThreadMessage['encode']=function(_0x542602,writer){return writer||(writer=$Writer['create']()),null!=_0x542602['commentThreadId']&&Object['hasOwnProperty']['call'](_0x542602,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x542602['commentThreadId']),null!=_0x542602['documentId']&&Object['hasOwnProperty']['call'](_0x542602,'documentId')&&writer['uint32'](0x12)['string'](_0x542602['documentId']),writer;},CommentsV2GetCommentThreadMessage['encodeDelimited']=function(_0x4bc207,writer){return this['encode'](_0x4bc207,writer)['ldelim']();},CommentsV2GetCommentThreadMessage['decode']=function(_0x43265d,length){_0x43265d instanceof _0x246cb1||(_0x43265d=_0x246cb1['create'](_0x43265d));for(var _0x229d27=void 0x0===length?_0x43265d['len']:_0x43265d['pos']+length,_0x388cc6=new $root['CommentsV2GetCommentThreadMessage']();_0x43265d['pos']<_0x229d27;){var tag=_0x43265d['uint32']();switch(tag>>>0x3){case 0x1:_0x388cc6['commentThreadId']=_0x43265d['string']();break;case 0x2:_0x388cc6['documentId']=_0x43265d['string']();break;default:_0x43265d['skipType'](0x7&tag);}}return _0x388cc6;},CommentsV2GetCommentThreadMessage['decodeDelimited']=function(_0x5bf434){return _0x5bf434 instanceof _0x246cb1||(_0x5bf434=new _0x246cb1(_0x5bf434)),this['decode'](_0x5bf434,_0x5bf434['uint32']());},CommentsV2GetCommentThreadMessage['verify']=function(_0x1719ee){return'object'!=typeof _0x1719ee||null===_0x1719ee?'object\x20expected':null!=_0x1719ee['commentThreadId']&&_0x1719ee['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x1719ee['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x1719ee['documentId']&&_0x1719ee['hasOwnProperty']('documentId')&&!$util['isString'](_0x1719ee['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2GetCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2GetCommentThreadMessage'])return object;var _0x2654d0=new $root['CommentsV2GetCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x2654d0['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x2654d0['documentId']=String(object['documentId'])),_0x2654d0;},CommentsV2GetCommentThreadMessage['toObject']=function(_0x4bf312,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x4bf312['commentThreadId']&&_0x4bf312['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x4bf312['commentThreadId']),null!=_0x4bf312['documentId']&&_0x4bf312['hasOwnProperty']('documentId')&&(object['documentId']=_0x4bf312['documentId']),object;},CommentsV2GetCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetCommentThreadMessage';},CommentsV2GetCommentThreadMessage;}()),$root['CommentsV2GetDocumentThreadsMessage']=(function(){function CommentsV2GetDocumentThreadsMessage(properties){if(properties){for(var _0x28e19f=Object['keys'](properties),_0x25fd62=0x0;_0x25fd62<_0x28e19f['length'];++_0x25fd62)null!=properties[_0x28e19f[_0x25fd62]]&&(this[_0x28e19f[_0x25fd62]]=properties[_0x28e19f[_0x25fd62]]);}}return CommentsV2GetDocumentThreadsMessage['prototype']['documentId']='',CommentsV2GetDocumentThreadsMessage['create']=function(properties){return new CommentsV2GetDocumentThreadsMessage(properties);},CommentsV2GetDocumentThreadsMessage['encode']=function(_0x54a784,writer){return writer||(writer=$Writer['create']()),null!=_0x54a784['documentId']&&Object['hasOwnProperty']['call'](_0x54a784,'documentId')&&writer['uint32'](0xa)['string'](_0x54a784['documentId']),writer;},CommentsV2GetDocumentThreadsMessage['encodeDelimited']=function(_0x3918ac,writer){return this['encode'](_0x3918ac,writer)['ldelim']();},CommentsV2GetDocumentThreadsMessage['decode']=function(_0x30a6bd,length){_0x30a6bd instanceof _0x246cb1||(_0x30a6bd=_0x246cb1['create'](_0x30a6bd));for(var _0x1df15a=void 0x0===length?_0x30a6bd['len']:_0x30a6bd['pos']+length,_0x17d25c=new $root['CommentsV2GetDocumentThreadsMessage']();_0x30a6bd['pos']<_0x1df15a;){var tag=_0x30a6bd['uint32']();if(tag>>>0x3==0x1)_0x17d25c['documentId']=_0x30a6bd['string']();else _0x30a6bd['skipType'](0x7&tag);}return _0x17d25c;},CommentsV2GetDocumentThreadsMessage['decodeDelimited']=function(_0x30f07b){return _0x30f07b instanceof _0x246cb1||(_0x30f07b=new _0x246cb1(_0x30f07b)),this['decode'](_0x30f07b,_0x30f07b['uint32']());},CommentsV2GetDocumentThreadsMessage['verify']=function(_0x21da52){return'object'!=typeof _0x21da52||null===_0x21da52?'object\x20expected':null!=_0x21da52['documentId']&&_0x21da52['hasOwnProperty']('documentId')&&!$util['isString'](_0x21da52['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2GetDocumentThreadsMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2GetDocumentThreadsMessage'])return object;var _0x50aa95=new $root['CommentsV2GetDocumentThreadsMessage']();return null!=object['documentId']&&(_0x50aa95['documentId']=String(object['documentId'])),_0x50aa95;},CommentsV2GetDocumentThreadsMessage['toObject']=function(_0x24bb17,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x24bb17['documentId']&&_0x24bb17['hasOwnProperty']('documentId')&&(object['documentId']=_0x24bb17['documentId']),object;},CommentsV2GetDocumentThreadsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetDocumentThreadsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetDocumentThreadsMessage';},CommentsV2GetDocumentThreadsMessage;}()),$root['CommentsV2RemoveCommentMessage']=(function(){function CommentsV2RemoveCommentMessage(properties){if(properties){for(var _0x5df143=Object['keys'](properties),_0x297c89=0x0;_0x297c89<_0x5df143['length'];++_0x297c89)null!=properties[_0x5df143[_0x297c89]]&&(this[_0x5df143[_0x297c89]]=properties[_0x5df143[_0x297c89]]);}}return CommentsV2RemoveCommentMessage['prototype']['commentThreadId']='',CommentsV2RemoveCommentMessage['prototype']['commentId']='',CommentsV2RemoveCommentMessage['prototype']['documentId']='',CommentsV2RemoveCommentMessage['create']=function(properties){return new CommentsV2RemoveCommentMessage(properties);},CommentsV2RemoveCommentMessage['encode']=function(_0x4fb279,writer){return writer||(writer=$Writer['create']()),null!=_0x4fb279['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4fb279,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x4fb279['commentThreadId']),null!=_0x4fb279['commentId']&&Object['hasOwnProperty']['call'](_0x4fb279,'commentId')&&writer['uint32'](0x12)['string'](_0x4fb279['commentId']),null!=_0x4fb279['documentId']&&Object['hasOwnProperty']['call'](_0x4fb279,'documentId')&&writer['uint32'](0x1a)['string'](_0x4fb279['documentId']),writer;},CommentsV2RemoveCommentMessage['encodeDelimited']=function(_0x593ed7,writer){return this['encode'](_0x593ed7,writer)['ldelim']();},CommentsV2RemoveCommentMessage['decode']=function(_0x296763,length){_0x296763 instanceof _0x246cb1||(_0x296763=_0x246cb1['create'](_0x296763));for(var _0x39f312=void 0x0===length?_0x296763['len']:_0x296763['pos']+length,_0x11a580=new $root['CommentsV2RemoveCommentMessage']();_0x296763['pos']<_0x39f312;){var tag=_0x296763['uint32']();switch(tag>>>0x3){case 0x1:_0x11a580['commentThreadId']=_0x296763['string']();break;case 0x2:_0x11a580['commentId']=_0x296763['string']();break;case 0x3:_0x11a580['documentId']=_0x296763['string']();break;default:_0x296763['skipType'](0x7&tag);}}return _0x11a580;},CommentsV2RemoveCommentMessage['decodeDelimited']=function(_0x30c212){return _0x30c212 instanceof _0x246cb1||(_0x30c212=new _0x246cb1(_0x30c212)),this['decode'](_0x30c212,_0x30c212['uint32']());},CommentsV2RemoveCommentMessage['verify']=function(_0x392a50){return'object'!=typeof _0x392a50||null===_0x392a50?'object\x20expected':null!=_0x392a50['commentThreadId']&&_0x392a50['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x392a50['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x392a50['commentId']&&_0x392a50['hasOwnProperty']('commentId')&&!$util['isString'](_0x392a50['commentId'])?'commentId:\x20string\x20expected':null!=_0x392a50['documentId']&&_0x392a50['hasOwnProperty']('documentId')&&!$util['isString'](_0x392a50['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2RemoveCommentMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2RemoveCommentMessage'])return object;var _0x51c56a=new $root['CommentsV2RemoveCommentMessage']();return null!=object['commentThreadId']&&(_0x51c56a['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x51c56a['commentId']=String(object['commentId'])),null!=object['documentId']&&(_0x51c56a['documentId']=String(object['documentId'])),_0x51c56a;},CommentsV2RemoveCommentMessage['toObject']=function(_0x360d27,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['documentId']=''),null!=_0x360d27['commentThreadId']&&_0x360d27['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x360d27['commentThreadId']),null!=_0x360d27['commentId']&&_0x360d27['hasOwnProperty']('commentId')&&(object['commentId']=_0x360d27['commentId']),null!=_0x360d27['documentId']&&_0x360d27['hasOwnProperty']('documentId')&&(object['documentId']=_0x360d27['documentId']),object;},CommentsV2RemoveCommentMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2RemoveCommentMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2RemoveCommentMessage';},CommentsV2RemoveCommentMessage;}()),$root['CommentsV2RemoveCommentThreadMessage']=(function(){function CommentsV2RemoveCommentThreadMessage(properties){if(properties){for(var _0x266238=Object['keys'](properties),_0x48358d=0x0;_0x48358d<_0x266238['length'];++_0x48358d)null!=properties[_0x266238[_0x48358d]]&&(this[_0x266238[_0x48358d]]=properties[_0x266238[_0x48358d]]);}}return CommentsV2RemoveCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2RemoveCommentThreadMessage['prototype']['documentId']='',CommentsV2RemoveCommentThreadMessage['create']=function(properties){return new CommentsV2RemoveCommentThreadMessage(properties);},CommentsV2RemoveCommentThreadMessage['encode']=function(_0x41ceb6,writer){return writer||(writer=$Writer['create']()),null!=_0x41ceb6['commentThreadId']&&Object['hasOwnProperty']['call'](_0x41ceb6,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x41ceb6['commentThreadId']),null!=_0x41ceb6['documentId']&&Object['hasOwnProperty']['call'](_0x41ceb6,'documentId')&&writer['uint32'](0x12)['string'](_0x41ceb6['documentId']),writer;},CommentsV2RemoveCommentThreadMessage['encodeDelimited']=function(_0x3ca98a,writer){return this['encode'](_0x3ca98a,writer)['ldelim']();},CommentsV2RemoveCommentThreadMessage['decode']=function(_0x2b8771,length){_0x2b8771 instanceof _0x246cb1||(_0x2b8771=_0x246cb1['create'](_0x2b8771));for(var _0x29d8d0=void 0x0===length?_0x2b8771['len']:_0x2b8771['pos']+length,_0x4c15ce=new $root['CommentsV2RemoveCommentThreadMessage']();_0x2b8771['pos']<_0x29d8d0;){var tag=_0x2b8771['uint32']();switch(tag>>>0x3){case 0x1:_0x4c15ce['commentThreadId']=_0x2b8771['string']();break;case 0x2:_0x4c15ce['documentId']=_0x2b8771['string']();break;default:_0x2b8771['skipType'](0x7&tag);}}return _0x4c15ce;},CommentsV2RemoveCommentThreadMessage['decodeDelimited']=function(_0x4e8068){return _0x4e8068 instanceof _0x246cb1||(_0x4e8068=new _0x246cb1(_0x4e8068)),this['decode'](_0x4e8068,_0x4e8068['uint32']());},CommentsV2RemoveCommentThreadMessage['verify']=function(_0x32bade){return'object'!=typeof _0x32bade||null===_0x32bade?'object\x20expected':null!=_0x32bade['commentThreadId']&&_0x32bade['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x32bade['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x32bade['documentId']&&_0x32bade['hasOwnProperty']('documentId')&&!$util['isString'](_0x32bade['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2RemoveCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2RemoveCommentThreadMessage'])return object;var _0x36bc66=new $root['CommentsV2RemoveCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x36bc66['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x36bc66['documentId']=String(object['documentId'])),_0x36bc66;},CommentsV2RemoveCommentThreadMessage['toObject']=function(_0x238409,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x238409['commentThreadId']&&_0x238409['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x238409['commentThreadId']),null!=_0x238409['documentId']&&_0x238409['hasOwnProperty']('documentId')&&(object['documentId']=_0x238409['documentId']),object;},CommentsV2RemoveCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2RemoveCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2RemoveCommentThreadMessage';},CommentsV2RemoveCommentThreadMessage;}()),$root['CommentsV2UpdateCommentMessage']=(function(){function CommentsV2UpdateCommentMessage(properties){if(properties){for(var _0xfc9517=Object['keys'](properties),_0x324795=0x0;_0x324795<_0xfc9517['length'];++_0x324795)null!=properties[_0xfc9517[_0x324795]]&&(this[_0xfc9517[_0x324795]]=properties[_0xfc9517[_0x324795]]);}}return CommentsV2UpdateCommentMessage['prototype']['commentThreadId']='',CommentsV2UpdateCommentMessage['prototype']['commentId']='',CommentsV2UpdateCommentMessage['prototype']['content']='',CommentsV2UpdateCommentMessage['prototype']['documentId']='',CommentsV2UpdateCommentMessage['prototype']['attributes']='',CommentsV2UpdateCommentMessage['prototype']['isAttributesUpdated']=!0x1,CommentsV2UpdateCommentMessage['prototype']['commentThread']=null,CommentsV2UpdateCommentMessage['create']=function(properties){return new CommentsV2UpdateCommentMessage(properties);},CommentsV2UpdateCommentMessage['encode']=function(_0x4dece8,writer){return writer||(writer=$Writer['create']()),null!=_0x4dece8['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4dece8,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x4dece8['commentThreadId']),null!=_0x4dece8['commentId']&&Object['hasOwnProperty']['call'](_0x4dece8,'commentId')&&writer['uint32'](0x12)['string'](_0x4dece8['commentId']),null!=_0x4dece8['content']&&Object['hasOwnProperty']['call'](_0x4dece8,'content')&&writer['uint32'](0x1a)['string'](_0x4dece8['content']),null!=_0x4dece8['documentId']&&Object['hasOwnProperty']['call'](_0x4dece8,'documentId')&&writer['uint32'](0x22)['string'](_0x4dece8['documentId']),null!=_0x4dece8['attributes']&&Object['hasOwnProperty']['call'](_0x4dece8,'attributes')&&writer['uint32'](0x2a)['string'](_0x4dece8['attributes']),null!=_0x4dece8['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x4dece8,'isAttributesUpdated')&&writer['uint32'](0x30)['bool'](_0x4dece8['isAttributesUpdated']),null!=_0x4dece8['commentThread']&&Object['hasOwnProperty']['call'](_0x4dece8,'commentThread')&&$root['CommentsThreadDescriptor']['encode'](_0x4dece8['commentThread'],writer['uint32'](0x3a)['fork']())['ldelim'](),writer;},CommentsV2UpdateCommentMessage['encodeDelimited']=function(_0x5aa040,writer){return this['encode'](_0x5aa040,writer)['ldelim']();},CommentsV2UpdateCommentMessage['decode']=function(_0x1b7d2a,length){_0x1b7d2a instanceof _0x246cb1||(_0x1b7d2a=_0x246cb1['create'](_0x1b7d2a));for(var _0x1d6fbe=void 0x0===length?_0x1b7d2a['len']:_0x1b7d2a['pos']+length,_0x2d01bc=new $root['CommentsV2UpdateCommentMessage']();_0x1b7d2a['pos']<_0x1d6fbe;){var tag=_0x1b7d2a['uint32']();switch(tag>>>0x3){case 0x1:_0x2d01bc['commentThreadId']=_0x1b7d2a['string']();break;case 0x2:_0x2d01bc['commentId']=_0x1b7d2a['string']();break;case 0x3:_0x2d01bc['content']=_0x1b7d2a['string']();break;case 0x4:_0x2d01bc['documentId']=_0x1b7d2a['string']();break;case 0x5:_0x2d01bc['attributes']=_0x1b7d2a['string']();break;case 0x6:_0x2d01bc['isAttributesUpdated']=_0x1b7d2a['bool']();break;case 0x7:_0x2d01bc['commentThread']=$root['CommentsThreadDescriptor']['decode'](_0x1b7d2a,_0x1b7d2a['uint32']());break;default:_0x1b7d2a['skipType'](0x7&tag);}}return _0x2d01bc;},CommentsV2UpdateCommentMessage['decodeDelimited']=function(_0x455e28){return _0x455e28 instanceof _0x246cb1||(_0x455e28=new _0x246cb1(_0x455e28)),this['decode'](_0x455e28,_0x455e28['uint32']());},CommentsV2UpdateCommentMessage['verify']=function(_0x57ef9a){if('object'!=typeof _0x57ef9a||null===_0x57ef9a)return'object\x20expected';if(null!=_0x57ef9a['commentThreadId']&&_0x57ef9a['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x57ef9a['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x57ef9a['commentId']&&_0x57ef9a['hasOwnProperty']('commentId')&&!$util['isString'](_0x57ef9a['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x57ef9a['content']&&_0x57ef9a['hasOwnProperty']('content')&&!$util['isString'](_0x57ef9a['content']))return'content:\x20string\x20expected';if(null!=_0x57ef9a['documentId']&&_0x57ef9a['hasOwnProperty']('documentId')&&!$util['isString'](_0x57ef9a['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x57ef9a['attributes']&&_0x57ef9a['hasOwnProperty']('attributes')&&!$util['isString'](_0x57ef9a['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x57ef9a['isAttributesUpdated']&&_0x57ef9a['hasOwnProperty']('isAttributesUpdated')&&'boolean'!=typeof _0x57ef9a['isAttributesUpdated'])return'isAttributesUpdated:\x20boolean\x20expected';if(null!=_0x57ef9a['commentThread']&&_0x57ef9a['hasOwnProperty']('commentThread')){var _0x398543=$root['CommentsThreadDescriptor']['verify'](_0x57ef9a['commentThread']);if(_0x398543)return'commentThread.'+_0x398543;}return null;},CommentsV2UpdateCommentMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2UpdateCommentMessage'])return object;var _0x5435e2=new $root['CommentsV2UpdateCommentMessage']();if(null!=object['commentThreadId']&&(_0x5435e2['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x5435e2['commentId']=String(object['commentId'])),null!=object['content']&&(_0x5435e2['content']=String(object['content'])),null!=object['documentId']&&(_0x5435e2['documentId']=String(object['documentId'])),null!=object['attributes']&&(_0x5435e2['attributes']=String(object['attributes'])),null!=object['isAttributesUpdated']&&(_0x5435e2['isAttributesUpdated']=Boolean(object['isAttributesUpdated'])),null!=object['commentThread']){if('object'!=typeof object['commentThread'])throw TypeError('.CommentsV2UpdateCommentMessage.commentThread:\x20object\x20expected');_0x5435e2['commentThread']=$root['CommentsThreadDescriptor']['fromObject'](object['commentThread']);}return _0x5435e2;},CommentsV2UpdateCommentMessage['toObject']=function(_0x56c33b,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['content']='',object['documentId']='',object['attributes']='',object['isAttributesUpdated']=!0x1,object['commentThread']=null),null!=_0x56c33b['commentThreadId']&&_0x56c33b['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x56c33b['commentThreadId']),null!=_0x56c33b['commentId']&&_0x56c33b['hasOwnProperty']('commentId')&&(object['commentId']=_0x56c33b['commentId']),null!=_0x56c33b['content']&&_0x56c33b['hasOwnProperty']('content')&&(object['content']=_0x56c33b['content']),null!=_0x56c33b['documentId']&&_0x56c33b['hasOwnProperty']('documentId')&&(object['documentId']=_0x56c33b['documentId']),null!=_0x56c33b['attributes']&&_0x56c33b['hasOwnProperty']('attributes')&&(object['attributes']=_0x56c33b['attributes']),null!=_0x56c33b['isAttributesUpdated']&&_0x56c33b['hasOwnProperty']('isAttributesUpdated')&&(object['isAttributesUpdated']=_0x56c33b['isAttributesUpdated']),null!=_0x56c33b['commentThread']&&_0x56c33b['hasOwnProperty']('commentThread')&&(object['commentThread']=$root['CommentsThreadDescriptor']['toObject'](_0x56c33b['commentThread'],options)),object;},CommentsV2UpdateCommentMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2UpdateCommentMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2UpdateCommentMessage';},CommentsV2UpdateCommentMessage;}()),$root['CommentsV2AddCommentResponse']=(function(){function CommentsV2AddCommentResponse(properties){if(properties){for(var _0x4a9bf4=Object['keys'](properties),_0x26a198=0x0;_0x26a198<_0x4a9bf4['length'];++_0x26a198)null!=properties[_0x4a9bf4[_0x26a198]]&&(this[_0x4a9bf4[_0x26a198]]=properties[_0x4a9bf4[_0x26a198]]);}}return CommentsV2AddCommentResponse['prototype']['commentThreadId']='',CommentsV2AddCommentResponse['prototype']['commentId']='',CommentsV2AddCommentResponse['prototype']['createdAt']='',CommentsV2AddCommentResponse['create']=function(properties){return new CommentsV2AddCommentResponse(properties);},CommentsV2AddCommentResponse['encode']=function(_0x19e39d,writer){return writer||(writer=$Writer['create']()),null!=_0x19e39d['commentThreadId']&&Object['hasOwnProperty']['call'](_0x19e39d,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x19e39d['commentThreadId']),null!=_0x19e39d['commentId']&&Object['hasOwnProperty']['call'](_0x19e39d,'commentId')&&writer['uint32'](0x12)['string'](_0x19e39d['commentId']),null!=_0x19e39d['createdAt']&&Object['hasOwnProperty']['call'](_0x19e39d,'createdAt')&&writer['uint32'](0x1a)['string'](_0x19e39d['createdAt']),writer;},CommentsV2AddCommentResponse['encodeDelimited']=function(_0x42f072,writer){return this['encode'](_0x42f072,writer)['ldelim']();},CommentsV2AddCommentResponse['decode']=function(_0x1a3ac2,length){_0x1a3ac2 instanceof _0x246cb1||(_0x1a3ac2=_0x246cb1['create'](_0x1a3ac2));for(var _0x5349dd=void 0x0===length?_0x1a3ac2['len']:_0x1a3ac2['pos']+length,_0x4cc0f9=new $root['CommentsV2AddCommentResponse']();_0x1a3ac2['pos']<_0x5349dd;){var tag=_0x1a3ac2['uint32']();switch(tag>>>0x3){case 0x1:_0x4cc0f9['commentThreadId']=_0x1a3ac2['string']();break;case 0x2:_0x4cc0f9['commentId']=_0x1a3ac2['string']();break;case 0x3:_0x4cc0f9['createdAt']=_0x1a3ac2['string']();break;default:_0x1a3ac2['skipType'](0x7&tag);}}return _0x4cc0f9;},CommentsV2AddCommentResponse['decodeDelimited']=function(_0x2a294e){return _0x2a294e instanceof _0x246cb1||(_0x2a294e=new _0x246cb1(_0x2a294e)),this['decode'](_0x2a294e,_0x2a294e['uint32']());},CommentsV2AddCommentResponse['verify']=function(_0x518cf1){return'object'!=typeof _0x518cf1||null===_0x518cf1?'object\x20expected':null!=_0x518cf1['commentThreadId']&&_0x518cf1['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x518cf1['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x518cf1['commentId']&&_0x518cf1['hasOwnProperty']('commentId')&&!$util['isString'](_0x518cf1['commentId'])?'commentId:\x20string\x20expected':null!=_0x518cf1['createdAt']&&_0x518cf1['hasOwnProperty']('createdAt')&&!$util['isString'](_0x518cf1['createdAt'])?'createdAt:\x20string\x20expected':null;},CommentsV2AddCommentResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentResponse'])return object;var _0x3d4203=new $root['CommentsV2AddCommentResponse']();return null!=object['commentThreadId']&&(_0x3d4203['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x3d4203['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0x3d4203['createdAt']=String(object['createdAt'])),_0x3d4203;},CommentsV2AddCommentResponse['toObject']=function(_0x40850b,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['createdAt']=''),null!=_0x40850b['commentThreadId']&&_0x40850b['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x40850b['commentThreadId']),null!=_0x40850b['commentId']&&_0x40850b['hasOwnProperty']('commentId')&&(object['commentId']=_0x40850b['commentId']),null!=_0x40850b['createdAt']&&_0x40850b['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x40850b['createdAt']),object;},CommentsV2AddCommentResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentResponse';},CommentsV2AddCommentResponse;}()),$root['CommentsV2AddCommentThreadResponse']=(function(){function CommentsV2AddCommentThreadResponse(properties){if(this['comments']=[],properties){for(var _0x11e487=Object['keys'](properties),_0x1148e6=0x0;_0x1148e6<_0x11e487['length'];++_0x1148e6)null!=properties[_0x11e487[_0x1148e6]]&&(this[_0x11e487[_0x1148e6]]=properties[_0x11e487[_0x1148e6]]);}}return CommentsV2AddCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2AddCommentThreadResponse['prototype']['createdAt']='',CommentsV2AddCommentThreadResponse['prototype']['comments']=$util['emptyArray'],CommentsV2AddCommentThreadResponse['create']=function(properties){return new CommentsV2AddCommentThreadResponse(properties);},CommentsV2AddCommentThreadResponse['encode']=function(_0x275a3b,writer){if(writer||(writer=$Writer['create']()),null!=_0x275a3b['commentThreadId']&&Object['hasOwnProperty']['call'](_0x275a3b,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x275a3b['commentThreadId']),null!=_0x275a3b['createdAt']&&Object['hasOwnProperty']['call'](_0x275a3b,'createdAt')&&writer['uint32'](0x12)['string'](_0x275a3b['createdAt']),null!=_0x275a3b['comments']&&_0x275a3b['comments']['length']){for(var _0x2e79dc=0x0;_0x2e79dc<_0x275a3b['comments']['length'];++_0x2e79dc)$root['CommentThreadAddedCommentDescriptor']['encode'](_0x275a3b['comments'][_0x2e79dc],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},CommentsV2AddCommentThreadResponse['encodeDelimited']=function(_0x751ac2,writer){return this['encode'](_0x751ac2,writer)['ldelim']();},CommentsV2AddCommentThreadResponse['decode']=function(_0x39e5f9,length){_0x39e5f9 instanceof _0x246cb1||(_0x39e5f9=_0x246cb1['create'](_0x39e5f9));for(var _0x112ed3=void 0x0===length?_0x39e5f9['len']:_0x39e5f9['pos']+length,_0x569af2=new $root['CommentsV2AddCommentThreadResponse']();_0x39e5f9['pos']<_0x112ed3;){var tag=_0x39e5f9['uint32']();switch(tag>>>0x3){case 0x1:_0x569af2['commentThreadId']=_0x39e5f9['string']();break;case 0x2:_0x569af2['createdAt']=_0x39e5f9['string']();break;case 0x3:_0x569af2['comments']&&_0x569af2['comments']['length']||(_0x569af2['comments']=[]),_0x569af2['comments']['push']($root['CommentThreadAddedCommentDescriptor']['decode'](_0x39e5f9,_0x39e5f9['uint32']()));break;default:_0x39e5f9['skipType'](0x7&tag);}}return _0x569af2;},CommentsV2AddCommentThreadResponse['decodeDelimited']=function(_0x3d77a9){return _0x3d77a9 instanceof _0x246cb1||(_0x3d77a9=new _0x246cb1(_0x3d77a9)),this['decode'](_0x3d77a9,_0x3d77a9['uint32']());},CommentsV2AddCommentThreadResponse['verify']=function(_0x2864b7){if('object'!=typeof _0x2864b7||null===_0x2864b7)return'object\x20expected';if(null!=_0x2864b7['commentThreadId']&&_0x2864b7['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x2864b7['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x2864b7['createdAt']&&_0x2864b7['hasOwnProperty']('createdAt')&&!$util['isString'](_0x2864b7['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x2864b7['comments']&&_0x2864b7['hasOwnProperty']('comments')){if(!Array['isArray'](_0x2864b7['comments']))return'comments:\x20array\x20expected';for(var _0x36c339=0x0;_0x36c339<_0x2864b7['comments']['length'];++_0x36c339){var _0x28df9e=$root['CommentThreadAddedCommentDescriptor']['verify'](_0x2864b7['comments'][_0x36c339]);if(_0x28df9e)return'comments.'+_0x28df9e;}}return null;},CommentsV2AddCommentThreadResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentThreadResponse'])return object;var _0x626047=new $root['CommentsV2AddCommentThreadResponse']();if(null!=object['commentThreadId']&&(_0x626047['commentThreadId']=String(object['commentThreadId'])),null!=object['createdAt']&&(_0x626047['createdAt']=String(object['createdAt'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20array\x20expected');_0x626047['comments']=[];for(var _0x4059ef=0x0;_0x4059ef<object['comments']['length'];++_0x4059ef){if('object'!=typeof object['comments'][_0x4059ef])throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20object\x20expected');_0x626047['comments'][_0x4059ef]=$root['CommentThreadAddedCommentDescriptor']['fromObject'](object['comments'][_0x4059ef]);}}return _0x626047;},CommentsV2AddCommentThreadResponse['toObject']=function(_0x586454,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[]),options['defaults']&&(object['commentThreadId']='',object['createdAt']=''),null!=_0x586454['commentThreadId']&&_0x586454['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x586454['commentThreadId']),null!=_0x586454['createdAt']&&_0x586454['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x586454['createdAt']),_0x586454['comments']&&_0x586454['comments']['length']){object['comments']=[];for(var _0x1ad524=0x0;_0x1ad524<_0x586454['comments']['length'];++_0x1ad524)object['comments'][_0x1ad524]=$root['CommentThreadAddedCommentDescriptor']['toObject'](_0x586454['comments'][_0x1ad524],options);}return object;},CommentsV2AddCommentThreadResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentThreadResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentThreadResponse';},CommentsV2AddCommentThreadResponse;}()),$root['CommentsV2ResolveCommentThreadResponse']=(function(){function CommentsV2ResolveCommentThreadResponse(properties){if(properties){for(var _0x44c4f0=Object['keys'](properties),_0x203a25=0x0;_0x203a25<_0x44c4f0['length'];++_0x203a25)null!=properties[_0x44c4f0[_0x203a25]]&&(this[_0x44c4f0[_0x203a25]]=properties[_0x44c4f0[_0x203a25]]);}}return CommentsV2ResolveCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2ResolveCommentThreadResponse['prototype']['documentId']='',CommentsV2ResolveCommentThreadResponse['prototype']['resolvedAt']='',CommentsV2ResolveCommentThreadResponse['prototype']['resolvedBy']='',CommentsV2ResolveCommentThreadResponse['create']=function(properties){return new CommentsV2ResolveCommentThreadResponse(properties);},CommentsV2ResolveCommentThreadResponse['encode']=function(_0x407ea2,writer){return writer||(writer=$Writer['create']()),null!=_0x407ea2['commentThreadId']&&Object['hasOwnProperty']['call'](_0x407ea2,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x407ea2['commentThreadId']),null!=_0x407ea2['documentId']&&Object['hasOwnProperty']['call'](_0x407ea2,'documentId')&&writer['uint32'](0x12)['string'](_0x407ea2['documentId']),null!=_0x407ea2['resolvedAt']&&Object['hasOwnProperty']['call'](_0x407ea2,'resolvedAt')&&writer['uint32'](0x1a)['string'](_0x407ea2['resolvedAt']),null!=_0x407ea2['resolvedBy']&&Object['hasOwnProperty']['call'](_0x407ea2,'resolvedBy')&&writer['uint32'](0x22)['string'](_0x407ea2['resolvedBy']),writer;},CommentsV2ResolveCommentThreadResponse['encodeDelimited']=function(_0x196bde,writer){return this['encode'](_0x196bde,writer)['ldelim']();},CommentsV2ResolveCommentThreadResponse['decode']=function(_0x38b1ea,length){_0x38b1ea instanceof _0x246cb1||(_0x38b1ea=_0x246cb1['create'](_0x38b1ea));for(var _0x3278c0=void 0x0===length?_0x38b1ea['len']:_0x38b1ea['pos']+length,_0x704061=new $root['CommentsV2ResolveCommentThreadResponse']();_0x38b1ea['pos']<_0x3278c0;){var tag=_0x38b1ea['uint32']();switch(tag>>>0x3){case 0x1:_0x704061['commentThreadId']=_0x38b1ea['string']();break;case 0x2:_0x704061['documentId']=_0x38b1ea['string']();break;case 0x3:_0x704061['resolvedAt']=_0x38b1ea['string']();break;case 0x4:_0x704061['resolvedBy']=_0x38b1ea['string']();break;default:_0x38b1ea['skipType'](0x7&tag);}}return _0x704061;},CommentsV2ResolveCommentThreadResponse['decodeDelimited']=function(_0x5c6d9a){return _0x5c6d9a instanceof _0x246cb1||(_0x5c6d9a=new _0x246cb1(_0x5c6d9a)),this['decode'](_0x5c6d9a,_0x5c6d9a['uint32']());},CommentsV2ResolveCommentThreadResponse['verify']=function(_0x1cd586){return'object'!=typeof _0x1cd586||null===_0x1cd586?'object\x20expected':null!=_0x1cd586['commentThreadId']&&_0x1cd586['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x1cd586['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x1cd586['documentId']&&_0x1cd586['hasOwnProperty']('documentId')&&!$util['isString'](_0x1cd586['documentId'])?'documentId:\x20string\x20expected':null!=_0x1cd586['resolvedAt']&&_0x1cd586['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x1cd586['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x1cd586['resolvedBy']&&_0x1cd586['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x1cd586['resolvedBy'])?'resolvedBy:\x20string\x20expected':null;},CommentsV2ResolveCommentThreadResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2ResolveCommentThreadResponse'])return object;var _0x6457e1=new $root['CommentsV2ResolveCommentThreadResponse']();return null!=object['commentThreadId']&&(_0x6457e1['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x6457e1['documentId']=String(object['documentId'])),null!=object['resolvedAt']&&(_0x6457e1['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x6457e1['resolvedBy']=String(object['resolvedBy'])),_0x6457e1;},CommentsV2ResolveCommentThreadResponse['toObject']=function(_0x4ae202,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['resolvedAt']='',object['resolvedBy']=''),null!=_0x4ae202['commentThreadId']&&_0x4ae202['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x4ae202['commentThreadId']),null!=_0x4ae202['documentId']&&_0x4ae202['hasOwnProperty']('documentId')&&(object['documentId']=_0x4ae202['documentId']),null!=_0x4ae202['resolvedAt']&&_0x4ae202['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x4ae202['resolvedAt']),null!=_0x4ae202['resolvedBy']&&_0x4ae202['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x4ae202['resolvedBy']),object;},CommentsV2ResolveCommentThreadResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ResolveCommentThreadResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ResolveCommentThreadResponse';},CommentsV2ResolveCommentThreadResponse;}()),$root['CommentsV2ConnectResponse']=(function(){function CommentsV2ConnectResponse(properties){if(this['threads']=[],this['threadsV2']=[],properties){for(var _0x2b9451=Object['keys'](properties),_0x357fc6=0x0;_0x357fc6<_0x2b9451['length'];++_0x357fc6)null!=properties[_0x2b9451[_0x357fc6]]&&(this[_0x2b9451[_0x357fc6]]=properties[_0x2b9451[_0x357fc6]]);}}return CommentsV2ConnectResponse['prototype']['channel']='',CommentsV2ConnectResponse['prototype']['threads']=$util['emptyArray'],CommentsV2ConnectResponse['prototype']['threadsV2']=$util['emptyArray'],CommentsV2ConnectResponse['create']=function(properties){return new CommentsV2ConnectResponse(properties);},CommentsV2ConnectResponse['encode']=function(_0xf63271,writer){if(writer||(writer=$Writer['create']()),null!=_0xf63271['channel']&&Object['hasOwnProperty']['call'](_0xf63271,'channel')&&writer['uint32'](0xa)['string'](_0xf63271['channel']),null!=_0xf63271['threads']&&_0xf63271['threads']['length']){for(var _0x21933b=0x0;_0x21933b<_0xf63271['threads']['length'];++_0x21933b)writer['uint32'](0x12)['string'](_0xf63271['threads'][_0x21933b]);}if(null!=_0xf63271['threadsV2']&&_0xf63271['threadsV2']['length']){for(_0x21933b=0x0;_0x21933b<_0xf63271['threadsV2']['length'];++_0x21933b)$root['CommentsThreadDescriptor']['encode'](_0xf63271['threadsV2'][_0x21933b],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},CommentsV2ConnectResponse['encodeDelimited']=function(_0x799022,writer){return this['encode'](_0x799022,writer)['ldelim']();},CommentsV2ConnectResponse['decode']=function(_0x2c9cd9,length){_0x2c9cd9 instanceof _0x246cb1||(_0x2c9cd9=_0x246cb1['create'](_0x2c9cd9));for(var _0x3e2171=void 0x0===length?_0x2c9cd9['len']:_0x2c9cd9['pos']+length,_0x309ea9=new $root['CommentsV2ConnectResponse']();_0x2c9cd9['pos']<_0x3e2171;){var tag=_0x2c9cd9['uint32']();switch(tag>>>0x3){case 0x1:_0x309ea9['channel']=_0x2c9cd9['string']();break;case 0x2:_0x309ea9['threads']&&_0x309ea9['threads']['length']||(_0x309ea9['threads']=[]),_0x309ea9['threads']['push'](_0x2c9cd9['string']());break;case 0x3:_0x309ea9['threadsV2']&&_0x309ea9['threadsV2']['length']||(_0x309ea9['threadsV2']=[]),_0x309ea9['threadsV2']['push']($root['CommentsThreadDescriptor']['decode'](_0x2c9cd9,_0x2c9cd9['uint32']()));break;default:_0x2c9cd9['skipType'](0x7&tag);}}return _0x309ea9;},CommentsV2ConnectResponse['decodeDelimited']=function(_0x313986){return _0x313986 instanceof _0x246cb1||(_0x313986=new _0x246cb1(_0x313986)),this['decode'](_0x313986,_0x313986['uint32']());},CommentsV2ConnectResponse['verify']=function(_0x5de913){if('object'!=typeof _0x5de913||null===_0x5de913)return'object\x20expected';if(null!=_0x5de913['channel']&&_0x5de913['hasOwnProperty']('channel')&&!$util['isString'](_0x5de913['channel']))return'channel:\x20string\x20expected';if(null!=_0x5de913['threads']&&_0x5de913['hasOwnProperty']('threads')){if(!Array['isArray'](_0x5de913['threads']))return'threads:\x20array\x20expected';for(var _0x2ac13f=0x0;_0x2ac13f<_0x5de913['threads']['length'];++_0x2ac13f)if(!$util['isString'](_0x5de913['threads'][_0x2ac13f]))return'threads:\x20string[]\x20expected';}if(null!=_0x5de913['threadsV2']&&_0x5de913['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x5de913['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x2ac13f=0x0;_0x2ac13f<_0x5de913['threadsV2']['length'];++_0x2ac13f){var _0x4a7595=$root['CommentsThreadDescriptor']['verify'](_0x5de913['threadsV2'][_0x2ac13f]);if(_0x4a7595)return'threadsV2.'+_0x4a7595;}}return null;},CommentsV2ConnectResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2ConnectResponse'])return object;var _0x2830bf=new $root['CommentsV2ConnectResponse']();if(null!=object['channel']&&(_0x2830bf['channel']=String(object['channel'])),object['threads']){if(!Array['isArray'](object['threads']))throw TypeError('.CommentsV2ConnectResponse.threads:\x20array\x20expected');_0x2830bf['threads']=[];for(var _0x53879c=0x0;_0x53879c<object['threads']['length'];++_0x53879c)_0x2830bf['threads'][_0x53879c]=String(object['threads'][_0x53879c]);}if(object['threadsV2']){if(!Array['isArray'](object['threadsV2']))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20array\x20expected');_0x2830bf['threadsV2']=[];for(_0x53879c=0x0;_0x53879c<object['threadsV2']['length'];++_0x53879c){if('object'!=typeof object['threadsV2'][_0x53879c])throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20object\x20expected');_0x2830bf['threadsV2'][_0x53879c]=$root['CommentsThreadDescriptor']['fromObject'](object['threadsV2'][_0x53879c]);}}return _0x2830bf;},CommentsV2ConnectResponse['toObject']=function(_0x30ee47,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['threads']=[],object['threadsV2']=[]),options['defaults']&&(object['channel']=''),null!=_0x30ee47['channel']&&_0x30ee47['hasOwnProperty']('channel')&&(object['channel']=_0x30ee47['channel']),_0x30ee47['threads']&&_0x30ee47['threads']['length']){object['threads']=[];for(var _0x4b2447=0x0;_0x4b2447<_0x30ee47['threads']['length'];++_0x4b2447)object['threads'][_0x4b2447]=_0x30ee47['threads'][_0x4b2447];}if(_0x30ee47['threadsV2']&&_0x30ee47['threadsV2']['length']){object['threadsV2']=[];for(_0x4b2447=0x0;_0x4b2447<_0x30ee47['threadsV2']['length'];++_0x4b2447)object['threadsV2'][_0x4b2447]=$root['CommentsThreadDescriptor']['toObject'](_0x30ee47['threadsV2'][_0x4b2447],options);}return object;},CommentsV2ConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ConnectResponse';},CommentsV2ConnectResponse;}()),$root['CommentsV2GetCommentThreadResponse']=(function(){function CommentsV2GetCommentThreadResponse(properties){if(this['comments']=[],this['commentsV2']=[],properties){for(var _0x226d2c=Object['keys'](properties),_0x550e6b=0x0;_0x550e6b<_0x226d2c['length'];++_0x550e6b)null!=properties[_0x226d2c[_0x550e6b]]&&(this[_0x226d2c[_0x550e6b]]=properties[_0x226d2c[_0x550e6b]]);}}return CommentsV2GetCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2GetCommentThreadResponse['prototype']['comments']=$util['emptyArray'],CommentsV2GetCommentThreadResponse['prototype']['commentsV2']=$util['emptyArray'],CommentsV2GetCommentThreadResponse['prototype']['resolvedAt']='',CommentsV2GetCommentThreadResponse['prototype']['resolvedBy']='',CommentsV2GetCommentThreadResponse['prototype']['context']='',CommentsV2GetCommentThreadResponse['prototype']['createdAt']='',CommentsV2GetCommentThreadResponse['prototype']['deletedAt']='',CommentsV2GetCommentThreadResponse['prototype']['attributes']='',CommentsV2GetCommentThreadResponse['prototype']['unlinkedAt']='',CommentsV2GetCommentThreadResponse['create']=function(properties){return new CommentsV2GetCommentThreadResponse(properties);},CommentsV2GetCommentThreadResponse['encode']=function(_0x2c9c7b,writer){if(writer||(writer=$Writer['create']()),null!=_0x2c9c7b['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2c9c7b,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x2c9c7b['commentThreadId']),null!=_0x2c9c7b['comments']&&_0x2c9c7b['comments']['length']){for(var _0x5e47c9=0x0;_0x5e47c9<_0x2c9c7b['comments']['length'];++_0x5e47c9)writer['uint32'](0x12)['string'](_0x2c9c7b['comments'][_0x5e47c9]);}if(null!=_0x2c9c7b['commentsV2']&&_0x2c9c7b['commentsV2']['length']){for(_0x5e47c9=0x0;_0x5e47c9<_0x2c9c7b['commentsV2']['length'];++_0x5e47c9)$root['CommentDescriptor']['encode'](_0x2c9c7b['commentsV2'][_0x5e47c9],writer['uint32'](0x1a)['fork']())['ldelim']();}return null!=_0x2c9c7b['resolvedAt']&&Object['hasOwnProperty']['call'](_0x2c9c7b,'resolvedAt')&&writer['uint32'](0x22)['string'](_0x2c9c7b['resolvedAt']),null!=_0x2c9c7b['resolvedBy']&&Object['hasOwnProperty']['call'](_0x2c9c7b,'resolvedBy')&&writer['uint32'](0x2a)['string'](_0x2c9c7b['resolvedBy']),null!=_0x2c9c7b['context']&&Object['hasOwnProperty']['call'](_0x2c9c7b,'context')&&writer['uint32'](0x32)['string'](_0x2c9c7b['context']),null!=_0x2c9c7b['createdAt']&&Object['hasOwnProperty']['call'](_0x2c9c7b,'createdAt')&&writer['uint32'](0x3a)['string'](_0x2c9c7b['createdAt']),null!=_0x2c9c7b['deletedAt']&&Object['hasOwnProperty']['call'](_0x2c9c7b,'deletedAt')&&writer['uint32'](0x42)['string'](_0x2c9c7b['deletedAt']),null!=_0x2c9c7b['attributes']&&Object['hasOwnProperty']['call'](_0x2c9c7b,'attributes')&&writer['uint32'](0x4a)['string'](_0x2c9c7b['attributes']),null!=_0x2c9c7b['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x2c9c7b,'unlinkedAt')&&writer['uint32'](0x52)['string'](_0x2c9c7b['unlinkedAt']),writer;},CommentsV2GetCommentThreadResponse['encodeDelimited']=function(_0x11795c,writer){return this['encode'](_0x11795c,writer)['ldelim']();},CommentsV2GetCommentThreadResponse['decode']=function(_0x3b9545,length){_0x3b9545 instanceof _0x246cb1||(_0x3b9545=_0x246cb1['create'](_0x3b9545));for(var _0x4458fb=void 0x0===length?_0x3b9545['len']:_0x3b9545['pos']+length,_0x1133ce=new $root['CommentsV2GetCommentThreadResponse']();_0x3b9545['pos']<_0x4458fb;){var tag=_0x3b9545['uint32']();switch(tag>>>0x3){case 0x1:_0x1133ce['commentThreadId']=_0x3b9545['string']();break;case 0x2:_0x1133ce['comments']&&_0x1133ce['comments']['length']||(_0x1133ce['comments']=[]),_0x1133ce['comments']['push'](_0x3b9545['string']());break;case 0x3:_0x1133ce['commentsV2']&&_0x1133ce['commentsV2']['length']||(_0x1133ce['commentsV2']=[]),_0x1133ce['commentsV2']['push']($root['CommentDescriptor']['decode'](_0x3b9545,_0x3b9545['uint32']()));break;case 0x4:_0x1133ce['resolvedAt']=_0x3b9545['string']();break;case 0x5:_0x1133ce['resolvedBy']=_0x3b9545['string']();break;case 0x6:_0x1133ce['context']=_0x3b9545['string']();break;case 0x7:_0x1133ce['createdAt']=_0x3b9545['string']();break;case 0x8:_0x1133ce['deletedAt']=_0x3b9545['string']();break;case 0x9:_0x1133ce['attributes']=_0x3b9545['string']();break;case 0xa:_0x1133ce['unlinkedAt']=_0x3b9545['string']();break;default:_0x3b9545['skipType'](0x7&tag);}}return _0x1133ce;},CommentsV2GetCommentThreadResponse['decodeDelimited']=function(_0x1dadd6){return _0x1dadd6 instanceof _0x246cb1||(_0x1dadd6=new _0x246cb1(_0x1dadd6)),this['decode'](_0x1dadd6,_0x1dadd6['uint32']());},CommentsV2GetCommentThreadResponse['verify']=function(_0x438d65){if('object'!=typeof _0x438d65||null===_0x438d65)return'object\x20expected';if(null!=_0x438d65['commentThreadId']&&_0x438d65['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x438d65['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x438d65['comments']&&_0x438d65['hasOwnProperty']('comments')){if(!Array['isArray'](_0x438d65['comments']))return'comments:\x20array\x20expected';for(var _0x41d853=0x0;_0x41d853<_0x438d65['comments']['length'];++_0x41d853)if(!$util['isString'](_0x438d65['comments'][_0x41d853]))return'comments:\x20string[]\x20expected';}if(null!=_0x438d65['commentsV2']&&_0x438d65['hasOwnProperty']('commentsV2')){if(!Array['isArray'](_0x438d65['commentsV2']))return'commentsV2:\x20array\x20expected';for(_0x41d853=0x0;_0x41d853<_0x438d65['commentsV2']['length'];++_0x41d853){var _0x3b113e=$root['CommentDescriptor']['verify'](_0x438d65['commentsV2'][_0x41d853]);if(_0x3b113e)return'commentsV2.'+_0x3b113e;}}return null!=_0x438d65['resolvedAt']&&_0x438d65['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x438d65['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x438d65['resolvedBy']&&_0x438d65['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x438d65['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x438d65['context']&&_0x438d65['hasOwnProperty']('context')&&!$util['isString'](_0x438d65['context'])?'context:\x20string\x20expected':null!=_0x438d65['createdAt']&&_0x438d65['hasOwnProperty']('createdAt')&&!$util['isString'](_0x438d65['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x438d65['deletedAt']&&_0x438d65['hasOwnProperty']('deletedAt')&&!$util['isString'](_0x438d65['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x438d65['attributes']&&_0x438d65['hasOwnProperty']('attributes')&&!$util['isString'](_0x438d65['attributes'])?'attributes:\x20string\x20expected':null!=_0x438d65['unlinkedAt']&&_0x438d65['hasOwnProperty']('unlinkedAt')&&!$util['isString'](_0x438d65['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsV2GetCommentThreadResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2GetCommentThreadResponse'])return object;var _0x24cea3=new $root['CommentsV2GetCommentThreadResponse']();if(null!=object['commentThreadId']&&(_0x24cea3['commentThreadId']=String(object['commentThreadId'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2GetCommentThreadResponse.comments:\x20array\x20expected');_0x24cea3['comments']=[];for(var _0x589cb8=0x0;_0x589cb8<object['comments']['length'];++_0x589cb8)_0x24cea3['comments'][_0x589cb8]=String(object['comments'][_0x589cb8]);}if(object['commentsV2']){if(!Array['isArray'](object['commentsV2']))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20array\x20expected');_0x24cea3['commentsV2']=[];for(_0x589cb8=0x0;_0x589cb8<object['commentsV2']['length'];++_0x589cb8){if('object'!=typeof object['commentsV2'][_0x589cb8])throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20object\x20expected');_0x24cea3['commentsV2'][_0x589cb8]=$root['CommentDescriptor']['fromObject'](object['commentsV2'][_0x589cb8]);}}return null!=object['resolvedAt']&&(_0x24cea3['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x24cea3['resolvedBy']=String(object['resolvedBy'])),null!=object['context']&&(_0x24cea3['context']=String(object['context'])),null!=object['createdAt']&&(_0x24cea3['createdAt']=String(object['createdAt'])),null!=object['deletedAt']&&(_0x24cea3['deletedAt']=String(object['deletedAt'])),null!=object['attributes']&&(_0x24cea3['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x24cea3['unlinkedAt']=String(object['unlinkedAt'])),_0x24cea3;},CommentsV2GetCommentThreadResponse['toObject']=function(_0x29e8f1,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[],object['commentsV2']=[]),options['defaults']&&(object['commentThreadId']='',object['resolvedAt']='',object['resolvedBy']='',object['context']='',object['createdAt']='',object['deletedAt']='',object['attributes']='',object['unlinkedAt']=''),null!=_0x29e8f1['commentThreadId']&&_0x29e8f1['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x29e8f1['commentThreadId']),_0x29e8f1['comments']&&_0x29e8f1['comments']['length']){object['comments']=[];for(var _0x4c7627=0x0;_0x4c7627<_0x29e8f1['comments']['length'];++_0x4c7627)object['comments'][_0x4c7627]=_0x29e8f1['comments'][_0x4c7627];}if(_0x29e8f1['commentsV2']&&_0x29e8f1['commentsV2']['length']){object['commentsV2']=[];for(_0x4c7627=0x0;_0x4c7627<_0x29e8f1['commentsV2']['length'];++_0x4c7627)object['commentsV2'][_0x4c7627]=$root['CommentDescriptor']['toObject'](_0x29e8f1['commentsV2'][_0x4c7627],options);}return null!=_0x29e8f1['resolvedAt']&&_0x29e8f1['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x29e8f1['resolvedAt']),null!=_0x29e8f1['resolvedBy']&&_0x29e8f1['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x29e8f1['resolvedBy']),null!=_0x29e8f1['context']&&_0x29e8f1['hasOwnProperty']('context')&&(object['context']=_0x29e8f1['context']),null!=_0x29e8f1['createdAt']&&_0x29e8f1['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x29e8f1['createdAt']),null!=_0x29e8f1['deletedAt']&&_0x29e8f1['hasOwnProperty']('deletedAt')&&(object['deletedAt']=_0x29e8f1['deletedAt']),null!=_0x29e8f1['attributes']&&_0x29e8f1['hasOwnProperty']('attributes')&&(object['attributes']=_0x29e8f1['attributes']),null!=_0x29e8f1['unlinkedAt']&&_0x29e8f1['hasOwnProperty']('unlinkedAt')&&(object['unlinkedAt']=_0x29e8f1['unlinkedAt']),object;},CommentsV2GetCommentThreadResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetCommentThreadResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetCommentThreadResponse';},CommentsV2GetCommentThreadResponse;}()),$root['CommentsV2GetDocumentThreadsResponse']=(function(){function CommentsV2GetDocumentThreadsResponse(properties){if(this['threads']=[],this['threadsV2']=[],properties){for(var _0x2294ff=Object['keys'](properties),_0x2f18f4=0x0;_0x2f18f4<_0x2294ff['length'];++_0x2f18f4)null!=properties[_0x2294ff[_0x2f18f4]]&&(this[_0x2294ff[_0x2f18f4]]=properties[_0x2294ff[_0x2f18f4]]);}}return CommentsV2GetDocumentThreadsResponse['prototype']['threads']=$util['emptyArray'],CommentsV2GetDocumentThreadsResponse['prototype']['threadsV2']=$util['emptyArray'],CommentsV2GetDocumentThreadsResponse['create']=function(properties){return new CommentsV2GetDocumentThreadsResponse(properties);},CommentsV2GetDocumentThreadsResponse['encode']=function(_0x16ffc7,writer){if(writer||(writer=$Writer['create']()),null!=_0x16ffc7['threads']&&_0x16ffc7['threads']['length']){for(var _0x3bd4f7=0x0;_0x3bd4f7<_0x16ffc7['threads']['length'];++_0x3bd4f7)writer['uint32'](0xa)['string'](_0x16ffc7['threads'][_0x3bd4f7]);}if(null!=_0x16ffc7['threadsV2']&&_0x16ffc7['threadsV2']['length']){for(_0x3bd4f7=0x0;_0x3bd4f7<_0x16ffc7['threadsV2']['length'];++_0x3bd4f7)$root['CommentsThreadDescriptor']['encode'](_0x16ffc7['threadsV2'][_0x3bd4f7],writer['uint32'](0x12)['fork']())['ldelim']();}return writer;},CommentsV2GetDocumentThreadsResponse['encodeDelimited']=function(_0x216083,writer){return this['encode'](_0x216083,writer)['ldelim']();},CommentsV2GetDocumentThreadsResponse['decode']=function(_0x7a0a65,length){_0x7a0a65 instanceof _0x246cb1||(_0x7a0a65=_0x246cb1['create'](_0x7a0a65));for(var _0x37b766=void 0x0===length?_0x7a0a65['len']:_0x7a0a65['pos']+length,_0x4c12ad=new $root['CommentsV2GetDocumentThreadsResponse']();_0x7a0a65['pos']<_0x37b766;){var tag=_0x7a0a65['uint32']();switch(tag>>>0x3){case 0x1:_0x4c12ad['threads']&&_0x4c12ad['threads']['length']||(_0x4c12ad['threads']=[]),_0x4c12ad['threads']['push'](_0x7a0a65['string']());break;case 0x2:_0x4c12ad['threadsV2']&&_0x4c12ad['threadsV2']['length']||(_0x4c12ad['threadsV2']=[]),_0x4c12ad['threadsV2']['push']($root['CommentsThreadDescriptor']['decode'](_0x7a0a65,_0x7a0a65['uint32']()));break;default:_0x7a0a65['skipType'](0x7&tag);}}return _0x4c12ad;},CommentsV2GetDocumentThreadsResponse['decodeDelimited']=function(_0x280877){return _0x280877 instanceof _0x246cb1||(_0x280877=new _0x246cb1(_0x280877)),this['decode'](_0x280877,_0x280877['uint32']());},CommentsV2GetDocumentThreadsResponse['verify']=function(_0x40e5f4){if('object'!=typeof _0x40e5f4||null===_0x40e5f4)return'object\x20expected';if(null!=_0x40e5f4['threads']&&_0x40e5f4['hasOwnProperty']('threads')){if(!Array['isArray'](_0x40e5f4['threads']))return'threads:\x20array\x20expected';for(var _0x57e738=0x0;_0x57e738<_0x40e5f4['threads']['length'];++_0x57e738)if(!$util['isString'](_0x40e5f4['threads'][_0x57e738]))return'threads:\x20string[]\x20expected';}if(null!=_0x40e5f4['threadsV2']&&_0x40e5f4['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x40e5f4['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x57e738=0x0;_0x57e738<_0x40e5f4['threadsV2']['length'];++_0x57e738){var _0x4a5b4b=$root['CommentsThreadDescriptor']['verify'](_0x40e5f4['threadsV2'][_0x57e738]);if(_0x4a5b4b)return'threadsV2.'+_0x4a5b4b;}}return null;},CommentsV2GetDocumentThreadsResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2GetDocumentThreadsResponse'])return object;var _0x28e425=new $root['CommentsV2GetDocumentThreadsResponse']();if(object['threads']){if(!Array['isArray'](object['threads']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threads:\x20array\x20expected');_0x28e425['threads']=[];for(var _0x322b99=0x0;_0x322b99<object['threads']['length'];++_0x322b99)_0x28e425['threads'][_0x322b99]=String(object['threads'][_0x322b99]);}if(object['threadsV2']){if(!Array['isArray'](object['threadsV2']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20array\x20expected');_0x28e425['threadsV2']=[];for(_0x322b99=0x0;_0x322b99<object['threadsV2']['length'];++_0x322b99){if('object'!=typeof object['threadsV2'][_0x322b99])throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20object\x20expected');_0x28e425['threadsV2'][_0x322b99]=$root['CommentsThreadDescriptor']['fromObject'](object['threadsV2'][_0x322b99]);}}return _0x28e425;},CommentsV2GetDocumentThreadsResponse['toObject']=function(_0x59952f,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['threads']=[],object['threadsV2']=[]),_0x59952f['threads']&&_0x59952f['threads']['length']){object['threads']=[];for(var _0x4ff42d=0x0;_0x4ff42d<_0x59952f['threads']['length'];++_0x4ff42d)object['threads'][_0x4ff42d]=_0x59952f['threads'][_0x4ff42d];}if(_0x59952f['threadsV2']&&_0x59952f['threadsV2']['length']){object['threadsV2']=[];for(_0x4ff42d=0x0;_0x4ff42d<_0x59952f['threadsV2']['length'];++_0x4ff42d)object['threadsV2'][_0x4ff42d]=$root['CommentsThreadDescriptor']['toObject'](_0x59952f['threadsV2'][_0x4ff42d],options);}return object;},CommentsV2GetDocumentThreadsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetDocumentThreadsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetDocumentThreadsResponse';},CommentsV2GetDocumentThreadsResponse;}()),$root['KeyValueDescriptor']=(function(){function KeyValueDescriptor(properties){if(properties){for(var _0x50d6e0=Object['keys'](properties),_0x1d34dc=0x0;_0x1d34dc<_0x50d6e0['length'];++_0x1d34dc)null!=properties[_0x50d6e0[_0x1d34dc]]&&(this[_0x50d6e0[_0x1d34dc]]=properties[_0x50d6e0[_0x1d34dc]]);}}return KeyValueDescriptor['prototype']['key']='',KeyValueDescriptor['prototype']['value']='',KeyValueDescriptor['create']=function(properties){return new KeyValueDescriptor(properties);},KeyValueDescriptor['encode']=function(_0x1e9712,writer){return writer||(writer=$Writer['create']()),null!=_0x1e9712['key']&&Object['hasOwnProperty']['call'](_0x1e9712,'key')&&writer['uint32'](0xa)['string'](_0x1e9712['key']),null!=_0x1e9712['value']&&Object['hasOwnProperty']['call'](_0x1e9712,'value')&&writer['uint32'](0x12)['string'](_0x1e9712['value']),writer;},KeyValueDescriptor['encodeDelimited']=function(_0x126569,writer){return this['encode'](_0x126569,writer)['ldelim']();},KeyValueDescriptor['decode']=function(_0x42d4db,length){_0x42d4db instanceof _0x246cb1||(_0x42d4db=_0x246cb1['create'](_0x42d4db));for(var _0x106613=void 0x0===length?_0x42d4db['len']:_0x42d4db['pos']+length,_0x3f45ea=new $root['KeyValueDescriptor']();_0x42d4db['pos']<_0x106613;){var tag=_0x42d4db['uint32']();switch(tag>>>0x3){case 0x1:_0x3f45ea['key']=_0x42d4db['string']();break;case 0x2:_0x3f45ea['value']=_0x42d4db['string']();break;default:_0x42d4db['skipType'](0x7&tag);}}return _0x3f45ea;},KeyValueDescriptor['decodeDelimited']=function(_0x3e5318){return _0x3e5318 instanceof _0x246cb1||(_0x3e5318=new _0x246cb1(_0x3e5318)),this['decode'](_0x3e5318,_0x3e5318['uint32']());},KeyValueDescriptor['verify']=function(_0x4a40bf){return'object'!=typeof _0x4a40bf||null===_0x4a40bf?'object\x20expected':null!=_0x4a40bf['key']&&_0x4a40bf['hasOwnProperty']('key')&&!$util['isString'](_0x4a40bf['key'])?'key:\x20string\x20expected':null!=_0x4a40bf['value']&&_0x4a40bf['hasOwnProperty']('value')&&!$util['isString'](_0x4a40bf['value'])?'value:\x20string\x20expected':null;},KeyValueDescriptor['fromObject']=function(object){if(object instanceof $root['KeyValueDescriptor'])return object;var _0x3b7bb2=new $root['KeyValueDescriptor']();return null!=object['key']&&(_0x3b7bb2['key']=String(object['key'])),null!=object['value']&&(_0x3b7bb2['value']=String(object['value'])),_0x3b7bb2;},KeyValueDescriptor['toObject']=function(_0x2c6d24,options){options||(options={});var object={};return options['defaults']&&(object['key']='',object['value']=''),null!=_0x2c6d24['key']&&_0x2c6d24['hasOwnProperty']('key')&&(object['key']=_0x2c6d24['key']),null!=_0x2c6d24['value']&&_0x2c6d24['hasOwnProperty']('value')&&(object['value']=_0x2c6d24['value']),object;},KeyValueDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},KeyValueDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/KeyValueDescriptor';},KeyValueDescriptor;}()),$root['IsEditorBundleUploadedMessage']=(function(){function IsEditorBundleUploadedMessage(properties){if(properties){for(var _0x2ef28b=Object['keys'](properties),_0x2b3541=0x0;_0x2b3541<_0x2ef28b['length'];++_0x2b3541)null!=properties[_0x2ef28b[_0x2b3541]]&&(this[_0x2ef28b[_0x2b3541]]=properties[_0x2ef28b[_0x2b3541]]);}}return IsEditorBundleUploadedMessage['prototype']['bundleVersion']='',IsEditorBundleUploadedMessage['create']=function(properties){return new IsEditorBundleUploadedMessage(properties);},IsEditorBundleUploadedMessage['encode']=function(_0x38c7c1,writer){return writer||(writer=$Writer['create']()),null!=_0x38c7c1['bundleVersion']&&Object['hasOwnProperty']['call'](_0x38c7c1,'bundleVersion')&&writer['uint32'](0xa)['string'](_0x38c7c1['bundleVersion']),writer;},IsEditorBundleUploadedMessage['encodeDelimited']=function(_0x268752,writer){return this['encode'](_0x268752,writer)['ldelim']();},IsEditorBundleUploadedMessage['decode']=function(_0x1b7417,length){_0x1b7417 instanceof _0x246cb1||(_0x1b7417=_0x246cb1['create'](_0x1b7417));for(var _0x17984f=void 0x0===length?_0x1b7417['len']:_0x1b7417['pos']+length,_0x2c9fc9=new $root['IsEditorBundleUploadedMessage']();_0x1b7417['pos']<_0x17984f;){var tag=_0x1b7417['uint32']();if(tag>>>0x3==0x1)_0x2c9fc9['bundleVersion']=_0x1b7417['string']();else _0x1b7417['skipType'](0x7&tag);}return _0x2c9fc9;},IsEditorBundleUploadedMessage['decodeDelimited']=function(_0x1ae8c7){return _0x1ae8c7 instanceof _0x246cb1||(_0x1ae8c7=new _0x246cb1(_0x1ae8c7)),this['decode'](_0x1ae8c7,_0x1ae8c7['uint32']());},IsEditorBundleUploadedMessage['verify']=function(_0x2fc671){return'object'!=typeof _0x2fc671||null===_0x2fc671?'object\x20expected':null!=_0x2fc671['bundleVersion']&&_0x2fc671['hasOwnProperty']('bundleVersion')&&!$util['isString'](_0x2fc671['bundleVersion'])?'bundleVersion:\x20string\x20expected':null;},IsEditorBundleUploadedMessage['fromObject']=function(object){if(object instanceof $root['IsEditorBundleUploadedMessage'])return object;var _0x407e83=new $root['IsEditorBundleUploadedMessage']();return null!=object['bundleVersion']&&(_0x407e83['bundleVersion']=String(object['bundleVersion'])),_0x407e83;},IsEditorBundleUploadedMessage['toObject']=function(_0xf23672,options){options||(options={});var object={};return options['defaults']&&(object['bundleVersion']=''),null!=_0xf23672['bundleVersion']&&_0xf23672['hasOwnProperty']('bundleVersion')&&(object['bundleVersion']=_0xf23672['bundleVersion']),object;},IsEditorBundleUploadedMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},IsEditorBundleUploadedMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/IsEditorBundleUploadedMessage';},IsEditorBundleUploadedMessage;}()),$root['IsEditorBundleUploadedResponse']=(function(){function IsEditorBundleUploadedResponse(properties){if(properties){for(var _0x27cb20=Object['keys'](properties),_0x3feb05=0x0;_0x3feb05<_0x27cb20['length'];++_0x3feb05)null!=properties[_0x27cb20[_0x3feb05]]&&(this[_0x27cb20[_0x3feb05]]=properties[_0x27cb20[_0x3feb05]]);}}return IsEditorBundleUploadedResponse['prototype']['isUploaded']=!0x1,IsEditorBundleUploadedResponse['create']=function(properties){return new IsEditorBundleUploadedResponse(properties);},IsEditorBundleUploadedResponse['encode']=function(_0x2dce80,writer){return writer||(writer=$Writer['create']()),null!=_0x2dce80['isUploaded']&&Object['hasOwnProperty']['call'](_0x2dce80,'isUploaded')&&writer['uint32'](0x8)['bool'](_0x2dce80['isUploaded']),writer;},IsEditorBundleUploadedResponse['encodeDelimited']=function(_0x1cd79e,writer){return this['encode'](_0x1cd79e,writer)['ldelim']();},IsEditorBundleUploadedResponse['decode']=function(_0xb2a6c,length){_0xb2a6c instanceof _0x246cb1||(_0xb2a6c=_0x246cb1['create'](_0xb2a6c));for(var _0x26f551=void 0x0===length?_0xb2a6c['len']:_0xb2a6c['pos']+length,_0x1fde08=new $root['IsEditorBundleUploadedResponse']();_0xb2a6c['pos']<_0x26f551;){var tag=_0xb2a6c['uint32']();if(tag>>>0x3==0x1)_0x1fde08['isUploaded']=_0xb2a6c['bool']();else _0xb2a6c['skipType'](0x7&tag);}return _0x1fde08;},IsEditorBundleUploadedResponse['decodeDelimited']=function(_0x3f0dd9){return _0x3f0dd9 instanceof _0x246cb1||(_0x3f0dd9=new _0x246cb1(_0x3f0dd9)),this['decode'](_0x3f0dd9,_0x3f0dd9['uint32']());},IsEditorBundleUploadedResponse['verify']=function(_0x4bddf1){return'object'!=typeof _0x4bddf1||null===_0x4bddf1?'object\x20expected':null!=_0x4bddf1['isUploaded']&&_0x4bddf1['hasOwnProperty']('isUploaded')&&'boolean'!=typeof _0x4bddf1['isUploaded']?'isUploaded:\x20boolean\x20expected':null;},IsEditorBundleUploadedResponse['fromObject']=function(object){if(object instanceof $root['IsEditorBundleUploadedResponse'])return object;var _0x3b991a=new $root['IsEditorBundleUploadedResponse']();return null!=object['isUploaded']&&(_0x3b991a['isUploaded']=Boolean(object['isUploaded'])),_0x3b991a;},IsEditorBundleUploadedResponse['toObject']=function(_0x15992a,options){options||(options={});var object={};return options['defaults']&&(object['isUploaded']=!0x1),null!=_0x15992a['isUploaded']&&_0x15992a['hasOwnProperty']('isUploaded')&&(object['isUploaded']=_0x15992a['isUploaded']),object;},IsEditorBundleUploadedResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},IsEditorBundleUploadedResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/IsEditorBundleUploadedResponse';},IsEditorBundleUploadedResponse;}()),$root['RevisionDescriptor']=(function(){function RevisionDescriptor(properties){if(properties){for(var _0x5764b2=Object['keys'](properties),_0x1914d1=0x0;_0x1914d1<_0x5764b2['length'];++_0x1914d1)null!=properties[_0x5764b2[_0x1914d1]]&&(this[_0x5764b2[_0x1914d1]]=properties[_0x5764b2[_0x1914d1]]);}}return RevisionDescriptor['prototype']['revisionId']='',RevisionDescriptor['prototype']['name']='',RevisionDescriptor['prototype']['creatorId']='',RevisionDescriptor['prototype']['authorsIds']='',RevisionDescriptor['prototype']['diffData']='',RevisionDescriptor['prototype']['createdAt']='',RevisionDescriptor['prototype']['attributes']='',RevisionDescriptor['prototype']['toVersion']=0x0,RevisionDescriptor['prototype']['fromVersion']=0x0,RevisionDescriptor['prototype']['isEmptyCurrent']=!0x1,RevisionDescriptor['create']=function(properties){return new RevisionDescriptor(properties);},RevisionDescriptor['encode']=function(_0x355a82,writer){return writer||(writer=$Writer['create']()),null!=_0x355a82['revisionId']&&Object['hasOwnProperty']['call'](_0x355a82,'revisionId')&&writer['uint32'](0xa)['string'](_0x355a82['revisionId']),null!=_0x355a82['name']&&Object['hasOwnProperty']['call'](_0x355a82,'name')&&writer['uint32'](0x12)['string'](_0x355a82['name']),null!=_0x355a82['creatorId']&&Object['hasOwnProperty']['call'](_0x355a82,'creatorId')&&writer['uint32'](0x1a)['string'](_0x355a82['creatorId']),null!=_0x355a82['authorsIds']&&Object['hasOwnProperty']['call'](_0x355a82,'authorsIds')&&writer['uint32'](0x22)['string'](_0x355a82['authorsIds']),null!=_0x355a82['diffData']&&Object['hasOwnProperty']['call'](_0x355a82,'diffData')&&writer['uint32'](0x2a)['string'](_0x355a82['diffData']),null!=_0x355a82['createdAt']&&Object['hasOwnProperty']['call'](_0x355a82,'createdAt')&&writer['uint32'](0x32)['string'](_0x355a82['createdAt']),null!=_0x355a82['attributes']&&Object['hasOwnProperty']['call'](_0x355a82,'attributes')&&writer['uint32'](0x3a)['string'](_0x355a82['attributes']),null!=_0x355a82['toVersion']&&Object['hasOwnProperty']['call'](_0x355a82,'toVersion')&&writer['uint32'](0x40)['uint32'](_0x355a82['toVersion']),null!=_0x355a82['fromVersion']&&Object['hasOwnProperty']['call'](_0x355a82,'fromVersion')&&writer['uint32'](0x48)['uint32'](_0x355a82['fromVersion']),null!=_0x355a82['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x355a82,'isEmptyCurrent')&&writer['uint32'](0x50)['bool'](_0x355a82['isEmptyCurrent']),writer;},RevisionDescriptor['encodeDelimited']=function(_0x21854d,writer){return this['encode'](_0x21854d,writer)['ldelim']();},RevisionDescriptor['decode']=function(_0x19d736,length){_0x19d736 instanceof _0x246cb1||(_0x19d736=_0x246cb1['create'](_0x19d736));for(var _0x763e55=void 0x0===length?_0x19d736['len']:_0x19d736['pos']+length,_0x11a434=new $root['RevisionDescriptor']();_0x19d736['pos']<_0x763e55;){var tag=_0x19d736['uint32']();switch(tag>>>0x3){case 0x1:_0x11a434['revisionId']=_0x19d736['string']();break;case 0x2:_0x11a434['name']=_0x19d736['string']();break;case 0x3:_0x11a434['creatorId']=_0x19d736['string']();break;case 0x4:_0x11a434['authorsIds']=_0x19d736['string']();break;case 0x5:_0x11a434['diffData']=_0x19d736['string']();break;case 0x6:_0x11a434['createdAt']=_0x19d736['string']();break;case 0x7:_0x11a434['attributes']=_0x19d736['string']();break;case 0x8:_0x11a434['toVersion']=_0x19d736['uint32']();break;case 0x9:_0x11a434['fromVersion']=_0x19d736['uint32']();break;case 0xa:_0x11a434['isEmptyCurrent']=_0x19d736['bool']();break;default:_0x19d736['skipType'](0x7&tag);}}return _0x11a434;},RevisionDescriptor['decodeDelimited']=function(_0x2f1272){return _0x2f1272 instanceof _0x246cb1||(_0x2f1272=new _0x246cb1(_0x2f1272)),this['decode'](_0x2f1272,_0x2f1272['uint32']());},RevisionDescriptor['verify']=function(_0x401a4d){return'object'!=typeof _0x401a4d||null===_0x401a4d?'object\x20expected':null!=_0x401a4d['revisionId']&&_0x401a4d['hasOwnProperty']('revisionId')&&!$util['isString'](_0x401a4d['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x401a4d['name']&&_0x401a4d['hasOwnProperty']('name')&&!$util['isString'](_0x401a4d['name'])?'name:\x20string\x20expected':null!=_0x401a4d['creatorId']&&_0x401a4d['hasOwnProperty']('creatorId')&&!$util['isString'](_0x401a4d['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x401a4d['authorsIds']&&_0x401a4d['hasOwnProperty']('authorsIds')&&!$util['isString'](_0x401a4d['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x401a4d['diffData']&&_0x401a4d['hasOwnProperty']('diffData')&&!$util['isString'](_0x401a4d['diffData'])?'diffData:\x20string\x20expected':null!=_0x401a4d['createdAt']&&_0x401a4d['hasOwnProperty']('createdAt')&&!$util['isString'](_0x401a4d['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x401a4d['attributes']&&_0x401a4d['hasOwnProperty']('attributes')&&!$util['isString'](_0x401a4d['attributes'])?'attributes:\x20string\x20expected':null!=_0x401a4d['toVersion']&&_0x401a4d['hasOwnProperty']('toVersion')&&!$util['isInteger'](_0x401a4d['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x401a4d['fromVersion']&&_0x401a4d['hasOwnProperty']('fromVersion')&&!$util['isInteger'](_0x401a4d['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x401a4d['isEmptyCurrent']&&_0x401a4d['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x401a4d['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},RevisionDescriptor['fromObject']=function(object){if(object instanceof $root['RevisionDescriptor'])return object;var _0x2a0f65=new $root['RevisionDescriptor']();return null!=object['revisionId']&&(_0x2a0f65['revisionId']=String(object['revisionId'])),null!=object['name']&&(_0x2a0f65['name']=String(object['name'])),null!=object['creatorId']&&(_0x2a0f65['creatorId']=String(object['creatorId'])),null!=object['authorsIds']&&(_0x2a0f65['authorsIds']=String(object['authorsIds'])),null!=object['diffData']&&(_0x2a0f65['diffData']=String(object['diffData'])),null!=object['createdAt']&&(_0x2a0f65['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x2a0f65['attributes']=String(object['attributes'])),null!=object['toVersion']&&(_0x2a0f65['toVersion']=object['toVersion']>>>0x0),null!=object['fromVersion']&&(_0x2a0f65['fromVersion']=object['fromVersion']>>>0x0),null!=object['isEmptyCurrent']&&(_0x2a0f65['isEmptyCurrent']=Boolean(object['isEmptyCurrent'])),_0x2a0f65;},RevisionDescriptor['toObject']=function(_0x41ebd6,options){options||(options={});var object={};return options['defaults']&&(object['revisionId']='',object['name']='',object['creatorId']='',object['authorsIds']='',object['diffData']='',object['createdAt']='',object['attributes']='',object['toVersion']=0x0,object['fromVersion']=0x0,object['isEmptyCurrent']=!0x1),null!=_0x41ebd6['revisionId']&&_0x41ebd6['hasOwnProperty']('revisionId')&&(object['revisionId']=_0x41ebd6['revisionId']),null!=_0x41ebd6['name']&&_0x41ebd6['hasOwnProperty']('name')&&(object['name']=_0x41ebd6['name']),null!=_0x41ebd6['creatorId']&&_0x41ebd6['hasOwnProperty']('creatorId')&&(object['creatorId']=_0x41ebd6['creatorId']),null!=_0x41ebd6['authorsIds']&&_0x41ebd6['hasOwnProperty']('authorsIds')&&(object['authorsIds']=_0x41ebd6['authorsIds']),null!=_0x41ebd6['diffData']&&_0x41ebd6['hasOwnProperty']('diffData')&&(object['diffData']=_0x41ebd6['diffData']),null!=_0x41ebd6['createdAt']&&_0x41ebd6['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x41ebd6['createdAt']),null!=_0x41ebd6['attributes']&&_0x41ebd6['hasOwnProperty']('attributes')&&(object['attributes']=_0x41ebd6['attributes']),null!=_0x41ebd6['toVersion']&&_0x41ebd6['hasOwnProperty']('toVersion')&&(object['toVersion']=_0x41ebd6['toVersion']),null!=_0x41ebd6['fromVersion']&&_0x41ebd6['hasOwnProperty']('fromVersion')&&(object['fromVersion']=_0x41ebd6['fromVersion']),null!=_0x41ebd6['isEmptyCurrent']&&_0x41ebd6['hasOwnProperty']('isEmptyCurrent')&&(object['isEmptyCurrent']=_0x41ebd6['isEmptyCurrent']),object;},RevisionDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionDescriptor';},RevisionDescriptor;}()),$root['RevisionHistoryConnectMessage']=(function(){function RevisionHistoryConnectMessage(properties){if(properties){for(var _0x3df92a=Object['keys'](properties),_0x37d044=0x0;_0x37d044<_0x3df92a['length'];++_0x37d044)null!=properties[_0x3df92a[_0x37d044]]&&(this[_0x3df92a[_0x37d044]]=properties[_0x3df92a[_0x37d044]]);}}return RevisionHistoryConnectMessage['prototype']['documentId']='',RevisionHistoryConnectMessage['create']=function(properties){return new RevisionHistoryConnectMessage(properties);},RevisionHistoryConnectMessage['encode']=function(_0x3d652d,writer){return writer||(writer=$Writer['create']()),null!=_0x3d652d['documentId']&&Object['hasOwnProperty']['call'](_0x3d652d,'documentId')&&writer['uint32'](0xa)['string'](_0x3d652d['documentId']),writer;},RevisionHistoryConnectMessage['encodeDelimited']=function(_0x394706,writer){return this['encode'](_0x394706,writer)['ldelim']();},RevisionHistoryConnectMessage['decode']=function(_0x803386,length){_0x803386 instanceof _0x246cb1||(_0x803386=_0x246cb1['create'](_0x803386));for(var _0x221624=void 0x0===length?_0x803386['len']:_0x803386['pos']+length,_0x4a5b71=new $root['RevisionHistoryConnectMessage']();_0x803386['pos']<_0x221624;){var tag=_0x803386['uint32']();if(tag>>>0x3==0x1)_0x4a5b71['documentId']=_0x803386['string']();else _0x803386['skipType'](0x7&tag);}return _0x4a5b71;},RevisionHistoryConnectMessage['decodeDelimited']=function(_0x2856b0){return _0x2856b0 instanceof _0x246cb1||(_0x2856b0=new _0x246cb1(_0x2856b0)),this['decode'](_0x2856b0,_0x2856b0['uint32']());},RevisionHistoryConnectMessage['verify']=function(_0x3fd758){return'object'!=typeof _0x3fd758||null===_0x3fd758?'object\x20expected':null!=_0x3fd758['documentId']&&_0x3fd758['hasOwnProperty']('documentId')&&!$util['isString'](_0x3fd758['documentId'])?'documentId:\x20string\x20expected':null;},RevisionHistoryConnectMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryConnectMessage'])return object;var _0x3dd031=new $root['RevisionHistoryConnectMessage']();return null!=object['documentId']&&(_0x3dd031['documentId']=String(object['documentId'])),_0x3dd031;},RevisionHistoryConnectMessage['toObject']=function(_0x1fe3ba,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x1fe3ba['documentId']&&_0x1fe3ba['hasOwnProperty']('documentId')&&(object['documentId']=_0x1fe3ba['documentId']),object;},RevisionHistoryConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryConnectMessage';},RevisionHistoryConnectMessage;}()),$root['RevisionHistoryGetRevisionMessage']=(function(){function RevisionHistoryGetRevisionMessage(properties){if(properties){for(var _0x3c330a=Object['keys'](properties),_0x10b9cf=0x0;_0x10b9cf<_0x3c330a['length'];++_0x10b9cf)null!=properties[_0x3c330a[_0x10b9cf]]&&(this[_0x3c330a[_0x10b9cf]]=properties[_0x3c330a[_0x10b9cf]]);}}return RevisionHistoryGetRevisionMessage['prototype']['documentId']='',RevisionHistoryGetRevisionMessage['prototype']['revisionId']='',RevisionHistoryGetRevisionMessage['create']=function(properties){return new RevisionHistoryGetRevisionMessage(properties);},RevisionHistoryGetRevisionMessage['encode']=function(_0x43c113,writer){return writer||(writer=$Writer['create']()),null!=_0x43c113['documentId']&&Object['hasOwnProperty']['call'](_0x43c113,'documentId')&&writer['uint32'](0xa)['string'](_0x43c113['documentId']),null!=_0x43c113['revisionId']&&Object['hasOwnProperty']['call'](_0x43c113,'revisionId')&&writer['uint32'](0x12)['string'](_0x43c113['revisionId']),writer;},RevisionHistoryGetRevisionMessage['encodeDelimited']=function(_0x19367c,writer){return this['encode'](_0x19367c,writer)['ldelim']();},RevisionHistoryGetRevisionMessage['decode']=function(_0x101e73,length){_0x101e73 instanceof _0x246cb1||(_0x101e73=_0x246cb1['create'](_0x101e73));for(var _0x1bfea1=void 0x0===length?_0x101e73['len']:_0x101e73['pos']+length,_0x3ae50c=new $root['RevisionHistoryGetRevisionMessage']();_0x101e73['pos']<_0x1bfea1;){var tag=_0x101e73['uint32']();switch(tag>>>0x3){case 0x1:_0x3ae50c['documentId']=_0x101e73['string']();break;case 0x2:_0x3ae50c['revisionId']=_0x101e73['string']();break;default:_0x101e73['skipType'](0x7&tag);}}return _0x3ae50c;},RevisionHistoryGetRevisionMessage['decodeDelimited']=function(_0x55d5e9){return _0x55d5e9 instanceof _0x246cb1||(_0x55d5e9=new _0x246cb1(_0x55d5e9)),this['decode'](_0x55d5e9,_0x55d5e9['uint32']());},RevisionHistoryGetRevisionMessage['verify']=function(_0x3c0c17){return'object'!=typeof _0x3c0c17||null===_0x3c0c17?'object\x20expected':null!=_0x3c0c17['documentId']&&_0x3c0c17['hasOwnProperty']('documentId')&&!$util['isString'](_0x3c0c17['documentId'])?'documentId:\x20string\x20expected':null!=_0x3c0c17['revisionId']&&_0x3c0c17['hasOwnProperty']('revisionId')&&!$util['isString'](_0x3c0c17['revisionId'])?'revisionId:\x20string\x20expected':null;},RevisionHistoryGetRevisionMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryGetRevisionMessage'])return object;var _0x190faf=new $root['RevisionHistoryGetRevisionMessage']();return null!=object['documentId']&&(_0x190faf['documentId']=String(object['documentId'])),null!=object['revisionId']&&(_0x190faf['revisionId']=String(object['revisionId'])),_0x190faf;},RevisionHistoryGetRevisionMessage['toObject']=function(_0x482a38,options){options||(options={});var object={};return options['defaults']&&(object['documentId']='',object['revisionId']=''),null!=_0x482a38['documentId']&&_0x482a38['hasOwnProperty']('documentId')&&(object['documentId']=_0x482a38['documentId']),null!=_0x482a38['revisionId']&&_0x482a38['hasOwnProperty']('revisionId')&&(object['revisionId']=_0x482a38['revisionId']),object;},RevisionHistoryGetRevisionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryGetRevisionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryGetRevisionMessage';},RevisionHistoryGetRevisionMessage;}()),$root['RevisionHistoryReconnectMessage']=(function(){function RevisionHistoryReconnectMessage(properties){if(properties){for(var _0x305778=Object['keys'](properties),_0x376241=0x0;_0x376241<_0x305778['length'];++_0x376241)null!=properties[_0x305778[_0x376241]]&&(this[_0x305778[_0x376241]]=properties[_0x305778[_0x376241]]);}}return RevisionHistoryReconnectMessage['prototype']['documentId']='',RevisionHistoryReconnectMessage['prototype']['requestId']=0x0,RevisionHistoryReconnectMessage['create']=function(properties){return new RevisionHistoryReconnectMessage(properties);},RevisionHistoryReconnectMessage['encode']=function(_0x1e43d3,writer){return writer||(writer=$Writer['create']()),null!=_0x1e43d3['documentId']&&Object['hasOwnProperty']['call'](_0x1e43d3,'documentId')&&writer['uint32'](0xa)['string'](_0x1e43d3['documentId']),null!=_0x1e43d3['requestId']&&Object['hasOwnProperty']['call'](_0x1e43d3,'requestId')&&writer['uint32'](0x10)['uint32'](_0x1e43d3['requestId']),writer;},RevisionHistoryReconnectMessage['encodeDelimited']=function(_0x3ba468,writer){return this['encode'](_0x3ba468,writer)['ldelim']();},RevisionHistoryReconnectMessage['decode']=function(_0x413ea3,length){_0x413ea3 instanceof _0x246cb1||(_0x413ea3=_0x246cb1['create'](_0x413ea3));for(var _0x5f37f6=void 0x0===length?_0x413ea3['len']:_0x413ea3['pos']+length,_0xb918e9=new $root['RevisionHistoryReconnectMessage']();_0x413ea3['pos']<_0x5f37f6;){var tag=_0x413ea3['uint32']();switch(tag>>>0x3){case 0x1:_0xb918e9['documentId']=_0x413ea3['string']();break;case 0x2:_0xb918e9['requestId']=_0x413ea3['uint32']();break;default:_0x413ea3['skipType'](0x7&tag);}}return _0xb918e9;},RevisionHistoryReconnectMessage['decodeDelimited']=function(_0x372152){return _0x372152 instanceof _0x246cb1||(_0x372152=new _0x246cb1(_0x372152)),this['decode'](_0x372152,_0x372152['uint32']());},RevisionHistoryReconnectMessage['verify']=function(_0x49c814){return'object'!=typeof _0x49c814||null===_0x49c814?'object\x20expected':null!=_0x49c814['documentId']&&_0x49c814['hasOwnProperty']('documentId')&&!$util['isString'](_0x49c814['documentId'])?'documentId:\x20string\x20expected':null!=_0x49c814['requestId']&&_0x49c814['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x49c814['requestId'])?'requestId:\x20integer\x20expected':null;},RevisionHistoryReconnectMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryReconnectMessage'])return object;var _0x592444=new $root['RevisionHistoryReconnectMessage']();return null!=object['documentId']&&(_0x592444['documentId']=String(object['documentId'])),null!=object['requestId']&&(_0x592444['requestId']=object['requestId']>>>0x0),_0x592444;},RevisionHistoryReconnectMessage['toObject']=function(_0x3c2596,options){options||(options={});var object={};return options['defaults']&&(object['documentId']='',object['requestId']=0x0),null!=_0x3c2596['documentId']&&_0x3c2596['hasOwnProperty']('documentId')&&(object['documentId']=_0x3c2596['documentId']),null!=_0x3c2596['requestId']&&_0x3c2596['hasOwnProperty']('requestId')&&(object['requestId']=_0x3c2596['requestId']),object;},RevisionHistoryReconnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryReconnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryReconnectMessage';},RevisionHistoryReconnectMessage;}()),$root['RevisionHistoryUpdateRevisionsMessage']=(function(){function RevisionHistoryUpdateRevisionsMessage(properties){if(this['revisions']=[],properties){for(var _0x9c4305=Object['keys'](properties),_0x2c5ccc=0x0;_0x2c5ccc<_0x9c4305['length'];++_0x2c5ccc)null!=properties[_0x9c4305[_0x2c5ccc]]&&(this[_0x9c4305[_0x2c5ccc]]=properties[_0x9c4305[_0x2c5ccc]]);}}return RevisionHistoryUpdateRevisionsMessage['prototype']['documentId']='',RevisionHistoryUpdateRevisionsMessage['prototype']['requestId']=0x0,RevisionHistoryUpdateRevisionsMessage['prototype']['revisions']=$util['emptyArray'],RevisionHistoryUpdateRevisionsMessage['create']=function(properties){return new RevisionHistoryUpdateRevisionsMessage(properties);},RevisionHistoryUpdateRevisionsMessage['encode']=function(_0x3340ef,writer){if(writer||(writer=$Writer['create']()),null!=_0x3340ef['documentId']&&Object['hasOwnProperty']['call'](_0x3340ef,'documentId')&&writer['uint32'](0xa)['string'](_0x3340ef['documentId']),null!=_0x3340ef['requestId']&&Object['hasOwnProperty']['call'](_0x3340ef,'requestId')&&writer['uint32'](0x10)['uint32'](_0x3340ef['requestId']),null!=_0x3340ef['revisions']&&_0x3340ef['revisions']['length']){for(var _0x14a423=0x0;_0x14a423<_0x3340ef['revisions']['length'];++_0x14a423)$root['RevisionDescriptor']['encode'](_0x3340ef['revisions'][_0x14a423],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},RevisionHistoryUpdateRevisionsMessage['encodeDelimited']=function(_0x487e15,writer){return this['encode'](_0x487e15,writer)['ldelim']();},RevisionHistoryUpdateRevisionsMessage['decode']=function(_0x3ce539,length){_0x3ce539 instanceof _0x246cb1||(_0x3ce539=_0x246cb1['create'](_0x3ce539));for(var _0x445634=void 0x0===length?_0x3ce539['len']:_0x3ce539['pos']+length,_0x2f75e3=new $root['RevisionHistoryUpdateRevisionsMessage']();_0x3ce539['pos']<_0x445634;){var tag=_0x3ce539['uint32']();switch(tag>>>0x3){case 0x1:_0x2f75e3['documentId']=_0x3ce539['string']();break;case 0x2:_0x2f75e3['requestId']=_0x3ce539['uint32']();break;case 0x3:_0x2f75e3['revisions']&&_0x2f75e3['revisions']['length']||(_0x2f75e3['revisions']=[]),_0x2f75e3['revisions']['push']($root['RevisionDescriptor']['decode'](_0x3ce539,_0x3ce539['uint32']()));break;default:_0x3ce539['skipType'](0x7&tag);}}return _0x2f75e3;},RevisionHistoryUpdateRevisionsMessage['decodeDelimited']=function(_0x291de4){return _0x291de4 instanceof _0x246cb1||(_0x291de4=new _0x246cb1(_0x291de4)),this['decode'](_0x291de4,_0x291de4['uint32']());},RevisionHistoryUpdateRevisionsMessage['verify']=function(_0x47379f){if('object'!=typeof _0x47379f||null===_0x47379f)return'object\x20expected';if(null!=_0x47379f['documentId']&&_0x47379f['hasOwnProperty']('documentId')&&!$util['isString'](_0x47379f['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x47379f['requestId']&&_0x47379f['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x47379f['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x47379f['revisions']&&_0x47379f['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x47379f['revisions']))return'revisions:\x20array\x20expected';for(var _0x56511c=0x0;_0x56511c<_0x47379f['revisions']['length'];++_0x56511c){var _0x7b918=$root['RevisionDescriptor']['verify'](_0x47379f['revisions'][_0x56511c]);if(_0x7b918)return'revisions.'+_0x7b918;}}return null;},RevisionHistoryUpdateRevisionsMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryUpdateRevisionsMessage'])return object;var _0x45c451=new $root['RevisionHistoryUpdateRevisionsMessage']();if(null!=object['documentId']&&(_0x45c451['documentId']=String(object['documentId'])),null!=object['requestId']&&(_0x45c451['requestId']=object['requestId']>>>0x0),object['revisions']){if(!Array['isArray'](object['revisions']))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20array\x20expected');_0x45c451['revisions']=[];for(var _0x1e78b5=0x0;_0x1e78b5<object['revisions']['length'];++_0x1e78b5){if('object'!=typeof object['revisions'][_0x1e78b5])throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20object\x20expected');_0x45c451['revisions'][_0x1e78b5]=$root['RevisionDescriptor']['fromObject'](object['revisions'][_0x1e78b5]);}}return _0x45c451;},RevisionHistoryUpdateRevisionsMessage['toObject']=function(_0xd216bd,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['revisions']=[]),options['defaults']&&(object['documentId']='',object['requestId']=0x0),null!=_0xd216bd['documentId']&&_0xd216bd['hasOwnProperty']('documentId')&&(object['documentId']=_0xd216bd['documentId']),null!=_0xd216bd['requestId']&&_0xd216bd['hasOwnProperty']('requestId')&&(object['requestId']=_0xd216bd['requestId']),_0xd216bd['revisions']&&_0xd216bd['revisions']['length']){object['revisions']=[];for(var _0x28c146=0x0;_0x28c146<_0xd216bd['revisions']['length'];++_0x28c146)object['revisions'][_0x28c146]=$root['RevisionDescriptor']['toObject'](_0xd216bd['revisions'][_0x28c146],options);}return object;},RevisionHistoryUpdateRevisionsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryUpdateRevisionsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryUpdateRevisionsMessage';},RevisionHistoryUpdateRevisionsMessage;}()),$root['RevisionHistoryConnectResponse']=(function(){function RevisionHistoryConnectResponse(properties){if(this['revisions']=[],properties){for(var _0x3f5843=Object['keys'](properties),_0x2f3a0f=0x0;_0x2f3a0f<_0x3f5843['length'];++_0x2f3a0f)null!=properties[_0x3f5843[_0x2f3a0f]]&&(this[_0x3f5843[_0x2f3a0f]]=properties[_0x3f5843[_0x2f3a0f]]);}}return RevisionHistoryConnectResponse['prototype']['channel']='',RevisionHistoryConnectResponse['prototype']['requestId']=0x0,RevisionHistoryConnectResponse['prototype']['revisions']=$util['emptyArray'],RevisionHistoryConnectResponse['create']=function(properties){return new RevisionHistoryConnectResponse(properties);},RevisionHistoryConnectResponse['encode']=function(_0x180da7,writer){if(writer||(writer=$Writer['create']()),null!=_0x180da7['channel']&&Object['hasOwnProperty']['call'](_0x180da7,'channel')&&writer['uint32'](0xa)['string'](_0x180da7['channel']),null!=_0x180da7['requestId']&&Object['hasOwnProperty']['call'](_0x180da7,'requestId')&&writer['uint32'](0x10)['uint32'](_0x180da7['requestId']),null!=_0x180da7['revisions']&&_0x180da7['revisions']['length']){for(var _0x2f87d7=0x0;_0x2f87d7<_0x180da7['revisions']['length'];++_0x2f87d7)$root['RevisionDescriptor']['encode'](_0x180da7['revisions'][_0x2f87d7],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},RevisionHistoryConnectResponse['encodeDelimited']=function(_0x6f961,writer){return this['encode'](_0x6f961,writer)['ldelim']();},RevisionHistoryConnectResponse['decode']=function(_0x4c8edb,length){_0x4c8edb instanceof _0x246cb1||(_0x4c8edb=_0x246cb1['create'](_0x4c8edb));for(var _0x2f8a3b=void 0x0===length?_0x4c8edb['len']:_0x4c8edb['pos']+length,_0x975405=new $root['RevisionHistoryConnectResponse']();_0x4c8edb['pos']<_0x2f8a3b;){var tag=_0x4c8edb['uint32']();switch(tag>>>0x3){case 0x1:_0x975405['channel']=_0x4c8edb['string']();break;case 0x2:_0x975405['requestId']=_0x4c8edb['uint32']();break;case 0x3:_0x975405['revisions']&&_0x975405['revisions']['length']||(_0x975405['revisions']=[]),_0x975405['revisions']['push']($root['RevisionDescriptor']['decode'](_0x4c8edb,_0x4c8edb['uint32']()));break;default:_0x4c8edb['skipType'](0x7&tag);}}return _0x975405;},RevisionHistoryConnectResponse['decodeDelimited']=function(_0x4dbecf){return _0x4dbecf instanceof _0x246cb1||(_0x4dbecf=new _0x246cb1(_0x4dbecf)),this['decode'](_0x4dbecf,_0x4dbecf['uint32']());},RevisionHistoryConnectResponse['verify']=function(_0xc6495c){if('object'!=typeof _0xc6495c||null===_0xc6495c)return'object\x20expected';if(null!=_0xc6495c['channel']&&_0xc6495c['hasOwnProperty']('channel')&&!$util['isString'](_0xc6495c['channel']))return'channel:\x20string\x20expected';if(null!=_0xc6495c['requestId']&&_0xc6495c['hasOwnProperty']('requestId')&&!$util['isInteger'](_0xc6495c['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0xc6495c['revisions']&&_0xc6495c['hasOwnProperty']('revisions')){if(!Array['isArray'](_0xc6495c['revisions']))return'revisions:\x20array\x20expected';for(var _0x5e1cb1=0x0;_0x5e1cb1<_0xc6495c['revisions']['length'];++_0x5e1cb1){var _0x5df454=$root['RevisionDescriptor']['verify'](_0xc6495c['revisions'][_0x5e1cb1]);if(_0x5df454)return'revisions.'+_0x5df454;}}return null;},RevisionHistoryConnectResponse['fromObject']=function(object){if(object instanceof $root['RevisionHistoryConnectResponse'])return object;var _0x29f572=new $root['RevisionHistoryConnectResponse']();if(null!=object['channel']&&(_0x29f572['channel']=String(object['channel'])),null!=object['requestId']&&(_0x29f572['requestId']=object['requestId']>>>0x0),object['revisions']){if(!Array['isArray'](object['revisions']))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20array\x20expected');_0x29f572['revisions']=[];for(var _0x511629=0x0;_0x511629<object['revisions']['length'];++_0x511629){if('object'!=typeof object['revisions'][_0x511629])throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20object\x20expected');_0x29f572['revisions'][_0x511629]=$root['RevisionDescriptor']['fromObject'](object['revisions'][_0x511629]);}}return _0x29f572;},RevisionHistoryConnectResponse['toObject']=function(_0x2f10a7,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['revisions']=[]),options['defaults']&&(object['channel']='',object['requestId']=0x0),null!=_0x2f10a7['channel']&&_0x2f10a7['hasOwnProperty']('channel')&&(object['channel']=_0x2f10a7['channel']),null!=_0x2f10a7['requestId']&&_0x2f10a7['hasOwnProperty']('requestId')&&(object['requestId']=_0x2f10a7['requestId']),_0x2f10a7['revisions']&&_0x2f10a7['revisions']['length']){object['revisions']=[];for(var _0x897086=0x0;_0x897086<_0x2f10a7['revisions']['length'];++_0x897086)object['revisions'][_0x897086]=$root['RevisionDescriptor']['toObject'](_0x2f10a7['revisions'][_0x897086],options);}return object;},RevisionHistoryConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryConnectResponse';},RevisionHistoryConnectResponse;}()),$root['RevisionHistoryGetRevisionResponse']=(function(){function RevisionHistoryGetRevisionResponse(properties){if(properties){for(var _0x1b7a72=Object['keys'](properties),_0x3c3542=0x0;_0x3c3542<_0x1b7a72['length'];++_0x3c3542)null!=properties[_0x1b7a72[_0x3c3542]]&&(this[_0x1b7a72[_0x3c3542]]=properties[_0x1b7a72[_0x3c3542]]);}}return RevisionHistoryGetRevisionResponse['prototype']['revisionId']='',RevisionHistoryGetRevisionResponse['prototype']['name']='',RevisionHistoryGetRevisionResponse['prototype']['creatorId']='',RevisionHistoryGetRevisionResponse['prototype']['authorsIds']='',RevisionHistoryGetRevisionResponse['prototype']['diffData']='',RevisionHistoryGetRevisionResponse['prototype']['createdAt']='',RevisionHistoryGetRevisionResponse['prototype']['attributes']='',RevisionHistoryGetRevisionResponse['prototype']['toVersion']=0x0,RevisionHistoryGetRevisionResponse['prototype']['fromVersion']=0x0,RevisionHistoryGetRevisionResponse['prototype']['isEmptyCurrent']=!0x1,RevisionHistoryGetRevisionResponse['create']=function(properties){return new RevisionHistoryGetRevisionResponse(properties);},RevisionHistoryGetRevisionResponse['encode']=function(_0x2b8fa7,writer){return writer||(writer=$Writer['create']()),null!=_0x2b8fa7['revisionId']&&Object['hasOwnProperty']['call'](_0x2b8fa7,'revisionId')&&writer['uint32'](0xa)['string'](_0x2b8fa7['revisionId']),null!=_0x2b8fa7['name']&&Object['hasOwnProperty']['call'](_0x2b8fa7,'name')&&writer['uint32'](0x12)['string'](_0x2b8fa7['name']),null!=_0x2b8fa7['creatorId']&&Object['hasOwnProperty']['call'](_0x2b8fa7,'creatorId')&&writer['uint32'](0x1a)['string'](_0x2b8fa7['creatorId']),null!=_0x2b8fa7['authorsIds']&&Object['hasOwnProperty']['call'](_0x2b8fa7,'authorsIds')&&writer['uint32'](0x22)['string'](_0x2b8fa7['authorsIds']),null!=_0x2b8fa7['diffData']&&Object['hasOwnProperty']['call'](_0x2b8fa7,'diffData')&&writer['uint32'](0x2a)['string'](_0x2b8fa7['diffData']),null!=_0x2b8fa7['createdAt']&&Object['hasOwnProperty']['call'](_0x2b8fa7,'createdAt')&&writer['uint32'](0x32)['string'](_0x2b8fa7['createdAt']),null!=_0x2b8fa7['attributes']&&Object['hasOwnProperty']['call'](_0x2b8fa7,'attributes')&&writer['uint32'](0x3a)['string'](_0x2b8fa7['attributes']),null!=_0x2b8fa7['toVersion']&&Object['hasOwnProperty']['call'](_0x2b8fa7,'toVersion')&&writer['uint32'](0x40)['uint32'](_0x2b8fa7['toVersion']),null!=_0x2b8fa7['fromVersion']&&Object['hasOwnProperty']['call'](_0x2b8fa7,'fromVersion')&&writer['uint32'](0x48)['uint32'](_0x2b8fa7['fromVersion']),null!=_0x2b8fa7['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x2b8fa7,'isEmptyCurrent')&&writer['uint32'](0x50)['bool'](_0x2b8fa7['isEmptyCurrent']),writer;},RevisionHistoryGetRevisionResponse['encodeDelimited']=function(_0x3381c0,writer){return this['encode'](_0x3381c0,writer)['ldelim']();},RevisionHistoryGetRevisionResponse['decode']=function(_0x1961a4,length){_0x1961a4 instanceof _0x246cb1||(_0x1961a4=_0x246cb1['create'](_0x1961a4));for(var _0x302b09=void 0x0===length?_0x1961a4['len']:_0x1961a4['pos']+length,_0x507acd=new $root['RevisionHistoryGetRevisionResponse']();_0x1961a4['pos']<_0x302b09;){var tag=_0x1961a4['uint32']();switch(tag>>>0x3){case 0x1:_0x507acd['revisionId']=_0x1961a4['string']();break;case 0x2:_0x507acd['name']=_0x1961a4['string']();break;case 0x3:_0x507acd['creatorId']=_0x1961a4['string']();break;case 0x4:_0x507acd['authorsIds']=_0x1961a4['string']();break;case 0x5:_0x507acd['diffData']=_0x1961a4['string']();break;case 0x6:_0x507acd['createdAt']=_0x1961a4['string']();break;case 0x7:_0x507acd['attributes']=_0x1961a4['string']();break;case 0x8:_0x507acd['toVersion']=_0x1961a4['uint32']();break;case 0x9:_0x507acd['fromVersion']=_0x1961a4['uint32']();break;case 0xa:_0x507acd['isEmptyCurrent']=_0x1961a4['bool']();break;default:_0x1961a4['skipType'](0x7&tag);}}return _0x507acd;},RevisionHistoryGetRevisionResponse['decodeDelimited']=function(_0x345c18){return _0x345c18 instanceof _0x246cb1||(_0x345c18=new _0x246cb1(_0x345c18)),this['decode'](_0x345c18,_0x345c18['uint32']());},RevisionHistoryGetRevisionResponse['verify']=function(_0x3b8b89){return'object'!=typeof _0x3b8b89||null===_0x3b8b89?'object\x20expected':null!=_0x3b8b89['revisionId']&&_0x3b8b89['hasOwnProperty']('revisionId')&&!$util['isString'](_0x3b8b89['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x3b8b89['name']&&_0x3b8b89['hasOwnProperty']('name')&&!$util['isString'](_0x3b8b89['name'])?'name:\x20string\x20expected':null!=_0x3b8b89['creatorId']&&_0x3b8b89['hasOwnProperty']('creatorId')&&!$util['isString'](_0x3b8b89['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x3b8b89['authorsIds']&&_0x3b8b89['hasOwnProperty']('authorsIds')&&!$util['isString'](_0x3b8b89['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x3b8b89['diffData']&&_0x3b8b89['hasOwnProperty']('diffData')&&!$util['isString'](_0x3b8b89['diffData'])?'diffData:\x20string\x20expected':null!=_0x3b8b89['createdAt']&&_0x3b8b89['hasOwnProperty']('createdAt')&&!$util['isString'](_0x3b8b89['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x3b8b89['attributes']&&_0x3b8b89['hasOwnProperty']('attributes')&&!$util['isString'](_0x3b8b89['attributes'])?'attributes:\x20string\x20expected':null!=_0x3b8b89['toVersion']&&_0x3b8b89['hasOwnProperty']('toVersion')&&!$util['isInteger'](_0x3b8b89['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x3b8b89['fromVersion']&&_0x3b8b89['hasOwnProperty']('fromVersion')&&!$util['isInteger'](_0x3b8b89['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x3b8b89['isEmptyCurrent']&&_0x3b8b89['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x3b8b89['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},RevisionHistoryGetRevisionResponse['fromObject']=function(object){if(object instanceof $root['RevisionHistoryGetRevisionResponse'])return object;var _0x1e4b98=new $root['RevisionHistoryGetRevisionResponse']();return null!=object['revisionId']&&(_0x1e4b98['revisionId']=String(object['revisionId'])),null!=object['name']&&(_0x1e4b98['name']=String(object['name'])),null!=object['creatorId']&&(_0x1e4b98['creatorId']=String(object['creatorId'])),null!=object['authorsIds']&&(_0x1e4b98['authorsIds']=String(object['authorsIds'])),null!=object['diffData']&&(_0x1e4b98['diffData']=String(object['diffData'])),null!=object['createdAt']&&(_0x1e4b98['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x1e4b98['attributes']=String(object['attributes'])),null!=object['toVersion']&&(_0x1e4b98['toVersion']=object['toVersion']>>>0x0),null!=object['fromVersion']&&(_0x1e4b98['fromVersion']=object['fromVersion']>>>0x0),null!=object['isEmptyCurrent']&&(_0x1e4b98['isEmptyCurrent']=Boolean(object['isEmptyCurrent'])),_0x1e4b98;},RevisionHistoryGetRevisionResponse['toObject']=function(_0x457d2f,options){options||(options={});var object={};return options['defaults']&&(object['revisionId']='',object['name']='',object['creatorId']='',object['authorsIds']='',object['diffData']='',object['createdAt']='',object['attributes']='',object['toVersion']=0x0,object['fromVersion']=0x0,object['isEmptyCurrent']=!0x1),null!=_0x457d2f['revisionId']&&_0x457d2f['hasOwnProperty']('revisionId')&&(object['revisionId']=_0x457d2f['revisionId']),null!=_0x457d2f['name']&&_0x457d2f['hasOwnProperty']('name')&&(object['name']=_0x457d2f['name']),null!=_0x457d2f['creatorId']&&_0x457d2f['hasOwnProperty']('creatorId')&&(object['creatorId']=_0x457d2f['creatorId']),null!=_0x457d2f['authorsIds']&&_0x457d2f['hasOwnProperty']('authorsIds')&&(object['authorsIds']=_0x457d2f['authorsIds']),null!=_0x457d2f['diffData']&&_0x457d2f['hasOwnProperty']('diffData')&&(object['diffData']=_0x457d2f['diffData']),null!=_0x457d2f['createdAt']&&_0x457d2f['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x457d2f['createdAt']),null!=_0x457d2f['attributes']&&_0x457d2f['hasOwnProperty']('attributes')&&(object['attributes']=_0x457d2f['attributes']),null!=_0x457d2f['toVersion']&&_0x457d2f['hasOwnProperty']('toVersion')&&(object['toVersion']=_0x457d2f['toVersion']),null!=_0x457d2f['fromVersion']&&_0x457d2f['hasOwnProperty']('fromVersion')&&(object['fromVersion']=_0x457d2f['fromVersion']),null!=_0x457d2f['isEmptyCurrent']&&_0x457d2f['hasOwnProperty']('isEmptyCurrent')&&(object['isEmptyCurrent']=_0x457d2f['isEmptyCurrent']),object;},RevisionHistoryGetRevisionResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryGetRevisionResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryGetRevisionResponse';},RevisionHistoryGetRevisionResponse;}()),$root['RevisionHistoryUpdateRevisionsResponse']=(function(){function RevisionHistoryUpdateRevisionsResponse(properties){if(properties){for(var _0x45714c=Object['keys'](properties),_0x499736=0x0;_0x499736<_0x45714c['length'];++_0x499736)null!=properties[_0x45714c[_0x499736]]&&(this[_0x45714c[_0x499736]]=properties[_0x45714c[_0x499736]]);}}return RevisionHistoryUpdateRevisionsResponse['prototype']['requestId']=0x0,RevisionHistoryUpdateRevisionsResponse['create']=function(properties){return new RevisionHistoryUpdateRevisionsResponse(properties);},RevisionHistoryUpdateRevisionsResponse['encode']=function(_0x53d875,writer){return writer||(writer=$Writer['create']()),null!=_0x53d875['requestId']&&Object['hasOwnProperty']['call'](_0x53d875,'requestId')&&writer['uint32'](0x8)['uint32'](_0x53d875['requestId']),writer;},RevisionHistoryUpdateRevisionsResponse['encodeDelimited']=function(_0x20e21a,writer){return this['encode'](_0x20e21a,writer)['ldelim']();},RevisionHistoryUpdateRevisionsResponse['decode']=function(_0x2494d3,length){_0x2494d3 instanceof _0x246cb1||(_0x2494d3=_0x246cb1['create'](_0x2494d3));for(var _0x2b5690=void 0x0===length?_0x2494d3['len']:_0x2494d3['pos']+length,_0x198186=new $root['RevisionHistoryUpdateRevisionsResponse']();_0x2494d3['pos']<_0x2b5690;){var tag=_0x2494d3['uint32']();if(tag>>>0x3==0x1)_0x198186['requestId']=_0x2494d3['uint32']();else _0x2494d3['skipType'](0x7&tag);}return _0x198186;},RevisionHistoryUpdateRevisionsResponse['decodeDelimited']=function(_0x5a9f16){return _0x5a9f16 instanceof _0x246cb1||(_0x5a9f16=new _0x246cb1(_0x5a9f16)),this['decode'](_0x5a9f16,_0x5a9f16['uint32']());},RevisionHistoryUpdateRevisionsResponse['verify']=function(_0x3cad81){return'object'!=typeof _0x3cad81||null===_0x3cad81?'object\x20expected':null!=_0x3cad81['requestId']&&_0x3cad81['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x3cad81['requestId'])?'requestId:\x20integer\x20expected':null;},RevisionHistoryUpdateRevisionsResponse['fromObject']=function(object){if(object instanceof $root['RevisionHistoryUpdateRevisionsResponse'])return object;var _0x21a484=new $root['RevisionHistoryUpdateRevisionsResponse']();return null!=object['requestId']&&(_0x21a484['requestId']=object['requestId']>>>0x0),_0x21a484;},RevisionHistoryUpdateRevisionsResponse['toObject']=function(_0x51c87b,options){options||(options={});var object={};return options['defaults']&&(object['requestId']=0x0),null!=_0x51c87b['requestId']&&_0x51c87b['hasOwnProperty']('requestId')&&(object['requestId']=_0x51c87b['requestId']),object;},RevisionHistoryUpdateRevisionsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryUpdateRevisionsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryUpdateRevisionsResponse';},RevisionHistoryUpdateRevisionsResponse;}()),$root['SessionsSocketDescriptor']=(function(){function SessionsSocketDescriptor(properties){if(this['permissions']=[],properties){for(var _0xec6d38=Object['keys'](properties),_0x53cd99=0x0;_0x53cd99<_0xec6d38['length'];++_0x53cd99)null!=properties[_0xec6d38[_0x53cd99]]&&(this[_0xec6d38[_0x53cd99]]=properties[_0xec6d38[_0x53cd99]]);}}return SessionsSocketDescriptor['prototype']['session']='',SessionsSocketDescriptor['prototype']['user']='',SessionsSocketDescriptor['prototype']['role']='',SessionsSocketDescriptor['prototype']['permissions']=$util['emptyArray'],SessionsSocketDescriptor['create']=function(properties){return new SessionsSocketDescriptor(properties);},SessionsSocketDescriptor['encode']=function(_0x1640b9,writer){if(writer||(writer=$Writer['create']()),null!=_0x1640b9['session']&&Object['hasOwnProperty']['call'](_0x1640b9,'session')&&writer['uint32'](0xa)['string'](_0x1640b9['session']),null!=_0x1640b9['user']&&Object['hasOwnProperty']['call'](_0x1640b9,'user')&&writer['uint32'](0x12)['string'](_0x1640b9['user']),null!=_0x1640b9['role']&&Object['hasOwnProperty']['call'](_0x1640b9,'role')&&writer['uint32'](0x1a)['string'](_0x1640b9['role']),null!=_0x1640b9['permissions']&&_0x1640b9['permissions']['length']){for(var _0x7151d=0x0;_0x7151d<_0x1640b9['permissions']['length'];++_0x7151d)writer['uint32'](0x22)['string'](_0x1640b9['permissions'][_0x7151d]);}return writer;},SessionsSocketDescriptor['encodeDelimited']=function(_0x1025a7,writer){return this['encode'](_0x1025a7,writer)['ldelim']();},SessionsSocketDescriptor['decode']=function(_0x46169e,length){_0x46169e instanceof _0x246cb1||(_0x46169e=_0x246cb1['create'](_0x46169e));for(var _0x100dd7=void 0x0===length?_0x46169e['len']:_0x46169e['pos']+length,_0x2beea4=new $root['SessionsSocketDescriptor']();_0x46169e['pos']<_0x100dd7;){var tag=_0x46169e['uint32']();switch(tag>>>0x3){case 0x1:_0x2beea4['session']=_0x46169e['string']();break;case 0x2:_0x2beea4['user']=_0x46169e['string']();break;case 0x3:_0x2beea4['role']=_0x46169e['string']();break;case 0x4:_0x2beea4['permissions']&&_0x2beea4['permissions']['length']||(_0x2beea4['permissions']=[]),_0x2beea4['permissions']['push'](_0x46169e['string']());break;default:_0x46169e['skipType'](0x7&tag);}}return _0x2beea4;},SessionsSocketDescriptor['decodeDelimited']=function(_0x5886dd){return _0x5886dd instanceof _0x246cb1||(_0x5886dd=new _0x246cb1(_0x5886dd)),this['decode'](_0x5886dd,_0x5886dd['uint32']());},SessionsSocketDescriptor['verify']=function(_0x1ac0e1){if('object'!=typeof _0x1ac0e1||null===_0x1ac0e1)return'object\x20expected';if(null!=_0x1ac0e1['session']&&_0x1ac0e1['hasOwnProperty']('session')&&!$util['isString'](_0x1ac0e1['session']))return'session:\x20string\x20expected';if(null!=_0x1ac0e1['user']&&_0x1ac0e1['hasOwnProperty']('user')&&!$util['isString'](_0x1ac0e1['user']))return'user:\x20string\x20expected';if(null!=_0x1ac0e1['role']&&_0x1ac0e1['hasOwnProperty']('role')&&!$util['isString'](_0x1ac0e1['role']))return'role:\x20string\x20expected';if(null!=_0x1ac0e1['permissions']&&_0x1ac0e1['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x1ac0e1['permissions']))return'permissions:\x20array\x20expected';for(var _0x192e36=0x0;_0x192e36<_0x1ac0e1['permissions']['length'];++_0x192e36)if(!$util['isString'](_0x1ac0e1['permissions'][_0x192e36]))return'permissions:\x20string[]\x20expected';}return null;},SessionsSocketDescriptor['fromObject']=function(object){if(object instanceof $root['SessionsSocketDescriptor'])return object;var _0x4fcfaa=new $root['SessionsSocketDescriptor']();if(null!=object['session']&&(_0x4fcfaa['session']=String(object['session'])),null!=object['user']&&(_0x4fcfaa['user']=String(object['user'])),null!=object['role']&&(_0x4fcfaa['role']=String(object['role'])),object['permissions']){if(!Array['isArray'](object['permissions']))throw TypeError('.SessionsSocketDescriptor.permissions:\x20array\x20expected');_0x4fcfaa['permissions']=[];for(var _0x13806a=0x0;_0x13806a<object['permissions']['length'];++_0x13806a)_0x4fcfaa['permissions'][_0x13806a]=String(object['permissions'][_0x13806a]);}return _0x4fcfaa;},SessionsSocketDescriptor['toObject']=function(_0xf943d8,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['permissions']=[]),options['defaults']&&(object['session']='',object['user']='',object['role']=''),null!=_0xf943d8['session']&&_0xf943d8['hasOwnProperty']('session')&&(object['session']=_0xf943d8['session']),null!=_0xf943d8['user']&&_0xf943d8['hasOwnProperty']('user')&&(object['user']=_0xf943d8['user']),null!=_0xf943d8['role']&&_0xf943d8['hasOwnProperty']('role')&&(object['role']=_0xf943d8['role']),_0xf943d8['permissions']&&_0xf943d8['permissions']['length']){object['permissions']=[];for(var _0xfa8026=0x0;_0xfa8026<_0xf943d8['permissions']['length'];++_0xfa8026)object['permissions'][_0xfa8026]=_0xf943d8['permissions'][_0xfa8026];}return object;},SessionsSocketDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SessionsSocketDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SessionsSocketDescriptor';},SessionsSocketDescriptor;}()),$root['SessionsConnectMessage']=(function(){function SessionsConnectMessage(properties){if(properties){for(var _0xd68cea=Object['keys'](properties),_0x4229ca=0x0;_0x4229ca<_0xd68cea['length'];++_0x4229ca)null!=properties[_0xd68cea[_0x4229ca]]&&(this[_0xd68cea[_0x4229ca]]=properties[_0xd68cea[_0x4229ca]]);}}return SessionsConnectMessage['prototype']['id']='',SessionsConnectMessage['prototype']['sessionType']=0x0,SessionsConnectMessage['create']=function(properties){return new SessionsConnectMessage(properties);},SessionsConnectMessage['encode']=function(_0x1ee289,writer){return writer||(writer=$Writer['create']()),null!=_0x1ee289['id']&&Object['hasOwnProperty']['call'](_0x1ee289,'id')&&writer['uint32'](0xa)['string'](_0x1ee289['id']),null!=_0x1ee289['sessionType']&&Object['hasOwnProperty']['call'](_0x1ee289,'sessionType')&&writer['uint32'](0x10)['uint32'](_0x1ee289['sessionType']),writer;},SessionsConnectMessage['encodeDelimited']=function(_0x4c3b43,writer){return this['encode'](_0x4c3b43,writer)['ldelim']();},SessionsConnectMessage['decode']=function(_0x533141,length){_0x533141 instanceof _0x246cb1||(_0x533141=_0x246cb1['create'](_0x533141));for(var _0x1eeafb=void 0x0===length?_0x533141['len']:_0x533141['pos']+length,_0x54bb0a=new $root['SessionsConnectMessage']();_0x533141['pos']<_0x1eeafb;){var tag=_0x533141['uint32']();switch(tag>>>0x3){case 0x1:_0x54bb0a['id']=_0x533141['string']();break;case 0x2:_0x54bb0a['sessionType']=_0x533141['uint32']();break;default:_0x533141['skipType'](0x7&tag);}}return _0x54bb0a;},SessionsConnectMessage['decodeDelimited']=function(_0x269968){return _0x269968 instanceof _0x246cb1||(_0x269968=new _0x246cb1(_0x269968)),this['decode'](_0x269968,_0x269968['uint32']());},SessionsConnectMessage['verify']=function(_0x45c1a2){return'object'!=typeof _0x45c1a2||null===_0x45c1a2?'object\x20expected':null!=_0x45c1a2['id']&&_0x45c1a2['hasOwnProperty']('id')&&!$util['isString'](_0x45c1a2['id'])?'id:\x20string\x20expected':null!=_0x45c1a2['sessionType']&&_0x45c1a2['hasOwnProperty']('sessionType')&&!$util['isInteger'](_0x45c1a2['sessionType'])?'sessionType:\x20integer\x20expected':null;},SessionsConnectMessage['fromObject']=function(object){if(object instanceof $root['SessionsConnectMessage'])return object;var _0x3471b9=new $root['SessionsConnectMessage']();return null!=object['id']&&(_0x3471b9['id']=String(object['id'])),null!=object['sessionType']&&(_0x3471b9['sessionType']=object['sessionType']>>>0x0),_0x3471b9;},SessionsConnectMessage['toObject']=function(_0x5e0a4c,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['sessionType']=0x0),null!=_0x5e0a4c['id']&&_0x5e0a4c['hasOwnProperty']('id')&&(object['id']=_0x5e0a4c['id']),null!=_0x5e0a4c['sessionType']&&_0x5e0a4c['hasOwnProperty']('sessionType')&&(object['sessionType']=_0x5e0a4c['sessionType']),object;},SessionsConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SessionsConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SessionsConnectMessage';},SessionsConnectMessage;}()),$root['SocketConnectMessage']=(function(){function SocketConnectMessage(properties){if(this['permissions']=[],properties){for(var _0x15225c=Object['keys'](properties),_0xcd90fe=0x0;_0xcd90fe<_0x15225c['length'];++_0xcd90fe)null!=properties[_0x15225c[_0xcd90fe]]&&(this[_0x15225c[_0xcd90fe]]=properties[_0x15225c[_0xcd90fe]]);}}return SocketConnectMessage['prototype']['id']='',SocketConnectMessage['prototype']['userId']='',SocketConnectMessage['prototype']['role']='',SocketConnectMessage['prototype']['permissions']=$util['emptyArray'],SocketConnectMessage['create']=function(properties){return new SocketConnectMessage(properties);},SocketConnectMessage['encode']=function(_0xcd1da,writer){if(writer||(writer=$Writer['create']()),null!=_0xcd1da['id']&&Object['hasOwnProperty']['call'](_0xcd1da,'id')&&writer['uint32'](0xa)['string'](_0xcd1da['id']),null!=_0xcd1da['userId']&&Object['hasOwnProperty']['call'](_0xcd1da,'userId')&&writer['uint32'](0x12)['string'](_0xcd1da['userId']),null!=_0xcd1da['role']&&Object['hasOwnProperty']['call'](_0xcd1da,'role')&&writer['uint32'](0x1a)['string'](_0xcd1da['role']),null!=_0xcd1da['permissions']&&_0xcd1da['permissions']['length']){for(var _0x160334=0x0;_0x160334<_0xcd1da['permissions']['length'];++_0x160334)writer['uint32'](0x22)['string'](_0xcd1da['permissions'][_0x160334]);}return writer;},SocketConnectMessage['encodeDelimited']=function(_0x56b1ea,writer){return this['encode'](_0x56b1ea,writer)['ldelim']();},SocketConnectMessage['decode']=function(_0x33867c,length){_0x33867c instanceof _0x246cb1||(_0x33867c=_0x246cb1['create'](_0x33867c));for(var _0x30550d=void 0x0===length?_0x33867c['len']:_0x33867c['pos']+length,_0x16efb1=new $root['SocketConnectMessage']();_0x33867c['pos']<_0x30550d;){var tag=_0x33867c['uint32']();switch(tag>>>0x3){case 0x1:_0x16efb1['id']=_0x33867c['string']();break;case 0x2:_0x16efb1['userId']=_0x33867c['string']();break;case 0x3:_0x16efb1['role']=_0x33867c['string']();break;case 0x4:_0x16efb1['permissions']&&_0x16efb1['permissions']['length']||(_0x16efb1['permissions']=[]),_0x16efb1['permissions']['push'](_0x33867c['string']());break;default:_0x33867c['skipType'](0x7&tag);}}return _0x16efb1;},SocketConnectMessage['decodeDelimited']=function(_0x55313e){return _0x55313e instanceof _0x246cb1||(_0x55313e=new _0x246cb1(_0x55313e)),this['decode'](_0x55313e,_0x55313e['uint32']());},SocketConnectMessage['verify']=function(_0x422a3b){if('object'!=typeof _0x422a3b||null===_0x422a3b)return'object\x20expected';if(null!=_0x422a3b['id']&&_0x422a3b['hasOwnProperty']('id')&&!$util['isString'](_0x422a3b['id']))return'id:\x20string\x20expected';if(null!=_0x422a3b['userId']&&_0x422a3b['hasOwnProperty']('userId')&&!$util['isString'](_0x422a3b['userId']))return'userId:\x20string\x20expected';if(null!=_0x422a3b['role']&&_0x422a3b['hasOwnProperty']('role')&&!$util['isString'](_0x422a3b['role']))return'role:\x20string\x20expected';if(null!=_0x422a3b['permissions']&&_0x422a3b['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x422a3b['permissions']))return'permissions:\x20array\x20expected';for(var _0x3669cf=0x0;_0x3669cf<_0x422a3b['permissions']['length'];++_0x3669cf)if(!$util['isString'](_0x422a3b['permissions'][_0x3669cf]))return'permissions:\x20string[]\x20expected';}return null;},SocketConnectMessage['fromObject']=function(object){if(object instanceof $root['SocketConnectMessage'])return object;var _0x389fec=new $root['SocketConnectMessage']();if(null!=object['id']&&(_0x389fec['id']=String(object['id'])),null!=object['userId']&&(_0x389fec['userId']=String(object['userId'])),null!=object['role']&&(_0x389fec['role']=String(object['role'])),object['permissions']){if(!Array['isArray'](object['permissions']))throw TypeError('.SocketConnectMessage.permissions:\x20array\x20expected');_0x389fec['permissions']=[];for(var _0x53117a=0x0;_0x53117a<object['permissions']['length'];++_0x53117a)_0x389fec['permissions'][_0x53117a]=String(object['permissions'][_0x53117a]);}return _0x389fec;},SocketConnectMessage['toObject']=function(_0x1e0a5e,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['permissions']=[]),options['defaults']&&(object['id']='',object['userId']='',object['role']=''),null!=_0x1e0a5e['id']&&_0x1e0a5e['hasOwnProperty']('id')&&(object['id']=_0x1e0a5e['id']),null!=_0x1e0a5e['userId']&&_0x1e0a5e['hasOwnProperty']('userId')&&(object['userId']=_0x1e0a5e['userId']),null!=_0x1e0a5e['role']&&_0x1e0a5e['hasOwnProperty']('role')&&(object['role']=_0x1e0a5e['role']),_0x1e0a5e['permissions']&&_0x1e0a5e['permissions']['length']){object['permissions']=[];for(var _0x1adff2=0x0;_0x1adff2<_0x1e0a5e['permissions']['length'];++_0x1adff2)object['permissions'][_0x1adff2]=_0x1e0a5e['permissions'][_0x1adff2];}return object;},SocketConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SocketConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SocketConnectMessage';},SocketConnectMessage;}()),$root['SocketDisconnectMessage']=(function(){function SocketDisconnectMessage(properties){if(properties){for(var _0x9d5740=Object['keys'](properties),_0x446d51=0x0;_0x446d51<_0x9d5740['length'];++_0x446d51)null!=properties[_0x9d5740[_0x446d51]]&&(this[_0x9d5740[_0x446d51]]=properties[_0x9d5740[_0x446d51]]);}}return SocketDisconnectMessage['prototype']['id']='',SocketDisconnectMessage['create']=function(properties){return new SocketDisconnectMessage(properties);},SocketDisconnectMessage['encode']=function(_0x2ba9de,writer){return writer||(writer=$Writer['create']()),null!=_0x2ba9de['id']&&Object['hasOwnProperty']['call'](_0x2ba9de,'id')&&writer['uint32'](0xa)['string'](_0x2ba9de['id']),writer;},SocketDisconnectMessage['encodeDelimited']=function(_0x298504,writer){return this['encode'](_0x298504,writer)['ldelim']();},SocketDisconnectMessage['decode']=function(_0x2f1cc5,length){_0x2f1cc5 instanceof _0x246cb1||(_0x2f1cc5=_0x246cb1['create'](_0x2f1cc5));for(var _0x287801=void 0x0===length?_0x2f1cc5['len']:_0x2f1cc5['pos']+length,_0x1fd67a=new $root['SocketDisconnectMessage']();_0x2f1cc5['pos']<_0x287801;){var tag=_0x2f1cc5['uint32']();if(tag>>>0x3==0x1)_0x1fd67a['id']=_0x2f1cc5['string']();else _0x2f1cc5['skipType'](0x7&tag);}return _0x1fd67a;},SocketDisconnectMessage['decodeDelimited']=function(_0x2db091){return _0x2db091 instanceof _0x246cb1||(_0x2db091=new _0x246cb1(_0x2db091)),this['decode'](_0x2db091,_0x2db091['uint32']());},SocketDisconnectMessage['verify']=function(_0x30dd1c){return'object'!=typeof _0x30dd1c||null===_0x30dd1c?'object\x20expected':null!=_0x30dd1c['id']&&_0x30dd1c['hasOwnProperty']('id')&&!$util['isString'](_0x30dd1c['id'])?'id:\x20string\x20expected':null;},SocketDisconnectMessage['fromObject']=function(object){if(object instanceof $root['SocketDisconnectMessage'])return object;var _0x544f6c=new $root['SocketDisconnectMessage']();return null!=object['id']&&(_0x544f6c['id']=String(object['id'])),_0x544f6c;},SocketDisconnectMessage['toObject']=function(_0x4abe6d,options){options||(options={});var object={};return options['defaults']&&(object['id']=''),null!=_0x4abe6d['id']&&_0x4abe6d['hasOwnProperty']('id')&&(object['id']=_0x4abe6d['id']),object;},SocketDisconnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SocketDisconnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SocketDisconnectMessage';},SocketDisconnectMessage;}()),$root['SessionsConnectResponse']=(function(){function SessionsConnectResponse(properties){if(this['sockets']=[],properties){for(var _0x23bf70=Object['keys'](properties),_0xf67343=0x0;_0xf67343<_0x23bf70['length'];++_0xf67343)null!=properties[_0x23bf70[_0xf67343]]&&(this[_0x23bf70[_0xf67343]]=properties[_0x23bf70[_0xf67343]]);}}return SessionsConnectResponse['prototype']['channel']='',SessionsConnectResponse['prototype']['sockets']=$util['emptyArray'],SessionsConnectResponse['create']=function(properties){return new SessionsConnectResponse(properties);},SessionsConnectResponse['encode']=function(_0x2027bd,writer){if(writer||(writer=$Writer['create']()),null!=_0x2027bd['channel']&&Object['hasOwnProperty']['call'](_0x2027bd,'channel')&&writer['uint32'](0xa)['string'](_0x2027bd['channel']),null!=_0x2027bd['sockets']&&_0x2027bd['sockets']['length']){for(var _0x1d900c=0x0;_0x1d900c<_0x2027bd['sockets']['length'];++_0x1d900c)$root['SessionsSocketDescriptor']['encode'](_0x2027bd['sockets'][_0x1d900c],writer['uint32'](0x12)['fork']())['ldelim']();}return writer;},SessionsConnectResponse['encodeDelimited']=function(_0x1cb5ec,writer){return this['encode'](_0x1cb5ec,writer)['ldelim']();},SessionsConnectResponse['decode']=function(_0x18ab4a,length){_0x18ab4a instanceof _0x246cb1||(_0x18ab4a=_0x246cb1['create'](_0x18ab4a));for(var _0x5a7d85=void 0x0===length?_0x18ab4a['len']:_0x18ab4a['pos']+length,_0x54e00f=new $root['SessionsConnectResponse']();_0x18ab4a['pos']<_0x5a7d85;){var tag=_0x18ab4a['uint32']();switch(tag>>>0x3){case 0x1:_0x54e00f['channel']=_0x18ab4a['string']();break;case 0x2:_0x54e00f['sockets']&&_0x54e00f['sockets']['length']||(_0x54e00f['sockets']=[]),_0x54e00f['sockets']['push']($root['SessionsSocketDescriptor']['decode'](_0x18ab4a,_0x18ab4a['uint32']()));break;default:_0x18ab4a['skipType'](0x7&tag);}}return _0x54e00f;},SessionsConnectResponse['decodeDelimited']=function(_0x4ca3b6){return _0x4ca3b6 instanceof _0x246cb1||(_0x4ca3b6=new _0x246cb1(_0x4ca3b6)),this['decode'](_0x4ca3b6,_0x4ca3b6['uint32']());},SessionsConnectResponse['verify']=function(_0x4d6ddd){if('object'!=typeof _0x4d6ddd||null===_0x4d6ddd)return'object\x20expected';if(null!=_0x4d6ddd['channel']&&_0x4d6ddd['hasOwnProperty']('channel')&&!$util['isString'](_0x4d6ddd['channel']))return'channel:\x20string\x20expected';if(null!=_0x4d6ddd['sockets']&&_0x4d6ddd['hasOwnProperty']('sockets')){if(!Array['isArray'](_0x4d6ddd['sockets']))return'sockets:\x20array\x20expected';for(var _0x3a5a49=0x0;_0x3a5a49<_0x4d6ddd['sockets']['length'];++_0x3a5a49){var _0x33293d=$root['SessionsSocketDescriptor']['verify'](_0x4d6ddd['sockets'][_0x3a5a49]);if(_0x33293d)return'sockets.'+_0x33293d;}}return null;},SessionsConnectResponse['fromObject']=function(object){if(object instanceof $root['SessionsConnectResponse'])return object;var _0x1aa562=new $root['SessionsConnectResponse']();if(null!=object['channel']&&(_0x1aa562['channel']=String(object['channel'])),object['sockets']){if(!Array['isArray'](object['sockets']))throw TypeError('.SessionsConnectResponse.sockets:\x20array\x20expected');_0x1aa562['sockets']=[];for(var _0x32cb36=0x0;_0x32cb36<object['sockets']['length'];++_0x32cb36){if('object'!=typeof object['sockets'][_0x32cb36])throw TypeError('.SessionsConnectResponse.sockets:\x20object\x20expected');_0x1aa562['sockets'][_0x32cb36]=$root['SessionsSocketDescriptor']['fromObject'](object['sockets'][_0x32cb36]);}}return _0x1aa562;},SessionsConnectResponse['toObject']=function(_0x1e0819,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['sockets']=[]),options['defaults']&&(object['channel']=''),null!=_0x1e0819['channel']&&_0x1e0819['hasOwnProperty']('channel')&&(object['channel']=_0x1e0819['channel']),_0x1e0819['sockets']&&_0x1e0819['sockets']['length']){object['sockets']=[];for(var _0x11836d=0x0;_0x11836d<_0x1e0819['sockets']['length'];++_0x11836d)object['sockets'][_0x11836d]=$root['SessionsSocketDescriptor']['toObject'](_0x1e0819['sockets'][_0x11836d],options);}return object;},SessionsConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SessionsConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SessionsConnectResponse';},SessionsConnectResponse;}()),$root['SuggestionDescriptor']=(function(){function SuggestionDescriptor(properties){if(properties){for(var _0x30593c=Object['keys'](properties),_0x4781b9=0x0;_0x4781b9<_0x30593c['length'];++_0x4781b9)null!=properties[_0x30593c[_0x4781b9]]&&(this[_0x30593c[_0x4781b9]]=properties[_0x30593c[_0x4781b9]]);}}return SuggestionDescriptor['prototype']['id']='',SuggestionDescriptor['prototype']['authorId']='',SuggestionDescriptor['prototype']['type']='',SuggestionDescriptor['prototype']['createdAt']='',SuggestionDescriptor['prototype']['data']='',SuggestionDescriptor['prototype']['hasComments']=!0x1,SuggestionDescriptor['prototype']['state']='',SuggestionDescriptor['prototype']['attributes']='',SuggestionDescriptor['create']=function(properties){return new SuggestionDescriptor(properties);},SuggestionDescriptor['encode']=function(_0x5b1f54,writer){return writer||(writer=$Writer['create']()),null!=_0x5b1f54['id']&&Object['hasOwnProperty']['call'](_0x5b1f54,'id')&&writer['uint32'](0xa)['string'](_0x5b1f54['id']),null!=_0x5b1f54['authorId']&&Object['hasOwnProperty']['call'](_0x5b1f54,'authorId')&&writer['uint32'](0x12)['string'](_0x5b1f54['authorId']),null!=_0x5b1f54['type']&&Object['hasOwnProperty']['call'](_0x5b1f54,'type')&&writer['uint32'](0x1a)['string'](_0x5b1f54['type']),null!=_0x5b1f54['createdAt']&&Object['hasOwnProperty']['call'](_0x5b1f54,'createdAt')&&writer['uint32'](0x22)['string'](_0x5b1f54['createdAt']),null!=_0x5b1f54['data']&&Object['hasOwnProperty']['call'](_0x5b1f54,'data')&&writer['uint32'](0x2a)['string'](_0x5b1f54['data']),null!=_0x5b1f54['hasComments']&&Object['hasOwnProperty']['call'](_0x5b1f54,'hasComments')&&writer['uint32'](0x30)['bool'](_0x5b1f54['hasComments']),null!=_0x5b1f54['state']&&Object['hasOwnProperty']['call'](_0x5b1f54,'state')&&writer['uint32'](0x3a)['string'](_0x5b1f54['state']),null!=_0x5b1f54['attributes']&&Object['hasOwnProperty']['call'](_0x5b1f54,'attributes')&&writer['uint32'](0x42)['string'](_0x5b1f54['attributes']),writer;},SuggestionDescriptor['encodeDelimited']=function(_0x3ffbdf,writer){return this['encode'](_0x3ffbdf,writer)['ldelim']();},SuggestionDescriptor['decode']=function(_0x364932,length){_0x364932 instanceof _0x246cb1||(_0x364932=_0x246cb1['create'](_0x364932));for(var _0x36b002=void 0x0===length?_0x364932['len']:_0x364932['pos']+length,_0x28de5b=new $root['SuggestionDescriptor']();_0x364932['pos']<_0x36b002;){var tag=_0x364932['uint32']();switch(tag>>>0x3){case 0x1:_0x28de5b['id']=_0x364932['string']();break;case 0x2:_0x28de5b['authorId']=_0x364932['string']();break;case 0x3:_0x28de5b['type']=_0x364932['string']();break;case 0x4:_0x28de5b['createdAt']=_0x364932['string']();break;case 0x5:_0x28de5b['data']=_0x364932['string']();break;case 0x6:_0x28de5b['hasComments']=_0x364932['bool']();break;case 0x7:_0x28de5b['state']=_0x364932['string']();break;case 0x8:_0x28de5b['attributes']=_0x364932['string']();break;default:_0x364932['skipType'](0x7&tag);}}return _0x28de5b;},SuggestionDescriptor['decodeDelimited']=function(_0x3bbb50){return _0x3bbb50 instanceof _0x246cb1||(_0x3bbb50=new _0x246cb1(_0x3bbb50)),this['decode'](_0x3bbb50,_0x3bbb50['uint32']());},SuggestionDescriptor['verify']=function(_0x51772d){return'object'!=typeof _0x51772d||null===_0x51772d?'object\x20expected':null!=_0x51772d['id']&&_0x51772d['hasOwnProperty']('id')&&!$util['isString'](_0x51772d['id'])?'id:\x20string\x20expected':null!=_0x51772d['authorId']&&_0x51772d['hasOwnProperty']('authorId')&&!$util['isString'](_0x51772d['authorId'])?'authorId:\x20string\x20expected':null!=_0x51772d['type']&&_0x51772d['hasOwnProperty']('type')&&!$util['isString'](_0x51772d['type'])?'type:\x20string\x20expected':null!=_0x51772d['createdAt']&&_0x51772d['hasOwnProperty']('createdAt')&&!$util['isString'](_0x51772d['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x51772d['data']&&_0x51772d['hasOwnProperty']('data')&&!$util['isString'](_0x51772d['data'])?'data:\x20string\x20expected':null!=_0x51772d['hasComments']&&_0x51772d['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x51772d['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x51772d['state']&&_0x51772d['hasOwnProperty']('state')&&!$util['isString'](_0x51772d['state'])?'state:\x20string\x20expected':null!=_0x51772d['attributes']&&_0x51772d['hasOwnProperty']('attributes')&&!$util['isString'](_0x51772d['attributes'])?'attributes:\x20string\x20expected':null;},SuggestionDescriptor['fromObject']=function(object){if(object instanceof $root['SuggestionDescriptor'])return object;var _0x28a741=new $root['SuggestionDescriptor']();return null!=object['id']&&(_0x28a741['id']=String(object['id'])),null!=object['authorId']&&(_0x28a741['authorId']=String(object['authorId'])),null!=object['type']&&(_0x28a741['type']=String(object['type'])),null!=object['createdAt']&&(_0x28a741['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x28a741['data']=String(object['data'])),null!=object['hasComments']&&(_0x28a741['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x28a741['state']=String(object['state'])),null!=object['attributes']&&(_0x28a741['attributes']=String(object['attributes'])),_0x28a741;},SuggestionDescriptor['toObject']=function(_0x29b71f,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['authorId']='',object['type']='',object['createdAt']='',object['data']='',object['hasComments']=!0x1,object['state']='',object['attributes']=''),null!=_0x29b71f['id']&&_0x29b71f['hasOwnProperty']('id')&&(object['id']=_0x29b71f['id']),null!=_0x29b71f['authorId']&&_0x29b71f['hasOwnProperty']('authorId')&&(object['authorId']=_0x29b71f['authorId']),null!=_0x29b71f['type']&&_0x29b71f['hasOwnProperty']('type')&&(object['type']=_0x29b71f['type']),null!=_0x29b71f['createdAt']&&_0x29b71f['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x29b71f['createdAt']),null!=_0x29b71f['data']&&_0x29b71f['hasOwnProperty']('data')&&(object['data']=_0x29b71f['data']),null!=_0x29b71f['hasComments']&&_0x29b71f['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x29b71f['hasComments']),null!=_0x29b71f['state']&&_0x29b71f['hasOwnProperty']('state')&&(object['state']=_0x29b71f['state']),null!=_0x29b71f['attributes']&&_0x29b71f['hasOwnProperty']('attributes')&&(object['attributes']=_0x29b71f['attributes']),object;},SuggestionDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SuggestionDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SuggestionDescriptor';},SuggestionDescriptor;}()),$root['TrackChangesAddSuggestionMessage']=(function(){function TrackChangesAddSuggestionMessage(properties){if(properties){for(var _0x55a347=Object['keys'](properties),_0xb0dc1d=0x0;_0xb0dc1d<_0x55a347['length'];++_0xb0dc1d)null!=properties[_0x55a347[_0xb0dc1d]]&&(this[_0x55a347[_0xb0dc1d]]=properties[_0x55a347[_0xb0dc1d]]);}}return TrackChangesAddSuggestionMessage['prototype']['id']='',TrackChangesAddSuggestionMessage['prototype']['documentId']='',TrackChangesAddSuggestionMessage['prototype']['type']='',TrackChangesAddSuggestionMessage['prototype']['data']='',TrackChangesAddSuggestionMessage['prototype']['originalSuggestionId']='',TrackChangesAddSuggestionMessage['prototype']['attributes']='',TrackChangesAddSuggestionMessage['create']=function(properties){return new TrackChangesAddSuggestionMessage(properties);},TrackChangesAddSuggestionMessage['encode']=function(_0x11cdc5,writer){return writer||(writer=$Writer['create']()),null!=_0x11cdc5['id']&&Object['hasOwnProperty']['call'](_0x11cdc5,'id')&&writer['uint32'](0xa)['string'](_0x11cdc5['id']),null!=_0x11cdc5['documentId']&&Object['hasOwnProperty']['call'](_0x11cdc5,'documentId')&&writer['uint32'](0x12)['string'](_0x11cdc5['documentId']),null!=_0x11cdc5['type']&&Object['hasOwnProperty']['call'](_0x11cdc5,'type')&&writer['uint32'](0x1a)['string'](_0x11cdc5['type']),null!=_0x11cdc5['data']&&Object['hasOwnProperty']['call'](_0x11cdc5,'data')&&writer['uint32'](0x22)['string'](_0x11cdc5['data']),null!=_0x11cdc5['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x11cdc5,'originalSuggestionId')&&writer['uint32'](0x2a)['string'](_0x11cdc5['originalSuggestionId']),null!=_0x11cdc5['attributes']&&Object['hasOwnProperty']['call'](_0x11cdc5,'attributes')&&writer['uint32'](0x32)['string'](_0x11cdc5['attributes']),writer;},TrackChangesAddSuggestionMessage['encodeDelimited']=function(_0x41b112,writer){return this['encode'](_0x41b112,writer)['ldelim']();},TrackChangesAddSuggestionMessage['decode']=function(_0xd23e15,length){_0xd23e15 instanceof _0x246cb1||(_0xd23e15=_0x246cb1['create'](_0xd23e15));for(var _0x1acb59=void 0x0===length?_0xd23e15['len']:_0xd23e15['pos']+length,_0x316493=new $root['TrackChangesAddSuggestionMessage']();_0xd23e15['pos']<_0x1acb59;){var tag=_0xd23e15['uint32']();switch(tag>>>0x3){case 0x1:_0x316493['id']=_0xd23e15['string']();break;case 0x2:_0x316493['documentId']=_0xd23e15['string']();break;case 0x3:_0x316493['type']=_0xd23e15['string']();break;case 0x4:_0x316493['data']=_0xd23e15['string']();break;case 0x5:_0x316493['originalSuggestionId']=_0xd23e15['string']();break;case 0x6:_0x316493['attributes']=_0xd23e15['string']();break;default:_0xd23e15['skipType'](0x7&tag);}}return _0x316493;},TrackChangesAddSuggestionMessage['decodeDelimited']=function(_0x45a70e){return _0x45a70e instanceof _0x246cb1||(_0x45a70e=new _0x246cb1(_0x45a70e)),this['decode'](_0x45a70e,_0x45a70e['uint32']());},TrackChangesAddSuggestionMessage['verify']=function(_0x5cb597){return'object'!=typeof _0x5cb597||null===_0x5cb597?'object\x20expected':null!=_0x5cb597['id']&&_0x5cb597['hasOwnProperty']('id')&&!$util['isString'](_0x5cb597['id'])?'id:\x20string\x20expected':null!=_0x5cb597['documentId']&&_0x5cb597['hasOwnProperty']('documentId')&&!$util['isString'](_0x5cb597['documentId'])?'documentId:\x20string\x20expected':null!=_0x5cb597['type']&&_0x5cb597['hasOwnProperty']('type')&&!$util['isString'](_0x5cb597['type'])?'type:\x20string\x20expected':null!=_0x5cb597['data']&&_0x5cb597['hasOwnProperty']('data')&&!$util['isString'](_0x5cb597['data'])?'data:\x20string\x20expected':null!=_0x5cb597['originalSuggestionId']&&_0x5cb597['hasOwnProperty']('originalSuggestionId')&&!$util['isString'](_0x5cb597['originalSuggestionId'])?'originalSuggestionId:\x20string\x20expected':null!=_0x5cb597['attributes']&&_0x5cb597['hasOwnProperty']('attributes')&&!$util['isString'](_0x5cb597['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesAddSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesAddSuggestionMessage'])return object;var _0x54efa3=new $root['TrackChangesAddSuggestionMessage']();return null!=object['id']&&(_0x54efa3['id']=String(object['id'])),null!=object['documentId']&&(_0x54efa3['documentId']=String(object['documentId'])),null!=object['type']&&(_0x54efa3['type']=String(object['type'])),null!=object['data']&&(_0x54efa3['data']=String(object['data'])),null!=object['originalSuggestionId']&&(_0x54efa3['originalSuggestionId']=String(object['originalSuggestionId'])),null!=object['attributes']&&(_0x54efa3['attributes']=String(object['attributes'])),_0x54efa3;},TrackChangesAddSuggestionMessage['toObject']=function(_0x5993d7,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['documentId']='',object['type']='',object['data']='',object['originalSuggestionId']='',object['attributes']=''),null!=_0x5993d7['id']&&_0x5993d7['hasOwnProperty']('id')&&(object['id']=_0x5993d7['id']),null!=_0x5993d7['documentId']&&_0x5993d7['hasOwnProperty']('documentId')&&(object['documentId']=_0x5993d7['documentId']),null!=_0x5993d7['type']&&_0x5993d7['hasOwnProperty']('type')&&(object['type']=_0x5993d7['type']),null!=_0x5993d7['data']&&_0x5993d7['hasOwnProperty']('data')&&(object['data']=_0x5993d7['data']),null!=_0x5993d7['originalSuggestionId']&&_0x5993d7['hasOwnProperty']('originalSuggestionId')&&(object['originalSuggestionId']=_0x5993d7['originalSuggestionId']),null!=_0x5993d7['attributes']&&_0x5993d7['hasOwnProperty']('attributes')&&(object['attributes']=_0x5993d7['attributes']),object;},TrackChangesAddSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesAddSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesAddSuggestionMessage';},TrackChangesAddSuggestionMessage;}()),$root['TrackChangesBatchUpdateSuggestionsStateMessage']=(function(){function TrackChangesBatchUpdateSuggestionsStateMessage(properties){if(this['ids']=[],properties){for(var _0x11ffe5=Object['keys'](properties),_0x3f8c18=0x0;_0x3f8c18<_0x11ffe5['length'];++_0x3f8c18)null!=properties[_0x11ffe5[_0x3f8c18]]&&(this[_0x11ffe5[_0x3f8c18]]=properties[_0x11ffe5[_0x3f8c18]]);}}return TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['ids']=$util['emptyArray'],TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['documentId']='',TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['state']='',TrackChangesBatchUpdateSuggestionsStateMessage['create']=function(properties){return new TrackChangesBatchUpdateSuggestionsStateMessage(properties);},TrackChangesBatchUpdateSuggestionsStateMessage['encode']=function(_0x511619,writer){if(writer||(writer=$Writer['create']()),null!=_0x511619['ids']&&_0x511619['ids']['length']){for(var _0x57eb32=0x0;_0x57eb32<_0x511619['ids']['length'];++_0x57eb32)writer['uint32'](0xa)['string'](_0x511619['ids'][_0x57eb32]);}return null!=_0x511619['documentId']&&Object['hasOwnProperty']['call'](_0x511619,'documentId')&&writer['uint32'](0x12)['string'](_0x511619['documentId']),null!=_0x511619['state']&&Object['hasOwnProperty']['call'](_0x511619,'state')&&writer['uint32'](0x1a)['string'](_0x511619['state']),writer;},TrackChangesBatchUpdateSuggestionsStateMessage['encodeDelimited']=function(_0x20dc26,writer){return this['encode'](_0x20dc26,writer)['ldelim']();},TrackChangesBatchUpdateSuggestionsStateMessage['decode']=function(_0x1538ab,length){_0x1538ab instanceof _0x246cb1||(_0x1538ab=_0x246cb1['create'](_0x1538ab));for(var _0x4c8740=void 0x0===length?_0x1538ab['len']:_0x1538ab['pos']+length,_0x4230bc=new $root['TrackChangesBatchUpdateSuggestionsStateMessage']();_0x1538ab['pos']<_0x4c8740;){var tag=_0x1538ab['uint32']();switch(tag>>>0x3){case 0x1:_0x4230bc['ids']&&_0x4230bc['ids']['length']||(_0x4230bc['ids']=[]),_0x4230bc['ids']['push'](_0x1538ab['string']());break;case 0x2:_0x4230bc['documentId']=_0x1538ab['string']();break;case 0x3:_0x4230bc['state']=_0x1538ab['string']();break;default:_0x1538ab['skipType'](0x7&tag);}}return _0x4230bc;},TrackChangesBatchUpdateSuggestionsStateMessage['decodeDelimited']=function(_0x100fa0){return _0x100fa0 instanceof _0x246cb1||(_0x100fa0=new _0x246cb1(_0x100fa0)),this['decode'](_0x100fa0,_0x100fa0['uint32']());},TrackChangesBatchUpdateSuggestionsStateMessage['verify']=function(_0x4a0d9f){if('object'!=typeof _0x4a0d9f||null===_0x4a0d9f)return'object\x20expected';if(null!=_0x4a0d9f['ids']&&_0x4a0d9f['hasOwnProperty']('ids')){if(!Array['isArray'](_0x4a0d9f['ids']))return'ids:\x20array\x20expected';for(var _0x46e18f=0x0;_0x46e18f<_0x4a0d9f['ids']['length'];++_0x46e18f)if(!$util['isString'](_0x4a0d9f['ids'][_0x46e18f]))return'ids:\x20string[]\x20expected';}return null!=_0x4a0d9f['documentId']&&_0x4a0d9f['hasOwnProperty']('documentId')&&!$util['isString'](_0x4a0d9f['documentId'])?'documentId:\x20string\x20expected':null!=_0x4a0d9f['state']&&_0x4a0d9f['hasOwnProperty']('state')&&!$util['isString'](_0x4a0d9f['state'])?'state:\x20string\x20expected':null;},TrackChangesBatchUpdateSuggestionsStateMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesBatchUpdateSuggestionsStateMessage'])return object;var _0x14ae19=new $root['TrackChangesBatchUpdateSuggestionsStateMessage']();if(object['ids']){if(!Array['isArray'](object['ids']))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage.ids:\x20array\x20expected');_0x14ae19['ids']=[];for(var _0x477423=0x0;_0x477423<object['ids']['length'];++_0x477423)_0x14ae19['ids'][_0x477423]=String(object['ids'][_0x477423]);}return null!=object['documentId']&&(_0x14ae19['documentId']=String(object['documentId'])),null!=object['state']&&(_0x14ae19['state']=String(object['state'])),_0x14ae19;},TrackChangesBatchUpdateSuggestionsStateMessage['toObject']=function(_0x5686bb,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['ids']=[]),options['defaults']&&(object['documentId']='',object['state']=''),_0x5686bb['ids']&&_0x5686bb['ids']['length']){object['ids']=[];for(var _0x225af6=0x0;_0x225af6<_0x5686bb['ids']['length'];++_0x225af6)object['ids'][_0x225af6]=_0x5686bb['ids'][_0x225af6];}return null!=_0x5686bb['documentId']&&_0x5686bb['hasOwnProperty']('documentId')&&(object['documentId']=_0x5686bb['documentId']),null!=_0x5686bb['state']&&_0x5686bb['hasOwnProperty']('state')&&(object['state']=_0x5686bb['state']),object;},TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesBatchUpdateSuggestionsStateMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesBatchUpdateSuggestionsStateMessage';},TrackChangesBatchUpdateSuggestionsStateMessage;}()),$root['TrackChangesConnectMessage']=(function(){function TrackChangesConnectMessage(properties){if(properties){for(var _0x5d568b=Object['keys'](properties),_0x594aac=0x0;_0x594aac<_0x5d568b['length'];++_0x594aac)null!=properties[_0x5d568b[_0x594aac]]&&(this[_0x5d568b[_0x594aac]]=properties[_0x5d568b[_0x594aac]]);}}return TrackChangesConnectMessage['prototype']['documentId']='',TrackChangesConnectMessage['create']=function(properties){return new TrackChangesConnectMessage(properties);},TrackChangesConnectMessage['encode']=function(_0x480e64,writer){return writer||(writer=$Writer['create']()),null!=_0x480e64['documentId']&&Object['hasOwnProperty']['call'](_0x480e64,'documentId')&&writer['uint32'](0xa)['string'](_0x480e64['documentId']),writer;},TrackChangesConnectMessage['encodeDelimited']=function(_0x26c2ec,writer){return this['encode'](_0x26c2ec,writer)['ldelim']();},TrackChangesConnectMessage['decode']=function(_0x105ae7,length){_0x105ae7 instanceof _0x246cb1||(_0x105ae7=_0x246cb1['create'](_0x105ae7));for(var _0x27ffef=void 0x0===length?_0x105ae7['len']:_0x105ae7['pos']+length,_0x1f9e3f=new $root['TrackChangesConnectMessage']();_0x105ae7['pos']<_0x27ffef;){var tag=_0x105ae7['uint32']();if(tag>>>0x3==0x1)_0x1f9e3f['documentId']=_0x105ae7['string']();else _0x105ae7['skipType'](0x7&tag);}return _0x1f9e3f;},TrackChangesConnectMessage['decodeDelimited']=function(_0x545781){return _0x545781 instanceof _0x246cb1||(_0x545781=new _0x246cb1(_0x545781)),this['decode'](_0x545781,_0x545781['uint32']());},TrackChangesConnectMessage['verify']=function(_0x146349){return'object'!=typeof _0x146349||null===_0x146349?'object\x20expected':null!=_0x146349['documentId']&&_0x146349['hasOwnProperty']('documentId')&&!$util['isString'](_0x146349['documentId'])?'documentId:\x20string\x20expected':null;},TrackChangesConnectMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesConnectMessage'])return object;var _0x1eb930=new $root['TrackChangesConnectMessage']();return null!=object['documentId']&&(_0x1eb930['documentId']=String(object['documentId'])),_0x1eb930;},TrackChangesConnectMessage['toObject']=function(_0x36e752,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x36e752['documentId']&&_0x36e752['hasOwnProperty']('documentId')&&(object['documentId']=_0x36e752['documentId']),object;},TrackChangesConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesConnectMessage';},TrackChangesConnectMessage;}()),$root['TrackChangesGetAllSuggestionMessage']=(function(){function TrackChangesGetAllSuggestionMessage(properties){if(properties){for(var _0x5495e8=Object['keys'](properties),_0x315f6e=0x0;_0x315f6e<_0x5495e8['length'];++_0x315f6e)null!=properties[_0x5495e8[_0x315f6e]]&&(this[_0x5495e8[_0x315f6e]]=properties[_0x5495e8[_0x315f6e]]);}}return TrackChangesGetAllSuggestionMessage['prototype']['documentId']='',TrackChangesGetAllSuggestionMessage['create']=function(properties){return new TrackChangesGetAllSuggestionMessage(properties);},TrackChangesGetAllSuggestionMessage['encode']=function(_0x10be21,writer){return writer||(writer=$Writer['create']()),null!=_0x10be21['documentId']&&Object['hasOwnProperty']['call'](_0x10be21,'documentId')&&writer['uint32'](0xa)['string'](_0x10be21['documentId']),writer;},TrackChangesGetAllSuggestionMessage['encodeDelimited']=function(_0x275b58,writer){return this['encode'](_0x275b58,writer)['ldelim']();},TrackChangesGetAllSuggestionMessage['decode']=function(_0x33e7b8,length){_0x33e7b8 instanceof _0x246cb1||(_0x33e7b8=_0x246cb1['create'](_0x33e7b8));for(var _0x4d3684=void 0x0===length?_0x33e7b8['len']:_0x33e7b8['pos']+length,_0x4ea11c=new $root['TrackChangesGetAllSuggestionMessage']();_0x33e7b8['pos']<_0x4d3684;){var tag=_0x33e7b8['uint32']();if(tag>>>0x3==0x1)_0x4ea11c['documentId']=_0x33e7b8['string']();else _0x33e7b8['skipType'](0x7&tag);}return _0x4ea11c;},TrackChangesGetAllSuggestionMessage['decodeDelimited']=function(_0x17a1a8){return _0x17a1a8 instanceof _0x246cb1||(_0x17a1a8=new _0x246cb1(_0x17a1a8)),this['decode'](_0x17a1a8,_0x17a1a8['uint32']());},TrackChangesGetAllSuggestionMessage['verify']=function(_0x1640ee){return'object'!=typeof _0x1640ee||null===_0x1640ee?'object\x20expected':null!=_0x1640ee['documentId']&&_0x1640ee['hasOwnProperty']('documentId')&&!$util['isString'](_0x1640ee['documentId'])?'documentId:\x20string\x20expected':null;},TrackChangesGetAllSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesGetAllSuggestionMessage'])return object;var _0x593f3d=new $root['TrackChangesGetAllSuggestionMessage']();return null!=object['documentId']&&(_0x593f3d['documentId']=String(object['documentId'])),_0x593f3d;},TrackChangesGetAllSuggestionMessage['toObject']=function(_0x461dce,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x461dce['documentId']&&_0x461dce['hasOwnProperty']('documentId')&&(object['documentId']=_0x461dce['documentId']),object;},TrackChangesGetAllSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetAllSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetAllSuggestionMessage';},TrackChangesGetAllSuggestionMessage;}()),$root['TrackChangesGetSuggestionMessage']=(function(){function TrackChangesGetSuggestionMessage(properties){if(properties){for(var _0x49f68c=Object['keys'](properties),_0x5bbd5f=0x0;_0x5bbd5f<_0x49f68c['length'];++_0x5bbd5f)null!=properties[_0x49f68c[_0x5bbd5f]]&&(this[_0x49f68c[_0x5bbd5f]]=properties[_0x49f68c[_0x5bbd5f]]);}}return TrackChangesGetSuggestionMessage['prototype']['id']='',TrackChangesGetSuggestionMessage['prototype']['documentId']='',TrackChangesGetSuggestionMessage['create']=function(properties){return new TrackChangesGetSuggestionMessage(properties);},TrackChangesGetSuggestionMessage['encode']=function(_0x533c34,writer){return writer||(writer=$Writer['create']()),null!=_0x533c34['id']&&Object['hasOwnProperty']['call'](_0x533c34,'id')&&writer['uint32'](0xa)['string'](_0x533c34['id']),null!=_0x533c34['documentId']&&Object['hasOwnProperty']['call'](_0x533c34,'documentId')&&writer['uint32'](0x12)['string'](_0x533c34['documentId']),writer;},TrackChangesGetSuggestionMessage['encodeDelimited']=function(_0x916bcd,writer){return this['encode'](_0x916bcd,writer)['ldelim']();},TrackChangesGetSuggestionMessage['decode']=function(_0x45c52c,length){_0x45c52c instanceof _0x246cb1||(_0x45c52c=_0x246cb1['create'](_0x45c52c));for(var _0x3e2bbb=void 0x0===length?_0x45c52c['len']:_0x45c52c['pos']+length,_0x31fc38=new $root['TrackChangesGetSuggestionMessage']();_0x45c52c['pos']<_0x3e2bbb;){var tag=_0x45c52c['uint32']();switch(tag>>>0x3){case 0x1:_0x31fc38['id']=_0x45c52c['string']();break;case 0x2:_0x31fc38['documentId']=_0x45c52c['string']();break;default:_0x45c52c['skipType'](0x7&tag);}}return _0x31fc38;},TrackChangesGetSuggestionMessage['decodeDelimited']=function(_0x4d4c6c){return _0x4d4c6c instanceof _0x246cb1||(_0x4d4c6c=new _0x246cb1(_0x4d4c6c)),this['decode'](_0x4d4c6c,_0x4d4c6c['uint32']());},TrackChangesGetSuggestionMessage['verify']=function(_0x4b6ea2){return'object'!=typeof _0x4b6ea2||null===_0x4b6ea2?'object\x20expected':null!=_0x4b6ea2['id']&&_0x4b6ea2['hasOwnProperty']('id')&&!$util['isString'](_0x4b6ea2['id'])?'id:\x20string\x20expected':null!=_0x4b6ea2['documentId']&&_0x4b6ea2['hasOwnProperty']('documentId')&&!$util['isString'](_0x4b6ea2['documentId'])?'documentId:\x20string\x20expected':null;},TrackChangesGetSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesGetSuggestionMessage'])return object;var _0xe88f64=new $root['TrackChangesGetSuggestionMessage']();return null!=object['id']&&(_0xe88f64['id']=String(object['id'])),null!=object['documentId']&&(_0xe88f64['documentId']=String(object['documentId'])),_0xe88f64;},TrackChangesGetSuggestionMessage['toObject']=function(_0x5ec5fb,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['documentId']=''),null!=_0x5ec5fb['id']&&_0x5ec5fb['hasOwnProperty']('id')&&(object['id']=_0x5ec5fb['id']),null!=_0x5ec5fb['documentId']&&_0x5ec5fb['hasOwnProperty']('documentId')&&(object['documentId']=_0x5ec5fb['documentId']),object;},TrackChangesGetSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetSuggestionMessage';},TrackChangesGetSuggestionMessage;}()),$root['TrackChangesUpdateSuggestionMessage']=(function(){function TrackChangesUpdateSuggestionMessage(properties){if(properties){for(var _0x514f73=Object['keys'](properties),_0x38543f=0x0;_0x38543f<_0x514f73['length'];++_0x38543f)null!=properties[_0x514f73[_0x38543f]]&&(this[_0x514f73[_0x38543f]]=properties[_0x514f73[_0x38543f]]);}}return TrackChangesUpdateSuggestionMessage['prototype']['id']='',TrackChangesUpdateSuggestionMessage['prototype']['documentId']='',TrackChangesUpdateSuggestionMessage['prototype']['hasComments']=!0x1,TrackChangesUpdateSuggestionMessage['prototype']['isHasCommentsModified']=!0x1,TrackChangesUpdateSuggestionMessage['prototype']['state']='',TrackChangesUpdateSuggestionMessage['prototype']['attributes']='',TrackChangesUpdateSuggestionMessage['create']=function(properties){return new TrackChangesUpdateSuggestionMessage(properties);},TrackChangesUpdateSuggestionMessage['encode']=function(_0x19e7dd,writer){return writer||(writer=$Writer['create']()),null!=_0x19e7dd['id']&&Object['hasOwnProperty']['call'](_0x19e7dd,'id')&&writer['uint32'](0xa)['string'](_0x19e7dd['id']),null!=_0x19e7dd['documentId']&&Object['hasOwnProperty']['call'](_0x19e7dd,'documentId')&&writer['uint32'](0x12)['string'](_0x19e7dd['documentId']),null!=_0x19e7dd['hasComments']&&Object['hasOwnProperty']['call'](_0x19e7dd,'hasComments')&&writer['uint32'](0x18)['bool'](_0x19e7dd['hasComments']),null!=_0x19e7dd['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x19e7dd,'isHasCommentsModified')&&writer['uint32'](0x20)['bool'](_0x19e7dd['isHasCommentsModified']),null!=_0x19e7dd['state']&&Object['hasOwnProperty']['call'](_0x19e7dd,'state')&&writer['uint32'](0x2a)['string'](_0x19e7dd['state']),null!=_0x19e7dd['attributes']&&Object['hasOwnProperty']['call'](_0x19e7dd,'attributes')&&writer['uint32'](0x32)['string'](_0x19e7dd['attributes']),writer;},TrackChangesUpdateSuggestionMessage['encodeDelimited']=function(_0x105aca,writer){return this['encode'](_0x105aca,writer)['ldelim']();},TrackChangesUpdateSuggestionMessage['decode']=function(_0x32bc2a,length){_0x32bc2a instanceof _0x246cb1||(_0x32bc2a=_0x246cb1['create'](_0x32bc2a));for(var _0x10c550=void 0x0===length?_0x32bc2a['len']:_0x32bc2a['pos']+length,_0x4cba71=new $root['TrackChangesUpdateSuggestionMessage']();_0x32bc2a['pos']<_0x10c550;){var tag=_0x32bc2a['uint32']();switch(tag>>>0x3){case 0x1:_0x4cba71['id']=_0x32bc2a['string']();break;case 0x2:_0x4cba71['documentId']=_0x32bc2a['string']();break;case 0x3:_0x4cba71['hasComments']=_0x32bc2a['bool']();break;case 0x4:_0x4cba71['isHasCommentsModified']=_0x32bc2a['bool']();break;case 0x5:_0x4cba71['state']=_0x32bc2a['string']();break;case 0x6:_0x4cba71['attributes']=_0x32bc2a['string']();break;default:_0x32bc2a['skipType'](0x7&tag);}}return _0x4cba71;},TrackChangesUpdateSuggestionMessage['decodeDelimited']=function(_0x324eb6){return _0x324eb6 instanceof _0x246cb1||(_0x324eb6=new _0x246cb1(_0x324eb6)),this['decode'](_0x324eb6,_0x324eb6['uint32']());},TrackChangesUpdateSuggestionMessage['verify']=function(_0x948e99){return'object'!=typeof _0x948e99||null===_0x948e99?'object\x20expected':null!=_0x948e99['id']&&_0x948e99['hasOwnProperty']('id')&&!$util['isString'](_0x948e99['id'])?'id:\x20string\x20expected':null!=_0x948e99['documentId']&&_0x948e99['hasOwnProperty']('documentId')&&!$util['isString'](_0x948e99['documentId'])?'documentId:\x20string\x20expected':null!=_0x948e99['hasComments']&&_0x948e99['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x948e99['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x948e99['isHasCommentsModified']&&_0x948e99['hasOwnProperty']('isHasCommentsModified')&&'boolean'!=typeof _0x948e99['isHasCommentsModified']?'isHasCommentsModified:\x20boolean\x20expected':null!=_0x948e99['state']&&_0x948e99['hasOwnProperty']('state')&&!$util['isString'](_0x948e99['state'])?'state:\x20string\x20expected':null!=_0x948e99['attributes']&&_0x948e99['hasOwnProperty']('attributes')&&!$util['isString'](_0x948e99['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesUpdateSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesUpdateSuggestionMessage'])return object;var _0x25f335=new $root['TrackChangesUpdateSuggestionMessage']();return null!=object['id']&&(_0x25f335['id']=String(object['id'])),null!=object['documentId']&&(_0x25f335['documentId']=String(object['documentId'])),null!=object['hasComments']&&(_0x25f335['hasComments']=Boolean(object['hasComments'])),null!=object['isHasCommentsModified']&&(_0x25f335['isHasCommentsModified']=Boolean(object['isHasCommentsModified'])),null!=object['state']&&(_0x25f335['state']=String(object['state'])),null!=object['attributes']&&(_0x25f335['attributes']=String(object['attributes'])),_0x25f335;},TrackChangesUpdateSuggestionMessage['toObject']=function(_0x1e9a6a,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['documentId']='',object['hasComments']=!0x1,object['isHasCommentsModified']=!0x1,object['state']='',object['attributes']=''),null!=_0x1e9a6a['id']&&_0x1e9a6a['hasOwnProperty']('id')&&(object['id']=_0x1e9a6a['id']),null!=_0x1e9a6a['documentId']&&_0x1e9a6a['hasOwnProperty']('documentId')&&(object['documentId']=_0x1e9a6a['documentId']),null!=_0x1e9a6a['hasComments']&&_0x1e9a6a['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x1e9a6a['hasComments']),null!=_0x1e9a6a['isHasCommentsModified']&&_0x1e9a6a['hasOwnProperty']('isHasCommentsModified')&&(object['isHasCommentsModified']=_0x1e9a6a['isHasCommentsModified']),null!=_0x1e9a6a['state']&&_0x1e9a6a['hasOwnProperty']('state')&&(object['state']=_0x1e9a6a['state']),null!=_0x1e9a6a['attributes']&&_0x1e9a6a['hasOwnProperty']('attributes')&&(object['attributes']=_0x1e9a6a['attributes']),object;},TrackChangesUpdateSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesUpdateSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesUpdateSuggestionMessage';},TrackChangesUpdateSuggestionMessage;}()),$root['TrackChangesAddSuggestionResponse']=(function(){function TrackChangesAddSuggestionResponse(properties){if(properties){for(var _0x9c91f3=Object['keys'](properties),_0xb490c0=0x0;_0xb490c0<_0x9c91f3['length'];++_0xb490c0)null!=properties[_0x9c91f3[_0xb490c0]]&&(this[_0x9c91f3[_0xb490c0]]=properties[_0x9c91f3[_0xb490c0]]);}}return TrackChangesAddSuggestionResponse['prototype']['id']='',TrackChangesAddSuggestionResponse['prototype']['authorId']='',TrackChangesAddSuggestionResponse['prototype']['type']='',TrackChangesAddSuggestionResponse['prototype']['createdAt']='',TrackChangesAddSuggestionResponse['prototype']['data']='',TrackChangesAddSuggestionResponse['prototype']['hasComments']=!0x1,TrackChangesAddSuggestionResponse['prototype']['state']='',TrackChangesAddSuggestionResponse['prototype']['attributes']='',TrackChangesAddSuggestionResponse['create']=function(properties){return new TrackChangesAddSuggestionResponse(properties);},TrackChangesAddSuggestionResponse['encode']=function(_0x42db90,writer){return writer||(writer=$Writer['create']()),null!=_0x42db90['id']&&Object['hasOwnProperty']['call'](_0x42db90,'id')&&writer['uint32'](0xa)['string'](_0x42db90['id']),null!=_0x42db90['authorId']&&Object['hasOwnProperty']['call'](_0x42db90,'authorId')&&writer['uint32'](0x12)['string'](_0x42db90['authorId']),null!=_0x42db90['type']&&Object['hasOwnProperty']['call'](_0x42db90,'type')&&writer['uint32'](0x1a)['string'](_0x42db90['type']),null!=_0x42db90['createdAt']&&Object['hasOwnProperty']['call'](_0x42db90,'createdAt')&&writer['uint32'](0x22)['string'](_0x42db90['createdAt']),null!=_0x42db90['data']&&Object['hasOwnProperty']['call'](_0x42db90,'data')&&writer['uint32'](0x2a)['string'](_0x42db90['data']),null!=_0x42db90['hasComments']&&Object['hasOwnProperty']['call'](_0x42db90,'hasComments')&&writer['uint32'](0x30)['bool'](_0x42db90['hasComments']),null!=_0x42db90['state']&&Object['hasOwnProperty']['call'](_0x42db90,'state')&&writer['uint32'](0x3a)['string'](_0x42db90['state']),null!=_0x42db90['attributes']&&Object['hasOwnProperty']['call'](_0x42db90,'attributes')&&writer['uint32'](0x42)['string'](_0x42db90['attributes']),writer;},TrackChangesAddSuggestionResponse['encodeDelimited']=function(_0x4ce488,writer){return this['encode'](_0x4ce488,writer)['ldelim']();},TrackChangesAddSuggestionResponse['decode']=function(_0x9dfa3d,length){_0x9dfa3d instanceof _0x246cb1||(_0x9dfa3d=_0x246cb1['create'](_0x9dfa3d));for(var _0x5b57c7=void 0x0===length?_0x9dfa3d['len']:_0x9dfa3d['pos']+length,_0x2e0a4f=new $root['TrackChangesAddSuggestionResponse']();_0x9dfa3d['pos']<_0x5b57c7;){var tag=_0x9dfa3d['uint32']();switch(tag>>>0x3){case 0x1:_0x2e0a4f['id']=_0x9dfa3d['string']();break;case 0x2:_0x2e0a4f['authorId']=_0x9dfa3d['string']();break;case 0x3:_0x2e0a4f['type']=_0x9dfa3d['string']();break;case 0x4:_0x2e0a4f['createdAt']=_0x9dfa3d['string']();break;case 0x5:_0x2e0a4f['data']=_0x9dfa3d['string']();break;case 0x6:_0x2e0a4f['hasComments']=_0x9dfa3d['bool']();break;case 0x7:_0x2e0a4f['state']=_0x9dfa3d['string']();break;case 0x8:_0x2e0a4f['attributes']=_0x9dfa3d['string']();break;default:_0x9dfa3d['skipType'](0x7&tag);}}return _0x2e0a4f;},TrackChangesAddSuggestionResponse['decodeDelimited']=function(_0x3351fa){return _0x3351fa instanceof _0x246cb1||(_0x3351fa=new _0x246cb1(_0x3351fa)),this['decode'](_0x3351fa,_0x3351fa['uint32']());},TrackChangesAddSuggestionResponse['verify']=function(_0x5f3b90){return'object'!=typeof _0x5f3b90||null===_0x5f3b90?'object\x20expected':null!=_0x5f3b90['id']&&_0x5f3b90['hasOwnProperty']('id')&&!$util['isString'](_0x5f3b90['id'])?'id:\x20string\x20expected':null!=_0x5f3b90['authorId']&&_0x5f3b90['hasOwnProperty']('authorId')&&!$util['isString'](_0x5f3b90['authorId'])?'authorId:\x20string\x20expected':null!=_0x5f3b90['type']&&_0x5f3b90['hasOwnProperty']('type')&&!$util['isString'](_0x5f3b90['type'])?'type:\x20string\x20expected':null!=_0x5f3b90['createdAt']&&_0x5f3b90['hasOwnProperty']('createdAt')&&!$util['isString'](_0x5f3b90['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x5f3b90['data']&&_0x5f3b90['hasOwnProperty']('data')&&!$util['isString'](_0x5f3b90['data'])?'data:\x20string\x20expected':null!=_0x5f3b90['hasComments']&&_0x5f3b90['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x5f3b90['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x5f3b90['state']&&_0x5f3b90['hasOwnProperty']('state')&&!$util['isString'](_0x5f3b90['state'])?'state:\x20string\x20expected':null!=_0x5f3b90['attributes']&&_0x5f3b90['hasOwnProperty']('attributes')&&!$util['isString'](_0x5f3b90['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesAddSuggestionResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesAddSuggestionResponse'])return object;var _0x3da9d2=new $root['TrackChangesAddSuggestionResponse']();return null!=object['id']&&(_0x3da9d2['id']=String(object['id'])),null!=object['authorId']&&(_0x3da9d2['authorId']=String(object['authorId'])),null!=object['type']&&(_0x3da9d2['type']=String(object['type'])),null!=object['createdAt']&&(_0x3da9d2['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x3da9d2['data']=String(object['data'])),null!=object['hasComments']&&(_0x3da9d2['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x3da9d2['state']=String(object['state'])),null!=object['attributes']&&(_0x3da9d2['attributes']=String(object['attributes'])),_0x3da9d2;},TrackChangesAddSuggestionResponse['toObject']=function(_0x304120,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['authorId']='',object['type']='',object['createdAt']='',object['data']='',object['hasComments']=!0x1,object['state']='',object['attributes']=''),null!=_0x304120['id']&&_0x304120['hasOwnProperty']('id')&&(object['id']=_0x304120['id']),null!=_0x304120['authorId']&&_0x304120['hasOwnProperty']('authorId')&&(object['authorId']=_0x304120['authorId']),null!=_0x304120['type']&&_0x304120['hasOwnProperty']('type')&&(object['type']=_0x304120['type']),null!=_0x304120['createdAt']&&_0x304120['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x304120['createdAt']),null!=_0x304120['data']&&_0x304120['hasOwnProperty']('data')&&(object['data']=_0x304120['data']),null!=_0x304120['hasComments']&&_0x304120['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x304120['hasComments']),null!=_0x304120['state']&&_0x304120['hasOwnProperty']('state')&&(object['state']=_0x304120['state']),null!=_0x304120['attributes']&&_0x304120['hasOwnProperty']('attributes')&&(object['attributes']=_0x304120['attributes']),object;},TrackChangesAddSuggestionResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesAddSuggestionResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesAddSuggestionResponse';},TrackChangesAddSuggestionResponse;}()),$root['TrackChangesConnectResponse']=(function(){function TrackChangesConnectResponse(properties){if(this['suggestions']=[],this['suggestionsV2']=[],properties){for(var _0xb53c02=Object['keys'](properties),_0x5d14c1=0x0;_0x5d14c1<_0xb53c02['length'];++_0x5d14c1)null!=properties[_0xb53c02[_0x5d14c1]]&&(this[_0xb53c02[_0x5d14c1]]=properties[_0xb53c02[_0x5d14c1]]);}}return TrackChangesConnectResponse['prototype']['channel']='',TrackChangesConnectResponse['prototype']['suggestions']=$util['emptyArray'],TrackChangesConnectResponse['prototype']['suggestionsV2']=$util['emptyArray'],TrackChangesConnectResponse['create']=function(properties){return new TrackChangesConnectResponse(properties);},TrackChangesConnectResponse['encode']=function(_0x1e43dd,writer){if(writer||(writer=$Writer['create']()),null!=_0x1e43dd['channel']&&Object['hasOwnProperty']['call'](_0x1e43dd,'channel')&&writer['uint32'](0xa)['string'](_0x1e43dd['channel']),null!=_0x1e43dd['suggestions']&&_0x1e43dd['suggestions']['length']){for(var _0x418332=0x0;_0x418332<_0x1e43dd['suggestions']['length'];++_0x418332)writer['uint32'](0x12)['string'](_0x1e43dd['suggestions'][_0x418332]);}if(null!=_0x1e43dd['suggestionsV2']&&_0x1e43dd['suggestionsV2']['length']){for(_0x418332=0x0;_0x418332<_0x1e43dd['suggestionsV2']['length'];++_0x418332)$root['SuggestionDescriptor']['encode'](_0x1e43dd['suggestionsV2'][_0x418332],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},TrackChangesConnectResponse['encodeDelimited']=function(_0x24b29b,writer){return this['encode'](_0x24b29b,writer)['ldelim']();},TrackChangesConnectResponse['decode']=function(_0x557218,length){_0x557218 instanceof _0x246cb1||(_0x557218=_0x246cb1['create'](_0x557218));for(var _0x597493=void 0x0===length?_0x557218['len']:_0x557218['pos']+length,_0x5ae679=new $root['TrackChangesConnectResponse']();_0x557218['pos']<_0x597493;){var tag=_0x557218['uint32']();switch(tag>>>0x3){case 0x1:_0x5ae679['channel']=_0x557218['string']();break;case 0x2:_0x5ae679['suggestions']&&_0x5ae679['suggestions']['length']||(_0x5ae679['suggestions']=[]),_0x5ae679['suggestions']['push'](_0x557218['string']());break;case 0x3:_0x5ae679['suggestionsV2']&&_0x5ae679['suggestionsV2']['length']||(_0x5ae679['suggestionsV2']=[]),_0x5ae679['suggestionsV2']['push']($root['SuggestionDescriptor']['decode'](_0x557218,_0x557218['uint32']()));break;default:_0x557218['skipType'](0x7&tag);}}return _0x5ae679;},TrackChangesConnectResponse['decodeDelimited']=function(_0x1ce8fd){return _0x1ce8fd instanceof _0x246cb1||(_0x1ce8fd=new _0x246cb1(_0x1ce8fd)),this['decode'](_0x1ce8fd,_0x1ce8fd['uint32']());},TrackChangesConnectResponse['verify']=function(_0x95ffd2){if('object'!=typeof _0x95ffd2||null===_0x95ffd2)return'object\x20expected';if(null!=_0x95ffd2['channel']&&_0x95ffd2['hasOwnProperty']('channel')&&!$util['isString'](_0x95ffd2['channel']))return'channel:\x20string\x20expected';if(null!=_0x95ffd2['suggestions']&&_0x95ffd2['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x95ffd2['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x9a300b=0x0;_0x9a300b<_0x95ffd2['suggestions']['length'];++_0x9a300b)if(!$util['isString'](_0x95ffd2['suggestions'][_0x9a300b]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x95ffd2['suggestionsV2']&&_0x95ffd2['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x95ffd2['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x9a300b=0x0;_0x9a300b<_0x95ffd2['suggestionsV2']['length'];++_0x9a300b){var _0x348544=$root['SuggestionDescriptor']['verify'](_0x95ffd2['suggestionsV2'][_0x9a300b]);if(_0x348544)return'suggestionsV2.'+_0x348544;}}return null;},TrackChangesConnectResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesConnectResponse'])return object;var _0x53a85f=new $root['TrackChangesConnectResponse']();if(null!=object['channel']&&(_0x53a85f['channel']=String(object['channel'])),object['suggestions']){if(!Array['isArray'](object['suggestions']))throw TypeError('.TrackChangesConnectResponse.suggestions:\x20array\x20expected');_0x53a85f['suggestions']=[];for(var _0x3ec3ce=0x0;_0x3ec3ce<object['suggestions']['length'];++_0x3ec3ce)_0x53a85f['suggestions'][_0x3ec3ce]=String(object['suggestions'][_0x3ec3ce]);}if(object['suggestionsV2']){if(!Array['isArray'](object['suggestionsV2']))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20array\x20expected');_0x53a85f['suggestionsV2']=[];for(_0x3ec3ce=0x0;_0x3ec3ce<object['suggestionsV2']['length'];++_0x3ec3ce){if('object'!=typeof object['suggestionsV2'][_0x3ec3ce])throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20object\x20expected');_0x53a85f['suggestionsV2'][_0x3ec3ce]=$root['SuggestionDescriptor']['fromObject'](object['suggestionsV2'][_0x3ec3ce]);}}return _0x53a85f;},TrackChangesConnectResponse['toObject']=function(_0x4205b1,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['suggestions']=[],object['suggestionsV2']=[]),options['defaults']&&(object['channel']=''),null!=_0x4205b1['channel']&&_0x4205b1['hasOwnProperty']('channel')&&(object['channel']=_0x4205b1['channel']),_0x4205b1['suggestions']&&_0x4205b1['suggestions']['length']){object['suggestions']=[];for(var _0x12f51d=0x0;_0x12f51d<_0x4205b1['suggestions']['length'];++_0x12f51d)object['suggestions'][_0x12f51d]=_0x4205b1['suggestions'][_0x12f51d];}if(_0x4205b1['suggestionsV2']&&_0x4205b1['suggestionsV2']['length']){object['suggestionsV2']=[];for(_0x12f51d=0x0;_0x12f51d<_0x4205b1['suggestionsV2']['length'];++_0x12f51d)object['suggestionsV2'][_0x12f51d]=$root['SuggestionDescriptor']['toObject'](_0x4205b1['suggestionsV2'][_0x12f51d],options);}return object;},TrackChangesConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesConnectResponse';},TrackChangesConnectResponse;}()),$root['TrackChangesGetAllSuggestionsResponse']=(function(){function TrackChangesGetAllSuggestionsResponse(properties){if(this['suggestions']=[],this['suggestionsV2']=[],properties){for(var _0x4beaef=Object['keys'](properties),_0x2709d7=0x0;_0x2709d7<_0x4beaef['length'];++_0x2709d7)null!=properties[_0x4beaef[_0x2709d7]]&&(this[_0x4beaef[_0x2709d7]]=properties[_0x4beaef[_0x2709d7]]);}}return TrackChangesGetAllSuggestionsResponse['prototype']['suggestions']=$util['emptyArray'],TrackChangesGetAllSuggestionsResponse['prototype']['suggestionsV2']=$util['emptyArray'],TrackChangesGetAllSuggestionsResponse['create']=function(properties){return new TrackChangesGetAllSuggestionsResponse(properties);},TrackChangesGetAllSuggestionsResponse['encode']=function(_0x4253d0,writer){if(writer||(writer=$Writer['create']()),null!=_0x4253d0['suggestions']&&_0x4253d0['suggestions']['length']){for(var _0x36b69c=0x0;_0x36b69c<_0x4253d0['suggestions']['length'];++_0x36b69c)writer['uint32'](0xa)['string'](_0x4253d0['suggestions'][_0x36b69c]);}if(null!=_0x4253d0['suggestionsV2']&&_0x4253d0['suggestionsV2']['length']){for(_0x36b69c=0x0;_0x36b69c<_0x4253d0['suggestionsV2']['length'];++_0x36b69c)$root['SuggestionDescriptor']['encode'](_0x4253d0['suggestionsV2'][_0x36b69c],writer['uint32'](0x12)['fork']())['ldelim']();}return writer;},TrackChangesGetAllSuggestionsResponse['encodeDelimited']=function(_0x23d101,writer){return this['encode'](_0x23d101,writer)['ldelim']();},TrackChangesGetAllSuggestionsResponse['decode']=function(_0x4ca219,length){_0x4ca219 instanceof _0x246cb1||(_0x4ca219=_0x246cb1['create'](_0x4ca219));for(var _0x217a95=void 0x0===length?_0x4ca219['len']:_0x4ca219['pos']+length,_0x32841d=new $root['TrackChangesGetAllSuggestionsResponse']();_0x4ca219['pos']<_0x217a95;){var tag=_0x4ca219['uint32']();switch(tag>>>0x3){case 0x1:_0x32841d['suggestions']&&_0x32841d['suggestions']['length']||(_0x32841d['suggestions']=[]),_0x32841d['suggestions']['push'](_0x4ca219['string']());break;case 0x2:_0x32841d['suggestionsV2']&&_0x32841d['suggestionsV2']['length']||(_0x32841d['suggestionsV2']=[]),_0x32841d['suggestionsV2']['push']($root['SuggestionDescriptor']['decode'](_0x4ca219,_0x4ca219['uint32']()));break;default:_0x4ca219['skipType'](0x7&tag);}}return _0x32841d;},TrackChangesGetAllSuggestionsResponse['decodeDelimited']=function(_0x497046){return _0x497046 instanceof _0x246cb1||(_0x497046=new _0x246cb1(_0x497046)),this['decode'](_0x497046,_0x497046['uint32']());},TrackChangesGetAllSuggestionsResponse['verify']=function(_0x3f0b76){if('object'!=typeof _0x3f0b76||null===_0x3f0b76)return'object\x20expected';if(null!=_0x3f0b76['suggestions']&&_0x3f0b76['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x3f0b76['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x5515a4=0x0;_0x5515a4<_0x3f0b76['suggestions']['length'];++_0x5515a4)if(!$util['isString'](_0x3f0b76['suggestions'][_0x5515a4]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x3f0b76['suggestionsV2']&&_0x3f0b76['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x3f0b76['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x5515a4=0x0;_0x5515a4<_0x3f0b76['suggestionsV2']['length'];++_0x5515a4){var _0x149536=$root['SuggestionDescriptor']['verify'](_0x3f0b76['suggestionsV2'][_0x5515a4]);if(_0x149536)return'suggestionsV2.'+_0x149536;}}return null;},TrackChangesGetAllSuggestionsResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesGetAllSuggestionsResponse'])return object;var _0x46e755=new $root['TrackChangesGetAllSuggestionsResponse']();if(object['suggestions']){if(!Array['isArray'](object['suggestions']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestions:\x20array\x20expected');_0x46e755['suggestions']=[];for(var _0x31452e=0x0;_0x31452e<object['suggestions']['length'];++_0x31452e)_0x46e755['suggestions'][_0x31452e]=String(object['suggestions'][_0x31452e]);}if(object['suggestionsV2']){if(!Array['isArray'](object['suggestionsV2']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20array\x20expected');_0x46e755['suggestionsV2']=[];for(_0x31452e=0x0;_0x31452e<object['suggestionsV2']['length'];++_0x31452e){if('object'!=typeof object['suggestionsV2'][_0x31452e])throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20object\x20expected');_0x46e755['suggestionsV2'][_0x31452e]=$root['SuggestionDescriptor']['fromObject'](object['suggestionsV2'][_0x31452e]);}}return _0x46e755;},TrackChangesGetAllSuggestionsResponse['toObject']=function(_0x7e5b35,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['suggestions']=[],object['suggestionsV2']=[]),_0x7e5b35['suggestions']&&_0x7e5b35['suggestions']['length']){object['suggestions']=[];for(var _0x49671d=0x0;_0x49671d<_0x7e5b35['suggestions']['length'];++_0x49671d)object['suggestions'][_0x49671d]=_0x7e5b35['suggestions'][_0x49671d];}if(_0x7e5b35['suggestionsV2']&&_0x7e5b35['suggestionsV2']['length']){object['suggestionsV2']=[];for(_0x49671d=0x0;_0x49671d<_0x7e5b35['suggestionsV2']['length'];++_0x49671d)object['suggestionsV2'][_0x49671d]=$root['SuggestionDescriptor']['toObject'](_0x7e5b35['suggestionsV2'][_0x49671d],options);}return object;},TrackChangesGetAllSuggestionsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetAllSuggestionsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetAllSuggestionsResponse';},TrackChangesGetAllSuggestionsResponse;}()),$root['TrackChangesGetSuggestionResponse']=(function(){function TrackChangesGetSuggestionResponse(properties){if(properties){for(var _0xfd8ad6=Object['keys'](properties),_0x49df77=0x0;_0x49df77<_0xfd8ad6['length'];++_0x49df77)null!=properties[_0xfd8ad6[_0x49df77]]&&(this[_0xfd8ad6[_0x49df77]]=properties[_0xfd8ad6[_0x49df77]]);}}return TrackChangesGetSuggestionResponse['prototype']['id']='',TrackChangesGetSuggestionResponse['prototype']['authorId']='',TrackChangesGetSuggestionResponse['prototype']['type']='',TrackChangesGetSuggestionResponse['prototype']['createdAt']='',TrackChangesGetSuggestionResponse['prototype']['data']='',TrackChangesGetSuggestionResponse['prototype']['hasComments']=!0x1,TrackChangesGetSuggestionResponse['prototype']['state']='',TrackChangesGetSuggestionResponse['prototype']['attributes']='',TrackChangesGetSuggestionResponse['create']=function(properties){return new TrackChangesGetSuggestionResponse(properties);},TrackChangesGetSuggestionResponse['encode']=function(_0x46ac1c,writer){return writer||(writer=$Writer['create']()),null!=_0x46ac1c['id']&&Object['hasOwnProperty']['call'](_0x46ac1c,'id')&&writer['uint32'](0xa)['string'](_0x46ac1c['id']),null!=_0x46ac1c['authorId']&&Object['hasOwnProperty']['call'](_0x46ac1c,'authorId')&&writer['uint32'](0x12)['string'](_0x46ac1c['authorId']),null!=_0x46ac1c['type']&&Object['hasOwnProperty']['call'](_0x46ac1c,'type')&&writer['uint32'](0x1a)['string'](_0x46ac1c['type']),null!=_0x46ac1c['createdAt']&&Object['hasOwnProperty']['call'](_0x46ac1c,'createdAt')&&writer['uint32'](0x22)['string'](_0x46ac1c['createdAt']),null!=_0x46ac1c['data']&&Object['hasOwnProperty']['call'](_0x46ac1c,'data')&&writer['uint32'](0x2a)['string'](_0x46ac1c['data']),null!=_0x46ac1c['hasComments']&&Object['hasOwnProperty']['call'](_0x46ac1c,'hasComments')&&writer['uint32'](0x30)['bool'](_0x46ac1c['hasComments']),null!=_0x46ac1c['state']&&Object['hasOwnProperty']['call'](_0x46ac1c,'state')&&writer['uint32'](0x3a)['string'](_0x46ac1c['state']),null!=_0x46ac1c['attributes']&&Object['hasOwnProperty']['call'](_0x46ac1c,'attributes')&&writer['uint32'](0x42)['string'](_0x46ac1c['attributes']),writer;},TrackChangesGetSuggestionResponse['encodeDelimited']=function(_0x48f847,writer){return this['encode'](_0x48f847,writer)['ldelim']();},TrackChangesGetSuggestionResponse['decode']=function(_0x1bc334,length){_0x1bc334 instanceof _0x246cb1||(_0x1bc334=_0x246cb1['create'](_0x1bc334));for(var _0x34c479=void 0x0===length?_0x1bc334['len']:_0x1bc334['pos']+length,_0x151803=new $root['TrackChangesGetSuggestionResponse']();_0x1bc334['pos']<_0x34c479;){var tag=_0x1bc334['uint32']();switch(tag>>>0x3){case 0x1:_0x151803['id']=_0x1bc334['string']();break;case 0x2:_0x151803['authorId']=_0x1bc334['string']();break;case 0x3:_0x151803['type']=_0x1bc334['string']();break;case 0x4:_0x151803['createdAt']=_0x1bc334['string']();break;case 0x5:_0x151803['data']=_0x1bc334['string']();break;case 0x6:_0x151803['hasComments']=_0x1bc334['bool']();break;case 0x7:_0x151803['state']=_0x1bc334['string']();break;case 0x8:_0x151803['attributes']=_0x1bc334['string']();break;default:_0x1bc334['skipType'](0x7&tag);}}return _0x151803;},TrackChangesGetSuggestionResponse['decodeDelimited']=function(_0x4c708c){return _0x4c708c instanceof _0x246cb1||(_0x4c708c=new _0x246cb1(_0x4c708c)),this['decode'](_0x4c708c,_0x4c708c['uint32']());},TrackChangesGetSuggestionResponse['verify']=function(_0x19a0af){return'object'!=typeof _0x19a0af||null===_0x19a0af?'object\x20expected':null!=_0x19a0af['id']&&_0x19a0af['hasOwnProperty']('id')&&!$util['isString'](_0x19a0af['id'])?'id:\x20string\x20expected':null!=_0x19a0af['authorId']&&_0x19a0af['hasOwnProperty']('authorId')&&!$util['isString'](_0x19a0af['authorId'])?'authorId:\x20string\x20expected':null!=_0x19a0af['type']&&_0x19a0af['hasOwnProperty']('type')&&!$util['isString'](_0x19a0af['type'])?'type:\x20string\x20expected':null!=_0x19a0af['createdAt']&&_0x19a0af['hasOwnProperty']('createdAt')&&!$util['isString'](_0x19a0af['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x19a0af['data']&&_0x19a0af['hasOwnProperty']('data')&&!$util['isString'](_0x19a0af['data'])?'data:\x20string\x20expected':null!=_0x19a0af['hasComments']&&_0x19a0af['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x19a0af['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x19a0af['state']&&_0x19a0af['hasOwnProperty']('state')&&!$util['isString'](_0x19a0af['state'])?'state:\x20string\x20expected':null!=_0x19a0af['attributes']&&_0x19a0af['hasOwnProperty']('attributes')&&!$util['isString'](_0x19a0af['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesGetSuggestionResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesGetSuggestionResponse'])return object;var _0x4d18c6=new $root['TrackChangesGetSuggestionResponse']();return null!=object['id']&&(_0x4d18c6['id']=String(object['id'])),null!=object['authorId']&&(_0x4d18c6['authorId']=String(object['authorId'])),null!=object['type']&&(_0x4d18c6['type']=String(object['type'])),null!=object['createdAt']&&(_0x4d18c6['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x4d18c6['data']=String(object['data'])),null!=object['hasComments']&&(_0x4d18c6['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x4d18c6['state']=String(object['state'])),null!=object['attributes']&&(_0x4d18c6['attributes']=String(object['attributes'])),_0x4d18c6;},TrackChangesGetSuggestionResponse['toObject']=function(_0x592021,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['authorId']='',object['type']='',object['createdAt']='',object['data']='',object['hasComments']=!0x1,object['state']='',object['attributes']=''),null!=_0x592021['id']&&_0x592021['hasOwnProperty']('id')&&(object['id']=_0x592021['id']),null!=_0x592021['authorId']&&_0x592021['hasOwnProperty']('authorId')&&(object['authorId']=_0x592021['authorId']),null!=_0x592021['type']&&_0x592021['hasOwnProperty']('type')&&(object['type']=_0x592021['type']),null!=_0x592021['createdAt']&&_0x592021['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x592021['createdAt']),null!=_0x592021['data']&&_0x592021['hasOwnProperty']('data')&&(object['data']=_0x592021['data']),null!=_0x592021['hasComments']&&_0x592021['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x592021['hasComments']),null!=_0x592021['state']&&_0x592021['hasOwnProperty']('state')&&(object['state']=_0x592021['state']),null!=_0x592021['attributes']&&_0x592021['hasOwnProperty']('attributes')&&(object['attributes']=_0x592021['attributes']),object;},TrackChangesGetSuggestionResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetSuggestionResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetSuggestionResponse';},TrackChangesGetSuggestionResponse;}()),$root['UserDescriptor']=(function(){function UserDescriptor(properties){if(this['attributes']=[],properties){for(var _0x475743=Object['keys'](properties),_0x43436e=0x0;_0x43436e<_0x475743['length'];++_0x43436e)null!=properties[_0x475743[_0x43436e]]&&(this[_0x475743[_0x43436e]]=properties[_0x475743[_0x43436e]]);}}return UserDescriptor['prototype']['attributes']=$util['emptyArray'],UserDescriptor['create']=function(properties){return new UserDescriptor(properties);},UserDescriptor['encode']=function(_0x1e14b5,writer){if(writer||(writer=$Writer['create']()),null!=_0x1e14b5['attributes']&&_0x1e14b5['attributes']['length']){for(var _0x38ec39=0x0;_0x38ec39<_0x1e14b5['attributes']['length'];++_0x38ec39)$root['KeyValueDescriptor']['encode'](_0x1e14b5['attributes'][_0x38ec39],writer['uint32'](0xa)['fork']())['ldelim']();}return writer;},UserDescriptor['encodeDelimited']=function(_0x152f5b,writer){return this['encode'](_0x152f5b,writer)['ldelim']();},UserDescriptor['decode']=function(_0x5134b1,length){_0x5134b1 instanceof _0x246cb1||(_0x5134b1=_0x246cb1['create'](_0x5134b1));for(var _0x59654a=void 0x0===length?_0x5134b1['len']:_0x5134b1['pos']+length,_0x9b487b=new $root['UserDescriptor']();_0x5134b1['pos']<_0x59654a;){var tag=_0x5134b1['uint32']();if(tag>>>0x3==0x1)_0x9b487b['attributes']&&_0x9b487b['attributes']['length']||(_0x9b487b['attributes']=[]),_0x9b487b['attributes']['push']($root['KeyValueDescriptor']['decode'](_0x5134b1,_0x5134b1['uint32']()));else _0x5134b1['skipType'](0x7&tag);}return _0x9b487b;},UserDescriptor['decodeDelimited']=function(_0x9231e){return _0x9231e instanceof _0x246cb1||(_0x9231e=new _0x246cb1(_0x9231e)),this['decode'](_0x9231e,_0x9231e['uint32']());},UserDescriptor['verify']=function(_0x392579){if('object'!=typeof _0x392579||null===_0x392579)return'object\x20expected';if(null!=_0x392579['attributes']&&_0x392579['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x392579['attributes']))return'attributes:\x20array\x20expected';for(var _0x5b8a21=0x0;_0x5b8a21<_0x392579['attributes']['length'];++_0x5b8a21){var _0x2274f6=$root['KeyValueDescriptor']['verify'](_0x392579['attributes'][_0x5b8a21]);if(_0x2274f6)return'attributes.'+_0x2274f6;}}return null;},UserDescriptor['fromObject']=function(object){if(object instanceof $root['UserDescriptor'])return object;var _0x22db28=new $root['UserDescriptor']();if(object['attributes']){if(!Array['isArray'](object['attributes']))throw TypeError('.UserDescriptor.attributes:\x20array\x20expected');_0x22db28['attributes']=[];for(var _0x41ca72=0x0;_0x41ca72<object['attributes']['length'];++_0x41ca72){if('object'!=typeof object['attributes'][_0x41ca72])throw TypeError('.UserDescriptor.attributes:\x20object\x20expected');_0x22db28['attributes'][_0x41ca72]=$root['KeyValueDescriptor']['fromObject'](object['attributes'][_0x41ca72]);}}return _0x22db28;},UserDescriptor['toObject']=function(_0x1ba01d,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['attributes']=[]),_0x1ba01d['attributes']&&_0x1ba01d['attributes']['length']){object['attributes']=[];for(var _0x1401e8=0x0;_0x1401e8<_0x1ba01d['attributes']['length'];++_0x1401e8)object['attributes'][_0x1401e8]=$root['KeyValueDescriptor']['toObject'](_0x1ba01d['attributes'][_0x1401e8],options);}return object;},UserDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},UserDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/UserDescriptor';},UserDescriptor;}()),$root['GetManyUsersMessage']=(function(){function GetManyUsersMessage(properties){if(this['ids']=[],properties){for(var _0x59b3ab=Object['keys'](properties),_0x1d932b=0x0;_0x1d932b<_0x59b3ab['length'];++_0x1d932b)null!=properties[_0x59b3ab[_0x1d932b]]&&(this[_0x59b3ab[_0x1d932b]]=properties[_0x59b3ab[_0x1d932b]]);}}return GetManyUsersMessage['prototype']['ids']=$util['emptyArray'],GetManyUsersMessage['create']=function(properties){return new GetManyUsersMessage(properties);},GetManyUsersMessage['encode']=function(_0x165935,writer){if(writer||(writer=$Writer['create']()),null!=_0x165935['ids']&&_0x165935['ids']['length']){for(var _0x4ea98b=0x0;_0x4ea98b<_0x165935['ids']['length'];++_0x4ea98b)writer['uint32'](0xa)['string'](_0x165935['ids'][_0x4ea98b]);}return writer;},GetManyUsersMessage['encodeDelimited']=function(_0x1afb04,writer){return this['encode'](_0x1afb04,writer)['ldelim']();},GetManyUsersMessage['decode']=function(_0x5339f9,length){_0x5339f9 instanceof _0x246cb1||(_0x5339f9=_0x246cb1['create'](_0x5339f9));for(var _0xa1e5c5=void 0x0===length?_0x5339f9['len']:_0x5339f9['pos']+length,_0x18f837=new $root['GetManyUsersMessage']();_0x5339f9['pos']<_0xa1e5c5;){var tag=_0x5339f9['uint32']();if(tag>>>0x3==0x1)_0x18f837['ids']&&_0x18f837['ids']['length']||(_0x18f837['ids']=[]),_0x18f837['ids']['push'](_0x5339f9['string']());else _0x5339f9['skipType'](0x7&tag);}return _0x18f837;},GetManyUsersMessage['decodeDelimited']=function(_0x103496){return _0x103496 instanceof _0x246cb1||(_0x103496=new _0x246cb1(_0x103496)),this['decode'](_0x103496,_0x103496['uint32']());},GetManyUsersMessage['verify']=function(_0x492e27){if('object'!=typeof _0x492e27||null===_0x492e27)return'object\x20expected';if(null!=_0x492e27['ids']&&_0x492e27['hasOwnProperty']('ids')){if(!Array['isArray'](_0x492e27['ids']))return'ids:\x20array\x20expected';for(var _0x4cd8e6=0x0;_0x4cd8e6<_0x492e27['ids']['length'];++_0x4cd8e6)if(!$util['isString'](_0x492e27['ids'][_0x4cd8e6]))return'ids:\x20string[]\x20expected';}return null;},GetManyUsersMessage['fromObject']=function(object){if(object instanceof $root['GetManyUsersMessage'])return object;var _0x180116=new $root['GetManyUsersMessage']();if(object['ids']){if(!Array['isArray'](object['ids']))throw TypeError('.GetManyUsersMessage.ids:\x20array\x20expected');_0x180116['ids']=[];for(var _0x2501ed=0x0;_0x2501ed<object['ids']['length'];++_0x2501ed)_0x180116['ids'][_0x2501ed]=String(object['ids'][_0x2501ed]);}return _0x180116;},GetManyUsersMessage['toObject']=function(_0x16d096,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['ids']=[]),_0x16d096['ids']&&_0x16d096['ids']['length']){object['ids']=[];for(var _0x2cad37=0x0;_0x2cad37<_0x16d096['ids']['length'];++_0x2cad37)object['ids'][_0x2cad37]=_0x16d096['ids'][_0x2cad37];}return object;},GetManyUsersMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetManyUsersMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetManyUsersMessage';},GetManyUsersMessage;}()),$root['GetUserMessage']=(function(){function GetUserMessage(properties){if(properties){for(var _0x502de3=Object['keys'](properties),_0x4754bc=0x0;_0x4754bc<_0x502de3['length'];++_0x4754bc)null!=properties[_0x502de3[_0x4754bc]]&&(this[_0x502de3[_0x4754bc]]=properties[_0x502de3[_0x4754bc]]);}}return GetUserMessage['prototype']['id']='',GetUserMessage['create']=function(properties){return new GetUserMessage(properties);},GetUserMessage['encode']=function(_0x237edc,writer){return writer||(writer=$Writer['create']()),null!=_0x237edc['id']&&Object['hasOwnProperty']['call'](_0x237edc,'id')&&writer['uint32'](0xa)['string'](_0x237edc['id']),writer;},GetUserMessage['encodeDelimited']=function(_0x10f9bf,writer){return this['encode'](_0x10f9bf,writer)['ldelim']();},GetUserMessage['decode']=function(_0x3a4207,length){_0x3a4207 instanceof _0x246cb1||(_0x3a4207=_0x246cb1['create'](_0x3a4207));for(var _0x5f0d99=void 0x0===length?_0x3a4207['len']:_0x3a4207['pos']+length,_0x4157d0=new $root['GetUserMessage']();_0x3a4207['pos']<_0x5f0d99;){var tag=_0x3a4207['uint32']();if(tag>>>0x3==0x1)_0x4157d0['id']=_0x3a4207['string']();else _0x3a4207['skipType'](0x7&tag);}return _0x4157d0;},GetUserMessage['decodeDelimited']=function(_0x4b6262){return _0x4b6262 instanceof _0x246cb1||(_0x4b6262=new _0x246cb1(_0x4b6262)),this['decode'](_0x4b6262,_0x4b6262['uint32']());},GetUserMessage['verify']=function(_0x1534bd){return'object'!=typeof _0x1534bd||null===_0x1534bd?'object\x20expected':null!=_0x1534bd['id']&&_0x1534bd['hasOwnProperty']('id')&&!$util['isString'](_0x1534bd['id'])?'id:\x20string\x20expected':null;},GetUserMessage['fromObject']=function(object){if(object instanceof $root['GetUserMessage'])return object;var _0x29c6b3=new $root['GetUserMessage']();return null!=object['id']&&(_0x29c6b3['id']=String(object['id'])),_0x29c6b3;},GetUserMessage['toObject']=function(_0xa9f43a,options){options||(options={});var object={};return options['defaults']&&(object['id']=''),null!=_0xa9f43a['id']&&_0xa9f43a['hasOwnProperty']('id')&&(object['id']=_0xa9f43a['id']),object;},GetUserMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetUserMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetUserMessage';},GetUserMessage;}()),$root['GetManyUsersResponse']=(function(){function GetManyUsersResponse(properties){if(this['users']=[],properties){for(var _0x1c6b0b=Object['keys'](properties),_0x16a5df=0x0;_0x16a5df<_0x1c6b0b['length'];++_0x16a5df)null!=properties[_0x1c6b0b[_0x16a5df]]&&(this[_0x1c6b0b[_0x16a5df]]=properties[_0x1c6b0b[_0x16a5df]]);}}return GetManyUsersResponse['prototype']['users']=$util['emptyArray'],GetManyUsersResponse['create']=function(properties){return new GetManyUsersResponse(properties);},GetManyUsersResponse['encode']=function(_0x161c24,writer){if(writer||(writer=$Writer['create']()),null!=_0x161c24['users']&&_0x161c24['users']['length']){for(var _0x54eae2=0x0;_0x54eae2<_0x161c24['users']['length'];++_0x54eae2)$root['UserDescriptor']['encode'](_0x161c24['users'][_0x54eae2],writer['uint32'](0xa)['fork']())['ldelim']();}return writer;},GetManyUsersResponse['encodeDelimited']=function(_0x395341,writer){return this['encode'](_0x395341,writer)['ldelim']();},GetManyUsersResponse['decode']=function(_0x2467b8,length){_0x2467b8 instanceof _0x246cb1||(_0x2467b8=_0x246cb1['create'](_0x2467b8));for(var _0x291708=void 0x0===length?_0x2467b8['len']:_0x2467b8['pos']+length,_0x3baceb=new $root['GetManyUsersResponse']();_0x2467b8['pos']<_0x291708;){var tag=_0x2467b8['uint32']();if(tag>>>0x3==0x1)_0x3baceb['users']&&_0x3baceb['users']['length']||(_0x3baceb['users']=[]),_0x3baceb['users']['push']($root['UserDescriptor']['decode'](_0x2467b8,_0x2467b8['uint32']()));else _0x2467b8['skipType'](0x7&tag);}return _0x3baceb;},GetManyUsersResponse['decodeDelimited']=function(_0x1b78f4){return _0x1b78f4 instanceof _0x246cb1||(_0x1b78f4=new _0x246cb1(_0x1b78f4)),this['decode'](_0x1b78f4,_0x1b78f4['uint32']());},GetManyUsersResponse['verify']=function(_0x3c0cd2){if('object'!=typeof _0x3c0cd2||null===_0x3c0cd2)return'object\x20expected';if(null!=_0x3c0cd2['users']&&_0x3c0cd2['hasOwnProperty']('users')){if(!Array['isArray'](_0x3c0cd2['users']))return'users:\x20array\x20expected';for(var _0x1cc65b=0x0;_0x1cc65b<_0x3c0cd2['users']['length'];++_0x1cc65b){var _0x5c1554=$root['UserDescriptor']['verify'](_0x3c0cd2['users'][_0x1cc65b]);if(_0x5c1554)return'users.'+_0x5c1554;}}return null;},GetManyUsersResponse['fromObject']=function(object){if(object instanceof $root['GetManyUsersResponse'])return object;var _0x2aeb47=new $root['GetManyUsersResponse']();if(object['users']){if(!Array['isArray'](object['users']))throw TypeError('.GetManyUsersResponse.users:\x20array\x20expected');_0x2aeb47['users']=[];for(var _0x5c5051=0x0;_0x5c5051<object['users']['length'];++_0x5c5051){if('object'!=typeof object['users'][_0x5c5051])throw TypeError('.GetManyUsersResponse.users:\x20object\x20expected');_0x2aeb47['users'][_0x5c5051]=$root['UserDescriptor']['fromObject'](object['users'][_0x5c5051]);}}return _0x2aeb47;},GetManyUsersResponse['toObject']=function(_0x576128,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['users']=[]),_0x576128['users']&&_0x576128['users']['length']){object['users']=[];for(var _0x38b2a6=0x0;_0x38b2a6<_0x576128['users']['length'];++_0x38b2a6)object['users'][_0x38b2a6]=$root['UserDescriptor']['toObject'](_0x576128['users'][_0x38b2a6],options);}return object;},GetManyUsersResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetManyUsersResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetManyUsersResponse';},GetManyUsersResponse;}()),$root['GetUserResponse']=(function(){function GetUserResponse(properties){if(this['attributes']=[],properties){for(var _0x10b640=Object['keys'](properties),_0x3cb660=0x0;_0x3cb660<_0x10b640['length'];++_0x3cb660)null!=properties[_0x10b640[_0x3cb660]]&&(this[_0x10b640[_0x3cb660]]=properties[_0x10b640[_0x3cb660]]);}}return GetUserResponse['prototype']['attributes']=$util['emptyArray'],GetUserResponse['create']=function(properties){return new GetUserResponse(properties);},GetUserResponse['encode']=function(_0x510433,writer){if(writer||(writer=$Writer['create']()),null!=_0x510433['attributes']&&_0x510433['attributes']['length']){for(var _0x4ea52a=0x0;_0x4ea52a<_0x510433['attributes']['length'];++_0x4ea52a)$root['KeyValueDescriptor']['encode'](_0x510433['attributes'][_0x4ea52a],writer['uint32'](0xa)['fork']())['ldelim']();}return writer;},GetUserResponse['encodeDelimited']=function(_0xea35b6,writer){return this['encode'](_0xea35b6,writer)['ldelim']();},GetUserResponse['decode']=function(_0x1e1525,length){_0x1e1525 instanceof _0x246cb1||(_0x1e1525=_0x246cb1['create'](_0x1e1525));for(var _0x42a4a0=void 0x0===length?_0x1e1525['len']:_0x1e1525['pos']+length,_0x31ae68=new $root['GetUserResponse']();_0x1e1525['pos']<_0x42a4a0;){var tag=_0x1e1525['uint32']();if(tag>>>0x3==0x1)_0x31ae68['attributes']&&_0x31ae68['attributes']['length']||(_0x31ae68['attributes']=[]),_0x31ae68['attributes']['push']($root['KeyValueDescriptor']['decode'](_0x1e1525,_0x1e1525['uint32']()));else _0x1e1525['skipType'](0x7&tag);}return _0x31ae68;},GetUserResponse['decodeDelimited']=function(_0x499694){return _0x499694 instanceof _0x246cb1||(_0x499694=new _0x246cb1(_0x499694)),this['decode'](_0x499694,_0x499694['uint32']());},GetUserResponse['verify']=function(_0x3b3fe7){if('object'!=typeof _0x3b3fe7||null===_0x3b3fe7)return'object\x20expected';if(null!=_0x3b3fe7['attributes']&&_0x3b3fe7['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x3b3fe7['attributes']))return'attributes:\x20array\x20expected';for(var _0x202da8=0x0;_0x202da8<_0x3b3fe7['attributes']['length'];++_0x202da8){var _0x5bd1d6=$root['KeyValueDescriptor']['verify'](_0x3b3fe7['attributes'][_0x202da8]);if(_0x5bd1d6)return'attributes.'+_0x5bd1d6;}}return null;},GetUserResponse['fromObject']=function(object){if(object instanceof $root['GetUserResponse'])return object;var _0xce09a=new $root['GetUserResponse']();if(object['attributes']){if(!Array['isArray'](object['attributes']))throw TypeError('.GetUserResponse.attributes:\x20array\x20expected');_0xce09a['attributes']=[];for(var _0x2ae387=0x0;_0x2ae387<object['attributes']['length'];++_0x2ae387){if('object'!=typeof object['attributes'][_0x2ae387])throw TypeError('.GetUserResponse.attributes:\x20object\x20expected');_0xce09a['attributes'][_0x2ae387]=$root['KeyValueDescriptor']['fromObject'](object['attributes'][_0x2ae387]);}}return _0xce09a;},GetUserResponse['toObject']=function(_0x5dace9,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['attributes']=[]),_0x5dace9['attributes']&&_0x5dace9['attributes']['length']){object['attributes']=[];for(var _0x16b5f1=0x0;_0x16b5f1<_0x5dace9['attributes']['length'];++_0x16b5f1)object['attributes'][_0x16b5f1]=$root['KeyValueDescriptor']['toObject'](_0x5dace9['attributes'][_0x16b5f1],options);}return object;},GetUserResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetUserResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetUserResponse';},GetUserResponse;}()),$root['ChannelMessage']=(function(){function _0x3a9f95(properties){if(properties){for(var _0x115daa=Object['keys'](properties),_0x24205c=0x0;_0x24205c<_0x115daa['length'];++_0x24205c)null!=properties[_0x115daa[_0x24205c]]&&(this[_0x115daa[_0x24205c]]=properties[_0x115daa[_0x24205c]]);}}return _0x3a9f95['prototype']['type']=0x0,_0x3a9f95['prototype']['socketId']='',_0x3a9f95['prototype']['data']=$util['newBuffer']([]),_0x3a9f95['create']=function(properties){return new _0x3a9f95(properties);},_0x3a9f95['encode']=function(_0x5a60cb,writer){return writer||(writer=$Writer['create']()),null!=_0x5a60cb['type']&&Object['hasOwnProperty']['call'](_0x5a60cb,'type')&&writer['uint32'](0x8)['uint32'](_0x5a60cb['type']),null!=_0x5a60cb['socketId']&&Object['hasOwnProperty']['call'](_0x5a60cb,'socketId')&&writer['uint32'](0x12)['string'](_0x5a60cb['socketId']),null!=_0x5a60cb['data']&&Object['hasOwnProperty']['call'](_0x5a60cb,'data')&&writer['uint32'](0x1a)['bytes'](_0x5a60cb['data']),writer;},_0x3a9f95['encodeDelimited']=function(_0x5e3315,writer){return this['encode'](_0x5e3315,writer)['ldelim']();},_0x3a9f95['decode']=function(_0x16a3de,length){_0x16a3de instanceof _0x246cb1||(_0x16a3de=_0x246cb1['create'](_0x16a3de));for(var _0x4cb75f=void 0x0===length?_0x16a3de['len']:_0x16a3de['pos']+length,_0x3d3b4b=new $root['ChannelMessage']();_0x16a3de['pos']<_0x4cb75f;){var tag=_0x16a3de['uint32']();switch(tag>>>0x3){case 0x1:_0x3d3b4b['type']=_0x16a3de['uint32']();break;case 0x2:_0x3d3b4b['socketId']=_0x16a3de['string']();break;case 0x3:_0x3d3b4b['data']=_0x16a3de['bytes']();break;default:_0x16a3de['skipType'](0x7&tag);}}return _0x3d3b4b;},_0x3a9f95['decodeDelimited']=function(_0x38f741){return _0x38f741 instanceof _0x246cb1||(_0x38f741=new _0x246cb1(_0x38f741)),this['decode'](_0x38f741,_0x38f741['uint32']());},_0x3a9f95['verify']=function(_0x411086){return'object'!=typeof _0x411086||null===_0x411086?'object\x20expected':null!=_0x411086['type']&&_0x411086['hasOwnProperty']('type')&&!$util['isInteger'](_0x411086['type'])?'type:\x20integer\x20expected':null!=_0x411086['socketId']&&_0x411086['hasOwnProperty']('socketId')&&!$util['isString'](_0x411086['socketId'])?'socketId:\x20string\x20expected':null!=_0x411086['data']&&_0x411086['hasOwnProperty']('data')&&!(_0x411086['data']&&'number'==typeof _0x411086['data']['length']||$util['isString'](_0x411086['data']))?'data:\x20buffer\x20expected':null;},_0x3a9f95['fromObject']=function(object){if(object instanceof $root['ChannelMessage'])return object;var _0x31cdd5=new $root['ChannelMessage']();return null!=object['type']&&(_0x31cdd5['type']=object['type']>>>0x0),null!=object['socketId']&&(_0x31cdd5['socketId']=String(object['socketId'])),null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x31cdd5['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x31cdd5['data']=object['data'])),_0x31cdd5;},_0x3a9f95['toObject']=function(_0x2cba34,options){options||(options={});var object={};return options['defaults']&&(object['type']=0x0,object['socketId']='',options['bytes']===String?object['data']='':(object['data']=[],options['bytes']!==Array&&(object['data']=$util['newBuffer'](object['data'])))),null!=_0x2cba34['type']&&_0x2cba34['hasOwnProperty']('type')&&(object['type']=_0x2cba34['type']),null!=_0x2cba34['socketId']&&_0x2cba34['hasOwnProperty']('socketId')&&(object['socketId']=_0x2cba34['socketId']),null!=_0x2cba34['data']&&_0x2cba34['hasOwnProperty']('data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x2cba34['data'],0x0,_0x2cba34['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x2cba34['data']):_0x2cba34['data']),object;},_0x3a9f95['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},_0x3a9f95['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ChannelMessage';},_0x3a9f95;}()),$root['BytesBytesPacketDataMessage']=(function(){function BytesBytesPacketDataMessage(properties){if(properties){for(var _0x3a3b44=Object['keys'](properties),_0x3fbf1c=0x0;_0x3fbf1c<_0x3a3b44['length'];++_0x3fbf1c)null!=properties[_0x3a3b44[_0x3fbf1c]]&&(this[_0x3a3b44[_0x3fbf1c]]=properties[_0x3a3b44[_0x3fbf1c]]);}}return BytesBytesPacketDataMessage['prototype']['data']=$util['newBuffer']([]),BytesBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),BytesBytesPacketDataMessage['create']=function(properties){return new BytesBytesPacketDataMessage(properties);},BytesBytesPacketDataMessage['encode']=function(_0x2cb93f,writer){return writer||(writer=$Writer['create']()),null!=_0x2cb93f['data']&&Object['hasOwnProperty']['call'](_0x2cb93f,'data')&&writer['uint32'](0xa)['bytes'](_0x2cb93f['data']),null!=_0x2cb93f['data1']&&Object['hasOwnProperty']['call'](_0x2cb93f,'data1')&&writer['uint32'](0x12)['bytes'](_0x2cb93f['data1']),writer;},BytesBytesPacketDataMessage['encodeDelimited']=function(_0x31b347,writer){return this['encode'](_0x31b347,writer)['ldelim']();},BytesBytesPacketDataMessage['decode']=function(_0x16b874,length){_0x16b874 instanceof _0x246cb1||(_0x16b874=_0x246cb1['create'](_0x16b874));for(var _0x361ba8=void 0x0===length?_0x16b874['len']:_0x16b874['pos']+length,_0x128a95=new $root['BytesBytesPacketDataMessage']();_0x16b874['pos']<_0x361ba8;){var tag=_0x16b874['uint32']();switch(tag>>>0x3){case 0x1:_0x128a95['data']=_0x16b874['bytes']();break;case 0x2:_0x128a95['data1']=_0x16b874['bytes']();break;default:_0x16b874['skipType'](0x7&tag);}}return _0x128a95;},BytesBytesPacketDataMessage['decodeDelimited']=function(_0x749732){return _0x749732 instanceof _0x246cb1||(_0x749732=new _0x246cb1(_0x749732)),this['decode'](_0x749732,_0x749732['uint32']());},BytesBytesPacketDataMessage['verify']=function(_0x1d660a){return'object'!=typeof _0x1d660a||null===_0x1d660a?'object\x20expected':null!=_0x1d660a['data']&&_0x1d660a['hasOwnProperty']('data')&&!(_0x1d660a['data']&&'number'==typeof _0x1d660a['data']['length']||$util['isString'](_0x1d660a['data']))?'data:\x20buffer\x20expected':null!=_0x1d660a['data1']&&_0x1d660a['hasOwnProperty']('data1')&&!(_0x1d660a['data1']&&'number'==typeof _0x1d660a['data1']['length']||$util['isString'](_0x1d660a['data1']))?'data1:\x20buffer\x20expected':null;},BytesBytesPacketDataMessage['fromObject']=function(object){if(object instanceof $root['BytesBytesPacketDataMessage'])return object;var _0x484b39=new $root['BytesBytesPacketDataMessage']();return null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x484b39['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x484b39['data']=object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x484b39['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x484b39['data1']=object['data1'])),_0x484b39;},BytesBytesPacketDataMessage['toObject']=function(_0x54287b,options){options||(options={});var object={};return options['defaults']&&(options['bytes']===String?object['data']='':(object['data']=[],options['bytes']!==Array&&(object['data']=$util['newBuffer'](object['data']))),options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x54287b['data']&&_0x54287b['hasOwnProperty']('data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x54287b['data'],0x0,_0x54287b['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x54287b['data']):_0x54287b['data']),null!=_0x54287b['data1']&&_0x54287b['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x54287b['data1'],0x0,_0x54287b['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x54287b['data1']):_0x54287b['data1']),object;},BytesBytesPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},BytesBytesPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/BytesBytesPacketDataMessage';},BytesBytesPacketDataMessage;}()),$root['NumberBytesPacketDataMessage']=(function(){function NumberBytesPacketDataMessage(properties){if(properties){for(var _0xacf246=Object['keys'](properties),_0x328736=0x0;_0x328736<_0xacf246['length'];++_0x328736)null!=properties[_0xacf246[_0x328736]]&&(this[_0xacf246[_0x328736]]=properties[_0xacf246[_0x328736]]);}}return NumberBytesPacketDataMessage['prototype']['data']=0x0,NumberBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),NumberBytesPacketDataMessage['create']=function(properties){return new NumberBytesPacketDataMessage(properties);},NumberBytesPacketDataMessage['encode']=function(_0x59bf5a,writer){return writer||(writer=$Writer['create']()),null!=_0x59bf5a['data']&&Object['hasOwnProperty']['call'](_0x59bf5a,'data')&&writer['uint32'](0x8)['uint32'](_0x59bf5a['data']),null!=_0x59bf5a['data1']&&Object['hasOwnProperty']['call'](_0x59bf5a,'data1')&&writer['uint32'](0x12)['bytes'](_0x59bf5a['data1']),writer;},NumberBytesPacketDataMessage['encodeDelimited']=function(_0x32077e,writer){return this['encode'](_0x32077e,writer)['ldelim']();},NumberBytesPacketDataMessage['decode']=function(_0x1814c7,length){_0x1814c7 instanceof _0x246cb1||(_0x1814c7=_0x246cb1['create'](_0x1814c7));for(var _0x471fbf=void 0x0===length?_0x1814c7['len']:_0x1814c7['pos']+length,_0x2f9118=new $root['NumberBytesPacketDataMessage']();_0x1814c7['pos']<_0x471fbf;){var tag=_0x1814c7['uint32']();switch(tag>>>0x3){case 0x1:_0x2f9118['data']=_0x1814c7['uint32']();break;case 0x2:_0x2f9118['data1']=_0x1814c7['bytes']();break;default:_0x1814c7['skipType'](0x7&tag);}}return _0x2f9118;},NumberBytesPacketDataMessage['decodeDelimited']=function(_0x405833){return _0x405833 instanceof _0x246cb1||(_0x405833=new _0x246cb1(_0x405833)),this['decode'](_0x405833,_0x405833['uint32']());},NumberBytesPacketDataMessage['verify']=function(_0x208283){return'object'!=typeof _0x208283||null===_0x208283?'object\x20expected':null!=_0x208283['data']&&_0x208283['hasOwnProperty']('data')&&!$util['isInteger'](_0x208283['data'])?'data:\x20integer\x20expected':null!=_0x208283['data1']&&_0x208283['hasOwnProperty']('data1')&&!(_0x208283['data1']&&'number'==typeof _0x208283['data1']['length']||$util['isString'](_0x208283['data1']))?'data1:\x20buffer\x20expected':null;},NumberBytesPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberBytesPacketDataMessage'])return object;var _0x5b559f=new $root['NumberBytesPacketDataMessage']();return null!=object['data']&&(_0x5b559f['data']=object['data']>>>0x0),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x5b559f['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x5b559f['data1']=object['data1'])),_0x5b559f;},NumberBytesPacketDataMessage['toObject']=function(_0xf9e689,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0xf9e689['data']&&_0xf9e689['hasOwnProperty']('data')&&(object['data']=_0xf9e689['data']),null!=_0xf9e689['data1']&&_0xf9e689['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0xf9e689['data1'],0x0,_0xf9e689['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0xf9e689['data1']):_0xf9e689['data1']),object;},NumberBytesPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberBytesPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberBytesPacketDataMessage';},NumberBytesPacketDataMessage;}()),$root['NumberNumberPacketDataMessage']=(function(){function NumberNumberPacketDataMessage(properties){if(properties){for(var _0x4e51ce=Object['keys'](properties),_0x4a18d8=0x0;_0x4a18d8<_0x4e51ce['length'];++_0x4a18d8)null!=properties[_0x4e51ce[_0x4a18d8]]&&(this[_0x4e51ce[_0x4a18d8]]=properties[_0x4e51ce[_0x4a18d8]]);}}return NumberNumberPacketDataMessage['prototype']['data']=0x0,NumberNumberPacketDataMessage['prototype']['data1']=0x0,NumberNumberPacketDataMessage['create']=function(properties){return new NumberNumberPacketDataMessage(properties);},NumberNumberPacketDataMessage['encode']=function(_0x24a618,writer){return writer||(writer=$Writer['create']()),null!=_0x24a618['data']&&Object['hasOwnProperty']['call'](_0x24a618,'data')&&writer['uint32'](0x8)['uint32'](_0x24a618['data']),null!=_0x24a618['data1']&&Object['hasOwnProperty']['call'](_0x24a618,'data1')&&writer['uint32'](0x10)['uint32'](_0x24a618['data1']),writer;},NumberNumberPacketDataMessage['encodeDelimited']=function(_0x5352b0,writer){return this['encode'](_0x5352b0,writer)['ldelim']();},NumberNumberPacketDataMessage['decode']=function(_0x114766,length){_0x114766 instanceof _0x246cb1||(_0x114766=_0x246cb1['create'](_0x114766));for(var _0x38aa3b=void 0x0===length?_0x114766['len']:_0x114766['pos']+length,_0x1f33a9=new $root['NumberNumberPacketDataMessage']();_0x114766['pos']<_0x38aa3b;){var tag=_0x114766['uint32']();switch(tag>>>0x3){case 0x1:_0x1f33a9['data']=_0x114766['uint32']();break;case 0x2:_0x1f33a9['data1']=_0x114766['uint32']();break;default:_0x114766['skipType'](0x7&tag);}}return _0x1f33a9;},NumberNumberPacketDataMessage['decodeDelimited']=function(_0x527745){return _0x527745 instanceof _0x246cb1||(_0x527745=new _0x246cb1(_0x527745)),this['decode'](_0x527745,_0x527745['uint32']());},NumberNumberPacketDataMessage['verify']=function(_0x29e1c4){return'object'!=typeof _0x29e1c4||null===_0x29e1c4?'object\x20expected':null!=_0x29e1c4['data']&&_0x29e1c4['hasOwnProperty']('data')&&!$util['isInteger'](_0x29e1c4['data'])?'data:\x20integer\x20expected':null!=_0x29e1c4['data1']&&_0x29e1c4['hasOwnProperty']('data1')&&!$util['isInteger'](_0x29e1c4['data1'])?'data1:\x20integer\x20expected':null;},NumberNumberPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberNumberPacketDataMessage'])return object;var _0x4bd0eb=new $root['NumberNumberPacketDataMessage']();return null!=object['data']&&(_0x4bd0eb['data']=object['data']>>>0x0),null!=object['data1']&&(_0x4bd0eb['data1']=object['data1']>>>0x0),_0x4bd0eb;},NumberNumberPacketDataMessage['toObject']=function(_0x26b395,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,object['data1']=0x0),null!=_0x26b395['data']&&_0x26b395['hasOwnProperty']('data')&&(object['data']=_0x26b395['data']),null!=_0x26b395['data1']&&_0x26b395['hasOwnProperty']('data1')&&(object['data1']=_0x26b395['data1']),object;},NumberNumberPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberNumberPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberNumberPacketDataMessage';},NumberNumberPacketDataMessage;}()),$root['NumberObjectPacketDataMessage']=(function(){function NumberObjectPacketDataMessage(properties){if(properties){for(var _0x2c4d6e=Object['keys'](properties),_0x5d9683=0x0;_0x5d9683<_0x2c4d6e['length'];++_0x5d9683)null!=properties[_0x2c4d6e[_0x5d9683]]&&(this[_0x2c4d6e[_0x5d9683]]=properties[_0x2c4d6e[_0x5d9683]]);}}return NumberObjectPacketDataMessage['prototype']['data']=0x0,NumberObjectPacketDataMessage['prototype']['data1']='',NumberObjectPacketDataMessage['create']=function(properties){return new NumberObjectPacketDataMessage(properties);},NumberObjectPacketDataMessage['encode']=function(_0x20b809,writer){return writer||(writer=$Writer['create']()),null!=_0x20b809['data']&&Object['hasOwnProperty']['call'](_0x20b809,'data')&&writer['uint32'](0x8)['uint32'](_0x20b809['data']),null!=_0x20b809['data1']&&Object['hasOwnProperty']['call'](_0x20b809,'data1')&&writer['uint32'](0x12)['string'](_0x20b809['data1']),writer;},NumberObjectPacketDataMessage['encodeDelimited']=function(_0x3c2a1d,writer){return this['encode'](_0x3c2a1d,writer)['ldelim']();},NumberObjectPacketDataMessage['decode']=function(_0x2cffc5,length){_0x2cffc5 instanceof _0x246cb1||(_0x2cffc5=_0x246cb1['create'](_0x2cffc5));for(var _0x19d52e=void 0x0===length?_0x2cffc5['len']:_0x2cffc5['pos']+length,_0x4b3263=new $root['NumberObjectPacketDataMessage']();_0x2cffc5['pos']<_0x19d52e;){var tag=_0x2cffc5['uint32']();switch(tag>>>0x3){case 0x1:_0x4b3263['data']=_0x2cffc5['uint32']();break;case 0x2:_0x4b3263['data1']=_0x2cffc5['string']();break;default:_0x2cffc5['skipType'](0x7&tag);}}return _0x4b3263;},NumberObjectPacketDataMessage['decodeDelimited']=function(_0x4bd21a){return _0x4bd21a instanceof _0x246cb1||(_0x4bd21a=new _0x246cb1(_0x4bd21a)),this['decode'](_0x4bd21a,_0x4bd21a['uint32']());},NumberObjectPacketDataMessage['verify']=function(_0x31d686){return'object'!=typeof _0x31d686||null===_0x31d686?'object\x20expected':null!=_0x31d686['data']&&_0x31d686['hasOwnProperty']('data')&&!$util['isInteger'](_0x31d686['data'])?'data:\x20integer\x20expected':null!=_0x31d686['data1']&&_0x31d686['hasOwnProperty']('data1')&&!$util['isString'](_0x31d686['data1'])?'data1:\x20string\x20expected':null;},NumberObjectPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberObjectPacketDataMessage'])return object;var _0x137693=new $root['NumberObjectPacketDataMessage']();return null!=object['data']&&(_0x137693['data']=object['data']>>>0x0),null!=object['data1']&&(_0x137693['data1']=String(object['data1'])),_0x137693;},NumberObjectPacketDataMessage['toObject']=function(_0x92c2d0,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,object['data1']=''),null!=_0x92c2d0['data']&&_0x92c2d0['hasOwnProperty']('data')&&(object['data']=_0x92c2d0['data']),null!=_0x92c2d0['data1']&&_0x92c2d0['hasOwnProperty']('data1')&&(object['data1']=_0x92c2d0['data1']),object;},NumberObjectPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberObjectPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberObjectPacketDataMessage';},NumberObjectPacketDataMessage;}()),$root['NumberStringPacketDataMessage']=(function(){function NumberStringPacketDataMessage(properties){if(properties){for(var _0x3a0933=Object['keys'](properties),_0x30c6cc=0x0;_0x30c6cc<_0x3a0933['length'];++_0x30c6cc)null!=properties[_0x3a0933[_0x30c6cc]]&&(this[_0x3a0933[_0x30c6cc]]=properties[_0x3a0933[_0x30c6cc]]);}}return NumberStringPacketDataMessage['prototype']['data']=0x0,NumberStringPacketDataMessage['prototype']['data1']='',NumberStringPacketDataMessage['create']=function(properties){return new NumberStringPacketDataMessage(properties);},NumberStringPacketDataMessage['encode']=function(_0x1c4206,writer){return writer||(writer=$Writer['create']()),null!=_0x1c4206['data']&&Object['hasOwnProperty']['call'](_0x1c4206,'data')&&writer['uint32'](0x8)['uint32'](_0x1c4206['data']),null!=_0x1c4206['data1']&&Object['hasOwnProperty']['call'](_0x1c4206,'data1')&&writer['uint32'](0x12)['string'](_0x1c4206['data1']),writer;},NumberStringPacketDataMessage['encodeDelimited']=function(_0x18b32f,writer){return this['encode'](_0x18b32f,writer)['ldelim']();},NumberStringPacketDataMessage['decode']=function(_0x1af866,length){_0x1af866 instanceof _0x246cb1||(_0x1af866=_0x246cb1['create'](_0x1af866));for(var _0x3157a3=void 0x0===length?_0x1af866['len']:_0x1af866['pos']+length,_0x5be0ad=new $root['NumberStringPacketDataMessage']();_0x1af866['pos']<_0x3157a3;){var tag=_0x1af866['uint32']();switch(tag>>>0x3){case 0x1:_0x5be0ad['data']=_0x1af866['uint32']();break;case 0x2:_0x5be0ad['data1']=_0x1af866['string']();break;default:_0x1af866['skipType'](0x7&tag);}}return _0x5be0ad;},NumberStringPacketDataMessage['decodeDelimited']=function(_0x417db5){return _0x417db5 instanceof _0x246cb1||(_0x417db5=new _0x246cb1(_0x417db5)),this['decode'](_0x417db5,_0x417db5['uint32']());},NumberStringPacketDataMessage['verify']=function(_0x4a5f85){return'object'!=typeof _0x4a5f85||null===_0x4a5f85?'object\x20expected':null!=_0x4a5f85['data']&&_0x4a5f85['hasOwnProperty']('data')&&!$util['isInteger'](_0x4a5f85['data'])?'data:\x20integer\x20expected':null!=_0x4a5f85['data1']&&_0x4a5f85['hasOwnProperty']('data1')&&!$util['isString'](_0x4a5f85['data1'])?'data1:\x20string\x20expected':null;},NumberStringPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberStringPacketDataMessage'])return object;var _0x1f1ed7=new $root['NumberStringPacketDataMessage']();return null!=object['data']&&(_0x1f1ed7['data']=object['data']>>>0x0),null!=object['data1']&&(_0x1f1ed7['data1']=String(object['data1'])),_0x1f1ed7;},NumberStringPacketDataMessage['toObject']=function(_0xb604a5,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,object['data1']=''),null!=_0xb604a5['data']&&_0xb604a5['hasOwnProperty']('data')&&(object['data']=_0xb604a5['data']),null!=_0xb604a5['data1']&&_0xb604a5['hasOwnProperty']('data1')&&(object['data1']=_0xb604a5['data1']),object;},NumberStringPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberStringPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberStringPacketDataMessage';},NumberStringPacketDataMessage;}()),$root['ObjectBufferPacketDataMessage']=(function(){function ObjectBufferPacketDataMessage(properties){if(properties){for(var _0x421a0f=Object['keys'](properties),_0x286994=0x0;_0x286994<_0x421a0f['length'];++_0x286994)null!=properties[_0x421a0f[_0x286994]]&&(this[_0x421a0f[_0x286994]]=properties[_0x421a0f[_0x286994]]);}}return ObjectBufferPacketDataMessage['prototype']['data']='',ObjectBufferPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),ObjectBufferPacketDataMessage['create']=function(properties){return new ObjectBufferPacketDataMessage(properties);},ObjectBufferPacketDataMessage['encode']=function(_0xd1a3ef,writer){return writer||(writer=$Writer['create']()),null!=_0xd1a3ef['data']&&Object['hasOwnProperty']['call'](_0xd1a3ef,'data')&&writer['uint32'](0xa)['string'](_0xd1a3ef['data']),null!=_0xd1a3ef['data1']&&Object['hasOwnProperty']['call'](_0xd1a3ef,'data1')&&writer['uint32'](0x12)['bytes'](_0xd1a3ef['data1']),writer;},ObjectBufferPacketDataMessage['encodeDelimited']=function(_0x1d3952,writer){return this['encode'](_0x1d3952,writer)['ldelim']();},ObjectBufferPacketDataMessage['decode']=function(_0x4b2757,length){_0x4b2757 instanceof _0x246cb1||(_0x4b2757=_0x246cb1['create'](_0x4b2757));for(var _0x1fd175=void 0x0===length?_0x4b2757['len']:_0x4b2757['pos']+length,_0x224e10=new $root['ObjectBufferPacketDataMessage']();_0x4b2757['pos']<_0x1fd175;){var tag=_0x4b2757['uint32']();switch(tag>>>0x3){case 0x1:_0x224e10['data']=_0x4b2757['string']();break;case 0x2:_0x224e10['data1']=_0x4b2757['bytes']();break;default:_0x4b2757['skipType'](0x7&tag);}}return _0x224e10;},ObjectBufferPacketDataMessage['decodeDelimited']=function(_0x211ac9){return _0x211ac9 instanceof _0x246cb1||(_0x211ac9=new _0x246cb1(_0x211ac9)),this['decode'](_0x211ac9,_0x211ac9['uint32']());},ObjectBufferPacketDataMessage['verify']=function(_0x17048e){return'object'!=typeof _0x17048e||null===_0x17048e?'object\x20expected':null!=_0x17048e['data']&&_0x17048e['hasOwnProperty']('data')&&!$util['isString'](_0x17048e['data'])?'data:\x20string\x20expected':null!=_0x17048e['data1']&&_0x17048e['hasOwnProperty']('data1')&&!(_0x17048e['data1']&&'number'==typeof _0x17048e['data1']['length']||$util['isString'](_0x17048e['data1']))?'data1:\x20buffer\x20expected':null;},ObjectBufferPacketDataMessage['fromObject']=function(object){if(object instanceof $root['ObjectBufferPacketDataMessage'])return object;var _0x270656=new $root['ObjectBufferPacketDataMessage']();return null!=object['data']&&(_0x270656['data']=String(object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x270656['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x270656['data1']=object['data1'])),_0x270656;},ObjectBufferPacketDataMessage['toObject']=function(_0x32d716,options){options||(options={});var object={};return options['defaults']&&(object['data']='',options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x32d716['data']&&_0x32d716['hasOwnProperty']('data')&&(object['data']=_0x32d716['data']),null!=_0x32d716['data1']&&_0x32d716['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x32d716['data1'],0x0,_0x32d716['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x32d716['data1']):_0x32d716['data1']),object;},ObjectBufferPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},ObjectBufferPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ObjectBufferPacketDataMessage';},ObjectBufferPacketDataMessage;}()),$root['ObjectObjectPacketDataMessage']=(function(){function ObjectObjectPacketDataMessage(properties){if(properties){for(var _0x40019e=Object['keys'](properties),_0x381905=0x0;_0x381905<_0x40019e['length'];++_0x381905)null!=properties[_0x40019e[_0x381905]]&&(this[_0x40019e[_0x381905]]=properties[_0x40019e[_0x381905]]);}}return ObjectObjectPacketDataMessage['prototype']['data']='',ObjectObjectPacketDataMessage['prototype']['data1']='',ObjectObjectPacketDataMessage['create']=function(properties){return new ObjectObjectPacketDataMessage(properties);},ObjectObjectPacketDataMessage['encode']=function(_0x2b93e3,writer){return writer||(writer=$Writer['create']()),null!=_0x2b93e3['data']&&Object['hasOwnProperty']['call'](_0x2b93e3,'data')&&writer['uint32'](0xa)['string'](_0x2b93e3['data']),null!=_0x2b93e3['data1']&&Object['hasOwnProperty']['call'](_0x2b93e3,'data1')&&writer['uint32'](0x12)['string'](_0x2b93e3['data1']),writer;},ObjectObjectPacketDataMessage['encodeDelimited']=function(_0x15c445,writer){return this['encode'](_0x15c445,writer)['ldelim']();},ObjectObjectPacketDataMessage['decode']=function(_0x27e8b7,length){_0x27e8b7 instanceof _0x246cb1||(_0x27e8b7=_0x246cb1['create'](_0x27e8b7));for(var _0x102f71=void 0x0===length?_0x27e8b7['len']:_0x27e8b7['pos']+length,_0x3e7e5c=new $root['ObjectObjectPacketDataMessage']();_0x27e8b7['pos']<_0x102f71;){var tag=_0x27e8b7['uint32']();switch(tag>>>0x3){case 0x1:_0x3e7e5c['data']=_0x27e8b7['string']();break;case 0x2:_0x3e7e5c['data1']=_0x27e8b7['string']();break;default:_0x27e8b7['skipType'](0x7&tag);}}return _0x3e7e5c;},ObjectObjectPacketDataMessage['decodeDelimited']=function(_0x317ee2){return _0x317ee2 instanceof _0x246cb1||(_0x317ee2=new _0x246cb1(_0x317ee2)),this['decode'](_0x317ee2,_0x317ee2['uint32']());},ObjectObjectPacketDataMessage['verify']=function(_0x5ec08a){return'object'!=typeof _0x5ec08a||null===_0x5ec08a?'object\x20expected':null!=_0x5ec08a['data']&&_0x5ec08a['hasOwnProperty']('data')&&!$util['isString'](_0x5ec08a['data'])?'data:\x20string\x20expected':null!=_0x5ec08a['data1']&&_0x5ec08a['hasOwnProperty']('data1')&&!$util['isString'](_0x5ec08a['data1'])?'data1:\x20string\x20expected':null;},ObjectObjectPacketDataMessage['fromObject']=function(object){if(object instanceof $root['ObjectObjectPacketDataMessage'])return object;var _0x19d5a9=new $root['ObjectObjectPacketDataMessage']();return null!=object['data']&&(_0x19d5a9['data']=String(object['data'])),null!=object['data1']&&(_0x19d5a9['data1']=String(object['data1'])),_0x19d5a9;},ObjectObjectPacketDataMessage['toObject']=function(_0x594a93,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x594a93['data']&&_0x594a93['hasOwnProperty']('data')&&(object['data']=_0x594a93['data']),null!=_0x594a93['data1']&&_0x594a93['hasOwnProperty']('data1')&&(object['data1']=_0x594a93['data1']),object;},ObjectObjectPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},ObjectObjectPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ObjectObjectPacketDataMessage';},ObjectObjectPacketDataMessage;}()),$root['PacketMessage']=(function(){function PacketMessage(properties){if(properties){for(var _0x472ad=Object['keys'](properties),_0x2b9b3a=0x0;_0x2b9b3a<_0x472ad['length'];++_0x2b9b3a)null!=properties[_0x472ad[_0x2b9b3a]]&&(this[_0x472ad[_0x2b9b3a]]=properties[_0x472ad[_0x2b9b3a]]);}}return PacketMessage['prototype']['type']=0x0,PacketMessage['prototype']['id']=0x0,PacketMessage['prototype']['nsp']='',PacketMessage['prototype']['data']=$util['newBuffer']([]),PacketMessage['prototype']['options']=$util['newBuffer']([]),PacketMessage['create']=function(properties){return new PacketMessage(properties);},PacketMessage['encode']=function(_0x159697,writer){return writer||(writer=$Writer['create']()),null!=_0x159697['type']&&Object['hasOwnProperty']['call'](_0x159697,'type')&&writer['uint32'](0x8)['uint32'](_0x159697['type']),null!=_0x159697['id']&&Object['hasOwnProperty']['call'](_0x159697,'id')&&writer['uint32'](0x10)['uint32'](_0x159697['id']),null!=_0x159697['nsp']&&Object['hasOwnProperty']['call'](_0x159697,'nsp')&&writer['uint32'](0x1a)['string'](_0x159697['nsp']),null!=_0x159697['data']&&Object['hasOwnProperty']['call'](_0x159697,'data')&&writer['uint32'](0x22)['bytes'](_0x159697['data']),null!=_0x159697['options']&&Object['hasOwnProperty']['call'](_0x159697,'options')&&writer['uint32'](0x2a)['bytes'](_0x159697['options']),writer;},PacketMessage['encodeDelimited']=function(_0x8d860b,writer){return this['encode'](_0x8d860b,writer)['ldelim']();},PacketMessage['decode']=function(_0x10575e,length){_0x10575e instanceof _0x246cb1||(_0x10575e=_0x246cb1['create'](_0x10575e));for(var _0x2cb8cc=void 0x0===length?_0x10575e['len']:_0x10575e['pos']+length,_0x4ea9c4=new $root['PacketMessage']();_0x10575e['pos']<_0x2cb8cc;){var tag=_0x10575e['uint32']();switch(tag>>>0x3){case 0x1:_0x4ea9c4['type']=_0x10575e['uint32']();break;case 0x2:_0x4ea9c4['id']=_0x10575e['uint32']();break;case 0x3:_0x4ea9c4['nsp']=_0x10575e['string']();break;case 0x4:_0x4ea9c4['data']=_0x10575e['bytes']();break;case 0x5:_0x4ea9c4['options']=_0x10575e['bytes']();break;default:_0x10575e['skipType'](0x7&tag);}}return _0x4ea9c4;},PacketMessage['decodeDelimited']=function(_0x120bfc){return _0x120bfc instanceof _0x246cb1||(_0x120bfc=new _0x246cb1(_0x120bfc)),this['decode'](_0x120bfc,_0x120bfc['uint32']());},PacketMessage['verify']=function(_0x9e34d0){return'object'!=typeof _0x9e34d0||null===_0x9e34d0?'object\x20expected':null!=_0x9e34d0['type']&&_0x9e34d0['hasOwnProperty']('type')&&!$util['isInteger'](_0x9e34d0['type'])?'type:\x20integer\x20expected':null!=_0x9e34d0['id']&&_0x9e34d0['hasOwnProperty']('id')&&!$util['isInteger'](_0x9e34d0['id'])?'id:\x20integer\x20expected':null!=_0x9e34d0['nsp']&&_0x9e34d0['hasOwnProperty']('nsp')&&!$util['isString'](_0x9e34d0['nsp'])?'nsp:\x20string\x20expected':null!=_0x9e34d0['data']&&_0x9e34d0['hasOwnProperty']('data')&&!(_0x9e34d0['data']&&'number'==typeof _0x9e34d0['data']['length']||$util['isString'](_0x9e34d0['data']))?'data:\x20buffer\x20expected':null!=_0x9e34d0['options']&&_0x9e34d0['hasOwnProperty']('options')&&!(_0x9e34d0['options']&&'number'==typeof _0x9e34d0['options']['length']||$util['isString'](_0x9e34d0['options']))?'options:\x20buffer\x20expected':null;},PacketMessage['fromObject']=function(object){if(object instanceof $root['PacketMessage'])return object;var _0x1c9e00=new $root['PacketMessage']();return null!=object['type']&&(_0x1c9e00['type']=object['type']>>>0x0),null!=object['id']&&(_0x1c9e00['id']=object['id']>>>0x0),null!=object['nsp']&&(_0x1c9e00['nsp']=String(object['nsp'])),null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x1c9e00['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x1c9e00['data']=object['data'])),null!=object['options']&&('string'==typeof object['options']?$util['base64']['decode'](object['options'],_0x1c9e00['options']=$util['newBuffer']($util['base64']['length'](object['options'])),0x0):object['options']['length']>=0x0&&(_0x1c9e00['options']=object['options'])),_0x1c9e00;},PacketMessage['toObject']=function(_0x25c72d,options){options||(options={});var object={};return options['defaults']&&(object['type']=0x0,object['id']=0x0,object['nsp']='',options['bytes']===String?object['data']='':(object['data']=[],options['bytes']!==Array&&(object['data']=$util['newBuffer'](object['data']))),options['bytes']===String?object['options']='':(object['options']=[],options['bytes']!==Array&&(object['options']=$util['newBuffer'](object['options'])))),null!=_0x25c72d['type']&&_0x25c72d['hasOwnProperty']('type')&&(object['type']=_0x25c72d['type']),null!=_0x25c72d['id']&&_0x25c72d['hasOwnProperty']('id')&&(object['id']=_0x25c72d['id']),null!=_0x25c72d['nsp']&&_0x25c72d['hasOwnProperty']('nsp')&&(object['nsp']=_0x25c72d['nsp']),null!=_0x25c72d['data']&&_0x25c72d['hasOwnProperty']('data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x25c72d['data'],0x0,_0x25c72d['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x25c72d['data']):_0x25c72d['data']),null!=_0x25c72d['options']&&_0x25c72d['hasOwnProperty']('options')&&(object['options']=options['bytes']===String?$util['base64']['encode'](_0x25c72d['options'],0x0,_0x25c72d['options']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x25c72d['options']):_0x25c72d['options']),object;},PacketMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},PacketMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/PacketMessage';},PacketMessage;}()),$root['PacketOptionsMessage']=(function(){function PacketOptionsMessage(properties){if(this['rooms']=[],this['except']=[],properties){for(var _0x54d1e1=Object['keys'](properties),_0xec9018=0x0;_0xec9018<_0x54d1e1['length'];++_0xec9018)null!=properties[_0x54d1e1[_0xec9018]]&&(this[_0x54d1e1[_0xec9018]]=properties[_0x54d1e1[_0xec9018]]);}}return PacketOptionsMessage['prototype']['flags']='',PacketOptionsMessage['prototype']['rooms']=$util['emptyArray'],PacketOptionsMessage['prototype']['except']=$util['emptyArray'],PacketOptionsMessage['create']=function(properties){return new PacketOptionsMessage(properties);},PacketOptionsMessage['encode']=function(_0x295cec,writer){if(writer||(writer=$Writer['create']()),null!=_0x295cec['flags']&&Object['hasOwnProperty']['call'](_0x295cec,'flags')&&writer['uint32'](0xa)['string'](_0x295cec['flags']),null!=_0x295cec['rooms']&&_0x295cec['rooms']['length']){for(var _0x415dc1=0x0;_0x415dc1<_0x295cec['rooms']['length'];++_0x415dc1)writer['uint32'](0x12)['string'](_0x295cec['rooms'][_0x415dc1]);}if(null!=_0x295cec['except']&&_0x295cec['except']['length']){for(_0x415dc1=0x0;_0x415dc1<_0x295cec['except']['length'];++_0x415dc1)writer['uint32'](0x1a)['string'](_0x295cec['except'][_0x415dc1]);}return writer;},PacketOptionsMessage['encodeDelimited']=function(_0x2ea2d6,writer){return this['encode'](_0x2ea2d6,writer)['ldelim']();},PacketOptionsMessage['decode']=function(_0x5386da,length){_0x5386da instanceof _0x246cb1||(_0x5386da=_0x246cb1['create'](_0x5386da));for(var _0x47db3c=void 0x0===length?_0x5386da['len']:_0x5386da['pos']+length,_0x2a08fa=new $root['PacketOptionsMessage']();_0x5386da['pos']<_0x47db3c;){var tag=_0x5386da['uint32']();switch(tag>>>0x3){case 0x1:_0x2a08fa['flags']=_0x5386da['string']();break;case 0x2:_0x2a08fa['rooms']&&_0x2a08fa['rooms']['length']||(_0x2a08fa['rooms']=[]),_0x2a08fa['rooms']['push'](_0x5386da['string']());break;case 0x3:_0x2a08fa['except']&&_0x2a08fa['except']['length']||(_0x2a08fa['except']=[]),_0x2a08fa['except']['push'](_0x5386da['string']());break;default:_0x5386da['skipType'](0x7&tag);}}return _0x2a08fa;},PacketOptionsMessage['decodeDelimited']=function(_0x411bb9){return _0x411bb9 instanceof _0x246cb1||(_0x411bb9=new _0x246cb1(_0x411bb9)),this['decode'](_0x411bb9,_0x411bb9['uint32']());},PacketOptionsMessage['verify']=function(_0x57d5ec){if('object'!=typeof _0x57d5ec||null===_0x57d5ec)return'object\x20expected';if(null!=_0x57d5ec['flags']&&_0x57d5ec['hasOwnProperty']('flags')&&!$util['isString'](_0x57d5ec['flags']))return'flags:\x20string\x20expected';if(null!=_0x57d5ec['rooms']&&_0x57d5ec['hasOwnProperty']('rooms')){if(!Array['isArray'](_0x57d5ec['rooms']))return'rooms:\x20array\x20expected';for(var _0x20f928=0x0;_0x20f928<_0x57d5ec['rooms']['length'];++_0x20f928)if(!$util['isString'](_0x57d5ec['rooms'][_0x20f928]))return'rooms:\x20string[]\x20expected';}if(null!=_0x57d5ec['except']&&_0x57d5ec['hasOwnProperty']('except')){if(!Array['isArray'](_0x57d5ec['except']))return'except:\x20array\x20expected';for(_0x20f928=0x0;_0x20f928<_0x57d5ec['except']['length'];++_0x20f928)if(!$util['isString'](_0x57d5ec['except'][_0x20f928]))return'except:\x20string[]\x20expected';}return null;},PacketOptionsMessage['fromObject']=function(object){if(object instanceof $root['PacketOptionsMessage'])return object;var _0x2642fe=new $root['PacketOptionsMessage']();if(null!=object['flags']&&(_0x2642fe['flags']=String(object['flags'])),object['rooms']){if(!Array['isArray'](object['rooms']))throw TypeError('.PacketOptionsMessage.rooms:\x20array\x20expected');_0x2642fe['rooms']=[];for(var _0x291f61=0x0;_0x291f61<object['rooms']['length'];++_0x291f61)_0x2642fe['rooms'][_0x291f61]=String(object['rooms'][_0x291f61]);}if(object['except']){if(!Array['isArray'](object['except']))throw TypeError('.PacketOptionsMessage.except:\x20array\x20expected');_0x2642fe['except']=[];for(_0x291f61=0x0;_0x291f61<object['except']['length'];++_0x291f61)_0x2642fe['except'][_0x291f61]=String(object['except'][_0x291f61]);}return _0x2642fe;},PacketOptionsMessage['toObject']=function(_0x13182f,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['rooms']=[],object['except']=[]),options['defaults']&&(object['flags']=''),null!=_0x13182f['flags']&&_0x13182f['hasOwnProperty']('flags')&&(object['flags']=_0x13182f['flags']),_0x13182f['rooms']&&_0x13182f['rooms']['length']){object['rooms']=[];for(var _0x5dd535=0x0;_0x5dd535<_0x13182f['rooms']['length'];++_0x5dd535)object['rooms'][_0x5dd535]=_0x13182f['rooms'][_0x5dd535];}if(_0x13182f['except']&&_0x13182f['except']['length']){object['except']=[];for(_0x5dd535=0x0;_0x5dd535<_0x13182f['except']['length'];++_0x5dd535)object['except'][_0x5dd535]=_0x13182f['except'][_0x5dd535];}return object;},PacketOptionsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},PacketOptionsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/PacketOptionsMessage';},PacketOptionsMessage;}()),$root['StringBytesPacketDataMessage']=(function(){function StringBytesPacketDataMessage(properties){if(properties){for(var _0x189dd1=Object['keys'](properties),_0x388fd3=0x0;_0x388fd3<_0x189dd1['length'];++_0x388fd3)null!=properties[_0x189dd1[_0x388fd3]]&&(this[_0x189dd1[_0x388fd3]]=properties[_0x189dd1[_0x388fd3]]);}}return StringBytesPacketDataMessage['prototype']['data']='',StringBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),StringBytesPacketDataMessage['create']=function(properties){return new StringBytesPacketDataMessage(properties);},StringBytesPacketDataMessage['encode']=function(_0x257515,writer){return writer||(writer=$Writer['create']()),null!=_0x257515['data']&&Object['hasOwnProperty']['call'](_0x257515,'data')&&writer['uint32'](0xa)['string'](_0x257515['data']),null!=_0x257515['data1']&&Object['hasOwnProperty']['call'](_0x257515,'data1')&&writer['uint32'](0x12)['bytes'](_0x257515['data1']),writer;},StringBytesPacketDataMessage['encodeDelimited']=function(_0x24be88,writer){return this['encode'](_0x24be88,writer)['ldelim']();},StringBytesPacketDataMessage['decode']=function(_0x50c2d3,length){_0x50c2d3 instanceof _0x246cb1||(_0x50c2d3=_0x246cb1['create'](_0x50c2d3));for(var _0x555f06=void 0x0===length?_0x50c2d3['len']:_0x50c2d3['pos']+length,_0x2ea367=new $root['StringBytesPacketDataMessage']();_0x50c2d3['pos']<_0x555f06;){var tag=_0x50c2d3['uint32']();switch(tag>>>0x3){case 0x1:_0x2ea367['data']=_0x50c2d3['string']();break;case 0x2:_0x2ea367['data1']=_0x50c2d3['bytes']();break;default:_0x50c2d3['skipType'](0x7&tag);}}return _0x2ea367;},StringBytesPacketDataMessage['decodeDelimited']=function(_0x455109){return _0x455109 instanceof _0x246cb1||(_0x455109=new _0x246cb1(_0x455109)),this['decode'](_0x455109,_0x455109['uint32']());},StringBytesPacketDataMessage['verify']=function(_0x4696b9){return'object'!=typeof _0x4696b9||null===_0x4696b9?'object\x20expected':null!=_0x4696b9['data']&&_0x4696b9['hasOwnProperty']('data')&&!$util['isString'](_0x4696b9['data'])?'data:\x20string\x20expected':null!=_0x4696b9['data1']&&_0x4696b9['hasOwnProperty']('data1')&&!(_0x4696b9['data1']&&'number'==typeof _0x4696b9['data1']['length']||$util['isString'](_0x4696b9['data1']))?'data1:\x20buffer\x20expected':null;},StringBytesPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringBytesPacketDataMessage'])return object;var _0x30ff78=new $root['StringBytesPacketDataMessage']();return null!=object['data']&&(_0x30ff78['data']=String(object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x30ff78['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x30ff78['data1']=object['data1'])),_0x30ff78;},StringBytesPacketDataMessage['toObject']=function(_0x3efe5e,options){options||(options={});var object={};return options['defaults']&&(object['data']='',options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x3efe5e['data']&&_0x3efe5e['hasOwnProperty']('data')&&(object['data']=_0x3efe5e['data']),null!=_0x3efe5e['data1']&&_0x3efe5e['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x3efe5e['data1'],0x0,_0x3efe5e['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x3efe5e['data1']):_0x3efe5e['data1']),object;},StringBytesPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringBytesPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringBytesPacketDataMessage';},StringBytesPacketDataMessage;}()),$root['StringNumberPacketDataMessage']=(function(){function StringNumberPacketDataMessage(properties){if(properties){for(var _0x18e901=Object['keys'](properties),_0x341cab=0x0;_0x341cab<_0x18e901['length'];++_0x341cab)null!=properties[_0x18e901[_0x341cab]]&&(this[_0x18e901[_0x341cab]]=properties[_0x18e901[_0x341cab]]);}}return StringNumberPacketDataMessage['prototype']['data']='',StringNumberPacketDataMessage['prototype']['data1']=0x0,StringNumberPacketDataMessage['create']=function(properties){return new StringNumberPacketDataMessage(properties);},StringNumberPacketDataMessage['encode']=function(_0x3dfc06,writer){return writer||(writer=$Writer['create']()),null!=_0x3dfc06['data']&&Object['hasOwnProperty']['call'](_0x3dfc06,'data')&&writer['uint32'](0xa)['string'](_0x3dfc06['data']),null!=_0x3dfc06['data1']&&Object['hasOwnProperty']['call'](_0x3dfc06,'data1')&&writer['uint32'](0x10)['uint32'](_0x3dfc06['data1']),writer;},StringNumberPacketDataMessage['encodeDelimited']=function(_0x10e3d,writer){return this['encode'](_0x10e3d,writer)['ldelim']();},StringNumberPacketDataMessage['decode']=function(_0x2c0faf,length){_0x2c0faf instanceof _0x246cb1||(_0x2c0faf=_0x246cb1['create'](_0x2c0faf));for(var _0x4178b2=void 0x0===length?_0x2c0faf['len']:_0x2c0faf['pos']+length,_0x2fdd21=new $root['StringNumberPacketDataMessage']();_0x2c0faf['pos']<_0x4178b2;){var tag=_0x2c0faf['uint32']();switch(tag>>>0x3){case 0x1:_0x2fdd21['data']=_0x2c0faf['string']();break;case 0x2:_0x2fdd21['data1']=_0x2c0faf['uint32']();break;default:_0x2c0faf['skipType'](0x7&tag);}}return _0x2fdd21;},StringNumberPacketDataMessage['decodeDelimited']=function(_0x4efd8d){return _0x4efd8d instanceof _0x246cb1||(_0x4efd8d=new _0x246cb1(_0x4efd8d)),this['decode'](_0x4efd8d,_0x4efd8d['uint32']());},StringNumberPacketDataMessage['verify']=function(_0x367bde){return'object'!=typeof _0x367bde||null===_0x367bde?'object\x20expected':null!=_0x367bde['data']&&_0x367bde['hasOwnProperty']('data')&&!$util['isString'](_0x367bde['data'])?'data:\x20string\x20expected':null!=_0x367bde['data1']&&_0x367bde['hasOwnProperty']('data1')&&!$util['isInteger'](_0x367bde['data1'])?'data1:\x20integer\x20expected':null;},StringNumberPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringNumberPacketDataMessage'])return object;var _0x372027=new $root['StringNumberPacketDataMessage']();return null!=object['data']&&(_0x372027['data']=String(object['data'])),null!=object['data1']&&(_0x372027['data1']=object['data1']>>>0x0),_0x372027;},StringNumberPacketDataMessage['toObject']=function(_0x561272,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=0x0),null!=_0x561272['data']&&_0x561272['hasOwnProperty']('data')&&(object['data']=_0x561272['data']),null!=_0x561272['data1']&&_0x561272['hasOwnProperty']('data1')&&(object['data1']=_0x561272['data1']),object;},StringNumberPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringNumberPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringNumberPacketDataMessage';},StringNumberPacketDataMessage;}()),$root['StringObjectPacketDataMessage']=(function(){function StringObjectPacketDataMessage(properties){if(properties){for(var _0x3aec08=Object['keys'](properties),_0x28685f=0x0;_0x28685f<_0x3aec08['length'];++_0x28685f)null!=properties[_0x3aec08[_0x28685f]]&&(this[_0x3aec08[_0x28685f]]=properties[_0x3aec08[_0x28685f]]);}}return StringObjectPacketDataMessage['prototype']['data']='',StringObjectPacketDataMessage['prototype']['data1']='',StringObjectPacketDataMessage['create']=function(properties){return new StringObjectPacketDataMessage(properties);},StringObjectPacketDataMessage['encode']=function(_0x30c1b0,writer){return writer||(writer=$Writer['create']()),null!=_0x30c1b0['data']&&Object['hasOwnProperty']['call'](_0x30c1b0,'data')&&writer['uint32'](0xa)['string'](_0x30c1b0['data']),null!=_0x30c1b0['data1']&&Object['hasOwnProperty']['call'](_0x30c1b0,'data1')&&writer['uint32'](0x12)['string'](_0x30c1b0['data1']),writer;},StringObjectPacketDataMessage['encodeDelimited']=function(_0x14bf11,writer){return this['encode'](_0x14bf11,writer)['ldelim']();},StringObjectPacketDataMessage['decode']=function(_0x277873,length){_0x277873 instanceof _0x246cb1||(_0x277873=_0x246cb1['create'](_0x277873));for(var _0x27bed5=void 0x0===length?_0x277873['len']:_0x277873['pos']+length,_0x390096=new $root['StringObjectPacketDataMessage']();_0x277873['pos']<_0x27bed5;){var tag=_0x277873['uint32']();switch(tag>>>0x3){case 0x1:_0x390096['data']=_0x277873['string']();break;case 0x2:_0x390096['data1']=_0x277873['string']();break;default:_0x277873['skipType'](0x7&tag);}}return _0x390096;},StringObjectPacketDataMessage['decodeDelimited']=function(_0x1450a6){return _0x1450a6 instanceof _0x246cb1||(_0x1450a6=new _0x246cb1(_0x1450a6)),this['decode'](_0x1450a6,_0x1450a6['uint32']());},StringObjectPacketDataMessage['verify']=function(_0x1de5ad){return'object'!=typeof _0x1de5ad||null===_0x1de5ad?'object\x20expected':null!=_0x1de5ad['data']&&_0x1de5ad['hasOwnProperty']('data')&&!$util['isString'](_0x1de5ad['data'])?'data:\x20string\x20expected':null!=_0x1de5ad['data1']&&_0x1de5ad['hasOwnProperty']('data1')&&!$util['isString'](_0x1de5ad['data1'])?'data1:\x20string\x20expected':null;},StringObjectPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringObjectPacketDataMessage'])return object;var _0x5bda8e=new $root['StringObjectPacketDataMessage']();return null!=object['data']&&(_0x5bda8e['data']=String(object['data'])),null!=object['data1']&&(_0x5bda8e['data1']=String(object['data1'])),_0x5bda8e;},StringObjectPacketDataMessage['toObject']=function(_0x1ea302,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x1ea302['data']&&_0x1ea302['hasOwnProperty']('data')&&(object['data']=_0x1ea302['data']),null!=_0x1ea302['data1']&&_0x1ea302['hasOwnProperty']('data1')&&(object['data1']=_0x1ea302['data1']),object;},StringObjectPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringObjectPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringObjectPacketDataMessage';},StringObjectPacketDataMessage;}()),$root['StringStringPacketDataMessage']=(function(){function StringStringPacketDataMessage(properties){if(properties){for(var _0x294a99=Object['keys'](properties),_0x2b4d31=0x0;_0x2b4d31<_0x294a99['length'];++_0x2b4d31)null!=properties[_0x294a99[_0x2b4d31]]&&(this[_0x294a99[_0x2b4d31]]=properties[_0x294a99[_0x2b4d31]]);}}return StringStringPacketDataMessage['prototype']['data']='',StringStringPacketDataMessage['prototype']['data1']='',StringStringPacketDataMessage['create']=function(properties){return new StringStringPacketDataMessage(properties);},StringStringPacketDataMessage['encode']=function(_0x19e9c2,writer){return writer||(writer=$Writer['create']()),null!=_0x19e9c2['data']&&Object['hasOwnProperty']['call'](_0x19e9c2,'data')&&writer['uint32'](0xa)['string'](_0x19e9c2['data']),null!=_0x19e9c2['data1']&&Object['hasOwnProperty']['call'](_0x19e9c2,'data1')&&writer['uint32'](0x12)['string'](_0x19e9c2['data1']),writer;},StringStringPacketDataMessage['encodeDelimited']=function(_0x2e92f4,writer){return this['encode'](_0x2e92f4,writer)['ldelim']();},StringStringPacketDataMessage['decode']=function(_0x57e8e1,length){_0x57e8e1 instanceof _0x246cb1||(_0x57e8e1=_0x246cb1['create'](_0x57e8e1));for(var _0x3b1cd7=void 0x0===length?_0x57e8e1['len']:_0x57e8e1['pos']+length,_0x39cf2a=new $root['StringStringPacketDataMessage']();_0x57e8e1['pos']<_0x3b1cd7;){var tag=_0x57e8e1['uint32']();switch(tag>>>0x3){case 0x1:_0x39cf2a['data']=_0x57e8e1['string']();break;case 0x2:_0x39cf2a['data1']=_0x57e8e1['string']();break;default:_0x57e8e1['skipType'](0x7&tag);}}return _0x39cf2a;},StringStringPacketDataMessage['decodeDelimited']=function(_0x257963){return _0x257963 instanceof _0x246cb1||(_0x257963=new _0x246cb1(_0x257963)),this['decode'](_0x257963,_0x257963['uint32']());},StringStringPacketDataMessage['verify']=function(_0x9f3682){return'object'!=typeof _0x9f3682||null===_0x9f3682?'object\x20expected':null!=_0x9f3682['data']&&_0x9f3682['hasOwnProperty']('data')&&!$util['isString'](_0x9f3682['data'])?'data:\x20string\x20expected':null!=_0x9f3682['data1']&&_0x9f3682['hasOwnProperty']('data1')&&!$util['isString'](_0x9f3682['data1'])?'data1:\x20string\x20expected':null;},StringStringPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringStringPacketDataMessage'])return object;var _0xc0655=new $root['StringStringPacketDataMessage']();return null!=object['data']&&(_0xc0655['data']=String(object['data'])),null!=object['data1']&&(_0xc0655['data1']=String(object['data1'])),_0xc0655;},StringStringPacketDataMessage['toObject']=function(_0x3225d9,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x3225d9['data']&&_0x3225d9['hasOwnProperty']('data')&&(object['data']=_0x3225d9['data']),null!=_0x3225d9['data1']&&_0x3225d9['hasOwnProperty']('data1')&&(object['data1']=_0x3225d9['data1']),object;},StringStringPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringStringPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringStringPacketDataMessage';},StringStringPacketDataMessage;}()),$root;})());class MessagesCompressor{static['decode'](_0xa6f89d,_0x368148){const data=_getType(_0x368148)['decode']('undefined'==typeof window?_0xa6f89d:new Uint8Array(_0xa6f89d));return _0x368148['fromJSON']({...data});}static['encode'](_0x538d68){const protobufMessage=_getType(_0x538d68['constructor']),data=_0x538d68['toJSON'](),_0x224d69=protobufMessage['verify'](data);if(_0x224d69)throw Error(_0x224d69);return protobufMessage['encode'](protobufMessage['create'](data))['finish']();}}function _getType(_0x2a3503){return messages[_0x2a3503['DESCRIPTOR_NAME']];}class GetManyUsersMessage extends Message{['ids'];static ['TYPE']='22';static ['READABLE_TYPE_NAME']='getManyUsers';static ['DESCRIPTOR_NAME']='GetManyUsersMessage';static ['DESCRIPTOR']={'fields':{'ids':{'id':0x1,'type':'string','rule':'repeated'}}};constructor(_0x5cd013){super(),this['ids']=_0x5cd013;}['toJSON'](){return{'ids':this['ids']};}static['fromJSON'](data){return new GetManyUsersMessage(data['ids']);}}class GetManyUsersResponse extends Message{['users'];static ['DESCRIPTOR_NAME']='GetManyUsersResponse';static ['DESCRIPTOR']={'fields':{'users':{'rule':'repeated','type':'UserDescriptor','id':0x1}}};constructor(_0x4464cb){super(),this['users']=_0x4464cb;}['toJSON'](){return{'users':this['users']['map'](_userToJson)};}static['fromJSON'](data){return new GetManyUsersResponse(data['users']['map'](_userFromJson));}}function _userToJson(_0x4c7ec7){return{'attributes':Object['keys'](_0x4c7ec7)['map'](_0x3d2516=>({'key':_0x3d2516,'value':JSON['stringify'](_0x4c7ec7[_0x3d2516])}))};}function _userFromJson(data){return data['attributes']['reduce']((result,_0x19ede1)=>(result[_0x19ede1['key']]=_0x19ede1['value']?JSON['parse'](_0x19ede1['value']):null,result),{});}class User{static ['_SERVICE']=0x2;['id'];['_attributes'];constructor(attributes={}){this['_attributes']=new Map();for(const _0x49704f of Object['keys'](attributes))'id'!==_0x49704f?(this['_attributes']['set'](_0x49704f,attributes[_0x49704f]),Object['defineProperty'](this,_0x49704f,{'enumerable':!0x0,'configurable':!0x1,'get':()=>this['_attributes']['get'](_0x49704f)})):this['id']=attributes['id'];}static['fromData'](data){return new User(data);}static async['get'](wsGateway,_0x1c3ae8){const _0x27fd1c=new GetUserMessage(_0x1c3ae8);try{const _0x290e11=await wsGateway['_sendRequest'](User['_SERVICE'],GetUserMessage['TYPE'],MessagesCompressor['encode'](_0x27fd1c)),getUserResponse=MessagesCompressor['decode'](_0x290e11,GetUserResponse);return new User(getUserResponse['attributes']);}catch(_0x5cdf0e){return new User({'id':_0x1c3ae8});}}static async['getMany'](wsGateway,_0x47790d){const _0x4eda76=new GetManyUsersMessage(_0x47790d);try{const _0x329644=await wsGateway['_sendRequest'](User['_SERVICE'],GetManyUsersMessage['TYPE'],MessagesCompressor['encode'](_0x4eda76));return MessagesCompressor['decode'](_0x329644,GetManyUsersResponse)['users']['map'](_0x3a3cf9=>new User(_0x3a3cf9));}catch(_0x4ffa68){return _0x47790d['map'](_0x296933=>new User({'id':_0x296933}));}}}const PACKET_TYPES=Object['create'](null);PACKET_TYPES['open']='0',PACKET_TYPES['close']='1',PACKET_TYPES['ping']='2',PACKET_TYPES['pong']='3',PACKET_TYPES['message']='4',PACKET_TYPES['upgrade']='5',PACKET_TYPES['noop']='6';const PACKET_TYPES_REVERSE=Object['create'](null);Object['keys'](PACKET_TYPES)['forEach'](_0x287679=>{PACKET_TYPES_REVERSE[PACKET_TYPES[_0x287679]]=_0x287679;});const ERROR_PACKET={'type':'error','data':'parser\x20error'},withNativeBlob$1='function'==typeof Blob||'undefined'!=typeof Blob&&'[object\x20BlobConstructor]'===Object['prototype']['toString']['call'](Blob),withNativeArrayBuffer$2='function'==typeof ArrayBuffer,encodePacket=({type:type,data:data},supportsBinary,_0x22c1a8)=>{return withNativeBlob$1&&data instanceof Blob?supportsBinary?_0x22c1a8(data):encodeBlobAsBase64(data,_0x22c1a8):withNativeArrayBuffer$2&&(data instanceof ArrayBuffer||(_0x4494be=data,'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x4494be):_0x4494be&&_0x4494be['buffer']instanceof ArrayBuffer))?supportsBinary?_0x22c1a8(data):encodeBlobAsBase64(new Blob([data]),_0x22c1a8):_0x22c1a8(PACKET_TYPES[type]+(data||''));var _0x4494be;},encodeBlobAsBase64=(data,_0x2a276b)=>{const _0x2e0787=new FileReader();return _0x2e0787['onload']=function(){const content=_0x2e0787['result']['split'](',')[0x1];_0x2a276b('b'+(content||''));},_0x2e0787['readAsDataURL'](data);},chars='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',lookup$1='undefined'==typeof Uint8Array?[]:new Uint8Array(0x100);for(let i=0x0;i<0x40;i++)lookup$1[chars['charCodeAt'](i)]=i;const withNativeArrayBuffer$1='function'==typeof ArrayBuffer,decodePacket=(encodedPacket,_0x4ee876)=>{if('string'!=typeof encodedPacket)return{'type':'message','data':mapBinary(encodedPacket,_0x4ee876)};const type=encodedPacket['charAt'](0x0);if('b'===type)return{'type':'message','data':decodeBase64Packet(encodedPacket['substring'](0x1),_0x4ee876)};return PACKET_TYPES_REVERSE[type]?encodedPacket['length']>0x1?{'type':PACKET_TYPES_REVERSE[type],'data':encodedPacket['substring'](0x1)}:{'type':PACKET_TYPES_REVERSE[type]}:ERROR_PACKET;},decodeBase64Packet=(data,_0x2f7381)=>{if(withNativeArrayBuffer$1){const _0x2018a7=(_0x134964=>{let _0x4a9299,_0x3a940f,_0x5cedd8,_0x2af185,_0x24753b,bufferLength=0.75*_0x134964['length'],_0x2a9abe=_0x134964['length'],_0x427c15=0x0;'='===_0x134964[_0x134964['length']-0x1]&&(bufferLength--,'='===_0x134964[_0x134964['length']-0x2]&&bufferLength--);const _0x21086a=new ArrayBuffer(bufferLength),bytes=new Uint8Array(_0x21086a);for(_0x4a9299=0x0;_0x4a9299<_0x2a9abe;_0x4a9299+=0x4)_0x3a940f=lookup$1[_0x134964['charCodeAt'](_0x4a9299)],_0x5cedd8=lookup$1[_0x134964['charCodeAt'](_0x4a9299+0x1)],_0x2af185=lookup$1[_0x134964['charCodeAt'](_0x4a9299+0x2)],_0x24753b=lookup$1[_0x134964['charCodeAt'](_0x4a9299+0x3)],bytes[_0x427c15++]=_0x3a940f<<0x2|_0x5cedd8>>0x4,bytes[_0x427c15++]=(0xf&_0x5cedd8)<<0x4|_0x2af185>>0x2,bytes[_0x427c15++]=(0x3&_0x2af185)<<0x6|0x3f&_0x24753b;return _0x21086a;})(data);return mapBinary(_0x2018a7,_0x2f7381);}return{'base64':!0x0,'data':data};},mapBinary=(data,_0x8d9b57)=>'blob'===_0x8d9b57&&data instanceof ArrayBuffer?new Blob([data]):data,SEPARATOR=String['fromCharCode'](0x1e);function Emitter(_0x1e9585){if(_0x1e9585)return function(_0x55168f){for(var _0x360baf in Emitter['prototype'])_0x55168f[_0x360baf]=Emitter['prototype'][_0x360baf];return _0x55168f;}(_0x1e9585);}Emitter['prototype']['on']=Emitter['prototype']['addEventListener']=function(event,_0x3940b8){return this['_callbacks']=this['_callbacks']||{},(this['_callbacks']['$'+event]=this['_callbacks']['$'+event]||[])['push'](_0x3940b8),this;},Emitter['prototype']['once']=function(event,_0x1e0c94){function _0x1d5995(){this['off'](event,_0x1d5995),_0x1e0c94['apply'](this,arguments);}return _0x1d5995['fn']=_0x1e0c94,this['on'](event,_0x1d5995),this;},Emitter['prototype']['off']=Emitter['prototype']['removeListener']=Emitter['prototype']['removeAllListeners']=Emitter['prototype']['removeEventListener']=function(event,_0x1abf08){if(this['_callbacks']=this['_callbacks']||{},0x0==arguments['length'])return this['_callbacks']={},this;var _0x513693,_0x2bca26=this['_callbacks']['$'+event];if(!_0x2bca26)return this;if(0x1==arguments['length'])return delete this['_callbacks']['$'+event],this;for(var _0x43fdb8=0x0;_0x43fdb8<_0x2bca26['length'];_0x43fdb8++)if((_0x513693=_0x2bca26[_0x43fdb8])===_0x1abf08||_0x513693['fn']===_0x1abf08){_0x2bca26['splice'](_0x43fdb8,0x1);break;}return 0x0===_0x2bca26['length']&&delete this['_callbacks']['$'+event],this;},Emitter['prototype']['emit']=function(event){this['_callbacks']=this['_callbacks']||{};for(var _0x131f8e=new Array(arguments['length']-0x1),_0x3b0893=this['_callbacks']['$'+event],_0xdbc77a=0x1;_0xdbc77a<arguments['length'];_0xdbc77a++)_0x131f8e[_0xdbc77a-0x1]=arguments[_0xdbc77a];if(_0x3b0893){_0xdbc77a=0x0;for(var _0x31f320=(_0x3b0893=_0x3b0893['slice'](0x0))['length'];_0xdbc77a<_0x31f320;++_0xdbc77a)_0x3b0893[_0xdbc77a]['apply'](this,_0x131f8e);}return this;},Emitter['prototype']['emitReserved']=Emitter['prototype']['emit'],Emitter['prototype']['listeners']=function(event){return this['_callbacks']=this['_callbacks']||{},this['_callbacks']['$'+event]||[];},Emitter['prototype']['hasListeners']=function(event){return!!this['listeners'](event)['length'];};const globalThisShim='undefined'!=typeof self?self:'undefined'!=typeof window?window:Function('return\x20this')();function pick(_0x15a600,...attr){return attr['reduce']((_0x5a997b,_0x3138c8)=>(_0x15a600['hasOwnProperty'](_0x3138c8)&&(_0x5a997b[_0x3138c8]=_0x15a600[_0x3138c8]),_0x5a997b),{});}const NATIVE_SET_TIMEOUT=globalThisShim['setTimeout'],NATIVE_CLEAR_TIMEOUT=globalThisShim['clearTimeout'];function installTimerFunctions(_0x1c95e4,opts){opts['useNativeTimers']?(_0x1c95e4['setTimeoutFn']=NATIVE_SET_TIMEOUT['bind'](globalThisShim),_0x1c95e4['clearTimeoutFn']=NATIVE_CLEAR_TIMEOUT['bind'](globalThisShim)):(_0x1c95e4['setTimeoutFn']=globalThisShim['setTimeout']['bind'](globalThisShim),_0x1c95e4['clearTimeoutFn']=globalThisShim['clearTimeout']['bind'](globalThisShim));}class TransportError extends Error{constructor(_0x438497,description,context){super(_0x438497),this['description']=description,this['context']=context,this['type']='TransportError';}}class Transport extends Emitter{constructor(opts){super(),this['writable']=!0x1,installTimerFunctions(this,opts),this['opts']=opts,this['query']=opts['query'],this['socket']=opts['socket'];}['onError'](_0xa713ab,description,context){return super['emitReserved']('error',new TransportError(_0xa713ab,description,context)),this;}['open'](){return this['readyState']='opening',this['doOpen'](),this;}['close'](){return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['doClose'](),this['onClose']()),this;}['send'](packets){'open'===this['readyState']&&this['write'](packets);}['onOpen'](){this['readyState']='open',this['writable']=!0x0,super['emitReserved']('open');}['onData'](data){const packet=decodePacket(data,this['socket']['binaryType']);this['onPacket'](packet);}['onPacket'](packet){super['emitReserved']('packet',packet);}['onClose'](details){this['readyState']='closed',super['emitReserved']('close',details);}['pause'](_0xa13ca1){}}const alphabet='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'['split'](''),length=0x40,map={};let prev,seed=0x0,i=0x0;function encode$1(_0x5c730b){let _0x180690='';do{_0x180690=alphabet[_0x5c730b%length]+_0x180690,_0x5c730b=Math['floor'](_0x5c730b/length);}while(_0x5c730b>0x0);return _0x180690;}function yeast(){const _0x21453d=encode$1(+new Date());return _0x21453d!==prev?(seed=0x0,prev=_0x21453d):_0x21453d+'.'+encode$1(seed++);}for(;i<length;i++)map[alphabet[i]]=i;function encode(_0x530fb3){let str='';for(let _0x54e593 in _0x530fb3)_0x530fb3['hasOwnProperty'](_0x54e593)&&(str['length']&&(str+='&'),str+=encodeURIComponent(_0x54e593)+'='+encodeURIComponent(_0x530fb3[_0x54e593]));return str;}let value=!0x1;try{value='undefined'!=typeof XMLHttpRequest&&'withCredentials'in new XMLHttpRequest();}catch(_0x44884f){}const hasCORS=value;function XHR(opts){const _0x46beaa=opts['xdomain'];try{if('undefined'!=typeof XMLHttpRequest&&(!_0x46beaa||hasCORS))return new XMLHttpRequest();}catch(_0x226dae){}if(!_0x46beaa)try{return new globalThisShim[(['Active']['concat']('Object')['join']('X'))]('Microsoft.XMLHTTP');}catch(_0x29d9f7){}}function empty(){}const hasXHR2=null!=new XHR({'xdomain':!0x1})['responseType'];class Request extends Emitter{constructor(_0x32f078,opts){super(),installTimerFunctions(this,opts),this['opts']=opts,this['method']=opts['method']||'GET',this['uri']=_0x32f078,this['async']=!0x1!==opts['async'],this['data']=void 0x0!==opts['data']?opts['data']:null,this['create']();}['create'](){const opts=pick(this['opts'],'agent','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','autoUnref');opts['xdomain']=!!this['opts']['xd'],opts['xscheme']=!!this['opts']['xs'];const _0x2ea521=this['xhr']=new XHR(opts);try{_0x2ea521['open'](this['method'],this['uri'],this['async']);try{if(this['opts']['extraHeaders']){_0x2ea521['setDisableHeaderCheck']&&_0x2ea521['setDisableHeaderCheck'](!0x0);for(let _0x450f5f in this['opts']['extraHeaders'])this['opts']['extraHeaders']['hasOwnProperty'](_0x450f5f)&&_0x2ea521['setRequestHeader'](_0x450f5f,this['opts']['extraHeaders'][_0x450f5f]);}}catch(_0x4ce5e7){}if('POST'===this['method'])try{_0x2ea521['setRequestHeader']('Content-type','text/plain;charset=UTF-8');}catch(_0x1b6529){}try{_0x2ea521['setRequestHeader']('Accept','*/*');}catch(_0x207636){}'withCredentials'in _0x2ea521&&(_0x2ea521['withCredentials']=this['opts']['withCredentials']),this['opts']['requestTimeout']&&(_0x2ea521['timeout']=this['opts']['requestTimeout']),_0x2ea521['onreadystatechange']=()=>{0x4===_0x2ea521['readyState']&&(0xc8===_0x2ea521['status']||0x4c7===_0x2ea521['status']?this['onLoad']():this['setTimeoutFn'](()=>{this['onError']('number'==typeof _0x2ea521['status']?_0x2ea521['status']:0x0);},0x0));},_0x2ea521['send'](this['data']);}catch(_0xa4187b){return void this['setTimeoutFn'](()=>{this['onError'](_0xa4187b);},0x0);}'undefined'!=typeof document&&(this['index']=Request['requestsCount']++,Request['requests'][this['index']]=this);}['onError'](_0x47ad99){this['emitReserved']('error',_0x47ad99,this['xhr']),this['cleanup'](!0x0);}['cleanup'](_0x5def75){if(void 0x0!==this['xhr']&&null!==this['xhr']){if(this['xhr']['onreadystatechange']=empty,_0x5def75)try{this['xhr']['abort']();}catch(_0x3e1e0c){}'undefined'!=typeof document&&delete Request['requests'][this['index']],this['xhr']=null;}}['onLoad'](){const data=this['xhr']['responseText'];null!==data&&(this['emitReserved']('data',data),this['emitReserved']('success'),this['cleanup']());}['abort'](){this['cleanup']();}}if(Request['requestsCount']=0x0,Request['requests']={},'undefined'!=typeof document){if('function'==typeof attachEvent)attachEvent('onunload',unloadHandler);else'function'==typeof addEventListener&&addEventListener('onpagehide'in globalThisShim?'pagehide':'unload',unloadHandler,!0x1);}function unloadHandler(){for(let _0x1e424a in Request['requests'])Request['requests']['hasOwnProperty'](_0x1e424a)&&Request['requests'][_0x1e424a]['abort']();}const nextTick='function'==typeof Promise&&'function'==typeof Promise['resolve']?_0x44d58e=>Promise['resolve']()['then'](_0x44d58e):(_0xdf32b0,setTimeoutFn)=>setTimeoutFn(_0xdf32b0,0x0),WebSocket=globalThisShim['WebSocket']||globalThisShim['MozWebSocket'],isReactNative='undefined'!=typeof navigator&&'string'==typeof navigator['product']&&'reactnative'===navigator['product']['toLowerCase'](),transports={'websocket':class extends Transport{constructor(opts){super(opts),this['supportsBinary']=!opts['forceBase64'];}get['name'](){return'websocket';}['doOpen'](){if(!this['check']())return;const _0x1af038=this['uri'](),protocols=this['opts']['protocols'],opts=isReactNative?{}:pick(this['opts'],'agent','perMessageDeflate','pfx','key','passphrase','cert','ca','ciphers','rejectUnauthorized','localAddress','protocolVersion','origin','maxPayload','family','checkServerIdentity');this['opts']['extraHeaders']&&(opts['headers']=this['opts']['extraHeaders']);try{this['ws']=isReactNative?new WebSocket(_0x1af038,protocols,opts):protocols?new WebSocket(_0x1af038,protocols):new WebSocket(_0x1af038);}catch(_0x6e8945){return this['emitReserved']('error',_0x6e8945);}this['ws']['binaryType']=this['socket']['binaryType']||'arraybuffer',this['addEventListeners']();}['addEventListeners'](){this['ws']['onopen']=()=>{this['opts']['autoUnref']&&this['ws']['_socket']['unref'](),this['onOpen']();},this['ws']['onclose']=closeEvent=>this['onClose']({'description':'websocket\x20connection\x20closed','context':closeEvent}),this['ws']['onmessage']=_0xb60644=>this['onData'](_0xb60644['data']),this['ws']['onerror']=_0xf402e7=>this['onError']('websocket\x20error',_0xf402e7);}['write'](packets){this['writable']=!0x1;for(let _0x5c8805=0x0;_0x5c8805<packets['length'];_0x5c8805++){const packet=packets[_0x5c8805],lastPacket=_0x5c8805===packets['length']-0x1;encodePacket(packet,this['supportsBinary'],data=>{try{this['ws']['send'](data);}catch(_0x53530d){}lastPacket&&nextTick(()=>{this['writable']=!0x0,this['emitReserved']('drain');},this['setTimeoutFn']);});}}['doClose'](){void 0x0!==this['ws']&&(this['ws']['close'](),this['ws']=null);}['uri'](){let _0x545bb9=this['query']||{};const _0xcd7dde=this['opts']['secure']?'wss':'ws';let port='';this['opts']['port']&&('wss'===_0xcd7dde&&0x1bb!==Number(this['opts']['port'])||'ws'===_0xcd7dde&&0x50!==Number(this['opts']['port']))&&(port=':'+this['opts']['port']),this['opts']['timestampRequests']&&(_0x545bb9[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||(_0x545bb9['b64']=0x1);const _0x1ed0c3=encode(_0x545bb9);return _0xcd7dde+'://'+(-0x1!==this['opts']['hostname']['indexOf'](':')?'['+this['opts']['hostname']+']':this['opts']['hostname'])+port+this['opts']['path']+(_0x1ed0c3['length']?'?'+_0x1ed0c3:'');}['check'](){return!!WebSocket;}},'polling':class extends Transport{constructor(opts){if(super(opts),this['polling']=!0x1,'undefined'!=typeof location){const _0x45536b='https:'===location['protocol'];let port=location['port'];port||(port=_0x45536b?'443':'80'),this['xd']='undefined'!=typeof location&&opts['hostname']!==location['hostname']||port!==opts['port'],this['xs']=opts['secure']!==_0x45536b;}const _0x3683a7=opts&&opts['forceBase64'];this['supportsBinary']=hasXHR2&&!_0x3683a7;}get['name'](){return'polling';}['doOpen'](){this['poll']();}['pause'](_0x5dd78){this['readyState']='pausing';const _0x1c0e2e=()=>{this['readyState']='paused',_0x5dd78();};if(this['polling']||!this['writable']){let total=0x0;this['polling']&&(total++,this['once']('pollComplete',function(){--total||_0x1c0e2e();})),this['writable']||(total++,this['once']('drain',function(){--total||_0x1c0e2e();}));}else _0x1c0e2e();}['poll'](){this['polling']=!0x0,this['doPoll'](),this['emitReserved']('poll');}['onData'](data){((_0x5a14ad,_0x2ccf56)=>{const encodedPackets=_0x5a14ad['split'](SEPARATOR),packets=[];for(let _0x307901=0x0;_0x307901<encodedPackets['length'];_0x307901++){const decodedPacket=decodePacket(encodedPackets[_0x307901],_0x2ccf56);if(packets['push'](decodedPacket),'error'===decodedPacket['type'])break;}return packets;})(data,this['socket']['binaryType'])['forEach'](packet=>{if('opening'===this['readyState']&&'open'===packet['type']&&this['onOpen'](),'close'===packet['type'])return this['onClose']({'description':'transport\x20closed\x20by\x20the\x20server'}),!0x1;this['onPacket'](packet);}),'closed'!==this['readyState']&&(this['polling']=!0x1,this['emitReserved']('pollComplete'),'open'===this['readyState']&&this['poll']());}['doClose'](){const _0x2ce872=()=>{this['write']([{'type':'close'}]);};'open'===this['readyState']?_0x2ce872():this['once']('open',_0x2ce872);}['write'](packets){this['writable']=!0x1,((packets,_0x223938)=>{const length=packets['length'],encodedPackets=new Array(length);let count=0x0;packets['forEach']((packet,_0x11271b)=>{encodePacket(packet,!0x1,encodedPacket=>{encodedPackets[_0x11271b]=encodedPacket,++count===length&&_0x223938(encodedPackets['join'](SEPARATOR));});});})(packets,data=>{this['doWrite'](data,()=>{this['writable']=!0x0,this['emitReserved']('drain');});});}['uri'](){let _0x44a45d=this['query']||{};const _0x152504=this['opts']['secure']?'https':'http';let port='';!0x1!==this['opts']['timestampRequests']&&(_0x44a45d[this['opts']['timestampParam']]=yeast()),this['supportsBinary']||_0x44a45d['sid']||(_0x44a45d['b64']=0x1),this['opts']['port']&&('https'===_0x152504&&0x1bb!==Number(this['opts']['port'])||'http'===_0x152504&&0x50!==Number(this['opts']['port']))&&(port=':'+this['opts']['port']);const _0x5c53ed=encode(_0x44a45d);return _0x152504+'://'+(-0x1!==this['opts']['hostname']['indexOf'](':')?'['+this['opts']['hostname']+']':this['opts']['hostname'])+port+this['opts']['path']+(_0x5c53ed['length']?'?'+_0x5c53ed:'');}['request'](opts={}){return Object['assign'](opts,{'xd':this['xd'],'xs':this['xs']},this['opts']),new Request(this['uri'](),opts);}['doWrite'](data,_0x15e4b0){const _0x9b600b=this['request']({'method':'POST','data':data});_0x9b600b['on']('success',_0x15e4b0),_0x9b600b['on']('error',(xhrStatus,context)=>{this['onError']('xhr\x20post\x20error',xhrStatus,context);});}['doPoll'](){const _0x4f6ef2=this['request']();_0x4f6ef2['on']('data',this['onData']['bind'](this)),_0x4f6ef2['on']('error',(xhrStatus,context)=>{this['onError']('xhr\x20poll\x20error',xhrStatus,context);}),this['pollXhr']=_0x4f6ef2;}}},re=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,parts=['source','protocol','authority','userInfo','user','password','host','port','relative','path','directory','file','query','anchor'];function parse(str){const _0x2191f8=str,_0x2b8ec1=str['indexOf']('['),_0x394241=str['indexOf'](']');-0x1!=_0x2b8ec1&&-0x1!=_0x394241&&(str=str['substring'](0x0,_0x2b8ec1)+str['substring'](_0x2b8ec1,_0x394241)['replace'](/:/g,';')+str['substring'](_0x394241,str['length']));let _0x13586f=re['exec'](str||''),_0x391cbf={},_0x49e90b=0xe;for(;_0x49e90b--;)_0x391cbf[parts[_0x49e90b]]=_0x13586f[_0x49e90b]||'';return-0x1!=_0x2b8ec1&&-0x1!=_0x394241&&(_0x391cbf['source']=_0x2191f8,_0x391cbf['host']=_0x391cbf['host']['substring'](0x1,_0x391cbf['host']['length']-0x1)['replace'](/;/g,':'),_0x391cbf['authority']=_0x391cbf['authority']['replace']('[','')['replace'](']','')['replace'](/;/g,':'),_0x391cbf['ipv6uri']=!0x0),_0x391cbf['pathNames']=function(_0x51fbe2,path){const _0x582c61=/\/{2,9}/g,_0x41baf9=path['replace'](_0x582c61,'/')['split']('/');return'/'!=path['slice'](0x0,0x1)&&0x0!==path['length']||_0x41baf9['splice'](0x0,0x1),'/'==path['slice'](-0x1)&&_0x41baf9['splice'](_0x41baf9['length']-0x1,0x1),_0x41baf9;}(0x0,_0x391cbf['path']),_0x391cbf['queryKey']=function(_0x3a0bef,_0x2d8cfc){const data={};return _0x2d8cfc['replace'](/(?:^|&)([^&=]*)=?([^&]*)/g,function(_0x1f6bae,_0x216190,_0x1ea39d){_0x216190&&(data[_0x216190]=_0x1ea39d);}),data;}(0x0,_0x391cbf['query']),_0x391cbf;}let Socket$1=class Socket extends Emitter{constructor(_0x1c3160,opts={}){super(),this['writeBuffer']=[],_0x1c3160&&'object'==typeof _0x1c3160&&(opts=_0x1c3160,_0x1c3160=null),_0x1c3160?(_0x1c3160=parse(_0x1c3160),opts['hostname']=_0x1c3160['host'],opts['secure']='https'===_0x1c3160['protocol']||'wss'===_0x1c3160['protocol'],opts['port']=_0x1c3160['port'],_0x1c3160['query']&&(opts['query']=_0x1c3160['query'])):opts['host']&&(opts['hostname']=parse(opts['host'])['host']),installTimerFunctions(this,opts),this['secure']=null!=opts['secure']?opts['secure']:'undefined'!=typeof location&&'https:'===location['protocol'],opts['hostname']&&!opts['port']&&(opts['port']=this['secure']?'443':'80'),this['hostname']=opts['hostname']||('undefined'!=typeof location?location['hostname']:'localhost'),this['port']=opts['port']||('undefined'!=typeof location&&location['port']?location['port']:this['secure']?'443':'80'),this['transports']=opts['transports']||['polling','websocket'],this['writeBuffer']=[],this['prevBufferLen']=0x0,this['opts']=Object['assign']({'path':'/engine.io','agent':!0x1,'withCredentials':!0x1,'upgrade':!0x0,'timestampParam':'t','rememberUpgrade':!0x1,'addTrailingSlash':!0x0,'rejectUnauthorized':!0x0,'perMessageDeflate':{'threshold':0x400},'transportOptions':{},'closeOnBeforeunload':!0x0},opts),this['opts']['path']=this['opts']['path']['replace'](/\/$/,'')+(this['opts']['addTrailingSlash']?'/':''),'string'==typeof this['opts']['query']&&(this['opts']['query']=function(_0x563374){let _0x2ece4f={},_0x26d8f2=_0x563374['split']('&');for(let _0x341ab5=0x0,_0x2b0bb1=_0x26d8f2['length'];_0x341ab5<_0x2b0bb1;_0x341ab5++){let _0x5be84f=_0x26d8f2[_0x341ab5]['split']('=');_0x2ece4f[decodeURIComponent(_0x5be84f[0x0])]=decodeURIComponent(_0x5be84f[0x1]);}return _0x2ece4f;}(this['opts']['query'])),this['id']=null,this['upgrades']=null,this['pingInterval']=null,this['pingTimeout']=null,this['pingTimeoutTimer']=null,'function'==typeof addEventListener&&(this['opts']['closeOnBeforeunload']&&(this['beforeunloadEventListener']=()=>{this['transport']&&(this['transport']['removeAllListeners'](),this['transport']['close']());},addEventListener('beforeunload',this['beforeunloadEventListener'],!0x1)),'localhost'!==this['hostname']&&(this['offlineEventListener']=()=>{this['onClose']('transport\x20close',{'description':'network\x20connection\x20lost'});},addEventListener('offline',this['offlineEventListener'],!0x1))),this['open']();}['createTransport'](_0x1a202b){const _0x84075f=Object['assign']({},this['opts']['query']);_0x84075f['EIO']=0x4,_0x84075f['transport']=_0x1a202b,this['id']&&(_0x84075f['sid']=this['id']);const opts=Object['assign']({},this['opts']['transportOptions'][_0x1a202b],this['opts'],{'query':_0x84075f,'socket':this,'hostname':this['hostname'],'secure':this['secure'],'port':this['port']});return new transports[_0x1a202b](opts);}['open'](){let transport;if(this['opts']['rememberUpgrade']&&Socket['priorWebsocketSuccess']&&-0x1!==this['transports']['indexOf']('websocket'))transport='websocket';else{if(0x0===this['transports']['length'])return void this['setTimeoutFn'](()=>{this['emitReserved']('error','No\x20transports\x20available');},0x0);transport=this['transports'][0x0];}this['readyState']='opening';try{transport=this['createTransport'](transport);}catch(_0x2a6eef){return this['transports']['shift'](),void this['open']();}transport['open'](),this['setTransport'](transport);}['setTransport'](transport){this['transport']&&this['transport']['removeAllListeners'](),this['transport']=transport,transport['on']('drain',this['onDrain']['bind'](this))['on']('packet',this['onPacket']['bind'](this))['on']('error',this['onError']['bind'](this))['on']('close',_0x5c99b6=>this['onClose']('transport\x20close',_0x5c99b6));}['probe'](_0x471e7d){let transport=this['createTransport'](_0x471e7d),_0x26170e=!0x1;Socket['priorWebsocketSuccess']=!0x1;const onTransportOpen=()=>{_0x26170e||(transport['send']([{'type':'ping','data':'probe'}]),transport['once']('packet',_0x25efd1=>{if(!_0x26170e){if('pong'===_0x25efd1['type']&&'probe'===_0x25efd1['data']){if(this['upgrading']=!0x0,this['emitReserved']('upgrading',transport),!transport)return;Socket['priorWebsocketSuccess']='websocket'===transport['name'],this['transport']['pause'](()=>{_0x26170e||'closed'!==this['readyState']&&(_0x2d4a8e(),this['setTransport'](transport),transport['send']([{'type':'upgrade'}]),this['emitReserved']('upgrade',transport),transport=null,this['upgrading']=!0x1,this['flush']());});}else{const _0x20cab1=new Error('probe\x20error');_0x20cab1['transport']=transport['name'],this['emitReserved']('upgradeError',_0x20cab1);}}}));};function freezeTransport(){_0x26170e||(_0x26170e=!0x0,_0x2d4a8e(),transport['close'](),transport=null);}const _0x13b76b=_0x1d8068=>{const _0xbe9f8=new Error('probe\x20error:\x20'+_0x1d8068);_0xbe9f8['transport']=transport['name'],freezeTransport(),this['emitReserved']('upgradeError',_0xbe9f8);};function onTransportClose(){_0x13b76b('transport\x20closed');}function _0x3671ec(){_0x13b76b('socket\x20closed');}function _0x2e8ad8(to){transport&&to['name']!==transport['name']&&freezeTransport();}const _0x2d4a8e=()=>{transport['removeListener']('open',onTransportOpen),transport['removeListener']('error',_0x13b76b),transport['removeListener']('close',onTransportClose),this['off']('close',_0x3671ec),this['off']('upgrading',_0x2e8ad8);};transport['once']('open',onTransportOpen),transport['once']('error',_0x13b76b),transport['once']('close',onTransportClose),this['once']('close',_0x3671ec),this['once']('upgrading',_0x2e8ad8),transport['open']();}['onOpen'](){if(this['readyState']='open',Socket['priorWebsocketSuccess']='websocket'===this['transport']['name'],this['emitReserved']('open'),this['flush'](),'open'===this['readyState']&&this['opts']['upgrade']){let _0x20dfc0=0x0;const _0x1e3404=this['upgrades']['length'];for(;_0x20dfc0<_0x1e3404;_0x20dfc0++)this['probe'](this['upgrades'][_0x20dfc0]);}}['onPacket'](packet){if('opening'===this['readyState']||'open'===this['readyState']||'closing'===this['readyState'])switch(this['emitReserved']('packet',packet),this['emitReserved']('heartbeat'),packet['type']){case'open':this['onHandshake'](JSON['parse'](packet['data']));break;case'ping':this['resetPingTimeout'](),this['sendPacket']('pong'),this['emitReserved']('ping'),this['emitReserved']('pong');break;case'error':const _0x48f5a7=new Error('server\x20error');_0x48f5a7['code']=packet['data'],this['onError'](_0x48f5a7);break;case'message':this['emitReserved']('data',packet['data']),this['emitReserved']('message',packet['data']);}}['onHandshake'](data){this['emitReserved']('handshake',data),this['id']=data['sid'],this['transport']['query']['sid']=data['sid'],this['upgrades']=this['filterUpgrades'](data['upgrades']),this['pingInterval']=data['pingInterval'],this['pingTimeout']=data['pingTimeout'],this['maxPayload']=data['maxPayload'],this['onOpen'](),'closed'!==this['readyState']&&this['resetPingTimeout']();}['resetPingTimeout'](){this['clearTimeoutFn'](this['pingTimeoutTimer']),this['pingTimeoutTimer']=this['setTimeoutFn'](()=>{this['onClose']('ping\x20timeout');},this['pingInterval']+this['pingTimeout']),this['opts']['autoUnref']&&this['pingTimeoutTimer']['unref']();}['onDrain'](){this['writeBuffer']['splice'](0x0,this['prevBufferLen']),this['prevBufferLen']=0x0,0x0===this['writeBuffer']['length']?this['emitReserved']('drain'):this['flush']();}['flush'](){if('closed'!==this['readyState']&&this['transport']['writable']&&!this['upgrading']&&this['writeBuffer']['length']){const packets=this['getWritablePackets']();this['transport']['send'](packets),this['prevBufferLen']=packets['length'],this['emitReserved']('flush');}}['getWritablePackets'](){if(!(this['maxPayload']&&'polling'===this['transport']['name']&&this['writeBuffer']['length']>0x1))return this['writeBuffer'];let _0x3d321c=0x1;for(let _0x109668=0x0;_0x109668<this['writeBuffer']['length'];_0x109668++){const data=this['writeBuffer'][_0x109668]['data'];if(data&&(_0x3d321c+='string'==typeof(_0x253d33=data)?function(str){let _0x5bb260=0x0,length=0x0;for(let _0x9415b3=0x0,_0x566bbc=str['length'];_0x9415b3<_0x566bbc;_0x9415b3++)_0x5bb260=str['charCodeAt'](_0x9415b3),_0x5bb260<0x80?length+=0x1:_0x5bb260<0x800?length+=0x2:_0x5bb260<0xd800||_0x5bb260>=0xe000?length+=0x3:(_0x9415b3++,length+=0x4);return length;}(_0x253d33):Math['ceil'](1.33*(_0x253d33['byteLength']||_0x253d33['size']))),_0x109668>0x0&&_0x3d321c>this['maxPayload'])return this['writeBuffer']['slice'](0x0,_0x109668);_0x3d321c+=0x2;}var _0x253d33;return this['writeBuffer'];}['write'](_0x39312f,options,_0x3b7133){return this['sendPacket']('message',_0x39312f,options,_0x3b7133),this;}['send'](_0x3874d2,options,_0xef3bf2){return this['sendPacket']('message',_0x3874d2,options,_0xef3bf2),this;}['sendPacket'](type,data,options,_0xa45a78){if('function'==typeof data&&(_0xa45a78=data,data=void 0x0),'function'==typeof options&&(_0xa45a78=options,options=null),'closing'===this['readyState']||'closed'===this['readyState'])return;(options=options||{})['compress']=!0x1!==options['compress'];const packet={'type':type,'data':data,'options':options};this['emitReserved']('packetCreate',packet),this['writeBuffer']['push'](packet),_0xa45a78&&this['once']('flush',_0xa45a78),this['flush']();}['close'](){const _0x491d71=()=>{this['onClose']('forced\x20close'),this['transport']['close']();},_0x46b50a=()=>{this['off']('upgrade',_0x46b50a),this['off']('upgradeError',_0x46b50a),_0x491d71();},waitForUpgrade=()=>{this['once']('upgrade',_0x46b50a),this['once']('upgradeError',_0x46b50a);};return'opening'!==this['readyState']&&'open'!==this['readyState']||(this['readyState']='closing',this['writeBuffer']['length']?this['once']('drain',()=>{this['upgrading']?waitForUpgrade():_0x491d71();}):this['upgrading']?waitForUpgrade():_0x491d71()),this;}['onError'](_0xbfb4a0){Socket['priorWebsocketSuccess']=!0x1,this['emitReserved']('error',_0xbfb4a0),this['onClose']('transport\x20error',_0xbfb4a0);}['onClose'](_0x4518c1,description){'opening'!==this['readyState']&&'open'!==this['readyState']&&'closing'!==this['readyState']||(this['clearTimeoutFn'](this['pingTimeoutTimer']),this['transport']['removeAllListeners']('close'),this['transport']['close'](),this['transport']['removeAllListeners'](),'function'==typeof removeEventListener&&(removeEventListener('beforeunload',this['beforeunloadEventListener'],!0x1),removeEventListener('offline',this['offlineEventListener'],!0x1)),this['readyState']='closed',this['id']=null,this['emitReserved']('close',_0x4518c1,description),this['writeBuffer']=[],this['prevBufferLen']=0x0);}['filterUpgrades'](_0x2198f8){const filteredUpgrades=[];let _0x492f6d=0x0;const _0x2e3d61=_0x2198f8['length'];for(;_0x492f6d<_0x2e3d61;_0x492f6d++)~this['transports']['indexOf'](_0x2198f8[_0x492f6d])&&filteredUpgrades['push'](_0x2198f8[_0x492f6d]);return filteredUpgrades;}};Socket$1['protocol']=0x4;const withNativeArrayBuffer='function'==typeof ArrayBuffer,isView=_0x5be73f=>'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x5be73f):_0x5be73f['buffer']instanceof ArrayBuffer,toString=Object['prototype']['toString'],withNativeBlob='function'==typeof Blob||'undefined'!=typeof Blob&&'[object\x20BlobConstructor]'===toString['call'](Blob),withNativeFile='function'==typeof File||'undefined'!=typeof File&&'[object\x20FileConstructor]'===toString['call'](File);function isBinary(_0x53bd78){return withNativeArrayBuffer&&(_0x53bd78 instanceof ArrayBuffer||isView(_0x53bd78))||withNativeBlob&&_0x53bd78 instanceof Blob||withNativeFile&&_0x53bd78 instanceof File;}function hasBinary(_0x53a1c0,toJSON){if(!_0x53a1c0||'object'!=typeof _0x53a1c0)return!0x1;if(Array['isArray'](_0x53a1c0)){for(let _0x298349=0x0,_0x30293c=_0x53a1c0['length'];_0x298349<_0x30293c;_0x298349++)if(hasBinary(_0x53a1c0[_0x298349]))return!0x0;return!0x1;}if(isBinary(_0x53a1c0))return!0x0;if(_0x53a1c0['toJSON']&&'function'==typeof _0x53a1c0['toJSON']&&0x1===arguments['length'])return hasBinary(_0x53a1c0['toJSON'](),!0x0);for(const _0x2e0e5b in _0x53a1c0)if(Object['prototype']['hasOwnProperty']['call'](_0x53a1c0,_0x2e0e5b)&&hasBinary(_0x53a1c0[_0x2e0e5b]))return!0x0;return!0x1;}function deconstructPacket(packet){const _0xd151c2=[],packetData=packet['data'],_0x40b9ea=packet;return _0x40b9ea['data']=_deconstructPacket(packetData,_0xd151c2),_0x40b9ea['attachments']=_0xd151c2['length'],{'packet':_0x40b9ea,'buffers':_0xd151c2};}function _deconstructPacket(data,_0x31646a){if(!data)return data;if(isBinary(data)){const _0x2b04fe={'_placeholder':!0x0,'num':_0x31646a['length']};return _0x31646a['push'](data),_0x2b04fe;}if(Array['isArray'](data)){const newData=new Array(data['length']);for(let _0x3a9bc3=0x0;_0x3a9bc3<data['length'];_0x3a9bc3++)newData[_0x3a9bc3]=_deconstructPacket(data[_0x3a9bc3],_0x31646a);return newData;}if('object'==typeof data&&!(data instanceof Date)){const newData={};for(const _0x3c2599 in data)Object['prototype']['hasOwnProperty']['call'](data,_0x3c2599)&&(newData[_0x3c2599]=_deconstructPacket(data[_0x3c2599],_0x31646a));return newData;}return data;}function reconstructPacket(packet,_0x485496){return packet['data']=_reconstructPacket(packet['data'],_0x485496),delete packet['attachments'],packet;}function _reconstructPacket(data,_0x4820e1){if(!data)return data;if(data&&!0x0===data['_placeholder']){if('number'==typeof data['num']&&data['num']>=0x0&&data['num']<_0x4820e1['length'])return _0x4820e1[data['num']];throw new Error('illegal\x20attachments');}if(Array['isArray'](data)){for(let _0xe3b2e2=0x0;_0xe3b2e2<data['length'];_0xe3b2e2++)data[_0xe3b2e2]=_reconstructPacket(data[_0xe3b2e2],_0x4820e1);}else{if('object'==typeof data){for(const _0x14f881 in data)Object['prototype']['hasOwnProperty']['call'](data,_0x14f881)&&(data[_0x14f881]=_reconstructPacket(data[_0x14f881],_0x4820e1));}}return data;}var PacketType;!function(PacketType){PacketType[PacketType['CONNECT']=0x0]='CONNECT',PacketType[PacketType['DISCONNECT']=0x1]='DISCONNECT',PacketType[PacketType['EVENT']=0x2]='EVENT',PacketType[PacketType['ACK']=0x3]='ACK',PacketType[PacketType['CONNECT_ERROR']=0x4]='CONNECT_ERROR',PacketType[PacketType['BINARY_EVENT']=0x5]='BINARY_EVENT',PacketType[PacketType['BINARY_ACK']=0x6]='BINARY_ACK';}(PacketType||(PacketType={}));let Encoder$1=class{constructor(_0x3e34c3){this['replacer']=_0x3e34c3;}['encode'](_0x3648f1){return _0x3648f1['type']!==PacketType['EVENT']&&_0x3648f1['type']!==PacketType['ACK']||!hasBinary(_0x3648f1)?[this['encodeAsString'](_0x3648f1)]:this['encodeAsBinary']({'type':_0x3648f1['type']===PacketType['EVENT']?PacketType['BINARY_EVENT']:PacketType['BINARY_ACK'],'nsp':_0x3648f1['nsp'],'data':_0x3648f1['data'],'id':_0x3648f1['id']});}['encodeAsString'](_0x42d5b9){let str=''+_0x42d5b9['type'];return _0x42d5b9['type']!==PacketType['BINARY_EVENT']&&_0x42d5b9['type']!==PacketType['BINARY_ACK']||(str+=_0x42d5b9['attachments']+'-'),_0x42d5b9['nsp']&&'/'!==_0x42d5b9['nsp']&&(str+=_0x42d5b9['nsp']+','),null!=_0x42d5b9['id']&&(str+=_0x42d5b9['id']),null!=_0x42d5b9['data']&&(str+=JSON['stringify'](_0x42d5b9['data'],this['replacer'])),str;}['encodeAsBinary'](_0x58b015){const deconstruction=deconstructPacket(_0x58b015),_0x47e5f9=this['encodeAsString'](deconstruction['packet']),_0x4907e9=deconstruction['buffers'];return _0x4907e9['unshift'](_0x47e5f9),_0x4907e9;}},Decoder$1=class Decoder extends Emitter{constructor(_0x3c66f9){super(),this['reviver']=_0x3c66f9;}['add'](_0x5bbfc6){let packet;if('string'==typeof _0x5bbfc6){if(this['reconstructor'])throw new Error('got\x20plaintext\x20data\x20when\x20reconstructing\x20a\x20packet');packet=this['decodeString'](_0x5bbfc6);const isBinaryEvent=packet['type']===PacketType['BINARY_EVENT'];isBinaryEvent||packet['type']===PacketType['BINARY_ACK']?(packet['type']=isBinaryEvent?PacketType['EVENT']:PacketType['ACK'],this['reconstructor']=new BinaryReconstructor(packet),0x0===packet['attachments']&&super['emitReserved']('decoded',packet)):super['emitReserved']('decoded',packet);}else{if(!isBinary(_0x5bbfc6)&&!_0x5bbfc6['base64'])throw new Error('Unknown\x20type:\x20'+_0x5bbfc6);if(!this['reconstructor'])throw new Error('got\x20binary\x20data\x20when\x20not\x20reconstructing\x20a\x20packet');packet=this['reconstructor']['takeBinaryData'](_0x5bbfc6),packet&&(this['reconstructor']=null,super['emitReserved']('decoded',packet));}}['decodeString'](str){let _0x9de90=0x0;const _0x3a9e34={'type':Number(str['charAt'](0x0))};if(void 0x0===PacketType[_0x3a9e34['type']])throw new Error('unknown\x20packet\x20type\x20'+_0x3a9e34['type']);if(_0x3a9e34['type']===PacketType['BINARY_EVENT']||_0x3a9e34['type']===PacketType['BINARY_ACK']){const start=_0x9de90+0x1;for(;'-'!==str['charAt'](++_0x9de90)&&_0x9de90!=str['length'];);const _0x3bd0e3=str['substring'](start,_0x9de90);if(_0x3bd0e3!=Number(_0x3bd0e3)||'-'!==str['charAt'](_0x9de90))throw new Error('Illegal\x20attachments');_0x3a9e34['attachments']=Number(_0x3bd0e3);}if('/'===str['charAt'](_0x9de90+0x1)){const start=_0x9de90+0x1;for(;++_0x9de90;){if(','===str['charAt'](_0x9de90))break;if(_0x9de90===str['length'])break;}_0x3a9e34['nsp']=str['substring'](start,_0x9de90);}else _0x3a9e34['nsp']='/';const next=str['charAt'](_0x9de90+0x1);if(''!==next&&Number(next)==next){const start=_0x9de90+0x1;for(;++_0x9de90;){const _0xc3c6b0=str['charAt'](_0x9de90);if(null==_0xc3c6b0||Number(_0xc3c6b0)!=_0xc3c6b0){--_0x9de90;break;}if(_0x9de90===str['length'])break;}_0x3a9e34['id']=Number(str['substring'](start,_0x9de90+0x1));}if(str['charAt'](++_0x9de90)){const _0x113120=this['tryParse'](str['substr'](_0x9de90));if(!Decoder['isPayloadValid'](_0x3a9e34['type'],_0x113120))throw new Error('invalid\x20payload');_0x3a9e34['data']=_0x113120;}return _0x3a9e34;}['tryParse'](str){try{return JSON['parse'](str,this['reviver']);}catch(_0x5b9495){return!0x1;}}static['isPayloadValid'](type,_0xedac79){switch(type){case PacketType['CONNECT']:return'object'==typeof _0xedac79;case PacketType['DISCONNECT']:return void 0x0===_0xedac79;case PacketType['CONNECT_ERROR']:return'string'==typeof _0xedac79||'object'==typeof _0xedac79;case PacketType['EVENT']:case PacketType['BINARY_EVENT']:return Array['isArray'](_0xedac79)&&('string'==typeof _0xedac79[0x0]||'number'==typeof _0xedac79[0x0]);case PacketType['ACK']:case PacketType['BINARY_ACK']:return Array['isArray'](_0xedac79);}}['destroy'](){this['reconstructor']&&(this['reconstructor']['finishedReconstruction'](),this['reconstructor']=null);}};class BinaryReconstructor{constructor(packet){this['packet']=packet,this['buffers']=[],this['reconPack']=packet;}['takeBinaryData'](binData){if(this['buffers']['push'](binData),this['buffers']['length']===this['reconPack']['attachments']){const packet=reconstructPacket(this['reconPack'],this['buffers']);return this['finishedReconstruction'](),packet;}return null;}['finishedReconstruction'](){this['reconPack']=null,this['buffers']=[];}}var parser=Object['freeze']({'__proto__':null,'Decoder':Decoder$1,'Encoder':Encoder$1,get 'PacketType'(){return PacketType;},'protocol':0x5});function on(_0xc28e63,_0x2256e4,_0x28dcaf){return _0xc28e63['on'](_0x2256e4,_0x28dcaf),function(){_0xc28e63['off'](_0x2256e4,_0x28dcaf);};}const RESERVED_EVENTS=Object['freeze']({'connect':0x1,'connect_error':0x1,'disconnect':0x1,'disconnecting':0x1,'newListener':0x1,'removeListener':0x1});class Socket extends Emitter{constructor(_0x458748,_0x35a621,opts){super(),this['connected']=!0x1,this['recovered']=!0x1,this['receiveBuffer']=[],this['sendBuffer']=[],this['_queue']=[],this['_queueSeq']=0x0,this['ids']=0x0,this['acks']={},this['flags']={},this['io']=_0x458748,this['nsp']=_0x35a621,opts&&opts['auth']&&(this['auth']=opts['auth']),this['_opts']=Object['assign']({},opts),this['io']['_autoConnect']&&this['open']();}get['disconnected'](){return!this['connected'];}['subEvents'](){if(this['subs'])return;const _0x4614f6=this['io'];this['subs']=[on(_0x4614f6,'open',this['onopen']['bind'](this)),on(_0x4614f6,'packet',this['onpacket']['bind'](this)),on(_0x4614f6,'error',this['onerror']['bind'](this)),on(_0x4614f6,'close',this['onclose']['bind'](this))];}get['active'](){return!!this['subs'];}['connect'](){return this['connected']||(this['subEvents'](),this['io']['_reconnecting']||this['io']['open'](),'open'===this['io']['_readyState']&&this['onopen']()),this;}['open'](){return this['connect']();}['send'](..._0x5243f3){return _0x5243f3['unshift']('message'),this['emit']['apply'](this,_0x5243f3),this;}['emit'](_0x24ce5d,..._0x4d91cb){if(RESERVED_EVENTS['hasOwnProperty'](_0x24ce5d))throw new Error('\x22'+_0x24ce5d['toString']()+'\x22\x20is\x20a\x20reserved\x20event\x20name');if(_0x4d91cb['unshift'](_0x24ce5d),this['_opts']['retries']&&!this['flags']['fromQueue']&&!this['flags']['volatile'])return this['_addToQueue'](_0x4d91cb),this;const packet={'type':PacketType['EVENT'],'data':_0x4d91cb,'options':{}};if(packet['options']['compress']=!0x1!==this['flags']['compress'],'function'==typeof _0x4d91cb[_0x4d91cb['length']-0x1]){const _0x56b7a1=this['ids']++,_0x45bb07=_0x4d91cb['pop']();this['_registerAckCallback'](_0x56b7a1,_0x45bb07),packet['id']=_0x56b7a1;}const isTransportWritable=this['io']['engine']&&this['io']['engine']['transport']&&this['io']['engine']['transport']['writable'];return this['flags']['volatile']&&(!isTransportWritable||!this['connected'])||(this['connected']?(this['notifyOutgoingListeners'](packet),this['packet'](packet)):this['sendBuffer']['push'](packet)),this['flags']={},this;}['_registerAckCallback'](_0x34f377,_0x4898b4){var _0x9e99a5;const timeout=null!==(_0x9e99a5=this['flags']['timeout'])&&void 0x0!==_0x9e99a5?_0x9e99a5:this['_opts']['ackTimeout'];if(void 0x0===timeout)return void(this['acks'][_0x34f377]=_0x4898b4);const timer=this['io']['setTimeoutFn'](()=>{delete this['acks'][_0x34f377];for(let _0x3f97da=0x0;_0x3f97da<this['sendBuffer']['length'];_0x3f97da++)this['sendBuffer'][_0x3f97da]['id']===_0x34f377&&this['sendBuffer']['splice'](_0x3f97da,0x1);_0x4898b4['call'](this,new Error('operation\x20has\x20timed\x20out'));},timeout);this['acks'][_0x34f377]=(..._0x205f6d)=>{this['io']['clearTimeoutFn'](timer),_0x4898b4['apply'](this,[null,..._0x205f6d]);};}['emitWithAck'](_0x300eab,..._0x665c48){const withErr=void 0x0!==this['flags']['timeout']||void 0x0!==this['_opts']['ackTimeout'];return new Promise((_0x2b02f5,reject)=>{_0x665c48['push']((_0x382f0d,_0x32264c)=>withErr?_0x382f0d?reject(_0x382f0d):_0x2b02f5(_0x32264c):_0x2b02f5(_0x382f0d)),this['emit'](_0x300eab,..._0x665c48);});}['_addToQueue'](_0x2822b6){let _0x57b02d;'function'==typeof _0x2822b6[_0x2822b6['length']-0x1]&&(_0x57b02d=_0x2822b6['pop']());const packet={'id':this['_queueSeq']++,'tryCount':0x0,'pending':!0x1,'args':_0x2822b6,'flags':Object['assign']({'fromQueue':!0x0},this['flags'])};_0x2822b6['push']((_0x4d4347,..._0x178476)=>{if(packet!==this['_queue'][0x0])return;return null!==_0x4d4347?packet['tryCount']>this['_opts']['retries']&&(this['_queue']['shift'](),_0x57b02d&&_0x57b02d(_0x4d4347)):(this['_queue']['shift'](),_0x57b02d&&_0x57b02d(null,..._0x178476)),packet['pending']=!0x1,this['_drainQueue']();}),this['_queue']['push'](packet),this['_drainQueue']();}['_drainQueue'](_0x5f2cf7=!0x1){if(!this['connected']||0x0===this['_queue']['length'])return;const packet=this['_queue'][0x0];packet['pending']&&!_0x5f2cf7||(packet['pending']=!0x0,packet['tryCount']++,this['flags']=packet['flags'],this['emit']['apply'](this,packet['args']));}['packet'](packet){packet['nsp']=this['nsp'],this['io']['_packet'](packet);}['onopen'](){'function'==typeof this['auth']?this['auth'](data=>{this['_sendConnectPacket'](data);}):this['_sendConnectPacket'](this['auth']);}['_sendConnectPacket'](data){this['packet']({'type':PacketType['CONNECT'],'data':this['_pid']?Object['assign']({'pid':this['_pid'],'offset':this['_lastOffset']},data):data});}['onerror'](_0x1b61fe){this['connected']||this['emitReserved']('connect_error',_0x1b61fe);}['onclose'](_0x4d574a,description){this['connected']=!0x1,delete this['id'],this['emitReserved']('disconnect',_0x4d574a,description);}['onpacket'](packet){if(packet['nsp']===this['nsp'])switch(packet['type']){case PacketType['CONNECT']:packet['data']&&packet['data']['sid']?this['onconnect'](packet['data']['sid'],packet['data']['pid']):this['emitReserved']('connect_error',new Error('It\x20seems\x20you\x20are\x20trying\x20to\x20reach\x20a\x20Socket.IO\x20server\x20in\x20v2.x\x20with\x20a\x20v3.x\x20client,\x20but\x20they\x20are\x20not\x20compatible\x20(more\x20information\x20here:\x20https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)'));break;case PacketType['EVENT']:case PacketType['BINARY_EVENT']:this['onevent'](packet);break;case PacketType['ACK']:case PacketType['BINARY_ACK']:this['onack'](packet);break;case PacketType['DISCONNECT']:this['ondisconnect']();break;case PacketType['CONNECT_ERROR']:this['destroy']();const _0x474ac0=new Error(packet['data']['message']);_0x474ac0['data']=packet['data']['data'],this['emitReserved']('connect_error',_0x474ac0);}}['onevent'](packet){const _0x5ad2b2=packet['data']||[];null!=packet['id']&&_0x5ad2b2['push'](this['ack'](packet['id'])),this['connected']?this['emitEvent'](_0x5ad2b2):this['receiveBuffer']['push'](Object['freeze'](_0x5ad2b2));}['emitEvent'](_0x30bc14){if(this['_anyListeners']&&this['_anyListeners']['length']){const listeners=this['_anyListeners']['slice']();for(const listener of listeners)listener['apply'](this,_0x30bc14);}super['emit']['apply'](this,_0x30bc14),this['_pid']&&_0x30bc14['length']&&'string'==typeof _0x30bc14[_0x30bc14['length']-0x1]&&(this['_lastOffset']=_0x30bc14[_0x30bc14['length']-0x1]);}['ack'](_0x108f55){const _0x2a2732=this;let sent=!0x1;return function(..._0x38aceb){sent||(sent=!0x0,_0x2a2732['packet']({'type':PacketType['ACK'],'id':_0x108f55,'data':_0x38aceb}));};}['onack'](packet){const _0x4aeb69=this['acks'][packet['id']];'function'==typeof _0x4aeb69&&(_0x4aeb69['apply'](this,packet['data']),delete this['acks'][packet['id']]);}['onconnect'](_0x3ef899,_0x3ae715){this['id']=_0x3ef899,this['recovered']=_0x3ae715&&this['_pid']===_0x3ae715,this['_pid']=_0x3ae715,this['connected']=!0x0,this['emitBuffered'](),this['emitReserved']('connect'),this['_drainQueue'](!0x0);}['emitBuffered'](){this['receiveBuffer']['forEach'](_0x23cd71=>this['emitEvent'](_0x23cd71)),this['receiveBuffer']=[],this['sendBuffer']['forEach'](packet=>{this['notifyOutgoingListeners'](packet),this['packet'](packet);}),this['sendBuffer']=[];}['ondisconnect'](){this['destroy'](),this['onclose']('io\x20server\x20disconnect');}['destroy'](){this['subs']&&(this['subs']['forEach'](subDestroy=>subDestroy()),this['subs']=void 0x0),this['io']['_destroy'](this);}['disconnect'](){return this['connected']&&this['packet']({'type':PacketType['DISCONNECT']}),this['destroy'](),this['connected']&&this['onclose']('io\x20client\x20disconnect'),this;}['close'](){return this['disconnect']();}['compress'](_0x109364){return this['flags']['compress']=_0x109364,this;}get['volatile'](){return this['flags']['volatile']=!0x0,this;}['timeout'](timeout){return this['flags']['timeout']=timeout,this;}['onAny'](listener){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['push'](listener),this;}['prependAny'](listener){return this['_anyListeners']=this['_anyListeners']||[],this['_anyListeners']['unshift'](listener),this;}['offAny'](listener){if(!this['_anyListeners'])return this;if(listener){const listeners=this['_anyListeners'];for(let _0x43de33=0x0;_0x43de33<listeners['length'];_0x43de33++)if(listener===listeners[_0x43de33])return listeners['splice'](_0x43de33,0x1),this;}else this['_anyListeners']=[];return this;}['listenersAny'](){return this['_anyListeners']||[];}['onAnyOutgoing'](listener){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['push'](listener),this;}['prependAnyOutgoing'](listener){return this['_anyOutgoingListeners']=this['_anyOutgoingListeners']||[],this['_anyOutgoingListeners']['unshift'](listener),this;}['offAnyOutgoing'](listener){if(!this['_anyOutgoingListeners'])return this;if(listener){const listeners=this['_anyOutgoingListeners'];for(let _0x46e572=0x0;_0x46e572<listeners['length'];_0x46e572++)if(listener===listeners[_0x46e572])return listeners['splice'](_0x46e572,0x1),this;}else this['_anyOutgoingListeners']=[];return this;}['listenersAnyOutgoing'](){return this['_anyOutgoingListeners']||[];}['notifyOutgoingListeners'](packet){if(this['_anyOutgoingListeners']&&this['_anyOutgoingListeners']['length']){const listeners=this['_anyOutgoingListeners']['slice']();for(const listener of listeners)listener['apply'](this,packet['data']);}}}function Backoff(opts){opts=opts||{},this['ms']=opts['min']||0x64,this['max']=opts['max']||0x2710,this['factor']=opts['factor']||0x2,this['jitter']=opts['jitter']>0x0&&opts['jitter']<=0x1?opts['jitter']:0x0,this['attempts']=0x0;}Backoff['prototype']['duration']=function(){var _0x23ccf1=this['ms']*Math['pow'](this['factor'],this['attempts']++);if(this['jitter']){var _0x41126b=Math['random'](),deviation=Math['floor'](_0x41126b*this['jitter']*_0x23ccf1);_0x23ccf1=0x1&Math['floor'](0xa*_0x41126b)?_0x23ccf1+deviation:_0x23ccf1-deviation;}return 0x0|Math['min'](_0x23ccf1,this['max']);},Backoff['prototype']['reset']=function(){this['attempts']=0x0;},Backoff['prototype']['setMin']=function(_0x1ec60){this['ms']=_0x1ec60;},Backoff['prototype']['setMax']=function(_0xf849a0){this['max']=_0xf849a0;},Backoff['prototype']['setJitter']=function(jitter){this['jitter']=jitter;};class Manager extends Emitter{constructor(_0x8680c0,opts){var _0x15a131;super(),this['nsps']={},this['subs']=[],_0x8680c0&&'object'==typeof _0x8680c0&&(opts=_0x8680c0,_0x8680c0=void 0x0),(opts=opts||{})['path']=opts['path']||'/socket.io',this['opts']=opts,installTimerFunctions(this,opts),this['reconnection'](!0x1!==opts['reconnection']),this['reconnectionAttempts'](opts['reconnectionAttempts']||0x1/0x0),this['reconnectionDelay'](opts['reconnectionDelay']||0x3e8),this['reconnectionDelayMax'](opts['reconnectionDelayMax']||0x1388),this['randomizationFactor'](null!==(_0x15a131=opts['randomizationFactor'])&&void 0x0!==_0x15a131?_0x15a131:0.5),this['backoff']=new Backoff({'min':this['reconnectionDelay'](),'max':this['reconnectionDelayMax'](),'jitter':this['randomizationFactor']()}),this['timeout'](null==opts['timeout']?0x4e20:opts['timeout']),this['_readyState']='closed',this['uri']=_0x8680c0;const _0x2ac861=opts['parser']||parser;this['encoder']=new _0x2ac861['Encoder'](),this['decoder']=new _0x2ac861['Decoder'](),this['_autoConnect']=!0x1!==opts['autoConnect'],this['_autoConnect']&&this['open']();}['reconnection'](_0x59258d){return arguments['length']?(this['_reconnection']=!!_0x59258d,this):this['_reconnection'];}['reconnectionAttempts'](_0x266ab9){return void 0x0===_0x266ab9?this['_reconnectionAttempts']:(this['_reconnectionAttempts']=_0x266ab9,this);}['reconnectionDelay'](_0x3c45ad){var _0x53362a;return void 0x0===_0x3c45ad?this['_reconnectionDelay']:(this['_reconnectionDelay']=_0x3c45ad,null===(_0x53362a=this['backoff'])||void 0x0===_0x53362a||_0x53362a['setMin'](_0x3c45ad),this);}['randomizationFactor'](_0x52b1ac){var _0x242c05;return void 0x0===_0x52b1ac?this['_randomizationFactor']:(this['_randomizationFactor']=_0x52b1ac,null===(_0x242c05=this['backoff'])||void 0x0===_0x242c05||_0x242c05['setJitter'](_0x52b1ac),this);}['reconnectionDelayMax'](_0x4a8b71){var _0x2d8e74;return void 0x0===_0x4a8b71?this['_reconnectionDelayMax']:(this['_reconnectionDelayMax']=_0x4a8b71,null===(_0x2d8e74=this['backoff'])||void 0x0===_0x2d8e74||_0x2d8e74['setMax'](_0x4a8b71),this);}['timeout'](_0x4ce05d){return arguments['length']?(this['_timeout']=_0x4ce05d,this):this['_timeout'];}['maybeReconnectOnOpen'](){!this['_reconnecting']&&this['_reconnection']&&0x0===this['backoff']['attempts']&&this['reconnect']();}['open'](_0x152672){if(~this['_readyState']['indexOf']('open'))return this;this['engine']=new Socket$1(this['uri'],this['opts']);const socket=this['engine'],_0x44b856=this;this['_readyState']='opening',this['skipReconnect']=!0x1;const openSubDestroy=on(socket,'open',function(){_0x44b856['onopen'](),_0x152672&&_0x152672();}),_0x2782eb=on(socket,'error',_0x2c4a01=>{_0x44b856['cleanup'](),_0x44b856['_readyState']='closed',this['emitReserved']('error',_0x2c4a01),_0x152672?_0x152672(_0x2c4a01):_0x44b856['maybeReconnectOnOpen']();});if(!0x1!==this['_timeout']){const timeout=this['_timeout'];0x0===timeout&&openSubDestroy();const timer=this['setTimeoutFn'](()=>{openSubDestroy(),socket['close'](),socket['emit']('error',new Error('timeout'));},timeout);this['opts']['autoUnref']&&timer['unref'](),this['subs']['push'](function(){clearTimeout(timer);});}return this['subs']['push'](openSubDestroy),this['subs']['push'](_0x2782eb),this;}['connect'](_0x2b2053){return this['open'](_0x2b2053);}['onopen'](){this['cleanup'](),this['_readyState']='open',this['emitReserved']('open');const socket=this['engine'];this['subs']['push'](on(socket,'ping',this['onping']['bind'](this)),on(socket,'data',this['ondata']['bind'](this)),on(socket,'error',this['onerror']['bind'](this)),on(socket,'close',this['onclose']['bind'](this)),on(this['decoder'],'decoded',this['ondecoded']['bind'](this)));}['onping'](){this['emitReserved']('ping');}['ondata'](data){try{this['decoder']['add'](data);}catch(_0xc7bc45){this['onclose']('parse\x20error',_0xc7bc45);}}['ondecoded'](packet){nextTick(()=>{this['emitReserved']('packet',packet);},this['setTimeoutFn']);}['onerror'](_0x518e8f){this['emitReserved']('error',_0x518e8f);}['socket'](_0x3f0350,opts){let socket=this['nsps'][_0x3f0350];return socket?this['_autoConnect']&&!socket['active']&&socket['connect']():(socket=new Socket(this,_0x3f0350,opts),this['nsps'][_0x3f0350]=socket),socket;}['_destroy'](socket){const _0xd13db1=Object['keys'](this['nsps']);for(const _0x354e7b of _0xd13db1){if(this['nsps'][_0x354e7b]['active'])return;}this['_close']();}['_packet'](packet){const encodedPackets=this['encoder']['encode'](packet);for(let _0x44e9ce=0x0;_0x44e9ce<encodedPackets['length'];_0x44e9ce++)this['engine']['write'](encodedPackets[_0x44e9ce],packet['options']);}['cleanup'](){this['subs']['forEach'](subDestroy=>subDestroy()),this['subs']['length']=0x0,this['decoder']['destroy']();}['_close'](){this['skipReconnect']=!0x0,this['_reconnecting']=!0x1,this['onclose']('forced\x20close'),this['engine']&&this['engine']['close']();}['disconnect'](){return this['_close']();}['onclose'](_0x1f7c2e,description){this['cleanup'](),this['backoff']['reset'](),this['_readyState']='closed',this['emitReserved']('close',_0x1f7c2e,description),this['_reconnection']&&!this['skipReconnect']&&this['reconnect']();}['reconnect'](){if(this['_reconnecting']||this['skipReconnect'])return this;const _0x2e9d24=this;if(this['backoff']['attempts']>=this['_reconnectionAttempts'])this['backoff']['reset'](),this['emitReserved']('reconnect_failed'),this['_reconnecting']=!0x1;else{const _0x14041c=this['backoff']['duration']();this['_reconnecting']=!0x0;const timer=this['setTimeoutFn'](()=>{_0x2e9d24['skipReconnect']||(this['emitReserved']('reconnect_attempt',_0x2e9d24['backoff']['attempts']),_0x2e9d24['skipReconnect']||_0x2e9d24['open'](_0x39a843=>{_0x39a843?(_0x2e9d24['_reconnecting']=!0x1,_0x2e9d24['reconnect'](),this['emitReserved']('reconnect_error',_0x39a843)):_0x2e9d24['onreconnect']();}));},_0x14041c);this['opts']['autoUnref']&&timer['unref'](),this['subs']['push'](function(){clearTimeout(timer);});}}['onreconnect'](){const attempt=this['backoff']['attempts'];this['_reconnecting']=!0x1,this['backoff']['reset'](),this['emitReserved']('reconnect',attempt);}}const cache={};function lookup(_0x4b581c,opts){'object'==typeof _0x4b581c&&(opts=_0x4b581c,_0x4b581c=void 0x0);const _0x4f4fe9=function(_0x4f3893,path='',_0x82eab7){let _0x49ad40=_0x4f3893;_0x82eab7=_0x82eab7||'undefined'!=typeof location&&location,null==_0x4f3893&&(_0x4f3893=_0x82eab7['protocol']+'//'+_0x82eab7['host']),'string'==typeof _0x4f3893&&('/'===_0x4f3893['charAt'](0x0)&&(_0x4f3893='/'===_0x4f3893['charAt'](0x1)?_0x82eab7['protocol']+_0x4f3893:_0x82eab7['host']+_0x4f3893),/^(https?|wss?):\/\//['test'](_0x4f3893)||(_0x4f3893=void 0x0!==_0x82eab7?_0x82eab7['protocol']+'//'+_0x4f3893:'https://'+_0x4f3893),_0x49ad40=parse(_0x4f3893)),_0x49ad40['port']||(/^(http|ws)$/['test'](_0x49ad40['protocol'])?_0x49ad40['port']='80':/^(http|ws)s$/['test'](_0x49ad40['protocol'])&&(_0x49ad40['port']='443')),_0x49ad40['path']=_0x49ad40['path']||'/';const host=-0x1!==_0x49ad40['host']['indexOf'](':')?'['+_0x49ad40['host']+']':_0x49ad40['host'];return _0x49ad40['id']=_0x49ad40['protocol']+'://'+host+':'+_0x49ad40['port']+path,_0x49ad40['href']=_0x49ad40['protocol']+'://'+host+(_0x82eab7&&_0x82eab7['port']===_0x49ad40['port']?'':':'+_0x49ad40['port']),_0x49ad40;}(_0x4b581c,(opts=opts||{})['path']||'/socket.io'),_0x5a7594=_0x4f4fe9['source'],_0xa62152=_0x4f4fe9['id'],path=_0x4f4fe9['path'],_0x2f8cd0=cache[_0xa62152]&&path in cache[_0xa62152]['nsps'];let _0x1dde50;return opts['forceNew']||opts['force\x20new\x20connection']||!0x1===opts['multiplex']||_0x2f8cd0?_0x1dde50=new Manager(_0x5a7594,opts):(cache[_0xa62152]||(cache[_0xa62152]=new Manager(_0x5a7594,opts)),_0x1dde50=cache[_0xa62152]),_0x4f4fe9['query']&&!opts['query']&&(opts['query']=_0x4f4fe9['queryKey']),_0x1dde50['socket'](_0x4f4fe9['path'],opts);}Object['assign'](lookup,{'Manager':Manager,'Socket':Socket,'io':lookup,'connect':lookup});class ChannelMessage extends Message{['type'];['socketId'];['data'];static ['DESCRIPTOR_NAME']='ChannelMessage';static ['DESCRIPTOR']={'fields':{'type':{'type':'uint32','id':0x1},'socketId':{'type':'string','id':0x2},'data':{'type':'bytes','id':0x3}}};constructor(type,socketId,data){super(),this['type']=type,this['socketId']=socketId,this['data']=data;}['toJSON'](){return{'type':this['type'],'socketId':this['socketId'],'data':this['data']};}static['fromJSON'](data){return new ChannelMessage(data['type'],data['socketId'],data['data']);}}class Channel extends EmitterMixin(){['_channelName'];['_wsGateway'];['_socket'];constructor(_0x21b5cf,_wsGateway,_socket){super(),this['_channelName']=_0x21b5cf,this['_wsGateway']=_wsGateway,this['_socket']=_socket,this['_subscribeToChannel']();}['remove'](){this['_socket']['off'](this['_channelName']);}['getEventName'](eventName,_0x3f3b3b=!0x1){let fullEventName='';return _0x3f3b3b&&(fullEventName+='all:'),fullEventName+='event',eventName&&(fullEventName+=':'+eventName),fullEventName;}['_subscribeToChannel'](){this['_socket']['on'](this['_channelName'],_0x25df76=>{const _0x21ec2f=MessagesCompressor['decode'](_0x25df76,ChannelMessage);this['fire'](this['getEventName'](_0x21ec2f['type'],!0x0),_0x21ec2f['data'],_0x21ec2f['socketId']),_0x21ec2f['socketId']!==this['_wsGateway']['socketId']&&this['fire'](this['getEventName'](_0x21ec2f['type']),_0x21ec2f['data'],_0x21ec2f['socketId']);});}}class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x5565aa,context,_0x44562e=null,data={}){super('cloud-services-internal-error:\x20'+_0x5565aa),this['context']=context,this['code']=_0x44562e,this['data']=data,this['name']='CKEditorError';}static['fromPublicError'](_0x242de9){return new CKEditorCloudServicesError(function(_0x186be3){let _0x126dfc='cloud-services-error:\x20'+_0x186be3['message'];return _0x186be3['data']&&(_0x126dfc+='\x0aError\x20data:\x20'+JSON['stringify'](_0x186be3['data'])),_0x186be3['explanation']&&(_0x126dfc+='\x0aExplanation:\x20'+_0x186be3['explanation']),_0x186be3['action']&&(_0x126dfc+='\x0aAction:\x20'+_0x186be3['action']),_0x186be3['traceId']&&(_0x126dfc+='\x0aTraceId:\x20'+_0x186be3['traceId']),_0x186be3['code']&&(_0x126dfc+='\x0aCode:\x20'+_0x186be3['code']),_0x126dfc;}(_0x242de9),_0x242de9);}}class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x1eb6a3,_0x52d0ef){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x1eb6a3,this['code']=_0x52d0ef['code'],this['traceId']=_0x52d0ef['traceId'],this['data']=_0x52d0ef['data'];}static['fromPublicError'](_0x216e68){return new CKEditorCloudServicesServerError(function(_0x255576){let _0x4382c6='cloud-services-server-error:\x20'+_0x255576['message'];return _0x255576['explanation']&&(_0x4382c6+='\x0aExplanation:\x20'+_0x255576['explanation']),_0x255576['action']&&(_0x4382c6+='\x0aAction:\x20'+_0x255576['action']),_0x255576['traceId']&&(_0x4382c6+='\x0aTraceId:\x20'+_0x255576['traceId']),_0x255576['code']&&(_0x4382c6+='\x0aCode:\x20'+_0x255576['code']),_0x4382c6;}(_0x216e68),_0x216e68);}}class PacketOptionsMessage extends Message{['flags'];['rooms'];['except'];static ['TYPE']=0xb;static ['DESCRIPTOR_NAME']='PacketOptionsMessage';static ['DESCRIPTOR']={'fields':{'flags':{'type':'string','id':0x1},'rooms':{'type':'string','id':0x2,'rule':'repeated'},'except':{'type':'string','id':0x3,'rule':'repeated'}}};constructor(_0x365f9d,_0x13dd5e=[],except=[]){super(),this['flags']=_0x365f9d,this['rooms']=_0x13dd5e,this['except']=except;}['toJSON'](){return{'flags':this['flags']?JSON['stringify'](this['flags']):void 0x0,'rooms':this['rooms']?.['length']?this['rooms']:void 0x0,'except':this['except']?.['length']?this['except']:void 0x0};}static['fromJSON'](data){return new PacketOptionsMessage(data['flags']&&JSON['parse'](data['flags']),data['rooms'],data['except']);}}const IS_NODE=!('undefined'==typeof process||!process['versions']||!process['versions']['node']),MessageDataTypes_BUFFER=0x1,MessageDataTypes_STRING=0x2,MessageDataTypes_NUMBER=0x3,MessageDataTypes_OBJECT=0x4;class ParserUtils{static['getPacketType'](...types){let _0x35c0dc=0x0;for(let _0x3608cf=0x0;_0x3608cf<types['length'];_0x3608cf++){_0x35c0dc+=types[_0x3608cf]*Math['pow'](0xa,types['length']-_0x3608cf-0x1);}return _0x35c0dc;}static['getType'](_0x4cfdfc){if(ParserUtils['isBuffer'](_0x4cfdfc))return MessageDataTypes_BUFFER;const type=typeof _0x4cfdfc;return'string'===type?MessageDataTypes_STRING:'number'===type?MessageDataTypes_NUMBER:MessageDataTypes_OBJECT;}static['isBuffer'](_0x2fdd8d){return IS_NODE&&Buffer['isBuffer'](_0x2fdd8d)||_0x2fdd8d instanceof ArrayBuffer||_0x2fdd8d instanceof Uint8Array||this['_isBufferView'](_0x2fdd8d);}static['_isBufferView'](_0x4cadcb){return'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x4cadcb):_0x4cadcb['buffer']instanceof ArrayBuffer;}}class PackageDataMessage extends Message{['data'];['data1'];['constructor'];static['create'](data,data1){throw new TypeError('Must\x20be\x20implemented\x20in\x20a\x20child\x20class!');}}class NumberBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_BUFFER);static ['DESCRIPTOR_NAME']='NumberBytesPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'bytes','id':0x2}}};constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new NumberBytesPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new NumberBytesPacketDataMessage(data,data1);}}class StringBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_BUFFER);static ['DESCRIPTOR_NAME']='StringBytesPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'bytes','id':0x2}}};constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new StringBytesPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new StringBytesPacketDataMessage(data,data1);}}class BytesBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=ParserUtils['getPacketType'](MessageDataTypes_BUFFER,MessageDataTypes_BUFFER);static ['DESCRIPTOR_NAME']='BytesBytesPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'bytes','id':0x1},'data1':{'type':'bytes','id':0x2}}};constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new BytesBytesPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new BytesBytesPacketDataMessage(data,data1);}}class StringObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_OBJECT);static ['DESCRIPTOR_NAME']='StringObjectPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}};constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](data){return new StringObjectPacketDataMessage(data['data'],data['data1']&&JSON['parse'](data['data1']));}static['create'](data,data1){return new StringObjectPacketDataMessage(data,data1);}}class NumberObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_OBJECT);static ['DESCRIPTOR_NAME']='NumberObjectPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'string','id':0x2}}};constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](data){return new NumberObjectPacketDataMessage(data['data'],data['data1']&&JSON['parse'](data['data1']));}static['create'](data,data1){return new NumberObjectPacketDataMessage(data,data1);}}class ObjectObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=ParserUtils['getPacketType'](MessageDataTypes_OBJECT,MessageDataTypes_OBJECT);static ['DESCRIPTOR_NAME']='ObjectObjectPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}};constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](data){return new ObjectObjectPacketDataMessage(data['data']&&JSON['parse'](data['data']),data['data1']&&JSON['parse'](data['data1']));}static['create'](data,data1){return new ObjectObjectPacketDataMessage(data,data1);}}class ObjectBufferPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=ParserUtils['getPacketType'](MessageDataTypes_OBJECT,MessageDataTypes_BUFFER);static ['DESCRIPTOR_NAME']='ObjectBufferPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'bytes','id':0x2}}};constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']};}static['fromJSON'](data){return new ObjectBufferPacketDataMessage(data['data']&&JSON['parse'](data['data']),data['data1']);}static['create'](data,data1){return new ObjectBufferPacketDataMessage(data,data1);}}class StringStringPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_STRING);static ['DESCRIPTOR_NAME']='StringStringPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}};constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new StringStringPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new StringStringPacketDataMessage(data,data1);}}class StringNumberPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_NUMBER);static ['DESCRIPTOR_NAME']='StringNumberPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'uint32','id':0x2}}};constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new StringNumberPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new StringNumberPacketDataMessage(data,data1);}}class NumberNumberPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_NUMBER);static ['DESCRIPTOR_NAME']='NumberNumberPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'uint32','id':0x2}}};constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new NumberNumberPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new NumberNumberPacketDataMessage(data,data1);}}class NumberStringPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_STRING);static ['DESCRIPTOR_NAME']='NumberStringPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'string','id':0x2}}};constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new NumberStringPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new NumberStringPacketDataMessage(data,data1);}}const PACKET_DATA_MESSAGES=[NumberBytesPacketDataMessage,StringBytesPacketDataMessage,BytesBytesPacketDataMessage,StringObjectPacketDataMessage,NumberObjectPacketDataMessage,ObjectObjectPacketDataMessage,ObjectBufferPacketDataMessage,StringStringPacketDataMessage,StringNumberPacketDataMessage,NumberNumberPacketDataMessage,NumberStringPacketDataMessage]['reduce']((result,PacketDataMessageConstructor)=>(result[PacketDataMessageConstructor['TYPE']]=PacketDataMessageConstructor,result),{});class PacketMessage extends Message{['type'];['data'];['id'];['nsp'];['options'];static ['TYPE']=0xa;static ['DESCRIPTOR_NAME']='PacketMessage';static ['DESCRIPTOR']={'fields':{'type':{'type':'uint32','id':0x1},'id':{'type':'uint32','id':0x2},'nsp':{'type':'string','id':0x3},'data':{'type':'bytes','id':0x4},'options':{'type':'bytes','id':0x5}}};constructor(type,data,_0x315e34,_0x331d81='/',options=new PacketOptionsMessage()){super(),this['type']=type,this['data']=data,this['id']=_0x315e34,this['nsp']=_0x331d81,this['options']=options;}get['packetData'](){return void 0x0===this['data']['data']&&void 0x0===this['data']['data1']?[]:this['data']['data']&&void 0x0===this['data']['data1']?[this['data']['data']]:[this['data']['data'],this['data']['data1']];}['toJSON'](){const options=MessagesCompressor['encode'](this['options']),data=MessagesCompressor['encode'](this['data']);return{'type':this['type']+0xa*this['data']['constructor']['TYPE'],'id':this['id'],'nsp':'/'===this['nsp']?void 0x0:this['nsp'],'data':data,'options':options};}static['fromJSON'](data){const frameDataType=Math['floor'](data['type']/0xa);return new PacketMessage(data['type']-0xa*frameDataType,MessagesCompressor['decode'](data['data'],PACKET_DATA_MESSAGES[frameDataType]),data['id'],data['nsp'],data['options']?MessagesCompressor['decode'](data['options'],PacketOptionsMessage):new PacketOptionsMessage());}static['create'](packet,options={}){const frameDataType=ParserUtils['getPacketType'](ParserUtils['getType'](packet['data'][0x0]),ParserUtils['getType'](packet['data'][0x1]??packet['data'][0x0]));return new PacketMessage(packet['type'],PACKET_DATA_MESSAGES[frameDataType]['create'](packet['data'][0x0],packet['data'][0x1]),packet['id'],packet['nsp'],new PacketOptionsMessage(options['flags'],options['rooms'],options['except']));}}class PacketParser{['encode'](type,data,_0x4a3538,_0x557567='/',options={}){if(data['length']>0x2)throw new Error('PacketParser\x20supports\x20only\x202\x20elements\x20in\x20data');const packet={'type':type,'data':data,'id':_0x4a3538,'nsp':_0x557567};return MessagesCompressor['encode'](PacketMessage['create'](packet,options));}['decode'](_0x59d303){const packetMessage=MessagesCompressor['decode'](_0x59d303,PacketMessage);return{'packet':{'id':packetMessage['id'],'type':packetMessage['type'],'data':packetMessage['packetData'],'nsp':packetMessage['nsp']},'options':{'flags':packetMessage['options']['flags'],'rooms':packetMessage['options']['rooms'],'except':packetMessage['options']['except']}};}}const ENCODED_TYPES=[PacketType['EVENT'],PacketType['ACK'],PacketType['BINARY_ACK'],PacketType['BINARY_EVENT']];class Encoder extends Encoder$1{['_packetParser'];constructor(_packetParser=new PacketParser()){super(),this['_packetParser']=_packetParser;}['encode'](packet){if(ENCODED_TYPES['includes'](packet['type']))try{return[this['_packetParser']['encode'](packet['type'],packet['data'],packet['id'],packet['nsp'])];}catch(_0x447e74){console['error']('Can\x20not\x20properly\x20serialize\x20or\x20deserialize\x20messages.\x20Check\x20the\x20original\x20error.',{'originalError':{'message':_0x447e74['message']}});}return super['encode'](packet);}}class Decoder extends Decoder$1{['_packetParser'];constructor(_packetParser=new PacketParser()){super(),this['_packetParser']=_packetParser;}['add'](_0x33ed42){if(!ParserUtils['isBuffer'](_0x33ed42))return super['add'](_0x33ed42);let packet;try{packet=this['_packetParser']['decode'](_0x33ed42)['packet'];}catch(_0x2d2a66){return super['add'](_0x33ed42);}super['emitReserved']('decoded',packet);}}class WebSocketRequest{['_context'];['_deferredPromise'];['timeout'];constructor(_context,timeoutMs){this['_context']=_context,this['_deferredPromise']=(function(){let _0x148aaf,reject;const _0x3d6134=new Promise((_0x2ec2ca,promiseReject)=>{_0x148aaf=_0x2ec2ca,reject=promiseReject;});return{'resolve':_0x148aaf,'reject':reject,'promise':_0x3d6134};}()),this['timeout']=setTimeout(()=>this['error'](new CKEditorCloudServicesError('Request\x20timeout.',this['_context'])),timeoutMs);}get['promise'](){return this['_deferredPromise']['promise'];}['response'](_0x9ad775){this['_deferredPromise']['resolve'](_0x9ad775);}['error'](_0x181d22){this['_deferredPromise']['reject'](_0x181d22);}}class WebSocketGatewayRequestsManager{['_context'];['_requests'];constructor(_context){this['_context']=_context,this['_requests']=new Set();}async['send'](sendFunction,timeoutMs=0xafc8){const _0x4adb11=this['_createRequest'](timeoutMs);try{return sendFunction(_0x4adb11),await _0x4adb11['promise'];}finally{this['_finishRequest'](_0x4adb11);}}['errorAll'](_0x1df3f5){for(const _0x56188b of this['_requests'])_0x56188b['error'](_0x1df3f5);}['waitForAllRequests'](time=0xafc8){return this['_waitForRequests'](time);}['_createRequest'](timeoutMs){const _0x3a7e80=new WebSocketRequest(this['_context'],timeoutMs);return this['_requests']['add'](_0x3a7e80),_0x3a7e80;}['_finishRequest'](_0x260fe4){this['_requests']['delete'](_0x260fe4),clearTimeout(_0x260fe4['timeout']);}async['_waitForRequests'](time=0x1388,attempt=0x0){return!this['_requests']['size']||attempt>=time/0x1f4?Promise['resolve']():(await new Promise(_0xe2ee58=>{setTimeout(_0xe2ee58,0x1f4);}),this['_waitForRequests'](time,attempt++));}}const WEB_SOCKET_GATEWAY_STATES={'DISCONNECTED':'disconnected','CONNECTING':'connecting','CONNECTED':'connected'};class WebSocketGateway extends ObservableMixin(){['_token'];['_options'];['_connectionProvider'];['_userFactory'];['_requestsManager'];['_url'];['_socket'];['_socketAuth'];['_channels'];['_connectionAttempt'];['me'];['socketId'];['state'];static ['STATE_DISCONNECTED']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED'];static ['STATE_CONNECTING']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'];static ['STATE_CONNECTED']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'];static ['_CHANGE_STATE_EVENT_PRIORITY']=priorities['get']('highest')+0xf423f;constructor(_0x41ae3f,_token,_options={},_connectionProvider=lookup,_userFactory=User['get']){if(super(),this['_token']=_token,this['_options']=_options,this['_connectionProvider']=_connectionProvider,this['_userFactory']=_userFactory,this['_requestsManager']=new WebSocketGatewayRequestsManager(this),this['_channels']=new Map(),this['_connectionAttempt']=0x0,!_0x41ae3f)throw new TypeError('Api\x20address\x20must\x20be\x20provided.');if(!this['_token'])throw new TypeError('Token\x20must\x20be\x20provided.');this['_options']['requestTimeout']||(this['_options']['requestTimeout']=0x4e20),this['_url']=_0x1e9410(_0x41ae3f['replace'](/^(?!(?:\w+:)?\/\/)/,'https://')),this['set']('state',WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']),this['set']('socketId',void 0x0),this['set']('me',void 0x0),this['on']('change:state',async(event,_0x46d648,_0x52a125)=>{if(this['_debugEvent']('ws-gw:change:state',_0x52a125),_0x52a125!==WebSocketGateway['STATE_CONNECTED']){if(_0x52a125===WebSocketGateway['STATE_DISCONNECTED'])return this['_requestsManager']['errorAll'](new CKEditorCloudServicesError('Not\x20connected.',this));}else try{this['me']=await this['_userFactory']['call'](User,this,this['_socketAuth']?.['userId']);}catch(_0x93f928){}},{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['on']('error',(event,_0x561760)=>{this['_options']['onError']?this['_options']['onError'](_0x561760):console['error'](_0x561760);});}get['sessionId'](){return this['socketId'];}['waitForAllRequests'](time){return this['_requestsManager']['waitForAllRequests'](time);}['disconnect'](){this['state']!==WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&(this['_socket']?.['disconnect'](),this['_socket']=void 0x0,this['state']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']);}async['reconnect'](){this['_socket']||this['state']!==WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']||(await this['_token']['refreshToken'](),await this['_connect']());}static async['connect'](token,_0x28425c='local.cs.dev:443/ws-v2',options={},_0x5bc6a4=lookup,userFactory=User['get']){const webSocketGateway=new WebSocketGateway(_0x28425c,token,options,_0x5bc6a4,userFactory);return await webSocketGateway['_connect'](),webSocketGateway;}['_sendRequest'](_0x5ce55f,method,_0x5775ea){if(!_0x5ce55f)throw new CKEditorCloudServicesError('`serviceName`\x20must\x20be\x20provided.',this);if(this['state']!==WebSocketGateway['STATE_CONNECTED'])throw new CKEditorCloudServicesError('Not\x20connected.',this);if(!this['_socketAuth']||!this['_socketAuth']['isAuthenticated'])throw new CKEditorCloudServicesError('Not\x20authenticated.',this);const _0x342a26=new ArrayBuffer(_0x5775ea['length']+0x2),_0x1d4b3a=new Uint8Array(_0x342a26);return _0x1d4b3a[0x0]=_0x5ce55f,_0x1d4b3a[0x1]=parseInt(method),_0x1d4b3a['set'](_0x5775ea,0x2),this['_emit'](0x1,_0x1d4b3a);}['_getChannel'](_0x70c370,_0x1dc64d){const _0x22dba2=''+_0x70c370+_0x1dc64d;return!this['_channels']['has'](_0x22dba2)&&this['_socket']&&this['_channels']['set'](_0x22dba2,new Channel(_0x22dba2,this,this['_socket'])),this['_channels']['get'](_0x22dba2);}['_connect'](){return new Promise((_0x4c5b8d,reject)=>{const socket=this['_setupSocket']();!this['socketId']&&socket['io']['on']('reconnect_error',()=>{this['_debugEvent']('reconnect_error'),this['_reconnectionAttemptError'](reject);}),socket['once']('connect',async()=>{this['_debugEvent']('once-connect');try{await this['_onConnect'](),_0x4c5b8d();}catch(_0x2abcf9){reject(_0x2abcf9);}}),socket['connect']();});}['_getPortByProtocol'](protocol){return['http:','ws:']['includes'](protocol)?0x50:0x1bb;}['_setupSocket'](){if(this['_socket'])return this['_socket'];const port=this['_url']['port']||this['_getPortByProtocol'](this['_url']['protocol']),_0x123d9a=(this['_url']['protocol']||'https:')+'//'+this['_url']['hostname']+':'+port,pathPrefix=this['_url']['pathname']['match'](/^\/.*\/ws/)?this['_url']['pathname']['split']('/ws')[0x0]:'',socket=this['_connectionProvider'](_0x123d9a,{'parser':{'Encoder':Encoder,'Decoder':Decoder},'path':pathPrefix+'/ws-v2/ws','transports':['websocket'],'timeout':void 0x0!==this['_options']['timeout']?this['_options']['timeout']:0x1388,'reconnection':void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect'],'reconnectionDelay':0x3e8,'reconnectionDelayMax':0x1388,'rejectUnauthorized':void 0x0===this['_options']['rejectUnauthorized']||this['_options']['rejectUnauthorized'],'query':{'version':'52.6.1'},'agent':this['_options']['agent']??!0x1,'closeOnBeforeunload':!0x1});return this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],socket['on']('connect',()=>{this['_debugEvent']('connect'),this['socketId']=socket['id'];}),socket['on']('connect_error',_0xa71d41=>{this['_debugEvent']('connect_error',_0xa71d41);}),socket['on']('disconnect',()=>{this['_debugEvent']('disconnect'),this['_onDisconnect']();}),socket['io']['on']('reconnect',async()=>{this['_debugEvent']('reconnect'),await this['_onReconnect']();}),socket['io']['on']('reconnect_attempt',attempt=>{this['_debugEvent']('reconnect_attempt',attempt),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],this['_connectionAttempt']=attempt;}),socket['on']('unauthorized',data=>{this['_debugEvent']('unauthorized'),this['_onUnauthorized'](data);}),socket['on']('authenticationRequest',async data=>{this['_debugEvent']('authenticationRequest',data['attempt']),await this['_onReconnect']();}),this['_socket']=socket,socket;}['_emit'](eventName,_0x55307e){const socket=this['_socket'];return this['_requestsManager']['send'](_0xadd97f=>{socket['emit'](eventName,_0x55307e,(_0x4166d0,_0x41c93e)=>{if(_0x4166d0)return _0xadd97f['error'](CKEditorCloudServicesServerError['fromPublicError'](_0x4166d0));_0xadd97f['response'](_0x41c93e);});},this['_options']['requestTimeout']);}['_addAuthData'](environmentId,_0x50611d){this['_socketAuth']={'environmentId':environmentId,'userId':_0x50611d,'isAuthenticated':!0x0};}['_removeAuthData'](){this['_socketAuth']=void 0x0;}async['_onConnect'](){await this['_authenticate'](this['_token']['value']),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'];const _0x3e6019=async(event,_0x3089b7,_0x3291af)=>{this['_debugEvent']('token:value:change');try{await this['_authenticate'](_0x3291af);}catch(_0x6f6242){}};this['_token']['on']('change:value',_0x3e6019),this['_socket']['io']['off']('reconnect_error'),this['on']('disconnect',()=>{this['_token']['off']('change:value',_0x3e6019);});}async['_onReconnect'](){await this['_token']['refreshToken'](),await this['_onConnect']();}['_onDisconnect'](){this['state']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED'],this['_connectionAttempt']=0x0,this['fire']('disconnect');for(const _0x84ed7b of this['_channels']['values']())_0x84ed7b['remove']();this['_channels']['clear'](),void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect']||(this['_socket']=void 0x0);}['_debugEvent'](eventName,eventData){if(!this['_isDebugModeEnabled']())return;const eventDataString=void 0x0!==eventData?',\x20data:\x20'+eventData:'';console['info'](new Date()['toLocaleString']()+'\x20'+eventName+eventDataString);}['_reconnectionAttemptError'](_0x4b23b6){this['_connectionAttempt']>=0x2&&(this['disconnect'](),_0x4b23b6(CKEditorCloudServicesError['fromPublicError']({'message':'The\x20number\x20of\x20initial\x20connection\x20attempts\x20exceeded.','explanation':'Three\x20initial\x20connection\x20attempts\x20failed.\x20It\x20can\x20be\x20caused\x20by\x20a\x20slow,\x20unstable,\x20missing\x20or\x20blocked\x20Internet\x20connection.','action':'Please\x20verify\x20the\x20stability\x20of\x20your\x20Internet\x20connection\x20and\x20ensure\x20that\x20no\x20antivirus\x20or\x20firewall\x20software\x20blocks\x20the\x20Web\x20Socket\x20protocol\x20connections.'})));}['_onUnauthorized']({error:_0x20af14}){this['_removeAuthData'](),this['fire']('error',CKEditorCloudServicesServerError['fromPublicError'](_0x20af14));}async['_authenticate'](token){try{this['_debugEvent']('authenticate:start');const _0x5bd95c=await this['_emit'](0x2,{'token':token});this['_debugEvent']('authenticate:success','envId:\x20'+_0x5bd95c['environmentId']+',\x20userId:\x20'+_0x5bd95c['userId']),this['_addAuthData'](_0x5bd95c['environmentId'],_0x5bd95c['userId']);}catch(_0x2a5bad){throw this['_debugEvent']('authenticate:error',_0x2a5bad['message']),this['_removeAuthData'](),_0x2a5bad;}}['_isDebugModeEnabled'](){if(!global['window']['localStorage'])return!0x1;return'true'===(global['window']['localStorage']['getItem']('csClientDebugMode')??'false')['toLowerCase']();}}class IsEditorBundleUploadedMessage extends Message{['bundleVersion'];static ['TYPE']='131';static ['READABLE_TYPE_NAME']='isEditorBundleUploaded';static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedMessage';static ['DESCRIPTOR']={'fields':{'bundleVersion':{'type':'string','id':0x1}}};constructor(_0x3ee165){super(),this['bundleVersion']=_0x3ee165;}['toJSON'](){return{'bundleVersion':this['bundleVersion']};}static['fromJSON'](object){return new IsEditorBundleUploadedMessage(object['bundleVersion']);}}class IsEditorBundleUploadedResponse extends Message{['isUploaded'];static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedResponse';static ['DESCRIPTOR']={'fields':{'isUploaded':{'type':'bool','id':0x1}}};constructor(_0x4c719e){super(),this['isUploaded']=_0x4c719e;}['toJSON'](){return{'isUploaded':this['isUploaded']};}static['fromJSON'](_0xedcb32){return new IsEditorBundleUploadedResponse(_0xedcb32['isUploaded']);}}class EditorService extends EmitterMixin(){static ['_SERVICE']=0xd;static async['isBundleUploaded'](wsGateway,_0x265aa5){const _0xec2a46=new IsEditorBundleUploadedMessage(_0x265aa5);if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);const _0x19697c=await wsGateway['_sendRequest'](EditorService['_SERVICE'],IsEditorBundleUploadedMessage['TYPE'],MessagesCompressor['encode'](_0xec2a46));return MessagesCompressor['decode'](_0x19697c,IsEditorBundleUploadedResponse)['isUploaded'];}}class RevisionHistoryGetRevisionMessage extends Message{['documentId'];['revisionId'];static ['TYPE']='123';static ['READABLE_TYPE_NAME']='getRevision';static ['DESCRIPTOR_NAME']='RevisionHistoryGetRevisionMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'revisionId':{'type':'string','id':0x2}}};constructor(documentId,_0x325d8f){super(),this['documentId']=documentId,this['revisionId']=_0x325d8f;}['toJSON'](){return{'documentId':this['documentId'],'revisionId':this['revisionId']};}static['fromJSON'](object){return new RevisionHistoryGetRevisionMessage(object['documentId'],object['revisionId']);}}class RevisionDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='RevisionDescriptor';static ['DESCRIPTOR']={'fields':{'revisionId':{'type':'string','id':0x1},'name':{'type':'string','id':0x2},'creatorId':{'type':'string','id':0x3},'authorsIds':{'type':'string','id':0x4},'diffData':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'toVersion':{'type':'uint32','id':0x8},'fromVersion':{'type':'uint32','id':0x9},'isEmptyCurrent':{'type':'bool','id':0xa}}};static['create'](object){return{'revisionId':object['id'],'name':object['name'],'creatorId':object['creatorId'],'createdAt':object['createdAt'],'fromVersion':object['fromVersion'],'toVersion':object['toVersion'],'isEmptyCurrent':object['isEmptyCurrent'],'diffData':object['diffData']?JSON['stringify'](object['diffData']):void 0x0,'attributes':object['attributes'],'authorsIds':object['authorsIds']};}static['toJSON'](_0x39ec84){return{'revisionId':_0x39ec84['revisionId'],'name':_0x39ec84['name'],'creatorId':_0x39ec84['creatorId'],'authorsIds':_0x39ec84['authorsIds']?JSON['stringify'](_0x39ec84['authorsIds']):void 0x0,'diffData':_0x39ec84['diffData'],'createdAt':_0x39ec84['createdAt']?.['toISOString'](),'attributes':_0x39ec84['attributes']?JSON['stringify'](_0x39ec84['attributes']):void 0x0,'toVersion':_0x39ec84['toVersion'],'fromVersion':_0x39ec84['fromVersion'],'isEmptyCurrent':_0x39ec84['isEmptyCurrent']};}static['fromJSON'](_0x25b592){return{'revisionId':(_0x25b592={..._0x25b592})['revisionId'],'name':_0x25b592['name'],'creatorId':_0x25b592['creatorId'],'authorsIds':_0x25b592['authorsIds']?JSON['parse'](_0x25b592['authorsIds']):void 0x0,'diffData':_0x25b592['diffData'],'createdAt':_0x25b592['createdAt']?new Date(_0x25b592['createdAt']):void 0x0,'attributes':_0x25b592['attributes']?JSON['parse'](_0x25b592['attributes']):void 0x0,'toVersion':_0x25b592['toVersion'],'fromVersion':_0x25b592['fromVersion'],'isEmptyCurrent':_0x25b592['isEmptyCurrent']};}static['toObject'](_0x2c2552){return function(revisionObject){for(const [_0x25d7e6,_0x2999bb]of Object['entries'](revisionObject))void 0x0===_0x2999bb&&delete revisionObject[_0x25d7e6];return revisionObject;}({'id':_0x2c2552['revisionId'],'name':_0x2c2552['name'],'creatorId':_0x2c2552['creatorId'],'createdAt':_0x2c2552['createdAt'],'fromVersion':_0x2c2552['fromVersion'],'toVersion':_0x2c2552['toVersion'],'isEmptyCurrent':_0x2c2552['isEmptyCurrent'],'diffData':_0x2c2552['diffData']?JSON['parse'](_0x2c2552['diffData']):void 0x0,'attributes':_0x2c2552['attributes'],'authorsIds':_0x2c2552['authorsIds']});}}class RevisionHistoryGetRevisionResponse extends Message{['revisionId'];['name'];['creatorId'];['authorsIds'];['createdAt'];['diffData'];['attributes'];['fromVersion'];['toVersion'];['isEmptyCurrent'];static ['DESCRIPTOR_NAME']='RevisionHistoryGetRevisionResponse';static ['DESCRIPTOR']=RevisionDescriptor['DESCRIPTOR'];constructor(_0x42eb3b,_0x4077c2,creatorId,authorsIds,createdAt,diffData,attributes,_0x9a69bb,toVersion,isEmptyCurrent){super(),this['revisionId']=_0x42eb3b,this['name']=_0x4077c2,this['creatorId']=creatorId,this['authorsIds']=authorsIds,this['createdAt']=createdAt,this['diffData']=diffData,this['attributes']=attributes,this['fromVersion']=_0x9a69bb,this['toVersion']=toVersion,this['isEmptyCurrent']=isEmptyCurrent;}['toJSON'](){return RevisionDescriptor['toJSON'](this);}['toObject'](){return RevisionDescriptor['toObject'](this);}static['create'](_0x227660){return new RevisionHistoryGetRevisionResponse(_0x227660['revisionId'],_0x227660['name'],_0x227660['creatorId'],_0x227660['authorsIds'],_0x227660['createdAt'],_0x227660['diffData'],_0x227660['attributes'],_0x227660['fromVersion'],_0x227660['toVersion'],_0x227660['isEmptyCurrent']);}static['fromJSON'](_0x16eab8){return new RevisionHistoryGetRevisionResponse(_0x16eab8['revisionId'],_0x16eab8['name'],_0x16eab8['creatorId'],_0x16eab8['authorsIds']?JSON['parse'](_0x16eab8['authorsIds']):void 0x0,_0x16eab8['createdAt']?new Date(_0x16eab8['createdAt']):void 0x0,_0x16eab8['diffData'],_0x16eab8['attributes']?JSON['parse'](_0x16eab8['attributes']):void 0x0,_0x16eab8['fromVersion'],_0x16eab8['toVersion'],_0x16eab8['isEmptyCurrent']);}}class RevisionHistoryUpdateRevisionsMessage extends Message{['documentId'];['requestId'];['revisions'];static ['TYPE']='124';static ['READABLE_TYPE_NAME']='updateRevisions';static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2},'revisions':{'type':'RevisionDescriptor','id':0x3,'rule':'repeated'}}};constructor(documentId,requestId,_0x14b5ea){super(),this['documentId']=documentId,this['requestId']=requestId,this['revisions']=_0x14b5ea;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toJSON'])};}['toObject'](){return{'documentId':this['documentId'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toObject'])};}static['create'](_0x4bbb55){return new RevisionHistoryUpdateRevisionsMessage(_0x4bbb55['documentId'],_0x4bbb55['requestId'],_0x4bbb55['revisions']['map'](RevisionDescriptor['create']));}static['fromJSON'](_0x1adb0d){return new RevisionHistoryUpdateRevisionsMessage(_0x1adb0d['documentId'],_0x1adb0d['requestId'],_0x1adb0d['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryUpdateRevisionsResponse extends Message{['requestId'];static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsResponse';static ['DESCRIPTOR']={'fields':{'requestId':{'type':'uint32','id':0x1}}};constructor(requestId){super(),this['requestId']=requestId;}['toJSON'](){return{'requestId':this['requestId']};}static['fromJSON'](_0x27cecb){return new RevisionHistoryUpdateRevisionsResponse(_0x27cecb['requestId']);}}class RevisionHistoryConnectMessage extends Message{['documentId'];static ['TYPE']='121';static ['READABLE_TYPE_NAME']='connectToRevisionHistory';static ['DESCRIPTOR_NAME']='RevisionHistoryConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new RevisionHistoryConnectMessage(object['documentId']);}}class RevisionHistoryConnectResponse extends Message{['channel'];['requestId'];['revisions'];static ['DESCRIPTOR_NAME']='RevisionHistoryConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2},'revisions':{'type':'RevisionDescriptor','id':0x3,'rule':'repeated'}}};constructor(_0x55a684,requestId,_0x1db528){super(),this['channel']=_0x55a684,this['requestId']=requestId,this['revisions']=_0x1db528;}['toJSON'](){return{'channel':this['channel'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toJSON'])};}['toObject'](){return{'channel':this['channel'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toObject'])};}static['fromJSON'](_0x4461b1){return new RevisionHistoryConnectResponse(_0x4461b1['channel'],_0x4461b1['requestId'],_0x4461b1['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryReconnectMessage extends Message{['documentId'];['requestId'];static ['TYPE']='122';static ['READABLE_TYPE_NAME']='reconnectToRevisionHistory';static ['DESCRIPTOR_NAME']='RevisionHistoryReconnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2}}};constructor(documentId,requestId){super(),this['documentId']=documentId,this['requestId']=requestId;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId']};}static['fromJSON'](object){return new RevisionHistoryReconnectMessage(object['documentId'],object['requestId']);}}class ServiceNotConnectedError extends CKEditorCloudServicesError{constructor(_0x4407ab,context){super(_0x4407ab+'\x20Service\x20is\x20not\x20connected.',context);}}class RevisionHistoryService extends EmitterMixin(){['_documentId'];['_isConnected'];['_wsGateway'];['_channel'];static ['_SERVICE']=0xc;constructor(_documentId){super(),this['_documentId']=_documentId,this['_isConnected']=!0x1;}get['isConnected'](){return this['_isConnected'];}['connect'](wsGateway){return this['_isConnected']?Promise['resolve']():this['_connect'](wsGateway,new RevisionHistoryConnectMessage(this['_documentId']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['fire']('disconnected'),this['stopListening']());}['reconnect'](wsGateway,lastRequestId){if(this['isConnected'])throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',wsGateway);return this['_connect'](wsGateway,new RevisionHistoryReconnectMessage(this['_documentId'],lastRequestId));}async['updateRevisions'](_0x5055a5,lastRequestId){const _0x570834=RevisionHistoryUpdateRevisionsMessage['create']({'documentId':this['_documentId'],'requestId':lastRequestId,'revisions':_0x5055a5}),_0x42eb74=await this['_sendRequest'](RevisionHistoryUpdateRevisionsMessage['TYPE'],_0x570834),{requestId:requestId}=MessagesCompressor['decode'](_0x42eb74,RevisionHistoryUpdateRevisionsResponse);return requestId;}async['getRevision'](_0x396c93){const _0x8945a5=new RevisionHistoryGetRevisionMessage(this['_documentId'],_0x396c93),_0x3efdcc=await this['_sendRequest'](RevisionHistoryGetRevisionMessage['TYPE'],_0x8945a5);return MessagesCompressor['decode'](_0x3efdcc,RevisionHistoryGetRevisionResponse)['toObject']();}async['_connect'](wsGateway,_0x5432bc){if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x8d0b52=await wsGateway['_sendRequest'](0xc,_0x5432bc['constructor']['TYPE'],MessagesCompressor['encode'](_0x5432bc)),{channel:_0x59b8e9,requestId:requestId,revisions:_0x488df9}=MessagesCompressor['decode'](_0x8d0b52,RevisionHistoryConnectResponse)['toObject']();return this['listenTo'](wsGateway,'change:state',(_0x1b1509,_0x523c32,state)=>this['_onWsGatewayStateChange'](state),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,_0x59b8e9),this['_isConnected']=!0x0,this['fire']('connected'),{'revisions':_0x488df9,'requestId':requestId};}['_connectToChannel'](wsGateway,_0x113491){this['_channel']=wsGateway['_getChannel'](RevisionHistoryService['_SERVICE'],_0x113491),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](RevisionHistoryUpdateRevisionsMessage['TYPE']),(event,data)=>{const {documentId:documentId,requestId:requestId,revisions:_0x52dbcc}=MessagesCompressor['decode'](data,RevisionHistoryUpdateRevisionsMessage)['toObject']();this['fire']('revisionsUpdated',{'documentId':documentId,'requestId':requestId,'revisionsData':_0x52dbcc});});}['_onWsGatewayStateChange'](_0x25dce5){_0x25dce5===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](method,_0x18359c){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Revision\x20History',this);return this['_wsGateway']['_sendRequest'](0xc,method,MessagesCompressor['encode'](_0x18359c));}}class AddSuggestionMessage extends Message{['id'];['documentId'];['type'];['data'];['originalSuggestionId'];['attributes'];static ['TYPE']='101';static ['READABLE_TYPE_NAME']='addSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesAddSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'data':{'type':'string','id':0x4},'originalSuggestionId':{'type':'string','id':0x5},'attributes':{'type':'string','id':0x6}}};constructor(_0x285a2f,documentId,type,data={},originalSuggestionId=null,attributes=null){super(),this['id']=_0x285a2f,this['documentId']=documentId,this['type']=type,this['data']=data,this['originalSuggestionId']=originalSuggestionId,this['attributes']=attributes;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'type':this['type'],'data':JSON['stringify'](this['data']),'originalSuggestionId':this['originalSuggestionId'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](object){return new AddSuggestionMessage(object['id'],object['documentId'],object['type'],JSON['parse'](object['data']),object['originalSuggestionId']??null,object['attributes']?JSON['parse'](object['attributes']):null);}}class AddSuggestionResponse extends Message{['id'];['authorId'];['type'];['hasComments'];['state'];['data'];['attributes'];['createdAt'];static ['DESCRIPTOR_NAME']='TrackChangesAddSuggestionResponse';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'authorId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'data':{'type':'string','id':0x5},'hasComments':{'type':'bool','id':0x6},'state':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8}}};constructor(_0x5cea20,authorId,type,createdAt,hasComments,state,data={},attributes=null){super(),this['id']=_0x5cea20,this['authorId']=authorId,this['type']=type,this['hasComments']=hasComments,this['state']=state,this['data']=data,this['attributes']=attributes,this['createdAt']=createdAt?new Date(createdAt):void 0x0;}['toJSON'](){return{'id':this['id'],'authorId':this['authorId'],'type':this['type'],'createdAt':this['createdAt']?.['toISOString'](),'data':JSON['stringify'](this['data']),'hasComments':this['hasComments'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](data){return new AddSuggestionResponse(data['id'],data['authorId'],data['type'],data['createdAt'],data['hasComments'],data['state'],JSON['parse'](data['data']),data['attributes']?JSON['parse'](data['attributes']):null);}}class GetSuggestionMessage extends Message{['id'];['documentId'];static ['TYPE']='103';static ['READABLE_TYPE_NAME']='getSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesGetSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x5bfb22,documentId){super(),this['id']=_0x5bfb22,this['documentId']=documentId;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId']};}static['fromJSON'](object){return new GetSuggestionMessage(object['id'],object['documentId']);}}class GetSuggestionResponse extends Message{['id'];['authorId'];['type'];['hasComments'];['state'];['data'];['attributes'];['createdAt'];static ['DESCRIPTOR_NAME']='TrackChangesGetSuggestionResponse';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'authorId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'data':{'type':'string','id':0x5},'hasComments':{'type':'bool','id':0x6},'state':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8}}};constructor(_0x31274e,authorId,type,createdAt,hasComments,state,data={},attributes=null){super(),this['id']=_0x31274e,this['authorId']=authorId,this['type']=type,this['hasComments']=hasComments,this['state']=state,this['data']=data,this['attributes']=attributes,this['createdAt']=new Date(createdAt);}['toJSON'](){return{'id':this['id'],'authorId':this['authorId'],'type':this['type'],'createdAt':this['createdAt']['toISOString'](),'data':JSON['stringify'](this['data']),'hasComments':this['hasComments'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](data){return new GetSuggestionResponse(data['id'],data['authorId'],data['type'],data['createdAt'],data['hasComments'],data['state'],JSON['parse'](data['data']),data['attributes']?JSON['parse'](data['attributes']):null);}}class GetAllSuggestionsMessage extends Message{['documentId'];static ['TYPE']='102';static ['READABLE_TYPE_NAME']='getAllSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesGetAllSuggestionMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new GetAllSuggestionsMessage(object['documentId']);}}class SuggestionDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='SuggestionDescriptor';static ['DESCRIPTOR']={'fields':{'id':{'id':0x1,'type':'string'},'authorId':{'id':0x2,'type':'string'},'type':{'id':0x3,'type':'string'},'createdAt':{'id':0x4,'type':'string'},'data':{'id':0x5,'type':'string'},'hasComments':{'id':0x6,'type':'bool'},'state':{'id':0x7,'type':'string'},'attributes':{'id':0x8,'type':'string'}}};static['toJSON'](suggestion){return{...suggestion,'data':suggestion['data']?JSON['stringify'](suggestion['data']):suggestion['data'],'attributes':suggestion['attributes']?JSON['stringify'](suggestion['attributes']):suggestion['attributes'],'createdAt':suggestion['createdAt']?.['toISOString']()};}static['fromJSON'](suggestion){return{...suggestion,'data':suggestion['data']?JSON['parse'](suggestion['data']):suggestion['data'],'attributes':suggestion['attributes']?JSON['parse'](suggestion['attributes']):suggestion['attributes'],'createdAt':suggestion['createdAt']?new Date(suggestion['createdAt']):void 0x0};}}class GetAllSuggestionResponse extends Message{['_suggestions'];['_suggestionsV2'];['suggestions'];static ['DESCRIPTOR_NAME']='TrackChangesGetAllSuggestionsResponse';static ['DESCRIPTOR']={'fields':{'suggestions':{'type':'string','rule':'repeated','id':0x1},'suggestionsV2':{'type':'SuggestionDescriptor','rule':'repeated','id':0x2}}};constructor(_suggestions,_suggestionsV2){super(),this['_suggestions']=_suggestions,this['_suggestionsV2']=_suggestionsV2,this['suggestions']=_suggestionsV2?.['length']?_suggestionsV2:_suggestions;}['toJSON'](){return{'suggestions':this['_suggestions']?.['map'](suggestion=>JSON['stringify'](suggestion)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](data){return new GetAllSuggestionResponse(data['suggestions']?.['map'](_suggestionFromString),data['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}}function _suggestionFromString(suggestion){const parsedSuggestion=JSON['parse'](suggestion);return parsedSuggestion['createdAt']=parsedSuggestion['createdAt']?new Date(parsedSuggestion['createdAt']):void 0x0,parsedSuggestion;}class UpdateSuggestionMessage extends Message{['id'];['documentId'];['hasComments'];['isHasCommentsModified'];['state'];['attributes'];static ['TYPE']='104';static ['READABLE_TYPE_NAME']='updateSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesUpdateSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'hasComments':{'type':'bool','id':0x3},'isHasCommentsModified':{'type':'bool','id':0x4},'state':{'type':'string','id':0x5},'attributes':{'type':'string','id':0x6}}};constructor(_0x1b2ea7,documentId,hasComments,isHasCommentsModified,state,attributes=null){super(),this['id']=_0x1b2ea7,this['documentId']=documentId,this['hasComments']=hasComments,this['isHasCommentsModified']=isHasCommentsModified,this['state']=state,this['attributes']=attributes;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'hasComments':this['hasComments'],'isHasCommentsModified':this['isHasCommentsModified'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](object){return new UpdateSuggestionMessage(object['id'],object['documentId'],object['hasComments'],object['isHasCommentsModified'],object['state'],object['attributes']?JSON['parse'](object['attributes']):null);}}let ConnectMessage$1=class ConnectMessage extends Message{['documentId'];static ['TYPE']='105';static ['READABLE_TYPE_NAME']='connectToSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new ConnectMessage(object['documentId']);}},ConnectResponse$1=class ConnectResponse extends Message{['channel'];['_suggestions'];['_suggestionsV2'];['suggestions'];static ['DESCRIPTOR_NAME']='TrackChangesConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'suggestions':{'type':'string','rule':'repeated','id':0x2},'suggestionsV2':{'type':'SuggestionDescriptor','rule':'repeated','id':0x3}}};constructor(_0x29c4aa,_suggestions,_suggestionsV2){super(),this['channel']=_0x29c4aa,this['_suggestions']=_suggestions,this['_suggestionsV2']=_suggestionsV2,this['suggestions']=_suggestionsV2?.['length']?_suggestionsV2:_suggestions;}['toJSON'](){return{'channel':this['channel'],'suggestions':this['_suggestions']?.['map'](suggestion=>JSON['stringify'](suggestion)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](object){return new ConnectResponse(object['channel'],object['suggestions']?.['map'](suggestion=>JSON['parse'](suggestion)),object['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}};class BatchUpdateSuggestionsStateMessage extends Message{['ids'];['documentId'];['state'];static ['TYPE']='106';static ['READABLE_TYPE_NAME']='batchUpdateSuggestionsState';static ['DESCRIPTOR_NAME']='TrackChangesBatchUpdateSuggestionsStateMessage';static ['DESCRIPTOR']={'fields':{'ids':{'type':'string','rule':'repeated','id':0x1},'documentId':{'type':'string','id':0x2},'state':{'type':'string','id':0x3}}};constructor(_0xc3fbe3,documentId,state){super(),this['ids']=_0xc3fbe3,this['documentId']=documentId,this['state']=state;}['toJSON'](){return{'ids':this['ids'],'documentId':this['documentId'],'state':this['state']};}static['fromJSON'](object){return new BatchUpdateSuggestionsStateMessage(object['ids'],object['documentId'],object['state']);}}class TrackChangesService extends EmitterMixin(){['_documentId'];['_isConnected'];['_wsGateway'];['_channel'];static ['_SERVICE']=0xa;constructor(_documentId){super(),this['_documentId']=_documentId,this['_isConnected']=!0x1;}get['isConnected'](){return this['_isConnected'];}async['connect'](wsGateway){if(this['_isConnected'])return;if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);const connectMessage=new ConnectMessage$1(this['_documentId']);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x41c34f=await wsGateway['_sendRequest'](0xa,ConnectMessage$1['TYPE'],MessagesCompressor['encode'](connectMessage)),connectResponse=MessagesCompressor['decode'](_0x41c34f,ConnectResponse$1);return this['listenTo'](wsGateway,'change:state',(_0x5aa5be,_0x1d0faa,_0x15ebcb)=>this['_onWsGatewayStateChange'](_0x15ebcb),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,connectResponse['channel']),this['_isConnected']=!0x0,this['fire']('connected'),connectResponse['suggestions'];}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['add'](_0x47b24e,type,data,originalSuggestionId=null,attributes){const _0x396f0c=new AddSuggestionMessage(_0x47b24e,this['_documentId'],type,data,originalSuggestionId,attributes),_0x2e281c=await this['_sendRequest'](AddSuggestionMessage['TYPE'],_0x396f0c);return MessagesCompressor['decode'](_0x2e281c,AddSuggestionResponse);}async['get'](_0x162a2d,attempt=0x1){const _0x468f0c=new GetSuggestionMessage(_0x162a2d,this['_documentId']);try{const _0x5ca696=await this['_sendRequest'](GetSuggestionMessage['TYPE'],_0x468f0c);return MessagesCompressor['decode'](_0x5ca696,GetSuggestionResponse);}catch(_0x58b2a3){if('CKEditorCloudServicesServerError'===_0x58b2a3['name']&&'404'===_0x58b2a3['code']&&attempt<0x5)return await(time=0x64*attempt,new Promise(_0x4f6613=>{setTimeout(_0x4f6613,time);})),this['get'](_0x162a2d,attempt+0x1);if('CKEditorCloudServicesServerError'===_0x58b2a3['name'])throw _0x58b2a3;throw CKEditorCloudServicesServerError['fromPublicError'](_0x58b2a3);}var time;}async['getAll'](){const _0x320267=new GetAllSuggestionsMessage(this['_documentId']),_0x2930ff=await this['_sendRequest'](GetAllSuggestionsMessage['TYPE'],_0x320267),{suggestions:suggestions}=MessagesCompressor['decode'](_0x2930ff,GetAllSuggestionResponse);return suggestions;}async['update'](_0x37ad33,_0x100a8e={}){const {hasComments:hasComments,state:state,attributes:attributes}=_0x100a8e,isHasCommentsUpdated=void 0x0!==hasComments,_0x3878e4=new UpdateSuggestionMessage(_0x37ad33,this['_documentId'],hasComments,isHasCommentsUpdated,state,attributes);await this['_sendRequest'](UpdateSuggestionMessage['TYPE'],_0x3878e4);}async['batchUpdateState'](_0x446ac0){const _0x3b73b9=new BatchUpdateSuggestionsStateMessage(_0x446ac0['ids'],this['_documentId'],_0x446ac0['state']);await this['_sendRequest'](BatchUpdateSuggestionsStateMessage['TYPE'],_0x3b73b9);}['_connectToChannel'](wsGateway,_0x194970){this['_channel']=wsGateway['_getChannel'](TrackChangesService['_SERVICE'],_0x194970),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateSuggestionMessage['TYPE']),(event,data)=>{const updateSuggestionMessage=MessagesCompressor['decode'](data,UpdateSuggestionMessage);this['fire']('suggestionUpdated',updateSuggestionMessage);});}['_onWsGatewayStateChange'](_0x5584d4){_0x5584d4===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](method,_0x91b5a3){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Track\x20Changes',this);return this['_wsGateway']['_sendRequest'](0xa,method,MessagesCompressor['encode'](_0x91b5a3));}}class SessionsConnectResponse extends Message{['channel'];['sockets'];static ['DESCRIPTOR_NAME']='SessionsConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'sockets':{'rule':'repeated','type':'SessionsSocketDescriptor','id':0x2}}};constructor(_0x26ade7,sockets=[]){super(),this['channel']=_0x26ade7,this['sockets']=sockets;}['toJSON'](){return{'channel':this['channel'],'sockets':this['sockets']['map'](socket=>({'user':socket['userId'],'session':socket['id'],'role':socket['role'],'permissions':socket['permissions']}))};}static['fromJSON'](data){return new SessionsConnectResponse(data['channel'],data['sockets']['map'](socket=>({'id':socket['session'],'userId':socket['user'],'role':socket['role'],'permissions':socket['permissions']})));}}class SessionsConnectMessage extends Message{['id'];['sessionType'];static ['TYPE']='31';static ['READABLE_TYPE_NAME']='getConnectedSockets';static ['DESCRIPTOR_NAME']='SessionsConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'sessionType':{'type':'uint32','id':0x2}}};constructor(_0x44a610,_0x474d56){super(),this['id']=_0x44a610,this['sessionType']=_0x474d56;}['toJSON'](){return{'id':this['id'],'sessionType':this['sessionType']};}static['fromJSON'](data){return new SessionsConnectMessage(data['id'],data['sessionType']);}}class SocketConnectMessage extends Message{['id'];['userId'];['role'];['permissions'];static ['TYPE']='32';static ['READABLE_TYPE_NAME']='connectSocket';static ['DESCRIPTOR_NAME']='SocketConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'userId':{'type':'string','id':0x2},'role':{'type':'string','id':0x3},'permissions':{'rule':'repeated','type':'string','id':0x4}}};constructor(_0x4072af,_0x11cdc2,_0x24d259,_0x2ffbd6){super(),this['id']=_0x4072af,this['userId']=_0x11cdc2,this['role']=_0x24d259,this['permissions']=_0x2ffbd6;}['toJSON'](){return{'id':this['id'],'userId':this['userId']??void 0x0,'role':this['role']??void 0x0,'permissions':this['permissions']??void 0x0};}static['fromJSON'](data){return new SocketConnectMessage(data['id'],data['userId'],data['role'],data['permissions']);}}class SocketDisconnectMessage extends Message{['id'];static ['TYPE']='33';static ['READABLE_TYPE_NAME']='disconnectSocket';static ['DESCRIPTOR_NAME']='SocketDisconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1}}};constructor(_0x2c5c4f){super(),this['id']=_0x2c5c4f;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](data){return new SocketDisconnectMessage(data['id']);}}class SessionCollection extends Collection{['_id'];['_sessionType'];['_handlers'];['_channel'];['_wsGateway'];['_connected'];['_eventsQueue'];['_isRunning'];constructor(_0x227f25,_0x2f443e){super({'idProperty':'id'}),this['_id']=_0x227f25,this['_sessionType']=_0x2f443e,this['_handlers']=new Map(),this['_eventsQueue']=[],this['_isRunning']=!0x1;}async['connect'](wsGateway){this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x2c6054=new SessionsConnectMessage(this['_id'],this['_sessionType']);let sessionsConnectResponse;try{const _0x27c616=await this['_wsGateway']['_sendRequest'](0x3,SessionsConnectMessage['TYPE'],MessagesCompressor['encode'](_0x2c6054));sessionsConnectResponse=MessagesCompressor['decode'](_0x27c616,SessionsConnectResponse);}catch(_0x13626a){sessionsConnectResponse=new SessionsConnectResponse(this['_id'],[]);}this['_connectToChannel'](this['_wsGateway'],sessionsConnectResponse['channel'],this['_sessionType']);const _0x3f6644=await async function(wsGateway,_0x1e8270){const _0x3822d8=_0x1e8270['map'](socket=>socket['userId']),_0x27d5e4=_0x3822d8['length']?await User['getMany'](wsGateway,_0x3822d8):[];return _0x1e8270['map'](socket=>{const item={'id':socket['id'],'role':socket['role'],'permissions':socket['permissions']};return item['user']=socket['userId']&&_0x27d5e4['find'](_0x3ffad4=>_0x3ffad4['id']===socket['userId'])||new User(),item;});}(this['_wsGateway'],sessionsConnectResponse['sockets']);for(const _0x50bd9b of _0x3f6644)super['add'](_0x50bd9b);this['_connected']=!0x0,this['fire']('connected'),this['listenTo'](this['_wsGateway'],'change:state',(_0x2ddcf8,_0x30df59,_0x4bebe0)=>this['_onWsGatewayStateChange'](_0x4bebe0),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),await this['_runQueue']();}['disconnect'](_0x59aca4=!0x0){if(this['_connected']){for(this['_connected']=!0x1,this['_eventsQueue']=[];this['length'];)super['remove'](0x0);this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_wsGateway']&&_0x59aca4&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['fire']('disconnected'),_0x59aca4&&this['stopListening']();}}['add'](_0x19db91,_0x454ed7){throw new TypeError('The\x20collection\x20is\x20read-only.');}['remove'](_0x27c255){throw new TypeError('The\x20collection\x20is\x20read-only.');}['_connectToChannel'](wsGateway,_0x549a81,_0x599f4a){this['_channel']=wsGateway['_getChannel'](_0x599f4a,_0x549a81),this['_channel']&&(this['_addHandler'](this['_channel'],SocketConnectMessage['TYPE'],async data=>{const socketConnectMessage=MessagesCompressor['decode'](data,SocketConnectMessage);if(-0x1===this['getIndex'](socketConnectMessage['id'])){const socket={'id':socketConnectMessage['id'],'role':socketConnectMessage['role'],'permissions':socketConnectMessage['permissions']};socketConnectMessage['userId']&&(socket['user']=await User['get'](wsGateway,socketConnectMessage['userId'])),super['add'](socket);}}),this['_addHandler'](this['_channel'],SocketDisconnectMessage['TYPE'],data=>{const socketDisconnectMessage=MessagesCompressor['decode'](data,SocketDisconnectMessage);-0x1!==this['getIndex'](socketDisconnectMessage['id'])&&super['remove'](socketDisconnectMessage['id']);}));}async['_onWsGatewayStateChange'](state){state===WebSocketGateway['STATE_DISCONNECTED']&&this['disconnect'](!0x1),state===WebSocketGateway['STATE_CONNECTED']&&await this['connect'](this['_wsGateway']);}async['_runQueue'](){if(this['_isRunning']||!this['_connected'])return;let event;for(this['_isRunning']=!0x0;event=this['_eventsQueue']['shift']();){const _0x100249=this['_handlers']['get'](event['eventName']);_0x100249&&await _0x100249(event['data']);}this['_isRunning']=!0x1;}['_addHandler'](_0x2cda94,eventType,_0x350e72){const eventName=_0x2cda94['getEventName'](eventType,!0x0);this['listenTo'](_0x2cda94,eventName,async(event,data)=>{const _0x2924d2=event['name'];this['_eventsQueue']['push']({'eventName':_0x2924d2,'data':data}),await this['_runQueue']();}),this['_handlers']['set'](eventName,_0x350e72);}}class Sessions{static async['getConnectedSessions'](wsGateway,_0x57b2ba,_0x448cc2){const sessionCollection=new SessionCollection(_0x57b2ba,_0x448cc2);return await sessionCollection['connect'](wsGateway),sessionCollection;}}class CollaborativeEditingConnectMessage extends Message{['id'];['buffers'];['types'];['bundleVersion'];['lastOperationId'];static ['TYPE']='11';static ['READABLE_TYPE_NAME']='connectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'lastOperationId':{'type':'string','id':0x5}}};constructor(_0x492577,_0x3b0c6c,types,_0x253855,lastOperationId=''){super(),this['id']=_0x492577,this['buffers']=_0x3b0c6c,this['types']=types,this['bundleVersion']=_0x253855,this['lastOperationId']=lastOperationId;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](data){return new CollaborativeEditingConnectMessage(data['id'],data['buffers'],data['types'],data['bundleVersion'],data['lastOperationId']);}}class OperationMetadataHelpers{static['prepareMetadataForOperations'](types,metadata){if(!(types&&types['length']&&metadata&&metadata['length']))return[];const result=[];let _0x2e104a=0x0;for(const type of types)if(0x0!==type){if(!metadata[_0x2e104a])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');result['push'](metadata[_0x2e104a]),_0x2e104a++;}else result['push'](result[result['length']-0x1]);return result;}static['removeUnnecessaryMetadata'](types,metadata){if(!(types&&types['length']&&metadata&&metadata['length']))return[];const result=[];for(let _0x29531d=0x0;_0x29531d<types['length'];_0x29531d++)if(0x0!==types[_0x29531d]){if(!metadata[_0x29531d])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');result['push'](metadata[_0x29531d]);}return result;}}class OperationMetadataDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='OperationMetadataDescriptor';static ['DESCRIPTOR']={'fields':{'userId':{'type':'string','id':0x1},'type':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};static['toJSON']({createdAt:createdAt,...metadata}){const parsedMetadata={...metadata};return createdAt?.['toISOString']&&(parsedMetadata['createdAt']=createdAt['toISOString']()),parsedMetadata;}static['fromJSON']({createdAt:createdAt,...metadata}){const parsedMetadata={...metadata};return createdAt&&(parsedMetadata['createdAt']=new Date(createdAt)),parsedMetadata;}}class CollaborativeEditingUpdateMessage extends Message{['id'];['buffers'];['types'];['baseVersion'];['metadata'];['lastOperationId'];static ['TYPE']='13';static ['READABLE_TYPE_NAME']='updateDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingUpdateMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'baseVersion':{'type':'uint32','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x6},'lastOperationId':{'type':'string','id':0x7}}};constructor(_0x11a065,_0x131f33,types,_0x735feb,metadata=[],lastOperationId=''){super(),this['id']=_0x11a065,this['buffers']=_0x131f33,this['types']=types,this['baseVersion']=_0x735feb,this['metadata']=metadata,this['lastOperationId']=lastOperationId;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'lastOperationId':this['lastOperationId']};}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'metadata':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](data){return new CollaborativeEditingUpdateMessage(data['id'],data['buffers'],data['types'],data['baseVersion'],OperationMetadataHelpers['prepareMetadataForOperations'](data['types'],data['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),data['lastOperationId']);}}class CollaborativeEditingReconnectMessage extends Message{['id'];['lastKnowVersion'];['bundleVersion'];static ['TYPE']='12';static ['READABLE_TYPE_NAME']='reconnectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingReconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'lastKnowVersion':{'type':'uint32','id':0x3}}};constructor(_0x3b6700,lastKnowVersion,_0x100194){super(),this['id']=_0x3b6700,this['lastKnowVersion']=lastKnowVersion,this['bundleVersion']=_0x100194;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](data){return new CollaborativeEditingReconnectMessage(data['id'],data['lastKnowVersion'],data['bundleVersion']);}}class CollaborativeEditingResponse extends Message{['version'];['buffers'];['types'];['metadata'];['lastOperationId'];['lastOperationAcceptedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingResponse';static ['DESCRIPTOR']={'fields':{'version':{'type':'uint32','id':0x1},'buffers':{'rule':'repeated','type':'bytes','id':0x2},'types':{'rule':'repeated','type':'uint32','id':0x3},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x5},'lastOperationId':{'type':'string','id':0x6},'lastOperationAcceptedAt':{'type':'string','id':0x7}}};constructor(_0x475a0d,_0x18150e=[],types=[],metadata=[],lastOperationId='',lastOperationAcceptedAt=null){super(),this['version']=_0x475a0d,this['buffers']=_0x18150e,this['types']=types,this['metadata']=metadata,this['lastOperationId']=lastOperationId,this['lastOperationAcceptedAt']=lastOperationAcceptedAt;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']};}get['wereChangesApplied'](){return!this['types']?.['length'];}['toJSON'](){return{'version':this['version'],'buffers':this['buffers'],'types':this['types'],'metadata':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](data){return new CollaborativeEditingResponse(data['version'],data['buffers'],data['types'],OperationMetadataHelpers['prepareMetadataForOperations'](data['types'],data['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),data['lastOperationId'],data['lastOperationAcceptedAt']?new Date(data['lastOperationAcceptedAt']):null);}static['create'](data){return new CollaborativeEditingResponse(data['version'],data['buffers'],data['types'],data['metadata'],data['lastOperationId'],data['lastOperationAcceptedAt']?new Date(data['lastOperationAcceptedAt']):null);}}class CollaborativeEditingConnectResponse extends Message{['channel'];['version'];['buffers'];['types'];['offset'];['metadata'];['initData'];['sessionId'];['lastOperationId'];['sessionCreatedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'offset':{'type':'uint32','id':0x2},'version':{'type':'uint32','id':0x3},'buffers':{'rule':'repeated','type':'bytes','id':0x4},'types':{'rule':'repeated','type':'uint32','id':0x5},'metadata':{'rule':'repeated','type':OperationMetadataDescriptor['DESCRIPTOR_NAME'],'id':0x7},'initData':{'type':'string','id':0x8},'isInitialized':{'type':'bool','id':0x9},'sessionId':{'type':'string','id':0xa},'lastOperationId':{'type':'string','id':0xb},'sessionCreatedAt':{'type':'string','id':0xc}}};constructor(_0x4753ea,_0x1ec727,_0xabb63b=[],types=[],offset=0x0,metadata=[],initData=null,_0x50f117='',lastOperationId='',sessionCreatedAt=null){super(),this['channel']=_0x4753ea,this['version']=_0x1ec727,this['buffers']=_0xabb63b,this['types']=types,this['offset']=offset,this['metadata']=metadata,this['initData']=initData,this['sessionId']=_0x50f117,this['lastOperationId']=lastOperationId,this['sessionCreatedAt']=sessionCreatedAt;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']};}get['wereChangesApplied'](){return!this['types']?.['length']&&null===this['initData'];}['toJSON'](){return{'channel':this['channel'],'version':this['version'],'sessionId':this['sessionId'],'buffers':this['buffers'],'types':this['types'],'offset':this['offset'],'metadata':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0xf80d71){return new CollaborativeEditingConnectResponse(_0xf80d71['channel'],_0xf80d71['version'],_0xf80d71['buffers'],_0xf80d71['types'],_0xf80d71['offset'],_0xf80d71['metadata'],_0xf80d71['initData'],_0xf80d71['sessionId'],_0xf80d71['lastOperationId'],_0xf80d71['sessionCreatedAt']);}static['fromJSON'](data){let initData=null;return!0x0===data['isInitialized']?initData=data['initData']??'':'boolean'!=typeof data['isInitialized']&&data['initData']&&(initData=data['initData']),CollaborativeEditingConnectResponse['create']({'channel':data['channel'],'version':data['version'],'buffers':data['buffers'],'types':data['types'],'offset':data['offset'],'metadata':OperationMetadataHelpers['prepareMetadataForOperations'](data['types'],data['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),'initData':initData,'sessionId':data['sessionId'],'lastOperationId':data['lastOperationId'],'sessionCreatedAt':data['sessionCreatedAt']?new Date(data['sessionCreatedAt']):null});}}class GetDocumentDetailsResponse extends Message{['lastDocumentSession'];['currentDocumentSession'];static ['DESCRIPTOR_NAME']='GetDocumentDetailsResponse';static ['DESCRIPTOR']={'fields':{'lastDocumentSessionId':{'type':'string','id':0x1},'lastDocumentSessionOperationId':{'type':'string','id':0x2},'currentDocumentSessionId':{'type':'string','id':0x3},'currentDocumentSessionVersion':{'type':'uint32','id':0x4},'currentDocumentSessionOperationId':{'type':'string','id':0x5}}};constructor(lastDocumentSession,currentDocumentSession){super(),this['lastDocumentSession']=lastDocumentSession,this['currentDocumentSession']=currentDocumentSession;}get['data'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}['toJSON'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}static['fromJSON'](data){const lastDocumentSession=data['lastDocumentSessionId']?{'id':data['lastDocumentSessionId'],'lastOperationId':data['lastDocumentSessionOperationId']}:void 0x0,currentDocumentSession=data['currentDocumentSessionId']?{'lastOperationId':data['currentDocumentSessionOperationId'],'version':data['currentDocumentSessionVersion'],'id':data['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(lastDocumentSession,currentDocumentSession);}}class GetDocumentDetailsMessage extends Message{['documentId'];static ['TYPE']='14';static ['READABLE_TYPE_NAME']='getDocumentDetails';static ['DESCRIPTOR_NAME']='GetDocumentDetailsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'environmentId':{'type':'string','id':0x2}}};constructor(documentId){super(),this['documentId']=documentId;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](data){return new GetDocumentDetailsMessage(data['documentId']);}}class CollaborativeEditingService extends EmitterMixin(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x125840,_0x576629){if(super(),!_0x125840)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x576629??v4(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x125840;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](wsGateway,data={'buffers':[],'types':[]},lastOperationId){const _0x1ee625=new CollaborativeEditingConnectMessage(this['getId'](),data['buffers'],data['types'],this['_bundleVersion'],lastOperationId);return this['_connect'](wsGateway,_0x1ee625);}['reconnect'](wsGateway,lastKnowVersion){if(this['isConnected']())throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',wsGateway);return this['_connect'](wsGateway,new CollaborativeEditingReconnectMessage(this['getId'](),lastKnowVersion,this['_bundleVersion']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['getDocumentDetails'](){const _0x318148=new GetDocumentDetailsMessage(this['getId']());if(!this['_wsGateway'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x88cf67=await this['_wsGateway']['_sendRequest'](0x1,GetDocumentDetailsMessage['TYPE'],MessagesCompressor['encode'](_0x318148));return MessagesCompressor['decode'](_0x88cf67,GetDocumentDetailsResponse);}async['sendOperations'](data,_0xca32a5,lastOperationId){if(!data||!data['types']||!data['types']['length'])throw new CKEditorCloudServicesError('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x2e75d6='number'==typeof _0xca32a5?_0xca32a5:parseInt(_0xca32a5);if(!Number['isInteger'](_0x2e75d6)||_0x2e75d6<0x0)throw new CKEditorCloudServicesError('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x403be7=new CollaborativeEditingUpdateMessage(this['getId'](),data['buffers'],data['types'],_0x2e75d6,[],lastOperationId);if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x5be48d=await this['_wsGateway']['_sendRequest'](0x1,CollaborativeEditingUpdateMessage['TYPE'],MessagesCompressor['encode'](_0x403be7));return MessagesCompressor['decode'](_0x5be48d,CollaborativeEditingResponse);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await Sessions['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](wsGateway,_0x381133){return Sessions['getConnectedSessions'](wsGateway,_0x381133,0x1);}async['_connect'](wsGateway,_0x2f2878){if(this['isConnected']())return;if(wsGateway['state']!==WebSocketGateway['STATE_CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x219963=await wsGateway['_sendRequest'](0x1,_0x2f2878['constructor']['TYPE'],MessagesCompressor['encode'](_0x2f2878)),collaborativeEditingConnectResponse=MessagesCompressor['decode'](_0x219963,CollaborativeEditingConnectResponse);return this['listenTo'](wsGateway,'change:state',(_0x572798,_0x388a89,_0x54542f)=>this['_onWsGatewayStateChange'](_0x54542f),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,collaborativeEditingConnectResponse['channel']),this['_isConnected']=!0x0,this['fire']('connected'),collaborativeEditingConnectResponse;}['_connectToChannel'](wsGateway,_0x20c4c8){this['_channel']=wsGateway['_getChannel'](0x1,_0x20c4c8),this['listenTo'](this['_channel'],this['_channel']['getEventName'](CollaborativeEditingUpdateMessage['TYPE']),(event,data)=>{const updateMessage=MessagesCompressor['decode'](data,CollaborativeEditingUpdateMessage);this['fire']('operationsReceived',updateMessage['baseVersion'],updateMessage['data'],updateMessage['metadata']);});}['_onWsGatewayStateChange'](_0x38470b){_0x38470b===WebSocketGateway['STATE_DISCONNECTED']&&this['disconnect']();}}class CommentDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'commentThreadId':{'id':0x2,'type':'string'},'userId':{'id':0x3,'type':'string'},'content':{'id':0x4,'type':'string'},'documentId':{'id':0x5,'type':'string'},'createdAt':{'id':0x6,'type':'string'},'attributes':{'id':0x7,'type':'string'}}};static['toJSON'](comment){return{...comment,'createdAt':comment['createdAt']?.['toISOString'](),'attributes':comment['attributes']?JSON['stringify'](comment['attributes']):null};}static['fromJSON'](comment){return{...comment,'createdAt':new Date(comment['createdAt']),'attributes':comment['attributes']?JSON['parse'](comment['attributes']):null};}}class CommentsThreadDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentsThreadDescriptor';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4},'context':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'deletedAt':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8},'unlinkedAt':{'type':'string','id':0x9}}};static['toJSON'](thread){return{...thread,'createdAt':thread['createdAt']?.['toISOString'](),'deletedAt':thread['deletedAt']?.['toISOString'](),'resolvedAt':thread['resolvedAt']?.['toISOString'](),'attributes':thread['attributes']?JSON['stringify'](thread['attributes']):null,'context':thread['context']?JSON['stringify'](thread['context']):thread['context'],'comments':thread['comments']?.['map'](CommentDescriptor['toJSON']),'unlinkedAt':thread['unlinkedAt']?.['toISOString']()};}static['fromJSON'](thread){return{...thread,'createdAt':thread['createdAt']?new Date(thread['createdAt']):void 0x0,'deletedAt':thread['deletedAt']?new Date(thread['deletedAt']):void 0x0,'resolvedAt':thread['resolvedAt']?new Date(thread['resolvedAt']):void 0x0,'attributes':thread['attributes']?JSON['parse'](thread['attributes']):null,'context':thread['context']?JSON['parse'](thread['context']):void 0x0,'comments':thread['comments']?.['map'](CommentDescriptor['fromJSON']),'unlinkedAt':thread['unlinkedAt']?new Date(thread['unlinkedAt']):void 0x0};}}class AddCommentMessage extends Message{['documentId'];['commentThreadId'];['content'];['commentId'];['userId'];['attributes'];['commentThread'];['createdAt'];static ['TYPE']='91';static ['READABLE_TYPE_NAME']='addComment';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'content':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3},'commentId':{'type':'string','id':0x4},'createdAt':{'type':'string','id':0x5},'userId':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'commentThread':{'type':'CommentsThreadDescriptor','id':0x8}}};constructor(documentId,commentThreadId,content,commentId='',createdAt,_0x3a13d3='',attributes=null,commentThread){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['content']=content,this['commentId']=commentId,this['userId']=_0x3a13d3,this['attributes']=attributes,this['commentThread']=commentThread,this['createdAt']=createdAt?new Date(createdAt):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'content':this['content'],'documentId':this['documentId'],'commentId':this['commentId'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'userId':this['userId'],'attributes':JSON['stringify'](this['attributes']),'commentThread':this['commentThread']?CommentsThreadDescriptor['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](object){return new AddCommentMessage(object['documentId'],object['commentThreadId'],object['content'],object['commentId']?object['commentId']:void 0x0,object['createdAt']?new Date(object['createdAt']):void 0x0,object['userId']?object['userId']:void 0x0,object['attributes']?JSON['parse'](object['attributes']):{},object['commentThread']?CommentsThreadDescriptor['fromJSON'](object['commentThread']):void 0x0);}}class AddCommentResponse extends Message{['commentThreadId'];['commentId'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};constructor(commentThreadId,commentId,createdAt){super(),this['commentThreadId']=commentThreadId,this['commentId']=commentId,this['createdAt']=new Date(createdAt);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](data){return new AddCommentResponse(data['commentThreadId'],data['commentId'],data['createdAt']);}}class ConnectMessage extends Message{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new ConnectMessage(object['documentId']);}}class ConnectResponse extends Message{['channel'];['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2ConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'threads':{'type':'string','rule':'repeated','id':0x2},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x3}}};constructor(_0x45ccf4,_threads,_threadsV2){super(),this['channel']=_0x45ccf4,this['_threads']=_threads,this['_threadsV2']=_threadsV2,this['threads']=_threadsV2?.['length']?_threadsV2:_threads;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](thread=>JSON['stringify'](thread)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](object){return new ConnectResponse(object['channel'],object['threads']?.['map'](thread=>JSON['parse'](thread)),object['threadsV2']?.['map'](CommentsThreadDescriptor['fromJSON']));}}class RemoveCommentMessage extends Message{['documentId'];['commentThreadId'];['commentId'];static ['TYPE']='95';static ['READABLE_TYPE_NAME']='removeComment';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3}}};constructor(documentId,commentThreadId,commentId){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['commentId']=commentId;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](object){return new RemoveCommentMessage(object['documentId'],object['commentThreadId'],object['commentId']);}}class RemoveCommentThreadMessage extends Message{['documentId'];['commentThreadId'];static ['TYPE']='97';static ['READABLE_TYPE_NAME']='removeCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(documentId,commentThreadId){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](object){return new RemoveCommentThreadMessage(object['documentId'],object['commentThreadId']);}}class UpdateCommentMessage extends Message{['documentId'];['commentThreadId'];['commentId'];['content'];['attributes'];['isAttributesUpdated'];['commentThread'];static ['TYPE']='96';static ['READABLE_TYPE_NAME']='updateComment';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'content':{'type':'string','id':0x3},'documentId':{'type':'string','id':0x4},'attributes':{'type':'string','id':0x5},'isAttributesUpdated':{'type':'bool','id':0x6},'commentThread':{'type':'CommentsThreadDescriptor','id':0x7}}};constructor(documentId,commentThreadId,commentId,content,attributes=null,isAttributesUpdated=!0x1,commentThread){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['commentId']=commentId,this['content']=content,this['attributes']=attributes,this['isAttributesUpdated']=isAttributesUpdated,this['commentThread']=commentThread;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'content':this['content'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'isAttributesUpdated':this['isAttributesUpdated'],'commentThread':this['commentThread']?CommentsThreadDescriptor['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](object){return new UpdateCommentMessage(object['documentId'],object['commentThreadId'],object['commentId'],object['content'],object['attributes']?JSON['parse'](object['attributes']):null,object['isAttributesUpdated'],object['commentThread']?CommentsThreadDescriptor['fromJSON'](object['commentThread']):void 0x0);}}class GetCommentThreadMessage extends Message{['commentThreadId'];['documentId'];static ['TYPE']='93';static ['READABLE_TYPE_NAME']='getComment';static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(commentThreadId,documentId){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](object){return new GetCommentThreadMessage(object['commentThreadId'],object['documentId']);}}class GetCommentThreadResponse extends Message{['commentThreadId'];['_comments'];['_commentsV2'];['resolvedBy'];['comments'];['createdAt'];['deletedAt'];['resolvedAt'];['attributes'];['context'];['unlinkedAt'];static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'string','rule':'repeated','id':0x2},'commentsV2':{'type':'CommentDescriptor','rule':'repeated','id':0x3},'resolvedAt':{'type':'string','id':0x4},'resolvedBy':{'type':'string','id':0x5},'context':{'type':'string','id':0x6},'createdAt':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'attributes':{'type':'string','id':0x9},'unlinkedAt':{'type':'string','id':0xa}}};constructor(commentThreadId,_comments,_commentsV2,attributes,_0x482fea,context,createdAt,deletedAt,resolvedAt,unlinkedAt){super(),this['commentThreadId']=commentThreadId,this['_comments']=_comments,this['_commentsV2']=_commentsV2,this['resolvedBy']=_0x482fea,this['comments']=_commentsV2?.['length']?_commentsV2:_comments,this['createdAt']=createdAt?new Date(createdAt):void 0x0,this['deletedAt']='string'==typeof deletedAt?new Date(deletedAt):deletedAt,this['resolvedAt']='string'==typeof resolvedAt?new Date(resolvedAt):resolvedAt,this['unlinkedAt']='string'==typeof unlinkedAt?new Date(unlinkedAt):unlinkedAt,this['attributes']='string'==typeof attributes?JSON['parse'](attributes):attributes,this['context']='string'==typeof context?JSON['parse'](context):context;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'comments':this['_comments']?.['map'](comment=>JSON['stringify'](comment)),'commentsV2':this['_commentsV2']?.['map'](CommentDescriptor['toJSON']),'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'resolvedBy':this['resolvedBy'],'createdAt':this['createdAt']?.['toISOString'](),'deletedAt':this['deletedAt']?.['toISOString'](),'resolvedAt':this['resolvedAt']?.['toISOString'](),'unlinkedAt':this['unlinkedAt']?.['toISOString']()};}static['fromJSON'](object){return new GetCommentThreadResponse(object['commentThreadId'],object['comments']?.['map'](comment=>function(commentString){const comment=JSON['parse'](commentString);return{...comment,'createdAt':new Date(comment['createdAt'])};}(comment)),object['commentsV2']?.['map'](CommentDescriptor['fromJSON']),object['attributes']?JSON['parse'](object['attributes']):object['attributes'],object['resolvedBy'],object['context']?JSON['parse'](object['context']):object['context'],object['createdAt'],object['deletedAt'],object['resolvedAt'],object['unlinkedAt']);}}class GetDocumentThreadsMessage extends Message{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new GetDocumentThreadsMessage(object['documentId']);}}class GetDocumentThreadsResponse extends Message{['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsResponse';static ['DESCRIPTOR']={'fields':{'threads':{'type':'string','rule':'repeated','id':0x1},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x2}}};constructor(_threads,_threadsV2){super(),this['_threads']=_threads,this['_threadsV2']=_threadsV2,this['threads']=_threadsV2?.['length']?_threadsV2:_threads;}['toJSON'](){return{'threads':this['_threads']?.['map'](thread=>JSON['stringify'](thread)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](object){return new GetDocumentThreadsResponse(object['threads']?.['map'](thread=>function(threadString){const threadRaw=JSON['parse'](threadString),thread={...threadRaw};return threadRaw['comments']&&(thread['comments']=threadRaw['comments']?.['map'](comment=>({...comment,'createdAt':new Date(comment['createdAt'])}))),thread;}(thread)),object['threadsV2']?.['map'](CommentsThreadDescriptor['fromJSON']));}}class CommentThreadAddedCommentDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](comment){return{'commentId':comment['commentId'],'createdAt':comment['createdAt']?.['toISOString']()};}static['fromJSON'](comment){return{'commentId':comment['commentId'],'createdAt':new Date(comment['createdAt'])};}}class AddCommentThreadResponse extends Message{['commentThreadId'];['comments'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'createdAt':{'type':'string','id':0x2},'comments':{'type':'CommentThreadAddedCommentDescriptor','rule':'repeated','id':0x3}}};constructor(commentThreadId,createdAt,comments=[]){super(),this['commentThreadId']=commentThreadId,this['comments']=comments,this['createdAt']=new Date(createdAt);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](comment=>CommentThreadAddedCommentDescriptor['toJSON'](comment))};}static['fromJSON'](data){return new AddCommentThreadResponse(data['commentThreadId'],data['createdAt'],data['comments']['map'](comment=>CommentThreadAddedCommentDescriptor['fromJSON'](comment)));}}class AddCommentThreadMessage extends Message{['documentId'];['commentThreadId'];['comments'];['context'];['resolvedBy'];['attributes'];['createdAt'];['resolvedAt'];['deletedAt'];static ['TYPE']='140';static ['READABLE_TYPE_NAME']='addCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'commentThreadId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'resolvedAt':{'type':'string','id':0x5},'resolvedBy':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x9}}};constructor(documentId,commentThreadId,comments=[],context,_0x266077=null,createdAt=null,resolvedAt=null,deletedAt=null,attributes=null){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['comments']=comments,this['context']=context,this['resolvedBy']=_0x266077,this['attributes']=attributes,this['createdAt']=createdAt?new Date(createdAt):'',this['resolvedAt']=resolvedAt?new Date(resolvedAt):'',this['deletedAt']=deletedAt?new Date(deletedAt):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']instanceof Date?this['resolvedAt']['toISOString']():this['resolvedAt'],'deletedAt':this['deletedAt']instanceof Date?this['deletedAt']['toISOString']():this['deletedAt'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'comments':this['comments']?.['map'](_0x3fbebf=>CommentDescriptor['toJSON'](_0x3fbebf))};}static['fromJSON'](object){return new AddCommentThreadMessage(object['documentId'],object['commentThreadId'],object['comments']?.['map'](_0x51a0de=>CommentDescriptor['fromJSON']({..._0x51a0de,'documentId':object['documentId'],'commentThreadId':object['commentThreadId']})),object['context']?JSON['parse'](object['context']):object['context'],object['resolvedBy'],object['createdAt']?new Date(object['createdAt']):void 0x0,object['resolvedAt']?new Date(object['resolvedAt']):void 0x0,object['deletedAt']?new Date(object['deletedAt']):void 0x0,object['attributes']?JSON['parse'](object['attributes']):object['attributes']);}}class ResolveCommentThreadMessage extends Message{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['TYPE']='142';static ['READABLE_TYPE_NAME']='resolveCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedBy':{'type':'string','id':0x3},'resolvedAt':{'type':'string','id':0x4}}};constructor(commentThreadId,documentId,_0x2cad70,resolvedAt){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['resolvedBy']=_0x2cad70,this['resolvedAt']=resolvedAt?new Date(resolvedAt):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](object){return new ResolveCommentThreadMessage(object['commentThreadId'],object['documentId'],object['resolvedBy'],object['resolvedAt']);}}class ReopenCommentThreadMessage extends Message{['commentThreadId'];['documentId'];static ['TYPE']='141';static ['READABLE_TYPE_NAME']='reopenCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ReopenCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(commentThreadId,documentId){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](object){return new ReopenCommentThreadMessage(object['commentThreadId'],object['documentId']);}}class UpdateCommentThreadMessage extends Message{['commentThreadId'];['documentId'];['context'];['attributes'];['unlinkedAt'];static ['TYPE']='143';static ['READABLE_TYPE_NAME']='updateCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'attributes':{'type':'string','id':0x4},'unlinkedAt':{'type':'string','id':0x5}}};constructor(commentThreadId,documentId,context,attributes=null,unlinkedAt=null){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['context']=context,this['attributes']=attributes,this['unlinkedAt']=unlinkedAt?new Date(unlinkedAt):'';}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'unlinkedAt':this['unlinkedAt']instanceof Date?this['unlinkedAt']['toISOString']():this['unlinkedAt']};}static['fromJSON'](object){return new UpdateCommentThreadMessage(object['commentThreadId'],object['documentId'],object['context']?JSON['parse'](object['context']):object['context'],object['attributes']?JSON['parse'](object['attributes']):null,object['unlinkedAt']?new Date(object['unlinkedAt']):null);}}class ResolveCommentThreadResponse extends Message{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4}}};constructor(commentThreadId,documentId,_0x12f9cd,resolvedAt){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['resolvedBy']=_0x12f9cd,this['resolvedAt']=new Date(resolvedAt);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](data){return new ResolveCommentThreadResponse(data['commentThreadId'],data['documentId'],data['resolvedBy'],data['resolvedAt']);}}class CommentsService extends EmitterMixin(){['_documentId'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_documentId){super(),this['_documentId']=_documentId,this['_isConnected']=!0x1;}get['isConnected'](){return this['_isConnected'];}async['connect'](wsGateway){if(this['_isConnected'])return;if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);const connectMessage=new ConnectMessage(this['_documentId']);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x2d4dfb=await wsGateway['_sendRequest'](0x9,ConnectMessage['TYPE'],MessagesCompressor['encode'](connectMessage)),{channel:_0x2f4196,threads:threads}=MessagesCompressor['decode'](_0x2d4dfb,ConnectResponse);return this['listenTo'](wsGateway,'change:state',(_0x60e822,_0x4abcb4,_0x5a7ff6)=>this['_onWsGatewayStateChange'](_0x5a7ff6),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,_0x2f4196),this['_isConnected']=!0x0,this['fire']('connected'),threads;}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['addComment'](commentThreadId,commentId,content,attributes){const _0x27bb1c=new AddCommentMessage(this['_documentId'],commentThreadId,content,commentId,void 0x0,void 0x0,attributes),_0x445d4a=await this['_sendRequest'](AddCommentMessage['TYPE'],_0x27bb1c);return MessagesCompressor['decode'](_0x445d4a,AddCommentResponse);}async['updateComment'](commentThreadId,commentId,content,attributes){const isAttributesUpdated=void 0x0!==attributes,_0x111c34=new UpdateCommentMessage(this['_documentId'],commentThreadId,commentId,content,attributes,isAttributesUpdated);await this['_sendRequest'](UpdateCommentMessage['TYPE'],_0x111c34);}async['removeComment'](commentThreadId,commentId){const _0x4697d4=new RemoveCommentMessage(this['_documentId'],commentThreadId,commentId);await this['_sendRequest'](RemoveCommentMessage['TYPE'],_0x4697d4);}async['removeCommentThread'](commentThreadId){const _0x924e8a=new RemoveCommentThreadMessage(this['_documentId'],commentThreadId);await this['_sendRequest'](RemoveCommentThreadMessage['TYPE'],_0x924e8a);}async['addCommentThread'](addCommentThreadParams){const _0x1cadff=new AddCommentThreadMessage(this['_documentId'],addCommentThreadParams['commentThreadId'],addCommentThreadParams['comments']?.['map'](comment=>({...comment,'documentId':this['_documentId'],'commentThreadId':addCommentThreadParams['commentThreadId']})),addCommentThreadParams['context'],addCommentThreadParams['resolvedBy'],addCommentThreadParams['createdAt'],addCommentThreadParams['resolvedAt'],addCommentThreadParams['deletedAt'],addCommentThreadParams['attributes']),_0x49c1d1=await this['_sendRequest'](AddCommentThreadMessage['TYPE'],_0x1cadff);return MessagesCompressor['decode'](_0x49c1d1,AddCommentThreadResponse);}async['resolveCommentThread'](commentThreadId){const _0x526f24=new ResolveCommentThreadMessage(commentThreadId,this['_documentId']),_0x35e4e6=await this['_sendRequest'](ResolveCommentThreadMessage['TYPE'],_0x526f24);return MessagesCompressor['decode'](_0x35e4e6,ResolveCommentThreadResponse);}async['reopenCommentThread'](commentThreadId){const _0x4619e6=new ReopenCommentThreadMessage(commentThreadId,this['_documentId']);await this['_sendRequest'](ReopenCommentThreadMessage['TYPE'],_0x4619e6);}async['updateCommentThread'](_0x2cefe9){const _0x3be555=new UpdateCommentThreadMessage(_0x2cefe9['commentThreadId'],this['_documentId'],_0x2cefe9['context'],_0x2cefe9['attributes'],_0x2cefe9['unlinkedAt']);await this['_sendRequest'](UpdateCommentThreadMessage['TYPE'],_0x3be555);}async['getCommentThread'](commentThreadId,attempt=0x1){const _0x4db570=new GetCommentThreadMessage(commentThreadId,this['_documentId']);try{const _0x4a7ad3=await this['_sendRequest'](GetCommentThreadMessage['TYPE'],_0x4db570),commentThreadResponse=MessagesCompressor['decode'](_0x4a7ad3,GetCommentThreadResponse);return{'commentThreadId':commentThreadResponse['commentThreadId'],'comments':commentThreadResponse['comments'],'attributes':commentThreadResponse['attributes'],'context':commentThreadResponse['context'],'resolvedAt':commentThreadResponse['resolvedAt'],'resolvedBy':commentThreadResponse['resolvedBy'],'deletedAt':commentThreadResponse['deletedAt'],'unlinkedAt':commentThreadResponse['unlinkedAt']};}catch(_0x3787ea){if('CKEditorCloudServicesServerError'===_0x3787ea['name']&&'404'===_0x3787ea['code']&&attempt<0x5)return await(time=0x64*attempt,new Promise(_0x2d4016=>{setTimeout(_0x2d4016,time);})),this['getCommentThread'](commentThreadId,attempt+0x1);if('CKEditorCloudServicesServerError'===_0x3787ea['name'])throw _0x3787ea;throw CKEditorCloudServicesServerError['fromPublicError'](_0x3787ea);}var time;}async['getDocumentThreads'](){const _0x5b0e25=new GetDocumentThreadsMessage(this['_documentId']),_0x4a3d32=await this['_sendRequest'](GetDocumentThreadsMessage['TYPE'],_0x5b0e25),{threads:threads}=MessagesCompressor['decode'](_0x4a3d32,GetDocumentThreadsResponse);return{'threads':threads};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await Sessions['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](wsGateway,_0x226d9e){this['_channel']=wsGateway['_getChannel'](CommentsService['_SERVICE'],_0x226d9e),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentMessage['TYPE']),(event,data)=>{const addCommentMessage=MessagesCompressor['decode'](data,AddCommentMessage);this['fire']('commentAdded',addCommentMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentMessage['TYPE']),(event,data)=>{const removeCommentMessage=MessagesCompressor['decode'](data,RemoveCommentMessage);this['fire']('commentRemoved',removeCommentMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentMessage['TYPE']),(event,data)=>{const updateCommentMessage=MessagesCompressor['decode'](data,UpdateCommentMessage);this['fire']('commentUpdated',updateCommentMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentThreadMessage['TYPE']),(event,data)=>{const removeCommentThreadMessage=MessagesCompressor['decode'](data,RemoveCommentThreadMessage);this['fire']('commentThreadRemoved',removeCommentThreadMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentThreadMessage['TYPE']),(event,data)=>{const addCommentThreadMessage=MessagesCompressor['decode'](data,AddCommentThreadMessage);this['fire']('commentThreadAdded',addCommentThreadMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentThreadMessage['TYPE']),(event,data)=>{const updateCommentThreadMessage=MessagesCompressor['decode'](data,UpdateCommentThreadMessage);this['fire']('commentThreadUpdated',updateCommentThreadMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ResolveCommentThreadMessage['TYPE']),(event,data)=>{const resolveCommentThreadMessage=MessagesCompressor['decode'](data,ResolveCommentThreadMessage);this['fire']('commentThreadResolved',resolveCommentThreadMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ReopenCommentThreadMessage['TYPE']),(event,data)=>{const reopenCommentThreadMessage=MessagesCompressor['decode'](data,ReopenCommentThreadMessage);this['fire']('commentThreadReopened',reopenCommentThreadMessage);}));}['_onWsGatewayStateChange'](_0x1096ae){_0x1096ae===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](method,_0x554623){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,method,MessagesCompressor['encode'](_0x554623));}}export{CollaborativeEditingService,CommentsService,EditorService,RevisionHistoryService,TrackChangesService,User,WEB_SOCKET_GATEWAY_STATES,WebSocketGateway};
23
+ import $protobuf from'protobufjs/minimal.js';import{io}from'socket.io-client';import _0xe519f8 from'url-parse';import{EmitterMixin,ObservableMixin,priorities,global,Collection}from'@ckeditor/ckeditor5-utils/dist/index.js';import{Encoder as _0x1b50d9,Decoder as _0x596a4e,PacketType}from'socket.io-parser';import{v4}from'uuid';class Descriptor{['constructor'];static ['DESCRIPTOR_NAME'];static ['DESCRIPTOR'];constructor(..._0x46ca62){}}class Message extends Descriptor{['constructor'];static ['TYPE']='1000';static ['READABLE_TYPE_NAME'];constructor(..._0x4b5249){super();}static['fromJSON'](object){throw new TypeError('Must\x20be\x20implemented\x20in\x20a\x20child\x20class!');}}class GetUserMessage extends Message{['id'];static ['TYPE']='21';static ['READABLE_TYPE_NAME']='getUser';static ['DESCRIPTOR_NAME']='GetUserMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1}}};constructor(_0x3f8c00){super(),this['id']=_0x3f8c00;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](data){return new GetUserMessage(data['id']);}}class GetUserResponse extends Message{['attributes'];static ['DESCRIPTOR_NAME']='GetUserResponse';static ['DESCRIPTOR']={'fields':{'attributes':{'rule':'repeated','type':'KeyValueDescriptor','id':0x1}}};constructor(attributes){super(),this['attributes']=attributes;}['toJSON'](){return{'attributes':Object['keys'](this['attributes'])['map'](_0x5ebe8e=>({'key':_0x5ebe8e,'value':JSON['stringify'](this['attributes'][_0x5ebe8e])}))};}static['fromJSON'](data){const attributes=data['attributes']['reduce']((result,_0x10ca4f)=>(result[_0x10ca4f['key']]=_0x10ca4f['value']?JSON['parse'](_0x10ca4f['value']):null,result),{});return new GetUserResponse(attributes);}}const messages=/* #__PURE__ -- @preserve */
24
+ ((()=>{var _0x498bd5=$protobuf['Reader'],$Writer=$protobuf['Writer'],$util=$protobuf['util'],$root=$protobuf['roots']['default']||($protobuf['roots']['default']={});return $root['OperationMetadataDescriptor']=(function(){function OperationMetadataDescriptor(properties){if(properties){for(var _0x5b30f2=Object['keys'](properties),_0x4da23a=0x0;_0x4da23a<_0x5b30f2['length'];++_0x4da23a)null!=properties[_0x5b30f2[_0x4da23a]]&&(this[_0x5b30f2[_0x4da23a]]=properties[_0x5b30f2[_0x4da23a]]);}}return OperationMetadataDescriptor['prototype']['userId']='',OperationMetadataDescriptor['prototype']['type']='',OperationMetadataDescriptor['prototype']['createdAt']='',OperationMetadataDescriptor['create']=function(properties){return new OperationMetadataDescriptor(properties);},OperationMetadataDescriptor['encode']=function(_0x2ad1a1,writer){return writer||(writer=$Writer['create']()),null!=_0x2ad1a1['userId']&&Object['hasOwnProperty']['call'](_0x2ad1a1,'userId')&&writer['uint32'](0xa)['string'](_0x2ad1a1['userId']),null!=_0x2ad1a1['type']&&Object['hasOwnProperty']['call'](_0x2ad1a1,'type')&&writer['uint32'](0x12)['string'](_0x2ad1a1['type']),null!=_0x2ad1a1['createdAt']&&Object['hasOwnProperty']['call'](_0x2ad1a1,'createdAt')&&writer['uint32'](0x1a)['string'](_0x2ad1a1['createdAt']),writer;},OperationMetadataDescriptor['encodeDelimited']=function(_0x177ff0,writer){return this['encode'](_0x177ff0,writer)['ldelim']();},OperationMetadataDescriptor['decode']=function(_0x286c87,length){_0x286c87 instanceof _0x498bd5||(_0x286c87=_0x498bd5['create'](_0x286c87));for(var _0xc8ad98=void 0x0===length?_0x286c87['len']:_0x286c87['pos']+length,_0x3ac870=new $root['OperationMetadataDescriptor']();_0x286c87['pos']<_0xc8ad98;){var tag=_0x286c87['uint32']();switch(tag>>>0x3){case 0x1:_0x3ac870['userId']=_0x286c87['string']();break;case 0x2:_0x3ac870['type']=_0x286c87['string']();break;case 0x3:_0x3ac870['createdAt']=_0x286c87['string']();break;default:_0x286c87['skipType'](0x7&tag);}}return _0x3ac870;},OperationMetadataDescriptor['decodeDelimited']=function(_0x35b5aa){return _0x35b5aa instanceof _0x498bd5||(_0x35b5aa=new _0x498bd5(_0x35b5aa)),this['decode'](_0x35b5aa,_0x35b5aa['uint32']());},OperationMetadataDescriptor['verify']=function(_0x40d342){return'object'!=typeof _0x40d342||null===_0x40d342?'object\x20expected':null!=_0x40d342['userId']&&_0x40d342['hasOwnProperty']('userId')&&!$util['isString'](_0x40d342['userId'])?'userId:\x20string\x20expected':null!=_0x40d342['type']&&_0x40d342['hasOwnProperty']('type')&&!$util['isString'](_0x40d342['type'])?'type:\x20string\x20expected':null!=_0x40d342['createdAt']&&_0x40d342['hasOwnProperty']('createdAt')&&!$util['isString'](_0x40d342['createdAt'])?'createdAt:\x20string\x20expected':null;},OperationMetadataDescriptor['fromObject']=function(object){if(object instanceof $root['OperationMetadataDescriptor'])return object;var _0x3cc8b7=new $root['OperationMetadataDescriptor']();return null!=object['userId']&&(_0x3cc8b7['userId']=String(object['userId'])),null!=object['type']&&(_0x3cc8b7['type']=String(object['type'])),null!=object['createdAt']&&(_0x3cc8b7['createdAt']=String(object['createdAt'])),_0x3cc8b7;},OperationMetadataDescriptor['toObject']=function(_0x487794,options){options||(options={});var object={};return options['defaults']&&(object['userId']='',object['type']='',object['createdAt']=''),null!=_0x487794['userId']&&_0x487794['hasOwnProperty']('userId')&&(object['userId']=_0x487794['userId']),null!=_0x487794['type']&&_0x487794['hasOwnProperty']('type')&&(object['type']=_0x487794['type']),null!=_0x487794['createdAt']&&_0x487794['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x487794['createdAt']),object;},OperationMetadataDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},OperationMetadataDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/OperationMetadataDescriptor';},OperationMetadataDescriptor;}()),$root['CollaborativeEditingConnectMessage']=(function(){function CollaborativeEditingConnectMessage(properties){if(this['buffers']=[],this['types']=[],properties){for(var _0x14200=Object['keys'](properties),_0x39b2d3=0x0;_0x39b2d3<_0x14200['length'];++_0x39b2d3)null!=properties[_0x14200[_0x39b2d3]]&&(this[_0x14200[_0x39b2d3]]=properties[_0x14200[_0x39b2d3]]);}}return CollaborativeEditingConnectMessage['prototype']['id']='',CollaborativeEditingConnectMessage['prototype']['bundleVersion']='',CollaborativeEditingConnectMessage['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingConnectMessage['prototype']['types']=$util['emptyArray'],CollaborativeEditingConnectMessage['prototype']['lastOperationId']='',CollaborativeEditingConnectMessage['create']=function(properties){return new CollaborativeEditingConnectMessage(properties);},CollaborativeEditingConnectMessage['encode']=function(_0xf85505,writer){if(writer||(writer=$Writer['create']()),null!=_0xf85505['id']&&Object['hasOwnProperty']['call'](_0xf85505,'id')&&writer['uint32'](0xa)['string'](_0xf85505['id']),null!=_0xf85505['bundleVersion']&&Object['hasOwnProperty']['call'](_0xf85505,'bundleVersion')&&writer['uint32'](0x12)['string'](_0xf85505['bundleVersion']),null!=_0xf85505['buffers']&&_0xf85505['buffers']['length']){for(var _0x205d82=0x0;_0x205d82<_0xf85505['buffers']['length'];++_0x205d82)writer['uint32'](0x1a)['bytes'](_0xf85505['buffers'][_0x205d82]);}if(null!=_0xf85505['types']&&_0xf85505['types']['length']){writer['uint32'](0x22)['fork']();for(_0x205d82=0x0;_0x205d82<_0xf85505['types']['length'];++_0x205d82)writer['uint32'](_0xf85505['types'][_0x205d82]);writer['ldelim']();}return null!=_0xf85505['lastOperationId']&&Object['hasOwnProperty']['call'](_0xf85505,'lastOperationId')&&writer['uint32'](0x2a)['string'](_0xf85505['lastOperationId']),writer;},CollaborativeEditingConnectMessage['encodeDelimited']=function(_0x3c3069,writer){return this['encode'](_0x3c3069,writer)['ldelim']();},CollaborativeEditingConnectMessage['decode']=function(_0x4da917,length){_0x4da917 instanceof _0x498bd5||(_0x4da917=_0x498bd5['create'](_0x4da917));for(var _0x16a26a=void 0x0===length?_0x4da917['len']:_0x4da917['pos']+length,_0x189141=new $root['CollaborativeEditingConnectMessage']();_0x4da917['pos']<_0x16a26a;){var tag=_0x4da917['uint32']();switch(tag>>>0x3){case 0x1:_0x189141['id']=_0x4da917['string']();break;case 0x2:_0x189141['bundleVersion']=_0x4da917['string']();break;case 0x3:_0x189141['buffers']&&_0x189141['buffers']['length']||(_0x189141['buffers']=[]),_0x189141['buffers']['push'](_0x4da917['bytes']());break;case 0x4:if(_0x189141['types']&&_0x189141['types']['length']||(_0x189141['types']=[]),0x2==(0x7&tag)){for(var _0x48f10c=_0x4da917['uint32']()+_0x4da917['pos'];_0x4da917['pos']<_0x48f10c;)_0x189141['types']['push'](_0x4da917['uint32']());}else _0x189141['types']['push'](_0x4da917['uint32']());break;case 0x5:_0x189141['lastOperationId']=_0x4da917['string']();break;default:_0x4da917['skipType'](0x7&tag);}}return _0x189141;},CollaborativeEditingConnectMessage['decodeDelimited']=function(_0x511be4){return _0x511be4 instanceof _0x498bd5||(_0x511be4=new _0x498bd5(_0x511be4)),this['decode'](_0x511be4,_0x511be4['uint32']());},CollaborativeEditingConnectMessage['verify']=function(_0x25e3a1){if('object'!=typeof _0x25e3a1||null===_0x25e3a1)return'object\x20expected';if(null!=_0x25e3a1['id']&&_0x25e3a1['hasOwnProperty']('id')&&!$util['isString'](_0x25e3a1['id']))return'id:\x20string\x20expected';if(null!=_0x25e3a1['bundleVersion']&&_0x25e3a1['hasOwnProperty']('bundleVersion')&&!$util['isString'](_0x25e3a1['bundleVersion']))return'bundleVersion:\x20string\x20expected';if(null!=_0x25e3a1['buffers']&&_0x25e3a1['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x25e3a1['buffers']))return'buffers:\x20array\x20expected';for(var _0x73b430=0x0;_0x73b430<_0x25e3a1['buffers']['length'];++_0x73b430)if(!(_0x25e3a1['buffers'][_0x73b430]&&'number'==typeof _0x25e3a1['buffers'][_0x73b430]['length']||$util['isString'](_0x25e3a1['buffers'][_0x73b430])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x25e3a1['types']&&_0x25e3a1['hasOwnProperty']('types')){if(!Array['isArray'](_0x25e3a1['types']))return'types:\x20array\x20expected';for(_0x73b430=0x0;_0x73b430<_0x25e3a1['types']['length'];++_0x73b430)if(!$util['isInteger'](_0x25e3a1['types'][_0x73b430]))return'types:\x20integer[]\x20expected';}return null!=_0x25e3a1['lastOperationId']&&_0x25e3a1['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x25e3a1['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},CollaborativeEditingConnectMessage['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingConnectMessage'])return object;var _0x2b5e3e=new $root['CollaborativeEditingConnectMessage']();if(null!=object['id']&&(_0x2b5e3e['id']=String(object['id'])),null!=object['bundleVersion']&&(_0x2b5e3e['bundleVersion']=String(object['bundleVersion'])),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingConnectMessage.buffers:\x20array\x20expected');_0x2b5e3e['buffers']=[];for(var _0x126aac=0x0;_0x126aac<object['buffers']['length'];++_0x126aac)'string'==typeof object['buffers'][_0x126aac]?$util['base64']['decode'](object['buffers'][_0x126aac],_0x2b5e3e['buffers'][_0x126aac]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x126aac])),0x0):object['buffers'][_0x126aac]['length']>=0x0&&(_0x2b5e3e['buffers'][_0x126aac]=object['buffers'][_0x126aac]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingConnectMessage.types:\x20array\x20expected');_0x2b5e3e['types']=[];for(_0x126aac=0x0;_0x126aac<object['types']['length'];++_0x126aac)_0x2b5e3e['types'][_0x126aac]=object['types'][_0x126aac]>>>0x0;}return null!=object['lastOperationId']&&(_0x2b5e3e['lastOperationId']=String(object['lastOperationId'])),_0x2b5e3e;},CollaborativeEditingConnectMessage['toObject']=function(_0x3354d3,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[]),options['defaults']&&(object['id']='',object['bundleVersion']='',object['lastOperationId']=''),null!=_0x3354d3['id']&&_0x3354d3['hasOwnProperty']('id')&&(object['id']=_0x3354d3['id']),null!=_0x3354d3['bundleVersion']&&_0x3354d3['hasOwnProperty']('bundleVersion')&&(object['bundleVersion']=_0x3354d3['bundleVersion']),_0x3354d3['buffers']&&_0x3354d3['buffers']['length']){object['buffers']=[];for(var _0x2b3fe5=0x0;_0x2b3fe5<_0x3354d3['buffers']['length'];++_0x2b3fe5)object['buffers'][_0x2b3fe5]=options['bytes']===String?$util['base64']['encode'](_0x3354d3['buffers'][_0x2b3fe5],0x0,_0x3354d3['buffers'][_0x2b3fe5]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x3354d3['buffers'][_0x2b3fe5]):_0x3354d3['buffers'][_0x2b3fe5];}if(_0x3354d3['types']&&_0x3354d3['types']['length']){object['types']=[];for(_0x2b3fe5=0x0;_0x2b3fe5<_0x3354d3['types']['length'];++_0x2b3fe5)object['types'][_0x2b3fe5]=_0x3354d3['types'][_0x2b3fe5];}return null!=_0x3354d3['lastOperationId']&&_0x3354d3['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x3354d3['lastOperationId']),object;},CollaborativeEditingConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingConnectMessage';},CollaborativeEditingConnectMessage;}()),$root['CollaborativeEditingReconnectMessage']=(function(){function CollaborativeEditingReconnectMessage(properties){if(properties){for(var _0x484065=Object['keys'](properties),_0x49119c=0x0;_0x49119c<_0x484065['length'];++_0x49119c)null!=properties[_0x484065[_0x49119c]]&&(this[_0x484065[_0x49119c]]=properties[_0x484065[_0x49119c]]);}}return CollaborativeEditingReconnectMessage['prototype']['id']='',CollaborativeEditingReconnectMessage['prototype']['bundleVersion']='',CollaborativeEditingReconnectMessage['prototype']['lastKnowVersion']=0x0,CollaborativeEditingReconnectMessage['create']=function(properties){return new CollaborativeEditingReconnectMessage(properties);},CollaborativeEditingReconnectMessage['encode']=function(_0x34e537,writer){return writer||(writer=$Writer['create']()),null!=_0x34e537['id']&&Object['hasOwnProperty']['call'](_0x34e537,'id')&&writer['uint32'](0xa)['string'](_0x34e537['id']),null!=_0x34e537['bundleVersion']&&Object['hasOwnProperty']['call'](_0x34e537,'bundleVersion')&&writer['uint32'](0x12)['string'](_0x34e537['bundleVersion']),null!=_0x34e537['lastKnowVersion']&&Object['hasOwnProperty']['call'](_0x34e537,'lastKnowVersion')&&writer['uint32'](0x18)['uint32'](_0x34e537['lastKnowVersion']),writer;},CollaborativeEditingReconnectMessage['encodeDelimited']=function(_0x53613a,writer){return this['encode'](_0x53613a,writer)['ldelim']();},CollaborativeEditingReconnectMessage['decode']=function(_0x2e66cf,length){_0x2e66cf instanceof _0x498bd5||(_0x2e66cf=_0x498bd5['create'](_0x2e66cf));for(var _0x3b9907=void 0x0===length?_0x2e66cf['len']:_0x2e66cf['pos']+length,_0x44a6b4=new $root['CollaborativeEditingReconnectMessage']();_0x2e66cf['pos']<_0x3b9907;){var tag=_0x2e66cf['uint32']();switch(tag>>>0x3){case 0x1:_0x44a6b4['id']=_0x2e66cf['string']();break;case 0x2:_0x44a6b4['bundleVersion']=_0x2e66cf['string']();break;case 0x3:_0x44a6b4['lastKnowVersion']=_0x2e66cf['uint32']();break;default:_0x2e66cf['skipType'](0x7&tag);}}return _0x44a6b4;},CollaborativeEditingReconnectMessage['decodeDelimited']=function(_0x49a6b4){return _0x49a6b4 instanceof _0x498bd5||(_0x49a6b4=new _0x498bd5(_0x49a6b4)),this['decode'](_0x49a6b4,_0x49a6b4['uint32']());},CollaborativeEditingReconnectMessage['verify']=function(_0x198624){return'object'!=typeof _0x198624||null===_0x198624?'object\x20expected':null!=_0x198624['id']&&_0x198624['hasOwnProperty']('id')&&!$util['isString'](_0x198624['id'])?'id:\x20string\x20expected':null!=_0x198624['bundleVersion']&&_0x198624['hasOwnProperty']('bundleVersion')&&!$util['isString'](_0x198624['bundleVersion'])?'bundleVersion:\x20string\x20expected':null!=_0x198624['lastKnowVersion']&&_0x198624['hasOwnProperty']('lastKnowVersion')&&!$util['isInteger'](_0x198624['lastKnowVersion'])?'lastKnowVersion:\x20integer\x20expected':null;},CollaborativeEditingReconnectMessage['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingReconnectMessage'])return object;var _0x310c7c=new $root['CollaborativeEditingReconnectMessage']();return null!=object['id']&&(_0x310c7c['id']=String(object['id'])),null!=object['bundleVersion']&&(_0x310c7c['bundleVersion']=String(object['bundleVersion'])),null!=object['lastKnowVersion']&&(_0x310c7c['lastKnowVersion']=object['lastKnowVersion']>>>0x0),_0x310c7c;},CollaborativeEditingReconnectMessage['toObject']=function(_0xeeec67,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['bundleVersion']='',object['lastKnowVersion']=0x0),null!=_0xeeec67['id']&&_0xeeec67['hasOwnProperty']('id')&&(object['id']=_0xeeec67['id']),null!=_0xeeec67['bundleVersion']&&_0xeeec67['hasOwnProperty']('bundleVersion')&&(object['bundleVersion']=_0xeeec67['bundleVersion']),null!=_0xeeec67['lastKnowVersion']&&_0xeeec67['hasOwnProperty']('lastKnowVersion')&&(object['lastKnowVersion']=_0xeeec67['lastKnowVersion']),object;},CollaborativeEditingReconnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingReconnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingReconnectMessage';},CollaborativeEditingReconnectMessage;}()),$root['CollaborativeEditingUpdateMessage']=(function(){function CollaborativeEditingUpdateMessage(properties){if(this['buffers']=[],this['types']=[],this['metadata']=[],properties){for(var _0x4b2c0f=Object['keys'](properties),_0x11f18b=0x0;_0x11f18b<_0x4b2c0f['length'];++_0x11f18b)null!=properties[_0x4b2c0f[_0x11f18b]]&&(this[_0x4b2c0f[_0x11f18b]]=properties[_0x4b2c0f[_0x11f18b]]);}}return CollaborativeEditingUpdateMessage['prototype']['id']='',CollaborativeEditingUpdateMessage['prototype']['baseVersion']=0x0,CollaborativeEditingUpdateMessage['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingUpdateMessage['prototype']['types']=$util['emptyArray'],CollaborativeEditingUpdateMessage['prototype']['metadata']=$util['emptyArray'],CollaborativeEditingUpdateMessage['prototype']['lastOperationId']='',CollaborativeEditingUpdateMessage['create']=function(properties){return new CollaborativeEditingUpdateMessage(properties);},CollaborativeEditingUpdateMessage['encode']=function(_0x39039a,writer){if(writer||(writer=$Writer['create']()),null!=_0x39039a['id']&&Object['hasOwnProperty']['call'](_0x39039a,'id')&&writer['uint32'](0xa)['string'](_0x39039a['id']),null!=_0x39039a['baseVersion']&&Object['hasOwnProperty']['call'](_0x39039a,'baseVersion')&&writer['uint32'](0x10)['uint32'](_0x39039a['baseVersion']),null!=_0x39039a['buffers']&&_0x39039a['buffers']['length']){for(var _0x55efaa=0x0;_0x55efaa<_0x39039a['buffers']['length'];++_0x55efaa)writer['uint32'](0x1a)['bytes'](_0x39039a['buffers'][_0x55efaa]);}if(null!=_0x39039a['types']&&_0x39039a['types']['length']){writer['uint32'](0x22)['fork']();for(_0x55efaa=0x0;_0x55efaa<_0x39039a['types']['length'];++_0x55efaa)writer['uint32'](_0x39039a['types'][_0x55efaa]);writer['ldelim']();}if(null!=_0x39039a['metadata']&&_0x39039a['metadata']['length']){for(_0x55efaa=0x0;_0x55efaa<_0x39039a['metadata']['length'];++_0x55efaa)$root['OperationMetadataDescriptor']['encode'](_0x39039a['metadata'][_0x55efaa],writer['uint32'](0x32)['fork']())['ldelim']();}return null!=_0x39039a['lastOperationId']&&Object['hasOwnProperty']['call'](_0x39039a,'lastOperationId')&&writer['uint32'](0x3a)['string'](_0x39039a['lastOperationId']),writer;},CollaborativeEditingUpdateMessage['encodeDelimited']=function(_0x45e9de,writer){return this['encode'](_0x45e9de,writer)['ldelim']();},CollaborativeEditingUpdateMessage['decode']=function(_0x3e640d,length){_0x3e640d instanceof _0x498bd5||(_0x3e640d=_0x498bd5['create'](_0x3e640d));for(var _0x5040fe=void 0x0===length?_0x3e640d['len']:_0x3e640d['pos']+length,_0x442f66=new $root['CollaborativeEditingUpdateMessage']();_0x3e640d['pos']<_0x5040fe;){var tag=_0x3e640d['uint32']();switch(tag>>>0x3){case 0x1:_0x442f66['id']=_0x3e640d['string']();break;case 0x2:_0x442f66['baseVersion']=_0x3e640d['uint32']();break;case 0x3:_0x442f66['buffers']&&_0x442f66['buffers']['length']||(_0x442f66['buffers']=[]),_0x442f66['buffers']['push'](_0x3e640d['bytes']());break;case 0x4:if(_0x442f66['types']&&_0x442f66['types']['length']||(_0x442f66['types']=[]),0x2==(0x7&tag)){for(var _0x3e2d05=_0x3e640d['uint32']()+_0x3e640d['pos'];_0x3e640d['pos']<_0x3e2d05;)_0x442f66['types']['push'](_0x3e640d['uint32']());}else _0x442f66['types']['push'](_0x3e640d['uint32']());break;case 0x6:_0x442f66['metadata']&&_0x442f66['metadata']['length']||(_0x442f66['metadata']=[]),_0x442f66['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x3e640d,_0x3e640d['uint32']()));break;case 0x7:_0x442f66['lastOperationId']=_0x3e640d['string']();break;default:_0x3e640d['skipType'](0x7&tag);}}return _0x442f66;},CollaborativeEditingUpdateMessage['decodeDelimited']=function(_0x36c4fa){return _0x36c4fa instanceof _0x498bd5||(_0x36c4fa=new _0x498bd5(_0x36c4fa)),this['decode'](_0x36c4fa,_0x36c4fa['uint32']());},CollaborativeEditingUpdateMessage['verify']=function(_0x28f42d){if('object'!=typeof _0x28f42d||null===_0x28f42d)return'object\x20expected';if(null!=_0x28f42d['id']&&_0x28f42d['hasOwnProperty']('id')&&!$util['isString'](_0x28f42d['id']))return'id:\x20string\x20expected';if(null!=_0x28f42d['baseVersion']&&_0x28f42d['hasOwnProperty']('baseVersion')&&!$util['isInteger'](_0x28f42d['baseVersion']))return'baseVersion:\x20integer\x20expected';if(null!=_0x28f42d['buffers']&&_0x28f42d['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x28f42d['buffers']))return'buffers:\x20array\x20expected';for(var _0x5c0dba=0x0;_0x5c0dba<_0x28f42d['buffers']['length'];++_0x5c0dba)if(!(_0x28f42d['buffers'][_0x5c0dba]&&'number'==typeof _0x28f42d['buffers'][_0x5c0dba]['length']||$util['isString'](_0x28f42d['buffers'][_0x5c0dba])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x28f42d['types']&&_0x28f42d['hasOwnProperty']('types')){if(!Array['isArray'](_0x28f42d['types']))return'types:\x20array\x20expected';for(_0x5c0dba=0x0;_0x5c0dba<_0x28f42d['types']['length'];++_0x5c0dba)if(!$util['isInteger'](_0x28f42d['types'][_0x5c0dba]))return'types:\x20integer[]\x20expected';}if(null!=_0x28f42d['metadata']&&_0x28f42d['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x28f42d['metadata']))return'metadata:\x20array\x20expected';for(_0x5c0dba=0x0;_0x5c0dba<_0x28f42d['metadata']['length'];++_0x5c0dba){var _0x68aa8=$root['OperationMetadataDescriptor']['verify'](_0x28f42d['metadata'][_0x5c0dba]);if(_0x68aa8)return'metadata.'+_0x68aa8;}}return null!=_0x28f42d['lastOperationId']&&_0x28f42d['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x28f42d['lastOperationId'])?'lastOperationId:\x20string\x20expected':null;},CollaborativeEditingUpdateMessage['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingUpdateMessage'])return object;var _0x4af0b8=new $root['CollaborativeEditingUpdateMessage']();if(null!=object['id']&&(_0x4af0b8['id']=String(object['id'])),null!=object['baseVersion']&&(_0x4af0b8['baseVersion']=object['baseVersion']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingUpdateMessage.buffers:\x20array\x20expected');_0x4af0b8['buffers']=[];for(var _0xd1743b=0x0;_0xd1743b<object['buffers']['length'];++_0xd1743b)'string'==typeof object['buffers'][_0xd1743b]?$util['base64']['decode'](object['buffers'][_0xd1743b],_0x4af0b8['buffers'][_0xd1743b]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0xd1743b])),0x0):object['buffers'][_0xd1743b]['length']>=0x0&&(_0x4af0b8['buffers'][_0xd1743b]=object['buffers'][_0xd1743b]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingUpdateMessage.types:\x20array\x20expected');_0x4af0b8['types']=[];for(_0xd1743b=0x0;_0xd1743b<object['types']['length'];++_0xd1743b)_0x4af0b8['types'][_0xd1743b]=object['types'][_0xd1743b]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20array\x20expected');_0x4af0b8['metadata']=[];for(_0xd1743b=0x0;_0xd1743b<object['metadata']['length'];++_0xd1743b){if('object'!=typeof object['metadata'][_0xd1743b])throw TypeError('.CollaborativeEditingUpdateMessage.metadata:\x20object\x20expected');_0x4af0b8['metadata'][_0xd1743b]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0xd1743b]);}}return null!=object['lastOperationId']&&(_0x4af0b8['lastOperationId']=String(object['lastOperationId'])),_0x4af0b8;},CollaborativeEditingUpdateMessage['toObject']=function(_0x58144b,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[],object['metadata']=[]),options['defaults']&&(object['id']='',object['baseVersion']=0x0,object['lastOperationId']=''),null!=_0x58144b['id']&&_0x58144b['hasOwnProperty']('id')&&(object['id']=_0x58144b['id']),null!=_0x58144b['baseVersion']&&_0x58144b['hasOwnProperty']('baseVersion')&&(object['baseVersion']=_0x58144b['baseVersion']),_0x58144b['buffers']&&_0x58144b['buffers']['length']){object['buffers']=[];for(var _0x4f8889=0x0;_0x4f8889<_0x58144b['buffers']['length'];++_0x4f8889)object['buffers'][_0x4f8889]=options['bytes']===String?$util['base64']['encode'](_0x58144b['buffers'][_0x4f8889],0x0,_0x58144b['buffers'][_0x4f8889]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x58144b['buffers'][_0x4f8889]):_0x58144b['buffers'][_0x4f8889];}if(_0x58144b['types']&&_0x58144b['types']['length']){object['types']=[];for(_0x4f8889=0x0;_0x4f8889<_0x58144b['types']['length'];++_0x4f8889)object['types'][_0x4f8889]=_0x58144b['types'][_0x4f8889];}if(_0x58144b['metadata']&&_0x58144b['metadata']['length']){object['metadata']=[];for(_0x4f8889=0x0;_0x4f8889<_0x58144b['metadata']['length'];++_0x4f8889)object['metadata'][_0x4f8889]=$root['OperationMetadataDescriptor']['toObject'](_0x58144b['metadata'][_0x4f8889],options);}return null!=_0x58144b['lastOperationId']&&_0x58144b['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x58144b['lastOperationId']),object;},CollaborativeEditingUpdateMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingUpdateMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingUpdateMessage';},CollaborativeEditingUpdateMessage;}()),$root['GetDocumentDetailsMessage']=(function(){function GetDocumentDetailsMessage(properties){if(properties){for(var _0xe1ea46=Object['keys'](properties),_0x345bae=0x0;_0x345bae<_0xe1ea46['length'];++_0x345bae)null!=properties[_0xe1ea46[_0x345bae]]&&(this[_0xe1ea46[_0x345bae]]=properties[_0xe1ea46[_0x345bae]]);}}return GetDocumentDetailsMessage['prototype']['documentId']='',GetDocumentDetailsMessage['prototype']['environmentId']='',GetDocumentDetailsMessage['create']=function(properties){return new GetDocumentDetailsMessage(properties);},GetDocumentDetailsMessage['encode']=function(_0x207668,writer){return writer||(writer=$Writer['create']()),null!=_0x207668['documentId']&&Object['hasOwnProperty']['call'](_0x207668,'documentId')&&writer['uint32'](0xa)['string'](_0x207668['documentId']),null!=_0x207668['environmentId']&&Object['hasOwnProperty']['call'](_0x207668,'environmentId')&&writer['uint32'](0x12)['string'](_0x207668['environmentId']),writer;},GetDocumentDetailsMessage['encodeDelimited']=function(_0x194a3a,writer){return this['encode'](_0x194a3a,writer)['ldelim']();},GetDocumentDetailsMessage['decode']=function(_0x289074,length){_0x289074 instanceof _0x498bd5||(_0x289074=_0x498bd5['create'](_0x289074));for(var _0x5d0564=void 0x0===length?_0x289074['len']:_0x289074['pos']+length,_0x356d3b=new $root['GetDocumentDetailsMessage']();_0x289074['pos']<_0x5d0564;){var tag=_0x289074['uint32']();switch(tag>>>0x3){case 0x1:_0x356d3b['documentId']=_0x289074['string']();break;case 0x2:_0x356d3b['environmentId']=_0x289074['string']();break;default:_0x289074['skipType'](0x7&tag);}}return _0x356d3b;},GetDocumentDetailsMessage['decodeDelimited']=function(_0x124cd6){return _0x124cd6 instanceof _0x498bd5||(_0x124cd6=new _0x498bd5(_0x124cd6)),this['decode'](_0x124cd6,_0x124cd6['uint32']());},GetDocumentDetailsMessage['verify']=function(_0x532a60){return'object'!=typeof _0x532a60||null===_0x532a60?'object\x20expected':null!=_0x532a60['documentId']&&_0x532a60['hasOwnProperty']('documentId')&&!$util['isString'](_0x532a60['documentId'])?'documentId:\x20string\x20expected':null!=_0x532a60['environmentId']&&_0x532a60['hasOwnProperty']('environmentId')&&!$util['isString'](_0x532a60['environmentId'])?'environmentId:\x20string\x20expected':null;},GetDocumentDetailsMessage['fromObject']=function(object){if(object instanceof $root['GetDocumentDetailsMessage'])return object;var _0x474e61=new $root['GetDocumentDetailsMessage']();return null!=object['documentId']&&(_0x474e61['documentId']=String(object['documentId'])),null!=object['environmentId']&&(_0x474e61['environmentId']=String(object['environmentId'])),_0x474e61;},GetDocumentDetailsMessage['toObject']=function(_0x507aa3,options){options||(options={});var object={};return options['defaults']&&(object['documentId']='',object['environmentId']=''),null!=_0x507aa3['documentId']&&_0x507aa3['hasOwnProperty']('documentId')&&(object['documentId']=_0x507aa3['documentId']),null!=_0x507aa3['environmentId']&&_0x507aa3['hasOwnProperty']('environmentId')&&(object['environmentId']=_0x507aa3['environmentId']),object;},GetDocumentDetailsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetDocumentDetailsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetDocumentDetailsMessage';},GetDocumentDetailsMessage;}()),$root['CollaborativeEditingConnectResponse']=(function(){function CollaborativeEditingConnectResponse(properties){if(this['buffers']=[],this['types']=[],this['metadata']=[],properties){for(var _0x435ee2=Object['keys'](properties),_0x2b06ee=0x0;_0x2b06ee<_0x435ee2['length'];++_0x2b06ee)null!=properties[_0x435ee2[_0x2b06ee]]&&(this[_0x435ee2[_0x2b06ee]]=properties[_0x435ee2[_0x2b06ee]]);}}return CollaborativeEditingConnectResponse['prototype']['channel']='',CollaborativeEditingConnectResponse['prototype']['offset']=0x0,CollaborativeEditingConnectResponse['prototype']['version']=0x0,CollaborativeEditingConnectResponse['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingConnectResponse['prototype']['types']=$util['emptyArray'],CollaborativeEditingConnectResponse['prototype']['metadata']=$util['emptyArray'],CollaborativeEditingConnectResponse['prototype']['initData']='',CollaborativeEditingConnectResponse['prototype']['isInitialized']=!0x1,CollaborativeEditingConnectResponse['prototype']['sessionId']='',CollaborativeEditingConnectResponse['prototype']['lastOperationId']='',CollaborativeEditingConnectResponse['prototype']['sessionCreatedAt']='',CollaborativeEditingConnectResponse['create']=function(properties){return new CollaborativeEditingConnectResponse(properties);},CollaborativeEditingConnectResponse['encode']=function(_0xf8756e,writer){if(writer||(writer=$Writer['create']()),null!=_0xf8756e['channel']&&Object['hasOwnProperty']['call'](_0xf8756e,'channel')&&writer['uint32'](0xa)['string'](_0xf8756e['channel']),null!=_0xf8756e['offset']&&Object['hasOwnProperty']['call'](_0xf8756e,'offset')&&writer['uint32'](0x10)['uint32'](_0xf8756e['offset']),null!=_0xf8756e['version']&&Object['hasOwnProperty']['call'](_0xf8756e,'version')&&writer['uint32'](0x18)['uint32'](_0xf8756e['version']),null!=_0xf8756e['buffers']&&_0xf8756e['buffers']['length']){for(var _0x483dcc=0x0;_0x483dcc<_0xf8756e['buffers']['length'];++_0x483dcc)writer['uint32'](0x22)['bytes'](_0xf8756e['buffers'][_0x483dcc]);}if(null!=_0xf8756e['types']&&_0xf8756e['types']['length']){writer['uint32'](0x2a)['fork']();for(_0x483dcc=0x0;_0x483dcc<_0xf8756e['types']['length'];++_0x483dcc)writer['uint32'](_0xf8756e['types'][_0x483dcc]);writer['ldelim']();}if(null!=_0xf8756e['metadata']&&_0xf8756e['metadata']['length']){for(_0x483dcc=0x0;_0x483dcc<_0xf8756e['metadata']['length'];++_0x483dcc)$root['OperationMetadataDescriptor']['encode'](_0xf8756e['metadata'][_0x483dcc],writer['uint32'](0x3a)['fork']())['ldelim']();}return null!=_0xf8756e['initData']&&Object['hasOwnProperty']['call'](_0xf8756e,'initData')&&writer['uint32'](0x42)['string'](_0xf8756e['initData']),null!=_0xf8756e['isInitialized']&&Object['hasOwnProperty']['call'](_0xf8756e,'isInitialized')&&writer['uint32'](0x48)['bool'](_0xf8756e['isInitialized']),null!=_0xf8756e['sessionId']&&Object['hasOwnProperty']['call'](_0xf8756e,'sessionId')&&writer['uint32'](0x52)['string'](_0xf8756e['sessionId']),null!=_0xf8756e['lastOperationId']&&Object['hasOwnProperty']['call'](_0xf8756e,'lastOperationId')&&writer['uint32'](0x5a)['string'](_0xf8756e['lastOperationId']),null!=_0xf8756e['sessionCreatedAt']&&Object['hasOwnProperty']['call'](_0xf8756e,'sessionCreatedAt')&&writer['uint32'](0x62)['string'](_0xf8756e['sessionCreatedAt']),writer;},CollaborativeEditingConnectResponse['encodeDelimited']=function(_0x26409f,writer){return this['encode'](_0x26409f,writer)['ldelim']();},CollaborativeEditingConnectResponse['decode']=function(_0x7a9dde,length){_0x7a9dde instanceof _0x498bd5||(_0x7a9dde=_0x498bd5['create'](_0x7a9dde));for(var _0x5bc47c=void 0x0===length?_0x7a9dde['len']:_0x7a9dde['pos']+length,_0xe99cc3=new $root['CollaborativeEditingConnectResponse']();_0x7a9dde['pos']<_0x5bc47c;){var tag=_0x7a9dde['uint32']();switch(tag>>>0x3){case 0x1:_0xe99cc3['channel']=_0x7a9dde['string']();break;case 0x2:_0xe99cc3['offset']=_0x7a9dde['uint32']();break;case 0x3:_0xe99cc3['version']=_0x7a9dde['uint32']();break;case 0x4:_0xe99cc3['buffers']&&_0xe99cc3['buffers']['length']||(_0xe99cc3['buffers']=[]),_0xe99cc3['buffers']['push'](_0x7a9dde['bytes']());break;case 0x5:if(_0xe99cc3['types']&&_0xe99cc3['types']['length']||(_0xe99cc3['types']=[]),0x2==(0x7&tag)){for(var _0x553365=_0x7a9dde['uint32']()+_0x7a9dde['pos'];_0x7a9dde['pos']<_0x553365;)_0xe99cc3['types']['push'](_0x7a9dde['uint32']());}else _0xe99cc3['types']['push'](_0x7a9dde['uint32']());break;case 0x7:_0xe99cc3['metadata']&&_0xe99cc3['metadata']['length']||(_0xe99cc3['metadata']=[]),_0xe99cc3['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x7a9dde,_0x7a9dde['uint32']()));break;case 0x8:_0xe99cc3['initData']=_0x7a9dde['string']();break;case 0x9:_0xe99cc3['isInitialized']=_0x7a9dde['bool']();break;case 0xa:_0xe99cc3['sessionId']=_0x7a9dde['string']();break;case 0xb:_0xe99cc3['lastOperationId']=_0x7a9dde['string']();break;case 0xc:_0xe99cc3['sessionCreatedAt']=_0x7a9dde['string']();break;default:_0x7a9dde['skipType'](0x7&tag);}}return _0xe99cc3;},CollaborativeEditingConnectResponse['decodeDelimited']=function(_0x33e539){return _0x33e539 instanceof _0x498bd5||(_0x33e539=new _0x498bd5(_0x33e539)),this['decode'](_0x33e539,_0x33e539['uint32']());},CollaborativeEditingConnectResponse['verify']=function(_0x5869f7){if('object'!=typeof _0x5869f7||null===_0x5869f7)return'object\x20expected';if(null!=_0x5869f7['channel']&&_0x5869f7['hasOwnProperty']('channel')&&!$util['isString'](_0x5869f7['channel']))return'channel:\x20string\x20expected';if(null!=_0x5869f7['offset']&&_0x5869f7['hasOwnProperty']('offset')&&!$util['isInteger'](_0x5869f7['offset']))return'offset:\x20integer\x20expected';if(null!=_0x5869f7['version']&&_0x5869f7['hasOwnProperty']('version')&&!$util['isInteger'](_0x5869f7['version']))return'version:\x20integer\x20expected';if(null!=_0x5869f7['buffers']&&_0x5869f7['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x5869f7['buffers']))return'buffers:\x20array\x20expected';for(var _0x58974d=0x0;_0x58974d<_0x5869f7['buffers']['length'];++_0x58974d)if(!(_0x5869f7['buffers'][_0x58974d]&&'number'==typeof _0x5869f7['buffers'][_0x58974d]['length']||$util['isString'](_0x5869f7['buffers'][_0x58974d])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x5869f7['types']&&_0x5869f7['hasOwnProperty']('types')){if(!Array['isArray'](_0x5869f7['types']))return'types:\x20array\x20expected';for(_0x58974d=0x0;_0x58974d<_0x5869f7['types']['length'];++_0x58974d)if(!$util['isInteger'](_0x5869f7['types'][_0x58974d]))return'types:\x20integer[]\x20expected';}if(null!=_0x5869f7['metadata']&&_0x5869f7['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x5869f7['metadata']))return'metadata:\x20array\x20expected';for(_0x58974d=0x0;_0x58974d<_0x5869f7['metadata']['length'];++_0x58974d){var _0x1cb029=$root['OperationMetadataDescriptor']['verify'](_0x5869f7['metadata'][_0x58974d]);if(_0x1cb029)return'metadata.'+_0x1cb029;}}return null!=_0x5869f7['initData']&&_0x5869f7['hasOwnProperty']('initData')&&!$util['isString'](_0x5869f7['initData'])?'initData:\x20string\x20expected':null!=_0x5869f7['isInitialized']&&_0x5869f7['hasOwnProperty']('isInitialized')&&'boolean'!=typeof _0x5869f7['isInitialized']?'isInitialized:\x20boolean\x20expected':null!=_0x5869f7['sessionId']&&_0x5869f7['hasOwnProperty']('sessionId')&&!$util['isString'](_0x5869f7['sessionId'])?'sessionId:\x20string\x20expected':null!=_0x5869f7['lastOperationId']&&_0x5869f7['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x5869f7['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x5869f7['sessionCreatedAt']&&_0x5869f7['hasOwnProperty']('sessionCreatedAt')&&!$util['isString'](_0x5869f7['sessionCreatedAt'])?'sessionCreatedAt:\x20string\x20expected':null;},CollaborativeEditingConnectResponse['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingConnectResponse'])return object;var _0x4b985f=new $root['CollaborativeEditingConnectResponse']();if(null!=object['channel']&&(_0x4b985f['channel']=String(object['channel'])),null!=object['offset']&&(_0x4b985f['offset']=object['offset']>>>0x0),null!=object['version']&&(_0x4b985f['version']=object['version']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingConnectResponse.buffers:\x20array\x20expected');_0x4b985f['buffers']=[];for(var _0x355f60=0x0;_0x355f60<object['buffers']['length'];++_0x355f60)'string'==typeof object['buffers'][_0x355f60]?$util['base64']['decode'](object['buffers'][_0x355f60],_0x4b985f['buffers'][_0x355f60]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x355f60])),0x0):object['buffers'][_0x355f60]['length']>=0x0&&(_0x4b985f['buffers'][_0x355f60]=object['buffers'][_0x355f60]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingConnectResponse.types:\x20array\x20expected');_0x4b985f['types']=[];for(_0x355f60=0x0;_0x355f60<object['types']['length'];++_0x355f60)_0x4b985f['types'][_0x355f60]=object['types'][_0x355f60]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20array\x20expected');_0x4b985f['metadata']=[];for(_0x355f60=0x0;_0x355f60<object['metadata']['length'];++_0x355f60){if('object'!=typeof object['metadata'][_0x355f60])throw TypeError('.CollaborativeEditingConnectResponse.metadata:\x20object\x20expected');_0x4b985f['metadata'][_0x355f60]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x355f60]);}}return null!=object['initData']&&(_0x4b985f['initData']=String(object['initData'])),null!=object['isInitialized']&&(_0x4b985f['isInitialized']=Boolean(object['isInitialized'])),null!=object['sessionId']&&(_0x4b985f['sessionId']=String(object['sessionId'])),null!=object['lastOperationId']&&(_0x4b985f['lastOperationId']=String(object['lastOperationId'])),null!=object['sessionCreatedAt']&&(_0x4b985f['sessionCreatedAt']=String(object['sessionCreatedAt'])),_0x4b985f;},CollaborativeEditingConnectResponse['toObject']=function(_0x3f3681,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[],object['metadata']=[]),options['defaults']&&(object['channel']='',object['offset']=0x0,object['version']=0x0,object['initData']='',object['isInitialized']=!0x1,object['sessionId']='',object['lastOperationId']='',object['sessionCreatedAt']=''),null!=_0x3f3681['channel']&&_0x3f3681['hasOwnProperty']('channel')&&(object['channel']=_0x3f3681['channel']),null!=_0x3f3681['offset']&&_0x3f3681['hasOwnProperty']('offset')&&(object['offset']=_0x3f3681['offset']),null!=_0x3f3681['version']&&_0x3f3681['hasOwnProperty']('version')&&(object['version']=_0x3f3681['version']),_0x3f3681['buffers']&&_0x3f3681['buffers']['length']){object['buffers']=[];for(var _0x3f700b=0x0;_0x3f700b<_0x3f3681['buffers']['length'];++_0x3f700b)object['buffers'][_0x3f700b]=options['bytes']===String?$util['base64']['encode'](_0x3f3681['buffers'][_0x3f700b],0x0,_0x3f3681['buffers'][_0x3f700b]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x3f3681['buffers'][_0x3f700b]):_0x3f3681['buffers'][_0x3f700b];}if(_0x3f3681['types']&&_0x3f3681['types']['length']){object['types']=[];for(_0x3f700b=0x0;_0x3f700b<_0x3f3681['types']['length'];++_0x3f700b)object['types'][_0x3f700b]=_0x3f3681['types'][_0x3f700b];}if(_0x3f3681['metadata']&&_0x3f3681['metadata']['length']){object['metadata']=[];for(_0x3f700b=0x0;_0x3f700b<_0x3f3681['metadata']['length'];++_0x3f700b)object['metadata'][_0x3f700b]=$root['OperationMetadataDescriptor']['toObject'](_0x3f3681['metadata'][_0x3f700b],options);}return null!=_0x3f3681['initData']&&_0x3f3681['hasOwnProperty']('initData')&&(object['initData']=_0x3f3681['initData']),null!=_0x3f3681['isInitialized']&&_0x3f3681['hasOwnProperty']('isInitialized')&&(object['isInitialized']=_0x3f3681['isInitialized']),null!=_0x3f3681['sessionId']&&_0x3f3681['hasOwnProperty']('sessionId')&&(object['sessionId']=_0x3f3681['sessionId']),null!=_0x3f3681['lastOperationId']&&_0x3f3681['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x3f3681['lastOperationId']),null!=_0x3f3681['sessionCreatedAt']&&_0x3f3681['hasOwnProperty']('sessionCreatedAt')&&(object['sessionCreatedAt']=_0x3f3681['sessionCreatedAt']),object;},CollaborativeEditingConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingConnectResponse';},CollaborativeEditingConnectResponse;}()),$root['CollaborativeEditingResponse']=(function(){function CollaborativeEditingResponse(properties){if(this['buffers']=[],this['types']=[],this['metadata']=[],properties){for(var _0xa376e5=Object['keys'](properties),_0x471be6=0x0;_0x471be6<_0xa376e5['length'];++_0x471be6)null!=properties[_0xa376e5[_0x471be6]]&&(this[_0xa376e5[_0x471be6]]=properties[_0xa376e5[_0x471be6]]);}}return CollaborativeEditingResponse['prototype']['version']=0x0,CollaborativeEditingResponse['prototype']['buffers']=$util['emptyArray'],CollaborativeEditingResponse['prototype']['types']=$util['emptyArray'],CollaborativeEditingResponse['prototype']['metadata']=$util['emptyArray'],CollaborativeEditingResponse['prototype']['lastOperationId']='',CollaborativeEditingResponse['prototype']['lastOperationAcceptedAt']='',CollaborativeEditingResponse['create']=function(properties){return new CollaborativeEditingResponse(properties);},CollaborativeEditingResponse['encode']=function(_0x93a4d4,writer){if(writer||(writer=$Writer['create']()),null!=_0x93a4d4['version']&&Object['hasOwnProperty']['call'](_0x93a4d4,'version')&&writer['uint32'](0x8)['uint32'](_0x93a4d4['version']),null!=_0x93a4d4['buffers']&&_0x93a4d4['buffers']['length']){for(var _0x379a75=0x0;_0x379a75<_0x93a4d4['buffers']['length'];++_0x379a75)writer['uint32'](0x12)['bytes'](_0x93a4d4['buffers'][_0x379a75]);}if(null!=_0x93a4d4['types']&&_0x93a4d4['types']['length']){writer['uint32'](0x1a)['fork']();for(_0x379a75=0x0;_0x379a75<_0x93a4d4['types']['length'];++_0x379a75)writer['uint32'](_0x93a4d4['types'][_0x379a75]);writer['ldelim']();}if(null!=_0x93a4d4['metadata']&&_0x93a4d4['metadata']['length']){for(_0x379a75=0x0;_0x379a75<_0x93a4d4['metadata']['length'];++_0x379a75)$root['OperationMetadataDescriptor']['encode'](_0x93a4d4['metadata'][_0x379a75],writer['uint32'](0x2a)['fork']())['ldelim']();}return null!=_0x93a4d4['lastOperationId']&&Object['hasOwnProperty']['call'](_0x93a4d4,'lastOperationId')&&writer['uint32'](0x32)['string'](_0x93a4d4['lastOperationId']),null!=_0x93a4d4['lastOperationAcceptedAt']&&Object['hasOwnProperty']['call'](_0x93a4d4,'lastOperationAcceptedAt')&&writer['uint32'](0x3a)['string'](_0x93a4d4['lastOperationAcceptedAt']),writer;},CollaborativeEditingResponse['encodeDelimited']=function(_0x2a81d8,writer){return this['encode'](_0x2a81d8,writer)['ldelim']();},CollaborativeEditingResponse['decode']=function(_0x5a8f89,length){_0x5a8f89 instanceof _0x498bd5||(_0x5a8f89=_0x498bd5['create'](_0x5a8f89));for(var _0x699067=void 0x0===length?_0x5a8f89['len']:_0x5a8f89['pos']+length,_0x37f420=new $root['CollaborativeEditingResponse']();_0x5a8f89['pos']<_0x699067;){var tag=_0x5a8f89['uint32']();switch(tag>>>0x3){case 0x1:_0x37f420['version']=_0x5a8f89['uint32']();break;case 0x2:_0x37f420['buffers']&&_0x37f420['buffers']['length']||(_0x37f420['buffers']=[]),_0x37f420['buffers']['push'](_0x5a8f89['bytes']());break;case 0x3:if(_0x37f420['types']&&_0x37f420['types']['length']||(_0x37f420['types']=[]),0x2==(0x7&tag)){for(var _0x3b1f94=_0x5a8f89['uint32']()+_0x5a8f89['pos'];_0x5a8f89['pos']<_0x3b1f94;)_0x37f420['types']['push'](_0x5a8f89['uint32']());}else _0x37f420['types']['push'](_0x5a8f89['uint32']());break;case 0x5:_0x37f420['metadata']&&_0x37f420['metadata']['length']||(_0x37f420['metadata']=[]),_0x37f420['metadata']['push']($root['OperationMetadataDescriptor']['decode'](_0x5a8f89,_0x5a8f89['uint32']()));break;case 0x6:_0x37f420['lastOperationId']=_0x5a8f89['string']();break;case 0x7:_0x37f420['lastOperationAcceptedAt']=_0x5a8f89['string']();break;default:_0x5a8f89['skipType'](0x7&tag);}}return _0x37f420;},CollaborativeEditingResponse['decodeDelimited']=function(_0x475e47){return _0x475e47 instanceof _0x498bd5||(_0x475e47=new _0x498bd5(_0x475e47)),this['decode'](_0x475e47,_0x475e47['uint32']());},CollaborativeEditingResponse['verify']=function(_0x943dfa){if('object'!=typeof _0x943dfa||null===_0x943dfa)return'object\x20expected';if(null!=_0x943dfa['version']&&_0x943dfa['hasOwnProperty']('version')&&!$util['isInteger'](_0x943dfa['version']))return'version:\x20integer\x20expected';if(null!=_0x943dfa['buffers']&&_0x943dfa['hasOwnProperty']('buffers')){if(!Array['isArray'](_0x943dfa['buffers']))return'buffers:\x20array\x20expected';for(var _0x3991c7=0x0;_0x3991c7<_0x943dfa['buffers']['length'];++_0x3991c7)if(!(_0x943dfa['buffers'][_0x3991c7]&&'number'==typeof _0x943dfa['buffers'][_0x3991c7]['length']||$util['isString'](_0x943dfa['buffers'][_0x3991c7])))return'buffers:\x20buffer[]\x20expected';}if(null!=_0x943dfa['types']&&_0x943dfa['hasOwnProperty']('types')){if(!Array['isArray'](_0x943dfa['types']))return'types:\x20array\x20expected';for(_0x3991c7=0x0;_0x3991c7<_0x943dfa['types']['length'];++_0x3991c7)if(!$util['isInteger'](_0x943dfa['types'][_0x3991c7]))return'types:\x20integer[]\x20expected';}if(null!=_0x943dfa['metadata']&&_0x943dfa['hasOwnProperty']('metadata')){if(!Array['isArray'](_0x943dfa['metadata']))return'metadata:\x20array\x20expected';for(_0x3991c7=0x0;_0x3991c7<_0x943dfa['metadata']['length'];++_0x3991c7){var _0x4ffa01=$root['OperationMetadataDescriptor']['verify'](_0x943dfa['metadata'][_0x3991c7]);if(_0x4ffa01)return'metadata.'+_0x4ffa01;}}return null!=_0x943dfa['lastOperationId']&&_0x943dfa['hasOwnProperty']('lastOperationId')&&!$util['isString'](_0x943dfa['lastOperationId'])?'lastOperationId:\x20string\x20expected':null!=_0x943dfa['lastOperationAcceptedAt']&&_0x943dfa['hasOwnProperty']('lastOperationAcceptedAt')&&!$util['isString'](_0x943dfa['lastOperationAcceptedAt'])?'lastOperationAcceptedAt:\x20string\x20expected':null;},CollaborativeEditingResponse['fromObject']=function(object){if(object instanceof $root['CollaborativeEditingResponse'])return object;var _0x246383=new $root['CollaborativeEditingResponse']();if(null!=object['version']&&(_0x246383['version']=object['version']>>>0x0),object['buffers']){if(!Array['isArray'](object['buffers']))throw TypeError('.CollaborativeEditingResponse.buffers:\x20array\x20expected');_0x246383['buffers']=[];for(var _0x12c7f4=0x0;_0x12c7f4<object['buffers']['length'];++_0x12c7f4)'string'==typeof object['buffers'][_0x12c7f4]?$util['base64']['decode'](object['buffers'][_0x12c7f4],_0x246383['buffers'][_0x12c7f4]=$util['newBuffer']($util['base64']['length'](object['buffers'][_0x12c7f4])),0x0):object['buffers'][_0x12c7f4]['length']>=0x0&&(_0x246383['buffers'][_0x12c7f4]=object['buffers'][_0x12c7f4]);}if(object['types']){if(!Array['isArray'](object['types']))throw TypeError('.CollaborativeEditingResponse.types:\x20array\x20expected');_0x246383['types']=[];for(_0x12c7f4=0x0;_0x12c7f4<object['types']['length'];++_0x12c7f4)_0x246383['types'][_0x12c7f4]=object['types'][_0x12c7f4]>>>0x0;}if(object['metadata']){if(!Array['isArray'](object['metadata']))throw TypeError('.CollaborativeEditingResponse.metadata:\x20array\x20expected');_0x246383['metadata']=[];for(_0x12c7f4=0x0;_0x12c7f4<object['metadata']['length'];++_0x12c7f4){if('object'!=typeof object['metadata'][_0x12c7f4])throw TypeError('.CollaborativeEditingResponse.metadata:\x20object\x20expected');_0x246383['metadata'][_0x12c7f4]=$root['OperationMetadataDescriptor']['fromObject'](object['metadata'][_0x12c7f4]);}}return null!=object['lastOperationId']&&(_0x246383['lastOperationId']=String(object['lastOperationId'])),null!=object['lastOperationAcceptedAt']&&(_0x246383['lastOperationAcceptedAt']=String(object['lastOperationAcceptedAt'])),_0x246383;},CollaborativeEditingResponse['toObject']=function(_0x1695cd,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['buffers']=[],object['types']=[],object['metadata']=[]),options['defaults']&&(object['version']=0x0,object['lastOperationId']='',object['lastOperationAcceptedAt']=''),null!=_0x1695cd['version']&&_0x1695cd['hasOwnProperty']('version')&&(object['version']=_0x1695cd['version']),_0x1695cd['buffers']&&_0x1695cd['buffers']['length']){object['buffers']=[];for(var _0xa74248=0x0;_0xa74248<_0x1695cd['buffers']['length'];++_0xa74248)object['buffers'][_0xa74248]=options['bytes']===String?$util['base64']['encode'](_0x1695cd['buffers'][_0xa74248],0x0,_0x1695cd['buffers'][_0xa74248]['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x1695cd['buffers'][_0xa74248]):_0x1695cd['buffers'][_0xa74248];}if(_0x1695cd['types']&&_0x1695cd['types']['length']){object['types']=[];for(_0xa74248=0x0;_0xa74248<_0x1695cd['types']['length'];++_0xa74248)object['types'][_0xa74248]=_0x1695cd['types'][_0xa74248];}if(_0x1695cd['metadata']&&_0x1695cd['metadata']['length']){object['metadata']=[];for(_0xa74248=0x0;_0xa74248<_0x1695cd['metadata']['length'];++_0xa74248)object['metadata'][_0xa74248]=$root['OperationMetadataDescriptor']['toObject'](_0x1695cd['metadata'][_0xa74248],options);}return null!=_0x1695cd['lastOperationId']&&_0x1695cd['hasOwnProperty']('lastOperationId')&&(object['lastOperationId']=_0x1695cd['lastOperationId']),null!=_0x1695cd['lastOperationAcceptedAt']&&_0x1695cd['hasOwnProperty']('lastOperationAcceptedAt')&&(object['lastOperationAcceptedAt']=_0x1695cd['lastOperationAcceptedAt']),object;},CollaborativeEditingResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CollaborativeEditingResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CollaborativeEditingResponse';},CollaborativeEditingResponse;}()),$root['GetDocumentDetailsResponse']=(function(){function GetDocumentDetailsResponse(properties){if(properties){for(var _0x2071a9=Object['keys'](properties),_0x1df608=0x0;_0x1df608<_0x2071a9['length'];++_0x1df608)null!=properties[_0x2071a9[_0x1df608]]&&(this[_0x2071a9[_0x1df608]]=properties[_0x2071a9[_0x1df608]]);}}return GetDocumentDetailsResponse['prototype']['lastDocumentSessionId']='',GetDocumentDetailsResponse['prototype']['lastDocumentSessionOperationId']='',GetDocumentDetailsResponse['prototype']['currentDocumentSessionId']='',GetDocumentDetailsResponse['prototype']['currentDocumentSessionVersion']=0x0,GetDocumentDetailsResponse['prototype']['currentDocumentSessionOperationId']='',GetDocumentDetailsResponse['create']=function(properties){return new GetDocumentDetailsResponse(properties);},GetDocumentDetailsResponse['encode']=function(_0x383291,writer){return writer||(writer=$Writer['create']()),null!=_0x383291['lastDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x383291,'lastDocumentSessionId')&&writer['uint32'](0xa)['string'](_0x383291['lastDocumentSessionId']),null!=_0x383291['lastDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x383291,'lastDocumentSessionOperationId')&&writer['uint32'](0x12)['string'](_0x383291['lastDocumentSessionOperationId']),null!=_0x383291['currentDocumentSessionId']&&Object['hasOwnProperty']['call'](_0x383291,'currentDocumentSessionId')&&writer['uint32'](0x1a)['string'](_0x383291['currentDocumentSessionId']),null!=_0x383291['currentDocumentSessionVersion']&&Object['hasOwnProperty']['call'](_0x383291,'currentDocumentSessionVersion')&&writer['uint32'](0x20)['uint32'](_0x383291['currentDocumentSessionVersion']),null!=_0x383291['currentDocumentSessionOperationId']&&Object['hasOwnProperty']['call'](_0x383291,'currentDocumentSessionOperationId')&&writer['uint32'](0x2a)['string'](_0x383291['currentDocumentSessionOperationId']),writer;},GetDocumentDetailsResponse['encodeDelimited']=function(_0x1a9961,writer){return this['encode'](_0x1a9961,writer)['ldelim']();},GetDocumentDetailsResponse['decode']=function(_0x254f3e,length){_0x254f3e instanceof _0x498bd5||(_0x254f3e=_0x498bd5['create'](_0x254f3e));for(var _0x38e95f=void 0x0===length?_0x254f3e['len']:_0x254f3e['pos']+length,_0x4298ae=new $root['GetDocumentDetailsResponse']();_0x254f3e['pos']<_0x38e95f;){var tag=_0x254f3e['uint32']();switch(tag>>>0x3){case 0x1:_0x4298ae['lastDocumentSessionId']=_0x254f3e['string']();break;case 0x2:_0x4298ae['lastDocumentSessionOperationId']=_0x254f3e['string']();break;case 0x3:_0x4298ae['currentDocumentSessionId']=_0x254f3e['string']();break;case 0x4:_0x4298ae['currentDocumentSessionVersion']=_0x254f3e['uint32']();break;case 0x5:_0x4298ae['currentDocumentSessionOperationId']=_0x254f3e['string']();break;default:_0x254f3e['skipType'](0x7&tag);}}return _0x4298ae;},GetDocumentDetailsResponse['decodeDelimited']=function(_0x33d892){return _0x33d892 instanceof _0x498bd5||(_0x33d892=new _0x498bd5(_0x33d892)),this['decode'](_0x33d892,_0x33d892['uint32']());},GetDocumentDetailsResponse['verify']=function(_0x1d7978){return'object'!=typeof _0x1d7978||null===_0x1d7978?'object\x20expected':null!=_0x1d7978['lastDocumentSessionId']&&_0x1d7978['hasOwnProperty']('lastDocumentSessionId')&&!$util['isString'](_0x1d7978['lastDocumentSessionId'])?'lastDocumentSessionId:\x20string\x20expected':null!=_0x1d7978['lastDocumentSessionOperationId']&&_0x1d7978['hasOwnProperty']('lastDocumentSessionOperationId')&&!$util['isString'](_0x1d7978['lastDocumentSessionOperationId'])?'lastDocumentSessionOperationId:\x20string\x20expected':null!=_0x1d7978['currentDocumentSessionId']&&_0x1d7978['hasOwnProperty']('currentDocumentSessionId')&&!$util['isString'](_0x1d7978['currentDocumentSessionId'])?'currentDocumentSessionId:\x20string\x20expected':null!=_0x1d7978['currentDocumentSessionVersion']&&_0x1d7978['hasOwnProperty']('currentDocumentSessionVersion')&&!$util['isInteger'](_0x1d7978['currentDocumentSessionVersion'])?'currentDocumentSessionVersion:\x20integer\x20expected':null!=_0x1d7978['currentDocumentSessionOperationId']&&_0x1d7978['hasOwnProperty']('currentDocumentSessionOperationId')&&!$util['isString'](_0x1d7978['currentDocumentSessionOperationId'])?'currentDocumentSessionOperationId:\x20string\x20expected':null;},GetDocumentDetailsResponse['fromObject']=function(object){if(object instanceof $root['GetDocumentDetailsResponse'])return object;var _0xf7cfce=new $root['GetDocumentDetailsResponse']();return null!=object['lastDocumentSessionId']&&(_0xf7cfce['lastDocumentSessionId']=String(object['lastDocumentSessionId'])),null!=object['lastDocumentSessionOperationId']&&(_0xf7cfce['lastDocumentSessionOperationId']=String(object['lastDocumentSessionOperationId'])),null!=object['currentDocumentSessionId']&&(_0xf7cfce['currentDocumentSessionId']=String(object['currentDocumentSessionId'])),null!=object['currentDocumentSessionVersion']&&(_0xf7cfce['currentDocumentSessionVersion']=object['currentDocumentSessionVersion']>>>0x0),null!=object['currentDocumentSessionOperationId']&&(_0xf7cfce['currentDocumentSessionOperationId']=String(object['currentDocumentSessionOperationId'])),_0xf7cfce;},GetDocumentDetailsResponse['toObject']=function(_0x32ea9e,options){options||(options={});var object={};return options['defaults']&&(object['lastDocumentSessionId']='',object['lastDocumentSessionOperationId']='',object['currentDocumentSessionId']='',object['currentDocumentSessionVersion']=0x0,object['currentDocumentSessionOperationId']=''),null!=_0x32ea9e['lastDocumentSessionId']&&_0x32ea9e['hasOwnProperty']('lastDocumentSessionId')&&(object['lastDocumentSessionId']=_0x32ea9e['lastDocumentSessionId']),null!=_0x32ea9e['lastDocumentSessionOperationId']&&_0x32ea9e['hasOwnProperty']('lastDocumentSessionOperationId')&&(object['lastDocumentSessionOperationId']=_0x32ea9e['lastDocumentSessionOperationId']),null!=_0x32ea9e['currentDocumentSessionId']&&_0x32ea9e['hasOwnProperty']('currentDocumentSessionId')&&(object['currentDocumentSessionId']=_0x32ea9e['currentDocumentSessionId']),null!=_0x32ea9e['currentDocumentSessionVersion']&&_0x32ea9e['hasOwnProperty']('currentDocumentSessionVersion')&&(object['currentDocumentSessionVersion']=_0x32ea9e['currentDocumentSessionVersion']),null!=_0x32ea9e['currentDocumentSessionOperationId']&&_0x32ea9e['hasOwnProperty']('currentDocumentSessionOperationId')&&(object['currentDocumentSessionOperationId']=_0x32ea9e['currentDocumentSessionOperationId']),object;},GetDocumentDetailsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetDocumentDetailsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetDocumentDetailsResponse';},GetDocumentDetailsResponse;}()),$root['CommentDescriptor']=(function(){function CommentDescriptor(properties){if(properties){for(var _0x424b1e=Object['keys'](properties),_0x1295a7=0x0;_0x1295a7<_0x424b1e['length'];++_0x1295a7)null!=properties[_0x424b1e[_0x1295a7]]&&(this[_0x424b1e[_0x1295a7]]=properties[_0x424b1e[_0x1295a7]]);}}return CommentDescriptor['prototype']['commentId']='',CommentDescriptor['prototype']['commentThreadId']='',CommentDescriptor['prototype']['userId']='',CommentDescriptor['prototype']['content']='',CommentDescriptor['prototype']['documentId']='',CommentDescriptor['prototype']['createdAt']='',CommentDescriptor['prototype']['attributes']='',CommentDescriptor['create']=function(properties){return new CommentDescriptor(properties);},CommentDescriptor['encode']=function(_0x158392,writer){return writer||(writer=$Writer['create']()),null!=_0x158392['commentId']&&Object['hasOwnProperty']['call'](_0x158392,'commentId')&&writer['uint32'](0xa)['string'](_0x158392['commentId']),null!=_0x158392['commentThreadId']&&Object['hasOwnProperty']['call'](_0x158392,'commentThreadId')&&writer['uint32'](0x12)['string'](_0x158392['commentThreadId']),null!=_0x158392['userId']&&Object['hasOwnProperty']['call'](_0x158392,'userId')&&writer['uint32'](0x1a)['string'](_0x158392['userId']),null!=_0x158392['content']&&Object['hasOwnProperty']['call'](_0x158392,'content')&&writer['uint32'](0x22)['string'](_0x158392['content']),null!=_0x158392['documentId']&&Object['hasOwnProperty']['call'](_0x158392,'documentId')&&writer['uint32'](0x2a)['string'](_0x158392['documentId']),null!=_0x158392['createdAt']&&Object['hasOwnProperty']['call'](_0x158392,'createdAt')&&writer['uint32'](0x32)['string'](_0x158392['createdAt']),null!=_0x158392['attributes']&&Object['hasOwnProperty']['call'](_0x158392,'attributes')&&writer['uint32'](0x3a)['string'](_0x158392['attributes']),writer;},CommentDescriptor['encodeDelimited']=function(_0x2897c2,writer){return this['encode'](_0x2897c2,writer)['ldelim']();},CommentDescriptor['decode']=function(_0x133d80,length){_0x133d80 instanceof _0x498bd5||(_0x133d80=_0x498bd5['create'](_0x133d80));for(var _0x4e39e8=void 0x0===length?_0x133d80['len']:_0x133d80['pos']+length,_0x7971b3=new $root['CommentDescriptor']();_0x133d80['pos']<_0x4e39e8;){var tag=_0x133d80['uint32']();switch(tag>>>0x3){case 0x1:_0x7971b3['commentId']=_0x133d80['string']();break;case 0x2:_0x7971b3['commentThreadId']=_0x133d80['string']();break;case 0x3:_0x7971b3['userId']=_0x133d80['string']();break;case 0x4:_0x7971b3['content']=_0x133d80['string']();break;case 0x5:_0x7971b3['documentId']=_0x133d80['string']();break;case 0x6:_0x7971b3['createdAt']=_0x133d80['string']();break;case 0x7:_0x7971b3['attributes']=_0x133d80['string']();break;default:_0x133d80['skipType'](0x7&tag);}}return _0x7971b3;},CommentDescriptor['decodeDelimited']=function(_0x163e97){return _0x163e97 instanceof _0x498bd5||(_0x163e97=new _0x498bd5(_0x163e97)),this['decode'](_0x163e97,_0x163e97['uint32']());},CommentDescriptor['verify']=function(_0x47d16d){return'object'!=typeof _0x47d16d||null===_0x47d16d?'object\x20expected':null!=_0x47d16d['commentId']&&_0x47d16d['hasOwnProperty']('commentId')&&!$util['isString'](_0x47d16d['commentId'])?'commentId:\x20string\x20expected':null!=_0x47d16d['commentThreadId']&&_0x47d16d['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x47d16d['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x47d16d['userId']&&_0x47d16d['hasOwnProperty']('userId')&&!$util['isString'](_0x47d16d['userId'])?'userId:\x20string\x20expected':null!=_0x47d16d['content']&&_0x47d16d['hasOwnProperty']('content')&&!$util['isString'](_0x47d16d['content'])?'content:\x20string\x20expected':null!=_0x47d16d['documentId']&&_0x47d16d['hasOwnProperty']('documentId')&&!$util['isString'](_0x47d16d['documentId'])?'documentId:\x20string\x20expected':null!=_0x47d16d['createdAt']&&_0x47d16d['hasOwnProperty']('createdAt')&&!$util['isString'](_0x47d16d['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x47d16d['attributes']&&_0x47d16d['hasOwnProperty']('attributes')&&!$util['isString'](_0x47d16d['attributes'])?'attributes:\x20string\x20expected':null;},CommentDescriptor['fromObject']=function(object){if(object instanceof $root['CommentDescriptor'])return object;var _0x5c61f4=new $root['CommentDescriptor']();return null!=object['commentId']&&(_0x5c61f4['commentId']=String(object['commentId'])),null!=object['commentThreadId']&&(_0x5c61f4['commentThreadId']=String(object['commentThreadId'])),null!=object['userId']&&(_0x5c61f4['userId']=String(object['userId'])),null!=object['content']&&(_0x5c61f4['content']=String(object['content'])),null!=object['documentId']&&(_0x5c61f4['documentId']=String(object['documentId'])),null!=object['createdAt']&&(_0x5c61f4['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x5c61f4['attributes']=String(object['attributes'])),_0x5c61f4;},CommentDescriptor['toObject']=function(_0x1575da,options){options||(options={});var object={};return options['defaults']&&(object['commentId']='',object['commentThreadId']='',object['userId']='',object['content']='',object['documentId']='',object['createdAt']='',object['attributes']=''),null!=_0x1575da['commentId']&&_0x1575da['hasOwnProperty']('commentId')&&(object['commentId']=_0x1575da['commentId']),null!=_0x1575da['commentThreadId']&&_0x1575da['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x1575da['commentThreadId']),null!=_0x1575da['userId']&&_0x1575da['hasOwnProperty']('userId')&&(object['userId']=_0x1575da['userId']),null!=_0x1575da['content']&&_0x1575da['hasOwnProperty']('content')&&(object['content']=_0x1575da['content']),null!=_0x1575da['documentId']&&_0x1575da['hasOwnProperty']('documentId')&&(object['documentId']=_0x1575da['documentId']),null!=_0x1575da['createdAt']&&_0x1575da['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x1575da['createdAt']),null!=_0x1575da['attributes']&&_0x1575da['hasOwnProperty']('attributes')&&(object['attributes']=_0x1575da['attributes']),object;},CommentDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentDescriptor';},CommentDescriptor;}()),$root['CommentsThreadDescriptor']=(function(){function CommentsThreadDescriptor(properties){if(this['comments']=[],properties){for(var _0x2ef217=Object['keys'](properties),_0x2cee7e=0x0;_0x2cee7e<_0x2ef217['length'];++_0x2cee7e)null!=properties[_0x2ef217[_0x2cee7e]]&&(this[_0x2ef217[_0x2cee7e]]=properties[_0x2ef217[_0x2cee7e]]);}}return CommentsThreadDescriptor['prototype']['commentThreadId']='',CommentsThreadDescriptor['prototype']['comments']=$util['emptyArray'],CommentsThreadDescriptor['prototype']['resolvedAt']='',CommentsThreadDescriptor['prototype']['resolvedBy']='',CommentsThreadDescriptor['prototype']['context']='',CommentsThreadDescriptor['prototype']['createdAt']='',CommentsThreadDescriptor['prototype']['deletedAt']='',CommentsThreadDescriptor['prototype']['attributes']='',CommentsThreadDescriptor['prototype']['unlinkedAt']='',CommentsThreadDescriptor['create']=function(properties){return new CommentsThreadDescriptor(properties);},CommentsThreadDescriptor['encode']=function(_0x4a553e,writer){if(writer||(writer=$Writer['create']()),null!=_0x4a553e['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4a553e,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x4a553e['commentThreadId']),null!=_0x4a553e['comments']&&_0x4a553e['comments']['length']){for(var _0x4e6c8d=0x0;_0x4e6c8d<_0x4a553e['comments']['length'];++_0x4e6c8d)$root['CommentDescriptor']['encode'](_0x4a553e['comments'][_0x4e6c8d],writer['uint32'](0x12)['fork']())['ldelim']();}return null!=_0x4a553e['resolvedAt']&&Object['hasOwnProperty']['call'](_0x4a553e,'resolvedAt')&&writer['uint32'](0x1a)['string'](_0x4a553e['resolvedAt']),null!=_0x4a553e['resolvedBy']&&Object['hasOwnProperty']['call'](_0x4a553e,'resolvedBy')&&writer['uint32'](0x22)['string'](_0x4a553e['resolvedBy']),null!=_0x4a553e['context']&&Object['hasOwnProperty']['call'](_0x4a553e,'context')&&writer['uint32'](0x2a)['string'](_0x4a553e['context']),null!=_0x4a553e['createdAt']&&Object['hasOwnProperty']['call'](_0x4a553e,'createdAt')&&writer['uint32'](0x32)['string'](_0x4a553e['createdAt']),null!=_0x4a553e['deletedAt']&&Object['hasOwnProperty']['call'](_0x4a553e,'deletedAt')&&writer['uint32'](0x3a)['string'](_0x4a553e['deletedAt']),null!=_0x4a553e['attributes']&&Object['hasOwnProperty']['call'](_0x4a553e,'attributes')&&writer['uint32'](0x42)['string'](_0x4a553e['attributes']),null!=_0x4a553e['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x4a553e,'unlinkedAt')&&writer['uint32'](0x4a)['string'](_0x4a553e['unlinkedAt']),writer;},CommentsThreadDescriptor['encodeDelimited']=function(_0x329a88,writer){return this['encode'](_0x329a88,writer)['ldelim']();},CommentsThreadDescriptor['decode']=function(_0xa401e8,length){_0xa401e8 instanceof _0x498bd5||(_0xa401e8=_0x498bd5['create'](_0xa401e8));for(var _0x2899c1=void 0x0===length?_0xa401e8['len']:_0xa401e8['pos']+length,_0xddf2e2=new $root['CommentsThreadDescriptor']();_0xa401e8['pos']<_0x2899c1;){var tag=_0xa401e8['uint32']();switch(tag>>>0x3){case 0x1:_0xddf2e2['commentThreadId']=_0xa401e8['string']();break;case 0x2:_0xddf2e2['comments']&&_0xddf2e2['comments']['length']||(_0xddf2e2['comments']=[]),_0xddf2e2['comments']['push']($root['CommentDescriptor']['decode'](_0xa401e8,_0xa401e8['uint32']()));break;case 0x3:_0xddf2e2['resolvedAt']=_0xa401e8['string']();break;case 0x4:_0xddf2e2['resolvedBy']=_0xa401e8['string']();break;case 0x5:_0xddf2e2['context']=_0xa401e8['string']();break;case 0x6:_0xddf2e2['createdAt']=_0xa401e8['string']();break;case 0x7:_0xddf2e2['deletedAt']=_0xa401e8['string']();break;case 0x8:_0xddf2e2['attributes']=_0xa401e8['string']();break;case 0x9:_0xddf2e2['unlinkedAt']=_0xa401e8['string']();break;default:_0xa401e8['skipType'](0x7&tag);}}return _0xddf2e2;},CommentsThreadDescriptor['decodeDelimited']=function(_0x3933d2){return _0x3933d2 instanceof _0x498bd5||(_0x3933d2=new _0x498bd5(_0x3933d2)),this['decode'](_0x3933d2,_0x3933d2['uint32']());},CommentsThreadDescriptor['verify']=function(_0x22c6f3){if('object'!=typeof _0x22c6f3||null===_0x22c6f3)return'object\x20expected';if(null!=_0x22c6f3['commentThreadId']&&_0x22c6f3['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x22c6f3['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x22c6f3['comments']&&_0x22c6f3['hasOwnProperty']('comments')){if(!Array['isArray'](_0x22c6f3['comments']))return'comments:\x20array\x20expected';for(var _0x27d1ca=0x0;_0x27d1ca<_0x22c6f3['comments']['length'];++_0x27d1ca){var _0x5e6832=$root['CommentDescriptor']['verify'](_0x22c6f3['comments'][_0x27d1ca]);if(_0x5e6832)return'comments.'+_0x5e6832;}}return null!=_0x22c6f3['resolvedAt']&&_0x22c6f3['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x22c6f3['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x22c6f3['resolvedBy']&&_0x22c6f3['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x22c6f3['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x22c6f3['context']&&_0x22c6f3['hasOwnProperty']('context')&&!$util['isString'](_0x22c6f3['context'])?'context:\x20string\x20expected':null!=_0x22c6f3['createdAt']&&_0x22c6f3['hasOwnProperty']('createdAt')&&!$util['isString'](_0x22c6f3['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x22c6f3['deletedAt']&&_0x22c6f3['hasOwnProperty']('deletedAt')&&!$util['isString'](_0x22c6f3['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x22c6f3['attributes']&&_0x22c6f3['hasOwnProperty']('attributes')&&!$util['isString'](_0x22c6f3['attributes'])?'attributes:\x20string\x20expected':null!=_0x22c6f3['unlinkedAt']&&_0x22c6f3['hasOwnProperty']('unlinkedAt')&&!$util['isString'](_0x22c6f3['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsThreadDescriptor['fromObject']=function(object){if(object instanceof $root['CommentsThreadDescriptor'])return object;var _0x5dbad3=new $root['CommentsThreadDescriptor']();if(null!=object['commentThreadId']&&(_0x5dbad3['commentThreadId']=String(object['commentThreadId'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsThreadDescriptor.comments:\x20array\x20expected');_0x5dbad3['comments']=[];for(var _0x191e9b=0x0;_0x191e9b<object['comments']['length'];++_0x191e9b){if('object'!=typeof object['comments'][_0x191e9b])throw TypeError('.CommentsThreadDescriptor.comments:\x20object\x20expected');_0x5dbad3['comments'][_0x191e9b]=$root['CommentDescriptor']['fromObject'](object['comments'][_0x191e9b]);}}return null!=object['resolvedAt']&&(_0x5dbad3['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x5dbad3['resolvedBy']=String(object['resolvedBy'])),null!=object['context']&&(_0x5dbad3['context']=String(object['context'])),null!=object['createdAt']&&(_0x5dbad3['createdAt']=String(object['createdAt'])),null!=object['deletedAt']&&(_0x5dbad3['deletedAt']=String(object['deletedAt'])),null!=object['attributes']&&(_0x5dbad3['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x5dbad3['unlinkedAt']=String(object['unlinkedAt'])),_0x5dbad3;},CommentsThreadDescriptor['toObject']=function(_0x33bba5,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[]),options['defaults']&&(object['commentThreadId']='',object['resolvedAt']='',object['resolvedBy']='',object['context']='',object['createdAt']='',object['deletedAt']='',object['attributes']='',object['unlinkedAt']=''),null!=_0x33bba5['commentThreadId']&&_0x33bba5['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x33bba5['commentThreadId']),_0x33bba5['comments']&&_0x33bba5['comments']['length']){object['comments']=[];for(var _0x21911d=0x0;_0x21911d<_0x33bba5['comments']['length'];++_0x21911d)object['comments'][_0x21911d]=$root['CommentDescriptor']['toObject'](_0x33bba5['comments'][_0x21911d],options);}return null!=_0x33bba5['resolvedAt']&&_0x33bba5['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x33bba5['resolvedAt']),null!=_0x33bba5['resolvedBy']&&_0x33bba5['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x33bba5['resolvedBy']),null!=_0x33bba5['context']&&_0x33bba5['hasOwnProperty']('context')&&(object['context']=_0x33bba5['context']),null!=_0x33bba5['createdAt']&&_0x33bba5['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x33bba5['createdAt']),null!=_0x33bba5['deletedAt']&&_0x33bba5['hasOwnProperty']('deletedAt')&&(object['deletedAt']=_0x33bba5['deletedAt']),null!=_0x33bba5['attributes']&&_0x33bba5['hasOwnProperty']('attributes')&&(object['attributes']=_0x33bba5['attributes']),null!=_0x33bba5['unlinkedAt']&&_0x33bba5['hasOwnProperty']('unlinkedAt')&&(object['unlinkedAt']=_0x33bba5['unlinkedAt']),object;},CommentsThreadDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsThreadDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsThreadDescriptor';},CommentsThreadDescriptor;}()),$root['CommentThreadAddedCommentDescriptor']=(function(){function CommentThreadAddedCommentDescriptor(properties){if(properties){for(var _0x52767f=Object['keys'](properties),_0x3d25ba=0x0;_0x3d25ba<_0x52767f['length'];++_0x3d25ba)null!=properties[_0x52767f[_0x3d25ba]]&&(this[_0x52767f[_0x3d25ba]]=properties[_0x52767f[_0x3d25ba]]);}}return CommentThreadAddedCommentDescriptor['prototype']['commentId']='',CommentThreadAddedCommentDescriptor['prototype']['createdAt']='',CommentThreadAddedCommentDescriptor['create']=function(properties){return new CommentThreadAddedCommentDescriptor(properties);},CommentThreadAddedCommentDescriptor['encode']=function(_0x311a69,writer){return writer||(writer=$Writer['create']()),null!=_0x311a69['commentId']&&Object['hasOwnProperty']['call'](_0x311a69,'commentId')&&writer['uint32'](0xa)['string'](_0x311a69['commentId']),null!=_0x311a69['createdAt']&&Object['hasOwnProperty']['call'](_0x311a69,'createdAt')&&writer['uint32'](0x12)['string'](_0x311a69['createdAt']),writer;},CommentThreadAddedCommentDescriptor['encodeDelimited']=function(_0x5ed82f,writer){return this['encode'](_0x5ed82f,writer)['ldelim']();},CommentThreadAddedCommentDescriptor['decode']=function(_0x3d704f,length){_0x3d704f instanceof _0x498bd5||(_0x3d704f=_0x498bd5['create'](_0x3d704f));for(var _0x403f3b=void 0x0===length?_0x3d704f['len']:_0x3d704f['pos']+length,_0x391c02=new $root['CommentThreadAddedCommentDescriptor']();_0x3d704f['pos']<_0x403f3b;){var tag=_0x3d704f['uint32']();switch(tag>>>0x3){case 0x1:_0x391c02['commentId']=_0x3d704f['string']();break;case 0x2:_0x391c02['createdAt']=_0x3d704f['string']();break;default:_0x3d704f['skipType'](0x7&tag);}}return _0x391c02;},CommentThreadAddedCommentDescriptor['decodeDelimited']=function(_0x44d88b){return _0x44d88b instanceof _0x498bd5||(_0x44d88b=new _0x498bd5(_0x44d88b)),this['decode'](_0x44d88b,_0x44d88b['uint32']());},CommentThreadAddedCommentDescriptor['verify']=function(_0x35021f){return'object'!=typeof _0x35021f||null===_0x35021f?'object\x20expected':null!=_0x35021f['commentId']&&_0x35021f['hasOwnProperty']('commentId')&&!$util['isString'](_0x35021f['commentId'])?'commentId:\x20string\x20expected':null!=_0x35021f['createdAt']&&_0x35021f['hasOwnProperty']('createdAt')&&!$util['isString'](_0x35021f['createdAt'])?'createdAt:\x20string\x20expected':null;},CommentThreadAddedCommentDescriptor['fromObject']=function(object){if(object instanceof $root['CommentThreadAddedCommentDescriptor'])return object;var _0x559027=new $root['CommentThreadAddedCommentDescriptor']();return null!=object['commentId']&&(_0x559027['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0x559027['createdAt']=String(object['createdAt'])),_0x559027;},CommentThreadAddedCommentDescriptor['toObject']=function(_0x463b1e,options){options||(options={});var object={};return options['defaults']&&(object['commentId']='',object['createdAt']=''),null!=_0x463b1e['commentId']&&_0x463b1e['hasOwnProperty']('commentId')&&(object['commentId']=_0x463b1e['commentId']),null!=_0x463b1e['createdAt']&&_0x463b1e['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x463b1e['createdAt']),object;},CommentThreadAddedCommentDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentThreadAddedCommentDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentThreadAddedCommentDescriptor';},CommentThreadAddedCommentDescriptor;}()),$root['CommentsV2AddCommentMessage']=(function(){function CommentsV2AddCommentMessage(properties){if(properties){for(var _0x52b172=Object['keys'](properties),_0x57d41d=0x0;_0x57d41d<_0x52b172['length'];++_0x57d41d)null!=properties[_0x52b172[_0x57d41d]]&&(this[_0x52b172[_0x57d41d]]=properties[_0x52b172[_0x57d41d]]);}}return CommentsV2AddCommentMessage['prototype']['commentThreadId']='',CommentsV2AddCommentMessage['prototype']['content']='',CommentsV2AddCommentMessage['prototype']['documentId']='',CommentsV2AddCommentMessage['prototype']['commentId']='',CommentsV2AddCommentMessage['prototype']['createdAt']='',CommentsV2AddCommentMessage['prototype']['userId']='',CommentsV2AddCommentMessage['prototype']['attributes']='',CommentsV2AddCommentMessage['prototype']['commentThread']=null,CommentsV2AddCommentMessage['create']=function(properties){return new CommentsV2AddCommentMessage(properties);},CommentsV2AddCommentMessage['encode']=function(_0x126714,writer){return writer||(writer=$Writer['create']()),null!=_0x126714['commentThreadId']&&Object['hasOwnProperty']['call'](_0x126714,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x126714['commentThreadId']),null!=_0x126714['content']&&Object['hasOwnProperty']['call'](_0x126714,'content')&&writer['uint32'](0x12)['string'](_0x126714['content']),null!=_0x126714['documentId']&&Object['hasOwnProperty']['call'](_0x126714,'documentId')&&writer['uint32'](0x1a)['string'](_0x126714['documentId']),null!=_0x126714['commentId']&&Object['hasOwnProperty']['call'](_0x126714,'commentId')&&writer['uint32'](0x22)['string'](_0x126714['commentId']),null!=_0x126714['createdAt']&&Object['hasOwnProperty']['call'](_0x126714,'createdAt')&&writer['uint32'](0x2a)['string'](_0x126714['createdAt']),null!=_0x126714['userId']&&Object['hasOwnProperty']['call'](_0x126714,'userId')&&writer['uint32'](0x32)['string'](_0x126714['userId']),null!=_0x126714['attributes']&&Object['hasOwnProperty']['call'](_0x126714,'attributes')&&writer['uint32'](0x3a)['string'](_0x126714['attributes']),null!=_0x126714['commentThread']&&Object['hasOwnProperty']['call'](_0x126714,'commentThread')&&$root['CommentsThreadDescriptor']['encode'](_0x126714['commentThread'],writer['uint32'](0x42)['fork']())['ldelim'](),writer;},CommentsV2AddCommentMessage['encodeDelimited']=function(_0x1cf590,writer){return this['encode'](_0x1cf590,writer)['ldelim']();},CommentsV2AddCommentMessage['decode']=function(_0x4f9724,length){_0x4f9724 instanceof _0x498bd5||(_0x4f9724=_0x498bd5['create'](_0x4f9724));for(var _0x599b91=void 0x0===length?_0x4f9724['len']:_0x4f9724['pos']+length,_0x550950=new $root['CommentsV2AddCommentMessage']();_0x4f9724['pos']<_0x599b91;){var tag=_0x4f9724['uint32']();switch(tag>>>0x3){case 0x1:_0x550950['commentThreadId']=_0x4f9724['string']();break;case 0x2:_0x550950['content']=_0x4f9724['string']();break;case 0x3:_0x550950['documentId']=_0x4f9724['string']();break;case 0x4:_0x550950['commentId']=_0x4f9724['string']();break;case 0x5:_0x550950['createdAt']=_0x4f9724['string']();break;case 0x6:_0x550950['userId']=_0x4f9724['string']();break;case 0x7:_0x550950['attributes']=_0x4f9724['string']();break;case 0x8:_0x550950['commentThread']=$root['CommentsThreadDescriptor']['decode'](_0x4f9724,_0x4f9724['uint32']());break;default:_0x4f9724['skipType'](0x7&tag);}}return _0x550950;},CommentsV2AddCommentMessage['decodeDelimited']=function(_0x5b0186){return _0x5b0186 instanceof _0x498bd5||(_0x5b0186=new _0x498bd5(_0x5b0186)),this['decode'](_0x5b0186,_0x5b0186['uint32']());},CommentsV2AddCommentMessage['verify']=function(_0x23c13d){if('object'!=typeof _0x23c13d||null===_0x23c13d)return'object\x20expected';if(null!=_0x23c13d['commentThreadId']&&_0x23c13d['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x23c13d['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x23c13d['content']&&_0x23c13d['hasOwnProperty']('content')&&!$util['isString'](_0x23c13d['content']))return'content:\x20string\x20expected';if(null!=_0x23c13d['documentId']&&_0x23c13d['hasOwnProperty']('documentId')&&!$util['isString'](_0x23c13d['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x23c13d['commentId']&&_0x23c13d['hasOwnProperty']('commentId')&&!$util['isString'](_0x23c13d['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x23c13d['createdAt']&&_0x23c13d['hasOwnProperty']('createdAt')&&!$util['isString'](_0x23c13d['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x23c13d['userId']&&_0x23c13d['hasOwnProperty']('userId')&&!$util['isString'](_0x23c13d['userId']))return'userId:\x20string\x20expected';if(null!=_0x23c13d['attributes']&&_0x23c13d['hasOwnProperty']('attributes')&&!$util['isString'](_0x23c13d['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x23c13d['commentThread']&&_0x23c13d['hasOwnProperty']('commentThread')){var _0x3fe40a=$root['CommentsThreadDescriptor']['verify'](_0x23c13d['commentThread']);if(_0x3fe40a)return'commentThread.'+_0x3fe40a;}return null;},CommentsV2AddCommentMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentMessage'])return object;var _0x1223c7=new $root['CommentsV2AddCommentMessage']();if(null!=object['commentThreadId']&&(_0x1223c7['commentThreadId']=String(object['commentThreadId'])),null!=object['content']&&(_0x1223c7['content']=String(object['content'])),null!=object['documentId']&&(_0x1223c7['documentId']=String(object['documentId'])),null!=object['commentId']&&(_0x1223c7['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0x1223c7['createdAt']=String(object['createdAt'])),null!=object['userId']&&(_0x1223c7['userId']=String(object['userId'])),null!=object['attributes']&&(_0x1223c7['attributes']=String(object['attributes'])),null!=object['commentThread']){if('object'!=typeof object['commentThread'])throw TypeError('.CommentsV2AddCommentMessage.commentThread:\x20object\x20expected');_0x1223c7['commentThread']=$root['CommentsThreadDescriptor']['fromObject'](object['commentThread']);}return _0x1223c7;},CommentsV2AddCommentMessage['toObject']=function(_0x17bec5,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['content']='',object['documentId']='',object['commentId']='',object['createdAt']='',object['userId']='',object['attributes']='',object['commentThread']=null),null!=_0x17bec5['commentThreadId']&&_0x17bec5['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x17bec5['commentThreadId']),null!=_0x17bec5['content']&&_0x17bec5['hasOwnProperty']('content')&&(object['content']=_0x17bec5['content']),null!=_0x17bec5['documentId']&&_0x17bec5['hasOwnProperty']('documentId')&&(object['documentId']=_0x17bec5['documentId']),null!=_0x17bec5['commentId']&&_0x17bec5['hasOwnProperty']('commentId')&&(object['commentId']=_0x17bec5['commentId']),null!=_0x17bec5['createdAt']&&_0x17bec5['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x17bec5['createdAt']),null!=_0x17bec5['userId']&&_0x17bec5['hasOwnProperty']('userId')&&(object['userId']=_0x17bec5['userId']),null!=_0x17bec5['attributes']&&_0x17bec5['hasOwnProperty']('attributes')&&(object['attributes']=_0x17bec5['attributes']),null!=_0x17bec5['commentThread']&&_0x17bec5['hasOwnProperty']('commentThread')&&(object['commentThread']=$root['CommentsThreadDescriptor']['toObject'](_0x17bec5['commentThread'],options)),object;},CommentsV2AddCommentMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentMessage';},CommentsV2AddCommentMessage;}()),$root['CommentsV2AddCommentThreadMessage']=(function(){function CommentsV2AddCommentThreadMessage(properties){if(this['comments']=[],properties){for(var _0x3fb302=Object['keys'](properties),_0x372770=0x0;_0x372770<_0x3fb302['length'];++_0x372770)null!=properties[_0x3fb302[_0x372770]]&&(this[_0x3fb302[_0x372770]]=properties[_0x3fb302[_0x372770]]);}}return CommentsV2AddCommentThreadMessage['prototype']['documentId']='',CommentsV2AddCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2AddCommentThreadMessage['prototype']['context']='',CommentsV2AddCommentThreadMessage['prototype']['createdAt']='',CommentsV2AddCommentThreadMessage['prototype']['resolvedAt']='',CommentsV2AddCommentThreadMessage['prototype']['resolvedBy']='',CommentsV2AddCommentThreadMessage['prototype']['attributes']='',CommentsV2AddCommentThreadMessage['prototype']['deletedAt']='',CommentsV2AddCommentThreadMessage['prototype']['comments']=$util['emptyArray'],CommentsV2AddCommentThreadMessage['create']=function(properties){return new CommentsV2AddCommentThreadMessage(properties);},CommentsV2AddCommentThreadMessage['encode']=function(_0x2613a4,writer){if(writer||(writer=$Writer['create']()),null!=_0x2613a4['documentId']&&Object['hasOwnProperty']['call'](_0x2613a4,'documentId')&&writer['uint32'](0xa)['string'](_0x2613a4['documentId']),null!=_0x2613a4['commentThreadId']&&Object['hasOwnProperty']['call'](_0x2613a4,'commentThreadId')&&writer['uint32'](0x12)['string'](_0x2613a4['commentThreadId']),null!=_0x2613a4['context']&&Object['hasOwnProperty']['call'](_0x2613a4,'context')&&writer['uint32'](0x1a)['string'](_0x2613a4['context']),null!=_0x2613a4['createdAt']&&Object['hasOwnProperty']['call'](_0x2613a4,'createdAt')&&writer['uint32'](0x22)['string'](_0x2613a4['createdAt']),null!=_0x2613a4['resolvedAt']&&Object['hasOwnProperty']['call'](_0x2613a4,'resolvedAt')&&writer['uint32'](0x2a)['string'](_0x2613a4['resolvedAt']),null!=_0x2613a4['resolvedBy']&&Object['hasOwnProperty']['call'](_0x2613a4,'resolvedBy')&&writer['uint32'](0x32)['string'](_0x2613a4['resolvedBy']),null!=_0x2613a4['attributes']&&Object['hasOwnProperty']['call'](_0x2613a4,'attributes')&&writer['uint32'](0x3a)['string'](_0x2613a4['attributes']),null!=_0x2613a4['deletedAt']&&Object['hasOwnProperty']['call'](_0x2613a4,'deletedAt')&&writer['uint32'](0x42)['string'](_0x2613a4['deletedAt']),null!=_0x2613a4['comments']&&_0x2613a4['comments']['length']){for(var _0x2814fe=0x0;_0x2814fe<_0x2613a4['comments']['length'];++_0x2814fe)$root['CommentDescriptor']['encode'](_0x2613a4['comments'][_0x2814fe],writer['uint32'](0x4a)['fork']())['ldelim']();}return writer;},CommentsV2AddCommentThreadMessage['encodeDelimited']=function(_0x5efc39,writer){return this['encode'](_0x5efc39,writer)['ldelim']();},CommentsV2AddCommentThreadMessage['decode']=function(_0x4b6984,length){_0x4b6984 instanceof _0x498bd5||(_0x4b6984=_0x498bd5['create'](_0x4b6984));for(var _0x453abc=void 0x0===length?_0x4b6984['len']:_0x4b6984['pos']+length,_0x188f51=new $root['CommentsV2AddCommentThreadMessage']();_0x4b6984['pos']<_0x453abc;){var tag=_0x4b6984['uint32']();switch(tag>>>0x3){case 0x1:_0x188f51['documentId']=_0x4b6984['string']();break;case 0x2:_0x188f51['commentThreadId']=_0x4b6984['string']();break;case 0x3:_0x188f51['context']=_0x4b6984['string']();break;case 0x4:_0x188f51['createdAt']=_0x4b6984['string']();break;case 0x5:_0x188f51['resolvedAt']=_0x4b6984['string']();break;case 0x6:_0x188f51['resolvedBy']=_0x4b6984['string']();break;case 0x7:_0x188f51['attributes']=_0x4b6984['string']();break;case 0x8:_0x188f51['deletedAt']=_0x4b6984['string']();break;case 0x9:_0x188f51['comments']&&_0x188f51['comments']['length']||(_0x188f51['comments']=[]),_0x188f51['comments']['push']($root['CommentDescriptor']['decode'](_0x4b6984,_0x4b6984['uint32']()));break;default:_0x4b6984['skipType'](0x7&tag);}}return _0x188f51;},CommentsV2AddCommentThreadMessage['decodeDelimited']=function(_0x42aa38){return _0x42aa38 instanceof _0x498bd5||(_0x42aa38=new _0x498bd5(_0x42aa38)),this['decode'](_0x42aa38,_0x42aa38['uint32']());},CommentsV2AddCommentThreadMessage['verify']=function(_0x34d767){if('object'!=typeof _0x34d767||null===_0x34d767)return'object\x20expected';if(null!=_0x34d767['documentId']&&_0x34d767['hasOwnProperty']('documentId')&&!$util['isString'](_0x34d767['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x34d767['commentThreadId']&&_0x34d767['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x34d767['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x34d767['context']&&_0x34d767['hasOwnProperty']('context')&&!$util['isString'](_0x34d767['context']))return'context:\x20string\x20expected';if(null!=_0x34d767['createdAt']&&_0x34d767['hasOwnProperty']('createdAt')&&!$util['isString'](_0x34d767['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x34d767['resolvedAt']&&_0x34d767['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x34d767['resolvedAt']))return'resolvedAt:\x20string\x20expected';if(null!=_0x34d767['resolvedBy']&&_0x34d767['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x34d767['resolvedBy']))return'resolvedBy:\x20string\x20expected';if(null!=_0x34d767['attributes']&&_0x34d767['hasOwnProperty']('attributes')&&!$util['isString'](_0x34d767['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x34d767['deletedAt']&&_0x34d767['hasOwnProperty']('deletedAt')&&!$util['isString'](_0x34d767['deletedAt']))return'deletedAt:\x20string\x20expected';if(null!=_0x34d767['comments']&&_0x34d767['hasOwnProperty']('comments')){if(!Array['isArray'](_0x34d767['comments']))return'comments:\x20array\x20expected';for(var _0x4dbc3a=0x0;_0x4dbc3a<_0x34d767['comments']['length'];++_0x4dbc3a){var _0x55a494=$root['CommentDescriptor']['verify'](_0x34d767['comments'][_0x4dbc3a]);if(_0x55a494)return'comments.'+_0x55a494;}}return null;},CommentsV2AddCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentThreadMessage'])return object;var _0x745e00=new $root['CommentsV2AddCommentThreadMessage']();if(null!=object['documentId']&&(_0x745e00['documentId']=String(object['documentId'])),null!=object['commentThreadId']&&(_0x745e00['commentThreadId']=String(object['commentThreadId'])),null!=object['context']&&(_0x745e00['context']=String(object['context'])),null!=object['createdAt']&&(_0x745e00['createdAt']=String(object['createdAt'])),null!=object['resolvedAt']&&(_0x745e00['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x745e00['resolvedBy']=String(object['resolvedBy'])),null!=object['attributes']&&(_0x745e00['attributes']=String(object['attributes'])),null!=object['deletedAt']&&(_0x745e00['deletedAt']=String(object['deletedAt'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20array\x20expected');_0x745e00['comments']=[];for(var _0x327469=0x0;_0x327469<object['comments']['length'];++_0x327469){if('object'!=typeof object['comments'][_0x327469])throw TypeError('.CommentsV2AddCommentThreadMessage.comments:\x20object\x20expected');_0x745e00['comments'][_0x327469]=$root['CommentDescriptor']['fromObject'](object['comments'][_0x327469]);}}return _0x745e00;},CommentsV2AddCommentThreadMessage['toObject']=function(_0x2912b7,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[]),options['defaults']&&(object['documentId']='',object['commentThreadId']='',object['context']='',object['createdAt']='',object['resolvedAt']='',object['resolvedBy']='',object['attributes']='',object['deletedAt']=''),null!=_0x2912b7['documentId']&&_0x2912b7['hasOwnProperty']('documentId')&&(object['documentId']=_0x2912b7['documentId']),null!=_0x2912b7['commentThreadId']&&_0x2912b7['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x2912b7['commentThreadId']),null!=_0x2912b7['context']&&_0x2912b7['hasOwnProperty']('context')&&(object['context']=_0x2912b7['context']),null!=_0x2912b7['createdAt']&&_0x2912b7['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x2912b7['createdAt']),null!=_0x2912b7['resolvedAt']&&_0x2912b7['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x2912b7['resolvedAt']),null!=_0x2912b7['resolvedBy']&&_0x2912b7['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x2912b7['resolvedBy']),null!=_0x2912b7['attributes']&&_0x2912b7['hasOwnProperty']('attributes')&&(object['attributes']=_0x2912b7['attributes']),null!=_0x2912b7['deletedAt']&&_0x2912b7['hasOwnProperty']('deletedAt')&&(object['deletedAt']=_0x2912b7['deletedAt']),_0x2912b7['comments']&&_0x2912b7['comments']['length']){object['comments']=[];for(var _0x5d9af7=0x0;_0x5d9af7<_0x2912b7['comments']['length'];++_0x5d9af7)object['comments'][_0x5d9af7]=$root['CommentDescriptor']['toObject'](_0x2912b7['comments'][_0x5d9af7],options);}return object;},CommentsV2AddCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentThreadMessage';},CommentsV2AddCommentThreadMessage;}()),$root['CommentsV2ReopenCommentThreadMessage']=(function(){function CommentsV2ReopenCommentThreadMessage(properties){if(properties){for(var _0x58d1f4=Object['keys'](properties),_0x1bebfe=0x0;_0x1bebfe<_0x58d1f4['length'];++_0x1bebfe)null!=properties[_0x58d1f4[_0x1bebfe]]&&(this[_0x58d1f4[_0x1bebfe]]=properties[_0x58d1f4[_0x1bebfe]]);}}return CommentsV2ReopenCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2ReopenCommentThreadMessage['prototype']['documentId']='',CommentsV2ReopenCommentThreadMessage['create']=function(properties){return new CommentsV2ReopenCommentThreadMessage(properties);},CommentsV2ReopenCommentThreadMessage['encode']=function(_0x527359,writer){return writer||(writer=$Writer['create']()),null!=_0x527359['commentThreadId']&&Object['hasOwnProperty']['call'](_0x527359,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x527359['commentThreadId']),null!=_0x527359['documentId']&&Object['hasOwnProperty']['call'](_0x527359,'documentId')&&writer['uint32'](0x12)['string'](_0x527359['documentId']),writer;},CommentsV2ReopenCommentThreadMessage['encodeDelimited']=function(_0x4aa0ac,writer){return this['encode'](_0x4aa0ac,writer)['ldelim']();},CommentsV2ReopenCommentThreadMessage['decode']=function(_0x2efe24,length){_0x2efe24 instanceof _0x498bd5||(_0x2efe24=_0x498bd5['create'](_0x2efe24));for(var _0x4dae8f=void 0x0===length?_0x2efe24['len']:_0x2efe24['pos']+length,_0x46a8fe=new $root['CommentsV2ReopenCommentThreadMessage']();_0x2efe24['pos']<_0x4dae8f;){var tag=_0x2efe24['uint32']();switch(tag>>>0x3){case 0x1:_0x46a8fe['commentThreadId']=_0x2efe24['string']();break;case 0x2:_0x46a8fe['documentId']=_0x2efe24['string']();break;default:_0x2efe24['skipType'](0x7&tag);}}return _0x46a8fe;},CommentsV2ReopenCommentThreadMessage['decodeDelimited']=function(_0x429c3c){return _0x429c3c instanceof _0x498bd5||(_0x429c3c=new _0x498bd5(_0x429c3c)),this['decode'](_0x429c3c,_0x429c3c['uint32']());},CommentsV2ReopenCommentThreadMessage['verify']=function(_0x15afce){return'object'!=typeof _0x15afce||null===_0x15afce?'object\x20expected':null!=_0x15afce['commentThreadId']&&_0x15afce['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x15afce['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x15afce['documentId']&&_0x15afce['hasOwnProperty']('documentId')&&!$util['isString'](_0x15afce['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2ReopenCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2ReopenCommentThreadMessage'])return object;var _0xf59b67=new $root['CommentsV2ReopenCommentThreadMessage']();return null!=object['commentThreadId']&&(_0xf59b67['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0xf59b67['documentId']=String(object['documentId'])),_0xf59b67;},CommentsV2ReopenCommentThreadMessage['toObject']=function(_0x431cdf,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x431cdf['commentThreadId']&&_0x431cdf['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x431cdf['commentThreadId']),null!=_0x431cdf['documentId']&&_0x431cdf['hasOwnProperty']('documentId')&&(object['documentId']=_0x431cdf['documentId']),object;},CommentsV2ReopenCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ReopenCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ReopenCommentThreadMessage';},CommentsV2ReopenCommentThreadMessage;}()),$root['CommentsV2ResolveCommentThreadMessage']=(function(){function CommentsV2ResolveCommentThreadMessage(properties){if(properties){for(var _0x2badb0=Object['keys'](properties),_0x5c86d6=0x0;_0x5c86d6<_0x2badb0['length'];++_0x5c86d6)null!=properties[_0x2badb0[_0x5c86d6]]&&(this[_0x2badb0[_0x5c86d6]]=properties[_0x2badb0[_0x5c86d6]]);}}return CommentsV2ResolveCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2ResolveCommentThreadMessage['prototype']['documentId']='',CommentsV2ResolveCommentThreadMessage['prototype']['resolvedBy']='',CommentsV2ResolveCommentThreadMessage['prototype']['resolvedAt']='',CommentsV2ResolveCommentThreadMessage['create']=function(properties){return new CommentsV2ResolveCommentThreadMessage(properties);},CommentsV2ResolveCommentThreadMessage['encode']=function(_0x55ebd4,writer){return writer||(writer=$Writer['create']()),null!=_0x55ebd4['commentThreadId']&&Object['hasOwnProperty']['call'](_0x55ebd4,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x55ebd4['commentThreadId']),null!=_0x55ebd4['documentId']&&Object['hasOwnProperty']['call'](_0x55ebd4,'documentId')&&writer['uint32'](0x12)['string'](_0x55ebd4['documentId']),null!=_0x55ebd4['resolvedBy']&&Object['hasOwnProperty']['call'](_0x55ebd4,'resolvedBy')&&writer['uint32'](0x1a)['string'](_0x55ebd4['resolvedBy']),null!=_0x55ebd4['resolvedAt']&&Object['hasOwnProperty']['call'](_0x55ebd4,'resolvedAt')&&writer['uint32'](0x22)['string'](_0x55ebd4['resolvedAt']),writer;},CommentsV2ResolveCommentThreadMessage['encodeDelimited']=function(_0x28ffda,writer){return this['encode'](_0x28ffda,writer)['ldelim']();},CommentsV2ResolveCommentThreadMessage['decode']=function(_0x4bcac1,length){_0x4bcac1 instanceof _0x498bd5||(_0x4bcac1=_0x498bd5['create'](_0x4bcac1));for(var _0x5d864c=void 0x0===length?_0x4bcac1['len']:_0x4bcac1['pos']+length,_0x3561cb=new $root['CommentsV2ResolveCommentThreadMessage']();_0x4bcac1['pos']<_0x5d864c;){var tag=_0x4bcac1['uint32']();switch(tag>>>0x3){case 0x1:_0x3561cb['commentThreadId']=_0x4bcac1['string']();break;case 0x2:_0x3561cb['documentId']=_0x4bcac1['string']();break;case 0x3:_0x3561cb['resolvedBy']=_0x4bcac1['string']();break;case 0x4:_0x3561cb['resolvedAt']=_0x4bcac1['string']();break;default:_0x4bcac1['skipType'](0x7&tag);}}return _0x3561cb;},CommentsV2ResolveCommentThreadMessage['decodeDelimited']=function(_0x514d20){return _0x514d20 instanceof _0x498bd5||(_0x514d20=new _0x498bd5(_0x514d20)),this['decode'](_0x514d20,_0x514d20['uint32']());},CommentsV2ResolveCommentThreadMessage['verify']=function(_0x5be0a0){return'object'!=typeof _0x5be0a0||null===_0x5be0a0?'object\x20expected':null!=_0x5be0a0['commentThreadId']&&_0x5be0a0['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x5be0a0['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x5be0a0['documentId']&&_0x5be0a0['hasOwnProperty']('documentId')&&!$util['isString'](_0x5be0a0['documentId'])?'documentId:\x20string\x20expected':null!=_0x5be0a0['resolvedBy']&&_0x5be0a0['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x5be0a0['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x5be0a0['resolvedAt']&&_0x5be0a0['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x5be0a0['resolvedAt'])?'resolvedAt:\x20string\x20expected':null;},CommentsV2ResolveCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2ResolveCommentThreadMessage'])return object;var _0xcb33ad=new $root['CommentsV2ResolveCommentThreadMessage']();return null!=object['commentThreadId']&&(_0xcb33ad['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0xcb33ad['documentId']=String(object['documentId'])),null!=object['resolvedBy']&&(_0xcb33ad['resolvedBy']=String(object['resolvedBy'])),null!=object['resolvedAt']&&(_0xcb33ad['resolvedAt']=String(object['resolvedAt'])),_0xcb33ad;},CommentsV2ResolveCommentThreadMessage['toObject']=function(_0x3cfab7,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['resolvedBy']='',object['resolvedAt']=''),null!=_0x3cfab7['commentThreadId']&&_0x3cfab7['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x3cfab7['commentThreadId']),null!=_0x3cfab7['documentId']&&_0x3cfab7['hasOwnProperty']('documentId')&&(object['documentId']=_0x3cfab7['documentId']),null!=_0x3cfab7['resolvedBy']&&_0x3cfab7['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x3cfab7['resolvedBy']),null!=_0x3cfab7['resolvedAt']&&_0x3cfab7['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x3cfab7['resolvedAt']),object;},CommentsV2ResolveCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ResolveCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ResolveCommentThreadMessage';},CommentsV2ResolveCommentThreadMessage;}()),$root['CommentsV2UpdateCommentThreadMessage']=(function(){function CommentsV2UpdateCommentThreadMessage(properties){if(properties){for(var _0x11cf84=Object['keys'](properties),_0x435fad=0x0;_0x435fad<_0x11cf84['length'];++_0x435fad)null!=properties[_0x11cf84[_0x435fad]]&&(this[_0x11cf84[_0x435fad]]=properties[_0x11cf84[_0x435fad]]);}}return CommentsV2UpdateCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2UpdateCommentThreadMessage['prototype']['documentId']='',CommentsV2UpdateCommentThreadMessage['prototype']['context']='',CommentsV2UpdateCommentThreadMessage['prototype']['attributes']='',CommentsV2UpdateCommentThreadMessage['prototype']['unlinkedAt']='',CommentsV2UpdateCommentThreadMessage['create']=function(properties){return new CommentsV2UpdateCommentThreadMessage(properties);},CommentsV2UpdateCommentThreadMessage['encode']=function(_0x14dfda,writer){return writer||(writer=$Writer['create']()),null!=_0x14dfda['commentThreadId']&&Object['hasOwnProperty']['call'](_0x14dfda,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x14dfda['commentThreadId']),null!=_0x14dfda['documentId']&&Object['hasOwnProperty']['call'](_0x14dfda,'documentId')&&writer['uint32'](0x12)['string'](_0x14dfda['documentId']),null!=_0x14dfda['context']&&Object['hasOwnProperty']['call'](_0x14dfda,'context')&&writer['uint32'](0x1a)['string'](_0x14dfda['context']),null!=_0x14dfda['attributes']&&Object['hasOwnProperty']['call'](_0x14dfda,'attributes')&&writer['uint32'](0x22)['string'](_0x14dfda['attributes']),null!=_0x14dfda['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x14dfda,'unlinkedAt')&&writer['uint32'](0x2a)['string'](_0x14dfda['unlinkedAt']),writer;},CommentsV2UpdateCommentThreadMessage['encodeDelimited']=function(_0x22a2a2,writer){return this['encode'](_0x22a2a2,writer)['ldelim']();},CommentsV2UpdateCommentThreadMessage['decode']=function(_0x1c2691,length){_0x1c2691 instanceof _0x498bd5||(_0x1c2691=_0x498bd5['create'](_0x1c2691));for(var _0x3bce54=void 0x0===length?_0x1c2691['len']:_0x1c2691['pos']+length,_0x32ccfa=new $root['CommentsV2UpdateCommentThreadMessage']();_0x1c2691['pos']<_0x3bce54;){var tag=_0x1c2691['uint32']();switch(tag>>>0x3){case 0x1:_0x32ccfa['commentThreadId']=_0x1c2691['string']();break;case 0x2:_0x32ccfa['documentId']=_0x1c2691['string']();break;case 0x3:_0x32ccfa['context']=_0x1c2691['string']();break;case 0x4:_0x32ccfa['attributes']=_0x1c2691['string']();break;case 0x5:_0x32ccfa['unlinkedAt']=_0x1c2691['string']();break;default:_0x1c2691['skipType'](0x7&tag);}}return _0x32ccfa;},CommentsV2UpdateCommentThreadMessage['decodeDelimited']=function(_0x284f00){return _0x284f00 instanceof _0x498bd5||(_0x284f00=new _0x498bd5(_0x284f00)),this['decode'](_0x284f00,_0x284f00['uint32']());},CommentsV2UpdateCommentThreadMessage['verify']=function(_0x26352b){return'object'!=typeof _0x26352b||null===_0x26352b?'object\x20expected':null!=_0x26352b['commentThreadId']&&_0x26352b['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x26352b['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x26352b['documentId']&&_0x26352b['hasOwnProperty']('documentId')&&!$util['isString'](_0x26352b['documentId'])?'documentId:\x20string\x20expected':null!=_0x26352b['context']&&_0x26352b['hasOwnProperty']('context')&&!$util['isString'](_0x26352b['context'])?'context:\x20string\x20expected':null!=_0x26352b['attributes']&&_0x26352b['hasOwnProperty']('attributes')&&!$util['isString'](_0x26352b['attributes'])?'attributes:\x20string\x20expected':null!=_0x26352b['unlinkedAt']&&_0x26352b['hasOwnProperty']('unlinkedAt')&&!$util['isString'](_0x26352b['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsV2UpdateCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2UpdateCommentThreadMessage'])return object;var _0x38679e=new $root['CommentsV2UpdateCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x38679e['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x38679e['documentId']=String(object['documentId'])),null!=object['context']&&(_0x38679e['context']=String(object['context'])),null!=object['attributes']&&(_0x38679e['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x38679e['unlinkedAt']=String(object['unlinkedAt'])),_0x38679e;},CommentsV2UpdateCommentThreadMessage['toObject']=function(_0x567059,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['context']='',object['attributes']='',object['unlinkedAt']=''),null!=_0x567059['commentThreadId']&&_0x567059['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x567059['commentThreadId']),null!=_0x567059['documentId']&&_0x567059['hasOwnProperty']('documentId')&&(object['documentId']=_0x567059['documentId']),null!=_0x567059['context']&&_0x567059['hasOwnProperty']('context')&&(object['context']=_0x567059['context']),null!=_0x567059['attributes']&&_0x567059['hasOwnProperty']('attributes')&&(object['attributes']=_0x567059['attributes']),null!=_0x567059['unlinkedAt']&&_0x567059['hasOwnProperty']('unlinkedAt')&&(object['unlinkedAt']=_0x567059['unlinkedAt']),object;},CommentsV2UpdateCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2UpdateCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2UpdateCommentThreadMessage';},CommentsV2UpdateCommentThreadMessage;}()),$root['CommentsV2ConnectMessage']=(function(){function CommentsV2ConnectMessage(properties){if(properties){for(var _0xda77c8=Object['keys'](properties),_0x45d1fd=0x0;_0x45d1fd<_0xda77c8['length'];++_0x45d1fd)null!=properties[_0xda77c8[_0x45d1fd]]&&(this[_0xda77c8[_0x45d1fd]]=properties[_0xda77c8[_0x45d1fd]]);}}return CommentsV2ConnectMessage['prototype']['documentId']='',CommentsV2ConnectMessage['create']=function(properties){return new CommentsV2ConnectMessage(properties);},CommentsV2ConnectMessage['encode']=function(_0x123f2a,writer){return writer||(writer=$Writer['create']()),null!=_0x123f2a['documentId']&&Object['hasOwnProperty']['call'](_0x123f2a,'documentId')&&writer['uint32'](0xa)['string'](_0x123f2a['documentId']),writer;},CommentsV2ConnectMessage['encodeDelimited']=function(_0x64c0ea,writer){return this['encode'](_0x64c0ea,writer)['ldelim']();},CommentsV2ConnectMessage['decode']=function(_0xbf15aa,length){_0xbf15aa instanceof _0x498bd5||(_0xbf15aa=_0x498bd5['create'](_0xbf15aa));for(var _0x308b13=void 0x0===length?_0xbf15aa['len']:_0xbf15aa['pos']+length,_0x1c8884=new $root['CommentsV2ConnectMessage']();_0xbf15aa['pos']<_0x308b13;){var tag=_0xbf15aa['uint32']();if(tag>>>0x3==0x1)_0x1c8884['documentId']=_0xbf15aa['string']();else _0xbf15aa['skipType'](0x7&tag);}return _0x1c8884;},CommentsV2ConnectMessage['decodeDelimited']=function(_0x122ea7){return _0x122ea7 instanceof _0x498bd5||(_0x122ea7=new _0x498bd5(_0x122ea7)),this['decode'](_0x122ea7,_0x122ea7['uint32']());},CommentsV2ConnectMessage['verify']=function(_0x1cdb8d){return'object'!=typeof _0x1cdb8d||null===_0x1cdb8d?'object\x20expected':null!=_0x1cdb8d['documentId']&&_0x1cdb8d['hasOwnProperty']('documentId')&&!$util['isString'](_0x1cdb8d['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2ConnectMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2ConnectMessage'])return object;var _0x4b5b97=new $root['CommentsV2ConnectMessage']();return null!=object['documentId']&&(_0x4b5b97['documentId']=String(object['documentId'])),_0x4b5b97;},CommentsV2ConnectMessage['toObject']=function(_0x19474c,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x19474c['documentId']&&_0x19474c['hasOwnProperty']('documentId')&&(object['documentId']=_0x19474c['documentId']),object;},CommentsV2ConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ConnectMessage';},CommentsV2ConnectMessage;}()),$root['CommentsV2GetCommentThreadMessage']=(function(){function CommentsV2GetCommentThreadMessage(properties){if(properties){for(var _0x33156c=Object['keys'](properties),_0x3be546=0x0;_0x3be546<_0x33156c['length'];++_0x3be546)null!=properties[_0x33156c[_0x3be546]]&&(this[_0x33156c[_0x3be546]]=properties[_0x33156c[_0x3be546]]);}}return CommentsV2GetCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2GetCommentThreadMessage['prototype']['documentId']='',CommentsV2GetCommentThreadMessage['create']=function(properties){return new CommentsV2GetCommentThreadMessage(properties);},CommentsV2GetCommentThreadMessage['encode']=function(_0x38acc9,writer){return writer||(writer=$Writer['create']()),null!=_0x38acc9['commentThreadId']&&Object['hasOwnProperty']['call'](_0x38acc9,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x38acc9['commentThreadId']),null!=_0x38acc9['documentId']&&Object['hasOwnProperty']['call'](_0x38acc9,'documentId')&&writer['uint32'](0x12)['string'](_0x38acc9['documentId']),writer;},CommentsV2GetCommentThreadMessage['encodeDelimited']=function(_0xbafa4c,writer){return this['encode'](_0xbafa4c,writer)['ldelim']();},CommentsV2GetCommentThreadMessage['decode']=function(_0x545b64,length){_0x545b64 instanceof _0x498bd5||(_0x545b64=_0x498bd5['create'](_0x545b64));for(var _0x29db0a=void 0x0===length?_0x545b64['len']:_0x545b64['pos']+length,_0x1e1598=new $root['CommentsV2GetCommentThreadMessage']();_0x545b64['pos']<_0x29db0a;){var tag=_0x545b64['uint32']();switch(tag>>>0x3){case 0x1:_0x1e1598['commentThreadId']=_0x545b64['string']();break;case 0x2:_0x1e1598['documentId']=_0x545b64['string']();break;default:_0x545b64['skipType'](0x7&tag);}}return _0x1e1598;},CommentsV2GetCommentThreadMessage['decodeDelimited']=function(_0x18b0c0){return _0x18b0c0 instanceof _0x498bd5||(_0x18b0c0=new _0x498bd5(_0x18b0c0)),this['decode'](_0x18b0c0,_0x18b0c0['uint32']());},CommentsV2GetCommentThreadMessage['verify']=function(_0x112a25){return'object'!=typeof _0x112a25||null===_0x112a25?'object\x20expected':null!=_0x112a25['commentThreadId']&&_0x112a25['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x112a25['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x112a25['documentId']&&_0x112a25['hasOwnProperty']('documentId')&&!$util['isString'](_0x112a25['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2GetCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2GetCommentThreadMessage'])return object;var _0x1b9bb7=new $root['CommentsV2GetCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x1b9bb7['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x1b9bb7['documentId']=String(object['documentId'])),_0x1b9bb7;},CommentsV2GetCommentThreadMessage['toObject']=function(_0x39a020,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x39a020['commentThreadId']&&_0x39a020['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x39a020['commentThreadId']),null!=_0x39a020['documentId']&&_0x39a020['hasOwnProperty']('documentId')&&(object['documentId']=_0x39a020['documentId']),object;},CommentsV2GetCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetCommentThreadMessage';},CommentsV2GetCommentThreadMessage;}()),$root['CommentsV2GetDocumentThreadsMessage']=(function(){function CommentsV2GetDocumentThreadsMessage(properties){if(properties){for(var _0x5b5c9c=Object['keys'](properties),_0x2d6ebf=0x0;_0x2d6ebf<_0x5b5c9c['length'];++_0x2d6ebf)null!=properties[_0x5b5c9c[_0x2d6ebf]]&&(this[_0x5b5c9c[_0x2d6ebf]]=properties[_0x5b5c9c[_0x2d6ebf]]);}}return CommentsV2GetDocumentThreadsMessage['prototype']['documentId']='',CommentsV2GetDocumentThreadsMessage['create']=function(properties){return new CommentsV2GetDocumentThreadsMessage(properties);},CommentsV2GetDocumentThreadsMessage['encode']=function(_0x20897b,writer){return writer||(writer=$Writer['create']()),null!=_0x20897b['documentId']&&Object['hasOwnProperty']['call'](_0x20897b,'documentId')&&writer['uint32'](0xa)['string'](_0x20897b['documentId']),writer;},CommentsV2GetDocumentThreadsMessage['encodeDelimited']=function(_0x2318e6,writer){return this['encode'](_0x2318e6,writer)['ldelim']();},CommentsV2GetDocumentThreadsMessage['decode']=function(_0x280e12,length){_0x280e12 instanceof _0x498bd5||(_0x280e12=_0x498bd5['create'](_0x280e12));for(var _0x59c0b7=void 0x0===length?_0x280e12['len']:_0x280e12['pos']+length,_0x1a694b=new $root['CommentsV2GetDocumentThreadsMessage']();_0x280e12['pos']<_0x59c0b7;){var tag=_0x280e12['uint32']();if(tag>>>0x3==0x1)_0x1a694b['documentId']=_0x280e12['string']();else _0x280e12['skipType'](0x7&tag);}return _0x1a694b;},CommentsV2GetDocumentThreadsMessage['decodeDelimited']=function(_0x7a4fef){return _0x7a4fef instanceof _0x498bd5||(_0x7a4fef=new _0x498bd5(_0x7a4fef)),this['decode'](_0x7a4fef,_0x7a4fef['uint32']());},CommentsV2GetDocumentThreadsMessage['verify']=function(_0x768ad9){return'object'!=typeof _0x768ad9||null===_0x768ad9?'object\x20expected':null!=_0x768ad9['documentId']&&_0x768ad9['hasOwnProperty']('documentId')&&!$util['isString'](_0x768ad9['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2GetDocumentThreadsMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2GetDocumentThreadsMessage'])return object;var _0xf558e4=new $root['CommentsV2GetDocumentThreadsMessage']();return null!=object['documentId']&&(_0xf558e4['documentId']=String(object['documentId'])),_0xf558e4;},CommentsV2GetDocumentThreadsMessage['toObject']=function(_0x2f5f56,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x2f5f56['documentId']&&_0x2f5f56['hasOwnProperty']('documentId')&&(object['documentId']=_0x2f5f56['documentId']),object;},CommentsV2GetDocumentThreadsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetDocumentThreadsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetDocumentThreadsMessage';},CommentsV2GetDocumentThreadsMessage;}()),$root['CommentsV2RemoveCommentMessage']=(function(){function CommentsV2RemoveCommentMessage(properties){if(properties){for(var _0x327778=Object['keys'](properties),_0x893172=0x0;_0x893172<_0x327778['length'];++_0x893172)null!=properties[_0x327778[_0x893172]]&&(this[_0x327778[_0x893172]]=properties[_0x327778[_0x893172]]);}}return CommentsV2RemoveCommentMessage['prototype']['commentThreadId']='',CommentsV2RemoveCommentMessage['prototype']['commentId']='',CommentsV2RemoveCommentMessage['prototype']['documentId']='',CommentsV2RemoveCommentMessage['create']=function(properties){return new CommentsV2RemoveCommentMessage(properties);},CommentsV2RemoveCommentMessage['encode']=function(_0x4dacf8,writer){return writer||(writer=$Writer['create']()),null!=_0x4dacf8['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4dacf8,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x4dacf8['commentThreadId']),null!=_0x4dacf8['commentId']&&Object['hasOwnProperty']['call'](_0x4dacf8,'commentId')&&writer['uint32'](0x12)['string'](_0x4dacf8['commentId']),null!=_0x4dacf8['documentId']&&Object['hasOwnProperty']['call'](_0x4dacf8,'documentId')&&writer['uint32'](0x1a)['string'](_0x4dacf8['documentId']),writer;},CommentsV2RemoveCommentMessage['encodeDelimited']=function(_0x12d195,writer){return this['encode'](_0x12d195,writer)['ldelim']();},CommentsV2RemoveCommentMessage['decode']=function(_0x192d3c,length){_0x192d3c instanceof _0x498bd5||(_0x192d3c=_0x498bd5['create'](_0x192d3c));for(var _0x2c1b11=void 0x0===length?_0x192d3c['len']:_0x192d3c['pos']+length,_0x473b77=new $root['CommentsV2RemoveCommentMessage']();_0x192d3c['pos']<_0x2c1b11;){var tag=_0x192d3c['uint32']();switch(tag>>>0x3){case 0x1:_0x473b77['commentThreadId']=_0x192d3c['string']();break;case 0x2:_0x473b77['commentId']=_0x192d3c['string']();break;case 0x3:_0x473b77['documentId']=_0x192d3c['string']();break;default:_0x192d3c['skipType'](0x7&tag);}}return _0x473b77;},CommentsV2RemoveCommentMessage['decodeDelimited']=function(_0xbc6c62){return _0xbc6c62 instanceof _0x498bd5||(_0xbc6c62=new _0x498bd5(_0xbc6c62)),this['decode'](_0xbc6c62,_0xbc6c62['uint32']());},CommentsV2RemoveCommentMessage['verify']=function(_0x15bc29){return'object'!=typeof _0x15bc29||null===_0x15bc29?'object\x20expected':null!=_0x15bc29['commentThreadId']&&_0x15bc29['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x15bc29['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x15bc29['commentId']&&_0x15bc29['hasOwnProperty']('commentId')&&!$util['isString'](_0x15bc29['commentId'])?'commentId:\x20string\x20expected':null!=_0x15bc29['documentId']&&_0x15bc29['hasOwnProperty']('documentId')&&!$util['isString'](_0x15bc29['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2RemoveCommentMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2RemoveCommentMessage'])return object;var _0x4b2b0d=new $root['CommentsV2RemoveCommentMessage']();return null!=object['commentThreadId']&&(_0x4b2b0d['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x4b2b0d['commentId']=String(object['commentId'])),null!=object['documentId']&&(_0x4b2b0d['documentId']=String(object['documentId'])),_0x4b2b0d;},CommentsV2RemoveCommentMessage['toObject']=function(_0x5f643e,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['documentId']=''),null!=_0x5f643e['commentThreadId']&&_0x5f643e['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x5f643e['commentThreadId']),null!=_0x5f643e['commentId']&&_0x5f643e['hasOwnProperty']('commentId')&&(object['commentId']=_0x5f643e['commentId']),null!=_0x5f643e['documentId']&&_0x5f643e['hasOwnProperty']('documentId')&&(object['documentId']=_0x5f643e['documentId']),object;},CommentsV2RemoveCommentMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2RemoveCommentMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2RemoveCommentMessage';},CommentsV2RemoveCommentMessage;}()),$root['CommentsV2RemoveCommentThreadMessage']=(function(){function CommentsV2RemoveCommentThreadMessage(properties){if(properties){for(var _0x140aa4=Object['keys'](properties),_0x48debb=0x0;_0x48debb<_0x140aa4['length'];++_0x48debb)null!=properties[_0x140aa4[_0x48debb]]&&(this[_0x140aa4[_0x48debb]]=properties[_0x140aa4[_0x48debb]]);}}return CommentsV2RemoveCommentThreadMessage['prototype']['commentThreadId']='',CommentsV2RemoveCommentThreadMessage['prototype']['documentId']='',CommentsV2RemoveCommentThreadMessage['create']=function(properties){return new CommentsV2RemoveCommentThreadMessage(properties);},CommentsV2RemoveCommentThreadMessage['encode']=function(_0x1f3c18,writer){return writer||(writer=$Writer['create']()),null!=_0x1f3c18['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1f3c18,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x1f3c18['commentThreadId']),null!=_0x1f3c18['documentId']&&Object['hasOwnProperty']['call'](_0x1f3c18,'documentId')&&writer['uint32'](0x12)['string'](_0x1f3c18['documentId']),writer;},CommentsV2RemoveCommentThreadMessage['encodeDelimited']=function(_0x41b3a3,writer){return this['encode'](_0x41b3a3,writer)['ldelim']();},CommentsV2RemoveCommentThreadMessage['decode']=function(_0x54a309,length){_0x54a309 instanceof _0x498bd5||(_0x54a309=_0x498bd5['create'](_0x54a309));for(var _0x16b16c=void 0x0===length?_0x54a309['len']:_0x54a309['pos']+length,_0x293781=new $root['CommentsV2RemoveCommentThreadMessage']();_0x54a309['pos']<_0x16b16c;){var tag=_0x54a309['uint32']();switch(tag>>>0x3){case 0x1:_0x293781['commentThreadId']=_0x54a309['string']();break;case 0x2:_0x293781['documentId']=_0x54a309['string']();break;default:_0x54a309['skipType'](0x7&tag);}}return _0x293781;},CommentsV2RemoveCommentThreadMessage['decodeDelimited']=function(_0x430f4c){return _0x430f4c instanceof _0x498bd5||(_0x430f4c=new _0x498bd5(_0x430f4c)),this['decode'](_0x430f4c,_0x430f4c['uint32']());},CommentsV2RemoveCommentThreadMessage['verify']=function(_0x55c73a){return'object'!=typeof _0x55c73a||null===_0x55c73a?'object\x20expected':null!=_0x55c73a['commentThreadId']&&_0x55c73a['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x55c73a['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x55c73a['documentId']&&_0x55c73a['hasOwnProperty']('documentId')&&!$util['isString'](_0x55c73a['documentId'])?'documentId:\x20string\x20expected':null;},CommentsV2RemoveCommentThreadMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2RemoveCommentThreadMessage'])return object;var _0x2f0e1f=new $root['CommentsV2RemoveCommentThreadMessage']();return null!=object['commentThreadId']&&(_0x2f0e1f['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x2f0e1f['documentId']=String(object['documentId'])),_0x2f0e1f;},CommentsV2RemoveCommentThreadMessage['toObject']=function(_0x278f44,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']=''),null!=_0x278f44['commentThreadId']&&_0x278f44['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x278f44['commentThreadId']),null!=_0x278f44['documentId']&&_0x278f44['hasOwnProperty']('documentId')&&(object['documentId']=_0x278f44['documentId']),object;},CommentsV2RemoveCommentThreadMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2RemoveCommentThreadMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2RemoveCommentThreadMessage';},CommentsV2RemoveCommentThreadMessage;}()),$root['CommentsV2UpdateCommentMessage']=(function(){function CommentsV2UpdateCommentMessage(properties){if(properties){for(var _0x931e76=Object['keys'](properties),_0x23820a=0x0;_0x23820a<_0x931e76['length'];++_0x23820a)null!=properties[_0x931e76[_0x23820a]]&&(this[_0x931e76[_0x23820a]]=properties[_0x931e76[_0x23820a]]);}}return CommentsV2UpdateCommentMessage['prototype']['commentThreadId']='',CommentsV2UpdateCommentMessage['prototype']['commentId']='',CommentsV2UpdateCommentMessage['prototype']['content']='',CommentsV2UpdateCommentMessage['prototype']['documentId']='',CommentsV2UpdateCommentMessage['prototype']['attributes']='',CommentsV2UpdateCommentMessage['prototype']['isAttributesUpdated']=!0x1,CommentsV2UpdateCommentMessage['prototype']['commentThread']=null,CommentsV2UpdateCommentMessage['create']=function(properties){return new CommentsV2UpdateCommentMessage(properties);},CommentsV2UpdateCommentMessage['encode']=function(_0x340e4a,writer){return writer||(writer=$Writer['create']()),null!=_0x340e4a['commentThreadId']&&Object['hasOwnProperty']['call'](_0x340e4a,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x340e4a['commentThreadId']),null!=_0x340e4a['commentId']&&Object['hasOwnProperty']['call'](_0x340e4a,'commentId')&&writer['uint32'](0x12)['string'](_0x340e4a['commentId']),null!=_0x340e4a['content']&&Object['hasOwnProperty']['call'](_0x340e4a,'content')&&writer['uint32'](0x1a)['string'](_0x340e4a['content']),null!=_0x340e4a['documentId']&&Object['hasOwnProperty']['call'](_0x340e4a,'documentId')&&writer['uint32'](0x22)['string'](_0x340e4a['documentId']),null!=_0x340e4a['attributes']&&Object['hasOwnProperty']['call'](_0x340e4a,'attributes')&&writer['uint32'](0x2a)['string'](_0x340e4a['attributes']),null!=_0x340e4a['isAttributesUpdated']&&Object['hasOwnProperty']['call'](_0x340e4a,'isAttributesUpdated')&&writer['uint32'](0x30)['bool'](_0x340e4a['isAttributesUpdated']),null!=_0x340e4a['commentThread']&&Object['hasOwnProperty']['call'](_0x340e4a,'commentThread')&&$root['CommentsThreadDescriptor']['encode'](_0x340e4a['commentThread'],writer['uint32'](0x3a)['fork']())['ldelim'](),writer;},CommentsV2UpdateCommentMessage['encodeDelimited']=function(_0x3f8ae8,writer){return this['encode'](_0x3f8ae8,writer)['ldelim']();},CommentsV2UpdateCommentMessage['decode']=function(_0x56d0fd,length){_0x56d0fd instanceof _0x498bd5||(_0x56d0fd=_0x498bd5['create'](_0x56d0fd));for(var _0x990dd6=void 0x0===length?_0x56d0fd['len']:_0x56d0fd['pos']+length,_0x3d8983=new $root['CommentsV2UpdateCommentMessage']();_0x56d0fd['pos']<_0x990dd6;){var tag=_0x56d0fd['uint32']();switch(tag>>>0x3){case 0x1:_0x3d8983['commentThreadId']=_0x56d0fd['string']();break;case 0x2:_0x3d8983['commentId']=_0x56d0fd['string']();break;case 0x3:_0x3d8983['content']=_0x56d0fd['string']();break;case 0x4:_0x3d8983['documentId']=_0x56d0fd['string']();break;case 0x5:_0x3d8983['attributes']=_0x56d0fd['string']();break;case 0x6:_0x3d8983['isAttributesUpdated']=_0x56d0fd['bool']();break;case 0x7:_0x3d8983['commentThread']=$root['CommentsThreadDescriptor']['decode'](_0x56d0fd,_0x56d0fd['uint32']());break;default:_0x56d0fd['skipType'](0x7&tag);}}return _0x3d8983;},CommentsV2UpdateCommentMessage['decodeDelimited']=function(_0x209c5a){return _0x209c5a instanceof _0x498bd5||(_0x209c5a=new _0x498bd5(_0x209c5a)),this['decode'](_0x209c5a,_0x209c5a['uint32']());},CommentsV2UpdateCommentMessage['verify']=function(_0x5169aa){if('object'!=typeof _0x5169aa||null===_0x5169aa)return'object\x20expected';if(null!=_0x5169aa['commentThreadId']&&_0x5169aa['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x5169aa['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x5169aa['commentId']&&_0x5169aa['hasOwnProperty']('commentId')&&!$util['isString'](_0x5169aa['commentId']))return'commentId:\x20string\x20expected';if(null!=_0x5169aa['content']&&_0x5169aa['hasOwnProperty']('content')&&!$util['isString'](_0x5169aa['content']))return'content:\x20string\x20expected';if(null!=_0x5169aa['documentId']&&_0x5169aa['hasOwnProperty']('documentId')&&!$util['isString'](_0x5169aa['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x5169aa['attributes']&&_0x5169aa['hasOwnProperty']('attributes')&&!$util['isString'](_0x5169aa['attributes']))return'attributes:\x20string\x20expected';if(null!=_0x5169aa['isAttributesUpdated']&&_0x5169aa['hasOwnProperty']('isAttributesUpdated')&&'boolean'!=typeof _0x5169aa['isAttributesUpdated'])return'isAttributesUpdated:\x20boolean\x20expected';if(null!=_0x5169aa['commentThread']&&_0x5169aa['hasOwnProperty']('commentThread')){var _0x2912b6=$root['CommentsThreadDescriptor']['verify'](_0x5169aa['commentThread']);if(_0x2912b6)return'commentThread.'+_0x2912b6;}return null;},CommentsV2UpdateCommentMessage['fromObject']=function(object){if(object instanceof $root['CommentsV2UpdateCommentMessage'])return object;var _0x4c11f5=new $root['CommentsV2UpdateCommentMessage']();if(null!=object['commentThreadId']&&(_0x4c11f5['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x4c11f5['commentId']=String(object['commentId'])),null!=object['content']&&(_0x4c11f5['content']=String(object['content'])),null!=object['documentId']&&(_0x4c11f5['documentId']=String(object['documentId'])),null!=object['attributes']&&(_0x4c11f5['attributes']=String(object['attributes'])),null!=object['isAttributesUpdated']&&(_0x4c11f5['isAttributesUpdated']=Boolean(object['isAttributesUpdated'])),null!=object['commentThread']){if('object'!=typeof object['commentThread'])throw TypeError('.CommentsV2UpdateCommentMessage.commentThread:\x20object\x20expected');_0x4c11f5['commentThread']=$root['CommentsThreadDescriptor']['fromObject'](object['commentThread']);}return _0x4c11f5;},CommentsV2UpdateCommentMessage['toObject']=function(_0x4532ff,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['content']='',object['documentId']='',object['attributes']='',object['isAttributesUpdated']=!0x1,object['commentThread']=null),null!=_0x4532ff['commentThreadId']&&_0x4532ff['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x4532ff['commentThreadId']),null!=_0x4532ff['commentId']&&_0x4532ff['hasOwnProperty']('commentId')&&(object['commentId']=_0x4532ff['commentId']),null!=_0x4532ff['content']&&_0x4532ff['hasOwnProperty']('content')&&(object['content']=_0x4532ff['content']),null!=_0x4532ff['documentId']&&_0x4532ff['hasOwnProperty']('documentId')&&(object['documentId']=_0x4532ff['documentId']),null!=_0x4532ff['attributes']&&_0x4532ff['hasOwnProperty']('attributes')&&(object['attributes']=_0x4532ff['attributes']),null!=_0x4532ff['isAttributesUpdated']&&_0x4532ff['hasOwnProperty']('isAttributesUpdated')&&(object['isAttributesUpdated']=_0x4532ff['isAttributesUpdated']),null!=_0x4532ff['commentThread']&&_0x4532ff['hasOwnProperty']('commentThread')&&(object['commentThread']=$root['CommentsThreadDescriptor']['toObject'](_0x4532ff['commentThread'],options)),object;},CommentsV2UpdateCommentMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2UpdateCommentMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2UpdateCommentMessage';},CommentsV2UpdateCommentMessage;}()),$root['CommentsV2AddCommentResponse']=(function(){function CommentsV2AddCommentResponse(properties){if(properties){for(var _0x3fa9ed=Object['keys'](properties),_0x5a7829=0x0;_0x5a7829<_0x3fa9ed['length'];++_0x5a7829)null!=properties[_0x3fa9ed[_0x5a7829]]&&(this[_0x3fa9ed[_0x5a7829]]=properties[_0x3fa9ed[_0x5a7829]]);}}return CommentsV2AddCommentResponse['prototype']['commentThreadId']='',CommentsV2AddCommentResponse['prototype']['commentId']='',CommentsV2AddCommentResponse['prototype']['createdAt']='',CommentsV2AddCommentResponse['create']=function(properties){return new CommentsV2AddCommentResponse(properties);},CommentsV2AddCommentResponse['encode']=function(_0x4571b0,writer){return writer||(writer=$Writer['create']()),null!=_0x4571b0['commentThreadId']&&Object['hasOwnProperty']['call'](_0x4571b0,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x4571b0['commentThreadId']),null!=_0x4571b0['commentId']&&Object['hasOwnProperty']['call'](_0x4571b0,'commentId')&&writer['uint32'](0x12)['string'](_0x4571b0['commentId']),null!=_0x4571b0['createdAt']&&Object['hasOwnProperty']['call'](_0x4571b0,'createdAt')&&writer['uint32'](0x1a)['string'](_0x4571b0['createdAt']),writer;},CommentsV2AddCommentResponse['encodeDelimited']=function(_0x5893d9,writer){return this['encode'](_0x5893d9,writer)['ldelim']();},CommentsV2AddCommentResponse['decode']=function(_0x5ad8bb,length){_0x5ad8bb instanceof _0x498bd5||(_0x5ad8bb=_0x498bd5['create'](_0x5ad8bb));for(var _0x4851a2=void 0x0===length?_0x5ad8bb['len']:_0x5ad8bb['pos']+length,_0x2d9351=new $root['CommentsV2AddCommentResponse']();_0x5ad8bb['pos']<_0x4851a2;){var tag=_0x5ad8bb['uint32']();switch(tag>>>0x3){case 0x1:_0x2d9351['commentThreadId']=_0x5ad8bb['string']();break;case 0x2:_0x2d9351['commentId']=_0x5ad8bb['string']();break;case 0x3:_0x2d9351['createdAt']=_0x5ad8bb['string']();break;default:_0x5ad8bb['skipType'](0x7&tag);}}return _0x2d9351;},CommentsV2AddCommentResponse['decodeDelimited']=function(_0x20a468){return _0x20a468 instanceof _0x498bd5||(_0x20a468=new _0x498bd5(_0x20a468)),this['decode'](_0x20a468,_0x20a468['uint32']());},CommentsV2AddCommentResponse['verify']=function(_0x14a35d){return'object'!=typeof _0x14a35d||null===_0x14a35d?'object\x20expected':null!=_0x14a35d['commentThreadId']&&_0x14a35d['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x14a35d['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x14a35d['commentId']&&_0x14a35d['hasOwnProperty']('commentId')&&!$util['isString'](_0x14a35d['commentId'])?'commentId:\x20string\x20expected':null!=_0x14a35d['createdAt']&&_0x14a35d['hasOwnProperty']('createdAt')&&!$util['isString'](_0x14a35d['createdAt'])?'createdAt:\x20string\x20expected':null;},CommentsV2AddCommentResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentResponse'])return object;var _0x418e96=new $root['CommentsV2AddCommentResponse']();return null!=object['commentThreadId']&&(_0x418e96['commentThreadId']=String(object['commentThreadId'])),null!=object['commentId']&&(_0x418e96['commentId']=String(object['commentId'])),null!=object['createdAt']&&(_0x418e96['createdAt']=String(object['createdAt'])),_0x418e96;},CommentsV2AddCommentResponse['toObject']=function(_0x34f23e,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['commentId']='',object['createdAt']=''),null!=_0x34f23e['commentThreadId']&&_0x34f23e['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x34f23e['commentThreadId']),null!=_0x34f23e['commentId']&&_0x34f23e['hasOwnProperty']('commentId')&&(object['commentId']=_0x34f23e['commentId']),null!=_0x34f23e['createdAt']&&_0x34f23e['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x34f23e['createdAt']),object;},CommentsV2AddCommentResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentResponse';},CommentsV2AddCommentResponse;}()),$root['CommentsV2AddCommentThreadResponse']=(function(){function CommentsV2AddCommentThreadResponse(properties){if(this['comments']=[],properties){for(var _0x284da3=Object['keys'](properties),_0x3e5ec3=0x0;_0x3e5ec3<_0x284da3['length'];++_0x3e5ec3)null!=properties[_0x284da3[_0x3e5ec3]]&&(this[_0x284da3[_0x3e5ec3]]=properties[_0x284da3[_0x3e5ec3]]);}}return CommentsV2AddCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2AddCommentThreadResponse['prototype']['createdAt']='',CommentsV2AddCommentThreadResponse['prototype']['comments']=$util['emptyArray'],CommentsV2AddCommentThreadResponse['create']=function(properties){return new CommentsV2AddCommentThreadResponse(properties);},CommentsV2AddCommentThreadResponse['encode']=function(_0x1e6bd2,writer){if(writer||(writer=$Writer['create']()),null!=_0x1e6bd2['commentThreadId']&&Object['hasOwnProperty']['call'](_0x1e6bd2,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x1e6bd2['commentThreadId']),null!=_0x1e6bd2['createdAt']&&Object['hasOwnProperty']['call'](_0x1e6bd2,'createdAt')&&writer['uint32'](0x12)['string'](_0x1e6bd2['createdAt']),null!=_0x1e6bd2['comments']&&_0x1e6bd2['comments']['length']){for(var _0x27152f=0x0;_0x27152f<_0x1e6bd2['comments']['length'];++_0x27152f)$root['CommentThreadAddedCommentDescriptor']['encode'](_0x1e6bd2['comments'][_0x27152f],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},CommentsV2AddCommentThreadResponse['encodeDelimited']=function(_0x5d8d21,writer){return this['encode'](_0x5d8d21,writer)['ldelim']();},CommentsV2AddCommentThreadResponse['decode']=function(_0x5773b2,length){_0x5773b2 instanceof _0x498bd5||(_0x5773b2=_0x498bd5['create'](_0x5773b2));for(var _0x138be4=void 0x0===length?_0x5773b2['len']:_0x5773b2['pos']+length,_0x53bff7=new $root['CommentsV2AddCommentThreadResponse']();_0x5773b2['pos']<_0x138be4;){var tag=_0x5773b2['uint32']();switch(tag>>>0x3){case 0x1:_0x53bff7['commentThreadId']=_0x5773b2['string']();break;case 0x2:_0x53bff7['createdAt']=_0x5773b2['string']();break;case 0x3:_0x53bff7['comments']&&_0x53bff7['comments']['length']||(_0x53bff7['comments']=[]),_0x53bff7['comments']['push']($root['CommentThreadAddedCommentDescriptor']['decode'](_0x5773b2,_0x5773b2['uint32']()));break;default:_0x5773b2['skipType'](0x7&tag);}}return _0x53bff7;},CommentsV2AddCommentThreadResponse['decodeDelimited']=function(_0x7159d){return _0x7159d instanceof _0x498bd5||(_0x7159d=new _0x498bd5(_0x7159d)),this['decode'](_0x7159d,_0x7159d['uint32']());},CommentsV2AddCommentThreadResponse['verify']=function(_0x59230a){if('object'!=typeof _0x59230a||null===_0x59230a)return'object\x20expected';if(null!=_0x59230a['commentThreadId']&&_0x59230a['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x59230a['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x59230a['createdAt']&&_0x59230a['hasOwnProperty']('createdAt')&&!$util['isString'](_0x59230a['createdAt']))return'createdAt:\x20string\x20expected';if(null!=_0x59230a['comments']&&_0x59230a['hasOwnProperty']('comments')){if(!Array['isArray'](_0x59230a['comments']))return'comments:\x20array\x20expected';for(var _0x24682b=0x0;_0x24682b<_0x59230a['comments']['length'];++_0x24682b){var _0x555e26=$root['CommentThreadAddedCommentDescriptor']['verify'](_0x59230a['comments'][_0x24682b]);if(_0x555e26)return'comments.'+_0x555e26;}}return null;},CommentsV2AddCommentThreadResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2AddCommentThreadResponse'])return object;var _0x4ed66f=new $root['CommentsV2AddCommentThreadResponse']();if(null!=object['commentThreadId']&&(_0x4ed66f['commentThreadId']=String(object['commentThreadId'])),null!=object['createdAt']&&(_0x4ed66f['createdAt']=String(object['createdAt'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20array\x20expected');_0x4ed66f['comments']=[];for(var _0xf6a3a2=0x0;_0xf6a3a2<object['comments']['length'];++_0xf6a3a2){if('object'!=typeof object['comments'][_0xf6a3a2])throw TypeError('.CommentsV2AddCommentThreadResponse.comments:\x20object\x20expected');_0x4ed66f['comments'][_0xf6a3a2]=$root['CommentThreadAddedCommentDescriptor']['fromObject'](object['comments'][_0xf6a3a2]);}}return _0x4ed66f;},CommentsV2AddCommentThreadResponse['toObject']=function(_0x2870e2,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[]),options['defaults']&&(object['commentThreadId']='',object['createdAt']=''),null!=_0x2870e2['commentThreadId']&&_0x2870e2['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x2870e2['commentThreadId']),null!=_0x2870e2['createdAt']&&_0x2870e2['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x2870e2['createdAt']),_0x2870e2['comments']&&_0x2870e2['comments']['length']){object['comments']=[];for(var _0x1e85cf=0x0;_0x1e85cf<_0x2870e2['comments']['length'];++_0x1e85cf)object['comments'][_0x1e85cf]=$root['CommentThreadAddedCommentDescriptor']['toObject'](_0x2870e2['comments'][_0x1e85cf],options);}return object;},CommentsV2AddCommentThreadResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2AddCommentThreadResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2AddCommentThreadResponse';},CommentsV2AddCommentThreadResponse;}()),$root['CommentsV2ResolveCommentThreadResponse']=(function(){function CommentsV2ResolveCommentThreadResponse(properties){if(properties){for(var _0x508651=Object['keys'](properties),_0x497dfc=0x0;_0x497dfc<_0x508651['length'];++_0x497dfc)null!=properties[_0x508651[_0x497dfc]]&&(this[_0x508651[_0x497dfc]]=properties[_0x508651[_0x497dfc]]);}}return CommentsV2ResolveCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2ResolveCommentThreadResponse['prototype']['documentId']='',CommentsV2ResolveCommentThreadResponse['prototype']['resolvedAt']='',CommentsV2ResolveCommentThreadResponse['prototype']['resolvedBy']='',CommentsV2ResolveCommentThreadResponse['create']=function(properties){return new CommentsV2ResolveCommentThreadResponse(properties);},CommentsV2ResolveCommentThreadResponse['encode']=function(_0x36d9ec,writer){return writer||(writer=$Writer['create']()),null!=_0x36d9ec['commentThreadId']&&Object['hasOwnProperty']['call'](_0x36d9ec,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x36d9ec['commentThreadId']),null!=_0x36d9ec['documentId']&&Object['hasOwnProperty']['call'](_0x36d9ec,'documentId')&&writer['uint32'](0x12)['string'](_0x36d9ec['documentId']),null!=_0x36d9ec['resolvedAt']&&Object['hasOwnProperty']['call'](_0x36d9ec,'resolvedAt')&&writer['uint32'](0x1a)['string'](_0x36d9ec['resolvedAt']),null!=_0x36d9ec['resolvedBy']&&Object['hasOwnProperty']['call'](_0x36d9ec,'resolvedBy')&&writer['uint32'](0x22)['string'](_0x36d9ec['resolvedBy']),writer;},CommentsV2ResolveCommentThreadResponse['encodeDelimited']=function(_0x43f1ed,writer){return this['encode'](_0x43f1ed,writer)['ldelim']();},CommentsV2ResolveCommentThreadResponse['decode']=function(_0x4adb8c,length){_0x4adb8c instanceof _0x498bd5||(_0x4adb8c=_0x498bd5['create'](_0x4adb8c));for(var _0x1cd281=void 0x0===length?_0x4adb8c['len']:_0x4adb8c['pos']+length,_0x709b19=new $root['CommentsV2ResolveCommentThreadResponse']();_0x4adb8c['pos']<_0x1cd281;){var tag=_0x4adb8c['uint32']();switch(tag>>>0x3){case 0x1:_0x709b19['commentThreadId']=_0x4adb8c['string']();break;case 0x2:_0x709b19['documentId']=_0x4adb8c['string']();break;case 0x3:_0x709b19['resolvedAt']=_0x4adb8c['string']();break;case 0x4:_0x709b19['resolvedBy']=_0x4adb8c['string']();break;default:_0x4adb8c['skipType'](0x7&tag);}}return _0x709b19;},CommentsV2ResolveCommentThreadResponse['decodeDelimited']=function(_0x45ec50){return _0x45ec50 instanceof _0x498bd5||(_0x45ec50=new _0x498bd5(_0x45ec50)),this['decode'](_0x45ec50,_0x45ec50['uint32']());},CommentsV2ResolveCommentThreadResponse['verify']=function(_0x3ac4ef){return'object'!=typeof _0x3ac4ef||null===_0x3ac4ef?'object\x20expected':null!=_0x3ac4ef['commentThreadId']&&_0x3ac4ef['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x3ac4ef['commentThreadId'])?'commentThreadId:\x20string\x20expected':null!=_0x3ac4ef['documentId']&&_0x3ac4ef['hasOwnProperty']('documentId')&&!$util['isString'](_0x3ac4ef['documentId'])?'documentId:\x20string\x20expected':null!=_0x3ac4ef['resolvedAt']&&_0x3ac4ef['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x3ac4ef['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x3ac4ef['resolvedBy']&&_0x3ac4ef['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x3ac4ef['resolvedBy'])?'resolvedBy:\x20string\x20expected':null;},CommentsV2ResolveCommentThreadResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2ResolveCommentThreadResponse'])return object;var _0x2757c9=new $root['CommentsV2ResolveCommentThreadResponse']();return null!=object['commentThreadId']&&(_0x2757c9['commentThreadId']=String(object['commentThreadId'])),null!=object['documentId']&&(_0x2757c9['documentId']=String(object['documentId'])),null!=object['resolvedAt']&&(_0x2757c9['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x2757c9['resolvedBy']=String(object['resolvedBy'])),_0x2757c9;},CommentsV2ResolveCommentThreadResponse['toObject']=function(_0x3ad6bf,options){options||(options={});var object={};return options['defaults']&&(object['commentThreadId']='',object['documentId']='',object['resolvedAt']='',object['resolvedBy']=''),null!=_0x3ad6bf['commentThreadId']&&_0x3ad6bf['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x3ad6bf['commentThreadId']),null!=_0x3ad6bf['documentId']&&_0x3ad6bf['hasOwnProperty']('documentId')&&(object['documentId']=_0x3ad6bf['documentId']),null!=_0x3ad6bf['resolvedAt']&&_0x3ad6bf['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x3ad6bf['resolvedAt']),null!=_0x3ad6bf['resolvedBy']&&_0x3ad6bf['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x3ad6bf['resolvedBy']),object;},CommentsV2ResolveCommentThreadResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ResolveCommentThreadResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ResolveCommentThreadResponse';},CommentsV2ResolveCommentThreadResponse;}()),$root['CommentsV2ConnectResponse']=(function(){function CommentsV2ConnectResponse(properties){if(this['threads']=[],this['threadsV2']=[],properties){for(var _0x365535=Object['keys'](properties),_0x2f4856=0x0;_0x2f4856<_0x365535['length'];++_0x2f4856)null!=properties[_0x365535[_0x2f4856]]&&(this[_0x365535[_0x2f4856]]=properties[_0x365535[_0x2f4856]]);}}return CommentsV2ConnectResponse['prototype']['channel']='',CommentsV2ConnectResponse['prototype']['threads']=$util['emptyArray'],CommentsV2ConnectResponse['prototype']['threadsV2']=$util['emptyArray'],CommentsV2ConnectResponse['create']=function(properties){return new CommentsV2ConnectResponse(properties);},CommentsV2ConnectResponse['encode']=function(_0x3c6330,writer){if(writer||(writer=$Writer['create']()),null!=_0x3c6330['channel']&&Object['hasOwnProperty']['call'](_0x3c6330,'channel')&&writer['uint32'](0xa)['string'](_0x3c6330['channel']),null!=_0x3c6330['threads']&&_0x3c6330['threads']['length']){for(var _0x1588e0=0x0;_0x1588e0<_0x3c6330['threads']['length'];++_0x1588e0)writer['uint32'](0x12)['string'](_0x3c6330['threads'][_0x1588e0]);}if(null!=_0x3c6330['threadsV2']&&_0x3c6330['threadsV2']['length']){for(_0x1588e0=0x0;_0x1588e0<_0x3c6330['threadsV2']['length'];++_0x1588e0)$root['CommentsThreadDescriptor']['encode'](_0x3c6330['threadsV2'][_0x1588e0],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},CommentsV2ConnectResponse['encodeDelimited']=function(_0x4d866a,writer){return this['encode'](_0x4d866a,writer)['ldelim']();},CommentsV2ConnectResponse['decode']=function(_0xaeea05,length){_0xaeea05 instanceof _0x498bd5||(_0xaeea05=_0x498bd5['create'](_0xaeea05));for(var _0x4d710f=void 0x0===length?_0xaeea05['len']:_0xaeea05['pos']+length,_0x15c300=new $root['CommentsV2ConnectResponse']();_0xaeea05['pos']<_0x4d710f;){var tag=_0xaeea05['uint32']();switch(tag>>>0x3){case 0x1:_0x15c300['channel']=_0xaeea05['string']();break;case 0x2:_0x15c300['threads']&&_0x15c300['threads']['length']||(_0x15c300['threads']=[]),_0x15c300['threads']['push'](_0xaeea05['string']());break;case 0x3:_0x15c300['threadsV2']&&_0x15c300['threadsV2']['length']||(_0x15c300['threadsV2']=[]),_0x15c300['threadsV2']['push']($root['CommentsThreadDescriptor']['decode'](_0xaeea05,_0xaeea05['uint32']()));break;default:_0xaeea05['skipType'](0x7&tag);}}return _0x15c300;},CommentsV2ConnectResponse['decodeDelimited']=function(_0x426dc7){return _0x426dc7 instanceof _0x498bd5||(_0x426dc7=new _0x498bd5(_0x426dc7)),this['decode'](_0x426dc7,_0x426dc7['uint32']());},CommentsV2ConnectResponse['verify']=function(_0x5ae5d5){if('object'!=typeof _0x5ae5d5||null===_0x5ae5d5)return'object\x20expected';if(null!=_0x5ae5d5['channel']&&_0x5ae5d5['hasOwnProperty']('channel')&&!$util['isString'](_0x5ae5d5['channel']))return'channel:\x20string\x20expected';if(null!=_0x5ae5d5['threads']&&_0x5ae5d5['hasOwnProperty']('threads')){if(!Array['isArray'](_0x5ae5d5['threads']))return'threads:\x20array\x20expected';for(var _0x511896=0x0;_0x511896<_0x5ae5d5['threads']['length'];++_0x511896)if(!$util['isString'](_0x5ae5d5['threads'][_0x511896]))return'threads:\x20string[]\x20expected';}if(null!=_0x5ae5d5['threadsV2']&&_0x5ae5d5['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x5ae5d5['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x511896=0x0;_0x511896<_0x5ae5d5['threadsV2']['length'];++_0x511896){var _0x10aa7d=$root['CommentsThreadDescriptor']['verify'](_0x5ae5d5['threadsV2'][_0x511896]);if(_0x10aa7d)return'threadsV2.'+_0x10aa7d;}}return null;},CommentsV2ConnectResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2ConnectResponse'])return object;var _0x3f8189=new $root['CommentsV2ConnectResponse']();if(null!=object['channel']&&(_0x3f8189['channel']=String(object['channel'])),object['threads']){if(!Array['isArray'](object['threads']))throw TypeError('.CommentsV2ConnectResponse.threads:\x20array\x20expected');_0x3f8189['threads']=[];for(var _0x4c82bc=0x0;_0x4c82bc<object['threads']['length'];++_0x4c82bc)_0x3f8189['threads'][_0x4c82bc]=String(object['threads'][_0x4c82bc]);}if(object['threadsV2']){if(!Array['isArray'](object['threadsV2']))throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20array\x20expected');_0x3f8189['threadsV2']=[];for(_0x4c82bc=0x0;_0x4c82bc<object['threadsV2']['length'];++_0x4c82bc){if('object'!=typeof object['threadsV2'][_0x4c82bc])throw TypeError('.CommentsV2ConnectResponse.threadsV2:\x20object\x20expected');_0x3f8189['threadsV2'][_0x4c82bc]=$root['CommentsThreadDescriptor']['fromObject'](object['threadsV2'][_0x4c82bc]);}}return _0x3f8189;},CommentsV2ConnectResponse['toObject']=function(_0xfd9a76,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['threads']=[],object['threadsV2']=[]),options['defaults']&&(object['channel']=''),null!=_0xfd9a76['channel']&&_0xfd9a76['hasOwnProperty']('channel')&&(object['channel']=_0xfd9a76['channel']),_0xfd9a76['threads']&&_0xfd9a76['threads']['length']){object['threads']=[];for(var _0x342949=0x0;_0x342949<_0xfd9a76['threads']['length'];++_0x342949)object['threads'][_0x342949]=_0xfd9a76['threads'][_0x342949];}if(_0xfd9a76['threadsV2']&&_0xfd9a76['threadsV2']['length']){object['threadsV2']=[];for(_0x342949=0x0;_0x342949<_0xfd9a76['threadsV2']['length'];++_0x342949)object['threadsV2'][_0x342949]=$root['CommentsThreadDescriptor']['toObject'](_0xfd9a76['threadsV2'][_0x342949],options);}return object;},CommentsV2ConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2ConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2ConnectResponse';},CommentsV2ConnectResponse;}()),$root['CommentsV2GetCommentThreadResponse']=(function(){function CommentsV2GetCommentThreadResponse(properties){if(this['comments']=[],this['commentsV2']=[],properties){for(var _0x23a566=Object['keys'](properties),_0x8e4289=0x0;_0x8e4289<_0x23a566['length'];++_0x8e4289)null!=properties[_0x23a566[_0x8e4289]]&&(this[_0x23a566[_0x8e4289]]=properties[_0x23a566[_0x8e4289]]);}}return CommentsV2GetCommentThreadResponse['prototype']['commentThreadId']='',CommentsV2GetCommentThreadResponse['prototype']['comments']=$util['emptyArray'],CommentsV2GetCommentThreadResponse['prototype']['commentsV2']=$util['emptyArray'],CommentsV2GetCommentThreadResponse['prototype']['resolvedAt']='',CommentsV2GetCommentThreadResponse['prototype']['resolvedBy']='',CommentsV2GetCommentThreadResponse['prototype']['context']='',CommentsV2GetCommentThreadResponse['prototype']['createdAt']='',CommentsV2GetCommentThreadResponse['prototype']['deletedAt']='',CommentsV2GetCommentThreadResponse['prototype']['attributes']='',CommentsV2GetCommentThreadResponse['prototype']['unlinkedAt']='',CommentsV2GetCommentThreadResponse['create']=function(properties){return new CommentsV2GetCommentThreadResponse(properties);},CommentsV2GetCommentThreadResponse['encode']=function(_0x38d681,writer){if(writer||(writer=$Writer['create']()),null!=_0x38d681['commentThreadId']&&Object['hasOwnProperty']['call'](_0x38d681,'commentThreadId')&&writer['uint32'](0xa)['string'](_0x38d681['commentThreadId']),null!=_0x38d681['comments']&&_0x38d681['comments']['length']){for(var _0x23ea92=0x0;_0x23ea92<_0x38d681['comments']['length'];++_0x23ea92)writer['uint32'](0x12)['string'](_0x38d681['comments'][_0x23ea92]);}if(null!=_0x38d681['commentsV2']&&_0x38d681['commentsV2']['length']){for(_0x23ea92=0x0;_0x23ea92<_0x38d681['commentsV2']['length'];++_0x23ea92)$root['CommentDescriptor']['encode'](_0x38d681['commentsV2'][_0x23ea92],writer['uint32'](0x1a)['fork']())['ldelim']();}return null!=_0x38d681['resolvedAt']&&Object['hasOwnProperty']['call'](_0x38d681,'resolvedAt')&&writer['uint32'](0x22)['string'](_0x38d681['resolvedAt']),null!=_0x38d681['resolvedBy']&&Object['hasOwnProperty']['call'](_0x38d681,'resolvedBy')&&writer['uint32'](0x2a)['string'](_0x38d681['resolvedBy']),null!=_0x38d681['context']&&Object['hasOwnProperty']['call'](_0x38d681,'context')&&writer['uint32'](0x32)['string'](_0x38d681['context']),null!=_0x38d681['createdAt']&&Object['hasOwnProperty']['call'](_0x38d681,'createdAt')&&writer['uint32'](0x3a)['string'](_0x38d681['createdAt']),null!=_0x38d681['deletedAt']&&Object['hasOwnProperty']['call'](_0x38d681,'deletedAt')&&writer['uint32'](0x42)['string'](_0x38d681['deletedAt']),null!=_0x38d681['attributes']&&Object['hasOwnProperty']['call'](_0x38d681,'attributes')&&writer['uint32'](0x4a)['string'](_0x38d681['attributes']),null!=_0x38d681['unlinkedAt']&&Object['hasOwnProperty']['call'](_0x38d681,'unlinkedAt')&&writer['uint32'](0x52)['string'](_0x38d681['unlinkedAt']),writer;},CommentsV2GetCommentThreadResponse['encodeDelimited']=function(_0x19c47d,writer){return this['encode'](_0x19c47d,writer)['ldelim']();},CommentsV2GetCommentThreadResponse['decode']=function(_0x17bf44,length){_0x17bf44 instanceof _0x498bd5||(_0x17bf44=_0x498bd5['create'](_0x17bf44));for(var _0x4c5357=void 0x0===length?_0x17bf44['len']:_0x17bf44['pos']+length,_0x771579=new $root['CommentsV2GetCommentThreadResponse']();_0x17bf44['pos']<_0x4c5357;){var tag=_0x17bf44['uint32']();switch(tag>>>0x3){case 0x1:_0x771579['commentThreadId']=_0x17bf44['string']();break;case 0x2:_0x771579['comments']&&_0x771579['comments']['length']||(_0x771579['comments']=[]),_0x771579['comments']['push'](_0x17bf44['string']());break;case 0x3:_0x771579['commentsV2']&&_0x771579['commentsV2']['length']||(_0x771579['commentsV2']=[]),_0x771579['commentsV2']['push']($root['CommentDescriptor']['decode'](_0x17bf44,_0x17bf44['uint32']()));break;case 0x4:_0x771579['resolvedAt']=_0x17bf44['string']();break;case 0x5:_0x771579['resolvedBy']=_0x17bf44['string']();break;case 0x6:_0x771579['context']=_0x17bf44['string']();break;case 0x7:_0x771579['createdAt']=_0x17bf44['string']();break;case 0x8:_0x771579['deletedAt']=_0x17bf44['string']();break;case 0x9:_0x771579['attributes']=_0x17bf44['string']();break;case 0xa:_0x771579['unlinkedAt']=_0x17bf44['string']();break;default:_0x17bf44['skipType'](0x7&tag);}}return _0x771579;},CommentsV2GetCommentThreadResponse['decodeDelimited']=function(_0x4aa4db){return _0x4aa4db instanceof _0x498bd5||(_0x4aa4db=new _0x498bd5(_0x4aa4db)),this['decode'](_0x4aa4db,_0x4aa4db['uint32']());},CommentsV2GetCommentThreadResponse['verify']=function(_0x589047){if('object'!=typeof _0x589047||null===_0x589047)return'object\x20expected';if(null!=_0x589047['commentThreadId']&&_0x589047['hasOwnProperty']('commentThreadId')&&!$util['isString'](_0x589047['commentThreadId']))return'commentThreadId:\x20string\x20expected';if(null!=_0x589047['comments']&&_0x589047['hasOwnProperty']('comments')){if(!Array['isArray'](_0x589047['comments']))return'comments:\x20array\x20expected';for(var _0x9c8675=0x0;_0x9c8675<_0x589047['comments']['length'];++_0x9c8675)if(!$util['isString'](_0x589047['comments'][_0x9c8675]))return'comments:\x20string[]\x20expected';}if(null!=_0x589047['commentsV2']&&_0x589047['hasOwnProperty']('commentsV2')){if(!Array['isArray'](_0x589047['commentsV2']))return'commentsV2:\x20array\x20expected';for(_0x9c8675=0x0;_0x9c8675<_0x589047['commentsV2']['length'];++_0x9c8675){var _0x4088b5=$root['CommentDescriptor']['verify'](_0x589047['commentsV2'][_0x9c8675]);if(_0x4088b5)return'commentsV2.'+_0x4088b5;}}return null!=_0x589047['resolvedAt']&&_0x589047['hasOwnProperty']('resolvedAt')&&!$util['isString'](_0x589047['resolvedAt'])?'resolvedAt:\x20string\x20expected':null!=_0x589047['resolvedBy']&&_0x589047['hasOwnProperty']('resolvedBy')&&!$util['isString'](_0x589047['resolvedBy'])?'resolvedBy:\x20string\x20expected':null!=_0x589047['context']&&_0x589047['hasOwnProperty']('context')&&!$util['isString'](_0x589047['context'])?'context:\x20string\x20expected':null!=_0x589047['createdAt']&&_0x589047['hasOwnProperty']('createdAt')&&!$util['isString'](_0x589047['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x589047['deletedAt']&&_0x589047['hasOwnProperty']('deletedAt')&&!$util['isString'](_0x589047['deletedAt'])?'deletedAt:\x20string\x20expected':null!=_0x589047['attributes']&&_0x589047['hasOwnProperty']('attributes')&&!$util['isString'](_0x589047['attributes'])?'attributes:\x20string\x20expected':null!=_0x589047['unlinkedAt']&&_0x589047['hasOwnProperty']('unlinkedAt')&&!$util['isString'](_0x589047['unlinkedAt'])?'unlinkedAt:\x20string\x20expected':null;},CommentsV2GetCommentThreadResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2GetCommentThreadResponse'])return object;var _0x3b365f=new $root['CommentsV2GetCommentThreadResponse']();if(null!=object['commentThreadId']&&(_0x3b365f['commentThreadId']=String(object['commentThreadId'])),object['comments']){if(!Array['isArray'](object['comments']))throw TypeError('.CommentsV2GetCommentThreadResponse.comments:\x20array\x20expected');_0x3b365f['comments']=[];for(var _0x1e3dde=0x0;_0x1e3dde<object['comments']['length'];++_0x1e3dde)_0x3b365f['comments'][_0x1e3dde]=String(object['comments'][_0x1e3dde]);}if(object['commentsV2']){if(!Array['isArray'](object['commentsV2']))throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20array\x20expected');_0x3b365f['commentsV2']=[];for(_0x1e3dde=0x0;_0x1e3dde<object['commentsV2']['length'];++_0x1e3dde){if('object'!=typeof object['commentsV2'][_0x1e3dde])throw TypeError('.CommentsV2GetCommentThreadResponse.commentsV2:\x20object\x20expected');_0x3b365f['commentsV2'][_0x1e3dde]=$root['CommentDescriptor']['fromObject'](object['commentsV2'][_0x1e3dde]);}}return null!=object['resolvedAt']&&(_0x3b365f['resolvedAt']=String(object['resolvedAt'])),null!=object['resolvedBy']&&(_0x3b365f['resolvedBy']=String(object['resolvedBy'])),null!=object['context']&&(_0x3b365f['context']=String(object['context'])),null!=object['createdAt']&&(_0x3b365f['createdAt']=String(object['createdAt'])),null!=object['deletedAt']&&(_0x3b365f['deletedAt']=String(object['deletedAt'])),null!=object['attributes']&&(_0x3b365f['attributes']=String(object['attributes'])),null!=object['unlinkedAt']&&(_0x3b365f['unlinkedAt']=String(object['unlinkedAt'])),_0x3b365f;},CommentsV2GetCommentThreadResponse['toObject']=function(_0x2d3c22,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['comments']=[],object['commentsV2']=[]),options['defaults']&&(object['commentThreadId']='',object['resolvedAt']='',object['resolvedBy']='',object['context']='',object['createdAt']='',object['deletedAt']='',object['attributes']='',object['unlinkedAt']=''),null!=_0x2d3c22['commentThreadId']&&_0x2d3c22['hasOwnProperty']('commentThreadId')&&(object['commentThreadId']=_0x2d3c22['commentThreadId']),_0x2d3c22['comments']&&_0x2d3c22['comments']['length']){object['comments']=[];for(var _0x3603bc=0x0;_0x3603bc<_0x2d3c22['comments']['length'];++_0x3603bc)object['comments'][_0x3603bc]=_0x2d3c22['comments'][_0x3603bc];}if(_0x2d3c22['commentsV2']&&_0x2d3c22['commentsV2']['length']){object['commentsV2']=[];for(_0x3603bc=0x0;_0x3603bc<_0x2d3c22['commentsV2']['length'];++_0x3603bc)object['commentsV2'][_0x3603bc]=$root['CommentDescriptor']['toObject'](_0x2d3c22['commentsV2'][_0x3603bc],options);}return null!=_0x2d3c22['resolvedAt']&&_0x2d3c22['hasOwnProperty']('resolvedAt')&&(object['resolvedAt']=_0x2d3c22['resolvedAt']),null!=_0x2d3c22['resolvedBy']&&_0x2d3c22['hasOwnProperty']('resolvedBy')&&(object['resolvedBy']=_0x2d3c22['resolvedBy']),null!=_0x2d3c22['context']&&_0x2d3c22['hasOwnProperty']('context')&&(object['context']=_0x2d3c22['context']),null!=_0x2d3c22['createdAt']&&_0x2d3c22['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x2d3c22['createdAt']),null!=_0x2d3c22['deletedAt']&&_0x2d3c22['hasOwnProperty']('deletedAt')&&(object['deletedAt']=_0x2d3c22['deletedAt']),null!=_0x2d3c22['attributes']&&_0x2d3c22['hasOwnProperty']('attributes')&&(object['attributes']=_0x2d3c22['attributes']),null!=_0x2d3c22['unlinkedAt']&&_0x2d3c22['hasOwnProperty']('unlinkedAt')&&(object['unlinkedAt']=_0x2d3c22['unlinkedAt']),object;},CommentsV2GetCommentThreadResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetCommentThreadResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetCommentThreadResponse';},CommentsV2GetCommentThreadResponse;}()),$root['CommentsV2GetDocumentThreadsResponse']=(function(){function CommentsV2GetDocumentThreadsResponse(properties){if(this['threads']=[],this['threadsV2']=[],properties){for(var _0x57f675=Object['keys'](properties),_0x33e860=0x0;_0x33e860<_0x57f675['length'];++_0x33e860)null!=properties[_0x57f675[_0x33e860]]&&(this[_0x57f675[_0x33e860]]=properties[_0x57f675[_0x33e860]]);}}return CommentsV2GetDocumentThreadsResponse['prototype']['threads']=$util['emptyArray'],CommentsV2GetDocumentThreadsResponse['prototype']['threadsV2']=$util['emptyArray'],CommentsV2GetDocumentThreadsResponse['create']=function(properties){return new CommentsV2GetDocumentThreadsResponse(properties);},CommentsV2GetDocumentThreadsResponse['encode']=function(_0xd0f365,writer){if(writer||(writer=$Writer['create']()),null!=_0xd0f365['threads']&&_0xd0f365['threads']['length']){for(var _0x5078fb=0x0;_0x5078fb<_0xd0f365['threads']['length'];++_0x5078fb)writer['uint32'](0xa)['string'](_0xd0f365['threads'][_0x5078fb]);}if(null!=_0xd0f365['threadsV2']&&_0xd0f365['threadsV2']['length']){for(_0x5078fb=0x0;_0x5078fb<_0xd0f365['threadsV2']['length'];++_0x5078fb)$root['CommentsThreadDescriptor']['encode'](_0xd0f365['threadsV2'][_0x5078fb],writer['uint32'](0x12)['fork']())['ldelim']();}return writer;},CommentsV2GetDocumentThreadsResponse['encodeDelimited']=function(_0x5af0f0,writer){return this['encode'](_0x5af0f0,writer)['ldelim']();},CommentsV2GetDocumentThreadsResponse['decode']=function(_0x16f31f,length){_0x16f31f instanceof _0x498bd5||(_0x16f31f=_0x498bd5['create'](_0x16f31f));for(var _0x5871e5=void 0x0===length?_0x16f31f['len']:_0x16f31f['pos']+length,_0x58ce0b=new $root['CommentsV2GetDocumentThreadsResponse']();_0x16f31f['pos']<_0x5871e5;){var tag=_0x16f31f['uint32']();switch(tag>>>0x3){case 0x1:_0x58ce0b['threads']&&_0x58ce0b['threads']['length']||(_0x58ce0b['threads']=[]),_0x58ce0b['threads']['push'](_0x16f31f['string']());break;case 0x2:_0x58ce0b['threadsV2']&&_0x58ce0b['threadsV2']['length']||(_0x58ce0b['threadsV2']=[]),_0x58ce0b['threadsV2']['push']($root['CommentsThreadDescriptor']['decode'](_0x16f31f,_0x16f31f['uint32']()));break;default:_0x16f31f['skipType'](0x7&tag);}}return _0x58ce0b;},CommentsV2GetDocumentThreadsResponse['decodeDelimited']=function(_0x3afcf8){return _0x3afcf8 instanceof _0x498bd5||(_0x3afcf8=new _0x498bd5(_0x3afcf8)),this['decode'](_0x3afcf8,_0x3afcf8['uint32']());},CommentsV2GetDocumentThreadsResponse['verify']=function(_0x3e13d1){if('object'!=typeof _0x3e13d1||null===_0x3e13d1)return'object\x20expected';if(null!=_0x3e13d1['threads']&&_0x3e13d1['hasOwnProperty']('threads')){if(!Array['isArray'](_0x3e13d1['threads']))return'threads:\x20array\x20expected';for(var _0x28d661=0x0;_0x28d661<_0x3e13d1['threads']['length'];++_0x28d661)if(!$util['isString'](_0x3e13d1['threads'][_0x28d661]))return'threads:\x20string[]\x20expected';}if(null!=_0x3e13d1['threadsV2']&&_0x3e13d1['hasOwnProperty']('threadsV2')){if(!Array['isArray'](_0x3e13d1['threadsV2']))return'threadsV2:\x20array\x20expected';for(_0x28d661=0x0;_0x28d661<_0x3e13d1['threadsV2']['length'];++_0x28d661){var _0x541164=$root['CommentsThreadDescriptor']['verify'](_0x3e13d1['threadsV2'][_0x28d661]);if(_0x541164)return'threadsV2.'+_0x541164;}}return null;},CommentsV2GetDocumentThreadsResponse['fromObject']=function(object){if(object instanceof $root['CommentsV2GetDocumentThreadsResponse'])return object;var _0x35617b=new $root['CommentsV2GetDocumentThreadsResponse']();if(object['threads']){if(!Array['isArray'](object['threads']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threads:\x20array\x20expected');_0x35617b['threads']=[];for(var _0x175f0e=0x0;_0x175f0e<object['threads']['length'];++_0x175f0e)_0x35617b['threads'][_0x175f0e]=String(object['threads'][_0x175f0e]);}if(object['threadsV2']){if(!Array['isArray'](object['threadsV2']))throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20array\x20expected');_0x35617b['threadsV2']=[];for(_0x175f0e=0x0;_0x175f0e<object['threadsV2']['length'];++_0x175f0e){if('object'!=typeof object['threadsV2'][_0x175f0e])throw TypeError('.CommentsV2GetDocumentThreadsResponse.threadsV2:\x20object\x20expected');_0x35617b['threadsV2'][_0x175f0e]=$root['CommentsThreadDescriptor']['fromObject'](object['threadsV2'][_0x175f0e]);}}return _0x35617b;},CommentsV2GetDocumentThreadsResponse['toObject']=function(_0x8c90a8,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['threads']=[],object['threadsV2']=[]),_0x8c90a8['threads']&&_0x8c90a8['threads']['length']){object['threads']=[];for(var _0xeb7cab=0x0;_0xeb7cab<_0x8c90a8['threads']['length'];++_0xeb7cab)object['threads'][_0xeb7cab]=_0x8c90a8['threads'][_0xeb7cab];}if(_0x8c90a8['threadsV2']&&_0x8c90a8['threadsV2']['length']){object['threadsV2']=[];for(_0xeb7cab=0x0;_0xeb7cab<_0x8c90a8['threadsV2']['length'];++_0xeb7cab)object['threadsV2'][_0xeb7cab]=$root['CommentsThreadDescriptor']['toObject'](_0x8c90a8['threadsV2'][_0xeb7cab],options);}return object;},CommentsV2GetDocumentThreadsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},CommentsV2GetDocumentThreadsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/CommentsV2GetDocumentThreadsResponse';},CommentsV2GetDocumentThreadsResponse;}()),$root['KeyValueDescriptor']=(function(){function KeyValueDescriptor(properties){if(properties){for(var _0x51024d=Object['keys'](properties),_0x48ecdf=0x0;_0x48ecdf<_0x51024d['length'];++_0x48ecdf)null!=properties[_0x51024d[_0x48ecdf]]&&(this[_0x51024d[_0x48ecdf]]=properties[_0x51024d[_0x48ecdf]]);}}return KeyValueDescriptor['prototype']['key']='',KeyValueDescriptor['prototype']['value']='',KeyValueDescriptor['create']=function(properties){return new KeyValueDescriptor(properties);},KeyValueDescriptor['encode']=function(_0x765908,writer){return writer||(writer=$Writer['create']()),null!=_0x765908['key']&&Object['hasOwnProperty']['call'](_0x765908,'key')&&writer['uint32'](0xa)['string'](_0x765908['key']),null!=_0x765908['value']&&Object['hasOwnProperty']['call'](_0x765908,'value')&&writer['uint32'](0x12)['string'](_0x765908['value']),writer;},KeyValueDescriptor['encodeDelimited']=function(_0x2c3a6a,writer){return this['encode'](_0x2c3a6a,writer)['ldelim']();},KeyValueDescriptor['decode']=function(_0x50e1dd,length){_0x50e1dd instanceof _0x498bd5||(_0x50e1dd=_0x498bd5['create'](_0x50e1dd));for(var _0xfe3849=void 0x0===length?_0x50e1dd['len']:_0x50e1dd['pos']+length,_0x3033d0=new $root['KeyValueDescriptor']();_0x50e1dd['pos']<_0xfe3849;){var tag=_0x50e1dd['uint32']();switch(tag>>>0x3){case 0x1:_0x3033d0['key']=_0x50e1dd['string']();break;case 0x2:_0x3033d0['value']=_0x50e1dd['string']();break;default:_0x50e1dd['skipType'](0x7&tag);}}return _0x3033d0;},KeyValueDescriptor['decodeDelimited']=function(_0x43bc04){return _0x43bc04 instanceof _0x498bd5||(_0x43bc04=new _0x498bd5(_0x43bc04)),this['decode'](_0x43bc04,_0x43bc04['uint32']());},KeyValueDescriptor['verify']=function(_0x538954){return'object'!=typeof _0x538954||null===_0x538954?'object\x20expected':null!=_0x538954['key']&&_0x538954['hasOwnProperty']('key')&&!$util['isString'](_0x538954['key'])?'key:\x20string\x20expected':null!=_0x538954['value']&&_0x538954['hasOwnProperty']('value')&&!$util['isString'](_0x538954['value'])?'value:\x20string\x20expected':null;},KeyValueDescriptor['fromObject']=function(object){if(object instanceof $root['KeyValueDescriptor'])return object;var _0x7cc90=new $root['KeyValueDescriptor']();return null!=object['key']&&(_0x7cc90['key']=String(object['key'])),null!=object['value']&&(_0x7cc90['value']=String(object['value'])),_0x7cc90;},KeyValueDescriptor['toObject']=function(_0x2e6592,options){options||(options={});var object={};return options['defaults']&&(object['key']='',object['value']=''),null!=_0x2e6592['key']&&_0x2e6592['hasOwnProperty']('key')&&(object['key']=_0x2e6592['key']),null!=_0x2e6592['value']&&_0x2e6592['hasOwnProperty']('value')&&(object['value']=_0x2e6592['value']),object;},KeyValueDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},KeyValueDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/KeyValueDescriptor';},KeyValueDescriptor;}()),$root['IsEditorBundleUploadedMessage']=(function(){function IsEditorBundleUploadedMessage(properties){if(properties){for(var _0x101a21=Object['keys'](properties),_0x230621=0x0;_0x230621<_0x101a21['length'];++_0x230621)null!=properties[_0x101a21[_0x230621]]&&(this[_0x101a21[_0x230621]]=properties[_0x101a21[_0x230621]]);}}return IsEditorBundleUploadedMessage['prototype']['bundleVersion']='',IsEditorBundleUploadedMessage['create']=function(properties){return new IsEditorBundleUploadedMessage(properties);},IsEditorBundleUploadedMessage['encode']=function(_0x500848,writer){return writer||(writer=$Writer['create']()),null!=_0x500848['bundleVersion']&&Object['hasOwnProperty']['call'](_0x500848,'bundleVersion')&&writer['uint32'](0xa)['string'](_0x500848['bundleVersion']),writer;},IsEditorBundleUploadedMessage['encodeDelimited']=function(_0xb1c56a,writer){return this['encode'](_0xb1c56a,writer)['ldelim']();},IsEditorBundleUploadedMessage['decode']=function(_0x468dd6,length){_0x468dd6 instanceof _0x498bd5||(_0x468dd6=_0x498bd5['create'](_0x468dd6));for(var _0x5dd985=void 0x0===length?_0x468dd6['len']:_0x468dd6['pos']+length,_0x32773a=new $root['IsEditorBundleUploadedMessage']();_0x468dd6['pos']<_0x5dd985;){var tag=_0x468dd6['uint32']();if(tag>>>0x3==0x1)_0x32773a['bundleVersion']=_0x468dd6['string']();else _0x468dd6['skipType'](0x7&tag);}return _0x32773a;},IsEditorBundleUploadedMessage['decodeDelimited']=function(_0x4a904c){return _0x4a904c instanceof _0x498bd5||(_0x4a904c=new _0x498bd5(_0x4a904c)),this['decode'](_0x4a904c,_0x4a904c['uint32']());},IsEditorBundleUploadedMessage['verify']=function(_0x37ae8c){return'object'!=typeof _0x37ae8c||null===_0x37ae8c?'object\x20expected':null!=_0x37ae8c['bundleVersion']&&_0x37ae8c['hasOwnProperty']('bundleVersion')&&!$util['isString'](_0x37ae8c['bundleVersion'])?'bundleVersion:\x20string\x20expected':null;},IsEditorBundleUploadedMessage['fromObject']=function(object){if(object instanceof $root['IsEditorBundleUploadedMessage'])return object;var _0x5c2245=new $root['IsEditorBundleUploadedMessage']();return null!=object['bundleVersion']&&(_0x5c2245['bundleVersion']=String(object['bundleVersion'])),_0x5c2245;},IsEditorBundleUploadedMessage['toObject']=function(_0x1ad7c1,options){options||(options={});var object={};return options['defaults']&&(object['bundleVersion']=''),null!=_0x1ad7c1['bundleVersion']&&_0x1ad7c1['hasOwnProperty']('bundleVersion')&&(object['bundleVersion']=_0x1ad7c1['bundleVersion']),object;},IsEditorBundleUploadedMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},IsEditorBundleUploadedMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/IsEditorBundleUploadedMessage';},IsEditorBundleUploadedMessage;}()),$root['IsEditorBundleUploadedResponse']=(function(){function IsEditorBundleUploadedResponse(properties){if(properties){for(var _0x3385f7=Object['keys'](properties),_0x2825f1=0x0;_0x2825f1<_0x3385f7['length'];++_0x2825f1)null!=properties[_0x3385f7[_0x2825f1]]&&(this[_0x3385f7[_0x2825f1]]=properties[_0x3385f7[_0x2825f1]]);}}return IsEditorBundleUploadedResponse['prototype']['isUploaded']=!0x1,IsEditorBundleUploadedResponse['create']=function(properties){return new IsEditorBundleUploadedResponse(properties);},IsEditorBundleUploadedResponse['encode']=function(_0x5c54ac,writer){return writer||(writer=$Writer['create']()),null!=_0x5c54ac['isUploaded']&&Object['hasOwnProperty']['call'](_0x5c54ac,'isUploaded')&&writer['uint32'](0x8)['bool'](_0x5c54ac['isUploaded']),writer;},IsEditorBundleUploadedResponse['encodeDelimited']=function(_0x3ec3fb,writer){return this['encode'](_0x3ec3fb,writer)['ldelim']();},IsEditorBundleUploadedResponse['decode']=function(_0x204129,length){_0x204129 instanceof _0x498bd5||(_0x204129=_0x498bd5['create'](_0x204129));for(var _0x25adcb=void 0x0===length?_0x204129['len']:_0x204129['pos']+length,_0x5cf517=new $root['IsEditorBundleUploadedResponse']();_0x204129['pos']<_0x25adcb;){var tag=_0x204129['uint32']();if(tag>>>0x3==0x1)_0x5cf517['isUploaded']=_0x204129['bool']();else _0x204129['skipType'](0x7&tag);}return _0x5cf517;},IsEditorBundleUploadedResponse['decodeDelimited']=function(_0x2fa494){return _0x2fa494 instanceof _0x498bd5||(_0x2fa494=new _0x498bd5(_0x2fa494)),this['decode'](_0x2fa494,_0x2fa494['uint32']());},IsEditorBundleUploadedResponse['verify']=function(_0x748be){return'object'!=typeof _0x748be||null===_0x748be?'object\x20expected':null!=_0x748be['isUploaded']&&_0x748be['hasOwnProperty']('isUploaded')&&'boolean'!=typeof _0x748be['isUploaded']?'isUploaded:\x20boolean\x20expected':null;},IsEditorBundleUploadedResponse['fromObject']=function(object){if(object instanceof $root['IsEditorBundleUploadedResponse'])return object;var _0x517c98=new $root['IsEditorBundleUploadedResponse']();return null!=object['isUploaded']&&(_0x517c98['isUploaded']=Boolean(object['isUploaded'])),_0x517c98;},IsEditorBundleUploadedResponse['toObject']=function(_0x4d89a5,options){options||(options={});var object={};return options['defaults']&&(object['isUploaded']=!0x1),null!=_0x4d89a5['isUploaded']&&_0x4d89a5['hasOwnProperty']('isUploaded')&&(object['isUploaded']=_0x4d89a5['isUploaded']),object;},IsEditorBundleUploadedResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},IsEditorBundleUploadedResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/IsEditorBundleUploadedResponse';},IsEditorBundleUploadedResponse;}()),$root['RevisionDescriptor']=(function(){function RevisionDescriptor(properties){if(properties){for(var _0x44bce4=Object['keys'](properties),_0x5c9b4b=0x0;_0x5c9b4b<_0x44bce4['length'];++_0x5c9b4b)null!=properties[_0x44bce4[_0x5c9b4b]]&&(this[_0x44bce4[_0x5c9b4b]]=properties[_0x44bce4[_0x5c9b4b]]);}}return RevisionDescriptor['prototype']['revisionId']='',RevisionDescriptor['prototype']['name']='',RevisionDescriptor['prototype']['creatorId']='',RevisionDescriptor['prototype']['authorsIds']='',RevisionDescriptor['prototype']['diffData']='',RevisionDescriptor['prototype']['createdAt']='',RevisionDescriptor['prototype']['attributes']='',RevisionDescriptor['prototype']['toVersion']=0x0,RevisionDescriptor['prototype']['fromVersion']=0x0,RevisionDescriptor['prototype']['isEmptyCurrent']=!0x1,RevisionDescriptor['create']=function(properties){return new RevisionDescriptor(properties);},RevisionDescriptor['encode']=function(_0x88a358,writer){return writer||(writer=$Writer['create']()),null!=_0x88a358['revisionId']&&Object['hasOwnProperty']['call'](_0x88a358,'revisionId')&&writer['uint32'](0xa)['string'](_0x88a358['revisionId']),null!=_0x88a358['name']&&Object['hasOwnProperty']['call'](_0x88a358,'name')&&writer['uint32'](0x12)['string'](_0x88a358['name']),null!=_0x88a358['creatorId']&&Object['hasOwnProperty']['call'](_0x88a358,'creatorId')&&writer['uint32'](0x1a)['string'](_0x88a358['creatorId']),null!=_0x88a358['authorsIds']&&Object['hasOwnProperty']['call'](_0x88a358,'authorsIds')&&writer['uint32'](0x22)['string'](_0x88a358['authorsIds']),null!=_0x88a358['diffData']&&Object['hasOwnProperty']['call'](_0x88a358,'diffData')&&writer['uint32'](0x2a)['string'](_0x88a358['diffData']),null!=_0x88a358['createdAt']&&Object['hasOwnProperty']['call'](_0x88a358,'createdAt')&&writer['uint32'](0x32)['string'](_0x88a358['createdAt']),null!=_0x88a358['attributes']&&Object['hasOwnProperty']['call'](_0x88a358,'attributes')&&writer['uint32'](0x3a)['string'](_0x88a358['attributes']),null!=_0x88a358['toVersion']&&Object['hasOwnProperty']['call'](_0x88a358,'toVersion')&&writer['uint32'](0x40)['uint32'](_0x88a358['toVersion']),null!=_0x88a358['fromVersion']&&Object['hasOwnProperty']['call'](_0x88a358,'fromVersion')&&writer['uint32'](0x48)['uint32'](_0x88a358['fromVersion']),null!=_0x88a358['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x88a358,'isEmptyCurrent')&&writer['uint32'](0x50)['bool'](_0x88a358['isEmptyCurrent']),writer;},RevisionDescriptor['encodeDelimited']=function(_0x1099d6,writer){return this['encode'](_0x1099d6,writer)['ldelim']();},RevisionDescriptor['decode']=function(_0x2f2381,length){_0x2f2381 instanceof _0x498bd5||(_0x2f2381=_0x498bd5['create'](_0x2f2381));for(var _0x172265=void 0x0===length?_0x2f2381['len']:_0x2f2381['pos']+length,_0x1157b7=new $root['RevisionDescriptor']();_0x2f2381['pos']<_0x172265;){var tag=_0x2f2381['uint32']();switch(tag>>>0x3){case 0x1:_0x1157b7['revisionId']=_0x2f2381['string']();break;case 0x2:_0x1157b7['name']=_0x2f2381['string']();break;case 0x3:_0x1157b7['creatorId']=_0x2f2381['string']();break;case 0x4:_0x1157b7['authorsIds']=_0x2f2381['string']();break;case 0x5:_0x1157b7['diffData']=_0x2f2381['string']();break;case 0x6:_0x1157b7['createdAt']=_0x2f2381['string']();break;case 0x7:_0x1157b7['attributes']=_0x2f2381['string']();break;case 0x8:_0x1157b7['toVersion']=_0x2f2381['uint32']();break;case 0x9:_0x1157b7['fromVersion']=_0x2f2381['uint32']();break;case 0xa:_0x1157b7['isEmptyCurrent']=_0x2f2381['bool']();break;default:_0x2f2381['skipType'](0x7&tag);}}return _0x1157b7;},RevisionDescriptor['decodeDelimited']=function(_0xa3255f){return _0xa3255f instanceof _0x498bd5||(_0xa3255f=new _0x498bd5(_0xa3255f)),this['decode'](_0xa3255f,_0xa3255f['uint32']());},RevisionDescriptor['verify']=function(_0x31461f){return'object'!=typeof _0x31461f||null===_0x31461f?'object\x20expected':null!=_0x31461f['revisionId']&&_0x31461f['hasOwnProperty']('revisionId')&&!$util['isString'](_0x31461f['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x31461f['name']&&_0x31461f['hasOwnProperty']('name')&&!$util['isString'](_0x31461f['name'])?'name:\x20string\x20expected':null!=_0x31461f['creatorId']&&_0x31461f['hasOwnProperty']('creatorId')&&!$util['isString'](_0x31461f['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x31461f['authorsIds']&&_0x31461f['hasOwnProperty']('authorsIds')&&!$util['isString'](_0x31461f['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x31461f['diffData']&&_0x31461f['hasOwnProperty']('diffData')&&!$util['isString'](_0x31461f['diffData'])?'diffData:\x20string\x20expected':null!=_0x31461f['createdAt']&&_0x31461f['hasOwnProperty']('createdAt')&&!$util['isString'](_0x31461f['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x31461f['attributes']&&_0x31461f['hasOwnProperty']('attributes')&&!$util['isString'](_0x31461f['attributes'])?'attributes:\x20string\x20expected':null!=_0x31461f['toVersion']&&_0x31461f['hasOwnProperty']('toVersion')&&!$util['isInteger'](_0x31461f['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x31461f['fromVersion']&&_0x31461f['hasOwnProperty']('fromVersion')&&!$util['isInteger'](_0x31461f['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x31461f['isEmptyCurrent']&&_0x31461f['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x31461f['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},RevisionDescriptor['fromObject']=function(object){if(object instanceof $root['RevisionDescriptor'])return object;var _0x4c9590=new $root['RevisionDescriptor']();return null!=object['revisionId']&&(_0x4c9590['revisionId']=String(object['revisionId'])),null!=object['name']&&(_0x4c9590['name']=String(object['name'])),null!=object['creatorId']&&(_0x4c9590['creatorId']=String(object['creatorId'])),null!=object['authorsIds']&&(_0x4c9590['authorsIds']=String(object['authorsIds'])),null!=object['diffData']&&(_0x4c9590['diffData']=String(object['diffData'])),null!=object['createdAt']&&(_0x4c9590['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x4c9590['attributes']=String(object['attributes'])),null!=object['toVersion']&&(_0x4c9590['toVersion']=object['toVersion']>>>0x0),null!=object['fromVersion']&&(_0x4c9590['fromVersion']=object['fromVersion']>>>0x0),null!=object['isEmptyCurrent']&&(_0x4c9590['isEmptyCurrent']=Boolean(object['isEmptyCurrent'])),_0x4c9590;},RevisionDescriptor['toObject']=function(_0xdef146,options){options||(options={});var object={};return options['defaults']&&(object['revisionId']='',object['name']='',object['creatorId']='',object['authorsIds']='',object['diffData']='',object['createdAt']='',object['attributes']='',object['toVersion']=0x0,object['fromVersion']=0x0,object['isEmptyCurrent']=!0x1),null!=_0xdef146['revisionId']&&_0xdef146['hasOwnProperty']('revisionId')&&(object['revisionId']=_0xdef146['revisionId']),null!=_0xdef146['name']&&_0xdef146['hasOwnProperty']('name')&&(object['name']=_0xdef146['name']),null!=_0xdef146['creatorId']&&_0xdef146['hasOwnProperty']('creatorId')&&(object['creatorId']=_0xdef146['creatorId']),null!=_0xdef146['authorsIds']&&_0xdef146['hasOwnProperty']('authorsIds')&&(object['authorsIds']=_0xdef146['authorsIds']),null!=_0xdef146['diffData']&&_0xdef146['hasOwnProperty']('diffData')&&(object['diffData']=_0xdef146['diffData']),null!=_0xdef146['createdAt']&&_0xdef146['hasOwnProperty']('createdAt')&&(object['createdAt']=_0xdef146['createdAt']),null!=_0xdef146['attributes']&&_0xdef146['hasOwnProperty']('attributes')&&(object['attributes']=_0xdef146['attributes']),null!=_0xdef146['toVersion']&&_0xdef146['hasOwnProperty']('toVersion')&&(object['toVersion']=_0xdef146['toVersion']),null!=_0xdef146['fromVersion']&&_0xdef146['hasOwnProperty']('fromVersion')&&(object['fromVersion']=_0xdef146['fromVersion']),null!=_0xdef146['isEmptyCurrent']&&_0xdef146['hasOwnProperty']('isEmptyCurrent')&&(object['isEmptyCurrent']=_0xdef146['isEmptyCurrent']),object;},RevisionDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionDescriptor';},RevisionDescriptor;}()),$root['RevisionHistoryConnectMessage']=(function(){function RevisionHistoryConnectMessage(properties){if(properties){for(var _0x8a8cb0=Object['keys'](properties),_0x577552=0x0;_0x577552<_0x8a8cb0['length'];++_0x577552)null!=properties[_0x8a8cb0[_0x577552]]&&(this[_0x8a8cb0[_0x577552]]=properties[_0x8a8cb0[_0x577552]]);}}return RevisionHistoryConnectMessage['prototype']['documentId']='',RevisionHistoryConnectMessage['create']=function(properties){return new RevisionHistoryConnectMessage(properties);},RevisionHistoryConnectMessage['encode']=function(_0x301d9b,writer){return writer||(writer=$Writer['create']()),null!=_0x301d9b['documentId']&&Object['hasOwnProperty']['call'](_0x301d9b,'documentId')&&writer['uint32'](0xa)['string'](_0x301d9b['documentId']),writer;},RevisionHistoryConnectMessage['encodeDelimited']=function(_0x2f6de5,writer){return this['encode'](_0x2f6de5,writer)['ldelim']();},RevisionHistoryConnectMessage['decode']=function(_0xd011a0,length){_0xd011a0 instanceof _0x498bd5||(_0xd011a0=_0x498bd5['create'](_0xd011a0));for(var _0x5cbcab=void 0x0===length?_0xd011a0['len']:_0xd011a0['pos']+length,_0x4d6f40=new $root['RevisionHistoryConnectMessage']();_0xd011a0['pos']<_0x5cbcab;){var tag=_0xd011a0['uint32']();if(tag>>>0x3==0x1)_0x4d6f40['documentId']=_0xd011a0['string']();else _0xd011a0['skipType'](0x7&tag);}return _0x4d6f40;},RevisionHistoryConnectMessage['decodeDelimited']=function(_0x323753){return _0x323753 instanceof _0x498bd5||(_0x323753=new _0x498bd5(_0x323753)),this['decode'](_0x323753,_0x323753['uint32']());},RevisionHistoryConnectMessage['verify']=function(_0x355dfe){return'object'!=typeof _0x355dfe||null===_0x355dfe?'object\x20expected':null!=_0x355dfe['documentId']&&_0x355dfe['hasOwnProperty']('documentId')&&!$util['isString'](_0x355dfe['documentId'])?'documentId:\x20string\x20expected':null;},RevisionHistoryConnectMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryConnectMessage'])return object;var _0x67f59b=new $root['RevisionHistoryConnectMessage']();return null!=object['documentId']&&(_0x67f59b['documentId']=String(object['documentId'])),_0x67f59b;},RevisionHistoryConnectMessage['toObject']=function(_0x2a50d4,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x2a50d4['documentId']&&_0x2a50d4['hasOwnProperty']('documentId')&&(object['documentId']=_0x2a50d4['documentId']),object;},RevisionHistoryConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryConnectMessage';},RevisionHistoryConnectMessage;}()),$root['RevisionHistoryGetRevisionMessage']=(function(){function RevisionHistoryGetRevisionMessage(properties){if(properties){for(var _0x5bb1eb=Object['keys'](properties),_0x5ebbd3=0x0;_0x5ebbd3<_0x5bb1eb['length'];++_0x5ebbd3)null!=properties[_0x5bb1eb[_0x5ebbd3]]&&(this[_0x5bb1eb[_0x5ebbd3]]=properties[_0x5bb1eb[_0x5ebbd3]]);}}return RevisionHistoryGetRevisionMessage['prototype']['documentId']='',RevisionHistoryGetRevisionMessage['prototype']['revisionId']='',RevisionHistoryGetRevisionMessage['create']=function(properties){return new RevisionHistoryGetRevisionMessage(properties);},RevisionHistoryGetRevisionMessage['encode']=function(_0x108ec2,writer){return writer||(writer=$Writer['create']()),null!=_0x108ec2['documentId']&&Object['hasOwnProperty']['call'](_0x108ec2,'documentId')&&writer['uint32'](0xa)['string'](_0x108ec2['documentId']),null!=_0x108ec2['revisionId']&&Object['hasOwnProperty']['call'](_0x108ec2,'revisionId')&&writer['uint32'](0x12)['string'](_0x108ec2['revisionId']),writer;},RevisionHistoryGetRevisionMessage['encodeDelimited']=function(_0x1ec088,writer){return this['encode'](_0x1ec088,writer)['ldelim']();},RevisionHistoryGetRevisionMessage['decode']=function(_0x52ed1f,length){_0x52ed1f instanceof _0x498bd5||(_0x52ed1f=_0x498bd5['create'](_0x52ed1f));for(var _0x49a1e8=void 0x0===length?_0x52ed1f['len']:_0x52ed1f['pos']+length,_0x447a58=new $root['RevisionHistoryGetRevisionMessage']();_0x52ed1f['pos']<_0x49a1e8;){var tag=_0x52ed1f['uint32']();switch(tag>>>0x3){case 0x1:_0x447a58['documentId']=_0x52ed1f['string']();break;case 0x2:_0x447a58['revisionId']=_0x52ed1f['string']();break;default:_0x52ed1f['skipType'](0x7&tag);}}return _0x447a58;},RevisionHistoryGetRevisionMessage['decodeDelimited']=function(_0x2db162){return _0x2db162 instanceof _0x498bd5||(_0x2db162=new _0x498bd5(_0x2db162)),this['decode'](_0x2db162,_0x2db162['uint32']());},RevisionHistoryGetRevisionMessage['verify']=function(_0x3a9546){return'object'!=typeof _0x3a9546||null===_0x3a9546?'object\x20expected':null!=_0x3a9546['documentId']&&_0x3a9546['hasOwnProperty']('documentId')&&!$util['isString'](_0x3a9546['documentId'])?'documentId:\x20string\x20expected':null!=_0x3a9546['revisionId']&&_0x3a9546['hasOwnProperty']('revisionId')&&!$util['isString'](_0x3a9546['revisionId'])?'revisionId:\x20string\x20expected':null;},RevisionHistoryGetRevisionMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryGetRevisionMessage'])return object;var _0x438855=new $root['RevisionHistoryGetRevisionMessage']();return null!=object['documentId']&&(_0x438855['documentId']=String(object['documentId'])),null!=object['revisionId']&&(_0x438855['revisionId']=String(object['revisionId'])),_0x438855;},RevisionHistoryGetRevisionMessage['toObject']=function(_0x616ccd,options){options||(options={});var object={};return options['defaults']&&(object['documentId']='',object['revisionId']=''),null!=_0x616ccd['documentId']&&_0x616ccd['hasOwnProperty']('documentId')&&(object['documentId']=_0x616ccd['documentId']),null!=_0x616ccd['revisionId']&&_0x616ccd['hasOwnProperty']('revisionId')&&(object['revisionId']=_0x616ccd['revisionId']),object;},RevisionHistoryGetRevisionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryGetRevisionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryGetRevisionMessage';},RevisionHistoryGetRevisionMessage;}()),$root['RevisionHistoryReconnectMessage']=(function(){function RevisionHistoryReconnectMessage(properties){if(properties){for(var _0x2e2fe8=Object['keys'](properties),_0x5c7125=0x0;_0x5c7125<_0x2e2fe8['length'];++_0x5c7125)null!=properties[_0x2e2fe8[_0x5c7125]]&&(this[_0x2e2fe8[_0x5c7125]]=properties[_0x2e2fe8[_0x5c7125]]);}}return RevisionHistoryReconnectMessage['prototype']['documentId']='',RevisionHistoryReconnectMessage['prototype']['requestId']=0x0,RevisionHistoryReconnectMessage['create']=function(properties){return new RevisionHistoryReconnectMessage(properties);},RevisionHistoryReconnectMessage['encode']=function(_0x207f1e,writer){return writer||(writer=$Writer['create']()),null!=_0x207f1e['documentId']&&Object['hasOwnProperty']['call'](_0x207f1e,'documentId')&&writer['uint32'](0xa)['string'](_0x207f1e['documentId']),null!=_0x207f1e['requestId']&&Object['hasOwnProperty']['call'](_0x207f1e,'requestId')&&writer['uint32'](0x10)['uint32'](_0x207f1e['requestId']),writer;},RevisionHistoryReconnectMessage['encodeDelimited']=function(_0x141ed5,writer){return this['encode'](_0x141ed5,writer)['ldelim']();},RevisionHistoryReconnectMessage['decode']=function(_0x260046,length){_0x260046 instanceof _0x498bd5||(_0x260046=_0x498bd5['create'](_0x260046));for(var _0x5da5d2=void 0x0===length?_0x260046['len']:_0x260046['pos']+length,_0x2fa1f8=new $root['RevisionHistoryReconnectMessage']();_0x260046['pos']<_0x5da5d2;){var tag=_0x260046['uint32']();switch(tag>>>0x3){case 0x1:_0x2fa1f8['documentId']=_0x260046['string']();break;case 0x2:_0x2fa1f8['requestId']=_0x260046['uint32']();break;default:_0x260046['skipType'](0x7&tag);}}return _0x2fa1f8;},RevisionHistoryReconnectMessage['decodeDelimited']=function(_0x4136ad){return _0x4136ad instanceof _0x498bd5||(_0x4136ad=new _0x498bd5(_0x4136ad)),this['decode'](_0x4136ad,_0x4136ad['uint32']());},RevisionHistoryReconnectMessage['verify']=function(_0xd3445d){return'object'!=typeof _0xd3445d||null===_0xd3445d?'object\x20expected':null!=_0xd3445d['documentId']&&_0xd3445d['hasOwnProperty']('documentId')&&!$util['isString'](_0xd3445d['documentId'])?'documentId:\x20string\x20expected':null!=_0xd3445d['requestId']&&_0xd3445d['hasOwnProperty']('requestId')&&!$util['isInteger'](_0xd3445d['requestId'])?'requestId:\x20integer\x20expected':null;},RevisionHistoryReconnectMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryReconnectMessage'])return object;var _0x25d572=new $root['RevisionHistoryReconnectMessage']();return null!=object['documentId']&&(_0x25d572['documentId']=String(object['documentId'])),null!=object['requestId']&&(_0x25d572['requestId']=object['requestId']>>>0x0),_0x25d572;},RevisionHistoryReconnectMessage['toObject']=function(_0x51dcf2,options){options||(options={});var object={};return options['defaults']&&(object['documentId']='',object['requestId']=0x0),null!=_0x51dcf2['documentId']&&_0x51dcf2['hasOwnProperty']('documentId')&&(object['documentId']=_0x51dcf2['documentId']),null!=_0x51dcf2['requestId']&&_0x51dcf2['hasOwnProperty']('requestId')&&(object['requestId']=_0x51dcf2['requestId']),object;},RevisionHistoryReconnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryReconnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryReconnectMessage';},RevisionHistoryReconnectMessage;}()),$root['RevisionHistoryUpdateRevisionsMessage']=(function(){function RevisionHistoryUpdateRevisionsMessage(properties){if(this['revisions']=[],properties){for(var _0x2a6a66=Object['keys'](properties),_0x429951=0x0;_0x429951<_0x2a6a66['length'];++_0x429951)null!=properties[_0x2a6a66[_0x429951]]&&(this[_0x2a6a66[_0x429951]]=properties[_0x2a6a66[_0x429951]]);}}return RevisionHistoryUpdateRevisionsMessage['prototype']['documentId']='',RevisionHistoryUpdateRevisionsMessage['prototype']['requestId']=0x0,RevisionHistoryUpdateRevisionsMessage['prototype']['revisions']=$util['emptyArray'],RevisionHistoryUpdateRevisionsMessage['create']=function(properties){return new RevisionHistoryUpdateRevisionsMessage(properties);},RevisionHistoryUpdateRevisionsMessage['encode']=function(_0x332edb,writer){if(writer||(writer=$Writer['create']()),null!=_0x332edb['documentId']&&Object['hasOwnProperty']['call'](_0x332edb,'documentId')&&writer['uint32'](0xa)['string'](_0x332edb['documentId']),null!=_0x332edb['requestId']&&Object['hasOwnProperty']['call'](_0x332edb,'requestId')&&writer['uint32'](0x10)['uint32'](_0x332edb['requestId']),null!=_0x332edb['revisions']&&_0x332edb['revisions']['length']){for(var _0x54ab58=0x0;_0x54ab58<_0x332edb['revisions']['length'];++_0x54ab58)$root['RevisionDescriptor']['encode'](_0x332edb['revisions'][_0x54ab58],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},RevisionHistoryUpdateRevisionsMessage['encodeDelimited']=function(_0x2699a9,writer){return this['encode'](_0x2699a9,writer)['ldelim']();},RevisionHistoryUpdateRevisionsMessage['decode']=function(_0x17ad34,length){_0x17ad34 instanceof _0x498bd5||(_0x17ad34=_0x498bd5['create'](_0x17ad34));for(var _0x53f13d=void 0x0===length?_0x17ad34['len']:_0x17ad34['pos']+length,_0x410018=new $root['RevisionHistoryUpdateRevisionsMessage']();_0x17ad34['pos']<_0x53f13d;){var tag=_0x17ad34['uint32']();switch(tag>>>0x3){case 0x1:_0x410018['documentId']=_0x17ad34['string']();break;case 0x2:_0x410018['requestId']=_0x17ad34['uint32']();break;case 0x3:_0x410018['revisions']&&_0x410018['revisions']['length']||(_0x410018['revisions']=[]),_0x410018['revisions']['push']($root['RevisionDescriptor']['decode'](_0x17ad34,_0x17ad34['uint32']()));break;default:_0x17ad34['skipType'](0x7&tag);}}return _0x410018;},RevisionHistoryUpdateRevisionsMessage['decodeDelimited']=function(_0x425042){return _0x425042 instanceof _0x498bd5||(_0x425042=new _0x498bd5(_0x425042)),this['decode'](_0x425042,_0x425042['uint32']());},RevisionHistoryUpdateRevisionsMessage['verify']=function(_0x36a3c6){if('object'!=typeof _0x36a3c6||null===_0x36a3c6)return'object\x20expected';if(null!=_0x36a3c6['documentId']&&_0x36a3c6['hasOwnProperty']('documentId')&&!$util['isString'](_0x36a3c6['documentId']))return'documentId:\x20string\x20expected';if(null!=_0x36a3c6['requestId']&&_0x36a3c6['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x36a3c6['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x36a3c6['revisions']&&_0x36a3c6['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x36a3c6['revisions']))return'revisions:\x20array\x20expected';for(var _0x1095df=0x0;_0x1095df<_0x36a3c6['revisions']['length'];++_0x1095df){var _0x148211=$root['RevisionDescriptor']['verify'](_0x36a3c6['revisions'][_0x1095df]);if(_0x148211)return'revisions.'+_0x148211;}}return null;},RevisionHistoryUpdateRevisionsMessage['fromObject']=function(object){if(object instanceof $root['RevisionHistoryUpdateRevisionsMessage'])return object;var _0x215d71=new $root['RevisionHistoryUpdateRevisionsMessage']();if(null!=object['documentId']&&(_0x215d71['documentId']=String(object['documentId'])),null!=object['requestId']&&(_0x215d71['requestId']=object['requestId']>>>0x0),object['revisions']){if(!Array['isArray'](object['revisions']))throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20array\x20expected');_0x215d71['revisions']=[];for(var _0x1878cc=0x0;_0x1878cc<object['revisions']['length'];++_0x1878cc){if('object'!=typeof object['revisions'][_0x1878cc])throw TypeError('.RevisionHistoryUpdateRevisionsMessage.revisions:\x20object\x20expected');_0x215d71['revisions'][_0x1878cc]=$root['RevisionDescriptor']['fromObject'](object['revisions'][_0x1878cc]);}}return _0x215d71;},RevisionHistoryUpdateRevisionsMessage['toObject']=function(_0xc8d39d,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['revisions']=[]),options['defaults']&&(object['documentId']='',object['requestId']=0x0),null!=_0xc8d39d['documentId']&&_0xc8d39d['hasOwnProperty']('documentId')&&(object['documentId']=_0xc8d39d['documentId']),null!=_0xc8d39d['requestId']&&_0xc8d39d['hasOwnProperty']('requestId')&&(object['requestId']=_0xc8d39d['requestId']),_0xc8d39d['revisions']&&_0xc8d39d['revisions']['length']){object['revisions']=[];for(var _0x18f966=0x0;_0x18f966<_0xc8d39d['revisions']['length'];++_0x18f966)object['revisions'][_0x18f966]=$root['RevisionDescriptor']['toObject'](_0xc8d39d['revisions'][_0x18f966],options);}return object;},RevisionHistoryUpdateRevisionsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryUpdateRevisionsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryUpdateRevisionsMessage';},RevisionHistoryUpdateRevisionsMessage;}()),$root['RevisionHistoryConnectResponse']=(function(){function RevisionHistoryConnectResponse(properties){if(this['revisions']=[],properties){for(var _0x4de7bf=Object['keys'](properties),_0x50f091=0x0;_0x50f091<_0x4de7bf['length'];++_0x50f091)null!=properties[_0x4de7bf[_0x50f091]]&&(this[_0x4de7bf[_0x50f091]]=properties[_0x4de7bf[_0x50f091]]);}}return RevisionHistoryConnectResponse['prototype']['channel']='',RevisionHistoryConnectResponse['prototype']['requestId']=0x0,RevisionHistoryConnectResponse['prototype']['revisions']=$util['emptyArray'],RevisionHistoryConnectResponse['create']=function(properties){return new RevisionHistoryConnectResponse(properties);},RevisionHistoryConnectResponse['encode']=function(_0x26b5f4,writer){if(writer||(writer=$Writer['create']()),null!=_0x26b5f4['channel']&&Object['hasOwnProperty']['call'](_0x26b5f4,'channel')&&writer['uint32'](0xa)['string'](_0x26b5f4['channel']),null!=_0x26b5f4['requestId']&&Object['hasOwnProperty']['call'](_0x26b5f4,'requestId')&&writer['uint32'](0x10)['uint32'](_0x26b5f4['requestId']),null!=_0x26b5f4['revisions']&&_0x26b5f4['revisions']['length']){for(var _0x1f0094=0x0;_0x1f0094<_0x26b5f4['revisions']['length'];++_0x1f0094)$root['RevisionDescriptor']['encode'](_0x26b5f4['revisions'][_0x1f0094],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},RevisionHistoryConnectResponse['encodeDelimited']=function(_0x5ffe29,writer){return this['encode'](_0x5ffe29,writer)['ldelim']();},RevisionHistoryConnectResponse['decode']=function(_0x4b6601,length){_0x4b6601 instanceof _0x498bd5||(_0x4b6601=_0x498bd5['create'](_0x4b6601));for(var _0x37e0da=void 0x0===length?_0x4b6601['len']:_0x4b6601['pos']+length,_0x44f0b6=new $root['RevisionHistoryConnectResponse']();_0x4b6601['pos']<_0x37e0da;){var tag=_0x4b6601['uint32']();switch(tag>>>0x3){case 0x1:_0x44f0b6['channel']=_0x4b6601['string']();break;case 0x2:_0x44f0b6['requestId']=_0x4b6601['uint32']();break;case 0x3:_0x44f0b6['revisions']&&_0x44f0b6['revisions']['length']||(_0x44f0b6['revisions']=[]),_0x44f0b6['revisions']['push']($root['RevisionDescriptor']['decode'](_0x4b6601,_0x4b6601['uint32']()));break;default:_0x4b6601['skipType'](0x7&tag);}}return _0x44f0b6;},RevisionHistoryConnectResponse['decodeDelimited']=function(_0x353e5b){return _0x353e5b instanceof _0x498bd5||(_0x353e5b=new _0x498bd5(_0x353e5b)),this['decode'](_0x353e5b,_0x353e5b['uint32']());},RevisionHistoryConnectResponse['verify']=function(_0x2fac1e){if('object'!=typeof _0x2fac1e||null===_0x2fac1e)return'object\x20expected';if(null!=_0x2fac1e['channel']&&_0x2fac1e['hasOwnProperty']('channel')&&!$util['isString'](_0x2fac1e['channel']))return'channel:\x20string\x20expected';if(null!=_0x2fac1e['requestId']&&_0x2fac1e['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x2fac1e['requestId']))return'requestId:\x20integer\x20expected';if(null!=_0x2fac1e['revisions']&&_0x2fac1e['hasOwnProperty']('revisions')){if(!Array['isArray'](_0x2fac1e['revisions']))return'revisions:\x20array\x20expected';for(var _0x57c138=0x0;_0x57c138<_0x2fac1e['revisions']['length'];++_0x57c138){var _0x45d59b=$root['RevisionDescriptor']['verify'](_0x2fac1e['revisions'][_0x57c138]);if(_0x45d59b)return'revisions.'+_0x45d59b;}}return null;},RevisionHistoryConnectResponse['fromObject']=function(object){if(object instanceof $root['RevisionHistoryConnectResponse'])return object;var _0x2f908b=new $root['RevisionHistoryConnectResponse']();if(null!=object['channel']&&(_0x2f908b['channel']=String(object['channel'])),null!=object['requestId']&&(_0x2f908b['requestId']=object['requestId']>>>0x0),object['revisions']){if(!Array['isArray'](object['revisions']))throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20array\x20expected');_0x2f908b['revisions']=[];for(var _0x36f575=0x0;_0x36f575<object['revisions']['length'];++_0x36f575){if('object'!=typeof object['revisions'][_0x36f575])throw TypeError('.RevisionHistoryConnectResponse.revisions:\x20object\x20expected');_0x2f908b['revisions'][_0x36f575]=$root['RevisionDescriptor']['fromObject'](object['revisions'][_0x36f575]);}}return _0x2f908b;},RevisionHistoryConnectResponse['toObject']=function(_0x25bd01,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['revisions']=[]),options['defaults']&&(object['channel']='',object['requestId']=0x0),null!=_0x25bd01['channel']&&_0x25bd01['hasOwnProperty']('channel')&&(object['channel']=_0x25bd01['channel']),null!=_0x25bd01['requestId']&&_0x25bd01['hasOwnProperty']('requestId')&&(object['requestId']=_0x25bd01['requestId']),_0x25bd01['revisions']&&_0x25bd01['revisions']['length']){object['revisions']=[];for(var _0x410bf9=0x0;_0x410bf9<_0x25bd01['revisions']['length'];++_0x410bf9)object['revisions'][_0x410bf9]=$root['RevisionDescriptor']['toObject'](_0x25bd01['revisions'][_0x410bf9],options);}return object;},RevisionHistoryConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryConnectResponse';},RevisionHistoryConnectResponse;}()),$root['RevisionHistoryGetRevisionResponse']=(function(){function RevisionHistoryGetRevisionResponse(properties){if(properties){for(var _0x2f2d28=Object['keys'](properties),_0x424223=0x0;_0x424223<_0x2f2d28['length'];++_0x424223)null!=properties[_0x2f2d28[_0x424223]]&&(this[_0x2f2d28[_0x424223]]=properties[_0x2f2d28[_0x424223]]);}}return RevisionHistoryGetRevisionResponse['prototype']['revisionId']='',RevisionHistoryGetRevisionResponse['prototype']['name']='',RevisionHistoryGetRevisionResponse['prototype']['creatorId']='',RevisionHistoryGetRevisionResponse['prototype']['authorsIds']='',RevisionHistoryGetRevisionResponse['prototype']['diffData']='',RevisionHistoryGetRevisionResponse['prototype']['createdAt']='',RevisionHistoryGetRevisionResponse['prototype']['attributes']='',RevisionHistoryGetRevisionResponse['prototype']['toVersion']=0x0,RevisionHistoryGetRevisionResponse['prototype']['fromVersion']=0x0,RevisionHistoryGetRevisionResponse['prototype']['isEmptyCurrent']=!0x1,RevisionHistoryGetRevisionResponse['create']=function(properties){return new RevisionHistoryGetRevisionResponse(properties);},RevisionHistoryGetRevisionResponse['encode']=function(_0x310448,writer){return writer||(writer=$Writer['create']()),null!=_0x310448['revisionId']&&Object['hasOwnProperty']['call'](_0x310448,'revisionId')&&writer['uint32'](0xa)['string'](_0x310448['revisionId']),null!=_0x310448['name']&&Object['hasOwnProperty']['call'](_0x310448,'name')&&writer['uint32'](0x12)['string'](_0x310448['name']),null!=_0x310448['creatorId']&&Object['hasOwnProperty']['call'](_0x310448,'creatorId')&&writer['uint32'](0x1a)['string'](_0x310448['creatorId']),null!=_0x310448['authorsIds']&&Object['hasOwnProperty']['call'](_0x310448,'authorsIds')&&writer['uint32'](0x22)['string'](_0x310448['authorsIds']),null!=_0x310448['diffData']&&Object['hasOwnProperty']['call'](_0x310448,'diffData')&&writer['uint32'](0x2a)['string'](_0x310448['diffData']),null!=_0x310448['createdAt']&&Object['hasOwnProperty']['call'](_0x310448,'createdAt')&&writer['uint32'](0x32)['string'](_0x310448['createdAt']),null!=_0x310448['attributes']&&Object['hasOwnProperty']['call'](_0x310448,'attributes')&&writer['uint32'](0x3a)['string'](_0x310448['attributes']),null!=_0x310448['toVersion']&&Object['hasOwnProperty']['call'](_0x310448,'toVersion')&&writer['uint32'](0x40)['uint32'](_0x310448['toVersion']),null!=_0x310448['fromVersion']&&Object['hasOwnProperty']['call'](_0x310448,'fromVersion')&&writer['uint32'](0x48)['uint32'](_0x310448['fromVersion']),null!=_0x310448['isEmptyCurrent']&&Object['hasOwnProperty']['call'](_0x310448,'isEmptyCurrent')&&writer['uint32'](0x50)['bool'](_0x310448['isEmptyCurrent']),writer;},RevisionHistoryGetRevisionResponse['encodeDelimited']=function(_0x348af,writer){return this['encode'](_0x348af,writer)['ldelim']();},RevisionHistoryGetRevisionResponse['decode']=function(_0x534290,length){_0x534290 instanceof _0x498bd5||(_0x534290=_0x498bd5['create'](_0x534290));for(var _0x23f995=void 0x0===length?_0x534290['len']:_0x534290['pos']+length,_0x318023=new $root['RevisionHistoryGetRevisionResponse']();_0x534290['pos']<_0x23f995;){var tag=_0x534290['uint32']();switch(tag>>>0x3){case 0x1:_0x318023['revisionId']=_0x534290['string']();break;case 0x2:_0x318023['name']=_0x534290['string']();break;case 0x3:_0x318023['creatorId']=_0x534290['string']();break;case 0x4:_0x318023['authorsIds']=_0x534290['string']();break;case 0x5:_0x318023['diffData']=_0x534290['string']();break;case 0x6:_0x318023['createdAt']=_0x534290['string']();break;case 0x7:_0x318023['attributes']=_0x534290['string']();break;case 0x8:_0x318023['toVersion']=_0x534290['uint32']();break;case 0x9:_0x318023['fromVersion']=_0x534290['uint32']();break;case 0xa:_0x318023['isEmptyCurrent']=_0x534290['bool']();break;default:_0x534290['skipType'](0x7&tag);}}return _0x318023;},RevisionHistoryGetRevisionResponse['decodeDelimited']=function(_0xf00035){return _0xf00035 instanceof _0x498bd5||(_0xf00035=new _0x498bd5(_0xf00035)),this['decode'](_0xf00035,_0xf00035['uint32']());},RevisionHistoryGetRevisionResponse['verify']=function(_0x2c82ec){return'object'!=typeof _0x2c82ec||null===_0x2c82ec?'object\x20expected':null!=_0x2c82ec['revisionId']&&_0x2c82ec['hasOwnProperty']('revisionId')&&!$util['isString'](_0x2c82ec['revisionId'])?'revisionId:\x20string\x20expected':null!=_0x2c82ec['name']&&_0x2c82ec['hasOwnProperty']('name')&&!$util['isString'](_0x2c82ec['name'])?'name:\x20string\x20expected':null!=_0x2c82ec['creatorId']&&_0x2c82ec['hasOwnProperty']('creatorId')&&!$util['isString'](_0x2c82ec['creatorId'])?'creatorId:\x20string\x20expected':null!=_0x2c82ec['authorsIds']&&_0x2c82ec['hasOwnProperty']('authorsIds')&&!$util['isString'](_0x2c82ec['authorsIds'])?'authorsIds:\x20string\x20expected':null!=_0x2c82ec['diffData']&&_0x2c82ec['hasOwnProperty']('diffData')&&!$util['isString'](_0x2c82ec['diffData'])?'diffData:\x20string\x20expected':null!=_0x2c82ec['createdAt']&&_0x2c82ec['hasOwnProperty']('createdAt')&&!$util['isString'](_0x2c82ec['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x2c82ec['attributes']&&_0x2c82ec['hasOwnProperty']('attributes')&&!$util['isString'](_0x2c82ec['attributes'])?'attributes:\x20string\x20expected':null!=_0x2c82ec['toVersion']&&_0x2c82ec['hasOwnProperty']('toVersion')&&!$util['isInteger'](_0x2c82ec['toVersion'])?'toVersion:\x20integer\x20expected':null!=_0x2c82ec['fromVersion']&&_0x2c82ec['hasOwnProperty']('fromVersion')&&!$util['isInteger'](_0x2c82ec['fromVersion'])?'fromVersion:\x20integer\x20expected':null!=_0x2c82ec['isEmptyCurrent']&&_0x2c82ec['hasOwnProperty']('isEmptyCurrent')&&'boolean'!=typeof _0x2c82ec['isEmptyCurrent']?'isEmptyCurrent:\x20boolean\x20expected':null;},RevisionHistoryGetRevisionResponse['fromObject']=function(object){if(object instanceof $root['RevisionHistoryGetRevisionResponse'])return object;var _0x55ccce=new $root['RevisionHistoryGetRevisionResponse']();return null!=object['revisionId']&&(_0x55ccce['revisionId']=String(object['revisionId'])),null!=object['name']&&(_0x55ccce['name']=String(object['name'])),null!=object['creatorId']&&(_0x55ccce['creatorId']=String(object['creatorId'])),null!=object['authorsIds']&&(_0x55ccce['authorsIds']=String(object['authorsIds'])),null!=object['diffData']&&(_0x55ccce['diffData']=String(object['diffData'])),null!=object['createdAt']&&(_0x55ccce['createdAt']=String(object['createdAt'])),null!=object['attributes']&&(_0x55ccce['attributes']=String(object['attributes'])),null!=object['toVersion']&&(_0x55ccce['toVersion']=object['toVersion']>>>0x0),null!=object['fromVersion']&&(_0x55ccce['fromVersion']=object['fromVersion']>>>0x0),null!=object['isEmptyCurrent']&&(_0x55ccce['isEmptyCurrent']=Boolean(object['isEmptyCurrent'])),_0x55ccce;},RevisionHistoryGetRevisionResponse['toObject']=function(_0x16e3c6,options){options||(options={});var object={};return options['defaults']&&(object['revisionId']='',object['name']='',object['creatorId']='',object['authorsIds']='',object['diffData']='',object['createdAt']='',object['attributes']='',object['toVersion']=0x0,object['fromVersion']=0x0,object['isEmptyCurrent']=!0x1),null!=_0x16e3c6['revisionId']&&_0x16e3c6['hasOwnProperty']('revisionId')&&(object['revisionId']=_0x16e3c6['revisionId']),null!=_0x16e3c6['name']&&_0x16e3c6['hasOwnProperty']('name')&&(object['name']=_0x16e3c6['name']),null!=_0x16e3c6['creatorId']&&_0x16e3c6['hasOwnProperty']('creatorId')&&(object['creatorId']=_0x16e3c6['creatorId']),null!=_0x16e3c6['authorsIds']&&_0x16e3c6['hasOwnProperty']('authorsIds')&&(object['authorsIds']=_0x16e3c6['authorsIds']),null!=_0x16e3c6['diffData']&&_0x16e3c6['hasOwnProperty']('diffData')&&(object['diffData']=_0x16e3c6['diffData']),null!=_0x16e3c6['createdAt']&&_0x16e3c6['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x16e3c6['createdAt']),null!=_0x16e3c6['attributes']&&_0x16e3c6['hasOwnProperty']('attributes')&&(object['attributes']=_0x16e3c6['attributes']),null!=_0x16e3c6['toVersion']&&_0x16e3c6['hasOwnProperty']('toVersion')&&(object['toVersion']=_0x16e3c6['toVersion']),null!=_0x16e3c6['fromVersion']&&_0x16e3c6['hasOwnProperty']('fromVersion')&&(object['fromVersion']=_0x16e3c6['fromVersion']),null!=_0x16e3c6['isEmptyCurrent']&&_0x16e3c6['hasOwnProperty']('isEmptyCurrent')&&(object['isEmptyCurrent']=_0x16e3c6['isEmptyCurrent']),object;},RevisionHistoryGetRevisionResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryGetRevisionResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryGetRevisionResponse';},RevisionHistoryGetRevisionResponse;}()),$root['RevisionHistoryUpdateRevisionsResponse']=(function(){function RevisionHistoryUpdateRevisionsResponse(properties){if(properties){for(var _0x58fa17=Object['keys'](properties),_0x329a3f=0x0;_0x329a3f<_0x58fa17['length'];++_0x329a3f)null!=properties[_0x58fa17[_0x329a3f]]&&(this[_0x58fa17[_0x329a3f]]=properties[_0x58fa17[_0x329a3f]]);}}return RevisionHistoryUpdateRevisionsResponse['prototype']['requestId']=0x0,RevisionHistoryUpdateRevisionsResponse['create']=function(properties){return new RevisionHistoryUpdateRevisionsResponse(properties);},RevisionHistoryUpdateRevisionsResponse['encode']=function(_0x606955,writer){return writer||(writer=$Writer['create']()),null!=_0x606955['requestId']&&Object['hasOwnProperty']['call'](_0x606955,'requestId')&&writer['uint32'](0x8)['uint32'](_0x606955['requestId']),writer;},RevisionHistoryUpdateRevisionsResponse['encodeDelimited']=function(_0x1e2d0f,writer){return this['encode'](_0x1e2d0f,writer)['ldelim']();},RevisionHistoryUpdateRevisionsResponse['decode']=function(_0x1a3c11,length){_0x1a3c11 instanceof _0x498bd5||(_0x1a3c11=_0x498bd5['create'](_0x1a3c11));for(var _0x376057=void 0x0===length?_0x1a3c11['len']:_0x1a3c11['pos']+length,_0x1688bd=new $root['RevisionHistoryUpdateRevisionsResponse']();_0x1a3c11['pos']<_0x376057;){var tag=_0x1a3c11['uint32']();if(tag>>>0x3==0x1)_0x1688bd['requestId']=_0x1a3c11['uint32']();else _0x1a3c11['skipType'](0x7&tag);}return _0x1688bd;},RevisionHistoryUpdateRevisionsResponse['decodeDelimited']=function(_0x5614ff){return _0x5614ff instanceof _0x498bd5||(_0x5614ff=new _0x498bd5(_0x5614ff)),this['decode'](_0x5614ff,_0x5614ff['uint32']());},RevisionHistoryUpdateRevisionsResponse['verify']=function(_0x5c0dae){return'object'!=typeof _0x5c0dae||null===_0x5c0dae?'object\x20expected':null!=_0x5c0dae['requestId']&&_0x5c0dae['hasOwnProperty']('requestId')&&!$util['isInteger'](_0x5c0dae['requestId'])?'requestId:\x20integer\x20expected':null;},RevisionHistoryUpdateRevisionsResponse['fromObject']=function(object){if(object instanceof $root['RevisionHistoryUpdateRevisionsResponse'])return object;var _0x2eb403=new $root['RevisionHistoryUpdateRevisionsResponse']();return null!=object['requestId']&&(_0x2eb403['requestId']=object['requestId']>>>0x0),_0x2eb403;},RevisionHistoryUpdateRevisionsResponse['toObject']=function(_0x118536,options){options||(options={});var object={};return options['defaults']&&(object['requestId']=0x0),null!=_0x118536['requestId']&&_0x118536['hasOwnProperty']('requestId')&&(object['requestId']=_0x118536['requestId']),object;},RevisionHistoryUpdateRevisionsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},RevisionHistoryUpdateRevisionsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/RevisionHistoryUpdateRevisionsResponse';},RevisionHistoryUpdateRevisionsResponse;}()),$root['SessionsSocketDescriptor']=(function(){function SessionsSocketDescriptor(properties){if(this['permissions']=[],properties){for(var _0x2abfb1=Object['keys'](properties),_0x11c6b9=0x0;_0x11c6b9<_0x2abfb1['length'];++_0x11c6b9)null!=properties[_0x2abfb1[_0x11c6b9]]&&(this[_0x2abfb1[_0x11c6b9]]=properties[_0x2abfb1[_0x11c6b9]]);}}return SessionsSocketDescriptor['prototype']['session']='',SessionsSocketDescriptor['prototype']['user']='',SessionsSocketDescriptor['prototype']['role']='',SessionsSocketDescriptor['prototype']['permissions']=$util['emptyArray'],SessionsSocketDescriptor['create']=function(properties){return new SessionsSocketDescriptor(properties);},SessionsSocketDescriptor['encode']=function(_0x1012f2,writer){if(writer||(writer=$Writer['create']()),null!=_0x1012f2['session']&&Object['hasOwnProperty']['call'](_0x1012f2,'session')&&writer['uint32'](0xa)['string'](_0x1012f2['session']),null!=_0x1012f2['user']&&Object['hasOwnProperty']['call'](_0x1012f2,'user')&&writer['uint32'](0x12)['string'](_0x1012f2['user']),null!=_0x1012f2['role']&&Object['hasOwnProperty']['call'](_0x1012f2,'role')&&writer['uint32'](0x1a)['string'](_0x1012f2['role']),null!=_0x1012f2['permissions']&&_0x1012f2['permissions']['length']){for(var _0x2d1d5f=0x0;_0x2d1d5f<_0x1012f2['permissions']['length'];++_0x2d1d5f)writer['uint32'](0x22)['string'](_0x1012f2['permissions'][_0x2d1d5f]);}return writer;},SessionsSocketDescriptor['encodeDelimited']=function(_0x1b7e02,writer){return this['encode'](_0x1b7e02,writer)['ldelim']();},SessionsSocketDescriptor['decode']=function(_0x4eda57,length){_0x4eda57 instanceof _0x498bd5||(_0x4eda57=_0x498bd5['create'](_0x4eda57));for(var _0x4bf6be=void 0x0===length?_0x4eda57['len']:_0x4eda57['pos']+length,_0x4f83e8=new $root['SessionsSocketDescriptor']();_0x4eda57['pos']<_0x4bf6be;){var tag=_0x4eda57['uint32']();switch(tag>>>0x3){case 0x1:_0x4f83e8['session']=_0x4eda57['string']();break;case 0x2:_0x4f83e8['user']=_0x4eda57['string']();break;case 0x3:_0x4f83e8['role']=_0x4eda57['string']();break;case 0x4:_0x4f83e8['permissions']&&_0x4f83e8['permissions']['length']||(_0x4f83e8['permissions']=[]),_0x4f83e8['permissions']['push'](_0x4eda57['string']());break;default:_0x4eda57['skipType'](0x7&tag);}}return _0x4f83e8;},SessionsSocketDescriptor['decodeDelimited']=function(_0x464f9f){return _0x464f9f instanceof _0x498bd5||(_0x464f9f=new _0x498bd5(_0x464f9f)),this['decode'](_0x464f9f,_0x464f9f['uint32']());},SessionsSocketDescriptor['verify']=function(_0x5029a8){if('object'!=typeof _0x5029a8||null===_0x5029a8)return'object\x20expected';if(null!=_0x5029a8['session']&&_0x5029a8['hasOwnProperty']('session')&&!$util['isString'](_0x5029a8['session']))return'session:\x20string\x20expected';if(null!=_0x5029a8['user']&&_0x5029a8['hasOwnProperty']('user')&&!$util['isString'](_0x5029a8['user']))return'user:\x20string\x20expected';if(null!=_0x5029a8['role']&&_0x5029a8['hasOwnProperty']('role')&&!$util['isString'](_0x5029a8['role']))return'role:\x20string\x20expected';if(null!=_0x5029a8['permissions']&&_0x5029a8['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x5029a8['permissions']))return'permissions:\x20array\x20expected';for(var _0x5e6409=0x0;_0x5e6409<_0x5029a8['permissions']['length'];++_0x5e6409)if(!$util['isString'](_0x5029a8['permissions'][_0x5e6409]))return'permissions:\x20string[]\x20expected';}return null;},SessionsSocketDescriptor['fromObject']=function(object){if(object instanceof $root['SessionsSocketDescriptor'])return object;var _0x32b80f=new $root['SessionsSocketDescriptor']();if(null!=object['session']&&(_0x32b80f['session']=String(object['session'])),null!=object['user']&&(_0x32b80f['user']=String(object['user'])),null!=object['role']&&(_0x32b80f['role']=String(object['role'])),object['permissions']){if(!Array['isArray'](object['permissions']))throw TypeError('.SessionsSocketDescriptor.permissions:\x20array\x20expected');_0x32b80f['permissions']=[];for(var _0x5e445e=0x0;_0x5e445e<object['permissions']['length'];++_0x5e445e)_0x32b80f['permissions'][_0x5e445e]=String(object['permissions'][_0x5e445e]);}return _0x32b80f;},SessionsSocketDescriptor['toObject']=function(_0x1f1896,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['permissions']=[]),options['defaults']&&(object['session']='',object['user']='',object['role']=''),null!=_0x1f1896['session']&&_0x1f1896['hasOwnProperty']('session')&&(object['session']=_0x1f1896['session']),null!=_0x1f1896['user']&&_0x1f1896['hasOwnProperty']('user')&&(object['user']=_0x1f1896['user']),null!=_0x1f1896['role']&&_0x1f1896['hasOwnProperty']('role')&&(object['role']=_0x1f1896['role']),_0x1f1896['permissions']&&_0x1f1896['permissions']['length']){object['permissions']=[];for(var _0x558038=0x0;_0x558038<_0x1f1896['permissions']['length'];++_0x558038)object['permissions'][_0x558038]=_0x1f1896['permissions'][_0x558038];}return object;},SessionsSocketDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SessionsSocketDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SessionsSocketDescriptor';},SessionsSocketDescriptor;}()),$root['SessionsConnectMessage']=(function(){function SessionsConnectMessage(properties){if(properties){for(var _0x541b93=Object['keys'](properties),_0x5935c6=0x0;_0x5935c6<_0x541b93['length'];++_0x5935c6)null!=properties[_0x541b93[_0x5935c6]]&&(this[_0x541b93[_0x5935c6]]=properties[_0x541b93[_0x5935c6]]);}}return SessionsConnectMessage['prototype']['id']='',SessionsConnectMessage['prototype']['sessionType']=0x0,SessionsConnectMessage['create']=function(properties){return new SessionsConnectMessage(properties);},SessionsConnectMessage['encode']=function(_0x57adf8,writer){return writer||(writer=$Writer['create']()),null!=_0x57adf8['id']&&Object['hasOwnProperty']['call'](_0x57adf8,'id')&&writer['uint32'](0xa)['string'](_0x57adf8['id']),null!=_0x57adf8['sessionType']&&Object['hasOwnProperty']['call'](_0x57adf8,'sessionType')&&writer['uint32'](0x10)['uint32'](_0x57adf8['sessionType']),writer;},SessionsConnectMessage['encodeDelimited']=function(_0x39469f,writer){return this['encode'](_0x39469f,writer)['ldelim']();},SessionsConnectMessage['decode']=function(_0x289f18,length){_0x289f18 instanceof _0x498bd5||(_0x289f18=_0x498bd5['create'](_0x289f18));for(var _0x2f69d1=void 0x0===length?_0x289f18['len']:_0x289f18['pos']+length,_0x30a8f3=new $root['SessionsConnectMessage']();_0x289f18['pos']<_0x2f69d1;){var tag=_0x289f18['uint32']();switch(tag>>>0x3){case 0x1:_0x30a8f3['id']=_0x289f18['string']();break;case 0x2:_0x30a8f3['sessionType']=_0x289f18['uint32']();break;default:_0x289f18['skipType'](0x7&tag);}}return _0x30a8f3;},SessionsConnectMessage['decodeDelimited']=function(_0x92805a){return _0x92805a instanceof _0x498bd5||(_0x92805a=new _0x498bd5(_0x92805a)),this['decode'](_0x92805a,_0x92805a['uint32']());},SessionsConnectMessage['verify']=function(_0x1413e9){return'object'!=typeof _0x1413e9||null===_0x1413e9?'object\x20expected':null!=_0x1413e9['id']&&_0x1413e9['hasOwnProperty']('id')&&!$util['isString'](_0x1413e9['id'])?'id:\x20string\x20expected':null!=_0x1413e9['sessionType']&&_0x1413e9['hasOwnProperty']('sessionType')&&!$util['isInteger'](_0x1413e9['sessionType'])?'sessionType:\x20integer\x20expected':null;},SessionsConnectMessage['fromObject']=function(object){if(object instanceof $root['SessionsConnectMessage'])return object;var _0x285929=new $root['SessionsConnectMessage']();return null!=object['id']&&(_0x285929['id']=String(object['id'])),null!=object['sessionType']&&(_0x285929['sessionType']=object['sessionType']>>>0x0),_0x285929;},SessionsConnectMessage['toObject']=function(_0x542ca4,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['sessionType']=0x0),null!=_0x542ca4['id']&&_0x542ca4['hasOwnProperty']('id')&&(object['id']=_0x542ca4['id']),null!=_0x542ca4['sessionType']&&_0x542ca4['hasOwnProperty']('sessionType')&&(object['sessionType']=_0x542ca4['sessionType']),object;},SessionsConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SessionsConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SessionsConnectMessage';},SessionsConnectMessage;}()),$root['SocketConnectMessage']=(function(){function SocketConnectMessage(properties){if(this['permissions']=[],properties){for(var _0x373d7a=Object['keys'](properties),_0xfff1de=0x0;_0xfff1de<_0x373d7a['length'];++_0xfff1de)null!=properties[_0x373d7a[_0xfff1de]]&&(this[_0x373d7a[_0xfff1de]]=properties[_0x373d7a[_0xfff1de]]);}}return SocketConnectMessage['prototype']['id']='',SocketConnectMessage['prototype']['userId']='',SocketConnectMessage['prototype']['role']='',SocketConnectMessage['prototype']['permissions']=$util['emptyArray'],SocketConnectMessage['create']=function(properties){return new SocketConnectMessage(properties);},SocketConnectMessage['encode']=function(_0xccd3e2,writer){if(writer||(writer=$Writer['create']()),null!=_0xccd3e2['id']&&Object['hasOwnProperty']['call'](_0xccd3e2,'id')&&writer['uint32'](0xa)['string'](_0xccd3e2['id']),null!=_0xccd3e2['userId']&&Object['hasOwnProperty']['call'](_0xccd3e2,'userId')&&writer['uint32'](0x12)['string'](_0xccd3e2['userId']),null!=_0xccd3e2['role']&&Object['hasOwnProperty']['call'](_0xccd3e2,'role')&&writer['uint32'](0x1a)['string'](_0xccd3e2['role']),null!=_0xccd3e2['permissions']&&_0xccd3e2['permissions']['length']){for(var _0x35a059=0x0;_0x35a059<_0xccd3e2['permissions']['length'];++_0x35a059)writer['uint32'](0x22)['string'](_0xccd3e2['permissions'][_0x35a059]);}return writer;},SocketConnectMessage['encodeDelimited']=function(_0x490ff6,writer){return this['encode'](_0x490ff6,writer)['ldelim']();},SocketConnectMessage['decode']=function(_0x492aaf,length){_0x492aaf instanceof _0x498bd5||(_0x492aaf=_0x498bd5['create'](_0x492aaf));for(var _0x28f11f=void 0x0===length?_0x492aaf['len']:_0x492aaf['pos']+length,_0x2d18b2=new $root['SocketConnectMessage']();_0x492aaf['pos']<_0x28f11f;){var tag=_0x492aaf['uint32']();switch(tag>>>0x3){case 0x1:_0x2d18b2['id']=_0x492aaf['string']();break;case 0x2:_0x2d18b2['userId']=_0x492aaf['string']();break;case 0x3:_0x2d18b2['role']=_0x492aaf['string']();break;case 0x4:_0x2d18b2['permissions']&&_0x2d18b2['permissions']['length']||(_0x2d18b2['permissions']=[]),_0x2d18b2['permissions']['push'](_0x492aaf['string']());break;default:_0x492aaf['skipType'](0x7&tag);}}return _0x2d18b2;},SocketConnectMessage['decodeDelimited']=function(_0x5121d8){return _0x5121d8 instanceof _0x498bd5||(_0x5121d8=new _0x498bd5(_0x5121d8)),this['decode'](_0x5121d8,_0x5121d8['uint32']());},SocketConnectMessage['verify']=function(_0x461b96){if('object'!=typeof _0x461b96||null===_0x461b96)return'object\x20expected';if(null!=_0x461b96['id']&&_0x461b96['hasOwnProperty']('id')&&!$util['isString'](_0x461b96['id']))return'id:\x20string\x20expected';if(null!=_0x461b96['userId']&&_0x461b96['hasOwnProperty']('userId')&&!$util['isString'](_0x461b96['userId']))return'userId:\x20string\x20expected';if(null!=_0x461b96['role']&&_0x461b96['hasOwnProperty']('role')&&!$util['isString'](_0x461b96['role']))return'role:\x20string\x20expected';if(null!=_0x461b96['permissions']&&_0x461b96['hasOwnProperty']('permissions')){if(!Array['isArray'](_0x461b96['permissions']))return'permissions:\x20array\x20expected';for(var _0x506baa=0x0;_0x506baa<_0x461b96['permissions']['length'];++_0x506baa)if(!$util['isString'](_0x461b96['permissions'][_0x506baa]))return'permissions:\x20string[]\x20expected';}return null;},SocketConnectMessage['fromObject']=function(object){if(object instanceof $root['SocketConnectMessage'])return object;var _0x2e78b9=new $root['SocketConnectMessage']();if(null!=object['id']&&(_0x2e78b9['id']=String(object['id'])),null!=object['userId']&&(_0x2e78b9['userId']=String(object['userId'])),null!=object['role']&&(_0x2e78b9['role']=String(object['role'])),object['permissions']){if(!Array['isArray'](object['permissions']))throw TypeError('.SocketConnectMessage.permissions:\x20array\x20expected');_0x2e78b9['permissions']=[];for(var _0x58d208=0x0;_0x58d208<object['permissions']['length'];++_0x58d208)_0x2e78b9['permissions'][_0x58d208]=String(object['permissions'][_0x58d208]);}return _0x2e78b9;},SocketConnectMessage['toObject']=function(_0x4114a7,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['permissions']=[]),options['defaults']&&(object['id']='',object['userId']='',object['role']=''),null!=_0x4114a7['id']&&_0x4114a7['hasOwnProperty']('id')&&(object['id']=_0x4114a7['id']),null!=_0x4114a7['userId']&&_0x4114a7['hasOwnProperty']('userId')&&(object['userId']=_0x4114a7['userId']),null!=_0x4114a7['role']&&_0x4114a7['hasOwnProperty']('role')&&(object['role']=_0x4114a7['role']),_0x4114a7['permissions']&&_0x4114a7['permissions']['length']){object['permissions']=[];for(var _0x4d5a52=0x0;_0x4d5a52<_0x4114a7['permissions']['length'];++_0x4d5a52)object['permissions'][_0x4d5a52]=_0x4114a7['permissions'][_0x4d5a52];}return object;},SocketConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SocketConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SocketConnectMessage';},SocketConnectMessage;}()),$root['SocketDisconnectMessage']=(function(){function SocketDisconnectMessage(properties){if(properties){for(var _0x1f393c=Object['keys'](properties),_0x5e7b17=0x0;_0x5e7b17<_0x1f393c['length'];++_0x5e7b17)null!=properties[_0x1f393c[_0x5e7b17]]&&(this[_0x1f393c[_0x5e7b17]]=properties[_0x1f393c[_0x5e7b17]]);}}return SocketDisconnectMessage['prototype']['id']='',SocketDisconnectMessage['create']=function(properties){return new SocketDisconnectMessage(properties);},SocketDisconnectMessage['encode']=function(_0x2fd7a1,writer){return writer||(writer=$Writer['create']()),null!=_0x2fd7a1['id']&&Object['hasOwnProperty']['call'](_0x2fd7a1,'id')&&writer['uint32'](0xa)['string'](_0x2fd7a1['id']),writer;},SocketDisconnectMessage['encodeDelimited']=function(_0xb0d385,writer){return this['encode'](_0xb0d385,writer)['ldelim']();},SocketDisconnectMessage['decode']=function(_0x1f7dcf,length){_0x1f7dcf instanceof _0x498bd5||(_0x1f7dcf=_0x498bd5['create'](_0x1f7dcf));for(var _0x15aae4=void 0x0===length?_0x1f7dcf['len']:_0x1f7dcf['pos']+length,_0x3b58b6=new $root['SocketDisconnectMessage']();_0x1f7dcf['pos']<_0x15aae4;){var tag=_0x1f7dcf['uint32']();if(tag>>>0x3==0x1)_0x3b58b6['id']=_0x1f7dcf['string']();else _0x1f7dcf['skipType'](0x7&tag);}return _0x3b58b6;},SocketDisconnectMessage['decodeDelimited']=function(_0x55344a){return _0x55344a instanceof _0x498bd5||(_0x55344a=new _0x498bd5(_0x55344a)),this['decode'](_0x55344a,_0x55344a['uint32']());},SocketDisconnectMessage['verify']=function(_0x40eadc){return'object'!=typeof _0x40eadc||null===_0x40eadc?'object\x20expected':null!=_0x40eadc['id']&&_0x40eadc['hasOwnProperty']('id')&&!$util['isString'](_0x40eadc['id'])?'id:\x20string\x20expected':null;},SocketDisconnectMessage['fromObject']=function(object){if(object instanceof $root['SocketDisconnectMessage'])return object;var _0x1af0b0=new $root['SocketDisconnectMessage']();return null!=object['id']&&(_0x1af0b0['id']=String(object['id'])),_0x1af0b0;},SocketDisconnectMessage['toObject']=function(_0x5f0964,options){options||(options={});var object={};return options['defaults']&&(object['id']=''),null!=_0x5f0964['id']&&_0x5f0964['hasOwnProperty']('id')&&(object['id']=_0x5f0964['id']),object;},SocketDisconnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SocketDisconnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SocketDisconnectMessage';},SocketDisconnectMessage;}()),$root['SessionsConnectResponse']=(function(){function SessionsConnectResponse(properties){if(this['sockets']=[],properties){for(var _0x563fee=Object['keys'](properties),_0x4432d1=0x0;_0x4432d1<_0x563fee['length'];++_0x4432d1)null!=properties[_0x563fee[_0x4432d1]]&&(this[_0x563fee[_0x4432d1]]=properties[_0x563fee[_0x4432d1]]);}}return SessionsConnectResponse['prototype']['channel']='',SessionsConnectResponse['prototype']['sockets']=$util['emptyArray'],SessionsConnectResponse['create']=function(properties){return new SessionsConnectResponse(properties);},SessionsConnectResponse['encode']=function(_0x37830b,writer){if(writer||(writer=$Writer['create']()),null!=_0x37830b['channel']&&Object['hasOwnProperty']['call'](_0x37830b,'channel')&&writer['uint32'](0xa)['string'](_0x37830b['channel']),null!=_0x37830b['sockets']&&_0x37830b['sockets']['length']){for(var _0x2bf7b3=0x0;_0x2bf7b3<_0x37830b['sockets']['length'];++_0x2bf7b3)$root['SessionsSocketDescriptor']['encode'](_0x37830b['sockets'][_0x2bf7b3],writer['uint32'](0x12)['fork']())['ldelim']();}return writer;},SessionsConnectResponse['encodeDelimited']=function(_0x63de9c,writer){return this['encode'](_0x63de9c,writer)['ldelim']();},SessionsConnectResponse['decode']=function(_0x155e46,length){_0x155e46 instanceof _0x498bd5||(_0x155e46=_0x498bd5['create'](_0x155e46));for(var _0x3acf2b=void 0x0===length?_0x155e46['len']:_0x155e46['pos']+length,_0x3a219c=new $root['SessionsConnectResponse']();_0x155e46['pos']<_0x3acf2b;){var tag=_0x155e46['uint32']();switch(tag>>>0x3){case 0x1:_0x3a219c['channel']=_0x155e46['string']();break;case 0x2:_0x3a219c['sockets']&&_0x3a219c['sockets']['length']||(_0x3a219c['sockets']=[]),_0x3a219c['sockets']['push']($root['SessionsSocketDescriptor']['decode'](_0x155e46,_0x155e46['uint32']()));break;default:_0x155e46['skipType'](0x7&tag);}}return _0x3a219c;},SessionsConnectResponse['decodeDelimited']=function(_0x2de280){return _0x2de280 instanceof _0x498bd5||(_0x2de280=new _0x498bd5(_0x2de280)),this['decode'](_0x2de280,_0x2de280['uint32']());},SessionsConnectResponse['verify']=function(_0x1812b9){if('object'!=typeof _0x1812b9||null===_0x1812b9)return'object\x20expected';if(null!=_0x1812b9['channel']&&_0x1812b9['hasOwnProperty']('channel')&&!$util['isString'](_0x1812b9['channel']))return'channel:\x20string\x20expected';if(null!=_0x1812b9['sockets']&&_0x1812b9['hasOwnProperty']('sockets')){if(!Array['isArray'](_0x1812b9['sockets']))return'sockets:\x20array\x20expected';for(var _0x1d62b2=0x0;_0x1d62b2<_0x1812b9['sockets']['length'];++_0x1d62b2){var _0x18f10a=$root['SessionsSocketDescriptor']['verify'](_0x1812b9['sockets'][_0x1d62b2]);if(_0x18f10a)return'sockets.'+_0x18f10a;}}return null;},SessionsConnectResponse['fromObject']=function(object){if(object instanceof $root['SessionsConnectResponse'])return object;var _0x376084=new $root['SessionsConnectResponse']();if(null!=object['channel']&&(_0x376084['channel']=String(object['channel'])),object['sockets']){if(!Array['isArray'](object['sockets']))throw TypeError('.SessionsConnectResponse.sockets:\x20array\x20expected');_0x376084['sockets']=[];for(var _0x5879cb=0x0;_0x5879cb<object['sockets']['length'];++_0x5879cb){if('object'!=typeof object['sockets'][_0x5879cb])throw TypeError('.SessionsConnectResponse.sockets:\x20object\x20expected');_0x376084['sockets'][_0x5879cb]=$root['SessionsSocketDescriptor']['fromObject'](object['sockets'][_0x5879cb]);}}return _0x376084;},SessionsConnectResponse['toObject']=function(_0xbc097c,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['sockets']=[]),options['defaults']&&(object['channel']=''),null!=_0xbc097c['channel']&&_0xbc097c['hasOwnProperty']('channel')&&(object['channel']=_0xbc097c['channel']),_0xbc097c['sockets']&&_0xbc097c['sockets']['length']){object['sockets']=[];for(var _0x4ea5dc=0x0;_0x4ea5dc<_0xbc097c['sockets']['length'];++_0x4ea5dc)object['sockets'][_0x4ea5dc]=$root['SessionsSocketDescriptor']['toObject'](_0xbc097c['sockets'][_0x4ea5dc],options);}return object;},SessionsConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SessionsConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SessionsConnectResponse';},SessionsConnectResponse;}()),$root['SuggestionDescriptor']=(function(){function SuggestionDescriptor(properties){if(properties){for(var _0x2bc871=Object['keys'](properties),_0x1ac23d=0x0;_0x1ac23d<_0x2bc871['length'];++_0x1ac23d)null!=properties[_0x2bc871[_0x1ac23d]]&&(this[_0x2bc871[_0x1ac23d]]=properties[_0x2bc871[_0x1ac23d]]);}}return SuggestionDescriptor['prototype']['id']='',SuggestionDescriptor['prototype']['authorId']='',SuggestionDescriptor['prototype']['type']='',SuggestionDescriptor['prototype']['createdAt']='',SuggestionDescriptor['prototype']['data']='',SuggestionDescriptor['prototype']['hasComments']=!0x1,SuggestionDescriptor['prototype']['state']='',SuggestionDescriptor['prototype']['attributes']='',SuggestionDescriptor['create']=function(properties){return new SuggestionDescriptor(properties);},SuggestionDescriptor['encode']=function(_0x29b41f,writer){return writer||(writer=$Writer['create']()),null!=_0x29b41f['id']&&Object['hasOwnProperty']['call'](_0x29b41f,'id')&&writer['uint32'](0xa)['string'](_0x29b41f['id']),null!=_0x29b41f['authorId']&&Object['hasOwnProperty']['call'](_0x29b41f,'authorId')&&writer['uint32'](0x12)['string'](_0x29b41f['authorId']),null!=_0x29b41f['type']&&Object['hasOwnProperty']['call'](_0x29b41f,'type')&&writer['uint32'](0x1a)['string'](_0x29b41f['type']),null!=_0x29b41f['createdAt']&&Object['hasOwnProperty']['call'](_0x29b41f,'createdAt')&&writer['uint32'](0x22)['string'](_0x29b41f['createdAt']),null!=_0x29b41f['data']&&Object['hasOwnProperty']['call'](_0x29b41f,'data')&&writer['uint32'](0x2a)['string'](_0x29b41f['data']),null!=_0x29b41f['hasComments']&&Object['hasOwnProperty']['call'](_0x29b41f,'hasComments')&&writer['uint32'](0x30)['bool'](_0x29b41f['hasComments']),null!=_0x29b41f['state']&&Object['hasOwnProperty']['call'](_0x29b41f,'state')&&writer['uint32'](0x3a)['string'](_0x29b41f['state']),null!=_0x29b41f['attributes']&&Object['hasOwnProperty']['call'](_0x29b41f,'attributes')&&writer['uint32'](0x42)['string'](_0x29b41f['attributes']),writer;},SuggestionDescriptor['encodeDelimited']=function(_0xd27a4e,writer){return this['encode'](_0xd27a4e,writer)['ldelim']();},SuggestionDescriptor['decode']=function(_0x2b6c84,length){_0x2b6c84 instanceof _0x498bd5||(_0x2b6c84=_0x498bd5['create'](_0x2b6c84));for(var _0x16f21c=void 0x0===length?_0x2b6c84['len']:_0x2b6c84['pos']+length,_0x1484ed=new $root['SuggestionDescriptor']();_0x2b6c84['pos']<_0x16f21c;){var tag=_0x2b6c84['uint32']();switch(tag>>>0x3){case 0x1:_0x1484ed['id']=_0x2b6c84['string']();break;case 0x2:_0x1484ed['authorId']=_0x2b6c84['string']();break;case 0x3:_0x1484ed['type']=_0x2b6c84['string']();break;case 0x4:_0x1484ed['createdAt']=_0x2b6c84['string']();break;case 0x5:_0x1484ed['data']=_0x2b6c84['string']();break;case 0x6:_0x1484ed['hasComments']=_0x2b6c84['bool']();break;case 0x7:_0x1484ed['state']=_0x2b6c84['string']();break;case 0x8:_0x1484ed['attributes']=_0x2b6c84['string']();break;default:_0x2b6c84['skipType'](0x7&tag);}}return _0x1484ed;},SuggestionDescriptor['decodeDelimited']=function(_0x522091){return _0x522091 instanceof _0x498bd5||(_0x522091=new _0x498bd5(_0x522091)),this['decode'](_0x522091,_0x522091['uint32']());},SuggestionDescriptor['verify']=function(_0x26bd2b){return'object'!=typeof _0x26bd2b||null===_0x26bd2b?'object\x20expected':null!=_0x26bd2b['id']&&_0x26bd2b['hasOwnProperty']('id')&&!$util['isString'](_0x26bd2b['id'])?'id:\x20string\x20expected':null!=_0x26bd2b['authorId']&&_0x26bd2b['hasOwnProperty']('authorId')&&!$util['isString'](_0x26bd2b['authorId'])?'authorId:\x20string\x20expected':null!=_0x26bd2b['type']&&_0x26bd2b['hasOwnProperty']('type')&&!$util['isString'](_0x26bd2b['type'])?'type:\x20string\x20expected':null!=_0x26bd2b['createdAt']&&_0x26bd2b['hasOwnProperty']('createdAt')&&!$util['isString'](_0x26bd2b['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x26bd2b['data']&&_0x26bd2b['hasOwnProperty']('data')&&!$util['isString'](_0x26bd2b['data'])?'data:\x20string\x20expected':null!=_0x26bd2b['hasComments']&&_0x26bd2b['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x26bd2b['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x26bd2b['state']&&_0x26bd2b['hasOwnProperty']('state')&&!$util['isString'](_0x26bd2b['state'])?'state:\x20string\x20expected':null!=_0x26bd2b['attributes']&&_0x26bd2b['hasOwnProperty']('attributes')&&!$util['isString'](_0x26bd2b['attributes'])?'attributes:\x20string\x20expected':null;},SuggestionDescriptor['fromObject']=function(object){if(object instanceof $root['SuggestionDescriptor'])return object;var _0x8ff23b=new $root['SuggestionDescriptor']();return null!=object['id']&&(_0x8ff23b['id']=String(object['id'])),null!=object['authorId']&&(_0x8ff23b['authorId']=String(object['authorId'])),null!=object['type']&&(_0x8ff23b['type']=String(object['type'])),null!=object['createdAt']&&(_0x8ff23b['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x8ff23b['data']=String(object['data'])),null!=object['hasComments']&&(_0x8ff23b['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x8ff23b['state']=String(object['state'])),null!=object['attributes']&&(_0x8ff23b['attributes']=String(object['attributes'])),_0x8ff23b;},SuggestionDescriptor['toObject']=function(_0x55b31e,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['authorId']='',object['type']='',object['createdAt']='',object['data']='',object['hasComments']=!0x1,object['state']='',object['attributes']=''),null!=_0x55b31e['id']&&_0x55b31e['hasOwnProperty']('id')&&(object['id']=_0x55b31e['id']),null!=_0x55b31e['authorId']&&_0x55b31e['hasOwnProperty']('authorId')&&(object['authorId']=_0x55b31e['authorId']),null!=_0x55b31e['type']&&_0x55b31e['hasOwnProperty']('type')&&(object['type']=_0x55b31e['type']),null!=_0x55b31e['createdAt']&&_0x55b31e['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x55b31e['createdAt']),null!=_0x55b31e['data']&&_0x55b31e['hasOwnProperty']('data')&&(object['data']=_0x55b31e['data']),null!=_0x55b31e['hasComments']&&_0x55b31e['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x55b31e['hasComments']),null!=_0x55b31e['state']&&_0x55b31e['hasOwnProperty']('state')&&(object['state']=_0x55b31e['state']),null!=_0x55b31e['attributes']&&_0x55b31e['hasOwnProperty']('attributes')&&(object['attributes']=_0x55b31e['attributes']),object;},SuggestionDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},SuggestionDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/SuggestionDescriptor';},SuggestionDescriptor;}()),$root['TrackChangesAddSuggestionMessage']=(function(){function TrackChangesAddSuggestionMessage(properties){if(properties){for(var _0x1d19f5=Object['keys'](properties),_0x94ba4c=0x0;_0x94ba4c<_0x1d19f5['length'];++_0x94ba4c)null!=properties[_0x1d19f5[_0x94ba4c]]&&(this[_0x1d19f5[_0x94ba4c]]=properties[_0x1d19f5[_0x94ba4c]]);}}return TrackChangesAddSuggestionMessage['prototype']['id']='',TrackChangesAddSuggestionMessage['prototype']['documentId']='',TrackChangesAddSuggestionMessage['prototype']['type']='',TrackChangesAddSuggestionMessage['prototype']['data']='',TrackChangesAddSuggestionMessage['prototype']['originalSuggestionId']='',TrackChangesAddSuggestionMessage['prototype']['attributes']='',TrackChangesAddSuggestionMessage['create']=function(properties){return new TrackChangesAddSuggestionMessage(properties);},TrackChangesAddSuggestionMessage['encode']=function(_0x15097f,writer){return writer||(writer=$Writer['create']()),null!=_0x15097f['id']&&Object['hasOwnProperty']['call'](_0x15097f,'id')&&writer['uint32'](0xa)['string'](_0x15097f['id']),null!=_0x15097f['documentId']&&Object['hasOwnProperty']['call'](_0x15097f,'documentId')&&writer['uint32'](0x12)['string'](_0x15097f['documentId']),null!=_0x15097f['type']&&Object['hasOwnProperty']['call'](_0x15097f,'type')&&writer['uint32'](0x1a)['string'](_0x15097f['type']),null!=_0x15097f['data']&&Object['hasOwnProperty']['call'](_0x15097f,'data')&&writer['uint32'](0x22)['string'](_0x15097f['data']),null!=_0x15097f['originalSuggestionId']&&Object['hasOwnProperty']['call'](_0x15097f,'originalSuggestionId')&&writer['uint32'](0x2a)['string'](_0x15097f['originalSuggestionId']),null!=_0x15097f['attributes']&&Object['hasOwnProperty']['call'](_0x15097f,'attributes')&&writer['uint32'](0x32)['string'](_0x15097f['attributes']),writer;},TrackChangesAddSuggestionMessage['encodeDelimited']=function(_0x4807f5,writer){return this['encode'](_0x4807f5,writer)['ldelim']();},TrackChangesAddSuggestionMessage['decode']=function(_0x51284d,length){_0x51284d instanceof _0x498bd5||(_0x51284d=_0x498bd5['create'](_0x51284d));for(var _0x1b213b=void 0x0===length?_0x51284d['len']:_0x51284d['pos']+length,_0x1cda9f=new $root['TrackChangesAddSuggestionMessage']();_0x51284d['pos']<_0x1b213b;){var tag=_0x51284d['uint32']();switch(tag>>>0x3){case 0x1:_0x1cda9f['id']=_0x51284d['string']();break;case 0x2:_0x1cda9f['documentId']=_0x51284d['string']();break;case 0x3:_0x1cda9f['type']=_0x51284d['string']();break;case 0x4:_0x1cda9f['data']=_0x51284d['string']();break;case 0x5:_0x1cda9f['originalSuggestionId']=_0x51284d['string']();break;case 0x6:_0x1cda9f['attributes']=_0x51284d['string']();break;default:_0x51284d['skipType'](0x7&tag);}}return _0x1cda9f;},TrackChangesAddSuggestionMessage['decodeDelimited']=function(_0x452b74){return _0x452b74 instanceof _0x498bd5||(_0x452b74=new _0x498bd5(_0x452b74)),this['decode'](_0x452b74,_0x452b74['uint32']());},TrackChangesAddSuggestionMessage['verify']=function(_0x1a7da7){return'object'!=typeof _0x1a7da7||null===_0x1a7da7?'object\x20expected':null!=_0x1a7da7['id']&&_0x1a7da7['hasOwnProperty']('id')&&!$util['isString'](_0x1a7da7['id'])?'id:\x20string\x20expected':null!=_0x1a7da7['documentId']&&_0x1a7da7['hasOwnProperty']('documentId')&&!$util['isString'](_0x1a7da7['documentId'])?'documentId:\x20string\x20expected':null!=_0x1a7da7['type']&&_0x1a7da7['hasOwnProperty']('type')&&!$util['isString'](_0x1a7da7['type'])?'type:\x20string\x20expected':null!=_0x1a7da7['data']&&_0x1a7da7['hasOwnProperty']('data')&&!$util['isString'](_0x1a7da7['data'])?'data:\x20string\x20expected':null!=_0x1a7da7['originalSuggestionId']&&_0x1a7da7['hasOwnProperty']('originalSuggestionId')&&!$util['isString'](_0x1a7da7['originalSuggestionId'])?'originalSuggestionId:\x20string\x20expected':null!=_0x1a7da7['attributes']&&_0x1a7da7['hasOwnProperty']('attributes')&&!$util['isString'](_0x1a7da7['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesAddSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesAddSuggestionMessage'])return object;var _0x153d3a=new $root['TrackChangesAddSuggestionMessage']();return null!=object['id']&&(_0x153d3a['id']=String(object['id'])),null!=object['documentId']&&(_0x153d3a['documentId']=String(object['documentId'])),null!=object['type']&&(_0x153d3a['type']=String(object['type'])),null!=object['data']&&(_0x153d3a['data']=String(object['data'])),null!=object['originalSuggestionId']&&(_0x153d3a['originalSuggestionId']=String(object['originalSuggestionId'])),null!=object['attributes']&&(_0x153d3a['attributes']=String(object['attributes'])),_0x153d3a;},TrackChangesAddSuggestionMessage['toObject']=function(_0x18a0d5,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['documentId']='',object['type']='',object['data']='',object['originalSuggestionId']='',object['attributes']=''),null!=_0x18a0d5['id']&&_0x18a0d5['hasOwnProperty']('id')&&(object['id']=_0x18a0d5['id']),null!=_0x18a0d5['documentId']&&_0x18a0d5['hasOwnProperty']('documentId')&&(object['documentId']=_0x18a0d5['documentId']),null!=_0x18a0d5['type']&&_0x18a0d5['hasOwnProperty']('type')&&(object['type']=_0x18a0d5['type']),null!=_0x18a0d5['data']&&_0x18a0d5['hasOwnProperty']('data')&&(object['data']=_0x18a0d5['data']),null!=_0x18a0d5['originalSuggestionId']&&_0x18a0d5['hasOwnProperty']('originalSuggestionId')&&(object['originalSuggestionId']=_0x18a0d5['originalSuggestionId']),null!=_0x18a0d5['attributes']&&_0x18a0d5['hasOwnProperty']('attributes')&&(object['attributes']=_0x18a0d5['attributes']),object;},TrackChangesAddSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesAddSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesAddSuggestionMessage';},TrackChangesAddSuggestionMessage;}()),$root['TrackChangesBatchUpdateSuggestionsStateMessage']=(function(){function TrackChangesBatchUpdateSuggestionsStateMessage(properties){if(this['ids']=[],properties){for(var _0x1d5c80=Object['keys'](properties),_0x45f823=0x0;_0x45f823<_0x1d5c80['length'];++_0x45f823)null!=properties[_0x1d5c80[_0x45f823]]&&(this[_0x1d5c80[_0x45f823]]=properties[_0x1d5c80[_0x45f823]]);}}return TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['ids']=$util['emptyArray'],TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['documentId']='',TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['state']='',TrackChangesBatchUpdateSuggestionsStateMessage['create']=function(properties){return new TrackChangesBatchUpdateSuggestionsStateMessage(properties);},TrackChangesBatchUpdateSuggestionsStateMessage['encode']=function(_0x2969e8,writer){if(writer||(writer=$Writer['create']()),null!=_0x2969e8['ids']&&_0x2969e8['ids']['length']){for(var _0x508b86=0x0;_0x508b86<_0x2969e8['ids']['length'];++_0x508b86)writer['uint32'](0xa)['string'](_0x2969e8['ids'][_0x508b86]);}return null!=_0x2969e8['documentId']&&Object['hasOwnProperty']['call'](_0x2969e8,'documentId')&&writer['uint32'](0x12)['string'](_0x2969e8['documentId']),null!=_0x2969e8['state']&&Object['hasOwnProperty']['call'](_0x2969e8,'state')&&writer['uint32'](0x1a)['string'](_0x2969e8['state']),writer;},TrackChangesBatchUpdateSuggestionsStateMessage['encodeDelimited']=function(_0xfe58e9,writer){return this['encode'](_0xfe58e9,writer)['ldelim']();},TrackChangesBatchUpdateSuggestionsStateMessage['decode']=function(_0x47e05e,length){_0x47e05e instanceof _0x498bd5||(_0x47e05e=_0x498bd5['create'](_0x47e05e));for(var _0x70f92a=void 0x0===length?_0x47e05e['len']:_0x47e05e['pos']+length,_0x83f644=new $root['TrackChangesBatchUpdateSuggestionsStateMessage']();_0x47e05e['pos']<_0x70f92a;){var tag=_0x47e05e['uint32']();switch(tag>>>0x3){case 0x1:_0x83f644['ids']&&_0x83f644['ids']['length']||(_0x83f644['ids']=[]),_0x83f644['ids']['push'](_0x47e05e['string']());break;case 0x2:_0x83f644['documentId']=_0x47e05e['string']();break;case 0x3:_0x83f644['state']=_0x47e05e['string']();break;default:_0x47e05e['skipType'](0x7&tag);}}return _0x83f644;},TrackChangesBatchUpdateSuggestionsStateMessage['decodeDelimited']=function(_0x3f01f8){return _0x3f01f8 instanceof _0x498bd5||(_0x3f01f8=new _0x498bd5(_0x3f01f8)),this['decode'](_0x3f01f8,_0x3f01f8['uint32']());},TrackChangesBatchUpdateSuggestionsStateMessage['verify']=function(_0x59e45f){if('object'!=typeof _0x59e45f||null===_0x59e45f)return'object\x20expected';if(null!=_0x59e45f['ids']&&_0x59e45f['hasOwnProperty']('ids')){if(!Array['isArray'](_0x59e45f['ids']))return'ids:\x20array\x20expected';for(var _0x36ff94=0x0;_0x36ff94<_0x59e45f['ids']['length'];++_0x36ff94)if(!$util['isString'](_0x59e45f['ids'][_0x36ff94]))return'ids:\x20string[]\x20expected';}return null!=_0x59e45f['documentId']&&_0x59e45f['hasOwnProperty']('documentId')&&!$util['isString'](_0x59e45f['documentId'])?'documentId:\x20string\x20expected':null!=_0x59e45f['state']&&_0x59e45f['hasOwnProperty']('state')&&!$util['isString'](_0x59e45f['state'])?'state:\x20string\x20expected':null;},TrackChangesBatchUpdateSuggestionsStateMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesBatchUpdateSuggestionsStateMessage'])return object;var _0x15cffa=new $root['TrackChangesBatchUpdateSuggestionsStateMessage']();if(object['ids']){if(!Array['isArray'](object['ids']))throw TypeError('.TrackChangesBatchUpdateSuggestionsStateMessage.ids:\x20array\x20expected');_0x15cffa['ids']=[];for(var _0x32b58c=0x0;_0x32b58c<object['ids']['length'];++_0x32b58c)_0x15cffa['ids'][_0x32b58c]=String(object['ids'][_0x32b58c]);}return null!=object['documentId']&&(_0x15cffa['documentId']=String(object['documentId'])),null!=object['state']&&(_0x15cffa['state']=String(object['state'])),_0x15cffa;},TrackChangesBatchUpdateSuggestionsStateMessage['toObject']=function(_0xea6b80,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['ids']=[]),options['defaults']&&(object['documentId']='',object['state']=''),_0xea6b80['ids']&&_0xea6b80['ids']['length']){object['ids']=[];for(var _0x5ea4fb=0x0;_0x5ea4fb<_0xea6b80['ids']['length'];++_0x5ea4fb)object['ids'][_0x5ea4fb]=_0xea6b80['ids'][_0x5ea4fb];}return null!=_0xea6b80['documentId']&&_0xea6b80['hasOwnProperty']('documentId')&&(object['documentId']=_0xea6b80['documentId']),null!=_0xea6b80['state']&&_0xea6b80['hasOwnProperty']('state')&&(object['state']=_0xea6b80['state']),object;},TrackChangesBatchUpdateSuggestionsStateMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesBatchUpdateSuggestionsStateMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesBatchUpdateSuggestionsStateMessage';},TrackChangesBatchUpdateSuggestionsStateMessage;}()),$root['TrackChangesConnectMessage']=(function(){function TrackChangesConnectMessage(properties){if(properties){for(var _0xe7c8ba=Object['keys'](properties),_0x38b6f2=0x0;_0x38b6f2<_0xe7c8ba['length'];++_0x38b6f2)null!=properties[_0xe7c8ba[_0x38b6f2]]&&(this[_0xe7c8ba[_0x38b6f2]]=properties[_0xe7c8ba[_0x38b6f2]]);}}return TrackChangesConnectMessage['prototype']['documentId']='',TrackChangesConnectMessage['create']=function(properties){return new TrackChangesConnectMessage(properties);},TrackChangesConnectMessage['encode']=function(_0x5484da,writer){return writer||(writer=$Writer['create']()),null!=_0x5484da['documentId']&&Object['hasOwnProperty']['call'](_0x5484da,'documentId')&&writer['uint32'](0xa)['string'](_0x5484da['documentId']),writer;},TrackChangesConnectMessage['encodeDelimited']=function(_0x2b5db2,writer){return this['encode'](_0x2b5db2,writer)['ldelim']();},TrackChangesConnectMessage['decode']=function(_0x586046,length){_0x586046 instanceof _0x498bd5||(_0x586046=_0x498bd5['create'](_0x586046));for(var _0x4e2880=void 0x0===length?_0x586046['len']:_0x586046['pos']+length,_0x367b50=new $root['TrackChangesConnectMessage']();_0x586046['pos']<_0x4e2880;){var tag=_0x586046['uint32']();if(tag>>>0x3==0x1)_0x367b50['documentId']=_0x586046['string']();else _0x586046['skipType'](0x7&tag);}return _0x367b50;},TrackChangesConnectMessage['decodeDelimited']=function(_0x4cae91){return _0x4cae91 instanceof _0x498bd5||(_0x4cae91=new _0x498bd5(_0x4cae91)),this['decode'](_0x4cae91,_0x4cae91['uint32']());},TrackChangesConnectMessage['verify']=function(_0x450e7f){return'object'!=typeof _0x450e7f||null===_0x450e7f?'object\x20expected':null!=_0x450e7f['documentId']&&_0x450e7f['hasOwnProperty']('documentId')&&!$util['isString'](_0x450e7f['documentId'])?'documentId:\x20string\x20expected':null;},TrackChangesConnectMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesConnectMessage'])return object;var _0x15e435=new $root['TrackChangesConnectMessage']();return null!=object['documentId']&&(_0x15e435['documentId']=String(object['documentId'])),_0x15e435;},TrackChangesConnectMessage['toObject']=function(_0x335353,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0x335353['documentId']&&_0x335353['hasOwnProperty']('documentId')&&(object['documentId']=_0x335353['documentId']),object;},TrackChangesConnectMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesConnectMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesConnectMessage';},TrackChangesConnectMessage;}()),$root['TrackChangesGetAllSuggestionMessage']=(function(){function TrackChangesGetAllSuggestionMessage(properties){if(properties){for(var _0x1ece4d=Object['keys'](properties),_0x55ef44=0x0;_0x55ef44<_0x1ece4d['length'];++_0x55ef44)null!=properties[_0x1ece4d[_0x55ef44]]&&(this[_0x1ece4d[_0x55ef44]]=properties[_0x1ece4d[_0x55ef44]]);}}return TrackChangesGetAllSuggestionMessage['prototype']['documentId']='',TrackChangesGetAllSuggestionMessage['create']=function(properties){return new TrackChangesGetAllSuggestionMessage(properties);},TrackChangesGetAllSuggestionMessage['encode']=function(_0xd0adb4,writer){return writer||(writer=$Writer['create']()),null!=_0xd0adb4['documentId']&&Object['hasOwnProperty']['call'](_0xd0adb4,'documentId')&&writer['uint32'](0xa)['string'](_0xd0adb4['documentId']),writer;},TrackChangesGetAllSuggestionMessage['encodeDelimited']=function(_0x5728cd,writer){return this['encode'](_0x5728cd,writer)['ldelim']();},TrackChangesGetAllSuggestionMessage['decode']=function(_0x13ca7e,length){_0x13ca7e instanceof _0x498bd5||(_0x13ca7e=_0x498bd5['create'](_0x13ca7e));for(var _0x4f6ec4=void 0x0===length?_0x13ca7e['len']:_0x13ca7e['pos']+length,_0x431f9f=new $root['TrackChangesGetAllSuggestionMessage']();_0x13ca7e['pos']<_0x4f6ec4;){var tag=_0x13ca7e['uint32']();if(tag>>>0x3==0x1)_0x431f9f['documentId']=_0x13ca7e['string']();else _0x13ca7e['skipType'](0x7&tag);}return _0x431f9f;},TrackChangesGetAllSuggestionMessage['decodeDelimited']=function(_0x1c53e3){return _0x1c53e3 instanceof _0x498bd5||(_0x1c53e3=new _0x498bd5(_0x1c53e3)),this['decode'](_0x1c53e3,_0x1c53e3['uint32']());},TrackChangesGetAllSuggestionMessage['verify']=function(_0x27ef04){return'object'!=typeof _0x27ef04||null===_0x27ef04?'object\x20expected':null!=_0x27ef04['documentId']&&_0x27ef04['hasOwnProperty']('documentId')&&!$util['isString'](_0x27ef04['documentId'])?'documentId:\x20string\x20expected':null;},TrackChangesGetAllSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesGetAllSuggestionMessage'])return object;var _0x480241=new $root['TrackChangesGetAllSuggestionMessage']();return null!=object['documentId']&&(_0x480241['documentId']=String(object['documentId'])),_0x480241;},TrackChangesGetAllSuggestionMessage['toObject']=function(_0xc5f301,options){options||(options={});var object={};return options['defaults']&&(object['documentId']=''),null!=_0xc5f301['documentId']&&_0xc5f301['hasOwnProperty']('documentId')&&(object['documentId']=_0xc5f301['documentId']),object;},TrackChangesGetAllSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetAllSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetAllSuggestionMessage';},TrackChangesGetAllSuggestionMessage;}()),$root['TrackChangesGetSuggestionMessage']=(function(){function TrackChangesGetSuggestionMessage(properties){if(properties){for(var _0x45a042=Object['keys'](properties),_0x1e3fc3=0x0;_0x1e3fc3<_0x45a042['length'];++_0x1e3fc3)null!=properties[_0x45a042[_0x1e3fc3]]&&(this[_0x45a042[_0x1e3fc3]]=properties[_0x45a042[_0x1e3fc3]]);}}return TrackChangesGetSuggestionMessage['prototype']['id']='',TrackChangesGetSuggestionMessage['prototype']['documentId']='',TrackChangesGetSuggestionMessage['create']=function(properties){return new TrackChangesGetSuggestionMessage(properties);},TrackChangesGetSuggestionMessage['encode']=function(_0x23d904,writer){return writer||(writer=$Writer['create']()),null!=_0x23d904['id']&&Object['hasOwnProperty']['call'](_0x23d904,'id')&&writer['uint32'](0xa)['string'](_0x23d904['id']),null!=_0x23d904['documentId']&&Object['hasOwnProperty']['call'](_0x23d904,'documentId')&&writer['uint32'](0x12)['string'](_0x23d904['documentId']),writer;},TrackChangesGetSuggestionMessage['encodeDelimited']=function(_0x3cc9f2,writer){return this['encode'](_0x3cc9f2,writer)['ldelim']();},TrackChangesGetSuggestionMessage['decode']=function(_0x58e42b,length){_0x58e42b instanceof _0x498bd5||(_0x58e42b=_0x498bd5['create'](_0x58e42b));for(var _0x19c191=void 0x0===length?_0x58e42b['len']:_0x58e42b['pos']+length,_0x5ca1e2=new $root['TrackChangesGetSuggestionMessage']();_0x58e42b['pos']<_0x19c191;){var tag=_0x58e42b['uint32']();switch(tag>>>0x3){case 0x1:_0x5ca1e2['id']=_0x58e42b['string']();break;case 0x2:_0x5ca1e2['documentId']=_0x58e42b['string']();break;default:_0x58e42b['skipType'](0x7&tag);}}return _0x5ca1e2;},TrackChangesGetSuggestionMessage['decodeDelimited']=function(_0x43e2c5){return _0x43e2c5 instanceof _0x498bd5||(_0x43e2c5=new _0x498bd5(_0x43e2c5)),this['decode'](_0x43e2c5,_0x43e2c5['uint32']());},TrackChangesGetSuggestionMessage['verify']=function(_0x174fc0){return'object'!=typeof _0x174fc0||null===_0x174fc0?'object\x20expected':null!=_0x174fc0['id']&&_0x174fc0['hasOwnProperty']('id')&&!$util['isString'](_0x174fc0['id'])?'id:\x20string\x20expected':null!=_0x174fc0['documentId']&&_0x174fc0['hasOwnProperty']('documentId')&&!$util['isString'](_0x174fc0['documentId'])?'documentId:\x20string\x20expected':null;},TrackChangesGetSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesGetSuggestionMessage'])return object;var _0x371555=new $root['TrackChangesGetSuggestionMessage']();return null!=object['id']&&(_0x371555['id']=String(object['id'])),null!=object['documentId']&&(_0x371555['documentId']=String(object['documentId'])),_0x371555;},TrackChangesGetSuggestionMessage['toObject']=function(_0x4a605b,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['documentId']=''),null!=_0x4a605b['id']&&_0x4a605b['hasOwnProperty']('id')&&(object['id']=_0x4a605b['id']),null!=_0x4a605b['documentId']&&_0x4a605b['hasOwnProperty']('documentId')&&(object['documentId']=_0x4a605b['documentId']),object;},TrackChangesGetSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetSuggestionMessage';},TrackChangesGetSuggestionMessage;}()),$root['TrackChangesUpdateSuggestionMessage']=(function(){function TrackChangesUpdateSuggestionMessage(properties){if(properties){for(var _0xa46ab0=Object['keys'](properties),_0x405933=0x0;_0x405933<_0xa46ab0['length'];++_0x405933)null!=properties[_0xa46ab0[_0x405933]]&&(this[_0xa46ab0[_0x405933]]=properties[_0xa46ab0[_0x405933]]);}}return TrackChangesUpdateSuggestionMessage['prototype']['id']='',TrackChangesUpdateSuggestionMessage['prototype']['documentId']='',TrackChangesUpdateSuggestionMessage['prototype']['hasComments']=!0x1,TrackChangesUpdateSuggestionMessage['prototype']['isHasCommentsModified']=!0x1,TrackChangesUpdateSuggestionMessage['prototype']['state']='',TrackChangesUpdateSuggestionMessage['prototype']['attributes']='',TrackChangesUpdateSuggestionMessage['create']=function(properties){return new TrackChangesUpdateSuggestionMessage(properties);},TrackChangesUpdateSuggestionMessage['encode']=function(_0x20db49,writer){return writer||(writer=$Writer['create']()),null!=_0x20db49['id']&&Object['hasOwnProperty']['call'](_0x20db49,'id')&&writer['uint32'](0xa)['string'](_0x20db49['id']),null!=_0x20db49['documentId']&&Object['hasOwnProperty']['call'](_0x20db49,'documentId')&&writer['uint32'](0x12)['string'](_0x20db49['documentId']),null!=_0x20db49['hasComments']&&Object['hasOwnProperty']['call'](_0x20db49,'hasComments')&&writer['uint32'](0x18)['bool'](_0x20db49['hasComments']),null!=_0x20db49['isHasCommentsModified']&&Object['hasOwnProperty']['call'](_0x20db49,'isHasCommentsModified')&&writer['uint32'](0x20)['bool'](_0x20db49['isHasCommentsModified']),null!=_0x20db49['state']&&Object['hasOwnProperty']['call'](_0x20db49,'state')&&writer['uint32'](0x2a)['string'](_0x20db49['state']),null!=_0x20db49['attributes']&&Object['hasOwnProperty']['call'](_0x20db49,'attributes')&&writer['uint32'](0x32)['string'](_0x20db49['attributes']),writer;},TrackChangesUpdateSuggestionMessage['encodeDelimited']=function(_0x42c832,writer){return this['encode'](_0x42c832,writer)['ldelim']();},TrackChangesUpdateSuggestionMessage['decode']=function(_0x324f22,length){_0x324f22 instanceof _0x498bd5||(_0x324f22=_0x498bd5['create'](_0x324f22));for(var _0x4e4346=void 0x0===length?_0x324f22['len']:_0x324f22['pos']+length,_0x145b7d=new $root['TrackChangesUpdateSuggestionMessage']();_0x324f22['pos']<_0x4e4346;){var tag=_0x324f22['uint32']();switch(tag>>>0x3){case 0x1:_0x145b7d['id']=_0x324f22['string']();break;case 0x2:_0x145b7d['documentId']=_0x324f22['string']();break;case 0x3:_0x145b7d['hasComments']=_0x324f22['bool']();break;case 0x4:_0x145b7d['isHasCommentsModified']=_0x324f22['bool']();break;case 0x5:_0x145b7d['state']=_0x324f22['string']();break;case 0x6:_0x145b7d['attributes']=_0x324f22['string']();break;default:_0x324f22['skipType'](0x7&tag);}}return _0x145b7d;},TrackChangesUpdateSuggestionMessage['decodeDelimited']=function(_0x47442e){return _0x47442e instanceof _0x498bd5||(_0x47442e=new _0x498bd5(_0x47442e)),this['decode'](_0x47442e,_0x47442e['uint32']());},TrackChangesUpdateSuggestionMessage['verify']=function(_0x6ff8f1){return'object'!=typeof _0x6ff8f1||null===_0x6ff8f1?'object\x20expected':null!=_0x6ff8f1['id']&&_0x6ff8f1['hasOwnProperty']('id')&&!$util['isString'](_0x6ff8f1['id'])?'id:\x20string\x20expected':null!=_0x6ff8f1['documentId']&&_0x6ff8f1['hasOwnProperty']('documentId')&&!$util['isString'](_0x6ff8f1['documentId'])?'documentId:\x20string\x20expected':null!=_0x6ff8f1['hasComments']&&_0x6ff8f1['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x6ff8f1['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x6ff8f1['isHasCommentsModified']&&_0x6ff8f1['hasOwnProperty']('isHasCommentsModified')&&'boolean'!=typeof _0x6ff8f1['isHasCommentsModified']?'isHasCommentsModified:\x20boolean\x20expected':null!=_0x6ff8f1['state']&&_0x6ff8f1['hasOwnProperty']('state')&&!$util['isString'](_0x6ff8f1['state'])?'state:\x20string\x20expected':null!=_0x6ff8f1['attributes']&&_0x6ff8f1['hasOwnProperty']('attributes')&&!$util['isString'](_0x6ff8f1['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesUpdateSuggestionMessage['fromObject']=function(object){if(object instanceof $root['TrackChangesUpdateSuggestionMessage'])return object;var _0x6f93cb=new $root['TrackChangesUpdateSuggestionMessage']();return null!=object['id']&&(_0x6f93cb['id']=String(object['id'])),null!=object['documentId']&&(_0x6f93cb['documentId']=String(object['documentId'])),null!=object['hasComments']&&(_0x6f93cb['hasComments']=Boolean(object['hasComments'])),null!=object['isHasCommentsModified']&&(_0x6f93cb['isHasCommentsModified']=Boolean(object['isHasCommentsModified'])),null!=object['state']&&(_0x6f93cb['state']=String(object['state'])),null!=object['attributes']&&(_0x6f93cb['attributes']=String(object['attributes'])),_0x6f93cb;},TrackChangesUpdateSuggestionMessage['toObject']=function(_0x1e405a,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['documentId']='',object['hasComments']=!0x1,object['isHasCommentsModified']=!0x1,object['state']='',object['attributes']=''),null!=_0x1e405a['id']&&_0x1e405a['hasOwnProperty']('id')&&(object['id']=_0x1e405a['id']),null!=_0x1e405a['documentId']&&_0x1e405a['hasOwnProperty']('documentId')&&(object['documentId']=_0x1e405a['documentId']),null!=_0x1e405a['hasComments']&&_0x1e405a['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x1e405a['hasComments']),null!=_0x1e405a['isHasCommentsModified']&&_0x1e405a['hasOwnProperty']('isHasCommentsModified')&&(object['isHasCommentsModified']=_0x1e405a['isHasCommentsModified']),null!=_0x1e405a['state']&&_0x1e405a['hasOwnProperty']('state')&&(object['state']=_0x1e405a['state']),null!=_0x1e405a['attributes']&&_0x1e405a['hasOwnProperty']('attributes')&&(object['attributes']=_0x1e405a['attributes']),object;},TrackChangesUpdateSuggestionMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesUpdateSuggestionMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesUpdateSuggestionMessage';},TrackChangesUpdateSuggestionMessage;}()),$root['TrackChangesAddSuggestionResponse']=(function(){function TrackChangesAddSuggestionResponse(properties){if(properties){for(var _0x20d842=Object['keys'](properties),_0x5191fd=0x0;_0x5191fd<_0x20d842['length'];++_0x5191fd)null!=properties[_0x20d842[_0x5191fd]]&&(this[_0x20d842[_0x5191fd]]=properties[_0x20d842[_0x5191fd]]);}}return TrackChangesAddSuggestionResponse['prototype']['id']='',TrackChangesAddSuggestionResponse['prototype']['authorId']='',TrackChangesAddSuggestionResponse['prototype']['type']='',TrackChangesAddSuggestionResponse['prototype']['createdAt']='',TrackChangesAddSuggestionResponse['prototype']['data']='',TrackChangesAddSuggestionResponse['prototype']['hasComments']=!0x1,TrackChangesAddSuggestionResponse['prototype']['state']='',TrackChangesAddSuggestionResponse['prototype']['attributes']='',TrackChangesAddSuggestionResponse['create']=function(properties){return new TrackChangesAddSuggestionResponse(properties);},TrackChangesAddSuggestionResponse['encode']=function(_0x3104df,writer){return writer||(writer=$Writer['create']()),null!=_0x3104df['id']&&Object['hasOwnProperty']['call'](_0x3104df,'id')&&writer['uint32'](0xa)['string'](_0x3104df['id']),null!=_0x3104df['authorId']&&Object['hasOwnProperty']['call'](_0x3104df,'authorId')&&writer['uint32'](0x12)['string'](_0x3104df['authorId']),null!=_0x3104df['type']&&Object['hasOwnProperty']['call'](_0x3104df,'type')&&writer['uint32'](0x1a)['string'](_0x3104df['type']),null!=_0x3104df['createdAt']&&Object['hasOwnProperty']['call'](_0x3104df,'createdAt')&&writer['uint32'](0x22)['string'](_0x3104df['createdAt']),null!=_0x3104df['data']&&Object['hasOwnProperty']['call'](_0x3104df,'data')&&writer['uint32'](0x2a)['string'](_0x3104df['data']),null!=_0x3104df['hasComments']&&Object['hasOwnProperty']['call'](_0x3104df,'hasComments')&&writer['uint32'](0x30)['bool'](_0x3104df['hasComments']),null!=_0x3104df['state']&&Object['hasOwnProperty']['call'](_0x3104df,'state')&&writer['uint32'](0x3a)['string'](_0x3104df['state']),null!=_0x3104df['attributes']&&Object['hasOwnProperty']['call'](_0x3104df,'attributes')&&writer['uint32'](0x42)['string'](_0x3104df['attributes']),writer;},TrackChangesAddSuggestionResponse['encodeDelimited']=function(_0x48ce1f,writer){return this['encode'](_0x48ce1f,writer)['ldelim']();},TrackChangesAddSuggestionResponse['decode']=function(_0x6b2e13,length){_0x6b2e13 instanceof _0x498bd5||(_0x6b2e13=_0x498bd5['create'](_0x6b2e13));for(var _0x4efe95=void 0x0===length?_0x6b2e13['len']:_0x6b2e13['pos']+length,_0x2892d7=new $root['TrackChangesAddSuggestionResponse']();_0x6b2e13['pos']<_0x4efe95;){var tag=_0x6b2e13['uint32']();switch(tag>>>0x3){case 0x1:_0x2892d7['id']=_0x6b2e13['string']();break;case 0x2:_0x2892d7['authorId']=_0x6b2e13['string']();break;case 0x3:_0x2892d7['type']=_0x6b2e13['string']();break;case 0x4:_0x2892d7['createdAt']=_0x6b2e13['string']();break;case 0x5:_0x2892d7['data']=_0x6b2e13['string']();break;case 0x6:_0x2892d7['hasComments']=_0x6b2e13['bool']();break;case 0x7:_0x2892d7['state']=_0x6b2e13['string']();break;case 0x8:_0x2892d7['attributes']=_0x6b2e13['string']();break;default:_0x6b2e13['skipType'](0x7&tag);}}return _0x2892d7;},TrackChangesAddSuggestionResponse['decodeDelimited']=function(_0x3dce44){return _0x3dce44 instanceof _0x498bd5||(_0x3dce44=new _0x498bd5(_0x3dce44)),this['decode'](_0x3dce44,_0x3dce44['uint32']());},TrackChangesAddSuggestionResponse['verify']=function(_0x4543a7){return'object'!=typeof _0x4543a7||null===_0x4543a7?'object\x20expected':null!=_0x4543a7['id']&&_0x4543a7['hasOwnProperty']('id')&&!$util['isString'](_0x4543a7['id'])?'id:\x20string\x20expected':null!=_0x4543a7['authorId']&&_0x4543a7['hasOwnProperty']('authorId')&&!$util['isString'](_0x4543a7['authorId'])?'authorId:\x20string\x20expected':null!=_0x4543a7['type']&&_0x4543a7['hasOwnProperty']('type')&&!$util['isString'](_0x4543a7['type'])?'type:\x20string\x20expected':null!=_0x4543a7['createdAt']&&_0x4543a7['hasOwnProperty']('createdAt')&&!$util['isString'](_0x4543a7['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x4543a7['data']&&_0x4543a7['hasOwnProperty']('data')&&!$util['isString'](_0x4543a7['data'])?'data:\x20string\x20expected':null!=_0x4543a7['hasComments']&&_0x4543a7['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x4543a7['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x4543a7['state']&&_0x4543a7['hasOwnProperty']('state')&&!$util['isString'](_0x4543a7['state'])?'state:\x20string\x20expected':null!=_0x4543a7['attributes']&&_0x4543a7['hasOwnProperty']('attributes')&&!$util['isString'](_0x4543a7['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesAddSuggestionResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesAddSuggestionResponse'])return object;var _0x46fd47=new $root['TrackChangesAddSuggestionResponse']();return null!=object['id']&&(_0x46fd47['id']=String(object['id'])),null!=object['authorId']&&(_0x46fd47['authorId']=String(object['authorId'])),null!=object['type']&&(_0x46fd47['type']=String(object['type'])),null!=object['createdAt']&&(_0x46fd47['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x46fd47['data']=String(object['data'])),null!=object['hasComments']&&(_0x46fd47['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x46fd47['state']=String(object['state'])),null!=object['attributes']&&(_0x46fd47['attributes']=String(object['attributes'])),_0x46fd47;},TrackChangesAddSuggestionResponse['toObject']=function(_0x2beaac,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['authorId']='',object['type']='',object['createdAt']='',object['data']='',object['hasComments']=!0x1,object['state']='',object['attributes']=''),null!=_0x2beaac['id']&&_0x2beaac['hasOwnProperty']('id')&&(object['id']=_0x2beaac['id']),null!=_0x2beaac['authorId']&&_0x2beaac['hasOwnProperty']('authorId')&&(object['authorId']=_0x2beaac['authorId']),null!=_0x2beaac['type']&&_0x2beaac['hasOwnProperty']('type')&&(object['type']=_0x2beaac['type']),null!=_0x2beaac['createdAt']&&_0x2beaac['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x2beaac['createdAt']),null!=_0x2beaac['data']&&_0x2beaac['hasOwnProperty']('data')&&(object['data']=_0x2beaac['data']),null!=_0x2beaac['hasComments']&&_0x2beaac['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x2beaac['hasComments']),null!=_0x2beaac['state']&&_0x2beaac['hasOwnProperty']('state')&&(object['state']=_0x2beaac['state']),null!=_0x2beaac['attributes']&&_0x2beaac['hasOwnProperty']('attributes')&&(object['attributes']=_0x2beaac['attributes']),object;},TrackChangesAddSuggestionResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesAddSuggestionResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesAddSuggestionResponse';},TrackChangesAddSuggestionResponse;}()),$root['TrackChangesConnectResponse']=(function(){function TrackChangesConnectResponse(properties){if(this['suggestions']=[],this['suggestionsV2']=[],properties){for(var _0x4eeaa5=Object['keys'](properties),_0x4771f7=0x0;_0x4771f7<_0x4eeaa5['length'];++_0x4771f7)null!=properties[_0x4eeaa5[_0x4771f7]]&&(this[_0x4eeaa5[_0x4771f7]]=properties[_0x4eeaa5[_0x4771f7]]);}}return TrackChangesConnectResponse['prototype']['channel']='',TrackChangesConnectResponse['prototype']['suggestions']=$util['emptyArray'],TrackChangesConnectResponse['prototype']['suggestionsV2']=$util['emptyArray'],TrackChangesConnectResponse['create']=function(properties){return new TrackChangesConnectResponse(properties);},TrackChangesConnectResponse['encode']=function(_0x5033a1,writer){if(writer||(writer=$Writer['create']()),null!=_0x5033a1['channel']&&Object['hasOwnProperty']['call'](_0x5033a1,'channel')&&writer['uint32'](0xa)['string'](_0x5033a1['channel']),null!=_0x5033a1['suggestions']&&_0x5033a1['suggestions']['length']){for(var _0x1b27c8=0x0;_0x1b27c8<_0x5033a1['suggestions']['length'];++_0x1b27c8)writer['uint32'](0x12)['string'](_0x5033a1['suggestions'][_0x1b27c8]);}if(null!=_0x5033a1['suggestionsV2']&&_0x5033a1['suggestionsV2']['length']){for(_0x1b27c8=0x0;_0x1b27c8<_0x5033a1['suggestionsV2']['length'];++_0x1b27c8)$root['SuggestionDescriptor']['encode'](_0x5033a1['suggestionsV2'][_0x1b27c8],writer['uint32'](0x1a)['fork']())['ldelim']();}return writer;},TrackChangesConnectResponse['encodeDelimited']=function(_0x3fd9f0,writer){return this['encode'](_0x3fd9f0,writer)['ldelim']();},TrackChangesConnectResponse['decode']=function(_0x17979a,length){_0x17979a instanceof _0x498bd5||(_0x17979a=_0x498bd5['create'](_0x17979a));for(var _0x308191=void 0x0===length?_0x17979a['len']:_0x17979a['pos']+length,_0x38f173=new $root['TrackChangesConnectResponse']();_0x17979a['pos']<_0x308191;){var tag=_0x17979a['uint32']();switch(tag>>>0x3){case 0x1:_0x38f173['channel']=_0x17979a['string']();break;case 0x2:_0x38f173['suggestions']&&_0x38f173['suggestions']['length']||(_0x38f173['suggestions']=[]),_0x38f173['suggestions']['push'](_0x17979a['string']());break;case 0x3:_0x38f173['suggestionsV2']&&_0x38f173['suggestionsV2']['length']||(_0x38f173['suggestionsV2']=[]),_0x38f173['suggestionsV2']['push']($root['SuggestionDescriptor']['decode'](_0x17979a,_0x17979a['uint32']()));break;default:_0x17979a['skipType'](0x7&tag);}}return _0x38f173;},TrackChangesConnectResponse['decodeDelimited']=function(_0x226c2d){return _0x226c2d instanceof _0x498bd5||(_0x226c2d=new _0x498bd5(_0x226c2d)),this['decode'](_0x226c2d,_0x226c2d['uint32']());},TrackChangesConnectResponse['verify']=function(_0x4dbc05){if('object'!=typeof _0x4dbc05||null===_0x4dbc05)return'object\x20expected';if(null!=_0x4dbc05['channel']&&_0x4dbc05['hasOwnProperty']('channel')&&!$util['isString'](_0x4dbc05['channel']))return'channel:\x20string\x20expected';if(null!=_0x4dbc05['suggestions']&&_0x4dbc05['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x4dbc05['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x298718=0x0;_0x298718<_0x4dbc05['suggestions']['length'];++_0x298718)if(!$util['isString'](_0x4dbc05['suggestions'][_0x298718]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x4dbc05['suggestionsV2']&&_0x4dbc05['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x4dbc05['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x298718=0x0;_0x298718<_0x4dbc05['suggestionsV2']['length'];++_0x298718){var _0x37878b=$root['SuggestionDescriptor']['verify'](_0x4dbc05['suggestionsV2'][_0x298718]);if(_0x37878b)return'suggestionsV2.'+_0x37878b;}}return null;},TrackChangesConnectResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesConnectResponse'])return object;var _0x1841fb=new $root['TrackChangesConnectResponse']();if(null!=object['channel']&&(_0x1841fb['channel']=String(object['channel'])),object['suggestions']){if(!Array['isArray'](object['suggestions']))throw TypeError('.TrackChangesConnectResponse.suggestions:\x20array\x20expected');_0x1841fb['suggestions']=[];for(var _0x5e7dda=0x0;_0x5e7dda<object['suggestions']['length'];++_0x5e7dda)_0x1841fb['suggestions'][_0x5e7dda]=String(object['suggestions'][_0x5e7dda]);}if(object['suggestionsV2']){if(!Array['isArray'](object['suggestionsV2']))throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20array\x20expected');_0x1841fb['suggestionsV2']=[];for(_0x5e7dda=0x0;_0x5e7dda<object['suggestionsV2']['length'];++_0x5e7dda){if('object'!=typeof object['suggestionsV2'][_0x5e7dda])throw TypeError('.TrackChangesConnectResponse.suggestionsV2:\x20object\x20expected');_0x1841fb['suggestionsV2'][_0x5e7dda]=$root['SuggestionDescriptor']['fromObject'](object['suggestionsV2'][_0x5e7dda]);}}return _0x1841fb;},TrackChangesConnectResponse['toObject']=function(_0x1e2899,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['suggestions']=[],object['suggestionsV2']=[]),options['defaults']&&(object['channel']=''),null!=_0x1e2899['channel']&&_0x1e2899['hasOwnProperty']('channel')&&(object['channel']=_0x1e2899['channel']),_0x1e2899['suggestions']&&_0x1e2899['suggestions']['length']){object['suggestions']=[];for(var _0x3a032e=0x0;_0x3a032e<_0x1e2899['suggestions']['length'];++_0x3a032e)object['suggestions'][_0x3a032e]=_0x1e2899['suggestions'][_0x3a032e];}if(_0x1e2899['suggestionsV2']&&_0x1e2899['suggestionsV2']['length']){object['suggestionsV2']=[];for(_0x3a032e=0x0;_0x3a032e<_0x1e2899['suggestionsV2']['length'];++_0x3a032e)object['suggestionsV2'][_0x3a032e]=$root['SuggestionDescriptor']['toObject'](_0x1e2899['suggestionsV2'][_0x3a032e],options);}return object;},TrackChangesConnectResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesConnectResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesConnectResponse';},TrackChangesConnectResponse;}()),$root['TrackChangesGetAllSuggestionsResponse']=(function(){function TrackChangesGetAllSuggestionsResponse(properties){if(this['suggestions']=[],this['suggestionsV2']=[],properties){for(var _0xa164ba=Object['keys'](properties),_0x30e75c=0x0;_0x30e75c<_0xa164ba['length'];++_0x30e75c)null!=properties[_0xa164ba[_0x30e75c]]&&(this[_0xa164ba[_0x30e75c]]=properties[_0xa164ba[_0x30e75c]]);}}return TrackChangesGetAllSuggestionsResponse['prototype']['suggestions']=$util['emptyArray'],TrackChangesGetAllSuggestionsResponse['prototype']['suggestionsV2']=$util['emptyArray'],TrackChangesGetAllSuggestionsResponse['create']=function(properties){return new TrackChangesGetAllSuggestionsResponse(properties);},TrackChangesGetAllSuggestionsResponse['encode']=function(_0xce0f5e,writer){if(writer||(writer=$Writer['create']()),null!=_0xce0f5e['suggestions']&&_0xce0f5e['suggestions']['length']){for(var _0xaf1335=0x0;_0xaf1335<_0xce0f5e['suggestions']['length'];++_0xaf1335)writer['uint32'](0xa)['string'](_0xce0f5e['suggestions'][_0xaf1335]);}if(null!=_0xce0f5e['suggestionsV2']&&_0xce0f5e['suggestionsV2']['length']){for(_0xaf1335=0x0;_0xaf1335<_0xce0f5e['suggestionsV2']['length'];++_0xaf1335)$root['SuggestionDescriptor']['encode'](_0xce0f5e['suggestionsV2'][_0xaf1335],writer['uint32'](0x12)['fork']())['ldelim']();}return writer;},TrackChangesGetAllSuggestionsResponse['encodeDelimited']=function(_0x2f41a4,writer){return this['encode'](_0x2f41a4,writer)['ldelim']();},TrackChangesGetAllSuggestionsResponse['decode']=function(_0x4f1706,length){_0x4f1706 instanceof _0x498bd5||(_0x4f1706=_0x498bd5['create'](_0x4f1706));for(var _0x59c05a=void 0x0===length?_0x4f1706['len']:_0x4f1706['pos']+length,_0x19ce56=new $root['TrackChangesGetAllSuggestionsResponse']();_0x4f1706['pos']<_0x59c05a;){var tag=_0x4f1706['uint32']();switch(tag>>>0x3){case 0x1:_0x19ce56['suggestions']&&_0x19ce56['suggestions']['length']||(_0x19ce56['suggestions']=[]),_0x19ce56['suggestions']['push'](_0x4f1706['string']());break;case 0x2:_0x19ce56['suggestionsV2']&&_0x19ce56['suggestionsV2']['length']||(_0x19ce56['suggestionsV2']=[]),_0x19ce56['suggestionsV2']['push']($root['SuggestionDescriptor']['decode'](_0x4f1706,_0x4f1706['uint32']()));break;default:_0x4f1706['skipType'](0x7&tag);}}return _0x19ce56;},TrackChangesGetAllSuggestionsResponse['decodeDelimited']=function(_0x2ed9ce){return _0x2ed9ce instanceof _0x498bd5||(_0x2ed9ce=new _0x498bd5(_0x2ed9ce)),this['decode'](_0x2ed9ce,_0x2ed9ce['uint32']());},TrackChangesGetAllSuggestionsResponse['verify']=function(_0x16cff1){if('object'!=typeof _0x16cff1||null===_0x16cff1)return'object\x20expected';if(null!=_0x16cff1['suggestions']&&_0x16cff1['hasOwnProperty']('suggestions')){if(!Array['isArray'](_0x16cff1['suggestions']))return'suggestions:\x20array\x20expected';for(var _0x5478c5=0x0;_0x5478c5<_0x16cff1['suggestions']['length'];++_0x5478c5)if(!$util['isString'](_0x16cff1['suggestions'][_0x5478c5]))return'suggestions:\x20string[]\x20expected';}if(null!=_0x16cff1['suggestionsV2']&&_0x16cff1['hasOwnProperty']('suggestionsV2')){if(!Array['isArray'](_0x16cff1['suggestionsV2']))return'suggestionsV2:\x20array\x20expected';for(_0x5478c5=0x0;_0x5478c5<_0x16cff1['suggestionsV2']['length'];++_0x5478c5){var _0x376a75=$root['SuggestionDescriptor']['verify'](_0x16cff1['suggestionsV2'][_0x5478c5]);if(_0x376a75)return'suggestionsV2.'+_0x376a75;}}return null;},TrackChangesGetAllSuggestionsResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesGetAllSuggestionsResponse'])return object;var _0x37a6a3=new $root['TrackChangesGetAllSuggestionsResponse']();if(object['suggestions']){if(!Array['isArray'](object['suggestions']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestions:\x20array\x20expected');_0x37a6a3['suggestions']=[];for(var _0x101e76=0x0;_0x101e76<object['suggestions']['length'];++_0x101e76)_0x37a6a3['suggestions'][_0x101e76]=String(object['suggestions'][_0x101e76]);}if(object['suggestionsV2']){if(!Array['isArray'](object['suggestionsV2']))throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20array\x20expected');_0x37a6a3['suggestionsV2']=[];for(_0x101e76=0x0;_0x101e76<object['suggestionsV2']['length'];++_0x101e76){if('object'!=typeof object['suggestionsV2'][_0x101e76])throw TypeError('.TrackChangesGetAllSuggestionsResponse.suggestionsV2:\x20object\x20expected');_0x37a6a3['suggestionsV2'][_0x101e76]=$root['SuggestionDescriptor']['fromObject'](object['suggestionsV2'][_0x101e76]);}}return _0x37a6a3;},TrackChangesGetAllSuggestionsResponse['toObject']=function(_0x5f2f42,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['suggestions']=[],object['suggestionsV2']=[]),_0x5f2f42['suggestions']&&_0x5f2f42['suggestions']['length']){object['suggestions']=[];for(var _0x7b7095=0x0;_0x7b7095<_0x5f2f42['suggestions']['length'];++_0x7b7095)object['suggestions'][_0x7b7095]=_0x5f2f42['suggestions'][_0x7b7095];}if(_0x5f2f42['suggestionsV2']&&_0x5f2f42['suggestionsV2']['length']){object['suggestionsV2']=[];for(_0x7b7095=0x0;_0x7b7095<_0x5f2f42['suggestionsV2']['length'];++_0x7b7095)object['suggestionsV2'][_0x7b7095]=$root['SuggestionDescriptor']['toObject'](_0x5f2f42['suggestionsV2'][_0x7b7095],options);}return object;},TrackChangesGetAllSuggestionsResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetAllSuggestionsResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetAllSuggestionsResponse';},TrackChangesGetAllSuggestionsResponse;}()),$root['TrackChangesGetSuggestionResponse']=(function(){function TrackChangesGetSuggestionResponse(properties){if(properties){for(var _0x166c04=Object['keys'](properties),_0x3a5c77=0x0;_0x3a5c77<_0x166c04['length'];++_0x3a5c77)null!=properties[_0x166c04[_0x3a5c77]]&&(this[_0x166c04[_0x3a5c77]]=properties[_0x166c04[_0x3a5c77]]);}}return TrackChangesGetSuggestionResponse['prototype']['id']='',TrackChangesGetSuggestionResponse['prototype']['authorId']='',TrackChangesGetSuggestionResponse['prototype']['type']='',TrackChangesGetSuggestionResponse['prototype']['createdAt']='',TrackChangesGetSuggestionResponse['prototype']['data']='',TrackChangesGetSuggestionResponse['prototype']['hasComments']=!0x1,TrackChangesGetSuggestionResponse['prototype']['state']='',TrackChangesGetSuggestionResponse['prototype']['attributes']='',TrackChangesGetSuggestionResponse['create']=function(properties){return new TrackChangesGetSuggestionResponse(properties);},TrackChangesGetSuggestionResponse['encode']=function(_0x2b0f47,writer){return writer||(writer=$Writer['create']()),null!=_0x2b0f47['id']&&Object['hasOwnProperty']['call'](_0x2b0f47,'id')&&writer['uint32'](0xa)['string'](_0x2b0f47['id']),null!=_0x2b0f47['authorId']&&Object['hasOwnProperty']['call'](_0x2b0f47,'authorId')&&writer['uint32'](0x12)['string'](_0x2b0f47['authorId']),null!=_0x2b0f47['type']&&Object['hasOwnProperty']['call'](_0x2b0f47,'type')&&writer['uint32'](0x1a)['string'](_0x2b0f47['type']),null!=_0x2b0f47['createdAt']&&Object['hasOwnProperty']['call'](_0x2b0f47,'createdAt')&&writer['uint32'](0x22)['string'](_0x2b0f47['createdAt']),null!=_0x2b0f47['data']&&Object['hasOwnProperty']['call'](_0x2b0f47,'data')&&writer['uint32'](0x2a)['string'](_0x2b0f47['data']),null!=_0x2b0f47['hasComments']&&Object['hasOwnProperty']['call'](_0x2b0f47,'hasComments')&&writer['uint32'](0x30)['bool'](_0x2b0f47['hasComments']),null!=_0x2b0f47['state']&&Object['hasOwnProperty']['call'](_0x2b0f47,'state')&&writer['uint32'](0x3a)['string'](_0x2b0f47['state']),null!=_0x2b0f47['attributes']&&Object['hasOwnProperty']['call'](_0x2b0f47,'attributes')&&writer['uint32'](0x42)['string'](_0x2b0f47['attributes']),writer;},TrackChangesGetSuggestionResponse['encodeDelimited']=function(_0x5c4510,writer){return this['encode'](_0x5c4510,writer)['ldelim']();},TrackChangesGetSuggestionResponse['decode']=function(_0x5e667a,length){_0x5e667a instanceof _0x498bd5||(_0x5e667a=_0x498bd5['create'](_0x5e667a));for(var _0xdf60c4=void 0x0===length?_0x5e667a['len']:_0x5e667a['pos']+length,_0x20f189=new $root['TrackChangesGetSuggestionResponse']();_0x5e667a['pos']<_0xdf60c4;){var tag=_0x5e667a['uint32']();switch(tag>>>0x3){case 0x1:_0x20f189['id']=_0x5e667a['string']();break;case 0x2:_0x20f189['authorId']=_0x5e667a['string']();break;case 0x3:_0x20f189['type']=_0x5e667a['string']();break;case 0x4:_0x20f189['createdAt']=_0x5e667a['string']();break;case 0x5:_0x20f189['data']=_0x5e667a['string']();break;case 0x6:_0x20f189['hasComments']=_0x5e667a['bool']();break;case 0x7:_0x20f189['state']=_0x5e667a['string']();break;case 0x8:_0x20f189['attributes']=_0x5e667a['string']();break;default:_0x5e667a['skipType'](0x7&tag);}}return _0x20f189;},TrackChangesGetSuggestionResponse['decodeDelimited']=function(_0x1246c6){return _0x1246c6 instanceof _0x498bd5||(_0x1246c6=new _0x498bd5(_0x1246c6)),this['decode'](_0x1246c6,_0x1246c6['uint32']());},TrackChangesGetSuggestionResponse['verify']=function(_0x296c59){return'object'!=typeof _0x296c59||null===_0x296c59?'object\x20expected':null!=_0x296c59['id']&&_0x296c59['hasOwnProperty']('id')&&!$util['isString'](_0x296c59['id'])?'id:\x20string\x20expected':null!=_0x296c59['authorId']&&_0x296c59['hasOwnProperty']('authorId')&&!$util['isString'](_0x296c59['authorId'])?'authorId:\x20string\x20expected':null!=_0x296c59['type']&&_0x296c59['hasOwnProperty']('type')&&!$util['isString'](_0x296c59['type'])?'type:\x20string\x20expected':null!=_0x296c59['createdAt']&&_0x296c59['hasOwnProperty']('createdAt')&&!$util['isString'](_0x296c59['createdAt'])?'createdAt:\x20string\x20expected':null!=_0x296c59['data']&&_0x296c59['hasOwnProperty']('data')&&!$util['isString'](_0x296c59['data'])?'data:\x20string\x20expected':null!=_0x296c59['hasComments']&&_0x296c59['hasOwnProperty']('hasComments')&&'boolean'!=typeof _0x296c59['hasComments']?'hasComments:\x20boolean\x20expected':null!=_0x296c59['state']&&_0x296c59['hasOwnProperty']('state')&&!$util['isString'](_0x296c59['state'])?'state:\x20string\x20expected':null!=_0x296c59['attributes']&&_0x296c59['hasOwnProperty']('attributes')&&!$util['isString'](_0x296c59['attributes'])?'attributes:\x20string\x20expected':null;},TrackChangesGetSuggestionResponse['fromObject']=function(object){if(object instanceof $root['TrackChangesGetSuggestionResponse'])return object;var _0x492240=new $root['TrackChangesGetSuggestionResponse']();return null!=object['id']&&(_0x492240['id']=String(object['id'])),null!=object['authorId']&&(_0x492240['authorId']=String(object['authorId'])),null!=object['type']&&(_0x492240['type']=String(object['type'])),null!=object['createdAt']&&(_0x492240['createdAt']=String(object['createdAt'])),null!=object['data']&&(_0x492240['data']=String(object['data'])),null!=object['hasComments']&&(_0x492240['hasComments']=Boolean(object['hasComments'])),null!=object['state']&&(_0x492240['state']=String(object['state'])),null!=object['attributes']&&(_0x492240['attributes']=String(object['attributes'])),_0x492240;},TrackChangesGetSuggestionResponse['toObject']=function(_0x465522,options){options||(options={});var object={};return options['defaults']&&(object['id']='',object['authorId']='',object['type']='',object['createdAt']='',object['data']='',object['hasComments']=!0x1,object['state']='',object['attributes']=''),null!=_0x465522['id']&&_0x465522['hasOwnProperty']('id')&&(object['id']=_0x465522['id']),null!=_0x465522['authorId']&&_0x465522['hasOwnProperty']('authorId')&&(object['authorId']=_0x465522['authorId']),null!=_0x465522['type']&&_0x465522['hasOwnProperty']('type')&&(object['type']=_0x465522['type']),null!=_0x465522['createdAt']&&_0x465522['hasOwnProperty']('createdAt')&&(object['createdAt']=_0x465522['createdAt']),null!=_0x465522['data']&&_0x465522['hasOwnProperty']('data')&&(object['data']=_0x465522['data']),null!=_0x465522['hasComments']&&_0x465522['hasOwnProperty']('hasComments')&&(object['hasComments']=_0x465522['hasComments']),null!=_0x465522['state']&&_0x465522['hasOwnProperty']('state')&&(object['state']=_0x465522['state']),null!=_0x465522['attributes']&&_0x465522['hasOwnProperty']('attributes')&&(object['attributes']=_0x465522['attributes']),object;},TrackChangesGetSuggestionResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},TrackChangesGetSuggestionResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/TrackChangesGetSuggestionResponse';},TrackChangesGetSuggestionResponse;}()),$root['UserDescriptor']=(function(){function UserDescriptor(properties){if(this['attributes']=[],properties){for(var _0x47229e=Object['keys'](properties),_0x231de1=0x0;_0x231de1<_0x47229e['length'];++_0x231de1)null!=properties[_0x47229e[_0x231de1]]&&(this[_0x47229e[_0x231de1]]=properties[_0x47229e[_0x231de1]]);}}return UserDescriptor['prototype']['attributes']=$util['emptyArray'],UserDescriptor['create']=function(properties){return new UserDescriptor(properties);},UserDescriptor['encode']=function(_0x4c3523,writer){if(writer||(writer=$Writer['create']()),null!=_0x4c3523['attributes']&&_0x4c3523['attributes']['length']){for(var _0x196348=0x0;_0x196348<_0x4c3523['attributes']['length'];++_0x196348)$root['KeyValueDescriptor']['encode'](_0x4c3523['attributes'][_0x196348],writer['uint32'](0xa)['fork']())['ldelim']();}return writer;},UserDescriptor['encodeDelimited']=function(_0x4b75c2,writer){return this['encode'](_0x4b75c2,writer)['ldelim']();},UserDescriptor['decode']=function(_0x63d0d8,length){_0x63d0d8 instanceof _0x498bd5||(_0x63d0d8=_0x498bd5['create'](_0x63d0d8));for(var _0x111651=void 0x0===length?_0x63d0d8['len']:_0x63d0d8['pos']+length,_0x4e2471=new $root['UserDescriptor']();_0x63d0d8['pos']<_0x111651;){var tag=_0x63d0d8['uint32']();if(tag>>>0x3==0x1)_0x4e2471['attributes']&&_0x4e2471['attributes']['length']||(_0x4e2471['attributes']=[]),_0x4e2471['attributes']['push']($root['KeyValueDescriptor']['decode'](_0x63d0d8,_0x63d0d8['uint32']()));else _0x63d0d8['skipType'](0x7&tag);}return _0x4e2471;},UserDescriptor['decodeDelimited']=function(_0x39a5a2){return _0x39a5a2 instanceof _0x498bd5||(_0x39a5a2=new _0x498bd5(_0x39a5a2)),this['decode'](_0x39a5a2,_0x39a5a2['uint32']());},UserDescriptor['verify']=function(_0x2ccda8){if('object'!=typeof _0x2ccda8||null===_0x2ccda8)return'object\x20expected';if(null!=_0x2ccda8['attributes']&&_0x2ccda8['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x2ccda8['attributes']))return'attributes:\x20array\x20expected';for(var _0x5c610d=0x0;_0x5c610d<_0x2ccda8['attributes']['length'];++_0x5c610d){var _0x5cec85=$root['KeyValueDescriptor']['verify'](_0x2ccda8['attributes'][_0x5c610d]);if(_0x5cec85)return'attributes.'+_0x5cec85;}}return null;},UserDescriptor['fromObject']=function(object){if(object instanceof $root['UserDescriptor'])return object;var _0x3034f1=new $root['UserDescriptor']();if(object['attributes']){if(!Array['isArray'](object['attributes']))throw TypeError('.UserDescriptor.attributes:\x20array\x20expected');_0x3034f1['attributes']=[];for(var _0x2e74e0=0x0;_0x2e74e0<object['attributes']['length'];++_0x2e74e0){if('object'!=typeof object['attributes'][_0x2e74e0])throw TypeError('.UserDescriptor.attributes:\x20object\x20expected');_0x3034f1['attributes'][_0x2e74e0]=$root['KeyValueDescriptor']['fromObject'](object['attributes'][_0x2e74e0]);}}return _0x3034f1;},UserDescriptor['toObject']=function(_0x495f1f,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['attributes']=[]),_0x495f1f['attributes']&&_0x495f1f['attributes']['length']){object['attributes']=[];for(var _0x1e7a0a=0x0;_0x1e7a0a<_0x495f1f['attributes']['length'];++_0x1e7a0a)object['attributes'][_0x1e7a0a]=$root['KeyValueDescriptor']['toObject'](_0x495f1f['attributes'][_0x1e7a0a],options);}return object;},UserDescriptor['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},UserDescriptor['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/UserDescriptor';},UserDescriptor;}()),$root['GetManyUsersMessage']=(function(){function GetManyUsersMessage(properties){if(this['ids']=[],properties){for(var _0x2fbaa9=Object['keys'](properties),_0x5dce94=0x0;_0x5dce94<_0x2fbaa9['length'];++_0x5dce94)null!=properties[_0x2fbaa9[_0x5dce94]]&&(this[_0x2fbaa9[_0x5dce94]]=properties[_0x2fbaa9[_0x5dce94]]);}}return GetManyUsersMessage['prototype']['ids']=$util['emptyArray'],GetManyUsersMessage['create']=function(properties){return new GetManyUsersMessage(properties);},GetManyUsersMessage['encode']=function(_0x2a5757,writer){if(writer||(writer=$Writer['create']()),null!=_0x2a5757['ids']&&_0x2a5757['ids']['length']){for(var _0x11a379=0x0;_0x11a379<_0x2a5757['ids']['length'];++_0x11a379)writer['uint32'](0xa)['string'](_0x2a5757['ids'][_0x11a379]);}return writer;},GetManyUsersMessage['encodeDelimited']=function(_0x20e74b,writer){return this['encode'](_0x20e74b,writer)['ldelim']();},GetManyUsersMessage['decode']=function(_0x2d314c,length){_0x2d314c instanceof _0x498bd5||(_0x2d314c=_0x498bd5['create'](_0x2d314c));for(var _0x1e6847=void 0x0===length?_0x2d314c['len']:_0x2d314c['pos']+length,_0x23f811=new $root['GetManyUsersMessage']();_0x2d314c['pos']<_0x1e6847;){var tag=_0x2d314c['uint32']();if(tag>>>0x3==0x1)_0x23f811['ids']&&_0x23f811['ids']['length']||(_0x23f811['ids']=[]),_0x23f811['ids']['push'](_0x2d314c['string']());else _0x2d314c['skipType'](0x7&tag);}return _0x23f811;},GetManyUsersMessage['decodeDelimited']=function(_0x389393){return _0x389393 instanceof _0x498bd5||(_0x389393=new _0x498bd5(_0x389393)),this['decode'](_0x389393,_0x389393['uint32']());},GetManyUsersMessage['verify']=function(_0x122f70){if('object'!=typeof _0x122f70||null===_0x122f70)return'object\x20expected';if(null!=_0x122f70['ids']&&_0x122f70['hasOwnProperty']('ids')){if(!Array['isArray'](_0x122f70['ids']))return'ids:\x20array\x20expected';for(var _0x37fa63=0x0;_0x37fa63<_0x122f70['ids']['length'];++_0x37fa63)if(!$util['isString'](_0x122f70['ids'][_0x37fa63]))return'ids:\x20string[]\x20expected';}return null;},GetManyUsersMessage['fromObject']=function(object){if(object instanceof $root['GetManyUsersMessage'])return object;var _0xceaaae=new $root['GetManyUsersMessage']();if(object['ids']){if(!Array['isArray'](object['ids']))throw TypeError('.GetManyUsersMessage.ids:\x20array\x20expected');_0xceaaae['ids']=[];for(var _0x5122eb=0x0;_0x5122eb<object['ids']['length'];++_0x5122eb)_0xceaaae['ids'][_0x5122eb]=String(object['ids'][_0x5122eb]);}return _0xceaaae;},GetManyUsersMessage['toObject']=function(_0xfd1b18,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['ids']=[]),_0xfd1b18['ids']&&_0xfd1b18['ids']['length']){object['ids']=[];for(var _0x4d0752=0x0;_0x4d0752<_0xfd1b18['ids']['length'];++_0x4d0752)object['ids'][_0x4d0752]=_0xfd1b18['ids'][_0x4d0752];}return object;},GetManyUsersMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetManyUsersMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetManyUsersMessage';},GetManyUsersMessage;}()),$root['GetUserMessage']=(function(){function GetUserMessage(properties){if(properties){for(var _0x25367b=Object['keys'](properties),_0x434385=0x0;_0x434385<_0x25367b['length'];++_0x434385)null!=properties[_0x25367b[_0x434385]]&&(this[_0x25367b[_0x434385]]=properties[_0x25367b[_0x434385]]);}}return GetUserMessage['prototype']['id']='',GetUserMessage['create']=function(properties){return new GetUserMessage(properties);},GetUserMessage['encode']=function(_0x26a283,writer){return writer||(writer=$Writer['create']()),null!=_0x26a283['id']&&Object['hasOwnProperty']['call'](_0x26a283,'id')&&writer['uint32'](0xa)['string'](_0x26a283['id']),writer;},GetUserMessage['encodeDelimited']=function(_0x18eddb,writer){return this['encode'](_0x18eddb,writer)['ldelim']();},GetUserMessage['decode']=function(_0x52564b,length){_0x52564b instanceof _0x498bd5||(_0x52564b=_0x498bd5['create'](_0x52564b));for(var _0x5aca23=void 0x0===length?_0x52564b['len']:_0x52564b['pos']+length,_0x4fecd0=new $root['GetUserMessage']();_0x52564b['pos']<_0x5aca23;){var tag=_0x52564b['uint32']();if(tag>>>0x3==0x1)_0x4fecd0['id']=_0x52564b['string']();else _0x52564b['skipType'](0x7&tag);}return _0x4fecd0;},GetUserMessage['decodeDelimited']=function(_0x48d2e9){return _0x48d2e9 instanceof _0x498bd5||(_0x48d2e9=new _0x498bd5(_0x48d2e9)),this['decode'](_0x48d2e9,_0x48d2e9['uint32']());},GetUserMessage['verify']=function(_0xd44655){return'object'!=typeof _0xd44655||null===_0xd44655?'object\x20expected':null!=_0xd44655['id']&&_0xd44655['hasOwnProperty']('id')&&!$util['isString'](_0xd44655['id'])?'id:\x20string\x20expected':null;},GetUserMessage['fromObject']=function(object){if(object instanceof $root['GetUserMessage'])return object;var _0x162e5c=new $root['GetUserMessage']();return null!=object['id']&&(_0x162e5c['id']=String(object['id'])),_0x162e5c;},GetUserMessage['toObject']=function(_0x555e1d,options){options||(options={});var object={};return options['defaults']&&(object['id']=''),null!=_0x555e1d['id']&&_0x555e1d['hasOwnProperty']('id')&&(object['id']=_0x555e1d['id']),object;},GetUserMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetUserMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetUserMessage';},GetUserMessage;}()),$root['GetManyUsersResponse']=(function(){function GetManyUsersResponse(properties){if(this['users']=[],properties){for(var _0x6dcf8f=Object['keys'](properties),_0x59e9d7=0x0;_0x59e9d7<_0x6dcf8f['length'];++_0x59e9d7)null!=properties[_0x6dcf8f[_0x59e9d7]]&&(this[_0x6dcf8f[_0x59e9d7]]=properties[_0x6dcf8f[_0x59e9d7]]);}}return GetManyUsersResponse['prototype']['users']=$util['emptyArray'],GetManyUsersResponse['create']=function(properties){return new GetManyUsersResponse(properties);},GetManyUsersResponse['encode']=function(_0x24daca,writer){if(writer||(writer=$Writer['create']()),null!=_0x24daca['users']&&_0x24daca['users']['length']){for(var _0x5b8980=0x0;_0x5b8980<_0x24daca['users']['length'];++_0x5b8980)$root['UserDescriptor']['encode'](_0x24daca['users'][_0x5b8980],writer['uint32'](0xa)['fork']())['ldelim']();}return writer;},GetManyUsersResponse['encodeDelimited']=function(_0x1942fc,writer){return this['encode'](_0x1942fc,writer)['ldelim']();},GetManyUsersResponse['decode']=function(_0x257b9d,length){_0x257b9d instanceof _0x498bd5||(_0x257b9d=_0x498bd5['create'](_0x257b9d));for(var _0x406f59=void 0x0===length?_0x257b9d['len']:_0x257b9d['pos']+length,_0x5cf508=new $root['GetManyUsersResponse']();_0x257b9d['pos']<_0x406f59;){var tag=_0x257b9d['uint32']();if(tag>>>0x3==0x1)_0x5cf508['users']&&_0x5cf508['users']['length']||(_0x5cf508['users']=[]),_0x5cf508['users']['push']($root['UserDescriptor']['decode'](_0x257b9d,_0x257b9d['uint32']()));else _0x257b9d['skipType'](0x7&tag);}return _0x5cf508;},GetManyUsersResponse['decodeDelimited']=function(_0x34648f){return _0x34648f instanceof _0x498bd5||(_0x34648f=new _0x498bd5(_0x34648f)),this['decode'](_0x34648f,_0x34648f['uint32']());},GetManyUsersResponse['verify']=function(_0x2aab3b){if('object'!=typeof _0x2aab3b||null===_0x2aab3b)return'object\x20expected';if(null!=_0x2aab3b['users']&&_0x2aab3b['hasOwnProperty']('users')){if(!Array['isArray'](_0x2aab3b['users']))return'users:\x20array\x20expected';for(var _0x2b975f=0x0;_0x2b975f<_0x2aab3b['users']['length'];++_0x2b975f){var _0x356676=$root['UserDescriptor']['verify'](_0x2aab3b['users'][_0x2b975f]);if(_0x356676)return'users.'+_0x356676;}}return null;},GetManyUsersResponse['fromObject']=function(object){if(object instanceof $root['GetManyUsersResponse'])return object;var _0xb962ce=new $root['GetManyUsersResponse']();if(object['users']){if(!Array['isArray'](object['users']))throw TypeError('.GetManyUsersResponse.users:\x20array\x20expected');_0xb962ce['users']=[];for(var _0x566ede=0x0;_0x566ede<object['users']['length'];++_0x566ede){if('object'!=typeof object['users'][_0x566ede])throw TypeError('.GetManyUsersResponse.users:\x20object\x20expected');_0xb962ce['users'][_0x566ede]=$root['UserDescriptor']['fromObject'](object['users'][_0x566ede]);}}return _0xb962ce;},GetManyUsersResponse['toObject']=function(_0xdd73ec,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['users']=[]),_0xdd73ec['users']&&_0xdd73ec['users']['length']){object['users']=[];for(var _0x3f5bd8=0x0;_0x3f5bd8<_0xdd73ec['users']['length'];++_0x3f5bd8)object['users'][_0x3f5bd8]=$root['UserDescriptor']['toObject'](_0xdd73ec['users'][_0x3f5bd8],options);}return object;},GetManyUsersResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetManyUsersResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetManyUsersResponse';},GetManyUsersResponse;}()),$root['GetUserResponse']=(function(){function GetUserResponse(properties){if(this['attributes']=[],properties){for(var _0x9872f5=Object['keys'](properties),_0x2bef24=0x0;_0x2bef24<_0x9872f5['length'];++_0x2bef24)null!=properties[_0x9872f5[_0x2bef24]]&&(this[_0x9872f5[_0x2bef24]]=properties[_0x9872f5[_0x2bef24]]);}}return GetUserResponse['prototype']['attributes']=$util['emptyArray'],GetUserResponse['create']=function(properties){return new GetUserResponse(properties);},GetUserResponse['encode']=function(_0x220c9a,writer){if(writer||(writer=$Writer['create']()),null!=_0x220c9a['attributes']&&_0x220c9a['attributes']['length']){for(var _0x2ee2fb=0x0;_0x2ee2fb<_0x220c9a['attributes']['length'];++_0x2ee2fb)$root['KeyValueDescriptor']['encode'](_0x220c9a['attributes'][_0x2ee2fb],writer['uint32'](0xa)['fork']())['ldelim']();}return writer;},GetUserResponse['encodeDelimited']=function(_0x37a17a,writer){return this['encode'](_0x37a17a,writer)['ldelim']();},GetUserResponse['decode']=function(_0x4da2af,length){_0x4da2af instanceof _0x498bd5||(_0x4da2af=_0x498bd5['create'](_0x4da2af));for(var _0x36ed7f=void 0x0===length?_0x4da2af['len']:_0x4da2af['pos']+length,_0x200462=new $root['GetUserResponse']();_0x4da2af['pos']<_0x36ed7f;){var tag=_0x4da2af['uint32']();if(tag>>>0x3==0x1)_0x200462['attributes']&&_0x200462['attributes']['length']||(_0x200462['attributes']=[]),_0x200462['attributes']['push']($root['KeyValueDescriptor']['decode'](_0x4da2af,_0x4da2af['uint32']()));else _0x4da2af['skipType'](0x7&tag);}return _0x200462;},GetUserResponse['decodeDelimited']=function(_0x5042d6){return _0x5042d6 instanceof _0x498bd5||(_0x5042d6=new _0x498bd5(_0x5042d6)),this['decode'](_0x5042d6,_0x5042d6['uint32']());},GetUserResponse['verify']=function(_0x4f3d71){if('object'!=typeof _0x4f3d71||null===_0x4f3d71)return'object\x20expected';if(null!=_0x4f3d71['attributes']&&_0x4f3d71['hasOwnProperty']('attributes')){if(!Array['isArray'](_0x4f3d71['attributes']))return'attributes:\x20array\x20expected';for(var _0x11137d=0x0;_0x11137d<_0x4f3d71['attributes']['length'];++_0x11137d){var _0x37a375=$root['KeyValueDescriptor']['verify'](_0x4f3d71['attributes'][_0x11137d]);if(_0x37a375)return'attributes.'+_0x37a375;}}return null;},GetUserResponse['fromObject']=function(object){if(object instanceof $root['GetUserResponse'])return object;var _0x2b8ed4=new $root['GetUserResponse']();if(object['attributes']){if(!Array['isArray'](object['attributes']))throw TypeError('.GetUserResponse.attributes:\x20array\x20expected');_0x2b8ed4['attributes']=[];for(var _0x17f6e2=0x0;_0x17f6e2<object['attributes']['length'];++_0x17f6e2){if('object'!=typeof object['attributes'][_0x17f6e2])throw TypeError('.GetUserResponse.attributes:\x20object\x20expected');_0x2b8ed4['attributes'][_0x17f6e2]=$root['KeyValueDescriptor']['fromObject'](object['attributes'][_0x17f6e2]);}}return _0x2b8ed4;},GetUserResponse['toObject']=function(_0xf0a8e6,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['attributes']=[]),_0xf0a8e6['attributes']&&_0xf0a8e6['attributes']['length']){object['attributes']=[];for(var _0x24db30=0x0;_0x24db30<_0xf0a8e6['attributes']['length'];++_0x24db30)object['attributes'][_0x24db30]=$root['KeyValueDescriptor']['toObject'](_0xf0a8e6['attributes'][_0x24db30],options);}return object;},GetUserResponse['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},GetUserResponse['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/GetUserResponse';},GetUserResponse;}()),$root['ChannelMessage']=(function(){function _0xd05307(properties){if(properties){for(var _0x33dfce=Object['keys'](properties),_0x15089d=0x0;_0x15089d<_0x33dfce['length'];++_0x15089d)null!=properties[_0x33dfce[_0x15089d]]&&(this[_0x33dfce[_0x15089d]]=properties[_0x33dfce[_0x15089d]]);}}return _0xd05307['prototype']['type']=0x0,_0xd05307['prototype']['socketId']='',_0xd05307['prototype']['data']=$util['newBuffer']([]),_0xd05307['create']=function(properties){return new _0xd05307(properties);},_0xd05307['encode']=function(_0x4b1992,writer){return writer||(writer=$Writer['create']()),null!=_0x4b1992['type']&&Object['hasOwnProperty']['call'](_0x4b1992,'type')&&writer['uint32'](0x8)['uint32'](_0x4b1992['type']),null!=_0x4b1992['socketId']&&Object['hasOwnProperty']['call'](_0x4b1992,'socketId')&&writer['uint32'](0x12)['string'](_0x4b1992['socketId']),null!=_0x4b1992['data']&&Object['hasOwnProperty']['call'](_0x4b1992,'data')&&writer['uint32'](0x1a)['bytes'](_0x4b1992['data']),writer;},_0xd05307['encodeDelimited']=function(_0x4e5cb9,writer){return this['encode'](_0x4e5cb9,writer)['ldelim']();},_0xd05307['decode']=function(_0x541579,length){_0x541579 instanceof _0x498bd5||(_0x541579=_0x498bd5['create'](_0x541579));for(var _0x288ba6=void 0x0===length?_0x541579['len']:_0x541579['pos']+length,_0xcc0680=new $root['ChannelMessage']();_0x541579['pos']<_0x288ba6;){var tag=_0x541579['uint32']();switch(tag>>>0x3){case 0x1:_0xcc0680['type']=_0x541579['uint32']();break;case 0x2:_0xcc0680['socketId']=_0x541579['string']();break;case 0x3:_0xcc0680['data']=_0x541579['bytes']();break;default:_0x541579['skipType'](0x7&tag);}}return _0xcc0680;},_0xd05307['decodeDelimited']=function(_0x4916d5){return _0x4916d5 instanceof _0x498bd5||(_0x4916d5=new _0x498bd5(_0x4916d5)),this['decode'](_0x4916d5,_0x4916d5['uint32']());},_0xd05307['verify']=function(_0x17cafa){return'object'!=typeof _0x17cafa||null===_0x17cafa?'object\x20expected':null!=_0x17cafa['type']&&_0x17cafa['hasOwnProperty']('type')&&!$util['isInteger'](_0x17cafa['type'])?'type:\x20integer\x20expected':null!=_0x17cafa['socketId']&&_0x17cafa['hasOwnProperty']('socketId')&&!$util['isString'](_0x17cafa['socketId'])?'socketId:\x20string\x20expected':null!=_0x17cafa['data']&&_0x17cafa['hasOwnProperty']('data')&&!(_0x17cafa['data']&&'number'==typeof _0x17cafa['data']['length']||$util['isString'](_0x17cafa['data']))?'data:\x20buffer\x20expected':null;},_0xd05307['fromObject']=function(object){if(object instanceof $root['ChannelMessage'])return object;var _0xc429c9=new $root['ChannelMessage']();return null!=object['type']&&(_0xc429c9['type']=object['type']>>>0x0),null!=object['socketId']&&(_0xc429c9['socketId']=String(object['socketId'])),null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0xc429c9['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0xc429c9['data']=object['data'])),_0xc429c9;},_0xd05307['toObject']=function(_0x46913f,options){options||(options={});var object={};return options['defaults']&&(object['type']=0x0,object['socketId']='',options['bytes']===String?object['data']='':(object['data']=[],options['bytes']!==Array&&(object['data']=$util['newBuffer'](object['data'])))),null!=_0x46913f['type']&&_0x46913f['hasOwnProperty']('type')&&(object['type']=_0x46913f['type']),null!=_0x46913f['socketId']&&_0x46913f['hasOwnProperty']('socketId')&&(object['socketId']=_0x46913f['socketId']),null!=_0x46913f['data']&&_0x46913f['hasOwnProperty']('data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x46913f['data'],0x0,_0x46913f['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x46913f['data']):_0x46913f['data']),object;},_0xd05307['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},_0xd05307['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ChannelMessage';},_0xd05307;}()),$root['BytesBytesPacketDataMessage']=(function(){function BytesBytesPacketDataMessage(properties){if(properties){for(var _0x47c549=Object['keys'](properties),_0x4c4a93=0x0;_0x4c4a93<_0x47c549['length'];++_0x4c4a93)null!=properties[_0x47c549[_0x4c4a93]]&&(this[_0x47c549[_0x4c4a93]]=properties[_0x47c549[_0x4c4a93]]);}}return BytesBytesPacketDataMessage['prototype']['data']=$util['newBuffer']([]),BytesBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),BytesBytesPacketDataMessage['create']=function(properties){return new BytesBytesPacketDataMessage(properties);},BytesBytesPacketDataMessage['encode']=function(_0x4d05a2,writer){return writer||(writer=$Writer['create']()),null!=_0x4d05a2['data']&&Object['hasOwnProperty']['call'](_0x4d05a2,'data')&&writer['uint32'](0xa)['bytes'](_0x4d05a2['data']),null!=_0x4d05a2['data1']&&Object['hasOwnProperty']['call'](_0x4d05a2,'data1')&&writer['uint32'](0x12)['bytes'](_0x4d05a2['data1']),writer;},BytesBytesPacketDataMessage['encodeDelimited']=function(_0x2cfc19,writer){return this['encode'](_0x2cfc19,writer)['ldelim']();},BytesBytesPacketDataMessage['decode']=function(_0x392108,length){_0x392108 instanceof _0x498bd5||(_0x392108=_0x498bd5['create'](_0x392108));for(var _0xb3972d=void 0x0===length?_0x392108['len']:_0x392108['pos']+length,_0x59e2b5=new $root['BytesBytesPacketDataMessage']();_0x392108['pos']<_0xb3972d;){var tag=_0x392108['uint32']();switch(tag>>>0x3){case 0x1:_0x59e2b5['data']=_0x392108['bytes']();break;case 0x2:_0x59e2b5['data1']=_0x392108['bytes']();break;default:_0x392108['skipType'](0x7&tag);}}return _0x59e2b5;},BytesBytesPacketDataMessage['decodeDelimited']=function(_0x138562){return _0x138562 instanceof _0x498bd5||(_0x138562=new _0x498bd5(_0x138562)),this['decode'](_0x138562,_0x138562['uint32']());},BytesBytesPacketDataMessage['verify']=function(_0xe21971){return'object'!=typeof _0xe21971||null===_0xe21971?'object\x20expected':null!=_0xe21971['data']&&_0xe21971['hasOwnProperty']('data')&&!(_0xe21971['data']&&'number'==typeof _0xe21971['data']['length']||$util['isString'](_0xe21971['data']))?'data:\x20buffer\x20expected':null!=_0xe21971['data1']&&_0xe21971['hasOwnProperty']('data1')&&!(_0xe21971['data1']&&'number'==typeof _0xe21971['data1']['length']||$util['isString'](_0xe21971['data1']))?'data1:\x20buffer\x20expected':null;},BytesBytesPacketDataMessage['fromObject']=function(object){if(object instanceof $root['BytesBytesPacketDataMessage'])return object;var _0x2922d1=new $root['BytesBytesPacketDataMessage']();return null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x2922d1['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x2922d1['data']=object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x2922d1['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x2922d1['data1']=object['data1'])),_0x2922d1;},BytesBytesPacketDataMessage['toObject']=function(_0x17909e,options){options||(options={});var object={};return options['defaults']&&(options['bytes']===String?object['data']='':(object['data']=[],options['bytes']!==Array&&(object['data']=$util['newBuffer'](object['data']))),options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x17909e['data']&&_0x17909e['hasOwnProperty']('data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x17909e['data'],0x0,_0x17909e['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x17909e['data']):_0x17909e['data']),null!=_0x17909e['data1']&&_0x17909e['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x17909e['data1'],0x0,_0x17909e['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x17909e['data1']):_0x17909e['data1']),object;},BytesBytesPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},BytesBytesPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/BytesBytesPacketDataMessage';},BytesBytesPacketDataMessage;}()),$root['NumberBytesPacketDataMessage']=(function(){function NumberBytesPacketDataMessage(properties){if(properties){for(var _0x13fa5f=Object['keys'](properties),_0x154c00=0x0;_0x154c00<_0x13fa5f['length'];++_0x154c00)null!=properties[_0x13fa5f[_0x154c00]]&&(this[_0x13fa5f[_0x154c00]]=properties[_0x13fa5f[_0x154c00]]);}}return NumberBytesPacketDataMessage['prototype']['data']=0x0,NumberBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),NumberBytesPacketDataMessage['create']=function(properties){return new NumberBytesPacketDataMessage(properties);},NumberBytesPacketDataMessage['encode']=function(_0x53c92a,writer){return writer||(writer=$Writer['create']()),null!=_0x53c92a['data']&&Object['hasOwnProperty']['call'](_0x53c92a,'data')&&writer['uint32'](0x8)['uint32'](_0x53c92a['data']),null!=_0x53c92a['data1']&&Object['hasOwnProperty']['call'](_0x53c92a,'data1')&&writer['uint32'](0x12)['bytes'](_0x53c92a['data1']),writer;},NumberBytesPacketDataMessage['encodeDelimited']=function(_0x10b425,writer){return this['encode'](_0x10b425,writer)['ldelim']();},NumberBytesPacketDataMessage['decode']=function(_0x4e6212,length){_0x4e6212 instanceof _0x498bd5||(_0x4e6212=_0x498bd5['create'](_0x4e6212));for(var _0x542a7c=void 0x0===length?_0x4e6212['len']:_0x4e6212['pos']+length,_0x55095c=new $root['NumberBytesPacketDataMessage']();_0x4e6212['pos']<_0x542a7c;){var tag=_0x4e6212['uint32']();switch(tag>>>0x3){case 0x1:_0x55095c['data']=_0x4e6212['uint32']();break;case 0x2:_0x55095c['data1']=_0x4e6212['bytes']();break;default:_0x4e6212['skipType'](0x7&tag);}}return _0x55095c;},NumberBytesPacketDataMessage['decodeDelimited']=function(_0x300aab){return _0x300aab instanceof _0x498bd5||(_0x300aab=new _0x498bd5(_0x300aab)),this['decode'](_0x300aab,_0x300aab['uint32']());},NumberBytesPacketDataMessage['verify']=function(_0x1facff){return'object'!=typeof _0x1facff||null===_0x1facff?'object\x20expected':null!=_0x1facff['data']&&_0x1facff['hasOwnProperty']('data')&&!$util['isInteger'](_0x1facff['data'])?'data:\x20integer\x20expected':null!=_0x1facff['data1']&&_0x1facff['hasOwnProperty']('data1')&&!(_0x1facff['data1']&&'number'==typeof _0x1facff['data1']['length']||$util['isString'](_0x1facff['data1']))?'data1:\x20buffer\x20expected':null;},NumberBytesPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberBytesPacketDataMessage'])return object;var _0x500368=new $root['NumberBytesPacketDataMessage']();return null!=object['data']&&(_0x500368['data']=object['data']>>>0x0),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x500368['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x500368['data1']=object['data1'])),_0x500368;},NumberBytesPacketDataMessage['toObject']=function(_0x378607,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x378607['data']&&_0x378607['hasOwnProperty']('data')&&(object['data']=_0x378607['data']),null!=_0x378607['data1']&&_0x378607['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x378607['data1'],0x0,_0x378607['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x378607['data1']):_0x378607['data1']),object;},NumberBytesPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberBytesPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberBytesPacketDataMessage';},NumberBytesPacketDataMessage;}()),$root['NumberNumberPacketDataMessage']=(function(){function NumberNumberPacketDataMessage(properties){if(properties){for(var _0x4455d8=Object['keys'](properties),_0x25f4d4=0x0;_0x25f4d4<_0x4455d8['length'];++_0x25f4d4)null!=properties[_0x4455d8[_0x25f4d4]]&&(this[_0x4455d8[_0x25f4d4]]=properties[_0x4455d8[_0x25f4d4]]);}}return NumberNumberPacketDataMessage['prototype']['data']=0x0,NumberNumberPacketDataMessage['prototype']['data1']=0x0,NumberNumberPacketDataMessage['create']=function(properties){return new NumberNumberPacketDataMessage(properties);},NumberNumberPacketDataMessage['encode']=function(_0x498de1,writer){return writer||(writer=$Writer['create']()),null!=_0x498de1['data']&&Object['hasOwnProperty']['call'](_0x498de1,'data')&&writer['uint32'](0x8)['uint32'](_0x498de1['data']),null!=_0x498de1['data1']&&Object['hasOwnProperty']['call'](_0x498de1,'data1')&&writer['uint32'](0x10)['uint32'](_0x498de1['data1']),writer;},NumberNumberPacketDataMessage['encodeDelimited']=function(_0x54dc8e,writer){return this['encode'](_0x54dc8e,writer)['ldelim']();},NumberNumberPacketDataMessage['decode']=function(_0x1e57db,length){_0x1e57db instanceof _0x498bd5||(_0x1e57db=_0x498bd5['create'](_0x1e57db));for(var _0x336a02=void 0x0===length?_0x1e57db['len']:_0x1e57db['pos']+length,_0x23448d=new $root['NumberNumberPacketDataMessage']();_0x1e57db['pos']<_0x336a02;){var tag=_0x1e57db['uint32']();switch(tag>>>0x3){case 0x1:_0x23448d['data']=_0x1e57db['uint32']();break;case 0x2:_0x23448d['data1']=_0x1e57db['uint32']();break;default:_0x1e57db['skipType'](0x7&tag);}}return _0x23448d;},NumberNumberPacketDataMessage['decodeDelimited']=function(_0x894cc2){return _0x894cc2 instanceof _0x498bd5||(_0x894cc2=new _0x498bd5(_0x894cc2)),this['decode'](_0x894cc2,_0x894cc2['uint32']());},NumberNumberPacketDataMessage['verify']=function(_0x50f774){return'object'!=typeof _0x50f774||null===_0x50f774?'object\x20expected':null!=_0x50f774['data']&&_0x50f774['hasOwnProperty']('data')&&!$util['isInteger'](_0x50f774['data'])?'data:\x20integer\x20expected':null!=_0x50f774['data1']&&_0x50f774['hasOwnProperty']('data1')&&!$util['isInteger'](_0x50f774['data1'])?'data1:\x20integer\x20expected':null;},NumberNumberPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberNumberPacketDataMessage'])return object;var _0x46c185=new $root['NumberNumberPacketDataMessage']();return null!=object['data']&&(_0x46c185['data']=object['data']>>>0x0),null!=object['data1']&&(_0x46c185['data1']=object['data1']>>>0x0),_0x46c185;},NumberNumberPacketDataMessage['toObject']=function(_0x145c53,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,object['data1']=0x0),null!=_0x145c53['data']&&_0x145c53['hasOwnProperty']('data')&&(object['data']=_0x145c53['data']),null!=_0x145c53['data1']&&_0x145c53['hasOwnProperty']('data1')&&(object['data1']=_0x145c53['data1']),object;},NumberNumberPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberNumberPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberNumberPacketDataMessage';},NumberNumberPacketDataMessage;}()),$root['NumberObjectPacketDataMessage']=(function(){function NumberObjectPacketDataMessage(properties){if(properties){for(var _0x282f8f=Object['keys'](properties),_0x287dcb=0x0;_0x287dcb<_0x282f8f['length'];++_0x287dcb)null!=properties[_0x282f8f[_0x287dcb]]&&(this[_0x282f8f[_0x287dcb]]=properties[_0x282f8f[_0x287dcb]]);}}return NumberObjectPacketDataMessage['prototype']['data']=0x0,NumberObjectPacketDataMessage['prototype']['data1']='',NumberObjectPacketDataMessage['create']=function(properties){return new NumberObjectPacketDataMessage(properties);},NumberObjectPacketDataMessage['encode']=function(_0x5a6c19,writer){return writer||(writer=$Writer['create']()),null!=_0x5a6c19['data']&&Object['hasOwnProperty']['call'](_0x5a6c19,'data')&&writer['uint32'](0x8)['uint32'](_0x5a6c19['data']),null!=_0x5a6c19['data1']&&Object['hasOwnProperty']['call'](_0x5a6c19,'data1')&&writer['uint32'](0x12)['string'](_0x5a6c19['data1']),writer;},NumberObjectPacketDataMessage['encodeDelimited']=function(_0x5de7ef,writer){return this['encode'](_0x5de7ef,writer)['ldelim']();},NumberObjectPacketDataMessage['decode']=function(_0x36ed2e,length){_0x36ed2e instanceof _0x498bd5||(_0x36ed2e=_0x498bd5['create'](_0x36ed2e));for(var _0xcc772d=void 0x0===length?_0x36ed2e['len']:_0x36ed2e['pos']+length,_0x5b04ab=new $root['NumberObjectPacketDataMessage']();_0x36ed2e['pos']<_0xcc772d;){var tag=_0x36ed2e['uint32']();switch(tag>>>0x3){case 0x1:_0x5b04ab['data']=_0x36ed2e['uint32']();break;case 0x2:_0x5b04ab['data1']=_0x36ed2e['string']();break;default:_0x36ed2e['skipType'](0x7&tag);}}return _0x5b04ab;},NumberObjectPacketDataMessage['decodeDelimited']=function(_0x250c41){return _0x250c41 instanceof _0x498bd5||(_0x250c41=new _0x498bd5(_0x250c41)),this['decode'](_0x250c41,_0x250c41['uint32']());},NumberObjectPacketDataMessage['verify']=function(_0x2a5adf){return'object'!=typeof _0x2a5adf||null===_0x2a5adf?'object\x20expected':null!=_0x2a5adf['data']&&_0x2a5adf['hasOwnProperty']('data')&&!$util['isInteger'](_0x2a5adf['data'])?'data:\x20integer\x20expected':null!=_0x2a5adf['data1']&&_0x2a5adf['hasOwnProperty']('data1')&&!$util['isString'](_0x2a5adf['data1'])?'data1:\x20string\x20expected':null;},NumberObjectPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberObjectPacketDataMessage'])return object;var _0x4ce69e=new $root['NumberObjectPacketDataMessage']();return null!=object['data']&&(_0x4ce69e['data']=object['data']>>>0x0),null!=object['data1']&&(_0x4ce69e['data1']=String(object['data1'])),_0x4ce69e;},NumberObjectPacketDataMessage['toObject']=function(_0x5883e5,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,object['data1']=''),null!=_0x5883e5['data']&&_0x5883e5['hasOwnProperty']('data')&&(object['data']=_0x5883e5['data']),null!=_0x5883e5['data1']&&_0x5883e5['hasOwnProperty']('data1')&&(object['data1']=_0x5883e5['data1']),object;},NumberObjectPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberObjectPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberObjectPacketDataMessage';},NumberObjectPacketDataMessage;}()),$root['NumberStringPacketDataMessage']=(function(){function NumberStringPacketDataMessage(properties){if(properties){for(var _0x5241c9=Object['keys'](properties),_0x389b1d=0x0;_0x389b1d<_0x5241c9['length'];++_0x389b1d)null!=properties[_0x5241c9[_0x389b1d]]&&(this[_0x5241c9[_0x389b1d]]=properties[_0x5241c9[_0x389b1d]]);}}return NumberStringPacketDataMessage['prototype']['data']=0x0,NumberStringPacketDataMessage['prototype']['data1']='',NumberStringPacketDataMessage['create']=function(properties){return new NumberStringPacketDataMessage(properties);},NumberStringPacketDataMessage['encode']=function(_0x623d8f,writer){return writer||(writer=$Writer['create']()),null!=_0x623d8f['data']&&Object['hasOwnProperty']['call'](_0x623d8f,'data')&&writer['uint32'](0x8)['uint32'](_0x623d8f['data']),null!=_0x623d8f['data1']&&Object['hasOwnProperty']['call'](_0x623d8f,'data1')&&writer['uint32'](0x12)['string'](_0x623d8f['data1']),writer;},NumberStringPacketDataMessage['encodeDelimited']=function(_0x5af412,writer){return this['encode'](_0x5af412,writer)['ldelim']();},NumberStringPacketDataMessage['decode']=function(_0x45b1ea,length){_0x45b1ea instanceof _0x498bd5||(_0x45b1ea=_0x498bd5['create'](_0x45b1ea));for(var _0x29889a=void 0x0===length?_0x45b1ea['len']:_0x45b1ea['pos']+length,_0x34b3f4=new $root['NumberStringPacketDataMessage']();_0x45b1ea['pos']<_0x29889a;){var tag=_0x45b1ea['uint32']();switch(tag>>>0x3){case 0x1:_0x34b3f4['data']=_0x45b1ea['uint32']();break;case 0x2:_0x34b3f4['data1']=_0x45b1ea['string']();break;default:_0x45b1ea['skipType'](0x7&tag);}}return _0x34b3f4;},NumberStringPacketDataMessage['decodeDelimited']=function(_0x4ab020){return _0x4ab020 instanceof _0x498bd5||(_0x4ab020=new _0x498bd5(_0x4ab020)),this['decode'](_0x4ab020,_0x4ab020['uint32']());},NumberStringPacketDataMessage['verify']=function(_0x4d3e10){return'object'!=typeof _0x4d3e10||null===_0x4d3e10?'object\x20expected':null!=_0x4d3e10['data']&&_0x4d3e10['hasOwnProperty']('data')&&!$util['isInteger'](_0x4d3e10['data'])?'data:\x20integer\x20expected':null!=_0x4d3e10['data1']&&_0x4d3e10['hasOwnProperty']('data1')&&!$util['isString'](_0x4d3e10['data1'])?'data1:\x20string\x20expected':null;},NumberStringPacketDataMessage['fromObject']=function(object){if(object instanceof $root['NumberStringPacketDataMessage'])return object;var _0x513037=new $root['NumberStringPacketDataMessage']();return null!=object['data']&&(_0x513037['data']=object['data']>>>0x0),null!=object['data1']&&(_0x513037['data1']=String(object['data1'])),_0x513037;},NumberStringPacketDataMessage['toObject']=function(_0x593805,options){options||(options={});var object={};return options['defaults']&&(object['data']=0x0,object['data1']=''),null!=_0x593805['data']&&_0x593805['hasOwnProperty']('data')&&(object['data']=_0x593805['data']),null!=_0x593805['data1']&&_0x593805['hasOwnProperty']('data1')&&(object['data1']=_0x593805['data1']),object;},NumberStringPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},NumberStringPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/NumberStringPacketDataMessage';},NumberStringPacketDataMessage;}()),$root['ObjectBufferPacketDataMessage']=(function(){function ObjectBufferPacketDataMessage(properties){if(properties){for(var _0x3fb9bf=Object['keys'](properties),_0x47eb36=0x0;_0x47eb36<_0x3fb9bf['length'];++_0x47eb36)null!=properties[_0x3fb9bf[_0x47eb36]]&&(this[_0x3fb9bf[_0x47eb36]]=properties[_0x3fb9bf[_0x47eb36]]);}}return ObjectBufferPacketDataMessage['prototype']['data']='',ObjectBufferPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),ObjectBufferPacketDataMessage['create']=function(properties){return new ObjectBufferPacketDataMessage(properties);},ObjectBufferPacketDataMessage['encode']=function(_0x199c73,writer){return writer||(writer=$Writer['create']()),null!=_0x199c73['data']&&Object['hasOwnProperty']['call'](_0x199c73,'data')&&writer['uint32'](0xa)['string'](_0x199c73['data']),null!=_0x199c73['data1']&&Object['hasOwnProperty']['call'](_0x199c73,'data1')&&writer['uint32'](0x12)['bytes'](_0x199c73['data1']),writer;},ObjectBufferPacketDataMessage['encodeDelimited']=function(_0xf1b012,writer){return this['encode'](_0xf1b012,writer)['ldelim']();},ObjectBufferPacketDataMessage['decode']=function(_0xc4a5c4,length){_0xc4a5c4 instanceof _0x498bd5||(_0xc4a5c4=_0x498bd5['create'](_0xc4a5c4));for(var _0x4a3304=void 0x0===length?_0xc4a5c4['len']:_0xc4a5c4['pos']+length,_0x488aa2=new $root['ObjectBufferPacketDataMessage']();_0xc4a5c4['pos']<_0x4a3304;){var tag=_0xc4a5c4['uint32']();switch(tag>>>0x3){case 0x1:_0x488aa2['data']=_0xc4a5c4['string']();break;case 0x2:_0x488aa2['data1']=_0xc4a5c4['bytes']();break;default:_0xc4a5c4['skipType'](0x7&tag);}}return _0x488aa2;},ObjectBufferPacketDataMessage['decodeDelimited']=function(_0x123891){return _0x123891 instanceof _0x498bd5||(_0x123891=new _0x498bd5(_0x123891)),this['decode'](_0x123891,_0x123891['uint32']());},ObjectBufferPacketDataMessage['verify']=function(_0x54d746){return'object'!=typeof _0x54d746||null===_0x54d746?'object\x20expected':null!=_0x54d746['data']&&_0x54d746['hasOwnProperty']('data')&&!$util['isString'](_0x54d746['data'])?'data:\x20string\x20expected':null!=_0x54d746['data1']&&_0x54d746['hasOwnProperty']('data1')&&!(_0x54d746['data1']&&'number'==typeof _0x54d746['data1']['length']||$util['isString'](_0x54d746['data1']))?'data1:\x20buffer\x20expected':null;},ObjectBufferPacketDataMessage['fromObject']=function(object){if(object instanceof $root['ObjectBufferPacketDataMessage'])return object;var _0x4fe597=new $root['ObjectBufferPacketDataMessage']();return null!=object['data']&&(_0x4fe597['data']=String(object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x4fe597['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x4fe597['data1']=object['data1'])),_0x4fe597;},ObjectBufferPacketDataMessage['toObject']=function(_0x478f6f,options){options||(options={});var object={};return options['defaults']&&(object['data']='',options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x478f6f['data']&&_0x478f6f['hasOwnProperty']('data')&&(object['data']=_0x478f6f['data']),null!=_0x478f6f['data1']&&_0x478f6f['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x478f6f['data1'],0x0,_0x478f6f['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x478f6f['data1']):_0x478f6f['data1']),object;},ObjectBufferPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},ObjectBufferPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ObjectBufferPacketDataMessage';},ObjectBufferPacketDataMessage;}()),$root['ObjectObjectPacketDataMessage']=(function(){function ObjectObjectPacketDataMessage(properties){if(properties){for(var _0x384404=Object['keys'](properties),_0x36ff0d=0x0;_0x36ff0d<_0x384404['length'];++_0x36ff0d)null!=properties[_0x384404[_0x36ff0d]]&&(this[_0x384404[_0x36ff0d]]=properties[_0x384404[_0x36ff0d]]);}}return ObjectObjectPacketDataMessage['prototype']['data']='',ObjectObjectPacketDataMessage['prototype']['data1']='',ObjectObjectPacketDataMessage['create']=function(properties){return new ObjectObjectPacketDataMessage(properties);},ObjectObjectPacketDataMessage['encode']=function(_0x1ee7b9,writer){return writer||(writer=$Writer['create']()),null!=_0x1ee7b9['data']&&Object['hasOwnProperty']['call'](_0x1ee7b9,'data')&&writer['uint32'](0xa)['string'](_0x1ee7b9['data']),null!=_0x1ee7b9['data1']&&Object['hasOwnProperty']['call'](_0x1ee7b9,'data1')&&writer['uint32'](0x12)['string'](_0x1ee7b9['data1']),writer;},ObjectObjectPacketDataMessage['encodeDelimited']=function(_0x335790,writer){return this['encode'](_0x335790,writer)['ldelim']();},ObjectObjectPacketDataMessage['decode']=function(_0x5202c7,length){_0x5202c7 instanceof _0x498bd5||(_0x5202c7=_0x498bd5['create'](_0x5202c7));for(var _0x4070ae=void 0x0===length?_0x5202c7['len']:_0x5202c7['pos']+length,_0x426d47=new $root['ObjectObjectPacketDataMessage']();_0x5202c7['pos']<_0x4070ae;){var tag=_0x5202c7['uint32']();switch(tag>>>0x3){case 0x1:_0x426d47['data']=_0x5202c7['string']();break;case 0x2:_0x426d47['data1']=_0x5202c7['string']();break;default:_0x5202c7['skipType'](0x7&tag);}}return _0x426d47;},ObjectObjectPacketDataMessage['decodeDelimited']=function(_0x3e48c1){return _0x3e48c1 instanceof _0x498bd5||(_0x3e48c1=new _0x498bd5(_0x3e48c1)),this['decode'](_0x3e48c1,_0x3e48c1['uint32']());},ObjectObjectPacketDataMessage['verify']=function(_0x447d2c){return'object'!=typeof _0x447d2c||null===_0x447d2c?'object\x20expected':null!=_0x447d2c['data']&&_0x447d2c['hasOwnProperty']('data')&&!$util['isString'](_0x447d2c['data'])?'data:\x20string\x20expected':null!=_0x447d2c['data1']&&_0x447d2c['hasOwnProperty']('data1')&&!$util['isString'](_0x447d2c['data1'])?'data1:\x20string\x20expected':null;},ObjectObjectPacketDataMessage['fromObject']=function(object){if(object instanceof $root['ObjectObjectPacketDataMessage'])return object;var _0x5c3ed1=new $root['ObjectObjectPacketDataMessage']();return null!=object['data']&&(_0x5c3ed1['data']=String(object['data'])),null!=object['data1']&&(_0x5c3ed1['data1']=String(object['data1'])),_0x5c3ed1;},ObjectObjectPacketDataMessage['toObject']=function(_0x4332b3,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x4332b3['data']&&_0x4332b3['hasOwnProperty']('data')&&(object['data']=_0x4332b3['data']),null!=_0x4332b3['data1']&&_0x4332b3['hasOwnProperty']('data1')&&(object['data1']=_0x4332b3['data1']),object;},ObjectObjectPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},ObjectObjectPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/ObjectObjectPacketDataMessage';},ObjectObjectPacketDataMessage;}()),$root['PacketMessage']=(function(){function PacketMessage(properties){if(properties){for(var _0x283a23=Object['keys'](properties),_0x5996df=0x0;_0x5996df<_0x283a23['length'];++_0x5996df)null!=properties[_0x283a23[_0x5996df]]&&(this[_0x283a23[_0x5996df]]=properties[_0x283a23[_0x5996df]]);}}return PacketMessage['prototype']['type']=0x0,PacketMessage['prototype']['id']=0x0,PacketMessage['prototype']['nsp']='',PacketMessage['prototype']['data']=$util['newBuffer']([]),PacketMessage['prototype']['options']=$util['newBuffer']([]),PacketMessage['create']=function(properties){return new PacketMessage(properties);},PacketMessage['encode']=function(_0x19c079,writer){return writer||(writer=$Writer['create']()),null!=_0x19c079['type']&&Object['hasOwnProperty']['call'](_0x19c079,'type')&&writer['uint32'](0x8)['uint32'](_0x19c079['type']),null!=_0x19c079['id']&&Object['hasOwnProperty']['call'](_0x19c079,'id')&&writer['uint32'](0x10)['uint32'](_0x19c079['id']),null!=_0x19c079['nsp']&&Object['hasOwnProperty']['call'](_0x19c079,'nsp')&&writer['uint32'](0x1a)['string'](_0x19c079['nsp']),null!=_0x19c079['data']&&Object['hasOwnProperty']['call'](_0x19c079,'data')&&writer['uint32'](0x22)['bytes'](_0x19c079['data']),null!=_0x19c079['options']&&Object['hasOwnProperty']['call'](_0x19c079,'options')&&writer['uint32'](0x2a)['bytes'](_0x19c079['options']),writer;},PacketMessage['encodeDelimited']=function(_0x3c5946,writer){return this['encode'](_0x3c5946,writer)['ldelim']();},PacketMessage['decode']=function(_0x53ad76,length){_0x53ad76 instanceof _0x498bd5||(_0x53ad76=_0x498bd5['create'](_0x53ad76));for(var _0x245e7e=void 0x0===length?_0x53ad76['len']:_0x53ad76['pos']+length,_0x2433d8=new $root['PacketMessage']();_0x53ad76['pos']<_0x245e7e;){var tag=_0x53ad76['uint32']();switch(tag>>>0x3){case 0x1:_0x2433d8['type']=_0x53ad76['uint32']();break;case 0x2:_0x2433d8['id']=_0x53ad76['uint32']();break;case 0x3:_0x2433d8['nsp']=_0x53ad76['string']();break;case 0x4:_0x2433d8['data']=_0x53ad76['bytes']();break;case 0x5:_0x2433d8['options']=_0x53ad76['bytes']();break;default:_0x53ad76['skipType'](0x7&tag);}}return _0x2433d8;},PacketMessage['decodeDelimited']=function(_0x4d89f5){return _0x4d89f5 instanceof _0x498bd5||(_0x4d89f5=new _0x498bd5(_0x4d89f5)),this['decode'](_0x4d89f5,_0x4d89f5['uint32']());},PacketMessage['verify']=function(_0x3f5b7b){return'object'!=typeof _0x3f5b7b||null===_0x3f5b7b?'object\x20expected':null!=_0x3f5b7b['type']&&_0x3f5b7b['hasOwnProperty']('type')&&!$util['isInteger'](_0x3f5b7b['type'])?'type:\x20integer\x20expected':null!=_0x3f5b7b['id']&&_0x3f5b7b['hasOwnProperty']('id')&&!$util['isInteger'](_0x3f5b7b['id'])?'id:\x20integer\x20expected':null!=_0x3f5b7b['nsp']&&_0x3f5b7b['hasOwnProperty']('nsp')&&!$util['isString'](_0x3f5b7b['nsp'])?'nsp:\x20string\x20expected':null!=_0x3f5b7b['data']&&_0x3f5b7b['hasOwnProperty']('data')&&!(_0x3f5b7b['data']&&'number'==typeof _0x3f5b7b['data']['length']||$util['isString'](_0x3f5b7b['data']))?'data:\x20buffer\x20expected':null!=_0x3f5b7b['options']&&_0x3f5b7b['hasOwnProperty']('options')&&!(_0x3f5b7b['options']&&'number'==typeof _0x3f5b7b['options']['length']||$util['isString'](_0x3f5b7b['options']))?'options:\x20buffer\x20expected':null;},PacketMessage['fromObject']=function(object){if(object instanceof $root['PacketMessage'])return object;var _0x2f07be=new $root['PacketMessage']();return null!=object['type']&&(_0x2f07be['type']=object['type']>>>0x0),null!=object['id']&&(_0x2f07be['id']=object['id']>>>0x0),null!=object['nsp']&&(_0x2f07be['nsp']=String(object['nsp'])),null!=object['data']&&('string'==typeof object['data']?$util['base64']['decode'](object['data'],_0x2f07be['data']=$util['newBuffer']($util['base64']['length'](object['data'])),0x0):object['data']['length']>=0x0&&(_0x2f07be['data']=object['data'])),null!=object['options']&&('string'==typeof object['options']?$util['base64']['decode'](object['options'],_0x2f07be['options']=$util['newBuffer']($util['base64']['length'](object['options'])),0x0):object['options']['length']>=0x0&&(_0x2f07be['options']=object['options'])),_0x2f07be;},PacketMessage['toObject']=function(_0x3cf9f8,options){options||(options={});var object={};return options['defaults']&&(object['type']=0x0,object['id']=0x0,object['nsp']='',options['bytes']===String?object['data']='':(object['data']=[],options['bytes']!==Array&&(object['data']=$util['newBuffer'](object['data']))),options['bytes']===String?object['options']='':(object['options']=[],options['bytes']!==Array&&(object['options']=$util['newBuffer'](object['options'])))),null!=_0x3cf9f8['type']&&_0x3cf9f8['hasOwnProperty']('type')&&(object['type']=_0x3cf9f8['type']),null!=_0x3cf9f8['id']&&_0x3cf9f8['hasOwnProperty']('id')&&(object['id']=_0x3cf9f8['id']),null!=_0x3cf9f8['nsp']&&_0x3cf9f8['hasOwnProperty']('nsp')&&(object['nsp']=_0x3cf9f8['nsp']),null!=_0x3cf9f8['data']&&_0x3cf9f8['hasOwnProperty']('data')&&(object['data']=options['bytes']===String?$util['base64']['encode'](_0x3cf9f8['data'],0x0,_0x3cf9f8['data']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x3cf9f8['data']):_0x3cf9f8['data']),null!=_0x3cf9f8['options']&&_0x3cf9f8['hasOwnProperty']('options')&&(object['options']=options['bytes']===String?$util['base64']['encode'](_0x3cf9f8['options'],0x0,_0x3cf9f8['options']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x3cf9f8['options']):_0x3cf9f8['options']),object;},PacketMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},PacketMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/PacketMessage';},PacketMessage;}()),$root['PacketOptionsMessage']=(function(){function PacketOptionsMessage(properties){if(this['rooms']=[],this['except']=[],properties){for(var _0x5ce1f0=Object['keys'](properties),_0x53131d=0x0;_0x53131d<_0x5ce1f0['length'];++_0x53131d)null!=properties[_0x5ce1f0[_0x53131d]]&&(this[_0x5ce1f0[_0x53131d]]=properties[_0x5ce1f0[_0x53131d]]);}}return PacketOptionsMessage['prototype']['flags']='',PacketOptionsMessage['prototype']['rooms']=$util['emptyArray'],PacketOptionsMessage['prototype']['except']=$util['emptyArray'],PacketOptionsMessage['create']=function(properties){return new PacketOptionsMessage(properties);},PacketOptionsMessage['encode']=function(_0x28c7ef,writer){if(writer||(writer=$Writer['create']()),null!=_0x28c7ef['flags']&&Object['hasOwnProperty']['call'](_0x28c7ef,'flags')&&writer['uint32'](0xa)['string'](_0x28c7ef['flags']),null!=_0x28c7ef['rooms']&&_0x28c7ef['rooms']['length']){for(var _0x5f3cfb=0x0;_0x5f3cfb<_0x28c7ef['rooms']['length'];++_0x5f3cfb)writer['uint32'](0x12)['string'](_0x28c7ef['rooms'][_0x5f3cfb]);}if(null!=_0x28c7ef['except']&&_0x28c7ef['except']['length']){for(_0x5f3cfb=0x0;_0x5f3cfb<_0x28c7ef['except']['length'];++_0x5f3cfb)writer['uint32'](0x1a)['string'](_0x28c7ef['except'][_0x5f3cfb]);}return writer;},PacketOptionsMessage['encodeDelimited']=function(_0xfee844,writer){return this['encode'](_0xfee844,writer)['ldelim']();},PacketOptionsMessage['decode']=function(_0x34e3ea,length){_0x34e3ea instanceof _0x498bd5||(_0x34e3ea=_0x498bd5['create'](_0x34e3ea));for(var _0x70324f=void 0x0===length?_0x34e3ea['len']:_0x34e3ea['pos']+length,_0x702ae2=new $root['PacketOptionsMessage']();_0x34e3ea['pos']<_0x70324f;){var tag=_0x34e3ea['uint32']();switch(tag>>>0x3){case 0x1:_0x702ae2['flags']=_0x34e3ea['string']();break;case 0x2:_0x702ae2['rooms']&&_0x702ae2['rooms']['length']||(_0x702ae2['rooms']=[]),_0x702ae2['rooms']['push'](_0x34e3ea['string']());break;case 0x3:_0x702ae2['except']&&_0x702ae2['except']['length']||(_0x702ae2['except']=[]),_0x702ae2['except']['push'](_0x34e3ea['string']());break;default:_0x34e3ea['skipType'](0x7&tag);}}return _0x702ae2;},PacketOptionsMessage['decodeDelimited']=function(_0x483a53){return _0x483a53 instanceof _0x498bd5||(_0x483a53=new _0x498bd5(_0x483a53)),this['decode'](_0x483a53,_0x483a53['uint32']());},PacketOptionsMessage['verify']=function(_0x5bccbc){if('object'!=typeof _0x5bccbc||null===_0x5bccbc)return'object\x20expected';if(null!=_0x5bccbc['flags']&&_0x5bccbc['hasOwnProperty']('flags')&&!$util['isString'](_0x5bccbc['flags']))return'flags:\x20string\x20expected';if(null!=_0x5bccbc['rooms']&&_0x5bccbc['hasOwnProperty']('rooms')){if(!Array['isArray'](_0x5bccbc['rooms']))return'rooms:\x20array\x20expected';for(var _0x47210b=0x0;_0x47210b<_0x5bccbc['rooms']['length'];++_0x47210b)if(!$util['isString'](_0x5bccbc['rooms'][_0x47210b]))return'rooms:\x20string[]\x20expected';}if(null!=_0x5bccbc['except']&&_0x5bccbc['hasOwnProperty']('except')){if(!Array['isArray'](_0x5bccbc['except']))return'except:\x20array\x20expected';for(_0x47210b=0x0;_0x47210b<_0x5bccbc['except']['length'];++_0x47210b)if(!$util['isString'](_0x5bccbc['except'][_0x47210b]))return'except:\x20string[]\x20expected';}return null;},PacketOptionsMessage['fromObject']=function(object){if(object instanceof $root['PacketOptionsMessage'])return object;var _0x355f96=new $root['PacketOptionsMessage']();if(null!=object['flags']&&(_0x355f96['flags']=String(object['flags'])),object['rooms']){if(!Array['isArray'](object['rooms']))throw TypeError('.PacketOptionsMessage.rooms:\x20array\x20expected');_0x355f96['rooms']=[];for(var _0x4608ce=0x0;_0x4608ce<object['rooms']['length'];++_0x4608ce)_0x355f96['rooms'][_0x4608ce]=String(object['rooms'][_0x4608ce]);}if(object['except']){if(!Array['isArray'](object['except']))throw TypeError('.PacketOptionsMessage.except:\x20array\x20expected');_0x355f96['except']=[];for(_0x4608ce=0x0;_0x4608ce<object['except']['length'];++_0x4608ce)_0x355f96['except'][_0x4608ce]=String(object['except'][_0x4608ce]);}return _0x355f96;},PacketOptionsMessage['toObject']=function(_0xbe4267,options){options||(options={});var object={};if((options['arrays']||options['defaults'])&&(object['rooms']=[],object['except']=[]),options['defaults']&&(object['flags']=''),null!=_0xbe4267['flags']&&_0xbe4267['hasOwnProperty']('flags')&&(object['flags']=_0xbe4267['flags']),_0xbe4267['rooms']&&_0xbe4267['rooms']['length']){object['rooms']=[];for(var _0x40470c=0x0;_0x40470c<_0xbe4267['rooms']['length'];++_0x40470c)object['rooms'][_0x40470c]=_0xbe4267['rooms'][_0x40470c];}if(_0xbe4267['except']&&_0xbe4267['except']['length']){object['except']=[];for(_0x40470c=0x0;_0x40470c<_0xbe4267['except']['length'];++_0x40470c)object['except'][_0x40470c]=_0xbe4267['except'][_0x40470c];}return object;},PacketOptionsMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},PacketOptionsMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/PacketOptionsMessage';},PacketOptionsMessage;}()),$root['StringBytesPacketDataMessage']=(function(){function StringBytesPacketDataMessage(properties){if(properties){for(var _0x4a3837=Object['keys'](properties),_0x330f9b=0x0;_0x330f9b<_0x4a3837['length'];++_0x330f9b)null!=properties[_0x4a3837[_0x330f9b]]&&(this[_0x4a3837[_0x330f9b]]=properties[_0x4a3837[_0x330f9b]]);}}return StringBytesPacketDataMessage['prototype']['data']='',StringBytesPacketDataMessage['prototype']['data1']=$util['newBuffer']([]),StringBytesPacketDataMessage['create']=function(properties){return new StringBytesPacketDataMessage(properties);},StringBytesPacketDataMessage['encode']=function(_0x1d4cb6,writer){return writer||(writer=$Writer['create']()),null!=_0x1d4cb6['data']&&Object['hasOwnProperty']['call'](_0x1d4cb6,'data')&&writer['uint32'](0xa)['string'](_0x1d4cb6['data']),null!=_0x1d4cb6['data1']&&Object['hasOwnProperty']['call'](_0x1d4cb6,'data1')&&writer['uint32'](0x12)['bytes'](_0x1d4cb6['data1']),writer;},StringBytesPacketDataMessage['encodeDelimited']=function(_0x2c32df,writer){return this['encode'](_0x2c32df,writer)['ldelim']();},StringBytesPacketDataMessage['decode']=function(_0x32033f,length){_0x32033f instanceof _0x498bd5||(_0x32033f=_0x498bd5['create'](_0x32033f));for(var _0x1df980=void 0x0===length?_0x32033f['len']:_0x32033f['pos']+length,_0x15e79d=new $root['StringBytesPacketDataMessage']();_0x32033f['pos']<_0x1df980;){var tag=_0x32033f['uint32']();switch(tag>>>0x3){case 0x1:_0x15e79d['data']=_0x32033f['string']();break;case 0x2:_0x15e79d['data1']=_0x32033f['bytes']();break;default:_0x32033f['skipType'](0x7&tag);}}return _0x15e79d;},StringBytesPacketDataMessage['decodeDelimited']=function(_0x28eec6){return _0x28eec6 instanceof _0x498bd5||(_0x28eec6=new _0x498bd5(_0x28eec6)),this['decode'](_0x28eec6,_0x28eec6['uint32']());},StringBytesPacketDataMessage['verify']=function(_0x3e5899){return'object'!=typeof _0x3e5899||null===_0x3e5899?'object\x20expected':null!=_0x3e5899['data']&&_0x3e5899['hasOwnProperty']('data')&&!$util['isString'](_0x3e5899['data'])?'data:\x20string\x20expected':null!=_0x3e5899['data1']&&_0x3e5899['hasOwnProperty']('data1')&&!(_0x3e5899['data1']&&'number'==typeof _0x3e5899['data1']['length']||$util['isString'](_0x3e5899['data1']))?'data1:\x20buffer\x20expected':null;},StringBytesPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringBytesPacketDataMessage'])return object;var _0x55f1da=new $root['StringBytesPacketDataMessage']();return null!=object['data']&&(_0x55f1da['data']=String(object['data'])),null!=object['data1']&&('string'==typeof object['data1']?$util['base64']['decode'](object['data1'],_0x55f1da['data1']=$util['newBuffer']($util['base64']['length'](object['data1'])),0x0):object['data1']['length']>=0x0&&(_0x55f1da['data1']=object['data1'])),_0x55f1da;},StringBytesPacketDataMessage['toObject']=function(_0x1cb2ec,options){options||(options={});var object={};return options['defaults']&&(object['data']='',options['bytes']===String?object['data1']='':(object['data1']=[],options['bytes']!==Array&&(object['data1']=$util['newBuffer'](object['data1'])))),null!=_0x1cb2ec['data']&&_0x1cb2ec['hasOwnProperty']('data')&&(object['data']=_0x1cb2ec['data']),null!=_0x1cb2ec['data1']&&_0x1cb2ec['hasOwnProperty']('data1')&&(object['data1']=options['bytes']===String?$util['base64']['encode'](_0x1cb2ec['data1'],0x0,_0x1cb2ec['data1']['length']):options['bytes']===Array?Array['prototype']['slice']['call'](_0x1cb2ec['data1']):_0x1cb2ec['data1']),object;},StringBytesPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringBytesPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringBytesPacketDataMessage';},StringBytesPacketDataMessage;}()),$root['StringNumberPacketDataMessage']=(function(){function StringNumberPacketDataMessage(properties){if(properties){for(var _0x10ea87=Object['keys'](properties),_0x13b737=0x0;_0x13b737<_0x10ea87['length'];++_0x13b737)null!=properties[_0x10ea87[_0x13b737]]&&(this[_0x10ea87[_0x13b737]]=properties[_0x10ea87[_0x13b737]]);}}return StringNumberPacketDataMessage['prototype']['data']='',StringNumberPacketDataMessage['prototype']['data1']=0x0,StringNumberPacketDataMessage['create']=function(properties){return new StringNumberPacketDataMessage(properties);},StringNumberPacketDataMessage['encode']=function(_0x4f644d,writer){return writer||(writer=$Writer['create']()),null!=_0x4f644d['data']&&Object['hasOwnProperty']['call'](_0x4f644d,'data')&&writer['uint32'](0xa)['string'](_0x4f644d['data']),null!=_0x4f644d['data1']&&Object['hasOwnProperty']['call'](_0x4f644d,'data1')&&writer['uint32'](0x10)['uint32'](_0x4f644d['data1']),writer;},StringNumberPacketDataMessage['encodeDelimited']=function(_0x42934a,writer){return this['encode'](_0x42934a,writer)['ldelim']();},StringNumberPacketDataMessage['decode']=function(_0x44166e,length){_0x44166e instanceof _0x498bd5||(_0x44166e=_0x498bd5['create'](_0x44166e));for(var _0x36658f=void 0x0===length?_0x44166e['len']:_0x44166e['pos']+length,_0xa6685=new $root['StringNumberPacketDataMessage']();_0x44166e['pos']<_0x36658f;){var tag=_0x44166e['uint32']();switch(tag>>>0x3){case 0x1:_0xa6685['data']=_0x44166e['string']();break;case 0x2:_0xa6685['data1']=_0x44166e['uint32']();break;default:_0x44166e['skipType'](0x7&tag);}}return _0xa6685;},StringNumberPacketDataMessage['decodeDelimited']=function(_0xa1f32){return _0xa1f32 instanceof _0x498bd5||(_0xa1f32=new _0x498bd5(_0xa1f32)),this['decode'](_0xa1f32,_0xa1f32['uint32']());},StringNumberPacketDataMessage['verify']=function(_0x45dd25){return'object'!=typeof _0x45dd25||null===_0x45dd25?'object\x20expected':null!=_0x45dd25['data']&&_0x45dd25['hasOwnProperty']('data')&&!$util['isString'](_0x45dd25['data'])?'data:\x20string\x20expected':null!=_0x45dd25['data1']&&_0x45dd25['hasOwnProperty']('data1')&&!$util['isInteger'](_0x45dd25['data1'])?'data1:\x20integer\x20expected':null;},StringNumberPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringNumberPacketDataMessage'])return object;var _0x22dd61=new $root['StringNumberPacketDataMessage']();return null!=object['data']&&(_0x22dd61['data']=String(object['data'])),null!=object['data1']&&(_0x22dd61['data1']=object['data1']>>>0x0),_0x22dd61;},StringNumberPacketDataMessage['toObject']=function(_0x29f6e5,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=0x0),null!=_0x29f6e5['data']&&_0x29f6e5['hasOwnProperty']('data')&&(object['data']=_0x29f6e5['data']),null!=_0x29f6e5['data1']&&_0x29f6e5['hasOwnProperty']('data1')&&(object['data1']=_0x29f6e5['data1']),object;},StringNumberPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringNumberPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringNumberPacketDataMessage';},StringNumberPacketDataMessage;}()),$root['StringObjectPacketDataMessage']=(function(){function StringObjectPacketDataMessage(properties){if(properties){for(var _0x5c36d1=Object['keys'](properties),_0x2e16f3=0x0;_0x2e16f3<_0x5c36d1['length'];++_0x2e16f3)null!=properties[_0x5c36d1[_0x2e16f3]]&&(this[_0x5c36d1[_0x2e16f3]]=properties[_0x5c36d1[_0x2e16f3]]);}}return StringObjectPacketDataMessage['prototype']['data']='',StringObjectPacketDataMessage['prototype']['data1']='',StringObjectPacketDataMessage['create']=function(properties){return new StringObjectPacketDataMessage(properties);},StringObjectPacketDataMessage['encode']=function(_0x5b7c6d,writer){return writer||(writer=$Writer['create']()),null!=_0x5b7c6d['data']&&Object['hasOwnProperty']['call'](_0x5b7c6d,'data')&&writer['uint32'](0xa)['string'](_0x5b7c6d['data']),null!=_0x5b7c6d['data1']&&Object['hasOwnProperty']['call'](_0x5b7c6d,'data1')&&writer['uint32'](0x12)['string'](_0x5b7c6d['data1']),writer;},StringObjectPacketDataMessage['encodeDelimited']=function(_0x39ea17,writer){return this['encode'](_0x39ea17,writer)['ldelim']();},StringObjectPacketDataMessage['decode']=function(_0x543174,length){_0x543174 instanceof _0x498bd5||(_0x543174=_0x498bd5['create'](_0x543174));for(var _0x3a3a93=void 0x0===length?_0x543174['len']:_0x543174['pos']+length,_0xbe4001=new $root['StringObjectPacketDataMessage']();_0x543174['pos']<_0x3a3a93;){var tag=_0x543174['uint32']();switch(tag>>>0x3){case 0x1:_0xbe4001['data']=_0x543174['string']();break;case 0x2:_0xbe4001['data1']=_0x543174['string']();break;default:_0x543174['skipType'](0x7&tag);}}return _0xbe4001;},StringObjectPacketDataMessage['decodeDelimited']=function(_0x15a85b){return _0x15a85b instanceof _0x498bd5||(_0x15a85b=new _0x498bd5(_0x15a85b)),this['decode'](_0x15a85b,_0x15a85b['uint32']());},StringObjectPacketDataMessage['verify']=function(_0x37849b){return'object'!=typeof _0x37849b||null===_0x37849b?'object\x20expected':null!=_0x37849b['data']&&_0x37849b['hasOwnProperty']('data')&&!$util['isString'](_0x37849b['data'])?'data:\x20string\x20expected':null!=_0x37849b['data1']&&_0x37849b['hasOwnProperty']('data1')&&!$util['isString'](_0x37849b['data1'])?'data1:\x20string\x20expected':null;},StringObjectPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringObjectPacketDataMessage'])return object;var _0x3ff800=new $root['StringObjectPacketDataMessage']();return null!=object['data']&&(_0x3ff800['data']=String(object['data'])),null!=object['data1']&&(_0x3ff800['data1']=String(object['data1'])),_0x3ff800;},StringObjectPacketDataMessage['toObject']=function(_0xffbf8e,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0xffbf8e['data']&&_0xffbf8e['hasOwnProperty']('data')&&(object['data']=_0xffbf8e['data']),null!=_0xffbf8e['data1']&&_0xffbf8e['hasOwnProperty']('data1')&&(object['data1']=_0xffbf8e['data1']),object;},StringObjectPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringObjectPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringObjectPacketDataMessage';},StringObjectPacketDataMessage;}()),$root['StringStringPacketDataMessage']=(function(){function StringStringPacketDataMessage(properties){if(properties){for(var _0x173710=Object['keys'](properties),_0x23836b=0x0;_0x23836b<_0x173710['length'];++_0x23836b)null!=properties[_0x173710[_0x23836b]]&&(this[_0x173710[_0x23836b]]=properties[_0x173710[_0x23836b]]);}}return StringStringPacketDataMessage['prototype']['data']='',StringStringPacketDataMessage['prototype']['data1']='',StringStringPacketDataMessage['create']=function(properties){return new StringStringPacketDataMessage(properties);},StringStringPacketDataMessage['encode']=function(_0x2d18ed,writer){return writer||(writer=$Writer['create']()),null!=_0x2d18ed['data']&&Object['hasOwnProperty']['call'](_0x2d18ed,'data')&&writer['uint32'](0xa)['string'](_0x2d18ed['data']),null!=_0x2d18ed['data1']&&Object['hasOwnProperty']['call'](_0x2d18ed,'data1')&&writer['uint32'](0x12)['string'](_0x2d18ed['data1']),writer;},StringStringPacketDataMessage['encodeDelimited']=function(_0x3ce13e,writer){return this['encode'](_0x3ce13e,writer)['ldelim']();},StringStringPacketDataMessage['decode']=function(_0x2e38e6,length){_0x2e38e6 instanceof _0x498bd5||(_0x2e38e6=_0x498bd5['create'](_0x2e38e6));for(var _0x32fa4b=void 0x0===length?_0x2e38e6['len']:_0x2e38e6['pos']+length,_0x2741f5=new $root['StringStringPacketDataMessage']();_0x2e38e6['pos']<_0x32fa4b;){var tag=_0x2e38e6['uint32']();switch(tag>>>0x3){case 0x1:_0x2741f5['data']=_0x2e38e6['string']();break;case 0x2:_0x2741f5['data1']=_0x2e38e6['string']();break;default:_0x2e38e6['skipType'](0x7&tag);}}return _0x2741f5;},StringStringPacketDataMessage['decodeDelimited']=function(_0x59657a){return _0x59657a instanceof _0x498bd5||(_0x59657a=new _0x498bd5(_0x59657a)),this['decode'](_0x59657a,_0x59657a['uint32']());},StringStringPacketDataMessage['verify']=function(_0x228f6c){return'object'!=typeof _0x228f6c||null===_0x228f6c?'object\x20expected':null!=_0x228f6c['data']&&_0x228f6c['hasOwnProperty']('data')&&!$util['isString'](_0x228f6c['data'])?'data:\x20string\x20expected':null!=_0x228f6c['data1']&&_0x228f6c['hasOwnProperty']('data1')&&!$util['isString'](_0x228f6c['data1'])?'data1:\x20string\x20expected':null;},StringStringPacketDataMessage['fromObject']=function(object){if(object instanceof $root['StringStringPacketDataMessage'])return object;var _0x3c5b02=new $root['StringStringPacketDataMessage']();return null!=object['data']&&(_0x3c5b02['data']=String(object['data'])),null!=object['data1']&&(_0x3c5b02['data1']=String(object['data1'])),_0x3c5b02;},StringStringPacketDataMessage['toObject']=function(_0x54e46c,options){options||(options={});var object={};return options['defaults']&&(object['data']='',object['data1']=''),null!=_0x54e46c['data']&&_0x54e46c['hasOwnProperty']('data')&&(object['data']=_0x54e46c['data']),null!=_0x54e46c['data1']&&_0x54e46c['hasOwnProperty']('data1')&&(object['data1']=_0x54e46c['data1']),object;},StringStringPacketDataMessage['prototype']['toJSON']=function(){return this['constructor']['toObject'](this,$protobuf['util']['toJSONOptions']);},StringStringPacketDataMessage['getTypeUrl']=function(typeUrlPrefix){return void 0x0===typeUrlPrefix&&(typeUrlPrefix='type.googleapis.com'),typeUrlPrefix+'/StringStringPacketDataMessage';},StringStringPacketDataMessage;}()),$root;})());class MessagesCompressor{static['decode'](_0xf1b0d8,_0x1a3957){const data=_getType(_0x1a3957)['decode']('undefined'==typeof window?_0xf1b0d8:new Uint8Array(_0xf1b0d8));return _0x1a3957['fromJSON']({...data});}static['encode'](_0x3d374a){const protobufMessage=_getType(_0x3d374a['constructor']),data=_0x3d374a['toJSON'](),_0x595148=protobufMessage['verify'](data);if(_0x595148)throw Error(_0x595148);return protobufMessage['encode'](protobufMessage['create'](data))['finish']();}}function _getType(_0x410565){return messages[_0x410565['DESCRIPTOR_NAME']];}class GetManyUsersMessage extends Message{['ids'];static ['TYPE']='22';static ['READABLE_TYPE_NAME']='getManyUsers';static ['DESCRIPTOR_NAME']='GetManyUsersMessage';static ['DESCRIPTOR']={'fields':{'ids':{'id':0x1,'type':'string','rule':'repeated'}}};constructor(_0x434ce8){super(),this['ids']=_0x434ce8;}['toJSON'](){return{'ids':this['ids']};}static['fromJSON'](data){return new GetManyUsersMessage(data['ids']);}}class GetManyUsersResponse extends Message{['users'];static ['DESCRIPTOR_NAME']='GetManyUsersResponse';static ['DESCRIPTOR']={'fields':{'users':{'rule':'repeated','type':'UserDescriptor','id':0x1}}};constructor(_0x3caf0e){super(),this['users']=_0x3caf0e;}['toJSON'](){return{'users':this['users']['map'](_userToJson)};}static['fromJSON'](data){return new GetManyUsersResponse(data['users']['map'](_userFromJson));}}function _userToJson(_0x19db15){return{'attributes':Object['keys'](_0x19db15)['map'](_0x252cc0=>({'key':_0x252cc0,'value':JSON['stringify'](_0x19db15[_0x252cc0])}))};}function _userFromJson(data){return data['attributes']['reduce']((result,_0x4446f3)=>(result[_0x4446f3['key']]=_0x4446f3['value']?JSON['parse'](_0x4446f3['value']):null,result),{});}class User{static ['_SERVICE']=0x2;['id'];['_attributes'];constructor(attributes={}){this['_attributes']=new Map();for(const _0x37e90f of Object['keys'](attributes))'id'!==_0x37e90f?(this['_attributes']['set'](_0x37e90f,attributes[_0x37e90f]),Object['defineProperty'](this,_0x37e90f,{'enumerable':!0x0,'configurable':!0x1,'get':()=>this['_attributes']['get'](_0x37e90f)})):this['id']=attributes['id'];}static['fromData'](data){return new User(data);}static async['get'](wsGateway,_0x5de9a9){const _0x2bbd9a=new GetUserMessage(_0x5de9a9);try{const _0x102b97=await wsGateway['_sendRequest'](User['_SERVICE'],GetUserMessage['TYPE'],MessagesCompressor['encode'](_0x2bbd9a)),getUserResponse=MessagesCompressor['decode'](_0x102b97,GetUserResponse);return new User(getUserResponse['attributes']);}catch(_0x3b5d24){return new User({'id':_0x5de9a9});}}static async['getMany'](wsGateway,_0x3c48d1){const _0x3e817a=new GetManyUsersMessage(_0x3c48d1);try{const _0x33c4f6=await wsGateway['_sendRequest'](User['_SERVICE'],GetManyUsersMessage['TYPE'],MessagesCompressor['encode'](_0x3e817a));return MessagesCompressor['decode'](_0x33c4f6,GetManyUsersResponse)['users']['map'](_0x5bb187=>new User(_0x5bb187));}catch(_0x19a257){return _0x3c48d1['map'](_0x1d2a8f=>new User({'id':_0x1d2a8f}));}}}class ChannelMessage extends Message{['type'];['socketId'];['data'];static ['DESCRIPTOR_NAME']='ChannelMessage';static ['DESCRIPTOR']={'fields':{'type':{'type':'uint32','id':0x1},'socketId':{'type':'string','id':0x2},'data':{'type':'bytes','id':0x3}}};constructor(type,socketId,data){super(),this['type']=type,this['socketId']=socketId,this['data']=data;}['toJSON'](){return{'type':this['type'],'socketId':this['socketId'],'data':this['data']};}static['fromJSON'](data){return new ChannelMessage(data['type'],data['socketId'],data['data']);}}class Channel extends/* #__PURE__ -- @preserve */
25
+ EmitterMixin(){['_channelName'];['_wsGateway'];['_socket'];constructor(_0x49253b,_wsGateway,_socket){super(),this['_channelName']=_0x49253b,this['_wsGateway']=_wsGateway,this['_socket']=_socket,this['_subscribeToChannel']();}['remove'](){this['_socket']['off'](this['_channelName']);}['getEventName'](eventName,_0x167c2c=!0x1){let fullEventName='';return _0x167c2c&&(fullEventName+='all:'),fullEventName+='event',eventName&&(fullEventName+=':'+eventName),fullEventName;}['_subscribeToChannel'](){this['_socket']['on'](this['_channelName'],_0x35c539=>{const _0x340442=MessagesCompressor['decode'](_0x35c539,ChannelMessage);this['fire'](this['getEventName'](_0x340442['type'],!0x0),_0x340442['data'],_0x340442['socketId']),_0x340442['socketId']!==this['_wsGateway']['socketId']&&this['fire'](this['getEventName'](_0x340442['type']),_0x340442['data'],_0x340442['socketId']);});}}class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x3980c4,context,_0x45f385=null,data={}){super('cloud-services-internal-error:\x20'+_0x3980c4),this['context']=context,this['code']=_0x45f385,this['data']=data,this['name']='CKEditorError';}static['fromPublicError'](_0x1c1269){return new CKEditorCloudServicesError(function(_0x512bc5){let _0xc3872d='cloud-services-error:\x20'+_0x512bc5['message'];return _0x512bc5['data']&&(_0xc3872d+='\x0aError\x20data:\x20'+JSON['stringify'](_0x512bc5['data'])),_0x512bc5['explanation']&&(_0xc3872d+='\x0aExplanation:\x20'+_0x512bc5['explanation']),_0x512bc5['action']&&(_0xc3872d+='\x0aAction:\x20'+_0x512bc5['action']),_0x512bc5['traceId']&&(_0xc3872d+='\x0aTraceId:\x20'+_0x512bc5['traceId']),_0x512bc5['code']&&(_0xc3872d+='\x0aCode:\x20'+_0x512bc5['code']),_0xc3872d;}(_0x1c1269),_0x1c1269);}}class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x4dd672,_0x3a470b){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x4dd672,this['code']=_0x3a470b['code'],this['traceId']=_0x3a470b['traceId'],this['data']=_0x3a470b['data'];}static['fromPublicError'](_0x47def1){return new CKEditorCloudServicesServerError(function(_0x199716){let _0x3a66ca='cloud-services-server-error:\x20'+_0x199716['message'];return _0x199716['explanation']&&(_0x3a66ca+='\x0aExplanation:\x20'+_0x199716['explanation']),_0x199716['action']&&(_0x3a66ca+='\x0aAction:\x20'+_0x199716['action']),_0x199716['traceId']&&(_0x3a66ca+='\x0aTraceId:\x20'+_0x199716['traceId']),_0x199716['code']&&(_0x3a66ca+='\x0aCode:\x20'+_0x199716['code']),_0x3a66ca;}(_0x47def1),_0x47def1);}}class PacketOptionsMessage extends Message{['flags'];['rooms'];['except'];static ['TYPE']=0xb;static ['DESCRIPTOR_NAME']='PacketOptionsMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
26
+ ((()=>({'fields':{'flags':{'type':'string','id':0x1},'rooms':{'type':'string','id':0x2,'rule':'repeated'},'except':{'type':'string','id':0x3,'rule':'repeated'}}}))());constructor(_0x47caad,_0x4f1a5b=[],except=[]){super(),this['flags']=_0x47caad,this['rooms']=_0x4f1a5b,this['except']=except;}['toJSON'](){return{'flags':this['flags']?JSON['stringify'](this['flags']):void 0x0,'rooms':this['rooms']?.['length']?this['rooms']:void 0x0,'except':this['except']?.['length']?this['except']:void 0x0};}static['fromJSON'](data){return new PacketOptionsMessage(data['flags']&&JSON['parse'](data['flags']),data['rooms'],data['except']);}}const IS_NODE=/* #__PURE__ -- @preserve */
27
+ ((()=>!('undefined'==typeof process||!process['versions']||!process['versions']['node']))()),MessageDataTypes_BUFFER=0x1,MessageDataTypes_STRING=0x2,MessageDataTypes_NUMBER=0x3,MessageDataTypes_OBJECT=0x4;class ParserUtils{static['getPacketType'](...types){let _0x14ca70=0x0;for(let _0x13c478=0x0;_0x13c478<types['length'];_0x13c478++){_0x14ca70+=types[_0x13c478]*Math['pow'](0xa,types['length']-_0x13c478-0x1);}return _0x14ca70;}static['getType'](_0x389e75){if(ParserUtils['isBuffer'](_0x389e75))return MessageDataTypes_BUFFER;const type=typeof _0x389e75;return'string'===type?MessageDataTypes_STRING:'number'===type?MessageDataTypes_NUMBER:MessageDataTypes_OBJECT;}static['isBuffer'](_0x404b7e){return IS_NODE&&Buffer['isBuffer'](_0x404b7e)||_0x404b7e instanceof ArrayBuffer||_0x404b7e instanceof Uint8Array||this['_isBufferView'](_0x404b7e);}static['_isBufferView'](_0x2562c9){return'function'==typeof ArrayBuffer['isView']?ArrayBuffer['isView'](_0x2562c9):_0x2562c9['buffer']instanceof ArrayBuffer;}}class PackageDataMessage extends Message{['data'];['data1'];['constructor'];static['create'](data,data1){throw new TypeError('Must\x20be\x20implemented\x20in\x20a\x20child\x20class!');}}class NumberBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
28
+ ((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='NumberBytesPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
29
+ ((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new NumberBytesPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new NumberBytesPacketDataMessage(data,data1);}}class StringBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
30
+ ((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='StringBytesPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
31
+ ((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new StringBytesPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new StringBytesPacketDataMessage(data,data1);}}class BytesBytesPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
32
+ ((()=>ParserUtils['getPacketType'](MessageDataTypes_BUFFER,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='BytesBytesPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
33
+ ((()=>({'fields':{'data':{'type':'bytes','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new BytesBytesPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new BytesBytesPacketDataMessage(data,data1);}}class StringObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
34
+ ((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_OBJECT))());static ['DESCRIPTOR_NAME']='StringObjectPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
35
+ ((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](data){return new StringObjectPacketDataMessage(data['data'],data['data1']&&JSON['parse'](data['data1']));}static['create'](data,data1){return new StringObjectPacketDataMessage(data,data1);}}class NumberObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
36
+ ((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_OBJECT))());static ['DESCRIPTOR_NAME']='NumberObjectPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
37
+ ((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](data){return new NumberObjectPacketDataMessage(data['data'],data['data1']&&JSON['parse'](data['data1']));}static['create'](data,data1){return new NumberObjectPacketDataMessage(data,data1);}}class ObjectObjectPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
38
+ ((()=>ParserUtils['getPacketType'](MessageDataTypes_OBJECT,MessageDataTypes_OBJECT))());static ['DESCRIPTOR_NAME']='ObjectObjectPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
39
+ ((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']?JSON['stringify'](this['data1']):void 0x0};}static['fromJSON'](data){return new ObjectObjectPacketDataMessage(data['data']&&JSON['parse'](data['data']),data['data1']&&JSON['parse'](data['data1']));}static['create'](data,data1){return new ObjectObjectPacketDataMessage(data,data1);}}class ObjectBufferPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
40
+ ((()=>ParserUtils['getPacketType'](MessageDataTypes_OBJECT,MessageDataTypes_BUFFER))());static ['DESCRIPTOR_NAME']='ObjectBufferPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
41
+ ((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'bytes','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data']?JSON['stringify'](this['data']):void 0x0,'data1':this['data1']};}static['fromJSON'](data){return new ObjectBufferPacketDataMessage(data['data']&&JSON['parse'](data['data']),data['data1']);}static['create'](data,data1){return new ObjectBufferPacketDataMessage(data,data1);}}class StringStringPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
42
+ ((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_STRING))());static ['DESCRIPTOR_NAME']='StringStringPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
43
+ ((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new StringStringPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new StringStringPacketDataMessage(data,data1);}}class StringNumberPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
44
+ ((()=>ParserUtils['getPacketType'](MessageDataTypes_STRING,MessageDataTypes_NUMBER))());static ['DESCRIPTOR_NAME']='StringNumberPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
45
+ ((()=>({'fields':{'data':{'type':'string','id':0x1},'data1':{'type':'uint32','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new StringNumberPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new StringNumberPacketDataMessage(data,data1);}}class NumberNumberPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
46
+ ((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_NUMBER))());static ['DESCRIPTOR_NAME']='NumberNumberPacketDataMessage';static ['DESCRIPTOR']={'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'uint32','id':0x2}}};constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new NumberNumberPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new NumberNumberPacketDataMessage(data,data1);}}class NumberStringPacketDataMessage extends PackageDataMessage{['data'];['data1'];static ['TYPE']=/* #__PURE__ -- @preserve */
47
+ ((()=>ParserUtils['getPacketType'](MessageDataTypes_NUMBER,MessageDataTypes_STRING))());static ['DESCRIPTOR_NAME']='NumberStringPacketDataMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
48
+ ((()=>({'fields':{'data':{'type':'uint32','id':0x1},'data1':{'type':'string','id':0x2}}}))());constructor(data,data1){super(),this['data']=data,this['data1']=data1;}['toJSON'](){return{'data':this['data'],'data1':this['data1']};}static['fromJSON'](data){return new NumberStringPacketDataMessage(data['data'],data['data1']);}static['create'](data,data1){return new NumberStringPacketDataMessage(data,data1);}}const PACKET_DATA_MESSAGES=/* #__PURE__ -- @preserve */
49
+ ((()=>[NumberBytesPacketDataMessage,StringBytesPacketDataMessage,BytesBytesPacketDataMessage,StringObjectPacketDataMessage,NumberObjectPacketDataMessage,ObjectObjectPacketDataMessage,ObjectBufferPacketDataMessage,StringStringPacketDataMessage,StringNumberPacketDataMessage,NumberNumberPacketDataMessage,NumberStringPacketDataMessage]['reduce']((result,PacketDataMessageConstructor)=>(result[PacketDataMessageConstructor['TYPE']]=PacketDataMessageConstructor,result),{}))());class PacketMessage extends Message{['type'];['data'];['id'];['nsp'];['options'];static ['TYPE']=0xa;static ['DESCRIPTOR_NAME']='PacketMessage';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
50
+ ((()=>({'fields':{'type':{'type':'uint32','id':0x1},'id':{'type':'uint32','id':0x2},'nsp':{'type':'string','id':0x3},'data':{'type':'bytes','id':0x4},'options':{'type':'bytes','id':0x5}}}))());constructor(type,data,_0x367f27,_0x306db4='/',options){super(),this['type']=type,this['data']=data,this['id']=_0x367f27,this['nsp']=_0x306db4,this['options']=options??new PacketOptionsMessage();}get['packetData'](){return void 0x0===this['data']['data']&&void 0x0===this['data']['data1']?[]:this['data']['data']&&void 0x0===this['data']['data1']?[this['data']['data']]:[this['data']['data'],this['data']['data1']];}['toJSON'](){const options=MessagesCompressor['encode'](this['options']),data=MessagesCompressor['encode'](this['data']);return{'type':this['type']+0xa*this['data']['constructor']['TYPE'],'id':this['id'],'nsp':'/'===this['nsp']?void 0x0:this['nsp'],'data':data,'options':options};}static['fromJSON'](data){const frameDataType=Math['floor'](data['type']/0xa);return new PacketMessage(data['type']-0xa*frameDataType,MessagesCompressor['decode'](data['data'],PACKET_DATA_MESSAGES[frameDataType]),data['id'],data['nsp'],data['options']?MessagesCompressor['decode'](data['options'],PacketOptionsMessage):new PacketOptionsMessage());}static['create'](packet,options={}){const frameDataType=ParserUtils['getPacketType'](ParserUtils['getType'](packet['data'][0x0]),ParserUtils['getType'](packet['data'][0x1]??packet['data'][0x0]));return new PacketMessage(packet['type'],PACKET_DATA_MESSAGES[frameDataType]['create'](packet['data'][0x0],packet['data'][0x1]),packet['id'],packet['nsp'],new PacketOptionsMessage(options['flags'],options['rooms'],options['except']));}}class PacketParser{['encode'](type,data,_0x23e579,_0x493ed9='/',options={}){if(data['length']>0x2)throw new Error('PacketParser\x20supports\x20only\x202\x20elements\x20in\x20data');const packet={'type':type,'data':data,'id':_0x23e579,'nsp':_0x493ed9};return MessagesCompressor['encode'](PacketMessage['create'](packet,options));}['decode'](_0x3a1e24){const packetMessage=MessagesCompressor['decode'](_0x3a1e24,PacketMessage);return{'packet':{'id':packetMessage['id'],'type':packetMessage['type'],'data':packetMessage['packetData'],'nsp':packetMessage['nsp']},'options':{'flags':packetMessage['options']['flags'],'rooms':packetMessage['options']['rooms'],'except':packetMessage['options']['except']}};}}const ENCODED_TYPES=/* #__PURE__ -- @preserve */
51
+ ((()=>[PacketType['EVENT'],PacketType['ACK'],PacketType['BINARY_ACK'],PacketType['BINARY_EVENT']])());class Encoder extends _0x1b50d9{['_packetParser'];constructor(packetParser){super(),this['_packetParser']=packetParser??new PacketParser();}['encode'](packet){if(ENCODED_TYPES['includes'](packet['type']))try{return[this['_packetParser']['encode'](packet['type'],packet['data'],packet['id'],packet['nsp'])];}catch(_0x36dc3a){console['error']('Can\x20not\x20properly\x20serialize\x20or\x20deserialize\x20messages.\x20Check\x20the\x20original\x20error.',{'originalError':{'message':_0x36dc3a['message']}});}return super['encode'](packet);}}class Decoder extends _0x596a4e{['_packetParser'];constructor(packetParser){super(),this['_packetParser']=packetParser??new PacketParser();}['add'](_0x22c9de){if(!ParserUtils['isBuffer'](_0x22c9de))return super['add'](_0x22c9de);let packet;try{packet=this['_packetParser']['decode'](_0x22c9de)['packet'];}catch(_0x3a23bc){return super['add'](_0x22c9de);}super['emitReserved']('decoded',packet);}}class WebSocketRequest{['_context'];['_deferredPromise'];['timeout'];constructor(_context,timeoutMs){this['_context']=_context,this['_deferredPromise']=/* #__PURE__ -- @preserve */
52
+ _deferPromise(),this['timeout']=setTimeout(()=>this['error'](new CKEditorCloudServicesError('Request\x20timeout.',this['_context'])),timeoutMs);}get['promise'](){return this['_deferredPromise']['promise'];}['response'](_0x25f248){this['_deferredPromise']['resolve'](_0x25f248);}['error'](_0x128af7){this['_deferredPromise']['reject'](_0x128af7);}}class WebSocketGatewayRequestsManager{['_context'];['_requests'];constructor(_context){this['_context']=_context,this['_requests']=new Set();}async['send'](sendFunction,timeoutMs=0xafc8){const _0x4f99d1=this['_createRequest'](timeoutMs);try{return sendFunction(_0x4f99d1),await _0x4f99d1['promise'];}finally{this['_finishRequest'](_0x4f99d1);}}['errorAll'](_0x5f2631){for(const _0x1583a9 of this['_requests'])_0x1583a9['error'](_0x5f2631);}['waitForAllRequests'](time=0xafc8){return this['_waitForRequests'](time);}['_createRequest'](timeoutMs){const _0x2f5ca2=new WebSocketRequest(this['_context'],timeoutMs);return this['_requests']['add'](_0x2f5ca2),_0x2f5ca2;}['_finishRequest'](_0x2ed130){this['_requests']['delete'](_0x2ed130),clearTimeout(_0x2ed130['timeout']);}async['_waitForRequests'](time=0x1388,attempt=0x0){return!this['_requests']['size']||attempt>=time/0x1f4?Promise['resolve']():(await new Promise(_0xe65bbd=>{setTimeout(_0xe65bbd,0x1f4);}),this['_waitForRequests'](time,attempt++));}}function _deferPromise(){let _0x1b5b44,reject;const _0x4fdd62=new Promise((_0x153e38,promiseReject)=>{_0x1b5b44=_0x153e38,reject=promiseReject;});return{'resolve':_0x1b5b44,'reject':reject,'promise':_0x4fdd62};}const WEB_SOCKET_GATEWAY_STATES={'DISCONNECTED':'disconnected','CONNECTING':'connecting','CONNECTED':'connected'};class WebSocketGateway extends/* #__PURE__ -- @preserve */
53
+ ObservableMixin(){['_requestsManager'];['_url'];['_socket'];['_socketAuth'];['_channels'];['_connectionAttempt']=0x0;['_token'];['_options'];['_connectionProvider'];['_userFactory'];['me'];['socketId'];['state'];static ['STATE_DISCONNECTED']=/* #__PURE__ -- @preserve */
54
+ ((()=>WEB_SOCKET_GATEWAY_STATES['DISCONNECTED'])());static ['STATE_CONNECTING']=/* #__PURE__ -- @preserve */
55
+ ((()=>WEB_SOCKET_GATEWAY_STATES['CONNECTING'])());static ['STATE_CONNECTED']=/* #__PURE__ -- @preserve */
56
+ ((()=>WEB_SOCKET_GATEWAY_STATES['CONNECTED'])());static ['_CHANGE_STATE_EVENT_PRIORITY']=/* #__PURE__ -- @preserve */
57
+ ((()=>priorities['get']('highest')+0xf423f)());constructor(_0x4d79bc,token,options,connectionProvider,userFactory){if(super(),this['_token']=token,this['_options']=options??{},this['_connectionProvider']=connectionProvider??io,this['_userFactory']=userFactory??User['get'],this['_requestsManager']=new WebSocketGatewayRequestsManager(this),this['_channels']=new Map(),!_0x4d79bc)throw new TypeError('Api\x20address\x20must\x20be\x20provided.');if(!this['_token'])throw new TypeError('Token\x20must\x20be\x20provided.');this['_options']['requestTimeout']||(this['_options']['requestTimeout']=0x4e20),this['_url']=_0xe519f8(_0x4d79bc['replace'](/^(?!(?:\w+:)?\/\/)/,'https://')),this['set']('state',WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']),this['set']('socketId',void 0x0),this['set']('me',void 0x0),this['on']('change:state',async(event,_0x1fbfed,_0x28b34d)=>{if(this['_debugEvent']('ws-gw:change:state',_0x28b34d),_0x28b34d!==WebSocketGateway['STATE_CONNECTED']){if(_0x28b34d===WebSocketGateway['STATE_DISCONNECTED'])return this['_requestsManager']['errorAll'](new CKEditorCloudServicesError('Not\x20connected.',this));}else try{this['me']=await this['_userFactory']['call'](User,this,this['_socketAuth']?.['userId']);}catch(_0x4e6303){}},{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['on']('error',(event,_0x4b803c)=>{this['_options']['onError']?this['_options']['onError'](_0x4b803c):console['error'](_0x4b803c);});}get['sessionId'](){return this['socketId'];}['waitForAllRequests'](time){return this['_requestsManager']['waitForAllRequests'](time);}['disconnect'](){this['state']!==WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&(this['_socket']?.['disconnect'](),this['_socket']=void 0x0,this['state']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']);}async['reconnect'](){this['_socket']||this['state']!==WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']||(await this['_token']['refreshToken'](),await this['_connect']());}static async['connect'](token,_0x5aeae1='local.cs.dev:443/ws-v2',options={},_0x25d5a1=io,userFactory=User['get']){const webSocketGateway=new WebSocketGateway(_0x5aeae1,token,options,_0x25d5a1,userFactory);return await webSocketGateway['_connect'](),webSocketGateway;}['_sendRequest'](_0xe6937f,method,_0x487092){if(!_0xe6937f)throw new CKEditorCloudServicesError('`serviceName`\x20must\x20be\x20provided.',this);if(this['state']!==WebSocketGateway['STATE_CONNECTED'])throw new CKEditorCloudServicesError('Not\x20connected.',this);if(!this['_socketAuth']||!this['_socketAuth']['isAuthenticated'])throw new CKEditorCloudServicesError('Not\x20authenticated.',this);const _0x402e23=new ArrayBuffer(_0x487092['length']+0x2),_0x304818=new Uint8Array(_0x402e23);return _0x304818[0x0]=_0xe6937f,_0x304818[0x1]=parseInt(method),_0x304818['set'](_0x487092,0x2),this['_emit'](0x1,_0x304818);}['_getChannel'](_0x41b62f,_0x2de81b){const _0x137873=''+_0x41b62f+_0x2de81b;return!this['_channels']['has'](_0x137873)&&this['_socket']&&this['_channels']['set'](_0x137873,new Channel(_0x137873,this,this['_socket'])),this['_channels']['get'](_0x137873);}['_connect'](){return new Promise((_0x82d24d,reject)=>{const socket=this['_setupSocket']();!this['socketId']&&socket['io']['on']('reconnect_error',()=>{this['_debugEvent']('reconnect_error'),this['_reconnectionAttemptError'](reject);}),socket['once']('connect',async()=>{this['_debugEvent']('once-connect');try{await this['_onConnect'](),_0x82d24d();}catch(_0x2bab4c){reject(_0x2bab4c);}}),socket['connect']();});}['_getPortByProtocol'](protocol){return['http:','ws:']['includes'](protocol)?0x50:0x1bb;}['_setupSocket'](){if(this['_socket'])return this['_socket'];const port=this['_url']['port']||this['_getPortByProtocol'](this['_url']['protocol']),_0x3a18e0=(this['_url']['protocol']||'https:')+'//'+this['_url']['hostname']+':'+port,pathPrefix=this['_url']['pathname']['match'](/^\/.*\/ws/)?this['_url']['pathname']['split']('/ws')[0x0]:'',socket=this['_connectionProvider'](_0x3a18e0,{'parser':{'Encoder':Encoder,'Decoder':Decoder},'path':pathPrefix+'/ws-v2/ws','transports':['websocket'],'timeout':void 0x0!==this['_options']['timeout']?this['_options']['timeout']:0x1388,'reconnection':void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect'],'reconnectionDelay':0x3e8,'reconnectionDelayMax':0x1388,'rejectUnauthorized':void 0x0===this['_options']['rejectUnauthorized']||this['_options']['rejectUnauthorized'],'query':{'version':'52.6.3'},'agent':this['_options']['agent']??!0x1,'closeOnBeforeunload':!0x1});return this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],socket['on']('connect',()=>{this['_debugEvent']('connect'),this['socketId']=socket['id'];}),socket['on']('connect_error',_0x509c29=>{this['_debugEvent']('connect_error',_0x509c29);}),socket['on']('disconnect',()=>{this['_debugEvent']('disconnect'),this['_onDisconnect']();}),socket['io']['on']('reconnect',async()=>{this['_debugEvent']('reconnect'),await this['_onReconnect']();}),socket['io']['on']('reconnect_attempt',attempt=>{this['_debugEvent']('reconnect_attempt',attempt),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTING'],this['_connectionAttempt']=attempt;}),socket['on']('unauthorized',data=>{this['_debugEvent']('unauthorized'),this['_onUnauthorized'](data);}),socket['on']('authenticationRequest',async data=>{this['_debugEvent']('authenticationRequest',data['attempt']),await this['_onReconnect']();}),this['_socket']=socket,socket;}['_emit'](eventName,_0x4a9e91){const socket=this['_socket'];return this['_requestsManager']['send'](_0x5c115f=>{socket['emit'](eventName,_0x4a9e91,(_0x1e1d0f,_0x27e245)=>{if(_0x1e1d0f)return _0x5c115f['error'](CKEditorCloudServicesServerError['fromPublicError'](_0x1e1d0f));_0x5c115f['response'](_0x27e245);});},this['_options']['requestTimeout']);}['_addAuthData'](environmentId,_0x4baee6){this['_socketAuth']={'environmentId':environmentId,'userId':_0x4baee6,'isAuthenticated':!0x0};}['_removeAuthData'](){this['_socketAuth']=void 0x0;}async['_onConnect'](){await this['_authenticate'](this['_token']['value']),this['state']=WEB_SOCKET_GATEWAY_STATES['CONNECTED'];const _0x1783fb=async(event,_0x5a17b2,_0xcc4abf)=>{this['_debugEvent']('token:value:change');try{await this['_authenticate'](_0xcc4abf);}catch(_0x2dde96){}};this['_token']['on']('change:value',_0x1783fb),this['_socket']['io']['off']('reconnect_error'),this['on']('disconnect',()=>{this['_token']['off']('change:value',_0x1783fb);});}async['_onReconnect'](){await this['_token']['refreshToken'](),await this['_onConnect']();}['_onDisconnect'](){this['state']=WEB_SOCKET_GATEWAY_STATES['DISCONNECTED'],this['_connectionAttempt']=0x0,this['fire']('disconnect');for(const _0x5d6eec of this['_channels']['values']())_0x5d6eec['remove']();this['_channels']['clear'](),void 0x0===this['_options']['autoReconnect']||this['_options']['autoReconnect']||(this['_socket']=void 0x0);}['_debugEvent'](eventName,eventData){if(!this['_isDebugModeEnabled']())return;const eventDataString=void 0x0!==eventData?',\x20data:\x20'+eventData:'';console['info'](new Date()['toLocaleString']()+'\x20'+eventName+eventDataString);}['_reconnectionAttemptError'](_0x26d782){this['_connectionAttempt']>=0x2&&(this['disconnect'](),_0x26d782(CKEditorCloudServicesError['fromPublicError']({'message':'The\x20number\x20of\x20initial\x20connection\x20attempts\x20exceeded.','explanation':'Three\x20initial\x20connection\x20attempts\x20failed.\x20It\x20can\x20be\x20caused\x20by\x20a\x20slow,\x20unstable,\x20missing\x20or\x20blocked\x20Internet\x20connection.','action':'Please\x20verify\x20the\x20stability\x20of\x20your\x20Internet\x20connection\x20and\x20ensure\x20that\x20no\x20antivirus\x20or\x20firewall\x20software\x20blocks\x20the\x20Web\x20Socket\x20protocol\x20connections.'})));}['_onUnauthorized']({error:_0x5637e4}){this['_removeAuthData'](),this['fire']('error',CKEditorCloudServicesServerError['fromPublicError'](_0x5637e4));}async['_authenticate'](token){try{this['_debugEvent']('authenticate:start');const _0x39505c=await this['_emit'](0x2,{'token':token});this['_debugEvent']('authenticate:success','envId:\x20'+_0x39505c['environmentId']+',\x20userId:\x20'+_0x39505c['userId']),this['_addAuthData'](_0x39505c['environmentId'],_0x39505c['userId']);}catch(_0x54b51c){throw this['_debugEvent']('authenticate:error',_0x54b51c['message']),this['_removeAuthData'](),_0x54b51c;}}['_isDebugModeEnabled'](){if(!global['window']['localStorage'])return!0x1;return'true'===(global['window']['localStorage']['getItem']('csClientDebugMode')??'false')['toLowerCase']();}}class IsEditorBundleUploadedMessage extends Message{['bundleVersion'];static ['TYPE']='131';static ['READABLE_TYPE_NAME']='isEditorBundleUploaded';static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedMessage';static ['DESCRIPTOR']={'fields':{'bundleVersion':{'type':'string','id':0x1}}};constructor(_0x201a0b){super(),this['bundleVersion']=_0x201a0b;}['toJSON'](){return{'bundleVersion':this['bundleVersion']};}static['fromJSON'](object){return new IsEditorBundleUploadedMessage(object['bundleVersion']);}}class IsEditorBundleUploadedResponse extends Message{['isUploaded'];static ['DESCRIPTOR_NAME']='IsEditorBundleUploadedResponse';static ['DESCRIPTOR']={'fields':{'isUploaded':{'type':'bool','id':0x1}}};constructor(_0x21c1a7){super(),this['isUploaded']=_0x21c1a7;}['toJSON'](){return{'isUploaded':this['isUploaded']};}static['fromJSON'](_0x5dd1f1){return new IsEditorBundleUploadedResponse(_0x5dd1f1['isUploaded']);}}class EditorService extends/* #__PURE__ -- @preserve */
58
+ EmitterMixin(){static ['_SERVICE']=0xd;static async['isBundleUploaded'](wsGateway,_0x2e3ab0){const _0x51d74e=new IsEditorBundleUploadedMessage(_0x2e3ab0);if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);const _0x1005a3=await wsGateway['_sendRequest'](EditorService['_SERVICE'],IsEditorBundleUploadedMessage['TYPE'],MessagesCompressor['encode'](_0x51d74e));return MessagesCompressor['decode'](_0x1005a3,IsEditorBundleUploadedResponse)['isUploaded'];}}class RevisionHistoryGetRevisionMessage extends Message{['documentId'];['revisionId'];static ['TYPE']='123';static ['READABLE_TYPE_NAME']='getRevision';static ['DESCRIPTOR_NAME']='RevisionHistoryGetRevisionMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'revisionId':{'type':'string','id':0x2}}};constructor(documentId,_0x3b6587){super(),this['documentId']=documentId,this['revisionId']=_0x3b6587;}['toJSON'](){return{'documentId':this['documentId'],'revisionId':this['revisionId']};}static['fromJSON'](object){return new RevisionHistoryGetRevisionMessage(object['documentId'],object['revisionId']);}}class RevisionDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='RevisionDescriptor';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
59
+ ((()=>({'fields':{'revisionId':{'type':'string','id':0x1},'name':{'type':'string','id':0x2},'creatorId':{'type':'string','id':0x3},'authorsIds':{'type':'string','id':0x4},'diffData':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'toVersion':{'type':'uint32','id':0x8},'fromVersion':{'type':'uint32','id':0x9},'isEmptyCurrent':{'type':'bool','id':0xa}}}))());static['create'](object){return{'revisionId':object['id'],'name':object['name'],'creatorId':object['creatorId'],'createdAt':object['createdAt'],'fromVersion':object['fromVersion'],'toVersion':object['toVersion'],'isEmptyCurrent':object['isEmptyCurrent'],'diffData':object['diffData']?JSON['stringify'](object['diffData']):void 0x0,'attributes':object['attributes'],'authorsIds':object['authorsIds']};}static['toJSON'](_0x2bd006){return{'revisionId':_0x2bd006['revisionId'],'name':_0x2bd006['name'],'creatorId':_0x2bd006['creatorId'],'authorsIds':_0x2bd006['authorsIds']?JSON['stringify'](_0x2bd006['authorsIds']):void 0x0,'diffData':_0x2bd006['diffData'],'createdAt':_0x2bd006['createdAt']?.['toISOString'](),'attributes':_0x2bd006['attributes']?JSON['stringify'](_0x2bd006['attributes']):void 0x0,'toVersion':_0x2bd006['toVersion'],'fromVersion':_0x2bd006['fromVersion'],'isEmptyCurrent':_0x2bd006['isEmptyCurrent']};}static['fromJSON'](_0x3847b2){return{'revisionId':(_0x3847b2={..._0x3847b2})['revisionId'],'name':_0x3847b2['name'],'creatorId':_0x3847b2['creatorId'],'authorsIds':_0x3847b2['authorsIds']?JSON['parse'](_0x3847b2['authorsIds']):void 0x0,'diffData':_0x3847b2['diffData'],'createdAt':_0x3847b2['createdAt']?new Date(_0x3847b2['createdAt']):void 0x0,'attributes':_0x3847b2['attributes']?JSON['parse'](_0x3847b2['attributes']):void 0x0,'toVersion':_0x3847b2['toVersion'],'fromVersion':_0x3847b2['fromVersion'],'isEmptyCurrent':_0x3847b2['isEmptyCurrent']};}static['toObject'](_0x3f16f1){return function(revisionObject){for(const [_0x5e0394,_0x1d042e]of Object['entries'](revisionObject))void 0x0===_0x1d042e&&delete revisionObject[_0x5e0394];return revisionObject;}({'id':_0x3f16f1['revisionId'],'name':_0x3f16f1['name'],'creatorId':_0x3f16f1['creatorId'],'createdAt':_0x3f16f1['createdAt'],'fromVersion':_0x3f16f1['fromVersion'],'toVersion':_0x3f16f1['toVersion'],'isEmptyCurrent':_0x3f16f1['isEmptyCurrent'],'diffData':_0x3f16f1['diffData']?JSON['parse'](_0x3f16f1['diffData']):void 0x0,'attributes':_0x3f16f1['attributes'],'authorsIds':_0x3f16f1['authorsIds']});}}class RevisionHistoryGetRevisionResponse extends Message{['revisionId'];['name'];['creatorId'];['authorsIds'];['createdAt'];['diffData'];['attributes'];['fromVersion'];['toVersion'];['isEmptyCurrent'];static ['DESCRIPTOR_NAME']='RevisionHistoryGetRevisionResponse';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
60
+ ((()=>RevisionDescriptor['DESCRIPTOR'])());constructor(_0x127dc5,_0x33c09e,creatorId,authorsIds,createdAt,diffData,attributes,_0xeac478,toVersion,isEmptyCurrent){super(),this['revisionId']=_0x127dc5,this['name']=_0x33c09e,this['creatorId']=creatorId,this['authorsIds']=authorsIds,this['createdAt']=createdAt,this['diffData']=diffData,this['attributes']=attributes,this['fromVersion']=_0xeac478,this['toVersion']=toVersion,this['isEmptyCurrent']=isEmptyCurrent;}['toJSON'](){return RevisionDescriptor['toJSON'](this);}['toObject'](){return RevisionDescriptor['toObject'](this);}static['create'](_0x2115de){return new RevisionHistoryGetRevisionResponse(_0x2115de['revisionId'],_0x2115de['name'],_0x2115de['creatorId'],_0x2115de['authorsIds'],_0x2115de['createdAt'],_0x2115de['diffData'],_0x2115de['attributes'],_0x2115de['fromVersion'],_0x2115de['toVersion'],_0x2115de['isEmptyCurrent']);}static['fromJSON'](_0x541ad7){return new RevisionHistoryGetRevisionResponse(_0x541ad7['revisionId'],_0x541ad7['name'],_0x541ad7['creatorId'],_0x541ad7['authorsIds']?JSON['parse'](_0x541ad7['authorsIds']):void 0x0,_0x541ad7['createdAt']?new Date(_0x541ad7['createdAt']):void 0x0,_0x541ad7['diffData'],_0x541ad7['attributes']?JSON['parse'](_0x541ad7['attributes']):void 0x0,_0x541ad7['fromVersion'],_0x541ad7['toVersion'],_0x541ad7['isEmptyCurrent']);}}class RevisionHistoryUpdateRevisionsMessage extends Message{['documentId'];['requestId'];['revisions'];static ['TYPE']='124';static ['READABLE_TYPE_NAME']='updateRevisions';static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2},'revisions':{'type':'RevisionDescriptor','id':0x3,'rule':'repeated'}}};constructor(documentId,requestId,_0x345ed0){super(),this['documentId']=documentId,this['requestId']=requestId,this['revisions']=_0x345ed0;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toJSON'])};}['toObject'](){return{'documentId':this['documentId'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toObject'])};}static['create'](_0x550c3f){return new RevisionHistoryUpdateRevisionsMessage(_0x550c3f['documentId'],_0x550c3f['requestId'],_0x550c3f['revisions']['map'](RevisionDescriptor['create']));}static['fromJSON'](_0x83da24){return new RevisionHistoryUpdateRevisionsMessage(_0x83da24['documentId'],_0x83da24['requestId'],_0x83da24['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryUpdateRevisionsResponse extends Message{['requestId'];static ['DESCRIPTOR_NAME']='RevisionHistoryUpdateRevisionsResponse';static ['DESCRIPTOR']={'fields':{'requestId':{'type':'uint32','id':0x1}}};constructor(requestId){super(),this['requestId']=requestId;}['toJSON'](){return{'requestId':this['requestId']};}static['fromJSON'](_0x402e9c){return new RevisionHistoryUpdateRevisionsResponse(_0x402e9c['requestId']);}}class RevisionHistoryConnectMessage extends Message{['documentId'];static ['TYPE']='121';static ['READABLE_TYPE_NAME']='connectToRevisionHistory';static ['DESCRIPTOR_NAME']='RevisionHistoryConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new RevisionHistoryConnectMessage(object['documentId']);}}class RevisionHistoryConnectResponse extends Message{['channel'];['requestId'];['revisions'];static ['DESCRIPTOR_NAME']='RevisionHistoryConnectResponse';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
61
+ ((()=>({'fields':{'channel':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2},'revisions':{'type':'RevisionDescriptor','id':0x3,'rule':'repeated'}}}))());constructor(_0x2b89da,requestId,_0x39e971){super(),this['channel']=_0x2b89da,this['requestId']=requestId,this['revisions']=_0x39e971;}['toJSON'](){return{'channel':this['channel'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toJSON'])};}['toObject'](){return{'channel':this['channel'],'requestId':this['requestId'],'revisions':this['revisions']['map'](RevisionDescriptor['toObject'])};}static['fromJSON'](_0x4fa49b){return new RevisionHistoryConnectResponse(_0x4fa49b['channel'],_0x4fa49b['requestId'],_0x4fa49b['revisions']['map'](RevisionDescriptor['fromJSON']));}}class RevisionHistoryReconnectMessage extends Message{['documentId'];['requestId'];static ['TYPE']='122';static ['READABLE_TYPE_NAME']='reconnectToRevisionHistory';static ['DESCRIPTOR_NAME']='RevisionHistoryReconnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'requestId':{'type':'uint32','id':0x2}}};constructor(documentId,requestId){super(),this['documentId']=documentId,this['requestId']=requestId;}['toJSON'](){return{'documentId':this['documentId'],'requestId':this['requestId']};}static['fromJSON'](object){return new RevisionHistoryReconnectMessage(object['documentId'],object['requestId']);}}class ServiceNotConnectedError extends CKEditorCloudServicesError{constructor(_0xd224ba,context){super(_0xd224ba+'\x20Service\x20is\x20not\x20connected.',context);}}class RevisionHistoryService extends/* #__PURE__ -- @preserve */
62
+ EmitterMixin(){['_documentId'];['_isConnected'];['_wsGateway'];['_channel'];static ['_SERVICE']=0xc;constructor(_documentId){super(),this['_documentId']=_documentId,this['_isConnected']=!0x1;}get['isConnected'](){return this['_isConnected'];}['connect'](wsGateway){return this['_isConnected']?Promise['resolve']():this['_connect'](wsGateway,new RevisionHistoryConnectMessage(this['_documentId']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['fire']('disconnected'),this['stopListening']());}['reconnect'](wsGateway,lastRequestId){if(this['isConnected'])throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',wsGateway);return this['_connect'](wsGateway,new RevisionHistoryReconnectMessage(this['_documentId'],lastRequestId));}async['updateRevisions'](_0x7ea6e,lastRequestId){const _0x21d36d=RevisionHistoryUpdateRevisionsMessage['create']({'documentId':this['_documentId'],'requestId':lastRequestId,'revisions':_0x7ea6e}),_0x46271c=await this['_sendRequest'](RevisionHistoryUpdateRevisionsMessage['TYPE'],_0x21d36d),{requestId:requestId}=MessagesCompressor['decode'](_0x46271c,RevisionHistoryUpdateRevisionsResponse);return requestId;}async['getRevision'](_0x42d83b){const _0x10518c=new RevisionHistoryGetRevisionMessage(this['_documentId'],_0x42d83b),_0x11e3f6=await this['_sendRequest'](RevisionHistoryGetRevisionMessage['TYPE'],_0x10518c);return MessagesCompressor['decode'](_0x11e3f6,RevisionHistoryGetRevisionResponse)['toObject']();}async['_connect'](wsGateway,_0x4b49fb){if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x597d9=await wsGateway['_sendRequest'](0xc,_0x4b49fb['constructor']['TYPE'],MessagesCompressor['encode'](_0x4b49fb)),{channel:_0x3ed160,requestId:requestId,revisions:_0x7d759a}=MessagesCompressor['decode'](_0x597d9,RevisionHistoryConnectResponse)['toObject']();return this['listenTo'](wsGateway,'change:state',(_0x21020e,_0x2ca1ed,state)=>this['_onWsGatewayStateChange'](state),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,_0x3ed160),this['_isConnected']=!0x0,this['fire']('connected'),{'revisions':_0x7d759a,'requestId':requestId};}['_connectToChannel'](wsGateway,_0x402028){this['_channel']=wsGateway['_getChannel'](RevisionHistoryService['_SERVICE'],_0x402028),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](RevisionHistoryUpdateRevisionsMessage['TYPE']),(event,data)=>{const {documentId:documentId,requestId:requestId,revisions:_0x1b885f}=MessagesCompressor['decode'](data,RevisionHistoryUpdateRevisionsMessage)['toObject']();this['fire']('revisionsUpdated',{'documentId':documentId,'requestId':requestId,'revisionsData':_0x1b885f});});}['_onWsGatewayStateChange'](_0x5d980b){_0x5d980b===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](method,_0x513647){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Revision\x20History',this);return this['_wsGateway']['_sendRequest'](0xc,method,MessagesCompressor['encode'](_0x513647));}}class AddSuggestionMessage extends Message{['id'];['documentId'];['type'];['data'];['originalSuggestionId'];['attributes'];static ['TYPE']='101';static ['READABLE_TYPE_NAME']='addSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesAddSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'data':{'type':'string','id':0x4},'originalSuggestionId':{'type':'string','id':0x5},'attributes':{'type':'string','id':0x6}}};constructor(_0x5f011d,documentId,type,data={},originalSuggestionId=null,attributes=null){super(),this['id']=_0x5f011d,this['documentId']=documentId,this['type']=type,this['data']=data,this['originalSuggestionId']=originalSuggestionId,this['attributes']=attributes;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'type':this['type'],'data':JSON['stringify'](this['data']),'originalSuggestionId':this['originalSuggestionId'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](object){return new AddSuggestionMessage(object['id'],object['documentId'],object['type'],JSON['parse'](object['data']),object['originalSuggestionId']??null,object['attributes']?JSON['parse'](object['attributes']):null);}}class AddSuggestionResponse extends Message{['id'];['authorId'];['type'];['hasComments'];['state'];['data'];['attributes'];['createdAt'];static ['DESCRIPTOR_NAME']='TrackChangesAddSuggestionResponse';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'authorId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'data':{'type':'string','id':0x5},'hasComments':{'type':'bool','id':0x6},'state':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8}}};constructor(_0x4fcca1,authorId,type,createdAt,hasComments,state,data={},attributes=null){super(),this['id']=_0x4fcca1,this['authorId']=authorId,this['type']=type,this['hasComments']=hasComments,this['state']=state,this['data']=data,this['attributes']=attributes,this['createdAt']=createdAt?new Date(createdAt):void 0x0;}['toJSON'](){return{'id':this['id'],'authorId':this['authorId'],'type':this['type'],'createdAt':this['createdAt']?.['toISOString'](),'data':JSON['stringify'](this['data']),'hasComments':this['hasComments'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](data){return new AddSuggestionResponse(data['id'],data['authorId'],data['type'],data['createdAt'],data['hasComments'],data['state'],JSON['parse'](data['data']),data['attributes']?JSON['parse'](data['attributes']):null);}}class GetSuggestionMessage extends Message{['id'];['documentId'];static ['TYPE']='103';static ['READABLE_TYPE_NAME']='getSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesGetSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x4b35cc,documentId){super(),this['id']=_0x4b35cc,this['documentId']=documentId;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId']};}static['fromJSON'](object){return new GetSuggestionMessage(object['id'],object['documentId']);}}class GetSuggestionResponse extends Message{['id'];['authorId'];['type'];['hasComments'];['state'];['data'];['attributes'];['createdAt'];static ['DESCRIPTOR_NAME']='TrackChangesGetSuggestionResponse';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'authorId':{'type':'string','id':0x2},'type':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'data':{'type':'string','id':0x5},'hasComments':{'type':'bool','id':0x6},'state':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8}}};constructor(_0x204499,authorId,type,createdAt,hasComments,state,data={},attributes=null){super(),this['id']=_0x204499,this['authorId']=authorId,this['type']=type,this['hasComments']=hasComments,this['state']=state,this['data']=data,this['attributes']=attributes,this['createdAt']=new Date(createdAt);}['toJSON'](){return{'id':this['id'],'authorId':this['authorId'],'type':this['type'],'createdAt':this['createdAt']['toISOString'](),'data':JSON['stringify'](this['data']),'hasComments':this['hasComments'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](data){return new GetSuggestionResponse(data['id'],data['authorId'],data['type'],data['createdAt'],data['hasComments'],data['state'],JSON['parse'](data['data']),data['attributes']?JSON['parse'](data['attributes']):null);}}class GetAllSuggestionsMessage extends Message{['documentId'];static ['TYPE']='102';static ['READABLE_TYPE_NAME']='getAllSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesGetAllSuggestionMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new GetAllSuggestionsMessage(object['documentId']);}}class SuggestionDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='SuggestionDescriptor';static ['DESCRIPTOR']={'fields':{'id':{'id':0x1,'type':'string'},'authorId':{'id':0x2,'type':'string'},'type':{'id':0x3,'type':'string'},'createdAt':{'id':0x4,'type':'string'},'data':{'id':0x5,'type':'string'},'hasComments':{'id':0x6,'type':'bool'},'state':{'id':0x7,'type':'string'},'attributes':{'id':0x8,'type':'string'}}};static['toJSON'](suggestion){return{...suggestion,'data':suggestion['data']?JSON['stringify'](suggestion['data']):suggestion['data'],'attributes':suggestion['attributes']?JSON['stringify'](suggestion['attributes']):suggestion['attributes'],'createdAt':suggestion['createdAt']?.['toISOString']()};}static['fromJSON'](suggestion){return{...suggestion,'data':suggestion['data']?JSON['parse'](suggestion['data']):suggestion['data'],'attributes':suggestion['attributes']?JSON['parse'](suggestion['attributes']):suggestion['attributes'],'createdAt':suggestion['createdAt']?new Date(suggestion['createdAt']):void 0x0};}}class GetAllSuggestionResponse extends Message{['_suggestions'];['_suggestionsV2'];['suggestions'];static ['DESCRIPTOR_NAME']='TrackChangesGetAllSuggestionsResponse';static ['DESCRIPTOR']={'fields':{'suggestions':{'type':'string','rule':'repeated','id':0x1},'suggestionsV2':{'type':'SuggestionDescriptor','rule':'repeated','id':0x2}}};constructor(_suggestions,_suggestionsV2){super(),this['_suggestions']=_suggestions,this['_suggestionsV2']=_suggestionsV2,this['suggestions']=_suggestionsV2?.['length']?_suggestionsV2:_suggestions;}['toJSON'](){return{'suggestions':this['_suggestions']?.['map'](suggestion=>JSON['stringify'](suggestion)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](data){return new GetAllSuggestionResponse(data['suggestions']?.['map'](_suggestionFromString),data['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}}function _suggestionFromString(suggestion){const parsedSuggestion=JSON['parse'](suggestion);return parsedSuggestion['createdAt']=parsedSuggestion['createdAt']?new Date(parsedSuggestion['createdAt']):void 0x0,parsedSuggestion;}class UpdateSuggestionMessage extends Message{['id'];['documentId'];['hasComments'];['isHasCommentsModified'];['state'];['attributes'];static ['TYPE']='104';static ['READABLE_TYPE_NAME']='updateSuggestion';static ['DESCRIPTOR_NAME']='TrackChangesUpdateSuggestionMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'hasComments':{'type':'bool','id':0x3},'isHasCommentsModified':{'type':'bool','id':0x4},'state':{'type':'string','id':0x5},'attributes':{'type':'string','id':0x6}}};constructor(_0x80cb38,documentId,hasComments,isHasCommentsModified,state,attributes=null){super(),this['id']=_0x80cb38,this['documentId']=documentId,this['hasComments']=hasComments,this['isHasCommentsModified']=isHasCommentsModified,this['state']=state,this['attributes']=attributes;}['toJSON'](){return{'id':this['id'],'documentId':this['documentId'],'hasComments':this['hasComments'],'isHasCommentsModified':this['isHasCommentsModified'],'state':this['state'],'attributes':JSON['stringify'](this['attributes'])};}static['fromJSON'](object){return new UpdateSuggestionMessage(object['id'],object['documentId'],object['hasComments'],object['isHasCommentsModified'],object['state'],object['attributes']?JSON['parse'](object['attributes']):null);}}let ConnectMessage$1=class ConnectMessage extends Message{['documentId'];static ['TYPE']='105';static ['READABLE_TYPE_NAME']='connectToSuggestions';static ['DESCRIPTOR_NAME']='TrackChangesConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new ConnectMessage(object['documentId']);}},ConnectResponse$1=class ConnectResponse extends Message{['channel'];['_suggestions'];['_suggestionsV2'];['suggestions'];static ['DESCRIPTOR_NAME']='TrackChangesConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'suggestions':{'type':'string','rule':'repeated','id':0x2},'suggestionsV2':{'type':'SuggestionDescriptor','rule':'repeated','id':0x3}}};constructor(_0x2e92a3,_suggestions,_suggestionsV2){super(),this['channel']=_0x2e92a3,this['_suggestions']=_suggestions,this['_suggestionsV2']=_suggestionsV2,this['suggestions']=_suggestionsV2?.['length']?_suggestionsV2:_suggestions;}['toJSON'](){return{'channel':this['channel'],'suggestions':this['_suggestions']?.['map'](suggestion=>JSON['stringify'](suggestion)),'suggestionsV2':this['_suggestionsV2']?.['map'](SuggestionDescriptor['toJSON'])};}static['fromJSON'](object){return new ConnectResponse(object['channel'],object['suggestions']?.['map'](suggestion=>JSON['parse'](suggestion)),object['suggestionsV2']?.['map'](SuggestionDescriptor['fromJSON']));}};class BatchUpdateSuggestionsStateMessage extends Message{['ids'];['documentId'];['state'];static ['TYPE']='106';static ['READABLE_TYPE_NAME']='batchUpdateSuggestionsState';static ['DESCRIPTOR_NAME']='TrackChangesBatchUpdateSuggestionsStateMessage';static ['DESCRIPTOR']={'fields':{'ids':{'type':'string','rule':'repeated','id':0x1},'documentId':{'type':'string','id':0x2},'state':{'type':'string','id':0x3}}};constructor(_0x2381b5,documentId,state){super(),this['ids']=_0x2381b5,this['documentId']=documentId,this['state']=state;}['toJSON'](){return{'ids':this['ids'],'documentId':this['documentId'],'state':this['state']};}static['fromJSON'](object){return new BatchUpdateSuggestionsStateMessage(object['ids'],object['documentId'],object['state']);}}class TrackChangesService extends/* #__PURE__ -- @preserve */
63
+ EmitterMixin(){['_documentId'];['_isConnected'];['_wsGateway'];['_channel'];static ['_SERVICE']=0xa;constructor(_documentId){super(),this['_documentId']=_documentId,this['_isConnected']=!0x1;}get['isConnected'](){return this['_isConnected'];}async['connect'](wsGateway){if(this['_isConnected'])return;if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);const connectMessage=new ConnectMessage$1(this['_documentId']);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x35d7ca=await wsGateway['_sendRequest'](0xa,ConnectMessage$1['TYPE'],MessagesCompressor['encode'](connectMessage)),connectResponse=MessagesCompressor['decode'](_0x35d7ca,ConnectResponse$1);return this['listenTo'](wsGateway,'change:state',(_0x490c81,_0x4fb2ac,_0x270dc1)=>this['_onWsGatewayStateChange'](_0x270dc1),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,connectResponse['channel']),this['_isConnected']=!0x0,this['fire']('connected'),connectResponse['suggestions'];}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['add'](_0x2fffc7,type,data,originalSuggestionId=null,attributes){const _0x3389f4=new AddSuggestionMessage(_0x2fffc7,this['_documentId'],type,data,originalSuggestionId,attributes),_0x24fddc=await this['_sendRequest'](AddSuggestionMessage['TYPE'],_0x3389f4);return MessagesCompressor['decode'](_0x24fddc,AddSuggestionResponse);}async['get'](_0x56b9f1,attempt=0x1){const _0x40feb8=new GetSuggestionMessage(_0x56b9f1,this['_documentId']);try{const _0x2ec193=await this['_sendRequest'](GetSuggestionMessage['TYPE'],_0x40feb8);return MessagesCompressor['decode'](_0x2ec193,GetSuggestionResponse);}catch(_0x16df20){if('CKEditorCloudServicesServerError'===_0x16df20['name']&&'404'===_0x16df20['code']&&attempt<0x5)return await(time=0x64*attempt,new Promise(_0x201ab6=>{setTimeout(_0x201ab6,time);})),this['get'](_0x56b9f1,attempt+0x1);if('CKEditorCloudServicesServerError'===_0x16df20['name'])throw _0x16df20;throw CKEditorCloudServicesServerError['fromPublicError'](_0x16df20);}var time;}async['getAll'](){const _0x396be2=new GetAllSuggestionsMessage(this['_documentId']),_0x36d51a=await this['_sendRequest'](GetAllSuggestionsMessage['TYPE'],_0x396be2),{suggestions:suggestions}=MessagesCompressor['decode'](_0x36d51a,GetAllSuggestionResponse);return suggestions;}async['update'](_0x3eb46e,_0x1d0213={}){const {hasComments:hasComments,state:state,attributes:attributes}=_0x1d0213,isHasCommentsUpdated=void 0x0!==hasComments,_0x1467f1=new UpdateSuggestionMessage(_0x3eb46e,this['_documentId'],hasComments,isHasCommentsUpdated,state,attributes);await this['_sendRequest'](UpdateSuggestionMessage['TYPE'],_0x1467f1);}async['batchUpdateState'](_0x1df820){const _0x340971=new BatchUpdateSuggestionsStateMessage(_0x1df820['ids'],this['_documentId'],_0x1df820['state']);await this['_sendRequest'](BatchUpdateSuggestionsStateMessage['TYPE'],_0x340971);}['_connectToChannel'](wsGateway,_0x290096){this['_channel']=wsGateway['_getChannel'](TrackChangesService['_SERVICE'],_0x290096),this['_channel']&&this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateSuggestionMessage['TYPE']),(event,data)=>{const updateSuggestionMessage=MessagesCompressor['decode'](data,UpdateSuggestionMessage);this['fire']('suggestionUpdated',updateSuggestionMessage);});}['_onWsGatewayStateChange'](_0x3a0ac8){_0x3a0ac8===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](method,_0x57f689){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Track\x20Changes',this);return this['_wsGateway']['_sendRequest'](0xa,method,MessagesCompressor['encode'](_0x57f689));}}class SessionsConnectResponse extends Message{['channel'];['sockets'];static ['DESCRIPTOR_NAME']='SessionsConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'sockets':{'rule':'repeated','type':'SessionsSocketDescriptor','id':0x2}}};constructor(_0x5963b1,sockets=[]){super(),this['channel']=_0x5963b1,this['sockets']=sockets;}['toJSON'](){return{'channel':this['channel'],'sockets':this['sockets']['map'](socket=>({'user':socket['userId'],'session':socket['id'],'role':socket['role'],'permissions':socket['permissions']}))};}static['fromJSON'](data){return new SessionsConnectResponse(data['channel'],data['sockets']['map'](socket=>({'id':socket['session'],'userId':socket['user'],'role':socket['role'],'permissions':socket['permissions']})));}}class SessionsConnectMessage extends Message{['id'];['sessionType'];static ['TYPE']='31';static ['READABLE_TYPE_NAME']='getConnectedSockets';static ['DESCRIPTOR_NAME']='SessionsConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'sessionType':{'type':'uint32','id':0x2}}};constructor(_0x2b138a,_0x1102a1){super(),this['id']=_0x2b138a,this['sessionType']=_0x1102a1;}['toJSON'](){return{'id':this['id'],'sessionType':this['sessionType']};}static['fromJSON'](data){return new SessionsConnectMessage(data['id'],data['sessionType']);}}class SocketConnectMessage extends Message{['id'];['userId'];['role'];['permissions'];static ['TYPE']='32';static ['READABLE_TYPE_NAME']='connectSocket';static ['DESCRIPTOR_NAME']='SocketConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'userId':{'type':'string','id':0x2},'role':{'type':'string','id':0x3},'permissions':{'rule':'repeated','type':'string','id':0x4}}};constructor(_0x1e1950,_0x23edd6,_0xff4d82,_0x52532b){super(),this['id']=_0x1e1950,this['userId']=_0x23edd6,this['role']=_0xff4d82,this['permissions']=_0x52532b;}['toJSON'](){return{'id':this['id'],'userId':this['userId']??void 0x0,'role':this['role']??void 0x0,'permissions':this['permissions']??void 0x0};}static['fromJSON'](data){return new SocketConnectMessage(data['id'],data['userId'],data['role'],data['permissions']);}}class SocketDisconnectMessage extends Message{['id'];static ['TYPE']='33';static ['READABLE_TYPE_NAME']='disconnectSocket';static ['DESCRIPTOR_NAME']='SocketDisconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1}}};constructor(_0x82c7e0){super(),this['id']=_0x82c7e0;}['toJSON'](){return{'id':this['id']};}static['fromJSON'](data){return new SocketDisconnectMessage(data['id']);}}class SessionCollection extends Collection{['_id'];['_sessionType'];['_handlers'];['_channel'];['_wsGateway'];['_connected'];['_eventsQueue'];['_isRunning'];constructor(_0x166fa8,_0xf8114){super({'idProperty':'id'}),this['_id']=_0x166fa8,this['_sessionType']=_0xf8114,this['_handlers']=new Map(),this['_eventsQueue']=[],this['_isRunning']=!0x1;}async['connect'](wsGateway){this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0xd8f3f1=new SessionsConnectMessage(this['_id'],this['_sessionType']);let sessionsConnectResponse;try{const _0x391c96=await this['_wsGateway']['_sendRequest'](0x3,SessionsConnectMessage['TYPE'],MessagesCompressor['encode'](_0xd8f3f1));sessionsConnectResponse=MessagesCompressor['decode'](_0x391c96,SessionsConnectResponse);}catch(_0x46aab1){sessionsConnectResponse=new SessionsConnectResponse(this['_id'],[]);}this['_connectToChannel'](this['_wsGateway'],sessionsConnectResponse['channel'],this['_sessionType']);const _0x168afd=await async function(wsGateway,_0x2a6da2){const _0x4ebcc6=_0x2a6da2['map'](socket=>socket['userId']),_0x2ad6f7=_0x4ebcc6['length']?await User['getMany'](wsGateway,_0x4ebcc6):[];return _0x2a6da2['map'](socket=>{const item={'id':socket['id'],'role':socket['role'],'permissions':socket['permissions']};return item['user']=socket['userId']&&_0x2ad6f7['find'](_0x1a9a41=>_0x1a9a41['id']===socket['userId'])||new User(),item;});}(this['_wsGateway'],sessionsConnectResponse['sockets']);for(const _0x36e4e7 of _0x168afd)super['add'](_0x36e4e7);this['_connected']=!0x0,this['fire']('connected'),this['listenTo'](this['_wsGateway'],'change:state',(_0x71692c,_0x5c5827,_0x27cfcd)=>this['_onWsGatewayStateChange'](_0x27cfcd),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),await this['_runQueue']();}['disconnect'](_0x4bedf8=!0x0){if(this['_connected']){for(this['_connected']=!0x1,this['_eventsQueue']=[];this['length'];)super['remove'](0x0);this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_wsGateway']&&_0x4bedf8&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['fire']('disconnected'),_0x4bedf8&&this['stopListening']();}}['add'](_0x2cb823,_0x51e76a){throw new TypeError('The\x20collection\x20is\x20read-only.');}['remove'](_0x2a5230){throw new TypeError('The\x20collection\x20is\x20read-only.');}['_connectToChannel'](wsGateway,_0x485690,_0x1566b0){this['_channel']=wsGateway['_getChannel'](_0x1566b0,_0x485690),this['_channel']&&(this['_addHandler'](this['_channel'],SocketConnectMessage['TYPE'],async data=>{const socketConnectMessage=MessagesCompressor['decode'](data,SocketConnectMessage);if(-0x1===this['getIndex'](socketConnectMessage['id'])){const socket={'id':socketConnectMessage['id'],'role':socketConnectMessage['role'],'permissions':socketConnectMessage['permissions']};socketConnectMessage['userId']&&(socket['user']=await User['get'](wsGateway,socketConnectMessage['userId'])),super['add'](socket);}}),this['_addHandler'](this['_channel'],SocketDisconnectMessage['TYPE'],data=>{const socketDisconnectMessage=MessagesCompressor['decode'](data,SocketDisconnectMessage);-0x1!==this['getIndex'](socketDisconnectMessage['id'])&&super['remove'](socketDisconnectMessage['id']);}));}async['_onWsGatewayStateChange'](state){state===WebSocketGateway['STATE_DISCONNECTED']&&this['disconnect'](!0x1),state===WebSocketGateway['STATE_CONNECTED']&&await this['connect'](this['_wsGateway']);}async['_runQueue'](){if(this['_isRunning']||!this['_connected'])return;let event;for(this['_isRunning']=!0x0;event=this['_eventsQueue']['shift']();){const _0x1b8b04=this['_handlers']['get'](event['eventName']);_0x1b8b04&&await _0x1b8b04(event['data']);}this['_isRunning']=!0x1;}['_addHandler'](_0x3d7a6f,eventType,_0x498203){const eventName=_0x3d7a6f['getEventName'](eventType,!0x0);this['listenTo'](_0x3d7a6f,eventName,async(event,data)=>{const _0x4434c2=event['name'];this['_eventsQueue']['push']({'eventName':_0x4434c2,'data':data}),await this['_runQueue']();}),this['_handlers']['set'](eventName,_0x498203);}}class Sessions{static async['getConnectedSessions'](wsGateway,_0x362c5f,_0x2a140f){const sessionCollection=new SessionCollection(_0x362c5f,_0x2a140f);return await sessionCollection['connect'](wsGateway),sessionCollection;}}class CollaborativeEditingConnectMessage extends Message{['id'];['buffers'];['types'];['bundleVersion'];['lastOperationId'];static ['TYPE']='11';static ['READABLE_TYPE_NAME']='connectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'lastOperationId':{'type':'string','id':0x5}}};constructor(_0x3623f3,_0xaac1dd,types,_0x492196,lastOperationId=''){super(),this['id']=_0x3623f3,this['buffers']=_0xaac1dd,this['types']=types,this['bundleVersion']=_0x492196,this['lastOperationId']=lastOperationId;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](data){return new CollaborativeEditingConnectMessage(data['id'],data['buffers'],data['types'],data['bundleVersion'],data['lastOperationId']);}}class OperationMetadataHelpers{static['prepareMetadataForOperations'](types,metadata){if(!(types&&types['length']&&metadata&&metadata['length']))return[];const result=[];let _0x2a6451=0x0;for(const type of types)if(0x0!==type){if(!metadata[_0x2a6451])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');result['push'](metadata[_0x2a6451]),_0x2a6451++;}else result['push'](result[result['length']-0x1]);return result;}static['removeUnnecessaryMetadata'](types,metadata){if(!(types&&types['length']&&metadata&&metadata['length']))return[];const result=[];for(let _0xa76956=0x0;_0xa76956<types['length'];_0xa76956++)if(0x0!==types[_0xa76956]){if(!metadata[_0xa76956])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');result['push'](metadata[_0xa76956]);}return result;}}class OperationMetadataDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='OperationMetadataDescriptor';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
64
+ ((()=>({'fields':{'userId':{'type':'string','id':0x1},'type':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}}))());static['toJSON']({createdAt:createdAt,...metadata}){const parsedMetadata={...metadata};return createdAt?.['toISOString']&&(parsedMetadata['createdAt']=createdAt['toISOString']()),parsedMetadata;}static['fromJSON']({createdAt:createdAt,...metadata}){const parsedMetadata={...metadata};return createdAt&&(parsedMetadata['createdAt']=new Date(createdAt)),parsedMetadata;}}class CollaborativeEditingUpdateMessage extends Message{['id'];['buffers'];['types'];['baseVersion'];['metadata'];['lastOperationId'];static ['TYPE']='13';static ['READABLE_TYPE_NAME']='updateDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingUpdateMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'baseVersion':{'type':'uint32','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x6},'lastOperationId':{'type':'string','id':0x7}}};constructor(_0x26f000,_0x5ac916,types,_0x474eb8,metadata=[],lastOperationId=''){super(),this['id']=_0x26f000,this['buffers']=_0x5ac916,this['types']=types,this['baseVersion']=_0x474eb8,this['metadata']=metadata,this['lastOperationId']=lastOperationId;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'lastOperationId':this['lastOperationId']};}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'metadata':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](data){return new CollaborativeEditingUpdateMessage(data['id'],data['buffers'],data['types'],data['baseVersion'],OperationMetadataHelpers['prepareMetadataForOperations'](data['types'],data['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),data['lastOperationId']);}}class CollaborativeEditingReconnectMessage extends Message{['id'];['lastKnowVersion'];['bundleVersion'];static ['TYPE']='12';static ['READABLE_TYPE_NAME']='reconnectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingReconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'lastKnowVersion':{'type':'uint32','id':0x3}}};constructor(_0x57f9f9,lastKnowVersion,_0xc6e822){super(),this['id']=_0x57f9f9,this['lastKnowVersion']=lastKnowVersion,this['bundleVersion']=_0xc6e822;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](data){return new CollaborativeEditingReconnectMessage(data['id'],data['lastKnowVersion'],data['bundleVersion']);}}class CollaborativeEditingResponse extends Message{['version'];['buffers'];['types'];['metadata'];['lastOperationId'];['lastOperationAcceptedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingResponse';static ['DESCRIPTOR']={'fields':{'version':{'type':'uint32','id':0x1},'buffers':{'rule':'repeated','type':'bytes','id':0x2},'types':{'rule':'repeated','type':'uint32','id':0x3},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x5},'lastOperationId':{'type':'string','id':0x6},'lastOperationAcceptedAt':{'type':'string','id':0x7}}};constructor(_0x357442,_0x28db95=[],types=[],metadata=[],lastOperationId='',lastOperationAcceptedAt=null){super(),this['version']=_0x357442,this['buffers']=_0x28db95,this['types']=types,this['metadata']=metadata,this['lastOperationId']=lastOperationId,this['lastOperationAcceptedAt']=lastOperationAcceptedAt;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']};}get['wereChangesApplied'](){return!this['types']?.['length'];}['toJSON'](){return{'version':this['version'],'buffers':this['buffers'],'types':this['types'],'metadata':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](data){return new CollaborativeEditingResponse(data['version'],data['buffers'],data['types'],OperationMetadataHelpers['prepareMetadataForOperations'](data['types'],data['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),data['lastOperationId'],data['lastOperationAcceptedAt']?new Date(data['lastOperationAcceptedAt']):null);}static['create'](data){return new CollaborativeEditingResponse(data['version'],data['buffers'],data['types'],data['metadata'],data['lastOperationId'],data['lastOperationAcceptedAt']?new Date(data['lastOperationAcceptedAt']):null);}}class CollaborativeEditingConnectResponse extends Message{['channel'];['version'];['buffers'];['types'];['offset'];['metadata'];['initData'];['sessionId'];['lastOperationId'];['sessionCreatedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectResponse';static ['DESCRIPTOR']=/* #__PURE__ -- @preserve */
65
+ ((()=>({'fields':{'channel':{'type':'string','id':0x1},'offset':{'type':'uint32','id':0x2},'version':{'type':'uint32','id':0x3},'buffers':{'rule':'repeated','type':'bytes','id':0x4},'types':{'rule':'repeated','type':'uint32','id':0x5},'metadata':{'rule':'repeated','type':OperationMetadataDescriptor['DESCRIPTOR_NAME'],'id':0x7},'initData':{'type':'string','id':0x8},'isInitialized':{'type':'bool','id':0x9},'sessionId':{'type':'string','id':0xa},'lastOperationId':{'type':'string','id':0xb},'sessionCreatedAt':{'type':'string','id':0xc}}}))());constructor(_0x38b4c7,_0x5692cb,_0x3f3270=[],types=[],offset=0x0,metadata=[],initData=null,_0x1a248f='',lastOperationId='',sessionCreatedAt=null){super(),this['channel']=_0x38b4c7,this['version']=_0x5692cb,this['buffers']=_0x3f3270,this['types']=types,this['offset']=offset,this['metadata']=metadata,this['initData']=initData,this['sessionId']=_0x1a248f,this['lastOperationId']=lastOperationId,this['sessionCreatedAt']=sessionCreatedAt;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']};}get['wereChangesApplied'](){return!this['types']?.['length']&&null===this['initData'];}['toJSON'](){return{'channel':this['channel'],'version':this['version'],'sessionId':this['sessionId'],'buffers':this['buffers'],'types':this['types'],'offset':this['offset'],'metadata':OperationMetadataHelpers['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](OperationMetadataDescriptor['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x53c30a){return new CollaborativeEditingConnectResponse(_0x53c30a['channel'],_0x53c30a['version'],_0x53c30a['buffers'],_0x53c30a['types'],_0x53c30a['offset'],_0x53c30a['metadata'],_0x53c30a['initData'],_0x53c30a['sessionId'],_0x53c30a['lastOperationId'],_0x53c30a['sessionCreatedAt']);}static['fromJSON'](data){let initData=null;return!0x0===data['isInitialized']?initData=data['initData']??'':'boolean'!=typeof data['isInitialized']&&data['initData']&&(initData=data['initData']),CollaborativeEditingConnectResponse['create']({'channel':data['channel'],'version':data['version'],'buffers':data['buffers'],'types':data['types'],'offset':data['offset'],'metadata':OperationMetadataHelpers['prepareMetadataForOperations'](data['types'],data['metadata'])['map'](OperationMetadataDescriptor['fromJSON']),'initData':initData,'sessionId':data['sessionId'],'lastOperationId':data['lastOperationId'],'sessionCreatedAt':data['sessionCreatedAt']?new Date(data['sessionCreatedAt']):null});}}class GetDocumentDetailsResponse extends Message{['lastDocumentSession'];['currentDocumentSession'];static ['DESCRIPTOR_NAME']='GetDocumentDetailsResponse';static ['DESCRIPTOR']={'fields':{'lastDocumentSessionId':{'type':'string','id':0x1},'lastDocumentSessionOperationId':{'type':'string','id':0x2},'currentDocumentSessionId':{'type':'string','id':0x3},'currentDocumentSessionVersion':{'type':'uint32','id':0x4},'currentDocumentSessionOperationId':{'type':'string','id':0x5}}};constructor(lastDocumentSession,currentDocumentSession){super(),this['lastDocumentSession']=lastDocumentSession,this['currentDocumentSession']=currentDocumentSession;}get['data'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}['toJSON'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}static['fromJSON'](data){const lastDocumentSession=data['lastDocumentSessionId']?{'id':data['lastDocumentSessionId'],'lastOperationId':data['lastDocumentSessionOperationId']}:void 0x0,currentDocumentSession=data['currentDocumentSessionId']?{'lastOperationId':data['currentDocumentSessionOperationId'],'version':data['currentDocumentSessionVersion'],'id':data['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(lastDocumentSession,currentDocumentSession);}}class GetDocumentDetailsMessage extends Message{['documentId'];static ['TYPE']='14';static ['READABLE_TYPE_NAME']='getDocumentDetails';static ['DESCRIPTOR_NAME']='GetDocumentDetailsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'environmentId':{'type':'string','id':0x2}}};constructor(documentId){super(),this['documentId']=documentId;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](data){return new GetDocumentDetailsMessage(data['documentId']);}}class CollaborativeEditingService extends/* #__PURE__ -- @preserve */
66
+ EmitterMixin(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x210af2,_0xf8391d){if(super(),!_0x210af2)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0xf8391d??v4(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x210af2;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](wsGateway,data={'buffers':[],'types':[]},lastOperationId){const _0x4115d9=new CollaborativeEditingConnectMessage(this['getId'](),data['buffers'],data['types'],this['_bundleVersion'],lastOperationId);return this['_connect'](wsGateway,_0x4115d9);}['reconnect'](wsGateway,lastKnowVersion){if(this['isConnected']())throw new CKEditorCloudServicesError('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',wsGateway);return this['_connect'](wsGateway,new CollaborativeEditingReconnectMessage(this['getId'](),lastKnowVersion,this['_bundleVersion']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['getDocumentDetails'](){const _0x37eb6a=new GetDocumentDetailsMessage(this['getId']());if(!this['_wsGateway'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0x382af=await this['_wsGateway']['_sendRequest'](0x1,GetDocumentDetailsMessage['TYPE'],MessagesCompressor['encode'](_0x37eb6a));return MessagesCompressor['decode'](_0x382af,GetDocumentDetailsResponse);}async['sendOperations'](data,_0x21e681,lastOperationId){if(!data||!data['types']||!data['types']['length'])throw new CKEditorCloudServicesError('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0xc04ba5='number'==typeof _0x21e681?_0x21e681:parseInt(_0x21e681);if(!Number['isInteger'](_0xc04ba5)||_0xc04ba5<0x0)throw new CKEditorCloudServicesError('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x20bf30=new CollaborativeEditingUpdateMessage(this['getId'](),data['buffers'],data['types'],_0xc04ba5,[],lastOperationId);if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);const _0xfe3143=await this['_wsGateway']['_sendRequest'](0x1,CollaborativeEditingUpdateMessage['TYPE'],MessagesCompressor['encode'](_0x20bf30));return MessagesCompressor['decode'](_0xfe3143,CollaborativeEditingResponse);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await Sessions['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](wsGateway,_0x553ba2){return Sessions['getConnectedSessions'](wsGateway,_0x553ba2,0x1);}async['_connect'](wsGateway,_0x249726){if(this['isConnected']())return;if(wsGateway['state']!==WebSocketGateway['STATE_CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x1ade29=await wsGateway['_sendRequest'](0x1,_0x249726['constructor']['TYPE'],MessagesCompressor['encode'](_0x249726)),collaborativeEditingConnectResponse=MessagesCompressor['decode'](_0x1ade29,CollaborativeEditingConnectResponse);return this['listenTo'](wsGateway,'change:state',(_0x64fbc0,_0x539c6c,_0x446c4a)=>this['_onWsGatewayStateChange'](_0x446c4a),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,collaborativeEditingConnectResponse['channel']),this['_isConnected']=!0x0,this['fire']('connected'),collaborativeEditingConnectResponse;}['_connectToChannel'](wsGateway,_0x144dde){this['_channel']=wsGateway['_getChannel'](0x1,_0x144dde),this['listenTo'](this['_channel'],this['_channel']['getEventName'](CollaborativeEditingUpdateMessage['TYPE']),(event,data)=>{const updateMessage=MessagesCompressor['decode'](data,CollaborativeEditingUpdateMessage);this['fire']('operationsReceived',updateMessage['baseVersion'],updateMessage['data'],updateMessage['metadata']);});}['_onWsGatewayStateChange'](_0x5c8bee){_0x5c8bee===WebSocketGateway['STATE_DISCONNECTED']&&this['disconnect']();}}class CommentDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'commentThreadId':{'id':0x2,'type':'string'},'userId':{'id':0x3,'type':'string'},'content':{'id':0x4,'type':'string'},'documentId':{'id':0x5,'type':'string'},'createdAt':{'id':0x6,'type':'string'},'attributes':{'id':0x7,'type':'string'}}};static['toJSON'](comment){return{...comment,'createdAt':comment['createdAt']?.['toISOString'](),'attributes':comment['attributes']?JSON['stringify'](comment['attributes']):null};}static['fromJSON'](comment){return{...comment,'createdAt':new Date(comment['createdAt']),'attributes':comment['attributes']?JSON['parse'](comment['attributes']):null};}}class CommentsThreadDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentsThreadDescriptor';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4},'context':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'deletedAt':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8},'unlinkedAt':{'type':'string','id':0x9}}};static['toJSON'](thread){return{...thread,'createdAt':thread['createdAt']?.['toISOString'](),'deletedAt':thread['deletedAt']?.['toISOString'](),'resolvedAt':thread['resolvedAt']?.['toISOString'](),'attributes':thread['attributes']?JSON['stringify'](thread['attributes']):null,'context':thread['context']?JSON['stringify'](thread['context']):thread['context'],'comments':thread['comments']?.['map'](CommentDescriptor['toJSON']),'unlinkedAt':thread['unlinkedAt']?.['toISOString']()};}static['fromJSON'](thread){return{...thread,'createdAt':thread['createdAt']?new Date(thread['createdAt']):void 0x0,'deletedAt':thread['deletedAt']?new Date(thread['deletedAt']):void 0x0,'resolvedAt':thread['resolvedAt']?new Date(thread['resolvedAt']):void 0x0,'attributes':thread['attributes']?JSON['parse'](thread['attributes']):null,'context':thread['context']?JSON['parse'](thread['context']):void 0x0,'comments':thread['comments']?.['map'](CommentDescriptor['fromJSON']),'unlinkedAt':thread['unlinkedAt']?new Date(thread['unlinkedAt']):void 0x0};}}class AddCommentMessage extends Message{['documentId'];['commentThreadId'];['content'];['commentId'];['userId'];['attributes'];['commentThread'];['createdAt'];static ['TYPE']='91';static ['READABLE_TYPE_NAME']='addComment';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'content':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3},'commentId':{'type':'string','id':0x4},'createdAt':{'type':'string','id':0x5},'userId':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'commentThread':{'type':'CommentsThreadDescriptor','id':0x8}}};constructor(documentId,commentThreadId,content,commentId='',createdAt,_0x38d3b6='',attributes=null,commentThread){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['content']=content,this['commentId']=commentId,this['userId']=_0x38d3b6,this['attributes']=attributes,this['commentThread']=commentThread,this['createdAt']=createdAt?new Date(createdAt):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'content':this['content'],'documentId':this['documentId'],'commentId':this['commentId'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'userId':this['userId'],'attributes':JSON['stringify'](this['attributes']),'commentThread':this['commentThread']?CommentsThreadDescriptor['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](object){return new AddCommentMessage(object['documentId'],object['commentThreadId'],object['content'],object['commentId']?object['commentId']:void 0x0,object['createdAt']?new Date(object['createdAt']):void 0x0,object['userId']?object['userId']:void 0x0,object['attributes']?JSON['parse'](object['attributes']):{},object['commentThread']?CommentsThreadDescriptor['fromJSON'](object['commentThread']):void 0x0);}}class AddCommentResponse extends Message{['commentThreadId'];['commentId'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};constructor(commentThreadId,commentId,createdAt){super(),this['commentThreadId']=commentThreadId,this['commentId']=commentId,this['createdAt']=new Date(createdAt);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'createdAt':this['createdAt']['toISOString']()};}static['fromJSON'](data){return new AddCommentResponse(data['commentThreadId'],data['commentId'],data['createdAt']);}}class ConnectMessage extends Message{['documentId'];static ['TYPE']='92';static ['READABLE_TYPE_NAME']='connectToComment';static ['DESCRIPTOR_NAME']='CommentsV2ConnectMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new ConnectMessage(object['documentId']);}}class ConnectResponse extends Message{['channel'];['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2ConnectResponse';static ['DESCRIPTOR']={'fields':{'channel':{'type':'string','id':0x1},'threads':{'type':'string','rule':'repeated','id':0x2},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x3}}};constructor(_0x178669,_threads,_threadsV2){super(),this['channel']=_0x178669,this['_threads']=_threads,this['_threadsV2']=_threadsV2,this['threads']=_threadsV2?.['length']?_threadsV2:_threads;}['toJSON'](){return{'channel':this['channel'],'threads':this['_threads']?.['map'](thread=>JSON['stringify'](thread)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](object){return new ConnectResponse(object['channel'],object['threads']?.['map'](thread=>JSON['parse'](thread)),object['threadsV2']?.['map'](CommentsThreadDescriptor['fromJSON']));}}class RemoveCommentMessage extends Message{['documentId'];['commentThreadId'];['commentId'];static ['TYPE']='95';static ['READABLE_TYPE_NAME']='removeComment';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3}}};constructor(documentId,commentThreadId,commentId){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['commentId']=commentId;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId']};}static['fromJSON'](object){return new RemoveCommentMessage(object['documentId'],object['commentThreadId'],object['commentId']);}}class RemoveCommentThreadMessage extends Message{['documentId'];['commentThreadId'];static ['TYPE']='97';static ['READABLE_TYPE_NAME']='removeCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2RemoveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(documentId,commentThreadId){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](object){return new RemoveCommentThreadMessage(object['documentId'],object['commentThreadId']);}}class UpdateCommentMessage extends Message{['documentId'];['commentThreadId'];['commentId'];['content'];['attributes'];['isAttributesUpdated'];['commentThread'];static ['TYPE']='96';static ['READABLE_TYPE_NAME']='updateComment';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'commentId':{'type':'string','id':0x2},'content':{'type':'string','id':0x3},'documentId':{'type':'string','id':0x4},'attributes':{'type':'string','id':0x5},'isAttributesUpdated':{'type':'bool','id':0x6},'commentThread':{'type':'CommentsThreadDescriptor','id':0x7}}};constructor(documentId,commentThreadId,commentId,content,attributes=null,isAttributesUpdated=!0x1,commentThread){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['commentId']=commentId,this['content']=content,this['attributes']=attributes,this['isAttributesUpdated']=isAttributesUpdated,this['commentThread']=commentThread;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'commentId':this['commentId'],'content':this['content'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'isAttributesUpdated':this['isAttributesUpdated'],'commentThread':this['commentThread']?CommentsThreadDescriptor['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](object){return new UpdateCommentMessage(object['documentId'],object['commentThreadId'],object['commentId'],object['content'],object['attributes']?JSON['parse'](object['attributes']):null,object['isAttributesUpdated'],object['commentThread']?CommentsThreadDescriptor['fromJSON'](object['commentThread']):void 0x0);}}class GetCommentThreadMessage extends Message{['commentThreadId'];['documentId'];static ['TYPE']='93';static ['READABLE_TYPE_NAME']='getComment';static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(commentThreadId,documentId){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId']};}static['fromJSON'](object){return new GetCommentThreadMessage(object['commentThreadId'],object['documentId']);}}class GetCommentThreadResponse extends Message{['commentThreadId'];['_comments'];['_commentsV2'];['resolvedBy'];['comments'];['createdAt'];['deletedAt'];['resolvedAt'];['attributes'];['context'];['unlinkedAt'];static ['DESCRIPTOR_NAME']='CommentsV2GetCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'string','rule':'repeated','id':0x2},'commentsV2':{'type':'CommentDescriptor','rule':'repeated','id':0x3},'resolvedAt':{'type':'string','id':0x4},'resolvedBy':{'type':'string','id':0x5},'context':{'type':'string','id':0x6},'createdAt':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'attributes':{'type':'string','id':0x9},'unlinkedAt':{'type':'string','id':0xa}}};constructor(commentThreadId,_comments,_commentsV2,attributes,_0x204d91,context,createdAt,deletedAt,resolvedAt,unlinkedAt){super(),this['commentThreadId']=commentThreadId,this['_comments']=_comments,this['_commentsV2']=_commentsV2,this['resolvedBy']=_0x204d91,this['comments']=_commentsV2?.['length']?_commentsV2:_comments,this['createdAt']=createdAt?new Date(createdAt):void 0x0,this['deletedAt']='string'==typeof deletedAt?new Date(deletedAt):deletedAt,this['resolvedAt']='string'==typeof resolvedAt?new Date(resolvedAt):resolvedAt,this['unlinkedAt']='string'==typeof unlinkedAt?new Date(unlinkedAt):unlinkedAt,this['attributes']='string'==typeof attributes?JSON['parse'](attributes):attributes,this['context']='string'==typeof context?JSON['parse'](context):context;}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'comments':this['_comments']?.['map'](comment=>JSON['stringify'](comment)),'commentsV2':this['_commentsV2']?.['map'](CommentDescriptor['toJSON']),'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'resolvedBy':this['resolvedBy'],'createdAt':this['createdAt']?.['toISOString'](),'deletedAt':this['deletedAt']?.['toISOString'](),'resolvedAt':this['resolvedAt']?.['toISOString'](),'unlinkedAt':this['unlinkedAt']?.['toISOString']()};}static['fromJSON'](object){return new GetCommentThreadResponse(object['commentThreadId'],object['comments']?.['map'](comment=>function(commentString){const comment=JSON['parse'](commentString);return{...comment,'createdAt':new Date(comment['createdAt'])};}(comment)),object['commentsV2']?.['map'](CommentDescriptor['fromJSON']),object['attributes']?JSON['parse'](object['attributes']):object['attributes'],object['resolvedBy'],object['context']?JSON['parse'](object['context']):object['context'],object['createdAt'],object['deletedAt'],object['resolvedAt'],object['unlinkedAt']);}}class GetDocumentThreadsMessage extends Message{['documentId'];static ['TYPE']='94';static ['READABLE_TYPE_NAME']='getDocumentThreads';static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1}}};constructor(documentId){super(),this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](object){return new GetDocumentThreadsMessage(object['documentId']);}}class GetDocumentThreadsResponse extends Message{['_threads'];['_threadsV2'];['threads'];static ['DESCRIPTOR_NAME']='CommentsV2GetDocumentThreadsResponse';static ['DESCRIPTOR']={'fields':{'threads':{'type':'string','rule':'repeated','id':0x1},'threadsV2':{'type':'CommentsThreadDescriptor','rule':'repeated','id':0x2}}};constructor(_threads,_threadsV2){super(),this['_threads']=_threads,this['_threadsV2']=_threadsV2,this['threads']=_threadsV2?.['length']?_threadsV2:_threads;}['toJSON'](){return{'threads':this['_threads']?.['map'](thread=>JSON['stringify'](thread)),'threadsV2':this['_threadsV2']?.['map'](CommentsThreadDescriptor['toJSON'])};}static['fromJSON'](object){return new GetDocumentThreadsResponse(object['threads']?.['map'](thread=>function(threadString){const threadRaw=JSON['parse'](threadString),thread={...threadRaw};return threadRaw['comments']&&(thread['comments']=threadRaw['comments']?.['map'](comment=>({...comment,'createdAt':new Date(comment['createdAt'])}))),thread;}(thread)),object['threadsV2']?.['map'](CommentsThreadDescriptor['fromJSON']));}}class CommentThreadAddedCommentDescriptor extends Descriptor{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](comment){return{'commentId':comment['commentId'],'createdAt':comment['createdAt']?.['toISOString']()};}static['fromJSON'](comment){return{'commentId':comment['commentId'],'createdAt':new Date(comment['createdAt'])};}}class AddCommentThreadResponse extends Message{['commentThreadId'];['comments'];['createdAt'];static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'createdAt':{'type':'string','id':0x2},'comments':{'type':'CommentThreadAddedCommentDescriptor','rule':'repeated','id':0x3}}};constructor(commentThreadId,createdAt,comments=[]){super(),this['commentThreadId']=commentThreadId,this['comments']=comments,this['createdAt']=new Date(createdAt);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'createdAt':this['createdAt']['toISOString'](),'comments':this['comments']['map'](comment=>CommentThreadAddedCommentDescriptor['toJSON'](comment))};}static['fromJSON'](data){return new AddCommentThreadResponse(data['commentThreadId'],data['createdAt'],data['comments']['map'](comment=>CommentThreadAddedCommentDescriptor['fromJSON'](comment)));}}class AddCommentThreadMessage extends Message{['documentId'];['commentThreadId'];['comments'];['context'];['resolvedBy'];['attributes'];['createdAt'];['resolvedAt'];['deletedAt'];static ['TYPE']='140';static ['READABLE_TYPE_NAME']='addCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'commentThreadId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'resolvedAt':{'type':'string','id':0x5},'resolvedBy':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x9}}};constructor(documentId,commentThreadId,comments=[],context,_0x508af7=null,createdAt=null,resolvedAt=null,deletedAt=null,attributes=null){super(),this['documentId']=documentId,this['commentThreadId']=commentThreadId,this['comments']=comments,this['context']=context,this['resolvedBy']=_0x508af7,this['attributes']=attributes,this['createdAt']=createdAt?new Date(createdAt):'',this['resolvedAt']=resolvedAt?new Date(resolvedAt):'',this['deletedAt']=deletedAt?new Date(deletedAt):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']instanceof Date?this['resolvedAt']['toISOString']():this['resolvedAt'],'deletedAt':this['deletedAt']instanceof Date?this['deletedAt']['toISOString']():this['deletedAt'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'comments':this['comments']?.['map'](_0x4af872=>CommentDescriptor['toJSON'](_0x4af872))};}static['fromJSON'](object){return new AddCommentThreadMessage(object['documentId'],object['commentThreadId'],object['comments']?.['map'](_0x2963f3=>CommentDescriptor['fromJSON']({..._0x2963f3,'documentId':object['documentId'],'commentThreadId':object['commentThreadId']})),object['context']?JSON['parse'](object['context']):object['context'],object['resolvedBy'],object['createdAt']?new Date(object['createdAt']):void 0x0,object['resolvedAt']?new Date(object['resolvedAt']):void 0x0,object['deletedAt']?new Date(object['deletedAt']):void 0x0,object['attributes']?JSON['parse'](object['attributes']):object['attributes']);}}class ResolveCommentThreadMessage extends Message{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['TYPE']='142';static ['READABLE_TYPE_NAME']='resolveCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedBy':{'type':'string','id':0x3},'resolvedAt':{'type':'string','id':0x4}}};constructor(commentThreadId,documentId,_0x1dccf9,resolvedAt){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['resolvedBy']=_0x1dccf9,this['resolvedAt']=resolvedAt?new Date(resolvedAt):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](object){return new ResolveCommentThreadMessage(object['commentThreadId'],object['documentId'],object['resolvedBy'],object['resolvedAt']);}}class ReopenCommentThreadMessage extends Message{['commentThreadId'];['documentId'];static ['TYPE']='141';static ['READABLE_TYPE_NAME']='reopenCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ReopenCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(commentThreadId,documentId){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](object){return new ReopenCommentThreadMessage(object['commentThreadId'],object['documentId']);}}class UpdateCommentThreadMessage extends Message{['commentThreadId'];['documentId'];['context'];['attributes'];['unlinkedAt'];static ['TYPE']='143';static ['READABLE_TYPE_NAME']='updateCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'attributes':{'type':'string','id':0x4},'unlinkedAt':{'type':'string','id':0x5}}};constructor(commentThreadId,documentId,context,attributes=null,unlinkedAt=null){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['context']=context,this['attributes']=attributes,this['unlinkedAt']=unlinkedAt?new Date(unlinkedAt):'';}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'unlinkedAt':this['unlinkedAt']instanceof Date?this['unlinkedAt']['toISOString']():this['unlinkedAt']};}static['fromJSON'](object){return new UpdateCommentThreadMessage(object['commentThreadId'],object['documentId'],object['context']?JSON['parse'](object['context']):object['context'],object['attributes']?JSON['parse'](object['attributes']):null,object['unlinkedAt']?new Date(object['unlinkedAt']):null);}}class ResolveCommentThreadResponse extends Message{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadResponse';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4}}};constructor(commentThreadId,documentId,_0x39ceea,resolvedAt){super(),this['commentThreadId']=commentThreadId,this['documentId']=documentId,this['resolvedBy']=_0x39ceea,this['resolvedAt']=new Date(resolvedAt);}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']['toISOString']()};}static['fromJSON'](data){return new ResolveCommentThreadResponse(data['commentThreadId'],data['documentId'],data['resolvedBy'],data['resolvedAt']);}}class CommentsService extends/* #__PURE__ -- @preserve */
67
+ EmitterMixin(){['_documentId'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_documentId){super(),this['_documentId']=_documentId,this['_isConnected']=!0x1;}get['isConnected'](){return this['_isConnected'];}async['connect'](wsGateway){if(this['_isConnected'])return;if(wsGateway['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new CKEditorCloudServicesError('WebSocket\x20Gateway\x20is\x20not\x20connected.',wsGateway);const connectMessage=new ConnectMessage(this['_documentId']);this['_wsGateway']=wsGateway,this['stopListening'](wsGateway,'change:state');const _0x5c206a=await wsGateway['_sendRequest'](0x9,ConnectMessage['TYPE'],MessagesCompressor['encode'](connectMessage)),{channel:_0x399802,threads:threads}=MessagesCompressor['decode'](_0x5c206a,ConnectResponse);return this['listenTo'](wsGateway,'change:state',(_0x42b01d,_0x525d0e,_0x2b0921)=>this['_onWsGatewayStateChange'](_0x2b0921),{'priority':WebSocketGateway['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](wsGateway,_0x399802),this['_isConnected']=!0x0,this['fire']('connected'),threads;}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['addComment'](commentThreadId,commentId,content,attributes){const _0x2df550=new AddCommentMessage(this['_documentId'],commentThreadId,content,commentId,void 0x0,void 0x0,attributes),_0xf4a87a=await this['_sendRequest'](AddCommentMessage['TYPE'],_0x2df550);return MessagesCompressor['decode'](_0xf4a87a,AddCommentResponse);}async['updateComment'](commentThreadId,commentId,content,attributes){const isAttributesUpdated=void 0x0!==attributes,_0x1e727a=new UpdateCommentMessage(this['_documentId'],commentThreadId,commentId,content,attributes,isAttributesUpdated);await this['_sendRequest'](UpdateCommentMessage['TYPE'],_0x1e727a);}async['removeComment'](commentThreadId,commentId){const _0x297798=new RemoveCommentMessage(this['_documentId'],commentThreadId,commentId);await this['_sendRequest'](RemoveCommentMessage['TYPE'],_0x297798);}async['removeCommentThread'](commentThreadId){const _0x3c09ac=new RemoveCommentThreadMessage(this['_documentId'],commentThreadId);await this['_sendRequest'](RemoveCommentThreadMessage['TYPE'],_0x3c09ac);}async['addCommentThread'](addCommentThreadParams){const _0x107beb=new AddCommentThreadMessage(this['_documentId'],addCommentThreadParams['commentThreadId'],addCommentThreadParams['comments']?.['map'](comment=>({...comment,'documentId':this['_documentId'],'commentThreadId':addCommentThreadParams['commentThreadId']})),addCommentThreadParams['context'],addCommentThreadParams['resolvedBy'],addCommentThreadParams['createdAt'],addCommentThreadParams['resolvedAt'],addCommentThreadParams['deletedAt'],addCommentThreadParams['attributes']),_0x1cf69d=await this['_sendRequest'](AddCommentThreadMessage['TYPE'],_0x107beb);return MessagesCompressor['decode'](_0x1cf69d,AddCommentThreadResponse);}async['resolveCommentThread'](commentThreadId){const _0x16f54c=new ResolveCommentThreadMessage(commentThreadId,this['_documentId']),_0x4fbff0=await this['_sendRequest'](ResolveCommentThreadMessage['TYPE'],_0x16f54c);return MessagesCompressor['decode'](_0x4fbff0,ResolveCommentThreadResponse);}async['reopenCommentThread'](commentThreadId){const _0x415c24=new ReopenCommentThreadMessage(commentThreadId,this['_documentId']);await this['_sendRequest'](ReopenCommentThreadMessage['TYPE'],_0x415c24);}async['updateCommentThread'](_0x394ae3){const _0x48f957=new UpdateCommentThreadMessage(_0x394ae3['commentThreadId'],this['_documentId'],_0x394ae3['context'],_0x394ae3['attributes'],_0x394ae3['unlinkedAt']);await this['_sendRequest'](UpdateCommentThreadMessage['TYPE'],_0x48f957);}async['getCommentThread'](commentThreadId,attempt=0x1){const _0x8f3870=new GetCommentThreadMessage(commentThreadId,this['_documentId']);try{const _0x4e62a5=await this['_sendRequest'](GetCommentThreadMessage['TYPE'],_0x8f3870),commentThreadResponse=MessagesCompressor['decode'](_0x4e62a5,GetCommentThreadResponse);return{'commentThreadId':commentThreadResponse['commentThreadId'],'comments':commentThreadResponse['comments'],'attributes':commentThreadResponse['attributes'],'context':commentThreadResponse['context'],'resolvedAt':commentThreadResponse['resolvedAt'],'resolvedBy':commentThreadResponse['resolvedBy'],'deletedAt':commentThreadResponse['deletedAt'],'unlinkedAt':commentThreadResponse['unlinkedAt']};}catch(_0x421678){if('CKEditorCloudServicesServerError'===_0x421678['name']&&'404'===_0x421678['code']&&attempt<0x5)return await(time=0x64*attempt,new Promise(_0x5718df=>{setTimeout(_0x5718df,time);})),this['getCommentThread'](commentThreadId,attempt+0x1);if('CKEditorCloudServicesServerError'===_0x421678['name'])throw _0x421678;throw CKEditorCloudServicesServerError['fromPublicError'](_0x421678);}var time;}async['getDocumentThreads'](){const _0x16e3cd=new GetDocumentThreadsMessage(this['_documentId']),_0x43c79c=await this['_sendRequest'](GetDocumentThreadsMessage['TYPE'],_0x16e3cd),{threads:threads}=MessagesCompressor['decode'](_0x43c79c,GetDocumentThreadsResponse);return{'threads':threads};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await Sessions['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](wsGateway,_0xc9fac6){this['_channel']=wsGateway['_getChannel'](CommentsService['_SERVICE'],_0xc9fac6),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentMessage['TYPE']),(event,data)=>{const addCommentMessage=MessagesCompressor['decode'](data,AddCommentMessage);this['fire']('commentAdded',addCommentMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentMessage['TYPE']),(event,data)=>{const removeCommentMessage=MessagesCompressor['decode'](data,RemoveCommentMessage);this['fire']('commentRemoved',removeCommentMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentMessage['TYPE']),(event,data)=>{const updateCommentMessage=MessagesCompressor['decode'](data,UpdateCommentMessage);this['fire']('commentUpdated',updateCommentMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](RemoveCommentThreadMessage['TYPE']),(event,data)=>{const removeCommentThreadMessage=MessagesCompressor['decode'](data,RemoveCommentThreadMessage);this['fire']('commentThreadRemoved',removeCommentThreadMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](AddCommentThreadMessage['TYPE']),(event,data)=>{const addCommentThreadMessage=MessagesCompressor['decode'](data,AddCommentThreadMessage);this['fire']('commentThreadAdded',addCommentThreadMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](UpdateCommentThreadMessage['TYPE']),(event,data)=>{const updateCommentThreadMessage=MessagesCompressor['decode'](data,UpdateCommentThreadMessage);this['fire']('commentThreadUpdated',updateCommentThreadMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ResolveCommentThreadMessage['TYPE']),(event,data)=>{const resolveCommentThreadMessage=MessagesCompressor['decode'](data,ResolveCommentThreadMessage);this['fire']('commentThreadResolved',resolveCommentThreadMessage);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](ReopenCommentThreadMessage['TYPE']),(event,data)=>{const reopenCommentThreadMessage=MessagesCompressor['decode'](data,ReopenCommentThreadMessage);this['fire']('commentThreadReopened',reopenCommentThreadMessage);}));}['_onWsGatewayStateChange'](_0x22192c){_0x22192c===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](method,_0xb4ed1){if(!this['_wsGateway']||!this['_isConnected'])throw new ServiceNotConnectedError('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,method,MessagesCompressor['encode'](_0xb4ed1));}}export{CollaborativeEditingService,CommentsService,EditorService,RevisionHistoryService,TrackChangesService,User,WEB_SOCKET_GATEWAY_STATES,WebSocketGateway};