@univerjs-pro/collaboration-client 0.4.1-nightly.202410211606 → 0.4.1-nightly.202410241606

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/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x28b7(_0x53e1d9,_0x24050f){const _0x3c272e=_0x3c27();return _0x28b7=function(_0x28b795,_0x31438d){_0x28b795=_0x28b795-0xaf;let _0x43eeb9=_0x3c272e[_0x28b795];return _0x43eeb9;},_0x28b7(_0x53e1d9,_0x24050f);}(function(_0x15bb07,_0x1eab1a){const _0x42f67d=_0x28b7,_0x459453=_0x15bb07();while(!![]){try{const _0xa3d62e=parseInt(_0x42f67d(0x3a0))/0x1*(parseInt(_0x42f67d(0xe3))/0x2)+-parseInt(_0x42f67d(0x30f))/0x3*(parseInt(_0x42f67d(0x3bf))/0x4)+parseInt(_0x42f67d(0x252))/0x5*(parseInt(_0x42f67d(0x48b))/0x6)+-parseInt(_0x42f67d(0x27a))/0x7+-parseInt(_0x42f67d(0x36f))/0x8*(-parseInt(_0x42f67d(0x365))/0x9)+-parseInt(_0x42f67d(0x185))/0xa*(parseInt(_0x42f67d(0x165))/0xb)+parseInt(_0x42f67d(0x37f))/0xc;if(_0xa3d62e===_0x1eab1a)break;else _0x459453['push'](_0x459453['shift']());}catch(_0x45bd61){_0x459453['push'](_0x459453['shift']());}}}(_0x3c27,0xbe953),function(_0x307e81,_0x46668c){const _0x304345=_0x28b7;typeof exports==_0x304345(0x267)&&typeof module<'u'?_0x46668c(exports,require(_0x304345(0x23c)),require('rxjs'),require(_0x304345(0x33d)),require(_0x304345(0x4a9)),require(_0x304345(0x471)),require(_0x304345(0x230)),require(_0x304345(0x37b)),require('@univerjs/telemetry'),require(_0x304345(0x179)),require('@univerjs/sheets'),require(_0x304345(0x446)),require(_0x304345(0x2d0)),require(_0x304345(0x13a)),require(_0x304345(0x25f)),require(_0x304345(0x412)),require(_0x304345(0x278)),require('@univerjs/rpc'),require('@univerjs-pro/license')):typeof define=='function'&&define[_0x304345(0x47a)]?define([_0x304345(0x129),_0x304345(0x23c),'rxjs',_0x304345(0x33d),'@univerjs/design','@univerjs/ui',_0x304345(0x230),'@univerjs-pro/collaboration',_0x304345(0x361),_0x304345(0x179),_0x304345(0x315),_0x304345(0x446),_0x304345(0x2d0),_0x304345(0x13a),_0x304345(0x25f),_0x304345(0x412),'react',_0x304345(0x495),_0x304345(0x12f)],_0x46668c):(_0x307e81=typeof globalThis<'u'?globalThis:_0x307e81||self,_0x46668c(_0x307e81[_0x304345(0x18b)]={},_0x307e81['UniverCore'],_0x307e81[_0x304345(0x2fc)],_0x307e81[_0x304345(0x2fc)]['operators'],_0x307e81[_0x304345(0x164)],_0x307e81[_0x304345(0x24f)],_0x307e81['UniverNetwork'],_0x307e81[_0x304345(0x336)],_0x307e81[_0x304345(0x2ed)],_0x307e81['UniverDocsUi'],_0x307e81[_0x304345(0x255)],_0x307e81[_0x304345(0x326)],_0x307e81[_0x304345(0x3d4)],_0x307e81['UniverDrawing'],_0x307e81[_0x304345(0x23f)],_0x307e81[_0x304345(0x428)],_0x307e81[_0x304345(0x274)],_0x307e81[_0x304345(0x243)],_0x307e81[_0x304345(0x437)]));}(this,function(_0x78d65c,_0x3cac39,_0x2132a7,_0x2b32ae,_0x3003bf,_0x4b9a33,_0x1e34c6,_0x42c3cc,_0x4e8244,_0x2c2d98,_0x52138d,_0x571c77,_0x56b563,_0x36cc2a,_0x339bdc,_0x2a1992,_0x3b0b43,_0x42f613,_0x4bef76){'use strict';const _0x23e0a9=_0x28b7;var _0xde5833=Object[_0x23e0a9(0x2e3)],_0x91b51f=(_0x4959bb,_0xf621a5,_0x2f8606)=>_0xf621a5 in _0x4959bb?_0xde5833(_0x4959bb,_0xf621a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f8606}):_0x4959bb[_0xf621a5]=_0x2f8606,_0x56bf3b=(_0x4a4a9a,_0x7136e5,_0x28bf81)=>_0x91b51f(_0x4a4a9a,typeof _0x7136e5!=_0x23e0a9(0x14b)?_0x7136e5+'':_0x7136e5,_0x28bf81);const _0x55fd85=_0x23e0a9(0xe1),_0x18e08f='/universer-api/snapshot',_0x2fd73b='SNAPSHOT_URL_KEY',_0x2a7c91=_0x23e0a9(0x27e),_0x1e3926='COLLAB_WEB_SOCKET_URL',_0x3f4854=_0x23e0a9(0x1dc),_0x17527c=_0x23e0a9(0xb1),_0x16f902='HEARTBEAT_TIMEOUT',_0x5129fd=_0x23e0a9(0x22b),_0x1ab361=_0x23e0a9(0x2ce),_0x1993c5=_0x23e0a9(0xf6),_0x16a86d=_0x23e0a9(0x3fe),_0xdad26c='LOGIN_URL_KEY',_0x2525a8=_0x23e0a9(0x20f);var _0x49fe02=(_0x18d2c6=>(_0x18d2c6[_0x18d2c6[_0x23e0a9(0x3f0)]=0x0]=_0x23e0a9(0x3f0),_0x18d2c6[_0x18d2c6['OK']=0x1]='OK',_0x18d2c6[_0x18d2c6[_0x23e0a9(0x2a0)]=0x2]=_0x23e0a9(0x2a0),_0x18d2c6[_0x18d2c6['PERMISSION_DENIED']=0x3]=_0x23e0a9(0x11e),_0x18d2c6[_0x18d2c6[_0x23e0a9(0x150)]=0x4]=_0x23e0a9(0x150),_0x18d2c6[_0x18d2c6[_0x23e0a9(0x288)]=0x5]='UNAUTHENTICATED',_0x18d2c6[_0x18d2c6['ALREADY_EXISTS']=0x6]=_0x23e0a9(0x1c3),_0x18d2c6[_0x18d2c6[_0x23e0a9(0x330)]=0x7]=_0x23e0a9(0x330),_0x18d2c6[_0x18d2c6[_0x23e0a9(0x3e9)]=0x8]=_0x23e0a9(0x3e9),_0x18d2c6[_0x18d2c6[_0x23e0a9(0x11c)]=0x9]=_0x23e0a9(0x11c),_0x18d2c6[_0x18d2c6['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x23e0a9(0x2f5),_0x18d2c6[_0x18d2c6[_0x23e0a9(0x3ba)]=0x1771]=_0x23e0a9(0x3ba),_0x18d2c6[_0x18d2c6[_0x23e0a9(0x4ec)]=0x1772]=_0x23e0a9(0x4ec),_0x18d2c6[_0x18d2c6[_0x23e0a9(0xdd)]=0x1773]=_0x23e0a9(0xdd),_0x18d2c6[_0x18d2c6['APPLY_REJECT']=0x1b59]='APPLY_REJECT',_0x18d2c6[_0x18d2c6[_0x23e0a9(0x320)]=0x1b5a]=_0x23e0a9(0x320),_0x18d2c6[_0x18d2c6[_0x23e0a9(0x227)]=0x1b5b]=_0x23e0a9(0x227),_0x18d2c6[_0x18d2c6[_0x23e0a9(0x4d1)]=0x1b5c]=_0x23e0a9(0x4d1),_0x18d2c6[_0x18d2c6[_0x23e0a9(0x432)]=0x1b5d]=_0x23e0a9(0x432),_0x18d2c6[_0x18d2c6[_0x23e0a9(0xfa)]=0x1f41]=_0x23e0a9(0xfa),_0x18d2c6[_0x18d2c6[_0x23e0a9(0x240)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x18d2c6[_0x18d2c6[_0x23e0a9(0x3e8)]=0x232a]=_0x23e0a9(0x3e8),_0x18d2c6[_0x18d2c6[_0x23e0a9(0x1d9)]=0x232b]=_0x23e0a9(0x1d9),_0x18d2c6[_0x18d2c6[_0x23e0a9(0x429)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x18d2c6[_0x18d2c6['LICENSE_DISTRO_REJECTED']=0x232d]=_0x23e0a9(0x49d),_0x18d2c6[_0x18d2c6['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x23e0a9(0x41c),_0x18d2c6[_0x18d2c6['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x23e0a9(0x3bd),_0x18d2c6[_0x18d2c6[_0x23e0a9(0x307)]=0x2713]=_0x23e0a9(0x307),_0x18d2c6[_0x18d2c6[_0x23e0a9(0x357)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x18d2c6[_0x18d2c6[_0x23e0a9(0x303)]=-0x1]='UNRECOGNIZED',_0x18d2c6))(_0x49fe02||{}),_0x36e0e9=(_0x273487=>(_0x273487[_0x273487[_0x23e0a9(0x256)]=0x0]=_0x23e0a9(0x256),_0x273487[_0x273487['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x273487[_0x273487[_0x23e0a9(0xeb)]=0x2]=_0x23e0a9(0xeb),_0x273487[_0x273487[_0x23e0a9(0x1a5)]=0x3]=_0x23e0a9(0x1a5),_0x273487[_0x273487['UNIVER_PROJECT']=0x4]=_0x23e0a9(0x25e),_0x273487[_0x273487[_0x23e0a9(0x303)]=-0x1]='UNRECOGNIZED',_0x273487))(_0x36e0e9||{}),_0x5e062b=(_0x2cdd41=>(_0x2cdd41[_0x2cdd41[_0x23e0a9(0x2ad)]=0x0]=_0x23e0a9(0x2ad),_0x2cdd41[_0x2cdd41[_0x23e0a9(0x34c)]=0x1]='HELLO',_0x2cdd41[_0x2cdd41[_0x23e0a9(0x1e0)]=0x2]=_0x23e0a9(0x1e0),_0x2cdd41[_0x2cdd41[_0x23e0a9(0x4c5)]=0x3]=_0x23e0a9(0x4c5),_0x2cdd41[_0x2cdd41[_0x23e0a9(0x265)]=0x4]=_0x23e0a9(0x265),_0x2cdd41[_0x2cdd41['HEARTBEAT']=0x5]=_0x23e0a9(0x3ec),_0x2cdd41[_0x2cdd41[_0x23e0a9(0x268)]=0x6]=_0x23e0a9(0x268),_0x2cdd41[_0x2cdd41[_0x23e0a9(0x303)]=-0x1]=_0x23e0a9(0x303),_0x2cdd41))(_0x5e062b||{}),_0x2e4e84=(_0x399079=>(_0x399079[_0x399079[_0x23e0a9(0x481)]=0x0]=_0x23e0a9(0x481),_0x399079[_0x399079['OK']=0x1]='OK',_0x399079[_0x399079[_0x23e0a9(0x1f8)]=0x2]=_0x23e0a9(0x1f8),_0x399079[_0x399079[_0x23e0a9(0x303)]=-0x1]=_0x23e0a9(0x303),_0x399079))(_0x2e4e84||{}),_0x50caa2=(_0x32a1cf=>(_0x32a1cf[_0x32a1cf['Undefined']=0x0]='Undefined',_0x32a1cf[_0x32a1cf['HttpImport']=0x1]='HttpImport',_0x32a1cf[_0x32a1cf[_0x23e0a9(0x1c5)]=0x2]=_0x23e0a9(0x1c5),_0x32a1cf[_0x32a1cf[_0x23e0a9(0x3c7)]=0x3]=_0x23e0a9(0x3c7),_0x32a1cf[_0x32a1cf[_0x23e0a9(0x451)]=0x4]=_0x23e0a9(0x451),_0x32a1cf[_0x32a1cf[_0x23e0a9(0x303)]=-0x1]='UNRECOGNIZED',_0x32a1cf))(_0x50caa2||{});const _0x14d460=_0x23e0a9(0x37c),_0x5523ca={};function _0x52abe7(_0x5b1c89){const _0x3c39bb=_0x23e0a9;var _0x27c806,_0x272b12,_0x459d8a,_0x302ada;const _0xb19df3=_0x5b1c89['data'],_0xd5ef8=JSON['parse'](_0xb19df3);switch(_0xd5ef8[_0x3c39bb(0x2a8)]){case _0x5e062b['HEARTBEAT']:case _0x5e062b['HELLO']:{const _0x2fe714=_0xd5ef8[_0x3c39bb(0x1d1)];return{..._0xd5ef8,'data':_0x2fe714,'cmd':_0xd5ef8[_0x3c39bb(0x2a8)]};}case _0x5e062b['JOIN']:{const _0x410a53=_0xd5ef8[_0x3c39bb(0x314)];return{..._0xd5ef8,'data':_0x410a53,'cmd':_0xd5ef8[_0x3c39bb(0x2a8)]};}case _0x5e062b[_0x3c39bb(0x268)]:{const _0x2e4b5c=_0xd5ef8[_0x3c39bb(0x443)];switch(_0x2e4b5c[_0x3c39bb(0x199)]){case _0x42c3cc[_0x3c39bb(0x41b)][_0x3c39bb(0x4b0)]:return{..._0xd5ef8,'data':{..._0x2e4b5c,'data':(_0x27c806=_0x2e4b5c[_0x3c39bb(0xf0)])==null?void 0x0:_0x27c806['cs']},'cmd':_0xd5ef8['cmd']};case _0x42c3cc[_0x3c39bb(0x41b)][_0x3c39bb(0x42d)]:return{..._0xd5ef8,'data':{..._0x2e4b5c,'data':(_0x272b12=_0x2e4b5c[_0x3c39bb(0x30a)])==null?void 0x0:_0x272b12['cs']},'cmd':_0xd5ef8['cmd']};case _0x42c3cc['CollaborationEvent']['NEW_CHANGESETS']:return{..._0xd5ef8,'data':{..._0x2e4b5c,'data':(_0x459d8a=_0x2e4b5c[_0x3c39bb(0x11b)])==null?void 0x0:_0x459d8a['cs']},'cmd':_0xd5ef8[_0x3c39bb(0x2a8)]};case _0x42c3cc[_0x3c39bb(0x41b)][_0x3c39bb(0x4ad)]:return{..._0xd5ef8,'data':{..._0x2e4b5c,'data':(_0x302ada=_0x2e4b5c['csRejEvent'])==null?void 0x0:_0x302ada['cs']},'cmd':_0xd5ef8[_0x3c39bb(0x2a8)]};case _0x42c3cc[_0x3c39bb(0x41b)][_0x3c39bb(0x364)]:return{..._0xd5ef8,'data':{..._0x2e4b5c,'data':_0x2e4b5c[_0x3c39bb(0x17c)]},'cmd':_0xd5ef8[_0x3c39bb(0x2a8)]};case _0x42c3cc['CollaborationEvent'][_0x3c39bb(0x337)]:return{..._0xd5ef8,'data':{..._0x2e4b5c,'data':_0x2e4b5c[_0x3c39bb(0x302)]},'cmd':_0xd5ef8[_0x3c39bb(0x2a8)]};case _0x42c3cc[_0x3c39bb(0x41b)][_0x3c39bb(0x360)]:return{..._0xd5ef8,'data':{..._0x2e4b5c,'data':_0x2e4b5c[_0x3c39bb(0x4ba)]},'cmd':_0xd5ef8[_0x3c39bb(0x2a8)]};case _0x42c3cc['CollaborationEvent'][_0x3c39bb(0x49b)]:return{..._0xd5ef8,'data':{..._0x2e4b5c,'data':_0x2e4b5c['liveShareNewHost']},'cmd':_0xd5ef8[_0x3c39bb(0x2a8)]};case _0x42c3cc[_0x3c39bb(0x41b)][_0x3c39bb(0x1b3)]:case _0x42c3cc[_0x3c39bb(0x41b)][_0x3c39bb(0x24d)]:return{..._0xd5ef8,'data':{..._0x2e4b5c,'data':_0x2e4b5c[_0x3c39bb(0x2c6)]},'cmd':_0xd5ef8[_0x3c39bb(0x2a8)]};case _0x42c3cc['CollaborationEvent'][_0x3c39bb(0x473)]:return{..._0xd5ef8,'data':{..._0x2e4b5c,'data':_0x2e4b5c[_0x3c39bb(0x1b2)]},'cmd':_0xd5ef8[_0x3c39bb(0x2a8)]};case _0x42c3cc['CollaborationEvent'][_0x3c39bb(0x49f)]:return{..._0xd5ef8,'data':_0x2e4b5c,'cmd':_0xd5ef8['cmd']};case _0x42c3cc[_0x3c39bb(0x41b)][_0x3c39bb(0x1f4)]:return{..._0xd5ef8,'data':{..._0x2e4b5c,'data':_0x2e4b5c['commentUpdateEvent']},'cmd':_0xd5ef8[_0x3c39bb(0x2a8)]};case _0x42c3cc[_0x3c39bb(0x41b)]['UPDATE_PERMISSION_OBJ']:return{..._0xd5ef8,'data':{..._0x2e4b5c,'data':_0x2e4b5c['updatePermissionObjEvent']},'cmd':_0xd5ef8[_0x3c39bb(0x2a8)]};case _0x42c3cc[_0x3c39bb(0x41b)][_0x3c39bb(0x353)]:return{..._0xd5ef8,'data':{..._0x2e4b5c,'data':_0x2e4b5c[_0x3c39bb(0x1cb)]},'cmd':_0xd5ef8['cmd']};default:return _0xd5ef8;}}default:return _0xd5ef8;}}function _0x230f9c(_0x43e598){const _0x3e025c=_0x23e0a9;switch(_0x43e598['cmd']){case _0x5e062b[_0x3e025c(0x3ec)]:case _0x5e062b[_0x3e025c(0x34c)]:return JSON[_0x3e025c(0x351)]({'cmd':_0x43e598[_0x3e025c(0x2a8)],'routeKey':_0x43e598[_0x3e025c(0x1eb)]});case _0x5e062b['INGEST']:{let _0x37a198;switch(_0x43e598[_0x3e025c(0x2bd)][_0x3e025c(0x199)]){case _0x42c3cc[_0x3e025c(0x41b)]['UPDATE_CURSOR']:{_0x37a198={'eventID':_0x42c3cc[_0x3e025c(0x41b)]['UPDATE_CURSOR'],'updateCursorEvent':_0x43e598[_0x3e025c(0x2bd)][_0x3e025c(0x2bd)]};break;}case _0x42c3cc[_0x3e025c(0x41b)]['USERS_LEAVE']:{_0x37a198={'eventID':_0x42c3cc[_0x3e025c(0x41b)][_0x3e025c(0x360)],'leaveEvent':_0x43e598[_0x3e025c(0x2bd)][_0x3e025c(0x2bd)]};break;}case _0x42c3cc['CollaborationEvent']['USERS_ENTER']:{_0x37a198={'eventID':_0x42c3cc[_0x3e025c(0x41b)][_0x3e025c(0x337)],'joinEvent':_0x43e598[_0x3e025c(0x2bd)][_0x3e025c(0x2bd)]};break;}case _0x42c3cc[_0x3e025c(0x41b)][_0x3e025c(0x49b)]:{_0x37a198={'eventID':_0x42c3cc[_0x3e025c(0x41b)][_0x3e025c(0x49b)],'liveShareNewHost':_0x43e598[_0x3e025c(0x2bd)][_0x3e025c(0x2bd)]};break;}case _0x42c3cc[_0x3e025c(0x41b)][_0x3e025c(0x24d)]:{_0x37a198={'eventID':_0x42c3cc[_0x3e025c(0x41b)][_0x3e025c(0x24d)],'liveShareOperation':_0x43e598[_0x3e025c(0x2bd)][_0x3e025c(0x2bd)]};break;}case _0x42c3cc[_0x3e025c(0x41b)][_0x3e025c(0x473)]:{_0x37a198={'eventID':_0x42c3cc[_0x3e025c(0x41b)][_0x3e025c(0x473)],'liveShareTerminate':_0x43e598['data'][_0x3e025c(0x2bd)]};break;}case _0x42c3cc[_0x3e025c(0x41b)][_0x3e025c(0xb0)]:{_0x37a198={'eventID':_0x42c3cc[_0x3e025c(0x41b)][_0x3e025c(0xb0)],'liveShareRequestHost':_0x43e598[_0x3e025c(0x2bd)]['data']};break;}case _0x42c3cc[_0x3e025c(0x41b)][_0x3e025c(0x1b3)]:{_0x37a198={'eventID':_0x42c3cc['CollaborationEvent'][_0x3e025c(0x1b3)]};break;}default:_0x37a198={'eventID':_0x43e598[_0x3e025c(0x2bd)][_0x3e025c(0x199)]};}return JSON[_0x3e025c(0x351)]({'cmd':_0x43e598[_0x3e025c(0x2a8)],'routeKey':_0x43e598[_0x3e025c(0x1eb)],'collaMsg':_0x37a198});}case _0x5e062b[_0x3e025c(0x1e0)]:return JSON[_0x3e025c(0x351)]({'cmd':_0x43e598[_0x3e025c(0x2a8)],'routeKey':_0x43e598[_0x3e025c(0x1eb)],'joinReq':_0x43e598['data']});case _0x5e062b[_0x3e025c(0x4c5)]:return JSON[_0x3e025c(0x351)]({'cmd':_0x43e598[_0x3e025c(0x2a8)],'routeKey':_0x43e598[_0x3e025c(0x1eb)],'leaveReq':_0x43e598[_0x3e025c(0x2bd)]});default:throw new Error(_0x3e025c(0x1a0));}}var _0x3e0396=Object[_0x23e0a9(0x2e3)],_0x4e0cf8=Object[_0x23e0a9(0x4ac)],_0x2852ca=(_0x48edac,_0x3af713,_0x320ba7,_0x2ebc83)=>{const _0x75f937=_0x23e0a9;for(var _0x5dcb80=_0x2ebc83>0x1?void 0x0:_0x2ebc83?_0x4e0cf8(_0x3af713,_0x320ba7):_0x3af713,_0x22a5d0=_0x48edac[_0x75f937(0x480)]-0x1,_0x180b6c;_0x22a5d0>=0x0;_0x22a5d0--)(_0x180b6c=_0x48edac[_0x22a5d0])&&(_0x5dcb80=(_0x2ebc83?_0x180b6c(_0x3af713,_0x320ba7,_0x5dcb80):_0x180b6c(_0x5dcb80))||_0x5dcb80);return _0x2ebc83&&_0x5dcb80&&_0x3e0396(_0x3af713,_0x320ba7,_0x5dcb80),_0x5dcb80;},_0x5a6886=(_0x2b5bc3,_0x337e9f)=>(_0x9af3fc,_0x243531)=>_0x337e9f(_0x9af3fc,_0x243531,_0x2b5bc3);const _0x2b02ef=_0x3cac39[_0x23e0a9(0x171)](_0x23e0a9(0x2f6));function _0x131978(_0xb2ec7e,_0x1d69af,_0x29d0c2){const _0x213233=_0x23e0a9;return _0xb2ec7e+'/'+_0x1d69af+'/unit/'+_0x29d0c2+_0x213233(0x349);}_0x78d65c[_0x23e0a9(0x1d3)]=class extends _0x3cac39['Disposable']{constructor(_0x78c54a,_0x338be6,_0x33ea1d,_0x30f0bf,_0x34e230){const _0x4eefcd=_0x23e0a9;super(),this[_0x4eefcd(0x46c)]=_0x78c54a,this[_0x4eefcd(0x181)]=_0x338be6,this['_configService']=_0x33ea1d,this[_0x4eefcd(0x110)]=_0x30f0bf,this[_0x4eefcd(0x4b6)]=_0x34e230;}[_0x23e0a9(0x41a)](_0x6630ff){const _0x54df2f=_0x23e0a9,_0x13b968=this[_0x54df2f(0x181)]['createSocket'](_0x6630ff);if(!_0x13b968)throw new Error(_0x54df2f(0x102));const _0x37ef71=new _0x3cac39[(_0x54df2f(0x40d))](),_0x59bf1d=new _0x2132a7['Subject']();_0x37ef71[_0x54df2f(0x117)](_0x13b968[_0x54df2f(0x18f)]['subscribe'](_0x404ac0=>_0x59bf1d[_0x54df2f(0x3c8)](_0x404ac0))),_0x37ef71['add'](_0x3cac39[_0x54df2f(0x381)](()=>_0x59bf1d[_0x54df2f(0x1be)]()));const _0x188033=new _0x2132a7[(_0x54df2f(0xf4))]();_0x37ef71[_0x54df2f(0x117)](_0x13b968['error$'][_0x54df2f(0x404)](_0x3f8383=>_0x188033[_0x54df2f(0x3c8)](_0x3f8383))),_0x37ef71[_0x54df2f(0x117)](_0x3cac39[_0x54df2f(0x381)](()=>_0x188033['complete']()));const _0x39fdc6=new _0x2132a7[(_0x54df2f(0xf4))]();_0x37ef71[_0x54df2f(0x117)](_0x13b968['message$'][_0x54df2f(0x404)](_0x181f77=>{const _0x582368=_0x54df2f,_0x5e54c0=_0x52abe7(_0x181f77);_0x39fdc6[_0x582368(0x3c8)](_0x5e54c0);})),_0x37ef71[_0x54df2f(0x117)](_0x3cac39[_0x54df2f(0x381)](()=>_0x39fdc6[_0x54df2f(0x1be)]()));let _0x51ea74;const _0x187fb3=()=>{const _0x2f04be=_0x54df2f;_0x188033['next'](new Event(_0x2f04be(0x4a6))),_0x59bf1d['next'](new CloseEvent(_0x2f04be(0x4a6))),_0x51ea74['close']();};return _0x51ea74={'memberID':'','close$':_0x59bf1d['asObservable'](),'error$':_0x188033[_0x54df2f(0x3a4)](),'open$':_0x13b968[_0x54df2f(0x2ca)],'message$':_0x39fdc6[_0x54df2f(0x3a4)](),'send':_0x2b2027=>{const _0x38f981=_0x54df2f;if(_0x2b2027[_0x38f981(0x2a8)]===_0x5e062b[_0x38f981(0x265)]){if(_0x2b2027[_0x38f981(0x2bd)][_0x38f981(0x199)]===_0x42c3cc['CollaborationEvent'][_0x38f981(0x1b6)]){this['_submitChangeset'](_0x51ea74,_0x2b2027[_0x38f981(0x2bd)])[_0x38f981(0x135)](_0x59d337=>{const _0x5a1842=_0x38f981;this[_0x5a1842(0x110)]['error'](_0x59d337),_0x187fb3();});return;}if(_0x2b2027[_0x38f981(0x2bd)][_0x38f981(0x199)]===_0x42c3cc[_0x38f981(0x41b)][_0x38f981(0x3f4)]){const _0x524aa0=_0x2b2027['data'];this[_0x38f981(0x258)](_0x524aa0)[_0x38f981(0x1d4)](_0x26601e=>{const _0x1771f3=_0x38f981;_0x39fdc6['next']({'cmd':_0x5e062b['RECV'],'code':_0x2e4e84['OK'],'routeKey':_0x524aa0[_0x1771f3(0x2bd)][_0x1771f3(0x3c1)],'routeType':'','data':{'eventID':_0x42c3cc[_0x1771f3(0x41b)][_0x1771f3(0x217)],'data':{'changesets':_0x26601e}}});})[_0x38f981(0x135)](_0x26dc8=>{this['_logService']['error'](_0x26dc8),_0x187fb3();});return;}}_0x13b968[_0x38f981(0x23d)](_0x230f9c(_0x2b2027));},'close':()=>{const _0x5c5478=_0x54df2f;_0x13b968[_0x5c5478(0x3fd)](),_0x37ef71[_0x5c5478(0x250)]();}},_0x51ea74;}async[_0x23e0a9(0x1cf)](_0x323d73,_0x9d80e0){const _0x5c2919=_0x23e0a9;var _0x8f999d,_0x30037e;const {unitType:_0x4ce117,unitID:_0xc4488d,changeset:_0xa1d874}=_0x9d80e0[_0x5c2919(0x2bd)],_0x11d6d0={'unitID':_0xc4488d,'memberID':_0x323d73['memberID'],'type':_0x4ce117,'changeset':_0x42c3cc[_0x5c2919(0x395)](_0xa1d874)},_0x35be5a=this[_0x5c2919(0x259)]['getConfig'](_0x1993c5),_0x5f3c6e=this['_configService'][_0x5c2919(0x3f1)](_0x14d460),_0x42578b=_0x131978((_0x30037e=(_0x8f999d=_0x5f3c6e==null?void 0x0:_0x5f3c6e[_0x5c2919(0x46e)])!=null?_0x8f999d:_0x35be5a)!=null?_0x30037e:_0x16a86d,_0x4ce117,_0xc4488d);try{await this[_0x5c2919(0x46c)][_0x5c2919(0x3b7)](_0x42578b,{'body':_0x11d6d0});}catch(_0x3cd2f5){throw this['_logService'][_0x5c2919(0x4a8)](_0x5c2919(0x2d3),_0x5c2919(0x234)),_0x3cd2f5;}}async[_0x23e0a9(0x258)](_0x1d08e5){const _0x58d28e=_0x23e0a9,{unitID:_0x3b9d31,from:_0x511536,to:_0x337d3e,unitType:_0x1c83e6}=_0x1d08e5[_0x58d28e(0x2bd)];return(await this[_0x58d28e(0x4b6)][_0x58d28e(0x10e)]({'metadata':void 0x0},{'unitID':_0x3b9d31,'type':_0x1c83e6,'from':_0x511536,'to':_0x337d3e}))[_0x58d28e(0x287)];}},_0x78d65c[_0x23e0a9(0x1d3)]=_0x2852ca([_0x5a6886(0x0,_0x3cac39['Inject'](_0x1e34c6[_0x23e0a9(0x47e)])),_0x5a6886(0x1,_0x3cac39[_0x23e0a9(0xce)](_0x1e34c6['WebSocketService'])),_0x5a6886(0x2,_0x3cac39[_0x23e0a9(0x1fb)]),_0x5a6886(0x3,_0x3cac39[_0x23e0a9(0x2b9)]),_0x5a6886(0x4,_0x42c3cc[_0x23e0a9(0x408)])],_0x78d65c[_0x23e0a9(0x1d3)]);const _0x3a3ec7=_0x23e0a9(0x402);function _0x4e45ed(_0x31020b){const _0x1af60a=_0x23e0a9;return JSON['stringify'](_0x31020b)[_0x1af60a(0x480)];}class _0x3b262c{constructor(){const _0x10d9b8=_0x23e0a9;_0x56bf3b(this,_0x10d9b8(0xb6),new _0x2132a7[(_0x10d9b8(0xf4))]()),_0x56bf3b(this,_0x10d9b8(0x300),this[_0x10d9b8(0xb6)][_0x10d9b8(0x3a4)]());}[_0x23e0a9(0x346)](_0x40eebd){const _0x237d6d=_0x23e0a9;this[_0x237d6d(0xb6)][_0x237d6d(0x3c8)](_0x40eebd);}}var _0x2e8db6=Object[_0x23e0a9(0x2e3)],_0x26d49c=Object[_0x23e0a9(0x4ac)],_0x30c56a=(_0x43bcee,_0x4a72ac,_0x2cfb83,_0x6eebe7)=>{const _0x32acea=_0x23e0a9;for(var _0x245203=_0x6eebe7>0x1?void 0x0:_0x6eebe7?_0x26d49c(_0x4a72ac,_0x2cfb83):_0x4a72ac,_0x18e193=_0x43bcee[_0x32acea(0x480)]-0x1,_0x10a4e2;_0x18e193>=0x0;_0x18e193--)(_0x10a4e2=_0x43bcee[_0x18e193])&&(_0x245203=(_0x6eebe7?_0x10a4e2(_0x4a72ac,_0x2cfb83,_0x245203):_0x10a4e2(_0x245203))||_0x245203);return _0x6eebe7&&_0x245203&&_0x2e8db6(_0x4a72ac,_0x2cfb83,_0x245203),_0x245203;},_0x241db2=(_0x2982a3,_0xf7741f)=>(_0x58a917,_0x7d30b6)=>_0xf7741f(_0x58a917,_0x7d30b6,_0x2982a3);let _0x2b8623=class extends _0x3cac39[_0x23e0a9(0x3da)]{constructor(_0x47b074,_0x36f6e2){const _0x8e3b92=_0x23e0a9;super(),_0x56bf3b(this,_0x8e3b92(0xe6),new Map()),(this[_0x8e3b92(0x3c0)]=_0x47b074,this['_userManagerService']=_0x36f6e2,this[_0x8e3b92(0x382)](_0x3cac39[_0x8e3b92(0x381)](_0x2132a7[_0x8e3b92(0x2f3)](this[_0x8e3b92(0x3c0)][_0x8e3b92(0x39c)](_0x3cac39[_0x8e3b92(0x42b)][_0x8e3b92(0xeb)])[_0x8e3b92(0x19e)](_0x2b32ae['map'](_0x2fe6f0=>_0x2fe6f0[_0x8e3b92(0x27c)]())),this['_univerInstanceService'][_0x8e3b92(0x39c)](_0x3cac39[_0x8e3b92(0x42b)][_0x8e3b92(0x28c)])[_0x8e3b92(0x19e)](_0x2b32ae[_0x8e3b92(0x2f1)](_0x2613c8=>_0x2613c8[_0x8e3b92(0x27c)]())),this[_0x8e3b92(0x3c0)][_0x8e3b92(0x39c)](_0x3cac39[_0x8e3b92(0x42b)][_0x8e3b92(0x1a5)])[_0x8e3b92(0x19e)](_0x2b32ae[_0x8e3b92(0x2f1)](_0x4580b4=>_0x4580b4[_0x8e3b92(0x27c)]())))[_0x8e3b92(0x404)](_0x220dba=>this[_0x8e3b92(0x458)](_0x220dba)))));}[_0x23e0a9(0x22e)](_0x47807f){const _0x4e03a4=_0x23e0a9;this[_0x4e03a4(0x211)]['setCurrentUser'](_0x47807f);}[_0x23e0a9(0x177)](){const _0x1e3230=_0x23e0a9;return this[_0x1e3230(0x211)][_0x1e3230(0x177)]();}[_0x23e0a9(0x354)](_0x38b122,_0x4f0bc3){const _0x5a2805=_0x23e0a9;let _0x1f1b2d=this[_0x5a2805(0xe6)][_0x5a2805(0x1c4)](_0x38b122);_0x1f1b2d||(_0x1f1b2d=new _0xd525c6(),this[_0x5a2805(0xe6)][_0x5a2805(0x2f7)](_0x38b122,_0x1f1b2d)),_0x1f1b2d[_0x5a2805(0x354)](_0x4f0bc3);}[_0x23e0a9(0x36c)](_0x3e044b,_0x4d1612){const _0x541c39=_0x23e0a9,_0x2c207c=this['_roomMembers'][_0x541c39(0x1c4)](_0x3e044b);_0x2c207c&&_0x2c207c[_0x541c39(0x36c)](_0x4d1612);}[_0x23e0a9(0x491)](_0x3f54c3){const _0x72804e=_0x23e0a9;return this[_0x72804e(0xe6)][_0x72804e(0x1c4)](_0x3f54c3);}[_0x23e0a9(0x4b3)](_0x4edd62,_0x11e62b){const _0x4b429f=_0x23e0a9,_0x6bd233=this[_0x4b429f(0xe6)][_0x4b429f(0x1c4)](_0x4edd62);if(_0x6bd233)return _0x6bd233[_0x4b429f(0x4b3)](_0x11e62b);}['_removeRoom'](_0x7f90fd){const _0x1ca808=_0x23e0a9,_0x38d62b=this['_roomMembers']['get'](_0x7f90fd);_0x38d62b&&(_0x38d62b[_0x1ca808(0x250)](),this[_0x1ca808(0xe6)][_0x1ca808(0x2cb)](_0x7f90fd));}[_0x23e0a9(0x250)](){const _0x55a9f2=_0x23e0a9;this[_0x55a9f2(0xe6)]['forEach'](_0xca133a=>_0xca133a[_0x55a9f2(0x250)]()),this['_roomMembers'][_0x55a9f2(0x108)]();}};_0x2b8623=_0x30c56a([_0x241db2(0x0,_0x3cac39['IUniverInstanceService']),_0x241db2(0x1,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x3c6)]))],_0x2b8623);class _0xd525c6 extends _0x3cac39[_0x23e0a9(0x3da)]{constructor(){const _0x413e0e=_0x23e0a9;super(...arguments),_0x56bf3b(this,_0x413e0e(0x218),new Map());}[_0x23e0a9(0x250)](){this['_members']['clear']();}[_0x23e0a9(0x354)](_0x176313){const _0x4e9348=_0x23e0a9;this[_0x4e9348(0x218)]['set'](_0x176313['memberID'],_0x176313);}['removeMember'](_0x3257c8){const _0x27ebcc=_0x23e0a9;this[_0x27ebcc(0x218)][_0x27ebcc(0x2cb)](_0x3257c8);}[_0x23e0a9(0x4b3)](_0x13ed36){return this['_members']['get'](_0x13ed36);}}var _0x557fef=Object[_0x23e0a9(0x2e3)],_0x32fe38=Object[_0x23e0a9(0x4ac)],_0x44b34c=(_0x4c6c98,_0x3067a9,_0x1c9f97,_0x295454)=>{const _0x4c2646=_0x23e0a9;for(var _0xa4ff53=_0x295454>0x1?void 0x0:_0x295454?_0x32fe38(_0x3067a9,_0x1c9f97):_0x3067a9,_0x123646=_0x4c6c98[_0x4c2646(0x480)]-0x1,_0x516ca8;_0x123646>=0x0;_0x123646--)(_0x516ca8=_0x4c6c98[_0x123646])&&(_0xa4ff53=(_0x295454?_0x516ca8(_0x3067a9,_0x1c9f97,_0xa4ff53):_0x516ca8(_0xa4ff53))||_0xa4ff53);return _0x295454&&_0xa4ff53&&_0x557fef(_0x3067a9,_0x1c9f97,_0xa4ff53),_0xa4ff53;},_0x32e881=(_0x129536,_0x3f53c3)=>(_0xe579d0,_0x30c6bf)=>_0x3f53c3(_0xe579d0,_0x30c6bf,_0x129536),_0x3ddb25=(_0xdfd931=>(_0xdfd931[_0xdfd931[_0x23e0a9(0x19c)]=0x0]='IDLE',_0xdfd931[_0xdfd931['JOINING']=0x1]=_0x23e0a9(0x43c),_0xdfd931[_0xdfd931[_0x23e0a9(0xef)]=0x2]=_0x23e0a9(0xef),_0xdfd931[_0xdfd931['ONLINE']=0x3]=_0x23e0a9(0x1fd),_0xdfd931))(_0x3ddb25||{});_0x78d65c[_0x23e0a9(0x4eb)]=class extends _0x3cac39[_0x23e0a9(0x4b1)]{constructor(_0x393eac,_0x571033,_0xa80a0d,_0x4f335f,_0x464f43,_0x5a7985,_0x332f90,_0x4a13a7,_0x6538f3,_0x10cdab){const _0x4e0476=_0x23e0a9;super(),_0x56bf3b(this,'_sessionStatus$',new _0x2132a7[(_0x4e0476(0x49e))](0x0)),_0x56bf3b(this,_0x4e0476(0x45a),this[_0x4e0476(0x2db)]['asObservable']()),_0x56bf3b(this,_0x4e0476(0x115),new _0x2132a7['Subject']()),_0x56bf3b(this,_0x4e0476(0x421),this[_0x4e0476(0x115)]['asObservable']()),_0x56bf3b(this,_0x4e0476(0x2ac)),_0x56bf3b(this,_0x4e0476(0x194)),_0x56bf3b(this,_0x4e0476(0x1b9)),_0x56bf3b(this,'_shouldReportTelemetry',!0x1),_0x56bf3b(this,'_telemetryInfo',null),(this[_0x4e0476(0x438)]=_0x393eac,this[_0x4e0476(0x110)]=_0xa80a0d,this[_0x4e0476(0x3c5)]=_0x4f335f,this[_0x4e0476(0x219)]=_0x464f43,this['_configService']=_0x5a7985,this[_0x4e0476(0x452)]=_0x332f90,this['_memberService']=_0x4a13a7,this[_0x4e0476(0xbc)]=_0x6538f3,this[_0x4e0476(0x4ed)]=_0x10cdab,this[_0x4e0476(0x475)]=!!this[_0x4e0476(0x4ed)],_0x571033[_0x4e0476(0x19e)](_0x2132a7[_0x4e0476(0x2dd)](this['dispose$']))['subscribe'](_0x371f38=>{const _0x354023=_0x4e0476;var _0x5deb2d;typeof _0x371f38>'u'||(this[_0x354023(0x2ac)]=_0x371f38,_0x371f38?(this[_0x354023(0x37a)](_0x371f38),this[_0x354023(0x194)]=_0x371f38['message$'][_0x354023(0x404)](_0x29a242=>{const _0x3ad0ab=_0x354023;_0x29a242['routeKey']===this[_0x3ad0ab(0x438)]&&this[_0x3ad0ab(0x1ef)](_0x29a242);})):(this[_0x354023(0xec)](),this[_0x354023(0x2db)][_0x354023(0x3c8)](0x2),(_0x5deb2d=this[_0x354023(0x194)])==null||_0x5deb2d[_0x354023(0x4df)](),this[_0x354023(0x194)]=null));}),this['disposeWithMe'](this['_beforeCloseService'][_0x4e0476(0x12b)](()=>{const _0x19be68=_0x4e0476;var _0x2d7780;(_0x2d7780=this[_0x19be68(0x2ac)])==null||_0x2d7780[_0x19be68(0x23d)]({'cmd':_0x5e062b['LEAVE'],'data':{'roomID':this[_0x19be68(0x438)]}});})));}get[_0x23e0a9(0x3f8)](){const _0x169643=_0x23e0a9;return this[_0x169643(0x2db)]['getValue']();}[_0x23e0a9(0x3a5)](){const _0x74a9e7=_0x23e0a9;var _0x5d2361,_0x48755e;return(_0x48755e=(_0x5d2361=this[_0x74a9e7(0x2ac)])==null?void 0x0:_0x5d2361[_0x74a9e7(0x12d)])!=null?_0x48755e:null;}[_0x23e0a9(0x250)](){const _0x5417bf=_0x23e0a9;super[_0x5417bf(0x250)](),this[_0x5417bf(0xfd)]['next'](),this[_0x5417bf(0xfd)][_0x5417bf(0x1be)]();}['close'](){const _0x52d860=_0x23e0a9;var _0xbe0f1e,_0x28e6ce;this[_0x52d860(0xec)](),(_0xbe0f1e=this[_0x52d860(0x2ac)])==null||_0xbe0f1e[_0x52d860(0x23d)]({'cmd':_0x5e062b[_0x52d860(0x4c5)],'data':{'roomID':this['_unitID']}}),(_0x28e6ce=this[_0x52d860(0x2ac)])==null||_0x28e6ce[_0x52d860(0x3fd)](),this[_0x52d860(0x115)][_0x52d860(0x1be)](),this[_0x52d860(0x2db)][_0x52d860(0x1be)](),this[_0x52d860(0x250)]();}['_onCombEvent'](_0x42948a){const _0x293439=_0x23e0a9;_0x42948a[_0x293439(0x2a8)]===_0x5e062b['JOIN']?this[_0x293439(0x1c0)](_0x42948a):_0x42948a[_0x293439(0x2a8)]===_0x5e062b[_0x293439(0x268)]&&this['_onRecvEvent'](_0x42948a);}['_joinRoom'](_0x3c3a3e){const _0x174b18=_0x23e0a9;this[_0x174b18(0x2db)]['next'](0x1),_0x3c3a3e[_0x174b18(0x23d)]({'cmd':_0x5e062b[_0x174b18(0x1e0)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x23e0a9(0x1c0)](_0xf4649c){const _0x2d312f=_0x23e0a9;var _0x3abcbe;if(_0xf4649c[_0x2d312f(0x17b)]===_0x2e4e84[_0x2d312f(0x1f8)]){this['_messageService'][_0x2d312f(0x1d2)]({'type':_0x3003bf['MessageType'][_0x2d312f(0x16b)],'content':this[_0x2d312f(0x452)]['t'](_0x2d312f(0x16d))}),this[_0x2d312f(0x2db)][_0x2d312f(0x3c8)](0x2);return;}this[_0x2d312f(0x2db)]['next'](0x3);const _0x783e6e=(_0x3abcbe=_0xf4649c[_0x2d312f(0x2bd)]['roomInfos'][this[_0x2d312f(0x438)]])==null?void 0x0:_0x3abcbe[_0x2d312f(0x3dd)];_0x783e6e&&_0x783e6e[_0x2d312f(0x2d4)](_0x4f679a=>this['_memberService'][_0x2d312f(0x354)](this[_0x2d312f(0x438)],_0x4f679a));}['_onRecvEvent'](_0x2cfe48){const _0x4694a0=_0x23e0a9;try{const _0x38cdf4=_0x2cfe48['data'];switch(_0x38cdf4[_0x4694a0(0x199)]){case _0x42c3cc[_0x4694a0(0x41b)][_0x4694a0(0x337)]:this[_0x4694a0(0x341)](_0x38cdf4),this[_0x4694a0(0x115)][_0x4694a0(0x3c8)](_0x38cdf4);break;case _0x42c3cc[_0x4694a0(0x41b)]['USERS_LEAVE']:this[_0x4694a0(0x3c3)](_0x38cdf4),this[_0x4694a0(0x115)][_0x4694a0(0x3c8)](_0x38cdf4);break;case _0x42c3cc[_0x4694a0(0x41b)][_0x4694a0(0x42d)]:this[_0x4694a0(0x16e)](),this['_clearCollaborationTimeoutTimer'](),this[_0x4694a0(0x115)][_0x4694a0(0x3c8)](_0x38cdf4);break;case _0x42c3cc[_0x4694a0(0x41b)]['MSG_FOR_ERROR']:this[_0x4694a0(0x110)]['error']('save\x20fail\x20reason\x20is\x20'+JSON[_0x4694a0(0x351)](_0x38cdf4)),this[_0x4694a0(0x115)][_0x4694a0(0x3c8)](_0x38cdf4);break;case _0x42c3cc[_0x4694a0(0x41b)][_0x4694a0(0x1f4)]:this[_0x4694a0(0xbc)][_0x4694a0(0x346)](_0x38cdf4[_0x4694a0(0x2bd)]),this[_0x4694a0(0x115)][_0x4694a0(0x3c8)](_0x38cdf4);break;default:this['_event$'][_0x4694a0(0x3c8)](_0x38cdf4);}}catch(_0x23d967){this[_0x4694a0(0x110)][_0x4694a0(0x4a8)](_0x23d967,_0x2cfe48);}}[_0x23e0a9(0x341)](_0x1d2d93){const _0x3f9cee=_0x23e0a9;this[_0x3f9cee(0x4be)]['updateMember'](this[_0x3f9cee(0x438)],_0x1d2d93['data']);}['_onUserLeave'](_0x18f09d){const _0x59677b=_0x23e0a9;this[_0x59677b(0x4be)]['removeMember'](this[_0x59677b(0x438)],_0x18f09d[_0x59677b(0x2bd)]['memberID']);}async['send'](_0x32f07a,_0x1d4fa5){const _0x39e44a=_0x23e0a9;if(this[_0x39e44a(0x3f8)]!==0x3||!this[_0x39e44a(0x2ac)])throw new Error(_0x39e44a(0x3b2));try{_0x32f07a[_0x39e44a(0x199)]===_0x42c3cc[_0x39e44a(0x41b)]['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x39e44a(0x3f2)](_0x32f07a)),this['_socket']['send']({'cmd':_0x5e062b[_0x39e44a(0x265)],'routeKey':_0x1d4fa5,'routeType':'','data':_0x32f07a});}catch(_0x1e92ac){this[_0x39e44a(0x110)][_0x39e44a(0x4a8)](_0x1e92ac);}}[_0x23e0a9(0x333)](){const _0x8d73af=_0x23e0a9;var _0x7ede5b;this['_collaborationTimeoutTimer']=window[_0x8d73af(0x41d)](()=>{const _0x3953b8=_0x8d73af;this['_collaborationTimeoutTimer']=null,this[_0x3953b8(0x219)][_0x3953b8(0x1d2)]({'type':_0x3003bf['MessageType']['Error'],'content':this[_0x3953b8(0x452)]['t'](_0x3953b8(0x2e4))});},(_0x7ede5b=this[_0x8d73af(0x259)][_0x8d73af(0x3f1)](_0x16f902))!=null?_0x7ede5b:0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x2a06b0=_0x23e0a9;this['_collaborationTimeoutTimer']&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x2a06b0(0x1b9)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x5c64d5){const _0x4116ab=_0x23e0a9;if(!this[_0x4116ab(0x475)])return;const {data:_0x3fb2f4}=_0x5c64d5,{unitID:_0x4f2b1c,changeset:_0x22448b}=_0x3fb2f4,{mutations:_0xe01844,type:_0x566a00}=_0x22448b;this[_0x4116ab(0xf8)]={'unitId':_0x4f2b1c,'type':_0x566a00,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x4e45ed(_0xe01844)};}[_0x23e0a9(0x16e)](){const _0x427411=_0x23e0a9;if(this['_shouldReportTelemetry']){if(!this[_0x427411(0xf8)]){this[_0x427411(0x110)]['error'](_0x427411(0x2d3),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo'][_0x427411(0x3d5)]=performance[_0x427411(0x204)](),this[_0x427411(0xf8)][_0x427411(0x1bb)]=this['_telemetryInfo'][_0x427411(0x3d5)]-this['_telemetryInfo'][_0x427411(0x224)],this[_0x427411(0x4ed)]['capture'](_0x3a3ec7,this[_0x427411(0xf8)]),this['_telemetryInfo']=null;}}[_0x23e0a9(0xec)](){this['_telemetryInfo']=null;}},_0x78d65c[_0x23e0a9(0x4eb)]=_0x44b34c([_0x32e881(0x2,_0x3cac39['ILogService']),_0x32e881(0x3,_0x4b9a33[_0x23e0a9(0x405)]),_0x32e881(0x4,_0x4b9a33[_0x23e0a9(0xf1)]),_0x32e881(0x5,_0x3cac39[_0x23e0a9(0x1fb)]),_0x32e881(0x6,_0x3cac39['Inject'](_0x3cac39[_0x23e0a9(0x3b5)])),_0x32e881(0x7,_0x3cac39[_0x23e0a9(0xce)](_0x2b8623)),_0x32e881(0x8,_0x3cac39[_0x23e0a9(0xce)](_0x3b262c)),_0x32e881(0x9,_0x3cac39[_0x23e0a9(0x2da)](_0x4e8244[_0x23e0a9(0x3cf)]))],_0x78d65c['CollaborationSession']);var _0x4322ac=Object[_0x23e0a9(0x2e3)],_0x2f4be6=Object[_0x23e0a9(0x4ac)],_0x1f3b7f=(_0x5750cc,_0x2ed3ce,_0x3cee85,_0x1f49ad)=>{const _0x4998ba=_0x23e0a9;for(var _0x1cb113=_0x1f49ad>0x1?void 0x0:_0x1f49ad?_0x2f4be6(_0x2ed3ce,_0x3cee85):_0x2ed3ce,_0x3294bf=_0x5750cc[_0x4998ba(0x480)]-0x1,_0x1f36bf;_0x3294bf>=0x0;_0x3294bf--)(_0x1f36bf=_0x5750cc[_0x3294bf])&&(_0x1cb113=(_0x1f49ad?_0x1f36bf(_0x2ed3ce,_0x3cee85,_0x1cb113):_0x1f36bf(_0x1cb113))||_0x1cb113);return _0x1f49ad&&_0x1cb113&&_0x4322ac(_0x2ed3ce,_0x3cee85,_0x1cb113),_0x1cb113;},_0x3c832d=(_0x28b7ba,_0x243f14)=>(_0x54e76a,_0x5504d5)=>_0x243f14(_0x54e76a,_0x5504d5,_0x28b7ba);_0x78d65c['CollaborationSessionService']=class extends _0x3cac39[_0x23e0a9(0x3da)]{constructor(_0xff27f9,_0x8fa92,_0x5d0c0f,_0x2d9964,_0x16c1d9,_0x23b5b9){const _0xf134e2=_0x23e0a9;super(),_0x56bf3b(this,_0xf134e2(0x31b),new _0x2132a7[(_0xf134e2(0x49e))](void 0x0)),_0x56bf3b(this,'socket$',this[_0xf134e2(0x31b)][_0xf134e2(0x3a4)]()),_0x56bf3b(this,'_candidateSocket',null),_0x56bf3b(this,'_sessions',new Map()),_0x56bf3b(this,_0xf134e2(0x272),new _0x2132a7['BehaviorSubject'](_0x3ddb25['IDLE'])),_0x56bf3b(this,_0xf134e2(0x387),this[_0xf134e2(0x272)]['asObservable']()),_0x56bf3b(this,_0xf134e2(0x449),!0x1),_0x56bf3b(this,'_retryConnectingTimer'),_0x56bf3b(this,_0xf134e2(0x40c),0x0),_0x56bf3b(this,_0xf134e2(0xc5)),_0x56bf3b(this,'_timeoutTimer'),(this['_injector']=_0xff27f9,this[_0xf134e2(0x452)]=_0x8fa92,this[_0xf134e2(0x219)]=_0x5d0c0f,this['_logService']=_0x2d9964,this[_0xf134e2(0x259)]=_0x16c1d9,this[_0xf134e2(0x3e6)]=_0x23b5b9,this['_initEventListeners']());}get[_0x23e0a9(0x2ac)](){const _0x286c2e=_0x23e0a9;return this[_0x286c2e(0x31b)][_0x286c2e(0x1a6)]();}[_0x23e0a9(0x25b)](){const _0x28cf4d=_0x23e0a9;this['_listenToOfflineEvent'](),this[_0x28cf4d(0x48f)]();}[_0x23e0a9(0x250)](){const _0x140ca2=_0x23e0a9;super[_0x140ca2(0x250)](),this[_0x140ca2(0x2dc)]['forEach'](_0x472be2=>_0x472be2['dispose']()),this['_sessions']['clear'](),this[_0x140ca2(0x272)][_0x140ca2(0x1be)]();}async['requireSession'](_0x260f61){const _0x161081=_0x23e0a9;if(this[_0x161081(0x2dc)][_0x161081(0x1ad)](_0x260f61))return this[_0x161081(0x2dc)][_0x161081(0x1c4)](_0x260f61);this[_0x161081(0x1dd)]();const _0x1933a6=this[_0x161081(0x44b)][_0x161081(0x4d0)](_0x78d65c[_0x161081(0x4eb)],_0x260f61,this[_0x161081(0x31b)]['asObservable']());return this[_0x161081(0x2dc)]['set'](_0x260f61,_0x1933a6),_0x1933a6;}['closeSession'](_0x46b233){const _0x34afce=_0x23e0a9;var _0x95b6b9;const _0x2d203b=this[_0x34afce(0x2dc)]['get'](_0x46b233);_0x2d203b&&(this[_0x34afce(0x2dc)][_0x34afce(0x2cb)](_0x46b233),_0x2d203b['close']()),this[_0x34afce(0x2dc)][_0x34afce(0x347)]||(_0x95b6b9=this[_0x34afce(0x2ac)])==null||_0x95b6b9[_0x34afce(0x3fd)]();}[_0x23e0a9(0x18d)](){const _0x1c46e0=_0x23e0a9;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null),this[_0x1c46e0(0x1b5)]();}[_0x23e0a9(0x184)](){const _0x4eb775=_0x23e0a9;var _0x145123,_0x9c6333;const _0x59a077=this[_0x4eb775(0x259)][_0x4eb775(0x3f1)](_0x1e3926),_0xc5f6b6=this[_0x4eb775(0x259)][_0x4eb775(0x3f1)](_0x14d460),_0x51df83=(_0x9c6333=(_0x145123=_0xc5f6b6==null?void 0x0:_0xc5f6b6[_0x4eb775(0x18e)])!=null?_0x145123:_0x59a077)!=null?_0x9c6333:_0x3f4854,_0x386088=this['_socketService'][_0x4eb775(0x41a)](_0x51df83);return this[_0x4eb775(0x155)]=_0x386088,_0x386088;}[_0x23e0a9(0x1dd)](){const _0x55d05a=_0x23e0a9;var _0x21c6a2,_0x1ade82;try{const _0x59571a=(_0x1ade82=(_0x21c6a2=this[_0x55d05a(0x2ac)])!=null?_0x21c6a2:this['_candidateSocket'])!=null?_0x1ade82:this['_createSocket']();if(_0x59571a){const _0x2c3333=_0x59571a['send'];_0x59571a[_0x55d05a(0x23d)]=_0x40ac14=>(this[_0x55d05a(0x44a)](),_0x2c3333['apply'](_0x59571a,[_0x40ac14])),_0x59571a['message$']['subscribe'](_0x3bf2a4=>this[_0x55d05a(0x499)](_0x59571a,_0x3bf2a4)),_0x59571a[_0x55d05a(0x342)]['pipe'](_0x2b32ae['take'](0x1))['subscribe'](_0x3dd69d=>this[_0x55d05a(0x110)][_0x55d05a(0x4a8)](_0x55d05a(0x3fb),_0x3dd69d)),_0x59571a[_0x55d05a(0x2ca)][_0x55d05a(0x19e)](_0x2b32ae[_0x55d05a(0x10a)](0x1))['subscribe'](()=>{const _0x26e33f=_0x55d05a;this[_0x26e33f(0x426)](_0x59571a);}),_0x59571a['close$'][_0x55d05a(0x19e)](_0x2b32ae[_0x55d05a(0x10a)](0x1))['subscribe'](_0x1dca26=>{const _0xbcdbf2=_0x55d05a;this[_0xbcdbf2(0x110)][_0xbcdbf2(0xb8)](_0xbcdbf2(0x39d),_0xbcdbf2(0x3aa),_0x1dca26),this['_onConnectionFailed']();});}}catch(_0xc29e44){this[_0x55d05a(0x110)][_0x55d05a(0x4a8)](_0xc29e44),this[_0x55d05a(0x103)]();}}[_0x23e0a9(0x426)](_0xc9e34c){const _0x5a395a=_0x23e0a9;this['_logService']['debug'](_0x5a395a(0x39d),_0x5a395a(0xe7)),_0xc9e34c[_0x5a395a(0x23d)]({'cmd':_0x5e062b[_0x5a395a(0x34c)]}),this[_0x5a395a(0x44a)]();}[_0x23e0a9(0x454)](){const _0xa4ae41=_0x23e0a9;window['addEventListener'](_0xa4ae41(0x2a7),()=>this[_0xa4ae41(0x3bb)]());}[_0x23e0a9(0x3bb)](){const _0x182556=_0x23e0a9;this[_0x182556(0x449)]=!0x1,this[_0x182556(0x155)]=null,this[_0x182556(0x272)]['next'](_0x3ddb25[_0x182556(0xef)]),this['_socket$'][_0x182556(0x3c8)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x5bd3b8=_0x23e0a9;var _0x129adc;this[_0x5bd3b8(0x3bb)](),this[_0x5bd3b8(0x40c)]<((_0x129adc=this[_0x5bd3b8(0x259)]['getConfig'](_0x5129fd))!=null?_0x129adc:0x3)?(this[_0x5bd3b8(0x219)][_0x5bd3b8(0x1d2)]({'key':_0x5bd3b8(0x233),'type':_0x3003bf['MessageType']['Warning'],'content':this['_localeService']['t']('session.will-retry')}),this[_0x5bd3b8(0x1b5)]()):this[_0x5bd3b8(0x219)][_0x5bd3b8(0x1d2)]({'key':_0x5bd3b8(0x233),'type':_0x3003bf[_0x5bd3b8(0x190)][_0x5bd3b8(0x2fe)],'content':this[_0x5bd3b8(0x452)]['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x32fa4e=_0x23e0a9,_0x149605=()=>{this['_socket']||this['reconnect']();},_0x17a15b=()=>{const _0xb45f03=_0x28b7;this[_0xb45f03(0x2ac)]||document[_0xb45f03(0x2ff)]==='hidden'||this[_0xb45f03(0x18d)]();};window[_0x32fa4e(0x13b)](_0x32fa4e(0x2cc),_0x149605),document[_0x32fa4e(0x13b)](_0x32fa4e(0x3df),_0x17a15b);}['_tryReconnect'](){const _0x1132b6=_0x23e0a9;var _0x332dc3;const _0x110961=this['_retryCount'],_0x251fff=this[_0x1132b6(0x259)][_0x1132b6(0x3f1)](_0x14d460),_0x82af97=_0x110961===0x0?0x0:((_0x332dc3=_0x251fff==null?void 0x0:_0x251fff[_0x1132b6(0x193)])!=null?_0x332dc3:0x4e20)*0x2**_0x110961;this[_0x1132b6(0x358)]=window[_0x1132b6(0x41d)](()=>{const _0x238b1a=_0x1132b6;clearTimeout(this[_0x238b1a(0x358)]),this[_0x238b1a(0x358)]=null,this['_tryEnsureSocket']();},_0x82af97),this[_0x1132b6(0x40c)]+=0x1;}[_0x23e0a9(0x499)](_0x3309d9,_0x50b49d){const _0x74dfe5=_0x23e0a9,{cmd:_0x2c029a}=_0x50b49d;_0x2c029a===_0x5e062b[_0x74dfe5(0x34c)]&&!this[_0x74dfe5(0x449)]&&(_0x3309d9[_0x74dfe5(0x12d)]=_0x50b49d[_0x74dfe5(0x2bd)][_0x74dfe5(0x12d)],this[_0x74dfe5(0x31b)][_0x74dfe5(0x3c8)](_0x3309d9),this['_status$'][_0x74dfe5(0x3c8)](_0x3ddb25[_0x74dfe5(0x1fd)]),this[_0x74dfe5(0x449)]=!0x0,this['_candidateSocket']=null),_0x2c029a===_0x5e062b[_0x74dfe5(0x3ec)]&&this[_0x74dfe5(0x462)](),this[_0x74dfe5(0x44a)]();}['_rescheduleHeartbeat'](){const _0x2bee5d=_0x23e0a9;var _0x394225;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window[_0x2bee5d(0x41d)](()=>this[_0x2bee5d(0x46a)](),(_0x394225=this['_configService']['getConfig'](_0x17527c))!=null?_0x394225:0x7530);}[_0x23e0a9(0x46a)](){const _0x43ef24=_0x23e0a9;this['_socket'][_0x43ef24(0x23d)]({'cmd':_0x5e062b[_0x43ef24(0x3ec)]}),this[_0x43ef24(0x18c)]();}[_0x23e0a9(0x18c)](){const _0x5234bb=_0x23e0a9;var _0x3fee90;this[_0x5234bb(0x4ce)]=window['setTimeout'](()=>this['_onConnectionFailed'](),(_0x3fee90=this[_0x5234bb(0x259)][_0x5234bb(0x3f1)](_0x16f902))!=null?_0x3fee90:0x4e20);}[_0x23e0a9(0x4a4)](){const _0x2a6007=_0x23e0a9;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x2a6007(0xc5)]),this['_sendHeartbeatTimer']=null);}[_0x23e0a9(0x462)](){const _0xc9f1b8=_0x23e0a9;this[_0xc9f1b8(0x4ce)]!=null&&(clearTimeout(this[_0xc9f1b8(0x4ce)]),this[_0xc9f1b8(0x4ce)]=null);}},_0x78d65c[_0x23e0a9(0x386)]=_0x1f3b7f([_0x3c832d(0x0,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39['Injector'])),_0x3c832d(0x1,_0x3cac39['Inject'](_0x3cac39[_0x23e0a9(0x3b5)])),_0x3c832d(0x2,_0x4b9a33[_0x23e0a9(0xf1)]),_0x3c832d(0x3,_0x3cac39['ILogService']),_0x3c832d(0x4,_0x3cac39['IConfigService']),_0x3c832d(0x5,_0x2b02ef)],_0x78d65c[_0x23e0a9(0x386)]);for(var _0x3287b8=[],_0x19ffbd=0x0;_0x19ffbd<0x100;++_0x19ffbd)_0x3287b8[_0x23e0a9(0xcc)]((_0x19ffbd+0x100)[_0x23e0a9(0x427)](0x10)[_0x23e0a9(0x4b2)](0x1));function _0x58cbf6(_0x36748e,_0x19b875=0x0){const _0x1e8d0b=_0x23e0a9;return(_0x3287b8[_0x36748e[_0x19b875+0x0]]+_0x3287b8[_0x36748e[_0x19b875+0x1]]+_0x3287b8[_0x36748e[_0x19b875+0x2]]+_0x3287b8[_0x36748e[_0x19b875+0x3]]+'-'+_0x3287b8[_0x36748e[_0x19b875+0x4]]+_0x3287b8[_0x36748e[_0x19b875+0x5]]+'-'+_0x3287b8[_0x36748e[_0x19b875+0x6]]+_0x3287b8[_0x36748e[_0x19b875+0x7]]+'-'+_0x3287b8[_0x36748e[_0x19b875+0x8]]+_0x3287b8[_0x36748e[_0x19b875+0x9]]+'-'+_0x3287b8[_0x36748e[_0x19b875+0xa]]+_0x3287b8[_0x36748e[_0x19b875+0xb]]+_0x3287b8[_0x36748e[_0x19b875+0xc]]+_0x3287b8[_0x36748e[_0x19b875+0xd]]+_0x3287b8[_0x36748e[_0x19b875+0xe]]+_0x3287b8[_0x36748e[_0x19b875+0xf]])[_0x1e8d0b(0x3e5)]();}var _0x22dd44,_0x2bb405=new Uint8Array(0x10);function _0x343565(){const _0x346005=_0x23e0a9;if(!_0x22dd44&&(_0x22dd44=typeof crypto<'u'&&crypto[_0x346005(0x2b8)]&&crypto[_0x346005(0x2b8)][_0x346005(0x1cd)](crypto),!_0x22dd44))throw new Error(_0x346005(0x242));return _0x22dd44(_0x2bb405);}var _0x8f43a5=typeof crypto<'u'&&crypto['randomUUID']&&crypto['randomUUID'][_0x23e0a9(0x1cd)](crypto);const _0x32cfc6={'randomUUID':_0x8f43a5};function _0x2a76cc(_0xa588f6,_0x124522,_0xa18016){const _0xd29ede=_0x23e0a9;if(_0x32cfc6[_0xd29ede(0x2de)]&&!_0x124522&&!_0xa588f6)return _0x32cfc6[_0xd29ede(0x2de)]();_0xa588f6=_0xa588f6||{};var _0x5f1323=_0xa588f6[_0xd29ede(0x19a)]||(_0xa588f6[_0xd29ede(0x210)]||_0x343565)();return _0x5f1323[0x6]=_0x5f1323[0x6]&0xf|0x40,_0x5f1323[0x8]=_0x5f1323[0x8]&0x3f|0x80,_0x58cbf6(_0x5f1323);}var _0x22a75e=Object[_0x23e0a9(0x2e3)],_0xb4a9d7=Object[_0x23e0a9(0x4ac)],_0x31b5e4=(_0x285c80,_0x1839b7,_0x19f27a,_0x66ae3e)=>{for(var _0x221145=_0x66ae3e>0x1?void 0x0:_0x66ae3e?_0xb4a9d7(_0x1839b7,_0x19f27a):_0x1839b7,_0x2f1af0=_0x285c80['length']-0x1,_0xfdbb36;_0x2f1af0>=0x0;_0x2f1af0--)(_0xfdbb36=_0x285c80[_0x2f1af0])&&(_0x221145=(_0x66ae3e?_0xfdbb36(_0x1839b7,_0x19f27a,_0x221145):_0xfdbb36(_0x221145))||_0x221145);return _0x66ae3e&&_0x221145&&_0x22a75e(_0x1839b7,_0x19f27a,_0x221145),_0x221145;},_0x42ef69=(_0x3e64ef,_0x204f3a)=>(_0x126cf2,_0x269353)=>_0x204f3a(_0x126cf2,_0x269353,_0x3e64ef);let _0x3ae3a1=class{constructor(_0x40196f,_0x3c3666,_0x4aab93){const _0x5121de=_0x23e0a9;this['_injector']=_0x40196f,this[_0x5121de(0x374)]=_0x3c3666,this[_0x5121de(0x125)]=_0x4aab93;}[_0x23e0a9(0x15d)](_0x517e2b){const _0xb1b893=_0x23e0a9;this[_0xb1b893(0x2ef)](_0x517e2b),this['_transformPreviousActiveRange'](_0x517e2b);}['transformRemoteChangeset'](_0x5864e5){const _0x21fd40=_0x23e0a9,{unitID:_0x30ccae}=_0x5864e5,_0x30593c=this[_0x21fd40(0x125)][_0x21fd40(0xda)](_0x30ccae)[_0x21fd40(0x27b)](_0x2c2d98['DocIMEInputManagerService']),{redoCache:_0x254b63}=_0x30593c[_0x21fd40(0x2c1)]();if(_0x254b63['length']===0x0)return _0x5864e5;let _0x1b8b6a=_0x3cac39[_0x21fd40(0x4bf)][_0x21fd40(0x33f)](_0x5864e5[_0x21fd40(0x100)][0x0]);for(let _0x475f1f=0x0;_0x475f1f<_0x254b63['length'];_0x475f1f++){const _0x3338e3={'id':'doc.mutation.rich-text-editing','params':{..._0x254b63[_0x475f1f]}},_0x4784ce=this[_0x21fd40(0x374)][_0x21fd40(0x407)](_0x1b8b6a,_0x3338e3,!0x1);if(_0x42c3cc[_0x21fd40(0x425)](_0x4784ce))throw _0x4784ce[_0x21fd40(0x4a8)];_0x1b8b6a=_0x4784ce[_0x21fd40(0x45b)];}return{..._0x3cac39[_0x21fd40(0x4bf)][_0x21fd40(0x33f)](_0x5864e5),'mutations':[_0x1b8b6a]};}[_0x23e0a9(0x2ef)](_0x364f51){const _0x3a23e5=_0x23e0a9,{unitID:_0x594e45}=_0x364f51,_0x10aaed=this[_0x3a23e5(0x125)][_0x3a23e5(0xda)](_0x594e45)[_0x3a23e5(0x27b)](_0x2c2d98[_0x3a23e5(0x2ba)]),{undoCache:_0x1a2a03,redoCache:_0x4c578a}=_0x10aaed[_0x3a23e5(0x2c1)]();if(_0x1a2a03[_0x3a23e5(0x480)]===0x0||_0x4c578a[_0x3a23e5(0x480)]===0x0)return;const _0x17eee1=[],_0x3a955f=[];let _0x58c4ea=_0x3cac39[_0x3a23e5(0x4bf)]['deepClone'](_0x364f51['mutations'][0x0]),_0x5f1d86=_0x3cac39[_0x3a23e5(0x4bf)]['deepClone'](_0x364f51[_0x3a23e5(0x100)][0x0]);for(let _0x592369=_0x1a2a03['length']-0x1;_0x592369>=0x0;_0x592369--){const _0x3e00f5={'id':'doc.mutation.rich-text-editing','params':{..._0x1a2a03[_0x592369]}},_0x317f3e={'id':_0x3a23e5(0x2a4),'params':{..._0x4c578a[_0x592369]}},_0x187fee=this[_0x3a23e5(0x374)][_0x3a23e5(0x407)](_0x58c4ea,_0x3e00f5,!0x1),_0x3018cf=this[_0x3a23e5(0x374)]['transformMutation'](_0x5f1d86,_0x317f3e,!0x1);if(_0x42c3cc[_0x3a23e5(0x425)](_0x187fee))throw _0x187fee[_0x3a23e5(0x4a8)];if(_0x42c3cc[_0x3a23e5(0x425)](_0x3018cf))throw _0x3018cf[_0x3a23e5(0x4a8)];_0x17eee1[_0x3a23e5(0x399)](_0x187fee[_0x3a23e5(0x40a)]['params']),_0x3a955f[_0x3a23e5(0x399)](_0x3018cf[_0x3a23e5(0x40a)][_0x3a23e5(0x1db)]),_0x58c4ea=_0x187fee['m1Prime'],_0x5f1d86=_0x3018cf['m1Prime'];}_0x10aaed[_0x3a23e5(0x1b7)]({'undoCache':_0x17eee1,'redoCache':_0x3a955f});}['_transformPreviousActiveRange'](_0xd5f19d){const _0x51275f=_0x23e0a9,{unitID:_0x535c52}=_0xd5f19d,_0x1b3724=this['_renderManagerService'][_0x51275f(0xda)](_0x535c52)[_0x51275f(0x27b)](_0x2c2d98[_0x51275f(0x2ba)]),_0x34087f=_0x1b3724['getActiveRange']();if(_0x34087f==null)return;const _0x97871c=[{'id':_0x51275f(0x2a4),'params':{'unitId':_0xd5f19d[_0x51275f(0x3c1)],'actions':null,'textRanges':[_0x34087f]}}],_0x461344=this[_0x51275f(0x374)]['transformMutationsWithChangeset'](_0xd5f19d,_0x97871c);if(!_0x42c3cc[_0x51275f(0x496)](_0x461344))throw _0x461344['error'];const _0x121dd0=_0x461344[_0x51275f(0x40a)][0x0]['params'][_0x51275f(0x447)];Array[_0x51275f(0x406)](_0x121dd0)&&_0x121dd0[_0x51275f(0x480)]&&_0x1b3724[_0x51275f(0x2eb)](_0x121dd0[0x0]);}};_0x3ae3a1=_0x31b5e4([_0x42ef69(0x0,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x137)])),_0x42ef69(0x1,_0x42c3cc['ITransformService']),_0x42ef69(0x2,_0x571c77[_0x23e0a9(0x3a1)])],_0x3ae3a1);var _0x4620e7=Object['defineProperty'],_0x3a6fd0=Object[_0x23e0a9(0x4ac)],_0x5b1ce4=(_0x57a0a1,_0x5ac81b,_0x19e599,_0x422a8d)=>{for(var _0x4d77c4=_0x422a8d>0x1?void 0x0:_0x422a8d?_0x3a6fd0(_0x5ac81b,_0x19e599):_0x5ac81b,_0x2795c2=_0x57a0a1['length']-0x1,_0x535d8f;_0x2795c2>=0x0;_0x2795c2--)(_0x535d8f=_0x57a0a1[_0x2795c2])&&(_0x4d77c4=(_0x422a8d?_0x535d8f(_0x5ac81b,_0x19e599,_0x4d77c4):_0x535d8f(_0x4d77c4))||_0x4d77c4);return _0x422a8d&&_0x4d77c4&&_0x4620e7(_0x5ac81b,_0x19e599,_0x4d77c4),_0x4d77c4;},_0x33b177=(_0x3a5c20,_0x5006bd)=>(_0x427301,_0x252a4e)=>_0x5006bd(_0x427301,_0x252a4e,_0x3a5c20);_0x78d65c[_0x23e0a9(0x494)]=class extends _0x3cac39[_0x23e0a9(0x3da)]{constructor(_0x3f3859,_0x5a17c9,_0x2fa98d,_0x199e80,_0x40fe22){const _0x57c492=_0x23e0a9;super(),_0x56bf3b(this,_0x57c492(0xd3),new Map()),_0x56bf3b(this,_0x57c492(0x260),new Map()),_0x56bf3b(this,_0x57c492(0x14e),!0x1),(this[_0x57c492(0x259)]=_0x3f3859,this[_0x57c492(0x105)]=_0x5a17c9,this[_0x57c492(0x3c5)]=_0x2fa98d,this[_0x57c492(0x452)]=_0x199e80,this[_0x57c492(0x3cd)]=_0x40fe22,this[_0x57c492(0x25c)]());}[_0x23e0a9(0x1f3)](){const _0x4794db=_0x23e0a9;this[_0x4794db(0x14e)]=!0x0;}['enableLocalCache'](){const _0x140aca=_0x23e0a9;this[_0x140aca(0x14e)]=!0x1;}['dispose'](){const _0x10a590=_0x23e0a9;this[_0x10a590(0x22a)]()[_0x10a590(0x1d4)](()=>super[_0x10a590(0x250)]());}async[_0x23e0a9(0x47f)](_0x53e28f){const _0x2a1a8a=_0x23e0a9;return this['_disabled']?null:this[_0x2a1a8a(0x105)][_0x2a1a8a(0x490)](_0x1a336f(_0x53e28f));}async[_0x23e0a9(0x27d)](_0x17ffd5,_0x2b09aa){const _0x3c2e5f=_0x23e0a9;return!!this[_0x3c2e5f(0x105)][_0x3c2e5f(0x3ff)](_0x17ffd5,_0x2b09aa);}[_0x23e0a9(0x2a1)](_0x183267,_0x17a859,_0x3ef26d,_0xe7f538){const _0x450d2e=_0x23e0a9,_0x11aed7=this[_0x450d2e(0x3cd)][_0x450d2e(0x497)](_0x183267);this[_0x450d2e(0xd3)][_0x450d2e(0x2f7)](_0x183267,{'unitID':_0x183267,'type':_0x17a859,'awaitingChangeset':_0x3ef26d,'mutations':_0xe7f538,'rev':_0x11aed7}),this[_0x450d2e(0x260)][_0x450d2e(0x1ad)](_0x183267)||this['_scheduleSaving'](_0x183267);}[_0x23e0a9(0x369)](_0x5975b3){const _0x5a3a39=_0x23e0a9,_0x5b278a=this[_0x5a3a39(0x183)]();_0x5b278a===0x0?this['_saveCache'](_0x5975b3):this[_0x5a3a39(0x260)][_0x5a3a39(0x2f7)](_0x5975b3,setTimeout(()=>this[_0x5a3a39(0x2b3)](_0x5975b3),_0x5b278a));}['_getSaveTimeout'](){const _0x51b287=_0x23e0a9;var _0x3cc672;return(_0x3cc672=this[_0x51b287(0x259)][_0x51b287(0x3f1)](_0x1ab361))!=null?_0x3cc672:0x3e8;}[_0x23e0a9(0x2b3)](_0x3f5a2e){const _0x41609b=_0x23e0a9,_0x4e0119=this[_0x41609b(0x260)][_0x41609b(0x1c4)](_0x3f5a2e);return _0x4e0119!==void 0x0&&window[_0x41609b(0x3ac)](_0x4e0119),this[_0x41609b(0x105)][_0x41609b(0x3ff)](_0x1a336f(_0x3f5a2e),this[_0x41609b(0xd3)][_0x41609b(0x1c4)](_0x3f5a2e))[_0x41609b(0x1d4)](()=>this[_0x41609b(0x260)]['delete'](_0x3f5a2e));}async[_0x23e0a9(0x22a)](){const _0x379c7c=[];this['_saveTaskMap']['forEach']((_0x1ed88f,_0x7c38ea)=>{const _0x1dd276=_0x28b7;window[_0x1dd276(0x3ac)](_0x1ed88f),_0x379c7c[_0x1dd276(0xcc)](this['_saveCache'](_0x7c38ea)[_0x1dd276(0x1d4)](()=>{this['_saveTaskMap']['delete'](_0x7c38ea);}));}),await Promise['all'](_0x379c7c);}[_0x23e0a9(0x25c)](){const _0x512f46=_0x23e0a9;this[_0x512f46(0x382)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x2e0712=_0x512f46;if(this[_0x2e0712(0x260)][_0x2e0712(0x347)])return this['_localeService']['t'](_0x2e0712(0x28e));}));}},_0x78d65c[_0x23e0a9(0x494)]=_0x5b1ce4([_0x33b177(0x0,_0x3cac39[_0x23e0a9(0x1fb)]),_0x33b177(0x1,_0x3cac39[_0x23e0a9(0x1e8)]),_0x33b177(0x2,_0x4b9a33[_0x23e0a9(0x405)]),_0x33b177(0x3,_0x3cac39['Inject'](_0x3cac39['LocaleService'])),_0x33b177(0x4,_0x3cac39[_0x23e0a9(0xce)](_0x42c3cc[_0x23e0a9(0xc8)]))],_0x78d65c[_0x23e0a9(0x494)]);function _0x1a336f(_0x1c9902){return'unit-cache-'+_0x1c9902;}var _0x616652=Object[_0x23e0a9(0x2e3)],_0x406151=Object['getOwnPropertyDescriptor'],_0x53e12b=(_0x445a3a,_0x5637b8,_0xd150c7,_0xb76af0)=>{const _0x106bfb=_0x23e0a9;for(var _0x21b6c5=_0xb76af0>0x1?void 0x0:_0xb76af0?_0x406151(_0x5637b8,_0xd150c7):_0x5637b8,_0xdfe69a=_0x445a3a[_0x106bfb(0x480)]-0x1,_0x293e17;_0xdfe69a>=0x0;_0xdfe69a--)(_0x293e17=_0x445a3a[_0xdfe69a])&&(_0x21b6c5=(_0xb76af0?_0x293e17(_0x5637b8,_0xd150c7,_0x21b6c5):_0x293e17(_0x21b6c5))||_0x21b6c5);return _0xb76af0&&_0x21b6c5&&_0x616652(_0x5637b8,_0xd150c7,_0x21b6c5),_0x21b6c5;},_0x4ae42c=(_0x4373cf,_0x1699f0)=>(_0x3b901b,_0x114cc9)=>_0x1699f0(_0x3b901b,_0x114cc9,_0x4373cf);function _0x2f1aa3(_0x5af436){const _0x50f56b=_0x23e0a9,{unitID:_0x19533a,mutations:_0x26f022}=_0x5af436;return{'unitId':_0x19533a,'subUnitId':_0x26f022[0x0][_0x50f56b(0x1db)]['subUnitId']};}let _0xd9170b=class{constructor(_0xdfc64e,_0x146687,_0x9602e6){const _0x363908=_0x23e0a9;this[_0x363908(0x44b)]=_0xdfc64e,this['_transformService']=_0x146687,this['_instanceService']=_0x9602e6;}['transformSelections'](_0x23f23e){const _0x2e2e7c=_0x23e0a9;var _0x67df32,_0x45fe08,_0x3350cc,_0x1a3424;const _0x1e0063=this[_0x2e2e7c(0x44b)][_0x2e2e7c(0x1c4)](_0x52138d[_0x2e2e7c(0x2f8)]),{unitId:_0x3c96f9,subUnitId:_0xae4d1e}=_0x2f1aa3(_0x23f23e),_0x288512=_0x1e0063[_0x2e2e7c(0x30c)](_0x3c96f9)[_0x2e2e7c(0x433)](),_0x4e9c97=(_0x45fe08=(_0x67df32=this[_0x2e2e7c(0x393)][_0x2e2e7c(0x344)](_0x3c96f9))==null?void 0x0:_0x67df32[_0x2e2e7c(0x142)]())==null?void 0x0:_0x45fe08['getSheetId']();if(_0x288512['length']===0x0||!_0x3c96f9||!_0xae4d1e)return;const _0x533774=[{'id':_0x52138d[_0x2e2e7c(0x21f)]['id'],'params':{'unitId':_0x3c96f9,'subUnitId':_0x4e9c97,'selections':_0x3cac39[_0x2e2e7c(0x4bf)][_0x2e2e7c(0x33f)](_0x288512)}}],_0x262ffa=this[_0x2e2e7c(0x374)][_0x2e2e7c(0x29d)](_0x23f23e,_0x533774);if(!_0x42c3cc[_0x2e2e7c(0x496)](_0x262ffa))throw _0x262ffa[_0x2e2e7c(0x4a8)];const _0x478330=(_0x1a3424=(_0x3350cc=_0x262ffa[_0x2e2e7c(0x40a)][0x0])==null?void 0x0:_0x3350cc[_0x2e2e7c(0x1db)])==null?void 0x0:_0x1a3424[_0x2e2e7c(0x4e8)];if(Array['isArray'](_0x478330)&&_0x478330[_0x2e2e7c(0x480)]){if(_0x478330['length']===_0x533774[0x0][_0x2e2e7c(0x1db)][_0x2e2e7c(0x4e8)][_0x2e2e7c(0x480)]&&_0x478330[_0x2e2e7c(0x34e)]((_0x316e8b,_0x7b7240)=>_0x3cac39[_0x2e2e7c(0x35b)][_0x2e2e7c(0x1c2)](_0x316e8b[_0x2e2e7c(0x448)],_0x533774[0x0][_0x2e2e7c(0x1db)][_0x2e2e7c(0x4e8)][_0x7b7240][_0x2e2e7c(0x448)])))return;this[_0x2e2e7c(0x44b)][_0x2e2e7c(0x1c4)](_0x3cac39['ICommandService'])[_0x2e2e7c(0x1bd)](_0x52138d['SetSelectionsOperation']['id'],{'unitId':_0x3c96f9,'subUnitId':_0x4e9c97,'selections':_0x478330});}}};_0xd9170b=_0x53e12b([_0x4ae42c(0x0,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x137)])),_0x4ae42c(0x1,_0x42c3cc[_0x23e0a9(0x4c6)]),_0x4ae42c(0x2,_0x3cac39['IUniverInstanceService'])],_0xd9170b);const _0xc9af34=_0x3cac39['createIdentifier'](_0x23e0a9(0x3d9));var _0x13f29d=(_0x326a5e=>(_0x326a5e[_0x326a5e['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x23e0a9(0x2c2),_0x326a5e[_0x326a5e[_0x23e0a9(0x19d)]=0x1]=_0x23e0a9(0x19d),_0x326a5e))(_0x13f29d||{});const _0x2b3dbc=0x7530,_0x3f14be=_0x23e0a9(0x4f3);class _0x492f65 extends _0x3cac39[_0x23e0a9(0x3da)]{constructor(){const _0x118dc4=_0x23e0a9;super(),_0x56bf3b(this,'_id',_0x3cac39[_0x118dc4(0x4bf)][_0x118dc4(0x275)]()),_0x56bf3b(this,_0x118dc4(0x20e),new Set()),_0x56bf3b(this,'_unitOnClients',new Map()),_0x56bf3b(this,'_heartbeatTimer',null),_0x56bf3b(this,_0x118dc4(0x1e1),new Map()),_0x56bf3b(this,'_unitStatus',new Map()),this[_0x118dc4(0x1df)]();}['dispose'](){const _0x54b17a=_0x23e0a9;super[_0x54b17a(0x250)](),this[_0x54b17a(0x1e1)][_0x54b17a(0x2d4)]((_0x851daf,_0x26fcf4)=>this[_0x54b17a(0x370)](_0x26fcf4)),this[_0x54b17a(0x36b)]&&window[_0x54b17a(0x192)](this[_0x54b17a(0x36b)]);}['getUnitStatus$'](_0x2b5283){const _0x2b7af7=_0x23e0a9;return this[_0x2b7af7(0x3e4)](_0x2b5283)[_0x2b7af7(0x19e)](_0x2132a7['distinctUntilChanged']());}[_0x23e0a9(0x2b1)](_0x181e59){const _0x31bb77=_0x23e0a9;this[_0x31bb77(0x20e)]['size']===0x0&&this[_0x31bb77(0x417)](),this[_0x31bb77(0x20e)][_0x31bb77(0x117)](_0x181e59),this[_0x31bb77(0x3ed)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x181e59],'isForwarded':!0x1});}[_0x23e0a9(0x3d1)](_0x11ef88){const _0x2f42e=_0x23e0a9;this['_selfUnitIDs'][_0x2f42e(0x2cb)](_0x11ef88),this[_0x2f42e(0x20e)][_0x2f42e(0x347)]===0x0&&this[_0x2f42e(0x36b)]&&window[_0x2f42e(0x192)](this['_heartbeatTimer']);}[_0x23e0a9(0x1df)](){const _0xe3ad12=_0x23e0a9;this[_0xe3ad12(0x382)](_0x3cac39[_0xe3ad12(0x381)](_0x2132a7[_0xe3ad12(0x469)](window,_0xe3ad12(0x3e2))[_0xe3ad12(0x404)](_0x4cd614=>{const _0x3db046=_0xe3ad12;if(_0x4cd614['key']!==_0x3f14be||!_0x4cd614[_0x3db046(0x14c)])return;const _0x3a1c63=JSON[_0x3db046(0x229)](_0x4cd614[_0x3db046(0x14c)]);this[_0x3db046(0x167)](_0x3a1c63);}))),window[_0xe3ad12(0x13b)](_0xe3ad12(0x325),()=>this[_0xe3ad12(0x3ed)]({'type':0x1,'memberID':this[_0xe3ad12(0x440)],'unitIDs':Array[_0xe3ad12(0x1ee)](this[_0xe3ad12(0x20e)])}));}[_0x23e0a9(0x167)](_0x2eceb0){const _0x146131=_0x23e0a9;switch(_0x2eceb0[_0x146131(0x29e)]){case 0x0:this[_0x146131(0x1c7)](_0x2eceb0);break;case 0x1:this[_0x146131(0x195)](_0x2eceb0);break;case 0x2:this[_0x146131(0x174)](_0x2eceb0);break;}}[_0x23e0a9(0x1c7)](_0x143996){const _0x338eb3=_0x23e0a9,{unitIDs:_0x340172,memberID:_0x22cbcc,isForwarded:_0x2bbd11}=_0x143996;_0x340172[_0x338eb3(0x2d4)](_0xc7f166=>{const _0x6b34d9=_0x338eb3;if(!_0x2bbd11&&this['_unitOnClients'][_0x6b34d9(0x1ad)](_0xc7f166)&&this[_0x6b34d9(0x3e4)](_0xc7f166)[_0x6b34d9(0x3c8)](0x1),!this[_0x6b34d9(0x1f0)][_0x6b34d9(0x1ad)](_0xc7f166)||!this[_0x6b34d9(0x1f0)]['get'](_0xc7f166)[_0x6b34d9(0x1ad)](_0x22cbcc)){const _0x5b47fb=this['_unitOnClients'][_0x6b34d9(0x1c4)](_0xc7f166)||new Set();_0x5b47fb[_0x6b34d9(0x117)](_0x22cbcc),this[_0x6b34d9(0x1f0)][_0x6b34d9(0x2f7)](_0xc7f166,_0x5b47fb),this['_scheduleClearOtherTimer'](_0x22cbcc);}}),_0x2bbd11||this[_0x338eb3(0x3ed)]({'type':0x0,'memberID':this[_0x338eb3(0x440)],'unitIDs':[...this[_0x338eb3(0x20e)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x40294a){const _0x15505c=_0x23e0a9;this['_removeClearOtherTimer'](_0x40294a);const _0x33c5f0=window[_0x15505c(0x41d)](()=>{const _0x45c88e=_0x15505c;this[_0x45c88e(0x1f0)][_0x45c88e(0x2d4)](_0x66a86a=>{const _0x365212=_0x45c88e;_0x66a86a[_0x365212(0x2cb)](_0x40294a);});},_0x2b3dbc*0x2);this[_0x15505c(0x1e1)]['set'](_0x40294a,_0x33c5f0);}[_0x23e0a9(0x370)](_0x1a435b){const _0x5a964d=_0x23e0a9;if(this['_clearOtherTimers'][_0x5a964d(0x1ad)](_0x1a435b)){const _0x413e56=this['_clearOtherTimers'][_0x5a964d(0x1c4)](_0x1a435b);_0x413e56&&window[_0x5a964d(0x3ac)](_0x413e56),this['_clearOtherTimers'][_0x5a964d(0x2f7)](_0x1a435b,null);}}['_handleLeaveEvent'](_0x1c896e){const _0x5ea061=_0x23e0a9,{memberID:_0x413769,unitIDs:_0x5a69e9}=_0x1c896e;_0x5a69e9[_0x5ea061(0x2d4)](_0x2883ca=>{const _0x1a95ca=_0x5ea061;var _0x111959;const _0x566533=this[_0x1a95ca(0x1f0)]['get'](_0x2883ca);_0x566533&&(_0x566533['delete'](_0x413769),(_0x111959=this[_0x1a95ca(0x3e4)](_0x2883ca))==null||_0x111959['next'](_0x566533[_0x1a95ca(0x347)]===0x0?0x0:0x1));}),this[_0x5ea061(0x370)](_0x413769);}['_handleHeartbeatEvent'](_0x93d2ce){const _0xfa93de=_0x23e0a9;this[_0xfa93de(0x45d)](_0x93d2ce['memberID']);}[_0x23e0a9(0x3ed)](_0x1cd6ae){const _0x1c5ce3=_0x23e0a9;localStorage['setItem'](_0x3f14be,JSON[_0x1c5ce3(0x351)](_0x1cd6ae));}[_0x23e0a9(0x417)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x4aef6f=_0x28b7;this[_0x4aef6f(0x3ed)]({'type':0x2,'memberID':this[_0x4aef6f(0x440)]});},_0x2b3dbc);}[_0x23e0a9(0x3e4)](_0x188e1b){const _0x16078a=_0x23e0a9;return this['_unitStatus'][_0x16078a(0x1ad)](_0x188e1b)||this[_0x16078a(0x4f2)][_0x16078a(0x2f7)](_0x188e1b,new _0x2132a7[(_0x16078a(0x49e))](0x0)),this[_0x16078a(0x4f2)][_0x16078a(0x1c4)](_0x188e1b);}}function _0x31f9d9(_0x251eb0){let _0x3ab5ec='';for(const _0xeef07d of _0x251eb0){const {startOffset:_0x147a43,endOffset:_0x38f797,isActive:_0x3ffd29}=_0xeef07d;_0x3ab5ec['length']&&(_0x3ab5ec+=','),_0x3ab5ec+=_0x147a43+':'+_0x38f797+':'+(_0x3ffd29?'1':'0');}return _0x3ab5ec;}function _0x38d0fa(_0x37e773){const _0x543d56=_0x23e0a9,_0x100ec0=_0x37e773[_0x543d56(0x3b8)](','),_0x193c1f=[];for(const _0x557c9f of _0x100ec0){const [_0x1a21e2,_0x238e4f,_0x2abe81]=_0x557c9f[_0x543d56(0x3b8)](':');_0x193c1f[_0x543d56(0xcc)]({'startOffset':Number(_0x1a21e2),'endOffset':Number(_0x238e4f),'collapsed':_0x1a21e2===_0x238e4f,'isActive':_0x2abe81==='1'});}return _0x193c1f[_0x543d56(0x390)](_0x43a58a=>_0x43a58a['isActive'])||(_0x193c1f[0x0]['isActive']=!0x0),_0x193c1f;}class _0xc97cad extends _0x3cac39[_0x23e0a9(0x4b1)]{constructor(){const _0x2eab2a=_0x23e0a9;super(...arguments),_0x56bf3b(this,_0x2eab2a(0x280),new _0x2132a7[(_0x2eab2a(0x49e))](null)),_0x56bf3b(this,_0x2eab2a(0x147),this['_collabCursorState$'][_0x2eab2a(0x3a4)]());}[_0x23e0a9(0x3d3)](_0x524a29){const _0xdc3ab5=_0x23e0a9,{unitID:_0x5651c8,memberID:_0x16c26c,textRanges:_0x2a197c}=_0x524a29,_0x53b982=_0x31f9d9(_0x2a197c),_0x54da5b={'unitID':_0x5651c8,'memberID':_0x16c26c,'selection':_0x53b982};this[_0xdc3ab5(0x280)][_0xdc3ab5(0x3c8)](_0x54da5b);}}var _0xddb71f=Object[_0x23e0a9(0x2e3)],_0x53dfd0=Object['getOwnPropertyDescriptor'],_0x38f2d5=(_0x21ece1,_0x29c441,_0xd6c3a6,_0x53bc5c)=>{const _0x813e6d=_0x23e0a9;for(var _0x1ab757=_0x53bc5c>0x1?void 0x0:_0x53bc5c?_0x53dfd0(_0x29c441,_0xd6c3a6):_0x29c441,_0x5477ff=_0x21ece1[_0x813e6d(0x480)]-0x1,_0x57c533;_0x5477ff>=0x0;_0x5477ff--)(_0x57c533=_0x21ece1[_0x5477ff])&&(_0x1ab757=(_0x53bc5c?_0x57c533(_0x29c441,_0xd6c3a6,_0x1ab757):_0x57c533(_0x1ab757))||_0x1ab757);return _0x53bc5c&&_0x1ab757&&_0xddb71f(_0x29c441,_0xd6c3a6,_0x1ab757),_0x1ab757;},_0x42ffbe=(_0x34c379,_0x23d9ec)=>(_0xfa0c4d,_0x163b02)=>_0x23d9ec(_0xfa0c4d,_0x163b02,_0x34c379);let _0x59fe63=class{constructor(_0x4f2483,_0x23f6ce){const _0x137578=_0x23e0a9;this[_0x137578(0x44b)]=_0x4f2483,this[_0x137578(0x374)]=_0x23f6ce;}[_0x23e0a9(0xe0)](_0x4c4de5){const _0x3c1bf0=_0x23e0a9;var _0x2defc0;const _0x254271=this[_0x3c1bf0(0x44b)][_0x3c1bf0(0x1c4)](_0x56b563[_0x3c1bf0(0x3b1)]),_0x2b27e3=(_0x2defc0=_0x254271[_0x3c1bf0(0x4e4)]())!=null?_0x2defc0:[];if(_0x2b27e3[_0x3c1bf0(0x480)]===0x0)return;const _0x419f45=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4c4de5[_0x3c1bf0(0x3c1)],'actions':null,'textRanges':_0x2b27e3}}],_0x515085=this[_0x3c1bf0(0x374)]['transformMutationsWithChangeset'](_0x4c4de5,_0x419f45);if(!_0x42c3cc[_0x3c1bf0(0x496)](_0x515085))throw _0x515085[_0x3c1bf0(0x4a8)];const _0x584695=_0x515085[_0x3c1bf0(0x40a)][0x0][_0x3c1bf0(0x1db)][_0x3c1bf0(0x447)];Array[_0x3c1bf0(0x406)](_0x584695)&&_0x584695[_0x3c1bf0(0x480)]&&_0x254271[_0x3c1bf0(0x2a9)](_0x584695,!0x1);}};_0x59fe63=_0x38f2d5([_0x42ffbe(0x0,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x137)])),_0x42ffbe(0x1,_0x42c3cc['ITransformService'])],_0x59fe63);const _0x21e34f=new Set([_0x52138d['InsertSheetMutation']['id']]);function _0x1e608e(_0x422a36,_0x1895e9,_0x2fccc6,_0x3b8711,_0x5f1def){const _0x8481ea=_0x23e0a9;var _0xf693af,_0x51cd0a,_0x12603a,_0x2a598d;const _0x35baa4=[];for(const _0x489371 of _0x422a36)if(_0x21e34f[_0x8481ea(0x1ad)](_0x489371['id'])){if(_0x35baa4[_0x8481ea(0x480)]>0x0)break;_0x35baa4[_0x8481ea(0xcc)](_0x489371);break;}else _0x35baa4['push'](_0x489371);const _0x530abe=(_0x51cd0a=(_0xf693af=_0x5f1def['getCurrentUser']())==null?void 0x0:_0xf693af[_0x8481ea(0x45c)])!=null?_0x51cd0a:_0x8481ea(0x289),_0x66a904=(_0x2a598d=(_0x12603a=_0x5f1def[_0x8481ea(0x177)]())==null?void 0x0:_0x12603a[_0x8481ea(0x12d)])!=null?_0x2a598d:_0x8481ea(0x289);return{'changeset':{'unitID':_0x1895e9,'type':_0x42c3cc['mapDocumentTypeToUniverType'](_0x2fccc6[_0x8481ea(0x215)](_0x1895e9)),'baseRev':_0x3b8711[_0x8481ea(0x497)](_0x1895e9),'revision':0x0,'userID':_0x530abe,'memberID':_0x66a904,'mutations':_0x35baa4},'pendingMutations':_0x422a36[_0x8481ea(0x4b2)](_0x35baa4[_0x8481ea(0x480)])};}function _0x5a2ac0(_0xe834ac,_0x16ecdd,_0x3a4759,_0x14dd36,_0x1095f4){const _0x3b1faf=_0x23e0a9;var _0xedb385,_0x530410,_0x34cdd8,_0x38c180;const _0x162f3e=[_0xe834ac['reduce']((_0x365837,_0x9acb0a)=>{const _0x34b368=_0x28b7;var _0x455902;const {id:_0x2087c3}=_0x365837,{id:_0x5e1412,type:_0x881ebe}=_0x9acb0a,_0x3db5cf=(_0x455902=_0x365837[_0x34b368(0x1db)])!=null?_0x455902:{'actions':null},_0x145722=_0x9acb0a[_0x34b368(0x1db)];if(_0x2087c3&&_0x2087c3!==_0x5e1412)throw new Error(_0x34b368(0xe2)+_0x2087c3+_0x34b368(0x376)+_0x5e1412+'.');return{..._0x365837,'id':_0x5e1412,'type':_0x881ebe,'params':{'unitId':_0x145722['unitId'],'textRanges':_0x145722['textRanges'],'actions':_0x3cac39[_0x34b368(0x282)][_0x34b368(0x2b7)](_0x3db5cf[_0x34b368(0xf3)],_0x145722['actions'])}};},{})],_0x5e7fa4=(_0x530410=(_0xedb385=_0x1095f4[_0x3b1faf(0x177)]())==null?void 0x0:_0xedb385[_0x3b1faf(0x45c)])!=null?_0x530410:'unknown',_0x22803f=(_0x38c180=(_0x34cdd8=_0x1095f4[_0x3b1faf(0x177)]())==null?void 0x0:_0x34cdd8[_0x3b1faf(0x12d)])!=null?_0x38c180:_0x3b1faf(0x289);return{'changeset':{'unitID':_0x16ecdd,'type':_0x42c3cc[_0x3b1faf(0x2e6)](_0x3a4759['getUnitType'](_0x16ecdd)),'baseRev':_0x14dd36['getCurrentRevOfUnit'](_0x16ecdd),'revision':0x0,'userID':_0x5e7fa4,'memberID':_0x22803f,'mutations':_0x162f3e},'pendingMutations':[]};}const _0x419ee6={'id':_0x52138d['EmptyMutation']['id'],'type':_0x3cac39[_0x23e0a9(0xb5)][_0x23e0a9(0x3a3)],'params':{}};var _0x99ac=Object[_0x23e0a9(0x2e3)],_0x215349=Object[_0x23e0a9(0x4ac)],_0xd3faea=(_0x4fce6e,_0xe58f8f,_0x2ebbf2,_0x416365)=>{for(var _0x42102a=_0x416365>0x1?void 0x0:_0x416365?_0x215349(_0xe58f8f,_0x2ebbf2):_0xe58f8f,_0x3ae837=_0x4fce6e['length']-0x1,_0x1e94b8;_0x3ae837>=0x0;_0x3ae837--)(_0x1e94b8=_0x4fce6e[_0x3ae837])&&(_0x42102a=(_0x416365?_0x1e94b8(_0xe58f8f,_0x2ebbf2,_0x42102a):_0x1e94b8(_0x42102a))||_0x42102a);return _0x416365&&_0x42102a&&_0x99ac(_0xe58f8f,_0x2ebbf2,_0x42102a),_0x42102a;},_0x5c862f=(_0x346914,_0x17e821)=>(_0x55bae7,_0x5a8116)=>_0x17e821(_0x55bae7,_0x5a8116,_0x346914),_0x446eef=(_0x3523ad=>(_0x3523ad[_0x23e0a9(0x232)]='not_collab',_0x3523ad['SYNCED']=_0x23e0a9(0x1f2),_0x3523ad[_0x23e0a9(0x1a2)]=_0x23e0a9(0x2d2),_0x3523ad['AWAITING']=_0x23e0a9(0x203),_0x3523ad[_0x23e0a9(0xd2)]=_0x23e0a9(0x214),_0x3523ad['FETCH_MISS']='fetch_missing',_0x3523ad['CONFLICT']='conflict',_0x3523ad['OFFLINE']=_0x23e0a9(0x2a7),_0x3523ad))(_0x446eef||{});class _0x3c161a{constructor(_0x496cb7,_0x211259,_0x4b6a1a,_0x12aa5e,_0x588d6f,_0x55781e,_0x19e998,_0x1779d3,_0xa0d147){const _0x215da7=_0x23e0a9;_0x56bf3b(this,_0x215da7(0x2bf),null),_0x56bf3b(this,_0x215da7(0x245),[]),(this['unitID']=_0x496cb7,this[_0x215da7(0x29e)]=_0x211259,this[_0x215da7(0x17f)]=_0x588d6f,this[_0x215da7(0x31d)]=_0x55781e,this[_0x215da7(0x409)]=_0x19e998,this[_0x215da7(0x3cd)]=_0x1779d3,this[_0x215da7(0x3a8)]=_0xa0d147,this[_0x215da7(0x2bf)]=_0x4b6a1a,this[_0x215da7(0x245)]=_0x12aa5e);}[_0x23e0a9(0x418)](_0x3bed38){const _0x27de55=_0x23e0a9,_0x199aba=this[_0x27de55(0x3cd)][_0x27de55(0x497)](this['unitID']);return _0x3bed38[_0x27de55(0x4a0)]>_0x199aba+0x1?(this[_0x27de55(0x17f)]['onMissingChangesets']({'from':_0x199aba,'to':_0x3bed38[_0x27de55(0x4a0)]-0x1}),!0x0):!0x1;}[_0x23e0a9(0x128)](_0x48d9e1){const _0x287048=_0x23e0a9;this[_0x287048(0x409)][_0x287048(0x49c)](this[_0x287048(0x3c1)],_0x48d9e1);}['_transformSelections'](_0x187e08){const _0x4b3bab=_0x23e0a9;var _0x28a775,_0x4fb3e0;(_0x4fb3e0=(_0x28a775=this[_0x4b3bab(0x17f)])[_0x4b3bab(0x415)])==null||_0x4fb3e0[_0x4b3bab(0x477)](_0x28a775,_0x187e08);}['_transformIMECache'](_0x459cdd){const _0x1be2d6=_0x23e0a9;var _0x431959,_0xedcc9;return(_0xedcc9=(_0x431959=this[_0x1be2d6(0x17f)])['onTransformIME'])==null?void 0x0:_0xedcc9[_0x1be2d6(0x477)](_0x431959,_0x459cdd);}[_0x23e0a9(0x207)](_0x40e1a7){const _0x5ba862=_0x23e0a9;var _0x117229,_0x4bcafa,_0xd3a304;return(_0xd3a304=(_0x4bcafa=(_0x117229=this[_0x5ba862(0x17f)])[_0x5ba862(0x4e3)])==null?void 0x0:_0x4bcafa[_0x5ba862(0x477)](_0x117229,_0x40e1a7))!=null?_0xd3a304:_0x40e1a7;}[_0x23e0a9(0x434)](_0x2c026a){const _0x1d5ef2=_0x23e0a9;var _0x442819,_0x379c9e;if(this[_0x1d5ef2(0x29e)]===_0x36e0e9[_0x1d5ef2(0x28c)]){const {unitID:_0x53d6be,mutations:_0x23d67f,memberID:_0x325b96}=_0x2c026a,_0x274f64=_0x23d67f[0x0][_0x1d5ef2(0x1db)][_0x1d5ef2(0x447)];Array[_0x1d5ef2(0x406)](_0x274f64)&&_0x274f64[_0x1d5ef2(0x480)]>0x0&&((_0x379c9e=(_0x442819=this[_0x1d5ef2(0x17f)])[_0x1d5ef2(0x285)])==null||_0x379c9e[_0x1d5ef2(0x477)](_0x442819,{'unitID':_0x53d6be,'memberID':_0x325b96,'textRanges':_0x274f64}));}}[_0x23e0a9(0x31e)](){const _0x360f1b=_0x23e0a9;this[_0x360f1b(0x3a8)][_0x360f1b(0x2a1)](this['unitID'],this['type'],this[_0x360f1b(0x2bf)],this['_pendingMutations']);}[_0x23e0a9(0x478)](){const _0x57d298=_0x23e0a9;return this[_0x57d298(0x3cd)][_0x57d298(0x497)](this[_0x57d298(0x3c1)]);}[_0x23e0a9(0x124)](){const _0x5e2ea6=_0x23e0a9;this[_0x5e2ea6(0x3cd)]['incrementRevOfUnit'](this[_0x5e2ea6(0x3c1)]);}[_0x23e0a9(0x311)](_0x2e76bd){const _0x4d91f7=_0x23e0a9;var _0xfe08a;const _0x291e30=this['_transformRemoteChangesetByIMECache'](_0x2e76bd),_0x25ce08=_0x3cac39[_0x4d91f7(0x378)](_0x291e30[_0x4d91f7(0x100)],this[_0x4d91f7(0x31d)],{'fromCollab':!0x0});if(!_0x25ce08[_0x4d91f7(0x355)])throw _0x25ce08[_0x4d91f7(0x4a8)]instanceof Error?_0x25ce08['error']:new Error((_0xfe08a=_0x25ce08[_0x4d91f7(0x4a8)])!=null?_0xfe08a:_0x4d91f7(0x178));this[_0x4d91f7(0x335)](_0x291e30),this['_transformUndoredo'](_0x2e76bd),this['_transformSelections'](_0x291e30),this[_0x4d91f7(0x434)](_0x291e30),this[_0x4d91f7(0x124)]();}}let _0x5a7206=class extends _0x3c161a{constructor(_0x3581de,_0x5e5a5d,_0x1abd7b,_0x5a933d,_0xd1f6e7,_0x15c4f0,_0x1f868a,_0x3e84c4,_0x105b5c,_0x1c91d6){const _0x4a7b18=_0x23e0a9;super(_0x3581de,_0x5e5a5d,null,[],_0x1abd7b,_0x3e84c4,_0x1f868a,_0x5a933d,_0xd1f6e7),_0x56bf3b(this,_0x4a7b18(0x39f),_0x4a7b18(0x1f2)),(this[_0x4a7b18(0x44b)]=_0x15c4f0,this[_0x4a7b18(0x110)]=_0x105b5c,this[_0x4a7b18(0x374)]=_0x1c91d6);}['appendMutation'](_0x5c1ae2){const _0x48d899=_0x23e0a9,_0x18b410=this[_0x48d899(0x44b)]['createInstance'](_0x3119f0,this[_0x48d899(0x3c1)],this[_0x48d899(0x29e)],[_0x5c1ae2],this[_0x48d899(0x17f)]);return _0x18b410[_0x48d899(0xff)](),_0x18b410[_0x48d899(0x31e)](),_0x18b410;}['onRemoteChangeset'](_0x42a7a3){const _0x51d8ff=_0x23e0a9;if(this[_0x51d8ff(0x418)](_0x42a7a3))return this[_0x51d8ff(0x44b)]['createInstance'](_0x477030,this[_0x51d8ff(0x3c1)],this[_0x51d8ff(0x29e)],null,[],null,[_0x42a7a3],this[_0x51d8ff(0x17f)]);try{const _0x2cfd27=this[_0x51d8ff(0x374)][_0x51d8ff(0x29d)](_0x42a7a3,[_0x419ee6]);if(_0x42c3cc['isTransformMutationsWithChangesetSuccess'](_0x2cfd27)){const {c1Prime:_0x389a7f}=_0x2cfd27;return this[_0x51d8ff(0x311)](_0x389a7f),this;}throw _0x2cfd27[_0x51d8ff(0x4a8)];}catch(_0x3e9bac){return this[_0x51d8ff(0x110)]['error'](_0x3e9bac),this[_0x51d8ff(0x127)](!0x1);}}['_onConflict'](_0x4f9e60){const _0x5143fa=_0x23e0a9;return this[_0x5143fa(0x44b)][_0x5143fa(0x4d0)](_0x466a98,this['unitID'],this[_0x5143fa(0x29e)],null,[],this[_0x5143fa(0x17f)],_0x4f9e60);}[_0x23e0a9(0xcd)](){const _0x324460=_0x23e0a9;throw new Error(_0x324460(0xf9));}[_0x23e0a9(0x143)](){const _0x3c56d0=_0x23e0a9;throw new Error(_0x3c56d0(0x2b2));}[_0x23e0a9(0x172)](){const _0x35418b=_0x23e0a9;return this['_injector'][_0x35418b(0x4d0)](_0x1fda3e,this['unitID'],this[_0x35418b(0x29e)],null,[],this[_0x35418b(0x17f)]);}['toggleOnline'](){return this;}[_0x23e0a9(0x356)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x23e0a9(0x22c)](){const _0x5e5927=_0x23e0a9,_0x24c39a=this[_0x5e5927(0x3cd)][_0x5e5927(0x497)](this[_0x5e5927(0x3c1)]);return this[_0x5e5927(0x17f)][_0x5e5927(0x2df)]({'from':_0x24c39a,'to':0x0}),this[_0x5e5927(0x44b)][_0x5e5927(0x4d0)](_0x477030,this['unitID'],this['type'],null,[],null,[],this[_0x5e5927(0x17f)]);}};_0x5a7206=_0xd3faea([_0x5c862f(0x3,_0x3cac39[_0x23e0a9(0xce)](_0x42c3cc[_0x23e0a9(0xc8)])),_0x5c862f(0x4,_0x3cac39[_0x23e0a9(0xce)](_0x78d65c[_0x23e0a9(0x494)])),_0x5c862f(0x5,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x137)])),_0x5c862f(0x6,_0x3cac39[_0x23e0a9(0x30d)]),_0x5c862f(0x7,_0x3cac39[_0x23e0a9(0x368)]),_0x5c862f(0x8,_0x3cac39[_0x23e0a9(0x2b9)]),_0x5c862f(0x9,_0x42c3cc[_0x23e0a9(0x4c6)])],_0x5a7206);let _0x3119f0=class extends _0x3c161a{constructor(_0x27e822,_0x5d36ba,_0x5d325b,_0x4087f7,_0x539c20,_0x19a6cf,_0x3e7f9c,_0x3509fc,_0x362382,_0x514b05,_0x5930f4,_0x228864,_0x153dc4,_0x147ad8){const _0x1981cb=_0x23e0a9;super(_0x27e822,_0x5d36ba,null,_0x5d325b,_0x4087f7,_0x514b05,_0x147ad8,_0x19a6cf,_0x3e7f9c),_0x56bf3b(this,_0x1981cb(0x39f),'pending'),_0x56bf3b(this,_0x1981cb(0x2c0),null),_0x56bf3b(this,_0x1981cb(0x123),null),(this[_0x1981cb(0x44b)]=_0x539c20,this['_memberService']=_0x3509fc,this['_logService']=_0x362382,this[_0x1981cb(0x259)]=_0x5930f4,this[_0x1981cb(0x374)]=_0x228864,this[_0x1981cb(0x3c0)]=_0x153dc4);}['appendMutation'](_0x5316d8){const _0x48344e=_0x23e0a9;return this[_0x48344e(0x245)][_0x48344e(0xcc)](_0x5316d8),this[_0x48344e(0x31e)](),this;}[_0x23e0a9(0x4b5)](_0x43028e){const _0x1fc985=_0x23e0a9;if(this[_0x1fc985(0x418)](_0x43028e))return this[_0x1fc985(0x2f2)](),this[_0x1fc985(0x44b)]['createInstance'](_0x477030,this['unitID'],this[_0x1fc985(0x29e)],null,this['_pendingMutations'],null,[_0x43028e],this[_0x1fc985(0x17f)]);try{const _0x56b78f=this[_0x1fc985(0x374)][_0x1fc985(0x29d)](_0x43028e,this[_0x1fc985(0x245)]);if(_0x42c3cc['isTransformMutationsWithChangesetSuccess'](_0x56b78f)){const {c1Prime:_0x152b86,m2Prime:_0xcc1755}=_0x56b78f;this[_0x1fc985(0x311)](_0x152b86);const _0x330d72=this['_injector'][_0x1fc985(0x4d0)](_0x3119f0,this['unitID'],this[_0x1fc985(0x29e)],_0xcc1755,this[_0x1fc985(0x17f)]);return this[_0x1fc985(0x2f2)](),_0x330d72['_schedule'](this[_0x1fc985(0x2c0)]?Math[_0x1fc985(0xb9)](0x0,new Date()[_0x1fc985(0x321)]()-this['_scheduleTimestamp']):this[_0x1fc985(0x367)]()),_0x330d72;}throw _0x56b78f[_0x1fc985(0x4a8)];}catch(_0x222617){return this[_0x1fc985(0x110)][_0x1fc985(0x4a8)](_0x222617),this[_0x1fc985(0x127)](!0x1);}}[_0x23e0a9(0xcd)](){const _0x1d5730=_0x23e0a9;throw new Error(_0x1d5730(0x460));}[_0x23e0a9(0x143)](){const _0x3f356d=_0x23e0a9;throw new Error(_0x3f356d(0x1de));}[_0x23e0a9(0x172)](){const _0x5588f6=_0x23e0a9;return this[_0x5588f6(0x2f2)](),this['_injector'][_0x5588f6(0x4d0)](_0x1fda3e,this[_0x5588f6(0x3c1)],this[_0x5588f6(0x29e)],null,this['_pendingMutations'],this['_handler']);}[_0x23e0a9(0x498)](){return this;}[_0x23e0a9(0xff)](_0xe6931d){const _0x44dc97=_0x23e0a9,_0x24b0db=_0xe6931d!=null?_0xe6931d:this[_0x44dc97(0x367)]();this[_0x44dc97(0x2c0)]=new Date()[_0x44dc97(0x321)](),this[_0x44dc97(0x123)]=window[_0x44dc97(0x41d)](()=>{const _0x3d182e=_0x44dc97;this['_clearScheduledTask']();let _0x2b8d6f=null;switch(this['type']){case _0x36e0e9[_0x3d182e(0xeb)]:{_0x2b8d6f=_0x1e608e(this[_0x3d182e(0x245)],this['unitID'],this[_0x3d182e(0x3c0)],this['_revisionService'],this[_0x3d182e(0x4be)]);break;}case _0x36e0e9[_0x3d182e(0x28c)]:{this[_0x3d182e(0x245)][_0x3d182e(0x34e)](_0x2154f3=>_0x2154f3['id']===_0x56b563[_0x3d182e(0x488)]['id'])?_0x2b8d6f=_0x5a2ac0(this[_0x3d182e(0x245)],this['unitID'],this['_univerInstanceService'],this[_0x3d182e(0x3cd)],this[_0x3d182e(0x4be)]):_0x2b8d6f=_0x1e608e(this['_pendingMutations'],this[_0x3d182e(0x3c1)],this[_0x3d182e(0x3c0)],this[_0x3d182e(0x3cd)],this[_0x3d182e(0x4be)]);break;}default:throw new Error(_0x3d182e(0x1bc)+this[_0x3d182e(0x29e)]+_0x3d182e(0x216));}const {changeset:_0x1ce1c3,pendingMutations:_0x4f98f6}=_0x2b8d6f;this[_0x3d182e(0x17f)][_0x3d182e(0x292)](_0x1ce1c3);const _0x34df36=_0x4f98f6[_0x3d182e(0x480)]?this['_injector'][_0x3d182e(0x4d0)](_0x2c53e4,this['unitID'],this[_0x3d182e(0x29e)],_0x1ce1c3,_0x4f98f6,this[_0x3d182e(0x17f)]):this[_0x3d182e(0x44b)][_0x3d182e(0x4d0)](_0x32d5f3,this[_0x3d182e(0x3c1)],this[_0x3d182e(0x29e)],_0x1ce1c3,this[_0x3d182e(0x17f)]);_0x34df36[_0x3d182e(0x31e)](),this[_0x3d182e(0x17f)]['onStateChange'](this,_0x34df36);},_0x24b0db);}[_0x23e0a9(0x367)](){const _0x4b6fc7=_0x23e0a9;var _0x4656c8;const _0xc39b59=this[_0x4b6fc7(0x259)]['getConfig'](_0x14d460);return(_0x4656c8=_0xc39b59==null?void 0x0:_0xc39b59[_0x4b6fc7(0x148)])!=null?_0x4656c8:0x7d0;}[_0x23e0a9(0x356)](){const _0xaf27e3=_0x23e0a9;throw new Error(_0xaf27e3(0x1e5));}['_clearScheduledTask'](){const _0x2cd7ed=_0x23e0a9;this[_0x2cd7ed(0x123)]!=null&&(clearTimeout(this[_0x2cd7ed(0x123)]),this[_0x2cd7ed(0x123)]=null);}['_onConflict'](_0xb996bf){const _0x24ccf9=_0x23e0a9;return this['_clearScheduledTask'](),this[_0x24ccf9(0x44b)][_0x24ccf9(0x4d0)](_0x466a98,this[_0x24ccf9(0x3c1)],this['type'],null,this[_0x24ccf9(0x245)],this[_0x24ccf9(0x17f)],_0xb996bf);}};_0x3119f0=_0xd3faea([_0x5c862f(0x4,_0x3cac39['Inject'](_0x3cac39[_0x23e0a9(0x137)])),_0x5c862f(0x5,_0x3cac39['Inject'](_0x42c3cc['RevisionService'])),_0x5c862f(0x6,_0x3cac39['Inject'](_0x78d65c[_0x23e0a9(0x494)])),_0x5c862f(0x7,_0x3cac39['Inject'](_0x2b8623)),_0x5c862f(0x8,_0x3cac39[_0x23e0a9(0x2b9)]),_0x5c862f(0x9,_0x3cac39[_0x23e0a9(0x368)]),_0x5c862f(0xa,_0x3cac39[_0x23e0a9(0x1fb)]),_0x5c862f(0xb,_0x42c3cc['ITransformService']),_0x5c862f(0xc,_0x3cac39[_0x23e0a9(0x3ef)]),_0x5c862f(0xd,_0x3cac39[_0x23e0a9(0x30d)])],_0x3119f0);let _0x32d5f3=class extends _0x3c161a{constructor(_0x46052d,_0x456cb1,_0x51f2af,_0x12b253,_0x290899,_0x181b32,_0x50d8dd,_0x59ef26,_0x49aa24,_0x25d62b,_0x52290c){const _0x28bc5d=_0x23e0a9;super(_0x46052d,_0x456cb1,_0x51f2af,[],_0x12b253,_0x59ef26,_0x52290c,_0x181b32,_0x50d8dd),_0x56bf3b(this,_0x28bc5d(0x39f),'awaiting'),(this[_0x28bc5d(0x44b)]=_0x290899,this[_0x28bc5d(0x110)]=_0x49aa24,this['_transformService']=_0x25d62b);}[_0x23e0a9(0x13c)](_0x5d1f85){const _0x4673d3=_0x23e0a9,_0x3ddaff=this[_0x4673d3(0x44b)][_0x4673d3(0x4d0)](_0x2c53e4,this[_0x4673d3(0x3c1)],this['type'],this[_0x4673d3(0x2bf)],[_0x5d1f85],this[_0x4673d3(0x17f)]);return _0x3ddaff['_updateLocalCache'](),_0x3ddaff;}['onRemoteChangeset'](_0x3f75bd){const _0x23c69f=_0x23e0a9;if(this[_0x23c69f(0x418)](_0x3f75bd))return this['_injector'][_0x23c69f(0x4d0)](_0x477030,this[_0x23c69f(0x3c1)],this[_0x23c69f(0x29e)],this[_0x23c69f(0x2bf)],[],null,[_0x3f75bd],this[_0x23c69f(0x17f)]);try{const _0x4fc17c=this['_transformService'][_0x23c69f(0x442)]([_0x3f75bd],[this[_0x23c69f(0x2bf)]],!0x1);if(_0x42c3cc[_0x23c69f(0x36a)](_0x4fc17c)){const {c1Prime:_0x1de173,c2Prime:_0x2cc172}=_0x4fc17c;this[_0x23c69f(0x311)](_0x1de173[0x0]),_0x2cc172[0x0][_0x23c69f(0x492)]=this[_0x23c69f(0x478)]();const _0x59512a=this[_0x23c69f(0x44b)][_0x23c69f(0x4d0)](_0x32d5f3,this['unitID'],this[_0x23c69f(0x29e)],_0x2cc172[0x0],this[_0x23c69f(0x17f)]);return _0x59512a[_0x23c69f(0x31e)](),_0x59512a;}return this[_0x23c69f(0x127)](!0x1);}catch(_0x38bf43){return this[_0x23c69f(0x110)]['error'](_0x38bf43),this[_0x23c69f(0x127)](!0x1);}}[_0x23e0a9(0xcd)](_0x47cba7){const _0x11eece=_0x23e0a9,_0x30ff5d=this[_0x11eece(0x3cd)][_0x11eece(0x497)](this['unitID']);if(_0x47cba7['revision']<_0x30ff5d-0x1)return this;if(this[_0x11eece(0x418)](_0x47cba7))return this[_0x11eece(0x44b)][_0x11eece(0x4d0)](_0x477030,this[_0x11eece(0x3c1)],this[_0x11eece(0x29e)],null,[],this[_0x11eece(0x2bf)],[],this['_handler']);this[_0x11eece(0x124)]();const _0x23ac0f=this[_0x11eece(0x44b)]['createInstance'](_0x5a7206,this['unitID'],this['type'],this[_0x11eece(0x17f)]);return _0x23ac0f[_0x11eece(0x31e)](),_0x23ac0f;}[_0x23e0a9(0x143)](_0x4121a0){const _0x1ff036=_0x23e0a9;return this[_0x1ff036(0x127)](!!(_0x4121a0!=null&&_0x4121a0[_0x1ff036(0x166)]));}[_0x23e0a9(0x172)](){const _0x2b530f=_0x23e0a9;return this[_0x2b530f(0x44b)][_0x2b530f(0x4d0)](_0x1fda3e,this['unitID'],this[_0x2b530f(0x29e)],this[_0x2b530f(0x2bf)],[],this[_0x2b530f(0x17f)]);}['toggleOnline'](){return this;}[_0x23e0a9(0x356)](){const _0x137be5=_0x23e0a9;this['_handler']['onSendChangeset'](this[_0x137be5(0x2bf)]);}[_0x23e0a9(0x127)](_0x3f43ce){const _0xb61b11=_0x23e0a9;return this[_0xb61b11(0x44b)][_0xb61b11(0x4d0)](_0x466a98,this[_0xb61b11(0x3c1)],this['type'],this[_0xb61b11(0x2bf)],[],this['_handler'],_0x3f43ce);}};_0x32d5f3=_0xd3faea([_0x5c862f(0x4,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x137)])),_0x5c862f(0x5,_0x3cac39['Inject'](_0x42c3cc[_0x23e0a9(0xc8)])),_0x5c862f(0x6,_0x3cac39[_0x23e0a9(0xce)](_0x78d65c['LocalCacheService'])),_0x5c862f(0x7,_0x3cac39[_0x23e0a9(0x368)]),_0x5c862f(0x8,_0x3cac39[_0x23e0a9(0x2b9)]),_0x5c862f(0x9,_0x42c3cc[_0x23e0a9(0x4c6)]),_0x5c862f(0xa,_0x3cac39['IUndoRedoService'])],_0x32d5f3);let _0x2c53e4=class extends _0x3c161a{constructor(_0x243908,_0x556011,_0x3cd3d3,_0x24a7cf,_0x5cac94,_0x4670e2,_0x2768a6,_0x5346a2,_0x14b03f,_0x705af,_0x2dfe77,_0x2c900d){const _0x40ccd0=_0x23e0a9;super(_0x243908,_0x556011,_0x3cd3d3,_0x24a7cf,_0x5cac94,_0x14b03f,_0x2c900d,_0x2768a6,_0x5346a2),_0x56bf3b(this,_0x40ccd0(0x39f),'awaiting_with_pending'),(this[_0x40ccd0(0x44b)]=_0x4670e2,this[_0x40ccd0(0x110)]=_0x705af,this[_0x40ccd0(0x374)]=_0x2dfe77);}[_0x23e0a9(0x13c)](_0x192fbc){const _0x5c45c1=_0x23e0a9;return this['_pendingMutations'][_0x5c45c1(0xcc)](_0x192fbc),this;}[_0x23e0a9(0x4b5)](_0x540996){const _0x9801f6=_0x23e0a9;if(this[_0x9801f6(0x418)](_0x540996))return this[_0x9801f6(0x44b)][_0x9801f6(0x4d0)](_0x477030,this[_0x9801f6(0x3c1)],this[_0x9801f6(0x29e)],this[_0x9801f6(0x2bf)],this[_0x9801f6(0x245)],null,[_0x540996],this[_0x9801f6(0x17f)]);try{const _0x2235eb=this[_0x9801f6(0x374)]['transformChangesets']([_0x540996],[this[_0x9801f6(0x2bf)]],!0x1);if(_0x42c3cc[_0x9801f6(0x36a)](_0x2235eb)){const {c1Prime:_0x391791,c2Prime:_0xbd04f3}=_0x2235eb,_0x441a2e=this[_0x9801f6(0x374)][_0x9801f6(0x29d)](_0x391791[0x0],this[_0x9801f6(0x245)]);if(_0x42c3cc[_0x9801f6(0x496)](_0x441a2e)){const {c1Prime:_0x83cc01,m2Prime:_0x4439d7}=_0x441a2e;return this['_executeRemoteChangeset'](_0x83cc01),_0xbd04f3[0x0][_0x9801f6(0x492)]=this['_getCurrentRevision'](),this[_0x9801f6(0x44b)]['createInstance'](_0x2c53e4,this['unitID'],this['type'],_0xbd04f3[0x0],_0x4439d7,this[_0x9801f6(0x17f)]);}throw _0x441a2e[_0x9801f6(0x4a8)];}throw _0x2235eb[_0x9801f6(0x4a8)];}catch(_0x208469){return this['_logService']['error'](_0x208469),this['_onConflict'](!0x1);}}[_0x23e0a9(0xcd)](_0x42a7ea){const _0x27507e=_0x23e0a9;if(this[_0x27507e(0x418)](_0x42a7ea))return this[_0x27507e(0x44b)]['createInstance'](_0x477030,this[_0x27507e(0x3c1)],this['type'],null,this['_pendingMutations'],this[_0x27507e(0x2bf)],[],this[_0x27507e(0x17f)]);this['_incrementRevisionNumber']();const _0x271ae1=this[_0x27507e(0x44b)][_0x27507e(0x4d0)](_0x3119f0,this[_0x27507e(0x3c1)],this[_0x27507e(0x29e)],this[_0x27507e(0x245)],this[_0x27507e(0x17f)]);return _0x271ae1['_schedule'](),_0x271ae1[_0x27507e(0x31e)](),_0x271ae1;}[_0x23e0a9(0x143)](_0x5500ec){const _0x43716c=_0x23e0a9;return this[_0x43716c(0x127)](!!(_0x5500ec!=null&&_0x5500ec[_0x43716c(0x166)]));}[_0x23e0a9(0x172)](){const _0xbf3f7a=_0x23e0a9;return this[_0xbf3f7a(0x44b)][_0xbf3f7a(0x4d0)](_0x1fda3e,this[_0xbf3f7a(0x3c1)],this[_0xbf3f7a(0x29e)],this[_0xbf3f7a(0x2bf)],this['_pendingMutations'],this['_handler']);}[_0x23e0a9(0x498)](){return this;}[_0x23e0a9(0x356)](){const _0x39c99d=_0x23e0a9;this[_0x39c99d(0x17f)][_0x39c99d(0x292)](this[_0x39c99d(0x2bf)]);}[_0x23e0a9(0x127)](_0xaf032e){const _0x2ad6ee=_0x23e0a9;return this[_0x2ad6ee(0x44b)][_0x2ad6ee(0x4d0)](_0x466a98,this[_0x2ad6ee(0x3c1)],this[_0x2ad6ee(0x29e)],null,this[_0x2ad6ee(0x245)],this['_handler'],_0xaf032e);}};_0x2c53e4=_0xd3faea([_0x5c862f(0x5,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x137)])),_0x5c862f(0x6,_0x3cac39[_0x23e0a9(0xce)](_0x42c3cc[_0x23e0a9(0xc8)])),_0x5c862f(0x7,_0x3cac39[_0x23e0a9(0xce)](_0x78d65c[_0x23e0a9(0x494)])),_0x5c862f(0x8,_0x3cac39[_0x23e0a9(0x368)]),_0x5c862f(0x9,_0x3cac39[_0x23e0a9(0x2b9)]),_0x5c862f(0xa,_0x42c3cc['ITransformService']),_0x5c862f(0xb,_0x3cac39[_0x23e0a9(0x30d)])],_0x2c53e4);let _0x466a98=class extends _0x3c161a{constructor(_0x1d9f5,_0x180883,_0x423149,_0x5ae3e2,_0x5a8dd5,_0x2c8493=!0x1,_0x2528c3,_0x515b0e,_0x59a7cb,_0x2c5773,_0x418856,_0x718d1e,_0x136055){const _0x57345d=_0x23e0a9;super(_0x1d9f5,_0x180883,_0x423149,_0x5ae3e2,_0x5a8dd5,_0x515b0e,_0x59a7cb,_0x418856,_0x2c5773),_0x56bf3b(this,_0x57345d(0x39f),_0x57345d(0x116)),(this['_isPermissionRej']=_0x2c8493,this[_0x57345d(0x1ff)]=_0x2528c3,this['_localeService']=_0x718d1e,this[_0x57345d(0x26b)]=_0x136055,this[_0x57345d(0x2f0)](),this[_0x57345d(0x170)](),this['_disableEditing']());}['appendMutation'](){return this;}[_0x23e0a9(0x4b5)](){return this;}[_0x23e0a9(0xcd)](){return this;}[_0x23e0a9(0x143)](){return this;}[_0x23e0a9(0x172)](){return this;}[_0x23e0a9(0x498)](){return this;}[_0x23e0a9(0x356)](){const _0xd32e2d=_0x23e0a9;throw new Error(_0xd32e2d(0x281));}['_clearLocalCache'](){const _0x1e1c4b=_0x23e0a9;this[_0x1e1c4b(0x3a8)][_0x1e1c4b(0x2a1)](this['unitID'],this[_0x1e1c4b(0x29e)],null,[]);}[_0x23e0a9(0x2f0)](){const _0x53dfc9=_0x23e0a9;this[_0x53dfc9(0x132)]?this[_0x53dfc9(0x26b)][_0x53dfc9(0x1d2)]({'title':this['_localeService']['t'](_0x53dfc9(0x33c)),'content':this[_0x53dfc9(0x452)]['t'](_0x53dfc9(0x13d)),'type':_0x53dfc9(0x4a8),'duration':0x0}):this[_0x53dfc9(0x26b)][_0x53dfc9(0x1d2)]({'title':this[_0x53dfc9(0x452)]['t'](_0x53dfc9(0x3af)),'content':this['_localeService']['t'](_0x53dfc9(0x3cc)),'type':_0x53dfc9(0x4a8),'duration':0x0});}['_disableEditing'](){const _0x593b05=_0x23e0a9;this[_0x593b05(0x1ff)][_0x593b05(0x1a4)](new _0x52138d['WorkbookEditablePermission'](this[_0x593b05(0x3c1)])['id'],!0x1);}};_0x466a98=_0xd3faea([_0x5c862f(0x6,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0xaf)])),_0x5c862f(0x7,_0x3cac39[_0x23e0a9(0x368)]),_0x5c862f(0x8,_0x3cac39['IUndoRedoService']),_0x5c862f(0x9,_0x3cac39['Inject'](_0x78d65c[_0x23e0a9(0x494)])),_0x5c862f(0xa,_0x3cac39[_0x23e0a9(0xce)](_0x42c3cc[_0x23e0a9(0xc8)])),_0x5c862f(0xb,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x3b5)])),_0x5c862f(0xc,_0x4b9a33[_0x23e0a9(0xfe)])],_0x466a98);let _0x1fda3e=class extends _0x3c161a{constructor(_0x4163f5,_0xa29ade,_0x412ba4,_0x3e25d1,_0x5bccd6,_0x8af2fd,_0x574f4a,_0x1d4e18,_0x5f3252,_0x3e6420){const _0x48664b=_0x23e0a9;super(_0x4163f5,_0xa29ade,_0x412ba4,_0x3e25d1,_0x5bccd6,_0x5f3252,_0x3e6420,_0x574f4a,_0x1d4e18),_0x56bf3b(this,_0x48664b(0x39f),_0x48664b(0x2a7)),this[_0x48664b(0x44b)]=_0x8af2fd;}[_0x23e0a9(0x13c)](_0x3a4903){const _0x493b57=_0x23e0a9;return this[_0x493b57(0x245)][_0x493b57(0xcc)](_0x3a4903),this[_0x493b57(0x31e)](),this;}[_0x23e0a9(0x4b5)](_0x522692){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x23e0a9(0xcd)](){const _0x104443=_0x23e0a9;throw new Error(_0x104443(0x3ea));}[_0x23e0a9(0x143)](){const _0x3eb05d=_0x23e0a9;throw new Error(_0x3eb05d(0x33e));}[_0x23e0a9(0x172)](){return this;}[_0x23e0a9(0x498)](){const _0x369234=_0x23e0a9,{_injector:_0xa36178,_pendingMutations:_0x392f4e,_awaitingChangeset:_0x5d4c11,unitID:_0xf1330d,_handler:_0x17e27a,type:_0x5236cb}=this,_0x42d80a=_0x496d3e(_0xa36178,_0xf1330d,_0x5236cb,_0x5d4c11,_0x392f4e,_0x17e27a);return _0x42d80a instanceof _0x3119f0?_0x42d80a[_0x369234(0xff)]():(_0x42d80a instanceof _0x2c53e4||_0x42d80a instanceof _0x32d5f3)&&_0x42d80a[_0x369234(0x356)](),_0x42d80a;}[_0x23e0a9(0x356)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};_0x1fda3e=_0xd3faea([_0x5c862f(0x5,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x137)])),_0x5c862f(0x6,_0x3cac39[_0x23e0a9(0xce)](_0x42c3cc[_0x23e0a9(0xc8)])),_0x5c862f(0x7,_0x3cac39['Inject'](_0x78d65c[_0x23e0a9(0x494)])),_0x5c862f(0x8,_0x3cac39['ICommandService']),_0x5c862f(0x9,_0x3cac39['IUndoRedoService'])],_0x1fda3e);let _0x477030=class extends _0x3c161a{constructor(_0x41217c,_0x54b82e,_0x4926df,_0x5ddd60,_0x9e569d,_0x459b48,_0x3d4681,_0x4fb605,_0xdb5fbe,_0x194581,_0x58207b,_0x26d990,_0x1bcc47,_0x5ed8d4){const _0x169234=_0x23e0a9;super(_0x41217c,_0x54b82e,_0x4926df,_0x5ddd60,_0x3d4681,_0x26d990,_0x1bcc47,_0xdb5fbe,_0x194581),_0x56bf3b(this,'status','fetch_missing'),(this[_0x169234(0x26a)]=_0x9e569d,this[_0x169234(0x3c4)]=_0x459b48,this['_injector']=_0x4fb605,this['_logService']=_0x58207b,this[_0x169234(0x374)]=_0x5ed8d4);}[_0x23e0a9(0xba)](_0x1cf2b8){const _0x222c53=_0x23e0a9;try{const _0x3e4d9d=[..._0x1cf2b8,...this[_0x222c53(0x3c4)]],_0x56c51d=[this['_awaitingChangeset']||this[_0x222c53(0x26a)]]['filter'](_0x3c92d1=>!!_0x3c92d1);let _0x22eebf,_0x50ac54;if(_0x56c51d[_0x222c53(0x480)]){const _0x6fb584=this['_transformService'][_0x222c53(0x442)](_0x3e4d9d,_0x56c51d,!0x1);if(!_0x42c3cc[_0x222c53(0x36a)](_0x6fb584))throw _0x6fb584[_0x222c53(0x4a8)];_0x22eebf=_0x6fb584[_0x222c53(0x200)],_0x50ac54=_0x6fb584[_0x222c53(0x32b)];}else _0x22eebf=_0x3e4d9d,_0x50ac54=[];let _0x2b84c2=this[_0x222c53(0x245)];_0x22eebf['forEach'](_0x35629d=>{const _0x43cf0b=_0x222c53;let _0x15a311;if(_0x2b84c2['length']){const _0x495829=this[_0x43cf0b(0x374)][_0x43cf0b(0x29d)](_0x35629d,_0x2b84c2);if(!_0x42c3cc[_0x43cf0b(0x496)](_0x495829))throw _0x495829[_0x43cf0b(0x4a8)];_0x15a311=_0x495829['c1Prime'],_0x2b84c2=_0x495829[_0x43cf0b(0x40a)];}else _0x15a311=_0x35629d;this['_executeRemoteChangeset'](_0x15a311);}),this['_acknowledgedAwaitingChangeset']&&this[_0x222c53(0x124)](),this[_0x222c53(0x2bf)]&&_0x50ac54[_0x222c53(0x480)]&&(_0x50ac54[0x0]['baseRev']=this['_getCurrentRevision']());let _0x254362;if(this[_0x222c53(0x2bf)]&&_0x2b84c2[_0x222c53(0x480)]!==0x0)_0x254362=this['_injector']['createInstance'](_0x2c53e4,this[_0x222c53(0x3c1)],this[_0x222c53(0x29e)],_0x50ac54[0x0],_0x2b84c2,this['_handler']);else{if(this[_0x222c53(0x2bf)]&&_0x2b84c2[_0x222c53(0x480)]===0x0)_0x50ac54[0x0][_0x222c53(0x492)]=this[_0x222c53(0x478)](),_0x254362=this['_injector'][_0x222c53(0x4d0)](_0x32d5f3,this[_0x222c53(0x3c1)],this[_0x222c53(0x29e)],_0x50ac54[0x0],this['_handler']);else{if(_0x2b84c2[_0x222c53(0x480)]!==0x0){const _0x2fc27d=this['_injector']['createInstance'](_0x3119f0,this['unitID'],this[_0x222c53(0x29e)],_0x2b84c2,this['_handler']);_0x2fc27d['_schedule'](),_0x254362=_0x2fc27d;}else _0x254362=this[_0x222c53(0x44b)][_0x222c53(0x4d0)](_0x5a7206,this['unitID'],this[_0x222c53(0x29e)],this[_0x222c53(0x17f)]);}}return _0x254362['_updateLocalCache'](),_0x254362;}catch(_0x4af319){return this[_0x222c53(0x110)][_0x222c53(0x4a8)](_0x222c53(0x4e2),_0x222c53(0x32f),_0x4af319),this[_0x222c53(0x44b)][_0x222c53(0x4d0)](_0x466a98,this['unitID'],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x222c53(0x17f)],!0x1);}}[_0x23e0a9(0x356)](){const _0x112c88=_0x23e0a9;throw new Error(_0x112c88(0x48d));}['appendMutation'](_0x5a9b68){const _0x2e2c55=_0x23e0a9;return this[_0x2e2c55(0x245)][_0x2e2c55(0xcc)](_0x5a9b68),this;}[_0x23e0a9(0x4b5)](_0x249353){const _0x270991=_0x23e0a9;return this[_0x270991(0x3c4)][_0x270991(0xcc)](_0x249353),this;}[_0x23e0a9(0xcd)](_0x161dea){const _0x311213=_0x23e0a9;if(this[_0x311213(0x2bf)])return this[_0x311213(0x26a)]=this['_awaitingChangeset'],this[_0x311213(0x2bf)]=null,this;throw new Error(_0x311213(0x28d));}[_0x23e0a9(0x143)](_0x25cf78){const _0x1771f8=_0x23e0a9;return this['_onConflict'](!!(_0x25cf78!=null&&_0x25cf78[_0x1771f8(0x166)]));}[_0x23e0a9(0x172)](){const _0x423766=_0x23e0a9;return this['_injector'][_0x423766(0x4d0)](_0x1fda3e,this[_0x423766(0x3c1)],this[_0x423766(0x29e)],this[_0x423766(0x2bf)],this['_pendingMutations'],this[_0x423766(0x17f)]);}['toggleOnline'](){return this;}[_0x23e0a9(0x127)](_0x4f546a){const _0x58b5c2=_0x23e0a9;return this[_0x58b5c2(0x44b)]['createInstance'](_0x466a98,this[_0x58b5c2(0x3c1)],this[_0x58b5c2(0x29e)],this[_0x58b5c2(0x2bf)],this[_0x58b5c2(0x245)],this[_0x58b5c2(0x17f)],_0x4f546a);}};_0x477030=_0xd3faea([_0x5c862f(0x7,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x137)])),_0x5c862f(0x8,_0x3cac39['Inject'](_0x42c3cc[_0x23e0a9(0xc8)])),_0x5c862f(0x9,_0x3cac39[_0x23e0a9(0xce)](_0x78d65c['LocalCacheService'])),_0x5c862f(0xa,_0x3cac39[_0x23e0a9(0x2b9)]),_0x5c862f(0xb,_0x3cac39[_0x23e0a9(0x368)]),_0x5c862f(0xc,_0x3cac39[_0x23e0a9(0x30d)]),_0x5c862f(0xd,_0x42c3cc[_0x23e0a9(0x4c6)])],_0x477030);function _0x496d3e(_0x32a9af,_0x1fd8dd,_0x39ae6f,_0x27d1a4,_0xea51b1,_0x2965f0){const _0x5a910c=_0x23e0a9;return _0x27d1a4&&_0xea51b1[_0x5a910c(0x480)]?_0x32a9af[_0x5a910c(0x4d0)](_0x2c53e4,_0x1fd8dd,_0x39ae6f,_0x27d1a4,_0xea51b1,_0x2965f0):_0x27d1a4?_0x32a9af[_0x5a910c(0x4d0)](_0x32d5f3,_0x1fd8dd,_0x39ae6f,_0x27d1a4,_0x2965f0):_0xea51b1[_0x5a910c(0x480)]?_0x32a9af[_0x5a910c(0x4d0)](_0x3119f0,_0x1fd8dd,_0x39ae6f,_0xea51b1,_0x2965f0):_0x32a9af[_0x5a910c(0x4d0)](_0x5a7206,_0x1fd8dd,_0x39ae6f,_0x2965f0);}var _0x5e0b00=Object[_0x23e0a9(0x2e3)],_0x1b44de=Object[_0x23e0a9(0x4ac)],_0x4f3dd8=(_0x52c633,_0xd042bd,_0x47b840,_0x35518c)=>{const _0x93a041=_0x23e0a9;for(var _0x50db37=_0x35518c>0x1?void 0x0:_0x35518c?_0x1b44de(_0xd042bd,_0x47b840):_0xd042bd,_0x3b10e8=_0x52c633[_0x93a041(0x480)]-0x1,_0x137172;_0x3b10e8>=0x0;_0x3b10e8--)(_0x137172=_0x52c633[_0x3b10e8])&&(_0x50db37=(_0x35518c?_0x137172(_0xd042bd,_0x47b840,_0x50db37):_0x137172(_0x50db37))||_0x50db37);return _0x35518c&&_0x50db37&&_0x5e0b00(_0xd042bd,_0x47b840,_0x50db37),_0x50db37;},_0x140a66=(_0x20f1d0,_0x518dc9)=>(_0x5b81f3,_0x51888e)=>_0x518dc9(_0x5b81f3,_0x51888e,_0x20f1d0);_0x78d65c[_0x23e0a9(0xdc)]=class extends _0x3cac39[_0x23e0a9(0x4b1)]{constructor(_0x47bd82,_0x31e712,_0x5811aa,_0x2d0069,_0x24d877,_0x3bad1a,_0x360c5a,_0x43af88,_0xe8a71f,_0x3067b3,_0x2a6aa3,_0x53ec53,_0x556979){const _0x2fab0e=_0x23e0a9;super(),_0x56bf3b(this,'_state$',new _0x2132a7[(_0x2fab0e(0x49e))](null)),_0x56bf3b(this,'state$',this[_0x2fab0e(0x2a5)][_0x2fab0e(0x3a4)]()),_0x56bf3b(this,_0x2fab0e(0x305)),_0x56bf3b(this,'_collaborationPaused',!0x1),_0x56bf3b(this,_0x2fab0e(0x3d8),''),_0x56bf3b(this,_0x2fab0e(0x3f5),0x0),_0x56bf3b(this,'status$',this[_0x2fab0e(0x413)][_0x2fab0e(0x19e)](_0x2132a7['map'](_0x174b0b=>_0x174b0b?_0x174b0b[_0x2fab0e(0x39f)]:_0x446eef[_0x2fab0e(0xef)]),_0x2132a7['shareReplay'](0x1))),_0x56bf3b(this,'_transitionLocked',!0x1),_0x56bf3b(this,'_remoteChangesetQueue',[]),(this[_0x2fab0e(0x3c1)]=_0x47bd82,this[_0x2fab0e(0x196)]=_0x31e712,this[_0x2fab0e(0x340)]=_0x5811aa,this[_0x2fab0e(0x44b)]=_0x2d0069,this[_0x2fab0e(0x3a8)]=_0x24d877,this[_0x2fab0e(0x291)]=_0x3bad1a,this['_localeService']=_0x360c5a,this[_0x2fab0e(0x3cd)]=_0x43af88,this[_0x2fab0e(0x110)]=_0xe8a71f,this[_0x2fab0e(0x31d)]=_0x3067b3,this[_0x2fab0e(0x219)]=_0x2a6aa3,this[_0x2fab0e(0x1ff)]=_0x53ec53,this[_0x2fab0e(0x16f)]=_0x556979);}get[_0x23e0a9(0xc9)](){const _0x304341=_0x23e0a9;return this[_0x304341(0x305)];}async['init'](){const _0x21e653=_0x23e0a9;if(this[_0x21e653(0xc9)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x21e653(0x1df)]();}[_0x23e0a9(0x3c2)](){const _0xf0ebf1=_0x23e0a9;return this[_0xf0ebf1(0x385)]=!0x0,_0x3cac39['toDisposable'](()=>{const _0x18e7fa=_0xf0ebf1;this[_0x18e7fa(0x385)]=!0x1,this[_0x18e7fa(0x4a5)]();});}[_0x23e0a9(0x4a2)](_0x534fa1){const _0x53e5c8=_0x23e0a9;this[_0x53e5c8(0x305)]=_0x534fa1,this[_0x53e5c8(0x2a5)]['next'](_0x534fa1);}async[_0x23e0a9(0x1df)](){const _0x7d664e=_0x23e0a9;var _0x48e648;this[_0x7d664e(0x4a2)](await this['_createInitialState']()),this[_0x7d664e(0x16f)]&&((_0x48e648=this[_0x7d664e(0x16f)])==null||_0x48e648[_0x7d664e(0x2b1)](this[_0x7d664e(0x3c1)]),this[_0x7d664e(0x382)](this['_singleActiveUnitService'][_0x7d664e(0x3d7)](this['unitID'])[_0x7d664e(0x404)](_0x56361d=>{const _0x5ae6a3=_0x7d664e;this[_0x5ae6a3(0x110)]['debug'](_0x5ae6a3(0x2e7),'editing\x20status\x20changed\x20to',_0x56361d),_0x56361d===_0x13f29d[_0x5ae6a3(0x19d)]?(this['_messageService']['show']({'content':this[_0x5ae6a3(0x452)]['t'](_0x5ae6a3(0xbe)),'type':_0x3003bf[_0x5ae6a3(0x190)][_0x5ae6a3(0x16b)]}),this[_0x5ae6a3(0x1ff)]['updatePermissionPoint'](new _0x52138d['WorkbookEditablePermission'](this[_0x5ae6a3(0x3c1)])['id'],!0x1)):this[_0x5ae6a3(0x1ff)]['updatePermissionPoint'](new _0x52138d[(_0x5ae6a3(0x21d))](this[_0x5ae6a3(0x3c1)])['id'],!0x0);})));let _0x3dcc95=!0x1;return this[_0x7d664e(0x382)](this[_0x7d664e(0x196)][_0x7d664e(0x45a)][_0x7d664e(0x404)](_0x11eb6d=>{const _0x192078=_0x7d664e;_0x11eb6d===_0x3ddb25[_0x192078(0x1fd)]?this[_0x192078(0x383)](_0x3dcc95):_0x11eb6d===_0x3ddb25['OFFLINE']&&(_0x3dcc95=!0x0,this['_toggleOffline']());})),this[_0x7d664e(0x382)](this[_0x7d664e(0x196)][_0x7d664e(0x421)][_0x7d664e(0x404)](_0x4bb0a0=>{const _0x517493=_0x7d664e;try{switch(_0x4bb0a0[_0x517493(0x199)]){case _0x42c3cc['CollaborationEvent'][_0x517493(0x134)]:{this['_onRemoteChangeset'](_0x42c3cc[_0x517493(0x316)](_0x4bb0a0['data']));break;}case _0x42c3cc[_0x517493(0x41b)][_0x517493(0x42d)]:{this[_0x517493(0x222)](_0x4bb0a0[_0x517493(0x2bd)]);break;}case _0x42c3cc['CollaborationEvent']['CHANGESET_REJ']:{this['_onRemoteRejected']();break;}case _0x42c3cc[_0x517493(0x41b)][_0x517493(0x217)]:{this[_0x517493(0x375)](_0x4bb0a0[_0x517493(0x2bd)]['changesets'][_0x517493(0x2f1)](_0x2075cb=>_0x42c3cc['parseProtocolChangeset'](_0x2075cb)));break;}case _0x42c3cc[_0x517493(0x41b)][_0x517493(0x4b0)]:this[_0x517493(0x441)]({'isPermissionRej':!0x0});}}catch(_0x5a2f3c){throw console['error']('Error\x20on\x20receiving\x20event',_0x5a2f3c),_0x5a2f3c;}})),this[_0x7d664e(0x305)];}[_0x23e0a9(0xc3)](){this['_transitionLocked']=!0x1;}[_0x23e0a9(0x40b)](){const _0x25b724=_0x23e0a9;if(this[_0x25b724(0x2e8)])throw new Error(_0x25b724(0x223));this[_0x25b724(0x2e8)]=!0x0;}[_0x23e0a9(0x237)](_0x2a297e){const _0x35cb1b=_0x23e0a9;this[_0x35cb1b(0x40b)](),this[_0x35cb1b(0x4a2)](this[_0x35cb1b(0x305)]['appendMutation'](_0x2a297e)),this['_unlockTransition']();}[_0x23e0a9(0x144)](_0x136e4a){const _0x52095e=_0x23e0a9;if(!(_0x136e4a[_0x52095e(0x4a0)]<=this[_0x52095e(0x3cd)][_0x52095e(0x497)](this['unitID']))){if(this[_0x52095e(0x385)]){this[_0x52095e(0x14f)]['push'](_0x136e4a);return;}this['_applyRemoteChangeset'](_0x136e4a);}}[_0x23e0a9(0x4a5)](){const _0x35bf05=_0x23e0a9;this[_0x35bf05(0x14f)]['forEach'](_0x5f02a9=>this[_0x35bf05(0x35c)](_0x5f02a9)),this[_0x35bf05(0x14f)]=[];}[_0x23e0a9(0x35c)](_0x14ea26){const _0x12feba=_0x23e0a9,_0x2c959e=this['_compressMutationService'][_0x12feba(0x431)][_0x12feba(0xc1)](this['_compressMutationService'][_0x12feba(0x431)][_0x12feba(0x14a)]()[_0x12feba(0x329)])(_0x14ea26[_0x12feba(0x100)],null)||_0x14ea26[_0x12feba(0x100)],_0x5b010f={..._0x14ea26,'mutations':_0x2c959e};this['_lockTransition'](),this[_0x12feba(0x4a2)](this[_0x12feba(0x305)][_0x12feba(0x4b5)](_0x5b010f)),this['_unlockTransition']();}[_0x23e0a9(0x222)](_0x2f9f51){const _0x28862e=_0x23e0a9;this['_lockTransition'](),this[_0x28862e(0x4a2)](this[_0x28862e(0x305)][_0x28862e(0xcd)](_0x2f9f51)),this['_unlockTransition']();}[_0x23e0a9(0x441)](_0x1d670e){const _0x197513=_0x23e0a9;this['_lockTransition'](),this['_updateState'](this[_0x197513(0x305)][_0x197513(0x143)](_0x1d670e)),this[_0x197513(0xc3)]();}['_onFetchMissResult'](_0x1a4043){const _0x435f09=_0x23e0a9;if(!(this[_0x435f09(0x305)]instanceof _0x477030))throw new TypeError(_0x435f09(0x466));const _0x2133a0=_0x1a4043[_0x435f09(0x2f1)](_0x1639b3=>{const _0x4f055d=_0x435f09,_0x4b751c=this['_compressMutationService']['interceptor'][_0x4f055d(0xc1)](this['_compressMutationService'][_0x4f055d(0x431)]['getInterceptPoints']()[_0x4f055d(0x329)])(_0x1639b3[_0x4f055d(0x100)],null)||_0x1639b3['mutations'];return{..._0x1639b3,'mutations':_0x4b751c};});this[_0x435f09(0x40b)](),this[_0x435f09(0x4a2)](this['_state']['onMissedChangesetFetched'](_0x2133a0)),this['_unlockTransition']();}[_0x23e0a9(0x4c2)](){const _0x21e968=_0x23e0a9;this[_0x21e968(0x40b)](),this[_0x21e968(0x4a2)](this[_0x21e968(0x305)][_0x21e968(0x172)]()),this[_0x21e968(0xc3)]();}[_0x23e0a9(0x383)](_0x5e7e36=!0x1){const _0x1bb624=_0x23e0a9;this['_lockTransition'](),this[_0x1bb624(0x4a2)](this[_0x1bb624(0x305)][_0x1bb624(0x498)]()),this[_0x1bb624(0xc3)]();const _0x106ec8=this[_0x1bb624(0x305)];_0x5e7e36&&_0x106ec8 instanceof _0x5a7206&&(this[_0x1bb624(0x40b)](),this['_updateState'](_0x106ec8[_0x1bb624(0x22c)]()),this[_0x1bb624(0xc3)]());}async[_0x23e0a9(0x34b)](){return new Promise(_0x3f648d=>{const _0xa9ef42=_0x28b7;this[_0xa9ef42(0x196)]['sessionStatus$'][_0xa9ef42(0x19e)](_0x2132a7[_0xa9ef42(0x10a)](0x1))[_0xa9ef42(0x404)](async _0x1a9c0b=>{const _0x4f9477=_0xa9ef42;_0x3f648d(await this['_createInitialStateImpl'](_0x1a9c0b===_0x3ddb25[_0x4f9477(0x1fd)]));});});}[_0x23e0a9(0x4aa)](){const _0x165801=_0x23e0a9,_0x4ab237=this[_0x165801(0x3c1)];return{'onStateChange':(_0x17c900,_0x319998)=>{const _0x3ce580=_0x165801;if(_0x17c900!==this[_0x3ce580(0x305)])throw new Error(_0x3ce580(0x253)+_0x17c900[_0x3ce580(0x39f)]+_0x3ce580(0x11d)+_0x319998[_0x3ce580(0x39f)]+_0x3ce580(0xe5)+this[_0x3ce580(0x305)]['status']);this[_0x3ce580(0x4a2)](_0x319998);},'onSendChangeset':_0x4df7e7=>{const _0x263755=_0x165801;_0x4df7e7['sid']||(_0x4df7e7[_0x263755(0x3ce)]=this[_0x263755(0x3d8)],_0x4df7e7[_0x263755(0x187)]=++this[_0x263755(0x3f5)]);const _0xdb4ca4={'eventID':_0x42c3cc['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0x4df7e7['unitID'],'unitType':this[_0x263755(0x340)],'changeset':_0x4df7e7,'memberID':this[_0x263755(0x196)][_0x263755(0x3a5)]()}};this[_0x263755(0x196)][_0x263755(0x23d)](_0xdb4ca4,this[_0x263755(0x3c1)]);},'onMissingChangesets':({from:_0x335334,to:_0x45fcb6})=>{const _0x283412=_0x165801;this['_logService'][_0x283412(0xb8)]('[CollaborationEntity]',_0x283412(0x3de)+_0x335334+'\x20to\x20'+_0x45fcb6);const _0x4e098f={'eventID':_0x42c3cc[_0x283412(0x41b)][_0x283412(0x3f4)],'data':{'unitID':_0x4ab237,'unitType':this[_0x283412(0x340)],'from':_0x335334,'to':_0x45fcb6}};this[_0x283412(0x196)][_0x283412(0x23d)](_0x4e098f,this['unitID']);}};}async['_createInitialStateImpl'](_0x2750dc){const _0x1a3ab8=_0x23e0a9;var _0x54c11d,_0x26ea9b;const _0x122d77=await this[_0x1a3ab8(0x3a8)][_0x1a3ab8(0x47f)](this[_0x1a3ab8(0x3c1)]),_0x2074a2=(_0x54c11d=_0x122d77==null?void 0x0:_0x122d77[_0x1a3ab8(0x100)])!=null?_0x54c11d:[],_0x36dd11=(_0x26ea9b=_0x122d77==null?void 0x0:_0x122d77['awaitingChangeset'])!=null?_0x26ea9b:null,_0x45152f=!!(_0x36dd11!=null&&_0x36dd11[_0x1a3ab8(0x3ce)])&&!!(_0x36dd11!=null&&_0x36dd11[_0x1a3ab8(0x187)]);this[_0x1a3ab8(0x3d8)]=_0x45152f?_0x36dd11[_0x1a3ab8(0x3ce)]:_0x2a76cc(),this[_0x1a3ab8(0x3f5)]=_0x45152f?_0x36dd11[_0x1a3ab8(0x187)]:0x0;const _0x1ccf96=this['unitID'];try{this[_0x1a3ab8(0x4b4)](_0x36dd11,_0x2074a2);}catch(_0x5c20cc){this[_0x1a3ab8(0x110)]['error'](_0x5c20cc);}const _0x1e6a82=this[_0x1a3ab8(0x4aa)]();if(_0x2750dc){const _0x7d7009=_0x496d3e(this[_0x1a3ab8(0x44b)],_0x1ccf96,this[_0x1a3ab8(0x340)],_0x36dd11,_0x2074a2,_0x1e6a82);return _0x7d7009 instanceof _0x3119f0?_0x7d7009[_0x1a3ab8(0xff)]():(_0x7d7009 instanceof _0x2c53e4||_0x7d7009 instanceof _0x32d5f3)&&_0x7d7009[_0x1a3ab8(0x356)](),_0x7d7009;}return this[_0x1a3ab8(0x44b)][_0x1a3ab8(0x4d0)](_0x1fda3e,_0x1ccf96,this[_0x1a3ab8(0x340)],_0x36dd11,_0x2074a2,_0x1e6a82);}['_replayCachedMutations'](_0x15182f,_0x891f2e){const _0x5590fd=_0x23e0a9;var _0x23e17b,_0x2712f2;const _0x353734=this['_compressMutationService'][_0x5590fd(0x431)][_0x5590fd(0xc1)](this[_0x5590fd(0x291)][_0x5590fd(0x431)][_0x5590fd(0x14a)]()['COMPRESS_MUTATION_APPLY']);(_0x23e17b=_0x353734((_0x15182f==null?void 0x0:_0x15182f[_0x5590fd(0x100)])||[],null))==null||_0x23e17b['forEach'](_0x2d7878=>this[_0x5590fd(0x31d)][_0x5590fd(0x1bd)](_0x2d7878['id'],_0x2d7878[_0x5590fd(0x1db)])),(_0x2712f2=_0x353734(_0x891f2e||[],null))==null||_0x2712f2[_0x5590fd(0x2d4)](_0xd3a244=>this[_0x5590fd(0x31d)][_0x5590fd(0x1bd)](_0xd3a244['id'],_0xd3a244[_0x5590fd(0x1db)]));}},_0x78d65c[_0x23e0a9(0xdc)]=_0x4f3dd8([_0x140a66(0x3,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x137)])),_0x140a66(0x4,_0x3cac39[_0x23e0a9(0xce)](_0x78d65c['LocalCacheService'])),_0x140a66(0x5,_0x3cac39[_0x23e0a9(0xce)](_0x42c3cc['CompressMutationService'])),_0x140a66(0x6,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x3b5)])),_0x140a66(0x7,_0x3cac39[_0x23e0a9(0xce)](_0x42c3cc[_0x23e0a9(0xc8)])),_0x140a66(0x8,_0x3cac39[_0x23e0a9(0x2b9)]),_0x140a66(0x9,_0x3cac39[_0x23e0a9(0x368)]),_0x140a66(0xa,_0x4b9a33[_0x23e0a9(0xf1)]),_0x140a66(0xb,_0x3cac39[_0x23e0a9(0xaf)]),_0x140a66(0xc,_0x3cac39['Optional'](_0xc9af34))],_0x78d65c['CollaborationEntity']),_0x78d65c[_0x23e0a9(0x1f7)]=class extends _0x78d65c[_0x23e0a9(0xdc)]{constructor(_0x35fa21,_0x46d0c8,_0x4105ea,_0x15a094,_0x41f0a5,_0x4564c1,_0x1d57c2,_0x5c0bbd,_0x47a7b8,_0x4fab68,_0x2fa748,_0x4a7d01,_0x3b83de,_0x3e2f5a,_0x313ad6,_0x5ec9a1,_0x28dad6){const _0xb5ee87=_0x23e0a9;super(_0x35fa21,_0x4105ea,_0x46d0c8,_0x15a094,_0x41f0a5,_0x4564c1,_0x1d57c2,_0x5c0bbd,_0x3b83de,_0x3e2f5a,_0x313ad6,_0x5ec9a1,_0x28dad6),this[_0xb5ee87(0x3c1)]=_0x35fa21,this[_0xb5ee87(0x29e)]=_0x46d0c8,this[_0xb5ee87(0x293)]=_0x47a7b8,this['_docTransformIMECacheService']=_0x4fab68,this['_docTransformSelectionsService']=_0x2fa748,this[_0xb5ee87(0x1fa)]=_0x4a7d01;}[_0x23e0a9(0x4aa)](){const _0x26a6de=_0x23e0a9,_0x29517d=super['_createHandler']();return _0x29517d[_0x26a6de(0x45f)]=_0x1e7558=>this[_0x26a6de(0x248)]['transformIMECache'](_0x1e7558),_0x29517d['onTransformSelections']=_0x231168=>this[_0x26a6de(0x4db)][_0x26a6de(0xe0)](_0x231168),_0x29517d['onSyncEditingCollabCursor']=_0xa6daf0=>this[_0x26a6de(0x1fa)][_0x26a6de(0x3d3)](_0xa6daf0),_0x29517d[_0x26a6de(0x4e3)]=_0x41ff37=>this[_0x26a6de(0x248)][_0x26a6de(0x4e0)](_0x41ff37),_0x29517d;}async[_0x23e0a9(0x1df)](){const _0xd9c398=_0x23e0a9,_0x35053f=await super['_init']();return this[_0xd9c398(0x293)][_0xd9c398(0x3a9)][_0xd9c398(0x19e)](_0x2132a7[_0xd9c398(0x2dd)](this[_0xd9c398(0xfd)]))[_0xd9c398(0x404)](_0x5ed427=>{const _0x50b8ed=_0xd9c398;if(_0x5ed427==null)return;const {unitId:_0x408c1d,redoState:_0x54d7c3,commandId:_0x3b64cf}=_0x5ed427;if(_0x408c1d!==this[_0x50b8ed(0x3c1)])return;const _0x17e845={'id':_0x3b64cf,'type':_0x3cac39[_0x50b8ed(0xb5)][_0x50b8ed(0x3a3)],'params':{'unitId':_0x408c1d,'actions':_0x54d7c3['actions'],'textRanges':null}};this['_onLocalMutation'](_0x17e845);}),_0x35053f;}},_0x78d65c[_0x23e0a9(0x1f7)]=_0x4f3dd8([_0x140a66(0x3,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39['Injector'])),_0x140a66(0x4,_0x3cac39[_0x23e0a9(0xce)](_0x78d65c['LocalCacheService'])),_0x140a66(0x5,_0x3cac39[_0x23e0a9(0xce)](_0x42c3cc['CompressMutationService'])),_0x140a66(0x6,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x3b5)])),_0x140a66(0x7,_0x3cac39[_0x23e0a9(0xce)](_0x42c3cc[_0x23e0a9(0xc8)])),_0x140a66(0x8,_0x3cac39['Inject'](_0x2c2d98[_0x23e0a9(0x162)])),_0x140a66(0x9,_0x3cac39[_0x23e0a9(0xce)](_0x3ae3a1)),_0x140a66(0xa,_0x3cac39[_0x23e0a9(0xce)](_0x59fe63)),_0x140a66(0xb,_0x3cac39['Inject'](_0xc97cad)),_0x140a66(0xc,_0x3cac39[_0x23e0a9(0x2b9)]),_0x140a66(0xd,_0x3cac39[_0x23e0a9(0x368)]),_0x140a66(0xe,_0x4b9a33[_0x23e0a9(0xf1)]),_0x140a66(0xf,_0x3cac39[_0x23e0a9(0xaf)]),_0x140a66(0x10,_0x3cac39[_0x23e0a9(0x2da)](_0xc9af34))],_0x78d65c[_0x23e0a9(0x1f7)]),_0x78d65c['SheetCollaborationEntity']=class extends _0x78d65c['CollaborationEntity']{constructor(_0x4c81aa,_0x1395df,_0xed76d5,_0x3e3838,_0x525650,_0x5c31dd,_0xb100de,_0x343e5,_0x267099,_0x39b587,_0x3f79b0,_0x48eccd,_0x4c4f0e,_0x366fd3){const _0x22e31e=_0x23e0a9;super(_0x4c81aa,_0xed76d5,_0x1395df,_0x3e3838,_0x525650,_0x5c31dd,_0xb100de,_0x343e5,_0x39b587,_0x3f79b0,_0x48eccd,_0x4c4f0e,_0x366fd3),this[_0x22e31e(0x3c1)]=_0x4c81aa,this[_0x22e31e(0x29e)]=_0x1395df,this[_0x22e31e(0x46d)]=_0x267099;}['_createHandler'](){const _0x45f983=_0x23e0a9,_0x431f92=super[_0x45f983(0x4aa)]();return _0x431f92[_0x45f983(0x415)]=_0x2e8615=>this['_sheetTransformSelectionsService'][_0x45f983(0xe0)](_0x2e8615),_0x431f92;}async[_0x23e0a9(0x1df)](){const _0x2f306c=_0x23e0a9,_0xe88093=await super[_0x2f306c(0x1df)]();return this[_0x2f306c(0x382)](this['_commandService'][_0x2f306c(0xb4)]((_0x56b6d3,_0x318263)=>{const _0x517e1b=_0x2f306c;if(_0x56b6d3[_0x517e1b(0x29e)]!==_0x3cac39[_0x517e1b(0xb5)]['MUTATION']||_0x318263!=null&&_0x318263[_0x517e1b(0x2f4)]||_0x318263!=null&&_0x318263[_0x517e1b(0x2c9)])return;const _0x482b5c=_0x56b6d3[_0x517e1b(0x1db)];if((_0x482b5c==null?void 0x0:_0x482b5c[_0x517e1b(0x4c4)])!==this['unitID'])return;const _0x4b409a=_0x56b6d3,_0x575466=this[_0x517e1b(0x291)]['interceptor'][_0x517e1b(0xc1)](this['_compressMutationService'][_0x517e1b(0x431)][_0x517e1b(0x14a)]()[_0x517e1b(0x3a2)])([_0x4b409a],null)||[_0x4b409a];this[_0x517e1b(0x237)](_0x575466[0x0]);})),_0xe88093;}},_0x78d65c['SheetCollaborationEntity']=_0x4f3dd8([_0x140a66(0x3,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x137)])),_0x140a66(0x4,_0x3cac39['Inject'](_0x78d65c[_0x23e0a9(0x494)])),_0x140a66(0x5,_0x3cac39['Inject'](_0x42c3cc[_0x23e0a9(0x122)])),_0x140a66(0x6,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x3b5)])),_0x140a66(0x7,_0x3cac39[_0x23e0a9(0xce)](_0x42c3cc[_0x23e0a9(0xc8)])),_0x140a66(0x8,_0x3cac39[_0x23e0a9(0xce)](_0xd9170b)),_0x140a66(0x9,_0x3cac39[_0x23e0a9(0x2b9)]),_0x140a66(0xa,_0x3cac39['ICommandService']),_0x140a66(0xb,_0x4b9a33[_0x23e0a9(0xf1)]),_0x140a66(0xc,_0x3cac39[_0x23e0a9(0xaf)]),_0x140a66(0xd,_0x3cac39[_0x23e0a9(0x2da)](_0xc9af34))],_0x78d65c[_0x23e0a9(0x47d)]);var _0xae234a=Object[_0x23e0a9(0x2e3)],_0x1540ae=Object['getOwnPropertyDescriptor'],_0x5c8b41=(_0x371d56,_0x11d797,_0x58bcf0,_0x2b608f)=>{const _0x548813=_0x23e0a9;for(var _0x366f69=_0x2b608f>0x1?void 0x0:_0x2b608f?_0x1540ae(_0x11d797,_0x58bcf0):_0x11d797,_0x4690a3=_0x371d56[_0x548813(0x480)]-0x1,_0x1ebb2;_0x4690a3>=0x0;_0x4690a3--)(_0x1ebb2=_0x371d56[_0x4690a3])&&(_0x366f69=(_0x2b608f?_0x1ebb2(_0x11d797,_0x58bcf0,_0x366f69):_0x1ebb2(_0x366f69))||_0x366f69);return _0x2b608f&&_0x366f69&&_0xae234a(_0x11d797,_0x58bcf0,_0x366f69),_0x366f69;},_0xfd79af=(_0x3d4cd9,_0x562beb)=>(_0x15f66a,_0x48e0d9)=>_0x562beb(_0x15f66a,_0x48e0d9,_0x3d4cd9);_0x78d65c[_0x23e0a9(0x2d1)]=class extends _0x3cac39['RxDisposable']{constructor(_0x5eea5b,_0x2ac644,_0x55684b){const _0x1aa746=_0x23e0a9;super(),_0x56bf3b(this,_0x1aa746(0x352),new Map()),_0x56bf3b(this,_0x1aa746(0x4e9),new _0x2132a7['Subject']()),(this[_0x1aa746(0x44b)]=_0x5eea5b,this[_0x1aa746(0xb3)]=_0x2ac644,this[_0x1aa746(0x3c0)]=_0x55684b,this[_0x1aa746(0x1df)]());}[_0x23e0a9(0x250)](){const _0x372fe9=_0x23e0a9;super[_0x372fe9(0x250)](),this['_entities']['forEach'](_0x3a1bae=>_0x3a1bae[_0x372fe9(0x250)]()),this[_0x372fe9(0x352)][_0x372fe9(0x108)]();}[_0x23e0a9(0x304)](_0x397a64){const _0x22133d=_0x23e0a9;var _0x374042;return(_0x374042=this[_0x22133d(0x352)][_0x22133d(0x1c4)](_0x397a64))!=null?_0x374042:null;}[_0x23e0a9(0x444)](_0x123a71){const _0x5755d5=_0x23e0a9,_0x38f11a=this[_0x5755d5(0x304)](_0x123a71);return _0x38f11a?_0x2132a7['of'](_0x38f11a):this['_entityInit$'][_0x5755d5(0x19e)](_0x2b32ae['filter'](_0x46891b=>_0x46891b[_0x5755d5(0x3c1)]===_0x123a71));}[_0x23e0a9(0x1df)](){const _0x327937=_0x23e0a9;this[_0x327937(0x3c0)][_0x327937(0x4c0)](_0x3cac39[_0x327937(0x42b)]['UNIVER_SHEET'])['pipe'](_0x2132a7['takeUntil'](this[_0x327937(0xfd)]),_0x2b32ae['delay'](0x10))[_0x327937(0x404)](async _0x4b6de9=>{const _0x1c1423=_0x327937,_0x32a8cb=_0x4b6de9['getUnitId'](),_0x2df2de=await this[_0x1c1423(0x463)](_0x32a8cb,_0x36e0e9['UNIVER_SHEET']);this[_0x1c1423(0x352)][_0x1c1423(0x2f7)](_0x32a8cb,_0x2df2de);}),this[_0x327937(0x3c0)][_0x327937(0x4c0)](_0x3cac39[_0x327937(0x42b)][_0x327937(0x28c)])[_0x327937(0x19e)](_0x2132a7[_0x327937(0x2dd)](this[_0x327937(0xfd)]),_0x2b32ae[_0x327937(0x31a)](0x10))[_0x327937(0x19e)](_0x2b32ae[_0x327937(0x366)](_0x4b4b8b=>!_0x4b4b8b[_0x327937(0x27c)]()[_0x327937(0x486)]('__')))[_0x327937(0x404)](async _0x54124c=>{const _0x1b8fe0=_0x327937,_0x48619e=_0x54124c[_0x1b8fe0(0x27c)](),_0x3e7190=await this[_0x1b8fe0(0x463)](_0x48619e,_0x36e0e9[_0x1b8fe0(0x28c)]);this[_0x1b8fe0(0x352)]['set'](_0x48619e,_0x3e7190);}),_0x2132a7['merge'](this['_univerInstanceService'][_0x327937(0x39c)](_0x3cac39[_0x327937(0x42b)][_0x327937(0xeb)]),this[_0x327937(0x3c0)][_0x327937(0x39c)](_0x3cac39[_0x327937(0x42b)][_0x327937(0x28c)]))[_0x327937(0x19e)](_0x2132a7[_0x327937(0x2dd)](this[_0x327937(0xfd)]))[_0x327937(0x404)](_0x4ccbde=>{const _0x54f20e=_0x327937,_0x73d8e6=_0x4ccbde[_0x54f20e(0x27c)](),_0x313603=this['_entities'][_0x54f20e(0x1c4)](_0x73d8e6);_0x313603&&(_0x313603[_0x54f20e(0x250)](),this[_0x54f20e(0x352)][_0x54f20e(0x2cb)](_0x73d8e6));});}async[_0x23e0a9(0x463)](_0x1f766f,_0x145d62){const _0x33d55b=_0x23e0a9,_0x3cd33b=await this[_0x33d55b(0xb3)]['requireSession'](_0x1f766f),_0x5612e2=this[_0x33d55b(0x44b)][_0x33d55b(0x4d0)](this[_0x33d55b(0x482)](_0x145d62),_0x1f766f,_0x145d62,_0x3cd33b);return await _0x5612e2[_0x33d55b(0x19b)](),this[_0x33d55b(0x4e9)][_0x33d55b(0x3c8)](_0x5612e2),_0x5612e2;}[_0x23e0a9(0x482)](_0x446bff){const _0x28c8f8=_0x23e0a9;switch(_0x446bff){case _0x36e0e9[_0x28c8f8(0x28c)]:return _0x78d65c['DocCollaborationEntity'];case _0x36e0e9[_0x28c8f8(0xeb)]:return _0x78d65c[_0x28c8f8(0x47d)];default:throw new Error(_0x28c8f8(0x3be)+_0x446bff);}}},_0x78d65c['CollaborationController']=_0x5c8b41([_0xfd79af(0x0,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39['Injector'])),_0xfd79af(0x1,_0x3cac39[_0x23e0a9(0xce)](_0x78d65c[_0x23e0a9(0x386)])),_0xfd79af(0x2,_0x3cac39[_0x23e0a9(0x3ef)])],_0x78d65c[_0x23e0a9(0x2d1)]);const _0x3f2fb2=[_0x23e0a9(0x39e),_0x23e0a9(0x271),_0x23e0a9(0x3a6),'red300',_0x23e0a9(0x4bc),_0x23e0a9(0x416)];class _0xa7f099 extends _0x3cac39[_0x23e0a9(0x3da)]{constructor(){const _0x282513=_0x23e0a9;super(...arguments),_0x56bf3b(this,_0x282513(0x2b0),new Map()),_0x56bf3b(this,_0x282513(0x4bd),0x0);}[_0x23e0a9(0x3ab)](_0x5243a1){const _0xe2205c=_0x23e0a9;if(this[_0xe2205c(0x2b0)][_0xe2205c(0x1ad)](_0x5243a1))return this[_0xe2205c(0x2b0)][_0xe2205c(0x1c4)](_0x5243a1);const _0xb12baf=_0x3f2fb2[this[_0xe2205c(0x4bd)]];return this[_0xe2205c(0x4bd)]=(this[_0xe2205c(0x4bd)]+0x1)%_0x3f2fb2[_0xe2205c(0x480)],this['_assignedColors']['set'](_0x5243a1,_0xb12baf),_0xb12baf;}}var _0x4a1fbd=Object[_0x23e0a9(0x2e3)],_0x24ff67=Object[_0x23e0a9(0x4ac)],_0x5cad53=(_0x4caba8,_0x587d37,_0x1b3492,_0x56b184)=>{for(var _0x43d128=_0x56b184>0x1?void 0x0:_0x56b184?_0x24ff67(_0x587d37,_0x1b3492):_0x587d37,_0x23845d=_0x4caba8['length']-0x1,_0x1551ce;_0x23845d>=0x0;_0x23845d--)(_0x1551ce=_0x4caba8[_0x23845d])&&(_0x43d128=(_0x56b184?_0x1551ce(_0x587d37,_0x1b3492,_0x43d128):_0x1551ce(_0x43d128))||_0x43d128);return _0x56b184&&_0x43d128&&_0x4a1fbd(_0x587d37,_0x1b3492,_0x43d128),_0x43d128;},_0x47e647=(_0x272a20,_0x5d999a)=>(_0x4b209b,_0x1a8f16)=>_0x5d999a(_0x4b209b,_0x1a8f16,_0x272a20);const _0x980f=0x12c,_0x87e5cf=0x64;let _0x129969=class extends _0x3cac39[_0x23e0a9(0x4b1)]{constructor(_0x21ed95,_0x169229,_0x31d163,_0x33b4d0,_0x47737b,_0x475251,_0x3d4151,_0x4109e1,_0x440adb){const _0x101587=_0x23e0a9;super(),_0x56bf3b(this,_0x101587(0x445),!0x1),_0x56bf3b(this,_0x101587(0x1df),!0x1),_0x56bf3b(this,'_cursorInfo$',new _0x2132a7[(_0x101587(0x49e))](new Map())),_0x56bf3b(this,'cursorInfo$',this['_cursorInfo$'][_0x101587(0x3a4)]()),_0x56bf3b(this,_0x101587(0xca),new _0x2132a7[(_0x101587(0x49e))]([])),_0x56bf3b(this,_0x101587(0x436),this[_0x101587(0xca)][_0x101587(0x19e)](_0x2132a7[_0x101587(0xd5)](_0x980f))),_0x56bf3b(this,'_updateLocalCursor',_0x3cac39[_0x101587(0x154)](_0x5635b3=>{const _0x208221=_0x101587,_0xce829f={'eventID':_0x42c3cc[_0x208221(0x41b)][_0x208221(0x364)],'data':{'unitID':this[_0x208221(0x3c1)],'memberID':this[_0x208221(0x1a7)][_0x208221(0x3a5)](),'selection':_0x31f9d9(_0x5635b3)}};this[_0x208221(0x1a7)][_0x208221(0x23d)](_0xce829f,this[_0x208221(0x3c1)]);},_0x87e5cf)),(this['unitID']=_0x21ed95,this['_session']=_0x169229,this[_0x101587(0x44b)]=_0x31d163,this['_colorAssignService']=_0x33b4d0,this[_0x101587(0x4be)]=_0x47737b,this['_syncEditingCollabCursorService']=_0x475251,this[_0x101587(0x374)]=_0x3d4151,this[_0x101587(0x3c0)]=_0x4109e1,this[_0x101587(0x31d)]=_0x440adb);}get[_0x23e0a9(0x301)](){const _0x2872e4=_0x23e0a9;return this[_0x2872e4(0x345)][_0x2872e4(0x1a6)]();}get['roomMembers'](){const _0x14b2f2=_0x23e0a9;return this['_roomMembers$'][_0x14b2f2(0x1a6)]();}['dispose'](){const _0x45b6c5=_0x23e0a9;super[_0x45b6c5(0x250)](),this[_0x45b6c5(0x345)][_0x45b6c5(0x3c8)](new Map()),this['_cursorInfo$']['complete'](),this[_0x45b6c5(0xca)][_0x45b6c5(0x3c8)]([]),this[_0x45b6c5(0xca)][_0x45b6c5(0x1be)]();}[_0x23e0a9(0x19b)](){const _0x42b2d7=_0x23e0a9;this[_0x42b2d7(0x1df)]||(this['_init']=!0x0,this[_0x42b2d7(0x1a7)]['sessionStatus$'][_0x42b2d7(0x19e)](_0x2132a7['takeUntil'](this[_0x42b2d7(0xfd)]))[_0x42b2d7(0x404)](_0x2f2454=>{const _0x4f4138=_0x42b2d7;_0x2f2454===_0x3ddb25[_0x4f4138(0x1fd)]?this[_0x4f4138(0x383)]():this[_0x4f4138(0x4c2)]();}),this[_0x42b2d7(0x1a7)]['event$']['pipe'](_0x2132a7[_0x42b2d7(0x2dd)](this[_0x42b2d7(0xfd)]))[_0x42b2d7(0x404)](_0x59010c=>{const _0x2b371b=_0x42b2d7,_0x8fa655=_0x59010c[_0x2b371b(0x199)];_0x8fa655===_0x42c3cc['CollaborationEvent'][_0x2b371b(0x364)]&&this['_onCursorUpdate'](_0x59010c),_0x8fa655===_0x42c3cc[_0x2b371b(0x41b)][_0x2b371b(0x360)]&&this[_0x2b371b(0x2be)](_0x59010c);}),this[_0x42b2d7(0x382)](this[_0x42b2d7(0x31d)][_0x42b2d7(0xb4)](_0x28f753=>{const _0x1f339a=_0x42b2d7,_0x230b40=_0x28f753[_0x1f339a(0x1db)];_0x230b40!=null&&this[_0x1f339a(0x445)]&&_0x28f753['id']===_0x56b563[_0x1f339a(0x23e)]['id']&&_0x230b40[_0x1f339a(0x4c4)]===this[_0x1f339a(0x3c1)]&&_0x230b40[_0x1f339a(0x3b4)]===!0x1&&this[_0x1f339a(0x239)](_0x230b40[_0x1f339a(0x430)]);})),this[_0x42b2d7(0xea)][_0x42b2d7(0x147)][_0x42b2d7(0x19e)](_0x2132a7[_0x42b2d7(0x2dd)](this[_0x42b2d7(0xfd)]))[_0x42b2d7(0x404)](_0x2bc81a=>{const _0x293913=_0x42b2d7;if((_0x2bc81a==null?void 0x0:_0x2bc81a[_0x293913(0x3c1)])!==this[_0x293913(0x3c1)])return;const _0x2533c1={'eventID':_0x42c3cc[_0x293913(0x41b)][_0x293913(0x364)],'data':_0x2bc81a};this['_onCursorUpdate'](_0x2533c1);}),this[_0x42b2d7(0x382)](this['_commandService'][_0x42b2d7(0xb4)](_0x51982b=>{const _0x2e645b=_0x42b2d7;if(_0x51982b[_0x2e645b(0x1db)]==null)return;const _0x38d010=_0x51982b[_0x2e645b(0x1db)];if(_0x51982b['id']!==_0x56b563['RichTextEditingMutation']['id']||_0x38d010[_0x2e645b(0x4c4)]!==this[_0x2e645b(0x3c1)])return;const _0x12508f={'id':_0x2e645b(0x2a4),'params':_0x38d010},_0x110db8=this[_0x2e645b(0x301)];for(const [_0x23bd2f,_0x240549]of _0x110db8){const _0x1c9481={'id':_0x2e645b(0x2a4),'params':{'unitId':this[_0x2e645b(0x3c1)],'actions':null,'textRanges':_0x240549['ranges']}},_0x27b7f8=this['_transformService'][_0x2e645b(0x407)](_0x12508f,_0x1c9481,!0x1);if(_0x42c3cc['isTransformMutationFailure'](_0x27b7f8))throw _0x27b7f8[_0x2e645b(0x4a8)];_0x110db8[_0x2e645b(0x2f7)](_0x23bd2f,{..._0x240549,'ranges':_0x27b7f8[_0x2e645b(0x40a)][_0x2e645b(0x1db)]['textRanges']});}queueMicrotask(()=>{const _0x1f2ed8=_0x2e645b;this[_0x1f2ed8(0x345)]['next'](_0x110db8);});})));}[_0x23e0a9(0x157)](_0x3918c6){const _0x31446a=_0x23e0a9;var _0x52ff1e,_0x5b361b;const {memberID:_0x3c9296,selection:_0x3564b2}=_0x3918c6[_0x31446a(0x2bd)],_0x57b434=_0x38d0fa(_0x3564b2),_0x21820a=(_0x5b361b=(_0x52ff1e=this[_0x31446a(0x4be)]['getMember'](this['unitID'],_0x3c9296))==null?void 0x0:_0x52ff1e[_0x31446a(0x3cb)])!=null?_0x5b361b:'Unknown\x20user',_0x1c4bf0={'color':this[_0x31446a(0x2d8)][_0x31446a(0x3ab)](_0x3c9296),'name':_0x21820a,'ranges':_0x57b434},_0x1e2327=this[_0x31446a(0x301)];_0x1e2327[_0x31446a(0x2f7)](_0x3c9296,_0x1c4bf0),this[_0x31446a(0x345)]['next'](_0x1e2327);}['_onCursorDelete'](_0x6e263d){const _0x4036ab=_0x23e0a9,{memberID:_0x11ba5c}=_0x6e263d[_0x4036ab(0x2bd)],_0x3c21ac=this['cursorInfo'];_0x3c21ac[_0x4036ab(0x2cb)](_0x11ba5c),this[_0x4036ab(0x345)][_0x4036ab(0x3c8)](_0x3c21ac);}['_toggleOnline'](){const _0x272230=_0x23e0a9;var _0x30d105;if(this[_0x272230(0x445)]=!0x0,((_0x30d105=this[_0x272230(0x3c0)][_0x272230(0x180)]())==null?void 0x0:_0x30d105['getUnitId']())!==this[_0x272230(0x3c1)])return;const _0x8ab626=this[_0x272230(0x44b)][_0x272230(0x1c4)](_0x56b563[_0x272230(0x3b1)])['getDocRanges']();Array[_0x272230(0x406)](_0x8ab626)&&_0x8ab626[_0x272230(0x480)]>0x0&&this[_0x272230(0x239)](_0x8ab626);}['_toggleOffline'](){this['_online']=!0x1;}};_0x129969=_0x5cad53([_0x47e647(0x2,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x137)])),_0x47e647(0x3,_0x3cac39['Inject'](_0xa7f099)),_0x47e647(0x4,_0x3cac39[_0x23e0a9(0xce)](_0x2b8623)),_0x47e647(0x5,_0x3cac39[_0x23e0a9(0xce)](_0xc97cad)),_0x47e647(0x6,_0x42c3cc[_0x23e0a9(0x4c6)]),_0x47e647(0x7,_0x3cac39[_0x23e0a9(0x3ef)]),_0x47e647(0x8,_0x3cac39[_0x23e0a9(0x368)])],_0x129969);var _0x302283=Object[_0x23e0a9(0x2e3)],_0x2fe044=Object[_0x23e0a9(0x4ac)],_0x37ec4b=(_0x28959e,_0x231a40,_0x21a7ed,_0x1d4db0)=>{for(var _0x40ac29=_0x1d4db0>0x1?void 0x0:_0x1d4db0?_0x2fe044(_0x231a40,_0x21a7ed):_0x231a40,_0x142e08=_0x28959e['length']-0x1,_0x27b1f3;_0x142e08>=0x0;_0x142e08--)(_0x27b1f3=_0x28959e[_0x142e08])&&(_0x40ac29=(_0x1d4db0?_0x27b1f3(_0x231a40,_0x21a7ed,_0x40ac29):_0x27b1f3(_0x40ac29))||_0x40ac29);return _0x1d4db0&&_0x40ac29&&_0x302283(_0x231a40,_0x21a7ed,_0x40ac29),_0x40ac29;},_0x4c303f=(_0x78248e,_0x570708)=>(_0x265221,_0x57ca13)=>_0x570708(_0x265221,_0x57ca13,_0x78248e);const _0x488b42=0x12c,_0x506d7e=0x64,_0x2f1b3c=()=>{let _0x3aebfa=[],_0x17cdb4=!0x1;return _0x553605=>{const _0x586e03=_0x28b7;_0x3aebfa[_0x586e03(0xcc)](_0x553605),_0x17cdb4||(_0x17cdb4=!0x0,setTimeout(()=>{const _0x37b5cb=_0x586e03;_0x3aebfa[_0x37b5cb(0x2d4)](_0x340490=>_0x340490()),_0x3aebfa=[],_0x17cdb4=!0x1;}));};};let _0x1e4be7=class extends _0x3cac39[_0x23e0a9(0x4b1)]{constructor(_0x1df460,_0x3417c8,_0x48934c,_0x5654a6,_0x5ca975,_0x3561b4,_0x4a1927,_0x1dbe07){const _0x45f364=_0x23e0a9;super(),_0x56bf3b(this,_0x45f364(0x445),!0x1),_0x56bf3b(this,_0x45f364(0x1df),!0x1),_0x56bf3b(this,_0x45f364(0x345),new _0x2132a7['BehaviorSubject'](new Map())),_0x56bf3b(this,_0x45f364(0x1c9),this[_0x45f364(0x345)][_0x45f364(0x3a4)]()),_0x56bf3b(this,_0x45f364(0xca),new _0x2132a7[(_0x45f364(0x49e))]([])),_0x56bf3b(this,'roomMembers$',this[_0x45f364(0xca)][_0x45f364(0x19e)](_0x2132a7[_0x45f364(0xd5)](_0x488b42))),_0x56bf3b(this,_0x45f364(0x239),_0x3cac39[_0x45f364(0x154)]((_0x217418,_0x40eb84)=>{const _0x25fab2=_0x45f364,_0x57a48c={'eventID':_0x42c3cc['CollaborationEvent'][_0x25fab2(0x364)],'data':{'unitID':this[_0x25fab2(0x3c1)],'memberID':this[_0x25fab2(0x1a7)][_0x25fab2(0x3a5)](),'selection':_0x339bdc[_0x25fab2(0x476)](_0x217418,_0x40eb84['range'])}};this[_0x25fab2(0x1a7)]['send'](_0x57a48c,this[_0x25fab2(0x3c1)]);},_0x506d7e)),(this[_0x45f364(0x3c1)]=_0x1df460,this[_0x45f364(0x1a7)]=_0x3417c8,this[_0x45f364(0x44b)]=_0x48934c,this[_0x45f364(0x2d8)]=_0x5654a6,this[_0x45f364(0x4be)]=_0x5ca975,this[_0x45f364(0x3c0)]=_0x3561b4,this[_0x45f364(0x31d)]=_0x4a1927,this['_refRangeService']=_0x1dbe07);}get[_0x23e0a9(0x301)](){const _0x502ce2=_0x23e0a9;return this['_cursorInfo$'][_0x502ce2(0x1a6)]();}get[_0x23e0a9(0x38b)](){const _0x2f7fa6=_0x23e0a9;return this[_0x2f7fa6(0xca)][_0x2f7fa6(0x1a6)]();}[_0x23e0a9(0x250)](){const _0x8a001e=_0x23e0a9;super[_0x8a001e(0x250)](),this[_0x8a001e(0x345)][_0x8a001e(0x3c8)](new Map()),this[_0x8a001e(0x345)]['complete'](),this[_0x8a001e(0xca)][_0x8a001e(0x3c8)]([]),this['_roomMembers$'][_0x8a001e(0x1be)]();}['init'](){const _0x37bbf6=_0x23e0a9;this[_0x37bbf6(0x1df)]||(this[_0x37bbf6(0x1df)]=!0x0,this['_session'][_0x37bbf6(0x45a)][_0x37bbf6(0x19e)](_0x2132a7[_0x37bbf6(0x2dd)](this[_0x37bbf6(0xfd)]))[_0x37bbf6(0x404)](_0x51dd96=>{const _0x244b8a=_0x37bbf6;_0x51dd96===_0x3ddb25['ONLINE']?this[_0x244b8a(0x383)]():this[_0x244b8a(0x4c2)]();}),this['_session'][_0x37bbf6(0x421)]['pipe'](_0x2132a7[_0x37bbf6(0x2dd)](this[_0x37bbf6(0xfd)]))[_0x37bbf6(0x404)](_0x593995=>{const _0x2367a5=_0x37bbf6,_0x12f82f=_0x593995['eventID'];_0x12f82f===_0x42c3cc[_0x2367a5(0x41b)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x593995),_0x12f82f===_0x42c3cc[_0x2367a5(0x41b)][_0x2367a5(0x360)]&&this[_0x2367a5(0x2be)](_0x593995);}),this[_0x37bbf6(0x262)](),this[_0x37bbf6(0x382)](this[_0x37bbf6(0x31d)]['onCommandExecuted'](_0x359997=>{const _0x36d8d9=_0x37bbf6;if(this[_0x36d8d9(0x445)]&&_0x359997['id']===_0x52138d[_0x36d8d9(0x21f)]['id']&&_0x359997[_0x36d8d9(0x1db)][_0x36d8d9(0x4c4)]===this[_0x36d8d9(0x3c1)]){const _0x32ae8b=_0x359997['params'];this['_updateLocalCursor'](_0x32ae8b[_0x36d8d9(0x1e2)],_0x32ae8b[_0x36d8d9(0x4e8)][0x0]);}})));}[_0x23e0a9(0x157)](_0x2b0ef0){const _0x3eedbf=_0x23e0a9;var _0x2848c9,_0x1346a7;const {memberID:_0x13ea8a,selection:_0xf7b37f}=_0x2b0ef0[_0x3eedbf(0x2bd)],{sheetName:_0x570211,range:_0x50f0e7}=_0x339bdc[_0x3eedbf(0x317)](_0xf7b37f),_0x55a338={'name':(_0x1346a7=(_0x2848c9=this[_0x3eedbf(0x4be)][_0x3eedbf(0x4b3)](this['unitID'],_0x13ea8a))==null?void 0x0:_0x2848c9[_0x3eedbf(0x3cb)])!=null?_0x1346a7:_0x3eedbf(0x1a9),'range':this['_getMergeRange'](_0x570211,_0x50f0e7),'sheetID':_0x570211,'color':this[_0x3eedbf(0x2d8)]['assignAColorForMemberID'](_0x13ea8a),'selection':_0xf7b37f},_0x597bda=this[_0x3eedbf(0x301)];_0x597bda[_0x3eedbf(0x2f7)](_0x13ea8a,_0x55a338),this[_0x3eedbf(0x345)]['next'](_0x597bda);}[_0x23e0a9(0x2be)](_0x4a2963){const _0x54a3a1=_0x23e0a9,{memberID:_0x468247}=_0x4a2963[_0x54a3a1(0x2bd)],_0x98a3d4=this[_0x54a3a1(0x301)];_0x98a3d4['delete'](_0x468247),this[_0x54a3a1(0x345)][_0x54a3a1(0x3c8)](_0x98a3d4);}[_0x23e0a9(0x38a)](_0x7c4f75,_0xd1f6fc){const _0x5e6c44=_0x23e0a9;var _0x40911c,_0x108f0e;const _0x241b26=(_0x108f0e=(_0x40911c=this[_0x5e6c44(0x3c0)][_0x5e6c44(0x331)](this['unitID']))==null?void 0x0:_0x40911c[_0x5e6c44(0x35f)](_0x7c4f75))==null?void 0x0:_0x108f0e[_0x5e6c44(0x141)]();return(_0x241b26==null?void 0x0:_0x241b26[_0x5e6c44(0x34d)](_0x136391=>_0x3cac39[_0x5e6c44(0x35b)][_0x5e6c44(0x363)](_0x136391,_0xd1f6fc)))||_0xd1f6fc;}[_0x23e0a9(0x262)](){const _0xb388cb=_0x23e0a9,_0x3dd9bb=new _0x3cac39[(_0xb388cb(0x40d))](),_0x576f42=_0x2f1b3c(),_0x2fb21e=()=>{const _0x12126e=_0xb388cb;_0x3dd9bb[_0x12126e(0x250)]();const _0x9995da=(_0x1ef98a,_0x111d55,_0x374998,_0x4fea67)=>{const _0x177b03=_0x12126e;let _0x508c69=[];switch(_0x1ef98a['id']){case _0x52138d[_0x177b03(0x106)][_0x177b03(0x299)]:{_0x508c69=_0x52138d['handleDeleteRangeMoveLeft'](_0x1ef98a,_0x4fea67);break;}case _0x52138d[_0x177b03(0x106)][_0x177b03(0x21e)]:{_0x508c69=_0x52138d['handleDeleteRangeMoveUp'](_0x1ef98a,_0x4fea67);break;}case _0x52138d[_0x177b03(0x106)][_0x177b03(0x247)]:{_0x508c69=_0x52138d['handleInsertCol'](_0x1ef98a,_0x4fea67);break;}case _0x52138d[_0x177b03(0x106)][_0x177b03(0x1e3)]:{_0x508c69=_0x52138d[_0x177b03(0x246)](_0x1ef98a,_0x4fea67);break;}case _0x52138d[_0x177b03(0x106)][_0x177b03(0x3ee)]:{_0x508c69=_0x52138d[_0x177b03(0x213)](_0x1ef98a,_0x4fea67);break;}case _0x52138d[_0x177b03(0x106)][_0x177b03(0x39b)]:{_0x508c69=_0x52138d['handleInsertRow'](_0x1ef98a,_0x4fea67);break;}case _0x52138d['EffectRefRangId'][_0x177b03(0x1fe)]:{_0x508c69=_0x52138d[_0x177b03(0x4de)](_0x1ef98a,_0x4fea67);break;}case _0x52138d[_0x177b03(0x106)][_0x177b03(0x3fa)]:{_0x508c69=_0x52138d[_0x177b03(0x3db)](_0x1ef98a,_0x4fea67);break;}case _0x52138d[_0x177b03(0x106)][_0x177b03(0x205)]:{_0x508c69=_0x52138d[_0x177b03(0x261)](_0x1ef98a,_0x4fea67);break;}}const _0x58f471=_0x52138d[_0x177b03(0x4e1)](_0x508c69,_0x4fea67),_0x1972a4=this[_0x177b03(0x301)][_0x177b03(0x1c4)](_0x111d55);if(_0x1972a4&&_0x58f471){const _0x4d67d5={..._0x1972a4,'range':_0x58f471};this[_0x177b03(0x301)][_0x177b03(0x2f7)](_0x111d55,_0x4d67d5),_0x576f42(()=>{const _0xf4f796=_0x177b03,_0x165ed5=this[_0xf4f796(0x3b0)]['registerRefRange'](_0x58f471,_0x359466=>(_0x165ed5[_0xf4f796(0x250)](),_0x9995da(_0x359466,_0x111d55,_0x374998,_0x58f471)));_0x3dd9bb[_0xf4f796(0x117)](_0x165ed5);});}return{'redos':[],'undos':[]};};this[_0x12126e(0x301)][_0x12126e(0x2d4)]((_0x19ec78,_0x33a2c6)=>{const _0x47c458=_0x12126e,{range:_0x43741f,sheetID:_0x176c76}=_0x19ec78,_0x2ceb29=this[_0x47c458(0x3b0)][_0x47c458(0x470)](_0x43741f,_0x80cd07=>(_0x2ceb29[_0x47c458(0x250)](),_0x9995da(_0x80cd07,_0x33a2c6,_0x176c76,_0x43741f)));_0x3dd9bb[_0x47c458(0x117)](_0x2ceb29);});};this[_0xb388cb(0x382)](_0x3cac39['toDisposable'](this[_0xb388cb(0x345)][_0xb388cb(0x404)](()=>{_0x2fb21e();})));}[_0x23e0a9(0x383)](){const _0x41abca=_0x23e0a9;var _0xfd7b6c,_0x10a927;if(this[_0x41abca(0x445)]=!0x0,((_0xfd7b6c=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0xfd7b6c[_0x41abca(0x27c)]())!==this[_0x41abca(0x3c1)])return;const _0x183b48=(_0x10a927=this[_0x41abca(0x44b)][_0x41abca(0x1c4)](_0x52138d[_0x41abca(0x2f8)])['getCurrentSelections']())==null?void 0x0:_0x10a927[0x0],_0x3e6f87=this[_0x41abca(0x3c0)][_0x41abca(0x4ca)](_0x3cac39['UniverInstanceType'][_0x41abca(0xeb)])['getActiveSheet']();_0x183b48&&_0x3e6f87&&this[_0x41abca(0x239)](_0x3e6f87['getSheetId'](),_0x183b48);}['_toggleOffline'](){const _0x377dd3=_0x23e0a9;this[_0x377dd3(0x445)]=!0x1;}};_0x1e4be7=_0x37ec4b([_0x4c303f(0x2,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x137)])),_0x4c303f(0x3,_0x3cac39['Inject'](_0xa7f099)),_0x4c303f(0x4,_0x3cac39[_0x23e0a9(0xce)](_0x2b8623)),_0x4c303f(0x5,_0x3cac39[_0x23e0a9(0x3ef)]),_0x4c303f(0x6,_0x3cac39['ICommandService']),_0x4c303f(0x7,_0x3cac39[_0x23e0a9(0xce)](_0x52138d[_0x23e0a9(0x11a)]))],_0x1e4be7);var _0x2a5b50=Object['defineProperty'],_0xf12178=Object[_0x23e0a9(0x4ac)],_0x121df2=(_0x2a94c5,_0xae9d91,_0x1c7aac,_0x5b2fe2)=>{const _0x28b30c=_0x23e0a9;for(var _0x293517=_0x5b2fe2>0x1?void 0x0:_0x5b2fe2?_0xf12178(_0xae9d91,_0x1c7aac):_0xae9d91,_0x36e17f=_0x2a94c5[_0x28b30c(0x480)]-0x1,_0x2e44c4;_0x36e17f>=0x0;_0x36e17f--)(_0x2e44c4=_0x2a94c5[_0x36e17f])&&(_0x293517=(_0x5b2fe2?_0x2e44c4(_0xae9d91,_0x1c7aac,_0x293517):_0x2e44c4(_0x293517))||_0x293517);return _0x5b2fe2&&_0x293517&&_0x2a5b50(_0xae9d91,_0x1c7aac,_0x293517),_0x293517;},_0x11bb0a=(_0xcde007,_0xf6585d)=>(_0x348478,_0x4af22a)=>_0xf6585d(_0x348478,_0x4af22a,_0xcde007);let _0x2430d6=class extends _0x3cac39[_0x23e0a9(0x4b1)]{constructor(_0x3648e0,_0x465879,_0x161b62){const _0xe0c522=_0x23e0a9;super(),_0x56bf3b(this,_0xe0c522(0x352),new Map()),_0x56bf3b(this,_0xe0c522(0x4e9),new _0x2132a7['Subject']()),(this['_univerInstanceService']=_0x3648e0,this[_0xe0c522(0x44b)]=_0x465879,this[_0xe0c522(0xb3)]=_0x161b62,this[_0xe0c522(0x1df)]());}[_0x23e0a9(0x250)](){const _0x5b9acc=_0x23e0a9;super['dispose'](),this[_0x5b9acc(0x4e9)][_0x5b9acc(0x1be)](),this[_0x5b9acc(0x352)][_0x5b9acc(0x2d4)](_0x48a2d3=>_0x48a2d3[_0x5b9acc(0x250)]());}['getCollabCursors$'](_0x1a02d0){const _0x6bdf0b=_0x23e0a9;return this[_0x6bdf0b(0x352)][_0x6bdf0b(0x1ad)](_0x1a02d0)?this['_entities'][_0x6bdf0b(0x1c4)](_0x1a02d0)[_0x6bdf0b(0x1c9)]:this[_0x6bdf0b(0x4e9)][_0x6bdf0b(0x19e)](_0x2132a7[_0x6bdf0b(0x366)](_0x36eb32=>_0x36eb32['unitID']===_0x1a02d0),_0x2132a7[_0x6bdf0b(0x2d7)](_0x44deff=>_0x44deff[_0x6bdf0b(0x1c9)]));}['_init'](){const _0x323e37=_0x23e0a9;this[_0x323e37(0x3c0)][_0x323e37(0x4c0)](_0x3cac39[_0x323e37(0x42b)]['UNIVER_SHEET'])[_0x323e37(0x19e)](_0x2132a7[_0x323e37(0x2dd)](this[_0x323e37(0xfd)]))[_0x323e37(0x404)](async _0x207d66=>{const _0x28cf2d=_0x323e37,_0x5008ee=_0x207d66[_0x28cf2d(0x27c)](),_0x163648=await this[_0x28cf2d(0x4c9)](_0x5008ee);this[_0x28cf2d(0x4e9)][_0x28cf2d(0x3c8)](_0x163648),this[_0x28cf2d(0x352)][_0x28cf2d(0x2f7)](_0x5008ee,_0x163648);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3cac39['UniverInstanceType'][_0x323e37(0x28c)])[_0x323e37(0x19e)](_0x2132a7['takeUntil'](this[_0x323e37(0xfd)]))['pipe'](_0x2132a7[_0x323e37(0x366)](_0x53e384=>!_0x53e384['getUnitId']()[_0x323e37(0x486)]('__')))[_0x323e37(0x404)](async _0x13abe1=>{const _0x39c0c1=_0x323e37,_0x223ec2=_0x13abe1[_0x39c0c1(0x27c)](),_0x335056=await this['_startDocCollabCursor'](_0x223ec2);this[_0x39c0c1(0x4e9)]['next'](_0x335056),this[_0x39c0c1(0x352)][_0x39c0c1(0x2f7)](_0x223ec2,_0x335056);}),_0x2132a7[_0x323e37(0x2f3)](this[_0x323e37(0x3c0)][_0x323e37(0x39c)](_0x3cac39[_0x323e37(0x42b)][_0x323e37(0x28c)]),this[_0x323e37(0x3c0)][_0x323e37(0x39c)](_0x3cac39['UniverInstanceType'][_0x323e37(0xeb)]))[_0x323e37(0x19e)](_0x2132a7[_0x323e37(0x2dd)](this[_0x323e37(0xfd)]))['subscribe'](_0x20d2ea=>{const _0x207eb2=_0x323e37,_0x5082bb=_0x20d2ea[_0x207eb2(0x27c)](),_0x179f48=this[_0x207eb2(0x352)][_0x207eb2(0x1c4)](_0x5082bb);_0x179f48&&(_0x179f48['dispose'](),this[_0x207eb2(0x352)]['delete'](_0x5082bb));});}async[_0x23e0a9(0x4c9)](_0x300b3e){const _0x4d3f89=_0x23e0a9,_0x1f585c=await this['_collabSessionService'][_0x4d3f89(0x42e)](_0x300b3e),_0x7714ad=this[_0x4d3f89(0x44b)][_0x4d3f89(0x4d0)](_0x1e4be7,_0x300b3e,_0x1f585c);return _0x7714ad[_0x4d3f89(0x19b)](),_0x7714ad;}async['_startDocCollabCursor'](_0x9c48e6){const _0x5e48ce=_0x23e0a9,_0x2eb5ae=await this[_0x5e48ce(0xb3)][_0x5e48ce(0x42e)](_0x9c48e6),_0x563bee=this[_0x5e48ce(0x44b)]['createInstance'](_0x129969,_0x9c48e6,_0x2eb5ae);return _0x563bee[_0x5e48ce(0x19b)](),_0x563bee;}};_0x2430d6=_0x121df2([_0x11bb0a(0x0,_0x3cac39[_0x23e0a9(0x3ef)]),_0x11bb0a(0x1,_0x3cac39['Inject'](_0x3cac39['Injector'])),_0x11bb0a(0x2,_0x3cac39[_0x23e0a9(0xce)](_0x78d65c['CollaborationSessionService']))],_0x2430d6);const _0x464057=0x14,_0x4f9371=0xc8,_0x5cb3a3=0x4,_0x153e1f=0x5;function _0x4be798(_0x53a510,_0x2617e7){const _0x23338a=_0x23e0a9;let {radius:_0x35df61,width:_0x217746,height:_0x1d29c1}=_0x2617e7;_0x35df61=_0x35df61!=null?_0x35df61:0x0,_0x217746=_0x217746!=null?_0x217746:0x1e,_0x1d29c1=_0x1d29c1!=null?_0x1d29c1:0x1e;let _0x4b56d1=0x0,_0x37703d=0x0,_0x21d02f=0x0;_0x4b56d1=_0x37703d=_0x21d02f=Math['min'](_0x35df61,_0x217746/0x2,_0x1d29c1/0x2),_0x53a510[_0x23338a(0x350)](),_0x53a510[_0x23338a(0x2cd)](_0x4b56d1,0x0),_0x53a510[_0x23338a(0x18a)](_0x217746-_0x37703d,0x0),_0x53a510[_0x23338a(0x182)](_0x217746-_0x37703d,_0x37703d,_0x37703d,Math['PI']*0x3/0x2,0x0,!0x1),_0x53a510[_0x23338a(0x18a)](_0x217746,_0x1d29c1-_0x21d02f),_0x53a510[_0x23338a(0x182)](_0x217746-_0x21d02f,_0x1d29c1-_0x21d02f,_0x21d02f,0x0,Math['PI']/0x2,!0x1),_0x53a510[_0x23338a(0x18a)](0x0,_0x1d29c1),_0x53a510[_0x23338a(0x18a)](0x0,_0x4b56d1),_0x53a510['arc'](_0x4b56d1,_0x4b56d1,_0x4b56d1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x53a510[_0x23338a(0x21c)](),_0x2617e7['fill']&&(_0x53a510[_0x23338a(0x489)](),_0x53a510[_0x23338a(0x4d2)]=_0x2617e7[_0x23338a(0x1a1)],_0x2617e7['fillRule']===_0x23338a(0x10c)?_0x53a510[_0x23338a(0x1a1)](_0x23338a(0x10c)):_0x53a510['fill'](),_0x53a510[_0x23338a(0x322)]());}class _0x28952a extends _0x571c77[_0x23e0a9(0x485)]{constructor(_0x4054ed,_0x503e86){const _0x17e749=_0x23e0a9;super(_0x4054ed,_0x503e86),_0x56bf3b(this,'color'),_0x56bf3b(this,_0x17e749(0x279)),(this['color']=_0x503e86==null?void 0x0:_0x503e86[_0x17e749(0x493)],this['text']=_0x503e86==null?void 0x0:_0x503e86[_0x17e749(0x279)]);}static[_0x23e0a9(0x151)](_0x4379ee,_0x383075){const _0x548716=_0x23e0a9,{text:_0xa70b2b,color:_0x25eeba}=_0x383075;_0x4379ee[_0x548716(0x489)](),_0x4379ee['font']=_0x548716(0x146);const _0x5a19c2=_0x4379ee[_0x548716(0x43b)](_0xa70b2b)[_0x548716(0x4a1)],_0x49ba61=Math[_0x548716(0x389)](_0x5a19c2+0x2*_0x5cb3a3,_0x4f9371);_0x4be798(_0x4379ee,{'height':_0x464057,'radius':0x4,'width':_0x49ba61,'fill':_0x25eeba,'evented':!0x1}),_0x4379ee[_0x548716(0x4d2)]=_0x548716(0x3fc);const _0x57912f=_0x5cb3a3,_0x4d49ac=_0x464057-_0x153e1f,_0x37aa15=_0x4f9371-0x2*_0x5cb3a3;if(_0x5a19c2>_0x37aa15){let _0xfcd6b8='',_0x314150=0x0;for(const _0x5b2289 of _0xa70b2b){const _0x52beee=_0x4379ee[_0x548716(0x43b)](_0x5b2289)[_0x548716(0x4a1)];if(_0x314150+_0x52beee<=_0x37aa15-_0x4379ee[_0x548716(0x43b)](_0x548716(0xd8))['width'])_0xfcd6b8+=_0x5b2289,_0x314150+=_0x52beee;else{_0xfcd6b8+='...';break;}}_0x4379ee[_0x548716(0x225)](_0xfcd6b8,_0x57912f,_0x4d49ac);}else _0x4379ee[_0x548716(0x225)](_0xa70b2b,_0x57912f,_0x4d49ac);_0x4379ee[_0x548716(0x322)]();}[_0x23e0a9(0x231)](_0x281fac){_0x28952a['drawWith'](_0x281fac,this);}}const _0x5d07bb=_0x23e0a9(0x3e7),_0x3c3045=_0x23e0a9(0x33b),_0x4b0356='collab-rect-range-',_0x20771c=0x6,_0x535470=1.5,_0x1ecb02=0x4,_0x37f0a4=1.5,_0x2a245e='rgba(255,\x20255,\x20255,\x200.01)';class _0x20806f{constructor(_0x3e2ee9,_0x149ca5,_0x305d65,_0x27c634){const _0x538676=_0x23e0a9;_0x56bf3b(this,_0x538676(0xf7),[]),_0x56bf3b(this,_0x538676(0x4dd),null),_0x56bf3b(this,_0x538676(0x284),null),_0x56bf3b(this,_0x538676(0xd0),null),_0x56bf3b(this,'_hideTimer',null),_0x56bf3b(this,_0x538676(0x156),null),(this[_0x538676(0x43f)]=_0x3e2ee9,this['_scene']=_0x149ca5,this[_0x538676(0xcb)]=_0x305d65,this[_0x538676(0x4e5)]=_0x27c634,this[_0x538676(0x4a3)]());}set[_0x23e0a9(0x44c)](_0x262ff1){const _0x13c020=_0x23e0a9;_0x262ff1?(this[_0x13c020(0xd0)]&&this['_anchorDot'][_0x13c020(0x4c8)](),this[_0x13c020(0x284)]&&this[_0x13c020(0x284)]['show']()):(this[_0x13c020(0xd0)]&&this[_0x13c020(0xd0)][_0x13c020(0x1d2)](),this[_0x13c020(0x284)]&&this[_0x13c020(0x284)][_0x13c020(0x4c8)]());}[_0x23e0a9(0x250)](){const _0x2e4740=_0x23e0a9;for(const _0x51b0e7 of this[_0x2e4740(0xf7)])_0x51b0e7['dispose']();this['_textBubble']&&this[_0x2e4740(0x284)][_0x2e4740(0x250)](),this[_0x2e4740(0xd0)]&&this['_anchorDot'][_0x2e4740(0x250)](),this[_0x2e4740(0x4dd)]&&this['_anchor'][_0x2e4740(0x250)](),this[_0x2e4740(0x156)]&&this['_eventUnsubscribe']();}[_0x23e0a9(0x4a3)](){const _0x16636b=_0x23e0a9;var _0x32ca2d;const {_docSkeleton:_0x66acc1,_document:_0x27ba92}=this,{color:_0x275453,name:_0x1729eb,ranges:_0x552d01}=this['_cursor'],_0x16640e=_0x27ba92[_0x16636b(0x161)](),{docsLeft:_0x354b4c,docsTop:_0x4f6318}=_0x16640e,_0x25a29d=new _0x2c2d98[(_0x16636b(0x4cf))](_0x16640e,_0x66acc1);for(const {startOffset:_0x27e9bc,endOffset:_0x4726bd,collapsed:_0x53a49e,isActive:_0x51a2f3}of _0x552d01){const _0x6dec95=_0x66acc1[_0x16636b(0x48c)](_0x27e9bc),_0x268ff7=_0x66acc1['findNodePositionByCharIndex'](_0x4726bd);if(_0x51a2f3){const {contentBoxPointGroup:_0x14d808}=_0x25a29d[_0x16636b(0x4e7)](_0x268ff7,_0x268ff7);if(_0x14d808['length']===0x0)continue;this[_0x16636b(0x339)](_0x275453,_0x14d808,_0x354b4c,_0x4f6318,_0x1729eb),this[_0x16636b(0x156)]=this['_handleHover']();}if(!_0x53a49e&&_0x6dec95&&_0x268ff7){if(_0x2c2d98[_0x16636b(0x1ab)](_0x6dec95,_0x268ff7)){const _0x3d1211=new _0x2c2d98[(_0x16636b(0x220))](_0x16640e,_0x66acc1),{pointGroup:_0xda88be}=(_0x32ca2d=_0x3d1211[_0x16636b(0x4e7)](_0x6dec95,_0x268ff7))!=null?_0x32ca2d:{};if(_0xda88be==null||_0xda88be['length']===0x0)continue;this[_0x16636b(0x4b9)](_0x275453,_0xda88be,_0x354b4c,_0x4f6318);}else{const {contentBoxPointGroup:_0x4bb6f0}=_0x25a29d[_0x16636b(0x4e7)](_0x6dec95,_0x268ff7);if(_0x4bb6f0[_0x16636b(0x480)]===0x0)continue;this[_0x16636b(0x4d4)](_0x275453,_0x4bb6f0,_0x354b4c,_0x4f6318);}}}}[_0x23e0a9(0x339)](_0x88b1aa,_0x5249f9,_0x4d5585,_0x135003,_0x2ba32e){const _0x5caf03=_0x23e0a9,_0x203e0b=this['_getAnchorBounding'](_0x5249f9),{left:_0x43080d,top:_0x14b7b6,height:_0x247913}=_0x203e0b,_0x3bcf6a=this[_0x5caf03(0x411)](),_0x2c4e8b=_0x37f0a4/_0x3bcf6a,_0x137110=new _0x571c77[(_0x5caf03(0x35a))](_0x5d07bb+_0x3cac39['Tools'][_0x5caf03(0x275)](_0x20771c),{'left':_0x43080d+_0x4d5585-_0x2c4e8b,'top':_0x14b7b6+_0x135003,'height':_0x247913,'width':_0x535470,'fill':_0x88b1aa||_0x571c77[_0x5caf03(0x2e1)](_0x3cac39[_0x5caf03(0x46b)][_0x5caf03(0xe8)],0x0),'strokeWidth':_0x2c4e8b,'stroke':_0x2a245e,'evented':!0x0});this[_0x5caf03(0x4dd)]=_0x137110,this[_0x5caf03(0x2aa)]['addObject'](_0x137110,_0x2c2d98[_0x5caf03(0x2fd)]);const _0x28e49d=new _0x571c77[(_0x5caf03(0x35a))](_0x5d07bb+_0x3cac39[_0x5caf03(0x4bf)][_0x5caf03(0x275)](_0x20771c),{'left':_0x43080d+_0x4d5585-_0x2c4e8b,'top':_0x14b7b6+_0x135003-_0x1ecb02/0x2,'height':_0x1ecb02,'width':_0x1ecb02,'fill':_0x88b1aa||_0x571c77[_0x5caf03(0x2e1)](_0x3cac39[_0x5caf03(0x46b)][_0x5caf03(0xe8)],0x0),'strokeWidth':0x0,'stroke':_0x88b1aa||_0x571c77[_0x5caf03(0x2e1)](_0x3cac39[_0x5caf03(0x46b)][_0x5caf03(0xe8)],0x0),'evented':!0x1});this[_0x5caf03(0xd0)]=_0x28e49d,this[_0x5caf03(0x2aa)][_0x5caf03(0x1af)](_0x28e49d,_0x2c2d98[_0x5caf03(0x2fd)]);const _0x113221=new _0x28952a(_0x5d07bb+_0x3cac39['Tools']['generateRandomId'](_0x20771c),{'left':_0x43080d+_0x4d5585-_0x2c4e8b,'top':_0x14b7b6+_0x135003-_0x464057,'text':_0x2ba32e,'color':_0x88b1aa});this['_textBubble']=_0x113221,this[_0x5caf03(0x2aa)][_0x5caf03(0x1af)](_0x113221,_0x2c2d98['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}['_handleHover'](){const _0x10a084=_0x23e0a9,_0xc99341=this['_anchor'][_0x10a084(0x48e)][_0x10a084(0x453)](()=>{const _0x3bb5a8=_0x10a084;this[_0x3bb5a8(0x44c)]=!0x0;}),_0x19fac1=this[_0x10a084(0x4dd)][_0x10a084(0xd1)]['subscribeEvent'](()=>{const _0x3ae073=_0x10a084;this['_hideTimer']&&clearTimeout(this['_hideTimer']),this[_0x3ae073(0x10d)]=setTimeout(()=>{const _0x3f33da=_0x3ae073;this[_0x3f33da(0x44c)]=!0x1;},0x7d0);});return()=>{const _0x54e442=_0x10a084;_0xc99341[_0x54e442(0x4df)](),_0x19fac1[_0x54e442(0x4df)]();};}['_drawTextRange'](_0x136fd9,_0x4c30ce,_0x4e3a67,_0x388a1e){const _0x55c161=_0x23e0a9,_0xad5cb2=new _0x3cac39[(_0x55c161(0x158))](_0x136fd9)['setAlpha'](0.2)[_0x55c161(0x461)](),_0x1aaa79=new _0x571c77[(_0x55c161(0x3b9))](_0x3c3045+_0x3cac39[_0x55c161(0x4bf)][_0x55c161(0x275)](_0x20771c),{'pointsGroup':_0x4c30ce,'fill':_0xad5cb2||_0x571c77[_0x55c161(0x2e1)](_0x3cac39[_0x55c161(0x46b)]['black'],0.2),'left':_0x4e3a67,'top':_0x388a1e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x55c161(0xf7)]['push'](_0x1aaa79),this[_0x55c161(0x2aa)][_0x55c161(0x1af)](_0x1aaa79,_0x2c2d98[_0x55c161(0x2fd)]);}[_0x23e0a9(0x4b9)](_0x5ca0c9,_0x1f36fe,_0x523445,_0x1df134){const _0x22be18=_0x23e0a9,_0x6edee8=new _0x3cac39[(_0x22be18(0x158))](_0x5ca0c9)[_0x22be18(0x2c8)](0.2)[_0x22be18(0x461)](),_0x2b3bba=new _0x571c77['RegularPolygon'](_0x4b0356+_0x3cac39[_0x22be18(0x4bf)]['generateRandomId'](_0x20771c),{'pointsGroup':_0x1f36fe,'fill':_0x6edee8||_0x571c77[_0x22be18(0x2e1)](_0x3cac39['COLORS'][_0x22be18(0xe8)],0.2),'left':_0x523445,'top':_0x1df134,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x22be18(0xf7)][_0x22be18(0xcc)](_0x2b3bba),this[_0x22be18(0x2aa)][_0x22be18(0x1af)](_0x2b3bba,_0x2c2d98[_0x22be18(0x2fd)]);}['_getAnchorBounding'](_0x3d5db6){const _0x45490d=_0x3d5db6[0x0],_0x474e61=_0x45490d[0x0],_0x28c1db=_0x45490d[0x2],{x:_0x26ea55,y:_0x385e8a}=_0x474e61,{x:_0x31a404,y:_0x5bf63c}=_0x28c1db;return{'left':_0x26ea55,'top':_0x385e8a,'width':_0x31a404-_0x26ea55,'height':_0x5bf63c-_0x385e8a};}[_0x23e0a9(0x411)](){const _0x4a0ec8=_0x23e0a9,{scaleX:_0xc34c9a,scaleY:_0x40165e}=this['_scene']['getAncestorScale']();return Math[_0x4a0ec8(0xb9)](_0xc34c9a,_0x40165e);}}var _0x309512=Object['defineProperty'],_0x1e4a05=Object[_0x23e0a9(0x4ac)],_0x5a4a6a=(_0x536ceb,_0x550942,_0x2b4834,_0x29b6ad)=>{const _0x54235f=_0x23e0a9;for(var _0xb2b8e2=_0x29b6ad>0x1?void 0x0:_0x29b6ad?_0x1e4a05(_0x550942,_0x2b4834):_0x550942,_0x559a7e=_0x536ceb[_0x54235f(0x480)]-0x1,_0x595ab2;_0x559a7e>=0x0;_0x559a7e--)(_0x595ab2=_0x536ceb[_0x559a7e])&&(_0xb2b8e2=(_0x29b6ad?_0x595ab2(_0x550942,_0x2b4834,_0xb2b8e2):_0x595ab2(_0xb2b8e2))||_0xb2b8e2);return _0x29b6ad&&_0xb2b8e2&&_0x309512(_0x550942,_0x2b4834,_0xb2b8e2),_0xb2b8e2;},_0x5e9e9d=(_0x15f7fd,_0x2edc6a)=>(_0x3b781a,_0x1f3df4)=>_0x2edc6a(_0x3b781a,_0x1f3df4,_0x15f7fd);let _0x6af6d2=class extends _0x3cac39['RxDisposable']{constructor(_0x44d9ab,_0x234816,_0x6775c2,_0xf59d1f,_0x42de20){const _0x45021f=_0x23e0a9;super(),_0x56bf3b(this,_0x45021f(0x23a),[]),_0x56bf3b(this,_0x45021f(0x3ca),[]),(this[_0x45021f(0x131)]=_0x44d9ab,this[_0x45021f(0x457)]=_0x234816,this['_collabCursorController']=_0x6775c2,this[_0x45021f(0x31d)]=_0xf59d1f,this[_0x45021f(0x2bb)]=_0x42de20,this[_0x45021f(0x1df)]());}[_0x23e0a9(0x1df)](){const _0x3dac1f=_0x23e0a9,_0x48a70c=this[_0x3dac1f(0x131)]['unitId'],_0x37aa84=this[_0x3dac1f(0x457)];this['disposeWithMe'](_0x2132a7[_0x3dac1f(0x455)]([this[_0x3dac1f(0x27f)]['getCollabCursors$'](_0x48a70c),this[_0x3dac1f(0x2bb)][_0x3dac1f(0x107)]])[_0x3dac1f(0x19e)](_0x2b32ae[_0x3dac1f(0x2f1)](([_0x359a79,_0xa95648])=>({'skeleton':_0x37aa84['getSkeleton'](),'cursors':[..._0x359a79[_0x3dac1f(0x33a)]()][_0x3dac1f(0x34f)](_0x228637=>({..._0x228637,'color':_0xa95648[_0x228637[_0x3dac1f(0x493)]]}))})))['subscribe'](_0x23faec=>{const _0x1f3a8f=_0x3dac1f;if(this[_0x1f3a8f(0x41f)](),_0x23faec){const {skeleton:_0xc43ccf,cursors:_0x6c682b}=_0x23faec;this['_updateCollabCursors'](_0xc43ccf,_0x6c682b);}})),this[_0x3dac1f(0x456)](),this[_0x3dac1f(0x1f9)]();}[_0x23e0a9(0x38f)](_0x472770,_0x849b77){const _0x333240=_0x23e0a9,{scene:_0xcb07a7,mainComponent:_0x373057}=this[_0x333240(0x131)],_0x3d2776=_0x849b77[_0x333240(0x2f1)](_0x44a279=>new _0x20806f(_0x44a279,_0xcb07a7,_0x472770,_0x373057));this[_0x333240(0x23a)]=_0x3d2776,this[_0x333240(0x3ca)]=_0x849b77;}[_0x23e0a9(0x266)](){const _0xbd752a=_0x23e0a9;this[_0xbd752a(0x41f)]();const {scene:_0x442e81,mainComponent:_0x3ffdc6}=this[_0xbd752a(0x131)],_0x36854a=this[_0xbd752a(0x457)][_0xbd752a(0x40e)](),_0x3ec466=this[_0xbd752a(0x3ca)][_0xbd752a(0x2f1)](_0x1655d1=>new _0x20806f(_0x1655d1,_0x442e81,_0x36854a,_0x3ffdc6));this[_0xbd752a(0x23a)]=_0x3ec466;}['_removeCollabCursors'](){const _0x308a5c=_0x23e0a9;this[_0x308a5c(0x23a)][_0x308a5c(0x2d4)](_0x17f013=>_0x17f013[_0x308a5c(0x250)]()),this[_0x308a5c(0x23a)]=[];}['_initCommandExecutedListener'](){const _0xe76f54=_0x23e0a9,_0x39048d=[_0x2c2d98[_0xe76f54(0x149)]['id']];this[_0xe76f54(0x382)](this['_commandService']['onCommandExecuted'](_0x3f323b=>{const _0xdb17fa=_0xe76f54;_0x39048d[_0xdb17fa(0x13e)](_0x3f323b['id'])&&_0x3f323b[_0xdb17fa(0x1db)][_0xdb17fa(0x4c4)]===this['_context'][_0xdb17fa(0x4c4)]&&this[_0xdb17fa(0x266)]();}));}[_0x23e0a9(0x456)](){const _0x536402=_0x23e0a9;this[_0x536402(0x382)](_0x3cac39[_0x536402(0x37e)](this[_0x536402(0x131)]['engine']['onTransformChange$'])[_0x536402(0x19e)](_0x2b32ae['filter'](_0x5beda7=>_0x5beda7['type']===_0x571c77[_0x536402(0x414)]['resize']),_0x2b32ae['throttleTime'](0x10))[_0x536402(0x404)](()=>{const _0x817870=_0x536402;this[_0x817870(0x266)]();}));}};_0x6af6d2=_0x5a4a6a([_0x5e9e9d(0x1,_0x3cac39[_0x23e0a9(0xce)](_0x56b563[_0x23e0a9(0x1f6)])),_0x5e9e9d(0x2,_0x3cac39[_0x23e0a9(0xce)](_0x2430d6)),_0x5e9e9d(0x3,_0x3cac39[_0x23e0a9(0x368)]),_0x5e9e9d(0x4,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x20a)]))],_0x6af6d2);const _0x427436=0x1,_0x1c5ea0=1.5;class _0x51465b extends _0x571c77['Shape']{constructor(_0x3f26a7,_0x183c62){const _0x5842e8=_0x23e0a9;super(_0x3f26a7,_0x183c62),_0x56bf3b(this,'_color'),_0x56bf3b(this,_0x5842e8(0x4d8),!0x1),_0x56bf3b(this,_0x5842e8(0x4ea)),_0x56bf3b(this,'_name',''),_0x56bf3b(this,_0x5842e8(0x22d),_0x5842e8(0x16c)),_0x56bf3b(this,_0x5842e8(0x450)),(_0x183c62&&this[_0x5842e8(0x168)](_0x183c62),this['onPointerEnter$'][_0x5842e8(0x453)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x5842e8(0xd1)]['subscribeEvent'](()=>this[_0x5842e8(0x168)]({'hovered':!0x1})));}[_0x23e0a9(0x168)](_0x107b43){const _0xbf498d=_0x23e0a9;var _0x275924,_0x54f623,_0x1b2190,_0x58309b,_0x56a360,_0x587c28;this[_0xbf498d(0x32a)]=(_0x275924=_0x107b43[_0xbf498d(0x493)])!=null?_0x275924:this[_0xbf498d(0x32a)],this[_0xbf498d(0x4d8)]=(_0x54f623=_0x107b43['hovered'])!=null?_0x54f623:this[_0xbf498d(0x4d8)],this[_0xbf498d(0x4ea)]=(_0x1b2190=_0x107b43['range'])!=null?_0x1b2190:this['_range'],this['_name']=(_0x58309b=_0x107b43['name'])!=null?_0x58309b:this['_name'],this[_0xbf498d(0x22d)]=(_0x56a360=_0x107b43['labelPosition'])!=null?_0x56a360:this[_0xbf498d(0x22d)],this['_backgroundColor']=(_0x587c28=_0x107b43[_0xbf498d(0x298)])!=null?_0x587c28:this[_0xbf498d(0x450)],this['transformByState']({'width':_0x107b43[_0xbf498d(0x4a1)],'height':_0x107b43[_0xbf498d(0x2b5)]});}[_0x23e0a9(0x140)](_0x2e2786){const _0x4617ee=_0x23e0a9,{row:_0x327c88,column:_0xe4fd0e}=_0x2e2786;if(_0x327c88>=this[_0x4617ee(0x4ea)][_0x4617ee(0x19f)]&&_0x327c88<=this[_0x4617ee(0x4ea)][_0x4617ee(0x15b)]&&_0xe4fd0e>=this[_0x4617ee(0x4ea)][_0x4617ee(0x30e)]&&_0xe4fd0e<=this[_0x4617ee(0x4ea)][_0x4617ee(0x17a)]){this[_0x4617ee(0x168)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x23e0a9(0xbf)](_0x465561){return!0x1;}[_0x23e0a9(0x231)](_0x58b758){const _0x20b2dd=_0x23e0a9;_0x571c77[_0x20b2dd(0x35a)]['drawWith'](_0x58b758,{'width':this[_0x20b2dd(0x4a1)],'height':this[_0x20b2dd(0x2b5)],'strokeWidth':_0x1c5ea0,'stroke':this[_0x20b2dd(0x32a)],'evented':!0x1,'fill':this[_0x20b2dd(0x450)]}),this[_0x20b2dd(0x4d8)]&&(_0x58b758[_0x20b2dd(0x489)](),_0x58b758[_0x20b2dd(0x422)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x20b2dd(0x10b)?0x0:-_0x464057),_0x28952a[_0x20b2dd(0x151)](_0x58b758,{'text':this['_name'],'color':this[_0x20b2dd(0x32a)]}),_0x58b758[_0x20b2dd(0x322)]());}}var _0x255a50=Object[_0x23e0a9(0x2e3)],_0x210c8d=Object['getOwnPropertyDescriptor'],_0x2e9355=(_0x39cdff,_0x586733,_0x30bd10,_0x4feaba)=>{const _0x3dc212=_0x23e0a9;for(var _0x128247=_0x4feaba>0x1?void 0x0:_0x4feaba?_0x210c8d(_0x586733,_0x30bd10):_0x586733,_0x48be1d=_0x39cdff[_0x3dc212(0x480)]-0x1,_0x523c53;_0x48be1d>=0x0;_0x48be1d--)(_0x523c53=_0x39cdff[_0x48be1d])&&(_0x128247=(_0x4feaba?_0x523c53(_0x586733,_0x30bd10,_0x128247):_0x523c53(_0x128247))||_0x128247);return _0x4feaba&&_0x128247&&_0x255a50(_0x586733,_0x30bd10,_0x128247),_0x128247;},_0x1a531c=(_0x561c1d,_0x49f89e)=>(_0x1a1b60,_0x5969e0)=>_0x49f89e(_0x1a1b60,_0x5969e0,_0x561c1d);const _0x2b9bb0=0x1389;let _0x5af942=class extends _0x3cac39[_0x23e0a9(0x4b1)]{constructor(_0x357b2c,_0x247145,_0x11b17f,_0x2ffe63){const _0x58912f=_0x23e0a9;super(),_0x56bf3b(this,_0x58912f(0x3ca),new Set()),_0x56bf3b(this,_0x58912f(0x38c),null),(this[_0x58912f(0x131)]=_0x357b2c,this[_0x58912f(0x372)]=_0x247145,this['_collabCursorController']=_0x11b17f,this['_themeService']=_0x2ffe63,this[_0x58912f(0x1df)]());}[_0x23e0a9(0x1df)](){const _0x411053=_0x23e0a9;this['_sheetSkeletonManagerService'][_0x411053(0x17e)][_0x411053(0x19e)](_0x2b32ae[_0x411053(0x2dd)](this['dispose$']),_0x2b32ae[_0x411053(0x2d7)](_0x1081d3=>{const _0x287f20=_0x411053;if(_0x1081d3){const _0x2f2a28=_0x1081d3[_0x287f20(0x4e6)];return _0x2132a7[_0x287f20(0x455)](this['_collabCursorController'][_0x287f20(0x173)](this['_context'][_0x287f20(0x4c4)]),this[_0x287f20(0x2bb)][_0x287f20(0x107)])['pipe'](_0x2b32ae[_0x287f20(0x2f1)](([_0x978af1,_0x2f6147])=>{const _0x613097=new Map();return _0x978af1['forEach']((_0x3f7780,_0x4cbae1)=>{const _0x5d8705=_0x28b7;if(_0x3f7780[_0x5d8705(0x29b)]===_0x2f2a28){const _0x39f88e={..._0x3f7780};_0x39f88e[_0x5d8705(0x493)]=_0x2f6147[_0x3f7780[_0x5d8705(0x493)]],_0x613097[_0x5d8705(0x2f7)](_0x4cbae1,_0x39f88e);}}),{'skeleton':_0x1081d3,'cursors':_0x613097};}));}return _0x2132a7['of']({'skeleton':null,'cursors':new Map()});}))[_0x411053(0x404)](({skeleton:_0x5d6063,cursors:_0x5e1027})=>{const _0x3ef0ba=_0x411053;this[_0x3ef0ba(0x41f)](),_0x5d6063&&this[_0x3ef0ba(0x38f)](_0x5d6063,_0x5e1027);}),this[_0x411053(0x372)][_0x411053(0x17e)][_0x411053(0x404)](_0x2630b1=>{const _0x43ecd1=_0x411053;if(_0x2630b1==null)return;const {skeleton:_0x5aa623}=_0x2630b1,{scene:_0x5b4b43}=this[_0x43ecd1(0x131)];_0x5b4b43['onPointerMove$'][_0x43ecd1(0x453)](_0x3cac39[_0x43ecd1(0x154)](_0x3c147c=>{const _0x530365=_0x43ecd1;var _0x195262,_0x5a9763;const {offsetX:_0x31acc3,offsetY:_0x3879c3}=_0x3c147c,{x:_0x4afb67,y:_0x3acc8f}=_0x5b4b43[_0x530365(0x1e9)](_0x571c77[_0x530365(0x176)][_0x530365(0x479)]([_0x31acc3,_0x3879c3])),{scaleX:_0x4ae5ee,scaleY:_0x1a475c}=_0x5b4b43[_0x530365(0x20d)](),_0x3831ae=_0x5b4b43[_0x530365(0x109)](_0x2a1992[_0x530365(0x31c)][_0x530365(0x36e)]),_0x4aeeab=_0x5b4b43[_0x530365(0x1b8)](_0x571c77[_0x530365(0x176)][_0x530365(0x479)]([_0x4afb67,_0x3acc8f]),_0x3831ae),_0x4d57e0=_0x5aa623[_0x530365(0x4a7)](_0x31acc3,_0x3879c3,_0x4ae5ee,_0x1a475c,_0x4aeeab);((_0x195262=this[_0x530365(0x38c)])==null?void 0x0:_0x195262[_0x530365(0xd7)])===_0x4d57e0[_0x530365(0xd7)]&&((_0x5a9763=this[_0x530365(0x38c)])==null?void 0x0:_0x5a9763[_0x530365(0x43a)])===_0x4d57e0[_0x530365(0x43a)]||this[_0x530365(0x3ca)][_0x530365(0x2d4)](_0xe916d6=>{const _0x4d7b56=_0x530365;_0xe916d6[_0x4d7b56(0x140)](_0x4d57e0);});},0x64));});}['_updateCollabCursors'](_0x4eb592,_0x296e82){const _0x5021f9=_0x23e0a9;var _0x51ab60;const _0x468362=(_0x51ab60=this[_0x5021f9(0x372)][_0x5021f9(0x362)]())==null?void 0x0:_0x51ab60[_0x5021f9(0x1b4)];if(!_0x468362)return;const _0x4717e3=this[_0x5021f9(0x2a2)]();if(!_0x4717e3)return;this[_0x5021f9(0x3ca)][_0x5021f9(0x2d4)](_0x212727=>{const _0x438e44=_0x5021f9;_0x212727[_0x438e44(0xed)]();});const {scene:_0x28559d}=_0x4717e3,_0x533a2a=_0x1284ae(Array[_0x5021f9(0x1ee)](_0x296e82[_0x5021f9(0x33a)]()))[_0x5021f9(0x2f1)](_0x4fea6c=>{const _0x4378ec=_0x5021f9,{color:_0x50e42e,range:_0x422e0c,name:_0x4320f1,selection:_0x3912bb,sheetID:_0x4e5377}=_0x4fea6c,{startColumn:_0x2a9f5c,startRow:_0x220728,endColumn:_0x22cd08,endRow:_0x55599e}=_0x422e0c,_0xdb439c=_0x2a1992['getCoordByCell'](_0x220728,_0x2a9f5c,_0x28559d,_0x468362),_0x356ef3=_0x2a1992[_0x4378ec(0x1ca)](_0x55599e,_0x22cd08,_0x28559d,_0x468362),{columnHeaderHeightAndMarginTop:_0x2211b7}=_0x468362,{startX:_0x3f8774,startY:_0x543fb4}=_0xdb439c,{endX:_0x3c1e59,endY:_0xb4e592}=_0x356ef3,_0x5ce68b=_0x3c1e59-_0x3f8774,_0x3ac010=_0xb4e592-_0x543fb4,_0x3dd9cc={'labelPosition':_0x543fb4-_0x2211b7>=_0x464057?_0x4378ec(0x16c):_0x4378ec(0x10b),'sheetID':_0x4e5377,'range':_0x422e0c,'color':_0x50e42e,'name':_0x4320f1,'selection':_0x3912bb,'left':_0x3f8774,'top':_0x543fb4,'width':_0x5ce68b,'height':_0x3ac010,'evented':!0x1,'zIndex':_0x2b9bb0};return new _0x51465b(_0x4320f1,_0x3dd9cc);});_0x28559d[_0x5021f9(0x343)](_0x533a2a,_0x427436),this[_0x5021f9(0x3ca)]=new Set(_0x533a2a);}[_0x23e0a9(0x41f)](){const _0x5b48f9=_0x23e0a9;var _0x363e97;(_0x363e97=this['_cursors'])==null||_0x363e97[_0x5b48f9(0x2d4)](_0x43edaa=>_0x43edaa[_0x5b48f9(0x250)]());}['_getSheetObject'](){const _0x1cb39c=_0x23e0a9;return _0x2a1992[_0x1cb39c(0x1e4)](this[_0x1cb39c(0x131)]['unit'],this[_0x1cb39c(0x131)]);}};_0x5af942=_0x2e9355([_0x1a531c(0x1,_0x3cac39[_0x23e0a9(0xce)](_0x2a1992[_0x23e0a9(0x36d)])),_0x1a531c(0x2,_0x3cac39[_0x23e0a9(0xce)](_0x2430d6)),_0x1a531c(0x3,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x20a)]))],_0x5af942);function _0x1284ae(_0x30301a){const _0x5a9c14=_0x23e0a9,_0x50334d=new Map();return _0x30301a[_0x5a9c14(0x2d4)](_0x5c9a3a=>{const _0x50e859=_0x5a9c14;if(_0x50334d[_0x50e859(0x1ad)](_0x5c9a3a[_0x50e859(0x277)])){const _0x23ff48=_0x50334d[_0x50e859(0x1c4)](_0x5c9a3a[_0x50e859(0x277)]);_0x23ff48[_0x50e859(0x3cb)]+=',\x20'+_0x5c9a3a[_0x50e859(0x3cb)];}else _0x50334d[_0x50e859(0x2f7)](_0x5c9a3a[_0x50e859(0x277)],_0x5c9a3a);}),Array['from'](_0x50334d[_0x5a9c14(0x33a)]());}var _0x47be35=function(){const _0x232586=_0x23e0a9;return _0x47be35=Object[_0x232586(0x1d0)]||function(_0x207554){const _0x11b084=_0x232586;for(var _0x5bc8c7,_0x3b1485=0x1,_0x3b200b=arguments[_0x11b084(0x480)];_0x3b1485<_0x3b200b;_0x3b1485++){_0x5bc8c7=arguments[_0x3b1485];for(var _0x148082 in _0x5bc8c7)Object[_0x11b084(0x24a)][_0x11b084(0x3e3)][_0x11b084(0x477)](_0x5bc8c7,_0x148082)&&(_0x207554[_0x148082]=_0x5bc8c7[_0x148082]);}return _0x207554;},_0x47be35[_0x232586(0x3f7)](this,arguments);},_0x2cc7c3=function(_0x270816,_0x27dcbd){const _0x52717f=_0x23e0a9;var _0x57bcae={};for(var _0x3a3294 in _0x270816)Object[_0x52717f(0x24a)][_0x52717f(0x3e3)]['call'](_0x270816,_0x3a3294)&&_0x27dcbd[_0x52717f(0x3d0)](_0x3a3294)<0x0&&(_0x57bcae[_0x3a3294]=_0x270816[_0x3a3294]);if(_0x270816!=null&&typeof Object['getOwnPropertySymbols']==_0x52717f(0x1ce)){for(var _0xf3abf1=0x0,_0x3a3294=Object['getOwnPropertySymbols'](_0x270816);_0xf3abf1<_0x3a3294[_0x52717f(0x480)];_0xf3abf1++)_0x27dcbd[_0x52717f(0x3d0)](_0x3a3294[_0xf3abf1])<0x0&&Object[_0x52717f(0x24a)]['propertyIsEnumerable']['call'](_0x270816,_0x3a3294[_0xf3abf1])&&(_0x57bcae[_0x3a3294[_0xf3abf1]]=_0x270816[_0x3a3294[_0xf3abf1]]);}return _0x57bcae;},_0x3e2b6e=_0x3b0b43[_0x23e0a9(0x21a)](function(_0x135e16,_0x53c37d){const _0x340050=_0x23e0a9;var _0xc095f4=_0x135e16[_0x340050(0x484)],_0x57d9f2=_0x135e16['id'],_0x4cc06d=_0x135e16[_0x340050(0x468)],_0x138f45=_0x135e16[_0x340050(0x4cb)],_0x4d7d55=_0x2cc7c3(_0x135e16,[_0x340050(0x484),'id',_0x340050(0x468),_0x340050(0x4cb)]),_0x281f7e=_0x340050(0x2fb)[_0x340050(0xdb)](_0x57d9f2,'\x20')['concat'](_0x4cc06d||'')[_0x340050(0x373)](),_0x39160c=_0x3b0b43[_0x340050(0x459)]('_'[_0x340050(0xdb)](_0x826ec4()));return _0x52c3f0(_0xc095f4,''[_0x340050(0xdb)](_0x57d9f2),{'defIds':_0xc095f4[_0x340050(0x286)],'idSuffix':_0x39160c[_0x340050(0x4c7)]},_0x47be35({'ref':_0x53c37d,'className':_0x281f7e},_0x4d7d55),_0x138f45);});function _0x52c3f0(_0x25eb1b,_0x284ff7,_0x35995c,_0x19f801,_0x117fad){const _0x112071=_0x23e0a9;return _0x3b0b43[_0x112071(0x26d)](_0x25eb1b['tag'],_0x47be35(_0x47be35({'key':_0x284ff7},_0x4ceba6(_0x25eb1b,_0x35995c,_0x117fad)),_0x19f801),(_0x5b8777(_0x25eb1b,_0x35995c)['children']||[])[_0x112071(0x2f1)](function(_0x21b0c1,_0x549dd3){const _0x554455=_0x112071;return _0x52c3f0(_0x21b0c1,''[_0x554455(0xdb)](_0x284ff7,'-')[_0x554455(0xdb)](_0x25eb1b['tag'],'-')[_0x554455(0xdb)](_0x549dd3),_0x35995c,void 0x0,_0x117fad);}));}function _0x4ceba6(_0x12b55c,_0x2234a4,_0x4cd9f4){const _0xf1eb66=_0x23e0a9;var _0x4e2f1c=_0x47be35({},_0x12b55c[_0xf1eb66(0x264)]);_0x4cd9f4!=null&&_0x4cd9f4['colorChannel1']&&_0x4e2f1c[_0xf1eb66(0x1a1)]===_0xf1eb66(0x388)&&(_0x4e2f1c['fill']=_0x4cd9f4[_0xf1eb66(0x388)]);var _0x3cc180=_0x2234a4[_0xf1eb66(0x286)];return!_0x3cc180||_0x3cc180[_0xf1eb66(0x480)]===0x0||(_0x12b55c[_0xf1eb66(0x1aa)]===_0xf1eb66(0x238)&&_0x4e2f1c[_0xf1eb66(0x20b)]&&(_0x4e2f1c[_0xf1eb66(0x20b)]=_0x4e2f1c[_0xf1eb66(0x20b)]+_0x2234a4[_0xf1eb66(0x384)]),Object[_0xf1eb66(0x10f)](_0x4e2f1c)[_0xf1eb66(0x2d4)](function(_0x4d637f){const _0x15d452=_0xf1eb66;var _0x557b66=_0x4d637f[0x0],_0x36aba5=_0x4d637f[0x1];typeof _0x36aba5==_0x15d452(0x25d)&&(_0x4e2f1c[_0x557b66]=_0x36aba5[_0x15d452(0x472)](/url\(#(.*)\)/,_0x15d452(0x290)[_0x15d452(0xdb)](_0x2234a4[_0x15d452(0x384)],')')));})),_0x4e2f1c;}function _0x5b8777(_0x35175e,_0x18fe5e){const _0x3e7c73=_0x23e0a9;var _0xbf0d53,_0x54d937=_0x18fe5e['defIds'];return!_0x54d937||_0x54d937[_0x3e7c73(0x480)]===0x0?_0x35175e:_0x35175e[_0x3e7c73(0x1aa)]===_0x3e7c73(0x26c)&&(!((_0xbf0d53=_0x35175e[_0x3e7c73(0x1d8)])===null||_0xbf0d53===void 0x0)&&_0xbf0d53[_0x3e7c73(0x480)])?_0x47be35(_0x47be35({},_0x35175e),{'children':_0x35175e['children']['map'](function(_0x17cbfc){const _0x11e19d=_0x3e7c73;return typeof _0x17cbfc[_0x11e19d(0x264)]['id']==_0x11e19d(0x25d)&&_0x54d937&&_0x54d937['indexOf'](_0x17cbfc[_0x11e19d(0x264)]['id'])>-0x1?_0x47be35(_0x47be35({},_0x17cbfc),{'attrs':_0x47be35(_0x47be35({},_0x17cbfc['attrs']),{'id':_0x17cbfc[_0x11e19d(0x264)]['id']+_0x18fe5e[_0x11e19d(0x384)]})}):_0x17cbfc;})}):_0x35175e;}function _0x826ec4(){const _0xf64885=_0x23e0a9;return Math[_0xf64885(0x19a)]()['toString'](0x24)[_0xf64885(0x1ed)](0x2,0x8);}_0x3e2b6e[_0x23e0a9(0x159)]=_0x23e0a9(0x400);var _0x32a71e={'tag':_0x23e0a9(0x14d),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x23e0a9(0x226),'height':_0x23e0a9(0x226)},'children':[{'tag':'g','attrs':{'clipPath':_0x23e0a9(0x3d2)},'children':[{'tag':_0x23e0a9(0x308),'attrs':{'stroke':'currentColor','d':_0x23e0a9(0xd6),'strokeLinecap':_0x23e0a9(0x28b),'strokeLinejoin':_0x23e0a9(0x28b),'strokeWidth':1.2}}]},{'tag':_0x23e0a9(0x26c),'attrs':{},'children':[{'tag':_0x23e0a9(0x186),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x23e0a9(0x308),'attrs':{'fill':'#fff','d':_0x23e0a9(0x4d5)}}]}]}],'defIds':[_0x23e0a9(0x111)]},_0x27fb97=_0x3b0b43['forwardRef'](function(_0x200dae,_0x3799b2){const _0x2c99e3=_0x23e0a9;return _0x3b0b43['createElement'](_0x3e2b6e,Object[_0x2c99e3(0x1d0)]({},_0x200dae,{'id':_0x2c99e3(0x313),'ref':_0x3799b2,'icon':_0x32a71e}));});_0x27fb97[_0x23e0a9(0x159)]=_0x23e0a9(0x145);var _0x37a6b0={'tag':_0x23e0a9(0x14d),'attrs':{'fill':_0x23e0a9(0xf5),'viewBox':_0x23e0a9(0x3f3),'width':_0x23e0a9(0x226),'height':_0x23e0a9(0x226)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x23e0a9(0x308),'attrs':{'stroke':'currentColor','d':_0x23e0a9(0x270),'strokeLinecap':_0x23e0a9(0x28b),'strokeLinejoin':_0x23e0a9(0x28b),'strokeWidth':1.2}}]},{'tag':_0x23e0a9(0x26c),'attrs':{},'children':[{'tag':_0x23e0a9(0x186),'attrs':{'id':_0x23e0a9(0x391)},'children':[{'tag':_0x23e0a9(0x308),'attrs':{'fill':_0x23e0a9(0x1c8),'d':_0x23e0a9(0x4d5),'transform':_0x23e0a9(0x39a)}}]}]}],'defIds':['on-line-single_clip0_910_349']},_0x14a0cc=_0x3b0b43[_0x23e0a9(0x21a)](function(_0xacc3ab,_0x34f4e5){const _0xb637ae=_0x23e0a9;return _0x3b0b43[_0xb637ae(0x26d)](_0x3e2b6e,Object['assign']({},_0xacc3ab,{'id':_0xb637ae(0x439),'ref':_0x34f4e5,'icon':_0x37a6b0}));});_0x14a0cc['displayName']=_0x23e0a9(0x1a3);function _0x188d01(_0x29009){const _0x54726f=_0x23e0a9;var _0x272a00,_0x5ca49b,_0x44d718='';if(typeof _0x29009=='string'||typeof _0x29009=='number')_0x44d718+=_0x29009;else{if(typeof _0x29009==_0x54726f(0x267)){if(Array[_0x54726f(0x406)](_0x29009)){var _0x2a8f40=_0x29009[_0x54726f(0x480)];for(_0x272a00=0x0;_0x272a00<_0x2a8f40;_0x272a00++)_0x29009[_0x272a00]&&(_0x5ca49b=_0x188d01(_0x29009[_0x272a00]))&&(_0x44d718&&(_0x44d718+='\x20'),_0x44d718+=_0x5ca49b);}else{for(_0x5ca49b in _0x29009)_0x29009[_0x5ca49b]&&(_0x44d718&&(_0x44d718+='\x20'),_0x44d718+=_0x5ca49b);}}}return _0x44d718;}function _0x2c8152(){const _0x10a86e=_0x23e0a9;for(var _0x23a594,_0x2a6a50,_0x194c7e=0x0,_0x1e3083='',_0x15a7c8=arguments[_0x10a86e(0x480)];_0x194c7e<_0x15a7c8;_0x194c7e++)(_0x23a594=arguments[_0x194c7e])&&(_0x2a6a50=_0x188d01(_0x23a594))&&(_0x1e3083&&(_0x1e3083+='\x20'),_0x1e3083+=_0x2a6a50);return _0x1e3083;}const _0x5d5c39={'onlineStatusIcon':_0x23e0a9(0x4b8),'onlineStatusTitle':_0x23e0a9(0x44e),'onlineStatus':_0x23e0a9(0x160),'online':_0x23e0a9(0xee),'offline':_0x23e0a9(0x2ab)};function _0x43d839(_0x1080e6){const _0x3c6fd8=_0x23e0a9;switch(_0x1080e6){case _0x446eef[_0x3c6fd8(0xef)]:return _0x3c6fd8(0x2b4);case _0x446eef['CONFLICT']:return _0x3c6fd8(0x40f);case _0x446eef[_0x3c6fd8(0x487)]:return _0x3c6fd8(0xfc);case _0x446eef[_0x3c6fd8(0x232)]:return _0x3c6fd8(0x29f);case _0x446eef['PENDING']:case _0x446eef[_0x3c6fd8(0x1ba)]:case _0x446eef[_0x3c6fd8(0xd2)]:return _0x3c6fd8(0x332);case _0x446eef['SYNCED']:return _0x3c6fd8(0x32e);}}function _0x4260e5(_0xe59b10){const _0x5904a2=_0x23e0a9,{status$:_0x4c3cf6}=_0xe59b10,_0x22a540=_0x4b9a33[_0x5904a2(0x403)](_0x4c3cf6,_0x446eef[_0x5904a2(0x232)]),_0x491762=_0x3cac39[_0x5904a2(0x15c)](_0x3cac39[_0x5904a2(0x3b5)]),_0x2f9c85=_0x3cac39[_0x5904a2(0x15c)](_0x78d65c[_0x5904a2(0x386)]),_0x3ddfd7=_0x22a540!==_0x446eef['OFFLINE'],_0x4bda5f=_0x491762['t'](_0x43d839(_0x22a540)),_0x1f1e59=_0x2c8152(_0x5d5c39[_0x5904a2(0x41e)],{[_0x5d5c39[_0x5904a2(0x2cc)]]:_0x3ddfd7,[_0x5d5c39[_0x5904a2(0x2a7)]]:!_0x3ddfd7}),_0x42ab38=_0x3ddfd7?_0x3b0b43[_0x5904a2(0x26d)](_0x14a0cc,null):_0x3b0b43['createElement'](_0x27fb97,null),_0x104012=_0x3b0b43[_0x5904a2(0x2a3)](()=>{const _0x38f5de=_0x5904a2;_0x3ddfd7||_0x2f9c85[_0x38f5de(0x18d)]();},[_0x3ddfd7,_0x2f9c85]);function _0x122391(){const _0x5c518a=_0x5904a2;return _0x3b0b43[_0x5c518a(0x26d)](_0x5c518a(0x235),{'className':_0x1f1e59,'onClick':_0x104012},_0x3b0b43[_0x5c518a(0x26d)](_0x5c518a(0x235),{'className':_0x5d5c39[_0x5c518a(0x2d5)]},_0x42ab38),_0x3b0b43[_0x5c518a(0x26d)](_0x5c518a(0x235),{'className':_0x5d5c39[_0x5c518a(0x22f)]},_0x4bda5f));}return _0x3ddfd7?_0x122391():_0x3b0b43['createElement'](_0x3003bf[_0x5904a2(0x1f1)],{'title':_0x491762['t'](_0x5904a2(0xc2))},_0x122391());}var _0x510ead=Object['defineProperty'],_0x3bd635=Object[_0x23e0a9(0x4ac)],_0x3fba6f=(_0xd53904,_0x4f3033,_0x2694ae,_0x416180)=>{const _0x37347c=_0x23e0a9;for(var _0x294876=_0x416180>0x1?void 0x0:_0x416180?_0x3bd635(_0x4f3033,_0x2694ae):_0x4f3033,_0x1bfc7d=_0xd53904[_0x37347c(0x480)]-0x1,_0x32d982;_0x1bfc7d>=0x0;_0x1bfc7d--)(_0x32d982=_0xd53904[_0x1bfc7d])&&(_0x294876=(_0x416180?_0x32d982(_0x4f3033,_0x2694ae,_0x294876):_0x32d982(_0x294876))||_0x294876);return _0x416180&&_0x294876&&_0x510ead(_0x4f3033,_0x2694ae,_0x294876),_0x294876;},_0x444ca5=(_0x23c97c,_0xe8005b)=>(_0x384747,_0x4cb898)=>_0xe8005b(_0x384747,_0x4cb898,_0x23c97c);_0x78d65c[_0x23e0a9(0x1a8)]=class extends _0x3cac39[_0x23e0a9(0x3da)]{constructor(_0xed9c2f,_0x57e166,_0x1bf9de,_0x64a262){const _0x2a4ece=_0x23e0a9;super(),_0x56bf3b(this,_0x2a4ece(0x272),new _0x2132a7[(_0x2a4ece(0x49e))](_0x446eef['NOT_COLLAB'])),(this['_univerInstanceService']=_0xed9c2f,this[_0x2a4ece(0x37d)]=_0x57e166,this['_injector']=_0x1bf9de,this[_0x2a4ece(0x397)]=_0x64a262,this[_0x2a4ece(0xd4)](),this[_0x2a4ece(0x338)]());}[_0x23e0a9(0x338)](){const _0x426f3a=_0x23e0a9;this[_0x426f3a(0x382)](this[_0x426f3a(0x3c0)][_0x426f3a(0x34a)][_0x426f3a(0x19e)](_0x2132a7[_0x426f3a(0x2d7)](()=>{const _0x3ff2dc=_0x426f3a,_0x20a2b1=this[_0x3ff2dc(0x3c0)][_0x3ff2dc(0x180)]();return _0x20a2b1?this[_0x3ff2dc(0x397)][_0x3ff2dc(0x444)](_0x20a2b1[_0x3ff2dc(0x27c)]()):_0x2132a7['of'](null);}),_0x2132a7[_0x426f3a(0x2d7)](_0x52e524=>_0x52e524?_0x52e524[_0x426f3a(0x387)]:_0x2132a7['of'](_0x446eef['NOT_COLLAB'])))[_0x426f3a(0x404)](_0x2360ee=>{this['_status$']['next'](_0x2360ee);}));}['_initStatusComponent'](){const _0x4e70d3=_0x23e0a9;this[_0x4e70d3(0x382)](this[_0x4e70d3(0x37d)][_0x4e70d3(0x4cc)](_0x4b9a33[_0x4e70d3(0x44d)][_0x4e70d3(0x4ab)],()=>_0x3cac39['connectInjector'](_0x2bd44f({'status$':this[_0x4e70d3(0x272)][_0x4e70d3(0x3a4)]()}),this[_0x4e70d3(0x44b)])));}},_0x78d65c['DesktopCollaborationStatusDisplayController']=_0x3fba6f([_0x444ca5(0x0,_0x3cac39[_0x23e0a9(0x3ef)]),_0x444ca5(0x1,_0x4b9a33[_0x23e0a9(0x410)]),_0x444ca5(0x2,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x137)])),_0x444ca5(0x3,_0x3cac39[_0x23e0a9(0xce)](_0x78d65c[_0x23e0a9(0x2d1)]))],_0x78d65c[_0x23e0a9(0x1a8)]);function _0x2bd44f(_0x1349f5){const {status$:_0x116c78}=_0x1349f5;return function(){return _0x3b0b43['createElement'](_0x4260e5,{'status$':_0x116c78});};}const _0x190919=_0x3cac39['createIdentifier'](_0x23e0a9(0x2c5));var _0x165d2a=Object[_0x23e0a9(0x2e3)],_0x5cf337=Object[_0x23e0a9(0x4ac)],_0x207f71=(_0x1dc2ee,_0x4059ae,_0x3df062,_0xe4193a)=>{const _0x4a9d83=_0x23e0a9;for(var _0x41b091=_0xe4193a>0x1?void 0x0:_0xe4193a?_0x5cf337(_0x4059ae,_0x3df062):_0x4059ae,_0x245827=_0x1dc2ee[_0x4a9d83(0x480)]-0x1,_0xfaf651;_0x245827>=0x0;_0x245827--)(_0xfaf651=_0x1dc2ee[_0x245827])&&(_0x41b091=(_0xe4193a?_0xfaf651(_0x4059ae,_0x3df062,_0x41b091):_0xfaf651(_0x41b091))||_0x41b091);return _0xe4193a&&_0x41b091&&_0x165d2a(_0x4059ae,_0x3df062,_0x41b091),_0x41b091;},_0x5aa0b2=(_0x5622b5,_0x5bba4a)=>(_0x23adcd,_0x365c77)=>_0x5bba4a(_0x23adcd,_0x365c77,_0x5622b5);_0x78d65c[_0x23e0a9(0x24b)]=class extends _0x3cac39[_0x23e0a9(0x4b1)]{constructor(_0xbc5a21,_0x15e3a2,_0x1b126d,_0x5298b0,_0x2b1631,_0xcb1f44){const _0x1248b7=_0x23e0a9;super(),this[_0x1248b7(0x11f)]=_0xbc5a21,this[_0x1248b7(0x110)]=_0x15e3a2,this[_0x1248b7(0x31d)]=_0x1b126d,this[_0x1248b7(0x3a8)]=_0x5298b0,this['_snapshotService']=_0x2b1631,_0xcb1f44?_0xcb1f44==null||_0xcb1f44[_0x1248b7(0x130)]()['then'](()=>this[_0x1248b7(0x1df)]()):(this[_0x1248b7(0x110)]['debug'](_0x1248b7(0x1fc),_0x1248b7(0x2ec)),this[_0x1248b7(0x1df)]());}async[_0x23e0a9(0x1df)](){const _0x312410=_0x23e0a9,_0x14c215=this[_0x312410(0x11f)][_0x312410(0x163)](_0x312410(0x32c)),_0x5b6fb0=this[_0x312410(0x11f)][_0x312410(0x163)](_0x312410(0x29e));if(!_0x14c215||!_0x5b6fb0){this[_0x312410(0x110)][_0x312410(0xb8)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x5b6fb0)){case _0x36e0e9[_0x312410(0xeb)]:{const _0x49e721=await this[_0x312410(0x4c1)](_0x14c215);this[_0x312410(0x2fa)](_0x49e721);break;}case _0x36e0e9[_0x312410(0x28c)]:{await this[_0x312410(0x136)](_0x14c215);break;}default:{this[_0x312410(0x110)]['error']('[DataLoaderController]',_0x312410(0x12a));break;}}}async['_setupSubUnitSync'](_0x4e584b){const _0x424c93=_0x23e0a9;await this[_0x424c93(0x15e)](_0x4e584b),_0x4e584b['activeSheet$'][_0x424c93(0x19e)](_0x2132a7[_0x424c93(0x2dd)](this[_0x424c93(0xfd)]))['subscribe'](_0x535bc5=>{const _0x37e323=_0x424c93;_0x535bc5&&this[_0x37e323(0x328)](_0x535bc5);}),this[_0x424c93(0x11f)][_0x424c93(0x3f9)][_0x424c93(0x19e)](_0x2132a7[_0x424c93(0x2dd)](this[_0x424c93(0xfd)]))[_0x424c93(0x404)](()=>this[_0x424c93(0x15e)](_0x4e584b));}[_0x23e0a9(0x328)](_0x1dfef9,_0x428d0c=!0x1){const _0x37cc42=_0x23e0a9,_0x17870f=this[_0x37cc42(0x11f)][_0x37cc42(0x163)]('subunit');_0x1dfef9[_0x37cc42(0x377)]()!==_0x17870f&&this['_urlService'][_0x37cc42(0x2e5)](_0x37cc42(0xb7),_0x1dfef9[_0x37cc42(0x377)](),_0x428d0c);}async[_0x23e0a9(0x15e)](_0x52f3d6){const _0x2071d3=_0x23e0a9;var _0x3c97c0;const _0x18680d=this[_0x2071d3(0x11f)]['getParam'](_0x2071d3(0xb7));if(!_0x18680d||!_0x52f3d6[_0x2071d3(0x35f)](_0x18680d)){const _0x17e176=_0x52f3d6[_0x2071d3(0x3e0)]()[0x0],_0x27cd02=_0x52f3d6[_0x2071d3(0x35f)](_0x17e176);if(!_0x27cd02)return;this[_0x2071d3(0x328)](_0x27cd02,!0x0),await this[_0x2071d3(0x31d)][_0x2071d3(0x1bd)](_0x52138d[_0x2071d3(0x4dc)]['id'],{'unitId':_0x52f3d6[_0x2071d3(0x27c)](),'subUnitId':_0x17e176});return;}((_0x3c97c0=_0x52f3d6['getActiveSheet']())==null?void 0x0:_0x3c97c0['getSheetId']())!==_0x18680d&&await this[_0x2071d3(0x31d)][_0x2071d3(0x1bd)](_0x52138d[_0x2071d3(0x4dc)]['id'],{'unitId':_0x52f3d6[_0x2071d3(0x27c)](),'subUnitId':_0x18680d});}async['_loadSheet'](_0x290130){const _0x40579d=_0x23e0a9;let _0xa17011=0x0;const _0x9c0654=await this[_0x40579d(0x3a8)]['loadOfflineData'](_0x290130);return _0x9c0654&&(_0x9c0654[_0x40579d(0x3bc)]||_0x9c0654['mutations']['length']!==0x0)&&(_0xa17011=_0x9c0654[_0x40579d(0x1d5)]),_0xa17011===0x0&&this[_0x40579d(0x110)][_0x40579d(0xb8)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x40579d(0x423)]['loadSheet'](_0x290130,_0xa17011);}async['_loadDoc'](_0x21c01e){const _0x2599d2=_0x23e0a9;let _0x239ecf=0x0;const _0x577aed=await this['_localCacheService'][_0x2599d2(0x47f)](_0x21c01e);return _0x577aed&&(_0x577aed[_0x2599d2(0x3bc)]||_0x577aed[_0x2599d2(0x100)]['length']!==0x0)&&(_0x239ecf=_0x577aed[_0x2599d2(0x1d5)]),_0x239ecf===0x0&&this[_0x2599d2(0x110)]['debug'](_0x2599d2(0x1fc),_0x2599d2(0x118)),this[_0x2599d2(0x423)][_0x2599d2(0x392)](_0x21c01e,_0x239ecf);}},_0x78d65c[_0x23e0a9(0x24b)]=_0x207f71([_0x5aa0b2(0x0,_0x190919),_0x5aa0b2(0x1,_0x3cac39[_0x23e0a9(0x2b9)]),_0x5aa0b2(0x2,_0x3cac39[_0x23e0a9(0x368)]),_0x5aa0b2(0x3,_0x3cac39[_0x23e0a9(0xce)](_0x78d65c[_0x23e0a9(0x494)])),_0x5aa0b2(0x4,_0x3cac39['Inject'](_0x42c3cc['SnapshotService'])),_0x5aa0b2(0x5,_0x3cac39[_0x23e0a9(0x2da)](_0x42f613[_0x23e0a9(0x208)]))],_0x78d65c[_0x23e0a9(0x24b)]);var _0x4a4493=Object[_0x23e0a9(0x2e3)],_0x4bc16b=Object['getOwnPropertyDescriptor'],_0x23b4ad=(_0x5d63d5,_0x358385,_0x484014,_0x1d9158)=>{const _0x4096f0=_0x23e0a9;for(var _0x2f7dd2=_0x1d9158>0x1?void 0x0:_0x1d9158?_0x4bc16b(_0x358385,_0x484014):_0x358385,_0x4fe6b1=_0x5d63d5[_0x4096f0(0x480)]-0x1,_0x2d3d9d;_0x4fe6b1>=0x0;_0x4fe6b1--)(_0x2d3d9d=_0x5d63d5[_0x4fe6b1])&&(_0x2f7dd2=(_0x1d9158?_0x2d3d9d(_0x358385,_0x484014,_0x2f7dd2):_0x2d3d9d(_0x2f7dd2))||_0x2f7dd2);return _0x1d9158&&_0x2f7dd2&&_0x4a4493(_0x358385,_0x484014,_0x2f7dd2),_0x2f7dd2;},_0x52ae50=(_0x53be0b,_0x1fc233)=>(_0x9a84d6,_0x136fdb)=>_0x1fc233(_0x9a84d6,_0x136fdb,_0x53be0b);const _0x121705=_0x23e0a9(0x17d),_0x430033='Univer';let _0x16f0e7=class extends _0x3cac39['Disposable']{constructor(_0x1d082d,_0x53fdf9){const _0x20abaf=_0x23e0a9;super(),this[_0x20abaf(0x3c0)]=_0x1d082d,this[_0x20abaf(0x259)]=_0x53fdf9,this['_init']();}[_0x23e0a9(0x1df)](){const _0x5090d6=_0x23e0a9;this['disposeWithMe'](this[_0x5090d6(0x3c0)]['focused$'][_0x5090d6(0x404)](()=>{const _0x49e704=_0x5090d6;var _0x17cbc3;const _0x3cda0a=this[_0x49e704(0x3c0)][_0x49e704(0x180)]();let _0x4cade5=(_0x17cbc3=this[_0x49e704(0x259)]['getConfig'](_0x121705))!=null?_0x17cbc3:_0x430033;_0x3cda0a instanceof _0x3cac39[_0x49e704(0xe9)]&&(_0x4cade5=_0x3cda0a['name']),document[_0x49e704(0x323)]=_0x4cade5;}));}};_0x16f0e7=_0x23b4ad([_0x52ae50(0x0,_0x3cac39[_0x23e0a9(0x3ef)]),_0x52ae50(0x1,_0x3cac39[_0x23e0a9(0x1fb)])],_0x16f0e7);var _0x475f55=Object[_0x23e0a9(0x2e3)],_0x576862=Object['getOwnPropertyDescriptor'],_0x3e2b52=(_0x3b2020,_0xd2912b,_0x19e875,_0x3eb28b)=>{const _0x17e8b0=_0x23e0a9;for(var _0x224120=_0x3eb28b>0x1?void 0x0:_0x3eb28b?_0x576862(_0xd2912b,_0x19e875):_0xd2912b,_0x16d15b=_0x3b2020[_0x17e8b0(0x480)]-0x1,_0x3922dc;_0x16d15b>=0x0;_0x16d15b--)(_0x3922dc=_0x3b2020[_0x16d15b])&&(_0x224120=(_0x3eb28b?_0x3922dc(_0xd2912b,_0x19e875,_0x224120):_0x3922dc(_0x224120))||_0x224120);return _0x3eb28b&&_0x224120&&_0x475f55(_0xd2912b,_0x19e875,_0x224120),_0x224120;},_0x1dd658=(_0x40cc19,_0x5e6864)=>(_0x1cb713,_0x5b579c)=>_0x5e6864(_0x1cb713,_0x5b579c,_0x40cc19);let _0x3106a5=class{constructor(_0x577dac,_0xd90911,_0x4a8b0a){const _0x3f42d7=_0x23e0a9;this['_configService']=_0x577dac,this['_httpService']=_0xd90911,this[_0x3f42d7(0x104)]=_0x4a8b0a,this['init']();}['init'](){const _0x45ffa0=_0x23e0a9;this[_0x45ffa0(0xbd)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x5b01e6,_0x2fce73)=>_0x2fce73(_0x5b01e6)[_0x45ffa0(0x19e)](_0x2132a7[_0x45ffa0(0x35d)](async _0x3eabaf=>{const _0x5e215e=_0x45ffa0,_0x2abbe2=_0x3eabaf;if(_0x2abbe2[_0x5e215e(0x39f)]===0x191&&window[_0x5e215e(0x45e)](this[_0x5e215e(0x104)]['t'](_0x5e215e(0x4d3)))){const _0x5a5262=window['encodeURIComponent'](window['location'][_0x5e215e(0x121)]);window['location'][_0x5e215e(0x121)]=this[_0x5e215e(0x269)]()+'?url='+_0x5a5262;}return _0x2abbe2;}))});}[_0x23e0a9(0x269)](){const _0x1a3e09=_0x23e0a9;var _0x5870c5,_0x480f6a;const _0x5845f4=this[_0x1a3e09(0x259)][_0x1a3e09(0x3f1)](_0xdad26c),_0x1ecca2=this['_configService'][_0x1a3e09(0x3f1)](_0x14d460);return(_0x480f6a=(_0x5870c5=_0x1ecca2==null?void 0x0:_0x1ecca2['loginUrlKey'])!=null?_0x5870c5:_0x5845f4)!=null?_0x480f6a:_0x2525a8;}};_0x3106a5=_0x3e2b52([_0x1dd658(0x0,_0x3cac39[_0x23e0a9(0x1fb)]),_0x1dd658(0x1,_0x3cac39[_0x23e0a9(0xce)](_0x1e34c6['HTTPService'])),_0x1dd658(0x2,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x3b5)]))],_0x3106a5);var _0x5db5d3=Object['defineProperty'],_0x3e8c86=Object[_0x23e0a9(0x4ac)],_0x39511e=(_0x1163a6,_0x450518,_0xff218d,_0x2c2c39)=>{for(var _0x7d75b4=_0x2c2c39>0x1?void 0x0:_0x2c2c39?_0x3e8c86(_0x450518,_0xff218d):_0x450518,_0x9273d9=_0x1163a6['length']-0x1,_0x346da6;_0x9273d9>=0x0;_0x9273d9--)(_0x346da6=_0x1163a6[_0x9273d9])&&(_0x7d75b4=(_0x2c2c39?_0x346da6(_0x450518,_0xff218d,_0x7d75b4):_0x346da6(_0x7d75b4))||_0x7d75b4);return _0x2c2c39&&_0x7d75b4&&_0x5db5d3(_0x450518,_0xff218d,_0x7d75b4),_0x7d75b4;},_0x4663ab=(_0x23653f,_0x2edd1a)=>(_0x60aa01,_0x35b82c)=>_0x2edd1a(_0x60aa01,_0x35b82c,_0x23653f);const _0x223fe9=_0x23e0a9(0x4d7),_0x5e787b=_0x23e0a9(0x38d);_0x78d65c[_0x23e0a9(0x464)]=class extends _0x3cac39[_0x23e0a9(0x3da)]{constructor(_0x2fd3fd,_0x15f1aa){const _0x488c9f=_0x23e0a9;super(),this['_HTTPService']=_0x2fd3fd,this[_0x488c9f(0x259)]=_0x15f1aa,this[_0x488c9f(0x47c)]();}[_0x23e0a9(0x47c)](){const _0x4d9af0=_0x23e0a9,_0x41420a=this;this['disposeWithMe'](this['_HTTPService'][_0x4d9af0(0x419)]({'priority':0x3e7,'interceptor':_0x1e34c6[_0x4d9af0(0x396)]({'isMatch'(_0x442133){const _0x24f2c8=_0x4d9af0;var _0x74c765;if(_0x442133[_0x24f2c8(0x1b0)]===_0x24f2c8(0x327)&&((_0x74c765=_0x442133[_0x24f2c8(0x251)])!=null&&_0x74c765['body'])){const {objectID:_0x5ee9e3,objectType:_0xd42f60}=_0x442133[_0x24f2c8(0x251)][_0x24f2c8(0x294)]||{};if(!_0x5ee9e3||_0xd42f60===void 0x0)return!0x1;const _0x4cadda=_0x41420a['_getAPIPrefixPath']()+'/'+_0xd42f60+_0x24f2c8(0x2ee)+_0x5ee9e3+_0x24f2c8(0x120);if(_0x442133['url']===_0x4cadda)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x14bf91){const _0x4786b0=_0x4d9af0;var _0x20512b;return(_0x20512b=_0x14bf91[_0x4786b0(0x251)])==null?void 0x0:_0x20512b[_0x4786b0(0x294)];},'mergeParamsToRequest'(_0x2c660f,_0x47a9da){const _0x28b824=_0x4d9af0,_0x443b8e=_0x41420a[_0x28b824(0x31f)]()+'/-/object/-/batch_allowed',_0x26d0b1=_0x2c660f[_0x28b824(0x20c)]((_0x7284a5,_0x337f20)=>{const _0x2f8cc8=_0x28b824,{unitID:_0x1540c8,objectID:_0x40d3e3,objectType:_0x18d0c3,actions:_0x50e363}=_0x337f20;return _0x7284a5[_0x1540c8]||(_0x7284a5[_0x1540c8]={}),_0x7284a5[_0x1540c8][_0x40d3e3]||(_0x7284a5[_0x1540c8][_0x40d3e3]={'objectID':_0x40d3e3,'objectType':_0x18d0c3,'actions':[]}),_0x7284a5[_0x1540c8][_0x40d3e3][_0x2f8cc8(0xf3)][_0x2f8cc8(0xcc)](..._0x50e363),_0x7284a5;},{}),_0x3ad589=[];for(const _0x41d665 in _0x26d0b1)for(const _0x1348c0 in _0x26d0b1[_0x41d665]){const {actions:_0x3f46c1,objectType:_0x909e10}=_0x26d0b1[_0x41d665][_0x1348c0],_0x129b1b=[...new Set(_0x3f46c1)];_0x3ad589['push']({'unitID':_0x41d665,'objectID':_0x1348c0,'objectType':_0x909e10,'actions':_0x129b1b});}return new _0x1e34c6['HTTPRequest'](_0x28b824(0x327),_0x443b8e,{'headers':_0x47a9da[_0x28b824(0x1d6)],'withCredentials':_0x47a9da[_0x28b824(0x2b6)],'responseType':_0x47a9da[_0x28b824(0x380)],'body':{'requests':_0x3ad589}});}},{'distributeResult'(_0x51dd45,_0x2b7209){const _0x258694=_0x4d9af0,{objectActions:_0x536a0b}=_0x51dd45;return _0x2b7209[_0x258694(0x2f1)](_0x3b5eb1=>{const _0x5d1eb4=_0x258694,{unitID:_0x257d8c,objectID:_0x54829f,actions:_0x5355db}=_0x3b5eb1,_0x1ba7a5=_0x536a0b[_0x5d1eb4(0x34d)](_0x6b8c12=>_0x6b8c12[_0x5d1eb4(0x3c1)]===_0x257d8c&&_0x6b8c12[_0x5d1eb4(0x21b)]===_0x54829f),_0x1367f2=_0x5355db[_0x5d1eb4(0x2f1)](_0x4ab6f8=>_0x1ba7a5==null?void 0x0:_0x1ba7a5[_0x5d1eb4(0xf3)][_0x5d1eb4(0x34d)](_0x2e332d=>_0x2e332d[_0x5d1eb4(0x189)]===_0x4ab6f8))['filter'](_0x575e52=>!!_0x575e52);return{'config':_0x3b5eb1,'result':{'actions':_0x1367f2,'error':_0x51dd45[_0x5d1eb4(0x4a8)]}};});}})}));}[_0x23e0a9(0x31f)](){const _0xfba349=_0x23e0a9;var _0x23fbae,_0x2b9a4c;const _0x3f7006=this[_0xfba349(0x259)]['getConfig'](_0x223fe9),_0x261a10=this[_0xfba349(0x259)][_0xfba349(0x3f1)](_0x14d460);return(_0x2b9a4c=(_0x23fbae=_0x261a10==null?void 0x0:_0x261a10['authzUrl'])!=null?_0x23fbae:_0x3f7006)!=null?_0x2b9a4c:_0x5e787b;}async[_0x23e0a9(0x2f9)](_0x219a24){const _0x31759d=_0x23e0a9,_0x1d767f=this['_getAPIPrefixPath']()+'/'+_0x219a24[_0x31759d(0xde)]+_0x31759d(0x201);return(await this[_0x31759d(0x42c)][_0x31759d(0x3b7)](_0x1d767f,{'body':_0x219a24}))[_0x31759d(0x294)][_0x31759d(0x21b)]||'';}async[_0x23e0a9(0x153)](_0x439f2a){const _0x1aa83c=_0x23e0a9,_0x35b574=this[_0x1aa83c(0x31f)]()+_0x1aa83c(0x4bb);return(await this[_0x1aa83c(0x42c)]['post'](_0x35b574,{'body':_0x439f2a}))[_0x1aa83c(0x294)][_0x1aa83c(0x26f)];}async[_0x23e0a9(0x3f6)](_0x2f9184){const _0x1ea310=_0x23e0a9,_0x1b02d4=this['_getAPIPrefixPath']()+'/'+_0x2f9184[_0x1ea310(0xde)]+'/object/'+_0x2f9184['objectID'];await this[_0x1ea310(0x42c)][_0x1ea310(0x43d)](_0x1b02d4,{'body':_0x2f9184});}async[_0x23e0a9(0x16a)](_0x36d1af){const _0x1021e6=_0x23e0a9,_0x419653=this[_0x1021e6(0x31f)]()+'/'+_0x36d1af['objectType']+'/object/'+_0x36d1af['objectID']+_0x1021e6(0x120);return(await this['_HTTPService'][_0x1021e6(0x3b7)](_0x419653,{'body':_0x36d1af}))[_0x1021e6(0x294)]['actions'];}async['batchAllowed'](_0x398d44){const _0x19bec4=_0x23e0a9,_0x599c31=this['_getAPIPrefixPath']()+_0x19bec4(0x2ea);return(await this['_HTTPService'][_0x19bec4(0x3b7)](_0x599c31,{'body':{'requests':_0x398d44}}))[_0x19bec4(0x294)][_0x19bec4(0x139)];}async['listRoles'](_0x1a8bea){const _0x3c75e9=_0x23e0a9,_0x5522e4=this[_0x3c75e9(0x31f)]()+'/'+_0x1a8bea[_0x3c75e9(0xde)]+'/role',_0x28db78=await this[_0x3c75e9(0x42c)][_0x3c75e9(0x3b7)](_0x5522e4,{'body':_0x1a8bea});return{'roles':_0x28db78[_0x3c75e9(0x294)][_0x3c75e9(0x209)],'actions':_0x28db78['body'][_0x3c75e9(0xf3)]};}async[_0x23e0a9(0xdf)](_0x4d48b8){const _0x398f47=_0x23e0a9,_0x5aa85a=this[_0x398f47(0x31f)]()+_0x398f47(0x4ef);await this[_0x398f47(0x42c)][_0x398f47(0x2cb)](_0x5aa85a,{'params':{'collaboratorID':_0x4d48b8[_0x398f47(0x4f1)],'objectID':_0x4d48b8['objectID'],'unitID':_0x4d48b8[_0x398f47(0x3c1)]}});}async['updateCollaborator'](_0x1417f0){const _0x30bfb7=_0x23e0a9,_0xf920ab=this[_0x30bfb7(0x31f)]()+'/collaborator';await this[_0x30bfb7(0x42c)][_0x30bfb7(0x2d6)](_0xf920ab,{'body':_0x1417f0});}async[_0x23e0a9(0x113)](_0x525560){const _0xbdad9f=_0x23e0a9,_0x1186ec=this[_0xbdad9f(0x31f)]()+_0xbdad9f(0x4ef);await this[_0xbdad9f(0x42c)][_0xbdad9f(0x3b7)](_0x1186ec,{'body':_0x525560});}async[_0x23e0a9(0x319)](_0x109b82){const _0x400bb0=_0x23e0a9,_0x54764d=this[_0x400bb0(0x31f)]()+_0x400bb0(0x4ef);return(await this['_HTTPService']['get'](_0x54764d,{'params':{'objectID':_0x109b82[_0x400bb0(0x21b)],'unitID':_0x109b82['unitID']}}))['body']['collaborators'];}async[_0x23e0a9(0x24e)](_0x314d17){const _0x24f2f6=_0x23e0a9,_0x36a042=this[_0x24f2f6(0x31f)]()+'/collaborator';await this[_0x24f2f6(0x42c)][_0x24f2f6(0x43d)](_0x36a042,{'body':_0x314d17});}},_0x78d65c[_0x23e0a9(0x464)]=_0x39511e([_0x4663ab(0x0,_0x3cac39[_0x23e0a9(0xce)](_0x1e34c6['HTTPService'])),_0x4663ab(0x1,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x1fb)]))],_0x78d65c[_0x23e0a9(0x464)]);var _0x2f44b5=Object[_0x23e0a9(0x2e3)],_0x2b4adb=Object[_0x23e0a9(0x4ac)],_0x9fe6d9=(_0x2e966b,_0x1952ea,_0x49df19,_0x26f4ff)=>{const _0x2807a7=_0x23e0a9;for(var _0x1d8c41=_0x26f4ff>0x1?void 0x0:_0x26f4ff?_0x2b4adb(_0x1952ea,_0x49df19):_0x1952ea,_0x34b1c2=_0x2e966b[_0x2807a7(0x480)]-0x1,_0x2e7305;_0x34b1c2>=0x0;_0x34b1c2--)(_0x2e7305=_0x2e966b[_0x34b1c2])&&(_0x1d8c41=(_0x26f4ff?_0x2e7305(_0x1952ea,_0x49df19,_0x1d8c41):_0x2e7305(_0x1d8c41))||_0x1d8c41);return _0x26f4ff&&_0x1d8c41&&_0x2f44b5(_0x1952ea,_0x49df19,_0x1d8c41),_0x1d8c41;},_0x2a3453=(_0x96c9f,_0x435831)=>(_0x5c4f99,_0x59a4e6)=>_0x435831(_0x5c4f99,_0x59a4e6,_0x96c9f);let _0x2d4d2c=class{constructor(_0x64e65){this['_httpService']=_0x64e65,this['_initRequestHeader']();}['_initRequestHeader'](){const _0x510d2d=_0x23e0a9;this[_0x510d2d(0xbd)][_0x510d2d(0x419)]({'interceptor':(_0x2f472b,_0x497fe1)=>{const _0x461c13=_0x510d2d,_0x24f270=_0x2f472b[_0x461c13(0x1d6)],_0xada7=_0x4bef76[_0x461c13(0x401)]();return _0xada7&&_0x24f270[_0x461c13(0x2f7)](_0x461c13(0x249),_0xada7),_0x497fe1(_0x2f472b);}});}};_0x2d4d2c=_0x9fe6d9([_0x2a3453(0x0,_0x3cac39[_0x23e0a9(0xce)](_0x1e34c6[_0x23e0a9(0x47e)]))],_0x2d4d2c);var _0x250898=Object[_0x23e0a9(0x2e3)],_0x490b4e=Object[_0x23e0a9(0x4ac)],_0x16909a=(_0x138ec8,_0xeefbbc,_0x179bbb,_0x31f00d)=>{const _0xd70858=_0x23e0a9;for(var _0x2e4b55=_0x31f00d>0x1?void 0x0:_0x31f00d?_0x490b4e(_0xeefbbc,_0x179bbb):_0xeefbbc,_0x48987a=_0x138ec8[_0xd70858(0x480)]-0x1,_0x4274ca;_0x48987a>=0x0;_0x48987a--)(_0x4274ca=_0x138ec8[_0x48987a])&&(_0x2e4b55=(_0x31f00d?_0x4274ca(_0xeefbbc,_0x179bbb,_0x2e4b55):_0x4274ca(_0x2e4b55))||_0x2e4b55);return _0x31f00d&&_0x2e4b55&&_0x250898(_0xeefbbc,_0x179bbb,_0x2e4b55),_0x2e4b55;},_0x4d53e4=(_0x1d7caa,_0x30fca9)=>(_0x333be5,_0x87bb3d)=>_0x30fca9(_0x333be5,_0x87bb3d,_0x1d7caa);const _0x3e8b25=[_0x23e0a9(0x4ee),_0x23e0a9(0xc0),_0x23e0a9(0x25a),_0x23e0a9(0xf2),'image/bmp'],_0xca7c2c=0x5*0x400*0x400,_0x1d0cca='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x20f535='/universer-api/stream/file/upload',_0x5342b6='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_0x22932e=_0x23e0a9(0x4cd);_0x78d65c[_0x23e0a9(0x42f)]=class{constructor(_0x14b716,_0x4e56c8,_0x252d72){const _0x87a679=_0x23e0a9;_0x56bf3b(this,_0x87a679(0x169),0x0),_0x56bf3b(this,_0x87a679(0x3eb),new _0x2132a7['Subject']()),_0x56bf3b(this,_0x87a679(0x138),this[_0x87a679(0x3eb)]),_0x56bf3b(this,_0x87a679(0xc7),new Map()),(this['_httpService']=_0x14b716,this['_configService']=_0x4e56c8,this[_0x87a679(0x3c0)]=_0x252d72);}[_0x23e0a9(0x2e9)](_0x40ea1d){const _0x6e9d3=_0x23e0a9;this['_waitCount']=_0x40ea1d,this[_0x6e9d3(0x3eb)][_0x6e9d3(0x3c8)](_0x40ea1d);}[_0x23e0a9(0x424)](_0x5aa961,_0xe950c){const _0x5cb113=_0x23e0a9;if(_0xe950c===_0x36cc2a['ImageSourceType'][_0x5cb113(0x398)]){const _0x5620d2=new Image();return _0x5620d2[_0x5cb113(0x348)]=_0x5aa961,_0x5620d2;}return this[_0x5cb113(0xc7)]['get'](_0x5aa961);}['addImageSourceCache'](_0x36741f,_0x21db77,_0x2817bf){const _0x51c933=_0x23e0a9;_0x21db77===_0x36cc2a['ImageSourceType']['BASE64']||_0x2817bf==null||this[_0x51c933(0xc7)][_0x51c933(0x2f7)](_0x36741f,_0x2817bf);}async[_0x23e0a9(0x4f0)](_0x42d0db){const _0x5f1723=_0x23e0a9;try{const _0x3ec68c=this[_0x5f1723(0xd9)](this['_getSignURL'](),''+_0x42d0db),_0x537f0a=(await this['_httpService'][_0x5f1723(0x1c4)](_0x3ec68c))[_0x5f1723(0x294)];if(_0x537f0a[_0x5f1723(0x4a8)]&&_0x537f0a['error'][_0x5f1723(0x17b)]===_0x49fe02['OK']){const _0x3c5ff5=new URL(_0x537f0a[_0x5f1723(0x24c)],this[_0x5f1723(0x295)]())[_0x5f1723(0x427)]();return Promise[_0x5f1723(0x236)](_0x3c5ff5);}return Promise[_0x5f1723(0x29c)](_0x537f0a['error']);}catch(_0x23ee57){return Promise['reject'](_0x23ee57);}}async[_0x23e0a9(0x13f)](_0x1389ed){const _0x5b1ce3=_0x23e0a9;let _0x3ac1b9='';if(!_0x3e8b25['includes'](_0x1389ed[_0x5b1ce3(0x29e)]))return this[_0x5b1ce3(0x4b7)](),Promise['reject'](new Error(_0x36cc2a[_0x5b1ce3(0x4af)]['ERROR_IMAGE_TYPE']));if(_0x1389ed[_0x5b1ce3(0x347)]>_0xca7c2c)return this[_0x5b1ce3(0x4b7)](),Promise[_0x5b1ce3(0x29c)](new Error(_0x36cc2a[_0x5b1ce3(0x4af)][_0x5b1ce3(0x48a)]));try{const _0x559f60=new FormData();_0x559f60[_0x5b1ce3(0x197)](_0x5b1ce3(0x1e6),_0x1389ed);const _0x4ea26a=this['_univerInstanceService'][_0x5b1ce3(0x180)](),_0x2035d1=_0x4ea26a==null?void 0x0:_0x4ea26a[_0x5b1ce3(0x27c)]();if(!_0x2035d1)throw new Error(_0x5b1ce3(0x228));const _0x35198a=this[_0x5b1ce3(0x12c)]()+_0x5b1ce3(0x3b6)+_0x1389ed[_0x5b1ce3(0x347)][_0x5b1ce3(0x427)]()+_0x5b1ce3(0x114)+_0x50caa2['UnitEmbedded']+_0x5b1ce3(0x3d6)+encodeURIComponent(_0x2035d1),_0x1c25a9=await(await fetch(_0x35198a,{'method':_0x5b1ce3(0x327),'body':_0x559f60}))[_0x5b1ce3(0xfb)]();if(typeof _0x1c25a9[_0x5b1ce3(0x133)]!=_0x5b1ce3(0x25d))return this[_0x5b1ce3(0x4b7)](),Promise[_0x5b1ce3(0x29c)](new Error(_0x36cc2a[_0x5b1ce3(0x4af)][_0x5b1ce3(0x2c3)]));_0x3ac1b9=_0x1c25a9[_0x5b1ce3(0x133)];}catch{return this[_0x5b1ce3(0x4b7)](),Promise[_0x5b1ce3(0x29c)](new Error(_0x36cc2a['ImageUploadStatusType'][_0x5b1ce3(0x2c3)]));}return new Promise((_0x5c59ba,_0xf38532)=>{const _0x30d851=_0x5b1ce3,_0x507033=new FileReader();_0x507033[_0x30d851(0x2d9)](_0x1389ed),_0x507033[_0x30d851(0x2a6)]=_0x1c2680=>{const _0x329872=_0x30d851;var _0x3416bb;const _0x4d82c3=(_0x3416bb=_0x1c2680['target'])==null?void 0x0:_0x3416bb[_0x329872(0x355)];if(_0x4d82c3==null){this[_0x329872(0x4b7)](),_0xf38532(new Error(_0x36cc2a[_0x329872(0x4af)][_0x329872(0x2c3)]));return;}const _0xfdd48d=_0x3cac39[_0x329872(0x4bf)][_0x329872(0x275)](0x6);_0x5c59ba({'imageId':_0xfdd48d,'imageSourceType':_0x36cc2a[_0x329872(0x29a)]['UUID'],'source':_0x3ac1b9,'base64Cache':_0x4d82c3,'status':_0x36cc2a[_0x329872(0x4af)][_0x329872(0x309)]}),this[_0x329872(0x4b7)]();};});}[_0x23e0a9(0x12c)](){const _0xb0fc69=_0x23e0a9;var _0x2355d7,_0x40306b;const _0x46de92=this[_0xb0fc69(0x259)][_0xb0fc69(0x3f1)](_0x1d0cca),_0x516ac1=this[_0xb0fc69(0x259)][_0xb0fc69(0x3f1)](_0x14d460);return(_0x40306b=(_0x2355d7=_0x516ac1==null?void 0x0:_0x516ac1['uploadFileServerUrl'])!=null?_0x2355d7:_0x46de92)!=null?_0x40306b:_0x20f535;}[_0x23e0a9(0x26e)](){const _0x3f36de=_0x23e0a9;var _0xe25584,_0x18c0aa;const _0x24b5b7=this[_0x3f36de(0x259)]['getConfig'](_0x5342b6),_0x475eaa=this['_configService'][_0x3f36de(0x3f1)](_0x14d460);return(_0x18c0aa=(_0xe25584=_0x475eaa==null?void 0x0:_0x475eaa[_0x3f36de(0x191)])!=null?_0xe25584:_0x24b5b7)!=null?_0x18c0aa:_0x22932e;}['_getDownloadEndpointURL'](){const _0x596379=_0x23e0a9;var _0x1b2d50;const _0x58e329=this[_0x596379(0x259)]['getConfig'](_0x14d460);return(_0x1b2d50=_0x58e329==null?void 0x0:_0x58e329[_0x596379(0x2c4)])!=null?_0x1b2d50:location[_0x596379(0x1e7)];}[_0x23e0a9(0xd9)](_0x367306,_0x1f6e16){return _0x367306['replace']('{fileID}',_0x1f6e16);}['_decreaseWaiting'](){const _0x415489=_0x23e0a9;this[_0x415489(0x169)]-=0x1,this['_change$'][_0x415489(0x3c8)](this['_waitCount']);}},_0x78d65c[_0x23e0a9(0x42f)]=_0x16909a([_0x4d53e4(0x0,_0x3cac39[_0x23e0a9(0xce)](_0x1e34c6['HTTPService'])),_0x4d53e4(0x1,_0x3cac39[_0x23e0a9(0x1fb)]),_0x4d53e4(0x2,_0x3cac39['Inject'](_0x3cac39['IUniverInstanceService']))],_0x78d65c[_0x23e0a9(0x42f)]);var _0x89650=Object[_0x23e0a9(0x2e3)],_0x34296d=Object[_0x23e0a9(0x4ac)],_0x44b5b3=(_0x34fdf7,_0x47b69b,_0x2af9b3,_0x5acffd)=>{const _0xc2f349=_0x23e0a9;for(var _0x220e56=_0x5acffd>0x1?void 0x0:_0x5acffd?_0x34296d(_0x47b69b,_0x2af9b3):_0x47b69b,_0x1ed7e0=_0x34fdf7[_0xc2f349(0x480)]-0x1,_0x5c4341;_0x1ed7e0>=0x0;_0x1ed7e0--)(_0x5c4341=_0x34fdf7[_0x1ed7e0])&&(_0x220e56=(_0x5acffd?_0x5c4341(_0x47b69b,_0x2af9b3,_0x220e56):_0x5c4341(_0x220e56))||_0x220e56);return _0x5acffd&&_0x220e56&&_0x89650(_0x47b69b,_0x2af9b3,_0x220e56),_0x220e56;},_0x5e5f2d=(_0x201ddc,_0x33266d)=>(_0x5ae07b,_0xc7779a)=>_0x33266d(_0x5ae07b,_0xc7779a,_0x201ddc);let _0x4c97ca=class extends _0x3cac39[_0x23e0a9(0x4b1)]{constructor(_0x13c0bb,_0x254bff,_0x4d0e2f,_0x2c16b7,_0x598f30){const _0x19a5f6=_0x23e0a9;super(),this['_injector']=_0x13c0bb,this['_univerInstanceService']=_0x254bff,this[_0x19a5f6(0x1ff)]=_0x4d0e2f,this[_0x19a5f6(0x1b1)]=_0x2c16b7,this[_0x19a5f6(0x452)]=_0x598f30,this[_0x19a5f6(0x273)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x21e32c=_0x23e0a9,_0x1cd37a=async _0x12fb49=>{const _0x36c315=_0x28b7;(await this[_0x36c315(0x1b1)][_0x36c315(0x42e)](_0x12fb49))[_0x36c315(0x421)][_0x36c315(0x19e)](_0x2b32ae[_0x36c315(0x366)](_0x385954=>_0x385954[_0x36c315(0x199)]===_0x42c3cc[_0x36c315(0x41b)][_0x36c315(0x353)]),_0x2b32ae[_0x36c315(0x2dd)](this[_0x36c315(0xfd)]))[_0x36c315(0x404)](_0x646436=>{const _0x51c130=_0x36c315,_0x1a4f95=_0x646436,{reason:_0x5c3346}=_0x1a4f95[_0x51c130(0x2bd)];this[_0x51c130(0x44b)][_0x51c130(0x1c4)](_0x4b9a33[_0x51c130(0xf1)])[_0x51c130(0x1d2)]({'type':_0x3003bf[_0x51c130(0x190)]['Error'],'content':this[_0x51c130(0x452)]['t'](_0x51c130(0x2af))+'('+_0x5c3346+')'}),this['_permissionService'][_0x51c130(0x1a4)](new _0x52138d['WorkbookEditablePermission'](_0x12fb49)['id'],!0x1),this[_0x51c130(0x1b1)]['closeSession'](_0x12fb49);});};_0x2132a7[_0x21e32c(0x2f3)](this[_0x21e32c(0x3c0)][_0x21e32c(0x4c0)](_0x3cac39[_0x21e32c(0x42b)][_0x21e32c(0xeb)]),this[_0x21e32c(0x3c0)][_0x21e32c(0x4c0)](_0x3cac39[_0x21e32c(0x42b)][_0x21e32c(0x28c)]))[_0x21e32c(0x19e)](_0x2b32ae[_0x21e32c(0x2f1)](_0x711ede=>_0x711ede[_0x21e32c(0x27c)]()),_0x2b32ae[_0x21e32c(0x366)](_0x4893d0=>!_0x3cac39[_0x21e32c(0x119)](_0x4893d0)),_0x2b32ae['takeUntil'](this['dispose$']))[_0x21e32c(0x404)](_0x1ed2a3=>{_0x1cd37a(_0x1ed2a3);});}['_initUnitPermissionChange'](){const _0x55e15f=_0x23e0a9,_0x2b8767=async _0x56367a=>{const _0x5a8be7=_0x28b7;(await this[_0x5a8be7(0x1b1)][_0x5a8be7(0x42e)](_0x56367a))[_0x5a8be7(0x421)][_0x5a8be7(0x19e)](_0x2b32ae[_0x5a8be7(0x366)](_0x32ade2=>_0x32ade2['eventID']===_0x42c3cc[_0x5a8be7(0x41b)][_0x5a8be7(0x435)]),_0x2b32ae[_0x5a8be7(0x2dd)](this[_0x5a8be7(0xfd)]))['subscribe'](_0x13277e=>{const _0x2a6889=_0x5a8be7,_0x3e3933=_0x13277e,{objectId:_0x83a61e}=_0x3e3933[_0x2a6889(0x2bd)],_0x37ed08=this[_0x2a6889(0x44b)][_0x2a6889(0x1c4)](_0x2a1992[_0x2a6889(0x483)]);_0x83a61e===_0x56367a?_0x37ed08[_0x2a6889(0xbb)](_0x56367a):_0x37ed08[_0x2a6889(0x3b3)](_0x56367a,_0x83a61e);});};_0x2132a7[_0x55e15f(0x2f3)](this[_0x55e15f(0x3c0)]['getTypeOfUnitAdded$'](_0x3cac39[_0x55e15f(0x42b)][_0x55e15f(0xeb)]),this[_0x55e15f(0x3c0)]['getTypeOfUnitAdded$'](_0x3cac39[_0x55e15f(0x42b)]['UNIVER_DOC']))[_0x55e15f(0x19e)](_0x2b32ae[_0x55e15f(0x2f1)](_0x16fcb3=>_0x16fcb3[_0x55e15f(0x27c)]()),_0x2b32ae['filter'](_0x5556a5=>!_0x3cac39[_0x55e15f(0x119)](_0x5556a5)),_0x2b32ae['takeUntil'](this[_0x55e15f(0xfd)]))[_0x55e15f(0x404)](_0x42b34d=>{_0x2b8767(_0x42b34d);});}};_0x4c97ca=_0x44b5b3([_0x5e5f2d(0x0,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39['Injector'])),_0x5e5f2d(0x1,_0x3cac39[_0x23e0a9(0x3ef)]),_0x5e5f2d(0x2,_0x3cac39[_0x23e0a9(0xaf)]),_0x5e5f2d(0x3,_0x3cac39[_0x23e0a9(0xce)](_0x78d65c[_0x23e0a9(0x386)])),_0x5e5f2d(0x4,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39['LocaleService']))],_0x4c97ca);var _0x4d7cdc=Object[_0x23e0a9(0x2e3)],_0x5eee65=Object[_0x23e0a9(0x4ac)],_0x37f430=(_0x880b61,_0x36e5f5,_0x41eb10,_0x38a747)=>{for(var _0x4d0e05=_0x38a747>0x1?void 0x0:_0x38a747?_0x5eee65(_0x36e5f5,_0x41eb10):_0x36e5f5,_0x56f9e0=_0x880b61['length']-0x1,_0x5eafc1;_0x56f9e0>=0x0;_0x56f9e0--)(_0x5eafc1=_0x880b61[_0x56f9e0])&&(_0x4d0e05=(_0x38a747?_0x5eafc1(_0x36e5f5,_0x41eb10,_0x4d0e05):_0x5eafc1(_0x4d0e05))||_0x4d0e05);return _0x38a747&&_0x4d0e05&&_0x4d7cdc(_0x36e5f5,_0x41eb10,_0x4d0e05),_0x4d0e05;},_0x5a6c47=(_0x4bcf96,_0x345f6c)=>(_0x5a8a03,_0x56a283)=>_0x345f6c(_0x5a8a03,_0x56a283,_0x4bcf96);_0x78d65c[_0x23e0a9(0x30b)]=class{constructor(_0x21b424,_0x2540dc){const _0x11632b=_0x23e0a9;this[_0x11632b(0x259)]=_0x21b424,this[_0x11632b(0xbd)]=_0x2540dc;}async['getUnitOnRev'](_0x544fb2,_0x208e4b){const _0x5b5ff5=_0x23e0a9;var _0x43cfc9;const {unitID:_0xf702bc,type:_0x47b4bb,revision:_0x517391=0x0}=_0x208e4b,_0x56a72c=this[_0x5b5ff5(0x324)]()+'/'+_0x47b4bb+_0x5b5ff5(0x474)+_0xf702bc+'/rev/'+_0x517391,_0x1aeeec=(await this['_httpService']['get'](_0x56a72c))[_0x5b5ff5(0x294)],_0x5b9761=(_0x43cfc9=_0x1aeeec['snapshot'])==null?void 0x0:_0x43cfc9['workbook'];if(_0x5b9761){const _0x1e0de5=_0x5b9761==null?void 0x0:_0x5b9761[_0x5b5ff5(0x306)],_0x392fcd=_0x42c3cc[_0x5b5ff5(0x1bf)][_0x5b5ff5(0x467)](_0x42c3cc['b64DecodeUnicode'](_0x1e0de5));_0x5b9761[_0x5b5ff5(0x306)]=_0x392fcd,Object[_0x5b5ff5(0x10f)](_0x5b9761[_0x5b5ff5(0x35e)])[_0x5b5ff5(0x2d4)](([,_0x5f04dd])=>{const _0x477e9c=_0x5b5ff5,_0x196ab9=_0x5f04dd[_0x477e9c(0x306)],_0x43f496=_0x42c3cc['textEncoder'][_0x477e9c(0x467)](_0x42c3cc[_0x477e9c(0x2e0)](_0x196ab9));_0x5f04dd[_0x477e9c(0x306)]=_0x43f496;});}return _0x1aeeec;}async[_0x23e0a9(0x420)](_0x36fd45,_0x5858e8){const _0x32a1d2=_0x23e0a9,{unitID:_0x1325b8,type:_0x1b0859,blockID:_0x384daf}=_0x5858e8,_0x774e31=this[_0x32a1d2(0x38e)]()+'/'+_0x1b0859+_0x32a1d2(0x474)+_0x1325b8+_0x32a1d2(0x310)+_0x384daf;return(await this['_httpService'][_0x32a1d2(0x1c4)](_0x774e31))[_0x32a1d2(0x294)];}async[_0x23e0a9(0x254)](_0x52f6ae,_0x2766b1){const _0x1a5c3c=_0x23e0a9,{unitID:_0x4bf829,type:_0x117140,blockID:_0xed1cad}=_0x2766b1,_0x2e9359=this[_0x1a5c3c(0x38e)]()+_0x1a5c3c(0x310)+_0x117140+_0x1a5c3c(0x474)+_0x4bf829+_0x1a5c3c(0x310)+_0xed1cad;return(await this['_httpService'][_0x1a5c3c(0x1c4)](_0x2e9359))['body'];}async['fetchMissingChangesets'](_0x506f46,_0x19239b){const _0x17dcba=_0x23e0a9,{unitID:_0x314608,type:_0x236d23,from:_0x3650ae,to:_0x25afa3}=_0x19239b,_0x2ae353=this[_0x17dcba(0x38e)]()+'/'+_0x236d23+_0x17dcba(0x474)+_0x314608+_0x17dcba(0x15f)+_0x3650ae+'&to='+_0x25afa3;return(await this[_0x17dcba(0xbd)][_0x17dcba(0x1c4)](_0x2ae353))[_0x17dcba(0x294)];}[_0x23e0a9(0x324)](){const _0x37d4f8=_0x23e0a9;var _0x58091d;return(_0x58091d=this[_0x37d4f8(0x259)]['getConfig'](_0x2fd73b))!=null?_0x58091d:this['_getAPIPrefix']();}[_0x23e0a9(0x38e)](){const _0x4f4a60=_0x23e0a9;var _0x2a22f5,_0x3b8a12;const _0x3f19a3=this[_0x4f4a60(0x259)]['getConfig'](_0x55fd85),_0x3db5b0=this['_configService'][_0x4f4a60(0x3f1)](_0x14d460);return(_0x3b8a12=(_0x2a22f5=_0x3db5b0==null?void 0x0:_0x3db5b0[_0x4f4a60(0x379)])!=null?_0x2a22f5:_0x3f19a3)!=null?_0x3b8a12:_0x18e08f;}async[_0x23e0a9(0x1cc)](_0x5c7e8,_0x1d54dd){const _0x3b8cb2=_0x23e0a9,_0x1e37de=_0x3b8cb2(0x276)+_0x1d54dd[_0x3b8cb2(0x29e)]+_0x3b8cb2(0x474)+_0x1d54dd['unitID']+'/resources';return(await this[_0x3b8cb2(0xbd)][_0x3b8cb2(0x1c4)](_0x1e37de,{'params':{'resourceId':JSON['stringify'](_0x1d54dd[_0x3b8cb2(0xe4)])}}))[_0x3b8cb2(0x294)];}['saveSnapshot'](){const _0x2489f3=_0x23e0a9;throw new Error(_0x2489f3(0x1da));}[_0x23e0a9(0x2bc)](){const _0x43f66d=_0x23e0a9;throw new Error(_0x43f66d(0x1da));}[_0x23e0a9(0x126)](){const _0x20db85=_0x23e0a9;throw new Error(_0x20db85(0x1da));}[_0x23e0a9(0x12e)](){const _0x385193=_0x23e0a9;throw new Error(_0x385193(0x1da));}['getLatestCsReqIdBySid'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},_0x78d65c['SnapshotServerOverHTTPService']=_0x37f430([_0x5a6c47(0x0,_0x3cac39[_0x23e0a9(0x1fb)]),_0x5a6c47(0x1,_0x3cac39[_0x23e0a9(0xce)](_0x1e34c6['HTTPService']))],_0x78d65c['SnapshotServerOverHTTPService']);var _0x24959d=Object[_0x23e0a9(0x2e3)],_0x2e35d5=Object[_0x23e0a9(0x4ac)],_0x399470=(_0x46996a,_0x589c03,_0x142110,_0x5681b7)=>{const _0x5a3ec3=_0x23e0a9;for(var _0x5a9421=_0x5681b7>0x1?void 0x0:_0x5681b7?_0x2e35d5(_0x589c03,_0x142110):_0x589c03,_0x3a07ba=_0x46996a[_0x5a3ec3(0x480)]-0x1,_0x2986e3;_0x3a07ba>=0x0;_0x3a07ba--)(_0x2986e3=_0x46996a[_0x3a07ba])&&(_0x5a9421=(_0x5681b7?_0x2986e3(_0x589c03,_0x142110,_0x5a9421):_0x2986e3(_0x5a9421))||_0x5a9421);return _0x5681b7&&_0x5a9421&&_0x24959d(_0x589c03,_0x142110,_0x5a9421),_0x5a9421;},_0x46fa1a=(_0x221678,_0x5be4ea)=>(_0x3ba6e6,_0x49d2e0)=>_0x5be4ea(_0x3ba6e6,_0x49d2e0,_0x221678);let _0x9cb0de=class extends _0x3cac39[_0x23e0a9(0x46f)]{constructor(_0x4a8f34,_0x3a22a8,_0x8c0067,_0x376e72,_0x50af8e){const _0x53ac5b=_0x23e0a9;super(_0x4a8f34,_0x3a22a8,_0x8c0067),this['_transformService']=_0x376e72,this[_0x53ac5b(0x110)]=_0x50af8e;}[_0x23e0a9(0x49c)](_0x143757,_0x4ce69e){const _0x305502=_0x23e0a9,_0x4e9a6f=this[_0x305502(0x152)](_0x143757);if(_0x4e9a6f)try{const _0xec240c=this['_transformStack'](_0x4e9a6f,_0x4ce69e);this[_0x305502(0x244)](_0x143757,_0xec240c);}catch(_0x1b27de){this[_0x305502(0x110)][_0x305502(0x4a8)]('[CollaborationUndoRedoService]',_0x1b27de),this[_0x305502(0x28f)](_0x143757);}const _0x482bec=this['_getRedoStack'](_0x143757);if(_0x482bec)try{const _0x23011e=this[_0x305502(0x297)](_0x482bec,_0x4ce69e);this[_0x305502(0x257)](_0x143757,_0x23011e);}catch(_0x16fd89){this[_0x305502(0x110)][_0x305502(0x4a8)](_0x16fd89),this[_0x305502(0x1ac)](_0x143757);}}[_0x23e0a9(0x28f)](_0x505092){const _0x6ce9d0=_0x23e0a9,_0x56d556=this['_getUndoStack'](_0x505092);_0x56d556&&(_0x56d556['length']=0x0,this[_0x6ce9d0(0x42a)]());}[_0x23e0a9(0x1ac)](_0x5d59da){const _0x3d1bb0=_0x23e0a9,_0x4221ab=this[_0x3d1bb0(0x175)](_0x5d59da);_0x4221ab&&(_0x4221ab[_0x3d1bb0(0x480)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x497193,_0x45d9a5){const _0xd8efa6=_0x23e0a9;this[_0xd8efa6(0x359)]['set'](_0x497193,_0x45d9a5),this[_0xd8efa6(0x42a)]();}['_substituteRedoStack'](_0xf68379,_0x5bccbc){const _0x31bd9c=_0x23e0a9;this[_0x31bd9c(0x4d9)][_0x31bd9c(0x2f7)](_0xf68379,_0x5bccbc),this[_0x31bd9c(0x42a)]();}[_0x23e0a9(0x297)](_0x4056e4,_0x3e13a8){const _0x3af66a=_0x23e0a9,_0x1e9452=[];let _0xecbad5=_0x3e13a8,_0x2fdb85=_0x3e13a8;for(let _0x485bf6=_0x4056e4['length']-0x1;_0x485bf6>=0x0;_0x485bf6--){const {unitID:_0x4c86cb,undoMutations:_0x79dc8b,redoMutations:_0x5cd842}=_0x4056e4[_0x485bf6],_0x2e941e=this['_transformService']['transformMutationsWithChangeset'](_0xecbad5,_0x79dc8b),_0x5823e7=this['_transformService'][_0x3af66a(0x29d)](_0x2fdb85,_0x5cd842);if(_0x42c3cc['isTransformMutationsWithChangesetFailure'](_0x2e941e)||_0x42c3cc[_0x3af66a(0xcf)](_0x5823e7)){this['_logService']['error']('[CollaborationUndoRedoService]',_0x3af66a(0x3c9),_0x2e941e,_0x5823e7);break;}_0xecbad5=_0x2e941e[_0x3af66a(0x200)],_0x2fdb85=_0x5823e7[_0x3af66a(0x200)],_0x1e9452['push']({'unitID':_0x4c86cb,'undoMutations':_0x2e941e[_0x3af66a(0x40a)],'redoMutations':_0x5823e7['m2Prime']});}return _0x1e9452[_0x3af66a(0x1ae)]();}};_0x9cb0de=_0x399470([_0x46fa1a(0x0,_0x3cac39['IUniverInstanceService']),_0x46fa1a(0x1,_0x3cac39[_0x23e0a9(0x368)]),_0x46fa1a(0x2,_0x3cac39['IContextService']),_0x46fa1a(0x3,_0x42c3cc[_0x23e0a9(0x4c6)]),_0x46fa1a(0x4,_0x3cac39[_0x23e0a9(0x2b9)])],_0x9cb0de);class _0x40905e extends _0x3cac39[_0x23e0a9(0x4b1)]{constructor(){const _0x4d6b8f=_0x23e0a9;super(),_0x56bf3b(this,_0x4d6b8f(0x3f9)),this['urlChange$']=_0x2132a7[_0x4d6b8f(0x469)](window,'popstate')[_0x4d6b8f(0x19e)](_0x2132a7[_0x4d6b8f(0x2dd)](this['dispose$']),_0x2132a7[_0x4d6b8f(0x283)](0x1),_0x2132a7[_0x4d6b8f(0x206)](void 0x0));}[_0x23e0a9(0x2e5)](_0x378b34,_0x3aaf3f,_0x227247=!0x1){const _0x18767f=_0x23e0a9,_0x1ee56d=new URL(window[_0x18767f(0x4c3)][_0x18767f(0x121)]);_0x1ee56d[_0x18767f(0x4d6)][_0x18767f(0x2f7)](_0x378b34,_0x3aaf3f),_0x227247?window['history'][_0x18767f(0x47b)]('','',_0x1ee56d[_0x18767f(0x427)]()):window[_0x18767f(0x296)][_0x18767f(0x394)]('','',_0x1ee56d['toString']());}['removeParam'](_0xbd0687,_0x22c314=!0x1){const _0x272dc1=_0x23e0a9,_0x4d3923=new URL(window[_0x272dc1(0x4c3)]['href']);_0x4d3923[_0x272dc1(0x4d6)][_0x272dc1(0x2cb)](_0xbd0687),_0x22c314?window[_0x272dc1(0x296)]['replaceState']('','',_0x4d3923[_0x272dc1(0x427)]()):window[_0x272dc1(0x296)]['pushState']('','',_0x4d3923[_0x272dc1(0x427)]());}[_0x23e0a9(0x163)](_0x55cf35){const _0x2a0601=_0x23e0a9;var _0x3bc4e1;return(_0x3bc4e1=new URL(window['location']['href'])[_0x2a0601(0x4d6)][_0x2a0601(0x1c4)](_0x55cf35))!=null?_0x3bc4e1:void 0x0;}}var _0x569120=Object[_0x23e0a9(0x2e3)],_0x5e26bb=Object[_0x23e0a9(0x4ac)],_0x18d7e1=(_0x14b86a,_0x4775da,_0x288159)=>_0x4775da in _0x14b86a?_0x569120(_0x14b86a,_0x4775da,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x288159}):_0x14b86a[_0x4775da]=_0x288159,_0x11a39f=(_0x337bd5,_0x23a20d,_0x133b33,_0x4cfbcc)=>{const _0x309056=_0x23e0a9;for(var _0x7226c5=_0x4cfbcc>0x1?void 0x0:_0x4cfbcc?_0x5e26bb(_0x23a20d,_0x133b33):_0x23a20d,_0x170f75=_0x337bd5[_0x309056(0x480)]-0x1,_0x345d81;_0x170f75>=0x0;_0x170f75--)(_0x345d81=_0x337bd5[_0x170f75])&&(_0x7226c5=(_0x4cfbcc?_0x345d81(_0x23a20d,_0x133b33,_0x7226c5):_0x345d81(_0x7226c5))||_0x7226c5);return _0x4cfbcc&&_0x7226c5&&_0x569120(_0x23a20d,_0x133b33,_0x7226c5),_0x7226c5;},_0x26c41e=(_0xcd350,_0x458826)=>(_0x5a9d58,_0x16de03)=>_0x458826(_0x5a9d58,_0x16de03,_0xcd350),_0x1ac441=(_0x4434c0,_0x5e645e,_0xa0b087)=>_0x18d7e1(_0x4434c0,_0x5e645e+'',_0xa0b087);const _0x45720e=_0x23e0a9(0x2cf);_0x78d65c[_0x23e0a9(0x3e1)]=class extends _0x3cac39[_0x23e0a9(0x4da)]{constructor(_0x2cb372=_0x5523ca,_0x498214,_0x4103fe,_0x42e3dc,_0x3d2bfe){const _0x25d5c8=_0x23e0a9;super(),this['_config']=_0x2cb372,this[_0x25d5c8(0x110)]=_0x498214,this['_renderManagerService']=_0x4103fe,this[_0x25d5c8(0x44b)]=_0x42e3dc,this[_0x25d5c8(0x259)]=_0x3d2bfe;const {..._0x380b9e}=this[_0x25d5c8(0xc6)];this[_0x25d5c8(0x259)][_0x25d5c8(0x1ea)](_0x14d460,_0x380b9e);}['onStarting'](){const _0x2b125e=_0x23e0a9;this[_0x2b125e(0x334)](),_0x3cac39[_0x2b125e(0x371)](this['_injector'],[[_0x2430d6],[_0x78d65c[_0x2b125e(0x24b)]],[_0x4c97ca]]);}[_0x23e0a9(0x198)](){const _0x6bc597=_0x23e0a9;_0x3cac39[_0x6bc597(0x371)](this['_injector'],[[_0x16f0e7]]);}[_0x23e0a9(0x318)](){const _0x4d8c26=_0x23e0a9;this[_0x4d8c26(0x2ae)]();}[_0x23e0a9(0x334)](){const _0x2c9c1d=_0x23e0a9;var _0x3a67a6,_0xfc0ac8,_0x3052d9,_0x3a6413;this['_injector'][_0x2c9c1d(0x1ad)](_0x3cac39['IUndoRedoService'])&&this[_0x2c9c1d(0x110)]['error']('[UniverCollaborationClientPlugin]','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x3698be=[[_0x3cac39[_0x2c9c1d(0x30d)],{'useClass':_0x9cb0de}],[_0x78d65c[_0x2c9c1d(0x386)]],[_0xa7f099],[_0x1e34c6[_0x2c9c1d(0x47e)]],[_0x190919,{'useClass':_0x40905e}],[_0x2b8623],[_0x78d65c[_0x2c9c1d(0x494)]],[_0x1e34c6['WebSocketService']],[_0xd9170b],[_0x59fe63],[_0x3ae3a1],[_0xc97cad],[_0x3106a5],[_0x2d4d2c],[_0x3b262c],[_0x4c97ca],[_0x2b02ef,{'useClass':(_0xfc0ac8=(_0x3a67a6=this['_config'])==null?void 0x0:_0x3a67a6[_0x2c9c1d(0x3ad)])!=null?_0xfc0ac8:_0x78d65c[_0x2c9c1d(0x1d3)]}],[_0x1e34c6[_0x2c9c1d(0x44f)],{'useClass':_0x1e34c6[_0x2c9c1d(0x3a7)]}],[_0x42c3cc[_0x2c9c1d(0x408)],{'useClass':_0x78d65c[_0x2c9c1d(0x30b)]}],[_0x3cac39[_0x2c9c1d(0x3ae)],{'useClass':_0x78d65c[_0x2c9c1d(0x464)]}],[_0x36cc2a[_0x2c9c1d(0x23b)],{'useClass':_0x78d65c['ImageIoService']}],[_0x78d65c[_0x2c9c1d(0x2d1)]],[_0x78d65c[_0x2c9c1d(0x24b)]],[_0x78d65c[_0x2c9c1d(0x1a8)]],[_0x16f0e7],[_0x2430d6]];(_0x3052d9=this['_config'])!=null&&_0x3052d9[_0x2c9c1d(0x1d7)]&&_0x3698be[_0x2c9c1d(0xcc)]([_0xc9af34,{'useClass':_0x492f65}]),_0x3698be=_0x3cac39[_0x2c9c1d(0x4ae)](_0x3698be,(_0x3a6413=this[_0x2c9c1d(0xc6)])==null?void 0x0:_0x3a6413[_0x2c9c1d(0x221)]),_0x3698be['forEach'](_0x41c151=>this[_0x2c9c1d(0x44b)][_0x2c9c1d(0x117)](_0x41c151)),this[_0x2c9c1d(0x188)]();}['_registerRenderDependencies'](){const _0x46c761=_0x23e0a9;this[_0x46c761(0x382)](this['_renderManagerService'][_0x46c761(0x112)](_0x3cac39[_0x46c761(0x42b)][_0x46c761(0x28c)],[_0x6af6d2])),this[_0x46c761(0x382)](this[_0x46c761(0x125)][_0x46c761(0x112)](_0x3cac39['UniverInstanceType'][_0x46c761(0xeb)],[_0x5af942]));}['_initModules'](){const _0x32d050=_0x23e0a9;var _0x30a1bb,_0x27ac8c;this[_0x32d050(0x44b)][_0x32d050(0x1c4)](_0x1e34c6['HTTPService'])[_0x32d050(0x419)]({'priority':0x14,'interceptor':_0x1e34c6[_0x32d050(0x241)]({'maxParallel':0x6})}),this[_0x32d050(0x44b)]['get'](_0x2d4d2c),(_0x30a1bb=this[_0x32d050(0xc6)])!=null&&_0x30a1bb[_0x32d050(0x465)]||this[_0x32d050(0x44b)][_0x32d050(0x1c4)](_0x78d65c[_0x32d050(0x494)])[_0x32d050(0x1f3)](),(_0x27ac8c=this[_0x32d050(0xc6)])!=null&&_0x27ac8c[_0x32d050(0x263)]&&this[_0x32d050(0x44b)]['get'](_0x3106a5),this[_0x32d050(0x44b)][_0x32d050(0x1c4)](_0x78d65c[_0x32d050(0x2d1)]),this[_0x32d050(0x44b)][_0x32d050(0x1ad)](_0x78d65c[_0x32d050(0x1a8)])&&this[_0x32d050(0x44b)][_0x32d050(0x1c4)](_0x78d65c['DesktopCollaborationStatusDisplayController']);}},_0x1ac441(_0x78d65c['UniverCollaborationClientPlugin'],'pluginName',_0x45720e),_0x78d65c['UniverCollaborationClientPlugin']=_0x11a39f([_0x3cac39[_0x23e0a9(0x28a)](_0x42c3cc[_0x23e0a9(0xc4)]),_0x26c41e(0x1,_0x3cac39['ILogService']),_0x26c41e(0x2,_0x571c77[_0x23e0a9(0x3a1)]),_0x26c41e(0x3,_0x3cac39[_0x23e0a9(0xce)](_0x3cac39[_0x23e0a9(0x137)])),_0x26c41e(0x4,_0x3cac39['IConfigService'])],_0x78d65c[_0x23e0a9(0x3e1)]),_0x78d65c['AUTHZ_URL_KEY']=_0x223fe9,_0x78d65c[_0x23e0a9(0x212)]=_0x1993c5,_0x78d65c[_0x23e0a9(0x2c7)]=_0x1e3926,_0x78d65c[_0x23e0a9(0x101)]=_0x446eef,_0x78d65c[_0x23e0a9(0x1f5)]=_0x4260e5,_0x78d65c[_0x23e0a9(0x2e2)]=_0x3b262c,_0x78d65c['HEARTBEAT_INTERVAL_KEY']=_0x17527c,_0x78d65c['HEARTBEAT_TIMEOUT_KEY']=_0x16f902,_0x78d65c[_0x23e0a9(0x3dc)]=_0x2b02ef,_0x78d65c[_0x23e0a9(0x1c6)]=_0x190919,_0x78d65c['LOCAL_CACHE_INTERVAL_KEY']=_0x1ab361,_0x78d65c[_0x23e0a9(0x1ec)]=_0xdad26c,_0x78d65c[_0x23e0a9(0x1c1)]=_0x5129fd,_0x78d65c[_0x23e0a9(0x43e)]=_0x2a7c91,_0x78d65c[_0x23e0a9(0xe1)]=_0x55fd85,_0x78d65c[_0x23e0a9(0xb2)]=_0x2fd73b,_0x78d65c[_0x23e0a9(0x202)]=_0x3ddb25,_0x78d65c[_0x23e0a9(0x15a)]=_0x51465b,_0x78d65c['WebURLService']=_0x40905e,_0x78d65c[_0x23e0a9(0x32d)]=_0x52abe7,_0x78d65c[_0x23e0a9(0x312)]=_0x230f9c,Object[_0x23e0a9(0x2e3)](_0x78d65c,Symbol['toStringTag'],{'value':_0x23e0a9(0x49a)});}));function _0x3c27(){const _0x44a15e=['Rectangle','_applyRemoteChangeset','concatMap','sheets','getSheetBySheetId','USERS_LEAVE','@univerjs/telemetry','getCurrent','contains','UPDATE_CURSOR','36plRVHi','filter','_getSendChangesetTimeout','ICommandService','_scheduleSaving','isTransformChangesetsSuccess','_heartbeatTimer','removeMember','SheetSkeletonManagerService','VIEW_MAIN','2555536rhGuAz','_removeClearOtherTimer','touchDependencies','_sheetSkeletonManagerService','trim','_transformService','_onFetchMissResult','\x20-\x20','getSheetId','sequenceExecute','snapshotServerUrl','_joinRoom','@univerjs-pro/collaboration','collaboration-client.config','_uiPartsService','fromEventSubject','11399820qOHAfX','responseType','toDisposable','disposeWithMe','_toggleOnline','idSuffix','_collaborationPaused','CollaborationSessionService','status$','colorChannel1','min','_getMergeRange','roomMembers','_lastPointer','/universer-api/authz','_getAPIPrefix','_updateCollabCursors','some','on-line-single_clip0_910_349','loadDoc','_instanceService','pushState','parseChangesetToProtocol','MergeInterceptorFactory','_collaborationController','BASE64','unshift','translate(.97)','InsertRowCommandId','getTypeOfUnitDisposed$','[CollaborationSessionService]','purple300','status','5gxzbuw','IRenderManagerService','COMPRESS_MUTATION_SEND','MUTATION','asObservable','getMemberID','verdancy600','XHRHTTPImplementation','_localCacheService','docStateChange$','socket\x20close','assignAColorForMemberID','clearTimeout','socketService','IAuthzIoService','conflict.title','_refRangeService','DocSelectionManagerService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','refreshPermission','isEditing','LocaleService','?size=','post','split','RegularPolygon','SNAPSHOT_INVALID_SNAPSHOT','_onOffline','awaitingChangeset','YUUMI_URL_COL_OUT_OF_RANGE','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','176LYupRi','_univerInstanceService','unitID','pauseCollaboration','_onUserLeave','_queuedRemoteChangesets','_beforeCloseService','UserManagerService','UnitEmbedded','next','transformStack\x20failed!','_cursors','name','conflict.content','_revisionService','sid','ITelemetryService','indexOf','disposeUnit','url(#off-line-single_clip0_910_343)','syncEditingCollabCursor','UniverDocs','stopTime','&assign=','getUnitStatus$','_changesetSessionId','univer-pro.collaboration-client.single-active-unit-service','Disposable','handleIRemoveCol','ICollaborationSocketService','members','fetching\x20missing\x20changesets\x20from\x20','visibilitychange','getUnhiddenWorksheets','UniverCollaborationClientPlugin','storage','hasOwnProperty','_ensureSubject','toLowerCase','_socketService','collab-text-anchor-','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','TOO_MANY_REQUESTS','[OfflineState]:\x20received\x20acknowledgement.','_change$','HEARTBEAT','_send','InsertRangeMoveRightCommandId','IUniverInstanceService','UNDEFINED','getConfig','_startTelemetryCollaborationNewChangeset','0\x200\x2017\x2016','FETCH_MISSING','_changesetReqId','update','apply','sessionStatus','urlChange$','RemoveColCommandId','[CollaborationSessionService]:\x20socket\x20error','#FFF','close','/universer-api/comb','setItem','UniverIcon','getAttachHeader','collaboration_new_changeset','useObservable','subscribe','IBeforeCloseService','isArray','transformMutation','ISnapshotServerService','_undoRedoService','m2Prime','_lockTransition','_retryCount','DisposableCollection','getSkeleton','collabStatus.conflict','IUIPartsService','_getScale','@univerjs/sheets-ui','state$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','onTransformSelections','gold400','_scheduleHeartbeat','_checkMissing','registerHTTPInterceptor','createSocket','CollaborationEvent','YUUMI_UNABLE_LOAD_URL','setTimeout','onlineStatus','_removeCollabCursors','getSheetBlock','event$','transform','_snapshotService','getImageSourceCache','isTransformMutationFailure','_onConnectionOpen','toString','UniverSheetsUi','LICENSE_EXPORT_SIZE_EXCEEDED','_updateStatus','UniverInstanceType','_HTTPService','CHANGESET_ACK','requireSession','ImageIoService','ranges','interceptor','APPLY_DUPLICATED','getCurrentSelections','_syncEditingCollabCursor','UPDATE_PERMISSION_OBJ','roomMembers$','UniverLicense','_unitID','on-line-single','row','measureText','JOINING','put','SEND_CHANGESET_TIMEOUT_KEY','_cursor','_id','_onRemoteRejected','transformChangesets','collaMsg','getCollabEntity$','_online','@univerjs/engine-render','textRanges','range','_socketReady','_rescheduleHeartbeat','_injector','_hover','BuiltInUIPart','univer-online-status-title','IHTTPImplementation','_backgroundColor','UnitSnapshot','_localeService','subscribeEvent','_listenToOfflineEvent','combineLatest','_initResize','_docSkeletonManagerService','_removeRoom','useRef','sessionStatus$','m1Prime','userID','_scheduleClearOtherTimer','confirm','onTransformIME','[PendingState]:\x20received\x20acknowledgement.','toRgbString','_clearTimeoutTimer','_startCollaboration','AuthzIoHttpService','enableOfflineEditing','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','encode','className','fromEvent','_sendHeartbeat','COLORS','_http','_sheetTransformSelectionsService','collabSubmitChangesetUrl','LocalUndoRedoService','registerRefRange','@univerjs/ui','replace','LIVESHARE_TERMINATE','/unit/','_shouldReportTelemetry','serializeRangeWithSheet','call','_getCurrentRevision','FromArray','amd','replaceState','_initMergeInterceptor','SheetCollaborationEntity','HTTPService','loadOfflineData','length','UNKNOWN_CODE','_getCtorByUniverType','SheetPermissionInitController','icon','Shape','startsWith','FETCH_MISS','RichTextEditingMutation','save','ERROR_EXCEED_SIZE','7734zxtlJG','findNodePositionByCharIndex','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','onPointerEnter$','_listenToOnlineEvent','getItem','getRoom','baseRev','color','LocalCacheService','@univerjs/rpc','isTransformMutationsWithChangesetSuccess','getCurrentRevOfUnit','toggleOnline','_onMessage','Module','LIVESHARE_NEW_HOST','transformUndoRedo','LICENSE_DISTRO_REJECTED','BehaviorSubject','MSG_FOR_ERROR','revision','width','_updateState','_render','_clearHeartbeatTimer','_exhaustRemoteChangesetQueue','connection\x20error','getCellPositionByOffset','error','@univerjs/design','_createHandler','HEADER_MENU','getOwnPropertyDescriptor','CHANGESET_REJ','mergeOverrideWithDependencies','ImageUploadStatusType','PERMISSION_REJ','RxDisposable','slice','getMember','_replayCachedMutations','onRemoteChangeset','_snapshotServerService','_decreaseWaiting','univer-online-status-icon','_drawRectRange','leaveEvent','/-/object/list','blue400','_colorIndex','_memberService','Tools','getTypeOfUnitAdded$','_loadSheet','_toggleOffline','location','unitId','LEAVE','ITransformService','current','hide','_startSheetCollabCursor','getCurrentUnitForType','extend','registerComponent','/universer-api/file/{fileID}/sign-url','_timeoutTimer','NodePositionConvertToCursor','createInstance','APPLY_PERMISSION_DENIED','fillStyle','auth.needGotoLoginAlert','_drawTextRange','M0\x200H16V16H0z','searchParams','AUTHZ_URL_KEY','_hovered','_redoStacks','Plugin','_docTransformSelectionsService','SetWorksheetActivateCommand','_anchor','handleMoveRange','unsubscribe','transformRemoteChangeset','runRefRangeMutations','[FetchMissState]','onTransformRemoteChangesetByIMECache','getDocRanges','_document','sheetId','getRangePointData','selections','_entityInit$','_range','CollaborationSession','SNAPSHOT_HAS_BEEN_REMOVED','_telemetryService','image/png','/collaborator','getImage','collaboratorID','_unitStatus','ACTIVE_UNIT_EVENT_CHANNEL','IPermissionService','LIVESHARE_REQUEST_HOST','HEARTBEAT_INTERVAL','SNAPSHOT_URL_KEY','_collabSessionService','onCommandExecuted','CommandType','_commentUpdate$','subunit','debug','max','onMissedChangesetFetched','initWorkbookPermissionChange','_commentService','_httpService','collaboration.single-unit.warning','triggerDblclick','image/jpeg','fetchThroughInterceptors','collab-client.tooltip.reconnect','_unlockTransition','UniverCollaborationPlugin','_sendHeartbeatTimer','_config','_imageSourceCache','RevisionService','state','_roomMembers$','_docSkeleton','push','onRemoteAck','Inject','isTransformMutationsWithChangesetFailure','_anchorDot','onPointerLeave$','AWAITING_WITH_PENDING','_cachedData','_initStatusComponent','debounceTime','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','column','...','_replaceFileID','getRenderById','concat','CollaborationEntity','ENSURE_SNAPSHOT_EXECUTION','objectType','deleteCollaborator','transformSelections','SNAPSHOT_SERVER_URL_KEY','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','439524MzoLPi','resourceIDs','\x0aCurrent:\x20','_roomMembers','socket\x20open.','black','Workbook','_syncEditingCollabCursorService','UNIVER_SHEET','_throwTelemetryCollaborationNewChangeset','makeDirty','univer-online','OFFLINE','permissionRejEvent','IMessageService','image/gif','actions','Subject','none','COLLAB_SUBMIT_CHANGESET_URL','_shapes','_telemetryInfo','[SyncedState]:\x20received\x20acknowledgement.','CONNECTOR_DATA_TOO_LARGE','json','collabStatus.fetchMiss','dispose$','INotificationService','_schedule','mutations','CollaborationStatus','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_onConnectionFailed','localeService','_localStorageService','EffectRefRangId','currentTheme$','clear','getViewport','take','bottom','evenodd','_hideTimer','fetchMissingChangesets','entries','_logService','off-line-single_clip0_910_343','registerRenderModule','createCollaborator','&source=','_event$','conflict','add','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','isInternalEditorID','RefRangeService','newCsEvent','COMPLETION_FINISHED','\x0aAfter:\x20','PERMISSION_DENIED','_urlService','/allowed','href','CompressMutationService','_sendingTimer','_incrementRevisionNumber','_renderManagerService','saveChangeset','_onConflict','_transformUndoredo','exports','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','registerOnClose','_getUploadFileURL','memberID','copyFileMeta','@univerjs-pro/license','whenReady','_context','_isPermissionRej','FileId','NEW_CHANGESETS','catch','_loadDoc','Injector','change$','objectActions','@univerjs/drawing','addEventListener','appendMutation','permission.content','includes','saveImage','onMouseMove','getMergeData','getActiveSheet','onRemoteRej','_onRemoteChangeset','OffLineSingle','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','collabCursorState$','sendChangesetTimeout','SetDocZoomRatioOperation','getInterceptPoints','symbol','newValue','svg','_disabled','_remoteChangesetQueue','NOT_FOUND','drawWith','_getUndoStack','list','debounce','_candidateSocket','_eventUnsubscribe','_onCursorUpdate','ColorKit','displayName','SheetCollabCursorShape','endRow','useDependency','transformIMECache','_updateSubUnitFromURLParams','/fetchmissing?from=','univer-online-status','getOffsetConfig','DocStateChangeManagerService','getParam','UniverDesign','13862431zQkZlf','isPermissionRej','_handleEvent','setShapeProps','_waitCount','allowed','Warning','top','session.room-full','_stopTelemetryCollaborationNewChangeset','_singleActiveUnitService','_clearLocalCache','createIdentifier','toggleOffline','getCollabCursors$','_handleHeartbeatEvent','_getRedoStack','Vector2','getCurrentUser','[CollaborationState]:\x20apply\x20error!','@univerjs/docs-ui','endColumn','code','updateCursorEvent','DEFAULT_FILE_NAME','currentSkeleton$','_handler','getFocusedUnit','_ws','arc','_getSaveTimeout','_createSocket','10RbFrIT','clipPath','reqId','_initModules','action','lineTo','UniverCollaborationClient','_waitForHeartbeatResponse','reconnect','collabWebSocketUrl','close$','MessageType','signUrlServerUrl','clearInterval','retryConnectingInterval','_socketMessageSubscription','_handleLeaveEvent','session','append','onReady','eventID','random','init','IDLE','OTHER_CLIENTS_EDITING','pipe','startRow','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','fill','PENDING','OnLineSingle','updatePermissionPoint','UNIVER_SLIDE','getValue','_session','DesktopCollaborationStatusDisplayController','Unknown\x20user','tag','isValidRectRange','_clearRedo','has','reverse','addObject','method','_collaborationSessionService','liveShareNewHost','LIVESHARE_FETCH_OPERATIONS','skeleton','_tryReconnect','SUBMIT_CHANGESET','setUndoRedoMutationParamsCache','getVpScrollXYInfoByPosToVp','_collaborationTimeoutTimer','AWAITING','duration','[PendingState]:\x20unhandled\x20univer\x20type:\x20','executeCommand','complete','textEncoder','_onJoinRoomEvent','RETRY_CONNECTING_MAX_COUNT_KEY','equals','ALREADY_EXISTS','get','HttpExport','IURLService','_handleJoinEvent','#fff','cursorInfo$','getCoordByCell','shouldCloseConn','getResourcesRequest','bind','function','_submitChangeset','assign','infoRsp','show','CollaborationSocketService','then','rev','headers','enableSingleActiveInstanceLock','children','LICENSE_IMPORT_SIZE_EXCEEDED','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','params','ws://127.0.0.1:8000/universer-api/comb/connect','_tryEnsureSocket','[PendingState]:\x20received\x20rejection.','_init','JOIN','_clearOtherTimers','subUnitId','InsertRangeMoveDownCommandId','getSheetObject','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','file','origin','ILocalStorageService','getRelativeToViewportCoord','setConfig','routeKey','LOGIN_URL_KEY','substring','from','_onCombEvent','_unitOnClients','Tooltip','synced','disableLocalCache','COMMENT_UPDATE','CollaborationStatusDisplay','DocSkeletonManagerService','DocCollaborationEntity','FAIL','_initCommandExecutedListener','_docSyncEditingCollabCursorService','IConfigService','[DataLoaderController]','ONLINE','MoveRangeCommandId','_permissionService','c1Prime','/object','SessionStatus','awaiting','now','RemoveRowCommandId','mapTo','_transformRemoteChangesetByIMECache','IRemoteInstanceService','roles','ThemeService','xlink:href','reduce','getAncestorScale','_selfUnitIDs','/universer-api/oidc/authpage','rng','_userManagerService','COLLAB_SUBMIT_CHANGESET_URL_KEY','handleInsertRangeMoveRight','awaiting_with_pending','getUnitType','\x20in\x20_schedule.','PSEUDO_FETCH_MISSING_RESULT','_members','_messageService','forwardRef','objectID','closePath','WorkbookEditablePermission','DeleteRangeMoveUpCommandId','SetSelectionsOperation','NodePositionConvertToRectRange','override','_onRemoteACK','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','startTime','fillText','1em','APPLY_REVISION_CONFILICT','unitId\x20is\x20not\x20found','parse','exhaustSavingTask','RETRY_CONNECTING_MAX_COUNT','fetchMiss','_labelPosition','setCurrentUser','onlineStatusTitle','@univerjs/network','_draw','NOT_COLLAB','collaboration-session-retry','submit\x20changeset\x20error!','div','resolve','_onLocalMutation','use','_updateLocalCursor','_cursorShapes','IImageIoService','@univerjs/core','send','SetTextSelectionsOperation','UniverEngineFormula','LICENSE_MAX_UNITS_EXCEEDED','ThresholdInterceptorFactory','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','UniverRpc','_substituteUndoStack','_pendingMutations','handleInsertRangeMoveDown','InsertColCommandId','_docTransformIMECacheService','x-univer-host','prototype','DataLoaderController','url','LIVESHARE_OPERATION','putCollaborators','UniverUi','dispose','requestParams','1915QRusFI','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getDeserializedSheetBlock','UniverSheets','UNIVER_UNKNOWN','_substituteRedoStack','_fetchMissChangesets','_configService','image/jpg','_initEventListeners','_setupBeforeClosingHandler','string','UNIVER_PROJECT','@univerjs/engine-formula','_saveTaskMap','handleIRemoveRow','_onRefRangeChange','enableAuthServer','attrs','INGEST','_refreshCollabCursors','object','RECV','_getLoginPath','_acknowledgedAwaitingChangeset','_notificationService','defs','createElement','_getSignURL','objects','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','jiqing500','_status$','_initUnitPermissionChange','React','generateRandomId','/universer-api/snapshot/','selection','react','text','2809870xfZNKw','with','getUnitId','saveOfflineData','SEND_CHANGESET_TIMEOUT','_collabCursorController','_collabCursorState$','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','JSONX','shareReplay','_textBubble','onSyncEditingCollabCursor','defIds','changesets','UNAUTHENTICATED','unknown','DependentOn','round','UNIVER_DOC','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','collaboration-client.offline-data-not-saved','_clearUndo','url(#$1','_compressMutationService','onSendChangeset','_docStateChangeManagerService','body','_getDownloadEndpointURL','history','_transformStack','backgroundColor','DeleteRangeMoveLeftCommandId','ImageSourceType','sheetID','reject','transformMutationsWithChangeset','type','collabStatus.notCollab','INTERNAL_ERROR','updateOfflineData','_getSheetObject','useCallback','doc.mutation.rich-text-editing','_state$','onload','offline','cmd','replaceTextRanges','_scene','univer-offline','_socket','UNKNOWN_CMD','_registerRenderDependencies','collaboration.closeRoom','_assignedColors','editingUnit','[SyncedState]:\x20received\x20rejection.','_saveCache','collabStatus.offline','height','withCredentials','compose','getRandomValues','ILogService','DocIMEInputManagerService','_themeService','saveSheetBlock','data','_onCursorDelete','_awaitingChangeset','_scheduleTimestamp','getUndoRedoMutationParamsCache','NO_OTHER_CLIENTS_EDITING','ERROR_IMAGE','downloadEndpointUrl','uni.network.url-service','liveShareOperation','COLLAB_WEB_SOCKET_URL_KEY','setAlpha','onlyLocal','open$','delete','online','moveTo','LOCAL_CACHE_INTERVAL','UNIVER_COLLABORATION_CLIENT_PLUGIN','@univerjs/docs','CollaborationController','pending','[CollaborationSession]','forEach','onlineStatusIcon','patch','switchMap','_colorAssignService','readAsDataURL','Optional','_sessionStatus$','_sessions','takeUntil','randomUUID','onMissingChangesets','b64DecodeUnicode','getColor','CommentService','defineProperty','session.collaboration-timeout','setParam','mapDocumentTypeToUniverType','[CollaborationEntity]','_transitionLocked','setWaitCount','/-/object/-/batch_allowed','setActiveRange','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','UniverTelemetry','/object/','_transformUndoRedoStack','_showConflictNotification','map','_clearScheduledTask','merge','fromCollab','CHANGESET_REVISION_CONFILICT','univer-pro.collaboration-client-socket-service','set','SheetsSelectionsService','create','_setupSubUnitSync','univerjs-icon\x20univerjs-icon-','rxjs','TEXT_RANGE_LAYER_INDEX','Error','visibilityState','commentUpdate$','cursorInfo','joinEvent','UNRECOGNIZED','getCollabEntity','_state','originalMeta','YUUMI_RATE_OVER_LIMIT','path','SUCCUSS','csAckEvent','SnapshotServerOverHTTPService','getWorkbookSelections','IUndoRedoService','startColumn','93954AjpInZ','/block/','_executeRemoteChangeset','serializeCombRequest','off-line-single','joinRsp','@univerjs/sheets','parseProtocolChangeset','deserializeRangeWithSheet','onRendered','listCollaborators','delay','_socket$','VIEWPORT_KEY','_commandService','_updateLocalCache','_getAPIPrefixPath','APPLY_NON_SEQUENTIAL_REVISION','getTime','restore','title','_getSnapshotAPIPrefix','unload','UniverEngineRender','POST','_updateURLWithCurrentState','COMPRESS_MUTATION_APPLY','_color','c2Prime','unit','deserializeToCombResponse','collabStatus.synced','failed\x20to\x20apply\x20missed\x20changesets!','INVALID_ARGUMENT','getUniverSheetInstance','collabStatus.syncing','_scheduleCollaborationTimeoutTimer','_registerDependencies','_transformIMECache','UniverCollaboration','USERS_ENTER','_initStatusListener','_drawAnchor','values','collab-text-range-','permission.title','rxjs/operators','[OfflineState]:\x20received\x20rejection.','deepClone','_type','_onUserJoin','error$','addObjects','getUnit','_cursorInfo$','onCommentUpdate','size','src','/new_changes','focused$','_createInitialState','HELLO','find','every','flatMap','beginPath','stringify','_entities','SHOULD_CLOSE_CONN','updateMember','result','resend','YUUMI_SUBSCRIPTION_NOT_FOUND','_retryConnectingTimer','_undoStacks','Rect'];_0x3c27=function(){return _0x44a15e;};return _0x3c27();}
1
+ function _0x2e84(_0x42267f,_0x1c5e5f){const _0x5d3b74=_0x5d3b();return _0x2e84=function(_0x2e84ec,_0x2ce822){_0x2e84ec=_0x2e84ec-0x10d;let _0x256ccf=_0x5d3b74[_0x2e84ec];return _0x256ccf;},_0x2e84(_0x42267f,_0x1c5e5f);}function _0x5d3b(){const _0x2209ec=['_getSnapshotAPIPrefix','_collaborationSessionService','_getAnchorBounding','startColumn','useCallback','disableLocalCache','_sessionStatus$','registerRefRange','setConfig','NOT_FOUND','toString','extend','sessionStatus','/-/object/-/batch_allowed','_onJoinRoomEvent','_setupSubUnitSync','_type','commentUpdateEvent','_isPermissionRej','_collaborationController','map','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','SNAPSHOT_SERVER_URL_KEY','setInterval','reqId','makeDirty','@univerjs/network','startRow','attrs','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','c1Prime','_range','generateRandomId','pipe','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','[CollaborationSessionService]:\x20socket\x20error','_state','_anchorDot','univer-offline','_docStateChangeManagerService','_clearOtherTimers','_onUserLeave','[OfflineState]:\x20received\x20acknowledgement.','ISnapshotServerService','xlink:href','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','send','AUTHZ_URL_KEY','fetchThroughInterceptors','HttpExport','rgba(255,\x20255,\x20255,\x200.01)','runRefRangeMutations','_hover','_onLocalMutation','Univer','RxDisposable','color','DataLoaderController','_telemetryService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','FAIL','_applyRemoteChangeset','FileId','params','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','permissionRejEvent','operators','_resendTimeout','_registerRenderDependencies','univerjs-icon\x20univerjs-icon-','_collabSessionService','UniverInstanceType','socket\x20close','headers','visibilitychange','exhaustSavingTask','DeleteRangeMoveUpCommandId','permission.title','pauseCollaboration','handleInsertRangeMoveDown','[PendingState]:\x20unhandled\x20univer\x20type:\x20','length','/unit/','onCommentUpdate','AWAITING_WITH_PENDING','_transformPreviousActiveRange','ranges','urlChange$','SheetCollabCursorShape','width','_lockTransition','icon','currentSkeleton$','IUIPartsService','sessionStatus$','IImageIoService','/allowed','WorkbookEditablePermission','combineLatest','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','fillStyle','_onRemoteACK','_sendingTimer','setParam','_clearLocalCache','randomUUID','getRenderById','not_collab','_userManagerService','unload','_urlService','delete','YUUMI_SUBSCRIPTION_NOT_FOUND','/universer-api/snapshot/','COMMENT_UPDATE','_socketReady','moveTo','1em','_onMessage','collaboration-session-retry','indexOf','editing\x20status\x20changed\x20to','_docTransformSelectionsService','responseType','_cachedData','dispose$','_getSaveTimeout','complete','InsertRangeMoveRightCommandId','permission.content','min','currentColor','RevisionService','_remoteChangesetQueue','Plugin','_retryCount','_clearScheduledTask','off-line-single','_incrementRevisionNumber','_getAPIPrefix','location','shareReplay','visibilityState','colorChannel1','Disposable','collab-text-anchor-','unitId','getDeserializedSheetBlock','Vector2','transformUndoRedo','enableAuthServer','UniverNetwork','all','objectID','isTransformMutationsWithChangesetSuccess','getVpScrollXYInfoByPosToVp','rng','registerOnClose','_onRemoteChangeset','selection','_collaborationTimeoutTimer','_messageService','COLLAB_SUBMIT_CHANGESET_URL_KEY','close$','_onCombEvent','_listenToOnlineEvent','_updateCollabCursors','height','NEW_CHANGESETS','_updateState','_disableEditing','concat','url','unit-cache-','POST','0\x200\x2017\x2016','_onRecvEvent','getCurrentRevOfUnit','newValue','json','_injector','clipPath','getSheetBySheetId','UNKNOWN_CODE','SetWorksheetActivateCommand','setActiveRange','rxjs','APPLY_PERMISSION_DENIED','SheetPermissionInitController','Module','_waitCount','IConfigService','LICENSE_IMPORT_SIZE_EXCEEDED','_changesetSessionId','updateOfflineData','getWorkbookSelections','_clearUndo','SheetSkeletonManagerService','deserializeToCombResponse','translate(.97)','ERROR_IMAGE_TYPE','get','CONFLICT','/object/','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','getSheetObject','_pendingMutations','_entities','_handleEvent','COLORS','WebURLService','BuiltInUIPart','getActiveSheet','COLLAB_WEB_SOCKET_URL_KEY','_onConflict','FETCH_MISSING','saveSnapshot','Tooltip','_name','subscribe','_exhaustRemoteChangesetQueue','getCurrentSelections','LIVESHARE_REQUEST_HOST','UniverUi','OFFLINE','setTimeout','_onFetchMissResult','transformChangesets','_initMergeInterceptor','DOC_RANGE_TYPE','parseChangesetToProtocol','cmd','leaveEvent','roomMembers','DocSkeletonManagerService','UniverEngineRender','sid','HEARTBEAT_TIMEOUT_KEY','shouldCloseConn','SetSelectionsOperation','none','HttpImport','RegularPolygon','_clearCollaborationTimeoutTimer','state','getSkeleton','handleIRemoveCol','univer-online-status-title','transformMutation','clearTimeout','take','AuthzIoHttpService','_startTelemetryCollaborationNewChangeset','_retryConnectingTimer','_socketMessageSubscription','set','cursorInfo$','_context','getInterceptPoints','#fff','_commentService','eventID','startsWith','fetching\x20missing\x20changesets\x20from\x20','UNAUTHENTICATED','synced','fillText','tag','getViewport','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','removeMember','beginPath','memberID','ERROR_EXCEED_SIZE','onSendChangeset','&source=','_createHandler','append','mergeOverrideWithDependencies','Injector','onMissingChangesets','defs','/universer-api/file/{fileID}/sign-url','getUndoRedoMutationParamsCache','session','HEARTBEAT_INTERVAL','measureText','getCellPositionByOffset','loginUrlKey','ImageSourceType','call','replaceTextRanges','ThemeService','UNRECOGNIZED','/object','_heartbeatTimer','textEncoder','_send','_toggleOnline','_localStorageService','lineTo','debounceTime','_updateLocalCursor','removeParam','TEXT_RANGE_LAYER_INDEX','_onRemoteRejected','[CollaborationSession]','?size=','_updateSubUnitFromURLParams','_memberService','_notificationService','registerBeforeClose','getDocRanges','save','pending','_docSkeletonManagerService','getUnitStatus$','ImageUploadStatusType','UPDATE_CURSOR','_clearRedo','reconnect','onRemoteChangeset','setWaitCount','_transformUndoRedoStack','fromCollab','SEND_CHANGESET_TIMEOUT','_drawAnchor','getMemberID','_roomMembers','AWAITING','stringify','_scheduleTimestamp','_saveCache','debounce','reverse','@univerjs/engine-render','collabStatus.conflict','stopTime','onReady','_executeRemoteChangeset','delay','_checkMissing','Error','[UniverCollaborationClientPlugin]','Shape','16393910JtKfSB','HEADER_MENU','UniverCollaboration','@univerjs/telemetry','objectType','getValue','UniverCollaborationClientPlugin','#FFF','handleIRemoveRow','onPointerLeave$','searchParams','update','_commandService','LocalCacheService','_sessions','localeService','univer-online-status-icon','_handleJoinEvent','getSheetBlock','forEach','Rectangle','_event$','SheetCollaborationEntity','updateCollaborator','getSheetId','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_colorIndex','batchAllowed','href','originalMeta','amd','_online','closeSession','sheetID','src','ReplaySubject','unit','error','XHRHTTPImplementation','sendChangesetTimeout','getRangePointData','getOffsetConfig','propertyIsEnumerable','SYNCED','onlineStatusTitle','size','_shapes','_toggleOffline','_getDownloadEndpointURL','_onCursorDelete','collaborators','14IyeaGX','_onOffline','_getSendChangesetTimeout','_beforeCloseService','UNIVER_DOC','message$','@univerjs/docs-ui','CollaborationStatusDisplay','UniverSheets','_joinRoom','_loadDoc','_transformSelections','_singleActiveUnitService','toggleOnline','function','merge','hide','getTime','IDLE','COLLAB_SUBMIT_CHANGESET_URL','hovered','_throwTelemetryCollaborationNewChangeset','snapshot','resolve','mutations','SnapshotServerOverHTTPService','allowed','getUnit','HTTPService','name','LocaleService','fetchMiss','image/jpg','getColor','result','status','getLatestCsReqIdBySid','onRemoteRetry','RECT','@univerjs/sheets','cursorInfo','rev','deleteCollaborator','getCurrentUser','createElement','number','toDisposable','_HTTPService','_transformIMECache','DocIMEInputManagerService','DesktopCollaborationStatusDisplayController','onlyLocal','APPLY_REJECT','hasOwnProperty','syncEditingCollabCursor','ThresholdInterceptorFactory','M0\x200H16V16H0z','ITelemetryService','failed\x20to\x20apply\x20missed\x20changesets!','image/bmp','LIVESHARE_FETCH_OPERATIONS','_onRemoteRetry','_id','purple300','session.connection-failed','textRanges','IBeforeCloseService','_syncEditingCollabCursorService','Optional','max','USERS_LEAVE','isPermissionRej','LIVESHARE_NEW_HOST','addObject','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','[SyncedState]:\x20received\x20rejection.','_refRangeService','replaceState','getCollabEntity$','_sender','_updateURLWithCurrentState','connectInjector','values','RETRY_CONNECTING_MAX_COUNT_KEY','DependentOn','_scheduleSaving','getTypeOfUnitDisposed$','MoveRangeCommandId','rxjs/operators','ImageIoService','engine','_registerDependencies','_backgroundColor','useDependency','[OfflineState]:\x20received\x20rejection.','_getAPIPrefixPath','_initModules','LIVESHARE_TERMINATE','_sheetSkeletonManagerService','_transitionLocked','BASE64','collabCursorState$','children','_updateStatus','onTransformSelections','DeleteRangeMoveLeftCommandId','_snapshotService','filter','column','[CollaborationEntity]','@univerjs/engine-formula','DocCollaborationEntity','_session','IPermissionService','Unknown\x20user','sheets','ONLINE','ws://127.0.0.1:8000/universer-api/comb/connect','debug','disposeUnit','onMouseMove','_onRefRangeChange','react','CollaborationSocketService','ICommandService','UnitSnapshot','getMember','text','MessageType','font','infoRsp','_onConnectionFailed','Warning','INVALID_ARGUMENT','_getRedoStack','createSocket','IUniverInstanceService','onRemoteAck','_docSkeleton','_compressMutationService','INotificationService','_getScale','HELLO','UniverDocsUi','_unitStatus','unitID','RECV','LICENSE_EXPORT_SIZE_EXCEEDED','_socket$','handleInsertRow','onload','on-line-single','_colorAssignService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformIME','body','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','clearInterval','NodePositionConvertToRectRange','requestParams','@univerjs-pro/license','ILocalStorageService','JOIN','commentUpdate$','verdancy600','enableOfflineEditing','_getUploadFileURL','updateCursorEvent','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_clearTimeoutTimer','[DataLoaderController]','_themeService','_anchor','deepClone','SHOULD_CLOSE_CONN','_socketService','onStateChange','@univerjs/drawing','_syncEditingCollabCursor','UniverDesign','fill','_sheetTransformSelectionsService','CHANGESET_REJ','baseRev','_unlockTransition','SNAPSHOT_INVALID_SNAPSHOT','_draw','getUnitId','onRemoteRej','FETCH_MISS','entries','every','\x0aCurrent:\x20','_tryReconnect','duration','_instanceService','svg','onMissedChangesetFetched','_members','TOO_MANY_REQUESTS','_roomMembers$','_socket','fromEvent','resize','_rescheduleHeartbeat','TEXT','asObservable','patch','&assign=','UNKNOWN_CMD','_handleHeartbeatEvent','assignAColorForMemberID','VIEW_MAIN','\x20to\x20','UNDEFINED','switchMap','collabStatus.notCollab','collaboration-client.config','some','_scene','_localeService','RefRangeService','split','throttleTime','b64DecodeUnicode','ERROR_IMAGE','range','touchDependencies','endRow','show','getUnitOnRev','isTransformChangesetsSuccess','listRoles','assign','getMergeData','conflict.content','NO_OTHER_CLIENTS_EDITING','isTransformMutationsWithChangesetFailure','auth.needGotoLoginAlert','PERMISSION_REJ','_initResize','INTERNAL_ERROR','encode','session.will-retry','pushState','HEARTBEAT_TIMEOUT','_transformService','_stopTelemetryCollaborationNewChangeset','[OfflineState]:\x20received\x20changeset.','setAlpha','LOCAL_CACHE_INTERVAL','univer-online-status','_docTransformIMECacheService','mapDocumentTypeToUniverType','then','@univerjs/rpc','EmptyMutation','routeKey','isEditing','MSG_FOR_ERROR','getCollabCursors$','resend','RichTextEditingMutation','disposeWithMe','pluginName','HEARTBEAT_INTERVAL_KEY','find','updatePermissionObjEvent','_getCurrentRevision','PENDING','withCredentials','backgroundColor','dispose','USERS_ENTER','members','HEARTBEAT','from','UNIVER_SHEET','getCoordByCell','unsubscribe','DisposableCollection','/block/','[CollaborationUndoRedoService]','_timeoutTimer','_permissionService','toStringTag','addEventListener','InsertColCommandId','displayName','UniverCollaborationClient','SNAPSHOT_HAS_BEEN_REMOVED','updateMember','_refreshCollabCursors','OTHER_CLIENTS_EDITING','next','@univerjs/core','offline','_cursorShapes','enableSingleActiveInstanceLock','UNIVER_SLIDE','drawWith','subscribeEvent','awaitingChangeset','_updateLocalCache','_queuedRemoteChangesets','CollaborationEvent','_startDocCollabCursor','_change$','_initStatusListener','getTypeOfUnitAdded$','CHANGESET_REVISION_CONFILICT','Undefined','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','error$','JOINING','_render','push','unitId\x20is\x20not\x20found','2531394sdSCns','replace','_replaceFileID','_transformRemoteChangesetByIMECache','CHANGESET_ACK','Rect','COMPLETION_FINISHED','IURLService','_handleHover','_collabCursorState$','_drawRectRange','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','catch','collab-text-range-','CollaborationController','BehaviorSubject','/collaborator','getCollabEntity','joinEvent','_initStatusComponent','socketService','registerHTTPInterceptor','UniverDrawing','&to=','conflict','_entityInit$','url(#on-line-single_clip0_910_349)','socket$','uploadFileServerUrl','selections','IMessageService','appendMutation','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_removeRoom','requireSession','/universer-api/snapshot','socket\x20open.','_onUserJoin','transformIMECache','InsertRangeMoveDownCommandId','CollaborationSession','_resendTimer','getAncestorScale','_disabled','enableLocalCache','whenReady','@univerjs-pro/collaboration','_saveTaskMap','LICENSE_DISTRO_REJECTED','_collaborationPaused','handleInsertCol','UniverSheetsUi','_snapshotServerService','INGEST','_selfUnitIDs','target','_unitOnClients','createInstance','collabWebSocketUrl','handleDeleteRangeMoveLeft','_getSheetObject','defineProperty','55464bUqYkq','deserializeRangeWithSheet','objectActions','SUBMIT_CHANGESET','_cursorInfo$','unshift','_onConnectionOpen','row','DEFAULT_FILE_NAME','equals','prototype','red300','_awaitingChangeset','_univerInstanceService','getAttachHeader','LocalUndoRedoService','_telemetryInfo','resourceIDs','fetch_missing','_startSheetCollabCursor','_labelPosition','handleDeleteRangeMoveUp','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_redoStacks','getResourcesRequest','UNIVER_PROJECT','status$','toLowerCase','Tools','PSEUDO_FETCH_MISSING_RESULT','[CollaborationSessionService]','UniverTelemetry','m2Prime','submit\x20changeset\x20error!','off-line-single_clip0_910_343','UniverCore','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_transformStack','uni.network.url-service','interceptor','getOwnPropertyDescriptor','_undoStacks','IAuthzIoService','editingUnit','csAckEvent','_onCursorUpdate','APPLY_REVISION_CONFILICT','override','saveOfflineData','code','ACTIVE_UNIT_EVENT_CHANNEL','event$','_textBubble','string','_decreaseWaiting','defIds','image/gif','roomMembers$','CommentService','SNAPSHOT_URL_KEY','toRgbString','Subject','authzUrl','49571vBEvBv','UnitEmbedded','DocSelectionManagerService','objects','list','_scheduleCollaborationTimeoutTimer','toggleOffline','apply','subUnitId','online','@univerjs/design','/new_changes','docStateChange$','_setupBeforeClosingHandler','now','getRoom','_eventUnsubscribe','reduce','_status$','image/png','liveShareNewHost','isTransformMutationFailure','isArray','getUnitType','_http','_lastPointer','triggerDblclick','getRandomValues','round','_logService','_createSocket','[PendingState]:\x20received\x20rejection.','focused$','{fileID}','has','create','_renderManagerService','use','@univerjs/ui','_candidateSocket','gold400','c2Prime','CompressMutationService','_fetchMissChangesets','onStarting','_replayCachedMutations','object','parseProtocolChangeset','CONNECTOR_DATA_TOO_LARGE','transformSelections','collaboration.single-unit.warning','updatePermissionPoint','_startCollaboration','collab-client.tooltip.reconnect','_hideTimer','RemoveRowCommandId','history','_ensureSubject','_hovered','incrementRevOfUnit','state$','CommandType','_state$','_collabCursorController','handleInsertRangeMoveRight','init','_getMergeRange','SetTextSelectionsOperation','method','ILogService','...','/universer-api/oidc/authpage','saveSheetBlock','@univerjs/docs','snapshotServerUrl','_getLoginPath','5933216FtFYUi','CollaborationSessionService','executeCommand','collaboration_new_changeset','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','onCommandExecuted','bottom','NOT_COLLAB','getItem','UNIVER_COLLABORATION_CLIENT_PLUGIN','583930JxLBTy','origin','awaiting_with_pending','actions','YUUMI_RATE_OVER_LIMIT','IUndoRedoService','getCurrentUnitForType','copyFileMeta','close','slice','_handler','117lShFmf','labelPosition','?url=','CollaborationEntity','_schedule','COMPRESS_MUTATION_APPLY','startTime','_sendHeartbeat','black','_imageSourceCache','_initCloseConn','LICENSE_MAX_UNITS_EXCEEDED','_undoRedoService','random','collaboration.closeRoom','useObservable','getFocusedUnit','_transformUndoredo','compose','m1Prime','_scheduleClearOtherTimer','revision','arc','post','restore','loadOfflineData','parse','serializeRangeWithSheet','55419pVJVbv','hidden','_initCommandExecutedListener','setCurrentUser','findNodePositionByCharIndex','UniverEngineFormula','createIdentifier','_getCtorByUniverType','WebSocketService','HTTPRequest','_getSignURL','MUTATION','_unitID','_configService','_cursors','_removeClearOtherTimer','createCollaborator','CHANGESET_SHOULD_RETRY','_shouldReportTelemetry','_resendWithTimeout','6renPvh','isActive','userID','Inject','_clearHeartbeatTimer','takeUntil','subunit','unknown','readAsDataURL','LIVESHARE_OPERATION','transform','_revisionService','SheetsSelectionsService','onlineStatusIcon','transformMutationsWithChangeset','FromArray','getParam','activeSheet$','/universer-api/authz','with','clear','collaMsg','saveImage','getConfig','collabStatus.synced','LEAVE','_removeCollabCursors','@univerjs/sheets-ui','_httpService','_scheduleHeartbeat','YUUMI_URL_COL_OUT_OF_RANGE','file','workbook','collaboratorID','_assignedColors','EffectRefRangId','UniverRpc','_cursor','_config','_tryEnsureSocket','_showConflictNotification','_acknowledgedAwaitingChangeset','reject','onTransformRemoteChangesetByIMECache','ITransformService','setShapeProps','\x0aAfter:\x20','/-/object/list','put','path','transformRemoteChangeset','setItem','YUUMI_UNABLE_LOAD_URL','_handleLeaveEvent','NodePositionConvertToCursor','_substituteUndoStack','UniverDocs','IRenderManagerService','evenodd','_listenToOfflineEvent','_changesetReqId','_createInitialStateImpl','_drawTextRange','confirm','ENSURE_SNAPSHOT_EXECUTION','_localCacheService','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','div','isInternalEditorID','_init','_commentUpdate$','connection\x20error','[PendingState]:\x20received\x20acknowledgement.','_createInitialState','on-line-single_clip0_910_349','top','idSuffix','sequenceExecute','doc.mutation.rich-text-editing','PERMISSION_DENIED','type','UNIVER_UNKNOWN','popstate','UPDATE_PERMISSION_OBJ','_color','add','_uiPartsService','SnapshotService','_sendHeartbeatTimer','title','forwardRef','fetchMissingChangesets','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_initUnitPermissionChange','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','collabStatus.syncing','newCsEvent','downloadEndpointUrl','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_ws','data','_submitChangeset','className'];_0x5d3b=function(){return _0x2209ec;};return _0x5d3b();}(function(_0x41111f,_0x433206){const _0x862764=_0x2e84,_0x89433f=_0x41111f();while(!![]){try{const _0x14504b=parseInt(_0x862764(0x37a))/0x1*(parseInt(_0x862764(0x1bf))/0x2)+parseInt(_0x862764(0x3db))/0x3*(parseInt(_0x862764(0x33b))/0x4)+-parseInt(_0x862764(0x3d0))/0x5*(-parseInt(_0x862764(0x40b))/0x6)+parseInt(_0x862764(0x3f7))/0x7+parseInt(_0x862764(0x3c6))/0x8+parseInt(_0x862764(0x2fd))/0x9+-parseInt(_0x862764(0x18c))/0xa;if(_0x14504b===_0x433206)break;else _0x89433f['push'](_0x89433f['shift']());}catch(_0x57bd6f){_0x89433f['push'](_0x89433f['shift']());}}}(_0x5d3b,0x60ae1),function(_0x14fb8d,_0x55e4c4){const _0x2261e3=_0x2e84;typeof exports==_0x2261e3(0x3a8)&&typeof module<'u'?_0x55e4c4(exports,require(_0x2261e3(0x2e6)),require(_0x2261e3(0x52c)),require(_0x2261e3(0x217)),require(_0x2261e3(0x384)),require(_0x2261e3(0x3a0)),require(_0x2261e3(0x48c)),require('@univerjs-pro/collaboration'),require(_0x2261e3(0x18f)),require(_0x2261e3(0x1c5)),require(_0x2261e3(0x1e6)),require(_0x2261e3(0x182)),require(_0x2261e3(0x3c3)),require('@univerjs/drawing'),require(_0x2261e3(0x22d)),require(_0x2261e3(0x426)),require(_0x2261e3(0x239)),require(_0x2261e3(0x2be)),require('@univerjs-pro/license')):typeof define==_0x2261e3(0x1cd)&&define[_0x2261e3(0x1aa)]?define(['exports','@univerjs/core',_0x2261e3(0x52c),_0x2261e3(0x217),_0x2261e3(0x384),_0x2261e3(0x3a0),_0x2261e3(0x48c),_0x2261e3(0x32b),_0x2261e3(0x18f),_0x2261e3(0x1c5),_0x2261e3(0x1e6),_0x2261e3(0x182),_0x2261e3(0x3c3),_0x2261e3(0x270),'@univerjs/engine-formula',_0x2261e3(0x426),_0x2261e3(0x239),_0x2261e3(0x2be),_0x2261e3(0x25f)],_0x55e4c4):(_0x14fb8d=typeof globalThis<'u'?globalThis:_0x14fb8d||self,_0x55e4c4(_0x14fb8d[_0x2261e3(0x2e0)]={},_0x14fb8d[_0x2261e3(0x35e)],_0x14fb8d[_0x2261e3(0x52c)],_0x14fb8d[_0x2261e3(0x52c)][_0x2261e3(0x4b4)],_0x14fb8d[_0x2261e3(0x272)],_0x14fb8d[_0x2261e3(0x112)],_0x14fb8d[_0x2261e3(0x509)],_0x14fb8d[_0x2261e3(0x18e)],_0x14fb8d[_0x2261e3(0x35a)],_0x14fb8d[_0x2261e3(0x24e)],_0x14fb8d[_0x2261e3(0x1c7)],_0x14fb8d[_0x2261e3(0x11e)],_0x14fb8d[_0x2261e3(0x443)],_0x14fb8d[_0x2261e3(0x313)],_0x14fb8d[_0x2261e3(0x3fc)],_0x14fb8d[_0x2261e3(0x330)],_0x14fb8d['React'],_0x14fb8d[_0x2261e3(0x42f)],_0x14fb8d['UniverLicense']));}(this,function(_0x27845d,_0x3223aa,_0x41acaa,_0xe02055,_0x4d822f,_0x19d837,_0x339579,_0x502235,_0x1f2e1d,_0x143e31,_0x4f46f0,_0x20af9e,_0xba5a96,_0x52582d,_0x5a0816,_0x166b0e,_0x214003,_0x3a8f53,_0x295b37){'use strict';const _0x182123=_0x2e84;var _0x568af0=Object[_0x182123(0x33a)],_0x31d935=(_0x537cfb,_0x2658f8,_0x37f1a5)=>_0x2658f8 in _0x537cfb?_0x568af0(_0x537cfb,_0x2658f8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37f1a5}):_0x537cfb[_0x2658f8]=_0x37f1a5,_0x571923=(_0x6db92d,_0x11bb22,_0x47de97)=>_0x31d935(_0x6db92d,typeof _0x11bb22!='symbol'?_0x11bb22+'':_0x11bb22,_0x47de97);const _0x393c92='SNAPSHOT_SERVER_URL_KEY',_0x272feb=_0x182123(0x320),_0x236963=_0x182123(0x376),_0x3a6e9c=_0x182123(0x178),_0x59775a='COLLAB_WEB_SOCKET_URL',_0x4207c4=_0x182123(0x234),_0x4c4485=_0x182123(0x150),_0x3cbca8=_0x182123(0x2b4),_0x433296='RETRY_CONNECTING_MAX_COUNT',_0x45a061=_0x182123(0x2b9),_0x19bb96=_0x182123(0x1d2),_0x2abe08='/universer-api/comb',_0x4f9925='LOGIN_URL_KEY',_0x2c9aef=_0x182123(0x3c1);var _0x471d59=(_0x2d7d08=>(_0x2d7d08[_0x2d7d08[_0x182123(0x295)]=0x0]=_0x182123(0x295),_0x2d7d08[_0x2d7d08['OK']=0x1]='OK',_0x2d7d08[_0x2d7d08[_0x182123(0x2b0)]=0x2]='INTERNAL_ERROR',_0x2d7d08[_0x2d7d08[_0x182123(0x45a)]=0x3]=_0x182123(0x45a),_0x2d7d08[_0x2d7d08[_0x182123(0x47b)]=0x4]=_0x182123(0x47b),_0x2d7d08[_0x2d7d08[_0x182123(0x13b)]=0x5]=_0x182123(0x13b),_0x2d7d08[_0x2d7d08['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x2d7d08[_0x2d7d08['INVALID_ARGUMENT']=0x7]=_0x182123(0x244),_0x2d7d08[_0x2d7d08[_0x182123(0x286)]=0x8]=_0x182123(0x286),_0x2d7d08[_0x2d7d08[_0x182123(0x303)]=0x9]='COMPLETION_FINISHED',_0x2d7d08[_0x2d7d08[_0x182123(0x2f5)]=0x1389]=_0x182123(0x2f5),_0x2d7d08[_0x2d7d08['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x182123(0x278),_0x2d7d08[_0x2d7d08[_0x182123(0x2e1)]=0x1772]=_0x182123(0x2e1),_0x2d7d08[_0x2d7d08[_0x182123(0x44b)]=0x1773]=_0x182123(0x44b),_0x2d7d08[_0x2d7d08[_0x182123(0x1f3)]=0x1b59]='APPLY_REJECT',_0x2d7d08[_0x2d7d08['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x2d7d08[_0x2d7d08[_0x182123(0x369)]=0x1b5b]=_0x182123(0x369),_0x2d7d08[_0x2d7d08[_0x182123(0x52d)]=0x1b5c]=_0x182123(0x52d),_0x2d7d08[_0x2d7d08['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x2d7d08[_0x2d7d08[_0x182123(0x3aa)]=0x1f41]=_0x182123(0x3aa),_0x2d7d08[_0x2d7d08['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x182123(0x3e6),_0x2d7d08[_0x2d7d08['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x182123(0x209),_0x2d7d08[_0x2d7d08[_0x182123(0x532)]=0x232b]=_0x182123(0x532),_0x2d7d08[_0x2d7d08[_0x182123(0x252)]=0x232c]=_0x182123(0x252),_0x2d7d08[_0x2d7d08[_0x182123(0x32d)]=0x232d]=_0x182123(0x32d),_0x2d7d08[_0x2d7d08['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x182123(0x43f),_0x2d7d08[_0x2d7d08[_0x182123(0x429)]=0x2712]=_0x182123(0x429),_0x2d7d08[_0x2d7d08[_0x182123(0x3d4)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x2d7d08[_0x2d7d08[_0x182123(0x4e2)]=0x2714]=_0x182123(0x4e2),_0x2d7d08[_0x2d7d08[_0x182123(0x158)]=-0x1]=_0x182123(0x158),_0x2d7d08))(_0x471d59||{}),_0x33d988=(_0x4227bc=>(_0x4227bc[_0x4227bc[_0x182123(0x45c)]=0x0]=_0x182123(0x45c),_0x4227bc[_0x4227bc['UNIVER_DOC']=0x1]=_0x182123(0x1c3),_0x4227bc[_0x4227bc[_0x182123(0x2d4)]=0x2]=_0x182123(0x2d4),_0x4227bc[_0x4227bc[_0x182123(0x2ea)]=0x3]=_0x182123(0x2ea),_0x4227bc[_0x4227bc['UNIVER_PROJECT']=0x4]=_0x182123(0x354),_0x4227bc[_0x4227bc['UNRECOGNIZED']=-0x1]=_0x182123(0x158),_0x4227bc))(_0x33d988||{}),_0x3b310c=(_0x441a87=>(_0x441a87[_0x441a87[_0x182123(0x290)]=0x0]=_0x182123(0x290),_0x441a87[_0x441a87[_0x182123(0x24d)]=0x1]=_0x182123(0x24d),_0x441a87[_0x441a87['JOIN']=0x2]=_0x182123(0x261),_0x441a87[_0x441a87[_0x182123(0x424)]=0x3]=_0x182123(0x424),_0x441a87[_0x441a87['INGEST']=0x4]=_0x182123(0x332),_0x441a87[_0x441a87[_0x182123(0x2d2)]=0x5]=_0x182123(0x2d2),_0x441a87[_0x441a87[_0x182123(0x251)]=0x6]=_0x182123(0x251),_0x441a87[_0x441a87[_0x182123(0x158)]=-0x1]=_0x182123(0x158),_0x441a87))(_0x3b310c||{}),_0x3b585e=(_0x18586f=>(_0x18586f[_0x18586f[_0x182123(0x529)]=0x0]=_0x182123(0x529),_0x18586f[_0x18586f['OK']=0x1]='OK',_0x18586f[_0x18586f['FAIL']=0x2]=_0x182123(0x4ae),_0x18586f[_0x18586f[_0x182123(0x158)]=-0x1]=_0x182123(0x158),_0x18586f))(_0x3b585e||{}),_0x46d5bd=(_0x4d5d68=>(_0x4d5d68[_0x4d5d68['Undefined']=0x0]=_0x182123(0x2f6),_0x4d5d68[_0x4d5d68[_0x182123(0x124)]=0x1]='HttpImport',_0x4d5d68[_0x4d5d68[_0x182123(0x4a3)]=0x2]=_0x182123(0x4a3),_0x4d5d68[_0x4d5d68[_0x182123(0x37b)]=0x3]=_0x182123(0x37b),_0x4d5d68[_0x4d5d68[_0x182123(0x23c)]=0x4]=_0x182123(0x23c),_0x4d5d68[_0x4d5d68[_0x182123(0x158)]=-0x1]='UNRECOGNIZED',_0x4d5d68))(_0x46d5bd||{});const _0x183913=_0x182123(0x298),_0x2e3dd5={};function _0x534327(_0x57015){const _0x37c5df=_0x182123;var _0x8e5072,_0x229180,_0x1c9c30,_0xe70ec1,_0xf9c0af;const _0x5021fe=_0x57015[_0x37c5df(0x46f)],_0x480c0b=JSON[_0x37c5df(0x3f5)](_0x5021fe);switch(_0x480c0b['cmd']){case _0x3b310c['HEARTBEAT']:case _0x3b310c['HELLO']:{const _0x10d712=_0x480c0b[_0x37c5df(0x241)];return{..._0x480c0b,'data':_0x10d712,'cmd':_0x480c0b[_0x37c5df(0x11a)]};}case _0x3b310c[_0x37c5df(0x261)]:{const _0x12e46f=_0x480c0b['joinRsp'];return{..._0x480c0b,'data':_0x12e46f,'cmd':_0x480c0b[_0x37c5df(0x11a)]};}case _0x3b310c[_0x37c5df(0x251)]:{const _0x56f4df=_0x480c0b[_0x37c5df(0x420)];switch(_0x56f4df[_0x37c5df(0x138)]){case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x2ae)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':(_0x8e5072=_0x56f4df[_0x37c5df(0x4b3)])==null?void 0x0:_0x8e5072['cs']},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x301)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':(_0x229180=_0x56f4df[_0x37c5df(0x367)])==null?void 0x0:_0x229180['cs']},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x51a)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':(_0x1c9c30=_0x56f4df[_0x37c5df(0x46b)])==null?void 0x0:_0x1c9c30['cs']},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)]['CHANGESET_REJ']:return{..._0x480c0b,'data':{..._0x56f4df,'data':(_0xe70ec1=_0x56f4df['csRejEvent'])==null?void 0x0:_0xe70ec1['cs']},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x408)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':(_0xf9c0af=_0x56f4df['csShouldRetryEvent'])==null?void 0x0:_0xf9c0af['cs']},'cmd':_0x480c0b['cmd']};case _0x502235['CollaborationEvent'][_0x37c5df(0x171)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x266)]},'cmd':_0x480c0b['cmd']};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x2d0)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x30f)]},'cmd':_0x480c0b['cmd']};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x205)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x11b)]},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)]['LIVESHARE_NEW_HOST']:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x38e)]},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x1fb)]:case _0x502235['CollaborationEvent']['LIVESHARE_OPERATION']:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df['liveShareOperation']},'cmd':_0x480c0b['cmd']};case _0x502235[_0x37c5df(0x2f0)]['LIVESHARE_TERMINATE']:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x38e)]},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)]['MSG_FOR_ERROR']:return{..._0x480c0b,'data':_0x56f4df,'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x4e4)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x483)]},'cmd':_0x480c0b[_0x37c5df(0x11a)]};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x45e)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x2ca)]},'cmd':_0x480c0b['cmd']};case _0x502235[_0x37c5df(0x2f0)][_0x37c5df(0x26d)]:return{..._0x480c0b,'data':{..._0x56f4df,'data':_0x56f4df[_0x37c5df(0x121)]},'cmd':_0x480c0b[_0x37c5df(0x11a)]};default:return _0x480c0b;}}default:return _0x480c0b;}}function _0x5f417a(_0x3dba5f){const _0xc0aebe=_0x182123;switch(_0x3dba5f['cmd']){case _0x3b310c[_0xc0aebe(0x2d2)]:case _0x3b310c[_0xc0aebe(0x24d)]:return JSON[_0xc0aebe(0x17d)]({'cmd':_0x3dba5f[_0xc0aebe(0x11a)],'routeKey':_0x3dba5f[_0xc0aebe(0x2c0)]});case _0x3b310c[_0xc0aebe(0x332)]:{let _0x9e71b0;switch(_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x138)]){case _0x502235[_0xc0aebe(0x2f0)]['UPDATE_CURSOR']:{_0x9e71b0={'eventID':_0x502235['CollaborationEvent'][_0xc0aebe(0x171)],'updateCursorEvent':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x46f)]};break;}case _0x502235['CollaborationEvent'][_0xc0aebe(0x205)]:{_0x9e71b0={'eventID':_0x502235[_0xc0aebe(0x2f0)][_0xc0aebe(0x205)],'leaveEvent':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x46f)]};break;}case _0x502235[_0xc0aebe(0x2f0)][_0xc0aebe(0x2d0)]:{_0x9e71b0={'eventID':_0x502235['CollaborationEvent'][_0xc0aebe(0x2d0)],'joinEvent':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x46f)]};break;}case _0x502235['CollaborationEvent'][_0xc0aebe(0x207)]:{_0x9e71b0={'eventID':_0x502235[_0xc0aebe(0x2f0)][_0xc0aebe(0x207)],'liveShareNewHost':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x46f)]};break;}case _0x502235['CollaborationEvent'][_0xc0aebe(0x414)]:{_0x9e71b0={'eventID':_0x502235[_0xc0aebe(0x2f0)][_0xc0aebe(0x414)],'liveShareOperation':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x46f)]};break;}case _0x502235[_0xc0aebe(0x2f0)][_0xc0aebe(0x220)]:{_0x9e71b0={'eventID':_0x502235[_0xc0aebe(0x2f0)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x46f)]};break;}case _0x502235[_0xc0aebe(0x2f0)]['LIVESHARE_REQUEST_HOST']:{_0x9e71b0={'eventID':_0x502235[_0xc0aebe(0x2f0)][_0xc0aebe(0x111)],'liveShareRequestHost':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x46f)]};break;}case _0x502235[_0xc0aebe(0x2f0)]['LIVESHARE_FETCH_OPERATIONS']:{_0x9e71b0={'eventID':_0x502235['CollaborationEvent'][_0xc0aebe(0x1fb)]};break;}default:_0x9e71b0={'eventID':_0x3dba5f[_0xc0aebe(0x46f)][_0xc0aebe(0x138)]};}return JSON[_0xc0aebe(0x17d)]({'cmd':_0x3dba5f[_0xc0aebe(0x11a)],'routeKey':_0x3dba5f[_0xc0aebe(0x2c0)],'collaMsg':_0x9e71b0});}case _0x3b310c[_0xc0aebe(0x261)]:return JSON[_0xc0aebe(0x17d)]({'cmd':_0x3dba5f[_0xc0aebe(0x11a)],'routeKey':_0x3dba5f[_0xc0aebe(0x2c0)],'joinReq':_0x3dba5f[_0xc0aebe(0x46f)]});case _0x3b310c['LEAVE']:return JSON[_0xc0aebe(0x17d)]({'cmd':_0x3dba5f[_0xc0aebe(0x11a)],'routeKey':_0x3dba5f[_0xc0aebe(0x2c0)],'leaveReq':_0x3dba5f[_0xc0aebe(0x46f)]});default:throw new Error(_0xc0aebe(0x467));}}var _0x4d517f=Object[_0x182123(0x33a)],_0x15b502=Object['getOwnPropertyDescriptor'],_0x2cf211=(_0x5e1809,_0x107066,_0x5badf6,_0x4f92e1)=>{for(var _0x20ce48=_0x4f92e1>0x1?void 0x0:_0x4f92e1?_0x15b502(_0x107066,_0x5badf6):_0x107066,_0x20f65e=_0x5e1809['length']-0x1,_0x110d9f;_0x20f65e>=0x0;_0x20f65e--)(_0x110d9f=_0x5e1809[_0x20f65e])&&(_0x20ce48=(_0x4f92e1?_0x110d9f(_0x107066,_0x5badf6,_0x20ce48):_0x110d9f(_0x20ce48))||_0x20ce48);return _0x4f92e1&&_0x20ce48&&_0x4d517f(_0x107066,_0x5badf6,_0x20ce48),_0x20ce48;},_0x1c5fdc=(_0x1836c3,_0x312bf6)=>(_0x1d96f8,_0x273ff7)=>_0x312bf6(_0x1d96f8,_0x273ff7,_0x1836c3);const _0x46719b=_0x3223aa[_0x182123(0x3fd)]('univer-pro.collaboration-client-socket-service');function _0x5eda5c(_0x5274fd,_0xe1e415,_0x5185c8){const _0x28a431=_0x182123;return _0x5274fd+'/'+_0xe1e415+_0x28a431(0x4c4)+_0x5185c8+_0x28a431(0x385);}_0x27845d[_0x182123(0x23a)]=class extends _0x3223aa[_0x182123(0x502)]{constructor(_0x114755,_0x2029c9,_0x4cfdd4,_0x4fe2c3,_0x3227c3){const _0x333587=_0x182123;super(),this[_0x333587(0x392)]=_0x114755,this['_ws']=_0x2029c9,this[_0x333587(0x404)]=_0x4cfdd4,this['_logService']=_0x4fe2c3,this[_0x333587(0x331)]=_0x3227c3;}[_0x182123(0x246)](_0x4153e7){const _0x363043=_0x182123,_0x543d86=this[_0x363043(0x46e)][_0x363043(0x246)](_0x4153e7);if(!_0x543d86)throw new Error(_0x363043(0x351));const _0x27c15e=new _0x3223aa[(_0x363043(0x2d7))](),_0x5a95b8=new _0x41acaa[(_0x363043(0x378))]();_0x27c15e[_0x363043(0x460)](_0x543d86[_0x363043(0x515)]['subscribe'](_0x136819=>_0x5a95b8[_0x363043(0x2e5)](_0x136819))),_0x27c15e[_0x363043(0x460)](_0x3223aa[_0x363043(0x1ed)](()=>_0x5a95b8[_0x363043(0x4f1)]()));const _0x1a4177=new _0x41acaa[(_0x363043(0x378))]();_0x27c15e[_0x363043(0x460)](_0x543d86['error$'][_0x363043(0x10e)](_0x4b363f=>_0x1a4177[_0x363043(0x2e5)](_0x4b363f))),_0x27c15e[_0x363043(0x460)](_0x3223aa[_0x363043(0x1ed)](()=>_0x1a4177[_0x363043(0x4f1)]()));const _0x1a936f=new _0x41acaa['Subject']();_0x27c15e[_0x363043(0x460)](_0x543d86['message$'][_0x363043(0x10e)](_0x3cecee=>{const _0x20fa2f=_0x363043,_0x1e159f=_0x534327(_0x3cecee);_0x1a936f[_0x20fa2f(0x2e5)](_0x1e159f);})),_0x27c15e['add'](_0x3223aa[_0x363043(0x1ed)](()=>_0x1a936f['complete']()));let _0x468251;const _0x199d7b=()=>{const _0x5479f2=_0x363043;_0x1a4177[_0x5479f2(0x2e5)](new Event(_0x5479f2(0x452))),_0x5a95b8[_0x5479f2(0x2e5)](new CloseEvent('connection\x20error')),_0x468251[_0x5479f2(0x3d8)]();};return _0x468251={'memberID':'','close$':_0x5a95b8['asObservable'](),'error$':_0x1a4177['asObservable'](),'open$':_0x543d86['open$'],'message$':_0x1a936f[_0x363043(0x28d)](),'send':_0x2d6fa9=>{const _0xc75f94=_0x363043;if(_0x2d6fa9[_0xc75f94(0x11a)]===_0x3b310c[_0xc75f94(0x332)]){if(_0x2d6fa9[_0xc75f94(0x46f)][_0xc75f94(0x138)]===_0x502235[_0xc75f94(0x2f0)][_0xc75f94(0x33e)]){this[_0xc75f94(0x470)](_0x468251,_0x2d6fa9['data'])[_0xc75f94(0x309)](_0x221939=>{const _0x252744=_0xc75f94;this[_0x252744(0x397)][_0x252744(0x1b1)](_0x221939),_0x199d7b();});return;}if(_0x2d6fa9[_0xc75f94(0x46f)]['eventID']===_0x502235['CollaborationEvent']['FETCH_MISSING']){const _0x55a37f=_0x2d6fa9['data'];this[_0xc75f94(0x3a5)](_0x55a37f)['then'](_0x367c7e=>{const _0xc539a6=_0xc75f94;_0x1a936f['next']({'cmd':_0x3b310c[_0xc539a6(0x251)],'code':_0x3b585e['OK'],'routeKey':_0x55a37f[_0xc539a6(0x46f)][_0xc539a6(0x250)],'routeType':'','data':{'eventID':_0x502235[_0xc539a6(0x2f0)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x367c7e}}});})[_0xc75f94(0x309)](_0x479919=>{const _0x4a5d65=_0xc75f94;this[_0x4a5d65(0x397)][_0x4a5d65(0x1b1)](_0x479919),_0x199d7b();});return;}}_0x543d86['send'](_0x5f417a(_0x2d6fa9));},'close':()=>{const _0x56ec66=_0x363043;_0x543d86[_0x56ec66(0x3d8)](),_0x27c15e[_0x56ec66(0x2cf)]();}},_0x468251;}async[_0x182123(0x470)](_0x43432e,_0x26776b){const _0x570ea9=_0x182123;var _0x4cd2b4,_0xf8e697;const {unitType:_0x54f56a,unitID:_0x1b2190,changeset:_0x482120}=_0x26776b[_0x570ea9(0x46f)],_0x56a117={'unitID':_0x1b2190,'memberID':_0x43432e[_0x570ea9(0x143)],'type':_0x54f56a,'changeset':_0x502235[_0x570ea9(0x119)](_0x482120)},_0x5a2b29=this['_configService'][_0x570ea9(0x422)](_0x19bb96),_0x2ebb43=this[_0x570ea9(0x404)][_0x570ea9(0x422)](_0x183913),_0x3a3991=_0x5eda5c((_0xf8e697=(_0x4cd2b4=_0x2ebb43==null?void 0x0:_0x2ebb43['collabSubmitChangesetUrl'])!=null?_0x4cd2b4:_0x5a2b29)!=null?_0xf8e697:_0x2abe08,_0x54f56a,_0x1b2190);try{await this[_0x570ea9(0x392)][_0x570ea9(0x3f2)](_0x3a3991,{'body':_0x56a117});}catch(_0x365765){throw this['_logService'][_0x570ea9(0x1b1)](_0x570ea9(0x165),_0x570ea9(0x35c)),_0x365765;}}async[_0x182123(0x3a5)](_0x480409){const _0xc765ac=_0x182123,{unitID:_0x2bca9a,from:_0x583156,to:_0x3533f2,unitType:_0x5215a4}=_0x480409[_0xc765ac(0x46f)];return(await this[_0xc765ac(0x331)][_0xc765ac(0x466)]({'metadata':void 0x0},{'unitID':_0x2bca9a,'type':_0x5215a4,'from':_0x583156,'to':_0x3533f2}))['changesets'];}},_0x27845d['CollaborationSocketService']=_0x2cf211([_0x1c5fdc(0x0,_0x3223aa[_0x182123(0x40e)](_0x339579['HTTPService'])),_0x1c5fdc(0x1,_0x3223aa[_0x182123(0x40e)](_0x339579['WebSocketService'])),_0x1c5fdc(0x2,_0x3223aa['IConfigService']),_0x1c5fdc(0x3,_0x3223aa[_0x182123(0x3bf)]),_0x1c5fdc(0x4,_0x502235[_0x182123(0x49d)])],_0x27845d[_0x182123(0x23a)]);const _0x54a6f6=_0x182123(0x3c9);function _0x119580(_0x199c31){return JSON['stringify'](_0x199c31)['length'];}class _0x49bccd{constructor(){const _0x36e925=_0x182123;_0x571923(this,_0x36e925(0x451),new _0x41acaa[(_0x36e925(0x378))]()),_0x571923(this,_0x36e925(0x262),this[_0x36e925(0x451)][_0x36e925(0x28d)]());}[_0x182123(0x4c5)](_0xeb4445){const _0x42e27e=_0x182123;this[_0x42e27e(0x451)][_0x42e27e(0x2e5)](_0xeb4445);}}var _0xf7a24f=Object[_0x182123(0x33a)],_0x3b02f5=Object[_0x182123(0x363)],_0x435e60=(_0x607516,_0x460ba6,_0x25ef4e,_0x142c86)=>{const _0x42fbfc=_0x182123;for(var _0xf18858=_0x142c86>0x1?void 0x0:_0x142c86?_0x3b02f5(_0x460ba6,_0x25ef4e):_0x460ba6,_0xf6fbac=_0x607516[_0x42fbfc(0x4c3)]-0x1,_0x61680f;_0xf6fbac>=0x0;_0xf6fbac--)(_0x61680f=_0x607516[_0xf6fbac])&&(_0xf18858=(_0x142c86?_0x61680f(_0x460ba6,_0x25ef4e,_0xf18858):_0x61680f(_0xf18858))||_0xf18858);return _0x142c86&&_0xf18858&&_0xf7a24f(_0x460ba6,_0x25ef4e,_0xf18858),_0xf18858;},_0x13a2d3=(_0x361f74,_0x49b065)=>(_0x1f459e,_0x47480f)=>_0x49b065(_0x1f459e,_0x47480f,_0x361f74);let _0x842f02=class extends _0x3223aa[_0x182123(0x502)]{constructor(_0xb3bb0b,_0x2fb76a){const _0x2ab351=_0x182123;super(),_0x571923(this,_0x2ab351(0x17b),new Map()),(this[_0x2ab351(0x348)]=_0xb3bb0b,this['_userManagerService']=_0x2fb76a,this['disposeWithMe'](_0x3223aa[_0x2ab351(0x1ed)](_0x41acaa[_0x2ab351(0x1ce)](this[_0x2ab351(0x348)][_0x2ab351(0x215)](_0x3223aa['UniverInstanceType']['UNIVER_SHEET'])[_0x2ab351(0x493)](_0xe02055[_0x2ab351(0x486)](_0x5b75da=>_0x5b75da[_0x2ab351(0x27a)]())),this[_0x2ab351(0x348)][_0x2ab351(0x215)](_0x3223aa[_0x2ab351(0x4b9)][_0x2ab351(0x1c3)])['pipe'](_0xe02055[_0x2ab351(0x486)](_0x3a091a=>_0x3a091a['getUnitId']())),this[_0x2ab351(0x348)][_0x2ab351(0x215)](_0x3223aa[_0x2ab351(0x4b9)][_0x2ab351(0x2ea)])[_0x2ab351(0x493)](_0xe02055[_0x2ab351(0x486)](_0x341254=>_0x341254[_0x2ab351(0x27a)]())))[_0x2ab351(0x10e)](_0x857a43=>this[_0x2ab351(0x31e)](_0x857a43)))));}[_0x182123(0x3fa)](_0x4e294a){const _0x14d98=_0x182123;this['_userManagerService'][_0x14d98(0x3fa)](_0x4e294a);}[_0x182123(0x1ea)](){const _0x2c963f=_0x182123;return this[_0x2c963f(0x4de)][_0x2c963f(0x1ea)]();}[_0x182123(0x2e2)](_0x50c0bc,_0x571797){const _0x2b1dad=_0x182123;let _0x18ff09=this[_0x2b1dad(0x17b)][_0x2b1dad(0x53b)](_0x50c0bc);_0x18ff09||(_0x18ff09=new _0x57c204(),this['_roomMembers'][_0x2b1dad(0x132)](_0x50c0bc,_0x18ff09)),_0x18ff09[_0x2b1dad(0x2e2)](_0x571797);}[_0x182123(0x141)](_0x127e34,_0x4976e1){const _0x2aa77b=_0x182123,_0x2a1170=this[_0x2aa77b(0x17b)][_0x2aa77b(0x53b)](_0x127e34);_0x2a1170&&_0x2a1170['removeMember'](_0x4976e1);}[_0x182123(0x389)](_0x147401){const _0x277fc1=_0x182123;return this['_roomMembers'][_0x277fc1(0x53b)](_0x147401);}['getMember'](_0x5333a8,_0x3dd7d5){const _0x44a5d6=_0x182123,_0xb64e3d=this[_0x44a5d6(0x17b)][_0x44a5d6(0x53b)](_0x5333a8);if(_0xb64e3d)return _0xb64e3d['getMember'](_0x3dd7d5);}[_0x182123(0x31e)](_0x295ef0){const _0xfe1e44=_0x182123,_0x34e878=this['_roomMembers'][_0xfe1e44(0x53b)](_0x295ef0);_0x34e878&&(_0x34e878[_0xfe1e44(0x2cf)](),this['_roomMembers'][_0xfe1e44(0x4e1)](_0x295ef0));}[_0x182123(0x2cf)](){const _0x4afc74=_0x182123;this['_roomMembers'][_0x4afc74(0x19f)](_0x2a6054=>_0x2a6054['dispose']()),this[_0x4afc74(0x17b)][_0x4afc74(0x41f)]();}};_0x842f02=_0x435e60([_0x13a2d3(0x0,_0x3223aa['IUniverInstanceService']),_0x13a2d3(0x1,_0x3223aa['Inject'](_0x3223aa['UserManagerService']))],_0x842f02);class _0x57c204 extends _0x3223aa[_0x182123(0x502)]{constructor(){super(...arguments),_0x571923(this,'_members',new Map());}['dispose'](){const _0x56f77d=_0x182123;this[_0x56f77d(0x285)]['clear']();}[_0x182123(0x2e2)](_0x1b0a54){const _0x2fc5d3=_0x182123;this[_0x2fc5d3(0x285)]['set'](_0x1b0a54['memberID'],_0x1b0a54);}['removeMember'](_0x526137){const _0x5effa8=_0x182123;this['_members'][_0x5effa8(0x4e1)](_0x526137);}[_0x182123(0x23d)](_0x43164a){const _0xcc98c3=_0x182123;return this[_0xcc98c3(0x285)][_0xcc98c3(0x53b)](_0x43164a);}}var _0x59332e=Object[_0x182123(0x33a)],_0x26eec4=Object[_0x182123(0x363)],_0x33d1a8=(_0x282027,_0x5a67b5,_0x47fd6b,_0x40b495)=>{const _0x55e64a=_0x182123;for(var _0x1a5a54=_0x40b495>0x1?void 0x0:_0x40b495?_0x26eec4(_0x5a67b5,_0x47fd6b):_0x5a67b5,_0x5b6e56=_0x282027[_0x55e64a(0x4c3)]-0x1,_0x292e5a;_0x5b6e56>=0x0;_0x5b6e56--)(_0x292e5a=_0x282027[_0x5b6e56])&&(_0x1a5a54=(_0x40b495?_0x292e5a(_0x5a67b5,_0x47fd6b,_0x1a5a54):_0x292e5a(_0x1a5a54))||_0x1a5a54);return _0x40b495&&_0x1a5a54&&_0x59332e(_0x5a67b5,_0x47fd6b,_0x1a5a54),_0x1a5a54;},_0x586890=(_0x45f7fb,_0x5d6ed7)=>(_0x45a9e5,_0x293749)=>_0x5d6ed7(_0x45a9e5,_0x293749,_0x45f7fb),_0x49249e=(_0x387f57=>(_0x387f57[_0x387f57['IDLE']=0x0]='IDLE',_0x387f57[_0x387f57[_0x182123(0x2f9)]=0x1]=_0x182123(0x2f9),_0x387f57[_0x387f57[_0x182123(0x113)]=0x2]='OFFLINE',_0x387f57[_0x387f57[_0x182123(0x233)]=0x3]='ONLINE',_0x387f57))(_0x49249e||{});_0x27845d[_0x182123(0x325)]=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x199de9,_0xbbd97d,_0xa89a31,_0x2f8413,_0x4e9067,_0x429c22,_0x2a9a48,_0x31f9ce,_0x393a4d,_0x38055f){const _0x3ebb20=_0x182123;super(),_0x571923(this,_0x3ebb20(0x478),new _0x41acaa[(_0x3ebb20(0x30c))](0x0)),_0x571923(this,_0x3ebb20(0x4d0),this[_0x3ebb20(0x478)][_0x3ebb20(0x28d)]()),_0x571923(this,_0x3ebb20(0x1a1),new _0x41acaa[(_0x3ebb20(0x378))]()),_0x571923(this,_0x3ebb20(0x36e),this[_0x3ebb20(0x1a1)][_0x3ebb20(0x28d)]()),_0x571923(this,_0x3ebb20(0x288)),_0x571923(this,_0x3ebb20(0x131)),_0x571923(this,_0x3ebb20(0x512)),_0x571923(this,'_shouldReportTelemetry',!0x1),_0x571923(this,'_telemetryInfo',null),(this[_0x3ebb20(0x403)]=_0x199de9,this['_logService']=_0xa89a31,this[_0x3ebb20(0x1c2)]=_0x2f8413,this[_0x3ebb20(0x513)]=_0x4e9067,this[_0x3ebb20(0x404)]=_0x429c22,this['_localeService']=_0x2a9a48,this['_memberService']=_0x31f9ce,this[_0x3ebb20(0x137)]=_0x393a4d,this[_0x3ebb20(0x4ac)]=_0x38055f,this[_0x3ebb20(0x409)]=!!this['_telemetryService'],_0xbbd97d['pipe'](_0x41acaa[_0x3ebb20(0x410)](this[_0x3ebb20(0x4ef)]))[_0x3ebb20(0x10e)](_0x95a830=>{const _0x354028=_0x3ebb20;var _0x3c3b60;typeof _0x95a830>'u'||(this['_socket']=_0x95a830,_0x95a830?(this[_0x354028(0x1c8)](_0x95a830),this[_0x354028(0x131)]=_0x95a830[_0x354028(0x1c4)][_0x354028(0x10e)](_0x5cf9ce=>{const _0x46b324=_0x354028;_0x5cf9ce['routeKey']===this[_0x46b324(0x403)]&&this[_0x46b324(0x516)](_0x5cf9ce);})):(this[_0x354028(0x1d4)](),this[_0x354028(0x478)][_0x354028(0x2e5)](0x2),(_0x3c3b60=this[_0x354028(0x131)])==null||_0x3c3b60[_0x354028(0x2d6)](),this[_0x354028(0x131)]=null));}),this[_0x3ebb20(0x2c6)](this[_0x3ebb20(0x1c2)][_0x3ebb20(0x50f)](()=>{const _0x193410=_0x3ebb20;var _0x5e9926;(_0x5e9926=this[_0x193410(0x288)])==null||_0x5e9926[_0x193410(0x4a0)]({'cmd':_0x3b310c[_0x193410(0x424)],'data':{'roomID':this[_0x193410(0x403)]}});})));}get['sessionStatus'](){const _0x3c75df=_0x182123;return this[_0x3c75df(0x478)][_0x3c75df(0x191)]();}[_0x182123(0x17a)](){const _0x1ac663=_0x182123;var _0x19a0b4,_0x1174f2;return(_0x1174f2=(_0x19a0b4=this[_0x1ac663(0x288)])==null?void 0x0:_0x19a0b4['memberID'])!=null?_0x1174f2:null;}[_0x182123(0x2cf)](){const _0x3d1e9e=_0x182123;super[_0x3d1e9e(0x2cf)](),this['dispose$'][_0x3d1e9e(0x2e5)](),this['dispose$'][_0x3d1e9e(0x4f1)]();}[_0x182123(0x3d8)](){const _0x391fee=_0x182123;var _0x11719a,_0x22c361;this[_0x391fee(0x1d4)](),(_0x11719a=this[_0x391fee(0x288)])==null||_0x11719a['send']({'cmd':_0x3b310c[_0x391fee(0x424)],'data':{'roomID':this[_0x391fee(0x403)]}}),(_0x22c361=this[_0x391fee(0x288)])==null||_0x22c361[_0x391fee(0x3d8)](),this[_0x391fee(0x1a1)]['complete'](),this[_0x391fee(0x478)][_0x391fee(0x4f1)](),this[_0x391fee(0x2cf)]();}[_0x182123(0x516)](_0x218c39){const _0x45052e=_0x182123;_0x218c39['cmd']===_0x3b310c['JOIN']?this[_0x45052e(0x480)](_0x218c39):_0x218c39[_0x45052e(0x11a)]===_0x3b310c[_0x45052e(0x251)]&&this[_0x45052e(0x522)](_0x218c39);}['_joinRoom'](_0x565193){const _0x5589b2=_0x182123;this[_0x5589b2(0x478)][_0x5589b2(0x2e5)](0x1),_0x565193[_0x5589b2(0x4a0)]({'cmd':_0x3b310c['JOIN'],'routeKey':this[_0x5589b2(0x403)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5589b2(0x403)]}]}});}[_0x182123(0x480)](_0x4b19a6){const _0x5042e2=_0x182123;var _0x495064;if(_0x4b19a6['code']===_0x3b585e[_0x5042e2(0x4ae)]){this[_0x5042e2(0x513)]['show']({'type':_0x4d822f[_0x5042e2(0x23f)]['Warning'],'content':this[_0x5042e2(0x29b)]['t']('session.room-full')}),this[_0x5042e2(0x478)][_0x5042e2(0x2e5)](0x2);return;}this[_0x5042e2(0x478)][_0x5042e2(0x2e5)](0x3);const _0x48b7d4=(_0x495064=_0x4b19a6[_0x5042e2(0x46f)]['roomInfos'][this['_unitID']])==null?void 0x0:_0x495064[_0x5042e2(0x2d1)];_0x48b7d4&&_0x48b7d4[_0x5042e2(0x19f)](_0x5e4756=>this[_0x5042e2(0x168)][_0x5042e2(0x2e2)](this[_0x5042e2(0x403)],_0x5e4756));}[_0x182123(0x522)](_0x337567){const _0x100729=_0x182123;try{const _0x50adfd=_0x337567[_0x100729(0x46f)];switch(_0x50adfd[_0x100729(0x138)]){case _0x502235[_0x100729(0x2f0)]['USERS_ENTER']:this[_0x100729(0x322)](_0x50adfd),this[_0x100729(0x1a1)][_0x100729(0x2e5)](_0x50adfd);break;case _0x502235[_0x100729(0x2f0)][_0x100729(0x205)]:this[_0x100729(0x49b)](_0x50adfd),this['_event$']['next'](_0x50adfd);break;case _0x502235['CollaborationEvent'][_0x100729(0x301)]:case _0x502235[_0x100729(0x2f0)][_0x100729(0x408)]:this[_0x100729(0x2b6)](),this[_0x100729(0x126)](),this[_0x100729(0x1a1)][_0x100729(0x2e5)](_0x50adfd);break;case _0x502235['CollaborationEvent'][_0x100729(0x2c2)]:this[_0x100729(0x397)][_0x100729(0x1b1)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0x50adfd)),this['_event$'][_0x100729(0x2e5)](_0x50adfd);break;case _0x502235[_0x100729(0x2f0)][_0x100729(0x4e4)]:this[_0x100729(0x137)]['onCommentUpdate'](_0x50adfd[_0x100729(0x46f)]),this[_0x100729(0x1a1)][_0x100729(0x2e5)](_0x50adfd);break;default:this[_0x100729(0x1a1)][_0x100729(0x2e5)](_0x50adfd);}}catch(_0x429bdb){this[_0x100729(0x397)][_0x100729(0x1b1)](_0x429bdb,_0x337567);}}['_onUserJoin'](_0x38df63){const _0x458782=_0x182123;this[_0x458782(0x168)][_0x458782(0x2e2)](this['_unitID'],_0x38df63[_0x458782(0x46f)]);}[_0x182123(0x49b)](_0x1d4102){const _0x13ab65=_0x182123;this[_0x13ab65(0x168)][_0x13ab65(0x141)](this[_0x13ab65(0x403)],_0x1d4102['data'][_0x13ab65(0x143)]);}async[_0x182123(0x4a0)](_0x583f19,_0x22c325){const _0x5774b0=_0x182123;if(this[_0x5774b0(0x47e)]!==0x3||!this[_0x5774b0(0x288)])throw new Error(_0x5774b0(0x35f));try{_0x583f19['eventID']===_0x502235['CollaborationEvent'][_0x5774b0(0x33e)]&&(this[_0x5774b0(0x37f)](),this[_0x5774b0(0x12f)](_0x583f19)),this[_0x5774b0(0x288)][_0x5774b0(0x4a0)]({'cmd':_0x3b310c[_0x5774b0(0x332)],'routeKey':_0x22c325,'routeType':'','data':_0x583f19});}catch(_0x4210a3){this[_0x5774b0(0x397)][_0x5774b0(0x1b1)](_0x4210a3);}}[_0x182123(0x37f)](){const _0x446fcc=_0x182123;var _0x2b1569;this[_0x446fcc(0x512)]=window[_0x446fcc(0x114)](()=>{const _0x1fa3df=_0x446fcc;this[_0x1fa3df(0x512)]=null,this[_0x1fa3df(0x513)][_0x1fa3df(0x2a4)]({'type':_0x4d822f['MessageType'][_0x1fa3df(0x189)],'content':this['_localeService']['t']('session.collaboration-timeout')});},(_0x2b1569=this[_0x446fcc(0x404)][_0x446fcc(0x422)](_0x3cbca8))!=null?_0x2b1569:0x4e20);}[_0x182123(0x126)](){const _0x1566ee=_0x182123;this[_0x1566ee(0x512)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x1566ee(0x512)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x241de9){const _0x20ab79=_0x182123;if(!this[_0x20ab79(0x409)])return;const {data:_0x249b73}=_0x241de9,{unitID:_0x27f09b,changeset:_0x5d75bf}=_0x249b73,{mutations:_0x106e49,type:_0x3982f1}=_0x5d75bf;this[_0x20ab79(0x34b)]={'unitId':_0x27f09b,'type':_0x3982f1,'startTime':performance[_0x20ab79(0x388)](),'stopTime':0x0,'duration':0x0,'size':_0x119580(_0x106e49)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x114948=_0x182123;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x114948(0x397)][_0x114948(0x1b1)](_0x114948(0x165),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo'][_0x114948(0x184)]=performance[_0x114948(0x388)](),this[_0x114948(0x34b)][_0x114948(0x281)]=this[_0x114948(0x34b)][_0x114948(0x184)]-this['_telemetryInfo'][_0x114948(0x3e1)],this['_telemetryService']['capture'](_0x54a6f6,this[_0x114948(0x34b)]),this[_0x114948(0x34b)]=null;}}[_0x182123(0x1d4)](){const _0x4b46fc=_0x182123;this[_0x4b46fc(0x34b)]=null;}},_0x27845d['CollaborationSession']=_0x33d1a8([_0x586890(0x2,_0x3223aa[_0x182123(0x3bf)]),_0x586890(0x3,_0x19d837[_0x182123(0x201)]),_0x586890(0x4,_0x19d837[_0x182123(0x31b)]),_0x586890(0x5,_0x3223aa[_0x182123(0x531)]),_0x586890(0x6,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x1dd)])),_0x586890(0x7,_0x3223aa[_0x182123(0x40e)](_0x842f02)),_0x586890(0x8,_0x3223aa[_0x182123(0x40e)](_0x49bccd)),_0x586890(0x9,_0x3223aa[_0x182123(0x203)](_0x1f2e1d[_0x182123(0x1f8)]))],_0x27845d[_0x182123(0x325)]);var _0x10c237=Object[_0x182123(0x33a)],_0x29bf7b=Object[_0x182123(0x363)],_0x45d297=(_0x5c628d,_0x248111,_0x52dbf2,_0x4be6fe)=>{const _0x47604f=_0x182123;for(var _0xe19056=_0x4be6fe>0x1?void 0x0:_0x4be6fe?_0x29bf7b(_0x248111,_0x52dbf2):_0x248111,_0x1ab4db=_0x5c628d[_0x47604f(0x4c3)]-0x1,_0x43970;_0x1ab4db>=0x0;_0x1ab4db--)(_0x43970=_0x5c628d[_0x1ab4db])&&(_0xe19056=(_0x4be6fe?_0x43970(_0x248111,_0x52dbf2,_0xe19056):_0x43970(_0xe19056))||_0xe19056);return _0x4be6fe&&_0xe19056&&_0x10c237(_0x248111,_0x52dbf2,_0xe19056),_0xe19056;},_0x1f5bc9=(_0xf09904,_0x1bd31c)=>(_0x5dd923,_0x1c48c0)=>_0x1bd31c(_0x5dd923,_0x1c48c0,_0xf09904);_0x27845d[_0x182123(0x3c7)]=class extends _0x3223aa[_0x182123(0x502)]{constructor(_0x218897,_0x3ae422,_0x1d001d,_0x428d8b,_0x5e880e,_0x1ac519){const _0x530136=_0x182123;super(),_0x571923(this,_0x530136(0x253),new _0x41acaa[(_0x530136(0x30c))](void 0x0)),_0x571923(this,_0x530136(0x318),this[_0x530136(0x253)][_0x530136(0x28d)]()),_0x571923(this,_0x530136(0x3a1),null),_0x571923(this,_0x530136(0x19a),new Map()),_0x571923(this,'_status$',new _0x41acaa[(_0x530136(0x30c))](_0x49249e[_0x530136(0x1d1)])),_0x571923(this,_0x530136(0x355),this[_0x530136(0x38c)][_0x530136(0x28d)]()),_0x571923(this,_0x530136(0x4e5),!0x1),_0x571923(this,_0x530136(0x130)),_0x571923(this,'_retryCount',0x0),_0x571923(this,_0x530136(0x463)),_0x571923(this,_0x530136(0x2da)),(this[_0x530136(0x526)]=_0x218897,this[_0x530136(0x29b)]=_0x3ae422,this[_0x530136(0x513)]=_0x1d001d,this[_0x530136(0x397)]=_0x428d8b,this[_0x530136(0x404)]=_0x5e880e,this[_0x530136(0x26e)]=_0x1ac519,this['_initEventListeners']());}get[_0x182123(0x288)](){return this['_socket$']['getValue']();}['_initEventListeners'](){const _0x63b7f7=_0x182123;this[_0x63b7f7(0x446)](),this[_0x63b7f7(0x517)]();}[_0x182123(0x2cf)](){const _0x32e019=_0x182123;super[_0x32e019(0x2cf)](),this[_0x32e019(0x19a)]['forEach'](_0x330b07=>_0x330b07[_0x32e019(0x2cf)]()),this['_sessions']['clear'](),this['_status$'][_0x32e019(0x4f1)]();}async['requireSession'](_0x34101b){const _0x2af858=_0x182123;if(this[_0x2af858(0x19a)][_0x2af858(0x39c)](_0x34101b))return this[_0x2af858(0x19a)][_0x2af858(0x53b)](_0x34101b);this['_tryEnsureSocket']();const _0x40f939=this[_0x2af858(0x526)][_0x2af858(0x336)](_0x27845d[_0x2af858(0x325)],_0x34101b,this[_0x2af858(0x253)][_0x2af858(0x28d)]());return this[_0x2af858(0x19a)][_0x2af858(0x132)](_0x34101b,_0x40f939),_0x40f939;}[_0x182123(0x1ac)](_0x736bb6){const _0x1f3a75=_0x182123;var _0x47ca85;const _0x2a51fe=this['_sessions'][_0x1f3a75(0x53b)](_0x736bb6);_0x2a51fe&&(this['_sessions'][_0x1f3a75(0x4e1)](_0x736bb6),_0x2a51fe[_0x1f3a75(0x3d8)]()),this[_0x1f3a75(0x19a)][_0x1f3a75(0x1b9)]||(_0x47ca85=this[_0x1f3a75(0x288)])==null||_0x47ca85[_0x1f3a75(0x3d8)]();}['reconnect'](){const _0x317584=_0x182123;this[_0x317584(0x4f9)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x317584(0x130)]),this[_0x317584(0x130)]=null),this['_tryReconnect']();}[_0x182123(0x398)](){const _0x566dae=_0x182123;var _0x5a40fa,_0x139c90;const _0x5d3301=this['_configService']['getConfig'](_0x59775a),_0x272262=this[_0x566dae(0x404)][_0x566dae(0x422)](_0x183913),_0x3391d1=(_0x139c90=(_0x5a40fa=_0x272262==null?void 0x0:_0x272262[_0x566dae(0x337)])!=null?_0x5a40fa:_0x5d3301)!=null?_0x139c90:_0x4207c4,_0xbc9087=this[_0x566dae(0x26e)][_0x566dae(0x246)](_0x3391d1);return this[_0x566dae(0x3a1)]=_0xbc9087,_0xbc9087;}[_0x182123(0x432)](){const _0x12fb01=_0x182123;var _0xb24845,_0x1d4ebb;try{const _0x481f88=(_0x1d4ebb=(_0xb24845=this['_socket'])!=null?_0xb24845:this[_0x12fb01(0x3a1)])!=null?_0x1d4ebb:this['_createSocket']();if(_0x481f88){const _0x3ce52d=_0x481f88[_0x12fb01(0x4a0)];_0x481f88[_0x12fb01(0x4a0)]=_0x12baa8=>(this[_0x12fb01(0x28b)](),_0x3ce52d[_0x12fb01(0x381)](_0x481f88,[_0x12baa8])),_0x481f88['message$']['subscribe'](_0x48938a=>this[_0x12fb01(0x4e8)](_0x481f88,_0x48938a)),_0x481f88[_0x12fb01(0x2f8)][_0x12fb01(0x493)](_0xe02055[_0x12fb01(0x12d)](0x1))['subscribe'](_0x256198=>this[_0x12fb01(0x397)]['error'](_0x12fb01(0x495),_0x256198)),_0x481f88['open$'][_0x12fb01(0x493)](_0xe02055['take'](0x1))[_0x12fb01(0x10e)](()=>{this['_onConnectionOpen'](_0x481f88);}),_0x481f88[_0x12fb01(0x515)][_0x12fb01(0x493)](_0xe02055[_0x12fb01(0x12d)](0x1))[_0x12fb01(0x10e)](_0x84aed6=>{const _0x60bd16=_0x12fb01;this[_0x60bd16(0x397)][_0x60bd16(0x235)](_0x60bd16(0x359),_0x60bd16(0x4ba),_0x84aed6),this[_0x60bd16(0x242)]();});}}catch(_0x23e302){this[_0x12fb01(0x397)][_0x12fb01(0x1b1)](_0x23e302),this[_0x12fb01(0x242)]();}}[_0x182123(0x341)](_0x23976a){const _0xc331df=_0x182123;this[_0xc331df(0x397)][_0xc331df(0x235)](_0xc331df(0x359),_0xc331df(0x321)),_0x23976a['send']({'cmd':_0x3b310c['HELLO']}),this[_0xc331df(0x28b)]();}['_listenToOfflineEvent'](){const _0x205fd0=_0x182123;window[_0x205fd0(0x2dd)](_0x205fd0(0x2e7),()=>this[_0x205fd0(0x1c0)]());}[_0x182123(0x1c0)](){const _0x33b65a=_0x182123;this[_0x33b65a(0x4e5)]=!0x1,this[_0x33b65a(0x3a1)]=null,this[_0x33b65a(0x38c)][_0x33b65a(0x2e5)](_0x49249e[_0x33b65a(0x113)]),this[_0x33b65a(0x253)]['next'](null),this[_0x33b65a(0x268)](),this[_0x33b65a(0x40f)]();}['_onConnectionFailed'](){const _0x43fa37=_0x182123;var _0x2be112;this['_onOffline'](),this[_0x43fa37(0x4f9)]<((_0x2be112=this['_configService'][_0x43fa37(0x422)](_0x433296))!=null?_0x2be112:0x3)?(this[_0x43fa37(0x513)][_0x43fa37(0x2a4)]({'key':_0x43fa37(0x4e9),'type':_0x4d822f[_0x43fa37(0x23f)]['Warning'],'content':this['_localeService']['t'](_0x43fa37(0x2b2))}),this['_tryReconnect']()):this[_0x43fa37(0x513)][_0x43fa37(0x2a4)]({'key':'collaboration-session-retry','type':_0x4d822f[_0x43fa37(0x23f)][_0x43fa37(0x189)],'content':this[_0x43fa37(0x29b)]['t'](_0x43fa37(0x1ff))});}[_0x182123(0x517)](){const _0xb169c2=_0x182123,_0x186557=()=>{const _0x37a20b=_0x2e84;this[_0x37a20b(0x288)]||this[_0x37a20b(0x173)]();},_0x52a9c8=()=>{const _0x5d68a8=_0x2e84;this[_0x5d68a8(0x288)]||document[_0x5d68a8(0x500)]===_0x5d68a8(0x3f8)||this[_0x5d68a8(0x173)]();};window['addEventListener'](_0xb169c2(0x383),_0x186557),document[_0xb169c2(0x2dd)](_0xb169c2(0x4bc),_0x52a9c8);}[_0x182123(0x280)](){const _0xf0e3e9=_0x182123;var _0x35a23c;const _0x503afa=this[_0xf0e3e9(0x4f9)],_0x329067=this[_0xf0e3e9(0x404)]['getConfig'](_0x183913),_0x369c73=_0x503afa===0x0?0x0:((_0x35a23c=_0x329067==null?void 0x0:_0x329067['retryConnectingInterval'])!=null?_0x35a23c:0x4e20)*0x2**_0x503afa;this[_0xf0e3e9(0x130)]=window[_0xf0e3e9(0x114)](()=>{const _0x1d22e9=_0xf0e3e9;clearTimeout(this[_0x1d22e9(0x130)]),this['_retryConnectingTimer']=null,this[_0x1d22e9(0x432)]();},_0x369c73),this[_0xf0e3e9(0x4f9)]+=0x1;}['_onMessage'](_0x100f44,_0x4c987d){const _0x558db5=_0x182123,{cmd:_0x4d4228}=_0x4c987d;_0x4d4228===_0x3b310c['HELLO']&&!this['_socketReady']&&(_0x100f44[_0x558db5(0x143)]=_0x4c987d[_0x558db5(0x46f)][_0x558db5(0x143)],this[_0x558db5(0x253)][_0x558db5(0x2e5)](_0x100f44),this[_0x558db5(0x38c)]['next'](_0x49249e[_0x558db5(0x233)]),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0x4d4228===_0x3b310c[_0x558db5(0x2d2)]&&this[_0x558db5(0x268)](),this[_0x558db5(0x28b)]();}[_0x182123(0x28b)](){const _0x28d517=_0x182123;var _0x312cd6;this[_0x28d517(0x40f)](),this[_0x28d517(0x463)]=window[_0x28d517(0x114)](()=>this['_sendHeartbeat'](),(_0x312cd6=this[_0x28d517(0x404)]['getConfig'](_0x4c4485))!=null?_0x312cd6:0x7530);}[_0x182123(0x3e2)](){const _0x3af236=_0x182123;this[_0x3af236(0x288)][_0x3af236(0x4a0)]({'cmd':_0x3b310c[_0x3af236(0x2d2)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x22bf42=_0x182123;var _0xe15b8d;this[_0x22bf42(0x2da)]=window['setTimeout'](()=>this[_0x22bf42(0x242)](),(_0xe15b8d=this[_0x22bf42(0x404)][_0x22bf42(0x422)](_0x3cbca8))!=null?_0xe15b8d:0x4e20);}[_0x182123(0x40f)](){const _0x2922e3=_0x182123;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x2922e3(0x463)]),this[_0x2922e3(0x463)]=null);}[_0x182123(0x268)](){const _0x524315=_0x182123;this[_0x524315(0x2da)]!=null&&(clearTimeout(this[_0x524315(0x2da)]),this[_0x524315(0x2da)]=null);}},_0x27845d[_0x182123(0x3c7)]=_0x45d297([_0x1f5bc9(0x0,_0x3223aa[_0x182123(0x40e)](_0x3223aa['Injector'])),_0x1f5bc9(0x1,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x1dd)])),_0x1f5bc9(0x2,_0x19d837[_0x182123(0x31b)]),_0x1f5bc9(0x3,_0x3223aa['ILogService']),_0x1f5bc9(0x4,_0x3223aa[_0x182123(0x531)]),_0x1f5bc9(0x5,_0x46719b)],_0x27845d['CollaborationSessionService']);for(var _0x1f7466=[],_0x128f66=0x0;_0x128f66<0x100;++_0x128f66)_0x1f7466['push']((_0x128f66+0x100)['toString'](0x10)[_0x182123(0x3d9)](0x1));function _0x42c94d(_0x3be53e,_0xb35e35=0x0){const _0x22b650=_0x182123;return(_0x1f7466[_0x3be53e[_0xb35e35+0x0]]+_0x1f7466[_0x3be53e[_0xb35e35+0x1]]+_0x1f7466[_0x3be53e[_0xb35e35+0x2]]+_0x1f7466[_0x3be53e[_0xb35e35+0x3]]+'-'+_0x1f7466[_0x3be53e[_0xb35e35+0x4]]+_0x1f7466[_0x3be53e[_0xb35e35+0x5]]+'-'+_0x1f7466[_0x3be53e[_0xb35e35+0x6]]+_0x1f7466[_0x3be53e[_0xb35e35+0x7]]+'-'+_0x1f7466[_0x3be53e[_0xb35e35+0x8]]+_0x1f7466[_0x3be53e[_0xb35e35+0x9]]+'-'+_0x1f7466[_0x3be53e[_0xb35e35+0xa]]+_0x1f7466[_0x3be53e[_0xb35e35+0xb]]+_0x1f7466[_0x3be53e[_0xb35e35+0xc]]+_0x1f7466[_0x3be53e[_0xb35e35+0xd]]+_0x1f7466[_0x3be53e[_0xb35e35+0xe]]+_0x1f7466[_0x3be53e[_0xb35e35+0xf]])[_0x22b650(0x356)]();}var _0x388b50,_0x2b1c3a=new Uint8Array(0x10);function _0x18f5b4(){const _0x16fbaf=_0x182123;if(!_0x388b50&&(_0x388b50=typeof crypto<'u'&&crypto[_0x16fbaf(0x395)]&&crypto[_0x16fbaf(0x395)]['bind'](crypto),!_0x388b50))throw new Error(_0x16fbaf(0x4b2));return _0x388b50(_0x2b1c3a);}var _0x103dfa=typeof crypto<'u'&&crypto[_0x182123(0x4db)]&&crypto[_0x182123(0x4db)]['bind'](crypto);const _0x1bab01={'randomUUID':_0x103dfa};function _0x3a1d6d(_0x4e3ce6,_0x97c934,_0x4388ac){const _0x4eefe6=_0x182123;if(_0x1bab01[_0x4eefe6(0x4db)]&&!_0x97c934&&!_0x4e3ce6)return _0x1bab01['randomUUID']();_0x4e3ce6=_0x4e3ce6||{};var _0x332fd8=_0x4e3ce6[_0x4eefe6(0x3e8)]||(_0x4e3ce6[_0x4eefe6(0x50e)]||_0x18f5b4)();return _0x332fd8[0x6]=_0x332fd8[0x6]&0xf|0x40,_0x332fd8[0x8]=_0x332fd8[0x8]&0x3f|0x80,_0x42c94d(_0x332fd8);}var _0x44295c=Object[_0x182123(0x33a)],_0x1cd2f9=Object['getOwnPropertyDescriptor'],_0x469088=(_0x2b7517,_0x4266d3,_0x5ec156,_0x2020c5)=>{const _0x21d036=_0x182123;for(var _0x2cd913=_0x2020c5>0x1?void 0x0:_0x2020c5?_0x1cd2f9(_0x4266d3,_0x5ec156):_0x4266d3,_0x324e8a=_0x2b7517[_0x21d036(0x4c3)]-0x1,_0x48eed1;_0x324e8a>=0x0;_0x324e8a--)(_0x48eed1=_0x2b7517[_0x324e8a])&&(_0x2cd913=(_0x2020c5?_0x48eed1(_0x4266d3,_0x5ec156,_0x2cd913):_0x48eed1(_0x2cd913))||_0x2cd913);return _0x2020c5&&_0x2cd913&&_0x44295c(_0x4266d3,_0x5ec156,_0x2cd913),_0x2cd913;},_0x31c4ff=(_0xa10b50,_0xdd77ee)=>(_0x32e40d,_0x1139f0)=>_0xdd77ee(_0x32e40d,_0x1139f0,_0xa10b50);let _0x136308=class{constructor(_0x324d97,_0xcc2537,_0x48f698){const _0x2d0221=_0x182123;this['_injector']=_0x324d97,this[_0x2d0221(0x2b5)]=_0xcc2537,this['_renderManagerService']=_0x48f698;}['transformIMECache'](_0x3aee32){const _0x24d02d=_0x182123;this[_0x24d02d(0x176)](_0x3aee32),this[_0x24d02d(0x4c7)](_0x3aee32);}[_0x182123(0x43d)](_0x2fbde0){const _0x388a1f=_0x182123,{unitID:_0x50af25}=_0x2fbde0,_0x47f848=this[_0x388a1f(0x39e)]['getRenderById'](_0x50af25)[_0x388a1f(0x41e)](_0x143e31[_0x388a1f(0x1f0)]),{redoCache:_0x5e5f4a}=_0x47f848[_0x388a1f(0x14e)]();if(_0x5e5f4a[_0x388a1f(0x4c3)]===0x0)return _0x2fbde0;let _0x1fe2a3=_0x3223aa[_0x388a1f(0x357)][_0x388a1f(0x26c)](_0x2fbde0[_0x388a1f(0x1d7)][0x0]);for(let _0x5c03fb=0x0;_0x5c03fb<_0x5e5f4a[_0x388a1f(0x4c3)];_0x5c03fb++){const _0x489c02={'id':'doc.mutation.rich-text-editing','params':{..._0x5e5f4a[_0x5c03fb]}},_0x10064c=this[_0x388a1f(0x2b5)][_0x388a1f(0x12b)](_0x1fe2a3,_0x489c02,!0x1);if(_0x502235[_0x388a1f(0x38f)](_0x10064c))throw _0x10064c[_0x388a1f(0x1b1)];_0x1fe2a3=_0x10064c['m1Prime'];}return{..._0x3223aa[_0x388a1f(0x357)][_0x388a1f(0x26c)](_0x2fbde0),'mutations':[_0x1fe2a3]};}[_0x182123(0x176)](_0x2e8dae){const _0x3e6434=_0x182123,{unitID:_0x4e6fe9}=_0x2e8dae,_0xd818ed=this[_0x3e6434(0x39e)]['getRenderById'](_0x4e6fe9)['with'](_0x143e31[_0x3e6434(0x1f0)]),{undoCache:_0x25f6b,redoCache:_0x2b2dc5}=_0xd818ed[_0x3e6434(0x14e)]();if(_0x25f6b[_0x3e6434(0x4c3)]===0x0||_0x2b2dc5[_0x3e6434(0x4c3)]===0x0)return;const _0x259ca8=[],_0x1a4d98=[];let _0x1e60f4=_0x3223aa[_0x3e6434(0x357)][_0x3e6434(0x26c)](_0x2e8dae[_0x3e6434(0x1d7)][0x0]),_0x43852c=_0x3223aa[_0x3e6434(0x357)][_0x3e6434(0x26c)](_0x2e8dae[_0x3e6434(0x1d7)][0x0]);for(let _0x21a30b=_0x25f6b[_0x3e6434(0x4c3)]-0x1;_0x21a30b>=0x0;_0x21a30b--){const _0x741361={'id':_0x3e6434(0x459),'params':{..._0x25f6b[_0x21a30b]}},_0x4d4abf={'id':_0x3e6434(0x459),'params':{..._0x2b2dc5[_0x21a30b]}},_0x1f6804=this[_0x3e6434(0x2b5)][_0x3e6434(0x12b)](_0x1e60f4,_0x741361,!0x1),_0x3c1ba1=this['_transformService'][_0x3e6434(0x12b)](_0x43852c,_0x4d4abf,!0x1);if(_0x502235['isTransformMutationFailure'](_0x1f6804))throw _0x1f6804[_0x3e6434(0x1b1)];if(_0x502235[_0x3e6434(0x38f)](_0x3c1ba1))throw _0x3c1ba1[_0x3e6434(0x1b1)];_0x259ca8[_0x3e6434(0x340)](_0x1f6804[_0x3e6434(0x35b)][_0x3e6434(0x4b1)]),_0x1a4d98[_0x3e6434(0x340)](_0x3c1ba1[_0x3e6434(0x35b)][_0x3e6434(0x4b1)]),_0x1e60f4=_0x1f6804[_0x3e6434(0x3ee)],_0x43852c=_0x3c1ba1[_0x3e6434(0x3ee)];}_0xd818ed['setUndoRedoMutationParamsCache']({'undoCache':_0x259ca8,'redoCache':_0x1a4d98});}[_0x182123(0x4c7)](_0x282670){const _0x54d67b=_0x182123,{unitID:_0xbc4e33}=_0x282670,_0x26b4dd=this['_renderManagerService'][_0x54d67b(0x4dc)](_0xbc4e33)[_0x54d67b(0x41e)](_0x143e31[_0x54d67b(0x1f0)]),_0x466181=_0x26b4dd['getActiveRange']();if(_0x466181==null)return;const _0x384846=[{'id':_0x54d67b(0x459),'params':{'unitId':_0x282670[_0x54d67b(0x250)],'actions':null,'textRanges':[_0x466181]}}],_0x290646=this[_0x54d67b(0x2b5)]['transformMutationsWithChangeset'](_0x282670,_0x384846);if(!_0x502235[_0x54d67b(0x50c)](_0x290646))throw _0x290646[_0x54d67b(0x1b1)];const _0x4ff9e9=_0x290646['m2Prime'][0x0][_0x54d67b(0x4b1)][_0x54d67b(0x200)];Array[_0x54d67b(0x390)](_0x4ff9e9)&&_0x4ff9e9[_0x54d67b(0x4c3)]&&_0x26b4dd[_0x54d67b(0x52b)](_0x4ff9e9[0x0]);}};_0x136308=_0x469088([_0x31c4ff(0x0,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x31c4ff(0x1,_0x502235[_0x182123(0x437)]),_0x31c4ff(0x2,_0x20af9e[_0x182123(0x444)])],_0x136308);var _0x2b58df=Object[_0x182123(0x33a)],_0x552587=Object[_0x182123(0x363)],_0x539554=(_0x50d781,_0x4cf7d4,_0x1ecc0d,_0x39ab9f)=>{const _0x14c97=_0x182123;for(var _0x525939=_0x39ab9f>0x1?void 0x0:_0x39ab9f?_0x552587(_0x4cf7d4,_0x1ecc0d):_0x4cf7d4,_0x607460=_0x50d781[_0x14c97(0x4c3)]-0x1,_0x5c3ff8;_0x607460>=0x0;_0x607460--)(_0x5c3ff8=_0x50d781[_0x607460])&&(_0x525939=(_0x39ab9f?_0x5c3ff8(_0x4cf7d4,_0x1ecc0d,_0x525939):_0x5c3ff8(_0x525939))||_0x525939);return _0x39ab9f&&_0x525939&&_0x2b58df(_0x4cf7d4,_0x1ecc0d,_0x525939),_0x525939;},_0x2539ed=(_0x344fa2,_0x49449e)=>(_0x5196bf,_0x583f76)=>_0x49449e(_0x5196bf,_0x583f76,_0x344fa2);_0x27845d['LocalCacheService']=class extends _0x3223aa[_0x182123(0x502)]{constructor(_0x58e9a8,_0x504503,_0x13e5b3,_0x2c96bc,_0x28cb04){const _0x33e2ff=_0x182123;super(),_0x571923(this,_0x33e2ff(0x4ee),new Map()),_0x571923(this,_0x33e2ff(0x32c),new Map()),_0x571923(this,_0x33e2ff(0x328),!0x1),(this[_0x33e2ff(0x404)]=_0x58e9a8,this[_0x33e2ff(0x15e)]=_0x504503,this[_0x33e2ff(0x1c2)]=_0x13e5b3,this['_localeService']=_0x2c96bc,this[_0x33e2ff(0x416)]=_0x28cb04,this[_0x33e2ff(0x387)]());}[_0x182123(0x477)](){const _0x191c0c=_0x182123;this[_0x191c0c(0x328)]=!0x0;}[_0x182123(0x329)](){const _0x5c68e7=_0x182123;this[_0x5c68e7(0x328)]=!0x1;}[_0x182123(0x2cf)](){const _0x1251d6=_0x182123;this[_0x1251d6(0x4bd)]()[_0x1251d6(0x2bd)](()=>super[_0x1251d6(0x2cf)]());}async['loadOfflineData'](_0x37b2c8){const _0x35e2f8=_0x182123;return this[_0x35e2f8(0x328)]?null:this[_0x35e2f8(0x15e)][_0x35e2f8(0x3ce)](_0x315929(_0x37b2c8));}async[_0x182123(0x36b)](_0x564865,_0x56aa56){const _0x4c44da=_0x182123;return!!this[_0x4c44da(0x15e)][_0x4c44da(0x43e)](_0x564865,_0x56aa56);}['updateOfflineData'](_0x266aaa,_0x22cc3f,_0xa237f7,_0x4c17cc){const _0xdc2d5c=_0x182123,_0x5077b8=this[_0xdc2d5c(0x416)][_0xdc2d5c(0x523)](_0x266aaa);this[_0xdc2d5c(0x4ee)][_0xdc2d5c(0x132)](_0x266aaa,{'unitID':_0x266aaa,'type':_0x22cc3f,'awaitingChangeset':_0xa237f7,'mutations':_0x4c17cc,'rev':_0x5077b8}),this['_saveTaskMap'][_0xdc2d5c(0x39c)](_0x266aaa)||this[_0xdc2d5c(0x214)](_0x266aaa);}[_0x182123(0x214)](_0x294696){const _0x554b27=_0x182123,_0x1f880d=this[_0x554b27(0x4f0)]();_0x1f880d===0x0?this[_0x554b27(0x17f)](_0x294696):this['_saveTaskMap'][_0x554b27(0x132)](_0x294696,setTimeout(()=>this[_0x554b27(0x17f)](_0x294696),_0x1f880d));}['_getSaveTimeout'](){const _0x22f63c=_0x182123;var _0x185a4b;return(_0x185a4b=this[_0x22f63c(0x404)][_0x22f63c(0x422)](_0x45a061))!=null?_0x185a4b:0x3e8;}[_0x182123(0x17f)](_0x1da429){const _0x56a63c=_0x182123,_0x4cd3ab=this[_0x56a63c(0x32c)][_0x56a63c(0x53b)](_0x1da429);return _0x4cd3ab!==void 0x0&&window[_0x56a63c(0x12c)](_0x4cd3ab),this[_0x56a63c(0x15e)][_0x56a63c(0x43e)](_0x315929(_0x1da429),this[_0x56a63c(0x4ee)][_0x56a63c(0x53b)](_0x1da429))[_0x56a63c(0x2bd)](()=>this[_0x56a63c(0x32c)][_0x56a63c(0x4e1)](_0x1da429));}async[_0x182123(0x4bd)](){const _0x284868=_0x182123,_0x29bbaa=[];this[_0x284868(0x32c)]['forEach']((_0x3efae1,_0x1228b4)=>{window['clearTimeout'](_0x3efae1),_0x29bbaa['push'](this['_saveCache'](_0x1228b4)['then'](()=>{const _0x330c8d=_0x2e84;this[_0x330c8d(0x32c)]['delete'](_0x1228b4);}));}),await Promise[_0x284868(0x50a)](_0x29bbaa);}[_0x182123(0x387)](){const _0x486516=_0x182123;this[_0x486516(0x2c6)](this[_0x486516(0x1c2)][_0x486516(0x16a)](()=>{const _0x3b3ef7=_0x486516;if(this[_0x3b3ef7(0x32c)][_0x3b3ef7(0x1b9)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},_0x27845d[_0x182123(0x199)]=_0x539554([_0x2539ed(0x0,_0x3223aa[_0x182123(0x531)]),_0x2539ed(0x1,_0x3223aa[_0x182123(0x260)]),_0x2539ed(0x2,_0x19d837[_0x182123(0x201)]),_0x2539ed(0x3,_0x3223aa['Inject'](_0x3223aa[_0x182123(0x1dd)])),_0x2539ed(0x4,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x4f6)]))],_0x27845d[_0x182123(0x199)]);function _0x315929(_0xd2183e){const _0x162202=_0x182123;return _0x162202(0x51f)+_0xd2183e;}var _0x397c3f=Object[_0x182123(0x33a)],_0x17013d=Object[_0x182123(0x363)],_0x2748ee=(_0x51c885,_0x461d6f,_0x54777c,_0x212a96)=>{const _0x13d6a8=_0x182123;for(var _0x460cd1=_0x212a96>0x1?void 0x0:_0x212a96?_0x17013d(_0x461d6f,_0x54777c):_0x461d6f,_0x29664d=_0x51c885[_0x13d6a8(0x4c3)]-0x1,_0x5bf44c;_0x29664d>=0x0;_0x29664d--)(_0x5bf44c=_0x51c885[_0x29664d])&&(_0x460cd1=(_0x212a96?_0x5bf44c(_0x461d6f,_0x54777c,_0x460cd1):_0x5bf44c(_0x460cd1))||_0x460cd1);return _0x212a96&&_0x460cd1&&_0x397c3f(_0x461d6f,_0x54777c,_0x460cd1),_0x460cd1;},_0x80f75a=(_0x1d94c6,_0x2b5dcf)=>(_0x2a478f,_0x2f1bad)=>_0x2b5dcf(_0x2a478f,_0x2f1bad,_0x1d94c6);function _0x56a38a(_0x59efac){const _0x642e29=_0x182123,{unitID:_0x10cedc,mutations:_0x420ea0}=_0x59efac;return{'unitId':_0x10cedc,'subUnitId':_0x420ea0[0x0]['params'][_0x642e29(0x382)]};}let _0x38921c=class{constructor(_0x243aa1,_0xf5a176,_0x8d15df){const _0x2db6d7=_0x182123;this['_injector']=_0x243aa1,this[_0x2db6d7(0x2b5)]=_0xf5a176,this[_0x2db6d7(0x282)]=_0x8d15df;}[_0x182123(0x3ab)](_0xbf0d09){const _0x56cdee=_0x182123;var _0x585df7,_0x5f0cbd,_0x206295,_0x36bea5;const _0x1ef6d1=this['_injector'][_0x56cdee(0x53b)](_0x4f46f0[_0x56cdee(0x417)]),{unitId:_0x4053ab,subUnitId:_0x134501}=_0x56a38a(_0xbf0d09),_0x3a87f3=_0x1ef6d1[_0x56cdee(0x535)](_0x4053ab)[_0x56cdee(0x110)](),_0x30210f=(_0x5f0cbd=(_0x585df7=this[_0x56cdee(0x282)][_0x56cdee(0x1da)](_0x4053ab))==null?void 0x0:_0x585df7['getActiveSheet']())==null?void 0x0:_0x5f0cbd[_0x56cdee(0x1a4)]();if(_0x3a87f3[_0x56cdee(0x4c3)]===0x0||!_0x4053ab||!_0x134501)return;const _0x8952aa=[{'id':_0x4f46f0['SetSelectionsOperation']['id'],'params':{'unitId':_0x4053ab,'subUnitId':_0x30210f,'selections':_0x3223aa[_0x56cdee(0x357)]['deepClone'](_0x3a87f3)}}],_0x25319e=this['_transformService'][_0x56cdee(0x419)](_0xbf0d09,_0x8952aa);if(!_0x502235['isTransformMutationsWithChangesetSuccess'](_0x25319e))throw _0x25319e['error'];const _0x2d2d7d=(_0x36bea5=(_0x206295=_0x25319e[_0x56cdee(0x35b)][0x0])==null?void 0x0:_0x206295[_0x56cdee(0x4b1)])==null?void 0x0:_0x36bea5['selections'];if(Array['isArray'](_0x2d2d7d)&&_0x2d2d7d['length']){if(_0x2d2d7d[_0x56cdee(0x4c3)]===_0x8952aa[0x0][_0x56cdee(0x4b1)][_0x56cdee(0x31a)][_0x56cdee(0x4c3)]&&_0x2d2d7d['every']((_0x2904ad,_0x2e574d)=>_0x3223aa[_0x56cdee(0x1a0)][_0x56cdee(0x344)](_0x2904ad[_0x56cdee(0x2a1)],_0x8952aa[0x0]['params'][_0x56cdee(0x31a)][_0x2e574d][_0x56cdee(0x2a1)])))return;this[_0x56cdee(0x526)][_0x56cdee(0x53b)](_0x3223aa[_0x56cdee(0x23b)])[_0x56cdee(0x3c8)](_0x4f46f0['SetSelectionsOperation']['id'],{'unitId':_0x4053ab,'subUnitId':_0x30210f,'selections':_0x2d2d7d});}}};_0x38921c=_0x2748ee([_0x80f75a(0x0,_0x3223aa['Inject'](_0x3223aa[_0x182123(0x14a)])),_0x80f75a(0x1,_0x502235['ITransformService']),_0x80f75a(0x2,_0x3223aa[_0x182123(0x247)])],_0x38921c);const _0x49a942=_0x3223aa['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var _0x10b66f=(_0x59d38d=>(_0x59d38d[_0x59d38d[_0x182123(0x2ab)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x59d38d[_0x59d38d['OTHER_CLIENTS_EDITING']=0x1]=_0x182123(0x2e4),_0x59d38d))(_0x10b66f||{});const _0x5e694=0x7530,_0x2f8e31=_0x182123(0x36d);class _0x5e3f39 extends _0x3223aa[_0x182123(0x502)]{constructor(){const _0x1a32dd=_0x182123;super(),_0x571923(this,_0x1a32dd(0x1fd),_0x3223aa[_0x1a32dd(0x357)][_0x1a32dd(0x492)]()),_0x571923(this,_0x1a32dd(0x333),new Set()),_0x571923(this,_0x1a32dd(0x335),new Map()),_0x571923(this,'_heartbeatTimer',null),_0x571923(this,_0x1a32dd(0x49a),new Map()),_0x571923(this,_0x1a32dd(0x24f),new Map()),this[_0x1a32dd(0x450)]();}[_0x182123(0x2cf)](){const _0x1cd26c=_0x182123;super[_0x1cd26c(0x2cf)](),this[_0x1cd26c(0x49a)][_0x1cd26c(0x19f)]((_0x433353,_0x3a4950)=>this[_0x1cd26c(0x406)](_0x3a4950)),this['_heartbeatTimer']&&window[_0x1cd26c(0x25c)](this['_heartbeatTimer']);}[_0x182123(0x16f)](_0x343531){const _0x3bf87e=_0x182123;return this['_ensureSubject'](_0x343531)[_0x3bf87e(0x493)](_0x41acaa['distinctUntilChanged']());}[_0x182123(0x366)](_0x41398f){const _0x39559c=_0x182123;this[_0x39559c(0x333)][_0x39559c(0x1b9)]===0x0&&this[_0x39559c(0x428)](),this[_0x39559c(0x333)][_0x39559c(0x460)](_0x41398f),this[_0x39559c(0x15c)]({'type':0x0,'memberID':this[_0x39559c(0x1fd)],'unitIDs':[_0x41398f],'isForwarded':!0x1});}[_0x182123(0x236)](_0x4539ef){const _0x407641=_0x182123;this[_0x407641(0x333)][_0x407641(0x4e1)](_0x4539ef),this['_selfUnitIDs'][_0x407641(0x1b9)]===0x0&&this[_0x407641(0x15a)]&&window[_0x407641(0x25c)](this[_0x407641(0x15a)]);}[_0x182123(0x450)](){const _0x10e7c5=_0x182123;this[_0x10e7c5(0x2c6)](_0x3223aa[_0x10e7c5(0x1ed)](_0x41acaa[_0x10e7c5(0x289)](window,'storage')['subscribe'](_0x26b158=>{const _0xba1b2=_0x10e7c5;if(_0x26b158['key']!==_0x2f8e31||!_0x26b158[_0xba1b2(0x524)])return;const _0xf86bb9=JSON[_0xba1b2(0x3f5)](_0x26b158[_0xba1b2(0x524)]);this[_0xba1b2(0x542)](_0xf86bb9);}))),window[_0x10e7c5(0x2dd)](_0x10e7c5(0x4df),()=>this['_send']({'type':0x1,'memberID':this[_0x10e7c5(0x1fd)],'unitIDs':Array[_0x10e7c5(0x2d3)](this[_0x10e7c5(0x333)])}));}[_0x182123(0x542)](_0x46d756){const _0x43b1c3=_0x182123;switch(_0x46d756[_0x43b1c3(0x45b)]){case 0x0:this['_handleJoinEvent'](_0x46d756);break;case 0x1:this[_0x43b1c3(0x440)](_0x46d756);break;case 0x2:this['_handleHeartbeatEvent'](_0x46d756);break;}}[_0x182123(0x19d)](_0x5c03a4){const _0x487d7b=_0x182123,{unitIDs:_0x5b2e50,memberID:_0x25d542,isForwarded:_0x61b04b}=_0x5c03a4;_0x5b2e50[_0x487d7b(0x19f)](_0x5d4bb9=>{const _0x57b9a4=_0x487d7b;if(!_0x61b04b&&this['_unitOnClients']['has'](_0x5d4bb9)&&this[_0x57b9a4(0x3b3)](_0x5d4bb9)['next'](0x1),!this[_0x57b9a4(0x335)]['has'](_0x5d4bb9)||!this[_0x57b9a4(0x335)][_0x57b9a4(0x53b)](_0x5d4bb9)[_0x57b9a4(0x39c)](_0x25d542)){const _0x19c331=this['_unitOnClients']['get'](_0x5d4bb9)||new Set();_0x19c331[_0x57b9a4(0x460)](_0x25d542),this[_0x57b9a4(0x335)][_0x57b9a4(0x132)](_0x5d4bb9,_0x19c331),this['_scheduleClearOtherTimer'](_0x25d542);}}),_0x61b04b||this[_0x487d7b(0x15c)]({'type':0x0,'memberID':this[_0x487d7b(0x1fd)],'unitIDs':[...this[_0x487d7b(0x333)]],'isForwarded':!0x0});}[_0x182123(0x3ef)](_0x521a03){const _0x52cb3f=_0x182123;this[_0x52cb3f(0x406)](_0x521a03);const _0x5c9f78=window[_0x52cb3f(0x114)](()=>{const _0x24bb81=_0x52cb3f;this[_0x24bb81(0x335)][_0x24bb81(0x19f)](_0x10a0bb=>{const _0x514ab0=_0x24bb81;_0x10a0bb[_0x514ab0(0x4e1)](_0x521a03);});},_0x5e694*0x2);this[_0x52cb3f(0x49a)][_0x52cb3f(0x132)](_0x521a03,_0x5c9f78);}[_0x182123(0x406)](_0x3769e1){const _0x1a8d32=_0x182123;if(this['_clearOtherTimers']['has'](_0x3769e1)){const _0x2fe493=this[_0x1a8d32(0x49a)][_0x1a8d32(0x53b)](_0x3769e1);_0x2fe493&&window[_0x1a8d32(0x12c)](_0x2fe493),this['_clearOtherTimers'][_0x1a8d32(0x132)](_0x3769e1,null);}}[_0x182123(0x440)](_0x102eea){const _0x25637d=_0x182123,{memberID:_0x324444,unitIDs:_0x10d673}=_0x102eea;_0x10d673['forEach'](_0x457f2c=>{const _0x22e0fc=_0x2e84;var _0x4bfc85;const _0x2578a8=this[_0x22e0fc(0x335)]['get'](_0x457f2c);_0x2578a8&&(_0x2578a8[_0x22e0fc(0x4e1)](_0x324444),(_0x4bfc85=this[_0x22e0fc(0x3b3)](_0x457f2c))==null||_0x4bfc85[_0x22e0fc(0x2e5)](_0x2578a8['size']===0x0?0x0:0x1));}),this[_0x25637d(0x406)](_0x324444);}[_0x182123(0x291)](_0x336d2f){const _0x222a13=_0x182123;this[_0x222a13(0x3ef)](_0x336d2f[_0x222a13(0x143)]);}['_send'](_0x28b318){const _0x5c4e3d=_0x182123;localStorage[_0x5c4e3d(0x43e)](_0x2f8e31,JSON[_0x5c4e3d(0x17d)](_0x28b318));}['_scheduleHeartbeat'](){const _0x728e70=_0x182123;this[_0x728e70(0x15a)]=window[_0x728e70(0x489)](()=>{const _0x493fd3=_0x728e70;this[_0x493fd3(0x15c)]({'type':0x2,'memberID':this[_0x493fd3(0x1fd)]});},_0x5e694);}[_0x182123(0x3b3)](_0x35e7ed){const _0x5b05b8=_0x182123;return this[_0x5b05b8(0x24f)]['has'](_0x35e7ed)||this['_unitStatus'][_0x5b05b8(0x132)](_0x35e7ed,new _0x41acaa['BehaviorSubject'](0x0)),this[_0x5b05b8(0x24f)][_0x5b05b8(0x53b)](_0x35e7ed);}}function _0x3f97d6(_0x453f07){const _0x5325e8=_0x182123;let _0x53f9d0='';for(const _0x57c05c of _0x453f07){const {startOffset:_0x26bb5b,endOffset:_0x20a990,isActive:_0x55a672,rangeType:_0x80c497,segmentId:_0x2070ca,segmentPage:_0x4c2583}=_0x57c05c;_0x53f9d0[_0x5325e8(0x4c3)]&&(_0x53f9d0+=','),_0x53f9d0+=_0x26bb5b+':'+_0x20a990+':'+(_0x55a672?'1':'0')+':'+_0x80c497+':'+_0x2070ca+':'+_0x4c2583;}return _0x53f9d0;}function _0x50953f(_0x97c81e){const _0x69bddc=_0x182123,_0x3b7a8e=_0x97c81e[_0x69bddc(0x29d)](','),_0x581c21=[];for(const _0xeed28b of _0x3b7a8e){const [_0x538e41,_0x2f5773,_0x58bac0,_0x2ac9f,_0x4f34d5,_0x2fd1c7]=_0xeed28b['split'](':');_0x581c21[_0x69bddc(0x2fb)]({'startOffset':Number(_0x538e41),'endOffset':Number(_0x2f5773),'collapsed':_0x538e41===_0x2f5773,'isActive':_0x58bac0==='1','rangeType':_0x2ac9f===_0x3223aa[_0x69bddc(0x118)][_0x69bddc(0x28c)]?_0x3223aa[_0x69bddc(0x118)][_0x69bddc(0x28c)]:_0x3223aa[_0x69bddc(0x118)][_0x69bddc(0x1e5)],'segmentId':typeof _0x4f34d5=='string'?String(_0x4f34d5):'','segmentPage':Number(_0x2fd1c7!=null?_0x2fd1c7:-0x1)});}return _0x581c21[_0x69bddc(0x299)](_0x125cde=>_0x125cde[_0x69bddc(0x40c)])||(_0x581c21[0x0][_0x69bddc(0x40c)]=!0x0),_0x581c21;}class _0x729593 extends _0x3223aa[_0x182123(0x4a9)]{constructor(){const _0x143e4b=_0x182123;super(...arguments),_0x571923(this,_0x143e4b(0x306),new _0x41acaa[(_0x143e4b(0x30c))](null)),_0x571923(this,_0x143e4b(0x224),this['_collabCursorState$'][_0x143e4b(0x28d)]());}['syncEditingCollabCursor'](_0x435ce7){const _0x19952f=_0x182123,{unitID:_0xd307d4,memberID:_0x53dc5d,textRanges:_0x2dadc6}=_0x435ce7,_0x539fe6=_0x3f97d6(_0x2dadc6);if(_0x539fe6==='')return;const _0xe99946={'unitID':_0xd307d4,'memberID':_0x53dc5d,'selection':_0x539fe6};this[_0x19952f(0x306)][_0x19952f(0x2e5)](_0xe99946);}}var _0x481209=Object[_0x182123(0x33a)],_0x323727=Object[_0x182123(0x363)],_0x57c6b6=(_0x2fc8ac,_0x343b0f,_0x5b1191,_0x17c072)=>{const _0x37cabf=_0x182123;for(var _0x4bf2cf=_0x17c072>0x1?void 0x0:_0x17c072?_0x323727(_0x343b0f,_0x5b1191):_0x343b0f,_0x517ab2=_0x2fc8ac[_0x37cabf(0x4c3)]-0x1,_0x1488a0;_0x517ab2>=0x0;_0x517ab2--)(_0x1488a0=_0x2fc8ac[_0x517ab2])&&(_0x4bf2cf=(_0x17c072?_0x1488a0(_0x343b0f,_0x5b1191,_0x4bf2cf):_0x1488a0(_0x4bf2cf))||_0x4bf2cf);return _0x17c072&&_0x4bf2cf&&_0x481209(_0x343b0f,_0x5b1191,_0x4bf2cf),_0x4bf2cf;},_0x420ea3=(_0x5af437,_0x16d921)=>(_0x20596e,_0xe6f5c8)=>_0x16d921(_0x20596e,_0xe6f5c8,_0x5af437);let _0x427d95=class{constructor(_0x260e1e,_0x1315b4){const _0x5e64a4=_0x182123;this['_injector']=_0x260e1e,this[_0x5e64a4(0x2b5)]=_0x1315b4;}['transformSelections'](_0x228802){const _0x189fa7=_0x182123;var _0x203683;const _0x59a93a=this['_injector'][_0x189fa7(0x53b)](_0xba5a96[_0x189fa7(0x37c)]),_0x3a5168=(_0x203683=_0x59a93a[_0x189fa7(0x16b)]())!=null?_0x203683:[];if(_0x3a5168[_0x189fa7(0x4c3)]===0x0)return;const _0x379af4=[{'id':_0x189fa7(0x459),'params':{'unitId':_0x228802[_0x189fa7(0x250)],'actions':null,'textRanges':_0x3a5168}}],_0x25ff24=this[_0x189fa7(0x2b5)][_0x189fa7(0x419)](_0x228802,_0x379af4);if(!_0x502235[_0x189fa7(0x50c)](_0x25ff24))throw _0x25ff24['error'];const _0xd6a626=_0x25ff24[_0x189fa7(0x35b)][0x0][_0x189fa7(0x4b1)][_0x189fa7(0x200)];Array[_0x189fa7(0x390)](_0xd6a626)&&_0xd6a626[_0x189fa7(0x4c3)]&&_0x59a93a[_0x189fa7(0x156)](_0xd6a626,!0x1);}};_0x427d95=_0x57c6b6([_0x420ea3(0x0,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x420ea3(0x1,_0x502235[_0x182123(0x437)])],_0x427d95);const _0x52bc54=new Set([_0x4f46f0['InsertSheetMutation']['id']]);function _0xf32e12(_0x5cd5ce,_0x5bc6de,_0x70b94f,_0x4ebf2d,_0x3eeed9){const _0x1ee050=_0x182123;var _0x58736d,_0x55e41f,_0x28bac9,_0x5171fb;const _0x179e7a=[];for(const _0x4e204b of _0x5cd5ce)if(_0x52bc54[_0x1ee050(0x39c)](_0x4e204b['id'])){if(_0x179e7a[_0x1ee050(0x4c3)]>0x0)break;_0x179e7a['push'](_0x4e204b);break;}else _0x179e7a[_0x1ee050(0x2fb)](_0x4e204b);const _0x3820fc=(_0x55e41f=(_0x58736d=_0x3eeed9[_0x1ee050(0x1ea)]())==null?void 0x0:_0x58736d[_0x1ee050(0x40d)])!=null?_0x55e41f:_0x1ee050(0x412),_0x51eb0b=(_0x5171fb=(_0x28bac9=_0x3eeed9[_0x1ee050(0x1ea)]())==null?void 0x0:_0x28bac9[_0x1ee050(0x143)])!=null?_0x5171fb:_0x1ee050(0x412);return{'changeset':{'unitID':_0x5bc6de,'type':_0x502235['mapDocumentTypeToUniverType'](_0x70b94f['getUnitType'](_0x5bc6de)),'baseRev':_0x4ebf2d['getCurrentRevOfUnit'](_0x5bc6de),'revision':0x0,'userID':_0x3820fc,'memberID':_0x51eb0b,'mutations':_0x179e7a},'pendingMutations':_0x5cd5ce[_0x1ee050(0x3d9)](_0x179e7a[_0x1ee050(0x4c3)])};}function _0x55afc1(_0x23c7e6,_0x4c187c,_0x9cb60e,_0x2ce35e,_0x5cf5d0){const _0x49f362=_0x182123;var _0x2ece65,_0x3640ee,_0x13dc11,_0x28966d;const _0x29ece8=[_0x23c7e6['reduce']((_0xae9ddd,_0x3eb3da)=>{const _0x310d0e=_0x2e84;var _0xfe124e;const {id:_0x44e71a}=_0xae9ddd,{id:_0x20c9f1,type:_0x3b0de0}=_0x3eb3da,_0x168206=(_0xfe124e=_0xae9ddd[_0x310d0e(0x4b1)])!=null?_0xfe124e:{'actions':null},_0x532a72=_0x3eb3da['params'];if(_0x44e71a&&_0x44e71a!==_0x20c9f1)throw new Error(_0x310d0e(0x25b)+_0x44e71a+'\x20-\x20'+_0x20c9f1+'.');return{..._0xae9ddd,'id':_0x20c9f1,'type':_0x3b0de0,'params':{'unitId':_0x532a72['unitId'],'textRanges':_0x532a72[_0x310d0e(0x200)],'actions':_0x3223aa['JSONX'][_0x310d0e(0x3ed)](_0x168206[_0x310d0e(0x3d3)],_0x532a72[_0x310d0e(0x3d3)])}};},{})],_0x23b9f2=(_0x3640ee=(_0x2ece65=_0x5cf5d0[_0x49f362(0x1ea)]())==null?void 0x0:_0x2ece65['userID'])!=null?_0x3640ee:_0x49f362(0x412),_0x31f3c3=(_0x28966d=(_0x13dc11=_0x5cf5d0[_0x49f362(0x1ea)]())==null?void 0x0:_0x13dc11[_0x49f362(0x143)])!=null?_0x28966d:_0x49f362(0x412);return{'changeset':{'unitID':_0x4c187c,'type':_0x502235[_0x49f362(0x2bc)](_0x9cb60e[_0x49f362(0x391)](_0x4c187c)),'baseRev':_0x2ce35e[_0x49f362(0x523)](_0x4c187c),'revision':0x0,'userID':_0x23b9f2,'memberID':_0x31f3c3,'mutations':_0x29ece8},'pendingMutations':[]};}function _0x2a7aaf(_0x5d3fda,_0x128ec5){const _0x24c66d=_0x182123,_0x4b7986=new _0x41acaa[(_0x24c66d(0x1af))](0x1);return setTimeout(()=>_0x4b7986[_0x24c66d(0x2e5)](_0x128ec5),_0x5d3fda),_0x4b7986[_0x24c66d(0x28d)]()[_0x24c66d(0x493)](_0x41acaa[_0x24c66d(0x12d)](0x1));}const _0x13fae9={'id':_0x4f46f0[_0x182123(0x2bf)]['id'],'type':_0x3223aa[_0x182123(0x3b7)][_0x182123(0x402)],'params':{}};var _0x150d16=Object[_0x182123(0x33a)],_0x236e1d=Object[_0x182123(0x363)],_0x1554a8=(_0x2f27af,_0xd76bc6,_0x159f6a,_0x57e92b)=>{const _0x3de4f7=_0x182123;for(var _0x3162c3=_0x57e92b>0x1?void 0x0:_0x57e92b?_0x236e1d(_0xd76bc6,_0x159f6a):_0xd76bc6,_0xd89335=_0x2f27af[_0x3de4f7(0x4c3)]-0x1,_0x20bb1b;_0xd89335>=0x0;_0xd89335--)(_0x20bb1b=_0x2f27af[_0xd89335])&&(_0x3162c3=(_0x57e92b?_0x20bb1b(_0xd76bc6,_0x159f6a,_0x3162c3):_0x20bb1b(_0x3162c3))||_0x3162c3);return _0x57e92b&&_0x3162c3&&_0x150d16(_0xd76bc6,_0x159f6a,_0x3162c3),_0x3162c3;},_0x21c084=(_0x36dc13,_0x3d3312)=>(_0x483551,_0x593b9b)=>_0x3d3312(_0x483551,_0x593b9b,_0x36dc13),_0x12b363=(_0x567518=>(_0x567518[_0x182123(0x3cd)]=_0x182123(0x4dd),_0x567518[_0x182123(0x1b7)]=_0x182123(0x13c),_0x567518[_0x182123(0x2cc)]=_0x182123(0x16d),_0x567518[_0x182123(0x17c)]='awaiting',_0x567518[_0x182123(0x4c6)]=_0x182123(0x3d2),_0x567518['FETCH_MISS']=_0x182123(0x34d),_0x567518['CONFLICT']=_0x182123(0x315),_0x567518[_0x182123(0x113)]=_0x182123(0x2e7),_0x567518))(_0x12b363||{});const _0x130aab=0xea60;class _0x1396d0{constructor(_0x543fb4,_0x3fd47f,_0x135e05,_0x20352f,_0x1af01d,_0x5375a8,_0x1b54a0,_0xaceb41,_0x578235){const _0x5e0a6e=_0x182123;_0x571923(this,_0x5e0a6e(0x347),null),_0x571923(this,'_pendingMutations',[]),(this[_0x5e0a6e(0x250)]=_0x543fb4,this[_0x5e0a6e(0x45b)]=_0x3fd47f,this[_0x5e0a6e(0x3da)]=_0x1af01d,this['_commandService']=_0x5375a8,this[_0x5e0a6e(0x3e7)]=_0x1b54a0,this[_0x5e0a6e(0x416)]=_0xaceb41,this[_0x5e0a6e(0x44c)]=_0x578235,this['_awaitingChangeset']=_0x135e05,this[_0x5e0a6e(0x540)]=_0x20352f);}[_0x182123(0x188)](_0x36ed9f){const _0x2e8371=_0x182123,_0x1fc845=this[_0x2e8371(0x416)][_0x2e8371(0x523)](this['unitID']);return _0x36ed9f[_0x2e8371(0x3f0)]>_0x1fc845+0x1?(this['_handler'][_0x2e8371(0x14b)]({'from':_0x1fc845,'to':_0x36ed9f[_0x2e8371(0x3f0)]-0x1}),!0x0):!0x1;}[_0x182123(0x3ec)](_0x4de3ed){const _0x553cf9=_0x182123;this[_0x553cf9(0x3e7)][_0x553cf9(0x507)](this[_0x553cf9(0x250)],_0x4de3ed);}[_0x182123(0x1ca)](_0x5170b4){const _0x542fdb=_0x182123;var _0x4dfd2a,_0x3419de;(_0x3419de=(_0x4dfd2a=this['_handler'])[_0x542fdb(0x227)])==null||_0x3419de[_0x542fdb(0x155)](_0x4dfd2a,_0x5170b4);}[_0x182123(0x1ef)](_0x34423b){const _0x3bc2be=_0x182123;var _0x5c22bb,_0x54192d;return(_0x54192d=(_0x5c22bb=this[_0x3bc2be(0x3da)])[_0x3bc2be(0x259)])==null?void 0x0:_0x54192d[_0x3bc2be(0x155)](_0x5c22bb,_0x34423b);}['_transformRemoteChangesetByIMECache'](_0x3b3f79){const _0x4382dd=_0x182123;var _0x3e57a8,_0x1e98ee,_0x8c847d;return(_0x8c847d=(_0x1e98ee=(_0x3e57a8=this[_0x4382dd(0x3da)])[_0x4382dd(0x436)])==null?void 0x0:_0x1e98ee[_0x4382dd(0x155)](_0x3e57a8,_0x3b3f79))!=null?_0x8c847d:_0x3b3f79;}[_0x182123(0x271)](_0xd0e5f7){const _0x2bbdc9=_0x182123;var _0x481097,_0x1f308d;if(this[_0x2bbdc9(0x45b)]===_0x33d988[_0x2bbdc9(0x1c3)]){const {unitID:_0x345163,mutations:_0x4b5f3d,memberID:_0x1db184}=_0xd0e5f7,_0x281219=_0x4b5f3d[0x0][_0x2bbdc9(0x4b1)]['textRanges'];Array[_0x2bbdc9(0x390)](_0x281219)&&_0x281219[_0x2bbdc9(0x4c3)]>0x0&&((_0x1f308d=(_0x481097=this[_0x2bbdc9(0x3da)])['onSyncEditingCollabCursor'])==null||_0x1f308d[_0x2bbdc9(0x155)](_0x481097,{'unitID':_0x345163,'memberID':_0x1db184,'textRanges':_0x281219}));}}[_0x182123(0x2ee)](){const _0x31b9eb=_0x182123;this[_0x31b9eb(0x44c)][_0x31b9eb(0x534)](this[_0x31b9eb(0x250)],this[_0x31b9eb(0x45b)],this[_0x31b9eb(0x347)],this[_0x31b9eb(0x540)]);}[_0x182123(0x2cb)](){const _0x1e396c=_0x182123;return this[_0x1e396c(0x416)][_0x1e396c(0x523)](this['unitID']);}['_incrementRevisionNumber'](){const _0x2ff21f=_0x182123;this[_0x2ff21f(0x416)][_0x2ff21f(0x3b5)](this['unitID']);}[_0x182123(0x186)](_0x50419a){const _0x54079b=_0x182123;var _0x18a042;const _0x4e4947=this[_0x54079b(0x300)](_0x50419a),_0x32e57c=_0x3223aa[_0x54079b(0x458)](_0x4e4947[_0x54079b(0x1d7)],this[_0x54079b(0x198)],{'fromCollab':!0x0});if(!_0x32e57c[_0x54079b(0x1e1)])throw _0x32e57c['error']instanceof Error?_0x32e57c[_0x54079b(0x1b1)]:new Error((_0x18a042=_0x32e57c[_0x54079b(0x1b1)])!=null?_0x18a042:'[CollaborationState]:\x20apply\x20error!');this[_0x54079b(0x1ef)](_0x4e4947),this[_0x54079b(0x3ec)](_0x50419a),this['_transformSelections'](_0x4e4947),this[_0x54079b(0x271)](_0x4e4947),this[_0x54079b(0x4fc)]();}}let _0x1aa61f=class extends _0x1396d0{constructor(_0x17d468,_0x474f84,_0x1f7ef3,_0xc50144,_0x31bb0b,_0x11f791,_0x58e14a,_0xf5988a,_0xd22566,_0x4788c9){const _0x182a88=_0x182123;super(_0x17d468,_0x474f84,null,[],_0x1f7ef3,_0xf5988a,_0x58e14a,_0xc50144,_0x31bb0b),_0x571923(this,'status',_0x182a88(0x13c)),(this[_0x182a88(0x526)]=_0x11f791,this[_0x182a88(0x397)]=_0xd22566,this[_0x182a88(0x2b5)]=_0x4788c9);}[_0x182123(0x31c)](_0x5d4c17){const _0x49af97=_0x182123,_0x1fc00a=this['_injector'][_0x49af97(0x336)](_0x102544,this[_0x49af97(0x250)],this['type'],[_0x5d4c17],this['_handler']);return _0x1fc00a['_schedule'](),_0x1fc00a['_updateLocalCache'](),_0x1fc00a;}['onRemoteChangeset'](_0x156dc7){const _0xe612a8=_0x182123;if(this[_0xe612a8(0x188)](_0x156dc7))return this[_0xe612a8(0x526)][_0xe612a8(0x336)](_0x395c69,this[_0xe612a8(0x250)],this[_0xe612a8(0x45b)],null,[],null,[_0x156dc7],this[_0xe612a8(0x3da)]);try{const _0x2e4a9b=this[_0xe612a8(0x2b5)][_0xe612a8(0x419)](_0x156dc7,[_0x13fae9]);if(_0x502235['isTransformMutationsWithChangesetSuccess'](_0x2e4a9b)){const {c1Prime:_0x3c2275}=_0x2e4a9b;return this[_0xe612a8(0x186)](_0x3c2275),this;}throw _0x2e4a9b['error'];}catch(_0x402ce7){return this[_0xe612a8(0x397)][_0xe612a8(0x1b1)](_0x402ce7),this[_0xe612a8(0x548)](!0x1);}}[_0x182123(0x548)](_0x15570d){const _0x280b84=_0x182123;return this[_0x280b84(0x526)]['createInstance'](_0x4bc3b9,this['unitID'],this[_0x280b84(0x45b)],null,[],this[_0x280b84(0x3da)],_0x15570d);}[_0x182123(0x248)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x182123(0x27b)](){const _0x352635=_0x182123;throw new Error(_0x352635(0x20a));}[_0x182123(0x1e4)](){return this;}[_0x182123(0x380)](){const _0xb9f59c=_0x182123;return this[_0xb9f59c(0x526)][_0xb9f59c(0x336)](_0x2db763,this[_0xb9f59c(0x250)],this[_0xb9f59c(0x45b)],null,[],this[_0xb9f59c(0x3da)]);}[_0x182123(0x1cc)](){return this;}['resend'](){const _0x3a3dc7=_0x182123;throw new Error(_0x3a3dc7(0x258));}['fetchMiss'](){const _0x243f60=_0x182123,_0x2e9e31=this[_0x243f60(0x416)][_0x243f60(0x523)](this[_0x243f60(0x250)]);return this[_0x243f60(0x3da)]['onMissingChangesets']({'from':_0x2e9e31,'to':0x0}),this['_injector']['createInstance'](_0x395c69,this['unitID'],this['type'],null,[],null,[],this[_0x243f60(0x3da)]);}};_0x1aa61f=_0x1554a8([_0x21c084(0x3,_0x3223aa['Inject'](_0x502235[_0x182123(0x4f6)])),_0x21c084(0x4,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x199)])),_0x21c084(0x5,_0x3223aa[_0x182123(0x40e)](_0x3223aa['Injector'])),_0x21c084(0x6,_0x3223aa['IUndoRedoService']),_0x21c084(0x7,_0x3223aa[_0x182123(0x23b)]),_0x21c084(0x8,_0x3223aa[_0x182123(0x3bf)]),_0x21c084(0x9,_0x502235[_0x182123(0x437)])],_0x1aa61f);let _0x102544=class extends _0x1396d0{constructor(_0x3ce64c,_0x5b4edf,_0x2faec4,_0x308410,_0x41cd97,_0x2735aa,_0x268d21,_0x380c85,_0x5b66e0,_0x540f44,_0x10d21c,_0x521afe,_0x534e58,_0x43ade8){const _0x476d0f=_0x182123;super(_0x3ce64c,_0x5b4edf,null,_0x2faec4,_0x308410,_0x540f44,_0x43ade8,_0x2735aa,_0x268d21),_0x571923(this,_0x476d0f(0x1e2),'pending'),_0x571923(this,_0x476d0f(0x17e),null),_0x571923(this,_0x476d0f(0x4d8),null),(this[_0x476d0f(0x526)]=_0x41cd97,this['_memberService']=_0x380c85,this[_0x476d0f(0x397)]=_0x5b66e0,this['_configService']=_0x10d21c,this[_0x476d0f(0x2b5)]=_0x521afe,this[_0x476d0f(0x348)]=_0x534e58);}[_0x182123(0x31c)](_0x39cbfa){const _0x16914c=_0x182123;return this[_0x16914c(0x540)][_0x16914c(0x2fb)](_0x39cbfa),this['_updateLocalCache'](),this;}[_0x182123(0x174)](_0x1c17bb){const _0x115a33=_0x182123;if(this[_0x115a33(0x188)](_0x1c17bb))return this[_0x115a33(0x4fa)](),this[_0x115a33(0x526)][_0x115a33(0x336)](_0x395c69,this[_0x115a33(0x250)],this[_0x115a33(0x45b)],null,this[_0x115a33(0x540)],null,[_0x1c17bb],this[_0x115a33(0x3da)]);try{const _0x347d1f=this[_0x115a33(0x2b5)][_0x115a33(0x419)](_0x1c17bb,this['_pendingMutations']);if(_0x502235[_0x115a33(0x50c)](_0x347d1f)){const {c1Prime:_0x332493,m2Prime:_0x3f5177}=_0x347d1f;this[_0x115a33(0x186)](_0x332493);const _0x2b43c6=this['_injector']['createInstance'](_0x102544,this[_0x115a33(0x250)],this[_0x115a33(0x45b)],_0x3f5177,this[_0x115a33(0x3da)]);return this[_0x115a33(0x4fa)](),_0x2b43c6['_schedule'](this[_0x115a33(0x17e)]?Math[_0x115a33(0x204)](0x0,new Date()[_0x115a33(0x1d0)]()-this[_0x115a33(0x17e)]):this['_getSendChangesetTimeout']()),_0x2b43c6;}throw _0x347d1f[_0x115a33(0x1b1)];}catch(_0x421f10){return this[_0x115a33(0x397)][_0x115a33(0x1b1)](_0x421f10),this[_0x115a33(0x548)](!0x1);}}[_0x182123(0x248)](){const _0x819d4b=_0x182123;throw new Error(_0x819d4b(0x453));}[_0x182123(0x27b)](){const _0x242aa8=_0x182123;throw new Error(_0x242aa8(0x399));}[_0x182123(0x1e4)](){return this;}[_0x182123(0x380)](){const _0x3deaed=_0x182123;return this[_0x3deaed(0x4fa)](),this[_0x3deaed(0x526)]['createInstance'](_0x2db763,this[_0x3deaed(0x250)],this[_0x3deaed(0x45b)],null,this[_0x3deaed(0x540)],this[_0x3deaed(0x3da)]);}[_0x182123(0x1cc)](){return this;}[_0x182123(0x3df)](_0x250a44){const _0x90aa16=_0x182123,_0x4102fb=_0x250a44!=null?_0x250a44:this[_0x90aa16(0x1c1)]();this[_0x90aa16(0x17e)]=new Date()['getTime'](),this[_0x90aa16(0x4d8)]=window['setTimeout'](()=>{const _0x58552c=_0x90aa16;this['_clearScheduledTask']();let _0x4d620b=null;switch(this[_0x58552c(0x45b)]){case _0x33d988[_0x58552c(0x2d4)]:{_0x4d620b=_0xf32e12(this[_0x58552c(0x540)],this['unitID'],this[_0x58552c(0x348)],this[_0x58552c(0x416)],this[_0x58552c(0x168)]);break;}case _0x33d988[_0x58552c(0x1c3)]:{this[_0x58552c(0x540)][_0x58552c(0x27e)](_0x3f28e6=>_0x3f28e6['id']===_0xba5a96['RichTextEditingMutation']['id'])?_0x4d620b=_0x55afc1(this[_0x58552c(0x540)],this[_0x58552c(0x250)],this[_0x58552c(0x348)],this[_0x58552c(0x416)],this['_memberService']):_0x4d620b=_0xf32e12(this['_pendingMutations'],this[_0x58552c(0x250)],this['_univerInstanceService'],this['_revisionService'],this[_0x58552c(0x168)]);break;}default:throw new Error(_0x58552c(0x4c2)+this[_0x58552c(0x45b)]+'\x20in\x20_schedule.');}const {changeset:_0x23e99b,pendingMutations:_0x5939b1}=_0x4d620b;this[_0x58552c(0x3da)][_0x58552c(0x145)](_0x23e99b);const _0x4097cb=_0x5939b1[_0x58552c(0x4c3)]?this[_0x58552c(0x526)][_0x58552c(0x336)](_0x25aaf0,this[_0x58552c(0x250)],this[_0x58552c(0x45b)],_0x23e99b,_0x5939b1,this['_handler'],void 0x0):this[_0x58552c(0x526)][_0x58552c(0x336)](_0x2f78ca,this[_0x58552c(0x250)],this[_0x58552c(0x45b)],_0x23e99b,this[_0x58552c(0x3da)]);_0x4097cb[_0x58552c(0x2ee)](),this[_0x58552c(0x3da)][_0x58552c(0x26f)](this,_0x4097cb);},_0x4102fb);}[_0x182123(0x1c1)](){const _0x52c3c5=_0x182123;var _0x5434e7;const _0x5cf856=this[_0x52c3c5(0x404)][_0x52c3c5(0x422)](_0x183913);return(_0x5434e7=_0x5cf856==null?void 0x0:_0x5cf856[_0x52c3c5(0x1b3)])!=null?_0x5434e7:0x7d0;}['resend'](){const _0x3ef4c5=_0x182123;throw new Error(_0x3ef4c5(0x487));}[_0x182123(0x4fa)](){const _0x5f52b9=_0x182123;this[_0x5f52b9(0x4d8)]!=null&&(clearTimeout(this[_0x5f52b9(0x4d8)]),this[_0x5f52b9(0x4d8)]=null);}[_0x182123(0x548)](_0x5da786){const _0x5bcb09=_0x182123;return this[_0x5bcb09(0x4fa)](),this[_0x5bcb09(0x526)][_0x5bcb09(0x336)](_0x4bc3b9,this[_0x5bcb09(0x250)],this[_0x5bcb09(0x45b)],null,this[_0x5bcb09(0x540)],this[_0x5bcb09(0x3da)],_0x5da786);}};_0x102544=_0x1554a8([_0x21c084(0x4,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x21c084(0x5,_0x3223aa['Inject'](_0x502235['RevisionService'])),_0x21c084(0x6,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x199)])),_0x21c084(0x7,_0x3223aa[_0x182123(0x40e)](_0x842f02)),_0x21c084(0x8,_0x3223aa[_0x182123(0x3bf)]),_0x21c084(0x9,_0x3223aa['ICommandService']),_0x21c084(0xa,_0x3223aa['IConfigService']),_0x21c084(0xb,_0x502235[_0x182123(0x437)]),_0x21c084(0xc,_0x3223aa[_0x182123(0x247)]),_0x21c084(0xd,_0x3223aa[_0x182123(0x3d5)])],_0x102544);let _0x2f78ca=class extends _0x1396d0{constructor(_0x386821,_0x5c5b7e,_0x3b5e19,_0x1a98e9,_0x5349bb,_0xfbc501,_0x150d17,_0x35bb45,_0x46f6dd,_0x5b8789,_0x2c2d99){const _0x4ee3df=_0x182123;super(_0x386821,_0x5c5b7e,_0x3b5e19,[],_0x1a98e9,_0x35bb45,_0x2c2d99,_0xfbc501,_0x150d17),_0x571923(this,'status','awaiting'),_0x571923(this,_0x4ee3df(0x4b5),0x0),_0x571923(this,_0x4ee3df(0x326)),_0x571923(this,_0x4ee3df(0x20e)),(this[_0x4ee3df(0x526)]=_0x5349bb,this[_0x4ee3df(0x397)]=_0x46f6dd,this[_0x4ee3df(0x2b5)]=_0x5b8789);}['appendMutation'](_0x5661fc){const _0x49fcc2=_0x182123;this[_0x49fcc2(0x4fa)]();const _0x4f2217=this[_0x49fcc2(0x526)][_0x49fcc2(0x336)](_0x25aaf0,this['unitID'],this[_0x49fcc2(0x45b)],this[_0x49fcc2(0x347)],[_0x5661fc],this['_handler'],this[_0x49fcc2(0x326)]);return _0x4f2217['_updateLocalCache'](),_0x4f2217;}[_0x182123(0x174)](_0x2d049d){const _0x40a107=_0x182123;if(this[_0x40a107(0x188)](_0x2d049d))return this[_0x40a107(0x4fa)](),this[_0x40a107(0x526)][_0x40a107(0x336)](_0x395c69,this[_0x40a107(0x250)],this['type'],this[_0x40a107(0x347)],[],null,[_0x2d049d],this['_handler']);try{const _0xa7c884=this[_0x40a107(0x2b5)][_0x40a107(0x116)]([_0x2d049d],[this[_0x40a107(0x347)]],!0x1);if(_0x502235[_0x40a107(0x2a6)](_0xa7c884)){const {c1Prime:_0x389359,c2Prime:_0x1464b1}=_0xa7c884;this[_0x40a107(0x186)](_0x389359[0x0]),_0x1464b1[0x0][_0x40a107(0x276)]=this[_0x40a107(0x2cb)](),this['_clearScheduledTask']();const _0x2a4375=this[_0x40a107(0x526)]['createInstance'](_0x2f78ca,this[_0x40a107(0x250)],this[_0x40a107(0x45b)],_0x1464b1[0x0],this[_0x40a107(0x3da)]);return _0x2a4375[_0x40a107(0x2ee)](),_0x2a4375;}return this[_0x40a107(0x548)](!0x1);}catch(_0x4ac9da){return this[_0x40a107(0x397)]['error'](_0x4ac9da),this[_0x40a107(0x548)](!0x1);}}[_0x182123(0x248)](_0x534fd2){const _0xcaa355=_0x182123;this[_0xcaa355(0x4fa)]();const _0x871aa=this[_0xcaa355(0x416)][_0xcaa355(0x523)](this[_0xcaa355(0x250)]);if(_0x534fd2[_0xcaa355(0x3f0)]<_0x871aa-0x1)return this;if(this[_0xcaa355(0x188)](_0x534fd2))return this['_injector'][_0xcaa355(0x336)](_0x395c69,this[_0xcaa355(0x250)],this[_0xcaa355(0x45b)],null,[],this[_0xcaa355(0x347)],[],this[_0xcaa355(0x3da)]);this[_0xcaa355(0x4fc)]();const _0x4f5398=this[_0xcaa355(0x526)][_0xcaa355(0x336)](_0x1aa61f,this[_0xcaa355(0x250)],this[_0xcaa355(0x45b)],this['_handler']);return _0x4f5398['_updateLocalCache'](),_0x4f5398;}['onRemoteRej'](_0x30e08d){const _0xc365e7=_0x182123;return this[_0xc365e7(0x548)](!!(_0x30e08d!=null&&_0x30e08d[_0xc365e7(0x206)]));}[_0x182123(0x1e4)](_0x25c13f){const _0x3465fe=_0x182123;return this[_0x3465fe(0x4b5)]>_0x130aab?this[_0x3465fe(0x380)]():(this[_0x3465fe(0x326)]=_0x2a7aaf(this[_0x3465fe(0x4b5)],{'timeout':this['_resendTimeout'],'reqId':_0x25c13f[_0x3465fe(0x48a)]}),this[_0x3465fe(0x20e)]=this[_0x3465fe(0x326)]['subscribe'](({reqId:_0x47f0fb,timeout:_0x3ec700})=>{this['_resendWithTimeout'](_0x47f0fb,_0x3ec700);}),this);}[_0x182123(0x380)](){const _0x5bc0d2=_0x182123;return this[_0x5bc0d2(0x4fa)](),this[_0x5bc0d2(0x526)][_0x5bc0d2(0x336)](_0x2db763,this['unitID'],this[_0x5bc0d2(0x45b)],this['_awaitingChangeset'],[],this[_0x5bc0d2(0x3da)]);}[_0x182123(0x1cc)](){return this;}[_0x182123(0x2c4)](){const _0x2381bc=_0x182123;this[_0x2381bc(0x3da)][_0x2381bc(0x145)](this[_0x2381bc(0x347)]);}[_0x182123(0x548)](_0x589620){const _0x52c937=_0x182123;return this['_clearScheduledTask'](),this[_0x52c937(0x526)][_0x52c937(0x336)](_0x4bc3b9,this['unitID'],this[_0x52c937(0x45b)],this[_0x52c937(0x347)],[],this[_0x52c937(0x3da)],_0x589620);}[_0x182123(0x40a)](_0x3d2490,_0x5c40a8){const _0x4bda58=_0x182123;var _0x497034;_0x3d2490===((_0x497034=this[_0x4bda58(0x347)])==null?void 0x0:_0x497034['reqId'])&&(this[_0x4bda58(0x2c4)](),this[_0x4bda58(0x4b5)]=_0x5c40a8===0x0?0x3e8:_0x5c40a8*0x2);}[_0x182123(0x4fa)](){const _0x2653e3=_0x182123;var _0x1f8fc1;(_0x1f8fc1=this[_0x2653e3(0x20e)])==null||_0x1f8fc1[_0x2653e3(0x2d6)](),this['_resendTimeout']=0x0;}};_0x2f78ca=_0x1554a8([_0x21c084(0x4,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x21c084(0x5,_0x3223aa[_0x182123(0x40e)](_0x502235['RevisionService'])),_0x21c084(0x6,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x199)])),_0x21c084(0x7,_0x3223aa[_0x182123(0x23b)]),_0x21c084(0x8,_0x3223aa[_0x182123(0x3bf)]),_0x21c084(0x9,_0x502235[_0x182123(0x437)]),_0x21c084(0xa,_0x3223aa[_0x182123(0x3d5)])],_0x2f78ca);let _0x25aaf0=class extends _0x1396d0{constructor(_0x513992,_0x17fb97,_0x39dff6,_0x32e1a3,_0x1232a2,_0x213437,_0x98bef3,_0x40cf4d,_0x36ce57,_0x3ff003,_0x3943e7,_0x5dda10,_0x3b3e68){const _0x44924b=_0x182123;super(_0x513992,_0x17fb97,_0x39dff6,_0x32e1a3,_0x1232a2,_0x3ff003,_0x3b3e68,_0x40cf4d,_0x36ce57),_0x571923(this,_0x44924b(0x1e2),_0x44924b(0x3d2)),_0x571923(this,_0x44924b(0x4b5),0x0),_0x571923(this,_0x44924b(0x326)),_0x571923(this,_0x44924b(0x20e)),(this[_0x44924b(0x526)]=_0x98bef3,this['_logService']=_0x3943e7,this['_transformService']=_0x5dda10,_0x213437&&(this[_0x44924b(0x326)]=_0x213437,this[_0x44924b(0x20e)]=this[_0x44924b(0x326)][_0x44924b(0x10e)](({reqId:_0x279663,timeout:_0x3a25b4})=>{const _0x33311a=_0x44924b;this[_0x33311a(0x40a)](_0x279663,_0x3a25b4);})));}[_0x182123(0x31c)](_0x32715c){const _0x26c380=_0x182123;return this[_0x26c380(0x540)][_0x26c380(0x2fb)](_0x32715c),this;}[_0x182123(0x174)](_0x3687e9){const _0x46d386=_0x182123;if(this['_checkMissing'](_0x3687e9))return this[_0x46d386(0x4fa)](),this[_0x46d386(0x526)][_0x46d386(0x336)](_0x395c69,this[_0x46d386(0x250)],this[_0x46d386(0x45b)],this[_0x46d386(0x347)],this[_0x46d386(0x540)],null,[_0x3687e9],this[_0x46d386(0x3da)]);try{const _0xc35fdc=this[_0x46d386(0x2b5)]['transformChangesets']([_0x3687e9],[this['_awaitingChangeset']],!0x1);if(_0x502235['isTransformChangesetsSuccess'](_0xc35fdc)){const {c1Prime:_0x2c935e,c2Prime:_0x11d409}=_0xc35fdc,_0x370c8e=this['_transformService']['transformMutationsWithChangeset'](_0x2c935e[0x0],this[_0x46d386(0x540)]);if(_0x502235['isTransformMutationsWithChangesetSuccess'](_0x370c8e)){const {c1Prime:_0x1517f7,m2Prime:_0x36dc32}=_0x370c8e;return this['_executeRemoteChangeset'](_0x1517f7),_0x11d409[0x0][_0x46d386(0x276)]=this[_0x46d386(0x2cb)](),this[_0x46d386(0x4fa)](),this['_injector'][_0x46d386(0x336)](_0x25aaf0,this[_0x46d386(0x250)],this['type'],_0x11d409[0x0],_0x36dc32,this[_0x46d386(0x3da)],void 0x0);}throw _0x370c8e['error'];}throw _0xc35fdc[_0x46d386(0x1b1)];}catch(_0x5b250d){return this[_0x46d386(0x397)]['error'](_0x5b250d),this[_0x46d386(0x548)](!0x1);}}[_0x182123(0x248)](_0x22d390){const _0x7eb753=_0x182123;if(this['_clearScheduledTask'](),this[_0x7eb753(0x188)](_0x22d390))return this[_0x7eb753(0x526)][_0x7eb753(0x336)](_0x395c69,this[_0x7eb753(0x250)],this[_0x7eb753(0x45b)],null,this[_0x7eb753(0x540)],this[_0x7eb753(0x347)],[],this[_0x7eb753(0x3da)]);this[_0x7eb753(0x4fc)]();const _0x3781b3=this['_injector'][_0x7eb753(0x336)](_0x102544,this['unitID'],this[_0x7eb753(0x45b)],this['_pendingMutations'],this[_0x7eb753(0x3da)]);return _0x3781b3[_0x7eb753(0x3df)](),_0x3781b3['_updateLocalCache'](),_0x3781b3;}[_0x182123(0x27b)](_0x4298c9){const _0xd0a894=_0x182123;return this[_0xd0a894(0x548)](!!(_0x4298c9!=null&&_0x4298c9[_0xd0a894(0x206)]));}[_0x182123(0x1e4)](_0x21b741){const _0x9243b4=_0x182123;return this[_0x9243b4(0x4b5)]>_0x130aab?this[_0x9243b4(0x380)]():(this['_resendTimer']=_0x2a7aaf(this['_resendTimeout'],{'timeout':this[_0x9243b4(0x4b5)],'reqId':_0x21b741[_0x9243b4(0x48a)]}),this[_0x9243b4(0x20e)]=this[_0x9243b4(0x326)]['subscribe'](({reqId:_0x433a2f,timeout:_0x359f8f})=>{const _0x1b680b=_0x9243b4;this[_0x1b680b(0x40a)](_0x433a2f,_0x359f8f);}),this);}[_0x182123(0x380)](){const _0x3e40a4=_0x182123;return this[_0x3e40a4(0x4fa)](),this[_0x3e40a4(0x526)]['createInstance'](_0x2db763,this[_0x3e40a4(0x250)],this[_0x3e40a4(0x45b)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x3e40a4(0x3da)]);}['toggleOnline'](){return this;}[_0x182123(0x2c4)](){const _0x5349ae=_0x182123;this[_0x5349ae(0x3da)][_0x5349ae(0x145)](this[_0x5349ae(0x347)]);}['_onConflict'](_0x30b8e0){const _0x34b5ce=_0x182123;return this[_0x34b5ce(0x4fa)](),this[_0x34b5ce(0x526)][_0x34b5ce(0x336)](_0x4bc3b9,this[_0x34b5ce(0x250)],this['type'],null,this[_0x34b5ce(0x540)],this[_0x34b5ce(0x3da)],_0x30b8e0);}[_0x182123(0x40a)](_0x4b4924,_0x46888a){const _0x865343=_0x182123;var _0x18e496;_0x4b4924===((_0x18e496=this[_0x865343(0x347)])==null?void 0x0:_0x18e496[_0x865343(0x48a)])&&(this[_0x865343(0x2c4)](),this[_0x865343(0x4b5)]=_0x46888a===0x0?0x3e8:_0x46888a*0x2);}[_0x182123(0x4fa)](){const _0x538fce=_0x182123;var _0x47dcad;(_0x47dcad=this['_sender'])==null||_0x47dcad['unsubscribe'](),this[_0x538fce(0x4b5)]=0x0;}};_0x25aaf0=_0x1554a8([_0x21c084(0x6,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x21c084(0x7,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x4f6)])),_0x21c084(0x8,_0x3223aa['Inject'](_0x27845d[_0x182123(0x199)])),_0x21c084(0x9,_0x3223aa[_0x182123(0x23b)]),_0x21c084(0xa,_0x3223aa[_0x182123(0x3bf)]),_0x21c084(0xb,_0x502235[_0x182123(0x437)]),_0x21c084(0xc,_0x3223aa[_0x182123(0x3d5)])],_0x25aaf0);let _0x4bc3b9=class extends _0x1396d0{constructor(_0x4e4154,_0x43a233,_0x5d53cd,_0x514342,_0x2c0c40,_0x5c854e=!0x1,_0x590f04,_0x34975e,_0x1995cb,_0x323495,_0x20698e,_0x405ada,_0x594d4f){const _0x4381b0=_0x182123;super(_0x4e4154,_0x43a233,_0x5d53cd,_0x514342,_0x2c0c40,_0x34975e,_0x1995cb,_0x20698e,_0x323495),_0x571923(this,_0x4381b0(0x1e2),_0x4381b0(0x315)),(this['_isPermissionRej']=_0x5c854e,this[_0x4381b0(0x2db)]=_0x590f04,this[_0x4381b0(0x29b)]=_0x405ada,this[_0x4381b0(0x169)]=_0x594d4f,this[_0x4381b0(0x433)](),this[_0x4381b0(0x4da)](),this[_0x4381b0(0x51c)]());}[_0x182123(0x31c)](){return this;}['onRemoteChangeset'](){return this;}[_0x182123(0x248)](){return this;}[_0x182123(0x27b)](){return this;}[_0x182123(0x1e4)](){return this;}[_0x182123(0x380)](){return this;}[_0x182123(0x1cc)](){return this;}[_0x182123(0x2c4)](){const _0x187c01=_0x182123;throw new Error(_0x187c01(0x3ca));}[_0x182123(0x4da)](){const _0x30212d=_0x182123;this[_0x30212d(0x44c)]['updateOfflineData'](this[_0x30212d(0x250)],this[_0x30212d(0x45b)],null,[]);}['_showConflictNotification'](){const _0x44c02d=_0x182123;this[_0x44c02d(0x484)]?this[_0x44c02d(0x169)][_0x44c02d(0x2a4)]({'title':this[_0x44c02d(0x29b)]['t'](_0x44c02d(0x4bf)),'content':this[_0x44c02d(0x29b)]['t'](_0x44c02d(0x4f3)),'type':'error','duration':0x0}):this[_0x44c02d(0x169)][_0x44c02d(0x2a4)]({'title':this[_0x44c02d(0x29b)]['t']('conflict.title'),'content':this[_0x44c02d(0x29b)]['t'](_0x44c02d(0x2aa)),'type':_0x44c02d(0x1b1),'duration':0x0});}[_0x182123(0x51c)](){const _0x3c4429=_0x182123;this[_0x3c4429(0x2db)][_0x3c4429(0x3ad)](new _0x4f46f0['WorkbookEditablePermission'](this[_0x3c4429(0x250)])['id'],!0x1);}};_0x4bc3b9=_0x1554a8([_0x21c084(0x6,_0x3223aa[_0x182123(0x40e)](_0x3223aa['IPermissionService'])),_0x21c084(0x7,_0x3223aa[_0x182123(0x23b)]),_0x21c084(0x8,_0x3223aa['IUndoRedoService']),_0x21c084(0x9,_0x3223aa[_0x182123(0x40e)](_0x27845d['LocalCacheService'])),_0x21c084(0xa,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x4f6)])),_0x21c084(0xb,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x1dd)])),_0x21c084(0xc,_0x19d837[_0x182123(0x24b)])],_0x4bc3b9);let _0x2db763=class extends _0x1396d0{constructor(_0x485ad1,_0x33d62b,_0x523aa4,_0x16bcdb,_0x1fbefa,_0x3ac656,_0x5475fb,_0x193f3c,_0x58edc1,_0x2ba23f){const _0xbf5d92=_0x182123;super(_0x485ad1,_0x33d62b,_0x523aa4,_0x16bcdb,_0x1fbefa,_0x58edc1,_0x2ba23f,_0x5475fb,_0x193f3c),_0x571923(this,_0xbf5d92(0x1e2),_0xbf5d92(0x2e7)),this[_0xbf5d92(0x526)]=_0x3ac656;}[_0x182123(0x31c)](_0x398f48){const _0x3a00e2=_0x182123;return this[_0x3a00e2(0x540)][_0x3a00e2(0x2fb)](_0x398f48),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x50653a){const _0xe0302f=_0x182123;throw new Error(_0xe0302f(0x2b7));}[_0x182123(0x248)](){const _0x57fe3c=_0x182123;throw new Error(_0x57fe3c(0x49c));}[_0x182123(0x27b)](){const _0x353896=_0x182123;throw new Error(_0x353896(0x21d));}[_0x182123(0x1e4)](){return this;}['toggleOffline'](){return this;}[_0x182123(0x1cc)](){const _0x1e40f6=_0x182123,{_injector:_0x43025e,_pendingMutations:_0x3de2d0,_awaitingChangeset:_0x57011a,unitID:_0x34d2ef,_handler:_0x17f55e,type:_0xefab7d}=this,_0x1fcbcd=_0x4c6e73(_0x43025e,_0x34d2ef,_0xefab7d,_0x57011a,_0x3de2d0,_0x17f55e);return _0x1fcbcd instanceof _0x102544?_0x1fcbcd['_schedule']():(_0x1fcbcd instanceof _0x25aaf0||_0x1fcbcd instanceof _0x2f78ca)&&_0x1fcbcd[_0x1e40f6(0x2c4)](),_0x1fcbcd;}[_0x182123(0x2c4)](){const _0x4cbbe4=_0x182123;throw new Error(_0x4cbbe4(0x49f));}};_0x2db763=_0x1554a8([_0x21c084(0x5,_0x3223aa['Inject'](_0x3223aa[_0x182123(0x14a)])),_0x21c084(0x6,_0x3223aa[_0x182123(0x40e)](_0x502235['RevisionService'])),_0x21c084(0x7,_0x3223aa['Inject'](_0x27845d[_0x182123(0x199)])),_0x21c084(0x8,_0x3223aa['ICommandService']),_0x21c084(0x9,_0x3223aa['IUndoRedoService'])],_0x2db763);let _0x395c69=class extends _0x1396d0{constructor(_0x4a60ef,_0x35235c,_0x377d75,_0x4f7d53,_0x3c91a5,_0x57ee11,_0x314114,_0x49d8a5,_0x5c5ec0,_0x8282d8,_0x5684df,_0x434d22,_0x20b41f,_0x35aef8){const _0x5e5ba7=_0x182123;super(_0x4a60ef,_0x35235c,_0x377d75,_0x4f7d53,_0x314114,_0x434d22,_0x20b41f,_0x5c5ec0,_0x8282d8),_0x571923(this,_0x5e5ba7(0x1e2),'fetch_missing'),(this[_0x5e5ba7(0x434)]=_0x3c91a5,this[_0x5e5ba7(0x2ef)]=_0x57ee11,this[_0x5e5ba7(0x526)]=_0x49d8a5,this[_0x5e5ba7(0x397)]=_0x5684df,this['_transformService']=_0x35aef8);}[_0x182123(0x284)](_0x5f1968){const _0x4fcb7c=_0x182123;try{const _0x3dc117=[..._0x5f1968,...this[_0x4fcb7c(0x2ef)]],_0x2f3cef=[this['_awaitingChangeset']||this[_0x4fcb7c(0x434)]][_0x4fcb7c(0x22a)](_0x3a5dd5=>!!_0x3a5dd5);let _0x1b7e00,_0x950c72;if(_0x2f3cef[_0x4fcb7c(0x4c3)]){const _0x28452c=this[_0x4fcb7c(0x2b5)][_0x4fcb7c(0x116)](_0x3dc117,_0x2f3cef,!0x1);if(!_0x502235[_0x4fcb7c(0x2a6)](_0x28452c))throw _0x28452c['error'];_0x1b7e00=_0x28452c['c1Prime'],_0x950c72=_0x28452c[_0x4fcb7c(0x3a3)];}else _0x1b7e00=_0x3dc117,_0x950c72=[];let _0x513f2b=this['_pendingMutations'];_0x1b7e00[_0x4fcb7c(0x19f)](_0x1cd755=>{const _0x49642f=_0x4fcb7c;let _0x41bb48;if(_0x513f2b[_0x49642f(0x4c3)]){const _0x241be3=this['_transformService'][_0x49642f(0x419)](_0x1cd755,_0x513f2b);if(!_0x502235[_0x49642f(0x50c)](_0x241be3))throw _0x241be3['error'];_0x41bb48=_0x241be3[_0x49642f(0x490)],_0x513f2b=_0x241be3[_0x49642f(0x35b)];}else _0x41bb48=_0x1cd755;this['_executeRemoteChangeset'](_0x41bb48);}),this['_acknowledgedAwaitingChangeset']&&this[_0x4fcb7c(0x4fc)](),this[_0x4fcb7c(0x347)]&&_0x950c72[_0x4fcb7c(0x4c3)]&&(_0x950c72[0x0][_0x4fcb7c(0x276)]=this['_getCurrentRevision']());let _0x421756;if(this[_0x4fcb7c(0x347)]&&_0x513f2b[_0x4fcb7c(0x4c3)]!==0x0)_0x421756=this[_0x4fcb7c(0x526)][_0x4fcb7c(0x336)](_0x25aaf0,this[_0x4fcb7c(0x250)],this['type'],_0x950c72[0x0],_0x513f2b,this[_0x4fcb7c(0x3da)],void 0x0);else{if(this[_0x4fcb7c(0x347)]&&_0x513f2b[_0x4fcb7c(0x4c3)]===0x0)_0x950c72[0x0][_0x4fcb7c(0x276)]=this['_getCurrentRevision'](),_0x421756=this[_0x4fcb7c(0x526)][_0x4fcb7c(0x336)](_0x2f78ca,this['unitID'],this[_0x4fcb7c(0x45b)],_0x950c72[0x0],this['_handler']);else{if(_0x513f2b[_0x4fcb7c(0x4c3)]!==0x0){const _0x382b84=this[_0x4fcb7c(0x526)][_0x4fcb7c(0x336)](_0x102544,this[_0x4fcb7c(0x250)],this[_0x4fcb7c(0x45b)],_0x513f2b,this['_handler']);_0x382b84[_0x4fcb7c(0x3df)](),_0x421756=_0x382b84;}else _0x421756=this[_0x4fcb7c(0x526)]['createInstance'](_0x1aa61f,this[_0x4fcb7c(0x250)],this[_0x4fcb7c(0x45b)],this['_handler']);}}return _0x421756[_0x4fcb7c(0x2ee)](),_0x421756;}catch(_0x533535){return this[_0x4fcb7c(0x397)][_0x4fcb7c(0x1b1)]('[FetchMissState]',_0x4fcb7c(0x1f9),_0x533535),this[_0x4fcb7c(0x526)][_0x4fcb7c(0x336)](_0x4bc3b9,this[_0x4fcb7c(0x250)],this[_0x4fcb7c(0x45b)],this[_0x4fcb7c(0x347)],this[_0x4fcb7c(0x540)],this[_0x4fcb7c(0x3da)],!0x1);}}[_0x182123(0x2c4)](){const _0x3c43d5=_0x182123;throw new Error(_0x3c43d5(0x53e));}[_0x182123(0x31c)](_0xf92f8c){const _0x5a1cee=_0x182123;return this[_0x5a1cee(0x540)][_0x5a1cee(0x2fb)](_0xf92f8c),this;}[_0x182123(0x174)](_0x3f3e69){const _0x1a367e=_0x182123;return this[_0x1a367e(0x2ef)][_0x1a367e(0x2fb)](_0x3f3e69),this;}[_0x182123(0x248)](_0x339aa3){const _0x3301a1=_0x182123;if(this[_0x3301a1(0x347)])return this['_acknowledgedAwaitingChangeset']=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x182123(0x27b)](_0x30670a){const _0x12271f=_0x182123;return this['_onConflict'](!!(_0x30670a!=null&&_0x30670a[_0x12271f(0x206)]));}[_0x182123(0x1e4)](){return this;}[_0x182123(0x380)](){const _0x2b508c=_0x182123;return this[_0x2b508c(0x526)][_0x2b508c(0x336)](_0x2db763,this[_0x2b508c(0x250)],this[_0x2b508c(0x45b)],this[_0x2b508c(0x347)],this[_0x2b508c(0x540)],this[_0x2b508c(0x3da)]);}[_0x182123(0x1cc)](){return this;}['_onConflict'](_0x226953){const _0x26092b=_0x182123;return this[_0x26092b(0x526)][_0x26092b(0x336)](_0x4bc3b9,this['unitID'],this['type'],this[_0x26092b(0x347)],this[_0x26092b(0x540)],this['_handler'],_0x226953);}};_0x395c69=_0x1554a8([_0x21c084(0x7,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x21c084(0x8,_0x3223aa['Inject'](_0x502235[_0x182123(0x4f6)])),_0x21c084(0x9,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x199)])),_0x21c084(0xa,_0x3223aa[_0x182123(0x3bf)]),_0x21c084(0xb,_0x3223aa[_0x182123(0x23b)]),_0x21c084(0xc,_0x3223aa[_0x182123(0x3d5)]),_0x21c084(0xd,_0x502235['ITransformService'])],_0x395c69);function _0x4c6e73(_0x1d0197,_0x39f2d6,_0xd2b9d3,_0x2e56e6,_0xe4d716,_0x5165c1){const _0x365016=_0x182123;return _0x2e56e6&&_0xe4d716[_0x365016(0x4c3)]?_0x1d0197['createInstance'](_0x25aaf0,_0x39f2d6,_0xd2b9d3,_0x2e56e6,_0xe4d716,_0x5165c1,void 0x0):_0x2e56e6?_0x1d0197['createInstance'](_0x2f78ca,_0x39f2d6,_0xd2b9d3,_0x2e56e6,_0x5165c1):_0xe4d716[_0x365016(0x4c3)]?_0x1d0197[_0x365016(0x336)](_0x102544,_0x39f2d6,_0xd2b9d3,_0xe4d716,_0x5165c1):_0x1d0197[_0x365016(0x336)](_0x1aa61f,_0x39f2d6,_0xd2b9d3,_0x5165c1);}var _0x374abf=Object['defineProperty'],_0xa2bc3d=Object[_0x182123(0x363)],_0x1024b6=(_0x30e4be,_0x284c93,_0x9254a9,_0x4038b5)=>{for(var _0x167466=_0x4038b5>0x1?void 0x0:_0x4038b5?_0xa2bc3d(_0x284c93,_0x9254a9):_0x284c93,_0x504871=_0x30e4be['length']-0x1,_0x4bd8d9;_0x504871>=0x0;_0x504871--)(_0x4bd8d9=_0x30e4be[_0x504871])&&(_0x167466=(_0x4038b5?_0x4bd8d9(_0x284c93,_0x9254a9,_0x167466):_0x4bd8d9(_0x167466))||_0x167466);return _0x4038b5&&_0x167466&&_0x374abf(_0x284c93,_0x9254a9,_0x167466),_0x167466;},_0x359239=(_0x519746,_0x54af50)=>(_0x3a7c84,_0xf75938)=>_0x54af50(_0x3a7c84,_0xf75938,_0x519746);_0x27845d[_0x182123(0x3de)]=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x457864,_0x2617a8,_0x3b5f04,_0x30d44b,_0x346659,_0x4fa2e7,_0x393416,_0x1adf53,_0x1b4b5d,_0x576bfc,_0x112fec,_0x4c0ea1,_0xd78248){const _0x2d57d6=_0x182123;super(),_0x571923(this,_0x2d57d6(0x3b8),new _0x41acaa[(_0x2d57d6(0x30c))](null)),_0x571923(this,_0x2d57d6(0x3b6),this[_0x2d57d6(0x3b8)][_0x2d57d6(0x28d)]()),_0x571923(this,_0x2d57d6(0x496)),_0x571923(this,_0x2d57d6(0x32e),!0x1),_0x571923(this,_0x2d57d6(0x533),''),_0x571923(this,_0x2d57d6(0x447),0x0),_0x571923(this,'status$',this[_0x2d57d6(0x3b6)]['pipe'](_0x41acaa[_0x2d57d6(0x486)](_0x3689d3=>_0x3689d3?_0x3689d3['status']:_0x12b363[_0x2d57d6(0x113)]),_0x41acaa[_0x2d57d6(0x4ff)](0x1))),_0x571923(this,_0x2d57d6(0x222),!0x1),_0x571923(this,_0x2d57d6(0x4f7),[]),(this['unitID']=_0x457864,this['session']=_0x2617a8,this[_0x2d57d6(0x482)]=_0x3b5f04,this['_injector']=_0x30d44b,this[_0x2d57d6(0x44c)]=_0x346659,this[_0x2d57d6(0x24a)]=_0x4fa2e7,this[_0x2d57d6(0x29b)]=_0x393416,this[_0x2d57d6(0x416)]=_0x1adf53,this[_0x2d57d6(0x397)]=_0x1b4b5d,this['_commandService']=_0x576bfc,this['_messageService']=_0x112fec,this[_0x2d57d6(0x2db)]=_0x4c0ea1,this[_0x2d57d6(0x1cb)]=_0xd78248);}get[_0x182123(0x127)](){const _0x1cb876=_0x182123;return this[_0x1cb876(0x496)];}async['init'](){const _0x19a474=_0x182123;if(this['state'])throw new Error(_0x19a474(0x4d5));await this[_0x19a474(0x450)]();}[_0x182123(0x4c0)](){const _0x136f7f=_0x182123;return this[_0x136f7f(0x32e)]=!0x0,_0x3223aa[_0x136f7f(0x1ed)](()=>{const _0x4463c3=_0x136f7f;this[_0x4463c3(0x32e)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x182123(0x51b)](_0x2efaf8){const _0x4823db=_0x182123;this[_0x4823db(0x496)]=_0x2efaf8,this[_0x4823db(0x3b8)]['next'](_0x2efaf8);}async[_0x182123(0x450)](){const _0x90f377=_0x182123;var _0x22826f;this[_0x90f377(0x51b)](await this[_0x90f377(0x454)]()),this['_singleActiveUnitService']&&((_0x22826f=this[_0x90f377(0x1cb)])==null||_0x22826f[_0x90f377(0x366)](this['unitID']),this[_0x90f377(0x2c6)](this[_0x90f377(0x1cb)][_0x90f377(0x16f)](this['unitID'])['subscribe'](_0x4c8425=>{const _0x33c9d9=_0x90f377;this[_0x33c9d9(0x397)][_0x33c9d9(0x235)]('[CollaborationEntity]',_0x33c9d9(0x4eb),_0x4c8425),_0x4c8425===_0x10b66f[_0x33c9d9(0x2e4)]?(this[_0x33c9d9(0x513)][_0x33c9d9(0x2a4)]({'content':this['_localeService']['t'](_0x33c9d9(0x3ac)),'type':_0x4d822f['MessageType'][_0x33c9d9(0x243)]}),this[_0x33c9d9(0x2db)]['updatePermissionPoint'](new _0x4f46f0[(_0x33c9d9(0x4d3))](this[_0x33c9d9(0x250)])['id'],!0x1)):this['_permissionService'][_0x33c9d9(0x3ad)](new _0x4f46f0['WorkbookEditablePermission'](this[_0x33c9d9(0x250)])['id'],!0x0);})));let _0x5e5c07=!0x1;return this[_0x90f377(0x2c6)](this[_0x90f377(0x14f)]['sessionStatus$']['subscribe'](_0x31c3a4=>{const _0x3d773c=_0x90f377;_0x31c3a4===_0x49249e['ONLINE']?this[_0x3d773c(0x15d)](_0x5e5c07):_0x31c3a4===_0x49249e[_0x3d773c(0x113)]&&(_0x5e5c07=!0x0,this[_0x3d773c(0x1bb)]());})),this['disposeWithMe'](this[_0x90f377(0x14f)]['event$'][_0x90f377(0x10e)](_0x8d4d39=>{const _0x2cc13b=_0x90f377;try{switch(_0x8d4d39['eventID']){case _0x502235[_0x2cc13b(0x2f0)][_0x2cc13b(0x51a)]:{this['_onRemoteChangeset'](_0x502235[_0x2cc13b(0x3a9)](_0x8d4d39[_0x2cc13b(0x46f)]));break;}case _0x502235['CollaborationEvent']['CHANGESET_ACK']:{this['_onRemoteACK'](_0x8d4d39['data']);break;}case _0x502235[_0x2cc13b(0x2f0)][_0x2cc13b(0x275)]:{this[_0x2cc13b(0x164)]();break;}case _0x502235[_0x2cc13b(0x2f0)][_0x2cc13b(0x408)]:{this[_0x2cc13b(0x1fc)](_0x8d4d39[_0x2cc13b(0x46f)]);break;}case _0x502235['CollaborationEvent'][_0x2cc13b(0x358)]:{this['_onFetchMissResult'](_0x8d4d39[_0x2cc13b(0x46f)]['changesets'][_0x2cc13b(0x486)](_0xd7e92f=>_0x502235[_0x2cc13b(0x3a9)](_0xd7e92f)));break;}case _0x502235['CollaborationEvent'][_0x2cc13b(0x2ae)]:this[_0x2cc13b(0x164)]({'isPermissionRej':!0x0});}}catch(_0x3a32b0){throw console[_0x2cc13b(0x1b1)]('Error\x20on\x20receiving\x20event',_0x3a32b0),_0x3a32b0;}})),this[_0x90f377(0x496)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x182123(0x4cc)](){const _0x1ff8ae=_0x182123;if(this[_0x1ff8ae(0x222)])throw new Error(_0x1ff8ae(0x44d));this[_0x1ff8ae(0x222)]=!0x0;}[_0x182123(0x4a7)](_0x364329){const _0x499764=_0x182123;this[_0x499764(0x4cc)](),this[_0x499764(0x51b)](this[_0x499764(0x496)][_0x499764(0x31c)](_0x364329)),this[_0x499764(0x277)]();}[_0x182123(0x510)](_0x464c6f){const _0x141eaf=_0x182123;if(!(_0x464c6f[_0x141eaf(0x3f0)]<=this[_0x141eaf(0x416)][_0x141eaf(0x523)](this[_0x141eaf(0x250)]))){if(this[_0x141eaf(0x32e)]){this[_0x141eaf(0x4f7)][_0x141eaf(0x2fb)](_0x464c6f);return;}this[_0x141eaf(0x4af)](_0x464c6f);}}[_0x182123(0x10f)](){const _0x593a1a=_0x182123;this[_0x593a1a(0x4f7)][_0x593a1a(0x19f)](_0xe0996a=>this[_0x593a1a(0x4af)](_0xe0996a)),this[_0x593a1a(0x4f7)]=[];}[_0x182123(0x4af)](_0x1d134d){const _0x28009d=_0x182123,_0x1e77e5=this['_compressMutationService'][_0x28009d(0x362)][_0x28009d(0x4a2)](this[_0x28009d(0x24a)][_0x28009d(0x362)]['getInterceptPoints']()[_0x28009d(0x3e0)])(_0x1d134d[_0x28009d(0x1d7)],null)||_0x1d134d[_0x28009d(0x1d7)],_0x46098e={..._0x1d134d,'mutations':_0x1e77e5};this['_lockTransition'](),this[_0x28009d(0x51b)](this[_0x28009d(0x496)][_0x28009d(0x174)](_0x46098e)),this[_0x28009d(0x277)]();}[_0x182123(0x4d7)](_0x240445){const _0x5c96d5=_0x182123;this[_0x5c96d5(0x4cc)](),this[_0x5c96d5(0x51b)](this[_0x5c96d5(0x496)][_0x5c96d5(0x248)](_0x240445)),this[_0x5c96d5(0x277)]();}['_onRemoteRejected'](_0x4efc55){const _0x3fa350=_0x182123;this['_lockTransition'](),this[_0x3fa350(0x51b)](this[_0x3fa350(0x496)]['onRemoteRej'](_0x4efc55)),this[_0x3fa350(0x277)]();}[_0x182123(0x1fc)](_0x3cf63d){const _0x4eb52b=_0x182123;this[_0x4eb52b(0x4cc)](),this[_0x4eb52b(0x51b)](this[_0x4eb52b(0x496)][_0x4eb52b(0x1e4)](_0x3cf63d)),this[_0x4eb52b(0x277)]();}[_0x182123(0x115)](_0x1fcc30){const _0x548cc1=_0x182123;if(!(this[_0x548cc1(0x496)]instanceof _0x395c69))throw new TypeError(_0x548cc1(0x267));const _0x1d9602=_0x1fcc30['map'](_0x5be66a=>{const _0x3102b5=_0x548cc1,_0x43714e=this['_compressMutationService']['interceptor'][_0x3102b5(0x4a2)](this[_0x3102b5(0x24a)][_0x3102b5(0x362)]['getInterceptPoints']()[_0x3102b5(0x3e0)])(_0x5be66a[_0x3102b5(0x1d7)],null)||_0x5be66a['mutations'];return{..._0x5be66a,'mutations':_0x43714e};});this[_0x548cc1(0x4cc)](),this[_0x548cc1(0x51b)](this[_0x548cc1(0x496)][_0x548cc1(0x284)](_0x1d9602)),this[_0x548cc1(0x277)]();}['_toggleOffline'](){const _0xf14a9=_0x182123;this[_0xf14a9(0x4cc)](),this[_0xf14a9(0x51b)](this['_state']['toggleOffline']()),this[_0xf14a9(0x277)]();}[_0x182123(0x15d)](_0x24f4e4=!0x1){const _0x37be4b=_0x182123;this[_0x37be4b(0x4cc)](),this[_0x37be4b(0x51b)](this[_0x37be4b(0x496)][_0x37be4b(0x1cc)]()),this[_0x37be4b(0x277)]();const _0x371900=this[_0x37be4b(0x496)];_0x24f4e4&&_0x371900 instanceof _0x1aa61f&&(this[_0x37be4b(0x4cc)](),this[_0x37be4b(0x51b)](_0x371900[_0x37be4b(0x1de)]()),this[_0x37be4b(0x277)]());}async[_0x182123(0x454)](){return new Promise(_0x36724c=>{const _0x273b19=_0x2e84;this['session'][_0x273b19(0x4d0)][_0x273b19(0x493)](_0x41acaa[_0x273b19(0x12d)](0x1))[_0x273b19(0x10e)](async _0x4d6472=>{const _0x4108d1=_0x273b19;_0x36724c(await this[_0x4108d1(0x448)](_0x4d6472===_0x49249e[_0x4108d1(0x233)]));});});}['_createHandler'](){const _0x1c4a8e=_0x182123,_0x4056d9=this[_0x1c4a8e(0x250)];return{'onStateChange':(_0x43aa9d,_0x2b4f87)=>{const _0x24ea46=_0x1c4a8e;if(_0x43aa9d!==this[_0x24ea46(0x496)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x43aa9d[_0x24ea46(0x1e2)]+_0x24ea46(0x439)+_0x2b4f87[_0x24ea46(0x1e2)]+_0x24ea46(0x27f)+this[_0x24ea46(0x496)]['status']);this[_0x24ea46(0x51b)](_0x2b4f87);},'onSendChangeset':_0x3876d6=>{const _0x107d79=_0x1c4a8e;_0x3876d6[_0x107d79(0x11f)]||(_0x3876d6[_0x107d79(0x11f)]=this[_0x107d79(0x533)],_0x3876d6[_0x107d79(0x48a)]=++this['_changesetReqId']);const _0x3a4629={'eventID':_0x502235[_0x107d79(0x2f0)][_0x107d79(0x33e)],'data':{'unitID':_0x3876d6['unitID'],'unitType':this[_0x107d79(0x482)],'changeset':_0x3876d6,'memberID':this[_0x107d79(0x14f)][_0x107d79(0x17a)]()}};this['session']['send'](_0x3a4629,this[_0x107d79(0x250)]);},'onMissingChangesets':({from:_0x50f52b,to:_0x2632c0})=>{const _0xf8a5bf=_0x1c4a8e;this[_0xf8a5bf(0x397)]['debug'](_0xf8a5bf(0x22c),_0xf8a5bf(0x13a)+_0x50f52b+_0xf8a5bf(0x294)+_0x2632c0);const _0x5a6437={'eventID':_0x502235[_0xf8a5bf(0x2f0)][_0xf8a5bf(0x549)],'data':{'unitID':_0x4056d9,'unitType':this['_type'],'from':_0x50f52b,'to':_0x2632c0}};this['session'][_0xf8a5bf(0x4a0)](_0x5a6437,this[_0xf8a5bf(0x250)]);}};}async[_0x182123(0x448)](_0x552e5d){const _0x21ec7a=_0x182123;var _0x26dcf4,_0x4638cd;const _0x2e8154=await this[_0x21ec7a(0x44c)]['loadOfflineData'](this['unitID']),_0x3ad397=(_0x26dcf4=_0x2e8154==null?void 0x0:_0x2e8154[_0x21ec7a(0x1d7)])!=null?_0x26dcf4:[],_0x5c062f=(_0x4638cd=_0x2e8154==null?void 0x0:_0x2e8154[_0x21ec7a(0x2ed)])!=null?_0x4638cd:null,_0x40e6ac=!!(_0x5c062f!=null&&_0x5c062f[_0x21ec7a(0x11f)])&&!!(_0x5c062f!=null&&_0x5c062f['reqId']);this[_0x21ec7a(0x533)]=_0x40e6ac?_0x5c062f[_0x21ec7a(0x11f)]:_0x3a1d6d(),this[_0x21ec7a(0x447)]=_0x40e6ac?_0x5c062f[_0x21ec7a(0x48a)]:0x0;const _0x347732=this[_0x21ec7a(0x250)];try{this[_0x21ec7a(0x3a7)](_0x5c062f,_0x3ad397);}catch(_0x1bec3f){this[_0x21ec7a(0x397)][_0x21ec7a(0x1b1)](_0x1bec3f);}const _0x55c1bd=this['_createHandler']();if(_0x552e5d){const _0x18587c=_0x4c6e73(this[_0x21ec7a(0x526)],_0x347732,this[_0x21ec7a(0x482)],_0x5c062f,_0x3ad397,_0x55c1bd);return _0x18587c instanceof _0x102544?_0x18587c[_0x21ec7a(0x3df)]():(_0x18587c instanceof _0x25aaf0||_0x18587c instanceof _0x2f78ca)&&_0x18587c['resend'](),_0x18587c;}return this[_0x21ec7a(0x526)]['createInstance'](_0x2db763,_0x347732,this[_0x21ec7a(0x482)],_0x5c062f,_0x3ad397,_0x55c1bd);}[_0x182123(0x3a7)](_0x53c141,_0x49323f){const _0x3aa543=_0x182123;var _0x46639a,_0x48c2eb;const _0x5f02a8=this[_0x3aa543(0x24a)][_0x3aa543(0x362)][_0x3aa543(0x4a2)](this[_0x3aa543(0x24a)]['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x46639a=_0x5f02a8((_0x53c141==null?void 0x0:_0x53c141[_0x3aa543(0x1d7)])||[],null))==null||_0x46639a[_0x3aa543(0x19f)](_0x25a4ee=>this[_0x3aa543(0x198)][_0x3aa543(0x3c8)](_0x25a4ee['id'],_0x25a4ee[_0x3aa543(0x4b1)])),(_0x48c2eb=_0x5f02a8(_0x49323f||[],null))==null||_0x48c2eb['forEach'](_0x2899a1=>this['_commandService']['executeCommand'](_0x2899a1['id'],_0x2899a1[_0x3aa543(0x4b1)]));}},_0x27845d[_0x182123(0x3de)]=_0x1024b6([_0x359239(0x3,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x359239(0x4,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x199)])),_0x359239(0x5,_0x3223aa[_0x182123(0x40e)](_0x502235['CompressMutationService'])),_0x359239(0x6,_0x3223aa[_0x182123(0x40e)](_0x3223aa['LocaleService'])),_0x359239(0x7,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x4f6)])),_0x359239(0x8,_0x3223aa[_0x182123(0x3bf)]),_0x359239(0x9,_0x3223aa[_0x182123(0x23b)]),_0x359239(0xa,_0x19d837[_0x182123(0x31b)]),_0x359239(0xb,_0x3223aa[_0x182123(0x230)]),_0x359239(0xc,_0x3223aa[_0x182123(0x203)](_0x49a942))],_0x27845d[_0x182123(0x3de)]),_0x27845d[_0x182123(0x22e)]=class extends _0x27845d[_0x182123(0x3de)]{constructor(_0x1a5d0e,_0x1d5abb,_0x163c5a,_0x3c26bf,_0x49d569,_0x2e2b4e,_0x238150,_0x7410c7,_0xa7359e,_0x2bb6a8,_0x51c817,_0x19808b,_0x5682c7,_0x14b635,_0x5a355f,_0x2243a0,_0x237295){const _0x567dbb=_0x182123;super(_0x1a5d0e,_0x163c5a,_0x1d5abb,_0x3c26bf,_0x49d569,_0x2e2b4e,_0x238150,_0x7410c7,_0x5682c7,_0x14b635,_0x5a355f,_0x2243a0,_0x237295),this['unitID']=_0x1a5d0e,this['type']=_0x1d5abb,this[_0x567dbb(0x499)]=_0xa7359e,this['_docTransformIMECacheService']=_0x2bb6a8,this[_0x567dbb(0x4ec)]=_0x51c817,this['_docSyncEditingCollabCursorService']=_0x19808b;}[_0x182123(0x147)](){const _0x54fec9=_0x182123,_0x428113=super[_0x54fec9(0x147)]();return _0x428113['onTransformIME']=_0x83edff=>this[_0x54fec9(0x2bb)][_0x54fec9(0x323)](_0x83edff),_0x428113['onTransformSelections']=_0x51520b=>this[_0x54fec9(0x4ec)]['transformSelections'](_0x51520b),_0x428113['onSyncEditingCollabCursor']=_0x5c39a1=>this['_docSyncEditingCollabCursorService'][_0x54fec9(0x1f5)](_0x5c39a1),_0x428113[_0x54fec9(0x436)]=_0x55a503=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x55a503),_0x428113;}async[_0x182123(0x450)](){const _0x56533b=_0x182123,_0x3f7db3=await super[_0x56533b(0x450)]();return this[_0x56533b(0x499)][_0x56533b(0x386)]['pipe'](_0x41acaa[_0x56533b(0x410)](this[_0x56533b(0x4ef)]))['subscribe'](_0x53c183=>{const _0x20f806=_0x56533b;if(_0x53c183==null)return;const {unitId:_0x3744bf,redoState:_0x206738,commandId:_0x124ec7}=_0x53c183;if(_0x3744bf!==this[_0x20f806(0x250)])return;const _0x559808={'id':_0x124ec7,'type':_0x3223aa[_0x20f806(0x3b7)]['MUTATION'],'params':{'unitId':_0x3744bf,'actions':_0x206738[_0x20f806(0x3d3)],'textRanges':null}};this[_0x20f806(0x4a7)](_0x559808);}),_0x3f7db3;}},_0x27845d[_0x182123(0x22e)]=_0x1024b6([_0x359239(0x3,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x359239(0x4,_0x3223aa['Inject'](_0x27845d[_0x182123(0x199)])),_0x359239(0x5,_0x3223aa[_0x182123(0x40e)](_0x502235['CompressMutationService'])),_0x359239(0x6,_0x3223aa[_0x182123(0x40e)](_0x3223aa['LocaleService'])),_0x359239(0x7,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x4f6)])),_0x359239(0x8,_0x3223aa[_0x182123(0x40e)](_0x143e31['DocStateChangeManagerService'])),_0x359239(0x9,_0x3223aa['Inject'](_0x136308)),_0x359239(0xa,_0x3223aa['Inject'](_0x427d95)),_0x359239(0xb,_0x3223aa[_0x182123(0x40e)](_0x729593)),_0x359239(0xc,_0x3223aa['ILogService']),_0x359239(0xd,_0x3223aa[_0x182123(0x23b)]),_0x359239(0xe,_0x19d837[_0x182123(0x31b)]),_0x359239(0xf,_0x3223aa[_0x182123(0x230)]),_0x359239(0x10,_0x3223aa['Optional'](_0x49a942))],_0x27845d[_0x182123(0x22e)]),_0x27845d[_0x182123(0x1a2)]=class extends _0x27845d[_0x182123(0x3de)]{constructor(_0x1d8e3f,_0x368fc8,_0xf70dc6,_0x30ced6,_0x1227ed,_0x5b3ba3,_0xe05699,_0x1f347d,_0x44c65e,_0xccd9c,_0x462327,_0x1e49e1,_0x5eed94,_0x35b894){const _0x11ea48=_0x182123;super(_0x1d8e3f,_0xf70dc6,_0x368fc8,_0x30ced6,_0x1227ed,_0x5b3ba3,_0xe05699,_0x1f347d,_0xccd9c,_0x462327,_0x1e49e1,_0x5eed94,_0x35b894),this['unitID']=_0x1d8e3f,this['type']=_0x368fc8,this[_0x11ea48(0x274)]=_0x44c65e;}[_0x182123(0x147)](){const _0x1cccf7=_0x182123,_0x100950=super[_0x1cccf7(0x147)]();return _0x100950[_0x1cccf7(0x227)]=_0x26cec9=>this[_0x1cccf7(0x274)]['transformSelections'](_0x26cec9),_0x100950;}async[_0x182123(0x450)](){const _0x19b7ab=_0x182123,_0x263029=await super[_0x19b7ab(0x450)]();return this['disposeWithMe'](this['_commandService'][_0x19b7ab(0x3cb)]((_0x32a360,_0x4f1b63)=>{const _0xfd4f20=_0x19b7ab;if(_0x32a360[_0xfd4f20(0x45b)]!==_0x3223aa[_0xfd4f20(0x3b7)][_0xfd4f20(0x402)]||_0x4f1b63!=null&&_0x4f1b63[_0xfd4f20(0x177)]||_0x4f1b63!=null&&_0x4f1b63[_0xfd4f20(0x1f2)])return;const _0x2803f8=_0x32a360[_0xfd4f20(0x4b1)];if((_0x2803f8==null?void 0x0:_0x2803f8[_0xfd4f20(0x504)])!==this['unitID'])return;const _0x1e810a=_0x32a360,_0x5e4915=this[_0xfd4f20(0x24a)][_0xfd4f20(0x362)]['fetchThroughInterceptors'](this[_0xfd4f20(0x24a)]['interceptor'][_0xfd4f20(0x135)]()['COMPRESS_MUTATION_SEND'])([_0x1e810a],null)||[_0x1e810a];this[_0xfd4f20(0x4a7)](_0x5e4915[0x0]);})),_0x263029;}},_0x27845d[_0x182123(0x1a2)]=_0x1024b6([_0x359239(0x3,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x359239(0x4,_0x3223aa[_0x182123(0x40e)](_0x27845d['LocalCacheService'])),_0x359239(0x5,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x3a4)])),_0x359239(0x6,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x1dd)])),_0x359239(0x7,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x4f6)])),_0x359239(0x8,_0x3223aa[_0x182123(0x40e)](_0x38921c)),_0x359239(0x9,_0x3223aa[_0x182123(0x3bf)]),_0x359239(0xa,_0x3223aa[_0x182123(0x23b)]),_0x359239(0xb,_0x19d837['IMessageService']),_0x359239(0xc,_0x3223aa['IPermissionService']),_0x359239(0xd,_0x3223aa[_0x182123(0x203)](_0x49a942))],_0x27845d[_0x182123(0x1a2)]);var _0x1415ce=Object['defineProperty'],_0x18d57b=Object['getOwnPropertyDescriptor'],_0x584090=(_0x581125,_0x32d3ae,_0x528ced,_0x2890ec)=>{const _0x321ece=_0x182123;for(var _0x51c0a1=_0x2890ec>0x1?void 0x0:_0x2890ec?_0x18d57b(_0x32d3ae,_0x528ced):_0x32d3ae,_0x46119e=_0x581125[_0x321ece(0x4c3)]-0x1,_0xc47ed9;_0x46119e>=0x0;_0x46119e--)(_0xc47ed9=_0x581125[_0x46119e])&&(_0x51c0a1=(_0x2890ec?_0xc47ed9(_0x32d3ae,_0x528ced,_0x51c0a1):_0xc47ed9(_0x51c0a1))||_0x51c0a1);return _0x2890ec&&_0x51c0a1&&_0x1415ce(_0x32d3ae,_0x528ced,_0x51c0a1),_0x51c0a1;},_0x1419e4=(_0x81fe9c,_0x58a4f6)=>(_0x261810,_0x310653)=>_0x58a4f6(_0x261810,_0x310653,_0x81fe9c);_0x27845d[_0x182123(0x30b)]=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x5e5c48,_0x175edc,_0x372841){const _0x2e047b=_0x182123;super(),_0x571923(this,_0x2e047b(0x541),new Map()),_0x571923(this,'_entityInit$',new _0x41acaa[(_0x2e047b(0x378))]()),(this[_0x2e047b(0x526)]=_0x5e5c48,this['_collabSessionService']=_0x175edc,this[_0x2e047b(0x348)]=_0x372841,this[_0x2e047b(0x450)]());}[_0x182123(0x2cf)](){const _0x32a8af=_0x182123;super[_0x32a8af(0x2cf)](),this['_entities']['forEach'](_0x299aba=>_0x299aba[_0x32a8af(0x2cf)]()),this[_0x32a8af(0x541)][_0x32a8af(0x41f)]();}[_0x182123(0x30e)](_0x1c95b9){const _0x171dc3=_0x182123;var _0x2c0d54;return(_0x2c0d54=this[_0x171dc3(0x541)][_0x171dc3(0x53b)](_0x1c95b9))!=null?_0x2c0d54:null;}[_0x182123(0x20d)](_0x5d5a95){const _0x599796=_0x182123,_0x300b34=this[_0x599796(0x30e)](_0x5d5a95);return _0x300b34?_0x41acaa['of'](_0x300b34):this['_entityInit$'][_0x599796(0x493)](_0xe02055[_0x599796(0x22a)](_0x1692f9=>_0x1692f9[_0x599796(0x250)]===_0x5d5a95));}['_init'](){const _0x57e370=_0x182123;this[_0x57e370(0x348)][_0x57e370(0x2f4)](_0x3223aa['UniverInstanceType'][_0x57e370(0x2d4)])[_0x57e370(0x493)](_0x41acaa[_0x57e370(0x410)](this[_0x57e370(0x4ef)]),_0xe02055['delay'](0x10))[_0x57e370(0x10e)](async _0x47f032=>{const _0x3371fa=_0x57e370,_0x44353d=_0x47f032[_0x3371fa(0x27a)](),_0x12d12f=await this[_0x3371fa(0x3ae)](_0x44353d,_0x33d988[_0x3371fa(0x2d4)]);this[_0x3371fa(0x541)][_0x3371fa(0x132)](_0x44353d,_0x12d12f);}),this[_0x57e370(0x348)][_0x57e370(0x2f4)](_0x3223aa[_0x57e370(0x4b9)]['UNIVER_DOC'])[_0x57e370(0x493)](_0x41acaa[_0x57e370(0x410)](this[_0x57e370(0x4ef)]),_0xe02055[_0x57e370(0x187)](0x10))[_0x57e370(0x493)](_0xe02055[_0x57e370(0x22a)](_0x1da4db=>!_0x1da4db[_0x57e370(0x27a)]()[_0x57e370(0x139)]('__')))[_0x57e370(0x10e)](async _0x251403=>{const _0x1c9dd1=_0x57e370,_0x3dd56c=_0x251403[_0x1c9dd1(0x27a)](),_0x228f98=await this[_0x1c9dd1(0x3ae)](_0x3dd56c,_0x33d988[_0x1c9dd1(0x1c3)]);this[_0x1c9dd1(0x541)]['set'](_0x3dd56c,_0x228f98);}),_0x41acaa[_0x57e370(0x1ce)](this[_0x57e370(0x348)][_0x57e370(0x215)](_0x3223aa[_0x57e370(0x4b9)][_0x57e370(0x2d4)]),this[_0x57e370(0x348)]['getTypeOfUnitDisposed$'](_0x3223aa[_0x57e370(0x4b9)][_0x57e370(0x1c3)]))[_0x57e370(0x493)](_0x41acaa[_0x57e370(0x410)](this[_0x57e370(0x4ef)]))[_0x57e370(0x10e)](_0x2aba9d=>{const _0x4f509f=_0x57e370,_0x48e578=_0x2aba9d[_0x4f509f(0x27a)](),_0x37995f=this['_entities'][_0x4f509f(0x53b)](_0x48e578);_0x37995f&&(_0x37995f['dispose'](),this[_0x4f509f(0x541)][_0x4f509f(0x4e1)](_0x48e578));});}async[_0x182123(0x3ae)](_0x3dce2e,_0xca6b5a){const _0x1ba124=_0x182123,_0x365f90=await this[_0x1ba124(0x4b8)]['requireSession'](_0x3dce2e),_0x5e182d=this[_0x1ba124(0x526)]['createInstance'](this['_getCtorByUniverType'](_0xca6b5a),_0x3dce2e,_0xca6b5a,_0x365f90);return await _0x5e182d[_0x1ba124(0x3bb)](),this[_0x1ba124(0x316)][_0x1ba124(0x2e5)](_0x5e182d),_0x5e182d;}[_0x182123(0x3fe)](_0x4a707e){const _0x26e8cf=_0x182123;switch(_0x4a707e){case _0x33d988[_0x26e8cf(0x1c3)]:return _0x27845d[_0x26e8cf(0x22e)];case _0x33d988['UNIVER_SHEET']:return _0x27845d[_0x26e8cf(0x1a2)];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x4a707e);}}},_0x27845d['CollaborationController']=_0x584090([_0x1419e4(0x0,_0x3223aa['Inject'](_0x3223aa['Injector'])),_0x1419e4(0x1,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x3c7)])),_0x1419e4(0x2,_0x3223aa[_0x182123(0x247)])],_0x27845d[_0x182123(0x30b)]);const _0x426140=[_0x182123(0x1fe),'jiqing500',_0x182123(0x263),_0x182123(0x346),'blue400',_0x182123(0x3a2)];class _0x38c784 extends _0x3223aa[_0x182123(0x502)]{constructor(){const _0x4172d2=_0x182123;super(...arguments),_0x571923(this,_0x4172d2(0x42d),new Map()),_0x571923(this,_0x4172d2(0x1a6),0x0);}[_0x182123(0x292)](_0x393f2b){const _0x51eb69=_0x182123;if(this['_assignedColors'][_0x51eb69(0x39c)](_0x393f2b))return this['_assignedColors'][_0x51eb69(0x53b)](_0x393f2b);const _0x16ae7d=_0x426140[this[_0x51eb69(0x1a6)]];return this[_0x51eb69(0x1a6)]=(this[_0x51eb69(0x1a6)]+0x1)%_0x426140[_0x51eb69(0x4c3)],this[_0x51eb69(0x42d)]['set'](_0x393f2b,_0x16ae7d),_0x16ae7d;}}var _0x315e40=Object[_0x182123(0x33a)],_0xee615=Object[_0x182123(0x363)],_0x4748e3=(_0x17b4d8,_0x199da5,_0x39ee66,_0x2fdd71)=>{for(var _0x2fe7b1=_0x2fdd71>0x1?void 0x0:_0x2fdd71?_0xee615(_0x199da5,_0x39ee66):_0x199da5,_0x1bf8e5=_0x17b4d8['length']-0x1,_0x7f2182;_0x1bf8e5>=0x0;_0x1bf8e5--)(_0x7f2182=_0x17b4d8[_0x1bf8e5])&&(_0x2fe7b1=(_0x2fdd71?_0x7f2182(_0x199da5,_0x39ee66,_0x2fe7b1):_0x7f2182(_0x2fe7b1))||_0x2fe7b1);return _0x2fdd71&&_0x2fe7b1&&_0x315e40(_0x199da5,_0x39ee66,_0x2fe7b1),_0x2fe7b1;},_0xf5c277=(_0x51a2f9,_0x403cab)=>(_0x1b56e8,_0x509067)=>_0x403cab(_0x1b56e8,_0x509067,_0x51a2f9);const _0x1af703=0x12c,_0x4ff0db=0x64;let _0x4e93fc=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0xb51cbb,_0xd04235,_0x4766f5,_0x45b27f,_0xd7ff7a,_0x110e06,_0x3998a7,_0x41c8a5,_0x3bfc97){const _0x2b3c4e=_0x182123;super(),_0x571923(this,_0x2b3c4e(0x1ab),!0x1),_0x571923(this,_0x2b3c4e(0x450),!0x1),_0x571923(this,'_cursorInfo$',new _0x41acaa[(_0x2b3c4e(0x30c))](new Map())),_0x571923(this,'cursorInfo$',this['_cursorInfo$'][_0x2b3c4e(0x28d)]()),_0x571923(this,'_roomMembers$',new _0x41acaa['BehaviorSubject']([])),_0x571923(this,'roomMembers$',this[_0x2b3c4e(0x287)][_0x2b3c4e(0x493)](_0x41acaa[_0x2b3c4e(0x160)](_0x1af703))),_0x571923(this,_0x2b3c4e(0x161),_0x3223aa[_0x2b3c4e(0x180)](_0x5e14ab=>{const _0xa2fb66=_0x2b3c4e,_0x3a883a={'eventID':_0x502235['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0xa2fb66(0x250)],'memberID':this[_0xa2fb66(0x22f)][_0xa2fb66(0x17a)](),'selection':_0x3f97d6(_0x5e14ab)}};this['_session'][_0xa2fb66(0x4a0)](_0x3a883a,this[_0xa2fb66(0x250)]);},_0x4ff0db)),(this[_0x2b3c4e(0x250)]=_0xb51cbb,this[_0x2b3c4e(0x22f)]=_0xd04235,this[_0x2b3c4e(0x526)]=_0x4766f5,this[_0x2b3c4e(0x257)]=_0x45b27f,this['_memberService']=_0xd7ff7a,this['_syncEditingCollabCursorService']=_0x110e06,this[_0x2b3c4e(0x2b5)]=_0x3998a7,this[_0x2b3c4e(0x348)]=_0x41c8a5,this[_0x2b3c4e(0x198)]=_0x3bfc97);}get['cursorInfo'](){const _0x102075=_0x182123;return this[_0x102075(0x33f)]['getValue']();}get[_0x182123(0x11c)](){const _0x3d6845=_0x182123;return this['_roomMembers$'][_0x3d6845(0x191)]();}[_0x182123(0x2cf)](){const _0x1a4054=_0x182123;super[_0x1a4054(0x2cf)](),this[_0x1a4054(0x33f)][_0x1a4054(0x2e5)](new Map()),this['_cursorInfo$'][_0x1a4054(0x4f1)](),this[_0x1a4054(0x287)][_0x1a4054(0x2e5)]([]),this[_0x1a4054(0x287)][_0x1a4054(0x4f1)]();}[_0x182123(0x3bb)](){const _0x3b133f=_0x182123;this[_0x3b133f(0x450)]||(this['_init']=!0x0,this[_0x3b133f(0x22f)][_0x3b133f(0x4d0)][_0x3b133f(0x493)](_0x41acaa[_0x3b133f(0x410)](this[_0x3b133f(0x4ef)]))[_0x3b133f(0x10e)](_0x1ddfc2=>{const _0x38424d=_0x3b133f;_0x1ddfc2===_0x49249e[_0x38424d(0x233)]?this[_0x38424d(0x15d)]():this['_toggleOffline']();}),this[_0x3b133f(0x22f)][_0x3b133f(0x36e)][_0x3b133f(0x493)](_0x41acaa[_0x3b133f(0x410)](this[_0x3b133f(0x4ef)]))[_0x3b133f(0x10e)](_0x542757=>{const _0x5ed2dd=_0x3b133f,_0x548422=_0x542757[_0x5ed2dd(0x138)];_0x548422===_0x502235[_0x5ed2dd(0x2f0)][_0x5ed2dd(0x171)]&&this[_0x5ed2dd(0x368)](_0x542757),_0x548422===_0x502235['CollaborationEvent'][_0x5ed2dd(0x205)]&&this['_onCursorDelete'](_0x542757);}),this[_0x3b133f(0x2c6)](this[_0x3b133f(0x198)][_0x3b133f(0x3cb)](_0x459de0=>{const _0x171cf0=_0x3b133f,_0xa0a259=_0x459de0[_0x171cf0(0x4b1)];_0xa0a259!=null&&this[_0x171cf0(0x1ab)]&&_0x459de0['id']===_0xba5a96[_0x171cf0(0x3bd)]['id']&&_0xa0a259[_0x171cf0(0x504)]===this[_0x171cf0(0x250)]&&_0xa0a259[_0x171cf0(0x2c1)]===!0x1&&_0xa0a259[_0x171cf0(0x4c8)]['length']>0x0&&this[_0x171cf0(0x161)](_0xa0a259[_0x171cf0(0x4c8)]);})),this[_0x3b133f(0x202)]['collabCursorState$'][_0x3b133f(0x493)](_0x41acaa['takeUntil'](this[_0x3b133f(0x4ef)]))['subscribe'](_0x142452=>{const _0x20d944=_0x3b133f;if((_0x142452==null?void 0x0:_0x142452['unitID'])!==this['unitID'])return;const _0x50a6d0={'eventID':_0x502235[_0x20d944(0x2f0)][_0x20d944(0x171)],'data':_0x142452};this['_onCursorUpdate'](_0x50a6d0);}),this[_0x3b133f(0x2c6)](this[_0x3b133f(0x198)][_0x3b133f(0x3cb)](_0x56e278=>{const _0x1f5eab=_0x3b133f;if(_0x56e278['params']==null)return;const _0x164422=_0x56e278['params'];if(_0x56e278['id']!==_0xba5a96[_0x1f5eab(0x2c5)]['id']||_0x164422[_0x1f5eab(0x504)]!==this[_0x1f5eab(0x250)])return;const _0x44311a={'id':'doc.mutation.rich-text-editing','params':_0x164422},_0x26dbaf=this['cursorInfo'];for(const [_0x391961,_0x7339e5]of _0x26dbaf){const _0x469eea={'id':_0x1f5eab(0x459),'params':{'unitId':this[_0x1f5eab(0x250)],'actions':null,'textRanges':_0x7339e5[_0x1f5eab(0x4c8)]}},_0x5da8d1=this[_0x1f5eab(0x2b5)][_0x1f5eab(0x12b)](_0x44311a,_0x469eea,!0x1);if(_0x502235['isTransformMutationFailure'](_0x5da8d1))throw _0x5da8d1[_0x1f5eab(0x1b1)];_0x26dbaf[_0x1f5eab(0x132)](_0x391961,{..._0x7339e5,'ranges':_0x5da8d1['m2Prime']['params'][_0x1f5eab(0x200)]});}queueMicrotask(()=>{const _0x59cafa=_0x1f5eab;this[_0x59cafa(0x33f)][_0x59cafa(0x2e5)](_0x26dbaf);});})));}[_0x182123(0x368)](_0x262623){const _0x672fea=_0x182123;var _0x38c7b8,_0x46ba7e;const {memberID:_0x5704a8,selection:_0x4f8006}=_0x262623[_0x672fea(0x46f)],_0x72f5fc=_0x50953f(_0x4f8006),_0x133f97=(_0x46ba7e=(_0x38c7b8=this['_memberService']['getMember'](this[_0x672fea(0x250)],_0x5704a8))==null?void 0x0:_0x38c7b8[_0x672fea(0x1dc)])!=null?_0x46ba7e:_0x672fea(0x231),_0xc65c70={'color':this[_0x672fea(0x257)]['assignAColorForMemberID'](_0x5704a8),'name':_0x133f97,'ranges':_0x72f5fc},_0x10cf0f=this[_0x672fea(0x1e7)];_0x10cf0f['set'](_0x5704a8,_0xc65c70),this['_cursorInfo$'][_0x672fea(0x2e5)](_0x10cf0f);}[_0x182123(0x1bd)](_0x34b1e5){const _0x30cf43=_0x182123,{memberID:_0x1a37da}=_0x34b1e5['data'],_0x8f5041=this['cursorInfo'];_0x8f5041[_0x30cf43(0x4e1)](_0x1a37da),this[_0x30cf43(0x33f)]['next'](_0x8f5041);}['_toggleOnline'](){const _0x1a5c96=_0x182123;var _0x467ffc;if(this[_0x1a5c96(0x1ab)]=!0x0,((_0x467ffc=this[_0x1a5c96(0x348)]['getFocusedUnit']())==null?void 0x0:_0x467ffc[_0x1a5c96(0x27a)]())!==this[_0x1a5c96(0x250)])return;const _0xa11cb8=this[_0x1a5c96(0x526)][_0x1a5c96(0x53b)](_0xba5a96['DocSelectionManagerService'])[_0x1a5c96(0x16b)]();Array[_0x1a5c96(0x390)](_0xa11cb8)&&_0xa11cb8['length']>0x0&&this[_0x1a5c96(0x161)](_0xa11cb8);}[_0x182123(0x1bb)](){const _0x3729bc=_0x182123;this[_0x3729bc(0x1ab)]=!0x1;}};_0x4e93fc=_0x4748e3([_0xf5c277(0x2,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0xf5c277(0x3,_0x3223aa[_0x182123(0x40e)](_0x38c784)),_0xf5c277(0x4,_0x3223aa['Inject'](_0x842f02)),_0xf5c277(0x5,_0x3223aa[_0x182123(0x40e)](_0x729593)),_0xf5c277(0x6,_0x502235[_0x182123(0x437)]),_0xf5c277(0x7,_0x3223aa['IUniverInstanceService']),_0xf5c277(0x8,_0x3223aa[_0x182123(0x23b)])],_0x4e93fc);var _0xad9777=Object[_0x182123(0x33a)],_0x520d7d=Object['getOwnPropertyDescriptor'],_0x15a9ce=(_0x271bc0,_0x3b49de,_0x222853,_0x3cb137)=>{const _0x41735e=_0x182123;for(var _0x5d9b0d=_0x3cb137>0x1?void 0x0:_0x3cb137?_0x520d7d(_0x3b49de,_0x222853):_0x3b49de,_0x4c8b0a=_0x271bc0[_0x41735e(0x4c3)]-0x1,_0x4a8a13;_0x4c8b0a>=0x0;_0x4c8b0a--)(_0x4a8a13=_0x271bc0[_0x4c8b0a])&&(_0x5d9b0d=(_0x3cb137?_0x4a8a13(_0x3b49de,_0x222853,_0x5d9b0d):_0x4a8a13(_0x5d9b0d))||_0x5d9b0d);return _0x3cb137&&_0x5d9b0d&&_0xad9777(_0x3b49de,_0x222853,_0x5d9b0d),_0x5d9b0d;},_0x145b1e=(_0x5de507,_0x599931)=>(_0x47b05d,_0x5d3e76)=>_0x599931(_0x47b05d,_0x5d3e76,_0x5de507);const _0x4b297d=0x12c,_0x2a13cd=0x64,_0x5e2f8a=()=>{let _0x52a098=[],_0x270d7c=!0x1;return _0x394e0b=>{_0x52a098['push'](_0x394e0b),_0x270d7c||(_0x270d7c=!0x0,setTimeout(()=>{const _0x2ecb27=_0x2e84;_0x52a098[_0x2ecb27(0x19f)](_0x1b7012=>_0x1b7012()),_0x52a098=[],_0x270d7c=!0x1;}));};};let _0x378a71=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x2b0910,_0x2ba034,_0x18fd6d,_0x358aa8,_0x475a7,_0xf96252,_0x192872,_0x18e822){const _0x1f718b=_0x182123;super(),_0x571923(this,_0x1f718b(0x1ab),!0x1),_0x571923(this,_0x1f718b(0x450),!0x1),_0x571923(this,_0x1f718b(0x33f),new _0x41acaa['BehaviorSubject'](new Map())),_0x571923(this,_0x1f718b(0x133),this[_0x1f718b(0x33f)]['asObservable']()),_0x571923(this,_0x1f718b(0x287),new _0x41acaa[(_0x1f718b(0x30c))]([])),_0x571923(this,_0x1f718b(0x374),this[_0x1f718b(0x287)][_0x1f718b(0x493)](_0x41acaa[_0x1f718b(0x160)](_0x4b297d))),_0x571923(this,_0x1f718b(0x161),_0x3223aa[_0x1f718b(0x180)]((_0x11101,_0x1ef7f7)=>{const _0x5b521b=_0x1f718b,_0x2c4362={'eventID':_0x502235[_0x5b521b(0x2f0)][_0x5b521b(0x171)],'data':{'unitID':this[_0x5b521b(0x250)],'memberID':this[_0x5b521b(0x22f)][_0x5b521b(0x17a)](),'selection':_0x5a0816[_0x5b521b(0x3f6)](_0x11101,_0x1ef7f7[_0x5b521b(0x2a1)])}};this[_0x5b521b(0x22f)][_0x5b521b(0x4a0)](_0x2c4362,this[_0x5b521b(0x250)]);},_0x2a13cd)),(this[_0x1f718b(0x250)]=_0x2b0910,this[_0x1f718b(0x22f)]=_0x2ba034,this[_0x1f718b(0x526)]=_0x18fd6d,this[_0x1f718b(0x257)]=_0x358aa8,this['_memberService']=_0x475a7,this[_0x1f718b(0x348)]=_0xf96252,this[_0x1f718b(0x198)]=_0x192872,this[_0x1f718b(0x20b)]=_0x18e822);}get[_0x182123(0x1e7)](){const _0xe9e788=_0x182123;return this[_0xe9e788(0x33f)][_0xe9e788(0x191)]();}get[_0x182123(0x11c)](){const _0x393275=_0x182123;return this['_roomMembers$'][_0x393275(0x191)]();}[_0x182123(0x2cf)](){const _0x2d02a1=_0x182123;super['dispose'](),this[_0x2d02a1(0x33f)][_0x2d02a1(0x2e5)](new Map()),this['_cursorInfo$'][_0x2d02a1(0x4f1)](),this[_0x2d02a1(0x287)][_0x2d02a1(0x2e5)]([]),this[_0x2d02a1(0x287)][_0x2d02a1(0x4f1)]();}[_0x182123(0x3bb)](){const _0x17c340=_0x182123;this['_init']||(this[_0x17c340(0x450)]=!0x0,this[_0x17c340(0x22f)][_0x17c340(0x4d0)][_0x17c340(0x493)](_0x41acaa['takeUntil'](this[_0x17c340(0x4ef)]))['subscribe'](_0x34673d=>{const _0x48d20f=_0x17c340;_0x34673d===_0x49249e[_0x48d20f(0x233)]?this[_0x48d20f(0x15d)]():this[_0x48d20f(0x1bb)]();}),this[_0x17c340(0x22f)]['event$'][_0x17c340(0x493)](_0x41acaa[_0x17c340(0x410)](this[_0x17c340(0x4ef)]))[_0x17c340(0x10e)](_0x57245c=>{const _0x27745=_0x17c340,_0x52c203=_0x57245c[_0x27745(0x138)];_0x52c203===_0x502235[_0x27745(0x2f0)]['UPDATE_CURSOR']&&this[_0x27745(0x368)](_0x57245c),_0x52c203===_0x502235['CollaborationEvent'][_0x27745(0x205)]&&this[_0x27745(0x1bd)](_0x57245c);}),this[_0x17c340(0x238)](),this[_0x17c340(0x2c6)](this[_0x17c340(0x198)][_0x17c340(0x3cb)](_0x5d771c=>{const _0x51b4ac=_0x17c340;if(this[_0x51b4ac(0x1ab)]&&_0x5d771c['id']===_0x4f46f0[_0x51b4ac(0x122)]['id']&&_0x5d771c['params']['unitId']===this[_0x51b4ac(0x250)]){const _0x4e516b=_0x5d771c[_0x51b4ac(0x4b1)];this[_0x51b4ac(0x161)](_0x4e516b[_0x51b4ac(0x382)],_0x4e516b[_0x51b4ac(0x31a)][0x0]);}})));}[_0x182123(0x368)](_0x4f6b7c){const _0x3d6caa=_0x182123;var _0x120e37,_0x283a45;const {memberID:_0x2da24e,selection:_0x590101}=_0x4f6b7c['data'],{sheetName:_0x6dfd26,range:_0x568e1e}=_0x5a0816[_0x3d6caa(0x33c)](_0x590101),_0x55ca1e={'name':(_0x283a45=(_0x120e37=this['_memberService'][_0x3d6caa(0x23d)](this[_0x3d6caa(0x250)],_0x2da24e))==null?void 0x0:_0x120e37[_0x3d6caa(0x1dc)])!=null?_0x283a45:'Unknown\x20user','range':this[_0x3d6caa(0x3bc)](_0x6dfd26,_0x568e1e),'sheetID':_0x6dfd26,'color':this[_0x3d6caa(0x257)][_0x3d6caa(0x292)](_0x2da24e),'selection':_0x590101},_0x1cbe6d=this[_0x3d6caa(0x1e7)];_0x1cbe6d[_0x3d6caa(0x132)](_0x2da24e,_0x55ca1e),this[_0x3d6caa(0x33f)]['next'](_0x1cbe6d);}[_0x182123(0x1bd)](_0x1108ad){const _0x35e677=_0x182123,{memberID:_0x2e5deb}=_0x1108ad[_0x35e677(0x46f)],_0x1725a3=this['cursorInfo'];_0x1725a3[_0x35e677(0x4e1)](_0x2e5deb),this[_0x35e677(0x33f)][_0x35e677(0x2e5)](_0x1725a3);}[_0x182123(0x3bc)](_0x477f62,_0x3975e6){const _0x540dd4=_0x182123;var _0x58b570,_0x507874;const _0x1ea4b6=(_0x507874=(_0x58b570=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x540dd4(0x250)]))==null?void 0x0:_0x58b570['getSheetBySheetId'](_0x477f62))==null?void 0x0:_0x507874[_0x540dd4(0x2a9)]();return(_0x1ea4b6==null?void 0x0:_0x1ea4b6[_0x540dd4(0x2c9)](_0x36aa89=>_0x3223aa[_0x540dd4(0x1a0)]['contains'](_0x36aa89,_0x3975e6)))||_0x3975e6;}[_0x182123(0x238)](){const _0x51d79b=_0x182123,_0x3741f5=new _0x3223aa[(_0x51d79b(0x2d7))](),_0x165289=_0x5e2f8a(),_0x2aadc3=()=>{const _0x4adb5d=_0x51d79b;_0x3741f5[_0x4adb5d(0x2cf)]();const _0x11ec76=(_0x5d8172,_0x466a3b,_0x552f9b,_0x2d4715)=>{const _0x807d71=_0x4adb5d;let _0x4911f1=[];switch(_0x5d8172['id']){case _0x4f46f0[_0x807d71(0x42e)][_0x807d71(0x228)]:{_0x4911f1=_0x4f46f0[_0x807d71(0x338)](_0x5d8172,_0x2d4715);break;}case _0x4f46f0[_0x807d71(0x42e)][_0x807d71(0x4be)]:{_0x4911f1=_0x4f46f0[_0x807d71(0x350)](_0x5d8172,_0x2d4715);break;}case _0x4f46f0['EffectRefRangId'][_0x807d71(0x2de)]:{_0x4911f1=_0x4f46f0[_0x807d71(0x32f)](_0x5d8172,_0x2d4715);break;}case _0x4f46f0[_0x807d71(0x42e)][_0x807d71(0x324)]:{_0x4911f1=_0x4f46f0[_0x807d71(0x4c1)](_0x5d8172,_0x2d4715);break;}case _0x4f46f0[_0x807d71(0x42e)][_0x807d71(0x4f2)]:{_0x4911f1=_0x4f46f0[_0x807d71(0x3ba)](_0x5d8172,_0x2d4715);break;}case _0x4f46f0[_0x807d71(0x42e)]['InsertRowCommandId']:{_0x4911f1=_0x4f46f0[_0x807d71(0x254)](_0x5d8172,_0x2d4715);break;}case _0x4f46f0['EffectRefRangId'][_0x807d71(0x216)]:{_0x4911f1=_0x4f46f0['handleMoveRange'](_0x5d8172,_0x2d4715);break;}case _0x4f46f0[_0x807d71(0x42e)]['RemoveColCommandId']:{_0x4911f1=_0x4f46f0[_0x807d71(0x129)](_0x5d8172,_0x2d4715);break;}case _0x4f46f0['EffectRefRangId'][_0x807d71(0x3b1)]:{_0x4911f1=_0x4f46f0[_0x807d71(0x194)](_0x5d8172,_0x2d4715);break;}}const _0x1916b4=_0x4f46f0[_0x807d71(0x4a5)](_0x4911f1,_0x2d4715),_0x5e09ac=this[_0x807d71(0x1e7)][_0x807d71(0x53b)](_0x466a3b);if(_0x5e09ac&&_0x1916b4){const _0x943404={..._0x5e09ac,'range':_0x1916b4};this[_0x807d71(0x1e7)]['set'](_0x466a3b,_0x943404),_0x165289(()=>{const _0xb4c76c=_0x807d71,_0x2807dd=this[_0xb4c76c(0x20b)]['registerRefRange'](_0x1916b4,_0x465353=>(_0x2807dd[_0xb4c76c(0x2cf)](),_0x11ec76(_0x465353,_0x466a3b,_0x552f9b,_0x1916b4)));_0x3741f5['add'](_0x2807dd);});}return{'redos':[],'undos':[]};};this[_0x4adb5d(0x1e7)][_0x4adb5d(0x19f)]((_0x14237c,_0x12ca51)=>{const _0x1121dc=_0x4adb5d,{range:_0x5a787d,sheetID:_0x64d227}=_0x14237c,_0x38eeaf=this[_0x1121dc(0x20b)][_0x1121dc(0x479)](_0x5a787d,_0x17792b=>(_0x38eeaf[_0x1121dc(0x2cf)](),_0x11ec76(_0x17792b,_0x12ca51,_0x64d227,_0x5a787d)));_0x3741f5[_0x1121dc(0x460)](_0x38eeaf);});};this[_0x51d79b(0x2c6)](_0x3223aa[_0x51d79b(0x1ed)](this[_0x51d79b(0x33f)][_0x51d79b(0x10e)](()=>{_0x2aadc3();})));}[_0x182123(0x15d)](){const _0x3012c7=_0x182123;var _0x3ab972,_0x51a1be;if(this[_0x3012c7(0x1ab)]=!0x0,((_0x3ab972=this[_0x3012c7(0x348)][_0x3012c7(0x3eb)]())==null?void 0x0:_0x3ab972[_0x3012c7(0x27a)]())!==this[_0x3012c7(0x250)])return;const _0x99770f=(_0x51a1be=this[_0x3012c7(0x526)]['get'](_0x4f46f0['SheetsSelectionsService'])[_0x3012c7(0x110)]())==null?void 0x0:_0x51a1be[0x0],_0x2b404e=this['_univerInstanceService'][_0x3012c7(0x3d6)](_0x3223aa[_0x3012c7(0x4b9)]['UNIVER_SHEET'])[_0x3012c7(0x546)]();_0x99770f&&_0x2b404e&&this[_0x3012c7(0x161)](_0x2b404e[_0x3012c7(0x1a4)](),_0x99770f);}[_0x182123(0x1bb)](){const _0x1295e0=_0x182123;this[_0x1295e0(0x1ab)]=!0x1;}};_0x378a71=_0x15a9ce([_0x145b1e(0x2,_0x3223aa[_0x182123(0x40e)](_0x3223aa['Injector'])),_0x145b1e(0x3,_0x3223aa[_0x182123(0x40e)](_0x38c784)),_0x145b1e(0x4,_0x3223aa[_0x182123(0x40e)](_0x842f02)),_0x145b1e(0x5,_0x3223aa['IUniverInstanceService']),_0x145b1e(0x6,_0x3223aa[_0x182123(0x23b)]),_0x145b1e(0x7,_0x3223aa[_0x182123(0x40e)](_0x4f46f0[_0x182123(0x29c)]))],_0x378a71);var _0x587293=Object['defineProperty'],_0x4be11b=Object[_0x182123(0x363)],_0x30b390=(_0x1accd9,_0x3705a8,_0x39ce4f,_0x26914b)=>{const _0x155fc7=_0x182123;for(var _0x19c4da=_0x26914b>0x1?void 0x0:_0x26914b?_0x4be11b(_0x3705a8,_0x39ce4f):_0x3705a8,_0x1ade64=_0x1accd9[_0x155fc7(0x4c3)]-0x1,_0x64e1ab;_0x1ade64>=0x0;_0x1ade64--)(_0x64e1ab=_0x1accd9[_0x1ade64])&&(_0x19c4da=(_0x26914b?_0x64e1ab(_0x3705a8,_0x39ce4f,_0x19c4da):_0x64e1ab(_0x19c4da))||_0x19c4da);return _0x26914b&&_0x19c4da&&_0x587293(_0x3705a8,_0x39ce4f,_0x19c4da),_0x19c4da;},_0x4c4519=(_0x41907f,_0x597690)=>(_0x1d0c88,_0x31ae47)=>_0x597690(_0x1d0c88,_0x31ae47,_0x41907f);let _0x5a312c=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x350f2e,_0x3a460e,_0x2428a7){const _0x4c1a1e=_0x182123;super(),_0x571923(this,_0x4c1a1e(0x541),new Map()),_0x571923(this,_0x4c1a1e(0x316),new _0x41acaa[(_0x4c1a1e(0x378))]()),(this[_0x4c1a1e(0x348)]=_0x350f2e,this['_injector']=_0x3a460e,this[_0x4c1a1e(0x4b8)]=_0x2428a7,this[_0x4c1a1e(0x450)]());}[_0x182123(0x2cf)](){const _0x4f1b2e=_0x182123;super[_0x4f1b2e(0x2cf)](),this[_0x4f1b2e(0x316)][_0x4f1b2e(0x4f1)](),this[_0x4f1b2e(0x541)][_0x4f1b2e(0x19f)](_0x3abba0=>_0x3abba0[_0x4f1b2e(0x2cf)]());}['getCollabCursors$'](_0x303103){const _0x2c91f1=_0x182123;return this[_0x2c91f1(0x541)][_0x2c91f1(0x39c)](_0x303103)?this[_0x2c91f1(0x541)][_0x2c91f1(0x53b)](_0x303103)[_0x2c91f1(0x133)]:this[_0x2c91f1(0x316)][_0x2c91f1(0x493)](_0x41acaa['filter'](_0x5182ae=>_0x5182ae[_0x2c91f1(0x250)]===_0x303103),_0x41acaa[_0x2c91f1(0x296)](_0x5a144c=>_0x5a144c[_0x2c91f1(0x133)]));}[_0x182123(0x450)](){const _0x5a4cf6=_0x182123;this[_0x5a4cf6(0x348)]['getTypeOfUnitAdded$'](_0x3223aa[_0x5a4cf6(0x4b9)][_0x5a4cf6(0x2d4)])[_0x5a4cf6(0x493)](_0x41acaa[_0x5a4cf6(0x410)](this['dispose$']))['subscribe'](async _0x46718c=>{const _0x44837b=_0x5a4cf6,_0x583e4e=_0x46718c['getUnitId'](),_0x492b89=await this['_startSheetCollabCursor'](_0x583e4e);this[_0x44837b(0x316)][_0x44837b(0x2e5)](_0x492b89),this[_0x44837b(0x541)][_0x44837b(0x132)](_0x583e4e,_0x492b89);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3223aa[_0x5a4cf6(0x4b9)][_0x5a4cf6(0x1c3)])[_0x5a4cf6(0x493)](_0x41acaa[_0x5a4cf6(0x410)](this['dispose$']))['pipe'](_0x41acaa[_0x5a4cf6(0x22a)](_0x532e8a=>!_0x532e8a['getUnitId']()[_0x5a4cf6(0x139)]('__')))['subscribe'](async _0xcd13d6=>{const _0x3d06f8=_0x5a4cf6,_0xc90c29=_0xcd13d6[_0x3d06f8(0x27a)](),_0x3f01db=await this[_0x3d06f8(0x2f1)](_0xc90c29);this['_entityInit$'][_0x3d06f8(0x2e5)](_0x3f01db),this[_0x3d06f8(0x541)][_0x3d06f8(0x132)](_0xc90c29,_0x3f01db);}),_0x41acaa['merge'](this[_0x5a4cf6(0x348)]['getTypeOfUnitDisposed$'](_0x3223aa[_0x5a4cf6(0x4b9)][_0x5a4cf6(0x1c3)]),this['_univerInstanceService'][_0x5a4cf6(0x215)](_0x3223aa['UniverInstanceType']['UNIVER_SHEET']))['pipe'](_0x41acaa[_0x5a4cf6(0x410)](this[_0x5a4cf6(0x4ef)]))[_0x5a4cf6(0x10e)](_0x5cc57a=>{const _0x49dbd0=_0x5a4cf6,_0x2e4934=_0x5cc57a[_0x49dbd0(0x27a)](),_0x1564a5=this['_entities'][_0x49dbd0(0x53b)](_0x2e4934);_0x1564a5&&(_0x1564a5[_0x49dbd0(0x2cf)](),this[_0x49dbd0(0x541)][_0x49dbd0(0x4e1)](_0x2e4934));});}async[_0x182123(0x34e)](_0x11c167){const _0x3e8ce1=_0x182123,_0x2f2bd3=await this[_0x3e8ce1(0x4b8)][_0x3e8ce1(0x31f)](_0x11c167),_0xdcb088=this[_0x3e8ce1(0x526)][_0x3e8ce1(0x336)](_0x378a71,_0x11c167,_0x2f2bd3);return _0xdcb088[_0x3e8ce1(0x3bb)](),_0xdcb088;}async[_0x182123(0x2f1)](_0xe36000){const _0x4215e7=_0x182123,_0x242304=await this['_collabSessionService'][_0x4215e7(0x31f)](_0xe36000),_0x1b28fb=this[_0x4215e7(0x526)][_0x4215e7(0x336)](_0x4e93fc,_0xe36000,_0x242304);return _0x1b28fb[_0x4215e7(0x3bb)](),_0x1b28fb;}};_0x5a312c=_0x30b390([_0x4c4519(0x0,_0x3223aa['IUniverInstanceService']),_0x4c4519(0x1,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x4c4519(0x2,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x3c7)]))],_0x5a312c);const _0x1644b8=0x14,_0x472a36=0xc8,_0x2e9517=0x4,_0x2ac4a0=0x5;function _0x48b699(_0x28ec5,_0x2f5cec){const _0x29dab7=_0x182123;let {radius:_0x82ad77,width:_0x1d2c6c,height:_0x1b1309}=_0x2f5cec;_0x82ad77=_0x82ad77!=null?_0x82ad77:0x0,_0x1d2c6c=_0x1d2c6c!=null?_0x1d2c6c:0x1e,_0x1b1309=_0x1b1309!=null?_0x1b1309:0x1e;let _0x7f1c3a=0x0,_0x166fec=0x0,_0xc305d6=0x0;_0x7f1c3a=_0x166fec=_0xc305d6=Math[_0x29dab7(0x4f4)](_0x82ad77,_0x1d2c6c/0x2,_0x1b1309/0x2),_0x28ec5[_0x29dab7(0x142)](),_0x28ec5[_0x29dab7(0x4e6)](_0x7f1c3a,0x0),_0x28ec5['lineTo'](_0x1d2c6c-_0x166fec,0x0),_0x28ec5[_0x29dab7(0x3f1)](_0x1d2c6c-_0x166fec,_0x166fec,_0x166fec,Math['PI']*0x3/0x2,0x0,!0x1),_0x28ec5['lineTo'](_0x1d2c6c,_0x1b1309-_0xc305d6),_0x28ec5['arc'](_0x1d2c6c-_0xc305d6,_0x1b1309-_0xc305d6,_0xc305d6,0x0,Math['PI']/0x2,!0x1),_0x28ec5[_0x29dab7(0x15f)](0x0,_0x1b1309),_0x28ec5[_0x29dab7(0x15f)](0x0,_0x7f1c3a),_0x28ec5[_0x29dab7(0x3f1)](_0x7f1c3a,_0x7f1c3a,_0x7f1c3a,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x28ec5['closePath'](),_0x2f5cec[_0x29dab7(0x273)]&&(_0x28ec5['save'](),_0x28ec5[_0x29dab7(0x4d6)]=_0x2f5cec[_0x29dab7(0x273)],_0x2f5cec['fillRule']===_0x29dab7(0x445)?_0x28ec5['fill'](_0x29dab7(0x445)):_0x28ec5[_0x29dab7(0x273)](),_0x28ec5['restore']());}class _0x2638fd extends _0x20af9e[_0x182123(0x18b)]{constructor(_0x303f77,_0x501ead){const _0x19930f=_0x182123;super(_0x303f77,_0x501ead),_0x571923(this,_0x19930f(0x4aa)),_0x571923(this,_0x19930f(0x23e)),(this[_0x19930f(0x4aa)]=_0x501ead==null?void 0x0:_0x501ead['color'],this[_0x19930f(0x23e)]=_0x501ead==null?void 0x0:_0x501ead[_0x19930f(0x23e)]);}static[_0x182123(0x2eb)](_0x55bd6a,_0x1fa3bd){const _0x3e40b6=_0x182123,{text:_0x5c8f65,color:_0x4beb27}=_0x1fa3bd;_0x55bd6a['save'](),_0x55bd6a[_0x3e40b6(0x240)]=_0x3e40b6(0x308);const _0x1167ae=_0x55bd6a[_0x3e40b6(0x151)](_0x5c8f65)['width'],_0x9851f6=Math[_0x3e40b6(0x4f4)](_0x1167ae+0x2*_0x2e9517,_0x472a36);_0x48b699(_0x55bd6a,{'height':_0x1644b8,'radius':0x4,'width':_0x9851f6,'fill':_0x4beb27,'evented':!0x1}),_0x55bd6a[_0x3e40b6(0x4d6)]=_0x3e40b6(0x193);const _0x208609=_0x2e9517,_0x237b77=_0x1644b8-_0x2ac4a0,_0x4d7545=_0x472a36-0x2*_0x2e9517;if(_0x1167ae>_0x4d7545){let _0x2a649a='',_0x38f233=0x0;for(const _0x5b9567 of _0x5c8f65){const _0x52fbeb=_0x55bd6a[_0x3e40b6(0x151)](_0x5b9567)[_0x3e40b6(0x4cb)];if(_0x38f233+_0x52fbeb<=_0x4d7545-_0x55bd6a[_0x3e40b6(0x151)](_0x3e40b6(0x3c0))[_0x3e40b6(0x4cb)])_0x2a649a+=_0x5b9567,_0x38f233+=_0x52fbeb;else{_0x2a649a+=_0x3e40b6(0x3c0);break;}}_0x55bd6a['fillText'](_0x2a649a,_0x208609,_0x237b77);}else _0x55bd6a[_0x3e40b6(0x13d)](_0x5c8f65,_0x208609,_0x237b77);_0x55bd6a[_0x3e40b6(0x3f3)]();}['_draw'](_0x49c5ab){const _0x5d07af=_0x182123;_0x2638fd[_0x5d07af(0x2eb)](_0x49c5ab,this);}}const _0xa09b78=_0x182123(0x503),_0x220923=_0x182123(0x30a),_0x49d278='collab-rect-range-',_0x4f5268=0x6,_0x10763e=1.5,_0x123d39=0x4,_0x24f666=1.5,_0xf41ed5=_0x182123(0x4a4);class _0x82fb2b{constructor(_0x372eb6,_0x2fd342,_0x567f34,_0x59957d){const _0x44fc16=_0x182123;_0x571923(this,'_shapes',[]),_0x571923(this,_0x44fc16(0x26b),null),_0x571923(this,_0x44fc16(0x36f),null),_0x571923(this,_0x44fc16(0x497),null),_0x571923(this,_0x44fc16(0x3b0),null),_0x571923(this,_0x44fc16(0x38a),null),(this[_0x44fc16(0x430)]=_0x372eb6,this[_0x44fc16(0x29a)]=_0x2fd342,this[_0x44fc16(0x249)]=_0x567f34,this['_document']=_0x59957d,this[_0x44fc16(0x2fa)]());}set[_0x182123(0x4a6)](_0x58270d){const _0x259058=_0x182123;_0x58270d?(this[_0x259058(0x497)]&&this[_0x259058(0x497)][_0x259058(0x1cf)](),this[_0x259058(0x36f)]&&this[_0x259058(0x36f)][_0x259058(0x2a4)]()):(this[_0x259058(0x497)]&&this['_anchorDot'][_0x259058(0x2a4)](),this[_0x259058(0x36f)]&&this[_0x259058(0x36f)]['hide']());}[_0x182123(0x2cf)](){const _0x5e5c89=_0x182123;for(const _0x1fe124 of this[_0x5e5c89(0x1ba)])_0x1fe124[_0x5e5c89(0x2cf)]();this[_0x5e5c89(0x36f)]&&this[_0x5e5c89(0x36f)][_0x5e5c89(0x2cf)](),this[_0x5e5c89(0x497)]&&this[_0x5e5c89(0x497)][_0x5e5c89(0x2cf)](),this[_0x5e5c89(0x26b)]&&this[_0x5e5c89(0x26b)][_0x5e5c89(0x2cf)](),this['_eventUnsubscribe']&&this[_0x5e5c89(0x38a)]();}[_0x182123(0x2fa)](){const _0x3ef61b=_0x182123;var _0x3a90df;const {_docSkeleton:_0x2c47d6,_document:_0x210154}=this,{color:_0x17348d,name:_0x291dc8,ranges:_0x36fc57}=this[_0x3ef61b(0x430)],_0x232cb1=_0x210154[_0x3ef61b(0x1b5)](),{docsLeft:_0x47f80d,docsTop:_0x103ea8}=_0x232cb1,_0x214d87=new _0x143e31[(_0x3ef61b(0x441))](_0x232cb1,_0x2c47d6);for(const {startOffset:_0xa002ac,endOffset:_0x40afcd,rangeType:_0x28a145,segmentId:_0x5b504b,segmentPage:_0x4c92e6,collapsed:_0x1b0590,isActive:_0x545754}of _0x36fc57){const _0x4a65e2=_0x2c47d6[_0x3ef61b(0x3fb)](_0xa002ac,!0x0,_0x5b504b,_0x4c92e6);let _0x311b7d=_0x2c47d6['findNodePositionByCharIndex'](_0x40afcd,!0x0,_0x5b504b,_0x4c92e6);if(_0x311b7d==null&&(_0x311b7d=_0x2c47d6['findNodePositionByCharIndex'](_0x40afcd-0x1,!0x1,_0x5b504b,_0x4c92e6)),_0x545754){const {contentBoxPointGroup:_0x3b052f}=_0x214d87[_0x3ef61b(0x1b4)](_0x311b7d,_0x311b7d);if(_0x3b052f['length']===0x0)continue;this[_0x3ef61b(0x179)](_0x17348d,_0x3b052f,_0x47f80d,_0x103ea8,_0x291dc8),this[_0x3ef61b(0x38a)]=this[_0x3ef61b(0x305)]();}if(!_0x1b0590&&_0x4a65e2&&_0x311b7d){if(_0x28a145===_0x3223aa[_0x3ef61b(0x118)][_0x3ef61b(0x1e5)]){const _0x3592e8=new _0x143e31[(_0x3ef61b(0x25d))](_0x232cb1,_0x2c47d6),{pointGroup:_0x374777}=(_0x3a90df=_0x3592e8[_0x3ef61b(0x1b4)](_0x4a65e2,_0x311b7d))!=null?_0x3a90df:{};if(_0x374777==null||_0x374777[_0x3ef61b(0x4c3)]===0x0)continue;this[_0x3ef61b(0x307)](_0x17348d,_0x374777,_0x47f80d,_0x103ea8);}else{const {borderBoxPointGroup:_0x4fa6f7}=_0x214d87[_0x3ef61b(0x1b4)](_0x4a65e2,_0x311b7d);if(_0x4fa6f7[_0x3ef61b(0x4c3)]===0x0)continue;this[_0x3ef61b(0x449)](_0x17348d,_0x4fa6f7,_0x47f80d,_0x103ea8);}}}}[_0x182123(0x179)](_0x4d3cfe,_0xad873a,_0x26d6d4,_0x292911,_0x4103c8){const _0x4eb7b3=_0x182123,_0x4be662=this[_0x4eb7b3(0x474)](_0xad873a),{left:_0x44aedd,top:_0x31fa54,height:_0x20308e}=_0x4be662,_0x28ff83=this[_0x4eb7b3(0x24c)](),_0x25f333=_0x24f666/_0x28ff83,_0x308a24=new _0x20af9e[(_0x4eb7b3(0x302))](_0xa09b78+_0x3223aa[_0x4eb7b3(0x357)][_0x4eb7b3(0x492)](_0x4f5268),{'left':_0x44aedd+_0x26d6d4-_0x25f333,'top':_0x31fa54+_0x292911,'height':_0x20308e,'width':_0x10763e,'fill':_0x4d3cfe||_0x20af9e['getColor'](_0x3223aa[_0x4eb7b3(0x543)]['black'],0x0),'strokeWidth':_0x25f333,'stroke':_0xf41ed5,'evented':!0x0});this[_0x4eb7b3(0x26b)]=_0x308a24,this['_scene']['addObject'](_0x308a24,_0x143e31[_0x4eb7b3(0x163)]);const _0x5709f3=new _0x20af9e[(_0x4eb7b3(0x302))](_0xa09b78+_0x3223aa['Tools'][_0x4eb7b3(0x492)](_0x4f5268),{'left':_0x44aedd+_0x26d6d4-_0x25f333,'top':_0x31fa54+_0x292911-_0x123d39/0x2,'height':_0x123d39,'width':_0x123d39,'fill':_0x4d3cfe||_0x20af9e['getColor'](_0x3223aa[_0x4eb7b3(0x543)][_0x4eb7b3(0x3e3)],0x0),'strokeWidth':0x0,'stroke':_0x4d3cfe||_0x20af9e['getColor'](_0x3223aa[_0x4eb7b3(0x543)]['black'],0x0),'evented':!0x1});this[_0x4eb7b3(0x497)]=_0x5709f3,this[_0x4eb7b3(0x29a)][_0x4eb7b3(0x208)](_0x5709f3,_0x143e31[_0x4eb7b3(0x163)]);const _0x376baa=new _0x2638fd(_0xa09b78+_0x3223aa[_0x4eb7b3(0x357)][_0x4eb7b3(0x492)](_0x4f5268),{'left':_0x44aedd+_0x26d6d4-_0x25f333,'top':_0x31fa54+_0x292911-_0x1644b8,'text':_0x4103c8,'color':_0x4d3cfe});this[_0x4eb7b3(0x36f)]=_0x376baa,this[_0x4eb7b3(0x29a)][_0x4eb7b3(0x208)](_0x376baa,_0x143e31[_0x4eb7b3(0x163)]),this['_hover']=!0x1;}[_0x182123(0x305)](){const _0x1f52c9=_0x182123,_0xbbf8cd=this[_0x1f52c9(0x26b)]['onPointerEnter$'][_0x1f52c9(0x2ec)](()=>{const _0x4dd646=_0x1f52c9;this[_0x4dd646(0x4a6)]=!0x0;}),_0x2b8845=this[_0x1f52c9(0x26b)]['onPointerLeave$'][_0x1f52c9(0x2ec)](()=>{const _0x42fa24=_0x1f52c9;this[_0x42fa24(0x3b0)]&&clearTimeout(this[_0x42fa24(0x3b0)]),this[_0x42fa24(0x3b0)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x7828d=_0x1f52c9;_0xbbf8cd[_0x7828d(0x2d6)](),_0x2b8845[_0x7828d(0x2d6)]();};}[_0x182123(0x449)](_0x5cbadb,_0x1cf17b,_0x2d24c0,_0x15c85a){const _0x1b8406=_0x182123,_0xb1cd14=new _0x3223aa['ColorKit'](_0x5cbadb)['setAlpha'](0.2)[_0x1b8406(0x377)](),_0x30430d=new _0x20af9e[(_0x1b8406(0x125))](_0x220923+_0x3223aa[_0x1b8406(0x357)][_0x1b8406(0x492)](_0x4f5268),{'pointsGroup':_0x1cf17b,'fill':_0xb1cd14||_0x20af9e[_0x1b8406(0x1e0)](_0x3223aa['COLORS'][_0x1b8406(0x3e3)],0.2),'left':_0x2d24c0,'top':_0x15c85a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1b8406(0x1ba)][_0x1b8406(0x2fb)](_0x30430d),this['_scene'][_0x1b8406(0x208)](_0x30430d,_0x143e31[_0x1b8406(0x163)]);}[_0x182123(0x307)](_0x1c5db9,_0x1a7d42,_0x8662d0,_0x42d2f7){const _0x36057f=_0x182123,_0x5f2a90=new _0x3223aa['ColorKit'](_0x1c5db9)[_0x36057f(0x2b8)](0.2)[_0x36057f(0x377)](),_0x4235e1=new _0x20af9e[(_0x36057f(0x125))](_0x49d278+_0x3223aa[_0x36057f(0x357)][_0x36057f(0x492)](_0x4f5268),{'pointsGroup':_0x1a7d42,'fill':_0x5f2a90||_0x20af9e[_0x36057f(0x1e0)](_0x3223aa[_0x36057f(0x543)][_0x36057f(0x3e3)],0.2),'left':_0x8662d0,'top':_0x42d2f7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x36057f(0x1ba)][_0x36057f(0x2fb)](_0x4235e1),this[_0x36057f(0x29a)][_0x36057f(0x208)](_0x4235e1,_0x143e31['TEXT_RANGE_LAYER_INDEX']);}[_0x182123(0x474)](_0x27cb15){const _0x330101=_0x27cb15[0x0],_0x163397=_0x330101[0x0],_0x1ea400=_0x330101[0x2],{x:_0xb97791,y:_0x408187}=_0x163397,{x:_0x25396f,y:_0x464530}=_0x1ea400;return{'left':_0xb97791,'top':_0x408187,'width':_0x25396f-_0xb97791,'height':_0x464530-_0x408187};}[_0x182123(0x24c)](){const _0x1abd44=_0x182123,{scaleX:_0x1444d5,scaleY:_0x2945f1}=this['_scene'][_0x1abd44(0x327)]();return Math[_0x1abd44(0x204)](_0x1444d5,_0x2945f1);}}var _0x12dd7a=Object[_0x182123(0x33a)],_0x1505d8=Object[_0x182123(0x363)],_0x523706=(_0x161bfa,_0x4e03cb,_0x366f8a,_0x458edd)=>{const _0x364a46=_0x182123;for(var _0x4f5a18=_0x458edd>0x1?void 0x0:_0x458edd?_0x1505d8(_0x4e03cb,_0x366f8a):_0x4e03cb,_0x523a29=_0x161bfa[_0x364a46(0x4c3)]-0x1,_0x85f9be;_0x523a29>=0x0;_0x523a29--)(_0x85f9be=_0x161bfa[_0x523a29])&&(_0x4f5a18=(_0x458edd?_0x85f9be(_0x4e03cb,_0x366f8a,_0x4f5a18):_0x85f9be(_0x4f5a18))||_0x4f5a18);return _0x458edd&&_0x4f5a18&&_0x12dd7a(_0x4e03cb,_0x366f8a,_0x4f5a18),_0x4f5a18;},_0x478a1f=(_0x44c410,_0x12c21d)=>(_0x22d14b,_0x29dbdd)=>_0x12c21d(_0x22d14b,_0x29dbdd,_0x44c410);let _0x505fb8=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x42cd0e,_0x473d49,_0x2c4641,_0x3e4e1f,_0x1a2f96){const _0x3fca12=_0x182123;super(),_0x571923(this,_0x3fca12(0x2e8),[]),_0x571923(this,'_cursors',[]),(this[_0x3fca12(0x134)]=_0x42cd0e,this['_docSkeletonManagerService']=_0x473d49,this[_0x3fca12(0x3b9)]=_0x2c4641,this[_0x3fca12(0x198)]=_0x3e4e1f,this[_0x3fca12(0x26a)]=_0x1a2f96,this[_0x3fca12(0x450)]());}[_0x182123(0x450)](){const _0xdde325=_0x182123,_0x9b7358=this[_0xdde325(0x134)]['unitId'],_0x3e33e6=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x41acaa[_0xdde325(0x4d4)]([this[_0xdde325(0x3b9)][_0xdde325(0x2c3)](_0x9b7358),this[_0xdde325(0x26a)]['currentTheme$']])[_0xdde325(0x493)](_0xe02055[_0xdde325(0x486)](([_0x1da1a8,_0x654228])=>({'skeleton':_0x3e33e6[_0xdde325(0x128)](),'cursors':[..._0x1da1a8[_0xdde325(0x211)]()]['flatMap'](_0x47e88b=>({..._0x47e88b,'color':_0x654228[_0x47e88b[_0xdde325(0x4aa)]]}))})))[_0xdde325(0x10e)](_0x4576db=>{if(this['_removeCollabCursors'](),_0x4576db){const {skeleton:_0x104f99,cursors:_0x12a104}=_0x4576db;this['_updateCollabCursors'](_0x104f99,_0x12a104);}})),this[_0xdde325(0x2af)](),this[_0xdde325(0x3f9)]();}[_0x182123(0x518)](_0x3ccdbf,_0x3ff0d9){const _0x3a4321=_0x182123,{scene:_0x64c329,mainComponent:_0x491fbb}=this[_0x3a4321(0x134)],_0x174d39=_0x3ff0d9['map'](_0x806bd9=>new _0x82fb2b(_0x806bd9,_0x64c329,_0x3ccdbf,_0x491fbb));this['_cursorShapes']=_0x174d39,this[_0x3a4321(0x405)]=_0x3ff0d9;}[_0x182123(0x2e3)](){const _0x3b6bc7=_0x182123;this[_0x3b6bc7(0x425)]();const {scene:_0x3f12e5,mainComponent:_0x127d55}=this['_context'],_0x411963=this[_0x3b6bc7(0x16e)]['getSkeleton'](),_0x98370c=this[_0x3b6bc7(0x405)][_0x3b6bc7(0x486)](_0x231db1=>new _0x82fb2b(_0x231db1,_0x3f12e5,_0x411963,_0x127d55));this[_0x3b6bc7(0x2e8)]=_0x98370c;}[_0x182123(0x425)](){const _0x599c0a=_0x182123;this['_cursorShapes'][_0x599c0a(0x19f)](_0xafeb8f=>_0xafeb8f[_0x599c0a(0x2cf)]()),this[_0x599c0a(0x2e8)]=[];}[_0x182123(0x3f9)](){const _0x20e4fb=_0x182123,_0x489f9e=[_0x143e31['SetDocZoomRatioOperation']['id']];this[_0x20e4fb(0x2c6)](this[_0x20e4fb(0x198)][_0x20e4fb(0x3cb)](_0x5180be=>{const _0x296c8b=_0x20e4fb;_0x489f9e['includes'](_0x5180be['id'])&&_0x5180be[_0x296c8b(0x4b1)][_0x296c8b(0x504)]===this[_0x296c8b(0x134)]['unitId']&&this[_0x296c8b(0x2e3)]();}));}[_0x182123(0x2af)](){const _0x163737=_0x182123;this[_0x163737(0x2c6)](_0x3223aa['fromEventSubject'](this[_0x163737(0x134)][_0x163737(0x219)]['onTransformChange$'])['pipe'](_0xe02055[_0x163737(0x22a)](_0x161852=>_0x161852[_0x163737(0x45b)]===_0x20af9e['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x163737(0x28a)]),_0xe02055[_0x163737(0x29e)](0x10))[_0x163737(0x10e)](()=>{const _0x36218e=_0x163737;this[_0x36218e(0x2e3)]();}));}};_0x505fb8=_0x523706([_0x478a1f(0x1,_0x3223aa[_0x182123(0x40e)](_0xba5a96[_0x182123(0x11d)])),_0x478a1f(0x2,_0x3223aa['Inject'](_0x5a312c)),_0x478a1f(0x3,_0x3223aa[_0x182123(0x23b)]),_0x478a1f(0x4,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x157)]))],_0x505fb8);const _0x439998=0x1,_0x1fa5ec=1.5;class _0x3ce3f1 extends _0x20af9e['Shape']{constructor(_0x9d39ae,_0x12d02c){const _0xa69663=_0x182123;super(_0x9d39ae,_0x12d02c),_0x571923(this,'_color'),_0x571923(this,'_hovered',!0x1),_0x571923(this,'_range'),_0x571923(this,_0xa69663(0x10d),''),_0x571923(this,_0xa69663(0x34f),_0xa69663(0x456)),_0x571923(this,_0xa69663(0x21b)),(_0x12d02c&&this['setShapeProps'](_0x12d02c),this['onPointerEnter$'][_0xa69663(0x2ec)](()=>this[_0xa69663(0x438)]({'hovered':!0x0})),this[_0xa69663(0x195)][_0xa69663(0x2ec)](()=>this[_0xa69663(0x438)]({'hovered':!0x1})));}[_0x182123(0x438)](_0x1cb6f1){const _0x17be3e=_0x182123;var _0x2d9ec7,_0x1be3ae,_0x5a1a4c,_0x5c5039,_0xb7e9e2,_0x46dafe;this[_0x17be3e(0x45f)]=(_0x2d9ec7=_0x1cb6f1[_0x17be3e(0x4aa)])!=null?_0x2d9ec7:this[_0x17be3e(0x45f)],this[_0x17be3e(0x3b4)]=(_0x1be3ae=_0x1cb6f1[_0x17be3e(0x1d3)])!=null?_0x1be3ae:this['_hovered'],this[_0x17be3e(0x491)]=(_0x5a1a4c=_0x1cb6f1[_0x17be3e(0x2a1)])!=null?_0x5a1a4c:this[_0x17be3e(0x491)],this[_0x17be3e(0x10d)]=(_0x5c5039=_0x1cb6f1['name'])!=null?_0x5c5039:this[_0x17be3e(0x10d)],this[_0x17be3e(0x34f)]=(_0xb7e9e2=_0x1cb6f1[_0x17be3e(0x3dc)])!=null?_0xb7e9e2:this[_0x17be3e(0x34f)],this[_0x17be3e(0x21b)]=(_0x46dafe=_0x1cb6f1[_0x17be3e(0x2ce)])!=null?_0x46dafe:this[_0x17be3e(0x21b)],this['transformByState']({'width':_0x1cb6f1[_0x17be3e(0x4cb)],'height':_0x1cb6f1[_0x17be3e(0x519)]});}[_0x182123(0x237)](_0x50388e){const _0x55600c=_0x182123,{row:_0x4e037b,column:_0x2adf0b}=_0x50388e;if(_0x4e037b>=this[_0x55600c(0x491)][_0x55600c(0x48d)]&&_0x4e037b<=this[_0x55600c(0x491)][_0x55600c(0x2a3)]&&_0x2adf0b>=this[_0x55600c(0x491)][_0x55600c(0x475)]&&_0x2adf0b<=this[_0x55600c(0x491)]['endColumn']){this[_0x55600c(0x438)]({'hovered':!0x0});return;}this[_0x55600c(0x438)]({'hovered':!0x1});}[_0x182123(0x394)](_0x13f5c2){return!0x1;}[_0x182123(0x279)](_0x59ffec){const _0x5ced94=_0x182123;_0x20af9e[_0x5ced94(0x302)][_0x5ced94(0x2eb)](_0x59ffec,{'width':this[_0x5ced94(0x4cb)],'height':this[_0x5ced94(0x519)],'strokeWidth':_0x1fa5ec,'stroke':this[_0x5ced94(0x45f)],'evented':!0x1,'fill':this[_0x5ced94(0x21b)]}),this[_0x5ced94(0x3b4)]&&(_0x59ffec[_0x5ced94(0x16c)](),_0x59ffec[_0x5ced94(0x415)](0x1,0x0,0x0,0x1,this[_0x5ced94(0x4cb)],this[_0x5ced94(0x34f)]===_0x5ced94(0x3cc)?0x0:-_0x1644b8),_0x2638fd['drawWith'](_0x59ffec,{'text':this[_0x5ced94(0x10d)],'color':this[_0x5ced94(0x45f)]}),_0x59ffec[_0x5ced94(0x3f3)]());}}var _0xc6b1f3=Object['defineProperty'],_0x5dbfc5=Object[_0x182123(0x363)],_0x4f6e4e=(_0x53290f,_0x442efa,_0x4929ab,_0x506b28)=>{const _0x39a004=_0x182123;for(var _0x5452d2=_0x506b28>0x1?void 0x0:_0x506b28?_0x5dbfc5(_0x442efa,_0x4929ab):_0x442efa,_0x4f7149=_0x53290f[_0x39a004(0x4c3)]-0x1,_0x3868d6;_0x4f7149>=0x0;_0x4f7149--)(_0x3868d6=_0x53290f[_0x4f7149])&&(_0x5452d2=(_0x506b28?_0x3868d6(_0x442efa,_0x4929ab,_0x5452d2):_0x3868d6(_0x5452d2))||_0x5452d2);return _0x506b28&&_0x5452d2&&_0xc6b1f3(_0x442efa,_0x4929ab,_0x5452d2),_0x5452d2;},_0x23dd3d=(_0x4ba0a8,_0x103d29)=>(_0x7eaf9e,_0x4d3e74)=>_0x103d29(_0x7eaf9e,_0x4d3e74,_0x4ba0a8);const _0x352e51=0x1389;let _0x5db2cc=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x405a2c,_0x4d5cc3,_0x1e7f3f,_0x160311){const _0x341cfe=_0x182123;super(),_0x571923(this,_0x341cfe(0x405),new Set()),_0x571923(this,'_lastPointer',null),(this['_context']=_0x405a2c,this[_0x341cfe(0x221)]=_0x4d5cc3,this[_0x341cfe(0x3b9)]=_0x1e7f3f,this[_0x341cfe(0x26a)]=_0x160311,this['_init']());}[_0x182123(0x450)](){const _0x546787=_0x182123;this[_0x546787(0x221)][_0x546787(0x4ce)][_0x546787(0x493)](_0xe02055['takeUntil'](this[_0x546787(0x4ef)]),_0xe02055['switchMap'](_0x90c7c2=>{const _0x5c94fe=_0x546787;if(_0x90c7c2){const _0x5e1335=_0x90c7c2['sheetId'];return _0x41acaa[_0x5c94fe(0x4d4)](this[_0x5c94fe(0x3b9)]['getCollabCursors$'](this[_0x5c94fe(0x134)][_0x5c94fe(0x504)]),this[_0x5c94fe(0x26a)]['currentTheme$'])[_0x5c94fe(0x493)](_0xe02055['map'](([_0x5e0e78,_0x16e828])=>{const _0x5d9fa4=new Map();return _0x5e0e78['forEach']((_0x1b4335,_0x39e7f9)=>{const _0x5b2526=_0x2e84;if(_0x1b4335[_0x5b2526(0x1ad)]===_0x5e1335){const _0x4e0bf0={..._0x1b4335};_0x4e0bf0['color']=_0x16e828[_0x1b4335[_0x5b2526(0x4aa)]],_0x5d9fa4['set'](_0x39e7f9,_0x4e0bf0);}}),{'skeleton':_0x90c7c2,'cursors':_0x5d9fa4};}));}return _0x41acaa['of']({'skeleton':null,'cursors':new Map()});}))[_0x546787(0x10e)](({skeleton:_0x1ef679,cursors:_0x2e0895})=>{const _0xe26e3e=_0x546787;this[_0xe26e3e(0x425)](),_0x1ef679&&this[_0xe26e3e(0x518)](_0x1ef679,_0x2e0895);}),this[_0x546787(0x221)][_0x546787(0x4ce)][_0x546787(0x10e)](_0x5c7b7a=>{const _0x2b31c2=_0x546787;if(_0x5c7b7a==null)return;const {skeleton:_0x279fe5}=_0x5c7b7a,{scene:_0x5278d3}=this[_0x2b31c2(0x134)];_0x5278d3['onPointerMove$']['subscribeEvent'](_0x3223aa[_0x2b31c2(0x180)](_0x34ae1f=>{const _0x48e387=_0x2b31c2;var _0x2948bf,_0xd6c952;const {offsetX:_0x2f9bb3,offsetY:_0x2d14c7}=_0x34ae1f,{x:_0x1c3a4d,y:_0x56bc7a}=_0x5278d3['getRelativeToViewportCoord'](_0x20af9e[_0x48e387(0x506)][_0x48e387(0x41a)]([_0x2f9bb3,_0x2d14c7])),{scaleX:_0x21d038,scaleY:_0x34d082}=_0x5278d3['getAncestorScale'](),_0x193089=_0x5278d3[_0x48e387(0x13f)](_0x166b0e['VIEWPORT_KEY'][_0x48e387(0x293)]),_0x354a87=_0x5278d3[_0x48e387(0x50d)](_0x20af9e['Vector2']['FromArray']([_0x1c3a4d,_0x56bc7a]),_0x193089),_0x2a2b53=_0x279fe5[_0x48e387(0x152)](_0x2f9bb3,_0x2d14c7,_0x21d038,_0x34d082,_0x354a87);((_0x2948bf=this[_0x48e387(0x393)])==null?void 0x0:_0x2948bf[_0x48e387(0x22b)])===_0x2a2b53[_0x48e387(0x22b)]&&((_0xd6c952=this[_0x48e387(0x393)])==null?void 0x0:_0xd6c952[_0x48e387(0x342)])===_0x2a2b53['row']||this[_0x48e387(0x405)]['forEach'](_0x218b19=>{const _0x224c6c=_0x48e387;_0x218b19[_0x224c6c(0x237)](_0x2a2b53);});},0x64));});}[_0x182123(0x518)](_0x427632,_0x10a800){const _0x151a86=_0x182123;var _0xde96f5;const _0x5ab6e2=(_0xde96f5=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0xde96f5['skeleton'];if(!_0x5ab6e2)return;const _0x75957b=this[_0x151a86(0x339)]();if(!_0x75957b)return;this[_0x151a86(0x405)][_0x151a86(0x19f)](_0x3c2202=>{const _0x40a7f2=_0x151a86;_0x3c2202[_0x40a7f2(0x48b)]();});const {scene:_0x1f9b2d}=_0x75957b,_0xa83278=_0x5165d3(Array[_0x151a86(0x2d3)](_0x10a800[_0x151a86(0x211)]()))['map'](_0x1f5642=>{const _0xf80d65=_0x151a86,{color:_0x5e0bd6,range:_0x428c7c,name:_0x369d4c,selection:_0x22c61c,sheetID:_0x4ac5a0}=_0x1f5642,{startColumn:_0x51caea,startRow:_0x34644a,endColumn:_0x1cd9bd,endRow:_0x5d43da}=_0x428c7c,_0x12f7a4=_0x166b0e[_0xf80d65(0x2d5)](_0x34644a,_0x51caea,_0x1f9b2d,_0x5ab6e2),_0x25a724=_0x166b0e['getCoordByCell'](_0x5d43da,_0x1cd9bd,_0x1f9b2d,_0x5ab6e2),{columnHeaderHeightAndMarginTop:_0x309eb2}=_0x5ab6e2,{startX:_0x360aca,startY:_0x3572c4}=_0x12f7a4,{endX:_0x54339a,endY:_0x52137d}=_0x25a724,_0x4836fe=_0x54339a-_0x360aca,_0x3f67a4=_0x52137d-_0x3572c4,_0x4f9624={'labelPosition':_0x3572c4-_0x309eb2>=_0x1644b8?_0xf80d65(0x456):_0xf80d65(0x3cc),'sheetID':_0x4ac5a0,'range':_0x428c7c,'color':_0x5e0bd6,'name':_0x369d4c,'selection':_0x22c61c,'left':_0x360aca,'top':_0x3572c4,'width':_0x4836fe,'height':_0x3f67a4,'evented':!0x1,'zIndex':_0x352e51};return new _0x3ce3f1(_0x369d4c,_0x4f9624);});_0x1f9b2d['addObjects'](_0xa83278,_0x439998),this['_cursors']=new Set(_0xa83278);}['_removeCollabCursors'](){const _0x543643=_0x182123;var _0x1f4079;(_0x1f4079=this['_cursors'])==null||_0x1f4079[_0x543643(0x19f)](_0xcccd7=>_0xcccd7[_0x543643(0x2cf)]());}[_0x182123(0x339)](){const _0x26bdb3=_0x182123;return _0x166b0e[_0x26bdb3(0x53f)](this[_0x26bdb3(0x134)][_0x26bdb3(0x1b0)],this['_context']);}};_0x5db2cc=_0x4f6e4e([_0x23dd3d(0x1,_0x3223aa[_0x182123(0x40e)](_0x166b0e[_0x182123(0x537)])),_0x23dd3d(0x2,_0x3223aa[_0x182123(0x40e)](_0x5a312c)),_0x23dd3d(0x3,_0x3223aa[_0x182123(0x40e)](_0x3223aa['ThemeService']))],_0x5db2cc);function _0x5165d3(_0x35f846){const _0x5efcb7=_0x182123,_0x49fb2b=new Map();return _0x35f846[_0x5efcb7(0x19f)](_0x1127d6=>{const _0x125c83=_0x5efcb7;if(_0x49fb2b[_0x125c83(0x39c)](_0x1127d6[_0x125c83(0x511)])){const _0x1d5753=_0x49fb2b[_0x125c83(0x53b)](_0x1127d6[_0x125c83(0x511)]);_0x1d5753[_0x125c83(0x1dc)]+=',\x20'+_0x1127d6[_0x125c83(0x1dc)];}else _0x49fb2b[_0x125c83(0x132)](_0x1127d6[_0x125c83(0x511)],_0x1127d6);}),Array[_0x5efcb7(0x2d3)](_0x49fb2b[_0x5efcb7(0x211)]());}var _0x5f461b=function(){const _0x16fa23=_0x182123;return _0x5f461b=Object[_0x16fa23(0x2a8)]||function(_0x1d1337){const _0x247c92=_0x16fa23;for(var _0x2c64c6,_0x310a71=0x1,_0x15aebf=arguments[_0x247c92(0x4c3)];_0x310a71<_0x15aebf;_0x310a71++){_0x2c64c6=arguments[_0x310a71];for(var _0x4be68d in _0x2c64c6)Object[_0x247c92(0x345)][_0x247c92(0x1f4)][_0x247c92(0x155)](_0x2c64c6,_0x4be68d)&&(_0x1d1337[_0x4be68d]=_0x2c64c6[_0x4be68d]);}return _0x1d1337;},_0x5f461b[_0x16fa23(0x381)](this,arguments);},_0x447b80=function(_0x3dc823,_0x322a9d){const _0x50e940=_0x182123;var _0x182d96={};for(var _0x25a147 in _0x3dc823)Object[_0x50e940(0x345)][_0x50e940(0x1f4)][_0x50e940(0x155)](_0x3dc823,_0x25a147)&&_0x322a9d['indexOf'](_0x25a147)<0x0&&(_0x182d96[_0x25a147]=_0x3dc823[_0x25a147]);if(_0x3dc823!=null&&typeof Object['getOwnPropertySymbols']==_0x50e940(0x1cd)){for(var _0x7c8bee=0x0,_0x25a147=Object['getOwnPropertySymbols'](_0x3dc823);_0x7c8bee<_0x25a147[_0x50e940(0x4c3)];_0x7c8bee++)_0x322a9d[_0x50e940(0x4ea)](_0x25a147[_0x7c8bee])<0x0&&Object[_0x50e940(0x345)][_0x50e940(0x1b6)][_0x50e940(0x155)](_0x3dc823,_0x25a147[_0x7c8bee])&&(_0x182d96[_0x25a147[_0x7c8bee]]=_0x3dc823[_0x25a147[_0x7c8bee]]);}return _0x182d96;},_0x5dbde6=_0x214003[_0x182123(0x465)](function(_0x55aa0f,_0x4f31ac){const _0x22ed4e=_0x182123;var _0x574864=_0x55aa0f[_0x22ed4e(0x4cd)],_0x422708=_0x55aa0f['id'],_0x1c0eff=_0x55aa0f[_0x22ed4e(0x471)],_0x1c8a16=_0x55aa0f[_0x22ed4e(0x47d)],_0x412b07=_0x447b80(_0x55aa0f,[_0x22ed4e(0x4cd),'id','className',_0x22ed4e(0x47d)]),_0x135b15=_0x22ed4e(0x4b7)[_0x22ed4e(0x51d)](_0x422708,'\x20')[_0x22ed4e(0x51d)](_0x1c0eff||'')['trim'](),_0x3452d0=_0x214003['useRef']('_'[_0x22ed4e(0x51d)](_0x3cdd0a()));return _0x426b5b(_0x574864,''[_0x22ed4e(0x51d)](_0x422708),{'defIds':_0x574864[_0x22ed4e(0x372)],'idSuffix':_0x3452d0['current']},_0x5f461b({'ref':_0x4f31ac,'className':_0x135b15},_0x412b07),_0x1c8a16);});function _0x426b5b(_0x587045,_0xc66b9f,_0xfb09c1,_0x261afb,_0x522c97){const _0x40d4f4=_0x182123;return _0x214003[_0x40d4f4(0x1eb)](_0x587045[_0x40d4f4(0x13e)],_0x5f461b(_0x5f461b({'key':_0xc66b9f},_0x54fea7(_0x587045,_0xfb09c1,_0x522c97)),_0x261afb),(_0x4e0f94(_0x587045,_0xfb09c1)[_0x40d4f4(0x225)]||[])[_0x40d4f4(0x486)](function(_0x37049a,_0x8ff223){const _0x4b6088=_0x40d4f4;return _0x426b5b(_0x37049a,''[_0x4b6088(0x51d)](_0xc66b9f,'-')['concat'](_0x587045[_0x4b6088(0x13e)],'-')[_0x4b6088(0x51d)](_0x8ff223),_0xfb09c1,void 0x0,_0x522c97);}));}function _0x54fea7(_0x43fc5b,_0x3c1646,_0x4148f8){const _0x7aee7b=_0x182123;var _0x49411d=_0x5f461b({},_0x43fc5b[_0x7aee7b(0x48e)]);_0x4148f8!=null&&_0x4148f8['colorChannel1']&&_0x49411d[_0x7aee7b(0x273)]===_0x7aee7b(0x501)&&(_0x49411d[_0x7aee7b(0x273)]=_0x4148f8[_0x7aee7b(0x501)]);var _0x240776=_0x3c1646[_0x7aee7b(0x372)];return!_0x240776||_0x240776[_0x7aee7b(0x4c3)]===0x0||(_0x43fc5b['tag']===_0x7aee7b(0x39f)&&_0x49411d[_0x7aee7b(0x49e)]&&(_0x49411d[_0x7aee7b(0x49e)]=_0x49411d[_0x7aee7b(0x49e)]+_0x3c1646[_0x7aee7b(0x457)]),Object[_0x7aee7b(0x27d)](_0x49411d)[_0x7aee7b(0x19f)](function(_0x36a844){const _0xa51e72=_0x7aee7b;var _0x1fa5ff=_0x36a844[0x0],_0x1478ef=_0x36a844[0x1];typeof _0x1478ef==_0xa51e72(0x370)&&(_0x49411d[_0x1fa5ff]=_0x1478ef[_0xa51e72(0x2fe)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3c1646[_0xa51e72(0x457)],')')));})),_0x49411d;}function _0x4e0f94(_0x6c19de,_0x39a0ff){const _0xa2d1f=_0x182123;var _0x17e51f,_0x92257e=_0x39a0ff[_0xa2d1f(0x372)];return!_0x92257e||_0x92257e[_0xa2d1f(0x4c3)]===0x0?_0x6c19de:_0x6c19de[_0xa2d1f(0x13e)]==='defs'&&(!((_0x17e51f=_0x6c19de[_0xa2d1f(0x225)])===null||_0x17e51f===void 0x0)&&_0x17e51f[_0xa2d1f(0x4c3)])?_0x5f461b(_0x5f461b({},_0x6c19de),{'children':_0x6c19de[_0xa2d1f(0x225)][_0xa2d1f(0x486)](function(_0x4ab054){const _0x5c910d=_0xa2d1f;return typeof _0x4ab054[_0x5c910d(0x48e)]['id']==_0x5c910d(0x370)&&_0x92257e&&_0x92257e[_0x5c910d(0x4ea)](_0x4ab054[_0x5c910d(0x48e)]['id'])>-0x1?_0x5f461b(_0x5f461b({},_0x4ab054),{'attrs':_0x5f461b(_0x5f461b({},_0x4ab054[_0x5c910d(0x48e)]),{'id':_0x4ab054[_0x5c910d(0x48e)]['id']+_0x39a0ff[_0x5c910d(0x457)]})}):_0x4ab054;})}):_0x6c19de;}function _0x3cdd0a(){const _0xedfe3=_0x182123;return Math[_0xedfe3(0x3e8)]()[_0xedfe3(0x47c)](0x24)['substring'](0x2,0x8);}_0x5dbde6[_0x182123(0x2df)]='UniverIcon';var _0x3d9b92={'tag':_0x182123(0x283),'attrs':{'fill':_0x182123(0x123),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x182123(0x4e7)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x182123(0x43c),'attrs':{'stroke':_0x182123(0x4f5),'d':_0x182123(0x1a5),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x182123(0x14c),'attrs':{},'children':[{'tag':_0x182123(0x527),'attrs':{'id':_0x182123(0x35d)},'children':[{'tag':_0x182123(0x43c),'attrs':{'fill':_0x182123(0x136),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x254f0c=_0x214003[_0x182123(0x465)](function(_0x18d568,_0x51ff5d){const _0x1d9e8c=_0x182123;return _0x214003['createElement'](_0x5dbde6,Object[_0x1d9e8c(0x2a8)]({},_0x18d568,{'id':_0x1d9e8c(0x4fb),'ref':_0x51ff5d,'icon':_0x3d9b92}));});_0x254f0c[_0x182123(0x2df)]='OffLineSingle';var _0x5b01fe={'tag':_0x182123(0x283),'attrs':{'fill':_0x182123(0x123),'viewBox':_0x182123(0x521),'width':_0x182123(0x4e7),'height':_0x182123(0x4e7)},'children':[{'tag':'g','attrs':{'clipPath':_0x182123(0x317)},'children':[{'tag':_0x182123(0x43c),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x182123(0x396),'strokeLinejoin':_0x182123(0x396),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x182123(0x527),'attrs':{'id':_0x182123(0x455)},'children':[{'tag':_0x182123(0x43c),'attrs':{'fill':_0x182123(0x136),'d':_0x182123(0x1f7),'transform':_0x182123(0x539)}}]}]}],'defIds':[_0x182123(0x455)]},_0x28a210=_0x214003[_0x182123(0x465)](function(_0x509fe6,_0x48ab5c){const _0x43eb57=_0x182123;return _0x214003[_0x43eb57(0x1eb)](_0x5dbde6,Object[_0x43eb57(0x2a8)]({},_0x509fe6,{'id':_0x43eb57(0x256),'ref':_0x48ab5c,'icon':_0x5b01fe}));});_0x28a210[_0x182123(0x2df)]='OnLineSingle';function _0x27f3e2(_0x5cee29){const _0x2de83f=_0x182123;var _0x69835e,_0x260a20,_0x1c65d='';if(typeof _0x5cee29==_0x2de83f(0x370)||typeof _0x5cee29==_0x2de83f(0x1ec))_0x1c65d+=_0x5cee29;else{if(typeof _0x5cee29==_0x2de83f(0x3a8)){if(Array[_0x2de83f(0x390)](_0x5cee29)){var _0x54e574=_0x5cee29[_0x2de83f(0x4c3)];for(_0x69835e=0x0;_0x69835e<_0x54e574;_0x69835e++)_0x5cee29[_0x69835e]&&(_0x260a20=_0x27f3e2(_0x5cee29[_0x69835e]))&&(_0x1c65d&&(_0x1c65d+='\x20'),_0x1c65d+=_0x260a20);}else{for(_0x260a20 in _0x5cee29)_0x5cee29[_0x260a20]&&(_0x1c65d&&(_0x1c65d+='\x20'),_0x1c65d+=_0x260a20);}}}return _0x1c65d;}function _0x948078(){for(var _0x32683b,_0x57e6dd,_0x1f53c0=0x0,_0x3cb33b='',_0x36d932=arguments['length'];_0x1f53c0<_0x36d932;_0x1f53c0++)(_0x32683b=arguments[_0x1f53c0])&&(_0x57e6dd=_0x27f3e2(_0x32683b))&&(_0x3cb33b&&(_0x3cb33b+='\x20'),_0x3cb33b+=_0x57e6dd);return _0x3cb33b;}const _0x230ead={'onlineStatusIcon':_0x182123(0x19c),'onlineStatusTitle':_0x182123(0x12a),'onlineStatus':_0x182123(0x2ba),'online':'univer-online','offline':_0x182123(0x498)};function _0x1db336(_0x204309){const _0x5cc106=_0x182123;switch(_0x204309){case _0x12b363[_0x5cc106(0x113)]:return'collabStatus.offline';case _0x12b363[_0x5cc106(0x53c)]:return _0x5cc106(0x183);case _0x12b363[_0x5cc106(0x27c)]:return'collabStatus.fetchMiss';case _0x12b363['NOT_COLLAB']:return _0x5cc106(0x297);case _0x12b363[_0x5cc106(0x17c)]:case _0x12b363['AWAITING_WITH_PENDING']:return _0x5cc106(0x46a);case _0x12b363['SYNCED']:case _0x12b363[_0x5cc106(0x2cc)]:return _0x5cc106(0x423);}}function _0x2411f5(_0x2ae134){const _0x41926c=_0x182123,{status$:_0x5b967a}=_0x2ae134,_0x26ad83=_0x19d837[_0x41926c(0x3ea)](_0x5b967a,_0x12b363[_0x41926c(0x3cd)]),_0x591369=_0x3223aa[_0x41926c(0x21c)](_0x3223aa[_0x41926c(0x1dd)]),_0x3248a9=_0x3223aa[_0x41926c(0x21c)](_0x27845d[_0x41926c(0x3c7)]),_0x5ba00a=_0x26ad83!==_0x12b363[_0x41926c(0x113)],_0x4b5994=_0x591369['t'](_0x1db336(_0x26ad83)),_0x160d7d=_0x948078(_0x230ead['onlineStatus'],{[_0x230ead[_0x41926c(0x383)]]:_0x5ba00a,[_0x230ead[_0x41926c(0x2e7)]]:!_0x5ba00a}),_0x4f5524=_0x5ba00a?_0x214003[_0x41926c(0x1eb)](_0x28a210,null):_0x214003[_0x41926c(0x1eb)](_0x254f0c,null),_0x2ed184=_0x214003[_0x41926c(0x476)](()=>{const _0x4d5a8d=_0x41926c;_0x5ba00a||_0x3248a9[_0x4d5a8d(0x173)]();},[_0x5ba00a,_0x3248a9]);function _0x153f19(){const _0x2073fe=_0x41926c;return _0x214003[_0x2073fe(0x1eb)](_0x2073fe(0x44e),{'className':_0x160d7d,'onClick':_0x2ed184},_0x214003[_0x2073fe(0x1eb)](_0x2073fe(0x44e),{'className':_0x230ead[_0x2073fe(0x418)]},_0x4f5524),_0x214003[_0x2073fe(0x1eb)](_0x2073fe(0x44e),{'className':_0x230ead[_0x2073fe(0x1b8)]},_0x4b5994));}return _0x5ba00a?_0x153f19():_0x214003['createElement'](_0x4d822f[_0x41926c(0x54b)],{'title':_0x591369['t'](_0x41926c(0x3af))},_0x153f19());}var _0x105dad=Object['defineProperty'],_0x23c216=Object[_0x182123(0x363)],_0x2fa50f=(_0xa6ce8c,_0x5690aa,_0x511857,_0x502aa2)=>{for(var _0x45118d=_0x502aa2>0x1?void 0x0:_0x502aa2?_0x23c216(_0x5690aa,_0x511857):_0x5690aa,_0x47740c=_0xa6ce8c['length']-0x1,_0x2eae11;_0x47740c>=0x0;_0x47740c--)(_0x2eae11=_0xa6ce8c[_0x47740c])&&(_0x45118d=(_0x502aa2?_0x2eae11(_0x5690aa,_0x511857,_0x45118d):_0x2eae11(_0x45118d))||_0x45118d);return _0x502aa2&&_0x45118d&&_0x105dad(_0x5690aa,_0x511857,_0x45118d),_0x45118d;},_0xcb855f=(_0x4aea8a,_0x4dbee9)=>(_0x4f6218,_0x29f71e)=>_0x4dbee9(_0x4f6218,_0x29f71e,_0x4aea8a);_0x27845d[_0x182123(0x1f1)]=class extends _0x3223aa['Disposable']{constructor(_0x3b4a58,_0x291b9d,_0x3d209c,_0x291045){const _0x495781=_0x182123;super(),_0x571923(this,_0x495781(0x38c),new _0x41acaa['BehaviorSubject'](_0x12b363[_0x495781(0x3cd)])),(this[_0x495781(0x348)]=_0x3b4a58,this[_0x495781(0x461)]=_0x291b9d,this[_0x495781(0x526)]=_0x3d209c,this['_collaborationController']=_0x291045,this[_0x495781(0x310)](),this[_0x495781(0x2f3)]());}[_0x182123(0x2f3)](){const _0xe40934=_0x182123;this[_0xe40934(0x2c6)](this[_0xe40934(0x348)][_0xe40934(0x39a)][_0xe40934(0x493)](_0x41acaa[_0xe40934(0x296)](()=>{const _0xfd5a84=_0xe40934,_0x3347fa=this[_0xfd5a84(0x348)][_0xfd5a84(0x3eb)]();return _0x3347fa?this[_0xfd5a84(0x485)][_0xfd5a84(0x20d)](_0x3347fa[_0xfd5a84(0x27a)]()):_0x41acaa['of'](null);}),_0x41acaa[_0xe40934(0x296)](_0x5883ca=>_0x5883ca?_0x5883ca[_0xe40934(0x355)]:_0x41acaa['of'](_0x12b363[_0xe40934(0x3cd)])))[_0xe40934(0x10e)](_0x5eac32=>{const _0x18e876=_0xe40934;this['_status$'][_0x18e876(0x2e5)](_0x5eac32);}));}[_0x182123(0x310)](){const _0xe437b8=_0x182123;this[_0xe437b8(0x2c6)](this[_0xe437b8(0x461)]['registerComponent'](_0x19d837[_0xe437b8(0x545)][_0xe437b8(0x18d)],()=>_0x3223aa[_0xe437b8(0x210)](_0x17ce55({'status$':this[_0xe437b8(0x38c)]['asObservable']()}),this[_0xe437b8(0x526)])));}},_0x27845d[_0x182123(0x1f1)]=_0x2fa50f([_0xcb855f(0x0,_0x3223aa[_0x182123(0x247)]),_0xcb855f(0x1,_0x19d837[_0x182123(0x4cf)]),_0xcb855f(0x2,_0x3223aa['Inject'](_0x3223aa[_0x182123(0x14a)])),_0xcb855f(0x3,_0x3223aa['Inject'](_0x27845d['CollaborationController']))],_0x27845d['DesktopCollaborationStatusDisplayController']);function _0x17ce55(_0x3a2b17){const {status$:_0x5757d0}=_0x3a2b17;return function(){return _0x214003['createElement'](_0x2411f5,{'status$':_0x5757d0});};}const _0x38ca16=_0x3223aa[_0x182123(0x3fd)](_0x182123(0x361));var _0x2ca898=Object[_0x182123(0x33a)],_0x39d556=Object['getOwnPropertyDescriptor'],_0x3844bd=(_0x25d695,_0x33a198,_0x1777ea,_0xc9c7c7)=>{const _0x32630f=_0x182123;for(var _0x3458fa=_0xc9c7c7>0x1?void 0x0:_0xc9c7c7?_0x39d556(_0x33a198,_0x1777ea):_0x33a198,_0x1cf546=_0x25d695[_0x32630f(0x4c3)]-0x1,_0x18952f;_0x1cf546>=0x0;_0x1cf546--)(_0x18952f=_0x25d695[_0x1cf546])&&(_0x3458fa=(_0xc9c7c7?_0x18952f(_0x33a198,_0x1777ea,_0x3458fa):_0x18952f(_0x3458fa))||_0x3458fa);return _0xc9c7c7&&_0x3458fa&&_0x2ca898(_0x33a198,_0x1777ea,_0x3458fa),_0x3458fa;},_0x3f404c=(_0x3bb32b,_0x36b503)=>(_0x30eb2d,_0x3ab042)=>_0x36b503(_0x30eb2d,_0x3ab042,_0x3bb32b);_0x27845d[_0x182123(0x4ab)]=class extends _0x3223aa[_0x182123(0x4a9)]{constructor(_0x3c0fd0,_0x15b350,_0x3bcbfb,_0x3dc405,_0x37f618,_0x33407f){const _0x5c51ef=_0x182123;super(),this[_0x5c51ef(0x4e0)]=_0x3c0fd0,this['_logService']=_0x15b350,this[_0x5c51ef(0x198)]=_0x3bcbfb,this[_0x5c51ef(0x44c)]=_0x3dc405,this[_0x5c51ef(0x229)]=_0x37f618,_0x33407f?_0x33407f==null||_0x33407f[_0x5c51ef(0x32a)]()[_0x5c51ef(0x2bd)](()=>this[_0x5c51ef(0x450)]()):(this[_0x5c51ef(0x397)]['debug'](_0x5c51ef(0x269),_0x5c51ef(0x2f7)),this[_0x5c51ef(0x450)]());}async[_0x182123(0x450)](){const _0x2cf7b4=_0x182123,_0x3f1115=this[_0x2cf7b4(0x4e0)]['getParam'](_0x2cf7b4(0x1b0)),_0x447428=this[_0x2cf7b4(0x4e0)]['getParam'](_0x2cf7b4(0x45b));if(!_0x3f1115||!_0x447428){this[_0x2cf7b4(0x397)][_0x2cf7b4(0x235)](_0x2cf7b4(0x269),_0x2cf7b4(0x4ad));return;}switch(Number(_0x447428)){case _0x33d988[_0x2cf7b4(0x2d4)]:{const _0x112330=await this['_loadSheet'](_0x3f1115);this[_0x2cf7b4(0x481)](_0x112330);break;}case _0x33d988['UNIVER_DOC']:{await this[_0x2cf7b4(0x1c9)](_0x3f1115);break;}default:{this[_0x2cf7b4(0x397)][_0x2cf7b4(0x1b1)](_0x2cf7b4(0x269),_0x2cf7b4(0x494));break;}}}async[_0x182123(0x481)](_0x57de0c){const _0x4e0cf7=_0x182123;await this[_0x4e0cf7(0x167)](_0x57de0c),_0x57de0c[_0x4e0cf7(0x41c)]['pipe'](_0x41acaa[_0x4e0cf7(0x410)](this[_0x4e0cf7(0x4ef)]))[_0x4e0cf7(0x10e)](_0xa1e247=>{_0xa1e247&&this['_updateURLWithCurrentState'](_0xa1e247);}),this[_0x4e0cf7(0x4e0)]['urlChange$'][_0x4e0cf7(0x493)](_0x41acaa[_0x4e0cf7(0x410)](this[_0x4e0cf7(0x4ef)]))[_0x4e0cf7(0x10e)](()=>this[_0x4e0cf7(0x167)](_0x57de0c));}[_0x182123(0x20f)](_0x21e3af,_0x3370d4=!0x1){const _0x25b6e9=_0x182123,_0x5dfdc9=this[_0x25b6e9(0x4e0)][_0x25b6e9(0x41b)]('subunit');_0x21e3af[_0x25b6e9(0x1a4)]()!==_0x5dfdc9&&this[_0x25b6e9(0x4e0)]['setParam']('subunit',_0x21e3af['getSheetId'](),_0x3370d4);}async[_0x182123(0x167)](_0x14b774){const _0x503297=_0x182123;var _0x54bf39;const _0x4e4b53=this[_0x503297(0x4e0)]['getParam'](_0x503297(0x411));if(!_0x4e4b53||!_0x14b774['getSheetBySheetId'](_0x4e4b53)){const _0x5d49ba=_0x14b774['getUnhiddenWorksheets']()[0x0],_0x17b609=_0x14b774[_0x503297(0x528)](_0x5d49ba);if(!_0x17b609)return;this['_updateURLWithCurrentState'](_0x17b609,!0x0),await this[_0x503297(0x198)][_0x503297(0x3c8)](_0x4f46f0[_0x503297(0x52a)]['id'],{'unitId':_0x14b774[_0x503297(0x27a)](),'subUnitId':_0x5d49ba});return;}((_0x54bf39=_0x14b774[_0x503297(0x546)]())==null?void 0x0:_0x54bf39[_0x503297(0x1a4)]())!==_0x4e4b53&&await this[_0x503297(0x198)][_0x503297(0x3c8)](_0x4f46f0[_0x503297(0x52a)]['id'],{'unitId':_0x14b774[_0x503297(0x27a)](),'subUnitId':_0x4e4b53});}async['_loadSheet'](_0x4ca1c3){const _0x187674=_0x182123;let _0x1292c1=0x0;const _0x383cf4=await this[_0x187674(0x44c)][_0x187674(0x3f4)](_0x4ca1c3);return _0x383cf4&&(_0x383cf4['awaitingChangeset']||_0x383cf4[_0x187674(0x1d7)][_0x187674(0x4c3)]!==0x0)&&(_0x1292c1=_0x383cf4[_0x187674(0x1e8)]),_0x1292c1===0x0&&this[_0x187674(0x397)][_0x187674(0x235)](_0x187674(0x269),_0x187674(0x140)),this[_0x187674(0x229)]['loadSheet'](_0x4ca1c3,_0x1292c1);}async['_loadDoc'](_0x1b75c8){const _0x152f82=_0x182123;let _0x1e4a6e=0x0;const _0x5ecd4c=await this['_localCacheService']['loadOfflineData'](_0x1b75c8);return _0x5ecd4c&&(_0x5ecd4c[_0x152f82(0x2ed)]||_0x5ecd4c[_0x152f82(0x1d7)][_0x152f82(0x4c3)]!==0x0)&&(_0x1e4a6e=_0x5ecd4c[_0x152f82(0x1e8)]),_0x1e4a6e===0x0&&this[_0x152f82(0x397)][_0x152f82(0x235)](_0x152f82(0x269),_0x152f82(0x140)),this[_0x152f82(0x229)]['loadDoc'](_0x1b75c8,_0x1e4a6e);}},_0x27845d[_0x182123(0x4ab)]=_0x3844bd([_0x3f404c(0x0,_0x38ca16),_0x3f404c(0x1,_0x3223aa['ILogService']),_0x3f404c(0x2,_0x3223aa[_0x182123(0x23b)]),_0x3f404c(0x3,_0x3223aa[_0x182123(0x40e)](_0x27845d['LocalCacheService'])),_0x3f404c(0x4,_0x3223aa[_0x182123(0x40e)](_0x502235[_0x182123(0x462)])),_0x3f404c(0x5,_0x3223aa[_0x182123(0x203)](_0x3a8f53['IRemoteInstanceService']))],_0x27845d[_0x182123(0x4ab)]);var _0x1b1932=Object[_0x182123(0x33a)],_0x268bed=Object[_0x182123(0x363)],_0x4f8dbe=(_0x16f4e6,_0x369d99,_0x202484,_0x43002a)=>{const _0x5d78c1=_0x182123;for(var _0x214027=_0x43002a>0x1?void 0x0:_0x43002a?_0x268bed(_0x369d99,_0x202484):_0x369d99,_0x1dec83=_0x16f4e6[_0x5d78c1(0x4c3)]-0x1,_0x3c35b6;_0x1dec83>=0x0;_0x1dec83--)(_0x3c35b6=_0x16f4e6[_0x1dec83])&&(_0x214027=(_0x43002a?_0x3c35b6(_0x369d99,_0x202484,_0x214027):_0x3c35b6(_0x214027))||_0x214027);return _0x43002a&&_0x214027&&_0x1b1932(_0x369d99,_0x202484,_0x214027),_0x214027;},_0x1c1cc4=(_0x3ac2b9,_0x5aefa1)=>(_0x42aa69,_0x5b4b9f)=>_0x5aefa1(_0x42aa69,_0x5b4b9f,_0x3ac2b9);const _0x4d4398=_0x182123(0x343),_0x3f4d2b=_0x182123(0x4a8);let _0x552a78=class extends _0x3223aa[_0x182123(0x502)]{constructor(_0x2d8eaf,_0xcd65f0){const _0x135203=_0x182123;super(),this[_0x135203(0x348)]=_0x2d8eaf,this[_0x135203(0x404)]=_0xcd65f0,this['_init']();}['_init'](){const _0x30e9ae=_0x182123;this[_0x30e9ae(0x2c6)](this['_univerInstanceService']['focused$'][_0x30e9ae(0x10e)](()=>{const _0xb2df5e=_0x30e9ae;var _0x466fb8;const _0x35ef76=this['_univerInstanceService'][_0xb2df5e(0x3eb)]();let _0x56a098=(_0x466fb8=this[_0xb2df5e(0x404)]['getConfig'](_0x4d4398))!=null?_0x466fb8:_0x3f4d2b;_0x35ef76 instanceof _0x3223aa['Workbook']&&(_0x56a098=_0x35ef76[_0xb2df5e(0x1dc)]),document[_0xb2df5e(0x464)]=_0x56a098;}));}};_0x552a78=_0x4f8dbe([_0x1c1cc4(0x0,_0x3223aa['IUniverInstanceService']),_0x1c1cc4(0x1,_0x3223aa['IConfigService'])],_0x552a78);var _0x1fcf30=Object[_0x182123(0x33a)],_0x58a579=Object[_0x182123(0x363)],_0x51a21b=(_0xbe907f,_0x51f7f8,_0x1e720b,_0x5d067a)=>{const _0x5388c6=_0x182123;for(var _0x248ff1=_0x5d067a>0x1?void 0x0:_0x5d067a?_0x58a579(_0x51f7f8,_0x1e720b):_0x51f7f8,_0x51a801=_0xbe907f[_0x5388c6(0x4c3)]-0x1,_0x4d8e47;_0x51a801>=0x0;_0x51a801--)(_0x4d8e47=_0xbe907f[_0x51a801])&&(_0x248ff1=(_0x5d067a?_0x4d8e47(_0x51f7f8,_0x1e720b,_0x248ff1):_0x4d8e47(_0x248ff1))||_0x248ff1);return _0x5d067a&&_0x248ff1&&_0x1fcf30(_0x51f7f8,_0x1e720b,_0x248ff1),_0x248ff1;},_0x1e24c7=(_0x29538c,_0x32a46e)=>(_0x207f8c,_0x386733)=>_0x32a46e(_0x207f8c,_0x386733,_0x29538c);let _0x363794=class{constructor(_0x4d0271,_0x4d8ff2,_0x258566){const _0x44c3a6=_0x182123;this[_0x44c3a6(0x404)]=_0x4d0271,this[_0x44c3a6(0x427)]=_0x4d8ff2,this[_0x44c3a6(0x19b)]=_0x258566,this['init']();}[_0x182123(0x3bb)](){const _0x35559a=_0x182123;this[_0x35559a(0x427)][_0x35559a(0x312)]({'priority':0x1,'interceptor':(_0x3830a5,_0x3b6798)=>_0x3b6798(_0x3830a5)[_0x35559a(0x493)](_0x41acaa['concatMap'](async _0x48f4fc=>{const _0x3e7166=_0x35559a,_0x4c1d56=_0x48f4fc;if(_0x4c1d56[_0x3e7166(0x1e2)]===0x191&&window[_0x3e7166(0x44a)](this['localeService']['t'](_0x3e7166(0x2ad)))){const _0x514a6e=window['encodeURIComponent'](window['location']['href']);window[_0x3e7166(0x4fe)][_0x3e7166(0x1a8)]=this[_0x3e7166(0x3c5)]()+_0x3e7166(0x3dd)+_0x514a6e;}return _0x4c1d56;}))});}[_0x182123(0x3c5)](){const _0x361c9e=_0x182123;var _0x8a34b4,_0x238a5c;const _0x5e4ec2=this[_0x361c9e(0x404)][_0x361c9e(0x422)](_0x4f9925),_0x8dcba6=this[_0x361c9e(0x404)]['getConfig'](_0x183913);return(_0x238a5c=(_0x8a34b4=_0x8dcba6==null?void 0x0:_0x8dcba6[_0x361c9e(0x153)])!=null?_0x8a34b4:_0x5e4ec2)!=null?_0x238a5c:_0x2c9aef;}};_0x363794=_0x51a21b([_0x1e24c7(0x0,_0x3223aa[_0x182123(0x531)]),_0x1e24c7(0x1,_0x3223aa['Inject'](_0x339579[_0x182123(0x1db)])),_0x1e24c7(0x2,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x1dd)]))],_0x363794);var _0x5da921=Object[_0x182123(0x33a)],_0x8a7bb4=Object['getOwnPropertyDescriptor'],_0x590cd8=(_0x2ccf15,_0xb4c0e,_0x4029a3,_0x274a53)=>{const _0x4fb8f8=_0x182123;for(var _0x5061ae=_0x274a53>0x1?void 0x0:_0x274a53?_0x8a7bb4(_0xb4c0e,_0x4029a3):_0xb4c0e,_0x4bbfc7=_0x2ccf15[_0x4fb8f8(0x4c3)]-0x1,_0x61c186;_0x4bbfc7>=0x0;_0x4bbfc7--)(_0x61c186=_0x2ccf15[_0x4bbfc7])&&(_0x5061ae=(_0x274a53?_0x61c186(_0xb4c0e,_0x4029a3,_0x5061ae):_0x61c186(_0x5061ae))||_0x5061ae);return _0x274a53&&_0x5061ae&&_0x5da921(_0xb4c0e,_0x4029a3,_0x5061ae),_0x5061ae;},_0x5efb7a=(_0x292527,_0x3fb37c)=>(_0x11da9c,_0x5aee98)=>_0x3fb37c(_0x11da9c,_0x5aee98,_0x292527);const _0x7c1155=_0x182123(0x4a1),_0x1f5102=_0x182123(0x41d);_0x27845d[_0x182123(0x12e)]=class extends _0x3223aa[_0x182123(0x502)]{constructor(_0x2e8099,_0x91de9f){const _0x1f049c=_0x182123;super(),this[_0x1f049c(0x1ee)]=_0x2e8099,this['_configService']=_0x91de9f,this[_0x1f049c(0x117)]();}[_0x182123(0x117)](){const _0x42321c=_0x182123,_0x1dd750=this;this['disposeWithMe'](this['_HTTPService'][_0x42321c(0x312)]({'priority':0x3e7,'interceptor':_0x339579['MergeInterceptorFactory']({'isMatch'(_0x1ea988){const _0x515c14=_0x42321c;var _0x4ac249;if(_0x1ea988[_0x515c14(0x3be)]===_0x515c14(0x520)&&((_0x4ac249=_0x1ea988[_0x515c14(0x25e)])!=null&&_0x4ac249[_0x515c14(0x25a)])){const {objectID:_0x2cf1ec,objectType:_0x106862}=_0x1ea988[_0x515c14(0x25e)]['body']||{};if(!_0x2cf1ec||_0x106862===void 0x0)return!0x1;const _0x2c147f=_0x1dd750['_getAPIPrefixPath']()+'/'+_0x106862+_0x515c14(0x53d)+_0x2cf1ec+_0x515c14(0x4d2);if(_0x1ea988[_0x515c14(0x51e)]===_0x2c147f)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1fdc43){const _0x2fcd00=_0x42321c;var _0x259435;return(_0x259435=_0x1fdc43[_0x2fcd00(0x25e)])==null?void 0x0:_0x259435[_0x2fcd00(0x25a)];},'mergeParamsToRequest'(_0x3a2755,_0x5babca){const _0x211309=_0x42321c,_0x54b7bd=_0x1dd750['_getAPIPrefixPath']()+_0x211309(0x47f),_0x5c5944=_0x3a2755[_0x211309(0x38b)]((_0x5b1f31,_0x11e106)=>{const _0x101171=_0x211309,{unitID:_0x1874f7,objectID:_0x2bd3af,objectType:_0x2d3716,actions:_0x1f5402}=_0x11e106;return _0x5b1f31[_0x1874f7]||(_0x5b1f31[_0x1874f7]={}),_0x5b1f31[_0x1874f7][_0x2bd3af]||(_0x5b1f31[_0x1874f7][_0x2bd3af]={'objectID':_0x2bd3af,'objectType':_0x2d3716,'actions':[]}),_0x5b1f31[_0x1874f7][_0x2bd3af][_0x101171(0x3d3)][_0x101171(0x2fb)](..._0x1f5402),_0x5b1f31;},{}),_0x245fc6=[];for(const _0x26fcca in _0x5c5944)for(const _0x523c72 in _0x5c5944[_0x26fcca]){const {actions:_0x3a2ebe,objectType:_0x451eba}=_0x5c5944[_0x26fcca][_0x523c72],_0xbbb8b4=[...new Set(_0x3a2ebe)];_0x245fc6[_0x211309(0x2fb)]({'unitID':_0x26fcca,'objectID':_0x523c72,'objectType':_0x451eba,'actions':_0xbbb8b4});}return new _0x339579[(_0x211309(0x400))](_0x211309(0x520),_0x54b7bd,{'headers':_0x5babca[_0x211309(0x4bb)],'withCredentials':_0x5babca[_0x211309(0x2cd)],'responseType':_0x5babca[_0x211309(0x4ed)],'body':{'requests':_0x245fc6}});}},{'distributeResult'(_0x152e16,_0x5d0d45){const _0x256e87=_0x42321c,{objectActions:_0x1bb21f}=_0x152e16;return _0x5d0d45[_0x256e87(0x486)](_0x224858=>{const _0x1e6fc6=_0x256e87,{unitID:_0x32b9af,objectID:_0x1a13e1,actions:_0x259565}=_0x224858,_0x554074=_0x1bb21f[_0x1e6fc6(0x2c9)](_0x13a5a6=>_0x13a5a6['unitID']===_0x32b9af&&_0x13a5a6[_0x1e6fc6(0x50b)]===_0x1a13e1),_0x294149=_0x259565[_0x1e6fc6(0x486)](_0x50be48=>_0x554074==null?void 0x0:_0x554074[_0x1e6fc6(0x3d3)][_0x1e6fc6(0x2c9)](_0x1a6680=>_0x1a6680['action']===_0x50be48))['filter'](_0xcddb5f=>!!_0xcddb5f);return{'config':_0x224858,'result':{'actions':_0x294149,'error':_0x152e16[_0x1e6fc6(0x1b1)]}};});}})}));}['_getAPIPrefixPath'](){const _0x3aee21=_0x182123;var _0x41db49,_0x388c8f;const _0x1f73d7=this['_configService']['getConfig'](_0x7c1155),_0xfdb9d0=this['_configService'][_0x3aee21(0x422)](_0x183913);return(_0x388c8f=(_0x41db49=_0xfdb9d0==null?void 0x0:_0xfdb9d0[_0x3aee21(0x379)])!=null?_0x41db49:_0x1f73d7)!=null?_0x388c8f:_0x1f5102;}async[_0x182123(0x39d)](_0x5e4adc){const _0x481f0d=_0x182123,_0x326c6a=this[_0x481f0d(0x21e)]()+'/'+_0x5e4adc['objectType']+_0x481f0d(0x159);return(await this['_HTTPService'][_0x481f0d(0x3f2)](_0x326c6a,{'body':_0x5e4adc}))[_0x481f0d(0x25a)][_0x481f0d(0x50b)]||'';}async[_0x182123(0x37e)](_0x9a5951){const _0x1b2208=_0x182123,_0xa29360=this['_getAPIPrefixPath']()+_0x1b2208(0x43a);return(await this['_HTTPService'][_0x1b2208(0x3f2)](_0xa29360,{'body':_0x9a5951}))[_0x1b2208(0x25a)][_0x1b2208(0x37d)];}async[_0x182123(0x197)](_0x4a3c30){const _0x22517c=_0x182123,_0x3f945a=this[_0x22517c(0x21e)]()+'/'+_0x4a3c30[_0x22517c(0x190)]+'/object/'+_0x4a3c30[_0x22517c(0x50b)];await this['_HTTPService']['put'](_0x3f945a,{'body':_0x4a3c30});}async[_0x182123(0x1d9)](_0x2bb9d5){const _0x4bc00a=_0x182123,_0x1960aa=this[_0x4bc00a(0x21e)]()+'/'+_0x2bb9d5[_0x4bc00a(0x190)]+_0x4bc00a(0x53d)+_0x2bb9d5['objectID']+'/allowed';return(await this[_0x4bc00a(0x1ee)][_0x4bc00a(0x3f2)](_0x1960aa,{'body':_0x2bb9d5}))[_0x4bc00a(0x25a)][_0x4bc00a(0x3d3)];}async[_0x182123(0x1a7)](_0x17c8cf){const _0x4d71a1=_0x182123,_0x63b516=this['_getAPIPrefixPath']()+_0x4d71a1(0x47f);return(await this[_0x4d71a1(0x1ee)]['post'](_0x63b516,{'body':{'requests':_0x17c8cf}}))[_0x4d71a1(0x25a)][_0x4d71a1(0x33d)];}async[_0x182123(0x2a7)](_0x771009){const _0x583bcb=_0x182123,_0x2af882=this['_getAPIPrefixPath']()+'/'+_0x771009[_0x583bcb(0x190)]+'/role',_0x160bff=await this['_HTTPService'][_0x583bcb(0x3f2)](_0x2af882,{'body':_0x771009});return{'roles':_0x160bff[_0x583bcb(0x25a)]['roles'],'actions':_0x160bff[_0x583bcb(0x25a)]['actions']};}async[_0x182123(0x1e9)](_0x73c8be){const _0x4b4606=_0x182123,_0x212d5b=this['_getAPIPrefixPath']()+_0x4b4606(0x30d);await this[_0x4b4606(0x1ee)][_0x4b4606(0x4e1)](_0x212d5b,{'params':{'collaboratorID':_0x73c8be[_0x4b4606(0x42c)],'objectID':_0x73c8be[_0x4b4606(0x50b)],'unitID':_0x73c8be[_0x4b4606(0x250)]}});}async[_0x182123(0x1a3)](_0x2cca78){const _0x1fc402=_0x182123,_0xa746bb=this['_getAPIPrefixPath']()+_0x1fc402(0x30d);await this[_0x1fc402(0x1ee)][_0x1fc402(0x28e)](_0xa746bb,{'body':_0x2cca78});}async[_0x182123(0x407)](_0xd1ac86){const _0x3750d1=_0x182123,_0x578326=this[_0x3750d1(0x21e)]()+_0x3750d1(0x30d);await this['_HTTPService'][_0x3750d1(0x3f2)](_0x578326,{'body':_0xd1ac86});}async['listCollaborators'](_0x310404){const _0x39e812=_0x182123,_0x1c6494=this['_getAPIPrefixPath']()+_0x39e812(0x30d);return(await this[_0x39e812(0x1ee)]['get'](_0x1c6494,{'params':{'objectID':_0x310404[_0x39e812(0x50b)],'unitID':_0x310404['unitID']}}))[_0x39e812(0x25a)][_0x39e812(0x1be)];}async['putCollaborators'](_0x3575eb){const _0x2ca41c=_0x182123,_0x35b983=this[_0x2ca41c(0x21e)]()+_0x2ca41c(0x30d);await this['_HTTPService'][_0x2ca41c(0x43b)](_0x35b983,{'body':_0x3575eb});}},_0x27845d[_0x182123(0x12e)]=_0x590cd8([_0x5efb7a(0x0,_0x3223aa[_0x182123(0x40e)](_0x339579['HTTPService'])),_0x5efb7a(0x1,_0x3223aa[_0x182123(0x40e)](_0x3223aa['IConfigService']))],_0x27845d[_0x182123(0x12e)]);var _0x19c729=Object[_0x182123(0x33a)],_0x57938f=Object['getOwnPropertyDescriptor'],_0x3b29f3=(_0xa3bbf9,_0xeb6a0e,_0x4bf672,_0x49de67)=>{const _0x5890c7=_0x182123;for(var _0x44688e=_0x49de67>0x1?void 0x0:_0x49de67?_0x57938f(_0xeb6a0e,_0x4bf672):_0xeb6a0e,_0x49e27c=_0xa3bbf9[_0x5890c7(0x4c3)]-0x1,_0x512e08;_0x49e27c>=0x0;_0x49e27c--)(_0x512e08=_0xa3bbf9[_0x49e27c])&&(_0x44688e=(_0x49de67?_0x512e08(_0xeb6a0e,_0x4bf672,_0x44688e):_0x512e08(_0x44688e))||_0x44688e);return _0x49de67&&_0x44688e&&_0x19c729(_0xeb6a0e,_0x4bf672,_0x44688e),_0x44688e;},_0x42f128=(_0x11ef6b,_0x6c474f)=>(_0x7cde58,_0x331b7b)=>_0x6c474f(_0x7cde58,_0x331b7b,_0x11ef6b);let _0x166d8=class{constructor(_0x24cefe){const _0x3239f0=_0x182123;this[_0x3239f0(0x427)]=_0x24cefe,this['_initRequestHeader']();}['_initRequestHeader'](){const _0x212e05=_0x182123;this[_0x212e05(0x427)]['registerHTTPInterceptor']({'interceptor':(_0x1a784e,_0x175740)=>{const _0x48fa2f=_0x212e05,_0x434bf9=_0x1a784e[_0x48fa2f(0x4bb)],_0x1096c1=_0x295b37[_0x48fa2f(0x349)]();return _0x1096c1&&_0x434bf9[_0x48fa2f(0x132)]('x-univer-host',_0x1096c1),_0x175740(_0x1a784e);}});}};_0x166d8=_0x3b29f3([_0x42f128(0x0,_0x3223aa[_0x182123(0x40e)](_0x339579[_0x182123(0x1db)]))],_0x166d8);var _0x485ff5=Object[_0x182123(0x33a)],_0xc74483=Object['getOwnPropertyDescriptor'],_0xdd0be5=(_0x4a128f,_0x5e899a,_0x2ec6c7,_0x3a5508)=>{const _0x5c3644=_0x182123;for(var _0x1d0961=_0x3a5508>0x1?void 0x0:_0x3a5508?_0xc74483(_0x5e899a,_0x2ec6c7):_0x5e899a,_0x1a0f8a=_0x4a128f[_0x5c3644(0x4c3)]-0x1,_0x20acf8;_0x1a0f8a>=0x0;_0x1a0f8a--)(_0x20acf8=_0x4a128f[_0x1a0f8a])&&(_0x1d0961=(_0x3a5508?_0x20acf8(_0x5e899a,_0x2ec6c7,_0x1d0961):_0x20acf8(_0x1d0961))||_0x1d0961);return _0x3a5508&&_0x1d0961&&_0x485ff5(_0x5e899a,_0x2ec6c7,_0x1d0961),_0x1d0961;},_0x4d3ad8=(_0x1161c9,_0x3adb81)=>(_0x3e3046,_0x5409f2)=>_0x3adb81(_0x3e3046,_0x5409f2,_0x1161c9);const _0x35c98f=[_0x182123(0x38d),'image/jpeg',_0x182123(0x1df),_0x182123(0x373),_0x182123(0x1fa)],_0x2398a1=0x5*0x400*0x400,_0x4226fe=_0x182123(0x48f),_0x210700='/universer-api/stream/file/upload',_0x827300=_0x182123(0x31d),_0x17409e=_0x182123(0x14d);_0x27845d[_0x182123(0x218)]=class{constructor(_0x297485,_0x21e4d7,_0x2eebeb){const _0x1d9019=_0x182123;_0x571923(this,_0x1d9019(0x530),0x0),_0x571923(this,_0x1d9019(0x2f2),new _0x41acaa[(_0x1d9019(0x378))]()),_0x571923(this,'change$',this[_0x1d9019(0x2f2)]),_0x571923(this,_0x1d9019(0x3e4),new Map()),(this[_0x1d9019(0x427)]=_0x297485,this[_0x1d9019(0x404)]=_0x21e4d7,this['_univerInstanceService']=_0x2eebeb);}[_0x182123(0x175)](_0x11e7f8){const _0x34ad97=_0x182123;this[_0x34ad97(0x530)]=_0x11e7f8,this[_0x34ad97(0x2f2)]['next'](_0x11e7f8);}['getImageSourceCache'](_0x566a8d,_0x18305e){const _0xafe0f6=_0x182123;if(_0x18305e===_0x52582d[_0xafe0f6(0x154)][_0xafe0f6(0x223)]){const _0x22ff0a=new Image();return _0x22ff0a[_0xafe0f6(0x1ae)]=_0x566a8d,_0x22ff0a;}return this[_0xafe0f6(0x3e4)][_0xafe0f6(0x53b)](_0x566a8d);}['addImageSourceCache'](_0x16ecec,_0x2d3060,_0x2bfc97){const _0x46bdb1=_0x182123;_0x2d3060===_0x52582d[_0x46bdb1(0x154)][_0x46bdb1(0x223)]||_0x2bfc97==null||this['_imageSourceCache'][_0x46bdb1(0x132)](_0x16ecec,_0x2bfc97);}async['getImage'](_0x6c5a16){const _0x5146ce=_0x182123;try{const _0x581943=this[_0x5146ce(0x2ff)](this[_0x5146ce(0x401)](),''+_0x6c5a16),_0x59d545=(await this[_0x5146ce(0x427)][_0x5146ce(0x53b)](_0x581943))[_0x5146ce(0x25a)];if(_0x59d545['error']&&_0x59d545[_0x5146ce(0x1b1)][_0x5146ce(0x36c)]===_0x471d59['OK']){const _0x458115=new URL(_0x59d545[_0x5146ce(0x51e)],this[_0x5146ce(0x1bc)]())[_0x5146ce(0x47c)]();return Promise[_0x5146ce(0x1d6)](_0x458115);}return Promise[_0x5146ce(0x435)](_0x59d545[_0x5146ce(0x1b1)]);}catch(_0x24c699){return Promise[_0x5146ce(0x435)](_0x24c699);}}async[_0x182123(0x421)](_0x517a27){const _0x4bd82a=_0x182123;let _0x76ff94='';if(!_0x35c98f['includes'](_0x517a27[_0x4bd82a(0x45b)]))return this[_0x4bd82a(0x371)](),Promise[_0x4bd82a(0x435)](new Error(_0x52582d['ImageUploadStatusType'][_0x4bd82a(0x53a)]));if(_0x517a27['size']>_0x2398a1)return this[_0x4bd82a(0x371)](),Promise[_0x4bd82a(0x435)](new Error(_0x52582d[_0x4bd82a(0x170)][_0x4bd82a(0x144)]));try{const _0x2f7792=new FormData();_0x2f7792[_0x4bd82a(0x148)](_0x4bd82a(0x42a),_0x517a27);const _0x5ce2c8=this[_0x4bd82a(0x348)][_0x4bd82a(0x3eb)](),_0xb7540e=_0x5ce2c8==null?void 0x0:_0x5ce2c8['getUnitId']();if(!_0xb7540e)throw new Error(_0x4bd82a(0x2fc));const _0x43f46f=this[_0x4bd82a(0x265)]()+_0x4bd82a(0x166)+_0x517a27[_0x4bd82a(0x1b9)][_0x4bd82a(0x47c)]()+_0x4bd82a(0x146)+_0x46d5bd[_0x4bd82a(0x37b)]+_0x4bd82a(0x28f)+encodeURIComponent(_0xb7540e),_0x1efaaf=await(await fetch(_0x43f46f,{'method':_0x4bd82a(0x520),'body':_0x2f7792}))[_0x4bd82a(0x525)]();if(typeof _0x1efaaf[_0x4bd82a(0x4b0)]!=_0x4bd82a(0x370))return this[_0x4bd82a(0x371)](),Promise[_0x4bd82a(0x435)](new Error(_0x52582d[_0x4bd82a(0x170)][_0x4bd82a(0x2a0)]));_0x76ff94=_0x1efaaf[_0x4bd82a(0x4b0)];}catch{return this[_0x4bd82a(0x371)](),Promise['reject'](new Error(_0x52582d[_0x4bd82a(0x170)][_0x4bd82a(0x2a0)]));}return new Promise((_0xd903f,_0x29b8cd)=>{const _0x5dcb7e=_0x4bd82a,_0x2e9990=new FileReader();_0x2e9990[_0x5dcb7e(0x413)](_0x517a27),_0x2e9990[_0x5dcb7e(0x255)]=_0x445304=>{const _0x2dd7c1=_0x5dcb7e;var _0x1e4e5d;const _0x38c938=(_0x1e4e5d=_0x445304[_0x2dd7c1(0x334)])==null?void 0x0:_0x1e4e5d[_0x2dd7c1(0x1e1)];if(_0x38c938==null){this[_0x2dd7c1(0x371)](),_0x29b8cd(new Error(_0x52582d[_0x2dd7c1(0x170)][_0x2dd7c1(0x2a0)]));return;}const _0x3cafe7=_0x3223aa[_0x2dd7c1(0x357)][_0x2dd7c1(0x492)](0x6);_0xd903f({'imageId':_0x3cafe7,'imageSourceType':_0x52582d[_0x2dd7c1(0x154)]['UUID'],'source':_0x76ff94,'base64Cache':_0x38c938,'status':_0x52582d[_0x2dd7c1(0x170)]['SUCCUSS']}),this[_0x2dd7c1(0x371)]();};});}[_0x182123(0x265)](){const _0x400673=_0x182123;var _0x17fb58,_0x5c187a;const _0x3f8416=this[_0x400673(0x404)][_0x400673(0x422)](_0x4226fe),_0x4001c9=this['_configService'][_0x400673(0x422)](_0x183913);return(_0x5c187a=(_0x17fb58=_0x4001c9==null?void 0x0:_0x4001c9[_0x400673(0x319)])!=null?_0x17fb58:_0x3f8416)!=null?_0x5c187a:_0x210700;}[_0x182123(0x401)](){const _0x20c044=_0x182123;var _0x5cd24d,_0x2fc61d;const _0x5ecb65=this[_0x20c044(0x404)][_0x20c044(0x422)](_0x827300),_0x57c87b=this[_0x20c044(0x404)][_0x20c044(0x422)](_0x183913);return(_0x2fc61d=(_0x5cd24d=_0x57c87b==null?void 0x0:_0x57c87b['signUrlServerUrl'])!=null?_0x5cd24d:_0x5ecb65)!=null?_0x2fc61d:_0x17409e;}[_0x182123(0x1bc)](){const _0x3837f0=_0x182123;var _0x4d9b63;const _0x55f43f=this['_configService']['getConfig'](_0x183913);return(_0x4d9b63=_0x55f43f==null?void 0x0:_0x55f43f[_0x3837f0(0x46c)])!=null?_0x4d9b63:location[_0x3837f0(0x3d1)];}['_replaceFileID'](_0x51f7cd,_0x1254a7){const _0x2bcae3=_0x182123;return _0x51f7cd[_0x2bcae3(0x2fe)](_0x2bcae3(0x39b),_0x1254a7);}[_0x182123(0x371)](){const _0x2cdcd3=_0x182123;this[_0x2cdcd3(0x530)]-=0x1,this[_0x2cdcd3(0x2f2)][_0x2cdcd3(0x2e5)](this['_waitCount']);}},_0x27845d['ImageIoService']=_0xdd0be5([_0x4d3ad8(0x0,_0x3223aa[_0x182123(0x40e)](_0x339579[_0x182123(0x1db)])),_0x4d3ad8(0x1,_0x3223aa[_0x182123(0x531)]),_0x4d3ad8(0x2,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x247)]))],_0x27845d[_0x182123(0x218)]);var _0x4ae40f=Object[_0x182123(0x33a)],_0x1ffff8=Object['getOwnPropertyDescriptor'],_0x3f3602=(_0x3e3368,_0x37688e,_0x55d79e,_0x6208e3)=>{const _0x58d1da=_0x182123;for(var _0x159f87=_0x6208e3>0x1?void 0x0:_0x6208e3?_0x1ffff8(_0x37688e,_0x55d79e):_0x37688e,_0xc1bfe4=_0x3e3368[_0x58d1da(0x4c3)]-0x1,_0x5ad13c;_0xc1bfe4>=0x0;_0xc1bfe4--)(_0x5ad13c=_0x3e3368[_0xc1bfe4])&&(_0x159f87=(_0x6208e3?_0x5ad13c(_0x37688e,_0x55d79e,_0x159f87):_0x5ad13c(_0x159f87))||_0x159f87);return _0x6208e3&&_0x159f87&&_0x4ae40f(_0x37688e,_0x55d79e,_0x159f87),_0x159f87;},_0x1dc197=(_0x515c5d,_0x368917)=>(_0x35f1e9,_0x3304c3)=>_0x368917(_0x35f1e9,_0x3304c3,_0x515c5d);let _0x43ea2b=class extends _0x3223aa['RxDisposable']{constructor(_0x3a7b96,_0x14960d,_0x26888d,_0x59f53c,_0x3f3a62){const _0x4400c6=_0x182123;super(),this[_0x4400c6(0x526)]=_0x3a7b96,this[_0x4400c6(0x348)]=_0x14960d,this[_0x4400c6(0x2db)]=_0x26888d,this[_0x4400c6(0x473)]=_0x59f53c,this[_0x4400c6(0x29b)]=_0x3f3a62,this[_0x4400c6(0x468)](),this[_0x4400c6(0x3e5)]();}[_0x182123(0x3e5)](){const _0xcf63a9=_0x182123,_0x1f5357=async _0x2d7eba=>{const _0x2aef18=_0x2e84;(await this[_0x2aef18(0x473)][_0x2aef18(0x31f)](_0x2d7eba))[_0x2aef18(0x36e)]['pipe'](_0xe02055[_0x2aef18(0x22a)](_0x5103bd=>_0x5103bd[_0x2aef18(0x138)]===_0x502235['CollaborationEvent'][_0x2aef18(0x26d)]),_0xe02055['takeUntil'](this[_0x2aef18(0x4ef)]))[_0x2aef18(0x10e)](_0x1a8d9a=>{const _0xc638d7=_0x2aef18,_0x5c48cb=_0x1a8d9a,{reason:_0x219f3c}=_0x5c48cb['data'];this[_0xc638d7(0x526)][_0xc638d7(0x53b)](_0x19d837[_0xc638d7(0x31b)])[_0xc638d7(0x2a4)]({'type':_0x4d822f[_0xc638d7(0x23f)][_0xc638d7(0x189)],'content':this[_0xc638d7(0x29b)]['t'](_0xc638d7(0x3e9))+'('+_0x219f3c+')'}),this[_0xc638d7(0x2db)][_0xc638d7(0x3ad)](new _0x4f46f0[(_0xc638d7(0x4d3))](_0x2d7eba)['id'],!0x1),this[_0xc638d7(0x473)]['closeSession'](_0x2d7eba);});};_0x41acaa[_0xcf63a9(0x1ce)](this[_0xcf63a9(0x348)][_0xcf63a9(0x2f4)](_0x3223aa[_0xcf63a9(0x4b9)][_0xcf63a9(0x2d4)]),this[_0xcf63a9(0x348)][_0xcf63a9(0x2f4)](_0x3223aa[_0xcf63a9(0x4b9)]['UNIVER_DOC']))[_0xcf63a9(0x493)](_0xe02055['map'](_0x514629=>_0x514629[_0xcf63a9(0x27a)]()),_0xe02055[_0xcf63a9(0x22a)](_0x56f822=>!_0x3223aa[_0xcf63a9(0x44f)](_0x56f822)),_0xe02055[_0xcf63a9(0x410)](this[_0xcf63a9(0x4ef)]))['subscribe'](_0x37dcc7=>{_0x1f5357(_0x37dcc7);});}[_0x182123(0x468)](){const _0x3f3102=_0x182123,_0x4bdc46=async _0x614c44=>{const _0x345352=_0x2e84;(await this[_0x345352(0x473)][_0x345352(0x31f)](_0x614c44))['event$'][_0x345352(0x493)](_0xe02055[_0x345352(0x22a)](_0x336656=>_0x336656[_0x345352(0x138)]===_0x502235['CollaborationEvent'][_0x345352(0x45e)]),_0xe02055['takeUntil'](this['dispose$']))[_0x345352(0x10e)](_0x248b2e=>{const _0x4549eb=_0x345352,_0x42279b=_0x248b2e,{objectId:_0x566da3}=_0x42279b['data'],_0x8b943c=this[_0x4549eb(0x526)][_0x4549eb(0x53b)](_0x166b0e[_0x4549eb(0x52e)]);_0x566da3===_0x614c44?_0x8b943c['initWorkbookPermissionChange'](_0x614c44):_0x8b943c['refreshPermission'](_0x614c44,_0x566da3);});};_0x41acaa[_0x3f3102(0x1ce)](this[_0x3f3102(0x348)][_0x3f3102(0x2f4)](_0x3223aa['UniverInstanceType'][_0x3f3102(0x2d4)]),this[_0x3f3102(0x348)][_0x3f3102(0x2f4)](_0x3223aa[_0x3f3102(0x4b9)][_0x3f3102(0x1c3)]))[_0x3f3102(0x493)](_0xe02055[_0x3f3102(0x486)](_0x5e05eb=>_0x5e05eb[_0x3f3102(0x27a)]()),_0xe02055['filter'](_0x4daedb=>!_0x3223aa[_0x3f3102(0x44f)](_0x4daedb)),_0xe02055[_0x3f3102(0x410)](this[_0x3f3102(0x4ef)]))[_0x3f3102(0x10e)](_0x13cc8c=>{_0x4bdc46(_0x13cc8c);});}};_0x43ea2b=_0x3f3602([_0x1dc197(0x0,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x14a)])),_0x1dc197(0x1,_0x3223aa[_0x182123(0x247)]),_0x1dc197(0x2,_0x3223aa[_0x182123(0x230)]),_0x1dc197(0x3,_0x3223aa[_0x182123(0x40e)](_0x27845d[_0x182123(0x3c7)])),_0x1dc197(0x4,_0x3223aa[_0x182123(0x40e)](_0x3223aa[_0x182123(0x1dd)]))],_0x43ea2b);var _0x5d672a=Object[_0x182123(0x33a)],_0xb3aca2=Object[_0x182123(0x363)],_0xf13c4d=(_0x46eadb,_0x9acfb7,_0x3ac021,_0x43d9e8)=>{const _0x2f93e5=_0x182123;for(var _0x27c22e=_0x43d9e8>0x1?void 0x0:_0x43d9e8?_0xb3aca2(_0x9acfb7,_0x3ac021):_0x9acfb7,_0x42855d=_0x46eadb[_0x2f93e5(0x4c3)]-0x1,_0x5bdfe4;_0x42855d>=0x0;_0x42855d--)(_0x5bdfe4=_0x46eadb[_0x42855d])&&(_0x27c22e=(_0x43d9e8?_0x5bdfe4(_0x9acfb7,_0x3ac021,_0x27c22e):_0x5bdfe4(_0x27c22e))||_0x27c22e);return _0x43d9e8&&_0x27c22e&&_0x5d672a(_0x9acfb7,_0x3ac021,_0x27c22e),_0x27c22e;},_0x31b075=(_0x1717e9,_0x24f408)=>(_0x458fe5,_0x2bc302)=>_0x24f408(_0x458fe5,_0x2bc302,_0x1717e9);_0x27845d[_0x182123(0x1d8)]=class{constructor(_0x44a751,_0x24fbbf){const _0x223bf2=_0x182123;this[_0x223bf2(0x404)]=_0x44a751,this[_0x223bf2(0x427)]=_0x24fbbf;}async[_0x182123(0x2a5)](_0x227e9b,_0x35ef63){const _0x499ccb=_0x182123;var _0x45aad3;const {unitID:_0x11b4b4,type:_0x11ef48,revision:_0x46cf3b=0x0}=_0x35ef63,_0x2a0fea=this[_0x499ccb(0x472)]()+'/'+_0x11ef48+_0x499ccb(0x4c4)+_0x11b4b4+'/rev/'+_0x46cf3b,_0x342c1c=(await this['_httpService']['get'](_0x2a0fea))[_0x499ccb(0x25a)],_0x3e9189=(_0x45aad3=_0x342c1c[_0x499ccb(0x1d5)])==null?void 0x0:_0x45aad3[_0x499ccb(0x42b)];if(_0x3e9189){const _0x21438a=_0x3e9189==null?void 0x0:_0x3e9189[_0x499ccb(0x1a9)],_0x38c131=_0x502235[_0x499ccb(0x15b)][_0x499ccb(0x2b1)](_0x502235[_0x499ccb(0x29f)](_0x21438a));_0x3e9189[_0x499ccb(0x1a9)]=_0x38c131,Object[_0x499ccb(0x27d)](_0x3e9189[_0x499ccb(0x232)])[_0x499ccb(0x19f)](([,_0xd93589])=>{const _0x5dd18c=_0x499ccb,_0x2f7e44=_0xd93589[_0x5dd18c(0x1a9)],_0x524c70=_0x502235[_0x5dd18c(0x15b)]['encode'](_0x502235[_0x5dd18c(0x29f)](_0x2f7e44));_0xd93589[_0x5dd18c(0x1a9)]=_0x524c70;});}return _0x342c1c;}async[_0x182123(0x19e)](_0x669319,_0x1072f2){const _0x2b8915=_0x182123,{unitID:_0x4b4e85,type:_0x50e025,blockID:_0x545f05}=_0x1072f2,_0x348945=this['_getAPIPrefix']()+'/'+_0x50e025+_0x2b8915(0x4c4)+_0x4b4e85+_0x2b8915(0x2d8)+_0x545f05;return(await this['_httpService']['get'](_0x348945))[_0x2b8915(0x25a)];}async[_0x182123(0x505)](_0x405300,_0x27b584){const _0x51d076=_0x182123,{unitID:_0x1e9b0c,type:_0xbbc49e,blockID:_0x3f65aa}=_0x27b584,_0x253c6b=this[_0x51d076(0x4fd)]()+_0x51d076(0x2d8)+_0xbbc49e+_0x51d076(0x4c4)+_0x1e9b0c+_0x51d076(0x2d8)+_0x3f65aa;return(await this[_0x51d076(0x427)]['get'](_0x253c6b))[_0x51d076(0x25a)];}async[_0x182123(0x466)](_0x108061,_0x1abc06){const _0x463e29=_0x182123,{unitID:_0x694f91,type:_0x19a54e,from:_0x24dd97,to:_0x2e32f8}=_0x1abc06,_0x46b53e=this[_0x463e29(0x4fd)]()+'/'+_0x19a54e+_0x463e29(0x4c4)+_0x694f91+'/fetchmissing?from='+_0x24dd97+_0x463e29(0x314)+_0x2e32f8;return(await this[_0x463e29(0x427)]['get'](_0x46b53e))['body'];}[_0x182123(0x472)](){const _0x5e3c8e=_0x182123;var _0x41e67a;return(_0x41e67a=this[_0x5e3c8e(0x404)][_0x5e3c8e(0x422)](_0x236963))!=null?_0x41e67a:this[_0x5e3c8e(0x4fd)]();}[_0x182123(0x4fd)](){const _0xa26b6=_0x182123;var _0x30ec01,_0x2867f3;const _0x25d3ba=this[_0xa26b6(0x404)][_0xa26b6(0x422)](_0x393c92),_0xf28105=this[_0xa26b6(0x404)][_0xa26b6(0x422)](_0x183913);return(_0x2867f3=(_0x30ec01=_0xf28105==null?void 0x0:_0xf28105[_0xa26b6(0x3c4)])!=null?_0x30ec01:_0x25d3ba)!=null?_0x2867f3:_0x272feb;}async[_0x182123(0x353)](_0x16df92,_0xb747b8){const _0x539ee4=_0x182123,_0x30904d=_0x539ee4(0x4e3)+_0xb747b8['type']+_0x539ee4(0x4c4)+_0xb747b8[_0x539ee4(0x250)]+'/resources';return(await this[_0x539ee4(0x427)]['get'](_0x30904d,{'params':{'resourceId':JSON[_0x539ee4(0x17d)](_0xb747b8[_0x539ee4(0x34c)])}}))[_0x539ee4(0x25a)];}[_0x182123(0x54a)](){const _0x5ca3cb=_0x182123;throw new Error(_0x5ca3cb(0x46d));}[_0x182123(0x3c2)](){const _0x40fd0b=_0x182123;throw new Error(_0x40fd0b(0x46d));}['saveChangeset'](){const _0x1f14b6=_0x182123;throw new Error(_0x1f14b6(0x46d));}[_0x182123(0x3d7)](){const _0x1faab6=_0x182123;throw new Error(_0x1faab6(0x46d));}[_0x182123(0x1e3)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},_0x27845d[_0x182123(0x1d8)]=_0xf13c4d([_0x31b075(0x0,_0x3223aa[_0x182123(0x531)]),_0x31b075(0x1,_0x3223aa[_0x182123(0x40e)](_0x339579[_0x182123(0x1db)]))],_0x27845d['SnapshotServerOverHTTPService']);var _0x499f86=Object[_0x182123(0x33a)],_0xcc87ce=Object[_0x182123(0x363)],_0x2b1f8b=(_0x3a641f,_0x20a87e,_0x387e1c,_0x5039b1)=>{const _0x59cbd8=_0x182123;for(var _0x277c46=_0x5039b1>0x1?void 0x0:_0x5039b1?_0xcc87ce(_0x20a87e,_0x387e1c):_0x20a87e,_0xb79389=_0x3a641f[_0x59cbd8(0x4c3)]-0x1,_0x184d1c;_0xb79389>=0x0;_0xb79389--)(_0x184d1c=_0x3a641f[_0xb79389])&&(_0x277c46=(_0x5039b1?_0x184d1c(_0x20a87e,_0x387e1c,_0x277c46):_0x184d1c(_0x277c46))||_0x277c46);return _0x5039b1&&_0x277c46&&_0x499f86(_0x20a87e,_0x387e1c,_0x277c46),_0x277c46;},_0x4613f3=(_0x27e7db,_0x587d44)=>(_0x4a6f04,_0x2c06a5)=>_0x587d44(_0x4a6f04,_0x2c06a5,_0x27e7db);let _0x3fef04=class extends _0x3223aa[_0x182123(0x34a)]{constructor(_0x41f826,_0x12bd55,_0xcde3fa,_0x3855bd,_0x56e194){const _0x2f341b=_0x182123;super(_0x41f826,_0x12bd55,_0xcde3fa),this[_0x2f341b(0x2b5)]=_0x3855bd,this[_0x2f341b(0x397)]=_0x56e194;}[_0x182123(0x507)](_0x3f1b3a,_0xb465b6){const _0x35cf0c=_0x182123,_0x292641=this['_getUndoStack'](_0x3f1b3a);if(_0x292641)try{const _0x210b86=this['_transformStack'](_0x292641,_0xb465b6);this[_0x35cf0c(0x442)](_0x3f1b3a,_0x210b86);}catch(_0x3e43ca){this[_0x35cf0c(0x397)][_0x35cf0c(0x1b1)](_0x35cf0c(0x2d9),_0x3e43ca),this[_0x35cf0c(0x536)](_0x3f1b3a);}const _0x52cf8e=this['_getRedoStack'](_0x3f1b3a);if(_0x52cf8e)try{const _0x1f12ee=this[_0x35cf0c(0x360)](_0x52cf8e,_0xb465b6);this['_substituteRedoStack'](_0x3f1b3a,_0x1f12ee);}catch(_0x258a53){this['_logService'][_0x35cf0c(0x1b1)](_0x258a53),this[_0x35cf0c(0x172)](_0x3f1b3a);}}['_clearUndo'](_0x4e88e4){const _0x23c9ed=_0x182123,_0x288a73=this['_getUndoStack'](_0x4e88e4);_0x288a73&&(_0x288a73[_0x23c9ed(0x4c3)]=0x0,this[_0x23c9ed(0x226)]());}[_0x182123(0x172)](_0x94b7f2){const _0x2845c2=_0x182123,_0x146fee=this[_0x2845c2(0x245)](_0x94b7f2);_0x146fee&&(_0x146fee[_0x2845c2(0x4c3)]=0x0,this[_0x2845c2(0x226)]());}['_substituteUndoStack'](_0x2c5c09,_0x3c68a5){const _0x233ab9=_0x182123;this[_0x233ab9(0x364)][_0x233ab9(0x132)](_0x2c5c09,_0x3c68a5),this[_0x233ab9(0x226)]();}['_substituteRedoStack'](_0x45b25e,_0x137145){const _0x24fcc3=_0x182123;this[_0x24fcc3(0x352)]['set'](_0x45b25e,_0x137145),this[_0x24fcc3(0x226)]();}[_0x182123(0x360)](_0x351074,_0x197e05){const _0x3aa782=_0x182123,_0x44f303=[];let _0x215a39=_0x197e05,_0x5d83b9=_0x197e05;for(let _0x15b91c=_0x351074[_0x3aa782(0x4c3)]-0x1;_0x15b91c>=0x0;_0x15b91c--){const {unitID:_0x34f258,undoMutations:_0x1a9b48,redoMutations:_0x5b7077}=_0x351074[_0x15b91c],_0x3230a9=this[_0x3aa782(0x2b5)]['transformMutationsWithChangeset'](_0x215a39,_0x1a9b48),_0x806b25=this[_0x3aa782(0x2b5)][_0x3aa782(0x419)](_0x5d83b9,_0x5b7077);if(_0x502235[_0x3aa782(0x2ac)](_0x3230a9)||_0x502235[_0x3aa782(0x2ac)](_0x806b25)){this[_0x3aa782(0x397)][_0x3aa782(0x1b1)](_0x3aa782(0x2d9),'transformStack\x20failed!',_0x3230a9,_0x806b25);break;}_0x215a39=_0x3230a9['c1Prime'],_0x5d83b9=_0x806b25[_0x3aa782(0x490)],_0x44f303[_0x3aa782(0x2fb)]({'unitID':_0x34f258,'undoMutations':_0x3230a9[_0x3aa782(0x35b)],'redoMutations':_0x806b25['m2Prime']});}return _0x44f303[_0x3aa782(0x181)]();}};_0x3fef04=_0x2b1f8b([_0x4613f3(0x0,_0x3223aa[_0x182123(0x247)]),_0x4613f3(0x1,_0x3223aa[_0x182123(0x23b)]),_0x4613f3(0x2,_0x3223aa['IContextService']),_0x4613f3(0x3,_0x502235['ITransformService']),_0x4613f3(0x4,_0x3223aa[_0x182123(0x3bf)])],_0x3fef04);class _0x2bc96c extends _0x3223aa[_0x182123(0x4a9)]{constructor(){const _0x22b354=_0x182123;super(),_0x571923(this,_0x22b354(0x4c9)),this[_0x22b354(0x4c9)]=_0x41acaa[_0x22b354(0x289)](window,_0x22b354(0x45d))[_0x22b354(0x493)](_0x41acaa['takeUntil'](this[_0x22b354(0x4ef)]),_0x41acaa[_0x22b354(0x4ff)](0x1),_0x41acaa['mapTo'](void 0x0));}[_0x182123(0x4d9)](_0x299c3e,_0xb3efe0,_0x1eb78e=!0x1){const _0xa3bab6=_0x182123,_0x2c5621=new URL(window['location'][_0xa3bab6(0x1a8)]);_0x2c5621[_0xa3bab6(0x196)][_0xa3bab6(0x132)](_0x299c3e,_0xb3efe0),_0x1eb78e?window['history'][_0xa3bab6(0x20c)]('','',_0x2c5621[_0xa3bab6(0x47c)]()):window[_0xa3bab6(0x3b2)][_0xa3bab6(0x2b3)]('','',_0x2c5621[_0xa3bab6(0x47c)]());}[_0x182123(0x162)](_0x3d3f7a,_0x3c1c08=!0x1){const _0xcbf406=_0x182123,_0x3385a3=new URL(window[_0xcbf406(0x4fe)][_0xcbf406(0x1a8)]);_0x3385a3[_0xcbf406(0x196)][_0xcbf406(0x4e1)](_0x3d3f7a),_0x3c1c08?window[_0xcbf406(0x3b2)]['replaceState']('','',_0x3385a3['toString']()):window[_0xcbf406(0x3b2)][_0xcbf406(0x2b3)]('','',_0x3385a3[_0xcbf406(0x47c)]());}['getParam'](_0x253563){const _0x559827=_0x182123;var _0xa26f63;return(_0xa26f63=new URL(window[_0x559827(0x4fe)][_0x559827(0x1a8)])['searchParams'][_0x559827(0x53b)](_0x253563))!=null?_0xa26f63:void 0x0;}}var _0x4c6d00=Object['defineProperty'],_0x149662=Object[_0x182123(0x363)],_0x1bfb12=(_0x4aa515,_0x3f9da0,_0x4b95ec)=>_0x3f9da0 in _0x4aa515?_0x4c6d00(_0x4aa515,_0x3f9da0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b95ec}):_0x4aa515[_0x3f9da0]=_0x4b95ec,_0x52e9e1=(_0x19e468,_0x517659,_0x2b2f0f,_0x2068a4)=>{const _0x16a56a=_0x182123;for(var _0x55732a=_0x2068a4>0x1?void 0x0:_0x2068a4?_0x149662(_0x517659,_0x2b2f0f):_0x517659,_0x16b662=_0x19e468[_0x16a56a(0x4c3)]-0x1,_0x3355f1;_0x16b662>=0x0;_0x16b662--)(_0x3355f1=_0x19e468[_0x16b662])&&(_0x55732a=(_0x2068a4?_0x3355f1(_0x517659,_0x2b2f0f,_0x55732a):_0x3355f1(_0x55732a))||_0x55732a);return _0x2068a4&&_0x55732a&&_0x4c6d00(_0x517659,_0x2b2f0f,_0x55732a),_0x55732a;},_0x6f30fa=(_0x4b4f01,_0x130b18)=>(_0x4471d3,_0x58eb13)=>_0x130b18(_0x4471d3,_0x58eb13,_0x4b4f01),_0x20c02a=(_0x2ef62b,_0x52eed1,_0x45e938)=>_0x1bfb12(_0x2ef62b,_0x52eed1+'',_0x45e938);const _0x208b06=_0x182123(0x3cf);_0x27845d[_0x182123(0x192)]=class extends _0x3223aa[_0x182123(0x4f8)]{constructor(_0x4ea33d=_0x2e3dd5,_0x2289d2,_0x9703b,_0x309ec5,_0x2bb00f){const _0x4a8f4c=_0x182123;super(),this['_config']=_0x4ea33d,this['_logService']=_0x2289d2,this[_0x4a8f4c(0x39e)]=_0x9703b,this[_0x4a8f4c(0x526)]=_0x309ec5,this[_0x4a8f4c(0x404)]=_0x2bb00f;const {..._0x14f75f}=this[_0x4a8f4c(0x431)];this['_configService'][_0x4a8f4c(0x47a)](_0x183913,_0x14f75f);}[_0x182123(0x3a6)](){const _0x52f988=_0x182123;this[_0x52f988(0x21a)](),_0x3223aa[_0x52f988(0x2a2)](this[_0x52f988(0x526)],[[_0x5a312c],[_0x27845d[_0x52f988(0x4ab)]],[_0x43ea2b]]);}[_0x182123(0x185)](){_0x3223aa['touchDependencies'](this['_injector'],[[_0x552a78]]);}['onRendered'](){const _0x1be77a=_0x182123;this[_0x1be77a(0x4b6)]();}[_0x182123(0x21a)](){const _0xc72a21=_0x182123;var _0x1de2ee,_0x5ac1bc,_0x138bb1,_0x2007cc;this['_injector'][_0xc72a21(0x39c)](_0x3223aa[_0xc72a21(0x3d5)])&&this[_0xc72a21(0x397)][_0xc72a21(0x1b1)](_0xc72a21(0x18a),_0xc72a21(0x469));let _0x10c6e9=[[_0x3223aa[_0xc72a21(0x3d5)],{'useClass':_0x3fef04}],[_0x27845d[_0xc72a21(0x3c7)]],[_0x38c784],[_0x339579[_0xc72a21(0x1db)]],[_0x38ca16,{'useClass':_0x2bc96c}],[_0x842f02],[_0x27845d[_0xc72a21(0x199)]],[_0x339579[_0xc72a21(0x3ff)]],[_0x38921c],[_0x427d95],[_0x136308],[_0x729593],[_0x363794],[_0x166d8],[_0x49bccd],[_0x43ea2b],[_0x46719b,{'useClass':(_0x5ac1bc=(_0x1de2ee=this[_0xc72a21(0x431)])==null?void 0x0:_0x1de2ee[_0xc72a21(0x311)])!=null?_0x5ac1bc:_0x27845d['CollaborationSocketService']}],[_0x339579['IHTTPImplementation'],{'useClass':_0x339579[_0xc72a21(0x1b2)]}],[_0x502235[_0xc72a21(0x49d)],{'useClass':_0x27845d[_0xc72a21(0x1d8)]}],[_0x3223aa[_0xc72a21(0x365)],{'useClass':_0x27845d['AuthzIoHttpService']}],[_0x52582d[_0xc72a21(0x4d1)],{'useClass':_0x27845d[_0xc72a21(0x218)]}],[_0x27845d[_0xc72a21(0x30b)]],[_0x27845d[_0xc72a21(0x4ab)]],[_0x27845d['DesktopCollaborationStatusDisplayController']],[_0x552a78],[_0x5a312c]];(_0x138bb1=this[_0xc72a21(0x431)])!=null&&_0x138bb1[_0xc72a21(0x2e9)]&&_0x10c6e9[_0xc72a21(0x2fb)]([_0x49a942,{'useClass':_0x5e3f39}]),_0x10c6e9=_0x3223aa[_0xc72a21(0x149)](_0x10c6e9,(_0x2007cc=this['_config'])==null?void 0x0:_0x2007cc[_0xc72a21(0x36a)]),_0x10c6e9[_0xc72a21(0x19f)](_0x347d91=>this[_0xc72a21(0x526)]['add'](_0x347d91)),this[_0xc72a21(0x21f)]();}[_0x182123(0x4b6)](){const _0x2ed397=_0x182123;this[_0x2ed397(0x2c6)](this[_0x2ed397(0x39e)]['registerRenderModule'](_0x3223aa['UniverInstanceType'][_0x2ed397(0x1c3)],[_0x505fb8])),this[_0x2ed397(0x2c6)](this[_0x2ed397(0x39e)]['registerRenderModule'](_0x3223aa['UniverInstanceType'][_0x2ed397(0x2d4)],[_0x5db2cc]));}['_initModules'](){const _0x5cae4d=_0x182123;var _0x5608bd,_0x4521a4;this[_0x5cae4d(0x526)][_0x5cae4d(0x53b)](_0x339579[_0x5cae4d(0x1db)])[_0x5cae4d(0x312)]({'priority':0x14,'interceptor':_0x339579[_0x5cae4d(0x1f6)]({'maxParallel':0x6})}),this[_0x5cae4d(0x526)][_0x5cae4d(0x53b)](_0x166d8),(_0x5608bd=this[_0x5cae4d(0x431)])!=null&&_0x5608bd[_0x5cae4d(0x264)]||this[_0x5cae4d(0x526)]['get'](_0x27845d['LocalCacheService'])['disableLocalCache'](),(_0x4521a4=this[_0x5cae4d(0x431)])!=null&&_0x4521a4[_0x5cae4d(0x508)]&&this[_0x5cae4d(0x526)]['get'](_0x363794),this[_0x5cae4d(0x526)]['get'](_0x27845d[_0x5cae4d(0x30b)]),this[_0x5cae4d(0x526)][_0x5cae4d(0x39c)](_0x27845d[_0x5cae4d(0x1f1)])&&this[_0x5cae4d(0x526)][_0x5cae4d(0x53b)](_0x27845d['DesktopCollaborationStatusDisplayController']);}},_0x20c02a(_0x27845d['UniverCollaborationClientPlugin'],_0x182123(0x2c7),_0x208b06),_0x27845d[_0x182123(0x192)]=_0x52e9e1([_0x3223aa[_0x182123(0x213)](_0x502235['UniverCollaborationPlugin']),_0x6f30fa(0x1,_0x3223aa['ILogService']),_0x6f30fa(0x2,_0x20af9e[_0x182123(0x444)]),_0x6f30fa(0x3,_0x3223aa['Inject'](_0x3223aa[_0x182123(0x14a)])),_0x6f30fa(0x4,_0x3223aa['IConfigService'])],_0x27845d[_0x182123(0x192)]),_0x27845d['AUTHZ_URL_KEY']=_0x7c1155,_0x27845d[_0x182123(0x514)]=_0x19bb96,_0x27845d[_0x182123(0x547)]=_0x59775a,_0x27845d['CollaborationStatus']=_0x12b363,_0x27845d[_0x182123(0x1c6)]=_0x2411f5,_0x27845d[_0x182123(0x375)]=_0x49bccd,_0x27845d[_0x182123(0x2c8)]=_0x4c4485,_0x27845d[_0x182123(0x120)]=_0x3cbca8,_0x27845d['ICollaborationSocketService']=_0x46719b,_0x27845d[_0x182123(0x304)]=_0x38ca16,_0x27845d['LOCAL_CACHE_INTERVAL_KEY']=_0x45a061,_0x27845d['LOGIN_URL_KEY']=_0x4f9925,_0x27845d[_0x182123(0x212)]=_0x433296,_0x27845d['SEND_CHANGESET_TIMEOUT_KEY']=_0x3a6e9c,_0x27845d[_0x182123(0x488)]=_0x393c92,_0x27845d[_0x182123(0x376)]=_0x236963,_0x27845d['SessionStatus']=_0x49249e,_0x27845d[_0x182123(0x4ca)]=_0x3ce3f1,_0x27845d[_0x182123(0x544)]=_0x2bc96c,_0x27845d[_0x182123(0x538)]=_0x534327,_0x27845d['serializeCombRequest']=_0x5f417a,Object[_0x182123(0x33a)](_0x27845d,Symbol[_0x182123(0x2dc)],{'value':_0x182123(0x52f)});}));