@univerjs-pro/collaboration-client-ui 0.5.2 → 0.5.3-experimental.20250106-e3b7a39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3df0e2=_0x21b7;(function(_0x41a79d,_0x36f3bc){const _0x45f5b7=_0x21b7,_0x5b1011=_0x41a79d();while(!![]){try{const _0x337f30=-parseInt(_0x45f5b7(0xa3))/0x1*(-parseInt(_0x45f5b7(0xa9))/0x2)+parseInt(_0x45f5b7(0x98))/0x3*(parseInt(_0x45f5b7(0x99))/0x4)+-parseInt(_0x45f5b7(0xa4))/0x5+-parseInt(_0x45f5b7(0xa5))/0x6*(-parseInt(_0x45f5b7(0x9b))/0x7)+-parseInt(_0x45f5b7(0xa1))/0x8*(-parseInt(_0x45f5b7(0x9c))/0x9)+parseInt(_0x45f5b7(0xa2))/0xa+-parseInt(_0x45f5b7(0x9d))/0xb;if(_0x337f30===_0x36f3bc)break;else _0x5b1011['push'](_0x5b1011['shift']());}catch(_0x55b6f2){_0x5b1011['push'](_0x5b1011['shift']());}}}(_0x4d49,0x383e4));const t=require(_0x3df0e2(0xa6)),e=require(_0x3df0e2(0xa0));function _0x4d49(){const _0x5a184f=['_injector','@univerjs/core','472wEXrjs','25860pQmgVf','19uAQMbg','2205435OeRfDB','398214uWwnKw','@univerjs-pro/collaboration-client-ui','FUniver','RemoteUniscriptService','31334cajurS','runOnServer','14451ZSGuFx','348FRfehu','get','14twvnld','1359dKzzpX','2084786iKffHX','extend'];_0x4d49=function(){return _0x5a184f;};return _0x4d49();}class c extends e[_0x3df0e2(0xa7)]{[_0x3df0e2(0xaa)](_0x377016,_0x339a28,..._0x2d110c){const _0x528f5c=_0x3df0e2;return this[_0x528f5c(0x9f)][_0x528f5c(0x9a)](t[_0x528f5c(0xa8)])[_0x528f5c(0xaa)](_0x377016,_0x339a28,..._0x2d110c);}}function _0x21b7(_0x2ac3a4,_0x31fb66){const _0x4d4988=_0x4d49();return _0x21b7=function(_0x21b70e,_0x33e9d3){_0x21b70e=_0x21b70e-0x98;let _0x49f0c1=_0x4d4988[_0x21b70e];return _0x49f0c1;},_0x21b7(_0x2ac3a4,_0x31fb66);}e[_0x3df0e2(0xa7)][_0x3df0e2(0x9e)](c);
1
+ 'use strict';const _0x4de02f=_0x4445;(function(_0x6271aa,_0x41b7cc){const _0x5638c7=_0x4445,_0x363cfa=_0x6271aa();while(!![]){try{const _0xb4772e=parseInt(_0x5638c7(0xe0))/0x1*(parseInt(_0x5638c7(0xde))/0x2)+-parseInt(_0x5638c7(0xd9))/0x3+parseInt(_0x5638c7(0xd6))/0x4+-parseInt(_0x5638c7(0xda))/0x5+parseInt(_0x5638c7(0xe1))/0x6+-parseInt(_0x5638c7(0xd4))/0x7+parseInt(_0x5638c7(0xd2))/0x8*(parseInt(_0x5638c7(0xdd))/0x9);if(_0xb4772e===_0x41b7cc)break;else _0x363cfa['push'](_0x363cfa['shift']());}catch(_0x14f72e){_0x363cfa['push'](_0x363cfa['shift']());}}}(_0x21be,0x5a405));function _0x4445(_0x12a188,_0x4c344b){const _0x21bef0=_0x21be();return _0x4445=function(_0x444513,_0x1074f6){_0x444513=_0x444513-0xd2;let _0x5c9fce=_0x21bef0[_0x444513];return _0x5c9fce;},_0x4445(_0x12a188,_0x4c344b);}function _0x21be(){const _0x141be9=['get','829616HMQSZG','runOnServer','extend','1416192kwKQKS','2703235wmdpgT','@univerjs/core','RemoteUniscriptService','9OrtwUl','2BXbdLv','@univerjs-pro/collaboration-client-ui','545093OFsEWT','138870pOdGFX','7817976kRuHax','FUniver','2593563RGtLEc'];_0x21be=function(){return _0x141be9;};return _0x21be();}const t=require(_0x4de02f(0xdf)),e=require(_0x4de02f(0xdb));class c extends e[_0x4de02f(0xd3)]{[_0x4de02f(0xd7)](_0x1aef83,_0x5e25b1,..._0x8afe17){const _0x350d8a=_0x4de02f;return this['_injector'][_0x350d8a(0xd5)](t[_0x350d8a(0xdc)])[_0x350d8a(0xd7)](_0x1aef83,_0x5e25b1,{},..._0x8afe17);}}e[_0x4de02f(0xd3)][_0x4de02f(0xd8)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5803ac=_0x2da3;(function(_0x21a636,_0x597db7){const _0x40c8f1=_0x2da3,_0x5d2734=_0x21a636();while(!![]){try{const _0x4b5b47=parseInt(_0x40c8f1(0x295))/0x1+-parseInt(_0x40c8f1(0x2ae))/0x2*(parseInt(_0x40c8f1(0x2ad))/0x3)+parseInt(_0x40c8f1(0x2b4))/0x4*(parseInt(_0x40c8f1(0x30d))/0x5)+-parseInt(_0x40c8f1(0x370))/0x6+parseInt(_0x40c8f1(0x239))/0x7*(parseInt(_0x40c8f1(0x23c))/0x8)+parseInt(_0x40c8f1(0x227))/0x9*(parseInt(_0x40c8f1(0x2a0))/0xa)+-parseInt(_0x40c8f1(0x2d5))/0xb;if(_0x4b5b47===_0x597db7)break;else _0x5d2734['push'](_0x5d2734['shift']());}catch(_0x389864){_0x5d2734['push'](_0x5d2734['shift']());}}}(_0x5547,0x50793));var Je=Object[_0x5803ac(0x209)],Ze=(_0x565e01,_0x4ef898,_0x3ebe2e)=>_0x4ef898 in _0x565e01?Je(_0x565e01,_0x4ef898,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ebe2e}):_0x565e01[_0x4ef898]=_0x3ebe2e,_=(_0x38cb70,_0x497530,_0x753b37)=>Ze(_0x38cb70,typeof _0x497530!=_0x5803ac(0x1fb)?_0x497530+'':_0x497530,_0x753b37);Object[_0x5803ac(0x209)](exports,Symbol[_0x5803ac(0x3b7)],{'value':_0x5803ac(0x2de)});const u=require(_0x5803ac(0x2e8)),a=require(_0x5803ac(0x1a2)),p=require(_0x5803ac(0x178)),fe=require('@univerjs/network'),b=require(_0x5803ac(0x234)),Qe=require(_0x5803ac(0x17f)),S=require('rxjs'),X=require(_0x5803ac(0x1a3)),g=require('@univerjs-pro/collaboration'),Te=require(_0x5803ac(0x18a)),I=require('@univerjs/sheets'),$=require(_0x5803ac(0x279)),q=require(_0x5803ac(0x1f5)),O=require(_0x5803ac(0x251)),w=require('@univerjs/ui'),M=require(_0x5803ac(0x35b)),et=require(_0x5803ac(0x201));var tt=Object[_0x5803ac(0x209)],st=Object['getOwnPropertyDescriptor'],nt=(_0x581b37,_0x29ab71,_0x168029,_0x458c73)=>{const _0x3df84a=_0x5803ac;for(var _0x23cafd=_0x458c73>0x1?void 0x0:_0x458c73?st(_0x29ab71,_0x168029):_0x29ab71,_0x170d3c=_0x581b37[_0x3df84a(0x244)]-0x1,_0x49fc20;_0x170d3c>=0x0;_0x170d3c--)(_0x49fc20=_0x581b37[_0x170d3c])&&(_0x23cafd=(_0x458c73?_0x49fc20(_0x29ab71,_0x168029,_0x23cafd):_0x49fc20(_0x23cafd))||_0x23cafd);return _0x458c73&&_0x23cafd&&tt(_0x29ab71,_0x168029,_0x23cafd),_0x23cafd;},Oe=(_0x18d4d5,_0x316144)=>(_0x38912d,_0x2a3440)=>_0x316144(_0x38912d,_0x2a3440,_0x18d4d5);let Se=class extends a[_0x5803ac(0x363)]{constructor(_0x275704,_0x3096eb){const _0x3e1216=_0x5803ac;super(),this['_docClipboardService']=_0x275704,this[_0x3e1216(0x1ad)]=_0x3096eb,this['_init']();}[_0x5803ac(0x1f4)](){const _0x58422b=_0x5803ac,_0x38a2cb=this;this[_0x58422b(0x1ed)](this[_0x58422b(0x162)]['addClipboardHook']({'onBeforePasteImage':async _0x54005c=>{const _0x211928=_0x58422b,_0x2780a8=await _0x38a2cb[_0x211928(0x1ad)][_0x211928(0x280)](_0x54005c);return _0x2780a8?{'source':_0x2780a8[_0x211928(0x39f)],'imageSourceType':_0x2780a8[_0x211928(0x2d8)]}:null;}}));}};Se=nt([Oe(0x0,b['IDocClipboardService']),Oe(0x1,Qe['IImageIoService'])],Se);const De=['purple300',_0x5803ac(0x3c0),'verdancy600',_0x5803ac(0x326),_0x5803ac(0x33b),'gold400'];class Ce extends a[_0x5803ac(0x1b5)]{constructor(){const _0x3ef410=_0x5803ac;super(...arguments),_(this,'_assignedColors',new Map()),_(this,_0x3ef410(0x3c2),0x0);}[_0x5803ac(0x399)](_0x452b22){const _0x50df71=_0x5803ac;if(this[_0x50df71(0x35e)][_0x50df71(0x30c)](_0x452b22))return this[_0x50df71(0x35e)][_0x50df71(0x393)](_0x452b22);const _0x49967a=De[this[_0x50df71(0x3c2)]];return this[_0x50df71(0x3c2)]=(this[_0x50df71(0x3c2)]+0x1)%De[_0x50df71(0x244)],this[_0x50df71(0x35e)][_0x50df71(0x2f4)](_0x452b22,_0x49967a),_0x49967a;}}function $e(_0x310244){let _0x5dfa08='';for(const _0x2bd1ad of _0x310244){const {startOffset:_0x2b34a5,endOffset:_0x1920c4,isActive:_0x2d30b9,rangeType:_0x5f7086,segmentId:_0x942eb0,segmentPage:_0x4ac18b}=_0x2bd1ad;_0x5dfa08['length']&&(_0x5dfa08+=','),_0x5dfa08+=_0x2b34a5+':'+_0x1920c4+':'+(_0x2d30b9?'1':'0')+':'+_0x5f7086+':'+_0x942eb0+':'+_0x4ac18b;}return _0x5dfa08;}function it(_0x273b7c){const _0x2008f7=_0x5803ac,_0x4abe0a=_0x273b7c[_0x2008f7(0x2f6)](','),_0x5588a8=[];for(const _0x4c2f7a of _0x4abe0a){const [_0x35a0db,_0x444304,_0x253ed5,_0x31db67,_0x42f47c,_0xd8cd0a]=_0x4c2f7a['split'](':');_0x5588a8[_0x2008f7(0x215)]({'startOffset':Number(_0x35a0db),'endOffset':Number(_0x444304),'collapsed':_0x35a0db===_0x444304,'isActive':_0x253ed5==='1','rangeType':_0x31db67===a['DOC_RANGE_TYPE'][_0x2008f7(0x19b)]?a['DOC_RANGE_TYPE']['TEXT']:a[_0x2008f7(0x210)][_0x2008f7(0x383)],'segmentId':typeof _0x42f47c==_0x2008f7(0x1cd)?String(_0x42f47c):'','segmentPage':Number(_0xd8cd0a!=null?_0xd8cd0a:-0x1)});}return _0x5588a8[_0x2008f7(0x286)](_0x1691a4=>_0x1691a4['isActive'])||(_0x5588a8[0x0]['isActive']=!0x0),_0x5588a8;}class be extends a[_0x5803ac(0x363)]{constructor(){const _0x162363=_0x5803ac;super(...arguments),_(this,_0x162363(0x34d),new S[(_0x162363(0x3ad))](null)),_(this,_0x162363(0x3a6),this[_0x162363(0x34d)][_0x162363(0x2cd)]());}['syncEditingCollabCursor'](_0x18623f){const _0x2071fd=_0x5803ac,{unitID:_0x356b23,memberID:_0x10e732,textRanges:_0x536684}=_0x18623f,_0x3275b7=$e(_0x536684);if(_0x3275b7==='')return;const _0x2fb4e8={'unitID':_0x356b23,'memberID':_0x10e732,'selection':_0x3275b7};this['_collabCursorState$'][_0x2071fd(0x1dd)](_0x2fb4e8);}}var rt=Object['defineProperty'],ot=Object[_0x5803ac(0x391)],at=(_0x1ff56e,_0x3cd1bd,_0x227f45,_0x4a1b21)=>{for(var _0x2f8eee=_0x4a1b21>0x1?void 0x0:_0x4a1b21?ot(_0x3cd1bd,_0x227f45):_0x3cd1bd,_0x41675f=_0x1ff56e['length']-0x1,_0x5ebf88;_0x41675f>=0x0;_0x41675f--)(_0x5ebf88=_0x1ff56e[_0x41675f])&&(_0x2f8eee=(_0x4a1b21?_0x5ebf88(_0x3cd1bd,_0x227f45,_0x2f8eee):_0x5ebf88(_0x2f8eee))||_0x2f8eee);return _0x4a1b21&&_0x2f8eee&&rt(_0x3cd1bd,_0x227f45,_0x2f8eee),_0x2f8eee;},U=(_0x457da8,_0x69a2be)=>(_0xa634b7,_0x2981d2)=>_0x69a2be(_0xa634b7,_0x2981d2,_0x457da8);const ct=0x12c,lt=0x64;let ve=class extends a[_0x5803ac(0x363)]{constructor(_0x50cb88,_0x458a4e,_0x235ce8,_0x5b96af,_0x483e3f,_0x422227,_0x466cf4,_0x2342c4,_0xf52103){const _0x15014d=_0x5803ac;super(),_(this,_0x15014d(0x173),!0x1),_(this,_0x15014d(0x1f4),!0x1),_(this,_0x15014d(0x24b),new S['BehaviorSubject'](new Map())),_(this,_0x15014d(0x27d),this[_0x15014d(0x24b)][_0x15014d(0x2cd)]()),_(this,_0x15014d(0x22a),new S[(_0x15014d(0x3ad))]([])),_(this,_0x15014d(0x3c3),this[_0x15014d(0x22a)][_0x15014d(0x1e2)](S[_0x15014d(0x2d7)](ct))),_(this,'_updateLocalCursor',a[_0x15014d(0x2ca)](_0x2c0868=>{const _0x509ba5=_0x15014d,_0x3dd3d2={'eventID':g[_0x509ba5(0x21d)][_0x509ba5(0x179)],'data':{'unitID':this[_0x509ba5(0x348)],'memberID':this['_session'][_0x509ba5(0x36d)](),'selection':$e(_0x2c0868)}};this[_0x509ba5(0x1ef)]['send'](_0x3dd3d2,this[_0x509ba5(0x348)]);},lt)),(this[_0x15014d(0x348)]=_0x50cb88,this['_session']=_0x458a4e,this[_0x15014d(0x37f)]=_0x235ce8,this[_0x15014d(0x394)]=_0x5b96af,this[_0x15014d(0x371)]=_0x483e3f,this[_0x15014d(0x161)]=_0x422227,this[_0x15014d(0x3b3)]=_0x466cf4,this[_0x15014d(0x3ac)]=_0x2342c4,this[_0x15014d(0x2e7)]=_0xf52103);}get[_0x5803ac(0x347)](){const _0x1ae587=_0x5803ac;return this['_cursorInfo$'][_0x1ae587(0x3b8)]();}get[_0x5803ac(0x3a2)](){const _0x3e8696=_0x5803ac;return this[_0x3e8696(0x22a)][_0x3e8696(0x3b8)]();}[_0x5803ac(0x263)](){const _0x423f94=_0x5803ac;super['dispose'](),this[_0x423f94(0x24b)][_0x423f94(0x1dd)](new Map()),this[_0x423f94(0x24b)][_0x423f94(0x2d9)](),this['_roomMembers$'][_0x423f94(0x1dd)]([]),this[_0x423f94(0x22a)][_0x423f94(0x2d9)]();}[_0x5803ac(0x294)](){const _0x59c20e=_0x5803ac;this[_0x59c20e(0x1f4)]||(this[_0x59c20e(0x1f4)]=!0x0,this[_0x59c20e(0x1ef)][_0x59c20e(0x15c)][_0x59c20e(0x1e2)](S[_0x59c20e(0x26d)](this[_0x59c20e(0x1d7)]))[_0x59c20e(0x2bb)](_0x3831e1=>{const _0x10cd06=_0x59c20e;_0x3831e1===u[_0x10cd06(0x30a)][_0x10cd06(0x192)]?this[_0x10cd06(0x186)]():this[_0x10cd06(0x2aa)]();}),this['_session'][_0x59c20e(0x170)][_0x59c20e(0x1e2)](S[_0x59c20e(0x26d)](this['dispose$']))['subscribe'](_0xc72c32=>{const _0x2e6ec7=_0x59c20e,_0x3a3a81=_0xc72c32[_0x2e6ec7(0x25f)];_0x3a3a81===g['CollaborationEvent'][_0x2e6ec7(0x179)]&&this[_0x2e6ec7(0x28a)](_0xc72c32),_0x3a3a81===g[_0x2e6ec7(0x21d)]['USERS_LEAVE']&&this[_0x2e6ec7(0x378)](_0xc72c32);}),this[_0x59c20e(0x1ed)](this[_0x59c20e(0x2e7)]['onCommandExecuted'](_0x37e239=>{const _0x4c007a=_0x59c20e,_0x325e8d=_0x37e239[_0x4c007a(0x19d)];_0x325e8d!=null&&this[_0x4c007a(0x173)]&&_0x37e239['id']===X[_0x4c007a(0x376)]['id']&&_0x325e8d[_0x4c007a(0x2e5)]===this[_0x4c007a(0x348)]&&_0x325e8d['isEditing']===!0x1&&_0x325e8d[_0x4c007a(0x379)]['length']>0x0&&this[_0x4c007a(0x1fa)](_0x325e8d[_0x4c007a(0x379)]);})),this[_0x59c20e(0x161)][_0x59c20e(0x3a6)][_0x59c20e(0x1e2)](S['takeUntil'](this[_0x59c20e(0x1d7)]))[_0x59c20e(0x2bb)](_0x4d6eba=>{const _0x19301a=_0x59c20e;if((_0x4d6eba==null?void 0x0:_0x4d6eba['unitID'])!==this['unitID'])return;const _0x26aa75={'eventID':g[_0x19301a(0x21d)][_0x19301a(0x179)],'data':_0x4d6eba};this[_0x19301a(0x28a)](_0x26aa75);}),this[_0x59c20e(0x1ed)](this[_0x59c20e(0x2e7)][_0x59c20e(0x1d1)](_0x4e5e96=>{const _0x5532e2=_0x59c20e;if(_0x4e5e96[_0x5532e2(0x19d)]==null)return;const _0x31352e=_0x4e5e96[_0x5532e2(0x19d)];if(_0x4e5e96['id']!==X[_0x5532e2(0x2ff)]['id']||_0x31352e[_0x5532e2(0x2e5)]!==this[_0x5532e2(0x348)])return;const _0x9f7f64={'id':_0x5532e2(0x2ba),'params':_0x31352e},_0x2afa22=this[_0x5532e2(0x347)];for(const [_0x1003eb,_0x500215]of _0x2afa22){const _0x3555f4={'id':_0x5532e2(0x2ba),'params':{'unitId':this[_0x5532e2(0x348)],'actions':null,'textRanges':_0x500215[_0x5532e2(0x379)]}},_0x364c8a=this[_0x5532e2(0x3b3)]['transformMutation'](_0x9f7f64,_0x3555f4,!0x1);if(g[_0x5532e2(0x22c)](_0x364c8a))throw _0x364c8a['error'];_0x2afa22[_0x5532e2(0x2f4)](_0x1003eb,{..._0x500215,'ranges':_0x364c8a['m2Prime'][_0x5532e2(0x19d)]['textRanges']});}queueMicrotask(()=>{const _0x51f22b=_0x5532e2;this['_cursorInfo$'][_0x51f22b(0x1dd)](_0x2afa22);});})));}[_0x5803ac(0x28a)](_0x4d5bfd){const _0x4c5875=_0x5803ac;var _0x278495,_0x215d08;const {memberID:_0x14d59d,selection:_0x1fb8d0}=_0x4d5bfd[_0x4c5875(0x34a)],_0x2d9d17=it(_0x1fb8d0),_0x5f0c49=(_0x215d08=(_0x278495=this[_0x4c5875(0x371)][_0x4c5875(0x350)](this[_0x4c5875(0x348)],_0x14d59d))==null?void 0x0:_0x278495[_0x4c5875(0x30b)])!=null?_0x215d08:_0x4c5875(0x320),_0x393de0={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x14d59d),'name':_0x5f0c49,'ranges':_0x2d9d17},_0xc5c2a6=this[_0x4c5875(0x347)];_0xc5c2a6[_0x4c5875(0x2f4)](_0x14d59d,_0x393de0),this[_0x4c5875(0x24b)][_0x4c5875(0x1dd)](_0xc5c2a6);}[_0x5803ac(0x378)](_0x31b584){const _0x13da4d=_0x5803ac,{memberID:_0x36e770}=_0x31b584[_0x13da4d(0x34a)],_0x42b456=this[_0x13da4d(0x347)];_0x42b456[_0x13da4d(0x1d3)](_0x36e770),this[_0x13da4d(0x24b)][_0x13da4d(0x1dd)](_0x42b456);}[_0x5803ac(0x186)](){const _0x3fb986=_0x5803ac;var _0x25b6fd;if(this['_online']=!0x0,((_0x25b6fd=this[_0x3fb986(0x3ac)][_0x3fb986(0x1a1)]())==null?void 0x0:_0x25b6fd['getUnitId']())!==this[_0x3fb986(0x348)])return;const _0x4cb320=this[_0x3fb986(0x37f)][_0x3fb986(0x393)](X[_0x3fb986(0x15e)])[_0x3fb986(0x2ee)]();Array[_0x3fb986(0x214)](_0x4cb320)&&_0x4cb320[_0x3fb986(0x244)]>0x0&&this['_updateLocalCursor'](_0x4cb320);}[_0x5803ac(0x2aa)](){this['_online']=!0x1;}};ve=at([U(0x2,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x358)])),U(0x3,a[_0x5803ac(0x1ff)](Ce)),U(0x4,a[_0x5803ac(0x1ff)](u[_0x5803ac(0x253)])),U(0x5,a[_0x5803ac(0x1ff)](be)),U(0x6,g[_0x5803ac(0x3a0)]),U(0x7,a[_0x5803ac(0x203)]),U(0x8,a['ICommandService'])],ve);var ht=Object[_0x5803ac(0x209)],_t=Object[_0x5803ac(0x391)],ut=(_0x179f8c,_0x48f7e6,_0x4e29db,_0xb7d3db)=>{const _0x3698dd=_0x5803ac;for(var _0x58e43e=_0xb7d3db>0x1?void 0x0:_0xb7d3db?_t(_0x48f7e6,_0x4e29db):_0x48f7e6,_0x3f2fcf=_0x179f8c[_0x3698dd(0x244)]-0x1,_0x5cc8a4;_0x3f2fcf>=0x0;_0x3f2fcf--)(_0x5cc8a4=_0x179f8c[_0x3f2fcf])&&(_0x58e43e=(_0xb7d3db?_0x5cc8a4(_0x48f7e6,_0x4e29db,_0x58e43e):_0x5cc8a4(_0x58e43e))||_0x58e43e);return _0xb7d3db&&_0x58e43e&&ht(_0x48f7e6,_0x4e29db,_0x58e43e),_0x58e43e;},A=(_0x570ccb,_0x45d8cd)=>(_0xe31e37,_0x5284e4)=>_0x45d8cd(_0xe31e37,_0x5284e4,_0x570ccb);function _0x5547(){const _0x14abcb=['path','JOIN_ROOM_FAILED','_clearOtherTimers','react.element','xlink:href','labelPosition','length','mergeOverrideWithDependencies','uni.network.url-service','DesktopCollaborationStatusDisplayController','colorChannel1','SheetCollabCursorShape','[CollaborationDataLoaderController]','_cursorInfo$','textRanges','_themeService','_initCommandExecutedListener','_draw','subunit','react','ILogService','MemberService','IRenderManagerService','all','beginPath','indexOf','getCurrentSelections','drawWith','getUnhiddenWorksheets','getCollabEntity$','APPLY_DUPLICATED','off-line-single','displayName','eventID','transform','_collaborationController','activeSheet$','dispose','_configService','className','defIds','show','unsubscribe','enableLocalCache','ref','getCurrentUnitForType','_saveCache','takeUntil','univer-online-status-title','_initEntityListener','parse','_urlService','InsertColCommandId','_getSheetObject','attrs','reconnect','DocCollaborationEntity','transformMutationsWithChangeset','DependentOn','rxjs/operators','assign','univer-online','post','cursorInfo$','find','restore','saveImage','_scheduleClearOtherTimer','lineTo','_collabCursorController','RevisionService','_transformHistoryAndStateStack','some','mutations','ENSURE_SNAPSHOT_EXECUTION','_selfUnitIDs','_onCursorUpdate','_color','OFFLINE','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','addObjects','SUBMIT_CHANGESET_TIMEOUT','1em','transformStateCache','_cursor','fill','init','120186zLKtFh','getUnitId','subscribeEvent','ACTIVE_UNIT_EVENT_CHANNEL','APPLY_PERMISSION_DENIED','handleInsertRangeMoveDown','ThemeService','UNDEFINED','permission.title','defs','onTransformChange$','5880UCPWyG','getSheetBySheetId','CHANGESET_REVISION_CONFILICT','useCallback','getTypeOfUnitAdded$','Shape','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','currentColor','_disabled','closePath','_toggleOffline','getRenderById','collabStatus.fetchMiss','285507KadHCZ','4zBoaEY','_entityInit$','defaultProps','YUUMI_UNABLE_LOAD_URL','onRendered','_eventUnsubscribe','8NUGaGT','/run/','startsWith','_scheduleHeartbeat','IConfigService','map','doc.mutation.rich-text-editing','subscribe','loadUnit','_drawTextRange','send','replace','_name','createIdentifier','CollaborationUIEventId','fillRule','use','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','_cachedData','_removeCollabCursors','SetWorksheetActivateCommand','hasOwnProperty','debounce','currentTheme$','_localStorageService','asObservable','_docTransformSelectionsService','_saveTaskMap','_updateSubUnitFromURLParams','generateRandomId','SheetsSelectionsService','Tooltip','_cursorShapes','1473010UlLqSA','exports','debounceTime','imageSourceType','complete','collabStatus.notCollab','round','trim','_getSaveTimeout','Module','_localeService','OffLineSingle','apply','engine','LOCAL_CACHE_INTERVAL_KEY','flatMap','unitId','Subject','_commandService','@univerjs-pro/collaboration-client','_drawRectRange','function','_textBubble','onPointerEnter$','whenReady','getDocRanges','_initResize','includes','COMPLETION_FINISHED','setItem','then','set','on-line-single_clip0_910_349','split','toRgbString','#fff','univer-offline','min','call','FromArray','selections','ISocketService','RichTextEditingMutation','InsertRowCommandId','setShapeProps','object','Fragment','_refRangeService','_initDependencies','handleDeleteRangeMoveUp','off-line-single_clip0_910_343','random','getCurrentRevOfUnit','SessionStatus','name','has','937095umjulA','requireSession','setStateCache','UNIVER_SHEET','_initStatusListener','_hideTimer','_collabSessionService','prototype','M0\x200H16V16H0z','getItem','getOwnPropertySymbols','skeleton','AWAITING','COLORS','_id','handleIRemoveCol','saveTaskMap','transformRemoteChangeset','DataLoaderService','Unknown\x20user','_render','docStateChange$','type','_httpService','_setupSubUnitSync','red300','sheetID','hide','_updateURLWithCurrentState','bottom','SNAPSHOT_HAS_BEEN_REMOVED','_docTransformIMECacheService','_unitOnClients','div','svg','startRow','getViewport','setConfig','LOCAL_CACHE_INTERVAL','clipPath','registerDependencies','addHandlerCallback','_document','_docTransformStateCacheService','transformSelections','href','blue400','endColumn','translate(.97)','getParam','max','loadOfflineData','univer-online-status','_registerDependencies','registerRefRange','disableLocalCache','handleInsertCol','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','cursorInfo','unitID','_registerRenderDependencies','data','width','_revisionService','_collabCursorState$','setTimeout','selection','getMember','NOT_COLLAB','DocStateChangeManagerService','getUndoRedoMutationParamsCache','_renderManagerService','urlChange$','from','transformMutation','Injector','APPLY_REVISION_CONFILICT','getUniverSheetInstance','@univerjs/design','storage','_collaborationUIEventService','_assignedColors','AWAITING_WITH_PENDING','saveOfflineData','_docSyncEditingCollabCursorService','memberID','RxDisposable','executeCommand','_beforeCloseService','DeleteRangeMoveUpCommandId','toString','disposeUnit','debug','newValue','ILocalCacheService','SNAPSHOT_INVALID_SNAPSHOT','getMemberID','SetSelectionsOperation','handleDeleteRangeMoveLeft','3466494vYuvfx','_memberService','_messageService','session.will-retry','getMergeData','CollaborationDataLoaderController','SetTextSelectionsOperation','_status$','_onCursorDelete','ranges','session.collaboration-timeout','forwardRef','registerBeforeClose','_transformUndoRedoStack','YUUMI_RATE_OVER_LIMIT','_injector','toDisposable','merge','univer-online-status-icon','RECT','touchDependencies','add','fromEventSubject','deserializeRangeWithSheet','_removeClearOtherTimer','fillText','[RemoteUniscriptService]:\x20no\x20focused\x20unit','_updateCollabCursors','Tools','syncEditingCollabCursor','UNIVER_DOC','status$','_labelPosition','getOwnPropertyDescriptor','undoState','get','_colorAssignService','url(#off-line-single_clip0_910_343)','_startSheetCollabCursor','getTypeOfUnitDisposed$','_docStateChangeManagerService','assignAColorForMemberID','rgba(255,\x20255,\x20255,\x200.01)','collab-rect-range-','SOCKET_FAILED','_onRefRangeChange','searchParams','source','ITransformService','LICENSE_MAX_UNITS_EXCEEDED','roomMembers','OnLineSingle','getSkeleton','getColor','collabCursorState$','_dataLoaderService','Warning','hovered','idSuffix','_hovered','_univerInstanceService','BehaviorSubject','_handleHeartbeatEvent','_ensureSubject','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','_startDocCollabCursor','jsxs','_transformService','LICENSE_DISTRO_REJECTED','Rectangle','YUUMI_URL_COL_OUT_OF_RANGE','toStringTag','getValue','size','font','collabStatus.conflict','currentSkeleton$','exhaustSavingTask','_anchor','for','jiqing500','ICommandService','_colorIndex','roomMembers$','getRangePointData','LocaleService','NodePositionConvertToCursor','getActiveRange','filter','onStarting','_send','MUTATION','error','makeDirty','_lastPointer','YUUMI_SUBSCRIPTION_NOT_FOUND','runId','UniverCollaborationClientPlugin','_setupBeforeClosingHandler','sessionStatus$','fromEvent','DocSelectionManagerService','_localCacheService','evenodd','_syncEditingCollabCursorService','_docClipboardService','concat','_entities','height','UNAUTHENTICATED','_unitStatus','RemoveColCommandId','SOCKET_FAILED_RETRY','DocIMEInputManagerService','Plugin','INotificationService','_docSkeleton','focused$','Error','event$','range','_handleHover','_online','useDependency','MessageType','BuiltInUIPart','RemoteUniscriptService','@univerjs/engine-render','UPDATE_CURSOR','_backgroundColor','key','registerComponent','_cursors','measureText','@univerjs/drawing','replaceDocRanges','_scene','CollaborationController','collaboration.closeRoom','IURLService','replaceState','_toggleOnline','INTERNAL_ERROR','UnitStatus','_heartbeatTimer','@univerjs/engine-formula','ALREADY_EXISTS','getSheetId','getActiveSheet','none','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','setAlpha','forEach','ONLINE','APPLY_REJECT','triggerDblclick','_context','combineLatest','react.fragment','_logService','text','redoState','TEXT','clearTimeout','params','TOO_MANY_REQUESTS','UniverInstanceType','_hover','getFocusedUnit','@univerjs/core','@univerjs/docs','TRANSFORM_CHANGE_OBSERVABLE_TYPE','CONNECTOR_DATA_TOO_LARGE','history','ColorKit','switchMap','ILocalStorageService','SetDocZoomRatioOperation','CollaborationStatus','onlineStatusIcon','_imageIoService','collab-text-range-','deepClone','RefRangeService','pushState','fillStyle','createElement','location','Disposable','color','NO_OTHER_CLIENTS_EDITING','RegularPolygon','shareReplay','WebURLService','CollaborationSessionService','collab-text-anchor-','handleIRemoveRow','getStateCache','getUnitStatus$','RemoveRowCommandId','addEventListener','_refreshCollabCursors','jsx','getCoordByCell','black','tag','WebSocketService','_initEvent','registerRenderModule','getAncestorScale','_range','handleMoveRange','string','unit','findNodePositionByCharIndex','online','onCommandExecuted','children','delete','NOT_FOUND','_docSkeletonManagerService','_getScale','dispose$','addObject','with','PERMISSION_DENIED','Rect','HEADER_MENU','next','url(#on-line-single_clip0_910_349)','collaboration-client.offline-data-not-saved','setActiveRange','onPointerMove$','pipe','getCollabCursors$','...','_scheduleSaving','permission.content','transformIMECache','code','getConfig','substring','USERS_LEAVE','session.connection-failed','disposeWithMe','entries','_session','0\x200\x2017\x2016','OTHER_CLIENTS_EDITING','values','_shapes','_init','@univerjs/sheets-ui','IMessageService','unshift','_handleEvent','PENDING','_updateLocalCursor','symbol','setParam','createInstance','row','Inject','arc','@univerjs/rpc','CONFLICT','IUniverInstanceService','_notificationService','MoveRangeCommandId','EffectRefRangId','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','NodePositionConvertToRectRange','defineProperty','_getAnchorBounding','INVALID_ARGUMENT','collaboration-client-ui.config','save','current','_anchorDot','DOC_RANGE_TYPE','column','stringify','m2Prime','isArray','push','onlineStatus','isTransformMutationsWithChangesetSuccess','_sheetSkeletonManagerService','getLocalCacheKey','CLOSE_ROOM','CollaborationStatusDisplay','IRemoteInstanceService','CollaborationEvent','override','onMouseMove','FETCH_MISS','LICENSE_IMPORT_SIZE_EXCEEDED','getSheetObject','SHEET_VIEWPORT_KEY','_uiPartsService','_initStatusComponent','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','8433fIyOZd','endRow','_transformPreviousActiveRange','_roomMembers$','UniverCollaborationClientUIPlugin','isTransformMutationFailure','HTTPService','updateOfflineData','body','m1Prime','TEXT_RANGE_LAYER_INDEX','_config','_handleLeaveEvent','@univerjs/docs-ui','APPLY_NON_SEQUENTIAL_REVISION','icon','UNRECOGNIZED','DisposableCollection','14snluHE','Vector2','top','742544LHpKSU','_drawAnchor'];_0x5547=function(){return _0x14abcb;};return _0x5547();}const dt=0x12c,ft=0x64,St=()=>{let _0x4578da=[],_0xdd50cf=!0x1;return _0x2bf895=>{_0x4578da['push'](_0x2bf895),_0xdd50cf||(_0xdd50cf=!0x0,setTimeout(()=>{const _0x20e97b=_0x2da3;_0x4578da[_0x20e97b(0x191)](_0x444b2b=>_0x444b2b()),_0x4578da=[],_0xdd50cf=!0x1;}));};};let me=class extends a[_0x5803ac(0x363)]{constructor(_0x4e4d1d,_0x5e81e4,_0x1804e6,_0x3e9c52,_0xc678c3,_0x4c3293,_0x4d5bec,_0x15dbbf){const _0x4d9770=_0x5803ac;super(),_(this,_0x4d9770(0x173),!0x1),_(this,'_init',!0x1),_(this,_0x4d9770(0x24b),new S[(_0x4d9770(0x3ad))](new Map())),_(this,_0x4d9770(0x27d),this[_0x4d9770(0x24b)][_0x4d9770(0x2cd)]()),_(this,'_roomMembers$',new S[(_0x4d9770(0x3ad))]([])),_(this,_0x4d9770(0x3c3),this[_0x4d9770(0x22a)]['pipe'](S[_0x4d9770(0x2d7)](dt))),_(this,'_updateLocalCursor',a['debounce']((_0x24b445,_0x5a3701)=>{const _0x2d619b=_0x4d9770,_0x4e47ac={'eventID':g[_0x2d619b(0x21d)][_0x2d619b(0x179)],'data':{'unitID':this[_0x2d619b(0x348)],'memberID':this[_0x2d619b(0x1ef)][_0x2d619b(0x36d)](),'selection':Te['serializeRangeWithSheet'](_0x24b445,_0x5a3701[_0x2d619b(0x171)])}};this[_0x2d619b(0x1ef)][_0x2d619b(0x2be)](_0x4e47ac,this[_0x2d619b(0x348)]);},ft)),(this[_0x4d9770(0x348)]=_0x4e4d1d,this['_session']=_0x5e81e4,this[_0x4d9770(0x37f)]=_0x1804e6,this['_colorAssignService']=_0x3e9c52,this[_0x4d9770(0x371)]=_0xc678c3,this[_0x4d9770(0x3ac)]=_0x4c3293,this[_0x4d9770(0x2e7)]=_0x4d5bec,this[_0x4d9770(0x304)]=_0x15dbbf);}get[_0x5803ac(0x347)](){const _0x5d87a7=_0x5803ac;return this[_0x5d87a7(0x24b)][_0x5d87a7(0x3b8)]();}get[_0x5803ac(0x3a2)](){const _0x2f5fec=_0x5803ac;return this[_0x2f5fec(0x22a)][_0x2f5fec(0x3b8)]();}[_0x5803ac(0x263)](){const _0x34d290=_0x5803ac;super[_0x34d290(0x263)](),this[_0x34d290(0x24b)]['next'](new Map()),this[_0x34d290(0x24b)][_0x34d290(0x2d9)](),this[_0x34d290(0x22a)][_0x34d290(0x1dd)]([]),this['_roomMembers$'][_0x34d290(0x2d9)]();}[_0x5803ac(0x294)](){const _0x551c5f=_0x5803ac;this['_init']||(this[_0x551c5f(0x1f4)]=!0x0,this[_0x551c5f(0x1ef)]['sessionStatus$'][_0x551c5f(0x1e2)](S[_0x551c5f(0x26d)](this[_0x551c5f(0x1d7)]))[_0x551c5f(0x2bb)](_0x28657e=>{const _0x213699=_0x551c5f;_0x28657e===u[_0x213699(0x30a)]['ONLINE']?this[_0x213699(0x186)]():this[_0x213699(0x2aa)]();}),this[_0x551c5f(0x1ef)]['event$']['pipe'](S[_0x551c5f(0x26d)](this['dispose$']))[_0x551c5f(0x2bb)](_0x34b9b3=>{const _0x14cd8b=_0x551c5f,_0x384245=_0x34b9b3[_0x14cd8b(0x25f)];_0x384245===g[_0x14cd8b(0x21d)]['UPDATE_CURSOR']&&this[_0x14cd8b(0x28a)](_0x34b9b3),_0x384245===g[_0x14cd8b(0x21d)][_0x14cd8b(0x1eb)]&&this['_onCursorDelete'](_0x34b9b3);}),this[_0x551c5f(0x39d)](),this[_0x551c5f(0x1ed)](this[_0x551c5f(0x2e7)][_0x551c5f(0x1d1)](_0x2066a9=>{const _0x337849=_0x551c5f;if(this[_0x337849(0x173)]&&_0x2066a9['id']===I[_0x337849(0x36e)]['id']&&_0x2066a9['params'][_0x337849(0x2e5)]===this[_0x337849(0x348)]){const _0x376f1a=_0x2066a9[_0x337849(0x19d)];this['_updateLocalCursor'](_0x376f1a['subUnitId'],_0x376f1a[_0x337849(0x2fd)][0x0]);}})));}[_0x5803ac(0x28a)](_0x268237){const _0x510f7a=_0x5803ac;var _0x2647ce,_0x29fb79;const {memberID:_0x3e0ebe,selection:_0x52fae8}=_0x268237[_0x510f7a(0x34a)],{sheetName:_0x49fcdc,range:_0x25be52}=Te[_0x510f7a(0x387)](_0x52fae8),_0x596f82={'name':(_0x29fb79=(_0x2647ce=this[_0x510f7a(0x371)]['getMember'](this[_0x510f7a(0x348)],_0x3e0ebe))==null?void 0x0:_0x2647ce['name'])!=null?_0x29fb79:_0x510f7a(0x320),'range':this['_getMergeRange'](_0x49fcdc,_0x25be52),'sheetID':_0x49fcdc,'color':this[_0x510f7a(0x394)][_0x510f7a(0x399)](_0x3e0ebe),'selection':_0x52fae8},_0x539ccd=this['cursorInfo'];_0x539ccd['set'](_0x3e0ebe,_0x596f82),this[_0x510f7a(0x24b)][_0x510f7a(0x1dd)](_0x539ccd);}[_0x5803ac(0x378)](_0x4258f3){const _0x1ac3e9=_0x5803ac,{memberID:_0x380eaf}=_0x4258f3[_0x1ac3e9(0x34a)],_0x426644=this[_0x1ac3e9(0x347)];_0x426644['delete'](_0x380eaf),this[_0x1ac3e9(0x24b)][_0x1ac3e9(0x1dd)](_0x426644);}['_getMergeRange'](_0x5cbe71,_0x63cef4){const _0x2d4955=_0x5803ac;var _0x1e0c0e,_0x557a13;const _0x1d5cb3=(_0x557a13=(_0x1e0c0e=this[_0x2d4955(0x3ac)][_0x2d4955(0x35a)](this[_0x2d4955(0x348)]))==null?void 0x0:_0x1e0c0e[_0x2d4955(0x2a1)](_0x5cbe71))==null?void 0x0:_0x557a13[_0x2d4955(0x374)]();return(_0x1d5cb3==null?void 0x0:_0x1d5cb3[_0x2d4955(0x27e)](_0x2c83e5=>a[_0x2d4955(0x3b5)]['contains'](_0x2c83e5,_0x63cef4)))||_0x63cef4;}['_onRefRangeChange'](){const _0x4bb8ec=_0x5803ac,_0x547eec=new a[(_0x4bb8ec(0x238))](),_0x516380=St(),_0x56038d=()=>{const _0x10adfb=_0x4bb8ec;_0x547eec[_0x10adfb(0x263)]();const _0x5bb55b=(_0x5b4cf3,_0x7e8a73,_0x863afc,_0x421e42)=>{const _0x549f90=_0x10adfb;let _0x53a328=[];switch(_0x5b4cf3['id']){case I[_0x549f90(0x206)]['DeleteRangeMoveLeftCommandId']:{_0x53a328=I[_0x549f90(0x36f)](_0x5b4cf3,_0x421e42);break;}case I[_0x549f90(0x206)][_0x549f90(0x366)]:{_0x53a328=I[_0x549f90(0x306)](_0x5b4cf3,_0x421e42);break;}case I[_0x549f90(0x206)][_0x549f90(0x272)]:{_0x53a328=I[_0x549f90(0x345)](_0x5b4cf3,_0x421e42);break;}case I[_0x549f90(0x206)]['InsertRangeMoveDownCommandId']:{_0x53a328=I[_0x549f90(0x29a)](_0x5b4cf3,_0x421e42);break;}case I[_0x549f90(0x206)]['InsertRangeMoveRightCommandId']:{_0x53a328=I['handleInsertRangeMoveRight'](_0x5b4cf3,_0x421e42);break;}case I['EffectRefRangId'][_0x549f90(0x300)]:{_0x53a328=I['handleInsertRow'](_0x5b4cf3,_0x421e42);break;}case I['EffectRefRangId'][_0x549f90(0x205)]:{_0x53a328=I[_0x549f90(0x1cc)](_0x5b4cf3,_0x421e42);break;}case I[_0x549f90(0x206)][_0x549f90(0x168)]:{_0x53a328=I[_0x549f90(0x31c)](_0x5b4cf3,_0x421e42);break;}case I[_0x549f90(0x206)][_0x549f90(0x1c0)]:{_0x53a328=I[_0x549f90(0x1bd)](_0x5b4cf3,_0x421e42);break;}}const _0x2c50f5=I['runRefRangeMutations'](_0x53a328,_0x421e42),_0x5b72ae=this[_0x549f90(0x347)][_0x549f90(0x393)](_0x7e8a73);if(_0x5b72ae&&_0x2c50f5){const _0x3fb766={..._0x5b72ae,'range':_0x2c50f5};this['cursorInfo'][_0x549f90(0x2f4)](_0x7e8a73,_0x3fb766),_0x516380(()=>{const _0x3329fd=_0x549f90,_0x1a2708=this[_0x3329fd(0x304)][_0x3329fd(0x343)](_0x2c50f5,_0xe998e8=>(_0x1a2708['dispose'](),_0x5bb55b(_0xe998e8,_0x7e8a73,_0x863afc,_0x2c50f5)));_0x547eec['add'](_0x1a2708);});}return{'redos':[],'undos':[]};};this[_0x10adfb(0x347)][_0x10adfb(0x191)]((_0x1a1661,_0x30ad3d)=>{const _0x5dbf76=_0x10adfb,{range:_0xf7852,sheetID:_0x52ddc0}=_0x1a1661,_0x26ca86=this['_refRangeService'][_0x5dbf76(0x343)](_0xf7852,_0x56c4d0=>(_0x26ca86['dispose'](),_0x5bb55b(_0x56c4d0,_0x30ad3d,_0x52ddc0,_0xf7852)));_0x547eec[_0x5dbf76(0x385)](_0x26ca86);});};this[_0x4bb8ec(0x1ed)](a[_0x4bb8ec(0x380)](this[_0x4bb8ec(0x24b)][_0x4bb8ec(0x2bb)](()=>{_0x56038d();})));}['_toggleOnline'](){const _0x377be2=_0x5803ac;var _0xe07ed9,_0x6ae3d1;if(this[_0x377be2(0x173)]=!0x0,((_0xe07ed9=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0xe07ed9[_0x377be2(0x296)]())!==this['unitID'])return;const _0x217d33=(_0x6ae3d1=this[_0x377be2(0x37f)][_0x377be2(0x393)](I[_0x377be2(0x2d2)])[_0x377be2(0x258)]())==null?void 0x0:_0x6ae3d1[0x0],_0x522caf=this[_0x377be2(0x3ac)][_0x377be2(0x26b)](a['UniverInstanceType'][_0x377be2(0x310)])[_0x377be2(0x18d)]();_0x217d33&&_0x522caf&&this[_0x377be2(0x1fa)](_0x522caf[_0x377be2(0x18c)](),_0x217d33);}[_0x5803ac(0x2aa)](){const _0x48cb7e=_0x5803ac;this[_0x48cb7e(0x173)]=!0x1;}};me=ut([A(0x2,a['Inject'](a[_0x5803ac(0x358)])),A(0x3,a[_0x5803ac(0x1ff)](Ce)),A(0x4,a['Inject'](u['MemberService'])),A(0x5,a[_0x5803ac(0x203)]),A(0x6,a[_0x5803ac(0x3c1)]),A(0x7,a[_0x5803ac(0x1ff)](I[_0x5803ac(0x1b0)]))],me);var vt=Object[_0x5803ac(0x209)],mt=Object[_0x5803ac(0x391)],It=(_0x2b2025,_0x5b2719,_0x1dc0d6,_0x128b80)=>{const _0x72ff83=_0x5803ac;for(var _0x2baf9e=_0x128b80>0x1?void 0x0:_0x128b80?mt(_0x5b2719,_0x1dc0d6):_0x5b2719,_0x305a13=_0x2b2025[_0x72ff83(0x244)]-0x1,_0x2c86b2;_0x305a13>=0x0;_0x305a13--)(_0x2c86b2=_0x2b2025[_0x305a13])&&(_0x2baf9e=(_0x128b80?_0x2c86b2(_0x5b2719,_0x1dc0d6,_0x2baf9e):_0x2c86b2(_0x2baf9e))||_0x2baf9e);return _0x128b80&&_0x2baf9e&&vt(_0x5b2719,_0x1dc0d6,_0x2baf9e),_0x2baf9e;},ne=(_0x2e7ca9,_0x2d174a)=>(_0x538064,_0x2f4d7f)=>_0x2d174a(_0x538064,_0x2f4d7f,_0x2e7ca9);let x=class extends a[_0x5803ac(0x363)]{constructor(_0x3275af,_0x449126,_0xdb1273){const _0x3d5ca4=_0x5803ac;super(),_(this,'_entities',new Map()),_(this,'_entityInit$',new S[(_0x3d5ca4(0x2e6))]()),(this['_univerInstanceService']=_0x3275af,this[_0x3d5ca4(0x37f)]=_0x449126,this[_0x3d5ca4(0x313)]=_0xdb1273,this[_0x3d5ca4(0x1f4)]());}[_0x5803ac(0x263)](){const _0x1d7088=_0x5803ac;super[_0x1d7088(0x263)](),this['_entityInit$'][_0x1d7088(0x2d9)](),this[_0x1d7088(0x164)][_0x1d7088(0x191)](_0x4d44e7=>_0x4d44e7['dispose']());}[_0x5803ac(0x1e3)](_0x5c2f25){const _0x584c0e=_0x5803ac;return this[_0x584c0e(0x164)][_0x584c0e(0x30c)](_0x5c2f25)?this['_entities'][_0x584c0e(0x393)](_0x5c2f25)[_0x584c0e(0x27d)]:this[_0x584c0e(0x2af)][_0x584c0e(0x1e2)](S[_0x584c0e(0x3c8)](_0x179566=>_0x179566[_0x584c0e(0x348)]===_0x5c2f25),S[_0x584c0e(0x1a8)](_0x11e030=>_0x11e030['cursorInfo$']));}[_0x5803ac(0x1f4)](){const _0x1092db=_0x5803ac;this[_0x1092db(0x3ac)][_0x1092db(0x2a4)](a[_0x1092db(0x19f)][_0x1092db(0x310)])[_0x1092db(0x1e2)](S[_0x1092db(0x26d)](this[_0x1092db(0x1d7)]))[_0x1092db(0x2bb)](async _0x558699=>{const _0x41d179=_0x1092db,_0x1c59c1=_0x558699['getUnitId'](),_0x268859=await this['_startSheetCollabCursor'](_0x1c59c1);this[_0x41d179(0x2af)]['next'](_0x268859),this[_0x41d179(0x164)][_0x41d179(0x2f4)](_0x1c59c1,_0x268859);}),this[_0x1092db(0x3ac)][_0x1092db(0x2a4)](a['UniverInstanceType'][_0x1092db(0x38e)])['pipe'](S['takeUntil'](this[_0x1092db(0x1d7)]))[_0x1092db(0x1e2)](S[_0x1092db(0x3c8)](_0x24ae36=>!_0x24ae36[_0x1092db(0x296)]()[_0x1092db(0x2b6)]('__')))[_0x1092db(0x2bb)](async _0x6af78f=>{const _0x1cda41=_0x1092db,_0x152865=_0x6af78f['getUnitId'](),_0x432c39=await this[_0x1cda41(0x3b1)](_0x152865);this[_0x1cda41(0x2af)][_0x1cda41(0x1dd)](_0x432c39),this['_entities'][_0x1cda41(0x2f4)](_0x152865,_0x432c39);}),S[_0x1092db(0x381)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x1092db(0x38e)]),this['_univerInstanceService'][_0x1092db(0x397)](a['UniverInstanceType']['UNIVER_SHEET']))[_0x1092db(0x1e2)](S[_0x1092db(0x26d)](this[_0x1092db(0x1d7)]))[_0x1092db(0x2bb)](_0x27aa83=>{const _0x5e9401=_0x1092db,_0x26fe2a=_0x27aa83[_0x5e9401(0x296)](),_0x4f1e04=this[_0x5e9401(0x164)]['get'](_0x26fe2a);_0x4f1e04&&(_0x4f1e04[_0x5e9401(0x263)](),this[_0x5e9401(0x164)][_0x5e9401(0x1d3)](_0x26fe2a));});}async[_0x5803ac(0x396)](_0x5ab877){const _0x52b6e3=_0x5803ac,_0x2884d5=await this[_0x52b6e3(0x313)][_0x52b6e3(0x30e)](_0x5ab877),_0x1c9742=this[_0x52b6e3(0x37f)][_0x52b6e3(0x1fd)](me,_0x5ab877,_0x2884d5);return _0x1c9742['init'](),_0x1c9742;}async['_startDocCollabCursor'](_0x3e92c3){const _0x1d59e1=_0x5803ac,_0x32e57a=await this[_0x1d59e1(0x313)][_0x1d59e1(0x30e)](_0x3e92c3),_0x4b62f2=this[_0x1d59e1(0x37f)][_0x1d59e1(0x1fd)](ve,_0x3e92c3,_0x32e57a);return _0x4b62f2['init'](),_0x4b62f2;}};x=It([ne(0x0,a['IUniverInstanceService']),ne(0x1,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x358)])),ne(0x2,a[_0x5803ac(0x1ff)](u[_0x5803ac(0x1bb)]))],x);const V=0x14,Pe=0xc8,ie=0x4,gt=0x5;function pt(_0x5de8d7,_0x1f5218){const _0x482644=_0x5803ac;let {radius:_0x177375,width:_0x45b273,height:_0x44bff9}=_0x1f5218;_0x177375=_0x177375!=null?_0x177375:0x0,_0x45b273=_0x45b273!=null?_0x45b273:0x1e,_0x44bff9=_0x44bff9!=null?_0x44bff9:0x1e;let _0xa50b97=0x0,_0x2d3f1a=0x0,_0x59b7d4=0x0;_0xa50b97=_0x2d3f1a=_0x59b7d4=Math[_0x482644(0x2fa)](_0x177375,_0x45b273/0x2,_0x44bff9/0x2),_0x5de8d7[_0x482644(0x256)](),_0x5de8d7['moveTo'](_0xa50b97,0x0),_0x5de8d7['lineTo'](_0x45b273-_0x2d3f1a,0x0),_0x5de8d7[_0x482644(0x200)](_0x45b273-_0x2d3f1a,_0x2d3f1a,_0x2d3f1a,Math['PI']*0x3/0x2,0x0,!0x1),_0x5de8d7[_0x482644(0x282)](_0x45b273,_0x44bff9-_0x59b7d4),_0x5de8d7['arc'](_0x45b273-_0x59b7d4,_0x44bff9-_0x59b7d4,_0x59b7d4,0x0,Math['PI']/0x2,!0x1),_0x5de8d7[_0x482644(0x282)](0x0,_0x44bff9),_0x5de8d7[_0x482644(0x282)](0x0,_0xa50b97),_0x5de8d7[_0x482644(0x200)](_0xa50b97,_0xa50b97,_0xa50b97,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5de8d7[_0x482644(0x2a9)](),_0x1f5218['fill']&&(_0x5de8d7[_0x482644(0x20d)](),_0x5de8d7[_0x482644(0x1b2)]=_0x1f5218[_0x482644(0x293)],_0x1f5218[_0x482644(0x2c3)]==='evenodd'?_0x5de8d7['fill'](_0x482644(0x160)):_0x5de8d7[_0x482644(0x293)](),_0x5de8d7[_0x482644(0x27f)]());}class ee extends p[_0x5803ac(0x2a5)]{constructor(_0x1fba1b,_0x41de97){const _0x38123d=_0x5803ac;super(_0x1fba1b,_0x41de97),_(this,_0x38123d(0x1b6)),_(this,_0x38123d(0x199)),(this[_0x38123d(0x1b6)]=_0x41de97==null?void 0x0:_0x41de97['color'],this['text']=_0x41de97==null?void 0x0:_0x41de97[_0x38123d(0x199)]);}static[_0x5803ac(0x259)](_0x1d532f,_0x318151){const _0x31f5a6=_0x5803ac,{text:_0x3eaa07,color:_0x2e2eb9}=_0x318151;_0x1d532f['save'](),_0x1d532f[_0x31f5a6(0x3ba)]=_0x31f5a6(0x28d);const _0x5268a6=_0x1d532f['measureText'](_0x3eaa07)[_0x31f5a6(0x34b)],_0x53f016=Math[_0x31f5a6(0x2fa)](_0x5268a6+0x2*ie,Pe);pt(_0x1d532f,{'height':V,'radius':0x4,'width':_0x53f016,'fill':_0x2e2eb9,'evented':!0x1}),_0x1d532f[_0x31f5a6(0x1b2)]='#FFF';const _0x504ee3=ie,_0x3d9578=V-gt,_0x4b698=Pe-0x2*ie;if(_0x5268a6>_0x4b698){let _0x5c0e6f='',_0x3b9da7=0x0;for(const _0x54b43e of _0x3eaa07){const _0x4004bf=_0x1d532f[_0x31f5a6(0x17e)](_0x54b43e)[_0x31f5a6(0x34b)];if(_0x3b9da7+_0x4004bf<=_0x4b698-_0x1d532f['measureText'](_0x31f5a6(0x1e4))[_0x31f5a6(0x34b)])_0x5c0e6f+=_0x54b43e,_0x3b9da7+=_0x4004bf;else{_0x5c0e6f+='...';break;}}_0x1d532f[_0x31f5a6(0x389)](_0x5c0e6f,_0x504ee3,_0x3d9578);}else _0x1d532f['fillText'](_0x3eaa07,_0x504ee3,_0x3d9578);_0x1d532f[_0x31f5a6(0x27f)]();}['_draw'](_0x176e13){const _0x2b4d9a=_0x5803ac;ee[_0x2b4d9a(0x259)](_0x176e13,this);}}const re=_0x5803ac(0x1bc),Ct=_0x5803ac(0x1ae),bt=_0x5803ac(0x39b),H=0x6,Et=1.5,oe=0x4,Rt=1.5,Tt=_0x5803ac(0x39a);class Me{constructor(_0x2aef99,_0x31ad3a,_0x3ef8bc,_0x12d999){const _0x4d4ec3=_0x5803ac;_(this,'_shapes',[]),_(this,_0x4d4ec3(0x3be),null),_(this,_0x4d4ec3(0x2eb),null),_(this,_0x4d4ec3(0x20f),null),_(this,_0x4d4ec3(0x312),null),_(this,_0x4d4ec3(0x2b3),null),(this[_0x4d4ec3(0x292)]=_0x2aef99,this['_scene']=_0x31ad3a,this[_0x4d4ec3(0x16d)]=_0x3ef8bc,this[_0x4d4ec3(0x337)]=_0x12d999,this[_0x4d4ec3(0x321)]());}set[_0x5803ac(0x1a0)](_0x27773a){const _0x45577c=_0x5803ac;_0x27773a?(this[_0x45577c(0x20f)]&&this[_0x45577c(0x20f)][_0x45577c(0x328)](),this[_0x45577c(0x2eb)]&&this[_0x45577c(0x2eb)][_0x45577c(0x267)]()):(this['_anchorDot']&&this[_0x45577c(0x20f)][_0x45577c(0x267)](),this[_0x45577c(0x2eb)]&&this[_0x45577c(0x2eb)][_0x45577c(0x328)]());}['dispose'](){const _0x49d79f=_0x5803ac;for(const _0x8bcca8 of this['_shapes'])_0x8bcca8[_0x49d79f(0x263)]();this['_textBubble']&&this[_0x49d79f(0x2eb)]['dispose'](),this[_0x49d79f(0x20f)]&&this[_0x49d79f(0x20f)][_0x49d79f(0x263)](),this[_0x49d79f(0x3be)]&&this['_anchor']['dispose'](),this['_eventUnsubscribe']&&this['_eventUnsubscribe']();}[_0x5803ac(0x321)](){const _0x1db90b=_0x5803ac;var _0x8db4f8;const {_docSkeleton:_0x202f98,_document:_0x431adb}=this,{color:_0x441658,name:_0x5bda2e,ranges:_0xb31b4}=this[_0x1db90b(0x292)],_0x1eb4c0=_0x431adb['getOffsetConfig'](),{docsLeft:_0x3286e3,docsTop:_0x4583a1}=_0x1eb4c0,_0x501d51=new b[(_0x1db90b(0x3c6))](_0x1eb4c0,_0x202f98);for(const {startOffset:_0x4c4008,endOffset:_0x1ef50e,rangeType:_0x81a885,segmentId:_0x1421c4,segmentPage:_0x4b0bb0,collapsed:_0x307167,isActive:_0x524aa6}of _0xb31b4){const _0x2c27bb=_0x202f98[_0x1db90b(0x1cf)](_0x4c4008,!0x0,_0x1421c4,_0x4b0bb0);let _0x46cf20=_0x202f98[_0x1db90b(0x1cf)](_0x1ef50e,!0x0,_0x1421c4,_0x4b0bb0);if(_0x46cf20==null&&(_0x46cf20=_0x202f98['findNodePositionByCharIndex'](_0x1ef50e-0x1,!0x1,_0x1421c4,_0x4b0bb0)),_0x524aa6){const {contentBoxPointGroup:_0x411b51}=_0x501d51[_0x1db90b(0x3c4)](_0x46cf20,_0x46cf20);if(_0x411b51[_0x1db90b(0x244)]===0x0)continue;this[_0x1db90b(0x23d)](_0x441658,_0x411b51,_0x3286e3,_0x4583a1,_0x5bda2e),this[_0x1db90b(0x2b3)]=this[_0x1db90b(0x172)]();}if(_0x2c27bb&&_0x46cf20){if(_0x81a885===a['DOC_RANGE_TYPE'][_0x1db90b(0x383)]){const _0x2dc9f7=new b[(_0x1db90b(0x208))](_0x1eb4c0,_0x202f98),{pointGroup:_0x5c8093}=(_0x8db4f8=_0x2dc9f7[_0x1db90b(0x3c4)](_0x2c27bb,_0x46cf20))!=null?_0x8db4f8:{};if(_0x5c8093==null||_0x5c8093[_0x1db90b(0x244)]===0x0)continue;this[_0x1db90b(0x2e9)](_0x441658,_0x5c8093,_0x3286e3,_0x4583a1);}else{if(!_0x307167){const {borderBoxPointGroup:_0x2b7f5b}=_0x501d51[_0x1db90b(0x3c4)](_0x2c27bb,_0x46cf20);if(_0x2b7f5b[_0x1db90b(0x244)]===0x0)continue;this[_0x1db90b(0x2bd)](_0x441658,_0x2b7f5b,_0x3286e3,_0x4583a1);}}}}}['_drawAnchor'](_0xea2f9b,_0x199c9c,_0x5c1c15,_0x4569ec,_0x67d3b7){const _0x59bdd9=_0x5803ac,_0xde2b1d=this[_0x59bdd9(0x20a)](_0x199c9c),{left:_0x3a6515,top:_0x3c55b5,height:_0x2bf1c9}=_0xde2b1d,_0x326d8f=this[_0x59bdd9(0x1d6)](),_0x13d5a3=Rt/_0x326d8f,_0x529f73=new p['Rect'](re+a['Tools'][_0x59bdd9(0x2d1)](H),{'left':_0x3a6515+_0x5c1c15-_0x13d5a3,'top':_0x3c55b5+_0x4569ec,'height':_0x2bf1c9,'width':Et,'fill':_0xea2f9b||p[_0x59bdd9(0x3a5)](a['COLORS'][_0x59bdd9(0x1c5)],0x0),'strokeWidth':_0x13d5a3,'stroke':Tt,'evented':!0x0});this[_0x59bdd9(0x3be)]=_0x529f73,this[_0x59bdd9(0x181)][_0x59bdd9(0x1d8)](_0x529f73,b[_0x59bdd9(0x231)]);const _0x3e964a=new p[(_0x59bdd9(0x1db))](re+a['Tools']['generateRandomId'](H),{'left':_0x3a6515+_0x5c1c15-_0x13d5a3,'top':_0x3c55b5+_0x4569ec-oe/0x2,'height':oe,'width':oe,'fill':_0xea2f9b||p['getColor'](a['COLORS'][_0x59bdd9(0x1c5)],0x0),'strokeWidth':0x0,'stroke':_0xea2f9b||p[_0x59bdd9(0x3a5)](a[_0x59bdd9(0x31a)]['black'],0x0),'evented':!0x1});this[_0x59bdd9(0x20f)]=_0x3e964a,this['_scene']['addObject'](_0x3e964a,b[_0x59bdd9(0x231)]);const _0x130439=new ee(re+a[_0x59bdd9(0x38c)][_0x59bdd9(0x2d1)](H),{'left':_0x3a6515+_0x5c1c15-_0x13d5a3,'top':_0x3c55b5+_0x4569ec-V,'text':_0x67d3b7,'color':_0xea2f9b});this[_0x59bdd9(0x2eb)]=_0x130439,this[_0x59bdd9(0x181)][_0x59bdd9(0x1d8)](_0x130439,b['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x5803ac(0x172)](){const _0x12e7ed=_0x5803ac,_0x497c5a=this['_anchor']['onPointerEnter$'][_0x12e7ed(0x297)](()=>{const _0x37bc95=_0x12e7ed;this[_0x37bc95(0x1a0)]=!0x0;}),_0x363012=this[_0x12e7ed(0x3be)]['onPointerLeave$'][_0x12e7ed(0x297)](()=>{const _0x3a428d=_0x12e7ed;this[_0x3a428d(0x312)]&&clearTimeout(this[_0x3a428d(0x312)]),this[_0x3a428d(0x312)]=setTimeout(()=>{const _0x376793=_0x3a428d;this[_0x376793(0x1a0)]=!0x1;},0x7d0);});return()=>{const _0x96b00e=_0x12e7ed;_0x497c5a[_0x96b00e(0x268)](),_0x363012[_0x96b00e(0x268)]();};}[_0x5803ac(0x2bd)](_0x4e93a3,_0x599817,_0x30ac72,_0x237025){const _0x544ea5=_0x5803ac,_0x595401=new a['ColorKit'](_0x4e93a3)[_0x544ea5(0x190)](0.2)[_0x544ea5(0x2f7)](),_0x4ceeb5=new p['RegularPolygon'](Ct+a[_0x544ea5(0x38c)][_0x544ea5(0x2d1)](H),{'pointsGroup':_0x599817,'fill':_0x595401||p[_0x544ea5(0x3a5)](a[_0x544ea5(0x31a)]['black'],0.2),'left':_0x30ac72,'top':_0x237025,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x544ea5(0x1f3)][_0x544ea5(0x215)](_0x4ceeb5),this[_0x544ea5(0x181)][_0x544ea5(0x1d8)](_0x4ceeb5,b[_0x544ea5(0x231)]);}[_0x5803ac(0x2e9)](_0x1d9f2d,_0x557fca,_0x2ace5b,_0x500d57){const _0x235048=_0x5803ac,_0x3149a0=new a[(_0x235048(0x1a7))](_0x1d9f2d)[_0x235048(0x190)](0.2)[_0x235048(0x2f7)](),_0x2157c4=new p[(_0x235048(0x1b8))](bt+a['Tools']['generateRandomId'](H),{'pointsGroup':_0x557fca,'fill':_0x3149a0||p[_0x235048(0x3a5)](a[_0x235048(0x31a)]['black'],0.2),'left':_0x2ace5b,'top':_0x500d57,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x235048(0x1f3)][_0x235048(0x215)](_0x2157c4),this[_0x235048(0x181)][_0x235048(0x1d8)](_0x2157c4,b['TEXT_RANGE_LAYER_INDEX']);}[_0x5803ac(0x20a)](_0x182ba6){const _0x1ec168=_0x182ba6[0x0],_0xa17988=_0x1ec168[0x0],_0x328c3e=_0x1ec168[0x2],{x:_0x2a4895,y:_0x248152}=_0xa17988,{x:_0x780785,y:_0x1d4381}=_0x328c3e;return{'left':_0x2a4895,'top':_0x248152,'width':_0x780785-_0x2a4895,'height':_0x1d4381-_0x248152};}[_0x5803ac(0x1d6)](){const _0x3a9bae=_0x5803ac,{scaleX:_0x40a2cd,scaleY:_0x1449b2}=this[_0x3a9bae(0x181)][_0x3a9bae(0x1ca)]();return Math[_0x3a9bae(0x33f)](_0x40a2cd,_0x1449b2);}}var Ot=Object[_0x5803ac(0x209)],Dt=Object[_0x5803ac(0x391)],Pt=(_0x11f395,_0x352446,_0x3727ef,_0x53c63d)=>{const _0x476780=_0x5803ac;for(var _0x82270e=_0x53c63d>0x1?void 0x0:_0x53c63d?Dt(_0x352446,_0x3727ef):_0x352446,_0x161c5e=_0x11f395[_0x476780(0x244)]-0x1,_0x47fe8c;_0x161c5e>=0x0;_0x161c5e--)(_0x47fe8c=_0x11f395[_0x161c5e])&&(_0x82270e=(_0x53c63d?_0x47fe8c(_0x352446,_0x3727ef,_0x82270e):_0x47fe8c(_0x82270e))||_0x82270e);return _0x53c63d&&_0x82270e&&Ot(_0x352446,_0x3727ef,_0x82270e),_0x82270e;},G=(_0x387d00,_0x42badd)=>(_0x67e0ae,_0x4ebd6b)=>_0x42badd(_0x67e0ae,_0x4ebd6b,_0x387d00);let Ie=class extends a[_0x5803ac(0x363)]{constructor(_0x1926d1,_0x4e551e,_0xa4254e,_0x5ecf72,_0x2e8eb2){const _0x2c0ea3=_0x5803ac;super(),_(this,'_cursorShapes',[]),_(this,_0x2c0ea3(0x17d),[]),(this[_0x2c0ea3(0x195)]=_0x1926d1,this[_0x2c0ea3(0x1d5)]=_0x4e551e,this[_0x2c0ea3(0x283)]=_0xa4254e,this[_0x2c0ea3(0x2e7)]=_0x5ecf72,this['_themeService']=_0x2e8eb2,this['_init']());}[_0x5803ac(0x1f4)](){const _0x1effe5=_0x5803ac,_0x3788ed=this[_0x1effe5(0x195)][_0x1effe5(0x2e5)],_0x33f317=this[_0x1effe5(0x1d5)];this[_0x1effe5(0x1ed)](S[_0x1effe5(0x196)]([this['_collabCursorController'][_0x1effe5(0x1e3)](_0x3788ed),this[_0x1effe5(0x24d)]['currentTheme$']])[_0x1effe5(0x1e2)]($[_0x1effe5(0x2b9)](([_0x58654a,_0x3f7222])=>({'skeleton':_0x33f317[_0x1effe5(0x3a4)](),'cursors':[..._0x58654a['values']()][_0x1effe5(0x2e4)](_0x581bad=>({..._0x581bad,'color':_0x3f7222[_0x581bad[_0x1effe5(0x1b6)]]}))})))['subscribe'](_0x2af60d=>{const _0x59f2dd=_0x1effe5;if(this[_0x59f2dd(0x2c7)](),_0x2af60d){const {skeleton:_0x1bf1d4,cursors:_0x4b180c}=_0x2af60d;this[_0x59f2dd(0x38b)](_0x1bf1d4,_0x4b180c);}})),this[_0x1effe5(0x2ef)](),this[_0x1effe5(0x24e)]();}['_updateCollabCursors'](_0x245938,_0x48a183){const _0x127dc1=_0x5803ac,{scene:_0xfd731e,mainComponent:_0x3e2f7c}=this[_0x127dc1(0x195)],_0x467aca=_0x48a183['map'](_0x726d8d=>new Me(_0x726d8d,_0xfd731e,_0x245938,_0x3e2f7c));this['_cursorShapes']=_0x467aca,this['_cursors']=_0x48a183;}[_0x5803ac(0x1c2)](){const _0x1b2d93=_0x5803ac;this[_0x1b2d93(0x2c7)]();const {scene:_0x1c0dd7,mainComponent:_0x5a307c}=this[_0x1b2d93(0x195)],_0x4dca46=this[_0x1b2d93(0x1d5)][_0x1b2d93(0x3a4)](),_0x506b86=this[_0x1b2d93(0x17d)][_0x1b2d93(0x2b9)](_0x3702e8=>new Me(_0x3702e8,_0x1c0dd7,_0x4dca46,_0x5a307c));this[_0x1b2d93(0x2d4)]=_0x506b86;}[_0x5803ac(0x2c7)](){const _0x355860=_0x5803ac;this['_cursorShapes'][_0x355860(0x191)](_0x104b71=>_0x104b71[_0x355860(0x263)]()),this['_cursorShapes']=[];}[_0x5803ac(0x24e)](){const _0x32c11e=_0x5803ac,_0x491831=[b[_0x32c11e(0x1aa)]['id']];this[_0x32c11e(0x1ed)](this['_commandService'][_0x32c11e(0x1d1)](_0x3df7d9=>{const _0x12d6ca=_0x32c11e;_0x491831[_0x12d6ca(0x2f0)](_0x3df7d9['id'])&&_0x3df7d9['params']['unitId']===this['_context'][_0x12d6ca(0x2e5)]&&this[_0x12d6ca(0x1c2)]();}));}[_0x5803ac(0x2ef)](){const _0x11ef0b=_0x5803ac;this['disposeWithMe'](a[_0x11ef0b(0x386)](this['_context'][_0x11ef0b(0x2e2)][_0x11ef0b(0x29f)])['pipe']($['filter'](_0x314ff2=>_0x314ff2[_0x11ef0b(0x323)]===p[_0x11ef0b(0x1a4)]['resize']),$['throttleTime'](0x10))['subscribe'](()=>{const _0x185baa=_0x11ef0b;this[_0x185baa(0x1c2)]();}));}};Ie=Pt([G(0x1,a[_0x5803ac(0x1ff)](X['DocSkeletonManagerService'])),G(0x2,a[_0x5803ac(0x1ff)](x)),G(0x3,a[_0x5803ac(0x3c1)]),G(0x4,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x29b)]))],Ie);const Mt=0x1,Ut=1.5;class xe extends p[_0x5803ac(0x2a5)]{constructor(_0x400256,_0x155351){const _0x1ab743=_0x5803ac;super(_0x400256,_0x155351),_(this,_0x1ab743(0x28b)),_(this,'_hovered',!0x1),_(this,_0x1ab743(0x1cb)),_(this,_0x1ab743(0x2c0),''),_(this,_0x1ab743(0x390),_0x1ab743(0x23b)),_(this,_0x1ab743(0x17a)),(_0x155351&&this[_0x1ab743(0x301)](_0x155351),this[_0x1ab743(0x2ec)][_0x1ab743(0x297)](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$'][_0x1ab743(0x297)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x5803ac(0x301)](_0x3732dc){const _0x150eed=_0x5803ac;var _0x562602,_0x4d09b9,_0xc02ad4,_0x5ad498,_0x573cc8,_0x417fca;this[_0x150eed(0x28b)]=(_0x562602=_0x3732dc['color'])!=null?_0x562602:this['_color'],this['_hovered']=(_0x4d09b9=_0x3732dc[_0x150eed(0x3a9)])!=null?_0x4d09b9:this['_hovered'],this[_0x150eed(0x1cb)]=(_0xc02ad4=_0x3732dc[_0x150eed(0x171)])!=null?_0xc02ad4:this[_0x150eed(0x1cb)],this[_0x150eed(0x2c0)]=(_0x5ad498=_0x3732dc[_0x150eed(0x30b)])!=null?_0x5ad498:this['_name'],this[_0x150eed(0x390)]=(_0x573cc8=_0x3732dc[_0x150eed(0x243)])!=null?_0x573cc8:this[_0x150eed(0x390)],this[_0x150eed(0x17a)]=(_0x417fca=_0x3732dc['backgroundColor'])!=null?_0x417fca:this[_0x150eed(0x17a)],this['transformByState']({'width':_0x3732dc[_0x150eed(0x34b)],'height':_0x3732dc[_0x150eed(0x165)]});}[_0x5803ac(0x21f)](_0x4a673e){const _0x19083d=_0x5803ac,{row:_0x4f47d4,column:_0x9a9a66}=_0x4a673e;if(_0x4f47d4>=this['_range'][_0x19083d(0x330)]&&_0x4f47d4<=this['_range'][_0x19083d(0x228)]&&_0x9a9a66>=this[_0x19083d(0x1cb)]['startColumn']&&_0x9a9a66<=this[_0x19083d(0x1cb)][_0x19083d(0x33c)]){this[_0x19083d(0x301)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x5803ac(0x194)](_0x2a1ffa){return!0x1;}[_0x5803ac(0x24f)](_0x29f272){const _0x480902=_0x5803ac;p[_0x480902(0x1db)][_0x480902(0x259)](_0x29f272,{'width':this['width'],'height':this['height'],'strokeWidth':Ut,'stroke':this[_0x480902(0x28b)],'evented':!0x1,'fill':this[_0x480902(0x17a)]}),this[_0x480902(0x3ab)]&&(_0x29f272[_0x480902(0x20d)](),_0x29f272[_0x480902(0x260)](0x1,0x0,0x0,0x1,this[_0x480902(0x34b)],this[_0x480902(0x390)]===_0x480902(0x32a)?0x0:-V),ee[_0x480902(0x259)](_0x29f272,{'text':this[_0x480902(0x2c0)],'color':this['_color']}),_0x29f272[_0x480902(0x27f)]());}}var Nt=Object[_0x5803ac(0x209)],wt=Object[_0x5803ac(0x391)],Lt=(_0x3d095d,_0xefa7e7,_0x35fe6d,_0x40bcd3)=>{for(var _0x29aa6e=_0x40bcd3>0x1?void 0x0:_0x40bcd3?wt(_0xefa7e7,_0x35fe6d):_0xefa7e7,_0x1dad7c=_0x3d095d['length']-0x1,_0x48dbb3;_0x1dad7c>=0x0;_0x1dad7c--)(_0x48dbb3=_0x3d095d[_0x1dad7c])&&(_0x29aa6e=(_0x40bcd3?_0x48dbb3(_0xefa7e7,_0x35fe6d,_0x29aa6e):_0x48dbb3(_0x29aa6e))||_0x29aa6e);return _0x40bcd3&&_0x29aa6e&&Nt(_0xefa7e7,_0x35fe6d,_0x29aa6e),_0x29aa6e;},ae=(_0x33244d,_0x586602)=>(_0x2fdd4b,_0x2abfb6)=>_0x586602(_0x2fdd4b,_0x2abfb6,_0x33244d);const At=0x1389;let ge=class extends a[_0x5803ac(0x363)]{constructor(_0x543d93,_0x575603,_0x51a484,_0x162082){const _0x45a022=_0x5803ac;super(),_(this,_0x45a022(0x17d),new Set()),_(this,_0x45a022(0x3ce),null),(this[_0x45a022(0x195)]=_0x543d93,this[_0x45a022(0x218)]=_0x575603,this[_0x45a022(0x283)]=_0x51a484,this[_0x45a022(0x24d)]=_0x162082,this[_0x45a022(0x1f4)]());}[_0x5803ac(0x1f4)](){const _0x7e3f86=_0x5803ac;this[_0x7e3f86(0x218)][_0x7e3f86(0x3bc)][_0x7e3f86(0x1e2)]($['takeUntil'](this[_0x7e3f86(0x1d7)]),$[_0x7e3f86(0x1a8)](_0x478c91=>{const _0x57158c=_0x7e3f86;if(_0x478c91){const _0x19409a=_0x478c91['sheetId'];return S[_0x57158c(0x196)](this[_0x57158c(0x283)]['getCollabCursors$'](this['_context']['unitId']),this[_0x57158c(0x24d)][_0x57158c(0x2cb)])[_0x57158c(0x1e2)]($[_0x57158c(0x2b9)](([_0x59aa6c,_0x4c85f8])=>{const _0x2a9782=_0x57158c,_0x24ffd0=new Map();return _0x59aa6c[_0x2a9782(0x191)]((_0x10eb99,_0x56f25f)=>{const _0x590eaf=_0x2a9782;if(_0x10eb99[_0x590eaf(0x327)]===_0x19409a){const _0x3be935={..._0x10eb99};_0x3be935[_0x590eaf(0x1b6)]=_0x4c85f8[_0x10eb99[_0x590eaf(0x1b6)]],_0x24ffd0['set'](_0x56f25f,_0x3be935);}}),{'skeleton':_0x478c91,'cursors':_0x24ffd0};}));}return S['of']({'skeleton':null,'cursors':new Map()});}))[_0x7e3f86(0x2bb)](({skeleton:_0x3c835b,cursors:_0x3a2fb2})=>{const _0x323607=_0x7e3f86;this[_0x323607(0x2c7)](),_0x3c835b&&this[_0x323607(0x38b)](_0x3c835b,_0x3a2fb2);}),this['_sheetSkeletonManagerService'][_0x7e3f86(0x3bc)]['subscribe'](_0xb900ff=>{const _0x484d2d=_0x7e3f86;if(_0xb900ff==null)return;const {skeleton:_0x4a1a41}=_0xb900ff,{scene:_0x328e0f}=this['_context'];_0x328e0f[_0x484d2d(0x1e1)][_0x484d2d(0x297)](a['debounce'](_0x2db701=>{const _0x25d81b=_0x484d2d;var _0x1a4e89,_0x25af03;const {offsetX:_0x260592,offsetY:_0xa324eb}=_0x2db701,{x:_0x11f59d,y:_0x3a4443}=_0x328e0f['getRelativeToViewportCoord'](p[_0x25d81b(0x23a)]['FromArray']([_0x260592,_0xa324eb])),{scaleX:_0x31ff11,scaleY:_0x48aebb}=_0x328e0f[_0x25d81b(0x1ca)](),_0x4f1097=_0x328e0f[_0x25d81b(0x331)](p[_0x25d81b(0x223)]['VIEW_MAIN']),_0x686381=_0x328e0f['getVpScrollXYInfoByPosToVp'](p[_0x25d81b(0x23a)][_0x25d81b(0x2fc)]([_0x11f59d,_0x3a4443]),_0x4f1097),_0x21ee74=_0x4a1a41['getCellPositionByOffset'](_0x260592,_0xa324eb,_0x31ff11,_0x48aebb,_0x686381);((_0x1a4e89=this[_0x25d81b(0x3ce)])==null?void 0x0:_0x1a4e89[_0x25d81b(0x211)])===_0x21ee74['column']&&((_0x25af03=this[_0x25d81b(0x3ce)])==null?void 0x0:_0x25af03[_0x25d81b(0x1fe)])===_0x21ee74[_0x25d81b(0x1fe)]||this['_cursors']['forEach'](_0x11de69=>{_0x11de69['onMouseMove'](_0x21ee74);});},0x64));});}[_0x5803ac(0x38b)](_0x1caea1,_0x2265e0){const _0x458a55=_0x5803ac;var _0x417dfd;const _0x5caf5c=(_0x417dfd=this[_0x458a55(0x218)]['getCurrent']())==null?void 0x0:_0x417dfd[_0x458a55(0x318)];if(!_0x5caf5c)return;const _0x42f25d=this[_0x458a55(0x273)]();if(!_0x42f25d)return;this['_cursors'][_0x458a55(0x191)](_0x221c44=>{const _0x272623=_0x458a55;_0x221c44[_0x272623(0x3cd)]();});const {scene:_0x3be12b}=_0x42f25d,_0x26cb70=yt(Array[_0x458a55(0x356)](_0x2265e0[_0x458a55(0x1f2)]()))[_0x458a55(0x2b9)](_0x276356=>{const _0xa483fd=_0x458a55,{color:_0x553e74,range:_0x1ba0ee,name:_0x126923,selection:_0x3e2849,sheetID:_0x5fb9c}=_0x276356,{startColumn:_0x4f8112,startRow:_0x1ec096,endColumn:_0x27f0de,endRow:_0xa176d3}=_0x1ba0ee,_0x4d917c=q[_0xa483fd(0x1c4)](_0x1ec096,_0x4f8112,_0x3be12b,_0x5caf5c),_0x4c4391=q[_0xa483fd(0x1c4)](_0xa176d3,_0x27f0de,_0x3be12b,_0x5caf5c),{columnHeaderHeightAndMarginTop:_0x50ac54}=_0x5caf5c,{startX:_0x41300e,startY:_0x2a1703}=_0x4d917c,{endX:_0x5a8efc,endY:_0x57a1fb}=_0x4c4391,_0x49758b=_0x5a8efc-_0x41300e,_0xbbacc4=_0x57a1fb-_0x2a1703,_0x34a0be={'labelPosition':_0x2a1703-_0x50ac54>=V?_0xa483fd(0x23b):_0xa483fd(0x32a),'sheetID':_0x5fb9c,'range':_0x1ba0ee,'color':_0x553e74,'name':_0x126923,'selection':_0x3e2849,'left':_0x41300e,'top':_0x2a1703,'width':_0x49758b,'height':_0xbbacc4,'evented':!0x1,'zIndex':At};return new xe(_0x126923,_0x34a0be);});_0x3be12b[_0x458a55(0x28e)](_0x26cb70,Mt),this['_cursors']=new Set(_0x26cb70);}[_0x5803ac(0x2c7)](){const _0x1b69ef=_0x5803ac;var _0x26d1d4;(_0x26d1d4=this[_0x1b69ef(0x17d)])==null||_0x26d1d4[_0x1b69ef(0x191)](_0x412dfe=>_0x412dfe[_0x1b69ef(0x263)]());}[_0x5803ac(0x273)](){const _0x4e4b1a=_0x5803ac;return q[_0x4e4b1a(0x222)](this[_0x4e4b1a(0x195)][_0x4e4b1a(0x1ce)],this[_0x4e4b1a(0x195)]);}};ge=Lt([ae(0x1,a[_0x5803ac(0x1ff)](q['SheetSkeletonManagerService'])),ae(0x2,a[_0x5803ac(0x1ff)](x)),ae(0x3,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x29b)]))],ge);function yt(_0x48eaad){const _0x2d2718=new Map();return _0x48eaad['forEach'](_0x2a7f60=>{const _0x558a10=_0x2da3;if(_0x2d2718['has'](_0x2a7f60[_0x558a10(0x34f)])){const _0x2084d7=_0x2d2718[_0x558a10(0x393)](_0x2a7f60[_0x558a10(0x34f)]);_0x2084d7[_0x558a10(0x30b)]+=',\x20'+_0x2a7f60[_0x558a10(0x30b)];}else _0x2d2718[_0x558a10(0x2f4)](_0x2a7f60['selection'],_0x2a7f60);}),Array['from'](_0x2d2718['values']());}var ce={'exports':{}},W={},Ue;function $t(){const _0x3fc5ef=_0x5803ac;if(Ue)return W;Ue=0x1;var _0x21c10d=O,_0x4a516b=Symbol['for'](_0x3fc5ef(0x241)),_0xbc7296=Symbol[_0x3fc5ef(0x3bf)](_0x3fc5ef(0x197)),_0x45f083=Object[_0x3fc5ef(0x314)][_0x3fc5ef(0x2c9)],_0x6a4e57=_0x21c10d[_0x3fc5ef(0x3b0)]['ReactCurrentOwner'],_0x4c799c={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function _0x4018aa(_0x190cd1,_0x156c97,_0x5b8a07){const _0x43e89d=_0x3fc5ef;var _0x4e4ee3,_0x73b905={},_0x1efe39=null,_0x30a24a=null;_0x5b8a07!==void 0x0&&(_0x1efe39=''+_0x5b8a07),_0x156c97['key']!==void 0x0&&(_0x1efe39=''+_0x156c97[_0x43e89d(0x17b)]),_0x156c97[_0x43e89d(0x26a)]!==void 0x0&&(_0x30a24a=_0x156c97['ref']);for(_0x4e4ee3 in _0x156c97)_0x45f083[_0x43e89d(0x2fb)](_0x156c97,_0x4e4ee3)&&!_0x4c799c[_0x43e89d(0x2c9)](_0x4e4ee3)&&(_0x73b905[_0x4e4ee3]=_0x156c97[_0x4e4ee3]);if(_0x190cd1&&_0x190cd1[_0x43e89d(0x2b0)]){for(_0x4e4ee3 in(_0x156c97=_0x190cd1['defaultProps'],_0x156c97))_0x73b905[_0x4e4ee3]===void 0x0&&(_0x73b905[_0x4e4ee3]=_0x156c97[_0x4e4ee3]);}return{'$$typeof':_0x4a516b,'type':_0x190cd1,'key':_0x1efe39,'ref':_0x30a24a,'props':_0x73b905,'_owner':_0x6a4e57['current']};}return W[_0x3fc5ef(0x303)]=_0xbc7296,W[_0x3fc5ef(0x1c3)]=_0x4018aa,W[_0x3fc5ef(0x3b2)]=_0x4018aa,W;}var Ne;function xt(){const _0x37360a=_0x5803ac;return Ne||(Ne=0x1,ce[_0x37360a(0x2d6)]=$t()),ce[_0x37360a(0x2d6)];}var N=xt(),E=function(){const _0x417ad2=_0x5803ac;return E=Object[_0x417ad2(0x27a)]||function(_0xf98db3){const _0x2f29ae=_0x417ad2;for(var _0x31bcc3,_0x22f482=0x1,_0x269a30=arguments[_0x2f29ae(0x244)];_0x22f482<_0x269a30;_0x22f482++){_0x31bcc3=arguments[_0x22f482];for(var _0x49ec34 in _0x31bcc3)Object[_0x2f29ae(0x314)][_0x2f29ae(0x2c9)][_0x2f29ae(0x2fb)](_0x31bcc3,_0x49ec34)&&(_0xf98db3[_0x49ec34]=_0x31bcc3[_0x49ec34]);}return _0xf98db3;},E[_0x417ad2(0x2e1)](this,arguments);},jt=function(_0x3bc1fc,_0x508b48){const _0x174b6f=_0x5803ac;var _0x267abb={};for(var _0x145ba7 in _0x3bc1fc)Object[_0x174b6f(0x314)][_0x174b6f(0x2c9)][_0x174b6f(0x2fb)](_0x3bc1fc,_0x145ba7)&&_0x508b48[_0x174b6f(0x257)](_0x145ba7)<0x0&&(_0x267abb[_0x145ba7]=_0x3bc1fc[_0x145ba7]);if(_0x3bc1fc!=null&&typeof Object[_0x174b6f(0x317)]==_0x174b6f(0x2ea)){for(var _0x36e8f6=0x0,_0x145ba7=Object[_0x174b6f(0x317)](_0x3bc1fc);_0x36e8f6<_0x145ba7[_0x174b6f(0x244)];_0x36e8f6++)_0x508b48['indexOf'](_0x145ba7[_0x36e8f6])<0x0&&Object[_0x174b6f(0x314)]['propertyIsEnumerable'][_0x174b6f(0x2fb)](_0x3bc1fc,_0x145ba7[_0x36e8f6])&&(_0x267abb[_0x145ba7[_0x36e8f6]]=_0x3bc1fc[_0x145ba7[_0x36e8f6]]);}return _0x267abb;},Ee=O[_0x5803ac(0x37b)](function(_0x2a92df,_0x47fe24){const _0x27d08f=_0x5803ac;var _0x26dcd6=_0x2a92df[_0x27d08f(0x236)],_0x1991e6=_0x2a92df['id'],_0x3f449f=_0x2a92df[_0x27d08f(0x265)],_0x14b81f=_0x2a92df['extend'],_0x3f7f45=jt(_0x2a92df,['icon','id',_0x27d08f(0x265),'extend']),_0x221d49='univerjs-icon\x20univerjs-icon-'[_0x27d08f(0x163)](_0x1991e6,'\x20')['concat'](_0x3f449f||'')[_0x27d08f(0x2dc)](),_0x1064f4=O['useRef']('_'['concat'](Wt()));return je(_0x26dcd6,''[_0x27d08f(0x163)](_0x1991e6),{'defIds':_0x26dcd6['defIds'],'idSuffix':_0x1064f4[_0x27d08f(0x20e)]},E({'ref':_0x47fe24,'className':_0x221d49},_0x3f7f45),_0x14b81f);});function je(_0x3ab62d,_0x474bd5,_0x5525de,_0x4b706d,_0x11d0ff){const _0xfafa65=_0x5803ac;return O['createElement'](_0x3ab62d[_0xfafa65(0x1c6)],E(E({'key':_0x474bd5},Bt(_0x3ab62d,_0x5525de,_0x11d0ff)),_0x4b706d),(Ht(_0x3ab62d,_0x5525de)[_0xfafa65(0x1d2)]||[])['map'](function(_0x2f8611,_0x5aa1e4){const _0x4d0aba=_0xfafa65;return je(_0x2f8611,''['concat'](_0x474bd5,'-')[_0x4d0aba(0x163)](_0x3ab62d[_0x4d0aba(0x1c6)],'-')[_0x4d0aba(0x163)](_0x5aa1e4),_0x5525de,void 0x0,_0x11d0ff);}));}function Bt(_0x552363,_0x1f3c65,_0x577de7){const _0x13e77d=_0x5803ac;var _0x49f978=E({},_0x552363[_0x13e77d(0x274)]);_0x577de7!=null&&_0x577de7['colorChannel1']&&_0x49f978['fill']===_0x13e77d(0x248)&&(_0x49f978[_0x13e77d(0x293)]=_0x577de7[_0x13e77d(0x248)]);var _0x316c5a=_0x1f3c65['defIds'];return!_0x316c5a||_0x316c5a[_0x13e77d(0x244)]===0x0||(_0x552363[_0x13e77d(0x1c6)]===_0x13e77d(0x2c4)&&_0x49f978[_0x13e77d(0x242)]&&(_0x49f978[_0x13e77d(0x242)]=_0x49f978[_0x13e77d(0x242)]+_0x1f3c65['idSuffix']),Object[_0x13e77d(0x1ee)](_0x49f978)[_0x13e77d(0x191)](function(_0x3a0cdf){const _0x5bceeb=_0x13e77d;var _0x6ce3ad=_0x3a0cdf[0x0],_0x80b2ed=_0x3a0cdf[0x1];typeof _0x80b2ed==_0x5bceeb(0x1cd)&&(_0x49f978[_0x6ce3ad]=_0x80b2ed[_0x5bceeb(0x2bf)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x1f3c65[_0x5bceeb(0x3aa)],')')));})),_0x49f978;}function Ht(_0x5bbb7e,_0x2f0af5){const _0x5f028d=_0x5803ac;var _0xcd9175,_0x114a5f=_0x2f0af5[_0x5f028d(0x266)];return!_0x114a5f||_0x114a5f[_0x5f028d(0x244)]===0x0?_0x5bbb7e:_0x5bbb7e[_0x5f028d(0x1c6)]===_0x5f028d(0x29e)&&(!((_0xcd9175=_0x5bbb7e['children'])===null||_0xcd9175===void 0x0)&&_0xcd9175[_0x5f028d(0x244)])?E(E({},_0x5bbb7e),{'children':_0x5bbb7e[_0x5f028d(0x1d2)][_0x5f028d(0x2b9)](function(_0x413497){const _0x30fdcb=_0x5f028d;return typeof _0x413497[_0x30fdcb(0x274)]['id']==_0x30fdcb(0x1cd)&&_0x114a5f&&_0x114a5f[_0x30fdcb(0x257)](_0x413497['attrs']['id'])>-0x1?E(E({},_0x413497),{'attrs':E(E({},_0x413497[_0x30fdcb(0x274)]),{'id':_0x413497[_0x30fdcb(0x274)]['id']+_0x2f0af5[_0x30fdcb(0x3aa)]})}):_0x413497;})}):_0x5bbb7e;}function Wt(){const _0x5d0ce9=_0x5803ac;return Math[_0x5d0ce9(0x308)]()['toString'](0x24)[_0x5d0ce9(0x1ea)](0x2,0x8);}Ee[_0x5803ac(0x25e)]='UniverIcon';var Ft={'tag':'svg','attrs':{'fill':_0x5803ac(0x18e),'viewBox':'0\x200\x2016\x2016','width':_0x5803ac(0x290),'height':_0x5803ac(0x290)},'children':[{'tag':'g','attrs':{'clipPath':_0x5803ac(0x395)},'children':[{'tag':_0x5803ac(0x23e),'attrs':{'stroke':_0x5803ac(0x2a7),'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':_0x5803ac(0x2db),'strokeLinejoin':_0x5803ac(0x2db),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5803ac(0x307)},'children':[{'tag':_0x5803ac(0x23e),'attrs':{'fill':_0x5803ac(0x2f8),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x5803ac(0x307)]},Be=O['forwardRef'](function(_0x10b7df,_0x35bf4b){const _0x404a05=_0x5803ac;return O['createElement'](Ee,Object[_0x404a05(0x27a)]({},_0x10b7df,{'id':_0x404a05(0x25d),'ref':_0x35bf4b,'icon':Ft}));});function _0x2da3(_0x524d83,_0x2416aa){const _0x5547c6=_0x5547();return _0x2da3=function(_0x2da3fd,_0x22ddb3){_0x2da3fd=_0x2da3fd-0x15b;let _0x2adb69=_0x5547c6[_0x2da3fd];return _0x2adb69;},_0x2da3(_0x524d83,_0x2416aa);}Be[_0x5803ac(0x25e)]=_0x5803ac(0x2e0);var Yt={'tag':_0x5803ac(0x32f),'attrs':{'fill':_0x5803ac(0x18e),'viewBox':_0x5803ac(0x1f0),'width':_0x5803ac(0x290),'height':_0x5803ac(0x290)},'children':[{'tag':'g','attrs':{'clipPath':_0x5803ac(0x1de)},'children':[{'tag':_0x5803ac(0x23e),'attrs':{'stroke':_0x5803ac(0x2a7),'d':_0x5803ac(0x2c5),'strokeLinecap':_0x5803ac(0x2db),'strokeLinejoin':_0x5803ac(0x2db),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x5803ac(0x334),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x5803ac(0x23e),'attrs':{'fill':_0x5803ac(0x2f8),'d':_0x5803ac(0x315),'transform':_0x5803ac(0x33d)}}]}]}],'defIds':[_0x5803ac(0x2f5)]},He=O[_0x5803ac(0x37b)](function(_0x2a7208,_0x2746cf){const _0x414593=_0x5803ac;return O[_0x414593(0x1b3)](Ee,Object[_0x414593(0x27a)]({},_0x2a7208,{'id':'on-line-single','ref':_0x2746cf,'icon':Yt}));});He[_0x5803ac(0x25e)]=_0x5803ac(0x3a3);function We(_0x2f6cb9){const _0x5cd16e=_0x5803ac;var _0x46a768,_0x2798e4,_0x4408f0='';if(typeof _0x2f6cb9=='string'||typeof _0x2f6cb9=='number')_0x4408f0+=_0x2f6cb9;else{if(typeof _0x2f6cb9==_0x5cd16e(0x302)){if(Array[_0x5cd16e(0x214)](_0x2f6cb9)){var _0x280193=_0x2f6cb9[_0x5cd16e(0x244)];for(_0x46a768=0x0;_0x46a768<_0x280193;_0x46a768++)_0x2f6cb9[_0x46a768]&&(_0x2798e4=We(_0x2f6cb9[_0x46a768]))&&(_0x4408f0&&(_0x4408f0+='\x20'),_0x4408f0+=_0x2798e4);}else{for(_0x2798e4 in _0x2f6cb9)_0x2f6cb9[_0x2798e4]&&(_0x4408f0&&(_0x4408f0+='\x20'),_0x4408f0+=_0x2798e4);}}}return _0x4408f0;}function Xt(){const _0x23c3b0=_0x5803ac;for(var _0x52933d,_0xe2732,_0xbe262=0x0,_0xd55764='',_0xc728b9=arguments[_0x23c3b0(0x244)];_0xbe262<_0xc728b9;_0xbe262++)(_0x52933d=arguments[_0xbe262])&&(_0xe2732=We(_0x52933d))&&(_0xd55764&&(_0xd55764+='\x20'),_0xd55764+=_0xe2732);return _0xd55764;}const Vt=_0x5803ac(0x382),Gt=_0x5803ac(0x26e),kt=_0x5803ac(0x341),qt=_0x5803ac(0x27b),Kt=_0x5803ac(0x2f9),F={'onlineStatusIcon':Vt,'onlineStatusTitle':Gt,'onlineStatus':kt,'online':qt,'offline':Kt};function zt(_0x109b98){const _0x29ff6c=_0x5803ac;switch(_0x109b98){case u[_0x29ff6c(0x1ab)][_0x29ff6c(0x28c)]:return'collabStatus.offline';case u[_0x29ff6c(0x1ab)][_0x29ff6c(0x202)]:return _0x29ff6c(0x3bb);case u[_0x29ff6c(0x1ab)][_0x29ff6c(0x220)]:return _0x29ff6c(0x2ac);case u[_0x29ff6c(0x1ab)][_0x29ff6c(0x351)]:return _0x29ff6c(0x2da);case u[_0x29ff6c(0x1ab)][_0x29ff6c(0x319)]:case u['CollaborationStatus'][_0x29ff6c(0x35f)]:return'collabStatus.syncing';case u[_0x29ff6c(0x1ab)]['SYNCED']:case u[_0x29ff6c(0x1ab)][_0x29ff6c(0x1f9)]:return'collabStatus.synced';}}function Fe(_0x4a0983){const _0x3fd4d3=_0x5803ac,{status$:_0xf687e3}=_0x4a0983,_0x151076=w['useObservable'](_0xf687e3,u['CollaborationStatus'][_0x3fd4d3(0x351)]),_0x4f1b21=a[_0x3fd4d3(0x174)](a[_0x3fd4d3(0x3c5)]),_0x19d5a1=a[_0x3fd4d3(0x174)](u['CollaborationSessionService']),_0x1fd9c8=_0x151076!==u[_0x3fd4d3(0x1ab)][_0x3fd4d3(0x28c)],_0x2f8ac9=_0x4f1b21['t'](zt(_0x151076)),_0x284efe=Xt(F[_0x3fd4d3(0x216)],{[F[_0x3fd4d3(0x1d0)]]:_0x1fd9c8,[F['offline']]:!_0x1fd9c8}),_0x5dda46=_0x1fd9c8?N[_0x3fd4d3(0x1c3)](He,{}):N[_0x3fd4d3(0x1c3)](Be,{}),_0x419db9=O[_0x3fd4d3(0x2a3)](()=>{const _0x1b7816=_0x3fd4d3;_0x1fd9c8||_0x19d5a1[_0x1b7816(0x275)]();},[_0x1fd9c8,_0x19d5a1]);function _0x4cc2ab(){const _0xa78b44=_0x3fd4d3;return N['jsxs'](_0xa78b44(0x32e),{'className':_0x284efe,'onClick':_0x419db9,'children':[N[_0xa78b44(0x1c3)](_0xa78b44(0x32e),{'className':F[_0xa78b44(0x1ac)],'children':_0x5dda46}),N[_0xa78b44(0x1c3)](_0xa78b44(0x32e),{'className':F['onlineStatusTitle'],'children':_0x2f8ac9})]});}return _0x1fd9c8?_0x4cc2ab():N[_0x3fd4d3(0x1c3)](M[_0x3fd4d3(0x2d3)],{'title':_0x4f1b21['t']('collab-client.tooltip.reconnect'),'children':_0x4cc2ab()});}var Jt=Object[_0x5803ac(0x209)],Zt=Object[_0x5803ac(0x391)],Qt=(_0x3abfec,_0x11bff5,_0x12be30,_0x54272c)=>{const _0x5b5927=_0x5803ac;for(var _0x4c17a3=_0x54272c>0x1?void 0x0:_0x54272c?Zt(_0x11bff5,_0x12be30):_0x11bff5,_0x4a37b5=_0x3abfec[_0x5b5927(0x244)]-0x1,_0x510932;_0x4a37b5>=0x0;_0x4a37b5--)(_0x510932=_0x3abfec[_0x4a37b5])&&(_0x4c17a3=(_0x54272c?_0x510932(_0x11bff5,_0x12be30,_0x4c17a3):_0x510932(_0x4c17a3))||_0x4c17a3);return _0x54272c&&_0x4c17a3&&Jt(_0x11bff5,_0x12be30,_0x4c17a3),_0x4c17a3;},k=(_0x165585,_0x40451b)=>(_0x5c0adc,_0x50824c)=>_0x40451b(_0x5c0adc,_0x50824c,_0x165585);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0x5481fb,_0x555c99,_0x2c244a,_0x33f4a1){const _0x26f460=_0x5803ac;super(),_(this,_0x26f460(0x377),new S[(_0x26f460(0x3ad))](u[_0x26f460(0x1ab)]['NOT_COLLAB'])),(this[_0x26f460(0x3ac)]=_0x5481fb,this[_0x26f460(0x37f)]=_0x555c99,this['_collaborationController']=_0x2c244a,this[_0x26f460(0x224)]=_0x33f4a1,this[_0x26f460(0x225)](),this[_0x26f460(0x311)]());}['_initStatusListener'](){const _0xb243d3=_0x5803ac;this[_0xb243d3(0x1ed)](this['_univerInstanceService'][_0xb243d3(0x16e)][_0xb243d3(0x1e2)](S['switchMap'](()=>{const _0xe6b8b1=_0xb243d3,_0x48d7be=this[_0xe6b8b1(0x3ac)][_0xe6b8b1(0x1a1)]();return _0x48d7be?this[_0xe6b8b1(0x261)][_0xe6b8b1(0x25b)](_0x48d7be[_0xe6b8b1(0x296)]()):S['of'](null);}),S[_0xb243d3(0x1a8)](_0x358c32=>_0x358c32?_0x358c32[_0xb243d3(0x38f)]:S['of'](u[_0xb243d3(0x1ab)][_0xb243d3(0x351)])))[_0xb243d3(0x2bb)](_0x2e75d2=>{const _0x244ae2=_0xb243d3;this['_status$'][_0x244ae2(0x1dd)](_0x2e75d2);}));}['_initStatusComponent'](){const _0x1f6fca=_0x5803ac;this[_0x1f6fca(0x1ed)](this[_0x1f6fca(0x224)][_0x1f6fca(0x17c)](w[_0x1f6fca(0x176)][_0x1f6fca(0x1dc)],()=>a['connectInjector'](es({'status$':this[_0x1f6fca(0x377)][_0x1f6fca(0x2cd)]()}),this[_0x1f6fca(0x37f)])));}},exports[_0x5803ac(0x247)]=Qt([k(0x0,a['IUniverInstanceService']),k(0x1,a['Inject'](a[_0x5803ac(0x358)])),k(0x2,a['Inject'](u[_0x5803ac(0x182)])),k(0x3,w['IUIPartsService'])],exports[_0x5803ac(0x247)]);function es(_0x44560e){const {status$:_0x29906d}=_0x44560e;return function(){const _0x2eed26=_0x2da3;return N[_0x2eed26(0x1c3)](Fe,{'status$':_0x29906d});};}var ts=Object['defineProperty'],ss=Object['getOwnPropertyDescriptor'],ns=(_0x591eba,_0x35510e,_0x278f59,_0x2a33f3)=>{for(var _0x43eb77=_0x2a33f3>0x1?void 0x0:_0x2a33f3?ss(_0x35510e,_0x278f59):_0x35510e,_0x1169ce=_0x591eba['length']-0x1,_0x15f2bc;_0x1169ce>=0x0;_0x1169ce--)(_0x15f2bc=_0x591eba[_0x1169ce])&&(_0x43eb77=(_0x2a33f3?_0x15f2bc(_0x35510e,_0x278f59,_0x43eb77):_0x15f2bc(_0x43eb77))||_0x43eb77);return _0x2a33f3&&_0x43eb77&&ts(_0x35510e,_0x278f59,_0x43eb77),_0x43eb77;},y=(_0x231258,_0x4e3b15)=>(_0x155a96,_0x50ddd2)=>_0x4e3b15(_0x155a96,_0x50ddd2,_0x231258);let K=class extends a['Disposable']{constructor(_0x5c9fa7,_0x19a2e1,_0xeb23b5,_0x41fefa,_0x5a5d5b,_0xeaf127){const _0x36f536=_0x5803ac;super(),this['_beforeCloseService']=_0x5c9fa7,this['_localCacheService']=_0x19a2e1,this[_0x36f536(0x35d)]=_0xeb23b5,this[_0x36f536(0x372)]=_0x41fefa,this[_0x36f536(0x204)]=_0x5a5d5b,this[_0x36f536(0x2df)]=_0xeaf127,this[_0x36f536(0x15b)](),this['_initEvent']();}[_0x5803ac(0x15b)](){const _0x30a5b0=_0x5803ac;this[_0x30a5b0(0x1ed)](this[_0x30a5b0(0x365)][_0x30a5b0(0x37c)](()=>{const _0xac7256=_0x30a5b0;if(this[_0xac7256(0x15f)][_0xac7256(0x31d)][_0xac7256(0x3b9)])return this[_0xac7256(0x2df)]['t'](_0xac7256(0x1df));}));}[_0x5803ac(0x1c8)](){const _0x5a5dca=_0x5803ac;this[_0x5a5dca(0x1ed)](this[_0x5a5dca(0x35d)]['event$'][_0x5a5dca(0x2bb)](_0x524e05=>{const _0x4cd776=_0x5a5dca;_0x524e05['id']===u[_0x4cd776(0x2c2)]['OTHER_CLIENT_EDITING']&&this[_0x4cd776(0x372)][_0x4cd776(0x267)]({'type':M[_0x4cd776(0x175)]['Warning'],'content':this['_localeService']['t']('collaboration.single-unit.warning')}),_0x524e05['id']===u['CollaborationUIEventId'][_0x4cd776(0x21a)]&&this[_0x4cd776(0x372)][_0x4cd776(0x267)]({'type':M[_0x4cd776(0x175)]['Warning'],'content':this['_localeService']['t'](_0x4cd776(0x183))}),_0x524e05['id']===u[_0x4cd776(0x2c2)][_0x4cd776(0x1da)]&&this[_0x4cd776(0x204)][_0x4cd776(0x267)]({'title':this['_localeService']['t'](_0x4cd776(0x29d)),'content':this['_localeService']['t'](_0x4cd776(0x1e6)),'type':'error','duration':0x0}),_0x524e05['id']===u[_0x4cd776(0x2c2)][_0x4cd776(0x202)]&&this[_0x4cd776(0x372)][_0x4cd776(0x267)]({'type':M['MessageType']['Error'],'content':this[_0x4cd776(0x2df)]['t']('collaboration.closeRoom')+'('+_0x524e05[_0x4cd776(0x34a)]+')'}),_0x524e05['id']===u['CollaborationUIEventId'][_0x4cd776(0x23f)]&&this[_0x4cd776(0x372)][_0x4cd776(0x267)]({'type':M[_0x4cd776(0x175)][_0x4cd776(0x3a8)],'content':this[_0x4cd776(0x2df)]['t'](_0x524e05[_0x4cd776(0x34a)]||'')}),_0x524e05['id']===u[_0x4cd776(0x2c2)][_0x4cd776(0x169)]&&this[_0x4cd776(0x372)][_0x4cd776(0x267)]({'type':M[_0x4cd776(0x175)][_0x4cd776(0x3a8)],'content':this[_0x4cd776(0x2df)]['t'](_0x4cd776(0x373))}),_0x524e05['id']===u[_0x4cd776(0x2c2)][_0x4cd776(0x39c)]&&this[_0x4cd776(0x372)][_0x4cd776(0x267)]({'type':M[_0x4cd776(0x175)]['Error'],'content':this[_0x4cd776(0x2df)]['t'](_0x4cd776(0x1ec))}),_0x524e05['id']===u['CollaborationUIEventId'][_0x4cd776(0x28f)]&&this[_0x4cd776(0x372)][_0x4cd776(0x267)]({'type':M['MessageType'][_0x4cd776(0x16f)],'content':this['_localeService']['t'](_0x4cd776(0x37a))});}));}};K=ns([y(0x0,w['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x5803ac(0x1ff)](u['CollaborationUIEventService'])),y(0x3,w[_0x5803ac(0x1f6)]),y(0x4,w[_0x5803ac(0x16c)]),y(0x5,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x3c5)]))],K);const is=_0x5803ac(0x20c),we={},Re=a[_0x5803ac(0x2c1)](_0x5803ac(0x246));var rs=Object[_0x5803ac(0x209)],os=Object[_0x5803ac(0x391)],as=(_0x2945c8,_0x2f0953,_0x3294be,_0x30f757)=>{const _0x110297=_0x5803ac;for(var _0x14eb7d=_0x30f757>0x1?void 0x0:_0x30f757?os(_0x2f0953,_0x3294be):_0x2f0953,_0x44a8c8=_0x2945c8[_0x110297(0x244)]-0x1,_0x1d4d2d;_0x44a8c8>=0x0;_0x44a8c8--)(_0x1d4d2d=_0x2945c8[_0x44a8c8])&&(_0x14eb7d=(_0x30f757?_0x1d4d2d(_0x2f0953,_0x3294be,_0x14eb7d):_0x1d4d2d(_0x14eb7d))||_0x14eb7d);return _0x30f757&&_0x14eb7d&&rs(_0x2f0953,_0x3294be,_0x14eb7d),_0x14eb7d;},Y=(_0x259a6e,_0x5cfb50)=>(_0x3bec20,_0x713347)=>_0x5cfb50(_0x3bec20,_0x713347,_0x259a6e);exports['CollaborationDataLoaderController']=class extends a[_0x5803ac(0x363)]{constructor(_0x51d235,_0xdd9389,_0x2adbe3,_0x2f55c5,_0x4e821b){const _0x77f1e4=_0x5803ac;super(),this[_0x77f1e4(0x271)]=_0x51d235,this['_logService']=_0xdd9389,this[_0x77f1e4(0x2e7)]=_0x2adbe3,this[_0x77f1e4(0x3a7)]=_0x2f55c5,_0x4e821b?_0x4e821b==null||_0x4e821b[_0x77f1e4(0x2ed)]()[_0x77f1e4(0x2f3)](()=>this[_0x77f1e4(0x1f4)]()):(this[_0x77f1e4(0x198)][_0x77f1e4(0x369)](_0x77f1e4(0x24a),_0x77f1e4(0x207)),this['_init']());}async[_0x5803ac(0x1f4)](){const _0x146c8a=_0x5803ac,_0x1a5bd4=this[_0x146c8a(0x271)][_0x146c8a(0x33e)]('unit'),_0x5bd752=this[_0x146c8a(0x271)]['getParam'](_0x146c8a(0x323)),_0x5dec3b=this[_0x146c8a(0x271)][_0x146c8a(0x33e)](_0x146c8a(0x250));if(!_0x1a5bd4||!_0x5bd752){this[_0x146c8a(0x198)][_0x146c8a(0x369)](_0x146c8a(0x24a),'No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x42ffc8=await this[_0x146c8a(0x3a7)][_0x146c8a(0x2bc)](_0x1a5bd4,Number(_0x5bd752),_0x5dec3b);_0x42ffc8&&_0x42ffc8 instanceof a['Workbook']&&this[_0x146c8a(0x325)](_0x42ffc8);}async[_0x5803ac(0x325)](_0x477273){const _0x50ff48=_0x5803ac;await this['_updateSubUnitFromURLParams'](_0x477273),_0x477273[_0x50ff48(0x262)][_0x50ff48(0x1e2)](S['takeUntil'](this[_0x50ff48(0x1d7)]))['subscribe'](_0x1f06f3=>{const _0x2624f1=_0x50ff48;_0x1f06f3&&this[_0x2624f1(0x329)](_0x1f06f3);}),this[_0x50ff48(0x271)][_0x50ff48(0x355)]['pipe'](S['takeUntil'](this[_0x50ff48(0x1d7)]))[_0x50ff48(0x2bb)](()=>this['_updateSubUnitFromURLParams'](_0x477273));}[_0x5803ac(0x329)](_0x4b6ccc,_0x729e71=!0x1){const _0x4bb311=_0x5803ac,_0x404661=this[_0x4bb311(0x271)][_0x4bb311(0x33e)](_0x4bb311(0x250));_0x4b6ccc[_0x4bb311(0x18c)]()!==_0x404661&&this['_urlService'][_0x4bb311(0x1fc)](_0x4bb311(0x250),_0x4b6ccc[_0x4bb311(0x18c)](),_0x729e71);}async[_0x5803ac(0x2d0)](_0x3a84fb){const _0x24a1ef=_0x5803ac;var _0x5c6239;const _0x6f3637=this[_0x24a1ef(0x271)]['getParam'](_0x24a1ef(0x250));if(!_0x6f3637||!_0x3a84fb['getSheetBySheetId'](_0x6f3637)){const _0x3811d7=_0x3a84fb[_0x24a1ef(0x25a)]()[0x0],_0x5d2c64=_0x3a84fb[_0x24a1ef(0x2a1)](_0x3811d7);if(!_0x5d2c64)return;this[_0x24a1ef(0x329)](_0x5d2c64,!0x0),await this[_0x24a1ef(0x2e7)]['executeCommand'](I[_0x24a1ef(0x2c8)]['id'],{'unitId':_0x3a84fb[_0x24a1ef(0x296)](),'subUnitId':_0x3811d7});return;}((_0x5c6239=_0x3a84fb[_0x24a1ef(0x18d)]())==null?void 0x0:_0x5c6239[_0x24a1ef(0x18c)]())!==_0x6f3637&&await this['_commandService'][_0x24a1ef(0x364)](I[_0x24a1ef(0x2c8)]['id'],{'unitId':_0x3a84fb['getUnitId'](),'subUnitId':_0x6f3637});}},exports[_0x5803ac(0x375)]=as([Y(0x0,Re),Y(0x1,a[_0x5803ac(0x252)]),Y(0x2,a['ICommandService']),Y(0x3,a['Inject'](u[_0x5803ac(0x31f)])),Y(0x4,a['Optional'](et[_0x5803ac(0x21c)]))],exports[_0x5803ac(0x375)]);var cs=Object[_0x5803ac(0x209)],ls=Object[_0x5803ac(0x391)],hs=(_0x4a495c,_0x47edc2,_0x301d89,_0x9f81b3)=>{for(var _0x2dd00e=_0x9f81b3>0x1?void 0x0:_0x9f81b3?ls(_0x47edc2,_0x301d89):_0x47edc2,_0x3a29ca=_0x4a495c['length']-0x1,_0x3a06d4;_0x3a29ca>=0x0;_0x3a29ca--)(_0x3a06d4=_0x4a495c[_0x3a29ca])&&(_0x2dd00e=(_0x9f81b3?_0x3a06d4(_0x47edc2,_0x301d89,_0x2dd00e):_0x3a06d4(_0x2dd00e))||_0x2dd00e);return _0x9f81b3&&_0x2dd00e&&cs(_0x47edc2,_0x301d89,_0x2dd00e),_0x2dd00e;},le=(_0x260ae8,_0x13c4da)=>(_0x2fe5d2,_0x1262cf)=>_0x13c4da(_0x2fe5d2,_0x1262cf,_0x260ae8);let z=class{constructor(_0x11e4ba,_0x1fe6ff,_0x50dc3b){const _0x24e10b=_0x5803ac;this[_0x24e10b(0x37f)]=_0x11e4ba,this[_0x24e10b(0x3b3)]=_0x1fe6ff,this[_0x24e10b(0x354)]=_0x50dc3b;}[_0x5803ac(0x1e7)](_0x1907df){const _0x540439=_0x5803ac;this[_0x540439(0x37d)](_0x1907df),this[_0x540439(0x229)](_0x1907df);}[_0x5803ac(0x31e)](_0x641115){const _0xdebcdf=_0x5803ac,{unitID:_0x48aadf}=_0x641115,_0x487fff=this['_renderManagerService']['getRenderById'](_0x48aadf)[_0xdebcdf(0x1d9)](b[_0xdebcdf(0x16a)]),{redoCache:_0x430480}=_0x487fff[_0xdebcdf(0x353)]();if(_0x430480[_0xdebcdf(0x244)]===0x0)return _0x641115;let _0x51b69a=a[_0xdebcdf(0x38c)][_0xdebcdf(0x1af)](_0x641115[_0xdebcdf(0x287)][0x0]);for(let _0x1222e7=0x0;_0x1222e7<_0x430480[_0xdebcdf(0x244)];_0x1222e7++){const _0x2d989e={'id':_0xdebcdf(0x2ba),'params':{..._0x430480[_0x1222e7]}},_0x18ffc5=this['_transformService'][_0xdebcdf(0x357)](_0x51b69a,_0x2d989e,!0x1);if(g[_0xdebcdf(0x22c)](_0x18ffc5))throw _0x18ffc5[_0xdebcdf(0x3cc)];_0x51b69a=_0x18ffc5[_0xdebcdf(0x230)];}return{...a['Tools']['deepClone'](_0x641115),'mutations':[_0x51b69a]};}[_0x5803ac(0x37d)](_0x283770){const _0x1a7194=_0x5803ac,{unitID:_0x8443fa}=_0x283770,_0x3ca035=this[_0x1a7194(0x354)][_0x1a7194(0x2ab)](_0x8443fa)[_0x1a7194(0x1d9)](b['DocIMEInputManagerService']),{undoCache:_0x333e98,redoCache:_0x49a08f}=_0x3ca035[_0x1a7194(0x353)]();if(_0x333e98[_0x1a7194(0x244)]===0x0||_0x49a08f[_0x1a7194(0x244)]===0x0)return;const _0x58c345=[],_0x2df940=[];let _0x15b728=a[_0x1a7194(0x38c)][_0x1a7194(0x1af)](_0x283770[_0x1a7194(0x287)][0x0]),_0x3916bc=a['Tools']['deepClone'](_0x283770[_0x1a7194(0x287)][0x0]);for(let _0x1eb128=_0x333e98[_0x1a7194(0x244)]-0x1;_0x1eb128>=0x0;_0x1eb128--){const _0x345c97={'id':'doc.mutation.rich-text-editing','params':{..._0x333e98[_0x1eb128]}},_0x5906f8={'id':_0x1a7194(0x2ba),'params':{..._0x49a08f[_0x1eb128]}},_0x439740=this[_0x1a7194(0x3b3)]['transformMutation'](_0x15b728,_0x345c97,!0x1),_0x3217c5=this['_transformService'][_0x1a7194(0x357)](_0x3916bc,_0x5906f8,!0x1);if(g[_0x1a7194(0x22c)](_0x439740))throw _0x439740[_0x1a7194(0x3cc)];if(g['isTransformMutationFailure'](_0x3217c5))throw _0x3217c5['error'];_0x58c345['unshift'](_0x439740['m2Prime'][_0x1a7194(0x19d)]),_0x2df940[_0x1a7194(0x1f7)](_0x3217c5[_0x1a7194(0x213)][_0x1a7194(0x19d)]),_0x15b728=_0x439740[_0x1a7194(0x230)],_0x3916bc=_0x3217c5[_0x1a7194(0x230)];}_0x3ca035['setUndoRedoMutationParamsCache']({'undoCache':_0x58c345,'redoCache':_0x2df940});}[_0x5803ac(0x229)](_0x1a8864){const _0x5bf90e=_0x5803ac,{unitID:_0x30e4eb}=_0x1a8864,_0x5d338a=this['_renderManagerService'][_0x5bf90e(0x2ab)](_0x30e4eb)[_0x5bf90e(0x1d9)](b['DocIMEInputManagerService']),_0xd5c6be=_0x5d338a[_0x5bf90e(0x3c7)]();if(_0xd5c6be==null)return;const _0x39b963=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1a8864[_0x5bf90e(0x348)],'actions':null,'textRanges':[_0xd5c6be]}}],_0x233141=this['_transformService'][_0x5bf90e(0x277)](_0x1a8864,_0x39b963);if(!g[_0x5bf90e(0x217)](_0x233141))throw _0x233141[_0x5bf90e(0x3cc)];const _0x1ed39d=_0x233141[_0x5bf90e(0x213)][0x0]['params'][_0x5bf90e(0x24c)];Array[_0x5bf90e(0x214)](_0x1ed39d)&&_0x1ed39d[_0x5bf90e(0x244)]&&_0x5d338a[_0x5bf90e(0x1e0)](_0x1ed39d[0x0]);}};z=hs([le(0x0,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x358)])),le(0x1,g[_0x5803ac(0x3a0)]),le(0x2,p[_0x5803ac(0x254)])],z);var _s=Object['defineProperty'],us=Object['getOwnPropertyDescriptor'],ds=(_0x1d3148,_0x199a9c,_0x33c821,_0x4430ea)=>{const _0x8366a2=_0x5803ac;for(var _0x39ffd7=_0x4430ea>0x1?void 0x0:_0x4430ea?us(_0x199a9c,_0x33c821):_0x199a9c,_0x1b10b0=_0x1d3148[_0x8366a2(0x244)]-0x1,_0x91a68;_0x1b10b0>=0x0;_0x1b10b0--)(_0x91a68=_0x1d3148[_0x1b10b0])&&(_0x39ffd7=(_0x4430ea?_0x91a68(_0x199a9c,_0x33c821,_0x39ffd7):_0x91a68(_0x39ffd7))||_0x39ffd7);return _0x4430ea&&_0x39ffd7&&_s(_0x199a9c,_0x33c821,_0x39ffd7),_0x39ffd7;},he=(_0x383743,_0x329213)=>(_0x11be82,_0x185ed9)=>_0x329213(_0x11be82,_0x185ed9,_0x383743);let J=class{constructor(_0x2cf2e1,_0x133e65,_0x8e1295){const _0x5698e0=_0x5803ac;this['_injector']=_0x2cf2e1,this['_transformService']=_0x133e65,this[_0x5698e0(0x398)]=_0x8e1295;}['transformStateCache'](_0x15d2ba){this['_transformHistoryAndStateStack'](_0x15d2ba);}[_0x5803ac(0x31e)](_0x1cf54f){const _0x576743=_0x5803ac,{unitID:_0x29201d}=_0x1cf54f,{collaboration:_0x1761cc}=this[_0x576743(0x398)][_0x576743(0x1be)](_0x29201d);if(_0x1761cc[_0x576743(0x244)]===0x0)return _0x1cf54f;let _0x2c40fe=a[_0x576743(0x38c)][_0x576743(0x1af)](_0x1cf54f['mutations'][0x0]);for(let _0x4066ea=0x0;_0x4066ea<_0x1761cc['length'];_0x4066ea++){const _0x21cd76={'id':_0x576743(0x2ba),'params':{'unitId':_0x1761cc[_0x4066ea]['unitId'],..._0x1761cc[_0x4066ea][_0x576743(0x19a)]}},_0x3a059e=this[_0x576743(0x3b3)][_0x576743(0x357)](_0x2c40fe,_0x21cd76,!0x1);if(g[_0x576743(0x22c)](_0x3a059e))throw _0x3a059e[_0x576743(0x3cc)];_0x2c40fe=_0x3a059e['m1Prime'];}return{...a[_0x576743(0x38c)]['deepClone'](_0x1cf54f),'mutations':[_0x2c40fe]};}[_0x5803ac(0x285)](_0x4d7593){const _0x562e82=_0x5803ac,{unitID:_0x1beb1f}=_0x4d7593,{history:_0x108ed6,collaboration:_0xdc99c1}=this[_0x562e82(0x398)][_0x562e82(0x1be)](_0x1beb1f);if(_0x108ed6['length']===0x0&&_0xdc99c1[_0x562e82(0x244)]===0x0)return;const _0x5a6c7a=[],_0x1c1859=[];let _0x462732=a[_0x562e82(0x38c)]['deepClone'](_0x4d7593[_0x562e82(0x287)][0x0]),_0x7107ba=a[_0x562e82(0x38c)][_0x562e82(0x1af)](_0x4d7593[_0x562e82(0x287)][0x0]);for(let _0x3231d0=_0x108ed6[_0x562e82(0x244)]-0x1;_0x3231d0>=0x0;_0x3231d0--){const _0x2a8008={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x108ed6[_0x3231d0][_0x562e82(0x2e5)],..._0x108ed6[_0x3231d0]['undoState']}},_0x4c3549={'id':_0x562e82(0x2ba),'params':{'unitId':_0x108ed6[_0x3231d0][_0x562e82(0x2e5)],..._0x108ed6[_0x3231d0][_0x562e82(0x19a)]}},_0x2e5d86=this[_0x562e82(0x3b3)][_0x562e82(0x357)](_0x462732,_0x2a8008,!0x1),_0x5ec7d5=this['_transformService']['transformMutation'](_0x7107ba,_0x4c3549,!0x1);if(g[_0x562e82(0x22c)](_0x2e5d86))throw _0x2e5d86[_0x562e82(0x3cc)];if(g[_0x562e82(0x22c)](_0x5ec7d5))throw _0x5ec7d5['error'];_0x5a6c7a[_0x562e82(0x1f7)]({..._0x108ed6[_0x3231d0],'undoState':_0x2e5d86['m2Prime'][_0x562e82(0x19d)],'redoState':_0x5ec7d5[_0x562e82(0x213)][_0x562e82(0x19d)]}),_0x462732=_0x2e5d86[_0x562e82(0x230)],_0x7107ba=_0x5ec7d5['m1Prime'];}_0x462732=a[_0x562e82(0x38c)][_0x562e82(0x1af)](_0x4d7593[_0x562e82(0x287)][0x0]),_0x7107ba=a[_0x562e82(0x38c)][_0x562e82(0x1af)](_0x4d7593[_0x562e82(0x287)][0x0]);for(let _0x259d52=_0xdc99c1['length']-0x1;_0x259d52>=0x0;_0x259d52--){const _0x37b985={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xdc99c1[_0x259d52]['unitId'],..._0xdc99c1[_0x259d52][_0x562e82(0x392)]}},_0x245c51={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xdc99c1[_0x259d52][_0x562e82(0x2e5)],..._0xdc99c1[_0x259d52][_0x562e82(0x19a)]}},_0x3848ba=this['_transformService'][_0x562e82(0x357)](_0x462732,_0x37b985,!0x1),_0x345034=this[_0x562e82(0x3b3)]['transformMutation'](_0x7107ba,_0x245c51,!0x1);if(g[_0x562e82(0x22c)](_0x3848ba))throw _0x3848ba['error'];if(g[_0x562e82(0x22c)](_0x345034))throw _0x345034[_0x562e82(0x3cc)];_0x1c1859[_0x562e82(0x1f7)]({..._0xdc99c1[_0x259d52],'undoState':_0x3848ba[_0x562e82(0x213)][_0x562e82(0x19d)],'redoState':_0x345034[_0x562e82(0x213)]['params']}),_0x462732=_0x3848ba[_0x562e82(0x230)],_0x7107ba=_0x345034['m1Prime'];}this['_docStateChangeManagerService'][_0x562e82(0x30f)](_0x1beb1f,{'history':_0x5a6c7a,'collaboration':_0x1c1859});}};J=ds([he(0x0,a['Inject'](a[_0x5803ac(0x358)])),he(0x1,g[_0x5803ac(0x3a0)]),he(0x2,a[_0x5803ac(0x1ff)](b[_0x5803ac(0x352)]))],J);var fs=Object[_0x5803ac(0x209)],Ss=Object[_0x5803ac(0x391)],vs=(_0x527449,_0x13f2c5,_0x3ded4e,_0x52f00c)=>{const _0x26cef9=_0x5803ac;for(var _0x58d6e8=_0x52f00c>0x1?void 0x0:_0x52f00c?Ss(_0x13f2c5,_0x3ded4e):_0x13f2c5,_0x32f7c6=_0x527449[_0x26cef9(0x244)]-0x1,_0x5e0ea4;_0x32f7c6>=0x0;_0x32f7c6--)(_0x5e0ea4=_0x527449[_0x32f7c6])&&(_0x58d6e8=(_0x52f00c?_0x5e0ea4(_0x13f2c5,_0x3ded4e,_0x58d6e8):_0x5e0ea4(_0x58d6e8))||_0x58d6e8);return _0x52f00c&&_0x58d6e8&&fs(_0x13f2c5,_0x3ded4e,_0x58d6e8),_0x58d6e8;},Le=(_0x3703ea,_0x589707)=>(_0x224614,_0x32dbc8)=>_0x589707(_0x224614,_0x32dbc8,_0x3703ea);let Z=class{constructor(_0x5e009a,_0x11511d){const _0x1efa72=_0x5803ac;this[_0x1efa72(0x37f)]=_0x5e009a,this[_0x1efa72(0x3b3)]=_0x11511d;}['transformSelections'](_0x4d57f4){const _0x2b2085=_0x5803ac;var _0x40519c;const _0x38bd62=this['_injector'][_0x2b2085(0x393)](X[_0x2b2085(0x15e)]),_0xe5d885=(_0x40519c=_0x38bd62[_0x2b2085(0x2ee)]())!=null?_0x40519c:[];if(_0xe5d885[_0x2b2085(0x244)]===0x0)return;const _0x2f538b=_0x4d57f4[_0x2b2085(0x348)],_0x45a8a5=[{'id':_0x2b2085(0x2ba),'params':{'unitId':_0x2f538b,'actions':null,'textRanges':_0xe5d885}}],_0x2bea50=this[_0x2b2085(0x3b3)][_0x2b2085(0x277)](_0x4d57f4,_0x45a8a5);if(!g[_0x2b2085(0x217)](_0x2bea50))throw _0x2bea50[_0x2b2085(0x3cc)];const _0xf85ee5=_0x2bea50['m2Prime'][0x0][_0x2b2085(0x19d)]['textRanges'];Array[_0x2b2085(0x214)](_0xf85ee5)&&_0xf85ee5[_0x2b2085(0x244)]&&_0x38bd62[_0x2b2085(0x180)](_0xf85ee5,{'unitId':_0x2f538b,'subUnitId':_0x2f538b},!0x1);}};Z=vs([Le(0x0,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x358)])),Le(0x1,g['ITransformService'])],Z);var ms=Object[_0x5803ac(0x209)],Is=Object[_0x5803ac(0x391)],gs=(_0x37cf5c,_0x3ad00d,_0x135a3f,_0x272cd3)=>{const _0x217e97=_0x5803ac;for(var _0x3a1b98=_0x272cd3>0x1?void 0x0:_0x272cd3?Is(_0x3ad00d,_0x135a3f):_0x3ad00d,_0x1dd978=_0x37cf5c[_0x217e97(0x244)]-0x1,_0x32dc35;_0x1dd978>=0x0;_0x1dd978--)(_0x32dc35=_0x37cf5c[_0x1dd978])&&(_0x3a1b98=(_0x272cd3?_0x32dc35(_0x3ad00d,_0x135a3f,_0x3a1b98):_0x32dc35(_0x3a1b98))||_0x3a1b98);return _0x272cd3&&_0x3a1b98&&ms(_0x3ad00d,_0x135a3f,_0x3a1b98),_0x3a1b98;},P=(_0x68f08a,_0x54fd1c)=>(_0x529198,_0x5dee63)=>_0x54fd1c(_0x529198,_0x5dee63,_0x68f08a);let Q=class extends a[_0x5803ac(0x1b5)]{constructor(_0x381fff,_0x3308ea,_0x4be4ea,_0x100227,_0x557594,_0x222ad4,_0x241b67,_0xaf96c7){const _0x213c8a=_0x5803ac;super(),_(this,_0x213c8a(0x377),new S[(_0x213c8a(0x3ad))](u[_0x213c8a(0x1ab)][_0x213c8a(0x351)])),(this[_0x213c8a(0x398)]=_0x381fff,this[_0x213c8a(0x261)]=_0x3308ea,this['_docTransformIMECacheService']=_0x4be4ea,this['_docTransformStateCacheService']=_0x100227,this[_0x213c8a(0x2ce)]=_0x557594,this[_0x213c8a(0x361)]=_0x222ad4,this[_0x213c8a(0x372)]=_0x241b67,this['_localeService']=_0xaf96c7,this['_initEntityListener']());}[_0x5803ac(0x26f)](){const _0x4a293e=_0x5803ac;this[_0x4a293e(0x1ed)](this[_0x4a293e(0x261)]['entityInit$'][_0x4a293e(0x2bb)](_0x2f719a=>{const _0x67813e=_0x4a293e,_0x418471=this[_0x67813e(0x398)][_0x67813e(0x322)][_0x67813e(0x2bb)](_0x5a7313=>{const _0xcc14a8=_0x67813e;if(_0x5a7313==null)return;const {unitId:_0x3d1f66,redoState:_0x380acc,commandId:_0x12e13f}=_0x5a7313;if(_0x3d1f66!==_0x2f719a[_0xcc14a8(0x348)])return;const _0x124f5c={'id':_0x12e13f,'type':a['CommandType'][_0xcc14a8(0x3cb)],'params':{'unitId':_0x3d1f66,'actions':_0x380acc['actions'],'textRanges':null}};_0x2f719a['onLocalMutation'](_0x124f5c);});if(_0x2f719a['disposeWithMe'](_0x418471),_0x2f719a instanceof u[_0x67813e(0x276)]){const _0x196171={'onTransformIME':_0x2f6a2c=>this[_0x67813e(0x32c)][_0x67813e(0x1e7)](_0x2f6a2c),'onTransformState':_0x1a4c00=>this['_docTransformStateCacheService'][_0x67813e(0x291)](_0x1a4c00),'onTransformSelections':_0x1b25ce=>this['_docTransformSelectionsService'][_0x67813e(0x339)](_0x1b25ce),'onSyncEditingCollabCursor':_0x216856=>this[_0x67813e(0x361)][_0x67813e(0x38d)](_0x216856),'onTransformRemoteChangesetByIMECache':_0x3a940a=>this['_docTransformIMECacheService'][_0x67813e(0x31e)](_0x3a940a),'onTransformRemoteChangesetByStateCache':_0x5bbec2=>this[_0x67813e(0x338)]['transformRemoteChangeset'](_0x5bbec2)};_0x2f719a[_0x67813e(0x336)](_0x196171);}}));}};Q=gs([P(0x0,a[_0x5803ac(0x1ff)](b[_0x5803ac(0x352)])),P(0x1,a['Inject'](u[_0x5803ac(0x182)])),P(0x2,a['Inject'](z)),P(0x3,a[_0x5803ac(0x1ff)](J)),P(0x4,a['Inject'](Z)),P(0x5,a[_0x5803ac(0x1ff)](be)),P(0x6,w[_0x5803ac(0x1f6)]),P(0x7,a[_0x5803ac(0x1ff)](a[_0x5803ac(0x3c5)]))],Q);var ps=Object[_0x5803ac(0x209)],Cs=Object[_0x5803ac(0x391)],bs=(_0x420f46,_0x56c695,_0x3a376f,_0xba6a6e)=>{const _0x127f5c=_0x5803ac;for(var _0x221902=_0xba6a6e>0x1?void 0x0:_0xba6a6e?Cs(_0x56c695,_0x3a376f):_0x56c695,_0x2aaa03=_0x420f46[_0x127f5c(0x244)]-0x1,_0x504cb4;_0x2aaa03>=0x0;_0x2aaa03--)(_0x504cb4=_0x420f46[_0x2aaa03])&&(_0x221902=(_0xba6a6e?_0x504cb4(_0x56c695,_0x3a376f,_0x221902):_0x504cb4(_0x221902))||_0x221902);return _0xba6a6e&&_0x221902&&ps(_0x56c695,_0x3a376f,_0x221902),_0x221902;},_e=(_0x1c804e,_0x3c4d71)=>(_0x3a1962,_0x36dd41)=>_0x3c4d71(_0x3a1962,_0x36dd41,_0x1c804e);let pe=class extends a['Disposable']{constructor(_0x5c0e85,_0x226f3b,_0x3c575d){const _0x4c83e6=_0x5803ac;super(),_(this,_0x4c83e6(0x2c6),new Map()),_(this,_0x4c83e6(0x2cf),new Map()),_(this,'_disabled',!0x1),(this['_configService']=_0x5c0e85,this[_0x4c83e6(0x2cc)]=_0x226f3b,this['_revisionService']=_0x3c575d);}[_0x5803ac(0x344)](){this['_disabled']=!0x0;}[_0x5803ac(0x269)](){this['_disabled']=!0x1;}get[_0x5803ac(0x31d)](){const _0x3b1a1f=_0x5803ac;return this[_0x3b1a1f(0x2cf)];}[_0x5803ac(0x263)](){const _0x3e678f=_0x5803ac;this['exhaustSavingTask']()[_0x3e678f(0x2f3)](()=>super[_0x3e678f(0x263)]());}async[_0x5803ac(0x340)](_0x4b3639){const _0x265ff3=_0x5803ac;return this[_0x265ff3(0x2a8)]?null:this[_0x265ff3(0x2cc)][_0x265ff3(0x316)](u[_0x265ff3(0x219)](_0x4b3639));}async[_0x5803ac(0x360)](_0x30a9d3,_0x4d2404){const _0x17de4f=_0x5803ac;return!!this[_0x17de4f(0x2cc)][_0x17de4f(0x2f2)](_0x30a9d3,_0x4d2404);}[_0x5803ac(0x22e)](_0x2f3383,_0x217515,_0x1f3e79,_0x733421){const _0x4cd1bb=_0x5803ac,_0x3db598=this[_0x4cd1bb(0x34c)][_0x4cd1bb(0x309)](_0x2f3383);this[_0x4cd1bb(0x2c6)][_0x4cd1bb(0x2f4)](_0x2f3383,{'unitID':_0x2f3383,'type':_0x217515,'awaitingChangeset':_0x1f3e79,'mutations':_0x733421,'rev':_0x3db598}),this[_0x4cd1bb(0x2cf)]['has'](_0x2f3383)||this['_scheduleSaving'](_0x2f3383);}[_0x5803ac(0x1e5)](_0x36c064){const _0xa45198=_0x5803ac,_0x2df6d7=this[_0xa45198(0x2dd)]();_0x2df6d7===0x0?this[_0xa45198(0x26c)](_0x36c064):this[_0xa45198(0x2cf)][_0xa45198(0x2f4)](_0x36c064,setTimeout(()=>this[_0xa45198(0x26c)](_0x36c064),_0x2df6d7));}[_0x5803ac(0x2dd)](){const _0x30ec1b=_0x5803ac;var _0x4f9971;return(_0x4f9971=this[_0x30ec1b(0x264)][_0x30ec1b(0x1e9)](u[_0x30ec1b(0x2e3)]))!=null?_0x4f9971:u[_0x30ec1b(0x333)];}[_0x5803ac(0x26c)](_0x3ca8fe){const _0x5ad436=_0x5803ac,_0x56de40=this[_0x5ad436(0x2cf)][_0x5ad436(0x393)](_0x3ca8fe);return _0x56de40!==void 0x0&&window['clearTimeout'](_0x56de40),this[_0x5ad436(0x2cc)]['setItem'](u[_0x5ad436(0x219)](_0x3ca8fe),this[_0x5ad436(0x2c6)]['get'](_0x3ca8fe))[_0x5ad436(0x2f3)](()=>this[_0x5ad436(0x2cf)][_0x5ad436(0x1d3)](_0x3ca8fe));}async[_0x5803ac(0x3bd)](){const _0x400ee6=_0x5803ac,_0x446fb5=[];this[_0x400ee6(0x2cf)][_0x400ee6(0x191)]((_0x266597,_0x1c263f)=>{const _0x1868f9=_0x400ee6;window[_0x1868f9(0x19c)](_0x266597),_0x446fb5[_0x1868f9(0x215)](this['_saveCache'](_0x1c263f)['then'](()=>{const _0x5378f0=_0x1868f9;this[_0x5378f0(0x2cf)][_0x5378f0(0x1d3)](_0x1c263f);}));}),await Promise[_0x400ee6(0x255)](_0x446fb5);}};pe=bs([_e(0x0,a[_0x5803ac(0x2b8)]),_e(0x1,a[_0x5803ac(0x1a9)]),_e(0x2,a[_0x5803ac(0x1ff)](g[_0x5803ac(0x284)]))],pe);class Ye extends a[_0x5803ac(0x363)]{constructor(){const _0x2748f6=_0x5803ac;super(),_(this,_0x2748f6(0x355)),this['urlChange$']=S[_0x2748f6(0x15d)](window,'popstate')[_0x2748f6(0x1e2)](S['takeUntil'](this[_0x2748f6(0x1d7)]),S[_0x2748f6(0x1b9)](0x1),S['mapTo'](void 0x0));}[_0x5803ac(0x1fc)](_0x2b625f,_0x10afe8,_0x3fe387=!0x1){const _0x13c5db=_0x5803ac,_0x120f1c=new URL(window[_0x13c5db(0x1b4)][_0x13c5db(0x33a)]);_0x120f1c['searchParams'][_0x13c5db(0x2f4)](_0x2b625f,_0x10afe8),_0x3fe387?window['history'][_0x13c5db(0x185)]('','',_0x120f1c[_0x13c5db(0x367)]()):window['history'][_0x13c5db(0x1b1)]('','',_0x120f1c[_0x13c5db(0x367)]());}['removeParam'](_0x2d3655,_0x4a711b=!0x1){const _0x99f5a2=_0x5803ac,_0x3e0e6b=new URL(window[_0x99f5a2(0x1b4)]['href']);_0x3e0e6b[_0x99f5a2(0x39e)][_0x99f5a2(0x1d3)](_0x2d3655),_0x4a711b?window[_0x99f5a2(0x1a6)][_0x99f5a2(0x185)]('','',_0x3e0e6b['toString']()):window[_0x99f5a2(0x1a6)][_0x99f5a2(0x1b1)]('','',_0x3e0e6b[_0x99f5a2(0x367)]());}['getParam'](_0x1ecb83){const _0x151490=_0x5803ac;var _0xe9ccdb;return(_0xe9ccdb=new URL(window[_0x151490(0x1b4)][_0x151490(0x33a)])[_0x151490(0x39e)][_0x151490(0x393)](_0x1ecb83))!=null?_0xe9ccdb:void 0x0;}}var Xe=Object[_0x5803ac(0x209)],Es=Object[_0x5803ac(0x391)],Rs=(_0x45e2d6,_0x58e113,_0x2b2aee)=>_0x58e113 in _0x45e2d6?Xe(_0x45e2d6,_0x58e113,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b2aee}):_0x45e2d6[_0x58e113]=_0x2b2aee,Ts=(_0x2fbfe8,_0x422e9a,_0x4dc45a,_0x11eeee)=>{const _0x10eb48=_0x5803ac;for(var _0x40844a=_0x11eeee>0x1?void 0x0:_0x11eeee?Es(_0x422e9a,_0x4dc45a):_0x422e9a,_0x4d30d2=_0x2fbfe8[_0x10eb48(0x244)]-0x1,_0x247c57;_0x4d30d2>=0x0;_0x4d30d2--)(_0x247c57=_0x2fbfe8[_0x4d30d2])&&(_0x40844a=(_0x11eeee?_0x247c57(_0x422e9a,_0x4dc45a,_0x40844a):_0x247c57(_0x40844a))||_0x40844a);return _0x11eeee&&_0x40844a&&Xe(_0x422e9a,_0x4dc45a,_0x40844a),_0x40844a;},ue=(_0xcfbc4e,_0x1e3a64)=>(_0x5c457b,_0x2dad2c)=>_0x1e3a64(_0x5c457b,_0x2dad2c,_0xcfbc4e),Os=(_0x1f8b20,_0x2623dc,_0x4ab30b)=>Rs(_0x1f8b20,_0x2623dc+'',_0x4ab30b);const Ds=_0x5803ac(0x346);exports[_0x5803ac(0x22b)]=class extends a[_0x5803ac(0x16b)]{constructor(_0x2590ac=we,_0x359412,_0x41d348,_0x1bc4c6){const _0x3423bf=_0x5803ac;super(),this['_config']=_0x2590ac,this['_renderManagerService']=_0x359412,this[_0x3423bf(0x37f)]=_0x41d348,this['_configService']=_0x1bc4c6;const {..._0x1964ad}=a[_0x3423bf(0x381)]({},we,this[_0x3423bf(0x232)]);this['_configService'][_0x3423bf(0x332)](is,_0x1964ad);}[_0x5803ac(0x3c9)](){const _0x5d4322=_0x5803ac;this['_registerDependencies'](),this[_0x5d4322(0x305)]();}[_0x5803ac(0x2b2)](){this['_registerRenderDependencies']();}[_0x5803ac(0x342)](){const _0x462e55=_0x5803ac;var _0x5a45c0;const _0xf0d020=[[Ce],[Z],[z],[J],[be],[Re,{'useClass':Ye}],[fe[_0x462e55(0x2fe)],{'useClass':fe[_0x462e55(0x1c7)]}],[u[_0x462e55(0x36b)],{'useClass':pe}],[exports[_0x462e55(0x247)]],[Q],[K],[x],[Se],[exports[_0x462e55(0x375)]]];a[_0x462e55(0x335)](this['_injector'],a[_0x462e55(0x245)](_0xf0d020,(_0x5a45c0=this[_0x462e55(0x232)])==null?void 0x0:_0x5a45c0[_0x462e55(0x21e)]));}[_0x5803ac(0x349)](){const _0x4dcef7=_0x5803ac;this[_0x4dcef7(0x1ed)](this[_0x4dcef7(0x354)][_0x4dcef7(0x1c9)](a[_0x4dcef7(0x19f)]['UNIVER_DOC'],[Ie])),this[_0x4dcef7(0x1ed)](this['_renderManagerService']['registerRenderModule'](a[_0x4dcef7(0x19f)][_0x4dcef7(0x310)],[ge]));}['_initDependencies'](){const _0x342560=_0x5803ac;a[_0x342560(0x384)](this[_0x342560(0x37f)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[K],[exports[_0x342560(0x375)]]]);}},Os(exports[_0x5803ac(0x22b)],'pluginName',Ds),exports['UniverCollaborationClientUIPlugin']=Ts([a[_0x5803ac(0x278)](u[_0x5803ac(0x3d1)]),ue(0x1,p[_0x5803ac(0x254)]),ue(0x2,a[_0x5803ac(0x1ff)](a['Injector'])),ue(0x3,a['IConfigService'])],exports[_0x5803ac(0x22b)]);const Ae=0x7530,ye=_0x5803ac(0x298);class Ps extends a['Disposable']{constructor(){const _0x21b01c=_0x5803ac;super(),_(this,_0x21b01c(0x31b),a['Tools'][_0x21b01c(0x2d1)]()),_(this,_0x21b01c(0x289),new Set()),_(this,_0x21b01c(0x32d),new Map()),_(this,_0x21b01c(0x189),null),_(this,_0x21b01c(0x240),new Map()),_(this,_0x21b01c(0x167),new Map()),this['_init']();}[_0x5803ac(0x263)](){const _0xb3f9e=_0x5803ac;super['dispose'](),this['_clearOtherTimers'][_0xb3f9e(0x191)]((_0x107df5,_0x614151)=>this[_0xb3f9e(0x388)](_0x614151)),this[_0xb3f9e(0x189)]&&window['clearInterval'](this[_0xb3f9e(0x189)]);}[_0x5803ac(0x1bf)](_0x2d63da){const _0xe29b0f=_0x5803ac;return this['_ensureSubject'](_0x2d63da)[_0xe29b0f(0x1e2)](S['distinctUntilChanged']());}['editingUnit'](_0x11b5d7){const _0x3c0f13=_0x5803ac;this['_selfUnitIDs']['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x3c0f13(0x289)][_0x3c0f13(0x385)](_0x11b5d7),this['_send']({'type':0x0,'memberID':this[_0x3c0f13(0x31b)],'unitIDs':[_0x11b5d7],'isForwarded':!0x1});}[_0x5803ac(0x368)](_0x191e6a){const _0x446a5d=_0x5803ac;this[_0x446a5d(0x289)][_0x446a5d(0x1d3)](_0x191e6a),this[_0x446a5d(0x289)]['size']===0x0&&this[_0x446a5d(0x189)]&&window['clearInterval'](this[_0x446a5d(0x189)]);}[_0x5803ac(0x1f4)](){const _0xdb55b5=_0x5803ac;this['disposeWithMe'](a[_0xdb55b5(0x380)](S[_0xdb55b5(0x15d)](window,_0xdb55b5(0x35c))[_0xdb55b5(0x2bb)](_0x511ee3=>{const _0x26cfaf=_0xdb55b5;if(_0x511ee3[_0x26cfaf(0x17b)]!==ye||!_0x511ee3[_0x26cfaf(0x36a)])return;const _0x4c225a=JSON[_0x26cfaf(0x270)](_0x511ee3[_0x26cfaf(0x36a)]);this[_0x26cfaf(0x1f8)](_0x4c225a);}))),window[_0xdb55b5(0x1c1)]('unload',()=>this[_0xdb55b5(0x3ca)]({'type':0x1,'memberID':this[_0xdb55b5(0x31b)],'unitIDs':Array[_0xdb55b5(0x356)](this['_selfUnitIDs'])}));}[_0x5803ac(0x1f8)](_0x4b96b3){const _0x3dd4d8=_0x5803ac;switch(_0x4b96b3[_0x3dd4d8(0x323)]){case 0x0:this['_handleJoinEvent'](_0x4b96b3);break;case 0x1:this[_0x3dd4d8(0x233)](_0x4b96b3);break;case 0x2:this[_0x3dd4d8(0x3ae)](_0x4b96b3);break;}}['_handleJoinEvent'](_0x1a8c55){const _0x1bad42=_0x5803ac,{unitIDs:_0x5cff93,memberID:_0x48ff9d,isForwarded:_0x10973a}=_0x1a8c55;_0x5cff93[_0x1bad42(0x191)](_0x4710e1=>{const _0x568286=_0x1bad42;if(!_0x10973a&&this['_unitOnClients'][_0x568286(0x30c)](_0x4710e1)&&this['_ensureSubject'](_0x4710e1)['next'](u[_0x568286(0x188)][_0x568286(0x1f1)]),!this['_unitOnClients'][_0x568286(0x30c)](_0x4710e1)||!this[_0x568286(0x32d)][_0x568286(0x393)](_0x4710e1)[_0x568286(0x30c)](_0x48ff9d)){const _0x21c1f2=this['_unitOnClients'][_0x568286(0x393)](_0x4710e1)||new Set();_0x21c1f2[_0x568286(0x385)](_0x48ff9d),this[_0x568286(0x32d)]['set'](_0x4710e1,_0x21c1f2),this['_scheduleClearOtherTimer'](_0x48ff9d);}}),_0x10973a||this[_0x1bad42(0x3ca)]({'type':0x0,'memberID':this[_0x1bad42(0x31b)],'unitIDs':[...this[_0x1bad42(0x289)]],'isForwarded':!0x0});}[_0x5803ac(0x281)](_0x177011){const _0x36d1b2=_0x5803ac;this[_0x36d1b2(0x388)](_0x177011);const _0x337fec=window[_0x36d1b2(0x34e)](()=>{const _0x4df008=_0x36d1b2;this[_0x4df008(0x32d)][_0x4df008(0x191)](_0x4b6798=>{const _0x1e7116=_0x4df008;_0x4b6798[_0x1e7116(0x1d3)](_0x177011);});},Ae*0x2);this[_0x36d1b2(0x240)][_0x36d1b2(0x2f4)](_0x177011,_0x337fec);}['_removeClearOtherTimer'](_0x284605){const _0x446574=_0x5803ac;if(this[_0x446574(0x240)]['has'](_0x284605)){const _0x29cf47=this[_0x446574(0x240)][_0x446574(0x393)](_0x284605);_0x29cf47&&window['clearTimeout'](_0x29cf47),this[_0x446574(0x240)][_0x446574(0x2f4)](_0x284605,null);}}[_0x5803ac(0x233)](_0x27a180){const _0xf173fe=_0x5803ac,{memberID:_0x2cd948,unitIDs:_0x42352b}=_0x27a180;_0x42352b[_0xf173fe(0x191)](_0x2a209d=>{const _0x259c69=_0xf173fe;var _0x299cdb;const _0x18cdc2=this[_0x259c69(0x32d)][_0x259c69(0x393)](_0x2a209d);_0x18cdc2&&(_0x18cdc2[_0x259c69(0x1d3)](_0x2cd948),(_0x299cdb=this[_0x259c69(0x3af)](_0x2a209d))==null||_0x299cdb[_0x259c69(0x1dd)](_0x18cdc2[_0x259c69(0x3b9)]===0x0?u['UnitStatus'][_0x259c69(0x1b7)]:u['UnitStatus']['OTHER_CLIENTS_EDITING']));}),this[_0xf173fe(0x388)](_0x2cd948);}[_0x5803ac(0x3ae)](_0x19265e){const _0x3d22bc=_0x5803ac;this['_scheduleClearOtherTimer'](_0x19265e[_0x3d22bc(0x362)]);}[_0x5803ac(0x3ca)](_0xfd47de){const _0x2a3338=_0x5803ac;localStorage[_0x2a3338(0x2f2)](ye,JSON['stringify'](_0xfd47de));}[_0x5803ac(0x2b7)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x45f2e1=_0x2da3;this[_0x45f2e1(0x3ca)]({'type':0x2,'memberID':this[_0x45f2e1(0x31b)]});},Ae);}['_ensureSubject'](_0x3d2184){const _0x8a3d83=_0x5803ac;return this['_unitStatus'][_0x8a3d83(0x30c)](_0x3d2184)||this[_0x8a3d83(0x167)][_0x8a3d83(0x2f4)](_0x3d2184,new S[(_0x8a3d83(0x3ad))](u['UnitStatus'][_0x8a3d83(0x1b7)])),this[_0x8a3d83(0x167)][_0x8a3d83(0x393)](_0x3d2184);}}var Ve=(_0x4f40b0=>(_0x4f40b0[_0x4f40b0[_0x5803ac(0x29c)]=0x0]=_0x5803ac(0x29c),_0x4f40b0[_0x4f40b0['OK']=0x1]='OK',_0x4f40b0[_0x4f40b0['INTERNAL_ERROR']=0x2]=_0x5803ac(0x187),_0x4f40b0[_0x4f40b0[_0x5803ac(0x1da)]=0x3]='PERMISSION_DENIED',_0x4f40b0[_0x4f40b0[_0x5803ac(0x1d4)]=0x4]='NOT_FOUND',_0x4f40b0[_0x4f40b0[_0x5803ac(0x166)]=0x5]='UNAUTHENTICATED',_0x4f40b0[_0x4f40b0[_0x5803ac(0x18b)]=0x6]=_0x5803ac(0x18b),_0x4f40b0[_0x4f40b0[_0x5803ac(0x20b)]=0x7]=_0x5803ac(0x20b),_0x4f40b0[_0x4f40b0[_0x5803ac(0x19e)]=0x8]=_0x5803ac(0x19e),_0x4f40b0[_0x4f40b0[_0x5803ac(0x2f1)]=0x9]=_0x5803ac(0x2f1),_0x4f40b0[_0x4f40b0[_0x5803ac(0x2a2)]=0x1389]=_0x5803ac(0x2a2),_0x4f40b0[_0x4f40b0[_0x5803ac(0x36c)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x4f40b0[_0x4f40b0[_0x5803ac(0x32b)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x4f40b0[_0x4f40b0['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x5803ac(0x288),_0x4f40b0[_0x4f40b0[_0x5803ac(0x193)]=0x1b59]=_0x5803ac(0x193),_0x4f40b0[_0x4f40b0[_0x5803ac(0x235)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x4f40b0[_0x4f40b0[_0x5803ac(0x359)]=0x1b5b]=_0x5803ac(0x359),_0x4f40b0[_0x4f40b0[_0x5803ac(0x299)]=0x1b5c]=_0x5803ac(0x299),_0x4f40b0[_0x4f40b0[_0x5803ac(0x25c)]=0x1b5d]=_0x5803ac(0x25c),_0x4f40b0[_0x4f40b0[_0x5803ac(0x1a5)]=0x1f41]=_0x5803ac(0x1a5),_0x4f40b0[_0x4f40b0['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x5803ac(0x3a1),_0x4f40b0[_0x4f40b0[_0x5803ac(0x2a6)]=0x232a]=_0x5803ac(0x2a6),_0x4f40b0[_0x4f40b0[_0x5803ac(0x221)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x4f40b0[_0x4f40b0['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x4f40b0[_0x4f40b0['LICENSE_DISTRO_REJECTED']=0x232d]=_0x5803ac(0x3b4),_0x4f40b0[_0x4f40b0[_0x5803ac(0x2b1)]=0x2711]=_0x5803ac(0x2b1),_0x4f40b0[_0x4f40b0[_0x5803ac(0x3b6)]=0x2712]=_0x5803ac(0x3b6),_0x4f40b0[_0x4f40b0['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5803ac(0x37e),_0x4f40b0[_0x4f40b0[_0x5803ac(0x3cf)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4f40b0[_0x4f40b0[_0x5803ac(0x237)]=-0x1]=_0x5803ac(0x237),_0x4f40b0))(Ve||{}),Ms=Object[_0x5803ac(0x209)],Us=Object[_0x5803ac(0x391)],Ns=(_0x251731,_0x4f8666,_0x5b3766,_0x223501)=>{const _0x23aad9=_0x5803ac;for(var _0x3e1bfc=_0x223501>0x1?void 0x0:_0x223501?Us(_0x4f8666,_0x5b3766):_0x4f8666,_0x59f065=_0x251731[_0x23aad9(0x244)]-0x1,_0x386b55;_0x59f065>=0x0;_0x59f065--)(_0x386b55=_0x251731[_0x59f065])&&(_0x3e1bfc=(_0x223501?_0x386b55(_0x4f8666,_0x5b3766,_0x3e1bfc):_0x386b55(_0x3e1bfc))||_0x3e1bfc);return _0x223501&&_0x3e1bfc&&Ms(_0x4f8666,_0x5b3766,_0x3e1bfc),_0x3e1bfc;},de=(_0x57d481,_0xaa4306)=>(_0x33408c,_0xfc6be1)=>_0xaa4306(_0x33408c,_0xfc6be1,_0x57d481);exports[_0x5803ac(0x177)]=class extends a[_0x5803ac(0x1b5)]{constructor(_0x53fd01,_0x1e3de6,_0x4c7ce1){const _0x4931da=_0x5803ac;super(),this['_instanceService']=_0x53fd01,this[_0x4931da(0x324)]=_0x1e3de6,this['_configService']=_0x4c7ce1;}async['runOnServer'](_0x1e5774,_0x120edc,..._0x3efdb7){const _0x1c889=_0x5803ac;var _0x41f765,_0x511917;const _0x5afce1=this['_instanceService']['getFocusedUnit']();if(!_0x5afce1)throw new Error(_0x1c889(0x38a));const _0x313cc2=((_0x41f765=this[_0x1c889(0x264)][_0x1c889(0x1e9)](u[_0x1c889(0x18f)]))!=null?_0x41f765:u[_0x1c889(0x226)])+'/'+_0x1e5774+_0x1c889(0x2b5)+_0x120edc,_0x237ebe=new URL(window[_0x1c889(0x1b4)][_0x1c889(0x33a)]),_0x4e743b={'scriptId':_0x1e5774,'runId':(_0x511917=_0x237ebe['searchParams'][_0x1c889(0x393)](_0x1c889(0x3d0)))!=null?_0x511917:'','function':_0x120edc,'unitId':_0x5afce1['getUnitId'](),'argsOfFunction':JSON[_0x1c889(0x212)](_0x3efdb7)};try{const _0x4b44c7=await this[_0x1c889(0x324)][_0x1c889(0x27c)](_0x313cc2,{'body':_0x4e743b});return!(_0x4b44c7[_0x1c889(0x22f)][_0x1c889(0x3cc)]&&_0x4b44c7[_0x1c889(0x22f)][_0x1c889(0x3cc)][_0x1c889(0x1e8)]!==Ve['OK']);}catch{return!0x1;}}},exports[_0x5803ac(0x177)]=Ns([de(0x0,a['IUniverInstanceService']),de(0x1,a[_0x5803ac(0x1ff)](fe[_0x5803ac(0x22d)])),de(0x2,a['IConfigService'])],exports[_0x5803ac(0x177)]),exports[_0x5803ac(0x21b)]=Fe,exports[_0x5803ac(0x184)]=Re,exports[_0x5803ac(0x249)]=xe,exports['WebBrowserSingleActiveUnitService']=Ps,exports[_0x5803ac(0x1ba)]=Ye;
1
+ 'use strict';const _0x170c79=_0xc691;(function(_0x551eec,_0x14c5f1){const _0x20a9ca=_0xc691,_0x4dd903=_0x551eec();while(!![]){try{const _0x521a28=parseInt(_0x20a9ca(0x2c4))/0x1*(parseInt(_0x20a9ca(0xfa))/0x2)+parseInt(_0x20a9ca(0x27e))/0x3*(-parseInt(_0x20a9ca(0x257))/0x4)+parseInt(_0x20a9ca(0x2a0))/0x5+parseInt(_0x20a9ca(0x1ed))/0x6*(parseInt(_0x20a9ca(0x147))/0x7)+parseInt(_0x20a9ca(0x2c9))/0x8*(-parseInt(_0x20a9ca(0x129))/0x9)+-parseInt(_0x20a9ca(0x2fa))/0xa*(parseInt(_0x20a9ca(0x1a3))/0xb)+-parseInt(_0x20a9ca(0x272))/0xc*(parseInt(_0x20a9ca(0x1a1))/0xd);if(_0x521a28===_0x14c5f1)break;else _0x4dd903['push'](_0x4dd903['shift']());}catch(_0x554628){_0x4dd903['push'](_0x4dd903['shift']());}}}(_0x1dab,0x62857));var Ze=Object['defineProperty'],Qe=(_0x3a5205,_0x3135ee,_0x40aff2)=>_0x3135ee in _0x3a5205?Ze(_0x3a5205,_0x3135ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40aff2}):_0x3a5205[_0x3135ee]=_0x40aff2,_=(_0x3abda0,_0x4836ec,_0x54fa8b)=>Qe(_0x3abda0,typeof _0x4836ec!=_0x170c79(0x152)?_0x4836ec+'':_0x4836ec,_0x54fa8b);Object[_0x170c79(0x1b3)](exports,Symbol[_0x170c79(0x271)],{'value':_0x170c79(0x298)});const u=require(_0x170c79(0x216)),a=require(_0x170c79(0x2df)),p=require(_0x170c79(0x284)),fe=require(_0x170c79(0x181)),b=require('@univerjs/docs-ui'),et=require(_0x170c79(0x22b)),S=require(_0x170c79(0x2ff)),X=require(_0x170c79(0x1c5)),g=require(_0x170c79(0x30f)),Te=require(_0x170c79(0x21a)),I=require(_0x170c79(0x10d)),$=require(_0x170c79(0x352)),q=require(_0x170c79(0x143)),O=require(_0x170c79(0xf4)),w=require(_0x170c79(0x1e4)),M=require(_0x170c79(0x1dd)),tt=require('@univerjs/rpc');var st=Object[_0x170c79(0x1b3)],nt=Object[_0x170c79(0x2f6)],it=(_0x1638dd,_0x4283c9,_0xb12f18,_0x5277a4)=>{const _0x426f7d=_0x170c79;for(var _0x2dfe52=_0x5277a4>0x1?void 0x0:_0x5277a4?nt(_0x4283c9,_0xb12f18):_0x4283c9,_0x547768=_0x1638dd[_0x426f7d(0x30e)]-0x1,_0x512c99;_0x547768>=0x0;_0x547768--)(_0x512c99=_0x1638dd[_0x547768])&&(_0x2dfe52=(_0x5277a4?_0x512c99(_0x4283c9,_0xb12f18,_0x2dfe52):_0x512c99(_0x2dfe52))||_0x2dfe52);return _0x5277a4&&_0x2dfe52&&st(_0x4283c9,_0xb12f18,_0x2dfe52),_0x2dfe52;},Oe=(_0x26e155,_0x494af7)=>(_0x47b54d,_0x37747b)=>_0x494af7(_0x47b54d,_0x37747b,_0x26e155);let Se=class extends a[_0x170c79(0x20f)]{constructor(_0x527bb9,_0x52d01b){const _0x461832=_0x170c79;super(),this[_0x461832(0xf9)]=_0x527bb9,this[_0x461832(0x176)]=_0x52d01b,this[_0x461832(0x24d)]();}[_0x170c79(0x24d)](){const _0x22ee5d=_0x170c79,_0x50bf2c=this;this[_0x22ee5d(0x276)](this[_0x22ee5d(0xf9)]['addClipboardHook']({'onBeforePasteImage':async _0x53e310=>{const _0x4810e3=_0x22ee5d,_0xc9c696=await _0x50bf2c[_0x4810e3(0x176)]['saveImage'](_0x53e310);return _0xc9c696?{'source':_0xc9c696[_0x4810e3(0x116)],'imageSourceType':_0xc9c696[_0x4810e3(0x2cc)]}:null;}}));}};Se=it([Oe(0x0,b[_0x170c79(0x1f3)]),Oe(0x1,et['IImageIoService'])],Se);const De=[_0x170c79(0x2e5),_0x170c79(0x131),'verdancy600',_0x170c79(0x359),_0x170c79(0x151),_0x170c79(0x1c9)];class Ce extends a[_0x170c79(0x31f)]{constructor(){const _0x3996cb=_0x170c79;super(...arguments),_(this,_0x3996cb(0x19a),new Map()),_(this,'_colorIndex',0x0);}[_0x170c79(0x1ac)](_0x4f4600){const _0x3f3185=_0x170c79;if(this['_assignedColors'][_0x3f3185(0x27b)](_0x4f4600))return this[_0x3f3185(0x19a)][_0x3f3185(0x1fb)](_0x4f4600);const _0x1818b2=De[this[_0x3f3185(0x11e)]];return this[_0x3f3185(0x11e)]=(this[_0x3f3185(0x11e)]+0x1)%De[_0x3f3185(0x30e)],this[_0x3f3185(0x19a)]['set'](_0x4f4600,_0x1818b2),_0x1818b2;}}function xe(_0xe83e82){let _0x34793c='';for(const _0x40ac0d of _0xe83e82){const {startOffset:_0x2f3841,endOffset:_0x16f369,isActive:_0x581d87,rangeType:_0x29a7de,segmentId:_0x31d2e2,segmentPage:_0x4027bb}=_0x40ac0d;_0x34793c['length']&&(_0x34793c+=','),_0x34793c+=_0x2f3841+':'+_0x16f369+':'+(_0x581d87?'1':'0')+':'+_0x29a7de+':'+_0x31d2e2+':'+_0x4027bb;}return _0x34793c;}function rt(_0x224005){const _0x633886=_0x170c79,_0x248f17=_0x224005[_0x633886(0x1aa)](','),_0x253127=[];for(const _0x5d97a9 of _0x248f17){const [_0x377fd0,_0x48899d,_0x16d661,_0x420071,_0x448532,_0x3fcc40]=_0x5d97a9['split'](':');_0x253127['push']({'startOffset':Number(_0x377fd0),'endOffset':Number(_0x48899d),'collapsed':_0x377fd0===_0x48899d,'isActive':_0x16d661==='1','rangeType':_0x420071===a[_0x633886(0x2d8)][_0x633886(0x2a4)]?a[_0x633886(0x2d8)][_0x633886(0x2a4)]:a[_0x633886(0x2d8)][_0x633886(0x33c)],'segmentId':typeof _0x448532=='string'?String(_0x448532):'','segmentPage':Number(_0x3fcc40!=null?_0x3fcc40:-0x1)});}return _0x253127[_0x633886(0x1b0)](_0x277c74=>_0x277c74[_0x633886(0x15f)])||(_0x253127[0x0]['isActive']=!0x0),_0x253127;}class be extends a[_0x170c79(0x20f)]{constructor(){const _0x3be4c9=_0x170c79;super(...arguments),_(this,'_collabCursorState$',new S[(_0x3be4c9(0x11b))](null)),_(this,'collabCursorState$',this[_0x3be4c9(0x356)]['asObservable']());}[_0x170c79(0xf3)](_0x1d8f70){const _0x164720=_0x170c79,{unitID:_0x279b19,memberID:_0x5ecefe,textRanges:_0x4afb19}=_0x1d8f70,_0x261031=xe(_0x4afb19);if(_0x261031==='')return;const _0x55dc61={'unitID':_0x279b19,'memberID':_0x5ecefe,'selection':_0x261031};this[_0x164720(0x356)]['next'](_0x55dc61);}}var ot=Object['defineProperty'],at=Object[_0x170c79(0x2f6)],ct=(_0x378cfd,_0x292ad8,_0x563904,_0x443c76)=>{const _0x561ac3=_0x170c79;for(var _0x9fb846=_0x443c76>0x1?void 0x0:_0x443c76?at(_0x292ad8,_0x563904):_0x292ad8,_0x2f1ad5=_0x378cfd[_0x561ac3(0x30e)]-0x1,_0x234f64;_0x2f1ad5>=0x0;_0x2f1ad5--)(_0x234f64=_0x378cfd[_0x2f1ad5])&&(_0x9fb846=(_0x443c76?_0x234f64(_0x292ad8,_0x563904,_0x9fb846):_0x234f64(_0x9fb846))||_0x9fb846);return _0x443c76&&_0x9fb846&&ot(_0x292ad8,_0x563904,_0x9fb846),_0x9fb846;},U=(_0x43d00a,_0x42b094)=>(_0x51e9fd,_0x4eeb76)=>_0x42b094(_0x51e9fd,_0x4eeb76,_0x43d00a);const lt=0x12c,ht=0x64;let ve=class extends a[_0x170c79(0x20f)]{constructor(_0x244ef6,_0x5901f7,_0x18d717,_0x4ca466,_0x257711,_0x3c3fe3,_0x45215c,_0x6ff4d5,_0x3a3f4d){const _0x1ac5d5=_0x170c79;super(),_(this,_0x1ac5d5(0x18c),!0x1),_(this,_0x1ac5d5(0x24d),!0x1),_(this,_0x1ac5d5(0x35a),new S[(_0x1ac5d5(0x11b))](new Map())),_(this,_0x1ac5d5(0x1b2),this[_0x1ac5d5(0x35a)][_0x1ac5d5(0x177)]()),_(this,_0x1ac5d5(0x1b4),new S[(_0x1ac5d5(0x11b))]([])),_(this,'roomMembers$',this['_roomMembers$'][_0x1ac5d5(0x238)](S[_0x1ac5d5(0x2ac)](lt))),_(this,'_updateLocalCursor',a[_0x1ac5d5(0x12d)](_0x32dc67=>{const _0x2ecf96=_0x1ac5d5,_0x581de3={'eventID':g[_0x2ecf96(0xf7)][_0x2ecf96(0x162)],'data':{'unitID':this['unitID'],'memberID':this[_0x2ecf96(0x2f4)]['getMemberID'](),'selection':xe(_0x32dc67)}};this['_session']['send'](_0x581de3,this['unitID']);},ht)),(this['unitID']=_0x244ef6,this[_0x1ac5d5(0x2f4)]=_0x5901f7,this[_0x1ac5d5(0x1f9)]=_0x18d717,this[_0x1ac5d5(0x33b)]=_0x4ca466,this[_0x1ac5d5(0x35b)]=_0x257711,this['_syncEditingCollabCursorService']=_0x3c3fe3,this[_0x1ac5d5(0x242)]=_0x45215c,this['_univerInstanceService']=_0x6ff4d5,this[_0x1ac5d5(0x10f)]=_0x3a3f4d);}get['cursorInfo'](){const _0x1b4e31=_0x170c79;return this[_0x1b4e31(0x35a)]['getValue']();}get[_0x170c79(0x2e1)](){const _0x20f0c2=_0x170c79;return this[_0x20f0c2(0x1b4)][_0x20f0c2(0x2cf)]();}[_0x170c79(0x2dc)](){const _0xcd5b14=_0x170c79;super['dispose'](),this['_cursorInfo$'][_0xcd5b14(0x25c)](new Map()),this[_0xcd5b14(0x35a)][_0xcd5b14(0x209)](),this[_0xcd5b14(0x1b4)][_0xcd5b14(0x25c)]([]),this[_0xcd5b14(0x1b4)]['complete']();}[_0x170c79(0xe4)](){const _0x57196a=_0x170c79;this['_init']||(this[_0x57196a(0x24d)]=!0x0,this['_session'][_0x57196a(0x193)][_0x57196a(0x238)](S[_0x57196a(0x1f1)](this[_0x57196a(0x2d9)]))[_0x57196a(0x18f)](_0x35aebf=>{const _0x118610=_0x57196a;_0x35aebf===u['SessionStatus'][_0x118610(0x212)]?this[_0x118610(0x21e)]():this[_0x118610(0xeb)]();}),this[_0x57196a(0x2f4)][_0x57196a(0x306)]['pipe'](S[_0x57196a(0x1f1)](this[_0x57196a(0x2d9)]))['subscribe'](_0x2424d7=>{const _0x2bb3f7=_0x57196a,_0x41f214=_0x2424d7[_0x2bb3f7(0x26b)];_0x41f214===g[_0x2bb3f7(0xf7)][_0x2bb3f7(0x162)]&&this[_0x2bb3f7(0x26e)](_0x2424d7),_0x41f214===g[_0x2bb3f7(0xf7)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x2424d7);}),this['disposeWithMe'](this[_0x57196a(0x10f)][_0x57196a(0x303)](_0x3b17ba=>{const _0x19025=_0x57196a,_0x5d2e12=_0x3b17ba[_0x19025(0xed)];_0x5d2e12!=null&&this[_0x19025(0x18c)]&&_0x3b17ba['id']===X[_0x19025(0x1f4)]['id']&&_0x5d2e12[_0x19025(0x195)]===this['unitID']&&_0x5d2e12[_0x19025(0x219)]===!0x1&&_0x5d2e12[_0x19025(0x282)][_0x19025(0x30e)]>0x0&&this[_0x19025(0x214)](_0x5d2e12[_0x19025(0x282)]);})),this[_0x57196a(0x33e)][_0x57196a(0x2fb)][_0x57196a(0x238)](S['takeUntil'](this[_0x57196a(0x2d9)]))[_0x57196a(0x18f)](_0x19a330=>{const _0x5b8276=_0x57196a;if((_0x19a330==null?void 0x0:_0x19a330['unitID'])!==this[_0x5b8276(0x335)])return;const _0x3fc3bf={'eventID':g[_0x5b8276(0xf7)][_0x5b8276(0x162)],'data':_0x19a330};this[_0x5b8276(0x26e)](_0x3fc3bf);}),this['disposeWithMe'](this[_0x57196a(0x10f)]['onCommandExecuted'](_0x31a1e5=>{const _0xfe2842=_0x57196a;if(_0x31a1e5['params']==null)return;const _0x4a1edc=_0x31a1e5['params'];if(_0x31a1e5['id']!==X['RichTextEditingMutation']['id']||_0x4a1edc[_0xfe2842(0x195)]!==this[_0xfe2842(0x335)])return;const _0x1cb3f3={'id':'doc.mutation.rich-text-editing','params':_0x4a1edc},_0x370ba6=this[_0xfe2842(0x204)];for(const [_0x243d4a,_0x12aab9]of _0x370ba6){const _0x3aac5b={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x12aab9[_0xfe2842(0x282)]}},_0x4ca1d1=this['_transformService'][_0xfe2842(0x137)](_0x1cb3f3,_0x3aac5b,!0x1);if(g[_0xfe2842(0xe3)](_0x4ca1d1))throw _0x4ca1d1[_0xfe2842(0x10b)];_0x370ba6[_0xfe2842(0x1b1)](_0x243d4a,{..._0x12aab9,'ranges':_0x4ca1d1['m2Prime']['params'][_0xfe2842(0x1ba)]});}queueMicrotask(()=>{const _0x57d579=_0xfe2842;this[_0x57d579(0x35a)]['next'](_0x370ba6);});})));}[_0x170c79(0x26e)](_0x28f31d){const _0xb4f05d=_0x170c79;var _0x333600,_0x285bad;const {memberID:_0x1209e8,selection:_0x1d24a3}=_0x28f31d[_0xb4f05d(0xe8)],_0x425072=rt(_0x1d24a3),_0x5d78ec=(_0x285bad=(_0x333600=this[_0xb4f05d(0x35b)][_0xb4f05d(0x21b)](this[_0xb4f05d(0x335)],_0x1209e8))==null?void 0x0:_0x333600[_0xb4f05d(0x311)])!=null?_0x285bad:_0xb4f05d(0x188),_0x505aec={'color':this[_0xb4f05d(0x33b)][_0xb4f05d(0x1ac)](_0x1209e8),'name':_0x5d78ec,'ranges':_0x425072},_0x260fc4=this[_0xb4f05d(0x204)];_0x260fc4[_0xb4f05d(0x1b1)](_0x1209e8,_0x505aec),this['_cursorInfo$'][_0xb4f05d(0x25c)](_0x260fc4);}[_0x170c79(0x146)](_0x591f98){const _0x6b773a=_0x170c79,{memberID:_0x14cb28}=_0x591f98[_0x6b773a(0xe8)],_0x1d2dc8=this[_0x6b773a(0x204)];_0x1d2dc8[_0x6b773a(0x16f)](_0x14cb28),this['_cursorInfo$'][_0x6b773a(0x25c)](_0x1d2dc8);}[_0x170c79(0x21e)](){const _0x352e38=_0x170c79;var _0x5cb0d5;if(this[_0x352e38(0x18c)]=!0x0,((_0x5cb0d5=this[_0x352e38(0x222)][_0x352e38(0x295)]())==null?void 0x0:_0x5cb0d5[_0x352e38(0x30b)]())!==this['unitID'])return;const _0x3fc893=this[_0x352e38(0x1f9)][_0x352e38(0x1fb)](X[_0x352e38(0x19d)])[_0x352e38(0x20d)]();Array['isArray'](_0x3fc893)&&_0x3fc893[_0x352e38(0x30e)]>0x0&&this[_0x352e38(0x214)](_0x3fc893);}[_0x170c79(0xeb)](){this['_online']=!0x1;}};ve=ct([U(0x2,a[_0x170c79(0x27c)](a[_0x170c79(0x2e0)])),U(0x3,a['Inject'](Ce)),U(0x4,a[_0x170c79(0x27c)](u[_0x170c79(0x1d8)])),U(0x5,a[_0x170c79(0x27c)](be)),U(0x6,g[_0x170c79(0x2e6)]),U(0x7,a[_0x170c79(0x126)]),U(0x8,a[_0x170c79(0x2c7)])],ve);var _t=Object[_0x170c79(0x1b3)],ut=Object[_0x170c79(0x2f6)],dt=(_0x47d3f4,_0x4a02df,_0x12fb69,_0x1b6865)=>{const _0x79b20=_0x170c79;for(var _0x271fbc=_0x1b6865>0x1?void 0x0:_0x1b6865?ut(_0x4a02df,_0x12fb69):_0x4a02df,_0x1bbf59=_0x47d3f4[_0x79b20(0x30e)]-0x1,_0x13b617;_0x1bbf59>=0x0;_0x1bbf59--)(_0x13b617=_0x47d3f4[_0x1bbf59])&&(_0x271fbc=(_0x1b6865?_0x13b617(_0x4a02df,_0x12fb69,_0x271fbc):_0x13b617(_0x271fbc))||_0x271fbc);return _0x1b6865&&_0x271fbc&&_t(_0x4a02df,_0x12fb69,_0x271fbc),_0x271fbc;},A=(_0x2c43c9,_0x3691fd)=>(_0x5a296c,_0x38d2a2)=>_0x3691fd(_0x5a296c,_0x38d2a2,_0x2c43c9);const ft=0x12c,St=0x64,vt=()=>{let _0x39acd1=[],_0x2c2597=!0x1;return _0x474c01=>{_0x39acd1['push'](_0x474c01),_0x2c2597||(_0x2c2597=!0x0,setTimeout(()=>{const _0x5742ef=_0xc691;_0x39acd1[_0x5742ef(0x292)](_0x526de6=>_0x526de6()),_0x39acd1=[],_0x2c2597=!0x1;}));};};let me=class extends a[_0x170c79(0x20f)]{constructor(_0x3434d4,_0x5b6cc7,_0x1f62c5,_0x4f1060,_0x38d750,_0x35abe3,_0x537ca1,_0x47692c){const _0xb6d486=_0x170c79;super(),_(this,_0xb6d486(0x18c),!0x1),_(this,'_init',!0x1),_(this,_0xb6d486(0x35a),new S['BehaviorSubject'](new Map())),_(this,_0xb6d486(0x1b2),this['_cursorInfo$'][_0xb6d486(0x177)]()),_(this,_0xb6d486(0x1b4),new S[(_0xb6d486(0x11b))]([])),_(this,_0xb6d486(0x197),this['_roomMembers$'][_0xb6d486(0x238)](S[_0xb6d486(0x2ac)](ft))),_(this,'_updateLocalCursor',a[_0xb6d486(0x12d)]((_0x3685ff,_0x1185c5)=>{const _0x56d546=_0xb6d486,_0x2d8a47={'eventID':g[_0x56d546(0xf7)][_0x56d546(0x162)],'data':{'unitID':this[_0x56d546(0x335)],'memberID':this[_0x56d546(0x2f4)][_0x56d546(0x340)](),'selection':Te[_0x56d546(0x274)](_0x3685ff,_0x1185c5[_0x56d546(0x245)])}};this[_0x56d546(0x2f4)][_0x56d546(0x233)](_0x2d8a47,this['unitID']);},St)),(this['unitID']=_0x3434d4,this[_0xb6d486(0x2f4)]=_0x5b6cc7,this[_0xb6d486(0x1f9)]=_0x1f62c5,this[_0xb6d486(0x33b)]=_0x4f1060,this[_0xb6d486(0x35b)]=_0x38d750,this['_univerInstanceService']=_0x35abe3,this[_0xb6d486(0x10f)]=_0x537ca1,this[_0xb6d486(0x2b3)]=_0x47692c);}get['cursorInfo'](){const _0xa3aefe=_0x170c79;return this[_0xa3aefe(0x35a)][_0xa3aefe(0x2cf)]();}get[_0x170c79(0x2e1)](){const _0x3c1880=_0x170c79;return this[_0x3c1880(0x1b4)]['getValue']();}[_0x170c79(0x2dc)](){const _0x29e9e9=_0x170c79;super[_0x29e9e9(0x2dc)](),this[_0x29e9e9(0x35a)][_0x29e9e9(0x25c)](new Map()),this[_0x29e9e9(0x35a)][_0x29e9e9(0x209)](),this[_0x29e9e9(0x1b4)]['next']([]),this['_roomMembers$'][_0x29e9e9(0x209)]();}[_0x170c79(0xe4)](){const _0x524937=_0x170c79;this['_init']||(this[_0x524937(0x24d)]=!0x0,this[_0x524937(0x2f4)][_0x524937(0x193)][_0x524937(0x238)](S['takeUntil'](this[_0x524937(0x2d9)]))['subscribe'](_0x38ed78=>{const _0x45cdb3=_0x524937;_0x38ed78===u[_0x45cdb3(0x355)]['ONLINE']?this[_0x45cdb3(0x21e)]():this[_0x45cdb3(0xeb)]();}),this[_0x524937(0x2f4)][_0x524937(0x306)]['pipe'](S[_0x524937(0x1f1)](this['dispose$']))[_0x524937(0x18f)](_0x213efc=>{const _0x51a2d7=_0x524937,_0x5100c2=_0x213efc[_0x51a2d7(0x26b)];_0x5100c2===g['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x51a2d7(0x26e)](_0x213efc),_0x5100c2===g[_0x51a2d7(0xf7)][_0x51a2d7(0x199)]&&this[_0x51a2d7(0x146)](_0x213efc);}),this[_0x524937(0x325)](),this[_0x524937(0x276)](this[_0x524937(0x10f)][_0x524937(0x303)](_0x1c42d8=>{const _0x3f3911=_0x524937;if(this[_0x3f3911(0x18c)]&&_0x1c42d8['id']===I[_0x3f3911(0x237)]['id']&&_0x1c42d8['params']['unitId']===this['unitID']){const _0x564f61=_0x1c42d8[_0x3f3911(0xed)];this['_updateLocalCursor'](_0x564f61[_0x3f3911(0x2a6)],_0x564f61[_0x3f3911(0x165)][0x0]);}})));}[_0x170c79(0x26e)](_0x1dc09f){const _0x162f7c=_0x170c79;var _0x406045,_0x3a744d;const {memberID:_0x2d3234,selection:_0x29cd59}=_0x1dc09f[_0x162f7c(0xe8)],{sheetName:_0x1c1184,range:_0x47337c}=Te[_0x162f7c(0x316)](_0x29cd59),_0x5d76fe={'name':(_0x3a744d=(_0x406045=this[_0x162f7c(0x35b)]['getMember'](this[_0x162f7c(0x335)],_0x2d3234))==null?void 0x0:_0x406045[_0x162f7c(0x311)])!=null?_0x3a744d:_0x162f7c(0x188),'range':this[_0x162f7c(0x2ce)](_0x1c1184,_0x47337c),'sheetID':_0x1c1184,'color':this[_0x162f7c(0x33b)][_0x162f7c(0x1ac)](_0x2d3234),'selection':_0x29cd59},_0x39d5fc=this['cursorInfo'];_0x39d5fc[_0x162f7c(0x1b1)](_0x2d3234,_0x5d76fe),this['_cursorInfo$'][_0x162f7c(0x25c)](_0x39d5fc);}[_0x170c79(0x146)](_0x364c7c){const _0x51b0ad=_0x170c79,{memberID:_0x3553bb}=_0x364c7c['data'],_0x2e5fb2=this[_0x51b0ad(0x204)];_0x2e5fb2[_0x51b0ad(0x16f)](_0x3553bb),this[_0x51b0ad(0x35a)][_0x51b0ad(0x25c)](_0x2e5fb2);}[_0x170c79(0x2ce)](_0xacde6,_0x1e1bc3){const _0xade978=_0x170c79;var _0x303712,_0x63d2e0;const _0xa3ae5a=(_0x63d2e0=(_0x303712=this[_0xade978(0x222)][_0xade978(0x1fd)](this[_0xade978(0x335)]))==null?void 0x0:_0x303712[_0xade978(0x2e4)](_0xacde6))==null?void 0x0:_0x63d2e0[_0xade978(0x1fe)]();return(_0xa3ae5a==null?void 0x0:_0xa3ae5a['find'](_0x23d528=>a['Rectangle'][_0xade978(0x11c)](_0x23d528,_0x1e1bc3)))||_0x1e1bc3;}['_onRefRangeChange'](){const _0x5894ee=_0x170c79,_0x49631b=new a[(_0x5894ee(0x27f))](),_0x33c7fa=vt(),_0xff348c=()=>{const _0x2824c2=_0x5894ee;_0x49631b[_0x2824c2(0x2dc)]();const _0x392133=(_0x5d492a,_0x16d739,_0x4c73c0,_0x43b9e8)=>{const _0x5bd122=_0x2824c2;let _0x3842ce=[];switch(_0x5d492a['id']){case I['EffectRefRangId'][_0x5bd122(0x153)]:{_0x3842ce=I['handleDeleteRangeMoveLeft'](_0x5d492a,_0x43b9e8);break;}case I[_0x5bd122(0x227)][_0x5bd122(0xfb)]:{_0x3842ce=I[_0x5bd122(0x1ef)](_0x5d492a,_0x43b9e8);break;}case I['EffectRefRangId'][_0x5bd122(0x336)]:{_0x3842ce=I[_0x5bd122(0xff)](_0x5d492a,_0x43b9e8);break;}case I['EffectRefRangId'][_0x5bd122(0x229)]:{_0x3842ce=I[_0x5bd122(0x32f)](_0x5d492a,_0x43b9e8);break;}case I[_0x5bd122(0x227)][_0x5bd122(0x17c)]:{_0x3842ce=I[_0x5bd122(0x24e)](_0x5d492a,_0x43b9e8);break;}case I[_0x5bd122(0x227)]['InsertRowCommandId']:{_0x3842ce=I['handleInsertRow'](_0x5d492a,_0x43b9e8);break;}case I['EffectRefRangId'][_0x5bd122(0x2ec)]:{_0x3842ce=I[_0x5bd122(0x213)](_0x5d492a,_0x43b9e8);break;}case I['EffectRefRangId'][_0x5bd122(0x1c1)]:{_0x3842ce=I[_0x5bd122(0x15d)](_0x5d492a,_0x43b9e8);break;}case I['EffectRefRangId']['RemoveRowCommandId']:{_0x3842ce=I[_0x5bd122(0x19f)](_0x5d492a,_0x43b9e8);break;}}const _0x494a7c=I[_0x5bd122(0x2ae)](_0x3842ce,_0x43b9e8),_0x2d737d=this[_0x5bd122(0x204)]['get'](_0x16d739);if(_0x2d737d&&_0x494a7c){const _0x3ba8ec={..._0x2d737d,'range':_0x494a7c};this[_0x5bd122(0x204)][_0x5bd122(0x1b1)](_0x16d739,_0x3ba8ec),_0x33c7fa(()=>{const _0x1c1c75=_0x5bd122,_0x1c7993=this[_0x1c1c75(0x2b3)][_0x1c1c75(0x2de)](_0x494a7c,_0x1e0e6b=>(_0x1c7993[_0x1c1c75(0x2dc)](),_0x392133(_0x1e0e6b,_0x16d739,_0x4c73c0,_0x494a7c)));_0x49631b[_0x1c1c75(0x16d)](_0x1c7993);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x2824c2(0x292)]((_0x337ad0,_0x3fb367)=>{const _0x1ed87f=_0x2824c2,{range:_0x2f0869,sheetID:_0x5444d5}=_0x337ad0,_0x2ce63d=this[_0x1ed87f(0x2b3)][_0x1ed87f(0x2de)](_0x2f0869,_0x398a39=>(_0x2ce63d[_0x1ed87f(0x2dc)](),_0x392133(_0x398a39,_0x3fb367,_0x5444d5,_0x2f0869)));_0x49631b['add'](_0x2ce63d);});};this[_0x5894ee(0x276)](a[_0x5894ee(0x170)](this[_0x5894ee(0x35a)][_0x5894ee(0x18f)](()=>{_0xff348c();})));}[_0x170c79(0x21e)](){const _0x39d15e=_0x170c79;var _0x286297,_0x3a742f;if(this[_0x39d15e(0x18c)]=!0x0,((_0x286297=this[_0x39d15e(0x222)][_0x39d15e(0x295)]())==null?void 0x0:_0x286297['getUnitId']())!==this['unitID'])return;const _0x1776de=(_0x3a742f=this[_0x39d15e(0x1f9)]['get'](I[_0x39d15e(0x1a6)])[_0x39d15e(0x207)]())==null?void 0x0:_0x3a742f[0x0],_0x1160bb=this[_0x39d15e(0x222)][_0x39d15e(0x22e)](a['UniverInstanceType'][_0x39d15e(0x300)])['getActiveSheet']();_0x1776de&&_0x1160bb&&this['_updateLocalCursor'](_0x1160bb[_0x39d15e(0x198)](),_0x1776de);}[_0x170c79(0xeb)](){const _0xff89af=_0x170c79;this[_0xff89af(0x18c)]=!0x1;}};me=dt([A(0x2,a[_0x170c79(0x27c)](a[_0x170c79(0x2e0)])),A(0x3,a['Inject'](Ce)),A(0x4,a[_0x170c79(0x27c)](u[_0x170c79(0x1d8)])),A(0x5,a[_0x170c79(0x126)]),A(0x6,a[_0x170c79(0x2c7)]),A(0x7,a['Inject'](I[_0x170c79(0x133)]))],me);var mt=Object[_0x170c79(0x1b3)],It=Object['getOwnPropertyDescriptor'],gt=(_0x11ea65,_0x10f2b8,_0x218e86,_0x18d2fa)=>{for(var _0x5956ca=_0x18d2fa>0x1?void 0x0:_0x18d2fa?It(_0x10f2b8,_0x218e86):_0x10f2b8,_0x306d75=_0x11ea65['length']-0x1,_0x19bba5;_0x306d75>=0x0;_0x306d75--)(_0x19bba5=_0x11ea65[_0x306d75])&&(_0x5956ca=(_0x18d2fa?_0x19bba5(_0x10f2b8,_0x218e86,_0x5956ca):_0x19bba5(_0x5956ca))||_0x5956ca);return _0x18d2fa&&_0x5956ca&&mt(_0x10f2b8,_0x218e86,_0x5956ca),_0x5956ca;},ne=(_0x448ab8,_0x11ca48)=>(_0x3c475b,_0x33caaf)=>_0x11ca48(_0x3c475b,_0x33caaf,_0x448ab8);let x=class extends a[_0x170c79(0x20f)]{constructor(_0x15b49e,_0x2c5702,_0x8cddba){const _0x433cb9=_0x170c79;super(),_(this,_0x433cb9(0xe7),new Map()),_(this,_0x433cb9(0x23f),new S['Subject']()),(this[_0x433cb9(0x222)]=_0x15b49e,this[_0x433cb9(0x1f9)]=_0x2c5702,this[_0x433cb9(0x13e)]=_0x8cddba,this[_0x433cb9(0x24d)]());}['dispose'](){const _0x340e95=_0x170c79;super[_0x340e95(0x2dc)](),this['_entityInit$'][_0x340e95(0x209)](),this[_0x340e95(0xe7)][_0x340e95(0x292)](_0x5a007f=>_0x5a007f['dispose']());}[_0x170c79(0x111)](_0x39b74b){const _0x315989=_0x170c79;return this[_0x315989(0xe7)]['has'](_0x39b74b)?this[_0x315989(0xe7)][_0x315989(0x1fb)](_0x39b74b)['cursorInfo$']:this['_entityInit$']['pipe'](S[_0x315989(0x35d)](_0x4a3a49=>_0x4a3a49['unitID']===_0x39b74b),S[_0x315989(0x1cb)](_0x277e5a=>_0x277e5a[_0x315989(0x1b2)]));}['_init'](){const _0xc2f4fc=_0x170c79;this[_0xc2f4fc(0x222)][_0xc2f4fc(0x344)](a['UniverInstanceType'][_0xc2f4fc(0x300)])[_0xc2f4fc(0x238)](S[_0xc2f4fc(0x1f1)](this[_0xc2f4fc(0x2d9)]))['subscribe'](async _0x53c91d=>{const _0x3a32ee=_0xc2f4fc,_0x782a21=_0x53c91d[_0x3a32ee(0x30b)](),_0x4a740a=await this[_0x3a32ee(0x235)](_0x782a21);this[_0x3a32ee(0x23f)][_0x3a32ee(0x25c)](_0x4a740a),this[_0x3a32ee(0xe7)][_0x3a32ee(0x1b1)](_0x782a21,_0x4a740a);}),this[_0xc2f4fc(0x222)][_0xc2f4fc(0x344)](a['UniverInstanceType'][_0xc2f4fc(0x1b9)])[_0xc2f4fc(0x238)](S['takeUntil'](this[_0xc2f4fc(0x2d9)]))[_0xc2f4fc(0x238)](S['filter'](_0x2d291a=>!_0x2d291a[_0xc2f4fc(0x30b)]()[_0xc2f4fc(0x278)]('__')))[_0xc2f4fc(0x18f)](async _0x19008a=>{const _0x19959e=_0xc2f4fc,_0x26a236=_0x19008a[_0x19959e(0x30b)](),_0x320ddf=await this[_0x19959e(0x2ab)](_0x26a236);this[_0x19959e(0x23f)][_0x19959e(0x25c)](_0x320ddf),this[_0x19959e(0xe7)]['set'](_0x26a236,_0x320ddf);}),S[_0xc2f4fc(0x1f7)](this['_univerInstanceService'][_0xc2f4fc(0x1da)](a[_0xc2f4fc(0x15c)]['UNIVER_DOC']),this[_0xc2f4fc(0x222)]['getTypeOfUnitDisposed$'](a[_0xc2f4fc(0x15c)][_0xc2f4fc(0x300)]))['pipe'](S[_0xc2f4fc(0x1f1)](this['dispose$']))[_0xc2f4fc(0x18f)](_0xa2d1f5=>{const _0x453002=_0xc2f4fc,_0x17c625=_0xa2d1f5['getUnitId'](),_0x3a4586=this[_0x453002(0xe7)][_0x453002(0x1fb)](_0x17c625);_0x3a4586&&(_0x3a4586[_0x453002(0x2dc)](),this[_0x453002(0xe7)][_0x453002(0x16f)](_0x17c625));});}async[_0x170c79(0x235)](_0x4d4224){const _0x1777b5=_0x170c79,_0xc255c7=await this[_0x1777b5(0x13e)][_0x1777b5(0x33f)](_0x4d4224),_0x445846=this[_0x1777b5(0x1f9)][_0x1777b5(0x318)](me,_0x4d4224,_0xc255c7);return _0x445846[_0x1777b5(0xe4)](),_0x445846;}async['_startDocCollabCursor'](_0x300a9b){const _0x45894f=_0x170c79,_0x3b4641=await this[_0x45894f(0x13e)][_0x45894f(0x33f)](_0x300a9b),_0x3f0d21=this[_0x45894f(0x1f9)][_0x45894f(0x318)](ve,_0x300a9b,_0x3b4641);return _0x3f0d21[_0x45894f(0xe4)](),_0x3f0d21;}};x=gt([ne(0x0,a[_0x170c79(0x126)]),ne(0x1,a[_0x170c79(0x27c)](a[_0x170c79(0x2e0)])),ne(0x2,a[_0x170c79(0x27c)](u[_0x170c79(0x329)]))],x);const V=0x14,Pe=0xc8,ie=0x4,pt=0x5;function Ct(_0x3eca0b,_0x3cda31){const _0x48436a=_0x170c79;let {radius:_0xfc2aac,width:_0x30aa74,height:_0x261eac}=_0x3cda31;_0xfc2aac=_0xfc2aac!=null?_0xfc2aac:0x0,_0x30aa74=_0x30aa74!=null?_0x30aa74:0x1e,_0x261eac=_0x261eac!=null?_0x261eac:0x1e;let _0xed8473=0x0,_0x2242c4=0x0,_0x8d958f=0x0;_0xed8473=_0x2242c4=_0x8d958f=Math['min'](_0xfc2aac,_0x30aa74/0x2,_0x261eac/0x2),_0x3eca0b[_0x48436a(0x24f)](),_0x3eca0b['moveTo'](_0xed8473,0x0),_0x3eca0b[_0x48436a(0x26c)](_0x30aa74-_0x2242c4,0x0),_0x3eca0b[_0x48436a(0x25b)](_0x30aa74-_0x2242c4,_0x2242c4,_0x2242c4,Math['PI']*0x3/0x2,0x0,!0x1),_0x3eca0b[_0x48436a(0x26c)](_0x30aa74,_0x261eac-_0x8d958f),_0x3eca0b[_0x48436a(0x25b)](_0x30aa74-_0x8d958f,_0x261eac-_0x8d958f,_0x8d958f,0x0,Math['PI']/0x2,!0x1),_0x3eca0b['lineTo'](0x0,_0x261eac),_0x3eca0b['lineTo'](0x0,_0xed8473),_0x3eca0b[_0x48436a(0x25b)](_0xed8473,_0xed8473,_0xed8473,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3eca0b['closePath'](),_0x3cda31['fill']&&(_0x3eca0b[_0x48436a(0x139)](),_0x3eca0b[_0x48436a(0x2c2)]=_0x3cda31[_0x48436a(0x12e)],_0x3cda31['fillRule']===_0x48436a(0x164)?_0x3eca0b[_0x48436a(0x12e)](_0x48436a(0x164)):_0x3eca0b['fill'](),_0x3eca0b[_0x48436a(0x104)]());}function _0x1dab(){const _0x5c8573=['SheetSkeletonManagerService','_render','HTTPService','currentSkeleton$','createIdentifier','_imageIoService','asObservable','fillText','_instanceService','_getSheetObject','LICENSE_DISTRO_REJECTED','InsertRangeMoveRightCommandId','_logService','transformByState','session.will-retry','current','@univerjs/network','ENSURE_SNAPSHOT_EXECUTION','disableLocalCache','_range','COMPLETION_FINISHED','sheetID','jsx','Unknown\x20user','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','SNAPSHOT_INVALID_SNAPSHOT','CollaborationStatus','_online','backgroundColor','forwardRef','subscribe','_anchor','AWAITING','off-line-single_clip0_910_343','sessionStatus$','url(#on-line-single_clip0_910_349)','unitId','_urlService','roomMembers$','getSheetId','USERS_LEAVE','_assignedColors','onRendered','min','DocSelectionManagerService','subunit','handleIRemoveRow','useCallback','6123IJurtb','UniverCollaborationClientPlugin','11yMNZbX','mutations','endColumn','SheetsSelectionsService','onStarting','column','type','split','_transformUndoRedoStack','assignAColorForMemberID','Plugin','toString','SheetCollabCursorShape','some','set','cursorInfo$','defineProperty','_roomMembers$','from','RemoteUniscriptService','online','onlineStatusIcon','UNIVER_DOC','textRanges','sheetId','jsxs','LICENSE_MAX_UNITS_EXCEEDED','Tools','isArray','_initStatusComponent','RemoveColCommandId','setShapeProps','M0\x200H16V16H0z','focused$','@univerjs/docs','clearInterval','_config','NO_OTHER_CLIENTS_EDITING','gold400','collab-text-range-','switchMap','parse','registerComponent','unload','_cursorShapes','key','makeDirty','WebURLService','BuiltInUIPart','registerBeforeClose','body','_collaborationUIEventService','collaboration.closeRoom','MemberService','_uiPartsService','getTypeOfUnitDisposed$','runId','show','@univerjs/design','1em','setInterval','getColor','_initEvent','getCellPositionByOffset','black','@univerjs/ui','CONNECTOR_DATA_TOO_LARGE','_scene','className','IBeforeCloseService','measureText','round','saveOfflineData','loadUnit','42BOSCCN','_setupSubUnitSync','handleDeleteRangeMoveUp','onMouseMove','takeUntil','registerDependencies','IDocClipboardService','SetTextSelectionsOperation','_document','getLocalCacheKey','merge','_configService','_injector','useDependency','get','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','getUniverSheetInstance','getMergeData','apply','#FFF','Rect','_updateSubUnitFromURLParams','onlineStatus','cursorInfo','SUBMIT_CHANGESET_TIMEOUT','_transformHistoryAndStateStack','getCurrentSelections','hovered','complete','SetWorksheetActivateCommand','xlink:href','_status$','getDocRanges','deepClone','RxDisposable','ILocalCacheService','JOIN_ROOM_FAILED','ONLINE','handleMoveRange','_updateLocalCursor','_getAnchorBounding','@univerjs-pro/collaboration-client','setAlpha','[CollaborationDataLoaderController]','isEditing','@univerjs/engine-formula','getMember','replaceState','LOCAL_CACHE_INTERVAL_KEY','_toggleOnline','getParam','Warning','svg','_univerInstanceService','_textBubble','setStateCache','NOT_FOUND','YUUMI_URL_COL_OUT_OF_RANGE','EffectRefRangId','href','InsertRangeMoveDownCommandId','_initCommandExecutedListener','@univerjs/drawing','_dataLoaderService','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','getCurrentUnitForType','push','prototype','_lastPointer','#fff','send','Tooltip','_startSheetCollabCursor','setUndoRedoMutationParamsCache','SetSelectionsOperation','pipe','ALREADY_EXISTS','collab-client.tooltip.reconnect','_name','IConfigService','getCurrent','color','_entityInit$','INotificationService','ReactCurrentOwner','_transformService','_anchorDot','_handleHeartbeatEvent','range','getCoordByCell','_drawTextRange','transformRemoteChangeset','CollaborationController','collab-rect-range-','_setupBeforeClosingHandler','_color','_init','handleInsertRangeMoveRight','beginPath','COLORS','getConfig','storage','_getSaveTimeout','LocaleService','div','selection','12056VFIQSB','onTransformChange$','CollaborationStatusDisplay','none','arc','next','row','getRangePointData','defaultProps','APPLY_NON_SEQUENTIAL_REVISION','pushState','_hover','then','concat','TEXT_RANGE_LAYER_INDEX','_handleLeaveEvent','_eventUnsubscribe','subscribeEvent','actions','TRANSFORM_CHANGE_OBSERVABLE_TYPE','eventID','lineTo','_drawRectRange','_onCursorUpdate','distinctUntilChanged','executionId','toStringTag','9492KuqJsB','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','serializeRangeWithSheet','UnitStatus','disposeWithMe','hasOwnProperty','startsWith','undoState','_backgroundColor','has','Inject','ILogService','111EzDfOe','DisposableCollection','_initEntityListener','resize','ranges','exhaustSavingTask','@univerjs/engine-render','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_initResize','_transformPreviousActiveRange','_hideTimer','exports','skeleton','_docTransformStateCacheService','UNAUTHENTICATED','FromArray','function','SYNCED','CollaborationUIEventId','bottom','forEach','PERMISSION_DENIED','registerRenderModule','getFocusedUnit','UNRECOGNIZED','_docTransformSelectionsService','Module','_cursors','onlineStatusTitle','history','useObservable','_drawAnchor','DocStateChangeManagerService','_renderManagerService','1722760qxcraE','Vector2','DataLoaderService','uni.network.url-service','TEXT','react.element','subUnitId','CLOSE_ROOM','createElement','Shape','call','_startDocCollabCursor','debounceTime','endRow','runRefRangeMutations','Workbook','mapTo','OnLineSingle','urlChange$','_refRangeService','getSkeleton','APPLY_PERMISSION_DENIED','post','getVpScrollXYInfoByPosToVp','executeCommand','_cachedData','getUnhiddenWorksheets','collab-text-anchor-','_clearOtherTimers','_cursor','editingUnit','getAncestorScale','IURLService','collabStatus.synced','fillStyle','activeSheet$','778462PgVHRn','rgba(255,\x20255,\x20255,\x200.01)','_removeClearOtherTimer','ICommandService','flatMap','288592HkWbQn','IRenderManagerService','_updateURLWithCurrentState','imageSourceType','setConfig','_getMergeRange','getValue','Fragment','unshift','width','/run/','onLocalMutation','APPLY_DUPLICATED','triggerDblclick','setParam','DOC_RANGE_TYPE','dispose$','debug','getRenderById','dispose','fromEvent','registerRefRange','@univerjs/core','Injector','roomMembers','IMessageService','_heartbeatTimer','getSheetBySheetId','purple300','ITransformService','_disabled','transformIMECache','CHANGESET_REVISION_CONFILICT','_saveCache','Optional','MoveRangeCommandId','location','univer-online-status-icon','m2Prime','UniverIcon','_id','YUUMI_SUBSCRIPTION_NOT_FOUND','_themeService','_session','_handleEvent','getOwnPropertyDescriptor','string','HEADER_MENU','children','7263730dXZqVP','collabCursorState$','0\x200\x2016\x2016','currentColor','includes','rxjs','UNIVER_SHEET','combineLatest','_httpService','onCommandExecuted','APPLY_REVISION_CONFILICT','session.connection-failed','event$','getItem','whenReady','LICENSE_EXPORT_SIZE_EXCEEDED','useRef','getUnitId','getStateCache','_docStateChangeManagerService','length','@univerjs-pro/collaboration','object','name','UniverCollaborationClientUIPlugin','newValue','isTransformMutationsWithChangesetSuccess','docStateChange$','deserializeRangeWithSheet','font','createInstance','tag','ACTIVE_UNIT_EVENT_CHANNEL','_selfUnitIDs','text','NodePositionConvertToRectRange','m1Prime','Disposable','values','reconnect','YUUMI_RATE_OVER_LIMIT','MessageType','entityInit$','_onRefRangeChange','transformStateCache','_docSkeletonManagerService','_draw','CollaborationSessionService','number','_collaborationController','addHandlerCallback','OFFLINE','status$','handleInsertRangeMoveDown','IUIPartsService','_unitOnClients','getViewport','_docSyncEditingCollabCursorService','_labelPosition','unitID','InsertColCommandId','defs','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','MUTATION','session.collaboration-timeout','_colorAssignService','RECT','displayName','_syncEditingCollabCursorService','requireSession','getMemberID','univer-offline','CollaborationDataLoaderController','FETCH_MISS','getTypeOfUnitAdded$','_localCacheService','TOO_MANY_REQUESTS','setItem','onPointerEnter$','_collabCursorController','generateRandomId','ColorKit','clearTimeout','all','DocCollaborationEntity','collabStatus.fetchMiss','_updateCollabCursors','throttleTime','rxjs/operators','getOffsetConfig','clipPath','SessionStatus','_collabCursorState$','_shapes','PENDING','red300','_cursorInfo$','_memberService','DocSkeletonManagerService','filter','SOCKET_FAILED_RETRY','onPointerLeave$','doc.mutation.rich-text-editing','findNodePositionByCharIndex','defIds','isTransformMutationFailure','init','idSuffix','DesktopCollaborationStatusDisplayController','_entities','data','LICENSE_IMPORT_SIZE_EXCEEDED','drawWith','_toggleOffline','extend','params','INTERNAL_ERROR','redoState','_notificationService','transform','ref','syncEditingCollabCursor','react','url(#$1','getUndoRedoMutationParamsCache','CollaborationEvent','_unitStatus','_docClipboardService','2ivVbjK','DeleteRangeMoveUpCommandId','engine','_localeService','CONFLICT','handleInsertCol','icon','use','_handleJoinEvent','OTHER_CLIENTS_EDITING','restore','_registerRenderDependencies','_docSkeleton','labelPosition','collabStatus.offline','on-line-single_clip0_910_349','unsubscribe','error','currentTheme$','@univerjs/sheets','collabStatus.syncing','_commandService','_revisionService','getCollabCursors$','collaboration-client-ui.config','for','enableLocalCache','_getScale','source','setActiveRange','UNDEFINED','on-line-single','addEventListener','BehaviorSubject','contains','NOT_COLLAB','_colorIndex','SetDocZoomRatioOperation','INVALID_ARGUMENT','_sheetSkeletonManagerService','RevisionService','_saveTaskMap','getCollabEntity$','replaceDocRanges','IUniverInstanceService','_docTransformIMECacheService','offline','18MawuGy','_send','toRgbString','url(#off-line-single_clip0_910_343)','debounce','fill','DocIMEInputManagerService','size','jiqing500','_initStatusListener','RefRangeService','getRelativeToViewportCoord','height','memberID','transformMutation','transformSelections','save','_ensureSubject','_handleHover','WebSocketService','Error','_collabSessionService','_scheduleClearOtherTimer','_removeCollabCursors','random','with','@univerjs/sheets-ui','map','updateOfflineData','_onCursorDelete','563129agNQOy','IRemoteInstanceService','_localStorageService','getActiveSheet','_context','collabStatus.conflict','CollaborationUIEventService','touchDependencies','colorChannel1','addObject','blue400','symbol','DeleteRangeMoveLeftCommandId','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','indexOf','_messageService','_refreshCollabCursors','getUnitStatus$','override','searchParams','assign','UniverInstanceType','handleIRemoveCol','unit','isActive','onPointerMove$','entries','UPDATE_CURSOR','path','evenodd','selections','univerjs-icon\x20univerjs-icon-','_beforeCloseService','ILocalStorageService','_hovered','attrs','_scheduleSaving','APPLY_REJECT','add','hide','delete','toDisposable'];_0x1dab=function(){return _0x5c8573;};return _0x1dab();}function _0xc691(_0x57e513,_0x64bf31){const _0x1dab5c=_0x1dab();return _0xc691=function(_0xc691be,_0x3eb47e){_0xc691be=_0xc691be-0xe3;let _0x4a9e43=_0x1dab5c[_0xc691be];return _0x4a9e43;},_0xc691(_0x57e513,_0x64bf31);}class ee extends p[_0x170c79(0x2a9)]{constructor(_0x1e6250,_0x184cd3){const _0x9c451=_0x170c79;super(_0x1e6250,_0x184cd3),_(this,_0x9c451(0x23e)),_(this,'text'),(this[_0x9c451(0x23e)]=_0x184cd3==null?void 0x0:_0x184cd3[_0x9c451(0x23e)],this[_0x9c451(0x31c)]=_0x184cd3==null?void 0x0:_0x184cd3[_0x9c451(0x31c)]);}static[_0x170c79(0xea)](_0x2fee55,_0x2d3673){const _0xfc1d36=_0x170c79,{text:_0x4fb54a,color:_0x1ee90a}=_0x2d3673;_0x2fee55[_0xfc1d36(0x139)](),_0x2fee55[_0xfc1d36(0x317)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x32f95c=_0x2fee55['measureText'](_0x4fb54a)[_0xfc1d36(0x2d2)],_0xf4df59=Math[_0xfc1d36(0x19c)](_0x32f95c+0x2*ie,Pe);Ct(_0x2fee55,{'height':V,'radius':0x4,'width':_0xf4df59,'fill':_0x1ee90a,'evented':!0x1}),_0x2fee55['fillStyle']=_0xfc1d36(0x200);const _0x12bcbb=ie,_0x2a846c=V-pt,_0x1aed40=Pe-0x2*ie;if(_0x32f95c>_0x1aed40){let _0x49be8f='',_0x3fcd46=0x0;for(const _0x2837dd of _0x4fb54a){const _0x1da761=_0x2fee55[_0xfc1d36(0x1e9)](_0x2837dd)[_0xfc1d36(0x2d2)];if(_0x3fcd46+_0x1da761<=_0x1aed40-_0x2fee55[_0xfc1d36(0x1e9)]('...')['width'])_0x49be8f+=_0x2837dd,_0x3fcd46+=_0x1da761;else{_0x49be8f+='...';break;}}_0x2fee55[_0xfc1d36(0x178)](_0x49be8f,_0x12bcbb,_0x2a846c);}else _0x2fee55[_0xfc1d36(0x178)](_0x4fb54a,_0x12bcbb,_0x2a846c);_0x2fee55[_0xfc1d36(0x104)]();}[_0x170c79(0x328)](_0x300f90){const _0x470346=_0x170c79;ee[_0x470346(0xea)](_0x300f90,this);}}const re=_0x170c79(0x2bb),bt=_0x170c79(0x1ca),Et=_0x170c79(0x24a),H=0x6,Rt=1.5,oe=0x4,Tt=1.5,Ot=_0x170c79(0x2c5);class Me{constructor(_0x113db8,_0x3c40c9,_0x523ac3,_0x2c3e57){const _0x23f457=_0x170c79;_(this,_0x23f457(0x357),[]),_(this,_0x23f457(0x190),null),_(this,_0x23f457(0x223),null),_(this,_0x23f457(0x243),null),_(this,'_hideTimer',null),_(this,_0x23f457(0x267),null),(this[_0x23f457(0x2bd)]=_0x113db8,this['_scene']=_0x3c40c9,this[_0x23f457(0x106)]=_0x523ac3,this[_0x23f457(0x1f5)]=_0x2c3e57,this[_0x23f457(0x172)]());}set[_0x170c79(0x262)](_0x5981ea){const _0x23a15f=_0x170c79;_0x5981ea?(this[_0x23a15f(0x243)]&&this[_0x23a15f(0x243)][_0x23a15f(0x16e)](),this[_0x23a15f(0x223)]&&this[_0x23a15f(0x223)][_0x23a15f(0x1dc)]()):(this[_0x23a15f(0x243)]&&this[_0x23a15f(0x243)][_0x23a15f(0x1dc)](),this[_0x23a15f(0x223)]&&this[_0x23a15f(0x223)][_0x23a15f(0x16e)]());}[_0x170c79(0x2dc)](){const _0x3087f5=_0x170c79;for(const _0x561058 of this['_shapes'])_0x561058[_0x3087f5(0x2dc)]();this['_textBubble']&&this[_0x3087f5(0x223)][_0x3087f5(0x2dc)](),this['_anchorDot']&&this[_0x3087f5(0x243)][_0x3087f5(0x2dc)](),this[_0x3087f5(0x190)]&&this[_0x3087f5(0x190)][_0x3087f5(0x2dc)](),this[_0x3087f5(0x267)]&&this[_0x3087f5(0x267)]();}[_0x170c79(0x172)](){const _0x50867c=_0x170c79;var _0x1afe08;const {_docSkeleton:_0x28f98e,_document:_0x3d65cf}=this,{color:_0x32df88,name:_0x25af57,ranges:_0x48be96}=this[_0x50867c(0x2bd)],_0x2719c3=_0x3d65cf[_0x50867c(0x353)](),{docsLeft:_0x4cd5b3,docsTop:_0x386f68}=_0x2719c3,_0x540958=new b['NodePositionConvertToCursor'](_0x2719c3,_0x28f98e);for(const {startOffset:_0xe5d617,endOffset:_0x54e88c,rangeType:_0x1376e2,segmentId:_0x2c84ca,segmentPage:_0x2e4d68,collapsed:_0x39091c,isActive:_0x1a7dfd}of _0x48be96){const _0x42113a=_0x28f98e[_0x50867c(0x361)](_0xe5d617,!0x0,_0x2c84ca,_0x2e4d68);let _0x274a6d=_0x28f98e[_0x50867c(0x361)](_0x54e88c,!0x0,_0x2c84ca,_0x2e4d68);if(_0x274a6d==null&&(_0x274a6d=_0x28f98e[_0x50867c(0x361)](_0x54e88c-0x1,!0x1,_0x2c84ca,_0x2e4d68)),_0x1a7dfd){const {contentBoxPointGroup:_0x47672f}=_0x540958['getRangePointData'](_0x274a6d,_0x274a6d);if(_0x47672f[_0x50867c(0x30e)]===0x0)continue;this[_0x50867c(0x29d)](_0x32df88,_0x47672f,_0x4cd5b3,_0x386f68,_0x25af57),this[_0x50867c(0x267)]=this[_0x50867c(0x13b)]();}if(_0x42113a&&_0x274a6d){if(_0x1376e2===a['DOC_RANGE_TYPE'][_0x50867c(0x33c)]){const _0x19af7b=new b[(_0x50867c(0x31d))](_0x2719c3,_0x28f98e),{pointGroup:_0x50d0d9}=(_0x1afe08=_0x19af7b[_0x50867c(0x25e)](_0x42113a,_0x274a6d))!=null?_0x1afe08:{};if(_0x50d0d9==null||_0x50d0d9['length']===0x0)continue;this['_drawRectRange'](_0x32df88,_0x50d0d9,_0x4cd5b3,_0x386f68);}else{if(!_0x39091c){const {borderBoxPointGroup:_0x541f70}=_0x540958[_0x50867c(0x25e)](_0x42113a,_0x274a6d);if(_0x541f70[_0x50867c(0x30e)]===0x0)continue;this[_0x50867c(0x247)](_0x32df88,_0x541f70,_0x4cd5b3,_0x386f68);}}}}}[_0x170c79(0x29d)](_0x39eacb,_0x188051,_0x358594,_0x57e33f,_0x5df56a){const _0x46d1ff=_0x170c79,_0x73be2e=this[_0x46d1ff(0x215)](_0x188051),{left:_0x3ea6e5,top:_0x3485b8,height:_0x1c9bbd}=_0x73be2e,_0x10167d=this[_0x46d1ff(0x115)](),_0x1157be=Tt/_0x10167d,_0x25f2b4=new p[(_0x46d1ff(0x201))](re+a[_0x46d1ff(0x1be)][_0x46d1ff(0x34a)](H),{'left':_0x3ea6e5+_0x358594-_0x1157be,'top':_0x3485b8+_0x57e33f,'height':_0x1c9bbd,'width':Rt,'fill':_0x39eacb||p[_0x46d1ff(0x1e0)](a[_0x46d1ff(0x250)][_0x46d1ff(0x1e3)],0x0),'strokeWidth':_0x1157be,'stroke':Ot,'evented':!0x0});this['_anchor']=_0x25f2b4,this[_0x46d1ff(0x1e6)]['addObject'](_0x25f2b4,b[_0x46d1ff(0x265)]);const _0x2686a7=new p['Rect'](re+a['Tools'][_0x46d1ff(0x34a)](H),{'left':_0x3ea6e5+_0x358594-_0x1157be,'top':_0x3485b8+_0x57e33f-oe/0x2,'height':oe,'width':oe,'fill':_0x39eacb||p[_0x46d1ff(0x1e0)](a[_0x46d1ff(0x250)][_0x46d1ff(0x1e3)],0x0),'strokeWidth':0x0,'stroke':_0x39eacb||p['getColor'](a[_0x46d1ff(0x250)]['black'],0x0),'evented':!0x1});this[_0x46d1ff(0x243)]=_0x2686a7,this[_0x46d1ff(0x1e6)][_0x46d1ff(0x150)](_0x2686a7,b[_0x46d1ff(0x265)]);const _0x57dca3=new ee(re+a[_0x46d1ff(0x1be)][_0x46d1ff(0x34a)](H),{'left':_0x3ea6e5+_0x358594-_0x1157be,'top':_0x3485b8+_0x57e33f-V,'text':_0x5df56a,'color':_0x39eacb});this['_textBubble']=_0x57dca3,this[_0x46d1ff(0x1e6)][_0x46d1ff(0x150)](_0x57dca3,b[_0x46d1ff(0x265)]),this[_0x46d1ff(0x262)]=!0x1;}['_handleHover'](){const _0x1552d0=_0x170c79,_0xf6fa49=this[_0x1552d0(0x190)]['onPointerEnter$']['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x1d573f=this[_0x1552d0(0x190)][_0x1552d0(0x35f)][_0x1552d0(0x268)](()=>{const _0x554050=_0x1552d0;this[_0x554050(0x288)]&&clearTimeout(this[_0x554050(0x288)]),this['_hideTimer']=setTimeout(()=>{const _0x556dff=_0x554050;this[_0x556dff(0x262)]=!0x1;},0x7d0);});return()=>{const _0x105458=_0x1552d0;_0xf6fa49[_0x105458(0x10a)](),_0x1d573f[_0x105458(0x10a)]();};}[_0x170c79(0x247)](_0xe21c4c,_0x14edd2,_0x2f7591,_0x572606){const _0x42e1b7=_0x170c79,_0x2b363f=new a[(_0x42e1b7(0x34b))](_0xe21c4c)[_0x42e1b7(0x217)](0.2)[_0x42e1b7(0x12b)](),_0x3774d6=new p['RegularPolygon'](bt+a['Tools'][_0x42e1b7(0x34a)](H),{'pointsGroup':_0x14edd2,'fill':_0x2b363f||p[_0x42e1b7(0x1e0)](a[_0x42e1b7(0x250)]['black'],0.2),'left':_0x2f7591,'top':_0x572606,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x42e1b7(0x357)]['push'](_0x3774d6),this[_0x42e1b7(0x1e6)][_0x42e1b7(0x150)](_0x3774d6,b[_0x42e1b7(0x265)]);}[_0x170c79(0x26d)](_0x11d5f1,_0x372b29,_0x4a572b,_0x5cf5d7){const _0x129213=_0x170c79,_0x1ea159=new a[(_0x129213(0x34b))](_0x11d5f1)[_0x129213(0x217)](0.2)[_0x129213(0x12b)](),_0x3eda57=new p['RegularPolygon'](Et+a[_0x129213(0x1be)][_0x129213(0x34a)](H),{'pointsGroup':_0x372b29,'fill':_0x1ea159||p[_0x129213(0x1e0)](a[_0x129213(0x250)][_0x129213(0x1e3)],0.2),'left':_0x4a572b,'top':_0x5cf5d7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x129213(0x357)]['push'](_0x3eda57),this[_0x129213(0x1e6)]['addObject'](_0x3eda57,b[_0x129213(0x265)]);}['_getAnchorBounding'](_0x2d6f60){const _0x837058=_0x2d6f60[0x0],_0x15fb1a=_0x837058[0x0],_0x260fbf=_0x837058[0x2],{x:_0x157449,y:_0x3ffb38}=_0x15fb1a,{x:_0x54712e,y:_0x508d6f}=_0x260fbf;return{'left':_0x157449,'top':_0x3ffb38,'width':_0x54712e-_0x157449,'height':_0x508d6f-_0x3ffb38};}[_0x170c79(0x115)](){const _0x34d192=_0x170c79,{scaleX:_0x5a76ec,scaleY:_0x26f64b}=this[_0x34d192(0x1e6)][_0x34d192(0x2bf)]();return Math['max'](_0x5a76ec,_0x26f64b);}}var Dt=Object[_0x170c79(0x1b3)],Pt=Object[_0x170c79(0x2f6)],Mt=(_0xe30062,_0x212898,_0x558481,_0xcd6384)=>{for(var _0x337caa=_0xcd6384>0x1?void 0x0:_0xcd6384?Pt(_0x212898,_0x558481):_0x212898,_0x146c4c=_0xe30062['length']-0x1,_0x5d9c24;_0x146c4c>=0x0;_0x146c4c--)(_0x5d9c24=_0xe30062[_0x146c4c])&&(_0x337caa=(_0xcd6384?_0x5d9c24(_0x212898,_0x558481,_0x337caa):_0x5d9c24(_0x337caa))||_0x337caa);return _0xcd6384&&_0x337caa&&Dt(_0x212898,_0x558481,_0x337caa),_0x337caa;},G=(_0xeace6d,_0x4c709b)=>(_0x4febcf,_0x1a8515)=>_0x4c709b(_0x4febcf,_0x1a8515,_0xeace6d);let Ie=class extends a[_0x170c79(0x20f)]{constructor(_0x2b4663,_0x1c0314,_0x55f76e,_0x4d4be7,_0x4a57d1){const _0x1c4e7c=_0x170c79;super(),_(this,_0x1c4e7c(0x1cf),[]),_(this,_0x1c4e7c(0x299),[]),(this[_0x1c4e7c(0x14b)]=_0x2b4663,this[_0x1c4e7c(0x327)]=_0x1c0314,this[_0x1c4e7c(0x349)]=_0x55f76e,this[_0x1c4e7c(0x10f)]=_0x4d4be7,this[_0x1c4e7c(0x2f3)]=_0x4a57d1,this[_0x1c4e7c(0x24d)]());}[_0x170c79(0x24d)](){const _0xfa614c=_0x170c79,_0x10595b=this[_0xfa614c(0x14b)][_0xfa614c(0x195)],_0x51476f=this[_0xfa614c(0x327)];this[_0xfa614c(0x276)](S[_0xfa614c(0x301)]([this[_0xfa614c(0x349)][_0xfa614c(0x111)](_0x10595b),this[_0xfa614c(0x2f3)][_0xfa614c(0x10c)]])[_0xfa614c(0x238)]($[_0xfa614c(0x144)](([_0xcc1772,_0x35259d])=>({'skeleton':_0x51476f[_0xfa614c(0x2b4)](),'cursors':[..._0xcc1772[_0xfa614c(0x320)]()][_0xfa614c(0x2c8)](_0x4d2a71=>({..._0x4d2a71,'color':_0x35259d[_0x4d2a71[_0xfa614c(0x23e)]]}))})))[_0xfa614c(0x18f)](_0x14cb9a=>{const _0x42442c=_0xfa614c;if(this[_0x42442c(0x140)](),_0x14cb9a){const {skeleton:_0x570c9f,cursors:_0x1d8d2e}=_0x14cb9a;this[_0x42442c(0x350)](_0x570c9f,_0x1d8d2e);}})),this[_0xfa614c(0x286)](),this['_initCommandExecutedListener']();}[_0x170c79(0x350)](_0x1d596e,_0x61b457){const _0x411442=_0x170c79,{scene:_0x28d97f,mainComponent:_0x6aa199}=this[_0x411442(0x14b)],_0x29a168=_0x61b457['map'](_0xcad507=>new Me(_0xcad507,_0x28d97f,_0x1d596e,_0x6aa199));this[_0x411442(0x1cf)]=_0x29a168,this['_cursors']=_0x61b457;}['_refreshCollabCursors'](){const _0x4cccb5=_0x170c79;this[_0x4cccb5(0x140)]();const {scene:_0x373487,mainComponent:_0x2880a0}=this[_0x4cccb5(0x14b)],_0x39912a=this[_0x4cccb5(0x327)][_0x4cccb5(0x2b4)](),_0x13f375=this['_cursors'][_0x4cccb5(0x144)](_0xc79db4=>new Me(_0xc79db4,_0x373487,_0x39912a,_0x2880a0));this[_0x4cccb5(0x1cf)]=_0x13f375;}['_removeCollabCursors'](){const _0x2af817=_0x170c79;this[_0x2af817(0x1cf)][_0x2af817(0x292)](_0x59d82b=>_0x59d82b[_0x2af817(0x2dc)]()),this[_0x2af817(0x1cf)]=[];}[_0x170c79(0x22a)](){const _0x4e6158=_0x170c79,_0x4bb06a=[b[_0x4e6158(0x11f)]['id']];this[_0x4e6158(0x276)](this['_commandService']['onCommandExecuted'](_0x163ff4=>{const _0x2b155a=_0x4e6158;_0x4bb06a[_0x2b155a(0x2fe)](_0x163ff4['id'])&&_0x163ff4[_0x2b155a(0xed)][_0x2b155a(0x195)]===this[_0x2b155a(0x14b)]['unitId']&&this[_0x2b155a(0x157)]();}));}[_0x170c79(0x286)](){const _0x1b1d28=_0x170c79;this['disposeWithMe'](a['fromEventSubject'](this['_context'][_0x1b1d28(0xfc)][_0x1b1d28(0x258)])[_0x1b1d28(0x238)]($['filter'](_0x295898=>_0x295898[_0x1b1d28(0x1a9)]===p[_0x1b1d28(0x26a)][_0x1b1d28(0x281)]),$[_0x1b1d28(0x351)](0x10))[_0x1b1d28(0x18f)](()=>{this['_refreshCollabCursors']();}));}};Ie=Mt([G(0x1,a[_0x170c79(0x27c)](X[_0x170c79(0x35c)])),G(0x2,a[_0x170c79(0x27c)](x)),G(0x3,a[_0x170c79(0x2c7)]),G(0x4,a['Inject'](a['ThemeService']))],Ie);const Ut=0x1,Nt=1.5;class je extends p[_0x170c79(0x2a9)]{constructor(_0x4832a5,_0x595600){const _0x4fc0a7=_0x170c79;super(_0x4832a5,_0x595600),_(this,_0x4fc0a7(0x24c)),_(this,_0x4fc0a7(0x169),!0x1),_(this,_0x4fc0a7(0x184)),_(this,_0x4fc0a7(0x23b),''),_(this,_0x4fc0a7(0x334),'top'),_(this,_0x4fc0a7(0x27a)),(_0x595600&&this[_0x4fc0a7(0x1c2)](_0x595600),this[_0x4fc0a7(0x348)]['subscribeEvent'](()=>this[_0x4fc0a7(0x1c2)]({'hovered':!0x0})),this[_0x4fc0a7(0x35f)][_0x4fc0a7(0x268)](()=>this[_0x4fc0a7(0x1c2)]({'hovered':!0x1})));}[_0x170c79(0x1c2)](_0x211f1a){const _0x4c674d=_0x170c79;var _0x1d039e,_0x37daaf,_0x2c52a1,_0x3a9fc7,_0x463ded,_0x4d1ed8;this[_0x4c674d(0x24c)]=(_0x1d039e=_0x211f1a[_0x4c674d(0x23e)])!=null?_0x1d039e:this['_color'],this['_hovered']=(_0x37daaf=_0x211f1a[_0x4c674d(0x208)])!=null?_0x37daaf:this['_hovered'],this[_0x4c674d(0x184)]=(_0x2c52a1=_0x211f1a[_0x4c674d(0x245)])!=null?_0x2c52a1:this[_0x4c674d(0x184)],this[_0x4c674d(0x23b)]=(_0x3a9fc7=_0x211f1a[_0x4c674d(0x311)])!=null?_0x3a9fc7:this['_name'],this['_labelPosition']=(_0x463ded=_0x211f1a[_0x4c674d(0x107)])!=null?_0x463ded:this[_0x4c674d(0x334)],this[_0x4c674d(0x27a)]=(_0x4d1ed8=_0x211f1a[_0x4c674d(0x18d)])!=null?_0x4d1ed8:this[_0x4c674d(0x27a)],this[_0x4c674d(0x17e)]({'width':_0x211f1a[_0x4c674d(0x2d2)],'height':_0x211f1a[_0x4c674d(0x135)]});}[_0x170c79(0x1f0)](_0x4d098){const _0x39a956=_0x170c79,{row:_0x1170c0,column:_0xdc105b}=_0x4d098;if(_0x1170c0>=this[_0x39a956(0x184)]['startRow']&&_0x1170c0<=this[_0x39a956(0x184)][_0x39a956(0x2ad)]&&_0xdc105b>=this['_range']['startColumn']&&_0xdc105b<=this[_0x39a956(0x184)][_0x39a956(0x1a5)]){this[_0x39a956(0x1c2)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x170c79(0x2d6)](_0x557067){return!0x1;}[_0x170c79(0x328)](_0x5ace93){const _0x5a3f6b=_0x170c79;p[_0x5a3f6b(0x201)]['drawWith'](_0x5ace93,{'width':this[_0x5a3f6b(0x2d2)],'height':this[_0x5a3f6b(0x135)],'strokeWidth':Nt,'stroke':this[_0x5a3f6b(0x24c)],'evented':!0x1,'fill':this[_0x5a3f6b(0x27a)]}),this[_0x5a3f6b(0x169)]&&(_0x5ace93[_0x5a3f6b(0x139)](),_0x5ace93[_0x5a3f6b(0xf1)](0x1,0x0,0x0,0x1,this[_0x5a3f6b(0x2d2)],this[_0x5a3f6b(0x334)]===_0x5a3f6b(0x291)?0x0:-V),ee[_0x5a3f6b(0xea)](_0x5ace93,{'text':this[_0x5a3f6b(0x23b)],'color':this[_0x5a3f6b(0x24c)]}),_0x5ace93['restore']());}}var wt=Object[_0x170c79(0x1b3)],Lt=Object[_0x170c79(0x2f6)],At=(_0x438d21,_0x3e735a,_0xfcf184,_0x32916d)=>{for(var _0x272801=_0x32916d>0x1?void 0x0:_0x32916d?Lt(_0x3e735a,_0xfcf184):_0x3e735a,_0x13a627=_0x438d21['length']-0x1,_0x220ede;_0x13a627>=0x0;_0x13a627--)(_0x220ede=_0x438d21[_0x13a627])&&(_0x272801=(_0x32916d?_0x220ede(_0x3e735a,_0xfcf184,_0x272801):_0x220ede(_0x272801))||_0x272801);return _0x32916d&&_0x272801&&wt(_0x3e735a,_0xfcf184,_0x272801),_0x272801;},ae=(_0x5eda23,_0x47cc23)=>(_0x4bb7a0,_0x4dd4a9)=>_0x47cc23(_0x4bb7a0,_0x4dd4a9,_0x5eda23);const yt=0x1389;let ge=class extends a[_0x170c79(0x20f)]{constructor(_0x272224,_0x3b8782,_0x21f1b3,_0x56187b){const _0x15e605=_0x170c79;super(),_(this,'_cursors',new Set()),_(this,_0x15e605(0x231),null),(this[_0x15e605(0x14b)]=_0x272224,this[_0x15e605(0x121)]=_0x3b8782,this[_0x15e605(0x349)]=_0x21f1b3,this[_0x15e605(0x2f3)]=_0x56187b,this[_0x15e605(0x24d)]());}[_0x170c79(0x24d)](){const _0x350bff=_0x170c79;this[_0x350bff(0x121)][_0x350bff(0x174)][_0x350bff(0x238)]($[_0x350bff(0x1f1)](this[_0x350bff(0x2d9)]),$[_0x350bff(0x1cb)](_0x26024b=>{const _0x384716=_0x350bff;if(_0x26024b){const _0x37ada1=_0x26024b[_0x384716(0x1bb)];return S[_0x384716(0x301)](this[_0x384716(0x349)]['getCollabCursors$'](this[_0x384716(0x14b)][_0x384716(0x195)]),this['_themeService'][_0x384716(0x10c)])[_0x384716(0x238)]($['map'](([_0x2c7043,_0x21cfd9])=>{const _0x30e1c1=_0x384716,_0x439276=new Map();return _0x2c7043[_0x30e1c1(0x292)]((_0x393289,_0x458212)=>{const _0x13ac6b=_0x30e1c1;if(_0x393289[_0x13ac6b(0x186)]===_0x37ada1){const _0x2dba2a={..._0x393289};_0x2dba2a[_0x13ac6b(0x23e)]=_0x21cfd9[_0x393289[_0x13ac6b(0x23e)]],_0x439276['set'](_0x458212,_0x2dba2a);}}),{'skeleton':_0x26024b,'cursors':_0x439276};}));}return S['of']({'skeleton':null,'cursors':new Map()});}))[_0x350bff(0x18f)](({skeleton:_0xb212d5,cursors:_0x6f96b0})=>{const _0x422a30=_0x350bff;this['_removeCollabCursors'](),_0xb212d5&&this[_0x422a30(0x350)](_0xb212d5,_0x6f96b0);}),this[_0x350bff(0x121)][_0x350bff(0x174)][_0x350bff(0x18f)](_0x5dd60d=>{const _0x2ee250=_0x350bff;if(_0x5dd60d==null)return;const {skeleton:_0x53b7d7}=_0x5dd60d,{scene:_0x4c3abf}=this[_0x2ee250(0x14b)];_0x4c3abf[_0x2ee250(0x160)][_0x2ee250(0x268)](a[_0x2ee250(0x12d)](_0x3462a4=>{const _0x5dfdf1=_0x2ee250;var _0x55e011,_0x4e3292;const {offsetX:_0x583076,offsetY:_0x12a432}=_0x3462a4,{x:_0x3cc9d2,y:_0x1e2725}=_0x4c3abf[_0x5dfdf1(0x134)](p[_0x5dfdf1(0x2a1)][_0x5dfdf1(0x28d)]([_0x583076,_0x12a432])),{scaleX:_0x1b514a,scaleY:_0x418367}=_0x4c3abf['getAncestorScale'](),_0x2871a2=_0x4c3abf[_0x5dfdf1(0x332)](p['SHEET_VIEWPORT_KEY']['VIEW_MAIN']),_0x34f2ac=_0x4c3abf[_0x5dfdf1(0x2b7)](p[_0x5dfdf1(0x2a1)]['FromArray']([_0x3cc9d2,_0x1e2725]),_0x2871a2),_0x5b2d57=_0x53b7d7[_0x5dfdf1(0x1e2)](_0x583076,_0x12a432,_0x1b514a,_0x418367,_0x34f2ac);((_0x55e011=this[_0x5dfdf1(0x231)])==null?void 0x0:_0x55e011[_0x5dfdf1(0x1a8)])===_0x5b2d57['column']&&((_0x4e3292=this[_0x5dfdf1(0x231)])==null?void 0x0:_0x4e3292[_0x5dfdf1(0x25d)])===_0x5b2d57[_0x5dfdf1(0x25d)]||this[_0x5dfdf1(0x299)][_0x5dfdf1(0x292)](_0x32191e=>{const _0x4e0303=_0x5dfdf1;_0x32191e[_0x4e0303(0x1f0)](_0x5b2d57);});},0x64));});}[_0x170c79(0x350)](_0xf36015,_0x523156){const _0x4d3075=_0x170c79;var _0x249e8c;const _0x2e4962=(_0x249e8c=this[_0x4d3075(0x121)][_0x4d3075(0x23d)]())==null?void 0x0:_0x249e8c[_0x4d3075(0x28a)];if(!_0x2e4962)return;const _0x912f93=this[_0x4d3075(0x17a)]();if(!_0x912f93)return;this['_cursors'][_0x4d3075(0x292)](_0x3fba7a=>{const _0x443ad1=_0x4d3075;_0x3fba7a[_0x443ad1(0x1d1)]();});const {scene:_0x9fedad}=_0x912f93,_0x1ad8ac=$t(Array[_0x4d3075(0x1b5)](_0x523156['values']()))['map'](_0x37a01a=>{const _0x54eb10=_0x4d3075,{color:_0x36084c,range:_0x307694,name:_0x120c60,selection:_0x49bbee,sheetID:_0x4b2b7d}=_0x37a01a,{startColumn:_0x3f7bff,startRow:_0x29ae44,endColumn:_0x1b81f6,endRow:_0x2c15aa}=_0x307694,_0x10f264=q['getCoordByCell'](_0x29ae44,_0x3f7bff,_0x9fedad,_0x2e4962),_0xdc8a2c=q[_0x54eb10(0x246)](_0x2c15aa,_0x1b81f6,_0x9fedad,_0x2e4962),{columnHeaderHeightAndMarginTop:_0x5851c7}=_0x2e4962,{startX:_0x4eb91a,startY:_0x1692c0}=_0x10f264,{endX:_0x279b82,endY:_0xe2ed9d}=_0xdc8a2c,_0x5a2025=_0x279b82-_0x4eb91a,_0x99e137=_0xe2ed9d-_0x1692c0,_0xb64af2={'labelPosition':_0x1692c0-_0x5851c7>=V?'top':_0x54eb10(0x291),'sheetID':_0x4b2b7d,'range':_0x307694,'color':_0x36084c,'name':_0x120c60,'selection':_0x49bbee,'left':_0x4eb91a,'top':_0x1692c0,'width':_0x5a2025,'height':_0x99e137,'evented':!0x1,'zIndex':yt};return new je(_0x120c60,_0xb64af2);});_0x9fedad['addObjects'](_0x1ad8ac,Ut),this[_0x4d3075(0x299)]=new Set(_0x1ad8ac);}['_removeCollabCursors'](){const _0xcc08da=_0x170c79;var _0x54fa42;(_0x54fa42=this['_cursors'])==null||_0x54fa42[_0xcc08da(0x292)](_0x147934=>_0x147934[_0xcc08da(0x2dc)]());}[_0x170c79(0x17a)](){const _0x2e4189=_0x170c79;return q['getSheetObject'](this[_0x2e4189(0x14b)][_0x2e4189(0x15e)],this['_context']);}};ge=At([ae(0x1,a[_0x170c79(0x27c)](q[_0x170c79(0x171)])),ae(0x2,a[_0x170c79(0x27c)](x)),ae(0x3,a[_0x170c79(0x27c)](a['ThemeService']))],ge);function $t(_0x37b4c0){const _0x4e57ea=_0x170c79,_0x44d565=new Map();return _0x37b4c0[_0x4e57ea(0x292)](_0x155e6f=>{const _0x1aa52e=_0x4e57ea;if(_0x44d565[_0x1aa52e(0x27b)](_0x155e6f['selection'])){const _0x9a3a89=_0x44d565[_0x1aa52e(0x1fb)](_0x155e6f[_0x1aa52e(0x256)]);_0x9a3a89[_0x1aa52e(0x311)]+=',\x20'+_0x155e6f[_0x1aa52e(0x311)];}else _0x44d565[_0x1aa52e(0x1b1)](_0x155e6f[_0x1aa52e(0x256)],_0x155e6f);}),Array[_0x4e57ea(0x1b5)](_0x44d565[_0x4e57ea(0x320)]());}var ce={'exports':{}},W={},Ue;function xt(){const _0x5055de=_0x170c79;if(Ue)return W;Ue=0x1;var _0x28f147=O,_0x44092a=Symbol[_0x5055de(0x113)](_0x5055de(0x2a5)),_0x1c9c77=Symbol[_0x5055de(0x113)]('react.fragment'),_0x464a94=Object[_0x5055de(0x230)]['hasOwnProperty'],_0x4a7f83=_0x28f147[_0x5055de(0x338)][_0x5055de(0x241)],_0xda37d3={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function _0x5c7320(_0x1b2213,_0x4d8fae,_0x41734b){const _0x54ccd0=_0x5055de;var _0x4e8f1a,_0x58c55b={},_0x220baf=null,_0x50797f=null;_0x41734b!==void 0x0&&(_0x220baf=''+_0x41734b),_0x4d8fae[_0x54ccd0(0x1d0)]!==void 0x0&&(_0x220baf=''+_0x4d8fae[_0x54ccd0(0x1d0)]),_0x4d8fae[_0x54ccd0(0xf2)]!==void 0x0&&(_0x50797f=_0x4d8fae[_0x54ccd0(0xf2)]);for(_0x4e8f1a in _0x4d8fae)_0x464a94['call'](_0x4d8fae,_0x4e8f1a)&&!_0xda37d3[_0x54ccd0(0x277)](_0x4e8f1a)&&(_0x58c55b[_0x4e8f1a]=_0x4d8fae[_0x4e8f1a]);if(_0x1b2213&&_0x1b2213[_0x54ccd0(0x25f)]){for(_0x4e8f1a in(_0x4d8fae=_0x1b2213[_0x54ccd0(0x25f)],_0x4d8fae))_0x58c55b[_0x4e8f1a]===void 0x0&&(_0x58c55b[_0x4e8f1a]=_0x4d8fae[_0x4e8f1a]);}return{'$$typeof':_0x44092a,'type':_0x1b2213,'key':_0x220baf,'ref':_0x50797f,'props':_0x58c55b,'_owner':_0x4a7f83['current']};}return W[_0x5055de(0x2d0)]=_0x1c9c77,W[_0x5055de(0x187)]=_0x5c7320,W[_0x5055de(0x1bc)]=_0x5c7320,W;}var Ne;function jt(){const _0x121e70=_0x170c79;return Ne||(Ne=0x1,ce[_0x121e70(0x289)]=xt()),ce[_0x121e70(0x289)];}var N=jt(),E=function(){const _0x4891bb=_0x170c79;return E=Object[_0x4891bb(0x15b)]||function(_0xf09b66){const _0x23a263=_0x4891bb;for(var _0x144938,_0x44a1a8=0x1,_0xf5cd0c=arguments[_0x23a263(0x30e)];_0x44a1a8<_0xf5cd0c;_0x44a1a8++){_0x144938=arguments[_0x44a1a8];for(var _0x4dc79c in _0x144938)Object['prototype'][_0x23a263(0x277)][_0x23a263(0x2aa)](_0x144938,_0x4dc79c)&&(_0xf09b66[_0x4dc79c]=_0x144938[_0x4dc79c]);}return _0xf09b66;},E[_0x4891bb(0x1ff)](this,arguments);},Bt=function(_0x29866f,_0x4b3faf){const _0x2f1c52=_0x170c79;var _0x23b97f={};for(var _0x5a6954 in _0x29866f)Object[_0x2f1c52(0x230)]['hasOwnProperty'][_0x2f1c52(0x2aa)](_0x29866f,_0x5a6954)&&_0x4b3faf[_0x2f1c52(0x155)](_0x5a6954)<0x0&&(_0x23b97f[_0x5a6954]=_0x29866f[_0x5a6954]);if(_0x29866f!=null&&typeof Object['getOwnPropertySymbols']==_0x2f1c52(0x28e)){for(var _0x5a16ed=0x0,_0x5a6954=Object['getOwnPropertySymbols'](_0x29866f);_0x5a16ed<_0x5a6954['length'];_0x5a16ed++)_0x4b3faf[_0x2f1c52(0x155)](_0x5a6954[_0x5a16ed])<0x0&&Object[_0x2f1c52(0x230)]['propertyIsEnumerable'][_0x2f1c52(0x2aa)](_0x29866f,_0x5a6954[_0x5a16ed])&&(_0x23b97f[_0x5a6954[_0x5a16ed]]=_0x29866f[_0x5a6954[_0x5a16ed]]);}return _0x23b97f;},Ee=O[_0x170c79(0x18e)](function(_0x2f8804,_0x4a7ee9){const _0x221424=_0x170c79;var _0x57854d=_0x2f8804['icon'],_0x47b921=_0x2f8804['id'],_0x296423=_0x2f8804[_0x221424(0x1e7)],_0x4b0f31=_0x2f8804['extend'],_0x5a77cd=Bt(_0x2f8804,[_0x221424(0x100),'id','className',_0x221424(0xec)]),_0x4905be=_0x221424(0x166)[_0x221424(0x264)](_0x47b921,'\x20')[_0x221424(0x264)](_0x296423||'')['trim'](),_0x5771e3=O[_0x221424(0x30a)]('_'[_0x221424(0x264)](Ft()));return Be(_0x57854d,''[_0x221424(0x264)](_0x47b921),{'defIds':_0x57854d[_0x221424(0x362)],'idSuffix':_0x5771e3[_0x221424(0x180)]},E({'ref':_0x4a7ee9,'className':_0x4905be},_0x5a77cd),_0x4b0f31);});function Be(_0x12cf3a,_0x3b78ce,_0x38a915,_0x1bee6b,_0x3b3a16){const _0x278366=_0x170c79;return O[_0x278366(0x2a8)](_0x12cf3a[_0x278366(0x319)],E(E({'key':_0x3b78ce},Ht(_0x12cf3a,_0x38a915,_0x3b3a16)),_0x1bee6b),(Wt(_0x12cf3a,_0x38a915)[_0x278366(0x2f9)]||[])[_0x278366(0x144)](function(_0x10ce3c,_0x52d66c){const _0xb6c9db=_0x278366;return Be(_0x10ce3c,''[_0xb6c9db(0x264)](_0x3b78ce,'-')['concat'](_0x12cf3a[_0xb6c9db(0x319)],'-')[_0xb6c9db(0x264)](_0x52d66c),_0x38a915,void 0x0,_0x3b3a16);}));}function Ht(_0x1e44a9,_0x3df3d1,_0x5225b6){const _0x288af1=_0x170c79;var _0x49217e=E({},_0x1e44a9[_0x288af1(0x16a)]);_0x5225b6!=null&&_0x5225b6['colorChannel1']&&_0x49217e[_0x288af1(0x12e)]===_0x288af1(0x14f)&&(_0x49217e[_0x288af1(0x12e)]=_0x5225b6[_0x288af1(0x14f)]);var _0x3b80a3=_0x3df3d1[_0x288af1(0x362)];return!_0x3b80a3||_0x3b80a3[_0x288af1(0x30e)]===0x0||(_0x1e44a9[_0x288af1(0x319)]===_0x288af1(0x101)&&_0x49217e[_0x288af1(0x20b)]&&(_0x49217e[_0x288af1(0x20b)]=_0x49217e[_0x288af1(0x20b)]+_0x3df3d1[_0x288af1(0xe5)]),Object[_0x288af1(0x161)](_0x49217e)['forEach'](function(_0x27e679){const _0x4edcd0=_0x288af1;var _0x4bcf58=_0x27e679[0x0],_0x5c1298=_0x27e679[0x1];typeof _0x5c1298==_0x4edcd0(0x2f7)&&(_0x49217e[_0x4bcf58]=_0x5c1298['replace'](/url\(#(.*)\)/,_0x4edcd0(0xf5)[_0x4edcd0(0x264)](_0x3df3d1[_0x4edcd0(0xe5)],')')));})),_0x49217e;}function Wt(_0x4f9849,_0x2406a2){const _0x487d89=_0x170c79;var _0x5c8420,_0x568a6d=_0x2406a2[_0x487d89(0x362)];return!_0x568a6d||_0x568a6d[_0x487d89(0x30e)]===0x0?_0x4f9849:_0x4f9849[_0x487d89(0x319)]===_0x487d89(0x337)&&(!((_0x5c8420=_0x4f9849[_0x487d89(0x2f9)])===null||_0x5c8420===void 0x0)&&_0x5c8420['length'])?E(E({},_0x4f9849),{'children':_0x4f9849[_0x487d89(0x2f9)][_0x487d89(0x144)](function(_0x4f60a2){const _0x21a3cc=_0x487d89;return typeof _0x4f60a2['attrs']['id']=='string'&&_0x568a6d&&_0x568a6d['indexOf'](_0x4f60a2[_0x21a3cc(0x16a)]['id'])>-0x1?E(E({},_0x4f60a2),{'attrs':E(E({},_0x4f60a2[_0x21a3cc(0x16a)]),{'id':_0x4f60a2[_0x21a3cc(0x16a)]['id']+_0x2406a2[_0x21a3cc(0xe5)]})}):_0x4f60a2;})}):_0x4f9849;}function Ft(){const _0x32b0e2=_0x170c79;return Math[_0x32b0e2(0x141)]()[_0x32b0e2(0x1ae)](0x24)['substring'](0x2,0x8);}Ee[_0x170c79(0x33d)]=_0x170c79(0x2f0);var Yt={'tag':_0x170c79(0x221),'attrs':{'fill':_0x170c79(0x25a),'viewBox':_0x170c79(0x2fc),'width':_0x170c79(0x1de),'height':_0x170c79(0x1de)},'children':[{'tag':'g','attrs':{'clipPath':_0x170c79(0x12c)},'children':[{'tag':_0x170c79(0x163),'attrs':{'stroke':_0x170c79(0x2fd),'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':_0x170c79(0x1ea),'strokeWidth':1.2}}]},{'tag':_0x170c79(0x337),'attrs':{},'children':[{'tag':_0x170c79(0x354),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x170c79(0x1c3)}}]}]}],'defIds':[_0x170c79(0x192)]},He=O[_0x170c79(0x18e)](function(_0x20b1fc,_0x47cae7){const _0x359d8c=_0x170c79;return O[_0x359d8c(0x2a8)](Ee,Object[_0x359d8c(0x15b)]({},_0x20b1fc,{'id':'off-line-single','ref':_0x47cae7,'icon':Yt}));});He[_0x170c79(0x33d)]='OffLineSingle';var Xt={'tag':_0x170c79(0x221),'attrs':{'fill':_0x170c79(0x25a),'viewBox':'0\x200\x2017\x2016','width':_0x170c79(0x1de),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x170c79(0x194)},'children':[{'tag':_0x170c79(0x163),'attrs':{'stroke':_0x170c79(0x2fd),'d':_0x170c79(0x22d),'strokeLinecap':_0x170c79(0x1ea),'strokeLinejoin':_0x170c79(0x1ea),'strokeWidth':1.2}}]},{'tag':_0x170c79(0x337),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x170c79(0x109)},'children':[{'tag':_0x170c79(0x163),'attrs':{'fill':_0x170c79(0x232),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x170c79(0x109)]},We=O[_0x170c79(0x18e)](function(_0x1571a5,_0x4b7398){const _0x2c23fd=_0x170c79;return O[_0x2c23fd(0x2a8)](Ee,Object['assign']({},_0x1571a5,{'id':_0x2c23fd(0x119),'ref':_0x4b7398,'icon':Xt}));});We[_0x170c79(0x33d)]=_0x170c79(0x2b1);function Fe(_0x2f2ef5){const _0x46ffc0=_0x170c79;var _0x2a9584,_0xd3f0d8,_0x532438='';if(typeof _0x2f2ef5=='string'||typeof _0x2f2ef5==_0x46ffc0(0x32a))_0x532438+=_0x2f2ef5;else{if(typeof _0x2f2ef5==_0x46ffc0(0x310)){if(Array[_0x46ffc0(0x1bf)](_0x2f2ef5)){var _0x28fcda=_0x2f2ef5[_0x46ffc0(0x30e)];for(_0x2a9584=0x0;_0x2a9584<_0x28fcda;_0x2a9584++)_0x2f2ef5[_0x2a9584]&&(_0xd3f0d8=Fe(_0x2f2ef5[_0x2a9584]))&&(_0x532438&&(_0x532438+='\x20'),_0x532438+=_0xd3f0d8);}else{for(_0xd3f0d8 in _0x2f2ef5)_0x2f2ef5[_0xd3f0d8]&&(_0x532438&&(_0x532438+='\x20'),_0x532438+=_0xd3f0d8);}}}return _0x532438;}function we(){for(var _0x52c35c,_0x12eb96,_0x38e34f=0x0,_0x29734c='',_0x312005=arguments['length'];_0x38e34f<_0x312005;_0x38e34f++)(_0x52c35c=arguments[_0x38e34f])&&(_0x12eb96=Fe(_0x52c35c))&&(_0x29734c&&(_0x29734c+='\x20'),_0x29734c+=_0x12eb96);return _0x29734c;}const Vt=_0x170c79(0x2ee),Gt='univer-online-status-title',kt='univer-online-status',qt='univer-online',Kt=_0x170c79(0x341),F={'onlineStatusIcon':Vt,'onlineStatusTitle':Gt,'onlineStatus':kt,'online':qt,'offline':Kt};function zt(_0x497f0f){const _0x245d17=_0x170c79;switch(_0x497f0f){case u['CollaborationStatus'][_0x245d17(0x32d)]:return _0x245d17(0x108);case u[_0x245d17(0x18b)][_0x245d17(0xfe)]:return _0x245d17(0x14c);case u[_0x245d17(0x18b)][_0x245d17(0x343)]:return _0x245d17(0x34f);case u[_0x245d17(0x18b)][_0x245d17(0x11d)]:return'collabStatus.notCollab';case u[_0x245d17(0x18b)][_0x245d17(0x191)]:case u[_0x245d17(0x18b)]['AWAITING_WITH_PENDING']:return _0x245d17(0x10e);case u['CollaborationStatus'][_0x245d17(0x28f)]:case u['CollaborationStatus'][_0x245d17(0x358)]:return _0x245d17(0x2c1);}}function Ye(_0x5f321f){const _0x2936c4=_0x170c79,{status$:_0x3f09c8}=_0x5f321f,_0x20d1fe=w[_0x2936c4(0x29c)](_0x3f09c8,u[_0x2936c4(0x18b)]['NOT_COLLAB']),_0x10a6a1=a[_0x2936c4(0x1fa)](a[_0x2936c4(0x254)]),_0x16abfc=a['useDependency'](u[_0x2936c4(0x329)]),_0x223325=_0x20d1fe!==u[_0x2936c4(0x18b)]['OFFLINE'],_0x5a5b8f=_0x10a6a1['t'](zt(_0x20d1fe)),_0x4c2e03=we(F[_0x2936c4(0x203)],{[F[_0x2936c4(0x1b7)]]:_0x223325,[F[_0x2936c4(0x128)]]:!_0x223325}),_0xe65c76=_0x223325?N[_0x2936c4(0x187)](We,{}):N[_0x2936c4(0x187)](He,{}),_0x528683=O[_0x2936c4(0x1a0)](()=>{const _0x5fdaa8=_0x2936c4;_0x223325||_0x16abfc[_0x5fdaa8(0x321)]();},[_0x223325,_0x16abfc]);function _0x16d133(){const _0x14406d=_0x2936c4;return N[_0x14406d(0x1bc)](_0x14406d(0x255),{'className':we(_0x4c2e03,'univer-flex\x20univer-items-center'),'onClick':_0x528683,'children':[N[_0x14406d(0x187)]('div',{'className':F[_0x14406d(0x1b8)],'children':_0xe65c76}),N[_0x14406d(0x187)](_0x14406d(0x255),{'className':F[_0x14406d(0x29a)],'children':_0x5a5b8f})]});}return _0x223325?_0x16d133():N[_0x2936c4(0x187)](M[_0x2936c4(0x234)],{'title':_0x10a6a1['t'](_0x2936c4(0x23a)),'children':_0x16d133()});}var Jt=Object[_0x170c79(0x1b3)],Zt=Object[_0x170c79(0x2f6)],Qt=(_0x1695a9,_0x8a033e,_0x35e96d,_0x2746db)=>{const _0x2a4781=_0x170c79;for(var _0x4a5f4b=_0x2746db>0x1?void 0x0:_0x2746db?Zt(_0x8a033e,_0x35e96d):_0x8a033e,_0x553f51=_0x1695a9[_0x2a4781(0x30e)]-0x1,_0x5f3344;_0x553f51>=0x0;_0x553f51--)(_0x5f3344=_0x1695a9[_0x553f51])&&(_0x4a5f4b=(_0x2746db?_0x5f3344(_0x8a033e,_0x35e96d,_0x4a5f4b):_0x5f3344(_0x4a5f4b))||_0x4a5f4b);return _0x2746db&&_0x4a5f4b&&Jt(_0x8a033e,_0x35e96d,_0x4a5f4b),_0x4a5f4b;},k=(_0x38b05b,_0x3ac572)=>(_0x40316d,_0x483aff)=>_0x3ac572(_0x40316d,_0x483aff,_0x38b05b);exports[_0x170c79(0xe6)]=class extends a[_0x170c79(0x31f)]{constructor(_0x235136,_0x21d198,_0x2a8af7,_0xb239d6){const _0x3e88ad=_0x170c79;super(),_(this,'_status$',new S['BehaviorSubject'](u[_0x3e88ad(0x18b)]['NOT_COLLAB'])),(this['_univerInstanceService']=_0x235136,this['_injector']=_0x21d198,this['_collaborationController']=_0x2a8af7,this[_0x3e88ad(0x1d9)]=_0xb239d6,this['_initStatusComponent'](),this[_0x3e88ad(0x132)]());}[_0x170c79(0x132)](){const _0x1c4956=_0x170c79;this[_0x1c4956(0x276)](this[_0x1c4956(0x222)][_0x1c4956(0x1c4)][_0x1c4956(0x238)](S[_0x1c4956(0x1cb)](()=>{const _0x75c7b8=_0x1c4956,_0x3a42df=this[_0x75c7b8(0x222)][_0x75c7b8(0x295)]();return _0x3a42df?this['_collaborationController'][_0x75c7b8(0x124)](_0x3a42df[_0x75c7b8(0x30b)]()):S['of'](null);}),S['switchMap'](_0x2c1a37=>_0x2c1a37?_0x2c1a37[_0x1c4956(0x32e)]:S['of'](u[_0x1c4956(0x18b)]['NOT_COLLAB'])))[_0x1c4956(0x18f)](_0x348b36=>{const _0x521a75=_0x1c4956;this[_0x521a75(0x20c)][_0x521a75(0x25c)](_0x348b36);}));}[_0x170c79(0x1c0)](){const _0x53f74d=_0x170c79;this[_0x53f74d(0x276)](this[_0x53f74d(0x1d9)][_0x53f74d(0x1cd)](w[_0x53f74d(0x1d3)][_0x53f74d(0x2f8)],()=>a['connectInjector'](es({'status$':this[_0x53f74d(0x20c)][_0x53f74d(0x177)]()}),this[_0x53f74d(0x1f9)])));}},exports[_0x170c79(0xe6)]=Qt([k(0x0,a[_0x170c79(0x126)]),k(0x1,a[_0x170c79(0x27c)](a[_0x170c79(0x2e0)])),k(0x2,a['Inject'](u['CollaborationController'])),k(0x3,w[_0x170c79(0x330)])],exports[_0x170c79(0xe6)]);function es(_0x15e1f0){const {status$:_0xe7b2ed}=_0x15e1f0;return function(){const _0xbaad84=_0xc691;return N[_0xbaad84(0x187)](Ye,{'status$':_0xe7b2ed});};}var ts=Object['defineProperty'],ss=Object['getOwnPropertyDescriptor'],ns=(_0x40759e,_0xa4c766,_0x5467b5,_0x3ca18f)=>{const _0x5c593e=_0x170c79;for(var _0x312f02=_0x3ca18f>0x1?void 0x0:_0x3ca18f?ss(_0xa4c766,_0x5467b5):_0xa4c766,_0x42ded6=_0x40759e[_0x5c593e(0x30e)]-0x1,_0x1fe147;_0x42ded6>=0x0;_0x42ded6--)(_0x1fe147=_0x40759e[_0x42ded6])&&(_0x312f02=(_0x3ca18f?_0x1fe147(_0xa4c766,_0x5467b5,_0x312f02):_0x1fe147(_0x312f02))||_0x312f02);return _0x3ca18f&&_0x312f02&&ts(_0xa4c766,_0x5467b5,_0x312f02),_0x312f02;},y=(_0x31959c,_0x5b159b)=>(_0x2f666d,_0x9d94e0)=>_0x5b159b(_0x2f666d,_0x9d94e0,_0x31959c);let K=class extends a[_0x170c79(0x31f)]{constructor(_0x341d18,_0x579bf9,_0x18c192,_0x418048,_0x3fbbfb,_0xcf110c){const _0x601227=_0x170c79;super(),this[_0x601227(0x167)]=_0x341d18,this[_0x601227(0x345)]=_0x579bf9,this[_0x601227(0x1d6)]=_0x18c192,this[_0x601227(0x156)]=_0x418048,this[_0x601227(0xf0)]=_0x3fbbfb,this['_localeService']=_0xcf110c,this['_setupBeforeClosingHandler'](),this[_0x601227(0x1e1)]();}[_0x170c79(0x24b)](){const _0xb235dc=_0x170c79;this[_0xb235dc(0x276)](this[_0xb235dc(0x167)][_0xb235dc(0x1d4)](()=>{const _0x34aa7a=_0xb235dc;if(this[_0x34aa7a(0x345)]['saveTaskMap'][_0x34aa7a(0x130)])return this[_0x34aa7a(0xfd)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x170c79(0x1e1)](){const _0x14f890=_0x170c79;this[_0x14f890(0x276)](this[_0x14f890(0x1d6)]['event$'][_0x14f890(0x18f)](_0x206677=>{const _0x20c6b4=_0x14f890;_0x206677['id']===u[_0x20c6b4(0x290)]['OTHER_CLIENT_EDITING']&&this[_0x20c6b4(0x156)][_0x20c6b4(0x1dc)]({'type':M[_0x20c6b4(0x323)][_0x20c6b4(0x220)],'content':this[_0x20c6b4(0xfd)]['t']('collaboration.single-unit.warning')}),_0x206677['id']===u['CollaborationUIEventId'][_0x20c6b4(0x2a7)]&&this['_messageService'][_0x20c6b4(0x1dc)]({'type':M['MessageType'][_0x20c6b4(0x220)],'content':this[_0x20c6b4(0xfd)]['t'](_0x20c6b4(0x1d7))}),_0x206677['id']===u[_0x20c6b4(0x290)][_0x20c6b4(0x293)]&&this[_0x20c6b4(0xf0)][_0x20c6b4(0x1dc)]({'title':this[_0x20c6b4(0xfd)]['t']('permission.title'),'content':this[_0x20c6b4(0xfd)]['t']('permission.content'),'type':_0x20c6b4(0x10b),'duration':0x0}),_0x206677['id']===u['CollaborationUIEventId'][_0x20c6b4(0xfe)]&&this[_0x20c6b4(0x156)][_0x20c6b4(0x1dc)]({'type':M[_0x20c6b4(0x323)]['Error'],'content':this[_0x20c6b4(0xfd)]['t']('collaboration.closeRoom')+'('+_0x206677['data']+')'}),_0x206677['id']===u[_0x20c6b4(0x290)][_0x20c6b4(0x211)]&&this[_0x20c6b4(0x156)][_0x20c6b4(0x1dc)]({'type':M[_0x20c6b4(0x323)][_0x20c6b4(0x220)],'content':this[_0x20c6b4(0xfd)]['t'](_0x206677[_0x20c6b4(0xe8)]||'')}),_0x206677['id']===u[_0x20c6b4(0x290)][_0x20c6b4(0x35e)]&&this[_0x20c6b4(0x156)][_0x20c6b4(0x1dc)]({'type':M[_0x20c6b4(0x323)]['Warning'],'content':this[_0x20c6b4(0xfd)]['t'](_0x20c6b4(0x17f))}),_0x206677['id']===u[_0x20c6b4(0x290)]['SOCKET_FAILED']&&this[_0x20c6b4(0x156)]['show']({'type':M['MessageType']['Error'],'content':this['_localeService']['t'](_0x20c6b4(0x305))}),_0x206677['id']===u['CollaborationUIEventId'][_0x20c6b4(0x205)]&&this[_0x20c6b4(0x156)]['show']({'type':M[_0x20c6b4(0x323)][_0x20c6b4(0x13d)],'content':this['_localeService']['t'](_0x20c6b4(0x33a))});}));}};K=ns([y(0x0,w[_0x170c79(0x1e8)]),y(0x1,u[_0x170c79(0x210)]),y(0x2,a[_0x170c79(0x27c)](u[_0x170c79(0x14d)])),y(0x3,w[_0x170c79(0x2e2)]),y(0x4,w[_0x170c79(0x240)]),y(0x5,a[_0x170c79(0x27c)](a['LocaleService']))],K);const is=_0x170c79(0x112),Le={},Re=a[_0x170c79(0x175)](_0x170c79(0x2a3));var rs=Object[_0x170c79(0x1b3)],os=Object[_0x170c79(0x2f6)],as=(_0x4fa3f7,_0x209e2d,_0x4d097a,_0xb8c78a)=>{const _0x41198f=_0x170c79;for(var _0x178723=_0xb8c78a>0x1?void 0x0:_0xb8c78a?os(_0x209e2d,_0x4d097a):_0x209e2d,_0x54ce6e=_0x4fa3f7[_0x41198f(0x30e)]-0x1,_0x4b699e;_0x54ce6e>=0x0;_0x54ce6e--)(_0x4b699e=_0x4fa3f7[_0x54ce6e])&&(_0x178723=(_0xb8c78a?_0x4b699e(_0x209e2d,_0x4d097a,_0x178723):_0x4b699e(_0x178723))||_0x178723);return _0xb8c78a&&_0x178723&&rs(_0x209e2d,_0x4d097a,_0x178723),_0x178723;},Y=(_0x5cd02b,_0x439c00)=>(_0x24f013,_0x5c2419)=>_0x439c00(_0x24f013,_0x5c2419,_0x5cd02b);exports[_0x170c79(0x342)]=class extends a[_0x170c79(0x20f)]{constructor(_0xa2c715,_0x263072,_0x529f81,_0x2f7a22,_0xe59e3e){const _0x44083d=_0x170c79;super(),this[_0x44083d(0x196)]=_0xa2c715,this[_0x44083d(0x17d)]=_0x263072,this['_commandService']=_0x529f81,this[_0x44083d(0x22c)]=_0x2f7a22,_0xe59e3e?_0xe59e3e==null||_0xe59e3e[_0x44083d(0x308)]()[_0x44083d(0x263)](()=>this['_init']()):(this['_logService'][_0x44083d(0x2da)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x44083d(0x24d)]());}async[_0x170c79(0x24d)](){const _0x3b7ad8=_0x170c79,_0x13af1b=this[_0x3b7ad8(0x196)][_0x3b7ad8(0x21f)](_0x3b7ad8(0x15e)),_0x48fc6c=this[_0x3b7ad8(0x196)][_0x3b7ad8(0x21f)](_0x3b7ad8(0x1a9)),_0x5c005a=this[_0x3b7ad8(0x196)][_0x3b7ad8(0x21f)](_0x3b7ad8(0x19e));if(!_0x13af1b||!_0x48fc6c){this[_0x3b7ad8(0x17d)][_0x3b7ad8(0x2da)](_0x3b7ad8(0x218),_0x3b7ad8(0x285));return;}const _0x4e8a90=await this[_0x3b7ad8(0x22c)][_0x3b7ad8(0x1ec)](_0x13af1b,Number(_0x48fc6c),_0x5c005a);_0x4e8a90&&_0x4e8a90 instanceof a[_0x3b7ad8(0x2af)]&&this['_setupSubUnitSync'](_0x4e8a90);}async[_0x170c79(0x1ee)](_0xb6cd9a){const _0x2d9fe2=_0x170c79;await this[_0x2d9fe2(0x202)](_0xb6cd9a),_0xb6cd9a[_0x2d9fe2(0x2c3)][_0x2d9fe2(0x238)](S[_0x2d9fe2(0x1f1)](this[_0x2d9fe2(0x2d9)]))['subscribe'](_0x1dec4e=>{_0x1dec4e&&this['_updateURLWithCurrentState'](_0x1dec4e);}),this[_0x2d9fe2(0x196)][_0x2d9fe2(0x2b2)][_0x2d9fe2(0x238)](S['takeUntil'](this[_0x2d9fe2(0x2d9)]))[_0x2d9fe2(0x18f)](()=>this[_0x2d9fe2(0x202)](_0xb6cd9a));}[_0x170c79(0x2cb)](_0xcb8d86,_0x127960=!0x1){const _0x2a2500=_0x170c79,_0x357902=this[_0x2a2500(0x196)][_0x2a2500(0x21f)](_0x2a2500(0x19e));_0xcb8d86[_0x2a2500(0x198)]()!==_0x357902&&this[_0x2a2500(0x196)][_0x2a2500(0x2d7)](_0x2a2500(0x19e),_0xcb8d86[_0x2a2500(0x198)](),_0x127960);}async['_updateSubUnitFromURLParams'](_0x4ad27f){const _0x2f5147=_0x170c79;var _0x8d441c;const _0x2620d8=this[_0x2f5147(0x196)][_0x2f5147(0x21f)]('subunit');if(!_0x2620d8||!_0x4ad27f['getSheetBySheetId'](_0x2620d8)){const _0x4cc4eb=_0x4ad27f[_0x2f5147(0x2ba)]()[0x0],_0x1a9acf=_0x4ad27f[_0x2f5147(0x2e4)](_0x4cc4eb);if(!_0x1a9acf)return;this[_0x2f5147(0x2cb)](_0x1a9acf,!0x0),await this[_0x2f5147(0x10f)][_0x2f5147(0x2b8)](I['SetWorksheetActivateCommand']['id'],{'unitId':_0x4ad27f[_0x2f5147(0x30b)](),'subUnitId':_0x4cc4eb});return;}((_0x8d441c=_0x4ad27f[_0x2f5147(0x14a)]())==null?void 0x0:_0x8d441c[_0x2f5147(0x198)]())!==_0x2620d8&&await this['_commandService'][_0x2f5147(0x2b8)](I[_0x2f5147(0x20a)]['id'],{'unitId':_0x4ad27f[_0x2f5147(0x30b)](),'subUnitId':_0x2620d8});}},exports[_0x170c79(0x342)]=as([Y(0x0,Re),Y(0x1,a[_0x170c79(0x27d)]),Y(0x2,a[_0x170c79(0x2c7)]),Y(0x3,a['Inject'](u[_0x170c79(0x2a2)])),Y(0x4,a[_0x170c79(0x2eb)](tt[_0x170c79(0x148)]))],exports[_0x170c79(0x342)]);var cs=Object['defineProperty'],ls=Object[_0x170c79(0x2f6)],hs=(_0xdc4670,_0x445c9e,_0x563676,_0x21ad5d)=>{const _0x17ee43=_0x170c79;for(var _0xe5553a=_0x21ad5d>0x1?void 0x0:_0x21ad5d?ls(_0x445c9e,_0x563676):_0x445c9e,_0x5f0a10=_0xdc4670[_0x17ee43(0x30e)]-0x1,_0x53f881;_0x5f0a10>=0x0;_0x5f0a10--)(_0x53f881=_0xdc4670[_0x5f0a10])&&(_0xe5553a=(_0x21ad5d?_0x53f881(_0x445c9e,_0x563676,_0xe5553a):_0x53f881(_0xe5553a))||_0xe5553a);return _0x21ad5d&&_0xe5553a&&cs(_0x445c9e,_0x563676,_0xe5553a),_0xe5553a;},le=(_0xfdf6f9,_0x407052)=>(_0x14000a,_0x14cc39)=>_0x407052(_0x14000a,_0x14cc39,_0xfdf6f9);let z=class{constructor(_0x38a28c,_0x2bf2f8,_0x25027e){const _0x54dc6a=_0x170c79;this[_0x54dc6a(0x1f9)]=_0x38a28c,this[_0x54dc6a(0x242)]=_0x2bf2f8,this[_0x54dc6a(0x29f)]=_0x25027e;}[_0x170c79(0x2e8)](_0x4b40b7){const _0x44f8f7=_0x170c79;this[_0x44f8f7(0x1ab)](_0x4b40b7),this[_0x44f8f7(0x287)](_0x4b40b7);}[_0x170c79(0x248)](_0x1fd8c7){const _0x59d11d=_0x170c79,{unitID:_0x2b5342}=_0x1fd8c7,_0x3d7ff5=this[_0x59d11d(0x29f)][_0x59d11d(0x2db)](_0x2b5342)[_0x59d11d(0x142)](b['DocIMEInputManagerService']),{redoCache:_0x51450f}=_0x3d7ff5['getUndoRedoMutationParamsCache']();if(_0x51450f[_0x59d11d(0x30e)]===0x0)return _0x1fd8c7;let _0x5f43db=a[_0x59d11d(0x1be)]['deepClone'](_0x1fd8c7['mutations'][0x0]);for(let _0x4687e7=0x0;_0x4687e7<_0x51450f[_0x59d11d(0x30e)];_0x4687e7++){const _0x93b133={'id':_0x59d11d(0x360),'params':{..._0x51450f[_0x4687e7]}},_0x547211=this['_transformService'][_0x59d11d(0x137)](_0x5f43db,_0x93b133,!0x1);if(g['isTransformMutationFailure'](_0x547211))throw _0x547211[_0x59d11d(0x10b)];_0x5f43db=_0x547211[_0x59d11d(0x31e)];}return{...a['Tools'][_0x59d11d(0x20e)](_0x1fd8c7),'mutations':[_0x5f43db]};}['_transformUndoRedoStack'](_0x3a1a67){const _0x2fa3d7=_0x170c79,{unitID:_0x286d71}=_0x3a1a67,_0x4ee65a=this['_renderManagerService'][_0x2fa3d7(0x2db)](_0x286d71)[_0x2fa3d7(0x142)](b[_0x2fa3d7(0x12f)]),{undoCache:_0x202e29,redoCache:_0x2081cb}=_0x4ee65a[_0x2fa3d7(0xf6)]();if(_0x202e29[_0x2fa3d7(0x30e)]===0x0||_0x2081cb[_0x2fa3d7(0x30e)]===0x0)return;const _0x5af34a=[],_0x504496=[];let _0x42bc2a=a['Tools'][_0x2fa3d7(0x20e)](_0x3a1a67['mutations'][0x0]),_0x342c7a=a[_0x2fa3d7(0x1be)]['deepClone'](_0x3a1a67['mutations'][0x0]);for(let _0x538dc4=_0x202e29[_0x2fa3d7(0x30e)]-0x1;_0x538dc4>=0x0;_0x538dc4--){const _0x5aaa98={'id':_0x2fa3d7(0x360),'params':{..._0x202e29[_0x538dc4]}},_0x2b8ee7={'id':'doc.mutation.rich-text-editing','params':{..._0x2081cb[_0x538dc4]}},_0xff7060=this[_0x2fa3d7(0x242)][_0x2fa3d7(0x137)](_0x42bc2a,_0x5aaa98,!0x1),_0xcfb68e=this[_0x2fa3d7(0x242)]['transformMutation'](_0x342c7a,_0x2b8ee7,!0x1);if(g[_0x2fa3d7(0xe3)](_0xff7060))throw _0xff7060[_0x2fa3d7(0x10b)];if(g[_0x2fa3d7(0xe3)](_0xcfb68e))throw _0xcfb68e[_0x2fa3d7(0x10b)];_0x5af34a[_0x2fa3d7(0x2d1)](_0xff7060[_0x2fa3d7(0x2ef)][_0x2fa3d7(0xed)]),_0x504496[_0x2fa3d7(0x2d1)](_0xcfb68e['m2Prime'][_0x2fa3d7(0xed)]),_0x42bc2a=_0xff7060[_0x2fa3d7(0x31e)],_0x342c7a=_0xcfb68e['m1Prime'];}_0x4ee65a[_0x2fa3d7(0x236)]({'undoCache':_0x5af34a,'redoCache':_0x504496});}[_0x170c79(0x287)](_0x35cc3e){const _0x52ff5f=_0x170c79,{unitID:_0x836d84}=_0x35cc3e,_0x388ff2=this[_0x52ff5f(0x29f)][_0x52ff5f(0x2db)](_0x836d84)[_0x52ff5f(0x142)](b['DocIMEInputManagerService']),_0x318d40=_0x388ff2['getActiveRange']();if(_0x318d40==null)return;const _0x4a3d3d=[{'id':_0x52ff5f(0x360),'params':{'unitId':_0x35cc3e['unitID'],'actions':null,'textRanges':[_0x318d40]}}],_0x376afc=this['_transformService']['transformMutationsWithChangeset'](_0x35cc3e,_0x4a3d3d);if(!g[_0x52ff5f(0x314)](_0x376afc))throw _0x376afc['error'];const _0x5785b6=_0x376afc[_0x52ff5f(0x2ef)][0x0]['params'][_0x52ff5f(0x1ba)];Array[_0x52ff5f(0x1bf)](_0x5785b6)&&_0x5785b6[_0x52ff5f(0x30e)]&&_0x388ff2[_0x52ff5f(0x117)](_0x5785b6[0x0]);}};z=hs([le(0x0,a[_0x170c79(0x27c)](a[_0x170c79(0x2e0)])),le(0x1,g[_0x170c79(0x2e6)]),le(0x2,p[_0x170c79(0x2ca)])],z);var _s=Object[_0x170c79(0x1b3)],us=Object[_0x170c79(0x2f6)],ds=(_0x585aeb,_0x3f9aea,_0x4208c6,_0xe9603c)=>{for(var _0x3116ca=_0xe9603c>0x1?void 0x0:_0xe9603c?us(_0x3f9aea,_0x4208c6):_0x3f9aea,_0x119652=_0x585aeb['length']-0x1,_0x801d37;_0x119652>=0x0;_0x119652--)(_0x801d37=_0x585aeb[_0x119652])&&(_0x3116ca=(_0xe9603c?_0x801d37(_0x3f9aea,_0x4208c6,_0x3116ca):_0x801d37(_0x3116ca))||_0x3116ca);return _0xe9603c&&_0x3116ca&&_s(_0x3f9aea,_0x4208c6,_0x3116ca),_0x3116ca;},he=(_0x43e424,_0x769812)=>(_0xe0fd26,_0x12ba18)=>_0x769812(_0xe0fd26,_0x12ba18,_0x43e424);let J=class{constructor(_0x4471a1,_0x22e501,_0x2db694){const _0x358a2d=_0x170c79;this[_0x358a2d(0x1f9)]=_0x4471a1,this['_transformService']=_0x22e501,this[_0x358a2d(0x30d)]=_0x2db694;}[_0x170c79(0x326)](_0x28348e){const _0x27e9af=_0x170c79;this[_0x27e9af(0x206)](_0x28348e);}[_0x170c79(0x248)](_0x7eb2e2){const _0x19a012=_0x170c79,{unitID:_0x474fab}=_0x7eb2e2,{collaboration:_0x35c58c}=this[_0x19a012(0x30d)][_0x19a012(0x30c)](_0x474fab);if(_0x35c58c[_0x19a012(0x30e)]===0x0)return _0x7eb2e2;let _0x146bbc=a['Tools']['deepClone'](_0x7eb2e2[_0x19a012(0x1a4)][0x0]);for(let _0x2ed518=0x0;_0x2ed518<_0x35c58c[_0x19a012(0x30e)];_0x2ed518++){const _0x3ddc21={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x35c58c[_0x2ed518]['unitId'],..._0x35c58c[_0x2ed518][_0x19a012(0xef)]}},_0x5e5d07=this[_0x19a012(0x242)][_0x19a012(0x137)](_0x146bbc,_0x3ddc21,!0x1);if(g[_0x19a012(0xe3)](_0x5e5d07))throw _0x5e5d07[_0x19a012(0x10b)];_0x146bbc=_0x5e5d07[_0x19a012(0x31e)];}return{...a['Tools'][_0x19a012(0x20e)](_0x7eb2e2),'mutations':[_0x146bbc]};}[_0x170c79(0x206)](_0x1805b0){const _0x14ab78=_0x170c79,{unitID:_0x3bea2}=_0x1805b0,{history:_0x5f5941,collaboration:_0x451867}=this[_0x14ab78(0x30d)][_0x14ab78(0x30c)](_0x3bea2);if(_0x5f5941[_0x14ab78(0x30e)]===0x0&&_0x451867[_0x14ab78(0x30e)]===0x0)return;const _0x22fef9=[],_0x10e871=[];let _0x5aef69=a[_0x14ab78(0x1be)]['deepClone'](_0x1805b0['mutations'][0x0]),_0x512389=a[_0x14ab78(0x1be)][_0x14ab78(0x20e)](_0x1805b0[_0x14ab78(0x1a4)][0x0]);for(let _0x29fd6f=_0x5f5941[_0x14ab78(0x30e)]-0x1;_0x29fd6f>=0x0;_0x29fd6f--){const _0x23bb0d={'id':_0x14ab78(0x360),'params':{'unitId':_0x5f5941[_0x29fd6f][_0x14ab78(0x195)],..._0x5f5941[_0x29fd6f][_0x14ab78(0x279)]}},_0x1afd91={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5f5941[_0x29fd6f][_0x14ab78(0x195)],..._0x5f5941[_0x29fd6f]['redoState']}},_0x36779a=this[_0x14ab78(0x242)][_0x14ab78(0x137)](_0x5aef69,_0x23bb0d,!0x1),_0x23f932=this[_0x14ab78(0x242)][_0x14ab78(0x137)](_0x512389,_0x1afd91,!0x1);if(g[_0x14ab78(0xe3)](_0x36779a))throw _0x36779a['error'];if(g[_0x14ab78(0xe3)](_0x23f932))throw _0x23f932['error'];_0x22fef9[_0x14ab78(0x2d1)]({..._0x5f5941[_0x29fd6f],'undoState':_0x36779a[_0x14ab78(0x2ef)][_0x14ab78(0xed)],'redoState':_0x23f932[_0x14ab78(0x2ef)][_0x14ab78(0xed)]}),_0x5aef69=_0x36779a[_0x14ab78(0x31e)],_0x512389=_0x23f932['m1Prime'];}_0x5aef69=a['Tools'][_0x14ab78(0x20e)](_0x1805b0[_0x14ab78(0x1a4)][0x0]),_0x512389=a[_0x14ab78(0x1be)][_0x14ab78(0x20e)](_0x1805b0['mutations'][0x0]);for(let _0x13996c=_0x451867['length']-0x1;_0x13996c>=0x0;_0x13996c--){const _0x317d6c={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x451867[_0x13996c][_0x14ab78(0x195)],..._0x451867[_0x13996c][_0x14ab78(0x279)]}},_0x4f0601={'id':_0x14ab78(0x360),'params':{'unitId':_0x451867[_0x13996c][_0x14ab78(0x195)],..._0x451867[_0x13996c][_0x14ab78(0xef)]}},_0x200a2c=this[_0x14ab78(0x242)][_0x14ab78(0x137)](_0x5aef69,_0x317d6c,!0x1),_0x517ce1=this['_transformService'][_0x14ab78(0x137)](_0x512389,_0x4f0601,!0x1);if(g[_0x14ab78(0xe3)](_0x200a2c))throw _0x200a2c['error'];if(g[_0x14ab78(0xe3)](_0x517ce1))throw _0x517ce1['error'];_0x10e871['unshift']({..._0x451867[_0x13996c],'undoState':_0x200a2c[_0x14ab78(0x2ef)][_0x14ab78(0xed)],'redoState':_0x517ce1[_0x14ab78(0x2ef)][_0x14ab78(0xed)]}),_0x5aef69=_0x200a2c[_0x14ab78(0x31e)],_0x512389=_0x517ce1[_0x14ab78(0x31e)];}this[_0x14ab78(0x30d)][_0x14ab78(0x224)](_0x3bea2,{'history':_0x22fef9,'collaboration':_0x10e871});}};J=ds([he(0x0,a[_0x170c79(0x27c)](a[_0x170c79(0x2e0)])),he(0x1,g['ITransformService']),he(0x2,a[_0x170c79(0x27c)](b[_0x170c79(0x29e)]))],J);var fs=Object[_0x170c79(0x1b3)],Ss=Object[_0x170c79(0x2f6)],vs=(_0x390842,_0x159274,_0x4074d0,_0x4ccc56)=>{const _0x2ad74d=_0x170c79;for(var _0x32ad97=_0x4ccc56>0x1?void 0x0:_0x4ccc56?Ss(_0x159274,_0x4074d0):_0x159274,_0x5a29d8=_0x390842[_0x2ad74d(0x30e)]-0x1,_0x1bfeb7;_0x5a29d8>=0x0;_0x5a29d8--)(_0x1bfeb7=_0x390842[_0x5a29d8])&&(_0x32ad97=(_0x4ccc56?_0x1bfeb7(_0x159274,_0x4074d0,_0x32ad97):_0x1bfeb7(_0x32ad97))||_0x32ad97);return _0x4ccc56&&_0x32ad97&&fs(_0x159274,_0x4074d0,_0x32ad97),_0x32ad97;},Ae=(_0x54304d,_0x5d738a)=>(_0x4a258f,_0x3e22ba)=>_0x5d738a(_0x4a258f,_0x3e22ba,_0x54304d);let Z=class{constructor(_0x23b381,_0x2eedad){const _0x321890=_0x170c79;this[_0x321890(0x1f9)]=_0x23b381,this[_0x321890(0x242)]=_0x2eedad;}[_0x170c79(0x138)](_0x2a516c){const _0x2e1acf=_0x170c79;var _0x3b447a;const _0x10b28b=this[_0x2e1acf(0x1f9)][_0x2e1acf(0x1fb)](X[_0x2e1acf(0x19d)]),_0x1f2fc2=(_0x3b447a=_0x10b28b[_0x2e1acf(0x20d)]())!=null?_0x3b447a:[];if(_0x1f2fc2[_0x2e1acf(0x30e)]===0x0)return;const _0x3aee71=_0x2a516c['unitID'],_0x8f870f=[{'id':_0x2e1acf(0x360),'params':{'unitId':_0x3aee71,'actions':null,'textRanges':_0x1f2fc2}}],_0x32d9a7=this['_transformService']['transformMutationsWithChangeset'](_0x2a516c,_0x8f870f);if(!g[_0x2e1acf(0x314)](_0x32d9a7))throw _0x32d9a7[_0x2e1acf(0x10b)];const _0x1850cf=_0x32d9a7[_0x2e1acf(0x2ef)][0x0][_0x2e1acf(0xed)][_0x2e1acf(0x1ba)];Array[_0x2e1acf(0x1bf)](_0x1850cf)&&_0x1850cf[_0x2e1acf(0x30e)]&&_0x10b28b[_0x2e1acf(0x125)](_0x1850cf,{'unitId':_0x3aee71,'subUnitId':_0x3aee71},!0x1);}};Z=vs([Ae(0x0,a[_0x170c79(0x27c)](a[_0x170c79(0x2e0)])),Ae(0x1,g[_0x170c79(0x2e6)])],Z);var ms=Object[_0x170c79(0x1b3)],Is=Object[_0x170c79(0x2f6)],gs=(_0x33255d,_0x4624b7,_0x265645,_0x486ef7)=>{const _0x788d0=_0x170c79;for(var _0x246434=_0x486ef7>0x1?void 0x0:_0x486ef7?Is(_0x4624b7,_0x265645):_0x4624b7,_0x43aa1f=_0x33255d[_0x788d0(0x30e)]-0x1,_0x4ea2e5;_0x43aa1f>=0x0;_0x43aa1f--)(_0x4ea2e5=_0x33255d[_0x43aa1f])&&(_0x246434=(_0x486ef7?_0x4ea2e5(_0x4624b7,_0x265645,_0x246434):_0x4ea2e5(_0x246434))||_0x246434);return _0x486ef7&&_0x246434&&ms(_0x4624b7,_0x265645,_0x246434),_0x246434;},P=(_0x3b05a7,_0xc10687)=>(_0xd1c85d,_0x5c1d0f)=>_0xc10687(_0xd1c85d,_0x5c1d0f,_0x3b05a7);let Q=class extends a[_0x170c79(0x31f)]{constructor(_0x27ff2f,_0x9537ba,_0x3baf87,_0x2dbd9e,_0x5409fd,_0xc53bd7,_0x53762d,_0x49d591){const _0x1329ec=_0x170c79;super(),_(this,_0x1329ec(0x20c),new S['BehaviorSubject'](u[_0x1329ec(0x18b)][_0x1329ec(0x11d)])),(this[_0x1329ec(0x30d)]=_0x27ff2f,this[_0x1329ec(0x32b)]=_0x9537ba,this[_0x1329ec(0x127)]=_0x3baf87,this[_0x1329ec(0x28b)]=_0x2dbd9e,this['_docTransformSelectionsService']=_0x5409fd,this['_docSyncEditingCollabCursorService']=_0xc53bd7,this[_0x1329ec(0x156)]=_0x53762d,this[_0x1329ec(0xfd)]=_0x49d591,this[_0x1329ec(0x280)]());}[_0x170c79(0x280)](){const _0xdc85be=_0x170c79;this[_0xdc85be(0x276)](this[_0xdc85be(0x32b)][_0xdc85be(0x324)][_0xdc85be(0x18f)](_0x39f999=>{const _0x536f1b=_0xdc85be,_0xc0c2a5=this[_0x536f1b(0x30d)][_0x536f1b(0x315)][_0x536f1b(0x18f)](_0x3f9dd4=>{const _0x1c3718=_0x536f1b;if(_0x3f9dd4==null)return;const {unitId:_0x322657,redoState:_0x4b327d,commandId:_0x44081b}=_0x3f9dd4;if(_0x322657!==_0x39f999[_0x1c3718(0x335)])return;const _0x435320={'id':_0x44081b,'type':a['CommandType'][_0x1c3718(0x339)],'params':{'unitId':_0x322657,'actions':_0x4b327d[_0x1c3718(0x269)],'textRanges':null}};_0x39f999[_0x1c3718(0x2d4)](_0x435320);});if(_0x39f999[_0x536f1b(0x276)](_0xc0c2a5),_0x39f999 instanceof u[_0x536f1b(0x34e)]){const _0x196b62={'onTransformIME':_0x2a52cf=>this['_docTransformIMECacheService'][_0x536f1b(0x2e8)](_0x2a52cf),'onTransformState':_0x5a0f9a=>this[_0x536f1b(0x28b)][_0x536f1b(0x326)](_0x5a0f9a),'onTransformSelections':_0xf29ddf=>this[_0x536f1b(0x297)][_0x536f1b(0x138)](_0xf29ddf),'onSyncEditingCollabCursor':_0x2f8488=>this[_0x536f1b(0x333)][_0x536f1b(0xf3)](_0x2f8488),'onTransformRemoteChangesetByIMECache':_0x2f9caa=>this[_0x536f1b(0x127)]['transformRemoteChangeset'](_0x2f9caa),'onTransformRemoteChangesetByStateCache':_0x27966a=>this[_0x536f1b(0x28b)][_0x536f1b(0x248)](_0x27966a)};_0x39f999[_0x536f1b(0x32c)](_0x196b62);}}));}};Q=gs([P(0x0,a[_0x170c79(0x27c)](b[_0x170c79(0x29e)])),P(0x1,a[_0x170c79(0x27c)](u[_0x170c79(0x249)])),P(0x2,a[_0x170c79(0x27c)](z)),P(0x3,a[_0x170c79(0x27c)](J)),P(0x4,a['Inject'](Z)),P(0x5,a[_0x170c79(0x27c)](be)),P(0x6,w[_0x170c79(0x2e2)]),P(0x7,a[_0x170c79(0x27c)](a[_0x170c79(0x254)]))],Q);var ps=Object[_0x170c79(0x1b3)],Cs=Object['getOwnPropertyDescriptor'],bs=(_0x1380ca,_0x1810ad,_0x1c56a2,_0x2ed5a4)=>{const _0x379cf4=_0x170c79;for(var _0x559ed4=_0x2ed5a4>0x1?void 0x0:_0x2ed5a4?Cs(_0x1810ad,_0x1c56a2):_0x1810ad,_0xebbead=_0x1380ca[_0x379cf4(0x30e)]-0x1,_0x521520;_0xebbead>=0x0;_0xebbead--)(_0x521520=_0x1380ca[_0xebbead])&&(_0x559ed4=(_0x2ed5a4?_0x521520(_0x1810ad,_0x1c56a2,_0x559ed4):_0x521520(_0x559ed4))||_0x559ed4);return _0x2ed5a4&&_0x559ed4&&ps(_0x1810ad,_0x1c56a2,_0x559ed4),_0x559ed4;},_e=(_0x1f4550,_0x57791f)=>(_0x6fdafb,_0x4b1dc3)=>_0x57791f(_0x6fdafb,_0x4b1dc3,_0x1f4550);let pe=class extends a[_0x170c79(0x31f)]{constructor(_0x3f6076,_0x31d060,_0x13f348){const _0x3da640=_0x170c79;super(),_(this,_0x3da640(0x2b9),new Map()),_(this,_0x3da640(0x123),new Map()),_(this,_0x3da640(0x2e7),!0x1),(this[_0x3da640(0x1f8)]=_0x3f6076,this['_localStorageService']=_0x31d060,this[_0x3da640(0x110)]=_0x13f348);}[_0x170c79(0x183)](){const _0x42c3c5=_0x170c79;this[_0x42c3c5(0x2e7)]=!0x0;}[_0x170c79(0x114)](){const _0x4eb0c9=_0x170c79;this[_0x4eb0c9(0x2e7)]=!0x1;}get['saveTaskMap'](){const _0x1a8d00=_0x170c79;return this[_0x1a8d00(0x123)];}[_0x170c79(0x2dc)](){const _0x332a50=_0x170c79;this[_0x332a50(0x283)]()[_0x332a50(0x263)](()=>super[_0x332a50(0x2dc)]());}async['loadOfflineData'](_0x20fe50){const _0x41ce4c=_0x170c79;return this['_disabled']?null:this[_0x41ce4c(0x149)][_0x41ce4c(0x307)](u['getLocalCacheKey'](_0x20fe50));}async[_0x170c79(0x1eb)](_0x296fc6,_0x3fab69){const _0x2f3c32=_0x170c79;return!!this[_0x2f3c32(0x149)][_0x2f3c32(0x347)](_0x296fc6,_0x3fab69);}[_0x170c79(0x145)](_0x33fce7,_0x509246,_0x3d6cf8,_0x36818a){const _0x19d5af=_0x170c79,_0x39b5df=this[_0x19d5af(0x110)]['getCurrentRevOfUnit'](_0x33fce7);this['_cachedData'][_0x19d5af(0x1b1)](_0x33fce7,{'unitID':_0x33fce7,'type':_0x509246,'awaitingChangeset':_0x3d6cf8,'mutations':_0x36818a,'rev':_0x39b5df}),this['_saveTaskMap'][_0x19d5af(0x27b)](_0x33fce7)||this['_scheduleSaving'](_0x33fce7);}[_0x170c79(0x16b)](_0x149ed0){const _0x5249e0=_0x170c79,_0x1a9555=this[_0x5249e0(0x253)]();_0x1a9555===0x0?this[_0x5249e0(0x2ea)](_0x149ed0):this['_saveTaskMap'][_0x5249e0(0x1b1)](_0x149ed0,setTimeout(()=>this[_0x5249e0(0x2ea)](_0x149ed0),_0x1a9555));}[_0x170c79(0x253)](){const _0x250e9f=_0x170c79;var _0x4a9f24;return(_0x4a9f24=this[_0x250e9f(0x1f8)][_0x250e9f(0x251)](u[_0x250e9f(0x21d)]))!=null?_0x4a9f24:u['LOCAL_CACHE_INTERVAL'];}[_0x170c79(0x2ea)](_0x3a585d){const _0xc35c6f=_0x170c79,_0x4f0bc7=this[_0xc35c6f(0x123)][_0xc35c6f(0x1fb)](_0x3a585d);return _0x4f0bc7!==void 0x0&&window[_0xc35c6f(0x34c)](_0x4f0bc7),this[_0xc35c6f(0x149)][_0xc35c6f(0x347)](u[_0xc35c6f(0x1f6)](_0x3a585d),this[_0xc35c6f(0x2b9)][_0xc35c6f(0x1fb)](_0x3a585d))[_0xc35c6f(0x263)](()=>this[_0xc35c6f(0x123)][_0xc35c6f(0x16f)](_0x3a585d));}async[_0x170c79(0x283)](){const _0x3c63e6=_0x170c79,_0x27c0dd=[];this['_saveTaskMap'][_0x3c63e6(0x292)]((_0x514548,_0x14d6e6)=>{const _0x412f3f=_0x3c63e6;window[_0x412f3f(0x34c)](_0x514548),_0x27c0dd[_0x412f3f(0x22f)](this[_0x412f3f(0x2ea)](_0x14d6e6)[_0x412f3f(0x263)](()=>{const _0x5b8475=_0x412f3f;this[_0x5b8475(0x123)]['delete'](_0x14d6e6);}));}),await Promise[_0x3c63e6(0x34d)](_0x27c0dd);}};pe=bs([_e(0x0,a[_0x170c79(0x23c)]),_e(0x1,a[_0x170c79(0x168)]),_e(0x2,a[_0x170c79(0x27c)](g[_0x170c79(0x122)]))],pe);class Xe extends a[_0x170c79(0x20f)]{constructor(){const _0x243577=_0x170c79;super(),_(this,_0x243577(0x2b2)),this['urlChange$']=S[_0x243577(0x2dd)](window,'popstate')[_0x243577(0x238)](S[_0x243577(0x1f1)](this[_0x243577(0x2d9)]),S['shareReplay'](0x1),S[_0x243577(0x2b0)](void 0x0));}[_0x170c79(0x2d7)](_0x4be7da,_0x159ce9,_0x38a274=!0x1){const _0x46e392=_0x170c79,_0x59ef0a=new URL(window[_0x46e392(0x2ed)][_0x46e392(0x228)]);_0x59ef0a[_0x46e392(0x15a)][_0x46e392(0x1b1)](_0x4be7da,_0x159ce9),_0x38a274?window[_0x46e392(0x29b)]['replaceState']('','',_0x59ef0a[_0x46e392(0x1ae)]()):window[_0x46e392(0x29b)][_0x46e392(0x261)]('','',_0x59ef0a[_0x46e392(0x1ae)]());}['removeParam'](_0x12ada9,_0x1cd3a3=!0x1){const _0x5ad309=_0x170c79,_0x5f3166=new URL(window[_0x5ad309(0x2ed)][_0x5ad309(0x228)]);_0x5f3166[_0x5ad309(0x15a)][_0x5ad309(0x16f)](_0x12ada9),_0x1cd3a3?window[_0x5ad309(0x29b)][_0x5ad309(0x21c)]('','',_0x5f3166['toString']()):window[_0x5ad309(0x29b)][_0x5ad309(0x261)]('','',_0x5f3166[_0x5ad309(0x1ae)]());}[_0x170c79(0x21f)](_0x3d0084){const _0x282b76=_0x170c79;var _0x5e4d8e;return(_0x5e4d8e=new URL(window[_0x282b76(0x2ed)][_0x282b76(0x228)])[_0x282b76(0x15a)][_0x282b76(0x1fb)](_0x3d0084))!=null?_0x5e4d8e:void 0x0;}}var Ve=Object[_0x170c79(0x1b3)],Es=Object[_0x170c79(0x2f6)],Rs=(_0x531c5f,_0x3be59b,_0x44580d)=>_0x3be59b in _0x531c5f?Ve(_0x531c5f,_0x3be59b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44580d}):_0x531c5f[_0x3be59b]=_0x44580d,Ts=(_0x3860d3,_0x2f1854,_0x497007,_0x3ca9fc)=>{const _0x5872c0=_0x170c79;for(var _0xff98ba=_0x3ca9fc>0x1?void 0x0:_0x3ca9fc?Es(_0x2f1854,_0x497007):_0x2f1854,_0x306542=_0x3860d3[_0x5872c0(0x30e)]-0x1,_0x27283a;_0x306542>=0x0;_0x306542--)(_0x27283a=_0x3860d3[_0x306542])&&(_0xff98ba=(_0x3ca9fc?_0x27283a(_0x2f1854,_0x497007,_0xff98ba):_0x27283a(_0xff98ba))||_0xff98ba);return _0x3ca9fc&&_0xff98ba&&Ve(_0x2f1854,_0x497007,_0xff98ba),_0xff98ba;},ue=(_0x504854,_0x1f5e4b)=>(_0x24c48a,_0x406c4d)=>_0x1f5e4b(_0x24c48a,_0x406c4d,_0x504854),Os=(_0x3b4773,_0x497b6c,_0x5e489c)=>Rs(_0x3b4773,_0x497b6c+'',_0x5e489c);const Ds=_0x170c79(0x154);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x170c79(0x1ad)]{constructor(_0xd08e41=Le,_0x2a1315,_0x213f41,_0x12fa74){const _0x16bfa8=_0x170c79;super(),this[_0x16bfa8(0x1c7)]=_0xd08e41,this[_0x16bfa8(0x29f)]=_0x2a1315,this['_injector']=_0x213f41,this['_configService']=_0x12fa74;const {..._0x469af8}=a[_0x16bfa8(0x1f7)]({},Le,this[_0x16bfa8(0x1c7)]);this[_0x16bfa8(0x1f8)][_0x16bfa8(0x2cd)](is,_0x469af8);}[_0x170c79(0x1a7)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x170c79(0x19b)](){const _0x36b2b8=_0x170c79;this[_0x36b2b8(0x105)]();}['_registerDependencies'](){const _0x44e6d8=_0x170c79;var _0x41b48d;const _0x569d40=[[Ce],[Z],[z],[J],[be],[Re,{'useClass':Xe}],[fe['ISocketService'],{'useClass':fe[_0x44e6d8(0x13c)]}],[u[_0x44e6d8(0x210)],{'useClass':pe}],[exports[_0x44e6d8(0xe6)]],[Q],[K],[x],[Se],[exports[_0x44e6d8(0x342)]]];a[_0x44e6d8(0x1f2)](this['_injector'],a['mergeOverrideWithDependencies'](_0x569d40,(_0x41b48d=this[_0x44e6d8(0x1c7)])==null?void 0x0:_0x41b48d[_0x44e6d8(0x159)]));}[_0x170c79(0x105)](){const _0x33e5e7=_0x170c79;this[_0x33e5e7(0x276)](this[_0x33e5e7(0x29f)][_0x33e5e7(0x294)](a['UniverInstanceType'][_0x33e5e7(0x1b9)],[Ie])),this[_0x33e5e7(0x276)](this[_0x33e5e7(0x29f)]['registerRenderModule'](a[_0x33e5e7(0x15c)][_0x33e5e7(0x300)],[ge]));}['_initDependencies'](){const _0x2de6a2=_0x170c79;a[_0x2de6a2(0x14e)](this['_injector'],[[x],[exports[_0x2de6a2(0xe6)]],[Q],[K],[exports[_0x2de6a2(0x342)]]]);}},Os(exports[_0x170c79(0x312)],'pluginName',Ds),exports[_0x170c79(0x312)]=Ts([a['DependentOn'](u[_0x170c79(0x1a2)]),ue(0x1,p[_0x170c79(0x2ca)]),ue(0x2,a[_0x170c79(0x27c)](a[_0x170c79(0x2e0)])),ue(0x3,a[_0x170c79(0x23c)])],exports[_0x170c79(0x312)]);const ye=0x7530,$e=_0x170c79(0x31a);class Ps extends a['Disposable']{constructor(){const _0x4d4579=_0x170c79;super(),_(this,_0x4d4579(0x2f1),a['Tools'][_0x4d4579(0x34a)]()),_(this,_0x4d4579(0x31b),new Set()),_(this,'_unitOnClients',new Map()),_(this,_0x4d4579(0x2e3),null),_(this,_0x4d4579(0x2bc),new Map()),_(this,_0x4d4579(0xf8),new Map()),this[_0x4d4579(0x24d)]();}['dispose'](){const _0xd89c56=_0x170c79;super[_0xd89c56(0x2dc)](),this[_0xd89c56(0x2bc)][_0xd89c56(0x292)]((_0xaea699,_0x4cbf31)=>this['_removeClearOtherTimer'](_0x4cbf31)),this['_heartbeatTimer']&&window[_0xd89c56(0x1c6)](this[_0xd89c56(0x2e3)]);}[_0x170c79(0x158)](_0x524c2d){const _0x2dedce=_0x170c79;return this[_0x2dedce(0x13a)](_0x524c2d)[_0x2dedce(0x238)](S[_0x2dedce(0x26f)]());}[_0x170c79(0x2be)](_0x245f3f){const _0x5edcd1=_0x170c79;this[_0x5edcd1(0x31b)][_0x5edcd1(0x130)]===0x0&&this['_scheduleHeartbeat'](),this[_0x5edcd1(0x31b)][_0x5edcd1(0x16d)](_0x245f3f),this[_0x5edcd1(0x12a)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x245f3f],'isForwarded':!0x1});}['disposeUnit'](_0x462b56){const _0x5d857f=_0x170c79;this[_0x5d857f(0x31b)]['delete'](_0x462b56),this[_0x5d857f(0x31b)][_0x5d857f(0x130)]===0x0&&this[_0x5d857f(0x2e3)]&&window[_0x5d857f(0x1c6)](this[_0x5d857f(0x2e3)]);}['_init'](){const _0x31d30a=_0x170c79;this['disposeWithMe'](a[_0x31d30a(0x170)](S[_0x31d30a(0x2dd)](window,_0x31d30a(0x252))[_0x31d30a(0x18f)](_0x40d65c=>{const _0x324990=_0x31d30a;if(_0x40d65c[_0x324990(0x1d0)]!==$e||!_0x40d65c[_0x324990(0x313)])return;const _0x478911=JSON[_0x324990(0x1cc)](_0x40d65c[_0x324990(0x313)]);this['_handleEvent'](_0x478911);}))),window[_0x31d30a(0x11a)](_0x31d30a(0x1ce),()=>this[_0x31d30a(0x12a)]({'type':0x1,'memberID':this[_0x31d30a(0x2f1)],'unitIDs':Array[_0x31d30a(0x1b5)](this[_0x31d30a(0x31b)])}));}[_0x170c79(0x2f5)](_0x16dccf){const _0xe9132c=_0x170c79;switch(_0x16dccf[_0xe9132c(0x1a9)]){case 0x0:this[_0xe9132c(0x102)](_0x16dccf);break;case 0x1:this[_0xe9132c(0x266)](_0x16dccf);break;case 0x2:this[_0xe9132c(0x244)](_0x16dccf);break;}}[_0x170c79(0x102)](_0x2bb7ab){const _0x3e178a=_0x170c79,{unitIDs:_0x448e0b,memberID:_0x327434,isForwarded:_0x32b131}=_0x2bb7ab;_0x448e0b[_0x3e178a(0x292)](_0x48dcc3=>{const _0x1353ec=_0x3e178a;if(!_0x32b131&&this[_0x1353ec(0x331)][_0x1353ec(0x27b)](_0x48dcc3)&&this[_0x1353ec(0x13a)](_0x48dcc3)[_0x1353ec(0x25c)](u['UnitStatus']['OTHER_CLIENTS_EDITING']),!this[_0x1353ec(0x331)][_0x1353ec(0x27b)](_0x48dcc3)||!this[_0x1353ec(0x331)]['get'](_0x48dcc3)[_0x1353ec(0x27b)](_0x327434)){const _0x177678=this['_unitOnClients'][_0x1353ec(0x1fb)](_0x48dcc3)||new Set();_0x177678['add'](_0x327434),this['_unitOnClients'][_0x1353ec(0x1b1)](_0x48dcc3,_0x177678),this['_scheduleClearOtherTimer'](_0x327434);}}),_0x32b131||this[_0x3e178a(0x12a)]({'type':0x0,'memberID':this[_0x3e178a(0x2f1)],'unitIDs':[...this[_0x3e178a(0x31b)]],'isForwarded':!0x0});}[_0x170c79(0x13f)](_0x14dd85){const _0x2111fe=_0x170c79;this['_removeClearOtherTimer'](_0x14dd85);const _0x41e28f=window['setTimeout'](()=>{const _0x239617=_0xc691;this['_unitOnClients'][_0x239617(0x292)](_0x5d4377=>{_0x5d4377['delete'](_0x14dd85);});},ye*0x2);this[_0x2111fe(0x2bc)][_0x2111fe(0x1b1)](_0x14dd85,_0x41e28f);}[_0x170c79(0x2c6)](_0x511c0b){const _0x3c37ff=_0x170c79;if(this[_0x3c37ff(0x2bc)][_0x3c37ff(0x27b)](_0x511c0b)){const _0x11353f=this[_0x3c37ff(0x2bc)][_0x3c37ff(0x1fb)](_0x511c0b);_0x11353f&&window[_0x3c37ff(0x34c)](_0x11353f),this[_0x3c37ff(0x2bc)][_0x3c37ff(0x1b1)](_0x511c0b,null);}}[_0x170c79(0x266)](_0x1e67ff){const _0x1e28b4=_0x170c79,{memberID:_0x2a4ad9,unitIDs:_0x48ee5b}=_0x1e67ff;_0x48ee5b[_0x1e28b4(0x292)](_0x128b37=>{const _0x4248de=_0x1e28b4;var _0x3ecd64;const _0x235e2e=this[_0x4248de(0x331)][_0x4248de(0x1fb)](_0x128b37);_0x235e2e&&(_0x235e2e['delete'](_0x2a4ad9),(_0x3ecd64=this[_0x4248de(0x13a)](_0x128b37))==null||_0x3ecd64['next'](_0x235e2e['size']===0x0?u[_0x4248de(0x275)][_0x4248de(0x1c8)]:u[_0x4248de(0x275)][_0x4248de(0x103)]));}),this['_removeClearOtherTimer'](_0x2a4ad9);}[_0x170c79(0x244)](_0x2e0ae8){const _0x2b4a38=_0x170c79;this[_0x2b4a38(0x13f)](_0x2e0ae8[_0x2b4a38(0x136)]);}['_send'](_0x45bc56){localStorage['setItem']($e,JSON['stringify'](_0x45bc56));}['_scheduleHeartbeat'](){const _0x7da3a8=_0x170c79;this[_0x7da3a8(0x2e3)]=window[_0x7da3a8(0x1df)](()=>{const _0x27e5ef=_0x7da3a8;this[_0x27e5ef(0x12a)]({'type':0x2,'memberID':this[_0x27e5ef(0x2f1)]});},ye);}[_0x170c79(0x13a)](_0x21d83a){const _0x15d766=_0x170c79;return this[_0x15d766(0xf8)][_0x15d766(0x27b)](_0x21d83a)||this[_0x15d766(0xf8)][_0x15d766(0x1b1)](_0x21d83a,new S[(_0x15d766(0x11b))](u[_0x15d766(0x275)][_0x15d766(0x1c8)])),this[_0x15d766(0xf8)]['get'](_0x21d83a);}}var Ge=(_0x1b660e=>(_0x1b660e[_0x1b660e[_0x170c79(0x118)]=0x0]=_0x170c79(0x118),_0x1b660e[_0x1b660e['OK']=0x1]='OK',_0x1b660e[_0x1b660e['INTERNAL_ERROR']=0x2]=_0x170c79(0xee),_0x1b660e[_0x1b660e[_0x170c79(0x293)]=0x3]=_0x170c79(0x293),_0x1b660e[_0x1b660e[_0x170c79(0x225)]=0x4]='NOT_FOUND',_0x1b660e[_0x1b660e[_0x170c79(0x28c)]=0x5]=_0x170c79(0x28c),_0x1b660e[_0x1b660e[_0x170c79(0x239)]=0x6]=_0x170c79(0x239),_0x1b660e[_0x1b660e[_0x170c79(0x120)]=0x7]=_0x170c79(0x120),_0x1b660e[_0x1b660e[_0x170c79(0x346)]=0x8]=_0x170c79(0x346),_0x1b660e[_0x1b660e[_0x170c79(0x185)]=0x9]='COMPLETION_FINISHED',_0x1b660e[_0x1b660e[_0x170c79(0x2e9)]=0x1389]=_0x170c79(0x2e9),_0x1b660e[_0x1b660e[_0x170c79(0x18a)]=0x1771]=_0x170c79(0x18a),_0x1b660e[_0x1b660e['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x1b660e[_0x1b660e[_0x170c79(0x182)]=0x1773]=_0x170c79(0x182),_0x1b660e[_0x1b660e[_0x170c79(0x16c)]=0x1b59]='APPLY_REJECT',_0x1b660e[_0x1b660e[_0x170c79(0x260)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x1b660e[_0x1b660e[_0x170c79(0x304)]=0x1b5b]=_0x170c79(0x304),_0x1b660e[_0x1b660e[_0x170c79(0x2b5)]=0x1b5c]=_0x170c79(0x2b5),_0x1b660e[_0x1b660e[_0x170c79(0x2d5)]=0x1b5d]='APPLY_DUPLICATED',_0x1b660e[_0x1b660e[_0x170c79(0x1e5)]=0x1f41]=_0x170c79(0x1e5),_0x1b660e[_0x1b660e[_0x170c79(0x1bd)]=0x2329]=_0x170c79(0x1bd),_0x1b660e[_0x1b660e[_0x170c79(0x189)]=0x232a]=_0x170c79(0x189),_0x1b660e[_0x1b660e[_0x170c79(0xe9)]=0x232b]=_0x170c79(0xe9),_0x1b660e[_0x1b660e['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x170c79(0x309),_0x1b660e[_0x1b660e[_0x170c79(0x17b)]=0x232d]=_0x170c79(0x17b),_0x1b660e[_0x1b660e['YUUMI_UNABLE_LOAD_URL']=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x1b660e[_0x1b660e[_0x170c79(0x226)]=0x2712]=_0x170c79(0x226),_0x1b660e[_0x1b660e[_0x170c79(0x322)]=0x2713]=_0x170c79(0x322),_0x1b660e[_0x1b660e['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x170c79(0x2f2),_0x1b660e[_0x1b660e[_0x170c79(0x296)]=-0x1]=_0x170c79(0x296),_0x1b660e))(Ge||{}),Ms=Object[_0x170c79(0x1b3)],Us=Object['getOwnPropertyDescriptor'],Ns=(_0x2bf08a,_0xe3528e,_0x1496c0,_0x1fbbc5)=>{for(var _0x39b518=_0x1fbbc5>0x1?void 0x0:_0x1fbbc5?Us(_0xe3528e,_0x1496c0):_0xe3528e,_0x5b3275=_0x2bf08a['length']-0x1,_0x3cf637;_0x5b3275>=0x0;_0x5b3275--)(_0x3cf637=_0x2bf08a[_0x5b3275])&&(_0x39b518=(_0x1fbbc5?_0x3cf637(_0xe3528e,_0x1496c0,_0x39b518):_0x3cf637(_0x39b518))||_0x39b518);return _0x1fbbc5&&_0x39b518&&Ms(_0xe3528e,_0x1496c0,_0x39b518),_0x39b518;},de=(_0x5a21f8,_0xc9d6bd)=>(_0x1f13f7,_0x58dca5)=>_0xc9d6bd(_0x1f13f7,_0x58dca5,_0x5a21f8);exports[_0x170c79(0x1b6)]=class extends a[_0x170c79(0x31f)]{constructor(_0x1ae79d,_0x408126,_0x5852e0){const _0x390bc4=_0x170c79;super(),this['_instanceService']=_0x1ae79d,this[_0x390bc4(0x302)]=_0x408126,this[_0x390bc4(0x1f8)]=_0x5852e0;}async['runOnServer'](_0x34497b,_0x927499,_0x4f64c8,..._0x3e24ec){const _0x58899e=_0x170c79;var _0x3e1b84,_0x3e858a;const _0x16c195=this[_0x58899e(0x179)]['getFocusedUnit']();if(!_0x16c195)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x478755=((_0x3e1b84=this['_configService'][_0x58899e(0x251)](u[_0x58899e(0x273)]))!=null?_0x3e1b84:u[_0x58899e(0x1fc)])+'/'+_0x34497b+_0x58899e(0x2d3)+_0x927499,_0x4c381a=new URL(window[_0x58899e(0x2ed)]['href']),_0x1fdff1={'scriptId':_0x34497b,'runId':(_0x3e858a=_0x4c381a[_0x58899e(0x15a)][_0x58899e(0x1fb)](_0x58899e(0x1db)))!=null?_0x3e858a:'','function':_0x927499,'unitId':_0x16c195[_0x58899e(0x30b)](),'argsOfFunction':JSON['stringify'](_0x3e24ec),'invokeId':_0x4f64c8['invokeId'],'executionId':_0x4f64c8[_0x58899e(0x270)]};try{const _0xfc8909=await this['_httpService'][_0x58899e(0x2b6)](_0x478755,{'body':_0x1fdff1});return!(_0xfc8909['body'][_0x58899e(0x10b)]&&_0xfc8909[_0x58899e(0x1d5)][_0x58899e(0x10b)]['code']!==Ge['OK']);}catch{return!0x1;}}},exports[_0x170c79(0x1b6)]=Ns([de(0x0,a[_0x170c79(0x126)]),de(0x1,a[_0x170c79(0x27c)](fe[_0x170c79(0x173)])),de(0x2,a[_0x170c79(0x23c)])],exports[_0x170c79(0x1b6)]),exports[_0x170c79(0x259)]=Ye,exports[_0x170c79(0x2c0)]=Re,exports[_0x170c79(0x1af)]=je,exports['WebBrowserSingleActiveUnitService']=Ps,exports[_0x170c79(0x1d2)]=Xe;