@univerjs-pro/collaboration-client 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +26 -26
package/lib/umd/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(_0x5a0333,_0xf08ba3){const _0x2f0f1e=_0x492d,_0x15fada=_0x5a0333();while(!![]){try{const _0x78c615=-parseInt(_0x2f0f1e(0x3ad))/0x1+parseInt(_0x2f0f1e(0x340))/0x2+parseInt(_0x2f0f1e(0x1b4))/0x3+parseInt(_0x2f0f1e(0x1b8))/0x4+-parseInt(_0x2f0f1e(0x1c3))/0x5*(parseInt(_0x2f0f1e(0x3dc))/0x6)+-parseInt(_0x2f0f1e(0x2d8))/0x7+-parseInt(_0x2f0f1e(0x493))/0x8*(-parseInt(_0x2f0f1e(0x1db))/0x9);if(_0x78c615===_0xf08ba3)break;else _0x15fada['push'](_0x15fada['shift']());}catch(_0x1ffe6f){_0x15fada['push'](_0x15fada['shift']());}}}(_0x23bd,0x683eb),function(_0x2fa430,_0x4f5774){const _0x380162=_0x492d;typeof exports==_0x380162(0x18a)&&typeof module<'u'?_0x4f5774(exports,require(_0x380162(0x38f)),require(_0x380162(0x22d)),require('@univerjs/design'),require('@univerjs/ui'),require(_0x380162(0x256)),require(_0x380162(0x48e)),require(_0x380162(0x1ba)),require(_0x380162(0x302)),require('@univerjs/docs'),require(_0x380162(0x4b2)),require(_0x380162(0x41e)),require(_0x380162(0x28a)),require('lodash/debounce'),require(_0x380162(0x103)),require(_0x380162(0x193)),require(_0x380162(0x128)),require(_0x380162(0x41d)),require(_0x380162(0x259)),require('@univerjs/rpc')):typeof define==_0x380162(0x452)&&define[_0x380162(0x3a2)]?define([_0x380162(0x2b7),_0x380162(0x38f),_0x380162(0x22d),_0x380162(0x2e3),_0x380162(0x219),'@univerjs-pro/collaboration',_0x380162(0x48e),_0x380162(0x1ba),_0x380162(0x302),_0x380162(0x364),_0x380162(0x4b2),_0x380162(0x41e),_0x380162(0x28a),_0x380162(0x2da),_0x380162(0x103),'@univerjs/sheets-ui','@wendellhu/redi/react-bindings',_0x380162(0x41d),_0x380162(0x259),_0x380162(0x35b)],_0x4f5774):(_0x2fa430=typeof globalThis<'u'?globalThis:_0x2fa430||self,_0x4f5774(_0x2fa430[_0x380162(0x3db)]={},_0x2fa430[_0x380162(0x1c4)],_0x2fa430['UniverSheets'],_0x2fa430[_0x380162(0x403)],_0x2fa430[_0x380162(0x1d6)],_0x2fa430[_0x380162(0x1f9)],_0x2fa430['@wendellhu/redi'],_0x2fa430['rxjs'],_0x2fa430[_0x380162(0x1ba)]['operators'],_0x2fa430[_0x380162(0x2a9)],_0x2fa430[_0x380162(0x27c)],_0x2fa430[_0x380162(0x399)],_0x2fa430[_0x380162(0x238)],_0x2fa430['lodash'][_0x380162(0x4ae)],_0x2fa430[_0x380162(0x141)],_0x2fa430[_0x380162(0x3c8)],_0x2fa430[_0x380162(0x128)],_0x2fa430[_0x380162(0x3dd)],_0x2fa430[_0x380162(0x259)],_0x2fa430[_0x380162(0x4a9)]));}(this,function(_0x322d5b,_0x592d59,_0x5e4af3,_0x5063fc,_0x2c52d3,_0x1f6364,_0x1ea985,_0x3c7a49,_0x39f29f,_0x30cc49,_0x490a4f,_0x3b3d9c,_0x475fb6,_0x5e5cd3,_0x5c59d0,_0x1c3859,_0x250089,_0x4f6c5c,_0x4dd75f,_0x5d4b6e){'use strict';const _0x1000c0=_0x492d;var _0x31ddb8=Object[_0x1000c0(0x1a1)],_0x4086f5=(_0x369e63,_0xfa0db5,_0x4dbdea)=>_0xfa0db5 in _0x369e63?_0x31ddb8(_0x369e63,_0xfa0db5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4dbdea}):_0x369e63[_0xfa0db5]=_0x4dbdea,_0x40dfd7=(_0x3191ee,_0x1c7f3a,_0x1f74cd)=>_0x4086f5(_0x3191ee,typeof _0x1c7f3a!='symbol'?_0x1c7f3a+'':_0x1c7f3a,_0x1f74cd);const _0x4ba31f='SNAPSHOT_SERVER_URL_KEY',_0x14ea18='/universer-api/snapshot',_0x3478c0=_0x1000c0(0x380),_0x48f0d1=_0x1000c0(0x4b8),_0x1ed340=_0x1000c0(0x4ce),_0x3a2870='ws://127.0.0.1:8000/universer-api/comb/connect',_0x415ece=_0x1000c0(0x3bc),_0x22e7f5=_0x1000c0(0x1fe),_0x58522e=_0x1000c0(0x313),_0x966ced=_0x1000c0(0x1f6),_0x5cb089=_0x1000c0(0x45e),_0x50bca1='COLLAB_SUBMIT_CHANGESET_URL',_0x2a5647='/universer-api/comb',_0x24179b=_0x1000c0(0x381),_0x21698b=_0x1000c0(0x198);var _0x39c634=(_0x30a466=>(_0x30a466[_0x30a466[_0x1000c0(0x17d)]=0x0]=_0x1000c0(0x17d),_0x30a466[_0x30a466['OK']=0x1]='OK',_0x30a466[_0x30a466['INTERNAL_ERROR']=0x2]=_0x1000c0(0x110),_0x30a466[_0x30a466[_0x1000c0(0x3b4)]=0x3]=_0x1000c0(0x3b4),_0x30a466[_0x30a466[_0x1000c0(0x247)]=0x4]=_0x1000c0(0x247),_0x30a466[_0x30a466['UNAUTHENTICATED']=0x5]=_0x1000c0(0x353),_0x30a466[_0x30a466[_0x1000c0(0x3af)]=0x6]='ALREADY_EXISTS',_0x30a466[_0x30a466[_0x1000c0(0x40f)]=0x7]=_0x1000c0(0x40f),_0x30a466[_0x30a466[_0x1000c0(0x197)]=0x8]=_0x1000c0(0x197),_0x30a466[_0x30a466['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x30a466[_0x30a466[_0x1000c0(0x2f8)]=0x1389]=_0x1000c0(0x2f8),_0x30a466[_0x30a466['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x30a466[_0x30a466[_0x1000c0(0x190)]=0x1772]=_0x1000c0(0x190),_0x30a466[_0x30a466[_0x1000c0(0x4a6)]=0x1b59]='APPLY_REJECT',_0x30a466[_0x30a466[_0x1000c0(0x3a8)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x30a466[_0x30a466[_0x1000c0(0x392)]=0x1b5b]=_0x1000c0(0x392),_0x30a466[_0x30a466[_0x1000c0(0x166)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x30a466[_0x30a466[_0x1000c0(0x2fa)]=0x1f41]=_0x1000c0(0x2fa),_0x30a466[_0x30a466[_0x1000c0(0x499)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x30a466[_0x30a466[_0x1000c0(0x1d7)]=0x232a]=_0x1000c0(0x1d7),_0x30a466[_0x30a466['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x30a466[_0x30a466[_0x1000c0(0x354)]=0x232c]=_0x1000c0(0x354),_0x30a466[_0x30a466['LICENSE_DISTRO_REJECTED']=0x232d]=_0x1000c0(0x355),_0x30a466[_0x30a466[_0x1000c0(0x3e6)]=0x2711]=_0x1000c0(0x3e6),_0x30a466[_0x30a466[_0x1000c0(0x4bc)]=0x2712]=_0x1000c0(0x4bc),_0x30a466[_0x30a466[_0x1000c0(0x324)]=-0x1]='UNRECOGNIZED',_0x30a466))(_0x39c634||{}),_0x376736=(_0x3b9344=>(_0x3b9344[_0x3b9344['UNIVER_UNKNOWN']=0x0]=_0x1000c0(0x4d0),_0x3b9344[_0x3b9344[_0x1000c0(0x119)]=0x1]=_0x1000c0(0x119),_0x3b9344[_0x3b9344['UNIVER_SHEET']=0x2]=_0x1000c0(0x149),_0x3b9344[_0x3b9344[_0x1000c0(0x477)]=0x3]=_0x1000c0(0x477),_0x3b9344[_0x3b9344[_0x1000c0(0x324)]=-0x1]=_0x1000c0(0x324),_0x3b9344))(_0x376736||{}),_0x2f9f5b=(_0x396264=>(_0x396264[_0x396264[_0x1000c0(0x433)]=0x0]=_0x1000c0(0x433),_0x396264[_0x396264[_0x1000c0(0x3a9)]=0x1]=_0x1000c0(0x3a9),_0x396264[_0x396264[_0x1000c0(0x241)]=0x2]=_0x1000c0(0x241),_0x396264[_0x396264[_0x1000c0(0xf7)]=0x3]=_0x1000c0(0xf7),_0x396264[_0x396264[_0x1000c0(0x139)]=0x4]=_0x1000c0(0x139),_0x396264[_0x396264[_0x1000c0(0x3a6)]=0x5]=_0x1000c0(0x3a6),_0x396264[_0x396264[_0x1000c0(0x2ff)]=0x6]='RECV',_0x396264[_0x396264[_0x1000c0(0x324)]=-0x1]='UNRECOGNIZED',_0x396264))(_0x2f9f5b||{}),_0x282d51=(_0x5bd06e=>(_0x5bd06e[_0x5bd06e[_0x1000c0(0x23d)]=0x0]=_0x1000c0(0x23d),_0x5bd06e[_0x5bd06e['OK']=0x1]='OK',_0x5bd06e[_0x5bd06e[_0x1000c0(0x27d)]=0x2]='FAIL',_0x5bd06e[_0x5bd06e[_0x1000c0(0x324)]=-0x1]='UNRECOGNIZED',_0x5bd06e))(_0x282d51||{}),_0x134f94=Object[_0x1000c0(0x1a1)],_0x5e0676=Object[_0x1000c0(0x2d4)],_0x450ba3=(_0x3a661b,_0x371428,_0x2721c1,_0x35e7c5)=>{const _0x8d646a=_0x1000c0;for(var _0xd8acc0=_0x35e7c5>0x1?void 0x0:_0x35e7c5?_0x5e0676(_0x371428,_0x2721c1):_0x371428,_0x2e9a5b=_0x3a661b[_0x8d646a(0x1d8)]-0x1,_0x5e2f61;_0x2e9a5b>=0x0;_0x2e9a5b--)(_0x5e2f61=_0x3a661b[_0x2e9a5b])&&(_0xd8acc0=(_0x35e7c5?_0x5e2f61(_0x371428,_0x2721c1,_0xd8acc0):_0x5e2f61(_0xd8acc0))||_0xd8acc0);return _0x35e7c5&&_0xd8acc0&&_0x134f94(_0x371428,_0x2721c1,_0xd8acc0),_0xd8acc0;},_0x49aa6c=(_0x329345,_0x1db133)=>(_0x5b5caa,_0x1974d0)=>_0x1db133(_0x5b5caa,_0x1974d0,_0x329345);let _0x2539c6=class extends _0x592d59[_0x1000c0(0x450)]{constructor(_0x3d8e61,_0x264a66){const _0x15d745=_0x1000c0;super(),_0x40dfd7(this,_0x15d745(0x299),new Map()),(this['_univerInstanceService']=_0x3d8e61,this['_userManagerService']=_0x264a66,this['disposeWithMe'](_0x592d59[_0x15d745(0x29f)](_0x3c7a49[_0x15d745(0x30f)](this[_0x15d745(0x40b)][_0x15d745(0x341)](_0x592d59['UniverInstanceType'][_0x15d745(0x149)])[_0x15d745(0x161)](_0x39f29f[_0x15d745(0x1f5)](_0x5b84d6=>_0x5b84d6['getUnitId']())),this[_0x15d745(0x40b)][_0x15d745(0x341)](_0x592d59[_0x15d745(0x1b5)][_0x15d745(0x119)])['pipe'](_0x39f29f[_0x15d745(0x1f5)](_0x23083a=>_0x23083a[_0x15d745(0x270)]())),this[_0x15d745(0x40b)][_0x15d745(0x341)](_0x592d59[_0x15d745(0x1b5)][_0x15d745(0x477)])[_0x15d745(0x161)](_0x39f29f['map'](_0x16fc6a=>_0x16fc6a[_0x15d745(0x270)]())))[_0x15d745(0x42f)](_0x224f6f=>this[_0x15d745(0x171)](_0x224f6f)))));}[_0x1000c0(0x3ac)](_0xb64875){const _0x50a543=_0x1000c0;this[_0x50a543(0x13d)][_0x50a543(0x3ac)](_0xb64875);}[_0x1000c0(0x277)](){return this['_userManagerService']['getCurrentUser']();}[_0x1000c0(0x262)](_0x13db29,_0x43bc24){const _0x192b2f=_0x1000c0;let _0x4bf994=this['_roomMembers']['get'](_0x13db29);_0x4bf994||(_0x4bf994=new _0x5ee9c7(),this[_0x192b2f(0x299)]['set'](_0x13db29,_0x4bf994)),_0x4bf994[_0x192b2f(0x262)](_0x43bc24);}[_0x1000c0(0x455)](_0x2473c1,_0x29f636){const _0x41b4be=_0x1000c0,_0x37f1d2=this[_0x41b4be(0x299)][_0x41b4be(0x1de)](_0x2473c1);_0x37f1d2&&_0x37f1d2[_0x41b4be(0x455)](_0x29f636);}[_0x1000c0(0x3e2)](_0x17cd30){const _0x1d25fd=_0x1000c0;return this['_roomMembers'][_0x1d25fd(0x1de)](_0x17cd30);}[_0x1000c0(0x1cc)](_0x2f90ff,_0x260053){const _0x4b765c=_0x1000c0,_0x4619e4=this[_0x4b765c(0x299)][_0x4b765c(0x1de)](_0x2f90ff);if(_0x4619e4)return _0x4619e4[_0x4b765c(0x1cc)](_0x260053);}['_removeRoom'](_0x46cc55){const _0x971bf2=_0x1000c0,_0x158118=this[_0x971bf2(0x299)][_0x971bf2(0x1de)](_0x46cc55);_0x158118&&(_0x158118['dispose'](),this[_0x971bf2(0x299)][_0x971bf2(0x234)](_0x46cc55));}[_0x1000c0(0x36f)](){const _0x502864=_0x1000c0;this['_roomMembers'][_0x502864(0x24b)](_0x2154f8=>_0x2154f8['dispose']()),this['_roomMembers'][_0x502864(0x370)]();}};_0x2539c6=_0x450ba3([_0x49aa6c(0x0,_0x592d59[_0x1000c0(0x305)]),_0x49aa6c(0x1,_0x1ea985['Inject'](_0x592d59[_0x1000c0(0x2dc)]))],_0x2539c6);class _0x5ee9c7 extends _0x592d59['Disposable']{constructor(){super(...arguments),_0x40dfd7(this,'_members',new Map());}[_0x1000c0(0x36f)](){const _0x217119=_0x1000c0;this[_0x217119(0xfa)]['clear']();}[_0x1000c0(0x262)](_0x30f7c9){const _0x1debb2=_0x1000c0;this[_0x1debb2(0xfa)]['set'](_0x30f7c9[_0x1debb2(0x4aa)],_0x30f7c9);}['removeMember'](_0x449509){const _0x5d6a6a=_0x1000c0;this[_0x5d6a6a(0xfa)][_0x5d6a6a(0x234)](_0x449509);}[_0x1000c0(0x1cc)](_0x1bf525){const _0x17c16e=_0x1000c0;return this['_members'][_0x17c16e(0x1de)](_0x1bf525);}}function _0x339084(_0x264d47){const _0x1fa965=_0x1000c0;var _0x8f042e,_0x3366ca,_0x4bb933,_0x1355ff;const _0x35210c=_0x264d47[_0x1fa965(0x314)],_0x1f3911=JSON[_0x1fa965(0x281)](_0x35210c);switch(_0x1f3911[_0x1fa965(0x28c)]){case _0x2f9f5b['HEARTBEAT']:case _0x2f9f5b[_0x1fa965(0x3a9)]:{const _0x1e814d=_0x1f3911['infoRsp'];return{..._0x1f3911,'data':_0x1e814d,'cmd':_0x1f3911[_0x1fa965(0x28c)]};}case _0x2f9f5b[_0x1fa965(0x241)]:{const _0x44a852=_0x1f3911[_0x1fa965(0x163)];return{..._0x1f3911,'data':_0x44a852,'cmd':_0x1f3911[_0x1fa965(0x28c)]};}case _0x2f9f5b[_0x1fa965(0x2ff)]:{const _0x4da477=_0x1f3911[_0x1fa965(0x201)];switch(_0x4da477[_0x1fa965(0x263)]){case _0x1f6364['CollaborationEvent'][_0x1fa965(0x319)]:return{..._0x1f3911,'data':{..._0x4da477,'data':(_0x8f042e=_0x4da477['permissionRejEvent'])==null?void 0x0:_0x8f042e['cs']},'cmd':_0x1f3911['cmd']};case _0x1f6364['CollaborationEvent'][_0x1fa965(0x1d5)]:return{..._0x1f3911,'data':{..._0x4da477,'data':(_0x3366ca=_0x4da477['csAckEvent'])==null?void 0x0:_0x3366ca['cs']},'cmd':_0x1f3911['cmd']};case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x274)]:return{..._0x1f3911,'data':{..._0x4da477,'data':(_0x4bb933=_0x4da477[_0x1fa965(0x223)])==null?void 0x0:_0x4bb933['cs']},'cmd':_0x1f3911['cmd']};case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x329)]:return{..._0x1f3911,'data':{..._0x4da477,'data':(_0x1355ff=_0x4da477[_0x1fa965(0x14c)])==null?void 0x0:_0x1355ff['cs']},'cmd':_0x1f3911[_0x1fa965(0x28c)]};case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x157)]:return{..._0x1f3911,'data':{..._0x4da477,'data':_0x4da477[_0x1fa965(0x462)]},'cmd':_0x1f3911[_0x1fa965(0x28c)]};case _0x1f6364['CollaborationEvent'][_0x1fa965(0x296)]:return{..._0x1f3911,'data':{..._0x4da477,'data':_0x4da477['joinEvent']},'cmd':_0x1f3911[_0x1fa965(0x28c)]};case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x133)]:return{..._0x1f3911,'data':{..._0x4da477,'data':_0x4da477[_0x1fa965(0x4bf)]},'cmd':_0x1f3911['cmd']};case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x242)]:return{..._0x1f3911,'data':{..._0x4da477,'data':_0x4da477['liveShareNewHost']},'cmd':_0x1f3911[_0x1fa965(0x28c)]};case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x47f)]:case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x151)]:return{..._0x1f3911,'data':{..._0x4da477,'data':_0x4da477[_0x1fa965(0x19f)]},'cmd':_0x1f3911['cmd']};case _0x1f6364['CollaborationEvent'][_0x1fa965(0x2ed)]:return{..._0x1f3911,'data':{..._0x4da477,'data':_0x4da477[_0x1fa965(0x13c)]},'cmd':_0x1f3911[_0x1fa965(0x28c)]};case _0x1f6364['CollaborationEvent'][_0x1fa965(0x18d)]:return{..._0x1f3911,'data':_0x4da477,'cmd':_0x1f3911['cmd']};case _0x1f6364[_0x1fa965(0x159)][_0x1fa965(0x331)]:return{..._0x1f3911,'data':{..._0x4da477,'data':_0x4da477['commentUpdateEvent']},'cmd':_0x1f3911[_0x1fa965(0x28c)]};default:return _0x1f3911;}}default:return _0x1f3911;}}function _0x488cf7(_0x40b61a){const _0x39b4e7=_0x1000c0;switch(_0x40b61a[_0x39b4e7(0x28c)]){case _0x2f9f5b['HEARTBEAT']:case _0x2f9f5b[_0x39b4e7(0x3a9)]:return JSON['stringify']({'cmd':_0x40b61a[_0x39b4e7(0x28c)],'routeKey':_0x40b61a[_0x39b4e7(0x472)]});case _0x2f9f5b[_0x39b4e7(0x139)]:{let _0x378a90;switch(_0x40b61a[_0x39b4e7(0x314)][_0x39b4e7(0x263)]){case _0x1f6364['CollaborationEvent'][_0x39b4e7(0x157)]:{_0x378a90={'eventID':_0x1f6364[_0x39b4e7(0x159)][_0x39b4e7(0x157)],'updateCursorEvent':_0x40b61a[_0x39b4e7(0x314)][_0x39b4e7(0x314)]};break;}case _0x1f6364[_0x39b4e7(0x159)]['USERS_LEAVE']:{_0x378a90={'eventID':_0x1f6364[_0x39b4e7(0x159)][_0x39b4e7(0x133)],'leaveEvent':_0x40b61a[_0x39b4e7(0x314)][_0x39b4e7(0x314)]};break;}case _0x1f6364[_0x39b4e7(0x159)][_0x39b4e7(0x296)]:{_0x378a90={'eventID':_0x1f6364[_0x39b4e7(0x159)]['USERS_ENTER'],'joinEvent':_0x40b61a['data']['data']};break;}case _0x1f6364[_0x39b4e7(0x159)][_0x39b4e7(0x242)]:{_0x378a90={'eventID':_0x1f6364['CollaborationEvent'][_0x39b4e7(0x242)],'liveShareNewHost':_0x40b61a[_0x39b4e7(0x314)][_0x39b4e7(0x314)]};break;}case _0x1f6364['CollaborationEvent'][_0x39b4e7(0x151)]:{_0x378a90={'eventID':_0x1f6364[_0x39b4e7(0x159)][_0x39b4e7(0x151)],'liveShareOperation':_0x40b61a[_0x39b4e7(0x314)][_0x39b4e7(0x314)]};break;}case _0x1f6364['CollaborationEvent'][_0x39b4e7(0x2ed)]:{_0x378a90={'eventID':_0x1f6364[_0x39b4e7(0x159)][_0x39b4e7(0x2ed)],'liveShareTerminate':_0x40b61a[_0x39b4e7(0x314)]['data']};break;}case _0x1f6364['CollaborationEvent'][_0x39b4e7(0x127)]:{_0x378a90={'eventID':_0x1f6364[_0x39b4e7(0x159)][_0x39b4e7(0x127)],'liveShareRequestHost':_0x40b61a['data']['data']};break;}case _0x1f6364['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:{_0x378a90={'eventID':_0x1f6364['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x378a90={'eventID':_0x40b61a['data'][_0x39b4e7(0x263)]};}return JSON['stringify']({'cmd':_0x40b61a[_0x39b4e7(0x28c)],'routeKey':_0x40b61a[_0x39b4e7(0x472)],'collaMsg':_0x378a90});}case _0x2f9f5b[_0x39b4e7(0x241)]:return JSON[_0x39b4e7(0x199)]({'cmd':_0x40b61a[_0x39b4e7(0x28c)],'routeKey':_0x40b61a[_0x39b4e7(0x472)],'joinReq':_0x40b61a[_0x39b4e7(0x314)]});case _0x2f9f5b['LEAVE']:return JSON[_0x39b4e7(0x199)]({'cmd':_0x40b61a[_0x39b4e7(0x28c)],'routeKey':_0x40b61a[_0x39b4e7(0x472)],'leaveReq':_0x40b61a[_0x39b4e7(0x314)]});default:throw new Error(_0x39b4e7(0xfe));}}var _0x34ff1b=Object[_0x1000c0(0x1a1)],_0x4fbc1d=Object[_0x1000c0(0x2d4)],_0x44b99a=(_0x4208c7,_0x1c89de,_0x556aef,_0x39151b)=>{const _0xb88aa9=_0x1000c0;for(var _0x2ff74c=_0x39151b>0x1?void 0x0:_0x39151b?_0x4fbc1d(_0x1c89de,_0x556aef):_0x1c89de,_0x4e4ff6=_0x4208c7[_0xb88aa9(0x1d8)]-0x1,_0xc11a01;_0x4e4ff6>=0x0;_0x4e4ff6--)(_0xc11a01=_0x4208c7[_0x4e4ff6])&&(_0x2ff74c=(_0x39151b?_0xc11a01(_0x1c89de,_0x556aef,_0x2ff74c):_0xc11a01(_0x2ff74c))||_0x2ff74c);return _0x39151b&&_0x2ff74c&&_0x34ff1b(_0x1c89de,_0x556aef,_0x2ff74c),_0x2ff74c;},_0x58829f=(_0x4f2b20,_0x283982)=>(_0x1c776c,_0x1ce3ef)=>_0x283982(_0x1c776c,_0x1ce3ef,_0x4f2b20);const _0x81d796=_0x1ea985['createIdentifier'](_0x1000c0(0x48d));function _0x5849a5(_0x56b83f,_0x3d35ef,_0x3fb618){const _0x804777=_0x1000c0;return _0x56b83f+'/'+_0x3d35ef+'/unit/'+_0x3fb618+_0x804777(0x45f);}_0x322d5b[_0x1000c0(0x11c)]=class{constructor(_0x5bf115,_0x4c76eb,_0x1a67bf,_0x498676,_0x5a6407){const _0x13c4a9=_0x1000c0;this[_0x13c4a9(0x29a)]=_0x5bf115,this[_0x13c4a9(0x2af)]=_0x4c76eb,this['_configService']=_0x1a67bf,this[_0x13c4a9(0x195)]=_0x498676,this[_0x13c4a9(0x25a)]=_0x5a6407;}['createSocket'](_0x1d66a4){const _0x3db454=_0x1000c0,_0x12f704=this[_0x3db454(0x2af)][_0x3db454(0x25d)](_0x1d66a4);if(!_0x12f704)throw new Error(_0x3db454(0x228));const _0x5b6738=new _0x592d59['DisposableCollection'](),_0xaf9a2a=new _0x3c7a49['Subject']();_0x5b6738[_0x3db454(0x290)](_0x592d59[_0x3db454(0x29f)](_0x12f704['close$']['subscribe'](_0x2aa4ca=>_0xaf9a2a[_0x3db454(0x117)](_0x2aa4ca)))),_0x5b6738[_0x3db454(0x290)](_0x592d59[_0x3db454(0x29f)](()=>_0xaf9a2a[_0x3db454(0x4b5)]()));const _0x20371b=new _0x3c7a49[(_0x3db454(0x33b))]();_0x5b6738[_0x3db454(0x290)](_0x592d59[_0x3db454(0x29f)](_0x12f704[_0x3db454(0x3fb)][_0x3db454(0x42f)](_0x6cc79a=>_0x20371b[_0x3db454(0x117)](_0x6cc79a)))),_0x5b6738[_0x3db454(0x290)](_0x592d59[_0x3db454(0x29f)](()=>_0x20371b[_0x3db454(0x4b5)]()));const _0x30f2e0=new _0x3c7a49[(_0x3db454(0x33b))]();_0x5b6738[_0x3db454(0x290)](_0x592d59[_0x3db454(0x29f)](_0x12f704['message$']['subscribe'](_0x421e88=>{const _0x9b5c4e=_0x3db454,_0x2837a4=_0x339084(_0x421e88);_0x30f2e0[_0x9b5c4e(0x117)](_0x2837a4);}))),_0x5b6738['add'](_0x592d59[_0x3db454(0x29f)](()=>_0x30f2e0['complete']()));const _0x4ef6b1=()=>{const _0x5c0cbe=_0x3db454;_0x20371b[_0x5c0cbe(0x117)](new Event(_0x5c0cbe(0x41a))),_0xaf9a2a[_0x5c0cbe(0x117)](new CloseEvent(_0x5c0cbe(0x41a))),_0x4b9a33['close']();},_0x4b9a33={'memberID':'','close$':_0xaf9a2a[_0x3db454(0x32c)](),'error$':_0x20371b['asObservable'](),'open$':_0x12f704[_0x3db454(0x427)],'message$':_0x30f2e0[_0x3db454(0x32c)](),'send':_0x134964=>{const _0x316734=_0x3db454;if(_0x134964[_0x316734(0x28c)]===_0x2f9f5b[_0x316734(0x139)]){if(_0x134964['data'][_0x316734(0x263)]===_0x1f6364[_0x316734(0x159)][_0x316734(0x311)]){this['_submitChangeset'](_0x4b9a33,_0x134964[_0x316734(0x314)])[_0x316734(0x307)](_0x17a2f1=>{const _0x5b91d6=_0x316734;this['_logService'][_0x5b91d6(0x343)](_0x17a2f1),_0x4ef6b1();});return;}if(_0x134964[_0x316734(0x314)][_0x316734(0x263)]===_0x1f6364['CollaborationEvent'][_0x316734(0x33d)]){const _0x588b57=_0x134964[_0x316734(0x314)];this[_0x316734(0x377)](_0x588b57)[_0x316734(0x441)](_0x1d0663=>{const _0x4de3df=_0x316734;_0x30f2e0[_0x4de3df(0x117)]({'cmd':_0x2f9f5b['RECV'],'code':_0x282d51['OK'],'routeKey':_0x588b57['data']['unitID'],'routeType':'','data':{'eventID':_0x1f6364[_0x4de3df(0x159)][_0x4de3df(0x1e7)],'data':{'changesets':_0x1d0663}}});})[_0x316734(0x307)](_0x20c96a=>{const _0x490790=_0x316734;this[_0x490790(0x195)][_0x490790(0x343)](_0x20c96a),_0x4ef6b1();});return;}}_0x12f704['send'](_0x488cf7(_0x134964));},'close':()=>{const _0x5f14d5=_0x3db454;_0x12f704[_0x5f14d5(0x2f1)](),_0x5b6738[_0x5f14d5(0x36f)]();}};return _0x4b9a33;}async[_0x1000c0(0x16c)](_0x30754d,_0x1c8a1e){const _0xbe4ca5=_0x1000c0;var _0x906942;const {unitType:_0x24b398,unitID:_0x5662a9,changeset:_0x2e5056}=_0x1c8a1e['data'],_0x550866={'unitID':_0x5662a9,'memberID':_0x30754d[_0xbe4ca5(0x4aa)],'type':_0x24b398,'changeset':_0x1f6364[_0xbe4ca5(0x158)](_0x2e5056)},_0x2cc324=_0x5849a5((_0x906942=this[_0xbe4ca5(0x230)][_0xbe4ca5(0x393)](_0x50bca1))!=null?_0x906942:_0x2a5647,_0x24b398,_0x5662a9);try{await this[_0xbe4ca5(0x29a)]['post'](_0x2cc324,{'body':_0x550866});}catch(_0x2392f2){throw this[_0xbe4ca5(0x195)][_0xbe4ca5(0x343)]('[CollaborationSession]',_0xbe4ca5(0x470)),_0x2392f2;}}async[_0x1000c0(0x377)](_0x52920c){const _0x4daea5=_0x1000c0,{unitID:_0x20b0b1,from:_0x4c7fe9,to:_0x58f79d,unitType:_0x416365}=_0x52920c['data'];return(await this[_0x4daea5(0x25a)][_0x4daea5(0x38a)]({'metadata':void 0x0},{'unitID':_0x20b0b1,'type':_0x416365,'from':_0x4c7fe9,'to':_0x58f79d}))[_0x4daea5(0x475)];}},_0x322d5b[_0x1000c0(0x11c)]=_0x44b99a([_0x58829f(0x0,_0x1ea985[_0x1000c0(0x368)](_0x490a4f[_0x1000c0(0x4b0)])),_0x58829f(0x1,_0x1ea985['Inject'](_0x490a4f['WebSocketService'])),_0x58829f(0x2,_0x592d59[_0x1000c0(0x41f)]),_0x58829f(0x3,_0x592d59[_0x1000c0(0x1ef)]),_0x58829f(0x4,_0x592d59[_0x1000c0(0x460)])],_0x322d5b[_0x1000c0(0x11c)]);class _0x3c2f54{constructor(){const _0x3a0226=_0x1000c0;_0x40dfd7(this,'_commentUpdate$',new _0x3c7a49[(_0x3a0226(0x33b))]()),_0x40dfd7(this,_0x3a0226(0x465),this[_0x3a0226(0x3d2)][_0x3a0226(0x32c)]());}[_0x1000c0(0x26d)](_0x2c8e8e){this['_commentUpdate$']['next'](_0x2c8e8e);}}var _0x3069e9=Object['defineProperty'],_0x310c22=Object['getOwnPropertyDescriptor'],_0x3583d0=(_0x2fcd8a,_0x5e86a5,_0x1b76ff,_0x3d7989)=>{const _0x1dc119=_0x1000c0;for(var _0x12fa36=_0x3d7989>0x1?void 0x0:_0x3d7989?_0x310c22(_0x5e86a5,_0x1b76ff):_0x5e86a5,_0x3cb730=_0x2fcd8a[_0x1dc119(0x1d8)]-0x1,_0x2b1cab;_0x3cb730>=0x0;_0x3cb730--)(_0x2b1cab=_0x2fcd8a[_0x3cb730])&&(_0x12fa36=(_0x3d7989?_0x2b1cab(_0x5e86a5,_0x1b76ff,_0x12fa36):_0x2b1cab(_0x12fa36))||_0x12fa36);return _0x3d7989&&_0x12fa36&&_0x3069e9(_0x5e86a5,_0x1b76ff,_0x12fa36),_0x12fa36;},_0x5a7a3c=(_0x1bcf45,_0x30be0e)=>(_0x4617a6,_0x201fa7)=>_0x30be0e(_0x4617a6,_0x201fa7,_0x1bcf45),_0x28f044=(_0x5587c1=>(_0x5587c1[_0x5587c1[_0x1000c0(0x2f4)]=0x0]=_0x1000c0(0x2f4),_0x5587c1[_0x5587c1['JOINING']=0x1]='JOINING',_0x5587c1[_0x5587c1['OFFLINE']=0x2]='OFFLINE',_0x5587c1[_0x5587c1[_0x1000c0(0x243)]=0x3]=_0x1000c0(0x243),_0x5587c1))(_0x28f044||{});_0x322d5b[_0x1000c0(0x2f0)]=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0x22a673,_0x274de5,_0x3aea77,_0x11fcce,_0x527b9f,_0x1ff23f,_0x5dddc6,_0x1d6b38,_0x7e4b47){const _0x1ec8b1=_0x1000c0;super(),_0x40dfd7(this,_0x1ec8b1(0x44d),new _0x3c7a49[(_0x1ec8b1(0x35f))](0x0)),_0x40dfd7(this,_0x1ec8b1(0x2e0),this['_sessionStatus$']['asObservable']()),_0x40dfd7(this,_0x1ec8b1(0x30c),new _0x3c7a49[(_0x1ec8b1(0x33b))]()),_0x40dfd7(this,_0x1ec8b1(0x253),this['_event$'][_0x1ec8b1(0x32c)]()),_0x40dfd7(this,_0x1ec8b1(0x374)),_0x40dfd7(this,_0x1ec8b1(0x16b)),_0x40dfd7(this,'_collaborationTimeoutTimer'),(this[_0x1ec8b1(0x2df)]=_0x22a673,this[_0x1ec8b1(0x195)]=_0x3aea77,this[_0x1ec8b1(0x265)]=_0x11fcce,this[_0x1ec8b1(0x4ca)]=_0x527b9f,this['_configService']=_0x1ff23f,this['_localeService']=_0x5dddc6,this[_0x1ec8b1(0x29e)]=_0x1d6b38,this[_0x1ec8b1(0x318)]=_0x7e4b47,_0x274de5['pipe'](_0x39f29f[_0x1ec8b1(0x3ca)](this['dispose$']))[_0x1ec8b1(0x42f)](_0x40f0bb=>{const _0x5c0a96=_0x1ec8b1;var _0x1d5f74;typeof _0x40f0bb>'u'||(this['_socket']=_0x40f0bb,_0x40f0bb?(this['_joinRoom'](_0x40f0bb),this[_0x5c0a96(0x16b)]=this[_0x5c0a96(0x374)][_0x5c0a96(0x31f)][_0x5c0a96(0x42f)](_0x17c575=>{const _0x5e9e5d=_0x5c0a96;_0x17c575[_0x5e9e5d(0x472)]===this[_0x5e9e5d(0x2df)]&&this[_0x5e9e5d(0x429)](_0x17c575);})):(this[_0x5c0a96(0x44d)][_0x5c0a96(0x117)](0x2),(_0x1d5f74=this[_0x5c0a96(0x16b)])==null||_0x1d5f74[_0x5c0a96(0x22b)](),this[_0x5c0a96(0x16b)]=null));}),this['disposeWithMe'](this[_0x1ec8b1(0x265)][_0x1ec8b1(0x181)](()=>{const _0x341be2=_0x1ec8b1;var _0x2bf44f;(_0x2bf44f=this[_0x341be2(0x374)])==null||_0x2bf44f[_0x341be2(0x16a)]({'cmd':_0x2f9f5b[_0x341be2(0xf7)],'data':{'roomID':this[_0x341be2(0x2df)]}});})));}get[_0x1000c0(0x22e)](){const _0x224090=_0x1000c0;return this[_0x224090(0x44d)]['getValue']();}[_0x1000c0(0x35c)](){const _0x7febe2=_0x1000c0;var _0x21eb2c,_0x4a34cc;return(_0x4a34cc=(_0x21eb2c=this['_socket'])==null?void 0x0:_0x21eb2c[_0x7febe2(0x4aa)])!=null?_0x4a34cc:null;}[_0x1000c0(0x36f)](){const _0x325f81=_0x1000c0;super[_0x325f81(0x36f)](),this[_0x325f81(0x338)][_0x325f81(0x117)](),this[_0x325f81(0x338)][_0x325f81(0x4b5)]();}['_onCombEvent'](_0x155e55){const _0x535909=_0x1000c0;_0x155e55[_0x535909(0x28c)]===_0x2f9f5b['JOIN']?this[_0x535909(0x2f5)](_0x155e55):_0x155e55[_0x535909(0x28c)]===_0x2f9f5b[_0x535909(0x2ff)]&&this[_0x535909(0x124)](_0x155e55);}[_0x1000c0(0x44c)](_0x2aaca3){const _0xb2e7e6=_0x1000c0;this[_0xb2e7e6(0x44d)][_0xb2e7e6(0x117)](0x1),_0x2aaca3[_0xb2e7e6(0x16a)]({'cmd':_0x2f9f5b[_0xb2e7e6(0x241)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x1000c0(0x2f5)](_0x4dbb65){const _0x71d0f=_0x1000c0;var _0x1b6f73;if(_0x4dbb65[_0x71d0f(0x418)]===_0x282d51[_0x71d0f(0x27d)]){this[_0x71d0f(0x4ca)][_0x71d0f(0x2eb)]({'type':_0x5063fc[_0x71d0f(0x3f4)][_0x71d0f(0x173)],'content':this['_localeService']['t']('session.room-full')}),this[_0x71d0f(0x44d)][_0x71d0f(0x117)](0x2);return;}this[_0x71d0f(0x44d)][_0x71d0f(0x117)](0x3);const _0x5c0f3a=(_0x1b6f73=_0x4dbb65[_0x71d0f(0x314)]['roomInfos'][this[_0x71d0f(0x2df)]])==null?void 0x0:_0x1b6f73['members'];_0x5c0f3a&&_0x5c0f3a['forEach'](_0x2c0483=>this[_0x71d0f(0x29e)][_0x71d0f(0x262)](this[_0x71d0f(0x2df)],_0x2c0483));}[_0x1000c0(0x124)](_0x12a4b3){const _0x1045b8=_0x1000c0;try{const _0x760ba4=_0x12a4b3[_0x1045b8(0x314)];switch(_0x760ba4[_0x1045b8(0x263)]){case _0x1f6364[_0x1045b8(0x159)][_0x1045b8(0x296)]:this[_0x1045b8(0x42a)](_0x760ba4),this[_0x1045b8(0x30c)][_0x1045b8(0x117)](_0x760ba4);break;case _0x1f6364['CollaborationEvent'][_0x1045b8(0x133)]:this[_0x1045b8(0x162)](_0x760ba4),this[_0x1045b8(0x30c)][_0x1045b8(0x117)](_0x760ba4);break;case _0x1f6364[_0x1045b8(0x159)][_0x1045b8(0x1d5)]:this[_0x1045b8(0x114)](),this[_0x1045b8(0x30c)][_0x1045b8(0x117)](_0x760ba4);break;case _0x1f6364[_0x1045b8(0x159)][_0x1045b8(0x18d)]:this[_0x1045b8(0x195)][_0x1045b8(0x343)](_0x1045b8(0x250)+JSON[_0x1045b8(0x199)](_0x760ba4)),this[_0x1045b8(0x30c)][_0x1045b8(0x117)](_0x760ba4);break;case _0x1f6364['CollaborationEvent'][_0x1045b8(0x331)]:this[_0x1045b8(0x318)][_0x1045b8(0x26d)](_0x760ba4[_0x1045b8(0x314)]),this[_0x1045b8(0x30c)]['next'](_0x760ba4);break;default:this[_0x1045b8(0x30c)][_0x1045b8(0x117)](_0x760ba4);}}catch(_0x4b6a40){this['_logService'][_0x1045b8(0x343)](_0x4b6a40,_0x12a4b3);}}[_0x1000c0(0x42a)](_0x31ce20){const _0x37289d=_0x1000c0;this['_memberService'][_0x37289d(0x262)](this[_0x37289d(0x2df)],_0x31ce20[_0x37289d(0x314)]);}[_0x1000c0(0x162)](_0x18a5f7){const _0x34dbe3=_0x1000c0;this[_0x34dbe3(0x29e)][_0x34dbe3(0x455)](this['_unitID'],_0x18a5f7[_0x34dbe3(0x314)][_0x34dbe3(0x4aa)]);}async[_0x1000c0(0x16a)](_0x5d226d,_0x20c219){const _0x5b35f8=_0x1000c0;if(this['sessionStatus']!==0x3||!this[_0x5b35f8(0x374)])throw new Error(_0x5b35f8(0x35e));try{_0x5d226d[_0x5b35f8(0x263)]===_0x1f6364['CollaborationEvent'][_0x5b35f8(0x274)]&&this[_0x5b35f8(0x16e)](),this['_socket'][_0x5b35f8(0x16a)]({'cmd':_0x2f9f5b[_0x5b35f8(0x139)],'routeKey':_0x20c219,'routeType':'','data':_0x5d226d});}catch(_0x151808){this[_0x5b35f8(0x195)][_0x5b35f8(0x343)](_0x151808);}}[_0x1000c0(0x16e)](){const _0x1ebbd1=_0x1000c0;var _0x249c71;this[_0x1ebbd1(0x30a)]=window[_0x1ebbd1(0x3c2)](()=>{const _0x1e1fb9=_0x1ebbd1;this['_collaborationTimeoutTimer']=null,this[_0x1e1fb9(0x4ca)]['show']({'type':_0x5063fc[_0x1e1fb9(0x3f4)][_0x1e1fb9(0x447)],'content':this['_localeService']['t'](_0x1e1fb9(0x4b4))});},(_0x249c71=this[_0x1ebbd1(0x230)][_0x1ebbd1(0x393)](_0x22e7f5))!=null?_0x249c71:0x2710);}['_clearCollaborationTimeoutTimer'](){const _0x479e67=_0x1000c0;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x479e67(0x30a)]),this[_0x479e67(0x30a)]=null);}},_0x322d5b[_0x1000c0(0x2f0)]=_0x3583d0([_0x5a7a3c(0x2,_0x592d59[_0x1000c0(0x1ef)]),_0x5a7a3c(0x3,_0x2c52d3[_0x1000c0(0x1dc)]),_0x5a7a3c(0x4,_0x2c52d3[_0x1000c0(0x411)]),_0x5a7a3c(0x5,_0x592d59[_0x1000c0(0x41f)]),_0x5a7a3c(0x6,_0x1ea985[_0x1000c0(0x368)](_0x592d59['LocaleService'])),_0x5a7a3c(0x7,_0x1ea985['Inject'](_0x2539c6)),_0x5a7a3c(0x8,_0x1ea985[_0x1000c0(0x368)](_0x3c2f54))],_0x322d5b['CollaborationSession']),_0x322d5b['CollaborationSessionService']=class extends _0x592d59[_0x1000c0(0x450)]{constructor(_0xa0e42f,_0x297663,_0x513f2a,_0x489465,_0x2e6506,_0x1e5d3f){const _0x61e6d8=_0x1000c0;super(),_0x40dfd7(this,_0x61e6d8(0x123),new _0x3c7a49[(_0x61e6d8(0x35f))](void 0x0)),_0x40dfd7(this,_0x61e6d8(0x417),new Map()),_0x40dfd7(this,_0x61e6d8(0x317),new _0x3c7a49[(_0x61e6d8(0x35f))](0x0)),_0x40dfd7(this,_0x61e6d8(0x3a0),this[_0x61e6d8(0x317)][_0x61e6d8(0x32c)]()),_0x40dfd7(this,_0x61e6d8(0x4a7),!0x1),_0x40dfd7(this,_0x61e6d8(0x18b)),_0x40dfd7(this,_0x61e6d8(0x2f7)),_0x40dfd7(this,'_retryConnectingTimer'),_0x40dfd7(this,_0x61e6d8(0x375),0x0),(this[_0x61e6d8(0x27f)]=_0xa0e42f,this[_0x61e6d8(0x2a1)]=_0x297663,this['_messageService']=_0x513f2a,this['_logService']=_0x489465,this[_0x61e6d8(0x230)]=_0x2e6506,this[_0x61e6d8(0x27b)]=_0x1e5d3f);}get['_socket'](){return this['_socket$']['getValue']();}['dispose'](){const _0x5a8a20=_0x1000c0;super[_0x5a8a20(0x36f)](),this[_0x5a8a20(0x417)][_0x5a8a20(0x24b)](_0x4ed91d=>_0x4ed91d[_0x5a8a20(0x36f)]()),this[_0x5a8a20(0x417)]['clear'](),this[_0x5a8a20(0x317)][_0x5a8a20(0x4b5)]();}async[_0x1000c0(0x1c2)](_0x3dd15c){const _0x1ac435=_0x1000c0;if(this['_sessions'][_0x1ac435(0x321)](_0x3dd15c))return this['_sessions']['get'](_0x3dd15c);this[_0x1ac435(0x495)]();const _0x3505df=this['_injector']['createInstance'](_0x322d5b[_0x1ac435(0x2f0)],_0x3dd15c,this['_socket$']['asObservable']());return this[_0x1ac435(0x417)][_0x1ac435(0x4c2)](_0x3dd15c,_0x3505df),_0x3505df;}[_0x1000c0(0x36c)](){const _0x1af4e5=_0x1000c0;var _0x362719;const _0x4026e9=(_0x362719=this[_0x1af4e5(0x230)]['getConfig'](_0x1ed340))!=null?_0x362719:_0x3a2870;return this[_0x1af4e5(0x27b)][_0x1af4e5(0x25d)](_0x4026e9);}[_0x1000c0(0x495)](){const _0x28c367=_0x1000c0;try{const _0x307d8f=this[_0x28c367(0x36c)]();if(_0x307d8f){const _0x20ecf9=_0x307d8f['send'];_0x307d8f[_0x28c367(0x16a)]=_0x2b4b23=>(this['_rescheduleHeartbeatEvent'](),_0x20ecf9[_0x28c367(0x3f2)](_0x307d8f,[_0x2b4b23])),_0x307d8f[_0x28c367(0x31f)][_0x28c367(0x42f)](_0x1bbeda=>this['_onMessage'](_0x307d8f,_0x1bbeda)),_0x307d8f[_0x28c367(0x3fb)][_0x28c367(0x161)](_0x39f29f[_0x28c367(0x13a)](0x1))['subscribe'](_0x19ab82=>this[_0x28c367(0x195)][_0x28c367(0x343)](_0x28c367(0x405),_0x19ab82)),_0x307d8f['open$'][_0x28c367(0x161)](_0x39f29f['take'](0x1))[_0x28c367(0x42f)](()=>{const _0x3462bd=_0x28c367;this[_0x3462bd(0x386)](_0x307d8f);}),_0x307d8f['close$'][_0x28c367(0x161)](_0x39f29f[_0x28c367(0x13a)](0x1))[_0x28c367(0x42f)](_0x2c4e9e=>{const _0x4a66e0=_0x28c367;this[_0x4a66e0(0x195)][_0x4a66e0(0x384)](_0x4a66e0(0x491),_0x4a66e0(0x41c),_0x2c4e9e),this[_0x4a66e0(0x357)]();});}}catch(_0x429764){this['_logService']['error'](_0x429764),this['_onConnectionFailed']();}}[_0x1000c0(0x386)](_0x228002){const _0x13d05e=_0x1000c0;this[_0x13d05e(0x195)][_0x13d05e(0x384)](_0x13d05e(0x491),_0x13d05e(0x336)),_0x228002[_0x13d05e(0x16a)]({'cmd':_0x2f9f5b['HELLO']}),this[_0x13d05e(0x373)]();}['_onConnectionFailed'](){const _0x1cdddf=_0x1000c0;var _0x40343f;this[_0x1cdddf(0x317)][_0x1cdddf(0x117)](0x2),this['_socket$']['next'](null),this[_0x1cdddf(0x428)](),this[_0x1cdddf(0x2f3)](),this[_0x1cdddf(0x4a7)]=!0x1,this[_0x1cdddf(0x375)]<((_0x40343f=this['_configService'][_0x1cdddf(0x393)](_0x966ced))!=null?_0x40343f:0x3)?(this[_0x1cdddf(0x3f9)](this[_0x1cdddf(0x375)]),this[_0x1cdddf(0x375)]+=0x1):this[_0x1cdddf(0x4ca)][_0x1cdddf(0x2eb)]({'type':_0x5063fc[_0x1cdddf(0x3f4)]['Error'],'content':this['_localeService']['t'](_0x1cdddf(0x28d))});}[_0x1000c0(0x3f9)](_0xf84315){const _0xacf2e6=_0x1000c0;var _0x310e0c;const _0x13a962=((_0x310e0c=this[_0xacf2e6(0x230)][_0xacf2e6(0x393)](_0x58522e))!=null?_0x310e0c:0x4e20)*0x2**_0xf84315;this[_0xacf2e6(0x4ca)]['show']({'type':_0x5063fc[_0xacf2e6(0x3f4)]['Warning'],'content':this[_0xacf2e6(0x2a1)]['t'](_0xacf2e6(0x4d7))}),this[_0xacf2e6(0x410)]=setTimeout(()=>{const _0xbdbf2a=_0xacf2e6;this['_tryEnsureSocket'](),clearTimeout(this[_0xbdbf2a(0x410)]),this['_retryConnectingTimer']=null;},_0x13a962);}['_rescheduleHeartbeatEvent'](){const _0x1fc3ee=_0x1000c0;var _0xf8c5c8;this[_0x1fc3ee(0x2f3)](),this[_0x1fc3ee(0x18b)]=setTimeout(()=>this['_sendHeartbeat'](),(_0xf8c5c8=this[_0x1fc3ee(0x230)][_0x1fc3ee(0x393)](_0x415ece))!=null?_0xf8c5c8:0x7530);}[_0x1000c0(0x10d)](){const _0x47d58f=_0x1000c0;this['_socket'][_0x47d58f(0x16a)]({'cmd':_0x2f9f5b[_0x47d58f(0x3a6)]}),this[_0x47d58f(0x102)]();}[_0x1000c0(0x102)](){const _0x385a3a=_0x1000c0;var _0x29ab23;this[_0x385a3a(0x2f7)]=setTimeout(()=>this[_0x385a3a(0x357)](),(_0x29ab23=this['_configService'][_0x385a3a(0x393)](_0x22e7f5))!=null?_0x29ab23:0x2710);}[_0x1000c0(0x2cc)](_0x3303de,_0x1b89c7){const _0x33e458=_0x1000c0,{cmd:_0x2d75bf}=_0x1b89c7;_0x2d75bf===_0x2f9f5b[_0x33e458(0x3a9)]&&!this[_0x33e458(0x4a7)]&&(_0x3303de['memberID']=_0x1b89c7[_0x33e458(0x314)][_0x33e458(0x4aa)],this[_0x33e458(0x123)][_0x33e458(0x117)](_0x3303de),this[_0x33e458(0x317)][_0x33e458(0x117)](0x3),this[_0x33e458(0x4a7)]=!0x0),_0x2d75bf===_0x2f9f5b[_0x33e458(0x3a6)]&&this[_0x33e458(0x428)](),this[_0x33e458(0x373)]();}[_0x1000c0(0x2f3)](){const _0x5d568d=_0x1000c0;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x5d568d(0x18b)]),this['_sendHeartbeatTimer']=null);}[_0x1000c0(0x428)](){const _0xd4cc98=_0x1000c0;this['_timeoutTimer']!=null&&(clearTimeout(this[_0xd4cc98(0x2f7)]),this[_0xd4cc98(0x2f7)]=null);}},_0x322d5b[_0x1000c0(0x272)]=_0x3583d0([_0x5a7a3c(0x0,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x5a7a3c(0x1,_0x1ea985[_0x1000c0(0x368)](_0x592d59['LocaleService'])),_0x5a7a3c(0x2,_0x2c52d3[_0x1000c0(0x411)]),_0x5a7a3c(0x3,_0x592d59['ILogService']),_0x5a7a3c(0x4,_0x592d59[_0x1000c0(0x41f)]),_0x5a7a3c(0x5,_0x81d796)],_0x322d5b[_0x1000c0(0x272)]);var _0x15128c=Object[_0x1000c0(0x1a1)],_0x586e99=Object['getOwnPropertyDescriptor'],_0x5d7204=(_0x4a5a96,_0x5d5ece,_0x17b0d8,_0x170a34)=>{const _0x1f7309=_0x1000c0;for(var _0x1d4c64=_0x170a34>0x1?void 0x0:_0x170a34?_0x586e99(_0x5d5ece,_0x17b0d8):_0x5d5ece,_0x3a92e1=_0x4a5a96[_0x1f7309(0x1d8)]-0x1,_0x2d5dfd;_0x3a92e1>=0x0;_0x3a92e1--)(_0x2d5dfd=_0x4a5a96[_0x3a92e1])&&(_0x1d4c64=(_0x170a34?_0x2d5dfd(_0x5d5ece,_0x17b0d8,_0x1d4c64):_0x2d5dfd(_0x1d4c64))||_0x1d4c64);return _0x170a34&&_0x1d4c64&&_0x15128c(_0x5d5ece,_0x17b0d8,_0x1d4c64),_0x1d4c64;},_0x1bda07=(_0x3ce9dc,_0x5be1ff)=>(_0x26e46b,_0x11b1f2)=>_0x5be1ff(_0x26e46b,_0x11b1f2,_0x3ce9dc);_0x322d5b[_0x1000c0(0x24c)]=class extends _0x592d59['Disposable']{constructor(_0x397541,_0x4a8ecc,_0x1db94e,_0x3fd105,_0x5a7255){const _0x1df076=_0x1000c0;super(),_0x40dfd7(this,'_cachedData',new Map()),_0x40dfd7(this,_0x1df076(0x2ca),new Map()),_0x40dfd7(this,_0x1df076(0x28f),!0x1),(this[_0x1df076(0x230)]=_0x397541,this['_localStorageService']=_0x4a8ecc,this[_0x1df076(0x265)]=_0x1db94e,this[_0x1df076(0x2a1)]=_0x3fd105,this[_0x1df076(0x1e0)]=_0x5a7255,this['_setupBeforeClosingHandler']());}[_0x1000c0(0x3e8)](){const _0x4b0458=_0x1000c0;this[_0x4b0458(0x28f)]=!0x0;}[_0x1000c0(0x327)](){const _0x3ebed9=_0x1000c0;this[_0x3ebed9(0x28f)]=!0x1;}[_0x1000c0(0x36f)](){const _0x1a1832=_0x1000c0;this['_exhaustSavingTask']()[_0x1a1832(0x441)](()=>super[_0x1a1832(0x36f)]());}async[_0x1000c0(0x239)](_0xa42432){const _0x3de782=_0x1000c0;return this[_0x3de782(0x28f)]?null:this['_localStorageService'][_0x3de782(0x19d)](_0x2e8bda(_0xa42432));}async[_0x1000c0(0x456)](_0x105d5e,_0x4be2bd){return!!this['_localStorageService']['setItem'](_0x105d5e,_0x4be2bd);}[_0x1000c0(0x3cb)](_0x35f34e,_0x121d89,_0xfbd450,_0x4d1c97){const _0x159ffd=_0x1000c0,_0x4fb3f1=this[_0x159ffd(0x1e0)]['getCurrentRevForDocument'](_0x35f34e);this[_0x159ffd(0x1e3)][_0x159ffd(0x4c2)](_0x35f34e,{'unitID':_0x35f34e,'type':_0x121d89,'awaitingChangeset':_0xfbd450,'mutations':_0x4d1c97,'rev':_0x4fb3f1}),this[_0x159ffd(0x2ca)][_0x159ffd(0x321)](_0x35f34e)||this[_0x159ffd(0xfd)](_0x35f34e);}['_scheduleSaving'](_0x1ebde6){const _0x13d528=_0x1000c0,_0x5975c1=this[_0x13d528(0x366)]();_0x5975c1===0x0?this[_0x13d528(0x152)](_0x1ebde6):this[_0x13d528(0x2ca)][_0x13d528(0x4c2)](_0x1ebde6,setTimeout(()=>this[_0x13d528(0x152)](_0x1ebde6),_0x5975c1));}[_0x1000c0(0x366)](){const _0x24d9c7=_0x1000c0;var _0x53d52d;return(_0x53d52d=this[_0x24d9c7(0x230)][_0x24d9c7(0x393)](_0x5cb089))!=null?_0x53d52d:0x3e8;}[_0x1000c0(0x152)](_0x85107d){const _0x13d84e=_0x1000c0,_0x152462=this[_0x13d84e(0x2ca)][_0x13d84e(0x1de)](_0x85107d);return _0x152462!==void 0x0&&window[_0x13d84e(0x451)](_0x152462),this[_0x13d84e(0x218)][_0x13d84e(0x10b)](_0x2e8bda(_0x85107d),this[_0x13d84e(0x1e3)][_0x13d84e(0x1de)](_0x85107d))[_0x13d84e(0x441)](()=>this['_saveTaskMap']['delete'](_0x85107d));}async[_0x1000c0(0x31a)](){const _0x3bdfe2=_0x1000c0,_0x58bc81=[];this['_saveTaskMap'][_0x3bdfe2(0x24b)]((_0x2bc0d3,_0x5da740)=>{const _0x1c05d6=_0x3bdfe2;window[_0x1c05d6(0x451)](_0x2bc0d3),_0x58bc81[_0x1c05d6(0x1a6)](this[_0x1c05d6(0x152)](_0x5da740)['then'](()=>{const _0xf42207=_0x1c05d6;this[_0xf42207(0x2ca)]['delete'](_0x5da740);}));}),await Promise[_0x3bdfe2(0x3a5)](_0x58bc81);}[_0x1000c0(0x46b)](){const _0x514551=_0x1000c0;this['disposeWithMe'](this[_0x514551(0x265)][_0x514551(0x467)](()=>{const _0x478990=_0x514551;if(this['_saveTaskMap']['size'])return this[_0x478990(0x2a1)]['t'](_0x478990(0x408));}));}},_0x322d5b[_0x1000c0(0x24c)]=_0x5d7204([_0x1bda07(0x0,_0x592d59[_0x1000c0(0x41f)]),_0x1bda07(0x1,_0x592d59[_0x1000c0(0x17a)]),_0x1bda07(0x2,_0x2c52d3['IBeforeCloseService']),_0x1bda07(0x3,_0x1ea985['Inject'](_0x592d59[_0x1000c0(0x279)])),_0x1bda07(0x4,_0x1ea985[_0x1000c0(0x368)](_0x1f6364['RevisionService']))],_0x322d5b[_0x1000c0(0x24c)]);function _0x2e8bda(_0x290901){const _0xe4628d=_0x1000c0;return _0xe4628d(0x4d9)+_0x290901;}const _0x1572dd=_0x1ea985[_0x1000c0(0x13b)](_0x1000c0(0x240));var _0x23c43c=(_0x2d0cc6=>(_0x2d0cc6[_0x2d0cc6[_0x1000c0(0x46e)]=0x0]=_0x1000c0(0x46e),_0x2d0cc6[_0x2d0cc6['OTHER_CLIENTS_EDITING']=0x1]=_0x1000c0(0x105),_0x2d0cc6))(_0x23c43c||{});const _0x46cdfb=0x7530,_0x476b1a=_0x1000c0(0x2fe);class _0x24ef9a extends _0x592d59['Disposable']{constructor(){const _0x33e13c=_0x1000c0;super(),_0x40dfd7(this,_0x33e13c(0x425),_0x592d59['Tools']['generateRandomId']()),_0x40dfd7(this,_0x33e13c(0x286),new Set()),_0x40dfd7(this,_0x33e13c(0x1fb),new Map()),_0x40dfd7(this,'_heartbeatTimer',null),_0x40dfd7(this,_0x33e13c(0x226),new Map()),_0x40dfd7(this,_0x33e13c(0x25f),new Map()),this[_0x33e13c(0x224)]();}[_0x1000c0(0x36f)](){const _0x3f26a2=_0x1000c0;super[_0x3f26a2(0x36f)](),this[_0x3f26a2(0x226)][_0x3f26a2(0x24b)]((_0x43c05c,_0x2a1872)=>this[_0x3f26a2(0x1b1)](_0x2a1872)),this[_0x3f26a2(0x40a)]&&window[_0x3f26a2(0x2c9)](this[_0x3f26a2(0x40a)]);}[_0x1000c0(0x1a5)](_0x5d4afc){const _0x297a2a=_0x1000c0;return this[_0x297a2a(0x1f3)](_0x5d4afc)['pipe'](_0x3c7a49[_0x297a2a(0x1cf)]());}[_0x1000c0(0x4ac)](_0x125de8){const _0x2f2874=_0x1000c0;this['_selfUnitIDs'][_0x2f2874(0x237)]===0x0&&this[_0x2f2874(0x490)](),this[_0x2f2874(0x286)][_0x2f2874(0x290)](_0x125de8),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x125de8],'isForwarded':!0x1});}[_0x1000c0(0x2de)](_0x2db8e6){const _0x40f8c4=_0x1000c0;this[_0x40f8c4(0x286)][_0x40f8c4(0x234)](_0x2db8e6),this['_selfUnitIDs'][_0x40f8c4(0x237)]===0x0&&this['_heartbeatTimer']&&window[_0x40f8c4(0x2c9)](this[_0x40f8c4(0x40a)]);}[_0x1000c0(0x224)](){const _0x3ff6f6=_0x1000c0;this[_0x3ff6f6(0x215)](_0x592d59[_0x3ff6f6(0x29f)](_0x3c7a49[_0x3ff6f6(0x43a)](window,'storage')[_0x3ff6f6(0x42f)](_0x5befbc=>{const _0x34d850=_0x3ff6f6;if(_0x5befbc['key']!==_0x476b1a||!_0x5befbc[_0x34d850(0x39c)])return;const _0x3253ac=JSON[_0x34d850(0x281)](_0x5befbc[_0x34d850(0x39c)]);this[_0x34d850(0x352)](_0x3253ac);}))),window[_0x3ff6f6(0x46c)](_0x3ff6f6(0x182),()=>this['_send']({'type':0x1,'memberID':this[_0x3ff6f6(0x425)],'unitIDs':Array[_0x3ff6f6(0x485)](this[_0x3ff6f6(0x286)])}));}[_0x1000c0(0x352)](_0x29c763){const _0x20a233=_0x1000c0;switch(_0x29c763[_0x20a233(0x49b)]){case 0x0:this['_handleJoinEvent'](_0x29c763);break;case 0x1:this[_0x20a233(0x2ef)](_0x29c763);break;case 0x2:this[_0x20a233(0x252)](_0x29c763);break;}}[_0x1000c0(0x2b3)](_0xce7531){const _0x4818b9=_0x1000c0,{unitIDs:_0x529d8e,memberID:_0xe6d3c5,isForwarded:_0x406d72}=_0xce7531;_0x529d8e['forEach'](_0x53d0e4=>{const _0x362973=_0x492d;if(!_0x406d72&&this[_0x362973(0x1fb)][_0x362973(0x321)](_0x53d0e4)&&this[_0x362973(0x1f3)](_0x53d0e4)[_0x362973(0x117)](0x1),!this[_0x362973(0x1fb)][_0x362973(0x321)](_0x53d0e4)||!this[_0x362973(0x1fb)][_0x362973(0x1de)](_0x53d0e4)[_0x362973(0x321)](_0xe6d3c5)){const _0x53c1b1=this['_unitOnClients'][_0x362973(0x1de)](_0x53d0e4)||new Set();_0x53c1b1[_0x362973(0x290)](_0xe6d3c5),this['_unitOnClients'][_0x362973(0x4c2)](_0x53d0e4,_0x53c1b1),this[_0x362973(0x2ab)](_0xe6d3c5);}}),_0x406d72||this['_send']({'type':0x0,'memberID':this[_0x4818b9(0x425)],'unitIDs':[...this[_0x4818b9(0x286)]],'isForwarded':!0x0});}[_0x1000c0(0x2ab)](_0x54c13c){const _0x1ad75f=_0x1000c0;this['_removeClearOtherTimer'](_0x54c13c);const _0x2a2bd4=window['setTimeout'](()=>{const _0x5ed504=_0x492d;this[_0x5ed504(0x1fb)]['forEach'](_0x21f7de=>{const _0x40024f=_0x5ed504;_0x21f7de[_0x40024f(0x234)](_0x54c13c);});},_0x46cdfb*0x2);this[_0x1ad75f(0x226)]['set'](_0x54c13c,_0x2a2bd4);}['_removeClearOtherTimer'](_0x5650db){const _0x27669f=_0x1000c0;if(this['_clearOtherTimers'][_0x27669f(0x321)](_0x5650db)){const _0xf1831b=this[_0x27669f(0x226)]['get'](_0x5650db);_0xf1831b&&window['clearTimeout'](_0xf1831b),this['_clearOtherTimers'][_0x27669f(0x4c2)](_0x5650db,null);}}[_0x1000c0(0x2ef)](_0x1bd5e5){const _0xbae0fc=_0x1000c0,{memberID:_0x4826e8,unitIDs:_0x4cb7b0}=_0x1bd5e5;_0x4cb7b0[_0xbae0fc(0x24b)](_0x39b783=>{const _0x42d6d6=_0xbae0fc;var _0x4d7e62;const _0x170a4c=this[_0x42d6d6(0x1fb)]['get'](_0x39b783);_0x170a4c&&(_0x170a4c[_0x42d6d6(0x234)](_0x4826e8),(_0x4d7e62=this[_0x42d6d6(0x1f3)](_0x39b783))==null||_0x4d7e62[_0x42d6d6(0x117)](_0x170a4c[_0x42d6d6(0x237)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x4826e8);}[_0x1000c0(0x252)](_0x2e9d2b){const _0x5b1dc8=_0x1000c0;this[_0x5b1dc8(0x2ab)](_0x2e9d2b[_0x5b1dc8(0x4aa)]);}[_0x1000c0(0x2b0)](_0x203e8a){const _0x2f1ca0=_0x1000c0;localStorage[_0x2f1ca0(0x10b)](_0x476b1a,JSON[_0x2f1ca0(0x199)](_0x203e8a));}[_0x1000c0(0x490)](){const _0x10a915=_0x1000c0;this[_0x10a915(0x40a)]=window[_0x10a915(0x232)](()=>{const _0x4eae39=_0x10a915;this[_0x4eae39(0x2b0)]({'type':0x2,'memberID':this[_0x4eae39(0x425)]});},_0x46cdfb);}[_0x1000c0(0x1f3)](_0x36ff1d){const _0x310f61=_0x1000c0;return this[_0x310f61(0x25f)][_0x310f61(0x321)](_0x36ff1d)||this[_0x310f61(0x25f)][_0x310f61(0x4c2)](_0x36ff1d,new _0x3c7a49[(_0x310f61(0x35f))](0x0)),this[_0x310f61(0x25f)][_0x310f61(0x1de)](_0x36ff1d);}}var _0x140eab=Object['defineProperty'],_0x4843fb=Object[_0x1000c0(0x2d4)],_0x1ffda1=(_0x3660cd,_0x50de7e,_0x4108de,_0x4e6f47)=>{const _0x235f36=_0x1000c0;for(var _0x6e54ab=_0x4e6f47>0x1?void 0x0:_0x4e6f47?_0x4843fb(_0x50de7e,_0x4108de):_0x50de7e,_0x597373=_0x3660cd[_0x235f36(0x1d8)]-0x1,_0x5164ec;_0x597373>=0x0;_0x597373--)(_0x5164ec=_0x3660cd[_0x597373])&&(_0x6e54ab=(_0x4e6f47?_0x5164ec(_0x50de7e,_0x4108de,_0x6e54ab):_0x5164ec(_0x6e54ab))||_0x6e54ab);return _0x4e6f47&&_0x6e54ab&&_0x140eab(_0x50de7e,_0x4108de,_0x6e54ab),_0x6e54ab;},_0x3afcaf=(_0x12e9ee,_0x37e4bd)=>(_0x5207f2,_0x1f5535)=>_0x37e4bd(_0x5207f2,_0x1f5535,_0x12e9ee);let _0x38f511=class{constructor(_0x56a252,_0x6e38d0){const _0x41dcc1=_0x1000c0;this['_injector']=_0x56a252,this[_0x41dcc1(0x258)]=_0x6e38d0;}['transformIMECache'](_0x354de5){const _0x16be5b=_0x1000c0;this[_0x16be5b(0x13f)](_0x354de5),this[_0x16be5b(0x20c)](_0x354de5);}[_0x1000c0(0x322)](_0x5df327){const _0x173375=_0x1000c0,_0x3251c0=this[_0x173375(0x27f)][_0x173375(0x1de)](_0x30cc49[_0x173375(0x33e)]),{redoCache:_0x24107b}=_0x3251c0[_0x173375(0x326)]();if(_0x24107b[_0x173375(0x1d8)]===0x0)return _0x5df327;let _0x1b706c=_0x592d59[_0x173375(0x33a)][_0x173375(0x2c5)](_0x5df327[_0x173375(0x122)][0x0]);for(let _0x567ad1=0x0;_0x567ad1<_0x24107b[_0x173375(0x1d8)];_0x567ad1++){const _0x22f4bf={'id':_0x173375(0x236),'params':{..._0x24107b[_0x567ad1]}},_0x119652=this[_0x173375(0x258)][_0x173375(0x2aa)](_0x1b706c,_0x22f4bf,!0x1);if(_0x1f6364[_0x173375(0x423)](_0x119652))throw _0x119652[_0x173375(0x343)];_0x1b706c=_0x119652[_0x173375(0x49c)];}return{..._0x592d59[_0x173375(0x33a)][_0x173375(0x2c5)](_0x5df327),'mutations':[_0x1b706c]};}[_0x1000c0(0x13f)](_0x15389e){const _0x30f44f=_0x1000c0,_0x4225f8=this[_0x30f44f(0x27f)]['get'](_0x30cc49[_0x30f44f(0x33e)]),{undoCache:_0x1192d7,redoCache:_0x4c198f}=_0x4225f8['getUndoRedoMutationParamsCache']();if(_0x1192d7['length']===0x0||_0x4c198f[_0x30f44f(0x1d8)]===0x0)return;const _0x28ac2f=[],_0x235fe3=[];let _0x5523f0=_0x592d59[_0x30f44f(0x33a)]['deepClone'](_0x15389e[_0x30f44f(0x122)][0x0]),_0x4b6f97=_0x592d59['Tools'][_0x30f44f(0x2c5)](_0x15389e[_0x30f44f(0x122)][0x0]);for(let _0x28b8b6=_0x1192d7[_0x30f44f(0x1d8)]-0x1;_0x28b8b6>=0x0;_0x28b8b6--){const _0x158061={'id':'doc.mutation.rich-text-editing','params':{..._0x1192d7[_0x28b8b6]}},_0x1715e5={'id':_0x30f44f(0x236),'params':{..._0x4c198f[_0x28b8b6]}},_0x3e940a=this[_0x30f44f(0x258)][_0x30f44f(0x2aa)](_0x5523f0,_0x158061,!0x1),_0x307369=this[_0x30f44f(0x258)][_0x30f44f(0x2aa)](_0x4b6f97,_0x1715e5,!0x1);if(_0x1f6364[_0x30f44f(0x423)](_0x3e940a))throw _0x3e940a[_0x30f44f(0x343)];if(_0x1f6364['isTransformMutationFailure'](_0x307369))throw _0x307369['error'];_0x28ac2f[_0x30f44f(0x143)](_0x3e940a['m2Prime']['params']),_0x235fe3['unshift'](_0x307369[_0x30f44f(0x315)]['params']),_0x5523f0=_0x3e940a[_0x30f44f(0x49c)],_0x4b6f97=_0x307369['m1Prime'];}_0x4225f8['setUndoRedoMutationParamsCache']({'undoCache':_0x28ac2f,'redoCache':_0x235fe3});}['_transformPreviousActiveRange'](_0x563e7e){const _0x29f50d=_0x1000c0,_0x2ac030=this[_0x29f50d(0x27f)][_0x29f50d(0x1de)](_0x30cc49[_0x29f50d(0x33e)]),_0x91ee17=_0x2ac030[_0x29f50d(0x4d2)]();if(_0x91ee17==null)return;const _0x34e5aa=[{'id':_0x29f50d(0x236),'params':{'unitId':_0x563e7e[_0x29f50d(0x10f)],'actions':null,'textRanges':[_0x91ee17]}}],_0x5afd69=this[_0x29f50d(0x258)]['transformMutationsWithChangeset'](_0x563e7e,_0x34e5aa);if(!_0x1f6364[_0x29f50d(0x180)](_0x5afd69))throw _0x5afd69['error'];const _0x203f22=_0x5afd69[_0x29f50d(0x315)][0x0]['params'][_0x29f50d(0x235)];Array['isArray'](_0x203f22)&&_0x203f22[_0x29f50d(0x1d8)]&&_0x2ac030[_0x29f50d(0x2e6)](_0x203f22[0x0]);}};_0x38f511=_0x1ffda1([_0x3afcaf(0x0,_0x1ea985[_0x1000c0(0x368)](_0x1ea985['Injector'])),_0x3afcaf(0x1,_0x1f6364[_0x1000c0(0x34e)])],_0x38f511);var _0x3dcc55=Object[_0x1000c0(0x1a1)],_0x230db0=Object['getOwnPropertyDescriptor'],_0x1d0709=(_0x1459b0,_0xf69e,_0x3d3a52,_0x49f557)=>{const _0x3262eb=_0x1000c0;for(var _0x2da2d6=_0x49f557>0x1?void 0x0:_0x49f557?_0x230db0(_0xf69e,_0x3d3a52):_0xf69e,_0x37297a=_0x1459b0[_0x3262eb(0x1d8)]-0x1,_0x29f5cd;_0x37297a>=0x0;_0x37297a--)(_0x29f5cd=_0x1459b0[_0x37297a])&&(_0x2da2d6=(_0x49f557?_0x29f5cd(_0xf69e,_0x3d3a52,_0x2da2d6):_0x29f5cd(_0x2da2d6))||_0x2da2d6);return _0x49f557&&_0x2da2d6&&_0x3dcc55(_0xf69e,_0x3d3a52,_0x2da2d6),_0x2da2d6;},_0x2c7322=(_0x297b78,_0x5c972b)=>(_0x480454,_0x4c202b)=>_0x5c972b(_0x480454,_0x4c202b,_0x297b78);let _0x12dda8=class{constructor(_0x38bbb4,_0x4a553f){const _0x413151=_0x1000c0;this[_0x413151(0x27f)]=_0x38bbb4,this[_0x413151(0x258)]=_0x4a553f;}[_0x1000c0(0x205)](_0x2b782b){const _0x17bdf6=_0x1000c0;var _0x3ada16;const _0x53bbc3=this[_0x17bdf6(0x27f)][_0x17bdf6(0x1de)](_0x30cc49[_0x17bdf6(0x4c0)]),_0x4bd46e=(_0x3ada16=_0x53bbc3[_0x17bdf6(0x3bb)]())!=null?_0x3ada16:[],_0x5905f7=_0x4bd46e==null?void 0x0:_0x4bd46e[_0x17bdf6(0x1f5)](_0x30cc49[_0x17bdf6(0x174)]);if(_0x5905f7[_0x17bdf6(0x1d8)]===0x0)return;const _0x11c7f5=[{'id':_0x17bdf6(0x236),'params':{'unitId':_0x2b782b[_0x17bdf6(0x10f)],'actions':null,'textRanges':_0x5905f7}}],_0x5b58d7=this['_transformService'][_0x17bdf6(0x436)](_0x2b782b,_0x11c7f5);if(!_0x1f6364[_0x17bdf6(0x180)](_0x5b58d7))throw _0x5b58d7['error'];const _0x2070e6=_0x5b58d7[_0x17bdf6(0x315)][0x0][_0x17bdf6(0x1ec)][_0x17bdf6(0x235)];Array[_0x17bdf6(0x40e)](_0x2070e6)&&_0x2070e6['length']&&_0x53bbc3['replaceTextRanges'](_0x2070e6,!0x1);}};_0x12dda8=_0x1d0709([_0x2c7322(0x0,_0x1ea985[_0x1000c0(0x368)](_0x1ea985['Injector'])),_0x2c7322(0x1,_0x1f6364[_0x1000c0(0x34e)])],_0x12dda8);function _0x3da729(_0x37b072){const _0x332531=_0x1000c0;let _0x10a22f='';for(const _0x36af01 of _0x37b072){const {startOffset:_0x1c3c71,endOffset:_0x34d05d,isActive:_0x5df780}=_0x36af01;_0x10a22f[_0x332531(0x1d8)]&&(_0x10a22f+=','),_0x10a22f+=_0x1c3c71+':'+_0x34d05d+':'+(_0x5df780?'1':'0');}return _0x10a22f;}function _0x23b46f(_0x11dc22){const _0x5d86ac=_0x1000c0,_0x16535b=_0x11dc22[_0x5d86ac(0x486)](','),_0x446423=[];for(const _0x4c3e61 of _0x16535b){const [_0x2f6959,_0x16f268,_0x5c5843]=_0x4c3e61[_0x5d86ac(0x486)](':');_0x446423[_0x5d86ac(0x1a6)]({'startOffset':Number(_0x2f6959),'endOffset':Number(_0x16f268),'collapsed':_0x2f6959===_0x16f268,'isActive':_0x5c5843==='1'});}return _0x446423[_0x5d86ac(0x398)](_0x2ec8c8=>_0x2ec8c8['isActive'])||(_0x446423[0x0][_0x5d86ac(0x14b)]=!0x0),_0x446423;}class _0x148177 extends _0x592d59[_0x1000c0(0x2cd)]{constructor(){const _0x22689e=_0x1000c0;super(...arguments),_0x40dfd7(this,_0x22689e(0x38e),new _0x3c7a49['BehaviorSubject'](null)),_0x40dfd7(this,_0x22689e(0x479),this[_0x22689e(0x38e)][_0x22689e(0x32c)]());}[_0x1000c0(0x43f)](_0x1bef06){const _0xf247fa=_0x1000c0,{unitID:_0x5b2c83,memberID:_0x931747,textRanges:_0x2d49f5}=_0x1bef06,_0x162535=_0x3da729(_0x2d49f5),_0x3ff60e={'unitID':_0x5b2c83,'memberID':_0x931747,'selection':_0x162535};this[_0xf247fa(0x38e)]['next'](_0x3ff60e);}}var _0x50f139=Object[_0x1000c0(0x1a1)],_0x3f7f93=Object[_0x1000c0(0x2d4)],_0x1a2bda=(_0x125f93,_0x5aafce,_0x3ab827,_0x157570)=>{for(var _0x248525=_0x157570>0x1?void 0x0:_0x157570?_0x3f7f93(_0x5aafce,_0x3ab827):_0x5aafce,_0x4ba1cb=_0x125f93['length']-0x1,_0x59d54d;_0x4ba1cb>=0x0;_0x4ba1cb--)(_0x59d54d=_0x125f93[_0x4ba1cb])&&(_0x248525=(_0x157570?_0x59d54d(_0x5aafce,_0x3ab827,_0x248525):_0x59d54d(_0x248525))||_0x248525);return _0x157570&&_0x248525&&_0x50f139(_0x5aafce,_0x3ab827,_0x248525),_0x248525;},_0x5d52cf=(_0x49050f,_0x52bf70)=>(_0x5a3f03,_0x2577db)=>_0x52bf70(_0x5a3f03,_0x2577db,_0x49050f);let _0x20fcca=class{constructor(_0x3ad0b0,_0x34f7ab){const _0x1a6ca5=_0x1000c0;this[_0x1a6ca5(0x27f)]=_0x3ad0b0,this['_transformService']=_0x34f7ab;}['transformSelections'](_0x84a932){const _0x4813a6=_0x1000c0;var _0x334c83,_0x54d2fb,_0x4b43bc,_0x217b64;const _0x294cb3=this[_0x4813a6(0x27f)]['get'](_0x5e4af3[_0x4813a6(0x471)]),{pluginName:_0x4d7d8d,unitId:_0x56464b,sheetId:_0x5b4c76}=_0x294cb3['getCurrent']()||{},_0x7bf24a=(_0x334c83=_0x294cb3[_0x4813a6(0x3bb)]())!=null?_0x334c83:[];if(_0x7bf24a[_0x4813a6(0x1d8)]===0x0||!_0x4d7d8d||!_0x56464b||!_0x5b4c76)return;const _0x4fb0e4=[{'id':_0x5e4af3[_0x4813a6(0x4b6)]['id'],'params':{'unitId':_0x56464b,'subUnitId':_0x5b4c76,'pluginName':_0x4d7d8d,'selections':_0x592d59['Tools'][_0x4813a6(0x2c5)](_0x7bf24a)}}],_0x5664cc=this[_0x4813a6(0x258)][_0x4813a6(0x436)](_0x84a932,_0x4fb0e4);if(!_0x1f6364['isTransformMutationsWithChangesetSuccess'](_0x5664cc))throw _0x5664cc['error'];const _0x595940=(_0x217b64=(_0x4b43bc=(_0x54d2fb=_0x5664cc[_0x4813a6(0x315)][0x0])==null?void 0x0:_0x54d2fb[_0x4813a6(0x1ec)])==null?void 0x0:_0x4b43bc['selections'])!=null?_0x217b64:_0x7bf24a;Array[_0x4813a6(0x40e)](_0x595940)&&_0x595940[_0x4813a6(0x1d8)]&&this[_0x4813a6(0x27f)][_0x4813a6(0x1de)](_0x592d59[_0x4813a6(0x131)])[_0x4813a6(0x19e)](_0x5e4af3[_0x4813a6(0x4b6)]['id'],{'unitId':_0x56464b,'subUnitId':_0x5b4c76,'pluginName':_0x4d7d8d,'selections':_0x595940});}};_0x20fcca=_0x1a2bda([_0x5d52cf(0x0,_0x1ea985[_0x1000c0(0x368)](_0x1ea985['Injector'])),_0x5d52cf(0x1,_0x1f6364[_0x1000c0(0x34e)])],_0x20fcca);const _0x4cc48b=new Set([_0x5e4af3[_0x1000c0(0x437)]['id']]);function _0x1922ea(_0x4ba381,_0x75ce86,_0xd0eff6,_0x1d3ecf,_0x5411ec){const _0x107cbf=_0x1000c0;var _0x56d664,_0x14e30d,_0x418689,_0x3dddb1;const _0x17e081=[];for(const _0x37995b of _0x4ba381)if(_0x4cc48b[_0x107cbf(0x321)](_0x37995b['id'])){if(_0x17e081[_0x107cbf(0x1d8)]>0x0)break;_0x17e081[_0x107cbf(0x1a6)](_0x37995b);break;}else _0x17e081[_0x107cbf(0x1a6)](_0x37995b);const _0x9a9239=(_0x14e30d=(_0x56d664=_0x5411ec[_0x107cbf(0x277)]())==null?void 0x0:_0x56d664[_0x107cbf(0x288)])!=null?_0x14e30d:'unknown',_0x49a774=(_0x3dddb1=(_0x418689=_0x5411ec[_0x107cbf(0x277)]())==null?void 0x0:_0x418689[_0x107cbf(0x4aa)])!=null?_0x3dddb1:_0x107cbf(0x1f2);return{'changeset':{'unitID':_0x75ce86,'type':_0x1f6364[_0x107cbf(0x47e)](_0xd0eff6[_0x107cbf(0x220)](_0x75ce86)),'baseRev':_0x1d3ecf[_0x107cbf(0x335)](_0x75ce86),'revision':0x0,'userID':_0x9a9239,'memberID':_0x49a774,'mutations':_0x17e081},'pendingMutations':_0x4ba381[_0x107cbf(0x440)](_0x17e081[_0x107cbf(0x1d8)])};}function _0x3250b9(_0x5bea72,_0x47a807,_0x5eff48,_0x2318b2,_0x40515a){const _0x372f40=_0x1000c0;var _0x5a23b0,_0x56ae9d,_0x46f86e,_0x475af9;const _0x400d65=[_0x5bea72['reduce']((_0x5d792d,_0x22ddf5)=>{const _0x30154d=_0x492d;var _0x56bc4f;const {id:_0x374eb1}=_0x5d792d,{id:_0x352789,type:_0x6d0388}=_0x22ddf5,_0xb92875=(_0x56bc4f=_0x5d792d['params'])!=null?_0x56bc4f:{'actions':null},_0x5b7bda=_0x22ddf5[_0x30154d(0x1ec)];if(_0x374eb1&&_0x374eb1!==_0x352789)throw new Error(_0x30154d(0x424)+_0x374eb1+'\x20-\x20'+_0x352789+'.');return{..._0x5d792d,'id':_0x352789,'type':_0x6d0388,'params':{'unitId':_0x5b7bda[_0x30154d(0x29b)],'textRanges':_0x5b7bda[_0x30154d(0x235)],'actions':_0x592d59['JSONX']['compose'](_0xb92875['actions'],_0x5b7bda[_0x30154d(0x24f)])}};},{})],_0x468f46=(_0x56ae9d=(_0x5a23b0=_0x40515a['getCurrentUser']())==null?void 0x0:_0x5a23b0[_0x372f40(0x288)])!=null?_0x56ae9d:_0x372f40(0x1f2),_0x2cc85=(_0x475af9=(_0x46f86e=_0x40515a['getCurrentUser']())==null?void 0x0:_0x46f86e[_0x372f40(0x4aa)])!=null?_0x475af9:_0x372f40(0x1f2);return{'changeset':{'unitID':_0x47a807,'type':_0x1f6364['mapDocumentTypeToUniverType'](_0x5eff48[_0x372f40(0x220)](_0x47a807)),'baseRev':_0x2318b2[_0x372f40(0x335)](_0x47a807),'revision':0x0,'userID':_0x468f46,'memberID':_0x2cc85,'mutations':_0x400d65},'pendingMutations':[]};}var _0x53dcec=Object[_0x1000c0(0x1a1)],_0x2673bd=Object[_0x1000c0(0x2d4)],_0x6e6839=(_0xa46667,_0x10c588,_0x3ea3ff,_0x50a472)=>{const _0x338ad9=_0x1000c0;for(var _0x5e1406=_0x50a472>0x1?void 0x0:_0x50a472?_0x2673bd(_0x10c588,_0x3ea3ff):_0x10c588,_0x1fe142=_0xa46667[_0x338ad9(0x1d8)]-0x1,_0x158c61;_0x1fe142>=0x0;_0x1fe142--)(_0x158c61=_0xa46667[_0x1fe142])&&(_0x5e1406=(_0x50a472?_0x158c61(_0x10c588,_0x3ea3ff,_0x5e1406):_0x158c61(_0x5e1406))||_0x5e1406);return _0x50a472&&_0x5e1406&&_0x53dcec(_0x10c588,_0x3ea3ff,_0x5e1406),_0x5e1406;},_0x519360=(_0x73930,_0x1afdc2)=>(_0x21515f,_0x26938a)=>_0x1afdc2(_0x21515f,_0x26938a,_0x73930),_0x3e6f91=(_0x5644ed=>(_0x5644ed[_0x1000c0(0x3c9)]='not_collab',_0x5644ed['SYNCED']='synced',_0x5644ed[_0x1000c0(0x47c)]=_0x1000c0(0x2d6),_0x5644ed[_0x1000c0(0x356)]=_0x1000c0(0x38d),_0x5644ed[_0x1000c0(0x227)]=_0x1000c0(0x390),_0x5644ed[_0x1000c0(0x156)]=_0x1000c0(0x46d),_0x5644ed[_0x1000c0(0x25e)]='conflict',_0x5644ed[_0x1000c0(0x4a5)]='offline',_0x5644ed))(_0x3e6f91||{});class _0x1c822e{constructor(_0x50f153,_0x5f271a,_0x51eff2,_0x4186d9,_0x5bb476,_0x41c51a,_0x400821,_0x77d96b,_0x21f3df){const _0x4d3f11=_0x1000c0;_0x40dfd7(this,_0x4d3f11(0x233),null),_0x40dfd7(this,_0x4d3f11(0x12c),[]),(this['unitID']=_0x50f153,this['type']=_0x5f271a,this[_0x4d3f11(0x2c7)]=_0x5bb476,this[_0x4d3f11(0x401)]=_0x41c51a,this['_undoRedoService']=_0x400821,this[_0x4d3f11(0x1e0)]=_0x77d96b,this[_0x4d3f11(0x140)]=_0x21f3df,this[_0x4d3f11(0x233)]=_0x51eff2,this[_0x4d3f11(0x12c)]=_0x4186d9);}['_checkMissing'](_0x5b1117){const _0x47a12d=_0x1000c0,_0x293301=this['_revisionService'][_0x47a12d(0x335)](this[_0x47a12d(0x10f)]);return _0x5b1117[_0x47a12d(0x2bd)]>_0x293301+0x1?(this[_0x47a12d(0x2c7)][_0x47a12d(0x323)]({'from':_0x293301,'to':_0x5b1117['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x29a30d){const _0x589960=_0x1000c0;this[_0x589960(0x211)][_0x589960(0x382)](this[_0x589960(0x10f)],_0x29a30d);}[_0x1000c0(0x196)](_0x1f41be){const _0x473eee=_0x1000c0;var _0x1cdbc2,_0x5c2b17;(_0x5c2b17=(_0x1cdbc2=this[_0x473eee(0x2c7)])[_0x473eee(0x350)])==null||_0x5c2b17['call'](_0x1cdbc2,_0x1f41be);}[_0x1000c0(0x3c7)](_0x1cc3f4){const _0x86434e=_0x1000c0;var _0x203f85,_0x4f03d7;return(_0x4f03d7=(_0x203f85=this[_0x86434e(0x2c7)])[_0x86434e(0x19a)])==null?void 0x0:_0x4f03d7['call'](_0x203f85,_0x1cc3f4);}[_0x1000c0(0x4b7)](_0xb5828f){const _0x2e22af=_0x1000c0;var _0x42eef7,_0x378727,_0x1db9be;return(_0x1db9be=(_0x378727=(_0x42eef7=this[_0x2e22af(0x2c7)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x378727[_0x2e22af(0x266)](_0x42eef7,_0xb5828f))!=null?_0x1db9be:_0xb5828f;}[_0x1000c0(0x2c4)](_0x1a4102){const _0x2511e6=_0x1000c0;var _0x3bcf09,_0x1e68ba;if(this[_0x2511e6(0x49b)]===_0x376736[_0x2511e6(0x119)]){const {unitID:_0x20afaa,mutations:_0x53590e,memberID:_0xc3b306}=_0x1a4102,_0x4c47f0=_0x53590e[0x0][_0x2511e6(0x1ec)][_0x2511e6(0x235)];Array['isArray'](_0x4c47f0)&&_0x4c47f0['length']>0x0&&((_0x1e68ba=(_0x3bcf09=this[_0x2511e6(0x2c7)])[_0x2511e6(0x289)])==null||_0x1e68ba[_0x2511e6(0x266)](_0x3bcf09,{'unitID':_0x20afaa,'memberID':_0xc3b306,'textRanges':_0x4c47f0}));}}['_updateLocalCache'](){const _0x28908=_0x1000c0;this['_localCacheService'][_0x28908(0x3cb)](this[_0x28908(0x10f)],this[_0x28908(0x49b)],this[_0x28908(0x233)],this[_0x28908(0x12c)]);}[_0x1000c0(0x1e2)](){const _0x56d12a=_0x1000c0;return this[_0x56d12a(0x1e0)][_0x56d12a(0x335)](this[_0x56d12a(0x10f)]);}[_0x1000c0(0x206)](){const _0x24f3ba=_0x1000c0;this[_0x24f3ba(0x1e0)][_0x24f3ba(0x360)](this['unitID']);}[_0x1000c0(0x189)](_0x75ae3){const _0x278ae4=_0x1000c0;var _0x3edc61;const _0xce29b6=this[_0x278ae4(0x4b7)](_0x75ae3),_0x3b3ca3=_0x592d59[_0x278ae4(0x168)](_0xce29b6[_0x278ae4(0x122)],this[_0x278ae4(0x401)],{'fromCollab':!0x0});if(!_0x3b3ca3[_0x278ae4(0x170)])throw _0x3b3ca3['error']instanceof Error?_0x3b3ca3['error']:new Error((_0x3edc61=_0x3b3ca3['error'])!=null?_0x3edc61:_0x278ae4(0x21f));this['_transformIMECache'](_0xce29b6),this[_0x278ae4(0x185)](_0x75ae3),this[_0x278ae4(0x196)](_0xce29b6),this[_0x278ae4(0x2c4)](_0xce29b6),this[_0x278ae4(0x206)]();}}let _0x2db095=class extends _0x1c822e{constructor(_0x336ab5,_0x35a218,_0x3902fb,_0x30f985,_0x1a5e25,_0x5bcef8,_0x5de8d8,_0x33a324,_0x451c68){const _0x49dd69=_0x1000c0;super(_0x336ab5,_0x35a218,null,[],_0x3902fb,_0x33a324,_0x5de8d8,_0x30f985,_0x1a5e25),_0x40dfd7(this,'status',_0x49dd69(0x4cb)),(this[_0x49dd69(0x27f)]=_0x5bcef8,this[_0x49dd69(0x195)]=_0x451c68);}[_0x1000c0(0x107)](_0x1276e2){const _0x1e3ecc=_0x1000c0,_0xa82cb1=this[_0x1e3ecc(0x27f)]['createInstance'](_0x43333f,this[_0x1e3ecc(0x10f)],this[_0x1e3ecc(0x49b)],[_0x1276e2],this[_0x1e3ecc(0x2c7)]);return _0xa82cb1[_0x1e3ecc(0x32e)](),_0xa82cb1[_0x1e3ecc(0x41b)](),_0xa82cb1;}['onRemoteChangeset'](_0x4ea67b){const _0x1f52c3=_0x1000c0;if(this[_0x1f52c3(0x24a)](_0x4ea67b))return this[_0x1f52c3(0x27f)][_0x1f52c3(0x134)](_0x1b8aa3,this[_0x1f52c3(0x10f)],this[_0x1f52c3(0x49b)],null,[],null,[_0x4ea67b],this[_0x1f52c3(0x2c7)]);try{return this[_0x1f52c3(0x189)](_0x4ea67b),this;}catch(_0x4bef9f){return this[_0x1f52c3(0x195)]['error'](_0x1f52c3(0x320),_0x4bef9f),this;}}[_0x1000c0(0x246)](){const _0x56aa27=_0x1000c0;throw new Error(_0x56aa27(0x22c));}[_0x1000c0(0x2f6)](){const _0x468da1=_0x1000c0;throw new Error(_0x468da1(0x1b9));}[_0x1000c0(0x130)](){const _0x2c8ec7=_0x1000c0;return this[_0x2c8ec7(0x27f)][_0x2c8ec7(0x134)](_0x2e26d4,this[_0x2c8ec7(0x10f)],this['type'],null,[],this['_handler']);}[_0x1000c0(0x312)](){return this;}[_0x1000c0(0x113)](){const _0x3f0b54=_0x1000c0;throw new Error(_0x3f0b54(0x213));}};_0x2db095=_0x6e6839([_0x519360(0x3,_0x1ea985[_0x1000c0(0x368)](_0x1f6364[_0x1000c0(0x39d)])),_0x519360(0x4,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x519360(0x5,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x519360(0x6,_0x592d59[_0x1000c0(0x116)]),_0x519360(0x7,_0x592d59[_0x1000c0(0x131)]),_0x519360(0x8,_0x592d59['ILogService'])],_0x2db095);let _0x43333f=class extends _0x1c822e{constructor(_0x5ea8be,_0x39e181,_0x50da21,_0x3d18c8,_0x176266,_0x4b949d,_0x5e589d,_0x212589,_0x1e2db3,_0x2e2c21,_0x1d8246,_0x326503,_0x5363b7,_0xe59af8){const _0x2b3a8c=_0x1000c0;super(_0x5ea8be,_0x39e181,null,_0x50da21,_0x3d18c8,_0x2e2c21,_0xe59af8,_0x4b949d,_0x5e589d),_0x40dfd7(this,_0x2b3a8c(0x32f),'pending'),_0x40dfd7(this,_0x2b3a8c(0x4bd),null),_0x40dfd7(this,'_sendingTimer',null),(this[_0x2b3a8c(0x27f)]=_0x176266,this['_memberService']=_0x212589,this[_0x2b3a8c(0x195)]=_0x1e2db3,this[_0x2b3a8c(0x230)]=_0x1d8246,this[_0x2b3a8c(0x258)]=_0x326503,this[_0x2b3a8c(0x40b)]=_0x5363b7);}[_0x1000c0(0x107)](_0x2bb07d){const _0x33ab00=_0x1000c0;return this[_0x33ab00(0x12c)][_0x33ab00(0x1a6)](_0x2bb07d),this['_updateLocalCache'](),this;}[_0x1000c0(0x269)](_0x306f67){const _0x50c281=_0x1000c0;if(this['_checkMissing'](_0x306f67))return this[_0x50c281(0x474)](),this[_0x50c281(0x27f)][_0x50c281(0x134)](_0x1b8aa3,this[_0x50c281(0x10f)],this['type'],null,this['_pendingMutations'],null,[_0x306f67],this[_0x50c281(0x2c7)]);try{const _0x4f2a98=this[_0x50c281(0x258)]['transformMutationsWithChangeset'](_0x306f67,this[_0x50c281(0x12c)]);if(_0x1f6364[_0x50c281(0x180)](_0x4f2a98)){const {c1Prime:_0x374ed0,m2Prime:_0x343f2b}=_0x4f2a98;this['_executeRemoteChangeset'](_0x374ed0);const _0x113a60=this[_0x50c281(0x27f)][_0x50c281(0x134)](_0x43333f,this[_0x50c281(0x10f)],this[_0x50c281(0x49b)],_0x343f2b,this[_0x50c281(0x2c7)]);return this['_clearScheduledTask'](),_0x113a60['_schedule'](this[_0x50c281(0x4bd)]?Math[_0x50c281(0x44e)](0x0,new Date()[_0x50c281(0x4ba)]()-this[_0x50c281(0x4bd)]):this['_getSendChangesetTimeout']()),_0x113a60;}throw _0x4f2a98[_0x50c281(0x343)];}catch(_0x38abb0){return this[_0x50c281(0x195)][_0x50c281(0x343)](_0x38abb0),this[_0x50c281(0x497)](!0x1);}}[_0x1000c0(0x246)](){const _0x4bbb94=_0x1000c0;throw new Error(_0x4bbb94(0x108));}[_0x1000c0(0x2f6)](){const _0x985760=_0x1000c0;throw new Error(_0x985760(0x2e5));}['toggleOffline'](){const _0x3f5504=_0x1000c0;return this[_0x3f5504(0x474)](),this['_injector'][_0x3f5504(0x134)](_0x2e26d4,this[_0x3f5504(0x10f)],this['type'],null,this[_0x3f5504(0x12c)],this[_0x3f5504(0x2c7)]);}['toggleOnline'](){return this;}[_0x1000c0(0x32e)](_0x3ad91c){const _0xb4d141=_0x1000c0;_0x3ad91c=_0x3ad91c!=null?_0x3ad91c:this[_0xb4d141(0x37f)](),this[_0xb4d141(0x4bd)]=new Date()[_0xb4d141(0x4ba)](),this[_0xb4d141(0x1d2)]=setTimeout(()=>{const _0x5e34f0=_0xb4d141;this['_clearScheduledTask']();let _0x34c1e9=null;switch(this['type']){case _0x376736['UNIVER_SHEET']:{_0x34c1e9=_0x1922ea(this[_0x5e34f0(0x12c)],this[_0x5e34f0(0x10f)],this['_univerInstanceService'],this[_0x5e34f0(0x1e0)],this[_0x5e34f0(0x29e)]);break;}case _0x376736[_0x5e34f0(0x119)]:{_0x34c1e9=_0x3250b9(this['_pendingMutations'],this[_0x5e34f0(0x10f)],this[_0x5e34f0(0x40b)],this[_0x5e34f0(0x1e0)],this[_0x5e34f0(0x29e)]);break;}default:throw new Error(_0x5e34f0(0x3f5)+this[_0x5e34f0(0x49b)]+_0x5e34f0(0x3f6));}const {changeset:_0x33b6f2,pendingMutations:_0x422a44}=_0x34c1e9;this['_handler']['onSendChangeset'](_0x33b6f2);const _0xcfb7e9=_0x422a44[_0x5e34f0(0x1d8)]?this[_0x5e34f0(0x27f)][_0x5e34f0(0x134)](_0x330ba1,this['unitID'],this[_0x5e34f0(0x49b)],_0x33b6f2,_0x422a44,this[_0x5e34f0(0x2c7)]):this[_0x5e34f0(0x27f)][_0x5e34f0(0x134)](_0x4c9e17,this[_0x5e34f0(0x10f)],this[_0x5e34f0(0x49b)],_0x33b6f2,this['_handler']);_0xcfb7e9[_0x5e34f0(0x41b)](),this[_0x5e34f0(0x2c7)][_0x5e34f0(0x18e)](this,_0xcfb7e9);},_0x3ad91c);}[_0x1000c0(0x37f)](){const _0x1e1dcf=_0x1000c0;var _0x3b75c7;return(_0x3b75c7=this[_0x1e1dcf(0x230)][_0x1e1dcf(0x393)](_0x48f0d1))!=null?_0x3b75c7:0x7d0;}[_0x1000c0(0x113)](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x1000c0(0x474)](){const _0x388374=_0x1000c0;this['_sendingTimer']!=null&&(clearTimeout(this[_0x388374(0x1d2)]),this['_sendingTimer']=null);}[_0x1000c0(0x497)](_0xfafaed){const _0xc8b69a=_0x1000c0;return this[_0xc8b69a(0x474)](),this['_injector'][_0xc8b69a(0x134)](_0x1871ec,this[_0xc8b69a(0x10f)],this['type'],null,this[_0xc8b69a(0x12c)],this['_handler'],_0xfafaed);}};_0x43333f=_0x6e6839([_0x519360(0x4,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x519360(0x5,_0x1ea985['Inject'](_0x1f6364[_0x1000c0(0x39d)])),_0x519360(0x6,_0x1ea985['Inject'](_0x322d5b[_0x1000c0(0x24c)])),_0x519360(0x7,_0x1ea985[_0x1000c0(0x368)](_0x2539c6)),_0x519360(0x8,_0x592d59['ILogService']),_0x519360(0x9,_0x592d59[_0x1000c0(0x131)]),_0x519360(0xa,_0x592d59[_0x1000c0(0x41f)]),_0x519360(0xb,_0x1f6364[_0x1000c0(0x34e)]),_0x519360(0xc,_0x592d59['IUniverInstanceService']),_0x519360(0xd,_0x592d59[_0x1000c0(0x116)])],_0x43333f);let _0x4c9e17=class extends _0x1c822e{constructor(_0x27c373,_0xa3434b,_0x2b27af,_0x27fbd1,_0x9f62fd,_0x2f0c5f,_0x14fe7c,_0x40084b,_0x56d0b0,_0x1b850f,_0x529a2f){const _0x27d553=_0x1000c0;super(_0x27c373,_0xa3434b,_0x2b27af,[],_0x27fbd1,_0x40084b,_0x529a2f,_0x2f0c5f,_0x14fe7c),_0x40dfd7(this,'status','awaiting'),(this[_0x27d553(0x27f)]=_0x9f62fd,this[_0x27d553(0x195)]=_0x56d0b0,this[_0x27d553(0x258)]=_0x1b850f);}[_0x1000c0(0x107)](_0x181d1c){const _0xab8e28=_0x1000c0,_0xad61a0=this[_0xab8e28(0x27f)][_0xab8e28(0x134)](_0x330ba1,this[_0xab8e28(0x10f)],this[_0xab8e28(0x49b)],this[_0xab8e28(0x233)],[_0x181d1c],this[_0xab8e28(0x2c7)]);return _0xad61a0[_0xab8e28(0x41b)](),_0xad61a0;}[_0x1000c0(0x269)](_0x18a9b4){const _0x14773b=_0x1000c0;if(this[_0x14773b(0x24a)](_0x18a9b4))return this[_0x14773b(0x27f)][_0x14773b(0x134)](_0x1b8aa3,this[_0x14773b(0x10f)],this['type'],this[_0x14773b(0x233)],[],null,[_0x18a9b4],this['_handler']);try{const _0x54f95f=this['_transformService'][_0x14773b(0x2cb)]([_0x18a9b4],[this['_awaitingChangeset']],!0x1);if(_0x1f6364['isTransformChangesetsSuccess'](_0x54f95f)){const {c1Prime:_0x4efde8,c2Prime:_0x4461df}=_0x54f95f;this[_0x14773b(0x189)](_0x4efde8[0x0]),_0x4461df[0x0][_0x14773b(0x33f)]=this[_0x14773b(0x1e2)]();const _0x562a69=this['_injector'][_0x14773b(0x134)](_0x4c9e17,this['unitID'],this[_0x14773b(0x49b)],_0x4461df[0x0],this['_handler']);return _0x562a69[_0x14773b(0x41b)](),_0x562a69;}return this[_0x14773b(0x497)](!0x1);}catch(_0x831275){return this[_0x14773b(0x195)][_0x14773b(0x343)](_0x831275),this['_onConflict'](!0x1);}}[_0x1000c0(0x246)](_0x25cfdf){const _0x33b00d=_0x1000c0,_0x3ffb5e=this[_0x33b00d(0x1e0)][_0x33b00d(0x335)](this[_0x33b00d(0x10f)]);if(_0x25cfdf[_0x33b00d(0x2bd)]<_0x3ffb5e-0x1)return this;if(this[_0x33b00d(0x24a)](_0x25cfdf))return this[_0x33b00d(0x27f)][_0x33b00d(0x134)](_0x1b8aa3,this[_0x33b00d(0x10f)],this[_0x33b00d(0x49b)],null,[],this[_0x33b00d(0x233)],[],this['_handler']);this[_0x33b00d(0x206)]();const _0x301b17=this['_injector'][_0x33b00d(0x134)](_0x2db095,this[_0x33b00d(0x10f)],this['type'],this[_0x33b00d(0x2c7)]);return _0x301b17[_0x33b00d(0x41b)](),_0x301b17;}['onRemoteRej'](_0x5525bb){const _0x2b3a3d=_0x1000c0;return this[_0x2b3a3d(0x497)](!!(_0x5525bb!=null&&_0x5525bb[_0x2b3a3d(0x2c2)]));}['toggleOffline'](){const _0x349d2d=_0x1000c0;return this[_0x349d2d(0x27f)][_0x349d2d(0x134)](_0x2e26d4,this[_0x349d2d(0x10f)],this[_0x349d2d(0x49b)],this[_0x349d2d(0x233)],[],this[_0x349d2d(0x2c7)]);}[_0x1000c0(0x312)](){return this;}[_0x1000c0(0x113)](){const _0x3ee027=_0x1000c0;this[_0x3ee027(0x2c7)]['onSendChangeset'](this[_0x3ee027(0x233)]);}[_0x1000c0(0x497)](_0x64c3af){const _0x444f11=_0x1000c0;return this[_0x444f11(0x27f)][_0x444f11(0x134)](_0x1871ec,this[_0x444f11(0x10f)],this[_0x444f11(0x49b)],this[_0x444f11(0x233)],[],this[_0x444f11(0x2c7)],_0x64c3af);}};_0x4c9e17=_0x6e6839([_0x519360(0x4,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x519360(0x5,_0x1ea985['Inject'](_0x1f6364[_0x1000c0(0x39d)])),_0x519360(0x6,_0x1ea985[_0x1000c0(0x368)](_0x322d5b['LocalCacheService'])),_0x519360(0x7,_0x592d59['ICommandService']),_0x519360(0x8,_0x592d59['ILogService']),_0x519360(0x9,_0x1f6364[_0x1000c0(0x34e)]),_0x519360(0xa,_0x592d59[_0x1000c0(0x116)])],_0x4c9e17);let _0x330ba1=class extends _0x1c822e{constructor(_0x2abb9d,_0x4175d4,_0x3a6833,_0x35efc5,_0x2a7143,_0x4ea7e3,_0x2a88c4,_0x2109f0,_0x5de13c,_0x2df3b2,_0x40cd64,_0x1b7ea3){const _0x495514=_0x1000c0;super(_0x2abb9d,_0x4175d4,_0x3a6833,_0x35efc5,_0x2a7143,_0x5de13c,_0x1b7ea3,_0x2a88c4,_0x2109f0),_0x40dfd7(this,'status',_0x495514(0x390)),(this[_0x495514(0x27f)]=_0x4ea7e3,this[_0x495514(0x195)]=_0x2df3b2,this[_0x495514(0x258)]=_0x40cd64);}[_0x1000c0(0x107)](_0x58ef48){const _0x47c3d1=_0x1000c0;return this['_pendingMutations'][_0x47c3d1(0x1a6)](_0x58ef48),this;}['onRemoteChangeset'](_0x28f586){const _0xdc1532=_0x1000c0;if(this[_0xdc1532(0x24a)](_0x28f586))return this['_injector'][_0xdc1532(0x134)](_0x1b8aa3,this[_0xdc1532(0x10f)],this[_0xdc1532(0x49b)],this[_0xdc1532(0x233)],this[_0xdc1532(0x12c)],null,[_0x28f586],this[_0xdc1532(0x2c7)]);try{const _0x317894=this[_0xdc1532(0x258)]['transformChangesets']([_0x28f586],[this[_0xdc1532(0x233)]],!0x1);if(_0x1f6364[_0xdc1532(0x39a)](_0x317894)){const {c1Prime:_0x17ee0f,c2Prime:_0x197080}=_0x317894,_0x114dc4=this['_transformService'][_0xdc1532(0x436)](_0x17ee0f[0x0],this[_0xdc1532(0x12c)]);if(_0x1f6364[_0xdc1532(0x180)](_0x114dc4)){const {c1Prime:_0x5be459,m2Prime:_0x229613}=_0x114dc4;return this[_0xdc1532(0x189)](_0x5be459),_0x197080[0x0]['baseRev']=this[_0xdc1532(0x1e2)](),this[_0xdc1532(0x27f)][_0xdc1532(0x134)](_0x330ba1,this[_0xdc1532(0x10f)],this[_0xdc1532(0x49b)],_0x197080[0x0],_0x229613,this[_0xdc1532(0x2c7)]);}throw _0x114dc4[_0xdc1532(0x343)];}throw _0x317894[_0xdc1532(0x343)];}catch(_0x18e087){return this[_0xdc1532(0x195)][_0xdc1532(0x343)](_0x18e087),this[_0xdc1532(0x497)](!0x1);}}[_0x1000c0(0x246)](_0x36a138){const _0x436fa8=_0x1000c0;if(this[_0x436fa8(0x24a)](_0x36a138))return this[_0x436fa8(0x27f)]['createInstance'](_0x1b8aa3,this[_0x436fa8(0x10f)],this['type'],null,this[_0x436fa8(0x12c)],this[_0x436fa8(0x233)],[],this['_handler']);this[_0x436fa8(0x206)]();const _0x348311=this[_0x436fa8(0x27f)][_0x436fa8(0x134)](_0x43333f,this[_0x436fa8(0x10f)],this[_0x436fa8(0x49b)],this[_0x436fa8(0x12c)],this['_handler']);return _0x348311[_0x436fa8(0x32e)](),_0x348311['_updateLocalCache'](),_0x348311;}[_0x1000c0(0x2f6)](_0x17a892){const _0x4d12eb=_0x1000c0;return this['_onConflict'](!!(_0x17a892!=null&&_0x17a892[_0x4d12eb(0x2c2)]));}[_0x1000c0(0x130)](){const _0x544d9c=_0x1000c0;return this['_injector']['createInstance'](_0x2e26d4,this[_0x544d9c(0x10f)],this['type'],this[_0x544d9c(0x233)],this[_0x544d9c(0x12c)],this['_handler']);}['toggleOnline'](){return this;}[_0x1000c0(0x113)](){const _0x3c2afa=_0x1000c0;this[_0x3c2afa(0x2c7)][_0x3c2afa(0x4d1)](this[_0x3c2afa(0x233)]);}[_0x1000c0(0x497)](_0x1d2571){const _0x15b8fb=_0x1000c0;return this['_injector']['createInstance'](_0x1871ec,this[_0x15b8fb(0x10f)],this['type'],null,this[_0x15b8fb(0x12c)],this[_0x15b8fb(0x2c7)],_0x1d2571);}};_0x330ba1=_0x6e6839([_0x519360(0x5,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x519360(0x6,_0x1ea985[_0x1000c0(0x368)](_0x1f6364[_0x1000c0(0x39d)])),_0x519360(0x7,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x519360(0x8,_0x592d59[_0x1000c0(0x131)]),_0x519360(0x9,_0x592d59[_0x1000c0(0x1ef)]),_0x519360(0xa,_0x1f6364[_0x1000c0(0x34e)]),_0x519360(0xb,_0x592d59[_0x1000c0(0x116)])],_0x330ba1);let _0x1871ec=class extends _0x1c822e{constructor(_0x457ae6,_0x43f639,_0x3047b7,_0xa31d49,_0x3cb0f2,_0x324244=!0x1,_0x59bf00,_0x51bfd9,_0x29397a,_0x47b318,_0x41c6f6,_0x16e8da,_0x506530){const _0x205096=_0x1000c0;super(_0x457ae6,_0x43f639,_0x3047b7,_0xa31d49,_0x3cb0f2,_0x51bfd9,_0x29397a,_0x41c6f6,_0x47b318),_0x40dfd7(this,'status',_0x205096(0x20a)),(this[_0x205096(0x3bf)]=_0x324244,this[_0x205096(0x147)]=_0x59bf00,this[_0x205096(0x2a1)]=_0x16e8da,this[_0x205096(0x12b)]=_0x506530,this[_0x205096(0x2fd)](),this['_clearLocalCache'](),this[_0x205096(0x15f)]());}[_0x1000c0(0x107)](){return this;}[_0x1000c0(0x269)](){return this;}[_0x1000c0(0x246)](){return this;}[_0x1000c0(0x2f6)](){return this;}[_0x1000c0(0x130)](){return this;}[_0x1000c0(0x312)](){return this;}[_0x1000c0(0x113)](){const _0x5e119f=_0x1000c0;throw new Error(_0x5e119f(0x443));}[_0x1000c0(0x3aa)](){const _0x2b97cf=_0x1000c0;this[_0x2b97cf(0x140)][_0x2b97cf(0x3cb)](this[_0x2b97cf(0x10f)],this[_0x2b97cf(0x49b)],null,[]);}[_0x1000c0(0x2fd)](){const _0x255eb5=_0x1000c0;this['_isPermissionRej']?this[_0x255eb5(0x12b)][_0x255eb5(0x2eb)]({'title':this[_0x255eb5(0x2a1)]['t']('permission.title'),'content':this['_localeService']['t'](_0x255eb5(0x361)),'type':_0x255eb5(0x343),'duration':0x0}):this[_0x255eb5(0x12b)][_0x255eb5(0x2eb)]({'title':this[_0x255eb5(0x2a1)]['t'](_0x255eb5(0x489)),'content':this['_localeService']['t']('conflict.content'),'type':_0x255eb5(0x343),'duration':0x0});}[_0x1000c0(0x15f)](){const _0x262fb2=_0x1000c0;this[_0x262fb2(0x147)][_0x262fb2(0x20d)](new _0x5e4af3[(_0x262fb2(0x304))](this[_0x262fb2(0x10f)])['id'],!0x1);}};_0x1871ec=_0x6e6839([_0x519360(0x6,_0x1ea985[_0x1000c0(0x368)](_0x592d59['IPermissionService'])),_0x519360(0x7,_0x592d59[_0x1000c0(0x131)]),_0x519360(0x8,_0x592d59[_0x1000c0(0x116)]),_0x519360(0x9,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x519360(0xa,_0x1ea985[_0x1000c0(0x368)](_0x1f6364['RevisionService'])),_0x519360(0xb,_0x1ea985[_0x1000c0(0x368)](_0x592d59[_0x1000c0(0x279)])),_0x519360(0xc,_0x2c52d3[_0x1000c0(0x165)])],_0x1871ec);let _0x2e26d4=class extends _0x1c822e{constructor(_0x5591da,_0x15984d,_0x5a9fe5,_0x1a01aa,_0x50d07a,_0x21fba9,_0x5c3e82,_0x80e11b,_0x360814,_0xf95a9f){const _0x41df33=_0x1000c0;super(_0x5591da,_0x15984d,_0x5a9fe5,_0x1a01aa,_0x50d07a,_0x360814,_0xf95a9f,_0x5c3e82,_0x80e11b),_0x40dfd7(this,'status',_0x41df33(0x2fb)),this[_0x41df33(0x27f)]=_0x21fba9;}[_0x1000c0(0x107)](_0x18b1b5){const _0xdb9668=_0x1000c0;return this[_0xdb9668(0x12c)][_0xdb9668(0x1a6)](_0x18b1b5),this[_0xdb9668(0x41b)](),this;}['onRemoteChangeset'](_0x4ed6fc){const _0x3e54b3=_0x1000c0;throw new Error(_0x3e54b3(0x435));}['onRemoteAck'](){const _0xd8071=_0x1000c0;throw new Error(_0xd8071(0x20f));}[_0x1000c0(0x2f6)](){const _0x38dbeb=_0x1000c0;throw new Error(_0x38dbeb(0x207));}[_0x1000c0(0x130)](){return this;}[_0x1000c0(0x312)](){const _0x38156b=_0x1000c0,{_injector:_0x42d60a,_pendingMutations:_0x4961da,_awaitingChangeset:_0x251617,unitID:_0xa94cdc,_handler:_0x105a82,type:_0x548b62}=this,_0x4fcf93=_0x304f8d(_0x42d60a,_0xa94cdc,_0x548b62,_0x251617,_0x4961da,_0x105a82);return _0x4fcf93 instanceof _0x43333f?_0x4fcf93[_0x38156b(0x32e)]():(_0x4fcf93 instanceof _0x330ba1||_0x4fcf93 instanceof _0x4c9e17)&&_0x4fcf93[_0x38156b(0x113)](),_0x4fcf93;}[_0x1000c0(0x113)](){const _0x3e98ea=_0x1000c0;throw new Error(_0x3e98ea(0x49f));}};_0x2e26d4=_0x6e6839([_0x519360(0x5,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x519360(0x6,_0x1ea985[_0x1000c0(0x368)](_0x1f6364['RevisionService'])),_0x519360(0x7,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x519360(0x8,_0x592d59[_0x1000c0(0x131)]),_0x519360(0x9,_0x592d59['IUndoRedoService'])],_0x2e26d4);let _0x1b8aa3=class extends _0x1c822e{constructor(_0x20cc83,_0x519129,_0x31f5fc,_0x6761e3,_0x4e30a5,_0xa564c4,_0x57f8ba,_0x520aef,_0x52665a,_0x2d5dcc,_0x4aba2c,_0x1b0c82,_0x38223f,_0x567c03){const _0x37be51=_0x1000c0;super(_0x20cc83,_0x519129,_0x31f5fc,_0x6761e3,_0x57f8ba,_0x1b0c82,_0x38223f,_0x52665a,_0x2d5dcc),_0x40dfd7(this,'status',_0x37be51(0x46d)),(this[_0x37be51(0x43e)]=_0x4e30a5,this[_0x37be51(0x3c6)]=_0xa564c4,this[_0x37be51(0x27f)]=_0x520aef,this[_0x37be51(0x195)]=_0x4aba2c,this[_0x37be51(0x258)]=_0x567c03);}[_0x1000c0(0x12f)](_0xf94050){const _0xfd482=_0x1000c0;try{const _0x302c66=[..._0xf94050,...this[_0xfd482(0x3c6)]],_0x21d137=[this['_awaitingChangeset']||this[_0xfd482(0x43e)]][_0xfd482(0x3d5)](_0x5e99f9=>!!_0x5e99f9);let _0x4faa2d,_0x23bb13;if(_0x21d137[_0xfd482(0x1d8)]){const _0x42c66c=this['_transformService'][_0xfd482(0x2cb)](_0x302c66,_0x21d137,!0x1);if(!_0x1f6364[_0xfd482(0x39a)](_0x42c66c))throw _0x42c66c[_0xfd482(0x343)];_0x4faa2d=_0x42c66c[_0xfd482(0x396)],_0x23bb13=_0x42c66c[_0xfd482(0x2b1)];}else _0x4faa2d=_0x302c66,_0x23bb13=[];let _0x3cbd06=this[_0xfd482(0x12c)];_0x4faa2d[_0xfd482(0x24b)](_0x57670e=>{const _0x351cb5=_0xfd482;let _0xc65798;if(_0x3cbd06['length']){const _0x7899f3=this[_0x351cb5(0x258)][_0x351cb5(0x436)](_0x57670e,_0x3cbd06);if(!_0x1f6364[_0x351cb5(0x180)](_0x7899f3))throw _0x7899f3['error'];_0xc65798=_0x7899f3[_0x351cb5(0x396)],_0x3cbd06=_0x7899f3[_0x351cb5(0x315)];}else _0xc65798=_0x57670e;this[_0x351cb5(0x189)](_0xc65798);}),this[_0xfd482(0x43e)]&&this['_incrementRevisionNumber'](),this[_0xfd482(0x233)]&&_0x23bb13[_0xfd482(0x1d8)]&&(_0x23bb13[0x0]['baseRev']=this[_0xfd482(0x1e2)]());let _0x2d4884;if(this['_awaitingChangeset']&&_0x3cbd06[_0xfd482(0x1d8)]!==0x0)_0x2d4884=this[_0xfd482(0x27f)]['createInstance'](_0x330ba1,this[_0xfd482(0x10f)],this[_0xfd482(0x49b)],_0x23bb13[0x0],_0x3cbd06,this[_0xfd482(0x2c7)]);else{if(this['_awaitingChangeset']&&_0x3cbd06[_0xfd482(0x1d8)]===0x0)_0x23bb13[0x0][_0xfd482(0x33f)]=this[_0xfd482(0x1e2)](),_0x2d4884=this['_injector'][_0xfd482(0x134)](_0x4c9e17,this[_0xfd482(0x10f)],this['type'],_0x23bb13[0x0],this[_0xfd482(0x2c7)]);else{if(_0x3cbd06[_0xfd482(0x1d8)]!==0x0){const _0x23b94b=this[_0xfd482(0x27f)][_0xfd482(0x134)](_0x43333f,this[_0xfd482(0x10f)],this['type'],_0x3cbd06,this['_handler']);_0x23b94b[_0xfd482(0x32e)](),_0x2d4884=_0x23b94b;}else _0x2d4884=this[_0xfd482(0x27f)][_0xfd482(0x134)](_0x2db095,this[_0xfd482(0x10f)],this[_0xfd482(0x49b)],this[_0xfd482(0x2c7)]);}}return _0x2d4884[_0xfd482(0x41b)](),_0x2d4884;}catch(_0x1cb7f4){return this[_0xfd482(0x195)][_0xfd482(0x343)](_0xfd482(0x18c),_0xfd482(0x496),_0x1cb7f4),this[_0xfd482(0x27f)][_0xfd482(0x134)](_0x1871ec,this[_0xfd482(0x10f)],this[_0xfd482(0x49b)],this[_0xfd482(0x233)],this[_0xfd482(0x12c)],this[_0xfd482(0x2c7)],!0x1);}}[_0x1000c0(0x113)](){const _0x926278=_0x1000c0;throw new Error(_0x926278(0x186));}[_0x1000c0(0x107)](_0x88dea1){const _0x28ed43=_0x1000c0;return this['_pendingMutations'][_0x28ed43(0x1a6)](_0x88dea1),this;}[_0x1000c0(0x269)](_0x1a817a){const _0x650c6a=_0x1000c0;return this[_0x650c6a(0x3c6)]['push'](_0x1a817a),this;}[_0x1000c0(0x246)](_0x466678){const _0x5db246=_0x1000c0;if(this['_awaitingChangeset'])return this[_0x5db246(0x43e)]=this[_0x5db246(0x233)],this[_0x5db246(0x233)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x1000c0(0x2f6)](_0x3c0ddc){const _0x4578a1=_0x1000c0;return this[_0x4578a1(0x497)](!!(_0x3c0ddc!=null&&_0x3c0ddc[_0x4578a1(0x2c2)]));}[_0x1000c0(0x130)](){const _0x22580f=_0x1000c0;return this[_0x22580f(0x27f)][_0x22580f(0x134)](_0x2e26d4,this[_0x22580f(0x10f)],this[_0x22580f(0x49b)],this[_0x22580f(0x233)],this[_0x22580f(0x12c)],this[_0x22580f(0x2c7)]);}[_0x1000c0(0x312)](){return this;}[_0x1000c0(0x497)](_0x3ce0ba){const _0x3f20a6=_0x1000c0;return this[_0x3f20a6(0x27f)]['createInstance'](_0x1871ec,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x3f20a6(0x12c)],this[_0x3f20a6(0x2c7)],_0x3ce0ba);}};_0x1b8aa3=_0x6e6839([_0x519360(0x7,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x519360(0x8,_0x1ea985[_0x1000c0(0x368)](_0x1f6364[_0x1000c0(0x39d)])),_0x519360(0x9,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x519360(0xa,_0x592d59['ILogService']),_0x519360(0xb,_0x592d59[_0x1000c0(0x131)]),_0x519360(0xc,_0x592d59['IUndoRedoService']),_0x519360(0xd,_0x1f6364[_0x1000c0(0x34e)])],_0x1b8aa3);function _0x304f8d(_0x56a781,_0x534ea2,_0x2f9c2a,_0xc48962,_0x10c5da,_0x5c0049){const _0x326e4a=_0x1000c0;return _0xc48962&&_0x10c5da['length']?_0x56a781[_0x326e4a(0x134)](_0x330ba1,_0x534ea2,_0x2f9c2a,_0xc48962,_0x10c5da,_0x5c0049):_0xc48962?_0x56a781['createInstance'](_0x4c9e17,_0x534ea2,_0x2f9c2a,_0xc48962,_0x5c0049):_0x10c5da[_0x326e4a(0x1d8)]?_0x56a781[_0x326e4a(0x134)](_0x43333f,_0x534ea2,_0x2f9c2a,_0x10c5da,_0x5c0049):_0x56a781[_0x326e4a(0x134)](_0x2db095,_0x534ea2,_0x2f9c2a,_0x5c0049);}var _0x2dc850=Object['defineProperty'],_0x145fd5=Object[_0x1000c0(0x2d4)],_0x4a339b=(_0x439ef6,_0x86e620,_0x442cef,_0x36e0ad)=>{const _0x2f35ba=_0x1000c0;for(var _0x2671e9=_0x36e0ad>0x1?void 0x0:_0x36e0ad?_0x145fd5(_0x86e620,_0x442cef):_0x86e620,_0x288423=_0x439ef6[_0x2f35ba(0x1d8)]-0x1,_0x3537e4;_0x288423>=0x0;_0x288423--)(_0x3537e4=_0x439ef6[_0x288423])&&(_0x2671e9=(_0x36e0ad?_0x3537e4(_0x86e620,_0x442cef,_0x2671e9):_0x3537e4(_0x2671e9))||_0x2671e9);return _0x36e0ad&&_0x2671e9&&_0x2dc850(_0x86e620,_0x442cef,_0x2671e9),_0x2671e9;},_0x3f6e97=(_0x36e5c1,_0x585fbc)=>(_0x32f498,_0x38b8d0)=>_0x585fbc(_0x32f498,_0x38b8d0,_0x36e5c1);_0x322d5b[_0x1000c0(0x200)]=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0x138da2,_0x305cbc,_0x4576c2){const _0xb890c3=_0x1000c0;super(),_0x40dfd7(this,_0xb890c3(0x2ce),new Map()),_0x40dfd7(this,_0xb890c3(0x38b),new _0x3c7a49[(_0xb890c3(0x33b))]()),(this['_injector']=_0x138da2,this[_0xb890c3(0x2c8)]=_0x305cbc,this[_0xb890c3(0x40b)]=_0x4576c2,this[_0xb890c3(0x224)]());}[_0x1000c0(0x36f)](){const _0x5666a3=_0x1000c0;super[_0x5666a3(0x36f)](),this['_entities'][_0x5666a3(0x24b)](_0x3c77a6=>_0x3c77a6[_0x5666a3(0x36f)]()),this['_entities'][_0x5666a3(0x370)]();}[_0x1000c0(0x278)](_0x986e10){const _0x4a0c12=_0x1000c0;var _0x123703;return(_0x123703=this[_0x4a0c12(0x2ce)][_0x4a0c12(0x1de)](_0x986e10))!=null?_0x123703:null;}[_0x1000c0(0x4a8)](_0x4bcdcb){const _0x1d660d=_0x1000c0,_0x3d44e2=this[_0x1d660d(0x278)](_0x4bcdcb);return _0x3d44e2?_0x3c7a49['of'](_0x3d44e2):this['_entityInit$'][_0x1d660d(0x161)](_0x39f29f[_0x1d660d(0x3d5)](_0x572091=>_0x572091[_0x1d660d(0x10f)]===_0x4bcdcb));}[_0x1000c0(0x224)](){const _0x2252ae=_0x1000c0;this['_univerInstanceService'][_0x2252ae(0x13e)](_0x592d59[_0x2252ae(0x1b5)][_0x2252ae(0x149)])['pipe'](_0x3c7a49[_0x2252ae(0x3ca)](this[_0x2252ae(0x338)]),_0x39f29f[_0x2252ae(0x204)](0x10))[_0x2252ae(0x42f)](async _0x1459a8=>{const _0x398533=_0x2252ae,_0x4d0914=_0x1459a8['getUnitId'](),_0x3d2f1c=await this[_0x398533(0x1c0)](_0x4d0914,_0x376736[_0x398533(0x149)]);this['_entities'][_0x398533(0x4c2)](_0x4d0914,_0x3d2f1c);}),this['_univerInstanceService'][_0x2252ae(0x13e)](_0x592d59[_0x2252ae(0x1b5)][_0x2252ae(0x119)])[_0x2252ae(0x161)](_0x3c7a49[_0x2252ae(0x3ca)](this[_0x2252ae(0x338)]),_0x39f29f[_0x2252ae(0x204)](0x10))[_0x2252ae(0x161)](_0x39f29f['filter'](_0x1eef55=>!_0x1eef55[_0x2252ae(0x270)]()['startsWith']('__')))[_0x2252ae(0x42f)](async _0x29b200=>{const _0x50352a=_0x2252ae,_0x6e22f2=_0x29b200[_0x50352a(0x270)](),_0x4edc34=await this[_0x50352a(0x1c0)](_0x6e22f2,_0x376736[_0x50352a(0x119)]);this[_0x50352a(0x2ce)]['set'](_0x6e22f2,_0x4edc34);}),_0x3c7a49[_0x2252ae(0x30f)](this[_0x2252ae(0x40b)][_0x2252ae(0x341)](_0x592d59[_0x2252ae(0x1b5)][_0x2252ae(0x149)]),this[_0x2252ae(0x40b)][_0x2252ae(0x341)](_0x592d59[_0x2252ae(0x1b5)][_0x2252ae(0x119)]))[_0x2252ae(0x161)](_0x3c7a49[_0x2252ae(0x3ca)](this['dispose$']))[_0x2252ae(0x42f)](_0x1700dc=>{const _0x58226a=_0x2252ae,_0x2041aa=_0x1700dc[_0x58226a(0x270)](),_0x39f7af=this[_0x58226a(0x2ce)][_0x58226a(0x1de)](_0x2041aa);_0x39f7af&&(_0x39f7af['dispose'](),this['_entities'][_0x58226a(0x234)](_0x2041aa));});}async[_0x1000c0(0x1c0)](_0xd03c38,_0x3cd292){const _0x3f1303=_0x1000c0,_0xe88a99=await this['_collabSessionService']['requireSession'](_0xd03c38),_0x4d3633=this[_0x3f1303(0x27f)][_0x3f1303(0x134)](this['_getCtorByUniverType'](_0x3cd292),_0xd03c38,_0x3cd292,_0xe88a99);return await _0x4d3633[_0x3f1303(0x150)](),this['_entityInit$'][_0x3f1303(0x117)](_0x4d3633),_0x4d3633;}[_0x1000c0(0x26a)](_0x29a81f){const _0x2f0a5f=_0x1000c0;switch(_0x29a81f){case _0x376736[_0x2f0a5f(0x119)]:return _0x297a49;case _0x376736[_0x2f0a5f(0x149)]:return _0x2f64ee;default:throw new Error(_0x2f0a5f(0x1c9)+_0x29a81f);}}},_0x322d5b[_0x1000c0(0x200)]=_0x4a339b([_0x592d59[_0x1000c0(0x47b)](_0x592d59[_0x1000c0(0x1c7)][_0x1000c0(0x17f)],_0x322d5b['CollaborationController']),_0x3f6e97(0x0,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x3f6e97(0x1,_0x1ea985['Inject'](_0x322d5b['CollaborationSessionService'])),_0x3f6e97(0x2,_0x592d59[_0x1000c0(0x305)])],_0x322d5b['CollaborationController']);let _0x5ce0f9=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0x1e40b0,_0x108777,_0x3dec8d,_0x52d718,_0x424561,_0x4e320a,_0x306da8,_0x5603b5,_0x1d9f76,_0x14d944,_0x33293b,_0x11e746,_0x5815af){const _0x112737=_0x1000c0;super(),_0x40dfd7(this,_0x112737(0x342),new _0x3c7a49['BehaviorSubject'](null)),_0x40dfd7(this,_0x112737(0x292),this[_0x112737(0x342)][_0x112737(0x32c)]()),_0x40dfd7(this,'_state'),_0x40dfd7(this,_0x112737(0x1eb),!0x1),_0x40dfd7(this,_0x112737(0x3a0),this[_0x112737(0x292)]['pipe'](_0x39f29f[_0x112737(0x1f5)](_0x3f7dd6=>_0x3f7dd6?_0x3f7dd6[_0x112737(0x32f)]:_0x3e6f91[_0x112737(0x4a5)]),_0x39f29f['shareReplay'](0x1))),_0x40dfd7(this,_0x112737(0x138),!0x1),_0x40dfd7(this,_0x112737(0x347),[]),(this[_0x112737(0x10f)]=_0x1e40b0,this[_0x112737(0x349)]=_0x108777,this[_0x112737(0x3ae)]=_0x3dec8d,this['_injector']=_0x52d718,this['_localCacheService']=_0x424561,this[_0x112737(0x3ab)]=_0x4e320a,this[_0x112737(0x2a1)]=_0x306da8,this[_0x112737(0x1e0)]=_0x5603b5,this[_0x112737(0x195)]=_0x1d9f76,this[_0x112737(0x401)]=_0x14d944,this[_0x112737(0x4ca)]=_0x33293b,this[_0x112737(0x147)]=_0x11e746,this[_0x112737(0x11f)]=_0x5815af);}get[_0x1000c0(0x115)](){const _0x990aca=_0x1000c0;return this[_0x990aca(0x257)];}async[_0x1000c0(0x150)](){const _0x237416=_0x1000c0;if(this[_0x237416(0x115)])throw new Error(_0x237416(0x2b5));await this['_init']();}[_0x1000c0(0x369)](){const _0x5549d1=_0x1000c0;return this['_collaborationPaused']=!0x0,_0x592d59[_0x5549d1(0x29f)](()=>{const _0xa17a22=_0x5549d1;this[_0xa17a22(0x1eb)]=!0x1,this[_0xa17a22(0x2a2)]();});}['_updateState'](_0x1ed908){const _0x3b587e=_0x1000c0;this[_0x3b587e(0x257)]=_0x1ed908,this[_0x3b587e(0x342)]['next'](_0x1ed908);}async[_0x1000c0(0x224)](){const _0x3b11da=_0x1000c0;var _0x10589f;return this[_0x3b11da(0x4c8)](await this[_0x3b11da(0x2bf)]()),this[_0x3b11da(0x11f)]&&((_0x10589f=this[_0x3b11da(0x11f)])==null||_0x10589f['editingUnit'](this['unitID']),this[_0x3b11da(0x215)](_0x592d59['toDisposable'](this[_0x3b11da(0x11f)]['getUnitStatus$'](this[_0x3b11da(0x10f)])['subscribe'](_0x17ef72=>{const _0x89e3db=_0x3b11da;this[_0x89e3db(0x195)][_0x89e3db(0x384)](_0x89e3db(0x1a0),_0x89e3db(0x3b7),_0x17ef72),_0x17ef72===_0x23c43c[_0x89e3db(0x105)]?(this['_messageService']['show']({'content':this[_0x89e3db(0x2a1)]['t'](_0x89e3db(0x372)),'type':_0x5063fc['MessageType'][_0x89e3db(0x173)]}),this[_0x89e3db(0x147)][_0x89e3db(0x20d)](new _0x5e4af3['WorkbookEditablePermission'](this['unitID'])['id'],!0x1)):this['_permissionService'][_0x89e3db(0x20d)](new _0x5e4af3[(_0x89e3db(0x304))](this[_0x89e3db(0x10f)])['id'],!0x0);})))),this['disposeWithMe'](_0x592d59[_0x3b11da(0x29f)](this[_0x3b11da(0x3ae)][_0x3b11da(0x2e0)][_0x3b11da(0x42f)](_0x3f86fd=>{const _0x263921=_0x3b11da;_0x3f86fd===_0x28f044[_0x263921(0x243)]?this[_0x263921(0x473)]():_0x3f86fd===_0x28f044[_0x263921(0x4a5)]&&this[_0x263921(0x15d)]();}))),this[_0x3b11da(0x215)](_0x592d59['toDisposable'](this['_session'][_0x3b11da(0x253)]['subscribe'](_0x358f5b=>{const _0x430431=_0x3b11da;try{switch(_0x358f5b[_0x430431(0x263)]){case _0x1f6364['CollaborationEvent'][_0x430431(0x274)]:{this[_0x430431(0x26e)](_0x1f6364['parseProtocolChangeset'](_0x358f5b[_0x430431(0x314)]));break;}case _0x1f6364[_0x430431(0x159)][_0x430431(0x1d5)]:{this[_0x430431(0x404)](_0x358f5b[_0x430431(0x314)]);break;}case _0x1f6364['CollaborationEvent']['CHANGESET_REJ']:{this[_0x430431(0x176)]();break;}case _0x1f6364[_0x430431(0x159)][_0x430431(0x1e7)]:{this[_0x430431(0x49d)](_0x358f5b[_0x430431(0x314)]['changesets'][_0x430431(0x1f5)](_0x4e8677=>_0x1f6364[_0x430431(0x469)](_0x4e8677)));break;}case _0x1f6364[_0x430431(0x159)][_0x430431(0x319)]:this[_0x430431(0x176)]({'isPermissionRej':!0x0});}}catch(_0x5892cf){throw console[_0x430431(0x343)](_0x430431(0x351),_0x5892cf),_0x5892cf;}}))),this[_0x3b11da(0x257)];}['_unlockTransition'](){const _0x13b37a=_0x1000c0;this[_0x13b37a(0x138)]=!0x1;}[_0x1000c0(0x44b)](){const _0x435f24=_0x1000c0;if(this[_0x435f24(0x138)])throw new Error(_0x435f24(0x487));this[_0x435f24(0x138)]=!0x0;}['_onLocalMutation'](_0x3f8ce7){const _0x7be4dc=_0x1000c0;this['_lockTransition'](),this['_updateState'](this['_state'][_0x7be4dc(0x107)](_0x3f8ce7)),this['_unlockTransition']();}[_0x1000c0(0x26e)](_0x16b740){const _0x4819d3=_0x1000c0;if(!(_0x16b740[_0x4819d3(0x2bd)]<=this[_0x4819d3(0x1e0)][_0x4819d3(0x335)](this['unitID']))){if(this[_0x4819d3(0x1eb)]){this['_remoteChangesetQueue'][_0x4819d3(0x1a6)](_0x16b740);return;}this[_0x4819d3(0x1c8)](_0x16b740);}}[_0x1000c0(0x2a2)](){const _0x4cbf39=_0x1000c0;this[_0x4cbf39(0x347)][_0x4cbf39(0x24b)](_0x2d5f9e=>this['_applyRemoteChangeset'](_0x2d5f9e)),this[_0x4cbf39(0x347)]=[];}[_0x1000c0(0x1c8)](_0x40d5a5){const _0x714a16=_0x1000c0,_0x4cd814=this['_compressMutationService'][_0x714a16(0x183)][_0x714a16(0x385)](this[_0x714a16(0x3ab)][_0x714a16(0x183)][_0x714a16(0x1e1)]()[_0x714a16(0x442)])(_0x40d5a5['mutations'],null)||_0x40d5a5['mutations'],_0x52a634={..._0x40d5a5,'mutations':_0x4cd814};this[_0x714a16(0x44b)](),this[_0x714a16(0x4c8)](this[_0x714a16(0x257)]['onRemoteChangeset'](_0x52a634)),this['_unlockTransition']();}[_0x1000c0(0x404)](_0x1b05da){const _0x37be93=_0x1000c0;this['_lockTransition'](),this[_0x37be93(0x4c8)](this[_0x37be93(0x257)][_0x37be93(0x246)](_0x1b05da)),this[_0x37be93(0x3b9)]();}['_onRemoteRejected'](_0x2ad0d2){const _0x3db58b=_0x1000c0;this[_0x3db58b(0x44b)](),this['_updateState'](this[_0x3db58b(0x257)][_0x3db58b(0x2f6)](_0x2ad0d2)),this['_unlockTransition']();}['_onFetchMissResult'](_0x326782){const _0x5645f9=_0x1000c0;if(!(this['_state']instanceof _0x1b8aa3))throw new TypeError(_0x5645f9(0x112));const _0x35dbc5=_0x326782['map'](_0x4c7688=>{const _0x5a5f9e=_0x5645f9,_0x54eee3=this[_0x5a5f9e(0x3ab)]['interceptor'][_0x5a5f9e(0x385)](this[_0x5a5f9e(0x3ab)][_0x5a5f9e(0x183)][_0x5a5f9e(0x1e1)]()['COMPRESS_MUTATION_APPLY'])(_0x4c7688[_0x5a5f9e(0x122)],null)||_0x4c7688['mutations'];return{..._0x4c7688,'mutations':_0x54eee3};});this['_lockTransition'](),this['_updateState'](this[_0x5645f9(0x257)]['onMissedChangesetFetched'](_0x35dbc5)),this[_0x5645f9(0x3b9)]();}[_0x1000c0(0x15d)](){const _0x250625=_0x1000c0;this['_lockTransition'](),this[_0x250625(0x4c8)](this[_0x250625(0x257)][_0x250625(0x130)]()),this['_unlockTransition']();}[_0x1000c0(0x473)](){const _0x4947a4=_0x1000c0;this[_0x4947a4(0x44b)](),this[_0x4947a4(0x4c8)](this[_0x4947a4(0x257)][_0x4947a4(0x312)]()),this[_0x4947a4(0x3b9)]();}async[_0x1000c0(0x2bf)](){return new Promise(_0x2edfc4=>{const _0x41e418=_0x492d;this[_0x41e418(0x3ae)][_0x41e418(0x2e0)]['pipe'](_0x39f29f[_0x41e418(0x13a)](0x1))[_0x41e418(0x42f)](async _0x5f4edc=>{const _0xd2108c=_0x41e418;_0x2edfc4(await this['_createInitialStateImpl'](_0x5f4edc===_0x28f044[_0xd2108c(0x243)]));});});}[_0x1000c0(0x212)](){const _0x22c86c=_0x1000c0,_0x13ec3a=this[_0x22c86c(0x10f)];return{'onStateChange':(_0x290cca,_0x1a08f1)=>{const _0x27abd4=_0x22c86c;if(_0x290cca!==this['_state'])throw new Error(_0x27abd4(0x255)+_0x290cca['status']+'\x0aAfter:\x20'+_0x1a08f1[_0x27abd4(0x32f)]+'\x0aCurrent:\x20'+this['_state'][_0x27abd4(0x32f)]);this[_0x27abd4(0x4c8)](_0x1a08f1);},'onSendChangeset':_0x5296e2=>{const _0x2a100d=_0x22c86c,_0xc5c05={'eventID':_0x1f6364[_0x2a100d(0x159)][_0x2a100d(0x311)],'data':{'unitID':_0x5296e2[_0x2a100d(0x10f)],'unitType':this[_0x2a100d(0x349)],'changeset':_0x5296e2,'memberID':this['_session']['getMemberID']()}};this['_session'][_0x2a100d(0x16a)](_0xc5c05,this[_0x2a100d(0x10f)]);},'onMissingChangesets':({from:_0x1e8908,to:_0xe04967})=>{const _0x3f964a=_0x22c86c;this['_logService']['debug'](_0x3f964a(0x1a0),_0x3f964a(0x153)+_0x1e8908+_0x3f964a(0x155)+_0xe04967);const _0xb10f={'eventID':_0x1f6364['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0x13ec3a,'unitType':this[_0x3f964a(0x349)],'from':_0x1e8908,'to':_0xe04967}};this[_0x3f964a(0x3ae)]['send'](_0xb10f,this[_0x3f964a(0x10f)]);}};}async[_0x1000c0(0x49a)](_0x20b2f0){const _0x1a5dc3=_0x1000c0;var _0x4fb387,_0xc2a445;const _0x21b478=await this[_0x1a5dc3(0x140)][_0x1a5dc3(0x239)](this[_0x1a5dc3(0x10f)]),_0x3dec93=(_0x4fb387=_0x21b478==null?void 0x0:_0x21b478[_0x1a5dc3(0x122)])!=null?_0x4fb387:[],_0x44624f=(_0xc2a445=_0x21b478==null?void 0x0:_0x21b478[_0x1a5dc3(0x3ba)])!=null?_0xc2a445:null,_0x40843b=this[_0x1a5dc3(0x10f)];try{this[_0x1a5dc3(0xf6)](_0x44624f,_0x3dec93);}catch(_0x59af59){this[_0x1a5dc3(0x195)]['error'](_0x59af59);}const _0x43b8e6=this[_0x1a5dc3(0x212)]();if(_0x20b2f0){const _0x146dcc=_0x304f8d(this['_injector'],_0x40843b,this['_type'],_0x44624f,_0x3dec93,_0x43b8e6);return _0x146dcc instanceof _0x43333f?_0x146dcc[_0x1a5dc3(0x32e)]():(_0x146dcc instanceof _0x330ba1||_0x146dcc instanceof _0x4c9e17)&&_0x146dcc['resend'](),_0x146dcc;}return this['_injector'][_0x1a5dc3(0x134)](_0x2e26d4,_0x40843b,this[_0x1a5dc3(0x349)],_0x44624f,_0x3dec93,_0x43b8e6);}[_0x1000c0(0xf6)](_0x27fa54,_0xcd3281){const _0x51da93=_0x1000c0;var _0x527ef0,_0x14a652;const _0x6445a4=this[_0x51da93(0x3ab)][_0x51da93(0x183)][_0x51da93(0x385)](this['_compressMutationService']['interceptor'][_0x51da93(0x1e1)]()['COMPRESS_MUTATION_APPLY']);(_0x527ef0=_0x6445a4((_0x27fa54==null?void 0x0:_0x27fa54['mutations'])||[],null))==null||_0x527ef0[_0x51da93(0x24b)](_0x440155=>this[_0x51da93(0x401)][_0x51da93(0x19e)](_0x440155['id'],_0x440155[_0x51da93(0x1ec)])),(_0x14a652=_0x6445a4(_0xcd3281||[],null))==null||_0x14a652['forEach'](_0x288ff3=>this[_0x51da93(0x401)][_0x51da93(0x19e)](_0x288ff3['id'],_0x288ff3[_0x51da93(0x1ec)]));}};_0x5ce0f9=_0x4a339b([_0x3f6e97(0x3,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x3f6e97(0x4,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x3f6e97(0x5,_0x1ea985['Inject'](_0x1f6364['CompressMutationService'])),_0x3f6e97(0x6,_0x1ea985[_0x1000c0(0x368)](_0x592d59[_0x1000c0(0x279)])),_0x3f6e97(0x7,_0x1ea985[_0x1000c0(0x368)](_0x1f6364[_0x1000c0(0x39d)])),_0x3f6e97(0x8,_0x592d59['ILogService']),_0x3f6e97(0x9,_0x592d59[_0x1000c0(0x131)]),_0x3f6e97(0xa,_0x2c52d3[_0x1000c0(0x411)]),_0x3f6e97(0xb,_0x592d59[_0x1000c0(0x378)]),_0x3f6e97(0xc,_0x1ea985[_0x1000c0(0x49e)](_0x1572dd))],_0x5ce0f9);let _0x297a49=class extends _0x5ce0f9{constructor(_0x2c77dd,_0x52080b,_0x23b02b,_0x5ce13b,_0x450662,_0x3db2d6,_0x2409e1,_0x1a47e0,_0x11b286,_0xf6109,_0xcace73,_0x2ea7a0,_0x466890,_0x487500,_0x4ce19a,_0xa83af7,_0x15a91d){const _0x7dbafb=_0x1000c0;super(_0x2c77dd,_0x52080b,_0x23b02b,_0x5ce13b,_0x450662,_0x3db2d6,_0x2409e1,_0x1a47e0,_0x466890,_0x487500,_0x4ce19a,_0xa83af7,_0x15a91d),this[_0x7dbafb(0x10f)]=_0x2c77dd,this[_0x7dbafb(0x49b)]=_0x52080b,this[_0x7dbafb(0x129)]=_0x23b02b,this['_docStateChangeManagerService']=_0x11b286,this[_0x7dbafb(0x177)]=_0xf6109,this[_0x7dbafb(0x1ea)]=_0xcace73,this[_0x7dbafb(0x23c)]=_0x2ea7a0;}[_0x1000c0(0x212)](){const _0x304753=_0x1000c0,_0x3b10ae=super['_createHandler']();return _0x3b10ae[_0x304753(0x19a)]=_0x1b87c8=>this[_0x304753(0x177)][_0x304753(0x3fe)](_0x1b87c8),_0x3b10ae[_0x304753(0x350)]=_0x1afd50=>this[_0x304753(0x1ea)][_0x304753(0x205)](_0x1afd50),_0x3b10ae[_0x304753(0x289)]=_0x4ae30e=>this['_docSyncEditingCollabCursorService'][_0x304753(0x43f)](_0x4ae30e),_0x3b10ae[_0x304753(0x454)]=_0x1fb03f=>this[_0x304753(0x177)][_0x304753(0x322)](_0x1fb03f),_0x3b10ae;}async[_0x1000c0(0x224)](){const _0x753183=_0x1000c0,_0x3efd3e=await super[_0x753183(0x224)]();return this[_0x753183(0x438)][_0x753183(0x394)][_0x753183(0x161)](_0x3c7a49['takeUntil'](this['dispose$']))['subscribe'](_0x533e39=>{const _0x166797=_0x753183;if(_0x533e39==null)return;const {unitId:_0x40b389,redoState:_0x5e92a7,commandId:_0x5693d8}=_0x533e39;if(_0x40b389!==this[_0x166797(0x10f)])return;const _0x323501={'id':_0x5693d8,'type':_0x592d59[_0x166797(0x137)][_0x166797(0x306)],'params':{'unitId':_0x40b389,'actions':_0x5e92a7[_0x166797(0x24f)],'textRanges':null}};this[_0x166797(0x24d)](_0x323501);}),_0x3efd3e;}};_0x297a49=_0x4a339b([_0x3f6e97(0x3,_0x1ea985['Inject'](_0x1ea985[_0x1000c0(0x3ee)])),_0x3f6e97(0x4,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x3f6e97(0x5,_0x1ea985[_0x1000c0(0x368)](_0x1f6364[_0x1000c0(0x458)])),_0x3f6e97(0x6,_0x1ea985[_0x1000c0(0x368)](_0x592d59[_0x1000c0(0x279)])),_0x3f6e97(0x7,_0x1ea985[_0x1000c0(0x368)](_0x1f6364[_0x1000c0(0x39d)])),_0x3f6e97(0x8,_0x1ea985['Inject'](_0x30cc49[_0x1000c0(0x45d)])),_0x3f6e97(0x9,_0x1ea985['Inject'](_0x38f511)),_0x3f6e97(0xa,_0x1ea985[_0x1000c0(0x368)](_0x12dda8)),_0x3f6e97(0xb,_0x1ea985[_0x1000c0(0x368)](_0x148177)),_0x3f6e97(0xc,_0x592d59[_0x1000c0(0x1ef)]),_0x3f6e97(0xd,_0x592d59[_0x1000c0(0x131)]),_0x3f6e97(0xe,_0x2c52d3['IMessageService']),_0x3f6e97(0xf,_0x592d59[_0x1000c0(0x378)]),_0x3f6e97(0x10,_0x1ea985[_0x1000c0(0x49e)](_0x1572dd))],_0x297a49);let _0x2f64ee=class extends _0x5ce0f9{constructor(_0x4f1cda,_0x1b02bd,_0x4c219e,_0x3ccfd3,_0x2273bc,_0x9ee289,_0x29cc4c,_0x278fcd,_0x1ef8ec,_0x13b525,_0x52fa1e,_0x1d5ea6,_0x169e83,_0x5d6686){const _0xeab006=_0x1000c0;super(_0x4f1cda,_0x1b02bd,_0x4c219e,_0x3ccfd3,_0x2273bc,_0x9ee289,_0x29cc4c,_0x278fcd,_0x13b525,_0x52fa1e,_0x1d5ea6,_0x169e83,_0x5d6686),this[_0xeab006(0x10f)]=_0x4f1cda,this[_0xeab006(0x49b)]=_0x1b02bd,this['session']=_0x4c219e,this[_0xeab006(0x19c)]=_0x1ef8ec;}[_0x1000c0(0x212)](){const _0x512644=_0x1000c0,_0x5218b8=super[_0x512644(0x212)]();return _0x5218b8[_0x512644(0x350)]=_0xb16e79=>this['_sheetTransformSelectionsService'][_0x512644(0x205)](_0xb16e79),_0x5218b8;}async[_0x1000c0(0x224)](){const _0xced038=_0x1000c0,_0x58487f=await super[_0xced038(0x224)]();return this[_0xced038(0x215)](this[_0xced038(0x401)]['onCommandExecuted']((_0x547863,_0x3a5d04)=>{const _0x5d7ff4=_0xced038;if(_0x547863[_0x5d7ff4(0x49b)]!==_0x592d59[_0x5d7ff4(0x137)][_0x5d7ff4(0x306)]||_0x3a5d04!=null&&_0x3a5d04[_0x5d7ff4(0x35d)]||_0x3a5d04!=null&&_0x3a5d04['onlyLocal'])return;const _0x52cf70=_0x547863[_0x5d7ff4(0x1ec)];if((_0x52cf70==null?void 0x0:_0x52cf70[_0x5d7ff4(0x29b)])!==this[_0x5d7ff4(0x10f)])return;const _0x15413a=_0x547863,_0x51ebcf=this[_0x5d7ff4(0x3ab)][_0x5d7ff4(0x183)][_0x5d7ff4(0x385)](this[_0x5d7ff4(0x3ab)][_0x5d7ff4(0x183)]['getInterceptPoints']()[_0x5d7ff4(0x1e8)])([_0x15413a],null)||[_0x15413a];this[_0x5d7ff4(0x24d)](_0x51ebcf[0x0]);})),_0x58487f;}};_0x2f64ee=_0x4a339b([_0x3f6e97(0x3,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x3f6e97(0x4,_0x1ea985['Inject'](_0x322d5b[_0x1000c0(0x24c)])),_0x3f6e97(0x5,_0x1ea985['Inject'](_0x1f6364['CompressMutationService'])),_0x3f6e97(0x6,_0x1ea985[_0x1000c0(0x368)](_0x592d59[_0x1000c0(0x279)])),_0x3f6e97(0x7,_0x1ea985[_0x1000c0(0x368)](_0x1f6364['RevisionService'])),_0x3f6e97(0x8,_0x1ea985[_0x1000c0(0x368)](_0x20fcca)),_0x3f6e97(0x9,_0x592d59[_0x1000c0(0x1ef)]),_0x3f6e97(0xa,_0x592d59[_0x1000c0(0x131)]),_0x3f6e97(0xb,_0x2c52d3[_0x1000c0(0x411)]),_0x3f6e97(0xc,_0x592d59[_0x1000c0(0x378)]),_0x3f6e97(0xd,_0x1ea985['Optional'](_0x1572dd))],_0x2f64ee);const _0x3c3633=[_0x1000c0(0x2cf),_0x1000c0(0x167),'verdancy600','red300','blue400',_0x1000c0(0x397)];class _0x3c16e5 extends _0x592d59[_0x1000c0(0x450)]{constructor(){const _0x6b5889=_0x1000c0;super(...arguments),_0x40dfd7(this,_0x6b5889(0x44f),new Map()),_0x40dfd7(this,_0x6b5889(0x14e),0x0);}[_0x1000c0(0x1b3)](_0x207163){const _0x3fc1b1=_0x1000c0;if(this[_0x3fc1b1(0x44f)]['has'](_0x207163))return this[_0x3fc1b1(0x44f)][_0x3fc1b1(0x1de)](_0x207163);const _0x1af538=_0x3c3633[this[_0x3fc1b1(0x14e)]];return this[_0x3fc1b1(0x14e)]=(this[_0x3fc1b1(0x14e)]+0x1)%_0x3c3633[_0x3fc1b1(0x1d8)],this[_0x3fc1b1(0x44f)][_0x3fc1b1(0x4c2)](_0x207163,_0x1af538),_0x1af538;}}var _0x2d4a4f=Object[_0x1000c0(0x1a1)],_0x41363a=Object[_0x1000c0(0x2d4)],_0x155778=(_0x2d937b,_0x2cc78f,_0x334214,_0x30fb2c)=>{for(var _0x1b83e9=_0x30fb2c>0x1?void 0x0:_0x30fb2c?_0x41363a(_0x2cc78f,_0x334214):_0x2cc78f,_0x14acb1=_0x2d937b['length']-0x1,_0x1e158a;_0x14acb1>=0x0;_0x14acb1--)(_0x1e158a=_0x2d937b[_0x14acb1])&&(_0x1b83e9=(_0x30fb2c?_0x1e158a(_0x2cc78f,_0x334214,_0x1b83e9):_0x1e158a(_0x1b83e9))||_0x1b83e9);return _0x30fb2c&&_0x1b83e9&&_0x2d4a4f(_0x2cc78f,_0x334214,_0x1b83e9),_0x1b83e9;},_0x4267db=(_0x5e067f,_0xb78c80)=>(_0x399a80,_0x138b3e)=>_0xb78c80(_0x399a80,_0x138b3e,_0x5e067f);const _0x4ef0b4=0x12c,_0x21eafd=0x64,_0x4d21de=()=>{let _0x1fb71d=[],_0x30fc76=!0x1;return _0x173a7b=>{const _0x4e055c=_0x492d;_0x1fb71d[_0x4e055c(0x1a6)](_0x173a7b),_0x30fc76||(_0x30fc76=!0x0,setTimeout(()=>{const _0x384c46=_0x4e055c;_0x1fb71d[_0x384c46(0x24b)](_0x137b11=>_0x137b11()),_0x1fb71d=[],_0x30fc76=!0x1;}));};};let _0xe51747=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0xd5fcb1,_0x15faa5,_0xc92e8a,_0xeeef91,_0x3e97c7,_0x49ad4e,_0x2e2637,_0x1ff06e){const _0x1f0fcf=_0x1000c0;super(),_0x40dfd7(this,_0x1f0fcf(0x37e),!0x1),_0x40dfd7(this,'_init',!0x1),_0x40dfd7(this,'_cursorInfo$',new _0x3c7a49['BehaviorSubject'](new Map())),_0x40dfd7(this,_0x1f0fcf(0x1ee),this[_0x1f0fcf(0x31d)][_0x1f0fcf(0x32c)]()),_0x40dfd7(this,_0x1f0fcf(0x40c),new _0x3c7a49[(_0x1f0fcf(0x35f))]([])),_0x40dfd7(this,'roomMembers$',this[_0x1f0fcf(0x40c)]['pipe'](_0x3c7a49['debounceTime'](_0x4ef0b4))),_0x40dfd7(this,'_updateLocalCursor',_0x5e5cd3((_0xf3a66e,_0x1607a5)=>{const _0x4ad294=_0x1f0fcf,_0x44c1f8={'eventID':_0x1f6364[_0x4ad294(0x159)][_0x4ad294(0x157)],'data':{'unitID':this[_0x4ad294(0x10f)],'memberID':this[_0x4ad294(0x3ae)][_0x4ad294(0x35c)](),'selection':_0x475fb6[_0x4ad294(0x35a)](_0xf3a66e,_0x1607a5[_0x4ad294(0x3ff)])}};this[_0x4ad294(0x3ae)][_0x4ad294(0x16a)](_0x44c1f8,this[_0x4ad294(0x10f)]);},_0x21eafd)),(this[_0x1f0fcf(0x10f)]=_0xd5fcb1,this['_session']=_0x15faa5,this[_0x1f0fcf(0x27f)]=_0xc92e8a,this[_0x1f0fcf(0x3e4)]=_0xeeef91,this[_0x1f0fcf(0x29e)]=_0x3e97c7,this[_0x1f0fcf(0x40b)]=_0x49ad4e,this['_commandService']=_0x2e2637,this[_0x1f0fcf(0x431)]=_0x1ff06e);}get[_0x1000c0(0x483)](){const _0x1c15f9=_0x1000c0;return this[_0x1c15f9(0x31d)]['getValue']();}get['roomMembers'](){const _0x19e482=_0x1000c0;return this['_roomMembers$'][_0x19e482(0x21e)]();}[_0x1000c0(0x36f)](){const _0x509d27=_0x1000c0;super['dispose'](),this[_0x509d27(0x31d)][_0x509d27(0x117)](new Map()),this[_0x509d27(0x31d)]['complete'](),this[_0x509d27(0x40c)][_0x509d27(0x117)]([]),this['_roomMembers$'][_0x509d27(0x4b5)]();}[_0x1000c0(0x150)](){const _0x3ebf6b=_0x1000c0;this['_init']||(this['_init']=!0x0,this[_0x3ebf6b(0x3ae)][_0x3ebf6b(0x2e0)]['pipe'](_0x3c7a49['takeUntil'](this[_0x3ebf6b(0x338)]))[_0x3ebf6b(0x42f)](_0x30d637=>{const _0x4a858b=_0x3ebf6b;_0x30d637===_0x28f044[_0x4a858b(0x243)]?this[_0x4a858b(0x473)]():this[_0x4a858b(0x15d)]();}),this[_0x3ebf6b(0x3ae)][_0x3ebf6b(0x253)][_0x3ebf6b(0x161)](_0x3c7a49[_0x3ebf6b(0x3ca)](this[_0x3ebf6b(0x338)]))[_0x3ebf6b(0x42f)](_0x6c024f=>{const _0x49e83a=_0x3ebf6b,_0xa8fd6d=_0x6c024f[_0x49e83a(0x263)];_0xa8fd6d===_0x1f6364[_0x49e83a(0x159)][_0x49e83a(0x157)]&&this['_onCursorUpdate'](_0x6c024f),_0xa8fd6d===_0x1f6364[_0x49e83a(0x159)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x6c024f);}),this[_0x3ebf6b(0x2ac)](),this['disposeWithMe'](this[_0x3ebf6b(0x401)][_0x3ebf6b(0x178)](_0x5a3578=>{const _0x5d6a1e=_0x3ebf6b;if(this['_online']&&_0x5a3578['id']===_0x5e4af3[_0x5d6a1e(0x4b6)]['id']&&_0x5a3578[_0x5d6a1e(0x1ec)]['unitId']===this[_0x5d6a1e(0x10f)]){const _0x3d6b2c=_0x5a3578['params'];this['_updateLocalCursor'](_0x3d6b2c[_0x5d6a1e(0x34f)],_0x3d6b2c[_0x5d6a1e(0x21d)][0x0]);}})));}[_0x1000c0(0x3d8)](_0x5d53ab){const _0x1934c6=_0x1000c0;var _0xf65a68,_0x473396;const {memberID:_0x1f08dd,selection:_0x4232ab}=_0x5d53ab[_0x1934c6(0x314)],{sheetName:_0xc34fb7,range:_0x550e8b}=_0x475fb6[_0x1934c6(0x2d9)](_0x4232ab),_0x4ec478={'name':(_0x473396=(_0xf65a68=this['_memberService'][_0x1934c6(0x1cc)](this[_0x1934c6(0x10f)],_0x1f08dd))==null?void 0x0:_0xf65a68[_0x1934c6(0x3e7)])!=null?_0x473396:_0x1934c6(0x2d0),'range':this['_getMergeRange'](_0xc34fb7,_0x550e8b),'sheetID':_0xc34fb7,'color':this['_colorAssignService'][_0x1934c6(0x1b3)](_0x1f08dd),'selection':_0x4232ab},_0x545442=this[_0x1934c6(0x483)];_0x545442[_0x1934c6(0x4c2)](_0x1f08dd,_0x4ec478),this[_0x1934c6(0x31d)][_0x1934c6(0x117)](_0x545442);}[_0x1000c0(0x37d)](_0x1b005c){const _0x26e60b=_0x1000c0,{memberID:_0x471d7d}=_0x1b005c['data'],_0x10a412=this['cursorInfo'];_0x10a412[_0x26e60b(0x234)](_0x471d7d),this[_0x26e60b(0x31d)][_0x26e60b(0x117)](_0x10a412);}['_getMergeRange'](_0x536c7d,_0x29355a){const _0x168f9f=_0x1000c0;var _0x177a19,_0x5d8564;const _0x1428e1=(_0x5d8564=(_0x177a19=this[_0x168f9f(0x40b)][_0x168f9f(0x332)](this[_0x168f9f(0x10f)]))==null?void 0x0:_0x177a19[_0x168f9f(0x1a9)](_0x536c7d))==null?void 0x0:_0x5d8564['getMergeData']();return(_0x1428e1==null?void 0x0:_0x1428e1['find'](_0x44e740=>_0x592d59['Rectangle'][_0x168f9f(0x339)](_0x44e740,_0x29355a)))||_0x29355a;}['_onRefRangeChange'](){const _0x1392da=_0x1000c0,_0x944d7=new _0x592d59['DisposableCollection'](),_0x22b9c1=_0x4d21de(),_0x1b8dad=()=>{const _0xaa26bc=_0x492d;_0x944d7[_0xaa26bc(0x36f)]();const _0x44d6a1=(_0x376ed4,_0x131eef,_0x44378a,_0x1a847f)=>{const _0x2325b0=_0xaa26bc;let _0x5aa981=[];switch(_0x376ed4['id']){case _0x5e4af3[_0x2325b0(0x3e3)][_0x2325b0(0x3cd)]:{_0x5aa981=_0x5e4af3[_0x2325b0(0x16f)](_0x376ed4,_0x1a847f);break;}case _0x5e4af3['EffectRefRangId'][_0x2325b0(0x184)]:{_0x5aa981=_0x5e4af3[_0x2325b0(0x2db)](_0x376ed4,_0x1a847f);break;}case _0x5e4af3['EffectRefRangId'][_0x2325b0(0x1a7)]:{_0x5aa981=_0x5e4af3[_0x2325b0(0x42e)](_0x376ed4,_0x1a847f);break;}case _0x5e4af3['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x5aa981=_0x5e4af3['handleInsertRangeMoveDown'](_0x376ed4,_0x1a847f);break;}case _0x5e4af3[_0x2325b0(0x3e3)][_0x2325b0(0x4d8)]:{_0x5aa981=_0x5e4af3[_0x2325b0(0x1e9)](_0x376ed4,_0x1a847f);break;}case _0x5e4af3[_0x2325b0(0x3e3)][_0x2325b0(0x169)]:{_0x5aa981=_0x5e4af3['handleInsertRow'](_0x376ed4,_0x1a847f);break;}case _0x5e4af3[_0x2325b0(0x3e3)][_0x2325b0(0x365)]:{_0x5aa981=_0x5e4af3[_0x2325b0(0x1d0)](_0x376ed4,_0x1a847f);break;}case _0x5e4af3[_0x2325b0(0x3e3)][_0x2325b0(0x4b9)]:{_0x5aa981=_0x5e4af3[_0x2325b0(0x3f0)](_0x376ed4,_0x1a847f);break;}case _0x5e4af3[_0x2325b0(0x3e3)][_0x2325b0(0x1cb)]:{_0x5aa981=_0x5e4af3[_0x2325b0(0x261)](_0x376ed4,_0x1a847f);break;}}const _0x4074f5=_0x5e4af3[_0x2325b0(0x1aa)](_0x5aa981,_0x1a847f),_0x3fb7ef=this[_0x2325b0(0x483)]['get'](_0x131eef);if(_0x3fb7ef&&_0x4074f5){const _0x137bb7={..._0x3fb7ef,'range':_0x4074f5};this[_0x2325b0(0x483)]['set'](_0x131eef,_0x137bb7),_0x22b9c1(()=>{const _0x3f51d3=_0x2325b0,_0x1dcbca=this[_0x3f51d3(0x431)][_0x3f51d3(0x345)](_0x4074f5,_0x438b24=>(_0x1dcbca['dispose'](),_0x44d6a1(_0x438b24,_0x131eef,_0x44378a,_0x4074f5)));_0x944d7[_0x3f51d3(0x290)](_0x1dcbca);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0xaa26bc(0x24b)]((_0xd380b,_0x5dc3f7)=>{const _0x2932a4=_0xaa26bc,{range:_0x2b1201,sheetID:_0x9b5e0a}=_0xd380b,_0xda224e=this[_0x2932a4(0x431)]['registerRefRange'](_0x2b1201,_0x74d1c5=>(_0xda224e[_0x2932a4(0x36f)](),_0x44d6a1(_0x74d1c5,_0x5dc3f7,_0x9b5e0a,_0x2b1201)));_0x944d7[_0x2932a4(0x290)](_0xda224e);});};this[_0x1392da(0x215)](_0x592d59[_0x1392da(0x29f)](this[_0x1392da(0x31d)][_0x1392da(0x42f)](()=>{_0x1b8dad();})));}[_0x1000c0(0x473)](){const _0x518f76=_0x1000c0;var _0x2298e0,_0x13027e;if(this[_0x518f76(0x37e)]=!0x0,((_0x2298e0=this[_0x518f76(0x40b)]['getFocusedUnit']())==null?void 0x0:_0x2298e0[_0x518f76(0x270)]())!==this[_0x518f76(0x10f)])return;const _0x533a57=(_0x13027e=this[_0x518f76(0x27f)]['get'](_0x5e4af3[_0x518f76(0x471)])[_0x518f76(0x3bb)]())==null?void 0x0:_0x13027e[0x0],_0x4287de=this['_univerInstanceService']['getCurrentUnitForType'](_0x592d59['UniverInstanceType'][_0x518f76(0x149)])[_0x518f76(0x3c5)]();_0x533a57&&_0x4287de&&this[_0x518f76(0x468)](_0x4287de[_0x518f76(0x449)](),_0x533a57);}[_0x1000c0(0x15d)](){const _0x3799df=_0x1000c0;this[_0x3799df(0x37e)]=!0x1;}};_0xe51747=_0x155778([_0x4267db(0x2,_0x1ea985['Inject'](_0x1ea985[_0x1000c0(0x3ee)])),_0x4267db(0x3,_0x1ea985['Inject'](_0x3c16e5)),_0x4267db(0x4,_0x1ea985[_0x1000c0(0x368)](_0x2539c6)),_0x4267db(0x5,_0x592d59[_0x1000c0(0x305)]),_0x4267db(0x6,_0x592d59[_0x1000c0(0x131)]),_0x4267db(0x7,_0x1ea985['Inject'](_0x5e4af3[_0x1000c0(0x45a)]))],_0xe51747);var _0x47516f=Object[_0x1000c0(0x1a1)],_0x337b10=Object['getOwnPropertyDescriptor'],_0x266cfa=(_0x5db51f,_0x17b199,_0x374952,_0x5d8b6b)=>{const _0x372bbd=_0x1000c0;for(var _0xf36936=_0x5d8b6b>0x1?void 0x0:_0x5d8b6b?_0x337b10(_0x17b199,_0x374952):_0x17b199,_0x5a2cf1=_0x5db51f[_0x372bbd(0x1d8)]-0x1,_0x5cfca5;_0x5a2cf1>=0x0;_0x5a2cf1--)(_0x5cfca5=_0x5db51f[_0x5a2cf1])&&(_0xf36936=(_0x5d8b6b?_0x5cfca5(_0x17b199,_0x374952,_0xf36936):_0x5cfca5(_0xf36936))||_0xf36936);return _0x5d8b6b&&_0xf36936&&_0x47516f(_0x17b199,_0x374952,_0xf36936),_0xf36936;},_0x357b8a=(_0x4177c6,_0x52fcd2)=>(_0x540931,_0x3b8ab9)=>_0x52fcd2(_0x540931,_0x3b8ab9,_0x4177c6);const _0x4cba83=0x12c,_0x36c9e1=0x64;let _0x185328=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0x243229,_0x32d829,_0x2f4a31,_0x47da7d,_0x67534,_0x43588f,_0x5a4b2a,_0x56e04b,_0x245a00){const _0x3df9b0=_0x1000c0;super(),_0x40dfd7(this,_0x3df9b0(0x37e),!0x1),_0x40dfd7(this,'_init',!0x1),_0x40dfd7(this,_0x3df9b0(0x31d),new _0x3c7a49[(_0x3df9b0(0x35f))](new Map())),_0x40dfd7(this,'cursorInfo$',this[_0x3df9b0(0x31d)][_0x3df9b0(0x32c)]()),_0x40dfd7(this,_0x3df9b0(0x40c),new _0x3c7a49[(_0x3df9b0(0x35f))]([])),_0x40dfd7(this,'roomMembers$',this[_0x3df9b0(0x40c)][_0x3df9b0(0x161)](_0x3c7a49[_0x3df9b0(0x37b)](_0x4cba83))),_0x40dfd7(this,_0x3df9b0(0x468),_0x5e5cd3(_0x19a9c2=>{const _0x45ad6c=_0x3df9b0,_0x5a9ee9={'eventID':_0x1f6364[_0x45ad6c(0x159)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x45ad6c(0x10f)],'memberID':this[_0x45ad6c(0x3ae)]['getMemberID'](),'selection':_0x3da729(_0x19a9c2)}};this[_0x45ad6c(0x3ae)][_0x45ad6c(0x16a)](_0x5a9ee9,this[_0x45ad6c(0x10f)]);},_0x36c9e1)),(this['unitID']=_0x243229,this['_session']=_0x32d829,this[_0x3df9b0(0x27f)]=_0x2f4a31,this[_0x3df9b0(0x3e4)]=_0x47da7d,this[_0x3df9b0(0x29e)]=_0x67534,this['_syncEditingCollabCursorService']=_0x43588f,this[_0x3df9b0(0x258)]=_0x5a4b2a,this['_univerInstanceService']=_0x56e04b,this['_commandService']=_0x245a00);}get['cursorInfo'](){const _0x277a77=_0x1000c0;return this[_0x277a77(0x31d)]['getValue']();}get[_0x1000c0(0x2a7)](){const _0xdc9959=_0x1000c0;return this[_0xdc9959(0x40c)]['getValue']();}[_0x1000c0(0x36f)](){const _0x5294c3=_0x1000c0;super[_0x5294c3(0x36f)](),this[_0x5294c3(0x31d)][_0x5294c3(0x117)](new Map()),this[_0x5294c3(0x31d)][_0x5294c3(0x4b5)](),this[_0x5294c3(0x40c)][_0x5294c3(0x117)]([]),this[_0x5294c3(0x40c)]['complete']();}[_0x1000c0(0x150)](){const _0x393d0f=_0x1000c0;this[_0x393d0f(0x224)]||(this[_0x393d0f(0x224)]=!0x0,this['_session'][_0x393d0f(0x2e0)][_0x393d0f(0x161)](_0x3c7a49['takeUntil'](this[_0x393d0f(0x338)]))[_0x393d0f(0x42f)](_0x4e7520=>{const _0x58edf5=_0x393d0f;_0x4e7520===_0x28f044[_0x58edf5(0x243)]?this[_0x58edf5(0x473)]():this[_0x58edf5(0x15d)]();}),this[_0x393d0f(0x3ae)][_0x393d0f(0x253)][_0x393d0f(0x161)](_0x3c7a49[_0x393d0f(0x3ca)](this[_0x393d0f(0x338)]))[_0x393d0f(0x42f)](_0x4bc98e=>{const _0x391fba=_0x393d0f,_0x4ee902=_0x4bc98e[_0x391fba(0x263)];_0x4ee902===_0x1f6364[_0x391fba(0x159)][_0x391fba(0x157)]&&this[_0x391fba(0x3d8)](_0x4bc98e),_0x4ee902===_0x1f6364[_0x391fba(0x159)][_0x391fba(0x133)]&&this[_0x391fba(0x37d)](_0x4bc98e);}),this[_0x393d0f(0x215)](this[_0x393d0f(0x401)][_0x393d0f(0x178)](_0x497159=>{const _0xcd10e3=_0x393d0f,_0x32ec81=_0x497159[_0xcd10e3(0x1ec)];_0x32ec81!=null&&this[_0xcd10e3(0x37e)]&&_0x497159['id']===_0x30cc49[_0xcd10e3(0x3df)]['id']&&_0x32ec81['unitId']===this[_0xcd10e3(0x10f)]&&_0x32ec81[_0xcd10e3(0x44a)]===!0x1&&this['_updateLocalCursor'](_0x32ec81[_0xcd10e3(0x1f1)]);})),this[_0x393d0f(0x260)][_0x393d0f(0x479)][_0x393d0f(0x161)](_0x3c7a49['takeUntil'](this[_0x393d0f(0x338)]))['subscribe'](_0x3b1eae=>{const _0x3370b4=_0x393d0f;if((_0x3b1eae==null?void 0x0:_0x3b1eae[_0x3370b4(0x10f)])!==this[_0x3370b4(0x10f)])return;const _0x2a88a2={'eventID':_0x1f6364[_0x3370b4(0x159)][_0x3370b4(0x157)],'data':_0x3b1eae};this[_0x3370b4(0x3d8)](_0x2a88a2);}),this['disposeWithMe'](this['_commandService'][_0x393d0f(0x178)](_0x484621=>{const _0x5a1aa8=_0x393d0f;if(_0x484621[_0x5a1aa8(0x1ec)]==null)return;const _0x3c705a=_0x484621[_0x5a1aa8(0x1ec)];if(_0x484621['id']!==_0x30cc49[_0x5a1aa8(0x48b)]['id']||_0x3c705a[_0x5a1aa8(0x29b)]!==this[_0x5a1aa8(0x10f)])return;const _0x16dd1b={'id':_0x5a1aa8(0x236),'params':_0x3c705a},_0x3f807b=this[_0x5a1aa8(0x483)];for(const [_0xe642af,_0x107d19]of _0x3f807b){const _0x279b5d={'id':_0x5a1aa8(0x236),'params':{'unitId':this[_0x5a1aa8(0x10f)],'actions':null,'textRanges':_0x107d19['ranges']}},_0x188153=this['_transformService'][_0x5a1aa8(0x2aa)](_0x16dd1b,_0x279b5d,!0x1);if(_0x1f6364[_0x5a1aa8(0x423)](_0x188153))throw _0x188153[_0x5a1aa8(0x343)];_0x3f807b[_0x5a1aa8(0x4c2)](_0xe642af,{..._0x107d19,'ranges':_0x188153[_0x5a1aa8(0x315)][_0x5a1aa8(0x1ec)][_0x5a1aa8(0x235)]});}queueMicrotask(()=>{const _0x1163e9=_0x5a1aa8;this['_cursorInfo$'][_0x1163e9(0x117)](_0x3f807b);});})));}[_0x1000c0(0x3d8)](_0x164b87){const _0x5bb543=_0x1000c0;var _0x214cbb,_0x54ac18;const {memberID:_0x4b572d,selection:_0x347efb}=_0x164b87['data'],_0x2d2a64=_0x23b46f(_0x347efb),_0xaa9d20=(_0x54ac18=(_0x214cbb=this['_memberService'][_0x5bb543(0x1cc)](this['unitID'],_0x4b572d))==null?void 0x0:_0x214cbb[_0x5bb543(0x3e7)])!=null?_0x54ac18:_0x5bb543(0x2d0),_0x47f45f={'color':this[_0x5bb543(0x3e4)][_0x5bb543(0x1b3)](_0x4b572d),'name':_0xaa9d20,'ranges':_0x2d2a64},_0x394ca0=this[_0x5bb543(0x483)];_0x394ca0['set'](_0x4b572d,_0x47f45f),this['_cursorInfo$'][_0x5bb543(0x117)](_0x394ca0);}['_onCursorDelete'](_0x3f5ec2){const _0xbea08a=_0x1000c0,{memberID:_0x181f22}=_0x3f5ec2[_0xbea08a(0x314)],_0x440e0e=this[_0xbea08a(0x483)];_0x440e0e[_0xbea08a(0x234)](_0x181f22),this['_cursorInfo$'][_0xbea08a(0x117)](_0x440e0e);}[_0x1000c0(0x473)](){const _0x56f710=_0x1000c0;var _0x5885bc;if(this[_0x56f710(0x37e)]=!0x0,((_0x5885bc=this[_0x56f710(0x40b)][_0x56f710(0x1bb)]())==null?void 0x0:_0x5885bc[_0x56f710(0x270)]())!==this[_0x56f710(0x10f)])return;const _0x597b4e=this[_0x56f710(0x27f)][_0x56f710(0x1de)](_0x30cc49[_0x56f710(0x4c0)])[_0x56f710(0x3bb)](),_0x1df1ca=_0x597b4e==null?void 0x0:_0x597b4e['map'](_0x30cc49[_0x56f710(0x174)]);Array[_0x56f710(0x40e)](_0x1df1ca)&&_0x1df1ca['length']>0x0&&this[_0x56f710(0x468)](_0x1df1ca);}['_toggleOffline'](){const _0x5e804c=_0x1000c0;this[_0x5e804c(0x37e)]=!0x1;}};_0x185328=_0x266cfa([_0x357b8a(0x2,_0x1ea985[_0x1000c0(0x368)](_0x1ea985['Injector'])),_0x357b8a(0x3,_0x1ea985[_0x1000c0(0x368)](_0x3c16e5)),_0x357b8a(0x4,_0x1ea985[_0x1000c0(0x368)](_0x2539c6)),_0x357b8a(0x5,_0x1ea985[_0x1000c0(0x368)](_0x148177)),_0x357b8a(0x6,_0x1f6364[_0x1000c0(0x34e)]),_0x357b8a(0x7,_0x592d59[_0x1000c0(0x305)]),_0x357b8a(0x8,_0x592d59[_0x1000c0(0x131)])],_0x185328);var _0x29d5c9=Object[_0x1000c0(0x1a1)],_0x1254f6=Object['getOwnPropertyDescriptor'],_0x2a1fda=(_0x1b20ab,_0x1ea602,_0x506212,_0x4fb5f3)=>{const _0x421f76=_0x1000c0;for(var _0x1b98c0=_0x4fb5f3>0x1?void 0x0:_0x4fb5f3?_0x1254f6(_0x1ea602,_0x506212):_0x1ea602,_0x5ac6c6=_0x1b20ab[_0x421f76(0x1d8)]-0x1,_0x1a3ab6;_0x5ac6c6>=0x0;_0x5ac6c6--)(_0x1a3ab6=_0x1b20ab[_0x5ac6c6])&&(_0x1b98c0=(_0x4fb5f3?_0x1a3ab6(_0x1ea602,_0x506212,_0x1b98c0):_0x1a3ab6(_0x1b98c0))||_0x1b98c0);return _0x4fb5f3&&_0x1b98c0&&_0x29d5c9(_0x1ea602,_0x506212,_0x1b98c0),_0x1b98c0;},_0x28d58d=(_0x1c2347,_0x5444c5)=>(_0x524189,_0x301456)=>_0x5444c5(_0x524189,_0x301456,_0x1c2347);let _0xc137f8=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0x40a6d9,_0x82539f,_0x47046a){const _0x10d16c=_0x1000c0;super(),_0x40dfd7(this,_0x10d16c(0x2ce),new Map()),_0x40dfd7(this,'_entityInit$',new _0x3c7a49['Subject']()),(this[_0x10d16c(0x40b)]=_0x40a6d9,this[_0x10d16c(0x27f)]=_0x82539f,this[_0x10d16c(0x2c8)]=_0x47046a,this[_0x10d16c(0x224)]());}[_0x1000c0(0x36f)](){const _0x31b9cb=_0x1000c0;super[_0x31b9cb(0x36f)](),this[_0x31b9cb(0x38b)][_0x31b9cb(0x4b5)](),this[_0x31b9cb(0x2ce)][_0x31b9cb(0x24b)](_0x2f8487=>_0x2f8487[_0x31b9cb(0x36f)]());}[_0x1000c0(0x2e1)](_0x5cae1c){const _0x5176ba=_0x1000c0;return this['_entities'][_0x5176ba(0x321)](_0x5cae1c)?this[_0x5176ba(0x2ce)]['get'](_0x5cae1c)[_0x5176ba(0x1ee)]:this['_entityInit$'][_0x5176ba(0x161)](_0x3c7a49[_0x5176ba(0x3d5)](_0x5acace=>_0x5acace['unitID']===_0x5cae1c),_0x3c7a49[_0x5176ba(0x32b)](_0x588845=>_0x588845[_0x5176ba(0x1ee)]));}[_0x1000c0(0x224)](){const _0x34f52b=_0x1000c0;this['_univerInstanceService'][_0x34f52b(0x13e)](_0x592d59[_0x34f52b(0x1b5)][_0x34f52b(0x149)])[_0x34f52b(0x161)](_0x3c7a49[_0x34f52b(0x3ca)](this[_0x34f52b(0x338)]))[_0x34f52b(0x42f)](async _0x2e61db=>{const _0x1656ea=_0x34f52b,_0xfedccb=_0x2e61db[_0x1656ea(0x270)](),_0x5095af=await this[_0x1656ea(0x3a1)](_0xfedccb);this[_0x1656ea(0x38b)][_0x1656ea(0x117)](_0x5095af),this[_0x1656ea(0x2ce)]['set'](_0xfedccb,_0x5095af);}),this[_0x34f52b(0x40b)][_0x34f52b(0x13e)](_0x592d59[_0x34f52b(0x1b5)]['UNIVER_DOC'])['pipe'](_0x3c7a49[_0x34f52b(0x3ca)](this[_0x34f52b(0x338)]))[_0x34f52b(0x161)](_0x3c7a49[_0x34f52b(0x3d5)](_0x488e3a=>!_0x488e3a['getUnitId']()['startsWith']('__')))[_0x34f52b(0x42f)](async _0x8aed7d=>{const _0x54cee0=_0x34f52b,_0x10bd27=_0x8aed7d['getUnitId'](),_0x2f7d23=await this['_startDocCollabCursor'](_0x10bd27);this[_0x54cee0(0x38b)][_0x54cee0(0x117)](_0x2f7d23),this[_0x54cee0(0x2ce)]['set'](_0x10bd27,_0x2f7d23);}),_0x3c7a49['merge'](this[_0x34f52b(0x40b)]['getTypeOfUnitDisposed$'](_0x592d59[_0x34f52b(0x1b5)]['UNIVER_DOC']),this[_0x34f52b(0x40b)][_0x34f52b(0x341)](_0x592d59[_0x34f52b(0x1b5)][_0x34f52b(0x149)]))[_0x34f52b(0x161)](_0x3c7a49[_0x34f52b(0x3ca)](this[_0x34f52b(0x338)]))[_0x34f52b(0x42f)](_0x3fe220=>{const _0x16d675=_0x34f52b,_0x55aeb5=_0x3fe220['getUnitId'](),_0x3fd31e=this['_entities'][_0x16d675(0x1de)](_0x55aeb5);_0x3fd31e&&(_0x3fd31e[_0x16d675(0x36f)](),this[_0x16d675(0x2ce)]['delete'](_0x55aeb5));});}async['_startSheetCollabCursor'](_0x58552f){const _0x367b11=_0x1000c0,_0x6fb22d=await this[_0x367b11(0x2c8)][_0x367b11(0x1c2)](_0x58552f),_0x2ac195=this[_0x367b11(0x27f)][_0x367b11(0x134)](_0xe51747,_0x58552f,_0x6fb22d);return _0x2ac195[_0x367b11(0x150)](),_0x2ac195;}async[_0x1000c0(0x28e)](_0x1ba18d){const _0x5d2e50=_0x1000c0,_0xadc18c=await this['_collabSessionService'][_0x5d2e50(0x1c2)](_0x1ba18d),_0xcc4de3=this['_injector']['createInstance'](_0x185328,_0x1ba18d,_0xadc18c);return _0xcc4de3[_0x5d2e50(0x150)](),_0xcc4de3;}};_0xc137f8=_0x2a1fda([_0x592d59[_0x1000c0(0x47b)](_0x592d59['LifecycleStages']['Starting'],_0xc137f8),_0x28d58d(0x0,_0x592d59[_0x1000c0(0x305)]),_0x28d58d(0x1,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)])),_0x28d58d(0x2,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x272)]))],_0xc137f8);const _0x201da5=0x14,_0x4e31bd=0xc8,_0x43b144=0x4,_0x388cb9=0x5;function _0x2eccfe(_0x3f07d1,_0x5df09c){const _0x16f816=_0x1000c0;let {radius:_0x4bb854,width:_0xaed3ec,height:_0x21eb56}=_0x5df09c;_0x4bb854=_0x4bb854!=null?_0x4bb854:0x0,_0xaed3ec=_0xaed3ec!=null?_0xaed3ec:0x1e,_0x21eb56=_0x21eb56!=null?_0x21eb56:0x1e;let _0x3978f0=0x0,_0x6f3261=0x0,_0x3fab82=0x0;_0x3978f0=_0x6f3261=_0x3fab82=Math[_0x16f816(0x42d)](_0x4bb854,_0xaed3ec/0x2,_0x21eb56/0x2),_0x3f07d1[_0x16f816(0x3b1)](),_0x3f07d1[_0x16f816(0x2e7)](_0x3978f0,0x0),_0x3f07d1['lineTo'](_0xaed3ec-_0x6f3261,0x0),_0x3f07d1['arc'](_0xaed3ec-_0x6f3261,_0x6f3261,_0x6f3261,Math['PI']*0x3/0x2,0x0,!0x1),_0x3f07d1[_0x16f816(0xfb)](_0xaed3ec,_0x21eb56-_0x3fab82),_0x3f07d1[_0x16f816(0x1f4)](_0xaed3ec-_0x3fab82,_0x21eb56-_0x3fab82,_0x3fab82,0x0,Math['PI']/0x2,!0x1),_0x3f07d1[_0x16f816(0xfb)](0x0,_0x21eb56),_0x3f07d1[_0x16f816(0xfb)](0x0,_0x3978f0),_0x3f07d1['arc'](_0x3978f0,_0x3978f0,_0x3978f0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3f07d1[_0x16f816(0x43b)](),_0x5df09c[_0x16f816(0x15e)]&&(_0x3f07d1[_0x16f816(0x26c)](),_0x3f07d1[_0x16f816(0x48f)]=_0x5df09c[_0x16f816(0x15e)],_0x5df09c[_0x16f816(0x268)]===_0x16f816(0x308)?_0x3f07d1[_0x16f816(0x15e)](_0x16f816(0x308)):_0x3f07d1['fill'](),_0x3f07d1[_0x16f816(0x100)]());}class _0x49ec11 extends _0x5c59d0[_0x1000c0(0x208)]{constructor(_0x4f017e,_0x4f13fc){const _0x47627b=_0x1000c0;super(_0x4f017e,_0x4f13fc),_0x40dfd7(this,_0x47627b(0x2a0)),_0x40dfd7(this,'text'),(this['color']=_0x4f13fc==null?void 0x0:_0x4f13fc[_0x47627b(0x2a0)],this[_0x47627b(0x229)]=_0x4f13fc==null?void 0x0:_0x4f13fc[_0x47627b(0x229)]);}static[_0x1000c0(0x3b6)](_0x3727a9,_0x595209){const _0x3372fc=_0x1000c0,{text:_0x4c4888,color:_0x427f32}=_0x595209;_0x3727a9['save'](),_0x3727a9[_0x3372fc(0x1f8)]=_0x3372fc(0x1b2);const _0x484c1f=_0x3727a9[_0x3372fc(0x3f1)](_0x4c4888)[_0x3372fc(0x464)],_0x31a380=Math['min'](_0x484c1f+0x2*_0x43b144,_0x4e31bd);_0x2eccfe(_0x3727a9,{'height':_0x201da5,'radius':0x4,'width':_0x31a380,'fill':_0x427f32,'evented':!0x1}),_0x3727a9[_0x3372fc(0x48f)]=_0x3372fc(0x121);const _0x424e21=_0x43b144,_0x900bbd=_0x201da5-_0x388cb9,_0xe22e80=_0x4e31bd-0x2*_0x43b144;if(_0x484c1f>_0xe22e80){let _0x7fcdc6='',_0x312ef8=0x0;for(const _0x1ffcaf of _0x4c4888){const _0xe67b42=_0x3727a9['measureText'](_0x1ffcaf)['width'];if(_0x312ef8+_0xe67b42<=_0xe22e80-_0x3727a9[_0x3372fc(0x3f1)](_0x3372fc(0x301))[_0x3372fc(0x464)])_0x7fcdc6+=_0x1ffcaf,_0x312ef8+=_0xe67b42;else{_0x7fcdc6+='...';break;}}_0x3727a9[_0x3372fc(0x4c5)](_0x7fcdc6,_0x424e21,_0x900bbd);}else _0x3727a9['fillText'](_0x4c4888,_0x424e21,_0x900bbd);_0x3727a9[_0x3372fc(0x100)]();}[_0x1000c0(0x120)](_0x59c933){const _0x5534a3=_0x1000c0;_0x49ec11[_0x5534a3(0x3b6)](_0x59c933,this);}}const _0x70a7a7=0x1,_0x57c3e4=1.5;class _0x276b4c extends _0x5c59d0[_0x1000c0(0x208)]{constructor(_0x21ecee,_0x5b7880){const _0x4292db=_0x1000c0;super(_0x21ecee,_0x5b7880),_0x40dfd7(this,_0x4292db(0x4a1)),_0x40dfd7(this,_0x4292db(0x24e),!0x1),_0x40dfd7(this,_0x4292db(0x36e)),_0x40dfd7(this,_0x4292db(0x249),''),_0x40dfd7(this,_0x4292db(0x3c3),_0x4292db(0x43d)),(_0x5b7880&&this[_0x4292db(0x459)](_0x5b7880),this[_0x4292db(0x2e4)][_0x4292db(0x2ea)](()=>this[_0x4292db(0x459)]({'hovered':!0x0})),this[_0x4292db(0x2c0)][_0x4292db(0x2ea)](()=>this[_0x4292db(0x459)]({'hovered':!0x1})));}[_0x1000c0(0x459)](_0x29e8fd){const _0x1602e6=_0x1000c0;var _0x1db54e,_0x40e08a,_0x53dd43,_0x2ff3b2,_0x222ba3;this[_0x1602e6(0x4a1)]=(_0x1db54e=_0x29e8fd['color'])!=null?_0x1db54e:this[_0x1602e6(0x4a1)],this[_0x1602e6(0x24e)]=(_0x40e08a=_0x29e8fd[_0x1602e6(0x448)])!=null?_0x40e08a:this[_0x1602e6(0x24e)],this[_0x1602e6(0x36e)]=(_0x53dd43=_0x29e8fd[_0x1602e6(0x3ff)])!=null?_0x53dd43:this[_0x1602e6(0x36e)],this['_name']=(_0x2ff3b2=_0x29e8fd[_0x1602e6(0x3e7)])!=null?_0x2ff3b2:this[_0x1602e6(0x249)],this['_labelPosition']=(_0x222ba3=_0x29e8fd[_0x1602e6(0x42c)])!=null?_0x222ba3:this['_labelPosition'],this[_0x1602e6(0x48a)]({'width':_0x29e8fd[_0x1602e6(0x464)],'height':_0x29e8fd['height']});}[_0x1000c0(0x191)](_0x20211c){const _0x1461b9=_0x1000c0,{row:_0x390434,column:_0x2b285b}=_0x20211c;if(_0x390434>=this['_range'][_0x1461b9(0x22f)]&&_0x390434<=this[_0x1461b9(0x36e)][_0x1461b9(0x34d)]&&_0x2b285b>=this[_0x1461b9(0x36e)][_0x1461b9(0x4cd)]&&_0x2b285b<=this[_0x1461b9(0x36e)][_0x1461b9(0x101)]){this[_0x1461b9(0x459)]({'hovered':!0x0});return;}this[_0x1461b9(0x459)]({'hovered':!0x1});}[_0x1000c0(0x31b)](_0x42947f){return!0x1;}[_0x1000c0(0x120)](_0x2adcf6){const _0x23e4ca=_0x1000c0;_0x5c59d0[_0x23e4ca(0x29c)]['drawWith'](_0x2adcf6,{'width':this[_0x23e4ca(0x464)],'height':this[_0x23e4ca(0x1ac)],'strokeWidth':_0x57c3e4,'stroke':this[_0x23e4ca(0x4a1)],'evented':!0x1}),this['_hovered']&&(_0x2adcf6[_0x23e4ca(0x26c)](),_0x2adcf6['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x23e4ca(0x3c3)]==='bottom'?0x0:-_0x201da5),_0x49ec11['drawWith'](_0x2adcf6,{'text':this[_0x23e4ca(0x249)],'color':this['_color']}),_0x2adcf6[_0x23e4ca(0x100)]());}}var _0x100b22=Object[_0x1000c0(0x1a1)],_0x5caa41=Object[_0x1000c0(0x2d4)],_0x484bcc=(_0x499e45,_0x17da96,_0x21d558,_0x1ad29f)=>{const _0x18cfd3=_0x1000c0;for(var _0x391c35=_0x1ad29f>0x1?void 0x0:_0x1ad29f?_0x5caa41(_0x17da96,_0x21d558):_0x17da96,_0x14d08e=_0x499e45[_0x18cfd3(0x1d8)]-0x1,_0x44962c;_0x14d08e>=0x0;_0x14d08e--)(_0x44962c=_0x499e45[_0x14d08e])&&(_0x391c35=(_0x1ad29f?_0x44962c(_0x17da96,_0x21d558,_0x391c35):_0x44962c(_0x391c35))||_0x391c35);return _0x1ad29f&&_0x391c35&&_0x100b22(_0x17da96,_0x21d558,_0x391c35),_0x391c35;},_0x52c193=(_0x32d6c3,_0x1e271f)=>(_0x48a7c4,_0x2d29e1)=>_0x1e271f(_0x48a7c4,_0x2d29e1,_0x32d6c3);const _0x1874ac=0x1389;let _0x480b36=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0x3734a8,_0x5d5125,_0x240bfe,_0x194600){const _0x40b99d=_0x1000c0;super(),_0x40dfd7(this,'_cursors',new Set()),_0x40dfd7(this,_0x40b99d(0x3f7),null),(this['_collabCursorController']=_0x3734a8,this[_0x40b99d(0x40b)]=_0x5d5125,this['_renderManagerService']=_0x240bfe,this[_0x40b99d(0x478)]=_0x194600,this[_0x40b99d(0x224)]());}get[_0x1000c0(0x4a0)](){const _0x309b17=_0x1000c0;return this['_renderManagerService'][_0x309b17(0x126)](this['_univerInstanceService']['getCurrentUnitForType'](_0x592d59['UniverInstanceType'][_0x309b17(0x149)])[_0x309b17(0x270)]())['with'](_0x1c3859[_0x309b17(0x363)]);}get[_0x1000c0(0x34c)](){const _0x2264dc=_0x1000c0;return this[_0x2264dc(0x40b)]['getCurrentUnitForType'](_0x592d59[_0x2264dc(0x1b5)][_0x2264dc(0x149)])[_0x2264dc(0x270)]();}[_0x1000c0(0x224)](){const _0x4416fb=_0x1000c0;this[_0x4416fb(0x4a0)][_0x4416fb(0x1d1)][_0x4416fb(0x161)](_0x39f29f[_0x4416fb(0x3ca)](this[_0x4416fb(0x338)]),_0x39f29f[_0x4416fb(0x32b)](_0x22658b=>{const _0x1806fb=_0x4416fb;if(_0x22658b){const _0x184199=_0x22658b[_0x1806fb(0x154)];return _0x3c7a49[_0x1806fb(0x303)](this[_0x1806fb(0x3eb)][_0x1806fb(0x2e1)](this[_0x1806fb(0x34c)]),this[_0x1806fb(0x478)][_0x1806fb(0x1a4)])[_0x1806fb(0x161)](_0x39f29f[_0x1806fb(0x1f5)](([_0x4a9bca,_0x11f6f1])=>{const _0x3eacec=new Map();return _0x4a9bca['forEach']((_0x327b3b,_0x49beff)=>{const _0x4d46e0=_0x492d;if(_0x327b3b[_0x4d46e0(0x1c6)]===_0x184199){const _0x782143={..._0x327b3b};_0x782143[_0x4d46e0(0x2a0)]=_0x11f6f1[_0x327b3b[_0x4d46e0(0x2a0)]],_0x3eacec['set'](_0x49beff,_0x782143);}}),{'skeleton':_0x22658b,'cursors':_0x3eacec};}));}return _0x3c7a49['of']({'skeleton':null,'cursors':new Map()});}))[_0x4416fb(0x42f)](({skeleton:_0x416c87,cursors:_0x41c5d4})=>{const _0x171e85=_0x4416fb;this[_0x171e85(0x4c9)](),_0x416c87&&this[_0x171e85(0x2e2)](_0x416c87,_0x41c5d4);}),this['_sheetSkeletonManagerService'][_0x4416fb(0x1d1)][_0x4416fb(0x42f)](_0x5d84e0=>{const _0x42f85f=_0x4416fb;if(_0x5d84e0==null)return;const {skeleton:_0x1f29de}=_0x5d84e0,_0x3a5fd2=this['_renderManagerService'][_0x42f85f(0x126)](this[_0x42f85f(0x34c)]),{scene:_0x44fcf5}=_0x3a5fd2;_0x44fcf5['onPointerMove$'][_0x42f85f(0x2ea)](_0x5e5cd3(_0x1a9982=>{const _0x2f0665=_0x42f85f;var _0x33ace5,_0xf2977;const {offsetX:_0x2b5b04,offsetY:_0x3d1e7d}=_0x1a9982,{x:_0x57d96f,y:_0x1b3b0f}=_0x44fcf5[_0x2f0665(0x29d)](_0x5c59d0[_0x2f0665(0x104)]['FromArray']([_0x2b5b04,_0x3d1e7d])),{scaleX:_0x5f2f47,scaleY:_0x3509fd}=_0x44fcf5[_0x2f0665(0x3e9)](),_0x39bfdf=_0x44fcf5[_0x2f0665(0x136)](_0x1c3859[_0x2f0665(0x3a7)][_0x2f0665(0x245)]),_0x249852=_0x44fcf5['getScrollXYByRelativeCoords'](_0x5c59d0[_0x2f0665(0x104)][_0x2f0665(0x3d0)]([_0x57d96f,_0x1b3b0f]),_0x39bfdf),_0x4ad695=_0x1f29de[_0x2f0665(0x25c)](_0x2b5b04,_0x3d1e7d,_0x5f2f47,_0x3509fd,_0x249852);((_0x33ace5=this[_0x2f0665(0x3f7)])==null?void 0x0:_0x33ace5[_0x2f0665(0x273)])===_0x4ad695['column']&&((_0xf2977=this[_0x2f0665(0x3f7)])==null?void 0x0:_0xf2977['row'])===_0x4ad695[_0x2f0665(0x225)]||this[_0x2f0665(0x20e)]['forEach'](_0x1faefa=>{const _0x8a1c0e=_0x2f0665;_0x1faefa[_0x8a1c0e(0x191)](_0x4ad695);});},0x64));});}['_updateCollabCursors'](_0x55013e,_0x5caa2d){const _0x441448=_0x1000c0;var _0x534d88;const _0x5e9842=(_0x534d88=this[_0x441448(0x4a0)][_0x441448(0x1af)]())==null?void 0x0:_0x534d88[_0x441448(0x43c)];if(!_0x5e9842)return;const _0x8eb5a7=this[_0x441448(0x4c7)]();if(!_0x8eb5a7)return;this[_0x441448(0x20e)][_0x441448(0x24b)](_0x7111b6=>{const _0x1e3914=_0x441448;_0x7111b6[_0x1e3914(0xf9)]();});const {scene:_0x1b61d5}=_0x8eb5a7,_0x43b33c=_0x4b98c3(Array['from'](_0x5caa2d[_0x441448(0x38c)]()))[_0x441448(0x1f5)](_0x597265=>{const _0xeff27c=_0x441448,{color:_0x1637ed,range:_0x230389,name:_0xa650b2,selection:_0x4bed5a,sheetID:_0xb2dd68}=_0x597265,{startColumn:_0x424e5b,startRow:_0x28b857,endColumn:_0x4de3e3,endRow:_0x4dc91f}=_0x230389,_0x205a1e=_0x1c3859[_0xeff27c(0x295)](_0x28b857,_0x424e5b,_0x1b61d5,_0x5e9842),_0x1192a1=_0x1c3859['getCoordByCell'](_0x4dc91f,_0x4de3e3,_0x1b61d5,_0x5e9842),{columnHeaderHeightAndMarginTop:_0x2fe39d}=_0x5e9842,{startX:_0x1f39b7,startY:_0x5a44d7}=_0x205a1e,{endX:_0x5171c3,endY:_0x15cc5a}=_0x1192a1,_0xfc9944=_0x5171c3-_0x1f39b7,_0x57c518=_0x15cc5a-_0x5a44d7,_0x41ec67={'labelPosition':_0x5a44d7-_0x2fe39d>=_0x201da5?_0xeff27c(0x43d):_0xeff27c(0x334),'sheetID':_0xb2dd68,'range':_0x230389,'color':_0x1637ed,'name':_0xa650b2,'selection':_0x4bed5a,'left':_0x1f39b7,'top':_0x5a44d7,'width':_0xfc9944,'height':_0x57c518,'evented':!0x1,'zIndex':_0x1874ac};return new _0x276b4c(_0xa650b2,_0x41ec67);});_0x1b61d5[_0x441448(0x15b)](_0x43b33c,_0x70a7a7),this['_cursors']=new Set(_0x43b33c);}[_0x1000c0(0x4c9)](){const _0x15eeee=_0x1000c0;var _0x3f28d3;(_0x3f28d3=this['_cursors'])==null||_0x3f28d3[_0x15eeee(0x24b)](_0x389a37=>_0x389a37[_0x15eeee(0x36f)]());}[_0x1000c0(0x4c7)](){const _0x5b5990=_0x1000c0;return _0x1c3859[_0x5b5990(0x132)](this['_univerInstanceService'],this['_renderManagerService']);}};_0x480b36=_0x484bcc([_0x592d59[_0x1000c0(0x47b)](_0x592d59[_0x1000c0(0x1c7)][_0x1000c0(0x4cf)],_0x480b36),_0x52c193(0x0,_0x1ea985[_0x1000c0(0x368)](_0xc137f8)),_0x52c193(0x1,_0x592d59[_0x1000c0(0x305)]),_0x52c193(0x2,_0x5c59d0[_0x1000c0(0x36a)]),_0x52c193(0x3,_0x1ea985[_0x1000c0(0x368)](_0x592d59['ThemeService']))],_0x480b36);function _0x4b98c3(_0x5ed0ef){const _0x322a11=_0x1000c0,_0x5aa7c8=new Map();return _0x5ed0ef['forEach'](_0x5a8782=>{const _0x1379e5=_0x492d;if(_0x5aa7c8['has'](_0x5a8782['selection'])){const _0x2926db=_0x5aa7c8[_0x1379e5(0x1de)](_0x5a8782[_0x1379e5(0x426)]);_0x2926db[_0x1379e5(0x3e7)]+=',\x20'+_0x5a8782[_0x1379e5(0x3e7)];}else _0x5aa7c8[_0x1379e5(0x4c2)](_0x5a8782['selection'],_0x5a8782);}),Array[_0x322a11(0x485)](_0x5aa7c8['values']());}var _0x4031a5=function(){const _0x25b3b4=_0x1000c0;return _0x4031a5=Object[_0x25b3b4(0x2e9)]||function(_0x3e9d6a){const _0x48074a=_0x25b3b4;for(var _0x293862,_0x4dad57=0x1,_0x1e04ea=arguments[_0x48074a(0x1d8)];_0x4dad57<_0x1e04ea;_0x4dad57++){_0x293862=arguments[_0x4dad57];for(var _0xceaa3a in _0x293862)Object[_0x48074a(0x389)][_0x48074a(0x282)]['call'](_0x293862,_0xceaa3a)&&(_0x3e9d6a[_0xceaa3a]=_0x293862[_0xceaa3a]);}return _0x3e9d6a;},_0x4031a5[_0x25b3b4(0x3f2)](this,arguments);},_0x4170ad=function(_0xdbc321,_0x1e9bbf){const _0x32f1c3=_0x1000c0;var _0x59889a={};for(var _0x3ebb51 in _0xdbc321)Object[_0x32f1c3(0x389)]['hasOwnProperty'][_0x32f1c3(0x266)](_0xdbc321,_0x3ebb51)&&_0x1e9bbf[_0x32f1c3(0x2ee)](_0x3ebb51)<0x0&&(_0x59889a[_0x3ebb51]=_0xdbc321[_0x3ebb51]);if(_0xdbc321!=null&&typeof Object[_0x32f1c3(0x481)]==_0x32f1c3(0x452)){for(var _0x42fe6e=0x0,_0x3ebb51=Object[_0x32f1c3(0x481)](_0xdbc321);_0x42fe6e<_0x3ebb51[_0x32f1c3(0x1d8)];_0x42fe6e++)_0x1e9bbf[_0x32f1c3(0x2ee)](_0x3ebb51[_0x42fe6e])<0x0&&Object[_0x32f1c3(0x389)]['propertyIsEnumerable'][_0x32f1c3(0x266)](_0xdbc321,_0x3ebb51[_0x42fe6e])&&(_0x59889a[_0x3ebb51[_0x42fe6e]]=_0xdbc321[_0x3ebb51[_0x42fe6e]]);}return _0x59889a;},_0x5ad723=_0x4f6c5c[_0x1000c0(0x3cc)](function(_0x981d42,_0x20b660){const _0x3528c0=_0x1000c0;var _0x47144d=_0x981d42[_0x3528c0(0x3ec)],_0x2d483d=_0x981d42['id'],_0x30d4be=_0x981d42[_0x3528c0(0x3de)],_0x4f1ff8=_0x981d42[_0x3528c0(0x2c1)],_0x5ce6d3=_0x4170ad(_0x981d42,['icon','id',_0x3528c0(0x3de),_0x3528c0(0x2c1)]),_0x23936b=_0x3528c0(0x3da)[_0x3528c0(0x328)](_0x2d483d,'\x20')['concat'](_0x30d4be||'')[_0x3528c0(0x453)](),_0x38fb18=_0x4f6c5c[_0x3528c0(0x11a)]('_'[_0x3528c0(0x328)](_0x1d7fd0()));return _0x7ddab4(_0x47144d,''['concat'](_0x2d483d),{'defIds':_0x47144d[_0x3528c0(0x1f7)],'idSuffix':_0x38fb18['current']},_0x4031a5({'ref':_0x20b660,'className':_0x23936b},_0x5ce6d3),_0x4f1ff8);});function _0x7ddab4(_0x4fd883,_0x55c68c,_0x1c86ed,_0x26ab23,_0x5727bc){const _0x1f6dd5=_0x1000c0;return _0x4f6c5c[_0x1f6dd5(0x3d3)](_0x4fd883[_0x1f6dd5(0x2d3)],_0x4031a5(_0x4031a5({'key':_0x55c68c},_0x4335f3(_0x4fd883,_0x1c86ed,_0x5727bc)),_0x26ab23),(_0x589d39(_0x4fd883,_0x1c86ed)[_0x1f6dd5(0x251)]||[])[_0x1f6dd5(0x1f5)](function(_0x229b6e,_0x58f4b1){const _0x5e0e15=_0x1f6dd5;return _0x7ddab4(_0x229b6e,''[_0x5e0e15(0x328)](_0x55c68c,'-')[_0x5e0e15(0x328)](_0x4fd883['tag'],'-')[_0x5e0e15(0x328)](_0x58f4b1),_0x1c86ed,void 0x0,_0x5727bc);}));}function _0x4335f3(_0x40a17d,_0x50d2bc,_0x2d152d){const _0x41f32c=_0x1000c0;var _0x858b3b=_0x4031a5({},_0x40a17d['attrs']);_0x2d152d!=null&&_0x2d152d[_0x41f32c(0x14f)]&&_0x858b3b[_0x41f32c(0x15e)]===_0x41f32c(0x14f)&&(_0x858b3b['fill']=_0x2d152d['colorChannel1']);var _0x3076de=_0x50d2bc[_0x41f32c(0x1f7)];return!_0x3076de||_0x3076de[_0x41f32c(0x1d8)]===0x0||(_0x40a17d[_0x41f32c(0x2d3)]===_0x41f32c(0x1e6)&&_0x858b3b[_0x41f32c(0x2d5)]&&(_0x858b3b[_0x41f32c(0x2d5)]=_0x858b3b[_0x41f32c(0x2d5)]+_0x50d2bc['idSuffix']),Object[_0x41f32c(0x10a)](_0x858b3b)[_0x41f32c(0x24b)](function(_0x19d941){const _0x14c3a7=_0x41f32c;var _0x38a260=_0x19d941[0x0],_0xf33f43=_0x19d941[0x1];typeof _0xf33f43=='string'&&(_0x858b3b[_0x38a260]=_0xf33f43[_0x14c3a7(0x164)](/url\(#(.*)\)/,_0x14c3a7(0x4d5)[_0x14c3a7(0x328)](_0x50d2bc['idSuffix'],')')));})),_0x858b3b;}function _0x589d39(_0x302f24,_0x215cc4){const _0x1f35e8=_0x1000c0;var _0x4fe791,_0x240bf3=_0x215cc4[_0x1f35e8(0x1f7)];return!_0x240bf3||_0x240bf3[_0x1f35e8(0x1d8)]===0x0?_0x302f24:_0x302f24[_0x1f35e8(0x2d3)]===_0x1f35e8(0x118)&&(!((_0x4fe791=_0x302f24[_0x1f35e8(0x251)])===null||_0x4fe791===void 0x0)&&_0x4fe791['length'])?_0x4031a5(_0x4031a5({},_0x302f24),{'children':_0x302f24['children'][_0x1f35e8(0x1f5)](function(_0x1adc27){const _0x563042=_0x1f35e8;return typeof _0x1adc27[_0x563042(0x1ce)]['id']==_0x563042(0x422)&&_0x240bf3&&_0x240bf3[_0x563042(0x2ee)](_0x1adc27[_0x563042(0x1ce)]['id'])>-0x1?_0x4031a5(_0x4031a5({},_0x1adc27),{'attrs':_0x4031a5(_0x4031a5({},_0x1adc27[_0x563042(0x1ce)]),{'id':_0x1adc27[_0x563042(0x1ce)]['id']+_0x215cc4[_0x563042(0x3b5)]})}):_0x1adc27;})}):_0x302f24;}function _0x1d7fd0(){const _0x25f04b=_0x1000c0;return Math[_0x25f04b(0x3e5)]()[_0x25f04b(0x4a3)](0x24)['substring'](0x2,0x8);}_0x5ad723[_0x1000c0(0x30d)]='UniverIcon';var _0x3ebc39={'tag':'svg','attrs':{'fill':_0x1000c0(0x2b8),'viewBox':_0x1000c0(0x3e1),'width':'1em','height':_0x1000c0(0x106)},'children':[{'tag':'g','attrs':{'clipPath':_0x1000c0(0x291)},'children':[{'tag':_0x1000c0(0x4da),'attrs':{'stroke':_0x1000c0(0x11e),'d':_0x1000c0(0x146),'strokeLinecap':_0x1000c0(0x2c3),'strokeLinejoin':_0x1000c0(0x2c3),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x1000c0(0x1bf),'d':_0x1000c0(0x359)}}]}]}],'defIds':[_0x1000c0(0x1be)]},_0x187081=_0x4f6c5c[_0x1000c0(0x3cc)](function(_0x2c5d03,_0x533e13){const _0x1148d6=_0x1000c0;return _0x4f6c5c[_0x1148d6(0x3d3)](_0x5ad723,Object[_0x1148d6(0x2e9)]({},_0x2c5d03,{'id':_0x1148d6(0x45b),'ref':_0x533e13,'icon':_0x3ebc39}));});_0x187081[_0x1000c0(0x30d)]=_0x1000c0(0x284);var _0x11bd40={'tag':_0x1000c0(0x145),'attrs':{'fill':_0x1000c0(0x2b8),'viewBox':_0x1000c0(0x3fc),'width':_0x1000c0(0x106),'height':_0x1000c0(0x106)},'children':[{'tag':'g','attrs':{'clipPath':_0x1000c0(0x39f)},'children':[{'tag':_0x1000c0(0x4da),'attrs':{'stroke':_0x1000c0(0x11e),'d':_0x1000c0(0x4d4),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x1000c0(0x118),'attrs':{},'children':[{'tag':_0x1000c0(0x3d9),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x1000c0(0x4da),'attrs':{'fill':_0x1000c0(0x1bf),'d':_0x1000c0(0x359),'transform':'translate(.97)'}}]}]}],'defIds':[_0x1000c0(0x309)]},_0xc534e2=_0x4f6c5c[_0x1000c0(0x3cc)](function(_0x411057,_0x56d666){const _0x3618fb=_0x1000c0;return _0x4f6c5c[_0x3618fb(0x3d3)](_0x5ad723,Object[_0x3618fb(0x2e9)]({},_0x411057,{'id':'on-line-single','ref':_0x56d666,'icon':_0x11bd40}));});_0xc534e2[_0x1000c0(0x30d)]=_0x1000c0(0x287);const _0x435b4a={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':'univer-online-status-title','onlineStatus':'univer-online-status','online':_0x1000c0(0x3b2),'offline':_0x1000c0(0x4ad)};function _0x3cbedb(_0x5999c1){const _0x402922=_0x1000c0;switch(_0x5999c1){case _0x3e6f91[_0x402922(0x4a5)]:return _0x402922(0x3d4);case _0x3e6f91[_0x402922(0x25e)]:return _0x402922(0x3f3);case _0x3e6f91[_0x402922(0x156)]:return _0x402922(0x1ed);case _0x3e6f91[_0x402922(0x3c9)]:return _0x402922(0x391);case _0x3e6f91[_0x402922(0x47c)]:case _0x3e6f91[_0x402922(0x356)]:case _0x3e6f91[_0x402922(0x227)]:return _0x402922(0x34b);case _0x3e6f91['SYNCED']:return _0x402922(0x2ae);}}function _0x1d230a(_0x119ebb){const _0x48c5fd=_0x1000c0,{status$:_0x9a6d0a}=_0x119ebb,_0x3a1a2a=_0x2c52d3[_0x48c5fd(0x316)](_0x9a6d0a,_0x3e6f91[_0x48c5fd(0x3c9)]),_0x2a2cfb=_0x250089[_0x48c5fd(0x4c1)](_0x592d59[_0x48c5fd(0x279)]),_0x5a969a=_0x3a1a2a!==_0x3e6f91[_0x48c5fd(0x4a5)],_0x47951c=_0x2a2cfb['t'](_0x3cbedb(_0x3a1a2a)),_0x271959=_0x4dd75f(_0x435b4a[_0x48c5fd(0x148)],{[_0x435b4a[_0x48c5fd(0xfc)]]:_0x5a969a,[_0x435b4a['offline']]:!_0x5a969a}),_0x5d47a4=_0x5a969a?_0x4f6c5c[_0x48c5fd(0x3d3)](_0xc534e2,null):_0x4f6c5c['createElement'](_0x187081,null);return _0x4f6c5c['createElement'](_0x48c5fd(0x254),{'className':_0x271959},_0x4f6c5c['createElement']('div',{'className':_0x435b4a[_0x48c5fd(0x1c1)]},_0x5d47a4),_0x4f6c5c[_0x48c5fd(0x3d3)](_0x48c5fd(0x254),{'className':_0x435b4a[_0x48c5fd(0x3a4)]},_0x47951c));}var _0x43e554=Object['defineProperty'],_0x562965=Object[_0x1000c0(0x2d4)],_0x4bdf56=(_0x52ffef,_0x50d352,_0x12cd08,_0x58298a)=>{const _0x37cb87=_0x1000c0;for(var _0x593de7=_0x58298a>0x1?void 0x0:_0x58298a?_0x562965(_0x50d352,_0x12cd08):_0x50d352,_0x51c3e=_0x52ffef[_0x37cb87(0x1d8)]-0x1,_0x124e36;_0x51c3e>=0x0;_0x51c3e--)(_0x124e36=_0x52ffef[_0x51c3e])&&(_0x593de7=(_0x58298a?_0x124e36(_0x50d352,_0x12cd08,_0x593de7):_0x124e36(_0x593de7))||_0x593de7);return _0x58298a&&_0x593de7&&_0x43e554(_0x50d352,_0x12cd08,_0x593de7),_0x593de7;},_0x34daea=(_0x1a2ea9,_0x1da281)=>(_0x13e0e9,_0x39a7e4)=>_0x1da281(_0x13e0e9,_0x39a7e4,_0x1a2ea9);_0x322d5b[_0x1000c0(0x144)]=class extends _0x592d59[_0x1000c0(0x450)]{constructor(_0x226fa5,_0x38cffb,_0x1d00c2,_0x13d5cd){const _0x45b134=_0x1000c0;super(),_0x40dfd7(this,'_status$',new _0x3c7a49[(_0x45b134(0x35f))](_0x3e6f91[_0x45b134(0x3c9)])),(this[_0x45b134(0x40b)]=_0x226fa5,this[_0x45b134(0x2bc)]=_0x38cffb,this[_0x45b134(0x27f)]=_0x1d00c2,this['_collaborationController']=_0x13d5cd,this[_0x45b134(0x11d)](),this[_0x45b134(0x3b0)]());}[_0x1000c0(0x11d)](){const _0x1100e5=_0x1000c0;this[_0x1100e5(0x215)](this[_0x1100e5(0x2bc)][_0x1100e5(0x14d)](_0x2c52d3[_0x1100e5(0x4c4)][_0x1100e5(0x210)],()=>_0x250089['connectInjector'](_0x1a3fe5({'status$':this[_0x1100e5(0x317)][_0x1100e5(0x32c)]()}),this[_0x1100e5(0x27f)])));}[_0x1000c0(0x3b0)](){const _0x3523d5=_0x1000c0;this['disposeWithMe'](_0x592d59[_0x3523d5(0x29f)](this[_0x3523d5(0x40b)][_0x3523d5(0x21a)]['pipe'](_0x3c7a49['switchMap'](()=>{const _0x219889=_0x3523d5,_0x15c946=this[_0x219889(0x40b)][_0x219889(0x1bb)]();return _0x15c946?this[_0x219889(0x47d)][_0x219889(0x4a8)](_0x15c946[_0x219889(0x270)]()):_0x3c7a49['of'](null);}),_0x3c7a49[_0x3523d5(0x32b)](_0x182cf4=>_0x182cf4?_0x182cf4['status$']:_0x3c7a49['of'](_0x3e6f91['NOT_COLLAB'])))[_0x3523d5(0x42f)](_0x3d97a3=>{const _0x1c54b1=_0x3523d5;this[_0x1c54b1(0x317)][_0x1c54b1(0x117)](_0x3d97a3);})));}},_0x322d5b[_0x1000c0(0x144)]=_0x4bdf56([_0x592d59[_0x1000c0(0x47b)](_0x592d59['LifecycleStages']['Starting'],_0x322d5b[_0x1000c0(0x144)]),_0x34daea(0x0,_0x592d59[_0x1000c0(0x305)]),_0x34daea(0x1,_0x2c52d3['IUIPartsService']),_0x34daea(0x2,_0x1ea985[_0x1000c0(0x368)](_0x1ea985['Injector'])),_0x34daea(0x3,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x200)]))],_0x322d5b[_0x1000c0(0x144)]);function _0x1a3fe5(_0x32c9a7){const {status$:_0x4dea56}=_0x32c9a7;return function(){const _0x2050fa=_0x492d;return _0x4f6c5c[_0x2050fa(0x3d3)](_0x1d230a,{'status$':_0x4dea56});};}const _0x30215f=_0x1ea985[_0x1000c0(0x13b)](_0x1000c0(0x445));var _0x1e86d7=Object[_0x1000c0(0x1a1)],_0x5d714b=Object[_0x1000c0(0x2d4)],_0xbdbb09=(_0x46f68b,_0xb6eaad,_0x46eb1a,_0x369234)=>{const _0x23d9d1=_0x1000c0;for(var _0x1754b3=_0x369234>0x1?void 0x0:_0x369234?_0x5d714b(_0xb6eaad,_0x46eb1a):_0xb6eaad,_0xff42ea=_0x46f68b[_0x23d9d1(0x1d8)]-0x1,_0x1a8148;_0xff42ea>=0x0;_0xff42ea--)(_0x1a8148=_0x46f68b[_0xff42ea])&&(_0x1754b3=(_0x369234?_0x1a8148(_0xb6eaad,_0x46eb1a,_0x1754b3):_0x1a8148(_0x1754b3))||_0x1754b3);return _0x369234&&_0x1754b3&&_0x1e86d7(_0xb6eaad,_0x46eb1a,_0x1754b3),_0x1754b3;},_0x510a3d=(_0x33c140,_0x2f071f)=>(_0x455108,_0x29ed75)=>_0x2f071f(_0x455108,_0x29ed75,_0x33c140);_0x322d5b[_0x1000c0(0x192)]=class extends _0x592d59[_0x1000c0(0x2cd)]{constructor(_0x2268b6,_0x5ad11e,_0x1a60a4,_0x28df6b,_0x1dc0ef,_0x2d139e){const _0x140f18=_0x1000c0;super(),this[_0x140f18(0x3d7)]=_0x2268b6,this[_0x140f18(0x195)]=_0x5ad11e,this[_0x140f18(0x401)]=_0x1a60a4,this[_0x140f18(0x140)]=_0x28df6b,this[_0x140f18(0x26f)]=_0x1dc0ef,_0x2d139e?_0x2d139e==null||_0x2d139e[_0x140f18(0x421)]()['then'](()=>this[_0x140f18(0x224)]()):(this[_0x140f18(0x195)]['debug']('[DataLoaderController]',_0x140f18(0x3a3)),this[_0x140f18(0x224)]());}async[_0x1000c0(0x224)](){const _0x1224ca=_0x1000c0,_0x3fea0e=this[_0x1224ca(0x3d7)][_0x1224ca(0x1a2)](_0x1224ca(0x4be)),_0x316103=this[_0x1224ca(0x3d7)]['getParam'](_0x1224ca(0x49b));if(!_0x3fea0e||!_0x316103){this[_0x1224ca(0x195)]['debug']('[DataLoaderController]',_0x1224ca(0x209));return;}switch(Number(_0x316103)){case _0x376736[_0x1224ca(0x149)]:{const _0x5c9a41=await this['_loadSheet'](_0x3fea0e);this[_0x1224ca(0x2f9)](_0x5c9a41);break;}case _0x376736[_0x1224ca(0x119)]:{await this[_0x1224ca(0x248)](_0x3fea0e);break;}default:{this[_0x1224ca(0x195)][_0x1224ca(0x343)](_0x1224ca(0x36d),_0x1224ca(0x1b6));break;}}}async[_0x1000c0(0x2f9)](_0x152b50){const _0xd24864=_0x1000c0;await this[_0xd24864(0x387)](_0x152b50),_0x152b50[_0xd24864(0x264)]['pipe'](_0x3c7a49[_0xd24864(0x3ca)](this['dispose$']))[_0xd24864(0x42f)](_0x35ebcd=>{_0x35ebcd&&this['_updateURLWithCurrentState'](_0x35ebcd);}),this[_0xd24864(0x3d7)][_0xd24864(0x1b7)]['pipe'](_0x3c7a49[_0xd24864(0x3ca)](this[_0xd24864(0x338)]))[_0xd24864(0x42f)](()=>this[_0xd24864(0x387)](_0x152b50));}[_0x1000c0(0x188)](_0x26b70e,_0xea9d9c=!0x1){const _0x42e49f=_0x1000c0,_0x22ba5a=this[_0x42e49f(0x3d7)][_0x42e49f(0x1a2)](_0x42e49f(0x23a));_0x26b70e[_0x42e49f(0x449)]()!==_0x22ba5a&&this[_0x42e49f(0x3d7)]['setParam']('subunit',_0x26b70e[_0x42e49f(0x449)](),_0xea9d9c);}async['_updateSubUnitFromURLParams'](_0xe855f5){const _0x3c8d72=_0x1000c0;var _0x3af27a;const _0x479a62=this[_0x3c8d72(0x3d7)]['getParam'](_0x3c8d72(0x23a));if(!_0x479a62||!_0xe855f5['getSheetBySheetId'](_0x479a62)){const _0x4b5fd1=_0xe855f5[_0x3c8d72(0x30b)]()[0x0],_0x401ab7=_0xe855f5[_0x3c8d72(0x1a9)](_0x4b5fd1);if(!_0x401ab7)return;this[_0x3c8d72(0x188)](_0x401ab7,!0x0),await this[_0x3c8d72(0x401)][_0x3c8d72(0x19e)](_0x5e4af3[_0x3c8d72(0x388)]['id'],{'unitId':_0xe855f5[_0x3c8d72(0x270)](),'subUnitId':_0x4b5fd1});return;}((_0x3af27a=_0xe855f5[_0x3c8d72(0x3c5)]())==null?void 0x0:_0x3af27a[_0x3c8d72(0x449)]())!==_0x479a62&&await this[_0x3c8d72(0x401)][_0x3c8d72(0x19e)](_0x5e4af3[_0x3c8d72(0x388)]['id'],{'unitId':_0xe855f5[_0x3c8d72(0x270)](),'subUnitId':_0x479a62});}async[_0x1000c0(0x244)](_0x3324a1){const _0x987622=_0x1000c0;let _0x22bf0c=0x0;const _0x55a3ab=await this[_0x987622(0x140)]['loadOfflineData'](_0x3324a1);return _0x55a3ab&&(_0x55a3ab[_0x987622(0x3ba)]||_0x55a3ab['mutations'][_0x987622(0x1d8)]!==0x0)&&(_0x22bf0c=_0x55a3ab[_0x987622(0x4d3)]),_0x22bf0c===0x0&&this[_0x987622(0x195)]['debug']('[DataLoaderController]',_0x987622(0x4bb)),this[_0x987622(0x26f)][_0x987622(0x371)](_0x3324a1,_0x22bf0c);}async[_0x1000c0(0x248)](_0x2649f3){const _0x15f9b7=_0x1000c0;let _0x2086b1=0x0;const _0x5090d2=await this[_0x15f9b7(0x140)][_0x15f9b7(0x239)](_0x2649f3);return _0x5090d2&&(_0x5090d2[_0x15f9b7(0x3ba)]||_0x5090d2[_0x15f9b7(0x122)][_0x15f9b7(0x1d8)]!==0x0)&&(_0x2086b1=_0x5090d2['rev']),_0x2086b1===0x0&&this[_0x15f9b7(0x195)][_0x15f9b7(0x384)](_0x15f9b7(0x36d),_0x15f9b7(0x4bb)),this['_snapshotService']['loadDoc'](_0x2649f3,_0x2086b1);}},_0x322d5b[_0x1000c0(0x192)]=_0xbdbb09([_0x592d59[_0x1000c0(0x47b)](_0x592d59['LifecycleStages']['Starting'],_0x322d5b[_0x1000c0(0x192)]),_0x510a3d(0x0,_0x30215f),_0x510a3d(0x1,_0x592d59[_0x1000c0(0x1ef)]),_0x510a3d(0x2,_0x592d59['ICommandService']),_0x510a3d(0x3,_0x1ea985[_0x1000c0(0x368)](_0x322d5b[_0x1000c0(0x24c)])),_0x510a3d(0x4,_0x1ea985[_0x1000c0(0x368)](_0x1f6364[_0x1000c0(0x3ed)])),_0x510a3d(0x5,_0x1ea985[_0x1000c0(0x49e)](_0x5d4b6e[_0x1000c0(0x202)]))],_0x322d5b[_0x1000c0(0x192)]);var _0x1ae2e4=Object['defineProperty'],_0x564f37=Object[_0x1000c0(0x2d4)],_0x85ca93=(_0x121831,_0x7d66d2,_0x5268d1,_0x588a0a)=>{for(var _0x49bf5e=_0x588a0a>0x1?void 0x0:_0x588a0a?_0x564f37(_0x7d66d2,_0x5268d1):_0x7d66d2,_0x157072=_0x121831['length']-0x1,_0x41ea2c;_0x157072>=0x0;_0x157072--)(_0x41ea2c=_0x121831[_0x157072])&&(_0x49bf5e=(_0x588a0a?_0x41ea2c(_0x7d66d2,_0x5268d1,_0x49bf5e):_0x41ea2c(_0x49bf5e))||_0x49bf5e);return _0x588a0a&&_0x49bf5e&&_0x1ae2e4(_0x7d66d2,_0x5268d1,_0x49bf5e),_0x49bf5e;},_0x10f9f1=(_0x586820,_0x2dc0f1)=>(_0x5dc3f9,_0x1dfc5e)=>_0x2dc0f1(_0x5dc3f9,_0x1dfc5e,_0x586820);const _0x50df5f=_0x1000c0(0x1b0),_0x2fd3b2='Univer';let _0x23508c=class extends _0x592d59[_0x1000c0(0x450)]{constructor(_0x3ca605,_0x56f1cf){const _0x59a595=_0x1000c0;super(),this[_0x59a595(0x40b)]=_0x3ca605,this['_configService']=_0x56f1cf,this[_0x59a595(0x224)]();}['_init'](){const _0x3bbe86=_0x1000c0;this[_0x3bbe86(0x215)](_0x592d59[_0x3bbe86(0x29f)](this[_0x3bbe86(0x40b)][_0x3bbe86(0x21a)][_0x3bbe86(0x42f)](()=>{const _0x13a34f=_0x3bbe86;var _0x3b5d9f;const _0x30deb3=this[_0x13a34f(0x40b)][_0x13a34f(0x1bb)]();let _0x2a1faa=(_0x3b5d9f=this[_0x13a34f(0x230)][_0x13a34f(0x393)](_0x50df5f))!=null?_0x3b5d9f:_0x2fd3b2;_0x30deb3 instanceof _0x592d59['Workbook']&&(_0x2a1faa=_0x30deb3[_0x13a34f(0x3e7)]),document[_0x13a34f(0x2a3)]=_0x2a1faa;})));}};_0x23508c=_0x85ca93([_0x592d59[_0x1000c0(0x47b)](_0x592d59[_0x1000c0(0x1c7)][_0x1000c0(0x461)],_0x23508c),_0x10f9f1(0x0,_0x592d59[_0x1000c0(0x305)]),_0x10f9f1(0x1,_0x592d59[_0x1000c0(0x41f)])],_0x23508c);var _0x1f94db=Object[_0x1000c0(0x1a1)],_0xe64a2c=Object['getOwnPropertyDescriptor'],_0x99c184=(_0x4bae7e,_0x253522,_0xb1ef85,_0x4cd05a)=>{const _0x14f535=_0x1000c0;for(var _0x4dbdff=_0x4cd05a>0x1?void 0x0:_0x4cd05a?_0xe64a2c(_0x253522,_0xb1ef85):_0x253522,_0xad01b3=_0x4bae7e[_0x14f535(0x1d8)]-0x1,_0x2d72c9;_0xad01b3>=0x0;_0xad01b3--)(_0x2d72c9=_0x4bae7e[_0xad01b3])&&(_0x4dbdff=(_0x4cd05a?_0x2d72c9(_0x253522,_0xb1ef85,_0x4dbdff):_0x2d72c9(_0x4dbdff))||_0x4dbdff);return _0x4cd05a&&_0x4dbdff&&_0x1f94db(_0x253522,_0xb1ef85,_0x4dbdff),_0x4dbdff;},_0x4d29b6=(_0x443a96,_0x36074a)=>(_0x5f3aa4,_0x11ad21)=>_0x36074a(_0x5f3aa4,_0x11ad21,_0x443a96);let _0x21a4dd=class{constructor(_0x146564,_0x22dfcc){const _0x20b275=_0x1000c0;this[_0x20b275(0x230)]=_0x146564,this[_0x20b275(0x434)]=_0x22dfcc;}async[_0x1000c0(0x15c)](_0x890457,_0x5efeed){const _0x2016e3=_0x1000c0;var _0x4a9aa8;const {unitID:_0x391d67,type:_0x4d3847,revision:_0x287794=0x0}=_0x5efeed,_0x4e41d3=this[_0x2016e3(0x1bd)]()+'/'+_0x4d3847+_0x2016e3(0x3b8)+_0x391d67+_0x2016e3(0x1da)+(_0x287794===0x1?0x0:_0x287794),_0x52c5a3=(await this[_0x2016e3(0x434)][_0x2016e3(0x1de)](_0x4e41d3))['body'],_0x33f8a1=(_0x4a9aa8=_0x52c5a3['snapshot'])==null?void 0x0:_0x4a9aa8[_0x2016e3(0x2b6)];if(_0x33f8a1){const _0xfc2f39=_0x33f8a1==null?void 0x0:_0x33f8a1[_0x2016e3(0x160)],_0x2fcf5d=_0x592d59[_0x2016e3(0x2a4)][_0x2016e3(0x330)](_0x592d59[_0x2016e3(0x3d6)](_0xfc2f39));_0x33f8a1['originalMeta']=_0x2fcf5d,Object['entries'](_0x33f8a1[_0x2016e3(0x3e0)])['forEach'](([,_0x5f316d])=>{const _0x34717b=_0x2016e3,_0x418074=_0x5f316d[_0x34717b(0x160)],_0x4ee2b9=_0x592d59[_0x34717b(0x2a4)][_0x34717b(0x330)](_0x592d59['b64DecodeUnicode'](_0x418074));_0x5f316d[_0x34717b(0x160)]=_0x4ee2b9;});}return _0x52c5a3;}async[_0x1000c0(0x12a)](_0x2aaf6a,_0x5822ba){const _0x49dd37=_0x1000c0,{unitID:_0x338b20,type:_0x2b1b6b,blockID:_0x1febf7}=_0x5822ba,_0xbb2c46=this['_getAPIPrefix']()+'/'+_0x2b1b6b+_0x49dd37(0x3b8)+_0x338b20+_0x49dd37(0x416)+_0x1febf7;return(await this['_httpService'][_0x49dd37(0x1de)](_0xbb2c46))[_0x49dd37(0x3cf)];}async[_0x1000c0(0x38a)](_0x2a4ef4,_0xd1bc4a){const _0x3e5639=_0x1000c0,{unitID:_0xc016df,type:_0x251911,from:_0x498f3b,to:_0x156971}=_0xd1bc4a,_0x349b5d=this[_0x3e5639(0x48c)]()+'/'+_0x251911+_0x3e5639(0x3b8)+_0xc016df+'/fetchmissing?from='+_0x498f3b+'&to='+_0x156971;return(await this[_0x3e5639(0x434)][_0x3e5639(0x1de)](_0x349b5d))['body'];}[_0x1000c0(0x1bd)](){const _0x439bc3=_0x1000c0;var _0x321c8b;return(_0x321c8b=this[_0x439bc3(0x230)][_0x439bc3(0x393)](_0x3478c0))!=null?_0x321c8b:this[_0x439bc3(0x48c)]();}[_0x1000c0(0x48c)](){const _0x5f3d2b=_0x1000c0;var _0x34821a;return(_0x34821a=this[_0x5f3d2b(0x230)][_0x5f3d2b(0x393)](_0x4ba31f))!=null?_0x34821a:_0x14ea18;}async['getResourcesRequest'](_0x6c3f95,_0x393e3d){const _0x344c0b=_0x1000c0,_0x59db32='/universer-api/snapshot/'+_0x393e3d[_0x344c0b(0x49b)]+_0x344c0b(0x3b8)+_0x393e3d[_0x344c0b(0x10f)]+'/resources';return(await this[_0x344c0b(0x434)][_0x344c0b(0x1de)](_0x59db32,{'params':{'resourceId':JSON['stringify'](_0x393e3d[_0x344c0b(0x4b1)])}}))[_0x344c0b(0x3cf)];}['saveSnapshot'](){const _0x1c998d=_0x1000c0;throw new Error(_0x1c998d(0x3ea));}[_0x1000c0(0x4af)](){const _0x2d338f=_0x1000c0;throw new Error(_0x2d338f(0x3ea));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x21a4dd=_0x99c184([_0x4d29b6(0x0,_0x592d59['IConfigService']),_0x4d29b6(0x1,_0x1ea985[_0x1000c0(0x368)](_0x490a4f[_0x1000c0(0x4b0)]))],_0x21a4dd);var _0x5e09da=Object['defineProperty'],_0x51d61e=Object['getOwnPropertyDescriptor'],_0x45dfa1=(_0x101316,_0x4f0cf7,_0x8b9861,_0x58a2d8)=>{const _0x18d2c6=_0x1000c0;for(var _0x264030=_0x58a2d8>0x1?void 0x0:_0x58a2d8?_0x51d61e(_0x4f0cf7,_0x8b9861):_0x4f0cf7,_0x14bf94=_0x101316[_0x18d2c6(0x1d8)]-0x1,_0x424d36;_0x14bf94>=0x0;_0x14bf94--)(_0x424d36=_0x101316[_0x14bf94])&&(_0x264030=(_0x58a2d8?_0x424d36(_0x4f0cf7,_0x8b9861,_0x264030):_0x424d36(_0x264030))||_0x264030);return _0x58a2d8&&_0x264030&&_0x5e09da(_0x4f0cf7,_0x8b9861,_0x264030),_0x264030;},_0x4c12cc=(_0x407824,_0x464d4f)=>(_0x366c90,_0x415f5c)=>_0x464d4f(_0x366c90,_0x415f5c,_0x407824);let _0x2d43eb=class extends _0x592d59[_0x1000c0(0x10e)]{constructor(_0x560091,_0x3ab7c9,_0x4ae9c9,_0x5a9495,_0x5277db){const _0x982938=_0x1000c0;super(_0x560091,_0x3ab7c9,_0x4ae9c9),this[_0x982938(0x258)]=_0x5a9495,this[_0x982938(0x195)]=_0x5277db;}['transformUndoRedo'](_0x4215db,_0x1a58ae){const _0x12838d=_0x1000c0,_0x40bfc6=this[_0x12838d(0x179)](_0x4215db);if(_0x40bfc6)try{const _0x413561=this[_0x12838d(0x2a8)](_0x40bfc6,_0x1a58ae);this[_0x12838d(0x45c)](_0x4215db,_0x413561);}catch(_0x45ed4b){this[_0x12838d(0x195)][_0x12838d(0x343)]('[CollaborationUndoRedoService]',_0x45ed4b),this[_0x12838d(0x14a)](_0x4215db);}const _0x3069e8=this[_0x12838d(0x4cc)](_0x4215db);if(_0x3069e8)try{const _0xbad0a3=this['_transformStack'](_0x3069e8,_0x1a58ae);this[_0x12838d(0x42b)](_0x4215db,_0xbad0a3);}catch(_0x25c038){this['_logService'][_0x12838d(0x343)](_0x25c038),this[_0x12838d(0x21c)](_0x4215db);}}[_0x1000c0(0x14a)](_0x31aae4){const _0x5c4d72=_0x1000c0,_0x1ab4d6=this[_0x5c4d72(0x179)](_0x31aae4);_0x1ab4d6&&(_0x1ab4d6[_0x5c4d72(0x1d8)]=0x0,this[_0x5c4d72(0x476)]());}[_0x1000c0(0x21c)](_0x479587){const _0x147695=_0x1000c0,_0x54bc5c=this[_0x147695(0x4cc)](_0x479587);_0x54bc5c&&(_0x54bc5c[_0x147695(0x1d8)]=0x0,this[_0x147695(0x476)]());}[_0x1000c0(0x45c)](_0x3229b1,_0x1736b9){const _0x3dd805=_0x1000c0;this[_0x3dd805(0x1f0)][_0x3dd805(0x4c2)](_0x3229b1,_0x1736b9),this[_0x3dd805(0x476)]();}[_0x1000c0(0x42b)](_0x1a35a3,_0x3aaa52){const _0x3504c6=_0x1000c0;this['_redoStacks'][_0x3504c6(0x4c2)](_0x1a35a3,_0x3aaa52),this[_0x3504c6(0x476)]();}['_transformStack'](_0x50ad52,_0x341c40){const _0x283500=_0x1000c0,_0x33c4a3=[];let _0x3368b7=_0x341c40,_0x36f219=_0x341c40;for(let _0x2863cc=_0x50ad52[_0x283500(0x1d8)]-0x1;_0x2863cc>=0x0;_0x2863cc--){const {unitID:_0xfc4b1b,undoMutations:_0x2f7fdb,redoMutations:_0x2aa075}=_0x50ad52[_0x2863cc],_0x5a65fa=this[_0x283500(0x258)][_0x283500(0x436)](_0x3368b7,_0x2f7fdb),_0x59308d=this[_0x283500(0x258)][_0x283500(0x436)](_0x36f219,_0x2aa075);if(_0x1f6364['isTransformMutationsWithChangesetFailure'](_0x5a65fa)||_0x1f6364[_0x283500(0x420)](_0x59308d)){this[_0x283500(0x195)][_0x283500(0x343)]('[CollaborationUndoRedoService]',_0x283500(0x2d1),_0x5a65fa,_0x59308d);break;}_0x3368b7=_0x5a65fa['c1Prime'],_0x36f219=_0x59308d[_0x283500(0x396)],_0x33c4a3[_0x283500(0x1a6)]({'unitID':_0xfc4b1b,'undoMutations':_0x5a65fa['m2Prime'],'redoMutations':_0x59308d[_0x283500(0x315)]});}return _0x33c4a3['reverse']();}};_0x2d43eb=_0x45dfa1([_0x4c12cc(0x0,_0x592d59[_0x1000c0(0x305)]),_0x4c12cc(0x1,_0x592d59['ICommandService']),_0x4c12cc(0x2,_0x592d59[_0x1000c0(0x27e)]),_0x4c12cc(0x3,_0x1f6364[_0x1000c0(0x34e)]),_0x4c12cc(0x4,_0x592d59[_0x1000c0(0x1ef)])],_0x2d43eb);class _0x22522f extends _0x592d59['RxDisposable']{constructor(){const _0x35b81e=_0x1000c0;super(),_0x40dfd7(this,_0x35b81e(0x1b7)),this[_0x35b81e(0x1b7)]=_0x3c7a49['fromEvent'](window,_0x35b81e(0x23e))[_0x35b81e(0x161)](_0x3c7a49[_0x35b81e(0x3ca)](this['dispose$']),_0x3c7a49[_0x35b81e(0x325)](0x1),_0x3c7a49[_0x35b81e(0x1ad)](void 0x0));}[_0x1000c0(0x1ff)](_0x17c375,_0x221d5f,_0x1b97be=!0x1){const _0x49bfb6=_0x1000c0,_0x1918e8=new URL(window[_0x49bfb6(0x283)][_0x49bfb6(0x2b2)]);_0x1918e8['searchParams'][_0x49bfb6(0x4c2)](_0x17c375,_0x221d5f),_0x1b97be?window[_0x49bfb6(0x402)][_0x49bfb6(0x298)]('','',_0x1918e8['toString']()):window[_0x49bfb6(0x402)]['pushState']('','',_0x1918e8[_0x49bfb6(0x4a3)]());}[_0x1000c0(0x2d2)](_0x50a47a,_0x4d0312=!0x1){const _0x569bf=_0x1000c0,_0x575a03=new URL(window[_0x569bf(0x283)][_0x569bf(0x2b2)]);_0x575a03[_0x569bf(0x1a8)][_0x569bf(0x234)](_0x50a47a),_0x4d0312?window['history'][_0x569bf(0x298)]('','',_0x575a03['toString']()):window[_0x569bf(0x402)][_0x569bf(0x172)]('','',_0x575a03[_0x569bf(0x4a3)]());}['getParam'](_0x23e7da){const _0x3c90f5=_0x1000c0;var _0x4f3897;return(_0x4f3897=new URL(window[_0x3c90f5(0x283)][_0x3c90f5(0x2b2)])[_0x3c90f5(0x1a8)][_0x3c90f5(0x1de)](_0x23e7da))!=null?_0x4f3897:void 0x0;}}const _0x21d306=_0x1000c0(0x293),_0x3738bb=_0x1000c0(0x2a5),_0x506bda=0x6,_0x2db71e=1.5,_0x26449b=0x4,_0x28680e=1.5,_0x5ec182=_0x1000c0(0x4c3);class _0x14f476{constructor(_0x1a10c3,_0x512e7f,_0x38537e,_0x2fef5e){const _0x5a7750=_0x1000c0;_0x40dfd7(this,_0x5a7750(0x488),[]),_0x40dfd7(this,'_anchor',null),_0x40dfd7(this,'_textBubble',null),_0x40dfd7(this,_0x5a7750(0x466),null),_0x40dfd7(this,_0x5a7750(0x187),null),_0x40dfd7(this,'_eventUnsubscribe',null),(this['_cursor']=_0x1a10c3,this[_0x5a7750(0x4c6)]=_0x512e7f,this['_docSkeleton']=_0x38537e,this[_0x5a7750(0x3ce)]=_0x2fef5e,this[_0x5a7750(0x19b)]());}set['_hover'](_0x3377c9){const _0x3e1b39=_0x1000c0;_0x3377c9?(this['_anchorDot']&&this[_0x3e1b39(0x466)][_0x3e1b39(0x348)](),this[_0x3e1b39(0x47a)]&&this[_0x3e1b39(0x47a)][_0x3e1b39(0x2eb)]()):(this[_0x3e1b39(0x466)]&&this[_0x3e1b39(0x466)][_0x3e1b39(0x2eb)](),this[_0x3e1b39(0x47a)]&&this[_0x3e1b39(0x47a)]['hide']());}['dispose'](){const _0xcd5e7a=_0x1000c0;for(const _0xf5b4cd of this[_0xcd5e7a(0x488)])_0xf5b4cd[_0xcd5e7a(0x36f)]();this[_0xcd5e7a(0x47a)]&&this[_0xcd5e7a(0x47a)]['dispose'](),this[_0xcd5e7a(0x466)]&&this[_0xcd5e7a(0x466)][_0xcd5e7a(0x36f)](),this[_0xcd5e7a(0x1a3)]&&this[_0xcd5e7a(0x1a3)][_0xcd5e7a(0x36f)](),this[_0xcd5e7a(0x28b)]&&this[_0xcd5e7a(0x28b)]();}[_0x1000c0(0x19b)](){const _0x457551=_0x1000c0,{_docSkeleton:_0xec0150,_document:_0x4c62ee}=this,{color:_0x4c422b,name:_0x52cf13,ranges:_0x5681b6}=this[_0x457551(0x21b)],_0x174850=_0x4c62ee[_0x457551(0x498)](),{docsLeft:_0x160d81,docsTop:_0x330ea0}=_0x174850,_0x18c88e=new _0x5c59d0[(_0x457551(0x34a))](_0x174850,_0xec0150);for(const {startOffset:_0x358719,endOffset:_0x203557,collapsed:_0x392453,isActive:_0x3a8941}of _0x5681b6){const _0x272aa8=_0xec0150[_0x457551(0x3d1)](_0x358719),_0xcfabd6=_0xec0150[_0x457551(0x3d1)](_0x203557);if(_0x3a8941){const {contentBoxPointGroup:_0x1d32e5}=_0x18c88e[_0x457551(0x406)](_0xcfabd6,_0xcfabd6);if(_0x1d32e5[_0x457551(0x1d8)]===0x0)continue;this[_0x457551(0x3b3)](_0x4c422b,_0x1d32e5,_0x160d81,_0x330ea0,_0x52cf13),this[_0x457551(0x28b)]=this[_0x457551(0x4b3)]();}if(!_0x392453){const {contentBoxPointGroup:_0x4d096d}=_0x18c88e[_0x457551(0x406)](_0x272aa8,_0xcfabd6);if(_0x4d096d[_0x457551(0x1d8)]===0x0)continue;this['_drawRange'](_0x4c422b,_0x4d096d,_0x160d81,_0x330ea0);}}}['_drawAnchor'](_0x4efbd6,_0x431724,_0xc507da,_0x18a006,_0x4ebeaf){const _0x3ab92c=_0x1000c0,_0x57a5c2=this[_0x3ab92c(0x18f)](_0x431724),{left:_0x230b5f,top:_0x66113f,height:_0x5c33e3}=_0x57a5c2,_0x108ee3=this[_0x3ab92c(0x217)](),_0x44e71d=_0x28680e/_0x108ee3,_0x562825=new _0x5c59d0[(_0x3ab92c(0x29c))](_0x21d306+_0x592d59['Tools']['generateRandomId'](_0x506bda),{'left':_0x230b5f+_0xc507da-_0x44e71d,'top':_0x66113f+_0x18a006,'height':_0x5c33e3,'width':_0x2db71e,'fill':_0x4efbd6||_0x5c59d0[_0x3ab92c(0x395)](_0x592d59[_0x3ab92c(0x12e)]['black'],0x0),'strokeWidth':_0x44e71d,'stroke':_0x5ec182,'evented':!0x0});this[_0x3ab92c(0x1a3)]=_0x562825,this[_0x3ab92c(0x4c6)][_0x3ab92c(0x32d)](_0x562825,_0x5c59d0['TEXT_RANGE_LAYER_INDEX']);const _0x217340=new _0x5c59d0['Rect'](_0x21d306+_0x592d59[_0x3ab92c(0x33a)][_0x3ab92c(0x275)](_0x506bda),{'left':_0x230b5f+_0xc507da-_0x44e71d,'top':_0x66113f+_0x18a006-_0x26449b/0x2,'height':_0x26449b,'width':_0x26449b,'fill':_0x4efbd6||_0x5c59d0[_0x3ab92c(0x395)](_0x592d59[_0x3ab92c(0x12e)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x4efbd6||_0x5c59d0[_0x3ab92c(0x395)](_0x592d59['COLORS'][_0x3ab92c(0x1fa)],0x0),'evented':!0x1});this[_0x3ab92c(0x466)]=_0x217340,this[_0x3ab92c(0x4c6)][_0x3ab92c(0x32d)](_0x217340,_0x5c59d0['TEXT_RANGE_LAYER_INDEX']);const _0x319f90=new _0x49ec11(_0x21d306+_0x592d59[_0x3ab92c(0x33a)][_0x3ab92c(0x275)](_0x506bda),{'left':_0x230b5f+_0xc507da-_0x44e71d,'top':_0x66113f+_0x18a006-_0x201da5,'text':_0x4ebeaf,'color':_0x4efbd6});this[_0x3ab92c(0x47a)]=_0x319f90,this[_0x3ab92c(0x4c6)][_0x3ab92c(0x32d)](_0x319f90,_0x5c59d0[_0x3ab92c(0x135)]),this[_0x3ab92c(0x10c)]=!0x1;}['_handleHover'](){const _0x458fda=_0x1000c0,_0x334ba6=this['_anchor'][_0x458fda(0x2e4)][_0x458fda(0x2ea)](()=>{this['_hover']=!0x0;}),_0x594b44=this['_anchor'][_0x458fda(0x2c0)][_0x458fda(0x2ea)](()=>{const _0x271317=_0x458fda;this[_0x271317(0x187)]&&clearTimeout(this[_0x271317(0x187)]),this[_0x271317(0x187)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x24c24e=_0x458fda;_0x334ba6[_0x24c24e(0x22b)](),_0x594b44[_0x24c24e(0x22b)]();};}[_0x1000c0(0x294)](_0x539c44,_0x5a4c05,_0x4fc838,_0x476d23){const _0x4aae6c=_0x1000c0,_0x44953e=new _0x592d59[(_0x4aae6c(0x2a6))](_0x539c44)[_0x4aae6c(0x2ec)](0.2)[_0x4aae6c(0x480)](),_0x3ce5b2=new _0x5c59d0[(_0x4aae6c(0x15a))](_0x3738bb+_0x592d59[_0x4aae6c(0x33a)][_0x4aae6c(0x275)](_0x506bda),{'pointsGroup':_0x5a4c05,'fill':_0x44953e||_0x5c59d0[_0x4aae6c(0x395)](_0x592d59[_0x4aae6c(0x12e)][_0x4aae6c(0x1fa)],0.2),'left':_0x4fc838,'top':_0x476d23,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4aae6c(0x1a6)](_0x3ce5b2),this[_0x4aae6c(0x4c6)][_0x4aae6c(0x32d)](_0x3ce5b2,_0x5c59d0['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x55ece6){const _0x35e136=_0x55ece6[0x0],_0x4a7340=_0x35e136[0x0],_0x853833=_0x35e136[0x2],{x:_0x30e4fb,y:_0x57dfc1}=_0x4a7340,{x:_0x20b417,y:_0x4d40c0}=_0x853833;return{'left':_0x30e4fb,'top':_0x57dfc1,'width':_0x20b417-_0x30e4fb,'height':_0x4d40c0-_0x57dfc1};}[_0x1000c0(0x217)](){const _0x1ae755=_0x1000c0,{scaleX:_0x1e0eb3,scaleY:_0x33feb9}=this[_0x1ae755(0x4c6)]['getAncestorScale']();return Math[_0x1ae755(0x44e)](_0x1e0eb3,_0x33feb9);}}var _0x585164=Object[_0x1000c0(0x1a1)],_0x469e28=Object[_0x1000c0(0x2d4)],_0x33f626=(_0x1fc12b,_0x112dd9,_0x27b755,_0x4d3d4e)=>{const _0x2e509e=_0x1000c0;for(var _0x4437ff=_0x4d3d4e>0x1?void 0x0:_0x4d3d4e?_0x469e28(_0x112dd9,_0x27b755):_0x112dd9,_0x4bedbd=_0x1fc12b[_0x2e509e(0x1d8)]-0x1,_0x325a1f;_0x4bedbd>=0x0;_0x4bedbd--)(_0x325a1f=_0x1fc12b[_0x4bedbd])&&(_0x4437ff=(_0x4d3d4e?_0x325a1f(_0x112dd9,_0x27b755,_0x4437ff):_0x325a1f(_0x4437ff))||_0x4437ff);return _0x4d3d4e&&_0x4437ff&&_0x585164(_0x112dd9,_0x27b755,_0x4437ff),_0x4437ff;},_0x2af8ac=(_0xae4afc,_0x2071f0)=>(_0x528fe1,_0x5719f0)=>_0x2071f0(_0x528fe1,_0x5719f0,_0xae4afc);let _0x524941=class extends _0x592d59['RxDisposable']{constructor(_0x2a8d7b,_0x315242,_0x18e412,_0x38b381,_0x3c8a66){const _0x44e9e3=_0x1000c0;super(),_0x40dfd7(this,_0x44e9e3(0x20e),[]),(this[_0x44e9e3(0x3eb)]=_0x2a8d7b,this['_univerInstanceService']=_0x315242,this[_0x44e9e3(0x333)]=_0x18e412,this[_0x44e9e3(0x4a4)]=_0x38b381,this[_0x44e9e3(0x478)]=_0x3c8a66,this['_init']());}[_0x1000c0(0x224)](){const _0x50a96c=_0x1000c0;this[_0x50a96c(0x4a4)][_0x50a96c(0x1d1)]['pipe'](_0x39f29f[_0x50a96c(0x3ca)](this[_0x50a96c(0x338)]),_0x39f29f['switchMap'](_0x1480b9=>{const _0x3e3ca8=_0x50a96c;if(_0x1480b9){const _0x339271=_0x1480b9[_0x3e3ca8(0x267)]()[_0x3e3ca8(0x214)]()[_0x3e3ca8(0x270)]();return _0x3c7a49[_0x3e3ca8(0x303)](this[_0x3e3ca8(0x3eb)]['getCollabCursors$'](_0x339271),this[_0x3e3ca8(0x478)]['currentTheme$'])['pipe'](_0x39f29f[_0x3e3ca8(0x1f5)](([_0x2c7cfa,_0xd55e01])=>({'skeleton':_0x1480b9,'cursors':[..._0x2c7cfa[_0x3e3ca8(0x38c)]()][_0x3e3ca8(0x415)](_0xa8264e=>({..._0xa8264e,'color':_0xd55e01[_0xa8264e[_0x3e3ca8(0x2a0)]]}))})));}return _0x3c7a49['of']({'skeleton':null,'cursors':[]});}))[_0x50a96c(0x42f)](({skeleton:_0x53e98e,cursors:_0x24cdd0})=>{const _0xa5c628=_0x50a96c;this['_removeCollabCursors'](),_0x53e98e&&this[_0xa5c628(0x2e2)](_0x53e98e,_0x24cdd0);});}[_0x1000c0(0x2e2)](_0x8fcdba,_0x167ec9){const _0x433b46=_0x1000c0,_0x3713b3=this[_0x433b46(0x1ae)]();if(_0x3713b3==null)return;const {scene:_0x3d9e4e,document:_0x5bf2ba}=_0x3713b3,_0x3d24f2=_0x167ec9['map'](_0x284499=>new _0x14f476(_0x284499,_0x3d9e4e,_0x8fcdba,_0x5bf2ba));this[_0x433b46(0x20e)]=_0x3d24f2;}[_0x1000c0(0x4c9)](){const _0x1b58a7=_0x1000c0;this['_cursors']['forEach'](_0x32f415=>_0x32f415[_0x1b58a7(0x36f)]()),this[_0x1b58a7(0x20e)]=[];}[_0x1000c0(0x1ae)](){const _0x1001de=_0x1000c0;return _0x30cc49[_0x1001de(0x412)](this[_0x1001de(0x40b)],this[_0x1001de(0x333)]);}};_0x524941=_0x33f626([_0x592d59['OnLifecycle'](_0x592d59[_0x1000c0(0x1c7)][_0x1000c0(0x4cf)],_0x524941),_0x2af8ac(0x0,_0x1ea985[_0x1000c0(0x368)](_0xc137f8)),_0x2af8ac(0x1,_0x592d59['IUniverInstanceService']),_0x2af8ac(0x2,_0x5c59d0[_0x1000c0(0x36a)]),_0x2af8ac(0x3,_0x1ea985[_0x1000c0(0x368)](_0x30cc49[_0x1000c0(0x37c)])),_0x2af8ac(0x4,_0x1ea985[_0x1000c0(0x368)](_0x592d59[_0x1000c0(0x125)]))],_0x524941);var _0x321025=Object[_0x1000c0(0x1a1)],_0x66c3e3=Object[_0x1000c0(0x2d4)],_0x56c29c=(_0x32a2ab,_0x6551c8,_0x3c584d,_0x4a32ea)=>{const _0x171a6d=_0x1000c0;for(var _0x5318b4=_0x4a32ea>0x1?void 0x0:_0x4a32ea?_0x66c3e3(_0x6551c8,_0x3c584d):_0x6551c8,_0x4ef15f=_0x32a2ab[_0x171a6d(0x1d8)]-0x1,_0x4a4e2b;_0x4ef15f>=0x0;_0x4ef15f--)(_0x4a4e2b=_0x32a2ab[_0x4ef15f])&&(_0x5318b4=(_0x4a32ea?_0x4a4e2b(_0x6551c8,_0x3c584d,_0x5318b4):_0x4a4e2b(_0x5318b4))||_0x5318b4);return _0x4a32ea&&_0x5318b4&&_0x321025(_0x6551c8,_0x3c584d,_0x5318b4),_0x5318b4;},_0x1ba060=(_0xb84d92,_0x5658c3)=>(_0xe73b4a,_0x39775f)=>_0x5658c3(_0xe73b4a,_0x39775f,_0xb84d92);let _0x565a53=class{constructor(_0x37effa,_0x5dc2a5,_0x3b3e35){const _0x50f1c8=_0x1000c0;this[_0x50f1c8(0x230)]=_0x37effa,this['_httpService']=_0x5dc2a5,this[_0x50f1c8(0x413)]=_0x3b3e35,this[_0x50f1c8(0x150)]();}['init'](){const _0x1d9367=_0x1000c0;this['_httpService'][_0x1d9367(0x20b)]({'priority':0x1,'interceptor':(_0x44350c,_0x4e5ae5)=>_0x4e5ae5(_0x44350c)[_0x1d9367(0x161)](_0x3c7a49['concatMap'](async _0x30242f=>{const _0x358ed7=_0x1d9367,_0x5e5c99=_0x30242f;if(_0x5e5c99['status']===0x191&&window['confirm'](this[_0x358ed7(0x413)]['t'](_0x358ed7(0x1ca)))){const _0x185174=window[_0x358ed7(0x276)](window[_0x358ed7(0x283)][_0x358ed7(0x2b2)]);window['location'][_0x358ed7(0x2b2)]=this[_0x358ed7(0x3f8)]()+_0x358ed7(0x337)+_0x185174;}return _0x5e5c99;}))});}[_0x1000c0(0x3f8)](){const _0x38d5e4=_0x1000c0;var _0x1e70b7;return(_0x1e70b7=this[_0x38d5e4(0x230)][_0x38d5e4(0x393)](_0x24179b))!=null?_0x1e70b7:_0x21698b;}};_0x565a53=_0x56c29c([_0x1ba060(0x0,_0x592d59[_0x1000c0(0x41f)]),_0x1ba060(0x1,_0x1ea985[_0x1000c0(0x368)](_0x490a4f[_0x1000c0(0x4b0)])),_0x1ba060(0x2,_0x1ea985[_0x1000c0(0x368)](_0x592d59[_0x1000c0(0x279)]))],_0x565a53);var _0x44f474=Object['defineProperty'],_0x81d61c=Object[_0x1000c0(0x2d4)],_0x805759=(_0x20b8c6,_0xa7d94f,_0x29798b,_0x1aac6a)=>{for(var _0x4e1009=_0x1aac6a>0x1?void 0x0:_0x1aac6a?_0x81d61c(_0xa7d94f,_0x29798b):_0xa7d94f,_0x4c557c=_0x20b8c6['length']-0x1,_0x3ed1cc;_0x4c557c>=0x0;_0x4c557c--)(_0x3ed1cc=_0x20b8c6[_0x4c557c])&&(_0x4e1009=(_0x1aac6a?_0x3ed1cc(_0xa7d94f,_0x29798b,_0x4e1009):_0x3ed1cc(_0x4e1009))||_0x4e1009);return _0x1aac6a&&_0x4e1009&&_0x44f474(_0xa7d94f,_0x29798b,_0x4e1009),_0x4e1009;},_0x17dbe9=(_0x1e16d2,_0x588bbf)=>(_0x16b1d8,_0x5759c3)=>_0x588bbf(_0x16b1d8,_0x5759c3,_0x1e16d2);const _0x2b07b8=_0x1000c0(0x463),_0x31d49f='/universer-api/authz';_0x322d5b[_0x1000c0(0x430)]=class{constructor(_0x213d16,_0x1212d6){const _0x53f6d7=_0x1000c0;this[_0x53f6d7(0x2b9)]=_0x213d16,this['_configService']=_0x1212d6;}['_getAPIPrefixPath'](){const _0x7dea57=_0x1000c0;var _0x24733f;return(_0x24733f=this[_0x7dea57(0x230)][_0x7dea57(0x393)](_0x2b07b8))!=null?_0x24733f:_0x31d49f;}async[_0x1000c0(0x3c0)](_0x1f9c08){const _0x4f6ad7=_0x1000c0,_0x3cb453=this['_getAPIPrefixPath']()+'/'+_0x1f9c08['objectType']+_0x4f6ad7(0x194);return(await this[_0x4f6ad7(0x2b9)]['post'](_0x3cb453,{'body':_0x1f9c08}))[_0x4f6ad7(0x3cf)]['objectID']||'';}async[_0x1000c0(0x1df)](_0x5cc3b6){const _0x4ef467=_0x1000c0,_0xec2e15=this['_getAPIPrefixPath']()+'/-/object/list';return(await this['_HTTPService']['post'](_0xec2e15,{'body':_0x5cc3b6}))['body'][_0x4ef467(0x46a)];}async['update'](_0x5c79bb){const _0xfdde05=_0x1000c0,_0x305dbd=this[_0xfdde05(0x2c6)]()+'/'+_0x5c79bb[_0xfdde05(0x2ad)]+_0xfdde05(0x4d6)+_0x5c79bb[_0xfdde05(0x30e)];await this[_0xfdde05(0x2b9)]['put'](_0x305dbd,{'body':_0x5c79bb});}async[_0x1000c0(0x3fd)](_0x2eee16){const _0x20a6d0=_0x1000c0,_0x10ddb3=this['_getAPIPrefixPath']()+'/'+_0x2eee16[_0x20a6d0(0x2ad)]+_0x20a6d0(0x4d6)+_0x2eee16[_0x20a6d0(0x30e)]+'/allowed';return(await this[_0x20a6d0(0x2b9)][_0x20a6d0(0x33c)](_0x10ddb3,{'body':_0x2eee16}))[_0x20a6d0(0x3cf)][_0x20a6d0(0x24f)];}async['batchAllowed'](_0x33621c){const _0x953b74=_0x1000c0,_0x2f2ccc=this[_0x953b74(0x2c6)]()+_0x953b74(0x379);return(await this['_HTTPService']['post'](_0x2f2ccc,{'body':{'requests':_0x33621c}}))[_0x953b74(0x3cf)]['objectActions'];}async[_0x1000c0(0x37a)](_0x53656a){const _0x2e194b=_0x1000c0,_0x9e0493=this['_getAPIPrefixPath']()+'/'+_0x53656a[_0x2e194b(0x2ad)]+_0x2e194b(0x1e5),_0x2c4c37=await this[_0x2e194b(0x2b9)]['post'](_0x9e0493,{'body':_0x53656a});return{'roles':_0x2c4c37[_0x2e194b(0x3cf)][_0x2e194b(0x492)],'actions':_0x2c4c37[_0x2e194b(0x3cf)][_0x2e194b(0x24f)]};}async[_0x1000c0(0xf8)](_0x227d7f){const _0x19bb8d=_0x1000c0,_0x16bfa1=this['_getAPIPrefixPath']()+_0x19bb8d(0x414);await this[_0x19bb8d(0x2b9)]['delete'](_0x16bfa1,{'params':{'collaboratorID':_0x227d7f[_0x19bb8d(0x3bd)],'objectID':_0x227d7f['objectID'],'unitID':_0x227d7f[_0x19bb8d(0x10f)]}});}async[_0x1000c0(0x344)](_0xab6d0c){const _0x13e7d6=_0x1000c0,_0x3874e0=this[_0x13e7d6(0x2c6)]()+_0x13e7d6(0x414);await this[_0x13e7d6(0x2b9)][_0x13e7d6(0x3be)](_0x3874e0,{'body':_0xab6d0c});}async[_0x1000c0(0x203)](_0x4ecbe0){const _0xc6541f=_0x1000c0,_0x39fe00=this[_0xc6541f(0x2c6)]()+'/collaborator';await this[_0xc6541f(0x2b9)][_0xc6541f(0x33c)](_0x39fe00,{'body':_0x4ecbe0});}async[_0x1000c0(0x367)](_0x3c0c44){const _0x169021=_0x1000c0,_0x52be22=this[_0x169021(0x2c6)]()+_0x169021(0x414);return(await this['_HTTPService'][_0x169021(0x1de)](_0x52be22,{'params':{'objectID':_0x3c0c44[_0x169021(0x30e)],'unitID':_0x3c0c44['unitID']}}))[_0x169021(0x3cf)][_0x169021(0x2d7)];}async[_0x1000c0(0x1c5)](_0x3edc18){const _0x32645f=_0x1000c0,_0x4e97ad=this[_0x32645f(0x2c6)]()+_0x32645f(0x414);await this[_0x32645f(0x2b9)]['put'](_0x4e97ad,{'body':_0x3edc18});}},_0x322d5b[_0x1000c0(0x430)]=_0x805759([_0x17dbe9(0x0,_0x1ea985[_0x1000c0(0x368)](_0x490a4f[_0x1000c0(0x4b0)])),_0x17dbe9(0x1,_0x1ea985[_0x1000c0(0x368)](_0x592d59[_0x1000c0(0x41f)]))],_0x322d5b[_0x1000c0(0x430)]);var _0x5c31dc=Object['defineProperty'],_0x4e1ec5=Object['getOwnPropertyDescriptor'],_0x57e363=(_0x3aadf0,_0x1e5f1d,_0xad909a,_0xe7be)=>{const _0x77a2e5=_0x1000c0;for(var _0x5a9245=_0xe7be>0x1?void 0x0:_0xe7be?_0x4e1ec5(_0x1e5f1d,_0xad909a):_0x1e5f1d,_0x3c5987=_0x3aadf0[_0x77a2e5(0x1d8)]-0x1,_0x51f94b;_0x3c5987>=0x0;_0x3c5987--)(_0x51f94b=_0x3aadf0[_0x3c5987])&&(_0x5a9245=(_0xe7be?_0x51f94b(_0x1e5f1d,_0xad909a,_0x5a9245):_0x51f94b(_0x5a9245))||_0x5a9245);return _0xe7be&&_0x5a9245&&_0x5c31dc(_0x1e5f1d,_0xad909a,_0x5a9245),_0x5a9245;},_0x39d37c=(_0x3b58da,_0x3f7fc8)=>(_0x5083dc,_0x45953b)=>_0x3f7fc8(_0x5083dc,_0x45953b,_0x3b58da);const _0x1cd68a=[_0x1000c0(0x2bb),_0x1000c0(0x4a2),_0x1000c0(0x376),_0x1000c0(0x1cd),_0x1000c0(0x1d4)],_0x40c14a=0x5*0x400*0x400,_0x126eaa=_0x1000c0(0x285),_0x1c51e0=_0x1000c0(0x23f),_0x3184f1=_0x1000c0(0x2e8),_0x426cbc=_0x1000c0(0x1bc);let _0x1c3e30=class{constructor(_0x1d6efd,_0x1fabb0){const _0x17c426=_0x1000c0;_0x40dfd7(this,'_waitCount',0x0),_0x40dfd7(this,_0x17c426(0x484),new _0x3c7a49['Subject']()),_0x40dfd7(this,_0x17c426(0x17e),this['_change$']),_0x40dfd7(this,_0x17c426(0x109),new Map()),(this[_0x17c426(0x434)]=_0x1d6efd,this['_configService']=_0x1fabb0);}[_0x1000c0(0x1d3)](_0x60eccb){const _0x2bdeb1=_0x1000c0;this[_0x2bdeb1(0x216)]=_0x60eccb,this[_0x2bdeb1(0x484)][_0x2bdeb1(0x117)](_0x60eccb);}['getImageSourceCache'](_0x23495f,_0x2f72fe){const _0x127aa2=_0x1000c0;if(_0x2f72fe===_0x3b3d9c['ImageSourceType'][_0x127aa2(0x39e)]){const _0xfd706c=new Image();return _0xfd706c[_0x127aa2(0x31c)]=_0x23495f,_0xfd706c;}return this[_0x127aa2(0x109)][_0x127aa2(0x1de)](_0x23495f);}[_0x1000c0(0x2dd)](_0x3969ac,_0x400992,_0x5df407){const _0x2b0db4=_0x1000c0;_0x400992===_0x3b3d9c[_0x2b0db4(0x1d9)]['BASE64']||_0x5df407==null||this[_0x2b0db4(0x109)][_0x2b0db4(0x4c2)](_0x3969ac,_0x5df407);}async[_0x1000c0(0x2be)](_0xe93dc4){const _0x2ef9eb=_0x1000c0;try{const _0x3afdb5=this[_0x2ef9eb(0x39b)](this[_0x2ef9eb(0x25b)](),''+_0xe93dc4),_0x1b0a13=(await this['_httpService']['get'](_0x3afdb5))[_0x2ef9eb(0x3cf)];return _0x1b0a13[_0x2ef9eb(0x343)]&&_0x1b0a13['error']['code']===_0x39c634['OK']?Promise[_0x2ef9eb(0x439)](_0x1b0a13[_0x2ef9eb(0x231)]):Promise[_0x2ef9eb(0x432)](_0x1b0a13[_0x2ef9eb(0x343)]);}catch(_0x5ad112){return Promise['reject'](_0x5ad112);}}async['saveImage'](_0x193d6e){const _0x4d34d4=_0x1000c0;let _0x4a44d5='';if(!_0x1cd68a[_0x4d34d4(0x482)](_0x193d6e[_0x4d34d4(0x49b)]))return this[_0x4d34d4(0x1e4)](),Promise[_0x4d34d4(0x432)](new Error(_0x3b3d9c[_0x4d34d4(0x400)][_0x4d34d4(0x310)]));if(_0x193d6e[_0x4d34d4(0x237)]>_0x40c14a)return this['_decreaseWaiting'](),Promise['reject'](new Error(_0x3b3d9c[_0x4d34d4(0x400)][_0x4d34d4(0x271)]));try{const _0x2b9d58=new FormData();_0x2b9d58[_0x4d34d4(0x1ab)]('file',_0x193d6e);const _0x3589c9=this[_0x4d34d4(0x22a)]()+_0x4d34d4(0x383)+_0x193d6e[_0x4d34d4(0x237)][_0x4d34d4(0x4a3)](),_0x1935a6=await(await fetch(_0x3589c9,{'method':_0x4d34d4(0x221),'body':_0x2b9d58}))[_0x4d34d4(0x23b)]();if(typeof _0x1935a6[_0x4d34d4(0x2f2)]!=_0x4d34d4(0x422))return this[_0x4d34d4(0x1e4)](),Promise[_0x4d34d4(0x432)](new Error(_0x3b3d9c['ImageUploadStatusType'][_0x4d34d4(0x40d)]));_0x4a44d5=_0x1935a6[_0x4d34d4(0x2f2)];}catch{return this[_0x4d34d4(0x1e4)](),Promise['reject'](new Error(_0x3b3d9c[_0x4d34d4(0x400)]['ERROR_IMAGE']));}return new Promise((_0x5e136f,_0x3c2023)=>{const _0x2dd256=_0x4d34d4,_0x768c0a=new FileReader();_0x768c0a[_0x2dd256(0x111)](_0x193d6e),_0x768c0a['onload']=_0xf37bc7=>{const _0x87a17f=_0x2dd256;var _0x1e1b26;const _0x1fcacf=(_0x1e1b26=_0xf37bc7[_0x87a17f(0x2b4)])==null?void 0x0:_0x1e1b26[_0x87a17f(0x170)];if(_0x1fcacf==null){this[_0x87a17f(0x1e4)](),_0x3c2023(new Error(_0x3b3d9c[_0x87a17f(0x400)]['ERROR_IMAGE']));return;}const _0x1498b6=_0x592d59[_0x87a17f(0x33a)][_0x87a17f(0x275)](0x6);_0x5e136f({'imageId':_0x1498b6,'imageSourceType':_0x3b3d9c[_0x87a17f(0x1d9)]['UUID'],'source':_0x4a44d5,'base64Cache':_0x1fcacf,'status':_0x3b3d9c[_0x87a17f(0x400)][_0x87a17f(0x31e)]}),this[_0x87a17f(0x1e4)]();};});}[_0x1000c0(0x22a)](){const _0x27d475=_0x1000c0;var _0x3e6644;return(_0x3e6644=this[_0x27d475(0x230)][_0x27d475(0x393)](_0x126eaa))!=null?_0x3e6644:_0x1c51e0;}['_getSignURL'](){const _0x5de03f=_0x1000c0;var _0x2778cb;return(_0x2778cb=this[_0x5de03f(0x230)][_0x5de03f(0x393)](_0x3184f1))!=null?_0x2778cb:_0x426cbc;}[_0x1000c0(0x39b)](_0x1dbbe3,_0xbcdaf1){const _0x168297=_0x1000c0;return _0x1dbbe3[_0x168297(0x164)]('{fileID}',_0xbcdaf1);}[_0x1000c0(0x1e4)](){const _0x44deb9=_0x1000c0;this[_0x44deb9(0x216)]-=0x1,this[_0x44deb9(0x484)][_0x44deb9(0x117)](this[_0x44deb9(0x216)]);}};_0x1c3e30=_0x57e363([_0x39d37c(0x0,_0x1ea985[_0x1000c0(0x368)](_0x490a4f[_0x1000c0(0x4b0)])),_0x39d37c(0x1,_0x592d59[_0x1000c0(0x41f)])],_0x1c3e30);var _0x490821=Object[_0x1000c0(0x1a1)],_0x5ee236=Object[_0x1000c0(0x2d4)],_0x2370bf=(_0x1eecbb,_0x56c6c6,_0x3ea297)=>_0x56c6c6 in _0x1eecbb?_0x490821(_0x1eecbb,_0x56c6c6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ea297}):_0x1eecbb[_0x56c6c6]=_0x3ea297,_0x540fda=(_0xbf8689,_0x262718,_0x909a0b,_0x68fd6a)=>{for(var _0x48f9a4=_0x68fd6a>0x1?void 0x0:_0x68fd6a?_0x5ee236(_0x262718,_0x909a0b):_0x262718,_0x5ccf4e=_0xbf8689['length']-0x1,_0x1eb740;_0x5ccf4e>=0x0;_0x5ccf4e--)(_0x1eb740=_0xbf8689[_0x5ccf4e])&&(_0x48f9a4=(_0x68fd6a?_0x1eb740(_0x262718,_0x909a0b,_0x48f9a4):_0x1eb740(_0x48f9a4))||_0x48f9a4);return _0x68fd6a&&_0x48f9a4&&_0x490821(_0x262718,_0x909a0b,_0x48f9a4),_0x48f9a4;},_0x5889aa=(_0xa8cd26,_0x231e38)=>(_0x30f17e,_0x2dcdf3)=>_0x231e38(_0x30f17e,_0x2dcdf3,_0xa8cd26),_0x5674a0=(_0x26f970,_0x278be7,_0x113a8b)=>_0x2370bf(_0x26f970,_0x278be7+'',_0x113a8b);const _0x1d21f0='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x322d5b[_0x1000c0(0x32a)]=class extends _0x592d59[_0x1000c0(0x3fa)]{constructor(_0xc4bc2e,_0x137f2f,_0x238577){const _0xdc06a1=_0x1000c0;super(),this[_0xdc06a1(0x362)]=_0xc4bc2e,this['_logService']=_0x137f2f,this['_injector']=_0x238577;}['onStarting'](_0x1c4faf){const _0x1659ef=_0x1000c0;var _0x55a591,_0x200a5a,_0x47ab5b,_0x3dd719,_0x2f9460;_0x1c4faf[_0x1659ef(0x321)](_0x592d59['IUndoRedoService'])&&this[_0x1659ef(0x195)][_0x1659ef(0x343)](_0x1659ef(0x4ab),_0x1659ef(0x46f));let _0x3047c0=[[_0x592d59[_0x1659ef(0x116)],{'useClass':_0x2d43eb}],[_0x322d5b[_0x1659ef(0x272)]],[_0x3c16e5],[_0x490a4f[_0x1659ef(0x4b0)]],[_0x30215f,{'useClass':_0x22522f}],[_0x2539c6],[_0x322d5b[_0x1659ef(0x24c)]],[_0x490a4f[_0x1659ef(0x27a)]],[_0x20fcca],[_0x12dda8],[_0x38f511],[_0x148177],[_0x565a53],[_0x3c2f54],[_0x81d796,{'useClass':(_0x200a5a=(_0x55a591=this['_config'])==null?void 0x0:_0x55a591[_0x1659ef(0x358)])!=null?_0x200a5a:_0x322d5b['CollaborationSocketService']}],[_0x490a4f[_0x1659ef(0x26b)],{'useClass':_0x490a4f[_0x1659ef(0x3c1)]}],[_0x592d59[_0x1659ef(0x460)],{'useClass':_0x21a4dd}],[_0x592d59[_0x1659ef(0x1fc)],{'useClass':_0x322d5b[_0x1659ef(0x430)]}],[_0x3b3d9c[_0x1659ef(0x17c)],{'useClass':_0x1c3e30}],[_0x322d5b['CollaborationController']],[_0x322d5b['DataLoaderController']],[_0x322d5b[_0x1659ef(0x144)]],[_0x23508c],[_0xc137f8]];(_0x47ab5b=this[_0x1659ef(0x362)])!=null&&_0x47ab5b[_0x1659ef(0x419)]&&_0x3047c0['push']([_0x1572dd,{'useClass':_0x24ef9a}]),((_0x3dd719=this[_0x1659ef(0x362)])==null?void 0x0:_0x3dd719['collaborationUniverTypes'])==null||this[_0x1659ef(0x362)][_0x1659ef(0x1dd)][_0x1659ef(0x482)](_0x592d59['UniverInstanceType'][_0x1659ef(0x149)])?_0x3047c0['push']([_0x480b36]):this[_0x1659ef(0x362)][_0x1659ef(0x1dd)][_0x1659ef(0x482)](_0x592d59['UniverInstanceType'][_0x1659ef(0x119)])&&_0x3047c0[_0x1659ef(0x1a6)]([_0x524941]),_0x3047c0=_0x592d59[_0x1659ef(0x444)](_0x3047c0,(_0x2f9460=this[_0x1659ef(0x362)])==null?void 0x0:_0x2f9460[_0x1659ef(0x3c4)]),_0x3047c0['forEach'](_0x278b64=>_0x1c4faf[_0x1659ef(0x290)](_0x278b64)),_0x1c4faf[_0x1659ef(0x1de)](_0x490a4f[_0x1659ef(0x4b0)])[_0x1659ef(0x20b)]({'priority':0x14,'interceptor':_0x490a4f[_0x1659ef(0x17b)]({'maxParallel':0x6})}),this[_0x1659ef(0x175)]();}['_initModules'](){const _0x218620=_0x1000c0;var _0xffc4b8,_0x54a60f;(_0xffc4b8=this[_0x218620(0x362)])!=null&&_0xffc4b8[_0x218620(0x3ef)]||this['_injector'][_0x218620(0x1de)](_0x322d5b['LocalCacheService'])[_0x218620(0x3e8)](),(_0x54a60f=this[_0x218620(0x362)])!=null&&_0x54a60f[_0x218620(0x297)]&&this[_0x218620(0x27f)]['get'](_0x565a53);}},_0x5674a0(_0x322d5b[_0x1000c0(0x32a)],_0x1000c0(0x346),_0x1d21f0),_0x322d5b[_0x1000c0(0x32a)]=_0x540fda([_0x592d59[_0x1000c0(0x280)](_0x1f6364[_0x1000c0(0x16d)]),_0x5889aa(0x1,_0x592d59[_0x1000c0(0x1ef)]),_0x5889aa(0x2,_0x1ea985[_0x1000c0(0x368)](_0x1ea985[_0x1000c0(0x3ee)]))],_0x322d5b['UniverCollaborationClientPlugin']),_0x322d5b['AUTHZ_URL_KEY']=_0x2b07b8,_0x322d5b[_0x1000c0(0x222)]=_0x50bca1,_0x322d5b['COLLAB_WEB_SOCKET_URL_KEY']=_0x1ed340,_0x322d5b[_0x1000c0(0x409)]=_0x3e6f91,_0x322d5b[_0x1000c0(0xff)]=_0x1d230a,_0x322d5b[_0x1000c0(0x142)]=_0x3c2f54,_0x322d5b[_0x1000c0(0x2fc)]=_0x415ece,_0x322d5b[_0x1000c0(0x300)]=_0x22e7f5,_0x322d5b[_0x1000c0(0x2ba)]=_0x81d796,_0x322d5b[_0x1000c0(0x36b)]=_0x30215f,_0x322d5b[_0x1000c0(0x12d)]=_0x5cb089,_0x322d5b[_0x1000c0(0x381)]=_0x24179b,_0x322d5b[_0x1000c0(0x494)]=_0x48f0d1,_0x322d5b[_0x1000c0(0x457)]=_0x4ba31f,_0x322d5b[_0x1000c0(0x380)]=_0x3478c0,_0x322d5b['SessionStatus']=_0x28f044,_0x322d5b[_0x1000c0(0x1fd)]=_0x22522f,_0x322d5b['deserializeToCombResponse']=_0x339084,_0x322d5b[_0x1000c0(0x11b)]=_0x488cf7,Object['defineProperty'](_0x322d5b,Symbol[_0x1000c0(0x446)],{'value':_0x1000c0(0x407)});}));function _0x492d(_0xc57c64,_0x3f26ef){const _0x23bd23=_0x23bd();return _0x492d=function(_0x492da9,_0x5d9a4a){_0x492da9=_0x492da9-0xf6;let _0x2504a4=_0x23bd23[_0x492da9];return _0x2504a4;},_0x492d(_0xc57c64,_0x3f26ef);}function _0x23bd(){const _0x59b3ec=['isTransformChangesetsSuccess','_replaceFileID','newValue','RevisionService','BASE64','url(#on-line-single_clip0_910_349)','status$','_startSheetCollabCursor','amd','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','onlineStatusTitle','all','HEARTBEAT','VIEWPORT_KEY','APPLY_NON_SEQUENTIAL_REVISION','HELLO','_clearLocalCache','_compressMutationService','setCurrentUser','818676jYcWky','_session','ALREADY_EXISTS','_initStatusListener','beginPath','univer-online','_drawAnchor','PERMISSION_DENIED','idSuffix','drawWith','editing\x20status\x20changed\x20to','/unit/','_unlockTransition','awaitingChangeset','getSelections','HEARTBEAT_INTERVAL','collaboratorID','patch','_isPermissionRej','create','XHRHTTPImplementation','setTimeout','_labelPosition','override','getActiveSheet','_queuedRemoteChangesets','_transformIMECache','UniverSheetsUi','NOT_COLLAB','takeUntil','updateOfflineData','forwardRef','DeleteRangeMoveLeftCommandId','_document','body','FromArray','findNodePositionByCharIndex','_commentUpdate$','createElement','collabStatus.offline','filter','b64DecodeUnicode','_urlService','_onCursorUpdate','clipPath','univerjs-icon\x20univerjs-icon-','UniverCollaborationClient','6qsTrSC','React','className','SetTextSelectionsOperation','sheets','0\x200\x2016\x2016','getRoom','EffectRefRangId','_colorAssignService','random','YUUMI_UNABLE_LOAD_URL','name','disableLocalCache','getAncestorScale','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_collabCursorController','icon','SnapshotService','Injector','enableOfflineEditing','handleIRemoveCol','measureText','apply','collabStatus.conflict','MessageType','[PendingState]:\x20unhandled\x20univer\x20type:\x20','\x20in\x20_schedule.','_lastPointer','_getLoginPath','_scheduleReconnection','Plugin','error$','0\x200\x2017\x2016','allowed','transformIMECache','range','ImageUploadStatusType','_commandService','history','UniverDesign','_onRemoteACK','[CollaborationSessionService]:\x20socket\x20error','getRangePointData','Module','collaboration-client.offline-data-not-saved','CollaborationStatus','_heartbeatTimer','_univerInstanceService','_roomMembers$','ERROR_IMAGE','isArray','INVALID_ARGUMENT','_retryConnectingTimer','IMessageService','getDocObject','localeService','/collaborator','flatMap','/block/','_sessions','code','enableSingleActiveInstanceLock','connection\x20error','_updateLocalCache','socket\x20close','react','@univerjs/drawing','IConfigService','isTransformMutationsWithChangesetFailure','whenReady','string','isTransformMutationFailure','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_id','selection','open$','_clearTimeoutTimer','_onCombEvent','_onUserJoin','_substituteRedoStack','labelPosition','min','handleInsertCol','subscribe','AuthzIoHttpService','_refRangeService','reject','UNKNOWN_CMD','_httpService','[OfflineState]:\x20received\x20changeset.','transformMutationsWithChangeset','InsertSheetMutation','_docStateChangeManagerService','resolve','fromEvent','closePath','skeleton','top','_acknowledgedAwaitingChangeset','syncEditingCollabCursor','slice','then','COMPRESS_MUTATION_APPLY','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','mergeOverrideWithDependencies','uni.network.url-service','toStringTag','Error','hovered','getSheetId','isEditing','_lockTransition','_joinRoom','_sessionStatus$','max','_assignedColors','Disposable','clearTimeout','function','trim','onTransformRemoteChangesetByIMECache','removeMember','saveOfflineData','SNAPSHOT_SERVER_URL_KEY','CompressMutationService','setShapeProps','RefRangeService','off-line-single','_substituteUndoStack','DocStateChangeManagerService','LOCAL_CACHE_INTERVAL','/new_changes','ISnapshotServerService','Ready','updateCursorEvent','AUTHZ_URL_KEY','width','commentUpdate$','_anchorDot','registerBeforeClose','_updateLocalCursor','parseProtocolChangeset','objects','_setupBeforeClosingHandler','addEventListener','fetch_missing','NO_OTHER_CLIENTS_EDITING','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','submit\x20changeset\x20error!','SelectionManagerService','routeKey','_toggleOnline','_clearScheduledTask','changesets','_updateStatus','UNIVER_SLIDE','_themeService','collabCursorState$','_textBubble','OnLifecycle','PENDING','_collaborationController','mapDocumentTypeToUniverType','LIVESHARE_FETCH_OPERATIONS','toRgbString','getOwnPropertySymbols','includes','cursorInfo','_change$','from','split','[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.','_shapes','conflict.title','transformByState','RichTextEditingMutation','_getAPIPrefix','univer-pro.collaboration-client-socket-service','@wendellhu/redi','fillStyle','_scheduleHeartbeat','[CollaborationSessionService]','roles','3952688ZCBiAp','SEND_CHANGESET_TIMEOUT_KEY','_tryEnsureSocket','failed\x20to\x20apply\x20missed\x20changesets!','_onConflict','getOffsetConfig','LICENSE_MAX_UNITS_EXCEEDED','_createInitialStateImpl','type','m1Prime','_onFetchMissResult','Optional','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_sheetSkeletonManagerService','_color','image/jpeg','toString','_docSkeletonManagerService','OFFLINE','APPLY_REJECT','_socketReady','getCollabEntity$','UniverRpc','memberID','[UniverCollaborationClientPlugin]','editingUnit','univer-offline','debounce','saveSheetBlock','HTTPService','resourceIDs','@univerjs/network','_handleHover','session.collaboration-timeout','complete','SetSelectionsOperation','_transformRemoteChangesetByIMECache','SEND_CHANGESET_TIMEOUT','RemoveColCommandId','getTime','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','YUUMI_URL_COL_OUT_OF_RANGE','_scheduleTimestamp','unit','leaveEvent','TextSelectionManagerService','useDependency','set','rgba(255,\x20255,\x20255,\x200.01)','BuiltInUIPart','fillText','_scene','_getSheetObject','_updateState','_removeCollabCursors','_messageService','synced','_getRedoStack','startColumn','COLLAB_WEB_SOCKET_URL','Steady','UNIVER_UNKNOWN','onSendChangeset','getActiveRange','rev','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','url(#$1','/object/','session.will-retry','InsertRangeMoveRightCommandId','unit-cache-','path','_replayCachedMutations','LEAVE','deleteCollaborator','makeDirty','_members','lineTo','online','_scheduleSaving','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','CollaborationStatusDisplay','restore','endColumn','_waitForHeartbeatResponse','@univerjs/engine-render','Vector2','OTHER_CLIENTS_EDITING','1em','appendMutation','[PendingState]:\x20received\x20acknowledgement.','_imageSourceCache','entries','setItem','_hover','_sendHeartbeat','LocalUndoRedoService','unitID','INTERNAL_ERROR','readAsDataURL','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','resend','_clearCollaborationTimeoutTimer','state','IUndoRedoService','next','defs','UNIVER_DOC','useRef','serializeCombRequest','CollaborationSocketService','_initStatusComponent','currentColor','_singleActiveUnitService','_draw','#FFF','mutations','_socket$','_onRecvEvent','ThemeService','getRenderById','LIVESHARE_REQUEST_HOST','@wendellhu/redi/react-bindings','session','getSheetBlock','_notificationService','_pendingMutations','LOCAL_CACHE_INTERVAL_KEY','COLORS','onMissedChangesetFetched','toggleOffline','ICommandService','getSheetObject','USERS_LEAVE','createInstance','TEXT_RANGE_LAYER_INDEX','getViewport','CommandType','_transitionLocked','INGEST','take','createIdentifier','liveShareNewHost','_userManagerService','getTypeOfUnitAdded$','_transformUndoRedoStack','_localCacheService','UniverEngineRender','CommentService','unshift','DesktopCollaborationStatusDisplayController','svg','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','_permissionService','onlineStatus','UNIVER_SHEET','_clearUndo','isActive','csRejEvent','registerComponent','_colorIndex','colorChannel1','init','LIVESHARE_OPERATION','_saveCache','fetching\x20missing\x20changesets\x20from\x20','sheetId','\x20to\x20','FETCH_MISS','UPDATE_CURSOR','parseChangesetToProtocol','CollaborationEvent','RegularPolygon','addObjects','getUnitOnRev','_toggleOffline','fill','_disableEditing','originalMeta','pipe','_onUserLeave','joinRsp','replace','INotificationService','APPLY_PERMISSION_DENIED','jiqing500','sequenceExecute','InsertRowCommandId','send','_socketMessageSubscription','_submitChangeset','UniverCollaborationPlugin','_scheduleCollaborationTimeoutTimer','handleDeleteRangeMoveLeft','result','_removeRoom','pushState','Warning','serializeTextRange','_initModules','_onRemoteRejected','_docTransformIMECacheService','onCommandExecuted','_getUndoStack','ILocalStorageService','ThresholdInterceptorFactory','IImageIoService','UNDEFINED','change$','Starting','isTransformMutationsWithChangesetSuccess','registerOnClose','unload','interceptor','DeleteRangeMoveUpCommandId','_transformUndoredo','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_hideTimer','_updateURLWithCurrentState','_executeRemoteChangeset','object','_sendHeartbeatTimer','[FetchMissState]','MSG_FOR_ERROR','onStateChange','_getAnchorBounding','SNAPSHOT_HAS_BEEN_REMOVED','onMouseMove','DataLoaderController','@univerjs/sheets-ui','/object','_logService','_transformSelections','TOO_MANY_REQUESTS','/universer-api/oidc/authpage','stringify','onTransformIME','_render','_sheetTransformSelectionsService','getItem','executeCommand','liveShareOperation','[CollaborationEntity]','defineProperty','getParam','_anchor','currentTheme$','getUnitStatus$','push','InsertColCommandId','searchParams','getSheetBySheetId','runRefRangeMutations','append','height','mapTo','_getDocObject','getCurrent','DEFAULT_FILE_NAME','_removeClearOtherTimer','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','assignAColorForMemberID','1241247kexWfE','UniverInstanceType','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','urlChange$','2504292tGueLh','[SyncedState]:\x20received\x20rejection.','rxjs','getFocusedUnit','/universer-api/file/{fileID}/sign-url','_getSnapshotAPIPrefix','off-line-single_clip0_910_343','#fff','_startCollaboration','onlineStatusIcon','requireSession','2829415VhEloN','UniverCore','putCollaborators','sheetID','LifecycleStages','_applyRemoteChangeset','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','auth.needGotoLoginAlert','RemoveRowCommandId','getMember','image/gif','attrs','distinctUntilChanged','handleMoveRange','currentSkeleton$','_sendingTimer','setWaitCount','image/bmp','CHANGESET_ACK','UniverUi','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','length','ImageSourceType','/rev/','18wHQSFE','IBeforeCloseService','collaborationUniverTypes','get','list','_revisionService','getInterceptPoints','_getCurrentRevision','_cachedData','_decreaseWaiting','/role','use','PSEUDO_FETCH_MISSING_RESULT','COMPRESS_MUTATION_SEND','handleInsertRangeMoveRight','_docTransformSelectionsService','_collaborationPaused','params','collabStatus.fetchMiss','cursorInfo$','ILogService','_undoStacks','ranges','unknown','_ensureSubject','arc','map','RETRY_CONNECTING_MAX_COUNT','defIds','font','UniverCollaboration','black','_unitOnClients','IAuthzIoService','WebURLService','HEARTBEAT_TIMEOUT','setParam','CollaborationController','collaMsg','IRemoteInstanceService','createCollaborator','delay','transformSelections','_incrementRevisionNumber','[OfflineState]:\x20received\x20rejection.','Shape','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','conflict','registerHTTPInterceptor','_transformPreviousActiveRange','updatePermissionPoint','_cursors','[OfflineState]:\x20received\x20acknowledgement.','HEADER_MENU','_undoRedoService','_createHandler','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','getDataModel','disposeWithMe','_waitCount','_getScale','_localStorageService','@univerjs/ui','focused$','_cursor','_clearRedo','selections','getValue','[CollaborationState]:\x20apply\x20error!','getUnitType','POST','COLLAB_SUBMIT_CHANGESET_URL_KEY','newCsEvent','_init','row','_clearOtherTimers','AWAITING_WITH_PENDING','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','text','_getUploadFileURL','unsubscribe','[SyncedState]:\x20received\x20acknowledgement.','@univerjs/sheets','sessionStatus','startRow','_configService','url','setInterval','_awaitingChangeset','delete','textRanges','doc.mutation.rich-text-editing','size','UniverEngineFormula','loadOfflineData','subunit','json','_docSyncEditingCollabCursorService','UNKNOWN_CODE','popstate','/universer-api/stream/file/upload','univer-pro.collaboration-client.single-active-unit-service','JOIN','LIVESHARE_NEW_HOST','ONLINE','_loadSheet','VIEW_MAIN','onRemoteAck','NOT_FOUND','_loadDoc','_name','_checkMissing','forEach','LocalCacheService','_onLocalMutation','_hovered','actions','save\x20fail\x20reason\x20is\x20','children','_handleHeartbeatEvent','event$','div','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','@univerjs-pro/collaboration','_state','_transformService','clsx','_snapshotServerService','_getSignURL','getCellPositionByOffset','createSocket','CONFLICT','_unitStatus','_syncEditingCollabCursorService','handleIRemoveRow','updateMember','eventID','activeSheet$','_beforeCloseService','call','getViewModel','fillRule','onRemoteChangeset','_getCtorByUniverType','IHTTPImplementation','save','onCommentUpdate','_onRemoteChangeset','_snapshotService','getUnitId','ERROR_EXCEED_SIZE','CollaborationSessionService','column','NEW_CHANGESETS','generateRandomId','encodeURIComponent','getCurrentUser','getCollabEntity','LocaleService','WebSocketService','_socketService','UniverNetwork','FAIL','IContextService','_injector','DependentOn','parse','hasOwnProperty','location','OffLineSingle','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_selfUnitIDs','OnLineSingle','userID','onSyncEditingCollabCursor','@univerjs/engine-formula','_eventUnsubscribe','cmd','session.connection-failed','_startDocCollabCursor','_disabled','add','url(#off-line-single_clip0_910_343)','state$','collab-text-anchor-','_drawRange','getCoordByCell','USERS_ENTER','enableAuthServer','replaceState','_roomMembers','_http','unitId','Rect','getRelativeCoord','_memberService','toDisposable','color','_localeService','_exhaustRemoteChangesetQueue','title','textEncoder','collab-text-range-','ColorKit','roomMembers','_transformStack','UniverDocs','transformMutation','_scheduleClearOtherTimer','_onRefRangeChange','objectType','collabStatus.synced','_ws','_send','c2Prime','href','_handleJoinEvent','target','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','workbook','exports','none','_HTTPService','ICollaborationSocketService','image/png','_uiPartsService','revision','getImage','_createInitialState','onPointerLeave$','extend','isPermissionRej','round','_syncEditingCollabCursor','deepClone','_getAPIPrefixPath','_handler','_collabSessionService','clearInterval','_saveTaskMap','transformChangesets','_onMessage','RxDisposable','_entities','purple300','Unknown\x20user','transformStack\x20failed!','removeParam','tag','getOwnPropertyDescriptor','xlink:href','pending','collaborators','4489835WFMXiJ','deserializeRangeWithSheet','lodash/debounce','handleDeleteRangeMoveUp','UserManagerService','addImageSourceCache','disposeUnit','_unitID','sessionStatus$','getCollabCursors$','_updateCollabCursors','@univerjs/design','onPointerEnter$','[PendingState]:\x20received\x20rejection.','setActiveRange','moveTo','EXCHANGE_SIGN_URL_SERVER_URL_KEY','assign','subscribeEvent','show','setAlpha','LIVESHARE_TERMINATE','indexOf','_handleLeaveEvent','CollaborationSession','close','FileId','_clearHeartbeatTimer','IDLE','_onJoinRoomEvent','onRemoteRej','_timeoutTimer','CHANGESET_REVISION_CONFILICT','_setupSubUnitSync','CONNECTOR_DATA_TOO_LARGE','offline','HEARTBEAT_INTERVAL_KEY','_showConflictNotification','ACTIVE_UNIT_EVENT_CHANNEL','RECV','HEARTBEAT_TIMEOUT_KEY','...','rxjs/operators','combineLatest','WorkbookEditablePermission','IUniverInstanceService','MUTATION','catch','evenodd','on-line-single_clip0_910_349','_collaborationTimeoutTimer','getUnhiddenWorksheets','_event$','displayName','objectID','merge','ERROR_IMAGE_TYPE','SUBMIT_CHANGESET','toggleOnline','RETRY_CONNECTING_INTERVAL','data','m2Prime','useObservable','_status$','_commentService','PERMISSION_REJ','_exhaustSavingTask','triggerDblclick','src','_cursorInfo$','SUCCUSS','message$','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','has','transformRemoteChangeset','onMissingChangesets','UNRECOGNIZED','shareReplay','getUndoRedoMutationParamsCache','enableLocalCache','concat','CHANGESET_REJ','UniverCollaborationClientPlugin','switchMap','asObservable','addObject','_schedule','status','encode','COMMENT_UPDATE','getUniverSheetInstance','_renderManagerService','bottom','getCurrentRevForDocument','socket\x20open.','?url=','dispose$','contains','Tools','Subject','post','FETCH_MISSING','IMEInputManagerService','baseRev','849914NtqIHA','getTypeOfUnitDisposed$','_state$','error','updateCollaborator','registerRefRange','pluginName','_remoteChangesetQueue','hide','_type','NodePositionConvertToCursor','collabStatus.syncing','_unitId','endRow','ITransformService','subUnitId','onTransformSelections','Error\x20on\x20receiving\x20event','_handleEvent','UNAUTHENTICATED','LICENSE_EXPORT_SIZE_EXCEEDED','LICENSE_DISTRO_REJECTED','AWAITING','_onConnectionFailed','socketService','M0\x200H16V16H0z','serializeRangeWithSheet','@univerjs/rpc','getMemberID','fromCollab','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','BehaviorSubject','incrementRevForDocument','permission.content','_config','SheetSkeletonManagerService','@univerjs/docs','MoveRangeCommandId','_getSaveTimeout','listCollaborators','Inject','pauseCollaboration','IRenderManagerService','IURLService','_createSocket','[DataLoaderController]','_range','dispose','clear','loadSheet','collaboration.single-unit.warning','_rescheduleHeartbeatEvent','_socket','_retryCount','image/jpg','_fetchMissChangesets','IPermissionService','/-/object/-/batch_allowed','listRoles','debounceTime','DocSkeletonManagerService','_onCursorDelete','_online','_getSendChangesetTimeout','SNAPSHOT_URL_KEY','LOGIN_URL_KEY','transformUndoRedo','?size=','debug','fetchThroughInterceptors','_onConnectionOpen','_updateSubUnitFromURLParams','SetWorksheetActivateCommand','prototype','fetchMissingChangesets','_entityInit$','values','awaiting','_collabCursorState$','@univerjs/core','awaiting_with_pending','collabStatus.notCollab','APPLY_REVISION_CONFILICT','getConfig','docStateChange$','getColor','c1Prime','gold400','some','UniverDrawing'];_0x23bd=function(){return _0x59b3ec;};return _0x23bd();}
|
1
|
+
(function(_0x44d8f9,_0x932317){const _0x420e45=_0x231b,_0x233837=_0x44d8f9();while(!![]){try{const _0x35df7b=parseInt(_0x420e45(0x4f5))/0x1*(parseInt(_0x420e45(0x484))/0x2)+parseInt(_0x420e45(0x503))/0x3+parseInt(_0x420e45(0x4ac))/0x4+parseInt(_0x420e45(0x39d))/0x5+parseInt(_0x420e45(0x34f))/0x6*(parseInt(_0x420e45(0x54d))/0x7)+-parseInt(_0x420e45(0x409))/0x8+parseInt(_0x420e45(0x322))/0x9*(-parseInt(_0x420e45(0x323))/0xa);if(_0x35df7b===_0x932317)break;else _0x233837['push'](_0x233837['shift']());}catch(_0x542aae){_0x233837['push'](_0x233837['shift']());}}}(_0x54ee,0xca856),function(_0x3fd7fe,_0x44e17f){const _0x1f865f=_0x231b;typeof exports==_0x1f865f(0x45e)&&typeof module<'u'?_0x44e17f(exports,require(_0x1f865f(0x44d)),require(_0x1f865f(0x1b1)),require(_0x1f865f(0x477)),require('@univerjs/ui'),require(_0x1f865f(0x27b)),require('@wendellhu/redi'),require(_0x1f865f(0x209)),require('rxjs/operators'),require(_0x1f865f(0x49b)),require(_0x1f865f(0x2f8)),require(_0x1f865f(0x1ef)),require(_0x1f865f(0x283)),require('lodash/debounce'),require(_0x1f865f(0x2a6)),require('@univerjs/sheets-ui'),require(_0x1f865f(0x207)),require(_0x1f865f(0x364)),require(_0x1f865f(0x52d)),require(_0x1f865f(0x476))):typeof define==_0x1f865f(0x227)&&define['amd']?define([_0x1f865f(0x1fc),_0x1f865f(0x44d),_0x1f865f(0x1b1),_0x1f865f(0x477),_0x1f865f(0x2ea),_0x1f865f(0x27b),_0x1f865f(0x435),'rxjs',_0x1f865f(0x4b2),'@univerjs/docs',_0x1f865f(0x2f8),'@univerjs/drawing',_0x1f865f(0x283),_0x1f865f(0x34b),_0x1f865f(0x2a6),_0x1f865f(0x2ba),_0x1f865f(0x207),_0x1f865f(0x364),_0x1f865f(0x52d),_0x1f865f(0x476)],_0x44e17f):(_0x3fd7fe=typeof globalThis<'u'?globalThis:_0x3fd7fe||self,_0x44e17f(_0x3fd7fe[_0x1f865f(0x3aa)]={},_0x3fd7fe[_0x1f865f(0x4cf)],_0x3fd7fe['UniverSheets'],_0x3fd7fe[_0x1f865f(0x31c)],_0x3fd7fe[_0x1f865f(0x377)],_0x3fd7fe[_0x1f865f(0x553)],_0x3fd7fe[_0x1f865f(0x435)],_0x3fd7fe[_0x1f865f(0x209)],_0x3fd7fe[_0x1f865f(0x209)][_0x1f865f(0x232)],_0x3fd7fe['UniverDocs'],_0x3fd7fe[_0x1f865f(0x286)],_0x3fd7fe['UniverDrawing'],_0x3fd7fe['UniverEngineFormula'],_0x3fd7fe['lodash'][_0x1f865f(0x3d0)],_0x3fd7fe['UniverEngineRender'],_0x3fd7fe[_0x1f865f(0x2b6)],_0x3fd7fe[_0x1f865f(0x207)],_0x3fd7fe['React'],_0x3fd7fe['clsx'],_0x3fd7fe[_0x1f865f(0x4e2)]));}(this,function(_0x2dfa89,_0x39562f,_0x552a78,_0x7ca5b0,_0x38d129,_0x244d6f,_0x46d633,_0x1fa2ab,_0x53520c,_0x239a47,_0x403cff,_0x384179,_0xcaf925,_0x3a249e,_0x4f56df,_0x2818a9,_0x142e82,_0x1dd502,_0x2aa9a5,_0x51a864){'use strict';const _0xb9a23e=_0x231b;var _0x48c242=Object['defineProperty'],_0x54cc36=(_0x8f22f9,_0x5b3d38,_0x4109f4)=>_0x5b3d38 in _0x8f22f9?_0x48c242(_0x8f22f9,_0x5b3d38,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4109f4}):_0x8f22f9[_0x5b3d38]=_0x4109f4,_0x3e3dad=(_0x3d2f9f,_0x48c383,_0x17056f)=>_0x54cc36(_0x3d2f9f,typeof _0x48c383!='symbol'?_0x48c383+'':_0x48c383,_0x17056f);const _0x91342='SNAPSHOT_SERVER_URL_KEY',_0x4c81a9=_0xb9a23e(0x2c4),_0x3e0532='SNAPSHOT_URL_KEY',_0x477c27='SEND_CHANGESET_TIMEOUT',_0x63fe38=_0xb9a23e(0x417),_0x567fd6=_0xb9a23e(0x1bc),_0x323501='HEARTBEAT_INTERVAL',_0x74042e=_0xb9a23e(0x45b),_0x1a300a=_0xb9a23e(0x4aa),_0x21cbf5=_0xb9a23e(0x46f),_0x339ff6=_0xb9a23e(0x3b2),_0x1d614f='COLLAB_SUBMIT_CHANGESET_URL',_0x2e6fd4=_0xb9a23e(0x529),_0x156e4d=_0xb9a23e(0x299),_0x2fff92='/universer-api/oidc/authpage';var _0x59b333=(_0x32638a=>(_0x32638a[_0x32638a[_0xb9a23e(0x29d)]=0x0]=_0xb9a23e(0x29d),_0x32638a[_0x32638a['OK']=0x1]='OK',_0x32638a[_0x32638a['INTERNAL_ERROR']=0x2]=_0xb9a23e(0x368),_0x32638a[_0x32638a[_0xb9a23e(0x2b3)]=0x3]='PERMISSION_DENIED',_0x32638a[_0x32638a['NOT_FOUND']=0x4]=_0xb9a23e(0x566),_0x32638a[_0x32638a[_0xb9a23e(0x1aa)]=0x5]=_0xb9a23e(0x1aa),_0x32638a[_0x32638a[_0xb9a23e(0x247)]=0x6]=_0xb9a23e(0x247),_0x32638a[_0x32638a['INVALID_ARGUMENT']=0x7]=_0xb9a23e(0x21e),_0x32638a[_0x32638a[_0xb9a23e(0x4da)]=0x8]=_0xb9a23e(0x4da),_0x32638a[_0x32638a['COMPLETION_FINISHED']=0x9]=_0xb9a23e(0x3e9),_0x32638a[_0x32638a[_0xb9a23e(0x39a)]=0x1389]=_0xb9a23e(0x39a),_0x32638a[_0x32638a[_0xb9a23e(0x36c)]=0x1771]=_0xb9a23e(0x36c),_0x32638a[_0x32638a[_0xb9a23e(0x498)]=0x1772]=_0xb9a23e(0x498),_0x32638a[_0x32638a['APPLY_REJECT']=0x1b59]=_0xb9a23e(0x1af),_0x32638a[_0x32638a['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0xb9a23e(0x517),_0x32638a[_0x32638a['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x32638a[_0x32638a['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x32638a[_0x32638a['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0xb9a23e(0x3c3),_0x32638a[_0x32638a[_0xb9a23e(0x48d)]=0x2329]=_0xb9a23e(0x48d),_0x32638a[_0x32638a[_0xb9a23e(0x3f0)]=0x232a]=_0xb9a23e(0x3f0),_0x32638a[_0x32638a[_0xb9a23e(0x455)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x32638a[_0x32638a[_0xb9a23e(0x1f3)]=0x232c]=_0xb9a23e(0x1f3),_0x32638a[_0x32638a['LICENSE_DISTRO_REJECTED']=0x232d]=_0xb9a23e(0x2ab),_0x32638a[_0x32638a[_0xb9a23e(0x4ca)]=0x2711]=_0xb9a23e(0x4ca),_0x32638a[_0x32638a[_0xb9a23e(0x43b)]=0x2712]=_0xb9a23e(0x43b),_0x32638a[_0x32638a[_0xb9a23e(0x3a1)]=-0x1]=_0xb9a23e(0x3a1),_0x32638a))(_0x59b333||{}),_0x55e05d=(_0x26a294=>(_0x26a294[_0x26a294['UNIVER_UNKNOWN']=0x0]=_0xb9a23e(0x440),_0x26a294[_0x26a294[_0xb9a23e(0x49f)]=0x1]=_0xb9a23e(0x49f),_0x26a294[_0x26a294[_0xb9a23e(0x40a)]=0x2]=_0xb9a23e(0x40a),_0x26a294[_0x26a294['UNIVER_SLIDE']=0x3]=_0xb9a23e(0x279),_0x26a294[_0x26a294[_0xb9a23e(0x3a1)]=-0x1]=_0xb9a23e(0x3a1),_0x26a294))(_0x55e05d||{}),_0x4ef664=(_0x34f6ca=>(_0x34f6ca[_0x34f6ca[_0xb9a23e(0x3ab)]=0x0]='UNKNOWN_CMD',_0x34f6ca[_0x34f6ca[_0xb9a23e(0x4a7)]=0x1]=_0xb9a23e(0x4a7),_0x34f6ca[_0x34f6ca[_0xb9a23e(0x295)]=0x2]=_0xb9a23e(0x295),_0x34f6ca[_0x34f6ca[_0xb9a23e(0x4ce)]=0x3]=_0xb9a23e(0x4ce),_0x34f6ca[_0x34f6ca['INGEST']=0x4]=_0xb9a23e(0x1d2),_0x34f6ca[_0x34f6ca[_0xb9a23e(0x2b0)]=0x5]=_0xb9a23e(0x2b0),_0x34f6ca[_0x34f6ca[_0xb9a23e(0x4ad)]=0x6]=_0xb9a23e(0x4ad),_0x34f6ca[_0x34f6ca[_0xb9a23e(0x3a1)]=-0x1]=_0xb9a23e(0x3a1),_0x34f6ca))(_0x4ef664||{}),_0x27c7a2=(_0xba8c39=>(_0xba8c39[_0xba8c39[_0xb9a23e(0x40b)]=0x0]=_0xb9a23e(0x40b),_0xba8c39[_0xba8c39['OK']=0x1]='OK',_0xba8c39[_0xba8c39['FAIL']=0x2]='FAIL',_0xba8c39[_0xba8c39[_0xb9a23e(0x3a1)]=-0x1]='UNRECOGNIZED',_0xba8c39))(_0x27c7a2||{}),_0x3310d6=Object[_0xb9a23e(0x38b)],_0x893d1d=Object[_0xb9a23e(0x2ed)],_0x1f8ede=(_0x1bb4fd,_0x195388,_0x151984,_0x110bdd)=>{const _0x1eb0d3=_0xb9a23e;for(var _0x21f54b=_0x110bdd>0x1?void 0x0:_0x110bdd?_0x893d1d(_0x195388,_0x151984):_0x195388,_0x3c961a=_0x1bb4fd[_0x1eb0d3(0x480)]-0x1,_0x36f3b1;_0x3c961a>=0x0;_0x3c961a--)(_0x36f3b1=_0x1bb4fd[_0x3c961a])&&(_0x21f54b=(_0x110bdd?_0x36f3b1(_0x195388,_0x151984,_0x21f54b):_0x36f3b1(_0x21f54b))||_0x21f54b);return _0x110bdd&&_0x21f54b&&_0x3310d6(_0x195388,_0x151984,_0x21f54b),_0x21f54b;},_0x5baa10=(_0x592bfe,_0x3d1040)=>(_0x4a472d,_0x4d6a22)=>_0x3d1040(_0x4a472d,_0x4d6a22,_0x592bfe);let _0x3eae2a=class extends _0x39562f[_0xb9a23e(0x4bf)]{constructor(_0x2cb73a,_0x26ed0d){const _0x98292b=_0xb9a23e;super(),_0x3e3dad(this,_0x98292b(0x3cd),new Map()),(this['_univerInstanceService']=_0x2cb73a,this[_0x98292b(0x35a)]=_0x26ed0d,this[_0x98292b(0x28a)](_0x39562f[_0x98292b(0x3e2)](_0x1fa2ab[_0x98292b(0x4dd)](this['_univerInstanceService'][_0x98292b(0x37e)](_0x39562f['UniverInstanceType'][_0x98292b(0x40a)])[_0x98292b(0x24a)](_0x53520c[_0x98292b(0x3e3)](_0x48bbdd=>_0x48bbdd[_0x98292b(0x37c)]())),this[_0x98292b(0x328)][_0x98292b(0x37e)](_0x39562f[_0x98292b(0x1ad)]['UNIVER_DOC'])['pipe'](_0x53520c[_0x98292b(0x3e3)](_0x34efac=>_0x34efac[_0x98292b(0x37c)]())),this[_0x98292b(0x328)][_0x98292b(0x37e)](_0x39562f[_0x98292b(0x1ad)][_0x98292b(0x279)])['pipe'](_0x53520c['map'](_0x331d0e=>_0x331d0e['getUnitId']())))[_0x98292b(0x282)](_0x190bd2=>this[_0x98292b(0x369)](_0x190bd2)))));}[_0xb9a23e(0x431)](_0x1e2058){const _0x5010d5=_0xb9a23e;this[_0x5010d5(0x35a)][_0x5010d5(0x431)](_0x1e2058);}[_0xb9a23e(0x3f5)](){const _0x46b5fe=_0xb9a23e;return this['_userManagerService'][_0x46b5fe(0x3f5)]();}[_0xb9a23e(0x4b4)](_0x3c1b71,_0x3e0a6c){const _0x221153=_0xb9a23e;let _0x5185a3=this[_0x221153(0x3cd)][_0x221153(0x3a6)](_0x3c1b71);_0x5185a3||(_0x5185a3=new _0x52124f(),this[_0x221153(0x3cd)][_0x221153(0x3b1)](_0x3c1b71,_0x5185a3)),_0x5185a3[_0x221153(0x4b4)](_0x3e0a6c);}[_0xb9a23e(0x562)](_0x59f87c,_0x1df4aa){const _0x4000cf=_0xb9a23e,_0x1ecf6b=this[_0x4000cf(0x3cd)][_0x4000cf(0x3a6)](_0x59f87c);_0x1ecf6b&&_0x1ecf6b[_0x4000cf(0x562)](_0x1df4aa);}[_0xb9a23e(0x2a2)](_0x4c5810){const _0x20e280=_0xb9a23e;return this[_0x20e280(0x3cd)][_0x20e280(0x3a6)](_0x4c5810);}[_0xb9a23e(0x41f)](_0x53565a,_0x3dee2e){const _0x5904d5=_0xb9a23e,_0x2fddf9=this[_0x5904d5(0x3cd)][_0x5904d5(0x3a6)](_0x53565a);if(_0x2fddf9)return _0x2fddf9[_0x5904d5(0x41f)](_0x3dee2e);}[_0xb9a23e(0x369)](_0x4ca4f9){const _0x75b33d=_0xb9a23e,_0xf86efc=this[_0x75b33d(0x3cd)][_0x75b33d(0x3a6)](_0x4ca4f9);_0xf86efc&&(_0xf86efc[_0x75b33d(0x51e)](),this[_0x75b33d(0x3cd)][_0x75b33d(0x319)](_0x4ca4f9));}['dispose'](){const _0x17aeb5=_0xb9a23e;this[_0x17aeb5(0x3cd)]['forEach'](_0x2ad2d7=>_0x2ad2d7[_0x17aeb5(0x51e)]()),this['_roomMembers'][_0x17aeb5(0x439)]();}};_0x3eae2a=_0x1f8ede([_0x5baa10(0x0,_0x39562f[_0xb9a23e(0x2d6)]),_0x5baa10(0x1,_0x46d633[_0xb9a23e(0x2a5)](_0x39562f[_0xb9a23e(0x3f8)]))],_0x3eae2a);class _0x52124f extends _0x39562f[_0xb9a23e(0x4bf)]{constructor(){const _0x193c12=_0xb9a23e;super(...arguments),_0x3e3dad(this,_0x193c12(0x425),new Map());}[_0xb9a23e(0x51e)](){const _0x3522bb=_0xb9a23e;this[_0x3522bb(0x425)][_0x3522bb(0x439)]();}[_0xb9a23e(0x4b4)](_0x36f2cd){const _0x3fb266=_0xb9a23e;this[_0x3fb266(0x425)]['set'](_0x36f2cd[_0x3fb266(0x382)],_0x36f2cd);}['removeMember'](_0x37e02f){const _0x28e6cc=_0xb9a23e;this[_0x28e6cc(0x425)][_0x28e6cc(0x319)](_0x37e02f);}[_0xb9a23e(0x41f)](_0x67524f){const _0x36122b=_0xb9a23e;return this[_0x36122b(0x425)]['get'](_0x67524f);}}function _0x5ed143(_0x2110df){const _0x1822e2=_0xb9a23e;var _0x260877,_0x3a5dae,_0x147984,_0x3df53e;const _0x1f2044=_0x2110df[_0x1822e2(0x3df)],_0x560339=JSON[_0x1822e2(0x256)](_0x1f2044);switch(_0x560339[_0x1822e2(0x4e0)]){case _0x4ef664[_0x1822e2(0x2b0)]:case _0x4ef664[_0x1822e2(0x4a7)]:{const _0x34cf51=_0x560339['infoRsp'];return{..._0x560339,'data':_0x34cf51,'cmd':_0x560339['cmd']};}case _0x4ef664[_0x1822e2(0x295)]:{const _0x267e60=_0x560339[_0x1822e2(0x2f2)];return{..._0x560339,'data':_0x267e60,'cmd':_0x560339['cmd']};}case _0x4ef664[_0x1822e2(0x4ad)]:{const _0x3863b8=_0x560339[_0x1822e2(0x534)];switch(_0x3863b8[_0x1822e2(0x414)]){case _0x244d6f[_0x1822e2(0x42f)][_0x1822e2(0x46c)]:return{..._0x560339,'data':{..._0x3863b8,'data':(_0x260877=_0x3863b8[_0x1822e2(0x4b8)])==null?void 0x0:_0x260877['cs']},'cmd':_0x560339[_0x1822e2(0x4e0)]};case _0x244d6f[_0x1822e2(0x42f)][_0x1822e2(0x2e6)]:return{..._0x560339,'data':{..._0x3863b8,'data':(_0x3a5dae=_0x3863b8[_0x1822e2(0x1bd)])==null?void 0x0:_0x3a5dae['cs']},'cmd':_0x560339[_0x1822e2(0x4e0)]};case _0x244d6f[_0x1822e2(0x42f)][_0x1822e2(0x4af)]:return{..._0x560339,'data':{..._0x3863b8,'data':(_0x147984=_0x3863b8['newCsEvent'])==null?void 0x0:_0x147984['cs']},'cmd':_0x560339['cmd']};case _0x244d6f[_0x1822e2(0x42f)][_0x1822e2(0x41e)]:return{..._0x560339,'data':{..._0x3863b8,'data':(_0x3df53e=_0x3863b8[_0x1822e2(0x22b)])==null?void 0x0:_0x3df53e['cs']},'cmd':_0x560339['cmd']};case _0x244d6f[_0x1822e2(0x42f)][_0x1822e2(0x20f)]:return{..._0x560339,'data':{..._0x3863b8,'data':_0x3863b8[_0x1822e2(0x4ff)]},'cmd':_0x560339['cmd']};case _0x244d6f['CollaborationEvent'][_0x1822e2(0x550)]:return{..._0x560339,'data':{..._0x3863b8,'data':_0x3863b8[_0x1822e2(0x35b)]},'cmd':_0x560339[_0x1822e2(0x4e0)]};case _0x244d6f[_0x1822e2(0x42f)][_0x1822e2(0x345)]:return{..._0x560339,'data':{..._0x3863b8,'data':_0x3863b8['leaveEvent']},'cmd':_0x560339[_0x1822e2(0x4e0)]};case _0x244d6f[_0x1822e2(0x42f)]['LIVESHARE_NEW_HOST']:return{..._0x560339,'data':{..._0x3863b8,'data':_0x3863b8[_0x1822e2(0x1ea)]},'cmd':_0x560339['cmd']};case _0x244d6f[_0x1822e2(0x42f)][_0x1822e2(0x31b)]:case _0x244d6f['CollaborationEvent'][_0x1822e2(0x3ba)]:return{..._0x560339,'data':{..._0x3863b8,'data':_0x3863b8[_0x1822e2(0x422)]},'cmd':_0x560339[_0x1822e2(0x4e0)]};case _0x244d6f[_0x1822e2(0x42f)][_0x1822e2(0x37b)]:return{..._0x560339,'data':{..._0x3863b8,'data':_0x3863b8['liveShareNewHost']},'cmd':_0x560339[_0x1822e2(0x4e0)]};case _0x244d6f[_0x1822e2(0x42f)]['MSG_FOR_ERROR']:return{..._0x560339,'data':_0x3863b8,'cmd':_0x560339[_0x1822e2(0x4e0)]};case _0x244d6f['CollaborationEvent']['COMMENT_UPDATE']:return{..._0x560339,'data':{..._0x3863b8,'data':_0x3863b8['commentUpdateEvent']},'cmd':_0x560339[_0x1822e2(0x4e0)]};default:return _0x560339;}}default:return _0x560339;}}function _0x2c67df(_0x48d316){const _0x205e32=_0xb9a23e;switch(_0x48d316['cmd']){case _0x4ef664['HEARTBEAT']:case _0x4ef664['HELLO']:return JSON[_0x205e32(0x47b)]({'cmd':_0x48d316[_0x205e32(0x4e0)],'routeKey':_0x48d316['routeKey']});case _0x4ef664[_0x205e32(0x1d2)]:{let _0x47e9dd;switch(_0x48d316[_0x205e32(0x3df)]['eventID']){case _0x244d6f[_0x205e32(0x42f)][_0x205e32(0x20f)]:{_0x47e9dd={'eventID':_0x244d6f[_0x205e32(0x42f)][_0x205e32(0x20f)],'updateCursorEvent':_0x48d316['data']['data']};break;}case _0x244d6f[_0x205e32(0x42f)][_0x205e32(0x345)]:{_0x47e9dd={'eventID':_0x244d6f['CollaborationEvent'][_0x205e32(0x345)],'leaveEvent':_0x48d316[_0x205e32(0x3df)][_0x205e32(0x3df)]};break;}case _0x244d6f[_0x205e32(0x42f)]['USERS_ENTER']:{_0x47e9dd={'eventID':_0x244d6f[_0x205e32(0x42f)][_0x205e32(0x550)],'joinEvent':_0x48d316[_0x205e32(0x3df)][_0x205e32(0x3df)]};break;}case _0x244d6f[_0x205e32(0x42f)]['LIVESHARE_NEW_HOST']:{_0x47e9dd={'eventID':_0x244d6f['CollaborationEvent'][_0x205e32(0x1c6)],'liveShareNewHost':_0x48d316[_0x205e32(0x3df)][_0x205e32(0x3df)]};break;}case _0x244d6f[_0x205e32(0x42f)][_0x205e32(0x3ba)]:{_0x47e9dd={'eventID':_0x244d6f[_0x205e32(0x42f)][_0x205e32(0x3ba)],'liveShareOperation':_0x48d316['data'][_0x205e32(0x3df)]};break;}case _0x244d6f[_0x205e32(0x42f)][_0x205e32(0x37b)]:{_0x47e9dd={'eventID':_0x244d6f[_0x205e32(0x42f)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x48d316[_0x205e32(0x3df)][_0x205e32(0x3df)]};break;}case _0x244d6f[_0x205e32(0x42f)][_0x205e32(0x3fa)]:{_0x47e9dd={'eventID':_0x244d6f[_0x205e32(0x42f)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x48d316[_0x205e32(0x3df)][_0x205e32(0x3df)]};break;}case _0x244d6f[_0x205e32(0x42f)]['LIVESHARE_FETCH_OPERATIONS']:{_0x47e9dd={'eventID':_0x244d6f[_0x205e32(0x42f)][_0x205e32(0x31b)]};break;}default:_0x47e9dd={'eventID':_0x48d316[_0x205e32(0x3df)][_0x205e32(0x414)]};}return JSON['stringify']({'cmd':_0x48d316[_0x205e32(0x4e0)],'routeKey':_0x48d316[_0x205e32(0x397)],'collaMsg':_0x47e9dd});}case _0x4ef664[_0x205e32(0x295)]:return JSON[_0x205e32(0x47b)]({'cmd':_0x48d316[_0x205e32(0x4e0)],'routeKey':_0x48d316[_0x205e32(0x397)],'joinReq':_0x48d316['data']});case _0x4ef664[_0x205e32(0x4ce)]:return JSON[_0x205e32(0x47b)]({'cmd':_0x48d316[_0x205e32(0x4e0)],'routeKey':_0x48d316[_0x205e32(0x397)],'leaveReq':_0x48d316[_0x205e32(0x3df)]});default:throw new Error(_0x205e32(0x38f));}}var _0x52e07a=Object['defineProperty'],_0x6219ee=Object[_0xb9a23e(0x2ed)],_0x4bfd9e=(_0x5204ce,_0x525fae,_0x367c37,_0x34359a)=>{for(var _0x1c647a=_0x34359a>0x1?void 0x0:_0x34359a?_0x6219ee(_0x525fae,_0x367c37):_0x525fae,_0x1db1a0=_0x5204ce['length']-0x1,_0x356505;_0x1db1a0>=0x0;_0x1db1a0--)(_0x356505=_0x5204ce[_0x1db1a0])&&(_0x1c647a=(_0x34359a?_0x356505(_0x525fae,_0x367c37,_0x1c647a):_0x356505(_0x1c647a))||_0x1c647a);return _0x34359a&&_0x1c647a&&_0x52e07a(_0x525fae,_0x367c37,_0x1c647a),_0x1c647a;},_0xff0ece=(_0x118114,_0x91aafd)=>(_0x2b8cbc,_0x1cb0b6)=>_0x91aafd(_0x2b8cbc,_0x1cb0b6,_0x118114);const _0x3403de=_0x46d633['createIdentifier'](_0xb9a23e(0x3a0));function _0x38357b(_0x42a6b8,_0x47f09d,_0x3bb7f5){const _0x2dc129=_0xb9a23e;return _0x42a6b8+'/'+_0x47f09d+_0x2dc129(0x4d6)+_0x3bb7f5+_0x2dc129(0x4b0);}_0x2dfa89[_0xb9a23e(0x40f)]=class{constructor(_0x48417d,_0x2f3faf,_0x4652e8,_0x2b6f0a,_0x13c81e){const _0x58a153=_0xb9a23e;this[_0x58a153(0x224)]=_0x48417d,this[_0x58a153(0x532)]=_0x2f3faf,this[_0x58a153(0x1ec)]=_0x4652e8,this[_0x58a153(0x38c)]=_0x2b6f0a,this['_snapshotServerService']=_0x13c81e;}[_0xb9a23e(0x450)](_0x4d54e1){const _0x4b6815=_0xb9a23e,_0x9c6b68=this[_0x4b6815(0x532)][_0x4b6815(0x450)](_0x4d54e1);if(!_0x9c6b68)throw new Error(_0x4b6815(0x1e8));const _0x56fd9a=new _0x39562f[(_0x4b6815(0x4a1))](),_0x15e19c=new _0x1fa2ab[(_0x4b6815(0x393))]();_0x56fd9a[_0x4b6815(0x398)](_0x39562f[_0x4b6815(0x3e2)](_0x9c6b68[_0x4b6815(0x535)][_0x4b6815(0x282)](_0x1fdfcb=>_0x15e19c[_0x4b6815(0x438)](_0x1fdfcb)))),_0x56fd9a[_0x4b6815(0x398)](_0x39562f['toDisposable'](()=>_0x15e19c[_0x4b6815(0x326)]()));const _0x3b1887=new _0x1fa2ab[(_0x4b6815(0x393))]();_0x56fd9a[_0x4b6815(0x398)](_0x39562f[_0x4b6815(0x3e2)](_0x9c6b68[_0x4b6815(0x2d5)][_0x4b6815(0x282)](_0x4573dc=>_0x3b1887[_0x4b6815(0x438)](_0x4573dc)))),_0x56fd9a[_0x4b6815(0x398)](_0x39562f['toDisposable'](()=>_0x3b1887[_0x4b6815(0x326)]()));const _0x3a3046=new _0x1fa2ab[(_0x4b6815(0x393))]();_0x56fd9a[_0x4b6815(0x398)](_0x39562f['toDisposable'](_0x9c6b68['message$'][_0x4b6815(0x282)](_0x1f9ecd=>{const _0x24eae8=_0x4b6815,_0x183b03=_0x5ed143(_0x1f9ecd);_0x3a3046[_0x24eae8(0x438)](_0x183b03);}))),_0x56fd9a['add'](_0x39562f[_0x4b6815(0x3e2)](()=>_0x3a3046['complete']()));const _0x175703=()=>{const _0x47eacb=_0x4b6815;_0x3b1887[_0x47eacb(0x438)](new Event(_0x47eacb(0x340))),_0x15e19c[_0x47eacb(0x438)](new CloseEvent(_0x47eacb(0x340))),_0x18a178[_0x47eacb(0x3b8)]();},_0x18a178={'memberID':'','close$':_0x15e19c[_0x4b6815(0x4bd)](),'error$':_0x3b1887[_0x4b6815(0x4bd)](),'open$':_0x9c6b68['open$'],'message$':_0x3a3046['asObservable'](),'send':_0x412467=>{const _0x470a6a=_0x4b6815;if(_0x412467[_0x470a6a(0x4e0)]===_0x4ef664[_0x470a6a(0x1d2)]){if(_0x412467[_0x470a6a(0x3df)][_0x470a6a(0x414)]===_0x244d6f[_0x470a6a(0x42f)][_0x470a6a(0x254)]){this[_0x470a6a(0x2a8)](_0x18a178,_0x412467['data'])[_0x470a6a(0x426)](_0x415975=>{const _0x4c491b=_0x470a6a;this['_logService'][_0x4c491b(0x4f3)](_0x415975),_0x175703();});return;}if(_0x412467[_0x470a6a(0x3df)][_0x470a6a(0x414)]===_0x244d6f[_0x470a6a(0x42f)][_0x470a6a(0x1b0)]){const _0x231bd0=_0x412467[_0x470a6a(0x3df)];this[_0x470a6a(0x46b)](_0x231bd0)['then'](_0x2cc7e4=>{const _0x430882=_0x470a6a;_0x3a3046[_0x430882(0x438)]({'cmd':_0x4ef664[_0x430882(0x4ad)],'code':_0x27c7a2['OK'],'routeKey':_0x231bd0['data'][_0x430882(0x474)],'routeType':'','data':{'eventID':_0x244d6f[_0x430882(0x42f)][_0x430882(0x522)],'data':{'changesets':_0x2cc7e4}}});})['catch'](_0x1d09a1=>{const _0x1ef90e=_0x470a6a;this['_logService'][_0x1ef90e(0x4f3)](_0x1d09a1),_0x175703();});return;}}_0x9c6b68[_0x470a6a(0x428)](_0x2c67df(_0x412467));},'close':()=>{const _0xfbb014=_0x4b6815;_0x9c6b68[_0xfbb014(0x3b8)](),_0x56fd9a[_0xfbb014(0x51e)]();}};return _0x18a178;}async[_0xb9a23e(0x2a8)](_0x2002f2,_0x23ae99){const _0x443120=_0xb9a23e;var _0x4b58bf;const {unitType:_0x305ba9,unitID:_0x27a232,changeset:_0x5db213}=_0x23ae99[_0x443120(0x3df)],_0x41741f={'unitID':_0x27a232,'memberID':_0x2002f2[_0x443120(0x382)],'type':_0x305ba9,'changeset':_0x244d6f[_0x443120(0x272)](_0x5db213)},_0x4d294f=_0x38357b((_0x4b58bf=this[_0x443120(0x1ec)]['getConfig'](_0x1d614f))!=null?_0x4b58bf:_0x2e6fd4,_0x305ba9,_0x27a232);try{await this[_0x443120(0x224)][_0x443120(0x42c)](_0x4d294f,{'body':_0x41741f});}catch(_0x2b8388){throw this[_0x443120(0x38c)][_0x443120(0x4f3)](_0x443120(0x284),'submit\x20changeset\x20error!'),_0x2b8388;}}async[_0xb9a23e(0x46b)](_0x4ba688){const _0x2be621=_0xb9a23e,{unitID:_0x3db3ee,from:_0x15223f,to:_0x494b8b,unitType:_0x456200}=_0x4ba688[_0x2be621(0x3df)];return(await this[_0x2be621(0x1fb)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x3db3ee,'type':_0x456200,'from':_0x15223f,'to':_0x494b8b}))[_0x2be621(0x52b)];}},_0x2dfa89[_0xb9a23e(0x40f)]=_0x4bfd9e([_0xff0ece(0x0,_0x46d633[_0xb9a23e(0x2a5)](_0x403cff[_0xb9a23e(0x2cb)])),_0xff0ece(0x1,_0x46d633[_0xb9a23e(0x2a5)](_0x403cff[_0xb9a23e(0x4e8)])),_0xff0ece(0x2,_0x39562f['IConfigService']),_0xff0ece(0x3,_0x39562f[_0xb9a23e(0x3d4)]),_0xff0ece(0x4,_0x39562f[_0xb9a23e(0x1a9)])],_0x2dfa89[_0xb9a23e(0x40f)]);class _0x301d2e{constructor(){const _0x6a14c4=_0xb9a23e;_0x3e3dad(this,_0x6a14c4(0x3dd),new _0x1fa2ab[(_0x6a14c4(0x393))]()),_0x3e3dad(this,_0x6a14c4(0x1f4),this[_0x6a14c4(0x3dd)]['asObservable']());}[_0xb9a23e(0x545)](_0x5680a5){const _0x4740b7=_0xb9a23e;this[_0x4740b7(0x3dd)][_0x4740b7(0x438)](_0x5680a5);}}var _0x3f9d46=Object[_0xb9a23e(0x38b)],_0x659943=Object['getOwnPropertyDescriptor'],_0x1690a3=(_0x4a5817,_0x4b081e,_0x1f883d,_0x20ba70)=>{const _0x10e2d7=_0xb9a23e;for(var _0x7705ef=_0x20ba70>0x1?void 0x0:_0x20ba70?_0x659943(_0x4b081e,_0x1f883d):_0x4b081e,_0x5eee2a=_0x4a5817[_0x10e2d7(0x480)]-0x1,_0x48491d;_0x5eee2a>=0x0;_0x5eee2a--)(_0x48491d=_0x4a5817[_0x5eee2a])&&(_0x7705ef=(_0x20ba70?_0x48491d(_0x4b081e,_0x1f883d,_0x7705ef):_0x48491d(_0x7705ef))||_0x7705ef);return _0x20ba70&&_0x7705ef&&_0x3f9d46(_0x4b081e,_0x1f883d,_0x7705ef),_0x7705ef;},_0x133f8a=(_0x1b77f5,_0x974a86)=>(_0x4165c1,_0x55135f)=>_0x974a86(_0x4165c1,_0x55135f,_0x1b77f5),_0x346ac5=(_0x3c0e23=>(_0x3c0e23[_0x3c0e23[_0xb9a23e(0x528)]=0x0]=_0xb9a23e(0x528),_0x3c0e23[_0x3c0e23[_0xb9a23e(0x4ea)]=0x1]=_0xb9a23e(0x4ea),_0x3c0e23[_0x3c0e23[_0xb9a23e(0x354)]=0x2]='OFFLINE',_0x3c0e23[_0x3c0e23[_0xb9a23e(0x330)]=0x3]='ONLINE',_0x3c0e23))(_0x346ac5||{});_0x2dfa89[_0xb9a23e(0x1da)]=class extends _0x39562f['RxDisposable']{constructor(_0x26d0ba,_0x3954e5,_0x5749e4,_0x2ef82a,_0x11cd0b,_0x1b69e9,_0x50aeca,_0x1b7448,_0x74100e){const _0x465bb2=_0xb9a23e;super(),_0x3e3dad(this,_0x465bb2(0x32c),new _0x1fa2ab['BehaviorSubject'](0x0)),_0x3e3dad(this,_0x465bb2(0x35c),this[_0x465bb2(0x32c)][_0x465bb2(0x4bd)]()),_0x3e3dad(this,_0x465bb2(0x531),new _0x1fa2ab[(_0x465bb2(0x393))]()),_0x3e3dad(this,_0x465bb2(0x2bf),this[_0x465bb2(0x531)][_0x465bb2(0x4bd)]()),_0x3e3dad(this,'_socket'),_0x3e3dad(this,_0x465bb2(0x55a)),_0x3e3dad(this,_0x465bb2(0x2f0)),(this['_unitID']=_0x26d0ba,this[_0x465bb2(0x38c)]=_0x5749e4,this[_0x465bb2(0x339)]=_0x2ef82a,this[_0x465bb2(0x493)]=_0x11cd0b,this[_0x465bb2(0x1ec)]=_0x1b69e9,this[_0x465bb2(0x530)]=_0x50aeca,this['_memberService']=_0x1b7448,this[_0x465bb2(0x1d3)]=_0x74100e,_0x3954e5[_0x465bb2(0x24a)](_0x53520c[_0x465bb2(0x307)](this['dispose$']))[_0x465bb2(0x282)](_0x13b823=>{const _0x3aec5f=_0x465bb2;var _0x48f23a;typeof _0x13b823>'u'||(this[_0x3aec5f(0x23c)]=_0x13b823,_0x13b823?(this[_0x3aec5f(0x24f)](_0x13b823),this[_0x3aec5f(0x55a)]=this[_0x3aec5f(0x23c)]['message$'][_0x3aec5f(0x282)](_0x228195=>{const _0x31bdd2=_0x3aec5f;_0x228195['routeKey']===this[_0x31bdd2(0x1c5)]&&this[_0x31bdd2(0x53c)](_0x228195);})):(this[_0x3aec5f(0x32c)][_0x3aec5f(0x438)](0x2),(_0x48f23a=this['_socketMessageSubscription'])==null||_0x48f23a[_0x3aec5f(0x54c)](),this[_0x3aec5f(0x55a)]=null));}),this[_0x465bb2(0x28a)](this[_0x465bb2(0x339)]['registerOnClose'](()=>{const _0x552319=_0x465bb2;var _0x2676a7;(_0x2676a7=this[_0x552319(0x23c)])==null||_0x2676a7['send']({'cmd':_0x4ef664[_0x552319(0x4ce)],'data':{'roomID':this[_0x552319(0x1c5)]}});})));}get[_0xb9a23e(0x48c)](){return this['_sessionStatus$']['getValue']();}['getMemberID'](){const _0x330c01=_0xb9a23e;var _0xcbc002,_0x22f834;return(_0x22f834=(_0xcbc002=this[_0x330c01(0x23c)])==null?void 0x0:_0xcbc002[_0x330c01(0x382)])!=null?_0x22f834:null;}[_0xb9a23e(0x51e)](){const _0x5b4559=_0xb9a23e;super[_0x5b4559(0x51e)](),this[_0x5b4559(0x203)][_0x5b4559(0x438)](),this[_0x5b4559(0x203)][_0x5b4559(0x326)]();}[_0xb9a23e(0x53c)](_0x52028b){const _0x5a2497=_0xb9a23e;_0x52028b[_0x5a2497(0x4e0)]===_0x4ef664[_0x5a2497(0x295)]?this['_onJoinRoomEvent'](_0x52028b):_0x52028b['cmd']===_0x4ef664['RECV']&&this[_0x5a2497(0x449)](_0x52028b);}[_0xb9a23e(0x24f)](_0x166027){const _0x757339=_0xb9a23e;this[_0x757339(0x32c)][_0x757339(0x438)](0x1),_0x166027[_0x757339(0x428)]({'cmd':_0x4ef664['JOIN'],'routeKey':this[_0x757339(0x1c5)],'routeType':'','data':{'rooms':[{'roomID':this[_0x757339(0x1c5)]}]}});}[_0xb9a23e(0x1c3)](_0x288360){const _0x1031d3=_0xb9a23e;var _0x4081b6;if(_0x288360[_0x1031d3(0x47a)]===_0x27c7a2[_0x1031d3(0x1ff)]){this['_messageService'][_0x1031d3(0x46d)]({'type':_0x7ca5b0['MessageType'][_0x1031d3(0x1f9)],'content':this[_0x1031d3(0x530)]['t'](_0x1031d3(0x423))}),this[_0x1031d3(0x32c)][_0x1031d3(0x438)](0x2);return;}this[_0x1031d3(0x32c)]['next'](0x3);const _0x474495=(_0x4081b6=_0x288360[_0x1031d3(0x3df)][_0x1031d3(0x36a)][this[_0x1031d3(0x1c5)]])==null?void 0x0:_0x4081b6[_0x1031d3(0x34e)];_0x474495&&_0x474495[_0x1031d3(0x560)](_0x2697f7=>this[_0x1031d3(0x50c)]['updateMember'](this[_0x1031d3(0x1c5)],_0x2697f7));}[_0xb9a23e(0x449)](_0x562e4d){const _0x3365a5=_0xb9a23e;try{const _0x188b7e=_0x562e4d[_0x3365a5(0x3df)];switch(_0x188b7e['eventID']){case _0x244d6f[_0x3365a5(0x42f)][_0x3365a5(0x550)]:this[_0x3365a5(0x43e)](_0x188b7e),this['_event$'][_0x3365a5(0x438)](_0x188b7e);break;case _0x244d6f['CollaborationEvent'][_0x3365a5(0x345)]:this[_0x3365a5(0x4cd)](_0x188b7e),this[_0x3365a5(0x531)][_0x3365a5(0x438)](_0x188b7e);break;case _0x244d6f[_0x3365a5(0x42f)][_0x3365a5(0x2e6)]:this[_0x3365a5(0x482)](),this[_0x3365a5(0x531)][_0x3365a5(0x438)](_0x188b7e);break;case _0x244d6f['CollaborationEvent']['MSG_FOR_ERROR']:this[_0x3365a5(0x38c)][_0x3365a5(0x4f3)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x3365a5(0x47b)](_0x188b7e)),this[_0x3365a5(0x531)][_0x3365a5(0x438)](_0x188b7e);break;case _0x244d6f[_0x3365a5(0x42f)][_0x3365a5(0x210)]:this['_commentService']['onCommentUpdate'](_0x188b7e[_0x3365a5(0x3df)]),this[_0x3365a5(0x531)][_0x3365a5(0x438)](_0x188b7e);break;default:this[_0x3365a5(0x531)]['next'](_0x188b7e);}}catch(_0x2bba28){this[_0x3365a5(0x38c)][_0x3365a5(0x4f3)](_0x2bba28,_0x562e4d);}}[_0xb9a23e(0x43e)](_0x3353b4){const _0x14045c=_0xb9a23e;this[_0x14045c(0x50c)][_0x14045c(0x4b4)](this[_0x14045c(0x1c5)],_0x3353b4[_0x14045c(0x3df)]);}[_0xb9a23e(0x4cd)](_0x4f2b34){const _0x5c02eb=_0xb9a23e;this[_0x5c02eb(0x50c)][_0x5c02eb(0x562)](this['_unitID'],_0x4f2b34[_0x5c02eb(0x3df)][_0x5c02eb(0x382)]);}async[_0xb9a23e(0x428)](_0x2909bc,_0x1abd81){const _0x4d4cd4=_0xb9a23e;if(this[_0x4d4cd4(0x48c)]!==0x3||!this[_0x4d4cd4(0x23c)])throw new Error(_0x4d4cd4(0x246));try{_0x2909bc[_0x4d4cd4(0x414)]===_0x244d6f[_0x4d4cd4(0x42f)][_0x4d4cd4(0x4af)]&&this[_0x4d4cd4(0x4a4)](),this[_0x4d4cd4(0x23c)][_0x4d4cd4(0x428)]({'cmd':_0x4ef664[_0x4d4cd4(0x1d2)],'routeKey':_0x1abd81,'routeType':'','data':_0x2909bc});}catch(_0x2aaf09){this[_0x4d4cd4(0x38c)]['error'](_0x2aaf09);}}[_0xb9a23e(0x4a4)](){const _0x2c97d8=_0xb9a23e;var _0x2ef734;this[_0x2c97d8(0x2f0)]=window[_0x2c97d8(0x390)](()=>{const _0x4e1b7f=_0x2c97d8;this[_0x4e1b7f(0x2f0)]=null,this[_0x4e1b7f(0x493)][_0x4e1b7f(0x46d)]({'type':_0x7ca5b0['MessageType']['Error'],'content':this[_0x4e1b7f(0x530)]['t'](_0x4e1b7f(0x2e2))});},(_0x2ef734=this['_configService']['getConfig'](_0x74042e))!=null?_0x2ef734:0x2710);}[_0xb9a23e(0x482)](){const _0x41e28c=_0xb9a23e;this[_0x41e28c(0x2f0)]&&(clearTimeout(this[_0x41e28c(0x2f0)]),this[_0x41e28c(0x2f0)]=null);}},_0x2dfa89[_0xb9a23e(0x1da)]=_0x1690a3([_0x133f8a(0x2,_0x39562f[_0xb9a23e(0x3d4)]),_0x133f8a(0x3,_0x38d129[_0xb9a23e(0x52e)]),_0x133f8a(0x4,_0x38d129[_0xb9a23e(0x1c9)]),_0x133f8a(0x5,_0x39562f[_0xb9a23e(0x251)]),_0x133f8a(0x6,_0x46d633[_0xb9a23e(0x2a5)](_0x39562f[_0xb9a23e(0x303)])),_0x133f8a(0x7,_0x46d633[_0xb9a23e(0x2a5)](_0x3eae2a)),_0x133f8a(0x8,_0x46d633[_0xb9a23e(0x2a5)](_0x301d2e))],_0x2dfa89['CollaborationSession']),_0x2dfa89[_0xb9a23e(0x538)]=class extends _0x39562f[_0xb9a23e(0x4bf)]{constructor(_0x2adb25,_0x295397,_0xa9e70a,_0x102df4,_0x4c3377,_0x3c69e6){const _0x3564e7=_0xb9a23e;super(),_0x3e3dad(this,_0x3564e7(0x29e),new _0x1fa2ab[(_0x3564e7(0x492))](void 0x0)),_0x3e3dad(this,'_sessions',new Map()),_0x3e3dad(this,_0x3564e7(0x3c0),new _0x1fa2ab[(_0x3564e7(0x492))](0x0)),_0x3e3dad(this,_0x3564e7(0x4e7),this[_0x3564e7(0x3c0)]['asObservable']()),_0x3e3dad(this,_0x3564e7(0x2c5),!0x1),_0x3e3dad(this,'_sendHeartbeatTimer'),_0x3e3dad(this,_0x3564e7(0x32e)),_0x3e3dad(this,'_retryConnectingTimer'),_0x3e3dad(this,_0x3564e7(0x41a),0x0),(this[_0x3564e7(0x273)]=_0x2adb25,this[_0x3564e7(0x530)]=_0x295397,this[_0x3564e7(0x493)]=_0xa9e70a,this['_logService']=_0x102df4,this['_configService']=_0x4c3377,this[_0x3564e7(0x221)]=_0x3c69e6);}get[_0xb9a23e(0x23c)](){const _0x471486=_0xb9a23e;return this[_0x471486(0x29e)][_0x471486(0x1c4)]();}['dispose'](){const _0xc06520=_0xb9a23e;super['dispose'](),this[_0xc06520(0x22d)][_0xc06520(0x560)](_0x209591=>_0x209591[_0xc06520(0x51e)]()),this[_0xc06520(0x22d)][_0xc06520(0x439)](),this['_status$'][_0xc06520(0x326)]();}async[_0xb9a23e(0x3d3)](_0x57ad77){const _0x1399bc=_0xb9a23e;if(this[_0x1399bc(0x22d)]['has'](_0x57ad77))return this[_0x1399bc(0x22d)][_0x1399bc(0x3a6)](_0x57ad77);this[_0x1399bc(0x36d)]();const _0x37de9b=this[_0x1399bc(0x273)][_0x1399bc(0x4dc)](_0x2dfa89[_0x1399bc(0x1da)],_0x57ad77,this[_0x1399bc(0x29e)]['asObservable']());return this[_0x1399bc(0x22d)][_0x1399bc(0x3b1)](_0x57ad77,_0x37de9b),_0x37de9b;}[_0xb9a23e(0x35d)](){const _0x4c4c38=_0xb9a23e;var _0x3f2d91;const _0x2f643c=(_0x3f2d91=this[_0x4c4c38(0x1ec)]['getConfig'](_0x63fe38))!=null?_0x3f2d91:_0x567fd6;return this[_0x4c4c38(0x221)][_0x4c4c38(0x450)](_0x2f643c);}[_0xb9a23e(0x36d)](){const _0x4e5fdb=_0xb9a23e;try{const _0x291f67=this[_0x4e5fdb(0x35d)]();if(_0x291f67){const _0x3299b2=_0x291f67[_0x4e5fdb(0x428)];_0x291f67['send']=_0x233818=>(this[_0x4e5fdb(0x2c1)](),_0x3299b2[_0x4e5fdb(0x52c)](_0x291f67,[_0x233818])),_0x291f67[_0x4e5fdb(0x313)]['subscribe'](_0x5767fe=>this[_0x4e5fdb(0x2fa)](_0x291f67,_0x5767fe)),_0x291f67[_0x4e5fdb(0x2d5)][_0x4e5fdb(0x24a)](_0x53520c[_0x4e5fdb(0x268)](0x1))['subscribe'](_0x510de6=>this[_0x4e5fdb(0x38c)][_0x4e5fdb(0x4f3)](_0x4e5fdb(0x3d9),_0x510de6)),_0x291f67['open$'][_0x4e5fdb(0x24a)](_0x53520c['take'](0x1))[_0x4e5fdb(0x282)](()=>{const _0x535319=_0x4e5fdb;this[_0x535319(0x448)](_0x291f67);}),_0x291f67[_0x4e5fdb(0x535)][_0x4e5fdb(0x24a)](_0x53520c[_0x4e5fdb(0x268)](0x1))[_0x4e5fdb(0x282)](_0x53ac57=>{const _0x35b05f=_0x4e5fdb;this['_logService'][_0x35b05f(0x564)](_0x35b05f(0x248),_0x35b05f(0x212),_0x53ac57),this[_0x35b05f(0x519)]();});}}catch(_0x1fded1){this[_0x4e5fdb(0x38c)]['error'](_0x1fded1),this[_0x4e5fdb(0x519)]();}}['_onConnectionOpen'](_0x37c981){const _0x708143=_0xb9a23e;this[_0x708143(0x38c)][_0x708143(0x564)](_0x708143(0x248),'socket\x20open.'),_0x37c981[_0x708143(0x428)]({'cmd':_0x4ef664[_0x708143(0x4a7)]}),this[_0x708143(0x2c1)]();}[_0xb9a23e(0x519)](){const _0x24b74a=_0xb9a23e;var _0x52df08;this[_0x24b74a(0x3c0)][_0x24b74a(0x438)](0x2),this[_0x24b74a(0x29e)][_0x24b74a(0x438)](null),this[_0x24b74a(0x386)](),this[_0x24b74a(0x2f1)](),this[_0x24b74a(0x2c5)]=!0x1,this['_retryCount']<((_0x52df08=this['_configService'][_0x24b74a(0x496)](_0x21cbf5))!=null?_0x52df08:0x3)?(this[_0x24b74a(0x494)](this[_0x24b74a(0x41a)]),this[_0x24b74a(0x41a)]+=0x1):this[_0x24b74a(0x493)][_0x24b74a(0x46d)]({'type':_0x7ca5b0[_0x24b74a(0x4f7)][_0x24b74a(0x434)],'content':this[_0x24b74a(0x530)]['t'](_0x24b74a(0x3c4))});}[_0xb9a23e(0x494)](_0x520502){const _0xa9bb56=_0xb9a23e;var _0x307b5d;const _0xfd6e20=((_0x307b5d=this['_configService']['getConfig'](_0x1a300a))!=null?_0x307b5d:0x4e20)*0x2**_0x520502;this[_0xa9bb56(0x493)][_0xa9bb56(0x46d)]({'type':_0x7ca5b0[_0xa9bb56(0x4f7)][_0xa9bb56(0x1f9)],'content':this[_0xa9bb56(0x530)]['t']('session.will-retry')}),this[_0xa9bb56(0x561)]=setTimeout(()=>{const _0x1c51d2=_0xa9bb56;this[_0x1c51d2(0x36d)](),clearTimeout(this[_0x1c51d2(0x561)]),this[_0x1c51d2(0x561)]=null;},_0xfd6e20);}[_0xb9a23e(0x2c1)](){const _0x4c1eca=_0xb9a23e;var _0xa643fd;this[_0x4c1eca(0x2f1)](),this['_sendHeartbeatTimer']=setTimeout(()=>this[_0x4c1eca(0x4d3)](),(_0xa643fd=this[_0x4c1eca(0x1ec)][_0x4c1eca(0x496)](_0x323501))!=null?_0xa643fd:0x7530);}[_0xb9a23e(0x4d3)](){const _0x56b375=_0xb9a23e;this[_0x56b375(0x23c)]['send']({'cmd':_0x4ef664[_0x56b375(0x2b0)]}),this[_0x56b375(0x52f)]();}['_waitForHeartbeatResponse'](){const _0x52eeee=_0xb9a23e;var _0x233914;this['_timeoutTimer']=setTimeout(()=>this['_onConnectionFailed'](),(_0x233914=this[_0x52eeee(0x1ec)][_0x52eeee(0x496)](_0x74042e))!=null?_0x233914:0x2710);}[_0xb9a23e(0x2fa)](_0x1e9f07,_0x2cbde6){const _0x512de4=_0xb9a23e,{cmd:_0x593b76}=_0x2cbde6;_0x593b76===_0x4ef664[_0x512de4(0x4a7)]&&!this[_0x512de4(0x2c5)]&&(_0x1e9f07['memberID']=_0x2cbde6['data'][_0x512de4(0x382)],this[_0x512de4(0x29e)][_0x512de4(0x438)](_0x1e9f07),this[_0x512de4(0x3c0)][_0x512de4(0x438)](0x3),this[_0x512de4(0x2c5)]=!0x0),_0x593b76===_0x4ef664[_0x512de4(0x2b0)]&&this[_0x512de4(0x386)](),this[_0x512de4(0x2c1)]();}[_0xb9a23e(0x2f1)](){const _0x479f59=_0xb9a23e;this[_0x479f59(0x263)]!=null&&(clearTimeout(this[_0x479f59(0x263)]),this[_0x479f59(0x263)]=null);}[_0xb9a23e(0x386)](){const _0x1c00ac=_0xb9a23e;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x1c00ac(0x32e)]),this['_timeoutTimer']=null);}},_0x2dfa89[_0xb9a23e(0x538)]=_0x1690a3([_0x133f8a(0x0,_0x46d633[_0xb9a23e(0x2a5)](_0x46d633[_0xb9a23e(0x215)])),_0x133f8a(0x1,_0x46d633[_0xb9a23e(0x2a5)](_0x39562f[_0xb9a23e(0x303)])),_0x133f8a(0x2,_0x38d129['IMessageService']),_0x133f8a(0x3,_0x39562f[_0xb9a23e(0x3d4)]),_0x133f8a(0x4,_0x39562f[_0xb9a23e(0x251)]),_0x133f8a(0x5,_0x3403de)],_0x2dfa89['CollaborationSessionService']);var _0x3c583c=Object['defineProperty'],_0x2a6455=Object[_0xb9a23e(0x2ed)],_0xab2692=(_0x5d16f2,_0x3fbbdd,_0x2ff96d,_0x212311)=>{const _0x245676=_0xb9a23e;for(var _0x3d504d=_0x212311>0x1?void 0x0:_0x212311?_0x2a6455(_0x3fbbdd,_0x2ff96d):_0x3fbbdd,_0x441e9c=_0x5d16f2[_0x245676(0x480)]-0x1,_0x3b574b;_0x441e9c>=0x0;_0x441e9c--)(_0x3b574b=_0x5d16f2[_0x441e9c])&&(_0x3d504d=(_0x212311?_0x3b574b(_0x3fbbdd,_0x2ff96d,_0x3d504d):_0x3b574b(_0x3d504d))||_0x3d504d);return _0x212311&&_0x3d504d&&_0x3c583c(_0x3fbbdd,_0x2ff96d,_0x3d504d),_0x3d504d;},_0x41471a=(_0x2ca707,_0xe60e3c)=>(_0x4bc07a,_0x23f6a0)=>_0xe60e3c(_0x4bc07a,_0x23f6a0,_0x2ca707);_0x2dfa89[_0xb9a23e(0x38a)]=class extends _0x39562f['Disposable']{constructor(_0x3d1661,_0x4a7841,_0x1a7ef0,_0x56ba22,_0x1cdb3e){const _0xbe8318=_0xb9a23e;super(),_0x3e3dad(this,_0xbe8318(0x3b5),new Map()),_0x3e3dad(this,_0xbe8318(0x28f),new Map()),_0x3e3dad(this,_0xbe8318(0x55e),!0x1),(this[_0xbe8318(0x1ec)]=_0x3d1661,this[_0xbe8318(0x3d2)]=_0x4a7841,this['_beforeCloseService']=_0x1a7ef0,this['_localeService']=_0x56ba22,this[_0xbe8318(0x3ee)]=_0x1cdb3e,this[_0xbe8318(0x379)]());}[_0xb9a23e(0x318)](){const _0x38f483=_0xb9a23e;this[_0x38f483(0x55e)]=!0x0;}[_0xb9a23e(0x344)](){const _0x2fb53c=_0xb9a23e;this[_0x2fb53c(0x55e)]=!0x1;}[_0xb9a23e(0x51e)](){const _0x1659a6=_0xb9a23e;this[_0x1659a6(0x51a)]()[_0x1659a6(0x1fd)](()=>super[_0x1659a6(0x51e)]());}async[_0xb9a23e(0x21c)](_0x50b019){const _0x44051e=_0xb9a23e;return this[_0x44051e(0x55e)]?null:this['_localStorageService'][_0x44051e(0x2c3)](_0x23216f(_0x50b019));}async[_0xb9a23e(0x4d9)](_0x508401,_0x187aa5){const _0x5a452f=_0xb9a23e;return!!this[_0x5a452f(0x3d2)][_0x5a452f(0x3d6)](_0x508401,_0x187aa5);}[_0xb9a23e(0x4f1)](_0x178520,_0x44e1d2,_0x7d48ef,_0x4da272){const _0x20ed57=_0xb9a23e,_0x39b079=this[_0x20ed57(0x3ee)][_0x20ed57(0x259)](_0x178520);this[_0x20ed57(0x3b5)]['set'](_0x178520,{'unitID':_0x178520,'type':_0x44e1d2,'awaitingChangeset':_0x7d48ef,'mutations':_0x4da272,'rev':_0x39b079}),this[_0x20ed57(0x28f)][_0x20ed57(0x1b4)](_0x178520)||this[_0x20ed57(0x3ca)](_0x178520);}['_scheduleSaving'](_0x1850a4){const _0x3ae6fd=_0xb9a23e,_0x4943c5=this[_0x3ae6fd(0x3b6)]();_0x4943c5===0x0?this[_0x3ae6fd(0x453)](_0x1850a4):this[_0x3ae6fd(0x28f)]['set'](_0x1850a4,setTimeout(()=>this['_saveCache'](_0x1850a4),_0x4943c5));}[_0xb9a23e(0x3b6)](){const _0x5452c7=_0xb9a23e;var _0x2e8494;return(_0x2e8494=this['_configService'][_0x5452c7(0x496)](_0x339ff6))!=null?_0x2e8494:0x3e8;}[_0xb9a23e(0x453)](_0x11a04c){const _0x58e769=_0xb9a23e,_0x1eac6b=this[_0x58e769(0x28f)]['get'](_0x11a04c);return _0x1eac6b!==void 0x0&&window[_0x58e769(0x267)](_0x1eac6b),this[_0x58e769(0x3d2)][_0x58e769(0x3d6)](_0x23216f(_0x11a04c),this[_0x58e769(0x3b5)][_0x58e769(0x3a6)](_0x11a04c))[_0x58e769(0x1fd)](()=>this[_0x58e769(0x28f)]['delete'](_0x11a04c));}async[_0xb9a23e(0x51a)](){const _0x20d97d=_0xb9a23e,_0x30a98b=[];this[_0x20d97d(0x28f)][_0x20d97d(0x560)]((_0x5dedcf,_0x185bd5)=>{const _0x47988d=_0x20d97d;window[_0x47988d(0x267)](_0x5dedcf),_0x30a98b[_0x47988d(0x509)](this[_0x47988d(0x453)](_0x185bd5)['then'](()=>{const _0xa453f3=_0x47988d;this[_0xa453f3(0x28f)]['delete'](_0x185bd5);}));}),await Promise[_0x20d97d(0x1a1)](_0x30a98b);}[_0xb9a23e(0x379)](){const _0x2086c9=_0xb9a23e;this['disposeWithMe'](this[_0x2086c9(0x339)][_0x2086c9(0x43d)](()=>{const _0x36112d=_0x2086c9;if(this['_saveTaskMap'][_0x36112d(0x512)])return this[_0x36112d(0x530)]['t'](_0x36112d(0x389));}));}},_0x2dfa89['LocalCacheService']=_0xab2692([_0x41471a(0x0,_0x39562f['IConfigService']),_0x41471a(0x1,_0x39562f['ILocalStorageService']),_0x41471a(0x2,_0x38d129['IBeforeCloseService']),_0x41471a(0x3,_0x46d633[_0xb9a23e(0x2a5)](_0x39562f['LocaleService'])),_0x41471a(0x4,_0x46d633[_0xb9a23e(0x2a5)](_0x244d6f[_0xb9a23e(0x2e4)]))],_0x2dfa89[_0xb9a23e(0x38a)]);function _0x23216f(_0x352345){const _0xde1fb8=_0xb9a23e;return _0xde1fb8(0x2dd)+_0x352345;}const _0x174263=_0x46d633[_0xb9a23e(0x1dd)]('univer-pro.collaboration-client.single-active-unit-service');var _0x11275d=(_0x2ee70f=>(_0x2ee70f[_0x2ee70f[_0xb9a23e(0x53d)]=0x0]=_0xb9a23e(0x53d),_0x2ee70f[_0x2ee70f[_0xb9a23e(0x373)]=0x1]=_0xb9a23e(0x373),_0x2ee70f))(_0x11275d||{});const _0x234aea=0x7530,_0x14413c=_0xb9a23e(0x1d8);class _0x2dc57e extends _0x39562f[_0xb9a23e(0x4bf)]{constructor(){const _0x5e5871=_0xb9a23e;super(),_0x3e3dad(this,_0x5e5871(0x50f),_0x39562f[_0x5e5871(0x507)][_0x5e5871(0x375)]()),_0x3e3dad(this,'_selfUnitIDs',new Set()),_0x3e3dad(this,_0x5e5871(0x3b4),new Map()),_0x3e3dad(this,_0x5e5871(0x400),null),_0x3e3dad(this,_0x5e5871(0x4bc),new Map()),_0x3e3dad(this,'_unitStatus',new Map()),this[_0x5e5871(0x3e7)]();}['dispose'](){const _0x2f502f=_0xb9a23e;super[_0x2f502f(0x51e)](),this[_0x2f502f(0x4bc)][_0x2f502f(0x560)]((_0x4e02da,_0x2db93f)=>this['_removeClearOtherTimer'](_0x2db93f)),this[_0x2f502f(0x400)]&&window[_0x2f502f(0x42d)](this[_0x2f502f(0x400)]);}[_0xb9a23e(0x36b)](_0x41c8d0){const _0x3d1234=_0xb9a23e;return this[_0x3d1234(0x4d0)](_0x41c8d0)[_0x3d1234(0x24a)](_0x1fa2ab[_0x3d1234(0x516)]());}['editingUnit'](_0x4142d7){const _0x4cd962=_0xb9a23e;this[_0x4cd962(0x222)][_0x4cd962(0x512)]===0x0&&this[_0x4cd962(0x25d)](),this[_0x4cd962(0x222)][_0x4cd962(0x398)](_0x4142d7),this[_0x4cd962(0x2a4)]({'type':0x0,'memberID':this[_0x4cd962(0x50f)],'unitIDs':[_0x4142d7],'isForwarded':!0x1});}[_0xb9a23e(0x3a3)](_0x3ebfe4){const _0x47d9b6=_0xb9a23e;this[_0x47d9b6(0x222)][_0x47d9b6(0x319)](_0x3ebfe4),this[_0x47d9b6(0x222)]['size']===0x0&&this[_0x47d9b6(0x400)]&&window['clearInterval'](this[_0x47d9b6(0x400)]);}[_0xb9a23e(0x3e7)](){const _0x120179=_0xb9a23e;this[_0x120179(0x28a)](_0x39562f[_0x120179(0x3e2)](_0x1fa2ab[_0x120179(0x497)](window,'storage')[_0x120179(0x282)](_0x22d7df=>{const _0x16c5bd=_0x120179;if(_0x22d7df[_0x16c5bd(0x521)]!==_0x14413c||!_0x22d7df[_0x16c5bd(0x41b)])return;const _0x44fc4f=JSON['parse'](_0x22d7df['newValue']);this[_0x16c5bd(0x4c3)](_0x44fc4f);}))),window[_0x120179(0x433)](_0x120179(0x2a0),()=>this[_0x120179(0x2a4)]({'type':0x1,'memberID':this[_0x120179(0x50f)],'unitIDs':Array[_0x120179(0x225)](this['_selfUnitIDs'])}));}[_0xb9a23e(0x4c3)](_0x42d0e8){const _0x175428=_0xb9a23e;switch(_0x42d0e8[_0x175428(0x2a3)]){case 0x0:this[_0x175428(0x4d2)](_0x42d0e8);break;case 0x1:this['_handleLeaveEvent'](_0x42d0e8);break;case 0x2:this['_handleHeartbeatEvent'](_0x42d0e8);break;}}['_handleJoinEvent'](_0x4aec4b){const _0x209e63=_0xb9a23e,{unitIDs:_0x5e86c3,memberID:_0x2c01e0,isForwarded:_0x2e0d2e}=_0x4aec4b;_0x5e86c3['forEach'](_0x2b7c5d=>{const _0x945615=_0x231b;if(!_0x2e0d2e&&this[_0x945615(0x3b4)][_0x945615(0x1b4)](_0x2b7c5d)&&this[_0x945615(0x4d0)](_0x2b7c5d)[_0x945615(0x438)](0x1),!this['_unitOnClients'][_0x945615(0x1b4)](_0x2b7c5d)||!this[_0x945615(0x3b4)][_0x945615(0x3a6)](_0x2b7c5d)['has'](_0x2c01e0)){const _0x2efb7d=this[_0x945615(0x3b4)][_0x945615(0x3a6)](_0x2b7c5d)||new Set();_0x2efb7d[_0x945615(0x398)](_0x2c01e0),this[_0x945615(0x3b4)][_0x945615(0x3b1)](_0x2b7c5d,_0x2efb7d),this['_scheduleClearOtherTimer'](_0x2c01e0);}}),_0x2e0d2e||this[_0x209e63(0x2a4)]({'type':0x0,'memberID':this[_0x209e63(0x50f)],'unitIDs':[...this[_0x209e63(0x222)]],'isForwarded':!0x0});}[_0xb9a23e(0x32b)](_0x180e80){const _0x1ce19a=_0xb9a23e;this['_removeClearOtherTimer'](_0x180e80);const _0x38d802=window[_0x1ce19a(0x390)](()=>{const _0x9be46a=_0x1ce19a;this[_0x9be46a(0x3b4)]['forEach'](_0x1b6a6b=>{const _0x147566=_0x9be46a;_0x1b6a6b[_0x147566(0x319)](_0x180e80);});},_0x234aea*0x2);this['_clearOtherTimers'][_0x1ce19a(0x3b1)](_0x180e80,_0x38d802);}[_0xb9a23e(0x34d)](_0x441ec4){const _0x1124bd=_0xb9a23e;if(this[_0x1124bd(0x4bc)][_0x1124bd(0x1b4)](_0x441ec4)){const _0x2cd0c=this[_0x1124bd(0x4bc)][_0x1124bd(0x3a6)](_0x441ec4);_0x2cd0c&&window[_0x1124bd(0x267)](_0x2cd0c),this['_clearOtherTimers'][_0x1124bd(0x3b1)](_0x441ec4,null);}}[_0xb9a23e(0x525)](_0x296e59){const _0x27779c=_0xb9a23e,{memberID:_0x158fb2,unitIDs:_0x41a811}=_0x296e59;_0x41a811[_0x27779c(0x560)](_0x201f94=>{const _0x386b21=_0x27779c;var _0x1e2738;const _0x1dfb64=this[_0x386b21(0x3b4)][_0x386b21(0x3a6)](_0x201f94);_0x1dfb64&&(_0x1dfb64[_0x386b21(0x319)](_0x158fb2),(_0x1e2738=this[_0x386b21(0x4d0)](_0x201f94))==null||_0x1e2738['next'](_0x1dfb64[_0x386b21(0x512)]===0x0?0x0:0x1));}),this[_0x27779c(0x34d)](_0x158fb2);}[_0xb9a23e(0x1d5)](_0x30c1d4){const _0xc2b431=_0xb9a23e;this[_0xc2b431(0x32b)](_0x30c1d4[_0xc2b431(0x382)]);}['_send'](_0xd09792){const _0x3ad1db=_0xb9a23e;localStorage[_0x3ad1db(0x3d6)](_0x14413c,JSON[_0x3ad1db(0x47b)](_0xd09792));}[_0xb9a23e(0x25d)](){const _0x4709e9=_0xb9a23e;this[_0x4709e9(0x400)]=window[_0x4709e9(0x3ed)](()=>{const _0x2aa2f8=_0x4709e9;this['_send']({'type':0x2,'memberID':this[_0x2aa2f8(0x50f)]});},_0x234aea);}[_0xb9a23e(0x4d0)](_0x1ebf9a){const _0x309070=_0xb9a23e;return this[_0x309070(0x4b7)][_0x309070(0x1b4)](_0x1ebf9a)||this[_0x309070(0x4b7)][_0x309070(0x3b1)](_0x1ebf9a,new _0x1fa2ab[(_0x309070(0x492))](0x0)),this['_unitStatus'][_0x309070(0x3a6)](_0x1ebf9a);}}var _0x48053a=Object['defineProperty'],_0x31719e=Object['getOwnPropertyDescriptor'],_0x57726c=(_0x24ff49,_0x2cf427,_0x55a450,_0x3f4b11)=>{for(var _0xa9bfe2=_0x3f4b11>0x1?void 0x0:_0x3f4b11?_0x31719e(_0x2cf427,_0x55a450):_0x2cf427,_0x59ea12=_0x24ff49['length']-0x1,_0x105d61;_0x59ea12>=0x0;_0x59ea12--)(_0x105d61=_0x24ff49[_0x59ea12])&&(_0xa9bfe2=(_0x3f4b11?_0x105d61(_0x2cf427,_0x55a450,_0xa9bfe2):_0x105d61(_0xa9bfe2))||_0xa9bfe2);return _0x3f4b11&&_0xa9bfe2&&_0x48053a(_0x2cf427,_0x55a450,_0xa9bfe2),_0xa9bfe2;},_0x5bddba=(_0x58a87e,_0x36d0b8)=>(_0x579a3e,_0x12d15f)=>_0x36d0b8(_0x579a3e,_0x12d15f,_0x58a87e);let _0x4bc2a2=class{constructor(_0x3d0596,_0x15b32e){const _0x381e79=_0xb9a23e;this[_0x381e79(0x273)]=_0x3d0596,this['_transformService']=_0x15b32e;}[_0xb9a23e(0x4ab)](_0x155ff3){const _0x3241f0=_0xb9a23e;this['_transformUndoRedoStack'](_0x155ff3),this[_0x3241f0(0x1c2)](_0x155ff3);}[_0xb9a23e(0x2eb)](_0x12a123){const _0x3b68ae=_0xb9a23e,_0x4e6ac4=this[_0x3b68ae(0x273)][_0x3b68ae(0x3a6)](_0x239a47[_0x3b68ae(0x1ce)]),{redoCache:_0x11f194}=_0x4e6ac4[_0x3b68ae(0x3c1)]();if(_0x11f194[_0x3b68ae(0x480)]===0x0)return _0x12a123;let _0x3f6fb4=_0x39562f[_0x3b68ae(0x507)][_0x3b68ae(0x2d9)](_0x12a123[_0x3b68ae(0x1bb)][0x0]);for(let _0x360122=0x0;_0x360122<_0x11f194[_0x3b68ae(0x480)];_0x360122++){const _0x39f974={'id':'doc.mutation.rich-text-editing','params':{..._0x11f194[_0x360122]}},_0x4fd928=this['_transformService'][_0x3b68ae(0x4ed)](_0x3f6fb4,_0x39f974,!0x1);if(_0x244d6f[_0x3b68ae(0x443)](_0x4fd928))throw _0x4fd928[_0x3b68ae(0x4f3)];_0x3f6fb4=_0x4fd928[_0x3b68ae(0x54e)];}return{..._0x39562f[_0x3b68ae(0x507)]['deepClone'](_0x12a123),'mutations':[_0x3f6fb4]};}[_0xb9a23e(0x4c4)](_0x926ed0){const _0x26ddc4=_0xb9a23e,_0x3d6540=this['_injector'][_0x26ddc4(0x3a6)](_0x239a47[_0x26ddc4(0x1ce)]),{undoCache:_0x1ec83f,redoCache:_0x184ab9}=_0x3d6540[_0x26ddc4(0x3c1)]();if(_0x1ec83f[_0x26ddc4(0x480)]===0x0||_0x184ab9[_0x26ddc4(0x480)]===0x0)return;const _0x4ac10e=[],_0xa51873=[];let _0x2b1780=_0x39562f[_0x26ddc4(0x507)][_0x26ddc4(0x2d9)](_0x926ed0[_0x26ddc4(0x1bb)][0x0]),_0x3fe7b0=_0x39562f[_0x26ddc4(0x507)]['deepClone'](_0x926ed0['mutations'][0x0]);for(let _0x37e7c2=_0x1ec83f[_0x26ddc4(0x480)]-0x1;_0x37e7c2>=0x0;_0x37e7c2--){const _0xe711f={'id':'doc.mutation.rich-text-editing','params':{..._0x1ec83f[_0x37e7c2]}},_0x4e57f9={'id':_0x26ddc4(0x1f2),'params':{..._0x184ab9[_0x37e7c2]}},_0x5b0092=this[_0x26ddc4(0x1e0)]['transformMutation'](_0x2b1780,_0xe711f,!0x1),_0x19b32d=this[_0x26ddc4(0x1e0)]['transformMutation'](_0x3fe7b0,_0x4e57f9,!0x1);if(_0x244d6f[_0x26ddc4(0x443)](_0x5b0092))throw _0x5b0092[_0x26ddc4(0x4f3)];if(_0x244d6f[_0x26ddc4(0x443)](_0x19b32d))throw _0x19b32d[_0x26ddc4(0x4f3)];_0x4ac10e[_0x26ddc4(0x22a)](_0x5b0092['m2Prime'][_0x26ddc4(0x1b9)]),_0xa51873['unshift'](_0x19b32d[_0x26ddc4(0x349)][_0x26ddc4(0x1b9)]),_0x2b1780=_0x5b0092[_0x26ddc4(0x54e)],_0x3fe7b0=_0x19b32d['m1Prime'];}_0x3d6540['setUndoRedoMutationParamsCache']({'undoCache':_0x4ac10e,'redoCache':_0xa51873});}[_0xb9a23e(0x1c2)](_0x45c333){const _0x2f97b2=_0xb9a23e,_0x13f447=this[_0x2f97b2(0x273)][_0x2f97b2(0x3a6)](_0x239a47['IMEInputManagerService']),_0x22de14=_0x13f447['getActiveRange']();if(_0x22de14==null)return;const _0x4d1dc6=[{'id':_0x2f97b2(0x1f2),'params':{'unitId':_0x45c333[_0x2f97b2(0x474)],'actions':null,'textRanges':[_0x22de14]}}],_0x387a88=this[_0x2f97b2(0x1e0)]['transformMutationsWithChangeset'](_0x45c333,_0x4d1dc6);if(!_0x244d6f['isTransformMutationsWithChangesetSuccess'](_0x387a88))throw _0x387a88[_0x2f97b2(0x4f3)];const _0xeee26=_0x387a88[_0x2f97b2(0x349)][0x0]['params'][_0x2f97b2(0x1e2)];Array[_0x2f97b2(0x1b3)](_0xeee26)&&_0xeee26['length']&&_0x13f447[_0x2f97b2(0x44c)](_0xeee26[0x0]);}};_0x4bc2a2=_0x57726c([_0x5bddba(0x0,_0x46d633[_0xb9a23e(0x2a5)](_0x46d633[_0xb9a23e(0x215)])),_0x5bddba(0x1,_0x244d6f[_0xb9a23e(0x444)])],_0x4bc2a2);var _0x517166=Object['defineProperty'],_0x35c94a=Object[_0xb9a23e(0x2ed)],_0x4ac5d6=(_0x406ff2,_0x2b6e2c,_0x587d72,_0x41d7ed)=>{const _0x131284=_0xb9a23e;for(var _0x494256=_0x41d7ed>0x1?void 0x0:_0x41d7ed?_0x35c94a(_0x2b6e2c,_0x587d72):_0x2b6e2c,_0x33d217=_0x406ff2[_0x131284(0x480)]-0x1,_0x49ca0b;_0x33d217>=0x0;_0x33d217--)(_0x49ca0b=_0x406ff2[_0x33d217])&&(_0x494256=(_0x41d7ed?_0x49ca0b(_0x2b6e2c,_0x587d72,_0x494256):_0x49ca0b(_0x494256))||_0x494256);return _0x41d7ed&&_0x494256&&_0x517166(_0x2b6e2c,_0x587d72,_0x494256),_0x494256;},_0x37474d=(_0x291e06,_0x1bc0bc)=>(_0x1a6ce9,_0x44d754)=>_0x1bc0bc(_0x1a6ce9,_0x44d754,_0x291e06);let _0xede299=class{constructor(_0x4cbb50,_0x37cdbc){const _0x42fdb3=_0xb9a23e;this[_0x42fdb3(0x273)]=_0x4cbb50,this[_0x42fdb3(0x1e0)]=_0x37cdbc;}[_0xb9a23e(0x429)](_0x5379e7){const _0x35c083=_0xb9a23e;var _0x544bd7;const _0x5c4fcc=this[_0x35c083(0x273)][_0x35c083(0x3a6)](_0x239a47[_0x35c083(0x3c5)]),_0x848f9c=(_0x544bd7=_0x5c4fcc[_0x35c083(0x206)]())!=null?_0x544bd7:[],_0x1b2ebd=_0x848f9c==null?void 0x0:_0x848f9c['map'](_0x239a47[_0x35c083(0x29b)]);if(_0x1b2ebd['length']===0x0)return;const _0x25a4d0=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5379e7[_0x35c083(0x474)],'actions':null,'textRanges':_0x1b2ebd}}],_0x33776f=this[_0x35c083(0x1e0)][_0x35c083(0x314)](_0x5379e7,_0x25a4d0);if(!_0x244d6f[_0x35c083(0x39c)](_0x33776f))throw _0x33776f['error'];const _0x1de98c=_0x33776f[_0x35c083(0x349)][0x0][_0x35c083(0x1b9)][_0x35c083(0x1e2)];Array[_0x35c083(0x1b3)](_0x1de98c)&&_0x1de98c[_0x35c083(0x480)]&&_0x5c4fcc[_0x35c083(0x233)](_0x1de98c,!0x1);}};_0xede299=_0x4ac5d6([_0x37474d(0x0,_0x46d633['Inject'](_0x46d633[_0xb9a23e(0x215)])),_0x37474d(0x1,_0x244d6f[_0xb9a23e(0x444)])],_0xede299);function _0xcef2fd(_0x51d8cc){const _0x13f44e=_0xb9a23e;let _0x3d4119='';for(const _0x23764e of _0x51d8cc){const {startOffset:_0x2f91d4,endOffset:_0x194d6a,isActive:_0x48bc5f}=_0x23764e;_0x3d4119[_0x13f44e(0x480)]&&(_0x3d4119+=','),_0x3d4119+=_0x2f91d4+':'+_0x194d6a+':'+(_0x48bc5f?'1':'0');}return _0x3d4119;}function _0x5ea618(_0x410c03){const _0x2f4f30=_0xb9a23e,_0x9a01c0=_0x410c03[_0x2f4f30(0x3fc)](','),_0x2a9109=[];for(const _0x9133a2 of _0x9a01c0){const [_0x43d0f6,_0x31bf10,_0x341663]=_0x9133a2[_0x2f4f30(0x3fc)](':');_0x2a9109[_0x2f4f30(0x509)]({'startOffset':Number(_0x43d0f6),'endOffset':Number(_0x31bf10),'collapsed':_0x43d0f6===_0x31bf10,'isActive':_0x341663==='1'});}return _0x2a9109[_0x2f4f30(0x2bc)](_0x56059f=>_0x56059f['isActive'])||(_0x2a9109[0x0][_0x2f4f30(0x1c1)]=!0x0),_0x2a9109;}class _0x1287ec extends _0x39562f['RxDisposable']{constructor(){const _0x482993=_0xb9a23e;super(...arguments),_0x3e3dad(this,_0x482993(0x367),new _0x1fa2ab[(_0x482993(0x492))](null)),_0x3e3dad(this,_0x482993(0x45c),this['_collabCursorState$'][_0x482993(0x4bd)]());}[_0xb9a23e(0x42b)](_0x1d043c){const _0x20aaa0=_0xb9a23e,{unitID:_0x3ddc29,memberID:_0x2f04b8,textRanges:_0x21c118}=_0x1d043c,_0x4fc9e4=_0xcef2fd(_0x21c118),_0x177317={'unitID':_0x3ddc29,'memberID':_0x2f04b8,'selection':_0x4fc9e4};this[_0x20aaa0(0x367)][_0x20aaa0(0x438)](_0x177317);}}var _0x38e1e6=Object[_0xb9a23e(0x38b)],_0x237e9a=Object[_0xb9a23e(0x2ed)],_0x416933=(_0x5bf9ce,_0x34bd43,_0x115bd0,_0xa50800)=>{const _0x5812f0=_0xb9a23e;for(var _0x54914e=_0xa50800>0x1?void 0x0:_0xa50800?_0x237e9a(_0x34bd43,_0x115bd0):_0x34bd43,_0x3e9020=_0x5bf9ce[_0x5812f0(0x480)]-0x1,_0x3e7571;_0x3e9020>=0x0;_0x3e9020--)(_0x3e7571=_0x5bf9ce[_0x3e9020])&&(_0x54914e=(_0xa50800?_0x3e7571(_0x34bd43,_0x115bd0,_0x54914e):_0x3e7571(_0x54914e))||_0x54914e);return _0xa50800&&_0x54914e&&_0x38e1e6(_0x34bd43,_0x115bd0,_0x54914e),_0x54914e;},_0x154532=(_0x19245b,_0x1fa0fb)=>(_0x4a66f3,_0x1b37d8)=>_0x1fa0fb(_0x4a66f3,_0x1b37d8,_0x19245b);let _0x4aa7fa=class{constructor(_0x57a7f1,_0x9f360){const _0x57282e=_0xb9a23e;this[_0x57282e(0x273)]=_0x57a7f1,this[_0x57282e(0x1e0)]=_0x9f360;}[_0xb9a23e(0x429)](_0x3fd716){const _0xa2531f=_0xb9a23e;var _0x3f63d1,_0x90cb6c,_0x5b1f38,_0x58dd96;const _0x2ddf04=this['_injector'][_0xa2531f(0x3a6)](_0x552a78[_0xa2531f(0x376)]),{pluginName:_0x459ffc,unitId:_0x1d3ef3,sheetId:_0x3ac1db}=_0x2ddf04['getCurrent']()||{},_0x1da4b2=(_0x3f63d1=_0x2ddf04[_0xa2531f(0x206)]())!=null?_0x3f63d1:[];if(_0x1da4b2[_0xa2531f(0x480)]===0x0||!_0x459ffc||!_0x1d3ef3||!_0x3ac1db)return;const _0x2fd3ca=[{'id':_0x552a78[_0xa2531f(0x502)]['id'],'params':{'unitId':_0x1d3ef3,'subUnitId':_0x3ac1db,'pluginName':_0x459ffc,'selections':_0x39562f['Tools'][_0xa2531f(0x2d9)](_0x1da4b2)}}],_0x41f2e2=this[_0xa2531f(0x1e0)]['transformMutationsWithChangeset'](_0x3fd716,_0x2fd3ca);if(!_0x244d6f['isTransformMutationsWithChangesetSuccess'](_0x41f2e2))throw _0x41f2e2[_0xa2531f(0x4f3)];const _0x305170=(_0x58dd96=(_0x5b1f38=(_0x90cb6c=_0x41f2e2[_0xa2531f(0x349)][0x0])==null?void 0x0:_0x90cb6c['params'])==null?void 0x0:_0x5b1f38[_0xa2531f(0x4f6)])!=null?_0x58dd96:_0x1da4b2;Array[_0xa2531f(0x1b3)](_0x305170)&&_0x305170[_0xa2531f(0x480)]&&this[_0xa2531f(0x273)][_0xa2531f(0x3a6)](_0x39562f[_0xa2531f(0x4b5)])[_0xa2531f(0x2c8)](_0x552a78[_0xa2531f(0x502)]['id'],{'unitId':_0x1d3ef3,'subUnitId':_0x3ac1db,'pluginName':_0x459ffc,'selections':_0x305170});}};_0x4aa7fa=_0x416933([_0x154532(0x0,_0x46d633[_0xb9a23e(0x2a5)](_0x46d633[_0xb9a23e(0x215)])),_0x154532(0x1,_0x244d6f[_0xb9a23e(0x444)])],_0x4aa7fa);const _0x14b690=new Set([_0x552a78['InsertSheetMutation']['id']]);function _0x414cbe(_0x5e7c7c,_0x3e3dbe,_0x38357d,_0x1d6a6c,_0x19bdc8){const _0x5719e2=_0xb9a23e;var _0x5506f4,_0x22686e,_0x3d7927,_0x544c93;const _0x28ddaa=[];for(const _0xed88ae of _0x5e7c7c)if(_0x14b690[_0x5719e2(0x1b4)](_0xed88ae['id'])){if(_0x28ddaa['length']>0x0)break;_0x28ddaa[_0x5719e2(0x509)](_0xed88ae);break;}else _0x28ddaa[_0x5719e2(0x509)](_0xed88ae);const _0x19d5b3=(_0x22686e=(_0x5506f4=_0x19bdc8[_0x5719e2(0x3f5)]())==null?void 0x0:_0x5506f4[_0x5719e2(0x515)])!=null?_0x22686e:'unknown',_0xe67ae5=(_0x544c93=(_0x3d7927=_0x19bdc8[_0x5719e2(0x3f5)]())==null?void 0x0:_0x3d7927[_0x5719e2(0x382)])!=null?_0x544c93:_0x5719e2(0x3c6);return{'changeset':{'unitID':_0x3e3dbe,'type':_0x244d6f[_0x5719e2(0x559)](_0x38357d[_0x5719e2(0x3e0)](_0x3e3dbe)),'baseRev':_0x1d6a6c[_0x5719e2(0x259)](_0x3e3dbe),'revision':0x0,'userID':_0x19d5b3,'memberID':_0xe67ae5,'mutations':_0x28ddaa},'pendingMutations':_0x5e7c7c[_0x5719e2(0x29a)](_0x28ddaa[_0x5719e2(0x480)])};}function _0x5598cf(_0x270299,_0x2ffa61,_0x2d9db4,_0x1d088a,_0x1147cd){const _0x4eaea4=_0xb9a23e;var _0xe7c33b,_0xb9dd9f,_0x3db2fc,_0x4d5f9f;const _0x5818d2=[_0x270299[_0x4eaea4(0x416)]((_0x310804,_0x2a43f3)=>{const _0x537d55=_0x4eaea4;var _0x20b04a;const {id:_0x4f5b50}=_0x310804,{id:_0x5dca2e,type:_0x4f60ab}=_0x2a43f3,_0x19b212=(_0x20b04a=_0x310804[_0x537d55(0x1b9)])!=null?_0x20b04a:{'actions':null},_0x4f87cd=_0x2a43f3[_0x537d55(0x1b9)];if(_0x4f5b50&&_0x4f5b50!==_0x5dca2e)throw new Error(_0x537d55(0x25e)+_0x4f5b50+'\x20-\x20'+_0x5dca2e+'.');return{..._0x310804,'id':_0x5dca2e,'type':_0x4f60ab,'params':{'unitId':_0x4f87cd['unitId'],'textRanges':_0x4f87cd[_0x537d55(0x1e2)],'actions':_0x39562f[_0x537d55(0x1c7)][_0x537d55(0x430)](_0x19b212[_0x537d55(0x3fb)],_0x4f87cd[_0x537d55(0x3fb)])}};},{})],_0x3a5a3c=(_0xb9dd9f=(_0xe7c33b=_0x1147cd[_0x4eaea4(0x3f5)]())==null?void 0x0:_0xe7c33b[_0x4eaea4(0x515)])!=null?_0xb9dd9f:'unknown',_0x255a21=(_0x4d5f9f=(_0x3db2fc=_0x1147cd['getCurrentUser']())==null?void 0x0:_0x3db2fc[_0x4eaea4(0x382)])!=null?_0x4d5f9f:_0x4eaea4(0x3c6);return{'changeset':{'unitID':_0x2ffa61,'type':_0x244d6f[_0x4eaea4(0x559)](_0x2d9db4[_0x4eaea4(0x3e0)](_0x2ffa61)),'baseRev':_0x1d088a[_0x4eaea4(0x259)](_0x2ffa61),'revision':0x0,'userID':_0x3a5a3c,'memberID':_0x255a21,'mutations':_0x5818d2},'pendingMutations':[]};}var _0x42bffb=Object[_0xb9a23e(0x38b)],_0x303b8d=Object[_0xb9a23e(0x2ed)],_0x215c7f=(_0x4300ec,_0x41ea0e,_0x1f02c5,_0x88731b)=>{const _0x47c3b4=_0xb9a23e;for(var _0x37c6ae=_0x88731b>0x1?void 0x0:_0x88731b?_0x303b8d(_0x41ea0e,_0x1f02c5):_0x41ea0e,_0x3a41d1=_0x4300ec[_0x47c3b4(0x480)]-0x1,_0x394b2b;_0x3a41d1>=0x0;_0x3a41d1--)(_0x394b2b=_0x4300ec[_0x3a41d1])&&(_0x37c6ae=(_0x88731b?_0x394b2b(_0x41ea0e,_0x1f02c5,_0x37c6ae):_0x394b2b(_0x37c6ae))||_0x37c6ae);return _0x88731b&&_0x37c6ae&&_0x42bffb(_0x41ea0e,_0x1f02c5,_0x37c6ae),_0x37c6ae;},_0x21f417=(_0x1c2ba9,_0x80762)=>(_0x5d23fc,_0x17ee24)=>_0x80762(_0x5d23fc,_0x17ee24,_0x1c2ba9),_0x3cde1c=(_0x3831ba=>(_0x3831ba[_0xb9a23e(0x547)]=_0xb9a23e(0x3ef),_0x3831ba['SYNCED']=_0xb9a23e(0x25c),_0x3831ba[_0xb9a23e(0x487)]=_0xb9a23e(0x2ad),_0x3831ba[_0xb9a23e(0x2ee)]=_0xb9a23e(0x412),_0x3831ba[_0xb9a23e(0x3a8)]=_0xb9a23e(0x4c8),_0x3831ba[_0xb9a23e(0x228)]=_0xb9a23e(0x51b),_0x3831ba['CONFLICT']='conflict',_0x3831ba[_0xb9a23e(0x354)]=_0xb9a23e(0x343),_0x3831ba))(_0x3cde1c||{});class _0x145db3{constructor(_0x10186a,_0x18e46e,_0x588a38,_0x4793e2,_0x4771bf,_0x3a05e2,_0x316846,_0x5a16dc,_0x126f2a){const _0x3e2cf7=_0xb9a23e;_0x3e3dad(this,_0x3e2cf7(0x457),null),_0x3e3dad(this,_0x3e2cf7(0x1e4),[]),(this[_0x3e2cf7(0x474)]=_0x10186a,this['type']=_0x18e46e,this[_0x3e2cf7(0x26f)]=_0x4771bf,this['_commandService']=_0x3a05e2,this[_0x3e2cf7(0x40d)]=_0x316846,this['_revisionService']=_0x5a16dc,this[_0x3e2cf7(0x557)]=_0x126f2a,this['_awaitingChangeset']=_0x588a38,this[_0x3e2cf7(0x1e4)]=_0x4793e2);}['_checkMissing'](_0x8aac21){const _0x4f3dd6=_0xb9a23e,_0x4e18da=this['_revisionService'][_0x4f3dd6(0x259)](this[_0x4f3dd6(0x474)]);return _0x8aac21[_0x4f3dd6(0x365)]>_0x4e18da+0x1?(this['_handler'][_0x4f3dd6(0x2e3)]({'from':_0x4e18da,'to':_0x8aac21['revision']-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x12c8f6){const _0x59863c=_0xb9a23e;this[_0x59863c(0x40d)][_0x59863c(0x461)](this['unitID'],_0x12c8f6);}[_0xb9a23e(0x42e)](_0x44bc42){const _0xa9af1e=_0xb9a23e;var _0x62a069,_0x3cf042;(_0x3cf042=(_0x62a069=this[_0xa9af1e(0x26f)])[_0xa9af1e(0x335)])==null||_0x3cf042[_0xa9af1e(0x29c)](_0x62a069,_0x44bc42);}[_0xb9a23e(0x479)](_0x578a10){const _0x4d4310=_0xb9a23e;var _0x32b3a1,_0x5a9978;return(_0x5a9978=(_0x32b3a1=this[_0x4d4310(0x26f)])['onTransformIME'])==null?void 0x0:_0x5a9978[_0x4d4310(0x29c)](_0x32b3a1,_0x578a10);}[_0xb9a23e(0x415)](_0x5ac651){const _0x5db899=_0xb9a23e;var _0x1ab866,_0x2a28a3,_0x1d8684;return(_0x1d8684=(_0x2a28a3=(_0x1ab866=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x2a28a3[_0x5db899(0x29c)](_0x1ab866,_0x5ac651))!=null?_0x1d8684:_0x5ac651;}[_0xb9a23e(0x24e)](_0x2b9d4b){const _0x4f7af4=_0xb9a23e;var _0x3fb68a,_0x150ac7;if(this[_0x4f7af4(0x2a3)]===_0x55e05d[_0x4f7af4(0x49f)]){const {unitID:_0x36855c,mutations:_0x33a2ec,memberID:_0x5e3926}=_0x2b9d4b,_0x3aada7=_0x33a2ec[0x0]['params'][_0x4f7af4(0x1e2)];Array[_0x4f7af4(0x1b3)](_0x3aada7)&&_0x3aada7[_0x4f7af4(0x480)]>0x0&&((_0x150ac7=(_0x3fb68a=this[_0x4f7af4(0x26f)])['onSyncEditingCollabCursor'])==null||_0x150ac7[_0x4f7af4(0x29c)](_0x3fb68a,{'unitID':_0x36855c,'memberID':_0x5e3926,'textRanges':_0x3aada7}));}}['_updateLocalCache'](){const _0x4782e5=_0xb9a23e;this[_0x4782e5(0x557)][_0x4782e5(0x4f1)](this[_0x4782e5(0x474)],this[_0x4782e5(0x2a3)],this[_0x4782e5(0x457)],this['_pendingMutations']);}[_0xb9a23e(0x3a9)](){const _0x45fcdf=_0xb9a23e;return this[_0x45fcdf(0x3ee)][_0x45fcdf(0x259)](this['unitID']);}[_0xb9a23e(0x544)](){const _0x5e982d=_0xb9a23e;this['_revisionService']['incrementRevForDocument'](this[_0x5e982d(0x474)]);}[_0xb9a23e(0x308)](_0x5ae748){const _0x41a75c=_0xb9a23e;var _0x2286ef;const _0xf4f6fd=this[_0x41a75c(0x415)](_0x5ae748),_0x387040=_0x39562f[_0x41a75c(0x4f8)](_0xf4f6fd[_0x41a75c(0x1bb)],this[_0x41a75c(0x384)],{'fromCollab':!0x0});if(!_0x387040[_0x41a75c(0x4ae)])throw _0x387040[_0x41a75c(0x4f3)]instanceof Error?_0x387040[_0x41a75c(0x4f3)]:new Error((_0x2286ef=_0x387040[_0x41a75c(0x4f3)])!=null?_0x2286ef:_0x41a75c(0x3d1));this[_0x41a75c(0x479)](_0xf4f6fd),this[_0x41a75c(0x4e9)](_0x5ae748),this[_0x41a75c(0x42e)](_0xf4f6fd),this['_syncEditingCollabCursor'](_0xf4f6fd),this[_0x41a75c(0x544)]();}}let _0x6f1eec=class extends _0x145db3{constructor(_0xfd843f,_0x1b7934,_0x4543ec,_0x27e9f4,_0x35bbb3,_0x266cc7,_0x41c344,_0x440b0d,_0x12f8e3){const _0x5ca831=_0xb9a23e;super(_0xfd843f,_0x1b7934,null,[],_0x4543ec,_0x440b0d,_0x41c344,_0x27e9f4,_0x35bbb3),_0x3e3dad(this,_0x5ca831(0x23e),_0x5ca831(0x25c)),(this[_0x5ca831(0x273)]=_0x266cc7,this[_0x5ca831(0x38c)]=_0x12f8e3);}['appendMutation'](_0x32aa19){const _0x2f1f25=_0xb9a23e,_0x2817ef=this['_injector']['createInstance'](_0x40e168,this[_0x2f1f25(0x474)],this['type'],[_0x32aa19],this[_0x2f1f25(0x26f)]);return _0x2817ef[_0x2f1f25(0x274)](),_0x2817ef[_0x2f1f25(0x563)](),_0x2817ef;}[_0xb9a23e(0x325)](_0x19b65d){const _0x486d5c=_0xb9a23e;if(this[_0x486d5c(0x347)](_0x19b65d))return this[_0x486d5c(0x273)]['createInstance'](_0x500eaf,this[_0x486d5c(0x474)],this[_0x486d5c(0x2a3)],null,[],null,[_0x19b65d],this[_0x486d5c(0x26f)]);try{return this[_0x486d5c(0x308)](_0x19b65d),this;}catch(_0x19e279){return this[_0x486d5c(0x38c)][_0x486d5c(0x4f3)](_0x486d5c(0x370),_0x19e279),this;}}[_0xb9a23e(0x481)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0xb9a23e(0x20a)](){const _0x41c8fd=_0xb9a23e;throw new Error(_0x41c8fd(0x3ea));}[_0xb9a23e(0x296)](){const _0x998ee0=_0xb9a23e;return this['_injector'][_0x998ee0(0x4dc)](_0x5a9a82,this['unitID'],this[_0x998ee0(0x2a3)],null,[],this[_0x998ee0(0x26f)]);}[_0xb9a23e(0x1de)](){return this;}['resend'](){const _0x330648=_0xb9a23e;throw new Error(_0x330648(0x4d5));}};_0x6f1eec=_0x215c7f([_0x21f417(0x3,_0x46d633[_0xb9a23e(0x2a5)](_0x244d6f[_0xb9a23e(0x2e4)])),_0x21f417(0x4,_0x46d633['Inject'](_0x2dfa89[_0xb9a23e(0x38a)])),_0x21f417(0x5,_0x46d633['Inject'](_0x46d633[_0xb9a23e(0x215)])),_0x21f417(0x6,_0x39562f[_0xb9a23e(0x4b1)]),_0x21f417(0x7,_0x39562f[_0xb9a23e(0x4b5)]),_0x21f417(0x8,_0x39562f[_0xb9a23e(0x3d4)])],_0x6f1eec);let _0x40e168=class extends _0x145db3{constructor(_0xc75f8e,_0x19b835,_0xf80dcc,_0x12c122,_0x25cf8c,_0x195ee2,_0x4aebbd,_0x7cfc4d,_0x503169,_0x489f54,_0x1d759d,_0x4c6e51,_0x1f8f9c,_0x422671){const _0x15de00=_0xb9a23e;super(_0xc75f8e,_0x19b835,null,_0xf80dcc,_0x12c122,_0x489f54,_0x422671,_0x195ee2,_0x4aebbd),_0x3e3dad(this,_0x15de00(0x23e),_0x15de00(0x2ad)),_0x3e3dad(this,'_scheduleTimestamp',null),_0x3e3dad(this,'_sendingTimer',null),(this[_0x15de00(0x273)]=_0x25cf8c,this[_0x15de00(0x50c)]=_0x7cfc4d,this[_0x15de00(0x38c)]=_0x503169,this[_0x15de00(0x1ec)]=_0x1d759d,this[_0x15de00(0x1e0)]=_0x4c6e51,this[_0x15de00(0x328)]=_0x1f8f9c);}[_0xb9a23e(0x2b8)](_0x4e9610){const _0x2bb277=_0xb9a23e;return this['_pendingMutations']['push'](_0x4e9610),this[_0x2bb277(0x563)](),this;}[_0xb9a23e(0x325)](_0x58c9fc){const _0x5cfba0=_0xb9a23e;if(this[_0x5cfba0(0x347)](_0x58c9fc))return this[_0x5cfba0(0x266)](),this[_0x5cfba0(0x273)][_0x5cfba0(0x4dc)](_0x500eaf,this[_0x5cfba0(0x474)],this[_0x5cfba0(0x2a3)],null,this[_0x5cfba0(0x1e4)],null,[_0x58c9fc],this['_handler']);try{const _0x3e4800=this[_0x5cfba0(0x1e0)][_0x5cfba0(0x314)](_0x58c9fc,this[_0x5cfba0(0x1e4)]);if(_0x244d6f[_0x5cfba0(0x39c)](_0x3e4800)){const {c1Prime:_0x105979,m2Prime:_0x51ff3b}=_0x3e4800;this['_executeRemoteChangeset'](_0x105979);const _0x6acfdf=this['_injector'][_0x5cfba0(0x4dc)](_0x40e168,this[_0x5cfba0(0x474)],this[_0x5cfba0(0x2a3)],_0x51ff3b,this[_0x5cfba0(0x26f)]);return this[_0x5cfba0(0x266)](),_0x6acfdf[_0x5cfba0(0x274)](this[_0x5cfba0(0x329)]?Math[_0x5cfba0(0x2b5)](0x0,new Date()[_0x5cfba0(0x317)]()-this['_scheduleTimestamp']):this[_0x5cfba0(0x2f7)]()),_0x6acfdf;}throw _0x3e4800['error'];}catch(_0x28f7b8){return this['_logService'][_0x5cfba0(0x4f3)](_0x28f7b8),this['_onConflict'](!0x1);}}[_0xb9a23e(0x481)](){const _0x25f0ec=_0xb9a23e;throw new Error(_0x25f0ec(0x24d));}['onRemoteRej'](){const _0x2ba16c=_0xb9a23e;throw new Error(_0x2ba16c(0x458));}['toggleOffline'](){const _0x51b588=_0xb9a23e;return this[_0x51b588(0x266)](),this[_0x51b588(0x273)][_0x51b588(0x4dc)](_0x5a9a82,this['unitID'],this[_0x51b588(0x2a3)],null,this[_0x51b588(0x1e4)],this[_0x51b588(0x26f)]);}[_0xb9a23e(0x1de)](){return this;}[_0xb9a23e(0x274)](_0xbd4444){const _0xf9c99f=_0xb9a23e;_0xbd4444=_0xbd4444!=null?_0xbd4444:this[_0xf9c99f(0x2f7)](),this['_scheduleTimestamp']=new Date()['getTime'](),this['_sendingTimer']=setTimeout(()=>{const _0x6b48c1=_0xf9c99f;this[_0x6b48c1(0x266)]();let _0x4f5622=null;switch(this['type']){case _0x55e05d[_0x6b48c1(0x40a)]:{_0x4f5622=_0x414cbe(this[_0x6b48c1(0x1e4)],this[_0x6b48c1(0x474)],this[_0x6b48c1(0x328)],this[_0x6b48c1(0x3ee)],this[_0x6b48c1(0x50c)]);break;}case _0x55e05d[_0x6b48c1(0x49f)]:{_0x4f5622=_0x5598cf(this[_0x6b48c1(0x1e4)],this[_0x6b48c1(0x474)],this['_univerInstanceService'],this[_0x6b48c1(0x3ee)],this[_0x6b48c1(0x50c)]);break;}default:throw new Error(_0x6b48c1(0x2fe)+this[_0x6b48c1(0x2a3)]+_0x6b48c1(0x1a6));}const {changeset:_0x54eac8,pendingMutations:_0x1c1c06}=_0x4f5622;this['_handler']['onSendChangeset'](_0x54eac8);const _0x2d4c79=_0x1c1c06[_0x6b48c1(0x480)]?this[_0x6b48c1(0x273)][_0x6b48c1(0x4dc)](_0x338cb3,this[_0x6b48c1(0x474)],this['type'],_0x54eac8,_0x1c1c06,this['_handler']):this[_0x6b48c1(0x273)][_0x6b48c1(0x4dc)](_0x381722,this[_0x6b48c1(0x474)],this['type'],_0x54eac8,this[_0x6b48c1(0x26f)]);_0x2d4c79[_0x6b48c1(0x563)](),this[_0x6b48c1(0x26f)]['onStateChange'](this,_0x2d4c79);},_0xbd4444);}[_0xb9a23e(0x2f7)](){const _0x529d90=_0xb9a23e;var _0x5099d1;return(_0x5099d1=this[_0x529d90(0x1ec)][_0x529d90(0x496)](_0x477c27))!=null?_0x5099d1:0x7d0;}[_0xb9a23e(0x21b)](){const _0x425359=_0xb9a23e;throw new Error(_0x425359(0x3bc));}[_0xb9a23e(0x266)](){const _0x3e4c46=_0xb9a23e;this[_0x3e4c46(0x3e4)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0xb9a23e(0x316)](_0x3fe34a){const _0x1d02e7=_0xb9a23e;return this[_0x1d02e7(0x266)](),this[_0x1d02e7(0x273)]['createInstance'](_0x1be45e,this[_0x1d02e7(0x474)],this[_0x1d02e7(0x2a3)],null,this['_pendingMutations'],this[_0x1d02e7(0x26f)],_0x3fe34a);}};_0x40e168=_0x215c7f([_0x21f417(0x4,_0x46d633[_0xb9a23e(0x2a5)](_0x46d633[_0xb9a23e(0x215)])),_0x21f417(0x5,_0x46d633[_0xb9a23e(0x2a5)](_0x244d6f['RevisionService'])),_0x21f417(0x6,_0x46d633[_0xb9a23e(0x2a5)](_0x2dfa89['LocalCacheService'])),_0x21f417(0x7,_0x46d633[_0xb9a23e(0x2a5)](_0x3eae2a)),_0x21f417(0x8,_0x39562f[_0xb9a23e(0x3d4)]),_0x21f417(0x9,_0x39562f[_0xb9a23e(0x4b5)]),_0x21f417(0xa,_0x39562f[_0xb9a23e(0x251)]),_0x21f417(0xb,_0x244d6f['ITransformService']),_0x21f417(0xc,_0x39562f[_0xb9a23e(0x2d6)]),_0x21f417(0xd,_0x39562f[_0xb9a23e(0x4b1)])],_0x40e168);let _0x381722=class extends _0x145db3{constructor(_0x3b97f8,_0x5298e2,_0xd02ee2,_0x130dcd,_0x52bee4,_0x1dafcc,_0x33f29f,_0x4942c1,_0x5acac0,_0x201d60,_0xcc67f8){const _0x143162=_0xb9a23e;super(_0x3b97f8,_0x5298e2,_0xd02ee2,[],_0x130dcd,_0x4942c1,_0xcc67f8,_0x1dafcc,_0x33f29f),_0x3e3dad(this,_0x143162(0x23e),_0x143162(0x412)),(this[_0x143162(0x273)]=_0x52bee4,this[_0x143162(0x38c)]=_0x5acac0,this[_0x143162(0x1e0)]=_0x201d60);}[_0xb9a23e(0x2b8)](_0x1dac7c){const _0x2a1f7d=_0xb9a23e,_0x1776d3=this[_0x2a1f7d(0x273)]['createInstance'](_0x338cb3,this[_0x2a1f7d(0x474)],this['type'],this[_0x2a1f7d(0x457)],[_0x1dac7c],this[_0x2a1f7d(0x26f)]);return _0x1776d3[_0x2a1f7d(0x563)](),_0x1776d3;}['onRemoteChangeset'](_0x61c320){const _0x53f69a=_0xb9a23e;if(this['_checkMissing'](_0x61c320))return this[_0x53f69a(0x273)][_0x53f69a(0x4dc)](_0x500eaf,this[_0x53f69a(0x474)],this['type'],this[_0x53f69a(0x457)],[],null,[_0x61c320],this[_0x53f69a(0x26f)]);try{const _0x28fcec=this[_0x53f69a(0x1e0)][_0x53f69a(0x41d)]([_0x61c320],[this[_0x53f69a(0x457)]],!0x1);if(_0x244d6f[_0x53f69a(0x4d8)](_0x28fcec)){const {c1Prime:_0x575d7a,c2Prime:_0x4c03f5}=_0x28fcec;this[_0x53f69a(0x308)](_0x575d7a[0x0]),_0x4c03f5[0x0]['baseRev']=this[_0x53f69a(0x3a9)]();const _0xca8b67=this[_0x53f69a(0x273)][_0x53f69a(0x4dc)](_0x381722,this[_0x53f69a(0x474)],this['type'],_0x4c03f5[0x0],this[_0x53f69a(0x26f)]);return _0xca8b67[_0x53f69a(0x563)](),_0xca8b67;}return this[_0x53f69a(0x316)](!0x1);}catch(_0x274215){return this['_logService'][_0x53f69a(0x4f3)](_0x274215),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x86c7e2){const _0x618ff7=_0xb9a23e,_0x50f377=this['_revisionService'][_0x618ff7(0x259)](this[_0x618ff7(0x474)]);if(_0x86c7e2[_0x618ff7(0x365)]<_0x50f377-0x1)return this;if(this[_0x618ff7(0x347)](_0x86c7e2))return this[_0x618ff7(0x273)][_0x618ff7(0x4dc)](_0x500eaf,this[_0x618ff7(0x474)],this[_0x618ff7(0x2a3)],null,[],this[_0x618ff7(0x457)],[],this[_0x618ff7(0x26f)]);this[_0x618ff7(0x544)]();const _0x2f11d4=this['_injector'][_0x618ff7(0x4dc)](_0x6f1eec,this[_0x618ff7(0x474)],this[_0x618ff7(0x2a3)],this[_0x618ff7(0x26f)]);return _0x2f11d4[_0x618ff7(0x563)](),_0x2f11d4;}[_0xb9a23e(0x20a)](_0x4c2d9b){const _0x3c343f=_0xb9a23e;return this[_0x3c343f(0x316)](!!(_0x4c2d9b!=null&&_0x4c2d9b[_0x3c343f(0x288)]));}[_0xb9a23e(0x296)](){const _0x225022=_0xb9a23e;return this[_0x225022(0x273)][_0x225022(0x4dc)](_0x5a9a82,this['unitID'],this[_0x225022(0x2a3)],this[_0x225022(0x457)],[],this['_handler']);}['toggleOnline'](){return this;}[_0xb9a23e(0x21b)](){const _0x162430=_0xb9a23e;this['_handler'][_0x162430(0x478)](this[_0x162430(0x457)]);}['_onConflict'](_0x518cc0){const _0x139383=_0xb9a23e;return this[_0x139383(0x273)][_0x139383(0x4dc)](_0x1be45e,this[_0x139383(0x474)],this[_0x139383(0x2a3)],this[_0x139383(0x457)],[],this[_0x139383(0x26f)],_0x518cc0);}};_0x381722=_0x215c7f([_0x21f417(0x4,_0x46d633[_0xb9a23e(0x2a5)](_0x46d633[_0xb9a23e(0x215)])),_0x21f417(0x5,_0x46d633[_0xb9a23e(0x2a5)](_0x244d6f[_0xb9a23e(0x2e4)])),_0x21f417(0x6,_0x46d633['Inject'](_0x2dfa89[_0xb9a23e(0x38a)])),_0x21f417(0x7,_0x39562f[_0xb9a23e(0x4b5)]),_0x21f417(0x8,_0x39562f[_0xb9a23e(0x3d4)]),_0x21f417(0x9,_0x244d6f[_0xb9a23e(0x444)]),_0x21f417(0xa,_0x39562f[_0xb9a23e(0x4b1)])],_0x381722);let _0x338cb3=class extends _0x145db3{constructor(_0x292698,_0x7caab1,_0x5bb6ba,_0x5f1fc1,_0x1d531e,_0x3dc835,_0x44ec40,_0x335cfe,_0x1c11b5,_0x199d83,_0x59522f,_0x2670e9){const _0x44b1c8=_0xb9a23e;super(_0x292698,_0x7caab1,_0x5bb6ba,_0x5f1fc1,_0x1d531e,_0x1c11b5,_0x2670e9,_0x44ec40,_0x335cfe),_0x3e3dad(this,_0x44b1c8(0x23e),_0x44b1c8(0x4c8)),(this[_0x44b1c8(0x273)]=_0x3dc835,this[_0x44b1c8(0x38c)]=_0x199d83,this[_0x44b1c8(0x1e0)]=_0x59522f);}['appendMutation'](_0x3af69f){const _0x4af3df=_0xb9a23e;return this[_0x4af3df(0x1e4)][_0x4af3df(0x509)](_0x3af69f),this;}[_0xb9a23e(0x325)](_0x2d091e){const _0x1b9f73=_0xb9a23e;if(this[_0x1b9f73(0x347)](_0x2d091e))return this['_injector'][_0x1b9f73(0x4dc)](_0x500eaf,this[_0x1b9f73(0x474)],this['type'],this['_awaitingChangeset'],this[_0x1b9f73(0x1e4)],null,[_0x2d091e],this[_0x1b9f73(0x26f)]);try{const _0x3ae539=this[_0x1b9f73(0x1e0)][_0x1b9f73(0x41d)]([_0x2d091e],[this[_0x1b9f73(0x457)]],!0x1);if(_0x244d6f[_0x1b9f73(0x4d8)](_0x3ae539)){const {c1Prime:_0x112853,c2Prime:_0xa40327}=_0x3ae539,_0xb4687f=this[_0x1b9f73(0x1e0)][_0x1b9f73(0x314)](_0x112853[0x0],this[_0x1b9f73(0x1e4)]);if(_0x244d6f[_0x1b9f73(0x39c)](_0xb4687f)){const {c1Prime:_0x39d2e2,m2Prime:_0x57be4e}=_0xb4687f;return this[_0x1b9f73(0x308)](_0x39d2e2),_0xa40327[0x0][_0x1b9f73(0x27e)]=this[_0x1b9f73(0x3a9)](),this[_0x1b9f73(0x273)][_0x1b9f73(0x4dc)](_0x338cb3,this[_0x1b9f73(0x474)],this['type'],_0xa40327[0x0],_0x57be4e,this[_0x1b9f73(0x26f)]);}throw _0xb4687f[_0x1b9f73(0x4f3)];}throw _0x3ae539['error'];}catch(_0x2a7df0){return this[_0x1b9f73(0x38c)][_0x1b9f73(0x4f3)](_0x2a7df0),this[_0x1b9f73(0x316)](!0x1);}}[_0xb9a23e(0x481)](_0x2d6919){const _0x54a7e1=_0xb9a23e;if(this[_0x54a7e1(0x347)](_0x2d6919))return this[_0x54a7e1(0x273)][_0x54a7e1(0x4dc)](_0x500eaf,this['unitID'],this[_0x54a7e1(0x2a3)],null,this[_0x54a7e1(0x1e4)],this['_awaitingChangeset'],[],this[_0x54a7e1(0x26f)]);this['_incrementRevisionNumber']();const _0x240b7f=this[_0x54a7e1(0x273)][_0x54a7e1(0x4dc)](_0x40e168,this[_0x54a7e1(0x474)],this[_0x54a7e1(0x2a3)],this[_0x54a7e1(0x1e4)],this['_handler']);return _0x240b7f['_schedule'](),_0x240b7f[_0x54a7e1(0x563)](),_0x240b7f;}[_0xb9a23e(0x20a)](_0x17bb4b){const _0x16a9a3=_0xb9a23e;return this['_onConflict'](!!(_0x17bb4b!=null&&_0x17bb4b[_0x16a9a3(0x288)]));}[_0xb9a23e(0x296)](){const _0x2ebc6e=_0xb9a23e;return this[_0x2ebc6e(0x273)][_0x2ebc6e(0x4dc)](_0x5a9a82,this['unitID'],this[_0x2ebc6e(0x2a3)],this[_0x2ebc6e(0x457)],this[_0x2ebc6e(0x1e4)],this[_0x2ebc6e(0x26f)]);}[_0xb9a23e(0x1de)](){return this;}[_0xb9a23e(0x21b)](){const _0x4be5e9=_0xb9a23e;this['_handler'][_0x4be5e9(0x478)](this[_0x4be5e9(0x457)]);}[_0xb9a23e(0x316)](_0x1b555d){const _0x43977e=_0xb9a23e;return this[_0x43977e(0x273)][_0x43977e(0x4dc)](_0x1be45e,this['unitID'],this['type'],null,this['_pendingMutations'],this[_0x43977e(0x26f)],_0x1b555d);}};_0x338cb3=_0x215c7f([_0x21f417(0x5,_0x46d633[_0xb9a23e(0x2a5)](_0x46d633[_0xb9a23e(0x215)])),_0x21f417(0x6,_0x46d633[_0xb9a23e(0x2a5)](_0x244d6f[_0xb9a23e(0x2e4)])),_0x21f417(0x7,_0x46d633[_0xb9a23e(0x2a5)](_0x2dfa89[_0xb9a23e(0x38a)])),_0x21f417(0x8,_0x39562f['ICommandService']),_0x21f417(0x9,_0x39562f['ILogService']),_0x21f417(0xa,_0x244d6f[_0xb9a23e(0x444)]),_0x21f417(0xb,_0x39562f[_0xb9a23e(0x4b1)])],_0x338cb3);let _0x1be45e=class extends _0x145db3{constructor(_0x558b82,_0x3b9663,_0x2ef2ed,_0x116035,_0x107b28,_0x61f776=!0x1,_0x34df96,_0x3deff9,_0x1a0b3e,_0x48c569,_0x33c4b5,_0x5699eb,_0x49e4c9){const _0x5652ce=_0xb9a23e;super(_0x558b82,_0x3b9663,_0x2ef2ed,_0x116035,_0x107b28,_0x3deff9,_0x1a0b3e,_0x33c4b5,_0x48c569),_0x3e3dad(this,_0x5652ce(0x23e),_0x5652ce(0x41c)),(this[_0x5652ce(0x363)]=_0x61f776,this[_0x5652ce(0x2f3)]=_0x34df96,this[_0x5652ce(0x530)]=_0x5699eb,this[_0x5652ce(0x315)]=_0x49e4c9,this[_0x5652ce(0x2df)](),this[_0x5652ce(0x24b)](),this[_0x5652ce(0x552)]());}[_0xb9a23e(0x2b8)](){return this;}[_0xb9a23e(0x325)](){return this;}[_0xb9a23e(0x481)](){return this;}['onRemoteRej'](){return this;}[_0xb9a23e(0x296)](){return this;}[_0xb9a23e(0x1de)](){return this;}[_0xb9a23e(0x21b)](){const _0x5e3ca=_0xb9a23e;throw new Error(_0x5e3ca(0x1cb));}[_0xb9a23e(0x24b)](){const _0x3b84e4=_0xb9a23e;this[_0x3b84e4(0x557)][_0x3b84e4(0x4f1)](this[_0x3b84e4(0x474)],this['type'],null,[]);}['_showConflictNotification'](){const _0x37d629=_0xb9a23e;this[_0x37d629(0x363)]?this[_0x37d629(0x315)][_0x37d629(0x46d)]({'title':this[_0x37d629(0x530)]['t'](_0x37d629(0x483)),'content':this[_0x37d629(0x530)]['t'](_0x37d629(0x1cc)),'type':_0x37d629(0x4f3),'duration':0x0}):this['_notificationService'][_0x37d629(0x46d)]({'title':this[_0x37d629(0x530)]['t']('conflict.title'),'content':this[_0x37d629(0x530)]['t']('conflict.content'),'type':_0x37d629(0x4f3),'duration':0x0});}[_0xb9a23e(0x552)](){const _0x254657=_0xb9a23e;this[_0x254657(0x2f3)][_0x254657(0x331)](new _0x552a78[(_0x254657(0x39b))](this['unitID'])['id'],!0x1);}};_0x1be45e=_0x215c7f([_0x21f417(0x6,_0x46d633['Inject'](_0x39562f['IPermissionService'])),_0x21f417(0x7,_0x39562f[_0xb9a23e(0x4b5)]),_0x21f417(0x8,_0x39562f[_0xb9a23e(0x4b1)]),_0x21f417(0x9,_0x46d633[_0xb9a23e(0x2a5)](_0x2dfa89[_0xb9a23e(0x38a)])),_0x21f417(0xa,_0x46d633['Inject'](_0x244d6f[_0xb9a23e(0x2e4)])),_0x21f417(0xb,_0x46d633['Inject'](_0x39562f[_0xb9a23e(0x303)])),_0x21f417(0xc,_0x38d129['INotificationService'])],_0x1be45e);let _0x5a9a82=class extends _0x145db3{constructor(_0x4b91b2,_0x242c98,_0x16cd24,_0x5b66bc,_0x5871fe,_0x54e32f,_0x29adee,_0x3c658f,_0x5f3092,_0x185d2d){const _0x590011=_0xb9a23e;super(_0x4b91b2,_0x242c98,_0x16cd24,_0x5b66bc,_0x5871fe,_0x5f3092,_0x185d2d,_0x29adee,_0x3c658f),_0x3e3dad(this,_0x590011(0x23e),_0x590011(0x343)),this['_injector']=_0x54e32f;}['appendMutation'](_0x4bafc2){const _0xa79342=_0xb9a23e;return this['_pendingMutations']['push'](_0x4bafc2),this[_0xa79342(0x563)](),this;}[_0xb9a23e(0x325)](_0x9a6b95){const _0x233f3f=_0xb9a23e;throw new Error(_0x233f3f(0x264));}[_0xb9a23e(0x481)](){const _0x3e5af9=_0xb9a23e;throw new Error(_0x3e5af9(0x399));}[_0xb9a23e(0x20a)](){const _0x20b169=_0xb9a23e;throw new Error(_0x20b169(0x285));}[_0xb9a23e(0x296)](){return this;}[_0xb9a23e(0x1de)](){const _0x2f01be=_0xb9a23e,{_injector:_0x8654f2,_pendingMutations:_0x9359da,_awaitingChangeset:_0x4e335a,unitID:_0x79a17f,_handler:_0x44c406,type:_0x14441b}=this,_0x14e9c9=_0x2bb98a(_0x8654f2,_0x79a17f,_0x14441b,_0x4e335a,_0x9359da,_0x44c406);return _0x14e9c9 instanceof _0x40e168?_0x14e9c9[_0x2f01be(0x274)]():(_0x14e9c9 instanceof _0x338cb3||_0x14e9c9 instanceof _0x381722)&&_0x14e9c9[_0x2f01be(0x21b)](),_0x14e9c9;}[_0xb9a23e(0x21b)](){const _0x3a7c4d=_0xb9a23e;throw new Error(_0x3a7c4d(0x20e));}};_0x5a9a82=_0x215c7f([_0x21f417(0x5,_0x46d633[_0xb9a23e(0x2a5)](_0x46d633['Injector'])),_0x21f417(0x6,_0x46d633[_0xb9a23e(0x2a5)](_0x244d6f['RevisionService'])),_0x21f417(0x7,_0x46d633[_0xb9a23e(0x2a5)](_0x2dfa89[_0xb9a23e(0x38a)])),_0x21f417(0x8,_0x39562f[_0xb9a23e(0x4b5)]),_0x21f417(0x9,_0x39562f[_0xb9a23e(0x4b1)])],_0x5a9a82);let _0x500eaf=class extends _0x145db3{constructor(_0x344004,_0x2203e4,_0x18912a,_0x274e0d,_0x7dba5b,_0x2b5032,_0x1973c0,_0x4757ee,_0x4d3e07,_0x2cf3d2,_0xb2b29c,_0x393169,_0x1c2a94,_0xa7304e){const _0x61146=_0xb9a23e;super(_0x344004,_0x2203e4,_0x18912a,_0x274e0d,_0x1973c0,_0x393169,_0x1c2a94,_0x4d3e07,_0x2cf3d2),_0x3e3dad(this,'status',_0x61146(0x51b)),(this['_acknowledgedAwaitingChangeset']=_0x7dba5b,this[_0x61146(0x31a)]=_0x2b5032,this[_0x61146(0x273)]=_0x4757ee,this[_0x61146(0x38c)]=_0xb2b29c,this[_0x61146(0x1e0)]=_0xa7304e);}[_0xb9a23e(0x3ec)](_0x50ab6d){const _0x212e55=_0xb9a23e;try{const _0x332d24=[..._0x50ab6d,...this[_0x212e55(0x31a)]],_0xa69cf1=[this[_0x212e55(0x457)]||this['_acknowledgedAwaitingChangeset']][_0x212e55(0x1f0)](_0x3ce55e=>!!_0x3ce55e);let _0x494850,_0x16293a;if(_0xa69cf1[_0x212e55(0x480)]){const _0x57e102=this[_0x212e55(0x1e0)]['transformChangesets'](_0x332d24,_0xa69cf1,!0x1);if(!_0x244d6f[_0x212e55(0x4d8)](_0x57e102))throw _0x57e102[_0x212e55(0x4f3)];_0x494850=_0x57e102[_0x212e55(0x2c9)],_0x16293a=_0x57e102[_0x212e55(0x3af)];}else _0x494850=_0x332d24,_0x16293a=[];let _0x1aabf9=this[_0x212e55(0x1e4)];_0x494850[_0x212e55(0x560)](_0x24ef8d=>{const _0x479a37=_0x212e55;let _0x4c7d3e;if(_0x1aabf9[_0x479a37(0x480)]){const _0x5716d3=this[_0x479a37(0x1e0)][_0x479a37(0x314)](_0x24ef8d,_0x1aabf9);if(!_0x244d6f[_0x479a37(0x39c)](_0x5716d3))throw _0x5716d3[_0x479a37(0x4f3)];_0x4c7d3e=_0x5716d3[_0x479a37(0x2c9)],_0x1aabf9=_0x5716d3['m2Prime'];}else _0x4c7d3e=_0x24ef8d;this[_0x479a37(0x308)](_0x4c7d3e);}),this[_0x212e55(0x43a)]&&this[_0x212e55(0x544)](),this[_0x212e55(0x457)]&&_0x16293a[_0x212e55(0x480)]&&(_0x16293a[0x0][_0x212e55(0x27e)]=this[_0x212e55(0x3a9)]());let _0x19c4e6;if(this[_0x212e55(0x457)]&&_0x1aabf9['length']!==0x0)_0x19c4e6=this['_injector'][_0x212e55(0x4dc)](_0x338cb3,this[_0x212e55(0x474)],this[_0x212e55(0x2a3)],_0x16293a[0x0],_0x1aabf9,this[_0x212e55(0x26f)]);else{if(this['_awaitingChangeset']&&_0x1aabf9[_0x212e55(0x480)]===0x0)_0x16293a[0x0][_0x212e55(0x27e)]=this['_getCurrentRevision'](),_0x19c4e6=this['_injector'][_0x212e55(0x4dc)](_0x381722,this[_0x212e55(0x474)],this['type'],_0x16293a[0x0],this[_0x212e55(0x26f)]);else{if(_0x1aabf9[_0x212e55(0x480)]!==0x0){const _0x525415=this[_0x212e55(0x273)][_0x212e55(0x4dc)](_0x40e168,this['unitID'],this[_0x212e55(0x2a3)],_0x1aabf9,this[_0x212e55(0x26f)]);_0x525415['_schedule'](),_0x19c4e6=_0x525415;}else _0x19c4e6=this[_0x212e55(0x273)][_0x212e55(0x4dc)](_0x6f1eec,this['unitID'],this['type'],this[_0x212e55(0x26f)]);}}return _0x19c4e6[_0x212e55(0x563)](),_0x19c4e6;}catch(_0x36a6f2){return this[_0x212e55(0x38c)][_0x212e55(0x4f3)](_0x212e55(0x26c),_0x212e55(0x333),_0x36a6f2),this['_injector'][_0x212e55(0x4dc)](_0x1be45e,this[_0x212e55(0x474)],this[_0x212e55(0x2a3)],this[_0x212e55(0x457)],this[_0x212e55(0x1e4)],this['_handler'],!0x1);}}['resend'](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0xb9a23e(0x2b8)](_0x3160c6){const _0x246bd5=_0xb9a23e;return this[_0x246bd5(0x1e4)][_0x246bd5(0x509)](_0x3160c6),this;}[_0xb9a23e(0x325)](_0x47fda8){const _0x2799f9=_0xb9a23e;return this[_0x2799f9(0x31a)][_0x2799f9(0x509)](_0x47fda8),this;}['onRemoteAck'](_0x3e72ea){const _0x349680=_0xb9a23e;if(this[_0x349680(0x457)])return this[_0x349680(0x43a)]=this['_awaitingChangeset'],this[_0x349680(0x457)]=null,this;throw new Error(_0x349680(0x34a));}[_0xb9a23e(0x20a)](_0xc781ae){const _0x57ef88=_0xb9a23e;return this[_0x57ef88(0x316)](!!(_0xc781ae!=null&&_0xc781ae[_0x57ef88(0x288)]));}[_0xb9a23e(0x296)](){const _0x2e8e53=_0xb9a23e;return this[_0x2e8e53(0x273)]['createInstance'](_0x5a9a82,this[_0x2e8e53(0x474)],this[_0x2e8e53(0x2a3)],this[_0x2e8e53(0x457)],this[_0x2e8e53(0x1e4)],this['_handler']);}[_0xb9a23e(0x1de)](){return this;}['_onConflict'](_0x4d424e){const _0x168982=_0xb9a23e;return this[_0x168982(0x273)]['createInstance'](_0x1be45e,this[_0x168982(0x474)],this[_0x168982(0x2a3)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x168982(0x26f)],_0x4d424e);}};_0x500eaf=_0x215c7f([_0x21f417(0x7,_0x46d633[_0xb9a23e(0x2a5)](_0x46d633[_0xb9a23e(0x215)])),_0x21f417(0x8,_0x46d633['Inject'](_0x244d6f[_0xb9a23e(0x2e4)])),_0x21f417(0x9,_0x46d633[_0xb9a23e(0x2a5)](_0x2dfa89['LocalCacheService'])),_0x21f417(0xa,_0x39562f[_0xb9a23e(0x3d4)]),_0x21f417(0xb,_0x39562f[_0xb9a23e(0x4b5)]),_0x21f417(0xc,_0x39562f['IUndoRedoService']),_0x21f417(0xd,_0x244d6f[_0xb9a23e(0x444)])],_0x500eaf);function _0x2bb98a(_0x2cedfe,_0x30434f,_0xfd422a,_0x4f5c60,_0x46944d,_0x393db6){const _0x32e685=_0xb9a23e;return _0x4f5c60&&_0x46944d[_0x32e685(0x480)]?_0x2cedfe[_0x32e685(0x4dc)](_0x338cb3,_0x30434f,_0xfd422a,_0x4f5c60,_0x46944d,_0x393db6):_0x4f5c60?_0x2cedfe[_0x32e685(0x4dc)](_0x381722,_0x30434f,_0xfd422a,_0x4f5c60,_0x393db6):_0x46944d[_0x32e685(0x480)]?_0x2cedfe['createInstance'](_0x40e168,_0x30434f,_0xfd422a,_0x46944d,_0x393db6):_0x2cedfe[_0x32e685(0x4dc)](_0x6f1eec,_0x30434f,_0xfd422a,_0x393db6);}var _0x5ee9ce=Object[_0xb9a23e(0x38b)],_0x208c88=Object[_0xb9a23e(0x2ed)],_0x13f658=(_0x147160,_0x37b8e7,_0x490af1,_0x45e3c8)=>{const _0x517443=_0xb9a23e;for(var _0x25831e=_0x45e3c8>0x1?void 0x0:_0x45e3c8?_0x208c88(_0x37b8e7,_0x490af1):_0x37b8e7,_0x579eda=_0x147160[_0x517443(0x480)]-0x1,_0x16e845;_0x579eda>=0x0;_0x579eda--)(_0x16e845=_0x147160[_0x579eda])&&(_0x25831e=(_0x45e3c8?_0x16e845(_0x37b8e7,_0x490af1,_0x25831e):_0x16e845(_0x25831e))||_0x25831e);return _0x45e3c8&&_0x25831e&&_0x5ee9ce(_0x37b8e7,_0x490af1,_0x25831e),_0x25831e;},_0x54deac=(_0x4523e8,_0x499f65)=>(_0x2e9ab3,_0x39a26e)=>_0x499f65(_0x2e9ab3,_0x39a26e,_0x4523e8);_0x2dfa89[_0xb9a23e(0x501)]=class extends _0x39562f[_0xb9a23e(0x298)]{constructor(_0x17a193,_0x5c7ee3,_0x181227){const _0x57f6f2=_0xb9a23e;super(),_0x3e3dad(this,_0x57f6f2(0x21d),new Map()),_0x3e3dad(this,_0x57f6f2(0x28e),new _0x1fa2ab['Subject']()),(this[_0x57f6f2(0x273)]=_0x17a193,this[_0x57f6f2(0x49e)]=_0x5c7ee3,this[_0x57f6f2(0x328)]=_0x181227,this['_init']());}['dispose'](){const _0x3af364=_0xb9a23e;super[_0x3af364(0x51e)](),this[_0x3af364(0x21d)]['forEach'](_0x5b0440=>_0x5b0440[_0x3af364(0x51e)]()),this['_entities']['clear']();}[_0xb9a23e(0x47d)](_0x30278b){const _0x3dec11=_0xb9a23e;var _0xb805e6;return(_0xb805e6=this[_0x3dec11(0x21d)][_0x3dec11(0x3a6)](_0x30278b))!=null?_0xb805e6:null;}[_0xb9a23e(0x48a)](_0x10039d){const _0x45877b=_0xb9a23e,_0x30e592=this[_0x45877b(0x47d)](_0x10039d);return _0x30e592?_0x1fa2ab['of'](_0x30e592):this[_0x45877b(0x28e)][_0x45877b(0x24a)](_0x53520c[_0x45877b(0x1f0)](_0x518068=>_0x518068[_0x45877b(0x474)]===_0x10039d));}[_0xb9a23e(0x3e7)](){const _0x1e4593=_0xb9a23e;this[_0x1e4593(0x328)][_0x1e4593(0x1e3)](_0x39562f[_0x1e4593(0x1ad)][_0x1e4593(0x40a)])[_0x1e4593(0x24a)](_0x1fa2ab[_0x1e4593(0x307)](this[_0x1e4593(0x203)]),_0x53520c['delay'](0x10))[_0x1e4593(0x282)](async _0x1bb27e=>{const _0x4f7aba=_0x1e4593,_0x40ca1e=_0x1bb27e[_0x4f7aba(0x37c)](),_0x1fc2ae=await this[_0x4f7aba(0x2e5)](_0x40ca1e,_0x55e05d[_0x4f7aba(0x40a)]);this[_0x4f7aba(0x21d)][_0x4f7aba(0x3b1)](_0x40ca1e,_0x1fc2ae);}),this[_0x1e4593(0x328)][_0x1e4593(0x1e3)](_0x39562f[_0x1e4593(0x1ad)][_0x1e4593(0x49f)])['pipe'](_0x1fa2ab['takeUntil'](this['dispose$']),_0x53520c['delay'](0x10))[_0x1e4593(0x24a)](_0x53520c['filter'](_0x45348d=>!_0x45348d[_0x1e4593(0x37c)]()['startsWith']('__')))[_0x1e4593(0x282)](async _0x30b0ec=>{const _0x3b0a89=_0x1e4593,_0x4e68b7=_0x30b0ec[_0x3b0a89(0x37c)](),_0x39656a=await this[_0x3b0a89(0x2e5)](_0x4e68b7,_0x55e05d['UNIVER_DOC']);this['_entities'][_0x3b0a89(0x3b1)](_0x4e68b7,_0x39656a);}),_0x1fa2ab[_0x1e4593(0x4dd)](this[_0x1e4593(0x328)]['getTypeOfUnitDisposed$'](_0x39562f['UniverInstanceType'][_0x1e4593(0x40a)]),this[_0x1e4593(0x328)][_0x1e4593(0x37e)](_0x39562f[_0x1e4593(0x1ad)]['UNIVER_DOC']))[_0x1e4593(0x24a)](_0x1fa2ab[_0x1e4593(0x307)](this[_0x1e4593(0x203)]))[_0x1e4593(0x282)](_0x3a44af=>{const _0x9b37c7=_0x1e4593,_0x310c56=_0x3a44af[_0x9b37c7(0x37c)](),_0x2022e3=this[_0x9b37c7(0x21d)][_0x9b37c7(0x3a6)](_0x310c56);_0x2022e3&&(_0x2022e3[_0x9b37c7(0x51e)](),this['_entities']['delete'](_0x310c56));});}async['_startCollaboration'](_0x440394,_0xa98144){const _0x496ee2=_0xb9a23e,_0x222f42=await this[_0x496ee2(0x49e)][_0x496ee2(0x3d3)](_0x440394),_0x4403b9=this['_injector'][_0x496ee2(0x4dc)](this['_getCtorByUniverType'](_0xa98144),_0x440394,_0xa98144,_0x222f42);return await _0x4403b9[_0x496ee2(0x324)](),this['_entityInit$'][_0x496ee2(0x438)](_0x4403b9),_0x4403b9;}[_0xb9a23e(0x234)](_0x27f888){const _0x8e560f=_0xb9a23e;switch(_0x27f888){case _0x55e05d['UNIVER_DOC']:return _0x2cf1e6;case _0x55e05d[_0x8e560f(0x40a)]:return _0x39b5b7;default:throw new Error(_0x8e560f(0x53b)+_0x27f888);}}},_0x2dfa89['CollaborationController']=_0x13f658([_0x39562f[_0xb9a23e(0x40c)](_0x39562f['LifecycleStages'][_0xb9a23e(0x31d)],_0x2dfa89['CollaborationController']),_0x54deac(0x0,_0x46d633[_0xb9a23e(0x2a5)](_0x46d633['Injector'])),_0x54deac(0x1,_0x46d633[_0xb9a23e(0x2a5)](_0x2dfa89[_0xb9a23e(0x538)])),_0x54deac(0x2,_0x39562f['IUniverInstanceService'])],_0x2dfa89[_0xb9a23e(0x501)]);let _0x209a4c=class extends _0x39562f['RxDisposable']{constructor(_0x1e9e9c,_0x4fb865,_0x44c946,_0x293084,_0x58d48b,_0x1cb425,_0x433d4e,_0x43574a,_0xfeda6d,_0x392f84,_0x68a14c,_0x1424ea,_0x29b450){const _0x24055d=_0xb9a23e;super(),_0x3e3dad(this,'_state$',new _0x1fa2ab[(_0x24055d(0x492))](null)),_0x3e3dad(this,_0x24055d(0x392),this[_0x24055d(0x1e7)]['asObservable']()),_0x3e3dad(this,'_state'),_0x3e3dad(this,'_collaborationPaused',!0x1),_0x3e3dad(this,_0x24055d(0x4e7),this[_0x24055d(0x392)]['pipe'](_0x53520c[_0x24055d(0x3e3)](_0x5eb1e4=>_0x5eb1e4?_0x5eb1e4[_0x24055d(0x23e)]:_0x3cde1c['OFFLINE']),_0x53520c[_0x24055d(0x2b4)](0x1))),_0x3e3dad(this,'_transitionLocked',!0x1),_0x3e3dad(this,_0x24055d(0x240),[]),(this['unitID']=_0x1e9e9c,this['_type']=_0x4fb865,this[_0x24055d(0x499)]=_0x44c946,this[_0x24055d(0x273)]=_0x293084,this[_0x24055d(0x557)]=_0x58d48b,this[_0x24055d(0x1c0)]=_0x1cb425,this['_localeService']=_0x433d4e,this[_0x24055d(0x3ee)]=_0x43574a,this[_0x24055d(0x38c)]=_0xfeda6d,this[_0x24055d(0x384)]=_0x392f84,this[_0x24055d(0x493)]=_0x68a14c,this['_permissionService']=_0x1424ea,this[_0x24055d(0x464)]=_0x29b450);}get['state'](){const _0x20284c=_0xb9a23e;return this[_0x20284c(0x275)];}async[_0xb9a23e(0x324)](){const _0x429ea4=_0xb9a23e;if(this[_0x429ea4(0x3d8)])throw new Error(_0x429ea4(0x32f));await this['_init']();}[_0xb9a23e(0x543)](){const _0x52851d=_0xb9a23e;return this[_0x52851d(0x4a9)]=!0x0,_0x39562f[_0x52851d(0x3e2)](()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0xb9a23e(0x3bd)](_0x31c4be){const _0x1d41c7=_0xb9a23e;this[_0x1d41c7(0x275)]=_0x31c4be,this[_0x1d41c7(0x1e7)][_0x1d41c7(0x438)](_0x31c4be);}async[_0xb9a23e(0x3e7)](){const _0x3aabec=_0xb9a23e;var _0x1341d0;return this[_0x3aabec(0x3bd)](await this[_0x3aabec(0x540)]()),this['_singleActiveUnitService']&&((_0x1341d0=this[_0x3aabec(0x464)])==null||_0x1341d0[_0x3aabec(0x394)](this[_0x3aabec(0x474)]),this[_0x3aabec(0x28a)](_0x39562f[_0x3aabec(0x3e2)](this[_0x3aabec(0x464)]['getUnitStatus$'](this[_0x3aabec(0x474)])['subscribe'](_0x16401a=>{const _0x5cc977=_0x3aabec;this[_0x5cc977(0x38c)][_0x5cc977(0x564)](_0x5cc977(0x378),_0x5cc977(0x456),_0x16401a),_0x16401a===_0x11275d['OTHER_CLIENTS_EDITING']?(this[_0x5cc977(0x493)][_0x5cc977(0x46d)]({'content':this[_0x5cc977(0x530)]['t'](_0x5cc977(0x55b)),'type':_0x7ca5b0['MessageType'][_0x5cc977(0x1f9)]}),this['_permissionService'][_0x5cc977(0x331)](new _0x552a78[(_0x5cc977(0x39b))](this['unitID'])['id'],!0x1)):this[_0x5cc977(0x2f3)][_0x5cc977(0x331)](new _0x552a78[(_0x5cc977(0x39b))](this['unitID'])['id'],!0x0);})))),this[_0x3aabec(0x28a)](_0x39562f[_0x3aabec(0x3e2)](this[_0x3aabec(0x499)][_0x3aabec(0x35c)][_0x3aabec(0x282)](_0x2790a9=>{const _0x34fad0=_0x3aabec;_0x2790a9===_0x346ac5[_0x34fad0(0x330)]?this['_toggleOnline']():_0x2790a9===_0x346ac5[_0x34fad0(0x354)]&&this[_0x34fad0(0x3cb)]();}))),this[_0x3aabec(0x28a)](_0x39562f[_0x3aabec(0x3e2)](this[_0x3aabec(0x499)][_0x3aabec(0x2bf)][_0x3aabec(0x282)](_0x540afd=>{const _0x43713b=_0x3aabec;try{switch(_0x540afd[_0x43713b(0x414)]){case _0x244d6f[_0x43713b(0x42f)][_0x43713b(0x4af)]:{this[_0x43713b(0x29f)](_0x244d6f[_0x43713b(0x536)](_0x540afd[_0x43713b(0x3df)]));break;}case _0x244d6f['CollaborationEvent'][_0x43713b(0x2e6)]:{this['_onRemoteACK'](_0x540afd[_0x43713b(0x3df)]);break;}case _0x244d6f[_0x43713b(0x42f)][_0x43713b(0x41e)]:{this[_0x43713b(0x362)]();break;}case _0x244d6f[_0x43713b(0x42f)][_0x43713b(0x522)]:{this['_onFetchMissResult'](_0x540afd[_0x43713b(0x3df)][_0x43713b(0x52b)][_0x43713b(0x3e3)](_0x280eeb=>_0x244d6f[_0x43713b(0x536)](_0x280eeb)));break;}case _0x244d6f['CollaborationEvent']['PERMISSION_REJ']:this[_0x43713b(0x362)]({'isPermissionRej':!0x0});}}catch(_0x58cc0f){throw console[_0x43713b(0x4f3)](_0x43713b(0x45f),_0x58cc0f),_0x58cc0f;}}))),this['_state'];}[_0xb9a23e(0x2ce)](){const _0x407f06=_0xb9a23e;this[_0x407f06(0x20c)]=!0x1;}[_0xb9a23e(0x360)](){const _0x58390f=_0xb9a23e;if(this[_0x58390f(0x20c)])throw new Error(_0x58390f(0x270));this['_transitionLocked']=!0x0;}['_onLocalMutation'](_0x3f73b8){const _0x438807=_0xb9a23e;this[_0x438807(0x360)](),this[_0x438807(0x3bd)](this[_0x438807(0x275)][_0x438807(0x2b8)](_0x3f73b8)),this[_0x438807(0x2ce)]();}[_0xb9a23e(0x29f)](_0x399499){const _0x3f1484=_0xb9a23e;if(!(_0x399499[_0x3f1484(0x365)]<=this[_0x3f1484(0x3ee)][_0x3f1484(0x259)](this[_0x3f1484(0x474)]))){if(this[_0x3f1484(0x4a9)]){this['_remoteChangesetQueue']['push'](_0x399499);return;}this[_0x3f1484(0x410)](_0x399499);}}['_exhaustRemoteChangesetQueue'](){const _0x288a43=_0xb9a23e;this[_0x288a43(0x240)][_0x288a43(0x560)](_0x196c42=>this[_0x288a43(0x410)](_0x196c42)),this[_0x288a43(0x240)]=[];}['_applyRemoteChangeset'](_0x1de3dd){const _0x5a707b=_0xb9a23e,_0x2e176f=this['_compressMutationService'][_0x5a707b(0x471)]['fetchThroughInterceptors'](this[_0x5a707b(0x1c0)][_0x5a707b(0x471)][_0x5a707b(0x2fd)]()[_0x5a707b(0x1d9)])(_0x1de3dd[_0x5a707b(0x1bb)],null)||_0x1de3dd[_0x5a707b(0x1bb)],_0xd1c42d={..._0x1de3dd,'mutations':_0x2e176f};this[_0x5a707b(0x360)](),this[_0x5a707b(0x3bd)](this[_0x5a707b(0x275)][_0x5a707b(0x325)](_0xd1c42d)),this[_0x5a707b(0x2ce)]();}[_0xb9a23e(0x44e)](_0x17cfd4){const _0x4e1565=_0xb9a23e;this[_0x4e1565(0x360)](),this[_0x4e1565(0x3bd)](this[_0x4e1565(0x275)][_0x4e1565(0x481)](_0x17cfd4)),this[_0x4e1565(0x2ce)]();}[_0xb9a23e(0x362)](_0x11db4f){const _0x34665a=_0xb9a23e;this[_0x34665a(0x360)](),this[_0x34665a(0x3bd)](this[_0x34665a(0x275)]['onRemoteRej'](_0x11db4f)),this[_0x34665a(0x2ce)]();}[_0xb9a23e(0x510)](_0xa2524e){const _0x23762f=_0xb9a23e;if(!(this[_0x23762f(0x275)]instanceof _0x500eaf))throw new TypeError(_0x23762f(0x31e));const _0x2c9235=_0xa2524e[_0x23762f(0x3e3)](_0x4757b3=>{const _0x5137b4=_0x23762f,_0x21b7ad=this['_compressMutationService'][_0x5137b4(0x471)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x5137b4(0x471)][_0x5137b4(0x2fd)]()['COMPRESS_MUTATION_APPLY'])(_0x4757b3[_0x5137b4(0x1bb)],null)||_0x4757b3[_0x5137b4(0x1bb)];return{..._0x4757b3,'mutations':_0x21b7ad};});this[_0x23762f(0x360)](),this[_0x23762f(0x3bd)](this[_0x23762f(0x275)][_0x23762f(0x3ec)](_0x2c9235)),this['_unlockTransition']();}[_0xb9a23e(0x3cb)](){const _0x22c0d8=_0xb9a23e;this['_lockTransition'](),this[_0x22c0d8(0x3bd)](this[_0x22c0d8(0x275)]['toggleOffline']()),this[_0x22c0d8(0x2ce)]();}[_0xb9a23e(0x4ba)](){const _0x220529=_0xb9a23e;this[_0x220529(0x360)](),this[_0x220529(0x3bd)](this[_0x220529(0x275)][_0x220529(0x1de)]()),this[_0x220529(0x2ce)]();}async[_0xb9a23e(0x540)](){return new Promise(_0x3184c0=>{const _0x3c4805=_0x231b;this[_0x3c4805(0x499)][_0x3c4805(0x35c)][_0x3c4805(0x24a)](_0x53520c[_0x3c4805(0x268)](0x1))['subscribe'](async _0x36b4df=>{const _0x54cf3e=_0x3c4805;_0x3184c0(await this['_createInitialStateImpl'](_0x36b4df===_0x346ac5[_0x54cf3e(0x330)]));});});}[_0xb9a23e(0x235)](){const _0xd2f5f8=this['unitID'];return{'onStateChange':(_0x4b1b1c,_0x3254f3)=>{const _0x3ae531=_0x231b;if(_0x4b1b1c!==this[_0x3ae531(0x275)])throw new Error(_0x3ae531(0x2ec)+_0x4b1b1c[_0x3ae531(0x23e)]+'\x0aAfter:\x20'+_0x3254f3['status']+_0x3ae531(0x54b)+this[_0x3ae531(0x275)][_0x3ae531(0x23e)]);this['_updateState'](_0x3254f3);},'onSendChangeset':_0xf8a587=>{const _0x4a444a=_0x231b,_0x1b78e2={'eventID':_0x244d6f['CollaborationEvent'][_0x4a444a(0x254)],'data':{'unitID':_0xf8a587['unitID'],'unitType':this[_0x4a444a(0x4c5)],'changeset':_0xf8a587,'memberID':this['_session']['getMemberID']()}};this['_session'][_0x4a444a(0x428)](_0x1b78e2,this['unitID']);},'onMissingChangesets':({from:_0x4fa175,to:_0x5b5480})=>{const _0x50dcf2=_0x231b;this['_logService'][_0x50dcf2(0x564)](_0x50dcf2(0x378),'fetching\x20missing\x20changesets\x20from\x20'+_0x4fa175+_0x50dcf2(0x3ad)+_0x5b5480);const _0x443176={'eventID':_0x244d6f['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0xd2f5f8,'unitType':this['_type'],'from':_0x4fa175,'to':_0x5b5480}};this[_0x50dcf2(0x499)]['send'](_0x443176,this[_0x50dcf2(0x474)]);}};}async['_createInitialStateImpl'](_0x5c86b1){const _0x4b79fc=_0xb9a23e;var _0x3230f9,_0x570d57;const _0x45b951=await this[_0x4b79fc(0x557)][_0x4b79fc(0x21c)](this['unitID']),_0x5ce2ba=(_0x3230f9=_0x45b951==null?void 0x0:_0x45b951[_0x4b79fc(0x1bb)])!=null?_0x3230f9:[],_0x1512df=(_0x570d57=_0x45b951==null?void 0x0:_0x45b951['awaitingChangeset'])!=null?_0x570d57:null,_0x529bfb=this['unitID'];try{this['_replayCachedMutations'](_0x1512df,_0x5ce2ba);}catch(_0xf9873f){this[_0x4b79fc(0x38c)]['error'](_0xf9873f);}const _0x3573f4=this[_0x4b79fc(0x235)]();if(_0x5c86b1){const _0x281fe7=_0x2bb98a(this[_0x4b79fc(0x273)],_0x529bfb,this[_0x4b79fc(0x4c5)],_0x1512df,_0x5ce2ba,_0x3573f4);return _0x281fe7 instanceof _0x40e168?_0x281fe7[_0x4b79fc(0x274)]():(_0x281fe7 instanceof _0x338cb3||_0x281fe7 instanceof _0x381722)&&_0x281fe7['resend'](),_0x281fe7;}return this[_0x4b79fc(0x273)][_0x4b79fc(0x4dc)](_0x5a9a82,_0x529bfb,this[_0x4b79fc(0x4c5)],_0x1512df,_0x5ce2ba,_0x3573f4);}['_replayCachedMutations'](_0x1d33d2,_0x277094){const _0x281c27=_0xb9a23e;var _0x2e0164,_0x5d605b;const _0x48856d=this[_0x281c27(0x1c0)][_0x281c27(0x471)][_0x281c27(0x51f)](this['_compressMutationService']['interceptor'][_0x281c27(0x2fd)]()[_0x281c27(0x1d9)]);(_0x2e0164=_0x48856d((_0x1d33d2==null?void 0x0:_0x1d33d2['mutations'])||[],null))==null||_0x2e0164[_0x281c27(0x560)](_0xcb2cee=>this[_0x281c27(0x384)]['executeCommand'](_0xcb2cee['id'],_0xcb2cee[_0x281c27(0x1b9)])),(_0x5d605b=_0x48856d(_0x277094||[],null))==null||_0x5d605b[_0x281c27(0x560)](_0x9e9702=>this['_commandService'][_0x281c27(0x2c8)](_0x9e9702['id'],_0x9e9702[_0x281c27(0x1b9)]));}};_0x209a4c=_0x13f658([_0x54deac(0x3,_0x46d633['Inject'](_0x46d633[_0xb9a23e(0x215)])),_0x54deac(0x4,_0x46d633[_0xb9a23e(0x2a5)](_0x2dfa89[_0xb9a23e(0x38a)])),_0x54deac(0x5,_0x46d633[_0xb9a23e(0x2a5)](_0x244d6f[_0xb9a23e(0x355)])),_0x54deac(0x6,_0x46d633[_0xb9a23e(0x2a5)](_0x39562f['LocaleService'])),_0x54deac(0x7,_0x46d633['Inject'](_0x244d6f['RevisionService'])),_0x54deac(0x8,_0x39562f[_0xb9a23e(0x3d4)]),_0x54deac(0x9,_0x39562f[_0xb9a23e(0x4b5)]),_0x54deac(0xa,_0x38d129[_0xb9a23e(0x1c9)]),_0x54deac(0xb,_0x39562f['IPermissionService']),_0x54deac(0xc,_0x46d633[_0xb9a23e(0x4c1)](_0x174263))],_0x209a4c);let _0x2cf1e6=class extends _0x209a4c{constructor(_0xb5f0d,_0x247969,_0x1fe1a4,_0x3596ab,_0x3ca943,_0x2e52b7,_0x15d63c,_0x24e4ad,_0xe938cc,_0x24554a,_0x27b536,_0x113154,_0x1c89bf,_0x1704fb,_0x5e5ba8,_0x2e4676,_0x3b5d5d){const _0x2d1938=_0xb9a23e;super(_0xb5f0d,_0x247969,_0x1fe1a4,_0x3596ab,_0x3ca943,_0x2e52b7,_0x15d63c,_0x24e4ad,_0x1c89bf,_0x1704fb,_0x5e5ba8,_0x2e4676,_0x3b5d5d),this[_0x2d1938(0x474)]=_0xb5f0d,this[_0x2d1938(0x2a3)]=_0x247969,this[_0x2d1938(0x2ca)]=_0x1fe1a4,this[_0x2d1938(0x309)]=_0xe938cc,this[_0x2d1938(0x404)]=_0x24554a,this[_0x2d1938(0x23a)]=_0x27b536,this[_0x2d1938(0x396)]=_0x113154;}[_0xb9a23e(0x235)](){const _0x2d4fd3=_0xb9a23e,_0x20affa=super[_0x2d4fd3(0x235)]();return _0x20affa[_0x2d4fd3(0x352)]=_0x2d940f=>this['_docTransformIMECacheService'][_0x2d4fd3(0x4ab)](_0x2d940f),_0x20affa[_0x2d4fd3(0x335)]=_0x527332=>this['_docTransformSelectionsService'][_0x2d4fd3(0x429)](_0x527332),_0x20affa[_0x2d4fd3(0x54a)]=_0x43e0dc=>this[_0x2d4fd3(0x396)]['syncEditingCollabCursor'](_0x43e0dc),_0x20affa['onTransformRemoteChangesetByIMECache']=_0x458c35=>this[_0x2d4fd3(0x404)][_0x2d4fd3(0x2eb)](_0x458c35),_0x20affa;}async[_0xb9a23e(0x3e7)](){const _0x25b0e5=_0xb9a23e,_0x3c0063=await super[_0x25b0e5(0x3e7)]();return this[_0x25b0e5(0x309)][_0x25b0e5(0x1c8)][_0x25b0e5(0x24a)](_0x1fa2ab[_0x25b0e5(0x307)](this[_0x25b0e5(0x203)]))[_0x25b0e5(0x282)](_0x576143=>{const _0x3dfe81=_0x25b0e5;if(_0x576143==null)return;const {unitId:_0x1b5d36,redoState:_0x255776,commandId:_0xfb2b34}=_0x576143;if(_0x1b5d36!==this[_0x3dfe81(0x474)])return;const _0x20495e={'id':_0xfb2b34,'type':_0x39562f[_0x3dfe81(0x549)]['MUTATION'],'params':{'unitId':_0x1b5d36,'actions':_0x255776['actions'],'textRanges':null}};this[_0x3dfe81(0x49c)](_0x20495e);}),_0x3c0063;}};_0x2cf1e6=_0x13f658([_0x54deac(0x3,_0x46d633[_0xb9a23e(0x2a5)](_0x46d633['Injector'])),_0x54deac(0x4,_0x46d633[_0xb9a23e(0x2a5)](_0x2dfa89['LocalCacheService'])),_0x54deac(0x5,_0x46d633[_0xb9a23e(0x2a5)](_0x244d6f[_0xb9a23e(0x355)])),_0x54deac(0x6,_0x46d633[_0xb9a23e(0x2a5)](_0x39562f['LocaleService'])),_0x54deac(0x7,_0x46d633[_0xb9a23e(0x2a5)](_0x244d6f['RevisionService'])),_0x54deac(0x8,_0x46d633[_0xb9a23e(0x2a5)](_0x239a47[_0xb9a23e(0x336)])),_0x54deac(0x9,_0x46d633[_0xb9a23e(0x2a5)](_0x4bc2a2)),_0x54deac(0xa,_0x46d633[_0xb9a23e(0x2a5)](_0xede299)),_0x54deac(0xb,_0x46d633['Inject'](_0x1287ec)),_0x54deac(0xc,_0x39562f[_0xb9a23e(0x3d4)]),_0x54deac(0xd,_0x39562f['ICommandService']),_0x54deac(0xe,_0x38d129[_0xb9a23e(0x1c9)]),_0x54deac(0xf,_0x39562f[_0xb9a23e(0x4a2)]),_0x54deac(0x10,_0x46d633['Optional'](_0x174263))],_0x2cf1e6);let _0x39b5b7=class extends _0x209a4c{constructor(_0x1e81c2,_0x4422f2,_0x58bd6a,_0x67afd3,_0x1e0c51,_0x420c5c,_0x467952,_0x3b4849,_0x48f48d,_0x1125f7,_0x4992e7,_0x227455,_0x5cb8bd,_0x22cf49){const _0x2bfa0a=_0xb9a23e;super(_0x1e81c2,_0x4422f2,_0x58bd6a,_0x67afd3,_0x1e0c51,_0x420c5c,_0x467952,_0x3b4849,_0x1125f7,_0x4992e7,_0x227455,_0x5cb8bd,_0x22cf49),this[_0x2bfa0a(0x474)]=_0x1e81c2,this[_0x2bfa0a(0x2a3)]=_0x4422f2,this[_0x2bfa0a(0x2ca)]=_0x58bd6a,this['_sheetTransformSelectionsService']=_0x48f48d;}[_0xb9a23e(0x235)](){const _0x45c590=_0xb9a23e,_0x2f9a77=super[_0x45c590(0x235)]();return _0x2f9a77[_0x45c590(0x335)]=_0x137e68=>this[_0x45c590(0x30d)]['transformSelections'](_0x137e68),_0x2f9a77;}async[_0xb9a23e(0x3e7)](){const _0x573d60=_0xb9a23e,_0x69b17=await super[_0x573d60(0x3e7)]();return this['disposeWithMe'](this[_0x573d60(0x384)]['onCommandExecuted']((_0x5c4d00,_0x4ae4f4)=>{const _0xf7b7c3=_0x573d60;if(_0x5c4d00[_0xf7b7c3(0x2a3)]!==_0x39562f[_0xf7b7c3(0x549)]['MUTATION']||_0x4ae4f4!=null&&_0x4ae4f4[_0xf7b7c3(0x2af)]||_0x4ae4f4!=null&&_0x4ae4f4[_0xf7b7c3(0x4a6)])return;const _0x11d6e7=_0x5c4d00[_0xf7b7c3(0x1b9)];if((_0x11d6e7==null?void 0x0:_0x11d6e7['unitId'])!==this['unitID'])return;const _0x466377=_0x5c4d00,_0x469e9d=this[_0xf7b7c3(0x1c0)][_0xf7b7c3(0x471)][_0xf7b7c3(0x51f)](this[_0xf7b7c3(0x1c0)]['interceptor'][_0xf7b7c3(0x2fd)]()[_0xf7b7c3(0x2d1)])([_0x466377],null)||[_0x466377];this[_0xf7b7c3(0x49c)](_0x469e9d[0x0]);})),_0x69b17;}};_0x39b5b7=_0x13f658([_0x54deac(0x3,_0x46d633[_0xb9a23e(0x2a5)](_0x46d633[_0xb9a23e(0x215)])),_0x54deac(0x4,_0x46d633[_0xb9a23e(0x2a5)](_0x2dfa89[_0xb9a23e(0x38a)])),_0x54deac(0x5,_0x46d633[_0xb9a23e(0x2a5)](_0x244d6f[_0xb9a23e(0x355)])),_0x54deac(0x6,_0x46d633['Inject'](_0x39562f[_0xb9a23e(0x303)])),_0x54deac(0x7,_0x46d633[_0xb9a23e(0x2a5)](_0x244d6f[_0xb9a23e(0x2e4)])),_0x54deac(0x8,_0x46d633['Inject'](_0x4aa7fa)),_0x54deac(0x9,_0x39562f['ILogService']),_0x54deac(0xa,_0x39562f[_0xb9a23e(0x4b5)]),_0x54deac(0xb,_0x38d129[_0xb9a23e(0x1c9)]),_0x54deac(0xc,_0x39562f[_0xb9a23e(0x4a2)]),_0x54deac(0xd,_0x46d633[_0xb9a23e(0x4c1)](_0x174263))],_0x39b5b7);const _0x4a34f5=[_0xb9a23e(0x53a),_0xb9a23e(0x452),_0xb9a23e(0x567),_0xb9a23e(0x1fa),_0xb9a23e(0x1fe),_0xb9a23e(0x361)];class _0x274314 extends _0x39562f[_0xb9a23e(0x4bf)]{constructor(){super(...arguments),_0x3e3dad(this,'_assignedColors',new Map()),_0x3e3dad(this,'_colorIndex',0x0);}[_0xb9a23e(0x38e)](_0x150277){const _0x598bda=_0xb9a23e;if(this[_0x598bda(0x432)][_0x598bda(0x1b4)](_0x150277))return this[_0x598bda(0x432)]['get'](_0x150277);const _0x3ebe5f=_0x4a34f5[this['_colorIndex']];return this[_0x598bda(0x21f)]=(this[_0x598bda(0x21f)]+0x1)%_0x4a34f5[_0x598bda(0x480)],this[_0x598bda(0x432)][_0x598bda(0x3b1)](_0x150277,_0x3ebe5f),_0x3ebe5f;}}var _0x1a3265=Object[_0xb9a23e(0x38b)],_0x56424a=Object[_0xb9a23e(0x2ed)],_0x3631d2=(_0x24b8bb,_0x289033,_0x2228a2,_0x2741fa)=>{const _0x17de57=_0xb9a23e;for(var _0x20b304=_0x2741fa>0x1?void 0x0:_0x2741fa?_0x56424a(_0x289033,_0x2228a2):_0x289033,_0x5f25f2=_0x24b8bb[_0x17de57(0x480)]-0x1,_0x59240c;_0x5f25f2>=0x0;_0x5f25f2--)(_0x59240c=_0x24b8bb[_0x5f25f2])&&(_0x20b304=(_0x2741fa?_0x59240c(_0x289033,_0x2228a2,_0x20b304):_0x59240c(_0x20b304))||_0x20b304);return _0x2741fa&&_0x20b304&&_0x1a3265(_0x289033,_0x2228a2,_0x20b304),_0x20b304;},_0x345b15=(_0x5ea405,_0x398a74)=>(_0x246e97,_0x3f59b1)=>_0x398a74(_0x246e97,_0x3f59b1,_0x5ea405);const _0x141b9a=0x12c,_0x3bd3ed=0x64,_0x330053=()=>{let _0x423ee0=[],_0xcc97b8=!0x1;return _0x35cec5=>{const _0x57a220=_0x231b;_0x423ee0[_0x57a220(0x509)](_0x35cec5),_0xcc97b8||(_0xcc97b8=!0x0,setTimeout(()=>{_0x423ee0['forEach'](_0xf8bdb7=>_0xf8bdb7()),_0x423ee0=[],_0xcc97b8=!0x1;}));};};let _0x2fb259=class extends _0x39562f[_0xb9a23e(0x298)]{constructor(_0x2c5d58,_0x533501,_0x2218f7,_0x5a1d7a,_0x3d0412,_0x1e1c0d,_0x13bd33,_0x2faa29){const _0x3702d2=_0xb9a23e;super(),_0x3e3dad(this,_0x3702d2(0x513),!0x1),_0x3e3dad(this,_0x3702d2(0x3e7),!0x1),_0x3e3dad(this,'_cursorInfo$',new _0x1fa2ab[(_0x3702d2(0x492))](new Map())),_0x3e3dad(this,_0x3702d2(0x472),this[_0x3702d2(0x50a)]['asObservable']()),_0x3e3dad(this,_0x3702d2(0x408),new _0x1fa2ab[(_0x3702d2(0x492))]([])),_0x3e3dad(this,'roomMembers$',this['_roomMembers$'][_0x3702d2(0x24a)](_0x1fa2ab[_0x3702d2(0x334)](_0x141b9a))),_0x3e3dad(this,_0x3702d2(0x50e),_0x3a249e((_0xaddc14,_0x4e9153)=>{const _0x21e890=_0x3702d2,_0x566bd0={'eventID':_0x244d6f[_0x21e890(0x42f)][_0x21e890(0x20f)],'data':{'unitID':this[_0x21e890(0x474)],'memberID':this[_0x21e890(0x499)]['getMemberID'](),'selection':_0xcaf925[_0x21e890(0x2de)](_0xaddc14,_0x4e9153[_0x21e890(0x1dc)])}};this[_0x21e890(0x499)]['send'](_0x566bd0,this['unitID']);},_0x3bd3ed)),(this[_0x3702d2(0x474)]=_0x2c5d58,this['_session']=_0x533501,this[_0x3702d2(0x273)]=_0x2218f7,this['_colorAssignService']=_0x5a1d7a,this['_memberService']=_0x3d0412,this[_0x3702d2(0x328)]=_0x1e1c0d,this['_commandService']=_0x13bd33,this[_0x3702d2(0x2dc)]=_0x2faa29);}get[_0xb9a23e(0x4e5)](){const _0x3e3a32=_0xb9a23e;return this['_cursorInfo$'][_0x3e3a32(0x1c4)]();}get[_0xb9a23e(0x278)](){const _0x4a0458=_0xb9a23e;return this[_0x4a0458(0x408)]['getValue']();}[_0xb9a23e(0x51e)](){const _0x272119=_0xb9a23e;super[_0x272119(0x51e)](),this[_0x272119(0x50a)][_0x272119(0x438)](new Map()),this[_0x272119(0x50a)]['complete'](),this['_roomMembers$']['next']([]),this['_roomMembers$']['complete']();}[_0xb9a23e(0x324)](){const _0xda1a44=_0xb9a23e;this[_0xda1a44(0x3e7)]||(this['_init']=!0x0,this[_0xda1a44(0x499)]['sessionStatus$'][_0xda1a44(0x24a)](_0x1fa2ab[_0xda1a44(0x307)](this[_0xda1a44(0x203)]))[_0xda1a44(0x282)](_0x27161b=>{const _0xc833e6=_0xda1a44;_0x27161b===_0x346ac5['ONLINE']?this[_0xc833e6(0x4ba)]():this['_toggleOffline']();}),this[_0xda1a44(0x499)][_0xda1a44(0x2bf)][_0xda1a44(0x24a)](_0x1fa2ab['takeUntil'](this['dispose$']))[_0xda1a44(0x282)](_0x4d6a51=>{const _0x3cddd2=_0xda1a44,_0x3270e9=_0x4d6a51['eventID'];_0x3270e9===_0x244d6f[_0x3cddd2(0x42f)]['UPDATE_CURSOR']&&this[_0x3cddd2(0x45d)](_0x4d6a51),_0x3270e9===_0x244d6f[_0x3cddd2(0x42f)][_0x3cddd2(0x345)]&&this['_onCursorDelete'](_0x4d6a51);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0xda1a44(0x384)][_0xda1a44(0x223)](_0xa8e161=>{const _0x134bde=_0xda1a44;if(this[_0x134bde(0x513)]&&_0xa8e161['id']===_0x552a78['SetSelectionsOperation']['id']&&_0xa8e161[_0x134bde(0x1b9)]['unitId']===this['unitID']){const _0x232640=_0xa8e161[_0x134bde(0x1b9)];this[_0x134bde(0x50e)](_0x232640['subUnitId'],_0x232640['selections'][0x0]);}})));}[_0xb9a23e(0x45d)](_0x2c4eb1){const _0x5bfdc2=_0xb9a23e;var _0x362931,_0x4d050b;const {memberID:_0x4921fe,selection:_0x2ee7c7}=_0x2c4eb1[_0x5bfdc2(0x3df)],{sheetName:_0x328343,range:_0x5c8ad1}=_0xcaf925[_0x5bfdc2(0x3b9)](_0x2ee7c7),_0x281d01={'name':(_0x4d050b=(_0x362931=this[_0x5bfdc2(0x50c)][_0x5bfdc2(0x41f)](this[_0x5bfdc2(0x474)],_0x4921fe))==null?void 0x0:_0x362931['name'])!=null?_0x4d050b:_0x5bfdc2(0x523),'range':this[_0x5bfdc2(0x1d0)](_0x328343,_0x5c8ad1),'sheetID':_0x328343,'color':this[_0x5bfdc2(0x25b)][_0x5bfdc2(0x38e)](_0x4921fe),'selection':_0x2ee7c7},_0x408e79=this[_0x5bfdc2(0x4e5)];_0x408e79['set'](_0x4921fe,_0x281d01),this[_0x5bfdc2(0x50a)]['next'](_0x408e79);}['_onCursorDelete'](_0x2fa216){const _0x4eb07d=_0xb9a23e,{memberID:_0x1ead3b}=_0x2fa216['data'],_0x531634=this[_0x4eb07d(0x4e5)];_0x531634[_0x4eb07d(0x319)](_0x1ead3b),this[_0x4eb07d(0x50a)]['next'](_0x531634);}[_0xb9a23e(0x1d0)](_0xabbe01,_0x3fe059){const _0x211ca0=_0xb9a23e;var _0x3e0e2b,_0x2a8b16;const _0x35c6ca=(_0x2a8b16=(_0x3e0e2b=this[_0x211ca0(0x328)]['getUniverSheetInstance'](this[_0x211ca0(0x474)]))==null?void 0x0:_0x3e0e2b[_0x211ca0(0x424)](_0xabbe01))==null?void 0x0:_0x2a8b16[_0x211ca0(0x4eb)]();return(_0x35c6ca==null?void 0x0:_0x35c6ca[_0x211ca0(0x436)](_0x5886fc=>_0x39562f[_0x211ca0(0x249)]['contains'](_0x5886fc,_0x3fe059)))||_0x3fe059;}[_0xb9a23e(0x47c)](){const _0x4e533e=_0xb9a23e,_0x23f305=new _0x39562f[(_0x4e533e(0x4a1))](),_0x8dc186=_0x330053(),_0x19716f=()=>{const _0x14d178=_0x4e533e;_0x23f305[_0x14d178(0x51e)]();const _0xef6256=(_0x10d210,_0x452ac5,_0x2a908e,_0x5607ae)=>{const _0x257901=_0x14d178;let _0x21bc9f=[];switch(_0x10d210['id']){case _0x552a78[_0x257901(0x383)][_0x257901(0x437)]:{_0x21bc9f=_0x552a78[_0x257901(0x3be)](_0x10d210,_0x5607ae);break;}case _0x552a78[_0x257901(0x383)]['DeleteRangeMoveUpCommandId']:{_0x21bc9f=_0x552a78[_0x257901(0x1a2)](_0x10d210,_0x5607ae);break;}case _0x552a78[_0x257901(0x383)][_0x257901(0x366)]:{_0x21bc9f=_0x552a78[_0x257901(0x351)](_0x10d210,_0x5607ae);break;}case _0x552a78[_0x257901(0x383)][_0x257901(0x1b2)]:{_0x21bc9f=_0x552a78[_0x257901(0x2c0)](_0x10d210,_0x5607ae);break;}case _0x552a78[_0x257901(0x383)]['InsertRangeMoveRightCommandId']:{_0x21bc9f=_0x552a78['handleInsertRangeMoveRight'](_0x10d210,_0x5607ae);break;}case _0x552a78[_0x257901(0x383)][_0x257901(0x2d8)]:{_0x21bc9f=_0x552a78[_0x257901(0x3eb)](_0x10d210,_0x5607ae);break;}case _0x552a78[_0x257901(0x383)][_0x257901(0x4a0)]:{_0x21bc9f=_0x552a78['handleMoveRange'](_0x10d210,_0x5607ae);break;}case _0x552a78[_0x257901(0x383)][_0x257901(0x216)]:{_0x21bc9f=_0x552a78['handleIRemoveCol'](_0x10d210,_0x5607ae);break;}case _0x552a78[_0x257901(0x383)][_0x257901(0x1be)]:{_0x21bc9f=_0x552a78[_0x257901(0x537)](_0x10d210,_0x5607ae);break;}}const _0x198c3f=_0x552a78[_0x257901(0x289)](_0x21bc9f,_0x5607ae),_0x107aab=this[_0x257901(0x4e5)][_0x257901(0x3a6)](_0x452ac5);if(_0x107aab&&_0x198c3f){const _0x197d84={..._0x107aab,'range':_0x198c3f};this[_0x257901(0x4e5)]['set'](_0x452ac5,_0x197d84),_0x8dc186(()=>{const _0xc42d2c=_0x257901,_0x233ae1=this[_0xc42d2c(0x2dc)][_0xc42d2c(0x332)](_0x198c3f,_0x47e14a=>(_0x233ae1[_0xc42d2c(0x51e)](),_0xef6256(_0x47e14a,_0x452ac5,_0x2a908e,_0x198c3f)));_0x23f305['add'](_0x233ae1);});}return{'redos':[],'undos':[]};};this[_0x14d178(0x4e5)][_0x14d178(0x560)]((_0x386e3d,_0x51ed22)=>{const _0x54873e=_0x14d178,{range:_0x48a67b,sheetID:_0x18e7e0}=_0x386e3d,_0x134352=this[_0x54873e(0x2dc)]['registerRefRange'](_0x48a67b,_0xf3675c=>(_0x134352[_0x54873e(0x51e)](),_0xef6256(_0xf3675c,_0x51ed22,_0x18e7e0,_0x48a67b)));_0x23f305[_0x54873e(0x398)](_0x134352);});};this[_0x4e533e(0x28a)](_0x39562f['toDisposable'](this[_0x4e533e(0x50a)][_0x4e533e(0x282)](()=>{_0x19716f();})));}[_0xb9a23e(0x4ba)](){const _0x5a1264=_0xb9a23e;var _0x3b364a,_0x490f10;if(this[_0x5a1264(0x513)]=!0x0,((_0x3b364a=this[_0x5a1264(0x328)]['getFocusedUnit']())==null?void 0x0:_0x3b364a[_0x5a1264(0x37c)]())!==this['unitID'])return;const _0x225696=(_0x490f10=this['_injector']['get'](_0x552a78[_0x5a1264(0x376)])[_0x5a1264(0x206)]())==null?void 0x0:_0x490f10[0x0],_0x185b78=this[_0x5a1264(0x328)][_0x5a1264(0x33e)](_0x39562f[_0x5a1264(0x1ad)][_0x5a1264(0x40a)])[_0x5a1264(0x568)]();_0x225696&&_0x185b78&&this['_updateLocalCursor'](_0x185b78['getSheetId'](),_0x225696);}[_0xb9a23e(0x3cb)](){const _0x316af1=_0xb9a23e;this[_0x316af1(0x513)]=!0x1;}};_0x2fb259=_0x3631d2([_0x345b15(0x2,_0x46d633[_0xb9a23e(0x2a5)](_0x46d633[_0xb9a23e(0x215)])),_0x345b15(0x3,_0x46d633[_0xb9a23e(0x2a5)](_0x274314)),_0x345b15(0x4,_0x46d633[_0xb9a23e(0x2a5)](_0x3eae2a)),_0x345b15(0x5,_0x39562f[_0xb9a23e(0x2d6)]),_0x345b15(0x6,_0x39562f['ICommandService']),_0x345b15(0x7,_0x46d633[_0xb9a23e(0x2a5)](_0x552a78[_0xb9a23e(0x245)]))],_0x2fb259);var _0x3e6251=Object[_0xb9a23e(0x38b)],_0x4bfd30=Object[_0xb9a23e(0x2ed)],_0x1bdeca=(_0x2b297c,_0x2c1c9b,_0x5db856,_0x89d37a)=>{for(var _0x32cefa=_0x89d37a>0x1?void 0x0:_0x89d37a?_0x4bfd30(_0x2c1c9b,_0x5db856):_0x2c1c9b,_0x5b6381=_0x2b297c['length']-0x1,_0x41edf7;_0x5b6381>=0x0;_0x5b6381--)(_0x41edf7=_0x2b297c[_0x5b6381])&&(_0x32cefa=(_0x89d37a?_0x41edf7(_0x2c1c9b,_0x5db856,_0x32cefa):_0x41edf7(_0x32cefa))||_0x32cefa);return _0x89d37a&&_0x32cefa&&_0x3e6251(_0x2c1c9b,_0x5db856,_0x32cefa),_0x32cefa;},_0x11f267=(_0x5194e2,_0x3973bd)=>(_0x4a3579,_0x33adae)=>_0x3973bd(_0x4a3579,_0x33adae,_0x5194e2);const _0x2d75e9=0x12c,_0x1e83bc=0x64;let _0x2df3d0=class extends _0x39562f['RxDisposable']{constructor(_0xc8959e,_0xdfd120,_0x4cbaee,_0x4adb7c,_0x461d31,_0x39ea9a,_0x5aa455,_0x4ecfe1,_0x40e0bd){const _0xa96631=_0xb9a23e;super(),_0x3e3dad(this,_0xa96631(0x513),!0x1),_0x3e3dad(this,_0xa96631(0x3e7),!0x1),_0x3e3dad(this,'_cursorInfo$',new _0x1fa2ab['BehaviorSubject'](new Map())),_0x3e3dad(this,_0xa96631(0x472),this[_0xa96631(0x50a)]['asObservable']()),_0x3e3dad(this,_0xa96631(0x408),new _0x1fa2ab[(_0xa96631(0x492))]([])),_0x3e3dad(this,_0xa96631(0x348),this[_0xa96631(0x408)][_0xa96631(0x24a)](_0x1fa2ab['debounceTime'](_0x2d75e9))),_0x3e3dad(this,_0xa96631(0x50e),_0x3a249e(_0x48e789=>{const _0x2d3795=_0xa96631,_0x4bfe73={'eventID':_0x244d6f['CollaborationEvent'][_0x2d3795(0x20f)],'data':{'unitID':this[_0x2d3795(0x474)],'memberID':this[_0x2d3795(0x499)][_0x2d3795(0x4d7)](),'selection':_0xcef2fd(_0x48e789)}};this[_0x2d3795(0x499)]['send'](_0x4bfe73,this[_0x2d3795(0x474)]);},_0x1e83bc)),(this[_0xa96631(0x474)]=_0xc8959e,this[_0xa96631(0x499)]=_0xdfd120,this['_injector']=_0x4cbaee,this[_0xa96631(0x25b)]=_0x4adb7c,this[_0xa96631(0x50c)]=_0x461d31,this['_syncEditingCollabCursorService']=_0x39ea9a,this['_transformService']=_0x5aa455,this[_0xa96631(0x328)]=_0x4ecfe1,this['_commandService']=_0x40e0bd);}get[_0xb9a23e(0x4e5)](){const _0x4e3017=_0xb9a23e;return this['_cursorInfo$'][_0x4e3017(0x1c4)]();}get[_0xb9a23e(0x278)](){const _0x2e2769=_0xb9a23e;return this[_0x2e2769(0x408)][_0x2e2769(0x1c4)]();}[_0xb9a23e(0x51e)](){const _0x273e19=_0xb9a23e;super[_0x273e19(0x51e)](),this[_0x273e19(0x50a)][_0x273e19(0x438)](new Map()),this[_0x273e19(0x50a)][_0x273e19(0x326)](),this[_0x273e19(0x408)][_0x273e19(0x438)]([]),this[_0x273e19(0x408)][_0x273e19(0x326)]();}['init'](){const _0xe3c266=_0xb9a23e;this[_0xe3c266(0x3e7)]||(this[_0xe3c266(0x3e7)]=!0x0,this['_session']['sessionStatus$'][_0xe3c266(0x24a)](_0x1fa2ab[_0xe3c266(0x307)](this['dispose$']))[_0xe3c266(0x282)](_0x458111=>{const _0x1dac6c=_0xe3c266;_0x458111===_0x346ac5[_0x1dac6c(0x330)]?this[_0x1dac6c(0x4ba)]():this['_toggleOffline']();}),this[_0xe3c266(0x499)][_0xe3c266(0x2bf)][_0xe3c266(0x24a)](_0x1fa2ab[_0xe3c266(0x307)](this[_0xe3c266(0x203)]))['subscribe'](_0x3a88ff=>{const _0x3601d2=_0xe3c266,_0x1ecca3=_0x3a88ff['eventID'];_0x1ecca3===_0x244d6f[_0x3601d2(0x42f)][_0x3601d2(0x20f)]&&this[_0x3601d2(0x45d)](_0x3a88ff),_0x1ecca3===_0x244d6f[_0x3601d2(0x42f)][_0x3601d2(0x345)]&&this[_0x3601d2(0x22f)](_0x3a88ff);}),this['disposeWithMe'](this[_0xe3c266(0x384)][_0xe3c266(0x223)](_0x4da4bf=>{const _0x5c9cb4=_0xe3c266,_0x111579=_0x4da4bf[_0x5c9cb4(0x1b9)];_0x111579!=null&&this[_0x5c9cb4(0x513)]&&_0x4da4bf['id']===_0x239a47['SetTextSelectionsOperation']['id']&&_0x111579[_0x5c9cb4(0x551)]===this[_0x5c9cb4(0x474)]&&_0x111579[_0x5c9cb4(0x381)]===!0x1&&this[_0x5c9cb4(0x50e)](_0x111579[_0x5c9cb4(0x250)]);})),this[_0xe3c266(0x2ff)][_0xe3c266(0x45c)]['pipe'](_0x1fa2ab[_0xe3c266(0x307)](this[_0xe3c266(0x203)]))[_0xe3c266(0x282)](_0x50515d=>{const _0x33d306=_0xe3c266;if((_0x50515d==null?void 0x0:_0x50515d[_0x33d306(0x474)])!==this[_0x33d306(0x474)])return;const _0x51ebe1={'eventID':_0x244d6f['CollaborationEvent'][_0x33d306(0x20f)],'data':_0x50515d};this[_0x33d306(0x45d)](_0x51ebe1);}),this[_0xe3c266(0x28a)](this[_0xe3c266(0x384)][_0xe3c266(0x223)](_0x35598c=>{const _0x511312=_0xe3c266;if(_0x35598c[_0x511312(0x1b9)]==null)return;const _0x5ec5f9=_0x35598c['params'];if(_0x35598c['id']!==_0x239a47[_0x511312(0x338)]['id']||_0x5ec5f9[_0x511312(0x551)]!==this[_0x511312(0x474)])return;const _0x258796={'id':_0x511312(0x1f2),'params':_0x5ec5f9},_0x84da0=this[_0x511312(0x4e5)];for(const [_0x5c7ff1,_0x4aeb40]of _0x84da0){const _0x13bbc0={'id':_0x511312(0x1f2),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x4aeb40[_0x511312(0x250)]}},_0x409d2e=this['_transformService'][_0x511312(0x4ed)](_0x258796,_0x13bbc0,!0x1);if(_0x244d6f[_0x511312(0x443)](_0x409d2e))throw _0x409d2e[_0x511312(0x4f3)];_0x84da0[_0x511312(0x3b1)](_0x5c7ff1,{..._0x4aeb40,'ranges':_0x409d2e['m2Prime'][_0x511312(0x1b9)]['textRanges']});}queueMicrotask(()=>{const _0x264352=_0x511312;this[_0x264352(0x50a)][_0x264352(0x438)](_0x84da0);});})));}[_0xb9a23e(0x45d)](_0x17fbb6){const _0x5cf93a=_0xb9a23e;var _0x332069,_0x659d8a;const {memberID:_0x1b0e02,selection:_0x2e92e5}=_0x17fbb6['data'],_0x2c77ba=_0x5ea618(_0x2e92e5),_0x34d6d4=(_0x659d8a=(_0x332069=this['_memberService'][_0x5cf93a(0x41f)](this['unitID'],_0x1b0e02))==null?void 0x0:_0x332069[_0x5cf93a(0x50b)])!=null?_0x659d8a:'Unknown\x20user',_0x365fcc={'color':this[_0x5cf93a(0x25b)][_0x5cf93a(0x38e)](_0x1b0e02),'name':_0x34d6d4,'ranges':_0x2c77ba},_0x516423=this['cursorInfo'];_0x516423[_0x5cf93a(0x3b1)](_0x1b0e02,_0x365fcc),this[_0x5cf93a(0x50a)][_0x5cf93a(0x438)](_0x516423);}[_0xb9a23e(0x22f)](_0x43a1c7){const _0x1a3dc7=_0xb9a23e,{memberID:_0x49e329}=_0x43a1c7[_0x1a3dc7(0x3df)],_0x3b6915=this[_0x1a3dc7(0x4e5)];_0x3b6915[_0x1a3dc7(0x319)](_0x49e329),this['_cursorInfo$'][_0x1a3dc7(0x438)](_0x3b6915);}[_0xb9a23e(0x4ba)](){const _0x527d23=_0xb9a23e;var _0x1fb42e;if(this[_0x527d23(0x513)]=!0x0,((_0x1fb42e=this[_0x527d23(0x328)][_0x527d23(0x51d)]())==null?void 0x0:_0x1fb42e[_0x527d23(0x37c)]())!==this[_0x527d23(0x474)])return;const _0xc2099c=this[_0x527d23(0x273)][_0x527d23(0x3a6)](_0x239a47[_0x527d23(0x3c5)])['getSelections'](),_0x4e65e6=_0xc2099c==null?void 0x0:_0xc2099c['map'](_0x239a47[_0x527d23(0x29b)]);Array[_0x527d23(0x1b3)](_0x4e65e6)&&_0x4e65e6['length']>0x0&&this['_updateLocalCursor'](_0x4e65e6);}[_0xb9a23e(0x3cb)](){const _0xac7878=_0xb9a23e;this[_0xac7878(0x513)]=!0x1;}};_0x2df3d0=_0x1bdeca([_0x11f267(0x2,_0x46d633[_0xb9a23e(0x2a5)](_0x46d633['Injector'])),_0x11f267(0x3,_0x46d633['Inject'](_0x274314)),_0x11f267(0x4,_0x46d633[_0xb9a23e(0x2a5)](_0x3eae2a)),_0x11f267(0x5,_0x46d633['Inject'](_0x1287ec)),_0x11f267(0x6,_0x244d6f[_0xb9a23e(0x444)]),_0x11f267(0x7,_0x39562f[_0xb9a23e(0x2d6)]),_0x11f267(0x8,_0x39562f[_0xb9a23e(0x4b5)])],_0x2df3d0);var _0x45a39a=Object[_0xb9a23e(0x38b)],_0x290363=Object[_0xb9a23e(0x2ed)],_0x5ea4d8=(_0x32cfa6,_0x3ac6da,_0x583f64,_0x43b8b0)=>{for(var _0x5bef22=_0x43b8b0>0x1?void 0x0:_0x43b8b0?_0x290363(_0x3ac6da,_0x583f64):_0x3ac6da,_0x2e03ce=_0x32cfa6['length']-0x1,_0x3bc921;_0x2e03ce>=0x0;_0x2e03ce--)(_0x3bc921=_0x32cfa6[_0x2e03ce])&&(_0x5bef22=(_0x43b8b0?_0x3bc921(_0x3ac6da,_0x583f64,_0x5bef22):_0x3bc921(_0x5bef22))||_0x5bef22);return _0x43b8b0&&_0x5bef22&&_0x45a39a(_0x3ac6da,_0x583f64,_0x5bef22),_0x5bef22;},_0x5b3d36=(_0x1f3aba,_0xdbfc9e)=>(_0xc5d330,_0x23a959)=>_0xdbfc9e(_0xc5d330,_0x23a959,_0x1f3aba);let _0x120e16=class extends _0x39562f[_0xb9a23e(0x298)]{constructor(_0x1f2970,_0x514a02,_0x413fcb){const _0x18bc2=_0xb9a23e;super(),_0x3e3dad(this,_0x18bc2(0x21d),new Map()),_0x3e3dad(this,_0x18bc2(0x28e),new _0x1fa2ab['Subject']()),(this[_0x18bc2(0x328)]=_0x1f2970,this[_0x18bc2(0x273)]=_0x514a02,this[_0x18bc2(0x49e)]=_0x413fcb,this[_0x18bc2(0x3e7)]());}[_0xb9a23e(0x51e)](){const _0x923a4e=_0xb9a23e;super[_0x923a4e(0x51e)](),this[_0x923a4e(0x28e)]['complete'](),this[_0x923a4e(0x21d)][_0x923a4e(0x560)](_0x32a25f=>_0x32a25f[_0x923a4e(0x51e)]());}['getCollabCursors$'](_0x30fa07){const _0x2b1f0b=_0xb9a23e;return this[_0x2b1f0b(0x21d)][_0x2b1f0b(0x1b4)](_0x30fa07)?this[_0x2b1f0b(0x21d)]['get'](_0x30fa07)[_0x2b1f0b(0x472)]:this[_0x2b1f0b(0x28e)][_0x2b1f0b(0x24a)](_0x1fa2ab[_0x2b1f0b(0x1f0)](_0x23613f=>_0x23613f[_0x2b1f0b(0x474)]===_0x30fa07),_0x1fa2ab[_0x2b1f0b(0x2d3)](_0x5d7995=>_0x5d7995['cursorInfo$']));}[_0xb9a23e(0x3e7)](){const _0x53fd65=_0xb9a23e;this['_univerInstanceService'][_0x53fd65(0x1e3)](_0x39562f[_0x53fd65(0x1ad)][_0x53fd65(0x40a)])[_0x53fd65(0x24a)](_0x1fa2ab[_0x53fd65(0x307)](this['dispose$']))[_0x53fd65(0x282)](async _0x44d97f=>{const _0x570791=_0x53fd65,_0x52dc83=_0x44d97f[_0x570791(0x37c)](),_0x2c0fe6=await this[_0x570791(0x565)](_0x52dc83);this[_0x570791(0x28e)][_0x570791(0x438)](_0x2c0fe6),this[_0x570791(0x21d)][_0x570791(0x3b1)](_0x52dc83,_0x2c0fe6);}),this[_0x53fd65(0x328)][_0x53fd65(0x1e3)](_0x39562f[_0x53fd65(0x1ad)][_0x53fd65(0x49f)])['pipe'](_0x1fa2ab['takeUntil'](this[_0x53fd65(0x203)]))['pipe'](_0x1fa2ab[_0x53fd65(0x1f0)](_0x28b48e=>!_0x28b48e[_0x53fd65(0x37c)]()['startsWith']('__')))[_0x53fd65(0x282)](async _0x1f9b9e=>{const _0x1896bf=_0x53fd65,_0x51354d=_0x1f9b9e['getUnitId'](),_0x27aa3f=await this[_0x1896bf(0x4b6)](_0x51354d);this[_0x1896bf(0x28e)]['next'](_0x27aa3f),this[_0x1896bf(0x21d)][_0x1896bf(0x3b1)](_0x51354d,_0x27aa3f);}),_0x1fa2ab[_0x53fd65(0x4dd)](this['_univerInstanceService'][_0x53fd65(0x37e)](_0x39562f['UniverInstanceType']['UNIVER_DOC']),this[_0x53fd65(0x328)][_0x53fd65(0x37e)](_0x39562f[_0x53fd65(0x1ad)]['UNIVER_SHEET']))[_0x53fd65(0x24a)](_0x1fa2ab[_0x53fd65(0x307)](this[_0x53fd65(0x203)]))[_0x53fd65(0x282)](_0x1b23f3=>{const _0xeddc36=_0x53fd65,_0xa4ffef=_0x1b23f3['getUnitId'](),_0xa5964a=this[_0xeddc36(0x21d)]['get'](_0xa4ffef);_0xa5964a&&(_0xa5964a['dispose'](),this[_0xeddc36(0x21d)][_0xeddc36(0x319)](_0xa4ffef));});}async[_0xb9a23e(0x565)](_0x2f4246){const _0x2c0190=_0xb9a23e,_0x587c27=await this[_0x2c0190(0x49e)][_0x2c0190(0x3d3)](_0x2f4246),_0x5b4511=this['_injector'][_0x2c0190(0x4dc)](_0x2fb259,_0x2f4246,_0x587c27);return _0x5b4511[_0x2c0190(0x324)](),_0x5b4511;}async['_startDocCollabCursor'](_0x5d7a9f){const _0x89159e=_0xb9a23e,_0x5a03ad=await this[_0x89159e(0x49e)][_0x89159e(0x3d3)](_0x5d7a9f),_0x39bb6b=this['_injector'][_0x89159e(0x4dc)](_0x2df3d0,_0x5d7a9f,_0x5a03ad);return _0x39bb6b[_0x89159e(0x324)](),_0x39bb6b;}};_0x120e16=_0x5ea4d8([_0x39562f[_0xb9a23e(0x40c)](_0x39562f[_0xb9a23e(0x407)][_0xb9a23e(0x31d)],_0x120e16),_0x5b3d36(0x0,_0x39562f[_0xb9a23e(0x2d6)]),_0x5b3d36(0x1,_0x46d633['Inject'](_0x46d633['Injector'])),_0x5b3d36(0x2,_0x46d633['Inject'](_0x2dfa89[_0xb9a23e(0x538)]))],_0x120e16);const _0x3b647f=0x14,_0x5da25a=0xc8,_0x3fa08a=0x4,_0x2a1d0a=0x5;function _0x28b599(_0x4c5b06,_0x342dd3){const _0x4c3de6=_0xb9a23e;let {radius:_0x49dd13,width:_0x3abbbc,height:_0x5161c3}=_0x342dd3;_0x49dd13=_0x49dd13!=null?_0x49dd13:0x0,_0x3abbbc=_0x3abbbc!=null?_0x3abbbc:0x1e,_0x5161c3=_0x5161c3!=null?_0x5161c3:0x1e;let _0x38374c=0x0,_0x581706=0x0,_0x405e0e=0x0;_0x38374c=_0x581706=_0x405e0e=Math[_0x4c3de6(0x556)](_0x49dd13,_0x3abbbc/0x2,_0x5161c3/0x2),_0x4c5b06['beginPath'](),_0x4c5b06[_0x4c3de6(0x3f3)](_0x38374c,0x0),_0x4c5b06[_0x4c3de6(0x465)](_0x3abbbc-_0x581706,0x0),_0x4c5b06[_0x4c3de6(0x1a3)](_0x3abbbc-_0x581706,_0x581706,_0x581706,Math['PI']*0x3/0x2,0x0,!0x1),_0x4c5b06['lineTo'](_0x3abbbc,_0x5161c3-_0x405e0e),_0x4c5b06[_0x4c3de6(0x1a3)](_0x3abbbc-_0x405e0e,_0x5161c3-_0x405e0e,_0x405e0e,0x0,Math['PI']/0x2,!0x1),_0x4c5b06[_0x4c3de6(0x465)](0x0,_0x5161c3),_0x4c5b06[_0x4c3de6(0x465)](0x0,_0x38374c),_0x4c5b06[_0x4c3de6(0x1a3)](_0x38374c,_0x38374c,_0x38374c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4c5b06[_0x4c3de6(0x4c2)](),_0x342dd3[_0x4c3de6(0x27c)]&&(_0x4c5b06[_0x4c3de6(0x421)](),_0x4c5b06[_0x4c3de6(0x468)]=_0x342dd3[_0x4c3de6(0x27c)],_0x342dd3[_0x4c3de6(0x3de)]===_0x4c3de6(0x2b7)?_0x4c5b06[_0x4c3de6(0x27c)](_0x4c3de6(0x2b7)):_0x4c5b06[_0x4c3de6(0x27c)](),_0x4c5b06[_0x4c3de6(0x500)]());}class _0x42f8bc extends _0x4f56df[_0xb9a23e(0x3d7)]{constructor(_0x443e50,_0x25543b){const _0x1163c6=_0xb9a23e;super(_0x443e50,_0x25543b),_0x3e3dad(this,_0x1163c6(0x1d6)),_0x3e3dad(this,_0x1163c6(0x37f)),(this[_0x1163c6(0x1d6)]=_0x25543b==null?void 0x0:_0x25543b['color'],this['text']=_0x25543b==null?void 0x0:_0x25543b[_0x1163c6(0x37f)]);}static[_0xb9a23e(0x242)](_0x297464,_0x5e2f3d){const _0x2ef94a=_0xb9a23e,{text:_0x59a819,color:_0x3c4d38}=_0x5e2f3d;_0x297464['save'](),_0x297464[_0x2ef94a(0x4f4)]=_0x2ef94a(0x1b5);const _0x4fa540=_0x297464[_0x2ef94a(0x558)](_0x59a819)[_0x2ef94a(0x4fc)],_0x1aba30=Math[_0x2ef94a(0x556)](_0x4fa540+0x2*_0x3fa08a,_0x5da25a);_0x28b599(_0x297464,{'height':_0x3b647f,'radius':0x4,'width':_0x1aba30,'fill':_0x3c4d38,'evented':!0x1}),_0x297464['fillStyle']='#FFF';const _0x505350=_0x3fa08a,_0x2f10ae=_0x3b647f-_0x2a1d0a,_0x39d294=_0x5da25a-0x2*_0x3fa08a;if(_0x4fa540>_0x39d294){let _0x2b6548='',_0x48f276=0x0;for(const _0x24570f of _0x59a819){const _0x5c1696=_0x297464['measureText'](_0x24570f)[_0x2ef94a(0x4fc)];if(_0x48f276+_0x5c1696<=_0x39d294-_0x297464[_0x2ef94a(0x558)](_0x2ef94a(0x1a5))[_0x2ef94a(0x4fc)])_0x2b6548+=_0x24570f,_0x48f276+=_0x5c1696;else{_0x2b6548+=_0x2ef94a(0x1a5);break;}}_0x297464[_0x2ef94a(0x24c)](_0x2b6548,_0x505350,_0x2f10ae);}else _0x297464['fillText'](_0x59a819,_0x505350,_0x2f10ae);_0x297464[_0x2ef94a(0x500)]();}[_0xb9a23e(0x49d)](_0x175dcb){const _0x4576d9=_0xb9a23e;_0x42f8bc[_0x4576d9(0x242)](_0x175dcb,this);}}const _0xeda3a1=0x1,_0x236f90=1.5;class _0x1dafad extends _0x4f56df[_0xb9a23e(0x3d7)]{constructor(_0x16fbb2,_0x4d2f27){const _0x35b974=_0xb9a23e;super(_0x16fbb2,_0x4d2f27),_0x3e3dad(this,_0x35b974(0x36e)),_0x3e3dad(this,'_hovered',!0x1),_0x3e3dad(this,_0x35b974(0x388)),_0x3e3dad(this,_0x35b974(0x533),''),_0x3e3dad(this,'_labelPosition',_0x35b974(0x1f7)),(_0x4d2f27&&this[_0x35b974(0x260)](_0x4d2f27),this[_0x35b974(0x2c6)]['subscribeEvent'](()=>this[_0x35b974(0x260)]({'hovered':!0x0})),this[_0x35b974(0x290)][_0x35b974(0x27a)](()=>this[_0x35b974(0x260)]({'hovered':!0x1})));}['setShapeProps'](_0x3edc70){const _0x2f69d9=_0xb9a23e;var _0x3be91e,_0x24d968,_0x290b72,_0x344c32,_0x585b53;this[_0x2f69d9(0x36e)]=(_0x3be91e=_0x3edc70[_0x2f69d9(0x1d6)])!=null?_0x3be91e:this[_0x2f69d9(0x36e)],this[_0x2f69d9(0x320)]=(_0x24d968=_0x3edc70[_0x2f69d9(0x359)])!=null?_0x24d968:this[_0x2f69d9(0x320)],this[_0x2f69d9(0x388)]=(_0x290b72=_0x3edc70[_0x2f69d9(0x1dc)])!=null?_0x290b72:this[_0x2f69d9(0x388)],this[_0x2f69d9(0x533)]=(_0x344c32=_0x3edc70[_0x2f69d9(0x50b)])!=null?_0x344c32:this[_0x2f69d9(0x533)],this[_0x2f69d9(0x294)]=(_0x585b53=_0x3edc70[_0x2f69d9(0x200)])!=null?_0x585b53:this['_labelPosition'],this['transformByState']({'width':_0x3edc70['width'],'height':_0x3edc70[_0x2f69d9(0x47f)]});}[_0xb9a23e(0x2e0)](_0x1e8aa5){const _0x1bcbf9=_0xb9a23e,{row:_0x3a8ee9,column:_0x105993}=_0x1e8aa5;if(_0x3a8ee9>=this['_range']['startRow']&&_0x3a8ee9<=this['_range']['endRow']&&_0x105993>=this[_0x1bcbf9(0x388)][_0x1bcbf9(0x358)]&&_0x105993<=this['_range'][_0x1bcbf9(0x511)]){this[_0x1bcbf9(0x260)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}['triggerDblclick'](_0x5c05b9){return!0x1;}[_0xb9a23e(0x49d)](_0x475778){const _0x9bdf34=_0xb9a23e;_0x4f56df[_0x9bdf34(0x3ce)]['drawWith'](_0x475778,{'width':this[_0x9bdf34(0x4fc)],'height':this['height'],'strokeWidth':_0x236f90,'stroke':this[_0x9bdf34(0x36e)],'evented':!0x1}),this[_0x9bdf34(0x320)]&&(_0x475778['save'](),_0x475778[_0x9bdf34(0x3e1)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']==='bottom'?0x0:-_0x3b647f),_0x42f8bc[_0x9bdf34(0x242)](_0x475778,{'text':this['_name'],'color':this['_color']}),_0x475778[_0x9bdf34(0x500)]());}}var _0x5aa900=Object[_0xb9a23e(0x38b)],_0x149459=Object[_0xb9a23e(0x2ed)],_0x2d5996=(_0x181264,_0x47f49e,_0xc60506,_0x42f1e2)=>{const _0x20763a=_0xb9a23e;for(var _0x333d45=_0x42f1e2>0x1?void 0x0:_0x42f1e2?_0x149459(_0x47f49e,_0xc60506):_0x47f49e,_0xb34538=_0x181264[_0x20763a(0x480)]-0x1,_0x4ecc1d;_0xb34538>=0x0;_0xb34538--)(_0x4ecc1d=_0x181264[_0xb34538])&&(_0x333d45=(_0x42f1e2?_0x4ecc1d(_0x47f49e,_0xc60506,_0x333d45):_0x4ecc1d(_0x333d45))||_0x333d45);return _0x42f1e2&&_0x333d45&&_0x5aa900(_0x47f49e,_0xc60506,_0x333d45),_0x333d45;},_0x5125be=(_0x524925,_0x6ef566)=>(_0x1af64d,_0x53ecf5)=>_0x6ef566(_0x1af64d,_0x53ecf5,_0x524925);const _0x10a838=0x1389;let _0x125bcc=class extends _0x39562f[_0xb9a23e(0x298)]{constructor(_0x49df97,_0x2cd69c,_0x4c2822,_0xd2c548){const _0xfa7828=_0xb9a23e;super(),_0x3e3dad(this,_0xfa7828(0x2da),new Set()),_0x3e3dad(this,_0xfa7828(0x36f),null),(this[_0xfa7828(0x33d)]=_0x49df97,this[_0xfa7828(0x328)]=_0x2cd69c,this[_0xfa7828(0x1df)]=_0x4c2822,this[_0xfa7828(0x4e4)]=_0xd2c548,this[_0xfa7828(0x3e7)]());}get[_0xb9a23e(0x418)](){const _0x15111e=_0xb9a23e;return this[_0x15111e(0x1df)][_0x15111e(0x2d0)](this[_0x15111e(0x328)][_0x15111e(0x33e)](_0x39562f[_0x15111e(0x1ad)][_0x15111e(0x40a)])[_0x15111e(0x37c)]())[_0x15111e(0x3a2)](_0x2818a9[_0x15111e(0x4ee)]);}get['_unitId'](){const _0x3626eb=_0xb9a23e;return this[_0x3626eb(0x328)][_0x3626eb(0x33e)](_0x39562f[_0x3626eb(0x1ad)][_0x3626eb(0x40a)])[_0x3626eb(0x37c)]();}[_0xb9a23e(0x3e7)](){const _0x1da96a=_0xb9a23e;this[_0x1da96a(0x418)]['currentSkeleton$'][_0x1da96a(0x24a)](_0x53520c['takeUntil'](this[_0x1da96a(0x203)]),_0x53520c[_0x1da96a(0x2d3)](_0x47797b=>{const _0x448b38=_0x1da96a;if(_0x47797b){const _0x3fa737=_0x47797b[_0x448b38(0x34c)];return _0x1fa2ab[_0x448b38(0x356)](this[_0x448b38(0x33d)]['getCollabCursors$'](this['_unitId']),this[_0x448b38(0x4e4)][_0x448b38(0x2cf)])[_0x448b38(0x24a)](_0x53520c[_0x448b38(0x3e3)](([_0x39a876,_0x4dca0f])=>{const _0x27f1ec=_0x448b38,_0x4738a7=new Map();return _0x39a876[_0x27f1ec(0x560)]((_0x332bd5,_0x257378)=>{const _0x1390c3=_0x27f1ec;if(_0x332bd5[_0x1390c3(0x342)]===_0x3fa737){const _0xf19e7b={..._0x332bd5};_0xf19e7b['color']=_0x4dca0f[_0x332bd5['color']],_0x4738a7[_0x1390c3(0x3b1)](_0x257378,_0xf19e7b);}}),{'skeleton':_0x47797b,'cursors':_0x4738a7};}));}return _0x1fa2ab['of']({'skeleton':null,'cursors':new Map()});}))[_0x1da96a(0x282)](({skeleton:_0xc001d5,cursors:_0x2db413})=>{const _0x1ee783=_0x1da96a;this['_removeCollabCursors'](),_0xc001d5&&this[_0x1ee783(0x244)](_0xc001d5,_0x2db413);}),this[_0x1da96a(0x418)]['currentSkeleton$']['subscribe'](_0x559a21=>{const _0x24d361=_0x1da96a;if(_0x559a21==null)return;const {skeleton:_0x4970ec}=_0x559a21,_0xe899c9=this[_0x24d361(0x1df)][_0x24d361(0x2d0)](this[_0x24d361(0x1bf)]),{scene:_0x27cb8c}=_0xe899c9;_0x27cb8c[_0x24d361(0x1d7)][_0x24d361(0x27a)](_0x3a249e(_0x41c5f5=>{const _0x38152d=_0x24d361;var _0x1bba09,_0x35f9eb;const {offsetX:_0x3b6240,offsetY:_0x48c8a7}=_0x41c5f5,{x:_0x1a4ad9,y:_0x168215}=_0x27cb8c[_0x38152d(0x20d)](_0x4f56df[_0x38152d(0x3dc)][_0x38152d(0x4fe)]([_0x3b6240,_0x48c8a7])),{scaleX:_0x35d3f7,scaleY:_0xe6e526}=_0x27cb8c[_0x38152d(0x23d)](),_0x4ab13f=_0x27cb8c['getViewport'](_0x2818a9[_0x38152d(0x1f5)]['VIEW_MAIN']),_0x196b11=_0x27cb8c['getScrollXYByRelativeCoords'](_0x4f56df[_0x38152d(0x3dc)][_0x38152d(0x4fe)]([_0x1a4ad9,_0x168215]),_0x4ab13f),_0x5aa2f2=_0x4970ec[_0x38152d(0x30b)](_0x3b6240,_0x48c8a7,_0x35d3f7,_0xe6e526,_0x196b11);((_0x1bba09=this[_0x38152d(0x36f)])==null?void 0x0:_0x1bba09['column'])===_0x5aa2f2[_0x38152d(0x427)]&&((_0x35f9eb=this['_lastPointer'])==null?void 0x0:_0x35f9eb[_0x38152d(0x2b2)])===_0x5aa2f2[_0x38152d(0x2b2)]||this[_0x38152d(0x2da)][_0x38152d(0x560)](_0x3c5b71=>{const _0x11adbc=_0x38152d;_0x3c5b71[_0x11adbc(0x2e0)](_0x5aa2f2);});},0x64));});}[_0xb9a23e(0x244)](_0x264fe6,_0x491c4e){const _0x10b7f9=_0xb9a23e;var _0x577fe9;const _0x6ff88d=(_0x577fe9=this[_0x10b7f9(0x418)][_0x10b7f9(0x2d2)]())==null?void 0x0:_0x577fe9[_0x10b7f9(0x48e)];if(!_0x6ff88d)return;const _0x209fab=this[_0x10b7f9(0x44f)]();if(!_0x209fab)return;this['_cursors']['forEach'](_0x2ed3bf=>{const _0x10f018=_0x10b7f9;_0x2ed3bf[_0x10f018(0x514)]();});const {scene:_0x396679}=_0x209fab,_0x2a89fc=_0xb2292c(Array[_0x10b7f9(0x225)](_0x491c4e['values']()))[_0x10b7f9(0x3e3)](_0x2be2ce=>{const _0x181357=_0x10b7f9,{color:_0x56a93e,range:_0xd21b98,name:_0x50bde9,selection:_0x1c3fb1,sheetID:_0x5282f2}=_0x2be2ce,{startColumn:_0x48d218,startRow:_0x3b0d3d,endColumn:_0x1547f1,endRow:_0x448069}=_0xd21b98,_0x50bfa4=_0x2818a9[_0x181357(0x486)](_0x3b0d3d,_0x48d218,_0x396679,_0x6ff88d),_0x5a840b=_0x2818a9['getCoordByCell'](_0x448069,_0x1547f1,_0x396679,_0x6ff88d),{columnHeaderHeightAndMarginTop:_0x9b6ed9}=_0x6ff88d,{startX:_0x5c7ffc,startY:_0x3ef760}=_0x50bfa4,{endX:_0x53ab69,endY:_0x3adddc}=_0x5a840b,_0x3be62f=_0x53ab69-_0x5c7ffc,_0x3a51d0=_0x3adddc-_0x3ef760,_0x1682e2={'labelPosition':_0x3ef760-_0x9b6ed9>=_0x3b647f?_0x181357(0x1f7):_0x181357(0x469),'sheetID':_0x5282f2,'range':_0xd21b98,'color':_0x56a93e,'name':_0x50bde9,'selection':_0x1c3fb1,'left':_0x5c7ffc,'top':_0x3ef760,'width':_0x3be62f,'height':_0x3a51d0,'evented':!0x1,'zIndex':_0x10a838};return new _0x1dafad(_0x50bde9,_0x1682e2);});_0x396679[_0x10b7f9(0x374)](_0x2a89fc,_0xeda3a1),this[_0x10b7f9(0x2da)]=new Set(_0x2a89fc);}[_0xb9a23e(0x2e1)](){const _0x37a01f=_0xb9a23e;var _0x25e79d;(_0x25e79d=this[_0x37a01f(0x2da)])==null||_0x25e79d[_0x37a01f(0x560)](_0x5a544b=>_0x5a544b['dispose']());}[_0xb9a23e(0x44f)](){const _0x1c3ca4=_0xb9a23e;return _0x2818a9[_0x1c3ca4(0x395)](this[_0x1c3ca4(0x328)],this['_renderManagerService']);}};_0x125bcc=_0x2d5996([_0x39562f[_0xb9a23e(0x40c)](_0x39562f['LifecycleStages'][_0xb9a23e(0x3f6)],_0x125bcc),_0x5125be(0x0,_0x46d633[_0xb9a23e(0x2a5)](_0x120e16)),_0x5125be(0x1,_0x39562f[_0xb9a23e(0x2d6)]),_0x5125be(0x2,_0x4f56df['IRenderManagerService']),_0x5125be(0x3,_0x46d633[_0xb9a23e(0x2a5)](_0x39562f[_0xb9a23e(0x4cc)]))],_0x125bcc);function _0xb2292c(_0x2a9b6d){const _0x7fffad=_0xb9a23e,_0x372298=new Map();return _0x2a9b6d[_0x7fffad(0x560)](_0x371011=>{const _0x52525f=_0x7fffad;if(_0x372298[_0x52525f(0x1b4)](_0x371011['selection'])){const _0x304d3c=_0x372298[_0x52525f(0x3a6)](_0x371011['selection']);_0x304d3c['name']+=',\x20'+_0x371011[_0x52525f(0x50b)];}else _0x372298[_0x52525f(0x3b1)](_0x371011[_0x52525f(0x25a)],_0x371011);}),Array[_0x7fffad(0x225)](_0x372298['values']());}var _0x5e80f1=function(){const _0x5d28f3=_0xb9a23e;return _0x5e80f1=Object[_0x5d28f3(0x489)]||function(_0x57b9c2){const _0x1b0fd1=_0x5d28f3;for(var _0x2bbcaf,_0x1bb5f5=0x1,_0x50119a=arguments[_0x1b0fd1(0x480)];_0x1bb5f5<_0x50119a;_0x1bb5f5++){_0x2bbcaf=arguments[_0x1bb5f5];for(var _0x1ff10d in _0x2bbcaf)Object[_0x1b0fd1(0x3bf)][_0x1b0fd1(0x3f1)][_0x1b0fd1(0x29c)](_0x2bbcaf,_0x1ff10d)&&(_0x57b9c2[_0x1ff10d]=_0x2bbcaf[_0x1ff10d]);}return _0x57b9c2;},_0x5e80f1[_0x5d28f3(0x52c)](this,arguments);},_0x2cd72a=function(_0x52caea,_0x3fdafc){const _0x4b85db=_0xb9a23e;var _0x3edf88={};for(var _0x5b41b0 in _0x52caea)Object[_0x4b85db(0x3bf)][_0x4b85db(0x3f1)][_0x4b85db(0x29c)](_0x52caea,_0x5b41b0)&&_0x3fdafc['indexOf'](_0x5b41b0)<0x0&&(_0x3edf88[_0x5b41b0]=_0x52caea[_0x5b41b0]);if(_0x52caea!=null&&typeof Object[_0x4b85db(0x4b3)]==_0x4b85db(0x227)){for(var _0x462f75=0x0,_0x5b41b0=Object['getOwnPropertySymbols'](_0x52caea);_0x462f75<_0x5b41b0[_0x4b85db(0x480)];_0x462f75++)_0x3fdafc[_0x4b85db(0x518)](_0x5b41b0[_0x462f75])<0x0&&Object[_0x4b85db(0x3bf)][_0x4b85db(0x4a8)][_0x4b85db(0x29c)](_0x52caea,_0x5b41b0[_0x462f75])&&(_0x3edf88[_0x5b41b0[_0x462f75]]=_0x52caea[_0x5b41b0[_0x462f75]]);}return _0x3edf88;},_0x2e0966=_0x1dd502[_0xb9a23e(0x446)](function(_0x25b5c9,_0x72c6cc){const _0x1eb699=_0xb9a23e;var _0x4b0ef7=_0x25b5c9[_0x1eb699(0x22e)],_0x2918c4=_0x25b5c9['id'],_0x1b26a9=_0x25b5c9['className'],_0x254cfd=_0x25b5c9[_0x1eb699(0x488)],_0x5ca069=_0x2cd72a(_0x25b5c9,['icon','id',_0x1eb699(0x312),_0x1eb699(0x488)]),_0x585ec7=_0x1eb699(0x2cd)[_0x1eb699(0x1ee)](_0x2918c4,'\x20')[_0x1eb699(0x1ee)](_0x1b26a9||'')[_0x1eb699(0x3b0)](),_0x2daa59=_0x1dd502[_0x1eb699(0x3f9)]('_'[_0x1eb699(0x1ee)](_0x2e4a6f()));return _0x1c6e42(_0x4b0ef7,''['concat'](_0x2918c4),{'defIds':_0x4b0ef7[_0x1eb699(0x1ca)],'idSuffix':_0x2daa59['current']},_0x5e80f1({'ref':_0x72c6cc,'className':_0x585ec7},_0x5ca069),_0x254cfd);});function _0x1c6e42(_0x2f4289,_0x4120cf,_0x25bd55,_0x1a1ba6,_0x28f76c){const _0x1b371d=_0xb9a23e;return _0x1dd502[_0x1b371d(0x44b)](_0x2f4289['tag'],_0x5e80f1(_0x5e80f1({'key':_0x4120cf},_0x55dc81(_0x2f4289,_0x25bd55,_0x28f76c)),_0x1a1ba6),(_0x53c506(_0x2f4289,_0x25bd55)[_0x1b371d(0x205)]||[])[_0x1b371d(0x3e3)](function(_0x4ce42e,_0x1c3e41){const _0xfb593a=_0x1b371d;return _0x1c6e42(_0x4ce42e,''[_0xfb593a(0x1ee)](_0x4120cf,'-')[_0xfb593a(0x1ee)](_0x2f4289['tag'],'-')[_0xfb593a(0x1ee)](_0x1c3e41),_0x25bd55,void 0x0,_0x28f76c);}));}function _0x55dc81(_0x6f60b8,_0xc978f4,_0xa7a12a){const _0xb522e7=_0xb9a23e;var _0x55eca1=_0x5e80f1({},_0x6f60b8[_0xb522e7(0x30e)]);_0xa7a12a!=null&&_0xa7a12a[_0xb522e7(0x269)]&&_0x55eca1[_0xb522e7(0x27c)]===_0xb522e7(0x269)&&(_0x55eca1[_0xb522e7(0x27c)]=_0xa7a12a[_0xb522e7(0x269)]);var _0x248611=_0xc978f4['defIds'];return!_0x248611||_0x248611['length']===0x0||(_0x6f60b8['tag']===_0xb522e7(0x281)&&_0x55eca1[_0xb522e7(0x380)]&&(_0x55eca1[_0xb522e7(0x380)]=_0x55eca1['xlink:href']+_0xc978f4[_0xb522e7(0x490)]),Object['entries'](_0x55eca1)[_0xb522e7(0x560)](function(_0x29b2bf){const _0x502129=_0xb522e7;var _0xab3f7=_0x29b2bf[0x0],_0xa3406a=_0x29b2bf[0x1];typeof _0xa3406a==_0x502129(0x327)&&(_0x55eca1[_0xab3f7]=_0xa3406a['replace'](/url\(#(.*)\)/,_0x502129(0x3f2)[_0x502129(0x1ee)](_0xc978f4[_0x502129(0x490)],')')));})),_0x55eca1;}function _0x53c506(_0x172cd5,_0x4fee06){const _0x8d965e=_0xb9a23e;var _0x466401,_0x5e4138=_0x4fee06['defIds'];return!_0x5e4138||_0x5e4138['length']===0x0?_0x172cd5:_0x172cd5[_0x8d965e(0x39f)]===_0x8d965e(0x4cb)&&(!((_0x466401=_0x172cd5['children'])===null||_0x466401===void 0x0)&&_0x466401['length'])?_0x5e80f1(_0x5e80f1({},_0x172cd5),{'children':_0x172cd5['children'][_0x8d965e(0x3e3)](function(_0x41837c){const _0x39a1a9=_0x8d965e;return typeof _0x41837c['attrs']['id']==_0x39a1a9(0x327)&&_0x5e4138&&_0x5e4138['indexOf'](_0x41837c['attrs']['id'])>-0x1?_0x5e80f1(_0x5e80f1({},_0x41837c),{'attrs':_0x5e80f1(_0x5e80f1({},_0x41837c['attrs']),{'id':_0x41837c[_0x39a1a9(0x30e)]['id']+_0x4fee06[_0x39a1a9(0x490)]})}):_0x41837c;})}):_0x172cd5;}function _0x2e4a6f(){const _0x25ca37=_0xb9a23e;return Math['random']()['toString'](0x24)[_0x25ca37(0x26e)](0x2,0x8);}_0x2e0966['displayName']=_0xb9a23e(0x526);var _0x3a03bf={'tag':_0xb9a23e(0x25f),'attrs':{'fill':_0xb9a23e(0x48f),'viewBox':_0xb9a23e(0x459),'width':_0xb9a23e(0x541),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0xb9a23e(0x2be)},'children':[{'tag':_0xb9a23e(0x527),'attrs':{'stroke':_0xb9a23e(0x44a),'d':_0xb9a23e(0x4db),'strokeLinecap':_0xb9a23e(0x2f9),'strokeLinejoin':_0xb9a23e(0x2f9),'strokeWidth':1.2}}]},{'tag':_0xb9a23e(0x4cb),'attrs':{},'children':[{'tag':_0xb9a23e(0x49a),'attrs':{'id':_0xb9a23e(0x2ae)},'children':[{'tag':_0xb9a23e(0x527),'attrs':{'fill':_0xb9a23e(0x53e),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0xb9a23e(0x2ae)]},_0x3fd358=_0x1dd502[_0xb9a23e(0x446)](function(_0x3fa4a6,_0x11bd99){const _0x2ec981=_0xb9a23e;return _0x1dd502['createElement'](_0x2e0966,Object[_0x2ec981(0x489)]({},_0x3fa4a6,{'id':_0x2ec981(0x3c8),'ref':_0x11bd99,'icon':_0x3a03bf}));});_0x3fd358[_0xb9a23e(0x27d)]=_0xb9a23e(0x2a1);var _0x4ff060={'tag':'svg','attrs':{'fill':'none','viewBox':_0xb9a23e(0x520),'width':_0xb9a23e(0x541),'height':_0xb9a23e(0x541)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0xb9a23e(0x527),'attrs':{'stroke':_0xb9a23e(0x44a),'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':_0xb9a23e(0x2f9),'strokeLinejoin':_0xb9a23e(0x2f9),'strokeWidth':1.2}}]},{'tag':_0xb9a23e(0x4cb),'attrs':{},'children':[{'tag':_0xb9a23e(0x49a),'attrs':{'id':_0xb9a23e(0x371)},'children':[{'tag':_0xb9a23e(0x527),'attrs':{'fill':_0xb9a23e(0x53e),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},_0x78562d=_0x1dd502[_0xb9a23e(0x446)](function(_0x3b4d7f,_0x5dccea){const _0x18ad62=_0xb9a23e;return _0x1dd502['createElement'](_0x2e0966,Object[_0x18ad62(0x489)]({},_0x3b4d7f,{'id':'on-line-single','ref':_0x5dccea,'icon':_0x4ff060}));});_0x78562d[_0xb9a23e(0x27d)]=_0xb9a23e(0x21a);const _0x37ccd0={'onlineStatusIcon':_0xb9a23e(0x3f7),'onlineStatusTitle':_0xb9a23e(0x208),'onlineStatus':_0xb9a23e(0x441),'online':_0xb9a23e(0x262),'offline':_0xb9a23e(0x4e6)};function _0x5ca2c7(_0x41fdad){const _0x553a62=_0xb9a23e;switch(_0x41fdad){case _0x3cde1c[_0x553a62(0x354)]:return'collabStatus.offline';case _0x3cde1c[_0x553a62(0x2c2)]:return'collabStatus.conflict';case _0x3cde1c[_0x553a62(0x228)]:return _0x553a62(0x460);case _0x3cde1c[_0x553a62(0x547)]:return _0x553a62(0x310);case _0x3cde1c[_0x553a62(0x487)]:case _0x3cde1c[_0x553a62(0x2ee)]:case _0x3cde1c[_0x553a62(0x3a8)]:return'collabStatus.syncing';case _0x3cde1c[_0x553a62(0x504)]:return _0x553a62(0x230);}}function _0x502068(_0xe90e04){const _0x3130f3=_0xb9a23e,{status$:_0x5e7cbd}=_0xe90e04,_0x50fea4=_0x38d129['useObservable'](_0x5e7cbd,_0x3cde1c[_0x3130f3(0x547)]),_0x5bc022=_0x142e82['useDependency'](_0x39562f[_0x3130f3(0x303)]),_0x2b5b89=_0x50fea4!==_0x3cde1c[_0x3130f3(0x354)],_0x454b21=_0x5bc022['t'](_0x5ca2c7(_0x50fea4)),_0x238489=_0x2aa9a5(_0x37ccd0[_0x3130f3(0x3ae)],{[_0x37ccd0[_0x3130f3(0x2e8)]]:_0x2b5b89,[_0x37ccd0[_0x3130f3(0x343)]]:!_0x2b5b89}),_0x4c4bde=_0x2b5b89?_0x1dd502[_0x3130f3(0x44b)](_0x78562d,null):_0x1dd502['createElement'](_0x3fd358,null);return _0x1dd502[_0x3130f3(0x44b)](_0x3130f3(0x1d1),{'className':_0x238489},_0x1dd502['createElement'](_0x3130f3(0x1d1),{'className':_0x37ccd0[_0x3130f3(0x2cc)]},_0x4c4bde),_0x1dd502[_0x3130f3(0x44b)]('div',{'className':_0x37ccd0['onlineStatusTitle']},_0x454b21));}var _0x3ac89f=Object[_0xb9a23e(0x38b)],_0x3a8cdd=Object[_0xb9a23e(0x2ed)],_0x56ed21=(_0x188ade,_0x3eb140,_0x4d9685,_0x1e64e4)=>{const _0x462ce1=_0xb9a23e;for(var _0x471df2=_0x1e64e4>0x1?void 0x0:_0x1e64e4?_0x3a8cdd(_0x3eb140,_0x4d9685):_0x3eb140,_0x83bb16=_0x188ade[_0x462ce1(0x480)]-0x1,_0x2fdbff;_0x83bb16>=0x0;_0x83bb16--)(_0x2fdbff=_0x188ade[_0x83bb16])&&(_0x471df2=(_0x1e64e4?_0x2fdbff(_0x3eb140,_0x4d9685,_0x471df2):_0x2fdbff(_0x471df2))||_0x471df2);return _0x1e64e4&&_0x471df2&&_0x3ac89f(_0x3eb140,_0x4d9685,_0x471df2),_0x471df2;},_0xf007d1=(_0x4ed6bf,_0x2b4b95)=>(_0x18c2e3,_0x2cc288)=>_0x2b4b95(_0x18c2e3,_0x2cc288,_0x4ed6bf);_0x2dfa89['DesktopCollaborationStatusDisplayController']=class extends _0x39562f[_0xb9a23e(0x4bf)]{constructor(_0x4b4f81,_0x1f1083,_0x4faf0c,_0x3456fa){const _0x2b7c6f=_0xb9a23e;super(),_0x3e3dad(this,_0x2b7c6f(0x3c0),new _0x1fa2ab[(_0x2b7c6f(0x492))](_0x3cde1c[_0x2b7c6f(0x547)])),(this[_0x2b7c6f(0x328)]=_0x4b4f81,this[_0x2b7c6f(0x211)]=_0x1f1083,this[_0x2b7c6f(0x273)]=_0x4faf0c,this[_0x2b7c6f(0x301)]=_0x3456fa,this[_0x2b7c6f(0x2b9)](),this['_initStatusListener']());}[_0xb9a23e(0x2b9)](){const _0x29963f=_0xb9a23e;this['disposeWithMe'](this[_0x29963f(0x211)]['registerComponent'](_0x38d129['BuiltInUIPart']['HEADER_MENU'],()=>_0x142e82[_0x29963f(0x226)](_0x3ae9a2({'status$':this[_0x29963f(0x3c0)]['asObservable']()}),this[_0x29963f(0x273)])));}[_0xb9a23e(0x4ec)](){const _0x144265=_0xb9a23e;this[_0x144265(0x28a)](_0x39562f['toDisposable'](this[_0x144265(0x328)][_0x144265(0x239)][_0x144265(0x24a)](_0x1fa2ab['switchMap'](()=>{const _0x457226=_0x144265,_0x282f4e=this[_0x457226(0x328)][_0x457226(0x51d)]();return _0x282f4e?this[_0x457226(0x301)][_0x457226(0x48a)](_0x282f4e['getUnitId']()):_0x1fa2ab['of'](null);}),_0x1fa2ab[_0x144265(0x2d3)](_0x2b3fa4=>_0x2b3fa4?_0x2b3fa4['status$']:_0x1fa2ab['of'](_0x3cde1c['NOT_COLLAB'])))[_0x144265(0x282)](_0xe4ea9a=>{const _0x996779=_0x144265;this[_0x996779(0x3c0)]['next'](_0xe4ea9a);})));}},_0x2dfa89[_0xb9a23e(0x466)]=_0x56ed21([_0x39562f[_0xb9a23e(0x40c)](_0x39562f[_0xb9a23e(0x407)]['Starting'],_0x2dfa89[_0xb9a23e(0x466)]),_0xf007d1(0x0,_0x39562f['IUniverInstanceService']),_0xf007d1(0x1,_0x38d129[_0xb9a23e(0x1b6)]),_0xf007d1(0x2,_0x46d633['Inject'](_0x46d633[_0xb9a23e(0x215)])),_0xf007d1(0x3,_0x46d633[_0xb9a23e(0x2a5)](_0x2dfa89[_0xb9a23e(0x501)]))],_0x2dfa89['DesktopCollaborationStatusDisplayController']);function _0x3ae9a2(_0x42212a){const {status$:_0x2cd195}=_0x42212a;return function(){return _0x1dd502['createElement'](_0x502068,{'status$':_0x2cd195});};}const _0x4248a5=_0x46d633[_0xb9a23e(0x1dd)](_0xb9a23e(0x23b));var _0x50cac0=Object[_0xb9a23e(0x38b)],_0x5b1d1c=Object[_0xb9a23e(0x2ed)],_0x5d9566=(_0x43ef2c,_0xd2e1c4,_0x4b167b,_0x34e787)=>{const _0x54012b=_0xb9a23e;for(var _0x20b3f3=_0x34e787>0x1?void 0x0:_0x34e787?_0x5b1d1c(_0xd2e1c4,_0x4b167b):_0xd2e1c4,_0x2ee8af=_0x43ef2c[_0x54012b(0x480)]-0x1,_0x12f860;_0x2ee8af>=0x0;_0x2ee8af--)(_0x12f860=_0x43ef2c[_0x2ee8af])&&(_0x20b3f3=(_0x34e787?_0x12f860(_0xd2e1c4,_0x4b167b,_0x20b3f3):_0x12f860(_0x20b3f3))||_0x20b3f3);return _0x34e787&&_0x20b3f3&&_0x50cac0(_0xd2e1c4,_0x4b167b,_0x20b3f3),_0x20b3f3;},_0x2eeb00=(_0x473e75,_0x5db519)=>(_0x167626,_0x10de94)=>_0x5db519(_0x167626,_0x10de94,_0x473e75);_0x2dfa89[_0xb9a23e(0x2a9)]=class extends _0x39562f[_0xb9a23e(0x298)]{constructor(_0x47e070,_0x41033a,_0x39e236,_0x51c33e,_0x19cd4d,_0x31d79d){const _0x21e9e3=_0xb9a23e;super(),this[_0x21e9e3(0x1cd)]=_0x47e070,this[_0x21e9e3(0x38c)]=_0x41033a,this[_0x21e9e3(0x384)]=_0x39e236,this['_localCacheService']=_0x51c33e,this['_snapshotService']=_0x19cd4d,_0x31d79d?_0x31d79d==null||_0x31d79d[_0x21e9e3(0x2c7)]()[_0x21e9e3(0x1fd)](()=>this[_0x21e9e3(0x3e7)]()):(this[_0x21e9e3(0x38c)]['debug'](_0x21e9e3(0x39e),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x21e9e3(0x3e7)]());}async[_0xb9a23e(0x3e7)](){const _0x1bfbe2=_0xb9a23e,_0x3f4a4f=this[_0x1bfbe2(0x1cd)][_0x1bfbe2(0x341)](_0x1bfbe2(0x4fd)),_0x2eeb69=this['_urlService'][_0x1bfbe2(0x341)](_0x1bfbe2(0x2a3));if(!_0x3f4a4f||!_0x2eeb69){this[_0x1bfbe2(0x38c)][_0x1bfbe2(0x564)]('[DataLoaderController]',_0x1bfbe2(0x403));return;}switch(Number(_0x2eeb69)){case _0x55e05d['UNIVER_SHEET']:{const _0x47a1ea=await this[_0x1bfbe2(0x3d5)](_0x3f4a4f);this[_0x1bfbe2(0x31f)](_0x47a1ea);break;}case _0x55e05d['UNIVER_DOC']:{await this['_loadDoc'](_0x3f4a4f);break;}default:{this['_logService'][_0x1bfbe2(0x4f3)](_0x1bfbe2(0x39e),_0x1bfbe2(0x4e3));break;}}}async['_setupSubUnitSync'](_0xc562ad){const _0x192644=_0xb9a23e;await this[_0x192644(0x4b9)](_0xc562ad),_0xc562ad['activeSheet$'][_0x192644(0x24a)](_0x1fa2ab['takeUntil'](this[_0x192644(0x203)]))[_0x192644(0x282)](_0x4477ec=>{const _0x32323a=_0x192644;_0x4477ec&&this[_0x32323a(0x401)](_0x4477ec);}),this[_0x192644(0x1cd)][_0x192644(0x4c0)][_0x192644(0x24a)](_0x1fa2ab[_0x192644(0x307)](this['dispose$']))[_0x192644(0x282)](()=>this[_0x192644(0x4b9)](_0xc562ad));}[_0xb9a23e(0x401)](_0x500407,_0x521098=!0x1){const _0x336290=_0xb9a23e,_0x4cfcb4=this[_0x336290(0x1cd)][_0x336290(0x341)](_0x336290(0x28d));_0x500407[_0x336290(0x539)]()!==_0x4cfcb4&&this[_0x336290(0x1cd)]['setParam'](_0x336290(0x28d),_0x500407[_0x336290(0x539)](),_0x521098);}async['_updateSubUnitFromURLParams'](_0x20f68d){const _0x1c27a7=_0xb9a23e;var _0x486c9c;const _0x412a27=this[_0x1c27a7(0x1cd)][_0x1c27a7(0x341)]('subunit');if(!_0x412a27||!_0x20f68d['getSheetBySheetId'](_0x412a27)){const _0x17845a=_0x20f68d[_0x1c27a7(0x277)]()[0x0],_0x40386b=_0x20f68d[_0x1c27a7(0x424)](_0x17845a);if(!_0x40386b)return;this['_updateURLWithCurrentState'](_0x40386b,!0x0),await this['_commandService']['executeCommand'](_0x552a78[_0x1c27a7(0x27f)]['id'],{'unitId':_0x20f68d[_0x1c27a7(0x37c)](),'subUnitId':_0x17845a});return;}((_0x486c9c=_0x20f68d[_0x1c27a7(0x568)]())==null?void 0x0:_0x486c9c[_0x1c27a7(0x539)]())!==_0x412a27&&await this[_0x1c27a7(0x384)][_0x1c27a7(0x2c8)](_0x552a78[_0x1c27a7(0x27f)]['id'],{'unitId':_0x20f68d[_0x1c27a7(0x37c)](),'subUnitId':_0x412a27});}async[_0xb9a23e(0x3d5)](_0x56a39c){const _0x969b50=_0xb9a23e;let _0x284309=0x0;const _0x4f661e=await this[_0x969b50(0x557)][_0x969b50(0x21c)](_0x56a39c);return _0x4f661e&&(_0x4f661e[_0x969b50(0x473)]||_0x4f661e['mutations'][_0x969b50(0x480)]!==0x0)&&(_0x284309=_0x4f661e['rev']),_0x284309===0x0&&this[_0x969b50(0x38c)]['debug']('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x969b50(0x546)][_0x969b50(0x46a)](_0x56a39c,_0x284309);}async[_0xb9a23e(0x3da)](_0x1ede86){const _0xc48e08=_0xb9a23e;let _0x352694=0x0;const _0x3c1d4f=await this[_0xc48e08(0x557)][_0xc48e08(0x21c)](_0x1ede86);return _0x3c1d4f&&(_0x3c1d4f[_0xc48e08(0x473)]||_0x3c1d4f[_0xc48e08(0x1bb)][_0xc48e08(0x480)]!==0x0)&&(_0x352694=_0x3c1d4f['rev']),_0x352694===0x0&&this[_0xc48e08(0x38c)][_0xc48e08(0x564)](_0xc48e08(0x39e),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0xc48e08(0x546)][_0xc48e08(0x3c2)](_0x1ede86,_0x352694);}},_0x2dfa89[_0xb9a23e(0x2a9)]=_0x5d9566([_0x39562f[_0xb9a23e(0x40c)](_0x39562f[_0xb9a23e(0x407)][_0xb9a23e(0x31d)],_0x2dfa89['DataLoaderController']),_0x2eeb00(0x0,_0x4248a5),_0x2eeb00(0x1,_0x39562f[_0xb9a23e(0x3d4)]),_0x2eeb00(0x2,_0x39562f[_0xb9a23e(0x4b5)]),_0x2eeb00(0x3,_0x46d633[_0xb9a23e(0x2a5)](_0x2dfa89['LocalCacheService'])),_0x2eeb00(0x4,_0x46d633[_0xb9a23e(0x2a5)](_0x244d6f[_0xb9a23e(0x495)])),_0x2eeb00(0x5,_0x46d633[_0xb9a23e(0x4c1)](_0x51a864[_0xb9a23e(0x447)]))],_0x2dfa89[_0xb9a23e(0x2a9)]);var _0x10acb9=Object[_0xb9a23e(0x38b)],_0x424be9=Object['getOwnPropertyDescriptor'],_0x2aa89b=(_0x2dd533,_0x369e4a,_0x5872b9,_0x417560)=>{const _0x5e4ec4=_0xb9a23e;for(var _0x594632=_0x417560>0x1?void 0x0:_0x417560?_0x424be9(_0x369e4a,_0x5872b9):_0x369e4a,_0x597eda=_0x2dd533[_0x5e4ec4(0x480)]-0x1,_0x304ab4;_0x597eda>=0x0;_0x597eda--)(_0x304ab4=_0x2dd533[_0x597eda])&&(_0x594632=(_0x417560?_0x304ab4(_0x369e4a,_0x5872b9,_0x594632):_0x304ab4(_0x594632))||_0x594632);return _0x417560&&_0x594632&&_0x10acb9(_0x369e4a,_0x5872b9,_0x594632),_0x594632;},_0x453935=(_0x49de3b,_0x1d9304)=>(_0x41d1fc,_0x33dc03)=>_0x1d9304(_0x41d1fc,_0x33dc03,_0x49de3b);const _0x787c31=_0xb9a23e(0x2bb),_0xe1a255='Univer';let _0xe78f9f=class extends _0x39562f[_0xb9a23e(0x4bf)]{constructor(_0x36766d,_0x16dc72){const _0x1aaf97=_0xb9a23e;super(),this[_0x1aaf97(0x328)]=_0x36766d,this[_0x1aaf97(0x1ec)]=_0x16dc72,this[_0x1aaf97(0x3e7)]();}['_init'](){const _0x5afb5d=_0xb9a23e;this['disposeWithMe'](_0x39562f[_0x5afb5d(0x3e2)](this[_0x5afb5d(0x328)][_0x5afb5d(0x239)][_0x5afb5d(0x282)](()=>{const _0x2b4260=_0x5afb5d;var _0x1f3edc;const _0x4a988e=this[_0x2b4260(0x328)][_0x2b4260(0x51d)]();let _0x3a2fa3=(_0x1f3edc=this['_configService']['getConfig'](_0x787c31))!=null?_0x1f3edc:_0xe1a255;_0x4a988e instanceof _0x39562f['Workbook']&&(_0x3a2fa3=_0x4a988e[_0x2b4260(0x50b)]),document[_0x2b4260(0x4f2)]=_0x3a2fa3;})));}};_0xe78f9f=_0x2aa89b([_0x39562f['OnLifecycle'](_0x39562f['LifecycleStages'][_0xb9a23e(0x1db)],_0xe78f9f),_0x453935(0x0,_0x39562f[_0xb9a23e(0x2d6)]),_0x453935(0x1,_0x39562f[_0xb9a23e(0x251)])],_0xe78f9f);var _0x396929=Object[_0xb9a23e(0x38b)],_0x506a46=Object[_0xb9a23e(0x2ed)],_0x2e9724=(_0x633ed6,_0x2f5520,_0x551952,_0x1d327d)=>{const _0x4df5bf=_0xb9a23e;for(var _0x4d11f3=_0x1d327d>0x1?void 0x0:_0x1d327d?_0x506a46(_0x2f5520,_0x551952):_0x2f5520,_0x4b050b=_0x633ed6[_0x4df5bf(0x480)]-0x1,_0x491c24;_0x4b050b>=0x0;_0x4b050b--)(_0x491c24=_0x633ed6[_0x4b050b])&&(_0x4d11f3=(_0x1d327d?_0x491c24(_0x2f5520,_0x551952,_0x4d11f3):_0x491c24(_0x4d11f3))||_0x4d11f3);return _0x1d327d&&_0x4d11f3&&_0x396929(_0x2f5520,_0x551952,_0x4d11f3),_0x4d11f3;},_0x5d8d00=(_0xe5a54a,_0x3bedbd)=>(_0x1fb2d1,_0xfb9b33)=>_0x3bedbd(_0x1fb2d1,_0xfb9b33,_0xe5a54a);let _0x3c99f6=class{constructor(_0x844dc2,_0x3efa87){const _0x9117b8=_0xb9a23e;this[_0x9117b8(0x1ec)]=_0x844dc2,this[_0x9117b8(0x454)]=_0x3efa87;}async[_0xb9a23e(0x1b7)](_0xf3fb50,_0x5a56c9){const _0x1db2f6=_0xb9a23e;var _0x37593b;const {unitID:_0x3fa1a3,type:_0x539bd5,revision:_0x2a5a44=0x0}=_0x5a56c9,_0x35f340=this[_0x1db2f6(0x4d1)]()+'/'+_0x539bd5+_0x1db2f6(0x4d6)+_0x3fa1a3+_0x1db2f6(0x4a5)+(_0x2a5a44===0x1?0x0:_0x2a5a44),_0x35229e=(await this[_0x1db2f6(0x454)][_0x1db2f6(0x3a6)](_0x35f340))[_0x1db2f6(0x337)],_0x5ebbc5=(_0x37593b=_0x35229e[_0x1db2f6(0x255)])==null?void 0x0:_0x37593b[_0x1db2f6(0x4a3)];if(_0x5ebbc5){const _0xb5f07b=_0x5ebbc5==null?void 0x0:_0x5ebbc5[_0x1db2f6(0x276)],_0x22952b=_0x39562f[_0x1db2f6(0x305)][_0x1db2f6(0x1ed)](_0x39562f[_0x1db2f6(0x542)](_0xb5f07b));_0x5ebbc5['originalMeta']=_0x22952b,Object[_0x1db2f6(0x55f)](_0x5ebbc5[_0x1db2f6(0x26a)])['forEach'](([,_0x55ba12])=>{const _0x3aa8bf=_0x1db2f6,_0x2f2c41=_0x55ba12[_0x3aa8bf(0x276)],_0x17b6ad=_0x39562f[_0x3aa8bf(0x305)][_0x3aa8bf(0x1ed)](_0x39562f[_0x3aa8bf(0x542)](_0x2f2c41));_0x55ba12['originalMeta']=_0x17b6ad;});}return _0x35229e;}async[_0xb9a23e(0x1f6)](_0x1c3458,_0x463bd1){const _0x3721be=_0xb9a23e,{unitID:_0xdaacd1,type:_0x1759ff,blockID:_0x4da4bc}=_0x463bd1,_0x46487d=this[_0x3721be(0x3f4)]()+'/'+_0x1759ff+_0x3721be(0x4d6)+_0xdaacd1+_0x3721be(0x237)+_0x4da4bc;return(await this['_httpService'][_0x3721be(0x3a6)](_0x46487d))[_0x3721be(0x337)];}async[_0xb9a23e(0x291)](_0x125bfa,_0xe745a4){const _0x2fca05=_0xb9a23e,{unitID:_0x26732e,type:_0x14dd8c,from:_0x332410,to:_0x4d20f3}=_0xe745a4,_0x329d5b=this[_0x2fca05(0x3f4)]()+'/'+_0x14dd8c+'/unit/'+_0x26732e+_0x2fca05(0x32a)+_0x332410+_0x2fca05(0x2ef)+_0x4d20f3;return(await this['_httpService'][_0x2fca05(0x3a6)](_0x329d5b))[_0x2fca05(0x337)];}[_0xb9a23e(0x4d1)](){const _0x43ec2e=_0xb9a23e;var _0x3952ec;return(_0x3952ec=this[_0x43ec2e(0x1ec)][_0x43ec2e(0x496)](_0x3e0532))!=null?_0x3952ec:this['_getAPIPrefix']();}['_getAPIPrefix'](){const _0xd2a4a8=_0xb9a23e;var _0x406813;return(_0x406813=this['_configService'][_0xd2a4a8(0x496)](_0x91342))!=null?_0x406813:_0x4c81a9;}async['getResourcesRequest'](_0x560734,_0x1488dc){const _0xb19ea5=_0xb9a23e,_0x40526b=_0xb19ea5(0x4d4)+_0x1488dc[_0xb19ea5(0x2a3)]+_0xb19ea5(0x4d6)+_0x1488dc[_0xb19ea5(0x474)]+_0xb19ea5(0x26b);return(await this[_0xb19ea5(0x454)][_0xb19ea5(0x3a6)](_0x40526b,{'params':{'resourceId':JSON[_0xb19ea5(0x47b)](_0x1488dc['resourceIDs'])}}))['body'];}[_0xb9a23e(0x3e5)](){const _0x247a5f=_0xb9a23e;throw new Error(_0x247a5f(0x43c));}[_0xb9a23e(0x50d)](){const _0x2e5b43=_0xb9a23e;throw new Error(_0x2e5b43(0x43c));}[_0xb9a23e(0x4df)](){const _0x15136b=_0xb9a23e;throw new Error(_0x15136b(0x43c));}};_0x3c99f6=_0x2e9724([_0x5d8d00(0x0,_0x39562f[_0xb9a23e(0x251)]),_0x5d8d00(0x1,_0x46d633[_0xb9a23e(0x2a5)](_0x403cff[_0xb9a23e(0x2cb)]))],_0x3c99f6);var _0x42f9a0=Object[_0xb9a23e(0x38b)],_0xdb971c=Object[_0xb9a23e(0x2ed)],_0x5ce7e6=(_0x40c5bc,_0x4fae9b,_0x3363b6,_0x35b007)=>{for(var _0x388c78=_0x35b007>0x1?void 0x0:_0x35b007?_0xdb971c(_0x4fae9b,_0x3363b6):_0x4fae9b,_0x1836fe=_0x40c5bc['length']-0x1,_0x4e6b07;_0x1836fe>=0x0;_0x1836fe--)(_0x4e6b07=_0x40c5bc[_0x1836fe])&&(_0x388c78=(_0x35b007?_0x4e6b07(_0x4fae9b,_0x3363b6,_0x388c78):_0x4e6b07(_0x388c78))||_0x388c78);return _0x35b007&&_0x388c78&&_0x42f9a0(_0x4fae9b,_0x3363b6,_0x388c78),_0x388c78;},_0x36ee43=(_0x19550a,_0x3e452b)=>(_0x2c6fba,_0xbd4897)=>_0x3e452b(_0x2c6fba,_0xbd4897,_0x19550a);let _0x161ec1=class extends _0x39562f[_0xb9a23e(0x3cf)]{constructor(_0x57ff41,_0x4f366a,_0x39580f,_0x54a4ef,_0x3e678b){const _0x273e28=_0xb9a23e;super(_0x57ff41,_0x4f366a,_0x39580f),this[_0x273e28(0x1e0)]=_0x54a4ef,this[_0x273e28(0x38c)]=_0x3e678b;}[_0xb9a23e(0x461)](_0x164ac3,_0x3a4873){const _0x2ac539=_0xb9a23e,_0x257673=this[_0x2ac539(0x26d)](_0x164ac3);if(_0x257673)try{const _0x38e0b7=this[_0x2ac539(0x554)](_0x257673,_0x3a4873);this[_0x2ac539(0x4ef)](_0x164ac3,_0x38e0b7);}catch(_0x3afbaa){this[_0x2ac539(0x38c)]['error'](_0x2ac539(0x204),_0x3afbaa),this[_0x2ac539(0x287)](_0x164ac3);}const _0x19e6bd=this[_0x2ac539(0x47e)](_0x164ac3);if(_0x19e6bd)try{const _0x457e49=this['_transformStack'](_0x19e6bd,_0x3a4873);this['_substituteRedoStack'](_0x164ac3,_0x457e49);}catch(_0x1cf38c){this[_0x2ac539(0x38c)]['error'](_0x1cf38c),this[_0x2ac539(0x1ac)](_0x164ac3);}}['_clearUndo'](_0x33f0e3){const _0x4386af=_0xb9a23e,_0xa078f7=this[_0x4386af(0x26d)](_0x33f0e3);_0xa078f7&&(_0xa078f7[_0x4386af(0x480)]=0x0,this[_0x4386af(0x1a0)]());}[_0xb9a23e(0x1ac)](_0x5e40b0){const _0x52a241=_0xb9a23e,_0x4b512c=this[_0x52a241(0x47e)](_0x5e40b0);_0x4b512c&&(_0x4b512c[_0x52a241(0x480)]=0x0,this[_0x52a241(0x1a0)]());}[_0xb9a23e(0x4ef)](_0x17ed86,_0x1262f5){const _0x1ea106=_0xb9a23e;this['_undoStacks'][_0x1ea106(0x3b1)](_0x17ed86,_0x1262f5),this[_0x1ea106(0x1a0)]();}[_0xb9a23e(0x1e5)](_0x291978,_0x371ea2){const _0x40377f=_0xb9a23e;this[_0x40377f(0x1e9)]['set'](_0x291978,_0x371ea2),this['_updateStatus']();}[_0xb9a23e(0x554)](_0x25d7b9,_0x15c8e8){const _0x581980=_0xb9a23e,_0x475b21=[];let _0x3f347f=_0x15c8e8,_0x88e5ec=_0x15c8e8;for(let _0x299b7f=_0x25d7b9['length']-0x1;_0x299b7f>=0x0;_0x299b7f--){const {unitID:_0x4129c1,undoMutations:_0x5b6c79,redoMutations:_0x37f2da}=_0x25d7b9[_0x299b7f],_0x51b3a3=this[_0x581980(0x1e0)][_0x581980(0x314)](_0x3f347f,_0x5b6c79),_0x5d0226=this[_0x581980(0x1e0)][_0x581980(0x314)](_0x88e5ec,_0x37f2da);if(_0x244d6f[_0x581980(0x411)](_0x51b3a3)||_0x244d6f[_0x581980(0x411)](_0x5d0226)){this[_0x581980(0x38c)][_0x581980(0x4f3)](_0x581980(0x204),_0x581980(0x2fb),_0x51b3a3,_0x5d0226);break;}_0x3f347f=_0x51b3a3[_0x581980(0x2c9)],_0x88e5ec=_0x5d0226[_0x581980(0x2c9)],_0x475b21[_0x581980(0x509)]({'unitID':_0x4129c1,'undoMutations':_0x51b3a3[_0x581980(0x349)],'redoMutations':_0x5d0226[_0x581980(0x349)]});}return _0x475b21[_0x581980(0x3b7)]();}};_0x161ec1=_0x5ce7e6([_0x36ee43(0x0,_0x39562f[_0xb9a23e(0x2d6)]),_0x36ee43(0x1,_0x39562f[_0xb9a23e(0x4b5)]),_0x36ee43(0x2,_0x39562f['IContextService']),_0x36ee43(0x3,_0x244d6f[_0xb9a23e(0x444)]),_0x36ee43(0x4,_0x39562f[_0xb9a23e(0x3d4)])],_0x161ec1);class _0x1af5c6 extends _0x39562f[_0xb9a23e(0x298)]{constructor(){const _0x523b0b=_0xb9a23e;super(),_0x3e3dad(this,'urlChange$'),this[_0x523b0b(0x4c0)]=_0x1fa2ab[_0x523b0b(0x497)](window,'popstate')[_0x523b0b(0x24a)](_0x1fa2ab['takeUntil'](this[_0x523b0b(0x203)]),_0x1fa2ab[_0x523b0b(0x2b4)](0x1),_0x1fa2ab[_0x523b0b(0x231)](void 0x0));}[_0xb9a23e(0x1a4)](_0x5dcfd2,_0x36d39d,_0x1ea747=!0x1){const _0x418e35=_0xb9a23e,_0x3526ac=new URL(window[_0x418e35(0x302)]['href']);_0x3526ac[_0x418e35(0x4f9)]['set'](_0x5dcfd2,_0x36d39d),_0x1ea747?window[_0x418e35(0x43f)][_0x418e35(0x35f)]('','',_0x3526ac['toString']()):window[_0x418e35(0x43f)][_0x418e35(0x4c6)]('','',_0x3526ac['toString']());}[_0xb9a23e(0x2a7)](_0x1b98ad,_0x2d9a86=!0x1){const _0x73b786=_0xb9a23e,_0xd176e7=new URL(window['location'][_0x73b786(0x4fa)]);_0xd176e7[_0x73b786(0x4f9)][_0x73b786(0x319)](_0x1b98ad),_0x2d9a86?window[_0x73b786(0x43f)][_0x73b786(0x35f)]('','',_0xd176e7['toString']()):window[_0x73b786(0x43f)][_0x73b786(0x4c6)]('','',_0xd176e7[_0x73b786(0x238)]());}['getParam'](_0x5920ec){const _0x3d2fc9=_0xb9a23e;var _0x641126;return(_0x641126=new URL(window['location'][_0x3d2fc9(0x4fa)])[_0x3d2fc9(0x4f9)][_0x3d2fc9(0x3a6)](_0x5920ec))!=null?_0x641126:void 0x0;}}const _0x3dcda4=_0xb9a23e(0x451),_0x3dbd36=_0xb9a23e(0x30c),_0x3671a2=0x6,_0x2cf7e6=1.5,_0x56a5de=0x4,_0x4d477b=1.5,_0x59cf23=_0xb9a23e(0x470);class _0x4edd93{constructor(_0x1c1aef,_0x4fd3f0,_0x3f40be,_0x1d8395){const _0x4211b5=_0xb9a23e;_0x3e3dad(this,_0x4211b5(0x54f),[]),_0x3e3dad(this,_0x4211b5(0x3c7),null),_0x3e3dad(this,_0x4211b5(0x1a8),null),_0x3e3dad(this,_0x4211b5(0x265),null),_0x3e3dad(this,'_hideTimer',null),_0x3e3dad(this,_0x4211b5(0x33b),null),(this[_0x4211b5(0x46e)]=_0x1c1aef,this[_0x4211b5(0x202)]=_0x4fd3f0,this['_docSkeleton']=_0x3f40be,this[_0x4211b5(0x48b)]=_0x1d8395,this[_0x4211b5(0x2e7)]());}set[_0xb9a23e(0x220)](_0x22f83f){const _0x14d972=_0xb9a23e;_0x22f83f?(this['_anchorDot']&&this['_anchorDot']['hide'](),this['_textBubble']&&this[_0x14d972(0x1a8)][_0x14d972(0x46d)]()):(this[_0x14d972(0x265)]&&this[_0x14d972(0x265)][_0x14d972(0x46d)](),this[_0x14d972(0x1a8)]&&this[_0x14d972(0x1a8)]['hide']());}[_0xb9a23e(0x51e)](){const _0x539a39=_0xb9a23e;for(const _0x1a763e of this['_shapes'])_0x1a763e[_0x539a39(0x51e)]();this[_0x539a39(0x1a8)]&&this[_0x539a39(0x1a8)][_0x539a39(0x51e)](),this['_anchorDot']&&this['_anchorDot'][_0x539a39(0x51e)](),this[_0x539a39(0x3c7)]&&this['_anchor'][_0x539a39(0x51e)](),this[_0x539a39(0x33b)]&&this[_0x539a39(0x33b)]();}['_render'](){const _0x502062=_0xb9a23e,{_docSkeleton:_0x1c0a02,_document:_0x5d53f9}=this,{color:_0x550f27,name:_0x1aa2a4,ranges:_0x54fa21}=this[_0x502062(0x46e)],_0x40f9ad=_0x5d53f9[_0x502062(0x2f4)](),{docsLeft:_0x526f9d,docsTop:_0xcfb6}=_0x40f9ad,_0x4942ed=new _0x4f56df[(_0x502062(0x33a))](_0x40f9ad,_0x1c0a02);for(const {startOffset:_0x14c170,endOffset:_0x573c77,collapsed:_0x4f5dcb,isActive:_0x4af5b8}of _0x54fa21){const _0x2c2450=_0x1c0a02['findNodePositionByCharIndex'](_0x14c170),_0x1998bc=_0x1c0a02[_0x502062(0x2fc)](_0x573c77);if(_0x4af5b8){const {contentBoxPointGroup:_0x544acc}=_0x4942ed['getRangePointData'](_0x1998bc,_0x1998bc);if(_0x544acc[_0x502062(0x480)]===0x0)continue;this[_0x502062(0x55d)](_0x550f27,_0x544acc,_0x526f9d,_0xcfb6,_0x1aa2a4),this[_0x502062(0x33b)]=this['_handleHover']();}if(!_0x4f5dcb){const {contentBoxPointGroup:_0x13018d}=_0x4942ed['getRangePointData'](_0x2c2450,_0x1998bc);if(_0x13018d[_0x502062(0x480)]===0x0)continue;this['_drawRange'](_0x550f27,_0x13018d,_0x526f9d,_0xcfb6);}}}[_0xb9a23e(0x55d)](_0x22a399,_0xd62aa8,_0x5153f5,_0x28c284,_0x12dbad){const _0x4024bd=_0xb9a23e,_0x1fed5a=this['_getAnchorBounding'](_0xd62aa8),{left:_0x31c67e,top:_0x58d03c,height:_0x5eeaa3}=_0x1fed5a,_0x47bdde=this[_0x4024bd(0x350)](),_0x3cc814=_0x4d477b/_0x47bdde,_0x146a48=new _0x4f56df['Rect'](_0x3dcda4+_0x39562f[_0x4024bd(0x507)][_0x4024bd(0x375)](_0x3671a2),{'left':_0x31c67e+_0x5153f5-_0x3cc814,'top':_0x58d03c+_0x28c284,'height':_0x5eeaa3,'width':_0x2cf7e6,'fill':_0x22a399||_0x4f56df[_0x4024bd(0x252)](_0x39562f[_0x4024bd(0x297)][_0x4024bd(0x1ba)],0x0),'strokeWidth':_0x3cc814,'stroke':_0x59cf23,'evented':!0x0});this['_anchor']=_0x146a48,this[_0x4024bd(0x202)][_0x4024bd(0x42a)](_0x146a48,_0x4f56df[_0x4024bd(0x257)]);const _0x2c5751=new _0x4f56df['Rect'](_0x3dcda4+_0x39562f[_0x4024bd(0x507)][_0x4024bd(0x375)](_0x3671a2),{'left':_0x31c67e+_0x5153f5-_0x3cc814,'top':_0x58d03c+_0x28c284-_0x56a5de/0x2,'height':_0x56a5de,'width':_0x56a5de,'fill':_0x22a399||_0x4f56df[_0x4024bd(0x252)](_0x39562f[_0x4024bd(0x297)][_0x4024bd(0x1ba)],0x0),'strokeWidth':0x0,'stroke':_0x22a399||_0x4f56df['getColor'](_0x39562f[_0x4024bd(0x297)]['black'],0x0),'evented':!0x1});this[_0x4024bd(0x265)]=_0x2c5751,this[_0x4024bd(0x202)][_0x4024bd(0x42a)](_0x2c5751,_0x4f56df[_0x4024bd(0x257)]);const _0x47c8d7=new _0x42f8bc(_0x3dcda4+_0x39562f['Tools']['generateRandomId'](_0x3671a2),{'left':_0x31c67e+_0x5153f5-_0x3cc814,'top':_0x58d03c+_0x28c284-_0x3b647f,'text':_0x12dbad,'color':_0x22a399});this[_0x4024bd(0x1a8)]=_0x47c8d7,this[_0x4024bd(0x202)][_0x4024bd(0x42a)](_0x47c8d7,_0x4f56df[_0x4024bd(0x257)]),this[_0x4024bd(0x220)]=!0x1;}['_handleHover'](){const _0x48f9ad=_0xb9a23e,_0x21bc51=this[_0x48f9ad(0x3c7)][_0x48f9ad(0x2c6)][_0x48f9ad(0x27a)](()=>{const _0xebc1e7=_0x48f9ad;this[_0xebc1e7(0x220)]=!0x0;}),_0x178452=this['_anchor']['onPointerLeave$'][_0x48f9ad(0x27a)](()=>{const _0x5d91eb=_0x48f9ad;this[_0x5d91eb(0x300)]&&clearTimeout(this[_0x5d91eb(0x300)]),this['_hideTimer']=setTimeout(()=>{const _0x30d5d2=_0x5d91eb;this[_0x30d5d2(0x220)]=!0x1;},0x7d0);});return()=>{const _0xfc0ad6=_0x48f9ad;_0x21bc51[_0xfc0ad6(0x54c)](),_0x178452[_0xfc0ad6(0x54c)]();};}['_drawRange'](_0x5e8654,_0x3a6b34,_0x1f1f53,_0x100c67){const _0x16b710=_0xb9a23e,_0xf1665=new _0x39562f[(_0x16b710(0x442))](_0x5e8654)['setAlpha'](0.2)['toRgbString'](),_0x3704df=new _0x4f56df[(_0x16b710(0x4bb))](_0x3dbd36+_0x39562f[_0x16b710(0x507)][_0x16b710(0x375)](_0x3671a2),{'pointsGroup':_0x3a6b34,'fill':_0xf1665||_0x4f56df['getColor'](_0x39562f[_0x16b710(0x297)][_0x16b710(0x1ba)],0.2),'left':_0x1f1f53,'top':_0x100c67,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x16b710(0x54f)]['push'](_0x3704df),this['_scene'][_0x16b710(0x42a)](_0x3704df,_0x4f56df[_0x16b710(0x257)]);}[_0xb9a23e(0x2db)](_0x1ba5ea){const _0xd11443=_0x1ba5ea[0x0],_0xfb9659=_0xd11443[0x0],_0x4b8e5d=_0xd11443[0x2],{x:_0x114aa5,y:_0x17cdee}=_0xfb9659,{x:_0x2b4c8e,y:_0x175a3d}=_0x4b8e5d;return{'left':_0x114aa5,'top':_0x17cdee,'width':_0x2b4c8e-_0x114aa5,'height':_0x175a3d-_0x17cdee};}['_getScale'](){const _0x35856d=_0xb9a23e,{scaleX:_0x2bc32a,scaleY:_0x4a75d4}=this[_0x35856d(0x202)][_0x35856d(0x23d)]();return Math['max'](_0x2bc32a,_0x4a75d4);}}var _0x56f8ef=Object[_0xb9a23e(0x38b)],_0x2442c2=Object[_0xb9a23e(0x2ed)],_0x56bab1=(_0x4591dc,_0x21a688,_0x2e7f78,_0x4f51e7)=>{const _0x57ffb4=_0xb9a23e;for(var _0x470a8d=_0x4f51e7>0x1?void 0x0:_0x4f51e7?_0x2442c2(_0x21a688,_0x2e7f78):_0x21a688,_0x124b3f=_0x4591dc[_0x57ffb4(0x480)]-0x1,_0x349d0c;_0x124b3f>=0x0;_0x124b3f--)(_0x349d0c=_0x4591dc[_0x124b3f])&&(_0x470a8d=(_0x4f51e7?_0x349d0c(_0x21a688,_0x2e7f78,_0x470a8d):_0x349d0c(_0x470a8d))||_0x470a8d);return _0x4f51e7&&_0x470a8d&&_0x56f8ef(_0x21a688,_0x2e7f78,_0x470a8d),_0x470a8d;},_0x5a0bf5=(_0xb6fd8b,_0x1b5dd8)=>(_0x4821dc,_0x2f32f5)=>_0x1b5dd8(_0x4821dc,_0x2f32f5,_0xb6fd8b);let _0x4c5749=class extends _0x39562f[_0xb9a23e(0x298)]{constructor(_0x36d216,_0x5e392f,_0x4615b9,_0xd821ae,_0x3af465){const _0x40d6ed=_0xb9a23e;super(),_0x3e3dad(this,_0x40d6ed(0x2da),[]),(this[_0x40d6ed(0x33d)]=_0x36d216,this[_0x40d6ed(0x328)]=_0x5e392f,this['_renderManagerService']=_0x4615b9,this[_0x40d6ed(0x311)]=_0xd821ae,this['_themeService']=_0x3af465,this[_0x40d6ed(0x3e7)]());}[_0xb9a23e(0x3e7)](){const _0x2675b7=_0xb9a23e;this[_0x2675b7(0x311)][_0x2675b7(0x243)]['pipe'](_0x53520c[_0x2675b7(0x307)](this[_0x2675b7(0x203)]),_0x53520c[_0x2675b7(0x2d3)](_0x2a794c=>{const _0x3e5503=_0x2675b7;if(_0x2a794c){const _0x473522=_0x2a794c[_0x3e5503(0x3bb)]()['getDataModel']()[_0x3e5503(0x37c)]();return _0x1fa2ab[_0x3e5503(0x356)](this[_0x3e5503(0x33d)][_0x3e5503(0x51c)](_0x473522),this[_0x3e5503(0x4e4)][_0x3e5503(0x2cf)])[_0x3e5503(0x24a)](_0x53520c['map'](([_0xa8bfa1,_0x46414e])=>({'skeleton':_0x2a794c,'cursors':[..._0xa8bfa1[_0x3e5503(0x53f)]()][_0x3e5503(0x4e1)](_0xac86e1=>({..._0xac86e1,'color':_0x46414e[_0xac86e1[_0x3e5503(0x1d6)]]}))})));}return _0x1fa2ab['of']({'skeleton':null,'cursors':[]});}))[_0x2675b7(0x282)](({skeleton:_0x5c7818,cursors:_0x5a96ec})=>{const _0x50844f=_0x2675b7;this[_0x50844f(0x2e1)](),_0x5c7818&&this[_0x50844f(0x244)](_0x5c7818,_0x5a96ec);});}[_0xb9a23e(0x244)](_0x50aceb,_0x2e0be7){const _0x1f9195=_0xb9a23e,_0x314b79=this[_0x1f9195(0x241)]();if(_0x314b79==null)return;const {scene:_0x2d24f6,document:_0x2971fd}=_0x314b79,_0x1c3efc=_0x2e0be7[_0x1f9195(0x3e3)](_0x410a98=>new _0x4edd93(_0x410a98,_0x2d24f6,_0x50aceb,_0x2971fd));this[_0x1f9195(0x2da)]=_0x1c3efc;}[_0xb9a23e(0x2e1)](){const _0x17e555=_0xb9a23e;this[_0x17e555(0x2da)]['forEach'](_0x52017d=>_0x52017d[_0x17e555(0x51e)]()),this[_0x17e555(0x2da)]=[];}[_0xb9a23e(0x241)](){const _0x2e0206=_0xb9a23e;return _0x239a47['getDocObject'](this[_0x2e0206(0x328)],this[_0x2e0206(0x1df)]);}};_0x4c5749=_0x56bab1([_0x39562f[_0xb9a23e(0x40c)](_0x39562f[_0xb9a23e(0x407)][_0xb9a23e(0x3f6)],_0x4c5749),_0x5a0bf5(0x0,_0x46d633[_0xb9a23e(0x2a5)](_0x120e16)),_0x5a0bf5(0x1,_0x39562f[_0xb9a23e(0x2d6)]),_0x5a0bf5(0x2,_0x4f56df[_0xb9a23e(0x3cc)]),_0x5a0bf5(0x3,_0x46d633['Inject'](_0x239a47['DocSkeletonManagerService'])),_0x5a0bf5(0x4,_0x46d633[_0xb9a23e(0x2a5)](_0x39562f[_0xb9a23e(0x4cc)]))],_0x4c5749);var _0xac29e9=Object['defineProperty'],_0x3b0249=Object[_0xb9a23e(0x2ed)],_0x434dc7=(_0x19f568,_0x11aa1b,_0x53da4b,_0x47dcdd)=>{const _0x1bbc32=_0xb9a23e;for(var _0x534fe3=_0x47dcdd>0x1?void 0x0:_0x47dcdd?_0x3b0249(_0x11aa1b,_0x53da4b):_0x11aa1b,_0x5dd778=_0x19f568[_0x1bbc32(0x480)]-0x1,_0x1a811d;_0x5dd778>=0x0;_0x5dd778--)(_0x1a811d=_0x19f568[_0x5dd778])&&(_0x534fe3=(_0x47dcdd?_0x1a811d(_0x11aa1b,_0x53da4b,_0x534fe3):_0x1a811d(_0x534fe3))||_0x534fe3);return _0x47dcdd&&_0x534fe3&&_0xac29e9(_0x11aa1b,_0x53da4b,_0x534fe3),_0x534fe3;},_0x4178af=(_0x3719fe,_0x2012d8)=>(_0x4abfc8,_0x314697)=>_0x2012d8(_0x4abfc8,_0x314697,_0x3719fe);let _0x4d2aea=class{constructor(_0x101a7e,_0x40c9cc,_0x459a87){const _0x34ca65=_0xb9a23e;this['_configService']=_0x101a7e,this[_0x34ca65(0x454)]=_0x40c9cc,this[_0x34ca65(0x37a)]=_0x459a87,this[_0x34ca65(0x324)]();}[_0xb9a23e(0x324)](){const _0xf6ebc4=_0xb9a23e;this[_0xf6ebc4(0x454)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x28f879,_0xdd410d)=>_0xdd410d(_0x28f879)[_0xf6ebc4(0x24a)](_0x1fa2ab[_0xf6ebc4(0x2bd)](async _0x11dbdf=>{const _0x561e34=_0xf6ebc4,_0x207575=_0x11dbdf;if(_0x207575[_0x561e34(0x23e)]===0x191&&window['confirm'](this[_0x561e34(0x37a)]['t']('auth.needGotoLoginAlert'))){const _0x2c61e8=window[_0x561e34(0x3a4)](window[_0x561e34(0x302)]['href']);window[_0x561e34(0x302)][_0x561e34(0x4fa)]=this[_0x561e34(0x28b)]()+'?url='+_0x2c61e8;}return _0x207575;}))});}['_getLoginPath'](){var _0x1c206a;return(_0x1c206a=this['_configService']['getConfig'](_0x156e4d))!=null?_0x1c206a:_0x2fff92;}};_0x4d2aea=_0x434dc7([_0x4178af(0x0,_0x39562f[_0xb9a23e(0x251)]),_0x4178af(0x1,_0x46d633[_0xb9a23e(0x2a5)](_0x403cff['HTTPService'])),_0x4178af(0x2,_0x46d633[_0xb9a23e(0x2a5)](_0x39562f[_0xb9a23e(0x303)]))],_0x4d2aea);var _0x1ff8d9=Object[_0xb9a23e(0x38b)],_0x984e83=Object[_0xb9a23e(0x2ed)],_0x5b1b3a=(_0x4e6dbf,_0x46b562,_0x3c7578,_0x6a956e)=>{const _0x36874f=_0xb9a23e;for(var _0x14ff63=_0x6a956e>0x1?void 0x0:_0x6a956e?_0x984e83(_0x46b562,_0x3c7578):_0x46b562,_0x2ef6c5=_0x4e6dbf[_0x36874f(0x480)]-0x1,_0x37aef0;_0x2ef6c5>=0x0;_0x2ef6c5--)(_0x37aef0=_0x4e6dbf[_0x2ef6c5])&&(_0x14ff63=(_0x6a956e?_0x37aef0(_0x46b562,_0x3c7578,_0x14ff63):_0x37aef0(_0x14ff63))||_0x14ff63);return _0x6a956e&&_0x14ff63&&_0x1ff8d9(_0x46b562,_0x3c7578,_0x14ff63),_0x14ff63;},_0x5213db=(_0x12fdf0,_0x5b26f3)=>(_0x150e33,_0x2dd664)=>_0x5b26f3(_0x150e33,_0x2dd664,_0x12fdf0);const _0x4d8f72=_0xb9a23e(0x258),_0x3275a5=_0xb9a23e(0x4c9);_0x2dfa89['AuthzIoHttpService']=class{constructor(_0x5bfc4c,_0x1d9e1c){const _0x19031c=_0xb9a23e;this[_0x19031c(0x346)]=_0x5bfc4c,this[_0x19031c(0x1ec)]=_0x1d9e1c;}['_getAPIPrefixPath'](){const _0x23593d=_0xb9a23e;var _0x472b72;return(_0x472b72=this[_0x23593d(0x1ec)]['getConfig'](_0x4d8f72))!=null?_0x472b72:_0x3275a5;}async[_0xb9a23e(0x3e8)](_0x45bd22){const _0x5712da=_0xb9a23e,_0x560314=this[_0x5712da(0x475)]()+'/'+_0x45bd22[_0x5712da(0x2f5)]+'/object';return(await this[_0x5712da(0x346)][_0x5712da(0x42c)](_0x560314,{'body':_0x45bd22}))[_0x5712da(0x337)][_0x5712da(0x219)]||'';}async[_0xb9a23e(0x385)](_0x288a96){const _0x5ebdbb=_0xb9a23e,_0x325176=this[_0x5ebdbb(0x475)]()+_0x5ebdbb(0x1ab);return(await this['_HTTPService'][_0x5ebdbb(0x42c)](_0x325176,{'body':_0x288a96}))[_0x5ebdbb(0x337)][_0x5ebdbb(0x4de)];}async[_0xb9a23e(0x33c)](_0x1600fc){const _0x1abd21=_0xb9a23e,_0x4b2072=this[_0x1abd21(0x475)]()+'/'+_0x1600fc[_0x1abd21(0x2f5)]+_0x1abd21(0x20b)+_0x1600fc[_0x1abd21(0x219)];await this[_0x1abd21(0x346)]['put'](_0x4b2072,{'body':_0x1600fc});}async[_0xb9a23e(0x3ff)](_0x35407a){const _0xf541c3=_0xb9a23e,_0x2424a0=this[_0xf541c3(0x475)]()+'/'+_0x35407a[_0xf541c3(0x2f5)]+_0xf541c3(0x20b)+_0x35407a[_0xf541c3(0x219)]+_0xf541c3(0x391);return(await this[_0xf541c3(0x346)][_0xf541c3(0x42c)](_0x2424a0,{'body':_0x35407a}))[_0xf541c3(0x337)][_0xf541c3(0x3fb)];}async[_0xb9a23e(0x508)](_0x51913a){const _0x27b43c=_0xb9a23e,_0x25ac0d=this[_0x27b43c(0x475)]()+_0x27b43c(0x420);return(await this[_0x27b43c(0x346)]['post'](_0x25ac0d,{'body':{'requests':_0x51913a}}))[_0x27b43c(0x337)][_0x27b43c(0x280)];}async[_0xb9a23e(0x4fb)](_0x442908){const _0x4a9865=_0xb9a23e,_0x3aaa6c=this[_0x4a9865(0x475)]()+'/'+_0x442908[_0x4a9865(0x2f5)]+_0x4a9865(0x2aa),_0x1777cd=await this['_HTTPService']['post'](_0x3aaa6c,{'body':_0x442908});return{'roles':_0x1777cd[_0x4a9865(0x337)]['roles'],'actions':_0x1777cd[_0x4a9865(0x337)][_0x4a9865(0x3fb)]};}async[_0xb9a23e(0x1e1)](_0x3b53b8){const _0x36c410=_0xb9a23e,_0x1d02d8=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x36c410(0x346)][_0x36c410(0x319)](_0x1d02d8,{'params':{'collaboratorID':_0x3b53b8[_0x36c410(0x3ac)],'objectID':_0x3b53b8[_0x36c410(0x219)],'unitID':_0x3b53b8[_0x36c410(0x474)]}});}async[_0xb9a23e(0x3b3)](_0x519973){const _0x24c670=_0xb9a23e,_0x1103ef=this[_0x24c670(0x475)]()+_0x24c670(0x2e9);await this['_HTTPService']['patch'](_0x1103ef,{'body':_0x519973});}async[_0xb9a23e(0x218)](_0x4721a8){const _0x596649=_0xb9a23e,_0x1d8d6e=this['_getAPIPrefixPath']()+_0x596649(0x2e9);await this[_0x596649(0x346)][_0x596649(0x42c)](_0x1d8d6e,{'body':_0x4721a8});}async[_0xb9a23e(0x304)](_0x133517){const _0x13e2c2=_0xb9a23e,_0x26a1d8=this[_0x13e2c2(0x475)]()+_0x13e2c2(0x2e9);return(await this[_0x13e2c2(0x346)][_0x13e2c2(0x3a6)](_0x26a1d8,{'params':{'objectID':_0x133517[_0x13e2c2(0x219)],'unitID':_0x133517[_0x13e2c2(0x474)]}}))[_0x13e2c2(0x337)][_0x13e2c2(0x292)];}async[_0xb9a23e(0x35e)](_0x311b48){const _0x2b9e65=_0xb9a23e,_0x3bdb73=this[_0x2b9e65(0x475)]()+_0x2b9e65(0x2e9);await this[_0x2b9e65(0x346)]['put'](_0x3bdb73,{'body':_0x311b48});}},_0x2dfa89['AuthzIoHttpService']=_0x5b1b3a([_0x5213db(0x0,_0x46d633[_0xb9a23e(0x2a5)](_0x403cff[_0xb9a23e(0x2cb)])),_0x5213db(0x1,_0x46d633['Inject'](_0x39562f[_0xb9a23e(0x251)]))],_0x2dfa89[_0xb9a23e(0x485)]);var _0xd4cf64=Object[_0xb9a23e(0x38b)],_0x3c7ce5=Object[_0xb9a23e(0x2ed)],_0x1f3b8d=(_0x390231,_0x3cd605,_0xbb2cc8,_0x2ff038)=>{for(var _0x12caa9=_0x2ff038>0x1?void 0x0:_0x2ff038?_0x3c7ce5(_0x3cd605,_0xbb2cc8):_0x3cd605,_0x450071=_0x390231['length']-0x1,_0x4e202c;_0x450071>=0x0;_0x450071--)(_0x4e202c=_0x390231[_0x450071])&&(_0x12caa9=(_0x2ff038?_0x4e202c(_0x3cd605,_0xbb2cc8,_0x12caa9):_0x4e202c(_0x12caa9))||_0x12caa9);return _0x2ff038&&_0x12caa9&&_0xd4cf64(_0x3cd605,_0xbb2cc8,_0x12caa9),_0x12caa9;},_0x2bcf4d=(_0x1cdf00,_0x4b4362)=>(_0x4bca34,_0x427577)=>_0x4b4362(_0x4bca34,_0x427577,_0x1cdf00);const _0x3fefb3=['image/png',_0xb9a23e(0x253),_0xb9a23e(0x419),_0xb9a23e(0x462),_0xb9a23e(0x321)],_0x1890ab=0x5*0x400*0x400,_0x144b8a=_0xb9a23e(0x548),_0x2a0e6c=_0xb9a23e(0x413),_0x400474=_0xb9a23e(0x387),_0x5593f8='/universer-api/file/{fileID}/sign-url';let _0x3b7257=class{constructor(_0x171984,_0x24c873){const _0x2491bd=_0xb9a23e;_0x3e3dad(this,_0x2491bd(0x2f6),0x0),_0x3e3dad(this,'_change$',new _0x1fa2ab[(_0x2491bd(0x393))]()),_0x3e3dad(this,'change$',this[_0x2491bd(0x40e)]),_0x3e3dad(this,_0x2491bd(0x23f),new Map()),(this[_0x2491bd(0x454)]=_0x171984,this['_configService']=_0x24c873);}[_0xb9a23e(0x467)](_0x4bed5b){const _0x1aaf96=_0xb9a23e;this[_0x1aaf96(0x2f6)]=_0x4bed5b,this[_0x1aaf96(0x40e)]['next'](_0x4bed5b);}[_0xb9a23e(0x3db)](_0x27d964,_0x187380){const _0x2ae2c7=_0xb9a23e;if(_0x187380===_0x384179[_0x2ae2c7(0x463)][_0x2ae2c7(0x30a)]){const _0x4d7b25=new Image();return _0x4d7b25[_0x2ae2c7(0x214)]=_0x27d964,_0x4d7b25;}return this[_0x2ae2c7(0x23f)]['get'](_0x27d964);}[_0xb9a23e(0x2d7)](_0x38e59e,_0x3ab6fe,_0x444c67){const _0x294441=_0xb9a23e;_0x3ab6fe===_0x384179[_0x294441(0x463)][_0x294441(0x30a)]||_0x444c67==null||this[_0x294441(0x23f)]['set'](_0x38e59e,_0x444c67);}async[_0xb9a23e(0x1b8)](_0x33b15b){const _0x4412f0=_0xb9a23e;try{const _0x3f1257=this['_replaceFileID'](this[_0x4412f0(0x55c)](),''+_0x33b15b),_0xa8adc7=(await this['_httpService'][_0x4412f0(0x3a6)](_0x3f1257))[_0x4412f0(0x337)];return _0xa8adc7[_0x4412f0(0x4f3)]&&_0xa8adc7['error']['code']===_0x59b333['OK']?Promise['resolve'](_0xa8adc7[_0x4412f0(0x306)]):Promise[_0x4412f0(0x201)](_0xa8adc7['error']);}catch(_0x5b36bd){return Promise[_0x4412f0(0x201)](_0x5b36bd);}}async[_0xb9a23e(0x2d4)](_0x3610a3){const _0x29f500=_0xb9a23e;let _0x438729='';if(!_0x3fefb3[_0x29f500(0x217)](_0x3610a3[_0x29f500(0x2a3)]))return this[_0x29f500(0x524)](),Promise[_0x29f500(0x201)](new Error(_0x384179[_0x29f500(0x2ac)][_0x29f500(0x445)]));if(_0x3610a3[_0x29f500(0x512)]>_0x1890ab)return this[_0x29f500(0x524)](),Promise['reject'](new Error(_0x384179[_0x29f500(0x2ac)][_0x29f500(0x32d)]));try{const _0x2b4217=new FormData();_0x2b4217[_0x29f500(0x271)](_0x29f500(0x405),_0x3610a3);const _0x4c7f13=this['_getUploadFileURL']()+_0x29f500(0x3fd)+_0x3610a3[_0x29f500(0x512)][_0x29f500(0x238)](),_0x331f03=await(await fetch(_0x4c7f13,{'method':_0x29f500(0x1d4),'body':_0x2b4217}))[_0x29f500(0x3c9)]();if(typeof _0x331f03[_0x29f500(0x3e6)]!=_0x29f500(0x327))return this[_0x29f500(0x524)](),Promise[_0x29f500(0x201)](new Error(_0x384179['ImageUploadStatusType'][_0x29f500(0x33f)]));_0x438729=_0x331f03[_0x29f500(0x3e6)];}catch{return this[_0x29f500(0x524)](),Promise[_0x29f500(0x201)](new Error(_0x384179[_0x29f500(0x2ac)][_0x29f500(0x33f)]));}return new Promise((_0x605491,_0x545ea5)=>{const _0x4ecc13=_0x29f500,_0x51772f=new FileReader();_0x51772f[_0x4ecc13(0x229)](_0x3610a3),_0x51772f[_0x4ecc13(0x353)]=_0x3031e7=>{const _0x52f416=_0x4ecc13;var _0x11adea;const _0x25c284=(_0x11adea=_0x3031e7['target'])==null?void 0x0:_0x11adea['result'];if(_0x25c284==null){this[_0x52f416(0x524)](),_0x545ea5(new Error(_0x384179[_0x52f416(0x2ac)][_0x52f416(0x33f)]));return;}const _0x3ae8df=_0x39562f[_0x52f416(0x507)][_0x52f416(0x375)](0x6);_0x605491({'imageId':_0x3ae8df,'imageSourceType':_0x384179[_0x52f416(0x463)]['UUID'],'source':_0x438729,'base64Cache':_0x25c284,'status':_0x384179[_0x52f416(0x2ac)][_0x52f416(0x1eb)]}),this['_decreaseWaiting']();};});}[_0xb9a23e(0x1a7)](){const _0xd33a7e=_0xb9a23e;var _0x2cf77b;return(_0x2cf77b=this[_0xd33a7e(0x1ec)][_0xd33a7e(0x496)](_0x144b8a))!=null?_0x2cf77b:_0x2a0e6c;}[_0xb9a23e(0x55c)](){const _0x5724b3=_0xb9a23e;var _0x109bf4;return(_0x109bf4=this['_configService'][_0x5724b3(0x496)](_0x400474))!=null?_0x109bf4:_0x5593f8;}['_replaceFileID'](_0x54708c,_0x2a414e){return _0x54708c['replace']('{fileID}',_0x2a414e);}[_0xb9a23e(0x524)](){const _0x563b58=_0xb9a23e;this[_0x563b58(0x2f6)]-=0x1,this[_0x563b58(0x40e)][_0x563b58(0x438)](this['_waitCount']);}};_0x3b7257=_0x1f3b8d([_0x2bcf4d(0x0,_0x46d633[_0xb9a23e(0x2a5)](_0x403cff['HTTPService'])),_0x2bcf4d(0x1,_0x39562f[_0xb9a23e(0x251)])],_0x3b7257);var _0x30e400=Object['defineProperty'],_0x46d21d=Object['getOwnPropertyDescriptor'],_0x513fe0=(_0x48e185,_0x2b9ebf,_0x8caf25)=>_0x2b9ebf in _0x48e185?_0x30e400(_0x48e185,_0x2b9ebf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8caf25}):_0x48e185[_0x2b9ebf]=_0x8caf25,_0x1a994e=(_0x273d91,_0x478084,_0x464d66,_0x6f88af)=>{for(var _0x2953b1=_0x6f88af>0x1?void 0x0:_0x6f88af?_0x46d21d(_0x478084,_0x464d66):_0x478084,_0x479760=_0x273d91['length']-0x1,_0x3b080b;_0x479760>=0x0;_0x479760--)(_0x3b080b=_0x273d91[_0x479760])&&(_0x2953b1=(_0x6f88af?_0x3b080b(_0x478084,_0x464d66,_0x2953b1):_0x3b080b(_0x2953b1))||_0x2953b1);return _0x6f88af&&_0x2953b1&&_0x30e400(_0x478084,_0x464d66,_0x2953b1),_0x2953b1;},_0x5f2b07=(_0x2d2291,_0x265e9a)=>(_0x4a3ea0,_0x279625)=>_0x265e9a(_0x4a3ea0,_0x279625,_0x2d2291),_0x4d20a1=(_0x3015ea,_0x2cc457,_0x39447a)=>_0x513fe0(_0x3015ea,_0x2cc457+'',_0x39447a);const _0x5a8b74='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x2dfa89[_0xb9a23e(0x2b1)]=class extends _0x39562f[_0xb9a23e(0x357)]{constructor(_0x2e36d9,_0x772b44,_0x27c856){const _0x2f4854=_0xb9a23e;super(),this[_0x2f4854(0x4f0)]=_0x2e36d9,this[_0x2f4854(0x38c)]=_0x772b44,this[_0x2f4854(0x273)]=_0x27c856;}[_0xb9a23e(0x45a)](_0x1baebf){const _0x3f9dad=_0xb9a23e;var _0x1d2e38,_0x3ea578,_0x11b80e,_0xb597d3,_0x3c42e3;_0x1baebf['has'](_0x39562f['IUndoRedoService'])&&this['_logService'][_0x3f9dad(0x4f3)]('[UniverCollaborationClientPlugin]',_0x3f9dad(0x236));let _0x4f8497=[[_0x39562f[_0x3f9dad(0x4b1)],{'useClass':_0x161ec1}],[_0x2dfa89[_0x3f9dad(0x538)]],[_0x274314],[_0x403cff['HTTPService']],[_0x4248a5,{'useClass':_0x1af5c6}],[_0x3eae2a],[_0x2dfa89['LocalCacheService']],[_0x403cff['WebSocketService']],[_0x4aa7fa],[_0xede299],[_0x4bc2a2],[_0x1287ec],[_0x4d2aea],[_0x301d2e],[_0x3403de,{'useClass':(_0x3ea578=(_0x1d2e38=this['_config'])==null?void 0x0:_0x1d2e38[_0x3f9dad(0x402)])!=null?_0x3ea578:_0x2dfa89[_0x3f9dad(0x40f)]}],[_0x403cff[_0x3f9dad(0x1f8)],{'useClass':_0x403cff['XHRHTTPImplementation']}],[_0x39562f[_0x3f9dad(0x1a9)],{'useClass':_0x3c99f6}],[_0x39562f['IAuthzIoService'],{'useClass':_0x2dfa89[_0x3f9dad(0x485)]}],[_0x384179[_0x3f9dad(0x28c)],{'useClass':_0x3b7257}],[_0x2dfa89['CollaborationController']],[_0x2dfa89[_0x3f9dad(0x2a9)]],[_0x2dfa89[_0x3f9dad(0x466)]],[_0xe78f9f],[_0x120e16]];(_0x11b80e=this[_0x3f9dad(0x4f0)])!=null&&_0x11b80e['enableSingleActiveInstanceLock']&&_0x4f8497['push']([_0x174263,{'useClass':_0x2dc57e}]),((_0xb597d3=this['_config'])==null?void 0x0:_0xb597d3[_0x3f9dad(0x30f)])==null||this[_0x3f9dad(0x4f0)][_0x3f9dad(0x30f)]['includes'](_0x39562f[_0x3f9dad(0x1ad)][_0x3f9dad(0x40a)])?_0x4f8497[_0x3f9dad(0x509)]([_0x125bcc]):this['_config'][_0x3f9dad(0x30f)][_0x3f9dad(0x217)](_0x39562f['UniverInstanceType']['UNIVER_DOC'])&&_0x4f8497[_0x3f9dad(0x509)]([_0x4c5749]),_0x4f8497=_0x39562f[_0x3f9dad(0x3a5)](_0x4f8497,(_0x3c42e3=this[_0x3f9dad(0x4f0)])==null?void 0x0:_0x3c42e3[_0x3f9dad(0x4c7)]),_0x4f8497['forEach'](_0x5e0b43=>_0x1baebf[_0x3f9dad(0x398)](_0x5e0b43)),_0x1baebf[_0x3f9dad(0x3a6)](_0x403cff[_0x3f9dad(0x2cb)])[_0x3f9dad(0x52a)]({'priority':0x14,'interceptor':_0x403cff[_0x3f9dad(0x1ae)]({'maxParallel':0x6})}),this['_initModules']();}[_0xb9a23e(0x4be)](){const _0x3e647f=_0xb9a23e;var _0x2b8630,_0x2013e3;(_0x2b8630=this[_0x3e647f(0x4f0)])!=null&&_0x2b8630[_0x3e647f(0x506)]||this[_0x3e647f(0x273)][_0x3e647f(0x3a6)](_0x2dfa89['LocalCacheService'])['disableLocalCache'](),(_0x2013e3=this[_0x3e647f(0x4f0)])!=null&&_0x2013e3['enableAuthServer']&&this['_injector'][_0x3e647f(0x3a6)](_0x4d2aea);}},_0x4d20a1(_0x2dfa89[_0xb9a23e(0x2b1)],_0xb9a23e(0x1e6),_0x5a8b74),_0x2dfa89[_0xb9a23e(0x2b1)]=_0x1a994e([_0x39562f['DependentOn'](_0x244d6f[_0xb9a23e(0x3fe)]),_0x5f2b07(0x1,_0x39562f[_0xb9a23e(0x3d4)]),_0x5f2b07(0x2,_0x46d633[_0xb9a23e(0x2a5)](_0x46d633['Injector']))],_0x2dfa89[_0xb9a23e(0x2b1)]),_0x2dfa89[_0xb9a23e(0x258)]=_0x4d8f72,_0x2dfa89[_0xb9a23e(0x1cf)]=_0x1d614f,_0x2dfa89[_0xb9a23e(0x38d)]=_0x63fe38,_0x2dfa89[_0xb9a23e(0x555)]=_0x3cde1c,_0x2dfa89[_0xb9a23e(0x3a7)]=_0x502068,_0x2dfa89['CommentService']=_0x301d2e,_0x2dfa89[_0xb9a23e(0x491)]=_0x323501,_0x2dfa89[_0xb9a23e(0x293)]=_0x74042e,_0x2dfa89['ICollaborationSocketService']=_0x3403de,_0x2dfa89[_0xb9a23e(0x261)]=_0x4248a5,_0x2dfa89[_0xb9a23e(0x213)]=_0x339ff6,_0x2dfa89[_0xb9a23e(0x299)]=_0x156e4d,_0x2dfa89[_0xb9a23e(0x37d)]=_0x477c27,_0x2dfa89[_0xb9a23e(0x22c)]=_0x91342,_0x2dfa89[_0xb9a23e(0x406)]=_0x3e0532,_0x2dfa89[_0xb9a23e(0x505)]=_0x346ac5,_0x2dfa89[_0xb9a23e(0x1f1)]=_0x1af5c6,_0x2dfa89['deserializeToCombResponse']=_0x5ed143,_0x2dfa89['serializeCombRequest']=_0x2c67df,Object['defineProperty'](_0x2dfa89,Symbol['toStringTag'],{'value':_0xb9a23e(0x372)});}));function _0x231b(_0x55a264,_0x2a46f5){const _0x54ee95=_0x54ee();return _0x231b=function(_0x231beb,_0x328cbb){_0x231beb=_0x231beb-0x1a0;let _0x2e6473=_0x54ee95[_0x231beb];return _0x2e6473;},_0x231b(_0x55a264,_0x2a46f5);}function _0x54ee(){const _0x13675d=['eventID','_transformRemoteChangesetByIMECache','reduce','COLLAB_WEB_SOCKET_URL','_sheetSkeletonManagerService','image/jpg','_retryCount','newValue','conflict','transformChangesets','CHANGESET_REJ','getMember','/-/object/-/batch_allowed','save','liveShareOperation','session.room-full','getSheetBySheetId','_members','catch','column','send','transformSelections','addObject','syncEditingCollabCursor','post','clearInterval','_transformSelections','CollaborationEvent','compose','setCurrentUser','_assignedColors','addEventListener','Error','@wendellhu/redi','find','DeleteRangeMoveLeftCommandId','next','clear','_acknowledgedAwaitingChangeset','YUUMI_URL_COL_OUT_OF_RANGE','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','registerBeforeClose','_onUserJoin','history','UNIVER_UNKNOWN','univer-online-status','ColorKit','isTransformMutationFailure','ITransformService','ERROR_IMAGE_TYPE','forwardRef','IRemoteInstanceService','_onConnectionOpen','_onRecvEvent','currentColor','createElement','setActiveRange','@univerjs/core','_onRemoteACK','_getSheetObject','createSocket','collab-text-anchor-','jiqing500','_saveCache','_httpService','LICENSE_IMPORT_SIZE_EXCEEDED','editing\x20status\x20changed\x20to','_awaitingChangeset','[PendingState]:\x20received\x20rejection.','0\x200\x2016\x2016','onStarting','HEARTBEAT_TIMEOUT','collabCursorState$','_onCursorUpdate','object','Error\x20on\x20receiving\x20event','collabStatus.fetchMiss','transformUndoRedo','image/gif','ImageSourceType','_singleActiveUnitService','lineTo','DesktopCollaborationStatusDisplayController','setWaitCount','fillStyle','bottom','loadSheet','_fetchMissChangesets','PERMISSION_REJ','show','_cursor','RETRY_CONNECTING_MAX_COUNT','rgba(255,\x20255,\x20255,\x200.01)','interceptor','cursorInfo$','awaitingChangeset','unitID','_getAPIPrefixPath','@univerjs/rpc','@univerjs/design','onSendChangeset','_transformIMECache','code','stringify','_onRefRangeChange','getCollabEntity','_getRedoStack','height','length','onRemoteAck','_clearCollaborationTimeoutTimer','permission.title','81760Hqlztw','AuthzIoHttpService','getCoordByCell','PENDING','extend','assign','getCollabEntity$','_document','sessionStatus','LICENSE_MAX_UNITS_EXCEEDED','skeleton','none','idSuffix','HEARTBEAT_INTERVAL_KEY','BehaviorSubject','_messageService','_scheduleReconnection','SnapshotService','getConfig','fromEvent','SNAPSHOT_HAS_BEEN_REMOVED','_session','clipPath','@univerjs/docs','_onLocalMutation','_draw','_collabSessionService','UNIVER_DOC','MoveRangeCommandId','DisposableCollection','IPermissionService','workbook','_scheduleCollaborationTimeoutTimer','/rev/','onlyLocal','HELLO','propertyIsEnumerable','_collaborationPaused','RETRY_CONNECTING_INTERVAL','transformIMECache','5989812gmwUhQ','RECV','result','NEW_CHANGESETS','/new_changes','IUndoRedoService','rxjs/operators','getOwnPropertySymbols','updateMember','ICommandService','_startDocCollabCursor','_unitStatus','permissionRejEvent','_updateSubUnitFromURLParams','_toggleOnline','RegularPolygon','_clearOtherTimers','asObservable','_initModules','Disposable','urlChange$','Optional','closePath','_handleEvent','_transformUndoRedoStack','_type','pushState','override','awaiting_with_pending','/universer-api/authz','YUUMI_UNABLE_LOAD_URL','defs','ThemeService','_onUserLeave','LEAVE','UniverCore','_ensureSubject','_getSnapshotAPIPrefix','_handleJoinEvent','_sendHeartbeat','/universer-api/snapshot/','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','/unit/','getMemberID','isTransformChangesetsSuccess','saveOfflineData','TOO_MANY_REQUESTS','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','createInstance','merge','objects','saveChangeset','cmd','flatMap','UniverRpc','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_themeService','cursorInfo','univer-offline','status$','WebSocketService','_transformUndoredo','JOINING','getMergeData','_initStatusListener','transformMutation','SheetSkeletonManagerService','_substituteUndoStack','_config','updateOfflineData','title','error','font','19PZhCKn','selections','MessageType','sequenceExecute','searchParams','href','listRoles','width','unit','FromArray','updateCursorEvent','restore','CollaborationController','SetSelectionsOperation','1425876tITrTv','SYNCED','SessionStatus','enableOfflineEditing','Tools','batchAllowed','push','_cursorInfo$','name','_memberService','saveSheetBlock','_updateLocalCursor','_id','_onFetchMissResult','endColumn','size','_online','makeDirty','userID','distinctUntilChanged','APPLY_NON_SEQUENTIAL_REVISION','indexOf','_onConnectionFailed','_exhaustSavingTask','fetch_missing','getCollabCursors$','getFocusedUnit','dispose','fetchThroughInterceptors','0\x200\x2017\x2016','key','PSEUDO_FETCH_MISSING_RESULT','Unknown\x20user','_decreaseWaiting','_handleLeaveEvent','UniverIcon','path','IDLE','/universer-api/comb','registerHTTPInterceptor','changesets','apply','clsx','IBeforeCloseService','_waitForHeartbeatResponse','_localeService','_event$','_ws','_name','collaMsg','close$','parseProtocolChangeset','handleIRemoveRow','CollaborationSessionService','getSheetId','purple300','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_onCombEvent','NO_OTHER_CLIENTS_EDITING','#fff','values','_createInitialState','1em','b64DecodeUnicode','pauseCollaboration','_incrementRevisionNumber','onCommentUpdate','_snapshotService','NOT_COLLAB','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','CommandType','onSyncEditingCollabCursor','\x0aCurrent:\x20','unsubscribe','1774367LLAqOL','m1Prime','_shapes','USERS_ENTER','unitId','_disableEditing','UniverCollaboration','_transformStack','CollaborationStatus','min','_localCacheService','measureText','mapDocumentTypeToUniverType','_socketMessageSubscription','collaboration.single-unit.warning','_getSignURL','_drawAnchor','_disabled','entries','forEach','_retryConnectingTimer','removeMember','_updateLocalCache','debug','_startSheetCollabCursor','NOT_FOUND','verdancy600','getActiveSheet','_updateStatus','all','handleDeleteRangeMoveUp','arc','setParam','...','\x20in\x20_schedule.','_getUploadFileURL','_textBubble','ISnapshotServerService','UNAUTHENTICATED','/-/object/list','_clearRedo','UniverInstanceType','ThresholdInterceptorFactory','APPLY_REJECT','FETCH_MISSING','@univerjs/sheets','InsertRangeMoveDownCommandId','isArray','has','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','IUIPartsService','getUnitOnRev','getImage','params','black','mutations','ws://127.0.0.1:8000/universer-api/comb/connect','csAckEvent','RemoveRowCommandId','_unitId','_compressMutationService','isActive','_transformPreviousActiveRange','_onJoinRoomEvent','getValue','_unitID','LIVESHARE_NEW_HOST','JSONX','docStateChange$','IMessageService','defIds','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','permission.content','_urlService','IMEInputManagerService','COLLAB_SUBMIT_CHANGESET_URL_KEY','_getMergeRange','div','INGEST','_commentService','POST','_handleHeartbeatEvent','color','onPointerMove$','ACTIVE_UNIT_EVENT_CHANNEL','COMPRESS_MUTATION_APPLY','CollaborationSession','Ready','range','createIdentifier','toggleOnline','_renderManagerService','_transformService','deleteCollaborator','textRanges','getTypeOfUnitAdded$','_pendingMutations','_substituteRedoStack','pluginName','_state$','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_redoStacks','liveShareNewHost','SUCCUSS','_configService','encode','concat','@univerjs/drawing','filter','WebURLService','doc.mutation.rich-text-editing','LICENSE_EXPORT_SIZE_EXCEEDED','commentUpdate$','VIEWPORT_KEY','getSheetBlock','top','IHTTPImplementation','Warning','red300','_snapshotServerService','exports','then','blue400','FAIL','labelPosition','reject','_scene','dispose$','[CollaborationUndoRedoService]','children','getSelections','@wendellhu/redi/react-bindings','univer-online-status-title','rxjs','onRemoteRej','/object/','_transitionLocked','getRelativeCoord','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','UPDATE_CURSOR','COMMENT_UPDATE','_uiPartsService','socket\x20close','LOCAL_CACHE_INTERVAL_KEY','src','Injector','RemoveColCommandId','includes','createCollaborator','objectID','OnLineSingle','resend','loadOfflineData','_entities','INVALID_ARGUMENT','_colorIndex','_hover','_socketService','_selfUnitIDs','onCommandExecuted','_http','from','connectInjector','function','FETCH_MISS','readAsDataURL','unshift','csRejEvent','SNAPSHOT_SERVER_URL_KEY','_sessions','icon','_onCursorDelete','collabStatus.synced','mapTo','operators','replaceTextRanges','_getCtorByUniverType','_createHandler','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','/block/','toString','focused$','_docTransformSelectionsService','uni.network.url-service','_socket','getAncestorScale','status','_imageSourceCache','_remoteChangesetQueue','_getDocObject','drawWith','currentSkeleton$','_updateCollabCursors','RefRangeService','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','ALREADY_EXISTS','[CollaborationSessionService]','Rectangle','pipe','_clearLocalCache','fillText','[PendingState]:\x20received\x20acknowledgement.','_syncEditingCollabCursor','_joinRoom','ranges','IConfigService','getColor','image/jpeg','SUBMIT_CHANGESET','snapshot','parse','TEXT_RANGE_LAYER_INDEX','AUTHZ_URL_KEY','getCurrentRevForDocument','selection','_colorAssignService','synced','_scheduleHeartbeat','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','svg','setShapeProps','IURLService','univer-online','_sendHeartbeatTimer','[OfflineState]:\x20received\x20changeset.','_anchorDot','_clearScheduledTask','clearTimeout','take','colorChannel1','sheets','/resources','[FetchMissState]','_getUndoStack','substring','_handler','[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.','append','parseChangesetToProtocol','_injector','_schedule','_state','originalMeta','getUnhiddenWorksheets','roomMembers','UNIVER_SLIDE','subscribeEvent','@univerjs-pro/collaboration','fill','displayName','baseRev','SetWorksheetActivateCommand','objectActions','use','subscribe','@univerjs/engine-formula','[CollaborationSession]','[OfflineState]:\x20received\x20rejection.','UniverNetwork','_clearUndo','isPermissionRej','runRefRangeMutations','disposeWithMe','_getLoginPath','IImageIoService','subunit','_entityInit$','_saveTaskMap','onPointerLeave$','fetchMissingChangesets','collaborators','HEARTBEAT_TIMEOUT_KEY','_labelPosition','JOIN','toggleOffline','COLORS','RxDisposable','LOGIN_URL_KEY','slice','serializeTextRange','call','UNDEFINED','_socket$','_onRemoteChangeset','unload','OffLineSingle','getRoom','type','_send','Inject','@univerjs/engine-render','removeParam','_submitChangeset','DataLoaderController','/role','LICENSE_DISTRO_REJECTED','ImageUploadStatusType','pending','off-line-single_clip0_910_343','fromCollab','HEARTBEAT','UniverCollaborationClientPlugin','row','PERMISSION_DENIED','shareReplay','max','UniverSheetsUi','evenodd','appendMutation','_initStatusComponent','@univerjs/sheets-ui','DEFAULT_FILE_NAME','some','concatMap','url(#off-line-single_clip0_910_343)','event$','handleInsertRangeMoveDown','_rescheduleHeartbeatEvent','CONFLICT','getItem','/universer-api/snapshot','_socketReady','onPointerEnter$','whenReady','executeCommand','c1Prime','session','HTTPService','onlineStatusIcon','univerjs-icon\x20univerjs-icon-','_unlockTransition','currentTheme$','getRenderById','COMPRESS_MUTATION_SEND','getCurrent','switchMap','saveImage','error$','IUniverInstanceService','addImageSourceCache','InsertRowCommandId','deepClone','_cursors','_getAnchorBounding','_refRangeService','unit-cache-','serializeRangeWithSheet','_showConflictNotification','onMouseMove','_removeCollabCursors','session.collaboration-timeout','onMissingChangesets','RevisionService','_startCollaboration','CHANGESET_ACK','_render','online','/collaborator','@univerjs/ui','transformRemoteChangeset','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','getOwnPropertyDescriptor','AWAITING','&to=','_collaborationTimeoutTimer','_clearHeartbeatTimer','joinRsp','_permissionService','getOffsetConfig','objectType','_waitCount','_getSendChangesetTimeout','@univerjs/network','round','_onMessage','transformStack\x20failed!','findNodePositionByCharIndex','getInterceptPoints','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_syncEditingCollabCursorService','_hideTimer','_collaborationController','location','LocaleService','listCollaborators','textEncoder','url','takeUntil','_executeRemoteChangeset','_docStateChangeManagerService','BASE64','getCellPositionByOffset','collab-text-range-','_sheetTransformSelectionsService','attrs','collaborationUniverTypes','collabStatus.notCollab','_docSkeletonManagerService','className','message$','transformMutationsWithChangeset','_notificationService','_onConflict','getTime','disableLocalCache','delete','_queuedRemoteChangesets','LIVESHARE_FETCH_OPERATIONS','UniverDesign','Starting','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_setupSubUnitSync','_hovered','image/bmp','30591126PcGhqb','10poSuEr','init','onRemoteChangeset','complete','string','_univerInstanceService','_scheduleTimestamp','/fetchmissing?from=','_scheduleClearOtherTimer','_sessionStatus$','ERROR_EXCEED_SIZE','_timeoutTimer','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','ONLINE','updatePermissionPoint','registerRefRange','failed\x20to\x20apply\x20missed\x20changesets!','debounceTime','onTransformSelections','DocStateChangeManagerService','body','RichTextEditingMutation','_beforeCloseService','NodePositionConvertToCursor','_eventUnsubscribe','update','_collabCursorController','getCurrentUnitForType','ERROR_IMAGE','connection\x20error','getParam','sheetID','offline','enableLocalCache','USERS_LEAVE','_HTTPService','_checkMissing','roomMembers$','m2Prime','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','lodash/debounce','sheetId','_removeClearOtherTimer','members','6xwpbQB','_getScale','handleInsertCol','onTransformIME','onload','OFFLINE','CompressMutationService','combineLatest','Plugin','startColumn','hovered','_userManagerService','joinEvent','sessionStatus$','_createSocket','putCollaborators','replaceState','_lockTransition','gold400','_onRemoteRejected','_isPermissionRej','react','revision','InsertColCommandId','_collabCursorState$','INTERNAL_ERROR','_removeRoom','roomInfos','getUnitStatus$','SNAPSHOT_INVALID_SNAPSHOT','_tryEnsureSocket','_color','_lastPointer','[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.','on-line-single_clip0_910_349','Module','OTHER_CLIENTS_EDITING','addObjects','generateRandomId','SelectionManagerService','UniverUi','[CollaborationEntity]','_setupBeforeClosingHandler','localeService','LIVESHARE_TERMINATE','getUnitId','SEND_CHANGESET_TIMEOUT_KEY','getTypeOfUnitDisposed$','text','xlink:href','isEditing','memberID','EffectRefRangId','_commandService','list','_clearTimeoutTimer','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_range','collaboration-client.offline-data-not-saved','LocalCacheService','defineProperty','_logService','COLLAB_WEB_SOCKET_URL_KEY','assignAColorForMemberID','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','setTimeout','/allowed','state$','Subject','editingUnit','getSheetObject','_docSyncEditingCollabCursorService','routeKey','add','[OfflineState]:\x20received\x20acknowledgement.','CHANGESET_REVISION_CONFILICT','WorkbookEditablePermission','isTransformMutationsWithChangesetSuccess','6596790cCBCQx','[DataLoaderController]','tag','univer-pro.collaboration-client-socket-service','UNRECOGNIZED','with','disposeUnit','encodeURIComponent','mergeOverrideWithDependencies','get','CollaborationStatusDisplay','AWAITING_WITH_PENDING','_getCurrentRevision','UniverCollaborationClient','UNKNOWN_CMD','collaboratorID','\x20to\x20','onlineStatus','c2Prime','trim','set','LOCAL_CACHE_INTERVAL','updateCollaborator','_unitOnClients','_cachedData','_getSaveTimeout','reverse','close','deserializeRangeWithSheet','LIVESHARE_OPERATION','getViewModel','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_updateState','handleDeleteRangeMoveLeft','prototype','_status$','getUndoRedoMutationParamsCache','loadDoc','CONNECTOR_DATA_TOO_LARGE','session.connection-failed','TextSelectionManagerService','unknown','_anchor','off-line-single','json','_scheduleSaving','_toggleOffline','IRenderManagerService','_roomMembers','Rect','LocalUndoRedoService','debounce','[CollaborationState]:\x20apply\x20error!','_localStorageService','requireSession','ILogService','_loadSheet','setItem','Shape','state','[CollaborationSessionService]:\x20socket\x20error','_loadDoc','getImageSourceCache','Vector2','_commentUpdate$','fillRule','data','getUnitType','transform','toDisposable','map','_sendingTimer','saveSnapshot','FileId','_init','create','COMPLETION_FINISHED','[SyncedState]:\x20received\x20rejection.','handleInsertRow','onMissedChangesetFetched','setInterval','_revisionService','not_collab','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','hasOwnProperty','url(#$1','moveTo','_getAPIPrefix','getCurrentUser','Steady','univer-online-status-icon','UserManagerService','useRef','LIVESHARE_REQUEST_HOST','actions','split','?size=','UniverCollaborationPlugin','allowed','_heartbeatTimer','_updateURLWithCurrentState','socketService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_docTransformIMECacheService','file','SNAPSHOT_URL_KEY','LifecycleStages','_roomMembers$','750112iRRbBH','UNIVER_SHEET','UNKNOWN_CODE','OnLifecycle','_undoRedoService','_change$','CollaborationSocketService','_applyRemoteChangeset','isTransformMutationsWithChangesetFailure','awaiting','/universer-api/stream/file/upload'];_0x54ee=function(){return _0x13675d;};return _0x54ee();}
|