@univerjs-pro/collaboration-client-ui 0.6.10-experimental.20250418-8830bd4 → 0.6.10-experimental.20250419-1304630
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2c9f1d=_0x19d3;(function(_0x3b0034,_0x2b36ee){const _0x223c55=_0x19d3,_0x10b85a=_0x3b0034();while(!![]){try{const _0x32200e=-parseInt(_0x223c55(0x128))/0x1+-parseInt(_0x223c55(0x116))/0x2*(parseInt(_0x223c55(0x11a))/0x3)+parseInt(_0x223c55(0x120))/0x4*(-parseInt(_0x223c55(0x122))/0x5)+-parseInt(_0x223c55(0x11e))/0x6*(parseInt(_0x223c55(0x121))/0x7)+parseInt(_0x223c55(0x11b))/0x8+-parseInt(_0x223c55(0x126))/0x9*(-parseInt(_0x223c55(0x11d))/0xa)+-parseInt(_0x223c55(0x127))/0xb*(-parseInt(_0x223c55(0x124))/0xc);if(_0x32200e===_0x2b36ee)break;else _0x10b85a['push'](_0x10b85a['shift']());}catch(_0x1012bb){_0x10b85a['push'](_0x10b85a['shift']());}}}(_0x130c,0xcef51));function _0x130c(){const _0x289098=['extend','FUniver','_injector','12aTqhFW','10534728sJDjLz','@univerjs/core/facade','32050GqgHdZ','816cJBzoJ','runOnServer','4052MzUaQa','7021aYiUza','5965INUlgP','RemoteUniscriptService','5166672EXBoqH','get','2727VfwANx','22uTKdLj','847106neJOAr','54674BEYoTy'];_0x130c=function(){return _0x289098;};return _0x130c();}const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0x2c9f1d(0x11c));function _0x19d3(_0x290036,_0x317c6e){const _0x130c07=_0x130c();return _0x19d3=function(_0x19d364,_0x141ead){_0x19d364=_0x19d364-0x116;let _0x5e8626=_0x130c07[_0x19d364];return _0x5e8626;},_0x19d3(_0x290036,_0x317c6e);}class c extends e[_0x2c9f1d(0x118)]{[_0x2c9f1d(0x11f)](_0x1f9390,_0x1c2c00,..._0x46534c){const _0x4bbf07=_0x2c9f1d;return this[_0x4bbf07(0x119)][_0x4bbf07(0x125)](t[_0x4bbf07(0x123)])[_0x4bbf07(0x11f)](_0x1f9390,_0x1c2c00,{},..._0x46534c);}}e[_0x2c9f1d(0x118)][_0x2c9f1d(0x117)](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 _0x3e6264=_0x5852;(function(_0x4f627e,_0xf58bb4){const _0x598491=_0x5852,_0x368b9d=_0x4f627e();while(!![]){try{const _0x4b077a=-parseInt(_0x598491(0x14f))/0x1*(-parseInt(_0x598491(0x3ab))/0x2)+-parseInt(_0x598491(0x38f))/0x3+parseInt(_0x598491(0x314))/0x4*(-parseInt(_0x598491(0x34a))/0x5)+-parseInt(_0x598491(0x1d9))/0x6*(-parseInt(_0x598491(0x1e8))/0x7)+-parseInt(_0x598491(0x1b8))/0x8*(parseInt(_0x598491(0x35e))/0x9)+parseInt(_0x598491(0x20a))/0xa+-parseInt(_0x598491(0x16a))/0xb*(-parseInt(_0x598491(0x1a6))/0xc);if(_0x4b077a===_0xf58bb4)break;else _0x368b9d['push'](_0x368b9d['shift']());}catch(_0x3b2e57){_0x368b9d['push'](_0x368b9d['shift']());}}}(_0x4b4f,0xc83fe));var Xe=Object['defineProperty'],Ge=(_0x55ecb6,_0x59093e,_0x19ba8d)=>_0x59093e in _0x55ecb6?Xe(_0x55ecb6,_0x59093e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19ba8d}):_0x55ecb6[_0x59093e]=_0x19ba8d,_=(_0xf40add,_0x2336b8,_0xc3c768)=>Ge(_0xf40add,typeof _0x2336b8!=_0x3e6264(0x235)?_0x2336b8+'':_0x2336b8,_0xc3c768);Object[_0x3e6264(0x1e0)](exports,Symbol[_0x3e6264(0x37e)],{'value':_0x3e6264(0x338)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x3e6264(0x2bb)),p=require(_0x3e6264(0x1f6)),q=require(_0x3e6264(0x180)),b=require(_0x3e6264(0x369)),qe=require(_0x3e6264(0x267)),d=require(_0x3e6264(0x21f)),Y=require(_0x3e6264(0x227)),m=require(_0x3e6264(0x2ca)),Te=require(_0x3e6264(0x230)),g=require(_0x3e6264(0x363)),$=require('rxjs/operators'),G=require(_0x3e6264(0x1b3)),P=require(_0x3e6264(0x254)),O=require(_0x3e6264(0x2ff)),T=require(_0x3e6264(0x296)),M=require('react'),Ke=require(_0x3e6264(0x22f));function _0x5852(_0x262219,_0x44a8bb){const _0x4b4fec=_0x4b4f();return _0x5852=function(_0x585268,_0x26fc8b){_0x585268=_0x585268-0x143;let _0xe523c=_0x4b4fec[_0x585268];return _0xe523c;},_0x5852(_0x262219,_0x44a8bb);}var ze=Object[_0x3e6264(0x2f9)],Je=(_0x30c8dc,_0x43fe9d,_0x233d20,_0x279733)=>{const _0x353591=_0x3e6264;for(var _0x8859a1=_0x279733>0x1?void 0x0:_0x279733?ze(_0x43fe9d,_0x233d20):_0x43fe9d,_0x3a44f0=_0x30c8dc[_0x353591(0x26b)]-0x1,_0x25ea79;_0x3a44f0>=0x0;_0x3a44f0--)(_0x25ea79=_0x30c8dc[_0x3a44f0])&&(_0x8859a1=_0x25ea79(_0x8859a1)||_0x8859a1);return _0x8859a1;},Oe=(_0x517873,_0x5d5cf7)=>(_0x3d30ee,_0x18fc0b)=>_0x5d5cf7(_0x3d30ee,_0x18fc0b,_0x517873);let fe=class extends a['RxDisposable']{constructor(_0x5669ea,_0x5055bd){const _0x4d0690=_0x3e6264;super(),this[_0x4d0690(0x2a9)]=_0x5669ea,this[_0x4d0690(0x2c6)]=_0x5055bd,this[_0x4d0690(0x3d1)]();}['_init'](){const _0x10425c=_0x3e6264,_0x55e683=this;this[_0x10425c(0x337)](this[_0x10425c(0x2a9)][_0x10425c(0x30e)]({'onBeforePasteImage':async _0x49b691=>{const _0x279966=_0x10425c,_0x5b8f2c=await _0x55e683[_0x279966(0x2c6)]['saveImage'](_0x49b691);return _0x5b8f2c?{'source':_0x5b8f2c[_0x279966(0x23b)],'imageSourceType':_0x5b8f2c[_0x279966(0x166)]}:null;}}));}};fe=Je([Oe(0x0,b[_0x3e6264(0x221)]),Oe(0x1,qe[_0x3e6264(0x350)])],fe);const Re=[_0x3e6264(0x3bb),_0x3e6264(0x361),'verdancy600',_0x3e6264(0x20d),_0x3e6264(0x312),_0x3e6264(0x3a9)];class Ce extends a['Disposable']{constructor(){const _0x3bd2d0=_0x3e6264;super(...arguments),_(this,_0x3bd2d0(0x31b),new Map()),_(this,_0x3bd2d0(0x2ea),0x0);}[_0x3e6264(0x375)](_0x5d9873){const _0x2f2627=_0x3e6264;if(this[_0x2f2627(0x31b)][_0x2f2627(0x1d0)](_0x5d9873))return this[_0x2f2627(0x31b)][_0x2f2627(0x320)](_0x5d9873);const _0x2ac697=Re[this[_0x2f2627(0x2ea)]];return this[_0x2f2627(0x2ea)]=(this[_0x2f2627(0x2ea)]+0x1)%Re[_0x2f2627(0x26b)],this[_0x2f2627(0x31b)][_0x2f2627(0x2a6)](_0x5d9873,_0x2ac697),_0x2ac697;}}function we(_0x217099){const _0x523f63=_0x3e6264;let _0x55ebd3='';for(const _0x595cf3 of _0x217099){const {startOffset:_0x50d062,endOffset:_0x1f05ee,isActive:_0x507a84,rangeType:_0x25f8fd,segmentId:_0x4f1ed6,segmentPage:_0x5988dd}=_0x595cf3;_0x55ebd3[_0x523f63(0x26b)]&&(_0x55ebd3+=','),_0x55ebd3+=_0x50d062+':'+_0x1f05ee+':'+(_0x507a84?'1':'0')+':'+_0x25f8fd+':'+_0x4f1ed6+':'+_0x5988dd;}return _0x55ebd3;}function Ze(_0x2bc359){const _0x434f52=_0x3e6264,_0x175b28=_0x2bc359[_0x434f52(0x1c7)](','),_0x5acdf0=[];for(const _0xec2d57 of _0x175b28){const [_0x2e7f72,_0x2885b8,_0x32004,_0xc7675a,_0x20918b,_0x3efe2e]=_0xec2d57['split'](':');_0x5acdf0[_0x434f52(0x228)]({'startOffset':Number(_0x2e7f72),'endOffset':Number(_0x2885b8),'collapsed':_0x2e7f72===_0x2885b8,'isActive':_0x32004==='1','rangeType':_0xc7675a===a[_0x434f52(0x260)][_0x434f52(0x25a)]?a[_0x434f52(0x260)]['TEXT']:a[_0x434f52(0x260)][_0x434f52(0x269)],'segmentId':typeof _0x20918b==_0x434f52(0x3b8)?String(_0x20918b):'','segmentPage':Number(_0x3efe2e!=null?_0x3efe2e:-0x1)});}return _0x5acdf0[_0x434f52(0x146)](_0x4c2493=>_0x4c2493[_0x434f52(0x22b)])||(_0x5acdf0[0x0][_0x434f52(0x22b)]=!0x0),_0x5acdf0;}class pe extends a[_0x3e6264(0x38b)]{constructor(){const _0x5a83df=_0x3e6264;super(...arguments),_(this,_0x5a83df(0x1ff),new d['BehaviorSubject'](null)),_(this,_0x5a83df(0x376),this[_0x5a83df(0x1ff)][_0x5a83df(0x301)]());}[_0x3e6264(0x2ba)](_0xceffaf){const _0x41591f=_0x3e6264,{unitID:_0x5a5451,memberID:_0x42b024,textRanges:_0x4eeea9}=_0xceffaf,_0x3321c0=we(_0x4eeea9);if(_0x3321c0==='')return;const _0x38488c={'unitID':_0x5a5451,'memberID':_0x42b024,'selection':_0x3321c0};this[_0x41591f(0x1ff)][_0x41591f(0x360)](_0x38488c);}}var Qe=Object[_0x3e6264(0x2f9)],et=(_0x18fe43,_0x4add70,_0x3778f1,_0x1c355)=>{const _0x519ed5=_0x3e6264;for(var _0x507801=_0x1c355>0x1?void 0x0:_0x1c355?Qe(_0x4add70,_0x3778f1):_0x4add70,_0x34afc2=_0x18fe43[_0x519ed5(0x26b)]-0x1,_0x8dbbc7;_0x34afc2>=0x0;_0x34afc2--)(_0x8dbbc7=_0x18fe43[_0x34afc2])&&(_0x507801=_0x8dbbc7(_0x507801)||_0x507801);return _0x507801;},L=(_0x280293,_0x3a679f)=>(_0x2629e9,_0x27d574)=>_0x3a679f(_0x2629e9,_0x27d574,_0x280293);const tt=0x12c,st=0x64;let Se=class extends a[_0x3e6264(0x38b)]{constructor(_0x3934ef,_0x2fdfa2,_0x5d018f,_0x1ec258,_0x3d1f40,_0x4b3443,_0x49c0a2,_0x30a52e,_0x20aeca){const _0x5692b8=_0x3e6264;super(),_(this,'_online',!0x1),_(this,_0x5692b8(0x3d1),!0x1),_(this,_0x5692b8(0x265),new d[(_0x5692b8(0x2cc))](new Map())),_(this,_0x5692b8(0x1db),this[_0x5692b8(0x265)]['asObservable']()),_(this,_0x5692b8(0x36e),new d[(_0x5692b8(0x2cc))]([])),_(this,_0x5692b8(0x1a0),this[_0x5692b8(0x36e)]['pipe'](d['debounceTime'](tt))),_(this,_0x5692b8(0x3a2),a['debounce'](_0x1e29f6=>{const _0x5a37a0=_0x5692b8,_0x4c4e47={'eventID':m[_0x5a37a0(0x192)][_0x5a37a0(0x172)],'data':{'unitID':this[_0x5a37a0(0x255)],'memberID':this[_0x5a37a0(0x293)][_0x5a37a0(0x3d4)](),'selection':we(_0x1e29f6)}};this[_0x5a37a0(0x293)]['send'](_0x4c4e47,this['unitID']);},st)),(this[_0x5692b8(0x255)]=_0x3934ef,this['_session']=_0x2fdfa2,this[_0x5692b8(0x1eb)]=_0x5d018f,this[_0x5692b8(0x20c)]=_0x1ec258,this[_0x5692b8(0x2e9)]=_0x3d1f40,this[_0x5692b8(0x3b5)]=_0x4b3443,this[_0x5692b8(0x191)]=_0x49c0a2,this['_univerInstanceService']=_0x30a52e,this[_0x5692b8(0x277)]=_0x20aeca);}get[_0x3e6264(0x23a)](){const _0x5d31aa=_0x3e6264;return this[_0x5d31aa(0x265)][_0x5d31aa(0x21c)]();}get[_0x3e6264(0x187)](){const _0x1e4702=_0x3e6264;return this['_roomMembers$'][_0x1e4702(0x21c)]();}[_0x3e6264(0x2b7)](){const _0x505538=_0x3e6264;super['dispose'](),this['_cursorInfo$'][_0x505538(0x360)](new Map()),this[_0x505538(0x265)][_0x505538(0x197)](),this[_0x505538(0x36e)]['next']([]),this['_roomMembers$'][_0x505538(0x197)]();}[_0x3e6264(0x256)](){const _0x47b860=_0x3e6264;this[_0x47b860(0x3d1)]||(this[_0x47b860(0x3d1)]=!0x0,this[_0x47b860(0x293)][_0x47b860(0x2d8)][_0x47b860(0x170)](d['takeUntil'](this['dispose$']))[_0x47b860(0x349)](_0x4c62b7=>{const _0x5a9b88=_0x47b860;_0x4c62b7===u[_0x5a9b88(0x1c3)][_0x5a9b88(0x1d6)]?this[_0x5a9b88(0x2e6)]():this[_0x5a9b88(0x1d3)]();}),this[_0x47b860(0x293)]['event$'][_0x47b860(0x170)](d[_0x47b860(0x1b7)](this[_0x47b860(0x1c2)]))[_0x47b860(0x349)](_0x4f392a=>{const _0x5ce12f=_0x47b860,_0x247bcd=_0x4f392a[_0x5ce12f(0x357)];_0x247bcd===m[_0x5ce12f(0x192)][_0x5ce12f(0x172)]&&this['_onCursorUpdate'](_0x4f392a),_0x247bcd===m[_0x5ce12f(0x192)][_0x5ce12f(0x261)]&&this['_onCursorDelete'](_0x4f392a);}),this[_0x47b860(0x337)](this[_0x47b860(0x277)][_0x47b860(0x374)](_0xcaaffb=>{const _0x681395=_0x47b860,_0xe95ec3=_0xcaaffb[_0x681395(0x2d9)];_0xe95ec3!=null&&this[_0x681395(0x28e)]&&_0xcaaffb['id']===Y[_0x681395(0x330)]['id']&&_0xe95ec3[_0x681395(0x358)]===this['unitID']&&_0xe95ec3[_0x681395(0x33c)]===!0x1&&_0xe95ec3['ranges'][_0x681395(0x26b)]>0x0&&this['_updateLocalCursor'](_0xe95ec3[_0x681395(0x25d)]);})),this[_0x47b860(0x3b5)][_0x47b860(0x376)][_0x47b860(0x170)](d[_0x47b860(0x1b7)](this[_0x47b860(0x1c2)]))[_0x47b860(0x349)](_0x30459d=>{const _0x11a4f9=_0x47b860;if((_0x30459d==null?void 0x0:_0x30459d[_0x11a4f9(0x255)])!==this[_0x11a4f9(0x255)])return;const _0x4b6924={'eventID':m[_0x11a4f9(0x192)]['UPDATE_CURSOR'],'data':_0x30459d};this[_0x11a4f9(0x29e)](_0x4b6924);}),this['disposeWithMe'](this[_0x47b860(0x277)][_0x47b860(0x374)](_0x528bda=>{const _0x6a394c=_0x47b860;if(_0x528bda[_0x6a394c(0x2d9)]==null)return;const _0x5d206e=_0x528bda['params'];if(_0x528bda['id']!==Y[_0x6a394c(0x1a8)]['id']||_0x5d206e[_0x6a394c(0x358)]!==this['unitID'])return;const _0x45c04c={'id':_0x6a394c(0x2e7),'params':_0x5d206e},_0x5de099=this[_0x6a394c(0x23a)];for(const [_0x4493f0,_0x4670f3]of _0x5de099){const _0x581279={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x4670f3[_0x6a394c(0x25d)]}},_0x42918d=this['_transformService'][_0x6a394c(0x2af)](_0x45c04c,_0x581279,!0x1);if(m['isTransformMutationFailure'](_0x42918d))throw _0x42918d[_0x6a394c(0x328)];_0x5de099[_0x6a394c(0x2a6)](_0x4493f0,{..._0x4670f3,'ranges':_0x42918d[_0x6a394c(0x203)][_0x6a394c(0x2d9)][_0x6a394c(0x22c)]});}queueMicrotask(()=>{const _0x5d450d=_0x6a394c;this[_0x5d450d(0x265)]['next'](_0x5de099);});})));}[_0x3e6264(0x29e)](_0x360a71){const _0x349237=_0x3e6264;var _0x1b348c,_0x4f916d;const {memberID:_0x23f39e,selection:_0x27c9c7}=_0x360a71[_0x349237(0x27e)],_0x2de169=Ze(_0x27c9c7),_0x5e36a4=(_0x4f916d=(_0x1b348c=this['_memberService'][_0x349237(0x272)](this[_0x349237(0x255)],_0x23f39e))==null?void 0x0:_0x1b348c[_0x349237(0x33f)])!=null?_0x4f916d:_0x349237(0x150),_0x3cac6e={'color':this['_colorAssignService'][_0x349237(0x375)](_0x23f39e),'name':_0x5e36a4,'ranges':_0x2de169},_0x1cfdf1=this[_0x349237(0x23a)];_0x1cfdf1[_0x349237(0x2a6)](_0x23f39e,_0x3cac6e),this[_0x349237(0x265)][_0x349237(0x360)](_0x1cfdf1);}[_0x3e6264(0x1bc)](_0x3a722c){const _0xfa9e16=_0x3e6264,{memberID:_0x55a908}=_0x3a722c['data'],_0x527a11=this['cursorInfo'];_0x527a11[_0xfa9e16(0x1fd)](_0x55a908),this[_0xfa9e16(0x265)][_0xfa9e16(0x360)](_0x527a11);}['_toggleOnline'](){const _0x3cb539=_0x3e6264;var _0x1b28c1;if(this['_online']=!0x0,((_0x1b28c1=this[_0x3cb539(0x2e3)][_0x3cb539(0x195)]())==null?void 0x0:_0x1b28c1[_0x3cb539(0x2ac)]())!==this['unitID'])return;const _0x3293a5=this[_0x3cb539(0x1eb)][_0x3cb539(0x320)](Y[_0x3cb539(0x35a)])[_0x3cb539(0x367)]();Array['isArray'](_0x3293a5)&&_0x3293a5[_0x3cb539(0x26b)]>0x0&&this[_0x3cb539(0x3a2)](_0x3293a5);}[_0x3e6264(0x1d3)](){const _0x247935=_0x3e6264;this[_0x247935(0x28e)]=!0x1;}};Se=et([L(0x2,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),L(0x3,a['Inject'](Ce)),L(0x4,a[_0x3e6264(0x1f4)](u[_0x3e6264(0x1ee)])),L(0x5,a[_0x3e6264(0x1f4)](pe)),L(0x6,m[_0x3e6264(0x278)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x3e6264(0x39f)])],Se);var nt=Object[_0x3e6264(0x2f9)],it=(_0xd4afca,_0x2ec3e3,_0x496a7e,_0x55a745)=>{const _0x3d65ef=_0x3e6264;for(var _0x5500aa=_0x55a745>0x1?void 0x0:_0x55a745?nt(_0x2ec3e3,_0x496a7e):_0x2ec3e3,_0xad94d5=_0xd4afca[_0x3d65ef(0x26b)]-0x1,_0x282d71;_0xad94d5>=0x0;_0xad94d5--)(_0x282d71=_0xd4afca[_0xad94d5])&&(_0x5500aa=_0x282d71(_0x5500aa)||_0x5500aa);return _0x5500aa;},A=(_0x20581a,_0x178b5)=>(_0x267f60,_0x22401a)=>_0x178b5(_0x267f60,_0x22401a,_0x20581a);const rt=0x12c,ot=0x64,at=()=>{let _0x1a33bc=[],_0x330dcf=!0x1;return _0x1c51c1=>{_0x1a33bc['push'](_0x1c51c1),_0x330dcf||(_0x330dcf=!0x0,setTimeout(()=>{const _0x1d7946=_0x5852;_0x1a33bc[_0x1d7946(0x3c8)](_0x5336dd=>_0x5336dd()),_0x1a33bc=[],_0x330dcf=!0x1;}));};};let Ie=class extends a['RxDisposable']{constructor(_0x2a3dd3,_0x46ab75,_0x23475f,_0x508d13,_0x507ad5,_0x33b84c,_0x10c833,_0xfe4a1e){const _0x428b76=_0x3e6264;super(),_(this,_0x428b76(0x28e),!0x1),_(this,_0x428b76(0x3d1),!0x1),_(this,'_cursorInfo$',new d[(_0x428b76(0x2cc))](new Map())),_(this,_0x428b76(0x1db),this[_0x428b76(0x265)][_0x428b76(0x301)]()),_(this,_0x428b76(0x36e),new d[(_0x428b76(0x2cc))]([])),_(this,_0x428b76(0x1a0),this[_0x428b76(0x36e)]['pipe'](d[_0x428b76(0x32e)](rt))),_(this,_0x428b76(0x3a2),a[_0x428b76(0x2d4)]((_0x4b91a1,_0x199804)=>{const _0x149c66=_0x428b76,_0x57a5b3={'eventID':m['CollaborationEvent'][_0x149c66(0x172)],'data':{'unitID':this[_0x149c66(0x255)],'memberID':this[_0x149c66(0x293)][_0x149c66(0x3d4)](),'selection':Te[_0x149c66(0x26d)](_0x4b91a1,_0x199804[_0x149c66(0x2d2)])}};this['_session'][_0x149c66(0x25e)](_0x57a5b3,this[_0x149c66(0x255)]);},ot)),(this['unitID']=_0x2a3dd3,this[_0x428b76(0x293)]=_0x46ab75,this['_injector']=_0x23475f,this['_colorAssignService']=_0x508d13,this[_0x428b76(0x2e9)]=_0x507ad5,this[_0x428b76(0x2e3)]=_0x33b84c,this['_commandService']=_0x10c833,this[_0x428b76(0x2c0)]=_0xfe4a1e);}get['cursorInfo'](){const _0x50d5de=_0x3e6264;return this[_0x50d5de(0x265)]['getValue']();}get['roomMembers'](){const _0x3a6850=_0x3e6264;return this[_0x3a6850(0x36e)]['getValue']();}['dispose'](){const _0x3575cd=_0x3e6264;super['dispose'](),this[_0x3575cd(0x265)][_0x3575cd(0x360)](new Map()),this[_0x3575cd(0x265)][_0x3575cd(0x197)](),this[_0x3575cd(0x36e)][_0x3575cd(0x360)]([]),this[_0x3575cd(0x36e)][_0x3575cd(0x197)]();}[_0x3e6264(0x256)](){const _0x2ba915=_0x3e6264;this['_init']||(this[_0x2ba915(0x3d1)]=!0x0,this[_0x2ba915(0x293)][_0x2ba915(0x2d8)][_0x2ba915(0x170)](d[_0x2ba915(0x1b7)](this[_0x2ba915(0x1c2)]))[_0x2ba915(0x349)](_0x3fdb9b=>{const _0x8cac89=_0x2ba915;_0x3fdb9b===u[_0x8cac89(0x1c3)][_0x8cac89(0x1d6)]?this[_0x8cac89(0x2e6)]():this[_0x8cac89(0x1d3)]();}),this['_session']['event$'][_0x2ba915(0x170)](d[_0x2ba915(0x1b7)](this['dispose$']))[_0x2ba915(0x349)](_0x59f61a=>{const _0x5c832f=_0x2ba915,_0xd8ef8d=_0x59f61a[_0x5c832f(0x357)];_0xd8ef8d===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x5c832f(0x29e)](_0x59f61a),_0xd8ef8d===m[_0x5c832f(0x192)]['USERS_LEAVE']&&this[_0x5c832f(0x1bc)](_0x59f61a);}),this['_onRefRangeChange'](),this[_0x2ba915(0x337)](this[_0x2ba915(0x277)][_0x2ba915(0x374)](_0xf90e79=>{const _0x33a1b5=_0x2ba915;if(this[_0x33a1b5(0x28e)]&&_0xf90e79['id']===g[_0x33a1b5(0x313)]['id']&&_0xf90e79[_0x33a1b5(0x2d9)][_0x33a1b5(0x358)]===this[_0x33a1b5(0x255)]){const _0x290344=_0xf90e79[_0x33a1b5(0x2d9)];this[_0x33a1b5(0x3a2)](_0x290344[_0x33a1b5(0x16f)],_0x290344[_0x33a1b5(0x143)][0x0]);}})));}[_0x3e6264(0x29e)](_0x2985f6){const _0x5be3af=_0x3e6264;var _0x3769df,_0x56cc55;const {memberID:_0x1270cb,selection:_0x27f14d}=_0x2985f6[_0x5be3af(0x27e)],{sheetName:_0x3776db,range:_0x20f4d6}=Te[_0x5be3af(0x2c3)](_0x27f14d),_0x23ca1a={'name':(_0x56cc55=(_0x3769df=this[_0x5be3af(0x2e9)][_0x5be3af(0x272)](this[_0x5be3af(0x255)],_0x1270cb))==null?void 0x0:_0x3769df[_0x5be3af(0x33f)])!=null?_0x56cc55:'Unknown\x20user','range':this[_0x5be3af(0x2ec)](_0x3776db,_0x20f4d6),'sheetID':_0x3776db,'color':this[_0x5be3af(0x20c)][_0x5be3af(0x375)](_0x1270cb),'selection':_0x27f14d},_0x5c99c2=this[_0x5be3af(0x23a)];_0x5c99c2[_0x5be3af(0x2a6)](_0x1270cb,_0x23ca1a),this[_0x5be3af(0x265)][_0x5be3af(0x360)](_0x5c99c2);}[_0x3e6264(0x1bc)](_0x3183fa){const _0xc3b942=_0x3e6264,{memberID:_0x11fa25}=_0x3183fa[_0xc3b942(0x27e)],_0x27b679=this['cursorInfo'];_0x27b679['delete'](_0x11fa25),this[_0xc3b942(0x265)][_0xc3b942(0x360)](_0x27b679);}[_0x3e6264(0x2ec)](_0x4dfecf,_0x1339cb){const _0x547765=_0x3e6264;var _0x33244b,_0x59fdd5;const _0x25ac26=(_0x59fdd5=(_0x33244b=this['_univerInstanceService']['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x33244b[_0x547765(0x15e)](_0x4dfecf))==null?void 0x0:_0x59fdd5['getMergeData']();return(_0x25ac26==null?void 0x0:_0x25ac26[_0x547765(0x30b)](_0x5f2cdb=>a[_0x547765(0x2ce)][_0x547765(0x3c4)](_0x5f2cdb,_0x1339cb)))||_0x1339cb;}[_0x3e6264(0x31f)](){const _0x234ec2=_0x3e6264,_0x406de2=new a[(_0x234ec2(0x3af))](),_0x19c0c1=at(),_0x387d9e=()=>{const _0x6820c=_0x234ec2;_0x406de2[_0x6820c(0x2b7)]();const _0x18cef9=(_0x3858be,_0x32b8b9,_0x39a388,_0x1ae921)=>{const _0x39d1ac=_0x6820c;let _0x346e7a=[];switch(_0x3858be['id']){case g[_0x39d1ac(0x318)][_0x39d1ac(0x1b2)]:{_0x346e7a=g[_0x39d1ac(0x1ec)](_0x3858be,_0x1ae921);break;}case g['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x346e7a=g[_0x39d1ac(0x28f)](_0x3858be,_0x1ae921);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x346e7a=g['handleInsertCol'](_0x3858be,_0x1ae921);break;}case g[_0x39d1ac(0x318)][_0x39d1ac(0x284)]:{_0x346e7a=g[_0x39d1ac(0x2da)](_0x3858be,_0x1ae921);break;}case g['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x346e7a=g[_0x39d1ac(0x1df)](_0x3858be,_0x1ae921);break;}case g['EffectRefRangId'][_0x39d1ac(0x339)]:{_0x346e7a=g['handleInsertRow'](_0x3858be,_0x1ae921);break;}case g['EffectRefRangId'][_0x39d1ac(0x210)]:{_0x346e7a=g[_0x39d1ac(0x1ac)](_0x3858be,_0x1ae921);break;}case g['EffectRefRangId'][_0x39d1ac(0x346)]:{_0x346e7a=g[_0x39d1ac(0x319)](_0x3858be,_0x1ae921);break;}case g[_0x39d1ac(0x318)][_0x39d1ac(0x36b)]:{_0x346e7a=g['handleIRemoveRow'](_0x3858be,_0x1ae921);break;}}const _0x273589=g[_0x39d1ac(0x164)](_0x346e7a,_0x1ae921),_0x2f185b=this[_0x39d1ac(0x23a)][_0x39d1ac(0x320)](_0x32b8b9);if(_0x2f185b&&_0x273589){const _0x4a4d5d={..._0x2f185b,'range':_0x273589};this[_0x39d1ac(0x23a)][_0x39d1ac(0x2a6)](_0x32b8b9,_0x4a4d5d),_0x19c0c1(()=>{const _0xcd407e=_0x39d1ac,_0x5171b1=this[_0xcd407e(0x2c0)]['registerRefRange'](_0x273589,_0x575009=>(_0x5171b1['dispose'](),_0x18cef9(_0x575009,_0x32b8b9,_0x39a388,_0x273589)));_0x406de2[_0xcd407e(0x229)](_0x5171b1);});}return{'redos':[],'undos':[]};};this[_0x6820c(0x23a)][_0x6820c(0x3c8)]((_0x421ec9,_0x44fcde)=>{const _0x39850b=_0x6820c,{range:_0x400e9c,sheetID:_0x108560}=_0x421ec9,_0x251541=this[_0x39850b(0x2c0)][_0x39850b(0x2a2)](_0x400e9c,_0x1d38d7=>(_0x251541[_0x39850b(0x2b7)](),_0x18cef9(_0x1d38d7,_0x44fcde,_0x108560,_0x400e9c)));_0x406de2[_0x39850b(0x229)](_0x251541);});};this[_0x234ec2(0x337)](a[_0x234ec2(0x22e)](this[_0x234ec2(0x265)][_0x234ec2(0x349)](()=>{_0x387d9e();})));}[_0x3e6264(0x2e6)](){const _0x1c3a8a=_0x3e6264;var _0x156f07,_0x108d06;if(this[_0x1c3a8a(0x28e)]=!0x0,((_0x156f07=this['_univerInstanceService'][_0x1c3a8a(0x195)]())==null?void 0x0:_0x156f07[_0x1c3a8a(0x2ac)]())!==this[_0x1c3a8a(0x255)])return;const _0x1d2bb5=(_0x108d06=this[_0x1c3a8a(0x1eb)]['get'](g[_0x1c3a8a(0x27f)])[_0x1c3a8a(0x24c)]())==null?void 0x0:_0x108d06[0x0],_0x5b2cbc=this[_0x1c3a8a(0x2e3)][_0x1c3a8a(0x292)](a[_0x1c3a8a(0x359)][_0x1c3a8a(0x1b6)])['getActiveSheet']();_0x1d2bb5&&_0x5b2cbc&&this[_0x1c3a8a(0x3a2)](_0x5b2cbc[_0x1c3a8a(0x290)](),_0x1d2bb5);}[_0x3e6264(0x1d3)](){const _0x280058=_0x3e6264;this[_0x280058(0x28e)]=!0x1;}};Ie=it([A(0x2,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),A(0x3,a[_0x3e6264(0x1f4)](Ce)),A(0x4,a[_0x3e6264(0x1f4)](u[_0x3e6264(0x1ee)])),A(0x5,a[_0x3e6264(0x26a)]),A(0x6,a[_0x3e6264(0x39f)]),A(0x7,a[_0x3e6264(0x1f4)](g[_0x3e6264(0x1c6)]))],Ie);var ct=Object[_0x3e6264(0x2f9)],lt=(_0x2cf040,_0x2acaf2,_0x57f35e,_0x318399)=>{const _0x39063c=_0x3e6264;for(var _0x80b099=_0x318399>0x1?void 0x0:_0x318399?ct(_0x2acaf2,_0x57f35e):_0x2acaf2,_0x24ac54=_0x2cf040[_0x39063c(0x26b)]-0x1,_0x51070b;_0x24ac54>=0x0;_0x24ac54--)(_0x51070b=_0x2cf040[_0x24ac54])&&(_0x80b099=_0x51070b(_0x80b099)||_0x80b099);return _0x80b099;},ie=(_0x1bbd15,_0x2a9f41)=>(_0x11b5b1,_0x4d02d7)=>_0x2a9f41(_0x11b5b1,_0x4d02d7,_0x1bbd15);let x=class extends a['RxDisposable']{constructor(_0x3b0bc1,_0x186667,_0x44a00f){const _0x193419=_0x3e6264;super(),_(this,'_entities',new Map()),_(this,_0x193419(0x3b2),new d[(_0x193419(0x31a))]()),(this[_0x193419(0x2e3)]=_0x3b0bc1,this[_0x193419(0x1eb)]=_0x186667,this['_collabSessionService']=_0x44a00f,this[_0x193419(0x3d1)]());}[_0x3e6264(0x2b7)](){const _0x1490a3=_0x3e6264;super[_0x1490a3(0x2b7)](),this[_0x1490a3(0x3b2)][_0x1490a3(0x197)](),this['_entities']['forEach'](_0x1b9747=>_0x1b9747[_0x1490a3(0x2b7)]());}[_0x3e6264(0x309)](_0x4f847c){const _0x561774=_0x3e6264;return this['_entities'][_0x561774(0x1d0)](_0x4f847c)?this[_0x561774(0x3a3)][_0x561774(0x320)](_0x4f847c)[_0x561774(0x1db)]:this[_0x561774(0x3b2)][_0x561774(0x170)](d['filter'](_0x165a9d=>_0x165a9d['unitID']===_0x4f847c),d[_0x561774(0x317)](_0x251269=>_0x251269[_0x561774(0x1db)]));}[_0x3e6264(0x3d1)](){const _0x250312=_0x3e6264;this[_0x250312(0x2e3)][_0x250312(0x169)](a[_0x250312(0x359)][_0x250312(0x1b6)])['pipe'](d[_0x250312(0x1b7)](this[_0x250312(0x1c2)]))[_0x250312(0x349)](async _0x32a1b4=>{const _0x46ea92=_0x250312,_0x8b451b=_0x32a1b4['getUnitId'](),_0x599e5a=await this[_0x46ea92(0x380)](_0x8b451b);this[_0x46ea92(0x3b2)]['next'](_0x599e5a),this[_0x46ea92(0x3a3)][_0x46ea92(0x2a6)](_0x8b451b,_0x599e5a);}),this[_0x250312(0x2e3)]['getTypeOfUnitAdded$'](a[_0x250312(0x359)]['UNIVER_DOC'])[_0x250312(0x170)](d[_0x250312(0x1b7)](this[_0x250312(0x1c2)]))[_0x250312(0x170)](d[_0x250312(0x246)](_0x4c2244=>!_0x4c2244['getUnitId']()[_0x250312(0x1f2)]('__')))[_0x250312(0x349)](async _0x5dccb6=>{const _0x2d58c9=_0x250312,_0x32ef1d=_0x5dccb6[_0x2d58c9(0x2ac)](),_0xc9f353=await this[_0x2d58c9(0x2f7)](_0x32ef1d);this[_0x2d58c9(0x3b2)][_0x2d58c9(0x360)](_0xc9f353),this['_entities'][_0x2d58c9(0x2a6)](_0x32ef1d,_0xc9f353);}),d[_0x250312(0x1e9)](this[_0x250312(0x2e3)]['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_DOC']),this[_0x250312(0x2e3)][_0x250312(0x199)](a[_0x250312(0x359)][_0x250312(0x1b6)]))['pipe'](d[_0x250312(0x1b7)](this[_0x250312(0x1c2)]))[_0x250312(0x349)](_0x2910d7=>{const _0x51afba=_0x250312,_0x25b17e=_0x2910d7['getUnitId'](),_0x7e655f=this['_entities'][_0x51afba(0x320)](_0x25b17e);_0x7e655f&&(_0x7e655f[_0x51afba(0x2b7)](),this[_0x51afba(0x3a3)]['delete'](_0x25b17e));});}async[_0x3e6264(0x380)](_0x52d23f){const _0x1ebe24=_0x3e6264,_0x3c8eb8=await this['_collabSessionService'][_0x1ebe24(0x247)](_0x52d23f),_0x45da03=this['_injector'][_0x1ebe24(0x154)](Ie,_0x52d23f,_0x3c8eb8);return _0x45da03[_0x1ebe24(0x256)](),_0x45da03;}async['_startDocCollabCursor'](_0x487897){const _0x54d66d=_0x3e6264,_0x533bc2=await this[_0x54d66d(0x302)][_0x54d66d(0x247)](_0x487897),_0x23a29c=this[_0x54d66d(0x1eb)]['createInstance'](Se,_0x487897,_0x533bc2);return _0x23a29c[_0x54d66d(0x256)](),_0x23a29c;}};x=lt([ie(0x0,a[_0x3e6264(0x26a)]),ie(0x1,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),ie(0x2,a[_0x3e6264(0x1f4)](u[_0x3e6264(0x32b)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x4144ad,_0x1bef7c){const _0x84c353=_0x3e6264;let {radius:_0x20435f,width:_0xfc917f,height:_0x4c3a0a}=_0x1bef7c;_0x20435f=_0x20435f!=null?_0x20435f:0x0,_0xfc917f=_0xfc917f!=null?_0xfc917f:0x1e,_0x4c3a0a=_0x4c3a0a!=null?_0x4c3a0a:0x1e;let _0x1bb84c=0x0,_0x1f349c=0x0,_0x235a60=0x0;_0x1bb84c=_0x1f349c=_0x235a60=Math[_0x84c353(0x396)](_0x20435f,_0xfc917f/0x2,_0x4c3a0a/0x2),_0x4144ad[_0x84c353(0x2a4)](),_0x4144ad[_0x84c353(0x2bc)](_0x1bb84c,0x0),_0x4144ad[_0x84c353(0x215)](_0xfc917f-_0x1f349c,0x0),_0x4144ad[_0x84c353(0x325)](_0xfc917f-_0x1f349c,_0x1f349c,_0x1f349c,Math['PI']*0x3/0x2,0x0,!0x1),_0x4144ad[_0x84c353(0x215)](_0xfc917f,_0x4c3a0a-_0x235a60),_0x4144ad[_0x84c353(0x325)](_0xfc917f-_0x235a60,_0x4c3a0a-_0x235a60,_0x235a60,0x0,Math['PI']/0x2,!0x1),_0x4144ad[_0x84c353(0x215)](0x0,_0x4c3a0a),_0x4144ad[_0x84c353(0x215)](0x0,_0x1bb84c),_0x4144ad['arc'](_0x1bb84c,_0x1bb84c,_0x1bb84c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4144ad[_0x84c353(0x2d6)](),_0x1bef7c[_0x84c353(0x36c)]&&(_0x4144ad[_0x84c353(0x354)](),_0x4144ad[_0x84c353(0x304)]=_0x1bef7c[_0x84c353(0x36c)],_0x1bef7c['fillRule']===_0x84c353(0x29a)?_0x4144ad[_0x84c353(0x36c)](_0x84c353(0x29a)):_0x4144ad[_0x84c353(0x36c)](),_0x4144ad[_0x84c353(0x29f)]());}class te extends p[_0x3e6264(0x316)]{constructor(_0x47744c,_0x51540c){const _0x1893c0=_0x3e6264;super(_0x47744c,_0x51540c),_(this,'color'),_(this,_0x1893c0(0x38c)),(this[_0x1893c0(0x2d5)]=_0x51540c==null?void 0x0:_0x51540c[_0x1893c0(0x2d5)],this['text']=_0x51540c==null?void 0x0:_0x51540c[_0x1893c0(0x38c)]);}static['drawWith'](_0xa9bf8f,_0x326194){const _0x3fd57b=_0x3e6264,{text:_0x3d0b97,color:_0x3a4f7c}=_0x326194;_0xa9bf8f[_0x3fd57b(0x354)](),_0xa9bf8f['font']=_0x3fd57b(0x2b3);const _0x2abf68=_0xa9bf8f[_0x3fd57b(0x14b)](_0x3d0b97)[_0x3fd57b(0x3cd)],_0x450edb=Math[_0x3fd57b(0x396)](_0x2abf68+0x2*re,De);ht(_0xa9bf8f,{'height':K,'radius':0x4,'width':_0x450edb,'fill':_0x3a4f7c}),_0xa9bf8f[_0x3fd57b(0x304)]='#FFF';const _0x35b92a=re,_0x2f2f8d=K-_t,_0x92f87b=De-0x2*re;if(_0x2abf68>_0x92f87b){let _0x513f0a='',_0x49a43e=0x0;for(const _0x311f3f of _0x3d0b97){const _0x47177f=_0xa9bf8f[_0x3fd57b(0x14b)](_0x311f3f)['width'];if(_0x49a43e+_0x47177f<=_0x92f87b-_0xa9bf8f[_0x3fd57b(0x14b)](_0x3fd57b(0x205))['width'])_0x513f0a+=_0x311f3f,_0x49a43e+=_0x47177f;else{_0x513f0a+='...';break;}}_0xa9bf8f['fillText'](_0x513f0a,_0x35b92a,_0x2f2f8d);}else _0xa9bf8f['fillText'](_0x3d0b97,_0x35b92a,_0x2f2f8d);_0xa9bf8f[_0x3fd57b(0x29f)]();}[_0x3e6264(0x1f5)](_0xf9f539){const _0x689f74=_0x3e6264;te[_0x689f74(0x2c5)](_0xf9f539,this);}}const oe='collab-text-anchor-',ut=_0x3e6264(0x3d0),dt='collab-rect-range-',k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x3e6264(0x237);class Ue{constructor(_0x59ca74,_0x1f5582,_0x5abf49,_0x5a185f){const _0x15b3df=_0x3e6264;_(this,_0x15b3df(0x345),[]),_(this,_0x15b3df(0x151),null),_(this,_0x15b3df(0x324),null),_(this,_0x15b3df(0x391),null),_(this,'_hideTimer',null),_(this,_0x15b3df(0x1a9),null),(this['_cursor']=_0x59ca74,this['_scene']=_0x1f5582,this[_0x15b3df(0x17d)]=_0x5abf49,this[_0x15b3df(0x177)]=_0x5a185f,this[_0x15b3df(0x1d8)]());}set[_0x3e6264(0x275)](_0x311cae){const _0x7aea7=_0x3e6264;_0x311cae?(this[_0x7aea7(0x391)]&&this[_0x7aea7(0x391)][_0x7aea7(0x165)](),this[_0x7aea7(0x324)]&&this[_0x7aea7(0x324)]['show']()):(this[_0x7aea7(0x391)]&&this['_anchorDot'][_0x7aea7(0x1c8)](),this[_0x7aea7(0x324)]&&this['_textBubble'][_0x7aea7(0x165)]());}[_0x3e6264(0x2b7)](){const _0x170b6a=_0x3e6264;for(const _0xf86585 of this[_0x170b6a(0x345)])_0xf86585['dispose']();this[_0x170b6a(0x324)]&&this[_0x170b6a(0x324)][_0x170b6a(0x2b7)](),this[_0x170b6a(0x391)]&&this[_0x170b6a(0x391)]['dispose'](),this[_0x170b6a(0x151)]&&this[_0x170b6a(0x151)][_0x170b6a(0x2b7)](),this['_eventUnsubscribe']&&this[_0x170b6a(0x1a9)]();}['_render'](){const _0x521a83=_0x3e6264;var _0x54bcdb;const {_docSkeleton:_0x40c15f,_document:_0x59fbb0}=this,{color:_0x7e1a9a,name:_0x228a3d,ranges:_0x47cc83}=this[_0x521a83(0x2df)],_0x351cfd=_0x59fbb0[_0x521a83(0x340)](),{docsLeft:_0x50611f,docsTop:_0x2509f3}=_0x351cfd,_0x1ea602=new b[(_0x521a83(0x19e))](_0x351cfd,_0x40c15f);for(const {startOffset:_0x133fe7,endOffset:_0x53894a,rangeType:_0x3953df,segmentId:_0x254e36,segmentPage:_0x37687c,collapsed:_0x41b996,isActive:_0x2ea029}of _0x47cc83){const _0x3d52bd=_0x40c15f[_0x521a83(0x15a)](_0x133fe7,!0x0,_0x254e36,_0x37687c);let _0x501362=_0x40c15f[_0x521a83(0x15a)](_0x53894a,!0x0,_0x254e36,_0x37687c);if(_0x501362==null&&(_0x501362=_0x40c15f[_0x521a83(0x15a)](_0x53894a-0x1,!0x1,_0x254e36,_0x37687c)),_0x2ea029){const {contentBoxPointGroup:_0x16ce9a}=_0x1ea602['getRangePointData'](_0x501362,_0x501362);if(_0x16ce9a['length']===0x0)continue;this[_0x521a83(0x178)](_0x7e1a9a,_0x16ce9a,_0x50611f,_0x2509f3,_0x228a3d),this[_0x521a83(0x1a9)]=this[_0x521a83(0x252)]();}if(_0x3d52bd&&_0x501362){if(_0x3953df===a[_0x521a83(0x260)][_0x521a83(0x269)]){const _0x43e7b0=new b['NodePositionConvertToRectRange'](_0x351cfd,_0x40c15f),{pointGroup:_0x24eece}=(_0x54bcdb=_0x43e7b0['getRangePointData'](_0x3d52bd,_0x501362))!=null?_0x54bcdb:{};if(_0x24eece==null||_0x24eece[_0x521a83(0x26b)]===0x0)continue;this[_0x521a83(0x356)](_0x7e1a9a,_0x24eece,_0x50611f,_0x2509f3);}else{if(!_0x41b996){const {borderBoxPointGroup:_0x2b92f3}=_0x1ea602['getRangePointData'](_0x3d52bd,_0x501362);if(_0x2b92f3[_0x521a83(0x26b)]===0x0)continue;this[_0x521a83(0x2c1)](_0x7e1a9a,_0x2b92f3,_0x50611f,_0x2509f3);}}}}}[_0x3e6264(0x178)](_0x1b939e,_0x1ec6b4,_0x4833f1,_0x305cbf,_0x312132){const _0x3f32e6=_0x3e6264,_0x51308c=this[_0x3f32e6(0x2f5)](_0x1ec6b4),{left:_0x4c18a4,top:_0x2671e4,height:_0x41b86d}=_0x51308c,_0x4f6f77=this[_0x3f32e6(0x1da)](),_0x4ce368=St/_0x4f6f77,_0x1886d4=new p[(_0x3f32e6(0x162))](oe+a[_0x3f32e6(0x336)][_0x3f32e6(0x3b7)](k),{'left':_0x4c18a4+_0x4833f1-_0x4ce368,'top':_0x2671e4+_0x305cbf,'height':_0x41b86d,'width':ft,'fill':_0x1b939e||p[_0x3f32e6(0x2db)](a[_0x3f32e6(0x32a)][_0x3f32e6(0x2cb)],0x0),'strokeWidth':_0x4ce368,'stroke':It,'evented':!0x0});this[_0x3f32e6(0x151)]=_0x1886d4,this[_0x3f32e6(0x1ca)][_0x3f32e6(0x163)](_0x1886d4,b[_0x3f32e6(0x29b)]);const _0x5531a4=new p['Rect'](oe+a[_0x3f32e6(0x336)][_0x3f32e6(0x3b7)](k),{'left':_0x4c18a4+_0x4833f1-_0x4ce368,'top':_0x2671e4+_0x305cbf-ae/0x2,'height':ae,'width':ae,'fill':_0x1b939e||p[_0x3f32e6(0x2db)](a[_0x3f32e6(0x32a)][_0x3f32e6(0x2cb)],0x0),'strokeWidth':0x0,'stroke':_0x1b939e||p[_0x3f32e6(0x2db)](a[_0x3f32e6(0x32a)][_0x3f32e6(0x2cb)],0x0),'evented':!0x1});this['_anchorDot']=_0x5531a4,this[_0x3f32e6(0x1ca)]['addObject'](_0x5531a4,b[_0x3f32e6(0x29b)]);const _0x16d7a7=new te(oe+a[_0x3f32e6(0x336)][_0x3f32e6(0x3b7)](k),{'left':_0x4c18a4+_0x4833f1-_0x4ce368,'top':_0x2671e4+_0x305cbf-K,'text':_0x312132,'color':_0x1b939e});this[_0x3f32e6(0x324)]=_0x16d7a7,this[_0x3f32e6(0x1ca)][_0x3f32e6(0x163)](_0x16d7a7,b[_0x3f32e6(0x29b)]),this[_0x3f32e6(0x275)]=!0x1;}[_0x3e6264(0x252)](){const _0x261c8a=_0x3e6264,_0x3bebb1=this['_anchor'][_0x261c8a(0x32f)]['subscribeEvent'](()=>{const _0x35b412=_0x261c8a;this[_0x35b412(0x275)]=!0x0;}),_0x4c4ac9=this[_0x261c8a(0x151)][_0x261c8a(0x15b)][_0x261c8a(0x398)](()=>{const _0x429a6d=_0x261c8a;this[_0x429a6d(0x204)]&&clearTimeout(this['_hideTimer']),this[_0x429a6d(0x204)]=setTimeout(()=>{const _0x589452=_0x429a6d;this[_0x589452(0x275)]=!0x1;},0x7d0);});return()=>{const _0x373bbb=_0x261c8a;_0x3bebb1[_0x373bbb(0x394)](),_0x4c4ac9['unsubscribe']();};}[_0x3e6264(0x2c1)](_0x3c1dfa,_0x1a071a,_0x492779,_0x279c2c){const _0x55acb7=_0x3e6264,_0x19c55e=new a[(_0x55acb7(0x381))](_0x3c1dfa)['setAlpha'](0.2)['toRgbString'](),_0x3a70a6=new p[(_0x55acb7(0x1f3))](ut+a[_0x55acb7(0x336)][_0x55acb7(0x3b7)](k),{'pointsGroup':_0x1a071a,'fill':_0x19c55e||p[_0x55acb7(0x2db)](a['COLORS'][_0x55acb7(0x2cb)],0.2),'left':_0x492779,'top':_0x279c2c,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x55acb7(0x345)][_0x55acb7(0x228)](_0x3a70a6),this[_0x55acb7(0x1ca)][_0x55acb7(0x163)](_0x3a70a6,b[_0x55acb7(0x29b)]);}[_0x3e6264(0x356)](_0x4143de,_0x1b1106,_0x561649,_0x1051d1){const _0x489ab8=_0x3e6264,_0x44dd7d=new a['ColorKit'](_0x4143de)['setAlpha'](0.2)[_0x489ab8(0x3aa)](),_0x2be151=new p[(_0x489ab8(0x1f3))](dt+a[_0x489ab8(0x336)][_0x489ab8(0x3b7)](k),{'pointsGroup':_0x1b1106,'fill':_0x44dd7d||p[_0x489ab8(0x2db)](a['COLORS'][_0x489ab8(0x2cb)],0.2),'left':_0x561649,'top':_0x1051d1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x489ab8(0x345)][_0x489ab8(0x228)](_0x2be151),this[_0x489ab8(0x1ca)]['addObject'](_0x2be151,b[_0x489ab8(0x29b)]);}[_0x3e6264(0x2f5)](_0x559bc0){const _0x303967=_0x559bc0[0x0],_0x4b4fd5=_0x303967[0x0],_0x1b46e6=_0x303967[0x2],{x:_0x3e3390,y:_0x1a3464}=_0x4b4fd5,{x:_0x4c68a9,y:_0x422d64}=_0x1b46e6;return{'left':_0x3e3390,'top':_0x1a3464,'width':_0x4c68a9-_0x3e3390,'height':_0x422d64-_0x1a3464};}['_getScale'](){const _0x3a9541=_0x3e6264,{scaleX:_0x436ff8,scaleY:_0x454d11}=this[_0x3a9541(0x1ca)][_0x3a9541(0x253)]();return Math[_0x3a9541(0x24f)](_0x436ff8,_0x454d11);}}var vt=Object[_0x3e6264(0x2f9)],gt=(_0x41bf97,_0x7c99e1,_0x49337a,_0x38d0cb)=>{const _0x25080d=_0x3e6264;for(var _0x2e02e8=_0x38d0cb>0x1?void 0x0:_0x38d0cb?vt(_0x7c99e1,_0x49337a):_0x7c99e1,_0x3180dc=_0x41bf97[_0x25080d(0x26b)]-0x1,_0x5f2aee;_0x3180dc>=0x0;_0x3180dc--)(_0x5f2aee=_0x41bf97[_0x3180dc])&&(_0x2e02e8=_0x5f2aee(_0x2e02e8)||_0x2e02e8);return _0x2e02e8;},V=(_0x59bae2,_0x25a35c)=>(_0xd01561,_0x1deb83)=>_0x25a35c(_0xd01561,_0x1deb83,_0x59bae2);let ve=class extends a[_0x3e6264(0x38b)]{constructor(_0x147746,_0xb3c2ca,_0x524d4c,_0x2f4136,_0x1cc510){const _0x5a7511=_0x3e6264;super(),_(this,'_cursorShapes',[]),_(this,'_cursors',[]),(this['_context']=_0x147746,this[_0x5a7511(0x19d)]=_0xb3c2ca,this[_0x5a7511(0x353)]=_0x524d4c,this[_0x5a7511(0x277)]=_0x2f4136,this[_0x5a7511(0x3b0)]=_0x1cc510,this[_0x5a7511(0x3d1)]());}['_init'](){const _0x1a98a7=_0x3e6264,_0x21fa24=this[_0x1a98a7(0x1c1)]['unitId'],_0x13f106=this[_0x1a98a7(0x19d)];this[_0x1a98a7(0x337)](d[_0x1a98a7(0x2a1)]([this[_0x1a98a7(0x353)][_0x1a98a7(0x309)](_0x21fa24),this[_0x1a98a7(0x3b0)][_0x1a98a7(0x240)]])['pipe']($[_0x1a98a7(0x1e6)](([_0x1892ee,_0x4beb39])=>({'skeleton':_0x13f106[_0x1a98a7(0x190)](),'cursors':[..._0x1892ee[_0x1a98a7(0x181)]()][_0x1a98a7(0x14c)](_0xee1b14=>({..._0xee1b14,'color':_0x4beb39[_0xee1b14['color']]}))})))[_0x1a98a7(0x349)](_0x5687f4=>{const _0x2335a5=_0x1a98a7;if(this[_0x2335a5(0x343)](),_0x5687f4){const {skeleton:_0x4a2fb9,cursors:_0x4b9c24}=_0x5687f4;this[_0x2335a5(0x362)](_0x4a2fb9,_0x4b9c24);}})),this['_initResize'](),this[_0x1a98a7(0x188)]();}[_0x3e6264(0x362)](_0xaa7136,_0x59c525){const _0x537b9f=_0x3e6264,{scene:_0x572ad4,mainComponent:_0xba7f26}=this[_0x537b9f(0x1c1)],_0x28a50b=_0x59c525['map'](_0xb90893=>new Ue(_0xb90893,_0x572ad4,_0xaa7136,_0xba7f26));this[_0x537b9f(0x259)]=_0x28a50b,this[_0x537b9f(0x383)]=_0x59c525;}[_0x3e6264(0x377)](){const _0x3bf32f=_0x3e6264;this[_0x3bf32f(0x343)]();const {scene:_0x37d7b9,mainComponent:_0x5311b2}=this['_context'],_0x2f9140=this[_0x3bf32f(0x19d)][_0x3bf32f(0x190)](),_0x4d636c=this['_cursors'][_0x3bf32f(0x1e6)](_0x318010=>new Ue(_0x318010,_0x37d7b9,_0x2f9140,_0x5311b2));this['_cursorShapes']=_0x4d636c;}[_0x3e6264(0x343)](){const _0x128283=_0x3e6264;this[_0x128283(0x259)][_0x128283(0x3c8)](_0x297563=>_0x297563[_0x128283(0x2b7)]()),this[_0x128283(0x259)]=[];}[_0x3e6264(0x188)](){const _0x217b29=_0x3e6264,_0x3501be=[b[_0x217b29(0x29d)]['id']];this[_0x217b29(0x337)](this[_0x217b29(0x277)][_0x217b29(0x374)](_0x30225f=>{const _0x7c68fe=_0x217b29;_0x3501be[_0x7c68fe(0x333)](_0x30225f['id'])&&_0x30225f[_0x7c68fe(0x2d9)]['unitId']===this[_0x7c68fe(0x1c1)][_0x7c68fe(0x358)]&&this[_0x7c68fe(0x377)]();}));}['_initResize'](){const _0x4cb51d=_0x3e6264;this[_0x4cb51d(0x337)](a[_0x4cb51d(0x321)](this[_0x4cb51d(0x1c1)][_0x4cb51d(0x183)][_0x4cb51d(0x2d0)])['pipe']($[_0x4cb51d(0x246)](_0x485a15=>_0x485a15[_0x4cb51d(0x33a)]===p[_0x4cb51d(0x176)][_0x4cb51d(0x3ce)]),$[_0x4cb51d(0x38d)](0x10))['subscribe'](()=>{const _0x38d48d=_0x4cb51d;this[_0x38d48d(0x377)]();}));}};ve=gt([V(0x1,a[_0x3e6264(0x1f4)](Y[_0x3e6264(0x2a7)])),V(0x2,a[_0x3e6264(0x1f4)](x)),V(0x3,a[_0x3e6264(0x39f)]),V(0x4,a[_0x3e6264(0x1f4)](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x3e6264(0x316)]{constructor(_0x166d6d,_0x7b4e81){const _0x380f31=_0x3e6264;super(_0x166d6d,_0x7b4e81),_(this,_0x380f31(0x2ad)),_(this,_0x380f31(0x224),!0x1),_(this,_0x380f31(0x397)),_(this,_0x380f31(0x326),''),_(this,_0x380f31(0x271),_0x380f31(0x257)),_(this,'_backgroundColor'),(_0x7b4e81&&this[_0x380f31(0x2bf)](_0x7b4e81),this['onPointerEnter$'][_0x380f31(0x398)](()=>this[_0x380f31(0x2bf)]({'hovered':!0x0})),this[_0x380f31(0x15b)][_0x380f31(0x398)](()=>this[_0x380f31(0x2bf)]({'hovered':!0x1})));}[_0x3e6264(0x2bf)](_0x29e77f){const _0x13b13f=_0x3e6264;var _0x2edc90,_0x2c2353,_0x239ffd,_0x151f5b,_0x320e92,_0x2b0600;this['_color']=(_0x2edc90=_0x29e77f[_0x13b13f(0x2d5)])!=null?_0x2edc90:this[_0x13b13f(0x2ad)],this['_hovered']=(_0x2c2353=_0x29e77f['hovered'])!=null?_0x2c2353:this[_0x13b13f(0x224)],this[_0x13b13f(0x397)]=(_0x239ffd=_0x29e77f[_0x13b13f(0x2d2)])!=null?_0x239ffd:this['_range'],this[_0x13b13f(0x326)]=(_0x151f5b=_0x29e77f['name'])!=null?_0x151f5b:this[_0x13b13f(0x326)],this[_0x13b13f(0x271)]=(_0x320e92=_0x29e77f[_0x13b13f(0x1a4)])!=null?_0x320e92:this[_0x13b13f(0x271)],this[_0x13b13f(0x297)]=(_0x2b0600=_0x29e77f[_0x13b13f(0x168)])!=null?_0x2b0600:this[_0x13b13f(0x297)],this['transformByState']({'width':_0x29e77f[_0x13b13f(0x3cd)],'height':_0x29e77f['height']});}[_0x3e6264(0x3a5)](_0x5128a2){const _0x206994=_0x3e6264,{row:_0x186a1b,column:_0x27b176}=_0x5128a2;if(_0x186a1b>=this['_range'][_0x206994(0x280)]&&_0x186a1b<=this[_0x206994(0x397)][_0x206994(0x34d)]&&_0x27b176>=this[_0x206994(0x397)][_0x206994(0x390)]&&_0x27b176<=this[_0x206994(0x397)][_0x206994(0x273)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x206994(0x2bf)]({'hovered':!0x1});}['triggerDblclick'](_0x4e849d){return!0x1;}[_0x3e6264(0x1f5)](_0x1d2034){const _0x45932f=_0x3e6264;p[_0x45932f(0x162)][_0x45932f(0x2c5)](_0x1d2034,{'width':this[_0x45932f(0x3cd)],'height':this['height'],'strokeWidth':Ct,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x45932f(0x297)]}),this[_0x45932f(0x224)]&&(_0x1d2034[_0x45932f(0x354)](),_0x1d2034[_0x45932f(0x214)](0x1,0x0,0x0,0x1,this[_0x45932f(0x3cd)],this[_0x45932f(0x271)]==='bottom'?0x0:-0x14),te[_0x45932f(0x2c5)](_0x1d2034,{'text':this['_name'],'color':this['_color']}),_0x1d2034[_0x45932f(0x29f)]());}}var pt=Object[_0x3e6264(0x2f9)],bt=(_0x4e4993,_0x1f920c,_0x1fd700,_0x1041f0)=>{const _0x23161a=_0x3e6264;for(var _0x1977f7=_0x1041f0>0x1?void 0x0:_0x1041f0?pt(_0x1f920c,_0x1fd700):_0x1f920c,_0x2679fe=_0x4e4993[_0x23161a(0x26b)]-0x1,_0x2d6601;_0x2679fe>=0x0;_0x2679fe--)(_0x2d6601=_0x4e4993[_0x2679fe])&&(_0x1977f7=_0x2d6601(_0x1977f7)||_0x1977f7);return _0x1977f7;},ce=(_0x2e484a,_0x1f8f35)=>(_0x2cb8a8,_0x1b7fe4)=>_0x1f8f35(_0x2cb8a8,_0x1b7fe4,_0x2e484a);const Et=0x1389;let ge=class extends a['RxDisposable']{constructor(_0x51f590,_0x602068,_0x50a04f,_0x26c579){const _0x518ecf=_0x3e6264;super(),_(this,_0x518ecf(0x383),new Set()),_(this,_0x518ecf(0x152),null),(this[_0x518ecf(0x1c1)]=_0x51f590,this[_0x518ecf(0x3a0)]=_0x602068,this[_0x518ecf(0x353)]=_0x50a04f,this[_0x518ecf(0x3b0)]=_0x26c579,this['_init']());}[_0x3e6264(0x3d1)](){const _0x11910b=_0x3e6264;this[_0x11910b(0x3a0)][_0x11910b(0x3b9)]['pipe']($[_0x11910b(0x1b7)](this[_0x11910b(0x1c2)]),$[_0x11910b(0x317)](_0x212fe3=>{const _0x27a9d8=_0x11910b;if(_0x212fe3){const _0x2f1ca5=_0x212fe3[_0x27a9d8(0x207)];return d[_0x27a9d8(0x2a1)](this[_0x27a9d8(0x353)][_0x27a9d8(0x309)](this[_0x27a9d8(0x1c1)][_0x27a9d8(0x358)]),this['_themeService'][_0x27a9d8(0x240)])['pipe']($[_0x27a9d8(0x1e6)](([_0xf6062e,_0x4f7246])=>{const _0x16f70b=new Map();return _0xf6062e['forEach']((_0x423ace,_0x24d983)=>{const _0x13ec5b=_0x5852;if(_0x423ace[_0x13ec5b(0x3c2)]===_0x2f1ca5){const _0x27f832={..._0x423ace};_0x27f832[_0x13ec5b(0x2d5)]=_0x4f7246[_0x423ace[_0x13ec5b(0x2d5)]],_0x16f70b['set'](_0x24d983,_0x27f832);}}),{'skeleton':_0x212fe3,'cursors':_0x16f70b};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x137f0b,cursors:_0x26ce0d})=>{const _0x1b868c=_0x11910b;this[_0x1b868c(0x343)](),_0x137f0b&&this['_updateCollabCursors'](_0x137f0b,_0x26ce0d);}),this[_0x11910b(0x3a0)][_0x11910b(0x3b9)][_0x11910b(0x349)](_0xa01341=>{const _0x4ccbcf=_0x11910b;if(_0xa01341==null)return;const {skeleton:_0x5a9dcd}=_0xa01341,{scene:_0x9d78b2}=this['_context'];_0x9d78b2[_0x4ccbcf(0x17c)][_0x4ccbcf(0x398)](a[_0x4ccbcf(0x2d4)](_0xd82e04=>{const _0x549efa=_0x4ccbcf;var _0x834faf,_0x54f5d2;const {offsetX:_0x1a5e6d,offsetY:_0x5af8ab}=_0xd82e04,{x:_0x80cd28,y:_0x43002c}=_0x9d78b2[_0x549efa(0x27d)](p['Vector2']['FromArray']([_0x1a5e6d,_0x5af8ab])),{scaleX:_0x538a98,scaleY:_0x2c0a54}=_0x9d78b2[_0x549efa(0x253)](),_0x3a2aa6=_0x9d78b2[_0x549efa(0x1d4)](p[_0x549efa(0x2fc)][_0x549efa(0x1fb)]),_0x268b8d=_0x9d78b2[_0x549efa(0x144)](p[_0x549efa(0x2f3)]['FromArray']([_0x80cd28,_0x43002c]),_0x3a2aa6),_0x332065=_0x5a9dcd[_0x549efa(0x1d2)](_0x1a5e6d,_0x5af8ab,_0x538a98,_0x2c0a54,_0x268b8d);((_0x834faf=this['_lastPointer'])==null?void 0x0:_0x834faf[_0x549efa(0x2cf)])===_0x332065[_0x549efa(0x2cf)]&&((_0x54f5d2=this[_0x549efa(0x152)])==null?void 0x0:_0x54f5d2[_0x549efa(0x334)])===_0x332065[_0x549efa(0x334)]||this[_0x549efa(0x383)][_0x549efa(0x3c8)](_0x97180=>{const _0x521e20=_0x549efa;_0x97180[_0x521e20(0x3a5)](_0x332065);});},0x64));});}[_0x3e6264(0x362)](_0x17d820,_0x26a899){const _0x16ade6=_0x3e6264;var _0x302991;const _0x27b4d8=(_0x302991=this[_0x16ade6(0x3a0)]['getCurrent']())==null?void 0x0:_0x302991['skeleton'];if(!_0x27b4d8)return;const _0xc7685a=this[_0x16ade6(0x31e)]();if(!_0xc7685a)return;this[_0x16ade6(0x383)][_0x16ade6(0x3c8)](_0x5ad6a8=>{const _0x2a41d8=_0x16ade6;_0x5ad6a8[_0x2a41d8(0x2c4)]();});const {scene:_0x4ea533}=_0xc7685a,_0xdfaa5c=Tt(Array[_0x16ade6(0x182)](_0x26a899[_0x16ade6(0x181)]()))[_0x16ade6(0x1e6)](_0xb44509=>{const _0x166a5a=_0x16ade6,{color:_0x2048da,range:_0x3a3637,name:_0x234d34,selection:_0x7c702d,sheetID:_0x9a732a}=_0xb44509,{startColumn:_0x4dbb66,startRow:_0x3d4ce8,endColumn:_0x2b5682,endRow:_0x2a3e60}=_0x3a3637,_0x52663f=G[_0x166a5a(0x16e)](_0x3d4ce8,_0x4dbb66,_0x4ea533,_0x27b4d8),_0x43def9=G[_0x166a5a(0x16e)](_0x2a3e60,_0x2b5682,_0x4ea533,_0x27b4d8),{columnHeaderHeightAndMarginTop:_0x5309eb}=_0x27b4d8,{startX:_0x2ac114,startY:_0x484df3}=_0x52663f,{endX:_0x49635a,endY:_0xa8f705}=_0x43def9,_0x5d71d7=_0x49635a-_0x2ac114,_0x84c40f=_0xa8f705-_0x484df3,_0x4e110c={'labelPosition':_0x484df3-_0x5309eb>=K?_0x166a5a(0x257):'bottom','sheetID':_0x9a732a,'range':_0x3a3637,'color':_0x2048da,'name':_0x234d34,'selection':_0x7c702d,'left':_0x2ac114,'top':_0x484df3,'width':_0x5d71d7,'height':_0x84c40f,'evented':!0x1,'zIndex':Et};return new Ae(_0x234d34,_0x4e110c);});_0x4ea533['addObjects'](_0xdfaa5c,mt),this['_cursors']=new Set(_0xdfaa5c);}[_0x3e6264(0x343)](){const _0x30a582=_0x3e6264;var _0x735227;(_0x735227=this[_0x30a582(0x383)])==null||_0x735227[_0x30a582(0x3c8)](_0x4b56b8=>_0x4b56b8[_0x30a582(0x2b7)]());}['_getSheetObject'](){const _0x4869bc=_0x3e6264;return G[_0x4869bc(0x395)](this[_0x4869bc(0x1c1)][_0x4869bc(0x27b)],this[_0x4869bc(0x1c1)]);}};ge=bt([ce(0x1,a['Inject'](G[_0x3e6264(0x239)])),ce(0x2,a['Inject'](x)),ce(0x3,a['Inject'](a[_0x3e6264(0x268)]))],ge);function Tt(_0x3475a9){const _0x3012e9=_0x3e6264,_0xdef90f=new Map();return _0x3475a9['forEach'](_0x307fae=>{const _0x4c8f6d=_0x5852;if(_0xdef90f['has'](_0x307fae[_0x4c8f6d(0x1f9)])){const _0x4459b1=_0xdef90f['get'](_0x307fae[_0x4c8f6d(0x1f9)]);_0x4459b1[_0x4c8f6d(0x33f)]+=',\x20'+_0x307fae[_0x4c8f6d(0x33f)];}else _0xdef90f['set'](_0x307fae[_0x4c8f6d(0x1f9)],_0x307fae);}),Array[_0x3012e9(0x182)](_0xdef90f['values']());}var E=function(){const _0x286ac7=_0x3e6264;return E=Object[_0x286ac7(0x238)]||function(_0x8131aa){const _0x1c3184=_0x286ac7;for(var _0x1ccc84,_0x38b0be=0x1,_0x1e5dd0=arguments[_0x1c3184(0x26b)];_0x38b0be<_0x1e5dd0;_0x38b0be++){_0x1ccc84=arguments[_0x38b0be];for(var _0x3d09d2 in _0x1ccc84)Object[_0x1c3184(0x3be)][_0x1c3184(0x1a1)][_0x1c3184(0x250)](_0x1ccc84,_0x3d09d2)&&(_0x8131aa[_0x3d09d2]=_0x1ccc84[_0x3d09d2]);}return _0x8131aa;},E[_0x286ac7(0x1cc)](this,arguments);},Ot=function(_0x10625a,_0xb3bc4f){const _0x267a74=_0x3e6264;var _0x108cd1={};for(var _0x46315a in _0x10625a)Object[_0x267a74(0x3be)][_0x267a74(0x1a1)][_0x267a74(0x250)](_0x10625a,_0x46315a)&&_0xb3bc4f[_0x267a74(0x1bb)](_0x46315a)<0x0&&(_0x108cd1[_0x46315a]=_0x10625a[_0x46315a]);if(_0x10625a!=null&&typeof Object['getOwnPropertySymbols']==_0x267a74(0x25b)){for(var _0x251068=0x0,_0x46315a=Object[_0x267a74(0x384)](_0x10625a);_0x251068<_0x46315a[_0x267a74(0x26b)];_0x251068++)_0xb3bc4f[_0x267a74(0x1bb)](_0x46315a[_0x251068])<0x0&&Object[_0x267a74(0x3be)][_0x267a74(0x1c5)][_0x267a74(0x250)](_0x10625a,_0x46315a[_0x251068])&&(_0x108cd1[_0x46315a[_0x251068]]=_0x10625a[_0x46315a[_0x251068]]);}return _0x108cd1;},be=M['forwardRef'](function(_0x1069af,_0x5ecb87){const _0x414c38=_0x3e6264;var _0x2f1e81=_0x1069af['icon'],_0x388132=_0x1069af['id'],_0x2a5dc0=_0x1069af['className'],_0x2ed230=_0x1069af[_0x414c38(0x39c)],_0x4148ec=Ot(_0x1069af,[_0x414c38(0x2c8),'id',_0x414c38(0x156),_0x414c38(0x39c)]),_0x378d94=_0x414c38(0x173)['concat'](_0x388132,'\x20')['concat'](_0x2a5dc0||'')[_0x414c38(0x2d1)](),_0x1dae8d=M['useRef']('_'[_0x414c38(0x3cb)](Ut()));return ye(_0x2f1e81,''[_0x414c38(0x3cb)](_0x388132),{'defIds':_0x2f1e81[_0x414c38(0x1e5)],'idSuffix':_0x1dae8d[_0x414c38(0x231)]},E({'ref':_0x5ecb87,'className':_0x378d94},_0x4148ec),_0x2ed230);});function ye(_0xfc4812,_0x28af74,_0x1f38bc,_0x57532f,_0x4dc1e5){const _0x57680f=_0x3e6264;return M['createElement'](_0xfc4812[_0x57680f(0x171)],E(E({'key':_0x28af74},Rt(_0xfc4812,_0x1f38bc,_0x4dc1e5)),_0x57532f),(Dt(_0xfc4812,_0x1f38bc)[_0x57680f(0x29c)]||[])[_0x57680f(0x1e6)](function(_0x3e0296,_0x2255ae){const _0x56f98a=_0x57680f;return ye(_0x3e0296,''[_0x56f98a(0x3cb)](_0x28af74,'-')['concat'](_0xfc4812[_0x56f98a(0x171)],'-')[_0x56f98a(0x3cb)](_0x2255ae),_0x1f38bc,void 0x0,_0x4dc1e5);}));}function Rt(_0x2a2603,_0x5da12b,_0x3dc522){const _0x2a5f11=_0x3e6264;var _0x47459e=E({},_0x2a2603[_0x2a5f11(0x1a7)]);_0x3dc522!=null&&_0x3dc522[_0x2a5f11(0x2aa)]&&_0x47459e['fill']===_0x2a5f11(0x2aa)&&(_0x47459e[_0x2a5f11(0x36c)]=_0x3dc522[_0x2a5f11(0x2aa)]),_0x2a2603[_0x2a5f11(0x171)]===_0x2a5f11(0x32d)&&_0x47459e['id']&&(_0x47459e['id']=_0x47459e['id']+_0x5da12b[_0x2a5f11(0x347)]),Object[_0x2a5f11(0x2fa)](_0x47459e)['forEach'](function(_0x3b576b){const _0x4a3dc3=_0x2a5f11;var _0x357e65=_0x3b576b[0x0],_0x4d5ef4=_0x3b576b[0x1];_0x357e65==='mask'&&typeof _0x4d5ef4==_0x4a3dc3(0x3b8)&&(_0x47459e[_0x357e65]=_0x4d5ef4[_0x4a3dc3(0x2eb)](/url\(#(.*)\)/,_0x4a3dc3(0x34e)[_0x4a3dc3(0x3cb)](_0x5da12b[_0x4a3dc3(0x347)],')')));});var _0x42f039=_0x5da12b[_0x2a5f11(0x1e5)];return!_0x42f039||_0x42f039[_0x2a5f11(0x26b)]===0x0||(_0x2a2603[_0x2a5f11(0x171)]===_0x2a5f11(0x372)&&_0x47459e['xlink:href']&&(_0x47459e[_0x2a5f11(0x35d)]=_0x47459e[_0x2a5f11(0x35d)]+_0x5da12b[_0x2a5f11(0x347)]),Object[_0x2a5f11(0x2fa)](_0x47459e)[_0x2a5f11(0x3c8)](function(_0x17f2b2){const _0x12dcb6=_0x2a5f11;var _0x4f06d5=_0x17f2b2[0x0],_0x2f6346=_0x17f2b2[0x1];typeof _0x2f6346==_0x12dcb6(0x3b8)&&(_0x47459e[_0x4f06d5]=_0x2f6346[_0x12dcb6(0x2eb)](/url\(#(.*)\)/,'url(#$1'[_0x12dcb6(0x3cb)](_0x5da12b[_0x12dcb6(0x347)],')')));})),_0x47459e;}function Dt(_0x2f7b4d,_0x167efa){const _0x4e10b4=_0x3e6264;var _0x195ce2,_0x503ff0=_0x167efa[_0x4e10b4(0x1e5)];return!_0x503ff0||_0x503ff0['length']===0x0?_0x2f7b4d:_0x2f7b4d[_0x4e10b4(0x171)]===_0x4e10b4(0x35c)&&(!((_0x195ce2=_0x2f7b4d['children'])===null||_0x195ce2===void 0x0)&&_0x195ce2[_0x4e10b4(0x26b)])?E(E({},_0x2f7b4d),{'children':_0x2f7b4d['children'][_0x4e10b4(0x1e6)](function(_0x326381){const _0x40e9f9=_0x4e10b4;return typeof _0x326381['attrs']['id']==_0x40e9f9(0x3b8)&&_0x503ff0&&_0x503ff0[_0x40e9f9(0x1bb)](_0x326381[_0x40e9f9(0x1a7)]['id'])>-0x1?E(E({},_0x326381),{'attrs':E(E({},_0x326381[_0x40e9f9(0x1a7)]),{'id':_0x326381[_0x40e9f9(0x1a7)]['id']+_0x167efa[_0x40e9f9(0x347)]})}):_0x326381;})}):_0x2f7b4d;}function Ut(){const _0x1be801=_0x3e6264;return Math[_0x1be801(0x1b5)]()[_0x1be801(0x31d)](0x24)['substring'](0x2,0x8);}be[_0x3e6264(0x373)]=_0x3e6264(0x368);var Nt={'tag':_0x3e6264(0x184),'attrs':{'fill':_0x3e6264(0x382),'viewBox':_0x3e6264(0x1ae),'width':'1em','height':_0x3e6264(0x248)},'children':[{'tag':'g','attrs':{'clipPath':_0x3e6264(0x22a)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','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':'round','strokeWidth':1.2}}]},{'tag':_0x3e6264(0x35c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3e6264(0x174)},'children':[{'tag':'path','attrs':{'fill':_0x3e6264(0x1f7),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},$e=M[_0x3e6264(0x2be)](function(_0x322cbf,_0x53b950){return M['createElement'](be,Object['assign']({},_0x322cbf,{'id':'off-line-single','ref':_0x53b950,'icon':Nt}));});$e[_0x3e6264(0x373)]=_0x3e6264(0x285);var Mt={'tag':_0x3e6264(0x184),'attrs':{'fill':_0x3e6264(0x382),'viewBox':_0x3e6264(0x1a2),'width':_0x3e6264(0x248),'height':_0x3e6264(0x248)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x3e6264(0x145),'d':_0x3e6264(0x24b),'strokeLinecap':_0x3e6264(0x38a),'strokeLinejoin':_0x3e6264(0x38a),'strokeWidth':1.2}}]},{'tag':_0x3e6264(0x35c),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x3e6264(0x3b4)},'children':[{'tag':_0x3e6264(0x2bd),'attrs':{'fill':'#fff','d':_0x3e6264(0x36d),'transform':_0x3e6264(0x1bd)}}]}]}],'defIds':[_0x3e6264(0x3b4)]},xe=M['forwardRef'](function(_0x344f39,_0x59f8be){const _0x28bb19=_0x3e6264;return M[_0x28bb19(0x2cd)](be,Object[_0x28bb19(0x238)]({},_0x344f39,{'id':_0x28bb19(0x3a7),'ref':_0x59f8be,'icon':Mt}));});xe[_0x3e6264(0x373)]=_0x3e6264(0x3c6);const Lt=_0x3e6264(0x1af),Pt=_0x3e6264(0x1a5),wt=_0x3e6264(0x385),At=_0x3e6264(0x18d),yt=_0x3e6264(0x249),H={'onlineStatusIcon':Lt,'onlineStatusTitle':Pt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x877694){const _0x5ac23c=_0x3e6264;switch(_0x877694){case u[_0x5ac23c(0x1b9)][_0x5ac23c(0x26c)]:return _0x5ac23c(0x153);case u[_0x5ac23c(0x1b9)][_0x5ac23c(0x1c0)]:return'collabStatus.conflict';case u[_0x5ac23c(0x1b9)][_0x5ac23c(0x1b4)]:return _0x5ac23c(0x35f);case u[_0x5ac23c(0x1b9)][_0x5ac23c(0x36a)]:return _0x5ac23c(0x323);case u[_0x5ac23c(0x1b9)][_0x5ac23c(0x200)]:case u[_0x5ac23c(0x1b9)]['AWAITING_WITH_PENDING']:return _0x5ac23c(0x2b4);case u[_0x5ac23c(0x1b9)][_0x5ac23c(0x208)]:case u[_0x5ac23c(0x1b9)][_0x5ac23c(0x1fe)]:return'collabStatus.synced';}}function je(_0x3a413e){const _0xf65259=_0x3e6264,{status$:_0x4c785c}=_0x3a413e,_0x2b3fb0=O[_0xf65259(0x3ba)](_0x4c785c,u[_0xf65259(0x1b9)][_0xf65259(0x36a)]),_0x142223=O[_0xf65259(0x1dc)](a[_0xf65259(0x213)]),_0x46e57c=O[_0xf65259(0x1dc)](u[_0xf65259(0x32b)]),_0x85d8dd=_0x2b3fb0!==u[_0xf65259(0x1b9)][_0xf65259(0x26c)],_0x18ab23=_0x142223['t']($t(_0x2b3fb0)),_0x228e3d=T[_0xf65259(0x270)](H['onlineStatus'],{[H['online']]:_0x85d8dd,[H[_0xf65259(0x234)]]:!_0x85d8dd}),_0x2e1ad7=_0x85d8dd?P[_0xf65259(0x266)](xe,{}):P[_0xf65259(0x266)]($e,{}),_0x2a633d=M['useCallback'](()=>{_0x85d8dd||_0x46e57c['reconnect']();},[_0x85d8dd,_0x46e57c]);function _0x5cefdc(){const _0x43958d=_0xf65259;return P[_0x43958d(0x3ca)]('div',{'className':T[_0x43958d(0x270)](_0x228e3d,_0x43958d(0x30a)),'onClick':_0x2a633d,'children':[P['jsx'](_0x43958d(0x2fd),{'className':H['onlineStatusIcon'],'children':_0x2e1ad7}),P[_0x43958d(0x266)](_0x43958d(0x2fd),{'className':H[_0x43958d(0x2b9)],'children':_0x18ab23})]});}return _0x85d8dd?_0x5cefdc():P[_0xf65259(0x266)](T[_0xf65259(0x220)],{'title':_0x142223['t'](_0xf65259(0x2dd)),'children':_0x5cefdc()});}var xt=Object['getOwnPropertyDescriptor'],jt=(_0x495fcc,_0x40bdb0,_0xb59e55,_0x56f529)=>{const _0x3bea87=_0x3e6264;for(var _0x12e9c5=_0x56f529>0x1?void 0x0:_0x56f529?xt(_0x40bdb0,_0xb59e55):_0x40bdb0,_0x1ed2c0=_0x495fcc[_0x3bea87(0x26b)]-0x1,_0x24a792;_0x1ed2c0>=0x0;_0x1ed2c0--)(_0x24a792=_0x495fcc[_0x1ed2c0])&&(_0x12e9c5=_0x24a792(_0x12e9c5)||_0x12e9c5);return _0x12e9c5;},X=(_0x53fd00,_0x5e911b)=>(_0x23da89,_0x2029c9)=>_0x5e911b(_0x23da89,_0x2029c9,_0x53fd00);exports[_0x3e6264(0x251)]=class extends a[_0x3e6264(0x2e5)]{constructor(_0x16a9d1,_0x2e64d2,_0x543eee,_0x4ade16){const _0x45aa54=_0x3e6264;super(),_(this,'_status$',new d[(_0x45aa54(0x2cc))](u[_0x45aa54(0x1b9)][_0x45aa54(0x36a)])),(this[_0x45aa54(0x2e3)]=_0x16a9d1,this[_0x45aa54(0x1eb)]=_0x2e64d2,this[_0x45aa54(0x327)]=_0x543eee,this[_0x45aa54(0x37f)]=_0x4ade16,this[_0x45aa54(0x264)](),this[_0x45aa54(0x341)]());}[_0x3e6264(0x341)](){const _0x123d10=_0x3e6264;this[_0x123d10(0x337)](this[_0x123d10(0x2e3)][_0x123d10(0x1bf)][_0x123d10(0x170)](d[_0x123d10(0x317)](()=>{const _0x1ff36c=_0x123d10,_0x27e526=this['_univerInstanceService'][_0x1ff36c(0x195)]();return _0x27e526?this['_collaborationController'][_0x1ff36c(0x21d)](_0x27e526[_0x1ff36c(0x2ac)]()):d['of'](null);}),d[_0x123d10(0x317)](_0x312074=>_0x312074?_0x312074[_0x123d10(0x30c)]:d['of'](u[_0x123d10(0x1b9)][_0x123d10(0x36a)])))[_0x123d10(0x349)](_0x4b0cef=>{const _0x5ca387=_0x123d10;this[_0x5ca387(0x3cf)][_0x5ca387(0x360)](_0x4b0cef);}));}['_initStatusComponent'](){const _0x100c4d=_0x3e6264;this[_0x100c4d(0x337)](this[_0x100c4d(0x37f)]['registerComponent'](O[_0x100c4d(0x33d)][_0x100c4d(0x202)],()=>O[_0x100c4d(0x2e4)](Bt({'status$':this[_0x100c4d(0x3cf)][_0x100c4d(0x301)]()}),this[_0x100c4d(0x1eb)])));}},exports[_0x3e6264(0x251)]=jt([X(0x0,a[_0x3e6264(0x26a)]),X(0x1,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),X(0x2,a[_0x3e6264(0x1f4)](u[_0x3e6264(0x294)])),X(0x3,O[_0x3e6264(0x225)])],exports[_0x3e6264(0x251)]);function Bt(_0x4287c1){const {status$:_0x20d937}=_0x4287c1;return function(){const _0x3ebb71=_0x5852;return P[_0x3ebb71(0x266)](je,{'status$':_0x20d937});};}var kt=Object[_0x3e6264(0x2f9)],Ht=(_0x5a465a,_0x1778e9,_0x6fe1f6,_0x29cfe4)=>{const _0x511089=_0x3e6264;for(var _0x3006e0=_0x29cfe4>0x1?void 0x0:_0x29cfe4?kt(_0x1778e9,_0x6fe1f6):_0x1778e9,_0x112c40=_0x5a465a[_0x511089(0x26b)]-0x1,_0x32a099;_0x112c40>=0x0;_0x112c40--)(_0x32a099=_0x5a465a[_0x112c40])&&(_0x3006e0=_0x32a099(_0x3006e0)||_0x3006e0);return _0x3006e0;},y=(_0x2e06de,_0x446872)=>(_0x39e9d8,_0x3ca46c)=>_0x446872(_0x39e9d8,_0x3ca46c,_0x2e06de);let z=class extends a[_0x3e6264(0x2e5)]{constructor(_0x32a2c4,_0xb1c10b,_0x10b156,_0x17ea4a,_0x5584d3,_0x3dc14b){const _0x332d6d=_0x3e6264;super(),this[_0x332d6d(0x287)]=_0x32a2c4,this[_0x332d6d(0x3c0)]=_0xb1c10b,this[_0x332d6d(0x236)]=_0x10b156,this['_messageService']=_0x17ea4a,this['_notificationService']=_0x5584d3,this[_0x332d6d(0x14e)]=_0x3dc14b,this['_setupBeforeClosingHandler'](),this['_initEvent']();}['_setupBeforeClosingHandler'](){const _0x194aac=_0x3e6264;this['disposeWithMe'](this[_0x194aac(0x287)][_0x194aac(0x1cf)](()=>{const _0x399d1e=_0x194aac;if(this[_0x399d1e(0x3c0)]['saveTaskMap']['size'])return this[_0x399d1e(0x14e)]['t'](_0x399d1e(0x16b));}));}['_initEvent'](){const _0x79f3f1=_0x3e6264;this[_0x79f3f1(0x337)](this['_collaborationUIEventService'][_0x79f3f1(0x306)][_0x79f3f1(0x349)](_0x325668=>{const _0x4755b9=_0x79f3f1;_0x325668['id']===u[_0x4755b9(0x274)][_0x4755b9(0x2e8)]&&this['_messageService'][_0x4755b9(0x1c8)]({'type':T[_0x4755b9(0x2e2)][_0x4755b9(0x283)],'content':this[_0x4755b9(0x14e)]['t'](_0x4755b9(0x279))}),_0x325668['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x4755b9(0x38e)][_0x4755b9(0x1c8)]({'type':T[_0x4755b9(0x2e2)][_0x4755b9(0x283)],'content':this[_0x4755b9(0x14e)]['t'](_0x4755b9(0x196))}),_0x325668['id']===u['CollaborationUIEventId'][_0x4755b9(0x1ea)]&&this[_0x4755b9(0x19a)]['show']({'title':this['_localeService']['t']('permission.title'),'content':this[_0x4755b9(0x14e)]['t'](_0x4755b9(0x24a)),'type':'error','duration':0x0}),_0x325668['id']===u[_0x4755b9(0x274)][_0x4755b9(0x1c0)]&&this[_0x4755b9(0x38e)][_0x4755b9(0x1c8)]({'type':T['MessageType'][_0x4755b9(0x2e0)],'content':this[_0x4755b9(0x14e)]['t']('collaboration.closeRoom')+'('+_0x325668[_0x4755b9(0x27e)]+')'}),_0x325668['id']===u[_0x4755b9(0x274)][_0x4755b9(0x26e)]&&this['_messageService'][_0x4755b9(0x1c8)]({'type':T['MessageType'][_0x4755b9(0x283)],'content':this['_localeService']['t'](_0x325668[_0x4755b9(0x27e)]||'')}),_0x325668['id']===u[_0x4755b9(0x274)][_0x4755b9(0x2fe)]&&this['_messageService']['show']({'type':T[_0x4755b9(0x2e2)][_0x4755b9(0x283)],'content':this[_0x4755b9(0x14e)]['t']('session.will-retry')}),_0x325668['id']===u['CollaborationUIEventId']['SOCKET_FAILED']&&this[_0x4755b9(0x38e)][_0x4755b9(0x1c8)]({'type':T[_0x4755b9(0x2e2)]['Error'],'content':this[_0x4755b9(0x14e)]['t']('session.connection-failed')}),_0x325668['id']===u[_0x4755b9(0x274)][_0x4755b9(0x352)]&&this['_messageService'][_0x4755b9(0x1c8)]({'type':T['MessageType'][_0x4755b9(0x2e0)],'content':this[_0x4755b9(0x14e)]['t'](_0x4755b9(0x2f2))});}));}};z=Ht([y(0x0,O[_0x3e6264(0x2ae)]),y(0x1,u[_0x3e6264(0x1b0)]),y(0x2,a['Inject'](u[_0x3e6264(0x1fa)])),y(0x3,O['IMessageService']),y(0x4,O[_0x3e6264(0x1e4)]),y(0x5,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x213)]))],z);const Ft=_0x3e6264(0x217),Ne={},Ee=a[_0x3e6264(0x159)](_0x3e6264(0x30f));var Wt=Object[_0x3e6264(0x2f9)],Yt=(_0x205e57,_0x3ff717,_0x753230,_0xd23bad)=>{const _0x1f01bf=_0x3e6264;for(var _0x2f2ba9=_0xd23bad>0x1?void 0x0:_0xd23bad?Wt(_0x3ff717,_0x753230):_0x3ff717,_0x164287=_0x205e57[_0x1f01bf(0x26b)]-0x1,_0x47c4b1;_0x164287>=0x0;_0x164287--)(_0x47c4b1=_0x205e57[_0x164287])&&(_0x2f2ba9=_0x47c4b1(_0x2f2ba9)||_0x2f2ba9);return _0x2f2ba9;},F=(_0x2727fb,_0x32bd02)=>(_0x522e07,_0x3d7866)=>_0x32bd02(_0x522e07,_0x3d7866,_0x2727fb);exports['CollaborationDataLoaderController']=class extends a[_0x3e6264(0x38b)]{constructor(_0x61f6e9,_0x4aa1ae,_0x2bace6,_0x4ed085,_0x5ee3c9){const _0x58dbf0=_0x3e6264;super(),this[_0x58dbf0(0x3a4)]=_0x61f6e9,this[_0x58dbf0(0x25f)]=_0x4aa1ae,this[_0x58dbf0(0x277)]=_0x2bace6,this[_0x58dbf0(0x19c)]=_0x4ed085,_0x5ee3c9?_0x5ee3c9==null||_0x5ee3c9['whenReady']()[_0x58dbf0(0x2b1)](()=>this[_0x58dbf0(0x3d1)]()):(this['_logService']['debug'](_0x58dbf0(0x3c3),_0x58dbf0(0x3c1)),this[_0x58dbf0(0x3d1)]());}async[_0x3e6264(0x3d1)](){const _0x5ac751=_0x3e6264,_0x1cb0ec=this[_0x5ac751(0x3a4)][_0x5ac751(0x147)](_0x5ac751(0x27b)),_0x54323d=this[_0x5ac751(0x3a4)][_0x5ac751(0x147)](_0x5ac751(0x33a)),_0x28b643=this['_urlService'][_0x5ac751(0x147)]('subunit');if(!_0x1cb0ec||!_0x54323d){this[_0x5ac751(0x25f)][_0x5ac751(0x18e)](_0x5ac751(0x3c3),_0x5ac751(0x241));return;}const _0x464495=await this[_0x5ac751(0x19c)][_0x5ac751(0x2b6)](_0x1cb0ec,Number(_0x54323d),_0x28b643);_0x464495&&_0x464495 instanceof a[_0x5ac751(0x21e)]&&this[_0x5ac751(0x379)](_0x464495);}async[_0x3e6264(0x379)](_0x22e6dd){const _0x1bbf06=_0x3e6264;await this[_0x1bbf06(0x331)](_0x22e6dd),_0x22e6dd[_0x1bbf06(0x1fc)][_0x1bbf06(0x170)](d[_0x1bbf06(0x1b7)](this[_0x1bbf06(0x1c2)]))['subscribe'](_0x1ce903=>{const _0x4ad965=_0x1bbf06;_0x1ce903&&this[_0x4ad965(0x2dc)](_0x1ce903);}),this[_0x1bbf06(0x3a4)]['urlChange$'][_0x1bbf06(0x170)](d[_0x1bbf06(0x1b7)](this[_0x1bbf06(0x1c2)]))[_0x1bbf06(0x349)](()=>this[_0x1bbf06(0x331)](_0x22e6dd));}[_0x3e6264(0x2dc)](_0x3a1141,_0x5e1f58=!0x1){const _0x2f62cc=_0x3e6264,_0x27f7f4=this[_0x2f62cc(0x3a4)]['getParam'](_0x2f62cc(0x157));_0x3a1141['getSheetId']()!==_0x27f7f4&&this['_urlService'][_0x2f62cc(0x218)](_0x2f62cc(0x157),_0x3a1141[_0x2f62cc(0x290)](),_0x5e1f58);}async[_0x3e6264(0x331)](_0x47b199){const _0x11439a=_0x3e6264;var _0x6770b;const _0x4edc20=this[_0x11439a(0x3a4)][_0x11439a(0x147)](_0x11439a(0x157));if(!_0x4edc20||!_0x47b199[_0x11439a(0x15e)](_0x4edc20)){const _0x3c1a97=_0x47b199['getUnhiddenWorksheets']()[0x0],_0x59c3ed=_0x47b199[_0x11439a(0x15e)](_0x3c1a97);if(!_0x59c3ed)return;this[_0x11439a(0x2dc)](_0x59c3ed,!0x0),await this[_0x11439a(0x277)]['executeCommand'](g[_0x11439a(0x315)]['id'],{'unitId':_0x47b199[_0x11439a(0x2ac)](),'subUnitId':_0x3c1a97});return;}((_0x6770b=_0x47b199[_0x11439a(0x286)]())==null?void 0x0:_0x6770b[_0x11439a(0x290)]())!==_0x4edc20&&await this[_0x11439a(0x277)][_0x11439a(0x23d)](g[_0x11439a(0x315)]['id'],{'unitId':_0x47b199[_0x11439a(0x2ac)](),'subUnitId':_0x4edc20});}},exports[_0x3e6264(0x23e)]=Yt([F(0x0,Ee),F(0x1,a[_0x3e6264(0x388)]),F(0x2,a[_0x3e6264(0x39f)]),F(0x3,a[_0x3e6264(0x1f4)](u['DataLoaderService'])),F(0x4,a[_0x3e6264(0x1f8)](Ke[_0x3e6264(0x244)]))],exports[_0x3e6264(0x23e)]);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x2db6c0,_0x1bd2de,_0x525783,_0x142c18)=>{const _0xf96c49=_0x3e6264;for(var _0x574710=_0x142c18>0x1?void 0x0:_0x142c18?Vt(_0x1bd2de,_0x525783):_0x1bd2de,_0x2c2ac3=_0x2db6c0[_0xf96c49(0x26b)]-0x1,_0x3a2cbe;_0x2c2ac3>=0x0;_0x2c2ac3--)(_0x3a2cbe=_0x2db6c0[_0x2c2ac3])&&(_0x574710=_0x3a2cbe(_0x574710)||_0x574710);return _0x574710;},le=(_0x10def4,_0x478735)=>(_0x5c7df3,_0x2228f5)=>_0x478735(_0x5c7df3,_0x2228f5,_0x10def4);let J=class{constructor(_0x40ed4c,_0xc0b608,_0x41f156){const _0xf5de3c=_0x3e6264;this['_injector']=_0x40ed4c,this['_transformService']=_0xc0b608,this[_0xf5de3c(0x348)]=_0x41f156;}[_0x3e6264(0x34b)](_0x48568f){const _0x271a27=_0x3e6264;this[_0x271a27(0x2b2)](_0x48568f),this[_0x271a27(0x193)](_0x48568f);}[_0x3e6264(0x28c)](_0x120504){const _0x2582f4=_0x3e6264,{unitID:_0x44e05c}=_0x120504,_0x5c851a=this[_0x2582f4(0x348)][_0x2582f4(0x1f1)](_0x44e05c)[_0x2582f4(0x2a3)](b['DocIMEInputManagerService']),{redoCache:_0x386eb3}=_0x5c851a['getUndoRedoMutationParamsCache']();if(_0x386eb3[_0x2582f4(0x26b)]===0x0)return _0x120504;let _0x4d0741=a['Tools'][_0x2582f4(0x19b)](_0x120504[_0x2582f4(0x233)][0x0]);for(let _0x20690a=0x0;_0x20690a<_0x386eb3[_0x2582f4(0x26b)];_0x20690a++){const _0x4f8786={'id':_0x2582f4(0x2e7),'params':{..._0x386eb3[_0x20690a]}},_0x323e0d=this['_transformService'][_0x2582f4(0x2af)](_0x4d0741,_0x4f8786,!0x1);if(m[_0x2582f4(0x186)](_0x323e0d))throw _0x323e0d[_0x2582f4(0x328)];_0x4d0741=_0x323e0d[_0x2582f4(0x311)];}return{...a['Tools'][_0x2582f4(0x19b)](_0x120504),'mutations':[_0x4d0741]};}[_0x3e6264(0x2b2)](_0x1c048a){const _0x28bca3=_0x3e6264,{unitID:_0x5a6280}=_0x1c048a,_0x2af8e0=this[_0x28bca3(0x348)][_0x28bca3(0x1f1)](_0x5a6280)[_0x28bca3(0x2a3)](b['DocIMEInputManagerService']),{undoCache:_0x29daa6,redoCache:_0x22363b}=_0x2af8e0[_0x28bca3(0x355)]();if(_0x29daa6[_0x28bca3(0x26b)]===0x0||_0x22363b[_0x28bca3(0x26b)]===0x0)return;const _0x4b229f=[],_0xb8e995=[];let _0x48c528=a[_0x28bca3(0x336)]['deepClone'](_0x1c048a[_0x28bca3(0x233)][0x0]),_0x159ffa=a[_0x28bca3(0x336)][_0x28bca3(0x19b)](_0x1c048a[_0x28bca3(0x233)][0x0]);for(let _0x3ce90a=_0x29daa6[_0x28bca3(0x26b)]-0x1;_0x3ce90a>=0x0;_0x3ce90a--){const _0x332d18={'id':_0x28bca3(0x2e7),'params':{..._0x29daa6[_0x3ce90a]}},_0x39cc82={'id':_0x28bca3(0x2e7),'params':{..._0x22363b[_0x3ce90a]}},_0x320a99=this['_transformService'][_0x28bca3(0x2af)](_0x48c528,_0x332d18,!0x1),_0x98dbef=this[_0x28bca3(0x191)][_0x28bca3(0x2af)](_0x159ffa,_0x39cc82,!0x1);if(m[_0x28bca3(0x186)](_0x320a99))throw _0x320a99[_0x28bca3(0x328)];if(m['isTransformMutationFailure'](_0x98dbef))throw _0x98dbef[_0x28bca3(0x328)];_0x4b229f['unshift'](_0x320a99['m2Prime'][_0x28bca3(0x2d9)]),_0xb8e995[_0x28bca3(0x160)](_0x98dbef[_0x28bca3(0x203)][_0x28bca3(0x2d9)]),_0x48c528=_0x320a99[_0x28bca3(0x311)],_0x159ffa=_0x98dbef[_0x28bca3(0x311)];}_0x2af8e0['setUndoRedoMutationParamsCache']({'undoCache':_0x4b229f,'redoCache':_0xb8e995});}[_0x3e6264(0x193)](_0x38df3f){const _0x2933b8=_0x3e6264,{unitID:_0x50b74c}=_0x38df3f,_0x15848a=this[_0x2933b8(0x348)][_0x2933b8(0x1f1)](_0x50b74c)[_0x2933b8(0x2a3)](b['DocIMEInputManagerService']),_0x437539=_0x15848a['getActiveRange']();if(_0x437539==null)return;const _0x4077ab=[{'id':_0x2933b8(0x2e7),'params':{'unitId':_0x38df3f[_0x2933b8(0x255)],'actions':null,'textRanges':[_0x437539]}}],_0x286302=this['_transformService']['transformMutationsWithChangeset'](_0x38df3f,_0x4077ab);if(!m[_0x2933b8(0x1aa)](_0x286302))throw _0x286302[_0x2933b8(0x328)];const _0x42bee0=_0x286302[_0x2933b8(0x203)][0x0][_0x2933b8(0x2d9)][_0x2933b8(0x22c)];Array[_0x2933b8(0x307)](_0x42bee0)&&_0x42bee0[_0x2933b8(0x26b)]&&_0x15848a[_0x2933b8(0x2d3)](_0x42bee0[0x0]);}};J=Xt([le(0x0,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),le(0x1,m[_0x3e6264(0x278)]),le(0x2,p['IRenderManagerService'])],J);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x11b153,_0x370fdf,_0x5a8106,_0x348b62)=>{const _0xeadaa4=_0x3e6264;for(var _0x1c854f=_0x348b62>0x1?void 0x0:_0x348b62?Gt(_0x370fdf,_0x5a8106):_0x370fdf,_0x22345f=_0x11b153[_0xeadaa4(0x26b)]-0x1,_0x1e4bd9;_0x22345f>=0x0;_0x22345f--)(_0x1e4bd9=_0x11b153[_0x22345f])&&(_0x1c854f=_0x1e4bd9(_0x1c854f)||_0x1c854f);return _0x1c854f;},_e=(_0x50d7f7,_0x18f32e)=>(_0x5c1815,_0x23c942)=>_0x18f32e(_0x5c1815,_0x23c942,_0x50d7f7);let Z=class{constructor(_0x5add12,_0x479545,_0x4854bf){const _0x59c9f0=_0x3e6264;this[_0x59c9f0(0x1eb)]=_0x5add12,this[_0x59c9f0(0x191)]=_0x479545,this['_docStateChangeManagerService']=_0x4854bf;}[_0x3e6264(0x167)](_0x1034fe){const _0x57c6ab=_0x3e6264;this[_0x57c6ab(0x222)](_0x1034fe);}[_0x3e6264(0x28c)](_0x200851){const _0x4d3ab2=_0x3e6264,{unitID:_0x3f112c}=_0x200851,{collaboration:_0x178845}=this[_0x4d3ab2(0x19f)][_0x4d3ab2(0x28b)](_0x3f112c);if(_0x178845[_0x4d3ab2(0x26b)]===0x0)return _0x200851;let _0x13b3e0=a[_0x4d3ab2(0x336)][_0x4d3ab2(0x19b)](_0x200851['mutations'][0x0]);for(let _0x32b126=0x0;_0x32b126<_0x178845[_0x4d3ab2(0x26b)];_0x32b126++){const _0x526254={'id':_0x4d3ab2(0x2e7),'params':{'unitId':_0x178845[_0x32b126]['unitId'],..._0x178845[_0x32b126][_0x4d3ab2(0x20b)]}},_0x3b6eb9=this[_0x4d3ab2(0x191)][_0x4d3ab2(0x2af)](_0x13b3e0,_0x526254,!0x1);if(m[_0x4d3ab2(0x186)](_0x3b6eb9))throw _0x3b6eb9[_0x4d3ab2(0x328)];_0x13b3e0=_0x3b6eb9[_0x4d3ab2(0x311)];}return{...a[_0x4d3ab2(0x336)][_0x4d3ab2(0x19b)](_0x200851),'mutations':[_0x13b3e0]};}[_0x3e6264(0x222)](_0x368b18){const _0x18ccc8=_0x3e6264,{unitID:_0x5090e0}=_0x368b18,{history:_0x2804e0,collaboration:_0x2db443}=this[_0x18ccc8(0x19f)][_0x18ccc8(0x28b)](_0x5090e0);if(_0x2804e0[_0x18ccc8(0x26b)]===0x0&&_0x2db443[_0x18ccc8(0x26b)]===0x0)return;const _0x48062a=[],_0x100da7=[];let _0x529a73=a[_0x18ccc8(0x336)][_0x18ccc8(0x19b)](_0x368b18[_0x18ccc8(0x233)][0x0]),_0x3407a0=a[_0x18ccc8(0x336)]['deepClone'](_0x368b18[_0x18ccc8(0x233)][0x0]);for(let _0x3c3ecb=_0x2804e0[_0x18ccc8(0x26b)]-0x1;_0x3c3ecb>=0x0;_0x3c3ecb--){const _0x42299d={'id':_0x18ccc8(0x2e7),'params':{'unitId':_0x2804e0[_0x3c3ecb]['unitId'],..._0x2804e0[_0x3c3ecb][_0x18ccc8(0x3ad)]}},_0x179648={'id':_0x18ccc8(0x2e7),'params':{'unitId':_0x2804e0[_0x3c3ecb][_0x18ccc8(0x358)],..._0x2804e0[_0x3c3ecb][_0x18ccc8(0x20b)]}},_0x1b2e8f=this['_transformService']['transformMutation'](_0x529a73,_0x42299d,!0x1),_0x52e6df=this[_0x18ccc8(0x191)]['transformMutation'](_0x3407a0,_0x179648,!0x1);if(m['isTransformMutationFailure'](_0x1b2e8f))throw _0x1b2e8f[_0x18ccc8(0x328)];if(m[_0x18ccc8(0x186)](_0x52e6df))throw _0x52e6df[_0x18ccc8(0x328)];_0x48062a[_0x18ccc8(0x160)]({..._0x2804e0[_0x3c3ecb],'undoState':_0x1b2e8f[_0x18ccc8(0x203)][_0x18ccc8(0x2d9)],'redoState':_0x52e6df['m2Prime']['params']}),_0x529a73=_0x1b2e8f['m1Prime'],_0x3407a0=_0x52e6df[_0x18ccc8(0x311)];}_0x529a73=a['Tools'][_0x18ccc8(0x19b)](_0x368b18['mutations'][0x0]),_0x3407a0=a[_0x18ccc8(0x336)]['deepClone'](_0x368b18[_0x18ccc8(0x233)][0x0]);for(let _0x5ebf59=_0x2db443[_0x18ccc8(0x26b)]-0x1;_0x5ebf59>=0x0;_0x5ebf59--){const _0x5886c2={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2db443[_0x5ebf59]['unitId'],..._0x2db443[_0x5ebf59][_0x18ccc8(0x3ad)]}},_0x3fb768={'id':_0x18ccc8(0x2e7),'params':{'unitId':_0x2db443[_0x5ebf59]['unitId'],..._0x2db443[_0x5ebf59]['redoState']}},_0x4f633c=this[_0x18ccc8(0x191)][_0x18ccc8(0x2af)](_0x529a73,_0x5886c2,!0x1),_0x4312ec=this[_0x18ccc8(0x191)][_0x18ccc8(0x2af)](_0x3407a0,_0x3fb768,!0x1);if(m[_0x18ccc8(0x186)](_0x4f633c))throw _0x4f633c[_0x18ccc8(0x328)];if(m[_0x18ccc8(0x186)](_0x4312ec))throw _0x4312ec[_0x18ccc8(0x328)];_0x100da7[_0x18ccc8(0x160)]({..._0x2db443[_0x5ebf59],'undoState':_0x4f633c[_0x18ccc8(0x203)]['params'],'redoState':_0x4312ec[_0x18ccc8(0x203)][_0x18ccc8(0x2d9)]}),_0x529a73=_0x4f633c[_0x18ccc8(0x311)],_0x3407a0=_0x4312ec[_0x18ccc8(0x311)];}this[_0x18ccc8(0x19f)]['setStateCache'](_0x5090e0,{'history':_0x48062a,'collaboration':_0x100da7});}};Z=qt([_e(0x0,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),_e(0x1,m[_0x3e6264(0x278)]),_e(0x2,a[_0x3e6264(0x1f4)](b[_0x3e6264(0x219)]))],Z);var Kt=Object[_0x3e6264(0x2f9)],zt=(_0x10770d,_0x1d9eef,_0x5a7181,_0x1740ec)=>{const _0x2357e7=_0x3e6264;for(var _0x51cb7f=_0x1740ec>0x1?void 0x0:_0x1740ec?Kt(_0x1d9eef,_0x5a7181):_0x1d9eef,_0xf5c8bd=_0x10770d[_0x2357e7(0x26b)]-0x1,_0x1b7b38;_0xf5c8bd>=0x0;_0xf5c8bd--)(_0x1b7b38=_0x10770d[_0xf5c8bd])&&(_0x51cb7f=_0x1b7b38(_0x51cb7f)||_0x51cb7f);return _0x51cb7f;},Me=(_0x37d615,_0x2c7099)=>(_0x1625f4,_0x184d07)=>_0x2c7099(_0x1625f4,_0x184d07,_0x37d615);let Q=class{constructor(_0x3ec647,_0x1ff47a){const _0x14ed63=_0x3e6264;this['_injector']=_0x3ec647,this[_0x14ed63(0x191)]=_0x1ff47a;}['transformSelections'](_0x124b48){const _0x4337bf=_0x3e6264;var _0x451f3f;const _0x50b657=this[_0x4337bf(0x1eb)][_0x4337bf(0x320)](Y[_0x4337bf(0x35a)]),_0x24d799=(_0x451f3f=_0x50b657['getDocRanges']())!=null?_0x451f3f:[];if(_0x24d799['length']===0x0)return;const _0x433d61=_0x124b48['unitID'],_0x1def5b=[{'id':_0x4337bf(0x2e7),'params':{'unitId':_0x433d61,'actions':null,'textRanges':_0x24d799}}],_0x3f8f66=this['_transformService'][_0x4337bf(0x34f)](_0x124b48,_0x1def5b);if(!m[_0x4337bf(0x1aa)](_0x3f8f66))throw _0x3f8f66['error'];const _0x6af180=_0x3f8f66[_0x4337bf(0x203)][0x0]['params'][_0x4337bf(0x22c)];Array[_0x4337bf(0x307)](_0x6af180)&&_0x6af180['length']&&_0x50b657[_0x4337bf(0x288)](_0x6af180,{'unitId':_0x433d61,'subUnitId':_0x433d61},!0x1);}};Q=zt([Me(0x0,a['Inject'](a[_0x3e6264(0x37d)])),Me(0x1,m['ITransformService'])],Q);var Jt=Object[_0x3e6264(0x2f9)],Zt=(_0xa8b3c4,_0x3c830b,_0x3a08fc,_0xde4076)=>{const _0x422dcc=_0x3e6264;for(var _0x21562c=_0xde4076>0x1?void 0x0:_0xde4076?Jt(_0x3c830b,_0x3a08fc):_0x3c830b,_0x3f7ebf=_0xa8b3c4[_0x422dcc(0x26b)]-0x1,_0x2b047f;_0x3f7ebf>=0x0;_0x3f7ebf--)(_0x2b047f=_0xa8b3c4[_0x3f7ebf])&&(_0x21562c=_0x2b047f(_0x21562c)||_0x21562c);return _0x21562c;},N=(_0xaee51b,_0x3fab59)=>(_0x72639b,_0xd9d21c)=>_0x3fab59(_0x72639b,_0xd9d21c,_0xaee51b);let ee=class extends a[_0x3e6264(0x2e5)]{constructor(_0x57cff7,_0x380578,_0x4f7ef4,_0x105e41,_0x5e9efe,_0x2ab377,_0x5389b2,_0x399e13){const _0x2b7675=_0x3e6264;super(),_(this,'_status$',new d[(_0x2b7675(0x2cc))](u['CollaborationStatus'][_0x2b7675(0x36a)])),(this[_0x2b7675(0x19f)]=_0x57cff7,this[_0x2b7675(0x327)]=_0x380578,this[_0x2b7675(0x387)]=_0x4f7ef4,this[_0x2b7675(0x3b3)]=_0x105e41,this[_0x2b7675(0x232)]=_0x5e9efe,this['_docSyncEditingCollabCursorService']=_0x2ab377,this[_0x2b7675(0x38e)]=_0x5389b2,this[_0x2b7675(0x14e)]=_0x399e13,this[_0x2b7675(0x27a)]());}['_initEntityListener'](){const _0x2fd00b=_0x3e6264;this['disposeWithMe'](this[_0x2fd00b(0x327)][_0x2fd00b(0x37a)][_0x2fd00b(0x349)](_0x358305=>{const _0x3daad8=_0x2fd00b,_0x77bd27=this[_0x3daad8(0x19f)]['docStateChange$'][_0x3daad8(0x349)](_0x3ed49a=>{const _0x42a1d2=_0x3daad8;if(_0x3ed49a==null)return;const {unitId:_0x49971f,redoState:_0x4e81fe,commandId:_0x12dd9b}=_0x3ed49a;if(_0x49971f!==_0x358305[_0x42a1d2(0x255)])return;const _0x92aac1={'id':_0x12dd9b,'type':a[_0x42a1d2(0x33b)][_0x42a1d2(0x1d1)],'params':{'unitId':_0x49971f,'actions':_0x4e81fe['actions'],'textRanges':null}};_0x358305[_0x42a1d2(0x366)](_0x92aac1);});if(_0x358305['disposeWithMe'](_0x77bd27),_0x358305 instanceof u[_0x3daad8(0x303)]){const _0x557568={'onTransformIME':_0xc5206d=>this['_docTransformIMECacheService'][_0x3daad8(0x34b)](_0xc5206d),'onTransformState':_0x245e79=>this[_0x3daad8(0x3b3)][_0x3daad8(0x167)](_0x245e79),'onTransformSelections':_0x352305=>this[_0x3daad8(0x232)][_0x3daad8(0x2c7)](_0x352305),'onSyncEditingCollabCursor':_0x31f180=>this[_0x3daad8(0x198)]['syncEditingCollabCursor'](_0x31f180),'onTransformRemoteChangesetByIMECache':_0x47fb42=>this['_docTransformIMECacheService'][_0x3daad8(0x28c)](_0x47fb42),'onTransformRemoteChangesetByStateCache':_0x36cecd=>this[_0x3daad8(0x3b3)]['transformRemoteChangeset'](_0x36cecd)};_0x358305[_0x3daad8(0x17e)](_0x557568);}}));}};ee=Zt([N(0x0,a[_0x3e6264(0x1f4)](b[_0x3e6264(0x219)])),N(0x1,a[_0x3e6264(0x1f4)](u[_0x3e6264(0x294)])),N(0x2,a[_0x3e6264(0x1f4)](J)),N(0x3,a[_0x3e6264(0x1f4)](Z)),N(0x4,a[_0x3e6264(0x1f4)](Q)),N(0x5,a['Inject'](pe)),N(0x6,O['IMessageService']),N(0x7,a['Inject'](a[_0x3e6264(0x213)]))],ee);var Qt=Object[_0x3e6264(0x2f9)],es=(_0x5a0566,_0x31795c,_0x60ee7,_0x52053b)=>{const _0x384b7c=_0x3e6264;for(var _0x3b0b68=_0x52053b>0x1?void 0x0:_0x52053b?Qt(_0x31795c,_0x60ee7):_0x31795c,_0x128284=_0x5a0566[_0x384b7c(0x26b)]-0x1,_0x1a168e;_0x128284>=0x0;_0x128284--)(_0x1a168e=_0x5a0566[_0x128284])&&(_0x3b0b68=_0x1a168e(_0x3b0b68)||_0x3b0b68);return _0x3b0b68;},he=(_0x839ebe,_0x2e910c)=>(_0x5d9446,_0x4d19e4)=>_0x2e910c(_0x5d9446,_0x4d19e4,_0x839ebe);let me=class extends a[_0x3e6264(0x2e5)]{constructor(_0xd595f4,_0x210b28,_0x141837){const _0x4bb41e=_0x3e6264;super(),_(this,_0x4bb41e(0x3bf),new Map()),_(this,_0x4bb41e(0x1d5),new Map()),_(this,_0x4bb41e(0x39a),!0x1),(this['_configService']=_0xd595f4,this[_0x4bb41e(0x3a1)]=_0x210b28,this[_0x4bb41e(0x1de)]=_0x141837);}[_0x3e6264(0x226)](){const _0x43c674=_0x3e6264;this[_0x43c674(0x39a)]=!0x0;}['enableLocalCache'](){const _0x397649=_0x3e6264;this[_0x397649(0x39a)]=!0x1;}get['saveTaskMap'](){const _0x1fce27=_0x3e6264;return this[_0x1fce27(0x1d5)];}[_0x3e6264(0x2b7)](){const _0x3a6b4a=_0x3e6264;this['exhaustSavingTask']()[_0x3a6b4a(0x2b1)](()=>super[_0x3a6b4a(0x2b7)]());}async[_0x3e6264(0x2c9)](_0x9e91e1){const _0x20d189=_0x3e6264;return this[_0x20d189(0x39a)]?null:this[_0x20d189(0x3a1)][_0x20d189(0x3c9)](u[_0x20d189(0x329)](_0x9e91e1));}async[_0x3e6264(0x299)](_0x120fc3,_0x3319bf){const _0x42b8cc=_0x3e6264;return!!this[_0x42b8cc(0x3a1)][_0x42b8cc(0x262)](_0x120fc3,_0x3319bf);}[_0x3e6264(0x1ab)](_0x103175,_0x4267c7,_0x116235,_0x468a7e){const _0x71520a=_0x3e6264,_0x3bfca2=this[_0x71520a(0x1de)][_0x71520a(0x189)](_0x103175);this[_0x71520a(0x3bf)]['set'](_0x103175,{'unitID':_0x103175,'type':_0x4267c7,'awaitingChangeset':_0x116235,'mutations':_0x468a7e,'rev':_0x3bfca2}),this['_saveTaskMap'][_0x71520a(0x1d0)](_0x103175)||this[_0x71520a(0x211)](_0x103175);}['_scheduleSaving'](_0x5141a0){const _0x373f6a=_0x3e6264,_0x996e72=this[_0x373f6a(0x351)]();_0x996e72===0x0?this['_saveCache'](_0x5141a0):this[_0x373f6a(0x1d5)]['set'](_0x5141a0,setTimeout(()=>this[_0x373f6a(0x1e1)](_0x5141a0),_0x996e72));}['_getSaveTimeout'](){const _0x2b0ef4=_0x3e6264;var _0x49e3b2;return(_0x49e3b2=this['_configService'][_0x2b0ef4(0x1cb)](u[_0x2b0ef4(0x15c)]))!=null?_0x49e3b2:u[_0x2b0ef4(0x2b0)];}['_saveCache'](_0x2a7133){const _0x1bfef6=_0x3e6264,_0x2fb550=this[_0x1bfef6(0x1d5)][_0x1bfef6(0x320)](_0x2a7133);return _0x2fb550!==void 0x0&&window[_0x1bfef6(0x3bc)](_0x2fb550),this[_0x1bfef6(0x3a1)][_0x1bfef6(0x262)](u[_0x1bfef6(0x329)](_0x2a7133),this['_cachedData'][_0x1bfef6(0x320)](_0x2a7133))[_0x1bfef6(0x2b1)](()=>this[_0x1bfef6(0x1d5)][_0x1bfef6(0x1fd)](_0x2a7133));}async[_0x3e6264(0x258)](){const _0x2bc692=_0x3e6264,_0x518762=[];this[_0x2bc692(0x1d5)][_0x2bc692(0x3c8)]((_0xe5124,_0x4068f8)=>{const _0x326c52=_0x2bc692;window[_0x326c52(0x3bc)](_0xe5124),_0x518762[_0x326c52(0x228)](this[_0x326c52(0x1e1)](_0x4068f8)[_0x326c52(0x2b1)](()=>{const _0xd14990=_0x326c52;this['_saveTaskMap'][_0xd14990(0x1fd)](_0x4068f8);}));}),await Promise['all'](_0x518762);}};me=es([he(0x0,a[_0x3e6264(0x2f6)]),he(0x1,a['ILocalStorageService']),he(0x2,a[_0x3e6264(0x1f4)](m[_0x3e6264(0x36f)]))],me);class Be extends a[_0x3e6264(0x38b)]{constructor(){const _0x1c7e03=_0x3e6264;super(),_(this,'urlChange$'),this[_0x1c7e03(0x399)]=d[_0x1c7e03(0x2e1)](window,'popstate')[_0x1c7e03(0x170)](d[_0x1c7e03(0x1b7)](this[_0x1c7e03(0x1c2)]),d[_0x1c7e03(0x242)](0x1),d['mapTo'](void 0x0));}['setParam'](_0x2152e6,_0x181af6,_0x12e1a5=!0x1){const _0x1e417a=_0x3e6264,_0x516e25=new URL(window[_0x1e417a(0x1e2)][_0x1e417a(0x30d)]);_0x516e25['searchParams']['set'](_0x2152e6,_0x181af6),_0x12e1a5?window[_0x1e417a(0x344)][_0x1e417a(0x3c7)]('','',_0x516e25[_0x1e417a(0x31d)]()):window['history'][_0x1e417a(0x20f)]('','',_0x516e25[_0x1e417a(0x31d)]());}[_0x3e6264(0x1b1)](_0x1c45ca,_0x181c77=!0x1){const _0x135475=_0x3e6264,_0x294a5d=new URL(window[_0x135475(0x1e2)]['href']);_0x294a5d[_0x135475(0x175)][_0x135475(0x1fd)](_0x1c45ca),_0x181c77?window[_0x135475(0x344)][_0x135475(0x3c7)]('','',_0x294a5d['toString']()):window[_0x135475(0x344)]['pushState']('','',_0x294a5d[_0x135475(0x31d)]());}[_0x3e6264(0x147)](_0x25a3c8){const _0x36c4bf=_0x3e6264;var _0x2f320e;return(_0x2f320e=new URL(window[_0x36c4bf(0x1e2)][_0x36c4bf(0x30d)])[_0x36c4bf(0x175)][_0x36c4bf(0x320)](_0x25a3c8))!=null?_0x2f320e:void 0x0;}}var ts=Object[_0x3e6264(0x1e0)],ss=Object[_0x3e6264(0x2f9)],ns=(_0x490ffe,_0x56d066,_0x3f4dce)=>_0x56d066 in _0x490ffe?ts(_0x490ffe,_0x56d066,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f4dce}):_0x490ffe[_0x56d066]=_0x3f4dce,is=(_0x3a6376,_0x4a3728,_0x29c6b4,_0x8d720b)=>{for(var _0x59d152=_0x8d720b>0x1?void 0x0:_0x8d720b?ss(_0x4a3728,_0x29c6b4):_0x4a3728,_0x1abda6=_0x3a6376['length']-0x1,_0x6fa324;_0x1abda6>=0x0;_0x1abda6--)(_0x6fa324=_0x3a6376[_0x1abda6])&&(_0x59d152=_0x6fa324(_0x59d152)||_0x59d152);return _0x59d152;},ue=(_0x2af7a8,_0x45c197)=>(_0x18b01c,_0x5a6698)=>_0x45c197(_0x18b01c,_0x5a6698,_0x2af7a8),rs=(_0x4753a4,_0x53ca2e,_0x53fe06)=>ns(_0x4753a4,_0x53ca2e+'',_0x53fe06);const os='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x3e6264(0x289)]=class extends a['Plugin']{constructor(_0x49115c=Ne,_0x170e05,_0x234d5b,_0x934ec2){const _0x3da77b=_0x3e6264;super(),this[_0x3da77b(0x281)]=_0x49115c,this['_renderManagerService']=_0x170e05,this[_0x3da77b(0x1eb)]=_0x234d5b,this[_0x3da77b(0x18a)]=_0x934ec2;const {..._0x57d4d9}=a['merge']({},Ne,this[_0x3da77b(0x281)]);this[_0x3da77b(0x18a)][_0x3da77b(0x216)](Ft,_0x57d4d9);}[_0x3e6264(0x1c4)](){const _0x4b1b88=_0x3e6264;this[_0x4b1b88(0x3b6)](),this[_0x4b1b88(0x212)]();}[_0x3e6264(0x155)](){const _0x26e487=_0x3e6264;this[_0x26e487(0x2c2)]();}[_0x3e6264(0x3b6)](){const _0x2d94d4=_0x3e6264;var _0x5aafac;const _0x2fc5e9=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q[_0x2d94d4(0x16c)],{'useClass':q['WebSocketService']}],[u[_0x2d94d4(0x1b0)],{'useClass':me}],[exports[_0x2d94d4(0x251)]],[ee],[z],[x],[fe],[exports[_0x2d94d4(0x23e)]]];a[_0x2d94d4(0x2f1)](this[_0x2d94d4(0x1eb)],a[_0x2d94d4(0x17b)](_0x2fc5e9,(_0x5aafac=this['_config'])==null?void 0x0:_0x5aafac[_0x2d94d4(0x3bd)]));}['_registerRenderDependencies'](){const _0x26e5ff=_0x3e6264;this[_0x26e5ff(0x337)](this[_0x26e5ff(0x348)][_0x26e5ff(0x21b)](a['UniverInstanceType'][_0x26e5ff(0x20e)],[ve])),this['disposeWithMe'](this[_0x26e5ff(0x348)]['registerRenderModule'](a[_0x26e5ff(0x359)]['UNIVER_SHEET'],[ge]));}[_0x3e6264(0x212)](){const _0x266cc2=_0x3e6264;a[_0x266cc2(0x23f)](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x266cc2(0x23e)]]]);}},rs(exports[_0x3e6264(0x289)],_0x3e6264(0x386),os),exports[_0x3e6264(0x289)]=is([a[_0x3e6264(0x295)](u[_0x3e6264(0x2f0)]),ue(0x1,p['IRenderManagerService']),ue(0x2,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),ue(0x3,a[_0x3e6264(0x2f6)])],exports['UniverCollaborationClientUIPlugin']);var as=Object['getOwnPropertyDescriptor'],cs=(_0x3080ba,_0x18d9e4,_0x451e9b,_0x33366d)=>{const _0x4ab6a9=_0x3e6264;for(var _0x4b2286=_0x33366d>0x1?void 0x0:_0x33366d?as(_0x18d9e4,_0x451e9b):_0x18d9e4,_0xb98091=_0x3080ba[_0x4ab6a9(0x26b)]-0x1,_0x4f0e3c;_0xb98091>=0x0;_0xb98091--)(_0x4f0e3c=_0x3080ba[_0xb98091])&&(_0x4b2286=_0x4f0e3c(_0x4b2286)||_0x4b2286);return _0x4b2286;},W=(_0x4f5509,_0x19d3fd)=>(_0x108f39,_0x885608)=>_0x19d3fd(_0x108f39,_0x885608,_0x4f5509);exports[_0x3e6264(0x1ce)]=class extends u[_0x3e6264(0x298)]{constructor(_0x196e60,_0xb1545c,_0x20e9d4,_0x23f741,_0x432fad){super(_0x196e60,_0xb1545c,_0x20e9d4,_0x23f741,_0x432fad);}async['createSocket'](_0xdc1c11){const _0x2a3b43=_0x3e6264,_0x2bb211=await this[_0x2a3b43(0x2ee)](),_0x2c81a3=this[_0x2a3b43(0x16d)](_0xdc1c11,_0x2bb211);return this[_0x2a3b43(0x37b)](_0x2c81a3);}[_0x3e6264(0x16d)](_0x33a18a,_0x399d5a){const _0x5b37fb=_0x3e6264,_0x168224=typeof window>'u'?new URL(_0x33a18a):new URL(_0x33a18a,window[_0x5b37fb(0x1e2)][_0x5b37fb(0x2fb)]);_0x168224['searchParams'][_0x5b37fb(0x2a6)](_0x5b37fb(0x370),_0x399d5a);const _0x55edf0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5b37fb(0x1e2)][_0x5b37fb(0x37c)]);return _0x55edf0[_0x5b37fb(0x320)]('runId')&&_0x168224[_0x5b37fb(0x175)]['set'](_0x5b37fb(0x15d),_0x55edf0['get'](_0x5b37fb(0x15d))),_0x168224[_0x5b37fb(0x31d)]();}async['_getSessionTicket'](){const _0x1622d3=_0x3e6264;var _0x1bea11,_0xa56cd5,_0x153e87;const _0x4b7713=this[_0x1622d3(0x18a)]['getConfig'](u[_0x1622d3(0x28d)]),_0xcaf9b3=(_0x1bea11=_0x4b7713==null?void 0x0:_0x4b7713[_0x1622d3(0x14a)])!=null?_0x1bea11:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x153e87=(_0xa56cd5=(await this[_0x1622d3(0x3b1)]['get'](_0xcaf9b3,{'headers':{'Content-Type':_0x1622d3(0x201)}}))[_0x1622d3(0x149)])==null?void 0x0:_0xa56cd5[_0x1622d3(0x24d)])!=null?_0x153e87:'';}},exports[_0x3e6264(0x1ce)]=cs([W(0x0,a[_0x3e6264(0x1f4)](a[_0x3e6264(0x37d)])),W(0x1,a[_0x3e6264(0x1f4)](q[_0x3e6264(0x34c)])),W(0x2,a[_0x3e6264(0x2f6)]),W(0x3,a[_0x3e6264(0x388)]),W(0x4,m[_0x3e6264(0x1ef)])],exports[_0x3e6264(0x1ce)]);const Le=0x7530,Pe=_0x3e6264(0x3a6);function _0x4b4f(){const _0x2485e6=['INVALID_INVITE_CODE','Tools','disposeWithMe','Module','InsertRowCommandId','type','CommandType','isEditing','BuiltInUIPart','Failed','name','getOffsetConfig','_initStatusListener','_handleJoinEvent','_removeCollabCursors','history','_shapes','RemoveColCommandId','idSuffix','_renderManagerService','subscribe','78095mtZAFI','transformIMECache','HTTPService','endRow','url(#$1','transformMutationsWithChangeset','IImageIoService','_getSaveTimeout','SUBMIT_CHANGESET_TIMEOUT','_collabCursorController','save','getUndoRedoMutationParamsCache','_drawRectRange','eventID','unitId','UniverInstanceType','DocSelectionManagerService','YUUMI_URL_COL_OUT_OF_RANGE','defs','xlink:href','9QAlVVa','collabStatus.fetchMiss','next','jiqing500','_updateCollabCursors','@univerjs/sheets','APPLY_NON_SEQUENTIAL_REVISION','_scheduleHeartbeat','onLocalMutation','getDocRanges','UniverIcon','@univerjs/docs-ui','NOT_COLLAB','RemoveRowCommandId','fill','M0\x200H16V16H0z','_roomMembers$','RevisionService','sessionTicket','_instanceService','use','displayName','onCommandExecuted','assignAColorForMemberID','collabCursorState$','_refreshCollabCursors','SheetCollabCursorShape','_setupSubUnitSync','entityInit$','_doCreateSocket','search','Injector','toStringTag','_uiPartsService','_startSheetCollabCursor','ColorKit','none','_cursors','getOwnPropertySymbols','univer-online-status','pluginName','_docTransformIMECacheService','ILogService','APPLY_REJECT','round','RxDisposable','text','throttleTime','_messageService','2783583wTYzxu','startColumn','_anchorDot','WebURLService','MOBILE_HAS_BEEN_BOUND','unsubscribe','getSheetObject','min','_range','subscribeEvent','urlChange$','_disabled','getUnitStatus$','extend','_unitStatus','_send','ICommandService','_sheetSkeletonManagerService','_localStorageService','_updateLocalCursor','_entities','_urlService','onMouseMove','ACTIVE_UNIT_EVENT_CHANNEL','on-line-single','NO_OTHER_CLIENTS_EDITING','gold400','toRgbString','2YwkHOz','APPLY_DUPLICATED','undoState','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','DisposableCollection','_themeService','_httpService','_entityInit$','_docTransformStateCacheService','on-line-single_clip0_910_349','_syncEditingCollabCursorService','_registerDependencies','generateRandomId','string','currentSkeleton$','useObservable','purple300','clearTimeout','override','prototype','_cachedData','_localCacheService','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','sheetID','[CollaborationDataLoaderController]','contains','EMAIL_HAS_BEEN_BOUND','OnLineSingle','replaceState','forEach','getItem','jsxs','concat','clearInterval','width','resize','_status$','collab-text-range-','_init','UNAUTHENTICATED','WECHAT_HAS_BEEN_BOUND','getMemberID','selections','getVpScrollXYInfoByPosToVp','currentColor','some','getParam','runOnServer','body','wsSessionTicketUrl','measureText','flatMap','YUUMI_UNABLE_LOAD_URL','_localeService','1231273KSXlHi','Unknown\x20user','_anchor','_lastPointer','collabStatus.offline','createInstance','onRendered','className','subunit','distinctUntilChanged','createIdentifier','findNodePositionByCharIndex','onPointerLeave$','LOCAL_CACHE_INTERVAL_KEY','runId','getSheetBySheetId','ENSURE_SNAPSHOT_EXECUTION','unshift','_removeClearOtherTimer','Rect','addObject','runRefRangeMutations','hide','imageSourceType','transformStateCache','backgroundColor','getTypeOfUnitAdded$','2234342FissSA','collaboration-client.offline-data-not-saved','ISocketService','_createSocketURL','getCoordByCell','subUnitId','pipe','tag','UPDATE_CURSOR','univerjs-icon\x20univerjs-icon-','off-line-single_clip0_910_343','searchParams','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_document','_drawAnchor','LOGIN_FAILED','LICENSE_DISTRO_REJECTED','mergeOverrideWithDependencies','onPointerMove$','_docSkeleton','addHandlerCallback','size','@univerjs/network','values','from','engine','svg','APPLY_PERMISSION_DENIED','isTransformMutationFailure','roomMembers','_initCommandExecutedListener','getCurrentRevOfUnit','_configService','NOT_FOUND','PY_RUNTIME_SCRIPT_ERROR','univer-online','debug','parse','getSkeleton','_transformService','CollaborationEvent','_transformPreviousActiveRange','OTHER_CLIENTS_EDITING','getFocusedUnit','collaboration.closeRoom','complete','_docSyncEditingCollabCursorService','getTypeOfUnitDisposed$','_notificationService','deepClone','_dataLoaderService','_docSkeletonManagerService','NodePositionConvertToCursor','_docStateChangeManagerService','roomMembers$','hasOwnProperty','0\x200\x2017\x2016','INVALID_ARGUMENT','labelPosition','univer-online-status-title','36FBxDqH','attrs','RichTextEditingMutation','_eventUnsubscribe','isTransformMutationsWithChangesetSuccess','updateOfflineData','handleMoveRange','SNAPSHOT_HAS_BEEN_REMOVED','0\x200\x2016\x2016','univer-online-status-icon','ILocalCacheService','removeParam','DeleteRangeMoveLeftCommandId','@univerjs/sheets-ui','FETCH_MISS','random','UNIVER_SHEET','takeUntil','3949016TiTZtO','CollaborationStatus','INTERNAL_ERROR','indexOf','_onCursorDelete','translate(.97)','UNDEFINED','focused$','CONFLICT','_context','dispose$','SessionStatus','onStarting','propertyIsEnumerable','RefRangeService','split','show','RemoteUniscriptService','_scene','getConfig','apply','ALREADY_EXISTS','BrowserCollaborationSocketService','registerBeforeClose','has','MUTATION','getCellPositionByOffset','_toggleOffline','getViewport','_saveTaskMap','ONLINE','_selfUnitIDs','_render','12bwvTiV','_getScale','cursorInfo$','useDependency','INVITE_CODE_HAS_BEEN_UES','_revisionService','handleInsertRangeMoveRight','defineProperty','_saveCache','location','_clearOtherTimers','INotificationService','defIds','map','_scheduleClearOtherTimer','4788931kfOiFW','merge','PERMISSION_DENIED','_injector','handleDeleteRangeMoveLeft','CollaborationStatusDisplay','MemberService','ISnapshotServerService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getRenderById','startsWith','RegularPolygon','Inject','_draw','@univerjs/engine-render','#fff','Optional','selection','CollaborationUIEventService','VIEW_MAIN','activeSheet$','delete','PENDING','_collabCursorState$','AWAITING','application/json','HEADER_MENU','m2Prime','_hideTimer','...','UnitStatus','sheetId','SYNCED','addEventListener','480400euXECa','redoState','_colorAssignService','red300','UNIVER_DOC','pushState','MoveRangeCommandId','_scheduleSaving','_initDependencies','LocaleService','transform','lineTo','setConfig','collaboration-client-ui.config','setParam','DocStateChangeManagerService','CONNECTOR_DATA_TOO_LARGE','registerRenderModule','getValue','getCollabEntity$','Workbook','rxjs','Tooltip','IDocClipboardService','_transformHistoryAndStateStack','INVITE_CODE_ALREADY_BOUND','_hovered','IUIPartsService','disableLocalCache','@univerjs/docs','push','add','url(#off-line-single_clip0_910_343)','isActive','textRanges','invokeId','toDisposable','@univerjs/rpc','@univerjs/engine-formula','current','_docTransformSelectionsService','mutations','offline','symbol','_collaborationUIEventService','rgba(255,\x20255,\x20255,\x200.01)','assign','SheetSkeletonManagerService','cursorInfo','source','IURLService','executeCommand','CollaborationDataLoaderController','touchDependencies','currentTheme$','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','shareReplay','UNRECOGNIZED','IRemoteInstanceService','storage','filter','requireSession','1em','univer-offline','permission.content','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','getCurrentSelections','ticket','[RemoteUniscriptService]:\x20no\x20focused\x20unit','max','call','DesktopCollaborationStatusDisplayController','_handleHover','getAncestorScale','react/jsx-runtime','unitID','init','top','exhaustSavingTask','_cursorShapes','TEXT','function','setTimeout','ranges','send','_logService','DOC_RANGE_TYPE','USERS_LEAVE','setItem','_unitOnClients','_initStatusComponent','_cursorInfo$','jsx','@univerjs/drawing','ThemeService','RECT','IUniverInstanceService','length','OFFLINE','serializeRangeWithSheet','JOIN_ROOM_FAILED','unload','clsx','_labelPosition','getMember','endColumn','CollaborationUIEventId','_hover','COMPLETION_FINISHED','_commandService','ITransformService','collaboration.single-unit.warning','_initEntityListener','unit','_ensureSubject','getRelativeToViewportCoord','data','SheetsSelectionsService','startRow','_config','INVITE_CODE_REQUIRED','Warning','InsertRangeMoveDownCommandId','OffLineSingle','getActiveSheet','_beforeCloseService','replaceDocRanges','UniverCollaborationClientUIPlugin','TOO_MANY_REQUESTS','getStateCache','transformRemoteChangeset','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_online','handleDeleteRangeMoveUp','getSheetId','stringify','getCurrentUnitForType','_session','CollaborationController','DependentOn','@univerjs/design','_backgroundColor','CollaborationSocketService','saveOfflineData','evenodd','TEXT_RANGE_LAYER_INDEX','children','SetDocZoomRatioOperation','_onCursorUpdate','restore','result','combineLatest','registerRefRange','with','beginPath','_handleHeartbeatEvent','set','DocSkeletonManagerService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_docClipboardService','colorChannel1','SNAPSHOT_INVALID_SNAPSHOT','getUnitId','_color','IBeforeCloseService','transformMutation','LOCAL_CACHE_INTERVAL','then','_transformUndoRedoStack','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','collabStatus.syncing','_handleLeaveEvent','loadUnit','dispose','YUUMI_ASYNCIO_CANCELLED','onlineStatusTitle','syncEditingCollabCursor','@univerjs/core','moveTo','path','forwardRef','setShapeProps','_refRangeService','_drawTextRange','_registerRenderDependencies','deserializeRangeWithSheet','makeDirty','drawWith','_imageIoService','transformSelections','icon','loadOfflineData','@univerjs-pro/collaboration','black','BehaviorSubject','createElement','Rectangle','column','onTransformChange$','trim','range','setActiveRange','debounce','color','closePath','LICENSE_MAX_UNITS_EXCEEDED','sessionStatus$','params','handleInsertRangeMoveDown','getColor','_updateURLWithCurrentState','collab-client.tooltip.reconnect','YUUMI_RATE_OVER_LIMIT','_cursor','Error','fromEvent','MessageType','_univerInstanceService','connectInjector','Disposable','_toggleOnline','doc.mutation.rich-text-editing','OTHER_CLIENT_EDITING','_memberService','_colorIndex','replace','_getMergeRange','YUUMI_NO_CUBOID_FOR_QUESTION','_getSessionTicket','LICENSE_IMPORT_SIZE_EXCEEDED','UniverCollaborationClientPlugin','registerDependencies','session.collaboration-timeout','Vector2','newValue','_getAnchorBounding','IConfigService','_startDocCollabCursor','editingUnit','getOwnPropertyDescriptor','entries','origin','SHEET_VIEWPORT_KEY','div','SOCKET_FAILED_RETRY','@univerjs/ui','disposeUnit','asObservable','_collabSessionService','DocCollaborationEntity','fillStyle','APPLY_REVISION_CONFILICT','event$','isArray','YUUMI_SUBSCRIPTION_NOT_FOUND','getCollabCursors$','univer-flex\x20univer-items-center','find','status$','href','addClipboardHook','uni.network.url-service','_heartbeatTimer','m1Prime','blue400','SetSelectionsOperation','260Oseeyk','SetWorksheetActivateCommand','Shape','switchMap','EffectRefRangId','handleIRemoveCol','Subject','_assignedColors','LICENSE_EXPORT_SIZE_EXCEEDED','toString','_getSheetObject','_onRefRangeChange','get','fromEventSubject','WebBrowserSingleActiveUnitService','collabStatus.notCollab','_textBubble','arc','_name','_collaborationController','error','getLocalCacheKey','COLORS','CollaborationSessionService','_id','mask','debounceTime','onPointerEnter$','SetTextSelectionsOperation','_updateSubUnitFromURLParams','CHANGESET_REVISION_CONFILICT','includes','row'];_0x4b4f=function(){return _0x2485e6;};return _0x4b4f();}class ls extends a[_0x3e6264(0x2e5)]{constructor(){const _0x1da919=_0x3e6264;super(),_(this,'_id',a[_0x1da919(0x3b7)]()),_(this,_0x1da919(0x1d7),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x1da919(0x310),null),_(this,_0x1da919(0x1e3),new Map()),_(this,_0x1da919(0x39d),new Map()),this['_init']();}['dispose'](){const _0x379d03=_0x3e6264;super[_0x379d03(0x2b7)](),this['_clearOtherTimers'][_0x379d03(0x3c8)]((_0x28a411,_0x4005c9)=>this['_removeClearOtherTimer'](_0x4005c9)),this[_0x379d03(0x310)]&&window[_0x379d03(0x3cc)](this[_0x379d03(0x310)]);}[_0x3e6264(0x39b)](_0x10d1ea){const _0x18a386=_0x3e6264;return this[_0x18a386(0x27c)](_0x10d1ea)[_0x18a386(0x170)](d[_0x18a386(0x158)]());}[_0x3e6264(0x2f8)](_0x5e6429){const _0x256b11=_0x3e6264;this[_0x256b11(0x1d7)]['size']===0x0&&this[_0x256b11(0x365)](),this['_selfUnitIDs'][_0x256b11(0x229)](_0x5e6429),this['_send']({'type':0x0,'memberID':this[_0x256b11(0x32c)],'unitIDs':[_0x5e6429],'isForwarded':!0x1});}[_0x3e6264(0x300)](_0x2ea5d1){const _0x195181=_0x3e6264;this[_0x195181(0x1d7)][_0x195181(0x1fd)](_0x2ea5d1),this[_0x195181(0x1d7)][_0x195181(0x17f)]===0x0&&this[_0x195181(0x310)]&&window[_0x195181(0x3cc)](this[_0x195181(0x310)]);}[_0x3e6264(0x3d1)](){const _0x194630=_0x3e6264;this[_0x194630(0x337)](a[_0x194630(0x22e)](d[_0x194630(0x2e1)](window,_0x194630(0x245))[_0x194630(0x349)](_0x56191d=>{const _0x1cbcad=_0x194630;if(_0x56191d['key']!==Pe||!_0x56191d[_0x1cbcad(0x2f4)])return;const _0x3781da=JSON[_0x1cbcad(0x18f)](_0x56191d[_0x1cbcad(0x2f4)]);this['_handleEvent'](_0x3781da);}))),window[_0x194630(0x209)](_0x194630(0x26f),()=>this[_0x194630(0x39e)]({'type':0x1,'memberID':this[_0x194630(0x32c)],'unitIDs':Array[_0x194630(0x182)](this[_0x194630(0x1d7)])}));}['_handleEvent'](_0x520532){const _0x2e3ed8=_0x3e6264;switch(_0x520532[_0x2e3ed8(0x33a)]){case 0x0:this[_0x2e3ed8(0x342)](_0x520532);break;case 0x1:this[_0x2e3ed8(0x2b5)](_0x520532);break;case 0x2:this['_handleHeartbeatEvent'](_0x520532);break;}}[_0x3e6264(0x342)](_0x428653){const _0x1ea932=_0x3e6264,{unitIDs:_0x45363c,memberID:_0x561fca,isForwarded:_0x584bd5}=_0x428653;_0x45363c[_0x1ea932(0x3c8)](_0x39787d=>{const _0x18185c=_0x1ea932;if(!_0x584bd5&&this[_0x18185c(0x263)][_0x18185c(0x1d0)](_0x39787d)&&this[_0x18185c(0x27c)](_0x39787d)[_0x18185c(0x360)](u[_0x18185c(0x206)][_0x18185c(0x194)]),!this[_0x18185c(0x263)][_0x18185c(0x1d0)](_0x39787d)||!this[_0x18185c(0x263)][_0x18185c(0x320)](_0x39787d)['has'](_0x561fca)){const _0x3ff208=this[_0x18185c(0x263)][_0x18185c(0x320)](_0x39787d)||new Set();_0x3ff208[_0x18185c(0x229)](_0x561fca),this[_0x18185c(0x263)][_0x18185c(0x2a6)](_0x39787d,_0x3ff208),this[_0x18185c(0x1e7)](_0x561fca);}}),_0x584bd5||this[_0x1ea932(0x39e)]({'type':0x0,'memberID':this[_0x1ea932(0x32c)],'unitIDs':[...this[_0x1ea932(0x1d7)]],'isForwarded':!0x0});}[_0x3e6264(0x1e7)](_0xe2ec06){const _0x239885=_0x3e6264;this[_0x239885(0x161)](_0xe2ec06);const _0x192892=window[_0x239885(0x25c)](()=>{const _0x2fa36b=_0x239885;this['_unitOnClients'][_0x2fa36b(0x3c8)](_0x4e5a85=>{const _0x15c1ee=_0x2fa36b;_0x4e5a85[_0x15c1ee(0x1fd)](_0xe2ec06);});},Le*0x2);this['_clearOtherTimers'][_0x239885(0x2a6)](_0xe2ec06,_0x192892);}[_0x3e6264(0x161)](_0x2f9aa0){const _0x162386=_0x3e6264;if(this[_0x162386(0x1e3)]['has'](_0x2f9aa0)){const _0x442a36=this[_0x162386(0x1e3)][_0x162386(0x320)](_0x2f9aa0);_0x442a36&&window['clearTimeout'](_0x442a36),this[_0x162386(0x1e3)][_0x162386(0x2a6)](_0x2f9aa0,null);}}[_0x3e6264(0x2b5)](_0x587240){const _0x3fb42b=_0x3e6264,{memberID:_0x18dba1,unitIDs:_0x213340}=_0x587240;_0x213340['forEach'](_0x57309e=>{const _0x2a8c7f=_0x5852;var _0x1ecfee;const _0x2ca1c5=this[_0x2a8c7f(0x263)]['get'](_0x57309e);_0x2ca1c5&&(_0x2ca1c5[_0x2a8c7f(0x1fd)](_0x18dba1),(_0x1ecfee=this[_0x2a8c7f(0x27c)](_0x57309e))==null||_0x1ecfee[_0x2a8c7f(0x360)](_0x2ca1c5[_0x2a8c7f(0x17f)]===0x0?u[_0x2a8c7f(0x206)][_0x2a8c7f(0x3a8)]:u['UnitStatus'][_0x2a8c7f(0x194)]));}),this[_0x3fb42b(0x161)](_0x18dba1);}[_0x3e6264(0x2a5)](_0x24f652){this['_scheduleClearOtherTimer'](_0x24f652['memberID']);}[_0x3e6264(0x39e)](_0x46d165){const _0x79a8ca=_0x3e6264;localStorage[_0x79a8ca(0x262)](Pe,JSON[_0x79a8ca(0x291)](_0x46d165));}[_0x3e6264(0x365)](){const _0x366c68=_0x3e6264;this[_0x366c68(0x310)]=window['setInterval'](()=>{const _0x158f9e=_0x366c68;this[_0x158f9e(0x39e)]({'type':0x2,'memberID':this[_0x158f9e(0x32c)]});},Le);}['_ensureSubject'](_0x5dc99e){const _0x3a4f46=_0x3e6264;return this[_0x3a4f46(0x39d)][_0x3a4f46(0x1d0)](_0x5dc99e)||this[_0x3a4f46(0x39d)][_0x3a4f46(0x2a6)](_0x5dc99e,new d[(_0x3a4f46(0x2cc))](u['UnitStatus'][_0x3a4f46(0x3a8)])),this[_0x3a4f46(0x39d)][_0x3a4f46(0x320)](_0x5dc99e);}}var ke=(_0x48e052=>(_0x48e052[_0x48e052[_0x3e6264(0x1be)]=0x0]='UNDEFINED',_0x48e052[_0x48e052['OK']=0x1]='OK',_0x48e052[_0x48e052[_0x3e6264(0x1ba)]=0x2]=_0x3e6264(0x1ba),_0x48e052[_0x48e052[_0x3e6264(0x1ea)]=0x3]=_0x3e6264(0x1ea),_0x48e052[_0x48e052[_0x3e6264(0x18b)]=0x4]=_0x3e6264(0x18b),_0x48e052[_0x48e052[_0x3e6264(0x3d2)]=0x5]=_0x3e6264(0x3d2),_0x48e052[_0x48e052[_0x3e6264(0x1cd)]=0x6]='ALREADY_EXISTS',_0x48e052[_0x48e052[_0x3e6264(0x1a3)]=0x7]=_0x3e6264(0x1a3),_0x48e052[_0x48e052[_0x3e6264(0x28a)]=0x8]=_0x3e6264(0x28a),_0x48e052[_0x48e052[_0x3e6264(0x276)]=0x9]=_0x3e6264(0x276),_0x48e052[_0x48e052['LOGIN_FAILED']=0xa]=_0x3e6264(0x179),_0x48e052[_0x48e052[_0x3e6264(0x332)]=0x1389]=_0x3e6264(0x332),_0x48e052[_0x48e052[_0x3e6264(0x2ab)]=0x1771]=_0x3e6264(0x2ab),_0x48e052[_0x48e052[_0x3e6264(0x1ad)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x48e052[_0x48e052[_0x3e6264(0x15f)]=0x1773]=_0x3e6264(0x15f),_0x48e052[_0x48e052[_0x3e6264(0x389)]=0x1b59]='APPLY_REJECT',_0x48e052[_0x48e052[_0x3e6264(0x364)]=0x1b5a]=_0x3e6264(0x364),_0x48e052[_0x48e052[_0x3e6264(0x305)]=0x1b5b]=_0x3e6264(0x305),_0x48e052[_0x48e052[_0x3e6264(0x185)]=0x1b5c]=_0x3e6264(0x185),_0x48e052[_0x48e052[_0x3e6264(0x3ac)]=0x1b5d]='APPLY_DUPLICATED',_0x48e052[_0x48e052[_0x3e6264(0x21a)]=0x1f41]=_0x3e6264(0x21a),_0x48e052[_0x48e052[_0x3e6264(0x2d7)]=0x2329]=_0x3e6264(0x2d7),_0x48e052[_0x48e052[_0x3e6264(0x1f0)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x48e052[_0x48e052[_0x3e6264(0x2ef)]=0x232b]=_0x3e6264(0x2ef),_0x48e052[_0x48e052[_0x3e6264(0x31c)]=0x232c]=_0x3e6264(0x31c),_0x48e052[_0x48e052[_0x3e6264(0x17a)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x48e052[_0x48e052['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x3e6264(0x14d),_0x48e052[_0x48e052[_0x3e6264(0x35b)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x48e052[_0x48e052[_0x3e6264(0x2de)]=0x2713]=_0x3e6264(0x2de),_0x48e052[_0x48e052[_0x3e6264(0x308)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x48e052[_0x48e052[_0x3e6264(0x2ed)]=0x271a]=_0x3e6264(0x2ed),_0x48e052[_0x48e052[_0x3e6264(0x2b8)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x48e052[_0x48e052[_0x3e6264(0x18c)]=0x2af9]=_0x3e6264(0x18c),_0x48e052[_0x48e052[_0x3e6264(0x1dd)]=0x2ee1]=_0x3e6264(0x1dd),_0x48e052[_0x48e052[_0x3e6264(0x335)]=0x2ee2]='INVALID_INVITE_CODE',_0x48e052[_0x48e052[_0x3e6264(0x282)]=0x2ee3]=_0x3e6264(0x282),_0x48e052[_0x48e052['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0x48e052[_0x48e052[_0x3e6264(0x223)]=0x2ee5]=_0x3e6264(0x223),_0x48e052[_0x48e052[_0x3e6264(0x3d3)]=0x32c9]=_0x3e6264(0x3d3),_0x48e052[_0x48e052[_0x3e6264(0x393)]=0x32ca]=_0x3e6264(0x393),_0x48e052[_0x48e052[_0x3e6264(0x3c5)]=0x32cb]=_0x3e6264(0x3c5),_0x48e052[_0x48e052['UNRECOGNIZED']=-0x1]=_0x3e6264(0x243),_0x48e052))(ke||{}),_s=Object[_0x3e6264(0x2f9)],hs=(_0x5694ba,_0x4b4e0c,_0x378803,_0x43596b)=>{const _0x1d1891=_0x3e6264;for(var _0x7791f2=_0x43596b>0x1?void 0x0:_0x43596b?_s(_0x4b4e0c,_0x378803):_0x4b4e0c,_0xc38bde=_0x5694ba[_0x1d1891(0x26b)]-0x1,_0x516197;_0xc38bde>=0x0;_0xc38bde--)(_0x516197=_0x5694ba[_0xc38bde])&&(_0x7791f2=_0x516197(_0x7791f2)||_0x7791f2);return _0x7791f2;},de=(_0x13e525,_0x12ab6e)=>(_0x56990e,_0x5990a6)=>_0x12ab6e(_0x56990e,_0x5990a6,_0x13e525);exports[_0x3e6264(0x1c9)]=class extends a[_0x3e6264(0x2e5)]{constructor(_0x5e3e81,_0x288c4e,_0x5a4c1d){const _0x6a59b1=_0x3e6264;super(),this[_0x6a59b1(0x371)]=_0x5e3e81,this['_httpService']=_0x288c4e,this[_0x6a59b1(0x18a)]=_0x5a4c1d;}async[_0x3e6264(0x148)](_0x317b58,_0x2c1367,_0x36e4e5,..._0x4c8e0a){const _0x1c30f4=_0x3e6264;var _0x3fed8e,_0x568a49,_0xb2c734,_0x5e27fa;const _0x2b012b=this[_0x1c30f4(0x371)][_0x1c30f4(0x195)]();if(!_0x2b012b)throw new Error(_0x1c30f4(0x24e));const _0x2757ee=((_0x3fed8e=this[_0x1c30f4(0x18a)][_0x1c30f4(0x1cb)](u[_0x1c30f4(0x3ae)]))!=null?_0x3fed8e:u[_0x1c30f4(0x2a8)])+'/'+_0x317b58+'/run/'+_0x2c1367,_0x126837=new URL(window[_0x1c30f4(0x1e2)][_0x1c30f4(0x30d)]),_0x5d36c1={'scriptId':_0x317b58,'runId':(_0x568a49=_0x126837[_0x1c30f4(0x175)][_0x1c30f4(0x320)]('runId'))!=null?_0x568a49:'','function':_0x2c1367,'unitId':_0x2b012b[_0x1c30f4(0x2ac)](),'argsOfFunction':JSON['stringify'](_0x4c8e0a),'invokeId':(_0xb2c734=_0x36e4e5[_0x1c30f4(0x22d)])!=null?_0xb2c734:'','executionId':(_0x5e27fa=_0x36e4e5['executionId'])!=null?_0x5e27fa:''};try{const _0x3afd92=await this[_0x1c30f4(0x3b1)]['post'](_0x2757ee,{'body':_0x5d36c1});return _0x3afd92[_0x1c30f4(0x149)][_0x1c30f4(0x328)]&&_0x3afd92[_0x1c30f4(0x149)]['error']['code']!==ke['OK']?_0x1c30f4(0x33e):_0x3afd92[_0x1c30f4(0x149)][_0x1c30f4(0x2a0)];}catch{return _0x1c30f4(0x33e);}}},exports[_0x3e6264(0x1c9)]=hs([de(0x0,a['IUniverInstanceService']),de(0x1,a['Inject'](q[_0x3e6264(0x34c)])),de(0x2,a[_0x3e6264(0x2f6)])],exports['RemoteUniscriptService']),exports[_0x3e6264(0x1ed)]=je,exports[_0x3e6264(0x23c)]=Ee,exports[_0x3e6264(0x378)]=Ae,exports[_0x3e6264(0x322)]=ls,exports[_0x3e6264(0x392)]=Be;
|