@univerjs-pro/collaboration-client-ui 0.6.10-experimental.20250418-8830bd4 → 0.6.10-experimental.20250419-8830bd4

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x44bc53=_0x2090;(function(_0x40aaa0,_0x3a576d){const _0x2318e0=_0x2090,_0x4481ab=_0x40aaa0();while(!![]){try{const _0x82987=parseInt(_0x2318e0(0x170))/0x1+-parseInt(_0x2318e0(0x173))/0x2+parseInt(_0x2318e0(0x175))/0x3*(parseInt(_0x2318e0(0x174))/0x4)+-parseInt(_0x2318e0(0x168))/0x5*(-parseInt(_0x2318e0(0x171))/0x6)+-parseInt(_0x2318e0(0x177))/0x7*(-parseInt(_0x2318e0(0x16d))/0x8)+parseInt(_0x2318e0(0x16a))/0x9*(parseInt(_0x2318e0(0x16f))/0xa)+-parseInt(_0x2318e0(0x16e))/0xb;if(_0x82987===_0x3a576d)break;else _0x4481ab['push'](_0x4481ab['shift']());}catch(_0x1d6a74){_0x4481ab['push'](_0x4481ab['shift']());}}}(_0x2499,0x52eb7));function _0x2499(){const _0x5bc6cb=['runOnServer','1229176OMJGia','11000825Wsblta','76390jCpzFi','405688bAiwYZ','8226AuDhMt','get','545850rABbWR','148684eHoACk','45CxApLp','@univerjs/core/facade','7qnhnEz','_injector','610rVGIdM','extend','387QOIWSP','FUniver'];_0x2499=function(){return _0x5bc6cb;};return _0x2499();}function _0x2090(_0x3ca154,_0x1adfe5){const _0x249965=_0x2499();return _0x2090=function(_0x209069,_0x4c9130){_0x209069=_0x209069-0x168;let _0x562990=_0x249965[_0x209069];return _0x562990;},_0x2090(_0x3ca154,_0x1adfe5);}const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0x44bc53(0x176));class c extends e[_0x44bc53(0x16b)]{['runOnServer'](_0x3b2562,_0x1cc401,..._0x4521ec){const _0xea1159=_0x44bc53;return this[_0xea1159(0x178)][_0xea1159(0x172)](t['RemoteUniscriptService'])[_0xea1159(0x16c)](_0x3b2562,_0x1cc401,{},..._0x4521ec);}}e[_0x44bc53(0x16b)][_0x44bc53(0x169)](c);
1
+ 'use strict';const _0x4bf09d=_0x5d1e;(function(_0x55d42b,_0x1ea5b3){const _0x5d7137=_0x5d1e,_0x25dfc1=_0x55d42b();while(!![]){try{const _0x2ecfc0=-parseInt(_0x5d7137(0x1d3))/0x1*(parseInt(_0x5d7137(0x1db))/0x2)+-parseInt(_0x5d7137(0x1d0))/0x3*(parseInt(_0x5d7137(0x1d8))/0x4)+-parseInt(_0x5d7137(0x1d6))/0x5*(parseInt(_0x5d7137(0x1d1))/0x6)+-parseInt(_0x5d7137(0x1d4))/0x7+-parseInt(_0x5d7137(0x1d2))/0x8+parseInt(_0x5d7137(0x1d7))/0x9+parseInt(_0x5d7137(0x1cf))/0xa;if(_0x2ecfc0===_0x1ea5b3)break;else _0x25dfc1['push'](_0x25dfc1['shift']());}catch(_0x3ff33a){_0x25dfc1['push'](_0x25dfc1['shift']());}}}(_0xca91,0x3ba26));function _0xca91(){const _0x5330d9=['extend','_injector','runOnServer','get','11482000ERqfZf','15fKlMlu','94110isJywl','2179464ZMenho','5TRYnEe','1938573dEcehH','@univerjs-pro/collaboration-client-ui','95SXjhfJ','3315006BqsIlU','135100ePrNxE','FUniver','RemoteUniscriptService','102404PWDffS'];_0xca91=function(){return _0x5330d9;};return _0xca91();}const t=require(_0x4bf09d(0x1d5)),e=require('@univerjs/core/facade');function _0x5d1e(_0x4d1c28,_0x6c0c19){const _0xca9137=_0xca91();return _0x5d1e=function(_0x5d1e78,_0x503638){_0x5d1e78=_0x5d1e78-0x1cf;let _0xec10b=_0xca9137[_0x5d1e78];return _0xec10b;},_0x5d1e(_0x4d1c28,_0x6c0c19);}class c extends e[_0x4bf09d(0x1d9)]{[_0x4bf09d(0x1de)](_0x125803,_0x16d647,..._0x2af824){const _0x441683=_0x4bf09d;return this[_0x441683(0x1dd)][_0x441683(0x1df)](t[_0x441683(0x1da)])[_0x441683(0x1de)](_0x125803,_0x16d647,{},..._0x2af824);}}e[_0x4bf09d(0x1d9)][_0x4bf09d(0x1dc)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x254b(_0x5a1ff1,_0x67229a){const _0x473b92=_0x473b();return _0x254b=function(_0x254bcc,_0x560d0c){_0x254bcc=_0x254bcc-0x10e;let _0xf37242=_0x473b92[_0x254bcc];return _0xf37242;},_0x254b(_0x5a1ff1,_0x67229a);}const _0x42bdd7=_0x254b;(function(_0xdaa9f1,_0x569fe8){const _0x3b9cfb=_0x254b,_0x5898b7=_0xdaa9f1();while(!![]){try{const _0x4f6afe=-parseInt(_0x3b9cfb(0x22e))/0x1+parseInt(_0x3b9cfb(0x249))/0x2*(parseInt(_0x3b9cfb(0x143))/0x3)+-parseInt(_0x3b9cfb(0x303))/0x4*(-parseInt(_0x3b9cfb(0x111))/0x5)+-parseInt(_0x3b9cfb(0x1a9))/0x6+parseInt(_0x3b9cfb(0x2c0))/0x7+-parseInt(_0x3b9cfb(0x350))/0x8+parseInt(_0x3b9cfb(0x1ac))/0x9*(-parseInt(_0x3b9cfb(0x312))/0xa);if(_0x4f6afe===_0x569fe8)break;else _0x5898b7['push'](_0x5898b7['shift']());}catch(_0x238f85){_0x5898b7['push'](_0x5898b7['shift']());}}}(_0x473b,0x46237));var Xe=Object[_0x42bdd7(0x1f3)],Ge=(_0x428ad0,_0x34628c,_0x1423ab)=>_0x34628c in _0x428ad0?Xe(_0x428ad0,_0x34628c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1423ab}):_0x428ad0[_0x34628c]=_0x1423ab,_=(_0x155626,_0xe5f584,_0x4b7558)=>Ge(_0x155626,typeof _0xe5f584!='symbol'?_0xe5f584+'':_0xe5f584,_0x4b7558);Object[_0x42bdd7(0x1f3)](exports,Symbol['toStringTag'],{'value':'Module'});const u=require(_0x42bdd7(0x1a4)),a=require(_0x42bdd7(0x185)),p=require(_0x42bdd7(0x1bd)),q=require(_0x42bdd7(0x313)),b=require(_0x42bdd7(0x1a1)),qe=require(_0x42bdd7(0x232)),d=require(_0x42bdd7(0x2ed)),Y=require(_0x42bdd7(0x113)),m=require(_0x42bdd7(0x309)),Te=require(_0x42bdd7(0x39c)),g=require(_0x42bdd7(0x274)),$=require(_0x42bdd7(0x171)),G=require(_0x42bdd7(0x1e7)),P=require(_0x42bdd7(0x1b6)),O=require(_0x42bdd7(0x296)),T=require('@univerjs/design'),M=require(_0x42bdd7(0x133)),Ke=require(_0x42bdd7(0x39a));var ze=Object['getOwnPropertyDescriptor'],Je=(_0x1258e7,_0x1f7722,_0x4a9ed8,_0x41ae72)=>{const _0x145939=_0x42bdd7;for(var _0x189b85=_0x41ae72>0x1?void 0x0:_0x41ae72?ze(_0x1f7722,_0x4a9ed8):_0x1f7722,_0x28f245=_0x1258e7[_0x145939(0x246)]-0x1,_0x374a84;_0x28f245>=0x0;_0x28f245--)(_0x374a84=_0x1258e7[_0x28f245])&&(_0x189b85=_0x374a84(_0x189b85)||_0x189b85);return _0x189b85;},Oe=(_0x44fbbe,_0x3ee6d9)=>(_0x40ad44,_0x101ab5)=>_0x3ee6d9(_0x40ad44,_0x101ab5,_0x44fbbe);let fe=class extends a[_0x42bdd7(0x289)]{constructor(_0x68077d,_0x524018){const _0x4d0cd0=_0x42bdd7;super(),this[_0x4d0cd0(0x2f5)]=_0x68077d,this[_0x4d0cd0(0x366)]=_0x524018,this[_0x4d0cd0(0x288)]();}[_0x42bdd7(0x288)](){const _0x2b35ff=_0x42bdd7,_0x1ffa63=this;this['disposeWithMe'](this[_0x2b35ff(0x2f5)]['addClipboardHook']({'onBeforePasteImage':async _0xee7279=>{const _0x5be137=_0x2b35ff,_0x26218b=await _0x1ffa63[_0x5be137(0x366)]['saveImage'](_0xee7279);return _0x26218b?{'source':_0x26218b[_0x5be137(0x18b)],'imageSourceType':_0x26218b[_0x5be137(0x1f6)]}:null;}}));}};fe=Je([Oe(0x0,b['IDocClipboardService']),Oe(0x1,qe['IImageIoService'])],fe);const Re=[_0x42bdd7(0x175),'jiqing500','verdancy600',_0x42bdd7(0x1c7),'blue400','gold400'];class Ce extends a[_0x42bdd7(0x1d4)]{constructor(){const _0xd3d5cf=_0x42bdd7;super(...arguments),_(this,_0xd3d5cf(0x20f),new Map()),_(this,_0xd3d5cf(0x2cc),0x0);}[_0x42bdd7(0x328)](_0x476488){const _0x14e5ba=_0x42bdd7;if(this[_0x14e5ba(0x20f)][_0x14e5ba(0x2a4)](_0x476488))return this[_0x14e5ba(0x20f)][_0x14e5ba(0x1d3)](_0x476488);const _0x4e5fef=Re[this[_0x14e5ba(0x2cc)]];return this[_0x14e5ba(0x2cc)]=(this[_0x14e5ba(0x2cc)]+0x1)%Re[_0x14e5ba(0x246)],this['_assignedColors'][_0x14e5ba(0x114)](_0x476488,_0x4e5fef),_0x4e5fef;}}function we(_0x35e6b4){const _0x330e78=_0x42bdd7;let _0x472b8c='';for(const _0x35204f of _0x35e6b4){const {startOffset:_0x2ad952,endOffset:_0x16b3e1,isActive:_0x2f2436,rangeType:_0x5f5d79,segmentId:_0x292bd9,segmentPage:_0x1fc66b}=_0x35204f;_0x472b8c[_0x330e78(0x246)]&&(_0x472b8c+=','),_0x472b8c+=_0x2ad952+':'+_0x16b3e1+':'+(_0x2f2436?'1':'0')+':'+_0x5f5d79+':'+_0x292bd9+':'+_0x1fc66b;}return _0x472b8c;}function Ze(_0x5e207d){const _0x84207f=_0x42bdd7,_0x4b2c89=_0x5e207d[_0x84207f(0x1d9)](','),_0x14ccf3=[];for(const _0x424881 of _0x4b2c89){const [_0x96b7c3,_0x3a9e0d,_0x3639df,_0x24d635,_0x19dd4e,_0x1e6850]=_0x424881[_0x84207f(0x1d9)](':');_0x14ccf3[_0x84207f(0x234)]({'startOffset':Number(_0x96b7c3),'endOffset':Number(_0x3a9e0d),'collapsed':_0x96b7c3===_0x3a9e0d,'isActive':_0x3639df==='1','rangeType':_0x24d635===a['DOC_RANGE_TYPE'][_0x84207f(0x160)]?a[_0x84207f(0x131)][_0x84207f(0x160)]:a[_0x84207f(0x131)][_0x84207f(0x2c2)],'segmentId':typeof _0x19dd4e==_0x84207f(0x31f)?String(_0x19dd4e):'','segmentPage':Number(_0x1e6850!=null?_0x1e6850:-0x1)});}return _0x14ccf3[_0x84207f(0x362)](_0x5658b9=>_0x5658b9[_0x84207f(0x378)])||(_0x14ccf3[0x0][_0x84207f(0x378)]=!0x0),_0x14ccf3;}class pe extends a[_0x42bdd7(0x289)]{constructor(){const _0x383ebe=_0x42bdd7;super(...arguments),_(this,'_collabCursorState$',new d[(_0x383ebe(0x32a))](null)),_(this,'collabCursorState$',this[_0x383ebe(0x1f4)][_0x383ebe(0x1f2)]());}['syncEditingCollabCursor'](_0x731e4){const _0x2d01e6=_0x42bdd7,{unitID:_0x3424cd,memberID:_0x1e6ad7,textRanges:_0x2abebe}=_0x731e4,_0x370bfa=we(_0x2abebe);if(_0x370bfa==='')return;const _0x4a44b1={'unitID':_0x3424cd,'memberID':_0x1e6ad7,'selection':_0x370bfa};this['_collabCursorState$'][_0x2d01e6(0x343)](_0x4a44b1);}}var Qe=Object[_0x42bdd7(0x2cf)],et=(_0x2edbfb,_0x1a038b,_0x54073f,_0x276e71)=>{const _0x45d8c3=_0x42bdd7;for(var _0x1b4636=_0x276e71>0x1?void 0x0:_0x276e71?Qe(_0x1a038b,_0x54073f):_0x1a038b,_0x2600bf=_0x2edbfb[_0x45d8c3(0x246)]-0x1,_0x57b57a;_0x2600bf>=0x0;_0x2600bf--)(_0x57b57a=_0x2edbfb[_0x2600bf])&&(_0x1b4636=_0x57b57a(_0x1b4636)||_0x1b4636);return _0x1b4636;},L=(_0x124fe8,_0x5ab033)=>(_0x22e1e2,_0x1667fd)=>_0x5ab033(_0x22e1e2,_0x1667fd,_0x124fe8);const tt=0x12c,st=0x64;let Se=class extends a[_0x42bdd7(0x289)]{constructor(_0x20dcec,_0x3ed2c0,_0x23cd84,_0x40b3b7,_0x1708be,_0x3b3706,_0x4b2762,_0x51c621,_0x57b93){const _0x41489c=_0x42bdd7;super(),_(this,'_online',!0x1),_(this,_0x41489c(0x288),!0x1),_(this,_0x41489c(0x258),new d[(_0x41489c(0x32a))](new Map())),_(this,'cursorInfo$',this['_cursorInfo$'][_0x41489c(0x1f2)]()),_(this,'_roomMembers$',new d[(_0x41489c(0x32a))]([])),_(this,_0x41489c(0x23b),this['_roomMembers$'][_0x41489c(0x393)](d[_0x41489c(0x19a)](tt))),_(this,_0x41489c(0x2cb),a['debounce'](_0x59752a=>{const _0x2e0a51=_0x41489c,_0x386b4d={'eventID':m[_0x2e0a51(0x1a2)][_0x2e0a51(0x1af)],'data':{'unitID':this[_0x2e0a51(0x2f3)],'memberID':this['_session']['getMemberID'](),'selection':we(_0x59752a)}};this[_0x2e0a51(0x361)][_0x2e0a51(0x20d)](_0x386b4d,this[_0x2e0a51(0x2f3)]);},st)),(this['unitID']=_0x20dcec,this[_0x41489c(0x361)]=_0x3ed2c0,this[_0x41489c(0x237)]=_0x23cd84,this[_0x41489c(0x26f)]=_0x40b3b7,this[_0x41489c(0x347)]=_0x1708be,this[_0x41489c(0x137)]=_0x3b3706,this[_0x41489c(0x233)]=_0x4b2762,this[_0x41489c(0x196)]=_0x51c621,this['_commandService']=_0x57b93);}get[_0x42bdd7(0x216)](){const _0x24d732=_0x42bdd7;return this['_cursorInfo$'][_0x24d732(0x36e)]();}get[_0x42bdd7(0x21a)](){const _0xaae601=_0x42bdd7;return this[_0xaae601(0x2a9)]['getValue']();}['dispose'](){const _0x4c19a8=_0x42bdd7;super[_0x4c19a8(0x1f1)](),this[_0x4c19a8(0x258)][_0x4c19a8(0x343)](new Map()),this[_0x4c19a8(0x258)]['complete'](),this[_0x4c19a8(0x2a9)]['next']([]),this[_0x4c19a8(0x2a9)][_0x4c19a8(0x167)]();}[_0x42bdd7(0x2ad)](){const _0x186d71=_0x42bdd7;this['_init']||(this[_0x186d71(0x288)]=!0x0,this['_session'][_0x186d71(0x166)]['pipe'](d['takeUntil'](this[_0x186d71(0x2e9)]))[_0x186d71(0x2a8)](_0x291b43=>{const _0x42cfa1=_0x186d71;_0x291b43===u[_0x42cfa1(0x25e)][_0x42cfa1(0x152)]?this[_0x42cfa1(0x1ee)]():this[_0x42cfa1(0x1d6)]();}),this[_0x186d71(0x361)][_0x186d71(0x22d)][_0x186d71(0x393)](d['takeUntil'](this[_0x186d71(0x2e9)]))[_0x186d71(0x2a8)](_0x3c6762=>{const _0x1a65d7=_0x186d71,_0x1eabcd=_0x3c6762[_0x1a65d7(0x307)];_0x1eabcd===m['CollaborationEvent'][_0x1a65d7(0x1af)]&&this[_0x1a65d7(0x16e)](_0x3c6762),_0x1eabcd===m['CollaborationEvent'][_0x1a65d7(0x26e)]&&this[_0x1a65d7(0x342)](_0x3c6762);}),this[_0x186d71(0x317)](this[_0x186d71(0x346)][_0x186d71(0x1ae)](_0x3e54c2=>{const _0x5d89bb=_0x186d71,_0x50e105=_0x3e54c2[_0x5d89bb(0x316)];_0x50e105!=null&&this[_0x5d89bb(0x146)]&&_0x3e54c2['id']===Y[_0x5d89bb(0x391)]['id']&&_0x50e105[_0x5d89bb(0x30b)]===this[_0x5d89bb(0x2f3)]&&_0x50e105['isEditing']===!0x1&&_0x50e105[_0x5d89bb(0x247)]['length']>0x0&&this[_0x5d89bb(0x2cb)](_0x50e105[_0x5d89bb(0x247)]);})),this['_syncEditingCollabCursorService'][_0x186d71(0x1c8)][_0x186d71(0x393)](d['takeUntil'](this['dispose$']))['subscribe'](_0x1449cd=>{const _0x2fdc34=_0x186d71;if((_0x1449cd==null?void 0x0:_0x1449cd['unitID'])!==this[_0x2fdc34(0x2f3)])return;const _0x168897={'eventID':m[_0x2fdc34(0x1a2)][_0x2fdc34(0x1af)],'data':_0x1449cd};this['_onCursorUpdate'](_0x168897);}),this[_0x186d71(0x317)](this['_commandService'][_0x186d71(0x1ae)](_0x4d6196=>{const _0x4aadf2=_0x186d71;if(_0x4d6196[_0x4aadf2(0x316)]==null)return;const _0x5a5e8a=_0x4d6196[_0x4aadf2(0x316)];if(_0x4d6196['id']!==Y[_0x4aadf2(0x22b)]['id']||_0x5a5e8a[_0x4aadf2(0x30b)]!==this[_0x4aadf2(0x2f3)])return;const _0x5a3690={'id':_0x4aadf2(0x2b4),'params':_0x5a5e8a},_0x47d758=this[_0x4aadf2(0x216)];for(const [_0x2c56b7,_0x5c52c1]of _0x47d758){const _0x4334e2={'id':_0x4aadf2(0x2b4),'params':{'unitId':this[_0x4aadf2(0x2f3)],'actions':null,'textRanges':_0x5c52c1[_0x4aadf2(0x247)]}},_0x5e537d=this['_transformService'][_0x4aadf2(0x17f)](_0x5a3690,_0x4334e2,!0x1);if(m[_0x4aadf2(0x37b)](_0x5e537d))throw _0x5e537d[_0x4aadf2(0x1a8)];_0x47d758['set'](_0x2c56b7,{..._0x5c52c1,'ranges':_0x5e537d[_0x4aadf2(0x201)]['params']['textRanges']});}queueMicrotask(()=>{const _0xd14d48=_0x4aadf2;this['_cursorInfo$'][_0xd14d48(0x343)](_0x47d758);});})));}[_0x42bdd7(0x16e)](_0x488c27){const _0x705d1c=_0x42bdd7;var _0x146cef,_0x4badc0;const {memberID:_0x2bd64e,selection:_0x23fc93}=_0x488c27[_0x705d1c(0x25f)],_0xb9258a=Ze(_0x23fc93),_0x4b2e80=(_0x4badc0=(_0x146cef=this[_0x705d1c(0x347)][_0x705d1c(0x239)](this[_0x705d1c(0x2f3)],_0x2bd64e))==null?void 0x0:_0x146cef[_0x705d1c(0x1d1)])!=null?_0x4badc0:'Unknown\x20user',_0x19e2a1={'color':this[_0x705d1c(0x26f)][_0x705d1c(0x328)](_0x2bd64e),'name':_0x4b2e80,'ranges':_0xb9258a},_0x1e4ce7=this[_0x705d1c(0x216)];_0x1e4ce7[_0x705d1c(0x114)](_0x2bd64e,_0x19e2a1),this['_cursorInfo$'][_0x705d1c(0x343)](_0x1e4ce7);}[_0x42bdd7(0x342)](_0x5a14bd){const _0x36413d=_0x42bdd7,{memberID:_0x5954e3}=_0x5a14bd['data'],_0x2bf75e=this[_0x36413d(0x216)];_0x2bf75e[_0x36413d(0x38e)](_0x5954e3),this[_0x36413d(0x258)][_0x36413d(0x343)](_0x2bf75e);}[_0x42bdd7(0x1ee)](){const _0x4b103f=_0x42bdd7;var _0x17c1d7;if(this[_0x4b103f(0x146)]=!0x0,((_0x17c1d7=this[_0x4b103f(0x196)][_0x4b103f(0x290)]())==null?void 0x0:_0x17c1d7[_0x4b103f(0x37f)]())!==this[_0x4b103f(0x2f3)])return;const _0x2c1976=this['_injector'][_0x4b103f(0x1d3)](Y[_0x4b103f(0x389)])[_0x4b103f(0x34f)]();Array[_0x4b103f(0x380)](_0x2c1976)&&_0x2c1976['length']>0x0&&this[_0x4b103f(0x2cb)](_0x2c1976);}[_0x42bdd7(0x1d6)](){const _0x5e89ac=_0x42bdd7;this[_0x5e89ac(0x146)]=!0x1;}};Se=et([L(0x2,a[_0x42bdd7(0x374)](a[_0x42bdd7(0x353)])),L(0x3,a[_0x42bdd7(0x374)](Ce)),L(0x4,a['Inject'](u[_0x42bdd7(0x186)])),L(0x5,a[_0x42bdd7(0x374)](pe)),L(0x6,m[_0x42bdd7(0x158)]),L(0x7,a[_0x42bdd7(0x2e4)]),L(0x8,a[_0x42bdd7(0x1fd)])],Se);var nt=Object['getOwnPropertyDescriptor'],it=(_0x2af17d,_0x4e7905,_0x53f194,_0x189ab8)=>{const _0x4b0b08=_0x42bdd7;for(var _0x14b79b=_0x189ab8>0x1?void 0x0:_0x189ab8?nt(_0x4e7905,_0x53f194):_0x4e7905,_0x53bb6c=_0x2af17d[_0x4b0b08(0x246)]-0x1,_0x53e682;_0x53bb6c>=0x0;_0x53bb6c--)(_0x53e682=_0x2af17d[_0x53bb6c])&&(_0x14b79b=_0x53e682(_0x14b79b)||_0x14b79b);return _0x14b79b;},A=(_0x1da304,_0x2f6f70)=>(_0x17d9ba,_0x20d5f2)=>_0x2f6f70(_0x17d9ba,_0x20d5f2,_0x1da304);const rt=0x12c,ot=0x64,at=()=>{let _0x3de8b5=[],_0x1bd3ea=!0x1;return _0xc64205=>{_0x3de8b5['push'](_0xc64205),_0x1bd3ea||(_0x1bd3ea=!0x0,setTimeout(()=>{_0x3de8b5['forEach'](_0x13296b=>_0x13296b()),_0x3de8b5=[],_0x1bd3ea=!0x1;}));};};let Ie=class extends a[_0x42bdd7(0x289)]{constructor(_0x3c3d0b,_0x57e08a,_0x41ed9f,_0x248010,_0x3d5600,_0x164346,_0x24bc0d,_0x28f70b){const _0x31d9a7=_0x42bdd7;super(),_(this,_0x31d9a7(0x146),!0x1),_(this,_0x31d9a7(0x288),!0x1),_(this,'_cursorInfo$',new d[(_0x31d9a7(0x32a))](new Map())),_(this,_0x31d9a7(0x345),this['_cursorInfo$'][_0x31d9a7(0x1f2)]()),_(this,_0x31d9a7(0x2a9),new d[(_0x31d9a7(0x32a))]([])),_(this,'roomMembers$',this[_0x31d9a7(0x2a9)][_0x31d9a7(0x393)](d['debounceTime'](rt))),_(this,'_updateLocalCursor',a[_0x31d9a7(0x2df)]((_0x2ebb19,_0x49d005)=>{const _0x25eb49=_0x31d9a7,_0x3ec0ef={'eventID':m[_0x25eb49(0x1a2)][_0x25eb49(0x1af)],'data':{'unitID':this[_0x25eb49(0x2f3)],'memberID':this[_0x25eb49(0x361)][_0x25eb49(0x31a)](),'selection':Te['serializeRangeWithSheet'](_0x2ebb19,_0x49d005[_0x25eb49(0x2ab)])}};this[_0x25eb49(0x361)][_0x25eb49(0x20d)](_0x3ec0ef,this['unitID']);},ot)),(this['unitID']=_0x3c3d0b,this[_0x31d9a7(0x361)]=_0x57e08a,this[_0x31d9a7(0x237)]=_0x41ed9f,this[_0x31d9a7(0x26f)]=_0x248010,this[_0x31d9a7(0x347)]=_0x3d5600,this[_0x31d9a7(0x196)]=_0x164346,this[_0x31d9a7(0x346)]=_0x24bc0d,this[_0x31d9a7(0x243)]=_0x28f70b);}get[_0x42bdd7(0x216)](){const _0x1d7e4a=_0x42bdd7;return this[_0x1d7e4a(0x258)][_0x1d7e4a(0x36e)]();}get[_0x42bdd7(0x21a)](){const _0xc6673b=_0x42bdd7;return this['_roomMembers$'][_0xc6673b(0x36e)]();}['dispose'](){const _0x25b79c=_0x42bdd7;super['dispose'](),this[_0x25b79c(0x258)][_0x25b79c(0x343)](new Map()),this[_0x25b79c(0x258)][_0x25b79c(0x167)](),this[_0x25b79c(0x2a9)][_0x25b79c(0x343)]([]),this[_0x25b79c(0x2a9)]['complete']();}[_0x42bdd7(0x2ad)](){const _0x38a7c6=_0x42bdd7;this[_0x38a7c6(0x288)]||(this['_init']=!0x0,this[_0x38a7c6(0x361)][_0x38a7c6(0x166)]['pipe'](d[_0x38a7c6(0x165)](this[_0x38a7c6(0x2e9)]))[_0x38a7c6(0x2a8)](_0x25683a=>{const _0xa06de7=_0x38a7c6;_0x25683a===u[_0xa06de7(0x25e)]['ONLINE']?this[_0xa06de7(0x1ee)]():this[_0xa06de7(0x1d6)]();}),this[_0x38a7c6(0x361)]['event$'][_0x38a7c6(0x393)](d[_0x38a7c6(0x165)](this[_0x38a7c6(0x2e9)]))[_0x38a7c6(0x2a8)](_0x22018a=>{const _0x4f406a=_0x38a7c6,_0x5868ba=_0x22018a[_0x4f406a(0x307)];_0x5868ba===m[_0x4f406a(0x1a2)][_0x4f406a(0x1af)]&&this[_0x4f406a(0x16e)](_0x22018a),_0x5868ba===m[_0x4f406a(0x1a2)][_0x4f406a(0x26e)]&&this[_0x4f406a(0x342)](_0x22018a);}),this[_0x38a7c6(0x35f)](),this[_0x38a7c6(0x317)](this[_0x38a7c6(0x346)][_0x38a7c6(0x1ae)](_0xa869c6=>{const _0x2b06e5=_0x38a7c6;if(this[_0x2b06e5(0x146)]&&_0xa869c6['id']===g[_0x2b06e5(0x1c5)]['id']&&_0xa869c6[_0x2b06e5(0x316)][_0x2b06e5(0x30b)]===this[_0x2b06e5(0x2f3)]){const _0x2232d6=_0xa869c6[_0x2b06e5(0x316)];this[_0x2b06e5(0x2cb)](_0x2232d6[_0x2b06e5(0x2e5)],_0x2232d6['selections'][0x0]);}})));}[_0x42bdd7(0x16e)](_0x121282){const _0x5c5f1e=_0x42bdd7;var _0x5c6ec4,_0x1329ce;const {memberID:_0x5a0396,selection:_0x3355be}=_0x121282[_0x5c5f1e(0x25f)],{sheetName:_0x305491,range:_0x41df23}=Te['deserializeRangeWithSheet'](_0x3355be),_0x287c36={'name':(_0x1329ce=(_0x5c6ec4=this[_0x5c5f1e(0x347)][_0x5c5f1e(0x239)](this[_0x5c5f1e(0x2f3)],_0x5a0396))==null?void 0x0:_0x5c6ec4[_0x5c5f1e(0x1d1)])!=null?_0x1329ce:_0x5c5f1e(0x223),'range':this['_getMergeRange'](_0x305491,_0x41df23),'sheetID':_0x305491,'color':this[_0x5c5f1e(0x26f)][_0x5c5f1e(0x328)](_0x5a0396),'selection':_0x3355be},_0x1bf12a=this[_0x5c5f1e(0x216)];_0x1bf12a[_0x5c5f1e(0x114)](_0x5a0396,_0x287c36),this[_0x5c5f1e(0x258)]['next'](_0x1bf12a);}[_0x42bdd7(0x342)](_0x4b99b9){const _0x2b57bf=_0x42bdd7,{memberID:_0x50a0eb}=_0x4b99b9[_0x2b57bf(0x25f)],_0x4dae76=this[_0x2b57bf(0x216)];_0x4dae76['delete'](_0x50a0eb),this[_0x2b57bf(0x258)][_0x2b57bf(0x343)](_0x4dae76);}[_0x42bdd7(0x18e)](_0x5a3150,_0x38d780){const _0x349248=_0x42bdd7;var _0x222d6e,_0x571379;const _0x35a84a=(_0x571379=(_0x222d6e=this[_0x349248(0x196)][_0x349248(0x230)](this[_0x349248(0x2f3)]))==null?void 0x0:_0x222d6e[_0x349248(0x38b)](_0x5a3150))==null?void 0x0:_0x571379[_0x349248(0x19e)]();return(_0x35a84a==null?void 0x0:_0x35a84a[_0x349248(0x335)](_0x3e83d9=>a[_0x349248(0x205)]['contains'](_0x3e83d9,_0x38d780)))||_0x38d780;}[_0x42bdd7(0x35f)](){const _0x4c4318=_0x42bdd7,_0x5c2c9a=new a[(_0x4c4318(0x29a))](),_0x2912c2=at(),_0x343700=()=>{const _0x2abfa8=_0x4c4318;_0x5c2c9a[_0x2abfa8(0x1f1)]();const _0x17a5c5=(_0x27e2eb,_0x1e40c7,_0x33686b,_0x5cf15f)=>{const _0x5793ef=_0x2abfa8;let _0x34a64e=[];switch(_0x27e2eb['id']){case g[_0x5793ef(0x13a)][_0x5793ef(0x348)]:{_0x34a64e=g['handleDeleteRangeMoveLeft'](_0x27e2eb,_0x5cf15f);break;}case g[_0x5793ef(0x13a)][_0x5793ef(0x122)]:{_0x34a64e=g['handleDeleteRangeMoveUp'](_0x27e2eb,_0x5cf15f);break;}case g[_0x5793ef(0x13a)][_0x5793ef(0x1e4)]:{_0x34a64e=g[_0x5793ef(0x116)](_0x27e2eb,_0x5cf15f);break;}case g[_0x5793ef(0x13a)][_0x5793ef(0x25c)]:{_0x34a64e=g['handleInsertRangeMoveDown'](_0x27e2eb,_0x5cf15f);break;}case g[_0x5793ef(0x13a)][_0x5793ef(0x39b)]:{_0x34a64e=g[_0x5793ef(0x340)](_0x27e2eb,_0x5cf15f);break;}case g['EffectRefRangId']['InsertRowCommandId']:{_0x34a64e=g[_0x5793ef(0x204)](_0x27e2eb,_0x5cf15f);break;}case g[_0x5793ef(0x13a)][_0x5793ef(0x164)]:{_0x34a64e=g[_0x5793ef(0x248)](_0x27e2eb,_0x5cf15f);break;}case g[_0x5793ef(0x13a)][_0x5793ef(0x155)]:{_0x34a64e=g[_0x5793ef(0x2d7)](_0x27e2eb,_0x5cf15f);break;}case g[_0x5793ef(0x13a)]['RemoveRowCommandId']:{_0x34a64e=g[_0x5793ef(0x1cd)](_0x27e2eb,_0x5cf15f);break;}}const _0x54ac01=g[_0x5793ef(0x304)](_0x34a64e,_0x5cf15f),_0x54d67c=this[_0x5793ef(0x216)][_0x5793ef(0x1d3)](_0x1e40c7);if(_0x54d67c&&_0x54ac01){const _0x1ad4f3={..._0x54d67c,'range':_0x54ac01};this[_0x5793ef(0x216)][_0x5793ef(0x114)](_0x1e40c7,_0x1ad4f3),_0x2912c2(()=>{const _0x56a648=_0x5793ef,_0x491893=this[_0x56a648(0x243)][_0x56a648(0x31c)](_0x54ac01,_0x41c7c3=>(_0x491893[_0x56a648(0x1f1)](),_0x17a5c5(_0x41c7c3,_0x1e40c7,_0x33686b,_0x54ac01)));_0x5c2c9a[_0x56a648(0x318)](_0x491893);});}return{'redos':[],'undos':[]};};this[_0x2abfa8(0x216)][_0x2abfa8(0x376)]((_0x3a2ecd,_0x5c7fca)=>{const _0x86bd8e=_0x2abfa8,{range:_0xd5f08c,sheetID:_0x23db19}=_0x3a2ecd,_0x387f3b=this[_0x86bd8e(0x243)]['registerRefRange'](_0xd5f08c,_0x3c2883=>(_0x387f3b['dispose'](),_0x17a5c5(_0x3c2883,_0x5c7fca,_0x23db19,_0xd5f08c)));_0x5c2c9a['add'](_0x387f3b);});};this[_0x4c4318(0x317)](a[_0x4c4318(0x12e)](this[_0x4c4318(0x258)][_0x4c4318(0x2a8)](()=>{_0x343700();})));}[_0x42bdd7(0x1ee)](){const _0x355679=_0x42bdd7;var _0x55cc82,_0x3c9496;if(this['_online']=!0x0,((_0x55cc82=this[_0x355679(0x196)][_0x355679(0x290)]())==null?void 0x0:_0x55cc82[_0x355679(0x37f)]())!==this['unitID'])return;const _0x369109=(_0x3c9496=this[_0x355679(0x237)]['get'](g[_0x355679(0x38d)])[_0x355679(0x26c)]())==null?void 0x0:_0x3c9496[0x0],_0x518c0b=this[_0x355679(0x196)][_0x355679(0x357)](a[_0x355679(0x29c)][_0x355679(0x2f1)])['getActiveSheet']();_0x369109&&_0x518c0b&&this[_0x355679(0x2cb)](_0x518c0b[_0x355679(0x34d)](),_0x369109);}[_0x42bdd7(0x1d6)](){this['_online']=!0x1;}};Ie=it([A(0x2,a[_0x42bdd7(0x374)](a['Injector'])),A(0x3,a[_0x42bdd7(0x374)](Ce)),A(0x4,a['Inject'](u[_0x42bdd7(0x186)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x42bdd7(0x1fd)]),A(0x7,a[_0x42bdd7(0x374)](g[_0x42bdd7(0x1bf)]))],Ie);var ct=Object[_0x42bdd7(0x2cf)],lt=(_0x39233e,_0xa945af,_0x313eb5,_0x2ec955)=>{const _0x131581=_0x42bdd7;for(var _0x41f642=_0x2ec955>0x1?void 0x0:_0x2ec955?ct(_0xa945af,_0x313eb5):_0xa945af,_0x9a1a02=_0x39233e[_0x131581(0x246)]-0x1,_0x11879b;_0x9a1a02>=0x0;_0x9a1a02--)(_0x11879b=_0x39233e[_0x9a1a02])&&(_0x41f642=_0x11879b(_0x41f642)||_0x41f642);return _0x41f642;},ie=(_0x30ead3,_0x13061e)=>(_0x59088a,_0x3a2af3)=>_0x13061e(_0x59088a,_0x3a2af3,_0x30ead3);let x=class extends a['RxDisposable']{constructor(_0x5d5d9e,_0x332d97,_0x18b43e){const _0x161431=_0x42bdd7;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new d['Subject']()),(this[_0x161431(0x196)]=_0x5d5d9e,this[_0x161431(0x237)]=_0x332d97,this[_0x161431(0x311)]=_0x18b43e,this[_0x161431(0x288)]());}[_0x42bdd7(0x1f1)](){const _0x2c7dd9=_0x42bdd7;super['dispose'](),this['_entityInit$'][_0x2c7dd9(0x167)](),this['_entities'][_0x2c7dd9(0x376)](_0x308f5f=>_0x308f5f[_0x2c7dd9(0x1f1)]());}[_0x42bdd7(0x1bc)](_0x5ce99d){const _0x120bb3=_0x42bdd7;return this[_0x120bb3(0x34c)][_0x120bb3(0x2a4)](_0x5ce99d)?this[_0x120bb3(0x34c)][_0x120bb3(0x1d3)](_0x5ce99d)[_0x120bb3(0x345)]:this[_0x120bb3(0x1ca)][_0x120bb3(0x393)](d['filter'](_0x5a07df=>_0x5a07df['unitID']===_0x5ce99d),d['switchMap'](_0x4d1992=>_0x4d1992[_0x120bb3(0x345)]));}[_0x42bdd7(0x288)](){const _0x381ef4=_0x42bdd7;this[_0x381ef4(0x196)][_0x381ef4(0x1b7)](a[_0x381ef4(0x29c)][_0x381ef4(0x2f1)])[_0x381ef4(0x393)](d[_0x381ef4(0x165)](this[_0x381ef4(0x2e9)]))[_0x381ef4(0x2a8)](async _0x6dbd5b=>{const _0x39e34a=_0x381ef4,_0x125b34=_0x6dbd5b[_0x39e34a(0x37f)](),_0x319e42=await this[_0x39e34a(0x1dd)](_0x125b34);this[_0x39e34a(0x1ca)][_0x39e34a(0x343)](_0x319e42),this[_0x39e34a(0x34c)]['set'](_0x125b34,_0x319e42);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x381ef4(0x29c)][_0x381ef4(0x1c3)])[_0x381ef4(0x393)](d[_0x381ef4(0x165)](this[_0x381ef4(0x2e9)]))[_0x381ef4(0x393)](d[_0x381ef4(0x13e)](_0x51d94c=>!_0x51d94c[_0x381ef4(0x37f)]()[_0x381ef4(0x144)]('__')))['subscribe'](async _0xa8d3d2=>{const _0xf8ec84=_0x381ef4,_0x437a3e=_0xa8d3d2[_0xf8ec84(0x37f)](),_0x22b936=await this[_0xf8ec84(0x33f)](_0x437a3e);this['_entityInit$'][_0xf8ec84(0x343)](_0x22b936),this[_0xf8ec84(0x34c)][_0xf8ec84(0x114)](_0x437a3e,_0x22b936);}),d[_0x381ef4(0x260)](this[_0x381ef4(0x196)]['getTypeOfUnitDisposed$'](a[_0x381ef4(0x29c)]['UNIVER_DOC']),this[_0x381ef4(0x196)][_0x381ef4(0x18d)](a['UniverInstanceType']['UNIVER_SHEET']))[_0x381ef4(0x393)](d[_0x381ef4(0x165)](this[_0x381ef4(0x2e9)]))[_0x381ef4(0x2a8)](_0x11501f=>{const _0x3d6946=_0x381ef4,_0x31d940=_0x11501f[_0x3d6946(0x37f)](),_0x2fafda=this[_0x3d6946(0x34c)][_0x3d6946(0x1d3)](_0x31d940);_0x2fafda&&(_0x2fafda[_0x3d6946(0x1f1)](),this['_entities'][_0x3d6946(0x38e)](_0x31d940));});}async[_0x42bdd7(0x1dd)](_0x1035c0){const _0x18f375=_0x42bdd7,_0x106dd4=await this['_collabSessionService']['requireSession'](_0x1035c0),_0xbfbcfb=this[_0x18f375(0x237)][_0x18f375(0x282)](Ie,_0x1035c0,_0x106dd4);return _0xbfbcfb[_0x18f375(0x2ad)](),_0xbfbcfb;}async[_0x42bdd7(0x33f)](_0xe31ab0){const _0x24441e=_0x42bdd7,_0x1812f5=await this[_0x24441e(0x311)][_0x24441e(0x321)](_0xe31ab0),_0x17af78=this[_0x24441e(0x237)][_0x24441e(0x282)](Se,_0xe31ab0,_0x1812f5);return _0x17af78[_0x24441e(0x2ad)](),_0x17af78;}};x=lt([ie(0x0,a[_0x42bdd7(0x2e4)]),ie(0x1,a[_0x42bdd7(0x374)](a[_0x42bdd7(0x353)])),ie(0x2,a[_0x42bdd7(0x374)](u['CollaborationSessionService']))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x48cc5a,_0xf788a6){const _0x2fce56=_0x42bdd7;let {radius:_0x5592fe,width:_0x4d8b0e,height:_0x12634c}=_0xf788a6;_0x5592fe=_0x5592fe!=null?_0x5592fe:0x0,_0x4d8b0e=_0x4d8b0e!=null?_0x4d8b0e:0x1e,_0x12634c=_0x12634c!=null?_0x12634c:0x1e;let _0x2b5caa=0x0,_0x4f7ea1=0x0,_0x2367bb=0x0;_0x2b5caa=_0x4f7ea1=_0x2367bb=Math['min'](_0x5592fe,_0x4d8b0e/0x2,_0x12634c/0x2),_0x48cc5a[_0x2fce56(0x1e5)](),_0x48cc5a[_0x2fce56(0x308)](_0x2b5caa,0x0),_0x48cc5a[_0x2fce56(0x198)](_0x4d8b0e-_0x4f7ea1,0x0),_0x48cc5a[_0x2fce56(0x123)](_0x4d8b0e-_0x4f7ea1,_0x4f7ea1,_0x4f7ea1,Math['PI']*0x3/0x2,0x0,!0x1),_0x48cc5a[_0x2fce56(0x198)](_0x4d8b0e,_0x12634c-_0x2367bb),_0x48cc5a[_0x2fce56(0x123)](_0x4d8b0e-_0x2367bb,_0x12634c-_0x2367bb,_0x2367bb,0x0,Math['PI']/0x2,!0x1),_0x48cc5a['lineTo'](0x0,_0x12634c),_0x48cc5a[_0x2fce56(0x198)](0x0,_0x2b5caa),_0x48cc5a[_0x2fce56(0x123)](_0x2b5caa,_0x2b5caa,_0x2b5caa,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x48cc5a[_0x2fce56(0x242)](),_0xf788a6[_0x2fce56(0x29d)]&&(_0x48cc5a[_0x2fce56(0x293)](),_0x48cc5a[_0x2fce56(0x11b)]=_0xf788a6[_0x2fce56(0x29d)],_0xf788a6[_0x2fce56(0x22f)]==='evenodd'?_0x48cc5a[_0x2fce56(0x29d)](_0x2fce56(0x250)):_0x48cc5a[_0x2fce56(0x29d)](),_0x48cc5a[_0x2fce56(0x2ee)]());}class te extends p['Shape']{constructor(_0x2fbfe4,_0x5785e7){const _0x57dfa8=_0x42bdd7;super(_0x2fbfe4,_0x5785e7),_(this,_0x57dfa8(0x1ba)),_(this,'text'),(this[_0x57dfa8(0x1ba)]=_0x5785e7==null?void 0x0:_0x5785e7['color'],this[_0x57dfa8(0x213)]=_0x5785e7==null?void 0x0:_0x5785e7[_0x57dfa8(0x213)]);}static[_0x42bdd7(0x1b8)](_0x508af4,_0x24066d){const _0x3e75c7=_0x42bdd7,{text:_0x39813d,color:_0x2be19d}=_0x24066d;_0x508af4['save'](),_0x508af4[_0x3e75c7(0x2c3)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x2fcf9d=_0x508af4[_0x3e75c7(0x2d9)](_0x39813d)['width'],_0x41af0b=Math[_0x3e75c7(0x2e3)](_0x2fcf9d+0x2*re,De);ht(_0x508af4,{'height':K,'radius':0x4,'width':_0x41af0b,'fill':_0x2be19d}),_0x508af4[_0x3e75c7(0x11b)]='#FFF';const _0x1b9358=re,_0x4104b3=K-_t,_0x288ac9=De-0x2*re;if(_0x2fcf9d>_0x288ac9){let _0x2d2a17='',_0x44ae25=0x0;for(const _0x40cdd4 of _0x39813d){const _0x1669f8=_0x508af4[_0x3e75c7(0x2d9)](_0x40cdd4)[_0x3e75c7(0x267)];if(_0x44ae25+_0x1669f8<=_0x288ac9-_0x508af4['measureText'](_0x3e75c7(0x124))['width'])_0x2d2a17+=_0x40cdd4,_0x44ae25+=_0x1669f8;else{_0x2d2a17+='...';break;}}_0x508af4[_0x3e75c7(0x377)](_0x2d2a17,_0x1b9358,_0x4104b3);}else _0x508af4['fillText'](_0x39813d,_0x1b9358,_0x4104b3);_0x508af4[_0x3e75c7(0x2ee)]();}[_0x42bdd7(0x383)](_0x226087){te['drawWith'](_0x226087,this);}}const oe='collab-text-anchor-',ut=_0x42bdd7(0x23a),dt='collab-rect-range-',k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x42bdd7(0x2f2);class Ue{constructor(_0x338da6,_0x3369f6,_0x463949,_0x2cc0e1){const _0x567cc6=_0x42bdd7;_(this,_0x567cc6(0x322),[]),_(this,_0x567cc6(0x370),null),_(this,_0x567cc6(0x192),null),_(this,_0x567cc6(0x16d),null),_(this,_0x567cc6(0x20e),null),_(this,_0x567cc6(0x369),null),(this['_cursor']=_0x338da6,this[_0x567cc6(0x2ae)]=_0x3369f6,this['_docSkeleton']=_0x463949,this[_0x567cc6(0x202)]=_0x2cc0e1,this['_render']());}set[_0x42bdd7(0x334)](_0xc08d85){const _0x2e8604=_0x42bdd7;_0xc08d85?(this['_anchorDot']&&this['_anchorDot'][_0x2e8604(0x228)](),this['_textBubble']&&this[_0x2e8604(0x192)][_0x2e8604(0x2bc)]()):(this[_0x2e8604(0x16d)]&&this[_0x2e8604(0x16d)][_0x2e8604(0x2bc)](),this[_0x2e8604(0x192)]&&this[_0x2e8604(0x192)][_0x2e8604(0x228)]());}[_0x42bdd7(0x1f1)](){const _0x191550=_0x42bdd7;for(const _0x57483c of this[_0x191550(0x322)])_0x57483c[_0x191550(0x1f1)]();this['_textBubble']&&this[_0x191550(0x192)][_0x191550(0x1f1)](),this[_0x191550(0x16d)]&&this[_0x191550(0x16d)][_0x191550(0x1f1)](),this[_0x191550(0x370)]&&this['_anchor'][_0x191550(0x1f1)](),this[_0x191550(0x369)]&&this[_0x191550(0x369)]();}['_render'](){const _0x1713c0=_0x42bdd7;var _0x17eae6;const {_docSkeleton:_0x1dcc25,_document:_0x3c8903}=this,{color:_0x2a056b,name:_0xee5eef,ranges:_0x248977}=this[_0x1713c0(0x27e)],_0x51c889=_0x3c8903[_0x1713c0(0x2ef)](),{docsLeft:_0x4c9d01,docsTop:_0x569184}=_0x51c889,_0x3feeb5=new b[(_0x1713c0(0x1b2))](_0x51c889,_0x1dcc25);for(const {startOffset:_0x24b1ab,endOffset:_0x377a55,rangeType:_0x4a65b4,segmentId:_0x1c350f,segmentPage:_0x3eb812,collapsed:_0x213fb0,isActive:_0x3c5a47}of _0x248977){const _0x5528cb=_0x1dcc25[_0x1713c0(0x2d5)](_0x24b1ab,!0x0,_0x1c350f,_0x3eb812);let _0x539c98=_0x1dcc25['findNodePositionByCharIndex'](_0x377a55,!0x0,_0x1c350f,_0x3eb812);if(_0x539c98==null&&(_0x539c98=_0x1dcc25['findNodePositionByCharIndex'](_0x377a55-0x1,!0x1,_0x1c350f,_0x3eb812)),_0x3c5a47){const {contentBoxPointGroup:_0x24f903}=_0x3feeb5[_0x1713c0(0x27d)](_0x539c98,_0x539c98);if(_0x24f903[_0x1713c0(0x246)]===0x0)continue;this[_0x1713c0(0x15e)](_0x2a056b,_0x24f903,_0x4c9d01,_0x569184,_0xee5eef),this[_0x1713c0(0x369)]=this[_0x1713c0(0x2dd)]();}if(_0x5528cb&&_0x539c98){if(_0x4a65b4===a[_0x1713c0(0x131)][_0x1713c0(0x2c2)]){const _0x23d1e0=new b['NodePositionConvertToRectRange'](_0x51c889,_0x1dcc25),{pointGroup:_0x3063cf}=(_0x17eae6=_0x23d1e0[_0x1713c0(0x27d)](_0x5528cb,_0x539c98))!=null?_0x17eae6:{};if(_0x3063cf==null||_0x3063cf['length']===0x0)continue;this[_0x1713c0(0x129)](_0x2a056b,_0x3063cf,_0x4c9d01,_0x569184);}else{if(!_0x213fb0){const {borderBoxPointGroup:_0x2262f9}=_0x3feeb5[_0x1713c0(0x27d)](_0x5528cb,_0x539c98);if(_0x2262f9[_0x1713c0(0x246)]===0x0)continue;this[_0x1713c0(0x145)](_0x2a056b,_0x2262f9,_0x4c9d01,_0x569184);}}}}}[_0x42bdd7(0x15e)](_0x3eb32a,_0x247eeb,_0x178137,_0x43e2f6,_0x3e4258){const _0x28e3b4=_0x42bdd7,_0x57f539=this[_0x28e3b4(0x13c)](_0x247eeb),{left:_0x173fc2,top:_0x1036c5,height:_0x278024}=_0x57f539,_0x4c160d=this[_0x28e3b4(0x2ac)](),_0x37370e=St/_0x4c160d,_0x5e84e5=new p[(_0x28e3b4(0x265))](oe+a[_0x28e3b4(0x368)]['generateRandomId'](k),{'left':_0x173fc2+_0x178137-_0x37370e,'top':_0x1036c5+_0x43e2f6,'height':_0x278024,'width':ft,'fill':_0x3eb32a||p[_0x28e3b4(0x283)](a['COLORS']['black'],0x0),'strokeWidth':_0x37370e,'stroke':It,'evented':!0x0});this[_0x28e3b4(0x370)]=_0x5e84e5,this[_0x28e3b4(0x2ae)][_0x28e3b4(0x33a)](_0x5e84e5,b[_0x28e3b4(0x270)]);const _0x5557e5=new p[(_0x28e3b4(0x265))](oe+a[_0x28e3b4(0x368)][_0x28e3b4(0x2a0)](k),{'left':_0x173fc2+_0x178137-_0x37370e,'top':_0x1036c5+_0x43e2f6-ae/0x2,'height':ae,'width':ae,'fill':_0x3eb32a||p[_0x28e3b4(0x283)](a[_0x28e3b4(0x263)][_0x28e3b4(0x392)],0x0),'strokeWidth':0x0,'stroke':_0x3eb32a||p[_0x28e3b4(0x283)](a[_0x28e3b4(0x263)][_0x28e3b4(0x392)],0x0),'evented':!0x1});this[_0x28e3b4(0x16d)]=_0x5557e5,this[_0x28e3b4(0x2ae)][_0x28e3b4(0x33a)](_0x5557e5,b[_0x28e3b4(0x270)]);const _0x14ef7a=new te(oe+a[_0x28e3b4(0x368)]['generateRandomId'](k),{'left':_0x173fc2+_0x178137-_0x37370e,'top':_0x1036c5+_0x43e2f6-K,'text':_0x3e4258,'color':_0x3eb32a});this['_textBubble']=_0x14ef7a,this[_0x28e3b4(0x2ae)][_0x28e3b4(0x33a)](_0x14ef7a,b[_0x28e3b4(0x270)]),this[_0x28e3b4(0x334)]=!0x1;}['_handleHover'](){const _0x467af9=_0x42bdd7,_0x240a1f=this[_0x467af9(0x370)][_0x467af9(0x2f8)]['subscribeEvent'](()=>{const _0x23903b=_0x467af9;this[_0x23903b(0x334)]=!0x0;}),_0x1330d7=this[_0x467af9(0x370)]['onPointerLeave$'][_0x467af9(0x2c9)](()=>{const _0x45125d=_0x467af9;this[_0x45125d(0x20e)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x2a3ce1=_0x45125d;this[_0x2a3ce1(0x334)]=!0x1;},0x7d0);});return()=>{const _0x9c9d5c=_0x467af9;_0x240a1f[_0x9c9d5c(0x1cb)](),_0x1330d7['unsubscribe']();};}['_drawTextRange'](_0x532f5c,_0x503526,_0x3c22ab,_0x3bb41d){const _0x43fe32=_0x42bdd7,_0x5645a5=new a['ColorKit'](_0x532f5c)[_0x43fe32(0x351)](0.2)[_0x43fe32(0x253)](),_0x1b21e4=new p[(_0x43fe32(0x32f))](ut+a[_0x43fe32(0x368)][_0x43fe32(0x2a0)](k),{'pointsGroup':_0x503526,'fill':_0x5645a5||p['getColor'](a['COLORS'][_0x43fe32(0x392)],0.2),'left':_0x3c22ab,'top':_0x3bb41d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x43fe32(0x322)][_0x43fe32(0x234)](_0x1b21e4),this[_0x43fe32(0x2ae)]['addObject'](_0x1b21e4,b[_0x43fe32(0x270)]);}[_0x42bdd7(0x129)](_0x3920f2,_0x13ddc3,_0x3a6087,_0x38a955){const _0xe7b0c=_0x42bdd7,_0x4f649a=new a[(_0xe7b0c(0x1d5))](_0x3920f2)[_0xe7b0c(0x351)](0.2)['toRgbString'](),_0x215fbe=new p[(_0xe7b0c(0x32f))](dt+a[_0xe7b0c(0x368)][_0xe7b0c(0x2a0)](k),{'pointsGroup':_0x13ddc3,'fill':_0x4f649a||p[_0xe7b0c(0x283)](a['COLORS'][_0xe7b0c(0x392)],0.2),'left':_0x3a6087,'top':_0x38a955,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xe7b0c(0x322)]['push'](_0x215fbe),this[_0xe7b0c(0x2ae)][_0xe7b0c(0x33a)](_0x215fbe,b['TEXT_RANGE_LAYER_INDEX']);}[_0x42bdd7(0x13c)](_0x3facd9){const _0x2b6ca9=_0x3facd9[0x0],_0x3c946d=_0x2b6ca9[0x0],_0xf502a3=_0x2b6ca9[0x2],{x:_0x548d08,y:_0x335cff}=_0x3c946d,{x:_0x190292,y:_0x136522}=_0xf502a3;return{'left':_0x548d08,'top':_0x335cff,'width':_0x190292-_0x548d08,'height':_0x136522-_0x335cff};}['_getScale'](){const _0x26ea3b=_0x42bdd7,{scaleX:_0x261682,scaleY:_0x2fce7c}=this[_0x26ea3b(0x2ae)]['getAncestorScale']();return Math[_0x26ea3b(0x1db)](_0x261682,_0x2fce7c);}}var vt=Object['getOwnPropertyDescriptor'],gt=(_0x44c4ef,_0xc451cd,_0xe2f3c1,_0x503548)=>{const _0xa531d1=_0x42bdd7;for(var _0x351762=_0x503548>0x1?void 0x0:_0x503548?vt(_0xc451cd,_0xe2f3c1):_0xc451cd,_0x5f1c2a=_0x44c4ef[_0xa531d1(0x246)]-0x1,_0x260071;_0x5f1c2a>=0x0;_0x5f1c2a--)(_0x260071=_0x44c4ef[_0x5f1c2a])&&(_0x351762=_0x260071(_0x351762)||_0x351762);return _0x351762;},V=(_0x5e89a3,_0x58d553)=>(_0x4a0d2f,_0xa9ea9b)=>_0x58d553(_0x4a0d2f,_0xa9ea9b,_0x5e89a3);let ve=class extends a[_0x42bdd7(0x289)]{constructor(_0x2e1385,_0x1a2efd,_0x23b49f,_0x181e8b,_0x3f800c){const _0x4fcc9c=_0x42bdd7;super(),_(this,_0x4fcc9c(0x39d),[]),_(this,'_cursors',[]),(this[_0x4fcc9c(0x339)]=_0x2e1385,this[_0x4fcc9c(0x329)]=_0x1a2efd,this['_collabCursorController']=_0x23b49f,this['_commandService']=_0x181e8b,this[_0x4fcc9c(0x159)]=_0x3f800c,this[_0x4fcc9c(0x288)]());}['_init'](){const _0x1f5e30=_0x42bdd7,_0x23eae6=this[_0x1f5e30(0x339)][_0x1f5e30(0x30b)],_0x2b9e7e=this[_0x1f5e30(0x329)];this[_0x1f5e30(0x317)](d[_0x1f5e30(0x23e)]([this[_0x1f5e30(0x2ce)]['getCollabCursors$'](_0x23eae6),this[_0x1f5e30(0x159)][_0x1f5e30(0x141)]])[_0x1f5e30(0x393)]($['map'](([_0x1c0956,_0x5428c2])=>({'skeleton':_0x2b9e7e['getSkeleton'](),'cursors':[..._0x1c0956['values']()][_0x1f5e30(0x269)](_0x11d8b8=>({..._0x11d8b8,'color':_0x5428c2[_0x11d8b8[_0x1f5e30(0x1ba)]]}))})))[_0x1f5e30(0x2a8)](_0x36153a=>{const _0x3a7274=_0x1f5e30;if(this[_0x3a7274(0x1c4)](),_0x36153a){const {skeleton:_0x2dbdf1,cursors:_0x139e24}=_0x36153a;this[_0x3a7274(0x174)](_0x2dbdf1,_0x139e24);}})),this[_0x1f5e30(0x21e)](),this[_0x1f5e30(0x15c)]();}[_0x42bdd7(0x174)](_0x4f9aff,_0x343a7e){const _0x1b8ad7=_0x42bdd7,{scene:_0x54c32b,mainComponent:_0x400535}=this[_0x1b8ad7(0x339)],_0x2e56b6=_0x343a7e[_0x1b8ad7(0x35c)](_0x2b6c2c=>new Ue(_0x2b6c2c,_0x54c32b,_0x4f9aff,_0x400535));this[_0x1b8ad7(0x39d)]=_0x2e56b6,this[_0x1b8ad7(0x281)]=_0x343a7e;}[_0x42bdd7(0x206)](){const _0x463307=_0x42bdd7;this[_0x463307(0x1c4)]();const {scene:_0x528f54,mainComponent:_0x1155d9}=this['_context'],_0x2ad5f3=this[_0x463307(0x329)][_0x463307(0x27c)](),_0x58a166=this[_0x463307(0x281)]['map'](_0x709645=>new Ue(_0x709645,_0x528f54,_0x2ad5f3,_0x1155d9));this['_cursorShapes']=_0x58a166;}[_0x42bdd7(0x1c4)](){const _0xc24e44=_0x42bdd7;this[_0xc24e44(0x39d)][_0xc24e44(0x376)](_0x2dd02e=>_0x2dd02e[_0xc24e44(0x1f1)]()),this[_0xc24e44(0x39d)]=[];}[_0x42bdd7(0x15c)](){const _0x414c81=_0x42bdd7,_0x39a5c9=[b[_0x414c81(0x1fb)]['id']];this['disposeWithMe'](this[_0x414c81(0x346)][_0x414c81(0x1ae)](_0x1155af=>{const _0x526b2e=_0x414c81;_0x39a5c9[_0x526b2e(0x2da)](_0x1155af['id'])&&_0x1155af[_0x526b2e(0x316)][_0x526b2e(0x30b)]===this[_0x526b2e(0x339)][_0x526b2e(0x30b)]&&this[_0x526b2e(0x206)]();}));}['_initResize'](){const _0x5165ba=_0x42bdd7;this[_0x5165ba(0x317)](a[_0x5165ba(0x134)](this[_0x5165ba(0x339)][_0x5165ba(0x285)][_0x5165ba(0x2f7)])[_0x5165ba(0x393)]($['filter'](_0x11b1c9=>_0x11b1c9[_0x5165ba(0x27f)]===p[_0x5165ba(0x1fa)][_0x5165ba(0x110)]),$[_0x5165ba(0x323)](0x10))[_0x5165ba(0x2a8)](()=>{this['_refreshCollabCursors']();}));}};ve=gt([V(0x1,a[_0x42bdd7(0x374)](Y[_0x42bdd7(0x264)])),V(0x2,a[_0x42bdd7(0x374)](x)),V(0x3,a[_0x42bdd7(0x1fd)]),V(0x4,a['Inject'](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x42bdd7(0x200)]{constructor(_0x252a92,_0x2c6375){const _0x3d0666=_0x42bdd7;super(_0x252a92,_0x2c6375),_(this,'_color'),_(this,'_hovered',!0x1),_(this,'_range'),_(this,'_name',''),_(this,_0x3d0666(0x1b9),'top'),_(this,_0x3d0666(0x15a)),(_0x2c6375&&this[_0x3d0666(0x2d2)](_0x2c6375),this[_0x3d0666(0x2f8)]['subscribeEvent'](()=>this[_0x3d0666(0x2d2)]({'hovered':!0x0})),this['onPointerLeave$'][_0x3d0666(0x2c9)](()=>this[_0x3d0666(0x2d2)]({'hovered':!0x1})));}[_0x42bdd7(0x2d2)](_0x2f7128){const _0x1e5046=_0x42bdd7;var _0x294dad,_0x5335d5,_0x3fb0a7,_0x5d228b,_0x14e998,_0x36396d;this[_0x1e5046(0x32e)]=(_0x294dad=_0x2f7128[_0x1e5046(0x1ba)])!=null?_0x294dad:this[_0x1e5046(0x32e)],this[_0x1e5046(0x262)]=(_0x5335d5=_0x2f7128[_0x1e5046(0x1f8)])!=null?_0x5335d5:this[_0x1e5046(0x262)],this[_0x1e5046(0x18a)]=(_0x3fb0a7=_0x2f7128[_0x1e5046(0x2ab)])!=null?_0x3fb0a7:this[_0x1e5046(0x18a)],this[_0x1e5046(0x1cf)]=(_0x5d228b=_0x2f7128[_0x1e5046(0x1d1)])!=null?_0x5d228b:this['_name'],this[_0x1e5046(0x1b9)]=(_0x14e998=_0x2f7128[_0x1e5046(0x365)])!=null?_0x14e998:this[_0x1e5046(0x1b9)],this['_backgroundColor']=(_0x36396d=_0x2f7128[_0x1e5046(0x300)])!=null?_0x36396d:this[_0x1e5046(0x15a)],this[_0x1e5046(0x273)]({'width':_0x2f7128['width'],'height':_0x2f7128['height']});}['onMouseMove'](_0x53603b){const _0x467600=_0x42bdd7,{row:_0x1e2c47,column:_0x42e49a}=_0x53603b;if(_0x1e2c47>=this['_range'][_0x467600(0x37a)]&&_0x1e2c47<=this[_0x467600(0x18a)][_0x467600(0x12c)]&&_0x42e49a>=this[_0x467600(0x18a)][_0x467600(0x221)]&&_0x42e49a<=this[_0x467600(0x18a)][_0x467600(0x13f)]){this[_0x467600(0x2d2)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x42bdd7(0x211)](_0x4e0911){return!0x1;}['_draw'](_0x17c197){const _0x53eb5a=_0x42bdd7;p[_0x53eb5a(0x265)][_0x53eb5a(0x1b8)](_0x17c197,{'width':this[_0x53eb5a(0x267)],'height':this[_0x53eb5a(0x30f)],'strokeWidth':Ct,'stroke':this[_0x53eb5a(0x32e)],'evented':!0x1,'fill':this[_0x53eb5a(0x15a)]}),this[_0x53eb5a(0x262)]&&(_0x17c197[_0x53eb5a(0x293)](),_0x17c197['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x53eb5a(0x163)?0x0:-0x14),te[_0x53eb5a(0x1b8)](_0x17c197,{'text':this[_0x53eb5a(0x1cf)],'color':this[_0x53eb5a(0x32e)]}),_0x17c197[_0x53eb5a(0x2ee)]());}}var pt=Object[_0x42bdd7(0x2cf)],bt=(_0x1e341f,_0x32257d,_0x343112,_0x1f7b54)=>{for(var _0x281452=_0x1f7b54>0x1?void 0x0:_0x1f7b54?pt(_0x32257d,_0x343112):_0x32257d,_0x1108d0=_0x1e341f['length']-0x1,_0x48a46d;_0x1108d0>=0x0;_0x1108d0--)(_0x48a46d=_0x1e341f[_0x1108d0])&&(_0x281452=_0x48a46d(_0x281452)||_0x281452);return _0x281452;},ce=(_0x4f8740,_0x42989e)=>(_0x2e0ef0,_0xa79564)=>_0x42989e(_0x2e0ef0,_0xa79564,_0x4f8740);const Et=0x1389;let ge=class extends a[_0x42bdd7(0x289)]{constructor(_0x2cb79e,_0x439a23,_0x5e8081,_0x6e5ea6){const _0x57ca06=_0x42bdd7;super(),_(this,_0x57ca06(0x281),new Set()),_(this,'_lastPointer',null),(this[_0x57ca06(0x339)]=_0x2cb79e,this[_0x57ca06(0x31d)]=_0x439a23,this['_collabCursorController']=_0x5e8081,this['_themeService']=_0x6e5ea6,this[_0x57ca06(0x288)]());}[_0x42bdd7(0x288)](){const _0x5a57d1=_0x42bdd7;this[_0x5a57d1(0x31d)][_0x5a57d1(0x2e2)][_0x5a57d1(0x393)]($[_0x5a57d1(0x165)](this[_0x5a57d1(0x2e9)]),$['switchMap'](_0x115f1b=>{const _0x29efb9=_0x5a57d1;if(_0x115f1b){const _0x13c335=_0x115f1b[_0x29efb9(0x199)];return d[_0x29efb9(0x23e)](this[_0x29efb9(0x2ce)]['getCollabCursors$'](this[_0x29efb9(0x339)][_0x29efb9(0x30b)]),this[_0x29efb9(0x159)][_0x29efb9(0x141)])[_0x29efb9(0x393)]($['map'](([_0x7b80a5,_0x3f50ed])=>{const _0x2605a6=_0x29efb9,_0x3de7f0=new Map();return _0x7b80a5[_0x2605a6(0x376)]((_0x456a80,_0x501832)=>{const _0x1fa80c=_0x2605a6;if(_0x456a80[_0x1fa80c(0x191)]===_0x13c335){const _0x2a34ab={..._0x456a80};_0x2a34ab[_0x1fa80c(0x1ba)]=_0x3f50ed[_0x456a80['color']],_0x3de7f0['set'](_0x501832,_0x2a34ab);}}),{'skeleton':_0x115f1b,'cursors':_0x3de7f0};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x423f89,cursors:_0x22d9d4})=>{const _0x416190=_0x5a57d1;this['_removeCollabCursors'](),_0x423f89&&this[_0x416190(0x174)](_0x423f89,_0x22d9d4);}),this[_0x5a57d1(0x31d)][_0x5a57d1(0x2e2)][_0x5a57d1(0x2a8)](_0x518754=>{const _0x45b7b2=_0x5a57d1;if(_0x518754==null)return;const {skeleton:_0x3c9602}=_0x518754,{scene:_0x2bb5d0}=this['_context'];_0x2bb5d0[_0x45b7b2(0x15d)][_0x45b7b2(0x2c9)](a['debounce'](_0x2ab5a9=>{const _0x563f92=_0x45b7b2;var _0x4cebb9,_0x39333f;const {offsetX:_0x54bdc2,offsetY:_0x849eef}=_0x2ab5a9,{x:_0x28085a,y:_0x553480}=_0x2bb5d0[_0x563f92(0x332)](p[_0x563f92(0x11d)][_0x563f92(0x17e)]([_0x54bdc2,_0x849eef])),{scaleX:_0x4c53b5,scaleY:_0x269ba1}=_0x2bb5d0['getAncestorScale'](),_0x337521=_0x2bb5d0[_0x563f92(0x2d3)](p['SHEET_VIEWPORT_KEY'][_0x563f92(0x2ba)]),_0xb00112=_0x2bb5d0[_0x563f92(0x1b5)](p[_0x563f92(0x11d)][_0x563f92(0x17e)]([_0x28085a,_0x553480]),_0x337521),_0x55f523=_0x3c9602[_0x563f92(0x20b)](_0x54bdc2,_0x849eef,_0x4c53b5,_0x269ba1,_0xb00112);((_0x4cebb9=this[_0x563f92(0x156)])==null?void 0x0:_0x4cebb9[_0x563f92(0x215)])===_0x55f523[_0x563f92(0x215)]&&((_0x39333f=this[_0x563f92(0x156)])==null?void 0x0:_0x39333f[_0x563f92(0x16c)])===_0x55f523[_0x563f92(0x16c)]||this[_0x563f92(0x281)]['forEach'](_0x517819=>{const _0x30e8eb=_0x563f92;_0x517819[_0x30e8eb(0x266)](_0x55f523);});},0x64));});}['_updateCollabCursors'](_0x4caa3a,_0x3bddaa){const _0x42a6b6=_0x42bdd7;var _0x64330f;const _0x51ca08=(_0x64330f=this[_0x42a6b6(0x31d)][_0x42a6b6(0x180)]())==null?void 0x0:_0x64330f['skeleton'];if(!_0x51ca08)return;const _0x11e7fb=this[_0x42a6b6(0x15f)]();if(!_0x11e7fb)return;this[_0x42a6b6(0x281)][_0x42a6b6(0x376)](_0x1abec3=>{const _0x2a1c6c=_0x42a6b6;_0x1abec3[_0x2a1c6c(0x301)]();});const {scene:_0x516bf9}=_0x11e7fb,_0x4a2d77=Tt(Array[_0x42a6b6(0x33c)](_0x3bddaa[_0x42a6b6(0x2fe)]()))['map'](_0x3942c0=>{const _0x7c1c04=_0x42a6b6,{color:_0x120b85,range:_0xa21e,name:_0x3c6809,selection:_0x681ff8,sheetID:_0x33adc}=_0x3942c0,{startColumn:_0x3a067c,startRow:_0x4e43ca,endColumn:_0x14617d,endRow:_0x34ab28}=_0xa21e,_0x29527a=G[_0x7c1c04(0x11e)](_0x4e43ca,_0x3a067c,_0x516bf9,_0x51ca08),_0x549549=G[_0x7c1c04(0x11e)](_0x34ab28,_0x14617d,_0x516bf9,_0x51ca08),{columnHeaderHeightAndMarginTop:_0x39c6cd}=_0x51ca08,{startX:_0x18974c,startY:_0x153a2b}=_0x29527a,{endX:_0xf420f4,endY:_0x5f0c86}=_0x549549,_0x594631=_0xf420f4-_0x18974c,_0x29c3c1=_0x5f0c86-_0x153a2b,_0x72def5={'labelPosition':_0x153a2b-_0x39c6cd>=K?'top':_0x7c1c04(0x163),'sheetID':_0x33adc,'range':_0xa21e,'color':_0x120b85,'name':_0x3c6809,'selection':_0x681ff8,'left':_0x18974c,'top':_0x153a2b,'width':_0x594631,'height':_0x29c3c1,'evented':!0x1,'zIndex':Et};return new Ae(_0x3c6809,_0x72def5);});_0x516bf9['addObjects'](_0x4a2d77,mt),this[_0x42a6b6(0x281)]=new Set(_0x4a2d77);}[_0x42bdd7(0x1c4)](){const _0x3e01f3=_0x42bdd7;var _0x1de070;(_0x1de070=this['_cursors'])==null||_0x1de070[_0x3e01f3(0x376)](_0x2b72aa=>_0x2b72aa[_0x3e01f3(0x1f1)]());}[_0x42bdd7(0x15f)](){const _0x1372cd=_0x42bdd7;return G[_0x1372cd(0x151)](this[_0x1372cd(0x339)][_0x1372cd(0x157)],this[_0x1372cd(0x339)]);}};ge=bt([ce(0x1,a[_0x42bdd7(0x374)](G[_0x42bdd7(0x36d)])),ce(0x2,a[_0x42bdd7(0x374)](x)),ce(0x3,a[_0x42bdd7(0x374)](a[_0x42bdd7(0x2b7)]))],ge);function Tt(_0x3c013d){const _0xb153a=_0x42bdd7,_0x48b28f=new Map();return _0x3c013d[_0xb153a(0x376)](_0x252540=>{const _0x5d351b=_0xb153a;if(_0x48b28f[_0x5d351b(0x2a4)](_0x252540['selection'])){const _0x19f8b=_0x48b28f[_0x5d351b(0x1d3)](_0x252540[_0x5d351b(0x28f)]);_0x19f8b['name']+=',\x20'+_0x252540['name'];}else _0x48b28f['set'](_0x252540[_0x5d351b(0x28f)],_0x252540);}),Array['from'](_0x48b28f[_0xb153a(0x2fe)]());}var E=function(){const _0x29a8b3=_0x42bdd7;return E=Object[_0x29a8b3(0x25a)]||function(_0x4568f8){const _0x333c73=_0x29a8b3;for(var _0x276323,_0x1053b3=0x1,_0x22302b=arguments['length'];_0x1053b3<_0x22302b;_0x1053b3++){_0x276323=arguments[_0x1053b3];for(var _0x55591f in _0x276323)Object[_0x333c73(0x24c)][_0x333c73(0x15b)][_0x333c73(0x12d)](_0x276323,_0x55591f)&&(_0x4568f8[_0x55591f]=_0x276323[_0x55591f]);}return _0x4568f8;},E[_0x29a8b3(0x2be)](this,arguments);},Ot=function(_0x398356,_0x137d4d){const _0x5c3bdc=_0x42bdd7;var _0x3193fc={};for(var _0x137a0a in _0x398356)Object[_0x5c3bdc(0x24c)][_0x5c3bdc(0x15b)]['call'](_0x398356,_0x137a0a)&&_0x137d4d['indexOf'](_0x137a0a)<0x0&&(_0x3193fc[_0x137a0a]=_0x398356[_0x137a0a]);if(_0x398356!=null&&typeof Object['getOwnPropertySymbols']==_0x5c3bdc(0x150)){for(var _0x2d6e68=0x0,_0x137a0a=Object['getOwnPropertySymbols'](_0x398356);_0x2d6e68<_0x137a0a[_0x5c3bdc(0x246)];_0x2d6e68++)_0x137d4d[_0x5c3bdc(0x1a5)](_0x137a0a[_0x2d6e68])<0x0&&Object[_0x5c3bdc(0x24c)][_0x5c3bdc(0x30e)][_0x5c3bdc(0x12d)](_0x398356,_0x137a0a[_0x2d6e68])&&(_0x3193fc[_0x137a0a[_0x2d6e68]]=_0x398356[_0x137a0a[_0x2d6e68]]);}return _0x3193fc;},be=M[_0x42bdd7(0x2e1)](function(_0x3d23e8,_0x4c0ee7){const _0x5a3c72=_0x42bdd7;var _0x29f34d=_0x3d23e8[_0x5a3c72(0x2bd)],_0x441fdd=_0x3d23e8['id'],_0x1743de=_0x3d23e8[_0x5a3c72(0x337)],_0x55e355=_0x3d23e8[_0x5a3c72(0x2b5)],_0x26fea9=Ot(_0x3d23e8,['icon','id',_0x5a3c72(0x337),'extend']),_0x3613e2=_0x5a3c72(0x1da)[_0x5a3c72(0x363)](_0x441fdd,'\x20')[_0x5a3c72(0x363)](_0x1743de||'')[_0x5a3c72(0x188)](),_0x1761ac=M[_0x5a3c72(0x224)]('_'[_0x5a3c72(0x363)](Ut()));return ye(_0x29f34d,''[_0x5a3c72(0x363)](_0x441fdd),{'defIds':_0x29f34d[_0x5a3c72(0x37c)],'idSuffix':_0x1761ac['current']},E({'ref':_0x4c0ee7,'className':_0x3613e2},_0x26fea9),_0x55e355);});function ye(_0x2ea7ff,_0x3ec8e9,_0x17460d,_0x487770,_0x1f7ab7){const _0x4eb33d=_0x42bdd7;return M['createElement'](_0x2ea7ff[_0x4eb33d(0x271)],E(E({'key':_0x3ec8e9},Rt(_0x2ea7ff,_0x17460d,_0x1f7ab7)),_0x487770),(Dt(_0x2ea7ff,_0x17460d)[_0x4eb33d(0x2db)]||[])[_0x4eb33d(0x35c)](function(_0x3aaaa8,_0x57dda3){const _0x54bfc1=_0x4eb33d;return ye(_0x3aaaa8,''[_0x54bfc1(0x363)](_0x3ec8e9,'-')[_0x54bfc1(0x363)](_0x2ea7ff['tag'],'-')[_0x54bfc1(0x363)](_0x57dda3),_0x17460d,void 0x0,_0x1f7ab7);}));}function Rt(_0x795f2f,_0x51d7b3,_0x5ec70c){const _0x583c89=_0x42bdd7;var _0xba9452=E({},_0x795f2f[_0x583c89(0x341)]);_0x5ec70c!=null&&_0x5ec70c['colorChannel1']&&_0xba9452[_0x583c89(0x29d)]==='colorChannel1'&&(_0xba9452[_0x583c89(0x29d)]=_0x5ec70c['colorChannel1']),_0x795f2f[_0x583c89(0x271)]==='mask'&&_0xba9452['id']&&(_0xba9452['id']=_0xba9452['id']+_0x51d7b3['idSuffix']),Object[_0x583c89(0x390)](_0xba9452)[_0x583c89(0x376)](function(_0x25496f){const _0x539a30=_0x583c89;var _0x400c53=_0x25496f[0x0],_0x5b8511=_0x25496f[0x1];_0x400c53===_0x539a30(0x276)&&typeof _0x5b8511==_0x539a30(0x31f)&&(_0xba9452[_0x400c53]=_0x5b8511[_0x539a30(0x1d0)](/url\(#(.*)\)/,'url(#$1'[_0x539a30(0x363)](_0x51d7b3[_0x539a30(0x135)],')')));});var _0x589656=_0x51d7b3[_0x583c89(0x37c)];return!_0x589656||_0x589656[_0x583c89(0x246)]===0x0||(_0x795f2f['tag']==='use'&&_0xba9452[_0x583c89(0x231)]&&(_0xba9452[_0x583c89(0x231)]=_0xba9452[_0x583c89(0x231)]+_0x51d7b3[_0x583c89(0x135)]),Object[_0x583c89(0x390)](_0xba9452)['forEach'](function(_0x20407f){const _0x45346a=_0x583c89;var _0x5b383f=_0x20407f[0x0],_0x2f327c=_0x20407f[0x1];typeof _0x2f327c==_0x45346a(0x31f)&&(_0xba9452[_0x5b383f]=_0x2f327c[_0x45346a(0x1d0)](/url\(#(.*)\)/,_0x45346a(0x139)[_0x45346a(0x363)](_0x51d7b3[_0x45346a(0x135)],')')));})),_0xba9452;}function Dt(_0x612c0c,_0x154a88){const _0x5b89fe=_0x42bdd7;var _0xb9a3d2,_0x171693=_0x154a88[_0x5b89fe(0x37c)];return!_0x171693||_0x171693[_0x5b89fe(0x246)]===0x0?_0x612c0c:_0x612c0c[_0x5b89fe(0x271)]==='defs'&&(!((_0xb9a3d2=_0x612c0c[_0x5b89fe(0x2db)])===null||_0xb9a3d2===void 0x0)&&_0xb9a3d2[_0x5b89fe(0x246)])?E(E({},_0x612c0c),{'children':_0x612c0c[_0x5b89fe(0x2db)]['map'](function(_0xd6ca2a){const _0x61911a=_0x5b89fe;return typeof _0xd6ca2a[_0x61911a(0x341)]['id']==_0x61911a(0x31f)&&_0x171693&&_0x171693[_0x61911a(0x1a5)](_0xd6ca2a['attrs']['id'])>-0x1?E(E({},_0xd6ca2a),{'attrs':E(E({},_0xd6ca2a[_0x61911a(0x341)]),{'id':_0xd6ca2a['attrs']['id']+_0x154a88[_0x61911a(0x135)]})}):_0xd6ca2a;})}):_0x612c0c;}function Ut(){const _0x3954c1=_0x42bdd7;return Math[_0x3954c1(0x2e7)]()['toString'](0x24)['substring'](0x2,0x8);}be[_0x42bdd7(0x1a3)]='UniverIcon';var Nt={'tag':_0x42bdd7(0x1b4),'attrs':{'fill':_0x42bdd7(0x302),'viewBox':_0x42bdd7(0x30c),'width':_0x42bdd7(0x1c6),'height':_0x42bdd7(0x1c6)},'children':[{'tag':'g','attrs':{'clipPath':_0x42bdd7(0x177)},'children':[{'tag':_0x42bdd7(0x218),'attrs':{'stroke':_0x42bdd7(0x29f),'d':_0x42bdd7(0x310),'strokeLinecap':_0x42bdd7(0x29b),'strokeLinejoin':_0x42bdd7(0x29b),'strokeWidth':1.2}}]},{'tag':_0x42bdd7(0x184),'attrs':{},'children':[{'tag':_0x42bdd7(0x226),'attrs':{'id':_0x42bdd7(0x1de)},'children':[{'tag':_0x42bdd7(0x218),'attrs':{'fill':_0x42bdd7(0x14d),'d':_0x42bdd7(0x10f)}}]}]}],'defIds':[_0x42bdd7(0x1de)]},$e=M[_0x42bdd7(0x2e1)](function(_0x14d3a8,_0x1e0aeb){const _0x331482=_0x42bdd7;return M[_0x331482(0x235)](be,Object[_0x331482(0x25a)]({},_0x14d3a8,{'id':_0x331482(0x240),'ref':_0x1e0aeb,'icon':Nt}));});$e[_0x42bdd7(0x1a3)]=_0x42bdd7(0x278);var Mt={'tag':_0x42bdd7(0x1b4),'attrs':{'fill':_0x42bdd7(0x302),'viewBox':_0x42bdd7(0x2a2),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x42bdd7(0x299)},'children':[{'tag':_0x42bdd7(0x218),'attrs':{'stroke':_0x42bdd7(0x29f),'d':_0x42bdd7(0x1b1),'strokeLinecap':'round','strokeLinejoin':_0x42bdd7(0x29b),'strokeWidth':1.2}}]},{'tag':_0x42bdd7(0x184),'attrs':{},'children':[{'tag':_0x42bdd7(0x226),'attrs':{'id':_0x42bdd7(0x19c)},'children':[{'tag':_0x42bdd7(0x218),'attrs':{'fill':_0x42bdd7(0x14d),'d':_0x42bdd7(0x10f),'transform':_0x42bdd7(0x11c)}}]}]}],'defIds':['on-line-single_clip0_910_349']},xe=M[_0x42bdd7(0x2e1)](function(_0x591051,_0x23fb52){const _0x20919e=_0x42bdd7;return M[_0x20919e(0x235)](be,Object[_0x20919e(0x25a)]({},_0x591051,{'id':_0x20919e(0x295),'ref':_0x23fb52,'icon':Mt}));});xe[_0x42bdd7(0x1a3)]='OnLineSingle';const Lt=_0x42bdd7(0x344),Pt=_0x42bdd7(0x229),wt='univer-online-status',At=_0x42bdd7(0x2fc),yt=_0x42bdd7(0x21f),H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x1e7559){const _0x3878ea=_0x42bdd7;switch(_0x1e7559){case u['CollaborationStatus'][_0x3878ea(0x1c0)]:return _0x3878ea(0x33d);case u[_0x3878ea(0x227)][_0x3878ea(0x33e)]:return _0x3878ea(0x1bb);case u[_0x3878ea(0x227)]['FETCH_MISS']:return _0x3878ea(0x14e);case u['CollaborationStatus'][_0x3878ea(0x2bf)]:return _0x3878ea(0x36f);case u[_0x3878ea(0x227)][_0x3878ea(0x30d)]:case u[_0x3878ea(0x227)][_0x3878ea(0x10e)]:return'collabStatus.syncing';case u[_0x3878ea(0x227)][_0x3878ea(0x355)]:case u[_0x3878ea(0x227)][_0x3878ea(0x1e3)]:return _0x3878ea(0x1a6);}}function je(_0x596cc5){const _0x47a63c=_0x42bdd7,{status$:_0x25f06a}=_0x596cc5,_0x494e79=O[_0x47a63c(0x305)](_0x25f06a,u[_0x47a63c(0x227)][_0x47a63c(0x2bf)]),_0xb36cd4=O[_0x47a63c(0x2b8)](a[_0x47a63c(0x1a0)]),_0x297675=O[_0x47a63c(0x2b8)](u[_0x47a63c(0x238)]),_0x3eb302=_0x494e79!==u[_0x47a63c(0x227)][_0x47a63c(0x1c0)],_0x586665=_0xb36cd4['t']($t(_0x494e79)),_0x4ca4b6=T[_0x47a63c(0x388)](H[_0x47a63c(0x2e8)],{[H[_0x47a63c(0x26a)]]:_0x3eb302,[H[_0x47a63c(0x1b3)]]:!_0x3eb302}),_0x1be2c1=_0x3eb302?P[_0x47a63c(0x195)](xe,{}):P[_0x47a63c(0x195)]($e,{}),_0x2bb9a3=M[_0x47a63c(0x1eb)](()=>{const _0x5d72cd=_0x47a63c;_0x3eb302||_0x297675[_0x5d72cd(0x398)]();},[_0x3eb302,_0x297675]);function _0x306830(){const _0x1e188f=_0x47a63c;return P['jsxs'](_0x1e188f(0x2a6),{'className':T[_0x1e188f(0x388)](_0x4ca4b6,_0x1e188f(0x20c)),'onClick':_0x2bb9a3,'children':[P['jsx'](_0x1e188f(0x2a6),{'className':H[_0x1e188f(0x382)],'children':_0x1be2c1}),P[_0x1e188f(0x195)]('div',{'className':H[_0x1e188f(0x2b3)],'children':_0x586665})]});}return _0x3eb302?_0x306830():P[_0x47a63c(0x195)](T[_0x47a63c(0x14c)],{'title':_0xb36cd4['t'](_0x47a63c(0x2eb)),'children':_0x306830()});}var xt=Object[_0x42bdd7(0x2cf)],jt=(_0x11b83c,_0x4db3a5,_0x32dc72,_0x114c4f)=>{const _0x51259c=_0x42bdd7;for(var _0x5e8356=_0x114c4f>0x1?void 0x0:_0x114c4f?xt(_0x4db3a5,_0x32dc72):_0x4db3a5,_0x379fee=_0x11b83c[_0x51259c(0x246)]-0x1,_0x2c7f8f;_0x379fee>=0x0;_0x379fee--)(_0x2c7f8f=_0x11b83c[_0x379fee])&&(_0x5e8356=_0x2c7f8f(_0x5e8356)||_0x5e8356);return _0x5e8356;},X=(_0x2ed374,_0x90b44b)=>(_0x4e86e8,_0x42ab1f)=>_0x90b44b(_0x4e86e8,_0x42ab1f,_0x2ed374);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x42bdd7(0x1d4)]{constructor(_0x4f9877,_0x3a284b,_0x4add39,_0x31336e){const _0x2d6110=_0x42bdd7;super(),_(this,_0x2d6110(0x279),new d[(_0x2d6110(0x32a))](u['CollaborationStatus']['NOT_COLLAB'])),(this['_univerInstanceService']=_0x4f9877,this[_0x2d6110(0x237)]=_0x3a284b,this[_0x2d6110(0x119)]=_0x4add39,this[_0x2d6110(0x254)]=_0x31336e,this['_initStatusComponent'](),this[_0x2d6110(0x225)]());}['_initStatusListener'](){const _0x6780fe=_0x42bdd7;this['disposeWithMe'](this[_0x6780fe(0x196)][_0x6780fe(0x13d)][_0x6780fe(0x393)](d['switchMap'](()=>{const _0xbd00e7=_0x6780fe,_0x4d41eb=this[_0xbd00e7(0x196)][_0xbd00e7(0x290)]();return _0x4d41eb?this[_0xbd00e7(0x119)]['getCollabEntity$'](_0x4d41eb[_0xbd00e7(0x37f)]()):d['of'](null);}),d[_0x6780fe(0x128)](_0x44245f=>_0x44245f?_0x44245f[_0x6780fe(0x286)]:d['of'](u[_0x6780fe(0x227)][_0x6780fe(0x2bf)])))[_0x6780fe(0x2a8)](_0x17ddf0=>{const _0x217601=_0x6780fe;this[_0x217601(0x279)]['next'](_0x17ddf0);}));}[_0x42bdd7(0x1ce)](){const _0x41e8be=_0x42bdd7;this['disposeWithMe'](this[_0x41e8be(0x254)][_0x41e8be(0x331)](O[_0x41e8be(0x222)][_0x41e8be(0x14b)],()=>O['connectInjector'](Bt({'status$':this[_0x41e8be(0x279)][_0x41e8be(0x1f2)]()}),this[_0x41e8be(0x237)])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x42bdd7(0x2e4)]),X(0x1,a[_0x42bdd7(0x374)](a[_0x42bdd7(0x353)])),X(0x2,a[_0x42bdd7(0x374)](u['CollaborationController'])),X(0x3,O[_0x42bdd7(0x35b)])],exports[_0x42bdd7(0x1aa)]);function Bt(_0x2fec4e){const {status$:_0x5dc981}=_0x2fec4e;return function(){return P['jsx'](je,{'status$':_0x5dc981});};}var kt=Object['getOwnPropertyDescriptor'],Ht=(_0x22b99b,_0x2e729d,_0x161581,_0x49d330)=>{const _0x20553e=_0x42bdd7;for(var _0x1e9d3e=_0x49d330>0x1?void 0x0:_0x49d330?kt(_0x2e729d,_0x161581):_0x2e729d,_0x349b7d=_0x22b99b[_0x20553e(0x246)]-0x1,_0x1b5f3c;_0x349b7d>=0x0;_0x349b7d--)(_0x1b5f3c=_0x22b99b[_0x349b7d])&&(_0x1e9d3e=_0x1b5f3c(_0x1e9d3e)||_0x1e9d3e);return _0x1e9d3e;},y=(_0x4138af,_0x1e9f29)=>(_0x3ccef7,_0x7c6f48)=>_0x1e9f29(_0x3ccef7,_0x7c6f48,_0x4138af);let z=class extends a[_0x42bdd7(0x1d4)]{constructor(_0x67235c,_0x36ed47,_0x5ba572,_0x1fad9e,_0x22274d,_0x542090){const _0x2a75a3=_0x42bdd7;super(),this[_0x2a75a3(0x2ec)]=_0x67235c,this[_0x2a75a3(0x12a)]=_0x36ed47,this[_0x2a75a3(0x153)]=_0x5ba572,this['_messageService']=_0x1fad9e,this[_0x2a75a3(0x236)]=_0x22274d,this[_0x2a75a3(0x373)]=_0x542090,this['_setupBeforeClosingHandler'](),this[_0x2a75a3(0x259)]();}[_0x42bdd7(0x24f)](){const _0xe6ac6d=_0x42bdd7;this[_0xe6ac6d(0x317)](this[_0xe6ac6d(0x2ec)][_0xe6ac6d(0x26b)](()=>{const _0x571425=_0xe6ac6d;if(this[_0x571425(0x12a)][_0x571425(0x38c)][_0x571425(0x214)])return this[_0x571425(0x373)]['t'](_0x571425(0x149));}));}['_initEvent'](){const _0x352df8=_0x42bdd7;this[_0x352df8(0x317)](this[_0x352df8(0x153)][_0x352df8(0x22d)][_0x352df8(0x2a8)](_0x2874ad=>{const _0x1f45cb=_0x352df8;_0x2874ad['id']===u[_0x1f45cb(0x209)]['OTHER_CLIENT_EDITING']&&this['_messageService'][_0x1f45cb(0x2bc)]({'type':T['MessageType'][_0x1f45cb(0x176)],'content':this[_0x1f45cb(0x373)]['t']('collaboration.single-unit.warning')}),_0x2874ad['id']===u[_0x1f45cb(0x209)]['CLOSE_ROOM']&&this[_0x1f45cb(0x1e6)][_0x1f45cb(0x2bc)]({'type':T[_0x1f45cb(0x121)][_0x1f45cb(0x176)],'content':this[_0x1f45cb(0x373)]['t']('collaboration.closeRoom')}),_0x2874ad['id']===u[_0x1f45cb(0x209)]['PERMISSION_DENIED']&&this[_0x1f45cb(0x236)][_0x1f45cb(0x2bc)]({'title':this['_localeService']['t'](_0x1f45cb(0x2f0)),'content':this['_localeService']['t'](_0x1f45cb(0x217)),'type':_0x1f45cb(0x1a8),'duration':0x0}),_0x2874ad['id']===u['CollaborationUIEventId'][_0x1f45cb(0x33e)]&&this[_0x1f45cb(0x1e6)][_0x1f45cb(0x2bc)]({'type':T['MessageType'][_0x1f45cb(0x179)],'content':this[_0x1f45cb(0x373)]['t'](_0x1f45cb(0x1d8))+'('+_0x2874ad[_0x1f45cb(0x25f)]+')'}),_0x2874ad['id']===u[_0x1f45cb(0x209)]['JOIN_ROOM_FAILED']&&this[_0x1f45cb(0x1e6)][_0x1f45cb(0x2bc)]({'type':T[_0x1f45cb(0x121)][_0x1f45cb(0x176)],'content':this[_0x1f45cb(0x373)]['t'](_0x2874ad['data']||'')}),_0x2874ad['id']===u[_0x1f45cb(0x209)]['SOCKET_FAILED_RETRY']&&this[_0x1f45cb(0x1e6)]['show']({'type':T[_0x1f45cb(0x121)][_0x1f45cb(0x176)],'content':this[_0x1f45cb(0x373)]['t'](_0x1f45cb(0x394))}),_0x2874ad['id']===u['CollaborationUIEventId'][_0x1f45cb(0x2fa)]&&this[_0x1f45cb(0x1e6)][_0x1f45cb(0x2bc)]({'type':T[_0x1f45cb(0x121)][_0x1f45cb(0x179)],'content':this['_localeService']['t']('session.connection-failed')}),_0x2874ad['id']===u[_0x1f45cb(0x209)][_0x1f45cb(0x1e9)]&&this[_0x1f45cb(0x1e6)]['show']({'type':T[_0x1f45cb(0x121)]['Error'],'content':this['_localeService']['t'](_0x1f45cb(0x1df))});}));}};z=Ht([y(0x0,O[_0x42bdd7(0x130)]),y(0x1,u[_0x42bdd7(0x1ef)]),y(0x2,a[_0x42bdd7(0x374)](u['CollaborationUIEventService'])),y(0x3,O['IMessageService']),y(0x4,O[_0x42bdd7(0x2a1)]),y(0x5,a['Inject'](a['LocaleService']))],z);const Ft=_0x42bdd7(0x19d),Ne={},Ee=a[_0x42bdd7(0x2c5)]('uni.network.url-service');var Wt=Object[_0x42bdd7(0x2cf)],Yt=(_0x4eceef,_0x2c6710,_0x28fb45,_0x4bfbc5)=>{const _0x4adc09=_0x42bdd7;for(var _0x34f041=_0x4bfbc5>0x1?void 0x0:_0x4bfbc5?Wt(_0x2c6710,_0x28fb45):_0x2c6710,_0x3bc634=_0x4eceef[_0x4adc09(0x246)]-0x1,_0x4063c0;_0x3bc634>=0x0;_0x3bc634--)(_0x4063c0=_0x4eceef[_0x3bc634])&&(_0x34f041=_0x4063c0(_0x34f041)||_0x34f041);return _0x34f041;},F=(_0x7fc6e6,_0x4b09cc)=>(_0x1802bc,_0x166568)=>_0x4b09cc(_0x1802bc,_0x166568,_0x7fc6e6);exports[_0x42bdd7(0x1f7)]=class extends a[_0x42bdd7(0x289)]{constructor(_0x4848bd,_0x5aff58,_0x198365,_0x396eab,_0x26c223){const _0x33e5f0=_0x42bdd7;super(),this[_0x33e5f0(0x28b)]=_0x4848bd,this[_0x33e5f0(0x277)]=_0x5aff58,this['_commandService']=_0x198365,this[_0x33e5f0(0x1e1)]=_0x396eab,_0x26c223?_0x26c223==null||_0x26c223[_0x33e5f0(0x181)]()['then'](()=>this[_0x33e5f0(0x288)]()):(this['_logService'][_0x33e5f0(0x30a)](_0x33e5f0(0x125),_0x33e5f0(0x1ab)),this[_0x33e5f0(0x288)]());}async['_init'](){const _0x31702e=_0x42bdd7,_0x5d39d4=this['_urlService'][_0x31702e(0x207)](_0x31702e(0x157)),_0x48690d=this['_urlService'][_0x31702e(0x207)](_0x31702e(0x27f)),_0x22292a=this[_0x31702e(0x28b)][_0x31702e(0x207)](_0x31702e(0x2e6));if(!_0x5d39d4||!_0x48690d){this['_logService']['debug'](_0x31702e(0x125),_0x31702e(0x183));return;}const _0x5fa902=await this[_0x31702e(0x1e1)][_0x31702e(0x32c)](_0x5d39d4,Number(_0x48690d),_0x22292a);_0x5fa902&&_0x5fa902 instanceof a[_0x31702e(0x19f)]&&this[_0x31702e(0x371)](_0x5fa902);}async['_setupSubUnitSync'](_0x404cc0){const _0x264050=_0x42bdd7;await this[_0x264050(0x36b)](_0x404cc0),_0x404cc0[_0x264050(0x379)][_0x264050(0x393)](d[_0x264050(0x165)](this['dispose$']))[_0x264050(0x2a8)](_0x3fddab=>{const _0x4b9bbf=_0x264050;_0x3fddab&&this[_0x4b9bbf(0x26d)](_0x3fddab);}),this['_urlService']['urlChange$'][_0x264050(0x393)](d[_0x264050(0x165)](this[_0x264050(0x2e9)]))[_0x264050(0x2a8)](()=>this[_0x264050(0x36b)](_0x404cc0));}[_0x42bdd7(0x26d)](_0xd0c106,_0x5e1ac0=!0x1){const _0x178e18=_0x42bdd7,_0x1a4fb2=this[_0x178e18(0x28b)][_0x178e18(0x207)]('subunit');_0xd0c106[_0x178e18(0x34d)]()!==_0x1a4fb2&&this[_0x178e18(0x28b)]['setParam'](_0x178e18(0x2e6),_0xd0c106[_0x178e18(0x34d)](),_0x5e1ac0);}async[_0x42bdd7(0x36b)](_0x13b7b5){const _0x106c6e=_0x42bdd7;var _0xe37f83;const _0x1e8408=this[_0x106c6e(0x28b)]['getParam'](_0x106c6e(0x2e6));if(!_0x1e8408||!_0x13b7b5['getSheetBySheetId'](_0x1e8408)){const _0x2545d2=_0x13b7b5[_0x106c6e(0x352)]()[0x0],_0x54818e=_0x13b7b5[_0x106c6e(0x38b)](_0x2545d2);if(!_0x54818e)return;this[_0x106c6e(0x26d)](_0x54818e,!0x0),await this[_0x106c6e(0x346)][_0x106c6e(0x333)](g[_0x106c6e(0x384)]['id'],{'unitId':_0x13b7b5['getUnitId'](),'subUnitId':_0x2545d2});return;}((_0xe37f83=_0x13b7b5[_0x106c6e(0x1ad)]())==null?void 0x0:_0xe37f83[_0x106c6e(0x34d)]())!==_0x1e8408&&await this[_0x106c6e(0x346)]['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x13b7b5[_0x106c6e(0x37f)](),'subUnitId':_0x1e8408});}},exports[_0x42bdd7(0x1f7)]=Yt([F(0x0,Ee),F(0x1,a[_0x42bdd7(0x37d)]),F(0x2,a[_0x42bdd7(0x1fd)]),F(0x3,a['Inject'](u[_0x42bdd7(0x330)])),F(0x4,a[_0x42bdd7(0x251)](Ke[_0x42bdd7(0x34a)]))],exports['CollaborationDataLoaderController']);var Vt=Object[_0x42bdd7(0x2cf)],Xt=(_0x1da601,_0x3d2450,_0x5a7556,_0x4bcf6c)=>{for(var _0x4183f7=_0x4bcf6c>0x1?void 0x0:_0x4bcf6c?Vt(_0x3d2450,_0x5a7556):_0x3d2450,_0x3bce7a=_0x1da601['length']-0x1,_0x34903f;_0x3bce7a>=0x0;_0x3bce7a--)(_0x34903f=_0x1da601[_0x3bce7a])&&(_0x4183f7=_0x34903f(_0x4183f7)||_0x4183f7);return _0x4183f7;},le=(_0x338fd1,_0x5ade57)=>(_0x4c4249,_0x24765e)=>_0x5ade57(_0x4c4249,_0x24765e,_0x338fd1);let J=class{constructor(_0x554500,_0x32514e,_0x2e5bb7){const _0x188d09=_0x42bdd7;this['_injector']=_0x554500,this[_0x188d09(0x233)]=_0x32514e,this['_renderManagerService']=_0x2e5bb7;}[_0x42bdd7(0x396)](_0x1b7dcb){const _0x424584=_0x42bdd7;this[_0x424584(0x375)](_0x1b7dcb),this[_0x424584(0x306)](_0x1b7dcb);}[_0x42bdd7(0x197)](_0x5962c8){const _0x289e8e=_0x42bdd7,{unitID:_0x208d2f}=_0x5962c8,_0x1f5137=this[_0x289e8e(0x17d)][_0x289e8e(0x2a3)](_0x208d2f)[_0x289e8e(0x37e)](b[_0x289e8e(0x189)]),{redoCache:_0x5a6a92}=_0x1f5137[_0x289e8e(0x203)]();if(_0x5a6a92['length']===0x0)return _0x5962c8;let _0x2f4afc=a['Tools'][_0x289e8e(0x34e)](_0x5962c8[_0x289e8e(0x1e8)][0x0]);for(let _0x155c45=0x0;_0x155c45<_0x5a6a92[_0x289e8e(0x246)];_0x155c45++){const _0x46b0e1={'id':_0x289e8e(0x2b4),'params':{..._0x5a6a92[_0x155c45]}},_0x43316a=this[_0x289e8e(0x233)][_0x289e8e(0x17f)](_0x2f4afc,_0x46b0e1,!0x1);if(m[_0x289e8e(0x37b)](_0x43316a))throw _0x43316a['error'];_0x2f4afc=_0x43316a['m1Prime'];}return{...a['Tools'][_0x289e8e(0x34e)](_0x5962c8),'mutations':[_0x2f4afc]};}[_0x42bdd7(0x375)](_0x34792a){const _0x2fa9bb=_0x42bdd7,{unitID:_0x5d6d74}=_0x34792a,_0x53e7fe=this[_0x2fa9bb(0x17d)]['getRenderById'](_0x5d6d74)[_0x2fa9bb(0x37e)](b[_0x2fa9bb(0x189)]),{undoCache:_0x4f6b7b,redoCache:_0x128c12}=_0x53e7fe[_0x2fa9bb(0x203)]();if(_0x4f6b7b[_0x2fa9bb(0x246)]===0x0||_0x128c12[_0x2fa9bb(0x246)]===0x0)return;const _0x1e7114=[],_0x4157a6=[];let _0x983ce=a['Tools'][_0x2fa9bb(0x34e)](_0x34792a[_0x2fa9bb(0x1e8)][0x0]),_0x526a9a=a[_0x2fa9bb(0x368)]['deepClone'](_0x34792a['mutations'][0x0]);for(let _0x29474b=_0x4f6b7b[_0x2fa9bb(0x246)]-0x1;_0x29474b>=0x0;_0x29474b--){const _0x5f2d5a={'id':_0x2fa9bb(0x2b4),'params':{..._0x4f6b7b[_0x29474b]}},_0x1203d4={'id':_0x2fa9bb(0x2b4),'params':{..._0x128c12[_0x29474b]}},_0x1b6420=this[_0x2fa9bb(0x233)]['transformMutation'](_0x983ce,_0x5f2d5a,!0x1),_0x3edb30=this[_0x2fa9bb(0x233)][_0x2fa9bb(0x17f)](_0x526a9a,_0x1203d4,!0x1);if(m[_0x2fa9bb(0x37b)](_0x1b6420))throw _0x1b6420[_0x2fa9bb(0x1a8)];if(m['isTransformMutationFailure'](_0x3edb30))throw _0x3edb30[_0x2fa9bb(0x1a8)];_0x1e7114['unshift'](_0x1b6420[_0x2fa9bb(0x201)][_0x2fa9bb(0x316)]),_0x4157a6[_0x2fa9bb(0x2c6)](_0x3edb30['m2Prime'][_0x2fa9bb(0x316)]),_0x983ce=_0x1b6420[_0x2fa9bb(0x2fd)],_0x526a9a=_0x3edb30[_0x2fa9bb(0x2fd)];}_0x53e7fe[_0x2fa9bb(0x1f0)]({'undoCache':_0x1e7114,'redoCache':_0x4157a6});}['_transformPreviousActiveRange'](_0xa25925){const _0x534aa8=_0x42bdd7,{unitID:_0x5a14ae}=_0xa25925,_0x30e143=this[_0x534aa8(0x17d)][_0x534aa8(0x2a3)](_0x5a14ae)[_0x534aa8(0x37e)](b[_0x534aa8(0x189)]),_0x5bc4e6=_0x30e143[_0x534aa8(0x257)]();if(_0x5bc4e6==null)return;const _0x93f640=[{'id':_0x534aa8(0x2b4),'params':{'unitId':_0xa25925[_0x534aa8(0x2f3)],'actions':null,'textRanges':[_0x5bc4e6]}}],_0x22d6c0=this[_0x534aa8(0x233)][_0x534aa8(0x2a5)](_0xa25925,_0x93f640);if(!m[_0x534aa8(0x13b)](_0x22d6c0))throw _0x22d6c0[_0x534aa8(0x1a8)];const _0xf303c=_0x22d6c0[_0x534aa8(0x201)][0x0][_0x534aa8(0x316)][_0x534aa8(0x2c8)];Array[_0x534aa8(0x380)](_0xf303c)&&_0xf303c['length']&&_0x30e143[_0x534aa8(0x2ff)](_0xf303c[0x0]);}};J=Xt([le(0x0,a[_0x42bdd7(0x374)](a[_0x42bdd7(0x353)])),le(0x1,m[_0x42bdd7(0x158)]),le(0x2,p[_0x42bdd7(0x2c7)])],J);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x2a1a02,_0x375ab5,_0x33b0b5,_0x20dfd6)=>{const _0x2da266=_0x42bdd7;for(var _0x49e2da=_0x20dfd6>0x1?void 0x0:_0x20dfd6?Gt(_0x375ab5,_0x33b0b5):_0x375ab5,_0xa3063e=_0x2a1a02[_0x2da266(0x246)]-0x1,_0x273012;_0xa3063e>=0x0;_0xa3063e--)(_0x273012=_0x2a1a02[_0xa3063e])&&(_0x49e2da=_0x273012(_0x49e2da)||_0x49e2da);return _0x49e2da;},_e=(_0x3dc8b2,_0x5069f9)=>(_0x509de3,_0x2aa5b0)=>_0x5069f9(_0x509de3,_0x2aa5b0,_0x3dc8b2);let Z=class{constructor(_0x3197fe,_0x49cf60,_0x1a83a5){const _0x217857=_0x42bdd7;this[_0x217857(0x237)]=_0x3197fe,this['_transformService']=_0x49cf60,this[_0x217857(0x324)]=_0x1a83a5;}[_0x42bdd7(0x162)](_0x8ea36a){const _0x38abdc=_0x42bdd7;this[_0x38abdc(0x338)](_0x8ea36a);}['transformRemoteChangeset'](_0x49981e){const _0x55c0d9=_0x42bdd7,{unitID:_0x489d1b}=_0x49981e,{collaboration:_0x2b9f89}=this[_0x55c0d9(0x324)][_0x55c0d9(0x11f)](_0x489d1b);if(_0x2b9f89[_0x55c0d9(0x246)]===0x0)return _0x49981e;let _0x4f2e77=a[_0x55c0d9(0x368)][_0x55c0d9(0x34e)](_0x49981e[_0x55c0d9(0x1e8)][0x0]);for(let _0x473dff=0x0;_0x473dff<_0x2b9f89[_0x55c0d9(0x246)];_0x473dff++){const _0x23f27a={'id':_0x55c0d9(0x2b4),'params':{'unitId':_0x2b9f89[_0x473dff][_0x55c0d9(0x30b)],..._0x2b9f89[_0x473dff]['redoState']}},_0x419b12=this[_0x55c0d9(0x233)][_0x55c0d9(0x17f)](_0x4f2e77,_0x23f27a,!0x1);if(m['isTransformMutationFailure'](_0x419b12))throw _0x419b12[_0x55c0d9(0x1a8)];_0x4f2e77=_0x419b12[_0x55c0d9(0x2fd)];}return{...a[_0x55c0d9(0x368)][_0x55c0d9(0x34e)](_0x49981e),'mutations':[_0x4f2e77]};}['_transformHistoryAndStateStack'](_0x32a139){const _0x174489=_0x42bdd7,{unitID:_0xc06281}=_0x32a139,{history:_0x351a81,collaboration:_0x156390}=this[_0x174489(0x324)][_0x174489(0x11f)](_0xc06281);if(_0x351a81[_0x174489(0x246)]===0x0&&_0x156390[_0x174489(0x246)]===0x0)return;const _0x320f97=[],_0x186121=[];let _0x2b59d2=a['Tools'][_0x174489(0x34e)](_0x32a139['mutations'][0x0]),_0x3e941f=a[_0x174489(0x368)][_0x174489(0x34e)](_0x32a139['mutations'][0x0]);for(let _0x2026c2=_0x351a81[_0x174489(0x246)]-0x1;_0x2026c2>=0x0;_0x2026c2--){const _0x16bed0={'id':_0x174489(0x2b4),'params':{'unitId':_0x351a81[_0x2026c2][_0x174489(0x30b)],..._0x351a81[_0x2026c2][_0x174489(0x2d4)]}},_0x372a9={'id':_0x174489(0x2b4),'params':{'unitId':_0x351a81[_0x2026c2][_0x174489(0x30b)],..._0x351a81[_0x2026c2][_0x174489(0x29e)]}},_0x44d404=this[_0x174489(0x233)][_0x174489(0x17f)](_0x2b59d2,_0x16bed0,!0x1),_0xec7274=this[_0x174489(0x233)]['transformMutation'](_0x3e941f,_0x372a9,!0x1);if(m['isTransformMutationFailure'](_0x44d404))throw _0x44d404[_0x174489(0x1a8)];if(m[_0x174489(0x37b)](_0xec7274))throw _0xec7274[_0x174489(0x1a8)];_0x320f97[_0x174489(0x2c6)]({..._0x351a81[_0x2026c2],'undoState':_0x44d404[_0x174489(0x201)]['params'],'redoState':_0xec7274[_0x174489(0x201)][_0x174489(0x316)]}),_0x2b59d2=_0x44d404[_0x174489(0x2fd)],_0x3e941f=_0xec7274[_0x174489(0x2fd)];}_0x2b59d2=a[_0x174489(0x368)][_0x174489(0x34e)](_0x32a139[_0x174489(0x1e8)][0x0]),_0x3e941f=a['Tools'][_0x174489(0x34e)](_0x32a139['mutations'][0x0]);for(let _0x28ac5e=_0x156390[_0x174489(0x246)]-0x1;_0x28ac5e>=0x0;_0x28ac5e--){const _0x1d71ad={'id':_0x174489(0x2b4),'params':{'unitId':_0x156390[_0x28ac5e][_0x174489(0x30b)],..._0x156390[_0x28ac5e][_0x174489(0x2d4)]}},_0x48fd9d={'id':_0x174489(0x2b4),'params':{'unitId':_0x156390[_0x28ac5e][_0x174489(0x30b)],..._0x156390[_0x28ac5e][_0x174489(0x29e)]}},_0xcda69d=this['_transformService'][_0x174489(0x17f)](_0x2b59d2,_0x1d71ad,!0x1),_0x449fc9=this[_0x174489(0x233)]['transformMutation'](_0x3e941f,_0x48fd9d,!0x1);if(m[_0x174489(0x37b)](_0xcda69d))throw _0xcda69d[_0x174489(0x1a8)];if(m['isTransformMutationFailure'](_0x449fc9))throw _0x449fc9[_0x174489(0x1a8)];_0x186121[_0x174489(0x2c6)]({..._0x156390[_0x28ac5e],'undoState':_0xcda69d[_0x174489(0x201)]['params'],'redoState':_0x449fc9[_0x174489(0x201)]['params']}),_0x2b59d2=_0xcda69d['m1Prime'],_0x3e941f=_0x449fc9[_0x174489(0x2fd)];}this[_0x174489(0x324)]['setStateCache'](_0xc06281,{'history':_0x320f97,'collaboration':_0x186121});}};Z=qt([_e(0x0,a[_0x42bdd7(0x374)](a['Injector'])),_e(0x1,m[_0x42bdd7(0x158)]),_e(0x2,a[_0x42bdd7(0x374)](b[_0x42bdd7(0x16a)]))],Z);var Kt=Object[_0x42bdd7(0x2cf)],zt=(_0x2cb002,_0x451f19,_0x4a535c,_0x9a395a)=>{const _0x3ab9c9=_0x42bdd7;for(var _0x6749e=_0x9a395a>0x1?void 0x0:_0x9a395a?Kt(_0x451f19,_0x4a535c):_0x451f19,_0x50b854=_0x2cb002[_0x3ab9c9(0x246)]-0x1,_0x34ccd8;_0x50b854>=0x0;_0x50b854--)(_0x34ccd8=_0x2cb002[_0x50b854])&&(_0x6749e=_0x34ccd8(_0x6749e)||_0x6749e);return _0x6749e;},Me=(_0x71f45,_0x29a958)=>(_0x3bb64e,_0xa4c489)=>_0x29a958(_0x3bb64e,_0xa4c489,_0x71f45);let Q=class{constructor(_0xb4d36c,_0xb3dc0c){const _0x3718d2=_0x42bdd7;this['_injector']=_0xb4d36c,this[_0x3718d2(0x233)]=_0xb3dc0c;}[_0x42bdd7(0x298)](_0x1271bd){const _0x1d4196=_0x42bdd7;var _0x469f2d;const _0x2bc460=this[_0x1d4196(0x237)][_0x1d4196(0x1d3)](Y['DocSelectionManagerService']),_0x276a79=(_0x469f2d=_0x2bc460[_0x1d4196(0x34f)]())!=null?_0x469f2d:[];if(_0x276a79['length']===0x0)return;const _0x5dd0d3=_0x1271bd[_0x1d4196(0x2f3)],_0x41f580=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5dd0d3,'actions':null,'textRanges':_0x276a79}}],_0x29cff3=this['_transformService'][_0x1d4196(0x2a5)](_0x1271bd,_0x41f580);if(!m['isTransformMutationsWithChangesetSuccess'](_0x29cff3))throw _0x29cff3[_0x1d4196(0x1a8)];const _0x161787=_0x29cff3['m2Prime'][0x0][_0x1d4196(0x316)][_0x1d4196(0x2c8)];Array[_0x1d4196(0x380)](_0x161787)&&_0x161787[_0x1d4196(0x246)]&&_0x2bc460[_0x1d4196(0x2b1)](_0x161787,{'unitId':_0x5dd0d3,'subUnitId':_0x5dd0d3},!0x1);}};Q=zt([Me(0x0,a['Inject'](a['Injector'])),Me(0x1,m[_0x42bdd7(0x158)])],Q);var Jt=Object[_0x42bdd7(0x2cf)],Zt=(_0x36d98d,_0x2e5e5d,_0x1c137d,_0x1fc2f5)=>{for(var _0x4c8199=_0x1fc2f5>0x1?void 0x0:_0x1fc2f5?Jt(_0x2e5e5d,_0x1c137d):_0x2e5e5d,_0x3b69bf=_0x36d98d['length']-0x1,_0x57bd85;_0x3b69bf>=0x0;_0x3b69bf--)(_0x57bd85=_0x36d98d[_0x3b69bf])&&(_0x4c8199=_0x57bd85(_0x4c8199)||_0x4c8199);return _0x4c8199;},N=(_0x182027,_0x2eb18e)=>(_0x4d2c0f,_0x32d5da)=>_0x2eb18e(_0x4d2c0f,_0x32d5da,_0x182027);let ee=class extends a[_0x42bdd7(0x1d4)]{constructor(_0x9b6723,_0xf11c03,_0xd3218a,_0x1f72c1,_0x1c67ce,_0x30a25d,_0xe03a35,_0x5586ed){const _0x15283a=_0x42bdd7;super(),_(this,'_status$',new d[(_0x15283a(0x32a))](u['CollaborationStatus'][_0x15283a(0x2bf)])),(this['_docStateChangeManagerService']=_0x9b6723,this[_0x15283a(0x119)]=_0xf11c03,this[_0x15283a(0x14a)]=_0xd3218a,this[_0x15283a(0x256)]=_0x1f72c1,this[_0x15283a(0x2c4)]=_0x1c67ce,this[_0x15283a(0x25d)]=_0x30a25d,this[_0x15283a(0x1e6)]=_0xe03a35,this[_0x15283a(0x373)]=_0x5586ed,this[_0x15283a(0x24a)]());}[_0x42bdd7(0x24a)](){const _0x5088b7=_0x42bdd7;this['disposeWithMe'](this['_collaborationController']['entityInit$'][_0x5088b7(0x2a8)](_0x464412=>{const _0x42b44b=_0x5088b7,_0x4f4c23=this['_docStateChangeManagerService'][_0x42b44b(0x127)][_0x42b44b(0x2a8)](_0x160c57=>{const _0x142865=_0x42b44b;if(_0x160c57==null)return;const {unitId:_0x16baa7,redoState:_0x4d710a,commandId:_0x1fd761}=_0x160c57;if(_0x16baa7!==_0x464412['unitID'])return;const _0x4491bc={'id':_0x1fd761,'type':a['CommandType'][_0x142865(0x2ea)],'params':{'unitId':_0x16baa7,'actions':_0x4d710a['actions'],'textRanges':null}};_0x464412[_0x142865(0x287)](_0x4491bc);});if(_0x464412[_0x42b44b(0x317)](_0x4f4c23),_0x464412 instanceof u[_0x42b44b(0x358)]){const _0x166e45={'onTransformIME':_0x240a7f=>this['_docTransformIMECacheService'][_0x42b44b(0x396)](_0x240a7f),'onTransformState':_0x1cc2d4=>this[_0x42b44b(0x256)][_0x42b44b(0x162)](_0x1cc2d4),'onTransformSelections':_0x3a19d2=>this[_0x42b44b(0x2c4)][_0x42b44b(0x298)](_0x3a19d2),'onSyncEditingCollabCursor':_0x5aeb63=>this['_docSyncEditingCollabCursorService'][_0x42b44b(0x21b)](_0x5aeb63),'onTransformRemoteChangesetByIMECache':_0x3084bb=>this[_0x42b44b(0x14a)][_0x42b44b(0x197)](_0x3084bb),'onTransformRemoteChangesetByStateCache':_0x177631=>this[_0x42b44b(0x256)][_0x42b44b(0x197)](_0x177631)};_0x464412[_0x42b44b(0x1cc)](_0x166e45);}}));}};ee=Zt([N(0x0,a[_0x42bdd7(0x374)](b['DocStateChangeManagerService'])),N(0x1,a['Inject'](u[_0x42bdd7(0x147)])),N(0x2,a['Inject'](J)),N(0x3,a['Inject'](Z)),N(0x4,a['Inject'](Q)),N(0x5,a[_0x42bdd7(0x374)](pe)),N(0x6,O[_0x42bdd7(0x31b)]),N(0x7,a[_0x42bdd7(0x374)](a['LocaleService']))],ee);var Qt=Object[_0x42bdd7(0x2cf)],es=(_0x4b2e74,_0x50a1e6,_0x44d8ca,_0x325b36)=>{const _0x1bc741=_0x42bdd7;for(var _0x8256c4=_0x325b36>0x1?void 0x0:_0x325b36?Qt(_0x50a1e6,_0x44d8ca):_0x50a1e6,_0xd9483b=_0x4b2e74[_0x1bc741(0x246)]-0x1,_0x14f5c3;_0xd9483b>=0x0;_0xd9483b--)(_0x14f5c3=_0x4b2e74[_0xd9483b])&&(_0x8256c4=_0x14f5c3(_0x8256c4)||_0x8256c4);return _0x8256c4;},he=(_0x462e9b,_0x232acf)=>(_0x1537a7,_0x315a4a)=>_0x232acf(_0x1537a7,_0x315a4a,_0x462e9b);let me=class extends a['Disposable']{constructor(_0x1f9e14,_0x3ddcf8,_0x163e8a){const _0x473569=_0x42bdd7;super(),_(this,_0x473569(0x381),new Map()),_(this,_0x473569(0x25b),new Map()),_(this,_0x473569(0x11a),!0x1),(this[_0x473569(0x1b0)]=_0x1f9e14,this['_localStorageService']=_0x3ddcf8,this[_0x473569(0x280)]=_0x163e8a);}[_0x42bdd7(0x12f)](){const _0x4909f2=_0x42bdd7;this[_0x4909f2(0x11a)]=!0x0;}[_0x42bdd7(0x16b)](){const _0xb4480a=_0x42bdd7;this[_0xb4480a(0x11a)]=!0x1;}get['saveTaskMap'](){const _0x2bf6d9=_0x42bdd7;return this[_0x2bf6d9(0x25b)];}['dispose'](){const _0x254858=_0x42bdd7;this['exhaustSavingTask']()[_0x254858(0x19b)](()=>super[_0x254858(0x1f1)]());}async[_0x42bdd7(0x2b0)](_0x478925){const _0x1ea27=_0x42bdd7;return this[_0x1ea27(0x11a)]?null:this['_localStorageService']['getItem'](u[_0x1ea27(0x284)](_0x478925));}async[_0x42bdd7(0x31e)](_0x49e00a,_0x21438c){const _0xbec0d9=_0x42bdd7;return!!this[_0xbec0d9(0x23d)][_0xbec0d9(0x245)](_0x49e00a,_0x21438c);}[_0x42bdd7(0x1d7)](_0x2eb75e,_0x2729fa,_0x2fb840,_0x3311b6){const _0x3defa6=_0x42bdd7,_0x50da05=this[_0x3defa6(0x280)]['getCurrentRevOfUnit'](_0x2eb75e);this[_0x3defa6(0x381)][_0x3defa6(0x114)](_0x2eb75e,{'unitID':_0x2eb75e,'type':_0x2729fa,'awaitingChangeset':_0x2fb840,'mutations':_0x3311b6,'rev':_0x50da05}),this[_0x3defa6(0x25b)][_0x3defa6(0x2a4)](_0x2eb75e)||this[_0x3defa6(0x326)](_0x2eb75e);}[_0x42bdd7(0x326)](_0x36e935){const _0x2328c9=_0x42bdd7,_0xceb83=this['_getSaveTimeout']();_0xceb83===0x0?this[_0x2328c9(0x2b6)](_0x36e935):this[_0x2328c9(0x25b)][_0x2328c9(0x114)](_0x36e935,setTimeout(()=>this[_0x2328c9(0x2b6)](_0x36e935),_0xceb83));}[_0x42bdd7(0x118)](){const _0x36833a=_0x42bdd7;var _0x3081ca;return(_0x3081ca=this[_0x36833a(0x1b0)][_0x36833a(0x2aa)](u[_0x36833a(0x385)]))!=null?_0x3081ca:u[_0x36833a(0x210)];}[_0x42bdd7(0x2b6)](_0x5d3877){const _0x544f21=_0x42bdd7,_0xf44876=this[_0x544f21(0x25b)][_0x544f21(0x1d3)](_0x5d3877);return _0xf44876!==void 0x0&&window[_0x544f21(0x261)](_0xf44876),this[_0x544f21(0x23d)]['setItem'](u[_0x544f21(0x284)](_0x5d3877),this[_0x544f21(0x381)][_0x544f21(0x1d3)](_0x5d3877))['then'](()=>this[_0x544f21(0x25b)]['delete'](_0x5d3877));}async[_0x42bdd7(0x1ea)](){const _0x4a8e38=_0x42bdd7,_0x19fea4=[];this[_0x4a8e38(0x25b)][_0x4a8e38(0x376)]((_0x13263e,_0x5c744d)=>{const _0x2e9679=_0x4a8e38;window[_0x2e9679(0x261)](_0x13263e),_0x19fea4[_0x2e9679(0x234)](this[_0x2e9679(0x2b6)](_0x5c744d)[_0x2e9679(0x19b)](()=>{const _0x8ff95=_0x2e9679;this[_0x8ff95(0x25b)][_0x8ff95(0x38e)](_0x5c744d);}));}),await Promise[_0x4a8e38(0x172)](_0x19fea4);}};me=es([he(0x0,a[_0x42bdd7(0x33b)]),he(0x1,a['ILocalStorageService']),he(0x2,a['Inject'](m[_0x42bdd7(0x1d2)]))],me);class Be extends a[_0x42bdd7(0x289)]{constructor(){const _0x381bbe=_0x42bdd7;super(),_(this,_0x381bbe(0x32d)),this[_0x381bbe(0x32d)]=d['fromEvent'](window,_0x381bbe(0x360))[_0x381bbe(0x393)](d['takeUntil'](this[_0x381bbe(0x2e9)]),d[_0x381bbe(0x117)](0x1),d['mapTo'](void 0x0));}['setParam'](_0x997f2f,_0x3bc22e,_0x1e10be=!0x1){const _0x2ff5cf=_0x42bdd7,_0x51310a=new URL(window['location'][_0x2ff5cf(0x173)]);_0x51310a[_0x2ff5cf(0x1c1)][_0x2ff5cf(0x114)](_0x997f2f,_0x3bc22e),_0x1e10be?window[_0x2ff5cf(0x219)][_0x2ff5cf(0x1a7)]('','',_0x51310a[_0x2ff5cf(0x2dc)]()):window['history'][_0x2ff5cf(0x314)]('','',_0x51310a[_0x2ff5cf(0x2dc)]());}[_0x42bdd7(0x2cd)](_0x4cdf6e,_0x2857c8=!0x1){const _0x317927=_0x42bdd7,_0x378f01=new URL(window[_0x317927(0x294)][_0x317927(0x173)]);_0x378f01['searchParams'][_0x317927(0x38e)](_0x4cdf6e),_0x2857c8?window[_0x317927(0x219)][_0x317927(0x1a7)]('','',_0x378f01[_0x317927(0x2dc)]()):window['history'][_0x317927(0x314)]('','',_0x378f01[_0x317927(0x2dc)]());}[_0x42bdd7(0x207)](_0x144179){const _0x52196b=_0x42bdd7;var _0x25538b;return(_0x25538b=new URL(window[_0x52196b(0x294)][_0x52196b(0x173)])[_0x52196b(0x1c1)]['get'](_0x144179))!=null?_0x25538b:void 0x0;}}var ts=Object[_0x42bdd7(0x1f3)],ss=Object[_0x42bdd7(0x2cf)],ns=(_0x48f005,_0x46db2f,_0x530e8f)=>_0x46db2f in _0x48f005?ts(_0x48f005,_0x46db2f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x530e8f}):_0x48f005[_0x46db2f]=_0x530e8f,is=(_0x2d1948,_0x1c2461,_0xb2af69,_0x1e5c18)=>{const _0x28d776=_0x42bdd7;for(var _0x504ed8=_0x1e5c18>0x1?void 0x0:_0x1e5c18?ss(_0x1c2461,_0xb2af69):_0x1c2461,_0x5baa1d=_0x2d1948[_0x28d776(0x246)]-0x1,_0x50b18d;_0x5baa1d>=0x0;_0x5baa1d--)(_0x50b18d=_0x2d1948[_0x5baa1d])&&(_0x504ed8=_0x50b18d(_0x504ed8)||_0x504ed8);return _0x504ed8;},ue=(_0x4c1f2a,_0x3b2551)=>(_0x50530d,_0x4aebae)=>_0x3b2551(_0x50530d,_0x4aebae,_0x4c1f2a),rs=(_0x166925,_0x52b729,_0x52cb16)=>ns(_0x166925,_0x52b729+'',_0x52cb16);const os='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';function _0x473b(){const _0x554cd5=['_labelPosition','color','collabStatus.conflict','getCollabCursors$','@univerjs/engine-render','SheetCollabCursorShape','RefRangeService','OFFLINE','searchParams','_scheduleHeartbeat','UNIVER_DOC','_removeCollabCursors','SetSelectionsOperation','1em','red300','collabCursorState$','setConfig','_entityInit$','unsubscribe','addHandlerCallback','handleIRemoveRow','_initStatusComponent','_name','replace','name','RevisionService','get','Disposable','ColorKit','_toggleOffline','updateOfflineData','collaboration.closeRoom','split','univerjs-icon\x20univerjs-icon-','max','ISocketService','_startSheetCollabCursor','off-line-single_clip0_910_343','session.collaboration-timeout','clearInterval','_dataLoaderService','UnitStatus','PENDING','InsertColCommandId','beginPath','_messageService','@univerjs/sheets-ui','mutations','SUBMIT_CHANGESET_TIMEOUT','exhaustSavingTask','useCallback','_scheduleClearOtherTimer','NO_OTHER_CLIENTS_EDITING','_toggleOnline','ILocalCacheService','setUndoRedoMutationParamsCache','dispose','asObservable','defineProperty','_collabCursorState$','_registerDependencies','imageSourceType','CollaborationDataLoaderController','hovered','ticket','TRANSFORM_CHANGE_OBSERVABLE_TYPE','SetDocZoomRatioOperation','code','ICommandService','sessionTicket','LOGIN_FAILED','Shape','m2Prime','_document','getUndoRedoMutationParamsCache','handleInsertRow','Rectangle','_refreshCollabCursors','getParam','body','CollaborationUIEventId','CONNECTOR_DATA_TOO_LARGE','getCellPositionByOffset','univer-flex\x20univer-items-center','send','_hideTimer','_assignedColors','LOCAL_CACHE_INTERVAL','triggerDblclick','INVALID_ARGUMENT','text','size','column','cursorInfo','permission.content','path','history','roomMembers','syncEditingCollabCursor','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Failed','_initResize','univer-offline','ISnapshotServerService','startColumn','BuiltInUIPart','Unknown\x20user','useRef','_initStatusListener','clipPath','CollaborationStatus','hide','univer-online-status-title','_registerRenderDependencies','RichTextEditingMutation','LICENSE_IMPORT_SIZE_EXCEEDED','event$','300261OmdXIK','fillRule','getUniverSheetInstance','xlink:href','@univerjs/drawing','_transformService','push','createElement','_notificationService','_injector','CollaborationSessionService','getMember','collab-text-range-','roomMembers$','touchDependencies','_localStorageService','combineLatest','OTHER_CLIENTS_EDITING','off-line-single','_ensureSubject','closePath','_refRangeService','BrowserCollaborationSocketService','setItem','length','ranges','handleMoveRange','13982hJzHYV','_initEntityListener','DEFAULT_WS_SESSION_TICKET_URL','prototype','_unitOnClients','Plugin','_setupBeforeClosingHandler','evenodd','Optional','newValue','toRgbString','_uiPartsService','ALREADY_EXISTS','_docTransformStateCacheService','getActiveRange','_cursorInfo$','_initEvent','assign','_saveTaskMap','InsertRangeMoveDownCommandId','_docSyncEditingCollabCursorService','SessionStatus','data','merge','clearTimeout','_hovered','COLORS','DocSkeletonManagerService','Rect','onMouseMove','width','_initDependencies','flatMap','online','registerBeforeClose','getCurrentSelections','_updateURLWithCurrentState','USERS_LEAVE','_colorAssignService','TEXT_RANGE_LAYER_INDEX','tag','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','transformByState','@univerjs/sheets','wsSessionTicketUrl','mask','_logService','OffLineSingle','_status$','override','createSocket','getSkeleton','getRangePointData','_cursor','type','_revisionService','_cursors','createInstance','getColor','getLocalCacheKey','engine','status$','onLocalMutation','_init','RxDisposable','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_urlService','APPLY_PERMISSION_DENIED','_handleJoinEvent','WebURLService','selection','getFocusedUnit','APPLY_REVISION_CONFILICT','_handleLeaveEvent','save','location','on-line-single','@univerjs/ui','result','transformSelections','url(#on-line-single_clip0_910_349)','DisposableCollection','round','UniverInstanceType','fill','redoState','currentColor','generateRandomId','INotificationService','0\x200\x2017\x2016','getRenderById','has','transformMutationsWithChangeset','div','ENSURE_SNAPSHOT_EXECUTION','subscribe','_roomMembers$','getConfig','range','_getScale','init','_scene','INVALID_INVITE_CODE','loadOfflineData','replaceDocRanges','INVITE_CODE_ALREADY_BOUND','onlineStatusTitle','doc.mutation.rich-text-editing','extend','_saveCache','ThemeService','useDependency','APPLY_REJECT','VIEW_MAIN','_httpService','show','icon','apply','NOT_COLLAB','3350466NtMWoj','INTERNAL_ERROR','RECT','font','_docTransformSelectionsService','createIdentifier','unshift','IRenderManagerService','textRanges','subscribeEvent','UNRECOGNIZED','_updateLocalCursor','_colorIndex','removeParam','_collabCursorController','getOwnPropertyDescriptor','WECHAT_HAS_BEEN_BOUND','search','setShapeProps','getViewport','undoState','findNodePositionByCharIndex','PERMISSION_DENIED','handleIRemoveCol','LICENSE_DISTRO_REJECTED','measureText','includes','children','toString','_handleHover','post','debounce','_clearOtherTimers','forwardRef','currentSkeleton$','min','IUniverInstanceService','subUnitId','subunit','random','onlineStatus','dispose$','MUTATION','collab-client.tooltip.reconnect','_beforeCloseService','rxjs','restore','getOffsetConfig','permission.title','UNIVER_SHEET','rgba(255,\x20255,\x20255,\x200.01)','unitID','_unitStatus','_docClipboardService','_send','onTransformChange$','onPointerEnter$','_instanceService','SOCKET_FAILED','_handleHeartbeatEvent','univer-online','m1Prime','values','setActiveRange','backgroundColor','makeDirty','none','173132feSvsy','runRefRangeMutations','useObservable','_transformPreviousActiveRange','eventID','moveTo','@univerjs-pro/collaboration','debug','unitId','0\x200\x2016\x2016','AWAITING','propertyIsEnumerable','height','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','_collabSessionService','2170XPPmqF','@univerjs/network','pushState','memberID','params','disposeWithMe','add','INVITE_CODE_HAS_BEEN_UES','getMemberID','IMessageService','registerRefRange','_sheetSkeletonManagerService','saveOfflineData','string','_heartbeatTimer','requireSession','_shapes','throttleTime','_docStateChangeManagerService','SNAPSHOT_INVALID_SNAPSHOT','_scheduleSaving','onStarting','assignAColorForMemberID','_docSkeletonManagerService','BehaviorSubject','DependentOn','loadUnit','urlChange$','_color','RegularPolygon','DataLoaderService','registerComponent','getRelativeToViewportCoord','executeCommand','_hover','find','YUUMI_URL_COL_OUT_OF_RANGE','className','_transformHistoryAndStateStack','_context','addObject','IConfigService','from','collabStatus.offline','CONFLICT','_startDocCollabCursor','handleInsertRangeMoveRight','attrs','_onCursorDelete','next','univer-online-status-icon','cursorInfo$','_commandService','_memberService','DeleteRangeMoveLeftCommandId','UNAUTHENTICATED','IRemoteInstanceService','APPLY_DUPLICATED','_entities','getSheetId','deepClone','getDocRanges','528800WeAgKj','setAlpha','getUnhiddenWorksheets','Injector','origin','SYNCED','TOO_MANY_REQUESTS','getCurrentUnitForType','DocCollaborationEntity','HTTPService','_createSocketURL','IUIPartsService','map','_doCreateSocket','_id','_onRefRangeChange','popstate','_session','some','concat','invokeId','labelPosition','_imageIoService','editingUnit','Tools','_eventUnsubscribe','runOnServer','_updateSubUnitFromURLParams','setTimeout','SheetSkeletonManagerService','getValue','collabStatus.notCollab','_anchor','_setupSubUnitSync','addEventListener','_localeService','Inject','_transformUndoRedoStack','forEach','fillText','isActive','activeSheet$','startRow','isTransformMutationFailure','defIds','ILogService','with','getUnitId','isArray','_cachedData','onlineStatusIcon','_draw','SetWorksheetActivateCommand','LOCAL_CACHE_INTERVAL_KEY','pluginName','PY_RUNTIME_SCRIPT_ERROR','clsx','DocSelectionManagerService','WebBrowserSingleActiveUnitService','getSheetBySheetId','saveTaskMap','SheetsSelectionsService','delete','INVITE_CODE_REQUIRED','entries','SetTextSelectionsOperation','black','pipe','session.will-retry','parse','transformIMECache','RemoteUniscriptService','reconnect','UniverCollaborationClientUIPlugin','@univerjs/rpc','InsertRangeMoveRightCommandId','@univerjs/engine-formula','_cursorShapes','AWAITING_WITH_PENDING','M0\x200H16V16H0z','resize','25JcICAP','_handleEvent','@univerjs/docs','set','CHANGESET_REVISION_CONFILICT','handleInsertCol','shareReplay','_getSaveTimeout','_collaborationController','_disabled','fillStyle','translate(.97)','Vector2','getCoordByCell','getStateCache','[RemoteUniscriptService]:\x20no\x20focused\x20unit','MessageType','DeleteRangeMoveUpCommandId','arc','...','[CollaborationDataLoaderController]','NOT_FOUND','docStateChange$','switchMap','_drawRectRange','_localCacheService','getUnitStatus$','endRow','call','toDisposable','disableLocalCache','IBeforeCloseService','DOC_RANGE_TYPE','YUUMI_ASYNCIO_CANCELLED','react','fromEventSubject','idSuffix','storage','_syncEditingCollabCursorService','/run/','url(#$1','EffectRefRangId','isTransformMutationsWithChangesetSuccess','_getAnchorBounding','focused$','filter','endColumn','distinctUntilChanged','currentTheme$','UNDEFINED','162mNJxoS','startsWith','_drawTextRange','_online','CollaborationController','YUUMI_UNABLE_LOAD_URL','collaboration-client.offline-data-not-saved','_docTransformIMECacheService','HEADER_MENU','Tooltip','#fff','collabStatus.fetchMiss','stringify','function','getSheetObject','ONLINE','_collaborationUIEventService','mergeOverrideWithDependencies','RemoveColCommandId','_lastPointer','unit','ITransformService','_themeService','_backgroundColor','hasOwnProperty','_initCommandExecutedListener','onPointerMove$','_drawAnchor','_getSheetObject','TEXT','_config','transformStateCache','bottom','MoveRangeCommandId','takeUntil','sessionStatus$','complete','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SNAPSHOT_HAS_BEEN_REMOVED','DocStateChangeManagerService','enableLocalCache','row','_anchorDot','_onCursorUpdate','IURLService','LICENSE_EXPORT_SIZE_EXCEEDED','rxjs/operators','all','href','_updateCollabCursors','purple300','Warning','url(#off-line-single_clip0_910_343)','EMAIL_HAS_BEEN_BOUND','Error','YUUMI_RATE_OVER_LIMIT','_selfUnitIDs','executionId','_renderManagerService','FromArray','transformMutation','getCurrent','whenReady','APPLY_NON_SEQUENTIAL_REVISION','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','defs','@univerjs/core','MemberService','runId','trim','DocIMEInputManagerService','_range','source','YUUMI_NO_CUBOID_FOR_QUESTION','getTypeOfUnitDisposed$','_getMergeRange','MOBILE_HAS_BEEN_BOUND','_getSessionTicket','sheetID','_textBubble','_removeClearOtherTimer','disposeUnit','jsx','_univerInstanceService','transformRemoteChangeset','lineTo','sheetId','debounceTime','then','on-line-single_clip0_910_349','collaboration-client-ui.config','getMergeData','Workbook','LocaleService','@univerjs/docs-ui','CollaborationEvent','displayName','@univerjs-pro/collaboration-client','indexOf','collabStatus.synced','replaceState','error','1267500jRBJji','DesktopCollaborationStatusDisplayController','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','8613vPiCis','getActiveSheet','onCommandExecuted','UPDATE_CURSOR','_configService','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','NodePositionConvertToCursor','offline','svg','getVpScrollXYInfoByPosToVp','react/jsx-runtime','getTypeOfUnitAdded$','drawWith'];_0x473b=function(){return _0x554cd5;};return _0x473b();}exports[_0x42bdd7(0x399)]=class extends a[_0x42bdd7(0x24e)]{constructor(_0x159e0=Ne,_0x1816f8,_0x25f3d4,_0xbd829b){const _0x438342=_0x42bdd7;super(),this[_0x438342(0x161)]=_0x159e0,this[_0x438342(0x17d)]=_0x1816f8,this[_0x438342(0x237)]=_0x25f3d4,this[_0x438342(0x1b0)]=_0xbd829b;const {..._0x1d1315}=a[_0x438342(0x260)]({},Ne,this['_config']);this[_0x438342(0x1b0)][_0x438342(0x1c9)](Ft,_0x1d1315);}[_0x42bdd7(0x327)](){const _0x32bdaf=_0x42bdd7;this[_0x32bdaf(0x1f5)](),this['_initDependencies']();}['onRendered'](){const _0x580d05=_0x42bdd7;this[_0x580d05(0x22a)]();}[_0x42bdd7(0x1f5)](){const _0x55a35d=_0x42bdd7;var _0x1cafda;const _0x2d4ae9=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x55a35d(0x1dc)],{'useClass':q['WebSocketService']}],[u['ILocalCacheService'],{'useClass':me}],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[x],[fe],[exports[_0x55a35d(0x1f7)]]];a['registerDependencies'](this[_0x55a35d(0x237)],a[_0x55a35d(0x154)](_0x2d4ae9,(_0x1cafda=this[_0x55a35d(0x161)])==null?void 0x0:_0x1cafda[_0x55a35d(0x27a)]));}[_0x42bdd7(0x22a)](){const _0x2dc61c=_0x42bdd7;this['disposeWithMe'](this[_0x2dc61c(0x17d)]['registerRenderModule'](a[_0x2dc61c(0x29c)][_0x2dc61c(0x1c3)],[ve])),this[_0x2dc61c(0x317)](this['_renderManagerService']['registerRenderModule'](a[_0x2dc61c(0x29c)][_0x2dc61c(0x2f1)],[ge]));}[_0x42bdd7(0x268)](){const _0x553e43=_0x42bdd7;a[_0x553e43(0x23c)](this[_0x553e43(0x237)],[[x],[exports[_0x553e43(0x1aa)]],[ee],[z],[exports[_0x553e43(0x1f7)]]]);}},rs(exports[_0x42bdd7(0x399)],_0x42bdd7(0x386),os),exports['UniverCollaborationClientUIPlugin']=is([a[_0x42bdd7(0x32b)](u['UniverCollaborationClientPlugin']),ue(0x1,p[_0x42bdd7(0x2c7)]),ue(0x2,a[_0x42bdd7(0x374)](a['Injector'])),ue(0x3,a[_0x42bdd7(0x33b)])],exports[_0x42bdd7(0x399)]);var as=Object['getOwnPropertyDescriptor'],cs=(_0x51fc17,_0x5d5010,_0xb35c0a,_0x6cce97)=>{const _0x42de5e=_0x42bdd7;for(var _0x50ceb8=_0x6cce97>0x1?void 0x0:_0x6cce97?as(_0x5d5010,_0xb35c0a):_0x5d5010,_0x3eac4e=_0x51fc17[_0x42de5e(0x246)]-0x1,_0x1727c9;_0x3eac4e>=0x0;_0x3eac4e--)(_0x1727c9=_0x51fc17[_0x3eac4e])&&(_0x50ceb8=_0x1727c9(_0x50ceb8)||_0x50ceb8);return _0x50ceb8;},W=(_0x1b9e73,_0x56fa73)=>(_0x3a286d,_0x540d25)=>_0x56fa73(_0x3a286d,_0x540d25,_0x1b9e73);exports[_0x42bdd7(0x244)]=class extends u['CollaborationSocketService']{constructor(_0xb203f1,_0x7dca7f,_0x1d5ee6,_0x8d906c,_0x112357){super(_0xb203f1,_0x7dca7f,_0x1d5ee6,_0x8d906c,_0x112357);}async[_0x42bdd7(0x27b)](_0x2cfff7){const _0x34253f=_0x42bdd7,_0x330d05=await this[_0x34253f(0x190)](),_0x4e13ad=this['_createSocketURL'](_0x2cfff7,_0x330d05);return this[_0x34253f(0x35d)](_0x4e13ad);}[_0x42bdd7(0x35a)](_0x5c7f73,_0x36c727){const _0x32d340=_0x42bdd7,_0x18933e=typeof window>'u'?new URL(_0x5c7f73):new URL(_0x5c7f73,window[_0x32d340(0x294)][_0x32d340(0x354)]);_0x18933e[_0x32d340(0x1c1)][_0x32d340(0x114)](_0x32d340(0x1fe),_0x36c727);const _0xde02f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x32d340(0x294)][_0x32d340(0x2d1)]);return _0xde02f[_0x32d340(0x1d3)](_0x32d340(0x187))&&_0x18933e[_0x32d340(0x1c1)][_0x32d340(0x114)](_0x32d340(0x187),_0xde02f[_0x32d340(0x1d3)](_0x32d340(0x187))),_0x18933e[_0x32d340(0x2dc)]();}async[_0x42bdd7(0x190)](){const _0x533aa4=_0x42bdd7;var _0x483634,_0x2dbd36,_0x2c4591;const _0x4e0ece=this[_0x533aa4(0x1b0)][_0x533aa4(0x2aa)](u[_0x533aa4(0x21c)]),_0x5c4a5e=(_0x483634=_0x4e0ece==null?void 0x0:_0x4e0ece[_0x533aa4(0x275)])!=null?_0x483634:u[_0x533aa4(0x24b)];return(_0x2c4591=(_0x2dbd36=(await this[_0x533aa4(0x2bb)][_0x533aa4(0x1d3)](_0x5c4a5e,{'headers':{'Content-Type':'application/json'}}))[_0x533aa4(0x208)])==null?void 0x0:_0x2dbd36[_0x533aa4(0x1f9)])!=null?_0x2c4591:'';}},exports[_0x42bdd7(0x244)]=cs([W(0x0,a[_0x42bdd7(0x374)](a[_0x42bdd7(0x353)])),W(0x1,a['Inject'](q[_0x42bdd7(0x359)])),W(0x2,a[_0x42bdd7(0x33b)]),W(0x3,a['ILogService']),W(0x4,m[_0x42bdd7(0x220)])],exports[_0x42bdd7(0x244)]);const Le=0x7530,Pe='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends a[_0x42bdd7(0x1d4)]{constructor(){const _0xe73e1a=_0x42bdd7;super(),_(this,_0xe73e1a(0x35e),a[_0xe73e1a(0x2a0)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0xe73e1a(0x24d),new Map()),_(this,'_heartbeatTimer',null),_(this,'_clearOtherTimers',new Map()),_(this,_0xe73e1a(0x2f4),new Map()),this[_0xe73e1a(0x288)]();}[_0x42bdd7(0x1f1)](){const _0x2d4085=_0x42bdd7;super[_0x2d4085(0x1f1)](),this['_clearOtherTimers']['forEach']((_0x5a6918,_0x3c8e42)=>this['_removeClearOtherTimer'](_0x3c8e42)),this[_0x2d4085(0x320)]&&window[_0x2d4085(0x1e0)](this[_0x2d4085(0x320)]);}[_0x42bdd7(0x12b)](_0x18ea77){const _0x2cb158=_0x42bdd7;return this[_0x2cb158(0x241)](_0x18ea77)[_0x2cb158(0x393)](d[_0x2cb158(0x140)]());}[_0x42bdd7(0x367)](_0x29e757){const _0x3e696b=_0x42bdd7;this[_0x3e696b(0x17b)][_0x3e696b(0x214)]===0x0&&this[_0x3e696b(0x1c2)](),this[_0x3e696b(0x17b)]['add'](_0x29e757),this[_0x3e696b(0x2f6)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x29e757],'isForwarded':!0x1});}[_0x42bdd7(0x194)](_0x2fe4d3){const _0x4bdf9f=_0x42bdd7;this[_0x4bdf9f(0x17b)][_0x4bdf9f(0x38e)](_0x2fe4d3),this[_0x4bdf9f(0x17b)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x4bdf9f(0x1e0)](this[_0x4bdf9f(0x320)]);}['_init'](){const _0xdf1c31=_0x42bdd7;this[_0xdf1c31(0x317)](a['toDisposable'](d['fromEvent'](window,_0xdf1c31(0x136))[_0xdf1c31(0x2a8)](_0xedebc2=>{const _0x1e4adc=_0xdf1c31;if(_0xedebc2['key']!==Pe||!_0xedebc2[_0x1e4adc(0x252)])return;const _0x1f0022=JSON[_0x1e4adc(0x395)](_0xedebc2[_0x1e4adc(0x252)]);this[_0x1e4adc(0x112)](_0x1f0022);}))),window[_0xdf1c31(0x372)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0xdf1c31(0x35e)],'unitIDs':Array[_0xdf1c31(0x33c)](this['_selfUnitIDs'])}));}[_0x42bdd7(0x112)](_0x1947d3){const _0x147bd5=_0x42bdd7;switch(_0x1947d3['type']){case 0x0:this[_0x147bd5(0x28d)](_0x1947d3);break;case 0x1:this[_0x147bd5(0x292)](_0x1947d3);break;case 0x2:this['_handleHeartbeatEvent'](_0x1947d3);break;}}[_0x42bdd7(0x28d)](_0x1d63bf){const _0x1de398=_0x42bdd7,{unitIDs:_0x4fd23b,memberID:_0x3262d0,isForwarded:_0xbc25a5}=_0x1d63bf;_0x4fd23b[_0x1de398(0x376)](_0x592e81=>{const _0x523112=_0x1de398;if(!_0xbc25a5&&this[_0x523112(0x24d)][_0x523112(0x2a4)](_0x592e81)&&this['_ensureSubject'](_0x592e81)[_0x523112(0x343)](u[_0x523112(0x1e2)][_0x523112(0x23f)]),!this[_0x523112(0x24d)]['has'](_0x592e81)||!this['_unitOnClients']['get'](_0x592e81)[_0x523112(0x2a4)](_0x3262d0)){const _0x4f5bda=this['_unitOnClients']['get'](_0x592e81)||new Set();_0x4f5bda['add'](_0x3262d0),this[_0x523112(0x24d)][_0x523112(0x114)](_0x592e81,_0x4f5bda),this[_0x523112(0x1ec)](_0x3262d0);}}),_0xbc25a5||this[_0x1de398(0x2f6)]({'type':0x0,'memberID':this[_0x1de398(0x35e)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x42bdd7(0x1ec)](_0x422d01){const _0x5b8854=_0x42bdd7;this[_0x5b8854(0x193)](_0x422d01);const _0x571f43=window[_0x5b8854(0x36c)](()=>{const _0x337718=_0x5b8854;this[_0x337718(0x24d)][_0x337718(0x376)](_0x20f444=>{const _0x5e7f01=_0x337718;_0x20f444[_0x5e7f01(0x38e)](_0x422d01);});},Le*0x2);this[_0x5b8854(0x2e0)][_0x5b8854(0x114)](_0x422d01,_0x571f43);}[_0x42bdd7(0x193)](_0x497728){const _0xdcb757=_0x42bdd7;if(this[_0xdcb757(0x2e0)]['has'](_0x497728)){const _0x4064ba=this['_clearOtherTimers']['get'](_0x497728);_0x4064ba&&window['clearTimeout'](_0x4064ba),this[_0xdcb757(0x2e0)]['set'](_0x497728,null);}}[_0x42bdd7(0x292)](_0x41c508){const _0x4f2838=_0x42bdd7,{memberID:_0x3276c6,unitIDs:_0xd32dfc}=_0x41c508;_0xd32dfc['forEach'](_0x14aa87=>{const _0x43f257=_0x254b;var _0x4aa4e7;const _0x56ad0b=this['_unitOnClients']['get'](_0x14aa87);_0x56ad0b&&(_0x56ad0b['delete'](_0x3276c6),(_0x4aa4e7=this[_0x43f257(0x241)](_0x14aa87))==null||_0x4aa4e7[_0x43f257(0x343)](_0x56ad0b['size']===0x0?u[_0x43f257(0x1e2)][_0x43f257(0x1ed)]:u[_0x43f257(0x1e2)]['OTHER_CLIENTS_EDITING']));}),this[_0x4f2838(0x193)](_0x3276c6);}[_0x42bdd7(0x2fb)](_0x31b4ac){const _0x327a4d=_0x42bdd7;this[_0x327a4d(0x1ec)](_0x31b4ac[_0x327a4d(0x315)]);}[_0x42bdd7(0x2f6)](_0x257d68){const _0x2dd6c4=_0x42bdd7;localStorage[_0x2dd6c4(0x245)](Pe,JSON[_0x2dd6c4(0x14f)](_0x257d68));}[_0x42bdd7(0x1c2)](){const _0x256ac2=_0x42bdd7;this[_0x256ac2(0x320)]=window['setInterval'](()=>{const _0x459c28=_0x256ac2;this[_0x459c28(0x2f6)]({'type':0x2,'memberID':this[_0x459c28(0x35e)]});},Le);}[_0x42bdd7(0x241)](_0x54ccc3){const _0x4ece95=_0x42bdd7;return this[_0x4ece95(0x2f4)][_0x4ece95(0x2a4)](_0x54ccc3)||this[_0x4ece95(0x2f4)]['set'](_0x54ccc3,new d[(_0x4ece95(0x32a))](u[_0x4ece95(0x1e2)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x4ece95(0x2f4)][_0x4ece95(0x1d3)](_0x54ccc3);}}var ke=(_0xf79747=>(_0xf79747[_0xf79747[_0x42bdd7(0x142)]=0x0]=_0x42bdd7(0x142),_0xf79747[_0xf79747['OK']=0x1]='OK',_0xf79747[_0xf79747[_0x42bdd7(0x2c1)]=0x2]=_0x42bdd7(0x2c1),_0xf79747[_0xf79747[_0x42bdd7(0x2d6)]=0x3]=_0x42bdd7(0x2d6),_0xf79747[_0xf79747[_0x42bdd7(0x126)]=0x4]=_0x42bdd7(0x126),_0xf79747[_0xf79747[_0x42bdd7(0x349)]=0x5]=_0x42bdd7(0x349),_0xf79747[_0xf79747[_0x42bdd7(0x255)]=0x6]=_0x42bdd7(0x255),_0xf79747[_0xf79747['INVALID_ARGUMENT']=0x7]=_0x42bdd7(0x212),_0xf79747[_0xf79747[_0x42bdd7(0x356)]=0x8]='TOO_MANY_REQUESTS',_0xf79747[_0xf79747['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0xf79747[_0xf79747[_0x42bdd7(0x1ff)]=0xa]=_0x42bdd7(0x1ff),_0xf79747[_0xf79747[_0x42bdd7(0x115)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0xf79747[_0xf79747['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x42bdd7(0x325),_0xf79747[_0xf79747[_0x42bdd7(0x169)]=0x1772]=_0x42bdd7(0x169),_0xf79747[_0xf79747[_0x42bdd7(0x2a7)]=0x1773]=_0x42bdd7(0x2a7),_0xf79747[_0xf79747[_0x42bdd7(0x2b9)]=0x1b59]=_0x42bdd7(0x2b9),_0xf79747[_0xf79747['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x42bdd7(0x182),_0xf79747[_0xf79747[_0x42bdd7(0x291)]=0x1b5b]=_0x42bdd7(0x291),_0xf79747[_0xf79747[_0x42bdd7(0x28c)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xf79747[_0xf79747[_0x42bdd7(0x34b)]=0x1b5d]=_0x42bdd7(0x34b),_0xf79747[_0xf79747['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x42bdd7(0x20a),_0xf79747[_0xf79747['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xf79747[_0xf79747[_0x42bdd7(0x168)]=0x232a]=_0x42bdd7(0x168),_0xf79747[_0xf79747['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x42bdd7(0x22c),_0xf79747[_0xf79747['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x42bdd7(0x170),_0xf79747[_0xf79747[_0x42bdd7(0x2d8)]=0x232d]=_0x42bdd7(0x2d8),_0xf79747[_0xf79747[_0x42bdd7(0x148)]=0x2711]=_0x42bdd7(0x148),_0xf79747[_0xf79747[_0x42bdd7(0x336)]=0x2712]=_0x42bdd7(0x336),_0xf79747[_0xf79747[_0x42bdd7(0x17a)]=0x2713]=_0x42bdd7(0x17a),_0xf79747[_0xf79747['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xf79747[_0xf79747[_0x42bdd7(0x18c)]=0x271a]=_0x42bdd7(0x18c),_0xf79747[_0xf79747['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x42bdd7(0x132),_0xf79747[_0xf79747['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x42bdd7(0x387),_0xf79747[_0xf79747[_0x42bdd7(0x319)]=0x2ee1]=_0x42bdd7(0x319),_0xf79747[_0xf79747[_0x42bdd7(0x2af)]=0x2ee2]=_0x42bdd7(0x2af),_0xf79747[_0xf79747[_0x42bdd7(0x38f)]=0x2ee3]=_0x42bdd7(0x38f),_0xf79747[_0xf79747['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0xf79747[_0xf79747[_0x42bdd7(0x2b2)]=0x2ee5]=_0x42bdd7(0x2b2),_0xf79747[_0xf79747['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x42bdd7(0x2d0),_0xf79747[_0xf79747[_0x42bdd7(0x18f)]=0x32ca]=_0x42bdd7(0x18f),_0xf79747[_0xf79747[_0x42bdd7(0x178)]=0x32cb]=_0x42bdd7(0x178),_0xf79747[_0xf79747['UNRECOGNIZED']=-0x1]=_0x42bdd7(0x2ca),_0xf79747))(ke||{}),_s=Object[_0x42bdd7(0x2cf)],hs=(_0x23d3e4,_0xf7dc4f,_0x5a7209,_0x85bcb5)=>{const _0x264b65=_0x42bdd7;for(var _0x26c0a6=_0x85bcb5>0x1?void 0x0:_0x85bcb5?_s(_0xf7dc4f,_0x5a7209):_0xf7dc4f,_0x41ed86=_0x23d3e4[_0x264b65(0x246)]-0x1,_0x5c9ab7;_0x41ed86>=0x0;_0x41ed86--)(_0x5c9ab7=_0x23d3e4[_0x41ed86])&&(_0x26c0a6=_0x5c9ab7(_0x26c0a6)||_0x26c0a6);return _0x26c0a6;},de=(_0x4897aa,_0x3071d3)=>(_0x36172f,_0x3a9ae5)=>_0x3071d3(_0x36172f,_0x3a9ae5,_0x4897aa);exports[_0x42bdd7(0x397)]=class extends a[_0x42bdd7(0x1d4)]{constructor(_0x551af8,_0x29fc33,_0x2b247c){const _0x7b6860=_0x42bdd7;super(),this[_0x7b6860(0x2f9)]=_0x551af8,this[_0x7b6860(0x2bb)]=_0x29fc33,this[_0x7b6860(0x1b0)]=_0x2b247c;}async[_0x42bdd7(0x36a)](_0x216311,_0x8699fe,_0x17f7b1,..._0x2dbfb4){const _0x5f23b0=_0x42bdd7;var _0x4b51f8,_0x250ca6,_0x539644,_0x280f05;const _0x32bd64=this[_0x5f23b0(0x2f9)][_0x5f23b0(0x290)]();if(!_0x32bd64)throw new Error(_0x5f23b0(0x120));const _0x42cd93=((_0x4b51f8=this[_0x5f23b0(0x1b0)]['getConfig'](u[_0x5f23b0(0x28a)]))!=null?_0x4b51f8:u[_0x5f23b0(0x272)])+'/'+_0x216311+_0x5f23b0(0x138)+_0x8699fe,_0x5751ed=new URL(window[_0x5f23b0(0x294)][_0x5f23b0(0x173)]),_0x13f203={'scriptId':_0x216311,'runId':(_0x250ca6=_0x5751ed[_0x5f23b0(0x1c1)][_0x5f23b0(0x1d3)](_0x5f23b0(0x187)))!=null?_0x250ca6:'','function':_0x8699fe,'unitId':_0x32bd64[_0x5f23b0(0x37f)](),'argsOfFunction':JSON[_0x5f23b0(0x14f)](_0x2dbfb4),'invokeId':(_0x539644=_0x17f7b1[_0x5f23b0(0x364)])!=null?_0x539644:'','executionId':(_0x280f05=_0x17f7b1[_0x5f23b0(0x17c)])!=null?_0x280f05:''};try{const _0x1b4f27=await this[_0x5f23b0(0x2bb)][_0x5f23b0(0x2de)](_0x42cd93,{'body':_0x13f203});return _0x1b4f27[_0x5f23b0(0x208)][_0x5f23b0(0x1a8)]&&_0x1b4f27[_0x5f23b0(0x208)][_0x5f23b0(0x1a8)][_0x5f23b0(0x1fc)]!==ke['OK']?_0x5f23b0(0x21d):_0x1b4f27[_0x5f23b0(0x208)][_0x5f23b0(0x297)];}catch{return _0x5f23b0(0x21d);}}},exports['RemoteUniscriptService']=hs([de(0x0,a['IUniverInstanceService']),de(0x1,a[_0x42bdd7(0x374)](q[_0x42bdd7(0x359)])),de(0x2,a[_0x42bdd7(0x33b)])],exports['RemoteUniscriptService']),exports['CollaborationStatusDisplay']=je,exports[_0x42bdd7(0x16f)]=Ee,exports[_0x42bdd7(0x1be)]=Ae,exports[_0x42bdd7(0x38a)]=ls,exports[_0x42bdd7(0x28e)]=Be;
1
+ 'use strict';const _0x4af93f=_0x11d6;(function(_0x5b8d94,_0x5e1c2){const _0x53e26c=_0x11d6,_0x4bd393=_0x5b8d94();while(!![]){try{const _0x3b5833=-parseInt(_0x53e26c(0xac))/0x1*(-parseInt(_0x53e26c(0x16b))/0x2)+-parseInt(_0x53e26c(0x157))/0x3+parseInt(_0x53e26c(0x1c6))/0x4+parseInt(_0x53e26c(0xe2))/0x5*(parseInt(_0x53e26c(0x154))/0x6)+parseInt(_0x53e26c(0x1f9))/0x7*(-parseInt(_0x53e26c(0x228))/0x8)+parseInt(_0x53e26c(0x77))/0x9*(parseInt(_0x53e26c(0x230))/0xa)+-parseInt(_0x53e26c(0xf7))/0xb;if(_0x3b5833===_0x5e1c2)break;else _0x4bd393['push'](_0x4bd393['shift']());}catch(_0x2b3089){_0x4bd393['push'](_0x4bd393['shift']());}}}(_0x39f5,0xb9a87));var Xe=Object[_0x4af93f(0x1c1)],Ge=(_0xa59918,_0x966e18,_0xef4292)=>_0x966e18 in _0xa59918?Xe(_0xa59918,_0x966e18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xef4292}):_0xa59918[_0x966e18]=_0xef4292,_=(_0x31c9b7,_0x22f55b,_0x2c40ad)=>Ge(_0x31c9b7,typeof _0x22f55b!=_0x4af93f(0x120)?_0x22f55b+'':_0x22f55b,_0x2c40ad);Object[_0x4af93f(0x1c1)](exports,Symbol[_0x4af93f(0x99)],{'value':_0x4af93f(0x6b)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require(_0x4af93f(0xa4)),q=require('@univerjs/network'),b=require(_0x4af93f(0xda)),qe=require(_0x4af93f(0x14e)),d=require('rxjs'),Y=require(_0x4af93f(0x1cc)),m=require(_0x4af93f(0x1db)),Te=require('@univerjs/engine-formula'),g=require(_0x4af93f(0x252)),$=require('rxjs/operators'),G=require(_0x4af93f(0x29e)),P=require(_0x4af93f(0x2cd)),O=require(_0x4af93f(0x91)),T=require('@univerjs/design'),M=require(_0x4af93f(0x1bc)),Ke=require('@univerjs/rpc');var ze=Object[_0x4af93f(0x267)],Je=(_0x509186,_0x158431,_0x539f8a,_0x42bfd4)=>{for(var _0x69b648=_0x42bfd4>0x1?void 0x0:_0x42bfd4?ze(_0x158431,_0x539f8a):_0x158431,_0x202cc5=_0x509186['length']-0x1,_0x324576;_0x202cc5>=0x0;_0x202cc5--)(_0x324576=_0x509186[_0x202cc5])&&(_0x69b648=_0x324576(_0x69b648)||_0x69b648);return _0x69b648;},Oe=(_0x2b8826,_0x20bc91)=>(_0x7439cd,_0x4a9d5c)=>_0x20bc91(_0x7439cd,_0x4a9d5c,_0x2b8826);let fe=class extends a[_0x4af93f(0x193)]{constructor(_0x1ba782,_0x7ad368){const _0x76144b=_0x4af93f;super(),this['_docClipboardService']=_0x1ba782,this[_0x76144b(0x291)]=_0x7ad368,this['_init']();}[_0x4af93f(0xdb)](){const _0x2057d6=_0x4af93f,_0x1d38fc=this;this[_0x2057d6(0xcc)](this['_docClipboardService'][_0x2057d6(0x20a)]({'onBeforePasteImage':async _0x412160=>{const _0x43a6b6=_0x2057d6,_0x397c00=await _0x1d38fc[_0x43a6b6(0x291)]['saveImage'](_0x412160);return _0x397c00?{'source':_0x397c00['source'],'imageSourceType':_0x397c00['imageSourceType']}:null;}}));}};fe=Je([Oe(0x0,b[_0x4af93f(0xff)]),Oe(0x1,qe[_0x4af93f(0xd2)])],fe);const Re=[_0x4af93f(0x98),_0x4af93f(0x2d3),_0x4af93f(0x18d),_0x4af93f(0x203),_0x4af93f(0x1e4),_0x4af93f(0x8b)];class Ce extends a[_0x4af93f(0x14c)]{constructor(){const _0x439909=_0x4af93f;super(...arguments),_(this,_0x439909(0x22d),new Map()),_(this,_0x439909(0x101),0x0);}['assignAColorForMemberID'](_0x1b0cb7){const _0x3b3e38=_0x4af93f;if(this[_0x3b3e38(0x22d)][_0x3b3e38(0x148)](_0x1b0cb7))return this['_assignedColors'][_0x3b3e38(0x27f)](_0x1b0cb7);const _0x4a25e1=Re[this[_0x3b3e38(0x101)]];return this[_0x3b3e38(0x101)]=(this['_colorIndex']+0x1)%Re[_0x3b3e38(0x10c)],this[_0x3b3e38(0x22d)][_0x3b3e38(0x167)](_0x1b0cb7,_0x4a25e1),_0x4a25e1;}}function we(_0x25418a){const _0x284470=_0x4af93f;let _0x3fe127='';for(const _0x10622d of _0x25418a){const {startOffset:_0x40cf02,endOffset:_0x3591d4,isActive:_0x21afc9,rangeType:_0x4a35e5,segmentId:_0x1795c0,segmentPage:_0x57ac7f}=_0x10622d;_0x3fe127[_0x284470(0x10c)]&&(_0x3fe127+=','),_0x3fe127+=_0x40cf02+':'+_0x3591d4+':'+(_0x21afc9?'1':'0')+':'+_0x4a35e5+':'+_0x1795c0+':'+_0x57ac7f;}return _0x3fe127;}function Ze(_0x2e43fe){const _0x14906d=_0x4af93f,_0x2fc1a4=_0x2e43fe['split'](','),_0x3a867e=[];for(const _0x54f587 of _0x2fc1a4){const [_0x1c1b43,_0x268450,_0x30c7f3,_0xed29f9,_0x4f8576,_0x1d5d61]=_0x54f587[_0x14906d(0xd5)](':');_0x3a867e[_0x14906d(0x181)]({'startOffset':Number(_0x1c1b43),'endOffset':Number(_0x268450),'collapsed':_0x1c1b43===_0x268450,'isActive':_0x30c7f3==='1','rangeType':_0xed29f9===a['DOC_RANGE_TYPE'][_0x14906d(0x201)]?a[_0x14906d(0x26f)][_0x14906d(0x201)]:a[_0x14906d(0x26f)][_0x14906d(0x2c6)],'segmentId':typeof _0x4f8576==_0x14906d(0x26b)?String(_0x4f8576):'','segmentPage':Number(_0x1d5d61!=null?_0x1d5d61:-0x1)});}return _0x3a867e[_0x14906d(0x15a)](_0x4a6fdb=>_0x4a6fdb['isActive'])||(_0x3a867e[0x0][_0x14906d(0x13c)]=!0x0),_0x3a867e;}class pe extends a[_0x4af93f(0x193)]{constructor(){const _0x3d3bef=_0x4af93f;super(...arguments),_(this,'_collabCursorState$',new d[(_0x3d3bef(0x158))](null)),_(this,'collabCursorState$',this['_collabCursorState$']['asObservable']());}[_0x4af93f(0x106)](_0x4e96cc){const _0x441682=_0x4af93f,{unitID:_0x21ae0d,memberID:_0x920488,textRanges:_0x44fadf}=_0x4e96cc,_0x181438=we(_0x44fadf);if(_0x181438==='')return;const _0x120bb3={'unitID':_0x21ae0d,'memberID':_0x920488,'selection':_0x181438};this[_0x441682(0x21c)][_0x441682(0x2c4)](_0x120bb3);}}var Qe=Object[_0x4af93f(0x267)],et=(_0x18d15c,_0x5f3090,_0x206213,_0x3dd18a)=>{const _0xff54c4=_0x4af93f;for(var _0xfb075=_0x3dd18a>0x1?void 0x0:_0x3dd18a?Qe(_0x5f3090,_0x206213):_0x5f3090,_0x2ea35d=_0x18d15c[_0xff54c4(0x10c)]-0x1,_0x386752;_0x2ea35d>=0x0;_0x2ea35d--)(_0x386752=_0x18d15c[_0x2ea35d])&&(_0xfb075=_0x386752(_0xfb075)||_0xfb075);return _0xfb075;},L=(_0x96081a,_0x1e1c1b)=>(_0x7534b8,_0xd39a7e)=>_0x1e1c1b(_0x7534b8,_0xd39a7e,_0x96081a);const tt=0x12c,st=0x64;let Se=class extends a['RxDisposable']{constructor(_0x39a90d,_0x3ee8e7,_0x4eb375,_0xcfd0ea,_0x39c9e0,_0x40dc3f,_0x5b392d,_0x11c160,_0x135532){const _0x389b30=_0x4af93f;super(),_(this,_0x389b30(0xb5),!0x1),_(this,_0x389b30(0xdb),!0x1),_(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),_(this,_0x389b30(0x27e),this[_0x389b30(0x7e)]['asObservable']()),_(this,_0x389b30(0x2b2),new d[(_0x389b30(0x158))]([])),_(this,_0x389b30(0x124),this[_0x389b30(0x2b2)][_0x389b30(0x131)](d[_0x389b30(0x23e)](tt))),_(this,_0x389b30(0x102),a[_0x389b30(0x1ec)](_0x3b2f49=>{const _0x20807d=_0x389b30,_0x224ec4={'eventID':m['CollaborationEvent'][_0x20807d(0xe4)],'data':{'unitID':this['unitID'],'memberID':this[_0x20807d(0x1d3)][_0x20807d(0x19d)](),'selection':we(_0x3b2f49)}};this['_session']['send'](_0x224ec4,this['unitID']);},st)),(this[_0x389b30(0x1ff)]=_0x39a90d,this[_0x389b30(0x1d3)]=_0x3ee8e7,this[_0x389b30(0x23b)]=_0x4eb375,this[_0x389b30(0x26e)]=_0xcfd0ea,this[_0x389b30(0x2b8)]=_0x39c9e0,this[_0x389b30(0x1e6)]=_0x40dc3f,this[_0x389b30(0x105)]=_0x5b392d,this[_0x389b30(0x2c1)]=_0x11c160,this[_0x389b30(0x22f)]=_0x135532);}get[_0x4af93f(0x182)](){const _0x19b5f8=_0x4af93f;return this[_0x19b5f8(0x7e)][_0x19b5f8(0x109)]();}get['roomMembers'](){const _0x180171=_0x4af93f;return this[_0x180171(0x2b2)][_0x180171(0x109)]();}[_0x4af93f(0x1a7)](){const _0x2e7b14=_0x4af93f;super[_0x2e7b14(0x1a7)](),this[_0x2e7b14(0x7e)][_0x2e7b14(0x2c4)](new Map()),this['_cursorInfo$'][_0x2e7b14(0x1c0)](),this[_0x2e7b14(0x2b2)][_0x2e7b14(0x2c4)]([]),this[_0x2e7b14(0x2b2)][_0x2e7b14(0x1c0)]();}[_0x4af93f(0xcf)](){const _0x5377c8=_0x4af93f;this[_0x5377c8(0xdb)]||(this[_0x5377c8(0xdb)]=!0x0,this[_0x5377c8(0x1d3)]['sessionStatus$'][_0x5377c8(0x131)](d[_0x5377c8(0x24c)](this[_0x5377c8(0x9d)]))[_0x5377c8(0xdd)](_0x401f68=>{const _0x5a46fe=_0x5377c8;_0x401f68===u[_0x5a46fe(0x8a)][_0x5a46fe(0x14d)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x5377c8(0x1d3)]['event$'][_0x5377c8(0x131)](d[_0x5377c8(0x24c)](this[_0x5377c8(0x9d)]))[_0x5377c8(0xdd)](_0x40b6c0=>{const _0x33c41b=_0x5377c8,_0x768f18=_0x40b6c0[_0x33c41b(0x251)];_0x768f18===m['CollaborationEvent'][_0x33c41b(0xe4)]&&this[_0x33c41b(0x1d0)](_0x40b6c0),_0x768f18===m['CollaborationEvent'][_0x33c41b(0x223)]&&this['_onCursorDelete'](_0x40b6c0);}),this[_0x5377c8(0xcc)](this[_0x5377c8(0x22f)][_0x5377c8(0x6a)](_0x1360f5=>{const _0x48a221=_0x5377c8,_0xc7fe0e=_0x1360f5[_0x48a221(0x22a)];_0xc7fe0e!=null&&this[_0x48a221(0xb5)]&&_0x1360f5['id']===Y[_0x48a221(0x12c)]['id']&&_0xc7fe0e[_0x48a221(0x7a)]===this[_0x48a221(0x1ff)]&&_0xc7fe0e[_0x48a221(0x200)]===!0x1&&_0xc7fe0e[_0x48a221(0x2a9)][_0x48a221(0x10c)]>0x0&&this[_0x48a221(0x102)](_0xc7fe0e[_0x48a221(0x2a9)]);})),this[_0x5377c8(0x1e6)]['collabCursorState$']['pipe'](d[_0x5377c8(0x24c)](this[_0x5377c8(0x9d)]))['subscribe'](_0x15b1b2=>{const _0x1d7645=_0x5377c8;if((_0x15b1b2==null?void 0x0:_0x15b1b2[_0x1d7645(0x1ff)])!==this[_0x1d7645(0x1ff)])return;const _0x3d620d={'eventID':m[_0x1d7645(0xed)][_0x1d7645(0xe4)],'data':_0x15b1b2};this[_0x1d7645(0x1d0)](_0x3d620d);}),this['disposeWithMe'](this['_commandService'][_0x5377c8(0x6a)](_0x29a8c8=>{const _0x1a52c4=_0x5377c8;if(_0x29a8c8['params']==null)return;const _0x553593=_0x29a8c8[_0x1a52c4(0x22a)];if(_0x29a8c8['id']!==Y[_0x1a52c4(0xfc)]['id']||_0x553593['unitId']!==this[_0x1a52c4(0x1ff)])return;const _0x44402b={'id':_0x1a52c4(0x2ce),'params':_0x553593},_0x44732f=this[_0x1a52c4(0x182)];for(const [_0x134ec9,_0x17afa4]of _0x44732f){const _0x3ffdc5={'id':_0x1a52c4(0x2ce),'params':{'unitId':this[_0x1a52c4(0x1ff)],'actions':null,'textRanges':_0x17afa4[_0x1a52c4(0x2a9)]}},_0x34d181=this[_0x1a52c4(0x105)][_0x1a52c4(0xdf)](_0x44402b,_0x3ffdc5,!0x1);if(m[_0x1a52c4(0xca)](_0x34d181))throw _0x34d181[_0x1a52c4(0x1a2)];_0x44732f['set'](_0x134ec9,{..._0x17afa4,'ranges':_0x34d181[_0x1a52c4(0xba)][_0x1a52c4(0x22a)][_0x1a52c4(0x7b)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x44732f);});})));}[_0x4af93f(0x1d0)](_0x3ff78a){const _0x3dfcd5=_0x4af93f;var _0x1d7a70,_0x377cf5;const {memberID:_0x59d87d,selection:_0x7e33d5}=_0x3ff78a[_0x3dfcd5(0x2d7)],_0x1a8fd9=Ze(_0x7e33d5),_0x127e75=(_0x377cf5=(_0x1d7a70=this[_0x3dfcd5(0x2b8)][_0x3dfcd5(0x207)](this['unitID'],_0x59d87d))==null?void 0x0:_0x1d7a70['name'])!=null?_0x377cf5:'Unknown\x20user',_0x220443={'color':this[_0x3dfcd5(0x26e)][_0x3dfcd5(0x184)](_0x59d87d),'name':_0x127e75,'ranges':_0x1a8fd9},_0x5f3fb7=this[_0x3dfcd5(0x182)];_0x5f3fb7[_0x3dfcd5(0x167)](_0x59d87d,_0x220443),this[_0x3dfcd5(0x7e)][_0x3dfcd5(0x2c4)](_0x5f3fb7);}['_onCursorDelete'](_0x23e62a){const _0x4e1cbc=_0x4af93f,{memberID:_0x32775f}=_0x23e62a[_0x4e1cbc(0x2d7)],_0x24c585=this[_0x4e1cbc(0x182)];_0x24c585[_0x4e1cbc(0x2d0)](_0x32775f),this[_0x4e1cbc(0x7e)]['next'](_0x24c585);}[_0x4af93f(0x293)](){const _0x299100=_0x4af93f;var _0x1b4e22;if(this[_0x299100(0xb5)]=!0x0,((_0x1b4e22=this[_0x299100(0x2c1)][_0x299100(0xae)]())==null?void 0x0:_0x1b4e22[_0x299100(0x1c7)]())!==this['unitID'])return;const _0x2da4fd=this[_0x299100(0x23b)][_0x299100(0x27f)](Y[_0x299100(0x67)])[_0x299100(0x11b)]();Array['isArray'](_0x2da4fd)&&_0x2da4fd[_0x299100(0x10c)]>0x0&&this[_0x299100(0x102)](_0x2da4fd);}[_0x4af93f(0x1ef)](){this['_online']=!0x1;}};Se=et([L(0x2,a['Inject'](a['Injector'])),L(0x3,a[_0x4af93f(0x2a1)](Ce)),L(0x4,a[_0x4af93f(0x2a1)](u[_0x4af93f(0x80)])),L(0x5,a['Inject'](pe)),L(0x6,m[_0x4af93f(0x2df)]),L(0x7,a[_0x4af93f(0x9c)]),L(0x8,a['ICommandService'])],Se);var nt=Object[_0x4af93f(0x267)],it=(_0x1d986a,_0x3a0c33,_0x16deda,_0x1972e2)=>{const _0x478771=_0x4af93f;for(var _0x5c4b44=_0x1972e2>0x1?void 0x0:_0x1972e2?nt(_0x3a0c33,_0x16deda):_0x3a0c33,_0x439aaa=_0x1d986a[_0x478771(0x10c)]-0x1,_0x58e0a6;_0x439aaa>=0x0;_0x439aaa--)(_0x58e0a6=_0x1d986a[_0x439aaa])&&(_0x5c4b44=_0x58e0a6(_0x5c4b44)||_0x5c4b44);return _0x5c4b44;},A=(_0x462d5a,_0x4346f4)=>(_0xc91796,_0x5e69b0)=>_0x4346f4(_0xc91796,_0x5e69b0,_0x462d5a);const rt=0x12c,ot=0x64,at=()=>{let _0x51ee7e=[],_0x126880=!0x1;return _0x52c3a8=>{const _0x163ccc=_0x11d6;_0x51ee7e[_0x163ccc(0x181)](_0x52c3a8),_0x126880||(_0x126880=!0x0,setTimeout(()=>{_0x51ee7e['forEach'](_0x3f6857=>_0x3f6857()),_0x51ee7e=[],_0x126880=!0x1;}));};};let Ie=class extends a['RxDisposable']{constructor(_0x4f8a1d,_0x353b06,_0x3a00b0,_0x49dd75,_0x235290,_0x11d385,_0x5a742d,_0xb2e748){const _0x53d25e=_0x4af93f;super(),_(this,_0x53d25e(0xb5),!0x1),_(this,_0x53d25e(0xdb),!0x1),_(this,_0x53d25e(0x7e),new d[(_0x53d25e(0x158))](new Map())),_(this,_0x53d25e(0x27e),this['_cursorInfo$']['asObservable']()),_(this,_0x53d25e(0x2b2),new d[(_0x53d25e(0x158))]([])),_(this,'roomMembers$',this[_0x53d25e(0x2b2)][_0x53d25e(0x131)](d['debounceTime'](rt))),_(this,_0x53d25e(0x102),a[_0x53d25e(0x1ec)]((_0x41eb3b,_0x31d881)=>{const _0x5ad9f1=_0x53d25e,_0x402381={'eventID':m[_0x5ad9f1(0xed)][_0x5ad9f1(0xe4)],'data':{'unitID':this[_0x5ad9f1(0x1ff)],'memberID':this['_session'][_0x5ad9f1(0x19d)](),'selection':Te[_0x5ad9f1(0xb7)](_0x41eb3b,_0x31d881[_0x5ad9f1(0xe9)])}};this['_session'][_0x5ad9f1(0x28f)](_0x402381,this[_0x5ad9f1(0x1ff)]);},ot)),(this[_0x53d25e(0x1ff)]=_0x4f8a1d,this['_session']=_0x353b06,this[_0x53d25e(0x23b)]=_0x3a00b0,this[_0x53d25e(0x26e)]=_0x49dd75,this[_0x53d25e(0x2b8)]=_0x235290,this[_0x53d25e(0x2c1)]=_0x11d385,this[_0x53d25e(0x22f)]=_0x5a742d,this['_refRangeService']=_0xb2e748);}get[_0x4af93f(0x182)](){const _0x35fc08=_0x4af93f;return this[_0x35fc08(0x7e)][_0x35fc08(0x109)]();}get['roomMembers'](){const _0x1a4b13=_0x4af93f;return this[_0x1a4b13(0x2b2)]['getValue']();}[_0x4af93f(0x1a7)](){const _0x30d319=_0x4af93f;super['dispose'](),this[_0x30d319(0x7e)][_0x30d319(0x2c4)](new Map()),this['_cursorInfo$'][_0x30d319(0x1c0)](),this[_0x30d319(0x2b2)][_0x30d319(0x2c4)]([]),this[_0x30d319(0x2b2)][_0x30d319(0x1c0)]();}[_0x4af93f(0xcf)](){const _0x227204=_0x4af93f;this[_0x227204(0xdb)]||(this[_0x227204(0xdb)]=!0x0,this[_0x227204(0x1d3)][_0x227204(0x183)][_0x227204(0x131)](d[_0x227204(0x24c)](this['dispose$']))[_0x227204(0xdd)](_0x1f3ee6=>{const _0x219e6d=_0x227204;_0x1f3ee6===u[_0x219e6d(0x8a)][_0x219e6d(0x14d)]?this[_0x219e6d(0x293)]():this[_0x219e6d(0x1ef)]();}),this[_0x227204(0x1d3)]['event$']['pipe'](d[_0x227204(0x24c)](this[_0x227204(0x9d)]))['subscribe'](_0xbcadeb=>{const _0x1a5ec7=_0x227204,_0x3111dd=_0xbcadeb['eventID'];_0x3111dd===m['CollaborationEvent'][_0x1a5ec7(0xe4)]&&this[_0x1a5ec7(0x1d0)](_0xbcadeb),_0x3111dd===m[_0x1a5ec7(0xed)]['USERS_LEAVE']&&this[_0x1a5ec7(0x1e0)](_0xbcadeb);}),this[_0x227204(0xab)](),this[_0x227204(0xcc)](this[_0x227204(0x22f)][_0x227204(0x6a)](_0x435836=>{const _0x416046=_0x227204;if(this[_0x416046(0xb5)]&&_0x435836['id']===g[_0x416046(0x1a9)]['id']&&_0x435836[_0x416046(0x22a)][_0x416046(0x7a)]===this[_0x416046(0x1ff)]){const _0x193f0=_0x435836[_0x416046(0x22a)];this['_updateLocalCursor'](_0x193f0['subUnitId'],_0x193f0[_0x416046(0x1fd)][0x0]);}})));}['_onCursorUpdate'](_0x42916b){const _0x4fe576=_0x4af93f;var _0xa63a69,_0x300006;const {memberID:_0x1f2da4,selection:_0x94ebd}=_0x42916b[_0x4fe576(0x2d7)],{sheetName:_0x5daa61,range:_0x2c5590}=Te[_0x4fe576(0xd7)](_0x94ebd),_0x2750b6={'name':(_0x300006=(_0xa63a69=this[_0x4fe576(0x2b8)][_0x4fe576(0x207)](this[_0x4fe576(0x1ff)],_0x1f2da4))==null?void 0x0:_0xa63a69[_0x4fe576(0x209)])!=null?_0x300006:_0x4fe576(0x88),'range':this[_0x4fe576(0x2d2)](_0x5daa61,_0x2c5590),'sheetID':_0x5daa61,'color':this[_0x4fe576(0x26e)][_0x4fe576(0x184)](_0x1f2da4),'selection':_0x94ebd},_0x1b07b9=this['cursorInfo'];_0x1b07b9[_0x4fe576(0x167)](_0x1f2da4,_0x2750b6),this[_0x4fe576(0x7e)][_0x4fe576(0x2c4)](_0x1b07b9);}['_onCursorDelete'](_0x100b7e){const _0x45bec4=_0x4af93f,{memberID:_0x598f32}=_0x100b7e[_0x45bec4(0x2d7)],_0x32f7e7=this[_0x45bec4(0x182)];_0x32f7e7[_0x45bec4(0x2d0)](_0x598f32),this['_cursorInfo$'][_0x45bec4(0x2c4)](_0x32f7e7);}[_0x4af93f(0x2d2)](_0x34864a,_0x1bdcb8){const _0x2223d4=_0x4af93f;var _0xbf6232,_0x5a7717;const _0x2456ce=(_0x5a7717=(_0xbf6232=this[_0x2223d4(0x2c1)]['getUniverSheetInstance'](this[_0x2223d4(0x1ff)]))==null?void 0x0:_0xbf6232[_0x2223d4(0x28e)](_0x34864a))==null?void 0x0:_0x5a7717['getMergeData']();return(_0x2456ce==null?void 0x0:_0x2456ce['find'](_0x4d28b7=>a[_0x2223d4(0xa0)][_0x2223d4(0x195)](_0x4d28b7,_0x1bdcb8)))||_0x1bdcb8;}[_0x4af93f(0xab)](){const _0x3fa649=_0x4af93f,_0x5b24e9=new a[(_0x3fa649(0xc0))](),_0x46559f=at(),_0x4650ba=()=>{const _0x398546=_0x3fa649;_0x5b24e9['dispose']();const _0x150815=(_0x33d801,_0x2d6818,_0x20a376,_0x2bd0a0)=>{const _0x52ee40=_0x11d6;let _0x2e015f=[];switch(_0x33d801['id']){case g[_0x52ee40(0x2c5)][_0x52ee40(0xe1)]:{_0x2e015f=g['handleDeleteRangeMoveLeft'](_0x33d801,_0x2bd0a0);break;}case g[_0x52ee40(0x2c5)][_0x52ee40(0x12b)]:{_0x2e015f=g[_0x52ee40(0x256)](_0x33d801,_0x2bd0a0);break;}case g[_0x52ee40(0x2c5)][_0x52ee40(0xd6)]:{_0x2e015f=g[_0x52ee40(0x68)](_0x33d801,_0x2bd0a0);break;}case g[_0x52ee40(0x2c5)][_0x52ee40(0xb8)]:{_0x2e015f=g['handleInsertRangeMoveDown'](_0x33d801,_0x2bd0a0);break;}case g[_0x52ee40(0x2c5)][_0x52ee40(0x239)]:{_0x2e015f=g[_0x52ee40(0x1a6)](_0x33d801,_0x2bd0a0);break;}case g[_0x52ee40(0x2c5)]['InsertRowCommandId']:{_0x2e015f=g[_0x52ee40(0x220)](_0x33d801,_0x2bd0a0);break;}case g[_0x52ee40(0x2c5)][_0x52ee40(0x260)]:{_0x2e015f=g[_0x52ee40(0x258)](_0x33d801,_0x2bd0a0);break;}case g[_0x52ee40(0x2c5)][_0x52ee40(0x15e)]:{_0x2e015f=g['handleIRemoveCol'](_0x33d801,_0x2bd0a0);break;}case g[_0x52ee40(0x2c5)][_0x52ee40(0x277)]:{_0x2e015f=g[_0x52ee40(0xbf)](_0x33d801,_0x2bd0a0);break;}}const _0x24f065=g[_0x52ee40(0x11f)](_0x2e015f,_0x2bd0a0),_0x463701=this['cursorInfo'][_0x52ee40(0x27f)](_0x2d6818);if(_0x463701&&_0x24f065){const _0x3fb41c={..._0x463701,'range':_0x24f065};this[_0x52ee40(0x182)][_0x52ee40(0x167)](_0x2d6818,_0x3fb41c),_0x46559f(()=>{const _0x21864d=_0x52ee40,_0x5b0fc8=this[_0x21864d(0x146)][_0x21864d(0x175)](_0x24f065,_0x37d5df=>(_0x5b0fc8[_0x21864d(0x1a7)](),_0x150815(_0x37d5df,_0x2d6818,_0x20a376,_0x24f065)));_0x5b24e9[_0x21864d(0x13d)](_0x5b0fc8);});}return{'redos':[],'undos':[]};};this[_0x398546(0x182)][_0x398546(0x2c9)]((_0x52143c,_0x4b90b2)=>{const _0xe1f719=_0x398546,{range:_0x497080,sheetID:_0x3bfce1}=_0x52143c,_0x21eae9=this[_0xe1f719(0x146)][_0xe1f719(0x175)](_0x497080,_0x416ef4=>(_0x21eae9['dispose'](),_0x150815(_0x416ef4,_0x4b90b2,_0x3bfce1,_0x497080)));_0x5b24e9[_0xe1f719(0x13d)](_0x21eae9);});};this[_0x3fa649(0xcc)](a['toDisposable'](this['_cursorInfo$']['subscribe'](()=>{_0x4650ba();})));}[_0x4af93f(0x293)](){const _0x450b0e=_0x4af93f;var _0x512ab5,_0x2724cc;if(this[_0x450b0e(0xb5)]=!0x0,((_0x512ab5=this[_0x450b0e(0x2c1)]['getFocusedUnit']())==null?void 0x0:_0x512ab5[_0x450b0e(0x1c7)]())!==this['unitID'])return;const _0x13f392=(_0x2724cc=this['_injector'][_0x450b0e(0x27f)](g['SheetsSelectionsService'])[_0x450b0e(0x8e)]())==null?void 0x0:_0x2724cc[0x0],_0x30f7eb=this['_univerInstanceService'][_0x450b0e(0x13e)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x450b0e(0x216)]();_0x13f392&&_0x30f7eb&&this['_updateLocalCursor'](_0x30f7eb[_0x450b0e(0x1ca)](),_0x13f392);}[_0x4af93f(0x1ef)](){const _0x45fc3f=_0x4af93f;this[_0x45fc3f(0xb5)]=!0x1;}};Ie=it([A(0x2,a[_0x4af93f(0x2a1)](a[_0x4af93f(0x187)])),A(0x3,a[_0x4af93f(0x2a1)](Ce)),A(0x4,a[_0x4af93f(0x2a1)](u[_0x4af93f(0x80)])),A(0x5,a[_0x4af93f(0x9c)]),A(0x6,a['ICommandService']),A(0x7,a[_0x4af93f(0x2a1)](g[_0x4af93f(0x28d)]))],Ie);var ct=Object[_0x4af93f(0x267)],lt=(_0x443c5c,_0x5de7c1,_0x19a6db,_0xde7a7f)=>{const _0x4fa1a4=_0x4af93f;for(var _0x3a5ca0=_0xde7a7f>0x1?void 0x0:_0xde7a7f?ct(_0x5de7c1,_0x19a6db):_0x5de7c1,_0x52c370=_0x443c5c[_0x4fa1a4(0x10c)]-0x1,_0x586712;_0x52c370>=0x0;_0x52c370--)(_0x586712=_0x443c5c[_0x52c370])&&(_0x3a5ca0=_0x586712(_0x3a5ca0)||_0x3a5ca0);return _0x3a5ca0;},ie=(_0x4c9d76,_0x481d37)=>(_0x59dd84,_0x155ce8)=>_0x481d37(_0x59dd84,_0x155ce8,_0x4c9d76);function _0x11d6(_0x32f84f,_0x147c15){const _0x39f5f3=_0x39f5();return _0x11d6=function(_0x11d662,_0x261792){_0x11d662=_0x11d662-0x66;let _0xecd897=_0x39f5f3[_0x11d662];return _0xecd897;},_0x11d6(_0x32f84f,_0x147c15);}let x=class extends a[_0x4af93f(0x193)]{constructor(_0x178181,_0x47c97a,_0x50743c){const _0x86e235=_0x4af93f;super(),_(this,_0x86e235(0x2ab),new Map()),_(this,_0x86e235(0x14b),new d[(_0x86e235(0x196))]()),(this['_univerInstanceService']=_0x178181,this[_0x86e235(0x23b)]=_0x47c97a,this[_0x86e235(0x237)]=_0x50743c,this[_0x86e235(0xdb)]());}['dispose'](){const _0x37aa22=_0x4af93f;super['dispose'](),this[_0x37aa22(0x14b)][_0x37aa22(0x1c0)](),this[_0x37aa22(0x2ab)][_0x37aa22(0x2c9)](_0x44c268=>_0x44c268[_0x37aa22(0x1a7)]());}[_0x4af93f(0x2aa)](_0x205962){const _0x24b9b8=_0x4af93f;return this[_0x24b9b8(0x2ab)]['has'](_0x205962)?this[_0x24b9b8(0x2ab)][_0x24b9b8(0x27f)](_0x205962)[_0x24b9b8(0x27e)]:this[_0x24b9b8(0x14b)][_0x24b9b8(0x131)](d[_0x24b9b8(0x16e)](_0x28173d=>_0x28173d[_0x24b9b8(0x1ff)]===_0x205962),d['switchMap'](_0x55ea45=>_0x55ea45['cursorInfo$']));}[_0x4af93f(0xdb)](){const _0x3d64cf=_0x4af93f;this[_0x3d64cf(0x2c1)][_0x3d64cf(0x14f)](a['UniverInstanceType'][_0x3d64cf(0x2d8)])[_0x3d64cf(0x131)](d[_0x3d64cf(0x24c)](this[_0x3d64cf(0x9d)]))[_0x3d64cf(0xdd)](async _0x4b4eb1=>{const _0x14277f=_0x3d64cf,_0x47a713=_0x4b4eb1[_0x14277f(0x1c7)](),_0x13a5e9=await this[_0x14277f(0x276)](_0x47a713);this['_entityInit$'][_0x14277f(0x2c4)](_0x13a5e9),this[_0x14277f(0x2ab)]['set'](_0x47a713,_0x13a5e9);}),this[_0x3d64cf(0x2c1)][_0x3d64cf(0x14f)](a[_0x3d64cf(0x222)][_0x3d64cf(0x259)])[_0x3d64cf(0x131)](d['takeUntil'](this[_0x3d64cf(0x9d)]))[_0x3d64cf(0x131)](d[_0x3d64cf(0x16e)](_0x2e7606=>!_0x2e7606[_0x3d64cf(0x1c7)]()[_0x3d64cf(0x185)]('__')))[_0x3d64cf(0xdd)](async _0x33a83c=>{const _0xc60ea7=_0x3d64cf,_0x4d72df=_0x33a83c[_0xc60ea7(0x1c7)](),_0x1c0f04=await this[_0xc60ea7(0x2d5)](_0x4d72df);this[_0xc60ea7(0x14b)]['next'](_0x1c0f04),this['_entities'][_0xc60ea7(0x167)](_0x4d72df,_0x1c0f04);}),d[_0x3d64cf(0x85)](this[_0x3d64cf(0x2c1)][_0x3d64cf(0x205)](a[_0x3d64cf(0x222)][_0x3d64cf(0x259)]),this[_0x3d64cf(0x2c1)][_0x3d64cf(0x205)](a['UniverInstanceType'][_0x3d64cf(0x2d8)]))[_0x3d64cf(0x131)](d[_0x3d64cf(0x24c)](this[_0x3d64cf(0x9d)]))['subscribe'](_0x1688f3=>{const _0x2159bb=_0x3d64cf,_0x1f8964=_0x1688f3[_0x2159bb(0x1c7)](),_0x216050=this[_0x2159bb(0x2ab)][_0x2159bb(0x27f)](_0x1f8964);_0x216050&&(_0x216050[_0x2159bb(0x1a7)](),this[_0x2159bb(0x2ab)]['delete'](_0x1f8964));});}async[_0x4af93f(0x276)](_0x39d494){const _0x162ea9=_0x4af93f,_0x568a97=await this[_0x162ea9(0x237)]['requireSession'](_0x39d494),_0x1083ab=this[_0x162ea9(0x23b)]['createInstance'](Ie,_0x39d494,_0x568a97);return _0x1083ab[_0x162ea9(0xcf)](),_0x1083ab;}async[_0x4af93f(0x2d5)](_0x205b89){const _0x4977b6=_0x4af93f,_0x1f16a8=await this[_0x4977b6(0x237)]['requireSession'](_0x205b89),_0x2ee9b8=this['_injector'][_0x4977b6(0x79)](Se,_0x205b89,_0x1f16a8);return _0x2ee9b8[_0x4977b6(0xcf)](),_0x2ee9b8;}};x=lt([ie(0x0,a['IUniverInstanceService']),ie(0x1,a['Inject'](a[_0x4af93f(0x187)])),ie(0x2,a[_0x4af93f(0x2a1)](u[_0x4af93f(0x143)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function _0x39f5(){const _0x5f1fa5=['onRendered','_getScale','handleInsertRangeMoveRight','dispose','_anchorDot','SetSelectionsOperation','UnitStatus','NodePositionConvertToRectRange','[CollaborationDataLoaderController]','_uiPartsService','Shape','forwardRef','DesktopCollaborationStatusDisplayController','_selfUnitIDs','_saveCache','IURLService','RemoteUniscriptService','MessageType','PERMISSION_DENIED','ICommandService','registerRenderModule','createSocket','_notificationService','createIdentifier','react','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','_drawTextRange','colorChannel1','complete','defineProperty','setParam','session.will-retry','endRow','SetDocZoomRatioOperation','2561840LLXCBI','getUnitId','stringify','DocCollaborationEntity','getSheetId','0\x200\x2016\x2016','@univerjs/docs','collab-text-anchor-','propertyIsEnumerable','shareReplay','_onCursorUpdate','0\x200\x2017\x2016','combineLatest','_session','_initDependencies','collaboration-client.offline-data-not-saved','OffLineSingle','IRenderManagerService','PY_RUNTIME_SCRIPT_ERROR','backgroundColor','measureText','@univerjs-pro/collaboration','replaceDocRanges','subunit','post','_registerRenderDependencies','_onCursorDelete','WebURLService','round','history','blue400','_anchor','_syncEditingCollabCursorService','toString','url(#$1','clearInterval','black','from','debounce','USER_NOT_INVITED_CODE','AWAITING','_toggleOffline','findNodePositionByCharIndex','jsx','extend','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','SYNCED','text','moveTo','_configService','_sheetSkeletonManagerService','447559OdpKuO','transformIMECache','path','children','selections','unsubscribe','unitID','isEditing','TEXT','collabStatus.synced','red300','executeCommand','getTypeOfUnitDisposed$','_unitOnClients','getMember','WebBrowserSingleActiveUnitService','name','addClipboardHook','max','_saveTaskMap','IConfigService','loadOfflineData','univer-online-status-icon','currentSkeleton$','ILocalCacheService','registerComponent','DocIMEInputManagerService','_document','_getSessionTicket','getActiveSheet','getSkeleton','substring','CHANGESET_REVISION_CONFILICT','status$','session.connection-failed','_collabCursorState$','origin','ILogService','engine','handleInsertRow','bottom','UniverInstanceType','USERS_LEAVE','APPLY_PERMISSION_DENIED','arc','_removeClearOtherTimer','hide','168NFDczF','Workbook','params','assign','application/json','_assignedColors','CollaborationController','_commandService','879110nPgToY','collaboration.closeRoom','UNAUTHENTICATED','fillRule','WECHAT_HAS_BEEN_BOUND','transform','...','_collabSessionService','permission.content','InsertRangeMoveRightCommandId','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_injector','getLocalCacheKey','hasOwnProperty','debounceTime','online','clipPath','collab-rect-range-','onPointerEnter$','_initEvent','runOnServer','_createSocketURL','Vector2','SUBMIT_CHANGESET_TIMEOUT','hovered','_collabCursorController','AWAITING_WITH_PENDING','Rect','takeUntil','_context','_transformHistoryAndStateStack','subscribeEvent','addObject','eventID','@univerjs/sheets','OFFLINE','COMPLETION_FINISHED','idSuffix','handleDeleteRangeMoveUp','_cursorShapes','handleMoveRange','UNIVER_DOC','defIds','DataLoaderService','FromArray','getRenderById','_scheduleHeartbeat','column','MoveRangeCommandId','event$','YUUMI_UNABLE_LOAD_URL','_setupSubUnitSync','_getAnchorBounding','UNRECOGNIZED','APPLY_REJECT','getOwnPropertyDescriptor','MUTATION','entries','generateRandomId','string','JOIN_ROOM_FAILED','univer-flex\x20univer-items-center','_colorAssignService','DOC_RANGE_TYPE','registerBeforeClose','SNAPSHOT_INVALID_SNAPSHOT','_themeService','_disabled','INVITE_CODE_HAS_BEEN_UES','IMessageService','_startSheetCollabCursor','RemoveRowCommandId','then','UNDEFINED','mapTo','clsx','updateOfflineData','_id','cursorInfo$','get','type','_send','getAncestorScale','setActiveRange','none','_hover','_docTransformStateCacheService','save','NOT_COLLAB','searchParams','LOCAL_CACHE_INTERVAL','getConfig','min','RefRangeService','getSheetBySheetId','send','setTimeout','_imageIoService','OTHER_CLIENT_EDITING','_toggleOnline','with','getUnitStatus$','result','SOCKET_FAILED_RETRY','_handleLeaveEvent','addEventListener','session.collaboration-timeout','enableLocalCache','_initEntityListener','_hovered','@univerjs/sheets-ui','CommandType','CollaborationUIEventId','Inject','collabStatus.syncing','off-line-single','ticket','_hideTimer','fromEvent','urlChange$','apply','ranges','getCollabCursors$','_entities','loadUnit','SNAPSHOT_HAS_BEEN_REMOVED','_config','useRef','HTTPService','url(#off-line-single_clip0_910_343)','_roomMembers$','CollaborationDataLoaderController','INVALID_INVITE_CODE','getViewport','YUUMI_ASYNCIO_CANCELLED','values','_memberService','TOO_MANY_REQUESTS','_docTransformSelectionsService','BrowserCollaborationSocketService','getCollabEntity$','onTransformChange$','_handleEvent','UniverIcon','ILocalStorageService','_univerInstanceService','setInterval','transformStateCache','next','EffectRefRangId','RECT','key','getCellPositionByOffset','forEach','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getCurrent','asObservable','react/jsx-runtime','doc.mutation.rich-text-editing','concat','delete','INVALID_ARGUMENT','_getMergeRange','jiqing500','_initStatusComponent','_startDocCollabCursor','transformRemoteChangeset','data','UNIVER_SHEET','_collaborationController','LICENSE_MAX_UNITS_EXCEEDED','_updateURLWithCurrentState','setStateCache','_eventUnsubscribe','attrs','ITransformService','_handleJoinEvent','_renderManagerService','wsSessionTicketUrl','_beforeCloseService','collabStatus.fetchMiss','ISnapshotServerService','redoState','SHEET_VIEWPORT_KEY','M0\x200H16V16H0z','DocSelectionManagerService','handleInsertCol','TRANSFORM_CHANGE_OBSERVABLE_TYPE','onCommandExecuted','Module','evenodd','on-line-single_clip0_910_349','LOCAL_CACHE_INTERVAL_KEY','currentColor','getParam','_labelPosition','_httpService','Error','_scene','getCoordByCell','1em','18gIHUot','FETCH_MISS','createInstance','unitId','textRanges','_localeService','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_cursorInfo$','transformMutationsWithChangeset','MemberService','_refreshCollabCursors','m1Prime','deepClone','_color','merge','sessionTicket','LOGIN_FAILED','Unknown\x20user','xlink:href','SessionStatus','gold400','_scheduleSaving','_updateSubUnitFromURLParams','getCurrentSelections','mutations','getStateCache','@univerjs/ui','mergeOverrideWithDependencies','_registerDependencies','MOBILE_HAS_BEEN_BOUND','_updateCollabCursors','editingUnit','_instanceService','purple300','toStringTag','prototype','_name','IUniverInstanceService','dispose$','location','debug','Rectangle','triggerDblclick','_cachedData','Tooltip','@univerjs/engine-render','_scheduleClearOtherTimer','current','Plugin','url(#on-line-single_clip0_910_349)','closePath','_render','_onRefRangeChange','2532CuBUFq','CONFLICT','getFocusedUnit','DependentOn','NO_OTHER_CLIENTS_EDITING','fillStyle','_handleHeartbeatEvent','restore','replace','_online','exhaustSavingTask','serializeRangeWithSheet','InsertRangeMoveDownCommandId','INVITE_CODE_REQUIRED','m2Prime','_unitStatus','_docTransformIMECacheService','startRow','_localStorageService','handleIRemoveRow','DisposableCollection','width','CLOSE_ROOM','top','replaceState','transformSelections','defs','mask','/run/','pushState','isTransformMutationFailure','memberID','disposeWithMe','getActiveRange','toDisposable','init','whenReady','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','IImageIoService','_initResize','unload','split','InsertColCommandId','deserializeRangeWithSheet','Failed','_ensureSubject','@univerjs/docs-ui','_init','collabStatus.conflict','subscribe','createElement','transformMutation','_backgroundColor','DeleteRangeMoveLeftCommandId','5DzDIeV','ColorKit','UPDATE_CURSOR','beginPath','_docSkeleton','BuiltInUIPart','Warning','range','fill','univer-offline','sheetID','CollaborationEvent','onlineStatusTitle','executionId','drawWith','_docSkeletonManagerService','YUUMI_NO_CUBOID_FOR_QUESTION','onPointerLeave$','#fff','univer-online','LICENSE_IMPORT_SIZE_EXCEEDED','1749099gXPsdz','entityInit$','CONNECTOR_DATA_TOO_LARGE','rgba(255,\x20255,\x20255,\x200.01)','href','RichTextEditingMutation','CollaborationStatus','getUndoRedoMutationParamsCache','IDocClipboardService','size','_colorIndex','_updateLocalCursor','connectInjector','call','_transformService','syncEditingCollabCursor','ALREADY_EXISTS','offline','getValue','_revisionService','toRgbString','length','distinctUntilChanged','Tools','override','onMouseMove','getUnhiddenWorksheets','TEXT_RANGE_LAYER_INDEX','getOwnPropertySymbols','show','tag','setItem','EMAIL_HAS_BEEN_BOUND','Optional','_status$','_dataLoaderService','getDocRanges','currentTheme$','map','code','runRefRangeMutations','symbol','getColor','UniverCollaborationClientUIPlugin','svg','roomMembers$','_lastPointer','unit','_collaborationUIEventService','isArray','ENSURE_SNAPSHOT_EXECUTION','_initStatusListener','DeleteRangeMoveUpCommandId','SetTextSelectionsOperation','fillText','newValue','_logService','actions','pipe','resize','height','_shapes','_transformPreviousActiveRange','DocStateChangeManagerService','univer-online-status','WebSocketService','_docStateChangeManagerService','NodePositionConvertToCursor','selection','isActive','add','getCurrentUnitForType','collabStatus.offline','setShapeProps','color','INVITE_CODE_ALREADY_BOUND','CollaborationSessionService','HEADER_MENU','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_refRangeService','LocaleService','has','on-line-single','function','_entityInit$','Disposable','ONLINE','@univerjs/drawing','getTypeOfUnitAdded$','lineTo','_setupBeforeClosingHandler','NOT_FOUND','PENDING','7100466dJDNvd','_cursors','displayName','1681356zMrArm','BehaviorSubject','throttleTime','some','IRemoteInstanceService','collab-client.tooltip.reconnect','_drawAnchor','RemoveColCommandId','jsxs','_cursor','body','indexOf','parse','_transformUndoRedoStack','icon','trim','set','APPLY_DUPLICATED','disableLocalCache','_messageService','650XmKvPx','_handleHover','ThemeService','filter','_drawRectRange','YUUMI_RATE_OVER_LIMIT','div','LICENSE_EXPORT_SIZE_EXCEEDED','collab-text-range-','_clearOtherTimers','registerRefRange','activeSheet$','getCurrentRevOfUnit','pluginName','_removeCollabCursors','useObservable','onlineStatus','runId','switchMap','RegularPolygon','storage','saveTaskMap','push','cursorInfo','sessionStatus$','assignAColorForMemberID','startsWith','UniverCollaborationClientPlugin','Injector','APPLY_NON_SEQUENTIAL_REVISION','font','setAlpha','COLORS','_draw','verdancy600','_urlService','INTERNAL_ERROR','_getSheetObject','getRangePointData','_range','RxDisposable','APPLY_REVISION_CONFILICT','contains','Subject','_heartbeatTimer','collaboration.single-unit.warning','OTHER_CLIENTS_EDITING','YUUMI_URL_COL_OUT_OF_RANGE','CollaborationStatusDisplay','clearTimeout','getMemberID','fromEventSubject','setConfig','skeleton','_textBubble','error','ISocketService'];_0x39f5=function(){return _0x5f1fa5;};return _0x39f5();}function ht(_0x308f44,_0x21cd22){const _0x335d76=_0x4af93f;let {radius:_0x153302,width:_0x2c306a,height:_0x84b1ed}=_0x21cd22;_0x153302=_0x153302!=null?_0x153302:0x0,_0x2c306a=_0x2c306a!=null?_0x2c306a:0x1e,_0x84b1ed=_0x84b1ed!=null?_0x84b1ed:0x1e;let _0x5d427d=0x0,_0x288cb0=0x0,_0x46eed0=0x0;_0x5d427d=_0x288cb0=_0x46eed0=Math[_0x335d76(0x28c)](_0x153302,_0x2c306a/0x2,_0x84b1ed/0x2),_0x308f44[_0x335d76(0xe5)](),_0x308f44[_0x335d76(0x1f6)](_0x5d427d,0x0),_0x308f44[_0x335d76(0x150)](_0x2c306a-_0x288cb0,0x0),_0x308f44[_0x335d76(0x225)](_0x2c306a-_0x288cb0,_0x288cb0,_0x288cb0,Math['PI']*0x3/0x2,0x0,!0x1),_0x308f44[_0x335d76(0x150)](_0x2c306a,_0x84b1ed-_0x46eed0),_0x308f44[_0x335d76(0x225)](_0x2c306a-_0x46eed0,_0x84b1ed-_0x46eed0,_0x46eed0,0x0,Math['PI']/0x2,!0x1),_0x308f44[_0x335d76(0x150)](0x0,_0x84b1ed),_0x308f44[_0x335d76(0x150)](0x0,_0x5d427d),_0x308f44[_0x335d76(0x225)](_0x5d427d,_0x5d427d,_0x5d427d,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x308f44[_0x335d76(0xa9)](),_0x21cd22[_0x335d76(0xea)]&&(_0x308f44[_0x335d76(0x287)](),_0x308f44['fillStyle']=_0x21cd22[_0x335d76(0xea)],_0x21cd22[_0x335d76(0x233)]===_0x335d76(0x6c)?_0x308f44['fill'](_0x335d76(0x6c)):_0x308f44[_0x335d76(0xea)](),_0x308f44[_0x335d76(0xb3)]());}class te extends p[_0x4af93f(0x1ae)]{constructor(_0x3ed0d5,_0x3e1216){const _0x143790=_0x4af93f;super(_0x3ed0d5,_0x3e1216),_(this,_0x143790(0x141)),_(this,'text'),(this[_0x143790(0x141)]=_0x3e1216==null?void 0x0:_0x3e1216[_0x143790(0x141)],this[_0x143790(0x1f5)]=_0x3e1216==null?void 0x0:_0x3e1216['text']);}static[_0x4af93f(0xf0)](_0x5d9a0f,_0x5cc082){const _0x39e2a1=_0x4af93f,{text:_0x25e612,color:_0x3a7465}=_0x5cc082;_0x5d9a0f['save'](),_0x5d9a0f[_0x39e2a1(0x189)]=_0x39e2a1(0x145);const _0x97ba1f=_0x5d9a0f[_0x39e2a1(0x1da)](_0x25e612)[_0x39e2a1(0xc1)],_0xf93b89=Math[_0x39e2a1(0x28c)](_0x97ba1f+0x2*re,De);ht(_0x5d9a0f,{'height':K,'radius':0x4,'width':_0xf93b89,'fill':_0x3a7465}),_0x5d9a0f[_0x39e2a1(0xb1)]='#FFF';const _0x5b71a6=re,_0x3da2d0=K-_t,_0xa02187=De-0x2*re;if(_0x97ba1f>_0xa02187){let _0x8ddb00='',_0x4dfefc=0x0;for(const _0x7492b2 of _0x25e612){const _0x32f888=_0x5d9a0f[_0x39e2a1(0x1da)](_0x7492b2)['width'];if(_0x4dfefc+_0x32f888<=_0xa02187-_0x5d9a0f[_0x39e2a1(0x1da)](_0x39e2a1(0x236))[_0x39e2a1(0xc1)])_0x8ddb00+=_0x7492b2,_0x4dfefc+=_0x32f888;else{_0x8ddb00+=_0x39e2a1(0x236);break;}}_0x5d9a0f[_0x39e2a1(0x12d)](_0x8ddb00,_0x5b71a6,_0x3da2d0);}else _0x5d9a0f[_0x39e2a1(0x12d)](_0x25e612,_0x5b71a6,_0x3da2d0);_0x5d9a0f[_0x39e2a1(0xb3)]();}[_0x4af93f(0x18c)](_0xee62ee){const _0x54e274=_0x4af93f;te[_0x54e274(0xf0)](_0xee62ee,this);}}const oe=_0x4af93f(0x1cd),ut=_0x4af93f(0x173),dt=_0x4af93f(0x241),k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x4af93f(0xfa);class Ue{constructor(_0x2e1e3d,_0x3ff82e,_0x183365,_0x5f174a){const _0x57a7a5=_0x4af93f;_(this,_0x57a7a5(0x134),[]),_(this,_0x57a7a5(0x1e5),null),_(this,_0x57a7a5(0x1a1),null),_(this,_0x57a7a5(0x1a8),null),_(this,_0x57a7a5(0x2a5),null),_(this,_0x57a7a5(0x2dd),null),(this[_0x57a7a5(0x160)]=_0x2e1e3d,this[_0x57a7a5(0x74)]=_0x3ff82e,this[_0x57a7a5(0xe6)]=_0x183365,this[_0x57a7a5(0x214)]=_0x5f174a,this[_0x57a7a5(0xaa)]());}set[_0x4af93f(0x285)](_0x554224){const _0x39d681=_0x4af93f;_0x554224?(this['_anchorDot']&&this[_0x39d681(0x1a8)]['hide'](),this[_0x39d681(0x1a1)]&&this['_textBubble'][_0x39d681(0x114)]()):(this[_0x39d681(0x1a8)]&&this[_0x39d681(0x1a8)][_0x39d681(0x114)](),this['_textBubble']&&this[_0x39d681(0x1a1)][_0x39d681(0x227)]());}[_0x4af93f(0x1a7)](){const _0x4bdb0b=_0x4af93f;for(const _0x518234 of this[_0x4bdb0b(0x134)])_0x518234[_0x4bdb0b(0x1a7)]();this[_0x4bdb0b(0x1a1)]&&this[_0x4bdb0b(0x1a1)][_0x4bdb0b(0x1a7)](),this[_0x4bdb0b(0x1a8)]&&this['_anchorDot'][_0x4bdb0b(0x1a7)](),this[_0x4bdb0b(0x1e5)]&&this[_0x4bdb0b(0x1e5)][_0x4bdb0b(0x1a7)](),this[_0x4bdb0b(0x2dd)]&&this[_0x4bdb0b(0x2dd)]();}[_0x4af93f(0xaa)](){const _0x3b73d6=_0x4af93f;var _0x2009b1;const {_docSkeleton:_0x9d23c5,_document:_0x103218}=this,{color:_0x36a93c,name:_0x32de6e,ranges:_0x24639c}=this[_0x3b73d6(0x160)],_0x558956=_0x103218['getOffsetConfig'](),{docsLeft:_0x6857ed,docsTop:_0x123279}=_0x558956,_0x574409=new b[(_0x3b73d6(0x13a))](_0x558956,_0x9d23c5);for(const {startOffset:_0x323094,endOffset:_0x407594,rangeType:_0x5053ff,segmentId:_0x274cb0,segmentPage:_0xff9d4e,collapsed:_0x179c4c,isActive:_0x3fde7f}of _0x24639c){const _0x56f39b=_0x9d23c5[_0x3b73d6(0x1f0)](_0x323094,!0x0,_0x274cb0,_0xff9d4e);let _0x2c9564=_0x9d23c5[_0x3b73d6(0x1f0)](_0x407594,!0x0,_0x274cb0,_0xff9d4e);if(_0x2c9564==null&&(_0x2c9564=_0x9d23c5[_0x3b73d6(0x1f0)](_0x407594-0x1,!0x1,_0x274cb0,_0xff9d4e)),_0x3fde7f){const {contentBoxPointGroup:_0x46adbb}=_0x574409['getRangePointData'](_0x2c9564,_0x2c9564);if(_0x46adbb[_0x3b73d6(0x10c)]===0x0)continue;this[_0x3b73d6(0x15d)](_0x36a93c,_0x46adbb,_0x6857ed,_0x123279,_0x32de6e),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x56f39b&&_0x2c9564){if(_0x5053ff===a[_0x3b73d6(0x26f)][_0x3b73d6(0x2c6)]){const _0x1ced5d=new b[(_0x3b73d6(0x1ab))](_0x558956,_0x9d23c5),{pointGroup:_0x3f9114}=(_0x2009b1=_0x1ced5d[_0x3b73d6(0x191)](_0x56f39b,_0x2c9564))!=null?_0x2009b1:{};if(_0x3f9114==null||_0x3f9114[_0x3b73d6(0x10c)]===0x0)continue;this[_0x3b73d6(0x16f)](_0x36a93c,_0x3f9114,_0x6857ed,_0x123279);}else{if(!_0x179c4c){const {borderBoxPointGroup:_0x511907}=_0x574409[_0x3b73d6(0x191)](_0x56f39b,_0x2c9564);if(_0x511907[_0x3b73d6(0x10c)]===0x0)continue;this[_0x3b73d6(0x1be)](_0x36a93c,_0x511907,_0x6857ed,_0x123279);}}}}}['_drawAnchor'](_0x5e9dab,_0x1ece79,_0x4a7b85,_0x3c56ba,_0x3c8e44){const _0x458b2e=_0x4af93f,_0x1ac6b7=this[_0x458b2e(0x264)](_0x1ece79),{left:_0x5a3c09,top:_0xa9c36c,height:_0x197b35}=_0x1ac6b7,_0x1dce35=this['_getScale'](),_0x21781d=St/_0x1dce35,_0x49dfb7=new p[(_0x458b2e(0x24b))](oe+a['Tools'][_0x458b2e(0x26a)](k),{'left':_0x5a3c09+_0x4a7b85-_0x21781d,'top':_0xa9c36c+_0x3c56ba,'height':_0x197b35,'width':ft,'fill':_0x5e9dab||p[_0x458b2e(0x121)](a['COLORS'][_0x458b2e(0x1ea)],0x0),'strokeWidth':_0x21781d,'stroke':It,'evented':!0x0});this[_0x458b2e(0x1e5)]=_0x49dfb7,this['_scene'][_0x458b2e(0x250)](_0x49dfb7,b[_0x458b2e(0x112)]);const _0x218baa=new p[(_0x458b2e(0x24b))](oe+a[_0x458b2e(0x10e)][_0x458b2e(0x26a)](k),{'left':_0x5a3c09+_0x4a7b85-_0x21781d,'top':_0xa9c36c+_0x3c56ba-ae/0x2,'height':ae,'width':ae,'fill':_0x5e9dab||p[_0x458b2e(0x121)](a[_0x458b2e(0x18b)][_0x458b2e(0x1ea)],0x0),'strokeWidth':0x0,'stroke':_0x5e9dab||p[_0x458b2e(0x121)](a[_0x458b2e(0x18b)][_0x458b2e(0x1ea)],0x0),'evented':!0x1});this[_0x458b2e(0x1a8)]=_0x218baa,this[_0x458b2e(0x74)][_0x458b2e(0x250)](_0x218baa,b[_0x458b2e(0x112)]);const _0x172530=new te(oe+a['Tools']['generateRandomId'](k),{'left':_0x5a3c09+_0x4a7b85-_0x21781d,'top':_0xa9c36c+_0x3c56ba-K,'text':_0x3c8e44,'color':_0x5e9dab});this[_0x458b2e(0x1a1)]=_0x172530,this['_scene'][_0x458b2e(0x250)](_0x172530,b[_0x458b2e(0x112)]),this[_0x458b2e(0x285)]=!0x1;}[_0x4af93f(0x16c)](){const _0x95862f=_0x4af93f,_0x7f6b7f=this[_0x95862f(0x1e5)]['onPointerEnter$'][_0x95862f(0x24f)](()=>{this['_hover']=!0x0;}),_0x304cab=this['_anchor'][_0x95862f(0xf3)][_0x95862f(0x24f)](()=>{const _0x572128=_0x95862f;this[_0x572128(0x2a5)]&&clearTimeout(this[_0x572128(0x2a5)]),this[_0x572128(0x2a5)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x5bd1f2=_0x95862f;_0x7f6b7f['unsubscribe'](),_0x304cab[_0x5bd1f2(0x1fe)]();};}['_drawTextRange'](_0x17286b,_0x1c9a65,_0x1a7cec,_0x28c7ba){const _0x28ecb1=_0x4af93f,_0x87cde3=new a[(_0x28ecb1(0xe3))](_0x17286b)[_0x28ecb1(0x18a)](0.2)[_0x28ecb1(0x10b)](),_0x41cbb0=new p[(_0x28ecb1(0x17e))](ut+a[_0x28ecb1(0x10e)][_0x28ecb1(0x26a)](k),{'pointsGroup':_0x1c9a65,'fill':_0x87cde3||p[_0x28ecb1(0x121)](a[_0x28ecb1(0x18b)][_0x28ecb1(0x1ea)],0.2),'left':_0x1a7cec,'top':_0x28c7ba,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x28ecb1(0x134)][_0x28ecb1(0x181)](_0x41cbb0),this['_scene'][_0x28ecb1(0x250)](_0x41cbb0,b[_0x28ecb1(0x112)]);}['_drawRectRange'](_0x3e0ac2,_0x2f48c1,_0x45c383,_0x2ea498){const _0x4d6a93=_0x4af93f,_0x111edb=new a[(_0x4d6a93(0xe3))](_0x3e0ac2)[_0x4d6a93(0x18a)](0.2)[_0x4d6a93(0x10b)](),_0x5b7d21=new p[(_0x4d6a93(0x17e))](dt+a[_0x4d6a93(0x10e)][_0x4d6a93(0x26a)](k),{'pointsGroup':_0x2f48c1,'fill':_0x111edb||p[_0x4d6a93(0x121)](a[_0x4d6a93(0x18b)]['black'],0.2),'left':_0x45c383,'top':_0x2ea498,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x5b7d21),this[_0x4d6a93(0x74)]['addObject'](_0x5b7d21,b[_0x4d6a93(0x112)]);}[_0x4af93f(0x264)](_0x144ecc){const _0x141738=_0x144ecc[0x0],_0x3ebcce=_0x141738[0x0],_0x934afb=_0x141738[0x2],{x:_0x33e118,y:_0x25761e}=_0x3ebcce,{x:_0xb85595,y:_0x58e226}=_0x934afb;return{'left':_0x33e118,'top':_0x25761e,'width':_0xb85595-_0x33e118,'height':_0x58e226-_0x25761e};}[_0x4af93f(0x1a5)](){const _0x4b2be8=_0x4af93f,{scaleX:_0x5a3075,scaleY:_0x2cbaf7}=this['_scene'][_0x4b2be8(0x282)]();return Math[_0x4b2be8(0x20b)](_0x5a3075,_0x2cbaf7);}}var vt=Object[_0x4af93f(0x267)],gt=(_0x1f0b36,_0x37d4ff,_0x1f50ee,_0x54ed17)=>{const _0x18115d=_0x4af93f;for(var _0x4e9382=_0x54ed17>0x1?void 0x0:_0x54ed17?vt(_0x37d4ff,_0x1f50ee):_0x37d4ff,_0x57f791=_0x1f0b36[_0x18115d(0x10c)]-0x1,_0xb02d1e;_0x57f791>=0x0;_0x57f791--)(_0xb02d1e=_0x1f0b36[_0x57f791])&&(_0x4e9382=_0xb02d1e(_0x4e9382)||_0x4e9382);return _0x4e9382;},V=(_0xb9e00d,_0xa1599)=>(_0xdd2201,_0x5bff9a)=>_0xa1599(_0xdd2201,_0x5bff9a,_0xb9e00d);let ve=class extends a['RxDisposable']{constructor(_0x34e547,_0x353c8b,_0x1400ef,_0x22c28b,_0x2d6241){const _0x4c4ba4=_0x4af93f;super(),_(this,_0x4c4ba4(0x257),[]),_(this,_0x4c4ba4(0x155),[]),(this['_context']=_0x34e547,this[_0x4c4ba4(0xf1)]=_0x353c8b,this[_0x4c4ba4(0x249)]=_0x1400ef,this[_0x4c4ba4(0x22f)]=_0x22c28b,this[_0x4c4ba4(0x272)]=_0x2d6241,this['_init']());}[_0x4af93f(0xdb)](){const _0x4dfdd3=_0x4af93f,_0x42a82a=this[_0x4dfdd3(0x24d)]['unitId'],_0x506c90=this[_0x4dfdd3(0xf1)];this[_0x4dfdd3(0xcc)](d[_0x4dfdd3(0x1d2)]([this[_0x4dfdd3(0x249)][_0x4dfdd3(0x2aa)](_0x42a82a),this['_themeService'][_0x4dfdd3(0x11c)]])[_0x4dfdd3(0x131)]($[_0x4dfdd3(0x11d)](([_0x517153,_0x10ac60])=>({'skeleton':_0x506c90[_0x4dfdd3(0x217)](),'cursors':[..._0x517153[_0x4dfdd3(0x2b7)]()]['flatMap'](_0x105fee=>({..._0x105fee,'color':_0x10ac60[_0x105fee['color']]}))})))[_0x4dfdd3(0xdd)](_0xc491fc=>{const _0x2126a9=_0x4dfdd3;if(this['_removeCollabCursors'](),_0xc491fc){const {skeleton:_0x5d4762,cursors:_0x14a693}=_0xc491fc;this[_0x2126a9(0x95)](_0x5d4762,_0x14a693);}})),this['_initResize'](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x21f9a8,_0x205647){const _0x89744c=_0x4af93f,{scene:_0x2f5ea3,mainComponent:_0x33eb7e}=this['_context'],_0xf39247=_0x205647[_0x89744c(0x11d)](_0x165bf9=>new Ue(_0x165bf9,_0x2f5ea3,_0x21f9a8,_0x33eb7e));this[_0x89744c(0x257)]=_0xf39247,this['_cursors']=_0x205647;}[_0x4af93f(0x81)](){const _0x45968a=_0x4af93f;this[_0x45968a(0x179)]();const {scene:_0x507cb9,mainComponent:_0x456c2e}=this[_0x45968a(0x24d)],_0x419ae2=this[_0x45968a(0xf1)][_0x45968a(0x217)](),_0x36ca86=this[_0x45968a(0x155)][_0x45968a(0x11d)](_0x7e0f58=>new Ue(_0x7e0f58,_0x507cb9,_0x419ae2,_0x456c2e));this[_0x45968a(0x257)]=_0x36ca86;}[_0x4af93f(0x179)](){const _0x1a962e=_0x4af93f;this[_0x1a962e(0x257)][_0x1a962e(0x2c9)](_0x358263=>_0x358263[_0x1a962e(0x1a7)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x36e791=_0x4af93f,_0x261f48=[b[_0x36e791(0x1c5)]['id']];this['disposeWithMe'](this[_0x36e791(0x22f)][_0x36e791(0x6a)](_0x59c2ff=>{const _0x2a457d=_0x36e791;_0x261f48['includes'](_0x59c2ff['id'])&&_0x59c2ff['params'][_0x2a457d(0x7a)]===this[_0x2a457d(0x24d)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x4af93f(0xd3)](){const _0x2e3a34=_0x4af93f;this[_0x2e3a34(0xcc)](a[_0x2e3a34(0x19e)](this[_0x2e3a34(0x24d)][_0x2e3a34(0x21f)][_0x2e3a34(0x2bd)])[_0x2e3a34(0x131)]($[_0x2e3a34(0x16e)](_0x39bdd9=>_0x39bdd9['type']===p[_0x2e3a34(0x69)][_0x2e3a34(0x132)]),$[_0x2e3a34(0x159)](0x10))[_0x2e3a34(0xdd)](()=>{const _0x400cd6=_0x2e3a34;this[_0x400cd6(0x81)]();}));}};ve=gt([V(0x1,a[_0x4af93f(0x2a1)](Y['DocSkeletonManagerService'])),V(0x2,a[_0x4af93f(0x2a1)](x)),V(0x3,a[_0x4af93f(0x1b7)]),V(0x4,a[_0x4af93f(0x2a1)](a[_0x4af93f(0x16d)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p['Shape']{constructor(_0x9fd040,_0xa60807){const _0x107c86=_0x4af93f;super(_0x9fd040,_0xa60807),_(this,'_color'),_(this,_0x107c86(0x29d),!0x1),_(this,_0x107c86(0x192)),_(this,'_name',''),_(this,_0x107c86(0x71),_0x107c86(0xc3)),_(this,'_backgroundColor'),(_0xa60807&&this[_0x107c86(0x140)](_0xa60807),this[_0x107c86(0x242)]['subscribeEvent'](()=>this[_0x107c86(0x140)]({'hovered':!0x0})),this[_0x107c86(0xf3)][_0x107c86(0x24f)](()=>this[_0x107c86(0x140)]({'hovered':!0x1})));}[_0x4af93f(0x140)](_0x5e5f41){const _0x1fe8df=_0x4af93f;var _0x5f2288,_0x3145a1,_0x3c8a2f,_0x4f18a1,_0x1132ec,_0x36a1af;this['_color']=(_0x5f2288=_0x5e5f41['color'])!=null?_0x5f2288:this[_0x1fe8df(0x84)],this[_0x1fe8df(0x29d)]=(_0x3145a1=_0x5e5f41[_0x1fe8df(0x248)])!=null?_0x3145a1:this[_0x1fe8df(0x29d)],this[_0x1fe8df(0x192)]=(_0x3c8a2f=_0x5e5f41[_0x1fe8df(0xe9)])!=null?_0x3c8a2f:this[_0x1fe8df(0x192)],this[_0x1fe8df(0x9b)]=(_0x4f18a1=_0x5e5f41[_0x1fe8df(0x209)])!=null?_0x4f18a1:this[_0x1fe8df(0x9b)],this[_0x1fe8df(0x71)]=(_0x1132ec=_0x5e5f41['labelPosition'])!=null?_0x1132ec:this[_0x1fe8df(0x71)],this[_0x1fe8df(0xe0)]=(_0x36a1af=_0x5e5f41[_0x1fe8df(0x1d9)])!=null?_0x36a1af:this[_0x1fe8df(0xe0)],this['transformByState']({'width':_0x5e5f41[_0x1fe8df(0xc1)],'height':_0x5e5f41[_0x1fe8df(0x133)]});}[_0x4af93f(0x110)](_0x1c010e){const _0x1570ee=_0x4af93f,{row:_0x190b8a,column:_0x159cfb}=_0x1c010e;if(_0x190b8a>=this[_0x1570ee(0x192)][_0x1570ee(0xbd)]&&_0x190b8a<=this[_0x1570ee(0x192)][_0x1570ee(0x1c4)]&&_0x159cfb>=this[_0x1570ee(0x192)]['startColumn']&&_0x159cfb<=this['_range']['endColumn']){this[_0x1570ee(0x140)]({'hovered':!0x0});return;}this[_0x1570ee(0x140)]({'hovered':!0x1});}[_0x4af93f(0xa1)](_0x58cced){return!0x1;}['_draw'](_0xd3d7a7){const _0x4f00b9=_0x4af93f;p[_0x4f00b9(0x24b)]['drawWith'](_0xd3d7a7,{'width':this[_0x4f00b9(0xc1)],'height':this[_0x4f00b9(0x133)],'strokeWidth':Ct,'stroke':this[_0x4f00b9(0x84)],'evented':!0x1,'fill':this[_0x4f00b9(0xe0)]}),this[_0x4f00b9(0x29d)]&&(_0xd3d7a7[_0x4f00b9(0x287)](),_0xd3d7a7[_0x4f00b9(0x235)](0x1,0x0,0x0,0x1,this[_0x4f00b9(0xc1)],this[_0x4f00b9(0x71)]===_0x4f00b9(0x221)?0x0:-0x14),te['drawWith'](_0xd3d7a7,{'text':this[_0x4f00b9(0x9b)],'color':this[_0x4f00b9(0x84)]}),_0xd3d7a7[_0x4f00b9(0xb3)]());}}var pt=Object['getOwnPropertyDescriptor'],bt=(_0x2e4076,_0x13e7fc,_0x32d5aa,_0x34ac2b)=>{const _0x5beb2a=_0x4af93f;for(var _0x1ab66e=_0x34ac2b>0x1?void 0x0:_0x34ac2b?pt(_0x13e7fc,_0x32d5aa):_0x13e7fc,_0xa40737=_0x2e4076[_0x5beb2a(0x10c)]-0x1,_0x3fca9d;_0xa40737>=0x0;_0xa40737--)(_0x3fca9d=_0x2e4076[_0xa40737])&&(_0x1ab66e=_0x3fca9d(_0x1ab66e)||_0x1ab66e);return _0x1ab66e;},ce=(_0x46b599,_0x462d56)=>(_0x407f75,_0x558982)=>_0x462d56(_0x407f75,_0x558982,_0x46b599);const Et=0x1389;let ge=class extends a['RxDisposable']{constructor(_0x535aa8,_0x259175,_0x126eaf,_0x134592){const _0xab1051=_0x4af93f;super(),_(this,_0xab1051(0x155),new Set()),_(this,'_lastPointer',null),(this[_0xab1051(0x24d)]=_0x535aa8,this[_0xab1051(0x1f8)]=_0x259175,this[_0xab1051(0x249)]=_0x126eaf,this[_0xab1051(0x272)]=_0x134592,this['_init']());}['_init'](){const _0x5e5fc9=_0x4af93f;this['_sheetSkeletonManagerService'][_0x5e5fc9(0x210)][_0x5e5fc9(0x131)]($[_0x5e5fc9(0x24c)](this['dispose$']),$[_0x5e5fc9(0x17d)](_0x70bd9b=>{const _0x1b268c=_0x5e5fc9;if(_0x70bd9b){const _0x12751f=_0x70bd9b['sheetId'];return d[_0x1b268c(0x1d2)](this[_0x1b268c(0x249)][_0x1b268c(0x2aa)](this[_0x1b268c(0x24d)][_0x1b268c(0x7a)]),this[_0x1b268c(0x272)]['currentTheme$'])[_0x1b268c(0x131)]($[_0x1b268c(0x11d)](([_0x2ca323,_0x3dd9d7])=>{const _0x2ba5b6=new Map();return _0x2ca323['forEach']((_0x2b5926,_0x46ff1d)=>{const _0x12f657=_0x11d6;if(_0x2b5926[_0x12f657(0xec)]===_0x12751f){const _0x2a4ae8={..._0x2b5926};_0x2a4ae8[_0x12f657(0x141)]=_0x3dd9d7[_0x2b5926[_0x12f657(0x141)]],_0x2ba5b6[_0x12f657(0x167)](_0x46ff1d,_0x2a4ae8);}}),{'skeleton':_0x70bd9b,'cursors':_0x2ba5b6};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x5e5fc9(0xdd)](({skeleton:_0x577c47,cursors:_0x1c7c2c})=>{const _0x34d396=_0x5e5fc9;this[_0x34d396(0x179)](),_0x577c47&&this[_0x34d396(0x95)](_0x577c47,_0x1c7c2c);}),this['_sheetSkeletonManagerService'][_0x5e5fc9(0x210)][_0x5e5fc9(0xdd)](_0x3d03eb=>{const _0x14296a=_0x5e5fc9;if(_0x3d03eb==null)return;const {skeleton:_0x2004d3}=_0x3d03eb,{scene:_0x16247}=this['_context'];_0x16247['onPointerMove$']['subscribeEvent'](a[_0x14296a(0x1ec)](_0x3b4771=>{const _0x1aa47a=_0x14296a;var _0x35edf1,_0x4d640e;const {offsetX:_0x5d9aa3,offsetY:_0x203be7}=_0x3b4771,{x:_0x5da38a,y:_0x96d127}=_0x16247['getRelativeToViewportCoord'](p[_0x1aa47a(0x246)]['FromArray']([_0x5d9aa3,_0x203be7])),{scaleX:_0x4548af,scaleY:_0x404daf}=_0x16247[_0x1aa47a(0x282)](),_0x4a03a0=_0x16247[_0x1aa47a(0x2b5)](p[_0x1aa47a(0x2e7)]['VIEW_MAIN']),_0x49c984=_0x16247['getVpScrollXYInfoByPosToVp'](p[_0x1aa47a(0x246)][_0x1aa47a(0x25c)]([_0x5da38a,_0x96d127]),_0x4a03a0),_0x5d5ef0=_0x2004d3[_0x1aa47a(0x2c8)](_0x5d9aa3,_0x203be7,_0x4548af,_0x404daf,_0x49c984);((_0x35edf1=this[_0x1aa47a(0x125)])==null?void 0x0:_0x35edf1[_0x1aa47a(0x25f)])===_0x5d5ef0[_0x1aa47a(0x25f)]&&((_0x4d640e=this['_lastPointer'])==null?void 0x0:_0x4d640e['row'])===_0x5d5ef0['row']||this[_0x1aa47a(0x155)][_0x1aa47a(0x2c9)](_0x26bb83=>{_0x26bb83['onMouseMove'](_0x5d5ef0);});},0x64));});}[_0x4af93f(0x95)](_0x1c074d,_0x4aab79){const _0x137d78=_0x4af93f;var _0x3c0fd6;const _0x4c6121=(_0x3c0fd6=this['_sheetSkeletonManagerService'][_0x137d78(0x2cb)]())==null?void 0x0:_0x3c0fd6[_0x137d78(0x1a0)];if(!_0x4c6121)return;const _0x5a8f63=this[_0x137d78(0x190)]();if(!_0x5a8f63)return;this[_0x137d78(0x155)][_0x137d78(0x2c9)](_0x5b5234=>{_0x5b5234['makeDirty']();});const {scene:_0x1422d6}=_0x5a8f63,_0x430ba7=Tt(Array[_0x137d78(0x1eb)](_0x4aab79['values']()))['map'](_0x4e1730=>{const _0x4f1e90=_0x137d78,{color:_0x3f1f9b,range:_0x5770ae,name:_0x46b790,selection:_0x3a6222,sheetID:_0x11634c}=_0x4e1730,{startColumn:_0x4e77be,startRow:_0x2d53d6,endColumn:_0x8f7d2,endRow:_0x5a9e62}=_0x5770ae,_0x1b1be1=G[_0x4f1e90(0x75)](_0x2d53d6,_0x4e77be,_0x1422d6,_0x4c6121),_0x2e5d2e=G[_0x4f1e90(0x75)](_0x5a9e62,_0x8f7d2,_0x1422d6,_0x4c6121),{columnHeaderHeightAndMarginTop:_0x5d549e}=_0x4c6121,{startX:_0x333a07,startY:_0x1336ef}=_0x1b1be1,{endX:_0x5104da,endY:_0x2d07c1}=_0x2e5d2e,_0x21c768=_0x5104da-_0x333a07,_0x1f1595=_0x2d07c1-_0x1336ef,_0x55cb3e={'labelPosition':_0x1336ef-_0x5d549e>=K?'top':_0x4f1e90(0x221),'sheetID':_0x11634c,'range':_0x5770ae,'color':_0x3f1f9b,'name':_0x46b790,'selection':_0x3a6222,'left':_0x333a07,'top':_0x1336ef,'width':_0x21c768,'height':_0x1f1595,'evented':!0x1,'zIndex':Et};return new Ae(_0x46b790,_0x55cb3e);});_0x1422d6['addObjects'](_0x430ba7,mt),this['_cursors']=new Set(_0x430ba7);}[_0x4af93f(0x179)](){const _0x4735d1=_0x4af93f;var _0x22a577;(_0x22a577=this['_cursors'])==null||_0x22a577[_0x4735d1(0x2c9)](_0x1b0641=>_0x1b0641[_0x4735d1(0x1a7)]());}[_0x4af93f(0x190)](){const _0x3d6bf1=_0x4af93f;return G['getSheetObject'](this[_0x3d6bf1(0x24d)][_0x3d6bf1(0x126)],this[_0x3d6bf1(0x24d)]);}};ge=bt([ce(0x1,a[_0x4af93f(0x2a1)](G['SheetSkeletonManagerService'])),ce(0x2,a[_0x4af93f(0x2a1)](x)),ce(0x3,a[_0x4af93f(0x2a1)](a[_0x4af93f(0x16d)]))],ge);function Tt(_0x22732e){const _0x54975f=_0x4af93f,_0x55945f=new Map();return _0x22732e['forEach'](_0x50b690=>{const _0x4448ed=_0x11d6;if(_0x55945f[_0x4448ed(0x148)](_0x50b690[_0x4448ed(0x13b)])){const _0x3ab356=_0x55945f[_0x4448ed(0x27f)](_0x50b690['selection']);_0x3ab356[_0x4448ed(0x209)]+=',\x20'+_0x50b690[_0x4448ed(0x209)];}else _0x55945f['set'](_0x50b690[_0x4448ed(0x13b)],_0x50b690);}),Array[_0x54975f(0x1eb)](_0x55945f[_0x54975f(0x2b7)]());}var E=function(){const _0x42b442=_0x4af93f;return E=Object[_0x42b442(0x22b)]||function(_0x5c1615){const _0xb4d698=_0x42b442;for(var _0x378623,_0x4ea451=0x1,_0x1b7c15=arguments[_0xb4d698(0x10c)];_0x4ea451<_0x1b7c15;_0x4ea451++){_0x378623=arguments[_0x4ea451];for(var _0x411d30 in _0x378623)Object[_0xb4d698(0x9a)][_0xb4d698(0x23d)][_0xb4d698(0x104)](_0x378623,_0x411d30)&&(_0x5c1615[_0x411d30]=_0x378623[_0x411d30]);}return _0x5c1615;},E[_0x42b442(0x2a8)](this,arguments);},Ot=function(_0x4c6146,_0x1651e5){const _0x257a5c=_0x4af93f;var _0x19c1c4={};for(var _0x4e9386 in _0x4c6146)Object[_0x257a5c(0x9a)]['hasOwnProperty'][_0x257a5c(0x104)](_0x4c6146,_0x4e9386)&&_0x1651e5[_0x257a5c(0x162)](_0x4e9386)<0x0&&(_0x19c1c4[_0x4e9386]=_0x4c6146[_0x4e9386]);if(_0x4c6146!=null&&typeof Object[_0x257a5c(0x113)]==_0x257a5c(0x14a)){for(var _0x4ba9ec=0x0,_0x4e9386=Object[_0x257a5c(0x113)](_0x4c6146);_0x4ba9ec<_0x4e9386[_0x257a5c(0x10c)];_0x4ba9ec++)_0x1651e5[_0x257a5c(0x162)](_0x4e9386[_0x4ba9ec])<0x0&&Object['prototype'][_0x257a5c(0x1ce)][_0x257a5c(0x104)](_0x4c6146,_0x4e9386[_0x4ba9ec])&&(_0x19c1c4[_0x4e9386[_0x4ba9ec]]=_0x4c6146[_0x4e9386[_0x4ba9ec]]);}return _0x19c1c4;},be=M[_0x4af93f(0x1af)](function(_0x4d70a7,_0xafe3b0){const _0x4032b2=_0x4af93f;var _0x2ae738=_0x4d70a7[_0x4032b2(0x165)],_0x372b40=_0x4d70a7['id'],_0x5e1a03=_0x4d70a7['className'],_0x2f193b=_0x4d70a7[_0x4032b2(0x1f2)],_0x56a7f9=Ot(_0x4d70a7,[_0x4032b2(0x165),'id','className',_0x4032b2(0x1f2)]),_0x229c40='univerjs-icon\x20univerjs-icon-'[_0x4032b2(0x2cf)](_0x372b40,'\x20')[_0x4032b2(0x2cf)](_0x5e1a03||'')[_0x4032b2(0x166)](),_0x498dfc=M[_0x4032b2(0x2af)]('_'[_0x4032b2(0x2cf)](Ut()));return ye(_0x2ae738,''[_0x4032b2(0x2cf)](_0x372b40),{'defIds':_0x2ae738[_0x4032b2(0x25a)],'idSuffix':_0x498dfc[_0x4032b2(0xa6)]},E({'ref':_0xafe3b0,'className':_0x229c40},_0x56a7f9),_0x2f193b);});function ye(_0x1f6c1b,_0x571a87,_0x4f5534,_0x27ce32,_0xeda9d7){const _0x21e6f4=_0x4af93f;return M[_0x21e6f4(0xde)](_0x1f6c1b[_0x21e6f4(0x115)],E(E({'key':_0x571a87},Rt(_0x1f6c1b,_0x4f5534,_0xeda9d7)),_0x27ce32),(Dt(_0x1f6c1b,_0x4f5534)[_0x21e6f4(0x1fc)]||[])['map'](function(_0x402c1d,_0x4b098f){const _0x308950=_0x21e6f4;return ye(_0x402c1d,''[_0x308950(0x2cf)](_0x571a87,'-')[_0x308950(0x2cf)](_0x1f6c1b['tag'],'-')[_0x308950(0x2cf)](_0x4b098f),_0x4f5534,void 0x0,_0xeda9d7);}));}function Rt(_0x3525d8,_0x3e1765,_0x4a29e6){const _0x488d47=_0x4af93f;var _0x330fd2=E({},_0x3525d8[_0x488d47(0x2de)]);_0x4a29e6!=null&&_0x4a29e6[_0x488d47(0x1bf)]&&_0x330fd2[_0x488d47(0xea)]===_0x488d47(0x1bf)&&(_0x330fd2['fill']=_0x4a29e6[_0x488d47(0x1bf)]),_0x3525d8[_0x488d47(0x115)]===_0x488d47(0xc7)&&_0x330fd2['id']&&(_0x330fd2['id']=_0x330fd2['id']+_0x3e1765['idSuffix']),Object[_0x488d47(0x269)](_0x330fd2)[_0x488d47(0x2c9)](function(_0x3aa4eb){const _0x155889=_0x488d47;var _0x3378e0=_0x3aa4eb[0x0],_0x54a2d8=_0x3aa4eb[0x1];_0x3378e0===_0x155889(0xc7)&&typeof _0x54a2d8=='string'&&(_0x330fd2[_0x3378e0]=_0x54a2d8[_0x155889(0xb4)](/url\(#(.*)\)/,_0x155889(0x1e8)['concat'](_0x3e1765['idSuffix'],')')));});var _0x56810d=_0x3e1765[_0x488d47(0x25a)];return!_0x56810d||_0x56810d[_0x488d47(0x10c)]===0x0||(_0x3525d8['tag']==='use'&&_0x330fd2[_0x488d47(0x89)]&&(_0x330fd2['xlink:href']=_0x330fd2[_0x488d47(0x89)]+_0x3e1765['idSuffix']),Object[_0x488d47(0x269)](_0x330fd2)[_0x488d47(0x2c9)](function(_0x5e0cda){const _0x21b11d=_0x488d47;var _0x3a48e2=_0x5e0cda[0x0],_0x16bb6e=_0x5e0cda[0x1];typeof _0x16bb6e==_0x21b11d(0x26b)&&(_0x330fd2[_0x3a48e2]=_0x16bb6e[_0x21b11d(0xb4)](/url\(#(.*)\)/,_0x21b11d(0x1e8)[_0x21b11d(0x2cf)](_0x3e1765['idSuffix'],')')));})),_0x330fd2;}function Dt(_0x1f952b,_0x5244c3){const _0x39c411=_0x4af93f;var _0x2a25b1,_0xeb9ba8=_0x5244c3[_0x39c411(0x25a)];return!_0xeb9ba8||_0xeb9ba8[_0x39c411(0x10c)]===0x0?_0x1f952b:_0x1f952b[_0x39c411(0x115)]===_0x39c411(0xc6)&&(!((_0x2a25b1=_0x1f952b[_0x39c411(0x1fc)])===null||_0x2a25b1===void 0x0)&&_0x2a25b1['length'])?E(E({},_0x1f952b),{'children':_0x1f952b[_0x39c411(0x1fc)][_0x39c411(0x11d)](function(_0x309529){const _0xc22064=_0x39c411;return typeof _0x309529[_0xc22064(0x2de)]['id']==_0xc22064(0x26b)&&_0xeb9ba8&&_0xeb9ba8[_0xc22064(0x162)](_0x309529['attrs']['id'])>-0x1?E(E({},_0x309529),{'attrs':E(E({},_0x309529[_0xc22064(0x2de)]),{'id':_0x309529[_0xc22064(0x2de)]['id']+_0x5244c3[_0xc22064(0x255)]})}):_0x309529;})}):_0x1f952b;}function Ut(){const _0x1fab11=_0x4af93f;return Math['random']()[_0x1fab11(0x1e7)](0x24)[_0x1fab11(0x218)](0x2,0x8);}be[_0x4af93f(0x156)]=_0x4af93f(0x2bf);var Nt={'tag':_0x4af93f(0x123),'attrs':{'fill':_0x4af93f(0x284),'viewBox':_0x4af93f(0x1cb),'width':_0x4af93f(0x76),'height':_0x4af93f(0x76)},'children':[{'tag':'g','attrs':{'clipPath':_0x4af93f(0x2b1)},'children':[{'tag':'path','attrs':{'stroke':_0x4af93f(0x6f),'d':'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','strokeLinecap':'round','strokeLinejoin':_0x4af93f(0x1e2),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4af93f(0x240),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x4af93f(0xf4),'d':_0x4af93f(0x66)}}]}]}],'defIds':['off-line-single_clip0_910_343']},$e=M[_0x4af93f(0x1af)](function(_0xc86c47,_0x551dea){const _0x2b24df=_0x4af93f;return M['createElement'](be,Object[_0x2b24df(0x22b)]({},_0xc86c47,{'id':_0x2b24df(0x2a3),'ref':_0x551dea,'icon':Nt}));});$e['displayName']=_0x4af93f(0x1d6);var Mt={'tag':'svg','attrs':{'fill':_0x4af93f(0x284),'viewBox':_0x4af93f(0x1d1),'width':'1em','height':_0x4af93f(0x76)},'children':[{'tag':'g','attrs':{'clipPath':_0x4af93f(0xa8)},'children':[{'tag':'path','attrs':{'stroke':_0x4af93f(0x6f),'d':_0x4af93f(0x1bd),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4af93f(0x240),'attrs':{'id':_0x4af93f(0x6d)},'children':[{'tag':_0x4af93f(0x1fb),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},xe=M['forwardRef'](function(_0x49f0b0,_0x3c1cfc){const _0x53acbd=_0x4af93f;return M['createElement'](be,Object['assign']({},_0x49f0b0,{'id':_0x53acbd(0x149),'ref':_0x3c1cfc,'icon':Mt}));});xe[_0x4af93f(0x156)]='OnLineSingle';const Lt=_0x4af93f(0x20f),Pt='univer-online-status-title',wt=_0x4af93f(0x137),At=_0x4af93f(0xf5),yt=_0x4af93f(0xeb),H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x222636){const _0x2755ed=_0x4af93f;switch(_0x222636){case u[_0x2755ed(0xfd)][_0x2755ed(0x253)]:return _0x2755ed(0x13f);case u[_0x2755ed(0xfd)][_0x2755ed(0xad)]:return _0x2755ed(0xdc);case u['CollaborationStatus'][_0x2755ed(0x78)]:return _0x2755ed(0x2e4);case u[_0x2755ed(0xfd)][_0x2755ed(0x288)]:return'collabStatus.notCollab';case u['CollaborationStatus'][_0x2755ed(0x1ee)]:case u[_0x2755ed(0xfd)][_0x2755ed(0x24a)]:return _0x2755ed(0x2a2);case u['CollaborationStatus'][_0x2755ed(0x1f4)]:case u[_0x2755ed(0xfd)][_0x2755ed(0x153)]:return _0x2755ed(0x202);}}function je(_0x80f1f5){const _0x4df84b=_0x4af93f,{status$:_0x3f7842}=_0x80f1f5,_0x2310bc=O[_0x4df84b(0x17a)](_0x3f7842,u[_0x4df84b(0xfd)][_0x4df84b(0x288)]),_0x5d6681=O['useDependency'](a['LocaleService']),_0x5318d3=O['useDependency'](u['CollaborationSessionService']),_0x294bb1=_0x2310bc!==u[_0x4df84b(0xfd)][_0x4df84b(0x253)],_0x31b14b=_0x5d6681['t']($t(_0x2310bc)),_0x3a4b10=T['clsx'](H[_0x4df84b(0x17b)],{[H[_0x4df84b(0x23f)]]:_0x294bb1,[H[_0x4df84b(0x108)]]:!_0x294bb1}),_0x196b68=_0x294bb1?P[_0x4df84b(0x1f1)](xe,{}):P[_0x4df84b(0x1f1)]($e,{}),_0x4d8ddf=M['useCallback'](()=>{_0x294bb1||_0x5318d3['reconnect']();},[_0x294bb1,_0x5318d3]);function _0x17e0cf(){const _0x1e8702=_0x4df84b;return P[_0x1e8702(0x15f)](_0x1e8702(0x171),{'className':T[_0x1e8702(0x27b)](_0x3a4b10,_0x1e8702(0x26d)),'onClick':_0x4d8ddf,'children':[P['jsx']('div',{'className':H['onlineStatusIcon'],'children':_0x196b68}),P[_0x1e8702(0x1f1)](_0x1e8702(0x171),{'className':H[_0x1e8702(0xee)],'children':_0x31b14b})]});}return _0x294bb1?_0x17e0cf():P[_0x4df84b(0x1f1)](T[_0x4df84b(0xa3)],{'title':_0x5d6681['t'](_0x4df84b(0x15c)),'children':_0x17e0cf()});}var xt=Object['getOwnPropertyDescriptor'],jt=(_0x36a0fe,_0xcce35a,_0x5e992a,_0xf5ecd6)=>{const _0x2da536=_0x4af93f;for(var _0x2dd06d=_0xf5ecd6>0x1?void 0x0:_0xf5ecd6?xt(_0xcce35a,_0x5e992a):_0xcce35a,_0xb9958a=_0x36a0fe[_0x2da536(0x10c)]-0x1,_0xc3b217;_0xb9958a>=0x0;_0xb9958a--)(_0xc3b217=_0x36a0fe[_0xb9958a])&&(_0x2dd06d=_0xc3b217(_0x2dd06d)||_0x2dd06d);return _0x2dd06d;},X=(_0x4c39b7,_0x34fa52)=>(_0x318ba6,_0x4f383f)=>_0x34fa52(_0x318ba6,_0x4f383f,_0x4c39b7);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x4af93f(0x14c)]{constructor(_0x12f656,_0x4bc288,_0x5f5b40,_0x567f37){const _0x416a42=_0x4af93f;super(),_(this,_0x416a42(0x119),new d[(_0x416a42(0x158))](u[_0x416a42(0xfd)][_0x416a42(0x288)])),(this[_0x416a42(0x2c1)]=_0x12f656,this['_injector']=_0x4bc288,this[_0x416a42(0x2d9)]=_0x5f5b40,this[_0x416a42(0x1ad)]=_0x567f37,this['_initStatusComponent'](),this[_0x416a42(0x12a)]());}[_0x4af93f(0x12a)](){const _0xf0b8d3=_0x4af93f;this[_0xf0b8d3(0xcc)](this['_univerInstanceService']['focused$'][_0xf0b8d3(0x131)](d[_0xf0b8d3(0x17d)](()=>{const _0x5930c3=_0xf0b8d3,_0x4ee4f1=this[_0x5930c3(0x2c1)][_0x5930c3(0xae)]();return _0x4ee4f1?this[_0x5930c3(0x2d9)][_0x5930c3(0x2bc)](_0x4ee4f1[_0x5930c3(0x1c7)]()):d['of'](null);}),d[_0xf0b8d3(0x17d)](_0x4d3e63=>_0x4d3e63?_0x4d3e63[_0xf0b8d3(0x21a)]:d['of'](u[_0xf0b8d3(0xfd)][_0xf0b8d3(0x288)])))[_0xf0b8d3(0xdd)](_0x2de420=>{const _0x58bd69=_0xf0b8d3;this[_0x58bd69(0x119)][_0x58bd69(0x2c4)](_0x2de420);}));}[_0x4af93f(0x2d4)](){const _0x3c40d8=_0x4af93f;this[_0x3c40d8(0xcc)](this[_0x3c40d8(0x1ad)][_0x3c40d8(0x212)](O[_0x3c40d8(0xe7)][_0x3c40d8(0x144)],()=>O[_0x3c40d8(0x103)](Bt({'status$':this['_status$'][_0x3c40d8(0x2cc)]()}),this[_0x3c40d8(0x23b)])));}},exports[_0x4af93f(0x1b0)]=jt([X(0x0,a[_0x4af93f(0x9c)]),X(0x1,a[_0x4af93f(0x2a1)](a['Injector'])),X(0x2,a['Inject'](u[_0x4af93f(0x22e)])),X(0x3,O['IUIPartsService'])],exports[_0x4af93f(0x1b0)]);function Bt(_0x37e95a){const {status$:_0x5d9442}=_0x37e95a;return function(){const _0x27997e=_0x11d6;return P[_0x27997e(0x1f1)](je,{'status$':_0x5d9442});};}var kt=Object['getOwnPropertyDescriptor'],Ht=(_0x42c181,_0x4756b0,_0x41f43a,_0x6596a7)=>{const _0x1faa90=_0x4af93f;for(var _0x1ed83b=_0x6596a7>0x1?void 0x0:_0x6596a7?kt(_0x4756b0,_0x41f43a):_0x4756b0,_0x3ca1d1=_0x42c181[_0x1faa90(0x10c)]-0x1,_0x3f0439;_0x3ca1d1>=0x0;_0x3ca1d1--)(_0x3f0439=_0x42c181[_0x3ca1d1])&&(_0x1ed83b=_0x3f0439(_0x1ed83b)||_0x1ed83b);return _0x1ed83b;},y=(_0x34ed25,_0x14b6ad)=>(_0x1f26ba,_0x537bd8)=>_0x14b6ad(_0x1f26ba,_0x537bd8,_0x34ed25);let z=class extends a[_0x4af93f(0x14c)]{constructor(_0x2ea52c,_0x16048e,_0x792cce,_0x4a4f3f,_0x49cad9,_0x467e2c){const _0x5c68f9=_0x4af93f;super(),this[_0x5c68f9(0x2e3)]=_0x2ea52c,this['_localCacheService']=_0x16048e,this['_collaborationUIEventService']=_0x792cce,this[_0x5c68f9(0x16a)]=_0x4a4f3f,this[_0x5c68f9(0x1ba)]=_0x49cad9,this[_0x5c68f9(0x7c)]=_0x467e2c,this[_0x5c68f9(0x151)](),this[_0x5c68f9(0x243)]();}[_0x4af93f(0x151)](){const _0x1aa89c=_0x4af93f;this['disposeWithMe'](this[_0x1aa89c(0x2e3)][_0x1aa89c(0x270)](()=>{const _0x340afc=_0x1aa89c;if(this['_localCacheService'][_0x340afc(0x180)][_0x340afc(0x100)])return this[_0x340afc(0x7c)]['t'](_0x340afc(0x1d5));}));}[_0x4af93f(0x243)](){const _0x1e55d5=_0x4af93f;this[_0x1e55d5(0xcc)](this[_0x1e55d5(0x127)][_0x1e55d5(0x261)][_0x1e55d5(0xdd)](_0x250682=>{const _0x206f9e=_0x1e55d5;_0x250682['id']===u['CollaborationUIEventId'][_0x206f9e(0x292)]&&this[_0x206f9e(0x16a)]['show']({'type':T[_0x206f9e(0x1b5)]['Warning'],'content':this[_0x206f9e(0x7c)]['t'](_0x206f9e(0x198))}),_0x250682['id']===u[_0x206f9e(0x2a0)][_0x206f9e(0xc2)]&&this['_messageService']['show']({'type':T[_0x206f9e(0x1b5)][_0x206f9e(0xe8)],'content':this['_localeService']['t'](_0x206f9e(0x231))}),_0x250682['id']===u[_0x206f9e(0x2a0)]['PERMISSION_DENIED']&&this['_notificationService']['show']({'title':this[_0x206f9e(0x7c)]['t']('permission.title'),'content':this['_localeService']['t'](_0x206f9e(0x238)),'type':_0x206f9e(0x1a2),'duration':0x0}),_0x250682['id']===u[_0x206f9e(0x2a0)][_0x206f9e(0xad)]&&this[_0x206f9e(0x16a)]['show']({'type':T[_0x206f9e(0x1b5)]['Error'],'content':this[_0x206f9e(0x7c)]['t']('collaboration.closeRoom')+'('+_0x250682[_0x206f9e(0x2d7)]+')'}),_0x250682['id']===u['CollaborationUIEventId'][_0x206f9e(0x26c)]&&this[_0x206f9e(0x16a)][_0x206f9e(0x114)]({'type':T['MessageType'][_0x206f9e(0xe8)],'content':this[_0x206f9e(0x7c)]['t'](_0x250682['data']||'')}),_0x250682['id']===u[_0x206f9e(0x2a0)][_0x206f9e(0x297)]&&this[_0x206f9e(0x16a)][_0x206f9e(0x114)]({'type':T[_0x206f9e(0x1b5)][_0x206f9e(0xe8)],'content':this[_0x206f9e(0x7c)]['t'](_0x206f9e(0x1c3))}),_0x250682['id']===u[_0x206f9e(0x2a0)]['SOCKET_FAILED']&&this[_0x206f9e(0x16a)][_0x206f9e(0x114)]({'type':T[_0x206f9e(0x1b5)][_0x206f9e(0x73)],'content':this[_0x206f9e(0x7c)]['t'](_0x206f9e(0x21b))}),_0x250682['id']===u[_0x206f9e(0x2a0)][_0x206f9e(0x247)]&&this['_messageService'][_0x206f9e(0x114)]({'type':T[_0x206f9e(0x1b5)][_0x206f9e(0x73)],'content':this[_0x206f9e(0x7c)]['t'](_0x206f9e(0x29a))});}));}};z=Ht([y(0x0,O['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a['Inject'](u['CollaborationUIEventService'])),y(0x3,O[_0x4af93f(0x275)]),y(0x4,O['INotificationService']),y(0x5,a['Inject'](a[_0x4af93f(0x147)]))],z);const Ft='collaboration-client-ui.config',Ne={},Ee=a[_0x4af93f(0x1bb)]('uni.network.url-service');var Wt=Object[_0x4af93f(0x267)],Yt=(_0x47b326,_0x24f850,_0x571d14,_0x125c4e)=>{const _0x123948=_0x4af93f;for(var _0x2f6a48=_0x125c4e>0x1?void 0x0:_0x125c4e?Wt(_0x24f850,_0x571d14):_0x24f850,_0x195fd8=_0x47b326[_0x123948(0x10c)]-0x1,_0x18e8b4;_0x195fd8>=0x0;_0x195fd8--)(_0x18e8b4=_0x47b326[_0x195fd8])&&(_0x2f6a48=_0x18e8b4(_0x2f6a48)||_0x2f6a48);return _0x2f6a48;},F=(_0x5df5b5,_0x5c72f9)=>(_0x592343,_0x459161)=>_0x5c72f9(_0x592343,_0x459161,_0x5df5b5);exports[_0x4af93f(0x2b3)]=class extends a[_0x4af93f(0x193)]{constructor(_0x4fa1c0,_0x3af8b0,_0x876878,_0x4b8b1d,_0x463c02){const _0x1c598c=_0x4af93f;super(),this[_0x1c598c(0x18e)]=_0x4fa1c0,this['_logService']=_0x3af8b0,this[_0x1c598c(0x22f)]=_0x876878,this['_dataLoaderService']=_0x4b8b1d,_0x463c02?_0x463c02==null||_0x463c02[_0x1c598c(0xd0)]()[_0x1c598c(0x278)](()=>this[_0x1c598c(0xdb)]()):(this['_logService'][_0x1c598c(0x9f)](_0x1c598c(0x1ac),_0x1c598c(0x1f3)),this[_0x1c598c(0xdb)]());}async['_init'](){const _0x11797d=_0x4af93f,_0x188c6b=this[_0x11797d(0x18e)][_0x11797d(0x70)]('unit'),_0x59c11d=this['_urlService'][_0x11797d(0x70)](_0x11797d(0x280)),_0x332a24=this[_0x11797d(0x18e)][_0x11797d(0x70)](_0x11797d(0x1dd));if(!_0x188c6b||!_0x59c11d){this[_0x11797d(0x12f)][_0x11797d(0x9f)](_0x11797d(0x1ac),_0x11797d(0x23a));return;}const _0x37f270=await this[_0x11797d(0x11a)][_0x11797d(0x2ac)](_0x188c6b,Number(_0x59c11d),_0x332a24);_0x37f270&&_0x37f270 instanceof a[_0x11797d(0x229)]&&this[_0x11797d(0x263)](_0x37f270);}async[_0x4af93f(0x263)](_0xe7094e){const _0xe38bc4=_0x4af93f;await this[_0xe38bc4(0x8d)](_0xe7094e),_0xe7094e[_0xe38bc4(0x176)][_0xe38bc4(0x131)](d[_0xe38bc4(0x24c)](this['dispose$']))[_0xe38bc4(0xdd)](_0x431eba=>{const _0x196970=_0xe38bc4;_0x431eba&&this[_0x196970(0x2db)](_0x431eba);}),this[_0xe38bc4(0x18e)][_0xe38bc4(0x2a7)][_0xe38bc4(0x131)](d[_0xe38bc4(0x24c)](this['dispose$']))[_0xe38bc4(0xdd)](()=>this['_updateSubUnitFromURLParams'](_0xe7094e));}[_0x4af93f(0x2db)](_0x41fde7,_0x550436=!0x1){const _0x26b3cb=_0x4af93f,_0x584db8=this[_0x26b3cb(0x18e)][_0x26b3cb(0x70)](_0x26b3cb(0x1dd));_0x41fde7['getSheetId']()!==_0x584db8&&this['_urlService'][_0x26b3cb(0x1c2)](_0x26b3cb(0x1dd),_0x41fde7['getSheetId'](),_0x550436);}async['_updateSubUnitFromURLParams'](_0x4f6655){const _0x5bf7ef=_0x4af93f;var _0x30c06c;const _0x26f292=this[_0x5bf7ef(0x18e)][_0x5bf7ef(0x70)](_0x5bf7ef(0x1dd));if(!_0x26f292||!_0x4f6655[_0x5bf7ef(0x28e)](_0x26f292)){const _0x2bf53c=_0x4f6655[_0x5bf7ef(0x111)]()[0x0],_0x1b7586=_0x4f6655[_0x5bf7ef(0x28e)](_0x2bf53c);if(!_0x1b7586)return;this['_updateURLWithCurrentState'](_0x1b7586,!0x0),await this[_0x5bf7ef(0x22f)][_0x5bf7ef(0x204)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x4f6655[_0x5bf7ef(0x1c7)](),'subUnitId':_0x2bf53c});return;}((_0x30c06c=_0x4f6655['getActiveSheet']())==null?void 0x0:_0x30c06c['getSheetId']())!==_0x26f292&&await this[_0x5bf7ef(0x22f)][_0x5bf7ef(0x204)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x4f6655[_0x5bf7ef(0x1c7)](),'subUnitId':_0x26f292});}},exports[_0x4af93f(0x2b3)]=Yt([F(0x0,Ee),F(0x1,a['ILogService']),F(0x2,a['ICommandService']),F(0x3,a[_0x4af93f(0x2a1)](u[_0x4af93f(0x25b)])),F(0x4,a[_0x4af93f(0x118)](Ke[_0x4af93f(0x15b)]))],exports['CollaborationDataLoaderController']);var Vt=Object[_0x4af93f(0x267)],Xt=(_0x44e042,_0x103d43,_0x26b558,_0x5b849c)=>{const _0x29335c=_0x4af93f;for(var _0x112faf=_0x5b849c>0x1?void 0x0:_0x5b849c?Vt(_0x103d43,_0x26b558):_0x103d43,_0xdba486=_0x44e042[_0x29335c(0x10c)]-0x1,_0x21ad24;_0xdba486>=0x0;_0xdba486--)(_0x21ad24=_0x44e042[_0xdba486])&&(_0x112faf=_0x21ad24(_0x112faf)||_0x112faf);return _0x112faf;},le=(_0x301da4,_0x839dda)=>(_0x2de637,_0x572917)=>_0x839dda(_0x2de637,_0x572917,_0x301da4);let J=class{constructor(_0xab597a,_0x1b98f7,_0x5d201a){const _0x21d2f3=_0x4af93f;this[_0x21d2f3(0x23b)]=_0xab597a,this[_0x21d2f3(0x105)]=_0x1b98f7,this['_renderManagerService']=_0x5d201a;}[_0x4af93f(0x1fa)](_0x246495){const _0x4a7af8=_0x4af93f;this[_0x4a7af8(0x164)](_0x246495),this[_0x4a7af8(0x135)](_0x246495);}[_0x4af93f(0x2d6)](_0x2d241b){const _0x19deeb=_0x4af93f,{unitID:_0x25a78c}=_0x2d241b,_0x57d6f6=this[_0x19deeb(0x2e1)]['getRenderById'](_0x25a78c)[_0x19deeb(0x294)](b['DocIMEInputManagerService']),{redoCache:_0x42493d}=_0x57d6f6[_0x19deeb(0xfe)]();if(_0x42493d['length']===0x0)return _0x2d241b;let _0x2015c0=a[_0x19deeb(0x10e)][_0x19deeb(0x83)](_0x2d241b[_0x19deeb(0x8f)][0x0]);for(let _0x441274=0x0;_0x441274<_0x42493d[_0x19deeb(0x10c)];_0x441274++){const _0x71a67d={'id':_0x19deeb(0x2ce),'params':{..._0x42493d[_0x441274]}},_0x38a531=this[_0x19deeb(0x105)][_0x19deeb(0xdf)](_0x2015c0,_0x71a67d,!0x1);if(m['isTransformMutationFailure'](_0x38a531))throw _0x38a531[_0x19deeb(0x1a2)];_0x2015c0=_0x38a531[_0x19deeb(0x82)];}return{...a[_0x19deeb(0x10e)]['deepClone'](_0x2d241b),'mutations':[_0x2015c0]};}[_0x4af93f(0x164)](_0x126750){const _0x335cb5=_0x4af93f,{unitID:_0x2e3751}=_0x126750,_0x35e460=this[_0x335cb5(0x2e1)][_0x335cb5(0x25d)](_0x2e3751)[_0x335cb5(0x294)](b['DocIMEInputManagerService']),{undoCache:_0x20d9af,redoCache:_0x1d115d}=_0x35e460['getUndoRedoMutationParamsCache']();if(_0x20d9af[_0x335cb5(0x10c)]===0x0||_0x1d115d['length']===0x0)return;const _0x3700ee=[],_0xfbe849=[];let _0x368180=a[_0x335cb5(0x10e)][_0x335cb5(0x83)](_0x126750[_0x335cb5(0x8f)][0x0]),_0x435093=a[_0x335cb5(0x10e)][_0x335cb5(0x83)](_0x126750[_0x335cb5(0x8f)][0x0]);for(let _0x1d64e3=_0x20d9af[_0x335cb5(0x10c)]-0x1;_0x1d64e3>=0x0;_0x1d64e3--){const _0x5b1fd1={'id':_0x335cb5(0x2ce),'params':{..._0x20d9af[_0x1d64e3]}},_0x4b5c2b={'id':_0x335cb5(0x2ce),'params':{..._0x1d115d[_0x1d64e3]}},_0x3a95fa=this[_0x335cb5(0x105)][_0x335cb5(0xdf)](_0x368180,_0x5b1fd1,!0x1),_0x494006=this[_0x335cb5(0x105)]['transformMutation'](_0x435093,_0x4b5c2b,!0x1);if(m[_0x335cb5(0xca)](_0x3a95fa))throw _0x3a95fa[_0x335cb5(0x1a2)];if(m['isTransformMutationFailure'](_0x494006))throw _0x494006['error'];_0x3700ee['unshift'](_0x3a95fa[_0x335cb5(0xba)][_0x335cb5(0x22a)]),_0xfbe849['unshift'](_0x494006[_0x335cb5(0xba)][_0x335cb5(0x22a)]),_0x368180=_0x3a95fa['m1Prime'],_0x435093=_0x494006['m1Prime'];}_0x35e460['setUndoRedoMutationParamsCache']({'undoCache':_0x3700ee,'redoCache':_0xfbe849});}[_0x4af93f(0x135)](_0x11f31e){const _0x1873b9=_0x4af93f,{unitID:_0x5059c7}=_0x11f31e,_0x1c4621=this['_renderManagerService']['getRenderById'](_0x5059c7)['with'](b[_0x1873b9(0x213)]),_0x544e51=_0x1c4621[_0x1873b9(0xcd)]();if(_0x544e51==null)return;const _0xa69fb3=[{'id':_0x1873b9(0x2ce),'params':{'unitId':_0x11f31e[_0x1873b9(0x1ff)],'actions':null,'textRanges':[_0x544e51]}}],_0x538a29=this[_0x1873b9(0x105)][_0x1873b9(0x7f)](_0x11f31e,_0xa69fb3);if(!m['isTransformMutationsWithChangesetSuccess'](_0x538a29))throw _0x538a29[_0x1873b9(0x1a2)];const _0x411fe7=_0x538a29['m2Prime'][0x0]['params']['textRanges'];Array[_0x1873b9(0x128)](_0x411fe7)&&_0x411fe7[_0x1873b9(0x10c)]&&_0x1c4621[_0x1873b9(0x283)](_0x411fe7[0x0]);}};J=Xt([le(0x0,a['Inject'](a['Injector'])),le(0x1,m[_0x4af93f(0x2df)]),le(0x2,p[_0x4af93f(0x1d7)])],J);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x1f3b9a,_0x31bc59,_0x513e82,_0x2b23e1)=>{const _0x2edad5=_0x4af93f;for(var _0x5a20f7=_0x2b23e1>0x1?void 0x0:_0x2b23e1?Gt(_0x31bc59,_0x513e82):_0x31bc59,_0xf3e4c1=_0x1f3b9a[_0x2edad5(0x10c)]-0x1,_0x52d5c3;_0xf3e4c1>=0x0;_0xf3e4c1--)(_0x52d5c3=_0x1f3b9a[_0xf3e4c1])&&(_0x5a20f7=_0x52d5c3(_0x5a20f7)||_0x5a20f7);return _0x5a20f7;},_e=(_0x4f9947,_0x5a8553)=>(_0x306f28,_0x1431ed)=>_0x5a8553(_0x306f28,_0x1431ed,_0x4f9947);let Z=class{constructor(_0x63098b,_0x4c88d1,_0x3ab703){const _0xa961cd=_0x4af93f;this[_0xa961cd(0x23b)]=_0x63098b,this[_0xa961cd(0x105)]=_0x4c88d1,this['_docStateChangeManagerService']=_0x3ab703;}[_0x4af93f(0x2c3)](_0x3ddc71){this['_transformHistoryAndStateStack'](_0x3ddc71);}['transformRemoteChangeset'](_0x278a01){const _0xf8b55a=_0x4af93f,{unitID:_0x2ec2c5}=_0x278a01,{collaboration:_0x1b623e}=this[_0xf8b55a(0x139)][_0xf8b55a(0x90)](_0x2ec2c5);if(_0x1b623e['length']===0x0)return _0x278a01;let _0x369961=a[_0xf8b55a(0x10e)][_0xf8b55a(0x83)](_0x278a01['mutations'][0x0]);for(let _0x26d542=0x0;_0x26d542<_0x1b623e[_0xf8b55a(0x10c)];_0x26d542++){const _0x5f0d35={'id':_0xf8b55a(0x2ce),'params':{'unitId':_0x1b623e[_0x26d542]['unitId'],..._0x1b623e[_0x26d542][_0xf8b55a(0x2e6)]}},_0xe8d352=this['_transformService'][_0xf8b55a(0xdf)](_0x369961,_0x5f0d35,!0x1);if(m[_0xf8b55a(0xca)](_0xe8d352))throw _0xe8d352['error'];_0x369961=_0xe8d352[_0xf8b55a(0x82)];}return{...a[_0xf8b55a(0x10e)][_0xf8b55a(0x83)](_0x278a01),'mutations':[_0x369961]};}[_0x4af93f(0x24e)](_0x2cfa19){const _0x20fd2f=_0x4af93f,{unitID:_0x50a563}=_0x2cfa19,{history:_0x473d2b,collaboration:_0xd868bf}=this[_0x20fd2f(0x139)][_0x20fd2f(0x90)](_0x50a563);if(_0x473d2b['length']===0x0&&_0xd868bf[_0x20fd2f(0x10c)]===0x0)return;const _0x5bbde6=[],_0x246eaa=[];let _0x41a0af=a['Tools'][_0x20fd2f(0x83)](_0x2cfa19[_0x20fd2f(0x8f)][0x0]),_0x383fbc=a[_0x20fd2f(0x10e)][_0x20fd2f(0x83)](_0x2cfa19['mutations'][0x0]);for(let _0x1232c3=_0x473d2b[_0x20fd2f(0x10c)]-0x1;_0x1232c3>=0x0;_0x1232c3--){const _0x34ac75={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x473d2b[_0x1232c3][_0x20fd2f(0x7a)],..._0x473d2b[_0x1232c3]['undoState']}},_0x56bc50={'id':_0x20fd2f(0x2ce),'params':{'unitId':_0x473d2b[_0x1232c3][_0x20fd2f(0x7a)],..._0x473d2b[_0x1232c3][_0x20fd2f(0x2e6)]}},_0x51acdb=this[_0x20fd2f(0x105)]['transformMutation'](_0x41a0af,_0x34ac75,!0x1),_0x4d3bd7=this[_0x20fd2f(0x105)][_0x20fd2f(0xdf)](_0x383fbc,_0x56bc50,!0x1);if(m[_0x20fd2f(0xca)](_0x51acdb))throw _0x51acdb[_0x20fd2f(0x1a2)];if(m[_0x20fd2f(0xca)](_0x4d3bd7))throw _0x4d3bd7['error'];_0x5bbde6['unshift']({..._0x473d2b[_0x1232c3],'undoState':_0x51acdb[_0x20fd2f(0xba)][_0x20fd2f(0x22a)],'redoState':_0x4d3bd7[_0x20fd2f(0xba)][_0x20fd2f(0x22a)]}),_0x41a0af=_0x51acdb[_0x20fd2f(0x82)],_0x383fbc=_0x4d3bd7[_0x20fd2f(0x82)];}_0x41a0af=a[_0x20fd2f(0x10e)][_0x20fd2f(0x83)](_0x2cfa19[_0x20fd2f(0x8f)][0x0]),_0x383fbc=a['Tools']['deepClone'](_0x2cfa19['mutations'][0x0]);for(let _0x43931c=_0xd868bf[_0x20fd2f(0x10c)]-0x1;_0x43931c>=0x0;_0x43931c--){const _0x29b4c5={'id':_0x20fd2f(0x2ce),'params':{'unitId':_0xd868bf[_0x43931c]['unitId'],..._0xd868bf[_0x43931c]['undoState']}},_0x5770b8={'id':_0x20fd2f(0x2ce),'params':{'unitId':_0xd868bf[_0x43931c][_0x20fd2f(0x7a)],..._0xd868bf[_0x43931c][_0x20fd2f(0x2e6)]}},_0x244c29=this[_0x20fd2f(0x105)][_0x20fd2f(0xdf)](_0x41a0af,_0x29b4c5,!0x1),_0x685a75=this['_transformService'][_0x20fd2f(0xdf)](_0x383fbc,_0x5770b8,!0x1);if(m[_0x20fd2f(0xca)](_0x244c29))throw _0x244c29[_0x20fd2f(0x1a2)];if(m[_0x20fd2f(0xca)](_0x685a75))throw _0x685a75[_0x20fd2f(0x1a2)];_0x246eaa['unshift']({..._0xd868bf[_0x43931c],'undoState':_0x244c29[_0x20fd2f(0xba)][_0x20fd2f(0x22a)],'redoState':_0x685a75['m2Prime'][_0x20fd2f(0x22a)]}),_0x41a0af=_0x244c29['m1Prime'],_0x383fbc=_0x685a75[_0x20fd2f(0x82)];}this[_0x20fd2f(0x139)][_0x20fd2f(0x2dc)](_0x50a563,{'history':_0x5bbde6,'collaboration':_0x246eaa});}};Z=qt([_e(0x0,a[_0x4af93f(0x2a1)](a[_0x4af93f(0x187)])),_e(0x1,m[_0x4af93f(0x2df)]),_e(0x2,a['Inject'](b[_0x4af93f(0x136)]))],Z);var Kt=Object[_0x4af93f(0x267)],zt=(_0x34c39b,_0x52fb71,_0x1bbcba,_0x3362d6)=>{const _0x28188a=_0x4af93f;for(var _0x225b7c=_0x3362d6>0x1?void 0x0:_0x3362d6?Kt(_0x52fb71,_0x1bbcba):_0x52fb71,_0x1254bc=_0x34c39b[_0x28188a(0x10c)]-0x1,_0x43b989;_0x1254bc>=0x0;_0x1254bc--)(_0x43b989=_0x34c39b[_0x1254bc])&&(_0x225b7c=_0x43b989(_0x225b7c)||_0x225b7c);return _0x225b7c;},Me=(_0x9a77d9,_0x5ba6ed)=>(_0x118530,_0x33db3f)=>_0x5ba6ed(_0x118530,_0x33db3f,_0x9a77d9);let Q=class{constructor(_0x573911,_0x4e40bb){const _0x3423c1=_0x4af93f;this[_0x3423c1(0x23b)]=_0x573911,this[_0x3423c1(0x105)]=_0x4e40bb;}[_0x4af93f(0xc5)](_0x4bce29){const _0x2eac50=_0x4af93f;var _0x45fdf6;const _0x31784d=this[_0x2eac50(0x23b)][_0x2eac50(0x27f)](Y[_0x2eac50(0x67)]),_0x309858=(_0x45fdf6=_0x31784d[_0x2eac50(0x11b)]())!=null?_0x45fdf6:[];if(_0x309858[_0x2eac50(0x10c)]===0x0)return;const _0x2c1f86=_0x4bce29[_0x2eac50(0x1ff)],_0xbf7127=[{'id':_0x2eac50(0x2ce),'params':{'unitId':_0x2c1f86,'actions':null,'textRanges':_0x309858}}],_0x5e9737=this[_0x2eac50(0x105)][_0x2eac50(0x7f)](_0x4bce29,_0xbf7127);if(!m['isTransformMutationsWithChangesetSuccess'](_0x5e9737))throw _0x5e9737[_0x2eac50(0x1a2)];const _0x9ede1f=_0x5e9737[_0x2eac50(0xba)][0x0][_0x2eac50(0x22a)][_0x2eac50(0x7b)];Array[_0x2eac50(0x128)](_0x9ede1f)&&_0x9ede1f['length']&&_0x31784d[_0x2eac50(0x1dc)](_0x9ede1f,{'unitId':_0x2c1f86,'subUnitId':_0x2c1f86},!0x1);}};Q=zt([Me(0x0,a[_0x4af93f(0x2a1)](a['Injector'])),Me(0x1,m[_0x4af93f(0x2df)])],Q);var Jt=Object[_0x4af93f(0x267)],Zt=(_0x4615c2,_0x200462,_0x506c9c,_0x5aec67)=>{const _0x2c9bbf=_0x4af93f;for(var _0x48a17a=_0x5aec67>0x1?void 0x0:_0x5aec67?Jt(_0x200462,_0x506c9c):_0x200462,_0x1925be=_0x4615c2[_0x2c9bbf(0x10c)]-0x1,_0x503198;_0x1925be>=0x0;_0x1925be--)(_0x503198=_0x4615c2[_0x1925be])&&(_0x48a17a=_0x503198(_0x48a17a)||_0x48a17a);return _0x48a17a;},N=(_0x814f3b,_0x1819f2)=>(_0x4655cf,_0x1c40ec)=>_0x1819f2(_0x4655cf,_0x1c40ec,_0x814f3b);let ee=class extends a[_0x4af93f(0x14c)]{constructor(_0x4d6af5,_0x531ca2,_0x548cb8,_0x381837,_0x27547a,_0x5a1b5b,_0x952e27,_0xb7d4b5){const _0x4f270a=_0x4af93f;super(),_(this,_0x4f270a(0x119),new d[(_0x4f270a(0x158))](u[_0x4f270a(0xfd)]['NOT_COLLAB'])),(this[_0x4f270a(0x139)]=_0x4d6af5,this[_0x4f270a(0x2d9)]=_0x531ca2,this[_0x4f270a(0xbc)]=_0x548cb8,this[_0x4f270a(0x286)]=_0x381837,this[_0x4f270a(0x2ba)]=_0x27547a,this['_docSyncEditingCollabCursorService']=_0x5a1b5b,this['_messageService']=_0x952e27,this['_localeService']=_0xb7d4b5,this[_0x4f270a(0x29c)]());}[_0x4af93f(0x29c)](){const _0x38508a=_0x4af93f;this[_0x38508a(0xcc)](this[_0x38508a(0x2d9)][_0x38508a(0xf8)][_0x38508a(0xdd)](_0x487e42=>{const _0xda0b92=_0x38508a,_0xd55d72=this[_0xda0b92(0x139)]['docStateChange$'][_0xda0b92(0xdd)](_0x165377=>{const _0x1e464a=_0xda0b92;if(_0x165377==null)return;const {unitId:_0x2f49de,redoState:_0x2caa41,commandId:_0x33c64b}=_0x165377;if(_0x2f49de!==_0x487e42[_0x1e464a(0x1ff)])return;const _0x242f21={'id':_0x33c64b,'type':a[_0x1e464a(0x29f)][_0x1e464a(0x268)],'params':{'unitId':_0x2f49de,'actions':_0x2caa41[_0x1e464a(0x130)],'textRanges':null}};_0x487e42['onLocalMutation'](_0x242f21);});if(_0x487e42[_0xda0b92(0xcc)](_0xd55d72),_0x487e42 instanceof u[_0xda0b92(0x1c9)]){const _0x4ae368={'onTransformIME':_0x208af9=>this[_0xda0b92(0xbc)][_0xda0b92(0x1fa)](_0x208af9),'onTransformState':_0x15d736=>this[_0xda0b92(0x286)][_0xda0b92(0x2c3)](_0x15d736),'onTransformSelections':_0x186436=>this['_docTransformSelectionsService'][_0xda0b92(0xc5)](_0x186436),'onSyncEditingCollabCursor':_0x43a803=>this['_docSyncEditingCollabCursorService'][_0xda0b92(0x106)](_0x43a803),'onTransformRemoteChangesetByIMECache':_0x2e5a49=>this[_0xda0b92(0xbc)][_0xda0b92(0x2d6)](_0x2e5a49),'onTransformRemoteChangesetByStateCache':_0x5cdc6a=>this[_0xda0b92(0x286)]['transformRemoteChangeset'](_0x5cdc6a)};_0x487e42['addHandlerCallback'](_0x4ae368);}}));}};ee=Zt([N(0x0,a[_0x4af93f(0x2a1)](b[_0x4af93f(0x136)])),N(0x1,a[_0x4af93f(0x2a1)](u['CollaborationController'])),N(0x2,a['Inject'](J)),N(0x3,a[_0x4af93f(0x2a1)](Z)),N(0x4,a[_0x4af93f(0x2a1)](Q)),N(0x5,a['Inject'](pe)),N(0x6,O[_0x4af93f(0x275)]),N(0x7,a['Inject'](a['LocaleService']))],ee);var Qt=Object['getOwnPropertyDescriptor'],es=(_0x5bcdf3,_0x5d734c,_0x3bc5bc,_0x120a09)=>{const _0xfa25fd=_0x4af93f;for(var _0x263db2=_0x120a09>0x1?void 0x0:_0x120a09?Qt(_0x5d734c,_0x3bc5bc):_0x5d734c,_0x2f7389=_0x5bcdf3[_0xfa25fd(0x10c)]-0x1,_0x4e10e2;_0x2f7389>=0x0;_0x2f7389--)(_0x4e10e2=_0x5bcdf3[_0x2f7389])&&(_0x263db2=_0x4e10e2(_0x263db2)||_0x263db2);return _0x263db2;},he=(_0x493099,_0x5313e3)=>(_0x18c877,_0xc512dc)=>_0x5313e3(_0x18c877,_0xc512dc,_0x493099);let me=class extends a[_0x4af93f(0x14c)]{constructor(_0x5a91f9,_0x7befb1,_0x25dba7){const _0x2378ac=_0x4af93f;super(),_(this,_0x2378ac(0xa2),new Map()),_(this,_0x2378ac(0x20c),new Map()),_(this,_0x2378ac(0x273),!0x1),(this['_configService']=_0x5a91f9,this['_localStorageService']=_0x7befb1,this[_0x2378ac(0x10a)]=_0x25dba7);}[_0x4af93f(0x169)](){this['_disabled']=!0x0;}[_0x4af93f(0x29b)](){this['_disabled']=!0x1;}get[_0x4af93f(0x180)](){const _0x27b07c=_0x4af93f;return this[_0x27b07c(0x20c)];}[_0x4af93f(0x1a7)](){const _0x15e368=_0x4af93f;this[_0x15e368(0xb6)]()[_0x15e368(0x278)](()=>super[_0x15e368(0x1a7)]());}async[_0x4af93f(0x20e)](_0x548e11){const _0xc52d1c=_0x4af93f;return this['_disabled']?null:this['_localStorageService']['getItem'](u[_0xc52d1c(0x23c)](_0x548e11));}async['saveOfflineData'](_0xa97f13,_0x2806e6){const _0x3e77c8=_0x4af93f;return!!this['_localStorageService'][_0x3e77c8(0x116)](_0xa97f13,_0x2806e6);}[_0x4af93f(0x27c)](_0x2fe2ee,_0x26f6c7,_0x5473e4,_0x3b97ce){const _0x522dcf=_0x4af93f,_0x415578=this[_0x522dcf(0x10a)][_0x522dcf(0x177)](_0x2fe2ee);this[_0x522dcf(0xa2)][_0x522dcf(0x167)](_0x2fe2ee,{'unitID':_0x2fe2ee,'type':_0x26f6c7,'awaitingChangeset':_0x5473e4,'mutations':_0x3b97ce,'rev':_0x415578}),this[_0x522dcf(0x20c)][_0x522dcf(0x148)](_0x2fe2ee)||this['_scheduleSaving'](_0x2fe2ee);}[_0x4af93f(0x8c)](_0x5630e5){const _0x560323=_0x4af93f,_0x2a4b36=this['_getSaveTimeout']();_0x2a4b36===0x0?this['_saveCache'](_0x5630e5):this[_0x560323(0x20c)][_0x560323(0x167)](_0x5630e5,setTimeout(()=>this['_saveCache'](_0x5630e5),_0x2a4b36));}['_getSaveTimeout'](){const _0x45f551=_0x4af93f;var _0x409722;return(_0x409722=this['_configService'][_0x45f551(0x28b)](u[_0x45f551(0x6e)]))!=null?_0x409722:u[_0x45f551(0x28a)];}[_0x4af93f(0x1b2)](_0x44b092){const _0x2c6529=_0x4af93f,_0x4a9060=this[_0x2c6529(0x20c)][_0x2c6529(0x27f)](_0x44b092);return _0x4a9060!==void 0x0&&window[_0x2c6529(0x19c)](_0x4a9060),this[_0x2c6529(0xbe)]['setItem'](u[_0x2c6529(0x23c)](_0x44b092),this[_0x2c6529(0xa2)]['get'](_0x44b092))['then'](()=>this[_0x2c6529(0x20c)][_0x2c6529(0x2d0)](_0x44b092));}async[_0x4af93f(0xb6)](){const _0xfa4c56=_0x4af93f,_0x1a4b8b=[];this[_0xfa4c56(0x20c)][_0xfa4c56(0x2c9)]((_0x198055,_0x33c6c4)=>{const _0x634cea=_0xfa4c56;window[_0x634cea(0x19c)](_0x198055),_0x1a4b8b['push'](this[_0x634cea(0x1b2)](_0x33c6c4)[_0x634cea(0x278)](()=>{const _0x2b8ab4=_0x634cea;this[_0x2b8ab4(0x20c)][_0x2b8ab4(0x2d0)](_0x33c6c4);}));}),await Promise['all'](_0x1a4b8b);}};me=es([he(0x0,a['IConfigService']),he(0x1,a[_0x4af93f(0x2c0)]),he(0x2,a[_0x4af93f(0x2a1)](m['RevisionService']))],me);class Be extends a['RxDisposable']{constructor(){const _0x1a1d96=_0x4af93f;super(),_(this,_0x1a1d96(0x2a7)),this['urlChange$']=d[_0x1a1d96(0x2a6)](window,'popstate')[_0x1a1d96(0x131)](d[_0x1a1d96(0x24c)](this['dispose$']),d[_0x1a1d96(0x1cf)](0x1),d[_0x1a1d96(0x27a)](void 0x0));}[_0x4af93f(0x1c2)](_0x3455a7,_0x8c6f8d,_0x3c43d0=!0x1){const _0x13dd6a=_0x4af93f,_0x1fcfae=new URL(window[_0x13dd6a(0x9e)][_0x13dd6a(0xfb)]);_0x1fcfae[_0x13dd6a(0x289)]['set'](_0x3455a7,_0x8c6f8d),_0x3c43d0?window[_0x13dd6a(0x1e3)]['replaceState']('','',_0x1fcfae['toString']()):window[_0x13dd6a(0x1e3)][_0x13dd6a(0xc9)]('','',_0x1fcfae[_0x13dd6a(0x1e7)]());}['removeParam'](_0x465d6d,_0x3ce34a=!0x1){const _0x196f99=_0x4af93f,_0x2ae8a1=new URL(window[_0x196f99(0x9e)][_0x196f99(0xfb)]);_0x2ae8a1[_0x196f99(0x289)][_0x196f99(0x2d0)](_0x465d6d),_0x3ce34a?window['history'][_0x196f99(0xc4)]('','',_0x2ae8a1['toString']()):window['history'][_0x196f99(0xc9)]('','',_0x2ae8a1[_0x196f99(0x1e7)]());}[_0x4af93f(0x70)](_0x7cd335){const _0x1c7e4d=_0x4af93f;var _0x3b1233;return(_0x3b1233=new URL(window[_0x1c7e4d(0x9e)]['href'])[_0x1c7e4d(0x289)][_0x1c7e4d(0x27f)](_0x7cd335))!=null?_0x3b1233:void 0x0;}}var ts=Object[_0x4af93f(0x1c1)],ss=Object[_0x4af93f(0x267)],ns=(_0x260b76,_0x101959,_0xce1221)=>_0x101959 in _0x260b76?ts(_0x260b76,_0x101959,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xce1221}):_0x260b76[_0x101959]=_0xce1221,is=(_0x47c0c6,_0x1e8566,_0x4472cd,_0x171fcd)=>{const _0x5443a4=_0x4af93f;for(var _0xe8150e=_0x171fcd>0x1?void 0x0:_0x171fcd?ss(_0x1e8566,_0x4472cd):_0x1e8566,_0x282b7a=_0x47c0c6[_0x5443a4(0x10c)]-0x1,_0x4ed4bb;_0x282b7a>=0x0;_0x282b7a--)(_0x4ed4bb=_0x47c0c6[_0x282b7a])&&(_0xe8150e=_0x4ed4bb(_0xe8150e)||_0xe8150e);return _0xe8150e;},ue=(_0x138cf6,_0x5626f2)=>(_0x539980,_0x507fab)=>_0x5626f2(_0x539980,_0x507fab,_0x138cf6),rs=(_0x3a68bc,_0xfe23e1,_0x206fff)=>ns(_0x3a68bc,_0xfe23e1+'',_0x206fff);const os=_0x4af93f(0x2ca);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x4af93f(0xa7)]{constructor(_0x5d1789=Ne,_0x49f89c,_0x1fc298,_0x2ebafd){const _0x31921f=_0x4af93f;super(),this[_0x31921f(0x2ae)]=_0x5d1789,this['_renderManagerService']=_0x49f89c,this[_0x31921f(0x23b)]=_0x1fc298,this['_configService']=_0x2ebafd;const {..._0xe22582}=a[_0x31921f(0x85)]({},Ne,this[_0x31921f(0x2ae)]);this[_0x31921f(0x1f7)][_0x31921f(0x19f)](Ft,_0xe22582);}['onStarting'](){const _0x529bdb=_0x4af93f;this[_0x529bdb(0x93)](),this[_0x529bdb(0x1d4)]();}[_0x4af93f(0x1a4)](){const _0x38bf2c=_0x4af93f;this[_0x38bf2c(0x1df)]();}['_registerDependencies'](){const _0x54fc4c=_0x4af93f;var _0x3aba3;const _0x1e9a10=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x54fc4c(0x1a3)],{'useClass':q[_0x54fc4c(0x138)]}],[u[_0x54fc4c(0x211)],{'useClass':me}],[exports[_0x54fc4c(0x1b0)]],[ee],[z],[x],[fe],[exports[_0x54fc4c(0x2b3)]]];a['registerDependencies'](this[_0x54fc4c(0x23b)],a[_0x54fc4c(0x92)](_0x1e9a10,(_0x3aba3=this[_0x54fc4c(0x2ae)])==null?void 0x0:_0x3aba3[_0x54fc4c(0x10f)]));}[_0x4af93f(0x1df)](){const _0x453430=_0x4af93f;this[_0x453430(0xcc)](this[_0x453430(0x2e1)][_0x453430(0x1b8)](a[_0x453430(0x222)]['UNIVER_DOC'],[ve])),this['disposeWithMe'](this[_0x453430(0x2e1)][_0x453430(0x1b8)](a[_0x453430(0x222)][_0x453430(0x2d8)],[ge]));}[_0x4af93f(0x1d4)](){const _0x1efe22=_0x4af93f;a['touchDependencies'](this[_0x1efe22(0x23b)],[[x],[exports[_0x1efe22(0x1b0)]],[ee],[z],[exports[_0x1efe22(0x2b3)]]]);}},rs(exports[_0x4af93f(0x122)],_0x4af93f(0x178),os),exports[_0x4af93f(0x122)]=is([a[_0x4af93f(0xaf)](u[_0x4af93f(0x186)]),ue(0x1,p[_0x4af93f(0x1d7)]),ue(0x2,a['Inject'](a[_0x4af93f(0x187)])),ue(0x3,a[_0x4af93f(0x20d)])],exports[_0x4af93f(0x122)]);var as=Object[_0x4af93f(0x267)],cs=(_0x56ddd5,_0xd1bf5e,_0x2653bf,_0x515827)=>{const _0x209bd6=_0x4af93f;for(var _0x225128=_0x515827>0x1?void 0x0:_0x515827?as(_0xd1bf5e,_0x2653bf):_0xd1bf5e,_0x553df2=_0x56ddd5[_0x209bd6(0x10c)]-0x1,_0x237dce;_0x553df2>=0x0;_0x553df2--)(_0x237dce=_0x56ddd5[_0x553df2])&&(_0x225128=_0x237dce(_0x225128)||_0x225128);return _0x225128;},W=(_0x208e8d,_0x54b3d6)=>(_0x49b177,_0x20dfe3)=>_0x54b3d6(_0x49b177,_0x20dfe3,_0x208e8d);exports[_0x4af93f(0x2bb)]=class extends u['CollaborationSocketService']{constructor(_0x3b4986,_0x230ed9,_0x48973f,_0x11510b,_0xb413d0){super(_0x3b4986,_0x230ed9,_0x48973f,_0x11510b,_0xb413d0);}async[_0x4af93f(0x1b9)](_0x3fb643){const _0xddbe60=_0x4af93f,_0x3402d5=await this['_getSessionTicket'](),_0x2a47db=this[_0xddbe60(0x245)](_0x3fb643,_0x3402d5);return this['_doCreateSocket'](_0x2a47db);}[_0x4af93f(0x245)](_0x1f1739,_0x421f03){const _0x59b9a3=_0x4af93f,_0x2ed649=typeof window>'u'?new URL(_0x1f1739):new URL(_0x1f1739,window['location'][_0x59b9a3(0x21d)]);_0x2ed649[_0x59b9a3(0x289)][_0x59b9a3(0x167)](_0x59b9a3(0x86),_0x421f03);const _0x462d03=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x59b9a3(0x9e)]['search']);return _0x462d03[_0x59b9a3(0x27f)](_0x59b9a3(0x17c))&&_0x2ed649[_0x59b9a3(0x289)][_0x59b9a3(0x167)]('runId',_0x462d03['get'](_0x59b9a3(0x17c))),_0x2ed649[_0x59b9a3(0x1e7)]();}async[_0x4af93f(0x215)](){const _0x54a744=_0x4af93f;var _0x4b2d0b,_0xf413fa,_0x361500;const _0x57a112=this[_0x54a744(0x1f7)][_0x54a744(0x28b)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0xf16606=(_0x4b2d0b=_0x57a112==null?void 0x0:_0x57a112[_0x54a744(0x2e2)])!=null?_0x4b2d0b:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x361500=(_0xf413fa=(await this[_0x54a744(0x72)]['get'](_0xf16606,{'headers':{'Content-Type':_0x54a744(0x22c)}}))[_0x54a744(0x161)])==null?void 0x0:_0xf413fa[_0x54a744(0x2a4)])!=null?_0x361500:'';}},exports[_0x4af93f(0x2bb)]=cs([W(0x0,a[_0x4af93f(0x2a1)](a[_0x4af93f(0x187)])),W(0x1,a['Inject'](q['HTTPService'])),W(0x2,a[_0x4af93f(0x20d)]),W(0x3,a[_0x4af93f(0x21e)]),W(0x4,m[_0x4af93f(0x2e5)])],exports[_0x4af93f(0x2bb)]);const Le=0x7530,Pe='ACTIVE_UNIT_EVENT_CHANNEL';class ls extends a[_0x4af93f(0x14c)]{constructor(){const _0x51255d=_0x4af93f;super(),_(this,_0x51255d(0x27d),a[_0x51255d(0x26a)]()),_(this,'_selfUnitIDs',new Set()),_(this,_0x51255d(0x206),new Map()),_(this,_0x51255d(0x197),null),_(this,_0x51255d(0x174),new Map()),_(this,_0x51255d(0xbb),new Map()),this[_0x51255d(0xdb)]();}[_0x4af93f(0x1a7)](){const _0x53297a=_0x4af93f;super[_0x53297a(0x1a7)](),this[_0x53297a(0x174)][_0x53297a(0x2c9)]((_0x13a155,_0x5e3684)=>this[_0x53297a(0x226)](_0x5e3684)),this[_0x53297a(0x197)]&&window['clearInterval'](this[_0x53297a(0x197)]);}[_0x4af93f(0x295)](_0x381e01){const _0x571f12=_0x4af93f;return this[_0x571f12(0xd9)](_0x381e01)[_0x571f12(0x131)](d[_0x571f12(0x10d)]());}[_0x4af93f(0x96)](_0x91ba93){const _0x1055ab=_0x4af93f;this[_0x1055ab(0x1b1)][_0x1055ab(0x100)]===0x0&&this[_0x1055ab(0x25e)](),this['_selfUnitIDs'][_0x1055ab(0x13d)](_0x91ba93),this[_0x1055ab(0x281)]({'type':0x0,'memberID':this[_0x1055ab(0x27d)],'unitIDs':[_0x91ba93],'isForwarded':!0x1});}['disposeUnit'](_0x3dd9bc){const _0x528e48=_0x4af93f;this[_0x528e48(0x1b1)][_0x528e48(0x2d0)](_0x3dd9bc),this['_selfUnitIDs'][_0x528e48(0x100)]===0x0&&this[_0x528e48(0x197)]&&window[_0x528e48(0x1e9)](this[_0x528e48(0x197)]);}[_0x4af93f(0xdb)](){const _0xba1fa6=_0x4af93f;this[_0xba1fa6(0xcc)](a[_0xba1fa6(0xce)](d[_0xba1fa6(0x2a6)](window,_0xba1fa6(0x17f))['subscribe'](_0x1543ad=>{const _0x3323c3=_0xba1fa6;if(_0x1543ad[_0x3323c3(0x2c7)]!==Pe||!_0x1543ad[_0x3323c3(0x12e)])return;const _0x2d1523=JSON[_0x3323c3(0x163)](_0x1543ad['newValue']);this['_handleEvent'](_0x2d1523);}))),window[_0xba1fa6(0x299)](_0xba1fa6(0xd4),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array['from'](this[_0xba1fa6(0x1b1)])}));}[_0x4af93f(0x2be)](_0x2b00fd){const _0x299a0=_0x4af93f;switch(_0x2b00fd[_0x299a0(0x280)]){case 0x0:this[_0x299a0(0x2e0)](_0x2b00fd);break;case 0x1:this[_0x299a0(0x298)](_0x2b00fd);break;case 0x2:this[_0x299a0(0xb2)](_0x2b00fd);break;}}[_0x4af93f(0x2e0)](_0x1071a6){const _0x297595=_0x4af93f,{unitIDs:_0x5c55ef,memberID:_0x4297d7,isForwarded:_0x2060c6}=_0x1071a6;_0x5c55ef[_0x297595(0x2c9)](_0x429fa5=>{const _0x74691b=_0x297595;if(!_0x2060c6&&this[_0x74691b(0x206)][_0x74691b(0x148)](_0x429fa5)&&this[_0x74691b(0xd9)](_0x429fa5)[_0x74691b(0x2c4)](u[_0x74691b(0x1aa)]['OTHER_CLIENTS_EDITING']),!this[_0x74691b(0x206)][_0x74691b(0x148)](_0x429fa5)||!this['_unitOnClients'][_0x74691b(0x27f)](_0x429fa5)[_0x74691b(0x148)](_0x4297d7)){const _0x44afb9=this[_0x74691b(0x206)]['get'](_0x429fa5)||new Set();_0x44afb9[_0x74691b(0x13d)](_0x4297d7),this[_0x74691b(0x206)][_0x74691b(0x167)](_0x429fa5,_0x44afb9),this[_0x74691b(0xa5)](_0x4297d7);}}),_0x2060c6||this[_0x297595(0x281)]({'type':0x0,'memberID':this[_0x297595(0x27d)],'unitIDs':[...this[_0x297595(0x1b1)]],'isForwarded':!0x0});}[_0x4af93f(0xa5)](_0x2206b3){const _0x1a636b=_0x4af93f;this[_0x1a636b(0x226)](_0x2206b3);const _0x374c93=window[_0x1a636b(0x290)](()=>{const _0xb4e5c7=_0x1a636b;this[_0xb4e5c7(0x206)][_0xb4e5c7(0x2c9)](_0x531a3e=>{const _0x7d1220=_0xb4e5c7;_0x531a3e[_0x7d1220(0x2d0)](_0x2206b3);});},Le*0x2);this[_0x1a636b(0x174)][_0x1a636b(0x167)](_0x2206b3,_0x374c93);}[_0x4af93f(0x226)](_0x2595b8){const _0x3458a1=_0x4af93f;if(this['_clearOtherTimers']['has'](_0x2595b8)){const _0x334238=this['_clearOtherTimers'][_0x3458a1(0x27f)](_0x2595b8);_0x334238&&window[_0x3458a1(0x19c)](_0x334238),this[_0x3458a1(0x174)]['set'](_0x2595b8,null);}}[_0x4af93f(0x298)](_0x2802cb){const _0x4ffa7f=_0x4af93f,{memberID:_0xfa1742,unitIDs:_0x343ecb}=_0x2802cb;_0x343ecb[_0x4ffa7f(0x2c9)](_0x4d1983=>{const _0xdc39c9=_0x4ffa7f;var _0x1497d2;const _0x1f968c=this['_unitOnClients'][_0xdc39c9(0x27f)](_0x4d1983);_0x1f968c&&(_0x1f968c[_0xdc39c9(0x2d0)](_0xfa1742),(_0x1497d2=this[_0xdc39c9(0xd9)](_0x4d1983))==null||_0x1497d2[_0xdc39c9(0x2c4)](_0x1f968c['size']===0x0?u[_0xdc39c9(0x1aa)][_0xdc39c9(0xb0)]:u[_0xdc39c9(0x1aa)][_0xdc39c9(0x199)]));}),this[_0x4ffa7f(0x226)](_0xfa1742);}[_0x4af93f(0xb2)](_0x462d94){const _0x3354b8=_0x4af93f;this['_scheduleClearOtherTimer'](_0x462d94[_0x3354b8(0xcb)]);}['_send'](_0x4b7470){const _0x149345=_0x4af93f;localStorage['setItem'](Pe,JSON[_0x149345(0x1c8)](_0x4b7470));}[_0x4af93f(0x25e)](){const _0x5525e8=_0x4af93f;this[_0x5525e8(0x197)]=window[_0x5525e8(0x2c2)](()=>{const _0x4a1c28=_0x5525e8;this[_0x4a1c28(0x281)]({'type':0x2,'memberID':this['_id']});},Le);}[_0x4af93f(0xd9)](_0x18f40b){const _0x1d13f7=_0x4af93f;return this[_0x1d13f7(0xbb)][_0x1d13f7(0x148)](_0x18f40b)||this[_0x1d13f7(0xbb)][_0x1d13f7(0x167)](_0x18f40b,new d['BehaviorSubject'](u[_0x1d13f7(0x1aa)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x1d13f7(0xbb)][_0x1d13f7(0x27f)](_0x18f40b);}}var ke=(_0xa213d1=>(_0xa213d1[_0xa213d1[_0x4af93f(0x279)]=0x0]='UNDEFINED',_0xa213d1[_0xa213d1['OK']=0x1]='OK',_0xa213d1[_0xa213d1[_0x4af93f(0x18f)]=0x2]='INTERNAL_ERROR',_0xa213d1[_0xa213d1[_0x4af93f(0x1b6)]=0x3]=_0x4af93f(0x1b6),_0xa213d1[_0xa213d1[_0x4af93f(0x152)]=0x4]=_0x4af93f(0x152),_0xa213d1[_0xa213d1[_0x4af93f(0x232)]=0x5]='UNAUTHENTICATED',_0xa213d1[_0xa213d1[_0x4af93f(0x107)]=0x6]=_0x4af93f(0x107),_0xa213d1[_0xa213d1[_0x4af93f(0x2d1)]=0x7]=_0x4af93f(0x2d1),_0xa213d1[_0xa213d1['TOO_MANY_REQUESTS']=0x8]=_0x4af93f(0x2b9),_0xa213d1[_0xa213d1[_0x4af93f(0x254)]=0x9]=_0x4af93f(0x254),_0xa213d1[_0xa213d1[_0x4af93f(0x87)]=0xa]=_0x4af93f(0x87),_0xa213d1[_0xa213d1[_0x4af93f(0x219)]=0x1389]=_0x4af93f(0x219),_0xa213d1[_0xa213d1[_0x4af93f(0x271)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0xa213d1[_0xa213d1[_0x4af93f(0x2ad)]=0x1772]=_0x4af93f(0x2ad),_0xa213d1[_0xa213d1[_0x4af93f(0x129)]=0x1773]=_0x4af93f(0x129),_0xa213d1[_0xa213d1[_0x4af93f(0x266)]=0x1b59]=_0x4af93f(0x266),_0xa213d1[_0xa213d1[_0x4af93f(0x188)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0xa213d1[_0xa213d1[_0x4af93f(0x194)]=0x1b5b]=_0x4af93f(0x194),_0xa213d1[_0xa213d1[_0x4af93f(0x224)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0xa213d1[_0xa213d1[_0x4af93f(0x168)]=0x1b5d]='APPLY_DUPLICATED',_0xa213d1[_0xa213d1[_0x4af93f(0xf9)]=0x1f41]=_0x4af93f(0xf9),_0xa213d1[_0xa213d1[_0x4af93f(0x2da)]=0x2329]=_0x4af93f(0x2da),_0xa213d1[_0xa213d1[_0x4af93f(0xd1)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0xa213d1[_0xa213d1[_0x4af93f(0xf6)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0xa213d1[_0xa213d1[_0x4af93f(0x172)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xa213d1[_0xa213d1['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0xa213d1[_0xa213d1['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x4af93f(0x262),_0xa213d1[_0xa213d1[_0x4af93f(0x19a)]=0x2712]=_0x4af93f(0x19a),_0xa213d1[_0xa213d1[_0x4af93f(0x170)]=0x2713]=_0x4af93f(0x170),_0xa213d1[_0xa213d1['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0xa213d1[_0xa213d1[_0x4af93f(0xf2)]=0x271a]=_0x4af93f(0xf2),_0xa213d1[_0xa213d1[_0x4af93f(0x2b6)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0xa213d1[_0xa213d1[_0x4af93f(0x1d8)]=0x2af9]=_0x4af93f(0x1d8),_0xa213d1[_0xa213d1[_0x4af93f(0x274)]=0x2ee1]=_0x4af93f(0x274),_0xa213d1[_0xa213d1[_0x4af93f(0x2b4)]=0x2ee2]=_0x4af93f(0x2b4),_0xa213d1[_0xa213d1[_0x4af93f(0xb9)]=0x2ee3]=_0x4af93f(0xb9),_0xa213d1[_0xa213d1[_0x4af93f(0x1ed)]=0x2ee4]=_0x4af93f(0x1ed),_0xa213d1[_0xa213d1[_0x4af93f(0x142)]=0x2ee5]=_0x4af93f(0x142),_0xa213d1[_0xa213d1[_0x4af93f(0x234)]=0x32c9]=_0x4af93f(0x234),_0xa213d1[_0xa213d1[_0x4af93f(0x94)]=0x32ca]=_0x4af93f(0x94),_0xa213d1[_0xa213d1['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x4af93f(0x117),_0xa213d1[_0xa213d1[_0x4af93f(0x265)]=-0x1]=_0x4af93f(0x265),_0xa213d1))(ke||{}),_s=Object['getOwnPropertyDescriptor'],hs=(_0x582322,_0x1c30c2,_0x484ad7,_0x5b6ec8)=>{const _0x1678f2=_0x4af93f;for(var _0x51c13c=_0x5b6ec8>0x1?void 0x0:_0x5b6ec8?_s(_0x1c30c2,_0x484ad7):_0x1c30c2,_0x585024=_0x582322[_0x1678f2(0x10c)]-0x1,_0x404ae5;_0x585024>=0x0;_0x585024--)(_0x404ae5=_0x582322[_0x585024])&&(_0x51c13c=_0x404ae5(_0x51c13c)||_0x51c13c);return _0x51c13c;},de=(_0x34bc6a,_0xabbcd0)=>(_0x1d5919,_0x225cc0)=>_0xabbcd0(_0x1d5919,_0x225cc0,_0x34bc6a);exports[_0x4af93f(0x1b4)]=class extends a[_0x4af93f(0x14c)]{constructor(_0x4f4da1,_0xe6e058,_0x1774df){const _0xfdd93d=_0x4af93f;super(),this[_0xfdd93d(0x97)]=_0x4f4da1,this[_0xfdd93d(0x72)]=_0xe6e058,this[_0xfdd93d(0x1f7)]=_0x1774df;}async[_0x4af93f(0x244)](_0x450cf2,_0x39fd17,_0x22b887,..._0x670941){const _0x21b5c3=_0x4af93f;var _0x276954,_0x4bc2a5,_0x3ce559,_0x19baf2;const _0x3f4661=this[_0x21b5c3(0x97)][_0x21b5c3(0xae)]();if(!_0x3f4661)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x26ff70=((_0x276954=this[_0x21b5c3(0x1f7)][_0x21b5c3(0x28b)](u[_0x21b5c3(0x7d)]))!=null?_0x276954:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x450cf2+_0x21b5c3(0xc8)+_0x39fd17,_0x426505=new URL(window[_0x21b5c3(0x9e)]['href']),_0x2ce82e={'scriptId':_0x450cf2,'runId':(_0x4bc2a5=_0x426505['searchParams'][_0x21b5c3(0x27f)]('runId'))!=null?_0x4bc2a5:'','function':_0x39fd17,'unitId':_0x3f4661['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x670941),'invokeId':(_0x3ce559=_0x22b887['invokeId'])!=null?_0x3ce559:'','executionId':(_0x19baf2=_0x22b887[_0x21b5c3(0xef)])!=null?_0x19baf2:''};try{const _0x2a0f3e=await this['_httpService'][_0x21b5c3(0x1de)](_0x26ff70,{'body':_0x2ce82e});return _0x2a0f3e['body'][_0x21b5c3(0x1a2)]&&_0x2a0f3e[_0x21b5c3(0x161)]['error'][_0x21b5c3(0x11e)]!==ke['OK']?_0x21b5c3(0xd8):_0x2a0f3e[_0x21b5c3(0x161)][_0x21b5c3(0x296)];}catch{return'Failed';}}},exports[_0x4af93f(0x1b4)]=hs([de(0x0,a[_0x4af93f(0x9c)]),de(0x1,a[_0x4af93f(0x2a1)](q[_0x4af93f(0x2b0)])),de(0x2,a[_0x4af93f(0x20d)])],exports[_0x4af93f(0x1b4)]),exports[_0x4af93f(0x19b)]=je,exports[_0x4af93f(0x1b3)]=Ee,exports['SheetCollabCursorShape']=Ae,exports[_0x4af93f(0x208)]=ls,exports[_0x4af93f(0x1e1)]=Be;
@@ -1 +1 @@
1
- 'use strict';const _0x135f32=_0x344b;(function(_0x28570b,_0x526e86){const _0x3614e8=_0x344b,_0xa40a40=_0x28570b();while(!![]){try{const _0x25affa=-parseInt(_0x3614e8(0x155))/0x1+-parseInt(_0x3614e8(0x165))/0x2+parseInt(_0x3614e8(0x159))/0x3*(-parseInt(_0x3614e8(0x156))/0x4)+-parseInt(_0x3614e8(0x164))/0x5+-parseInt(_0x3614e8(0x15e))/0x6*(parseInt(_0x3614e8(0x158))/0x7)+-parseInt(_0x3614e8(0x152))/0x8*(-parseInt(_0x3614e8(0x15a))/0x9)+parseInt(_0x3614e8(0x15f))/0xa*(parseInt(_0x3614e8(0x162))/0xb);if(_0x25affa===_0x526e86)break;else _0xa40a40['push'](_0xa40a40['shift']());}catch(_0x328be1){_0xa40a40['push'](_0xa40a40['shift']());}}}(_0x517c,0xd0621));function _0x344b(_0x311439,_0x1f40da){const _0x517c77=_0x517c();return _0x344b=function(_0x344bbd,_0x58eae0){_0x344bbd=_0x344bbd-0x150;let _0x2f18c4=_0x517c77[_0x344bbd];return _0x2f18c4;},_0x344b(_0x311439,_0x1f40da);}function _0x517c(){const _0x1867dc=['8zThehN','Authentication\x20Error','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','750349JKIwCd','1736iWkqbl','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1250977lTyfMA','1149osWWHC','807255noyLYG','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','12KaKmiw','30izxpIO','Local\x20file','Synced','16454449eiTAsK','Edit\x20conflicts','4115305YBPqEA','3253362HnrRnp','Syncing...','Syncing\x20server\x20data...'];_0x517c=function(){return _0x1867dc;};return _0x517c();}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x135f32(0x151),'conflict':_0x135f32(0x163),'notCollab':_0x135f32(0x160),'synced':_0x135f32(0x161),'syncing':_0x135f32(0x150),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':_0x135f32(0x15c),'collaboration-timeout':_0x135f32(0x15d)},'conflict':{'title':'Collaboration\x20Conflict','content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x135f32(0x153),'content':_0x135f32(0x154)},'collaboration':{'single-unit':{'warning':_0x135f32(0x157)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x135f32(0x15b)}};module['exports']=e;
1
+ 'use strict';function _0x1866(_0x412165,_0x86c43){const _0x327358=_0x3273();return _0x1866=function(_0x186650,_0x1e14b8){_0x186650=_0x186650-0xfa;let _0x683b40=_0x327358[_0x186650];return _0x683b40;},_0x1866(_0x412165,_0x86c43);}const _0x29effc=_0x1866;(function(_0x385451,_0x432292){const _0x273daa=_0x1866,_0x4ec75f=_0x385451();while(!![]){try{const _0x38a61b=-parseInt(_0x273daa(0x104))/0x1*(parseInt(_0x273daa(0xfd))/0x2)+-parseInt(_0x273daa(0xfc))/0x3*(parseInt(_0x273daa(0x100))/0x4)+-parseInt(_0x273daa(0x110))/0x5*(-parseInt(_0x273daa(0xfb))/0x6)+parseInt(_0x273daa(0x112))/0x7+-parseInt(_0x273daa(0x10e))/0x8*(-parseInt(_0x273daa(0x10f))/0x9)+parseInt(_0x273daa(0x108))/0xa*(parseInt(_0x273daa(0x109))/0xb)+parseInt(_0x273daa(0x106))/0xc;if(_0x38a61b===_0x432292)break;else _0x4ec75f['push'](_0x4ec75f['shift']());}catch(_0x544388){_0x4ec75f['push'](_0x4ec75f['shift']());}}}(_0x3273,0x74f8d));function _0x3273(){const _0xa518ae=['5502384bFYiBg','Synced','10bEeSnq','615274pDjSDc','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','exports','Edit\x20conflicts','1760zRZwgn','15453pIMyIr','5zwVBwt','Syncing...','4041184zKfFmo','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Connection\x20failed,\x20please\x20check\x20your\x20network.','858684NwsbmP','303hJpSkd','2WrgYIQ','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Local\x20file','14704gofRhU','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','762239MbwGsZ','Syncing\x20server\x20data...'];_0x3273=function(){return _0xa518ae;};return _0x3273();}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x29effc(0x105),'conflict':_0x29effc(0x10d),'notCollab':_0x29effc(0xff),'synced':_0x29effc(0x107),'syncing':_0x29effc(0x111),'offline':_0x29effc(0x10a)},'session':{'connection-failed':_0x29effc(0xfa),'will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x29effc(0x10b)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x29effc(0x101)},'permission':{'title':'Authentication\x20Error','content':_0x29effc(0x102)},'collaboration':{'single-unit':{'warning':_0x29effc(0xfe)},'closeRoom':_0x29effc(0x113)},'auth':{'needGotoLoginAlert':_0x29effc(0x103)}};module[_0x29effc(0x10c)]=e;