@vertexvis/viewer 0.15.2-testing.0 → 0.15.2-testing.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{config-4a86ae0b.js → config-6e330a82.js} +1 -1
- package/dist/cjs/{entities-496b61cd.js → entities-7b2e8c03.js} +2 -2
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{mapper-216603b0.js → mapper-0f2294a6.js} +1 -1
- package/dist/cjs/{scene-cb169b09.js → scene-56438693.js} +1 -25
- package/dist/cjs/{streamAttributes-7725f5c4.js → streamAttributes-c64aee75.js} +4 -976
- package/dist/cjs/vertex-scene-tree.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-dom-element_2.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-markup.cjs.entry.js +11 -1
- package/dist/cjs/vertex-viewer-measurement-details.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-measurement-distance.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-measurement-line_2.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-measurement-precise.cjs.entry.js +4 -4
- package/dist/cjs/vertex-viewer-pin-group.cjs.entry.js +2 -2
- package/dist/cjs/vertex-viewer-transform-widget.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer-view-cube.cjs.entry.js +1 -1
- package/dist/cjs/vertex-viewer.cjs.entry.js +3 -3
- package/dist/cjs/viewer.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/viewer-markup/viewer-markup.js +36 -2
- package/dist/collection/lib/scenes/mapper.js +1 -11
- package/dist/collection/lib/scenes/queries.js +1 -15
- package/dist/custom-elements/index.d.ts +0 -6
- package/dist/custom-elements/index.js +16 -1169
- package/dist/esm/{config-6cdeb6ca.js → config-49688db8.js} +1 -1
- package/dist/esm/{entities-6f3c5437.js → entities-a5bfef48.js} +2 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loader.mjs +1 -1
- package/dist/esm/{mapper-941ff03c.js → mapper-5894c2a4.js} +1 -1
- package/dist/esm/{scene-6f98b0dd.js → scene-5b919078.js} +1 -25
- package/dist/esm/{streamAttributes-24bd7b3a.js → streamAttributes-7e8565be.js} +4 -976
- package/dist/esm/vertex-scene-tree.entry.js +2 -2
- package/dist/esm/vertex-viewer-dom-element_2.entry.js +1 -1
- package/dist/esm/vertex-viewer-markup.entry.js +11 -1
- package/dist/esm/vertex-viewer-measurement-details.entry.js +1 -1
- package/dist/esm/vertex-viewer-measurement-distance.entry.js +2 -2
- package/dist/esm/vertex-viewer-measurement-line_2.entry.js +2 -2
- package/dist/esm/vertex-viewer-measurement-precise.entry.js +4 -4
- package/dist/esm/vertex-viewer-pin-group.entry.js +2 -2
- package/dist/esm/vertex-viewer-transform-widget.entry.js +1 -1
- package/dist/esm/vertex-viewer-view-cube.entry.js +1 -1
- package/dist/esm/vertex-viewer.entry.js +3 -3
- package/dist/esm/viewer.js +1 -1
- package/dist/types/components/viewer-markup/viewer-markup.d.ts +6 -0
- package/dist/types/components.d.ts +7 -24
- package/dist/types/lib/scenes/queries.d.ts +2 -12
- package/dist/viewer/index.esm.js +1 -1
- package/dist/viewer/{p-cea5d8bd.js → p-1e0dd2e9.js} +1 -1
- package/dist/viewer/{p-52ab9ec0.js → p-1fc24ec6.js} +1 -1
- package/dist/viewer/{p-a5f18e7b.entry.js → p-22ae6785.entry.js} +1 -1
- package/dist/viewer/p-31b87b90.js +4 -0
- package/dist/viewer/{p-24cda14a.entry.js → p-3f6f2457.entry.js} +1 -1
- package/dist/viewer/{p-9e1384c9.js → p-40a9dd7d.js} +1 -1
- package/dist/viewer/{p-608925c5.entry.js → p-61e50e11.entry.js} +1 -1
- package/dist/viewer/{p-74c772bb.entry.js → p-7579e2a1.entry.js} +1 -1
- package/dist/viewer/{p-bfacbaa8.entry.js → p-920c9a88.entry.js} +1 -1
- package/dist/viewer/{p-597cc9b5.js → p-927b528b.js} +1 -1
- package/dist/viewer/{p-1bba9ade.entry.js → p-a6558bb2.entry.js} +1 -1
- package/dist/viewer/{p-2b58afc3.entry.js → p-b7e170ac.entry.js} +1 -1
- package/dist/viewer/{p-69a3fce8.entry.js → p-d34ad2b2.entry.js} +1 -1
- package/dist/viewer/{p-a107b65e.entry.js → p-d64c1e14.entry.js} +2 -2
- package/dist/viewer/p-e422deaf.entry.js +4 -0
- package/dist/viewer/{p-c72da0fb.entry.js → p-f3ea0c2b.entry.js} +1 -1
- package/dist/viewer/viewer.esm.js +1 -1
- package/package.json +8 -8
- package/dist/cjs/vertex-viewer-drag-select.cjs.entry.js +0 -177
- package/dist/collection/components/viewer-drag-select/controller.js +0 -18
- package/dist/collection/components/viewer-drag-select/interaction-handler.js +0 -41
- package/dist/collection/components/viewer-drag-select/model.js +0 -49
- package/dist/collection/components/viewer-drag-select/viewer-drag-select.css +0 -36
- package/dist/collection/components/viewer-drag-select/viewer-drag-select.js +0 -115
- package/dist/esm/vertex-viewer-drag-select.entry.js +0 -173
- package/dist/types/components/viewer-drag-select/controller.d.ts +0 -9
- package/dist/types/components/viewer-drag-select/interaction-handler.d.ts +0 -15
- package/dist/types/components/viewer-drag-select/model.d.ts +0 -25
- package/dist/types/components/viewer-drag-select/viewer-drag-select.d.ts +0 -27
- package/dist/viewer/p-68e192b9.js +0 -4
- package/dist/viewer/p-7762c40a.entry.js +0 -4
- package/dist/viewer/p-ae31d912.entry.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**!
|
|
2
2
|
* Copyright (c) 2022 Vertex Software LLC. All rights reserved.
|
|
3
3
|
*/
|
|
4
|
-
import{h as t,F as o,r,c as e,f as n,H as i,g as s}from"./p-d6fce4c1.js";import{o as u}from"./p-70e5e8a8.js";import{c as a}from"./p-dfe5a97d.js";import{a as c,w as p,g as l}from"./p-92fe4417.js";import{p as h}from"./p-597cc9b5.js";import{E as f}from"./p-65af7a89.js";import{i as v,f as d,g as w}from"./p-c8c4343b.js";import"./p-68e192b9.js";import"./p-df8fbe56.js";window.requestIdleCallback=window.requestIdleCallback||function(t){var o=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-o))}})}),1)},window.cancelIdleCallback=window.cancelIdleCallback||function(t){clearTimeout(t)};var b=a((function(t,o){var r=c,e=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Cursor",null,e),r.exportSymbol("proto.vertexvis.protobuf.core.OffsetCursor",null,e),r.exportSymbol("proto.vertexvis.protobuf.core.OffsetPager",null,e),r.exportSymbol("proto.vertexvis.protobuf.core.Pager",null,e),proto.vertexvis.protobuf.core.Pager=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Pager,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Pager.displayName="proto.vertexvis.protobuf.core.Pager"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Pager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Pager.toObject(t,this)},proto.vertexvis.protobuf.core.Pager.toObject=function(t,o){var r={limit:c.Message.getFieldWithDefault(o,1,0),cursor:c.Message.getFieldWithDefault(o,2,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Pager.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Pager;return proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setLimit(r);break;case 2:r=o.readString(),t.setCursor(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Pager.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getLimit())&&o.writeUint32(1,r),(r=t.getCursor()).length>0&&o.writeString(2,r)},proto.vertexvis.protobuf.core.Pager.prototype.getLimit=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Pager.prototype.setLimit=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.Pager.prototype.getCursor=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.Pager.prototype.setCursor=function(t){c.Message.setProto3StringField(this,2,t)},proto.vertexvis.protobuf.core.OffsetPager=function(t){c.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_)},r.inherits(proto.vertexvis.protobuf.core.OffsetPager,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.OffsetPager.displayName="proto.vertexvis.protobuf.core.OffsetPager"),proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_=[[2,3]],proto.vertexvis.protobuf.core.OffsetPager.PagerCase={PAGER_NOT_SET:0,CURSOR:2,OFFSET:3},proto.vertexvis.protobuf.core.OffsetPager.prototype.getPagerCase=function(){return c.Message.computeOneofCase(this,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0])},c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.OffsetPager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetPager.toObject(t,this)},proto.vertexvis.protobuf.core.OffsetPager.toObject=function(t,o){var r={limit:c.Message.getFieldWithDefault(o,1,0),cursor:c.Message.getFieldWithDefault(o,2,""),offset:c.Message.getFieldWithDefault(o,3,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.OffsetPager.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.OffsetPager;return proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setLimit(r);break;case 2:r=o.readString(),t.setCursor(r);break;case 3:r=o.readUint32(),t.setOffset(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.OffsetPager.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getLimit())&&o.writeUint32(1,r),null!=(r=c.Message.getField(t,2))&&o.writeString(2,r),null!=(r=c.Message.getField(t,3))&&o.writeUint32(3,r)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getLimit=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setLimit=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getCursor=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetPager.prototype.setCursor=function(t){c.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearCursor=function(){c.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasCursor=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getOffset=function(){return c.Message.getFieldWithDefault(this,3,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setOffset=function(t){c.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearOffset=function(){c.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasOffset=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.core.Cursor=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Cursor,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Cursor.displayName="proto.vertexvis.protobuf.core.Cursor"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Cursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Cursor.toObject(t,this)},proto.vertexvis.protobuf.core.Cursor.toObject=function(t,o){var r={next:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Cursor.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Cursor;return proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setNext(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Cursor.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter=function(t,o){var r;(r=t.getNext()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.core.Cursor.prototype.getNext=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Cursor.prototype.setNext=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.core.OffsetCursor=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.OffsetCursor,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.OffsetCursor.displayName="proto.vertexvis.protobuf.core.OffsetCursor"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.OffsetCursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetCursor.toObject(t,this)},proto.vertexvis.protobuf.core.OffsetCursor.toObject=function(t,o){var r={total:c.Message.getFieldWithDefault(o,1,0),next:c.Message.getFieldWithDefault(o,2,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.OffsetCursor;return proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setTotal(r);break;case 2:r=o.readString(),t.setNext(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.OffsetCursor.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getTotal())&&o.writeUint32(1,r),(r=t.getNext()).length>0&&o.writeString(2,r)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.getTotal=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setTotal=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.getNext=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setNext=function(t){c.Message.setProto3StringField(this,2,t)},r.object.extend(o,proto.vertexvis.protobuf.core)})),m=a((function(t,o){var r=c,e=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Uuid",null,e),r.exportSymbol("proto.vertexvis.protobuf.core.Uuid2l",null,e),proto.vertexvis.protobuf.core.Uuid=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Uuid,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid.displayName="proto.vertexvis.protobuf.core.Uuid"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Uuid.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid.toObject(t,this)},proto.vertexvis.protobuf.core.Uuid.toObject=function(t,o){var r={hex:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Uuid.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Uuid;return proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setHex(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Uuid.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter=function(t,o){var r;(r=t.getHex()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.core.Uuid.prototype.getHex=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Uuid.prototype.setHex=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.core.Uuid2l=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Uuid2l,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid2l.displayName="proto.vertexvis.protobuf.core.Uuid2l"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Uuid2l.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid2l.toObject(t,this)},proto.vertexvis.protobuf.core.Uuid2l.toObject=function(t,o){var r={msb:c.Message.getFieldWithDefault(o,1,"0"),lsb:c.Message.getFieldWithDefault(o,2,"0")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Uuid2l.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Uuid2l;return proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readSfixed64String();t.setMsb(r);break;case 2:r=o.readSfixed64String(),t.setLsb(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Uuid2l.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMsb(),0!==parseInt(r,10)&&o.writeSfixed64String(1,r),r=t.getLsb(),0!==parseInt(r,10)&&o.writeSfixed64String(2,r)},proto.vertexvis.protobuf.core.Uuid2l.prototype.getMsb=function(){return c.Message.getFieldWithDefault(this,1,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setMsb=function(t){c.Message.setProto3StringIntField(this,1,t)},proto.vertexvis.protobuf.core.Uuid2l.prototype.getLsb=function(){return c.Message.getFieldWithDefault(this,2,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setLsb=function(t){c.Message.setProto3StringIntField(this,2,t)},r.object.extend(o,proto.vertexvis.protobuf.core)})),g=a((function(t,o){var r=c,e=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Node",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Range",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType",null,e),proto.vertexvis.protobuf.scenetree.v1alpha1.Node=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Node,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Node.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Node"),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_=[10],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.toObject=function(t,o){var r,e={id:(r=o.getId())&&m.Uuid.toObject(t,r),depth:c.Message.getFieldWithDefault(o,2,0),name:c.Message.getFieldWithDefault(o,3,""),visible:c.Message.getFieldWithDefault(o,4,!1),selected:c.Message.getFieldWithDefault(o,5,!1),expanded:c.Message.getFieldWithDefault(o,6,!1),isLeaf:c.Message.getFieldWithDefault(o,7,!1),suppliedId:(r=o.getSuppliedId())&&p.StringValue.toObject(t,r),partiallyVisible:c.Message.getFieldWithDefault(o,9,!1),columnsList:c.Message.getRepeatedField(o,10),filterHit:c.Message.getFieldWithDefault(o,11,!1)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Node;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setId(r);break;case 2:r=o.readUint32(),t.setDepth(r);break;case 3:r=o.readString(),t.setName(r);break;case 4:r=o.readBool(),t.setVisible(r);break;case 5:r=o.readBool(),t.setSelected(r);break;case 6:r=o.readBool(),t.setExpanded(r);break;case 7:r=o.readBool(),t.setIsLeaf(r);break;case 8:r=new p.StringValue,o.readMessage(r,p.StringValue.deserializeBinaryFromReader),t.setSuppliedId(r);break;case 9:r=o.readBool(),t.setPartiallyVisible(r);break;case 10:r=o.readString(),t.addColumns(r);break;case 11:r=o.readBool(),t.setFilterHit(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter),0!==(r=t.getDepth())&&o.writeUint32(2,r),(r=t.getName()).length>0&&o.writeString(3,r),(r=t.getVisible())&&o.writeBool(4,r),(r=t.getSelected())&&o.writeBool(5,r),(r=t.getExpanded())&&o.writeBool(6,r),(r=t.getIsLeaf())&&o.writeBool(7,r),null!=(r=t.getSuppliedId())&&o.writeMessage(8,r,p.StringValue.serializeBinaryToWriter),(r=t.getPartiallyVisible())&&o.writeBool(9,r),(r=t.getColumnsList()).length>0&&o.writeRepeatedString(10,r),(r=t.getFilterHit())&&o.writeBool(11,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearId=function(){this.setId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getDepth=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setDepth=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getName=function(){return c.Message.getFieldWithDefault(this,3,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setName=function(t){c.Message.setProto3StringField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getVisible=function(){return c.Message.getFieldWithDefault(this,4,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setVisible=function(t){c.Message.setProto3BooleanField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSelected=function(){return c.Message.getFieldWithDefault(this,5,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSelected=function(t){c.Message.setProto3BooleanField(this,5,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getExpanded=function(){return c.Message.getFieldWithDefault(this,6,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setExpanded=function(t){c.Message.setProto3BooleanField(this,6,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getIsLeaf=function(){return c.Message.getFieldWithDefault(this,7,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setIsLeaf=function(t){c.Message.setProto3BooleanField(this,7,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSuppliedId=function(){return c.Message.getWrapperField(this,p.StringValue,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSuppliedId=function(t){c.Message.setWrapperField(this,8,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearSuppliedId=function(){this.setSuppliedId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasSuppliedId=function(){return null!=c.Message.getField(this,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPartiallyVisible=function(){return c.Message.getFieldWithDefault(this,9,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPartiallyVisible=function(t){c.Message.setProto3BooleanField(this,9,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getColumnsList=function(){return c.Message.getRepeatedField(this,10)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setColumnsList=function(t){c.Message.setField(this,10,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.addColumns=function(t,o){c.Message.addToRepeatedField(this,10,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearColumnsList=function(){this.setColumnsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getFilterHit=function(){return c.Message.getFieldWithDefault(this,11,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setFilterHit=function(t){c.Message.setProto3BooleanField(this,11,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject=function(t,o){var r={start:c.Message.getFieldWithDefault(o,1,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readInt32();t.setStart(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter=function(t,o){var r;0!==(r=t.getStart())&&o.writeInt32(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.getStart=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.setStart=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Range,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Range.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Range"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject=function(t,o){var r={start:c.Message.getFieldWithDefault(o,1,0),end:c.Message.getFieldWithDefault(o,2,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readInt32();t.setStart(r);break;case 2:r=o.readInt32(),t.setEnd(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getStart())&&o.writeInt32(1,r),0!==(r=t.getEnd())&&o.writeInt32(2,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getStart=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setStart=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getEnd=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setEnd=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange"),proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_=[1,2,3,4,5],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject=function(t,o){var r={hiddenList:c.Message.toObjectList(o.getHiddenList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),shownList:c.Message.toObjectList(o.getShownList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),selectedList:c.Message.toObjectList(o.getSelectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),deselectedList:c.Message.toObjectList(o.getDeselectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),partiallyVisibleList:c.Message.toObjectList(o.getPartiallyVisibleList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addHidden(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addShown(r);break;case 3:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addSelected(r);break;case 4:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addDeselected(r);break;case 5:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addPartiallyVisible(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getHiddenList()).length>0&&o.writeRepeatedMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getShownList()).length>0&&o.writeRepeatedMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getSelectedList()).length>0&&o.writeRepeatedMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getDeselectedList()).length>0&&o.writeRepeatedMessage(4,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getPartiallyVisibleList()).length>0&&o.writeRepeatedMessage(5,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getHiddenList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setHiddenList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addHidden=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearHiddenList=function(){this.setHiddenList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getShownList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setShownList=function(t){c.Message.setRepeatedWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addShown=function(t,o){return c.Message.addToRepeatedWrapperField(this,2,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearShownList=function(){this.setShownList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getSelectedList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setSelectedList=function(t){c.Message.setRepeatedWrapperField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addSelected=function(t,o){return c.Message.addToRepeatedWrapperField(this,3,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearSelectedList=function(){this.setSelectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getDeselectedList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,4)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setDeselectedList=function(t){c.Message.setRepeatedWrapperField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addDeselected=function(t,o){return c.Message.addToRepeatedWrapperField(this,4,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearDeselectedList=function(){this.setDeselectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getPartiallyVisibleList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,5)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setPartiallyVisibleList=function(t){c.Message.setRepeatedWrapperField(this,5,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addPartiallyVisible=function(t,o){return c.Message.addToRepeatedWrapperField(this,5,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearPartiallyVisibleList=function(){this.setPartiallyVisibleList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType=function(t){c.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType"),proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_=[[1,2,3]],proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase={SEALED_VALUE_NOT_SET:0,LIST_CHANGE:1,RANGES:2,KEEP_ALIVE:3},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getSealedValueCase=function(){return c.Message.computeOneofCase(this,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0])},c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject=function(t,o){var r,e={listChange:(r=o.getListChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,r),ranges:(r=o.getRanges())&&proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,r),keepAlive:(r=o.getKeepAlive())&&proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader),t.setListChange(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader),t.setRanges(r);break;case 3:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader),t.setKeepAlive(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getListChange())&&o.writeMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter),null!=(r=t.getRanges())&&o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter),null!=(r=t.getKeepAlive())&&o.writeMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getListChange=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setListChange=function(t){c.Message.setOneofWrapperField(this,1,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearListChange=function(){this.setListChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasListChange=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getRanges=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setRanges=function(t){c.Message.setOneofWrapperField(this,2,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearRanges=function(){this.setRanges(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasRanges=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getKeepAlive=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setKeepAlive=function(t){c.Message.setOneofWrapperField(this,3,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearKeepAlive=function(){this.setKeepAlive(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasKeepAlive=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject=function(t,o){var r={value:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setValue(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter=function(t,o){var r;(r=t.getValue()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.getValue=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.setValue=function(t){c.Message.setProto3StringField(this,1,t)},r.object.extend(o,proto.vertexvis.protobuf.scenetree.v1alpha1)})),y=a((function(t,o){var r=c,e=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse",null,e),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_=[3],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject=function(t,o){var r,e={viewId:(r=o.getViewId())&&m.Uuid.toObject(t,r),pager:(r=o.getPager())&&b.OffsetPager.toObject(t,r),additionalColumnKeysList:c.Message.getRepeatedField(o,3)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new b.OffsetPager,o.readMessage(r,b.OffsetPager.deserializeBinaryFromReader),t.setPager(r);break;case 3:r=o.readString(),t.addAdditionalColumnKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter),null!=(r=t.getPager())&&o.writeMessage(2,r,b.OffsetPager.serializeBinaryToWriter),(r=t.getAdditionalColumnKeysList()).length>0&&o.writeRepeatedString(3,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getPager=function(){return c.Message.getWrapperField(this,b.OffsetPager,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setPager=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearPager=function(){this.setPager(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasPager=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getAdditionalColumnKeysList=function(){return c.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setAdditionalColumnKeysList=function(t){c.Message.setField(this,3,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.addAdditionalColumnKeys=function(t,o){c.Message.addToRepeatedField(this,3,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearAdditionalColumnKeysList=function(){this.setAdditionalColumnKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject=function(t,o){var r,e={itemsList:c.Message.toObjectList(o.getItemsList(),g.Node.toObject,t),totalVisible:c.Message.getFieldWithDefault(o,2,0),cursor:(r=o.getCursor())&&b.OffsetCursor.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new g.Node;o.readMessage(r,g.Node.deserializeBinaryFromReader),t.addItems(r);break;case 2:r=o.readUint32(),t.setTotalVisible(r);break;case 3:r=new b.OffsetCursor,o.readMessage(r,b.OffsetCursor.deserializeBinaryFromReader),t.setCursor(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,g.Node.serializeBinaryToWriter),0!==(r=t.getTotalVisible())&&o.writeUint32(2,r),null!=(r=t.getCursor())&&o.writeMessage(3,r,b.OffsetCursor.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getItemsList=function(){return c.Message.getRepeatedWrapperField(this,g.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setItemsList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.addItems=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getTotalVisible=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setTotalVisible=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getCursor=function(){return c.Message.getWrapperField(this,b.OffsetCursor,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setCursor=function(t){c.Message.setWrapperField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearCursor=function(){this.setCursor(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.hasCursor=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject=function(t,o){var r,e={viewId:(r=o.getViewId())&&m.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&m.Uuid.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new m.Uuid,o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,m.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,m.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject=function(t,o){var r,e={viewId:(r=o.getViewId())&&m.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&m.Uuid.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new m.Uuid,o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,m.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,m.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject=function(t,o){var r,e={viewId:(r=o.getViewId())&&m.Uuid.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getViewId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject=function(t,o){var r,e={change:(r=o.getChange())&&g.TreeChangeType.toObject(t,r),handshake:(r=o.getHandshake())&&proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new g.TreeChangeType;o.readMessage(r,g.TreeChangeType.deserializeBinaryFromReader),t.setChange(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader),t.setHandshake(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getChange())&&o.writeMessage(1,r,g.TreeChangeType.serializeBinaryToWriter),null!=(r=t.getHandshake())&&o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getChange=function(){return c.Message.getWrapperField(this,g.TreeChangeType,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setChange=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearChange=function(){this.setChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasChange=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getHandshake=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setHandshake=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearHandshake=function(){this.setHandshake(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasHandshake=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_=[3],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject=function(t,o){var r={filter:c.Message.getFieldWithDefault(o,1,""),fullTree:c.Message.getFieldWithDefault(o,2,!1),columnsKeysList:c.Message.getRepeatedField(o,3),exactMatch:c.Message.getFieldWithDefault(o,4,!1)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setFilter(r);break;case 2:r=o.readBool(),t.setFullTree(r);break;case 3:r=o.readString(),t.addColumnsKeys(r);break;case 4:r=o.readBool(),t.setExactMatch(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getFilter()).length>0&&o.writeString(1,r),(r=t.getFullTree())&&o.writeBool(2,r),(r=t.getColumnsKeysList()).length>0&&o.writeRepeatedString(3,r),(r=t.getExactMatch())&&o.writeBool(4,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFilter=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFilter=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFullTree=function(){return c.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFullTree=function(t){c.Message.setProto3BooleanField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getColumnsKeysList=function(){return c.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setColumnsKeysList=function(t){c.Message.setField(this,3,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.addColumnsKeys=function(t,o){c.Message.addToRepeatedField(this,3,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.clearColumnsKeysList=function(){this.setColumnsKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getExactMatch=function(){return c.Message.getFieldWithDefault(this,4,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setExactMatch=function(t){c.Message.setProto3BooleanField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject=function(t,o){var r={numberOfResults:c.Message.getFieldWithDefault(o,1,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setNumberOfResults(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter=function(t,o){var r;0!==(r=t.getNumberOfResults())&&o.writeUint32(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.getNumberOfResults=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.setNumberOfResults=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject=function(t,o){var r,e={nodeId:(r=o.getNodeId())&&m.Uuid.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 2:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(2,r,m.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,m.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.toObject=function(t,o){var r,e={locatedIndex:(r=o.getLocatedIndex())&&p.UInt64Value.toObject(t,r),requiresReload:c.Message.getFieldWithDefault(o,2,!1)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new p.UInt64Value;o.readMessage(r,p.UInt64Value.deserializeBinaryFromReader),t.setLocatedIndex(r);break;case 2:r=o.readBool(),t.setRequiresReload(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getLocatedIndex())&&o.writeMessage(1,r,p.UInt64Value.serializeBinaryToWriter),(r=t.getRequiresReload())&&o.writeBool(2,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getLocatedIndex=function(){return c.Message.getWrapperField(this,p.UInt64Value,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setLocatedIndex=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.clearLocatedIndex=function(){this.setLocatedIndex(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.hasLocatedIndex=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getRequiresReload=function(){return c.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setRequiresReload=function(t){c.Message.setProto3BooleanField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject=function(t,o){var r,e={nodeId:(r=o.getNodeId())&&m.Uuid.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject=function(t,o){var r={itemsList:c.Message.toObjectList(o.getItemsList(),g.Node.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new g.Node;o.readMessage(r,g.Node.deserializeBinaryFromReader),t.addItems(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,g.Node.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.getItemsList=function(){return c.Message.getRepeatedWrapperField(this,g.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.setItemsList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.addItems=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject=function(t,o){var r={keysList:c.Message.toObjectList(o.getKeysList(),g.ColumnKey.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new g.ColumnKey;o.readMessage(r,g.ColumnKey.deserializeBinaryFromReader),t.addKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getKeysList()).length>0&&o.writeRepeatedMessage(1,r,g.ColumnKey.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getKeysList=function(){return c.Message.getRepeatedWrapperField(this,g.ColumnKey,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setKeysList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.addKeys=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.clearKeysList=function(){this.setKeysList([])},r.object.extend(o,proto.vertexvis.protobuf.scenetree.v1alpha1)})),x=l.grpc,C=function(){function t(){}return t.serviceName="vertexvis.protobuf.scenetree.v1alpha1.SceneTreeAPI",t}();C.GetTree={methodName:"GetTree",service:C,requestStream:!1,responseStream:!1,requestType:y.GetTreeRequest,responseType:y.GetTreeResponse},C.ExpandNode={methodName:"ExpandNode",service:C,requestStream:!1,responseStream:!1,requestType:y.ExpandNodeRequest,responseType:y.ExpandNodeResponse},C.CollapseNode={methodName:"CollapseNode",service:C,requestStream:!1,responseStream:!1,requestType:y.CollapseNodeRequest,responseType:y.CollapseNodeResponse},C.Subscribe={methodName:"Subscribe",service:C,requestStream:!1,responseStream:!0,requestType:y.SubscribeRequest,responseType:y.SubscribeResponse},C.Filter={methodName:"Filter",service:C,requestStream:!1,responseStream:!1,requestType:y.FilterRequest,responseType:y.FilterResponse},C.LocateItem={methodName:"LocateItem",service:C,requestStream:!1,responseStream:!1,requestType:y.LocateItemRequest,responseType:y.LocateItemResponse},C.ExpandAll={methodName:"ExpandAll",service:C,requestStream:!1,responseStream:!1,requestType:y.ExpandAllRequest,responseType:y.ExpandAllResponse},C.CollapseAll={methodName:"CollapseAll",service:C,requestStream:!1,responseStream:!1,requestType:y.CollapseAllRequest,responseType:y.CollapseAllResponse},C.GetNodeAncestors={methodName:"GetNodeAncestors",service:C,requestStream:!1,responseStream:!1,requestType:y.GetNodeAncestorsRequest,responseType:y.GetNodeAncestorsResponse},C.GetAvailableColumns={methodName:"GetAvailableColumns",service:C,requestStream:!1,responseStream:!1,requestType:y.GetAvailableColumnsRequest,responseType:y.GetAvailableColumnsResponse};var E=C;function I(t,o){this.serviceHost=t,this.options=o||{}}I.prototype.getTree=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.GetTree,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.expandNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.ExpandNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.collapseNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.CollapseNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.subscribe=function(t,o){var r={data:[],end:[],status:[]},e=x.invoke(C.Subscribe,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onMessage:function(t){r.data.forEach((function(o){o(t)}))},onEnd:function(t,o,e){r.status.forEach((function(r){r({code:t,details:o,metadata:e})})),r.end.forEach((function(r){r({code:t,details:o,metadata:e})})),r=null}});return{on:function(t,o){return r[t].push(o),this},cancel:function(){r=null,e.close()}}},I.prototype.filter=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.Filter,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.locateItem=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.LocateItem,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.expandAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.ExpandAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.collapseAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.CollapseAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.getNodeAncestors=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.GetNodeAncestors,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.getAvailableColumns=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.GetAvailableColumns,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}};var R=I;const O=({details:r},e)=>t("div",{class:"error"},t("div",{class:"error-section error-message"},t("span",null,r.message),r.link&&t(o,null,t("span",null," See our "),t("a",{href:r.link,target:"_blank"},"documentation")," ",t("span",null," for more information."))),t("div",{class:"error-section"},e));var L;!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.SCENE_TREE_DISABLED=1]="SCENE_TREE_DISABLED",t[t.MISSING_VIEWER=2]="MISSING_VIEWER",t[t.DISCONNECTED=3]="DISCONNECTED",t[t.SUBSCRIPTION_FAILURE=4]="SUBSCRIPTION_FAILURE"}(L||(L={}));class k{constructor(t,o){this.code=t,this.link=o,this.message=function(t){switch(t){case L.UNKNOWN:return"An unknown error occurred.";case L.SCENE_TREE_DISABLED:return"The tree for this scene is not enabled. Enable the tree for this scene to interact with the tree.";case L.MISSING_VIEWER:return"Could not find reference to the viewer";case L.DISCONNECTED:return"Disconnected from server.";case L.SUBSCRIPTION_FAILURE:return"The tree was not able to receive subscription events"}}(t)}}function S(t){return t.methodDefinition.methodName===E.Subscribe.methodName?l.grpc.WebsocketTransport()(t):l.grpc.CrossBrowserHttpTransport({withCredentials:!1})(t)}function P(t){this.message=t}(P.prototype=new Error).name="InvalidCharacterError";var M="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var o=String(t).replace(/=+$/,"");if(o.length%4==1)throw new P("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,e,n=0,i=0,s="";e=o.charAt(i++);~e&&(r=n%4?64*r+e:e,n++%4)?s+=String.fromCharCode(255&r>>(-2*n&6)):0)e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);return s};function T(t){var o=t.replace(/-/g,"+").replace(/_/g,"/");switch(o.length%4){case 0:break;case 2:o+="==";break;case 3:o+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(M(t).replace(/(.)/g,(function(t,o){var r=o.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(o)}catch(t){return M(o)}}function q(t){this.message=t}(q.prototype=new Error).name="InvalidTokenError";class A{constructor(t,o,r={spinnerDelay:2e3,subscriptionHandshakeGracePeriodInMs:5e3}){this.client=t,this.rowLimit=o,this.connectOptions=r,this.nextPageId=0,this.pages=new Map,this.activeRowRange=[0,0],this.metadataKeys=[],this.debugLogs=!1,this.onStateChange=new f,this.state={totalRows:0,isSearching:!1,rows:[],connection:{type:"disconnected"}}}get fetchedPageCount(){return this.pages.size}get isConnected(){return"connected"===this.state.connection.type}stateChanged(t){return this.onStateChange.on(t)}setDebugLogs(t){this.debugLogs=t}async connect(t){const{connection:o}=this.state,r=t();if(null==r)throw new Error("Cannot connect scene tree. JWT is undefined");const{view:e}=function(t){return function(t,o){if("string"!=typeof t)throw new q("Invalid token specified");var r=!0===(o=o||{}).header?0:1;try{return JSON.parse(T(t.split(".")[r]))}catch(t){throw new q("Invalid token specified: "+t.message)}}(t)}(r);this.disconnect(o.sceneViewId!==e);const n={type:"connecting",jwtProvider:t,sceneViewId:e};this.updateState(Object.assign(Object.assign({},this.state),{connection:n}));try{this.log("Scene tree controller connecting."),await this.fetchPage(0),this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:e,details:new k(L.SUBSCRIPTION_FAILURE)}}))}),this.connectOptions.subscriptionHandshakeGracePeriodInMs);const o=await this.subscribe();o.on("end",(()=>this.startConnectionLostReconnectTimer())),this.updateState(Object.assign(Object.assign({},this.state),{connection:Object.assign(Object.assign({},n),{type:"connected",subscription:{dispose:()=>o.cancel()}})}))}catch(o){throw this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:e,details:this.getConnectionError(o)}})),this.clearHandshakeTimer(),o}this.startIdleReconnectTimer(),this.metadataKeys.length>0&&this.setMetadataKeys(this.metadataKeys)}clearReconnectTimer(){null!=this.reconnectTimer&&window.clearTimeout(this.reconnectTimer)}clearHandshakeTimer(){null!=this.subscriptionHandshakeTimer&&window.clearTimeout(this.subscriptionHandshakeTimer)}startIdleReconnectTimer(){this.startReconnectTimer(this.connectOptions.idleReconnectInSeconds||A.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||A.LOST_CONNECTION_RECONNECT_IN_SECONDS)}startReconnectTimer(t){this.clearReconnectTimer(),this.reconnectTimer=window.setTimeout((()=>{"connected"===this.state.connection.type&&this.connect(this.state.connection.jwtProvider)}),1e3*t)}connectToViewer(t){const o=async()=>{if(null!=t.token){this.log("Scene tree controller found viewer JWT. Attempting connection.");try{await this.connect((()=>t.token))}catch(t){console.error("Scene tree controller erred connecting.",t)}}},r=()=>{this.log("Scene tree controller received scene ready"),o()};return o(),t.addEventListener("sceneReady",r),{dispose:()=>{t.removeEventListener("sceneReady",r),this.disconnect()}}}disconnect(t=!1){this.log(`Scene tree controller disconnecting [reset=${t}]`),this.clearHandshakeTimer(),this.clearReconnectTimer(),t&&(this.pages.clear(),this.activeRowRange=[]);const{connection:o}=this.state;"connected"===o.type&&o.subscription.dispose(),this.updateState({connection:{type:"disconnected",jwtProvider:o.jwtProvider,sceneViewId:o.sceneViewId},isSearching:!1,totalRows:t?0:this.state.totalRows,rows:t?[]:this.state.rows})}async collapseNode(t){return this.ifConnectionHasJwt((async o=>{const r=new m.Uuid;r.setHex(t);const e=new y.CollapseNodeRequest;e.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.collapseNode(e,t,o)))}))}async expandNode(t){return this.ifConnectionHasJwt((async o=>{const r=new m.Uuid;r.setHex(t);const e=new y.ExpandNodeRequest;e.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.expandNode(e,t,o)))}))}async collapseAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.collapseAll(new y.CollapseAllRequest,t,o)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.expandAll(new y.ExpandAllRequest,t,o)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async o=>{const r=new m.Uuid;r.setHex(t);const e=new y.LocateItemRequest;e.setNodeId(r);const n=await this.requestUnary(o,((t,o)=>this.client.locateItem(e,t,o))),{requiresReload:i,locatedIndex:s}=n.toObject();if(i&&(this.invalidateAfterOffset(0),await this.fetchUnloadedPagesInActiveRows()),null==s)throw new Error("Cannot locate node. Location index is undefined.");return s.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async o=>{const r=new m.Uuid;r.setHex(t);const e=new y.GetNodeAncestorsRequest;return e.setNodeId(r),(await this.requestUnary(o,((t,o)=>this.client.getNodeAncestors(e,t,o)))).toObject().itemsList}))}async fetchPage(t){return this.ifConnectionHasJwt((async o=>{var r;if(!(t<0||t>this.maxPages-1)){if(!this.pages.has(t)){const r=t*this.rowLimit;this.log("Scene tree fetching page",t,r);const e=this.fetchTree(r,this.rowLimit,o),n={id:this.nextPageId++,res:e,index:t,metadataKeys:this.metadataKeys};this.pages.set(t,n),this.handlePageResult(n)}await(null===(r=this.pages.get(t))||void 0===r?void 0:r.res)}}))}fetchPageAtOffset(t){const o=Math.floor(t/this.rowLimit);return this.fetchPage(o)}async fetchRange(t,o){const r=Math.floor(t/this.rowLimit),e=Math.floor(o/this.rowLimit),[n,i]=this.constrainPageRange(r,e),s=i-n+1;await Promise.all(Array.from({length:s}).map(((t,o)=>this.fetchPage(o))))}async fetchMetadataKeys(){return this.ifConnectionHasJwt((async t=>(await this.requestUnary(t,((t,o)=>{const r=new y.GetAvailableColumnsRequest;this.client.getAvailableColumns(r,t,o)}))).getKeysList().map((t=>t.getValue()))))}async filter(t,o={}){return this.ifConnectionHasJwt((async r=>{this.updateState(Object.assign(Object.assign({},this.state),{isSearching:!0}));try{const e=await this.requestUnary(r,((r,e)=>{var n;const i=new y.FilterRequest;i.setFilter(t),i.setFullTree(null===(n=o.includeCollapsed)||void 0===n||n),i.setExactMatch(!!o.exactMatch),o.columns&&i.setColumnsKeysList(o.columns),this.client.filter(i,r,e)})),{numberOfResults:n}=e.toObject();this.updateState(Object.assign(Object.assign({},this.state),{totalFilteredRows:n,isSearching:!1}))}catch(t){console.error("Failed to filter search ",t),this.updateState(Object.assign(Object.assign({},this.state),{isSearching:!1}))}}))}isPageLoaded(t){return this.pages.has(t)}getNonLoadedPageIndexes(t,o){const[r,e]=this.constrainPageRange(t,o);return Array.from({length:e-r+1}).map(((t,o)=>r+o)).filter((t=>!this.isPageLoaded(t)))}getPage(t){return this.pages.get(t)}invalidatePagesOutsideRange(t,o,r=0){const[e,n]=this.constrainPageRange(t,o),i=Math.max(n-e,r);if(this.fetchedPageCount>i){const t=Array.from(this.pages.keys()).map((t=>({index:t,distance:t<e?e-t:t-n})));t.sort(((t,o)=>o.distance-t.distance)).slice(0,t.length-r).forEach((({index:t})=>this.invalidatePage(t))),this.log(`Scene tree dropped ${t.length-this.fetchedPageCount} pages`,this.pages)}}setMetadataKeys(t){if(this.metadataKeys=t,"connected"===this.state.connection.type){const[t,o]=this.activeRowRange;return this.invalidateAfterOffset(0),this.updateActiveRowRange(t,o)}return Promise.resolve()}async updateActiveRowRange(t,o){this.activeRowRange=this.constrainRowOffsets(t,o),await this.fetchUnloadedPagesInActiveRows()}subscribe(){return this.ifConnectionHasJwt((t=>{const o=this.requestServerStream(t,(t=>this.client.subscribe(new y.SubscribeRequest,t)));return o.on("data",(t=>{t.hasHandshake()&&this.clearHandshakeTimer(),this.startIdleReconnectTimer();const{change:o}=t.toObject();null!=(null==o?void 0:o.listChange)&&(this.log("Received list change",o.listChange.start),this.invalidateAfterOffset(o.listChange.start),this.fetchUnloadedPagesInActiveRows());const{hiddenList:r=[],shownList:e=[],partiallyVisibleList:n=[],deselectedList:i=[],selectedList:s=[]}=(null==o?void 0:o.ranges)||{};n.length>0&&(this.log("Received partial visibility list change",n),n.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({partiallyVisible:!0})))))),r.length>0&&(this.log("Received hidden list change",r),r.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:!1,partiallyVisible:!1})))))),e.length>0&&(this.log("Received shown list change",e),e.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:!0,partiallyVisible:!1})))))),i.length>0&&(this.log("Received deselected list change",i),i.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:!1})))))),s.length>0&&(this.log("Received selected list change",s),s.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:!0}))))))})),o.on("status",(t=>{0!==t.code&&(console.error(`Failed to subscribe to scene tree with code=${t.code}, details=${t.details}`),this.invalidateAfterOffset(0))})),o.on("end",(()=>{this.invalidateAfterOffset(0)})),o}))}async fetchUnloadedPagesInActiveRows(){const[t,o]=this.getPageIndexesForRange(this.activeRowRange[0],this.activeRowRange[1]),r=this.getNonLoadedPageIndexes(t-1,o+1);await Promise.all(r.map((t=>this.fetchPage(t))))}patchNodesInRange(t,o,r){const e=this.state.rows.slice(t,o+1).map((t=>v(t)?Object.assign(Object.assign({},t),{node:Object.assign(Object.assign({},t.node),r(t.node))}):t)),n=[...this.state.rows.slice(0,t),...e,...this.state.rows.slice(o+1)];this.updateState(Object.assign(Object.assign({},this.state),{rows:n}))}async handlePageResult(t){var o;try{const r=await t.res,e=this.getPage(t.index);if((null==e?void 0:e.id)===t.id){const n=r.getCursor(),i=r.getItemsList(),s=null!==(o=null==n?void 0:n.getTotal())&&void 0!==o?o:0,u=t.index*this.rowLimit,a=d(u,i,e.metadataKeys),c=this.state.rows.slice(0,u),p=this.state.rows.slice(c.length+a.length,s),l=new Array(Math.max(0,s-c.length-a.length-p.length)),h=[...c,...a,...p,...l];this.isViewLoading(h)&&null==this.loadingTimer?(this.loadingTimer=window.setTimeout((()=>{this.updateState(Object.assign(Object.assign({},this.getState()),{shouldShowLoading:!0}))}),this.connectOptions.spinnerDelay),this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:h}))):this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:h}))}}catch(o){const r=o instanceof Error?o.toString():"Unknown";console.error(`Request error fetching page at index ${t.index} (${r})`);const e=this.getPage(t.index);(null==e?void 0:e.id)===t.id&&this.invalidatePage(t.index)}}invalidatePage(t){this.isPageLoaded(t)&&this.pages.delete(t)}invalidateAfterOffset(t){const o=Math.floor(t/this.rowLimit);for(const t of this.pages.keys())t>=o&&this.invalidatePage(t)}getState(){return this.state}isViewLoading(t){return null==t[this.activeRowRange[0]]&&null==t[this.activeRowRange[1]]}updateState(t){this.loadingTimer&&!this.isViewLoading(t.rows)?(clearTimeout(this.loadingTimer),this.loadingTimer=void 0,this.state=Object.assign(Object.assign({},t),{shouldShowLoading:!1})):this.state=Object.assign({},t),this.onStateChange.emit(this.state)}getPageForOffset(t){const o=Math.floor(t/this.rowLimit);return this.constrainPageIndex(o)}getPageIndexesForRange(t,o){return[this.getPageForOffset(t),this.getPageForOffset(o)]}async fetchTree(t,o,r){return this.requestUnary(r,((r,e)=>{const n=new b.OffsetPager;n.setOffset(t),n.setLimit(o);const i=new y.GetTreeRequest;i.setPager(n),i.setAdditionalColumnKeysList(this.metadataKeys),this.client.getTree(i,r,e)}))}requestUnary(t,o){return new Promise(((r,e)=>{const n=this.createJwtMetadata(t);o(n,((t,o)=>{null!=t?e(t):null!=o?r(o):e(new Error("Invalid response. Both error and result are null"))}))}))}requestServerStream(t,o){return o(this.createJwtMetadata(t))}createJwtMetadata(t){return new l.grpc.Metadata({"jwt-context":JSON.stringify({jwt:t})})}async ifConnectionHasJwt(t){const{connection:o}=this.state;if("connecting"===o.type||"connected"===o.type){const r=await o.jwtProvider();if(null!=r)return t(r);throw new Error("SceneTreeController cannot perform request. Viewer JWT is undefined.")}throw new Error("SceneTreeController is not in connected state")}getConnectionError(t){return"number"==typeof(o=t).code&&o.hasOwnProperty("metadata")?new k(t.code===l.grpc.Code.FailedPrecondition?L.SCENE_TREE_DISABLED:L.UNKNOWN):new k(L.UNKNOWN);var o}constrainPageRange(t,o){return[Math.max(0,t),Math.min(this.maxPages-1,o)]}constrainPageIndex(t){return Math.max(0,Math.min(t,this.maxPages-1))}constrainRowOffsets(t,o){return[Math.max(0,t),Math.min(this.state.totalRows-1,o)]}get maxPages(){return Math.max(1,Math.ceil(this.state.totalRows/this.rowLimit))}log(t,...o){this.debugLogs&&console.debug(t,o)}}async function j(t,o,{suppliedCorrelationId:r}={}){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).show())).execute({suppliedCorrelationId:r})}async function D(t,o,{suppliedCorrelationId:r}={}){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).hide())).execute({suppliedCorrelationId:r})}A.IDLE_RECONNECT_IN_SECONDS=240,A.LOST_CONNECTION_RECONNECT_IN_SECONDS=2;const N=class{constructor(t){r(this,t),this.connectionError=e(this,"connectionError",7),this.overScanCount=25,this.configEnv="platprod",this.metadataSearchExactMatch=!1,this.metadataSearchKeys=[],this.metadataKeys=[],this.rows=[],this.totalRows=0,this.showLoader=!1,this.stateMap={componentLoaded:!1},this.attemptingRetry=!1}async invalidateRows(){n(this.getLayoutElement())}async scrollToIndex(t,o={}){const{animate:r,position:e="middle"}=o,n=Math.max(0,Math.min(t,this.totalRows)),i=this.getScrollToPosition(n,e);this.getLayoutElement().scrollToPosition(i,{behavior:r?"smooth":void 0})}async scrollToItem(t,o={}){var r;const e=this.totalRows,n=await(null===(r=this.controller)||void 0===r?void 0:r.expandParentNodes(t));if(null!=n&&e!==this.totalRows)return new Promise((t=>{const r=this.getLayoutElement(),e=async()=>{r.removeEventListener("layoutRendered",e),await this.scrollToIndex(n,o),t()};r.addEventListener("layoutRendered",e)}));null!=n&&await this.scrollToIndex(n,o)}async expandAll(){var t;await(null===(t=this.controller)||void 0===t?void 0:t.expandAll())}async collapseAll(){var t;await(null===(t=this.controller)||void 0===t?void 0:t.collapseAll())}async expandItem(t){await this.performRowOperation(t,(async({id:t,node:o})=>{var r;o.expanded||await(null===(r=this.controller)||void 0===r?void 0:r.expandNode(t))}))}async collapseItem(t){await this.performRowOperation(t,(async({id:t,node:o})=>{var r;o.expanded&&await(null===(r=this.controller)||void 0===r?void 0:r.collapseNode(t))}))}async toggleExpandItem(t){await this.performRowOperation(t,(async({node:t})=>{t.expanded?await this.collapseItem(t):await this.expandItem(t)}))}async toggleItemVisibility(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible||r.partiallyVisible?await D(t,o):await j(t,o)}))}async hideItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible&&await D(t,o)}))}async showItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible||await j(t,o)}))}async selectItem(t,o={}){var{recurseParent:r}=o,e=u(o,["recurseParent"]);await this.performRowOperation(t,(async({viewer:t,id:o})=>{var n,i,s,u;const a=await(null===(n=this.controller)||void 0===n?void 0:n.fetchNodeAncestors(o))||[],c=null===(i=this.stateMap.selectionPath)||void 0===i?void 0:i.includes(o);if(r&&c){const t=a.find((({selected:t})=>!t));null!=t&&(await this.selectItem(t,e),this.lastSelectedItemId=o)}else if(e.range&&null!=this.lastSelectedItemId){const r=await(null===(s=this.controller)||void 0===s?void 0:s.expandParentNodes(o)),n=await(null===(u=this.controller)||void 0===u?void 0:u.expandParentNodes(this.lastSelectedItemId));if(n&&r){const o=Math.min(n,r),i=Math.max(n,r);await async function(t,o,r,{material:e,append:n=!0,suppliedCorrelationId:i}){return(await t.scene()).items((t=>[...n?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withSceneTreeRange({start:o,end:r}))).select(e)])).execute({suppliedCorrelationId:i})}(t,o,i,e)}}else await async function(t,o,{material:r,append:e=!1,suppliedCorrelationId:n}){return(await t.scene()).items((t=>[...e?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withItemId(o))).select(r)])).execute({suppliedCorrelationId:n})}(t,o,e),this.lastSelectedItemId=o;this.stateMap.selectionPath=[...a.map((({id:t})=>(null==t?void 0:t.hex)||"")),o]}))}async deselectItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.selected&&(this.lastSelectedItemId=void 0,await async function(t,o,{suppliedCorrelationId:r}={}){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).deselect())).execute({suppliedCorrelationId:r})}(t,o))}))}async getRowAtIndex(t){return this.rows[t]}async getRowForEvent(t){const{clientY:o,target:r}=t;return null!=r&&null==this.errorDetails&&w(this.el,r)&&null!=(e=r)&&"VERTEX-SCENE-TREE-TABLE-CELL"===e.nodeName?this.getRowAtClientY(o):void 0;var e}getRowAtClientY(t){const o=this.getLayoutElement(),r=Math.floor((t-o.layoutOffset+o.scrollOffset)/o.rowHeight);return this.getRowAtIndex(r)}async filterItems(t,o={}){var r;return null===(r=this.controller)||void 0===r?void 0:r.filter(t,o)}async selectFilteredItems(t,o){if(null!=this.viewer){const r=this.metadataSearchKeys.length>0?this.metadataSearchKeys:this.metadataKeys;await async function(t,o,r,e,{material:n,append:i=!1,suppliedCorrelationId:s}){return(await t.scene()).items((t=>[...i?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withMetadata(o,r,e))).select(n)])).execute({suppliedCorrelationId:s})}(this.viewer,t,r,this.metadataSearchExactMatch,Object.assign({append:!1},o))}}async fetchMetadataKeys(){var t,o;return null!==(o=null===(t=this.controller)||void 0===t?void 0:t.fetchMetadataKeys())&&void 0!==o?o:[]}disconnectedCallback(){var t;null===(t=this.stateMap.viewerDisposable)||void 0===t||t.dispose()}componentWillLoad(){if(null==this.controller){const{sceneTreeHost:t}=this.getConfig().network,o=new R(t,this.getConfig().flags.grpcUseStreamingWebSocketTransport?{transport:S}:void 0);this.controller=new A(o,100)}this.stateMap.onStateChangeDisposable=this.controller.onStateChange.on((t=>this.handleControllerStateChange(t))),this.connectToViewer()}async componentDidLoad(){var t;this.ensureLayoutDefined(),this.updateLayoutElement();const o=this.getLayoutElement(),r=new ResizeObserver((()=>{this.invalidateRows()}));r.observe(o),this.stateMap.resizeObserver=r,this.stateMap.componentLoaded=!0,null===(t=this.controller)||void 0===t||t.setMetadataKeys(this.metadataKeys),null==this.viewer&&(this.errorDetails=new k(L.MISSING_VIEWER))}componentWillRender(){this.updateLayoutElement()}render(){return t(i,null,t("div",{class:"header"},t("slot",{name:"header"},t("vertex-scene-tree-toolbar",{class:"search-toolbar"},t("vertex-scene-tree-search",{controller:this.controller})))),null!=this.errorDetails&&this.renderError(this.errorDetails),null==this.errorDetails&&t("div",{class:"rows-scroll"},this.showLoader&&t("slot",{name:"loading"},t("vertex-viewer-spinner",{class:"loading",size:"md"})),t("slot",null)),t("div",{class:"footer"},t("slot",{name:"footer"})))}renderError(o){return o.code!==L.SCENE_TREE_DISABLED?t(O,{details:o},t("button",{class:"button button-secondary",onClick:()=>this.retryConnectToViewer(),disabled:this.attemptingRetry},"Retry")):t(O,{details:o})}handleViewerChanged(t,o){this.stateMap.componentLoaded&&this.connectToViewer()}handleControllerChanged(t){var o;this.stateMap.componentLoaded&&(null===(o=this.stateMap.onStateChangeDisposable)||void 0===o||o.dispose(),this.stateMap.onStateChangeDisposable=t.onStateChange.on((t=>this.handleControllerStateChange(t))),t.setMetadataKeys(this.metadataKeys))}handleMetadataKeysChanged(){var t;null===(t=this.controller)||void 0===t||t.setMetadataKeys(this.metadataKeys)}retryConnectToViewer(){this.attemptingRetry=!0,this.errorDetails=void 0,this.connectToViewer()}connectToViewer(){var t,o;null===(t=this.stateMap.viewerDisposable)||void 0===t||t.dispose(),null==this.viewer&&null!=this.viewerSelector&&(this.viewer=document.querySelector(this.viewerSelector)),null!=this.viewer?this.stateMap.viewerDisposable=null===(o=this.controller)||void 0===o?void 0:o.connectToViewer(this.viewer):this.attemptingRetry=!1}scheduleClearUnusedData(){null!=this.stateMap.idleCallbackId&&window.cancelIdleCallback(this.stateMap.idleCallbackId),this.stateMap.idleCallbackId=window.requestIdleCallback((t=>{var o,r,e;const n=null===(o=t.timeRemaining)||void 0===o?void 0:o.call(t);if(null==n||n>=25){const t=this.getLayoutElement(),o=t.viewportStartIndex,n=t.viewportEndIndex,[i,s]=(null===(r=this.controller)||void 0===r?void 0:r.getPageIndexesForRange(o,n))||[];null!=i&&null!=s&&(null===(e=this.controller)||void 0===e||e.invalidatePagesOutsideRange(i,s,50))}else this.scheduleClearUnusedData()}))}handleControllerStateChange(t){this.showLoader=!!t.shouldShowLoading,this.rows=t.rows,this.totalRows=t.totalRows,"failure"===t.connection.type?(this.errorDetails=t.connection.details,this.connectionError.emit(t.connection.details)):this.errorDetails="disconnected"===t.connection.type?new k(L.DISCONNECTED):void 0,"connected"!==t.connection.type&&"failure"!==t.connection.type||(this.attemptingRetry=!1)}async performRowOperation(t,o){const r="number"==typeof t?this.rows[t]:t;if(null==r)throw new Error("Cannot perform scene tree operation. Row not found.");const e=v(r)?r.node:r;if(null==e.id)throw new Error("Cannot perform scene tree operation. ID is undefined.");if(null==this.viewer)throw new Error("Cannot perform scene tree operation. Cannot get reference to viewer.");await o({viewer:this.viewer,id:e.id.hex,node:e})}async handleSearch(t){const o=this.metadataSearchKeys.length>0?this.metadataSearchKeys:this.metadataKeys;try{await this.filterItems(t.detail,{columns:o,exactMatch:this.metadataSearchExactMatch})}catch(t){console.error("Failed to filter tree with exception: ",t)}}getScrollToPosition(t,o){var r;const e=this.getLayoutElement(),n=Math.max(0,Math.min(t,this.totalRows-1)),i=null!==(r=e.layoutHeight)&&void 0!==r?r:0,s=e.rowHeight;return"start"===o?n*s:"middle"===o?n*s+s/2-i/2:n*s+s-i}getConfig(){return h(this.configEnv,this.config)}ensureLayoutDefined(){let t=this.el.querySelector("vertex-scene-tree-table-layout");null==t&&(t=document.createElement("vertex-scene-tree-table-layout"),t.innerHTML='\n <vertex-scene-tree-table-column>\n <template>\n <vertex-scene-tree-table-cell prop:value="{{row.node.name}}" expand-toggle visibility-toggle></vertex-scene-tree-table-cell>\n </template>\n </vertex-scene-tree-table-column>\n ',this.el.appendChild(t)),this.stateMap.layoutEl=t}updateLayoutElement(){const t=this.stateMap.layoutEl;null!=t?(t.rows=this.rows,t.tree=this.el,t.totalRows=this.totalRows,t.controller=this.controller,t.rowData=this.rowData):!this.stateMap.componentLoaded&&this.totalRows>0&&console.debug("Scene tree has rows, but the component has not yet rendered")}getLayoutElement(){if(null!=this.stateMap.layoutEl)return this.stateMap.layoutEl;throw new Error("Layout element is undefined")}get el(){return s(this)}static get watchers(){return{viewer:["handleViewerChanged"],controller:["handleControllerChanged"],metadataKeys:["handleMetadataKeysChanged"]}}};N.style="button{border:none;background:transparent;cursor:pointer;margin:0;padding:0}.button{padding:0.5rem;border-radius:0.25rem}.button-secondary{color:var(--neutral-800);background-color:var(--neutral-300)}.button-secondary:hover{color:var(--neutral-900)}.button-secondary:hover:enabled{box-shadow:0 2px 2px rgb(0 0 0 / 20%)}.button-secondary:disabled{opacity:0.8}.button-secondary:hover:disabled{cursor:not-allowed}:host{--scene-tree-toolbar-separator:1px solid var(--neutral-300);width:300px;height:100%;user-select:none;-webkit-user-select:none;cursor:default;display:flex;flex-direction:column}.rows-scroll{position:relative;height:var(--scene-tree-row-height, 0);flex-grow:1}.rows{position:relative}.row{position:absolute;display:flex;align-items:center;width:100%;height:var(--scene-tree-row-height);padding:var(--scene-tree-row-padding);box-sizing:border-box}.row:hover{background-color:var(--scene-tree-row-hover-color)}.row.is-selected{background-color:var(--scene-tree-row-selected-color)}.expand-toggle{cursor:pointer;width:16px}.row-text{margin-left:0.25rem;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.visibility-btn{display:flex;align-items:center;visibility:hidden;padding:4px}.visibility-btn.is-hidden{visibility:visible}.row:hover .visibility-btn{visibility:visible}.error{display:flex;flex-direction:column;align-items:center;font-size:0.875rem;width:100%;height:100%;padding:1rem;box-sizing:border-box;justify-content:center}.error-section{margin-top:1rem}.error-message{text-align:center}.search-toolbar,slot[name='header']::slotted(*){border-bottom:var(--scene-tree-toolbar-separator)}slot[name='footer']::slotted(:not(:last-child)){border-top:var(--scene-tree-toolbar-separator)}.header{display:flex;flex-direction:column}.footer{display:flex;flex-direction:column}.loading{position:absolute;top:150px;left:50%;transform:translate(-50%, -50%);text-align:center}";export{N as vertex_scene_tree}
|
|
4
|
+
import{h as t,F as o,r,c as e,f as n,H as i,g as s}from"./p-d6fce4c1.js";import{o as u}from"./p-70e5e8a8.js";import{c as a}from"./p-dfe5a97d.js";import{a as c,w as p,g as l}from"./p-92fe4417.js";import{p as h}from"./p-927b528b.js";import{E as f}from"./p-65af7a89.js";import{i as v,f as d,g as w}from"./p-c8c4343b.js";import"./p-31b87b90.js";import"./p-df8fbe56.js";window.requestIdleCallback=window.requestIdleCallback||function(t){var o=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-o))}})}),1)},window.cancelIdleCallback=window.cancelIdleCallback||function(t){clearTimeout(t)};var b=a((function(t,o){var r=c,e=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Cursor",null,e),r.exportSymbol("proto.vertexvis.protobuf.core.OffsetCursor",null,e),r.exportSymbol("proto.vertexvis.protobuf.core.OffsetPager",null,e),r.exportSymbol("proto.vertexvis.protobuf.core.Pager",null,e),proto.vertexvis.protobuf.core.Pager=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Pager,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Pager.displayName="proto.vertexvis.protobuf.core.Pager"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Pager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Pager.toObject(t,this)},proto.vertexvis.protobuf.core.Pager.toObject=function(t,o){var r={limit:c.Message.getFieldWithDefault(o,1,0),cursor:c.Message.getFieldWithDefault(o,2,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Pager.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Pager;return proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setLimit(r);break;case 2:r=o.readString(),t.setCursor(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Pager.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getLimit())&&o.writeUint32(1,r),(r=t.getCursor()).length>0&&o.writeString(2,r)},proto.vertexvis.protobuf.core.Pager.prototype.getLimit=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Pager.prototype.setLimit=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.Pager.prototype.getCursor=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.Pager.prototype.setCursor=function(t){c.Message.setProto3StringField(this,2,t)},proto.vertexvis.protobuf.core.OffsetPager=function(t){c.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_)},r.inherits(proto.vertexvis.protobuf.core.OffsetPager,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.OffsetPager.displayName="proto.vertexvis.protobuf.core.OffsetPager"),proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_=[[2,3]],proto.vertexvis.protobuf.core.OffsetPager.PagerCase={PAGER_NOT_SET:0,CURSOR:2,OFFSET:3},proto.vertexvis.protobuf.core.OffsetPager.prototype.getPagerCase=function(){return c.Message.computeOneofCase(this,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0])},c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.OffsetPager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetPager.toObject(t,this)},proto.vertexvis.protobuf.core.OffsetPager.toObject=function(t,o){var r={limit:c.Message.getFieldWithDefault(o,1,0),cursor:c.Message.getFieldWithDefault(o,2,""),offset:c.Message.getFieldWithDefault(o,3,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.OffsetPager.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.OffsetPager;return proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setLimit(r);break;case 2:r=o.readString(),t.setCursor(r);break;case 3:r=o.readUint32(),t.setOffset(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.OffsetPager.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getLimit())&&o.writeUint32(1,r),null!=(r=c.Message.getField(t,2))&&o.writeString(2,r),null!=(r=c.Message.getField(t,3))&&o.writeUint32(3,r)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getLimit=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setLimit=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getCursor=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetPager.prototype.setCursor=function(t){c.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearCursor=function(){c.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasCursor=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getOffset=function(){return c.Message.getFieldWithDefault(this,3,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setOffset=function(t){c.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearOffset=function(){c.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasOffset=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.core.Cursor=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Cursor,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Cursor.displayName="proto.vertexvis.protobuf.core.Cursor"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Cursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Cursor.toObject(t,this)},proto.vertexvis.protobuf.core.Cursor.toObject=function(t,o){var r={next:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Cursor.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Cursor;return proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setNext(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Cursor.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter=function(t,o){var r;(r=t.getNext()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.core.Cursor.prototype.getNext=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Cursor.prototype.setNext=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.core.OffsetCursor=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.OffsetCursor,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.OffsetCursor.displayName="proto.vertexvis.protobuf.core.OffsetCursor"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.OffsetCursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetCursor.toObject(t,this)},proto.vertexvis.protobuf.core.OffsetCursor.toObject=function(t,o){var r={total:c.Message.getFieldWithDefault(o,1,0),next:c.Message.getFieldWithDefault(o,2,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.OffsetCursor;return proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setTotal(r);break;case 2:r=o.readString(),t.setNext(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.OffsetCursor.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getTotal())&&o.writeUint32(1,r),(r=t.getNext()).length>0&&o.writeString(2,r)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.getTotal=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setTotal=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.getNext=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setNext=function(t){c.Message.setProto3StringField(this,2,t)},r.object.extend(o,proto.vertexvis.protobuf.core)})),m=a((function(t,o){var r=c,e=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Uuid",null,e),r.exportSymbol("proto.vertexvis.protobuf.core.Uuid2l",null,e),proto.vertexvis.protobuf.core.Uuid=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Uuid,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid.displayName="proto.vertexvis.protobuf.core.Uuid"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Uuid.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid.toObject(t,this)},proto.vertexvis.protobuf.core.Uuid.toObject=function(t,o){var r={hex:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Uuid.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Uuid;return proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setHex(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Uuid.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter=function(t,o){var r;(r=t.getHex()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.core.Uuid.prototype.getHex=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Uuid.prototype.setHex=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.core.Uuid2l=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Uuid2l,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid2l.displayName="proto.vertexvis.protobuf.core.Uuid2l"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Uuid2l.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid2l.toObject(t,this)},proto.vertexvis.protobuf.core.Uuid2l.toObject=function(t,o){var r={msb:c.Message.getFieldWithDefault(o,1,"0"),lsb:c.Message.getFieldWithDefault(o,2,"0")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Uuid2l.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Uuid2l;return proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readSfixed64String();t.setMsb(r);break;case 2:r=o.readSfixed64String(),t.setLsb(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Uuid2l.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMsb(),0!==parseInt(r,10)&&o.writeSfixed64String(1,r),r=t.getLsb(),0!==parseInt(r,10)&&o.writeSfixed64String(2,r)},proto.vertexvis.protobuf.core.Uuid2l.prototype.getMsb=function(){return c.Message.getFieldWithDefault(this,1,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setMsb=function(t){c.Message.setProto3StringIntField(this,1,t)},proto.vertexvis.protobuf.core.Uuid2l.prototype.getLsb=function(){return c.Message.getFieldWithDefault(this,2,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setLsb=function(t){c.Message.setProto3StringIntField(this,2,t)},r.object.extend(o,proto.vertexvis.protobuf.core)})),g=a((function(t,o){var r=c,e=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Node",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Range",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType",null,e),proto.vertexvis.protobuf.scenetree.v1alpha1.Node=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Node,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Node.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Node"),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_=[10],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.toObject=function(t,o){var r,e={id:(r=o.getId())&&m.Uuid.toObject(t,r),depth:c.Message.getFieldWithDefault(o,2,0),name:c.Message.getFieldWithDefault(o,3,""),visible:c.Message.getFieldWithDefault(o,4,!1),selected:c.Message.getFieldWithDefault(o,5,!1),expanded:c.Message.getFieldWithDefault(o,6,!1),isLeaf:c.Message.getFieldWithDefault(o,7,!1),suppliedId:(r=o.getSuppliedId())&&p.StringValue.toObject(t,r),partiallyVisible:c.Message.getFieldWithDefault(o,9,!1),columnsList:c.Message.getRepeatedField(o,10),filterHit:c.Message.getFieldWithDefault(o,11,!1)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Node;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setId(r);break;case 2:r=o.readUint32(),t.setDepth(r);break;case 3:r=o.readString(),t.setName(r);break;case 4:r=o.readBool(),t.setVisible(r);break;case 5:r=o.readBool(),t.setSelected(r);break;case 6:r=o.readBool(),t.setExpanded(r);break;case 7:r=o.readBool(),t.setIsLeaf(r);break;case 8:r=new p.StringValue,o.readMessage(r,p.StringValue.deserializeBinaryFromReader),t.setSuppliedId(r);break;case 9:r=o.readBool(),t.setPartiallyVisible(r);break;case 10:r=o.readString(),t.addColumns(r);break;case 11:r=o.readBool(),t.setFilterHit(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter),0!==(r=t.getDepth())&&o.writeUint32(2,r),(r=t.getName()).length>0&&o.writeString(3,r),(r=t.getVisible())&&o.writeBool(4,r),(r=t.getSelected())&&o.writeBool(5,r),(r=t.getExpanded())&&o.writeBool(6,r),(r=t.getIsLeaf())&&o.writeBool(7,r),null!=(r=t.getSuppliedId())&&o.writeMessage(8,r,p.StringValue.serializeBinaryToWriter),(r=t.getPartiallyVisible())&&o.writeBool(9,r),(r=t.getColumnsList()).length>0&&o.writeRepeatedString(10,r),(r=t.getFilterHit())&&o.writeBool(11,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearId=function(){this.setId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getDepth=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setDepth=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getName=function(){return c.Message.getFieldWithDefault(this,3,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setName=function(t){c.Message.setProto3StringField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getVisible=function(){return c.Message.getFieldWithDefault(this,4,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setVisible=function(t){c.Message.setProto3BooleanField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSelected=function(){return c.Message.getFieldWithDefault(this,5,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSelected=function(t){c.Message.setProto3BooleanField(this,5,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getExpanded=function(){return c.Message.getFieldWithDefault(this,6,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setExpanded=function(t){c.Message.setProto3BooleanField(this,6,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getIsLeaf=function(){return c.Message.getFieldWithDefault(this,7,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setIsLeaf=function(t){c.Message.setProto3BooleanField(this,7,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSuppliedId=function(){return c.Message.getWrapperField(this,p.StringValue,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSuppliedId=function(t){c.Message.setWrapperField(this,8,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearSuppliedId=function(){this.setSuppliedId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasSuppliedId=function(){return null!=c.Message.getField(this,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPartiallyVisible=function(){return c.Message.getFieldWithDefault(this,9,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPartiallyVisible=function(t){c.Message.setProto3BooleanField(this,9,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getColumnsList=function(){return c.Message.getRepeatedField(this,10)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setColumnsList=function(t){c.Message.setField(this,10,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.addColumns=function(t,o){c.Message.addToRepeatedField(this,10,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearColumnsList=function(){this.setColumnsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getFilterHit=function(){return c.Message.getFieldWithDefault(this,11,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setFilterHit=function(t){c.Message.setProto3BooleanField(this,11,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject=function(t,o){var r={start:c.Message.getFieldWithDefault(o,1,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readInt32();t.setStart(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter=function(t,o){var r;0!==(r=t.getStart())&&o.writeInt32(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.getStart=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.setStart=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Range,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Range.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Range"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject=function(t,o){var r={start:c.Message.getFieldWithDefault(o,1,0),end:c.Message.getFieldWithDefault(o,2,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readInt32();t.setStart(r);break;case 2:r=o.readInt32(),t.setEnd(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getStart())&&o.writeInt32(1,r),0!==(r=t.getEnd())&&o.writeInt32(2,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getStart=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setStart=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getEnd=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setEnd=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange"),proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_=[1,2,3,4,5],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject=function(t,o){var r={hiddenList:c.Message.toObjectList(o.getHiddenList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),shownList:c.Message.toObjectList(o.getShownList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),selectedList:c.Message.toObjectList(o.getSelectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),deselectedList:c.Message.toObjectList(o.getDeselectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),partiallyVisibleList:c.Message.toObjectList(o.getPartiallyVisibleList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addHidden(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addShown(r);break;case 3:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addSelected(r);break;case 4:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addDeselected(r);break;case 5:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addPartiallyVisible(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getHiddenList()).length>0&&o.writeRepeatedMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getShownList()).length>0&&o.writeRepeatedMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getSelectedList()).length>0&&o.writeRepeatedMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getDeselectedList()).length>0&&o.writeRepeatedMessage(4,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getPartiallyVisibleList()).length>0&&o.writeRepeatedMessage(5,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getHiddenList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setHiddenList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addHidden=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearHiddenList=function(){this.setHiddenList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getShownList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setShownList=function(t){c.Message.setRepeatedWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addShown=function(t,o){return c.Message.addToRepeatedWrapperField(this,2,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearShownList=function(){this.setShownList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getSelectedList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setSelectedList=function(t){c.Message.setRepeatedWrapperField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addSelected=function(t,o){return c.Message.addToRepeatedWrapperField(this,3,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearSelectedList=function(){this.setSelectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getDeselectedList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,4)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setDeselectedList=function(t){c.Message.setRepeatedWrapperField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addDeselected=function(t,o){return c.Message.addToRepeatedWrapperField(this,4,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearDeselectedList=function(){this.setDeselectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getPartiallyVisibleList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,5)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setPartiallyVisibleList=function(t){c.Message.setRepeatedWrapperField(this,5,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addPartiallyVisible=function(t,o){return c.Message.addToRepeatedWrapperField(this,5,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearPartiallyVisibleList=function(){this.setPartiallyVisibleList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType=function(t){c.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType"),proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_=[[1,2,3]],proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase={SEALED_VALUE_NOT_SET:0,LIST_CHANGE:1,RANGES:2,KEEP_ALIVE:3},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getSealedValueCase=function(){return c.Message.computeOneofCase(this,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0])},c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject=function(t,o){var r,e={listChange:(r=o.getListChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,r),ranges:(r=o.getRanges())&&proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,r),keepAlive:(r=o.getKeepAlive())&&proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader),t.setListChange(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader),t.setRanges(r);break;case 3:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader),t.setKeepAlive(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getListChange())&&o.writeMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter),null!=(r=t.getRanges())&&o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter),null!=(r=t.getKeepAlive())&&o.writeMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getListChange=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setListChange=function(t){c.Message.setOneofWrapperField(this,1,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearListChange=function(){this.setListChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasListChange=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getRanges=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setRanges=function(t){c.Message.setOneofWrapperField(this,2,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearRanges=function(){this.setRanges(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasRanges=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getKeepAlive=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setKeepAlive=function(t){c.Message.setOneofWrapperField(this,3,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearKeepAlive=function(){this.setKeepAlive(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasKeepAlive=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject=function(t,o){var r={value:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setValue(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter=function(t,o){var r;(r=t.getValue()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.getValue=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.setValue=function(t){c.Message.setProto3StringField(this,1,t)},r.object.extend(o,proto.vertexvis.protobuf.scenetree.v1alpha1)})),y=a((function(t,o){var r=c,e=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest",null,e),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse",null,e),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_=[3],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject=function(t,o){var r,e={viewId:(r=o.getViewId())&&m.Uuid.toObject(t,r),pager:(r=o.getPager())&&b.OffsetPager.toObject(t,r),additionalColumnKeysList:c.Message.getRepeatedField(o,3)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new b.OffsetPager,o.readMessage(r,b.OffsetPager.deserializeBinaryFromReader),t.setPager(r);break;case 3:r=o.readString(),t.addAdditionalColumnKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter),null!=(r=t.getPager())&&o.writeMessage(2,r,b.OffsetPager.serializeBinaryToWriter),(r=t.getAdditionalColumnKeysList()).length>0&&o.writeRepeatedString(3,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getPager=function(){return c.Message.getWrapperField(this,b.OffsetPager,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setPager=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearPager=function(){this.setPager(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasPager=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getAdditionalColumnKeysList=function(){return c.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setAdditionalColumnKeysList=function(t){c.Message.setField(this,3,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.addAdditionalColumnKeys=function(t,o){c.Message.addToRepeatedField(this,3,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearAdditionalColumnKeysList=function(){this.setAdditionalColumnKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject=function(t,o){var r,e={itemsList:c.Message.toObjectList(o.getItemsList(),g.Node.toObject,t),totalVisible:c.Message.getFieldWithDefault(o,2,0),cursor:(r=o.getCursor())&&b.OffsetCursor.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new g.Node;o.readMessage(r,g.Node.deserializeBinaryFromReader),t.addItems(r);break;case 2:r=o.readUint32(),t.setTotalVisible(r);break;case 3:r=new b.OffsetCursor,o.readMessage(r,b.OffsetCursor.deserializeBinaryFromReader),t.setCursor(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,g.Node.serializeBinaryToWriter),0!==(r=t.getTotalVisible())&&o.writeUint32(2,r),null!=(r=t.getCursor())&&o.writeMessage(3,r,b.OffsetCursor.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getItemsList=function(){return c.Message.getRepeatedWrapperField(this,g.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setItemsList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.addItems=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getTotalVisible=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setTotalVisible=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getCursor=function(){return c.Message.getWrapperField(this,b.OffsetCursor,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setCursor=function(t){c.Message.setWrapperField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearCursor=function(){this.setCursor(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.hasCursor=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject=function(t,o){var r,e={viewId:(r=o.getViewId())&&m.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&m.Uuid.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new m.Uuid,o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,m.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,m.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject=function(t,o){var r,e={viewId:(r=o.getViewId())&&m.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&m.Uuid.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new m.Uuid,o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,m.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,m.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject=function(t,o){var r,e={viewId:(r=o.getViewId())&&m.Uuid.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getViewId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject=function(t,o){var r,e={change:(r=o.getChange())&&g.TreeChangeType.toObject(t,r),handshake:(r=o.getHandshake())&&proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new g.TreeChangeType;o.readMessage(r,g.TreeChangeType.deserializeBinaryFromReader),t.setChange(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader),t.setHandshake(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getChange())&&o.writeMessage(1,r,g.TreeChangeType.serializeBinaryToWriter),null!=(r=t.getHandshake())&&o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getChange=function(){return c.Message.getWrapperField(this,g.TreeChangeType,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setChange=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearChange=function(){this.setChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasChange=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getHandshake=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setHandshake=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearHandshake=function(){this.setHandshake(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasHandshake=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake;return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Handshake.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_=[3],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject=function(t,o){var r={filter:c.Message.getFieldWithDefault(o,1,""),fullTree:c.Message.getFieldWithDefault(o,2,!1),columnsKeysList:c.Message.getRepeatedField(o,3),exactMatch:c.Message.getFieldWithDefault(o,4,!1)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setFilter(r);break;case 2:r=o.readBool(),t.setFullTree(r);break;case 3:r=o.readString(),t.addColumnsKeys(r);break;case 4:r=o.readBool(),t.setExactMatch(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getFilter()).length>0&&o.writeString(1,r),(r=t.getFullTree())&&o.writeBool(2,r),(r=t.getColumnsKeysList()).length>0&&o.writeRepeatedString(3,r),(r=t.getExactMatch())&&o.writeBool(4,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFilter=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFilter=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFullTree=function(){return c.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFullTree=function(t){c.Message.setProto3BooleanField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getColumnsKeysList=function(){return c.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setColumnsKeysList=function(t){c.Message.setField(this,3,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.addColumnsKeys=function(t,o){c.Message.addToRepeatedField(this,3,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.clearColumnsKeysList=function(){this.setColumnsKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getExactMatch=function(){return c.Message.getFieldWithDefault(this,4,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setExactMatch=function(t){c.Message.setProto3BooleanField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject=function(t,o){var r={numberOfResults:c.Message.getFieldWithDefault(o,1,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setNumberOfResults(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter=function(t,o){var r;0!==(r=t.getNumberOfResults())&&o.writeUint32(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.getNumberOfResults=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.setNumberOfResults=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject=function(t,o){var r,e={nodeId:(r=o.getNodeId())&&m.Uuid.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 2:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(2,r,m.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,m.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.toObject=function(t,o){var r,e={locatedIndex:(r=o.getLocatedIndex())&&p.UInt64Value.toObject(t,r),requiresReload:c.Message.getFieldWithDefault(o,2,!1)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new p.UInt64Value;o.readMessage(r,p.UInt64Value.deserializeBinaryFromReader),t.setLocatedIndex(r);break;case 2:r=o.readBool(),t.setRequiresReload(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getLocatedIndex())&&o.writeMessage(1,r,p.UInt64Value.serializeBinaryToWriter),(r=t.getRequiresReload())&&o.writeBool(2,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getLocatedIndex=function(){return c.Message.getWrapperField(this,p.UInt64Value,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setLocatedIndex=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.clearLocatedIndex=function(){this.setLocatedIndex(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.hasLocatedIndex=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getRequiresReload=function(){return c.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setRequiresReload=function(t){c.Message.setProto3BooleanField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject=function(t,o){var r,e={nodeId:(r=o.getNodeId())&&m.Uuid.toObject(t,r)};return t&&(e.$jspbMessageInstance=o),e}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new m.Uuid;o.readMessage(r,m.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(1,r,m.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,m.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject=function(t,o){var r={itemsList:c.Message.toObjectList(o.getItemsList(),g.Node.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new g.Node;o.readMessage(r,g.Node.deserializeBinaryFromReader),t.addItems(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,g.Node.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.getItemsList=function(){return c.Message.getRepeatedWrapperField(this,g.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.setItemsList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.addItems=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject=function(t,o){var r={keysList:c.Message.toObjectList(o.getKeysList(),g.ColumnKey.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new g.ColumnKey;o.readMessage(r,g.ColumnKey.deserializeBinaryFromReader),t.addKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getKeysList()).length>0&&o.writeRepeatedMessage(1,r,g.ColumnKey.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getKeysList=function(){return c.Message.getRepeatedWrapperField(this,g.ColumnKey,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setKeysList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.addKeys=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.clearKeysList=function(){this.setKeysList([])},r.object.extend(o,proto.vertexvis.protobuf.scenetree.v1alpha1)})),x=l.grpc,C=function(){function t(){}return t.serviceName="vertexvis.protobuf.scenetree.v1alpha1.SceneTreeAPI",t}();C.GetTree={methodName:"GetTree",service:C,requestStream:!1,responseStream:!1,requestType:y.GetTreeRequest,responseType:y.GetTreeResponse},C.ExpandNode={methodName:"ExpandNode",service:C,requestStream:!1,responseStream:!1,requestType:y.ExpandNodeRequest,responseType:y.ExpandNodeResponse},C.CollapseNode={methodName:"CollapseNode",service:C,requestStream:!1,responseStream:!1,requestType:y.CollapseNodeRequest,responseType:y.CollapseNodeResponse},C.Subscribe={methodName:"Subscribe",service:C,requestStream:!1,responseStream:!0,requestType:y.SubscribeRequest,responseType:y.SubscribeResponse},C.Filter={methodName:"Filter",service:C,requestStream:!1,responseStream:!1,requestType:y.FilterRequest,responseType:y.FilterResponse},C.LocateItem={methodName:"LocateItem",service:C,requestStream:!1,responseStream:!1,requestType:y.LocateItemRequest,responseType:y.LocateItemResponse},C.ExpandAll={methodName:"ExpandAll",service:C,requestStream:!1,responseStream:!1,requestType:y.ExpandAllRequest,responseType:y.ExpandAllResponse},C.CollapseAll={methodName:"CollapseAll",service:C,requestStream:!1,responseStream:!1,requestType:y.CollapseAllRequest,responseType:y.CollapseAllResponse},C.GetNodeAncestors={methodName:"GetNodeAncestors",service:C,requestStream:!1,responseStream:!1,requestType:y.GetNodeAncestorsRequest,responseType:y.GetNodeAncestorsResponse},C.GetAvailableColumns={methodName:"GetAvailableColumns",service:C,requestStream:!1,responseStream:!1,requestType:y.GetAvailableColumnsRequest,responseType:y.GetAvailableColumnsResponse};var E=C;function I(t,o){this.serviceHost=t,this.options=o||{}}I.prototype.getTree=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.GetTree,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.expandNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.ExpandNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.collapseNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.CollapseNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.subscribe=function(t,o){var r={data:[],end:[],status:[]},e=x.invoke(C.Subscribe,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onMessage:function(t){r.data.forEach((function(o){o(t)}))},onEnd:function(t,o,e){r.status.forEach((function(r){r({code:t,details:o,metadata:e})})),r.end.forEach((function(r){r({code:t,details:o,metadata:e})})),r=null}});return{on:function(t,o){return r[t].push(o),this},cancel:function(){r=null,e.close()}}},I.prototype.filter=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.Filter,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.locateItem=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.LocateItem,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.expandAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.ExpandAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.collapseAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.CollapseAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.getNodeAncestors=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.GetNodeAncestors,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}},I.prototype.getAvailableColumns=function(t,o,r){2===arguments.length&&(r=arguments[1]);var e=x.unary(C.GetAvailableColumns,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==x.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,e.close()}}};var R=I;const O=({details:r},e)=>t("div",{class:"error"},t("div",{class:"error-section error-message"},t("span",null,r.message),r.link&&t(o,null,t("span",null," See our "),t("a",{href:r.link,target:"_blank"},"documentation")," ",t("span",null," for more information."))),t("div",{class:"error-section"},e));var L;!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.SCENE_TREE_DISABLED=1]="SCENE_TREE_DISABLED",t[t.MISSING_VIEWER=2]="MISSING_VIEWER",t[t.DISCONNECTED=3]="DISCONNECTED",t[t.SUBSCRIPTION_FAILURE=4]="SUBSCRIPTION_FAILURE"}(L||(L={}));class k{constructor(t,o){this.code=t,this.link=o,this.message=function(t){switch(t){case L.UNKNOWN:return"An unknown error occurred.";case L.SCENE_TREE_DISABLED:return"The tree for this scene is not enabled. Enable the tree for this scene to interact with the tree.";case L.MISSING_VIEWER:return"Could not find reference to the viewer";case L.DISCONNECTED:return"Disconnected from server.";case L.SUBSCRIPTION_FAILURE:return"The tree was not able to receive subscription events"}}(t)}}function S(t){return t.methodDefinition.methodName===E.Subscribe.methodName?l.grpc.WebsocketTransport()(t):l.grpc.CrossBrowserHttpTransport({withCredentials:!1})(t)}function P(t){this.message=t}(P.prototype=new Error).name="InvalidCharacterError";var M="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var o=String(t).replace(/=+$/,"");if(o.length%4==1)throw new P("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,e,n=0,i=0,s="";e=o.charAt(i++);~e&&(r=n%4?64*r+e:e,n++%4)?s+=String.fromCharCode(255&r>>(-2*n&6)):0)e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);return s};function T(t){var o=t.replace(/-/g,"+").replace(/_/g,"/");switch(o.length%4){case 0:break;case 2:o+="==";break;case 3:o+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(M(t).replace(/(.)/g,(function(t,o){var r=o.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(o)}catch(t){return M(o)}}function q(t){this.message=t}(q.prototype=new Error).name="InvalidTokenError";class A{constructor(t,o,r={spinnerDelay:2e3,subscriptionHandshakeGracePeriodInMs:5e3}){this.client=t,this.rowLimit=o,this.connectOptions=r,this.nextPageId=0,this.pages=new Map,this.activeRowRange=[0,0],this.metadataKeys=[],this.debugLogs=!1,this.onStateChange=new f,this.state={totalRows:0,isSearching:!1,rows:[],connection:{type:"disconnected"}}}get fetchedPageCount(){return this.pages.size}get isConnected(){return"connected"===this.state.connection.type}stateChanged(t){return this.onStateChange.on(t)}setDebugLogs(t){this.debugLogs=t}async connect(t){const{connection:o}=this.state,r=t();if(null==r)throw new Error("Cannot connect scene tree. JWT is undefined");const{view:e}=function(t){return function(t,o){if("string"!=typeof t)throw new q("Invalid token specified");var r=!0===(o=o||{}).header?0:1;try{return JSON.parse(T(t.split(".")[r]))}catch(t){throw new q("Invalid token specified: "+t.message)}}(t)}(r);this.disconnect(o.sceneViewId!==e);const n={type:"connecting",jwtProvider:t,sceneViewId:e};this.updateState(Object.assign(Object.assign({},this.state),{connection:n}));try{this.log("Scene tree controller connecting."),await this.fetchPage(0),this.subscriptionHandshakeTimer=window.setTimeout((()=>{this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:e,details:new k(L.SUBSCRIPTION_FAILURE)}}))}),this.connectOptions.subscriptionHandshakeGracePeriodInMs);const o=await this.subscribe();o.on("end",(()=>this.startConnectionLostReconnectTimer())),this.updateState(Object.assign(Object.assign({},this.state),{connection:Object.assign(Object.assign({},n),{type:"connected",subscription:{dispose:()=>o.cancel()}})}))}catch(o){throw this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:e,details:this.getConnectionError(o)}})),this.clearHandshakeTimer(),o}this.startIdleReconnectTimer(),this.metadataKeys.length>0&&this.setMetadataKeys(this.metadataKeys)}clearReconnectTimer(){null!=this.reconnectTimer&&window.clearTimeout(this.reconnectTimer)}clearHandshakeTimer(){null!=this.subscriptionHandshakeTimer&&window.clearTimeout(this.subscriptionHandshakeTimer)}startIdleReconnectTimer(){this.startReconnectTimer(this.connectOptions.idleReconnectInSeconds||A.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||A.LOST_CONNECTION_RECONNECT_IN_SECONDS)}startReconnectTimer(t){this.clearReconnectTimer(),this.reconnectTimer=window.setTimeout((()=>{"connected"===this.state.connection.type&&this.connect(this.state.connection.jwtProvider)}),1e3*t)}connectToViewer(t){const o=async()=>{if(null!=t.token){this.log("Scene tree controller found viewer JWT. Attempting connection.");try{await this.connect((()=>t.token))}catch(t){console.error("Scene tree controller erred connecting.",t)}}},r=()=>{this.log("Scene tree controller received scene ready"),o()};return o(),t.addEventListener("sceneReady",r),{dispose:()=>{t.removeEventListener("sceneReady",r),this.disconnect()}}}disconnect(t=!1){this.log(`Scene tree controller disconnecting [reset=${t}]`),this.clearHandshakeTimer(),this.clearReconnectTimer(),t&&(this.pages.clear(),this.activeRowRange=[]);const{connection:o}=this.state;"connected"===o.type&&o.subscription.dispose(),this.updateState({connection:{type:"disconnected",jwtProvider:o.jwtProvider,sceneViewId:o.sceneViewId},isSearching:!1,totalRows:t?0:this.state.totalRows,rows:t?[]:this.state.rows})}async collapseNode(t){return this.ifConnectionHasJwt((async o=>{const r=new m.Uuid;r.setHex(t);const e=new y.CollapseNodeRequest;e.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.collapseNode(e,t,o)))}))}async expandNode(t){return this.ifConnectionHasJwt((async o=>{const r=new m.Uuid;r.setHex(t);const e=new y.ExpandNodeRequest;e.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.expandNode(e,t,o)))}))}async collapseAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.collapseAll(new y.CollapseAllRequest,t,o)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.expandAll(new y.ExpandAllRequest,t,o)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async o=>{const r=new m.Uuid;r.setHex(t);const e=new y.LocateItemRequest;e.setNodeId(r);const n=await this.requestUnary(o,((t,o)=>this.client.locateItem(e,t,o))),{requiresReload:i,locatedIndex:s}=n.toObject();if(i&&(this.invalidateAfterOffset(0),await this.fetchUnloadedPagesInActiveRows()),null==s)throw new Error("Cannot locate node. Location index is undefined.");return s.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async o=>{const r=new m.Uuid;r.setHex(t);const e=new y.GetNodeAncestorsRequest;return e.setNodeId(r),(await this.requestUnary(o,((t,o)=>this.client.getNodeAncestors(e,t,o)))).toObject().itemsList}))}async fetchPage(t){return this.ifConnectionHasJwt((async o=>{var r;if(!(t<0||t>this.maxPages-1)){if(!this.pages.has(t)){const r=t*this.rowLimit;this.log("Scene tree fetching page",t,r);const e=this.fetchTree(r,this.rowLimit,o),n={id:this.nextPageId++,res:e,index:t,metadataKeys:this.metadataKeys};this.pages.set(t,n),this.handlePageResult(n)}await(null===(r=this.pages.get(t))||void 0===r?void 0:r.res)}}))}fetchPageAtOffset(t){const o=Math.floor(t/this.rowLimit);return this.fetchPage(o)}async fetchRange(t,o){const r=Math.floor(t/this.rowLimit),e=Math.floor(o/this.rowLimit),[n,i]=this.constrainPageRange(r,e),s=i-n+1;await Promise.all(Array.from({length:s}).map(((t,o)=>this.fetchPage(o))))}async fetchMetadataKeys(){return this.ifConnectionHasJwt((async t=>(await this.requestUnary(t,((t,o)=>{const r=new y.GetAvailableColumnsRequest;this.client.getAvailableColumns(r,t,o)}))).getKeysList().map((t=>t.getValue()))))}async filter(t,o={}){return this.ifConnectionHasJwt((async r=>{this.updateState(Object.assign(Object.assign({},this.state),{isSearching:!0}));try{const e=await this.requestUnary(r,((r,e)=>{var n;const i=new y.FilterRequest;i.setFilter(t),i.setFullTree(null===(n=o.includeCollapsed)||void 0===n||n),i.setExactMatch(!!o.exactMatch),o.columns&&i.setColumnsKeysList(o.columns),this.client.filter(i,r,e)})),{numberOfResults:n}=e.toObject();this.updateState(Object.assign(Object.assign({},this.state),{totalFilteredRows:n,isSearching:!1}))}catch(t){console.error("Failed to filter search ",t),this.updateState(Object.assign(Object.assign({},this.state),{isSearching:!1}))}}))}isPageLoaded(t){return this.pages.has(t)}getNonLoadedPageIndexes(t,o){const[r,e]=this.constrainPageRange(t,o);return Array.from({length:e-r+1}).map(((t,o)=>r+o)).filter((t=>!this.isPageLoaded(t)))}getPage(t){return this.pages.get(t)}invalidatePagesOutsideRange(t,o,r=0){const[e,n]=this.constrainPageRange(t,o),i=Math.max(n-e,r);if(this.fetchedPageCount>i){const t=Array.from(this.pages.keys()).map((t=>({index:t,distance:t<e?e-t:t-n})));t.sort(((t,o)=>o.distance-t.distance)).slice(0,t.length-r).forEach((({index:t})=>this.invalidatePage(t))),this.log(`Scene tree dropped ${t.length-this.fetchedPageCount} pages`,this.pages)}}setMetadataKeys(t){if(this.metadataKeys=t,"connected"===this.state.connection.type){const[t,o]=this.activeRowRange;return this.invalidateAfterOffset(0),this.updateActiveRowRange(t,o)}return Promise.resolve()}async updateActiveRowRange(t,o){this.activeRowRange=this.constrainRowOffsets(t,o),await this.fetchUnloadedPagesInActiveRows()}subscribe(){return this.ifConnectionHasJwt((t=>{const o=this.requestServerStream(t,(t=>this.client.subscribe(new y.SubscribeRequest,t)));return o.on("data",(t=>{t.hasHandshake()&&this.clearHandshakeTimer(),this.startIdleReconnectTimer();const{change:o}=t.toObject();null!=(null==o?void 0:o.listChange)&&(this.log("Received list change",o.listChange.start),this.invalidateAfterOffset(o.listChange.start),this.fetchUnloadedPagesInActiveRows());const{hiddenList:r=[],shownList:e=[],partiallyVisibleList:n=[],deselectedList:i=[],selectedList:s=[]}=(null==o?void 0:o.ranges)||{};n.length>0&&(this.log("Received partial visibility list change",n),n.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({partiallyVisible:!0})))))),r.length>0&&(this.log("Received hidden list change",r),r.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:!1,partiallyVisible:!1})))))),e.length>0&&(this.log("Received shown list change",e),e.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:!0,partiallyVisible:!1})))))),i.length>0&&(this.log("Received deselected list change",i),i.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:!1})))))),s.length>0&&(this.log("Received selected list change",s),s.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:!0}))))))})),o.on("status",(t=>{0!==t.code&&(console.error(`Failed to subscribe to scene tree with code=${t.code}, details=${t.details}`),this.invalidateAfterOffset(0))})),o.on("end",(()=>{this.invalidateAfterOffset(0)})),o}))}async fetchUnloadedPagesInActiveRows(){const[t,o]=this.getPageIndexesForRange(this.activeRowRange[0],this.activeRowRange[1]),r=this.getNonLoadedPageIndexes(t-1,o+1);await Promise.all(r.map((t=>this.fetchPage(t))))}patchNodesInRange(t,o,r){const e=this.state.rows.slice(t,o+1).map((t=>v(t)?Object.assign(Object.assign({},t),{node:Object.assign(Object.assign({},t.node),r(t.node))}):t)),n=[...this.state.rows.slice(0,t),...e,...this.state.rows.slice(o+1)];this.updateState(Object.assign(Object.assign({},this.state),{rows:n}))}async handlePageResult(t){var o;try{const r=await t.res,e=this.getPage(t.index);if((null==e?void 0:e.id)===t.id){const n=r.getCursor(),i=r.getItemsList(),s=null!==(o=null==n?void 0:n.getTotal())&&void 0!==o?o:0,u=t.index*this.rowLimit,a=d(u,i,e.metadataKeys),c=this.state.rows.slice(0,u),p=this.state.rows.slice(c.length+a.length,s),l=new Array(Math.max(0,s-c.length-a.length-p.length)),h=[...c,...a,...p,...l];this.isViewLoading(h)&&null==this.loadingTimer?(this.loadingTimer=window.setTimeout((()=>{this.updateState(Object.assign(Object.assign({},this.getState()),{shouldShowLoading:!0}))}),this.connectOptions.spinnerDelay),this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:h}))):this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:h}))}}catch(o){const r=o instanceof Error?o.toString():"Unknown";console.error(`Request error fetching page at index ${t.index} (${r})`);const e=this.getPage(t.index);(null==e?void 0:e.id)===t.id&&this.invalidatePage(t.index)}}invalidatePage(t){this.isPageLoaded(t)&&this.pages.delete(t)}invalidateAfterOffset(t){const o=Math.floor(t/this.rowLimit);for(const t of this.pages.keys())t>=o&&this.invalidatePage(t)}getState(){return this.state}isViewLoading(t){return null==t[this.activeRowRange[0]]&&null==t[this.activeRowRange[1]]}updateState(t){this.loadingTimer&&!this.isViewLoading(t.rows)?(clearTimeout(this.loadingTimer),this.loadingTimer=void 0,this.state=Object.assign(Object.assign({},t),{shouldShowLoading:!1})):this.state=Object.assign({},t),this.onStateChange.emit(this.state)}getPageForOffset(t){const o=Math.floor(t/this.rowLimit);return this.constrainPageIndex(o)}getPageIndexesForRange(t,o){return[this.getPageForOffset(t),this.getPageForOffset(o)]}async fetchTree(t,o,r){return this.requestUnary(r,((r,e)=>{const n=new b.OffsetPager;n.setOffset(t),n.setLimit(o);const i=new y.GetTreeRequest;i.setPager(n),i.setAdditionalColumnKeysList(this.metadataKeys),this.client.getTree(i,r,e)}))}requestUnary(t,o){return new Promise(((r,e)=>{const n=this.createJwtMetadata(t);o(n,((t,o)=>{null!=t?e(t):null!=o?r(o):e(new Error("Invalid response. Both error and result are null"))}))}))}requestServerStream(t,o){return o(this.createJwtMetadata(t))}createJwtMetadata(t){return new l.grpc.Metadata({"jwt-context":JSON.stringify({jwt:t})})}async ifConnectionHasJwt(t){const{connection:o}=this.state;if("connecting"===o.type||"connected"===o.type){const r=await o.jwtProvider();if(null!=r)return t(r);throw new Error("SceneTreeController cannot perform request. Viewer JWT is undefined.")}throw new Error("SceneTreeController is not in connected state")}getConnectionError(t){return"number"==typeof(o=t).code&&o.hasOwnProperty("metadata")?new k(t.code===l.grpc.Code.FailedPrecondition?L.SCENE_TREE_DISABLED:L.UNKNOWN):new k(L.UNKNOWN);var o}constrainPageRange(t,o){return[Math.max(0,t),Math.min(this.maxPages-1,o)]}constrainPageIndex(t){return Math.max(0,Math.min(t,this.maxPages-1))}constrainRowOffsets(t,o){return[Math.max(0,t),Math.min(this.state.totalRows-1,o)]}get maxPages(){return Math.max(1,Math.ceil(this.state.totalRows/this.rowLimit))}log(t,...o){this.debugLogs&&console.debug(t,o)}}async function j(t,o,{suppliedCorrelationId:r}={}){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).show())).execute({suppliedCorrelationId:r})}async function D(t,o,{suppliedCorrelationId:r}={}){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).hide())).execute({suppliedCorrelationId:r})}A.IDLE_RECONNECT_IN_SECONDS=240,A.LOST_CONNECTION_RECONNECT_IN_SECONDS=2;const N=class{constructor(t){r(this,t),this.connectionError=e(this,"connectionError",7),this.overScanCount=25,this.configEnv="platprod",this.metadataSearchExactMatch=!1,this.metadataSearchKeys=[],this.metadataKeys=[],this.rows=[],this.totalRows=0,this.showLoader=!1,this.stateMap={componentLoaded:!1},this.attemptingRetry=!1}async invalidateRows(){n(this.getLayoutElement())}async scrollToIndex(t,o={}){const{animate:r,position:e="middle"}=o,n=Math.max(0,Math.min(t,this.totalRows)),i=this.getScrollToPosition(n,e);this.getLayoutElement().scrollToPosition(i,{behavior:r?"smooth":void 0})}async scrollToItem(t,o={}){var r;const e=this.totalRows,n=await(null===(r=this.controller)||void 0===r?void 0:r.expandParentNodes(t));if(null!=n&&e!==this.totalRows)return new Promise((t=>{const r=this.getLayoutElement(),e=async()=>{r.removeEventListener("layoutRendered",e),await this.scrollToIndex(n,o),t()};r.addEventListener("layoutRendered",e)}));null!=n&&await this.scrollToIndex(n,o)}async expandAll(){var t;await(null===(t=this.controller)||void 0===t?void 0:t.expandAll())}async collapseAll(){var t;await(null===(t=this.controller)||void 0===t?void 0:t.collapseAll())}async expandItem(t){await this.performRowOperation(t,(async({id:t,node:o})=>{var r;o.expanded||await(null===(r=this.controller)||void 0===r?void 0:r.expandNode(t))}))}async collapseItem(t){await this.performRowOperation(t,(async({id:t,node:o})=>{var r;o.expanded&&await(null===(r=this.controller)||void 0===r?void 0:r.collapseNode(t))}))}async toggleExpandItem(t){await this.performRowOperation(t,(async({node:t})=>{t.expanded?await this.collapseItem(t):await this.expandItem(t)}))}async toggleItemVisibility(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible||r.partiallyVisible?await D(t,o):await j(t,o)}))}async hideItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible&&await D(t,o)}))}async showItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible||await j(t,o)}))}async selectItem(t,o={}){var{recurseParent:r}=o,e=u(o,["recurseParent"]);await this.performRowOperation(t,(async({viewer:t,id:o})=>{var n,i,s,u;const a=await(null===(n=this.controller)||void 0===n?void 0:n.fetchNodeAncestors(o))||[],c=null===(i=this.stateMap.selectionPath)||void 0===i?void 0:i.includes(o);if(r&&c){const t=a.find((({selected:t})=>!t));null!=t&&(await this.selectItem(t,e),this.lastSelectedItemId=o)}else if(e.range&&null!=this.lastSelectedItemId){const r=await(null===(s=this.controller)||void 0===s?void 0:s.expandParentNodes(o)),n=await(null===(u=this.controller)||void 0===u?void 0:u.expandParentNodes(this.lastSelectedItemId));if(n&&r){const o=Math.min(n,r),i=Math.max(n,r);await async function(t,o,r,{material:e,append:n=!0,suppliedCorrelationId:i}){return(await t.scene()).items((t=>[...n?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withSceneTreeRange({start:o,end:r}))).select(e)])).execute({suppliedCorrelationId:i})}(t,o,i,e)}}else await async function(t,o,{material:r,append:e=!1,suppliedCorrelationId:n}){return(await t.scene()).items((t=>[...e?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withItemId(o))).select(r)])).execute({suppliedCorrelationId:n})}(t,o,e),this.lastSelectedItemId=o;this.stateMap.selectionPath=[...a.map((({id:t})=>(null==t?void 0:t.hex)||"")),o]}))}async deselectItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.selected&&(this.lastSelectedItemId=void 0,await async function(t,o,{suppliedCorrelationId:r}={}){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).deselect())).execute({suppliedCorrelationId:r})}(t,o))}))}async getRowAtIndex(t){return this.rows[t]}async getRowForEvent(t){const{clientY:o,target:r}=t;return null!=r&&null==this.errorDetails&&w(this.el,r)&&null!=(e=r)&&"VERTEX-SCENE-TREE-TABLE-CELL"===e.nodeName?this.getRowAtClientY(o):void 0;var e}getRowAtClientY(t){const o=this.getLayoutElement(),r=Math.floor((t-o.layoutOffset+o.scrollOffset)/o.rowHeight);return this.getRowAtIndex(r)}async filterItems(t,o={}){var r;return null===(r=this.controller)||void 0===r?void 0:r.filter(t,o)}async selectFilteredItems(t,o){if(null!=this.viewer){const r=this.metadataSearchKeys.length>0?this.metadataSearchKeys:this.metadataKeys;await async function(t,o,r,e,{material:n,append:i=!1,suppliedCorrelationId:s}){return(await t.scene()).items((t=>[...i?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withMetadata(o,r,e))).select(n)])).execute({suppliedCorrelationId:s})}(this.viewer,t,r,this.metadataSearchExactMatch,Object.assign({append:!1},o))}}async fetchMetadataKeys(){var t,o;return null!==(o=null===(t=this.controller)||void 0===t?void 0:t.fetchMetadataKeys())&&void 0!==o?o:[]}disconnectedCallback(){var t;null===(t=this.stateMap.viewerDisposable)||void 0===t||t.dispose()}componentWillLoad(){if(null==this.controller){const{sceneTreeHost:t}=this.getConfig().network,o=new R(t,this.getConfig().flags.grpcUseStreamingWebSocketTransport?{transport:S}:void 0);this.controller=new A(o,100)}this.stateMap.onStateChangeDisposable=this.controller.onStateChange.on((t=>this.handleControllerStateChange(t))),this.connectToViewer()}async componentDidLoad(){var t;this.ensureLayoutDefined(),this.updateLayoutElement();const o=this.getLayoutElement(),r=new ResizeObserver((()=>{this.invalidateRows()}));r.observe(o),this.stateMap.resizeObserver=r,this.stateMap.componentLoaded=!0,null===(t=this.controller)||void 0===t||t.setMetadataKeys(this.metadataKeys),null==this.viewer&&(this.errorDetails=new k(L.MISSING_VIEWER))}componentWillRender(){this.updateLayoutElement()}render(){return t(i,null,t("div",{class:"header"},t("slot",{name:"header"},t("vertex-scene-tree-toolbar",{class:"search-toolbar"},t("vertex-scene-tree-search",{controller:this.controller})))),null!=this.errorDetails&&this.renderError(this.errorDetails),null==this.errorDetails&&t("div",{class:"rows-scroll"},this.showLoader&&t("slot",{name:"loading"},t("vertex-viewer-spinner",{class:"loading",size:"md"})),t("slot",null)),t("div",{class:"footer"},t("slot",{name:"footer"})))}renderError(o){return o.code!==L.SCENE_TREE_DISABLED?t(O,{details:o},t("button",{class:"button button-secondary",onClick:()=>this.retryConnectToViewer(),disabled:this.attemptingRetry},"Retry")):t(O,{details:o})}handleViewerChanged(t,o){this.stateMap.componentLoaded&&this.connectToViewer()}handleControllerChanged(t){var o;this.stateMap.componentLoaded&&(null===(o=this.stateMap.onStateChangeDisposable)||void 0===o||o.dispose(),this.stateMap.onStateChangeDisposable=t.onStateChange.on((t=>this.handleControllerStateChange(t))),t.setMetadataKeys(this.metadataKeys))}handleMetadataKeysChanged(){var t;null===(t=this.controller)||void 0===t||t.setMetadataKeys(this.metadataKeys)}retryConnectToViewer(){this.attemptingRetry=!0,this.errorDetails=void 0,this.connectToViewer()}connectToViewer(){var t,o;null===(t=this.stateMap.viewerDisposable)||void 0===t||t.dispose(),null==this.viewer&&null!=this.viewerSelector&&(this.viewer=document.querySelector(this.viewerSelector)),null!=this.viewer?this.stateMap.viewerDisposable=null===(o=this.controller)||void 0===o?void 0:o.connectToViewer(this.viewer):this.attemptingRetry=!1}scheduleClearUnusedData(){null!=this.stateMap.idleCallbackId&&window.cancelIdleCallback(this.stateMap.idleCallbackId),this.stateMap.idleCallbackId=window.requestIdleCallback((t=>{var o,r,e;const n=null===(o=t.timeRemaining)||void 0===o?void 0:o.call(t);if(null==n||n>=25){const t=this.getLayoutElement(),o=t.viewportStartIndex,n=t.viewportEndIndex,[i,s]=(null===(r=this.controller)||void 0===r?void 0:r.getPageIndexesForRange(o,n))||[];null!=i&&null!=s&&(null===(e=this.controller)||void 0===e||e.invalidatePagesOutsideRange(i,s,50))}else this.scheduleClearUnusedData()}))}handleControllerStateChange(t){this.showLoader=!!t.shouldShowLoading,this.rows=t.rows,this.totalRows=t.totalRows,"failure"===t.connection.type?(this.errorDetails=t.connection.details,this.connectionError.emit(t.connection.details)):this.errorDetails="disconnected"===t.connection.type?new k(L.DISCONNECTED):void 0,"connected"!==t.connection.type&&"failure"!==t.connection.type||(this.attemptingRetry=!1)}async performRowOperation(t,o){const r="number"==typeof t?this.rows[t]:t;if(null==r)throw new Error("Cannot perform scene tree operation. Row not found.");const e=v(r)?r.node:r;if(null==e.id)throw new Error("Cannot perform scene tree operation. ID is undefined.");if(null==this.viewer)throw new Error("Cannot perform scene tree operation. Cannot get reference to viewer.");await o({viewer:this.viewer,id:e.id.hex,node:e})}async handleSearch(t){const o=this.metadataSearchKeys.length>0?this.metadataSearchKeys:this.metadataKeys;try{await this.filterItems(t.detail,{columns:o,exactMatch:this.metadataSearchExactMatch})}catch(t){console.error("Failed to filter tree with exception: ",t)}}getScrollToPosition(t,o){var r;const e=this.getLayoutElement(),n=Math.max(0,Math.min(t,this.totalRows-1)),i=null!==(r=e.layoutHeight)&&void 0!==r?r:0,s=e.rowHeight;return"start"===o?n*s:"middle"===o?n*s+s/2-i/2:n*s+s-i}getConfig(){return h(this.configEnv,this.config)}ensureLayoutDefined(){let t=this.el.querySelector("vertex-scene-tree-table-layout");null==t&&(t=document.createElement("vertex-scene-tree-table-layout"),t.innerHTML='\n <vertex-scene-tree-table-column>\n <template>\n <vertex-scene-tree-table-cell prop:value="{{row.node.name}}" expand-toggle visibility-toggle></vertex-scene-tree-table-cell>\n </template>\n </vertex-scene-tree-table-column>\n ',this.el.appendChild(t)),this.stateMap.layoutEl=t}updateLayoutElement(){const t=this.stateMap.layoutEl;null!=t?(t.rows=this.rows,t.tree=this.el,t.totalRows=this.totalRows,t.controller=this.controller,t.rowData=this.rowData):!this.stateMap.componentLoaded&&this.totalRows>0&&console.debug("Scene tree has rows, but the component has not yet rendered")}getLayoutElement(){if(null!=this.stateMap.layoutEl)return this.stateMap.layoutEl;throw new Error("Layout element is undefined")}get el(){return s(this)}static get watchers(){return{viewer:["handleViewerChanged"],controller:["handleControllerChanged"],metadataKeys:["handleMetadataKeysChanged"]}}};N.style="button{border:none;background:transparent;cursor:pointer;margin:0;padding:0}.button{padding:0.5rem;border-radius:0.25rem}.button-secondary{color:var(--neutral-800);background-color:var(--neutral-300)}.button-secondary:hover{color:var(--neutral-900)}.button-secondary:hover:enabled{box-shadow:0 2px 2px rgb(0 0 0 / 20%)}.button-secondary:disabled{opacity:0.8}.button-secondary:hover:disabled{cursor:not-allowed}:host{--scene-tree-toolbar-separator:1px solid var(--neutral-300);width:300px;height:100%;user-select:none;-webkit-user-select:none;cursor:default;display:flex;flex-direction:column}.rows-scroll{position:relative;height:var(--scene-tree-row-height, 0);flex-grow:1}.rows{position:relative}.row{position:absolute;display:flex;align-items:center;width:100%;height:var(--scene-tree-row-height);padding:var(--scene-tree-row-padding);box-sizing:border-box}.row:hover{background-color:var(--scene-tree-row-hover-color)}.row.is-selected{background-color:var(--scene-tree-row-selected-color)}.expand-toggle{cursor:pointer;width:16px}.row-text{margin-left:0.25rem;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.visibility-btn{display:flex;align-items:center;visibility:hidden;padding:4px}.visibility-btn.is-hidden{visibility:visible}.row:hover .visibility-btn{visibility:visible}.error{display:flex;flex-direction:column;align-items:center;font-size:0.875rem;width:100%;height:100%;padding:1rem;box-sizing:border-box;justify-content:center}.error-section{margin-top:1rem}.error-message{text-align:center}.search-toolbar,slot[name='header']::slotted(*){border-bottom:var(--scene-tree-toolbar-separator)}slot[name='footer']::slotted(:not(:last-child)){border-top:var(--scene-tree-toolbar-separator)}.header{display:flex;flex-direction:column}.footer{display:flex;flex-direction:column}.loading{position:absolute;top:150px;left:50%;transform:translate(-50%, -50%);text-align:center}";export{N as vertex_scene_tree}
|