@univerjs-pro/collaboration-client 0.2.1 → 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/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x225295,_0x500885){const _0x57c8d6=_0x54b9,_0x3af48c=_0x225295();while(!![]){try{const _0x22eccb=parseInt(_0x57c8d6(0x197))/0x1+parseInt(_0x57c8d6(0x22c))/0x2+-parseInt(_0x57c8d6(0x2b2))/0x3*(-parseInt(_0x57c8d6(0x263))/0x4)+-parseInt(_0x57c8d6(0x3f5))/0x5+-parseInt(_0x57c8d6(0x150))/0x6*(parseInt(_0x57c8d6(0x1d6))/0x7)+-parseInt(_0x57c8d6(0x403))/0x8*(-parseInt(_0x57c8d6(0x318))/0x9)+-parseInt(_0x57c8d6(0x487))/0xa;if(_0x22eccb===_0x500885)break;else _0x3af48c['push'](_0x3af48c['shift']());}catch(_0x9e7554){_0x3af48c['push'](_0x3af48c['shift']());}}}(_0x38bd,0x97a44),function(_0x4d0568,_0x4fea5d){const _0xb7570d=_0x54b9;typeof exports==_0xb7570d(0x41c)&&typeof module<'u'?_0x4fea5d(exports,require(_0xb7570d(0x3e3)),require(_0xb7570d(0x210)),require(_0xb7570d(0x1d9)),require(_0xb7570d(0x2c8)),require(_0xb7570d(0x361)),require('@wendellhu/redi'),require(_0xb7570d(0x492)),require(_0xb7570d(0x194)),require('@univerjs/docs'),require(_0xb7570d(0x20b)),require('@univerjs/drawing'),require(_0xb7570d(0x216)),require(_0xb7570d(0x22b)),require(_0xb7570d(0x10d)),require('@univerjs/sheets-ui'),require(_0xb7570d(0x47d)),require(_0xb7570d(0x2f2)),require(_0xb7570d(0x48c)),require('@univerjs/rpc')):typeof define=='function'&&define[_0xb7570d(0x11a)]?define(['exports',_0xb7570d(0x3e3),_0xb7570d(0x210),_0xb7570d(0x1d9),_0xb7570d(0x2c8),_0xb7570d(0x361),_0xb7570d(0x2f7),_0xb7570d(0x492),_0xb7570d(0x194),'@univerjs/docs',_0xb7570d(0x20b),_0xb7570d(0x28a),_0xb7570d(0x216),_0xb7570d(0x22b),_0xb7570d(0x10d),'@univerjs/sheets-ui',_0xb7570d(0x47d),_0xb7570d(0x2f2),_0xb7570d(0x48c),_0xb7570d(0x261)],_0x4fea5d):(_0x4d0568=typeof globalThis<'u'?globalThis:_0x4d0568||self,_0x4fea5d(_0x4d0568[_0xb7570d(0x402)]={},_0x4d0568['UniverCore'],_0x4d0568[_0xb7570d(0x225)],_0x4d0568[_0xb7570d(0x332)],_0x4d0568['UniverUi'],_0x4d0568[_0xb7570d(0x15d)],_0x4d0568['@wendellhu/redi'],_0x4d0568['rxjs'],_0x4d0568[_0xb7570d(0x492)]['operators'],_0x4d0568[_0xb7570d(0xd9)],_0x4d0568[_0xb7570d(0xec)],_0x4d0568[_0xb7570d(0x1b9)],_0x4d0568['UniverEngineFormula'],_0x4d0568[_0xb7570d(0x3ed)][_0xb7570d(0x339)],_0x4d0568[_0xb7570d(0x208)],_0x4d0568[_0xb7570d(0x2b1)],_0x4d0568[_0xb7570d(0x47d)],_0x4d0568[_0xb7570d(0x12c)],_0x4d0568['clsx'],_0x4d0568[_0xb7570d(0x11f)]));}(this,function(_0x10dd67,_0x1c4e07,_0x58e6c7,_0xbefcc5,_0xbf76b9,_0x2d9232,_0x1bb894,_0x1d06c2,_0x48b0e4,_0x48d622,_0x111db8,_0x5a77dd,_0x45fd66,_0x177720,_0x165ead,_0xfb6208,_0x28ae2d,_0x22f151,_0x16db60,_0x5e1dc8){'use strict';const _0x287b51=_0x54b9;var _0x42f4d1=Object[_0x287b51(0x2aa)],_0x4787c4=(_0x54d7c6,_0x3583e9,_0x1580c6)=>_0x3583e9 in _0x54d7c6?_0x42f4d1(_0x54d7c6,_0x3583e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1580c6}):_0x54d7c6[_0x3583e9]=_0x1580c6,_0x6a44fc=(_0x4e8100,_0x21330e,_0x2ec0de)=>_0x4787c4(_0x4e8100,typeof _0x21330e!='symbol'?_0x21330e+'':_0x21330e,_0x2ec0de);const _0x4b25d4='SNAPSHOT_SERVER_URL_KEY',_0x5455a3='/universer-api/snapshot',_0x2d74a6=_0x287b51(0x16e),_0x508e4a=_0x287b51(0xed),_0xa48080=_0x287b51(0x37c),_0x2092b7=_0x287b51(0x30e),_0x2c07e6=_0x287b51(0x1e3),_0x2f2183=_0x287b51(0x26f),_0x5186f8='RETRY_CONNECTING_INTERVAL',_0x6bbd08=_0x287b51(0x30a),_0x323ca0=_0x287b51(0x15f),_0x27f411='COLLAB_SUBMIT_CHANGESET_URL',_0x4cc003=_0x287b51(0x10b),_0x1df6aa=_0x287b51(0x1e2),_0x348bf9=_0x287b51(0x260);var _0x2eeeac=(_0x25ac19=>(_0x25ac19[_0x25ac19[_0x287b51(0x201)]=0x0]=_0x287b51(0x201),_0x25ac19[_0x25ac19['OK']=0x1]='OK',_0x25ac19[_0x25ac19[_0x287b51(0x459)]=0x2]=_0x287b51(0x459),_0x25ac19[_0x25ac19['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x25ac19[_0x25ac19[_0x287b51(0x363)]=0x4]=_0x287b51(0x363),_0x25ac19[_0x25ac19[_0x287b51(0x301)]=0x5]='UNAUTHENTICATED',_0x25ac19[_0x25ac19[_0x287b51(0x32e)]=0x6]=_0x287b51(0x32e),_0x25ac19[_0x25ac19[_0x287b51(0x369)]=0x7]=_0x287b51(0x369),_0x25ac19[_0x25ac19[_0x287b51(0x273)]=0x8]=_0x287b51(0x273),_0x25ac19[_0x25ac19[_0x287b51(0x2bf)]=0x9]='COMPLETION_FINISHED',_0x25ac19[_0x25ac19[_0x287b51(0x17c)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x25ac19[_0x25ac19[_0x287b51(0x294)]=0x1771]=_0x287b51(0x294),_0x25ac19[_0x25ac19[_0x287b51(0x3f6)]=0x1772]=_0x287b51(0x3f6),_0x25ac19[_0x25ac19['APPLY_REJECT']=0x1b59]=_0x287b51(0x314),_0x25ac19[_0x25ac19['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x287b51(0x359),_0x25ac19[_0x25ac19[_0x287b51(0x3a2)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x25ac19[_0x25ac19[_0x287b51(0x193)]=0x1b5c]=_0x287b51(0x193),_0x25ac19[_0x25ac19[_0x287b51(0x1d5)]=0x1f41]=_0x287b51(0x1d5),_0x25ac19[_0x25ac19['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x287b51(0x18a),_0x25ac19[_0x25ac19[_0x287b51(0x1fd)]=0x232a]=_0x287b51(0x1fd),_0x25ac19[_0x25ac19[_0x287b51(0x3a6)]=0x232b]=_0x287b51(0x3a6),_0x25ac19[_0x25ac19[_0x287b51(0x407)]=0x232c]=_0x287b51(0x407),_0x25ac19[_0x25ac19['LICENSE_DISTRO_REJECTED']=0x232d]=_0x287b51(0x1bd),_0x25ac19[_0x25ac19[_0x287b51(0x3b2)]=0x2711]=_0x287b51(0x3b2),_0x25ac19[_0x25ac19[_0x287b51(0x250)]=0x2712]=_0x287b51(0x250),_0x25ac19[_0x25ac19[_0x287b51(0x422)]=-0x1]=_0x287b51(0x422),_0x25ac19))(_0x2eeeac||{}),_0x55b3bc=(_0x530c63=>(_0x530c63[_0x530c63[_0x287b51(0x1b4)]=0x0]=_0x287b51(0x1b4),_0x530c63[_0x530c63[_0x287b51(0x104)]=0x1]=_0x287b51(0x104),_0x530c63[_0x530c63[_0x287b51(0x373)]=0x2]=_0x287b51(0x373),_0x530c63[_0x530c63['UNIVER_SLIDE']=0x3]=_0x287b51(0x25c),_0x530c63[_0x530c63[_0x287b51(0x422)]=-0x1]=_0x287b51(0x422),_0x530c63))(_0x55b3bc||{}),_0x261077=(_0x161fe1=>(_0x161fe1[_0x161fe1['UNKNOWN_CMD']=0x0]=_0x287b51(0x1e6),_0x161fe1[_0x161fe1['HELLO']=0x1]=_0x287b51(0x226),_0x161fe1[_0x161fe1[_0x287b51(0x448)]=0x2]=_0x287b51(0x448),_0x161fe1[_0x161fe1[_0x287b51(0x13f)]=0x3]=_0x287b51(0x13f),_0x161fe1[_0x161fe1['INGEST']=0x4]=_0x287b51(0x324),_0x161fe1[_0x161fe1[_0x287b51(0x29f)]=0x5]=_0x287b51(0x29f),_0x161fe1[_0x161fe1[_0x287b51(0x39f)]=0x6]=_0x287b51(0x39f),_0x161fe1[_0x161fe1['UNRECOGNIZED']=-0x1]=_0x287b51(0x422),_0x161fe1))(_0x261077||{}),_0x8c60b5=(_0x2ea262=>(_0x2ea262[_0x2ea262[_0x287b51(0x342)]=0x0]=_0x287b51(0x342),_0x2ea262[_0x2ea262['OK']=0x1]='OK',_0x2ea262[_0x2ea262[_0x287b51(0x1de)]=0x2]='FAIL',_0x2ea262[_0x2ea262['UNRECOGNIZED']=-0x1]=_0x287b51(0x422),_0x2ea262))(_0x8c60b5||{}),_0x3a6067=Object[_0x287b51(0x2aa)],_0x4ec0d5=Object[_0x287b51(0x38a)],_0x3ae7c8=(_0x1858d1,_0xbe0689,_0x2b2d80,_0x16dec5)=>{const _0x19f4b6=_0x287b51;for(var _0x17024c=_0x16dec5>0x1?void 0x0:_0x16dec5?_0x4ec0d5(_0xbe0689,_0x2b2d80):_0xbe0689,_0x554338=_0x1858d1[_0x19f4b6(0x28c)]-0x1,_0x37a9e3;_0x554338>=0x0;_0x554338--)(_0x37a9e3=_0x1858d1[_0x554338])&&(_0x17024c=(_0x16dec5?_0x37a9e3(_0xbe0689,_0x2b2d80,_0x17024c):_0x37a9e3(_0x17024c))||_0x17024c);return _0x16dec5&&_0x17024c&&_0x3a6067(_0xbe0689,_0x2b2d80,_0x17024c),_0x17024c;},_0x538f93=(_0x417464,_0x57a875)=>(_0x13eaca,_0x431d66)=>_0x57a875(_0x13eaca,_0x431d66,_0x417464);let _0x6d0d68=class extends _0x1c4e07[_0x287b51(0x154)]{constructor(_0x880286,_0x47ec14){const _0x49d8bd=_0x287b51;super(),_0x6a44fc(this,_0x49d8bd(0x27a),new Map()),(this['_univerInstanceService']=_0x880286,this['_userManagerService']=_0x47ec14,this[_0x49d8bd(0x346)](_0x1c4e07[_0x49d8bd(0x12a)](_0x1d06c2[_0x49d8bd(0x357)](this[_0x49d8bd(0x455)][_0x49d8bd(0x203)](_0x1c4e07['UniverInstanceType'][_0x49d8bd(0x373)])['pipe'](_0x48b0e4[_0x49d8bd(0x1b3)](_0x12a23a=>_0x12a23a['getUnitId']())),this['_univerInstanceService'][_0x49d8bd(0x203)](_0x1c4e07[_0x49d8bd(0x3f1)][_0x49d8bd(0x104)])[_0x49d8bd(0x3fc)](_0x48b0e4[_0x49d8bd(0x1b3)](_0x3f5ab3=>_0x3f5ab3[_0x49d8bd(0x305)]())),this[_0x49d8bd(0x455)][_0x49d8bd(0x203)](_0x1c4e07[_0x49d8bd(0x3f1)][_0x49d8bd(0x25c)])[_0x49d8bd(0x3fc)](_0x48b0e4[_0x49d8bd(0x1b3)](_0x3e1359=>_0x3e1359[_0x49d8bd(0x305)]())))[_0x49d8bd(0x2df)](_0x33d256=>this['_removeRoom'](_0x33d256)))));}[_0x287b51(0x40c)](_0xe69a43){const _0xba63e8=_0x287b51;this[_0xba63e8(0x2be)][_0xba63e8(0x40c)](_0xe69a43);}[_0x287b51(0x3b4)](){const _0x5bf801=_0x287b51;return this[_0x5bf801(0x2be)][_0x5bf801(0x3b4)]();}[_0x287b51(0xfc)](_0x2e66d8,_0x211fb0){const _0x13d55d=_0x287b51;let _0x2bd98c=this['_roomMembers'][_0x13d55d(0x2e7)](_0x2e66d8);_0x2bd98c||(_0x2bd98c=new _0x6917ca(),this['_roomMembers'][_0x13d55d(0x288)](_0x2e66d8,_0x2bd98c)),_0x2bd98c[_0x13d55d(0xfc)](_0x211fb0);}['removeMember'](_0x4c2c66,_0x230aac){const _0xac4b4e=_0x287b51,_0x3e989e=this[_0xac4b4e(0x27a)][_0xac4b4e(0x2e7)](_0x4c2c66);_0x3e989e&&_0x3e989e[_0xac4b4e(0x3e8)](_0x230aac);}[_0x287b51(0x183)](_0x2866b5){const _0x136fd2=_0x287b51;return this[_0x136fd2(0x27a)][_0x136fd2(0x2e7)](_0x2866b5);}[_0x287b51(0x1cb)](_0xcaf8b9,_0x3925e2){const _0x4f820e=_0x287b51,_0x3694c2=this[_0x4f820e(0x27a)][_0x4f820e(0x2e7)](_0xcaf8b9);if(_0x3694c2)return _0x3694c2['getMember'](_0x3925e2);}[_0x287b51(0x409)](_0x233a22){const _0x34f796=_0x287b51,_0x203f93=this['_roomMembers']['get'](_0x233a22);_0x203f93&&(_0x203f93[_0x34f796(0x1be)](),this['_roomMembers']['delete'](_0x233a22));}['dispose'](){const _0x445071=_0x287b51;this['_roomMembers'][_0x445071(0x3cf)](_0x57f645=>_0x57f645[_0x445071(0x1be)]()),this[_0x445071(0x27a)][_0x445071(0x366)]();}};_0x6d0d68=_0x3ae7c8([_0x538f93(0x0,_0x1c4e07[_0x287b51(0x443)]),_0x538f93(0x1,_0x1bb894[_0x287b51(0x307)](_0x1c4e07['UserManagerService']))],_0x6d0d68);class _0x6917ca extends _0x1c4e07['Disposable']{constructor(){const _0xf5393f=_0x287b51;super(...arguments),_0x6a44fc(this,_0xf5393f(0x3e4),new Map());}['dispose'](){const _0x587da0=_0x287b51;this[_0x587da0(0x3e4)][_0x587da0(0x366)]();}[_0x287b51(0xfc)](_0x20d3aa){const _0x241ec1=_0x287b51;this['_members']['set'](_0x20d3aa[_0x241ec1(0x187)],_0x20d3aa);}[_0x287b51(0x3e8)](_0x8f3080){const _0x2b1071=_0x287b51;this[_0x2b1071(0x3e4)][_0x2b1071(0x3a9)](_0x8f3080);}[_0x287b51(0x1cb)](_0x499ed7){const _0x4add11=_0x287b51;return this[_0x4add11(0x3e4)][_0x4add11(0x2e7)](_0x499ed7);}}function _0x3026e3(_0x289523){const _0x220aca=_0x287b51;var _0x36dd66,_0x1d77d8,_0x26c359,_0x3d3aa3;const _0x1daa3e=_0x289523['data'],_0x58ce1e=JSON['parse'](_0x1daa3e);switch(_0x58ce1e[_0x220aca(0x38d)]){case _0x261077['HEARTBEAT']:case _0x261077[_0x220aca(0x226)]:{const _0x41e508=_0x58ce1e['infoRsp'];return{..._0x58ce1e,'data':_0x41e508,'cmd':_0x58ce1e[_0x220aca(0x38d)]};}case _0x261077['JOIN']:{const _0xc472b6=_0x58ce1e['joinRsp'];return{..._0x58ce1e,'data':_0xc472b6,'cmd':_0x58ce1e[_0x220aca(0x38d)]};}case _0x261077[_0x220aca(0x39f)]:{const _0x5cabc4=_0x58ce1e[_0x220aca(0x424)];switch(_0x5cabc4['eventID']){case _0x2d9232['CollaborationEvent'][_0x220aca(0x2d9)]:return{..._0x58ce1e,'data':{..._0x5cabc4,'data':(_0x36dd66=_0x5cabc4[_0x220aca(0x2a5)])==null?void 0x0:_0x36dd66['cs']},'cmd':_0x58ce1e[_0x220aca(0x38d)]};case _0x2d9232['CollaborationEvent'][_0x220aca(0x1f6)]:return{..._0x58ce1e,'data':{..._0x5cabc4,'data':(_0x1d77d8=_0x5cabc4[_0x220aca(0x470)])==null?void 0x0:_0x1d77d8['cs']},'cmd':_0x58ce1e[_0x220aca(0x38d)]};case _0x2d9232[_0x220aca(0x132)][_0x220aca(0x29c)]:return{..._0x58ce1e,'data':{..._0x5cabc4,'data':(_0x26c359=_0x5cabc4['newCsEvent'])==null?void 0x0:_0x26c359['cs']},'cmd':_0x58ce1e[_0x220aca(0x38d)]};case _0x2d9232[_0x220aca(0x132)]['CHANGESET_REJ']:return{..._0x58ce1e,'data':{..._0x5cabc4,'data':(_0x3d3aa3=_0x5cabc4[_0x220aca(0x3c1)])==null?void 0x0:_0x3d3aa3['cs']},'cmd':_0x58ce1e[_0x220aca(0x38d)]};case _0x2d9232[_0x220aca(0x132)][_0x220aca(0x333)]:return{..._0x58ce1e,'data':{..._0x5cabc4,'data':_0x5cabc4['updateCursorEvent']},'cmd':_0x58ce1e[_0x220aca(0x38d)]};case _0x2d9232['CollaborationEvent']['USERS_ENTER']:return{..._0x58ce1e,'data':{..._0x5cabc4,'data':_0x5cabc4[_0x220aca(0x28f)]},'cmd':_0x58ce1e[_0x220aca(0x38d)]};case _0x2d9232['CollaborationEvent'][_0x220aca(0xe7)]:return{..._0x58ce1e,'data':{..._0x5cabc4,'data':_0x5cabc4[_0x220aca(0x1a4)]},'cmd':_0x58ce1e[_0x220aca(0x38d)]};case _0x2d9232[_0x220aca(0x132)][_0x220aca(0x452)]:return{..._0x58ce1e,'data':{..._0x5cabc4,'data':_0x5cabc4[_0x220aca(0x1f4)]},'cmd':_0x58ce1e['cmd']};case _0x2d9232[_0x220aca(0x132)][_0x220aca(0x1ea)]:case _0x2d9232[_0x220aca(0x132)][_0x220aca(0x148)]:return{..._0x58ce1e,'data':{..._0x5cabc4,'data':_0x5cabc4['liveShareOperation']},'cmd':_0x58ce1e['cmd']};case _0x2d9232[_0x220aca(0x132)]['LIVESHARE_TERMINATE']:return{..._0x58ce1e,'data':{..._0x5cabc4,'data':_0x5cabc4[_0x220aca(0x1f4)]},'cmd':_0x58ce1e['cmd']};case _0x2d9232[_0x220aca(0x132)][_0x220aca(0x139)]:return{..._0x58ce1e,'data':_0x5cabc4,'cmd':_0x58ce1e[_0x220aca(0x38d)]};case _0x2d9232['CollaborationEvent'][_0x220aca(0x22e)]:return{..._0x58ce1e,'data':{..._0x5cabc4,'data':_0x5cabc4[_0x220aca(0x3e6)]},'cmd':_0x58ce1e[_0x220aca(0x38d)]};default:return _0x58ce1e;}}default:return _0x58ce1e;}}function _0x1ce152(_0x3ab685){const _0x45f142=_0x287b51;switch(_0x3ab685[_0x45f142(0x38d)]){case _0x261077['HEARTBEAT']:case _0x261077[_0x45f142(0x226)]:return JSON[_0x45f142(0x107)]({'cmd':_0x3ab685['cmd'],'routeKey':_0x3ab685[_0x45f142(0x490)]});case _0x261077['INGEST']:{let _0x10d7ee;switch(_0x3ab685[_0x45f142(0x40f)][_0x45f142(0x123)]){case _0x2d9232[_0x45f142(0x132)]['UPDATE_CURSOR']:{_0x10d7ee={'eventID':_0x2d9232[_0x45f142(0x132)][_0x45f142(0x333)],'updateCursorEvent':_0x3ab685[_0x45f142(0x40f)]['data']};break;}case _0x2d9232[_0x45f142(0x132)][_0x45f142(0xe7)]:{_0x10d7ee={'eventID':_0x2d9232[_0x45f142(0x132)][_0x45f142(0xe7)],'leaveEvent':_0x3ab685[_0x45f142(0x40f)][_0x45f142(0x40f)]};break;}case _0x2d9232[_0x45f142(0x132)]['USERS_ENTER']:{_0x10d7ee={'eventID':_0x2d9232['CollaborationEvent'][_0x45f142(0xff)],'joinEvent':_0x3ab685['data'][_0x45f142(0x40f)]};break;}case _0x2d9232[_0x45f142(0x132)][_0x45f142(0x452)]:{_0x10d7ee={'eventID':_0x2d9232[_0x45f142(0x132)][_0x45f142(0x452)],'liveShareNewHost':_0x3ab685[_0x45f142(0x40f)][_0x45f142(0x40f)]};break;}case _0x2d9232['CollaborationEvent'][_0x45f142(0x148)]:{_0x10d7ee={'eventID':_0x2d9232[_0x45f142(0x132)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x3ab685[_0x45f142(0x40f)][_0x45f142(0x40f)]};break;}case _0x2d9232['CollaborationEvent'][_0x45f142(0x163)]:{_0x10d7ee={'eventID':_0x2d9232[_0x45f142(0x132)][_0x45f142(0x163)],'liveShareTerminate':_0x3ab685['data'][_0x45f142(0x40f)]};break;}case _0x2d9232[_0x45f142(0x132)][_0x45f142(0x20d)]:{_0x10d7ee={'eventID':_0x2d9232[_0x45f142(0x132)][_0x45f142(0x20d)],'liveShareRequestHost':_0x3ab685[_0x45f142(0x40f)]['data']};break;}case _0x2d9232[_0x45f142(0x132)][_0x45f142(0x1ea)]:{_0x10d7ee={'eventID':_0x2d9232['CollaborationEvent'][_0x45f142(0x1ea)]};break;}default:_0x10d7ee={'eventID':_0x3ab685[_0x45f142(0x40f)][_0x45f142(0x123)]};}return JSON[_0x45f142(0x107)]({'cmd':_0x3ab685[_0x45f142(0x38d)],'routeKey':_0x3ab685[_0x45f142(0x490)],'collaMsg':_0x10d7ee});}case _0x261077[_0x45f142(0x448)]:return JSON[_0x45f142(0x107)]({'cmd':_0x3ab685[_0x45f142(0x38d)],'routeKey':_0x3ab685[_0x45f142(0x490)],'joinReq':_0x3ab685[_0x45f142(0x40f)]});case _0x261077[_0x45f142(0x13f)]:return JSON['stringify']({'cmd':_0x3ab685[_0x45f142(0x38d)],'routeKey':_0x3ab685['routeKey'],'leaveReq':_0x3ab685[_0x45f142(0x40f)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var _0x4e4bf7=Object[_0x287b51(0x2aa)],_0x101ee5=Object[_0x287b51(0x38a)],_0x44c14b=(_0x3656db,_0x2f490e,_0x424b49,_0x2366ec)=>{const _0x4f627e=_0x287b51;for(var _0x4b5bf9=_0x2366ec>0x1?void 0x0:_0x2366ec?_0x101ee5(_0x2f490e,_0x424b49):_0x2f490e,_0xdfd629=_0x3656db[_0x4f627e(0x28c)]-0x1,_0x2743a4;_0xdfd629>=0x0;_0xdfd629--)(_0x2743a4=_0x3656db[_0xdfd629])&&(_0x4b5bf9=(_0x2366ec?_0x2743a4(_0x2f490e,_0x424b49,_0x4b5bf9):_0x2743a4(_0x4b5bf9))||_0x4b5bf9);return _0x2366ec&&_0x4b5bf9&&_0x4e4bf7(_0x2f490e,_0x424b49,_0x4b5bf9),_0x4b5bf9;},_0x439bd6=(_0xe9fcf2,_0x55e6df)=>(_0x3bf1a2,_0x57f1e1)=>_0x55e6df(_0x3bf1a2,_0x57f1e1,_0xe9fcf2);const _0x447af8=_0x1bb894[_0x287b51(0x253)](_0x287b51(0x278));function _0xaaa7e4(_0x41fc7f,_0x5915a1,_0x3b609a){const _0x4a7c12=_0x287b51;return _0x41fc7f+'/'+_0x5915a1+'/unit/'+_0x3b609a+_0x4a7c12(0x1af);}_0x10dd67[_0x287b51(0x2f0)]=class{constructor(_0x3d5d30,_0x218160,_0x59f641,_0x5f17db,_0x22e853){const _0x3e9db2=_0x287b51;this['_http']=_0x3d5d30,this[_0x3e9db2(0x1d2)]=_0x218160,this[_0x3e9db2(0x3ff)]=_0x59f641,this['_logService']=_0x5f17db,this[_0x3e9db2(0x106)]=_0x22e853;}[_0x287b51(0x35c)](_0x800f8d){const _0x40d84e=_0x287b51,_0x114fca=this['_ws'][_0x40d84e(0x35c)](_0x800f8d);if(!_0x114fca)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x46f68e=new _0x1c4e07[(_0x40d84e(0x432))](),_0x1fa6a1=new _0x1d06c2[(_0x40d84e(0x1b2))]();_0x46f68e[_0x40d84e(0x15a)](_0x1c4e07[_0x40d84e(0x12a)](_0x114fca[_0x40d84e(0x389)]['subscribe'](_0x3f4b52=>_0x1fa6a1[_0x40d84e(0x297)](_0x3f4b52)))),_0x46f68e[_0x40d84e(0x15a)](_0x1c4e07[_0x40d84e(0x12a)](()=>_0x1fa6a1[_0x40d84e(0x421)]()));const _0x548e04=new _0x1d06c2['Subject']();_0x46f68e['add'](_0x1c4e07[_0x40d84e(0x12a)](_0x114fca[_0x40d84e(0x1b8)][_0x40d84e(0x2df)](_0x479293=>_0x548e04[_0x40d84e(0x297)](_0x479293)))),_0x46f68e[_0x40d84e(0x15a)](_0x1c4e07[_0x40d84e(0x12a)](()=>_0x548e04[_0x40d84e(0x421)]()));const _0x2a8a53=new _0x1d06c2[(_0x40d84e(0x1b2))]();_0x46f68e[_0x40d84e(0x15a)](_0x1c4e07['toDisposable'](_0x114fca[_0x40d84e(0x1ec)][_0x40d84e(0x2df)](_0x7896fc=>{const _0x4fd411=_0x40d84e,_0x35a88a=_0x3026e3(_0x7896fc);_0x2a8a53[_0x4fd411(0x297)](_0x35a88a);}))),_0x46f68e[_0x40d84e(0x15a)](_0x1c4e07[_0x40d84e(0x12a)](()=>_0x2a8a53[_0x40d84e(0x421)]()));const _0xfd679e=()=>{const _0x5cf81a=_0x40d84e;_0x548e04[_0x5cf81a(0x297)](new Event('connection\x20error')),_0x1fa6a1[_0x5cf81a(0x297)](new CloseEvent(_0x5cf81a(0x2db))),_0x45cc9a[_0x5cf81a(0x207)]();},_0x45cc9a={'memberID':'','close$':_0x1fa6a1[_0x40d84e(0x378)](),'error$':_0x548e04[_0x40d84e(0x378)](),'open$':_0x114fca[_0x40d84e(0x3d6)],'message$':_0x2a8a53[_0x40d84e(0x378)](),'send':_0x8ba25b=>{const _0x2f3812=_0x40d84e;if(_0x8ba25b[_0x2f3812(0x38d)]===_0x261077[_0x2f3812(0x324)]){if(_0x8ba25b[_0x2f3812(0x40f)][_0x2f3812(0x123)]===_0x2d9232[_0x2f3812(0x132)]['SUBMIT_CHANGESET']){this['_submitChangeset'](_0x45cc9a,_0x8ba25b[_0x2f3812(0x40f)])[_0x2f3812(0x444)](_0x5a5f1c=>{const _0x39cd2d=_0x2f3812;this[_0x39cd2d(0x462)][_0x39cd2d(0x18c)](_0x5a5f1c),_0xfd679e();});return;}if(_0x8ba25b[_0x2f3812(0x40f)]['eventID']===_0x2d9232['CollaborationEvent'][_0x2f3812(0x192)]){const _0x5a5a9=_0x8ba25b[_0x2f3812(0x40f)];this[_0x2f3812(0x30f)](_0x5a5a9)['then'](_0x37e6ec=>{const _0xd6977a=_0x2f3812;_0x2a8a53[_0xd6977a(0x297)]({'cmd':_0x261077[_0xd6977a(0x39f)],'code':_0x8c60b5['OK'],'routeKey':_0x5a5a9[_0xd6977a(0x40f)][_0xd6977a(0x2e4)],'routeType':'','data':{'eventID':_0x2d9232['CollaborationEvent'][_0xd6977a(0x457)],'data':{'changesets':_0x37e6ec}}});})['catch'](_0x823592=>{const _0x5ac131=_0x2f3812;this[_0x5ac131(0x462)][_0x5ac131(0x18c)](_0x823592),_0xfd679e();});return;}}_0x114fca[_0x2f3812(0x272)](_0x1ce152(_0x8ba25b));},'close':()=>{const _0x550e82=_0x40d84e;_0x114fca[_0x550e82(0x207)](),_0x46f68e[_0x550e82(0x1be)]();}};return _0x45cc9a;}async['_submitChangeset'](_0x1614e4,_0x44c475){const _0x24a6b2=_0x287b51;var _0x119564;const {unitType:_0x467263,unitID:_0x2ea659,changeset:_0x592831}=_0x44c475[_0x24a6b2(0x40f)],_0x4bd7bf={'unitID':_0x2ea659,'memberID':_0x1614e4['memberID'],'type':_0x467263,'changeset':_0x2d9232[_0x24a6b2(0x44d)](_0x592831)},_0x57951b=_0xaaa7e4((_0x119564=this[_0x24a6b2(0x3ff)][_0x24a6b2(0x3e5)](_0x27f411))!=null?_0x119564:_0x4cc003,_0x467263,_0x2ea659);try{await this[_0x24a6b2(0x227)][_0x24a6b2(0x21c)](_0x57951b,{'body':_0x4bd7bf});}catch(_0x223939){throw this[_0x24a6b2(0x462)][_0x24a6b2(0x18c)]('[CollaborationSession]','submit\x20changeset\x20error!'),_0x223939;}}async['_fetchMissChangesets'](_0x88a12e){const _0x30b016=_0x287b51,{unitID:_0x11be4c,from:_0x17f187,to:_0x556903,unitType:_0x201840}=_0x88a12e[_0x30b016(0x40f)];return(await this[_0x30b016(0x106)][_0x30b016(0x2f1)]({'metadata':void 0x0},{'unitID':_0x11be4c,'type':_0x201840,'from':_0x17f187,'to':_0x556903}))[_0x30b016(0x3ce)];}},_0x10dd67[_0x287b51(0x2f0)]=_0x44c14b([_0x439bd6(0x0,_0x1bb894[_0x287b51(0x307)](_0x111db8[_0x287b51(0x41e)])),_0x439bd6(0x1,_0x1bb894['Inject'](_0x111db8[_0x287b51(0x368)])),_0x439bd6(0x2,_0x1c4e07['IConfigService']),_0x439bd6(0x3,_0x1c4e07[_0x287b51(0x2ab)]),_0x439bd6(0x4,_0x1c4e07['ISnapshotServerService'])],_0x10dd67[_0x287b51(0x2f0)]);class _0x56ad54{constructor(){const _0x1e449e=_0x287b51;_0x6a44fc(this,_0x1e449e(0x349),new _0x1d06c2['Subject']()),_0x6a44fc(this,_0x1e449e(0x215),this[_0x1e449e(0x349)][_0x1e449e(0x378)]());}[_0x287b51(0x26c)](_0x183411){const _0x291936=_0x287b51;this['_commentUpdate$'][_0x291936(0x297)](_0x183411);}}var _0x37e691=Object[_0x287b51(0x2aa)],_0x39b964=Object[_0x287b51(0x38a)],_0x34f1f6=(_0x458a83,_0x5385c0,_0x2053ee,_0x502d75)=>{const _0x3646b5=_0x287b51;for(var _0x1acdf3=_0x502d75>0x1?void 0x0:_0x502d75?_0x39b964(_0x5385c0,_0x2053ee):_0x5385c0,_0x1204c7=_0x458a83[_0x3646b5(0x28c)]-0x1,_0x4a8ff9;_0x1204c7>=0x0;_0x1204c7--)(_0x4a8ff9=_0x458a83[_0x1204c7])&&(_0x1acdf3=(_0x502d75?_0x4a8ff9(_0x5385c0,_0x2053ee,_0x1acdf3):_0x4a8ff9(_0x1acdf3))||_0x1acdf3);return _0x502d75&&_0x1acdf3&&_0x37e691(_0x5385c0,_0x2053ee,_0x1acdf3),_0x1acdf3;},_0x3feb2f=(_0x1c1345,_0x365711)=>(_0x19e1e5,_0x3f0c8c)=>_0x365711(_0x19e1e5,_0x3f0c8c,_0x1c1345),_0x423d5f=(_0x5cddb9=>(_0x5cddb9[_0x5cddb9[_0x287b51(0x1d0)]=0x0]=_0x287b51(0x1d0),_0x5cddb9[_0x5cddb9[_0x287b51(0x375)]=0x1]=_0x287b51(0x375),_0x5cddb9[_0x5cddb9[_0x287b51(0x320)]=0x2]=_0x287b51(0x320),_0x5cddb9[_0x5cddb9[_0x287b51(0x28e)]=0x3]=_0x287b51(0x28e),_0x5cddb9))(_0x423d5f||{});_0x10dd67[_0x287b51(0x4a0)]=class extends _0x1c4e07[_0x287b51(0x486)]{constructor(_0x111afc,_0x5a009d,_0x4bada3,_0xcb015f,_0x19fdfc,_0x2934d9,_0x429799,_0x3672f4,_0x5cdf33){const _0x426ffe=_0x287b51;super(),_0x6a44fc(this,'_sessionStatus$',new _0x1d06c2[(_0x426ffe(0x1d4))](0x0)),_0x6a44fc(this,_0x426ffe(0xf1),this[_0x426ffe(0xf0)]['asObservable']()),_0x6a44fc(this,_0x426ffe(0x447),new _0x1d06c2[(_0x426ffe(0x1b2))]()),_0x6a44fc(this,'event$',this[_0x426ffe(0x447)][_0x426ffe(0x378)]()),_0x6a44fc(this,_0x426ffe(0x221)),_0x6a44fc(this,_0x426ffe(0x43f)),_0x6a44fc(this,_0x426ffe(0x168)),(this[_0x426ffe(0x34f)]=_0x111afc,this[_0x426ffe(0x462)]=_0x4bada3,this[_0x426ffe(0x45e)]=_0xcb015f,this[_0x426ffe(0x283)]=_0x19fdfc,this[_0x426ffe(0x3ff)]=_0x2934d9,this['_localeService']=_0x429799,this[_0x426ffe(0x229)]=_0x3672f4,this[_0x426ffe(0x126)]=_0x5cdf33,_0x5a009d[_0x426ffe(0x3fc)](_0x48b0e4[_0x426ffe(0x271)](this[_0x426ffe(0x435)]))[_0x426ffe(0x2df)](_0x50dbd7=>{const _0x1aa69a=_0x426ffe;var _0x35e157;typeof _0x50dbd7>'u'||(this['_socket']=_0x50dbd7,_0x50dbd7?(this[_0x1aa69a(0x34b)](_0x50dbd7),this[_0x1aa69a(0x43f)]=this[_0x1aa69a(0x221)][_0x1aa69a(0x1ec)][_0x1aa69a(0x2df)](_0x25db75=>{const _0x56a924=_0x1aa69a;_0x25db75[_0x56a924(0x490)]===this[_0x56a924(0x34f)]&&this['_onCombEvent'](_0x25db75);})):(this[_0x1aa69a(0xf0)][_0x1aa69a(0x297)](0x2),(_0x35e157=this[_0x1aa69a(0x43f)])==null||_0x35e157['unsubscribe'](),this['_socketMessageSubscription']=null));}),this['disposeWithMe'](this[_0x426ffe(0x45e)][_0x426ffe(0x14f)](()=>{const _0x3ee1e9=_0x426ffe;var _0x5ca98d;(_0x5ca98d=this[_0x3ee1e9(0x221)])==null||_0x5ca98d[_0x3ee1e9(0x272)]({'cmd':_0x261077[_0x3ee1e9(0x13f)],'data':{'roomID':this['_unitID']}});})));}get[_0x287b51(0x3ae)](){const _0x8bef1f=_0x287b51;return this['_sessionStatus$'][_0x8bef1f(0x247)]();}[_0x287b51(0x27d)](){const _0x1ec6c9=_0x287b51;var _0x46ff97,_0x2742da;return(_0x2742da=(_0x46ff97=this[_0x1ec6c9(0x221)])==null?void 0x0:_0x46ff97['memberID'])!=null?_0x2742da:null;}[_0x287b51(0x1be)](){const _0xf2049c=_0x287b51;super[_0xf2049c(0x1be)](),this[_0xf2049c(0x435)][_0xf2049c(0x297)](),this[_0xf2049c(0x435)][_0xf2049c(0x421)]();}[_0x287b51(0x108)](_0x31c07d){const _0x6b9c8d=_0x287b51;_0x31c07d[_0x6b9c8d(0x38d)]===_0x261077[_0x6b9c8d(0x448)]?this['_onJoinRoomEvent'](_0x31c07d):_0x31c07d['cmd']===_0x261077[_0x6b9c8d(0x39f)]&&this['_onRecvEvent'](_0x31c07d);}['_joinRoom'](_0x1e5caf){const _0x399eb5=_0x287b51;this['_sessionStatus$'][_0x399eb5(0x297)](0x1),_0x1e5caf[_0x399eb5(0x272)]({'cmd':_0x261077[_0x399eb5(0x448)],'routeKey':this[_0x399eb5(0x34f)],'routeType':'','data':{'rooms':[{'roomID':this[_0x399eb5(0x34f)]}]}});}[_0x287b51(0x412)](_0x2b42d3){const _0x5bf43f=_0x287b51;var _0x475021;if(_0x2b42d3['code']===_0x8c60b5[_0x5bf43f(0x1de)]){this['_messageService'][_0x5bf43f(0x143)]({'type':_0xbefcc5[_0x5bf43f(0x474)][_0x5bf43f(0x431)],'content':this[_0x5bf43f(0x223)]['t']('session.room-full')}),this['_sessionStatus$'][_0x5bf43f(0x297)](0x2);return;}this[_0x5bf43f(0xf0)]['next'](0x3);const _0x194129=(_0x475021=_0x2b42d3[_0x5bf43f(0x40f)][_0x5bf43f(0xde)][this['_unitID']])==null?void 0x0:_0x475021[_0x5bf43f(0x213)];_0x194129&&_0x194129[_0x5bf43f(0x3cf)](_0x7582d3=>this[_0x5bf43f(0x229)][_0x5bf43f(0xfc)](this[_0x5bf43f(0x34f)],_0x7582d3));}[_0x287b51(0x40b)](_0x3a985e){const _0x16ab1f=_0x287b51;try{const _0x30e12c=_0x3a985e[_0x16ab1f(0x40f)];switch(_0x30e12c['eventID']){case _0x2d9232[_0x16ab1f(0x132)][_0x16ab1f(0xff)]:this[_0x16ab1f(0x206)](_0x30e12c),this[_0x16ab1f(0x447)][_0x16ab1f(0x297)](_0x30e12c);break;case _0x2d9232[_0x16ab1f(0x132)][_0x16ab1f(0xe7)]:this[_0x16ab1f(0x39e)](_0x30e12c),this[_0x16ab1f(0x447)][_0x16ab1f(0x297)](_0x30e12c);break;case _0x2d9232[_0x16ab1f(0x132)][_0x16ab1f(0x1f6)]:this['_clearCollaborationTimeoutTimer'](),this[_0x16ab1f(0x447)][_0x16ab1f(0x297)](_0x30e12c);break;case _0x2d9232[_0x16ab1f(0x132)][_0x16ab1f(0x139)]:this[_0x16ab1f(0x462)][_0x16ab1f(0x18c)](_0x16ab1f(0x1a8)+JSON[_0x16ab1f(0x107)](_0x30e12c)),this[_0x16ab1f(0x447)][_0x16ab1f(0x297)](_0x30e12c);break;case _0x2d9232['CollaborationEvent']['COMMENT_UPDATE']:this[_0x16ab1f(0x126)][_0x16ab1f(0x26c)](_0x30e12c[_0x16ab1f(0x40f)]),this[_0x16ab1f(0x447)][_0x16ab1f(0x297)](_0x30e12c);break;default:this[_0x16ab1f(0x447)][_0x16ab1f(0x297)](_0x30e12c);}}catch(_0x353e40){this[_0x16ab1f(0x462)][_0x16ab1f(0x18c)](_0x353e40,_0x3a985e);}}['_onUserJoin'](_0xeb1357){const _0x323b7e=_0x287b51;this['_memberService'][_0x323b7e(0xfc)](this[_0x323b7e(0x34f)],_0xeb1357[_0x323b7e(0x40f)]);}[_0x287b51(0x39e)](_0x309592){const _0x2eb47e=_0x287b51;this['_memberService'][_0x2eb47e(0x3e8)](this[_0x2eb47e(0x34f)],_0x309592[_0x2eb47e(0x40f)][_0x2eb47e(0x187)]);}async[_0x287b51(0x272)](_0xe9d95,_0x47474e){const _0x4c616e=_0x287b51;if(this['sessionStatus']!==0x3||!this[_0x4c616e(0x221)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0xe9d95[_0x4c616e(0x123)]===_0x2d9232[_0x4c616e(0x132)][_0x4c616e(0x29c)]&&this[_0x4c616e(0x144)](),this[_0x4c616e(0x221)][_0x4c616e(0x272)]({'cmd':_0x261077[_0x4c616e(0x324)],'routeKey':_0x47474e,'routeType':'','data':_0xe9d95});}catch(_0x14d789){this[_0x4c616e(0x462)]['error'](_0x14d789);}}[_0x287b51(0x144)](){const _0x596d31=_0x287b51;var _0xedfcc9;this['_collaborationTimeoutTimer']=window[_0x596d31(0x234)](()=>{const _0x322676=_0x596d31;this['_collaborationTimeoutTimer']=null,this['_messageService'][_0x322676(0x143)]({'type':_0xbefcc5[_0x322676(0x474)][_0x322676(0x149)],'content':this[_0x322676(0x223)]['t'](_0x322676(0xdc))});},(_0xedfcc9=this[_0x596d31(0x3ff)][_0x596d31(0x3e5)](_0x2f2183))!=null?_0xedfcc9:0x2710);}[_0x287b51(0x49a)](){const _0xf4d485=_0x287b51;this[_0xf4d485(0x168)]&&(clearTimeout(this[_0xf4d485(0x168)]),this[_0xf4d485(0x168)]=null);}},_0x10dd67[_0x287b51(0x4a0)]=_0x34f1f6([_0x3feb2f(0x2,_0x1c4e07[_0x287b51(0x2ab)]),_0x3feb2f(0x3,_0xbf76b9[_0x287b51(0x10f)]),_0x3feb2f(0x4,_0xbf76b9[_0x287b51(0x317)]),_0x3feb2f(0x5,_0x1c4e07[_0x287b51(0x322)]),_0x3feb2f(0x6,_0x1bb894[_0x287b51(0x307)](_0x1c4e07[_0x287b51(0x427)])),_0x3feb2f(0x7,_0x1bb894['Inject'](_0x6d0d68)),_0x3feb2f(0x8,_0x1bb894['Inject'](_0x56ad54))],_0x10dd67[_0x287b51(0x4a0)]),_0x10dd67['CollaborationSessionService']=class extends _0x1c4e07[_0x287b51(0x154)]{constructor(_0x813be2,_0xc32849,_0x27f66a,_0x32f052,_0x5f1315,_0x5c0422){const _0x15814a=_0x287b51;super(),_0x6a44fc(this,_0x15814a(0x397),new _0x1d06c2[(_0x15814a(0x1d4))](void 0x0)),_0x6a44fc(this,'_sessions',new Map()),_0x6a44fc(this,_0x15814a(0x491),new _0x1d06c2[(_0x15814a(0x1d4))](0x0)),_0x6a44fc(this,_0x15814a(0x20a),this[_0x15814a(0x491)][_0x15814a(0x378)]()),_0x6a44fc(this,_0x15814a(0x372),!0x1),_0x6a44fc(this,_0x15814a(0x245)),_0x6a44fc(this,_0x15814a(0x36a)),_0x6a44fc(this,_0x15814a(0x2ce)),_0x6a44fc(this,'_retryCount',0x0),(this[_0x15814a(0x1e4)]=_0x813be2,this['_localeService']=_0xc32849,this[_0x15814a(0x283)]=_0x27f66a,this['_logService']=_0x32f052,this[_0x15814a(0x3ff)]=_0x5f1315,this[_0x15814a(0x3fe)]=_0x5c0422);}get[_0x287b51(0x221)](){const _0x456909=_0x287b51;return this[_0x456909(0x397)][_0x456909(0x247)]();}['dispose'](){const _0x3f1900=_0x287b51;super[_0x3f1900(0x1be)](),this['_sessions'][_0x3f1900(0x3cf)](_0x57ffb0=>_0x57ffb0[_0x3f1900(0x1be)]()),this[_0x3f1900(0x414)][_0x3f1900(0x366)](),this[_0x3f1900(0x491)]['complete']();}async[_0x287b51(0x1cf)](_0x4ffd22){const _0x481ff8=_0x287b51;if(this[_0x481ff8(0x414)][_0x481ff8(0x497)](_0x4ffd22))return this[_0x481ff8(0x414)][_0x481ff8(0x2e7)](_0x4ffd22);this[_0x481ff8(0x29d)]();const _0x4c672b=this[_0x481ff8(0x1e4)][_0x481ff8(0x31e)](_0x10dd67['CollaborationSession'],_0x4ffd22,this[_0x481ff8(0x397)][_0x481ff8(0x378)]());return this['_sessions']['set'](_0x4ffd22,_0x4c672b),_0x4c672b;}['_createSocket'](){const _0x34d127=_0x287b51;var _0x532fee;const _0x125d20=(_0x532fee=this[_0x34d127(0x3ff)][_0x34d127(0x3e5)](_0xa48080))!=null?_0x532fee:_0x2092b7;return this['_socketService'][_0x34d127(0x35c)](_0x125d20);}[_0x287b51(0x29d)](){const _0x277639=_0x287b51;try{const _0x2f586c=this[_0x277639(0x1c5)]();if(_0x2f586c){const _0x50391a=_0x2f586c[_0x277639(0x272)];_0x2f586c[_0x277639(0x272)]=_0x4308da=>(this[_0x277639(0x2fa)](),_0x50391a[_0x277639(0xf2)](_0x2f586c,[_0x4308da])),_0x2f586c[_0x277639(0x1ec)][_0x277639(0x2df)](_0xb72179=>this[_0x277639(0x377)](_0x2f586c,_0xb72179)),_0x2f586c['error$']['pipe'](_0x48b0e4[_0x277639(0x312)](0x1))[_0x277639(0x2df)](_0x20b7b9=>this[_0x277639(0x462)][_0x277639(0x18c)](_0x277639(0x14c),_0x20b7b9)),_0x2f586c[_0x277639(0x3d6)]['pipe'](_0x48b0e4[_0x277639(0x312)](0x1))[_0x277639(0x2df)](()=>{this['_onConnectionOpen'](_0x2f586c);}),_0x2f586c['close$']['pipe'](_0x48b0e4[_0x277639(0x312)](0x1))['subscribe'](_0x5ce118=>{const _0x76cff3=_0x277639;this[_0x76cff3(0x462)][_0x76cff3(0x337)]('[CollaborationSessionService]',_0x76cff3(0x3fb),_0x5ce118),this[_0x76cff3(0x3b9)]();});}}catch(_0x254d77){this[_0x277639(0x462)][_0x277639(0x18c)](_0x254d77),this[_0x277639(0x3b9)]();}}[_0x287b51(0x184)](_0x462d85){const _0x395f53=_0x287b51;this['_logService']['debug']('[CollaborationSessionService]',_0x395f53(0x14e)),_0x462d85[_0x395f53(0x272)]({'cmd':_0x261077[_0x395f53(0x226)]}),this['_rescheduleHeartbeatEvent']();}[_0x287b51(0x3b9)](){const _0x30d63d=_0x287b51;var _0x585804;this[_0x30d63d(0x491)][_0x30d63d(0x297)](0x2),this['_socket$'][_0x30d63d(0x297)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer'](),this[_0x30d63d(0x372)]=!0x1,this['_retryCount']<((_0x585804=this[_0x30d63d(0x3ff)][_0x30d63d(0x3e5)](_0x6bbd08))!=null?_0x585804:0x3)?(this[_0x30d63d(0x2cf)](this[_0x30d63d(0x152)]),this[_0x30d63d(0x152)]+=0x1):this['_messageService'][_0x30d63d(0x143)]({'type':_0xbefcc5[_0x30d63d(0x474)][_0x30d63d(0x149)],'content':this[_0x30d63d(0x223)]['t']('session.connection-failed')});}[_0x287b51(0x2cf)](_0x1b0f93){const _0x1261d8=_0x287b51;var _0x5f4739;const _0x14f628=((_0x5f4739=this['_configService'][_0x1261d8(0x3e5)](_0x5186f8))!=null?_0x5f4739:0x4e20)*0x2**_0x1b0f93;this[_0x1261d8(0x283)][_0x1261d8(0x143)]({'type':_0xbefcc5[_0x1261d8(0x474)][_0x1261d8(0x431)],'content':this[_0x1261d8(0x223)]['t'](_0x1261d8(0x31a))}),this['_retryConnectingTimer']=setTimeout(()=>{const _0x56ef0b=_0x1261d8;this[_0x56ef0b(0x29d)](),clearTimeout(this[_0x56ef0b(0x2ce)]),this[_0x56ef0b(0x2ce)]=null;},_0x14f628);}[_0x287b51(0x2fa)](){const _0x5c8296=_0x287b51;var _0x3aa244;this['_clearHeartbeatTimer'](),this[_0x5c8296(0x245)]=setTimeout(()=>this[_0x5c8296(0x2a0)](),(_0x3aa244=this['_configService'][_0x5c8296(0x3e5)](_0x2c07e6))!=null?_0x3aa244:0x7530);}[_0x287b51(0x2a0)](){const _0x373a16=_0x287b51;this[_0x373a16(0x221)][_0x373a16(0x272)]({'cmd':_0x261077['HEARTBEAT']}),this[_0x373a16(0x14d)]();}[_0x287b51(0x14d)](){const _0xf16e1=_0x287b51;var _0x579967;this[_0xf16e1(0x36a)]=setTimeout(()=>this[_0xf16e1(0x3b9)](),(_0x579967=this[_0xf16e1(0x3ff)][_0xf16e1(0x3e5)](_0x2f2183))!=null?_0x579967:0x2710);}[_0x287b51(0x377)](_0x24856f,_0x556574){const _0x40f463=_0x287b51,{cmd:_0x7ba1da}=_0x556574;_0x7ba1da===_0x261077['HELLO']&&!this[_0x40f463(0x372)]&&(_0x24856f[_0x40f463(0x187)]=_0x556574[_0x40f463(0x40f)][_0x40f463(0x187)],this[_0x40f463(0x397)]['next'](_0x24856f),this[_0x40f463(0x491)][_0x40f463(0x297)](0x3),this[_0x40f463(0x372)]=!0x0),_0x7ba1da===_0x261077[_0x40f463(0x29f)]&&this[_0x40f463(0x338)](),this[_0x40f463(0x2fa)]();}[_0x287b51(0x38b)](){const _0x170448=_0x287b51;this[_0x170448(0x245)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this['_sendHeartbeatTimer']=null);}[_0x287b51(0x338)](){const _0x55cd10=_0x287b51;this[_0x55cd10(0x36a)]!=null&&(clearTimeout(this[_0x55cd10(0x36a)]),this[_0x55cd10(0x36a)]=null);}},_0x10dd67[_0x287b51(0x287)]=_0x34f1f6([_0x3feb2f(0x0,_0x1bb894[_0x287b51(0x307)](_0x1bb894[_0x287b51(0x22d)])),_0x3feb2f(0x1,_0x1bb894[_0x287b51(0x307)](_0x1c4e07[_0x287b51(0x427)])),_0x3feb2f(0x2,_0xbf76b9[_0x287b51(0x317)]),_0x3feb2f(0x3,_0x1c4e07[_0x287b51(0x2ab)]),_0x3feb2f(0x4,_0x1c4e07[_0x287b51(0x322)]),_0x3feb2f(0x5,_0x447af8)],_0x10dd67['CollaborationSessionService']);var _0x441efb=Object[_0x287b51(0x2aa)],_0x228a1e=Object[_0x287b51(0x38a)],_0x216827=(_0x59fb7a,_0x58ae32,_0x4fcc8f,_0x2e6a72)=>{for(var _0xef446c=_0x2e6a72>0x1?void 0x0:_0x2e6a72?_0x228a1e(_0x58ae32,_0x4fcc8f):_0x58ae32,_0x43ebe1=_0x59fb7a['length']-0x1,_0x5785aa;_0x43ebe1>=0x0;_0x43ebe1--)(_0x5785aa=_0x59fb7a[_0x43ebe1])&&(_0xef446c=(_0x2e6a72?_0x5785aa(_0x58ae32,_0x4fcc8f,_0xef446c):_0x5785aa(_0xef446c))||_0xef446c);return _0x2e6a72&&_0xef446c&&_0x441efb(_0x58ae32,_0x4fcc8f,_0xef446c),_0xef446c;},_0x2d357f=(_0x53f077,_0x278eb9)=>(_0x400e1a,_0x23341e)=>_0x278eb9(_0x400e1a,_0x23341e,_0x53f077);_0x10dd67[_0x287b51(0x36f)]=class extends _0x1c4e07[_0x287b51(0x154)]{constructor(_0x51be09,_0x2f3e87,_0x1d6dea,_0x53140a,_0xbf2a94){const _0x4931f1=_0x287b51;super(),_0x6a44fc(this,'_cachedData',new Map()),_0x6a44fc(this,_0x4931f1(0x1ba),new Map()),_0x6a44fc(this,'_disabled',!0x1),(this[_0x4931f1(0x3ff)]=_0x51be09,this['_localStorageService']=_0x2f3e87,this['_beforeCloseService']=_0x1d6dea,this['_localeService']=_0x53140a,this[_0x4931f1(0x252)]=_0xbf2a94,this['_setupBeforeClosingHandler']());}[_0x287b51(0xdf)](){const _0x233fd2=_0x287b51;this[_0x233fd2(0xe1)]=!0x0;}[_0x287b51(0x387)](){const _0x1f0c8e=_0x287b51;this[_0x1f0c8e(0xe1)]=!0x1;}[_0x287b51(0x1be)](){const _0x4318b4=_0x287b51;this[_0x4318b4(0x1c8)]()['then'](()=>super[_0x4318b4(0x1be)]());}async[_0x287b51(0x244)](_0x1b9424){const _0x55b66e=_0x287b51;return this[_0x55b66e(0xe1)]?null:this['_localStorageService']['getItem'](_0x6601a9(_0x1b9424));}async['saveOfflineData'](_0x167014,_0x23c44b){const _0x43d449=_0x287b51;return!!this[_0x43d449(0x1f3)]['setItem'](_0x167014,_0x23c44b);}[_0x287b51(0x3da)](_0xb83240,_0x4c79e1,_0x14cb62,_0x369497){const _0x477c35=_0x287b51,_0x3c898b=this[_0x477c35(0x252)][_0x477c35(0x286)](_0xb83240);this['_cachedData'][_0x477c35(0x288)](_0xb83240,{'unitID':_0xb83240,'type':_0x4c79e1,'awaitingChangeset':_0x14cb62,'mutations':_0x369497,'rev':_0x3c898b}),this[_0x477c35(0x1ba)][_0x477c35(0x497)](_0xb83240)||this[_0x477c35(0x48b)](_0xb83240);}[_0x287b51(0x48b)](_0x4e522b){const _0x5c6203=_0x287b51,_0x162121=this[_0x5c6203(0x439)]();_0x162121===0x0?this['_saveCache'](_0x4e522b):this[_0x5c6203(0x1ba)][_0x5c6203(0x288)](_0x4e522b,setTimeout(()=>this[_0x5c6203(0x484)](_0x4e522b),_0x162121));}[_0x287b51(0x439)](){const _0x445110=_0x287b51;var _0xdef28d;return(_0xdef28d=this[_0x445110(0x3ff)][_0x445110(0x3e5)](_0x323ca0))!=null?_0xdef28d:0x3e8;}[_0x287b51(0x484)](_0x4ed5bc){const _0x395440=_0x287b51,_0x3529a4=this[_0x395440(0x1ba)][_0x395440(0x2e7)](_0x4ed5bc);return _0x3529a4!==void 0x0&&window['clearTimeout'](_0x3529a4),this[_0x395440(0x1f3)][_0x395440(0x3c9)](_0x6601a9(_0x4ed5bc),this[_0x395440(0x228)][_0x395440(0x2e7)](_0x4ed5bc))[_0x395440(0x47c)](()=>this[_0x395440(0x1ba)][_0x395440(0x3a9)](_0x4ed5bc));}async['_exhaustSavingTask'](){const _0xb7013d=_0x287b51,_0x3f2456=[];this[_0xb7013d(0x1ba)]['forEach']((_0x466050,_0x2c670e)=>{const _0x2a61ca=_0xb7013d;window[_0x2a61ca(0x21d)](_0x466050),_0x3f2456[_0x2a61ca(0x344)](this[_0x2a61ca(0x484)](_0x2c670e)['then'](()=>{const _0x23b616=_0x2a61ca;this[_0x23b616(0x1ba)][_0x23b616(0x3a9)](_0x2c670e);}));}),await Promise[_0xb7013d(0x14a)](_0x3f2456);}['_setupBeforeClosingHandler'](){const _0x3f4a33=_0x287b51;this['disposeWithMe'](this[_0x3f4a33(0x45e)][_0x3f4a33(0x451)](()=>{const _0xd7fe00=_0x3f4a33;if(this[_0xd7fe00(0x1ba)]['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},_0x10dd67['LocalCacheService']=_0x216827([_0x2d357f(0x0,_0x1c4e07[_0x287b51(0x322)]),_0x2d357f(0x1,_0x1c4e07[_0x287b51(0x266)]),_0x2d357f(0x2,_0xbf76b9[_0x287b51(0x10f)]),_0x2d357f(0x3,_0x1bb894[_0x287b51(0x307)](_0x1c4e07[_0x287b51(0x427)])),_0x2d357f(0x4,_0x1bb894['Inject'](_0x2d9232[_0x287b51(0x112)]))],_0x10dd67[_0x287b51(0x36f)]);function _0x6601a9(_0x39cb3e){const _0x1857e5=_0x287b51;return _0x1857e5(0x352)+_0x39cb3e;}const _0x3077b8=_0x1bb894[_0x287b51(0x253)]('univer-pro.collaboration-client.single-active-unit-service');var _0x19cc2e=(_0x7fa41=>(_0x7fa41[_0x7fa41['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x287b51(0x180),_0x7fa41[_0x7fa41['OTHER_CLIENTS_EDITING']=0x1]=_0x287b51(0x374),_0x7fa41))(_0x19cc2e||{});const _0x5709d6=0x7530,_0x5cc5ff=_0x287b51(0x3e2);class _0x115f30 extends _0x1c4e07[_0x287b51(0x154)]{constructor(){const _0x3b6dc9=_0x287b51;super(),_0x6a44fc(this,_0x3b6dc9(0x417),_0x1c4e07['Tools']['generateRandomId']()),_0x6a44fc(this,'_selfUnitIDs',new Set()),_0x6a44fc(this,'_unitOnClients',new Map()),_0x6a44fc(this,_0x3b6dc9(0x44c),null),_0x6a44fc(this,_0x3b6dc9(0x2d8),new Map()),_0x6a44fc(this,_0x3b6dc9(0x114),new Map()),this[_0x3b6dc9(0x2c2)]();}[_0x287b51(0x1be)](){const _0x2a7956=_0x287b51;super[_0x2a7956(0x1be)](),this[_0x2a7956(0x2d8)][_0x2a7956(0x3cf)]((_0x2730d0,_0x383948)=>this[_0x2a7956(0x48d)](_0x383948)),this['_heartbeatTimer']&&window[_0x2a7956(0x262)](this['_heartbeatTimer']);}[_0x287b51(0x109)](_0x6de547){const _0x512f5e=_0x287b51;return this['_ensureSubject'](_0x6de547)[_0x512f5e(0x3fc)](_0x1d06c2[_0x512f5e(0x1c2)]());}['editingUnit'](_0x30c30f){const _0x48ff56=_0x287b51;this[_0x48ff56(0xe3)][_0x48ff56(0x198)]===0x0&&this[_0x48ff56(0x1f7)](),this[_0x48ff56(0xe3)][_0x48ff56(0x15a)](_0x30c30f),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x30c30f],'isForwarded':!0x1});}[_0x287b51(0x1b1)](_0x380d0a){const _0x16a78d=_0x287b51;this['_selfUnitIDs']['delete'](_0x380d0a),this['_selfUnitIDs']['size']===0x0&&this['_heartbeatTimer']&&window[_0x16a78d(0x262)](this[_0x16a78d(0x44c)]);}[_0x287b51(0x2c2)](){const _0x13077d=_0x287b51;this['disposeWithMe'](_0x1c4e07[_0x13077d(0x12a)](_0x1d06c2['fromEvent'](window,_0x13077d(0x3cb))['subscribe'](_0xc4698f=>{const _0x57d139=_0x13077d;if(_0xc4698f[_0x57d139(0x371)]!==_0x5cc5ff||!_0xc4698f[_0x57d139(0x3cd)])return;const _0x293f33=JSON[_0x57d139(0x243)](_0xc4698f[_0x57d139(0x3cd)]);this[_0x57d139(0x319)](_0x293f33);}))),window['addEventListener'](_0x13077d(0x351),()=>this[_0x13077d(0x19c)]({'type':0x1,'memberID':this[_0x13077d(0x417)],'unitIDs':Array[_0x13077d(0x3f3)](this[_0x13077d(0xe3)])}));}[_0x287b51(0x319)](_0x164875){const _0x477859=_0x287b51;switch(_0x164875[_0x477859(0x3ca)]){case 0x0:this['_handleJoinEvent'](_0x164875);break;case 0x1:this['_handleLeaveEvent'](_0x164875);break;case 0x2:this[_0x477859(0x172)](_0x164875);break;}}[_0x287b51(0x129)](_0x16a9ad){const _0xc46c77=_0x287b51,{unitIDs:_0x2fbf74,memberID:_0x1c6a9b,isForwarded:_0x5d8a1b}=_0x16a9ad;_0x2fbf74[_0xc46c77(0x3cf)](_0x2fae0d=>{const _0x500400=_0xc46c77;if(!_0x5d8a1b&&this[_0x500400(0x254)][_0x500400(0x497)](_0x2fae0d)&&this[_0x500400(0x24c)](_0x2fae0d)[_0x500400(0x297)](0x1),!this[_0x500400(0x254)]['has'](_0x2fae0d)||!this[_0x500400(0x254)][_0x500400(0x2e7)](_0x2fae0d)[_0x500400(0x497)](_0x1c6a9b)){const _0x2db130=this['_unitOnClients'][_0x500400(0x2e7)](_0x2fae0d)||new Set();_0x2db130[_0x500400(0x15a)](_0x1c6a9b),this['_unitOnClients'][_0x500400(0x288)](_0x2fae0d,_0x2db130),this['_scheduleClearOtherTimer'](_0x1c6a9b);}}),_0x5d8a1b||this[_0xc46c77(0x19c)]({'type':0x0,'memberID':this[_0xc46c77(0x417)],'unitIDs':[...this[_0xc46c77(0xe3)]],'isForwarded':!0x0});}[_0x287b51(0x169)](_0x37970d){const _0x198d7c=_0x287b51;this[_0x198d7c(0x48d)](_0x37970d);const _0x3c7252=window['setTimeout'](()=>{const _0x446270=_0x198d7c;this['_unitOnClients'][_0x446270(0x3cf)](_0x3a3654=>{const _0x2192d4=_0x446270;_0x3a3654[_0x2192d4(0x3a9)](_0x37970d);});},_0x5709d6*0x2);this[_0x198d7c(0x2d8)][_0x198d7c(0x288)](_0x37970d,_0x3c7252);}[_0x287b51(0x48d)](_0x3b8f88){const _0x206e0c=_0x287b51;if(this[_0x206e0c(0x2d8)][_0x206e0c(0x497)](_0x3b8f88)){const _0x4d97ab=this['_clearOtherTimers']['get'](_0x3b8f88);_0x4d97ab&&window[_0x206e0c(0x21d)](_0x4d97ab),this['_clearOtherTimers'][_0x206e0c(0x288)](_0x3b8f88,null);}}[_0x287b51(0x1ef)](_0x14b0b6){const _0x3f1740=_0x287b51,{memberID:_0x5bd77d,unitIDs:_0x1342d3}=_0x14b0b6;_0x1342d3[_0x3f1740(0x3cf)](_0x7924bb=>{const _0x391473=_0x3f1740;var _0x3ce1c8;const _0x5f4528=this[_0x391473(0x254)][_0x391473(0x2e7)](_0x7924bb);_0x5f4528&&(_0x5f4528[_0x391473(0x3a9)](_0x5bd77d),(_0x3ce1c8=this['_ensureSubject'](_0x7924bb))==null||_0x3ce1c8[_0x391473(0x297)](_0x5f4528[_0x391473(0x198)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x5bd77d);}[_0x287b51(0x172)](_0x4929af){const _0x3dae70=_0x287b51;this[_0x3dae70(0x169)](_0x4929af[_0x3dae70(0x187)]);}['_send'](_0x2b18bd){const _0x337108=_0x287b51;localStorage['setItem'](_0x5cc5ff,JSON[_0x337108(0x107)](_0x2b18bd));}[_0x287b51(0x1f7)](){const _0x22ac6b=_0x287b51;this['_heartbeatTimer']=window[_0x22ac6b(0x1e8)](()=>{const _0x34d0b0=_0x22ac6b;this[_0x34d0b0(0x19c)]({'type':0x2,'memberID':this['_id']});},_0x5709d6);}[_0x287b51(0x24c)](_0x2676c9){const _0x37424c=_0x287b51;return this[_0x37424c(0x114)][_0x37424c(0x497)](_0x2676c9)||this[_0x37424c(0x114)]['set'](_0x2676c9,new _0x1d06c2['BehaviorSubject'](0x0)),this[_0x37424c(0x114)][_0x37424c(0x2e7)](_0x2676c9);}}var _0x75eb63=Object[_0x287b51(0x2aa)],_0x24fd07=Object['getOwnPropertyDescriptor'],_0x3c971e=(_0x41c0ce,_0x51105d,_0x3b8679,_0x5c3385)=>{const _0x52ab1e=_0x287b51;for(var _0x1bb484=_0x5c3385>0x1?void 0x0:_0x5c3385?_0x24fd07(_0x51105d,_0x3b8679):_0x51105d,_0x58c096=_0x41c0ce[_0x52ab1e(0x28c)]-0x1,_0x5b6452;_0x58c096>=0x0;_0x58c096--)(_0x5b6452=_0x41c0ce[_0x58c096])&&(_0x1bb484=(_0x5c3385?_0x5b6452(_0x51105d,_0x3b8679,_0x1bb484):_0x5b6452(_0x1bb484))||_0x1bb484);return _0x5c3385&&_0x1bb484&&_0x75eb63(_0x51105d,_0x3b8679,_0x1bb484),_0x1bb484;},_0x53889b=(_0x4d231d,_0x3c4b3f)=>(_0x25eca5,_0x3d4e11)=>_0x3c4b3f(_0x25eca5,_0x3d4e11,_0x4d231d);let _0xb1ca15=class{constructor(_0x2e48e6,_0x54c65c){const _0xa9c71=_0x287b51;this[_0xa9c71(0x1e4)]=_0x2e48e6,this[_0xa9c71(0x2ed)]=_0x54c65c;}[_0x287b51(0x230)](_0x5c435f){const _0x30fb54=_0x287b51;this[_0x30fb54(0x33a)](_0x5c435f),this[_0x30fb54(0x3b8)](_0x5c435f);}[_0x287b51(0x29b)](_0x3de61d){const _0x18aa64=_0x287b51,_0x599f1d=this['_injector'][_0x18aa64(0x2e7)](_0x48d622[_0x18aa64(0x2a6)]),{redoCache:_0x18e3e9}=_0x599f1d['getUndoRedoMutationParamsCache']();if(_0x18e3e9['length']===0x0)return _0x3de61d;let _0x442c14=_0x1c4e07[_0x18aa64(0x481)][_0x18aa64(0x31d)](_0x3de61d['mutations'][0x0]);for(let _0xd6bca3=0x0;_0xd6bca3<_0x18e3e9['length'];_0xd6bca3++){const _0x1cf48a={'id':_0x18aa64(0x188),'params':{..._0x18e3e9[_0xd6bca3]}},_0x3df422=this[_0x18aa64(0x2ed)][_0x18aa64(0x17d)](_0x442c14,_0x1cf48a,!0x1);if(_0x2d9232[_0x18aa64(0x19b)](_0x3df422))throw _0x3df422[_0x18aa64(0x18c)];_0x442c14=_0x3df422[_0x18aa64(0x49b)];}return{..._0x1c4e07[_0x18aa64(0x481)][_0x18aa64(0x31d)](_0x3de61d),'mutations':[_0x442c14]};}[_0x287b51(0x33a)](_0x5c735b){const _0x37707a=_0x287b51,_0x1a2ac6=this[_0x37707a(0x1e4)][_0x37707a(0x2e7)](_0x48d622[_0x37707a(0x2a6)]),{undoCache:_0x3d94c7,redoCache:_0x593558}=_0x1a2ac6[_0x37707a(0x164)]();if(_0x3d94c7['length']===0x0||_0x593558[_0x37707a(0x28c)]===0x0)return;const _0x43e6e9=[],_0x56bd42=[];let _0x138566=_0x1c4e07['Tools']['deepClone'](_0x5c735b[_0x37707a(0x49c)][0x0]),_0x1e7961=_0x1c4e07['Tools'][_0x37707a(0x31d)](_0x5c735b[_0x37707a(0x49c)][0x0]);for(let _0x3c8284=_0x3d94c7[_0x37707a(0x28c)]-0x1;_0x3c8284>=0x0;_0x3c8284--){const _0x277f9b={'id':_0x37707a(0x188),'params':{..._0x3d94c7[_0x3c8284]}},_0x54de68={'id':_0x37707a(0x188),'params':{..._0x593558[_0x3c8284]}},_0x5be160=this[_0x37707a(0x2ed)][_0x37707a(0x17d)](_0x138566,_0x277f9b,!0x1),_0x38191b=this[_0x37707a(0x2ed)]['transformMutation'](_0x1e7961,_0x54de68,!0x1);if(_0x2d9232[_0x37707a(0x19b)](_0x5be160))throw _0x5be160[_0x37707a(0x18c)];if(_0x2d9232['isTransformMutationFailure'](_0x38191b))throw _0x38191b[_0x37707a(0x18c)];_0x43e6e9[_0x37707a(0x3d0)](_0x5be160[_0x37707a(0x274)][_0x37707a(0x231)]),_0x56bd42[_0x37707a(0x3d0)](_0x38191b['m2Prime'][_0x37707a(0x231)]),_0x138566=_0x5be160['m1Prime'],_0x1e7961=_0x38191b['m1Prime'];}_0x1a2ac6[_0x37707a(0x1a9)]({'undoCache':_0x43e6e9,'redoCache':_0x56bd42});}[_0x287b51(0x3b8)](_0x5453a9){const _0xcfe541=_0x287b51,_0x4e13d9=this[_0xcfe541(0x1e4)]['get'](_0x48d622[_0xcfe541(0x2a6)]),_0x18a5c3=_0x4e13d9[_0xcfe541(0x130)]();if(_0x18a5c3==null)return;const _0xa9e52e=[{'id':_0xcfe541(0x188),'params':{'unitId':_0x5453a9[_0xcfe541(0x2e4)],'actions':null,'textRanges':[_0x18a5c3]}}],_0x34dd8b=this[_0xcfe541(0x2ed)][_0xcfe541(0x2a9)](_0x5453a9,_0xa9e52e);if(!_0x2d9232[_0xcfe541(0x329)](_0x34dd8b))throw _0x34dd8b['error'];const _0x2e2498=_0x34dd8b[_0xcfe541(0x274)][0x0]['params'][_0xcfe541(0x2d3)];Array[_0xcfe541(0x416)](_0x2e2498)&&_0x2e2498[_0xcfe541(0x28c)]&&_0x4e13d9[_0xcfe541(0x1a6)](_0x2e2498[0x0]);}};_0xb1ca15=_0x3c971e([_0x53889b(0x0,_0x1bb894['Inject'](_0x1bb894[_0x287b51(0x22d)])),_0x53889b(0x1,_0x2d9232[_0x287b51(0x24f)])],_0xb1ca15);var _0x4986e8=Object[_0x287b51(0x2aa)],_0x399e52=Object[_0x287b51(0x38a)],_0x16810a=(_0x68bb62,_0x515d0e,_0x23f523,_0x410ced)=>{const _0x5c60f9=_0x287b51;for(var _0x54673e=_0x410ced>0x1?void 0x0:_0x410ced?_0x399e52(_0x515d0e,_0x23f523):_0x515d0e,_0x1aaa57=_0x68bb62[_0x5c60f9(0x28c)]-0x1,_0x5aed38;_0x1aaa57>=0x0;_0x1aaa57--)(_0x5aed38=_0x68bb62[_0x1aaa57])&&(_0x54673e=(_0x410ced?_0x5aed38(_0x515d0e,_0x23f523,_0x54673e):_0x5aed38(_0x54673e))||_0x54673e);return _0x410ced&&_0x54673e&&_0x4986e8(_0x515d0e,_0x23f523,_0x54673e),_0x54673e;},_0x1840e6=(_0x2f4b70,_0x19cf2b)=>(_0x39b687,_0x157233)=>_0x19cf2b(_0x39b687,_0x157233,_0x2f4b70);let _0x55142a=class{constructor(_0x465b41,_0x184b5f){const _0xa31648=_0x287b51;this[_0xa31648(0x1e4)]=_0x465b41,this[_0xa31648(0x2ed)]=_0x184b5f;}[_0x287b51(0x3ad)](_0x4a016a){const _0x57303e=_0x287b51;var _0x149654;const _0x1f941f=this['_injector'][_0x57303e(0x2e7)](_0x48d622['TextSelectionManagerService']),_0x67d835=(_0x149654=_0x1f941f[_0x57303e(0x34a)]())!=null?_0x149654:[],_0x258a11=_0x67d835==null?void 0x0:_0x67d835['map'](_0x48d622[_0x57303e(0x17b)]);if(_0x258a11[_0x57303e(0x28c)]===0x0)return;const _0x5096ad=[{'id':_0x57303e(0x188),'params':{'unitId':_0x4a016a[_0x57303e(0x2e4)],'actions':null,'textRanges':_0x258a11}}],_0x128861=this[_0x57303e(0x2ed)][_0x57303e(0x2a9)](_0x4a016a,_0x5096ad);if(!_0x2d9232[_0x57303e(0x329)](_0x128861))throw _0x128861[_0x57303e(0x18c)];const _0x1834f6=_0x128861['m2Prime'][0x0][_0x57303e(0x231)][_0x57303e(0x2d3)];Array[_0x57303e(0x416)](_0x1834f6)&&_0x1834f6[_0x57303e(0x28c)]&&_0x1f941f[_0x57303e(0x13e)](_0x1834f6,!0x1);}};_0x55142a=_0x16810a([_0x1840e6(0x0,_0x1bb894[_0x287b51(0x307)](_0x1bb894['Injector'])),_0x1840e6(0x1,_0x2d9232[_0x287b51(0x24f)])],_0x55142a);function _0x14ee8d(_0x769264){let _0x45166a='';for(const _0xc31aef of _0x769264){const {startOffset:_0x559422,endOffset:_0x31671c,isActive:_0x55c50a}=_0xc31aef;_0x45166a['length']&&(_0x45166a+=','),_0x45166a+=_0x559422+':'+_0x31671c+':'+(_0x55c50a?'1':'0');}return _0x45166a;}function _0x23ad82(_0xc4fc){const _0x4135fe=_0x287b51,_0x38fec6=_0xc4fc[_0x4135fe(0x10c)](','),_0x41d019=[];for(const _0x5963d7 of _0x38fec6){const [_0x408c2e,_0x3b2756,_0x233e19]=_0x5963d7[_0x4135fe(0x10c)](':');_0x41d019['push']({'startOffset':Number(_0x408c2e),'endOffset':Number(_0x3b2756),'collapsed':_0x408c2e===_0x3b2756,'isActive':_0x233e19==='1'});}return _0x41d019['some'](_0x2710c6=>_0x2710c6['isActive'])||(_0x41d019[0x0][_0x4135fe(0x3b6)]=!0x0),_0x41d019;}class _0x1dcff6 extends _0x1c4e07[_0x287b51(0x486)]{constructor(){const _0x227380=_0x287b51;super(...arguments),_0x6a44fc(this,_0x227380(0x413),new _0x1d06c2['BehaviorSubject'](null)),_0x6a44fc(this,_0x227380(0x393),this[_0x227380(0x413)]['asObservable']());}['syncEditingCollabCursor'](_0x35920d){const {unitID:_0x1da62a,memberID:_0x4f4428,textRanges:_0x23e8fb}=_0x35920d,_0x2b04cd=_0x14ee8d(_0x23e8fb),_0x32cbd2={'unitID':_0x1da62a,'memberID':_0x4f4428,'selection':_0x2b04cd};this['_collabCursorState$']['next'](_0x32cbd2);}}var _0x5578ea=Object[_0x287b51(0x2aa)],_0x16b661=Object[_0x287b51(0x38a)],_0xce26ca=(_0x50ba90,_0xbcdc50,_0x1bc293,_0x5bd1e4)=>{const _0x1c9685=_0x287b51;for(var _0x4f7beb=_0x5bd1e4>0x1?void 0x0:_0x5bd1e4?_0x16b661(_0xbcdc50,_0x1bc293):_0xbcdc50,_0x8beff2=_0x50ba90[_0x1c9685(0x28c)]-0x1,_0x54150b;_0x8beff2>=0x0;_0x8beff2--)(_0x54150b=_0x50ba90[_0x8beff2])&&(_0x4f7beb=(_0x5bd1e4?_0x54150b(_0xbcdc50,_0x1bc293,_0x4f7beb):_0x54150b(_0x4f7beb))||_0x4f7beb);return _0x5bd1e4&&_0x4f7beb&&_0x5578ea(_0xbcdc50,_0x1bc293,_0x4f7beb),_0x4f7beb;},_0x190915=(_0x5551b0,_0x2a96ed)=>(_0x21cd5a,_0x14abd8)=>_0x2a96ed(_0x21cd5a,_0x14abd8,_0x5551b0);let _0x3de67e=class{constructor(_0x11d199,_0x58f938){const _0x3982f5=_0x287b51;this['_injector']=_0x11d199,this[_0x3982f5(0x2ed)]=_0x58f938;}['transformSelections'](_0x102bf2){const _0x4c6dca=_0x287b51;var _0xb38e83,_0x235bd5,_0x2b0f92,_0x54af11;const _0x4b9a0e=this[_0x4c6dca(0x1e4)][_0x4c6dca(0x2e7)](_0x58e6c7[_0x4c6dca(0x436)]),{pluginName:_0x36ddee,unitId:_0x444f0c,sheetId:_0x3f96da}=_0x4b9a0e[_0x4c6dca(0x1e7)]()||{},_0x10b0be=(_0xb38e83=_0x4b9a0e[_0x4c6dca(0x34a)]())!=null?_0xb38e83:[];if(_0x10b0be[_0x4c6dca(0x28c)]===0x0||!_0x36ddee||!_0x444f0c||!_0x3f96da)return;const _0x45b389=[{'id':_0x58e6c7[_0x4c6dca(0x13b)]['id'],'params':{'unitId':_0x444f0c,'subUnitId':_0x3f96da,'pluginName':_0x36ddee,'selections':_0x1c4e07[_0x4c6dca(0x481)][_0x4c6dca(0x31d)](_0x10b0be)}}],_0x310422=this[_0x4c6dca(0x2ed)][_0x4c6dca(0x2a9)](_0x102bf2,_0x45b389);if(!_0x2d9232[_0x4c6dca(0x329)](_0x310422))throw _0x310422[_0x4c6dca(0x18c)];const _0x46f69d=(_0x54af11=(_0x2b0f92=(_0x235bd5=_0x310422[_0x4c6dca(0x274)][0x0])==null?void 0x0:_0x235bd5[_0x4c6dca(0x231)])==null?void 0x0:_0x2b0f92[_0x4c6dca(0x2fb)])!=null?_0x54af11:_0x10b0be;Array[_0x4c6dca(0x416)](_0x46f69d)&&_0x46f69d[_0x4c6dca(0x28c)]&&this[_0x4c6dca(0x1e4)][_0x4c6dca(0x2e7)](_0x1c4e07['ICommandService'])['executeCommand'](_0x58e6c7[_0x4c6dca(0x13b)]['id'],{'unitId':_0x444f0c,'subUnitId':_0x3f96da,'pluginName':_0x36ddee,'selections':_0x46f69d});}};_0x3de67e=_0xce26ca([_0x190915(0x0,_0x1bb894['Inject'](_0x1bb894[_0x287b51(0x22d)])),_0x190915(0x1,_0x2d9232[_0x287b51(0x24f)])],_0x3de67e);const _0x4c86f7=new Set([_0x58e6c7[_0x287b51(0x41b)]['id']]);function _0x11e7f3(_0x9ed51c,_0x171261,_0x36f320,_0x2257f3,_0x55f58e){const _0x59a7ee=_0x287b51;var _0x4a60bb,_0xca4e64,_0xdc49e5,_0x5d4286;const _0x3d9cea=[];for(const _0x584265 of _0x9ed51c)if(_0x4c86f7['has'](_0x584265['id'])){if(_0x3d9cea[_0x59a7ee(0x28c)]>0x0)break;_0x3d9cea[_0x59a7ee(0x344)](_0x584265);break;}else _0x3d9cea[_0x59a7ee(0x344)](_0x584265);const _0x5756d3=(_0xca4e64=(_0x4a60bb=_0x55f58e['getCurrentUser']())==null?void 0x0:_0x4a60bb[_0x59a7ee(0x240)])!=null?_0xca4e64:'unknown',_0x1fc96d=(_0x5d4286=(_0xdc49e5=_0x55f58e[_0x59a7ee(0x3b4)]())==null?void 0x0:_0xdc49e5[_0x59a7ee(0x187)])!=null?_0x5d4286:_0x59a7ee(0x3e9);return{'changeset':{'unitID':_0x171261,'type':_0x2d9232[_0x59a7ee(0x2c3)](_0x36f320[_0x59a7ee(0x316)](_0x171261)),'baseRev':_0x2257f3[_0x59a7ee(0x286)](_0x171261),'revision':0x0,'userID':_0x5756d3,'memberID':_0x1fc96d,'mutations':_0x3d9cea},'pendingMutations':_0x9ed51c['slice'](_0x3d9cea[_0x59a7ee(0x28c)])};}function _0x3efa4c(_0x260a36,_0x122f7a,_0x1146a6,_0x18cee7,_0x3f682f){const _0x51365f=_0x287b51;var _0x53a3f3,_0x1a9055,_0x555fc2,_0xb33fb5;const _0x43e0a7=[_0x260a36[_0x51365f(0x2bb)]((_0x1f809f,_0x5cffeb)=>{const _0x4eae8b=_0x51365f;var _0x7c706b;const {id:_0x53d0d5}=_0x1f809f,{id:_0x54ec65,type:_0x4e8066}=_0x5cffeb,_0x2707b5=(_0x7c706b=_0x1f809f[_0x4eae8b(0x231)])!=null?_0x7c706b:{'actions':null},_0x22574b=_0x5cffeb[_0x4eae8b(0x231)];if(_0x53d0d5&&_0x53d0d5!==_0x54ec65)throw new Error(_0x4eae8b(0x3c4)+_0x53d0d5+_0x4eae8b(0x122)+_0x54ec65+'.');return{..._0x1f809f,'id':_0x54ec65,'type':_0x4e8066,'params':{'unitId':_0x22574b[_0x4eae8b(0x1db)],'textRanges':_0x22574b[_0x4eae8b(0x2d3)],'actions':_0x1c4e07['JSONX']['compose'](_0x2707b5[_0x4eae8b(0x396)],_0x22574b['actions'])}};},{})],_0x4a306a=(_0x1a9055=(_0x53a3f3=_0x3f682f[_0x51365f(0x3b4)]())==null?void 0x0:_0x53a3f3[_0x51365f(0x240)])!=null?_0x1a9055:_0x51365f(0x3e9),_0x548466=(_0xb33fb5=(_0x555fc2=_0x3f682f[_0x51365f(0x3b4)]())==null?void 0x0:_0x555fc2[_0x51365f(0x187)])!=null?_0xb33fb5:_0x51365f(0x3e9);return{'changeset':{'unitID':_0x122f7a,'type':_0x2d9232[_0x51365f(0x2c3)](_0x1146a6['getUnitType'](_0x122f7a)),'baseRev':_0x18cee7['getCurrentRevForDocument'](_0x122f7a),'revision':0x0,'userID':_0x4a306a,'memberID':_0x548466,'mutations':_0x43e0a7},'pendingMutations':[]};}var _0x5b44d1=Object['defineProperty'],_0x321eee=Object[_0x287b51(0x38a)],_0x3757be=(_0x33ac79,_0x2a09ce,_0x3684c0,_0x4f3147)=>{const _0x53b970=_0x287b51;for(var _0x2bb76b=_0x4f3147>0x1?void 0x0:_0x4f3147?_0x321eee(_0x2a09ce,_0x3684c0):_0x2a09ce,_0x15ccb7=_0x33ac79[_0x53b970(0x28c)]-0x1,_0x23ed50;_0x15ccb7>=0x0;_0x15ccb7--)(_0x23ed50=_0x33ac79[_0x15ccb7])&&(_0x2bb76b=(_0x4f3147?_0x23ed50(_0x2a09ce,_0x3684c0,_0x2bb76b):_0x23ed50(_0x2bb76b))||_0x2bb76b);return _0x4f3147&&_0x2bb76b&&_0x5b44d1(_0x2a09ce,_0x3684c0,_0x2bb76b),_0x2bb76b;},_0x511d19=(_0x372b62,_0xc96a91)=>(_0x126dbe,_0x1a755e)=>_0xc96a91(_0x126dbe,_0x1a755e,_0x372b62),_0x5926fc=(_0xac276b=>(_0xac276b[_0x287b51(0x151)]=_0x287b51(0x291),_0xac276b[_0x287b51(0x176)]=_0x287b51(0x348),_0xac276b[_0x287b51(0x493)]=_0x287b51(0x465),_0xac276b[_0x287b51(0x483)]='awaiting',_0xac276b[_0x287b51(0x32a)]=_0x287b51(0x32d),_0xac276b[_0x287b51(0x303)]='fetch_missing',_0xac276b['CONFLICT']=_0x287b51(0x137),_0xac276b['OFFLINE']=_0x287b51(0x2e3),_0xac276b))(_0x5926fc||{});class _0x5adeb0{constructor(_0x237b84,_0x2fcd19,_0x246996,_0x32c8f3,_0x27f5f5,_0x137841,_0x5d2c4e,_0x26ad10,_0x10b09d){const _0x19f691=_0x287b51;_0x6a44fc(this,_0x19f691(0x175),null),_0x6a44fc(this,_0x19f691(0x293),[]),(this['unitID']=_0x237b84,this[_0x19f691(0x3ca)]=_0x2fcd19,this[_0x19f691(0x405)]=_0x27f5f5,this[_0x19f691(0x279)]=_0x137841,this[_0x19f691(0x485)]=_0x5d2c4e,this[_0x19f691(0x252)]=_0x26ad10,this['_localCacheService']=_0x10b09d,this['_awaitingChangeset']=_0x246996,this[_0x19f691(0x293)]=_0x32c8f3);}[_0x287b51(0x32b)](_0x3b3426){const _0x22dd86=_0x287b51,_0x1e9566=this['_revisionService'][_0x22dd86(0x286)](this[_0x22dd86(0x2e4)]);return _0x3b3426[_0x22dd86(0x25a)]>_0x1e9566+0x1?(this[_0x22dd86(0x405)][_0x22dd86(0x46e)]({'from':_0x1e9566,'to':_0x3b3426[_0x22dd86(0x25a)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0xdcf38d){const _0x53865e=_0x287b51;this['_undoRedoService']['transformUndoRedo'](this[_0x53865e(0x2e4)],_0xdcf38d);}[_0x287b51(0x224)](_0x498e52){const _0x9a06a5=_0x287b51;var _0x12502b,_0x21f217;(_0x21f217=(_0x12502b=this['_handler'])['onTransformSelections'])==null||_0x21f217[_0x9a06a5(0x3f0)](_0x12502b,_0x498e52);}[_0x287b51(0x325)](_0x569283){const _0x544ffe=_0x287b51;var _0xe9b90f,_0x47fc21;return(_0x47fc21=(_0xe9b90f=this[_0x544ffe(0x405)])['onTransformIME'])==null?void 0x0:_0x47fc21[_0x544ffe(0x3f0)](_0xe9b90f,_0x569283);}['_transformRemoteChangesetByIMECache'](_0x20a670){const _0x59c607=_0x287b51;var _0x3c05f0,_0xea5c4f,_0x26293d;return(_0x26293d=(_0xea5c4f=(_0x3c05f0=this[_0x59c607(0x405)])[_0x59c607(0x12f)])==null?void 0x0:_0xea5c4f['call'](_0x3c05f0,_0x20a670))!=null?_0x26293d:_0x20a670;}['_syncEditingCollabCursor'](_0x537ebe){const _0x255484=_0x287b51;var _0x1b0416,_0x22158f;if(this[_0x255484(0x3ca)]===_0x55b3bc['UNIVER_DOC']){const {unitID:_0x385390,mutations:_0x43c5ec,memberID:_0x4ede51}=_0x537ebe,_0x35f5f2=_0x43c5ec[0x0][_0x255484(0x231)][_0x255484(0x2d3)];Array['isArray'](_0x35f5f2)&&_0x35f5f2[_0x255484(0x28c)]>0x0&&((_0x22158f=(_0x1b0416=this[_0x255484(0x405)])['onSyncEditingCollabCursor'])==null||_0x22158f[_0x255484(0x3f0)](_0x1b0416,{'unitID':_0x385390,'memberID':_0x4ede51,'textRanges':_0x35f5f2}));}}[_0x287b51(0x480)](){const _0x2ef129=_0x287b51;this[_0x2ef129(0x145)]['updateOfflineData'](this[_0x2ef129(0x2e4)],this['type'],this['_awaitingChangeset'],this[_0x2ef129(0x293)]);}[_0x287b51(0x26d)](){const _0x3c29a0=_0x287b51;return this[_0x3c29a0(0x252)]['getCurrentRevForDocument'](this[_0x3c29a0(0x2e4)]);}[_0x287b51(0x268)](){const _0x2e29fc=_0x287b51;this['_revisionService'][_0x2e29fc(0x1d1)](this[_0x2e29fc(0x2e4)]);}[_0x287b51(0x1fa)](_0x3ff0df){const _0x509ce3=_0x287b51;var _0x204c80;const _0x569ddc=this[_0x509ce3(0x381)](_0x3ff0df),_0x49d1e6=_0x1c4e07['sequenceExecute'](_0x569ddc[_0x509ce3(0x49c)],this['_commandService'],{'fromCollab':!0x0});if(!_0x49d1e6[_0x509ce3(0x3bf)])throw _0x49d1e6[_0x509ce3(0x18c)]instanceof Error?_0x49d1e6['error']:new Error((_0x204c80=_0x49d1e6['error'])!=null?_0x204c80:_0x509ce3(0x232));this['_transformIMECache'](_0x569ddc),this['_transformUndoredo'](_0x3ff0df),this[_0x509ce3(0x224)](_0x569ddc),this[_0x509ce3(0x36d)](_0x569ddc),this['_incrementRevisionNumber']();}}let _0x293b07=class extends _0x5adeb0{constructor(_0xcb0862,_0x4d98ba,_0x3826e1,_0x49d079,_0x5225d0,_0x586a0f,_0x1806fa,_0x3c5bf5,_0x2add8e){const _0x558d69=_0x287b51;super(_0xcb0862,_0x4d98ba,null,[],_0x3826e1,_0x3c5bf5,_0x1806fa,_0x49d079,_0x5225d0),_0x6a44fc(this,_0x558d69(0x498),_0x558d69(0x348)),(this['_injector']=_0x586a0f,this[_0x558d69(0x462)]=_0x2add8e);}['appendMutation'](_0x3a4cd6){const _0x2d1e8a=_0x287b51,_0x4e2f31=this[_0x2d1e8a(0x1e4)][_0x2d1e8a(0x31e)](_0x48851c,this[_0x2d1e8a(0x2e4)],this[_0x2d1e8a(0x3ca)],[_0x3a4cd6],this[_0x2d1e8a(0x405)]);return _0x4e2f31[_0x2d1e8a(0x173)](),_0x4e2f31[_0x2d1e8a(0x480)](),_0x4e2f31;}[_0x287b51(0x296)](_0x4611c7){const _0x10d497=_0x287b51;if(this[_0x10d497(0x32b)](_0x4611c7))return this[_0x10d497(0x1e4)][_0x10d497(0x31e)](_0x554211,this[_0x10d497(0x2e4)],this[_0x10d497(0x3ca)],null,[],null,[_0x4611c7],this['_handler']);try{return this[_0x10d497(0x1fa)](_0x4611c7),this;}catch(_0x2b0280){return this[_0x10d497(0x462)][_0x10d497(0x18c)]('[CollaborationController]:\x20remote\x20changeset\x20applied\x20error.',_0x2b0280),this;}}['onRemoteAck'](){const _0x1cab5d=_0x287b51;throw new Error(_0x1cab5d(0x1dc));}[_0x287b51(0x1ca)](){const _0x2b6c55=_0x287b51;throw new Error(_0x2b6c55(0x165));}[_0x287b51(0x1f8)](){const _0x215ad4=_0x287b51;return this[_0x215ad4(0x1e4)][_0x215ad4(0x31e)](_0x53e14b,this[_0x215ad4(0x2e4)],this[_0x215ad4(0x3ca)],null,[],this[_0x215ad4(0x405)]);}[_0x287b51(0x40e)](){return this;}[_0x287b51(0x14b)](){const _0x637876=_0x287b51;throw new Error(_0x637876(0x125));}};_0x293b07=_0x3757be([_0x511d19(0x3,_0x1bb894['Inject'](_0x2d9232[_0x287b51(0x112)])),_0x511d19(0x4,_0x1bb894[_0x287b51(0x307)](_0x10dd67[_0x287b51(0x36f)])),_0x511d19(0x5,_0x1bb894['Inject'](_0x1bb894[_0x287b51(0x22d)])),_0x511d19(0x6,_0x1c4e07['IUndoRedoService']),_0x511d19(0x7,_0x1c4e07[_0x287b51(0x341)]),_0x511d19(0x8,_0x1c4e07[_0x287b51(0x2ab)])],_0x293b07);let _0x48851c=class extends _0x5adeb0{constructor(_0x11527a,_0x3233d5,_0x425066,_0x4204bf,_0x42a912,_0x540adb,_0x3be4d0,_0x2bffa5,_0xee7605,_0x33b1a6,_0x51413e,_0x1d3af4,_0x62bd0c,_0xc51a61){const _0xc7ef95=_0x287b51;super(_0x11527a,_0x3233d5,null,_0x425066,_0x4204bf,_0x33b1a6,_0xc51a61,_0x540adb,_0x3be4d0),_0x6a44fc(this,_0xc7ef95(0x498),'pending'),_0x6a44fc(this,_0xc7ef95(0x202),null),_0x6a44fc(this,_0xc7ef95(0x47f),null),(this[_0xc7ef95(0x1e4)]=_0x42a912,this['_memberService']=_0x2bffa5,this[_0xc7ef95(0x462)]=_0xee7605,this[_0xc7ef95(0x3ff)]=_0x51413e,this[_0xc7ef95(0x2ed)]=_0x1d3af4,this['_univerInstanceService']=_0x62bd0c);}['appendMutation'](_0x3c5373){const _0x58008d=_0x287b51;return this['_pendingMutations'][_0x58008d(0x344)](_0x3c5373),this[_0x58008d(0x480)](),this;}[_0x287b51(0x296)](_0x18711d){const _0x4ccd94=_0x287b51;if(this[_0x4ccd94(0x32b)](_0x18711d))return this[_0x4ccd94(0x4a1)](),this[_0x4ccd94(0x1e4)]['createInstance'](_0x554211,this[_0x4ccd94(0x2e4)],this[_0x4ccd94(0x3ca)],null,this[_0x4ccd94(0x293)],null,[_0x18711d],this['_handler']);try{const _0x5b74d0=this[_0x4ccd94(0x2ed)][_0x4ccd94(0x2a9)](_0x18711d,this[_0x4ccd94(0x293)]);if(_0x2d9232['isTransformMutationsWithChangesetSuccess'](_0x5b74d0)){const {c1Prime:_0x4d5168,m2Prime:_0x48c84a}=_0x5b74d0;this[_0x4ccd94(0x1fa)](_0x4d5168);const _0x3d189d=this['_injector']['createInstance'](_0x48851c,this[_0x4ccd94(0x2e4)],this[_0x4ccd94(0x3ca)],_0x48c84a,this[_0x4ccd94(0x405)]);return this[_0x4ccd94(0x4a1)](),_0x3d189d[_0x4ccd94(0x173)](this[_0x4ccd94(0x202)]?Math[_0x4ccd94(0x3b1)](0x0,new Date()['getTime']()-this[_0x4ccd94(0x202)]):this[_0x4ccd94(0x44e)]()),_0x3d189d;}throw _0x5b74d0['error'];}catch(_0x4ac16f){return this[_0x4ccd94(0x462)][_0x4ccd94(0x18c)](_0x4ac16f),this[_0x4ccd94(0x450)](!0x1);}}[_0x287b51(0x2d7)](){const _0x5051c3=_0x287b51;throw new Error(_0x5051c3(0x477));}[_0x287b51(0x1ca)](){const _0x3eaa03=_0x287b51;throw new Error(_0x3eaa03(0x40a));}[_0x287b51(0x1f8)](){const _0x124e4a=_0x287b51;return this[_0x124e4a(0x4a1)](),this[_0x124e4a(0x1e4)][_0x124e4a(0x31e)](_0x53e14b,this[_0x124e4a(0x2e4)],this[_0x124e4a(0x3ca)],null,this['_pendingMutations'],this[_0x124e4a(0x405)]);}[_0x287b51(0x40e)](){return this;}[_0x287b51(0x173)](_0x2a6212){const _0x2adb4e=_0x287b51;_0x2a6212=_0x2a6212!=null?_0x2a6212:this[_0x2adb4e(0x44e)](),this[_0x2adb4e(0x202)]=new Date()[_0x2adb4e(0x4a4)](),this[_0x2adb4e(0x47f)]=setTimeout(()=>{const _0x58290b=_0x2adb4e;this[_0x58290b(0x4a1)]();let _0x1517a0=null;switch(this[_0x58290b(0x3ca)]){case _0x55b3bc[_0x58290b(0x373)]:{_0x1517a0=_0x11e7f3(this[_0x58290b(0x293)],this['unitID'],this[_0x58290b(0x455)],this[_0x58290b(0x252)],this[_0x58290b(0x229)]);break;}case _0x55b3bc[_0x58290b(0x104)]:{_0x1517a0=_0x3efa4c(this['_pendingMutations'],this[_0x58290b(0x2e4)],this[_0x58290b(0x455)],this['_revisionService'],this['_memberService']);break;}default:throw new Error(_0x58290b(0x257)+this[_0x58290b(0x3ca)]+_0x58290b(0x358));}const {changeset:_0x1d6d07,pendingMutations:_0x36248a}=_0x1517a0;this['_handler'][_0x58290b(0x306)](_0x1d6d07);const _0x45c291=_0x36248a[_0x58290b(0x28c)]?this[_0x58290b(0x1e4)][_0x58290b(0x31e)](_0x3d8885,this['unitID'],this['type'],_0x1d6d07,_0x36248a,this[_0x58290b(0x405)]):this['_injector'][_0x58290b(0x31e)](_0x237fe0,this[_0x58290b(0x2e4)],this[_0x58290b(0x3ca)],_0x1d6d07,this[_0x58290b(0x405)]);_0x45c291[_0x58290b(0x480)](),this[_0x58290b(0x405)][_0x58290b(0x42b)](this,_0x45c291);},_0x2a6212);}[_0x287b51(0x44e)](){const _0xe5356a=_0x287b51;var _0x1f48d7;return(_0x1f48d7=this[_0xe5356a(0x3ff)][_0xe5356a(0x3e5)](_0x508e4a))!=null?_0x1f48d7:0x7d0;}['resend'](){const _0x58b830=_0x287b51;throw new Error(_0x58b830(0x418));}[_0x287b51(0x4a1)](){const _0x5b3e6e=_0x287b51;this['_sendingTimer']!=null&&(clearTimeout(this[_0x5b3e6e(0x47f)]),this[_0x5b3e6e(0x47f)]=null);}[_0x287b51(0x450)](_0x287a5a){const _0x31d6a8=_0x287b51;return this[_0x31d6a8(0x4a1)](),this[_0x31d6a8(0x1e4)][_0x31d6a8(0x31e)](_0x37d13d,this['unitID'],this['type'],null,this[_0x31d6a8(0x293)],this[_0x31d6a8(0x405)],_0x287a5a);}};_0x48851c=_0x3757be([_0x511d19(0x4,_0x1bb894[_0x287b51(0x307)](_0x1bb894[_0x287b51(0x22d)])),_0x511d19(0x5,_0x1bb894[_0x287b51(0x307)](_0x2d9232['RevisionService'])),_0x511d19(0x6,_0x1bb894[_0x287b51(0x307)](_0x10dd67['LocalCacheService'])),_0x511d19(0x7,_0x1bb894['Inject'](_0x6d0d68)),_0x511d19(0x8,_0x1c4e07['ILogService']),_0x511d19(0x9,_0x1c4e07[_0x287b51(0x341)]),_0x511d19(0xa,_0x1c4e07[_0x287b51(0x322)]),_0x511d19(0xb,_0x2d9232[_0x287b51(0x24f)]),_0x511d19(0xc,_0x1c4e07[_0x287b51(0x443)]),_0x511d19(0xd,_0x1c4e07['IUndoRedoService'])],_0x48851c);let _0x237fe0=class extends _0x5adeb0{constructor(_0x4b430a,_0x551b6f,_0x531ac9,_0x2673f6,_0x1f21d6,_0xec833e,_0x17e95e,_0x148ad0,_0x213e79,_0x3d0529,_0x2cefbd){const _0x1fe6f3=_0x287b51;super(_0x4b430a,_0x551b6f,_0x531ac9,[],_0x2673f6,_0x148ad0,_0x2cefbd,_0xec833e,_0x17e95e),_0x6a44fc(this,'status',_0x1fe6f3(0x2e0)),(this['_injector']=_0x1f21d6,this[_0x1fe6f3(0x462)]=_0x213e79,this[_0x1fe6f3(0x2ed)]=_0x3d0529);}[_0x287b51(0x404)](_0x11dd58){const _0x719cea=_0x287b51,_0x2bac8c=this[_0x719cea(0x1e4)]['createInstance'](_0x3d8885,this[_0x719cea(0x2e4)],this[_0x719cea(0x3ca)],this['_awaitingChangeset'],[_0x11dd58],this[_0x719cea(0x405)]);return _0x2bac8c['_updateLocalCache'](),_0x2bac8c;}['onRemoteChangeset'](_0x37930f){const _0x975d33=_0x287b51;if(this[_0x975d33(0x32b)](_0x37930f))return this[_0x975d33(0x1e4)][_0x975d33(0x31e)](_0x554211,this[_0x975d33(0x2e4)],this['type'],this['_awaitingChangeset'],[],null,[_0x37930f],this['_handler']);try{const _0x49e7ad=this[_0x975d33(0x2ed)][_0x975d33(0x43b)]([_0x37930f],[this[_0x975d33(0x175)]],!0x1);if(_0x2d9232[_0x975d33(0x430)](_0x49e7ad)){const {c1Prime:_0x480e1b,c2Prime:_0x1f16b3}=_0x49e7ad;this[_0x975d33(0x1fa)](_0x480e1b[0x0]),_0x1f16b3[0x0][_0x975d33(0x3dc)]=this['_getCurrentRevision']();const _0x38afc1=this[_0x975d33(0x1e4)]['createInstance'](_0x237fe0,this['unitID'],this[_0x975d33(0x3ca)],_0x1f16b3[0x0],this[_0x975d33(0x405)]);return _0x38afc1[_0x975d33(0x480)](),_0x38afc1;}return this['_onConflict'](!0x1);}catch(_0x57d856){return this[_0x975d33(0x462)][_0x975d33(0x18c)](_0x57d856),this[_0x975d33(0x450)](!0x1);}}[_0x287b51(0x2d7)](_0x3cd07c){const _0x2e4b80=_0x287b51,_0x516e64=this[_0x2e4b80(0x252)][_0x2e4b80(0x286)](this[_0x2e4b80(0x2e4)]);if(_0x3cd07c[_0x2e4b80(0x25a)]<_0x516e64-0x1)return this;if(this[_0x2e4b80(0x32b)](_0x3cd07c))return this['_injector'][_0x2e4b80(0x31e)](_0x554211,this[_0x2e4b80(0x2e4)],this[_0x2e4b80(0x3ca)],null,[],this[_0x2e4b80(0x175)],[],this[_0x2e4b80(0x405)]);this[_0x2e4b80(0x268)]();const _0x1b527d=this[_0x2e4b80(0x1e4)][_0x2e4b80(0x31e)](_0x293b07,this[_0x2e4b80(0x2e4)],this[_0x2e4b80(0x3ca)],this['_handler']);return _0x1b527d[_0x2e4b80(0x480)](),_0x1b527d;}[_0x287b51(0x1ca)](_0x2d017b){const _0x49c17f=_0x287b51;return this[_0x49c17f(0x450)](!!(_0x2d017b!=null&&_0x2d017b[_0x49c17f(0x43a)]));}[_0x287b51(0x1f8)](){const _0x10ab38=_0x287b51;return this[_0x10ab38(0x1e4)][_0x10ab38(0x31e)](_0x53e14b,this[_0x10ab38(0x2e4)],this[_0x10ab38(0x3ca)],this['_awaitingChangeset'],[],this['_handler']);}[_0x287b51(0x40e)](){return this;}[_0x287b51(0x14b)](){const _0x28caa4=_0x287b51;this['_handler'][_0x28caa4(0x306)](this[_0x28caa4(0x175)]);}[_0x287b51(0x450)](_0x160006){const _0x48c653=_0x287b51;return this[_0x48c653(0x1e4)][_0x48c653(0x31e)](_0x37d13d,this[_0x48c653(0x2e4)],this[_0x48c653(0x3ca)],this[_0x48c653(0x175)],[],this[_0x48c653(0x405)],_0x160006);}};_0x237fe0=_0x3757be([_0x511d19(0x4,_0x1bb894[_0x287b51(0x307)](_0x1bb894[_0x287b51(0x22d)])),_0x511d19(0x5,_0x1bb894[_0x287b51(0x307)](_0x2d9232[_0x287b51(0x112)])),_0x511d19(0x6,_0x1bb894['Inject'](_0x10dd67['LocalCacheService'])),_0x511d19(0x7,_0x1c4e07[_0x287b51(0x341)]),_0x511d19(0x8,_0x1c4e07[_0x287b51(0x2ab)]),_0x511d19(0x9,_0x2d9232[_0x287b51(0x24f)]),_0x511d19(0xa,_0x1c4e07[_0x287b51(0x27b)])],_0x237fe0);let _0x3d8885=class extends _0x5adeb0{constructor(_0x3f458c,_0x5a555d,_0x24b73c,_0x508a38,_0x1b6fa1,_0x1f36d4,_0x20ead5,_0xba84d3,_0xb86bc4,_0x10492b,_0x5521f3,_0x5b3b5c){const _0xd7adbf=_0x287b51;super(_0x3f458c,_0x5a555d,_0x24b73c,_0x508a38,_0x1b6fa1,_0xb86bc4,_0x5b3b5c,_0x20ead5,_0xba84d3),_0x6a44fc(this,_0xd7adbf(0x498),_0xd7adbf(0x32d)),(this[_0xd7adbf(0x1e4)]=_0x1f36d4,this[_0xd7adbf(0x462)]=_0x10492b,this[_0xd7adbf(0x2ed)]=_0x5521f3);}[_0x287b51(0x404)](_0x56fde4){const _0xf30edf=_0x287b51;return this[_0xf30edf(0x293)][_0xf30edf(0x344)](_0x56fde4),this;}[_0x287b51(0x296)](_0x322621){const _0x408842=_0x287b51;if(this[_0x408842(0x32b)](_0x322621))return this[_0x408842(0x1e4)][_0x408842(0x31e)](_0x554211,this[_0x408842(0x2e4)],this['type'],this['_awaitingChangeset'],this[_0x408842(0x293)],null,[_0x322621],this[_0x408842(0x405)]);try{const _0x5098f8=this['_transformService'][_0x408842(0x43b)]([_0x322621],[this[_0x408842(0x175)]],!0x1);if(_0x2d9232[_0x408842(0x430)](_0x5098f8)){const {c1Prime:_0x1232cd,c2Prime:_0x204f9b}=_0x5098f8,_0x540407=this[_0x408842(0x2ed)]['transformMutationsWithChangeset'](_0x1232cd[0x0],this[_0x408842(0x293)]);if(_0x2d9232[_0x408842(0x329)](_0x540407)){const {c1Prime:_0x41896a,m2Prime:_0x376d4e}=_0x540407;return this[_0x408842(0x1fa)](_0x41896a),_0x204f9b[0x0][_0x408842(0x3dc)]=this[_0x408842(0x26d)](),this[_0x408842(0x1e4)][_0x408842(0x31e)](_0x3d8885,this['unitID'],this[_0x408842(0x3ca)],_0x204f9b[0x0],_0x376d4e,this[_0x408842(0x405)]);}throw _0x540407[_0x408842(0x18c)];}throw _0x5098f8[_0x408842(0x18c)];}catch(_0x875446){return this[_0x408842(0x462)][_0x408842(0x18c)](_0x875446),this[_0x408842(0x450)](!0x1);}}[_0x287b51(0x2d7)](_0x5c0789){const _0x6e2f40=_0x287b51;if(this[_0x6e2f40(0x32b)](_0x5c0789))return this[_0x6e2f40(0x1e4)][_0x6e2f40(0x31e)](_0x554211,this['unitID'],this[_0x6e2f40(0x3ca)],null,this[_0x6e2f40(0x293)],this[_0x6e2f40(0x175)],[],this['_handler']);this['_incrementRevisionNumber']();const _0x48dcd0=this[_0x6e2f40(0x1e4)][_0x6e2f40(0x31e)](_0x48851c,this['unitID'],this[_0x6e2f40(0x3ca)],this[_0x6e2f40(0x293)],this[_0x6e2f40(0x405)]);return _0x48dcd0[_0x6e2f40(0x173)](),_0x48dcd0[_0x6e2f40(0x480)](),_0x48dcd0;}['onRemoteRej'](_0x18ef73){const _0x5927c1=_0x287b51;return this['_onConflict'](!!(_0x18ef73!=null&&_0x18ef73[_0x5927c1(0x43a)]));}[_0x287b51(0x1f8)](){const _0xd5a047=_0x287b51;return this['_injector'][_0xd5a047(0x31e)](_0x53e14b,this['unitID'],this[_0xd5a047(0x3ca)],this[_0xd5a047(0x175)],this['_pendingMutations'],this[_0xd5a047(0x405)]);}[_0x287b51(0x40e)](){return this;}[_0x287b51(0x14b)](){const _0x19c894=_0x287b51;this[_0x19c894(0x405)][_0x19c894(0x306)](this['_awaitingChangeset']);}[_0x287b51(0x450)](_0x476def){const _0x2522f6=_0x287b51;return this[_0x2522f6(0x1e4)]['createInstance'](_0x37d13d,this[_0x2522f6(0x2e4)],this[_0x2522f6(0x3ca)],null,this[_0x2522f6(0x293)],this[_0x2522f6(0x405)],_0x476def);}};_0x3d8885=_0x3757be([_0x511d19(0x5,_0x1bb894[_0x287b51(0x307)](_0x1bb894[_0x287b51(0x22d)])),_0x511d19(0x6,_0x1bb894[_0x287b51(0x307)](_0x2d9232['RevisionService'])),_0x511d19(0x7,_0x1bb894[_0x287b51(0x307)](_0x10dd67[_0x287b51(0x36f)])),_0x511d19(0x8,_0x1c4e07['ICommandService']),_0x511d19(0x9,_0x1c4e07['ILogService']),_0x511d19(0xa,_0x2d9232['ITransformService']),_0x511d19(0xb,_0x1c4e07[_0x287b51(0x27b)])],_0x3d8885);let _0x37d13d=class extends _0x5adeb0{constructor(_0xadd062,_0x2a9363,_0xdeed76,_0x20039,_0x15d9e5,_0x2c3a34=!0x1,_0x19d7c7,_0x3834e7,_0x2be780,_0x5e6877,_0x5c9d2c,_0x198355,_0x5ac955){const _0x1fcd3e=_0x287b51;super(_0xadd062,_0x2a9363,_0xdeed76,_0x20039,_0x15d9e5,_0x3834e7,_0x2be780,_0x5c9d2c,_0x5e6877),_0x6a44fc(this,_0x1fcd3e(0x498),_0x1fcd3e(0x137)),(this[_0x1fcd3e(0x111)]=_0x2c3a34,this[_0x1fcd3e(0x116)]=_0x19d7c7,this['_localeService']=_0x198355,this[_0x1fcd3e(0x282)]=_0x5ac955,this[_0x1fcd3e(0x2ae)](),this[_0x1fcd3e(0x131)](),this[_0x1fcd3e(0x275)]());}[_0x287b51(0x404)](){return this;}[_0x287b51(0x296)](){return this;}[_0x287b51(0x2d7)](){return this;}['onRemoteRej'](){return this;}[_0x287b51(0x1f8)](){return this;}[_0x287b51(0x40e)](){return this;}[_0x287b51(0x14b)](){const _0x2268e9=_0x287b51;throw new Error(_0x2268e9(0x3bc));}[_0x287b51(0x131)](){const _0x55adb3=_0x287b51;this[_0x55adb3(0x145)][_0x55adb3(0x3da)](this[_0x55adb3(0x2e4)],this[_0x55adb3(0x3ca)],null,[]);}[_0x287b51(0x2ae)](){const _0x599aa7=_0x287b51;this[_0x599aa7(0x111)]?this[_0x599aa7(0x282)][_0x599aa7(0x143)]({'title':this[_0x599aa7(0x223)]['t']('permission.title'),'content':this[_0x599aa7(0x223)]['t'](_0x599aa7(0x2c1)),'type':_0x599aa7(0x18c),'duration':0x0}):this[_0x599aa7(0x282)][_0x599aa7(0x143)]({'title':this[_0x599aa7(0x223)]['t'](_0x599aa7(0x2de)),'content':this[_0x599aa7(0x223)]['t'](_0x599aa7(0x354)),'type':'error','duration':0x0});}[_0x287b51(0x275)](){const _0x10780c=_0x287b51;this['_permissionService'][_0x10780c(0x304)](new _0x58e6c7[(_0x10780c(0x36e))](this[_0x10780c(0x2e4)])['id'],!0x1);}};_0x37d13d=_0x3757be([_0x511d19(0x6,_0x1bb894[_0x287b51(0x307)](_0x1c4e07[_0x287b51(0x39d)])),_0x511d19(0x7,_0x1c4e07[_0x287b51(0x341)]),_0x511d19(0x8,_0x1c4e07[_0x287b51(0x27b)]),_0x511d19(0x9,_0x1bb894['Inject'](_0x10dd67[_0x287b51(0x36f)])),_0x511d19(0xa,_0x1bb894[_0x287b51(0x307)](_0x2d9232[_0x287b51(0x112)])),_0x511d19(0xb,_0x1bb894[_0x287b51(0x307)](_0x1c4e07[_0x287b51(0x427)])),_0x511d19(0xc,_0xbf76b9[_0x287b51(0x321)])],_0x37d13d);let _0x53e14b=class extends _0x5adeb0{constructor(_0x3f5c64,_0x167674,_0x5ee0f3,_0x456798,_0x3709a7,_0x18efcf,_0x4157e1,_0x2d67f1,_0x102d71,_0x439978){const _0x3011e2=_0x287b51;super(_0x3f5c64,_0x167674,_0x5ee0f3,_0x456798,_0x3709a7,_0x102d71,_0x439978,_0x4157e1,_0x2d67f1),_0x6a44fc(this,_0x3011e2(0x498),_0x3011e2(0x2e3)),this[_0x3011e2(0x1e4)]=_0x18efcf;}[_0x287b51(0x404)](_0x4d1ad9){const _0x1cb95d=_0x287b51;return this['_pendingMutations'][_0x1cb95d(0x344)](_0x4d1ad9),this[_0x1cb95d(0x480)](),this;}['onRemoteChangeset'](_0x342863){const _0x2561ae=_0x287b51;throw new Error(_0x2561ae(0x426));}[_0x287b51(0x2d7)](){const _0xb09b58=_0x287b51;throw new Error(_0xb09b58(0x1b6));}['onRemoteRej'](){const _0xec618c=_0x287b51;throw new Error(_0xec618c(0x3db));}[_0x287b51(0x1f8)](){return this;}[_0x287b51(0x40e)](){const _0x35b6c5=_0x287b51,{_injector:_0x548b98,_pendingMutations:_0x5b43ad,_awaitingChangeset:_0x3a5445,unitID:_0xb0fd7,_handler:_0x3b877b,type:_0x5c9df3}=this,_0x44a29a=_0x85f86b(_0x548b98,_0xb0fd7,_0x5c9df3,_0x3a5445,_0x5b43ad,_0x3b877b);return _0x44a29a instanceof _0x48851c?_0x44a29a[_0x35b6c5(0x173)]():(_0x44a29a instanceof _0x3d8885||_0x44a29a instanceof _0x237fe0)&&_0x44a29a[_0x35b6c5(0x14b)](),_0x44a29a;}[_0x287b51(0x14b)](){const _0x10cbc7=_0x287b51;throw new Error(_0x10cbc7(0xe4));}};_0x53e14b=_0x3757be([_0x511d19(0x5,_0x1bb894[_0x287b51(0x307)](_0x1bb894[_0x287b51(0x22d)])),_0x511d19(0x6,_0x1bb894[_0x287b51(0x307)](_0x2d9232[_0x287b51(0x112)])),_0x511d19(0x7,_0x1bb894[_0x287b51(0x307)](_0x10dd67['LocalCacheService'])),_0x511d19(0x8,_0x1c4e07[_0x287b51(0x341)]),_0x511d19(0x9,_0x1c4e07[_0x287b51(0x27b)])],_0x53e14b);let _0x554211=class extends _0x5adeb0{constructor(_0x274bd8,_0x4e93d3,_0x587447,_0x4b2aa1,_0x4e250b,_0x39a7a4,_0x25489a,_0x2aa595,_0x2b55b4,_0x244db2,_0x3c2586,_0x53827d,_0x24076b,_0x51eadc){const _0x21be96=_0x287b51;super(_0x274bd8,_0x4e93d3,_0x587447,_0x4b2aa1,_0x25489a,_0x53827d,_0x24076b,_0x2b55b4,_0x244db2),_0x6a44fc(this,_0x21be96(0x498),'fetch_missing'),(this[_0x21be96(0x2a2)]=_0x4e250b,this[_0x21be96(0xf7)]=_0x39a7a4,this[_0x21be96(0x1e4)]=_0x2aa595,this[_0x21be96(0x462)]=_0x3c2586,this[_0x21be96(0x2ed)]=_0x51eadc);}['onMissedChangesetFetched'](_0x79091d){const _0xfec69c=_0x287b51;try{const _0xdaa452=[..._0x79091d,...this[_0xfec69c(0xf7)]],_0x5ef311=[this['_awaitingChangeset']||this[_0xfec69c(0x2a2)]][_0xfec69c(0x33e)](_0x56dde2=>!!_0x56dde2);let _0x31a5eb,_0x318feb;if(_0x5ef311[_0xfec69c(0x28c)]){const _0xc79247=this[_0xfec69c(0x2ed)]['transformChangesets'](_0xdaa452,_0x5ef311,!0x1);if(!_0x2d9232['isTransformChangesetsSuccess'](_0xc79247))throw _0xc79247[_0xfec69c(0x18c)];_0x31a5eb=_0xc79247[_0xfec69c(0x200)],_0x318feb=_0xc79247[_0xfec69c(0x3e0)];}else _0x31a5eb=_0xdaa452,_0x318feb=[];let _0x256932=this[_0xfec69c(0x293)];_0x31a5eb['forEach'](_0x2313b3=>{const _0x43e095=_0xfec69c;let _0x58c2c6;if(_0x256932['length']){const _0x2c5468=this[_0x43e095(0x2ed)][_0x43e095(0x2a9)](_0x2313b3,_0x256932);if(!_0x2d9232[_0x43e095(0x329)](_0x2c5468))throw _0x2c5468['error'];_0x58c2c6=_0x2c5468[_0x43e095(0x200)],_0x256932=_0x2c5468[_0x43e095(0x274)];}else _0x58c2c6=_0x2313b3;this[_0x43e095(0x1fa)](_0x58c2c6);}),this['_acknowledgedAwaitingChangeset']&&this[_0xfec69c(0x268)](),this['_awaitingChangeset']&&_0x318feb[_0xfec69c(0x28c)]&&(_0x318feb[0x0]['baseRev']=this[_0xfec69c(0x26d)]());let _0x13deae;if(this[_0xfec69c(0x175)]&&_0x256932[_0xfec69c(0x28c)]!==0x0)_0x13deae=this[_0xfec69c(0x1e4)][_0xfec69c(0x31e)](_0x3d8885,this[_0xfec69c(0x2e4)],this[_0xfec69c(0x3ca)],_0x318feb[0x0],_0x256932,this['_handler']);else{if(this['_awaitingChangeset']&&_0x256932[_0xfec69c(0x28c)]===0x0)_0x318feb[0x0][_0xfec69c(0x3dc)]=this['_getCurrentRevision'](),_0x13deae=this['_injector']['createInstance'](_0x237fe0,this[_0xfec69c(0x2e4)],this[_0xfec69c(0x3ca)],_0x318feb[0x0],this['_handler']);else{if(_0x256932[_0xfec69c(0x28c)]!==0x0){const _0x2d89f4=this['_injector'][_0xfec69c(0x31e)](_0x48851c,this[_0xfec69c(0x2e4)],this['type'],_0x256932,this[_0xfec69c(0x405)]);_0x2d89f4[_0xfec69c(0x173)](),_0x13deae=_0x2d89f4;}else _0x13deae=this[_0xfec69c(0x1e4)][_0xfec69c(0x31e)](_0x293b07,this['unitID'],this['type'],this[_0xfec69c(0x405)]);}}return _0x13deae[_0xfec69c(0x480)](),_0x13deae;}catch(_0x3afff5){return this['_logService'][_0xfec69c(0x18c)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x3afff5),this['_injector']['createInstance'](_0x37d13d,this[_0xfec69c(0x2e4)],this[_0xfec69c(0x3ca)],this[_0xfec69c(0x175)],this[_0xfec69c(0x293)],this[_0xfec69c(0x405)],!0x1);}}[_0x287b51(0x14b)](){const _0x472a56=_0x287b51;throw new Error(_0x472a56(0x2c5));}[_0x287b51(0x404)](_0x5ef52c){const _0x35d397=_0x287b51;return this[_0x35d397(0x293)][_0x35d397(0x344)](_0x5ef52c),this;}[_0x287b51(0x296)](_0x540595){const _0x1967b6=_0x287b51;return this['_queuedRemoteChangesets'][_0x1967b6(0x344)](_0x540595),this;}[_0x287b51(0x2d7)](_0x4faf79){const _0x203bb8=_0x287b51;if(this[_0x203bb8(0x175)])return this['_acknowledgedAwaitingChangeset']=this[_0x203bb8(0x175)],this['_awaitingChangeset']=null,this;throw new Error(_0x203bb8(0x41a));}[_0x287b51(0x1ca)](_0x53be46){const _0x3a47b=_0x287b51;return this[_0x3a47b(0x450)](!!(_0x53be46!=null&&_0x53be46[_0x3a47b(0x43a)]));}[_0x287b51(0x1f8)](){const _0x9359a9=_0x287b51;return this[_0x9359a9(0x1e4)][_0x9359a9(0x31e)](_0x53e14b,this[_0x9359a9(0x2e4)],this[_0x9359a9(0x3ca)],this['_awaitingChangeset'],this[_0x9359a9(0x293)],this['_handler']);}[_0x287b51(0x40e)](){return this;}[_0x287b51(0x450)](_0x57c707){const _0x1f1ecc=_0x287b51;return this[_0x1f1ecc(0x1e4)]['createInstance'](_0x37d13d,this['unitID'],this[_0x1f1ecc(0x3ca)],this[_0x1f1ecc(0x175)],this[_0x1f1ecc(0x293)],this[_0x1f1ecc(0x405)],_0x57c707);}};_0x554211=_0x3757be([_0x511d19(0x7,_0x1bb894[_0x287b51(0x307)](_0x1bb894[_0x287b51(0x22d)])),_0x511d19(0x8,_0x1bb894[_0x287b51(0x307)](_0x2d9232[_0x287b51(0x112)])),_0x511d19(0x9,_0x1bb894[_0x287b51(0x307)](_0x10dd67[_0x287b51(0x36f)])),_0x511d19(0xa,_0x1c4e07[_0x287b51(0x2ab)]),_0x511d19(0xb,_0x1c4e07['ICommandService']),_0x511d19(0xc,_0x1c4e07['IUndoRedoService']),_0x511d19(0xd,_0x2d9232[_0x287b51(0x24f)])],_0x554211);function _0x85f86b(_0x58bd6e,_0x26025c,_0x248494,_0x293d04,_0x518912,_0x1ad36a){const _0x4da980=_0x287b51;return _0x293d04&&_0x518912['length']?_0x58bd6e['createInstance'](_0x3d8885,_0x26025c,_0x248494,_0x293d04,_0x518912,_0x1ad36a):_0x293d04?_0x58bd6e[_0x4da980(0x31e)](_0x237fe0,_0x26025c,_0x248494,_0x293d04,_0x1ad36a):_0x518912[_0x4da980(0x28c)]?_0x58bd6e['createInstance'](_0x48851c,_0x26025c,_0x248494,_0x518912,_0x1ad36a):_0x58bd6e[_0x4da980(0x31e)](_0x293b07,_0x26025c,_0x248494,_0x1ad36a);}var _0x501e75=Object[_0x287b51(0x2aa)],_0x216f40=Object[_0x287b51(0x38a)],_0x1585e9=(_0x1c0c43,_0x4db4ef,_0x24b1ae,_0x10098f)=>{for(var _0x2b6632=_0x10098f>0x1?void 0x0:_0x10098f?_0x216f40(_0x4db4ef,_0x24b1ae):_0x4db4ef,_0x4d6b18=_0x1c0c43['length']-0x1,_0x432daf;_0x4d6b18>=0x0;_0x4d6b18--)(_0x432daf=_0x1c0c43[_0x4d6b18])&&(_0x2b6632=(_0x10098f?_0x432daf(_0x4db4ef,_0x24b1ae,_0x2b6632):_0x432daf(_0x2b6632))||_0x2b6632);return _0x10098f&&_0x2b6632&&_0x501e75(_0x4db4ef,_0x24b1ae,_0x2b6632),_0x2b6632;},_0x58845f=(_0x3fde5c,_0x3999aa)=>(_0x51a36e,_0x5dcc87)=>_0x3999aa(_0x51a36e,_0x5dcc87,_0x3fde5c);_0x10dd67[_0x287b51(0x284)]=class extends _0x1c4e07[_0x287b51(0x486)]{constructor(_0x587544,_0x5955d9,_0x2d5001){const _0x502f5b=_0x287b51;super(),_0x6a44fc(this,_0x502f5b(0x445),new Map()),_0x6a44fc(this,_0x502f5b(0x2d5),new _0x1d06c2[(_0x502f5b(0x1b2))]()),(this[_0x502f5b(0x1e4)]=_0x587544,this['_collabSessionService']=_0x5955d9,this[_0x502f5b(0x455)]=_0x2d5001,this['_init']());}['dispose'](){const _0x5a45fb=_0x287b51;super[_0x5a45fb(0x1be)](),this[_0x5a45fb(0x445)][_0x5a45fb(0x3cf)](_0x229e86=>_0x229e86[_0x5a45fb(0x1be)]()),this[_0x5a45fb(0x445)]['clear']();}[_0x287b51(0x209)](_0x35a00a){const _0xfefbe3=_0x287b51;var _0x463f43;return(_0x463f43=this[_0xfefbe3(0x445)][_0xfefbe3(0x2e7)](_0x35a00a))!=null?_0x463f43:null;}['getCollabEntity$'](_0xe6935a){const _0x2a53f9=_0x287b51,_0x2f4562=this[_0x2a53f9(0x209)](_0xe6935a);return _0x2f4562?_0x1d06c2['of'](_0x2f4562):this[_0x2a53f9(0x2d5)][_0x2a53f9(0x3fc)](_0x48b0e4[_0x2a53f9(0x33e)](_0x37b26d=>_0x37b26d['unitID']===_0xe6935a));}[_0x287b51(0x2c2)](){const _0x4ac7aa=_0x287b51;this[_0x4ac7aa(0x455)][_0x4ac7aa(0x17a)](_0x1c4e07['UniverInstanceType'][_0x4ac7aa(0x373)])['pipe'](_0x1d06c2['takeUntil'](this['dispose$']),_0x48b0e4[_0x4ac7aa(0x2fe)](0x10))[_0x4ac7aa(0x2df)](async _0x36a71a=>{const _0x179826=_0x4ac7aa,_0x3ed81f=_0x36a71a['getUnitId'](),_0x4108dc=await this[_0x179826(0x28b)](_0x3ed81f,_0x55b3bc[_0x179826(0x373)]);this['_entities'][_0x179826(0x288)](_0x3ed81f,_0x4108dc);}),this[_0x4ac7aa(0x455)][_0x4ac7aa(0x17a)](_0x1c4e07[_0x4ac7aa(0x3f1)]['UNIVER_DOC'])[_0x4ac7aa(0x3fc)](_0x1d06c2[_0x4ac7aa(0x271)](this[_0x4ac7aa(0x435)]),_0x48b0e4[_0x4ac7aa(0x2fe)](0x10))[_0x4ac7aa(0x3fc)](_0x48b0e4[_0x4ac7aa(0x33e)](_0x42c5e4=>!_0x42c5e4[_0x4ac7aa(0x305)]()[_0x4ac7aa(0x347)]('__')))[_0x4ac7aa(0x2df)](async _0x4415c9=>{const _0x3341ac=_0x4ac7aa,_0x1d8029=_0x4415c9[_0x3341ac(0x305)](),_0x3b1f4c=await this[_0x3341ac(0x28b)](_0x1d8029,_0x55b3bc[_0x3341ac(0x104)]);this[_0x3341ac(0x445)][_0x3341ac(0x288)](_0x1d8029,_0x3b1f4c);}),_0x1d06c2[_0x4ac7aa(0x357)](this[_0x4ac7aa(0x455)][_0x4ac7aa(0x203)](_0x1c4e07[_0x4ac7aa(0x3f1)][_0x4ac7aa(0x373)]),this[_0x4ac7aa(0x455)][_0x4ac7aa(0x203)](_0x1c4e07[_0x4ac7aa(0x3f1)][_0x4ac7aa(0x104)]))[_0x4ac7aa(0x3fc)](_0x1d06c2[_0x4ac7aa(0x271)](this[_0x4ac7aa(0x435)]))[_0x4ac7aa(0x2df)](_0x25f849=>{const _0x209d97=_0x4ac7aa,_0x28d248=_0x25f849['getUnitId'](),_0x121e63=this[_0x209d97(0x445)][_0x209d97(0x2e7)](_0x28d248);_0x121e63&&(_0x121e63['dispose'](),this[_0x209d97(0x445)][_0x209d97(0x3a9)](_0x28d248));});}async[_0x287b51(0x28b)](_0x4a3196,_0x3b8235){const _0x2dcafc=_0x287b51,_0x5dd68c=await this[_0x2dcafc(0x33d)]['requireSession'](_0x4a3196),_0x3f82d2=this[_0x2dcafc(0x1e4)]['createInstance'](this['_getCtorByUniverType'](_0x3b8235),_0x4a3196,_0x3b8235,_0x5dd68c);return await _0x3f82d2[_0x2dcafc(0x47b)](),this[_0x2dcafc(0x2d5)]['next'](_0x3f82d2),_0x3f82d2;}[_0x287b51(0x47a)](_0x3e56af){switch(_0x3e56af){case _0x55b3bc['UNIVER_DOC']:return _0x147769;case _0x55b3bc['UNIVER_SHEET']:return _0x499e7e;default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x3e56af);}}},_0x10dd67[_0x287b51(0x284)]=_0x1585e9([_0x1c4e07[_0x287b51(0x1da)](_0x1c4e07['LifecycleStages'][_0x287b51(0x4a5)],_0x10dd67['CollaborationController']),_0x58845f(0x0,_0x1bb894[_0x287b51(0x307)](_0x1bb894[_0x287b51(0x22d)])),_0x58845f(0x1,_0x1bb894[_0x287b51(0x307)](_0x10dd67[_0x287b51(0x287)])),_0x58845f(0x2,_0x1c4e07['IUniverInstanceService'])],_0x10dd67[_0x287b51(0x284)]);let _0xd33c69=class extends _0x1c4e07[_0x287b51(0x486)]{constructor(_0x2ec6c7,_0x250368,_0x1d642f,_0x5f2fe4,_0x424ca1,_0x1bdc94,_0x3ebb49,_0x2f0d44,_0x35d81c,_0x554635,_0x2bcf76,_0x193d91,_0x2b1e00){const _0x43bf40=_0x287b51;super(),_0x6a44fc(this,_0x43bf40(0x24d),new _0x1d06c2['BehaviorSubject'](null)),_0x6a44fc(this,'state$',this[_0x43bf40(0x24d)]['asObservable']()),_0x6a44fc(this,_0x43bf40(0x157)),_0x6a44fc(this,_0x43bf40(0x419),!0x1),_0x6a44fc(this,_0x43bf40(0x20a),this[_0x43bf40(0x3aa)][_0x43bf40(0x3fc)](_0x48b0e4[_0x43bf40(0x1b3)](_0x515758=>_0x515758?_0x515758[_0x43bf40(0x498)]:_0x5926fc['OFFLINE']),_0x48b0e4[_0x43bf40(0x379)](0x1))),_0x6a44fc(this,_0x43bf40(0x24e),!0x1),_0x6a44fc(this,_0x43bf40(0x475),[]),(this[_0x43bf40(0x2e4)]=_0x2ec6c7,this[_0x43bf40(0x2bd)]=_0x250368,this['_session']=_0x1d642f,this[_0x43bf40(0x1e4)]=_0x5f2fe4,this['_localCacheService']=_0x424ca1,this[_0x43bf40(0x3d8)]=_0x1bdc94,this[_0x43bf40(0x223)]=_0x3ebb49,this[_0x43bf40(0x252)]=_0x2f0d44,this['_logService']=_0x35d81c,this[_0x43bf40(0x279)]=_0x554635,this[_0x43bf40(0x283)]=_0x2bcf76,this[_0x43bf40(0x116)]=_0x193d91,this[_0x43bf40(0x35a)]=_0x2b1e00);}get[_0x287b51(0x367)](){const _0xdeec9f=_0x287b51;return this[_0xdeec9f(0x157)];}async['init'](){const _0x2a2944=_0x287b51;if(this[_0x2a2944(0x367)])throw new Error(_0x2a2944(0x242));await this[_0x2a2944(0x2c2)]();}[_0x287b51(0x3af)](){const _0x357feb=_0x287b51;return this['_collaborationPaused']=!0x0,_0x1c4e07[_0x357feb(0x12a)](()=>{const _0x8a2759=_0x357feb;this['_collaborationPaused']=!0x1,this[_0x8a2759(0x3a7)]();});}[_0x287b51(0x3eb)](_0x119276){const _0x245d00=_0x287b51;this[_0x245d00(0x157)]=_0x119276,this[_0x245d00(0x24d)][_0x245d00(0x297)](_0x119276);}async[_0x287b51(0x2c2)](){const _0x3f5097=_0x287b51;var _0x5c3886;return this[_0x3f5097(0x3eb)](await this['_createInitialState']()),this[_0x3f5097(0x35a)]&&((_0x5c3886=this[_0x3f5097(0x35a)])==null||_0x5c3886['editingUnit'](this[_0x3f5097(0x2e4)]),this[_0x3f5097(0x346)](_0x1c4e07[_0x3f5097(0x12a)](this['_singleActiveUnitService'][_0x3f5097(0x109)](this['unitID'])[_0x3f5097(0x2df)](_0x5833ad=>{const _0x1f893a=_0x3f5097;this[_0x1f893a(0x462)][_0x1f893a(0x337)](_0x1f893a(0x311),_0x1f893a(0x3b0),_0x5833ad),_0x5833ad===_0x19cc2e[_0x1f893a(0x374)]?(this['_messageService'][_0x1f893a(0x143)]({'content':this[_0x1f893a(0x223)]['t'](_0x1f893a(0x2f6)),'type':_0xbefcc5[_0x1f893a(0x474)]['Warning']}),this['_permissionService']['updatePermissionPoint'](new _0x58e6c7[(_0x1f893a(0x36e))](this[_0x1f893a(0x2e4)])['id'],!0x1)):this[_0x1f893a(0x116)][_0x1f893a(0x304)](new _0x58e6c7[(_0x1f893a(0x36e))](this[_0x1f893a(0x2e4)])['id'],!0x0);})))),this[_0x3f5097(0x346)](_0x1c4e07[_0x3f5097(0x12a)](this[_0x3f5097(0x488)][_0x3f5097(0xf1)][_0x3f5097(0x2df)](_0x1a5455=>{const _0x5db952=_0x3f5097;_0x1a5455===_0x423d5f[_0x5db952(0x28e)]?this[_0x5db952(0x255)]():_0x1a5455===_0x423d5f[_0x5db952(0x320)]&&this[_0x5db952(0x365)]();}))),this[_0x3f5097(0x346)](_0x1c4e07['toDisposable'](this['_session'][_0x3f5097(0x189)][_0x3f5097(0x2df)](_0x611dfc=>{const _0x557b78=_0x3f5097;try{switch(_0x611dfc[_0x557b78(0x123)]){case _0x2d9232[_0x557b78(0x132)][_0x557b78(0x29c)]:{this[_0x557b78(0x3fa)](_0x2d9232[_0x557b78(0x2f3)](_0x611dfc[_0x557b78(0x40f)]));break;}case _0x2d9232[_0x557b78(0x132)][_0x557b78(0x1f6)]:{this[_0x557b78(0x388)](_0x611dfc[_0x557b78(0x40f)]);break;}case _0x2d9232[_0x557b78(0x132)][_0x557b78(0x2c7)]:{this[_0x557b78(0x249)]();break;}case _0x2d9232[_0x557b78(0x132)][_0x557b78(0x457)]:{this[_0x557b78(0x384)](_0x611dfc[_0x557b78(0x40f)][_0x557b78(0x3ce)][_0x557b78(0x1b3)](_0x24c0d2=>_0x2d9232['parseProtocolChangeset'](_0x24c0d2)));break;}case _0x2d9232[_0x557b78(0x132)]['PERMISSION_REJ']:this[_0x557b78(0x249)]({'isPermissionRej':!0x0});}}catch(_0x199933){throw console[_0x557b78(0x18c)](_0x557b78(0x33b),_0x199933),_0x199933;}}))),this[_0x3f5097(0x157)];}[_0x287b51(0x2ea)](){const _0x2eaeca=_0x287b51;this[_0x2eaeca(0x24e)]=!0x1;}['_lockTransition'](){const _0x3834b3=_0x287b51;if(this['_transitionLocked'])throw new Error(_0x3834b3(0x235));this['_transitionLocked']=!0x0;}[_0x287b51(0x33c)](_0x6ecb5e){const _0x4f6b00=_0x287b51;this[_0x4f6b00(0x46a)](),this[_0x4f6b00(0x3eb)](this[_0x4f6b00(0x157)][_0x4f6b00(0x404)](_0x6ecb5e)),this[_0x4f6b00(0x2ea)]();}[_0x287b51(0x3fa)](_0x3f3823){const _0x1883d8=_0x287b51;if(!(_0x3f3823['revision']<=this['_revisionService']['getCurrentRevForDocument'](this[_0x1883d8(0x2e4)]))){if(this[_0x1883d8(0x419)]){this[_0x1883d8(0x475)][_0x1883d8(0x344)](_0x3f3823);return;}this[_0x1883d8(0xda)](_0x3f3823);}}[_0x287b51(0x3a7)](){const _0x19cc3a=_0x287b51;this['_remoteChangesetQueue'][_0x19cc3a(0x3cf)](_0x2045b7=>this[_0x19cc3a(0xda)](_0x2045b7)),this[_0x19cc3a(0x475)]=[];}['_applyRemoteChangeset'](_0xe00013){const _0x16cfa9=_0x287b51,_0xddecc6=this[_0x16cfa9(0x3d8)][_0x16cfa9(0x2ee)][_0x16cfa9(0x3ee)](this[_0x16cfa9(0x3d8)]['interceptor'][_0x16cfa9(0x170)]()[_0x16cfa9(0x26e)])(_0xe00013[_0x16cfa9(0x49c)],null)||_0xe00013[_0x16cfa9(0x49c)],_0x2ac4e5={..._0xe00013,'mutations':_0xddecc6};this[_0x16cfa9(0x46a)](),this[_0x16cfa9(0x3eb)](this[_0x16cfa9(0x157)]['onRemoteChangeset'](_0x2ac4e5)),this[_0x16cfa9(0x2ea)]();}['_onRemoteACK'](_0x5238fa){const _0x528980=_0x287b51;this['_lockTransition'](),this[_0x528980(0x3eb)](this['_state'][_0x528980(0x2d7)](_0x5238fa)),this[_0x528980(0x2ea)]();}[_0x287b51(0x249)](_0x5dcd05){const _0x24dcfc=_0x287b51;this[_0x24dcfc(0x46a)](),this[_0x24dcfc(0x3eb)](this[_0x24dcfc(0x157)]['onRemoteRej'](_0x5dcd05)),this[_0x24dcfc(0x2ea)]();}[_0x287b51(0x384)](_0x1c179a){const _0x232fe8=_0x287b51;if(!(this[_0x232fe8(0x157)]instanceof _0x554211))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x10295d=_0x1c179a[_0x232fe8(0x1b3)](_0x8af378=>{const _0x13c6ee=_0x232fe8,_0x55532c=this['_compressMutationService'][_0x13c6ee(0x2ee)][_0x13c6ee(0x3ee)](this[_0x13c6ee(0x3d8)][_0x13c6ee(0x2ee)][_0x13c6ee(0x170)]()[_0x13c6ee(0x26e)])(_0x8af378[_0x13c6ee(0x49c)],null)||_0x8af378[_0x13c6ee(0x49c)];return{..._0x8af378,'mutations':_0x55532c};});this[_0x232fe8(0x46a)](),this[_0x232fe8(0x3eb)](this['_state'][_0x232fe8(0x415)](_0x10295d)),this[_0x232fe8(0x2ea)]();}['_toggleOffline'](){const _0x37210b=_0x287b51;this[_0x37210b(0x46a)](),this[_0x37210b(0x3eb)](this[_0x37210b(0x157)][_0x37210b(0x1f8)]()),this[_0x37210b(0x2ea)]();}[_0x287b51(0x255)](){const _0x1cd94a=_0x287b51;this[_0x1cd94a(0x46a)](),this[_0x1cd94a(0x3eb)](this[_0x1cd94a(0x157)][_0x1cd94a(0x40e)]()),this[_0x1cd94a(0x2ea)]();}async[_0x287b51(0x141)](){return new Promise(_0x5b4e3f=>{const _0x590762=_0x54b9;this['_session'][_0x590762(0xf1)][_0x590762(0x3fc)](_0x48b0e4[_0x590762(0x312)](0x1))[_0x590762(0x2df)](async _0x375098=>{const _0x1e7d9f=_0x590762;_0x5b4e3f(await this[_0x1e7d9f(0x35d)](_0x375098===_0x423d5f[_0x1e7d9f(0x28e)]));});});}[_0x287b51(0x140)](){const _0x4f1a77=this['unitID'];return{'onStateChange':(_0x424b2f,_0x30f1fb)=>{const _0x1abcad=_0x54b9;if(_0x424b2f!==this[_0x1abcad(0x157)])throw new Error(_0x1abcad(0x47e)+_0x424b2f['status']+_0x1abcad(0x11e)+_0x30f1fb[_0x1abcad(0x498)]+'\x0aCurrent:\x20'+this['_state'][_0x1abcad(0x498)]);this[_0x1abcad(0x3eb)](_0x30f1fb);},'onSendChangeset':_0x2fb64e=>{const _0x35ce80=_0x54b9,_0x15783f={'eventID':_0x2d9232['CollaborationEvent'][_0x35ce80(0x336)],'data':{'unitID':_0x2fb64e[_0x35ce80(0x2e4)],'unitType':this[_0x35ce80(0x2bd)],'changeset':_0x2fb64e,'memberID':this[_0x35ce80(0x488)]['getMemberID']()}};this[_0x35ce80(0x488)][_0x35ce80(0x272)](_0x15783f,this[_0x35ce80(0x2e4)]);},'onMissingChangesets':({from:_0x313d24,to:_0x209163})=>{const _0x3f480f=_0x54b9;this[_0x3f480f(0x462)][_0x3f480f(0x337)]('[CollaborationEntity]',_0x3f480f(0x23f)+_0x313d24+_0x3f480f(0xf3)+_0x209163);const _0x29ecdd={'eventID':_0x2d9232['CollaborationEvent'][_0x3f480f(0x192)],'data':{'unitID':_0x4f1a77,'unitType':this[_0x3f480f(0x2bd)],'from':_0x313d24,'to':_0x209163}};this[_0x3f480f(0x488)][_0x3f480f(0x272)](_0x29ecdd,this[_0x3f480f(0x2e4)]);}};}async[_0x287b51(0x35d)](_0x3bac04){const _0x294b04=_0x287b51;var _0x100942,_0x19fda0;const _0x1b4e9b=await this['_localCacheService'][_0x294b04(0x244)](this['unitID']),_0xa2461=(_0x100942=_0x1b4e9b==null?void 0x0:_0x1b4e9b[_0x294b04(0x49c)])!=null?_0x100942:[],_0x182c59=(_0x19fda0=_0x1b4e9b==null?void 0x0:_0x1b4e9b[_0x294b04(0x3f9)])!=null?_0x19fda0:null,_0x1a6c96=this[_0x294b04(0x2e4)];try{this[_0x294b04(0x2c6)](_0x182c59,_0xa2461);}catch(_0x24037f){this['_logService'][_0x294b04(0x18c)](_0x24037f);}const _0x35d6f8=this['_createHandler']();if(_0x3bac04){const _0x5643ca=_0x85f86b(this[_0x294b04(0x1e4)],_0x1a6c96,this[_0x294b04(0x2bd)],_0x182c59,_0xa2461,_0x35d6f8);return _0x5643ca instanceof _0x48851c?_0x5643ca[_0x294b04(0x173)]():(_0x5643ca instanceof _0x3d8885||_0x5643ca instanceof _0x237fe0)&&_0x5643ca[_0x294b04(0x14b)](),_0x5643ca;}return this['_injector'][_0x294b04(0x31e)](_0x53e14b,_0x1a6c96,this[_0x294b04(0x2bd)],_0x182c59,_0xa2461,_0x35d6f8);}[_0x287b51(0x2c6)](_0x3618b2,_0x1cdd4b){const _0x4cac74=_0x287b51;var _0x5dd3eb,_0x586ce2;const _0x2961ea=this[_0x4cac74(0x3d8)][_0x4cac74(0x2ee)][_0x4cac74(0x3ee)](this[_0x4cac74(0x3d8)][_0x4cac74(0x2ee)][_0x4cac74(0x170)]()[_0x4cac74(0x26e)]);(_0x5dd3eb=_0x2961ea((_0x3618b2==null?void 0x0:_0x3618b2[_0x4cac74(0x49c)])||[],null))==null||_0x5dd3eb[_0x4cac74(0x3cf)](_0x435025=>this['_commandService'][_0x4cac74(0x2f8)](_0x435025['id'],_0x435025[_0x4cac74(0x231)])),(_0x586ce2=_0x2961ea(_0x1cdd4b||[],null))==null||_0x586ce2[_0x4cac74(0x3cf)](_0x16b0f4=>this[_0x4cac74(0x279)]['executeCommand'](_0x16b0f4['id'],_0x16b0f4[_0x4cac74(0x231)]));}};_0xd33c69=_0x1585e9([_0x58845f(0x3,_0x1bb894[_0x287b51(0x307)](_0x1bb894[_0x287b51(0x22d)])),_0x58845f(0x4,_0x1bb894[_0x287b51(0x307)](_0x10dd67[_0x287b51(0x36f)])),_0x58845f(0x5,_0x1bb894[_0x287b51(0x307)](_0x2d9232[_0x287b51(0x408)])),_0x58845f(0x6,_0x1bb894[_0x287b51(0x307)](_0x1c4e07[_0x287b51(0x427)])),_0x58845f(0x7,_0x1bb894[_0x287b51(0x307)](_0x2d9232[_0x287b51(0x112)])),_0x58845f(0x8,_0x1c4e07[_0x287b51(0x2ab)]),_0x58845f(0x9,_0x1c4e07[_0x287b51(0x341)]),_0x58845f(0xa,_0xbf76b9[_0x287b51(0x317)]),_0x58845f(0xb,_0x1c4e07[_0x287b51(0x39d)]),_0x58845f(0xc,_0x1bb894[_0x287b51(0x38c)](_0x3077b8))],_0xd33c69);let _0x147769=class extends _0xd33c69{constructor(_0x54e932,_0xf2650a,_0x35f5c7,_0x13973d,_0x25f6da,_0x2a04e3,_0x1dc4db,_0x1feccc,_0x1f640e,_0x33e1d1,_0x2dd5d7,_0x8df5e7,_0x43a849,_0x682a55,_0x88f5c0,_0x378328,_0x344266){const _0x22a992=_0x287b51;super(_0x54e932,_0xf2650a,_0x35f5c7,_0x13973d,_0x25f6da,_0x2a04e3,_0x1dc4db,_0x1feccc,_0x43a849,_0x682a55,_0x88f5c0,_0x378328,_0x344266),this[_0x22a992(0x2e4)]=_0x54e932,this[_0x22a992(0x3ca)]=_0xf2650a,this[_0x22a992(0x395)]=_0x35f5c7,this[_0x22a992(0x17f)]=_0x1f640e,this[_0x22a992(0x2bc)]=_0x33e1d1,this[_0x22a992(0x461)]=_0x2dd5d7,this['_docSyncEditingCollabCursorService']=_0x8df5e7;}[_0x287b51(0x140)](){const _0x26f09a=_0x287b51,_0x5e42e1=super[_0x26f09a(0x140)]();return _0x5e42e1[_0x26f09a(0x328)]=_0x32634a=>this[_0x26f09a(0x2bc)][_0x26f09a(0x230)](_0x32634a),_0x5e42e1[_0x26f09a(0x219)]=_0x56db80=>this[_0x26f09a(0x461)][_0x26f09a(0x3ad)](_0x56db80),_0x5e42e1['onSyncEditingCollabCursor']=_0x57a765=>this['_docSyncEditingCollabCursorService'][_0x26f09a(0x19f)](_0x57a765),_0x5e42e1['onTransformRemoteChangesetByIMECache']=_0x37ec97=>this[_0x26f09a(0x2bc)]['transformRemoteChangeset'](_0x37ec97),_0x5e42e1;}async['_init'](){const _0x71298f=_0x287b51,_0x2f505b=await super[_0x71298f(0x2c2)]();return this[_0x71298f(0x17f)][_0x71298f(0x11d)][_0x71298f(0x3fc)](_0x1d06c2[_0x71298f(0x271)](this['dispose$']))[_0x71298f(0x2df)](_0x3d9d63=>{const _0x57a929=_0x71298f;if(_0x3d9d63==null)return;const {unitId:_0xb066aa,redoState:_0x3b3a78,commandId:_0x166d57}=_0x3d9d63;if(_0xb066aa!==this[_0x57a929(0x2e4)])return;const _0x428c27={'id':_0x166d57,'type':_0x1c4e07[_0x57a929(0x3f7)][_0x57a929(0x101)],'params':{'unitId':_0xb066aa,'actions':_0x3b3a78[_0x57a929(0x396)],'textRanges':null}};this['_onLocalMutation'](_0x428c27);}),_0x2f505b;}};_0x147769=_0x1585e9([_0x58845f(0x3,_0x1bb894[_0x287b51(0x307)](_0x1bb894[_0x287b51(0x22d)])),_0x58845f(0x4,_0x1bb894[_0x287b51(0x307)](_0x10dd67[_0x287b51(0x36f)])),_0x58845f(0x5,_0x1bb894[_0x287b51(0x307)](_0x2d9232[_0x287b51(0x408)])),_0x58845f(0x6,_0x1bb894[_0x287b51(0x307)](_0x1c4e07[_0x287b51(0x427)])),_0x58845f(0x7,_0x1bb894['Inject'](_0x2d9232[_0x287b51(0x112)])),_0x58845f(0x8,_0x1bb894['Inject'](_0x48d622[_0x287b51(0xe0)])),_0x58845f(0x9,_0x1bb894['Inject'](_0xb1ca15)),_0x58845f(0xa,_0x1bb894[_0x287b51(0x307)](_0x55142a)),_0x58845f(0xb,_0x1bb894[_0x287b51(0x307)](_0x1dcff6)),_0x58845f(0xc,_0x1c4e07[_0x287b51(0x2ab)]),_0x58845f(0xd,_0x1c4e07[_0x287b51(0x341)]),_0x58845f(0xe,_0xbf76b9[_0x287b51(0x317)]),_0x58845f(0xf,_0x1c4e07[_0x287b51(0x39d)]),_0x58845f(0x10,_0x1bb894['Optional'](_0x3077b8))],_0x147769);let _0x499e7e=class extends _0xd33c69{constructor(_0x163ab7,_0x474aa8,_0x3b9d44,_0x3a677f,_0x16cba5,_0x4e0198,_0x2db1b3,_0x152705,_0x5b4d28,_0xae3bd2,_0x327aff,_0x514197,_0x1bc7bf,_0x3bb710){const _0x4098d3=_0x287b51;super(_0x163ab7,_0x474aa8,_0x3b9d44,_0x3a677f,_0x16cba5,_0x4e0198,_0x2db1b3,_0x152705,_0xae3bd2,_0x327aff,_0x514197,_0x1bc7bf,_0x3bb710),this['unitID']=_0x163ab7,this[_0x4098d3(0x3ca)]=_0x474aa8,this[_0x4098d3(0x395)]=_0x3b9d44,this['_sheetTransformSelectionsService']=_0x5b4d28;}['_createHandler'](){const _0x347865=_0x287b51,_0x42e8c2=super[_0x347865(0x140)]();return _0x42e8c2[_0x347865(0x219)]=_0x55f135=>this['_sheetTransformSelectionsService'][_0x347865(0x3ad)](_0x55f135),_0x42e8c2;}async[_0x287b51(0x2c2)](){const _0x11c7fb=_0x287b51,_0x3ab37e=await super[_0x11c7fb(0x2c2)]();return this[_0x11c7fb(0x346)](this[_0x11c7fb(0x279)][_0x11c7fb(0x24a)]((_0x525972,_0x268d23)=>{const _0x5c993d=_0x11c7fb;if(_0x525972['type']!==_0x1c4e07[_0x5c993d(0x3f7)][_0x5c993d(0x101)]||_0x268d23!=null&&_0x268d23[_0x5c993d(0x327)]||_0x268d23!=null&&_0x268d23[_0x5c993d(0x390)])return;const _0x48a2a4=_0x525972[_0x5c993d(0x231)];if((_0x48a2a4==null?void 0x0:_0x48a2a4[_0x5c993d(0x1db)])!==this['unitID'])return;const _0x3fbdd6=_0x525972,_0x72e35e=this['_compressMutationService'][_0x5c993d(0x2ee)][_0x5c993d(0x3ee)](this[_0x5c993d(0x3d8)][_0x5c993d(0x2ee)][_0x5c993d(0x170)]()['COMPRESS_MUTATION_SEND'])([_0x3fbdd6],null)||[_0x3fbdd6];this[_0x5c993d(0x33c)](_0x72e35e[0x0]);})),_0x3ab37e;}};_0x499e7e=_0x1585e9([_0x58845f(0x3,_0x1bb894[_0x287b51(0x307)](_0x1bb894[_0x287b51(0x22d)])),_0x58845f(0x4,_0x1bb894[_0x287b51(0x307)](_0x10dd67[_0x287b51(0x36f)])),_0x58845f(0x5,_0x1bb894[_0x287b51(0x307)](_0x2d9232[_0x287b51(0x408)])),_0x58845f(0x6,_0x1bb894[_0x287b51(0x307)](_0x1c4e07[_0x287b51(0x427)])),_0x58845f(0x7,_0x1bb894[_0x287b51(0x307)](_0x2d9232['RevisionService'])),_0x58845f(0x8,_0x1bb894[_0x287b51(0x307)](_0x3de67e)),_0x58845f(0x9,_0x1c4e07[_0x287b51(0x2ab)]),_0x58845f(0xa,_0x1c4e07[_0x287b51(0x341)]),_0x58845f(0xb,_0xbf76b9[_0x287b51(0x317)]),_0x58845f(0xc,_0x1c4e07['IPermissionService']),_0x58845f(0xd,_0x1bb894[_0x287b51(0x38c)](_0x3077b8))],_0x499e7e);const _0x5adb95=[_0x287b51(0x1df),_0x287b51(0x1a1),'verdancy600',_0x287b51(0x100),_0x287b51(0x2fc),_0x287b51(0x2e8)];class _0x3457a1 extends _0x1c4e07[_0x287b51(0x154)]{constructor(){super(...arguments),_0x6a44fc(this,'_assignedColors',new Map()),_0x6a44fc(this,'_colorIndex',0x0);}[_0x287b51(0x3ab)](_0x346e9e){const _0x35618d=_0x287b51;if(this['_assignedColors'][_0x35618d(0x497)](_0x346e9e))return this[_0x35618d(0x1fe)][_0x35618d(0x2e7)](_0x346e9e);const _0x5e37bc=_0x5adb95[this[_0x35618d(0x1c4)]];return this[_0x35618d(0x1c4)]=(this['_colorIndex']+0x1)%_0x5adb95[_0x35618d(0x28c)],this[_0x35618d(0x1fe)]['set'](_0x346e9e,_0x5e37bc),_0x5e37bc;}}var _0x13ae8e=Object['defineProperty'],_0x47aac1=Object[_0x287b51(0x38a)],_0x188425=(_0x43a004,_0x507e82,_0x2e6736,_0x33554f)=>{const _0xf7463f=_0x287b51;for(var _0x369912=_0x33554f>0x1?void 0x0:_0x33554f?_0x47aac1(_0x507e82,_0x2e6736):_0x507e82,_0xacef25=_0x43a004[_0xf7463f(0x28c)]-0x1,_0x4298b8;_0xacef25>=0x0;_0xacef25--)(_0x4298b8=_0x43a004[_0xacef25])&&(_0x369912=(_0x33554f?_0x4298b8(_0x507e82,_0x2e6736,_0x369912):_0x4298b8(_0x369912))||_0x369912);return _0x33554f&&_0x369912&&_0x13ae8e(_0x507e82,_0x2e6736,_0x369912),_0x369912;},_0x252387=(_0x48be4e,_0xe8d33f)=>(_0x154a57,_0x49aa4c)=>_0xe8d33f(_0x154a57,_0x49aa4c,_0x48be4e);const _0x156509=0x12c,_0x29d2c4=0x64,_0x276d63=()=>{let _0x497b64=[],_0x20a108=!0x1;return _0x41d1f9=>{const _0x5f048b=_0x54b9;_0x497b64[_0x5f048b(0x344)](_0x41d1f9),_0x20a108||(_0x20a108=!0x0,setTimeout(()=>{const _0x3250c5=_0x5f048b;_0x497b64[_0x3250c5(0x3cf)](_0x4bd4af=>_0x4bd4af()),_0x497b64=[],_0x20a108=!0x1;}));};};let _0x5ce972=class extends _0x1c4e07[_0x287b51(0x486)]{constructor(_0x33b524,_0x8ba54d,_0x19b748,_0x37bd2e,_0x54fc4a,_0x2d5a8a,_0x32d41b,_0x234bbc){const _0x5f3ea9=_0x287b51;super(),_0x6a44fc(this,_0x5f3ea9(0x26b),!0x1),_0x6a44fc(this,_0x5f3ea9(0x2c2),!0x1),_0x6a44fc(this,'_cursorInfo$',new _0x1d06c2[(_0x5f3ea9(0x1d4))](new Map())),_0x6a44fc(this,_0x5f3ea9(0x2c9),this[_0x5f3ea9(0x42a)]['asObservable']()),_0x6a44fc(this,'_roomMembers$',new _0x1d06c2[(_0x5f3ea9(0x1d4))]([])),_0x6a44fc(this,_0x5f3ea9(0x117),this[_0x5f3ea9(0x42d)]['pipe'](_0x1d06c2['debounceTime'](_0x156509))),_0x6a44fc(this,'_updateLocalCursor',_0x177720((_0x4da11b,_0x3819b9)=>{const _0x3c9554=_0x5f3ea9,_0x107c0e={'eventID':_0x2d9232[_0x3c9554(0x132)][_0x3c9554(0x333)],'data':{'unitID':this[_0x3c9554(0x2e4)],'memberID':this['_session']['getMemberID'](),'selection':_0x45fd66[_0x3c9554(0x248)](_0x4da11b,_0x3819b9[_0x3c9554(0x277)])}};this[_0x3c9554(0x488)][_0x3c9554(0x272)](_0x107c0e,this[_0x3c9554(0x2e4)]);},_0x29d2c4)),(this['unitID']=_0x33b524,this[_0x5f3ea9(0x488)]=_0x8ba54d,this[_0x5f3ea9(0x1e4)]=_0x19b748,this[_0x5f3ea9(0x295)]=_0x37bd2e,this[_0x5f3ea9(0x229)]=_0x54fc4a,this[_0x5f3ea9(0x455)]=_0x2d5a8a,this[_0x5f3ea9(0x279)]=_0x32d41b,this['_refRangeService']=_0x234bbc);}get[_0x287b51(0x45d)](){const _0x50cbbb=_0x287b51;return this['_cursorInfo$'][_0x50cbbb(0x247)]();}get[_0x287b51(0x391)](){const _0x46b561=_0x287b51;return this[_0x46b561(0x42d)][_0x46b561(0x247)]();}[_0x287b51(0x1be)](){const _0x31ae42=_0x287b51;super[_0x31ae42(0x1be)](),this[_0x31ae42(0x42a)]['next'](new Map()),this[_0x31ae42(0x42a)][_0x31ae42(0x421)](),this[_0x31ae42(0x42d)]['next']([]),this[_0x31ae42(0x42d)][_0x31ae42(0x421)]();}[_0x287b51(0x47b)](){const _0x3a2a19=_0x287b51;this[_0x3a2a19(0x2c2)]||(this[_0x3a2a19(0x2c2)]=!0x0,this[_0x3a2a19(0x488)][_0x3a2a19(0xf1)]['pipe'](_0x1d06c2[_0x3a2a19(0x271)](this[_0x3a2a19(0x435)]))[_0x3a2a19(0x2df)](_0x47ea75=>{const _0x155006=_0x3a2a19;_0x47ea75===_0x423d5f[_0x155006(0x28e)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x3a2a19(0x488)][_0x3a2a19(0x189)][_0x3a2a19(0x3fc)](_0x1d06c2['takeUntil'](this['dispose$']))[_0x3a2a19(0x2df)](_0x449038=>{const _0x36f1ac=_0x3a2a19,_0x17428e=_0x449038[_0x36f1ac(0x123)];_0x17428e===_0x2d9232[_0x36f1ac(0x132)][_0x36f1ac(0x333)]&&this[_0x36f1ac(0x1f0)](_0x449038),_0x17428e===_0x2d9232[_0x36f1ac(0x132)][_0x36f1ac(0xe7)]&&this[_0x36f1ac(0x42c)](_0x449038);}),this['_onRefRangeChange'](),this['disposeWithMe'](this[_0x3a2a19(0x279)][_0x3a2a19(0x24a)](_0x17ff94=>{const _0x5d338d=_0x3a2a19;if(this[_0x5d338d(0x26b)]&&_0x17ff94['id']===_0x58e6c7[_0x5d338d(0x13b)]['id']&&_0x17ff94[_0x5d338d(0x231)][_0x5d338d(0x1db)]===this[_0x5d338d(0x2e4)]){const _0xee6f2e=_0x17ff94[_0x5d338d(0x231)];this[_0x5d338d(0x25d)](_0xee6f2e[_0x5d338d(0x437)],_0xee6f2e[_0x5d338d(0x2fb)][0x0]);}})));}[_0x287b51(0x1f0)](_0x53016f){const _0x30df86=_0x287b51;var _0x275a30,_0x349964;const {memberID:_0x1a85ef,selection:_0x4674a1}=_0x53016f[_0x30df86(0x40f)],{sheetName:_0x4f4679,range:_0x28844f}=_0x45fd66[_0x30df86(0x398)](_0x4674a1),_0x513115={'name':(_0x349964=(_0x275a30=this[_0x30df86(0x229)][_0x30df86(0x1cb)](this[_0x30df86(0x2e4)],_0x1a85ef))==null?void 0x0:_0x275a30[_0x30df86(0x12b)])!=null?_0x349964:'Unknown\x20user','range':this[_0x30df86(0x44f)](_0x4f4679,_0x28844f),'sheetID':_0x4f4679,'color':this[_0x30df86(0x295)][_0x30df86(0x3ab)](_0x1a85ef),'selection':_0x4674a1},_0x4233f6=this[_0x30df86(0x45d)];_0x4233f6['set'](_0x1a85ef,_0x513115),this['_cursorInfo$']['next'](_0x4233f6);}['_onCursorDelete'](_0x537b41){const _0x5a6b4f=_0x287b51,{memberID:_0x419e54}=_0x537b41[_0x5a6b4f(0x40f)],_0x136097=this['cursorInfo'];_0x136097['delete'](_0x419e54),this[_0x5a6b4f(0x42a)][_0x5a6b4f(0x297)](_0x136097);}[_0x287b51(0x44f)](_0x1845ea,_0x31c45d){const _0x2cbf68=_0x287b51;var _0x1fcf16,_0x3f5985;const _0x366fdc=(_0x3f5985=(_0x1fcf16=this['_univerInstanceService'][_0x2cbf68(0x1cc)](this[_0x2cbf68(0x2e4)]))==null?void 0x0:_0x1fcf16['getSheetBySheetId'](_0x1845ea))==null?void 0x0:_0x3f5985[_0x2cbf68(0x420)]();return(_0x366fdc==null?void 0x0:_0x366fdc[_0x2cbf68(0x256)](_0x20c3ce=>_0x1c4e07[_0x2cbf68(0x1f1)][_0x2cbf68(0x3ea)](_0x20c3ce,_0x31c45d)))||_0x31c45d;}[_0x287b51(0x33f)](){const _0x5a4a09=_0x287b51,_0x3a230a=new _0x1c4e07[(_0x5a4a09(0x432))](),_0x1266a0=_0x276d63(),_0x22001e=()=>{const _0x3365d8=_0x5a4a09;_0x3a230a[_0x3365d8(0x1be)]();const _0x15fe15=(_0x51d315,_0x5585f1,_0x3dc26e,_0x112785)=>{const _0x10112d=_0x3365d8;let _0x4445b9=[];switch(_0x51d315['id']){case _0x58e6c7[_0x10112d(0x48a)][_0x10112d(0x30b)]:{_0x4445b9=_0x58e6c7[_0x10112d(0x34e)](_0x51d315,_0x112785);break;}case _0x58e6c7['EffectRefRangId'][_0x10112d(0x3a8)]:{_0x4445b9=_0x58e6c7[_0x10112d(0x31c)](_0x51d315,_0x112785);break;}case _0x58e6c7['EffectRefRangId'][_0x10112d(0x102)]:{_0x4445b9=_0x58e6c7[_0x10112d(0x34d)](_0x51d315,_0x112785);break;}case _0x58e6c7[_0x10112d(0x48a)][_0x10112d(0x20f)]:{_0x4445b9=_0x58e6c7[_0x10112d(0x2c0)](_0x51d315,_0x112785);break;}case _0x58e6c7[_0x10112d(0x48a)][_0x10112d(0x1a5)]:{_0x4445b9=_0x58e6c7[_0x10112d(0x38f)](_0x51d315,_0x112785);break;}case _0x58e6c7[_0x10112d(0x48a)][_0x10112d(0x3be)]:{_0x4445b9=_0x58e6c7[_0x10112d(0x1bc)](_0x51d315,_0x112785);break;}case _0x58e6c7['EffectRefRangId'][_0x10112d(0x40d)]:{_0x4445b9=_0x58e6c7[_0x10112d(0x1b7)](_0x51d315,_0x112785);break;}case _0x58e6c7['EffectRefRangId'][_0x10112d(0x2b3)]:{_0x4445b9=_0x58e6c7[_0x10112d(0x160)](_0x51d315,_0x112785);break;}case _0x58e6c7['EffectRefRangId'][_0x10112d(0x10e)]:{_0x4445b9=_0x58e6c7['handleIRemoveRow'](_0x51d315,_0x112785);break;}}const _0xfda2e5=_0x58e6c7['runRefRangeMutations'](_0x4445b9,_0x112785),_0x19368b=this[_0x10112d(0x45d)][_0x10112d(0x2e7)](_0x5585f1);if(_0x19368b&&_0xfda2e5){const _0x282d9c={..._0x19368b,'range':_0xfda2e5};this[_0x10112d(0x45d)]['set'](_0x5585f1,_0x282d9c),_0x1266a0(()=>{const _0x398bb6=_0x10112d,_0x34f391=this[_0x398bb6(0xf5)][_0x398bb6(0x32c)](_0xfda2e5,_0x3233af=>(_0x34f391[_0x398bb6(0x1be)](),_0x15fe15(_0x3233af,_0x5585f1,_0x3dc26e,_0xfda2e5)));_0x3a230a[_0x398bb6(0x15a)](_0x34f391);});}return{'redos':[],'undos':[]};};this[_0x3365d8(0x45d)]['forEach']((_0x340cb1,_0x40b255)=>{const _0xb412dc=_0x3365d8,{range:_0x4f7a28,sheetID:_0x297e8a}=_0x340cb1,_0xfc78f8=this['_refRangeService'][_0xb412dc(0x32c)](_0x4f7a28,_0x28a055=>(_0xfc78f8[_0xb412dc(0x1be)](),_0x15fe15(_0x28a055,_0x40b255,_0x297e8a,_0x4f7a28)));_0x3a230a[_0xb412dc(0x15a)](_0xfc78f8);});};this[_0x5a4a09(0x346)](_0x1c4e07['toDisposable'](this[_0x5a4a09(0x42a)][_0x5a4a09(0x2df)](()=>{_0x22001e();})));}[_0x287b51(0x255)](){const _0x2500c1=_0x287b51;var _0x214c98,_0x2f1ce1;if(this[_0x2500c1(0x26b)]=!0x0,((_0x214c98=this[_0x2500c1(0x455)]['getFocusedUnit']())==null?void 0x0:_0x214c98['getUnitId']())!==this['unitID'])return;const _0x2673a3=(_0x2f1ce1=this[_0x2500c1(0x1e4)][_0x2500c1(0x2e7)](_0x58e6c7[_0x2500c1(0x436)])[_0x2500c1(0x34a)]())==null?void 0x0:_0x2f1ce1[0x0],_0x46e659=this[_0x2500c1(0x455)][_0x2500c1(0x39b)](_0x1c4e07[_0x2500c1(0x3f1)][_0x2500c1(0x373)])[_0x2500c1(0x473)]();_0x2673a3&&_0x46e659&&this[_0x2500c1(0x25d)](_0x46e659[_0x2500c1(0x434)](),_0x2673a3);}[_0x287b51(0x365)](){const _0x266e5d=_0x287b51;this[_0x266e5d(0x26b)]=!0x1;}};_0x5ce972=_0x188425([_0x252387(0x2,_0x1bb894[_0x287b51(0x307)](_0x1bb894['Injector'])),_0x252387(0x3,_0x1bb894[_0x287b51(0x307)](_0x3457a1)),_0x252387(0x4,_0x1bb894[_0x287b51(0x307)](_0x6d0d68)),_0x252387(0x5,_0x1c4e07['IUniverInstanceService']),_0x252387(0x6,_0x1c4e07[_0x287b51(0x341)]),_0x252387(0x7,_0x1bb894[_0x287b51(0x307)](_0x58e6c7[_0x287b51(0x3f2)]))],_0x5ce972);var _0x58a505=Object[_0x287b51(0x2aa)],_0x2ab494=Object[_0x287b51(0x38a)],_0xecbd1b=(_0x37ca14,_0x20d994,_0x4e6468,_0x31b040)=>{const _0xa6ea05=_0x287b51;for(var _0x148c37=_0x31b040>0x1?void 0x0:_0x31b040?_0x2ab494(_0x20d994,_0x4e6468):_0x20d994,_0x9e8d6d=_0x37ca14[_0xa6ea05(0x28c)]-0x1,_0x1ca537;_0x9e8d6d>=0x0;_0x9e8d6d--)(_0x1ca537=_0x37ca14[_0x9e8d6d])&&(_0x148c37=(_0x31b040?_0x1ca537(_0x20d994,_0x4e6468,_0x148c37):_0x1ca537(_0x148c37))||_0x148c37);return _0x31b040&&_0x148c37&&_0x58a505(_0x20d994,_0x4e6468,_0x148c37),_0x148c37;},_0x1b7727=(_0x3a97ce,_0x2d2cdf)=>(_0x23be3b,_0x511d1a)=>_0x2d2cdf(_0x23be3b,_0x511d1a,_0x3a97ce);const _0x554783=0x12c,_0x206fc3=0x64;let _0x9fd99d=class extends _0x1c4e07[_0x287b51(0x486)]{constructor(_0x5f31b8,_0x55437a,_0x217a9a,_0x277a58,_0x4ac4ce,_0x2498cd,_0x243123,_0x53eebd,_0x233b5a){const _0xc3b0c7=_0x287b51;super(),_0x6a44fc(this,_0xc3b0c7(0x26b),!0x1),_0x6a44fc(this,_0xc3b0c7(0x2c2),!0x1),_0x6a44fc(this,_0xc3b0c7(0x42a),new _0x1d06c2[(_0xc3b0c7(0x1d4))](new Map())),_0x6a44fc(this,_0xc3b0c7(0x2c9),this[_0xc3b0c7(0x42a)][_0xc3b0c7(0x378)]()),_0x6a44fc(this,_0xc3b0c7(0x42d),new _0x1d06c2['BehaviorSubject']([])),_0x6a44fc(this,_0xc3b0c7(0x117),this[_0xc3b0c7(0x42d)][_0xc3b0c7(0x3fc)](_0x1d06c2['debounceTime'](_0x554783))),_0x6a44fc(this,_0xc3b0c7(0x25d),_0x177720(_0x4210b1=>{const _0x1401c9=_0xc3b0c7,_0x474611={'eventID':_0x2d9232[_0x1401c9(0x132)][_0x1401c9(0x333)],'data':{'unitID':this[_0x1401c9(0x2e4)],'memberID':this[_0x1401c9(0x488)][_0x1401c9(0x27d)](),'selection':_0x14ee8d(_0x4210b1)}};this[_0x1401c9(0x488)][_0x1401c9(0x272)](_0x474611,this[_0x1401c9(0x2e4)]);},_0x206fc3)),(this[_0xc3b0c7(0x2e4)]=_0x5f31b8,this[_0xc3b0c7(0x488)]=_0x55437a,this[_0xc3b0c7(0x1e4)]=_0x217a9a,this['_colorAssignService']=_0x277a58,this[_0xc3b0c7(0x229)]=_0x4ac4ce,this[_0xc3b0c7(0x1c7)]=_0x2498cd,this[_0xc3b0c7(0x2ed)]=_0x243123,this[_0xc3b0c7(0x455)]=_0x53eebd,this['_commandService']=_0x233b5a);}get['cursorInfo'](){const _0x4772c4=_0x287b51;return this[_0x4772c4(0x42a)]['getValue']();}get[_0x287b51(0x391)](){const _0x26854a=_0x287b51;return this[_0x26854a(0x42d)][_0x26854a(0x247)]();}['dispose'](){const _0x316638=_0x287b51;super[_0x316638(0x1be)](),this['_cursorInfo$'][_0x316638(0x297)](new Map()),this[_0x316638(0x42a)][_0x316638(0x421)](),this['_roomMembers$']['next']([]),this[_0x316638(0x42d)][_0x316638(0x421)]();}[_0x287b51(0x47b)](){const _0x576498=_0x287b51;this[_0x576498(0x2c2)]||(this['_init']=!0x0,this['_session'][_0x576498(0xf1)]['pipe'](_0x1d06c2[_0x576498(0x271)](this[_0x576498(0x435)]))[_0x576498(0x2df)](_0x5a4586=>{const _0x3def9f=_0x576498;_0x5a4586===_0x423d5f[_0x3def9f(0x28e)]?this['_toggleOnline']():this[_0x3def9f(0x365)]();}),this[_0x576498(0x488)][_0x576498(0x189)][_0x576498(0x3fc)](_0x1d06c2[_0x576498(0x271)](this['dispose$']))[_0x576498(0x2df)](_0x443560=>{const _0x1621e1=_0x576498,_0x26537d=_0x443560[_0x1621e1(0x123)];_0x26537d===_0x2d9232['CollaborationEvent'][_0x1621e1(0x333)]&&this[_0x1621e1(0x1f0)](_0x443560),_0x26537d===_0x2d9232[_0x1621e1(0x132)][_0x1621e1(0xe7)]&&this[_0x1621e1(0x42c)](_0x443560);}),this[_0x576498(0x346)](this[_0x576498(0x279)][_0x576498(0x24a)](_0x2109a0=>{const _0x5c3278=_0x576498,_0x89077b=_0x2109a0[_0x5c3278(0x231)];_0x89077b!=null&&this[_0x5c3278(0x26b)]&&_0x2109a0['id']===_0x48d622[_0x5c3278(0x3a4)]['id']&&_0x89077b[_0x5c3278(0x1db)]===this[_0x5c3278(0x2e4)]&&_0x89077b['isEditing']===!0x1&&this['_updateLocalCursor'](_0x89077b[_0x5c3278(0x1dd)]);})),this['_syncEditingCollabCursorService']['collabCursorState$'][_0x576498(0x3fc)](_0x1d06c2[_0x576498(0x271)](this[_0x576498(0x435)]))[_0x576498(0x2df)](_0xfc8d02=>{const _0x412390=_0x576498;if((_0xfc8d02==null?void 0x0:_0xfc8d02[_0x412390(0x2e4)])!==this[_0x412390(0x2e4)])return;const _0xf7c0fb={'eventID':_0x2d9232[_0x412390(0x132)]['UPDATE_CURSOR'],'data':_0xfc8d02};this[_0x412390(0x1f0)](_0xf7c0fb);}),this[_0x576498(0x346)](this[_0x576498(0x279)][_0x576498(0x24a)](_0x14463c=>{const _0x45c740=_0x576498;if(_0x14463c[_0x45c740(0x231)]==null)return;const _0x3ff9fa=_0x14463c[_0x45c740(0x231)];if(_0x14463c['id']!==_0x48d622['RichTextEditingMutation']['id']||_0x3ff9fa[_0x45c740(0x1db)]!==this[_0x45c740(0x2e4)])return;const _0x2158e1={'id':_0x45c740(0x188),'params':_0x3ff9fa},_0x453c16=this[_0x45c740(0x45d)];for(const [_0x966ba1,_0x17c3eb]of _0x453c16){const _0x5cf984={'id':_0x45c740(0x188),'params':{'unitId':this[_0x45c740(0x2e4)],'actions':null,'textRanges':_0x17c3eb['ranges']}},_0x4fdbdb=this['_transformService']['transformMutation'](_0x2158e1,_0x5cf984,!0x1);if(_0x2d9232[_0x45c740(0x19b)](_0x4fdbdb))throw _0x4fdbdb[_0x45c740(0x18c)];_0x453c16[_0x45c740(0x288)](_0x966ba1,{..._0x17c3eb,'ranges':_0x4fdbdb['m2Prime'][_0x45c740(0x231)][_0x45c740(0x2d3)]});}queueMicrotask(()=>{const _0x48619b=_0x45c740;this[_0x48619b(0x42a)][_0x48619b(0x297)](_0x453c16);});})));}[_0x287b51(0x1f0)](_0x3b6755){const _0xa5875b=_0x287b51;var _0x4ef5d0,_0x14fb5e;const {memberID:_0x4f4e26,selection:_0xa53d8e}=_0x3b6755[_0xa5875b(0x40f)],_0x241911=_0x23ad82(_0xa53d8e),_0x1fce91=(_0x14fb5e=(_0x4ef5d0=this[_0xa5875b(0x229)][_0xa5875b(0x1cb)](this[_0xa5875b(0x2e4)],_0x4f4e26))==null?void 0x0:_0x4ef5d0[_0xa5875b(0x12b)])!=null?_0x14fb5e:_0xa5875b(0x2b8),_0x487d67={'color':this['_colorAssignService'][_0xa5875b(0x3ab)](_0x4f4e26),'name':_0x1fce91,'ranges':_0x241911},_0x5a6d3a=this['cursorInfo'];_0x5a6d3a['set'](_0x4f4e26,_0x487d67),this['_cursorInfo$'][_0xa5875b(0x297)](_0x5a6d3a);}['_onCursorDelete'](_0x968a7b){const _0x183097=_0x287b51,{memberID:_0x38dc49}=_0x968a7b[_0x183097(0x40f)],_0x4a1625=this[_0x183097(0x45d)];_0x4a1625['delete'](_0x38dc49),this[_0x183097(0x42a)][_0x183097(0x297)](_0x4a1625);}[_0x287b51(0x255)](){const _0x120056=_0x287b51;var _0x886e1c;if(this[_0x120056(0x26b)]=!0x0,((_0x886e1c=this[_0x120056(0x455)]['getFocusedUnit']())==null?void 0x0:_0x886e1c[_0x120056(0x305)]())!==this[_0x120056(0x2e4)])return;const _0x5be7f4=this['_injector'][_0x120056(0x2e7)](_0x48d622['TextSelectionManagerService'])[_0x120056(0x34a)](),_0x221d8d=_0x5be7f4==null?void 0x0:_0x5be7f4[_0x120056(0x1b3)](_0x48d622[_0x120056(0x17b)]);Array[_0x120056(0x416)](_0x221d8d)&&_0x221d8d['length']>0x0&&this[_0x120056(0x25d)](_0x221d8d);}[_0x287b51(0x365)](){this['_online']=!0x1;}};_0x9fd99d=_0xecbd1b([_0x1b7727(0x2,_0x1bb894[_0x287b51(0x307)](_0x1bb894['Injector'])),_0x1b7727(0x3,_0x1bb894[_0x287b51(0x307)](_0x3457a1)),_0x1b7727(0x4,_0x1bb894[_0x287b51(0x307)](_0x6d0d68)),_0x1b7727(0x5,_0x1bb894[_0x287b51(0x307)](_0x1dcff6)),_0x1b7727(0x6,_0x2d9232[_0x287b51(0x24f)]),_0x1b7727(0x7,_0x1c4e07[_0x287b51(0x443)]),_0x1b7727(0x8,_0x1c4e07[_0x287b51(0x341)])],_0x9fd99d);var _0x2c0b9b=Object[_0x287b51(0x2aa)],_0xc9f27b=Object['getOwnPropertyDescriptor'],_0x311fd1=(_0xa5fd1d,_0x51881b,_0x2736d3,_0xaf07cd)=>{const _0x5e78a0=_0x287b51;for(var _0x33ac93=_0xaf07cd>0x1?void 0x0:_0xaf07cd?_0xc9f27b(_0x51881b,_0x2736d3):_0x51881b,_0x291ec3=_0xa5fd1d[_0x5e78a0(0x28c)]-0x1,_0x43d560;_0x291ec3>=0x0;_0x291ec3--)(_0x43d560=_0xa5fd1d[_0x291ec3])&&(_0x33ac93=(_0xaf07cd?_0x43d560(_0x51881b,_0x2736d3,_0x33ac93):_0x43d560(_0x33ac93))||_0x33ac93);return _0xaf07cd&&_0x33ac93&&_0x2c0b9b(_0x51881b,_0x2736d3,_0x33ac93),_0x33ac93;},_0x326734=(_0x3eff88,_0x3dc83b)=>(_0x593c1e,_0x220e89)=>_0x3dc83b(_0x593c1e,_0x220e89,_0x3eff88);let _0x3f6476=class extends _0x1c4e07[_0x287b51(0x486)]{constructor(_0x1a1ae5,_0x4f8835,_0x172a62){const _0x510426=_0x287b51;super(),_0x6a44fc(this,_0x510426(0x445),new Map()),_0x6a44fc(this,'_entityInit$',new _0x1d06c2['Subject']()),(this[_0x510426(0x455)]=_0x1a1ae5,this[_0x510426(0x1e4)]=_0x4f8835,this[_0x510426(0x33d)]=_0x172a62,this[_0x510426(0x2c2)]());}[_0x287b51(0x1be)](){const _0x2781b2=_0x287b51;super[_0x2781b2(0x1be)](),this[_0x2781b2(0x2d5)]['complete'](),this[_0x2781b2(0x445)]['forEach'](_0x2f3929=>_0x2f3929[_0x2781b2(0x1be)]());}['getCollabCursors$'](_0x265171){const _0x5321a6=_0x287b51;return this[_0x5321a6(0x445)]['has'](_0x265171)?this[_0x5321a6(0x445)][_0x5321a6(0x2e7)](_0x265171)[_0x5321a6(0x2c9)]:this[_0x5321a6(0x2d5)][_0x5321a6(0x3fc)](_0x1d06c2[_0x5321a6(0x33e)](_0xc3fa5a=>_0xc3fa5a[_0x5321a6(0x2e4)]===_0x265171),_0x1d06c2[_0x5321a6(0x16b)](_0x5bfacd=>_0x5bfacd[_0x5321a6(0x2c9)]));}[_0x287b51(0x2c2)](){const _0x59d4ed=_0x287b51;this[_0x59d4ed(0x455)]['getTypeOfUnitAdded$'](_0x1c4e07[_0x59d4ed(0x3f1)][_0x59d4ed(0x373)])[_0x59d4ed(0x3fc)](_0x1d06c2[_0x59d4ed(0x271)](this[_0x59d4ed(0x435)]))[_0x59d4ed(0x2df)](async _0x427bb2=>{const _0x12b3e5=_0x59d4ed,_0x27bcb2=_0x427bb2[_0x12b3e5(0x305)](),_0xdb007d=await this[_0x12b3e5(0x45c)](_0x27bcb2);this[_0x12b3e5(0x2d5)][_0x12b3e5(0x297)](_0xdb007d),this[_0x12b3e5(0x445)][_0x12b3e5(0x288)](_0x27bcb2,_0xdb007d);}),this[_0x59d4ed(0x455)]['getTypeOfUnitAdded$'](_0x1c4e07[_0x59d4ed(0x3f1)][_0x59d4ed(0x104)])['pipe'](_0x1d06c2[_0x59d4ed(0x271)](this[_0x59d4ed(0x435)]))[_0x59d4ed(0x3fc)](_0x1d06c2[_0x59d4ed(0x33e)](_0x24f25a=>!_0x24f25a[_0x59d4ed(0x305)]()[_0x59d4ed(0x347)]('__')))[_0x59d4ed(0x2df)](async _0x1b55a7=>{const _0x472ee5=_0x59d4ed,_0x1e8132=_0x1b55a7[_0x472ee5(0x305)](),_0x1d9209=await this[_0x472ee5(0x195)](_0x1e8132);this['_entityInit$'][_0x472ee5(0x297)](_0x1d9209),this[_0x472ee5(0x445)]['set'](_0x1e8132,_0x1d9209);}),_0x1d06c2['merge'](this[_0x59d4ed(0x455)]['getTypeOfUnitDisposed$'](_0x1c4e07[_0x59d4ed(0x3f1)][_0x59d4ed(0x104)]),this['_univerInstanceService'][_0x59d4ed(0x203)](_0x1c4e07[_0x59d4ed(0x3f1)][_0x59d4ed(0x373)]))['pipe'](_0x1d06c2[_0x59d4ed(0x271)](this[_0x59d4ed(0x435)]))['subscribe'](_0x5c859d=>{const _0x405ce6=_0x59d4ed,_0x39ccbf=_0x5c859d[_0x405ce6(0x305)](),_0x1fddbe=this['_entities'][_0x405ce6(0x2e7)](_0x39ccbf);_0x1fddbe&&(_0x1fddbe['dispose'](),this[_0x405ce6(0x445)][_0x405ce6(0x3a9)](_0x39ccbf));});}async[_0x287b51(0x45c)](_0x36426e){const _0x28b8bd=_0x287b51,_0x2e7830=await this[_0x28b8bd(0x33d)][_0x28b8bd(0x1cf)](_0x36426e),_0x4d5d84=this[_0x28b8bd(0x1e4)]['createInstance'](_0x5ce972,_0x36426e,_0x2e7830);return _0x4d5d84[_0x28b8bd(0x47b)](),_0x4d5d84;}async['_startDocCollabCursor'](_0x273c49){const _0x20add6=_0x287b51,_0xd52b39=await this[_0x20add6(0x33d)][_0x20add6(0x1cf)](_0x273c49),_0x12da41=this[_0x20add6(0x1e4)][_0x20add6(0x31e)](_0x9fd99d,_0x273c49,_0xd52b39);return _0x12da41[_0x20add6(0x47b)](),_0x12da41;}};_0x3f6476=_0x311fd1([_0x1c4e07[_0x287b51(0x1da)](_0x1c4e07[_0x287b51(0x10a)]['Starting'],_0x3f6476),_0x326734(0x0,_0x1c4e07[_0x287b51(0x443)]),_0x326734(0x1,_0x1bb894['Inject'](_0x1bb894[_0x287b51(0x22d)])),_0x326734(0x2,_0x1bb894[_0x287b51(0x307)](_0x10dd67['CollaborationSessionService']))],_0x3f6476);const _0x1d1e4e=0x14,_0x3508d4=0xc8,_0x52ca93=0x4,_0x2da822=0x5;function _0x5a437d(_0x1055e7,_0x17ba66){const _0x273821=_0x287b51;let {radius:_0x40a1fe,width:_0x1132f6,height:_0x24c895}=_0x17ba66;_0x40a1fe=_0x40a1fe!=null?_0x40a1fe:0x0,_0x1132f6=_0x1132f6!=null?_0x1132f6:0x1e,_0x24c895=_0x24c895!=null?_0x24c895:0x1e;let _0x56e354=0x0,_0xf9c220=0x0,_0x3dfacd=0x0;_0x56e354=_0xf9c220=_0x3dfacd=Math[_0x273821(0x1bb)](_0x40a1fe,_0x1132f6/0x2,_0x24c895/0x2),_0x1055e7[_0x273821(0x13c)](),_0x1055e7[_0x273821(0x26a)](_0x56e354,0x0),_0x1055e7['lineTo'](_0x1132f6-_0xf9c220,0x0),_0x1055e7[_0x273821(0x233)](_0x1132f6-_0xf9c220,_0xf9c220,_0xf9c220,Math['PI']*0x3/0x2,0x0,!0x1),_0x1055e7[_0x273821(0x2c4)](_0x1132f6,_0x24c895-_0x3dfacd),_0x1055e7[_0x273821(0x233)](_0x1132f6-_0x3dfacd,_0x24c895-_0x3dfacd,_0x3dfacd,0x0,Math['PI']/0x2,!0x1),_0x1055e7['lineTo'](0x0,_0x24c895),_0x1055e7[_0x273821(0x2c4)](0x0,_0x56e354),_0x1055e7[_0x273821(0x233)](_0x56e354,_0x56e354,_0x56e354,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1055e7[_0x273821(0xdd)](),_0x17ba66[_0x273821(0x2e2)]&&(_0x1055e7['save'](),_0x1055e7[_0x273821(0x42f)]=_0x17ba66[_0x273821(0x2e2)],_0x17ba66['fillRule']===_0x273821(0x2e6)?_0x1055e7[_0x273821(0x2e2)]('evenodd'):_0x1055e7[_0x273821(0x2e2)](),_0x1055e7[_0x273821(0x2a7)]());}class _0x311b90 extends _0x165ead[_0x287b51(0x1ee)]{constructor(_0x2fc924,_0x28caf3){const _0x105a6f=_0x287b51;super(_0x2fc924,_0x28caf3),_0x6a44fc(this,'color'),_0x6a44fc(this,'text'),(this[_0x105a6f(0x19d)]=_0x28caf3==null?void 0x0:_0x28caf3['color'],this[_0x105a6f(0x334)]=_0x28caf3==null?void 0x0:_0x28caf3['text']);}static[_0x287b51(0xdb)](_0x1227db,_0x32b74c){const _0x4bc88c=_0x287b51,{text:_0x3d0dba,color:_0x35c59e}=_0x32b74c;_0x1227db[_0x4bc88c(0x236)](),_0x1227db[_0x4bc88c(0x428)]=_0x4bc88c(0x128);const _0x17e57f=_0x1227db[_0x4bc88c(0x21b)](_0x3d0dba)['width'],_0x56ab7c=Math[_0x4bc88c(0x1bb)](_0x17e57f+0x2*_0x52ca93,_0x3508d4);_0x5a437d(_0x1227db,{'height':_0x1d1e4e,'radius':0x4,'width':_0x56ab7c,'fill':_0x35c59e,'evented':!0x1}),_0x1227db['fillStyle']=_0x4bc88c(0x3c3);const _0x1dbda9=_0x52ca93,_0x21f1fb=_0x1d1e4e-_0x2da822,_0x375786=_0x3508d4-0x2*_0x52ca93;if(_0x17e57f>_0x375786){let _0x3fa959='',_0x37c226=0x0;for(const _0xf5c884 of _0x3d0dba){const _0x566a95=_0x1227db[_0x4bc88c(0x21b)](_0xf5c884)[_0x4bc88c(0x19a)];if(_0x37c226+_0x566a95<=_0x375786-_0x1227db[_0x4bc88c(0x21b)](_0x4bc88c(0x469))['width'])_0x3fa959+=_0xf5c884,_0x37c226+=_0x566a95;else{_0x3fa959+='...';break;}}_0x1227db['fillText'](_0x3fa959,_0x1dbda9,_0x21f1fb);}else _0x1227db[_0x4bc88c(0x3b5)](_0x3d0dba,_0x1dbda9,_0x21f1fb);_0x1227db[_0x4bc88c(0x2a7)]();}[_0x287b51(0x135)](_0xac5d55){const _0x4af57c=_0x287b51;_0x311b90[_0x4af57c(0xdb)](_0xac5d55,this);}}const _0x246165=0x1,_0x512c51=1.5;class _0x1744f2 extends _0x165ead[_0x287b51(0x1ee)]{constructor(_0x3a61c4,_0x2ae916){const _0x3b58e9=_0x287b51;super(_0x3a61c4,_0x2ae916),_0x6a44fc(this,_0x3b58e9(0x43e)),_0x6a44fc(this,_0x3b58e9(0x31f),!0x1),_0x6a44fc(this,_0x3b58e9(0x19e)),_0x6a44fc(this,_0x3b58e9(0x15b),''),_0x6a44fc(this,'_labelPosition','top'),(_0x2ae916&&this[_0x3b58e9(0x205)](_0x2ae916),this[_0x3b58e9(0x16d)][_0x3b58e9(0x46b)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x3b58e9(0xfd)][_0x3b58e9(0x46b)](()=>this[_0x3b58e9(0x205)]({'hovered':!0x1})));}[_0x287b51(0x205)](_0x19bfb2){const _0x309a01=_0x287b51;var _0x44e358,_0xeff458,_0x4a96bd,_0x1aa74c,_0x43b2e6;this['_color']=(_0x44e358=_0x19bfb2[_0x309a01(0x19d)])!=null?_0x44e358:this['_color'],this['_hovered']=(_0xeff458=_0x19bfb2[_0x309a01(0x3dd)])!=null?_0xeff458:this[_0x309a01(0x31f)],this[_0x309a01(0x19e)]=(_0x4a96bd=_0x19bfb2[_0x309a01(0x277)])!=null?_0x4a96bd:this[_0x309a01(0x19e)],this[_0x309a01(0x15b)]=(_0x1aa74c=_0x19bfb2['name'])!=null?_0x1aa74c:this['_name'],this[_0x309a01(0x1ac)]=(_0x43b2e6=_0x19bfb2[_0x309a01(0x1c9)])!=null?_0x43b2e6:this[_0x309a01(0x1ac)],this[_0x309a01(0x1f2)]({'width':_0x19bfb2[_0x309a01(0x19a)],'height':_0x19bfb2[_0x309a01(0x1c0)]});}['onMouseMove'](_0x2e547c){const _0xac5c01=_0x287b51,{row:_0x3019fa,column:_0x549b54}=_0x2e547c;if(_0x3019fa>=this[_0xac5c01(0x19e)][_0xac5c01(0x13d)]&&_0x3019fa<=this[_0xac5c01(0x19e)][_0xac5c01(0x41d)]&&_0x549b54>=this[_0xac5c01(0x19e)][_0xac5c01(0x2b0)]&&_0x549b54<=this[_0xac5c01(0x19e)]['endColumn']){this[_0xac5c01(0x205)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x287b51(0x464)](_0x489d11){return!0x1;}['_draw'](_0x53873c){const _0x504739=_0x287b51;_0x165ead['Rect'][_0x504739(0xdb)](_0x53873c,{'width':this['width'],'height':this[_0x504739(0x1c0)],'strokeWidth':_0x512c51,'stroke':this['_color'],'evented':!0x1}),this[_0x504739(0x31f)]&&(_0x53873c[_0x504739(0x236)](),_0x53873c[_0x504739(0x310)](0x1,0x0,0x0,0x1,this[_0x504739(0x19a)],this[_0x504739(0x1ac)]===_0x504739(0x2cb)?0x0:-_0x1d1e4e),_0x311b90['drawWith'](_0x53873c,{'text':this[_0x504739(0x15b)],'color':this[_0x504739(0x43e)]}),_0x53873c[_0x504739(0x2a7)]());}}var _0x19d8b4=Object[_0x287b51(0x2aa)],_0x2745c0=Object[_0x287b51(0x38a)],_0x4c84c5=(_0x5f03b9,_0x71cdeb,_0x972933,_0x4a53b4)=>{const _0x424b69=_0x287b51;for(var _0x5454fb=_0x4a53b4>0x1?void 0x0:_0x4a53b4?_0x2745c0(_0x71cdeb,_0x972933):_0x71cdeb,_0x37c7e7=_0x5f03b9[_0x424b69(0x28c)]-0x1,_0x98ec34;_0x37c7e7>=0x0;_0x37c7e7--)(_0x98ec34=_0x5f03b9[_0x37c7e7])&&(_0x5454fb=(_0x4a53b4?_0x98ec34(_0x71cdeb,_0x972933,_0x5454fb):_0x98ec34(_0x5454fb))||_0x5454fb);return _0x4a53b4&&_0x5454fb&&_0x19d8b4(_0x71cdeb,_0x972933,_0x5454fb),_0x5454fb;},_0xf03b5c=(_0x5561d9,_0x483aa5)=>(_0x4ea447,_0xa9db4f)=>_0x483aa5(_0x4ea447,_0xa9db4f,_0x5561d9);const _0x3d32b5=0x1389;let _0x550e88=class extends _0x1c4e07[_0x287b51(0x486)]{constructor(_0x47f295,_0x190f24,_0x8d36ff,_0x4d9d01){const _0x49e655=_0x287b51;super(),_0x6a44fc(this,_0x49e655(0x1e9),new Set()),_0x6a44fc(this,_0x49e655(0xe5),null),(this[_0x49e655(0x299)]=_0x47f295,this[_0x49e655(0x455)]=_0x190f24,this['_renderManagerService']=_0x8d36ff,this['_themeService']=_0x4d9d01,this[_0x49e655(0x2c2)]());}get[_0x287b51(0x2ad)](){const _0x4d2f98=_0x287b51;return this[_0x4d2f98(0x3d2)][_0x4d2f98(0x43c)](this[_0x4d2f98(0x455)][_0x4d2f98(0x39b)](_0x1c4e07['UniverInstanceType'][_0x4d2f98(0x373)])[_0x4d2f98(0x305)]())[_0x4d2f98(0xfb)](_0xfb6208[_0x4d2f98(0x49f)]);}get[_0x287b51(0x476)](){const _0x104a7f=_0x287b51;return this['_univerInstanceService'][_0x104a7f(0x39b)](_0x1c4e07[_0x104a7f(0x3f1)][_0x104a7f(0x373)])['getUnitId']();}['_init'](){const _0x484142=_0x287b51;this['_sheetSkeletonManagerService'][_0x484142(0x27f)][_0x484142(0x3fc)](_0x48b0e4[_0x484142(0x271)](this[_0x484142(0x435)]),_0x48b0e4[_0x484142(0x16b)](_0x1775ff=>{const _0x3d0a79=_0x484142;if(_0x1775ff){const _0x186514=_0x1775ff[_0x3d0a79(0xe8)];return _0x1d06c2[_0x3d0a79(0x204)](this[_0x3d0a79(0x299)][_0x3d0a79(0x103)](this['_unitId']),this[_0x3d0a79(0x4a2)][_0x3d0a79(0x12e)])[_0x3d0a79(0x3fc)](_0x48b0e4[_0x3d0a79(0x1b3)](([_0xfed238,_0x12f4df])=>{const _0x151bfb=_0x3d0a79,_0x27eda4=new Map();return _0xfed238[_0x151bfb(0x3cf)]((_0x1877bc,_0x1668c4)=>{const _0x392091=_0x151bfb;if(_0x1877bc[_0x392091(0x401)]===_0x186514){const _0x12462d={..._0x1877bc};_0x12462d[_0x392091(0x19d)]=_0x12f4df[_0x1877bc['color']],_0x27eda4['set'](_0x1668c4,_0x12462d);}}),{'skeleton':_0x1775ff,'cursors':_0x27eda4};}));}return _0x1d06c2['of']({'skeleton':null,'cursors':new Map()});}))[_0x484142(0x2df)](({skeleton:_0x3574d2,cursors:_0x45d17c})=>{const _0x46de04=_0x484142;this['_removeCollabCursors'](),_0x3574d2&&this[_0x46de04(0x118)](_0x3574d2,_0x45d17c);}),this[_0x484142(0x2ad)][_0x484142(0x27f)][_0x484142(0x2df)](_0x5b657d=>{const _0x584040=_0x484142;if(_0x5b657d==null)return;const {skeleton:_0x5ee9bb}=_0x5b657d,_0x393745=this['_renderManagerService'][_0x584040(0x43c)](this['_unitId']),{scene:_0x52be3a}=_0x393745;_0x52be3a['onPointerMove$']['subscribeEvent'](_0x177720(_0x49f38c=>{const _0x2949d3=_0x584040;var _0x5b0f05,_0x1918e4;const {offsetX:_0x7884aa,offsetY:_0x185cf6}=_0x49f38c,{x:_0x25910a,y:_0x1dc588}=_0x52be3a[_0x2949d3(0x411)](_0x165ead[_0x2949d3(0x1ab)][_0x2949d3(0x1b5)]([_0x7884aa,_0x185cf6])),{scaleX:_0x3f5b03,scaleY:_0x16c098}=_0x52be3a[_0x2949d3(0x120)](),_0x50db8a=_0x52be3a[_0x2949d3(0x35f)](_0xfb6208[_0x2949d3(0x383)]['VIEW_MAIN']),_0x2d65fd=_0x52be3a[_0x2949d3(0x246)](_0x165ead[_0x2949d3(0x1ab)][_0x2949d3(0x1b5)]([_0x25910a,_0x1dc588]),_0x50db8a),_0x15ade5=_0x5ee9bb[_0x2949d3(0x1eb)](_0x7884aa,_0x185cf6,_0x3f5b03,_0x16c098,_0x2d65fd);((_0x5b0f05=this[_0x2949d3(0xe5)])==null?void 0x0:_0x5b0f05['column'])===_0x15ade5[_0x2949d3(0x3d7)]&&((_0x1918e4=this['_lastPointer'])==null?void 0x0:_0x1918e4[_0x2949d3(0x146)])===_0x15ade5[_0x2949d3(0x146)]||this['_cursors'][_0x2949d3(0x3cf)](_0x2e91bd=>{const _0x1d15e2=_0x2949d3;_0x2e91bd[_0x1d15e2(0xf4)](_0x15ade5);});},0x64));});}[_0x287b51(0x118)](_0x2ef4e0,_0x5a1d1a){const _0x222498=_0x287b51;var _0x3b66ad;const _0x3c645f=(_0x3b66ad=this[_0x222498(0x2ad)]['getCurrent']())==null?void 0x0:_0x3b66ad[_0x222498(0x12d)];if(!_0x3c645f)return;const _0x2c48c1=this[_0x222498(0x376)]();if(!_0x2c48c1)return;this[_0x222498(0x1e9)][_0x222498(0x3cf)](_0x315f83=>{_0x315f83['makeDirty']();});const {scene:_0xf5058b}=_0x2c48c1,_0xf736a8=_0x2907ae(Array[_0x222498(0x3f3)](_0x5a1d1a['values']()))['map'](_0x48f26e=>{const _0x414108=_0x222498,{color:_0x24c95d,range:_0x34cb13,name:_0x5a8609,selection:_0x270960,sheetID:_0x226dd6}=_0x48f26e,{startColumn:_0x86551a,startRow:_0x4f7be1,endColumn:_0xf2bc6e,endRow:_0x154c2a}=_0x34cb13,_0x138f3c=_0xfb6208[_0x414108(0x3c5)](_0x4f7be1,_0x86551a,_0xf5058b,_0x3c645f),_0x3d2dff=_0xfb6208[_0x414108(0x3c5)](_0x154c2a,_0xf2bc6e,_0xf5058b,_0x3c645f),{columnHeaderHeightAndMarginTop:_0x535efe}=_0x3c645f,{startX:_0x4bf18b,startY:_0x332ce0}=_0x138f3c,{endX:_0xb8feab,endY:_0x4ed403}=_0x3d2dff,_0x577a44=_0xb8feab-_0x4bf18b,_0x56eb22=_0x4ed403-_0x332ce0,_0x3617fc={'labelPosition':_0x332ce0-_0x535efe>=_0x1d1e4e?'top':_0x414108(0x2cb),'sheetID':_0x226dd6,'range':_0x34cb13,'color':_0x24c95d,'name':_0x5a8609,'selection':_0x270960,'left':_0x4bf18b,'top':_0x332ce0,'width':_0x577a44,'height':_0x56eb22,'evented':!0x1,'zIndex':_0x3d32b5};return new _0x1744f2(_0x5a8609,_0x3617fc);});_0xf5058b[_0x222498(0x3a5)](_0xf736a8,_0x246165),this[_0x222498(0x1e9)]=new Set(_0xf736a8);}['_removeCollabCursors'](){const _0x4681a3=_0x287b51;var _0x64ba6;(_0x64ba6=this[_0x4681a3(0x1e9)])==null||_0x64ba6[_0x4681a3(0x3cf)](_0x37d683=>_0x37d683['dispose']());}[_0x287b51(0x376)](){const _0x30e800=_0x287b51;return _0xfb6208[_0x30e800(0x23d)](this[_0x30e800(0x455)],this[_0x30e800(0x3d2)]);}};_0x550e88=_0x4c84c5([_0x1c4e07[_0x287b51(0x1da)](_0x1c4e07[_0x287b51(0x10a)]['Steady'],_0x550e88),_0xf03b5c(0x0,_0x1bb894[_0x287b51(0x307)](_0x3f6476)),_0xf03b5c(0x1,_0x1c4e07[_0x287b51(0x443)]),_0xf03b5c(0x2,_0x165ead[_0x287b51(0x21e)]),_0xf03b5c(0x3,_0x1bb894['Inject'](_0x1c4e07[_0x287b51(0x25f)]))],_0x550e88);function _0x2907ae(_0x162190){const _0x1da9a8=_0x287b51,_0x1496f5=new Map();return _0x162190[_0x1da9a8(0x3cf)](_0x325491=>{const _0x117053=_0x1da9a8;if(_0x1496f5['has'](_0x325491[_0x117053(0x438)])){const _0x3cd3f8=_0x1496f5[_0x117053(0x2e7)](_0x325491[_0x117053(0x438)]);_0x3cd3f8['name']+=',\x20'+_0x325491[_0x117053(0x12b)];}else _0x1496f5['set'](_0x325491[_0x117053(0x438)],_0x325491);}),Array[_0x1da9a8(0x3f3)](_0x1496f5['values']());}var _0x4af23d=function(){const _0xa1a4cf=_0x287b51;return _0x4af23d=Object[_0xa1a4cf(0x2dc)]||function(_0xd88848){const _0x259725=_0xa1a4cf;for(var _0x2963b8,_0x5b58da=0x1,_0x5dba19=arguments[_0x259725(0x28c)];_0x5b58da<_0x5dba19;_0x5b58da++){_0x2963b8=arguments[_0x5b58da];for(var _0x56bc10 in _0x2963b8)Object[_0x259725(0x4a3)][_0x259725(0x466)]['call'](_0x2963b8,_0x56bc10)&&(_0xd88848[_0x56bc10]=_0x2963b8[_0x56bc10]);}return _0xd88848;},_0x4af23d['apply'](this,arguments);},_0x567ce0=function(_0x57cd1e,_0x436448){const _0x138807=_0x287b51;var _0x33125d={};for(var _0x346259 in _0x57cd1e)Object[_0x138807(0x4a3)][_0x138807(0x466)][_0x138807(0x3f0)](_0x57cd1e,_0x346259)&&_0x436448[_0x138807(0x153)](_0x346259)<0x0&&(_0x33125d[_0x346259]=_0x57cd1e[_0x346259]);if(_0x57cd1e!=null&&typeof Object[_0x138807(0x191)]==_0x138807(0x3b7)){for(var _0x35895=0x0,_0x346259=Object[_0x138807(0x191)](_0x57cd1e);_0x35895<_0x346259['length'];_0x35895++)_0x436448['indexOf'](_0x346259[_0x35895])<0x0&&Object[_0x138807(0x4a3)]['propertyIsEnumerable']['call'](_0x57cd1e,_0x346259[_0x35895])&&(_0x33125d[_0x346259[_0x35895]]=_0x57cd1e[_0x346259[_0x35895]]);}return _0x33125d;},_0x5dc4d6=_0x22f151[_0x287b51(0x46c)](function(_0x1741c4,_0x5d3b81){const _0x1071e7=_0x287b51;var _0x3c26f1=_0x1741c4[_0x1071e7(0x280)],_0x35e2d0=_0x1741c4['id'],_0x55d1c1=_0x1741c4[_0x1071e7(0x134)],_0x44baa4=_0x1741c4[_0x1071e7(0x3bd)],_0x389758=_0x567ce0(_0x1741c4,[_0x1071e7(0x280),'id',_0x1071e7(0x134),'extend']),_0x1b0300=_0x1071e7(0x3e7)[_0x1071e7(0x2cc)](_0x35e2d0,'\x20')[_0x1071e7(0x2cc)](_0x55d1c1||'')[_0x1071e7(0x2f9)](),_0x3f5259=_0x22f151[_0x1071e7(0x1fc)]('_'[_0x1071e7(0x2cc)](_0x4c789c()));return _0x1f395b(_0x3c26f1,''['concat'](_0x35e2d0),{'defIds':_0x3c26f1[_0x1071e7(0x23c)],'idSuffix':_0x3f5259[_0x1071e7(0x458)]},_0x4af23d({'ref':_0x5d3b81,'className':_0x1b0300},_0x389758),_0x44baa4);});function _0x1f395b(_0x2dc5fb,_0x2428b0,_0x476235,_0x47d490,_0x195816){const _0x5940c0=_0x287b51;return _0x22f151[_0x5940c0(0x1b0)](_0x2dc5fb[_0x5940c0(0x340)],_0x4af23d(_0x4af23d({'key':_0x2428b0},_0x11d782(_0x2dc5fb,_0x476235,_0x195816)),_0x47d490),(_0x546cca(_0x2dc5fb,_0x476235)[_0x5940c0(0x2ff)]||[])[_0x5940c0(0x1b3)](function(_0x20e886,_0x356b3d){const _0x1f3193=_0x5940c0;return _0x1f395b(_0x20e886,''[_0x1f3193(0x2cc)](_0x2428b0,'-')['concat'](_0x2dc5fb[_0x1f3193(0x340)],'-')[_0x1f3193(0x2cc)](_0x356b3d),_0x476235,void 0x0,_0x195816);}));}function _0x11d782(_0x14a08b,_0x2e2efd,_0x6bc91b){const _0x31a8c7=_0x287b51;var _0x5f373f=_0x4af23d({},_0x14a08b['attrs']);_0x6bc91b!=null&&_0x6bc91b[_0x31a8c7(0x370)]&&_0x5f373f[_0x31a8c7(0x2e2)]===_0x31a8c7(0x370)&&(_0x5f373f[_0x31a8c7(0x2e2)]=_0x6bc91b['colorChannel1']);var _0x823c5d=_0x2e2efd['defIds'];return!_0x823c5d||_0x823c5d[_0x31a8c7(0x28c)]===0x0||(_0x14a08b[_0x31a8c7(0x340)]===_0x31a8c7(0x1f5)&&_0x5f373f[_0x31a8c7(0xe9)]&&(_0x5f373f[_0x31a8c7(0xe9)]=_0x5f373f[_0x31a8c7(0xe9)]+_0x2e2efd[_0x31a8c7(0x1a0)]),Object['entries'](_0x5f373f)['forEach'](function(_0x2c740b){const _0x37e542=_0x31a8c7;var _0x451c4c=_0x2c740b[0x0],_0x2c0fb0=_0x2c740b[0x1];typeof _0x2c0fb0=='string'&&(_0x5f373f[_0x451c4c]=_0x2c0fb0[_0x37e542(0x2b5)](/url\(#(.*)\)/,_0x37e542(0x36b)[_0x37e542(0x2cc)](_0x2e2efd[_0x37e542(0x1a0)],')')));})),_0x5f373f;}function _0x546cca(_0x23be29,_0x3179bd){const _0x2df14a=_0x287b51;var _0x1a8194,_0x29539a=_0x3179bd['defIds'];return!_0x29539a||_0x29539a[_0x2df14a(0x28c)]===0x0?_0x23be29:_0x23be29[_0x2df14a(0x340)]===_0x2df14a(0x1ad)&&(!((_0x1a8194=_0x23be29[_0x2df14a(0x2ff)])===null||_0x1a8194===void 0x0)&&_0x1a8194[_0x2df14a(0x28c)])?_0x4af23d(_0x4af23d({},_0x23be29),{'children':_0x23be29['children']['map'](function(_0x293133){const _0x4efbad=_0x2df14a;return typeof _0x293133[_0x4efbad(0x3f8)]['id']==_0x4efbad(0x270)&&_0x29539a&&_0x29539a[_0x4efbad(0x153)](_0x293133[_0x4efbad(0x3f8)]['id'])>-0x1?_0x4af23d(_0x4af23d({},_0x293133),{'attrs':_0x4af23d(_0x4af23d({},_0x293133[_0x4efbad(0x3f8)]),{'id':_0x293133['attrs']['id']+_0x3179bd['idSuffix']})}):_0x293133;})}):_0x23be29;}function _0x4c789c(){const _0x4445e8=_0x287b51;return Math[_0x4445e8(0x217)]()['toString'](0x24)['substring'](0x2,0x8);}_0x5dc4d6[_0x287b51(0x178)]=_0x287b51(0x276);var _0x50096d={'tag':_0x287b51(0xea),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x287b51(0x449),'height':_0x287b51(0x449)},'children':[{'tag':'g','attrs':{'clipPath':_0x287b51(0xf8)},'children':[{'tag':_0x287b51(0x1ff),'attrs':{'stroke':_0x287b51(0x31b),'d':_0x287b51(0x1a7),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x287b51(0x1ad),'attrs':{},'children':[{'tag':_0x287b51(0x174),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x287b51(0x1ff),'attrs':{'fill':_0x287b51(0x2b7),'d':_0x287b51(0x166)}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x57ff5b=_0x22f151[_0x287b51(0x46c)](function(_0xa29d79,_0x493341){const _0x52600f=_0x287b51;return _0x22f151[_0x52600f(0x1b0)](_0x5dc4d6,Object['assign']({},_0xa29d79,{'id':_0x52600f(0x482),'ref':_0x493341,'icon':_0x50096d}));});_0x57ff5b[_0x287b51(0x178)]='OffLineSingle';var _0x3857c1={'tag':_0x287b51(0xea),'attrs':{'fill':_0x287b51(0x11c),'viewBox':'0\x200\x2017\x2016','width':_0x287b51(0x449),'height':_0x287b51(0x449)},'children':[{'tag':'g','attrs':{'clipPath':_0x287b51(0x267)},'children':[{'tag':_0x287b51(0x1ff),'attrs':{'stroke':_0x287b51(0x31b),'d':_0x287b51(0x39c),'strokeLinecap':_0x287b51(0x3d4),'strokeLinejoin':_0x287b51(0x3d4),'strokeWidth':1.2}}]},{'tag':_0x287b51(0x1ad),'attrs':{},'children':[{'tag':_0x287b51(0x174),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x287b51(0x1ff),'attrs':{'fill':_0x287b51(0x2b7),'d':'M0\x200H16V16H0z','transform':_0x287b51(0x386)}}]}]}],'defIds':[_0x287b51(0x399)]},_0x312eb3=_0x22f151[_0x287b51(0x46c)](function(_0x4259d9,_0x59e56e){const _0x5a36e3=_0x287b51;return _0x22f151[_0x5a36e3(0x1b0)](_0x5dc4d6,Object['assign']({},_0x4259d9,{'id':_0x5a36e3(0x2b4),'ref':_0x59e56e,'icon':_0x3857c1}));});_0x312eb3[_0x287b51(0x178)]=_0x287b51(0x285);const _0x4219b0={'onlineStatusIcon':_0x287b51(0x494),'onlineStatusTitle':_0x287b51(0x156),'onlineStatus':_0x287b51(0x335),'online':_0x287b51(0x360),'offline':_0x287b51(0x495)};function _0x3b929d(_0x41e8e1){const _0x5be990=_0x287b51;switch(_0x41e8e1){case _0x5926fc[_0x5be990(0x320)]:return'collabStatus.offline';case _0x5926fc['CONFLICT']:return _0x5be990(0x2ac);case _0x5926fc[_0x5be990(0x303)]:return _0x5be990(0x1d7);case _0x5926fc[_0x5be990(0x151)]:return'collabStatus.notCollab';case _0x5926fc[_0x5be990(0x493)]:case _0x5926fc[_0x5be990(0x483)]:case _0x5926fc['AWAITING_WITH_PENDING']:return _0x5be990(0x2af);case _0x5926fc['SYNCED']:return'collabStatus.synced';}}function _0x4131bc(_0x3ee949){const _0x18d513=_0x287b51,{status$:_0x5cfb33}=_0x3ee949,_0x2a2dcc=_0xbf76b9[_0x18d513(0x442)](_0x5cfb33,_0x5926fc[_0x18d513(0x151)]),_0x3934e8=_0x28ae2d[_0x18d513(0x41f)](_0x1c4e07[_0x18d513(0x427)]),_0x312716=_0x2a2dcc!==_0x5926fc['OFFLINE'],_0x2592cc=_0x3934e8['t'](_0x3b929d(_0x2a2dcc)),_0x322dd2=_0x16db60(_0x4219b0[_0x18d513(0x182)],{[_0x4219b0[_0x18d513(0x3df)]]:_0x312716,[_0x4219b0[_0x18d513(0x2e3)]]:!_0x312716}),_0x5d4d70=_0x312716?_0x22f151[_0x18d513(0x1b0)](_0x312eb3,null):_0x22f151[_0x18d513(0x1b0)](_0x57ff5b,null);return _0x22f151['createElement'](_0x18d513(0x489),{'className':_0x322dd2},_0x22f151['createElement'](_0x18d513(0x489),{'className':_0x4219b0['onlineStatusIcon']},_0x5d4d70),_0x22f151[_0x18d513(0x1b0)](_0x18d513(0x489),{'className':_0x4219b0[_0x18d513(0x385)]},_0x2592cc));}var _0xabfc98=Object['defineProperty'],_0x22b2b0=Object[_0x287b51(0x38a)],_0x52536a=(_0x2b8e00,_0x1de3bb,_0x17edd5,_0x52923e)=>{const _0xe8a414=_0x287b51;for(var _0x3e415d=_0x52923e>0x1?void 0x0:_0x52923e?_0x22b2b0(_0x1de3bb,_0x17edd5):_0x1de3bb,_0x1afc28=_0x2b8e00[_0xe8a414(0x28c)]-0x1,_0x1deb3f;_0x1afc28>=0x0;_0x1afc28--)(_0x1deb3f=_0x2b8e00[_0x1afc28])&&(_0x3e415d=(_0x52923e?_0x1deb3f(_0x1de3bb,_0x17edd5,_0x3e415d):_0x1deb3f(_0x3e415d))||_0x3e415d);return _0x52923e&&_0x3e415d&&_0xabfc98(_0x1de3bb,_0x17edd5,_0x3e415d),_0x3e415d;},_0x5ce51e=(_0x13448c,_0x2964a8)=>(_0x412624,_0x44d613)=>_0x2964a8(_0x412624,_0x44d613,_0x13448c);_0x10dd67['DesktopCollaborationStatusDisplayController']=class extends _0x1c4e07[_0x287b51(0x154)]{constructor(_0x5033f4,_0x255ab7,_0x1276b4,_0x5844fa){const _0x454db7=_0x287b51;super(),_0x6a44fc(this,'_status$',new _0x1d06c2[(_0x454db7(0x1d4))](_0x5926fc['NOT_COLLAB'])),(this['_univerInstanceService']=_0x5033f4,this[_0x454db7(0x18b)]=_0x255ab7,this[_0x454db7(0x1e4)]=_0x1276b4,this[_0x454db7(0x2d0)]=_0x5844fa,this[_0x454db7(0x20e)](),this[_0x454db7(0xe2)]());}[_0x287b51(0x20e)](){const _0x5c0a7d=_0x287b51;this[_0x5c0a7d(0x346)](this[_0x5c0a7d(0x18b)]['registerComponent'](_0xbf76b9[_0x5c0a7d(0x440)]['HEADER_MENU'],()=>_0x28ae2d[_0x5c0a7d(0x27c)](_0x50c4c5({'status$':this['_status$'][_0x5c0a7d(0x378)]()}),this[_0x5c0a7d(0x1e4)])));}[_0x287b51(0xe2)](){const _0x25bcfc=_0x287b51;this[_0x25bcfc(0x346)](_0x1c4e07[_0x25bcfc(0x12a)](this[_0x25bcfc(0x455)][_0x25bcfc(0x3ac)][_0x25bcfc(0x3fc)](_0x1d06c2['switchMap'](()=>{const _0x1c7160=_0x25bcfc,_0x30db62=this[_0x1c7160(0x455)][_0x1c7160(0x2d4)]();return _0x30db62?this[_0x1c7160(0x2d0)][_0x1c7160(0xf9)](_0x30db62['getUnitId']()):_0x1d06c2['of'](null);}),_0x1d06c2['switchMap'](_0xb0c73b=>_0xb0c73b?_0xb0c73b[_0x25bcfc(0x20a)]:_0x1d06c2['of'](_0x5926fc['NOT_COLLAB'])))[_0x25bcfc(0x2df)](_0x2316a5=>{const _0x1f2388=_0x25bcfc;this['_status$'][_0x1f2388(0x297)](_0x2316a5);})));}},_0x10dd67[_0x287b51(0x353)]=_0x52536a([_0x1c4e07[_0x287b51(0x1da)](_0x1c4e07[_0x287b51(0x10a)][_0x287b51(0x4a5)],_0x10dd67[_0x287b51(0x353)]),_0x5ce51e(0x0,_0x1c4e07[_0x287b51(0x443)]),_0x5ce51e(0x1,_0xbf76b9[_0x287b51(0x2ec)]),_0x5ce51e(0x2,_0x1bb894[_0x287b51(0x307)](_0x1bb894['Injector'])),_0x5ce51e(0x3,_0x1bb894[_0x287b51(0x307)](_0x10dd67['CollaborationController']))],_0x10dd67['DesktopCollaborationStatusDisplayController']);function _0x50c4c5(_0x54e0db){const {status$:_0x6a410c}=_0x54e0db;return function(){const _0x4d7506=_0x54b9;return _0x22f151[_0x4d7506(0x1b0)](_0x4131bc,{'status$':_0x6a410c});};}const _0x3c711f=_0x1bb894[_0x287b51(0x253)](_0x287b51(0x119));var _0x771469=Object[_0x287b51(0x2aa)],_0x51a375=Object[_0x287b51(0x38a)],_0x4e4db1=(_0x460f61,_0x1a150b,_0x26beb4,_0x3b2c52)=>{const _0x364ba1=_0x287b51;for(var _0x3de584=_0x3b2c52>0x1?void 0x0:_0x3b2c52?_0x51a375(_0x1a150b,_0x26beb4):_0x1a150b,_0x14f261=_0x460f61[_0x364ba1(0x28c)]-0x1,_0x45392d;_0x14f261>=0x0;_0x14f261--)(_0x45392d=_0x460f61[_0x14f261])&&(_0x3de584=(_0x3b2c52?_0x45392d(_0x1a150b,_0x26beb4,_0x3de584):_0x45392d(_0x3de584))||_0x3de584);return _0x3b2c52&&_0x3de584&&_0x771469(_0x1a150b,_0x26beb4,_0x3de584),_0x3de584;},_0x42b9af=(_0x10228b,_0x27fd90)=>(_0x3b6bd6,_0x29305d)=>_0x27fd90(_0x3b6bd6,_0x29305d,_0x10228b);_0x10dd67['DataLoaderController']=class extends _0x1c4e07['RxDisposable']{constructor(_0x35e217,_0x52f32a,_0x578007,_0x332631,_0x474e50,_0x171c70){const _0x37973c=_0x287b51;super(),this['_urlService']=_0x35e217,this[_0x37973c(0x462)]=_0x52f32a,this[_0x37973c(0x279)]=_0x578007,this[_0x37973c(0x145)]=_0x332631,this[_0x37973c(0x18e)]=_0x474e50,_0x171c70?_0x171c70==null||_0x171c70[_0x37973c(0x138)]()['then'](()=>this[_0x37973c(0x2c2)]()):(this['_logService'][_0x37973c(0x337)]('[DataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x37973c(0x2c2)]());}async['_init'](){const _0x5512c9=_0x287b51,_0x40d0c2=this[_0x5512c9(0x49e)][_0x5512c9(0x15c)](_0x5512c9(0x433)),_0x4977c4=this['_urlService'][_0x5512c9(0x15c)]('type');if(!_0x40d0c2||!_0x4977c4){this[_0x5512c9(0x462)][_0x5512c9(0x337)](_0x5512c9(0x45b),_0x5512c9(0x1d3));return;}switch(Number(_0x4977c4)){case _0x55b3bc['UNIVER_SHEET']:{const _0x3c15aa=await this[_0x5512c9(0x3de)](_0x40d0c2);this[_0x5512c9(0x162)](_0x3c15aa);break;}case _0x55b3bc[_0x5512c9(0x104)]:{await this['_loadDoc'](_0x40d0c2);break;}default:{this['_logService'][_0x5512c9(0x18c)](_0x5512c9(0x45b),_0x5512c9(0x27e));break;}}}async['_setupSubUnitSync'](_0x3416a5){const _0x3a0dd9=_0x287b51;await this[_0x3a0dd9(0x35b)](_0x3416a5),_0x3416a5['activeSheet$'][_0x3a0dd9(0x3fc)](_0x1d06c2['takeUntil'](this[_0x3a0dd9(0x435)]))[_0x3a0dd9(0x2df)](_0x58a643=>{const _0x5aaedf=_0x3a0dd9;_0x58a643&&this[_0x5aaedf(0x46f)](_0x58a643);}),this['_urlService']['urlChange$'][_0x3a0dd9(0x3fc)](_0x1d06c2[_0x3a0dd9(0x271)](this[_0x3a0dd9(0x435)]))['subscribe'](()=>this[_0x3a0dd9(0x35b)](_0x3416a5));}[_0x287b51(0x46f)](_0x17afc7,_0x40f393=!0x1){const _0x1dd269=_0x287b51,_0x56be38=this['_urlService']['getParam'](_0x1dd269(0x264));_0x17afc7['getSheetId']()!==_0x56be38&&this[_0x1dd269(0x49e)][_0x1dd269(0x32f)](_0x1dd269(0x264),_0x17afc7['getSheetId'](),_0x40f393);}async[_0x287b51(0x35b)](_0x54f2fd){const _0x1c591b=_0x287b51;var _0xf3aa32;const _0x35f984=this[_0x1c591b(0x49e)]['getParam'](_0x1c591b(0x264));if(!_0x35f984||!_0x54f2fd[_0x1c591b(0x16a)](_0x35f984)){const _0xc7239c=_0x54f2fd['getUnhiddenWorksheets']()[0x0],_0x319d5b=_0x54f2fd['getSheetBySheetId'](_0xc7239c);if(!_0x319d5b)return;this['_updateURLWithCurrentState'](_0x319d5b,!0x0),await this[_0x1c591b(0x279)][_0x1c591b(0x2f8)](_0x58e6c7[_0x1c591b(0x380)]['id'],{'unitId':_0x54f2fd['getUnitId'](),'subUnitId':_0xc7239c});return;}((_0xf3aa32=_0x54f2fd[_0x1c591b(0x473)]())==null?void 0x0:_0xf3aa32[_0x1c591b(0x434)]())!==_0x35f984&&await this['_commandService'][_0x1c591b(0x2f8)](_0x58e6c7['SetWorksheetActivateCommand']['id'],{'unitId':_0x54f2fd['getUnitId'](),'subUnitId':_0x35f984});}async['_loadSheet'](_0x39a43b){const _0x32ebf9=_0x287b51;let _0x2e58e0=0x0;const _0x2cee85=await this[_0x32ebf9(0x145)]['loadOfflineData'](_0x39a43b);return _0x2cee85&&(_0x2cee85[_0x32ebf9(0x3f9)]||_0x2cee85[_0x32ebf9(0x49c)][_0x32ebf9(0x28c)]!==0x0)&&(_0x2e58e0=_0x2cee85[_0x32ebf9(0x478)]),_0x2e58e0===0x0&&this[_0x32ebf9(0x462)]['debug'](_0x32ebf9(0x45b),_0x32ebf9(0x37a)),this[_0x32ebf9(0x18e)][_0x32ebf9(0x2cd)](_0x39a43b,_0x2e58e0);}async['_loadDoc'](_0x3234d3){const _0x487429=_0x287b51;let _0xa45fb9=0x0;const _0x3961e8=await this[_0x487429(0x145)][_0x487429(0x244)](_0x3234d3);return _0x3961e8&&(_0x3961e8[_0x487429(0x3f9)]||_0x3961e8['mutations'][_0x487429(0x28c)]!==0x0)&&(_0xa45fb9=_0x3961e8[_0x487429(0x478)]),_0xa45fb9===0x0&&this[_0x487429(0x462)][_0x487429(0x337)](_0x487429(0x45b),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x487429(0x18e)][_0x487429(0x2da)](_0x3234d3,_0xa45fb9);}},_0x10dd67[_0x287b51(0x423)]=_0x4e4db1([_0x1c4e07[_0x287b51(0x1da)](_0x1c4e07['LifecycleStages'][_0x287b51(0x4a5)],_0x10dd67[_0x287b51(0x423)]),_0x42b9af(0x0,_0x3c711f),_0x42b9af(0x1,_0x1c4e07['ILogService']),_0x42b9af(0x2,_0x1c4e07[_0x287b51(0x341)]),_0x42b9af(0x3,_0x1bb894[_0x287b51(0x307)](_0x10dd67[_0x287b51(0x36f)])),_0x42b9af(0x4,_0x1bb894[_0x287b51(0x307)](_0x2d9232[_0x287b51(0x460)])),_0x42b9af(0x5,_0x1bb894[_0x287b51(0x38c)](_0x5e1dc8[_0x287b51(0x3e1)]))],_0x10dd67[_0x287b51(0x423)]);var _0x258f51=Object[_0x287b51(0x2aa)],_0x311b76=Object[_0x287b51(0x38a)],_0x1c796b=(_0x171a59,_0x57fd15,_0x4e666c,_0x5d2666)=>{for(var _0x28e0df=_0x5d2666>0x1?void 0x0:_0x5d2666?_0x311b76(_0x57fd15,_0x4e666c):_0x57fd15,_0x202605=_0x171a59['length']-0x1,_0x254992;_0x202605>=0x0;_0x202605--)(_0x254992=_0x171a59[_0x202605])&&(_0x28e0df=(_0x5d2666?_0x254992(_0x57fd15,_0x4e666c,_0x28e0df):_0x254992(_0x28e0df))||_0x28e0df);return _0x5d2666&&_0x28e0df&&_0x258f51(_0x57fd15,_0x4e666c,_0x28e0df),_0x28e0df;},_0x4dab27=(_0xc08dd5,_0x329fce)=>(_0x3738ed,_0x452bb2)=>_0x329fce(_0x3738ed,_0x452bb2,_0xc08dd5);const _0x46e337=_0x287b51(0x259),_0x32973a=_0x287b51(0x37e);let _0x3663ec=class extends _0x1c4e07[_0x287b51(0x154)]{constructor(_0xe446e8,_0x1c5111){const _0x335e86=_0x287b51;super(),this[_0x335e86(0x455)]=_0xe446e8,this[_0x335e86(0x3ff)]=_0x1c5111,this['_init']();}['_init'](){const _0x49859c=_0x287b51;this[_0x49859c(0x346)](_0x1c4e07[_0x49859c(0x12a)](this['_univerInstanceService'][_0x49859c(0x3ac)][_0x49859c(0x2df)](()=>{const _0x36aa12=_0x49859c;var _0x10dcaa;const _0x411674=this[_0x36aa12(0x455)]['getFocusedUnit']();let _0x1a6445=(_0x10dcaa=this[_0x36aa12(0x3ff)][_0x36aa12(0x3e5)](_0x46e337))!=null?_0x10dcaa:_0x32973a;_0x411674 instanceof _0x1c4e07['Workbook']&&(_0x1a6445=_0x411674[_0x36aa12(0x12b)]),document[_0x36aa12(0x453)]=_0x1a6445;})));}};_0x3663ec=_0x1c796b([_0x1c4e07['OnLifecycle'](_0x1c4e07[_0x287b51(0x10a)][_0x287b51(0x142)],_0x3663ec),_0x4dab27(0x0,_0x1c4e07[_0x287b51(0x443)]),_0x4dab27(0x1,_0x1c4e07[_0x287b51(0x322)])],_0x3663ec);var _0x1ea87d=Object[_0x287b51(0x2aa)],_0x1d131d=Object['getOwnPropertyDescriptor'],_0x5784cc=(_0x15481c,_0x5d2288,_0x1f3e00,_0x12fe2b)=>{for(var _0x1205b2=_0x12fe2b>0x1?void 0x0:_0x12fe2b?_0x1d131d(_0x5d2288,_0x1f3e00):_0x5d2288,_0x388f65=_0x15481c['length']-0x1,_0x189f5a;_0x388f65>=0x0;_0x388f65--)(_0x189f5a=_0x15481c[_0x388f65])&&(_0x1205b2=(_0x12fe2b?_0x189f5a(_0x5d2288,_0x1f3e00,_0x1205b2):_0x189f5a(_0x1205b2))||_0x1205b2);return _0x12fe2b&&_0x1205b2&&_0x1ea87d(_0x5d2288,_0x1f3e00,_0x1205b2),_0x1205b2;},_0x31ee70=(_0x59a492,_0x4367f6)=>(_0x38f760,_0x5de176)=>_0x4367f6(_0x38f760,_0x5de176,_0x59a492);let _0x24796a=class{constructor(_0xaad16,_0x37b8e4){this['_configService']=_0xaad16,this['_httpService']=_0x37b8e4;}async['getUnitOnRev'](_0x159c4a,_0x5e4905){const _0x19c2dc=_0x287b51;var _0x466983;const {unitID:_0x108c08,type:_0x890ebe,revision:_0x6914df=0x0}=_0x5e4905,_0x24215d=this[_0x19c2dc(0x22a)]()+'/'+_0x890ebe+_0x19c2dc(0x37b)+_0x108c08+_0x19c2dc(0x18d)+(_0x6914df===0x1?0x0:_0x6914df),_0x8199e2=(await this['_httpService'][_0x19c2dc(0x2e7)](_0x24215d))[_0x19c2dc(0x115)],_0x10f8dd=(_0x466983=_0x8199e2['snapshot'])==null?void 0x0:_0x466983['workbook'];if(_0x10f8dd){const _0xc22577=_0x10f8dd==null?void 0x0:_0x10f8dd['originalMeta'],_0x39c235=_0x1c4e07['textEncoder'][_0x19c2dc(0x13a)](_0x1c4e07[_0x19c2dc(0x1c3)](_0xc22577));_0x10f8dd[_0x19c2dc(0x364)]=_0x39c235,Object[_0x19c2dc(0x127)](_0x10f8dd['sheets'])[_0x19c2dc(0x3cf)](([,_0x434d3b])=>{const _0x18c664=_0x19c2dc,_0x2668bd=_0x434d3b['originalMeta'],_0x70fda1=_0x1c4e07[_0x18c664(0x17e)][_0x18c664(0x13a)](_0x1c4e07[_0x18c664(0x1c3)](_0x2668bd));_0x434d3b[_0x18c664(0x364)]=_0x70fda1;});}return _0x8199e2;}async['getSheetBlock'](_0x3a3b65,_0x1d8a0a){const _0x3cb71a=_0x287b51,{unitID:_0x32fde4,type:_0x22c478,blockID:_0x1998ae}=_0x1d8a0a,_0x529355=this[_0x3cb71a(0x185)]()+'/'+_0x22c478+_0x3cb71a(0x37b)+_0x32fde4+'/block/'+_0x1998ae;return(await this[_0x3cb71a(0x479)][_0x3cb71a(0x2e7)](_0x529355))['body'];}async['fetchMissingChangesets'](_0x52c3b0,_0x4e2c90){const _0x16d87b=_0x287b51,{unitID:_0x466c8c,type:_0x4e99d2,from:_0x54fb91,to:_0x2db602}=_0x4e2c90,_0xe1ab09=this[_0x16d87b(0x185)]()+'/'+_0x4e99d2+'/unit/'+_0x466c8c+'/fetchmissing?from='+_0x54fb91+'&to='+_0x2db602;return(await this[_0x16d87b(0x479)][_0x16d87b(0x2e7)](_0xe1ab09))['body'];}['_getSnapshotAPIPrefix'](){const _0x20de35=_0x287b51;var _0x4e7f89;return(_0x4e7f89=this[_0x20de35(0x3ff)][_0x20de35(0x3e5)](_0x2d74a6))!=null?_0x4e7f89:this[_0x20de35(0x185)]();}['_getAPIPrefix'](){const _0x376111=_0x287b51;var _0x353c47;return(_0x353c47=this[_0x376111(0x3ff)][_0x376111(0x3e5)](_0x4b25d4))!=null?_0x353c47:_0x5455a3;}async[_0x287b51(0x406)](_0x1c21c9,_0x30dae5){const _0x223497=_0x287b51,_0x12b6dc=_0x223497(0xe6)+_0x30dae5[_0x223497(0x3ca)]+'/unit/'+_0x30dae5[_0x223497(0x2e4)]+_0x223497(0x1ae);return(await this[_0x223497(0x479)]['get'](_0x12b6dc,{'params':{'resourceId':JSON['stringify'](_0x30dae5[_0x223497(0x29a)])}}))[_0x223497(0x115)];}[_0x287b51(0x2b6)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x287b51(0x2eb)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x287b51(0x3d3)](){const _0x1f9e88=_0x287b51;throw new Error(_0x1f9e88(0x25e));}};_0x24796a=_0x5784cc([_0x31ee70(0x0,_0x1c4e07[_0x287b51(0x322)]),_0x31ee70(0x1,_0x1bb894[_0x287b51(0x307)](_0x111db8[_0x287b51(0x41e)]))],_0x24796a);var _0x3e4b69=Object[_0x287b51(0x2aa)],_0x28c6b1=Object['getOwnPropertyDescriptor'],_0x1e30dd=(_0x1f0d73,_0x5a16f9,_0x1d8153,_0x924479)=>{const _0x23d368=_0x287b51;for(var _0x4d52ef=_0x924479>0x1?void 0x0:_0x924479?_0x28c6b1(_0x5a16f9,_0x1d8153):_0x5a16f9,_0xd3e004=_0x1f0d73[_0x23d368(0x28c)]-0x1,_0x2e546d;_0xd3e004>=0x0;_0xd3e004--)(_0x2e546d=_0x1f0d73[_0xd3e004])&&(_0x4d52ef=(_0x924479?_0x2e546d(_0x5a16f9,_0x1d8153,_0x4d52ef):_0x2e546d(_0x4d52ef))||_0x4d52ef);return _0x924479&&_0x4d52ef&&_0x3e4b69(_0x5a16f9,_0x1d8153,_0x4d52ef),_0x4d52ef;},_0x9482f7=(_0xd0b37e,_0x1015cc)=>(_0x413a99,_0x2e2293)=>_0x1015cc(_0x413a99,_0x2e2293,_0xd0b37e);let _0x1be731=class extends _0x1c4e07[_0x287b51(0x1d8)]{constructor(_0x316e7d,_0x307b34,_0x3b6111,_0x467cd3,_0x5715b3){const _0xde0c24=_0x287b51;super(_0x316e7d,_0x307b34,_0x3b6111),this['_transformService']=_0x467cd3,this[_0xde0c24(0x462)]=_0x5715b3;}[_0x287b51(0x29e)](_0x3b84f5,_0xa7faca){const _0xead44d=_0x287b51,_0x31a68b=this[_0xead44d(0x48e)](_0x3b84f5);if(_0x31a68b)try{const _0x3aa935=this[_0xead44d(0x38e)](_0x31a68b,_0xa7faca);this[_0xead44d(0x251)](_0x3b84f5,_0x3aa935);}catch(_0xd57a66){this[_0xead44d(0x462)][_0xead44d(0x18c)](_0xead44d(0x190),_0xd57a66),this[_0xead44d(0x350)](_0x3b84f5);}const _0x53b00c=this[_0xead44d(0x35e)](_0x3b84f5);if(_0x53b00c)try{const _0x2076dc=this['_transformStack'](_0x53b00c,_0xa7faca);this[_0xead44d(0x496)](_0x3b84f5,_0x2076dc);}catch(_0x11ec12){this[_0xead44d(0x462)][_0xead44d(0x18c)](_0x11ec12),this['_clearRedo'](_0x3b84f5);}}[_0x287b51(0x350)](_0x33afca){const _0x48e202=_0x287b51,_0x5934de=this[_0x48e202(0x48e)](_0x33afca);_0x5934de&&(_0x5934de[_0x48e202(0x28c)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x2ccd5a){const _0x4a89d2=_0x287b51,_0x510e52=this[_0x4a89d2(0x35e)](_0x2ccd5a);_0x510e52&&(_0x510e52[_0x4a89d2(0x28c)]=0x0,this[_0x4a89d2(0x313)]());}[_0x287b51(0x251)](_0x3076ca,_0x3bc329){const _0x4382c0=_0x287b51;this[_0x4382c0(0x133)]['set'](_0x3076ca,_0x3bc329),this['_updateStatus']();}[_0x287b51(0x496)](_0x51392a,_0x7bce3b){const _0x33fab5=_0x287b51;this['_redoStacks'][_0x33fab5(0x288)](_0x51392a,_0x7bce3b),this[_0x33fab5(0x313)]();}[_0x287b51(0x38e)](_0x43ec13,_0x60c9ff){const _0x176a68=_0x287b51,_0xb2efcb=[];let _0x2275a=_0x60c9ff,_0x2060fe=_0x60c9ff;for(let _0x2da13d=_0x43ec13[_0x176a68(0x28c)]-0x1;_0x2da13d>=0x0;_0x2da13d--){const {unitID:_0x26c2fc,undoMutations:_0x5b550e,redoMutations:_0x3afc92}=_0x43ec13[_0x2da13d],_0x6c1ad4=this[_0x176a68(0x2ed)][_0x176a68(0x2a9)](_0x2275a,_0x5b550e),_0x1b70ee=this[_0x176a68(0x2ed)][_0x176a68(0x2a9)](_0x2060fe,_0x3afc92);if(_0x2d9232[_0x176a68(0x24b)](_0x6c1ad4)||_0x2d9232[_0x176a68(0x24b)](_0x1b70ee)){this[_0x176a68(0x462)][_0x176a68(0x18c)]('[CollaborationUndoRedoService]',_0x176a68(0xf6),_0x6c1ad4,_0x1b70ee);break;}_0x2275a=_0x6c1ad4[_0x176a68(0x200)],_0x2060fe=_0x1b70ee[_0x176a68(0x200)],_0xb2efcb['push']({'unitID':_0x26c2fc,'undoMutations':_0x6c1ad4[_0x176a68(0x274)],'redoMutations':_0x1b70ee[_0x176a68(0x274)]});}return _0xb2efcb[_0x176a68(0x472)]();}};_0x1be731=_0x1e30dd([_0x9482f7(0x0,_0x1c4e07['IUniverInstanceService']),_0x9482f7(0x1,_0x1c4e07[_0x287b51(0x341)]),_0x9482f7(0x2,_0x1c4e07[_0x287b51(0x21a)]),_0x9482f7(0x3,_0x2d9232['ITransformService']),_0x9482f7(0x4,_0x1c4e07['ILogService'])],_0x1be731);class _0x3e1290 extends _0x1c4e07['RxDisposable']{constructor(){const _0x2bae70=_0x287b51;super(),_0x6a44fc(this,_0x2bae70(0x265)),this[_0x2bae70(0x265)]=_0x1d06c2[_0x2bae70(0x30c)](window,_0x2bae70(0x23e))[_0x2bae70(0x3fc)](_0x1d06c2['takeUntil'](this[_0x2bae70(0x435)]),_0x1d06c2['shareReplay'](0x1),_0x1d06c2['mapTo'](void 0x0));}[_0x287b51(0x32f)](_0x4e162e,_0x2b6a23,_0x53842f=!0x1){const _0x182182=_0x287b51,_0xb61445=new URL(window[_0x182182(0x499)][_0x182182(0x181)]);_0xb61445[_0x182182(0x1ed)]['set'](_0x4e162e,_0x2b6a23),_0x53842f?window['history'][_0x182182(0x1c6)]('','',_0xb61445['toString']()):window[_0x182182(0x1e5)][_0x182182(0x20c)]('','',_0xb61445[_0x182182(0x3f4)]());}['removeParam'](_0x29e2d,_0x4409bd=!0x1){const _0x1183b1=_0x287b51,_0x56e064=new URL(window[_0x1183b1(0x499)][_0x1183b1(0x181)]);_0x56e064[_0x1183b1(0x1ed)]['delete'](_0x29e2d),_0x4409bd?window['history'][_0x1183b1(0x1c6)]('','',_0x56e064[_0x1183b1(0x3f4)]()):window[_0x1183b1(0x1e5)][_0x1183b1(0x20c)]('','',_0x56e064['toString']());}['getParam'](_0x54fcaa){const _0x5100ee=_0x287b51;var _0x1f0d4f;return(_0x1f0d4f=new URL(window[_0x5100ee(0x499)]['href'])[_0x5100ee(0x1ed)]['get'](_0x54fcaa))!=null?_0x1f0d4f:void 0x0;}}const _0x4ca53c=_0x287b51(0x18f),_0xddd2e1=_0x287b51(0x3d5),_0x132797=0x6,_0x3d1aa0=1.5,_0x58f7e0=0x4,_0x1df161=1.5,_0x5d3ea8=_0x287b51(0x48f);class _0x2481d0{constructor(_0x5e8a1a,_0x58aaaa,_0x9c747c,_0x5000c5){const _0xb9e1ae=_0x287b51;_0x6a44fc(this,_0xb9e1ae(0x1a3),[]),_0x6a44fc(this,_0xb9e1ae(0x429),null),_0x6a44fc(this,'_textBubble',null),_0x6a44fc(this,_0xb9e1ae(0x23a),null),_0x6a44fc(this,_0xb9e1ae(0x214),null),_0x6a44fc(this,_0xb9e1ae(0xfe),null),(this[_0xb9e1ae(0x1fb)]=_0x5e8a1a,this[_0xb9e1ae(0x11b)]=_0x58aaaa,this[_0xb9e1ae(0x456)]=_0x9c747c,this['_document']=_0x5000c5,this[_0xb9e1ae(0x1f9)]());}set['_hover'](_0x18f203){const _0x44e51d=_0x287b51;_0x18f203?(this[_0x44e51d(0x23a)]&&this['_anchorDot'][_0x44e51d(0x382)](),this[_0x44e51d(0xef)]&&this[_0x44e51d(0xef)][_0x44e51d(0x143)]()):(this[_0x44e51d(0x23a)]&&this[_0x44e51d(0x23a)]['show'](),this[_0x44e51d(0xef)]&&this[_0x44e51d(0xef)][_0x44e51d(0x382)]());}[_0x287b51(0x1be)](){const _0x46e70b=_0x287b51;for(const _0x9a4c65 of this[_0x46e70b(0x1a3)])_0x9a4c65[_0x46e70b(0x1be)]();this['_textBubble']&&this[_0x46e70b(0xef)][_0x46e70b(0x1be)](),this[_0x46e70b(0x23a)]&&this[_0x46e70b(0x23a)][_0x46e70b(0x1be)](),this[_0x46e70b(0x429)]&&this[_0x46e70b(0x429)][_0x46e70b(0x1be)](),this[_0x46e70b(0xfe)]&&this['_eventUnsubscribe']();}[_0x287b51(0x1f9)](){const _0x413622=_0x287b51,{_docSkeleton:_0x52a56e,_document:_0x94e3ce}=this,{color:_0x5b4141,name:_0x3f1eb8,ranges:_0x26a4f3}=this[_0x413622(0x1fb)],_0x110ef5=_0x94e3ce[_0x413622(0x43d)](),{docsLeft:_0x4bdddd,docsTop:_0x2b1495}=_0x110ef5,_0x5f3905=new _0x165ead[(_0x413622(0x25b))](_0x110ef5,_0x52a56e);for(const {startOffset:_0x34a56b,endOffset:_0x55bcce,collapsed:_0x41285c,isActive:_0x4304e3}of _0x26a4f3){const _0x4beef6=_0x52a56e[_0x413622(0x400)](_0x34a56b),_0x465473=_0x52a56e[_0x413622(0x400)](_0x55bcce);if(_0x4304e3){const {contentBoxPointGroup:_0x5789bd}=_0x5f3905['getRangePointData'](_0x465473,_0x465473);if(_0x5789bd[_0x413622(0x28c)]===0x0)continue;this[_0x413622(0x199)](_0x5b4141,_0x5789bd,_0x4bdddd,_0x2b1495,_0x3f1eb8),this[_0x413622(0xfe)]=this[_0x413622(0x2dd)]();}if(!_0x41285c){const {contentBoxPointGroup:_0x4ab121}=_0x5f3905[_0x413622(0x3c0)](_0x4beef6,_0x465473);if(_0x4ab121[_0x413622(0x28c)]===0x0)continue;this[_0x413622(0x281)](_0x5b4141,_0x4ab121,_0x4bdddd,_0x2b1495);}}}['_drawAnchor'](_0x303a59,_0x1e8511,_0x55051c,_0x24e332,_0x5075cc){const _0x599ed8=_0x287b51,_0x20323e=this['_getAnchorBounding'](_0x1e8511),{left:_0x5d8e61,top:_0x1712b3,height:_0x15ca63}=_0x20323e,_0x104da7=this[_0x599ed8(0x23b)](),_0x506b59=_0x1df161/_0x104da7,_0xe08d09=new _0x165ead['Rect'](_0x4ca53c+_0x1c4e07[_0x599ed8(0x481)][_0x599ed8(0x1aa)](_0x132797),{'left':_0x5d8e61+_0x55051c-_0x506b59,'top':_0x1712b3+_0x24e332,'height':_0x15ca63,'width':_0x3d1aa0,'fill':_0x303a59||_0x165ead[_0x599ed8(0x158)](_0x1c4e07[_0x599ed8(0x3c6)][_0x599ed8(0x167)],0x0),'strokeWidth':_0x506b59,'stroke':_0x5d3ea8,'evented':!0x0});this[_0x599ed8(0x429)]=_0xe08d09,this[_0x599ed8(0x11b)][_0x599ed8(0x161)](_0xe08d09,_0x165ead[_0x599ed8(0xeb)]);const _0x36435b=new _0x165ead[(_0x599ed8(0x298))](_0x4ca53c+_0x1c4e07[_0x599ed8(0x481)]['generateRandomId'](_0x132797),{'left':_0x5d8e61+_0x55051c-_0x506b59,'top':_0x1712b3+_0x24e332-_0x58f7e0/0x2,'height':_0x58f7e0,'width':_0x58f7e0,'fill':_0x303a59||_0x165ead[_0x599ed8(0x158)](_0x1c4e07['COLORS'][_0x599ed8(0x167)],0x0),'strokeWidth':0x0,'stroke':_0x303a59||_0x165ead['getColor'](_0x1c4e07['COLORS']['black'],0x0),'evented':!0x1});this[_0x599ed8(0x23a)]=_0x36435b,this[_0x599ed8(0x11b)][_0x599ed8(0x161)](_0x36435b,_0x165ead[_0x599ed8(0xeb)]);const _0x56ab09=new _0x311b90(_0x4ca53c+_0x1c4e07['Tools'][_0x599ed8(0x1aa)](_0x132797),{'left':_0x5d8e61+_0x55051c-_0x506b59,'top':_0x1712b3+_0x24e332-_0x1d1e4e,'text':_0x5075cc,'color':_0x303a59});this[_0x599ed8(0xef)]=_0x56ab09,this[_0x599ed8(0x11b)][_0x599ed8(0x161)](_0x56ab09,_0x165ead['TEXT_RANGE_LAYER_INDEX']),this[_0x599ed8(0xfa)]=!0x1;}['_handleHover'](){const _0x55aefc=_0x287b51,_0x184f6b=this[_0x55aefc(0x429)][_0x55aefc(0x16d)][_0x55aefc(0x46b)](()=>{const _0x4ea3ca=_0x55aefc;this[_0x4ea3ca(0xfa)]=!0x0;}),_0x414622=this[_0x55aefc(0x429)][_0x55aefc(0xfd)][_0x55aefc(0x46b)](()=>{const _0x2e8445=_0x55aefc;this[_0x2e8445(0x214)]&&clearTimeout(this[_0x2e8445(0x214)]),this[_0x2e8445(0x214)]=setTimeout(()=>{const _0x114ebd=_0x2e8445;this[_0x114ebd(0xfa)]=!0x1;},0x7d0);});return()=>{const _0x27a4c7=_0x55aefc;_0x184f6b[_0x27a4c7(0x2b9)](),_0x414622[_0x27a4c7(0x2b9)]();};}[_0x287b51(0x281)](_0x2d6167,_0x29869d,_0x22ec02,_0x12f05e){const _0x28f341=_0x287b51,_0x5231e2=new _0x1c4e07[(_0x28f341(0x42e))](_0x2d6167)[_0x28f341(0x467)](0.2)[_0x28f341(0x241)](),_0x66308c=new _0x165ead[(_0x28f341(0x136))](_0xddd2e1+_0x1c4e07[_0x28f341(0x481)][_0x28f341(0x1aa)](_0x132797),{'pointsGroup':_0x29869d,'fill':_0x5231e2||_0x165ead[_0x28f341(0x158)](_0x1c4e07['COLORS'][_0x28f341(0x167)],0.2),'left':_0x22ec02,'top':_0x12f05e,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x28f341(0x1a3)][_0x28f341(0x344)](_0x66308c),this[_0x28f341(0x11b)][_0x28f341(0x161)](_0x66308c,_0x165ead['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x18785e){const _0x4455e0=_0x18785e[0x0],_0x1efca2=_0x4455e0[0x0],_0x5d921a=_0x4455e0[0x2],{x:_0x1d6777,y:_0x4b4626}=_0x1efca2,{x:_0x15f39b,y:_0x2184a2}=_0x5d921a;return{'left':_0x1d6777,'top':_0x4b4626,'width':_0x15f39b-_0x1d6777,'height':_0x2184a2-_0x4b4626};}['_getScale'](){const _0x26b58f=_0x287b51,{scaleX:_0x1b741f,scaleY:_0x25476a}=this[_0x26b58f(0x11b)][_0x26b58f(0x120)]();return Math[_0x26b58f(0x3b1)](_0x1b741f,_0x25476a);}}var _0x51e05c=Object[_0x287b51(0x2aa)],_0x5e6921=Object[_0x287b51(0x38a)],_0x511636=(_0x29f532,_0x286b60,_0x1c30c5,_0x33146c)=>{const _0x952b1a=_0x287b51;for(var _0x3b3f32=_0x33146c>0x1?void 0x0:_0x33146c?_0x5e6921(_0x286b60,_0x1c30c5):_0x286b60,_0x3e1c7e=_0x29f532[_0x952b1a(0x28c)]-0x1,_0x337642;_0x3e1c7e>=0x0;_0x3e1c7e--)(_0x337642=_0x29f532[_0x3e1c7e])&&(_0x3b3f32=(_0x33146c?_0x337642(_0x286b60,_0x1c30c5,_0x3b3f32):_0x337642(_0x3b3f32))||_0x3b3f32);return _0x33146c&&_0x3b3f32&&_0x51e05c(_0x286b60,_0x1c30c5,_0x3b3f32),_0x3b3f32;},_0xcb7781=(_0x11c19f,_0x339982)=>(_0x22ec3a,_0x3ac656)=>_0x339982(_0x22ec3a,_0x3ac656,_0x11c19f);let _0x21f0be=class extends _0x1c4e07['RxDisposable']{constructor(_0x27350a,_0x43cde1,_0x3c0096,_0x5aca71,_0x3b4af4){const _0x341ae8=_0x287b51;super(),_0x6a44fc(this,_0x341ae8(0x1e9),[]),(this[_0x341ae8(0x299)]=_0x27350a,this[_0x341ae8(0x455)]=_0x43cde1,this[_0x341ae8(0x3d2)]=_0x3c0096,this[_0x341ae8(0x290)]=_0x5aca71,this[_0x341ae8(0x4a2)]=_0x3b4af4,this[_0x341ae8(0x2c2)]());}[_0x287b51(0x2c2)](){const _0x8dab91=_0x287b51;this[_0x8dab91(0x290)][_0x8dab91(0x27f)][_0x8dab91(0x3fc)](_0x48b0e4[_0x8dab91(0x271)](this[_0x8dab91(0x435)]),_0x48b0e4[_0x8dab91(0x16b)](_0x41a442=>{const _0x181e0c=_0x8dab91;if(_0x41a442){const _0x169d18=_0x41a442['getViewModel']()[_0x181e0c(0x323)]()['getUnitId']();return _0x1d06c2[_0x181e0c(0x204)](this[_0x181e0c(0x299)][_0x181e0c(0x103)](_0x169d18),this[_0x181e0c(0x4a2)]['currentTheme$'])['pipe'](_0x48b0e4['map'](([_0x49120a,_0x26af48])=>({'skeleton':_0x41a442,'cursors':[..._0x49120a['values']()]['flatMap'](_0x1aa578=>({..._0x1aa578,'color':_0x26af48[_0x1aa578[_0x181e0c(0x19d)]]}))})));}return _0x1d06c2['of']({'skeleton':null,'cursors':[]});}))[_0x8dab91(0x2df)](({skeleton:_0x16eb02,cursors:_0x544f65})=>{const _0x2d8198=_0x8dab91;this[_0x2d8198(0x2d2)](),_0x16eb02&&this[_0x2d8198(0x118)](_0x16eb02,_0x544f65);});}['_updateCollabCursors'](_0x1a9083,_0x2c7d03){const _0x284485=_0x287b51,_0x286a52=this[_0x284485(0x3fd)]();if(_0x286a52==null)return;const {scene:_0x429812,document:_0x534d73}=_0x286a52,_0x511bd8=_0x2c7d03['map'](_0x1da98f=>new _0x2481d0(_0x1da98f,_0x429812,_0x1a9083,_0x534d73));this['_cursors']=_0x511bd8;}[_0x287b51(0x2d2)](){const _0x278a58=_0x287b51;this[_0x278a58(0x1e9)][_0x278a58(0x3cf)](_0x4e9b7f=>_0x4e9b7f[_0x278a58(0x1be)]()),this[_0x278a58(0x1e9)]=[];}['_getDocObject'](){const _0x201c93=_0x287b51;return _0x48d622[_0x201c93(0x441)](this[_0x201c93(0x455)],this['_renderManagerService']);}};_0x21f0be=_0x511636([_0x1c4e07[_0x287b51(0x1da)](_0x1c4e07['LifecycleStages'][_0x287b51(0x2e5)],_0x21f0be),_0xcb7781(0x0,_0x1bb894[_0x287b51(0x307)](_0x3f6476)),_0xcb7781(0x1,_0x1c4e07[_0x287b51(0x443)]),_0xcb7781(0x2,_0x165ead[_0x287b51(0x21e)]),_0xcb7781(0x3,_0x1bb894[_0x287b51(0x307)](_0x48d622[_0x287b51(0x292)])),_0xcb7781(0x4,_0x1bb894[_0x287b51(0x307)](_0x1c4e07[_0x287b51(0x25f)]))],_0x21f0be);var _0x520843=Object[_0x287b51(0x2aa)],_0x396d65=Object[_0x287b51(0x38a)],_0x9849ce=(_0x55d9a0,_0x4e2b29,_0xfcdd25,_0x3ce5cf)=>{const _0x67a131=_0x287b51;for(var _0xb3bb06=_0x3ce5cf>0x1?void 0x0:_0x3ce5cf?_0x396d65(_0x4e2b29,_0xfcdd25):_0x4e2b29,_0x5a5e7f=_0x55d9a0[_0x67a131(0x28c)]-0x1,_0x276896;_0x5a5e7f>=0x0;_0x5a5e7f--)(_0x276896=_0x55d9a0[_0x5a5e7f])&&(_0xb3bb06=(_0x3ce5cf?_0x276896(_0x4e2b29,_0xfcdd25,_0xb3bb06):_0x276896(_0xb3bb06))||_0xb3bb06);return _0x3ce5cf&&_0xb3bb06&&_0x520843(_0x4e2b29,_0xfcdd25,_0xb3bb06),_0xb3bb06;},_0x1a3fd2=(_0x501f2e,_0x189db1)=>(_0x207438,_0x3e4e3b)=>_0x189db1(_0x207438,_0x3e4e3b,_0x501f2e);let _0x1a72d3=class{constructor(_0x1f0015,_0x3368a8,_0x57ae4f){const _0xccfb90=_0x287b51;this[_0xccfb90(0x3ff)]=_0x1f0015,this[_0xccfb90(0x479)]=_0x3368a8,this[_0xccfb90(0x2d1)]=_0x57ae4f,this['init']();}['init'](){const _0x1240c2=_0x287b51;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x57d94e,_0x167a58)=>_0x167a58(_0x57d94e)['pipe'](_0x1d06c2[_0x1240c2(0x237)](async _0x35a3ab=>{const _0x3fd358=_0x1240c2,_0x42cd4f=_0x35a3ab;if(_0x42cd4f[_0x3fd358(0x498)]===0x191&&window['confirm'](this[_0x3fd358(0x2d1)]['t'](_0x3fd358(0x2ef)))){const _0x3f4497=window[_0x3fd358(0x3c7)](window[_0x3fd358(0x499)][_0x3fd358(0x181)]);window[_0x3fd358(0x499)][_0x3fd358(0x181)]=this[_0x3fd358(0x113)]()+_0x3fd358(0x222)+_0x3f4497;}return _0x42cd4f;}))});}['_getLoginPath'](){const _0xb05dde=_0x287b51;var _0x55abfa;return(_0x55abfa=this[_0xb05dde(0x3ff)]['getConfig'](_0x1df6aa))!=null?_0x55abfa:_0x348bf9;}};_0x1a72d3=_0x9849ce([_0x1a3fd2(0x0,_0x1c4e07[_0x287b51(0x322)]),_0x1a3fd2(0x1,_0x1bb894[_0x287b51(0x307)](_0x111db8['HTTPService'])),_0x1a3fd2(0x2,_0x1bb894[_0x287b51(0x307)](_0x1c4e07['LocaleService']))],_0x1a72d3);var _0x47a063=Object[_0x287b51(0x2aa)],_0x1a6862=Object[_0x287b51(0x38a)],_0x41896c=(_0xaf5363,_0x2ac205,_0x1a5495,_0x11ae14)=>{const _0x4a7ac4=_0x287b51;for(var _0x2ffa52=_0x11ae14>0x1?void 0x0:_0x11ae14?_0x1a6862(_0x2ac205,_0x1a5495):_0x2ac205,_0x1b6c15=_0xaf5363[_0x4a7ac4(0x28c)]-0x1,_0x3b0d79;_0x1b6c15>=0x0;_0x1b6c15--)(_0x3b0d79=_0xaf5363[_0x1b6c15])&&(_0x2ffa52=(_0x11ae14?_0x3b0d79(_0x2ac205,_0x1a5495,_0x2ffa52):_0x3b0d79(_0x2ffa52))||_0x2ffa52);return _0x11ae14&&_0x2ffa52&&_0x47a063(_0x2ac205,_0x1a5495,_0x2ffa52),_0x2ffa52;},_0x1f4ef2=(_0x151855,_0x590a5b)=>(_0x33771a,_0xe43a85)=>_0x590a5b(_0x33771a,_0xe43a85,_0x151855);const _0x36d8d4=_0x287b51(0x300),_0x52c16a=_0x287b51(0x468);_0x10dd67[_0x287b51(0x124)]=class{constructor(_0x4af45c,_0x17a749){const _0x32f2f2=_0x287b51;this[_0x32f2f2(0x1e1)]=_0x4af45c,this['_configService']=_0x17a749;}['_getAPIPrefixPath'](){const _0x47de9a=_0x287b51;var _0x42cedb;return(_0x42cedb=this[_0x47de9a(0x3ff)][_0x47de9a(0x3e5)](_0x36d8d4))!=null?_0x42cedb:_0x52c16a;}async['create'](_0x1bb930){const _0x356c06=_0x287b51,_0x245a9f=this[_0x356c06(0x269)]()+'/'+_0x1bb930[_0x356c06(0x3d9)]+_0x356c06(0x1cd);return(await this['_HTTPService']['post'](_0x245a9f,{'body':_0x1bb930}))[_0x356c06(0x115)][_0x356c06(0x2a3)]||'';}async['list'](_0x213e24){const _0x9dbf8f=_0x287b51,_0x3cee78=this[_0x9dbf8f(0x269)]()+_0x9dbf8f(0x258);return(await this[_0x9dbf8f(0x1e1)]['post'](_0x3cee78,{'body':_0x213e24}))[_0x9dbf8f(0x115)][_0x9dbf8f(0x2e1)];}async[_0x287b51(0x1c1)](_0x54afdb){const _0x346d2f=_0x287b51,_0x3c390a=this[_0x346d2f(0x269)]()+'/'+_0x54afdb[_0x346d2f(0x3d9)]+'/object/'+_0x54afdb[_0x346d2f(0x2a3)];await this[_0x346d2f(0x1e1)]['put'](_0x3c390a,{'body':_0x54afdb});}async[_0x287b51(0x425)](_0x27af86){const _0x5f4571=_0x287b51,_0xc141b3=this[_0x5f4571(0x269)]()+'/'+_0x27af86[_0x5f4571(0x3d9)]+_0x5f4571(0x105)+_0x27af86[_0x5f4571(0x2a3)]+'/allowed';return(await this[_0x5f4571(0x1e1)][_0x5f4571(0x21c)](_0xc141b3,{'body':_0x27af86}))[_0x5f4571(0x115)][_0x5f4571(0x396)];}async['batchAllowed'](_0x202145){const _0x2ef02e=_0x287b51,_0x46d4cd=this[_0x2ef02e(0x269)]()+_0x2ef02e(0x110);return(await this[_0x2ef02e(0x1e1)][_0x2ef02e(0x21c)](_0x46d4cd,{'body':{'requests':_0x202145}}))[_0x2ef02e(0x115)]['objectActions'];}async[_0x287b51(0x345)](_0x28dd70){const _0x34bb56=_0x287b51,_0x4a7d03=this[_0x34bb56(0x269)]()+'/'+_0x28dd70['objectType']+_0x34bb56(0x3bb),_0x5376ad=await this[_0x34bb56(0x1e1)][_0x34bb56(0x21c)](_0x4a7d03,{'body':_0x28dd70});return{'roles':_0x5376ad[_0x34bb56(0x115)][_0x34bb56(0x21f)],'actions':_0x5376ad[_0x34bb56(0x115)][_0x34bb56(0x396)]};}async[_0x287b51(0x186)](_0x24191d){const _0x38d77c=_0x287b51,_0x373513=this[_0x38d77c(0x269)]()+'/collaborator';await this['_HTTPService'][_0x38d77c(0x3a9)](_0x373513,{'params':{'collaboratorID':_0x24191d[_0x38d77c(0x446)],'objectID':_0x24191d[_0x38d77c(0x2a3)],'unitID':_0x24191d[_0x38d77c(0x2e4)]}});}async[_0x287b51(0x49d)](_0x383cf3){const _0x18819f=_0x287b51,_0x5c28c7=this[_0x18819f(0x269)]()+_0x18819f(0x211);await this['_HTTPService']['patch'](_0x5c28c7,{'body':_0x383cf3});}async[_0x287b51(0x45f)](_0x7a5ab8){const _0x4c9fc2=_0x287b51,_0x1edce9=this[_0x4c9fc2(0x269)]()+_0x4c9fc2(0x211);await this[_0x4c9fc2(0x1e1)][_0x4c9fc2(0x21c)](_0x1edce9,{'body':_0x7a5ab8});}async['listCollaborators'](_0x467cbd){const _0x418444=_0x287b51,_0x4e8d51=this[_0x418444(0x269)]()+'/collaborator';return(await this[_0x418444(0x1e1)][_0x418444(0x2e7)](_0x4e8d51,{'params':{'objectID':_0x467cbd['objectID'],'unitID':_0x467cbd[_0x418444(0x2e4)]}}))['body']['collaborators'];}async[_0x287b51(0x2a1)](_0x4bd0e8){const _0x5b62e1=_0x287b51,_0x256589=this[_0x5b62e1(0x269)]()+_0x5b62e1(0x211);await this['_HTTPService']['put'](_0x256589,{'body':_0x4bd0e8});}},_0x10dd67['AuthzIoHttpService']=_0x41896c([_0x1f4ef2(0x0,_0x1bb894[_0x287b51(0x307)](_0x111db8[_0x287b51(0x41e)])),_0x1f4ef2(0x1,_0x1bb894[_0x287b51(0x307)](_0x1c4e07[_0x287b51(0x322)]))],_0x10dd67['AuthzIoHttpService']);var _0x26fb15=Object[_0x287b51(0x2aa)],_0x2e6c8e=Object[_0x287b51(0x38a)],_0x3d3363=(_0x5ae83b,_0x410995,_0x496c7d,_0x103ae4)=>{const _0x3f7ab6=_0x287b51;for(var _0x1969bd=_0x103ae4>0x1?void 0x0:_0x103ae4?_0x2e6c8e(_0x410995,_0x496c7d):_0x410995,_0x513079=_0x5ae83b[_0x3f7ab6(0x28c)]-0x1,_0x5a0624;_0x513079>=0x0;_0x513079--)(_0x5a0624=_0x5ae83b[_0x513079])&&(_0x1969bd=(_0x103ae4?_0x5a0624(_0x410995,_0x496c7d,_0x1969bd):_0x5a0624(_0x1969bd))||_0x1969bd);return _0x103ae4&&_0x1969bd&&_0x26fb15(_0x410995,_0x496c7d,_0x1969bd),_0x1969bd;},_0x56aa58=(_0x3a028b,_0xcaaeb7)=>(_0x13d533,_0xa19bd8)=>_0xcaaeb7(_0x13d533,_0xa19bd8,_0x3a028b);const _0x4389e5=[_0x287b51(0x3ef),_0x287b51(0x220),_0x287b51(0x2ca),_0x287b51(0x362),_0x287b51(0x15e)],_0x3591c1=0x5*0x400*0x400,_0x1312ab=_0x287b51(0x34c),_0x15efdc=_0x287b51(0x3c2),_0x1dbf49=_0x287b51(0x3cc),_0x4cad32='/universer-api/file/{fileID}/sign-url';let _0x3d2a5f=class{constructor(_0x16c280,_0x531cfa){const _0x3adae7=_0x287b51;_0x6a44fc(this,_0x3adae7(0x2ba),0x0),_0x6a44fc(this,_0x3adae7(0xee),new _0x1d06c2['Subject']()),_0x6a44fc(this,'change$',this[_0x3adae7(0xee)]),_0x6a44fc(this,_0x3adae7(0x1e0),new Map()),(this[_0x3adae7(0x479)]=_0x16c280,this[_0x3adae7(0x3ff)]=_0x531cfa);}['setWaitCount'](_0x1c0f24){const _0x457dd0=_0x287b51;this[_0x457dd0(0x2ba)]=_0x1c0f24,this['_change$']['next'](_0x1c0f24);}[_0x287b51(0x1bf)](_0x48fe6d,_0x1c71e8){const _0x5edb15=_0x287b51;if(_0x1c71e8===_0x5a77dd[_0x5edb15(0x3a0)]['BASE64']){const _0x3f477f=new Image();return _0x3f477f[_0x5edb15(0x147)]=_0x48fe6d,_0x3f477f;}return this[_0x5edb15(0x1e0)]['get'](_0x48fe6d);}['addImageSourceCache'](_0x55c34e,_0x59a265,_0x2c4a09){const _0x386a50=_0x287b51;_0x59a265===_0x5a77dd['ImageSourceType']['BASE64']||_0x2c4a09==null||this[_0x386a50(0x1e0)]['set'](_0x55c34e,_0x2c4a09);}async[_0x287b51(0x309)](_0x15669e){const _0x5bbad7=_0x287b51;try{const _0x1dcfd3=this[_0x5bbad7(0x3a3)](this['_getSignURL'](),''+_0x15669e),_0x27fdc6=(await this[_0x5bbad7(0x479)][_0x5bbad7(0x2e7)](_0x1dcfd3))[_0x5bbad7(0x115)];return _0x27fdc6[_0x5bbad7(0x18c)]&&_0x27fdc6[_0x5bbad7(0x18c)]['code']===_0x2eeeac['OK']?Promise[_0x5bbad7(0x16c)](_0x27fdc6['url']):Promise[_0x5bbad7(0x392)](_0x27fdc6[_0x5bbad7(0x18c)]);}catch(_0x502bc5){return Promise['reject'](_0x502bc5);}}async[_0x287b51(0x16f)](_0x3a09f4){const _0x3b2e9f=_0x287b51;let _0x303969='';if(!_0x4389e5['includes'](_0x3a09f4[_0x3b2e9f(0x3ca)]))return this['_decreaseWaiting'](),Promise[_0x3b2e9f(0x392)](new Error(_0x5a77dd['ImageUploadStatusType'][_0x3b2e9f(0x37f)]));if(_0x3a09f4[_0x3b2e9f(0x198)]>_0x3591c1)return this[_0x3b2e9f(0x2f5)](),Promise[_0x3b2e9f(0x392)](new Error(_0x5a77dd['ImageUploadStatusType'][_0x3b2e9f(0x44a)]));try{const _0x137280=new FormData();_0x137280[_0x3b2e9f(0x3ec)](_0x3b2e9f(0x394),_0x3a09f4);const _0x10a308=this[_0x3b2e9f(0x330)]()+_0x3b2e9f(0x3a1)+_0x3a09f4[_0x3b2e9f(0x198)][_0x3b2e9f(0x3f4)](),_0x192942=await(await fetch(_0x10a308,{'method':'POST','body':_0x137280}))[_0x3b2e9f(0x45a)]();if(typeof _0x192942[_0x3b2e9f(0x36c)]!=_0x3b2e9f(0x270))return this[_0x3b2e9f(0x2f5)](),Promise[_0x3b2e9f(0x392)](new Error(_0x5a77dd[_0x3b2e9f(0x218)][_0x3b2e9f(0x355)]));_0x303969=_0x192942['FileId'];}catch{return this[_0x3b2e9f(0x2f5)](),Promise[_0x3b2e9f(0x392)](new Error(_0x5a77dd['ImageUploadStatusType'][_0x3b2e9f(0x355)]));}return new Promise((_0x53b794,_0x169160)=>{const _0xb76b35=_0x3b2e9f,_0x33066e=new FileReader();_0x33066e[_0xb76b35(0x22f)](_0x3a09f4),_0x33066e[_0xb76b35(0x356)]=_0x3361a4=>{const _0x47ef88=_0xb76b35;var _0x1d47ac;const _0x378543=(_0x1d47ac=_0x3361a4['target'])==null?void 0x0:_0x1d47ac[_0x47ef88(0x3bf)];if(_0x378543==null){this['_decreaseWaiting'](),_0x169160(new Error(_0x5a77dd[_0x47ef88(0x218)][_0x47ef88(0x355)]));return;}const _0x3e66b1=_0x1c4e07[_0x47ef88(0x481)][_0x47ef88(0x1aa)](0x6);_0x53b794({'imageId':_0x3e66b1,'imageSourceType':_0x5a77dd[_0x47ef88(0x3a0)][_0x47ef88(0x44b)],'source':_0x303969,'base64Cache':_0x378543,'status':_0x5a77dd[_0x47ef88(0x218)][_0x47ef88(0x39a)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x11943a=_0x287b51;var _0x1c59b7;return(_0x1c59b7=this['_configService'][_0x11943a(0x3e5)](_0x1312ab))!=null?_0x1c59b7:_0x15efdc;}[_0x287b51(0x46d)](){const _0x3fbffa=_0x287b51;var _0xcbbf2e;return(_0xcbbf2e=this['_configService'][_0x3fbffa(0x3e5)](_0x1dbf49))!=null?_0xcbbf2e:_0x4cad32;}[_0x287b51(0x3a3)](_0x39a49b,_0x3cc541){const _0x5d0fc2=_0x287b51;return _0x39a49b[_0x5d0fc2(0x2b5)](_0x5d0fc2(0x315),_0x3cc541);}[_0x287b51(0x2f5)](){const _0x3c2916=_0x287b51;this[_0x3c2916(0x2ba)]-=0x1,this[_0x3c2916(0xee)]['next'](this['_waitCount']);}};_0x3d2a5f=_0x3d3363([_0x56aa58(0x0,_0x1bb894['Inject'](_0x111db8['HTTPService'])),_0x56aa58(0x1,_0x1c4e07['IConfigService'])],_0x3d2a5f);var _0x10b288=Object['defineProperty'],_0x1f95d7=Object[_0x287b51(0x38a)],_0x4fd7f6=(_0x35b71d,_0x1ab389,_0x4151ba)=>_0x1ab389 in _0x35b71d?_0x10b288(_0x35b71d,_0x1ab389,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4151ba}):_0x35b71d[_0x1ab389]=_0x4151ba,_0x61e418=(_0x104c50,_0x380208,_0x5697e5,_0x424440)=>{const _0x5136ea=_0x287b51;for(var _0x3d037d=_0x424440>0x1?void 0x0:_0x424440?_0x1f95d7(_0x380208,_0x5697e5):_0x380208,_0xe065c2=_0x104c50[_0x5136ea(0x28c)]-0x1,_0x4b9da0;_0xe065c2>=0x0;_0xe065c2--)(_0x4b9da0=_0x104c50[_0xe065c2])&&(_0x3d037d=(_0x424440?_0x4b9da0(_0x380208,_0x5697e5,_0x3d037d):_0x4b9da0(_0x3d037d))||_0x3d037d);return _0x424440&&_0x3d037d&&_0x10b288(_0x380208,_0x5697e5,_0x3d037d),_0x3d037d;},_0x35a29b=(_0xf6ca0a,_0x30adca)=>(_0x2582f7,_0x1f9cba)=>_0x30adca(_0x2582f7,_0x1f9cba,_0xf6ca0a),_0x26eb17=(_0x223454,_0x1bbc17,_0x50b10d)=>_0x4fd7f6(_0x223454,_0x1bbc17+'',_0x50b10d);const _0x2990da='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x10dd67[_0x287b51(0x30d)]=class extends _0x1c4e07[_0x287b51(0x2a4)]{constructor(_0x2bb205,_0x26f342,_0x1cd1a4){const _0x51d1f8=_0x287b51;super(),this[_0x51d1f8(0x2a8)]=_0x2bb205,this['_logService']=_0x26f342,this[_0x51d1f8(0x1e4)]=_0x1cd1a4;}[_0x287b51(0x2fd)](_0x45cdb5){const _0x1c05aa=_0x287b51;var _0x183661,_0x86bf03,_0x32e72a,_0x53b779,_0x1d7dc2;_0x45cdb5[_0x1c05aa(0x497)](_0x1c4e07[_0x1c05aa(0x27b)])&&this[_0x1c05aa(0x462)][_0x1c05aa(0x18c)](_0x1c05aa(0x454),_0x1c05aa(0x1a2));let _0x57106a=[[_0x1c4e07['IUndoRedoService'],{'useClass':_0x1be731}],[_0x10dd67['CollaborationSessionService']],[_0x3457a1],[_0x111db8['HTTPService']],[_0x3c711f,{'useClass':_0x3e1290}],[_0x6d0d68],[_0x10dd67[_0x1c05aa(0x36f)]],[_0x111db8[_0x1c05aa(0x368)]],[_0x3de67e],[_0x55142a],[_0xb1ca15],[_0x1dcff6],[_0x1a72d3],[_0x56ad54],[_0x447af8,{'useClass':(_0x86bf03=(_0x183661=this[_0x1c05aa(0x2a8)])==null?void 0x0:_0x183661[_0x1c05aa(0x331)])!=null?_0x86bf03:_0x10dd67[_0x1c05aa(0x2f0)]}],[_0x111db8[_0x1c05aa(0x239)],{'useClass':_0x111db8['XHRHTTPImplementation']}],[_0x1c4e07[_0x1c05aa(0x177)],{'useClass':_0x24796a}],[_0x1c4e07[_0x1c05aa(0x326)],{'useClass':_0x10dd67[_0x1c05aa(0x124)]}],[_0x5a77dd[_0x1c05aa(0x1ce)],{'useClass':_0x3d2a5f}],[_0x10dd67[_0x1c05aa(0x284)]],[_0x10dd67[_0x1c05aa(0x423)]],[_0x10dd67[_0x1c05aa(0x353)]],[_0x3663ec],[_0x3f6476]];(_0x32e72a=this['_config'])!=null&&_0x32e72a[_0x1c05aa(0x171)]&&_0x57106a[_0x1c05aa(0x344)]([_0x3077b8,{'useClass':_0x115f30}]),((_0x53b779=this[_0x1c05aa(0x2a8)])==null?void 0x0:_0x53b779['collaborationUniverTypes'])==null||this[_0x1c05aa(0x2a8)][_0x1c05aa(0x463)][_0x1c05aa(0x410)](_0x1c4e07[_0x1c05aa(0x3f1)][_0x1c05aa(0x373)])?_0x57106a[_0x1c05aa(0x344)]([_0x550e88]):this[_0x1c05aa(0x2a8)][_0x1c05aa(0x463)][_0x1c05aa(0x410)](_0x1c4e07[_0x1c05aa(0x3f1)][_0x1c05aa(0x104)])&&_0x57106a[_0x1c05aa(0x344)]([_0x21f0be]),_0x57106a=_0x1c4e07[_0x1c05aa(0x3b3)](_0x57106a,(_0x1d7dc2=this[_0x1c05aa(0x2a8)])==null?void 0x0:_0x1d7dc2[_0x1c05aa(0x471)]),_0x57106a['forEach'](_0x52f898=>_0x45cdb5['add'](_0x52f898)),_0x45cdb5[_0x1c05aa(0x2e7)](_0x111db8[_0x1c05aa(0x41e)])[_0x1c05aa(0x289)]({'priority':0x14,'interceptor':_0x111db8['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x1c05aa(0x2f4)]();}[_0x287b51(0x2f4)](){const _0x2026e6=_0x287b51;var _0x2c7567,_0x3b3228;(_0x2c7567=this[_0x2026e6(0x2a8)])!=null&&_0x2c7567[_0x2026e6(0x155)]||this['_injector'][_0x2026e6(0x2e7)](_0x10dd67[_0x2026e6(0x36f)])[_0x2026e6(0xdf)](),(_0x3b3228=this['_config'])!=null&&_0x3b3228[_0x2026e6(0x2e9)]&&this[_0x2026e6(0x1e4)][_0x2026e6(0x2e7)](_0x1a72d3);}},_0x26eb17(_0x10dd67[_0x287b51(0x30d)],'pluginName',_0x2990da),_0x10dd67[_0x287b51(0x30d)]=_0x61e418([_0x1c4e07[_0x287b51(0x2d6)](_0x2d9232[_0x287b51(0x302)]),_0x35a29b(0x1,_0x1c4e07['ILogService']),_0x35a29b(0x2,_0x1bb894[_0x287b51(0x307)](_0x1bb894[_0x287b51(0x22d)]))],_0x10dd67[_0x287b51(0x30d)]),_0x10dd67['AUTHZ_URL_KEY']=_0x36d8d4,_0x10dd67['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0x27f411,_0x10dd67['COLLAB_WEB_SOCKET_URL_KEY']=_0xa48080,_0x10dd67[_0x287b51(0x37d)]=_0x5926fc,_0x10dd67[_0x287b51(0x238)]=_0x4131bc,_0x10dd67[_0x287b51(0x196)]=_0x56ad54,_0x10dd67['HEARTBEAT_INTERVAL_KEY']=_0x2c07e6,_0x10dd67['HEARTBEAT_TIMEOUT_KEY']=_0x2f2183,_0x10dd67[_0x287b51(0x121)]=_0x447af8,_0x10dd67[_0x287b51(0x179)]=_0x3c711f,_0x10dd67[_0x287b51(0x3d1)]=_0x323ca0,_0x10dd67[_0x287b51(0x1e2)]=_0x1df6aa,_0x10dd67[_0x287b51(0x308)]=_0x508e4a,_0x10dd67['SNAPSHOT_SERVER_URL_KEY']=_0x4b25d4,_0x10dd67[_0x287b51(0x16e)]=_0x2d74a6,_0x10dd67[_0x287b51(0x28d)]=_0x423d5f,_0x10dd67[_0x287b51(0x3c8)]=_0x3e1290,_0x10dd67[_0x287b51(0x3ba)]=_0x3026e3,_0x10dd67[_0x287b51(0x212)]=_0x1ce152,Object[_0x287b51(0x2aa)](_0x10dd67,Symbol[_0x287b51(0x159)],{'value':_0x287b51(0x343)});}));function _0x54b9(_0x51b1c2,_0x4b2873){const _0x38bd12=_0x38bd();return _0x54b9=function(_0x54b901,_0x285225){_0x54b901=_0x54b901-0xd9;let _0x423e8c=_0x38bd12[_0x54b901];return _0x423e8c;},_0x54b9(_0x51b1c2,_0x4b2873);}function _0x38bd(){const _0x547f2c=['DesktopCollaborationStatusDisplayController','conflict.content','ERROR_IMAGE','onload','merge','\x20in\x20_schedule.','APPLY_NON_SEQUENTIAL_REVISION','_singleActiveUnitService','_updateSubUnitFromURLParams','createSocket','_createInitialStateImpl','_getRedoStack','getViewport','univer-online','@univerjs-pro/collaboration','image/gif','NOT_FOUND','originalMeta','_toggleOffline','clear','state','WebSocketService','INVALID_ARGUMENT','_timeoutTimer','url(#$1','FileId','_syncEditingCollabCursor','WorkbookEditablePermission','LocalCacheService','colorChannel1','key','_socketReady','UNIVER_SHEET','OTHER_CLIENTS_EDITING','JOINING','_getSheetObject','_onMessage','asObservable','shareReplay','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','/unit/','COLLAB_WEB_SOCKET_URL','CollaborationStatus','Univer','ERROR_IMAGE_TYPE','SetWorksheetActivateCommand','_transformRemoteChangesetByIMECache','hide','VIEWPORT_KEY','_onFetchMissResult','onlineStatusTitle','translate(.97)','enableLocalCache','_onRemoteACK','close$','getOwnPropertyDescriptor','_clearHeartbeatTimer','Optional','cmd','_transformStack','handleInsertRangeMoveRight','onlyLocal','roomMembers','reject','collabCursorState$','file','session','actions','_socket$','deserializeRangeWithSheet','on-line-single_clip0_910_349','SUCCUSS','getCurrentUnitForType','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','IPermissionService','_onUserLeave','RECV','ImageSourceType','?size=','APPLY_REVISION_CONFILICT','_replaceFileID','SetTextSelectionsOperation','addObjects','LICENSE_IMPORT_SIZE_EXCEEDED','_exhaustRemoteChangesetQueue','DeleteRangeMoveUpCommandId','delete','state$','assignAColorForMemberID','focused$','transformSelections','sessionStatus','pauseCollaboration','editing\x20status\x20changed\x20to','max','YUUMI_UNABLE_LOAD_URL','mergeOverrideWithDependencies','getCurrentUser','fillText','isActive','function','_transformPreviousActiveRange','_onConnectionFailed','deserializeToCombResponse','/role','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','extend','InsertRowCommandId','result','getRangePointData','csRejEvent','/universer-api/stream/file/upload','#FFF','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getCoordByCell','COLORS','encodeURIComponent','WebURLService','setItem','type','storage','EXCHANGE_SIGN_URL_SERVER_URL_KEY','newValue','changesets','forEach','unshift','LOCAL_CACHE_INTERVAL_KEY','_renderManagerService','saveChangeset','round','collab-text-range-','open$','column','_compressMutationService','objectType','updateOfflineData','[OfflineState]:\x20received\x20rejection.','baseRev','hovered','_loadSheet','online','c2Prime','IRemoteInstanceService','ACTIVE_UNIT_EVENT_CHANNEL','@univerjs/core','_members','getConfig','commentUpdateEvent','univerjs-icon\x20univerjs-icon-','removeMember','unknown','contains','_updateState','append','lodash','fetchThroughInterceptors','image/png','call','UniverInstanceType','RefRangeService','from','toString','938525OYutfi','SNAPSHOT_HAS_BEEN_REMOVED','CommandType','attrs','awaitingChangeset','_onRemoteChangeset','socket\x20close','pipe','_getDocObject','_socketService','_configService','findNodePositionByCharIndex','sheetID','UniverCollaborationClient','370952LBxuwN','appendMutation','_handler','getResourcesRequest','LICENSE_EXPORT_SIZE_EXCEEDED','CompressMutationService','_removeRoom','[PendingState]:\x20received\x20rejection.','_onRecvEvent','setCurrentUser','MoveRangeCommandId','toggleOnline','data','includes','getRelativeCoord','_onJoinRoomEvent','_collabCursorState$','_sessions','onMissedChangesetFetched','isArray','_id','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_collaborationPaused','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','InsertSheetMutation','object','endRow','HTTPService','useDependency','getMergeData','complete','UNRECOGNIZED','DataLoaderController','collaMsg','allowed','[OfflineState]:\x20received\x20changeset.','LocaleService','font','_anchor','_cursorInfo$','onStateChange','_onCursorDelete','_roomMembers$','ColorKit','fillStyle','isTransformChangesetsSuccess','Warning','DisposableCollection','unit','getSheetId','dispose$','SelectionManagerService','subUnitId','selection','_getSaveTimeout','isPermissionRej','transformChangesets','getRenderById','getOffsetConfig','_color','_socketMessageSubscription','BuiltInUIPart','getDocObject','useObservable','IUniverInstanceService','catch','_entities','collaboratorID','_event$','JOIN','1em','ERROR_EXCEED_SIZE','UUID','_heartbeatTimer','parseChangesetToProtocol','_getSendChangesetTimeout','_getMergeRange','_onConflict','registerBeforeClose','LIVESHARE_NEW_HOST','title','[UniverCollaborationClientPlugin]','_univerInstanceService','_docSkeleton','PSEUDO_FETCH_MISSING_RESULT','current','INTERNAL_ERROR','json','[DataLoaderController]','_startSheetCollabCursor','cursorInfo','_beforeCloseService','createCollaborator','SnapshotService','_docTransformSelectionsService','_logService','collaborationUniverTypes','triggerDblclick','pending','hasOwnProperty','setAlpha','/universer-api/authz','...','_lockTransition','subscribeEvent','forwardRef','_getSignURL','onMissingChangesets','_updateURLWithCurrentState','csAckEvent','override','reverse','getActiveSheet','MessageType','_remoteChangesetQueue','_unitId','[PendingState]:\x20received\x20acknowledgement.','rev','_httpService','_getCtorByUniverType','init','then','@wendellhu/redi/react-bindings','[ClientCollaborationController]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_sendingTimer','_updateLocalCache','Tools','off-line-single','AWAITING','_saveCache','_undoRedoService','RxDisposable','5155170UWhLSO','_session','div','EffectRefRangId','_scheduleSaving','clsx','_removeClearOtherTimer','_getUndoStack','rgba(255,\x20255,\x20255,\x200.01)','routeKey','_status$','rxjs','PENDING','univer-online-status-icon','univer-offline','_substituteRedoStack','has','status','location','_clearCollaborationTimeoutTimer','m1Prime','mutations','updateCollaborator','_urlService','SheetSkeletonManagerService','CollaborationSession','_clearScheduledTask','_themeService','prototype','getTime','Starting','UniverDocs','_applyRemoteChangeset','drawWith','session.collaboration-timeout','closePath','roomInfos','disableLocalCache','DocStateChangeManagerService','_disabled','_initStatusListener','_selfUnitIDs','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_lastPointer','/universer-api/snapshot/','USERS_LEAVE','sheetId','xlink:href','svg','TEXT_RANGE_LAYER_INDEX','UniverNetwork','SEND_CHANGESET_TIMEOUT','_change$','_textBubble','_sessionStatus$','sessionStatus$','apply','\x20to\x20','onMouseMove','_refRangeService','transformStack\x20failed!','_queuedRemoteChangesets','url(#off-line-single_clip0_910_343)','getCollabEntity$','_hover','with','updateMember','onPointerLeave$','_eventUnsubscribe','USERS_ENTER','red300','MUTATION','InsertColCommandId','getCollabCursors$','UNIVER_DOC','/object/','_snapshotServerService','stringify','_onCombEvent','getUnitStatus$','LifecycleStages','/universer-api/comb','split','@univerjs/engine-render','RemoveRowCommandId','IBeforeCloseService','/-/object/-/batch_allowed','_isPermissionRej','RevisionService','_getLoginPath','_unitStatus','body','_permissionService','roomMembers$','_updateCollabCursors','uni.network.url-service','amd','_scene','none','docStateChange$','\x0aAfter:\x20','UniverRpc','getAncestorScale','ICollaborationSocketService','\x20-\x20','eventID','AuthzIoHttpService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_commentService','entries','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_handleJoinEvent','toDisposable','name','React','skeleton','currentTheme$','onTransformRemoteChangesetByIMECache','getActiveRange','_clearLocalCache','CollaborationEvent','_undoStacks','className','_draw','RegularPolygon','conflict','whenReady','MSG_FOR_ERROR','encode','SetSelectionsOperation','beginPath','startRow','replaceTextRanges','LEAVE','_createHandler','_createInitialState','Ready','show','_scheduleCollaborationTimeoutTimer','_localCacheService','row','src','LIVESHARE_OPERATION','Error','all','resend','[CollaborationSessionService]:\x20socket\x20error','_waitForHeartbeatResponse','socket\x20open.','registerOnClose','6izsoin','NOT_COLLAB','_retryCount','indexOf','Disposable','enableOfflineEditing','univer-online-status-title','_state','getColor','toStringTag','add','_name','getParam','UniverCollaboration','image/bmp','LOCAL_CACHE_INTERVAL','handleIRemoveCol','addObject','_setupSubUnitSync','LIVESHARE_TERMINATE','getUndoRedoMutationParamsCache','[SyncedState]:\x20received\x20rejection.','M0\x200H16V16H0z','black','_collaborationTimeoutTimer','_scheduleClearOtherTimer','getSheetBySheetId','switchMap','resolve','onPointerEnter$','SNAPSHOT_URL_KEY','saveImage','getInterceptPoints','enableSingleActiveInstanceLock','_handleHeartbeatEvent','_schedule','clipPath','_awaitingChangeset','SYNCED','ISnapshotServerService','displayName','IURLService','getTypeOfUnitAdded$','serializeTextRange','CHANGESET_REVISION_CONFILICT','transformMutation','textEncoder','_docStateChangeManagerService','NO_OTHER_CLIENTS_EDITING','href','onlineStatus','getRoom','_onConnectionOpen','_getAPIPrefix','deleteCollaborator','memberID','doc.mutation.rich-text-editing','event$','LICENSE_MAX_UNITS_EXCEEDED','_uiPartsService','error','/rev/','_snapshotService','collab-text-anchor-','[CollaborationUndoRedoService]','getOwnPropertySymbols','FETCH_MISSING','APPLY_PERMISSION_DENIED','rxjs/operators','_startDocCollabCursor','CommentService','570395wtdeAO','size','_drawAnchor','width','isTransformMutationFailure','_send','color','_range','syncEditingCollabCursor','idSuffix','jiqing500','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_shapes','leaveEvent','InsertRangeMoveRightCommandId','setActiveRange','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','save\x20fail\x20reason\x20is\x20','setUndoRedoMutationParamsCache','generateRandomId','Vector2','_labelPosition','defs','/resources','/new_changes','createElement','disposeUnit','Subject','map','UNIVER_UNKNOWN','FromArray','[OfflineState]:\x20received\x20acknowledgement.','handleMoveRange','error$','UniverDrawing','_saveTaskMap','min','handleInsertRow','LICENSE_DISTRO_REJECTED','dispose','getImageSourceCache','height','update','distinctUntilChanged','b64DecodeUnicode','_colorIndex','_createSocket','replaceState','_syncEditingCollabCursorService','_exhaustSavingTask','labelPosition','onRemoteRej','getMember','getUniverSheetInstance','/object','IImageIoService','requireSession','IDLE','incrementRevForDocument','_ws','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','BehaviorSubject','CONNECTOR_DATA_TOO_LARGE','4566919VAldmC','collabStatus.fetchMiss','LocalUndoRedoService','@univerjs/design','OnLifecycle','unitId','[SyncedState]:\x20received\x20acknowledgement.','ranges','FAIL','purple300','_imageSourceCache','_HTTPService','LOGIN_URL_KEY','HEARTBEAT_INTERVAL','_injector','history','UNKNOWN_CMD','getCurrent','setInterval','_cursors','LIVESHARE_FETCH_OPERATIONS','getCellPositionByOffset','message$','searchParams','Shape','_handleLeaveEvent','_onCursorUpdate','Rectangle','transformByState','_localStorageService','liveShareNewHost','use','CHANGESET_ACK','_scheduleHeartbeat','toggleOffline','_render','_executeRemoteChangeset','_cursor','useRef','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_assignedColors','path','c1Prime','UNDEFINED','_scheduleTimestamp','getTypeOfUnitDisposed$','combineLatest','setShapeProps','_onUserJoin','close','UniverEngineRender','getCollabEntity','status$','@univerjs/network','pushState','LIVESHARE_REQUEST_HOST','_initStatusComponent','InsertRangeMoveDownCommandId','@univerjs/sheets','/collaborator','serializeCombRequest','members','_hideTimer','commentUpdate$','@univerjs/engine-formula','random','ImageUploadStatusType','onTransformSelections','IContextService','measureText','post','clearTimeout','IRenderManagerService','roles','image/jpeg','_socket','?url=','_localeService','_transformSelections','UniverSheets','HELLO','_http','_cachedData','_memberService','_getSnapshotAPIPrefix','lodash/debounce','1879982vIDdpQ','Injector','COMMENT_UPDATE','readAsDataURL','transformIMECache','params','[CollaborationState]:\x20apply\x20error!','arc','setTimeout','[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.','save','concatMap','CollaborationStatusDisplay','IHTTPImplementation','_anchorDot','_getScale','defIds','getSheetObject','popstate','fetching\x20missing\x20changesets\x20from\x20','userID','toRgbString','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','parse','loadOfflineData','_sendHeartbeatTimer','getScrollXYByRelativeCoords','getValue','serializeRangeWithSheet','_onRemoteRejected','onCommandExecuted','isTransformMutationsWithChangesetFailure','_ensureSubject','_state$','_transitionLocked','ITransformService','YUUMI_URL_COL_OUT_OF_RANGE','_substituteUndoStack','_revisionService','createIdentifier','_unitOnClients','_toggleOnline','find','[PendingState]:\x20unhandled\x20univer\x20type:\x20','/-/object/list','DEFAULT_FILE_NAME','revision','NodePositionConvertToCursor','UNIVER_SLIDE','_updateLocalCursor','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','ThemeService','/universer-api/oidc/authpage','@univerjs/rpc','clearInterval','32XOtPty','subunit','urlChange$','ILocalStorageService','url(#on-line-single_clip0_910_349)','_incrementRevisionNumber','_getAPIPrefixPath','moveTo','_online','onCommentUpdate','_getCurrentRevision','COMPRESS_MUTATION_APPLY','HEARTBEAT_TIMEOUT','string','takeUntil','send','TOO_MANY_REQUESTS','m2Prime','_disableEditing','UniverIcon','range','univer-pro.collaboration-client-socket-service','_commandService','_roomMembers','IUndoRedoService','connectInjector','getMemberID','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','currentSkeleton$','icon','_drawRange','_notificationService','_messageService','CollaborationController','OnLineSingle','getCurrentRevForDocument','CollaborationSessionService','set','registerHTTPInterceptor','@univerjs/drawing','_startCollaboration','length','SessionStatus','ONLINE','joinEvent','_docSkeletonManagerService','not_collab','DocSkeletonManagerService','_pendingMutations','SNAPSHOT_INVALID_SNAPSHOT','_colorAssignService','onRemoteChangeset','next','Rect','_collabCursorController','resourceIDs','transformRemoteChangeset','NEW_CHANGESETS','_tryEnsureSocket','transformUndoRedo','HEARTBEAT','_sendHeartbeat','putCollaborators','_acknowledgedAwaitingChangeset','objectID','Plugin','permissionRejEvent','IMEInputManagerService','restore','_config','transformMutationsWithChangeset','defineProperty','ILogService','collabStatus.conflict','_sheetSkeletonManagerService','_showConflictNotification','collabStatus.syncing','startColumn','UniverSheetsUi','157503YKktGO','RemoveColCommandId','on-line-single','replace','saveSnapshot','#fff','Unknown\x20user','unsubscribe','_waitCount','reduce','_docTransformIMECacheService','_type','_userManagerService','COMPLETION_FINISHED','handleInsertRangeMoveDown','permission.content','_init','mapDocumentTypeToUniverType','lineTo','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','_replayCachedMutations','CHANGESET_REJ','@univerjs/ui','cursorInfo$','image/jpg','bottom','concat','loadSheet','_retryConnectingTimer','_scheduleReconnection','_collaborationController','localeService','_removeCollabCursors','textRanges','getFocusedUnit','_entityInit$','DependentOn','onRemoteAck','_clearOtherTimers','PERMISSION_REJ','loadDoc','connection\x20error','assign','_handleHover','conflict.title','subscribe','awaiting','objects','fill','offline','unitID','Steady','evenodd','get','gold400','enableAuthServer','_unlockTransition','saveSheetBlock','IUIPartsService','_transformService','interceptor','auth.needGotoLoginAlert','CollaborationSocketService','fetchMissingChangesets','react','parseProtocolChangeset','_initModules','_decreaseWaiting','collaboration.single-unit.warning','@wendellhu/redi','executeCommand','trim','_rescheduleHeartbeatEvent','selections','blue400','onStarting','delay','children','AUTHZ_URL_KEY','UNAUTHENTICATED','UniverCollaborationPlugin','FETCH_MISS','updatePermissionPoint','getUnitId','onSendChangeset','Inject','SEND_CHANGESET_TIMEOUT_KEY','getImage','RETRY_CONNECTING_MAX_COUNT','DeleteRangeMoveLeftCommandId','fromEvent','UniverCollaborationClientPlugin','ws://127.0.0.1:8000/universer-api/comb/connect','_fetchMissChangesets','transform','[CollaborationEntity]','take','_updateStatus','APPLY_REJECT','{fileID}','getUnitType','IMessageService','9Rzwvqv','_handleEvent','session.will-retry','currentColor','handleDeleteRangeMoveUp','deepClone','createInstance','_hovered','OFFLINE','INotificationService','IConfigService','getDataModel','INGEST','_transformIMECache','IAuthzIoService','fromCollab','onTransformIME','isTransformMutationsWithChangesetSuccess','AWAITING_WITH_PENDING','_checkMissing','registerRefRange','awaiting_with_pending','ALREADY_EXISTS','setParam','_getUploadFileURL','socketService','UniverDesign','UPDATE_CURSOR','text','univer-online-status','SUBMIT_CHANGESET','debug','_clearTimeoutTimer','debounce','_transformUndoRedoStack','Error\x20on\x20receiving\x20event','_onLocalMutation','_collabSessionService','filter','_onRefRangeChange','tag','ICommandService','UNKNOWN_CODE','Module','push','listRoles','disposeWithMe','startsWith','synced','_commentUpdate$','getSelections','_joinRoom','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','handleInsertCol','handleDeleteRangeMoveLeft','_unitID','_clearUndo','unload','unit-cache-'];_0x38bd=function(){return _0x547f2c;};return _0x38bd();}
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();}