@univerjs-pro/collaboration-client-ui 0.8.2 → 0.8.3-nightly.202506271607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ko-KR.js +1 -0
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/locale/ko-KR.d.ts +3 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -17
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x287b(_0x437edd,_0x3df386){const _0x1cec86=_0x1cec();return _0x287b=function(_0x287b47,_0x46037f){_0x287b47=_0x287b47-0x18b;let _0x27c37f=_0x1cec86[_0x287b47];return _0x27c37f;},_0x287b(_0x437edd,_0x3df386);}(function(_0x46d567,_0x570a15){const _0x2166b5=_0x287b,_0x2de272=_0x46d567();while(!![]){try{const _0x503e6b=-parseInt(_0x2166b5(0x3c7))/0x1+parseInt(_0x2166b5(0x3a3))/0x2+parseInt(_0x2166b5(0x26b))/0x3+-parseInt(_0x2166b5(0x27d))/0x4*(parseInt(_0x2166b5(0x29f))/0x5)+parseInt(_0x2166b5(0x257))/0x6+-parseInt(_0x2166b5(0x32d))/0x7+-parseInt(_0x2166b5(0x192))/0x8;if(_0x503e6b===_0x570a15)break;else _0x2de272['push'](_0x2de272['shift']());}catch(_0x2c0207){_0x2de272['push'](_0x2de272['shift']());}}}(_0x1cec,0x4ad53),function(_0x4c735b,_0x56fd8d){const _0x5436a7=_0x287b;typeof exports==_0x5436a7(0x24b)&&typeof module<'u'?_0x56fd8d(exports,require(_0x5436a7(0x289)),require('@univerjs/core'),require(_0x5436a7(0x2e0)),require(_0x5436a7(0x346)),require('@univerjs/docs-ui'),require(_0x5436a7(0x19d)),require('rxjs'),require(_0x5436a7(0x298)),require(_0x5436a7(0x1dd)),require(_0x5436a7(0x2c8)),require(_0x5436a7(0x3cb)),require(_0x5436a7(0x34c)),require('@univerjs/sheets-ui'),require(_0x5436a7(0x3e4)),require(_0x5436a7(0x3e1)),require(_0x5436a7(0x28e)),require(_0x5436a7(0x28a)),require(_0x5436a7(0x3f9))):typeof define=='function'&&define[_0x5436a7(0x35a)]?define([_0x5436a7(0x2cb),'@univerjs-pro/collaboration-client',_0x5436a7(0x338),_0x5436a7(0x2e0),_0x5436a7(0x346),'@univerjs/docs-ui',_0x5436a7(0x19d),_0x5436a7(0x301),_0x5436a7(0x298),_0x5436a7(0x1dd),_0x5436a7(0x2c8),'@univerjs/sheets',_0x5436a7(0x34c),_0x5436a7(0x264),_0x5436a7(0x3e4),_0x5436a7(0x3e1),_0x5436a7(0x28e),_0x5436a7(0x28a),_0x5436a7(0x3f9)],_0x56fd8d):(_0x4c735b=typeof globalThis<'u'?globalThis:_0x4c735b||self,_0x56fd8d(_0x4c735b[_0x5436a7(0x2f6)]={},_0x4c735b[_0x5436a7(0x1ac)],_0x4c735b[_0x5436a7(0x268)],_0x4c735b[_0x5436a7(0x239)],_0x4c735b[_0x5436a7(0x2ac)],_0x4c735b[_0x5436a7(0x294)],_0x4c735b[_0x5436a7(0x411)],_0x4c735b[_0x5436a7(0x301)],_0x4c735b[_0x5436a7(0x1b1)],_0x4c735b[_0x5436a7(0x3e3)],_0x4c735b[_0x5436a7(0x399)],_0x4c735b[_0x5436a7(0x1d0)],_0x4c735b[_0x5436a7(0x301)][_0x5436a7(0x40e)],_0x4c735b[_0x5436a7(0x24a)],_0x4c735b[_0x5436a7(0x321)],_0x4c735b[_0x5436a7(0x20e)],_0x4c735b[_0x5436a7(0x1ab)],_0x4c735b[_0x5436a7(0x321)],_0x4c735b[_0x5436a7(0x2e1)]));}(this,function(_0xa6a46a,_0x3ce651,_0x40dd79,_0x23b118,_0x5ca998,_0x8a01fe,_0x578f1d,_0x9482a0,_0x1ce1f5,_0x2cdbc3,_0x1655b4,_0x5736e9,_0x2e97c4,_0x24e594,_0x115cf8,_0x3117be,_0x27c15c,_0x2d11dd,_0x397d71){'use strict';const _0x7974a5=_0x287b;var _0x280b25=Object[_0x7974a5(0x20f)],_0xfc941b=(_0x30456b,_0x17dc6e,_0x5434e2)=>_0x17dc6e in _0x30456b?_0x280b25(_0x30456b,_0x17dc6e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5434e2}):_0x30456b[_0x17dc6e]=_0x5434e2,_0x5e0e83=(_0x228a0d,_0x5a0326,_0x6d38a4)=>_0xfc941b(_0x228a0d,typeof _0x5a0326!='symbol'?_0x5a0326+'':_0x5a0326,_0x6d38a4),_0x48ea44=Object[_0x7974a5(0x2d6)],_0x22bfb4=(_0xef9c21,_0xa83437,_0x2a3ee9,_0xe817d6)=>{for(var _0xe4771e=_0xe817d6>0x1?void 0x0:_0xe817d6?_0x48ea44(_0xa83437,_0x2a3ee9):_0xa83437,_0x542148=_0xef9c21['length']-0x1,_0x39d578;_0x542148>=0x0;_0x542148--)(_0x39d578=_0xef9c21[_0x542148])&&(_0xe4771e=_0x39d578(_0xe4771e)||_0xe4771e);return _0xe4771e;},_0xe65bed=(_0x115ad2,_0x1f11e2)=>(_0x4ca18d,_0x5037a7)=>_0x1f11e2(_0x4ca18d,_0x5037a7,_0x115ad2);let _0x350338=class extends _0x40dd79[_0x7974a5(0x39d)]{constructor(_0x2d2c06,_0x3876d5){const _0x40224e=_0x7974a5;super(),this[_0x40224e(0x3b9)]=_0x2d2c06,this['_imageIoService']=_0x3876d5,this['_init']();}[_0x7974a5(0x40c)](){const _0x3f4f1d=_0x7974a5,_0x513068=this;this[_0x3f4f1d(0x3a5)](this[_0x3f4f1d(0x3b9)]['addClipboardHook']({'onBeforePasteImage':async _0x574748=>{const _0x2f05f1=_0x3f4f1d,_0x2d98b6=await _0x513068['_imageIoService'][_0x2f05f1(0x415)](_0x574748);return _0x2d98b6?{'source':_0x2d98b6[_0x2f05f1(0x220)],'imageSourceType':_0x2d98b6[_0x2f05f1(0x322)]}:null;}}));}};_0x350338=_0x22bfb4([_0xe65bed(0x0,_0x8a01fe[_0x7974a5(0x1cd)]),_0xe65bed(0x1,_0x578f1d['IImageIoService'])],_0x350338);const _0x436d2e=['purple.300',_0x7974a5(0x2c5),_0x7974a5(0x222),'red.300','blue.400','yellow.400'];class _0x49dcd2 extends _0x40dd79[_0x7974a5(0x2f0)]{constructor(){const _0x1737e8=_0x7974a5;super(...arguments),_0x5e0e83(this,_0x1737e8(0x397),new Map()),_0x5e0e83(this,_0x1737e8(0x2dd),0x0);}['assignAColorForMemberID'](_0x55cfa4){const _0x2c2e1a=_0x7974a5;if(this['_assignedColors'][_0x2c2e1a(0x37c)](_0x55cfa4))return this[_0x2c2e1a(0x397)][_0x2c2e1a(0x25e)](_0x55cfa4);const _0x5d8c4f=_0x436d2e[this['_colorIndex']];return this['_colorIndex']=(this[_0x2c2e1a(0x2dd)]+0x1)%_0x436d2e[_0x2c2e1a(0x2c2)],this[_0x2c2e1a(0x397)]['set'](_0x55cfa4,_0x5d8c4f),_0x5d8c4f;}}function _0x148e57(_0x28f1e6){const _0x3c452a=_0x7974a5;let _0x5e98b0='';for(const _0x1488a7 of _0x28f1e6){const {startOffset:_0x42f0d9,endOffset:_0x416e83,isActive:_0x5a0ef8,rangeType:_0x386f98,segmentId:_0x2c5cdf,segmentPage:_0x3165ac}=_0x1488a7;_0x5e98b0[_0x3c452a(0x2c2)]&&(_0x5e98b0+=','),_0x5e98b0+=_0x42f0d9+':'+_0x416e83+':'+(_0x5a0ef8?'1':'0')+':'+_0x386f98+':'+_0x2c5cdf+':'+_0x3165ac;}return _0x5e98b0;}function _0x1559b8(_0x1f0b56){const _0x47eb27=_0x7974a5,_0x371186=_0x1f0b56[_0x47eb27(0x29b)](','),_0x25c6b6=[];for(const _0x21cdac of _0x371186){const [_0x83d974,_0x52ef60,_0x2dc258,_0x553482,_0xfa7908,_0x4e7165]=_0x21cdac[_0x47eb27(0x29b)](':');_0x25c6b6[_0x47eb27(0x276)]({'startOffset':Number(_0x83d974),'endOffset':Number(_0x52ef60),'collapsed':_0x83d974===_0x52ef60,'isActive':_0x2dc258==='1','rangeType':_0x553482===_0x40dd79[_0x47eb27(0x317)][_0x47eb27(0x3d6)]?_0x40dd79[_0x47eb27(0x317)]['TEXT']:_0x40dd79['DOC_RANGE_TYPE'][_0x47eb27(0x2f7)],'segmentId':typeof _0xfa7908==_0x47eb27(0x300)?String(_0xfa7908):'','segmentPage':Number(_0x4e7165!=null?_0x4e7165:-0x1)});}return _0x25c6b6[_0x47eb27(0x2d4)](_0x3e6e6a=>_0x3e6e6a['isActive'])||(_0x25c6b6[0x0][_0x47eb27(0x253)]=!0x0),_0x25c6b6;}class _0x5c434f extends _0x40dd79[_0x7974a5(0x39d)]{constructor(){const _0x3bb379=_0x7974a5;super(...arguments),_0x5e0e83(this,_0x3bb379(0x280),new _0x9482a0['BehaviorSubject'](null)),_0x5e0e83(this,'collabCursorState$',this[_0x3bb379(0x280)][_0x3bb379(0x228)]());}[_0x7974a5(0x1d2)](_0x52d4ac){const _0x4e6aa7=_0x7974a5,{unitID:_0x1023dc,memberID:_0x57ce2b,textRanges:_0x9fca4f}=_0x52d4ac,_0x14f8ad=_0x148e57(_0x9fca4f);if(_0x14f8ad==='')return;const _0x52815c={'unitID':_0x1023dc,'memberID':_0x57ce2b,'selection':_0x14f8ad};this[_0x4e6aa7(0x280)][_0x4e6aa7(0x413)](_0x52815c);}}var _0x3a5b10=Object['getOwnPropertyDescriptor'],_0x52b3a5=(_0x5ce4fc,_0x364635,_0x4386a3,_0x4df3af)=>{const _0x28def1=_0x7974a5;for(var _0x535c84=_0x4df3af>0x1?void 0x0:_0x4df3af?_0x3a5b10(_0x364635,_0x4386a3):_0x364635,_0x38703f=_0x5ce4fc[_0x28def1(0x2c2)]-0x1,_0x2dcbec;_0x38703f>=0x0;_0x38703f--)(_0x2dcbec=_0x5ce4fc[_0x38703f])&&(_0x535c84=_0x2dcbec(_0x535c84)||_0x535c84);return _0x535c84;},_0x53b12f=(_0x14504d,_0x575b29)=>(_0x39440d,_0x20c717)=>_0x575b29(_0x39440d,_0x20c717,_0x14504d);const _0x1b0080=0x12c,_0x8d3dc8=0x64;let _0x207885=class extends _0x40dd79[_0x7974a5(0x39d)]{constructor(_0xc4c7a,_0x37f47e,_0x482108,_0x5bccca,_0x599e2f,_0x29eada,_0x329a45,_0x173b6d,_0x489368){const _0x350b3e=_0x7974a5;super(),_0x5e0e83(this,_0x350b3e(0x3b7),!0x1),_0x5e0e83(this,_0x350b3e(0x40c),!0x1),_0x5e0e83(this,_0x350b3e(0x3c0),new _0x9482a0['BehaviorSubject'](new Map())),_0x5e0e83(this,_0x350b3e(0x345),this['_cursorInfo$'][_0x350b3e(0x228)]()),_0x5e0e83(this,_0x350b3e(0x2e6),new _0x9482a0[(_0x350b3e(0x369))]([])),_0x5e0e83(this,_0x350b3e(0x2fb),this['_roomMembers$'][_0x350b3e(0x3b4)](_0x9482a0[_0x350b3e(0x24c)](_0x1b0080))),_0x5e0e83(this,'_updateLocalCursor',_0x40dd79[_0x350b3e(0x2e9)](_0x21767f=>{const _0x4ccc55=_0x350b3e,_0x34f96b={'eventID':_0x1ce1f5[_0x4ccc55(0x40d)][_0x4ccc55(0x201)],'data':{'unitID':this[_0x4ccc55(0x36c)],'memberID':this['_session']['getMemberID'](),'selection':_0x148e57(_0x21767f)}};this[_0x4ccc55(0x255)]['send'](_0x34f96b,this[_0x4ccc55(0x36c)]);},_0x8d3dc8)),(this[_0x350b3e(0x36c)]=_0xc4c7a,this['_session']=_0x37f47e,this[_0x350b3e(0x1a3)]=_0x482108,this[_0x350b3e(0x36d)]=_0x5bccca,this[_0x350b3e(0x1aa)]=_0x599e2f,this[_0x350b3e(0x249)]=_0x29eada,this['_transformService']=_0x329a45,this[_0x350b3e(0x20a)]=_0x173b6d,this[_0x350b3e(0x33c)]=_0x489368);}get[_0x7974a5(0x2d1)](){const _0x1a03b4=_0x7974a5;return this['_cursorInfo$'][_0x1a03b4(0x41e)]();}get[_0x7974a5(0x394)](){const _0x476eeb=_0x7974a5;return this[_0x476eeb(0x2e6)][_0x476eeb(0x41e)]();}[_0x7974a5(0x232)](){const _0x43f41e=_0x7974a5;super[_0x43f41e(0x232)](),this[_0x43f41e(0x3c0)][_0x43f41e(0x413)](new Map()),this[_0x43f41e(0x3c0)][_0x43f41e(0x2a9)](),this[_0x43f41e(0x2e6)][_0x43f41e(0x413)]([]),this[_0x43f41e(0x2e6)][_0x43f41e(0x2a9)]();}[_0x7974a5(0x3ff)](){const _0xe0ed2e=_0x7974a5;this[_0xe0ed2e(0x40c)]||(this[_0xe0ed2e(0x40c)]=!0x0,this[_0xe0ed2e(0x255)][_0xe0ed2e(0x36e)]['pipe'](_0x9482a0['takeUntil'](this[_0xe0ed2e(0x31d)]))[_0xe0ed2e(0x37b)](_0x1f4fc0=>{const _0x35f452=_0xe0ed2e;_0x1f4fc0===_0x3ce651['SessionStatus'][_0x35f452(0x28c)]?this[_0x35f452(0x213)]():this['_toggleOffline']();}),this[_0xe0ed2e(0x255)][_0xe0ed2e(0x3a6)][_0xe0ed2e(0x3b4)](_0x9482a0['takeUntil'](this[_0xe0ed2e(0x31d)]))[_0xe0ed2e(0x37b)](_0x1f9aab=>{const _0x1d61c1=_0xe0ed2e,_0x5091a2=_0x1f9aab['eventID'];_0x5091a2===_0x1ce1f5[_0x1d61c1(0x40d)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x1f9aab),_0x5091a2===_0x1ce1f5[_0x1d61c1(0x40d)][_0x1d61c1(0x26a)]&&this['_onCursorDelete'](_0x1f9aab);}),this[_0xe0ed2e(0x3a5)](this[_0xe0ed2e(0x33c)][_0xe0ed2e(0x316)](_0x5d1d15=>{const _0x2eef2e=_0xe0ed2e,_0x2911f3=_0x5d1d15['params'];_0x2911f3!=null&&this[_0x2eef2e(0x3b7)]&&_0x5d1d15['id']===_0x2cdbc3['SetTextSelectionsOperation']['id']&&_0x2911f3[_0x2eef2e(0x1ae)]===this[_0x2eef2e(0x36c)]&&_0x2911f3['isEditing']===!0x1&&_0x2911f3['ranges'][_0x2eef2e(0x2c2)]>0x0&&this[_0x2eef2e(0x3fa)](_0x2911f3[_0x2eef2e(0x1f8)]);})),this['_syncEditingCollabCursorService'][_0xe0ed2e(0x34f)][_0xe0ed2e(0x3b4)](_0x9482a0['takeUntil'](this[_0xe0ed2e(0x31d)]))[_0xe0ed2e(0x37b)](_0x2d59b8=>{const _0x4c1b05=_0xe0ed2e;if((_0x2d59b8==null?void 0x0:_0x2d59b8[_0x4c1b05(0x36c)])!==this[_0x4c1b05(0x36c)])return;const _0x25d881={'eventID':_0x1ce1f5[_0x4c1b05(0x40d)][_0x4c1b05(0x201)],'data':_0x2d59b8};this[_0x4c1b05(0x212)](_0x25d881);}),this['disposeWithMe'](this[_0xe0ed2e(0x33c)][_0xe0ed2e(0x316)](_0x1894be=>{const _0x37b988=_0xe0ed2e;if(_0x1894be[_0x37b988(0x1c6)]==null)return;const _0x494e49=_0x1894be[_0x37b988(0x1c6)];if(_0x1894be['id']!==_0x2cdbc3['RichTextEditingMutation']['id']||_0x494e49[_0x37b988(0x1ae)]!==this[_0x37b988(0x36c)])return;const _0x715cdb={'id':_0x37b988(0x235),'params':_0x494e49},_0x357182=this[_0x37b988(0x2d1)];for(const [_0x41b72a,_0x5284f5]of _0x357182){const _0x3a7afa={'id':_0x37b988(0x235),'params':{'unitId':this[_0x37b988(0x36c)],'actions':null,'textRanges':_0x5284f5[_0x37b988(0x1f8)]}},_0x18624e=this['_transformService'][_0x37b988(0x3f3)](_0x715cdb,_0x3a7afa,!0x1);if(_0x1ce1f5[_0x37b988(0x1f0)](_0x18624e))throw _0x18624e[_0x37b988(0x242)];_0x357182[_0x37b988(0x22d)](_0x41b72a,{..._0x5284f5,'ranges':_0x18624e['m2Prime']['params'][_0x37b988(0x24d)]});}queueMicrotask(()=>{const _0x8fb77f=_0x37b988;this['_cursorInfo$'][_0x8fb77f(0x413)](_0x357182);});})));}[_0x7974a5(0x212)](_0x20a87d){const _0x9938b3=_0x7974a5;var _0x121228,_0x43e3a0;const {memberID:_0x228b52,selection:_0x1811af}=_0x20a87d[_0x9938b3(0x2fe)],_0x2989f0=_0x1559b8(_0x1811af),_0x2f296d=(_0x43e3a0=(_0x121228=this[_0x9938b3(0x1aa)][_0x9938b3(0x378)](this[_0x9938b3(0x36c)],_0x228b52))==null?void 0x0:_0x121228[_0x9938b3(0x22f)])!=null?_0x43e3a0:_0x9938b3(0x19f),_0x139347={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x228b52),'name':_0x2f296d,'ranges':_0x2989f0},_0x357281=this[_0x9938b3(0x2d1)];_0x357281['set'](_0x228b52,_0x139347),this[_0x9938b3(0x3c0)][_0x9938b3(0x413)](_0x357281);}[_0x7974a5(0x331)](_0x267ef7){const _0x22b5b7=_0x7974a5,{memberID:_0x3630d1}=_0x267ef7[_0x22b5b7(0x2fe)],_0x4077bb=this[_0x22b5b7(0x2d1)];_0x4077bb['delete'](_0x3630d1),this[_0x22b5b7(0x3c0)][_0x22b5b7(0x413)](_0x4077bb);}[_0x7974a5(0x213)](){const _0x29c509=_0x7974a5;var _0x2996e4;if(this[_0x29c509(0x3b7)]=!0x0,((_0x2996e4=this[_0x29c509(0x20a)]['getFocusedUnit']())==null?void 0x0:_0x2996e4['getUnitId']())!==this['unitID'])return;const _0x27cef0=this[_0x29c509(0x1a3)]['get'](_0x2cdbc3[_0x29c509(0x3c4)])[_0x29c509(0x1c5)]();Array[_0x29c509(0x266)](_0x27cef0)&&_0x27cef0[_0x29c509(0x2c2)]>0x0&&this[_0x29c509(0x3fa)](_0x27cef0);}[_0x7974a5(0x21c)](){this['_online']=!0x1;}};_0x207885=_0x52b3a5([_0x53b12f(0x2,_0x40dd79[_0x7974a5(0x3ba)](_0x40dd79['Injector'])),_0x53b12f(0x3,_0x40dd79['Inject'](_0x49dcd2)),_0x53b12f(0x4,_0x40dd79[_0x7974a5(0x3ba)](_0x3ce651[_0x7974a5(0x237)])),_0x53b12f(0x5,_0x40dd79[_0x7974a5(0x3ba)](_0x5c434f)),_0x53b12f(0x6,_0x1ce1f5[_0x7974a5(0x2ea)]),_0x53b12f(0x7,_0x40dd79[_0x7974a5(0x250)]),_0x53b12f(0x8,_0x40dd79[_0x7974a5(0x194)])],_0x207885);var _0x146eca=Object[_0x7974a5(0x2d6)],_0x65bd64=(_0x3f168e,_0x4143b3,_0x4fa4cf,_0x384608)=>{for(var _0x505c56=_0x384608>0x1?void 0x0:_0x384608?_0x146eca(_0x4143b3,_0x4fa4cf):_0x4143b3,_0x28f787=_0x3f168e['length']-0x1,_0x29b7fb;_0x28f787>=0x0;_0x28f787--)(_0x29b7fb=_0x3f168e[_0x28f787])&&(_0x505c56=_0x29b7fb(_0x505c56)||_0x505c56);return _0x505c56;},_0x142cd4=(_0x6d96e4,_0x5a3af6)=>(_0x5c3e4a,_0x5c2573)=>_0x5a3af6(_0x5c3e4a,_0x5c2573,_0x6d96e4);const _0x4f11de=0x12c,_0x4c2f70=0x64,_0x41de27=()=>{let _0xf9080=[],_0x487e9f=!0x1;return _0x4d972c=>{_0xf9080['push'](_0x4d972c),_0x487e9f||(_0x487e9f=!0x0,setTimeout(()=>{const _0x447080=_0x287b;_0xf9080[_0x447080(0x22a)](_0x7042a=>_0x7042a()),_0xf9080=[],_0x487e9f=!0x1;}));};};let _0x29770b=class extends _0x40dd79['RxDisposable']{constructor(_0x3135c4,_0x7d1f55,_0x349785,_0x45c18a,_0xe8ac7,_0x1bb906,_0x3292e4,_0x23adc8){const _0x581ecd=_0x7974a5;super(),_0x5e0e83(this,_0x581ecd(0x3b7),!0x1),_0x5e0e83(this,_0x581ecd(0x40c),!0x1),_0x5e0e83(this,_0x581ecd(0x3c0),new _0x9482a0['BehaviorSubject'](new Map())),_0x5e0e83(this,_0x581ecd(0x345),this[_0x581ecd(0x3c0)]['asObservable']()),_0x5e0e83(this,'_roomMembers$',new _0x9482a0[(_0x581ecd(0x369))]([])),_0x5e0e83(this,_0x581ecd(0x2fb),this[_0x581ecd(0x2e6)][_0x581ecd(0x3b4)](_0x9482a0[_0x581ecd(0x24c)](_0x4f11de))),_0x5e0e83(this,_0x581ecd(0x3fa),_0x40dd79[_0x581ecd(0x2e9)]((_0x2c4371,_0x1d60aa)=>{const _0x4c7542=_0x581ecd,_0xbcef76={'eventID':_0x1ce1f5[_0x4c7542(0x40d)][_0x4c7542(0x201)],'data':{'unitID':this[_0x4c7542(0x36c)],'memberID':this['_session']['getMemberID'](),'selection':_0x1655b4[_0x4c7542(0x1a2)](_0x2c4371,_0x1d60aa[_0x4c7542(0x26d)])}};this[_0x4c7542(0x255)][_0x4c7542(0x211)](_0xbcef76,this['unitID']);},_0x4c2f70)),(this[_0x581ecd(0x36c)]=_0x3135c4,this['_session']=_0x7d1f55,this[_0x581ecd(0x1a3)]=_0x349785,this[_0x581ecd(0x36d)]=_0x45c18a,this[_0x581ecd(0x1aa)]=_0xe8ac7,this[_0x581ecd(0x20a)]=_0x1bb906,this[_0x581ecd(0x33c)]=_0x3292e4,this[_0x581ecd(0x33f)]=_0x23adc8);}get['cursorInfo'](){const _0xa39f96=_0x7974a5;return this['_cursorInfo$'][_0xa39f96(0x41e)]();}get['roomMembers'](){const _0x5e38a9=_0x7974a5;return this[_0x5e38a9(0x2e6)][_0x5e38a9(0x41e)]();}[_0x7974a5(0x232)](){const _0x2e5b2e=_0x7974a5;super['dispose'](),this[_0x2e5b2e(0x3c0)][_0x2e5b2e(0x413)](new Map()),this[_0x2e5b2e(0x3c0)]['complete'](),this[_0x2e5b2e(0x2e6)][_0x2e5b2e(0x413)]([]),this[_0x2e5b2e(0x2e6)]['complete']();}[_0x7974a5(0x3ff)](){const _0x1a7268=_0x7974a5;this['_init']||(this[_0x1a7268(0x40c)]=!0x0,this[_0x1a7268(0x255)][_0x1a7268(0x36e)][_0x1a7268(0x3b4)](_0x9482a0[_0x1a7268(0x18e)](this[_0x1a7268(0x31d)]))[_0x1a7268(0x37b)](_0x43c408=>{const _0xf43888=_0x1a7268;_0x43c408===_0x3ce651[_0xf43888(0x241)][_0xf43888(0x28c)]?this[_0xf43888(0x213)]():this['_toggleOffline']();}),this[_0x1a7268(0x255)][_0x1a7268(0x3a6)]['pipe'](_0x9482a0['takeUntil'](this['dispose$']))[_0x1a7268(0x37b)](_0x54590b=>{const _0x585bac=_0x1a7268,_0x2f8e79=_0x54590b[_0x585bac(0x29a)];_0x2f8e79===_0x1ce1f5[_0x585bac(0x40d)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x54590b),_0x2f8e79===_0x1ce1f5[_0x585bac(0x40d)][_0x585bac(0x26a)]&&this[_0x585bac(0x331)](_0x54590b);}),this['_onRefRangeChange'](),this[_0x1a7268(0x3a5)](this[_0x1a7268(0x33c)][_0x1a7268(0x316)](_0x5e99ec=>{const _0x5bd0fd=_0x1a7268;if(this['_online']&&_0x5e99ec['id']===_0x5736e9['SetSelectionsOperation']['id']&&_0x5e99ec['params'][_0x5bd0fd(0x1ae)]===this[_0x5bd0fd(0x36c)]){const _0x16d6ea=_0x5e99ec['params'];this['_updateLocalCursor'](_0x16d6ea[_0x5bd0fd(0x288)],_0x16d6ea['selections'][0x0]);}})));}[_0x7974a5(0x212)](_0x48689c){const _0x39251f=_0x7974a5;var _0x3b2dbb,_0x26d29b;const {memberID:_0x1efbfa,selection:_0x26a9f5}=_0x48689c[_0x39251f(0x2fe)],{sheetName:_0x2054ce,range:_0x526189}=_0x1655b4[_0x39251f(0x37a)](_0x26a9f5),_0x1e36db={'name':(_0x26d29b=(_0x3b2dbb=this['_memberService'][_0x39251f(0x378)](this[_0x39251f(0x36c)],_0x1efbfa))==null?void 0x0:_0x3b2dbb['name'])!=null?_0x26d29b:_0x39251f(0x19f),'range':this['_getMergeRange'](_0x2054ce,_0x526189),'sheetID':_0x2054ce,'color':this[_0x39251f(0x36d)]['assignAColorForMemberID'](_0x1efbfa),'selection':_0x26a9f5},_0xb08378=this[_0x39251f(0x2d1)];_0xb08378[_0x39251f(0x22d)](_0x1efbfa,_0x1e36db),this['_cursorInfo$'][_0x39251f(0x413)](_0xb08378);}[_0x7974a5(0x331)](_0x48965c){const _0x44ea95=_0x7974a5,{memberID:_0x1198af}=_0x48965c[_0x44ea95(0x2fe)],_0x13758e=this[_0x44ea95(0x2d1)];_0x13758e[_0x44ea95(0x3d3)](_0x1198af),this['_cursorInfo$'][_0x44ea95(0x413)](_0x13758e);}[_0x7974a5(0x38f)](_0x412a9b,_0x88de6b){const _0x20fbd4=_0x7974a5;var _0x3bb523,_0x278008;const _0xebaab4=(_0x278008=(_0x3bb523=this[_0x20fbd4(0x20a)][_0x20fbd4(0x1c2)](this[_0x20fbd4(0x36c)]))==null?void 0x0:_0x3bb523['getSheetBySheetId'](_0x412a9b))==null?void 0x0:_0x278008['getMergeData']();return(_0xebaab4==null?void 0x0:_0xebaab4[_0x20fbd4(0x26f)](_0xe769e1=>_0x40dd79[_0x20fbd4(0x260)][_0x20fbd4(0x3ed)](_0xe769e1,_0x88de6b)))||_0x88de6b;}['_onRefRangeChange'](){const _0x4ceef2=_0x7974a5,_0x85e53f=new _0x40dd79[(_0x4ceef2(0x195))](),_0x55988e=_0x41de27(),_0x32f3e1=()=>{const _0x3fd48c=_0x4ceef2;_0x85e53f['dispose']();const _0x24d256=(_0x35b1e1,_0x338f49,_0x431f27,_0x4399c7)=>{const _0x1340c0=_0x287b;let _0x3d69c1=[];switch(_0x35b1e1['id']){case _0x5736e9[_0x1340c0(0x21e)]['DeleteRangeMoveLeftCommandId']:{_0x3d69c1=_0x5736e9[_0x1340c0(0x35e)](_0x35b1e1,_0x4399c7);break;}case _0x5736e9['EffectRefRangId'][_0x1340c0(0x389)]:{_0x3d69c1=_0x5736e9[_0x1340c0(0x225)](_0x35b1e1,_0x4399c7);break;}case _0x5736e9[_0x1340c0(0x21e)][_0x1340c0(0x39a)]:{_0x3d69c1=_0x5736e9[_0x1340c0(0x223)](_0x35b1e1,_0x4399c7);break;}case _0x5736e9[_0x1340c0(0x21e)][_0x1340c0(0x1c4)]:{_0x3d69c1=_0x5736e9[_0x1340c0(0x1e8)](_0x35b1e1,_0x4399c7);break;}case _0x5736e9[_0x1340c0(0x21e)][_0x1340c0(0x33a)]:{_0x3d69c1=_0x5736e9[_0x1340c0(0x31c)](_0x35b1e1,_0x4399c7);break;}case _0x5736e9[_0x1340c0(0x21e)][_0x1340c0(0x34b)]:{_0x3d69c1=_0x5736e9[_0x1340c0(0x2c6)](_0x35b1e1,_0x4399c7);break;}case _0x5736e9[_0x1340c0(0x21e)][_0x1340c0(0x38a)]:{_0x3d69c1=_0x5736e9[_0x1340c0(0x30e)](_0x35b1e1,_0x4399c7);break;}case _0x5736e9[_0x1340c0(0x21e)][_0x1340c0(0x29c)]:{_0x3d69c1=_0x5736e9[_0x1340c0(0x2c3)](_0x35b1e1,_0x4399c7);break;}case _0x5736e9[_0x1340c0(0x21e)][_0x1340c0(0x1d6)]:{_0x3d69c1=_0x5736e9[_0x1340c0(0x1f2)](_0x35b1e1,_0x4399c7);break;}}const _0x43b8e2=_0x5736e9[_0x1340c0(0x1b0)](_0x3d69c1,_0x4399c7),_0x3c6421=this[_0x1340c0(0x2d1)][_0x1340c0(0x25e)](_0x338f49);if(_0x3c6421&&_0x43b8e2){const _0x3ab8d={..._0x3c6421,'range':_0x43b8e2};this['cursorInfo'][_0x1340c0(0x22d)](_0x338f49,_0x3ab8d),_0x55988e(()=>{const _0x1dd817=_0x1340c0,_0x2f9a9d=this['_refRangeService'][_0x1dd817(0x368)](_0x43b8e2,_0x39b579=>(_0x2f9a9d[_0x1dd817(0x232)](),_0x24d256(_0x39b579,_0x338f49,_0x431f27,_0x43b8e2)));_0x85e53f['add'](_0x2f9a9d);});}return{'redos':[],'undos':[]};};this[_0x3fd48c(0x2d1)][_0x3fd48c(0x22a)]((_0x4eefc0,_0x2fbff2)=>{const _0x5d8ccc=_0x3fd48c,{range:_0xbee0b,sheetID:_0x2c083e}=_0x4eefc0,_0x3c2443=this[_0x5d8ccc(0x33f)]['registerRefRange'](_0xbee0b,_0x350ebd=>(_0x3c2443[_0x5d8ccc(0x232)](),_0x24d256(_0x350ebd,_0x2fbff2,_0x2c083e,_0xbee0b)));_0x85e53f['add'](_0x3c2443);});};this[_0x4ceef2(0x3a5)](_0x40dd79['toDisposable'](this[_0x4ceef2(0x3c0)][_0x4ceef2(0x37b)](()=>{_0x32f3e1();})));}[_0x7974a5(0x213)](){const _0x3ed719=_0x7974a5;var _0x3eb845,_0x4b9384;if(this[_0x3ed719(0x3b7)]=!0x0,((_0x3eb845=this[_0x3ed719(0x20a)][_0x3ed719(0x209)]())==null?void 0x0:_0x3eb845[_0x3ed719(0x336)]())!==this[_0x3ed719(0x36c)])return;const _0x1083b3=(_0x4b9384=this[_0x3ed719(0x1a3)]['get'](_0x5736e9[_0x3ed719(0x363)])[_0x3ed719(0x3db)]())==null?void 0x0:_0x4b9384[0x0],_0x2342fb=this[_0x3ed719(0x20a)]['getCurrentUnitForType'](_0x40dd79['UniverInstanceType'][_0x3ed719(0x366)])[_0x3ed719(0x385)]();_0x1083b3&&_0x2342fb&&this[_0x3ed719(0x3fa)](_0x2342fb[_0x3ed719(0x310)](),_0x1083b3);}[_0x7974a5(0x21c)](){const _0x5933fe=_0x7974a5;this[_0x5933fe(0x3b7)]=!0x1;}};_0x29770b=_0x65bd64([_0x142cd4(0x2,_0x40dd79[_0x7974a5(0x3ba)](_0x40dd79['Injector'])),_0x142cd4(0x3,_0x40dd79[_0x7974a5(0x3ba)](_0x49dcd2)),_0x142cd4(0x4,_0x40dd79[_0x7974a5(0x3ba)](_0x3ce651['MemberService'])),_0x142cd4(0x5,_0x40dd79[_0x7974a5(0x250)]),_0x142cd4(0x6,_0x40dd79[_0x7974a5(0x194)]),_0x142cd4(0x7,_0x40dd79[_0x7974a5(0x3ba)](_0x5736e9[_0x7974a5(0x3c8)]))],_0x29770b);var _0x30553e=Object[_0x7974a5(0x2d6)],_0x7d4143=(_0x41397e,_0x53dd76,_0x407941,_0x3f41f2)=>{const _0x2d238c=_0x7974a5;for(var _0x392a64=_0x3f41f2>0x1?void 0x0:_0x3f41f2?_0x30553e(_0x53dd76,_0x407941):_0x53dd76,_0x1f15c2=_0x41397e[_0x2d238c(0x2c2)]-0x1,_0x3a7c60;_0x1f15c2>=0x0;_0x1f15c2--)(_0x3a7c60=_0x41397e[_0x1f15c2])&&(_0x392a64=_0x3a7c60(_0x392a64)||_0x392a64);return _0x392a64;},_0x16995d=(_0x1e78ec,_0x39ee52)=>(_0x422e41,_0x466751)=>_0x39ee52(_0x422e41,_0x466751,_0x1e78ec);let _0x1290a9=class extends _0x40dd79[_0x7974a5(0x39d)]{constructor(_0x31135f,_0x4a6c95,_0x137234){const _0x34372f=_0x7974a5;super(),_0x5e0e83(this,'_entities',new Map()),_0x5e0e83(this,'_entityInit$',new _0x9482a0['Subject']()),(this[_0x34372f(0x20a)]=_0x31135f,this[_0x34372f(0x1a3)]=_0x4a6c95,this[_0x34372f(0x3ad)]=_0x137234,this[_0x34372f(0x40c)]());}[_0x7974a5(0x232)](){const _0x5bda1a=_0x7974a5;super[_0x5bda1a(0x232)](),this[_0x5bda1a(0x372)][_0x5bda1a(0x2a9)](),this[_0x5bda1a(0x3da)]['forEach'](_0x2f76f4=>_0x2f76f4[_0x5bda1a(0x232)]());}[_0x7974a5(0x1ce)](_0x272e70){const _0x4343a0=_0x7974a5;return this[_0x4343a0(0x3da)][_0x4343a0(0x37c)](_0x272e70)?this[_0x4343a0(0x3da)]['get'](_0x272e70)[_0x4343a0(0x345)]:this['_entityInit$'][_0x4343a0(0x3b4)](_0x9482a0[_0x4343a0(0x2b0)](_0x30e000=>_0x30e000[_0x4343a0(0x36c)]===_0x272e70),_0x9482a0['switchMap'](_0x25afe3=>_0x25afe3[_0x4343a0(0x345)]));}['_init'](){const _0x93fff7=_0x7974a5;this['_univerInstanceService'][_0x93fff7(0x35b)](_0x40dd79[_0x93fff7(0x3c6)][_0x93fff7(0x366)])[_0x93fff7(0x3b4)](_0x9482a0[_0x93fff7(0x18e)](this[_0x93fff7(0x31d)]))[_0x93fff7(0x37b)](async _0x374be7=>{const _0x34ed7a=_0x93fff7,_0xf9e3e6=_0x374be7[_0x34ed7a(0x336)](),_0x5b5586=await this[_0x34ed7a(0x1b2)](_0xf9e3e6);this['_entityInit$'][_0x34ed7a(0x413)](_0x5b5586),this[_0x34ed7a(0x3da)][_0x34ed7a(0x22d)](_0xf9e3e6,_0x5b5586);}),this[_0x93fff7(0x20a)][_0x93fff7(0x35b)](_0x40dd79[_0x93fff7(0x3c6)][_0x93fff7(0x39f)])[_0x93fff7(0x3b4)](_0x9482a0['takeUntil'](this[_0x93fff7(0x31d)]))['pipe'](_0x9482a0[_0x93fff7(0x2b0)](_0x16a80d=>!_0x16a80d['getUnitId']()[_0x93fff7(0x21a)]('__')))[_0x93fff7(0x37b)](async _0x173b4e=>{const _0x4268fa=_0x93fff7,_0x44c16c=_0x173b4e['getUnitId'](),_0x16e811=await this['_startDocCollabCursor'](_0x44c16c);this[_0x4268fa(0x372)][_0x4268fa(0x413)](_0x16e811),this[_0x4268fa(0x3da)]['set'](_0x44c16c,_0x16e811);}),_0x9482a0[_0x93fff7(0x3fd)](this[_0x93fff7(0x20a)]['getTypeOfUnitDisposed$'](_0x40dd79[_0x93fff7(0x3c6)][_0x93fff7(0x39f)]),this[_0x93fff7(0x20a)][_0x93fff7(0x3e8)](_0x40dd79[_0x93fff7(0x3c6)][_0x93fff7(0x366)]))['pipe'](_0x9482a0[_0x93fff7(0x18e)](this[_0x93fff7(0x31d)]))[_0x93fff7(0x37b)](_0x194e88=>{const _0x7c31cf=_0x93fff7,_0x11fe95=_0x194e88[_0x7c31cf(0x336)](),_0x4206c2=this['_entities'][_0x7c31cf(0x25e)](_0x11fe95);_0x4206c2&&(_0x4206c2['dispose'](),this[_0x7c31cf(0x3da)][_0x7c31cf(0x3d3)](_0x11fe95));});}async[_0x7974a5(0x1b2)](_0x38728f){const _0x48c31b=_0x7974a5,_0x35a0a8=await this[_0x48c31b(0x3ad)][_0x48c31b(0x296)](_0x38728f),_0x5d9196=this['_injector']['createInstance'](_0x29770b,_0x38728f,_0x35a0a8);return _0x5d9196[_0x48c31b(0x3ff)](),_0x5d9196;}async[_0x7974a5(0x328)](_0x575bea){const _0x5568b6=_0x7974a5,_0xf83ce4=await this[_0x5568b6(0x3ad)][_0x5568b6(0x296)](_0x575bea),_0x5ee8ce=this['_injector'][_0x5568b6(0x362)](_0x207885,_0x575bea,_0xf83ce4);return _0x5ee8ce[_0x5568b6(0x3ff)](),_0x5ee8ce;}};_0x1290a9=_0x7d4143([_0x16995d(0x0,_0x40dd79['IUniverInstanceService']),_0x16995d(0x1,_0x40dd79[_0x7974a5(0x3ba)](_0x40dd79[_0x7974a5(0x26c)])),_0x16995d(0x2,_0x40dd79[_0x7974a5(0x3ba)](_0x3ce651[_0x7974a5(0x3bb)]))],_0x1290a9);const _0x4211e9=0x14,_0x59932f=0xc8,_0x2e22e9=0x4,_0x388d5b=0x5;function _0x2e2cba(_0x32960a,_0x145ae7){const _0x47a4e7=_0x7974a5;let {radius:_0x41a405,width:_0x16c092,height:_0x343d7b}=_0x145ae7;_0x41a405=_0x41a405!=null?_0x41a405:0x0,_0x16c092=_0x16c092!=null?_0x16c092:0x1e,_0x343d7b=_0x343d7b!=null?_0x343d7b:0x1e;let _0x46de23=0x0,_0x3fe597=0x0,_0x2d6fba=0x0;_0x46de23=_0x3fe597=_0x2d6fba=Math['min'](_0x41a405,_0x16c092/0x2,_0x343d7b/0x2),_0x32960a['beginPath'](),_0x32960a[_0x47a4e7(0x38d)](_0x46de23,0x0),_0x32960a['lineTo'](_0x16c092-_0x3fe597,0x0),_0x32960a[_0x47a4e7(0x1d7)](_0x16c092-_0x3fe597,_0x3fe597,_0x3fe597,Math['PI']*0x3/0x2,0x0,!0x1),_0x32960a[_0x47a4e7(0x3a7)](_0x16c092,_0x343d7b-_0x2d6fba),_0x32960a['arc'](_0x16c092-_0x2d6fba,_0x343d7b-_0x2d6fba,_0x2d6fba,0x0,Math['PI']/0x2,!0x1),_0x32960a['lineTo'](0x0,_0x343d7b),_0x32960a['lineTo'](0x0,_0x46de23),_0x32960a[_0x47a4e7(0x1d7)](_0x46de23,_0x46de23,_0x46de23,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x32960a['closePath'](),_0x145ae7[_0x47a4e7(0x40b)]&&(_0x32960a[_0x47a4e7(0x36f)](),_0x32960a[_0x47a4e7(0x40f)]=_0x145ae7[_0x47a4e7(0x40b)],_0x145ae7['fillRule']===_0x47a4e7(0x3df)?_0x32960a[_0x47a4e7(0x40b)](_0x47a4e7(0x3df)):_0x32960a[_0x47a4e7(0x40b)](),_0x32960a['restore']());}class _0xced573 extends _0x23b118[_0x7974a5(0x3e6)]{constructor(_0x5f106c,_0x39dd5d){const _0x18c8bc=_0x7974a5;super(_0x5f106c,_0x39dd5d),_0x5e0e83(this,_0x18c8bc(0x340)),_0x5e0e83(this,_0x18c8bc(0x42b)),(this['color']=_0x39dd5d==null?void 0x0:_0x39dd5d['color'],this[_0x18c8bc(0x42b)]=_0x39dd5d==null?void 0x0:_0x39dd5d[_0x18c8bc(0x42b)]);}static[_0x7974a5(0x217)](_0x4835a7,_0x4ffce8){const _0x57d093=_0x7974a5,{text:_0x2d3ab1,color:_0x1c744b}=_0x4ffce8;_0x4835a7['save'](),_0x4835a7[_0x57d093(0x3b1)]=_0x57d093(0x1f7);const _0x4019d1=_0x4835a7['measureText'](_0x2d3ab1)[_0x57d093(0x398)],_0xa873e4=Math[_0x57d093(0x25d)](_0x4019d1+0x2*_0x2e22e9,_0x59932f);_0x2e2cba(_0x4835a7,{'height':_0x4211e9,'radius':0x4,'width':_0xa873e4,'fill':_0x1c744b}),_0x4835a7['fillStyle']=_0x57d093(0x424);const _0x7105ec=_0x2e22e9,_0x3f89ee=_0x4211e9-_0x388d5b,_0x2e249f=_0x59932f-0x2*_0x2e22e9;if(_0x4019d1>_0x2e249f){let _0x3c64a1='',_0x38a5f3=0x0;for(const _0x331102 of _0x2d3ab1){const _0x410688=_0x4835a7['measureText'](_0x331102)['width'];if(_0x38a5f3+_0x410688<=_0x2e249f-_0x4835a7[_0x57d093(0x39b)](_0x57d093(0x238))[_0x57d093(0x398)])_0x3c64a1+=_0x331102,_0x38a5f3+=_0x410688;else{_0x3c64a1+='...';break;}}_0x4835a7[_0x57d093(0x40a)](_0x3c64a1,_0x7105ec,_0x3f89ee);}else _0x4835a7[_0x57d093(0x40a)](_0x2d3ab1,_0x7105ec,_0x3f89ee);_0x4835a7['restore']();}[_0x7974a5(0x3a0)](_0x297155){const _0x39f091=_0x7974a5;_0xced573[_0x39f091(0x217)](_0x297155,this);}}const _0x5dbc8a=_0x7974a5(0x313),_0x5c145f='collab-text-range-',_0x25f528=_0x7974a5(0x357),_0x16ba05=0x6,_0x32a2b9=1.5,_0x38c085=0x4,_0x56e7d6=1.5,_0x200014='rgba(255,\x20255,\x20255,\x200.01)';class _0x5a7ce1{constructor(_0x53b91e,_0x44c3d6,_0x59a601,_0xa301a8){const _0x2e626a=_0x7974a5;_0x5e0e83(this,_0x2e626a(0x2c7),[]),_0x5e0e83(this,'_anchor',null),_0x5e0e83(this,_0x2e626a(0x315),null),_0x5e0e83(this,_0x2e626a(0x373),null),_0x5e0e83(this,_0x2e626a(0x381),null),_0x5e0e83(this,_0x2e626a(0x1d1),null),(this['_cursor']=_0x53b91e,this[_0x2e626a(0x3b5)]=_0x44c3d6,this[_0x2e626a(0x2cc)]=_0x59a601,this[_0x2e626a(0x245)]=_0xa301a8,this[_0x2e626a(0x23e)]());}set[_0x7974a5(0x281)](_0x45d2d3){const _0x2dd359=_0x7974a5;_0x45d2d3?(this[_0x2dd359(0x373)]&&this[_0x2dd359(0x373)][_0x2dd359(0x258)](),this['_textBubble']&&this['_textBubble'][_0x2dd359(0x2d9)]()):(this[_0x2dd359(0x373)]&&this[_0x2dd359(0x373)][_0x2dd359(0x2d9)](),this[_0x2dd359(0x315)]&&this[_0x2dd359(0x315)][_0x2dd359(0x258)]());}[_0x7974a5(0x232)](){const _0x402103=_0x7974a5;for(const _0x3a1dc9 of this[_0x402103(0x2c7)])_0x3a1dc9['dispose']();this[_0x402103(0x315)]&&this[_0x402103(0x315)][_0x402103(0x232)](),this[_0x402103(0x373)]&&this[_0x402103(0x373)][_0x402103(0x232)](),this['_anchor']&&this[_0x402103(0x3d9)][_0x402103(0x232)](),this[_0x402103(0x1d1)]&&this[_0x402103(0x1d1)]();}[_0x7974a5(0x23e)](){const _0x1bffb2=_0x7974a5;var _0x40222e;const {_docSkeleton:_0x4a1eec,_document:_0x5ade4a}=this,{color:_0x5ba1f4,name:_0x29a6f6,ranges:_0x2e8d21}=this['_cursor'],_0x41e118=_0x5ade4a[_0x1bffb2(0x2ef)](),{docsLeft:_0x3c4575,docsTop:_0x99c4f3}=_0x41e118,_0x58b0ff=new _0x8a01fe[(_0x1bffb2(0x29d))](_0x41e118,_0x4a1eec);for(const {startOffset:_0x443e49,endOffset:_0x3d8381,rangeType:_0x1c2ab3,segmentId:_0x22652e,segmentPage:_0x36719e,collapsed:_0x510ef2,isActive:_0x256140}of _0x2e8d21){const _0x52c88b=_0x4a1eec[_0x1bffb2(0x3aa)](_0x443e49,!0x0,_0x22652e,_0x36719e);let _0x295678=_0x4a1eec['findNodePositionByCharIndex'](_0x3d8381,!0x0,_0x22652e,_0x36719e);if(_0x295678==null&&(_0x295678=_0x4a1eec[_0x1bffb2(0x3aa)](_0x3d8381-0x1,!0x1,_0x22652e,_0x36719e)),_0x256140){const {contentBoxPointGroup:_0x52b0ee}=_0x58b0ff['getRangePointData'](_0x295678,_0x295678);if(_0x52b0ee[_0x1bffb2(0x2c2)]===0x0)continue;this[_0x1bffb2(0x3ac)](_0x5ba1f4,_0x52b0ee,_0x3c4575,_0x99c4f3,_0x29a6f6),this['_eventUnsubscribe']=this[_0x1bffb2(0x219)]();}if(_0x52c88b&&_0x295678){if(_0x1c2ab3===_0x40dd79['DOC_RANGE_TYPE']['RECT']){const _0x49bf0f=new _0x8a01fe[(_0x1bffb2(0x419))](_0x41e118,_0x4a1eec),{pointGroup:_0x520ddb}=(_0x40222e=_0x49bf0f[_0x1bffb2(0x377)](_0x52c88b,_0x295678))!=null?_0x40222e:{};if(_0x520ddb==null||_0x520ddb[_0x1bffb2(0x2c2)]===0x0)continue;this[_0x1bffb2(0x1db)](_0x5ba1f4,_0x520ddb,_0x3c4575,_0x99c4f3);}else{if(!_0x510ef2){const {borderBoxPointGroup:_0x255993}=_0x58b0ff[_0x1bffb2(0x377)](_0x52c88b,_0x295678);if(_0x255993[_0x1bffb2(0x2c2)]===0x0)continue;this[_0x1bffb2(0x271)](_0x5ba1f4,_0x255993,_0x3c4575,_0x99c4f3);}}}}}[_0x7974a5(0x3ac)](_0x1125e1,_0x5e0a15,_0x333587,_0x3b9524,_0xde0045){const _0x2b95b8=_0x7974a5,_0x313786=this[_0x2b95b8(0x1de)](_0x5e0a15),{left:_0x1fd4a0,top:_0x4168b1,height:_0x567a63}=_0x313786,_0x20ddeb=this[_0x2b95b8(0x2d3)](),_0x283ee0=_0x56e7d6/_0x20ddeb,_0x1f0a15=new _0x23b118[(_0x2b95b8(0x25b))](_0x5dbc8a+_0x40dd79[_0x2b95b8(0x224)][_0x2b95b8(0x267)](_0x16ba05),{'left':_0x1fd4a0+_0x333587-_0x283ee0,'top':_0x4168b1+_0x3b9524,'height':_0x567a63,'width':_0x32a2b9,'fill':_0x1125e1||_0x23b118[_0x2b95b8(0x343)](_0x40dd79[_0x2b95b8(0x1d9)][_0x2b95b8(0x361)],0x0),'strokeWidth':_0x283ee0,'stroke':_0x200014,'evented':!0x0});this[_0x2b95b8(0x3d9)]=_0x1f0a15,this[_0x2b95b8(0x3b5)][_0x2b95b8(0x3f5)](_0x1f0a15,_0x8a01fe['TEXT_RANGE_LAYER_INDEX']);const _0x22dad2=new _0x23b118[(_0x2b95b8(0x25b))](_0x5dbc8a+_0x40dd79[_0x2b95b8(0x224)][_0x2b95b8(0x267)](_0x16ba05),{'left':_0x1fd4a0+_0x333587-_0x283ee0,'top':_0x4168b1+_0x3b9524-_0x38c085/0x2,'height':_0x38c085,'width':_0x38c085,'fill':_0x1125e1||_0x23b118[_0x2b95b8(0x343)](_0x40dd79[_0x2b95b8(0x1d9)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x1125e1||_0x23b118['getColor'](_0x40dd79[_0x2b95b8(0x1d9)][_0x2b95b8(0x361)],0x0),'evented':!0x1});this[_0x2b95b8(0x373)]=_0x22dad2,this[_0x2b95b8(0x3b5)][_0x2b95b8(0x3f5)](_0x22dad2,_0x8a01fe[_0x2b95b8(0x307)]);const _0x8adc5f=new _0xced573(_0x5dbc8a+_0x40dd79[_0x2b95b8(0x224)]['generateRandomId'](_0x16ba05),{'left':_0x1fd4a0+_0x333587-_0x283ee0,'top':_0x4168b1+_0x3b9524-_0x4211e9,'text':_0xde0045,'color':_0x1125e1});this[_0x2b95b8(0x315)]=_0x8adc5f,this[_0x2b95b8(0x3b5)][_0x2b95b8(0x3f5)](_0x8adc5f,_0x8a01fe[_0x2b95b8(0x307)]),this[_0x2b95b8(0x281)]=!0x1;}[_0x7974a5(0x219)](){const _0x26c9a6=_0x7974a5,_0x5529be=this[_0x26c9a6(0x3d9)][_0x26c9a6(0x3f8)][_0x26c9a6(0x3c3)](()=>{const _0x5173fa=_0x26c9a6;this[_0x5173fa(0x281)]=!0x0;}),_0x59cc73=this[_0x26c9a6(0x3d9)][_0x26c9a6(0x24e)][_0x26c9a6(0x3c3)](()=>{const _0x11a85e=_0x26c9a6;this[_0x11a85e(0x381)]&&clearTimeout(this[_0x11a85e(0x381)]),this[_0x11a85e(0x381)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x52d26f=_0x26c9a6;_0x5529be[_0x52d26f(0x1c7)](),_0x59cc73['unsubscribe']();};}[_0x7974a5(0x271)](_0x4b84b2,_0x2035f,_0x16be90,_0x348aae){const _0x5f4755=_0x7974a5,_0x5b4149=new _0x40dd79[(_0x5f4755(0x200))](_0x4b84b2)[_0x5f4755(0x374)](0.2)[_0x5f4755(0x28f)](),_0x159399=new _0x23b118[(_0x5f4755(0x3de))](_0x5c145f+_0x40dd79['Tools'][_0x5f4755(0x267)](_0x16ba05),{'pointsGroup':_0x2035f,'fill':_0x5b4149||_0x23b118[_0x5f4755(0x343)](_0x40dd79[_0x5f4755(0x1d9)][_0x5f4755(0x361)],0.2),'left':_0x16be90,'top':_0x348aae,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5f4755(0x2c7)][_0x5f4755(0x276)](_0x159399),this['_scene'][_0x5f4755(0x3f5)](_0x159399,_0x8a01fe[_0x5f4755(0x307)]);}[_0x7974a5(0x1db)](_0x354f1b,_0x24d641,_0x59117,_0x54f818){const _0x5acbe1=_0x7974a5,_0x4bb833=new _0x40dd79[(_0x5acbe1(0x200))](_0x354f1b)[_0x5acbe1(0x374)](0.2)['toRgbString'](),_0x5a69d7=new _0x23b118[(_0x5acbe1(0x3de))](_0x25f528+_0x40dd79[_0x5acbe1(0x224)][_0x5acbe1(0x267)](_0x16ba05),{'pointsGroup':_0x24d641,'fill':_0x4bb833||_0x23b118[_0x5acbe1(0x343)](_0x40dd79[_0x5acbe1(0x1d9)][_0x5acbe1(0x361)],0.2),'left':_0x59117,'top':_0x54f818,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x5acbe1(0x2c7)]['push'](_0x5a69d7),this[_0x5acbe1(0x3b5)][_0x5acbe1(0x3f5)](_0x5a69d7,_0x8a01fe[_0x5acbe1(0x307)]);}[_0x7974a5(0x1de)](_0x3ef074){const _0x3ed2fc=_0x3ef074[0x0],_0x183a37=_0x3ed2fc[0x0],_0x2aa63a=_0x3ed2fc[0x2],{x:_0x3dc5e7,y:_0x48fd16}=_0x183a37,{x:_0x1f0af7,y:_0x1513e2}=_0x2aa63a;return{'left':_0x3dc5e7,'top':_0x48fd16,'width':_0x1f0af7-_0x3dc5e7,'height':_0x1513e2-_0x48fd16};}['_getScale'](){const _0x3a2f3a=_0x7974a5,{scaleX:_0x46a967,scaleY:_0x1a4b50}=this[_0x3a2f3a(0x3b5)]['getAncestorScale']();return Math[_0x3a2f3a(0x2b9)](_0x46a967,_0x1a4b50);}}var _0x2e15cc=Object[_0x7974a5(0x2d6)],_0x2fd153=(_0x4652a8,_0x3eb201,_0x2f6cf3,_0x34899f)=>{const _0x332c77=_0x7974a5;for(var _0x5e9d85=_0x34899f>0x1?void 0x0:_0x34899f?_0x2e15cc(_0x3eb201,_0x2f6cf3):_0x3eb201,_0x540f11=_0x4652a8[_0x332c77(0x2c2)]-0x1,_0x45cc12;_0x540f11>=0x0;_0x540f11--)(_0x45cc12=_0x4652a8[_0x540f11])&&(_0x5e9d85=_0x45cc12(_0x5e9d85)||_0x5e9d85);return _0x5e9d85;},_0xa66b14=(_0x1518e0,_0x3d159e)=>(_0x312f6f,_0x43c9fe)=>_0x3d159e(_0x312f6f,_0x43c9fe,_0x1518e0);let _0x12ef7f=class extends _0x40dd79['RxDisposable']{constructor(_0x2b2698,_0x40fe0f,_0x1e948e,_0x900b3b,_0xf3bf83){const _0x589410=_0x7974a5;super(),_0x5e0e83(this,_0x589410(0x1a9),[]),_0x5e0e83(this,_0x589410(0x425),[]),(this['_context']=_0x2b2698,this[_0x589410(0x404)]=_0x40fe0f,this['_collabCursorController']=_0x1e948e,this[_0x589410(0x33c)]=_0x900b3b,this[_0x589410(0x347)]=_0xf3bf83,this[_0x589410(0x40c)]());}[_0x7974a5(0x40c)](){const _0x56ce84=_0x7974a5,_0xb00384=this[_0x56ce84(0x2a6)][_0x56ce84(0x1ae)],_0x4eae5f=this['_docSkeletonManagerService'];this['disposeWithMe'](_0x9482a0[_0x56ce84(0x28d)]([this[_0x56ce84(0x207)]['getCollabCursors$'](_0xb00384),this[_0x56ce84(0x347)][_0x56ce84(0x352)]])[_0x56ce84(0x3b4)](_0x2e97c4['map'](([_0x42487e,_0xb039df])=>({'skeleton':_0x4eae5f[_0x56ce84(0x2e8)](),'cursors':[..._0x42487e[_0x56ce84(0x284)]()][_0x56ce84(0x193)](_0x564cb4=>({..._0x564cb4,'color':this[_0x56ce84(0x347)]['getColorFromTheme'](_0x564cb4[_0x56ce84(0x340)])}))})))[_0x56ce84(0x37b)](_0x21be49=>{const _0x13b866=_0x56ce84;if(this[_0x13b866(0x273)](),_0x21be49){const {skeleton:_0xc87e9,cursors:_0x25d718}=_0x21be49;this[_0x13b866(0x420)](_0xc87e9,_0x25d718);}})),this['_initResize'](),this[_0x56ce84(0x416)]();}['_updateCollabCursors'](_0x4e196e,_0x570c32){const _0x1937dc=_0x7974a5,{scene:_0x39f9a9,mainComponent:_0x4883fd}=this[_0x1937dc(0x2a6)],_0x56423c=_0x570c32[_0x1937dc(0x2da)](_0x13b08c=>new _0x5a7ce1(_0x13b08c,_0x39f9a9,_0x4e196e,_0x4883fd));this[_0x1937dc(0x1a9)]=_0x56423c,this[_0x1937dc(0x425)]=_0x570c32;}['_refreshCollabCursors'](){const _0xa9e0ef=_0x7974a5;this['_removeCollabCursors']();const {scene:_0x4f9fa2,mainComponent:_0x5a95f4}=this[_0xa9e0ef(0x2a6)],_0x18d702=this[_0xa9e0ef(0x404)][_0xa9e0ef(0x2e8)](),_0x335be5=this[_0xa9e0ef(0x425)][_0xa9e0ef(0x2da)](_0x3264fa=>new _0x5a7ce1(_0x3264fa,_0x4f9fa2,_0x18d702,_0x5a95f4));this[_0xa9e0ef(0x1a9)]=_0x335be5;}[_0x7974a5(0x273)](){const _0x1e3421=_0x7974a5;this[_0x1e3421(0x1a9)]['forEach'](_0x319c3a=>_0x319c3a[_0x1e3421(0x232)]()),this['_cursorShapes']=[];}[_0x7974a5(0x416)](){const _0x31d676=_0x7974a5,_0x342d97=[_0x8a01fe['SetDocZoomRatioOperation']['id']];this[_0x31d676(0x3a5)](this[_0x31d676(0x33c)][_0x31d676(0x316)](_0x3fe163=>{const _0x37605e=_0x31d676;_0x342d97['includes'](_0x3fe163['id'])&&_0x3fe163[_0x37605e(0x1c6)][_0x37605e(0x1ae)]===this['_context'][_0x37605e(0x1ae)]&&this['_refreshCollabCursors']();}));}[_0x7974a5(0x3fc)](){const _0x4a4216=_0x7974a5;this[_0x4a4216(0x3a5)](_0x40dd79[_0x4a4216(0x350)](this[_0x4a4216(0x2a6)]['engine'][_0x4a4216(0x41a)])[_0x4a4216(0x3b4)](_0x2e97c4['filter'](_0x28e841=>_0x28e841['type']===_0x23b118[_0x4a4216(0x35c)][_0x4a4216(0x214)]),_0x2e97c4[_0x4a4216(0x2a0)](0x10))[_0x4a4216(0x37b)](()=>{const _0x383d4f=_0x4a4216;this[_0x383d4f(0x2f9)]();}));}};_0x12ef7f=_0x2fd153([_0xa66b14(0x1,_0x40dd79[_0x7974a5(0x3ba)](_0x2cdbc3['DocSkeletonManagerService'])),_0xa66b14(0x2,_0x40dd79['Inject'](_0x1290a9)),_0xa66b14(0x3,_0x40dd79[_0x7974a5(0x194)]),_0xa66b14(0x4,_0x40dd79[_0x7974a5(0x3ba)](_0x40dd79[_0x7974a5(0x2bc)]))],_0x12ef7f);const _0x38d75b=0x1,_0x2a9b48=1.5;class _0x5877df extends _0x23b118[_0x7974a5(0x3e6)]{constructor(_0x50258f,_0x3c8f9d){const _0x368af7=_0x7974a5;super(_0x50258f,_0x3c8f9d),_0x5e0e83(this,_0x368af7(0x297)),_0x5e0e83(this,_0x368af7(0x274),!0x1),_0x5e0e83(this,_0x368af7(0x3fe)),_0x5e0e83(this,'_name',''),_0x5e0e83(this,_0x368af7(0x391),_0x368af7(0x1e6)),_0x5e0e83(this,_0x368af7(0x2bb)),(_0x3c8f9d&&this['setShapeProps'](_0x3c8f9d),this[_0x368af7(0x3f8)][_0x368af7(0x3c3)](()=>this[_0x368af7(0x2a1)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x1852df){const _0xf87961=_0x7974a5;var _0x4219b0,_0x11758f,_0x4e70f1,_0x34c225,_0x1c8500,_0x145ca1;this[_0xf87961(0x297)]=(_0x4219b0=_0x1852df[_0xf87961(0x340)])!=null?_0x4219b0:this['_color'],this[_0xf87961(0x274)]=(_0x11758f=_0x1852df[_0xf87961(0x1e7)])!=null?_0x11758f:this[_0xf87961(0x274)],this[_0xf87961(0x3fe)]=(_0x4e70f1=_0x1852df[_0xf87961(0x26d)])!=null?_0x4e70f1:this[_0xf87961(0x3fe)],this[_0xf87961(0x2d0)]=(_0x34c225=_0x1852df['name'])!=null?_0x34c225:this['_name'],this['_labelPosition']=(_0x1c8500=_0x1852df[_0xf87961(0x21f)])!=null?_0x1c8500:this['_labelPosition'],this[_0xf87961(0x2bb)]=(_0x145ca1=_0x1852df[_0xf87961(0x1b9)])!=null?_0x145ca1:this[_0xf87961(0x2bb)],this[_0xf87961(0x396)]({'width':_0x1852df[_0xf87961(0x398)],'height':_0x1852df['height']});}[_0x7974a5(0x226)](_0x13cd3f){const _0x46614e=_0x7974a5,{row:_0x210132,column:_0x4523fa}=_0x13cd3f;if(_0x210132>=this[_0x46614e(0x3fe)][_0x46614e(0x417)]&&_0x210132<=this[_0x46614e(0x3fe)][_0x46614e(0x2c9)]&&_0x4523fa>=this[_0x46614e(0x3fe)][_0x46614e(0x1fe)]&&_0x4523fa<=this[_0x46614e(0x3fe)][_0x46614e(0x34d)]){this[_0x46614e(0x2a1)]({'hovered':!0x0});return;}this[_0x46614e(0x2a1)]({'hovered':!0x1});}['triggerDblclick'](_0x134d61){return!0x1;}[_0x7974a5(0x3a0)](_0x3b7532){const _0x1de1f5=_0x7974a5;_0x23b118[_0x1de1f5(0x25b)][_0x1de1f5(0x217)](_0x3b7532,{'width':this[_0x1de1f5(0x398)],'height':this[_0x1de1f5(0x3ea)],'strokeWidth':_0x2a9b48,'stroke':this[_0x1de1f5(0x297)],'evented':!0x1,'fill':this[_0x1de1f5(0x2bb)]}),this[_0x1de1f5(0x274)]&&(_0x3b7532[_0x1de1f5(0x36f)](),_0x3b7532[_0x1de1f5(0x2af)](0x1,0x0,0x0,0x1,this[_0x1de1f5(0x398)],this[_0x1de1f5(0x391)]==='bottom'?0x0:-0x14),_0xced573[_0x1de1f5(0x217)](_0x3b7532,{'text':this[_0x1de1f5(0x2d0)],'color':this[_0x1de1f5(0x297)]}),_0x3b7532[_0x1de1f5(0x38e)]());}}var _0x167412=Object['getOwnPropertyDescriptor'],_0x284eaf=(_0x665f6a,_0xfd74b4,_0xab6977,_0x46048a)=>{const _0x3476ea=_0x7974a5;for(var _0x51239a=_0x46048a>0x1?void 0x0:_0x46048a?_0x167412(_0xfd74b4,_0xab6977):_0xfd74b4,_0x2b8daa=_0x665f6a[_0x3476ea(0x2c2)]-0x1,_0x39bebb;_0x2b8daa>=0x0;_0x2b8daa--)(_0x39bebb=_0x665f6a[_0x2b8daa])&&(_0x51239a=_0x39bebb(_0x51239a)||_0x51239a);return _0x51239a;},_0x21411c=(_0x5a447d,_0x200eae)=>(_0x3ed4a8,_0x5c5c54)=>_0x200eae(_0x3ed4a8,_0x5c5c54,_0x5a447d);const _0x2629ec=0x1389;let _0x433749=class extends _0x40dd79['RxDisposable']{constructor(_0x41b9a8,_0x2816b4,_0x8c33d8,_0xff8085){const _0x3f77eb=_0x7974a5;super(),_0x5e0e83(this,_0x3f77eb(0x425),new Set()),_0x5e0e83(this,_0x3f77eb(0x3ee),null),(this[_0x3f77eb(0x2a6)]=_0x41b9a8,this[_0x3f77eb(0x2dc)]=_0x2816b4,this[_0x3f77eb(0x207)]=_0x8c33d8,this['_themeService']=_0xff8085,this[_0x3f77eb(0x40c)]());}[_0x7974a5(0x40c)](){const _0x3a6363=_0x7974a5;this[_0x3a6363(0x2dc)][_0x3a6363(0x2a5)]['pipe'](_0x2e97c4[_0x3a6363(0x18e)](this[_0x3a6363(0x31d)]),_0x2e97c4[_0x3a6363(0x286)](_0x402834=>{const _0x5f3c2b=_0x3a6363;if(_0x402834){const _0x5175c2=_0x402834[_0x5f3c2b(0x354)];return _0x9482a0[_0x5f3c2b(0x28d)](this[_0x5f3c2b(0x207)][_0x5f3c2b(0x1ce)](this['_context']['unitId']),this[_0x5f3c2b(0x347)][_0x5f3c2b(0x352)])[_0x5f3c2b(0x3b4)](_0x2e97c4[_0x5f3c2b(0x2da)](([_0x341f6c,_0x125c0a])=>{const _0x3076a4=_0x5f3c2b,_0x13f757=new Map();return _0x341f6c[_0x3076a4(0x22a)]((_0x48fd03,_0x5eb000)=>{const _0x1fad01=_0x3076a4;if(_0x48fd03[_0x1fad01(0x34e)]===_0x5175c2){const _0xb4e085={..._0x48fd03};_0xb4e085[_0x1fad01(0x340)]=this[_0x1fad01(0x347)][_0x1fad01(0x2e3)](_0x48fd03[_0x1fad01(0x340)]),_0x13f757[_0x1fad01(0x22d)](_0x5eb000,_0xb4e085);}}),{'skeleton':_0x402834,'cursors':_0x13f757};}));}return _0x9482a0['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x30cfbf,cursors:_0x47bda3})=>{const _0x4abb63=_0x3a6363;this[_0x4abb63(0x273)](),_0x30cfbf&&this[_0x4abb63(0x420)](_0x30cfbf,_0x47bda3);}),this['_sheetSkeletonManagerService'][_0x3a6363(0x2a5)]['subscribe'](_0x52b0af=>{const _0x3c5d05=_0x3a6363;if(_0x52b0af==null)return;const {skeleton:_0x54caad}=_0x52b0af,{scene:_0x1ed0a6}=this['_context'];_0x1ed0a6[_0x3c5d05(0x1c8)]['subscribeEvent'](_0x40dd79['debounce'](_0x2562eb=>{const _0x447529=_0x3c5d05;var _0x571e5f,_0x502e34;const {offsetX:_0x9e4e70,offsetY:_0x3a774f}=_0x2562eb,{x:_0x1c8223,y:_0x209e91}=_0x1ed0a6[_0x447529(0x27c)](_0x23b118[_0x447529(0x403)][_0x447529(0x407)]([_0x9e4e70,_0x3a774f])),{scaleX:_0x57ebf1,scaleY:_0x32dd5a}=_0x1ed0a6[_0x447529(0x254)](),_0x4c70fe=_0x1ed0a6[_0x447529(0x392)](_0x23b118[_0x447529(0x206)][_0x447529(0x429)]),_0x5bdcc3=_0x1ed0a6[_0x447529(0x31f)](_0x23b118['Vector2'][_0x447529(0x407)]([_0x1c8223,_0x209e91]),_0x4c70fe),_0x22f626=_0x54caad[_0x447529(0x1eb)](_0x9e4e70,_0x3a774f,_0x57ebf1,_0x32dd5a,_0x5bdcc3);((_0x571e5f=this['_lastPointer'])==null?void 0x0:_0x571e5f[_0x447529(0x234)])===_0x22f626['column']&&((_0x502e34=this[_0x447529(0x3ee)])==null?void 0x0:_0x502e34[_0x447529(0x3ec)])===_0x22f626[_0x447529(0x3ec)]||this[_0x447529(0x425)][_0x447529(0x22a)](_0x5007bf=>{const _0x330bc2=_0x447529;_0x5007bf[_0x330bc2(0x226)](_0x22f626);});},0x64));});}[_0x7974a5(0x420)](_0x3c8a7d,_0x37b0bb){const _0x5bd90d=_0x7974a5;var _0x52a07d;const _0x16696b=(_0x52a07d=this[_0x5bd90d(0x2dc)][_0x5bd90d(0x311)]())==null?void 0x0:_0x52a07d[_0x5bd90d(0x3ab)];if(!_0x16696b)return;const _0x2f34c4=this[_0x5bd90d(0x278)]();if(!_0x2f34c4)return;this[_0x5bd90d(0x425)]['forEach'](_0x3ce984=>{_0x3ce984['makeDirty']();});const {scene:_0x13b058}=_0x2f34c4,_0x3c02ae=_0x353fe7(Array['from'](_0x37b0bb[_0x5bd90d(0x284)]()))['map'](_0xd6324c=>{const _0x317b95=_0x5bd90d,{color:_0x9292cb,range:_0x344df5,name:_0x313b2d,selection:_0x3aae82,sheetID:_0x755984}=_0xd6324c,{startColumn:_0x1b9960,startRow:_0x328cec,endColumn:_0x3b4a24,endRow:_0x31f3ce}=_0x344df5,_0x4cd3f5=_0x24e594[_0x317b95(0x277)](_0x328cec,_0x1b9960,_0x13b058,_0x16696b),_0x37126c=_0x24e594[_0x317b95(0x277)](_0x31f3ce,_0x3b4a24,_0x13b058,_0x16696b),{columnHeaderHeightAndMarginTop:_0x36c072}=_0x16696b,{startX:_0x3effc8,startY:_0x12837d}=_0x4cd3f5,{endX:_0xb69148,endY:_0x81ec02}=_0x37126c,_0x1e96bd=_0xb69148-_0x3effc8,_0x15f9f4=_0x81ec02-_0x12837d,_0x588ae5={'labelPosition':_0x12837d-_0x36c072>=_0x4211e9?_0x317b95(0x1e6):_0x317b95(0x41d),'sheetID':_0x755984,'range':_0x344df5,'color':_0x9292cb,'name':_0x313b2d,'selection':_0x3aae82,'left':_0x3effc8,'top':_0x12837d,'width':_0x1e96bd,'height':_0x15f9f4,'evented':!0x1,'zIndex':_0x2629ec};return new _0x5877df(_0x313b2d,_0x588ae5);});_0x13b058[_0x5bd90d(0x248)](_0x3c02ae,_0x38d75b),this[_0x5bd90d(0x425)]=new Set(_0x3c02ae);}['_removeCollabCursors'](){const _0xc73b2a=_0x7974a5;var _0x247569;(_0x247569=this[_0xc73b2a(0x425)])==null||_0x247569[_0xc73b2a(0x22a)](_0x4f3508=>_0x4f3508[_0xc73b2a(0x232)]());}['_getSheetObject'](){const _0x50dc81=_0x7974a5;return _0x24e594[_0x50dc81(0x2b1)](this[_0x50dc81(0x2a6)][_0x50dc81(0x27e)],this[_0x50dc81(0x2a6)]);}};_0x433749=_0x284eaf([_0x21411c(0x1,_0x40dd79[_0x7974a5(0x3ba)](_0x24e594['SheetSkeletonManagerService'])),_0x21411c(0x2,_0x40dd79[_0x7974a5(0x3ba)](_0x1290a9)),_0x21411c(0x3,_0x40dd79[_0x7974a5(0x3ba)](_0x40dd79[_0x7974a5(0x2bc)]))],_0x433749);function _0x353fe7(_0x2bb273){const _0x2ff76b=_0x7974a5,_0x41386a=new Map();return _0x2bb273['forEach'](_0x519b1c=>{const _0xdef97=_0x287b;if(_0x41386a[_0xdef97(0x37c)](_0x519b1c['selection'])){const _0x4c6e89=_0x41386a['get'](_0x519b1c[_0xdef97(0x324)]);_0x4c6e89[_0xdef97(0x22f)]+=',\x20'+_0x519b1c['name'];}else _0x41386a[_0xdef97(0x22d)](_0x519b1c['selection'],_0x519b1c);}),Array['from'](_0x41386a[_0x2ff76b(0x284)]());}var _0x681c34=function(){const _0xd1b8eb=_0x7974a5;return _0x681c34=Object[_0xd1b8eb(0x30d)]||function(_0x271b7d){const _0xfb1aaf=_0xd1b8eb;for(var _0x46d2e6,_0x2febe4=0x1,_0x25374f=arguments['length'];_0x2febe4<_0x25374f;_0x2febe4++){_0x46d2e6=arguments[_0x2febe4];for(var _0x44f711 in _0x46d2e6)Object['prototype'][_0xfb1aaf(0x2e5)][_0xfb1aaf(0x19c)](_0x46d2e6,_0x44f711)&&(_0x271b7d[_0x44f711]=_0x46d2e6[_0x44f711]);}return _0x271b7d;},_0x681c34['apply'](this,arguments);},_0x5a3586=function(_0x435656,_0x5d82e5){const _0x3a47c9=_0x7974a5;var _0x5d200a={};for(var _0x21dfcc in _0x435656)Object[_0x3a47c9(0x230)][_0x3a47c9(0x2e5)][_0x3a47c9(0x19c)](_0x435656,_0x21dfcc)&&_0x5d82e5[_0x3a47c9(0x2b4)](_0x21dfcc)<0x0&&(_0x5d200a[_0x21dfcc]=_0x435656[_0x21dfcc]);if(_0x435656!=null&&typeof Object[_0x3a47c9(0x314)]==_0x3a47c9(0x265)){for(var _0x2a7566=0x0,_0x21dfcc=Object[_0x3a47c9(0x314)](_0x435656);_0x2a7566<_0x21dfcc['length'];_0x2a7566++)_0x5d82e5['indexOf'](_0x21dfcc[_0x2a7566])<0x0&&Object[_0x3a47c9(0x230)][_0x3a47c9(0x2a4)][_0x3a47c9(0x19c)](_0x435656,_0x21dfcc[_0x2a7566])&&(_0x5d200a[_0x21dfcc[_0x2a7566]]=_0x435656[_0x21dfcc[_0x2a7566]]);}return _0x5d200a;},_0x4a01ef=_0x2d11dd[_0x7974a5(0x279)](function(_0x202407,_0xe808fb){const _0xbb5b2b=_0x7974a5;var _0x5cb449=_0x202407[_0xbb5b2b(0x233)],_0x2a781f=_0x202407['id'],_0x33c3fe=_0x202407[_0xbb5b2b(0x190)],_0x428b74=_0x202407['extend'],_0x11235c=_0x5a3586(_0x202407,[_0xbb5b2b(0x233),'id',_0xbb5b2b(0x190),_0xbb5b2b(0x2d8)]),_0x193ea4=_0xbb5b2b(0x379)['concat'](_0x2a781f,'\x20')[_0xbb5b2b(0x38b)](_0x33c3fe||'')[_0xbb5b2b(0x409)](),_0x2f41e6=_0x2d11dd['useRef']('_'[_0xbb5b2b(0x38b)](_0x32d985()));return _0x2da9e3(_0x5cb449,''[_0xbb5b2b(0x38b)](_0x2a781f),{'defIds':_0x5cb449[_0xbb5b2b(0x2d5)],'idSuffix':_0x2f41e6[_0xbb5b2b(0x41c)]},_0x681c34({'ref':_0xe808fb,'className':_0x193ea4},_0x11235c),_0x428b74);});function _0x2da9e3(_0x4faf01,_0x4b1b3e,_0x4dc363,_0x59159f,_0x335836){const _0x177c01=_0x7974a5;return _0x2d11dd[_0x177c01(0x318)](_0x4faf01[_0x177c01(0x390)],_0x681c34(_0x681c34({'key':_0x4b1b3e},_0x130791(_0x4faf01,_0x4dc363,_0x335836)),_0x59159f),(_0x532847(_0x4faf01,_0x4dc363)['children']||[])[_0x177c01(0x2da)](function(_0x314bfb,_0x3b5f70){const _0x4ea9a0=_0x177c01;return _0x2da9e3(_0x314bfb,''[_0x4ea9a0(0x38b)](_0x4b1b3e,'-')[_0x4ea9a0(0x38b)](_0x4faf01[_0x4ea9a0(0x390)],'-')[_0x4ea9a0(0x38b)](_0x3b5f70),_0x4dc363,void 0x0,_0x335836);}));}function _0x130791(_0x2fe314,_0x21f3f1,_0x4c1e17){const _0xa6dc52=_0x7974a5;var _0x1d97ee=_0x681c34({},_0x2fe314['attrs']);_0x4c1e17!=null&&_0x4c1e17[_0xa6dc52(0x3e7)]&&_0x1d97ee[_0xa6dc52(0x40b)]==='colorChannel1'&&(_0x1d97ee[_0xa6dc52(0x40b)]=_0x4c1e17[_0xa6dc52(0x3e7)]),_0x2fe314[_0xa6dc52(0x390)]==='mask'&&_0x1d97ee['id']&&(_0x1d97ee['id']=_0x1d97ee['id']+_0x21f3f1[_0xa6dc52(0x23f)]),Object[_0xa6dc52(0x1e5)](_0x1d97ee)[_0xa6dc52(0x22a)](function(_0x2b782f){const _0x2cc90b=_0xa6dc52;var _0x38d7a8=_0x2b782f[0x0],_0x2f801d=_0x2b782f[0x1];_0x38d7a8==='mask'&&typeof _0x2f801d=='string'&&(_0x1d97ee[_0x38d7a8]=_0x2f801d['replace'](/url\(#(.*)\)/,_0x2cc90b(0x325)[_0x2cc90b(0x38b)](_0x21f3f1[_0x2cc90b(0x23f)],')')));});var _0x450556=_0x21f3f1[_0xa6dc52(0x2d5)];return!_0x450556||_0x450556[_0xa6dc52(0x2c2)]===0x0||(_0x2fe314[_0xa6dc52(0x390)]===_0xa6dc52(0x3a1)&&_0x1d97ee[_0xa6dc52(0x2ca)]&&(_0x1d97ee[_0xa6dc52(0x2ca)]=_0x1d97ee[_0xa6dc52(0x2ca)]+_0x21f3f1[_0xa6dc52(0x23f)]),Object[_0xa6dc52(0x1e5)](_0x1d97ee)[_0xa6dc52(0x22a)](function(_0x5af171){const _0x3c0e26=_0xa6dc52;var _0x9c4e72=_0x5af171[0x0],_0x123376=_0x5af171[0x1];typeof _0x123376=='string'&&(_0x1d97ee[_0x9c4e72]=_0x123376[_0x3c0e26(0x330)](/url\(#(.*)\)/,_0x3c0e26(0x325)[_0x3c0e26(0x38b)](_0x21f3f1['idSuffix'],')')));})),_0x1d97ee;}function _0x532847(_0x1a496f,_0x2b697d){const _0x143131=_0x7974a5;var _0x185070,_0x451b8e=_0x2b697d[_0x143131(0x2d5)];return!_0x451b8e||_0x451b8e[_0x143131(0x2c2)]===0x0?_0x1a496f:_0x1a496f[_0x143131(0x390)]===_0x143131(0x21b)&&(!((_0x185070=_0x1a496f[_0x143131(0x2b7)])===null||_0x185070===void 0x0)&&_0x185070[_0x143131(0x2c2)])?_0x681c34(_0x681c34({},_0x1a496f),{'children':_0x1a496f[_0x143131(0x2b7)][_0x143131(0x2da)](function(_0x158455){const _0x15cba3=_0x143131;return typeof _0x158455[_0x15cba3(0x19e)]['id']==_0x15cba3(0x300)&&_0x451b8e&&_0x451b8e[_0x15cba3(0x1d5)](_0x158455[_0x15cba3(0x19e)]['id'])?_0x681c34(_0x681c34({},_0x158455),{'attrs':_0x681c34(_0x681c34({},_0x158455['attrs']),{'id':_0x158455['attrs']['id']+_0x2b697d[_0x15cba3(0x23f)]})}):_0x158455;})}):_0x1a496f;}function _0x32d985(){const _0x35950f=_0x7974a5;return Math['random']()[_0x35950f(0x344)](0x24)[_0x35950f(0x1f4)](0x2,0x8);}_0x4a01ef['displayName']='UniverIcon';var _0x1757c0={'tag':_0x7974a5(0x1b4),'attrs':{'xmlns':_0x7974a5(0x3e5),'fill':_0x7974a5(0x1be),'viewBox':_0x7974a5(0x327),'width':_0x7974a5(0x1df),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x7974a5(0x282),'attrs':{'stroke':_0x7974a5(0x32a),'d':_0x7974a5(0x2bf),'strokeLinecap':_0x7974a5(0x33b),'strokeLinejoin':_0x7974a5(0x33b),'strokeWidth':1.2}}]},{'tag':_0x7974a5(0x21b),'attrs':{},'children':[{'tag':_0x7974a5(0x1af),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x7974a5(0x28b),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x7974a5(0x1ff)]},_0x5927eb=_0x2d11dd['forwardRef'](function(_0x35259c,_0x2c6680){const _0x1405f0=_0x7974a5;return _0x2d11dd[_0x1405f0(0x318)](_0x4a01ef,Object[_0x1405f0(0x30d)]({},_0x35259c,{'id':_0x1405f0(0x287),'ref':_0x2c6680,'icon':_0x1757c0}));});_0x5927eb[_0x7974a5(0x251)]=_0x7974a5(0x2fd);var _0x508557={'tag':'svg','attrs':{'xmlns':_0x7974a5(0x3e5),'fill':_0x7974a5(0x1be),'viewBox':_0x7974a5(0x2bd),'width':_0x7974a5(0x1df),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x7974a5(0x32a),'d':_0x7974a5(0x39c),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x7974a5(0x21b),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x7974a5(0x282),'attrs':{'fill':_0x7974a5(0x28b),'d':_0x7974a5(0x335),'transform':'translate(.97)'}}]}]}],'defIds':[_0x7974a5(0x3a2)]},_0x37a6ed=_0x2d11dd['forwardRef'](function(_0x23d8e0,_0x22bb7e){const _0x56e8b3=_0x7974a5;return _0x2d11dd[_0x56e8b3(0x318)](_0x4a01ef,Object['assign']({},_0x23d8e0,{'id':_0x56e8b3(0x1e3),'ref':_0x22bb7e,'icon':_0x508557}));});_0x37a6ed['displayName']=_0x7974a5(0x3f1);function _0x4cd989(_0x4cc55c){const _0x146c4a=_0x7974a5;switch(_0x4cc55c){case _0x3ce651[_0x146c4a(0x1b7)]['OFFLINE']:return _0x146c4a(0x371);case _0x3ce651[_0x146c4a(0x1b7)][_0x146c4a(0x1c9)]:return _0x146c4a(0x2ed);case _0x3ce651[_0x146c4a(0x1b7)][_0x146c4a(0x31a)]:return _0x146c4a(0x36a);case _0x3ce651[_0x146c4a(0x1b7)]['NOT_COLLAB']:return _0x146c4a(0x2df);case _0x3ce651[_0x146c4a(0x1b7)][_0x146c4a(0x1f9)]:case _0x3ce651['CollaborationStatus'][_0x146c4a(0x285)]:return _0x146c4a(0x1ef);case _0x3ce651[_0x146c4a(0x1b7)]['SYNCED']:case _0x3ce651['CollaborationStatus'][_0x146c4a(0x30a)]:return _0x146c4a(0x3a4);}}function _0x151afa(_0x1067d6){const _0xe55cfd=_0x7974a5,{status$:_0x24d7f3}=_0x1067d6,_0xcd2406=_0x3117be['useObservable'](_0x24d7f3,_0x3ce651[_0xe55cfd(0x1b7)]['NOT_COLLAB']),_0x34ad92=_0x3117be[_0xe55cfd(0x2b8)](_0x40dd79[_0xe55cfd(0x3e0)]),_0x1ecc81=_0x3117be[_0xe55cfd(0x2b8)](_0x3ce651['CollaborationSessionService']),_0x1b10b8=_0xcd2406!==_0x3ce651['CollaborationStatus'][_0xe55cfd(0x1ca)],_0x267f2c=_0x34ad92['t'](_0x4cd989(_0xcd2406)),_0x4d672d=_0x1b10b8?_0x115cf8['jsx'](_0x37a6ed,{}):_0x115cf8[_0xe55cfd(0x3b6)](_0x5927eb,{}),_0x3036af=_0x2d11dd[_0xe55cfd(0x3d2)](()=>{const _0x53ade1=_0xe55cfd;_0x1b10b8||_0x1ecc81[_0x53ade1(0x2a8)]();},[_0x1b10b8,_0x1ecc81]);function _0x2f614e(){const _0x32cf33=_0xe55cfd;return _0x115cf8[_0x32cf33(0x1dc)](_0x32cf33(0x27f),{'className':'univer-flex\x20univer-items-center','onClick':_0x3036af,'children':[_0x115cf8[_0x32cf33(0x3b6)](_0x32cf33(0x27f),{'className':_0x27c15c[_0x32cf33(0x309)](_0x32cf33(0x22e),{'univer-text-green-500':_0x1b10b8,'univer-text-red-500':!_0x1b10b8}),'children':_0x4d672d}),_0x115cf8[_0x32cf33(0x3b6)]('div',{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x267f2c})]});}return _0x1b10b8?_0x2f614e():_0x115cf8['jsx'](_0x27c15c['Tooltip'],{'title':_0x34ad92['t'](_0xe55cfd(0x1e1)),'children':_0x2f614e()});}var _0x4de6f6=Object[_0x7974a5(0x2d6)],_0x18b6e8=(_0x1456f5,_0x6e5c42,_0x3bd846,_0x148ab1)=>{const _0x1125cc=_0x7974a5;for(var _0x360f5c=_0x148ab1>0x1?void 0x0:_0x148ab1?_0x4de6f6(_0x6e5c42,_0x3bd846):_0x6e5c42,_0x5e489a=_0x1456f5[_0x1125cc(0x2c2)]-0x1,_0x35cdfc;_0x5e489a>=0x0;_0x5e489a--)(_0x35cdfc=_0x1456f5[_0x5e489a])&&(_0x360f5c=_0x35cdfc(_0x360f5c)||_0x360f5c);return _0x360f5c;},_0x3f4af4=(_0x1ac443,_0x11143d)=>(_0x452110,_0x3bdf0)=>_0x11143d(_0x452110,_0x3bdf0,_0x1ac443);_0xa6a46a[_0x7974a5(0x2aa)]=class extends _0x40dd79[_0x7974a5(0x2f0)]{constructor(_0x3d0ca6,_0x596544,_0x5ca836,_0xc6e5c9){const _0xd0bb22=_0x7974a5;super(),_0x5e0e83(this,_0xd0bb22(0x20d),new _0x9482a0[(_0xd0bb22(0x369))](_0x3ce651['CollaborationStatus']['NOT_COLLAB'])),(this['_univerInstanceService']=_0x3d0ca6,this[_0xd0bb22(0x1a3)]=_0x596544,this['_collaborationController']=_0x5ca836,this[_0xd0bb22(0x33e)]=_0xc6e5c9,this[_0xd0bb22(0x2c4)](),this[_0xd0bb22(0x283)]());}[_0x7974a5(0x283)](){const _0x1a0f2d=_0x7974a5;this[_0x1a0f2d(0x3a5)](this[_0x1a0f2d(0x20a)][_0x1a0f2d(0x2f8)][_0x1a0f2d(0x3b4)](_0x9482a0['switchMap'](()=>{const _0x3604e8=_0x1a0f2d,_0x250857=this[_0x3604e8(0x20a)][_0x3604e8(0x209)]();return _0x250857?this[_0x3604e8(0x3dd)]['getCollabEntity$'](_0x250857[_0x3604e8(0x336)]()):_0x9482a0['of'](null);}),_0x9482a0[_0x1a0f2d(0x286)](_0x279a01=>_0x279a01?_0x279a01[_0x1a0f2d(0x261)]:_0x9482a0['of'](_0x3ce651[_0x1a0f2d(0x1b7)][_0x1a0f2d(0x23d)])))[_0x1a0f2d(0x37b)](_0x33950b=>{const _0x27139a=_0x1a0f2d;this['_status$'][_0x27139a(0x413)](_0x33950b);}));}[_0x7974a5(0x2c4)](){const _0x4d04b9=_0x7974a5;this[_0x4d04b9(0x3a5)](this[_0x4d04b9(0x33e)][_0x4d04b9(0x348)](_0x3117be[_0x4d04b9(0x292)]['HEADER_MENU'],()=>_0x3117be[_0x4d04b9(0x3a9)](_0xbb2e76({'status$':this[_0x4d04b9(0x20d)][_0x4d04b9(0x228)]()}),this['_injector'])));}},_0xa6a46a[_0x7974a5(0x2aa)]=_0x18b6e8([_0x3f4af4(0x0,_0x40dd79['IUniverInstanceService']),_0x3f4af4(0x1,_0x40dd79['Inject'](_0x40dd79[_0x7974a5(0x26c)])),_0x3f4af4(0x2,_0x40dd79['Inject'](_0x3ce651['CollaborationController'])),_0x3f4af4(0x3,_0x3117be[_0x7974a5(0x1c1)])],_0xa6a46a[_0x7974a5(0x2aa)]);function _0xbb2e76(_0x5b70f0){const {status$:_0xa2a6bc}=_0x5b70f0;return function(){const _0x117f7c=_0x287b;return _0x115cf8[_0x117f7c(0x3b6)](_0x151afa,{'status$':_0xa2a6bc});};}var _0x38388f=Object['getOwnPropertyDescriptor'],_0x4be6f1=(_0x16967d,_0x393554,_0x2695b4,_0x3a2103)=>{const _0x501046=_0x7974a5;for(var _0x1a52b2=_0x3a2103>0x1?void 0x0:_0x3a2103?_0x38388f(_0x393554,_0x2695b4):_0x393554,_0x16f2cc=_0x16967d[_0x501046(0x2c2)]-0x1,_0x4d7967;_0x16f2cc>=0x0;_0x16f2cc--)(_0x4d7967=_0x16967d[_0x16f2cc])&&(_0x1a52b2=_0x4d7967(_0x1a52b2)||_0x1a52b2);return _0x1a52b2;},_0x27ed66=(_0x2d3992,_0x478d96)=>(_0x546c8d,_0x3959e9)=>_0x478d96(_0x546c8d,_0x3959e9,_0x2d3992);let _0x3f925c=class extends _0x40dd79['Disposable']{constructor(_0x14629f,_0x1e346a,_0x44d649,_0x2b6fa5,_0x75bf1a,_0x154d57){const _0x138990=_0x7974a5;super(),this[_0x138990(0x24f)]=_0x14629f,this[_0x138990(0x2ba)]=_0x1e346a,this[_0x138990(0x42c)]=_0x44d649,this[_0x138990(0x405)]=_0x2b6fa5,this['_notificationService']=_0x75bf1a,this[_0x138990(0x19a)]=_0x154d57,this[_0x138990(0x1fd)](),this[_0x138990(0x418)]();}[_0x7974a5(0x1fd)](){const _0x24071f=_0x7974a5;this[_0x24071f(0x3a5)](this['_beforeCloseService'][_0x24071f(0x215)](()=>{const _0x13c0fc=_0x24071f;if(this[_0x13c0fc(0x2ba)][_0x13c0fc(0x229)][_0x13c0fc(0x30c)])return this[_0x13c0fc(0x19a)]['t'](_0x13c0fc(0x244));}));}[_0x7974a5(0x418)](){const _0x4ec4eb=_0x7974a5;this[_0x4ec4eb(0x3a5)](this['_collaborationUIEventService']['event$']['subscribe'](_0x2a28de=>{const _0x4385fe=_0x4ec4eb;_0x2a28de['id']===_0x3ce651[_0x4385fe(0x2b3)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x4385fe(0x2d9)]({'type':_0x27c15c[_0x4385fe(0x426)]['Warning'],'content':this[_0x4385fe(0x19a)]['t'](_0x4385fe(0x2ab))}),_0x2a28de['id']===_0x3ce651['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x4385fe(0x405)][_0x4385fe(0x2d9)]({'type':_0x27c15c[_0x4385fe(0x426)][_0x4385fe(0x3f4)],'content':this['_localeService']['t'](_0x4385fe(0x1d8))}),_0x2a28de['id']===_0x3ce651[_0x4385fe(0x2b3)][_0x4385fe(0x3d5)]&&this[_0x4385fe(0x1c0)][_0x4385fe(0x2d9)]({'title':this[_0x4385fe(0x19a)]['t'](_0x4385fe(0x2fa)),'content':this['_localeService']['t']('permission.content'),'type':_0x4385fe(0x242),'duration':0x0}),_0x2a28de['id']===_0x3ce651['CollaborationUIEventId']['CONFLICT']&&this[_0x4385fe(0x405)][_0x4385fe(0x2d9)]({'type':_0x27c15c[_0x4385fe(0x426)]['Error'],'content':this[_0x4385fe(0x19a)]['t']('collaboration.closeRoom')+'('+_0x2a28de[_0x4385fe(0x2fe)]+')'}),_0x2a28de['id']===_0x3ce651[_0x4385fe(0x2b3)][_0x4385fe(0x22b)]&&this[_0x4385fe(0x405)][_0x4385fe(0x2d9)]({'type':_0x27c15c[_0x4385fe(0x426)]['Warning'],'content':this[_0x4385fe(0x19a)]['t'](_0x2a28de[_0x4385fe(0x2fe)]||'')}),_0x2a28de['id']===_0x3ce651[_0x4385fe(0x2b3)][_0x4385fe(0x2ae)]&&this[_0x4385fe(0x405)]['show']({'type':_0x27c15c[_0x4385fe(0x426)][_0x4385fe(0x3f4)],'content':this[_0x4385fe(0x19a)]['t'](_0x4385fe(0x299))}),_0x2a28de['id']===_0x3ce651[_0x4385fe(0x2b3)][_0x4385fe(0x408)]&&this[_0x4385fe(0x405)][_0x4385fe(0x2d9)]({'type':_0x27c15c['MessageType'][_0x4385fe(0x3c9)],'content':this[_0x4385fe(0x19a)]['t'](_0x4385fe(0x199))}),_0x2a28de['id']===_0x3ce651['CollaborationUIEventId'][_0x4385fe(0x428)]&&this[_0x4385fe(0x405)][_0x4385fe(0x2d9)]({'type':_0x27c15c['MessageType'][_0x4385fe(0x3c9)],'content':this[_0x4385fe(0x19a)]['t'](_0x4385fe(0x303))});}));}};_0x3f925c=_0x4be6f1([_0x27ed66(0x0,_0x3117be[_0x7974a5(0x23b)]),_0x27ed66(0x1,_0x3ce651[_0x7974a5(0x2e4)]),_0x27ed66(0x2,_0x40dd79['Inject'](_0x3ce651['CollaborationUIEventService'])),_0x27ed66(0x3,_0x3117be[_0x7974a5(0x3d8)]),_0x27ed66(0x4,_0x3117be[_0x7974a5(0x37f)]),_0x27ed66(0x5,_0x40dd79[_0x7974a5(0x3ba)](_0x40dd79['LocaleService']))],_0x3f925c);const _0x3b5105=_0x7974a5(0x42d),_0x39d793={},_0x1ccfa8=_0x40dd79[_0x7974a5(0x1bd)](_0x7974a5(0x2ec));var _0x51223b=Object[_0x7974a5(0x2d6)],_0x4559f6=(_0x5f15d9,_0x4d2891,_0x3050d9,_0x300adf)=>{const _0x1a15a6=_0x7974a5;for(var _0x43e787=_0x300adf>0x1?void 0x0:_0x300adf?_0x51223b(_0x4d2891,_0x3050d9):_0x4d2891,_0xf799a9=_0x5f15d9[_0x1a15a6(0x2c2)]-0x1,_0x4bf7f6;_0xf799a9>=0x0;_0xf799a9--)(_0x4bf7f6=_0x5f15d9[_0xf799a9])&&(_0x43e787=_0x4bf7f6(_0x43e787)||_0x43e787);return _0x43e787;},_0x46ac99=(_0x13bf81,_0x40c42d)=>(_0x35a315,_0x78a401)=>_0x40c42d(_0x35a315,_0x78a401,_0x13bf81);_0xa6a46a['CollaborationDataLoaderController']=class extends _0x40dd79[_0x7974a5(0x39d)]{constructor(_0xb9290d,_0x56c50b,_0x5aa5bf,_0x162a0d,_0x1b054c){const _0x4af0a0=_0x7974a5;super(),this[_0x4af0a0(0x1ea)]=_0xb9290d,this[_0x4af0a0(0x2cd)]=_0x56c50b,this[_0x4af0a0(0x33c)]=_0x5aa5bf,this['_dataLoaderService']=_0x162a0d,_0x1b054c?_0x1b054c==null||_0x1b054c[_0x4af0a0(0x227)]()[_0x4af0a0(0x1ec)](()=>this['_init']()):(this[_0x4af0a0(0x2cd)][_0x4af0a0(0x2b2)](_0x4af0a0(0x252),_0x4af0a0(0x339)),this['_init']());}async[_0x7974a5(0x40c)](){const _0x5b976b=_0x7974a5,_0x40d537=this['_urlService'][_0x5b976b(0x218)](_0x5b976b(0x27e)),_0x23bda6=this[_0x5b976b(0x1ea)][_0x5b976b(0x218)](_0x5b976b(0x1a8)),_0x5c96c4=this[_0x5b976b(0x1ea)][_0x5b976b(0x218)](_0x5b976b(0x2ce));if(!_0x40d537||!_0x23bda6){this[_0x5b976b(0x2cd)]['debug'](_0x5b976b(0x252),_0x5b976b(0x1cf));return;}const _0x17d7d5=await this[_0x5b976b(0x359)]['loadUnit'](_0x40d537,Number(_0x23bda6),_0x5c96c4);_0x17d7d5&&_0x17d7d5 instanceof _0x40dd79[_0x5b976b(0x20c)]&&this['_setupSubUnitSync'](_0x17d7d5);}async['_setupSubUnitSync'](_0x4df51f){const _0x3b1490=_0x7974a5;await this[_0x3b1490(0x31e)](_0x4df51f),_0x4df51f[_0x3b1490(0x3b0)]['pipe'](_0x9482a0[_0x3b1490(0x18e)](this[_0x3b1490(0x31d)]))['subscribe'](_0x3e1edd=>{const _0x3500a3=_0x3b1490;_0x3e1edd&&this[_0x3500a3(0x370)](_0x3e1edd);}),this['_urlService'][_0x3b1490(0x30b)][_0x3b1490(0x3b4)](_0x9482a0[_0x3b1490(0x18e)](this['dispose$']))[_0x3b1490(0x37b)](()=>this[_0x3b1490(0x31e)](_0x4df51f));}[_0x7974a5(0x370)](_0x23e71d,_0x4e910a=!0x1){const _0x22859a=_0x7974a5,_0x2f7b5a=this['_urlService'][_0x22859a(0x218)](_0x22859a(0x2ce));_0x23e71d[_0x22859a(0x310)]()!==_0x2f7b5a&&this[_0x22859a(0x1ea)][_0x22859a(0x308)]('subunit',_0x23e71d['getSheetId'](),_0x4e910a);}async[_0x7974a5(0x31e)](_0x511d01){const _0x36f374=_0x7974a5;var _0x2dc3f5;const _0x23f9b8=this[_0x36f374(0x1ea)]['getParam']('subunit');if(!_0x23f9b8||!_0x511d01[_0x36f374(0x3b8)](_0x23f9b8)){const _0x4285e5=_0x511d01[_0x36f374(0x3bc)]()[0x0],_0x2603e2=_0x511d01[_0x36f374(0x3b8)](_0x4285e5);if(!_0x2603e2)return;this[_0x36f374(0x370)](_0x2603e2,!0x0),await this[_0x36f374(0x33c)][_0x36f374(0x3fb)](_0x5736e9['SetWorksheetActivateCommand']['id'],{'unitId':_0x511d01[_0x36f374(0x336)](),'subUnitId':_0x4285e5});return;}((_0x2dc3f5=_0x511d01[_0x36f374(0x385)]())==null?void 0x0:_0x2dc3f5[_0x36f374(0x310)]())!==_0x23f9b8&&await this[_0x36f374(0x33c)][_0x36f374(0x3fb)](_0x5736e9[_0x36f374(0x342)]['id'],{'unitId':_0x511d01[_0x36f374(0x336)](),'subUnitId':_0x23f9b8});}},_0xa6a46a[_0x7974a5(0x35f)]=_0x4559f6([_0x46ac99(0x0,_0x1ccfa8),_0x46ac99(0x1,_0x40dd79['ILogService']),_0x46ac99(0x2,_0x40dd79[_0x7974a5(0x194)]),_0x46ac99(0x3,_0x40dd79[_0x7974a5(0x3ba)](_0x3ce651[_0x7974a5(0x3e2)])),_0x46ac99(0x4,_0x40dd79[_0x7974a5(0x382)](_0x397d71[_0x7974a5(0x25a)]))],_0xa6a46a[_0x7974a5(0x35f)]);var _0x2882b3=Object[_0x7974a5(0x2d6)],_0x4e71c9=(_0x18e7b2,_0x2407c2,_0x37e617,_0x2a4230)=>{const _0x2126f3=_0x7974a5;for(var _0x4097a2=_0x2a4230>0x1?void 0x0:_0x2a4230?_0x2882b3(_0x2407c2,_0x37e617):_0x2407c2,_0x1e214a=_0x18e7b2[_0x2126f3(0x2c2)]-0x1,_0x4caff3;_0x1e214a>=0x0;_0x1e214a--)(_0x4caff3=_0x18e7b2[_0x1e214a])&&(_0x4097a2=_0x4caff3(_0x4097a2)||_0x4097a2);return _0x4097a2;},_0x49ebc0=(_0x345f50,_0x157564)=>(_0x116e65,_0x408ecb)=>_0x157564(_0x116e65,_0x408ecb,_0x345f50);let _0x1114a8=class{constructor(_0x48d2f0,_0x6e9c7c,_0x35a9e3){const _0x121260=_0x7974a5;this['_injector']=_0x48d2f0,this[_0x121260(0x388)]=_0x6e9c7c,this['_renderManagerService']=_0x35a9e3;}[_0x7974a5(0x333)](_0x10211d){const _0x53092a=_0x7974a5;this[_0x53092a(0x25c)](_0x10211d),this[_0x53092a(0x2d7)](_0x10211d);}[_0x7974a5(0x2cf)](_0x1f0ed9){const _0x7488a3=_0x7974a5,{unitID:_0x5c6919}=_0x1f0ed9,_0x2d5f0e=this['_renderManagerService'][_0x7488a3(0x247)](_0x5c6919)['with'](_0x8a01fe[_0x7488a3(0x2f4)]),{redoCache:_0x448df4}=_0x2d5f0e[_0x7488a3(0x3ef)]();if(_0x448df4[_0x7488a3(0x2c2)]===0x0)return _0x1f0ed9;let _0x4e2e25=_0x40dd79[_0x7488a3(0x224)][_0x7488a3(0x3cf)](_0x1f0ed9[_0x7488a3(0x202)][0x0]);for(let _0x1b9d48=0x0;_0x1b9d48<_0x448df4[_0x7488a3(0x2c2)];_0x1b9d48++){const _0x1fba10={'id':'doc.mutation.rich-text-editing','params':{..._0x448df4[_0x1b9d48]}},_0x2292e6=this[_0x7488a3(0x388)][_0x7488a3(0x3f3)](_0x4e2e25,_0x1fba10,!0x1);if(_0x1ce1f5['isTransformMutationFailure'](_0x2292e6))throw _0x2292e6[_0x7488a3(0x242)];_0x4e2e25=_0x2292e6[_0x7488a3(0x2b6)];}return{..._0x40dd79['Tools'][_0x7488a3(0x3cf)](_0x1f0ed9),'mutations':[_0x4e2e25]};}[_0x7974a5(0x25c)](_0x54cd7c){const _0x2c04fb=_0x7974a5,{unitID:_0x587a7d}=_0x54cd7c,_0xb89c22=this[_0x2c04fb(0x1da)][_0x2c04fb(0x247)](_0x587a7d)['with'](_0x8a01fe[_0x2c04fb(0x2f4)]),{undoCache:_0x1a58c0,redoCache:_0x41ef84}=_0xb89c22['getUndoRedoMutationParamsCache']();if(_0x1a58c0[_0x2c04fb(0x2c2)]===0x0||_0x41ef84['length']===0x0)return;const _0x53fd1e=[],_0x50a03f=[];let _0x3cbf71=_0x40dd79[_0x2c04fb(0x224)][_0x2c04fb(0x3cf)](_0x54cd7c[_0x2c04fb(0x202)][0x0]),_0x2bd887=_0x40dd79[_0x2c04fb(0x224)][_0x2c04fb(0x3cf)](_0x54cd7c['mutations'][0x0]);for(let _0x58ecb4=_0x1a58c0[_0x2c04fb(0x2c2)]-0x1;_0x58ecb4>=0x0;_0x58ecb4--){const _0x11eb01={'id':_0x2c04fb(0x235),'params':{..._0x1a58c0[_0x58ecb4]}},_0x4ed04e={'id':_0x2c04fb(0x235),'params':{..._0x41ef84[_0x58ecb4]}},_0x48834e=this['_transformService'][_0x2c04fb(0x3f3)](_0x3cbf71,_0x11eb01,!0x1),_0x2f7193=this['_transformService'][_0x2c04fb(0x3f3)](_0x2bd887,_0x4ed04e,!0x1);if(_0x1ce1f5['isTransformMutationFailure'](_0x48834e))throw _0x48834e['error'];if(_0x1ce1f5[_0x2c04fb(0x1f0)](_0x2f7193))throw _0x2f7193['error'];_0x53fd1e['unshift'](_0x48834e[_0x2c04fb(0x20b)][_0x2c04fb(0x1c6)]),_0x50a03f['unshift'](_0x2f7193[_0x2c04fb(0x20b)][_0x2c04fb(0x1c6)]),_0x3cbf71=_0x48834e[_0x2c04fb(0x2b6)],_0x2bd887=_0x2f7193[_0x2c04fb(0x2b6)];}_0xb89c22['setUndoRedoMutationParamsCache']({'undoCache':_0x53fd1e,'redoCache':_0x50a03f});}[_0x7974a5(0x2d7)](_0x335729){const _0x430e25=_0x7974a5,{unitID:_0x17846b}=_0x335729,_0x4607ba=this[_0x430e25(0x1da)][_0x430e25(0x247)](_0x17846b)[_0x430e25(0x393)](_0x8a01fe[_0x430e25(0x2f4)]),_0x3d6dda=_0x4607ba['getActiveRange']();if(_0x3d6dda==null)return;const _0xc5c095=[{'id':_0x430e25(0x235),'params':{'unitId':_0x335729[_0x430e25(0x36c)],'actions':null,'textRanges':[_0x3d6dda]}}],_0x3c86b2=this['_transformService'][_0x430e25(0x256)](_0x335729,_0xc5c095);if(!_0x1ce1f5[_0x430e25(0x35d)](_0x3c86b2))throw _0x3c86b2['error'];const _0x549c41=_0x3c86b2[_0x430e25(0x20b)][0x0][_0x430e25(0x1c6)][_0x430e25(0x24d)];Array[_0x430e25(0x266)](_0x549c41)&&_0x549c41['length']&&_0x4607ba[_0x430e25(0x349)](_0x549c41[0x0]);}};_0x1114a8=_0x4e71c9([_0x49ebc0(0x0,_0x40dd79[_0x7974a5(0x3ba)](_0x40dd79['Injector'])),_0x49ebc0(0x1,_0x1ce1f5['ITransformService']),_0x49ebc0(0x2,_0x23b118[_0x7974a5(0x1a5)])],_0x1114a8);var _0x589eb7=Object[_0x7974a5(0x2d6)],_0x4952d0=(_0x590b2c,_0x529721,_0x5f016a,_0x50f838)=>{for(var _0x5ac155=_0x50f838>0x1?void 0x0:_0x50f838?_0x589eb7(_0x529721,_0x5f016a):_0x529721,_0x5bef69=_0x590b2c['length']-0x1,_0x14f0b7;_0x5bef69>=0x0;_0x5bef69--)(_0x14f0b7=_0x590b2c[_0x5bef69])&&(_0x5ac155=_0x14f0b7(_0x5ac155)||_0x5ac155);return _0x5ac155;},_0x3c1c8a=(_0x9914b1,_0xe34399)=>(_0x5c2221,_0x364047)=>_0xe34399(_0x5c2221,_0x364047,_0x9914b1);let _0x4e47d2=class{constructor(_0x324fc1,_0x715c3,_0x1e9937){const _0x550596=_0x7974a5;this[_0x550596(0x1a3)]=_0x324fc1,this[_0x550596(0x388)]=_0x715c3,this[_0x550596(0x2d2)]=_0x1e9937;}[_0x7974a5(0x323)](_0x38dce7){const _0x6eaf53=_0x7974a5;this[_0x6eaf53(0x196)](_0x38dce7);}[_0x7974a5(0x2cf)](_0x5a7c1c){const _0x53e8b0=_0x7974a5,{unitID:_0x330cbb}=_0x5a7c1c,{collaboration:_0x5b1a18}=this[_0x53e8b0(0x2d2)][_0x53e8b0(0x1f3)](_0x330cbb);if(_0x5b1a18[_0x53e8b0(0x2c2)]===0x0)return _0x5a7c1c;let _0x48e2da=_0x40dd79['Tools'][_0x53e8b0(0x3cf)](_0x5a7c1c['mutations'][0x0]);for(let _0x5383f6=0x0;_0x5383f6<_0x5b1a18['length'];_0x5383f6++){const _0x383176={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5b1a18[_0x5383f6][_0x53e8b0(0x1ae)],..._0x5b1a18[_0x5383f6][_0x53e8b0(0x210)]}},_0x52323f=this['_transformService'][_0x53e8b0(0x3f3)](_0x48e2da,_0x383176,!0x1);if(_0x1ce1f5['isTransformMutationFailure'](_0x52323f))throw _0x52323f[_0x53e8b0(0x242)];_0x48e2da=_0x52323f[_0x53e8b0(0x2b6)];}return{..._0x40dd79['Tools'][_0x53e8b0(0x3cf)](_0x5a7c1c),'mutations':[_0x48e2da]};}[_0x7974a5(0x196)](_0x5dd6b8){const _0x26bfc9=_0x7974a5,{unitID:_0xd28fa5}=_0x5dd6b8,{history:_0x232eb8,collaboration:_0x41d1fc}=this[_0x26bfc9(0x2d2)][_0x26bfc9(0x1f3)](_0xd28fa5);if(_0x232eb8['length']===0x0&&_0x41d1fc[_0x26bfc9(0x2c2)]===0x0)return;const _0x3b73c4=[],_0x5ef16d=[];let _0x162f99=_0x40dd79[_0x26bfc9(0x224)][_0x26bfc9(0x3cf)](_0x5dd6b8['mutations'][0x0]),_0x455e4e=_0x40dd79[_0x26bfc9(0x224)][_0x26bfc9(0x3cf)](_0x5dd6b8[_0x26bfc9(0x202)][0x0]);for(let _0x3b1a71=_0x232eb8[_0x26bfc9(0x2c2)]-0x1;_0x3b1a71>=0x0;_0x3b1a71--){const _0x790f7f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x232eb8[_0x3b1a71][_0x26bfc9(0x1ae)],..._0x232eb8[_0x3b1a71]['undoState']}},_0x2600bb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x232eb8[_0x3b1a71][_0x26bfc9(0x1ae)],..._0x232eb8[_0x3b1a71][_0x26bfc9(0x210)]}},_0x1a6f28=this[_0x26bfc9(0x388)][_0x26bfc9(0x3f3)](_0x162f99,_0x790f7f,!0x1),_0x1f4766=this[_0x26bfc9(0x388)][_0x26bfc9(0x3f3)](_0x455e4e,_0x2600bb,!0x1);if(_0x1ce1f5[_0x26bfc9(0x1f0)](_0x1a6f28))throw _0x1a6f28['error'];if(_0x1ce1f5[_0x26bfc9(0x1f0)](_0x1f4766))throw _0x1f4766[_0x26bfc9(0x242)];_0x3b73c4[_0x26bfc9(0x3c5)]({..._0x232eb8[_0x3b1a71],'undoState':_0x1a6f28[_0x26bfc9(0x20b)][_0x26bfc9(0x1c6)],'redoState':_0x1f4766[_0x26bfc9(0x20b)][_0x26bfc9(0x1c6)]}),_0x162f99=_0x1a6f28[_0x26bfc9(0x2b6)],_0x455e4e=_0x1f4766[_0x26bfc9(0x2b6)];}_0x162f99=_0x40dd79[_0x26bfc9(0x224)][_0x26bfc9(0x3cf)](_0x5dd6b8[_0x26bfc9(0x202)][0x0]),_0x455e4e=_0x40dd79[_0x26bfc9(0x224)][_0x26bfc9(0x3cf)](_0x5dd6b8[_0x26bfc9(0x202)][0x0]);for(let _0x2ab9b8=_0x41d1fc['length']-0x1;_0x2ab9b8>=0x0;_0x2ab9b8--){const _0x274bce={'id':_0x26bfc9(0x235),'params':{'unitId':_0x41d1fc[_0x2ab9b8]['unitId'],..._0x41d1fc[_0x2ab9b8]['undoState']}},_0x2acd6={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x41d1fc[_0x2ab9b8][_0x26bfc9(0x1ae)],..._0x41d1fc[_0x2ab9b8][_0x26bfc9(0x210)]}},_0x185b4f=this[_0x26bfc9(0x388)][_0x26bfc9(0x3f3)](_0x162f99,_0x274bce,!0x1),_0x220cc2=this[_0x26bfc9(0x388)][_0x26bfc9(0x3f3)](_0x455e4e,_0x2acd6,!0x1);if(_0x1ce1f5[_0x26bfc9(0x1f0)](_0x185b4f))throw _0x185b4f['error'];if(_0x1ce1f5['isTransformMutationFailure'](_0x220cc2))throw _0x220cc2[_0x26bfc9(0x242)];_0x5ef16d['unshift']({..._0x41d1fc[_0x2ab9b8],'undoState':_0x185b4f[_0x26bfc9(0x20b)][_0x26bfc9(0x1c6)],'redoState':_0x220cc2[_0x26bfc9(0x20b)][_0x26bfc9(0x1c6)]}),_0x162f99=_0x185b4f[_0x26bfc9(0x2b6)],_0x455e4e=_0x220cc2['m1Prime'];}this[_0x26bfc9(0x2d2)]['setStateCache'](_0xd28fa5,{'history':_0x3b73c4,'collaboration':_0x5ef16d});}};_0x4e47d2=_0x4952d0([_0x3c1c8a(0x0,_0x40dd79[_0x7974a5(0x3ba)](_0x40dd79['Injector'])),_0x3c1c8a(0x1,_0x1ce1f5['ITransformService']),_0x3c1c8a(0x2,_0x40dd79[_0x7974a5(0x3ba)](_0x8a01fe[_0x7974a5(0x387)]))],_0x4e47d2);var _0x4a93fa=Object['getOwnPropertyDescriptor'],_0x175458=(_0x3ebf8a,_0x3af83a,_0x2f9585,_0x537895)=>{const _0x313fb2=_0x7974a5;for(var _0x186bf4=_0x537895>0x1?void 0x0:_0x537895?_0x4a93fa(_0x3af83a,_0x2f9585):_0x3af83a,_0x44791c=_0x3ebf8a[_0x313fb2(0x2c2)]-0x1,_0x319567;_0x44791c>=0x0;_0x44791c--)(_0x319567=_0x3ebf8a[_0x44791c])&&(_0x186bf4=_0x319567(_0x186bf4)||_0x186bf4);return _0x186bf4;},_0x3d5db7=(_0xfc46c0,_0x17d1bc)=>(_0x2e5401,_0x434254)=>_0x17d1bc(_0x2e5401,_0x434254,_0xfc46c0);let _0x171ca9=class{constructor(_0x82cbf4,_0x19f5e7){const _0x3e207b=_0x7974a5;this[_0x3e207b(0x1a3)]=_0x82cbf4,this[_0x3e207b(0x388)]=_0x19f5e7;}[_0x7974a5(0x2a7)](_0x20a9da){const _0x5ed8b5=_0x7974a5;var _0x1af929;const _0x269c79=this[_0x5ed8b5(0x1a3)]['get'](_0x2cdbc3['DocSelectionManagerService']),_0x556060=(_0x1af929=_0x269c79[_0x5ed8b5(0x1c5)]())!=null?_0x1af929:[];if(_0x556060['length']===0x0)return;const _0x3e8402=_0x20a9da[_0x5ed8b5(0x36c)],_0x6428df=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3e8402,'actions':null,'textRanges':_0x556060}}],_0x3daa76=this[_0x5ed8b5(0x388)][_0x5ed8b5(0x256)](_0x20a9da,_0x6428df);if(!_0x1ce1f5[_0x5ed8b5(0x35d)](_0x3daa76))throw _0x3daa76[_0x5ed8b5(0x242)];const _0x2ed243=_0x3daa76[_0x5ed8b5(0x20b)][0x0][_0x5ed8b5(0x1c6)][_0x5ed8b5(0x24d)];Array[_0x5ed8b5(0x266)](_0x2ed243)&&_0x2ed243[_0x5ed8b5(0x2c2)]&&_0x269c79[_0x5ed8b5(0x1b3)](_0x2ed243,{'unitId':_0x3e8402,'subUnitId':_0x3e8402},!0x1);}};_0x171ca9=_0x175458([_0x3d5db7(0x0,_0x40dd79[_0x7974a5(0x3ba)](_0x40dd79[_0x7974a5(0x26c)])),_0x3d5db7(0x1,_0x1ce1f5[_0x7974a5(0x2ea)])],_0x171ca9);var _0x346bcf=Object[_0x7974a5(0x2d6)],_0x8bbf88=(_0x178db7,_0x856607,_0x2290e0,_0x2f1255)=>{const _0x13e8c7=_0x7974a5;for(var _0x509235=_0x2f1255>0x1?void 0x0:_0x2f1255?_0x346bcf(_0x856607,_0x2290e0):_0x856607,_0x5dde82=_0x178db7[_0x13e8c7(0x2c2)]-0x1,_0x35c809;_0x5dde82>=0x0;_0x5dde82--)(_0x35c809=_0x178db7[_0x5dde82])&&(_0x509235=_0x35c809(_0x509235)||_0x509235);return _0x509235;},_0x5b5725=(_0x12176e,_0x3a17b5)=>(_0x425fa2,_0x40835b)=>_0x3a17b5(_0x425fa2,_0x40835b,_0x12176e);let _0x581196=class extends _0x40dd79[_0x7974a5(0x2f0)]{constructor(_0x433ef3,_0xfd5ddb,_0x4bbca9,_0x5406c6,_0xa3ab8d,_0x5f0d41,_0x4296f8,_0x99db47){const _0xc8009d=_0x7974a5;super(),_0x5e0e83(this,_0xc8009d(0x20d),new _0x9482a0[(_0xc8009d(0x369))](_0x3ce651[_0xc8009d(0x1b7)]['NOT_COLLAB'])),(this[_0xc8009d(0x2d2)]=_0x433ef3,this['_collaborationController']=_0xfd5ddb,this['_docTransformIMECacheService']=_0x4bbca9,this[_0xc8009d(0x23a)]=_0x5406c6,this[_0xc8009d(0x401)]=_0xa3ab8d,this[_0xc8009d(0x31b)]=_0x5f0d41,this['_messageService']=_0x4296f8,this[_0xc8009d(0x19a)]=_0x99db47,this[_0xc8009d(0x1fa)]());}[_0x7974a5(0x1fa)](){const _0x3008e0=_0x7974a5;this[_0x3008e0(0x3a5)](this['_collaborationController']['entityInit$'][_0x3008e0(0x37b)](_0x262f75=>{const _0x35f9ea=_0x3008e0,_0x13db39=this[_0x35f9ea(0x2d2)][_0x35f9ea(0x3ae)][_0x35f9ea(0x37b)](_0x3562a2=>{const _0x40b256=_0x35f9ea;if(_0x3562a2==null)return;const {unitId:_0x1c09c6,redoState:_0x2de6e1,commandId:_0x211732}=_0x3562a2;if(_0x1c09c6!==_0x262f75[_0x40b256(0x36c)])return;const _0x4a684a={'id':_0x211732,'type':_0x40dd79['CommandType']['MUTATION'],'params':{'unitId':_0x1c09c6,'actions':_0x2de6e1[_0x40b256(0x1e9)],'textRanges':null}};_0x262f75[_0x40b256(0x1a4)](_0x4a684a);});if(_0x262f75[_0x35f9ea(0x3a5)](_0x13db39),_0x262f75 instanceof _0x3ce651[_0x35f9ea(0x306)]){const _0x4d68a6={'onTransformIME':_0x8040d4=>this['_docTransformIMECacheService'][_0x35f9ea(0x333)](_0x8040d4),'onTransformState':_0x437cd9=>this[_0x35f9ea(0x23a)]['transformStateCache'](_0x437cd9),'onTransformSelections':_0x29bffd=>this[_0x35f9ea(0x401)][_0x35f9ea(0x2a7)](_0x29bffd),'onSyncEditingCollabCursor':_0xba9454=>this[_0x35f9ea(0x31b)][_0x35f9ea(0x1d2)](_0xba9454),'onTransformRemoteChangesetByIMECache':_0x5d1a1e=>this[_0x35f9ea(0x240)][_0x35f9ea(0x2cf)](_0x5d1a1e),'onTransformRemoteChangesetByStateCache':_0x51c38f=>this[_0x35f9ea(0x23a)][_0x35f9ea(0x2cf)](_0x51c38f)};_0x262f75[_0x35f9ea(0x3c2)](_0x4d68a6);}}));}};_0x581196=_0x8bbf88([_0x5b5725(0x0,_0x40dd79[_0x7974a5(0x3ba)](_0x8a01fe[_0x7974a5(0x387)])),_0x5b5725(0x1,_0x40dd79[_0x7974a5(0x3ba)](_0x3ce651[_0x7974a5(0x334)])),_0x5b5725(0x2,_0x40dd79[_0x7974a5(0x3ba)](_0x1114a8)),_0x5b5725(0x3,_0x40dd79['Inject'](_0x4e47d2)),_0x5b5725(0x4,_0x40dd79[_0x7974a5(0x3ba)](_0x171ca9)),_0x5b5725(0x5,_0x40dd79['Inject'](_0x5c434f)),_0x5b5725(0x6,_0x3117be[_0x7974a5(0x3d8)]),_0x5b5725(0x7,_0x40dd79[_0x7974a5(0x3ba)](_0x40dd79[_0x7974a5(0x3e0)]))],_0x581196);var _0x3a5c8e=Object[_0x7974a5(0x2d6)],_0x3f4606=(_0x30c403,_0x26bad4,_0x4c4334,_0x4d58cb)=>{const _0x31d818=_0x7974a5;for(var _0x17d353=_0x4d58cb>0x1?void 0x0:_0x4d58cb?_0x3a5c8e(_0x26bad4,_0x4c4334):_0x26bad4,_0x544e35=_0x30c403[_0x31d818(0x2c2)]-0x1,_0x25e58a;_0x544e35>=0x0;_0x544e35--)(_0x25e58a=_0x30c403[_0x544e35])&&(_0x17d353=_0x25e58a(_0x17d353)||_0x17d353);return _0x17d353;},_0x23f886=(_0x132449,_0x30d4cf)=>(_0xf255c,_0x2f00ee)=>_0x30d4cf(_0xf255c,_0x2f00ee,_0x132449);let _0x7a7e0a=class extends _0x40dd79[_0x7974a5(0x2f0)]{constructor(_0x72a498,_0x3e4423,_0x347b68){const _0x4a1d57=_0x7974a5;super(),_0x5e0e83(this,_0x4a1d57(0x246),new Map()),_0x5e0e83(this,_0x4a1d57(0x2e2),new Map()),_0x5e0e83(this,_0x4a1d57(0x19b),!0x1),(this['_configService']=_0x72a498,this[_0x4a1d57(0x406)]=_0x3e4423,this[_0x4a1d57(0x3b3)]=_0x347b68);}[_0x7974a5(0x231)](){const _0x31ac27=_0x7974a5;this[_0x31ac27(0x19b)]=!0x0;}[_0x7974a5(0x25f)](){const _0x4cbafd=_0x7974a5;this[_0x4cbafd(0x19b)]=!0x1;}get[_0x7974a5(0x229)](){return this['_saveTaskMap'];}[_0x7974a5(0x232)](){const _0x117f6b=_0x7974a5;this[_0x117f6b(0x3d0)]()[_0x117f6b(0x1ec)](()=>super[_0x117f6b(0x232)]());}async[_0x7974a5(0x197)](_0x4463c1){const _0x4d7954=_0x7974a5;return this[_0x4d7954(0x19b)]?null:this[_0x4d7954(0x406)][_0x4d7954(0x412)](_0x3ce651[_0x4d7954(0x38c)](_0x4463c1));}async[_0x7974a5(0x400)](_0xa2b4fb,_0x45d843){const _0x39f540=_0x7974a5;return!!this[_0x39f540(0x406)]['setItem'](_0xa2b4fb,_0x45d843);}[_0x7974a5(0x32b)](_0x3513c8,_0x4c7187,_0x1f1b75,_0x72c3e5){const _0x17dc94=_0x7974a5,_0x9c526=this[_0x17dc94(0x3b3)][_0x17dc94(0x272)](_0x3513c8);this['_cachedData'][_0x17dc94(0x22d)](_0x3513c8,{'unitID':_0x3513c8,'type':_0x4c7187,'awaitingChangeset':_0x1f1b75,'mutations':_0x72c3e5,'rev':_0x9c526}),this[_0x17dc94(0x2e2)]['has'](_0x3513c8)||this[_0x17dc94(0x414)](_0x3513c8);}[_0x7974a5(0x414)](_0x4b0102){const _0x501b41=_0x7974a5,_0x18595f=this[_0x501b41(0x18f)]();_0x18595f===0x0?this[_0x501b41(0x275)](_0x4b0102):this[_0x501b41(0x2e2)][_0x501b41(0x22d)](_0x4b0102,setTimeout(()=>this[_0x501b41(0x275)](_0x4b0102),_0x18595f));}[_0x7974a5(0x18f)](){const _0x10e9d3=_0x7974a5;var _0x1fcf79;return(_0x1fcf79=this['_configService'][_0x10e9d3(0x243)](_0x3ce651[_0x10e9d3(0x3cc)]))!=null?_0x1fcf79:_0x3ce651['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0x15635b){const _0x40e584=_0x7974a5,_0x1547d7=this['_saveTaskMap'][_0x40e584(0x25e)](_0x15635b);return _0x1547d7!==void 0x0&&window['clearTimeout'](_0x1547d7),this[_0x40e584(0x406)][_0x40e584(0x2be)](_0x3ce651[_0x40e584(0x38c)](_0x15635b),this[_0x40e584(0x246)][_0x40e584(0x25e)](_0x15635b))['then'](()=>this[_0x40e584(0x2e2)][_0x40e584(0x3d3)](_0x15635b));}async[_0x7974a5(0x3d0)](){const _0x2d3bb1=_0x7974a5,_0x1850c7=[];this[_0x2d3bb1(0x2e2)]['forEach']((_0x49c935,_0x1845a7)=>{const _0x5e8fa0=_0x2d3bb1;window[_0x5e8fa0(0x1a1)](_0x49c935),_0x1850c7[_0x5e8fa0(0x276)](this[_0x5e8fa0(0x275)](_0x1845a7)[_0x5e8fa0(0x1ec)](()=>{const _0x55649a=_0x5e8fa0;this[_0x55649a(0x2e2)]['delete'](_0x1845a7);}));}),await Promise['all'](_0x1850c7);}};_0x7a7e0a=_0x3f4606([_0x23f886(0x0,_0x40dd79[_0x7974a5(0x21d)]),_0x23f886(0x1,_0x40dd79[_0x7974a5(0x3bd)]),_0x23f886(0x2,_0x40dd79[_0x7974a5(0x3ba)](_0x1ce1f5[_0x7974a5(0x3cd)]))],_0x7a7e0a);class _0xbc9c0f extends _0x40dd79['RxDisposable']{constructor(){const _0x1eafda=_0x7974a5;super(),_0x5e0e83(this,_0x1eafda(0x30b)),this[_0x1eafda(0x30b)]=_0x9482a0['fromEvent'](window,_0x1eafda(0x291))[_0x1eafda(0x3b4)](_0x9482a0[_0x1eafda(0x18e)](this['dispose$']),_0x9482a0[_0x1eafda(0x410)](0x1),_0x9482a0[_0x1eafda(0x1fc)](void 0x0));}[_0x7974a5(0x308)](_0x152f97,_0x24004a,_0xa81524=!0x1){const _0x13f4df=_0x7974a5,_0x2a49c6=new URL(window[_0x13f4df(0x3e9)]['href']);_0x2a49c6['searchParams'][_0x13f4df(0x22d)](_0x152f97,_0x24004a),_0xa81524?window['history']['replaceState']('','',_0x2a49c6[_0x13f4df(0x344)]()):window[_0x13f4df(0x2b5)][_0x13f4df(0x2fc)]('','',_0x2a49c6[_0x13f4df(0x344)]());}[_0x7974a5(0x3f7)](_0x5dc2b2,_0x54715f=!0x1){const _0x4f3c7d=_0x7974a5,_0x46626e=new URL(window[_0x4f3c7d(0x3e9)][_0x4f3c7d(0x1e4)]);_0x46626e['searchParams'][_0x4f3c7d(0x3d3)](_0x5dc2b2),_0x54715f?window[_0x4f3c7d(0x2b5)]['replaceState']('','',_0x46626e['toString']()):window[_0x4f3c7d(0x2b5)][_0x4f3c7d(0x2fc)]('','',_0x46626e[_0x4f3c7d(0x344)]());}[_0x7974a5(0x218)](_0x5de1a5){const _0x3f5f9b=_0x7974a5;var _0x4c5575;return(_0x4c5575=new URL(window['location']['href'])[_0x3f5f9b(0x290)][_0x3f5f9b(0x25e)](_0x5de1a5))!=null?_0x4c5575:void 0x0;}}var _0xd6bb71=Object[_0x7974a5(0x20f)],_0x1b831e=Object[_0x7974a5(0x2d6)],_0x18fa1d=(_0x1c0398,_0x3e251c,_0x3ad910)=>_0x3e251c in _0x1c0398?_0xd6bb71(_0x1c0398,_0x3e251c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ad910}):_0x1c0398[_0x3e251c]=_0x3ad910,_0x1e26e6=(_0x4286f6,_0x53a954,_0xece4ee,_0x57d7c0)=>{for(var _0x513626=_0x57d7c0>0x1?void 0x0:_0x57d7c0?_0x1b831e(_0x53a954,_0xece4ee):_0x53a954,_0x13f157=_0x4286f6['length']-0x1,_0x419f6d;_0x13f157>=0x0;_0x13f157--)(_0x419f6d=_0x4286f6[_0x13f157])&&(_0x513626=_0x419f6d(_0x513626)||_0x513626);return _0x513626;},_0x32b14b=(_0x512bc6,_0x29d07d)=>(_0x39b769,_0x7fd86)=>_0x29d07d(_0x39b769,_0x7fd86,_0x512bc6),_0x516190=(_0x23569c,_0x2a8bc6,_0x35ef9e)=>_0x18fa1d(_0x23569c,_0x2a8bc6+'',_0x35ef9e);const _0x4469b5=_0x7974a5(0x356);_0xa6a46a[_0x7974a5(0x3d7)]=class extends _0x40dd79[_0x7974a5(0x270)]{constructor(_0x3a0040=_0x39d793,_0x4574e2,_0xa7f264,_0x18e3b2){const _0x2cc513=_0x7974a5;super(),this[_0x2cc513(0x198)]=_0x3a0040,this['_renderManagerService']=_0x4574e2,this[_0x2cc513(0x1a3)]=_0xa7f264,this[_0x2cc513(0x365)]=_0x18e3b2;const {..._0x4f323e}=_0x40dd79[_0x2cc513(0x3fd)]({},_0x39d793,this[_0x2cc513(0x198)]);this[_0x2cc513(0x365)][_0x2cc513(0x3f2)](_0x3b5105,_0x4f323e);}[_0x7974a5(0x208)](){const _0x43dbfc=_0x7974a5;this[_0x43dbfc(0x2f3)](),this[_0x43dbfc(0x216)]();}[_0x7974a5(0x395)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x553d51=_0x7974a5;var _0x155da2;const _0x223b7c=[[_0x49dcd2],[_0x171ca9],[_0x1114a8],[_0x4e47d2],[_0x5c434f],[_0x1ccfa8,{'useClass':_0xbc9c0f}],[_0x5ca998[_0x553d51(0x302)],{'useClass':_0x5ca998[_0x553d51(0x32c)]}],[_0x3ce651['ILocalCacheService'],{'useClass':_0x7a7e0a}],[_0xa6a46a['DesktopCollaborationStatusDisplayController']],[_0x581196],[_0x3f925c],[_0x1290a9],[_0x350338],[_0xa6a46a[_0x553d51(0x35f)]]];_0x40dd79[_0x553d51(0x1d3)](this[_0x553d51(0x1a3)],_0x40dd79[_0x553d51(0x1f1)](_0x223b7c,(_0x155da2=this[_0x553d51(0x198)])==null?void 0x0:_0x155da2[_0x553d51(0x326)]));}['_registerRenderDependencies'](){const _0x217bf7=_0x7974a5;this[_0x217bf7(0x3a5)](this[_0x217bf7(0x1da)][_0x217bf7(0x2ad)](_0x40dd79['UniverInstanceType'][_0x217bf7(0x39f)],[_0x12ef7f])),this[_0x217bf7(0x3a5)](this[_0x217bf7(0x1da)][_0x217bf7(0x2ad)](_0x40dd79['UniverInstanceType']['UNIVER_SHEET'],[_0x433749]));}[_0x7974a5(0x216)](){const _0x4f7d39=_0x7974a5;_0x40dd79['touchDependencies'](this['_injector'],[[_0x1290a9],[_0xa6a46a['DesktopCollaborationStatusDisplayController']],[_0x581196],[_0x3f925c],[_0xa6a46a[_0x4f7d39(0x35f)]]]);}},_0x516190(_0xa6a46a[_0x7974a5(0x3d7)],_0x7974a5(0x2f1),_0x4469b5),_0xa6a46a[_0x7974a5(0x3d7)]=_0x1e26e6([_0x40dd79['DependentOn'](_0x3ce651[_0x7974a5(0x262)]),_0x32b14b(0x1,_0x23b118[_0x7974a5(0x1a5)]),_0x32b14b(0x2,_0x40dd79[_0x7974a5(0x3ba)](_0x40dd79['Injector'])),_0x32b14b(0x3,_0x40dd79['IConfigService'])],_0xa6a46a['UniverCollaborationClientUIPlugin']);var _0x18566f=Object[_0x7974a5(0x2d6)],_0xae8c1b=(_0x1646d2,_0x5c2811,_0x2fa7cb,_0x3d46ae)=>{const _0x956e2=_0x7974a5;for(var _0x592000=_0x3d46ae>0x1?void 0x0:_0x3d46ae?_0x18566f(_0x5c2811,_0x2fa7cb):_0x5c2811,_0x54d7bf=_0x1646d2[_0x956e2(0x2c2)]-0x1,_0x38bc81;_0x54d7bf>=0x0;_0x54d7bf--)(_0x38bc81=_0x1646d2[_0x54d7bf])&&(_0x592000=_0x38bc81(_0x592000)||_0x592000);return _0x592000;},_0x16df6a=(_0x55f8f8,_0x3d8b2e)=>(_0x283d84,_0x10d32e)=>_0x3d8b2e(_0x283d84,_0x10d32e,_0x55f8f8);_0xa6a46a[_0x7974a5(0x358)]=class extends _0x3ce651['CollaborationSocketService']{constructor(_0x2170af,_0x442bee,_0x1863a4,_0x2a9f1f,_0x4bbf83){super(_0x2170af,_0x442bee,_0x1863a4,_0x2a9f1f,_0x4bbf83);}async[_0x7974a5(0x2ff)](_0x50798b){const _0x7958e6=_0x7974a5,_0x53ba1e=await this[_0x7958e6(0x364)](),_0x5c60a9=this[_0x7958e6(0x3be)](_0x50798b,_0x53ba1e);return this[_0x7958e6(0x1b5)](_0x5c60a9);}[_0x7974a5(0x3be)](_0x3c2fdd,_0x16709e){const _0x1e1a8a=_0x7974a5,_0x25439e=typeof window>'u'?new URL(_0x3c2fdd):new URL(_0x3c2fdd,window[_0x1e1a8a(0x3e9)]['origin']);_0x25439e[_0x1e1a8a(0x290)][_0x1e1a8a(0x22d)](_0x1e1a8a(0x375),_0x16709e);const _0x27e27c=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location']['search']);return _0x27e27c[_0x1e1a8a(0x25e)](_0x1e1a8a(0x1bf))&&_0x25439e[_0x1e1a8a(0x290)][_0x1e1a8a(0x22d)](_0x1e1a8a(0x1bf),_0x27e27c[_0x1e1a8a(0x25e)](_0x1e1a8a(0x1bf))),_0x25439e[_0x1e1a8a(0x344)]();}async[_0x7974a5(0x364)](){const _0x35d606=_0x7974a5;var _0x4b4c91,_0x14d77a,_0x4c2eb2;const _0x2d6056=this[_0x35d606(0x365)][_0x35d606(0x243)](_0x3ce651[_0x35d606(0x29e)]),_0x314ce2=(_0x4b4c91=_0x2d6056==null?void 0x0:_0x2d6056[_0x35d606(0x305)])!=null?_0x4b4c91:_0x3ce651['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x4c2eb2=(_0x14d77a=(await this['_httpService'][_0x35d606(0x25e)](_0x314ce2,{'headers':{'Content-Type':_0x35d606(0x2e7)}}))[_0x35d606(0x360)])==null?void 0x0:_0x14d77a['ticket'])!=null?_0x4c2eb2:'';}},_0xa6a46a[_0x7974a5(0x358)]=_0xae8c1b([_0x16df6a(0x0,_0x40dd79['Inject'](_0x40dd79[_0x7974a5(0x26c)])),_0x16df6a(0x1,_0x40dd79['Inject'](_0x5ca998['HTTPService'])),_0x16df6a(0x2,_0x40dd79[_0x7974a5(0x21d)]),_0x16df6a(0x3,_0x40dd79[_0x7974a5(0x1b8)]),_0x16df6a(0x4,_0x1ce1f5[_0x7974a5(0x203)])],_0xa6a46a['BrowserCollaborationSocketService']);const _0x5664c9=0x7530,_0x3825ec=_0x7974a5(0x1bb);class _0x5b15b7 extends _0x40dd79[_0x7974a5(0x2f0)]{constructor(){const _0xa2a8f=_0x7974a5;super(),_0x5e0e83(this,'_id',_0x40dd79[_0xa2a8f(0x267)]()),_0x5e0e83(this,_0xa2a8f(0x269),new Set()),_0x5e0e83(this,'_unitOnClients',new Map()),_0x5e0e83(this,_0xa2a8f(0x33d),null),_0x5e0e83(this,'_clearOtherTimers',new Map()),_0x5e0e83(this,_0xa2a8f(0x367),new Map()),this[_0xa2a8f(0x40c)]();}[_0x7974a5(0x232)](){const _0x1679bc=_0x7974a5;super['dispose'](),this['_clearOtherTimers'][_0x1679bc(0x22a)]((_0x415a49,_0x3c495d)=>this['_removeClearOtherTimer'](_0x3c495d)),this[_0x1679bc(0x33d)]&&window[_0x1679bc(0x3f6)](this['_heartbeatTimer']);}[_0x7974a5(0x2f2)](_0x5506bb){const _0x51d9db=_0x7974a5;return this[_0x51d9db(0x3b2)](_0x5506bb)['pipe'](_0x9482a0[_0x51d9db(0x27b)]());}[_0x7974a5(0x2f5)](_0x54a668){const _0x23e1a1=_0x7974a5;this[_0x23e1a1(0x269)][_0x23e1a1(0x30c)]===0x0&&this[_0x23e1a1(0x2c1)](),this['_selfUnitIDs'][_0x23e1a1(0x18b)](_0x54a668),this[_0x23e1a1(0x386)]({'type':0x0,'memberID':this[_0x23e1a1(0x23c)],'unitIDs':[_0x54a668],'isForwarded':!0x1});}[_0x7974a5(0x1a0)](_0x26f6fe){const _0x2358b4=_0x7974a5;this['_selfUnitIDs']['delete'](_0x26f6fe),this[_0x2358b4(0x269)][_0x2358b4(0x30c)]===0x0&&this['_heartbeatTimer']&&window[_0x2358b4(0x3f6)](this[_0x2358b4(0x33d)]);}['_init'](){const _0x4fd5b8=_0x7974a5;this[_0x4fd5b8(0x3a5)](_0x40dd79[_0x4fd5b8(0x2db)](_0x9482a0['fromEvent'](window,'storage')[_0x4fd5b8(0x37b)](_0x495241=>{const _0x2be84c=_0x4fd5b8;if(_0x495241[_0x2be84c(0x1e0)]!==_0x3825ec||!_0x495241[_0x2be84c(0x204)])return;const _0x13e379=JSON[_0x2be84c(0x1cc)](_0x495241[_0x2be84c(0x204)]);this['_handleEvent'](_0x13e379);}))),window[_0x4fd5b8(0x304)](_0x4fd5b8(0x337),()=>this['_send']({'type':0x1,'memberID':this[_0x4fd5b8(0x23c)],'unitIDs':Array['from'](this[_0x4fd5b8(0x269)])}));}['_handleEvent'](_0x14b63c){const _0x5ec75a=_0x7974a5;switch(_0x14b63c[_0x5ec75a(0x1a8)]){case 0x0:this[_0x5ec75a(0x26e)](_0x14b63c);break;case 0x1:this['_handleLeaveEvent'](_0x14b63c);break;case 0x2:this[_0x5ec75a(0x2a2)](_0x14b63c);break;}}[_0x7974a5(0x26e)](_0x557efd){const _0x4171eb=_0x7974a5,{unitIDs:_0x3d3fb9,memberID:_0x2da694,isForwarded:_0x13f5e8}=_0x557efd;_0x3d3fb9[_0x4171eb(0x22a)](_0x87271c=>{const _0x3b66c9=_0x4171eb;if(!_0x13f5e8&&this[_0x3b66c9(0x3eb)]['has'](_0x87271c)&&this[_0x3b66c9(0x3b2)](_0x87271c)[_0x3b66c9(0x413)](_0x3ce651['UnitStatus']['OTHER_CLIENTS_EDITING']),!this[_0x3b66c9(0x3eb)][_0x3b66c9(0x37c)](_0x87271c)||!this[_0x3b66c9(0x3eb)]['get'](_0x87271c)[_0x3b66c9(0x37c)](_0x2da694)){const _0x2c6a18=this[_0x3b66c9(0x3eb)][_0x3b66c9(0x25e)](_0x87271c)||new Set();_0x2c6a18[_0x3b66c9(0x18b)](_0x2da694),this[_0x3b66c9(0x3eb)][_0x3b66c9(0x22d)](_0x87271c,_0x2c6a18),this[_0x3b66c9(0x3a8)](_0x2da694);}}),_0x13f5e8||this[_0x4171eb(0x386)]({'type':0x0,'memberID':this[_0x4171eb(0x23c)],'unitIDs':[...this[_0x4171eb(0x269)]],'isForwarded':!0x0});}[_0x7974a5(0x3a8)](_0x3a84ea){const _0x5154d4=_0x7974a5;this[_0x5154d4(0x32e)](_0x3a84ea);const _0x55b54d=window[_0x5154d4(0x263)](()=>{const _0x4d688e=_0x5154d4;this[_0x4d688e(0x3eb)]['forEach'](_0x2a2c64=>{const _0x5f3730=_0x4d688e;_0x2a2c64[_0x5f3730(0x3d3)](_0x3a84ea);});},_0x5664c9*0x2);this[_0x5154d4(0x3dc)]['set'](_0x3a84ea,_0x55b54d);}[_0x7974a5(0x32e)](_0xf32012){const _0x5f1502=_0x7974a5;if(this['_clearOtherTimers']['has'](_0xf32012)){const _0x4f544f=this[_0x5f1502(0x3dc)][_0x5f1502(0x25e)](_0xf32012);_0x4f544f&&window['clearTimeout'](_0x4f544f),this[_0x5f1502(0x3dc)][_0x5f1502(0x22d)](_0xf32012,null);}}[_0x7974a5(0x3d1)](_0x336b88){const _0x59586a=_0x7974a5,{memberID:_0x2620ff,unitIDs:_0x48f206}=_0x336b88;_0x48f206[_0x59586a(0x22a)](_0x47e85c=>{const _0x163899=_0x59586a;var _0x449143;const _0x36bbf2=this[_0x163899(0x3eb)]['get'](_0x47e85c);_0x36bbf2&&(_0x36bbf2[_0x163899(0x3d3)](_0x2620ff),(_0x449143=this[_0x163899(0x3b2)](_0x47e85c))==null||_0x449143[_0x163899(0x413)](_0x36bbf2[_0x163899(0x30c)]===0x0?_0x3ce651[_0x163899(0x42a)]['NO_OTHER_CLIENTS_EDITING']:_0x3ce651['UnitStatus'][_0x163899(0x332)]));}),this[_0x59586a(0x32e)](_0x2620ff);}['_handleHeartbeatEvent'](_0x3d2b13){const _0x5f33f2=_0x7974a5;this[_0x5f33f2(0x3a8)](_0x3d2b13[_0x5f33f2(0x39e)]);}[_0x7974a5(0x386)](_0x5006ef){const _0x17ccdf=_0x7974a5;localStorage['setItem'](_0x3825ec,JSON[_0x17ccdf(0x236)](_0x5006ef));}['_scheduleHeartbeat'](){const _0x734d12=_0x7974a5;this[_0x734d12(0x33d)]=window[_0x734d12(0x421)](()=>{const _0xbe56eb=_0x734d12;this['_send']({'type':0x2,'memberID':this[_0xbe56eb(0x23c)]});},_0x5664c9);}[_0x7974a5(0x3b2)](_0x12a19d){const _0x4a33ae=_0x7974a5;return this[_0x4a33ae(0x367)][_0x4a33ae(0x37c)](_0x12a19d)||this[_0x4a33ae(0x367)][_0x4a33ae(0x22d)](_0x12a19d,new _0x9482a0[(_0x4a33ae(0x369))](_0x3ce651[_0x4a33ae(0x42a)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x4a33ae(0x367)][_0x4a33ae(0x25e)](_0x12a19d);}}var _0x53b6cc=(_0x36ce3a=>(_0x36ce3a[_0x36ce3a['UNDEFINED']=0x0]=_0x7974a5(0x221),_0x36ce3a[_0x36ce3a['OK']=0x1]='OK',_0x36ce3a[_0x36ce3a[_0x7974a5(0x1bc)]=0x2]=_0x7974a5(0x1bc),_0x36ce3a[_0x36ce3a['PERMISSION_DENIED']=0x3]=_0x7974a5(0x3d5),_0x36ce3a[_0x36ce3a[_0x7974a5(0x312)]=0x4]=_0x7974a5(0x312),_0x36ce3a[_0x36ce3a[_0x7974a5(0x2c0)]=0x5]=_0x7974a5(0x2c0),_0x36ce3a[_0x36ce3a[_0x7974a5(0x1e2)]=0x6]=_0x7974a5(0x1e2),_0x36ce3a[_0x36ce3a[_0x7974a5(0x351)]=0x7]=_0x7974a5(0x351),_0x36ce3a[_0x36ce3a[_0x7974a5(0x1cb)]=0x8]=_0x7974a5(0x1cb),_0x36ce3a[_0x36ce3a[_0x7974a5(0x18d)]=0x9]='COMPLETION_FINISHED',_0x36ce3a[_0x36ce3a[_0x7974a5(0x353)]=0xa]=_0x7974a5(0x353),_0x36ce3a[_0x36ce3a[_0x7974a5(0x383)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x36ce3a[_0x36ce3a['MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED']=0xc]=_0x7974a5(0x41b),_0x36ce3a[_0x36ce3a[_0x7974a5(0x1c3)]=0xd]=_0x7974a5(0x1c3),_0x36ce3a[_0x36ce3a[_0x7974a5(0x3c1)]=0xe]=_0x7974a5(0x3c1),_0x36ce3a[_0x36ce3a[_0x7974a5(0x341)]=0x1389]=_0x7974a5(0x341),_0x36ce3a[_0x36ce3a[_0x7974a5(0x1ed)]=0x1771]=_0x7974a5(0x1ed),_0x36ce3a[_0x36ce3a[_0x7974a5(0x30f)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x36ce3a[_0x36ce3a[_0x7974a5(0x37d)]=0x1773]=_0x7974a5(0x37d),_0x36ce3a[_0x36ce3a['APPLY_REJECT']=0x1b59]=_0x7974a5(0x3bf),_0x36ce3a[_0x36ce3a['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x36ce3a[_0x36ce3a[_0x7974a5(0x293)]=0x1b5b]=_0x7974a5(0x293),_0x36ce3a[_0x36ce3a[_0x7974a5(0x36b)]=0x1b5c]=_0x7974a5(0x36b),_0x36ce3a[_0x36ce3a[_0x7974a5(0x427)]=0x1b5d]=_0x7974a5(0x427),_0x36ce3a[_0x36ce3a[_0x7974a5(0x3d4)]=0x1f41]=_0x7974a5(0x3d4),_0x36ce3a[_0x36ce3a['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x36ce3a[_0x36ce3a[_0x7974a5(0x2a3)]=0x232a]=_0x7974a5(0x2a3),_0x36ce3a[_0x36ce3a['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x7974a5(0x295),_0x36ce3a[_0x36ce3a[_0x7974a5(0x1ad)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x36ce3a[_0x36ce3a['LICENSE_DISTRO_REJECTED']=0x232d]=_0x7974a5(0x205),_0x36ce3a[_0x36ce3a[_0x7974a5(0x355)]=0x2711]=_0x7974a5(0x355),_0x36ce3a[_0x36ce3a[_0x7974a5(0x191)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x36ce3a[_0x36ce3a[_0x7974a5(0x402)]=0x2713]=_0x7974a5(0x402),_0x36ce3a[_0x36ce3a[_0x7974a5(0x22c)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x36ce3a[_0x36ce3a['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x36ce3a[_0x36ce3a[_0x7974a5(0x27a)]=0x271b]=_0x7974a5(0x27a),_0x36ce3a[_0x36ce3a[_0x7974a5(0x3ca)]=0x271c]=_0x7974a5(0x3ca),_0x36ce3a[_0x36ce3a[_0x7974a5(0x1fb)]=0x271d]=_0x7974a5(0x1fb),_0x36ce3a[_0x36ce3a[_0x7974a5(0x2de)]=0x271e]=_0x7974a5(0x2de),_0x36ce3a[_0x36ce3a[_0x7974a5(0x32f)]=0x271f]='YUUMI_AI_RUN_FAILED',_0x36ce3a[_0x36ce3a[_0x7974a5(0x37e)]=0x2720]=_0x7974a5(0x37e),_0x36ce3a[_0x36ce3a[_0x7974a5(0x3ce)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x36ce3a[_0x36ce3a[_0x7974a5(0x2eb)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x36ce3a[_0x36ce3a[_0x7974a5(0x376)]=0x2ee2]='INVALID_INVITE_CODE',_0x36ce3a[_0x36ce3a['INVITE_CODE_REQUIRED']=0x2ee3]=_0x7974a5(0x380),_0x36ce3a[_0x36ce3a[_0x7974a5(0x320)]=0x2ee4]=_0x7974a5(0x320),_0x36ce3a[_0x36ce3a[_0x7974a5(0x329)]=0x2ee5]=_0x7974a5(0x329),_0x36ce3a[_0x36ce3a['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x7974a5(0x3af),_0x36ce3a[_0x36ce3a[_0x7974a5(0x2ee)]=0x32ca]=_0x7974a5(0x2ee),_0x36ce3a[_0x36ce3a['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x36ce3a[_0x36ce3a['UNRECOGNIZED']=-0x1]=_0x7974a5(0x41f),_0x36ce3a))(_0x53b6cc||{}),_0x5f1ab8=Object['getOwnPropertyDescriptor'],_0x55970a=(_0x45a9d0,_0x194fc9,_0x193798,_0x24efac)=>{const _0x460c3c=_0x7974a5;for(var _0x3247eb=_0x24efac>0x1?void 0x0:_0x24efac?_0x5f1ab8(_0x194fc9,_0x193798):_0x194fc9,_0x241057=_0x45a9d0[_0x460c3c(0x2c2)]-0x1,_0x58a354;_0x241057>=0x0;_0x241057--)(_0x58a354=_0x45a9d0[_0x241057])&&(_0x3247eb=_0x58a354(_0x3247eb)||_0x3247eb);return _0x3247eb;},_0x360c19=(_0x181090,_0x204f28)=>(_0x378ae6,_0x13d6e8)=>_0x204f28(_0x378ae6,_0x13d6e8,_0x181090);_0xa6a46a['RemoteUniscriptService']=class extends _0x40dd79[_0x7974a5(0x2f0)]{constructor(_0xbce12,_0x1cfec6,_0x2c695f){const _0x593534=_0x7974a5;super(),this[_0x593534(0x423)]=_0xbce12,this[_0x593534(0x1f5)]=_0x1cfec6,this[_0x593534(0x365)]=_0x2c695f;}async[_0x7974a5(0x384)](_0x1354b6,_0xf1e760,_0xed1d0d,..._0x55e55a){const _0x47309e=_0x7974a5;var _0x33ebd8,_0x174418,_0x43a27a,_0x11a088;const _0x5ee5c3=this[_0x47309e(0x423)][_0x47309e(0x209)]();if(!_0x5ee5c3)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x230132=((_0x33ebd8=this[_0x47309e(0x365)]['getConfig'](_0x3ce651[_0x47309e(0x259)]))!=null?_0x33ebd8:_0x3ce651[_0x47309e(0x1d4)])+'/'+_0x1354b6+_0x47309e(0x1ee)+_0xf1e760,_0x2640bf=new URL(window['location']['href']),_0x32bf37={'scriptId':_0x1354b6,'runId':(_0x174418=_0x2640bf[_0x47309e(0x290)][_0x47309e(0x25e)]('runId'))!=null?_0x174418:'','function':_0xf1e760,'unitId':_0x5ee5c3[_0x47309e(0x336)](),'argsOfFunction':JSON[_0x47309e(0x236)](_0x55e55a),'invokeId':(_0x43a27a=_0xed1d0d[_0x47309e(0x18c)])!=null?_0x43a27a:'','executionId':(_0x11a088=_0xed1d0d['executionId'])!=null?_0x11a088:''};try{const _0x9ccfab=await this[_0x47309e(0x1f5)][_0x47309e(0x1f6)](_0x230132,{'body':_0x32bf37});return _0x9ccfab[_0x47309e(0x360)][_0x47309e(0x242)]&&_0x9ccfab['body']['error'][_0x47309e(0x422)]!==_0x53b6cc['OK']?'Failed':_0x9ccfab[_0x47309e(0x360)][_0x47309e(0x1b6)];}catch{return _0x47309e(0x1a6);}}},_0xa6a46a[_0x7974a5(0x319)]=_0x55970a([_0x360c19(0x0,_0x40dd79[_0x7974a5(0x250)]),_0x360c19(0x1,_0x40dd79[_0x7974a5(0x3ba)](_0x5ca998['HTTPService'])),_0x360c19(0x2,_0x40dd79['IConfigService'])],_0xa6a46a['RemoteUniscriptService']),_0xa6a46a[_0x7974a5(0x1a7)]=_0x151afa,_0xa6a46a[_0x7974a5(0x3f0)]=_0x1ccfa8,_0xa6a46a[_0x7974a5(0x1ba)]=_0x5877df,_0xa6a46a[_0x7974a5(0x34a)]=_0x5b15b7,_0xa6a46a['WebURLService']=_0xbc9c0f,Object['defineProperty'](_0xa6a46a,Symbol['toStringTag'],{'value':'Module'});}));function _0x1cec(){const _0x218d84=['Optional','MOBILE_VERIFY_CODE_MISMATCH','runOnServer','getActiveSheet','_send','DocStateChangeManagerService','_transformService','DeleteRangeMoveUpCommandId','MoveRangeCommandId','concat','getLocalCacheKey','moveTo','restore','_getMergeRange','tag','_labelPosition','getViewport','with','roomMembers','onRendered','transformByState','_assignedColors','width','UniverEngineFormula','InsertColCommandId','measureText','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','RxDisposable','memberID','UNIVER_DOC','_draw','use','on-line-icon_clip0_910_349','717650KVlXhe','collabStatus.synced','disposeWithMe','event$','lineTo','_scheduleClearOtherTimer','connectInjector','findNodePositionByCharIndex','skeleton','_drawAnchor','_collabSessionService','docStateChange$','WECHAT_HAS_BEEN_BOUND','activeSheet$','font','_ensureSubject','_revisionService','pipe','_scene','jsx','_online','getSheetBySheetId','_docClipboardService','Inject','CollaborationSessionService','getUnhiddenWorksheets','ILocalStorageService','_createSocketURL','APPLY_REJECT','_cursorInfo$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','addHandlerCallback','subscribeEvent','DocSelectionManagerService','unshift','UniverInstanceType','494441jonVsD','RefRangeService','Error','YUUMI_TABLE_NOT_FOUND_IN_UNIT','@univerjs/sheets','LOCAL_CACHE_INTERVAL_KEY','RevisionService','PY_RUNTIME_SCRIPT_ERROR','deepClone','exhaustSavingTask','_handleLeaveEvent','useCallback','delete','CONNECTOR_DATA_TOO_LARGE','PERMISSION_DENIED','TEXT','UniverCollaborationClientUIPlugin','IMessageService','_anchor','_entities','getCurrentSelections','_clearOtherTimers','_collaborationController','RegularPolygon','evenodd','LocaleService','@univerjs/ui','DataLoaderService','UniverDocs','react/jsx-runtime','http://www.w3.org/2000/svg','Shape','colorChannel1','getTypeOfUnitDisposed$','location','height','_unitOnClients','row','contains','_lastPointer','getUndoRedoMutationParamsCache','IURLService','OnLineIcon','setConfig','transformMutation','Warning','addObject','clearInterval','removeParam','onPointerEnter$','@univerjs/rpc','_updateLocalCursor','executeCommand','_initResize','merge','_range','init','saveOfflineData','_docTransformSelectionsService','YUUMI_RATE_OVER_LIMIT','Vector2','_docSkeletonManagerService','_messageService','_localStorageService','FromArray','SOCKET_FAILED','trim','fillText','fill','_init','CollaborationEvent','operators','fillStyle','shareReplay','UniverDrawing','getItem','next','_scheduleSaving','saveImage','_initCommandExecutedListener','startRow','_initEvent','NodePositionConvertToRectRange','onTransformChange$','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','current','bottom','getValue','UNRECOGNIZED','_updateCollabCursors','setInterval','code','_instanceService','#FFF','_cursors','MessageType','APPLY_DUPLICATED','SUBMIT_CHANGESET_TIMEOUT','VIEW_MAIN','UnitStatus','text','_collaborationUIEventService','collaboration-client-ui.config','add','invokeId','COMPLETION_FINISHED','takeUntil','_getSaveTimeout','className','YUUMI_URL_COL_OUT_OF_RANGE','2283312RqmRKE','flatMap','ICommandService','DisposableCollection','_transformHistoryAndStateStack','loadOfflineData','_config','session.connection-failed','_localeService','_disabled','call','@univerjs/drawing','attrs','Unknown\x20user','disposeUnit','clearTimeout','serializeRangeWithSheet','_injector','onLocalMutation','IRenderManagerService','Failed','CollaborationStatusDisplay','type','_cursorShapes','_memberService','UniverDesign','UniverProCollaborationClient','LICENSE_EXPORT_SIZE_EXCEEDED','unitId','clipPath','runRefRangeMutations','UniverProCollaboration','_startSheetCollabCursor','replaceDocRanges','svg','_doCreateSocket','result','CollaborationStatus','ILogService','backgroundColor','SheetCollabCursorShape','ACTIVE_UNIT_EVENT_CHANNEL','INTERNAL_ERROR','createIdentifier','none','runId','_notificationService','IUIPartsService','getUniverSheetInstance','EMAIL_VERIFY_CODE_MISMATCH','InsertRangeMoveDownCommandId','getDocRanges','params','unsubscribe','onPointerMove$','CONFLICT','OFFLINE','TOO_MANY_REQUESTS','parse','IDocClipboardService','getCollabCursors$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','UniverSheets','_eventUnsubscribe','syncEditingCollabCursor','registerDependencies','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','includes','RemoveRowCommandId','arc','collaboration.closeRoom','COLORS','_renderManagerService','_drawRectRange','jsxs','@univerjs/docs','_getAnchorBounding','1em','key','collab-client.tooltip.reconnect','ALREADY_EXISTS','on-line-icon','href','entries','top','hovered','handleInsertRangeMoveDown','actions','_urlService','getCellPositionByOffset','then','SNAPSHOT_INVALID_SNAPSHOT','/run/','collabStatus.syncing','isTransformMutationFailure','mergeOverrideWithDependencies','handleIRemoveRow','getStateCache','substring','_httpService','post','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','ranges','AWAITING','_initEntityListener','YUUMI_ALL_TABLES_IS_INVALID','mapTo','_setupBeforeClosingHandler','startColumn','off-line-icon_clip0_910_343','ColorKit','UPDATE_CURSOR','mutations','ISnapshotServerService','newValue','LICENSE_DISTRO_REJECTED','SHEET_VIEWPORT_KEY','_collabCursorController','onStarting','getFocusedUnit','_univerInstanceService','m2Prime','Workbook','_status$','UniverUi','defineProperty','redoState','send','_onCursorUpdate','_toggleOnline','resize','registerBeforeClose','_initDependencies','drawWith','getParam','_handleHover','startsWith','defs','_toggleOffline','IConfigService','EffectRefRangId','labelPosition','source','UNDEFINED','green.600','handleInsertCol','Tools','handleDeleteRangeMoveUp','onMouseMove','whenReady','asObservable','saveTaskMap','forEach','JOIN_ROOM_FAILED','YUUMI_SUBSCRIPTION_NOT_FOUND','set','univer-mr-2\x20univer-flex\x20univer-text-xl','name','prototype','disableLocalCache','dispose','icon','column','doc.mutation.rich-text-editing','stringify','MemberService','...','UniverEngineRender','_docTransformStateCacheService','IBeforeCloseService','_id','NOT_COLLAB','_render','idSuffix','_docTransformIMECacheService','SessionStatus','error','getConfig','collaboration-client.offline-data-not-saved','_document','_cachedData','getRenderById','addObjects','_syncEditingCollabCursorService','UniverSheetsUi','object','debounceTime','textRanges','onPointerLeave$','_beforeCloseService','IUniverInstanceService','displayName','[CollaborationDataLoaderController]','isActive','getAncestorScale','_session','transformMutationsWithChangeset','1895148QuCACi','hide','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','IRemoteInstanceService','Rect','_transformUndoRedoStack','min','get','enableLocalCache','Rectangle','status$','UniverCollaborationClientPlugin','setTimeout','@univerjs/sheets-ui','function','isArray','generateRandomId','UniverCore','_selfUnitIDs','USERS_LEAVE','1796253snBkHq','Injector','range','_handleJoinEvent','find','Plugin','_drawTextRange','getCurrentRevOfUnit','_removeCollabCursors','_hovered','_saveCache','push','getCoordByCell','_getSheetObject','forwardRef','YUUMI_ASYNCIO_CANCELLED','distinctUntilChanged','getRelativeToViewportCoord','48fYOBuR','unit','div','_collabCursorState$','_hover','path','_initStatusListener','values','AWAITING_WITH_PENDING','switchMap','off-line-icon','subUnitId','@univerjs-pro/collaboration-client','react','white','ONLINE','combineLatest','@univerjs/design','toRgbString','searchParams','popstate','BuiltInUIPart','APPLY_REVISION_CONFILICT','UniverDocsUi','LICENSE_IMPORT_SIZE_EXCEEDED','requireSession','_color','@univerjs-pro/collaboration','session.will-retry','eventID','split','RemoveColCommandId','NodePositionConvertToCursor','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','39885HQBlvk','throttleTime','setShapeProps','_handleHeartbeatEvent','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','propertyIsEnumerable','currentSkeleton$','_context','transformSelections','reconnect','complete','DesktopCollaborationStatusDisplayController','collaboration.single-unit.warning','UniverNetwork','registerRenderModule','SOCKET_FAILED_RETRY','transform','filter','getSheetObject','debug','CollaborationUIEventId','indexOf','history','m1Prime','children','useDependency','max','_localCacheService','_backgroundColor','ThemeService','0\x200\x2017\x2016','setItem','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','UNAUTHENTICATED','_scheduleHeartbeat','length','handleIRemoveCol','_initStatusComponent','jiqing.500','handleInsertRow','_shapes','@univerjs/engine-formula','endRow','xlink:href','exports','_docSkeleton','_logService','subunit','transformRemoteChangeset','_name','cursorInfo','_docStateChangeManagerService','_getScale','some','defIds','getOwnPropertyDescriptor','_transformPreviousActiveRange','extend','show','map','toDisposable','_sheetSkeletonManagerService','_colorIndex','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','collabStatus.notCollab','@univerjs/engine-render','UniverRpc','_saveTaskMap','getColorFromTheme','ILocalCacheService','hasOwnProperty','_roomMembers$','application/json','getSkeleton','debounce','ITransformService','INVITE_CODE_HAS_BEEN_UES','uni.network.url-service','collabStatus.conflict','MOBILE_HAS_BEEN_BOUND','getOffsetConfig','Disposable','pluginName','getUnitStatus$','_registerDependencies','DocIMEInputManagerService','editingUnit','UniverProCollaborationClientUi','RECT','focused$','_refreshCollabCursors','permission.title','roomMembers$','pushState','OffLineIcon','data','createSocket','string','rxjs','ISocketService','session.collaboration-timeout','addEventListener','wsSessionTicketUrl','DocCollaborationEntity','TEXT_RANGE_LAYER_INDEX','setParam','clsx','PENDING','urlChange$','size','assign','handleMoveRange','SNAPSHOT_HAS_BEEN_REMOVED','getSheetId','getCurrent','NOT_FOUND','collab-text-anchor-','getOwnPropertySymbols','_textBubble','onCommandExecuted','DOC_RANGE_TYPE','createElement','RemoteUniscriptService','FETCH_MISS','_docSyncEditingCollabCursorService','handleInsertRangeMoveRight','dispose$','_updateSubUnitFromURLParams','getVpScrollXYInfoByPosToVp','USER_NOT_INVITED_CODE','React','imageSourceType','transformStateCache','selection','url(#$1','override','0\x200\x2016\x2016','_startDocCollabCursor','INVITE_CODE_ALREADY_BOUND','currentColor','updateOfflineData','WebSocketService','639380AogHTK','_removeClearOtherTimer','YUUMI_AI_RUN_FAILED','replace','_onCursorDelete','OTHER_CLIENTS_EDITING','transformIMECache','CollaborationController','M0\x200H16V16H0z','getUnitId','unload','@univerjs/core','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','InsertRangeMoveRightCommandId','round','_commandService','_heartbeatTimer','_uiPartsService','_refRangeService','color','CHANGESET_REVISION_CONFILICT','SetWorksheetActivateCommand','getColor','toString','cursorInfo$','@univerjs/network','_themeService','registerComponent','setActiveRange','WebBrowserSingleActiveUnitService','InsertRowCommandId','rxjs/operators','endColumn','sheetID','collabCursorState$','fromEventSubject','INVALID_ARGUMENT','currentTheme$','LOGIN_FAILED','sheetId','YUUMI_UNABLE_LOAD_URL','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collab-rect-range-','BrowserCollaborationSocketService','_dataLoaderService','amd','getTypeOfUnitAdded$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','isTransformMutationsWithChangesetSuccess','handleDeleteRangeMoveLeft','CollaborationDataLoaderController','body','black','createInstance','SheetsSelectionsService','_getSessionTicket','_configService','UNIVER_SHEET','_unitStatus','registerRefRange','BehaviorSubject','collabStatus.fetchMiss','APPLY_PERMISSION_DENIED','unitID','_colorAssignService','sessionStatus$','save','_updateURLWithCurrentState','collabStatus.offline','_entityInit$','_anchorDot','setAlpha','sessionTicket','INVALID_INVITE_CODE','getRangePointData','getMember','univerjs-icon\x20univerjs-icon-','deserializeRangeWithSheet','subscribe','has','ENSURE_SNAPSHOT_EXECUTION','YUUMI_CONNECTOR_URL_NOT_FOUND','INotificationService','INVITE_CODE_REQUIRED','_hideTimer'];_0x1cec=function(){return _0x218d84;};return _0x1cec();}
|
|
1
|
+
function _0x52cb(){const _0x135df2=['useDependency','width','MUTATION','Unknown\x20user','AWAITING','_docStateChangeManagerService','textRanges','UniverCore','_dataLoaderService','M0\x200H16V16H0z','_setupSubUnitSync','_unitOnClients','saveImage','YUUMI_ALL_TABLES_IS_INVALID','_handleLeaveEvent','_session','getUnitId','MemberService','@univerjs/rpc','_cursor','off-line-icon_clip0_910_343','_startDocCollabCursor','LICENSE_MAX_UNITS_EXCEEDED','Module','_setupBeforeClosingHandler','collaboration-client-ui.config','fillRule','_beforeCloseService','APPLY_PERMISSION_DENIED','getParam','UnitStatus','getVpScrollXYInfoByPosToVp','toDisposable','handleInsertRangeMoveRight','tag','rxjs/operators','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','_anchorDot','parse','Rectangle','hide','_colorIndex','_docSkeletonManagerService','_transformUndoRedoStack','_cursorShapes','CollaborationController','RefRangeService','InsertRangeMoveDownCommandId','setInterval','UniverCollaborationClientUIPlugin','SheetsSelectionsService','getFocusedUnit','PERMISSION_DENIED','red.300','saveOfflineData','_collabSessionService','_selfUnitIDs','_clearOtherTimers','getLocalCacheKey','getSkeleton','_commandService','isTransformMutationsWithChangesetSuccess','_getMergeRange','subscribe','_docTransformStateCacheService','EMAIL_HAS_BEEN_BOUND','_syncEditingCollabCursorService','generateRandomId','skeleton','_updateURLWithCurrentState','WebSocketService','apply','227524DkLmUH','_onRefRangeChange','RegularPolygon','clipPath','setAlpha','getColor','transformSelections','transformIMECache','univer-mr-2\x20univer-flex\x20univer-text-xl','getCollabCursors$','_transformService','deserializeRangeWithSheet','endColumn','push','CollaborationSessionService','INTERNAL_ERROR','row','resize','colorChannel1','saveTaskMap','LICENSE_DISTRO_REJECTED','use','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','_entityInit$','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','distinctUntilChanged','getTypeOfUnitDisposed$','UniverSheetsUi','650570OqNUkK','COMPLETION_FINISHED','@univerjs/docs-ui','concat','InsertColCommandId','storage','DataLoaderService','_backgroundColor','LICENSE_EXPORT_SIZE_EXCEEDED','forEach','onTransformChange$','engine','React','handleDeleteRangeMoveLeft','CollaborationUIEventService','replaceDocRanges','CollaborationStatusDisplay','_initStatusListener','height','then','MOBILE_HAS_BEEN_BOUND','getCurrentRevOfUnit','getItem','ITransformService','_scheduleClearOtherTimer','path','filter','unshift','onMouseMove','beginPath','Subject','set','_collabCursorState$','selection','_injector','combineLatest','UniverRpc','pipe','name','fillStyle','_hovered','string','setParam','serializeRangeWithSheet','permission.content','getTypeOfUnitAdded$','_getAnchorBounding','debounceTime','setActiveRange','lineTo','addEventListener','_messageService','RemoveRowCommandId','@univerjs/drawing','collabStatus.syncing','SNAPSHOT_HAS_BEEN_REMOVED','runId','DocSkeletonManagerService','_shapes','react/jsx-runtime','handleInsertRangeMoveDown','_hover','replaceState','subunit','/run/','UniverIcon','find','@univerjs/sheets-ui','syncEditingCollabCursor','black','_cursors','next','sessionStatus$','connectInjector','indexOf','onCommandExecuted','eventID','IRemoteInstanceService','WebBrowserSingleActiveUnitService','history','SheetCollabCursorShape','result','addObjects','getOwnPropertyDescriptor','addObject','USER_NOT_INVITED_CODE','error','_status$','range','_updateCollabCursors','Vector2','@univerjs/engine-formula','UniverDesign','none','Shape','children','UniverDocsUi','getActiveRange','_handleEvent','transformRemoteChangeset','disableLocalCache','top','getUnitStatus$','getActiveSheet','SheetSkeletonManagerService','_cachedData','getCurrent','text','1em','_getScale','_anchor','HEADER_MENU','UNRECOGNIZED','PENDING','makeDirty','_colorAssignService','_textBubble','disposeWithMe','DeleteRangeMoveUpCommandId','jsxs','_localeService','APPLY_REJECT','DOC_RANGE_TYPE','focused$','flatMap','onPointerEnter$','OFFLINE','YUUMI_ASYNCIO_CANCELLED','...','Plugin','transformMutationsWithChangeset','LOCAL_CACHE_INTERVAL_KEY','_docSyncEditingCollabCursorService','SYNCED','actions','_ensureSubject','_labelPosition','searchParams','getAncestorScale','isTransformMutationFailure','activeSheet$','_drawAnchor','getOffsetConfig','includes','mask','m2Prime','0\x200\x2016\x2016','CollaborationSocketService','substring','onLocalMutation','blue.400','from','collab-text-range-','_cursorInfo$','_online','getColorFromTheme','unload','entityInit$','arc','_saveCache','m1Prime','CollaborationDataLoaderController','_localStorageService','createIdentifier','propertyIsEnumerable','InsertRangeMoveRightCommandId','drawWith','SetTextSelectionsOperation','getSheetBySheetId','handleMoveRange','_handleHover','getUnhiddenWorksheets','ColorKit','UniverDocs','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','transformMutation','_collabCursorController','_onCursorUpdate','_draw','cursorInfo$','replace','call','Disposable','createInstance','urlChange$','data','_entities','roomMembers','BehaviorSubject','assignAColorForMemberID','Warning','ICommandService','_doCreateSocket','DocSelectionManagerService','onPointerMove$','idSuffix','UniverProCollaboration','_context','_univerInstanceService','_handleJoinEvent','setItem','handleDeleteRangeMoveUp','_range','clearInterval','registerBeforeClose','_refreshCollabCursors','_docClipboardService','19962uhiAcm','jsx','registerRenderModule','ALREADY_EXISTS','handleIRemoveRow','_lastPointer','_sheetSkeletonManagerService','_memberService','currentTheme$','_eventUnsubscribe','with','split','on-line-icon_clip0_910_349','clearTimeout','dispose$','font','createElement','registerRefRange','setTimeout','YUUMI_SUBSCRIPTION_NOT_FOUND','YUUMI_TABLE_NOT_FOUND_IN_UNIT','SOCKET_FAILED_RETRY','TEXT_RANGE_LAYER_INDEX','getStateCache','RemoteUniscriptService','EMAIL_VERIFY_CODE_MISMATCH','_themeService','add','TEXT','NOT_FOUND','fromEvent','ILogService','Tools','react','isArray','hasOwnProperty','startsWith','map','xlink:href','_color','Error','UniverDrawing','YUUMI_NO_CUBOID_FOR_QUESTION','session.connection-failed','getDocRanges','defineProperty','toString','startRow','_init','unsubscribe','@univerjs/engine-render','_transformHistoryAndStateStack','all','getMemberID','YUUMI_URL_COL_OUT_OF_RANGE','CONFLICT','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_getSaveTimeout','LocaleService','getOwnPropertySymbols','displayName','_updateLocalCursor','getSheetId','_initEvent','delete','MOBILE_VERIFY_CODE_MISMATCH','Injector','deepClone','_heartbeatTimer','size','pushState','takeUntil','entries','show','values','subUnitId','CollaborationStatus','_logService','_imageIoService','INVITE_CODE_HAS_BEEN_UES','CLOSE_ROOM','getRenderById','className','_toggleOffline','white','_saveTaskMap','translate(.97)','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','DesktopCollaborationStatusDisplayController','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','purple.300','event$','addClipboardHook','key','@univerjs-pro/collaboration-client','whenReady','unitId','@univerjs/docs','override','getCellPositionByOffset','has','collaboration.single-unit.warning','_unitStatus','LOCAL_CACHE_INTERVAL','CollaborationEvent','UniverCollaborationClientPlugin','DocIMEInputManagerService','roomMembers$','UniverUi','[CollaborationDataLoaderController]','OTHER_CLIENT_EDITING','post','BrowserCollaborationSocketService','UniverInstanceType','getSheetObject','_roomMembers$','_scheduleSaving','backgroundColor','defIds','_startSheetCollabCursor','FETCH_MISS','DisposableCollection','IMessageService','shareReplay','VIEW_MAIN','SHEET_VIEWPORT_KEY','extend','invokeId','_name','ISnapshotServerService','fromEventSubject','measureText','transform','_localCacheService','getCollabEntity$','_toggleOnline','currentColor','getConfig','_updateSubUnitFromURLParams','DocCollaborationEntity','INVALID_ARGUMENT','div','@univerjs/core','CONNECTOR_DATA_TOO_LARGE','fill','NodePositionConvertToRectRange','column','setShapeProps','LICENSE_IMPORT_SIZE_EXCEEDED','stringify','NOT_COLLAB','color','clsx','body','_onCursorDelete','mutations','Optional','Failed','sheetId','32VunAWg','prototype','handleIRemoveCol','get','svg','YUUMI_RATE_OVER_LIMIT','setConfig','loadUnit','init','MessageType','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','385WdMfEQ','PY_RUNTIME_SCRIPT_ERROR','search','Workbook','pluginName','wsSessionTicketUrl','labelPosition','defs','CHANGESET_REVISION_CONFILICT','_instanceService','UNAUTHENTICATED','setUndoRedoMutationParamsCache','location','DependentOn','_assignedColors','UPDATE_CURSOR','length','assign','SetWorksheetActivateCommand','CollaborationUIEventId','RECT','RemoveColCommandId','_httpService','getValue','_getSheetObject','UniverProCollaborationClientUi','SessionStatus','ThemeService','ranges','IConfigService','DeleteRangeMoveLeftCommandId','collabStatus.offline','useCallback','ILocalStorageService','unit','OTHER_CLIENTS_EDITING','asObservable','@univerjs-pro/collaboration','updateOfflineData','random','_disabled','IURLService','0\x200\x2017\x2016','ILocalCacheService','4435232jSYIhd','@univerjs/network','_transformPreviousActiveRange','fillText','runRefRangeMutations','complete','min','TRANSFORM_CHANGE_OBSERVABLE_TYPE','reconnect','@univerjs/design','FromArray','@univerjs/ui','cursorInfo','WECHAT_HAS_BEEN_BOUND','_initCommandExecutedListener','AWAITING_WITH_PENDING','_hideTimer','ticket','8499YOvDfn','_config','IUniverInstanceService','4663170EYoJXl','url(#on-line-icon_clip0_910_349)','restore','rxjs','_notificationService','current','_drawTextRange','transformByState','IImageIoService','@univerjs/sheets','switchMap','getRangePointData','UniverNetwork','ONLINE','object','application/json','COLORS','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','toRgbString','IRenderManagerService','evenodd','popstate','trim','DocStateChangeManagerService','NO_OTHER_CLIENTS_EDITING','ENSURE_SNAPSHOT_EXECUTION','redoState','session.collaboration-timeout','_registerRenderDependencies','debounce','UNIVER_SHEET','_initStatusComponent','USERS_LEAVE','requireSession','enableLocalCache','INotificationService','send','RxDisposable','_initResize','closePath','CommandType','IDocClipboardService','bottom','subscribeEvent','_initDependencies','_send','http://www.w3.org/2000/svg','283790XAbXkl','_initEntityListener','TOO_MANY_REQUESTS','_renderManagerService','YUUMI_AI_RUN_FAILED','ACTIVE_UNIT_EVENT_CHANNEL','DEFAULT_WS_SESSION_TICKET_URL','icon','MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','EffectRefRangId','_docTransformSelectionsService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','collabStatus.synced','collabCursorState$','_docTransformIMECacheService','Inject','symbol','params','executeCommand','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','onStarting','moveTo','forwardRef','editingUnit','LOGIN_FAILED','_refRangeService','UNIVER_DOC','unitID','#FFF','throttleTime','collab-client.tooltip.reconnect','attrs','YUUMI_UNABLE_LOAD_URL','APPLY_DUPLICATED','APPLY_NON_SEQUENTIAL_REVISION','HTTPService','Rect','onRendered','findNodePositionByCharIndex','collaboration-client.offline-data-not-saved','JOIN_ROOM_FAILED','url(#$1','getMember','getCurrentSelections','exports','selections','hovered','_urlService','save','_scene','_handleHeartbeatEvent','onPointerLeave$','_removeCollabCursors','_collaborationController','on-line-icon','getCoordByCell','_collaborationUIEventService','SUBMIT_CHANGESET_TIMEOUT','_render','UNDEFINED','RichTextEditingMutation','getUniverSheetInstance','runOnServer','SetDocZoomRatioOperation','ISocketService','status$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_drawRectRange','_registerDependencies','exhaustSavingTask','transformStateCache','currentSkeleton$','EMAIL_VERIFY_CODE_NOT_FOUND_OR_EXPIRED','_getSessionTicket','mapTo','_revisionService','type','getRelativeToViewportCoord','undoState','NodePositionConvertToCursor','function','memberID','OnLineIcon','doc.mutation.rich-text-editing','_configService','href','merge','INVITE_CODE_REQUIRED','dispose','_id','round','getUndoRedoMutationParamsCache'];_0x52cb=function(){return _0x135df2;};return _0x52cb();}function _0x1d1e(_0x172bed,_0x3e87ca){const _0x52cb2b=_0x52cb();return _0x1d1e=function(_0x1d1e73,_0x5d6fe1){_0x1d1e73=_0x1d1e73-0x1df;let _0x5535ff=_0x52cb2b[_0x1d1e73];return _0x5535ff;},_0x1d1e(_0x172bed,_0x3e87ca);}(function(_0x5a3b53,_0x309bb3){const _0x139fb0=_0x1d1e,_0x3e2abb=_0x5a3b53();while(!![]){try{const _0x2c5f84=-parseInt(_0x139fb0(0x2ec))/0x1+parseInt(_0x139fb0(0x248))/0x2+parseInt(_0x139fb0(0x216))/0x3*(parseInt(_0x139fb0(0x476))/0x4)+parseInt(_0x139fb0(0x308))/0x5+parseInt(_0x139fb0(0x3d7))/0x6*(parseInt(_0x139fb0(0x481))/0x7)+parseInt(_0x139fb0(0x204))/0x8+-parseInt(_0x139fb0(0x219))/0x9;if(_0x2c5f84===_0x309bb3)break;else _0x3e2abb['push'](_0x3e2abb['shift']());}catch(_0x51cc03){_0x3e2abb['push'](_0x3e2abb['shift']());}}}(_0x52cb,0x45ec8),function(_0x40a751,_0x4dba81){const _0x2f9706=_0x1d1e;typeof exports==_0x2f9706(0x227)&&typeof module<'u'?_0x4dba81(exports,require(_0x2f9706(0x435)),require(_0x2f9706(0x465)),require(_0x2f9706(0x409)),require(_0x2f9706(0x205)),require(_0x2f9706(0x30a)),require(_0x2f9706(0x33d)),require(_0x2f9706(0x21c)),require(_0x2f9706(0x1fd)),require(_0x2f9706(0x438)),require('@univerjs/engine-formula'),require(_0x2f9706(0x222)),require(_0x2f9706(0x2c7)),require(_0x2f9706(0x34b)),require(_0x2f9706(0x343)),require(_0x2f9706(0x20f)),require('@univerjs/design'),require(_0x2f9706(0x3f8)),require(_0x2f9706(0x2b6))):typeof define==_0x2f9706(0x298)&&define['amd']?define([_0x2f9706(0x274),'@univerjs-pro/collaboration-client',_0x2f9706(0x465),'@univerjs/engine-render','@univerjs/network',_0x2f9706(0x30a),_0x2f9706(0x33d),'rxjs',_0x2f9706(0x1fd),_0x2f9706(0x438),_0x2f9706(0x363),_0x2f9706(0x222),'rxjs/operators',_0x2f9706(0x34b),'react/jsx-runtime','@univerjs/ui',_0x2f9706(0x20d),_0x2f9706(0x3f8),_0x2f9706(0x2b6)],_0x4dba81):(_0x40a751=typeof globalThis<'u'?globalThis:_0x40a751||self,_0x4dba81(_0x40a751[_0x2f9706(0x1f1)]={},_0x40a751['UniverProCollaborationClient'],_0x40a751[_0x2f9706(0x2ab)],_0x40a751['UniverEngineRender'],_0x40a751[_0x2f9706(0x225)],_0x40a751[_0x2f9706(0x368)],_0x40a751[_0x2f9706(0x400)],_0x40a751[_0x2f9706(0x21c)],_0x40a751[_0x2f9706(0x3cc)],_0x40a751[_0x2f9706(0x3b5)],_0x40a751['UniverEngineFormula'],_0x40a751['UniverSheets'],_0x40a751[_0x2f9706(0x21c)]['operators'],_0x40a751[_0x2f9706(0x307)],_0x40a751['React'],_0x40a751[_0x2f9706(0x443)],_0x40a751[_0x2f9706(0x364)],_0x40a751[_0x2f9706(0x314)],_0x40a751[_0x2f9706(0x32c)]));}(this,function(_0xf30996,_0xbe53a0,_0x496d06,_0x8d3144,_0x4fda2f,_0x35faaf,_0x3fffd6,_0x1f84ca,_0xf2713c,_0x110776,_0x335ed1,_0x36ae62,_0x3a0eac,_0x4f6f98,_0xef77fd,_0x1ea881,_0x47fd52,_0xf931bd,_0x34c09a){'use strict';const _0x54cb3d=_0x1d1e;var _0x38de6b=Object[_0x54cb3d(0x404)],_0x1b10c2=(_0x339eac,_0x828887,_0x1a150e)=>_0x828887 in _0x339eac?_0x38de6b(_0x339eac,_0x828887,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a150e}):_0x339eac[_0x828887]=_0x1a150e,_0x3c80c3=(_0x36fb1d,_0x525c20,_0x4cd678)=>_0x1b10c2(_0x36fb1d,typeof _0x525c20!=_0x54cb3d(0x258)?_0x525c20+'':_0x525c20,_0x4cd678),_0x39f709=Object['getOwnPropertyDescriptor'],_0x308a0a=(_0x1a23d8,_0x34920a,_0x34cb30,_0x1799c5)=>{const _0x394841=_0x54cb3d;for(var _0x4bf16e=_0x1799c5>0x1?void 0x0:_0x1799c5?_0x39f709(_0x34920a,_0x34cb30):_0x34920a,_0x3e6c32=_0x1a23d8[_0x394841(0x1e8)]-0x1,_0xdc8882;_0x3e6c32>=0x0;_0x3e6c32--)(_0xdc8882=_0x1a23d8[_0x3e6c32])&&(_0x4bf16e=_0xdc8882(_0x4bf16e)||_0x4bf16e);return _0x4bf16e;},_0x10cd76=(_0x3f1091,_0x7fc73)=>(_0x7b7720,_0x557e13)=>_0x7fc73(_0x7b7720,_0x557e13,_0x3f1091);let _0x11f54a=class extends _0x496d06[_0x54cb3d(0x23e)]{constructor(_0x542c7d,_0x416d24){const _0x46d787=_0x54cb3d;super(),this[_0x46d787(0x3d6)]=_0x542c7d,this[_0x46d787(0x425)]=_0x416d24,this[_0x46d787(0x407)]();}[_0x54cb3d(0x407)](){const _0x35cc83=_0x54cb3d,_0x18d43e=this;this[_0x35cc83(0x37d)](this[_0x35cc83(0x3d6)][_0x35cc83(0x433)]({'onBeforePasteImage':async _0xccc4fd=>{const _0xd95b76=_0x35cc83,_0x596b7e=await _0x18d43e[_0xd95b76(0x425)][_0xd95b76(0x2b0)](_0xccc4fd);return _0x596b7e?{'source':_0x596b7e['source'],'imageSourceType':_0x596b7e['imageSourceType']}:null;}}));}};_0x11f54a=_0x308a0a([_0x10cd76(0x0,_0x35faaf[_0x54cb3d(0x242)]),_0x10cd76(0x1,_0x3fffd6[_0x54cb3d(0x221)])],_0x11f54a);const _0x36084c=[_0x54cb3d(0x431),'jiqing.500','green.600',_0x54cb3d(0x2d9),_0x54cb3d(0x39e),'yellow.400'];class _0x5cc4a9 extends _0x496d06[_0x54cb3d(0x3be)]{constructor(){const _0x2b244e=_0x54cb3d;super(...arguments),_0x3c80c3(this,_0x2b244e(0x1e6),new Map()),_0x3c80c3(this,_0x2b244e(0x2cd),0x0);}[_0x54cb3d(0x3c5)](_0x9c0e13){const _0x14d619=_0x54cb3d;if(this['_assignedColors'][_0x14d619(0x43b)](_0x9c0e13))return this[_0x14d619(0x1e6)][_0x14d619(0x479)](_0x9c0e13);const _0x655c59=_0x36084c[this[_0x14d619(0x2cd)]];return this['_colorIndex']=(this[_0x14d619(0x2cd)]+0x1)%_0x36084c[_0x14d619(0x1e8)],this[_0x14d619(0x1e6)][_0x14d619(0x327)](_0x9c0e13,_0x655c59),_0x655c59;}}function _0x383d67(_0xc521c3){const _0x1c3086=_0x54cb3d;let _0x28d440='';for(const _0x7b1cb5 of _0xc521c3){const {startOffset:_0x94466c,endOffset:_0x3c39d8,isActive:_0x2be762,rangeType:_0x2dc3b5,segmentId:_0x3edf43,segmentPage:_0x2a3499}=_0x7b1cb5;_0x28d440[_0x1c3086(0x1e8)]&&(_0x28d440+=','),_0x28d440+=_0x94466c+':'+_0x3c39d8+':'+(_0x2be762?'1':'0')+':'+_0x2dc3b5+':'+_0x3edf43+':'+_0x2a3499;}return _0x28d440;}function _0x299eba(_0x2372cd){const _0x2ed168=_0x54cb3d,_0xdb2f91=_0x2372cd[_0x2ed168(0x3e2)](','),_0x4bbb69=[];for(const _0x2bd9ab of _0xdb2f91){const [_0x562bb2,_0x29b335,_0x64a80e,_0x47b4d2,_0xf4881,_0xa68429]=_0x2bd9ab['split'](':');_0x4bbb69['push']({'startOffset':Number(_0x562bb2),'endOffset':Number(_0x29b335),'collapsed':_0x562bb2===_0x29b335,'isActive':_0x64a80e==='1','rangeType':_0x47b4d2===_0x496d06[_0x2ed168(0x382)][_0x2ed168(0x3f3)]?_0x496d06[_0x2ed168(0x382)]['TEXT']:_0x496d06[_0x2ed168(0x382)][_0x2ed168(0x1ec)],'segmentId':typeof _0xf4881==_0x2ed168(0x331)?String(_0xf4881):'','segmentPage':Number(_0xa68429!=null?_0xa68429:-0x1)});}return _0x4bbb69['some'](_0x21a0e5=>_0x21a0e5['isActive'])||(_0x4bbb69[0x0]['isActive']=!0x0),_0x4bbb69;}class _0x2d2ac7 extends _0x496d06['RxDisposable']{constructor(){const _0x51b1c9=_0x54cb3d;super(...arguments),_0x3c80c3(this,'_collabCursorState$',new _0x1f84ca['BehaviorSubject'](null)),_0x3c80c3(this,_0x51b1c9(0x255),this['_collabCursorState$'][_0x51b1c9(0x1fc)]());}[_0x54cb3d(0x34c)](_0x216b42){const _0x73fe3b=_0x54cb3d,{unitID:_0x4a4aeb,memberID:_0x8ea576,textRanges:_0xb7404}=_0x216b42,_0x2dc7ee=_0x383d67(_0xb7404);if(_0x2dc7ee==='')return;const _0x530b92={'unitID':_0x4a4aeb,'memberID':_0x8ea576,'selection':_0x2dc7ee};this[_0x73fe3b(0x328)][_0x73fe3b(0x34f)](_0x530b92);}}var _0xf754c4=Object['getOwnPropertyDescriptor'],_0x6e7426=(_0x11b0c6,_0x51f534,_0x45398a,_0x245196)=>{for(var _0x43e38e=_0x245196>0x1?void 0x0:_0x245196?_0xf754c4(_0x51f534,_0x45398a):_0x51f534,_0xab7430=_0x11b0c6['length']-0x1,_0x2db235;_0xab7430>=0x0;_0xab7430--)(_0x2db235=_0x11b0c6[_0xab7430])&&(_0x43e38e=_0x2db235(_0x43e38e)||_0x43e38e);return _0x43e38e;},_0x365682=(_0x67f324,_0xbe2aba)=>(_0x588b44,_0x16d5d0)=>_0xbe2aba(_0x588b44,_0x16d5d0,_0x67f324);const _0x2eaa1b=0x12c,_0x95802a=0x64;let _0x5f20d7=class extends _0x496d06[_0x54cb3d(0x23e)]{constructor(_0x57798a,_0x47627e,_0x205f8d,_0x51169a,_0x58d1ea,_0x2c2b37,_0x4559c5,_0xee2495,_0x1ba82e){const _0x5c61cb=_0x54cb3d;super(),_0x3c80c3(this,'_online',!0x1),_0x3c80c3(this,_0x5c61cb(0x407),!0x1),_0x3c80c3(this,_0x5c61cb(0x3a1),new _0x1f84ca[(_0x5c61cb(0x3c4))](new Map())),_0x3c80c3(this,_0x5c61cb(0x3bb),this[_0x5c61cb(0x3a1)][_0x5c61cb(0x1fc)]()),_0x3c80c3(this,_0x5c61cb(0x44a),new _0x1f84ca[(_0x5c61cb(0x3c4))]([])),_0x3c80c3(this,_0x5c61cb(0x442),this['_roomMembers$'][_0x5c61cb(0x32d)](_0x1f84ca['debounceTime'](_0x2eaa1b))),_0x3c80c3(this,'_updateLocalCursor',_0x496d06['debounce'](_0x14af46=>{const _0xfe0d5c=_0x5c61cb,_0x55d91c={'eventID':_0xf2713c[_0xfe0d5c(0x43f)][_0xfe0d5c(0x1e7)],'data':{'unitID':this[_0xfe0d5c(0x263)],'memberID':this['_session']['getMemberID'](),'selection':_0x383d67(_0x14af46)}};this['_session'][_0xfe0d5c(0x23d)](_0x55d91c,this['unitID']);},_0x95802a)),(this[_0x5c61cb(0x263)]=_0x57798a,this[_0x5c61cb(0x2b3)]=_0x47627e,this['_injector']=_0x205f8d,this[_0x5c61cb(0x37b)]=_0x51169a,this['_memberService']=_0x58d1ea,this[_0x5c61cb(0x2e6)]=_0x2c2b37,this[_0x5c61cb(0x2f6)]=_0x4559c5,this[_0x5c61cb(0x3ce)]=_0xee2495,this[_0x5c61cb(0x2e0)]=_0x1ba82e);}get['cursorInfo'](){const _0x588525=_0x54cb3d;return this[_0x588525(0x3a1)][_0x588525(0x1ef)]();}get[_0x54cb3d(0x3c3)](){const _0x2bab45=_0x54cb3d;return this[_0x2bab45(0x44a)][_0x2bab45(0x1ef)]();}[_0x54cb3d(0x2a0)](){const _0x2e8930=_0x54cb3d;super['dispose'](),this[_0x2e8930(0x3a1)][_0x2e8930(0x34f)](new Map()),this[_0x2e8930(0x3a1)][_0x2e8930(0x209)](),this[_0x2e8930(0x44a)][_0x2e8930(0x34f)]([]),this[_0x2e8930(0x44a)][_0x2e8930(0x209)]();}[_0x54cb3d(0x47e)](){const _0x169e20=_0x54cb3d;this[_0x169e20(0x407)]||(this['_init']=!0x0,this[_0x169e20(0x2b3)][_0x169e20(0x350)][_0x169e20(0x32d)](_0x1f84ca[_0x169e20(0x41e)](this[_0x169e20(0x3e5)]))[_0x169e20(0x2e3)](_0x48b97e=>{const _0x1e32f=_0x169e20;_0x48b97e===_0xbe53a0[_0x1e32f(0x1f2)][_0x1e32f(0x226)]?this[_0x1e32f(0x45e)]():this[_0x1e32f(0x42a)]();}),this['_session'][_0x169e20(0x432)][_0x169e20(0x32d)](_0x1f84ca['takeUntil'](this[_0x169e20(0x3e5)]))[_0x169e20(0x2e3)](_0x17f578=>{const _0x4d8adf=_0x169e20,_0x4ba0e9=_0x17f578[_0x4d8adf(0x354)];_0x4ba0e9===_0xf2713c[_0x4d8adf(0x43f)]['UPDATE_CURSOR']&&this[_0x4d8adf(0x3b9)](_0x17f578),_0x4ba0e9===_0xf2713c[_0x4d8adf(0x43f)]['USERS_LEAVE']&&this[_0x4d8adf(0x471)](_0x17f578);}),this[_0x169e20(0x37d)](this[_0x169e20(0x2e0)][_0x169e20(0x353)](_0x34b00b=>{const _0x2de2c7=_0x169e20,_0x57bac4=_0x34b00b['params'];_0x57bac4!=null&&this[_0x2de2c7(0x3a2)]&&_0x34b00b['id']===_0x110776[_0x2de2c7(0x3af)]['id']&&_0x57bac4[_0x2de2c7(0x437)]===this[_0x2de2c7(0x263)]&&_0x57bac4['isEditing']===!0x1&&_0x57bac4[_0x2de2c7(0x1f4)][_0x2de2c7(0x1e8)]>0x0&&this[_0x2de2c7(0x414)](_0x57bac4[_0x2de2c7(0x1f4)]);})),this[_0x169e20(0x2e6)][_0x169e20(0x255)]['pipe'](_0x1f84ca['takeUntil'](this[_0x169e20(0x3e5)]))[_0x169e20(0x2e3)](_0x388e23=>{const _0x47e67a=_0x169e20;if((_0x388e23==null?void 0x0:_0x388e23[_0x47e67a(0x263)])!==this[_0x47e67a(0x263)])return;const _0x558f63={'eventID':_0xf2713c[_0x47e67a(0x43f)]['UPDATE_CURSOR'],'data':_0x388e23};this[_0x47e67a(0x3b9)](_0x558f63);}),this['disposeWithMe'](this[_0x169e20(0x2e0)][_0x169e20(0x353)](_0x3a9b64=>{const _0x572dfa=_0x169e20;if(_0x3a9b64[_0x572dfa(0x259)]==null)return;const _0x302021=_0x3a9b64[_0x572dfa(0x259)];if(_0x3a9b64['id']!==_0x110776[_0x572dfa(0x284)]['id']||_0x302021[_0x572dfa(0x437)]!==this[_0x572dfa(0x263)])return;const _0x1cba11={'id':_0x572dfa(0x29b),'params':_0x302021},_0x2047ff=this['cursorInfo'];for(const [_0x2cce88,_0x4b602e]of _0x2047ff){const _0x5d2991={'id':_0x572dfa(0x29b),'params':{'unitId':this[_0x572dfa(0x263)],'actions':null,'textRanges':_0x4b602e[_0x572dfa(0x1f4)]}},_0x458232=this[_0x572dfa(0x2f6)][_0x572dfa(0x3b7)](_0x1cba11,_0x5d2991,!0x1);if(_0xf2713c['isTransformMutationFailure'](_0x458232))throw _0x458232[_0x572dfa(0x35e)];_0x2047ff[_0x572dfa(0x327)](_0x2cce88,{..._0x4b602e,'ranges':_0x458232[_0x572dfa(0x399)][_0x572dfa(0x259)][_0x572dfa(0x2aa)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x2047ff);});})));}[_0x54cb3d(0x3b9)](_0x5509d3){const _0x4a9bdb=_0x54cb3d;var _0x3b3a43,_0x42d0b6;const {memberID:_0x2f1f83,selection:_0x230b4c}=_0x5509d3['data'],_0x1ecdcc=_0x299eba(_0x230b4c),_0x210782=(_0x42d0b6=(_0x3b3a43=this[_0x4a9bdb(0x3de)]['getMember'](this[_0x4a9bdb(0x263)],_0x2f1f83))==null?void 0x0:_0x3b3a43[_0x4a9bdb(0x32e)])!=null?_0x42d0b6:_0x4a9bdb(0x2a7),_0x356afd={'color':this[_0x4a9bdb(0x37b)][_0x4a9bdb(0x3c5)](_0x2f1f83),'name':_0x210782,'ranges':_0x1ecdcc},_0x119993=this['cursorInfo'];_0x119993[_0x4a9bdb(0x327)](_0x2f1f83,_0x356afd),this[_0x4a9bdb(0x3a1)][_0x4a9bdb(0x34f)](_0x119993);}[_0x54cb3d(0x471)](_0x3f2c5d){const _0x295bc1=_0x54cb3d,{memberID:_0x53a889}=_0x3f2c5d[_0x295bc1(0x3c1)],_0x2a2e28=this[_0x295bc1(0x210)];_0x2a2e28['delete'](_0x53a889),this[_0x295bc1(0x3a1)][_0x295bc1(0x34f)](_0x2a2e28);}[_0x54cb3d(0x45e)](){const _0x173b32=_0x54cb3d;var _0x1b7ace;if(this[_0x173b32(0x3a2)]=!0x0,((_0x1b7ace=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x1b7ace['getUnitId']())!==this[_0x173b32(0x263)])return;const _0x1f4035=this['_injector'][_0x173b32(0x479)](_0x110776[_0x173b32(0x3c9)])[_0x173b32(0x403)]();Array['isArray'](_0x1f4035)&&_0x1f4035[_0x173b32(0x1e8)]>0x0&&this[_0x173b32(0x414)](_0x1f4035);}[_0x54cb3d(0x42a)](){const _0x4e0f21=_0x54cb3d;this[_0x4e0f21(0x3a2)]=!0x1;}};_0x5f20d7=_0x6e7426([_0x365682(0x2,_0x496d06[_0x54cb3d(0x257)](_0x496d06[_0x54cb3d(0x419)])),_0x365682(0x3,_0x496d06['Inject'](_0x5cc4a9)),_0x365682(0x4,_0x496d06[_0x54cb3d(0x257)](_0xbe53a0[_0x54cb3d(0x2b5)])),_0x365682(0x5,_0x496d06[_0x54cb3d(0x257)](_0x2d2ac7)),_0x365682(0x6,_0xf2713c['ITransformService']),_0x365682(0x7,_0x496d06['IUniverInstanceService']),_0x365682(0x8,_0x496d06[_0x54cb3d(0x3c7)])],_0x5f20d7);var _0x613c7a=Object['getOwnPropertyDescriptor'],_0x135eb2=(_0x3e2485,_0x280365,_0xfb4068,_0x3d121d)=>{const _0x3d998e=_0x54cb3d;for(var _0x542805=_0x3d121d>0x1?void 0x0:_0x3d121d?_0x613c7a(_0x280365,_0xfb4068):_0x280365,_0x186815=_0x3e2485[_0x3d998e(0x1e8)]-0x1,_0x1fee55;_0x186815>=0x0;_0x186815--)(_0x1fee55=_0x3e2485[_0x186815])&&(_0x542805=_0x1fee55(_0x542805)||_0x542805);return _0x542805;},_0x5b2eed=(_0x168605,_0x2e0190)=>(_0x201e93,_0x2af344)=>_0x2e0190(_0x201e93,_0x2af344,_0x168605);const _0x21c6e0=0x12c,_0x447042=0x64,_0x12e228=()=>{let _0x3d54d6=[],_0x371c4a=!0x1;return _0x2a6d34=>{_0x3d54d6['push'](_0x2a6d34),_0x371c4a||(_0x371c4a=!0x0,setTimeout(()=>{const _0x5a5167=_0x1d1e;_0x3d54d6[_0x5a5167(0x311)](_0x25d848=>_0x25d848()),_0x3d54d6=[],_0x371c4a=!0x1;}));};};let _0x5e62e7=class extends _0x496d06[_0x54cb3d(0x23e)]{constructor(_0x2ef8e8,_0x34bc19,_0x23785a,_0x4007b1,_0x5bb853,_0x29b140,_0x382705,_0x4a1caa){const _0x4fed09=_0x54cb3d;super(),_0x3c80c3(this,_0x4fed09(0x3a2),!0x1),_0x3c80c3(this,_0x4fed09(0x407),!0x1),_0x3c80c3(this,_0x4fed09(0x3a1),new _0x1f84ca['BehaviorSubject'](new Map())),_0x3c80c3(this,_0x4fed09(0x3bb),this[_0x4fed09(0x3a1)][_0x4fed09(0x1fc)]()),_0x3c80c3(this,_0x4fed09(0x44a),new _0x1f84ca['BehaviorSubject']([])),_0x3c80c3(this,_0x4fed09(0x442),this[_0x4fed09(0x44a)][_0x4fed09(0x32d)](_0x1f84ca[_0x4fed09(0x337)](_0x21c6e0))),_0x3c80c3(this,_0x4fed09(0x414),_0x496d06[_0x4fed09(0x236)]((_0x120184,_0x30d4b7)=>{const _0x461776=_0x4fed09,_0x29e58f={'eventID':_0xf2713c[_0x461776(0x43f)][_0x461776(0x1e7)],'data':{'unitID':this[_0x461776(0x263)],'memberID':this[_0x461776(0x2b3)][_0x461776(0x40c)](),'selection':_0x335ed1[_0x461776(0x333)](_0x120184,_0x30d4b7[_0x461776(0x360)])}};this[_0x461776(0x2b3)]['send'](_0x29e58f,this[_0x461776(0x263)]);},_0x447042)),(this[_0x4fed09(0x263)]=_0x2ef8e8,this[_0x4fed09(0x2b3)]=_0x34bc19,this[_0x4fed09(0x32a)]=_0x23785a,this['_colorAssignService']=_0x4007b1,this['_memberService']=_0x5bb853,this['_univerInstanceService']=_0x29b140,this[_0x4fed09(0x2e0)]=_0x382705,this[_0x4fed09(0x261)]=_0x4a1caa);}get[_0x54cb3d(0x210)](){const _0x5f47fc=_0x54cb3d;return this[_0x5f47fc(0x3a1)][_0x5f47fc(0x1ef)]();}get[_0x54cb3d(0x3c3)](){const _0x51dc78=_0x54cb3d;return this['_roomMembers$'][_0x51dc78(0x1ef)]();}[_0x54cb3d(0x2a0)](){const _0x10d391=_0x54cb3d;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this[_0x10d391(0x3a1)][_0x10d391(0x209)](),this[_0x10d391(0x44a)]['next']([]),this[_0x10d391(0x44a)]['complete']();}['init'](){const _0x12a4ce=_0x54cb3d;this[_0x12a4ce(0x407)]||(this[_0x12a4ce(0x407)]=!0x0,this[_0x12a4ce(0x2b3)]['sessionStatus$'][_0x12a4ce(0x32d)](_0x1f84ca[_0x12a4ce(0x41e)](this[_0x12a4ce(0x3e5)]))['subscribe'](_0x5d288c=>{const _0x4e7d7b=_0x12a4ce;_0x5d288c===_0xbe53a0[_0x4e7d7b(0x1f2)]['ONLINE']?this[_0x4e7d7b(0x45e)]():this['_toggleOffline']();}),this[_0x12a4ce(0x2b3)][_0x12a4ce(0x432)][_0x12a4ce(0x32d)](_0x1f84ca[_0x12a4ce(0x41e)](this['dispose$']))[_0x12a4ce(0x2e3)](_0x2222af=>{const _0x2f2bae=_0x12a4ce,_0xc7116b=_0x2222af[_0x2f2bae(0x354)];_0xc7116b===_0xf2713c[_0x2f2bae(0x43f)][_0x2f2bae(0x1e7)]&&this[_0x2f2bae(0x3b9)](_0x2222af),_0xc7116b===_0xf2713c[_0x2f2bae(0x43f)][_0x2f2bae(0x239)]&&this['_onCursorDelete'](_0x2222af);}),this[_0x12a4ce(0x2ed)](),this[_0x12a4ce(0x37d)](this[_0x12a4ce(0x2e0)]['onCommandExecuted'](_0x1f4458=>{const _0xe06331=_0x12a4ce;if(this[_0xe06331(0x3a2)]&&_0x1f4458['id']===_0x36ae62['SetSelectionsOperation']['id']&&_0x1f4458['params'][_0xe06331(0x437)]===this[_0xe06331(0x263)]){const _0x4b8867=_0x1f4458[_0xe06331(0x259)];this[_0xe06331(0x414)](_0x4b8867[_0xe06331(0x422)],_0x4b8867[_0xe06331(0x275)][0x0]);}})));}[_0x54cb3d(0x3b9)](_0x453bb7){const _0x59eb80=_0x54cb3d;var _0x5bca82,_0x2110c0;const {memberID:_0x4692ff,selection:_0x27d79c}=_0x453bb7[_0x59eb80(0x3c1)],{sheetName:_0xefc763,range:_0x4cb150}=_0x335ed1[_0x59eb80(0x2f7)](_0x27d79c),_0x1f9db5={'name':(_0x2110c0=(_0x5bca82=this[_0x59eb80(0x3de)][_0x59eb80(0x272)](this[_0x59eb80(0x263)],_0x4692ff))==null?void 0x0:_0x5bca82[_0x59eb80(0x32e)])!=null?_0x2110c0:_0x59eb80(0x2a7),'range':this[_0x59eb80(0x2e2)](_0xefc763,_0x4cb150),'sheetID':_0xefc763,'color':this[_0x59eb80(0x37b)][_0x59eb80(0x3c5)](_0x4692ff),'selection':_0x27d79c},_0xd6a21e=this['cursorInfo'];_0xd6a21e[_0x59eb80(0x327)](_0x4692ff,_0x1f9db5),this[_0x59eb80(0x3a1)][_0x59eb80(0x34f)](_0xd6a21e);}[_0x54cb3d(0x471)](_0x3d3475){const _0x46da29=_0x54cb3d,{memberID:_0x1232ed}=_0x3d3475[_0x46da29(0x3c1)],_0x1f377f=this[_0x46da29(0x210)];_0x1f377f[_0x46da29(0x417)](_0x1232ed),this[_0x46da29(0x3a1)]['next'](_0x1f377f);}['_getMergeRange'](_0x28a2d1,_0x26f8eb){const _0x314269=_0x54cb3d;var _0xf7a418,_0x3e6a6e;const _0x84f461=(_0x3e6a6e=(_0xf7a418=this[_0x314269(0x3ce)][_0x314269(0x285)](this[_0x314269(0x263)]))==null?void 0x0:_0xf7a418[_0x314269(0x3b0)](_0x28a2d1))==null?void 0x0:_0x3e6a6e['getMergeData']();return(_0x84f461==null?void 0x0:_0x84f461[_0x314269(0x34a)](_0x567799=>_0x496d06[_0x314269(0x2cb)]['contains'](_0x567799,_0x26f8eb)))||_0x26f8eb;}['_onRefRangeChange'](){const _0x1fdf95=_0x54cb3d,_0x4bdeaa=new _0x496d06[(_0x1fdf95(0x450))](),_0x579b84=_0x12e228(),_0x55378a=()=>{const _0x4b35f0=_0x1fdf95;_0x4bdeaa['dispose']();const _0x21cecf=(_0x1e5f2d,_0x4615bf,_0x2fe0b0,_0x3af67a)=>{const _0x2e98a6=_0x1d1e;let _0x441595=[];switch(_0x1e5f2d['id']){case _0x36ae62[_0x2e98a6(0x251)][_0x2e98a6(0x1f6)]:{_0x441595=_0x36ae62[_0x2e98a6(0x315)](_0x1e5f2d,_0x3af67a);break;}case _0x36ae62[_0x2e98a6(0x251)][_0x2e98a6(0x37e)]:{_0x441595=_0x36ae62[_0x2e98a6(0x3d1)](_0x1e5f2d,_0x3af67a);break;}case _0x36ae62[_0x2e98a6(0x251)][_0x2e98a6(0x30c)]:{_0x441595=_0x36ae62['handleInsertCol'](_0x1e5f2d,_0x3af67a);break;}case _0x36ae62[_0x2e98a6(0x251)][_0x2e98a6(0x2d3)]:{_0x441595=_0x36ae62[_0x2e98a6(0x344)](_0x1e5f2d,_0x3af67a);break;}case _0x36ae62[_0x2e98a6(0x251)][_0x2e98a6(0x3ad)]:{_0x441595=_0x36ae62[_0x2e98a6(0x2c5)](_0x1e5f2d,_0x3af67a);break;}case _0x36ae62[_0x2e98a6(0x251)]['InsertRowCommandId']:{_0x441595=_0x36ae62['handleInsertRow'](_0x1e5f2d,_0x3af67a);break;}case _0x36ae62['EffectRefRangId']['MoveRangeCommandId']:{_0x441595=_0x36ae62[_0x2e98a6(0x3b1)](_0x1e5f2d,_0x3af67a);break;}case _0x36ae62[_0x2e98a6(0x251)][_0x2e98a6(0x1ed)]:{_0x441595=_0x36ae62[_0x2e98a6(0x478)](_0x1e5f2d,_0x3af67a);break;}case _0x36ae62['EffectRefRangId'][_0x2e98a6(0x33c)]:{_0x441595=_0x36ae62[_0x2e98a6(0x3db)](_0x1e5f2d,_0x3af67a);break;}}const _0x374c37=_0x36ae62[_0x2e98a6(0x208)](_0x441595,_0x3af67a),_0x3d987a=this[_0x2e98a6(0x210)]['get'](_0x4615bf);if(_0x3d987a&&_0x374c37){const _0x38cedf={..._0x3d987a,'range':_0x374c37};this['cursorInfo'][_0x2e98a6(0x327)](_0x4615bf,_0x38cedf),_0x579b84(()=>{const _0x4cf046=_0x2e98a6,_0x28a0ac=this[_0x4cf046(0x261)]['registerRefRange'](_0x374c37,_0xa7f9a6=>(_0x28a0ac['dispose'](),_0x21cecf(_0xa7f9a6,_0x4615bf,_0x2fe0b0,_0x374c37)));_0x4bdeaa[_0x4cf046(0x3f2)](_0x28a0ac);});}return{'redos':[],'undos':[]};};this[_0x4b35f0(0x210)][_0x4b35f0(0x311)]((_0x25d972,_0x3ad742)=>{const _0x2e288d=_0x4b35f0,{range:_0x59a133,sheetID:_0x186ef5}=_0x25d972,_0x28babf=this[_0x2e288d(0x261)][_0x2e288d(0x3e8)](_0x59a133,_0x483d88=>(_0x28babf[_0x2e288d(0x2a0)](),_0x21cecf(_0x483d88,_0x3ad742,_0x186ef5,_0x59a133)));_0x4bdeaa[_0x2e288d(0x3f2)](_0x28babf);});};this[_0x1fdf95(0x37d)](_0x496d06[_0x1fdf95(0x2c4)](this[_0x1fdf95(0x3a1)]['subscribe'](()=>{_0x55378a();})));}['_toggleOnline'](){const _0x10ec98=_0x54cb3d;var _0x37ff4f,_0x388e9a;if(this['_online']=!0x0,((_0x37ff4f=this[_0x10ec98(0x3ce)]['getFocusedUnit']())==null?void 0x0:_0x37ff4f[_0x10ec98(0x2b4)]())!==this['unitID'])return;const _0x35d64a=(_0x388e9a=this['_injector']['get'](_0x36ae62[_0x10ec98(0x2d6)])[_0x10ec98(0x273)]())==null?void 0x0:_0x388e9a[0x0],_0x4b591c=this[_0x10ec98(0x3ce)]['getCurrentUnitForType'](_0x496d06['UniverInstanceType'][_0x10ec98(0x237)])['getActiveSheet']();_0x35d64a&&_0x4b591c&&this[_0x10ec98(0x414)](_0x4b591c[_0x10ec98(0x415)](),_0x35d64a);}[_0x54cb3d(0x42a)](){const _0x41a838=_0x54cb3d;this[_0x41a838(0x3a2)]=!0x1;}};_0x5e62e7=_0x135eb2([_0x5b2eed(0x2,_0x496d06[_0x54cb3d(0x257)](_0x496d06[_0x54cb3d(0x419)])),_0x5b2eed(0x3,_0x496d06[_0x54cb3d(0x257)](_0x5cc4a9)),_0x5b2eed(0x4,_0x496d06['Inject'](_0xbe53a0[_0x54cb3d(0x2b5)])),_0x5b2eed(0x5,_0x496d06[_0x54cb3d(0x218)]),_0x5b2eed(0x6,_0x496d06[_0x54cb3d(0x3c7)]),_0x5b2eed(0x7,_0x496d06[_0x54cb3d(0x257)](_0x36ae62[_0x54cb3d(0x2d2)]))],_0x5e62e7);var _0x130881=Object[_0x54cb3d(0x35b)],_0xea6de4=(_0x498aee,_0x2c5140,_0x4fbb43,_0x82fd99)=>{const _0x310163=_0x54cb3d;for(var _0x48df42=_0x82fd99>0x1?void 0x0:_0x82fd99?_0x130881(_0x2c5140,_0x4fbb43):_0x2c5140,_0x21cc58=_0x498aee[_0x310163(0x1e8)]-0x1,_0x4c0d7c;_0x21cc58>=0x0;_0x21cc58--)(_0x4c0d7c=_0x498aee[_0x21cc58])&&(_0x48df42=_0x4c0d7c(_0x48df42)||_0x48df42);return _0x48df42;},_0x38880b=(_0x5c3cc3,_0x3b7dff)=>(_0x1306e2,_0x223e5c)=>_0x3b7dff(_0x1306e2,_0x223e5c,_0x5c3cc3);let _0x96e5af=class extends _0x496d06[_0x54cb3d(0x23e)]{constructor(_0x269482,_0x9d4ffb,_0x524759){const _0x5acc54=_0x54cb3d;super(),_0x3c80c3(this,_0x5acc54(0x3c2),new Map()),_0x3c80c3(this,_0x5acc54(0x303),new _0x1f84ca[(_0x5acc54(0x326))]()),(this[_0x5acc54(0x3ce)]=_0x269482,this[_0x5acc54(0x32a)]=_0x9d4ffb,this[_0x5acc54(0x2db)]=_0x524759,this[_0x5acc54(0x407)]());}[_0x54cb3d(0x2a0)](){const _0x163033=_0x54cb3d;super[_0x163033(0x2a0)](),this[_0x163033(0x303)]['complete'](),this[_0x163033(0x3c2)][_0x163033(0x311)](_0x55ef85=>_0x55ef85[_0x163033(0x2a0)]());}['getCollabCursors$'](_0x5380b0){const _0x409467=_0x54cb3d;return this[_0x409467(0x3c2)][_0x409467(0x43b)](_0x5380b0)?this['_entities'][_0x409467(0x479)](_0x5380b0)[_0x409467(0x3bb)]:this['_entityInit$'][_0x409467(0x32d)](_0x1f84ca[_0x409467(0x322)](_0x2b4e51=>_0x2b4e51['unitID']===_0x5380b0),_0x1f84ca[_0x409467(0x223)](_0x284042=>_0x284042[_0x409467(0x3bb)]));}[_0x54cb3d(0x407)](){const _0x231bfc=_0x54cb3d;this['_univerInstanceService'][_0x231bfc(0x335)](_0x496d06[_0x231bfc(0x448)][_0x231bfc(0x237)])[_0x231bfc(0x32d)](_0x1f84ca[_0x231bfc(0x41e)](this[_0x231bfc(0x3e5)]))['subscribe'](async _0x43be2d=>{const _0x22fcec=_0x231bfc,_0x5655d4=_0x43be2d['getUnitId'](),_0x308a0f=await this[_0x22fcec(0x44e)](_0x5655d4);this[_0x22fcec(0x303)][_0x22fcec(0x34f)](_0x308a0f),this[_0x22fcec(0x3c2)][_0x22fcec(0x327)](_0x5655d4,_0x308a0f);}),this[_0x231bfc(0x3ce)][_0x231bfc(0x335)](_0x496d06[_0x231bfc(0x448)][_0x231bfc(0x262)])[_0x231bfc(0x32d)](_0x1f84ca[_0x231bfc(0x41e)](this[_0x231bfc(0x3e5)]))['pipe'](_0x1f84ca[_0x231bfc(0x322)](_0x455775=>!_0x455775['getUnitId']()[_0x231bfc(0x3fb)]('__')))['subscribe'](async _0xab355a=>{const _0x5d689c=_0x231bfc,_0x3df210=_0xab355a[_0x5d689c(0x2b4)](),_0x3e6376=await this[_0x5d689c(0x2b9)](_0x3df210);this['_entityInit$']['next'](_0x3e6376),this['_entities'][_0x5d689c(0x327)](_0x3df210,_0x3e6376);}),_0x1f84ca[_0x231bfc(0x29e)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x496d06[_0x231bfc(0x448)][_0x231bfc(0x262)]),this[_0x231bfc(0x3ce)][_0x231bfc(0x306)](_0x496d06['UniverInstanceType'][_0x231bfc(0x237)]))['pipe'](_0x1f84ca['takeUntil'](this['dispose$']))[_0x231bfc(0x2e3)](_0x3ffea9=>{const _0x247eb1=_0x231bfc,_0x54a7df=_0x3ffea9[_0x247eb1(0x2b4)](),_0x405dbf=this[_0x247eb1(0x3c2)][_0x247eb1(0x479)](_0x54a7df);_0x405dbf&&(_0x405dbf[_0x247eb1(0x2a0)](),this['_entities'][_0x247eb1(0x417)](_0x54a7df));});}async['_startSheetCollabCursor'](_0x212122){const _0x15c018=_0x54cb3d,_0x1ca685=await this[_0x15c018(0x2db)][_0x15c018(0x23a)](_0x212122),_0xcb2a51=this[_0x15c018(0x32a)][_0x15c018(0x3bf)](_0x5e62e7,_0x212122,_0x1ca685);return _0xcb2a51['init'](),_0xcb2a51;}async[_0x54cb3d(0x2b9)](_0x5dbce4){const _0x4a345c=_0x54cb3d,_0x409855=await this[_0x4a345c(0x2db)][_0x4a345c(0x23a)](_0x5dbce4),_0x599c05=this[_0x4a345c(0x32a)]['createInstance'](_0x5f20d7,_0x5dbce4,_0x409855);return _0x599c05['init'](),_0x599c05;}};_0x96e5af=_0xea6de4([_0x38880b(0x0,_0x496d06[_0x54cb3d(0x218)]),_0x38880b(0x1,_0x496d06[_0x54cb3d(0x257)](_0x496d06[_0x54cb3d(0x419)])),_0x38880b(0x2,_0x496d06['Inject'](_0xbe53a0[_0x54cb3d(0x2fa)]))],_0x96e5af);const _0x3ce736=0x14,_0x518e7a=0xc8,_0x1f562d=0x4,_0x372003=0x5;function _0x130050(_0x125de7,_0x37376b){const _0x3f92fa=_0x54cb3d;let {radius:_0x59ec6b,width:_0x3d9344,height:_0x7ce493}=_0x37376b;_0x59ec6b=_0x59ec6b!=null?_0x59ec6b:0x0,_0x3d9344=_0x3d9344!=null?_0x3d9344:0x1e,_0x7ce493=_0x7ce493!=null?_0x7ce493:0x1e;let _0x18ca50=0x0,_0x2bb5a7=0x0,_0x5a43e0=0x0;_0x18ca50=_0x2bb5a7=_0x5a43e0=Math[_0x3f92fa(0x20a)](_0x59ec6b,_0x3d9344/0x2,_0x7ce493/0x2),_0x125de7[_0x3f92fa(0x325)](),_0x125de7[_0x3f92fa(0x25d)](_0x18ca50,0x0),_0x125de7['lineTo'](_0x3d9344-_0x2bb5a7,0x0),_0x125de7[_0x3f92fa(0x3a6)](_0x3d9344-_0x2bb5a7,_0x2bb5a7,_0x2bb5a7,Math['PI']*0x3/0x2,0x0,!0x1),_0x125de7[_0x3f92fa(0x339)](_0x3d9344,_0x7ce493-_0x5a43e0),_0x125de7[_0x3f92fa(0x3a6)](_0x3d9344-_0x5a43e0,_0x7ce493-_0x5a43e0,_0x5a43e0,0x0,Math['PI']/0x2,!0x1),_0x125de7[_0x3f92fa(0x339)](0x0,_0x7ce493),_0x125de7[_0x3f92fa(0x339)](0x0,_0x18ca50),_0x125de7[_0x3f92fa(0x3a6)](_0x18ca50,_0x18ca50,_0x18ca50,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x125de7[_0x3f92fa(0x240)](),_0x37376b[_0x3f92fa(0x467)]&&(_0x125de7['save'](),_0x125de7[_0x3f92fa(0x32f)]=_0x37376b['fill'],_0x37376b[_0x3f92fa(0x2be)]===_0x3f92fa(0x22d)?_0x125de7['fill'](_0x3f92fa(0x22d)):_0x125de7['fill'](),_0x125de7[_0x3f92fa(0x21b)]());}class _0x4d3031 extends _0x8d3144[_0x54cb3d(0x366)]{constructor(_0xc1bbd2,_0x34f098){const _0x9797c5=_0x54cb3d;super(_0xc1bbd2,_0x34f098),_0x3c80c3(this,_0x9797c5(0x46e)),_0x3c80c3(this,_0x9797c5(0x373)),(this['color']=_0x34f098==null?void 0x0:_0x34f098[_0x9797c5(0x46e)],this[_0x9797c5(0x373)]=_0x34f098==null?void 0x0:_0x34f098[_0x9797c5(0x373)]);}static[_0x54cb3d(0x3ae)](_0x10c791,_0x46ec9b){const _0x24f997=_0x54cb3d,{text:_0x22584c,color:_0x48acd4}=_0x46ec9b;_0x10c791[_0x24f997(0x278)](),_0x10c791[_0x24f997(0x3e6)]=_0x24f997(0x480);const _0x60d87c=_0x10c791[_0x24f997(0x45a)](_0x22584c)[_0x24f997(0x2a5)],_0xd23bd7=Math[_0x24f997(0x20a)](_0x60d87c+0x2*_0x1f562d,_0x518e7a);_0x130050(_0x10c791,{'height':_0x3ce736,'radius':0x4,'width':_0xd23bd7,'fill':_0x48acd4}),_0x10c791[_0x24f997(0x32f)]=_0x24f997(0x264);const _0x3c83d0=_0x1f562d,_0x45adac=_0x3ce736-_0x372003,_0x6bf5d0=_0x518e7a-0x2*_0x1f562d;if(_0x60d87c>_0x6bf5d0){let _0x1b2f5c='',_0x556795=0x0;for(const _0x503f04 of _0x22584c){const _0x4f4bd=_0x10c791[_0x24f997(0x45a)](_0x503f04)[_0x24f997(0x2a5)];if(_0x556795+_0x4f4bd<=_0x6bf5d0-_0x10c791[_0x24f997(0x45a)](_0x24f997(0x388))[_0x24f997(0x2a5)])_0x1b2f5c+=_0x503f04,_0x556795+=_0x4f4bd;else{_0x1b2f5c+=_0x24f997(0x388);break;}}_0x10c791['fillText'](_0x1b2f5c,_0x3c83d0,_0x45adac);}else _0x10c791[_0x24f997(0x207)](_0x22584c,_0x3c83d0,_0x45adac);_0x10c791['restore']();}[_0x54cb3d(0x3ba)](_0xf5db0f){const _0x4ae96f=_0x54cb3d;_0x4d3031[_0x4ae96f(0x3ae)](_0xf5db0f,this);}}const _0xba6ffe='collab-text-anchor-',_0x257f3b=_0x54cb3d(0x3a0),_0x37547a='collab-rect-range-',_0x23638a=0x6,_0x316511=1.5,_0x562ec0=0x4,_0x2edb3c=1.5,_0x31cd11='rgba(255,\x20255,\x20255,\x200.01)';class _0xe87453{constructor(_0x1f0888,_0x3d2ed4,_0x5c0f66,_0x30aa01){const _0x3f2c99=_0x54cb3d;_0x3c80c3(this,_0x3f2c99(0x342),[]),_0x3c80c3(this,_0x3f2c99(0x376),null),_0x3c80c3(this,_0x3f2c99(0x37c),null),_0x3c80c3(this,'_anchorDot',null),_0x3c80c3(this,'_hideTimer',null),_0x3c80c3(this,_0x3f2c99(0x3e0),null),(this[_0x3f2c99(0x2b7)]=_0x1f0888,this[_0x3f2c99(0x279)]=_0x3d2ed4,this['_docSkeleton']=_0x5c0f66,this['_document']=_0x30aa01,this[_0x3f2c99(0x282)]());}set[_0x54cb3d(0x345)](_0x12e8af){const _0x579cd7=_0x54cb3d;_0x12e8af?(this[_0x579cd7(0x2c9)]&&this[_0x579cd7(0x2c9)][_0x579cd7(0x2cc)](),this[_0x579cd7(0x37c)]&&this[_0x579cd7(0x37c)][_0x579cd7(0x420)]()):(this[_0x579cd7(0x2c9)]&&this[_0x579cd7(0x2c9)]['show'](),this[_0x579cd7(0x37c)]&&this[_0x579cd7(0x37c)]['hide']());}[_0x54cb3d(0x2a0)](){const _0x58ca87=_0x54cb3d;for(const _0x101aa1 of this['_shapes'])_0x101aa1[_0x58ca87(0x2a0)]();this['_textBubble']&&this[_0x58ca87(0x37c)][_0x58ca87(0x2a0)](),this['_anchorDot']&&this[_0x58ca87(0x2c9)][_0x58ca87(0x2a0)](),this[_0x58ca87(0x376)]&&this[_0x58ca87(0x376)][_0x58ca87(0x2a0)](),this[_0x58ca87(0x3e0)]&&this[_0x58ca87(0x3e0)]();}[_0x54cb3d(0x282)](){const _0x40baaa=_0x54cb3d;var _0x8a2896;const {_docSkeleton:_0x1700df,_document:_0x539345}=this,{color:_0x5d3ef0,name:_0x3a06ee,ranges:_0x567b64}=this[_0x40baaa(0x2b7)],_0x262f05=_0x539345[_0x40baaa(0x396)](),{docsLeft:_0x23c0e5,docsTop:_0x437753}=_0x262f05,_0x8af69b=new _0x35faaf[(_0x40baaa(0x297))](_0x262f05,_0x1700df);for(const {startOffset:_0x38985a,endOffset:_0x2c097f,rangeType:_0x5e930d,segmentId:_0x4c4a60,segmentPage:_0x2ab202,collapsed:_0x49d72c,isActive:_0x24fff6}of _0x567b64){const _0x83133f=_0x1700df[_0x40baaa(0x26e)](_0x38985a,!0x0,_0x4c4a60,_0x2ab202);let _0x383f84=_0x1700df[_0x40baaa(0x26e)](_0x2c097f,!0x0,_0x4c4a60,_0x2ab202);if(_0x383f84==null&&(_0x383f84=_0x1700df['findNodePositionByCharIndex'](_0x2c097f-0x1,!0x1,_0x4c4a60,_0x2ab202)),_0x24fff6){const {contentBoxPointGroup:_0x5e371c}=_0x8af69b['getRangePointData'](_0x383f84,_0x383f84);if(_0x5e371c[_0x40baaa(0x1e8)]===0x0)continue;this[_0x40baaa(0x395)](_0x5d3ef0,_0x5e371c,_0x23c0e5,_0x437753,_0x3a06ee),this['_eventUnsubscribe']=this[_0x40baaa(0x3b2)]();}if(_0x83133f&&_0x383f84){if(_0x5e930d===_0x496d06['DOC_RANGE_TYPE'][_0x40baaa(0x1ec)]){const _0x320473=new _0x35faaf[(_0x40baaa(0x468))](_0x262f05,_0x1700df),{pointGroup:_0x30f1c3}=(_0x8a2896=_0x320473[_0x40baaa(0x224)](_0x83133f,_0x383f84))!=null?_0x8a2896:{};if(_0x30f1c3==null||_0x30f1c3['length']===0x0)continue;this[_0x40baaa(0x28b)](_0x5d3ef0,_0x30f1c3,_0x23c0e5,_0x437753);}else{if(!_0x49d72c){const {borderBoxPointGroup:_0x1f56a6}=_0x8af69b[_0x40baaa(0x224)](_0x83133f,_0x383f84);if(_0x1f56a6[_0x40baaa(0x1e8)]===0x0)continue;this[_0x40baaa(0x21f)](_0x5d3ef0,_0x1f56a6,_0x23c0e5,_0x437753);}}}}}[_0x54cb3d(0x395)](_0x40465b,_0x2b976a,_0x358fec,_0x79baa,_0x584487){const _0x70fd7a=_0x54cb3d,_0x28d475=this[_0x70fd7a(0x336)](_0x2b976a),{left:_0x46d45d,top:_0x3094b5,height:_0x3172e0}=_0x28d475,_0x51cbcd=this[_0x70fd7a(0x375)](),_0x5ea0d8=_0x2edb3c/_0x51cbcd,_0x885694=new _0x8d3144[(_0x70fd7a(0x26c))](_0xba6ffe+_0x496d06[_0x70fd7a(0x3f7)][_0x70fd7a(0x2e7)](_0x23638a),{'left':_0x46d45d+_0x358fec-_0x5ea0d8,'top':_0x3094b5+_0x79baa,'height':_0x3172e0,'width':_0x316511,'fill':_0x40465b||_0x8d3144[_0x70fd7a(0x2f1)](_0x496d06['COLORS'][_0x70fd7a(0x34d)],0x0),'strokeWidth':_0x5ea0d8,'stroke':_0x31cd11,'evented':!0x0});this['_anchor']=_0x885694,this[_0x70fd7a(0x279)][_0x70fd7a(0x35c)](_0x885694,_0x35faaf[_0x70fd7a(0x3ed)]);const _0x8f349e=new _0x8d3144[(_0x70fd7a(0x26c))](_0xba6ffe+_0x496d06[_0x70fd7a(0x3f7)][_0x70fd7a(0x2e7)](_0x23638a),{'left':_0x46d45d+_0x358fec-_0x5ea0d8,'top':_0x3094b5+_0x79baa-_0x562ec0/0x2,'height':_0x562ec0,'width':_0x562ec0,'fill':_0x40465b||_0x8d3144['getColor'](_0x496d06[_0x70fd7a(0x229)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x40465b||_0x8d3144[_0x70fd7a(0x2f1)](_0x496d06[_0x70fd7a(0x229)][_0x70fd7a(0x34d)],0x0),'evented':!0x1});this[_0x70fd7a(0x2c9)]=_0x8f349e,this[_0x70fd7a(0x279)]['addObject'](_0x8f349e,_0x35faaf['TEXT_RANGE_LAYER_INDEX']);const _0x3f2035=new _0x4d3031(_0xba6ffe+_0x496d06[_0x70fd7a(0x3f7)][_0x70fd7a(0x2e7)](_0x23638a),{'left':_0x46d45d+_0x358fec-_0x5ea0d8,'top':_0x3094b5+_0x79baa-_0x3ce736,'text':_0x584487,'color':_0x40465b});this[_0x70fd7a(0x37c)]=_0x3f2035,this[_0x70fd7a(0x279)][_0x70fd7a(0x35c)](_0x3f2035,_0x35faaf[_0x70fd7a(0x3ed)]),this[_0x70fd7a(0x345)]=!0x1;}[_0x54cb3d(0x3b2)](){const _0x556d16=_0x54cb3d,_0x176c58=this[_0x556d16(0x376)]['onPointerEnter$'][_0x556d16(0x244)](()=>{const _0x4cdf37=_0x556d16;this[_0x4cdf37(0x345)]=!0x0;}),_0x15f8b5=this[_0x556d16(0x376)][_0x556d16(0x27b)][_0x556d16(0x244)](()=>{const _0x25c043=_0x556d16;this[_0x25c043(0x214)]&&clearTimeout(this[_0x25c043(0x214)]),this[_0x25c043(0x214)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x556311=_0x556d16;_0x176c58['unsubscribe'](),_0x15f8b5[_0x556311(0x408)]();};}['_drawTextRange'](_0x15f381,_0x175572,_0x3ada13,_0x3ef5f0){const _0x23f9c3=_0x54cb3d,_0x46803f=new _0x496d06[(_0x23f9c3(0x3b4))](_0x15f381)['setAlpha'](0.2)['toRgbString'](),_0x145c40=new _0x8d3144['RegularPolygon'](_0x257f3b+_0x496d06['Tools']['generateRandomId'](_0x23638a),{'pointsGroup':_0x175572,'fill':_0x46803f||_0x8d3144[_0x23f9c3(0x2f1)](_0x496d06['COLORS'][_0x23f9c3(0x34d)],0.2),'left':_0x3ada13,'top':_0x3ef5f0,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x23f9c3(0x2f9)](_0x145c40),this[_0x23f9c3(0x279)][_0x23f9c3(0x35c)](_0x145c40,_0x35faaf['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0x1fdb2e,_0x457a55,_0x28fcb9,_0x13963b){const _0x230688=_0x54cb3d,_0x19436d=new _0x496d06['ColorKit'](_0x1fdb2e)[_0x230688(0x2f0)](0.2)[_0x230688(0x22b)](),_0xc5b596=new _0x8d3144[(_0x230688(0x2ee))](_0x37547a+_0x496d06['Tools']['generateRandomId'](_0x23638a),{'pointsGroup':_0x457a55,'fill':_0x19436d||_0x8d3144['getColor'](_0x496d06['COLORS'][_0x230688(0x34d)],0.2),'left':_0x28fcb9,'top':_0x13963b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x230688(0x342)][_0x230688(0x2f9)](_0xc5b596),this[_0x230688(0x279)][_0x230688(0x35c)](_0xc5b596,_0x35faaf[_0x230688(0x3ed)]);}['_getAnchorBounding'](_0x21fa03){const _0xbc68f4=_0x21fa03[0x0],_0xbaa6db=_0xbc68f4[0x0],_0x3ddbb4=_0xbc68f4[0x2],{x:_0x5aa405,y:_0x18410f}=_0xbaa6db,{x:_0x371fa4,y:_0x2c0653}=_0x3ddbb4;return{'left':_0x5aa405,'top':_0x18410f,'width':_0x371fa4-_0x5aa405,'height':_0x2c0653-_0x18410f};}['_getScale'](){const _0x147335=_0x54cb3d,{scaleX:_0x3015e6,scaleY:_0x274204}=this['_scene'][_0x147335(0x392)]();return Math['max'](_0x3015e6,_0x274204);}}var _0x5b8d83=Object['getOwnPropertyDescriptor'],_0x499fab=(_0x4b5482,_0x5f543b,_0x13f85d,_0x6c8e5c)=>{const _0x23595d=_0x54cb3d;for(var _0x2481f8=_0x6c8e5c>0x1?void 0x0:_0x6c8e5c?_0x5b8d83(_0x5f543b,_0x13f85d):_0x5f543b,_0x2dff45=_0x4b5482[_0x23595d(0x1e8)]-0x1,_0x69d725;_0x2dff45>=0x0;_0x2dff45--)(_0x69d725=_0x4b5482[_0x2dff45])&&(_0x2481f8=_0x69d725(_0x2481f8)||_0x2481f8);return _0x2481f8;},_0x278669=(_0x23c736,_0x242fc1)=>(_0x499bd0,_0x1179ef)=>_0x242fc1(_0x499bd0,_0x1179ef,_0x23c736);let _0x59361c=class extends _0x496d06['RxDisposable']{constructor(_0x50957b,_0xa846d,_0x52aaed,_0x213fc8,_0x53d61f){const _0x22edbf=_0x54cb3d;super(),_0x3c80c3(this,_0x22edbf(0x2d0),[]),_0x3c80c3(this,'_cursors',[]),(this['_context']=_0x50957b,this[_0x22edbf(0x2ce)]=_0xa846d,this[_0x22edbf(0x3b8)]=_0x52aaed,this['_commandService']=_0x213fc8,this['_themeService']=_0x53d61f,this['_init']());}['_init'](){const _0x1e5a7a=_0x54cb3d,_0x10dbe5=this[_0x1e5a7a(0x3cd)]['unitId'],_0x5965dc=this[_0x1e5a7a(0x2ce)];this[_0x1e5a7a(0x37d)](_0x1f84ca[_0x1e5a7a(0x32b)]([this[_0x1e5a7a(0x3b8)][_0x1e5a7a(0x2f5)](_0x10dbe5),this[_0x1e5a7a(0x3f1)][_0x1e5a7a(0x3df)]])['pipe'](_0x3a0eac[_0x1e5a7a(0x3fc)](([_0x516db1,_0x464b60])=>({'skeleton':_0x5965dc['getSkeleton'](),'cursors':[..._0x516db1[_0x1e5a7a(0x421)]()][_0x1e5a7a(0x384)](_0x99044c=>({..._0x99044c,'color':this['_themeService']['getColorFromTheme'](_0x99044c[_0x1e5a7a(0x46e)])}))})))[_0x1e5a7a(0x2e3)](_0x571daf=>{const _0x2e1555=_0x1e5a7a;if(this['_removeCollabCursors'](),_0x571daf){const {skeleton:_0x4908dc,cursors:_0x35a660}=_0x571daf;this[_0x2e1555(0x361)](_0x4908dc,_0x35a660);}})),this[_0x1e5a7a(0x23f)](),this[_0x1e5a7a(0x212)]();}['_updateCollabCursors'](_0x2779b3,_0x349cf8){const _0x5b7a81=_0x54cb3d,{scene:_0x3bc4eb,mainComponent:_0x46bfd4}=this[_0x5b7a81(0x3cd)],_0x1661b7=_0x349cf8[_0x5b7a81(0x3fc)](_0x423f7a=>new _0xe87453(_0x423f7a,_0x3bc4eb,_0x2779b3,_0x46bfd4));this[_0x5b7a81(0x2d0)]=_0x1661b7,this[_0x5b7a81(0x34e)]=_0x349cf8;}[_0x54cb3d(0x3d5)](){const _0x249cd2=_0x54cb3d;this['_removeCollabCursors']();const {scene:_0x1be4ce,mainComponent:_0x4510fb}=this['_context'],_0x40d5d7=this[_0x249cd2(0x2ce)][_0x249cd2(0x2df)](),_0x40b697=this[_0x249cd2(0x34e)][_0x249cd2(0x3fc)](_0x59f5dd=>new _0xe87453(_0x59f5dd,_0x1be4ce,_0x40d5d7,_0x4510fb));this[_0x249cd2(0x2d0)]=_0x40b697;}['_removeCollabCursors'](){const _0x45a80c=_0x54cb3d;this[_0x45a80c(0x2d0)][_0x45a80c(0x311)](_0x1ae0ad=>_0x1ae0ad[_0x45a80c(0x2a0)]()),this[_0x45a80c(0x2d0)]=[];}[_0x54cb3d(0x212)](){const _0x2df0e2=_0x54cb3d,_0x3b460c=[_0x35faaf[_0x2df0e2(0x287)]['id']];this[_0x2df0e2(0x37d)](this[_0x2df0e2(0x2e0)][_0x2df0e2(0x353)](_0x18ad6d=>{const _0x5b5393=_0x2df0e2;_0x3b460c[_0x5b5393(0x397)](_0x18ad6d['id'])&&_0x18ad6d[_0x5b5393(0x259)][_0x5b5393(0x437)]===this[_0x5b5393(0x3cd)][_0x5b5393(0x437)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x2a053c=_0x54cb3d;this[_0x2a053c(0x37d)](_0x496d06[_0x2a053c(0x459)](this[_0x2a053c(0x3cd)][_0x2a053c(0x313)][_0x2a053c(0x312)])[_0x2a053c(0x32d)](_0x3a0eac[_0x2a053c(0x322)](_0x856cb=>_0x856cb[_0x2a053c(0x294)]===_0x8d3144[_0x2a053c(0x20b)][_0x2a053c(0x2fd)]),_0x3a0eac[_0x2a053c(0x265)](0x10))[_0x2a053c(0x2e3)](()=>{const _0x16d21d=_0x2a053c;this[_0x16d21d(0x3d5)]();}));}};_0x59361c=_0x499fab([_0x278669(0x1,_0x496d06[_0x54cb3d(0x257)](_0x110776[_0x54cb3d(0x341)])),_0x278669(0x2,_0x496d06[_0x54cb3d(0x257)](_0x96e5af)),_0x278669(0x3,_0x496d06[_0x54cb3d(0x3c7)]),_0x278669(0x4,_0x496d06[_0x54cb3d(0x257)](_0x496d06[_0x54cb3d(0x1f3)]))],_0x59361c);const _0x56dad6=0x1,_0x5e1b55=1.5;class _0x548181 extends _0x8d3144['Shape']{constructor(_0x5a093c,_0xc3c98b){const _0x478a01=_0x54cb3d;super(_0x5a093c,_0xc3c98b),_0x3c80c3(this,'_color'),_0x3c80c3(this,_0x478a01(0x330),!0x1),_0x3c80c3(this,_0x478a01(0x3d2)),_0x3c80c3(this,_0x478a01(0x457),''),_0x3c80c3(this,_0x478a01(0x390),_0x478a01(0x36d)),_0x3c80c3(this,_0x478a01(0x30f)),(_0xc3c98b&&this['setShapeProps'](_0xc3c98b),this[_0x478a01(0x385)][_0x478a01(0x244)](()=>this[_0x478a01(0x46a)]({'hovered':!0x0})),this['onPointerLeave$'][_0x478a01(0x244)](()=>this[_0x478a01(0x46a)]({'hovered':!0x1})));}['setShapeProps'](_0x1d3821){const _0x4a131a=_0x54cb3d;var _0x2cbecd,_0x42f18a,_0x5a84ec,_0x33ccbd,_0x5544fc,_0x10a017;this[_0x4a131a(0x3fe)]=(_0x2cbecd=_0x1d3821[_0x4a131a(0x46e)])!=null?_0x2cbecd:this[_0x4a131a(0x3fe)],this[_0x4a131a(0x330)]=(_0x42f18a=_0x1d3821[_0x4a131a(0x276)])!=null?_0x42f18a:this['_hovered'],this[_0x4a131a(0x3d2)]=(_0x5a84ec=_0x1d3821[_0x4a131a(0x360)])!=null?_0x5a84ec:this[_0x4a131a(0x3d2)],this[_0x4a131a(0x457)]=(_0x33ccbd=_0x1d3821[_0x4a131a(0x32e)])!=null?_0x33ccbd:this[_0x4a131a(0x457)],this[_0x4a131a(0x390)]=(_0x5544fc=_0x1d3821[_0x4a131a(0x487)])!=null?_0x5544fc:this[_0x4a131a(0x390)],this['_backgroundColor']=(_0x10a017=_0x1d3821[_0x4a131a(0x44c)])!=null?_0x10a017:this[_0x4a131a(0x30f)],this[_0x4a131a(0x220)]({'width':_0x1d3821['width'],'height':_0x1d3821['height']});}[_0x54cb3d(0x324)](_0x81d994){const _0x48ed47=_0x54cb3d,{row:_0x1c816c,column:_0x241c08}=_0x81d994;if(_0x1c816c>=this[_0x48ed47(0x3d2)][_0x48ed47(0x406)]&&_0x1c816c<=this[_0x48ed47(0x3d2)]['endRow']&&_0x241c08>=this[_0x48ed47(0x3d2)]['startColumn']&&_0x241c08<=this[_0x48ed47(0x3d2)][_0x48ed47(0x2f8)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x48ed47(0x46a)]({'hovered':!0x1});}['triggerDblclick'](_0x140fb){return!0x1;}[_0x54cb3d(0x3ba)](_0xc4daf9){const _0x3909e7=_0x54cb3d;_0x8d3144[_0x3909e7(0x26c)][_0x3909e7(0x3ae)](_0xc4daf9,{'width':this[_0x3909e7(0x2a5)],'height':this[_0x3909e7(0x31a)],'strokeWidth':_0x5e1b55,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x3909e7(0x30f)]}),this[_0x3909e7(0x330)]&&(_0xc4daf9['save'](),_0xc4daf9[_0x3909e7(0x45b)](0x1,0x0,0x0,0x1,this[_0x3909e7(0x2a5)],this['_labelPosition']===_0x3909e7(0x243)?0x0:-0x14),_0x4d3031[_0x3909e7(0x3ae)](_0xc4daf9,{'text':this['_name'],'color':this[_0x3909e7(0x3fe)]}),_0xc4daf9[_0x3909e7(0x21b)]());}}var _0x48b13f=Object[_0x54cb3d(0x35b)],_0x3b1b1e=(_0x289d8b,_0x4adc15,_0x4e3a07,_0x97668)=>{const _0x17e5e8=_0x54cb3d;for(var _0x192b8b=_0x97668>0x1?void 0x0:_0x97668?_0x48b13f(_0x4adc15,_0x4e3a07):_0x4adc15,_0x51ebef=_0x289d8b[_0x17e5e8(0x1e8)]-0x1,_0x54dba0;_0x51ebef>=0x0;_0x51ebef--)(_0x54dba0=_0x289d8b[_0x51ebef])&&(_0x192b8b=_0x54dba0(_0x192b8b)||_0x192b8b);return _0x192b8b;},_0x484f2a=(_0x3d62c8,_0x219dd4)=>(_0x38f33a,_0x5956ad)=>_0x219dd4(_0x38f33a,_0x5956ad,_0x3d62c8);const _0x3607da=0x1389;let _0x4ab05a=class extends _0x496d06['RxDisposable']{constructor(_0x3d3553,_0x26fb44,_0x3a2381,_0x415f9e){const _0x1b3aa4=_0x54cb3d;super(),_0x3c80c3(this,_0x1b3aa4(0x34e),new Set()),_0x3c80c3(this,_0x1b3aa4(0x3dc),null),(this[_0x1b3aa4(0x3cd)]=_0x3d3553,this[_0x1b3aa4(0x3dd)]=_0x26fb44,this[_0x1b3aa4(0x3b8)]=_0x3a2381,this[_0x1b3aa4(0x3f1)]=_0x415f9e,this[_0x1b3aa4(0x407)]());}[_0x54cb3d(0x407)](){const _0x1983df=_0x54cb3d;this[_0x1983df(0x3dd)][_0x1983df(0x28f)][_0x1983df(0x32d)](_0x3a0eac[_0x1983df(0x41e)](this[_0x1983df(0x3e5)]),_0x3a0eac['switchMap'](_0x53018f=>{const _0x4445a8=_0x1983df;if(_0x53018f){const _0x1cd527=_0x53018f[_0x4445a8(0x475)];return _0x1f84ca['combineLatest'](this[_0x4445a8(0x3b8)][_0x4445a8(0x2f5)](this['_context']['unitId']),this[_0x4445a8(0x3f1)][_0x4445a8(0x3df)])[_0x4445a8(0x32d)](_0x3a0eac[_0x4445a8(0x3fc)](([_0x4d519b,_0x4a1e88])=>{const _0x3c8f26=_0x4445a8,_0xf0ca6=new Map();return _0x4d519b[_0x3c8f26(0x311)]((_0x532f95,_0x49409d)=>{const _0x22d9a8=_0x3c8f26;if(_0x532f95['sheetID']===_0x1cd527){const _0x1da49f={..._0x532f95};_0x1da49f[_0x22d9a8(0x46e)]=this['_themeService'][_0x22d9a8(0x3a3)](_0x532f95['color']),_0xf0ca6[_0x22d9a8(0x327)](_0x49409d,_0x1da49f);}}),{'skeleton':_0x53018f,'cursors':_0xf0ca6};}));}return _0x1f84ca['of']({'skeleton':null,'cursors':new Map()});}))[_0x1983df(0x2e3)](({skeleton:_0x38edc1,cursors:_0x573874})=>{const _0x2435e0=_0x1983df;this[_0x2435e0(0x27c)](),_0x38edc1&&this[_0x2435e0(0x361)](_0x38edc1,_0x573874);}),this[_0x1983df(0x3dd)][_0x1983df(0x28f)]['subscribe'](_0x1fc122=>{const _0x5ae94b=_0x1983df;if(_0x1fc122==null)return;const {skeleton:_0x196183}=_0x1fc122,{scene:_0x11b3d5}=this[_0x5ae94b(0x3cd)];_0x11b3d5[_0x5ae94b(0x3ca)][_0x5ae94b(0x244)](_0x496d06[_0x5ae94b(0x236)](_0x26c02=>{const _0x2c56c0=_0x5ae94b;var _0x4b638b,_0x3d9be3;const {offsetX:_0x5e860a,offsetY:_0xca40cf}=_0x26c02,{x:_0x2655bc,y:_0x2d59e4}=_0x11b3d5[_0x2c56c0(0x295)](_0x8d3144[_0x2c56c0(0x362)][_0x2c56c0(0x20e)]([_0x5e860a,_0xca40cf])),{scaleX:_0x30e145,scaleY:_0x51779b}=_0x11b3d5[_0x2c56c0(0x392)](),_0x5cad01=_0x11b3d5['getViewport'](_0x8d3144[_0x2c56c0(0x454)][_0x2c56c0(0x453)]),_0x3a89c1=_0x11b3d5[_0x2c56c0(0x2c3)](_0x8d3144['Vector2']['FromArray']([_0x2655bc,_0x2d59e4]),_0x5cad01),_0x283faf=_0x196183[_0x2c56c0(0x43a)](_0x5e860a,_0xca40cf,_0x30e145,_0x51779b,_0x3a89c1);((_0x4b638b=this[_0x2c56c0(0x3dc)])==null?void 0x0:_0x4b638b['column'])===_0x283faf[_0x2c56c0(0x469)]&&((_0x3d9be3=this[_0x2c56c0(0x3dc)])==null?void 0x0:_0x3d9be3[_0x2c56c0(0x2fc)])===_0x283faf[_0x2c56c0(0x2fc)]||this['_cursors']['forEach'](_0x9245bb=>{const _0x4d437f=_0x2c56c0;_0x9245bb[_0x4d437f(0x324)](_0x283faf);});},0x64));});}['_updateCollabCursors'](_0x2fcbe7,_0x21ea26){const _0x3bd370=_0x54cb3d;var _0x5b5e6a;const _0x4ce8ad=(_0x5b5e6a=this['_sheetSkeletonManagerService'][_0x3bd370(0x372)]())==null?void 0x0:_0x5b5e6a[_0x3bd370(0x2e8)];if(!_0x4ce8ad)return;const _0x577ea3=this['_getSheetObject']();if(!_0x577ea3)return;this[_0x3bd370(0x34e)]['forEach'](_0x187fbb=>{const _0x49192d=_0x3bd370;_0x187fbb[_0x49192d(0x37a)]();});const {scene:_0x3311de}=_0x577ea3,_0x5eb7ba=_0x3ec996(Array['from'](_0x21ea26[_0x3bd370(0x421)]()))[_0x3bd370(0x3fc)](_0x5c4afc=>{const _0x5817d=_0x3bd370,{color:_0x4348b7,range:_0x15c39a,name:_0x33c9fd,selection:_0x186f89,sheetID:_0x547e08}=_0x5c4afc,{startColumn:_0x264f9a,startRow:_0x3854f8,endColumn:_0x8dd74c,endRow:_0x31ffc6}=_0x15c39a,_0x3d1b3c=_0x4f6f98[_0x5817d(0x27f)](_0x3854f8,_0x264f9a,_0x3311de,_0x4ce8ad),_0x201a5e=_0x4f6f98[_0x5817d(0x27f)](_0x31ffc6,_0x8dd74c,_0x3311de,_0x4ce8ad),{columnHeaderHeightAndMarginTop:_0x48c2f4}=_0x4ce8ad,{startX:_0x50238d,startY:_0x448d01}=_0x3d1b3c,{endX:_0x5ee533,endY:_0xabe5f7}=_0x201a5e,_0x2b1e0b=_0x5ee533-_0x50238d,_0x4db871=_0xabe5f7-_0x448d01,_0x444846={'labelPosition':_0x448d01-_0x48c2f4>=_0x3ce736?_0x5817d(0x36d):_0x5817d(0x243),'sheetID':_0x547e08,'range':_0x15c39a,'color':_0x4348b7,'name':_0x33c9fd,'selection':_0x186f89,'left':_0x50238d,'top':_0x448d01,'width':_0x2b1e0b,'height':_0x4db871,'evented':!0x1,'zIndex':_0x3607da};return new _0x548181(_0x33c9fd,_0x444846);});_0x3311de[_0x3bd370(0x35a)](_0x5eb7ba,_0x56dad6),this[_0x3bd370(0x34e)]=new Set(_0x5eb7ba);}[_0x54cb3d(0x27c)](){const _0x47f569=_0x54cb3d;var _0x54a954;(_0x54a954=this['_cursors'])==null||_0x54a954[_0x47f569(0x311)](_0x51cdf2=>_0x51cdf2[_0x47f569(0x2a0)]());}[_0x54cb3d(0x1f0)](){const _0x1841b8=_0x54cb3d;return _0x4f6f98[_0x1841b8(0x449)](this[_0x1841b8(0x3cd)]['unit'],this['_context']);}};_0x4ab05a=_0x3b1b1e([_0x484f2a(0x1,_0x496d06[_0x54cb3d(0x257)](_0x4f6f98[_0x54cb3d(0x370)])),_0x484f2a(0x2,_0x496d06['Inject'](_0x96e5af)),_0x484f2a(0x3,_0x496d06[_0x54cb3d(0x257)](_0x496d06[_0x54cb3d(0x1f3)]))],_0x4ab05a);function _0x3ec996(_0x53c1bb){const _0x314dc1=_0x54cb3d,_0x48e170=new Map();return _0x53c1bb[_0x314dc1(0x311)](_0x1fd4a4=>{const _0x469d63=_0x314dc1;if(_0x48e170[_0x469d63(0x43b)](_0x1fd4a4[_0x469d63(0x329)])){const _0x52f7f5=_0x48e170[_0x469d63(0x479)](_0x1fd4a4['selection']);_0x52f7f5[_0x469d63(0x32e)]+=',\x20'+_0x1fd4a4['name'];}else _0x48e170[_0x469d63(0x327)](_0x1fd4a4[_0x469d63(0x329)],_0x1fd4a4);}),Array['from'](_0x48e170[_0x314dc1(0x421)]());}var _0x22efd5=function(){const _0x232af7=_0x54cb3d;return _0x22efd5=Object['assign']||function(_0xa03ec5){const _0x24c852=_0x1d1e;for(var _0x12756a,_0x38d2e0=0x1,_0x213a03=arguments['length'];_0x38d2e0<_0x213a03;_0x38d2e0++){_0x12756a=arguments[_0x38d2e0];for(var _0x30e5c5 in _0x12756a)Object[_0x24c852(0x477)][_0x24c852(0x3fa)]['call'](_0x12756a,_0x30e5c5)&&(_0xa03ec5[_0x30e5c5]=_0x12756a[_0x30e5c5]);}return _0xa03ec5;},_0x22efd5[_0x232af7(0x2eb)](this,arguments);},_0x4fb377=function(_0x4aa583,_0x280396){const _0x21f7f1=_0x54cb3d;var _0x60e1b0={};for(var _0x341d76 in _0x4aa583)Object[_0x21f7f1(0x477)][_0x21f7f1(0x3fa)][_0x21f7f1(0x3bd)](_0x4aa583,_0x341d76)&&_0x280396[_0x21f7f1(0x352)](_0x341d76)<0x0&&(_0x60e1b0[_0x341d76]=_0x4aa583[_0x341d76]);if(_0x4aa583!=null&&typeof Object['getOwnPropertySymbols']==_0x21f7f1(0x298)){for(var _0x3e076c=0x0,_0x341d76=Object[_0x21f7f1(0x412)](_0x4aa583);_0x3e076c<_0x341d76['length'];_0x3e076c++)_0x280396[_0x21f7f1(0x352)](_0x341d76[_0x3e076c])<0x0&&Object[_0x21f7f1(0x477)][_0x21f7f1(0x3ac)][_0x21f7f1(0x3bd)](_0x4aa583,_0x341d76[_0x3e076c])&&(_0x60e1b0[_0x341d76[_0x3e076c]]=_0x4aa583[_0x341d76[_0x3e076c]]);}return _0x60e1b0;},_0x14074c=_0xf931bd[_0x54cb3d(0x25e)](function(_0x172d0c,_0x15a4b8){const _0x4e3843=_0x54cb3d;var _0x25e84e=_0x172d0c['icon'],_0x38f156=_0x172d0c['id'],_0x598f3b=_0x172d0c['className'],_0x802c76=_0x172d0c[_0x4e3843(0x455)],_0x3d59fc=_0x4fb377(_0x172d0c,[_0x4e3843(0x24f),'id',_0x4e3843(0x429),_0x4e3843(0x455)]),_0x2bbbf3='univerjs-icon\x20univerjs-icon-'['concat'](_0x38f156,'\x20')['concat'](_0x598f3b||'')[_0x4e3843(0x22f)](),_0x1b63f9=_0xf931bd['useRef']('_'[_0x4e3843(0x30b)](_0x11a10c()));return _0x543c06(_0x25e84e,''[_0x4e3843(0x30b)](_0x38f156),{'defIds':_0x25e84e['defIds'],'idSuffix':_0x1b63f9[_0x4e3843(0x21e)]},_0x22efd5({'ref':_0x15a4b8,'className':_0x2bbbf3},_0x3d59fc),_0x802c76);});function _0x543c06(_0x3171fe,_0x1c9378,_0x12d626,_0x6c1398,_0x508b10){const _0x1c83aa=_0x54cb3d;return _0xf931bd[_0x1c83aa(0x3e7)](_0x3171fe['tag'],_0x22efd5(_0x22efd5({'key':_0x1c9378},_0x5a54d1(_0x3171fe,_0x12d626,_0x508b10)),_0x6c1398),(_0x599c20(_0x3171fe,_0x12d626)[_0x1c83aa(0x367)]||[])[_0x1c83aa(0x3fc)](function(_0x1e71dd,_0x3c089a){const _0x8fa91f=_0x1c83aa;return _0x543c06(_0x1e71dd,''[_0x8fa91f(0x30b)](_0x1c9378,'-')[_0x8fa91f(0x30b)](_0x3171fe[_0x8fa91f(0x2c6)],'-')[_0x8fa91f(0x30b)](_0x3c089a),_0x12d626,void 0x0,_0x508b10);}));}function _0x5a54d1(_0x59c4f6,_0x1b61f2,_0x4dd4a1){const _0x24532a=_0x54cb3d;var _0x955e77=_0x22efd5({},_0x59c4f6[_0x24532a(0x267)]);_0x4dd4a1!=null&&_0x4dd4a1[_0x24532a(0x2fe)]&&_0x955e77['fill']===_0x24532a(0x2fe)&&(_0x955e77[_0x24532a(0x467)]=_0x4dd4a1[_0x24532a(0x2fe)]),_0x59c4f6[_0x24532a(0x2c6)]===_0x24532a(0x398)&&_0x955e77['id']&&(_0x955e77['id']=_0x955e77['id']+_0x1b61f2[_0x24532a(0x3cb)]),Object[_0x24532a(0x41f)](_0x955e77)[_0x24532a(0x311)](function(_0xd9cfd3){const _0x17233a=_0x24532a;var _0x5912ff=_0xd9cfd3[0x0],_0x2e3495=_0xd9cfd3[0x1];_0x5912ff===_0x17233a(0x398)&&typeof _0x2e3495==_0x17233a(0x331)&&(_0x955e77[_0x5912ff]=_0x2e3495[_0x17233a(0x3bc)](/url\(#(.*)\)/,_0x17233a(0x271)[_0x17233a(0x30b)](_0x1b61f2[_0x17233a(0x3cb)],')')));});var _0x3199ec=_0x1b61f2[_0x24532a(0x44d)];return!_0x3199ec||_0x3199ec[_0x24532a(0x1e8)]===0x0||(_0x59c4f6['tag']===_0x24532a(0x301)&&_0x955e77[_0x24532a(0x3fd)]&&(_0x955e77[_0x24532a(0x3fd)]=_0x955e77[_0x24532a(0x3fd)]+_0x1b61f2[_0x24532a(0x3cb)]),Object[_0x24532a(0x41f)](_0x955e77)[_0x24532a(0x311)](function(_0x3f1c9e){const _0x49749d=_0x24532a;var _0x28bd43=_0x3f1c9e[0x0],_0xd5e5bf=_0x3f1c9e[0x1];typeof _0xd5e5bf==_0x49749d(0x331)&&(_0x955e77[_0x28bd43]=_0xd5e5bf['replace'](/url\(#(.*)\)/,_0x49749d(0x271)['concat'](_0x1b61f2['idSuffix'],')')));})),_0x955e77;}function _0x599c20(_0x3d652f,_0x14e0a3){const _0x30f7ad=_0x54cb3d;var _0x40e41a,_0x269c90=_0x14e0a3[_0x30f7ad(0x44d)];return!_0x269c90||_0x269c90[_0x30f7ad(0x1e8)]===0x0?_0x3d652f:_0x3d652f['tag']===_0x30f7ad(0x1df)&&(!((_0x40e41a=_0x3d652f[_0x30f7ad(0x367)])===null||_0x40e41a===void 0x0)&&_0x40e41a[_0x30f7ad(0x1e8)])?_0x22efd5(_0x22efd5({},_0x3d652f),{'children':_0x3d652f['children']['map'](function(_0x1310ba){const _0xa0e21f=_0x30f7ad;return typeof _0x1310ba[_0xa0e21f(0x267)]['id']==_0xa0e21f(0x331)&&_0x269c90&&_0x269c90['includes'](_0x1310ba[_0xa0e21f(0x267)]['id'])?_0x22efd5(_0x22efd5({},_0x1310ba),{'attrs':_0x22efd5(_0x22efd5({},_0x1310ba[_0xa0e21f(0x267)]),{'id':_0x1310ba[_0xa0e21f(0x267)]['id']+_0x14e0a3[_0xa0e21f(0x3cb)]})}):_0x1310ba;})}):_0x3d652f;}function _0x11a10c(){const _0x4cfe18=_0x54cb3d;return Math[_0x4cfe18(0x1ff)]()[_0x4cfe18(0x405)](0x24)[_0x4cfe18(0x39c)](0x2,0x8);}_0x14074c[_0x54cb3d(0x413)]=_0x54cb3d(0x349);var _0x595ab1={'tag':_0x54cb3d(0x47a),'attrs':{'xmlns':_0x54cb3d(0x247),'fill':_0x54cb3d(0x365),'viewBox':_0x54cb3d(0x39a),'width':_0x54cb3d(0x374),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-icon_clip0_910_343)'},'children':[{'tag':_0x54cb3d(0x321),'attrs':{'stroke':_0x54cb3d(0x45f),'d':_0x54cb3d(0x25b),'strokeLinecap':_0x54cb3d(0x2a2),'strokeLinejoin':_0x54cb3d(0x2a2),'strokeWidth':1.2}}]},{'tag':_0x54cb3d(0x1df),'attrs':{},'children':[{'tag':_0x54cb3d(0x2ef),'attrs':{'id':_0x54cb3d(0x2b8)},'children':[{'tag':_0x54cb3d(0x321),'attrs':{'fill':'white','d':_0x54cb3d(0x2ad)}}]}]}],'defIds':[_0x54cb3d(0x2b8)]},_0x50f7eb=_0xf931bd[_0x54cb3d(0x25e)](function(_0x2509ee,_0x450378){const _0x1d3adb=_0x54cb3d;return _0xf931bd[_0x1d3adb(0x3e7)](_0x14074c,Object[_0x1d3adb(0x1e9)]({},_0x2509ee,{'id':'off-line-icon','ref':_0x450378,'icon':_0x595ab1}));});_0x50f7eb[_0x54cb3d(0x413)]='OffLineIcon';var _0x388e9b={'tag':'svg','attrs':{'xmlns':_0x54cb3d(0x247),'fill':_0x54cb3d(0x365),'viewBox':_0x54cb3d(0x202),'width':_0x54cb3d(0x374),'height':_0x54cb3d(0x374)},'children':[{'tag':'g','attrs':{'clipPath':_0x54cb3d(0x21a)},'children':[{'tag':_0x54cb3d(0x321),'attrs':{'stroke':_0x54cb3d(0x45f),'d':_0x54cb3d(0x2c8),'strokeLinecap':_0x54cb3d(0x2a2),'strokeLinejoin':_0x54cb3d(0x2a2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x54cb3d(0x2ef),'attrs':{'id':_0x54cb3d(0x3e3)},'children':[{'tag':_0x54cb3d(0x321),'attrs':{'fill':_0x54cb3d(0x42b),'d':_0x54cb3d(0x2ad),'transform':_0x54cb3d(0x42d)}}]}]}],'defIds':[_0x54cb3d(0x3e3)]},_0x1ba4f2=_0xf931bd[_0x54cb3d(0x25e)](function(_0x27d6da,_0x2624e9){const _0x434acd=_0x54cb3d;return _0xf931bd[_0x434acd(0x3e7)](_0x14074c,Object[_0x434acd(0x1e9)]({},_0x27d6da,{'id':_0x434acd(0x27e),'ref':_0x2624e9,'icon':_0x388e9b}));});_0x1ba4f2[_0x54cb3d(0x413)]=_0x54cb3d(0x29a);function _0x5bee1f(_0x303a4a){const _0x5e9b84=_0x54cb3d;switch(_0x303a4a){case _0xbe53a0[_0x5e9b84(0x423)][_0x5e9b84(0x386)]:return _0x5e9b84(0x1f7);case _0xbe53a0[_0x5e9b84(0x423)][_0x5e9b84(0x40e)]:return'collabStatus.conflict';case _0xbe53a0['CollaborationStatus'][_0x5e9b84(0x44f)]:return'collabStatus.fetchMiss';case _0xbe53a0[_0x5e9b84(0x423)][_0x5e9b84(0x46d)]:return'collabStatus.notCollab';case _0xbe53a0[_0x5e9b84(0x423)][_0x5e9b84(0x2a8)]:case _0xbe53a0[_0x5e9b84(0x423)][_0x5e9b84(0x213)]:return _0x5e9b84(0x33e);case _0xbe53a0[_0x5e9b84(0x423)][_0x5e9b84(0x38d)]:case _0xbe53a0[_0x5e9b84(0x423)][_0x5e9b84(0x379)]:return _0x5e9b84(0x254);}}function _0x62e78c(_0x5cd5c2){const _0xa58bc5=_0x54cb3d,{status$:_0x506943}=_0x5cd5c2,_0x59d5d9=_0x1ea881['useObservable'](_0x506943,_0xbe53a0['CollaborationStatus'][_0xa58bc5(0x46d)]),_0x43e5da=_0x1ea881[_0xa58bc5(0x2a4)](_0x496d06[_0xa58bc5(0x411)]),_0x3bb372=_0x1ea881[_0xa58bc5(0x2a4)](_0xbe53a0[_0xa58bc5(0x2fa)]),_0x306568=_0x59d5d9!==_0xbe53a0[_0xa58bc5(0x423)][_0xa58bc5(0x386)],_0x3c464f=_0x43e5da['t'](_0x5bee1f(_0x59d5d9)),_0x4dc1cf=_0x306568?_0xef77fd[_0xa58bc5(0x3d8)](_0x1ba4f2,{}):_0xef77fd[_0xa58bc5(0x3d8)](_0x50f7eb,{}),_0x5dff20=_0xf931bd[_0xa58bc5(0x1f8)](()=>{const _0x4bf94e=_0xa58bc5;_0x306568||_0x3bb372[_0x4bf94e(0x20c)]();},[_0x306568,_0x3bb372]);function _0x43d38d(){const _0x304cdb=_0xa58bc5;return _0xef77fd[_0x304cdb(0x37f)]('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x5dff20,'children':[_0xef77fd[_0x304cdb(0x3d8)](_0x304cdb(0x464),{'className':_0x47fd52[_0x304cdb(0x46f)](_0x304cdb(0x2f4),{'univer-text-green-500':_0x306568,'univer-text-red-500':!_0x306568}),'children':_0x4dc1cf}),_0xef77fd['jsx'](_0x304cdb(0x464),{'className':_0x304cdb(0x40f),'children':_0x3c464f})]});}return _0x306568?_0x43d38d():_0xef77fd['jsx'](_0x47fd52['Tooltip'],{'title':_0x43e5da['t'](_0xa58bc5(0x266)),'children':_0x43d38d()});}var _0xcc1194=Object[_0x54cb3d(0x35b)],_0xbda305=(_0x593dc7,_0x38e864,_0x47a1e4,_0x30b187)=>{const _0x454630=_0x54cb3d;for(var _0xd3d4be=_0x30b187>0x1?void 0x0:_0x30b187?_0xcc1194(_0x38e864,_0x47a1e4):_0x38e864,_0x18ded1=_0x593dc7[_0x454630(0x1e8)]-0x1,_0x316004;_0x18ded1>=0x0;_0x18ded1--)(_0x316004=_0x593dc7[_0x18ded1])&&(_0xd3d4be=_0x316004(_0xd3d4be)||_0xd3d4be);return _0xd3d4be;},_0xc66d39=(_0x55325b,_0x17ecdf)=>(_0x2e77eb,_0x2dfa41)=>_0x17ecdf(_0x2e77eb,_0x2dfa41,_0x55325b);_0xf30996[_0x54cb3d(0x42f)]=class extends _0x496d06[_0x54cb3d(0x3be)]{constructor(_0x77efa,_0x3fe1e1,_0x6f2778,_0x2a219a){const _0x19e875=_0x54cb3d;super(),_0x3c80c3(this,_0x19e875(0x35f),new _0x1f84ca[(_0x19e875(0x3c4))](_0xbe53a0[_0x19e875(0x423)][_0x19e875(0x46d)])),(this[_0x19e875(0x3ce)]=_0x77efa,this[_0x19e875(0x32a)]=_0x3fe1e1,this['_collaborationController']=_0x6f2778,this['_uiPartsService']=_0x2a219a,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x54cb3d(0x319)](){const _0x3eeb1a=_0x54cb3d;this[_0x3eeb1a(0x37d)](this[_0x3eeb1a(0x3ce)][_0x3eeb1a(0x383)][_0x3eeb1a(0x32d)](_0x1f84ca[_0x3eeb1a(0x223)](()=>{const _0x3de517=_0x3eeb1a,_0x28776=this[_0x3de517(0x3ce)][_0x3de517(0x2d7)]();return _0x28776?this['_collaborationController'][_0x3de517(0x45d)](_0x28776['getUnitId']()):_0x1f84ca['of'](null);}),_0x1f84ca[_0x3eeb1a(0x223)](_0x2ba8f3=>_0x2ba8f3?_0x2ba8f3[_0x3eeb1a(0x289)]:_0x1f84ca['of'](_0xbe53a0['CollaborationStatus'][_0x3eeb1a(0x46d)])))[_0x3eeb1a(0x2e3)](_0x58cb34=>{const _0x367138=_0x3eeb1a;this[_0x367138(0x35f)][_0x367138(0x34f)](_0x58cb34);}));}[_0x54cb3d(0x238)](){const _0x3a553e=_0x54cb3d;this[_0x3a553e(0x37d)](this['_uiPartsService']['registerComponent'](_0x1ea881['BuiltInUIPart'][_0x3a553e(0x377)],()=>_0x1ea881[_0x3a553e(0x351)](_0x57dbc8({'status$':this[_0x3a553e(0x35f)][_0x3a553e(0x1fc)]()}),this[_0x3a553e(0x32a)])));}},_0xf30996[_0x54cb3d(0x42f)]=_0xbda305([_0xc66d39(0x0,_0x496d06[_0x54cb3d(0x218)]),_0xc66d39(0x1,_0x496d06['Inject'](_0x496d06['Injector'])),_0xc66d39(0x2,_0x496d06[_0x54cb3d(0x257)](_0xbe53a0[_0x54cb3d(0x2d1)])),_0xc66d39(0x3,_0x1ea881['IUIPartsService'])],_0xf30996[_0x54cb3d(0x42f)]);function _0x57dbc8(_0x510343){const {status$:_0x4055cc}=_0x510343;return function(){return _0xef77fd['jsx'](_0x62e78c,{'status$':_0x4055cc});};}var _0x4cc7d7=Object['getOwnPropertyDescriptor'],_0x37ea79=(_0x1778aa,_0x5ba26f,_0x5702f9,_0x4f153b)=>{const _0x2d4907=_0x54cb3d;for(var _0x5bc888=_0x4f153b>0x1?void 0x0:_0x4f153b?_0x4cc7d7(_0x5ba26f,_0x5702f9):_0x5ba26f,_0x2886f7=_0x1778aa[_0x2d4907(0x1e8)]-0x1,_0x4899b8;_0x2886f7>=0x0;_0x2886f7--)(_0x4899b8=_0x1778aa[_0x2886f7])&&(_0x5bc888=_0x4899b8(_0x5bc888)||_0x5bc888);return _0x5bc888;},_0xcbe01f=(_0x48b5b0,_0x50d7cd)=>(_0x4820db,_0x567ae6)=>_0x50d7cd(_0x4820db,_0x567ae6,_0x48b5b0);let _0x41935c=class extends _0x496d06[_0x54cb3d(0x3be)]{constructor(_0x273e82,_0x599886,_0x1169b4,_0x3f42ea,_0x853d65,_0x468e61){const _0x4f4b68=_0x54cb3d;super(),this[_0x4f4b68(0x2bf)]=_0x273e82,this[_0x4f4b68(0x45c)]=_0x599886,this[_0x4f4b68(0x280)]=_0x1169b4,this[_0x4f4b68(0x33b)]=_0x3f42ea,this[_0x4f4b68(0x21d)]=_0x853d65,this['_localeService']=_0x468e61,this[_0x4f4b68(0x2bc)](),this['_initEvent']();}[_0x54cb3d(0x2bc)](){const _0x3b0d23=_0x54cb3d;this[_0x3b0d23(0x37d)](this['_beforeCloseService'][_0x3b0d23(0x3d4)](()=>{const _0x59ab03=_0x3b0d23;if(this[_0x59ab03(0x45c)]['saveTaskMap'][_0x59ab03(0x41c)])return this[_0x59ab03(0x380)]['t'](_0x59ab03(0x26f));}));}[_0x54cb3d(0x416)](){const _0x5cf2ed=_0x54cb3d;this[_0x5cf2ed(0x37d)](this[_0x5cf2ed(0x280)]['event$'][_0x5cf2ed(0x2e3)](_0x3246c7=>{const _0x15d22f=_0x5cf2ed;_0x3246c7['id']===_0xbe53a0[_0x15d22f(0x1eb)][_0x15d22f(0x445)]&&this['_messageService'][_0x15d22f(0x420)]({'type':_0x47fd52[_0x15d22f(0x47f)][_0x15d22f(0x3c6)],'content':this[_0x15d22f(0x380)]['t'](_0x15d22f(0x43c))}),_0x3246c7['id']===_0xbe53a0['CollaborationUIEventId'][_0x15d22f(0x427)]&&this[_0x15d22f(0x33b)][_0x15d22f(0x420)]({'type':_0x47fd52[_0x15d22f(0x47f)]['Warning'],'content':this[_0x15d22f(0x380)]['t']('collaboration.closeRoom')}),_0x3246c7['id']===_0xbe53a0['CollaborationUIEventId'][_0x15d22f(0x2d8)]&&this[_0x15d22f(0x21d)][_0x15d22f(0x420)]({'title':this[_0x15d22f(0x380)]['t']('permission.title'),'content':this[_0x15d22f(0x380)]['t'](_0x15d22f(0x334)),'type':_0x15d22f(0x35e),'duration':0x0}),_0x3246c7['id']===_0xbe53a0['CollaborationUIEventId'][_0x15d22f(0x40e)]&&this[_0x15d22f(0x33b)]['show']({'type':_0x47fd52[_0x15d22f(0x47f)]['Error'],'content':this[_0x15d22f(0x380)]['t']('collaboration.closeRoom')+'('+_0x3246c7[_0x15d22f(0x3c1)]+')'}),_0x3246c7['id']===_0xbe53a0['CollaborationUIEventId'][_0x15d22f(0x270)]&&this[_0x15d22f(0x33b)]['show']({'type':_0x47fd52[_0x15d22f(0x47f)][_0x15d22f(0x3c6)],'content':this[_0x15d22f(0x380)]['t'](_0x3246c7['data']||'')}),_0x3246c7['id']===_0xbe53a0[_0x15d22f(0x1eb)][_0x15d22f(0x3ec)]&&this[_0x15d22f(0x33b)][_0x15d22f(0x420)]({'type':_0x47fd52[_0x15d22f(0x47f)][_0x15d22f(0x3c6)],'content':this[_0x15d22f(0x380)]['t']('session.will-retry')}),_0x3246c7['id']===_0xbe53a0[_0x15d22f(0x1eb)]['SOCKET_FAILED']&&this[_0x15d22f(0x33b)][_0x15d22f(0x420)]({'type':_0x47fd52[_0x15d22f(0x47f)][_0x15d22f(0x3ff)],'content':this[_0x15d22f(0x380)]['t'](_0x15d22f(0x402))}),_0x3246c7['id']===_0xbe53a0[_0x15d22f(0x1eb)][_0x15d22f(0x281)]&&this[_0x15d22f(0x33b)]['show']({'type':_0x47fd52[_0x15d22f(0x47f)][_0x15d22f(0x3ff)],'content':this[_0x15d22f(0x380)]['t'](_0x15d22f(0x234))});}));}};_0x41935c=_0x37ea79([_0xcbe01f(0x0,_0x1ea881['IBeforeCloseService']),_0xcbe01f(0x1,_0xbe53a0[_0x54cb3d(0x203)]),_0xcbe01f(0x2,_0x496d06[_0x54cb3d(0x257)](_0xbe53a0[_0x54cb3d(0x316)])),_0xcbe01f(0x3,_0x1ea881[_0x54cb3d(0x451)]),_0xcbe01f(0x4,_0x1ea881[_0x54cb3d(0x23c)]),_0xcbe01f(0x5,_0x496d06[_0x54cb3d(0x257)](_0x496d06[_0x54cb3d(0x411)]))],_0x41935c);const _0x404276=_0x54cb3d(0x2bd),_0x44d1a5={},_0x42d8e5=_0x496d06[_0x54cb3d(0x3ab)]('uni.network.url-service');var _0x58feb7=Object[_0x54cb3d(0x35b)],_0x5052f9=(_0x1de160,_0x4f9e4d,_0x515078,_0x4bd091)=>{const _0x56a97e=_0x54cb3d;for(var _0x396004=_0x4bd091>0x1?void 0x0:_0x4bd091?_0x58feb7(_0x4f9e4d,_0x515078):_0x4f9e4d,_0x537d9d=_0x1de160[_0x56a97e(0x1e8)]-0x1,_0x50c0e9;_0x537d9d>=0x0;_0x537d9d--)(_0x50c0e9=_0x1de160[_0x537d9d])&&(_0x396004=_0x50c0e9(_0x396004)||_0x396004);return _0x396004;},_0x18d11f=(_0x128b40,_0x1bd1d9)=>(_0x1c43e1,_0xe19cf5)=>_0x1bd1d9(_0x1c43e1,_0xe19cf5,_0x128b40);_0xf30996[_0x54cb3d(0x3a9)]=class extends _0x496d06['RxDisposable']{constructor(_0x86c827,_0x2d273a,_0x24ad5f,_0x918361,_0x24fa8b){const _0x2f44cc=_0x54cb3d;super(),this[_0x2f44cc(0x277)]=_0x86c827,this['_logService']=_0x2d273a,this['_commandService']=_0x24ad5f,this[_0x2f44cc(0x2ac)]=_0x918361,_0x24fa8b?_0x24fa8b==null||_0x24fa8b[_0x2f44cc(0x436)]()[_0x2f44cc(0x31b)](()=>this[_0x2f44cc(0x407)]()):(this['_logService']['debug'](_0x2f44cc(0x444),_0x2f44cc(0x253)),this[_0x2f44cc(0x407)]());}async[_0x54cb3d(0x407)](){const _0x14be7d=_0x54cb3d,_0x394b2f=this[_0x14be7d(0x277)][_0x14be7d(0x2c1)](_0x14be7d(0x1fa)),_0x300e3e=this[_0x14be7d(0x277)][_0x14be7d(0x2c1)]('type'),_0x5a5263=this[_0x14be7d(0x277)][_0x14be7d(0x2c1)]('subunit');if(!_0x394b2f||!_0x300e3e){this[_0x14be7d(0x424)]['debug'](_0x14be7d(0x444),_0x14be7d(0x28a));return;}const _0x534d3f=await this[_0x14be7d(0x2ac)][_0x14be7d(0x47d)](_0x394b2f,Number(_0x300e3e),_0x5a5263);_0x534d3f&&_0x534d3f instanceof _0x496d06[_0x14be7d(0x484)]&&this['_setupSubUnitSync'](_0x534d3f);}async[_0x54cb3d(0x2ae)](_0xb16ec8){const _0x1b7f63=_0x54cb3d;await this[_0x1b7f63(0x461)](_0xb16ec8),_0xb16ec8[_0x1b7f63(0x394)][_0x1b7f63(0x32d)](_0x1f84ca[_0x1b7f63(0x41e)](this['dispose$']))[_0x1b7f63(0x2e3)](_0x2c6bae=>{const _0x5f5a03=_0x1b7f63;_0x2c6bae&&this[_0x5f5a03(0x2e9)](_0x2c6bae);}),this[_0x1b7f63(0x277)][_0x1b7f63(0x3c0)][_0x1b7f63(0x32d)](_0x1f84ca[_0x1b7f63(0x41e)](this[_0x1b7f63(0x3e5)]))[_0x1b7f63(0x2e3)](()=>this['_updateSubUnitFromURLParams'](_0xb16ec8));}['_updateURLWithCurrentState'](_0x53de48,_0x3c0ba5=!0x1){const _0x221e58=_0x54cb3d,_0x492daf=this[_0x221e58(0x277)][_0x221e58(0x2c1)]('subunit');_0x53de48[_0x221e58(0x415)]()!==_0x492daf&&this['_urlService'][_0x221e58(0x332)]('subunit',_0x53de48[_0x221e58(0x415)](),_0x3c0ba5);}async['_updateSubUnitFromURLParams'](_0x1d4230){const _0x4a81ec=_0x54cb3d;var _0x11403a;const _0x4b869f=this[_0x4a81ec(0x277)][_0x4a81ec(0x2c1)](_0x4a81ec(0x347));if(!_0x4b869f||!_0x1d4230[_0x4a81ec(0x3b0)](_0x4b869f)){const _0x492395=_0x1d4230[_0x4a81ec(0x3b3)]()[0x0],_0x43e980=_0x1d4230['getSheetBySheetId'](_0x492395);if(!_0x43e980)return;this['_updateURLWithCurrentState'](_0x43e980,!0x0),await this[_0x4a81ec(0x2e0)][_0x4a81ec(0x25a)](_0x36ae62['SetWorksheetActivateCommand']['id'],{'unitId':_0x1d4230[_0x4a81ec(0x2b4)](),'subUnitId':_0x492395});return;}((_0x11403a=_0x1d4230[_0x4a81ec(0x36f)]())==null?void 0x0:_0x11403a['getSheetId']())!==_0x4b869f&&await this['_commandService']['executeCommand'](_0x36ae62[_0x4a81ec(0x1ea)]['id'],{'unitId':_0x1d4230['getUnitId'](),'subUnitId':_0x4b869f});}},_0xf30996[_0x54cb3d(0x3a9)]=_0x5052f9([_0x18d11f(0x0,_0x42d8e5),_0x18d11f(0x1,_0x496d06[_0x54cb3d(0x3f6)]),_0x18d11f(0x2,_0x496d06[_0x54cb3d(0x3c7)]),_0x18d11f(0x3,_0x496d06[_0x54cb3d(0x257)](_0xbe53a0[_0x54cb3d(0x30e)])),_0x18d11f(0x4,_0x496d06[_0x54cb3d(0x473)](_0x34c09a[_0x54cb3d(0x355)]))],_0xf30996['CollaborationDataLoaderController']);var _0x3d043e=Object[_0x54cb3d(0x35b)],_0x4499ff=(_0x4ae656,_0x272889,_0x5884cc,_0x3cbc3a)=>{for(var _0x114279=_0x3cbc3a>0x1?void 0x0:_0x3cbc3a?_0x3d043e(_0x272889,_0x5884cc):_0x272889,_0x4704b7=_0x4ae656['length']-0x1,_0x4dc5b1;_0x4704b7>=0x0;_0x4704b7--)(_0x4dc5b1=_0x4ae656[_0x4704b7])&&(_0x114279=_0x4dc5b1(_0x114279)||_0x114279);return _0x114279;},_0x426068=(_0x3b9b90,_0x2ca8d4)=>(_0x14736c,_0xd90dcb)=>_0x2ca8d4(_0x14736c,_0xd90dcb,_0x3b9b90);let _0x13e534=class{constructor(_0x45ef9c,_0x272ea4,_0x51764d){const _0x3859e9=_0x54cb3d;this[_0x3859e9(0x32a)]=_0x45ef9c,this[_0x3859e9(0x2f6)]=_0x272ea4,this[_0x3859e9(0x24b)]=_0x51764d;}[_0x54cb3d(0x2f3)](_0x14566a){const _0x388291=_0x54cb3d;this[_0x388291(0x2cf)](_0x14566a),this[_0x388291(0x206)](_0x14566a);}[_0x54cb3d(0x36b)](_0x417ea1){const _0x35549f=_0x54cb3d,{unitID:_0x3dbe62}=_0x417ea1,_0x5e9b92=this['_renderManagerService']['getRenderById'](_0x3dbe62)[_0x35549f(0x3e1)](_0x35faaf[_0x35549f(0x441)]),{redoCache:_0x52b938}=_0x5e9b92[_0x35549f(0x2a3)]();if(_0x52b938['length']===0x0)return _0x417ea1;let _0x116278=_0x496d06[_0x35549f(0x3f7)]['deepClone'](_0x417ea1[_0x35549f(0x472)][0x0]);for(let _0x663e9a=0x0;_0x663e9a<_0x52b938['length'];_0x663e9a++){const _0x988026={'id':_0x35549f(0x29b),'params':{..._0x52b938[_0x663e9a]}},_0xc6e6b1=this[_0x35549f(0x2f6)]['transformMutation'](_0x116278,_0x988026,!0x1);if(_0xf2713c['isTransformMutationFailure'](_0xc6e6b1))throw _0xc6e6b1[_0x35549f(0x35e)];_0x116278=_0xc6e6b1[_0x35549f(0x3a8)];}return{..._0x496d06[_0x35549f(0x3f7)][_0x35549f(0x41a)](_0x417ea1),'mutations':[_0x116278]};}[_0x54cb3d(0x2cf)](_0x20e3c8){const _0x3c766e=_0x54cb3d,{unitID:_0x3f72b9}=_0x20e3c8,_0x7a7f30=this['_renderManagerService'][_0x3c766e(0x428)](_0x3f72b9)[_0x3c766e(0x3e1)](_0x35faaf[_0x3c766e(0x441)]),{undoCache:_0x4ccf9c,redoCache:_0x15c5a4}=_0x7a7f30[_0x3c766e(0x2a3)]();if(_0x4ccf9c[_0x3c766e(0x1e8)]===0x0||_0x15c5a4[_0x3c766e(0x1e8)]===0x0)return;const _0x47fd88=[],_0x2742a9=[];let _0x211eaf=_0x496d06[_0x3c766e(0x3f7)]['deepClone'](_0x20e3c8['mutations'][0x0]),_0x362266=_0x496d06[_0x3c766e(0x3f7)]['deepClone'](_0x20e3c8[_0x3c766e(0x472)][0x0]);for(let _0x58604b=_0x4ccf9c[_0x3c766e(0x1e8)]-0x1;_0x58604b>=0x0;_0x58604b--){const _0x4dad92={'id':_0x3c766e(0x29b),'params':{..._0x4ccf9c[_0x58604b]}},_0x5ec63c={'id':'doc.mutation.rich-text-editing','params':{..._0x15c5a4[_0x58604b]}},_0x3293b5=this[_0x3c766e(0x2f6)][_0x3c766e(0x3b7)](_0x211eaf,_0x4dad92,!0x1),_0x288977=this['_transformService'][_0x3c766e(0x3b7)](_0x362266,_0x5ec63c,!0x1);if(_0xf2713c['isTransformMutationFailure'](_0x3293b5))throw _0x3293b5[_0x3c766e(0x35e)];if(_0xf2713c['isTransformMutationFailure'](_0x288977))throw _0x288977[_0x3c766e(0x35e)];_0x47fd88[_0x3c766e(0x323)](_0x3293b5[_0x3c766e(0x399)][_0x3c766e(0x259)]),_0x2742a9[_0x3c766e(0x323)](_0x288977[_0x3c766e(0x399)][_0x3c766e(0x259)]),_0x211eaf=_0x3293b5[_0x3c766e(0x3a8)],_0x362266=_0x288977[_0x3c766e(0x3a8)];}_0x7a7f30[_0x3c766e(0x1e3)]({'undoCache':_0x47fd88,'redoCache':_0x2742a9});}[_0x54cb3d(0x206)](_0x4cfd82){const _0x1539a7=_0x54cb3d,{unitID:_0x341a67}=_0x4cfd82,_0x223a9b=this['_renderManagerService']['getRenderById'](_0x341a67)['with'](_0x35faaf[_0x1539a7(0x441)]),_0x5c53fb=_0x223a9b[_0x1539a7(0x369)]();if(_0x5c53fb==null)return;const _0x4f2f99=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4cfd82['unitID'],'actions':null,'textRanges':[_0x5c53fb]}}],_0x3d74b2=this[_0x1539a7(0x2f6)][_0x1539a7(0x38a)](_0x4cfd82,_0x4f2f99);if(!_0xf2713c['isTransformMutationsWithChangesetSuccess'](_0x3d74b2))throw _0x3d74b2[_0x1539a7(0x35e)];const _0x3f6329=_0x3d74b2['m2Prime'][0x0][_0x1539a7(0x259)][_0x1539a7(0x2aa)];Array[_0x1539a7(0x3f9)](_0x3f6329)&&_0x3f6329[_0x1539a7(0x1e8)]&&_0x223a9b[_0x1539a7(0x338)](_0x3f6329[0x0]);}};_0x13e534=_0x4499ff([_0x426068(0x0,_0x496d06[_0x54cb3d(0x257)](_0x496d06[_0x54cb3d(0x419)])),_0x426068(0x1,_0xf2713c[_0x54cb3d(0x31f)]),_0x426068(0x2,_0x8d3144[_0x54cb3d(0x22c)])],_0x13e534);var _0x6fa7e5=Object[_0x54cb3d(0x35b)],_0x41ad9d=(_0x3b717e,_0x2aa0ee,_0x341e86,_0x18e2b3)=>{for(var _0x230ff1=_0x18e2b3>0x1?void 0x0:_0x18e2b3?_0x6fa7e5(_0x2aa0ee,_0x341e86):_0x2aa0ee,_0x8ae2dd=_0x3b717e['length']-0x1,_0x547f40;_0x8ae2dd>=0x0;_0x8ae2dd--)(_0x547f40=_0x3b717e[_0x8ae2dd])&&(_0x230ff1=_0x547f40(_0x230ff1)||_0x230ff1);return _0x230ff1;},_0x44a23a=(_0x423441,_0x3de2a3)=>(_0x135660,_0x466f99)=>_0x3de2a3(_0x135660,_0x466f99,_0x423441);let _0x563bfa=class{constructor(_0x4b5fae,_0x3171c7,_0x12f45b){const _0xe9a034=_0x54cb3d;this[_0xe9a034(0x32a)]=_0x4b5fae,this[_0xe9a034(0x2f6)]=_0x3171c7,this[_0xe9a034(0x2a9)]=_0x12f45b;}['transformStateCache'](_0x28bd70){const _0x73b1e7=_0x54cb3d;this[_0x73b1e7(0x40a)](_0x28bd70);}[_0x54cb3d(0x36b)](_0x25921f){const _0x5807b8=_0x54cb3d,{unitID:_0x436fa1}=_0x25921f,{collaboration:_0x4b59a3}=this['_docStateChangeManagerService'][_0x5807b8(0x3ee)](_0x436fa1);if(_0x4b59a3[_0x5807b8(0x1e8)]===0x0)return _0x25921f;let _0x3d1a0e=_0x496d06[_0x5807b8(0x3f7)][_0x5807b8(0x41a)](_0x25921f[_0x5807b8(0x472)][0x0]);for(let _0x16b738=0x0;_0x16b738<_0x4b59a3[_0x5807b8(0x1e8)];_0x16b738++){const _0x2aea6c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4b59a3[_0x16b738]['unitId'],..._0x4b59a3[_0x16b738][_0x5807b8(0x233)]}},_0x2556f6=this[_0x5807b8(0x2f6)][_0x5807b8(0x3b7)](_0x3d1a0e,_0x2aea6c,!0x1);if(_0xf2713c[_0x5807b8(0x393)](_0x2556f6))throw _0x2556f6['error'];_0x3d1a0e=_0x2556f6[_0x5807b8(0x3a8)];}return{..._0x496d06[_0x5807b8(0x3f7)][_0x5807b8(0x41a)](_0x25921f),'mutations':[_0x3d1a0e]};}[_0x54cb3d(0x40a)](_0x29352b){const _0x2f585b=_0x54cb3d,{unitID:_0x56dde3}=_0x29352b,{history:_0x3f4610,collaboration:_0x386075}=this[_0x2f585b(0x2a9)][_0x2f585b(0x3ee)](_0x56dde3);if(_0x3f4610[_0x2f585b(0x1e8)]===0x0&&_0x386075[_0x2f585b(0x1e8)]===0x0)return;const _0x3a0b06=[],_0x28d3fa=[];let _0x245a2a=_0x496d06[_0x2f585b(0x3f7)][_0x2f585b(0x41a)](_0x29352b[_0x2f585b(0x472)][0x0]),_0x36394e=_0x496d06['Tools'][_0x2f585b(0x41a)](_0x29352b[_0x2f585b(0x472)][0x0]);for(let _0x253c9a=_0x3f4610[_0x2f585b(0x1e8)]-0x1;_0x253c9a>=0x0;_0x253c9a--){const _0x1a6bb8={'id':_0x2f585b(0x29b),'params':{'unitId':_0x3f4610[_0x253c9a][_0x2f585b(0x437)],..._0x3f4610[_0x253c9a][_0x2f585b(0x296)]}},_0x5e3b94={'id':_0x2f585b(0x29b),'params':{'unitId':_0x3f4610[_0x253c9a]['unitId'],..._0x3f4610[_0x253c9a][_0x2f585b(0x233)]}},_0x30e80e=this['_transformService']['transformMutation'](_0x245a2a,_0x1a6bb8,!0x1),_0x229381=this[_0x2f585b(0x2f6)][_0x2f585b(0x3b7)](_0x36394e,_0x5e3b94,!0x1);if(_0xf2713c[_0x2f585b(0x393)](_0x30e80e))throw _0x30e80e[_0x2f585b(0x35e)];if(_0xf2713c[_0x2f585b(0x393)](_0x229381))throw _0x229381[_0x2f585b(0x35e)];_0x3a0b06[_0x2f585b(0x323)]({..._0x3f4610[_0x253c9a],'undoState':_0x30e80e[_0x2f585b(0x399)][_0x2f585b(0x259)],'redoState':_0x229381[_0x2f585b(0x399)]['params']}),_0x245a2a=_0x30e80e['m1Prime'],_0x36394e=_0x229381[_0x2f585b(0x3a8)];}_0x245a2a=_0x496d06['Tools'][_0x2f585b(0x41a)](_0x29352b[_0x2f585b(0x472)][0x0]),_0x36394e=_0x496d06[_0x2f585b(0x3f7)][_0x2f585b(0x41a)](_0x29352b[_0x2f585b(0x472)][0x0]);for(let _0x530604=_0x386075['length']-0x1;_0x530604>=0x0;_0x530604--){const _0x49b390={'id':_0x2f585b(0x29b),'params':{'unitId':_0x386075[_0x530604]['unitId'],..._0x386075[_0x530604]['undoState']}},_0x108400={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x386075[_0x530604]['unitId'],..._0x386075[_0x530604][_0x2f585b(0x233)]}},_0x4c8dbd=this[_0x2f585b(0x2f6)][_0x2f585b(0x3b7)](_0x245a2a,_0x49b390,!0x1),_0xef48d5=this[_0x2f585b(0x2f6)]['transformMutation'](_0x36394e,_0x108400,!0x1);if(_0xf2713c[_0x2f585b(0x393)](_0x4c8dbd))throw _0x4c8dbd[_0x2f585b(0x35e)];if(_0xf2713c[_0x2f585b(0x393)](_0xef48d5))throw _0xef48d5[_0x2f585b(0x35e)];_0x28d3fa[_0x2f585b(0x323)]({..._0x386075[_0x530604],'undoState':_0x4c8dbd['m2Prime'][_0x2f585b(0x259)],'redoState':_0xef48d5[_0x2f585b(0x399)][_0x2f585b(0x259)]}),_0x245a2a=_0x4c8dbd[_0x2f585b(0x3a8)],_0x36394e=_0xef48d5[_0x2f585b(0x3a8)];}this[_0x2f585b(0x2a9)]['setStateCache'](_0x56dde3,{'history':_0x3a0b06,'collaboration':_0x28d3fa});}};_0x563bfa=_0x41ad9d([_0x44a23a(0x0,_0x496d06[_0x54cb3d(0x257)](_0x496d06[_0x54cb3d(0x419)])),_0x44a23a(0x1,_0xf2713c[_0x54cb3d(0x31f)]),_0x44a23a(0x2,_0x496d06['Inject'](_0x35faaf[_0x54cb3d(0x230)]))],_0x563bfa);var _0x4007b8=Object[_0x54cb3d(0x35b)],_0x3334ad=(_0xa7fe1c,_0x4eb77c,_0x285845,_0x4cad2a)=>{for(var _0x11ae82=_0x4cad2a>0x1?void 0x0:_0x4cad2a?_0x4007b8(_0x4eb77c,_0x285845):_0x4eb77c,_0x379f46=_0xa7fe1c['length']-0x1,_0x2cef7c;_0x379f46>=0x0;_0x379f46--)(_0x2cef7c=_0xa7fe1c[_0x379f46])&&(_0x11ae82=_0x2cef7c(_0x11ae82)||_0x11ae82);return _0x11ae82;},_0x5aa006=(_0x29ab09,_0x3ddda1)=>(_0x781cf9,_0x2e6cbf)=>_0x3ddda1(_0x781cf9,_0x2e6cbf,_0x29ab09);let _0x281b9f=class{constructor(_0x41d177,_0x58ed46){this['_injector']=_0x41d177,this['_transformService']=_0x58ed46;}[_0x54cb3d(0x2f2)](_0x45426b){const _0x96bc84=_0x54cb3d;var _0x1ae12a;const _0x1d2766=this[_0x96bc84(0x32a)]['get'](_0x110776[_0x96bc84(0x3c9)]),_0x63e308=(_0x1ae12a=_0x1d2766['getDocRanges']())!=null?_0x1ae12a:[];if(_0x63e308['length']===0x0)return;const _0x424fee=_0x45426b[_0x96bc84(0x263)],_0x39b8ab=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x424fee,'actions':null,'textRanges':_0x63e308}}],_0x543cfa=this[_0x96bc84(0x2f6)]['transformMutationsWithChangeset'](_0x45426b,_0x39b8ab);if(!_0xf2713c[_0x96bc84(0x2e1)](_0x543cfa))throw _0x543cfa[_0x96bc84(0x35e)];const _0x4d4115=_0x543cfa[_0x96bc84(0x399)][0x0][_0x96bc84(0x259)]['textRanges'];Array[_0x96bc84(0x3f9)](_0x4d4115)&&_0x4d4115[_0x96bc84(0x1e8)]&&_0x1d2766[_0x96bc84(0x317)](_0x4d4115,{'unitId':_0x424fee,'subUnitId':_0x424fee},!0x1);}};_0x281b9f=_0x3334ad([_0x5aa006(0x0,_0x496d06[_0x54cb3d(0x257)](_0x496d06[_0x54cb3d(0x419)])),_0x5aa006(0x1,_0xf2713c[_0x54cb3d(0x31f)])],_0x281b9f);var _0x1b153d=Object[_0x54cb3d(0x35b)],_0x34332f=(_0x21bab1,_0x2bfd56,_0xaef7c5,_0x90ba1f)=>{const _0x4e1704=_0x54cb3d;for(var _0x3717ad=_0x90ba1f>0x1?void 0x0:_0x90ba1f?_0x1b153d(_0x2bfd56,_0xaef7c5):_0x2bfd56,_0x9e3db5=_0x21bab1[_0x4e1704(0x1e8)]-0x1,_0x5e5d73;_0x9e3db5>=0x0;_0x9e3db5--)(_0x5e5d73=_0x21bab1[_0x9e3db5])&&(_0x3717ad=_0x5e5d73(_0x3717ad)||_0x3717ad);return _0x3717ad;},_0x337cc5=(_0x4a8c5d,_0x31f73f)=>(_0x4052f5,_0x1d7f58)=>_0x31f73f(_0x4052f5,_0x1d7f58,_0x4a8c5d);let _0x411fb3=class extends _0x496d06['Disposable']{constructor(_0x557544,_0x49a12d,_0x5532c5,_0x754f2e,_0x3217a0,_0x4958c0,_0x307a4a,_0x490ef8){const _0x56e811=_0x54cb3d;super(),_0x3c80c3(this,_0x56e811(0x35f),new _0x1f84ca[(_0x56e811(0x3c4))](_0xbe53a0[_0x56e811(0x423)]['NOT_COLLAB'])),(this[_0x56e811(0x2a9)]=_0x557544,this[_0x56e811(0x27d)]=_0x49a12d,this[_0x56e811(0x256)]=_0x5532c5,this[_0x56e811(0x2e4)]=_0x754f2e,this[_0x56e811(0x252)]=_0x3217a0,this['_docSyncEditingCollabCursorService']=_0x4958c0,this[_0x56e811(0x33b)]=_0x307a4a,this[_0x56e811(0x380)]=_0x490ef8,this[_0x56e811(0x249)]());}[_0x54cb3d(0x249)](){const _0x2aacee=_0x54cb3d;this['disposeWithMe'](this['_collaborationController'][_0x2aacee(0x3a5)]['subscribe'](_0x354394=>{const _0x810501=_0x2aacee,_0x5c9ac0=this[_0x810501(0x2a9)]['docStateChange$'][_0x810501(0x2e3)](_0x5d6b95=>{const _0x336c9e=_0x810501;if(_0x5d6b95==null)return;const {unitId:_0x11c898,redoState:_0x4f6fb9,commandId:_0x33731c}=_0x5d6b95;if(_0x11c898!==_0x354394['unitID'])return;const _0x57b0e4={'id':_0x33731c,'type':_0x496d06[_0x336c9e(0x241)][_0x336c9e(0x2a6)],'params':{'unitId':_0x11c898,'actions':_0x4f6fb9[_0x336c9e(0x38e)],'textRanges':null}};_0x354394[_0x336c9e(0x39d)](_0x57b0e4);});if(_0x354394['disposeWithMe'](_0x5c9ac0),_0x354394 instanceof _0xbe53a0[_0x810501(0x462)]){const _0x5bf677={'onTransformIME':_0x55f3cf=>this[_0x810501(0x256)][_0x810501(0x2f3)](_0x55f3cf),'onTransformState':_0x187b84=>this['_docTransformStateCacheService'][_0x810501(0x28e)](_0x187b84),'onTransformSelections':_0x411423=>this[_0x810501(0x252)]['transformSelections'](_0x411423),'onSyncEditingCollabCursor':_0x256180=>this[_0x810501(0x38c)]['syncEditingCollabCursor'](_0x256180),'onTransformRemoteChangesetByIMECache':_0x40efaa=>this[_0x810501(0x256)][_0x810501(0x36b)](_0x40efaa),'onTransformRemoteChangesetByStateCache':_0xac62d7=>this[_0x810501(0x2e4)][_0x810501(0x36b)](_0xac62d7)};_0x354394['addHandlerCallback'](_0x5bf677);}}));}};_0x411fb3=_0x34332f([_0x337cc5(0x0,_0x496d06[_0x54cb3d(0x257)](_0x35faaf['DocStateChangeManagerService'])),_0x337cc5(0x1,_0x496d06['Inject'](_0xbe53a0[_0x54cb3d(0x2d1)])),_0x337cc5(0x2,_0x496d06['Inject'](_0x13e534)),_0x337cc5(0x3,_0x496d06['Inject'](_0x563bfa)),_0x337cc5(0x4,_0x496d06[_0x54cb3d(0x257)](_0x281b9f)),_0x337cc5(0x5,_0x496d06[_0x54cb3d(0x257)](_0x2d2ac7)),_0x337cc5(0x6,_0x1ea881['IMessageService']),_0x337cc5(0x7,_0x496d06[_0x54cb3d(0x257)](_0x496d06[_0x54cb3d(0x411)]))],_0x411fb3);var _0x54a9d3=Object['getOwnPropertyDescriptor'],_0xb798c=(_0x35f733,_0x34dcbe,_0x3d9e87,_0x5a10ca)=>{for(var _0x849d04=_0x5a10ca>0x1?void 0x0:_0x5a10ca?_0x54a9d3(_0x34dcbe,_0x3d9e87):_0x34dcbe,_0x4172d4=_0x35f733['length']-0x1,_0x42f1d3;_0x4172d4>=0x0;_0x4172d4--)(_0x42f1d3=_0x35f733[_0x4172d4])&&(_0x849d04=_0x42f1d3(_0x849d04)||_0x849d04);return _0x849d04;},_0x117cbc=(_0x25873a,_0x59f574)=>(_0x4a6106,_0x1a8eeb)=>_0x59f574(_0x4a6106,_0x1a8eeb,_0x25873a);let _0x2aa403=class extends _0x496d06[_0x54cb3d(0x3be)]{constructor(_0x1c8ddc,_0x123fbd,_0x1bf215){const _0x3252a0=_0x54cb3d;super(),_0x3c80c3(this,_0x3252a0(0x371),new Map()),_0x3c80c3(this,_0x3252a0(0x42c),new Map()),_0x3c80c3(this,_0x3252a0(0x200),!0x1),(this[_0x3252a0(0x29c)]=_0x1c8ddc,this[_0x3252a0(0x3aa)]=_0x123fbd,this[_0x3252a0(0x293)]=_0x1bf215);}[_0x54cb3d(0x36c)](){this['_disabled']=!0x0;}[_0x54cb3d(0x23b)](){this['_disabled']=!0x1;}get[_0x54cb3d(0x2ff)](){return this['_saveTaskMap'];}[_0x54cb3d(0x2a0)](){const _0x1051d7=_0x54cb3d;this[_0x1051d7(0x28d)]()[_0x1051d7(0x31b)](()=>super[_0x1051d7(0x2a0)]());}async['loadOfflineData'](_0x17b7f5){const _0x467422=_0x54cb3d;return this[_0x467422(0x200)]?null:this[_0x467422(0x3aa)][_0x467422(0x31e)](_0xbe53a0[_0x467422(0x2de)](_0x17b7f5));}async[_0x54cb3d(0x2da)](_0xc48ed6,_0x436ec8){const _0x544fe7=_0x54cb3d;return!!this[_0x544fe7(0x3aa)][_0x544fe7(0x3d0)](_0xc48ed6,_0x436ec8);}[_0x54cb3d(0x1fe)](_0xba3a9a,_0x4672bf,_0x2ec952,_0x1bd1f0){const _0x317385=_0x54cb3d,_0x40be57=this['_revisionService'][_0x317385(0x31d)](_0xba3a9a);this[_0x317385(0x371)][_0x317385(0x327)](_0xba3a9a,{'unitID':_0xba3a9a,'type':_0x4672bf,'awaitingChangeset':_0x2ec952,'mutations':_0x1bd1f0,'rev':_0x40be57}),this['_saveTaskMap'][_0x317385(0x43b)](_0xba3a9a)||this['_scheduleSaving'](_0xba3a9a);}[_0x54cb3d(0x44b)](_0x342e56){const _0x2b6405=_0x54cb3d,_0x3157a4=this['_getSaveTimeout']();_0x3157a4===0x0?this[_0x2b6405(0x3a7)](_0x342e56):this[_0x2b6405(0x42c)][_0x2b6405(0x327)](_0x342e56,setTimeout(()=>this[_0x2b6405(0x3a7)](_0x342e56),_0x3157a4));}[_0x54cb3d(0x410)](){const _0x23387d=_0x54cb3d;var _0x2fb209;return(_0x2fb209=this[_0x23387d(0x29c)][_0x23387d(0x460)](_0xbe53a0[_0x23387d(0x38b)]))!=null?_0x2fb209:_0xbe53a0[_0x23387d(0x43e)];}[_0x54cb3d(0x3a7)](_0x4f4294){const _0x34bd7f=_0x54cb3d,_0x114e8c=this[_0x34bd7f(0x42c)]['get'](_0x4f4294);return _0x114e8c!==void 0x0&&window[_0x34bd7f(0x3e4)](_0x114e8c),this[_0x34bd7f(0x3aa)][_0x34bd7f(0x3d0)](_0xbe53a0[_0x34bd7f(0x2de)](_0x4f4294),this[_0x34bd7f(0x371)]['get'](_0x4f4294))[_0x34bd7f(0x31b)](()=>this['_saveTaskMap']['delete'](_0x4f4294));}async['exhaustSavingTask'](){const _0x577c04=_0x54cb3d,_0x297e04=[];this[_0x577c04(0x42c)][_0x577c04(0x311)]((_0x6c6e13,_0x43f3a7)=>{const _0x43f12c=_0x577c04;window[_0x43f12c(0x3e4)](_0x6c6e13),_0x297e04[_0x43f12c(0x2f9)](this[_0x43f12c(0x3a7)](_0x43f3a7)['then'](()=>{const _0x1e6eac=_0x43f12c;this[_0x1e6eac(0x42c)]['delete'](_0x43f3a7);}));}),await Promise[_0x577c04(0x40b)](_0x297e04);}};_0x2aa403=_0xb798c([_0x117cbc(0x0,_0x496d06[_0x54cb3d(0x1f5)]),_0x117cbc(0x1,_0x496d06[_0x54cb3d(0x1f9)]),_0x117cbc(0x2,_0x496d06['Inject'](_0xf2713c['RevisionService']))],_0x2aa403);class _0x202064 extends _0x496d06[_0x54cb3d(0x23e)]{constructor(){const _0x498145=_0x54cb3d;super(),_0x3c80c3(this,_0x498145(0x3c0)),this[_0x498145(0x3c0)]=_0x1f84ca[_0x498145(0x3f5)](window,_0x498145(0x22e))[_0x498145(0x32d)](_0x1f84ca[_0x498145(0x41e)](this[_0x498145(0x3e5)]),_0x1f84ca[_0x498145(0x452)](0x1),_0x1f84ca[_0x498145(0x292)](void 0x0));}['setParam'](_0x118b6b,_0x1b8743,_0x59271e=!0x1){const _0x2fd02f=_0x54cb3d,_0x5dda4b=new URL(window[_0x2fd02f(0x1e4)][_0x2fd02f(0x29d)]);_0x5dda4b['searchParams'][_0x2fd02f(0x327)](_0x118b6b,_0x1b8743),_0x59271e?window[_0x2fd02f(0x357)][_0x2fd02f(0x346)]('','',_0x5dda4b[_0x2fd02f(0x405)]()):window[_0x2fd02f(0x357)]['pushState']('','',_0x5dda4b[_0x2fd02f(0x405)]());}['removeParam'](_0x16c016,_0x33dad3=!0x1){const _0xcf2b50=_0x54cb3d,_0x670195=new URL(window[_0xcf2b50(0x1e4)]['href']);_0x670195[_0xcf2b50(0x391)][_0xcf2b50(0x417)](_0x16c016),_0x33dad3?window[_0xcf2b50(0x357)][_0xcf2b50(0x346)]('','',_0x670195[_0xcf2b50(0x405)]()):window[_0xcf2b50(0x357)][_0xcf2b50(0x41d)]('','',_0x670195[_0xcf2b50(0x405)]());}[_0x54cb3d(0x2c1)](_0x3128b4){const _0xa92d58=_0x54cb3d;var _0x292216;return(_0x292216=new URL(window[_0xa92d58(0x1e4)][_0xa92d58(0x29d)])[_0xa92d58(0x391)][_0xa92d58(0x479)](_0x3128b4))!=null?_0x292216:void 0x0;}}var _0x1d25a0=Object['defineProperty'],_0x3c663a=Object['getOwnPropertyDescriptor'],_0x2991c0=(_0xee8a14,_0xdbaff5,_0xbb9706)=>_0xdbaff5 in _0xee8a14?_0x1d25a0(_0xee8a14,_0xdbaff5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbb9706}):_0xee8a14[_0xdbaff5]=_0xbb9706,_0x23b02f=(_0x44647d,_0x34aa70,_0x524b66,_0x59cf56)=>{for(var _0x56eab1=_0x59cf56>0x1?void 0x0:_0x59cf56?_0x3c663a(_0x34aa70,_0x524b66):_0x34aa70,_0x4ba268=_0x44647d['length']-0x1,_0x4415c5;_0x4ba268>=0x0;_0x4ba268--)(_0x4415c5=_0x44647d[_0x4ba268])&&(_0x56eab1=_0x4415c5(_0x56eab1)||_0x56eab1);return _0x56eab1;},_0x5a5716=(_0x5aaa09,_0x568c4d)=>(_0x15fc8f,_0x4662ef)=>_0x568c4d(_0x15fc8f,_0x4662ef,_0x5aaa09),_0x21ec7=(_0x5d93fa,_0x2ad3e4,_0x1c22f6)=>_0x2991c0(_0x5d93fa,_0x2ad3e4+'',_0x1c22f6);const _0x15d0e1=_0x54cb3d(0x302);_0xf30996['UniverCollaborationClientUIPlugin']=class extends _0x496d06[_0x54cb3d(0x389)]{constructor(_0x3c3adc=_0x44d1a5,_0x3aad13,_0x532e72,_0x5de53e){const _0x32fbb5=_0x54cb3d;super(),this['_config']=_0x3c3adc,this[_0x32fbb5(0x24b)]=_0x3aad13,this['_injector']=_0x532e72,this['_configService']=_0x5de53e;const {..._0x3bdfdd}=_0x496d06[_0x32fbb5(0x29e)]({},_0x44d1a5,this[_0x32fbb5(0x217)]);this['_configService'][_0x32fbb5(0x47c)](_0x404276,_0x3bdfdd);}[_0x54cb3d(0x25c)](){const _0x43bb5a=_0x54cb3d;this[_0x43bb5a(0x28c)](),this[_0x43bb5a(0x245)]();}[_0x54cb3d(0x26d)](){const _0x57ebfd=_0x54cb3d;this[_0x57ebfd(0x235)]();}[_0x54cb3d(0x28c)](){const _0x2e4544=_0x54cb3d;var _0x52a8d0;const _0x394318=[[_0x5cc4a9],[_0x281b9f],[_0x13e534],[_0x563bfa],[_0x2d2ac7],[_0x42d8e5,{'useClass':_0x202064}],[_0x4fda2f[_0x2e4544(0x288)],{'useClass':_0x4fda2f[_0x2e4544(0x2ea)]}],[_0xbe53a0[_0x2e4544(0x203)],{'useClass':_0x2aa403}],[_0xf30996[_0x2e4544(0x42f)]],[_0x411fb3],[_0x41935c],[_0x96e5af],[_0x11f54a],[_0xf30996[_0x2e4544(0x3a9)]]];_0x496d06['registerDependencies'](this['_injector'],_0x496d06['mergeOverrideWithDependencies'](_0x394318,(_0x52a8d0=this[_0x2e4544(0x217)])==null?void 0x0:_0x52a8d0[_0x2e4544(0x439)]));}[_0x54cb3d(0x235)](){const _0x3f2d7d=_0x54cb3d;this[_0x3f2d7d(0x37d)](this[_0x3f2d7d(0x24b)][_0x3f2d7d(0x3d9)](_0x496d06[_0x3f2d7d(0x448)][_0x3f2d7d(0x262)],[_0x59361c])),this[_0x3f2d7d(0x37d)](this[_0x3f2d7d(0x24b)][_0x3f2d7d(0x3d9)](_0x496d06[_0x3f2d7d(0x448)][_0x3f2d7d(0x237)],[_0x4ab05a]));}[_0x54cb3d(0x245)](){const _0x2df971=_0x54cb3d;_0x496d06['touchDependencies'](this[_0x2df971(0x32a)],[[_0x96e5af],[_0xf30996[_0x2df971(0x42f)]],[_0x411fb3],[_0x41935c],[_0xf30996[_0x2df971(0x3a9)]]]);}},_0x21ec7(_0xf30996['UniverCollaborationClientUIPlugin'],_0x54cb3d(0x485),_0x15d0e1),_0xf30996[_0x54cb3d(0x2d5)]=_0x23b02f([_0x496d06[_0x54cb3d(0x1e5)](_0xbe53a0[_0x54cb3d(0x440)]),_0x5a5716(0x1,_0x8d3144[_0x54cb3d(0x22c)]),_0x5a5716(0x2,_0x496d06[_0x54cb3d(0x257)](_0x496d06['Injector'])),_0x5a5716(0x3,_0x496d06['IConfigService'])],_0xf30996['UniverCollaborationClientUIPlugin']);var _0x20134f=Object['getOwnPropertyDescriptor'],_0x1b0d51=(_0x5e3f66,_0x5d41e3,_0x206075,_0xc6c49a)=>{for(var _0x893e63=_0xc6c49a>0x1?void 0x0:_0xc6c49a?_0x20134f(_0x5d41e3,_0x206075):_0x5d41e3,_0x1f90e6=_0x5e3f66['length']-0x1,_0x2254f3;_0x1f90e6>=0x0;_0x1f90e6--)(_0x2254f3=_0x5e3f66[_0x1f90e6])&&(_0x893e63=_0x2254f3(_0x893e63)||_0x893e63);return _0x893e63;},_0x4d13ce=(_0x234304,_0x5049f1)=>(_0x50ac07,_0x57f333)=>_0x5049f1(_0x50ac07,_0x57f333,_0x234304);_0xf30996[_0x54cb3d(0x447)]=class extends _0xbe53a0[_0x54cb3d(0x39b)]{constructor(_0x4a39e9,_0x4e3ed3,_0x3a895a,_0x3f6381,_0x3e5324){super(_0x4a39e9,_0x4e3ed3,_0x3a895a,_0x3f6381,_0x3e5324);}async['createSocket'](_0x1721d2){const _0x5240ee=_0x54cb3d,_0x2c0fc8=await this[_0x5240ee(0x291)](),_0x256423=this['_createSocketURL'](_0x1721d2,_0x2c0fc8);return this[_0x5240ee(0x3c8)](_0x256423);}['_createSocketURL'](_0x2ff9a5,_0x5ebe19){const _0x3161ed=_0x54cb3d,_0x154aea=typeof window>'u'?new URL(_0x2ff9a5):new URL(_0x2ff9a5,window[_0x3161ed(0x1e4)]['origin']);_0x154aea[_0x3161ed(0x391)]['set']('sessionTicket',_0x5ebe19);const _0x9ffd31=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x3161ed(0x483)]);return _0x9ffd31[_0x3161ed(0x479)](_0x3161ed(0x340))&&_0x154aea[_0x3161ed(0x391)][_0x3161ed(0x327)](_0x3161ed(0x340),_0x9ffd31[_0x3161ed(0x479)](_0x3161ed(0x340))),_0x154aea[_0x3161ed(0x405)]();}async[_0x54cb3d(0x291)](){const _0x561be6=_0x54cb3d;var _0x4103ba,_0x166de9,_0xbd4439;const _0x3cd849=this[_0x561be6(0x29c)]['getConfig'](_0xbe53a0[_0x561be6(0x430)]),_0x15f2e1=(_0x4103ba=_0x3cd849==null?void 0x0:_0x3cd849[_0x561be6(0x486)])!=null?_0x4103ba:_0xbe53a0[_0x561be6(0x24e)];return(_0xbd4439=(_0x166de9=(await this['_httpService'][_0x561be6(0x479)](_0x15f2e1,{'headers':{'Content-Type':_0x561be6(0x228)}}))[_0x561be6(0x470)])==null?void 0x0:_0x166de9[_0x561be6(0x215)])!=null?_0xbd4439:'';}},_0xf30996['BrowserCollaborationSocketService']=_0x1b0d51([_0x4d13ce(0x0,_0x496d06['Inject'](_0x496d06[_0x54cb3d(0x419)])),_0x4d13ce(0x1,_0x496d06['Inject'](_0x4fda2f['HTTPService'])),_0x4d13ce(0x2,_0x496d06[_0x54cb3d(0x1f5)]),_0x4d13ce(0x3,_0x496d06[_0x54cb3d(0x3f6)]),_0x4d13ce(0x4,_0xf2713c[_0x54cb3d(0x458)])],_0xf30996[_0x54cb3d(0x447)]);const _0xee285=0x7530,_0x3d6131=_0x54cb3d(0x24d);class _0x595375 extends _0x496d06[_0x54cb3d(0x3be)]{constructor(){const _0x3c6d57=_0x54cb3d;super(),_0x3c80c3(this,_0x3c6d57(0x2a1),_0x496d06[_0x3c6d57(0x2e7)]()),_0x3c80c3(this,'_selfUnitIDs',new Set()),_0x3c80c3(this,_0x3c6d57(0x2af),new Map()),_0x3c80c3(this,_0x3c6d57(0x41b),null),_0x3c80c3(this,'_clearOtherTimers',new Map()),_0x3c80c3(this,_0x3c6d57(0x43d),new Map()),this[_0x3c6d57(0x407)]();}[_0x54cb3d(0x2a0)](){const _0x5544c4=_0x54cb3d;super[_0x5544c4(0x2a0)](),this[_0x5544c4(0x2dd)][_0x5544c4(0x311)]((_0x490dd8,_0x18c476)=>this['_removeClearOtherTimer'](_0x18c476)),this[_0x5544c4(0x41b)]&&window['clearInterval'](this[_0x5544c4(0x41b)]);}[_0x54cb3d(0x36e)](_0x5e0a0e){const _0xcd26ed=_0x54cb3d;return this[_0xcd26ed(0x38f)](_0x5e0a0e)['pipe'](_0x1f84ca[_0xcd26ed(0x305)]());}[_0x54cb3d(0x25f)](_0x3841aa){const _0xb3cad6=_0x54cb3d;this[_0xb3cad6(0x2dc)][_0xb3cad6(0x41c)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0xb3cad6(0x3f2)](_0x3841aa),this[_0xb3cad6(0x246)]({'type':0x0,'memberID':this[_0xb3cad6(0x2a1)],'unitIDs':[_0x3841aa],'isForwarded':!0x1});}['disposeUnit'](_0x1c3170){const _0x2356f1=_0x54cb3d;this[_0x2356f1(0x2dc)][_0x2356f1(0x417)](_0x1c3170),this[_0x2356f1(0x2dc)][_0x2356f1(0x41c)]===0x0&&this['_heartbeatTimer']&&window[_0x2356f1(0x3d3)](this[_0x2356f1(0x41b)]);}[_0x54cb3d(0x407)](){const _0x45ae2b=_0x54cb3d;this[_0x45ae2b(0x37d)](_0x496d06['toDisposable'](_0x1f84ca[_0x45ae2b(0x3f5)](window,_0x45ae2b(0x30d))[_0x45ae2b(0x2e3)](_0x2c666f=>{const _0x126720=_0x45ae2b;if(_0x2c666f[_0x126720(0x434)]!==_0x3d6131||!_0x2c666f['newValue'])return;const _0x328d58=JSON[_0x126720(0x2ca)](_0x2c666f['newValue']);this[_0x126720(0x36a)](_0x328d58);}))),window[_0x45ae2b(0x33a)](_0x45ae2b(0x3a4),()=>this[_0x45ae2b(0x246)]({'type':0x1,'memberID':this[_0x45ae2b(0x2a1)],'unitIDs':Array[_0x45ae2b(0x39f)](this[_0x45ae2b(0x2dc)])}));}[_0x54cb3d(0x36a)](_0x5f5895){const _0x214591=_0x54cb3d;switch(_0x5f5895[_0x214591(0x294)]){case 0x0:this['_handleJoinEvent'](_0x5f5895);break;case 0x1:this[_0x214591(0x2b2)](_0x5f5895);break;case 0x2:this[_0x214591(0x27a)](_0x5f5895);break;}}[_0x54cb3d(0x3cf)](_0x4a0e92){const _0x25280c=_0x54cb3d,{unitIDs:_0x3165c9,memberID:_0x541934,isForwarded:_0x9d456e}=_0x4a0e92;_0x3165c9[_0x25280c(0x311)](_0x14cb29=>{const _0x18e1af=_0x25280c;if(!_0x9d456e&&this[_0x18e1af(0x2af)][_0x18e1af(0x43b)](_0x14cb29)&&this[_0x18e1af(0x38f)](_0x14cb29)[_0x18e1af(0x34f)](_0xbe53a0[_0x18e1af(0x2c2)][_0x18e1af(0x1fb)]),!this[_0x18e1af(0x2af)][_0x18e1af(0x43b)](_0x14cb29)||!this['_unitOnClients'][_0x18e1af(0x479)](_0x14cb29)[_0x18e1af(0x43b)](_0x541934)){const _0x1ecc93=this['_unitOnClients'][_0x18e1af(0x479)](_0x14cb29)||new Set();_0x1ecc93[_0x18e1af(0x3f2)](_0x541934),this['_unitOnClients'][_0x18e1af(0x327)](_0x14cb29,_0x1ecc93),this[_0x18e1af(0x320)](_0x541934);}}),_0x9d456e||this['_send']({'type':0x0,'memberID':this[_0x25280c(0x2a1)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x54cb3d(0x320)](_0x35c462){const _0x5dea4b=_0x54cb3d;this['_removeClearOtherTimer'](_0x35c462);const _0x4635ee=window[_0x5dea4b(0x3e9)](()=>{const _0x3f6d25=_0x5dea4b;this[_0x3f6d25(0x2af)][_0x3f6d25(0x311)](_0x3fd29c=>{const _0x184199=_0x3f6d25;_0x3fd29c[_0x184199(0x417)](_0x35c462);});},_0xee285*0x2);this[_0x5dea4b(0x2dd)][_0x5dea4b(0x327)](_0x35c462,_0x4635ee);}['_removeClearOtherTimer'](_0x869adf){const _0x4f38ce=_0x54cb3d;if(this[_0x4f38ce(0x2dd)][_0x4f38ce(0x43b)](_0x869adf)){const _0x449a52=this[_0x4f38ce(0x2dd)][_0x4f38ce(0x479)](_0x869adf);_0x449a52&&window[_0x4f38ce(0x3e4)](_0x449a52),this[_0x4f38ce(0x2dd)][_0x4f38ce(0x327)](_0x869adf,null);}}['_handleLeaveEvent'](_0x47b01b){const _0x2e495a=_0x54cb3d,{memberID:_0x8836c6,unitIDs:_0x4c6227}=_0x47b01b;_0x4c6227[_0x2e495a(0x311)](_0x23d682=>{const _0x3907fe=_0x2e495a;var _0x172d5c;const _0x1ed71f=this['_unitOnClients']['get'](_0x23d682);_0x1ed71f&&(_0x1ed71f[_0x3907fe(0x417)](_0x8836c6),(_0x172d5c=this['_ensureSubject'](_0x23d682))==null||_0x172d5c[_0x3907fe(0x34f)](_0x1ed71f[_0x3907fe(0x41c)]===0x0?_0xbe53a0['UnitStatus'][_0x3907fe(0x231)]:_0xbe53a0['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this['_removeClearOtherTimer'](_0x8836c6);}[_0x54cb3d(0x27a)](_0x379182){const _0x31af96=_0x54cb3d;this[_0x31af96(0x320)](_0x379182[_0x31af96(0x299)]);}[_0x54cb3d(0x246)](_0x896da){const _0x2c5547=_0x54cb3d;localStorage[_0x2c5547(0x3d0)](_0x3d6131,JSON[_0x2c5547(0x46c)](_0x896da));}['_scheduleHeartbeat'](){const _0x5cabec=_0x54cb3d;this[_0x5cabec(0x41b)]=window[_0x5cabec(0x2d4)](()=>{const _0x10a724=_0x5cabec;this[_0x10a724(0x246)]({'type':0x2,'memberID':this[_0x10a724(0x2a1)]});},_0xee285);}[_0x54cb3d(0x38f)](_0xea1c16){const _0x2d502d=_0x54cb3d;return this['_unitStatus']['has'](_0xea1c16)||this[_0x2d502d(0x43d)][_0x2d502d(0x327)](_0xea1c16,new _0x1f84ca[(_0x2d502d(0x3c4))](_0xbe53a0[_0x2d502d(0x2c2)][_0x2d502d(0x231)])),this[_0x2d502d(0x43d)][_0x2d502d(0x479)](_0xea1c16);}}var _0x1608b0=(_0x8936c1=>(_0x8936c1[_0x8936c1[_0x54cb3d(0x283)]=0x0]='UNDEFINED',_0x8936c1[_0x8936c1['OK']=0x1]='OK',_0x8936c1[_0x8936c1['INTERNAL_ERROR']=0x2]=_0x54cb3d(0x2fb),_0x8936c1[_0x8936c1[_0x54cb3d(0x2d8)]=0x3]='PERMISSION_DENIED',_0x8936c1[_0x8936c1['NOT_FOUND']=0x4]=_0x54cb3d(0x3f4),_0x8936c1[_0x8936c1[_0x54cb3d(0x1e2)]=0x5]=_0x54cb3d(0x1e2),_0x8936c1[_0x8936c1[_0x54cb3d(0x3da)]=0x6]='ALREADY_EXISTS',_0x8936c1[_0x8936c1[_0x54cb3d(0x463)]=0x7]='INVALID_ARGUMENT',_0x8936c1[_0x8936c1[_0x54cb3d(0x24a)]=0x8]=_0x54cb3d(0x24a),_0x8936c1[_0x8936c1[_0x54cb3d(0x309)]=0x9]=_0x54cb3d(0x309),_0x8936c1[_0x8936c1[_0x54cb3d(0x260)]=0xa]=_0x54cb3d(0x260),_0x8936c1[_0x8936c1[_0x54cb3d(0x418)]=0xb]='MOBILE_VERIFY_CODE_MISMATCH',_0x8936c1[_0x8936c1[_0x54cb3d(0x250)]=0xc]='MOBILE_VERIFY_CODE_NOT_FOUND_OR_EXPIRED',_0x8936c1[_0x8936c1['EMAIL_VERIFY_CODE_MISMATCH']=0xd]=_0x54cb3d(0x3f0),_0x8936c1[_0x8936c1[_0x54cb3d(0x290)]=0xe]=_0x54cb3d(0x290),_0x8936c1[_0x8936c1[_0x54cb3d(0x1e0)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x8936c1[_0x8936c1['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x8936c1[_0x8936c1[_0x54cb3d(0x33f)]=0x1772]=_0x54cb3d(0x33f),_0x8936c1[_0x8936c1[_0x54cb3d(0x232)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x8936c1[_0x8936c1[_0x54cb3d(0x381)]=0x1b59]=_0x54cb3d(0x381),_0x8936c1[_0x8936c1[_0x54cb3d(0x26a)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x8936c1[_0x8936c1['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x8936c1[_0x8936c1[_0x54cb3d(0x2c0)]=0x1b5c]=_0x54cb3d(0x2c0),_0x8936c1[_0x8936c1[_0x54cb3d(0x269)]=0x1b5d]=_0x54cb3d(0x269),_0x8936c1[_0x8936c1[_0x54cb3d(0x466)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x8936c1[_0x8936c1['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x54cb3d(0x2ba),_0x8936c1[_0x8936c1[_0x54cb3d(0x42e)]=0x232a]=_0x54cb3d(0x42e),_0x8936c1[_0x8936c1[_0x54cb3d(0x46b)]=0x232b]=_0x54cb3d(0x46b),_0x8936c1[_0x8936c1[_0x54cb3d(0x310)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x8936c1[_0x8936c1[_0x54cb3d(0x300)]=0x232d]=_0x54cb3d(0x300),_0x8936c1[_0x8936c1['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x54cb3d(0x268),_0x8936c1[_0x8936c1[_0x54cb3d(0x40d)]=0x2712]=_0x54cb3d(0x40d),_0x8936c1[_0x8936c1['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x54cb3d(0x47b),_0x8936c1[_0x8936c1[_0x54cb3d(0x3ea)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x8936c1[_0x8936c1['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x54cb3d(0x401),_0x8936c1[_0x8936c1['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x54cb3d(0x387),_0x8936c1[_0x8936c1['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x54cb3d(0x3eb),_0x8936c1[_0x8936c1[_0x54cb3d(0x2b1)]=0x271d]=_0x54cb3d(0x2b1),_0x8936c1[_0x8936c1[_0x54cb3d(0x304)]=0x271e]=_0x54cb3d(0x304),_0x8936c1[_0x8936c1[_0x54cb3d(0x24c)]=0x271f]=_0x54cb3d(0x24c),_0x8936c1[_0x8936c1['YUUMI_CONNECTOR_URL_NOT_FOUND']=0x2720]='YUUMI_CONNECTOR_URL_NOT_FOUND',_0x8936c1[_0x8936c1[_0x54cb3d(0x482)]=0x2af9]=_0x54cb3d(0x482),_0x8936c1[_0x8936c1[_0x54cb3d(0x426)]=0x2ee1]=_0x54cb3d(0x426),_0x8936c1[_0x8936c1['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x8936c1[_0x8936c1[_0x54cb3d(0x29f)]=0x2ee3]=_0x54cb3d(0x29f),_0x8936c1[_0x8936c1[_0x54cb3d(0x35d)]=0x2ee4]=_0x54cb3d(0x35d),_0x8936c1[_0x8936c1['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x8936c1[_0x8936c1[_0x54cb3d(0x211)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x8936c1[_0x8936c1[_0x54cb3d(0x31c)]=0x32ca]=_0x54cb3d(0x31c),_0x8936c1[_0x8936c1[_0x54cb3d(0x2e5)]=0x32cb]=_0x54cb3d(0x2e5),_0x8936c1[_0x8936c1['UNRECOGNIZED']=-0x1]=_0x54cb3d(0x378),_0x8936c1))(_0x1608b0||{}),_0x592375=Object[_0x54cb3d(0x35b)],_0x397e20=(_0x3b85f7,_0x40d943,_0x465f63,_0x296dd5)=>{for(var _0x32857f=_0x296dd5>0x1?void 0x0:_0x296dd5?_0x592375(_0x40d943,_0x465f63):_0x40d943,_0x828cce=_0x3b85f7['length']-0x1,_0x43284c;_0x828cce>=0x0;_0x828cce--)(_0x43284c=_0x3b85f7[_0x828cce])&&(_0x32857f=_0x43284c(_0x32857f)||_0x32857f);return _0x32857f;},_0x539b87=(_0x205a55,_0x55d09a)=>(_0x5c9656,_0x4b5739)=>_0x55d09a(_0x5c9656,_0x4b5739,_0x205a55);_0xf30996['RemoteUniscriptService']=class extends _0x496d06[_0x54cb3d(0x3be)]{constructor(_0x131a93,_0x460b6a,_0xa7687){const _0x8b5955=_0x54cb3d;super(),this[_0x8b5955(0x1e1)]=_0x131a93,this['_httpService']=_0x460b6a,this['_configService']=_0xa7687;}async[_0x54cb3d(0x286)](_0x307af8,_0x35155a,_0x17a398,..._0x55aed2){const _0x5db6c9=_0x54cb3d;var _0x2b1a37,_0x19692a,_0x366385,_0x50d1c3;const _0x248e3c=this[_0x5db6c9(0x1e1)][_0x5db6c9(0x2d7)]();if(!_0x248e3c)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2b9f46=((_0x2b1a37=this[_0x5db6c9(0x29c)][_0x5db6c9(0x460)](_0xbe53a0[_0x5db6c9(0x3b6)]))!=null?_0x2b1a37:_0xbe53a0[_0x5db6c9(0x22a)])+'/'+_0x307af8+_0x5db6c9(0x348)+_0x35155a,_0x3e60d3=new URL(window[_0x5db6c9(0x1e4)][_0x5db6c9(0x29d)]),_0x3e7092={'scriptId':_0x307af8,'runId':(_0x19692a=_0x3e60d3[_0x5db6c9(0x391)][_0x5db6c9(0x479)](_0x5db6c9(0x340)))!=null?_0x19692a:'','function':_0x35155a,'unitId':_0x248e3c[_0x5db6c9(0x2b4)](),'argsOfFunction':JSON['stringify'](_0x55aed2),'invokeId':(_0x366385=_0x17a398[_0x5db6c9(0x456)])!=null?_0x366385:'','executionId':(_0x50d1c3=_0x17a398['executionId'])!=null?_0x50d1c3:''};try{const _0x54ca4d=await this[_0x5db6c9(0x1ee)][_0x5db6c9(0x446)](_0x2b9f46,{'body':_0x3e7092});return _0x54ca4d[_0x5db6c9(0x470)][_0x5db6c9(0x35e)]&&_0x54ca4d[_0x5db6c9(0x470)][_0x5db6c9(0x35e)]['code']!==_0x1608b0['OK']?_0x5db6c9(0x474):_0x54ca4d[_0x5db6c9(0x470)][_0x5db6c9(0x359)];}catch{return _0x5db6c9(0x474);}}},_0xf30996['RemoteUniscriptService']=_0x397e20([_0x539b87(0x0,_0x496d06['IUniverInstanceService']),_0x539b87(0x1,_0x496d06[_0x54cb3d(0x257)](_0x4fda2f[_0x54cb3d(0x26b)])),_0x539b87(0x2,_0x496d06[_0x54cb3d(0x1f5)])],_0xf30996[_0x54cb3d(0x3ef)]),_0xf30996[_0x54cb3d(0x318)]=_0x62e78c,_0xf30996[_0x54cb3d(0x201)]=_0x42d8e5,_0xf30996[_0x54cb3d(0x358)]=_0x548181,_0xf30996[_0x54cb3d(0x356)]=_0x595375,_0xf30996['WebURLService']=_0x202064,Object['defineProperty'](_0xf30996,Symbol['toStringTag'],{'value':_0x54cb3d(0x2bb)});}));
|