@univerjs-pro/collaboration-client-ui 0.6.10-nightly.202504111607 → 0.6.10-nightly.202504131606

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 _0x59c71a=_0x5434;(function(_0x277c7c,_0x38f0b8){const _0x2f0c18=_0x5434,_0x23ade8=_0x277c7c();while(!![]){try{const _0xe84199=-parseInt(_0x2f0c18(0xdf))/0x1*(parseInt(_0x2f0c18(0xe3))/0x2)+parseInt(_0x2f0c18(0xdb))/0x3+parseInt(_0x2f0c18(0xd7))/0x4+parseInt(_0x2f0c18(0xd5))/0x5*(-parseInt(_0x2f0c18(0xe0))/0x6)+-parseInt(_0x2f0c18(0xe6))/0x7*(-parseInt(_0x2f0c18(0xe2))/0x8)+-parseInt(_0x2f0c18(0xd8))/0x9+parseInt(_0x2f0c18(0xe1))/0xa*(parseInt(_0x2f0c18(0xe4))/0xb);if(_0xe84199===_0x38f0b8)break;else _0x23ade8['push'](_0x23ade8['shift']());}catch(_0x3ecf4b){_0x23ade8['push'](_0x23ade8['shift']());}}}(_0x5cf8,0x85d2c));function _0x5434(_0x523c0d,_0xabbd3){const _0x5cf8ef=_0x5cf8();return _0x5434=function(_0x54349a,_0x533d0f){_0x54349a=_0x54349a-0xd5;let _0x492121=_0x5cf8ef[_0x54349a];return _0x492121;},_0x5434(_0x523c0d,_0xabbd3);}const t=require(_0x59c71a(0xd9)),e=require(_0x59c71a(0xda));function _0x5cf8(){const _0x4c235f=['81024BNyTVF','get','runOnServer','extend','63471MKoJnT','102eNOSew','1730KBgbmB','32YRwGgy','10RzUVPj','128975nKskcX','FUniver','333725kSVjEW','110030tfYsns','_injector','211116MzOLhF','9533835iTBdLt','@univerjs-pro/collaboration-client-ui','@univerjs/core/facade'];_0x5cf8=function(){return _0x4c235f;};return _0x5cf8();}class c extends e[_0x59c71a(0xe5)]{[_0x59c71a(0xdd)](_0x1ff60d,_0x463455,..._0x5170da){const _0x279ccb=_0x59c71a;return this[_0x279ccb(0xd6)][_0x279ccb(0xdc)](t['RemoteUniscriptService'])['runOnServer'](_0x1ff60d,_0x463455,{},..._0x5170da);}}e[_0x59c71a(0xe5)][_0x59c71a(0xde)](c);
1
+ 'use strict';const _0x58fcb4=_0x50e1;function _0x50e1(_0x1cef9a,_0x49d13e){const _0x220a60=_0x220a();return _0x50e1=function(_0x50e18f,_0x191cf9){_0x50e18f=_0x50e18f-0x1ec;let _0x28f271=_0x220a60[_0x50e18f];return _0x28f271;},_0x50e1(_0x1cef9a,_0x49d13e);}function _0x220a(){const _0x325aeb=['1336914AtAOkL','1483692wzhFks','6nTXQXt','2211608xYXeYq','2281736WZQfeB','RemoteUniscriptService','@univerjs/core/facade','extend','5914hymhYV','889133jZPRCq','30JrwJGU','get','54ayGQAO','_injector','1393355qoNbda','runOnServer','FUniver'];_0x220a=function(){return _0x325aeb;};return _0x220a();}(function(_0x109eab,_0x13c3cb){const _0x39d810=_0x50e1,_0x191a40=_0x109eab();while(!![]){try{const _0x37f4a8=-parseInt(_0x39d810(0x1fb))/0x1*(-parseInt(_0x39d810(0x1ee))/0x2)+parseInt(_0x39d810(0x1f4))/0x3+-parseInt(_0x39d810(0x1f7))/0x4+parseInt(_0x39d810(0x1f0))/0x5*(parseInt(_0x39d810(0x1f5))/0x6)+parseInt(_0x39d810(0x1fc))/0x7+parseInt(_0x39d810(0x1f6))/0x8+parseInt(_0x39d810(0x1f3))/0x9*(-parseInt(_0x39d810(0x1ec))/0xa);if(_0x37f4a8===_0x13c3cb)break;else _0x191a40['push'](_0x191a40['shift']());}catch(_0xcdd2de){_0x191a40['push'](_0x191a40['shift']());}}}(_0x220a,0x4e337));const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0x58fcb4(0x1f9));class c extends e[_0x58fcb4(0x1f2)]{[_0x58fcb4(0x1f1)](_0x45aa5d,_0x21c1ee,..._0x44b1d3){const _0x48e02f=_0x58fcb4;return this[_0x48e02f(0x1ef)][_0x48e02f(0x1ed)](t[_0x48e02f(0x1f8)])[_0x48e02f(0x1f1)](_0x45aa5d,_0x21c1ee,{},..._0x44b1d3);}}e[_0x58fcb4(0x1f2)][_0x58fcb4(0x1fa)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x28af75=_0x4bb0;(function(_0x41a811,_0x591981){const _0x52a93a=_0x4bb0,_0x35fe21=_0x41a811();while(!![]){try{const _0x548b20=-parseInt(_0x52a93a(0x1ae))/0x1+parseInt(_0x52a93a(0x1f1))/0x2*(parseInt(_0x52a93a(0x124))/0x3)+-parseInt(_0x52a93a(0x15c))/0x4+-parseInt(_0x52a93a(0x19b))/0x5*(parseInt(_0x52a93a(0x29c))/0x6)+-parseInt(_0x52a93a(0x2bf))/0x7+-parseInt(_0x52a93a(0x106))/0x8+parseInt(_0x52a93a(0x2b5))/0x9*(parseInt(_0x52a93a(0x309))/0xa);if(_0x548b20===_0x591981)break;else _0x35fe21['push'](_0x35fe21['shift']());}catch(_0x4b9b40){_0x35fe21['push'](_0x35fe21['shift']());}}}(_0x48a7,0x42002));var Xe=Object[_0x28af75(0x159)],Ge=(_0x60a8eb,_0x133aac,_0x5d9adc)=>_0x133aac in _0x60a8eb?Xe(_0x60a8eb,_0x133aac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d9adc}):_0x60a8eb[_0x133aac]=_0x5d9adc,_=(_0x37a173,_0x485e1b,_0x26bd81)=>Ge(_0x37a173,typeof _0x485e1b!='symbol'?_0x485e1b+'':_0x485e1b,_0x26bd81);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const u=require(_0x28af75(0x292)),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),q=require(_0x28af75(0x31a)),b=require(_0x28af75(0x205)),qe=require('@univerjs/drawing'),d=require(_0x28af75(0x1d7)),Y=require(_0x28af75(0x191)),m=require(_0x28af75(0x263)),Te=require('@univerjs/engine-formula'),g=require(_0x28af75(0xd1)),$=require(_0x28af75(0xeb)),G=require(_0x28af75(0x2de)),L=require('react/jsx-runtime'),R=require(_0x28af75(0x2ec)),T=require(_0x28af75(0x34a)),M=require(_0x28af75(0x2ca)),Ke=require(_0x28af75(0x18f));var ze=Object[_0x28af75(0x30c)],Je=(_0x3771d8,_0x2a9252,_0x91bf6a,_0x4fa9ea)=>{const _0x4b9262=_0x28af75;for(var _0x16b858=_0x4fa9ea>0x1?void 0x0:_0x4fa9ea?ze(_0x2a9252,_0x91bf6a):_0x2a9252,_0x13f702=_0x3771d8[_0x4b9262(0x1af)]-0x1,_0x31dea5;_0x13f702>=0x0;_0x13f702--)(_0x31dea5=_0x3771d8[_0x13f702])&&(_0x16b858=_0x31dea5(_0x16b858)||_0x16b858);return _0x16b858;},Re=(_0x653061,_0x4f111e)=>(_0x3eb3e0,_0x4a5a19)=>_0x4f111e(_0x3eb3e0,_0x4a5a19,_0x653061);let fe=class extends a[_0x28af75(0x1de)]{constructor(_0x5210eb,_0x2a4cd4){const _0x25ec1d=_0x28af75;super(),this[_0x25ec1d(0x177)]=_0x5210eb,this[_0x25ec1d(0x219)]=_0x2a4cd4,this[_0x25ec1d(0x166)]();}[_0x28af75(0x166)](){const _0x3352c6=_0x28af75,_0x111837=this;this[_0x3352c6(0x253)](this[_0x3352c6(0x177)][_0x3352c6(0x1ad)]({'onBeforePasteImage':async _0x432bbb=>{const _0x2c7c79=_0x3352c6,_0x3a73a0=await _0x111837[_0x2c7c79(0x219)][_0x2c7c79(0x1fd)](_0x432bbb);return _0x3a73a0?{'source':_0x3a73a0[_0x2c7c79(0xee)],'imageSourceType':_0x3a73a0['imageSourceType']}:null;}}));}};fe=Je([Re(0x0,b[_0x28af75(0x107)]),Re(0x1,qe['IImageIoService'])],fe);const Oe=[_0x28af75(0x2fc),_0x28af75(0x25b),_0x28af75(0x128),_0x28af75(0x1e2),_0x28af75(0x2ce),_0x28af75(0xf0)];class Ce extends a[_0x28af75(0x242)]{constructor(){const _0x497671=_0x28af75;super(...arguments),_(this,_0x497671(0x206),new Map()),_(this,_0x497671(0x15d),0x0);}[_0x28af75(0x283)](_0x526a70){const _0xf88571=_0x28af75;if(this[_0xf88571(0x206)][_0xf88571(0x1d6)](_0x526a70))return this['_assignedColors'][_0xf88571(0x340)](_0x526a70);const _0x703de7=Oe[this[_0xf88571(0x15d)]];return this[_0xf88571(0x15d)]=(this[_0xf88571(0x15d)]+0x1)%Oe['length'],this[_0xf88571(0x206)]['set'](_0x526a70,_0x703de7),_0x703de7;}}function we(_0x41bce8){const _0x2debeb=_0x28af75;let _0x28b99d='';for(const _0x51e5bd of _0x41bce8){const {startOffset:_0x1f3d8d,endOffset:_0x21d0fb,isActive:_0xcf64fa,rangeType:_0x26c1d5,segmentId:_0x10adcb,segmentPage:_0x476684}=_0x51e5bd;_0x28b99d[_0x2debeb(0x1af)]&&(_0x28b99d+=','),_0x28b99d+=_0x1f3d8d+':'+_0x21d0fb+':'+(_0xcf64fa?'1':'0')+':'+_0x26c1d5+':'+_0x10adcb+':'+_0x476684;}return _0x28b99d;}function Ze(_0x1c713a){const _0x25d508=_0x28af75,_0x346e6b=_0x1c713a[_0x25d508(0x1fa)](','),_0x30918c=[];for(const _0x568a57 of _0x346e6b){const [_0xf4381d,_0x34035a,_0x3d3530,_0x4ead4d,_0x284db8,_0x194d8a]=_0x568a57[_0x25d508(0x1fa)](':');_0x30918c[_0x25d508(0x230)]({'startOffset':Number(_0xf4381d),'endOffset':Number(_0x34035a),'collapsed':_0xf4381d===_0x34035a,'isActive':_0x3d3530==='1','rangeType':_0x4ead4d===a['DOC_RANGE_TYPE'][_0x25d508(0x160)]?a[_0x25d508(0x216)][_0x25d508(0x160)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x284db8==_0x25d508(0x12e)?String(_0x284db8):'','segmentPage':Number(_0x194d8a!=null?_0x194d8a:-0x1)});}return _0x30918c[_0x25d508(0x1e5)](_0x5dfbdc=>_0x5dfbdc['isActive'])||(_0x30918c[0x0][_0x25d508(0xd7)]=!0x0),_0x30918c;}class pe extends a['RxDisposable']{constructor(){const _0x4ba2f6=_0x28af75;super(...arguments),_(this,'_collabCursorState$',new d[(_0x4ba2f6(0x19f))](null)),_(this,_0x4ba2f6(0x254),this[_0x4ba2f6(0x126)][_0x4ba2f6(0x324)]());}[_0x28af75(0x2f4)](_0x402a50){const _0x48e94b=_0x28af75,{unitID:_0x188891,memberID:_0x1a8cad,textRanges:_0x4bc01a}=_0x402a50,_0x4c9024=we(_0x4bc01a);if(_0x4c9024==='')return;const _0x509c90={'unitID':_0x188891,'memberID':_0x1a8cad,'selection':_0x4c9024};this[_0x48e94b(0x126)][_0x48e94b(0x14d)](_0x509c90);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0x22137d,_0x5bd576,_0x1ae0cb,_0x2592b4)=>{const _0x30b963=_0x28af75;for(var _0x4c5446=_0x2592b4>0x1?void 0x0:_0x2592b4?Qe(_0x5bd576,_0x1ae0cb):_0x5bd576,_0x1481d2=_0x22137d[_0x30b963(0x1af)]-0x1,_0x29db3a;_0x1481d2>=0x0;_0x1481d2--)(_0x29db3a=_0x22137d[_0x1481d2])&&(_0x4c5446=_0x29db3a(_0x4c5446)||_0x4c5446);return _0x4c5446;},P=(_0x4b1643,_0x349165)=>(_0x341c1b,_0x356c4e)=>_0x349165(_0x341c1b,_0x356c4e,_0x4b1643);const tt=0x12c,st=0x64;let Se=class extends a['RxDisposable']{constructor(_0x1b0a62,_0x3f6b98,_0x385040,_0x4fa429,_0x279511,_0x373c87,_0x2aedb0,_0x586013,_0x433797){const _0x5637bc=_0x28af75;super(),_(this,_0x5637bc(0x1c7),!0x1),_(this,_0x5637bc(0x166),!0x1),_(this,_0x5637bc(0x20d),new d[(_0x5637bc(0x19f))](new Map())),_(this,_0x5637bc(0x1a2),this[_0x5637bc(0x20d)]['asObservable']()),_(this,'_roomMembers$',new d[(_0x5637bc(0x19f))]([])),_(this,_0x5637bc(0x27e),this['_roomMembers$'][_0x5637bc(0x214)](d[_0x5637bc(0x1cf)](tt))),_(this,_0x5637bc(0x17a),a[_0x5637bc(0x28f)](_0x4a4cda=>{const _0x1ed976=_0x5637bc,_0x322da={'eventID':m[_0x1ed976(0x1ca)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1ed976(0x24c)],'memberID':this[_0x1ed976(0x259)][_0x1ed976(0x322)](),'selection':we(_0x4a4cda)}};this[_0x1ed976(0x259)][_0x1ed976(0x27b)](_0x322da,this[_0x1ed976(0x24c)]);},st)),(this['unitID']=_0x1b0a62,this[_0x5637bc(0x259)]=_0x3f6b98,this['_injector']=_0x385040,this[_0x5637bc(0x298)]=_0x4fa429,this[_0x5637bc(0x1b8)]=_0x279511,this[_0x5637bc(0x342)]=_0x373c87,this[_0x5637bc(0xfa)]=_0x2aedb0,this[_0x5637bc(0x337)]=_0x586013,this[_0x5637bc(0x1d8)]=_0x433797);}get[_0x28af75(0x228)](){return this['_cursorInfo$']['getValue']();}get[_0x28af75(0x227)](){const _0x1ffdee=_0x28af75;return this[_0x1ffdee(0xf3)][_0x1ffdee(0x2e9)]();}['dispose'](){const _0x375f9b=_0x28af75;super[_0x375f9b(0x11a)](),this[_0x375f9b(0x20d)]['next'](new Map()),this[_0x375f9b(0x20d)][_0x375f9b(0x18b)](),this[_0x375f9b(0xf3)][_0x375f9b(0x14d)]([]),this[_0x375f9b(0xf3)][_0x375f9b(0x18b)]();}[_0x28af75(0x121)](){const _0x449770=_0x28af75;this[_0x449770(0x166)]||(this[_0x449770(0x166)]=!0x0,this[_0x449770(0x259)]['sessionStatus$'][_0x449770(0x214)](d['takeUntil'](this[_0x449770(0x2b0)]))[_0x449770(0x328)](_0x315815=>{const _0x14d088=_0x449770;_0x315815===u[_0x14d088(0x2d6)][_0x14d088(0x25f)]?this['_toggleOnline']():this[_0x14d088(0x15b)]();}),this[_0x449770(0x259)]['event$'][_0x449770(0x214)](d[_0x449770(0xf5)](this[_0x449770(0x2b0)]))[_0x449770(0x328)](_0x146c07=>{const _0x45479d=_0x449770,_0x1b883c=_0x146c07['eventID'];_0x1b883c===m['CollaborationEvent'][_0x45479d(0x2cb)]&&this[_0x45479d(0x2e0)](_0x146c07),_0x1b883c===m['CollaborationEvent'][_0x45479d(0x170)]&&this[_0x45479d(0x16a)](_0x146c07);}),this[_0x449770(0x253)](this['_commandService']['onCommandExecuted'](_0x1c40b9=>{const _0xed4224=_0x449770,_0x832efb=_0x1c40b9['params'];_0x832efb!=null&&this['_online']&&_0x1c40b9['id']===Y['SetTextSelectionsOperation']['id']&&_0x832efb[_0xed4224(0xdf)]===this[_0xed4224(0x24c)]&&_0x832efb[_0xed4224(0x138)]===!0x1&&_0x832efb[_0xed4224(0x16f)][_0xed4224(0x1af)]>0x0&&this[_0xed4224(0x17a)](_0x832efb[_0xed4224(0x16f)]);})),this[_0x449770(0x342)][_0x449770(0x254)][_0x449770(0x214)](d[_0x449770(0xf5)](this[_0x449770(0x2b0)]))[_0x449770(0x328)](_0x5156cd=>{const _0x4696af=_0x449770;if((_0x5156cd==null?void 0x0:_0x5156cd[_0x4696af(0x24c)])!==this[_0x4696af(0x24c)])return;const _0x17f4fa={'eventID':m[_0x4696af(0x1ca)][_0x4696af(0x2cb)],'data':_0x5156cd};this[_0x4696af(0x2e0)](_0x17f4fa);}),this[_0x449770(0x253)](this[_0x449770(0x1d8)]['onCommandExecuted'](_0x404075=>{const _0x382b66=_0x449770;if(_0x404075[_0x382b66(0x15e)]==null)return;const _0x529899=_0x404075[_0x382b66(0x15e)];if(_0x404075['id']!==Y[_0x382b66(0x202)]['id']||_0x529899['unitId']!==this['unitID'])return;const _0x3fab21={'id':_0x382b66(0x1a9),'params':_0x529899},_0x110ed0=this[_0x382b66(0x228)];for(const [_0x59cfb0,_0x40ec33]of _0x110ed0){const _0x2aeee8={'id':_0x382b66(0x1a9),'params':{'unitId':this[_0x382b66(0x24c)],'actions':null,'textRanges':_0x40ec33[_0x382b66(0x16f)]}},_0x5d6e0f=this['_transformService'][_0x382b66(0x319)](_0x3fab21,_0x2aeee8,!0x1);if(m[_0x382b66(0x270)](_0x5d6e0f))throw _0x5d6e0f['error'];_0x110ed0[_0x382b66(0x25e)](_0x59cfb0,{..._0x40ec33,'ranges':_0x5d6e0f[_0x382b66(0x1d4)][_0x382b66(0x15e)][_0x382b66(0x11b)]});}queueMicrotask(()=>{const _0x4d16f1=_0x382b66;this[_0x4d16f1(0x20d)][_0x4d16f1(0x14d)](_0x110ed0);});})));}[_0x28af75(0x2e0)](_0x34c145){const _0x40b424=_0x28af75;var _0x3920f5,_0x1a23d8;const {memberID:_0x3fee1c,selection:_0x36eaac}=_0x34c145[_0x40b424(0x1b0)],_0x5a810e=Ze(_0x36eaac),_0x3e8ef1=(_0x1a23d8=(_0x3920f5=this[_0x40b424(0x1b8)][_0x40b424(0x256)](this[_0x40b424(0x24c)],_0x3fee1c))==null?void 0x0:_0x3920f5['name'])!=null?_0x1a23d8:_0x40b424(0x10f),_0x252f67={'color':this[_0x40b424(0x298)]['assignAColorForMemberID'](_0x3fee1c),'name':_0x3e8ef1,'ranges':_0x5a810e},_0x4e57bb=this[_0x40b424(0x228)];_0x4e57bb['set'](_0x3fee1c,_0x252f67),this[_0x40b424(0x20d)][_0x40b424(0x14d)](_0x4e57bb);}['_onCursorDelete'](_0x2a8769){const _0x4ee993=_0x28af75,{memberID:_0x447f63}=_0x2a8769[_0x4ee993(0x1b0)],_0x5b7b23=this[_0x4ee993(0x228)];_0x5b7b23[_0x4ee993(0x2e4)](_0x447f63),this[_0x4ee993(0x20d)][_0x4ee993(0x14d)](_0x5b7b23);}[_0x28af75(0x156)](){const _0x27c42b=_0x28af75;var _0x416462;if(this[_0x27c42b(0x1c7)]=!0x0,((_0x416462=this['_univerInstanceService'][_0x27c42b(0x178)]())==null?void 0x0:_0x416462['getUnitId']())!==this[_0x27c42b(0x24c)])return;const _0x4ab5c9=this[_0x27c42b(0x147)]['get'](Y[_0x27c42b(0x244)])['getDocRanges']();Array[_0x27c42b(0x150)](_0x4ab5c9)&&_0x4ab5c9[_0x27c42b(0x1af)]>0x0&&this[_0x27c42b(0x17a)](_0x4ab5c9);}['_toggleOffline'](){const _0x14c338=_0x28af75;this[_0x14c338(0x1c7)]=!0x1;}};function _0x4bb0(_0x48eba6,_0x2eff01){const _0x48a73e=_0x48a7();return _0x4bb0=function(_0x4bb0d9,_0x18204a){_0x4bb0d9=_0x4bb0d9-0xcd;let _0x4caef5=_0x48a73e[_0x4bb0d9];return _0x4caef5;},_0x4bb0(_0x48eba6,_0x2eff01);}Se=et([P(0x2,a[_0x28af75(0x345)](a['Injector'])),P(0x3,a[_0x28af75(0x345)](Ce)),P(0x4,a['Inject'](u[_0x28af75(0x2bb)])),P(0x5,a[_0x28af75(0x345)](pe)),P(0x6,m[_0x28af75(0xe5)]),P(0x7,a['IUniverInstanceService']),P(0x8,a['ICommandService'])],Se);var nt=Object[_0x28af75(0x30c)],it=(_0x15203b,_0xc8179,_0x46e1ce,_0x51e881)=>{const _0x858142=_0x28af75;for(var _0x2c18cc=_0x51e881>0x1?void 0x0:_0x51e881?nt(_0xc8179,_0x46e1ce):_0xc8179,_0x4eb9da=_0x15203b[_0x858142(0x1af)]-0x1,_0x13df2e;_0x4eb9da>=0x0;_0x4eb9da--)(_0x13df2e=_0x15203b[_0x4eb9da])&&(_0x2c18cc=_0x13df2e(_0x2c18cc)||_0x2c18cc);return _0x2c18cc;},A=(_0x77d29b,_0xf976d5)=>(_0x4758e6,_0x531be5)=>_0xf976d5(_0x4758e6,_0x531be5,_0x77d29b);const rt=0x12c,ot=0x64,at=()=>{let _0x11b565=[],_0x152a71=!0x1;return _0x468c05=>{_0x11b565['push'](_0x468c05),_0x152a71||(_0x152a71=!0x0,setTimeout(()=>{const _0x5b1f35=_0x4bb0;_0x11b565[_0x5b1f35(0x2cc)](_0x457270=>_0x457270()),_0x11b565=[],_0x152a71=!0x1;}));};};let Ie=class extends a[_0x28af75(0x1de)]{constructor(_0x30107d,_0x118cac,_0x25b2cf,_0x49d41f,_0x385d5d,_0xe5ff01,_0x4d3fb7,_0x2f3034){const _0x2ba3a5=_0x28af75;super(),_(this,_0x2ba3a5(0x1c7),!0x1),_(this,_0x2ba3a5(0x166),!0x1),_(this,_0x2ba3a5(0x20d),new d['BehaviorSubject'](new Map())),_(this,_0x2ba3a5(0x1a2),this['_cursorInfo$'][_0x2ba3a5(0x324)]()),_(this,'_roomMembers$',new d[(_0x2ba3a5(0x19f))]([])),_(this,_0x2ba3a5(0x27e),this['_roomMembers$'][_0x2ba3a5(0x214)](d[_0x2ba3a5(0x1cf)](rt))),_(this,_0x2ba3a5(0x17a),a[_0x2ba3a5(0x28f)]((_0x65617c,_0x2cbf8d)=>{const _0x1c2d49=_0x2ba3a5,_0x5bbbeb={'eventID':m[_0x1c2d49(0x1ca)][_0x1c2d49(0x2cb)],'data':{'unitID':this[_0x1c2d49(0x24c)],'memberID':this[_0x1c2d49(0x259)]['getMemberID'](),'selection':Te[_0x1c2d49(0x13f)](_0x65617c,_0x2cbf8d[_0x1c2d49(0x21d)])}};this[_0x1c2d49(0x259)][_0x1c2d49(0x27b)](_0x5bbbeb,this['unitID']);},ot)),(this['unitID']=_0x30107d,this[_0x2ba3a5(0x259)]=_0x118cac,this[_0x2ba3a5(0x147)]=_0x25b2cf,this[_0x2ba3a5(0x298)]=_0x49d41f,this[_0x2ba3a5(0x1b8)]=_0x385d5d,this['_univerInstanceService']=_0xe5ff01,this[_0x2ba3a5(0x1d8)]=_0x4d3fb7,this['_refRangeService']=_0x2f3034);}get['cursorInfo'](){const _0x582c2c=_0x28af75;return this['_cursorInfo$'][_0x582c2c(0x2e9)]();}get[_0x28af75(0x227)](){const _0x403f1a=_0x28af75;return this[_0x403f1a(0xf3)][_0x403f1a(0x2e9)]();}[_0x28af75(0x11a)](){const _0x296c32=_0x28af75;super[_0x296c32(0x11a)](),this[_0x296c32(0x20d)][_0x296c32(0x14d)](new Map()),this[_0x296c32(0x20d)][_0x296c32(0x18b)](),this['_roomMembers$']['next']([]),this[_0x296c32(0xf3)]['complete']();}[_0x28af75(0x121)](){const _0xbce2c8=_0x28af75;this['_init']||(this[_0xbce2c8(0x166)]=!0x0,this[_0xbce2c8(0x259)]['sessionStatus$'][_0xbce2c8(0x214)](d[_0xbce2c8(0xf5)](this[_0xbce2c8(0x2b0)]))[_0xbce2c8(0x328)](_0x3ee7bf=>{const _0x310761=_0xbce2c8;_0x3ee7bf===u[_0x310761(0x2d6)][_0x310761(0x25f)]?this[_0x310761(0x156)]():this['_toggleOffline']();}),this[_0xbce2c8(0x259)]['event$']['pipe'](d[_0xbce2c8(0xf5)](this[_0xbce2c8(0x2b0)]))[_0xbce2c8(0x328)](_0x5c5f0f=>{const _0x303fd3=_0xbce2c8,_0x5059c7=_0x5c5f0f[_0x303fd3(0x102)];_0x5059c7===m[_0x303fd3(0x1ca)]['UPDATE_CURSOR']&&this[_0x303fd3(0x2e0)](_0x5c5f0f),_0x5059c7===m['CollaborationEvent'][_0x303fd3(0x170)]&&this[_0x303fd3(0x16a)](_0x5c5f0f);}),this[_0xbce2c8(0x338)](),this[_0xbce2c8(0x253)](this['_commandService'][_0xbce2c8(0x25d)](_0x2a964d=>{const _0x39acb4=_0xbce2c8;if(this[_0x39acb4(0x1c7)]&&_0x2a964d['id']===g[_0x39acb4(0x2d7)]['id']&&_0x2a964d[_0x39acb4(0x15e)]['unitId']===this['unitID']){const _0xd80bf1=_0x2a964d[_0x39acb4(0x15e)];this[_0x39acb4(0x17a)](_0xd80bf1[_0x39acb4(0x281)],_0xd80bf1[_0x39acb4(0x267)][0x0]);}})));}[_0x28af75(0x2e0)](_0x2b73ff){const _0x2cb47a=_0x28af75;var _0x520847,_0x12bd01;const {memberID:_0x275b69,selection:_0x2b3d15}=_0x2b73ff['data'],{sheetName:_0x7402f8,range:_0x313826}=Te[_0x2cb47a(0x287)](_0x2b3d15),_0x5d849f={'name':(_0x12bd01=(_0x520847=this[_0x2cb47a(0x1b8)][_0x2cb47a(0x256)](this[_0x2cb47a(0x24c)],_0x275b69))==null?void 0x0:_0x520847[_0x2cb47a(0x2f2)])!=null?_0x12bd01:_0x2cb47a(0x10f),'range':this[_0x2cb47a(0x13c)](_0x7402f8,_0x313826),'sheetID':_0x7402f8,'color':this[_0x2cb47a(0x298)][_0x2cb47a(0x283)](_0x275b69),'selection':_0x2b3d15},_0x59678d=this[_0x2cb47a(0x228)];_0x59678d['set'](_0x275b69,_0x5d849f),this['_cursorInfo$'][_0x2cb47a(0x14d)](_0x59678d);}[_0x28af75(0x16a)](_0x264db4){const _0x28a3e4=_0x28af75,{memberID:_0x27fe97}=_0x264db4[_0x28a3e4(0x1b0)],_0x141f61=this['cursorInfo'];_0x141f61[_0x28a3e4(0x2e4)](_0x27fe97),this['_cursorInfo$']['next'](_0x141f61);}['_getMergeRange'](_0x103719,_0x4c8708){const _0x54b23a=_0x28af75;var _0x38807a,_0x130ac2;const _0x3c2db0=(_0x130ac2=(_0x38807a=this['_univerInstanceService'][_0x54b23a(0xf2)](this[_0x54b23a(0x24c)]))==null?void 0x0:_0x38807a[_0x54b23a(0xf7)](_0x103719))==null?void 0x0:_0x130ac2[_0x54b23a(0x114)]();return(_0x3c2db0==null?void 0x0:_0x3c2db0[_0x54b23a(0x2be)](_0x502f59=>a[_0x54b23a(0x1eb)][_0x54b23a(0x111)](_0x502f59,_0x4c8708)))||_0x4c8708;}[_0x28af75(0x338)](){const _0x41e944=_0x28af75,_0x4e45d0=new a[(_0x41e944(0x115))](),_0x595dca=at(),_0x360ca2=()=>{const _0x2621d9=_0x41e944;_0x4e45d0[_0x2621d9(0x11a)]();const _0x276cd5=(_0xd900e9,_0x4dcf9c,_0x2d2db6,_0x3e67b1)=>{const _0xd57b9d=_0x2621d9;let _0x2e2704=[];switch(_0xd900e9['id']){case g['EffectRefRangId'][_0xd57b9d(0x1a5)]:{_0x2e2704=g[_0xd57b9d(0x307)](_0xd900e9,_0x3e67b1);break;}case g[_0xd57b9d(0x2f3)][_0xd57b9d(0x1c1)]:{_0x2e2704=g['handleDeleteRangeMoveUp'](_0xd900e9,_0x3e67b1);break;}case g['EffectRefRangId'][_0xd57b9d(0x2e5)]:{_0x2e2704=g[_0xd57b9d(0x294)](_0xd900e9,_0x3e67b1);break;}case g['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x2e2704=g[_0xd57b9d(0x2b3)](_0xd900e9,_0x3e67b1);break;}case g['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x2e2704=g[_0xd57b9d(0x255)](_0xd900e9,_0x3e67b1);break;}case g[_0xd57b9d(0x2f3)]['InsertRowCommandId']:{_0x2e2704=g[_0xd57b9d(0x1f5)](_0xd900e9,_0x3e67b1);break;}case g[_0xd57b9d(0x2f3)][_0xd57b9d(0x23d)]:{_0x2e2704=g[_0xd57b9d(0x2ee)](_0xd900e9,_0x3e67b1);break;}case g[_0xd57b9d(0x2f3)][_0xd57b9d(0x10d)]:{_0x2e2704=g[_0xd57b9d(0x2e3)](_0xd900e9,_0x3e67b1);break;}case g[_0xd57b9d(0x2f3)]['RemoveRowCommandId']:{_0x2e2704=g['handleIRemoveRow'](_0xd900e9,_0x3e67b1);break;}}const _0x9f34fc=g[_0xd57b9d(0x1da)](_0x2e2704,_0x3e67b1),_0x342d6e=this['cursorInfo'][_0xd57b9d(0x340)](_0x4dcf9c);if(_0x342d6e&&_0x9f34fc){const _0x5a7cd7={..._0x342d6e,'range':_0x9f34fc};this[_0xd57b9d(0x228)][_0xd57b9d(0x25e)](_0x4dcf9c,_0x5a7cd7),_0x595dca(()=>{const _0x4be4b7=_0xd57b9d,_0x57dd55=this[_0x4be4b7(0x168)][_0x4be4b7(0x144)](_0x9f34fc,_0x119978=>(_0x57dd55[_0x4be4b7(0x11a)](),_0x276cd5(_0x119978,_0x4dcf9c,_0x2d2db6,_0x9f34fc)));_0x4e45d0[_0x4be4b7(0x243)](_0x57dd55);});}return{'redos':[],'undos':[]};};this['cursorInfo']['forEach']((_0x21f63c,_0x2e6cb8)=>{const _0x200328=_0x2621d9,{range:_0x5982c6,sheetID:_0x4ce1ef}=_0x21f63c,_0x172e60=this['_refRangeService'][_0x200328(0x144)](_0x5982c6,_0x4b1619=>(_0x172e60[_0x200328(0x11a)](),_0x276cd5(_0x4b1619,_0x2e6cb8,_0x4ce1ef,_0x5982c6)));_0x4e45d0[_0x200328(0x243)](_0x172e60);});};this[_0x41e944(0x253)](a[_0x41e944(0x330)](this[_0x41e944(0x20d)][_0x41e944(0x328)](()=>{_0x360ca2();})));}[_0x28af75(0x156)](){const _0x8f7a0c=_0x28af75;var _0x3e5ac8,_0xf42e30;if(this[_0x8f7a0c(0x1c7)]=!0x0,((_0x3e5ac8=this[_0x8f7a0c(0x337)][_0x8f7a0c(0x178)]())==null?void 0x0:_0x3e5ac8['getUnitId']())!==this[_0x8f7a0c(0x24c)])return;const _0x55c178=(_0xf42e30=this[_0x8f7a0c(0x147)][_0x8f7a0c(0x340)](g['SheetsSelectionsService'])[_0x8f7a0c(0x316)]())==null?void 0x0:_0xf42e30[0x0],_0x14a0d8=this['_univerInstanceService']['getCurrentUnitForType'](a[_0x8f7a0c(0x2fe)][_0x8f7a0c(0x180)])[_0x8f7a0c(0x137)]();_0x55c178&&_0x14a0d8&&this['_updateLocalCursor'](_0x14a0d8[_0x8f7a0c(0x320)](),_0x55c178);}[_0x28af75(0x15b)](){const _0x2c94f9=_0x28af75;this[_0x2c94f9(0x1c7)]=!0x1;}};Ie=it([A(0x2,a['Inject'](a[_0x28af75(0x184)])),A(0x3,a['Inject'](Ce)),A(0x4,a[_0x28af75(0x345)](u[_0x28af75(0x2bb)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x28af75(0xe7)]),A(0x7,a[_0x28af75(0x345)](g['RefRangeService']))],Ie);var ct=Object[_0x28af75(0x30c)],lt=(_0x5b832e,_0x675aea,_0x46b28b,_0x5f4b48)=>{for(var _0x47047f=_0x5f4b48>0x1?void 0x0:_0x5f4b48?ct(_0x675aea,_0x46b28b):_0x675aea,_0x30d0ca=_0x5b832e['length']-0x1,_0x5978bf;_0x30d0ca>=0x0;_0x30d0ca--)(_0x5978bf=_0x5b832e[_0x30d0ca])&&(_0x47047f=_0x5978bf(_0x47047f)||_0x47047f);return _0x47047f;},ie=(_0x3682be,_0x24447c)=>(_0x55ecd7,_0x3991b8)=>_0x24447c(_0x55ecd7,_0x3991b8,_0x3682be);let x=class extends a['RxDisposable']{constructor(_0x1ffb54,_0x18352a,_0x55b8a2){const _0x465675=_0x28af75;super(),_(this,'_entities',new Map()),_(this,_0x465675(0x163),new d[(_0x465675(0x279))]()),(this[_0x465675(0x337)]=_0x1ffb54,this[_0x465675(0x147)]=_0x18352a,this[_0x465675(0x1d2)]=_0x55b8a2,this[_0x465675(0x166)]());}['dispose'](){const _0x11aeed=_0x28af75;super['dispose'](),this[_0x11aeed(0x163)][_0x11aeed(0x18b)](),this[_0x11aeed(0x296)][_0x11aeed(0x2cc)](_0x695bf8=>_0x695bf8[_0x11aeed(0x11a)]());}[_0x28af75(0x264)](_0x4a6cd9){const _0xd15c9a=_0x28af75;return this['_entities'][_0xd15c9a(0x1d6)](_0x4a6cd9)?this['_entities']['get'](_0x4a6cd9)[_0xd15c9a(0x1a2)]:this[_0xd15c9a(0x163)]['pipe'](d['filter'](_0x159b18=>_0x159b18[_0xd15c9a(0x24c)]===_0x4a6cd9),d[_0xd15c9a(0x301)](_0xf46458=>_0xf46458[_0xd15c9a(0x1a2)]));}[_0x28af75(0x166)](){const _0x244dc3=_0x28af75;this['_univerInstanceService'][_0x244dc3(0x261)](a[_0x244dc3(0x2fe)][_0x244dc3(0x180)])[_0x244dc3(0x214)](d['takeUntil'](this[_0x244dc3(0x2b0)]))[_0x244dc3(0x328)](async _0x488bce=>{const _0x3d5a94=_0x244dc3,_0x25b838=_0x488bce[_0x3d5a94(0x2f1)](),_0x5c5a5a=await this[_0x3d5a94(0x33e)](_0x25b838);this[_0x3d5a94(0x163)][_0x3d5a94(0x14d)](_0x5c5a5a),this[_0x3d5a94(0x296)]['set'](_0x25b838,_0x5c5a5a);}),this[_0x244dc3(0x337)][_0x244dc3(0x261)](a[_0x244dc3(0x2fe)][_0x244dc3(0x348)])[_0x244dc3(0x214)](d['takeUntil'](this[_0x244dc3(0x2b0)]))[_0x244dc3(0x214)](d['filter'](_0x8c21c1=>!_0x8c21c1[_0x244dc3(0x2f1)]()['startsWith']('__')))[_0x244dc3(0x328)](async _0x2f550a=>{const _0x229a3a=_0x244dc3,_0x48b947=_0x2f550a['getUnitId'](),_0x338b5f=await this['_startDocCollabCursor'](_0x48b947);this[_0x229a3a(0x163)][_0x229a3a(0x14d)](_0x338b5f),this['_entities'][_0x229a3a(0x25e)](_0x48b947,_0x338b5f);}),d['merge'](this[_0x244dc3(0x337)]['getTypeOfUnitDisposed$'](a[_0x244dc3(0x2fe)][_0x244dc3(0x348)]),this[_0x244dc3(0x337)][_0x244dc3(0x2e7)](a[_0x244dc3(0x2fe)][_0x244dc3(0x180)]))['pipe'](d[_0x244dc3(0xf5)](this[_0x244dc3(0x2b0)]))['subscribe'](_0xc88c22=>{const _0x2f3de0=_0x244dc3,_0x2a6d9e=_0xc88c22[_0x2f3de0(0x2f1)](),_0x5caa0f=this[_0x2f3de0(0x296)][_0x2f3de0(0x340)](_0x2a6d9e);_0x5caa0f&&(_0x5caa0f[_0x2f3de0(0x11a)](),this[_0x2f3de0(0x296)][_0x2f3de0(0x2e4)](_0x2a6d9e));});}async[_0x28af75(0x33e)](_0x5e17e4){const _0x396329=_0x28af75,_0x91fab9=await this[_0x396329(0x1d2)][_0x396329(0x2df)](_0x5e17e4),_0x4bb78d=this[_0x396329(0x147)]['createInstance'](Ie,_0x5e17e4,_0x91fab9);return _0x4bb78d['init'](),_0x4bb78d;}async['_startDocCollabCursor'](_0x3cf896){const _0x5464a2=_0x28af75,_0x22dd91=await this[_0x5464a2(0x1d2)]['requireSession'](_0x3cf896),_0x3925fc=this[_0x5464a2(0x147)]['createInstance'](Se,_0x3cf896,_0x22dd91);return _0x3925fc[_0x5464a2(0x121)](),_0x3925fc;}};x=lt([ie(0x0,a[_0x28af75(0x2ed)]),ie(0x1,a[_0x28af75(0x345)](a['Injector'])),ie(0x2,a[_0x28af75(0x345)](u[_0x28af75(0x1a3)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x13697d,_0x1552cb){const _0xadba91=_0x28af75;let {radius:_0x5169a1,width:_0xa2593b,height:_0x1abedf}=_0x1552cb;_0x5169a1=_0x5169a1!=null?_0x5169a1:0x0,_0xa2593b=_0xa2593b!=null?_0xa2593b:0x1e,_0x1abedf=_0x1abedf!=null?_0x1abedf:0x1e;let _0x2880e0=0x0,_0x6bab9c=0x0,_0x256bf6=0x0;_0x2880e0=_0x6bab9c=_0x256bf6=Math[_0xadba91(0xe9)](_0x5169a1,_0xa2593b/0x2,_0x1abedf/0x2),_0x13697d['beginPath'](),_0x13697d[_0xadba91(0x32f)](_0x2880e0,0x0),_0x13697d[_0xadba91(0x318)](_0xa2593b-_0x6bab9c,0x0),_0x13697d['arc'](_0xa2593b-_0x6bab9c,_0x6bab9c,_0x6bab9c,Math['PI']*0x3/0x2,0x0,!0x1),_0x13697d[_0xadba91(0x318)](_0xa2593b,_0x1abedf-_0x256bf6),_0x13697d[_0xadba91(0x30b)](_0xa2593b-_0x256bf6,_0x1abedf-_0x256bf6,_0x256bf6,0x0,Math['PI']/0x2,!0x1),_0x13697d[_0xadba91(0x318)](0x0,_0x1abedf),_0x13697d[_0xadba91(0x318)](0x0,_0x2880e0),_0x13697d['arc'](_0x2880e0,_0x2880e0,_0x2880e0,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x13697d['closePath'](),_0x1552cb[_0xadba91(0x1db)]&&(_0x13697d[_0xadba91(0x211)](),_0x13697d[_0xadba91(0xf9)]=_0x1552cb[_0xadba91(0x1db)],_0x1552cb[_0xadba91(0x240)]==='evenodd'?_0x13697d['fill'](_0xadba91(0x265)):_0x13697d['fill'](),_0x13697d[_0xadba91(0x317)]());}class te extends p[_0x28af75(0x113)]{constructor(_0x9a46eb,_0x26b43a){const _0x3ba997=_0x28af75;super(_0x9a46eb,_0x26b43a),_(this,_0x3ba997(0x19a)),_(this,_0x3ba997(0x26d)),(this[_0x3ba997(0x19a)]=_0x26b43a==null?void 0x0:_0x26b43a[_0x3ba997(0x19a)],this[_0x3ba997(0x26d)]=_0x26b43a==null?void 0x0:_0x26b43a[_0x3ba997(0x26d)]);}static[_0x28af75(0x1e9)](_0x19dbf3,_0x23c57b){const _0xa9a819=_0x28af75,{text:_0x1a7585,color:_0x1991b0}=_0x23c57b;_0x19dbf3[_0xa9a819(0x211)](),_0x19dbf3[_0xa9a819(0x325)]=_0xa9a819(0x23a);const _0x37d222=_0x19dbf3[_0xa9a819(0x204)](_0x1a7585)[_0xa9a819(0x1b9)],_0x5740c4=Math[_0xa9a819(0xe9)](_0x37d222+0x2*re,De);ht(_0x19dbf3,{'height':K,'radius':0x4,'width':_0x5740c4,'fill':_0x1991b0}),_0x19dbf3[_0xa9a819(0xf9)]=_0xa9a819(0x220);const _0x2d34a4=re,_0x4da846=K-_t,_0x41cd16=De-0x2*re;if(_0x37d222>_0x41cd16){let _0x709310='',_0x5ca35b=0x0;for(const _0x152a59 of _0x1a7585){const _0x463276=_0x19dbf3['measureText'](_0x152a59)[_0xa9a819(0x1b9)];if(_0x5ca35b+_0x463276<=_0x41cd16-_0x19dbf3[_0xa9a819(0x204)](_0xa9a819(0x2d5))[_0xa9a819(0x1b9)])_0x709310+=_0x152a59,_0x5ca35b+=_0x463276;else{_0x709310+=_0xa9a819(0x2d5);break;}}_0x19dbf3[_0xa9a819(0x207)](_0x709310,_0x2d34a4,_0x4da846);}else _0x19dbf3[_0xa9a819(0x207)](_0x1a7585,_0x2d34a4,_0x4da846);_0x19dbf3[_0xa9a819(0x317)]();}[_0x28af75(0x258)](_0x50684e){const _0x281a21=_0x28af75;te[_0x281a21(0x1e9)](_0x50684e,this);}}const oe=_0x28af75(0xe6),ut=_0x28af75(0x272),dt=_0x28af75(0x288),k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x28af75(0x277);class Ue{constructor(_0x264cd1,_0x4af3cd,_0x8f5bb3,_0x90063e){const _0x4dc645=_0x28af75;_(this,_0x4dc645(0x2c7),[]),_(this,'_anchor',null),_(this,'_textBubble',null),_(this,_0x4dc645(0x1f6),null),_(this,'_hideTimer',null),_(this,'_eventUnsubscribe',null),(this[_0x4dc645(0x34c)]=_0x264cd1,this[_0x4dc645(0x1c8)]=_0x4af3cd,this[_0x4dc645(0x17e)]=_0x8f5bb3,this['_document']=_0x90063e,this['_render']());}set[_0x28af75(0x132)](_0x393f1f){const _0x7d7d58=_0x28af75;_0x393f1f?(this[_0x7d7d58(0x1f6)]&&this['_anchorDot'][_0x7d7d58(0xda)](),this['_textBubble']&&this['_textBubble']['show']()):(this[_0x7d7d58(0x1f6)]&&this[_0x7d7d58(0x1f6)][_0x7d7d58(0x2ea)](),this[_0x7d7d58(0x119)]&&this[_0x7d7d58(0x119)][_0x7d7d58(0xda)]());}[_0x28af75(0x11a)](){const _0x24aaee=_0x28af75;for(const _0x5adba6 of this['_shapes'])_0x5adba6[_0x24aaee(0x11a)]();this['_textBubble']&&this[_0x24aaee(0x119)][_0x24aaee(0x11a)](),this['_anchorDot']&&this[_0x24aaee(0x1f6)][_0x24aaee(0x11a)](),this[_0x24aaee(0x26e)]&&this[_0x24aaee(0x26e)][_0x24aaee(0x11a)](),this[_0x24aaee(0x238)]&&this['_eventUnsubscribe']();}[_0x28af75(0x2db)](){const _0x51d622=_0x28af75;var _0x16e7dc;const {_docSkeleton:_0x22e99d,_document:_0x3b7a74}=this,{color:_0x299509,name:_0x4c7924,ranges:_0x10db16}=this[_0x51d622(0x34c)],_0x4de9e1=_0x3b7a74[_0x51d622(0x2f8)](),{docsLeft:_0x115de5,docsTop:_0x29a2bf}=_0x4de9e1,_0x5d36ef=new b[(_0x51d622(0x22d))](_0x4de9e1,_0x22e99d);for(const {startOffset:_0x268be2,endOffset:_0x1efd50,rangeType:_0x374aa7,segmentId:_0x38165e,segmentPage:_0x11993a,collapsed:_0x182785,isActive:_0x4466d4}of _0x10db16){const _0x31ee53=_0x22e99d[_0x51d622(0x1f3)](_0x268be2,!0x0,_0x38165e,_0x11993a);let _0x1fdb74=_0x22e99d['findNodePositionByCharIndex'](_0x1efd50,!0x0,_0x38165e,_0x11993a);if(_0x1fdb74==null&&(_0x1fdb74=_0x22e99d[_0x51d622(0x1f3)](_0x1efd50-0x1,!0x1,_0x38165e,_0x11993a)),_0x4466d4){const {contentBoxPointGroup:_0x22e600}=_0x5d36ef[_0x51d622(0xde)](_0x1fdb74,_0x1fdb74);if(_0x22e600[_0x51d622(0x1af)]===0x0)continue;this[_0x51d622(0x18d)](_0x299509,_0x22e600,_0x115de5,_0x29a2bf,_0x4c7924),this[_0x51d622(0x238)]=this['_handleHover']();}if(_0x31ee53&&_0x1fdb74){if(_0x374aa7===a[_0x51d622(0x216)][_0x51d622(0x32c)]){const _0x2bc532=new b['NodePositionConvertToRectRange'](_0x4de9e1,_0x22e99d),{pointGroup:_0x13553e}=(_0x16e7dc=_0x2bc532[_0x51d622(0xde)](_0x31ee53,_0x1fdb74))!=null?_0x16e7dc:{};if(_0x13553e==null||_0x13553e['length']===0x0)continue;this['_drawRectRange'](_0x299509,_0x13553e,_0x115de5,_0x29a2bf);}else{if(!_0x182785){const {borderBoxPointGroup:_0x4a1a47}=_0x5d36ef[_0x51d622(0xde)](_0x31ee53,_0x1fdb74);if(_0x4a1a47['length']===0x0)continue;this[_0x51d622(0x19c)](_0x299509,_0x4a1a47,_0x115de5,_0x29a2bf);}}}}}[_0x28af75(0x18d)](_0x3fc1fb,_0x4e5055,_0x4bb5f1,_0x420e9a,_0x431a21){const _0xb9f2bd=_0x28af75,_0x407be9=this[_0xb9f2bd(0x273)](_0x4e5055),{left:_0x45299f,top:_0x45442b,height:_0x601d89}=_0x407be9,_0x3d862e=this[_0xb9f2bd(0x1bf)](),_0x1019c0=St/_0x3d862e,_0x27ebe5=new p[(_0xb9f2bd(0x304))](oe+a[_0xb9f2bd(0x215)][_0xb9f2bd(0x181)](k),{'left':_0x45299f+_0x4bb5f1-_0x1019c0,'top':_0x45442b+_0x420e9a,'height':_0x601d89,'width':ft,'fill':_0x3fc1fb||p[_0xb9f2bd(0x28c)](a[_0xb9f2bd(0x300)][_0xb9f2bd(0xe1)],0x0),'strokeWidth':_0x1019c0,'stroke':It,'evented':!0x0});this['_anchor']=_0x27ebe5,this[_0xb9f2bd(0x1c8)][_0xb9f2bd(0x16e)](_0x27ebe5,b[_0xb9f2bd(0x22f)]);const _0x230c4c=new p[(_0xb9f2bd(0x304))](oe+a[_0xb9f2bd(0x215)]['generateRandomId'](k),{'left':_0x45299f+_0x4bb5f1-_0x1019c0,'top':_0x45442b+_0x420e9a-ae/0x2,'height':ae,'width':ae,'fill':_0x3fc1fb||p[_0xb9f2bd(0x28c)](a[_0xb9f2bd(0x300)][_0xb9f2bd(0xe1)],0x0),'strokeWidth':0x0,'stroke':_0x3fc1fb||p[_0xb9f2bd(0x28c)](a[_0xb9f2bd(0x300)][_0xb9f2bd(0xe1)],0x0),'evented':!0x1});this[_0xb9f2bd(0x1f6)]=_0x230c4c,this[_0xb9f2bd(0x1c8)][_0xb9f2bd(0x16e)](_0x230c4c,b[_0xb9f2bd(0x22f)]);const _0x5bfa0b=new te(oe+a[_0xb9f2bd(0x215)][_0xb9f2bd(0x181)](k),{'left':_0x45299f+_0x4bb5f1-_0x1019c0,'top':_0x45442b+_0x420e9a-K,'text':_0x431a21,'color':_0x3fc1fb});this['_textBubble']=_0x5bfa0b,this[_0xb9f2bd(0x1c8)][_0xb9f2bd(0x16e)](_0x5bfa0b,b[_0xb9f2bd(0x22f)]),this[_0xb9f2bd(0x132)]=!0x1;}[_0x28af75(0x201)](){const _0xc184e3=_0x28af75,_0x4a3967=this[_0xc184e3(0x26e)][_0xc184e3(0x14e)][_0xc184e3(0x199)](()=>{const _0x432664=_0xc184e3;this[_0x432664(0x132)]=!0x0;}),_0x5e1380=this['_anchor'][_0xc184e3(0x1dc)][_0xc184e3(0x199)](()=>{const _0x197da0=_0xc184e3;this[_0x197da0(0x33f)]&&clearTimeout(this['_hideTimer']),this[_0x197da0(0x33f)]=setTimeout(()=>{const _0x3de307=_0x197da0;this[_0x3de307(0x132)]=!0x1;},0x7d0);});return()=>{const _0x2432c1=_0xc184e3;_0x4a3967[_0x2432c1(0x32e)](),_0x5e1380[_0x2432c1(0x32e)]();};}[_0x28af75(0x19c)](_0x48335d,_0x75c6f2,_0x6b9d92,_0x3e9b2e){const _0x38802b=_0x28af75,_0x57aa24=new a[(_0x38802b(0x30d))](_0x48335d)[_0x38802b(0x16d)](0.2)[_0x38802b(0x1e3)](),_0xb2d9f=new p['RegularPolygon'](ut+a[_0x38802b(0x215)][_0x38802b(0x181)](k),{'pointsGroup':_0x75c6f2,'fill':_0x57aa24||p[_0x38802b(0x28c)](a['COLORS'][_0x38802b(0xe1)],0.2),'left':_0x6b9d92,'top':_0x3e9b2e,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x38802b(0x230)](_0xb2d9f),this[_0x38802b(0x1c8)][_0x38802b(0x16e)](_0xb2d9f,b['TEXT_RANGE_LAYER_INDEX']);}[_0x28af75(0x2c0)](_0x14ea9b,_0xe6a748,_0x498598,_0x26f7b4){const _0x3f1d2e=_0x28af75,_0x576dab=new a['ColorKit'](_0x14ea9b)[_0x3f1d2e(0x16d)](0.2)['toRgbString'](),_0x521639=new p[(_0x3f1d2e(0x2ef))](dt+a['Tools'][_0x3f1d2e(0x181)](k),{'pointsGroup':_0xe6a748,'fill':_0x576dab||p['getColor'](a[_0x3f1d2e(0x300)][_0x3f1d2e(0xe1)],0.2),'left':_0x498598,'top':_0x26f7b4,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f1d2e(0x2c7)][_0x3f1d2e(0x230)](_0x521639),this[_0x3f1d2e(0x1c8)][_0x3f1d2e(0x16e)](_0x521639,b[_0x3f1d2e(0x22f)]);}['_getAnchorBounding'](_0x4c377e){const _0x2280fb=_0x4c377e[0x0],_0x844625=_0x2280fb[0x0],_0x46d50d=_0x2280fb[0x2],{x:_0x44799d,y:_0xb9963c}=_0x844625,{x:_0x16cec9,y:_0x4d6860}=_0x46d50d;return{'left':_0x44799d,'top':_0xb9963c,'width':_0x16cec9-_0x44799d,'height':_0x4d6860-_0xb9963c};}['_getScale'](){const _0x302ecb=_0x28af75,{scaleX:_0xd5ef1d,scaleY:_0x539fb4}=this[_0x302ecb(0x1c8)][_0x302ecb(0x12d)]();return Math['max'](_0xd5ef1d,_0x539fb4);}}var vt=Object[_0x28af75(0x30c)],gt=(_0xe86df8,_0x5bbadd,_0x50166d,_0x2874b3)=>{const _0x55e0a6=_0x28af75;for(var _0x3d1f6b=_0x2874b3>0x1?void 0x0:_0x2874b3?vt(_0x5bbadd,_0x50166d):_0x5bbadd,_0x184a07=_0xe86df8[_0x55e0a6(0x1af)]-0x1,_0x38f315;_0x184a07>=0x0;_0x184a07--)(_0x38f315=_0xe86df8[_0x184a07])&&(_0x3d1f6b=_0x38f315(_0x3d1f6b)||_0x3d1f6b);return _0x3d1f6b;},V=(_0x5a921f,_0x19f07a)=>(_0x302364,_0x46c90d)=>_0x19f07a(_0x302364,_0x46c90d,_0x5a921f);let ve=class extends a[_0x28af75(0x1de)]{constructor(_0x412ce7,_0x1fc8f0,_0x12862d,_0x471058,_0x20f849){const _0x13d98a=_0x28af75;super(),_(this,_0x13d98a(0x17b),[]),_(this,_0x13d98a(0x1bb),[]),(this[_0x13d98a(0x1ab)]=_0x412ce7,this['_docSkeletonManagerService']=_0x1fc8f0,this['_collabCursorController']=_0x12862d,this[_0x13d98a(0x1d8)]=_0x471058,this[_0x13d98a(0x231)]=_0x20f849,this[_0x13d98a(0x166)]());}[_0x28af75(0x166)](){const _0x56a775=_0x28af75,_0x8a5042=this[_0x56a775(0x1ab)][_0x56a775(0xdf)],_0x4c9a50=this['_docSkeletonManagerService'];this[_0x56a775(0x253)](d[_0x56a775(0x26b)]([this[_0x56a775(0x153)]['getCollabCursors$'](_0x8a5042),this[_0x56a775(0x231)][_0x56a775(0x14b)]])['pipe']($[_0x56a775(0x233)](([_0x499920,_0x17e067])=>({'skeleton':_0x4c9a50[_0x56a775(0x2a4)](),'cursors':[..._0x499920[_0x56a775(0xcf)]()]['flatMap'](_0x38ce30=>({..._0x38ce30,'color':_0x17e067[_0x38ce30[_0x56a775(0x19a)]]}))})))[_0x56a775(0x328)](_0x4fe97b=>{const _0x9a90b2=_0x56a775;if(this[_0x9a90b2(0x2dc)](),_0x4fe97b){const {skeleton:_0x20cf1a,cursors:_0x4e665a}=_0x4fe97b;this[_0x9a90b2(0x1b7)](_0x20cf1a,_0x4e665a);}})),this['_initResize'](),this[_0x56a775(0x1e6)]();}['_updateCollabCursors'](_0x38ff8e,_0x28b068){const _0x300439=_0x28af75,{scene:_0x4c9258,mainComponent:_0x4143a6}=this[_0x300439(0x1ab)],_0x52e59c=_0x28b068[_0x300439(0x233)](_0x423b65=>new Ue(_0x423b65,_0x4c9258,_0x38ff8e,_0x4143a6));this[_0x300439(0x17b)]=_0x52e59c,this['_cursors']=_0x28b068;}['_refreshCollabCursors'](){const _0x1c2d33=_0x28af75;this['_removeCollabCursors']();const {scene:_0x32eae1,mainComponent:_0x18c6f2}=this[_0x1c2d33(0x1ab)],_0xb0ee01=this['_docSkeletonManagerService'][_0x1c2d33(0x2a4)](),_0xf8938e=this[_0x1c2d33(0x1bb)][_0x1c2d33(0x233)](_0x1f5c9c=>new Ue(_0x1f5c9c,_0x32eae1,_0xb0ee01,_0x18c6f2));this[_0x1c2d33(0x17b)]=_0xf8938e;}['_removeCollabCursors'](){const _0x4937dc=_0x28af75;this[_0x4937dc(0x17b)][_0x4937dc(0x2cc)](_0x1415dc=>_0x1415dc[_0x4937dc(0x11a)]()),this[_0x4937dc(0x17b)]=[];}[_0x28af75(0x1e6)](){const _0x448f08=_0x28af75,_0x3524b9=[b['SetDocZoomRatioOperation']['id']];this[_0x448f08(0x253)](this['_commandService'][_0x448f08(0x25d)](_0x175bc4=>{const _0x46f830=_0x448f08;_0x3524b9[_0x46f830(0x1c3)](_0x175bc4['id'])&&_0x175bc4[_0x46f830(0x15e)][_0x46f830(0xdf)]===this[_0x46f830(0x1ab)][_0x46f830(0xdf)]&&this[_0x46f830(0x13b)]();}));}[_0x28af75(0x28b)](){const _0x4604ce=_0x28af75;this[_0x4604ce(0x253)](a[_0x4604ce(0x1ba)](this['_context'][_0x4604ce(0x19d)]['onTransformChange$'])[_0x4604ce(0x214)]($[_0x4604ce(0xdc)](_0x161f16=>_0x161f16['type']===p[_0x4604ce(0x344)][_0x4604ce(0x1c2)]),$['throttleTime'](0x10))[_0x4604ce(0x328)](()=>{this['_refreshCollabCursors']();}));}};ve=gt([V(0x1,a[_0x28af75(0x345)](Y[_0x28af75(0x1b3)])),V(0x2,a[_0x28af75(0x345)](x)),V(0x3,a['ICommandService']),V(0x4,a['Inject'](a[_0x28af75(0x31e)]))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x28af75(0x113)]{constructor(_0x546bbb,_0x524778){const _0x20e3df=_0x28af75;super(_0x546bbb,_0x524778),_(this,_0x20e3df(0x2f9)),_(this,_0x20e3df(0x21c),!0x1),_(this,_0x20e3df(0x1ef)),_(this,'_name',''),_(this,_0x20e3df(0x266),'top'),_(this,'_backgroundColor'),(_0x524778&&this[_0x20e3df(0x1ea)](_0x524778),this[_0x20e3df(0x14e)][_0x20e3df(0x199)](()=>this[_0x20e3df(0x1ea)]({'hovered':!0x0})),this[_0x20e3df(0x1dc)]['subscribeEvent'](()=>this[_0x20e3df(0x1ea)]({'hovered':!0x1})));}[_0x28af75(0x1ea)](_0x131c00){const _0x5c91bb=_0x28af75;var _0x14779b,_0x2aa890,_0x1bafd5,_0x4d9231,_0x2be4fc,_0x3a731c;this[_0x5c91bb(0x2f9)]=(_0x14779b=_0x131c00[_0x5c91bb(0x19a)])!=null?_0x14779b:this[_0x5c91bb(0x2f9)],this[_0x5c91bb(0x21c)]=(_0x2aa890=_0x131c00['hovered'])!=null?_0x2aa890:this[_0x5c91bb(0x21c)],this[_0x5c91bb(0x1ef)]=(_0x1bafd5=_0x131c00[_0x5c91bb(0x21d)])!=null?_0x1bafd5:this['_range'],this[_0x5c91bb(0x104)]=(_0x4d9231=_0x131c00['name'])!=null?_0x4d9231:this[_0x5c91bb(0x104)],this[_0x5c91bb(0x266)]=(_0x2be4fc=_0x131c00[_0x5c91bb(0x32d)])!=null?_0x2be4fc:this[_0x5c91bb(0x266)],this['_backgroundColor']=(_0x3a731c=_0x131c00[_0x5c91bb(0x100)])!=null?_0x3a731c:this['_backgroundColor'],this['transformByState']({'width':_0x131c00['width'],'height':_0x131c00[_0x5c91bb(0x1d1)]});}[_0x28af75(0x315)](_0x7a3e37){const _0x502deb=_0x28af75,{row:_0x3b85da,column:_0x5457a4}=_0x7a3e37;if(_0x3b85da>=this[_0x502deb(0x1ef)][_0x502deb(0x2ad)]&&_0x3b85da<=this[_0x502deb(0x1ef)]['endRow']&&_0x5457a4>=this['_range'][_0x502deb(0x2ab)]&&_0x5457a4<=this[_0x502deb(0x1ef)][_0x502deb(0x2fb)]){this[_0x502deb(0x1ea)]({'hovered':!0x0});return;}this[_0x502deb(0x1ea)]({'hovered':!0x1});}['triggerDblclick'](_0x2d1290){return!0x1;}[_0x28af75(0x258)](_0x919432){const _0x2e3526=_0x28af75;p[_0x2e3526(0x304)]['drawWith'](_0x919432,{'width':this[_0x2e3526(0x1b9)],'height':this['height'],'strokeWidth':Ct,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x2e3526(0x1cc)]}),this[_0x2e3526(0x21c)]&&(_0x919432['save'](),_0x919432['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x2e3526(0x266)]===_0x2e3526(0xd5)?0x0:-0x14),te[_0x2e3526(0x1e9)](_0x919432,{'text':this[_0x2e3526(0x104)],'color':this['_color']}),_0x919432[_0x2e3526(0x317)]());}}var pt=Object['getOwnPropertyDescriptor'],bt=(_0x24b113,_0x17c563,_0x19e988,_0x138f81)=>{const _0x306c8b=_0x28af75;for(var _0x33eb53=_0x138f81>0x1?void 0x0:_0x138f81?pt(_0x17c563,_0x19e988):_0x17c563,_0x153743=_0x24b113[_0x306c8b(0x1af)]-0x1,_0x1f3cf5;_0x153743>=0x0;_0x153743--)(_0x1f3cf5=_0x24b113[_0x153743])&&(_0x33eb53=_0x1f3cf5(_0x33eb53)||_0x33eb53);return _0x33eb53;},ce=(_0x21be82,_0x190d12)=>(_0x48d852,_0x17de96)=>_0x190d12(_0x48d852,_0x17de96,_0x21be82);const Et=0x1389;let ge=class extends a['RxDisposable']{constructor(_0x18c27e,_0x5f29a3,_0x294d73,_0x50c2a7){const _0xb73e97=_0x28af75;super(),_(this,'_cursors',new Set()),_(this,_0xb73e97(0x13e),null),(this['_context']=_0x18c27e,this[_0xb73e97(0x189)]=_0x5f29a3,this[_0xb73e97(0x153)]=_0x294d73,this[_0xb73e97(0x231)]=_0x50c2a7,this['_init']());}['_init'](){const _0x24f925=_0x28af75;this['_sheetSkeletonManagerService'][_0x24f925(0x1d0)][_0x24f925(0x214)]($[_0x24f925(0xf5)](this['dispose$']),$[_0x24f925(0x301)](_0x36a778=>{const _0xb283ac=_0x24f925;if(_0x36a778){const _0x1635ce=_0x36a778[_0xb283ac(0x105)];return d['combineLatest'](this[_0xb283ac(0x153)][_0xb283ac(0x264)](this[_0xb283ac(0x1ab)][_0xb283ac(0xdf)]),this[_0xb283ac(0x231)]['currentTheme$'])[_0xb283ac(0x214)]($[_0xb283ac(0x233)](([_0x2c8158,_0x170a3a])=>{const _0x3d902a=_0xb283ac,_0xfaa55=new Map();return _0x2c8158[_0x3d902a(0x2cc)]((_0x2dc089,_0x4e48e7)=>{const _0x5ab219=_0x3d902a;if(_0x2dc089['sheetID']===_0x1635ce){const _0x5b5055={..._0x2dc089};_0x5b5055['color']=_0x170a3a[_0x2dc089[_0x5ab219(0x19a)]],_0xfaa55['set'](_0x4e48e7,_0x5b5055);}}),{'skeleton':_0x36a778,'cursors':_0xfaa55};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x24f925(0x328)](({skeleton:_0x1952a1,cursors:_0x33a8c7})=>{const _0x23caed=_0x24f925;this[_0x23caed(0x2dc)](),_0x1952a1&&this[_0x23caed(0x1b7)](_0x1952a1,_0x33a8c7);}),this[_0x24f925(0x189)]['currentSkeleton$'][_0x24f925(0x328)](_0x3eaa67=>{const _0x62f45e=_0x24f925;if(_0x3eaa67==null)return;const {skeleton:_0x239704}=_0x3eaa67,{scene:_0x43dd23}=this[_0x62f45e(0x1ab)];_0x43dd23['onPointerMove$'][_0x62f45e(0x199)](a[_0x62f45e(0x28f)](_0x15088b=>{const _0x191cc6=_0x62f45e;var _0x30989d,_0x392225;const {offsetX:_0x4ca1b4,offsetY:_0xe71ee7}=_0x15088b,{x:_0x439b8d,y:_0x1a632a}=_0x43dd23[_0x191cc6(0x195)](p[_0x191cc6(0x2ac)][_0x191cc6(0x2d9)]([_0x4ca1b4,_0xe71ee7])),{scaleX:_0x2781af,scaleY:_0x4a5f27}=_0x43dd23[_0x191cc6(0x12d)](),_0x4e9f3e=_0x43dd23[_0x191cc6(0x182)](p[_0x191cc6(0x20b)][_0x191cc6(0x335)]),_0x11e9b5=_0x43dd23[_0x191cc6(0x2cf)](p['Vector2']['FromArray']([_0x439b8d,_0x1a632a]),_0x4e9f3e),_0x5822bc=_0x239704[_0x191cc6(0x31f)](_0x4ca1b4,_0xe71ee7,_0x2781af,_0x4a5f27,_0x11e9b5);((_0x30989d=this[_0x191cc6(0x13e)])==null?void 0x0:_0x30989d['column'])===_0x5822bc[_0x191cc6(0x135)]&&((_0x392225=this[_0x191cc6(0x13e)])==null?void 0x0:_0x392225['row'])===_0x5822bc[_0x191cc6(0x1b1)]||this['_cursors'][_0x191cc6(0x2cc)](_0x2185e6=>{_0x2185e6['onMouseMove'](_0x5822bc);});},0x64));});}[_0x28af75(0x1b7)](_0x441ab3,_0x43f1a1){const _0x2218e6=_0x28af75;var _0x26ac6c;const _0x4c0ceb=(_0x26ac6c=this[_0x2218e6(0x189)][_0x2218e6(0x27a)]())==null?void 0x0:_0x26ac6c[_0x2218e6(0xfc)];if(!_0x4c0ceb)return;const _0x576c6c=this[_0x2218e6(0x299)]();if(!_0x576c6c)return;this['_cursors'][_0x2218e6(0x2cc)](_0x179af3=>{const _0x48cb10=_0x2218e6;_0x179af3[_0x48cb10(0x1ec)]();});const {scene:_0x13f631}=_0x576c6c,_0x1cb80f=Tt(Array['from'](_0x43f1a1[_0x2218e6(0xcf)]()))[_0x2218e6(0x233)](_0x1a3ed9=>{const _0x27b1e4=_0x2218e6,{color:_0x34132e,range:_0x2e67fe,name:_0x46262c,selection:_0x2945df,sheetID:_0x45e096}=_0x1a3ed9,{startColumn:_0x7b221,startRow:_0x1297ab,endColumn:_0x34582c,endRow:_0x7eec5b}=_0x2e67fe,_0x4eea10=G[_0x27b1e4(0x193)](_0x1297ab,_0x7b221,_0x13f631,_0x4c0ceb),_0x4461ae=G[_0x27b1e4(0x193)](_0x7eec5b,_0x34582c,_0x13f631,_0x4c0ceb),{columnHeaderHeightAndMarginTop:_0x5c1752}=_0x4c0ceb,{startX:_0x499cb0,startY:_0x452aae}=_0x4eea10,{endX:_0x250bf7,endY:_0xc242c1}=_0x4461ae,_0x5ad8a4=_0x250bf7-_0x499cb0,_0x4d413c=_0xc242c1-_0x452aae,_0x5a6526={'labelPosition':_0x452aae-_0x5c1752>=K?_0x27b1e4(0xe2):'bottom','sheetID':_0x45e096,'range':_0x2e67fe,'color':_0x34132e,'name':_0x46262c,'selection':_0x2945df,'left':_0x499cb0,'top':_0x452aae,'width':_0x5ad8a4,'height':_0x4d413c,'evented':!0x1,'zIndex':Et};return new Ae(_0x46262c,_0x5a6526);});_0x13f631['addObjects'](_0x1cb80f,mt),this[_0x2218e6(0x1bb)]=new Set(_0x1cb80f);}[_0x28af75(0x2dc)](){const _0x41f1e8=_0x28af75;var _0x459f9c;(_0x459f9c=this[_0x41f1e8(0x1bb)])==null||_0x459f9c[_0x41f1e8(0x2cc)](_0x187c92=>_0x187c92[_0x41f1e8(0x11a)]());}[_0x28af75(0x299)](){const _0x8ed002=_0x28af75;return G['getSheetObject'](this[_0x8ed002(0x1ab)][_0x8ed002(0x136)],this[_0x8ed002(0x1ab)]);}};ge=bt([ce(0x1,a[_0x28af75(0x345)](G[_0x28af75(0x2d0)])),ce(0x2,a[_0x28af75(0x345)](x)),ce(0x3,a[_0x28af75(0x345)](a[_0x28af75(0x31e)]))],ge);function Tt(_0x200aef){const _0x5a1a86=_0x28af75,_0x20baba=new Map();return _0x200aef[_0x5a1a86(0x2cc)](_0x4ab53f=>{const _0x3d9ab7=_0x5a1a86;if(_0x20baba[_0x3d9ab7(0x1d6)](_0x4ab53f[_0x3d9ab7(0x327)])){const _0x7ffdb4=_0x20baba['get'](_0x4ab53f[_0x3d9ab7(0x327)]);_0x7ffdb4[_0x3d9ab7(0x2f2)]+=',\x20'+_0x4ab53f[_0x3d9ab7(0x2f2)];}else _0x20baba['set'](_0x4ab53f['selection'],_0x4ab53f);}),Array[_0x5a1a86(0x172)](_0x20baba[_0x5a1a86(0xcf)]());}var E=function(){const _0x59b66b=_0x28af75;return E=Object[_0x59b66b(0x174)]||function(_0x3f061a){const _0x2509d5=_0x59b66b;for(var _0x4d6b0c,_0x27f638=0x1,_0x1123d1=arguments['length'];_0x27f638<_0x1123d1;_0x27f638++){_0x4d6b0c=arguments[_0x27f638];for(var _0x5021b2 in _0x4d6b0c)Object[_0x2509d5(0x141)][_0x2509d5(0x2c2)][_0x2509d5(0x17d)](_0x4d6b0c,_0x5021b2)&&(_0x3f061a[_0x5021b2]=_0x4d6b0c[_0x5021b2]);}return _0x3f061a;},E[_0x59b66b(0x312)](this,arguments);},Rt=function(_0x3dd5e5,_0x5b308d){const _0x54fead=_0x28af75;var _0x37a2c2={};for(var _0x2e3454 in _0x3dd5e5)Object[_0x54fead(0x141)][_0x54fead(0x2c2)][_0x54fead(0x17d)](_0x3dd5e5,_0x2e3454)&&_0x5b308d[_0x54fead(0x1ce)](_0x2e3454)<0x0&&(_0x37a2c2[_0x2e3454]=_0x3dd5e5[_0x2e3454]);if(_0x3dd5e5!=null&&typeof Object[_0x54fead(0x305)]==_0x54fead(0x118)){for(var _0x21b2a2=0x0,_0x2e3454=Object[_0x54fead(0x305)](_0x3dd5e5);_0x21b2a2<_0x2e3454['length'];_0x21b2a2++)_0x5b308d[_0x54fead(0x1ce)](_0x2e3454[_0x21b2a2])<0x0&&Object[_0x54fead(0x141)][_0x54fead(0x122)][_0x54fead(0x17d)](_0x3dd5e5,_0x2e3454[_0x21b2a2])&&(_0x37a2c2[_0x2e3454[_0x21b2a2]]=_0x3dd5e5[_0x2e3454[_0x21b2a2]]);}return _0x37a2c2;},be=M['forwardRef'](function(_0x4eba26,_0x1e6fd9){const _0x178c76=_0x28af75;var _0x3be889=_0x4eba26[_0x178c76(0x167)],_0x5896d1=_0x4eba26['id'],_0x4cf6ba=_0x4eba26[_0x178c76(0x173)],_0xe829a5=_0x4eba26[_0x178c76(0xd0)],_0x3c01ef=Rt(_0x4eba26,['icon','id','className',_0x178c76(0xd0)]),_0x14c31a='univerjs-icon\x20univerjs-icon-'[_0x178c76(0x164)](_0x5896d1,'\x20')[_0x178c76(0x164)](_0x4cf6ba||'')[_0x178c76(0x26a)](),_0x2f24ea=M[_0x178c76(0xd4)]('_'[_0x178c76(0x164)](Ut()));return ye(_0x3be889,''[_0x178c76(0x164)](_0x5896d1),{'defIds':_0x3be889[_0x178c76(0x23b)],'idSuffix':_0x2f24ea[_0x178c76(0x310)]},E({'ref':_0x1e6fd9,'className':_0x14c31a},_0x3c01ef),_0xe829a5);});function ye(_0x5115c0,_0x2b96ef,_0x238ca3,_0xb65ba2,_0x3bc708){const _0x57382f=_0x28af75;return M['createElement'](_0x5115c0['tag'],E(E({'key':_0x2b96ef},Ot(_0x5115c0,_0x238ca3,_0x3bc708)),_0xb65ba2),(Dt(_0x5115c0,_0x238ca3)[_0x57382f(0x186)]||[])[_0x57382f(0x233)](function(_0x22c24d,_0x36c7a7){const _0x36807a=_0x57382f;return ye(_0x22c24d,''[_0x36807a(0x164)](_0x2b96ef,'-')['concat'](_0x5115c0[_0x36807a(0x33a)],'-')[_0x36807a(0x164)](_0x36c7a7),_0x238ca3,void 0x0,_0x3bc708);}));}function Ot(_0x202cad,_0x5d7313,_0x453ba3){const _0x407db0=_0x28af75;var _0xdc4338=E({},_0x202cad['attrs']);_0x453ba3!=null&&_0x453ba3['colorChannel1']&&_0xdc4338[_0x407db0(0x1db)]===_0x407db0(0x1ff)&&(_0xdc4338[_0x407db0(0x1db)]=_0x453ba3[_0x407db0(0x1ff)]),_0x202cad[_0x407db0(0x33a)]===_0x407db0(0x290)&&_0xdc4338['id']&&(_0xdc4338['id']=_0xdc4338['id']+_0x5d7313[_0x407db0(0x130)]),Object['entries'](_0xdc4338)[_0x407db0(0x2cc)](function(_0x1abc59){const _0x59d36b=_0x407db0;var _0x335bd8=_0x1abc59[0x0],_0x73a691=_0x1abc59[0x1];_0x335bd8===_0x59d36b(0x290)&&typeof _0x73a691=='string'&&(_0xdc4338[_0x335bd8]=_0x73a691['replace'](/url\(#(.*)\)/,_0x59d36b(0x250)[_0x59d36b(0x164)](_0x5d7313[_0x59d36b(0x130)],')')));});var _0x112cd1=_0x5d7313[_0x407db0(0x23b)];return!_0x112cd1||_0x112cd1['length']===0x0||(_0x202cad[_0x407db0(0x33a)]===_0x407db0(0x1c6)&&_0xdc4338[_0x407db0(0x2cd)]&&(_0xdc4338[_0x407db0(0x2cd)]=_0xdc4338['xlink:href']+_0x5d7313[_0x407db0(0x130)]),Object['entries'](_0xdc4338)[_0x407db0(0x2cc)](function(_0x3b14d4){const _0x4f718f=_0x407db0;var _0x4f849a=_0x3b14d4[0x0],_0x443391=_0x3b14d4[0x1];typeof _0x443391=='string'&&(_0xdc4338[_0x4f849a]=_0x443391[_0x4f718f(0x10b)](/url\(#(.*)\)/,_0x4f718f(0x250)[_0x4f718f(0x164)](_0x5d7313[_0x4f718f(0x130)],')')));})),_0xdc4338;}function Dt(_0x557c7d,_0x4a33a0){const _0x4a10b2=_0x28af75;var _0x469f73,_0x582f99=_0x4a33a0[_0x4a10b2(0x23b)];return!_0x582f99||_0x582f99[_0x4a10b2(0x1af)]===0x0?_0x557c7d:_0x557c7d[_0x4a10b2(0x33a)]==='defs'&&(!((_0x469f73=_0x557c7d[_0x4a10b2(0x186)])===null||_0x469f73===void 0x0)&&_0x469f73[_0x4a10b2(0x1af)])?E(E({},_0x557c7d),{'children':_0x557c7d[_0x4a10b2(0x186)]['map'](function(_0x293f30){const _0x53f946=_0x4a10b2;return typeof _0x293f30[_0x53f946(0xe3)]['id']=='string'&&_0x582f99&&_0x582f99[_0x53f946(0x1ce)](_0x293f30['attrs']['id'])>-0x1?E(E({},_0x293f30),{'attrs':E(E({},_0x293f30[_0x53f946(0xe3)]),{'id':_0x293f30[_0x53f946(0xe3)]['id']+_0x4a33a0[_0x53f946(0x130)]})}):_0x293f30;})}):_0x557c7d;}function Ut(){const _0x449886=_0x28af75;return Math['random']()[_0x449886(0x10c)](0x24)['substring'](0x2,0x8);}be['displayName']='UniverIcon';var Nt={'tag':_0x28af75(0x343),'attrs':{'fill':_0x28af75(0x26f),'viewBox':_0x28af75(0xe4),'width':'1em','height':_0x28af75(0xf1)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':'path','attrs':{'stroke':_0x28af75(0xed),'d':_0x28af75(0x2e8),'strokeLinecap':_0x28af75(0x1c0),'strokeLinejoin':_0x28af75(0x1c0),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x28af75(0x1ac),'attrs':{'id':_0x28af75(0x257)},'children':[{'tag':_0x28af75(0x34b),'attrs':{'fill':_0x28af75(0x1fc),'d':_0x28af75(0xdd)}}]}]}],'defIds':['off-line-single_clip0_910_343']},$e=M[_0x28af75(0x187)](function(_0x3610fa,_0x21486c){const _0x4e80b0=_0x28af75;return M[_0x4e80b0(0x1cb)](be,Object['assign']({},_0x3610fa,{'id':_0x4e80b0(0xfb),'ref':_0x21486c,'icon':Nt}));});$e['displayName']=_0x28af75(0x2eb);var Mt={'tag':_0x28af75(0x343),'attrs':{'fill':'none','viewBox':_0x28af75(0x2a6),'width':_0x28af75(0xf1),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x28af75(0x28d)},'children':[{'tag':'path','attrs':{'stroke':_0x28af75(0xed),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x28af75(0x1c0),'strokeLinejoin':_0x28af75(0x1c0),'strokeWidth':1.2}}]},{'tag':_0x28af75(0x148),'attrs':{},'children':[{'tag':_0x28af75(0x1ac),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x28af75(0x1fc),'d':_0x28af75(0xdd),'transform':_0x28af75(0x1a1)}}]}]}],'defIds':[_0x28af75(0xf4)]},xe=M[_0x28af75(0x187)](function(_0x31c518,_0x36f326){const _0x5113f4=_0x28af75;return M['createElement'](be,Object['assign']({},_0x31c518,{'id':_0x5113f4(0x229),'ref':_0x36f326,'icon':Mt}));});xe['displayName']=_0x28af75(0x108);const Pt=_0x28af75(0x241),Lt='univer-online-status-title',wt=_0x28af75(0x1e1),At=_0x28af75(0x234),yt=_0x28af75(0x2d2),H={'onlineStatusIcon':Pt,'onlineStatusTitle':Lt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x42375d){const _0x4baa28=_0x28af75;switch(_0x42375d){case u[_0x4baa28(0x2f5)][_0x4baa28(0x314)]:return _0x4baa28(0x117);case u[_0x4baa28(0x2f5)][_0x4baa28(0x18e)]:return _0x4baa28(0x1e0);case u[_0x4baa28(0x2f5)][_0x4baa28(0x280)]:return _0x4baa28(0x341);case u[_0x4baa28(0x2f5)][_0x4baa28(0xd3)]:return _0x4baa28(0x1b6);case u[_0x4baa28(0x2f5)][_0x4baa28(0x198)]:case u[_0x4baa28(0x2f5)][_0x4baa28(0x1c5)]:return'collabStatus.syncing';case u[_0x4baa28(0x2f5)][_0x4baa28(0x149)]:case u[_0x4baa28(0x2f5)][_0x4baa28(0x11f)]:return'collabStatus.synced';}}function je(_0x21bbc8){const _0x501552=_0x28af75,{status$:_0x10b358}=_0x21bbc8,_0x50afc1=R['useObservable'](_0x10b358,u[_0x501552(0x2f5)][_0x501552(0xd3)]),_0x4490fb=R[_0x501552(0x29b)](a['LocaleService']),_0x30c90e=R[_0x501552(0x29b)](u[_0x501552(0x1a3)]),_0x382847=_0x50afc1!==u[_0x501552(0x2f5)]['OFFLINE'],_0x4fbb49=_0x4490fb['t']($t(_0x50afc1)),_0x26a118=T[_0x501552(0x1a8)](H['onlineStatus'],{[H['online']]:_0x382847,[H[_0x501552(0x2a8)]]:!_0x382847}),_0x330402=_0x382847?L['jsx'](xe,{}):L[_0x501552(0x158)]($e,{}),_0x7acb16=M[_0x501552(0x2bc)](()=>{const _0x55be4f=_0x501552;_0x382847||_0x30c90e[_0x55be4f(0x2c5)]();},[_0x382847,_0x30c90e]);function _0x2dbd33(){const _0xf6de7b=_0x501552;return L[_0xf6de7b(0x11c)](_0xf6de7b(0x2fa),{'className':T[_0xf6de7b(0x1a8)](_0x26a118,_0xf6de7b(0x289)),'onClick':_0x7acb16,'children':[L[_0xf6de7b(0x158)](_0xf6de7b(0x2fa),{'className':H[_0xf6de7b(0xf8)],'children':_0x330402}),L[_0xf6de7b(0x158)](_0xf6de7b(0x2fa),{'className':H['onlineStatusTitle'],'children':_0x4fbb49})]});}return _0x382847?_0x2dbd33():L[_0x501552(0x158)](T[_0x501552(0x21e)],{'title':_0x4490fb['t']('collab-client.tooltip.reconnect'),'children':_0x2dbd33()});}var xt=Object[_0x28af75(0x30c)],jt=(_0x478f73,_0x170b38,_0x101b95,_0xc46f5a)=>{const _0x1de02d=_0x28af75;for(var _0x41fcd2=_0xc46f5a>0x1?void 0x0:_0xc46f5a?xt(_0x170b38,_0x101b95):_0x170b38,_0x7dbc31=_0x478f73[_0x1de02d(0x1af)]-0x1,_0x45076a;_0x7dbc31>=0x0;_0x7dbc31--)(_0x45076a=_0x478f73[_0x7dbc31])&&(_0x41fcd2=_0x45076a(_0x41fcd2)||_0x41fcd2);return _0x41fcd2;},X=(_0x18fbbd,_0x4e87a7)=>(_0x53cf07,_0x48fcdf)=>_0x4e87a7(_0x53cf07,_0x48fcdf,_0x18fbbd);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x28af75(0x242)]{constructor(_0x45fce6,_0x361b6c,_0x50e87c,_0x27b746){const _0x31d204=_0x28af75;super(),_(this,'_status$',new d['BehaviorSubject'](u['CollaborationStatus'][_0x31d204(0xd3)])),(this[_0x31d204(0x337)]=_0x45fce6,this['_injector']=_0x361b6c,this[_0x31d204(0x1ed)]=_0x50e87c,this[_0x31d204(0x224)]=_0x27b746,this['_initStatusComponent'](),this[_0x31d204(0x311)]());}[_0x28af75(0x311)](){const _0x323556=_0x28af75;this[_0x323556(0x253)](this[_0x323556(0x337)][_0x323556(0x21f)]['pipe'](d['switchMap'](()=>{const _0x12f40e=_0x323556,_0x5b276b=this[_0x12f40e(0x337)][_0x12f40e(0x178)]();return _0x5b276b?this[_0x12f40e(0x1ed)]['getCollabEntity$'](_0x5b276b['getUnitId']()):d['of'](null);}),d[_0x323556(0x301)](_0x30ecd4=>_0x30ecd4?_0x30ecd4[_0x323556(0x1f4)]:d['of'](u['CollaborationStatus'][_0x323556(0xd3)])))['subscribe'](_0x29a6d0=>{const _0x4ce83a=_0x323556;this[_0x4ce83a(0x2af)][_0x4ce83a(0x14d)](_0x29a6d0);}));}[_0x28af75(0x142)](){const _0x4be6ba=_0x28af75;this['disposeWithMe'](this[_0x4be6ba(0x224)]['registerComponent'](R[_0x4be6ba(0x334)]['HEADER_MENU'],()=>R[_0x4be6ba(0x20f)](Bt({'status$':this[_0x4be6ba(0x2af)][_0x4be6ba(0x324)]()}),this['_injector'])));}},exports['DesktopCollaborationStatusDisplayController']=jt([X(0x0,a[_0x28af75(0x2ed)]),X(0x1,a[_0x28af75(0x345)](a[_0x28af75(0x184)])),X(0x2,a[_0x28af75(0x345)](u[_0x28af75(0x27d)])),X(0x3,R[_0x28af75(0xe8)])],exports[_0x28af75(0x101)]);function Bt(_0x3b5d8f){const {status$:_0x56536f}=_0x3b5d8f;return function(){const _0x3a466f=_0x4bb0;return L[_0x3a466f(0x158)](je,{'status$':_0x56536f});};}var kt=Object[_0x28af75(0x30c)],Ht=(_0x4aadea,_0x384c63,_0x371c3e,_0x2499cd)=>{const _0x1812cb=_0x28af75;for(var _0x3cf59b=_0x2499cd>0x1?void 0x0:_0x2499cd?kt(_0x384c63,_0x371c3e):_0x384c63,_0x2d1524=_0x4aadea[_0x1812cb(0x1af)]-0x1,_0x28694f;_0x2d1524>=0x0;_0x2d1524--)(_0x28694f=_0x4aadea[_0x2d1524])&&(_0x3cf59b=_0x28694f(_0x3cf59b)||_0x3cf59b);return _0x3cf59b;},y=(_0x5aa888,_0x14d6df)=>(_0x485364,_0x528839)=>_0x14d6df(_0x485364,_0x528839,_0x5aa888);let z=class extends a[_0x28af75(0x242)]{constructor(_0x33fae7,_0x401eb2,_0x4613d8,_0x553a99,_0x3ac089,_0x2a51c5){const _0x3059a5=_0x28af75;super(),this[_0x3059a5(0xd8)]=_0x33fae7,this['_localCacheService']=_0x401eb2,this[_0x3059a5(0x11e)]=_0x4613d8,this[_0x3059a5(0x23e)]=_0x553a99,this[_0x3059a5(0x2a1)]=_0x3ac089,this[_0x3059a5(0x146)]=_0x2a51c5,this[_0x3059a5(0x29f)](),this[_0x3059a5(0x175)]();}[_0x28af75(0x29f)](){const _0x3aa5ee=_0x28af75;this['disposeWithMe'](this[_0x3aa5ee(0xd8)][_0x3aa5ee(0x225)](()=>{const _0x282e98=_0x3aa5ee;if(this['_localCacheService'][_0x282e98(0x110)][_0x282e98(0x2b7)])return this[_0x282e98(0x146)]['t'](_0x282e98(0x127));}));}['_initEvent'](){const _0x491c06=_0x28af75;this[_0x491c06(0x253)](this[_0x491c06(0x11e)][_0x491c06(0x269)][_0x491c06(0x328)](_0x2e8acc=>{const _0x26848e=_0x491c06;_0x2e8acc['id']===u[_0x26848e(0x26c)][_0x26848e(0x251)]&&this[_0x26848e(0x23e)][_0x26848e(0x2ea)]({'type':T[_0x26848e(0x306)][_0x26848e(0x2a5)],'content':this[_0x26848e(0x146)]['t'](_0x26848e(0x2d3))}),_0x2e8acc['id']===u[_0x26848e(0x26c)][_0x26848e(0x297)]&&this[_0x26848e(0x23e)][_0x26848e(0x2ea)]({'type':T[_0x26848e(0x306)][_0x26848e(0x2a5)],'content':this[_0x26848e(0x146)]['t'](_0x26848e(0x2a3))}),_0x2e8acc['id']===u[_0x26848e(0x26c)][_0x26848e(0x1f9)]&&this[_0x26848e(0x2a1)]['show']({'title':this[_0x26848e(0x146)]['t'](_0x26848e(0x131)),'content':this[_0x26848e(0x146)]['t'](_0x26848e(0x13a)),'type':_0x26848e(0x24a),'duration':0x0}),_0x2e8acc['id']===u[_0x26848e(0x26c)][_0x26848e(0x18e)]&&this[_0x26848e(0x23e)][_0x26848e(0x2ea)]({'type':T[_0x26848e(0x306)][_0x26848e(0x245)],'content':this[_0x26848e(0x146)]['t'](_0x26848e(0x2a3))+'('+_0x2e8acc[_0x26848e(0x1b0)]+')'}),_0x2e8acc['id']===u[_0x26848e(0x26c)][_0x26848e(0x333)]&&this['_messageService'][_0x26848e(0x2ea)]({'type':T['MessageType'][_0x26848e(0x2a5)],'content':this[_0x26848e(0x146)]['t'](_0x2e8acc[_0x26848e(0x1b0)]||'')}),_0x2e8acc['id']===u[_0x26848e(0x26c)][_0x26848e(0x152)]&&this['_messageService']['show']({'type':T[_0x26848e(0x306)][_0x26848e(0x2a5)],'content':this[_0x26848e(0x146)]['t'](_0x26848e(0x155))}),_0x2e8acc['id']===u['CollaborationUIEventId'][_0x26848e(0x2aa)]&&this[_0x26848e(0x23e)][_0x26848e(0x2ea)]({'type':T['MessageType'][_0x26848e(0x245)],'content':this[_0x26848e(0x146)]['t'](_0x26848e(0x192))}),_0x2e8acc['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this['_messageService']['show']({'type':T[_0x26848e(0x306)][_0x26848e(0x245)],'content':this[_0x26848e(0x146)]['t'](_0x26848e(0xdb))});}));}};z=Ht([y(0x0,R['IBeforeCloseService']),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x28af75(0x345)](u['CollaborationUIEventService'])),y(0x3,R[_0x28af75(0x218)]),y(0x4,R[_0x28af75(0x278)]),y(0x5,a[_0x28af75(0x345)](a[_0x28af75(0x30e)]))],z);const Wt=_0x28af75(0x157),Ne={},Ee=a[_0x28af75(0xd9)](_0x28af75(0x2fd));var Ft=Object[_0x28af75(0x30c)],Yt=(_0x827459,_0x4b2926,_0x20ccb3,_0x3c8cb7)=>{const _0x54894a=_0x28af75;for(var _0xd2cd7d=_0x3c8cb7>0x1?void 0x0:_0x3c8cb7?Ft(_0x4b2926,_0x20ccb3):_0x4b2926,_0x5e0ec5=_0x827459[_0x54894a(0x1af)]-0x1,_0xd7b722;_0x5e0ec5>=0x0;_0x5e0ec5--)(_0xd7b722=_0x827459[_0x5e0ec5])&&(_0xd2cd7d=_0xd7b722(_0xd2cd7d)||_0xd2cd7d);return _0xd2cd7d;},W=(_0x30c493,_0xa815e7)=>(_0x4c9c8f,_0x1fbac1)=>_0xa815e7(_0x4c9c8f,_0x1fbac1,_0x30c493);exports[_0x28af75(0x246)]=class extends a['RxDisposable']{constructor(_0xcd42b1,_0x4915b3,_0x42e8fd,_0x48382a,_0x34608d){const _0x4600c3=_0x28af75;super(),this[_0x4600c3(0x14c)]=_0xcd42b1,this[_0x4600c3(0x176)]=_0x4915b3,this[_0x4600c3(0x1d8)]=_0x42e8fd,this[_0x4600c3(0x1bc)]=_0x48382a,_0x34608d?_0x34608d==null||_0x34608d[_0x4600c3(0x21b)]()[_0x4600c3(0x2d4)](()=>this['_init']()):(this[_0x4600c3(0x176)][_0x4600c3(0x1b5)]('[CollaborationDataLoaderController]','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x4600c3(0x166)]());}async['_init'](){const _0x3e742a=_0x28af75,_0x3150bc=this['_urlService']['getParam'](_0x3e742a(0x136)),_0x518b4a=this[_0x3e742a(0x14c)]['getParam'](_0x3e742a(0x275)),_0x3efb53=this['_urlService']['getParam'](_0x3e742a(0x1f8));if(!_0x3150bc||!_0x518b4a){this[_0x3e742a(0x176)]['debug'](_0x3e742a(0x1df),_0x3e742a(0x24e));return;}const _0x4379be=await this[_0x3e742a(0x1bc)][_0x3e742a(0x2ba)](_0x3150bc,Number(_0x518b4a),_0x3efb53);_0x4379be&&_0x4379be instanceof a[_0x3e742a(0x13d)]&&this[_0x3e742a(0x293)](_0x4379be);}async[_0x28af75(0x293)](_0x9ad85e){const _0x3355c1=_0x28af75;await this[_0x3355c1(0x116)](_0x9ad85e),_0x9ad85e[_0x3355c1(0x32a)][_0x3355c1(0x214)](d[_0x3355c1(0xf5)](this['dispose$']))[_0x3355c1(0x328)](_0x1ae293=>{const _0x555bda=_0x3355c1;_0x1ae293&&this[_0x555bda(0x2b8)](_0x1ae293);}),this[_0x3355c1(0x14c)]['urlChange$'][_0x3355c1(0x214)](d[_0x3355c1(0xf5)](this[_0x3355c1(0x2b0)]))[_0x3355c1(0x328)](()=>this[_0x3355c1(0x116)](_0x9ad85e));}[_0x28af75(0x2b8)](_0x41b4d6,_0x4e4fd1=!0x1){const _0x3ce41f=_0x28af75,_0x40f922=this[_0x3ce41f(0x14c)][_0x3ce41f(0x179)](_0x3ce41f(0x1f8));_0x41b4d6[_0x3ce41f(0x320)]()!==_0x40f922&&this['_urlService'][_0x3ce41f(0x24d)](_0x3ce41f(0x1f8),_0x41b4d6['getSheetId'](),_0x4e4fd1);}async[_0x28af75(0x116)](_0x513b98){const _0x527718=_0x28af75;var _0x466d7f;const _0x2bf18f=this[_0x527718(0x14c)][_0x527718(0x179)](_0x527718(0x1f8));if(!_0x2bf18f||!_0x513b98['getSheetBySheetId'](_0x2bf18f)){const _0x303d0c=_0x513b98[_0x527718(0x14f)]()[0x0],_0x37d33a=_0x513b98['getSheetBySheetId'](_0x303d0c);if(!_0x37d33a)return;this['_updateURLWithCurrentState'](_0x37d33a,!0x0),await this['_commandService'][_0x527718(0x313)](g[_0x527718(0x24f)]['id'],{'unitId':_0x513b98[_0x527718(0x2f1)](),'subUnitId':_0x303d0c});return;}((_0x466d7f=_0x513b98['getActiveSheet']())==null?void 0x0:_0x466d7f[_0x527718(0x320)]())!==_0x2bf18f&&await this[_0x527718(0x1d8)][_0x527718(0x313)](g[_0x527718(0x24f)]['id'],{'unitId':_0x513b98[_0x527718(0x2f1)](),'subUnitId':_0x2bf18f});}},exports[_0x28af75(0x246)]=Yt([W(0x0,Ee),W(0x1,a[_0x28af75(0xef)]),W(0x2,a['ICommandService']),W(0x3,a[_0x28af75(0x345)](u[_0x28af75(0x185)])),W(0x4,a[_0x28af75(0xf6)](Ke['IRemoteInstanceService']))],exports[_0x28af75(0x246)]);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x38863b,_0x26894d,_0xbb932a,_0x173533)=>{const _0x4353bb=_0x28af75;for(var _0x19249e=_0x173533>0x1?void 0x0:_0x173533?Vt(_0x26894d,_0xbb932a):_0x26894d,_0x381494=_0x38863b[_0x4353bb(0x1af)]-0x1,_0xb45e2e;_0x381494>=0x0;_0x381494--)(_0xb45e2e=_0x38863b[_0x381494])&&(_0x19249e=_0xb45e2e(_0x19249e)||_0x19249e);return _0x19249e;},le=(_0x1d8b50,_0x2b0d4c)=>(_0xe0024d,_0x20d37e)=>_0x2b0d4c(_0xe0024d,_0x20d37e,_0x1d8b50);function _0x48a7(){const _0x12fd48=['runOnServer','_status$','dispose$','DocIMEInputManagerService','MUTATION','handleInsertRangeMoveDown','ALREADY_EXISTS','3293919JnOAcT','m1Prime','size','_updateURLWithCurrentState','setConfig','loadUnit','MemberService','useCallback','onLocalMutation','find','2214331EhUHZi','_drawRectRange','HTTPService','hasOwnProperty','result','IURLService','reconnect','actions','_shapes','CHANGESET_REVISION_CONFILICT','pluginName','react','UPDATE_CURSOR','forEach','xlink:href','blue400','getVpScrollXYInfoByPosToVp','SheetSkeletonManagerService','_saveTaskMap','univer-offline','collaboration.single-unit.warning','then','...','SessionStatus','SetSelectionsOperation','OTHER_CLIENTS_EDITING','FromArray','Failed','_render','_removeCollabCursors','_removeClearOtherTimer','@univerjs/sheets-ui','requireSession','_onCursorUpdate','SheetCollabCursorShape','getRenderById','handleIRemoveCol','delete','InsertColCommandId','addHandlerCallback','getTypeOfUnitDisposed$','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','getValue','show','OffLineSingle','@univerjs/ui','IUniverInstanceService','handleMoveRange','RegularPolygon','LICENSE_EXPORT_SIZE_EXCEEDED','getUnitId','name','EffectRefRangId','syncEditingCollabCursor','CollaborationStatus','_transformHistoryAndStateStack','ILocalCacheService','getOffsetConfig','_color','div','endColumn','purple300','uni.network.url-service','UniverInstanceType','WebURLService','COLORS','switchMap','DocStateChangeManagerService','_unitOnClients','Rect','getOwnPropertySymbols','MessageType','handleDeleteRangeMoveLeft','transformRemoteChangeset','30tRsbMt','ACTIVE_UNIT_EVENT_CHANNEL','arc','getOwnPropertyDescriptor','ColorKit','LocaleService','INVALID_ARGUMENT','current','_initStatusListener','apply','executeCommand','OFFLINE','onMouseMove','getCurrentSelections','restore','lineTo','transformMutation','@univerjs/network','_localStorageService','sessionTicket','_initEntityListener','ThemeService','getCellPositionByOffset','getSheetId','onRendered','getMemberID','_docSyncEditingCollabCursorService','asObservable','font','UNRECOGNIZED','selection','subscribe','_saveCache','activeSheet$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','RECT','labelPosition','unsubscribe','moveTo','toDisposable','EMAIL_HAS_BEEN_BOUND','_renderManagerService','JOIN_ROOM_FAILED','BuiltInUIPart','VIEW_MAIN','undoState','_univerInstanceService','_onRefRangeChange','_scheduleSaving','tag','unshift','all','CollaborationStatusDisplay','_startSheetCollabCursor','_hideTimer','get','collabStatus.fetchMiss','_syncEditingCollabCursorService','svg','TRANSFORM_CHANGE_OBSERVABLE_TYPE','Inject','replaceDocRanges','APPLY_REVISION_CONFILICT','UNIVER_DOC','getActiveRange','@univerjs/design','path','_cursor','WebSocketService','INVITE_CODE_HAS_BEEN_UES','values','extend','@univerjs/sheets','_send','NOT_COLLAB','useRef','bottom','fromEvent','isActive','_beforeCloseService','createIdentifier','hide','session.collaboration-timeout','filter','M0\x200H16V16H0z','getRangePointData','unitId','_scheduleHeartbeat','black','top','attrs','0\x200\x2016\x2016','ITransformService','collab-text-anchor-','ICommandService','IUIPartsService','min','with','rxjs/operators','YUUMI_SUBSCRIPTION_NOT_FOUND','currentColor','source','ILogService','gold400','1em','getUniverSheetInstance','_roomMembers$','on-line-single_clip0_910_349','takeUntil','Optional','getSheetBySheetId','onlineStatusIcon','fillStyle','_transformService','off-line-single','skeleton','LICENSE_IMPORT_SIZE_EXCEEDED','APPLY_REJECT','removeParam','backgroundColor','DesktopCollaborationStatusDisplayController','eventID','isTransformMutationsWithChangesetSuccess','_name','sheetId','1886656QITHbq','IDocClipboardService','OnLineSingle','_getSaveTimeout','_docTransformIMECacheService','replace','toString','RemoveColCommandId','getItem','Unknown\x20user','saveTaskMap','contains','UnitStatus','Shape','getMergeData','DisposableCollection','_updateSubUnitFromURLParams','collabStatus.offline','function','_textBubble','dispose','textRanges','jsxs','APPLY_DUPLICATED','_collaborationUIEventService','PENDING','_config','init','propertyIsEnumerable','BrowserCollaborationSocketService','3zeXJjw','_handleEvent','_collabCursorState$','collaboration-client.offline-data-not-saved','verdancy600','_configService','USER_NOT_INVITED_CODE','TOO_MANY_REQUESTS','transformSelections','getAncestorScale','string','Plugin','idSuffix','permission.title','_hover','updateOfflineData','executionId','column','unit','getActiveSheet','isEditing','_heartbeatTimer','permission.content','_refreshCollabCursors','_getMergeRange','Workbook','_lastPointer','serializeRangeWithSheet','editingUnit','prototype','_initStatusComponent','_registerRenderDependencies','registerRefRange','NOT_FOUND','_localeService','_injector','defs','SYNCED','YUUMI_RATE_OVER_LIMIT','currentTheme$','_urlService','next','onPointerEnter$','getUnhiddenWorksheets','isArray','_docTransformSelectionsService','SOCKET_FAILED_RETRY','_collabCursorController','getLocalCacheKey','session.will-retry','_toggleOnline','collaboration-client-ui.config','jsx','defineProperty','redoState','_toggleOffline','1956528CFtPRi','_colorIndex','params','_docStateChangeManagerService','TEXT','merge','application/json','_entityInit$','concat','APPLY_NON_SEQUENTIAL_REVISION','_init','icon','_refRangeService','_scheduleClearOtherTimer','_onCursorDelete','setItem','RemoteUniscriptService','setAlpha','addObject','ranges','USERS_LEAVE','newValue','from','className','assign','_initEvent','_logService','_docClipboardService','getFocusedUnit','getParam','_updateLocalCursor','_cursorShapes','IRenderManagerService','call','_docSkeleton','location','UNIVER_SHEET','generateRandomId','getViewport','INVITE_CODE_REQUIRED','Injector','DataLoaderService','children','forwardRef','createSocket','_sheetSkeletonManagerService','_docTransformStateCacheService','complete','CONNECTOR_DATA_TOO_LARGE','_drawAnchor','CONFLICT','@univerjs/rpc','ENSURE_SNAPSHOT_EXECUTION','@univerjs/docs','session.connection-failed','getCoordByCell','_selfUnitIDs','getRelativeToViewportCoord','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_unitStatus','AWAITING','subscribeEvent','color','710SXORsn','_drawTextRange','engine','parse','BehaviorSubject','getUndoRedoMutationParamsCache','translate(.97)','cursorInfo$','CollaborationSessionService','post','DeleteRangeMoveLeftCommandId','transformMutationsWithChangeset','DependentOn','clsx','doc.mutation.rich-text-editing','origin','_context','clipPath','addClipboardHook','82746PBCAKd','length','data','row','LOGIN_FAILED','DocSkeletonManagerService','YUUMI_URL_COL_OUT_OF_RANGE','debug','collabStatus.notCollab','_updateCollabCursors','_memberService','width','fromEventSubject','_cursors','_dataLoaderService','_transformPreviousActiveRange','DEFAULT_WS_SESSION_TICKET_URL','_getScale','round','DeleteRangeMoveUpCommandId','resize','includes','clearInterval','AWAITING_WITH_PENDING','use','_online','_scene','wsSessionTicketUrl','CollaborationEvent','createElement','_backgroundColor','UNAUTHENTICATED','indexOf','debounceTime','currentSkeleton$','height','_collabSessionService','setActiveRange','m2Prime','history','has','rxjs','_commandService','_instanceService','runRefRangeMutations','fill','onPointerLeave$','loadOfflineData','RxDisposable','[CollaborationDataLoaderController]','collabStatus.conflict','univer-online-status','red300','toRgbString','_cachedData','some','_initCommandExecutedListener','addEventListener','UniverCollaborationClientUIPlugin','drawWith','setShapeProps','Rectangle','makeDirty','_collaborationController','replaceState','_range','PY_RUNTIME_SCRIPT_ERROR','637404qFkByA','SNAPSHOT_INVALID_SNAPSHOT','findNodePositionByCharIndex','status$','handleInsertRow','_anchorDot','getStateCache','subunit','PERMISSION_DENIED','split','_registerDependencies','#fff','saveImage','key','colorChannel1','shareReplay','_handleHover','RichTextEditingMutation','exhaustSavingTask','measureText','@univerjs/docs-ui','_assignedColors','fillText','mutations','_ensureSubject','_disabled','SHEET_VIEWPORT_KEY','MOBILE_HAS_BEEN_BOUND','_cursorInfo$','body','connectInjector','deepClone','save','unload','override','pipe','Tools','DOC_RANGE_TYPE','getDocRanges','IMessageService','_imageIoService','_initDependencies','whenReady','_hovered','range','Tooltip','focused$','#FFF','stringify','UNDEFINED','getConfig','_uiPartsService','registerBeforeClose','ILocalStorageService','roomMembers','cursorInfo','on-line-single','distinctUntilChanged','COMPLETION_FINISHED','_clearOtherTimers','NodePositionConvertToCursor','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','TEXT_RANGE_LAYER_INDEX','push','_themeService','INVITE_CODE_ALREADY_BOUND','map','univer-online','INVALID_INVITE_CODE','ticket','IConfigService','_eventUnsubscribe','SNAPSHOT_HAS_BEEN_REMOVED','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','defIds','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','MoveRangeCommandId','_messageService','setTimeout','fillRule','univer-online-status-icon','Disposable','add','DocSelectionManagerService','Error','CollaborationDataLoaderController','APPLY_PERMISSION_DENIED','_doCreateSocket','_id','error','href','unitID','setParam','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SetWorksheetActivateCommand','url(#$1','OTHER_CLIENT_EDITING','INTERNAL_ERROR','disposeWithMe','collabCursorState$','handleInsertRangeMoveRight','getMember','off-line-single_clip0_910_343','_draw','_session','_handleJoinEvent','jiqing500','setStateCache','onCommandExecuted','set','ONLINE','setUndoRedoMutationParamsCache','getTypeOfUnitAdded$','/run/','@univerjs-pro/collaboration','getCollabCursors$','evenodd','_labelPosition','selections','registerRenderModule','event$','trim','combineLatest','CollaborationUIEventId','text','_anchor','none','isTransformMutationFailure','clearTimeout','collab-text-range-','_getAnchorBounding','transformStateCache','type','_getSessionTicket','rgba(255,\x20255,\x20255,\x200.01)','INotificationService','Subject','getCurrent','send','runId','CollaborationController','roomMembers$','registerDependencies','FETCH_MISS','subUnitId','pushState','assignAColorForMemberID','WECHAT_HAS_BEEN_BOUND','YUUMI_UNABLE_LOAD_URL','mergeOverrideWithDependencies','deserializeRangeWithSheet','collab-rect-range-','univer-flex\x20univer-items-center','searchParams','_initResize','getColor','url(#on-line-single_clip0_910_349)','DocCollaborationEntity','debounce','mask','_httpService','@univerjs-pro/collaboration-client','_setupSubUnitSync','handleInsertCol','LOCAL_CACHE_INTERVAL','_entities','CLOSE_ROOM','_colorAssignService','_getSheetObject','_handleLeaveEvent','useDependency','942HQsbQs','transformIMECache','LICENSE_MAX_UNITS_EXCEEDED','_setupBeforeClosingHandler','LICENSE_DISTRO_REJECTED','_notificationService','_handleHeartbeatEvent','collaboration.closeRoom','getSkeleton','Warning','0\x200\x2017\x2016','_createSocketURL','offline','NO_OTHER_CLIENTS_EDITING','SOCKET_FAILED','startColumn','Vector2','startRow'];_0x48a7=function(){return _0x12fd48;};return _0x48a7();}let J=class{constructor(_0xa3ba23,_0x48eaf0,_0x55ca04){const _0x46e49a=_0x28af75;this[_0x46e49a(0x147)]=_0xa3ba23,this['_transformService']=_0x48eaf0,this[_0x46e49a(0x332)]=_0x55ca04;}[_0x28af75(0x29d)](_0x4af133){const _0x146dcd=_0x28af75;this['_transformUndoRedoStack'](_0x4af133),this[_0x146dcd(0x1bd)](_0x4af133);}[_0x28af75(0x308)](_0x1c200a){const _0x12e176=_0x28af75,{unitID:_0x5ae8e4}=_0x1c200a,_0x191703=this[_0x12e176(0x332)][_0x12e176(0x2e2)](_0x5ae8e4)[_0x12e176(0xea)](b[_0x12e176(0x2b1)]),{redoCache:_0x17a614}=_0x191703[_0x12e176(0x1a0)]();if(_0x17a614[_0x12e176(0x1af)]===0x0)return _0x1c200a;let _0x5b7d18=a['Tools'][_0x12e176(0x210)](_0x1c200a[_0x12e176(0x208)][0x0]);for(let _0x1036f6=0x0;_0x1036f6<_0x17a614[_0x12e176(0x1af)];_0x1036f6++){const _0x5afffc={'id':_0x12e176(0x1a9),'params':{..._0x17a614[_0x1036f6]}},_0x1467f8=this[_0x12e176(0xfa)][_0x12e176(0x319)](_0x5b7d18,_0x5afffc,!0x1);if(m['isTransformMutationFailure'](_0x1467f8))throw _0x1467f8[_0x12e176(0x24a)];_0x5b7d18=_0x1467f8[_0x12e176(0x2b6)];}return{...a['Tools'][_0x12e176(0x210)](_0x1c200a),'mutations':[_0x5b7d18]};}['_transformUndoRedoStack'](_0xc4ebc9){const _0x3a0a44=_0x28af75,{unitID:_0x228ee9}=_0xc4ebc9,_0x1329ab=this[_0x3a0a44(0x332)]['getRenderById'](_0x228ee9)['with'](b['DocIMEInputManagerService']),{undoCache:_0xf79ffa,redoCache:_0x16bf38}=_0x1329ab['getUndoRedoMutationParamsCache']();if(_0xf79ffa[_0x3a0a44(0x1af)]===0x0||_0x16bf38['length']===0x0)return;const _0xe495f9=[],_0x2d5cee=[];let _0x368a44=a[_0x3a0a44(0x215)][_0x3a0a44(0x210)](_0xc4ebc9['mutations'][0x0]),_0x11d1a1=a[_0x3a0a44(0x215)][_0x3a0a44(0x210)](_0xc4ebc9[_0x3a0a44(0x208)][0x0]);for(let _0x12d8b2=_0xf79ffa[_0x3a0a44(0x1af)]-0x1;_0x12d8b2>=0x0;_0x12d8b2--){const _0x77ccff={'id':'doc.mutation.rich-text-editing','params':{..._0xf79ffa[_0x12d8b2]}},_0x3a52f4={'id':_0x3a0a44(0x1a9),'params':{..._0x16bf38[_0x12d8b2]}},_0x24ef29=this[_0x3a0a44(0xfa)][_0x3a0a44(0x319)](_0x368a44,_0x77ccff,!0x1),_0x3c4833=this[_0x3a0a44(0xfa)][_0x3a0a44(0x319)](_0x11d1a1,_0x3a52f4,!0x1);if(m[_0x3a0a44(0x270)](_0x24ef29))throw _0x24ef29[_0x3a0a44(0x24a)];if(m[_0x3a0a44(0x270)](_0x3c4833))throw _0x3c4833['error'];_0xe495f9[_0x3a0a44(0x33b)](_0x24ef29['m2Prime']['params']),_0x2d5cee[_0x3a0a44(0x33b)](_0x3c4833['m2Prime'][_0x3a0a44(0x15e)]),_0x368a44=_0x24ef29[_0x3a0a44(0x2b6)],_0x11d1a1=_0x3c4833['m1Prime'];}_0x1329ab[_0x3a0a44(0x260)]({'undoCache':_0xe495f9,'redoCache':_0x2d5cee});}[_0x28af75(0x1bd)](_0x362a68){const _0x4264b6=_0x28af75,{unitID:_0x224fc9}=_0x362a68,_0x541f6a=this[_0x4264b6(0x332)][_0x4264b6(0x2e2)](_0x224fc9)['with'](b[_0x4264b6(0x2b1)]),_0x426dc4=_0x541f6a[_0x4264b6(0x349)]();if(_0x426dc4==null)return;const _0x11485a=[{'id':_0x4264b6(0x1a9),'params':{'unitId':_0x362a68['unitID'],'actions':null,'textRanges':[_0x426dc4]}}],_0x5aa20b=this['_transformService'][_0x4264b6(0x1a6)](_0x362a68,_0x11485a);if(!m['isTransformMutationsWithChangesetSuccess'](_0x5aa20b))throw _0x5aa20b[_0x4264b6(0x24a)];const _0x121c46=_0x5aa20b[_0x4264b6(0x1d4)][0x0]['params'][_0x4264b6(0x11b)];Array[_0x4264b6(0x150)](_0x121c46)&&_0x121c46[_0x4264b6(0x1af)]&&_0x541f6a[_0x4264b6(0x1d3)](_0x121c46[0x0]);}};J=Xt([le(0x0,a[_0x28af75(0x345)](a['Injector'])),le(0x1,m[_0x28af75(0xe5)]),le(0x2,p[_0x28af75(0x17c)])],J);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x4b1e1d,_0x440d6b,_0x1c332a,_0x1dc906)=>{for(var _0x1366ab=_0x1dc906>0x1?void 0x0:_0x1dc906?Gt(_0x440d6b,_0x1c332a):_0x440d6b,_0x44d172=_0x4b1e1d['length']-0x1,_0x13efec;_0x44d172>=0x0;_0x44d172--)(_0x13efec=_0x4b1e1d[_0x44d172])&&(_0x1366ab=_0x13efec(_0x1366ab)||_0x1366ab);return _0x1366ab;},_e=(_0x5b2403,_0x5389d2)=>(_0x274350,_0x324a20)=>_0x5389d2(_0x274350,_0x324a20,_0x5b2403);let Z=class{constructor(_0x4c6a31,_0x4a2971,_0x26fb35){const _0x576614=_0x28af75;this[_0x576614(0x147)]=_0x4c6a31,this[_0x576614(0xfa)]=_0x4a2971,this['_docStateChangeManagerService']=_0x26fb35;}[_0x28af75(0x274)](_0x339490){this['_transformHistoryAndStateStack'](_0x339490);}[_0x28af75(0x308)](_0x3a75e7){const _0x45db48=_0x28af75,{unitID:_0x4c0514}=_0x3a75e7,{collaboration:_0x1d9f04}=this[_0x45db48(0x15f)][_0x45db48(0x1f7)](_0x4c0514);if(_0x1d9f04['length']===0x0)return _0x3a75e7;let _0xe8924e=a[_0x45db48(0x215)][_0x45db48(0x210)](_0x3a75e7[_0x45db48(0x208)][0x0]);for(let _0x38cf15=0x0;_0x38cf15<_0x1d9f04[_0x45db48(0x1af)];_0x38cf15++){const _0x45025e={'id':_0x45db48(0x1a9),'params':{'unitId':_0x1d9f04[_0x38cf15][_0x45db48(0xdf)],..._0x1d9f04[_0x38cf15]['redoState']}},_0x1d0710=this['_transformService'][_0x45db48(0x319)](_0xe8924e,_0x45025e,!0x1);if(m[_0x45db48(0x270)](_0x1d0710))throw _0x1d0710[_0x45db48(0x24a)];_0xe8924e=_0x1d0710[_0x45db48(0x2b6)];}return{...a[_0x45db48(0x215)][_0x45db48(0x210)](_0x3a75e7),'mutations':[_0xe8924e]};}[_0x28af75(0x2f6)](_0x183539){const _0x4a5d37=_0x28af75,{unitID:_0x4b3cd9}=_0x183539,{history:_0x2ab9b4,collaboration:_0x3b2609}=this[_0x4a5d37(0x15f)][_0x4a5d37(0x1f7)](_0x4b3cd9);if(_0x2ab9b4[_0x4a5d37(0x1af)]===0x0&&_0x3b2609[_0x4a5d37(0x1af)]===0x0)return;const _0x176a1f=[],_0x128c3c=[];let _0x2266ba=a['Tools']['deepClone'](_0x183539[_0x4a5d37(0x208)][0x0]),_0x10245=a[_0x4a5d37(0x215)][_0x4a5d37(0x210)](_0x183539[_0x4a5d37(0x208)][0x0]);for(let _0x4dd6d5=_0x2ab9b4['length']-0x1;_0x4dd6d5>=0x0;_0x4dd6d5--){const _0x4ff42e={'id':_0x4a5d37(0x1a9),'params':{'unitId':_0x2ab9b4[_0x4dd6d5]['unitId'],..._0x2ab9b4[_0x4dd6d5][_0x4a5d37(0x336)]}},_0x1ba763={'id':_0x4a5d37(0x1a9),'params':{'unitId':_0x2ab9b4[_0x4dd6d5][_0x4a5d37(0xdf)],..._0x2ab9b4[_0x4dd6d5][_0x4a5d37(0x15a)]}},_0x2afda7=this[_0x4a5d37(0xfa)]['transformMutation'](_0x2266ba,_0x4ff42e,!0x1),_0x32997b=this['_transformService'][_0x4a5d37(0x319)](_0x10245,_0x1ba763,!0x1);if(m[_0x4a5d37(0x270)](_0x2afda7))throw _0x2afda7['error'];if(m['isTransformMutationFailure'](_0x32997b))throw _0x32997b['error'];_0x176a1f[_0x4a5d37(0x33b)]({..._0x2ab9b4[_0x4dd6d5],'undoState':_0x2afda7[_0x4a5d37(0x1d4)][_0x4a5d37(0x15e)],'redoState':_0x32997b[_0x4a5d37(0x1d4)][_0x4a5d37(0x15e)]}),_0x2266ba=_0x2afda7[_0x4a5d37(0x2b6)],_0x10245=_0x32997b[_0x4a5d37(0x2b6)];}_0x2266ba=a[_0x4a5d37(0x215)][_0x4a5d37(0x210)](_0x183539['mutations'][0x0]),_0x10245=a[_0x4a5d37(0x215)][_0x4a5d37(0x210)](_0x183539[_0x4a5d37(0x208)][0x0]);for(let _0x47c9f5=_0x3b2609[_0x4a5d37(0x1af)]-0x1;_0x47c9f5>=0x0;_0x47c9f5--){const _0x305b22={'id':_0x4a5d37(0x1a9),'params':{'unitId':_0x3b2609[_0x47c9f5][_0x4a5d37(0xdf)],..._0x3b2609[_0x47c9f5][_0x4a5d37(0x336)]}},_0x5bcf54={'id':_0x4a5d37(0x1a9),'params':{'unitId':_0x3b2609[_0x47c9f5][_0x4a5d37(0xdf)],..._0x3b2609[_0x47c9f5][_0x4a5d37(0x15a)]}},_0x2f8e6=this['_transformService']['transformMutation'](_0x2266ba,_0x305b22,!0x1),_0x594b74=this['_transformService'][_0x4a5d37(0x319)](_0x10245,_0x5bcf54,!0x1);if(m[_0x4a5d37(0x270)](_0x2f8e6))throw _0x2f8e6[_0x4a5d37(0x24a)];if(m[_0x4a5d37(0x270)](_0x594b74))throw _0x594b74[_0x4a5d37(0x24a)];_0x128c3c[_0x4a5d37(0x33b)]({..._0x3b2609[_0x47c9f5],'undoState':_0x2f8e6[_0x4a5d37(0x1d4)][_0x4a5d37(0x15e)],'redoState':_0x594b74[_0x4a5d37(0x1d4)][_0x4a5d37(0x15e)]}),_0x2266ba=_0x2f8e6[_0x4a5d37(0x2b6)],_0x10245=_0x594b74[_0x4a5d37(0x2b6)];}this[_0x4a5d37(0x15f)][_0x4a5d37(0x25c)](_0x4b3cd9,{'history':_0x176a1f,'collaboration':_0x128c3c});}};Z=qt([_e(0x0,a[_0x28af75(0x345)](a[_0x28af75(0x184)])),_e(0x1,m[_0x28af75(0xe5)]),_e(0x2,a[_0x28af75(0x345)](b[_0x28af75(0x302)]))],Z);var Kt=Object[_0x28af75(0x30c)],zt=(_0x5c0f58,_0x2eae3e,_0x182b71,_0x1b29fc)=>{const _0x5d9866=_0x28af75;for(var _0xf36d11=_0x1b29fc>0x1?void 0x0:_0x1b29fc?Kt(_0x2eae3e,_0x182b71):_0x2eae3e,_0x51738f=_0x5c0f58[_0x5d9866(0x1af)]-0x1,_0x442987;_0x51738f>=0x0;_0x51738f--)(_0x442987=_0x5c0f58[_0x51738f])&&(_0xf36d11=_0x442987(_0xf36d11)||_0xf36d11);return _0xf36d11;},Me=(_0x3beed1,_0x397004)=>(_0xa265f1,_0x5d444e)=>_0x397004(_0xa265f1,_0x5d444e,_0x3beed1);let Q=class{constructor(_0x403928,_0x117523){const _0x107d72=_0x28af75;this[_0x107d72(0x147)]=_0x403928,this[_0x107d72(0xfa)]=_0x117523;}[_0x28af75(0x12c)](_0x16785e){const _0x289918=_0x28af75;var _0x879e24;const _0x2dee7b=this[_0x289918(0x147)][_0x289918(0x340)](Y['DocSelectionManagerService']),_0x14c2a5=(_0x879e24=_0x2dee7b[_0x289918(0x217)]())!=null?_0x879e24:[];if(_0x14c2a5[_0x289918(0x1af)]===0x0)return;const _0x4a21ca=_0x16785e[_0x289918(0x24c)],_0x40d398=[{'id':_0x289918(0x1a9),'params':{'unitId':_0x4a21ca,'actions':null,'textRanges':_0x14c2a5}}],_0x178d90=this[_0x289918(0xfa)][_0x289918(0x1a6)](_0x16785e,_0x40d398);if(!m[_0x289918(0x103)](_0x178d90))throw _0x178d90['error'];const _0x4cf02a=_0x178d90[_0x289918(0x1d4)][0x0][_0x289918(0x15e)][_0x289918(0x11b)];Array[_0x289918(0x150)](_0x4cf02a)&&_0x4cf02a[_0x289918(0x1af)]&&_0x2dee7b[_0x289918(0x346)](_0x4cf02a,{'unitId':_0x4a21ca,'subUnitId':_0x4a21ca},!0x1);}};Q=zt([Me(0x0,a[_0x28af75(0x345)](a[_0x28af75(0x184)])),Me(0x1,m[_0x28af75(0xe5)])],Q);var Jt=Object[_0x28af75(0x30c)],Zt=(_0x179935,_0x4694a8,_0x541faf,_0x5edace)=>{for(var _0x3fb56a=_0x5edace>0x1?void 0x0:_0x5edace?Jt(_0x4694a8,_0x541faf):_0x4694a8,_0x4c6aa5=_0x179935['length']-0x1,_0x4d6fea;_0x4c6aa5>=0x0;_0x4c6aa5--)(_0x4d6fea=_0x179935[_0x4c6aa5])&&(_0x3fb56a=_0x4d6fea(_0x3fb56a)||_0x3fb56a);return _0x3fb56a;},N=(_0x1a4856,_0x10e4e5)=>(_0xce956,_0x4b5273)=>_0x10e4e5(_0xce956,_0x4b5273,_0x1a4856);let ee=class extends a['Disposable']{constructor(_0x54332f,_0x351285,_0x1bf789,_0x3828fb,_0x5880f5,_0x8b8b06,_0x17bcdb,_0x268946){const _0x281a80=_0x28af75;super(),_(this,_0x281a80(0x2af),new d[(_0x281a80(0x19f))](u[_0x281a80(0x2f5)][_0x281a80(0xd3)])),(this[_0x281a80(0x15f)]=_0x54332f,this[_0x281a80(0x1ed)]=_0x351285,this['_docTransformIMECacheService']=_0x1bf789,this[_0x281a80(0x18a)]=_0x3828fb,this[_0x281a80(0x151)]=_0x5880f5,this['_docSyncEditingCollabCursorService']=_0x8b8b06,this['_messageService']=_0x17bcdb,this[_0x281a80(0x146)]=_0x268946,this[_0x281a80(0x31d)]());}[_0x28af75(0x31d)](){const _0x491c93=_0x28af75;this[_0x491c93(0x253)](this[_0x491c93(0x1ed)]['entityInit$']['subscribe'](_0x3724f9=>{const _0x30050f=_0x491c93,_0x3c52ee=this[_0x30050f(0x15f)]['docStateChange$'][_0x30050f(0x328)](_0x576022=>{const _0x5aa362=_0x30050f;if(_0x576022==null)return;const {unitId:_0x118e98,redoState:_0x14579b,commandId:_0x271126}=_0x576022;if(_0x118e98!==_0x3724f9[_0x5aa362(0x24c)])return;const _0x29d271={'id':_0x271126,'type':a['CommandType'][_0x5aa362(0x2b2)],'params':{'unitId':_0x118e98,'actions':_0x14579b[_0x5aa362(0x2c6)],'textRanges':null}};_0x3724f9[_0x5aa362(0x2bd)](_0x29d271);});if(_0x3724f9[_0x30050f(0x253)](_0x3c52ee),_0x3724f9 instanceof u[_0x30050f(0x28e)]){const _0x3b36d7={'onTransformIME':_0x7155b=>this[_0x30050f(0x10a)][_0x30050f(0x29d)](_0x7155b),'onTransformState':_0x50ac87=>this[_0x30050f(0x18a)][_0x30050f(0x274)](_0x50ac87),'onTransformSelections':_0x52804d=>this[_0x30050f(0x151)][_0x30050f(0x12c)](_0x52804d),'onSyncEditingCollabCursor':_0x4548f6=>this[_0x30050f(0x323)][_0x30050f(0x2f4)](_0x4548f6),'onTransformRemoteChangesetByIMECache':_0x36ed80=>this[_0x30050f(0x10a)][_0x30050f(0x308)](_0x36ed80),'onTransformRemoteChangesetByStateCache':_0x14b285=>this[_0x30050f(0x18a)][_0x30050f(0x308)](_0x14b285)};_0x3724f9[_0x30050f(0x2e6)](_0x3b36d7);}}));}};ee=Zt([N(0x0,a['Inject'](b[_0x28af75(0x302)])),N(0x1,a[_0x28af75(0x345)](u[_0x28af75(0x27d)])),N(0x2,a[_0x28af75(0x345)](J)),N(0x3,a[_0x28af75(0x345)](Z)),N(0x4,a[_0x28af75(0x345)](Q)),N(0x5,a[_0x28af75(0x345)](pe)),N(0x6,R[_0x28af75(0x218)]),N(0x7,a[_0x28af75(0x345)](a['LocaleService']))],ee);var Qt=Object[_0x28af75(0x30c)],es=(_0x54fbf8,_0x310732,_0x5205b8,_0x260c7b)=>{const _0x5b71de=_0x28af75;for(var _0x36f3d6=_0x260c7b>0x1?void 0x0:_0x260c7b?Qt(_0x310732,_0x5205b8):_0x310732,_0x149897=_0x54fbf8[_0x5b71de(0x1af)]-0x1,_0x1aba6e;_0x149897>=0x0;_0x149897--)(_0x1aba6e=_0x54fbf8[_0x149897])&&(_0x36f3d6=_0x1aba6e(_0x36f3d6)||_0x36f3d6);return _0x36f3d6;},he=(_0x1c777,_0x164b3e)=>(_0xf0a664,_0x45296f)=>_0x164b3e(_0xf0a664,_0x45296f,_0x1c777);let me=class extends a[_0x28af75(0x242)]{constructor(_0x12f098,_0x529ef2,_0x3d15fc){const _0x37189c=_0x28af75;super(),_(this,'_cachedData',new Map()),_(this,_0x37189c(0x2d1),new Map()),_(this,_0x37189c(0x20a),!0x1),(this[_0x37189c(0x129)]=_0x12f098,this['_localStorageService']=_0x529ef2,this['_revisionService']=_0x3d15fc);}['disableLocalCache'](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x55083b=_0x28af75;this[_0x55083b(0x20a)]=!0x1;}get[_0x28af75(0x110)](){const _0x5d1157=_0x28af75;return this[_0x5d1157(0x2d1)];}[_0x28af75(0x11a)](){const _0x27dddd=_0x28af75;this[_0x27dddd(0x203)]()[_0x27dddd(0x2d4)](()=>super[_0x27dddd(0x11a)]());}async[_0x28af75(0x1dd)](_0x147e81){const _0x4526dc=_0x28af75;return this[_0x4526dc(0x20a)]?null:this['_localStorageService'][_0x4526dc(0x10e)](u[_0x4526dc(0x154)](_0x147e81));}async['saveOfflineData'](_0x516e62,_0x2c3456){const _0x2b11f5=_0x28af75;return!!this[_0x2b11f5(0x31b)]['setItem'](_0x516e62,_0x2c3456);}[_0x28af75(0x133)](_0x505c92,_0x2078ea,_0x409436,_0x283f0e){const _0x34a22a=_0x28af75,_0x5f101d=this['_revisionService']['getCurrentRevOfUnit'](_0x505c92);this[_0x34a22a(0x1e4)][_0x34a22a(0x25e)](_0x505c92,{'unitID':_0x505c92,'type':_0x2078ea,'awaitingChangeset':_0x409436,'mutations':_0x283f0e,'rev':_0x5f101d}),this[_0x34a22a(0x2d1)][_0x34a22a(0x1d6)](_0x505c92)||this[_0x34a22a(0x339)](_0x505c92);}[_0x28af75(0x339)](_0x6ffd67){const _0x3aba2d=_0x28af75,_0x515e5f=this[_0x3aba2d(0x109)]();_0x515e5f===0x0?this[_0x3aba2d(0x329)](_0x6ffd67):this[_0x3aba2d(0x2d1)][_0x3aba2d(0x25e)](_0x6ffd67,setTimeout(()=>this[_0x3aba2d(0x329)](_0x6ffd67),_0x515e5f));}[_0x28af75(0x109)](){const _0xc9517=_0x28af75;var _0x565468;return(_0x565468=this[_0xc9517(0x129)][_0xc9517(0x223)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x565468:u[_0xc9517(0x295)];}[_0x28af75(0x329)](_0x56ad2d){const _0x24a197=_0x28af75,_0x4ba086=this[_0x24a197(0x2d1)]['get'](_0x56ad2d);return _0x4ba086!==void 0x0&&window[_0x24a197(0x271)](_0x4ba086),this[_0x24a197(0x31b)][_0x24a197(0x16b)](u[_0x24a197(0x154)](_0x56ad2d),this[_0x24a197(0x1e4)][_0x24a197(0x340)](_0x56ad2d))[_0x24a197(0x2d4)](()=>this[_0x24a197(0x2d1)][_0x24a197(0x2e4)](_0x56ad2d));}async[_0x28af75(0x203)](){const _0x17b1cd=_0x28af75,_0x57c6d7=[];this['_saveTaskMap'][_0x17b1cd(0x2cc)]((_0x4fd038,_0x53f852)=>{const _0x5e0b26=_0x17b1cd;window['clearTimeout'](_0x4fd038),_0x57c6d7['push'](this[_0x5e0b26(0x329)](_0x53f852)[_0x5e0b26(0x2d4)](()=>{const _0xf6273a=_0x5e0b26;this[_0xf6273a(0x2d1)][_0xf6273a(0x2e4)](_0x53f852);}));}),await Promise[_0x17b1cd(0x33c)](_0x57c6d7);}};me=es([he(0x0,a[_0x28af75(0x237)]),he(0x1,a[_0x28af75(0x226)]),he(0x2,a['Inject'](m['RevisionService']))],me);class Be extends a[_0x28af75(0x1de)]{constructor(){const _0x1fb2ff=_0x28af75;super(),_(this,'urlChange$'),this['urlChange$']=d[_0x1fb2ff(0xd6)](window,'popstate')[_0x1fb2ff(0x214)](d[_0x1fb2ff(0xf5)](this[_0x1fb2ff(0x2b0)]),d[_0x1fb2ff(0x200)](0x1),d['mapTo'](void 0x0));}[_0x28af75(0x24d)](_0xf4aa5b,_0x241396,_0x292afc=!0x1){const _0xb49a53=_0x28af75,_0x16ef73=new URL(window[_0xb49a53(0x17f)][_0xb49a53(0x24b)]);_0x16ef73[_0xb49a53(0x28a)][_0xb49a53(0x25e)](_0xf4aa5b,_0x241396),_0x292afc?window[_0xb49a53(0x1d5)][_0xb49a53(0x1ee)]('','',_0x16ef73[_0xb49a53(0x10c)]()):window[_0xb49a53(0x1d5)][_0xb49a53(0x282)]('','',_0x16ef73[_0xb49a53(0x10c)]());}[_0x28af75(0xff)](_0x1c9567,_0x5c016f=!0x1){const _0x5c964f=_0x28af75,_0x324097=new URL(window[_0x5c964f(0x17f)][_0x5c964f(0x24b)]);_0x324097['searchParams'][_0x5c964f(0x2e4)](_0x1c9567),_0x5c016f?window[_0x5c964f(0x1d5)][_0x5c964f(0x1ee)]('','',_0x324097[_0x5c964f(0x10c)]()):window[_0x5c964f(0x1d5)][_0x5c964f(0x282)]('','',_0x324097[_0x5c964f(0x10c)]());}[_0x28af75(0x179)](_0x1fa076){const _0x3f19f0=_0x28af75;var _0x49d104;return(_0x49d104=new URL(window[_0x3f19f0(0x17f)][_0x3f19f0(0x24b)])[_0x3f19f0(0x28a)]['get'](_0x1fa076))!=null?_0x49d104:void 0x0;}}var ts=Object[_0x28af75(0x159)],ss=Object[_0x28af75(0x30c)],ns=(_0x5030b8,_0xab7c55,_0x3bc719)=>_0xab7c55 in _0x5030b8?ts(_0x5030b8,_0xab7c55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bc719}):_0x5030b8[_0xab7c55]=_0x3bc719,is=(_0x4805a1,_0x30010e,_0x340ec6,_0x1cc946)=>{const _0x1f8d63=_0x28af75;for(var _0x1072a7=_0x1cc946>0x1?void 0x0:_0x1cc946?ss(_0x30010e,_0x340ec6):_0x30010e,_0x1efe5b=_0x4805a1[_0x1f8d63(0x1af)]-0x1,_0x1f2406;_0x1efe5b>=0x0;_0x1efe5b--)(_0x1f2406=_0x4805a1[_0x1efe5b])&&(_0x1072a7=_0x1f2406(_0x1072a7)||_0x1072a7);return _0x1072a7;},ue=(_0x3ccd51,_0x3135ec)=>(_0x4b2eae,_0x230c42)=>_0x3135ec(_0x4b2eae,_0x230c42,_0x3ccd51),rs=(_0x393053,_0x3d6474,_0x445c87)=>ns(_0x393053,_0x3d6474+'',_0x445c87);const os='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x28af75(0x1e8)]=class extends a[_0x28af75(0x12f)]{constructor(_0x39699e=Ne,_0x658e3a,_0x5c1eac,_0x44ef4d){const _0x4423e7=_0x28af75;super(),this[_0x4423e7(0x120)]=_0x39699e,this[_0x4423e7(0x332)]=_0x658e3a,this[_0x4423e7(0x147)]=_0x5c1eac,this[_0x4423e7(0x129)]=_0x44ef4d;const {..._0x52aa4b}=a[_0x4423e7(0x161)]({},Ne,this[_0x4423e7(0x120)]);this[_0x4423e7(0x129)][_0x4423e7(0x2b9)](Wt,_0x52aa4b);}['onStarting'](){const _0x11c761=_0x28af75;this[_0x11c761(0x1fb)](),this[_0x11c761(0x21a)]();}[_0x28af75(0x321)](){const _0x4840d6=_0x28af75;this[_0x4840d6(0x143)]();}[_0x28af75(0x1fb)](){const _0x3a5de0=_0x28af75;var _0x253661;const _0x2d1904=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q['ISocketService'],{'useClass':q[_0x3a5de0(0xcd)]}],[u[_0x3a5de0(0x2f7)],{'useClass':me}],[exports[_0x3a5de0(0x101)]],[ee],[z],[x],[fe],[exports[_0x3a5de0(0x246)]]];a[_0x3a5de0(0x27f)](this[_0x3a5de0(0x147)],a[_0x3a5de0(0x286)](_0x2d1904,(_0x253661=this['_config'])==null?void 0x0:_0x253661[_0x3a5de0(0x213)]));}[_0x28af75(0x143)](){const _0x22890a=_0x28af75;this[_0x22890a(0x253)](this[_0x22890a(0x332)]['registerRenderModule'](a[_0x22890a(0x2fe)][_0x22890a(0x348)],[ve])),this[_0x22890a(0x253)](this[_0x22890a(0x332)][_0x22890a(0x268)](a[_0x22890a(0x2fe)][_0x22890a(0x180)],[ge]));}[_0x28af75(0x21a)](){const _0x29a42d=_0x28af75;a['touchDependencies'](this[_0x29a42d(0x147)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[ee],[z],[exports[_0x29a42d(0x246)]]]);}},rs(exports['UniverCollaborationClientUIPlugin'],_0x28af75(0x2c9),os),exports[_0x28af75(0x1e8)]=is([a[_0x28af75(0x1a7)](u['UniverCollaborationClientPlugin']),ue(0x1,p[_0x28af75(0x17c)]),ue(0x2,a[_0x28af75(0x345)](a[_0x28af75(0x184)])),ue(0x3,a[_0x28af75(0x237)])],exports[_0x28af75(0x1e8)]);var as=Object[_0x28af75(0x30c)],cs=(_0x297e6c,_0x19639e,_0x15f1fd,_0x435291)=>{const _0x1f08aa=_0x28af75;for(var _0x54036d=_0x435291>0x1?void 0x0:_0x435291?as(_0x19639e,_0x15f1fd):_0x19639e,_0x575153=_0x297e6c[_0x1f08aa(0x1af)]-0x1,_0x475563;_0x575153>=0x0;_0x575153--)(_0x475563=_0x297e6c[_0x575153])&&(_0x54036d=_0x475563(_0x54036d)||_0x54036d);return _0x54036d;},F=(_0x501496,_0x23f125)=>(_0x37118d,_0x525cdf)=>_0x23f125(_0x37118d,_0x525cdf,_0x501496);exports[_0x28af75(0x123)]=class extends u['CollaborationSocketService']{constructor(_0xc413e5,_0x10e7a1,_0x211cf2,_0x4b7d83,_0x576fbd){super(_0xc413e5,_0x10e7a1,_0x211cf2,_0x4b7d83,_0x576fbd);}async[_0x28af75(0x188)](_0x265f53){const _0x364c62=_0x28af75,_0x207a7c=await this['_getSessionTicket'](),_0x101501=this[_0x364c62(0x2a7)](_0x265f53,_0x207a7c);return this[_0x364c62(0x248)](_0x101501);}['_createSocketURL'](_0x363b2e,_0x32b86f){const _0x1ee960=_0x28af75,_0x4fe38b=typeof window>'u'?new URL(_0x363b2e):new URL(_0x363b2e,window['location'][_0x1ee960(0x1aa)]);_0x4fe38b[_0x1ee960(0x28a)][_0x1ee960(0x25e)](_0x1ee960(0x31c),_0x32b86f);const _0x581579=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1ee960(0x17f)]['search']);return _0x581579[_0x1ee960(0x340)]('runId')&&_0x4fe38b[_0x1ee960(0x28a)]['set'](_0x1ee960(0x27c),_0x581579['get'](_0x1ee960(0x27c))),_0x4fe38b[_0x1ee960(0x10c)]();}async[_0x28af75(0x276)](){const _0x2491e3=_0x28af75;var _0x380fb4,_0x40ccb2,_0xf14596;const _0x22aee6=this[_0x2491e3(0x129)]['getConfig'](u[_0x2491e3(0x196)]),_0x113dc7=(_0x380fb4=_0x22aee6==null?void 0x0:_0x22aee6[_0x2491e3(0x1c9)])!=null?_0x380fb4:u[_0x2491e3(0x1be)];return(_0xf14596=(_0x40ccb2=(await this[_0x2491e3(0x291)][_0x2491e3(0x340)](_0x113dc7,{'headers':{'Content-Type':_0x2491e3(0x162)}}))[_0x2491e3(0x20e)])==null?void 0x0:_0x40ccb2[_0x2491e3(0x236)])!=null?_0xf14596:'';}},exports[_0x28af75(0x123)]=cs([F(0x0,a[_0x28af75(0x345)](a[_0x28af75(0x184)])),F(0x1,a[_0x28af75(0x345)](q[_0x28af75(0x2c1)])),F(0x2,a[_0x28af75(0x237)]),F(0x3,a[_0x28af75(0xef)]),F(0x4,m['ISnapshotServerService'])],exports['BrowserCollaborationSocketService']);const Pe=0x7530,Le=_0x28af75(0x30a);class ls extends a['Disposable']{constructor(){const _0x34cc90=_0x28af75;super(),_(this,_0x34cc90(0x249),a[_0x34cc90(0x181)]()),_(this,_0x34cc90(0x194),new Set()),_(this,_0x34cc90(0x303),new Map()),_(this,_0x34cc90(0x139),null),_(this,'_clearOtherTimers',new Map()),_(this,_0x34cc90(0x197),new Map()),this['_init']();}[_0x28af75(0x11a)](){const _0x2b502f=_0x28af75;super['dispose'](),this[_0x2b502f(0x22c)][_0x2b502f(0x2cc)]((_0x14b251,_0x2e1818)=>this[_0x2b502f(0x2dd)](_0x2e1818)),this[_0x2b502f(0x139)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x5d465c){const _0x38fac9=_0x28af75;return this['_ensureSubject'](_0x5d465c)['pipe'](d[_0x38fac9(0x22a)]());}[_0x28af75(0x140)](_0x37cc23){const _0x1b18ac=_0x28af75;this[_0x1b18ac(0x194)][_0x1b18ac(0x2b7)]===0x0&&this[_0x1b18ac(0xe0)](),this[_0x1b18ac(0x194)][_0x1b18ac(0x243)](_0x37cc23),this[_0x1b18ac(0xd2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x37cc23],'isForwarded':!0x1});}['disposeUnit'](_0x55a3e4){const _0x3f0cb0=_0x28af75;this[_0x3f0cb0(0x194)]['delete'](_0x55a3e4),this[_0x3f0cb0(0x194)][_0x3f0cb0(0x2b7)]===0x0&&this['_heartbeatTimer']&&window[_0x3f0cb0(0x1c4)](this[_0x3f0cb0(0x139)]);}['_init'](){const _0x23d700=_0x28af75;this['disposeWithMe'](a['toDisposable'](d['fromEvent'](window,'storage')['subscribe'](_0x5e56c3=>{const _0x3c8ac1=_0x4bb0;if(_0x5e56c3[_0x3c8ac1(0x1fe)]!==Le||!_0x5e56c3[_0x3c8ac1(0x171)])return;const _0x3e244a=JSON[_0x3c8ac1(0x19e)](_0x5e56c3[_0x3c8ac1(0x171)]);this[_0x3c8ac1(0x125)](_0x3e244a);}))),window[_0x23d700(0x1e7)](_0x23d700(0x212),()=>this[_0x23d700(0xd2)]({'type':0x1,'memberID':this[_0x23d700(0x249)],'unitIDs':Array[_0x23d700(0x172)](this[_0x23d700(0x194)])}));}[_0x28af75(0x125)](_0xeb9e59){const _0x281d2c=_0x28af75;switch(_0xeb9e59['type']){case 0x0:this[_0x281d2c(0x25a)](_0xeb9e59);break;case 0x1:this[_0x281d2c(0x29a)](_0xeb9e59);break;case 0x2:this['_handleHeartbeatEvent'](_0xeb9e59);break;}}[_0x28af75(0x25a)](_0x42f4ca){const _0x423ffe=_0x28af75,{unitIDs:_0x343ecd,memberID:_0x1a8f2c,isForwarded:_0x1d74c4}=_0x42f4ca;_0x343ecd[_0x423ffe(0x2cc)](_0x14afae=>{const _0x4be757=_0x423ffe;if(!_0x1d74c4&&this[_0x4be757(0x303)]['has'](_0x14afae)&&this[_0x4be757(0x209)](_0x14afae)[_0x4be757(0x14d)](u['UnitStatus'][_0x4be757(0x2d8)]),!this['_unitOnClients'][_0x4be757(0x1d6)](_0x14afae)||!this['_unitOnClients'][_0x4be757(0x340)](_0x14afae)[_0x4be757(0x1d6)](_0x1a8f2c)){const _0x18bdf8=this[_0x4be757(0x303)][_0x4be757(0x340)](_0x14afae)||new Set();_0x18bdf8[_0x4be757(0x243)](_0x1a8f2c),this[_0x4be757(0x303)][_0x4be757(0x25e)](_0x14afae,_0x18bdf8),this['_scheduleClearOtherTimer'](_0x1a8f2c);}}),_0x1d74c4||this[_0x423ffe(0xd2)]({'type':0x0,'memberID':this[_0x423ffe(0x249)],'unitIDs':[...this[_0x423ffe(0x194)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x290cf4){const _0x2a15f5=_0x28af75;this[_0x2a15f5(0x2dd)](_0x290cf4);const _0x106a7a=window[_0x2a15f5(0x23f)](()=>{const _0x296ceb=_0x2a15f5;this['_unitOnClients'][_0x296ceb(0x2cc)](_0x1a63d4=>{_0x1a63d4['delete'](_0x290cf4);});},Pe*0x2);this[_0x2a15f5(0x22c)][_0x2a15f5(0x25e)](_0x290cf4,_0x106a7a);}[_0x28af75(0x2dd)](_0x527f33){const _0x3d30c4=_0x28af75;if(this['_clearOtherTimers'][_0x3d30c4(0x1d6)](_0x527f33)){const _0x2402a5=this[_0x3d30c4(0x22c)][_0x3d30c4(0x340)](_0x527f33);_0x2402a5&&window[_0x3d30c4(0x271)](_0x2402a5),this[_0x3d30c4(0x22c)][_0x3d30c4(0x25e)](_0x527f33,null);}}['_handleLeaveEvent'](_0x2d0361){const _0x23689d=_0x28af75,{memberID:_0x40054b,unitIDs:_0x7f6712}=_0x2d0361;_0x7f6712[_0x23689d(0x2cc)](_0x4ceebe=>{const _0x3e2e7e=_0x23689d;var _0x2c0efb;const _0x441b39=this[_0x3e2e7e(0x303)][_0x3e2e7e(0x340)](_0x4ceebe);_0x441b39&&(_0x441b39['delete'](_0x40054b),(_0x2c0efb=this['_ensureSubject'](_0x4ceebe))==null||_0x2c0efb[_0x3e2e7e(0x14d)](_0x441b39[_0x3e2e7e(0x2b7)]===0x0?u[_0x3e2e7e(0x112)][_0x3e2e7e(0x2a9)]:u[_0x3e2e7e(0x112)][_0x3e2e7e(0x2d8)]));}),this[_0x23689d(0x2dd)](_0x40054b);}[_0x28af75(0x2a2)](_0x2b96e5){const _0x5d67d6=_0x28af75;this[_0x5d67d6(0x169)](_0x2b96e5['memberID']);}[_0x28af75(0xd2)](_0xa81ed3){const _0x224977=_0x28af75;localStorage['setItem'](Le,JSON[_0x224977(0x221)](_0xa81ed3));}[_0x28af75(0xe0)](){const _0x28c266=_0x28af75;this[_0x28c266(0x139)]=window['setInterval'](()=>{const _0x273350=_0x28c266;this[_0x273350(0xd2)]({'type':0x2,'memberID':this['_id']});},Pe);}[_0x28af75(0x209)](_0x484851){const _0x48c21c=_0x28af75;return this[_0x48c21c(0x197)]['has'](_0x484851)||this['_unitStatus'][_0x48c21c(0x25e)](_0x484851,new d['BehaviorSubject'](u[_0x48c21c(0x112)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x48c21c(0x197)][_0x48c21c(0x340)](_0x484851);}}var ke=(_0xd338c=>(_0xd338c[_0xd338c['UNDEFINED']=0x0]=_0x28af75(0x222),_0xd338c[_0xd338c['OK']=0x1]='OK',_0xd338c[_0xd338c[_0x28af75(0x252)]=0x2]=_0x28af75(0x252),_0xd338c[_0xd338c[_0x28af75(0x1f9)]=0x3]=_0x28af75(0x1f9),_0xd338c[_0xd338c[_0x28af75(0x145)]=0x4]='NOT_FOUND',_0xd338c[_0xd338c[_0x28af75(0x1cd)]=0x5]=_0x28af75(0x1cd),_0xd338c[_0xd338c[_0x28af75(0x2b4)]=0x6]=_0x28af75(0x2b4),_0xd338c[_0xd338c[_0x28af75(0x30f)]=0x7]='INVALID_ARGUMENT',_0xd338c[_0xd338c[_0x28af75(0x12b)]=0x8]=_0x28af75(0x12b),_0xd338c[_0xd338c[_0x28af75(0x22b)]=0x9]=_0x28af75(0x22b),_0xd338c[_0xd338c[_0x28af75(0x1b2)]=0xa]='LOGIN_FAILED',_0xd338c[_0xd338c[_0x28af75(0x2c8)]=0x1389]=_0x28af75(0x2c8),_0xd338c[_0xd338c[_0x28af75(0x1f2)]=0x1771]=_0x28af75(0x1f2),_0xd338c[_0xd338c[_0x28af75(0x239)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xd338c[_0xd338c['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x28af75(0x190),_0xd338c[_0xd338c[_0x28af75(0xfe)]=0x1b59]=_0x28af75(0xfe),_0xd338c[_0xd338c[_0x28af75(0x165)]=0x1b5a]=_0x28af75(0x165),_0xd338c[_0xd338c[_0x28af75(0x347)]=0x1b5b]=_0x28af75(0x347),_0xd338c[_0xd338c[_0x28af75(0x247)]=0x1b5c]=_0x28af75(0x247),_0xd338c[_0xd338c[_0x28af75(0x11d)]=0x1b5d]=_0x28af75(0x11d),_0xd338c[_0xd338c[_0x28af75(0x18c)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xd338c[_0xd338c[_0x28af75(0x29e)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0xd338c[_0xd338c['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0xd338c[_0xd338c['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x28af75(0xfd),_0xd338c[_0xd338c['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x28af75(0x2f0),_0xd338c[_0xd338c[_0x28af75(0x2a0)]=0x232d]=_0x28af75(0x2a0),_0xd338c[_0xd338c[_0x28af75(0x285)]=0x2711]=_0x28af75(0x285),_0xd338c[_0xd338c['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x28af75(0x1b4),_0xd338c[_0xd338c['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x28af75(0x14a),_0xd338c[_0xd338c['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x28af75(0xec),_0xd338c[_0xd338c[_0x28af75(0x1f0)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0xd338c[_0xd338c[_0x28af75(0xce)]=0x2ee1]=_0x28af75(0xce),_0xd338c[_0xd338c[_0x28af75(0x235)]=0x2ee2]=_0x28af75(0x235),_0xd338c[_0xd338c[_0x28af75(0x183)]=0x2ee3]=_0x28af75(0x183),_0xd338c[_0xd338c['USER_NOT_INVITED_CODE']=0x2ee4]=_0x28af75(0x12a),_0xd338c[_0xd338c[_0x28af75(0x232)]=0x2ee5]=_0x28af75(0x232),_0xd338c[_0xd338c[_0x28af75(0x284)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0xd338c[_0xd338c[_0x28af75(0x20c)]=0x32ca]=_0x28af75(0x20c),_0xd338c[_0xd338c[_0x28af75(0x331)]=0x32cb]=_0x28af75(0x331),_0xd338c[_0xd338c[_0x28af75(0x326)]=-0x1]='UNRECOGNIZED',_0xd338c))(ke||{}),_s=Object[_0x28af75(0x30c)],hs=(_0x1b1e79,_0x57cd84,_0x385a95,_0x2ec47d)=>{const _0x440e8e=_0x28af75;for(var _0x38bac2=_0x2ec47d>0x1?void 0x0:_0x2ec47d?_s(_0x57cd84,_0x385a95):_0x57cd84,_0x34b2d8=_0x1b1e79[_0x440e8e(0x1af)]-0x1,_0x104834;_0x34b2d8>=0x0;_0x34b2d8--)(_0x104834=_0x1b1e79[_0x34b2d8])&&(_0x38bac2=_0x104834(_0x38bac2)||_0x38bac2);return _0x38bac2;},de=(_0x159538,_0x4bdf66)=>(_0x36ea58,_0xcda45d)=>_0x4bdf66(_0x36ea58,_0xcda45d,_0x159538);exports[_0x28af75(0x16c)]=class extends a[_0x28af75(0x242)]{constructor(_0x8c83fd,_0x130f1f,_0x2119f4){const _0x5e1fea=_0x28af75;super(),this['_instanceService']=_0x8c83fd,this[_0x5e1fea(0x291)]=_0x130f1f,this[_0x5e1fea(0x129)]=_0x2119f4;}async[_0x28af75(0x2ae)](_0x48f52b,_0x3d2d1b,_0x50b352,..._0x559652){const _0x281b5e=_0x28af75;var _0x49ac3d,_0x1a1b0c,_0x5eec72,_0x10cb0b;const _0x4f8059=this[_0x281b5e(0x1d9)]['getFocusedUnit']();if(!_0x4f8059)throw new Error(_0x281b5e(0x32b));const _0x4d4d97=((_0x49ac3d=this[_0x281b5e(0x129)][_0x281b5e(0x223)](u[_0x281b5e(0x22e)]))!=null?_0x49ac3d:u[_0x281b5e(0x23c)])+'/'+_0x48f52b+_0x281b5e(0x262)+_0x3d2d1b,_0x3d71b8=new URL(window['location'][_0x281b5e(0x24b)]),_0x2f4da8={'scriptId':_0x48f52b,'runId':(_0x1a1b0c=_0x3d71b8[_0x281b5e(0x28a)]['get'](_0x281b5e(0x27c)))!=null?_0x1a1b0c:'','function':_0x3d2d1b,'unitId':_0x4f8059[_0x281b5e(0x2f1)](),'argsOfFunction':JSON[_0x281b5e(0x221)](_0x559652),'invokeId':(_0x5eec72=_0x50b352['invokeId'])!=null?_0x5eec72:'','executionId':(_0x10cb0b=_0x50b352[_0x281b5e(0x134)])!=null?_0x10cb0b:''};try{const _0x353356=await this[_0x281b5e(0x291)][_0x281b5e(0x1a4)](_0x4d4d97,{'body':_0x2f4da8});return _0x353356['body'][_0x281b5e(0x24a)]&&_0x353356[_0x281b5e(0x20e)]['error']['code']!==ke['OK']?_0x281b5e(0x2da):_0x353356[_0x281b5e(0x20e)][_0x281b5e(0x2c3)];}catch{return'Failed';}}},exports['RemoteUniscriptService']=hs([de(0x0,a[_0x28af75(0x2ed)]),de(0x1,a['Inject'](q[_0x28af75(0x2c1)])),de(0x2,a['IConfigService'])],exports['RemoteUniscriptService']),exports[_0x28af75(0x33d)]=je,exports[_0x28af75(0x2c4)]=Ee,exports[_0x28af75(0x2e1)]=Ae,exports['WebBrowserSingleActiveUnitService']=ls,exports[_0x28af75(0x2ff)]=Be;
1
+ 'use strict';const _0x412fda=_0x3ec3;(function(_0x427f30,_0x1c3447){const _0x2dbd9e=_0x3ec3,_0x79a99f=_0x427f30();while(!![]){try{const _0x4895bc=parseInt(_0x2dbd9e(0x292))/0x1*(-parseInt(_0x2dbd9e(0x1f7))/0x2)+parseInt(_0x2dbd9e(0x413))/0x3*(-parseInt(_0x2dbd9e(0x2a4))/0x4)+parseInt(_0x2dbd9e(0x383))/0x5+-parseInt(_0x2dbd9e(0x2cf))/0x6+-parseInt(_0x2dbd9e(0x316))/0x7*(-parseInt(_0x2dbd9e(0x34c))/0x8)+parseInt(_0x2dbd9e(0x374))/0x9*(-parseInt(_0x2dbd9e(0x321))/0xa)+parseInt(_0x2dbd9e(0x3a5))/0xb*(parseInt(_0x2dbd9e(0x3e8))/0xc);if(_0x4895bc===_0x1c3447)break;else _0x79a99f['push'](_0x79a99f['shift']());}catch(_0x1050ac){_0x79a99f['push'](_0x79a99f['shift']());}}}(_0x36d4,0xe2dcb));var Xe=Object[_0x412fda(0x391)],Ge=(_0x2985cc,_0x754051,_0x18955a)=>_0x754051 in _0x2985cc?Xe(_0x2985cc,_0x754051,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18955a}):_0x2985cc[_0x754051]=_0x18955a,_=(_0x366cd3,_0x26a2f2,_0x3059d6)=>Ge(_0x366cd3,typeof _0x26a2f2!='symbol'?_0x26a2f2+'':_0x26a2f2,_0x3059d6);Object['defineProperty'](exports,Symbol[_0x412fda(0x441)],{'value':_0x412fda(0x36d)});const u=require(_0x412fda(0x3c8)),a=require(_0x412fda(0x435)),p=require(_0x412fda(0x356)),q=require(_0x412fda(0x265)),b=require(_0x412fda(0x3d0)),qe=require(_0x412fda(0x3ff)),d=require('rxjs'),Y=require(_0x412fda(0x2ab)),m=require(_0x412fda(0x33a)),Te=require(_0x412fda(0x3fe)),g=require(_0x412fda(0x37a)),$=require('rxjs/operators'),G=require(_0x412fda(0x2e8)),L=require(_0x412fda(0x23c)),R=require(_0x412fda(0x384)),T=require(_0x412fda(0x2c1)),M=require('react'),Ke=require(_0x412fda(0x2a9));var ze=Object[_0x412fda(0x26e)],Je=(_0x383d2a,_0x209536,_0x3bee6e,_0x2e5e3b)=>{for(var _0x15508f=_0x2e5e3b>0x1?void 0x0:_0x2e5e3b?ze(_0x209536,_0x3bee6e):_0x209536,_0x3a50a8=_0x383d2a['length']-0x1,_0x1c8b47;_0x3a50a8>=0x0;_0x3a50a8--)(_0x1c8b47=_0x383d2a[_0x3a50a8])&&(_0x15508f=_0x1c8b47(_0x15508f)||_0x15508f);return _0x15508f;},Re=(_0x7ab804,_0x1230b9)=>(_0x3154ca,_0x5c075c)=>_0x1230b9(_0x3154ca,_0x5c075c,_0x7ab804);let fe=class extends a[_0x412fda(0x1c0)]{constructor(_0x31aa0e,_0x3e1917){const _0x1b7c44=_0x412fda;super(),this['_docClipboardService']=_0x31aa0e,this[_0x1b7c44(0x3f5)]=_0x3e1917,this[_0x1b7c44(0x3fc)]();}['_init'](){const _0x4aa69c=_0x412fda,_0x4af641=this;this[_0x4aa69c(0x2d1)](this[_0x4aa69c(0x275)][_0x4aa69c(0x282)]({'onBeforePasteImage':async _0x20d9b1=>{const _0x280a08=_0x4aa69c,_0x409e42=await _0x4af641[_0x280a08(0x3f5)][_0x280a08(0x423)](_0x20d9b1);return _0x409e42?{'source':_0x409e42[_0x280a08(0x3a7)],'imageSourceType':_0x409e42[_0x280a08(0x36a)]}:null;}}));}};fe=Je([Re(0x0,b[_0x412fda(0x2f7)]),Re(0x1,qe['IImageIoService'])],fe);const Oe=[_0x412fda(0x35a),_0x412fda(0x1d3),_0x412fda(0x399),_0x412fda(0x244),_0x412fda(0x2a6),_0x412fda(0x329)];class Ce extends a['Disposable']{constructor(){const _0x383b1e=_0x412fda;super(...arguments),_(this,_0x383b1e(0x373),new Map()),_(this,_0x383b1e(0x27d),0x0);}[_0x412fda(0x267)](_0xbc9b75){const _0x43c267=_0x412fda;if(this['_assignedColors'][_0x43c267(0x1ee)](_0xbc9b75))return this[_0x43c267(0x373)][_0x43c267(0x404)](_0xbc9b75);const _0x199c6b=Oe[this[_0x43c267(0x27d)]];return this[_0x43c267(0x27d)]=(this[_0x43c267(0x27d)]+0x1)%Oe[_0x43c267(0x409)],this[_0x43c267(0x373)]['set'](_0xbc9b75,_0x199c6b),_0x199c6b;}}function we(_0x479887){const _0x1cd126=_0x412fda;let _0x1bc94b='';for(const _0x273503 of _0x479887){const {startOffset:_0x238dfb,endOffset:_0x27a8e3,isActive:_0x200227,rangeType:_0x571ee1,segmentId:_0x51018c,segmentPage:_0x12fc52}=_0x273503;_0x1bc94b[_0x1cd126(0x409)]&&(_0x1bc94b+=','),_0x1bc94b+=_0x238dfb+':'+_0x27a8e3+':'+(_0x200227?'1':'0')+':'+_0x571ee1+':'+_0x51018c+':'+_0x12fc52;}return _0x1bc94b;}function Ze(_0x32dba2){const _0x4ecec4=_0x412fda,_0x4b5750=_0x32dba2[_0x4ecec4(0x26b)](','),_0x2eb7d7=[];for(const _0x56711c of _0x4b5750){const [_0x28ea70,_0x39156f,_0xa61beb,_0x10e86f,_0x2ba632,_0x4fcac0]=_0x56711c[_0x4ecec4(0x26b)](':');_0x2eb7d7[_0x4ecec4(0x203)]({'startOffset':Number(_0x28ea70),'endOffset':Number(_0x39156f),'collapsed':_0x28ea70===_0x39156f,'isActive':_0xa61beb==='1','rangeType':_0x10e86f===a[_0x4ecec4(0x1f5)][_0x4ecec4(0x255)]?a[_0x4ecec4(0x1f5)][_0x4ecec4(0x255)]:a[_0x4ecec4(0x1f5)][_0x4ecec4(0x257)],'segmentId':typeof _0x2ba632=='string'?String(_0x2ba632):'','segmentPage':Number(_0x4fcac0!=null?_0x4fcac0:-0x1)});}return _0x2eb7d7['some'](_0x31afcc=>_0x31afcc[_0x4ecec4(0x42f)])||(_0x2eb7d7[0x0][_0x4ecec4(0x42f)]=!0x0),_0x2eb7d7;}class pe extends a[_0x412fda(0x1c0)]{constructor(){const _0xe68692=_0x412fda;super(...arguments),_(this,_0xe68692(0x41a),new d[(_0xe68692(0x1df))](null)),_(this,'collabCursorState$',this[_0xe68692(0x41a)][_0xe68692(0x2bf)]());}[_0x412fda(0x1ca)](_0x3a06e0){const _0x13f4f6=_0x412fda,{unitID:_0x31cafa,memberID:_0x593f1c,textRanges:_0x25f0aa}=_0x3a06e0,_0x467306=we(_0x25f0aa);if(_0x467306==='')return;const _0x41264f={'unitID':_0x31cafa,'memberID':_0x593f1c,'selection':_0x467306};this['_collabCursorState$'][_0x13f4f6(0x2e4)](_0x41264f);}}var Qe=Object['getOwnPropertyDescriptor'],et=(_0x66b9ba,_0xc3b084,_0x363221,_0x3e20d7)=>{for(var _0x5c4042=_0x3e20d7>0x1?void 0x0:_0x3e20d7?Qe(_0xc3b084,_0x363221):_0xc3b084,_0x245d51=_0x66b9ba['length']-0x1,_0x5ab98a;_0x245d51>=0x0;_0x245d51--)(_0x5ab98a=_0x66b9ba[_0x245d51])&&(_0x5c4042=_0x5ab98a(_0x5c4042)||_0x5c4042);return _0x5c4042;},P=(_0x5eb53d,_0x15a3ef)=>(_0x2fc496,_0x21e4a9)=>_0x15a3ef(_0x2fc496,_0x21e4a9,_0x5eb53d);const tt=0x12c,st=0x64;let Se=class extends a[_0x412fda(0x1c0)]{constructor(_0xe1a71e,_0x453e90,_0x42ae7a,_0x138336,_0x6a71a7,_0x26ecac,_0x342f73,_0x530ece,_0x21a1f4){const _0x3c77ff=_0x412fda;super(),_(this,_0x3c77ff(0x1d4),!0x1),_(this,'_init',!0x1),_(this,_0x3c77ff(0x21f),new d['BehaviorSubject'](new Map())),_(this,_0x3c77ff(0x2b7),this['_cursorInfo$'][_0x3c77ff(0x2bf)]()),_(this,_0x3c77ff(0x213),new d[(_0x3c77ff(0x1df))]([])),_(this,_0x3c77ff(0x229),this['_roomMembers$'][_0x3c77ff(0x254)](d[_0x3c77ff(0x360)](tt))),_(this,'_updateLocalCursor',a['debounce'](_0x48c14f=>{const _0x2be00b=_0x3c77ff,_0x7f9d6d={'eventID':m[_0x2be00b(0x376)][_0x2be00b(0x333)],'data':{'unitID':this[_0x2be00b(0x31d)],'memberID':this[_0x2be00b(0x431)][_0x2be00b(0x3b4)](),'selection':we(_0x48c14f)}};this[_0x2be00b(0x431)]['send'](_0x7f9d6d,this['unitID']);},st)),(this[_0x3c77ff(0x31d)]=_0xe1a71e,this[_0x3c77ff(0x431)]=_0x453e90,this[_0x3c77ff(0x24d)]=_0x42ae7a,this[_0x3c77ff(0x1f1)]=_0x138336,this[_0x3c77ff(0x381)]=_0x6a71a7,this['_syncEditingCollabCursorService']=_0x26ecac,this[_0x3c77ff(0x437)]=_0x342f73,this[_0x3c77ff(0x314)]=_0x530ece,this[_0x3c77ff(0x320)]=_0x21a1f4);}get[_0x412fda(0x37e)](){const _0x5790e7=_0x412fda;return this[_0x5790e7(0x21f)][_0x5790e7(0x2d8)]();}get[_0x412fda(0x231)](){const _0x5145a5=_0x412fda;return this[_0x5145a5(0x213)][_0x5145a5(0x2d8)]();}[_0x412fda(0x27f)](){const _0x558e8c=_0x412fda;super[_0x558e8c(0x27f)](),this[_0x558e8c(0x21f)][_0x558e8c(0x2e4)](new Map()),this['_cursorInfo$'][_0x558e8c(0x252)](),this['_roomMembers$'][_0x558e8c(0x2e4)]([]),this[_0x558e8c(0x213)][_0x558e8c(0x252)]();}['init'](){const _0x2d736f=_0x412fda;this[_0x2d736f(0x3fc)]||(this['_init']=!0x0,this['_session'][_0x2d736f(0x438)][_0x2d736f(0x254)](d[_0x2d736f(0x372)](this[_0x2d736f(0x414)]))[_0x2d736f(0x3c5)](_0x1218e7=>{const _0x3e356e=_0x2d736f;_0x1218e7===u[_0x3e356e(0x1dd)][_0x3e356e(0x3cd)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x2d736f(0x431)][_0x2d736f(0x274)]['pipe'](d[_0x2d736f(0x372)](this[_0x2d736f(0x414)]))['subscribe'](_0x1259b6=>{const _0x2a0dbb=_0x2d736f,_0x524f49=_0x1259b6['eventID'];_0x524f49===m[_0x2a0dbb(0x376)][_0x2a0dbb(0x333)]&&this[_0x2a0dbb(0x25e)](_0x1259b6),_0x524f49===m[_0x2a0dbb(0x376)][_0x2a0dbb(0x385)]&&this[_0x2a0dbb(0x41b)](_0x1259b6);}),this[_0x2d736f(0x2d1)](this['_commandService'][_0x2d736f(0x39c)](_0x53d185=>{const _0x1e7bf6=_0x2d736f,_0x5882df=_0x53d185[_0x1e7bf6(0x377)];_0x5882df!=null&&this[_0x1e7bf6(0x1d4)]&&_0x53d185['id']===Y[_0x1e7bf6(0x323)]['id']&&_0x5882df['unitId']===this[_0x1e7bf6(0x31d)]&&_0x5882df['isEditing']===!0x1&&_0x5882df['ranges'][_0x1e7bf6(0x409)]>0x0&&this['_updateLocalCursor'](_0x5882df[_0x1e7bf6(0x300)]);})),this[_0x2d736f(0x389)][_0x2d736f(0x3ae)][_0x2d736f(0x254)](d['takeUntil'](this[_0x2d736f(0x414)]))[_0x2d736f(0x3c5)](_0x463a0c=>{const _0x67062=_0x2d736f;if((_0x463a0c==null?void 0x0:_0x463a0c['unitID'])!==this[_0x67062(0x31d)])return;const _0x1474ff={'eventID':m[_0x67062(0x376)][_0x67062(0x333)],'data':_0x463a0c};this[_0x67062(0x25e)](_0x1474ff);}),this['disposeWithMe'](this['_commandService'][_0x2d736f(0x39c)](_0x3678fd=>{const _0x521910=_0x2d736f;if(_0x3678fd[_0x521910(0x377)]==null)return;const _0x2c0976=_0x3678fd[_0x521910(0x377)];if(_0x3678fd['id']!==Y[_0x521910(0x3c3)]['id']||_0x2c0976[_0x521910(0x406)]!==this[_0x521910(0x31d)])return;const _0x63d5ae={'id':_0x521910(0x236),'params':_0x2c0976},_0x5d3375=this[_0x521910(0x37e)];for(const [_0x23923c,_0x2c52c6]of _0x5d3375){const _0x23a94e={'id':_0x521910(0x236),'params':{'unitId':this[_0x521910(0x31d)],'actions':null,'textRanges':_0x2c52c6['ranges']}},_0x425b30=this['_transformService'][_0x521910(0x394)](_0x63d5ae,_0x23a94e,!0x1);if(m['isTransformMutationFailure'](_0x425b30))throw _0x425b30['error'];_0x5d3375[_0x521910(0x207)](_0x23923c,{..._0x2c52c6,'ranges':_0x425b30['m2Prime'][_0x521910(0x377)][_0x521910(0x299)]});}queueMicrotask(()=>{const _0x3fce50=_0x521910;this[_0x3fce50(0x21f)]['next'](_0x5d3375);});})));}['_onCursorUpdate'](_0x227928){const _0x4cfb29=_0x412fda;var _0x323484,_0x3d45db;const {memberID:_0x16679e,selection:_0x27a8e0}=_0x227928[_0x4cfb29(0x2f9)],_0x589dcd=Ze(_0x27a8e0),_0x54a8c7=(_0x3d45db=(_0x323484=this[_0x4cfb29(0x381)]['getMember'](this[_0x4cfb29(0x31d)],_0x16679e))==null?void 0x0:_0x323484['name'])!=null?_0x3d45db:_0x4cfb29(0x318),_0x167e49={'color':this['_colorAssignService'][_0x4cfb29(0x267)](_0x16679e),'name':_0x54a8c7,'ranges':_0x589dcd},_0x4e53ec=this[_0x4cfb29(0x37e)];_0x4e53ec[_0x4cfb29(0x207)](_0x16679e,_0x167e49),this[_0x4cfb29(0x21f)][_0x4cfb29(0x2e4)](_0x4e53ec);}['_onCursorDelete'](_0xbc460c){const _0x5e141b=_0x412fda,{memberID:_0x2f195e}=_0xbc460c[_0x5e141b(0x2f9)],_0x261edb=this[_0x5e141b(0x37e)];_0x261edb[_0x5e141b(0x33f)](_0x2f195e),this[_0x5e141b(0x21f)][_0x5e141b(0x2e4)](_0x261edb);}[_0x412fda(0x2af)](){const _0x4429da=_0x412fda;var _0x1181f8;if(this[_0x4429da(0x1d4)]=!0x0,((_0x1181f8=this[_0x4429da(0x314)]['getFocusedUnit']())==null?void 0x0:_0x1181f8[_0x4429da(0x1c9)]())!==this[_0x4429da(0x31d)])return;const _0x149a4c=this[_0x4429da(0x24d)][_0x4429da(0x404)](Y[_0x4429da(0x2dc)])['getDocRanges']();Array[_0x4429da(0x40e)](_0x149a4c)&&_0x149a4c[_0x4429da(0x409)]>0x0&&this[_0x4429da(0x2e2)](_0x149a4c);}[_0x412fda(0x27e)](){const _0x287f53=_0x412fda;this[_0x287f53(0x1d4)]=!0x1;}};Se=et([P(0x2,a[_0x412fda(0x22a)](a[_0x412fda(0x2ed)])),P(0x3,a['Inject'](Ce)),P(0x4,a['Inject'](u[_0x412fda(0x419)])),P(0x5,a[_0x412fda(0x22a)](pe)),P(0x6,m[_0x412fda(0x2eb)]),P(0x7,a[_0x412fda(0x289)]),P(0x8,a['ICommandService'])],Se);var nt=Object['getOwnPropertyDescriptor'],it=(_0x35e335,_0x23eaa0,_0x3ca61d,_0x401836)=>{const _0x513eed=_0x412fda;for(var _0x5a0842=_0x401836>0x1?void 0x0:_0x401836?nt(_0x23eaa0,_0x3ca61d):_0x23eaa0,_0x411e44=_0x35e335[_0x513eed(0x409)]-0x1,_0x4d3259;_0x411e44>=0x0;_0x411e44--)(_0x4d3259=_0x35e335[_0x411e44])&&(_0x5a0842=_0x4d3259(_0x5a0842)||_0x5a0842);return _0x5a0842;},A=(_0x8e48b4,_0x23921b)=>(_0x371c73,_0x3f2696)=>_0x23921b(_0x371c73,_0x3f2696,_0x8e48b4);const rt=0x12c,ot=0x64,at=()=>{let _0x1c86c1=[],_0x592ed3=!0x1;return _0x239888=>{const _0x409757=_0x3ec3;_0x1c86c1[_0x409757(0x203)](_0x239888),_0x592ed3||(_0x592ed3=!0x0,setTimeout(()=>{const _0x3627b5=_0x409757;_0x1c86c1[_0x3627b5(0x3e1)](_0xaf7894=>_0xaf7894()),_0x1c86c1=[],_0x592ed3=!0x1;}));};};let Ie=class extends a['RxDisposable']{constructor(_0x2677d5,_0x7b6355,_0x57d69d,_0x111047,_0x57ce57,_0x533898,_0x5ea5ce,_0x1d1dda){const _0x2f3d29=_0x412fda;super(),_(this,_0x2f3d29(0x1d4),!0x1),_(this,_0x2f3d29(0x3fc),!0x1),_(this,_0x2f3d29(0x21f),new d[(_0x2f3d29(0x1df))](new Map())),_(this,_0x2f3d29(0x2b7),this[_0x2f3d29(0x21f)][_0x2f3d29(0x2bf)]()),_(this,_0x2f3d29(0x213),new d[(_0x2f3d29(0x1df))]([])),_(this,_0x2f3d29(0x229),this['_roomMembers$'][_0x2f3d29(0x254)](d[_0x2f3d29(0x360)](rt))),_(this,_0x2f3d29(0x2e2),a[_0x2f3d29(0x425)]((_0x1f22b5,_0x5e67f7)=>{const _0x50cb57=_0x2f3d29,_0x456730={'eventID':m['CollaborationEvent'][_0x50cb57(0x333)],'data':{'unitID':this[_0x50cb57(0x31d)],'memberID':this[_0x50cb57(0x431)][_0x50cb57(0x3b4)](),'selection':Te[_0x50cb57(0x3bd)](_0x1f22b5,_0x5e67f7[_0x50cb57(0x3f0)])}};this[_0x50cb57(0x431)]['send'](_0x456730,this[_0x50cb57(0x31d)]);},ot)),(this[_0x2f3d29(0x31d)]=_0x2677d5,this['_session']=_0x7b6355,this[_0x2f3d29(0x24d)]=_0x57d69d,this[_0x2f3d29(0x1f1)]=_0x111047,this[_0x2f3d29(0x381)]=_0x57ce57,this['_univerInstanceService']=_0x533898,this[_0x2f3d29(0x320)]=_0x5ea5ce,this['_refRangeService']=_0x1d1dda);}get[_0x412fda(0x37e)](){const _0x38c86f=_0x412fda;return this[_0x38c86f(0x21f)][_0x38c86f(0x2d8)]();}get[_0x412fda(0x231)](){const _0x30a0b1=_0x412fda;return this[_0x30a0b1(0x213)]['getValue']();}[_0x412fda(0x27f)](){const _0x5d1202=_0x412fda;super['dispose'](),this['_cursorInfo$'][_0x5d1202(0x2e4)](new Map()),this['_cursorInfo$'][_0x5d1202(0x252)](),this[_0x5d1202(0x213)][_0x5d1202(0x2e4)]([]),this[_0x5d1202(0x213)][_0x5d1202(0x252)]();}[_0x412fda(0x25a)](){const _0x56bc5f=_0x412fda;this[_0x56bc5f(0x3fc)]||(this[_0x56bc5f(0x3fc)]=!0x0,this[_0x56bc5f(0x431)][_0x56bc5f(0x438)]['pipe'](d[_0x56bc5f(0x372)](this['dispose$']))[_0x56bc5f(0x3c5)](_0x2ff656=>{const _0x273214=_0x56bc5f;_0x2ff656===u['SessionStatus'][_0x273214(0x3cd)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x56bc5f(0x431)][_0x56bc5f(0x274)][_0x56bc5f(0x254)](d[_0x56bc5f(0x372)](this['dispose$']))[_0x56bc5f(0x3c5)](_0x269c90=>{const _0x1a84fd=_0x56bc5f,_0x13bf90=_0x269c90['eventID'];_0x13bf90===m[_0x1a84fd(0x376)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x269c90),_0x13bf90===m[_0x1a84fd(0x376)]['USERS_LEAVE']&&this[_0x1a84fd(0x41b)](_0x269c90);}),this[_0x56bc5f(0x1b9)](),this[_0x56bc5f(0x2d1)](this['_commandService'][_0x56bc5f(0x39c)](_0x400c6e=>{const _0x49f2dc=_0x56bc5f;if(this[_0x49f2dc(0x1d4)]&&_0x400c6e['id']===g['SetSelectionsOperation']['id']&&_0x400c6e['params']['unitId']===this['unitID']){const _0x55bd5b=_0x400c6e[_0x49f2dc(0x377)];this[_0x49f2dc(0x2e2)](_0x55bd5b[_0x49f2dc(0x368)],_0x55bd5b['selections'][0x0]);}})));}['_onCursorUpdate'](_0x406ae4){const _0x166020=_0x412fda;var _0xd9c626,_0x112c47;const {memberID:_0x2a0ad8,selection:_0x2a0f77}=_0x406ae4['data'],{sheetName:_0x2fa2c9,range:_0x1fb85b}=Te['deserializeRangeWithSheet'](_0x2a0f77),_0x5a87fc={'name':(_0x112c47=(_0xd9c626=this['_memberService'][_0x166020(0x371)](this['unitID'],_0x2a0ad8))==null?void 0x0:_0xd9c626[_0x166020(0x27a)])!=null?_0x112c47:_0x166020(0x318),'range':this['_getMergeRange'](_0x2fa2c9,_0x1fb85b),'sheetID':_0x2fa2c9,'color':this['_colorAssignService'][_0x166020(0x267)](_0x2a0ad8),'selection':_0x2a0f77},_0x5876f2=this[_0x166020(0x37e)];_0x5876f2[_0x166020(0x207)](_0x2a0ad8,_0x5a87fc),this[_0x166020(0x21f)][_0x166020(0x2e4)](_0x5876f2);}[_0x412fda(0x41b)](_0x9855f2){const _0x226dc0=_0x412fda,{memberID:_0x5b9001}=_0x9855f2[_0x226dc0(0x2f9)],_0x592327=this[_0x226dc0(0x37e)];_0x592327[_0x226dc0(0x33f)](_0x5b9001),this[_0x226dc0(0x21f)][_0x226dc0(0x2e4)](_0x592327);}[_0x412fda(0x227)](_0x101c51,_0x318a06){const _0x362303=_0x412fda;var _0x34f41d,_0xa345b;const _0x362d2f=(_0xa345b=(_0x34f41d=this['_univerInstanceService'][_0x362303(0x1ef)](this['unitID']))==null?void 0x0:_0x34f41d['getSheetBySheetId'](_0x101c51))==null?void 0x0:_0xa345b['getMergeData']();return(_0x362d2f==null?void 0x0:_0x362d2f[_0x362303(0x42c)](_0x2fb3d6=>a[_0x362303(0x294)][_0x362303(0x22e)](_0x2fb3d6,_0x318a06)))||_0x318a06;}[_0x412fda(0x1b9)](){const _0x309389=_0x412fda,_0x291eff=new a['DisposableCollection'](),_0x4a6cc7=at(),_0x1d5617=()=>{const _0x5bd8e0=_0x3ec3;_0x291eff[_0x5bd8e0(0x27f)]();const _0x113650=(_0xc12297,_0x246469,_0x3b380b,_0x354750)=>{const _0x19f4ab=_0x5bd8e0;let _0x55e3b4=[];switch(_0xc12297['id']){case g[_0x19f4ab(0x25c)][_0x19f4ab(0x336)]:{_0x55e3b4=g[_0x19f4ab(0x3ba)](_0xc12297,_0x354750);break;}case g['EffectRefRangId'][_0x19f4ab(0x224)]:{_0x55e3b4=g[_0x19f4ab(0x34e)](_0xc12297,_0x354750);break;}case g['EffectRefRangId']['InsertColCommandId']:{_0x55e3b4=g[_0x19f4ab(0x2db)](_0xc12297,_0x354750);break;}case g['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x55e3b4=g['handleInsertRangeMoveDown'](_0xc12297,_0x354750);break;}case g[_0x19f4ab(0x25c)][_0x19f4ab(0x390)]:{_0x55e3b4=g[_0x19f4ab(0x215)](_0xc12297,_0x354750);break;}case g[_0x19f4ab(0x25c)]['InsertRowCommandId']:{_0x55e3b4=g[_0x19f4ab(0x366)](_0xc12297,_0x354750);break;}case g[_0x19f4ab(0x25c)][_0x19f4ab(0x3b0)]:{_0x55e3b4=g['handleMoveRange'](_0xc12297,_0x354750);break;}case g['EffectRefRangId'][_0x19f4ab(0x309)]:{_0x55e3b4=g[_0x19f4ab(0x32c)](_0xc12297,_0x354750);break;}case g[_0x19f4ab(0x25c)][_0x19f4ab(0x40a)]:{_0x55e3b4=g['handleIRemoveRow'](_0xc12297,_0x354750);break;}}const _0x20bed8=g[_0x19f4ab(0x41e)](_0x55e3b4,_0x354750),_0x4a853c=this[_0x19f4ab(0x37e)]['get'](_0x246469);if(_0x4a853c&&_0x20bed8){const _0x5c7173={..._0x4a853c,'range':_0x20bed8};this[_0x19f4ab(0x37e)][_0x19f4ab(0x207)](_0x246469,_0x5c7173),_0x4a6cc7(()=>{const _0x5c63ba=_0x19f4ab,_0x591e23=this[_0x5c63ba(0x1e8)][_0x5c63ba(0x2c9)](_0x20bed8,_0x2c7a07=>(_0x591e23[_0x5c63ba(0x27f)](),_0x113650(_0x2c7a07,_0x246469,_0x3b380b,_0x20bed8)));_0x291eff[_0x5c63ba(0x3a0)](_0x591e23);});}return{'redos':[],'undos':[]};};this[_0x5bd8e0(0x37e)][_0x5bd8e0(0x3e1)]((_0x335fa0,_0x90b20a)=>{const _0x4c2489=_0x5bd8e0,{range:_0x1503dd,sheetID:_0x5b4304}=_0x335fa0,_0x2a46e9=this['_refRangeService'][_0x4c2489(0x2c9)](_0x1503dd,_0x43c615=>(_0x2a46e9[_0x4c2489(0x27f)](),_0x113650(_0x43c615,_0x90b20a,_0x5b4304,_0x1503dd)));_0x291eff[_0x4c2489(0x3a0)](_0x2a46e9);});};this[_0x309389(0x2d1)](a[_0x309389(0x32d)](this['_cursorInfo$']['subscribe'](()=>{_0x1d5617();})));}[_0x412fda(0x2af)](){const _0x378b57=_0x412fda;var _0x44689b,_0x4cdb98;if(this[_0x378b57(0x1d4)]=!0x0,((_0x44689b=this['_univerInstanceService'][_0x378b57(0x38c)]())==null?void 0x0:_0x44689b[_0x378b57(0x1c9)]())!==this[_0x378b57(0x31d)])return;const _0x36e623=(_0x4cdb98=this[_0x378b57(0x24d)][_0x378b57(0x404)](g[_0x378b57(0x3bc)])['getCurrentSelections']())==null?void 0x0:_0x4cdb98[0x0],_0x19f9fb=this['_univerInstanceService'][_0x378b57(0x2aa)](a[_0x378b57(0x220)]['UNIVER_SHEET'])[_0x378b57(0x3e9)]();_0x36e623&&_0x19f9fb&&this[_0x378b57(0x2e2)](_0x19f9fb['getSheetId'](),_0x36e623);}[_0x412fda(0x27e)](){const _0x1bedb4=_0x412fda;this[_0x1bedb4(0x1d4)]=!0x1;}};Ie=it([A(0x2,a[_0x412fda(0x22a)](a['Injector'])),A(0x3,a[_0x412fda(0x22a)](Ce)),A(0x4,a[_0x412fda(0x22a)](u['MemberService'])),A(0x5,a[_0x412fda(0x289)]),A(0x6,a[_0x412fda(0x3ac)]),A(0x7,a[_0x412fda(0x22a)](g[_0x412fda(0x291)]))],Ie);var ct=Object['getOwnPropertyDescriptor'],lt=(_0x1b3ff3,_0x2ae25b,_0x579667,_0x3631d7)=>{const _0x54df7f=_0x412fda;for(var _0x2eb8d7=_0x3631d7>0x1?void 0x0:_0x3631d7?ct(_0x2ae25b,_0x579667):_0x2ae25b,_0x1a0e9e=_0x1b3ff3[_0x54df7f(0x409)]-0x1,_0x40d908;_0x1a0e9e>=0x0;_0x1a0e9e--)(_0x40d908=_0x1b3ff3[_0x1a0e9e])&&(_0x2eb8d7=_0x40d908(_0x2eb8d7)||_0x2eb8d7);return _0x2eb8d7;},ie=(_0x58a1de,_0x328534)=>(_0x165634,_0x1568f5)=>_0x328534(_0x165634,_0x1568f5,_0x58a1de);let x=class extends a[_0x412fda(0x1c0)]{constructor(_0x5b23fd,_0x358aec,_0x11b1fd){const _0xcf61d1=_0x412fda;super(),_(this,_0xcf61d1(0x25f),new Map()),_(this,_0xcf61d1(0x2c0),new d[(_0xcf61d1(0x351))]()),(this['_univerInstanceService']=_0x5b23fd,this[_0xcf61d1(0x24d)]=_0x358aec,this['_collabSessionService']=_0x11b1fd,this['_init']());}[_0x412fda(0x27f)](){const _0x3a7b4b=_0x412fda;super[_0x3a7b4b(0x27f)](),this['_entityInit$']['complete'](),this[_0x3a7b4b(0x25f)][_0x3a7b4b(0x3e1)](_0x36f643=>_0x36f643['dispose']());}['getCollabCursors$'](_0xb09641){const _0x1995ac=_0x412fda;return this[_0x1995ac(0x25f)][_0x1995ac(0x1ee)](_0xb09641)?this[_0x1995ac(0x25f)][_0x1995ac(0x404)](_0xb09641)[_0x1995ac(0x2b7)]:this[_0x1995ac(0x2c0)][_0x1995ac(0x254)](d[_0x1995ac(0x2ec)](_0x59680e=>_0x59680e[_0x1995ac(0x31d)]===_0xb09641),d[_0x1995ac(0x400)](_0x39a66f=>_0x39a66f[_0x1995ac(0x2b7)]));}[_0x412fda(0x3fc)](){const _0x1e4b3a=_0x412fda;this['_univerInstanceService'][_0x1e4b3a(0x346)](a[_0x1e4b3a(0x220)]['UNIVER_SHEET'])[_0x1e4b3a(0x254)](d[_0x1e4b3a(0x372)](this[_0x1e4b3a(0x414)]))[_0x1e4b3a(0x3c5)](async _0x1e289e=>{const _0x2e7d44=_0x1e4b3a,_0x41da24=_0x1e289e[_0x2e7d44(0x1c9)](),_0x2d3668=await this['_startSheetCollabCursor'](_0x41da24);this[_0x2e7d44(0x2c0)]['next'](_0x2d3668),this[_0x2e7d44(0x25f)]['set'](_0x41da24,_0x2d3668);}),this[_0x1e4b3a(0x314)][_0x1e4b3a(0x346)](a['UniverInstanceType'][_0x1e4b3a(0x427)])[_0x1e4b3a(0x254)](d[_0x1e4b3a(0x372)](this['dispose$']))[_0x1e4b3a(0x254)](d[_0x1e4b3a(0x2ec)](_0x5a0e8c=>!_0x5a0e8c['getUnitId']()[_0x1e4b3a(0x23b)]('__')))[_0x1e4b3a(0x3c5)](async _0x37669b=>{const _0x5cf256=_0x1e4b3a,_0x3ca803=_0x37669b[_0x5cf256(0x1c9)](),_0x455a3a=await this[_0x5cf256(0x242)](_0x3ca803);this[_0x5cf256(0x2c0)][_0x5cf256(0x2e4)](_0x455a3a),this['_entities'][_0x5cf256(0x207)](_0x3ca803,_0x455a3a);}),d['merge'](this[_0x1e4b3a(0x314)][_0x1e4b3a(0x263)](a['UniverInstanceType'][_0x1e4b3a(0x427)]),this[_0x1e4b3a(0x314)][_0x1e4b3a(0x263)](a['UniverInstanceType'][_0x1e4b3a(0x354)]))[_0x1e4b3a(0x254)](d['takeUntil'](this[_0x1e4b3a(0x414)]))['subscribe'](_0x5a56ef=>{const _0x464eb1=_0x1e4b3a,_0x3ab10a=_0x5a56ef[_0x464eb1(0x1c9)](),_0x49b91f=this[_0x464eb1(0x25f)][_0x464eb1(0x404)](_0x3ab10a);_0x49b91f&&(_0x49b91f[_0x464eb1(0x27f)](),this[_0x464eb1(0x25f)][_0x464eb1(0x33f)](_0x3ab10a));});}async[_0x412fda(0x2c3)](_0x54c6a6){const _0x37bd8=_0x412fda,_0x42b05a=await this[_0x37bd8(0x428)][_0x37bd8(0x3af)](_0x54c6a6),_0x418204=this[_0x37bd8(0x24d)][_0x37bd8(0x3ef)](Ie,_0x54c6a6,_0x42b05a);return _0x418204['init'](),_0x418204;}async[_0x412fda(0x242)](_0x365369){const _0x43a68a=_0x412fda,_0x538a79=await this['_collabSessionService'][_0x43a68a(0x3af)](_0x365369),_0xb303da=this['_injector']['createInstance'](Se,_0x365369,_0x538a79);return _0xb303da[_0x43a68a(0x25a)](),_0xb303da;}};x=lt([ie(0x0,a[_0x412fda(0x289)]),ie(0x1,a['Inject'](a[_0x412fda(0x2ed)])),ie(0x2,a[_0x412fda(0x22a)](u[_0x412fda(0x416)]))],x);const K=0x14,De=0xc8,re=0x4,_t=0x5;function ht(_0x4065f7,_0x5cbbcf){const _0x2908d6=_0x412fda;let {radius:_0x2e3bb6,width:_0x5a8c35,height:_0x4dc875}=_0x5cbbcf;_0x2e3bb6=_0x2e3bb6!=null?_0x2e3bb6:0x0,_0x5a8c35=_0x5a8c35!=null?_0x5a8c35:0x1e,_0x4dc875=_0x4dc875!=null?_0x4dc875:0x1e;let _0x393ce1=0x0,_0x16eb95=0x0,_0x5434a1=0x0;_0x393ce1=_0x16eb95=_0x5434a1=Math[_0x2908d6(0x347)](_0x2e3bb6,_0x5a8c35/0x2,_0x4dc875/0x2),_0x4065f7[_0x2908d6(0x32a)](),_0x4065f7[_0x2908d6(0x2cc)](_0x393ce1,0x0),_0x4065f7[_0x2908d6(0x361)](_0x5a8c35-_0x16eb95,0x0),_0x4065f7[_0x2908d6(0x276)](_0x5a8c35-_0x16eb95,_0x16eb95,_0x16eb95,Math['PI']*0x3/0x2,0x0,!0x1),_0x4065f7[_0x2908d6(0x361)](_0x5a8c35,_0x4dc875-_0x5434a1),_0x4065f7['arc'](_0x5a8c35-_0x5434a1,_0x4dc875-_0x5434a1,_0x5434a1,0x0,Math['PI']/0x2,!0x1),_0x4065f7['lineTo'](0x0,_0x4dc875),_0x4065f7[_0x2908d6(0x361)](0x0,_0x393ce1),_0x4065f7['arc'](_0x393ce1,_0x393ce1,_0x393ce1,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4065f7['closePath'](),_0x5cbbcf[_0x2908d6(0x3a6)]&&(_0x4065f7[_0x2908d6(0x39d)](),_0x4065f7[_0x2908d6(0x322)]=_0x5cbbcf[_0x2908d6(0x3a6)],_0x5cbbcf[_0x2908d6(0x228)]===_0x2908d6(0x1ec)?_0x4065f7[_0x2908d6(0x3a6)](_0x2908d6(0x1ec)):_0x4065f7[_0x2908d6(0x3a6)](),_0x4065f7[_0x2908d6(0x3fd)]());}class te extends p['Shape']{constructor(_0x45460a,_0x1f27be){const _0xb612b5=_0x412fda;super(_0x45460a,_0x1f27be),_(this,_0xb612b5(0x226)),_(this,'text'),(this['color']=_0x1f27be==null?void 0x0:_0x1f27be['color'],this['text']=_0x1f27be==null?void 0x0:_0x1f27be[_0xb612b5(0x1c1)]);}static['drawWith'](_0x50769e,_0x3e0c69){const _0x52dd48=_0x412fda,{text:_0x55f21d,color:_0x1d449f}=_0x3e0c69;_0x50769e[_0x52dd48(0x39d)](),_0x50769e[_0x52dd48(0x24e)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x59c160=_0x50769e['measureText'](_0x55f21d)['width'],_0x4910ea=Math[_0x52dd48(0x347)](_0x59c160+0x2*re,De);ht(_0x50769e,{'height':K,'radius':0x4,'width':_0x4910ea,'fill':_0x1d449f}),_0x50769e[_0x52dd48(0x322)]=_0x52dd48(0x239);const _0x57333f=re,_0x54ce0d=K-_t,_0xf19377=De-0x2*re;if(_0x59c160>_0xf19377){let _0x390201='',_0x4bdb86=0x0;for(const _0x3521a0 of _0x55f21d){const _0x3c723a=_0x50769e[_0x52dd48(0x3d6)](_0x3521a0)[_0x52dd48(0x43c)];if(_0x4bdb86+_0x3c723a<=_0xf19377-_0x50769e[_0x52dd48(0x3d6)]('...')[_0x52dd48(0x43c)])_0x390201+=_0x3521a0,_0x4bdb86+=_0x3c723a;else{_0x390201+=_0x52dd48(0x21e);break;}}_0x50769e[_0x52dd48(0x38b)](_0x390201,_0x57333f,_0x54ce0d);}else _0x50769e[_0x52dd48(0x38b)](_0x55f21d,_0x57333f,_0x54ce0d);_0x50769e[_0x52dd48(0x3fd)]();}[_0x412fda(0x1c8)](_0x57dd95){const _0x37bc23=_0x412fda;te[_0x37bc23(0x39e)](_0x57dd95,this);}}const oe=_0x412fda(0x2c5),ut=_0x412fda(0x1bc),dt='collab-rect-range-',k=0x6,ft=1.5,ae=0x4,St=1.5,It=_0x412fda(0x315);class Ue{constructor(_0x662e8e,_0x543416,_0x3e816a,_0x56586c){const _0x5949f8=_0x412fda;_(this,'_shapes',[]),_(this,_0x5949f8(0x2fd),null),_(this,_0x5949f8(0x2a2),null),_(this,_0x5949f8(0x247),null),_(this,_0x5949f8(0x3dc),null),_(this,'_eventUnsubscribe',null),(this[_0x5949f8(0x270)]=_0x662e8e,this[_0x5949f8(0x202)]=_0x543416,this[_0x5949f8(0x281)]=_0x3e816a,this[_0x5949f8(0x1d0)]=_0x56586c,this['_render']());}set[_0x412fda(0x42d)](_0x2bc091){const _0x3f9889=_0x412fda;_0x2bc091?(this[_0x3f9889(0x247)]&&this['_anchorDot'][_0x3f9889(0x3ce)](),this[_0x3f9889(0x2a2)]&&this['_textBubble'][_0x3f9889(0x20a)]()):(this['_anchorDot']&&this[_0x3f9889(0x247)][_0x3f9889(0x20a)](),this[_0x3f9889(0x2a2)]&&this[_0x3f9889(0x2a2)][_0x3f9889(0x3ce)]());}[_0x412fda(0x27f)](){const _0x57db8e=_0x412fda;for(const _0x152b59 of this[_0x57db8e(0x219)])_0x152b59[_0x57db8e(0x27f)]();this[_0x57db8e(0x2a2)]&&this[_0x57db8e(0x2a2)][_0x57db8e(0x27f)](),this['_anchorDot']&&this[_0x57db8e(0x247)][_0x57db8e(0x27f)](),this[_0x57db8e(0x2fd)]&&this[_0x57db8e(0x2fd)][_0x57db8e(0x27f)](),this[_0x57db8e(0x349)]&&this[_0x57db8e(0x349)]();}[_0x412fda(0x1d5)](){const _0x3e6c30=_0x412fda;var _0x1b36da;const {_docSkeleton:_0x58f5d5,_document:_0x5e8838}=this,{color:_0x5edae7,name:_0x226968,ranges:_0x36885f}=this[_0x3e6c30(0x270)],_0x5de5a1=_0x5e8838[_0x3e6c30(0x2b3)](),{docsLeft:_0x53d14d,docsTop:_0x4725d7}=_0x5de5a1,_0x43d2f6=new b['NodePositionConvertToCursor'](_0x5de5a1,_0x58f5d5);for(const {startOffset:_0xb53f0f,endOffset:_0x4e51cd,rangeType:_0x21b21a,segmentId:_0x165165,segmentPage:_0x3d32d6,collapsed:_0x522b42,isActive:_0x5d1632}of _0x36885f){const _0x373e37=_0x58f5d5[_0x3e6c30(0x2c4)](_0xb53f0f,!0x0,_0x165165,_0x3d32d6);let _0x47cf25=_0x58f5d5[_0x3e6c30(0x2c4)](_0x4e51cd,!0x0,_0x165165,_0x3d32d6);if(_0x47cf25==null&&(_0x47cf25=_0x58f5d5['findNodePositionByCharIndex'](_0x4e51cd-0x1,!0x1,_0x165165,_0x3d32d6)),_0x5d1632){const {contentBoxPointGroup:_0x1501a4}=_0x43d2f6['getRangePointData'](_0x47cf25,_0x47cf25);if(_0x1501a4[_0x3e6c30(0x409)]===0x0)continue;this[_0x3e6c30(0x335)](_0x5edae7,_0x1501a4,_0x53d14d,_0x4725d7,_0x226968),this[_0x3e6c30(0x349)]=this[_0x3e6c30(0x286)]();}if(_0x373e37&&_0x47cf25){if(_0x21b21a===a[_0x3e6c30(0x1f5)][_0x3e6c30(0x257)]){const _0x3c4a82=new b[(_0x3e6c30(0x1cf))](_0x5de5a1,_0x58f5d5),{pointGroup:_0x558e04}=(_0x1b36da=_0x3c4a82[_0x3e6c30(0x43a)](_0x373e37,_0x47cf25))!=null?_0x1b36da:{};if(_0x558e04==null||_0x558e04[_0x3e6c30(0x409)]===0x0)continue;this[_0x3e6c30(0x375)](_0x5edae7,_0x558e04,_0x53d14d,_0x4725d7);}else{if(!_0x522b42){const {borderBoxPointGroup:_0x1b4afe}=_0x43d2f6[_0x3e6c30(0x43a)](_0x373e37,_0x47cf25);if(_0x1b4afe['length']===0x0)continue;this[_0x3e6c30(0x24b)](_0x5edae7,_0x1b4afe,_0x53d14d,_0x4725d7);}}}}}[_0x412fda(0x335)](_0x1aa592,_0x462d10,_0xcfb5ea,_0x22eb4c,_0x8bda80){const _0x85421c=_0x412fda,_0x1685dc=this[_0x85421c(0x40b)](_0x462d10),{left:_0x385ae9,top:_0x2d7fe3,height:_0x26bb88}=_0x1685dc,_0x4d4dbc=this[_0x85421c(0x211)](),_0x60308f=St/_0x4d4dbc,_0x47708a=new p['Rect'](oe+a[_0x85421c(0x2b1)][_0x85421c(0x31b)](k),{'left':_0x385ae9+_0xcfb5ea-_0x60308f,'top':_0x2d7fe3+_0x22eb4c,'height':_0x26bb88,'width':ft,'fill':_0x1aa592||p[_0x85421c(0x310)](a[_0x85421c(0x3d5)][_0x85421c(0x30c)],0x0),'strokeWidth':_0x60308f,'stroke':It,'evented':!0x0});this[_0x85421c(0x2fd)]=_0x47708a,this[_0x85421c(0x202)]['addObject'](_0x47708a,b[_0x85421c(0x3c0)]);const _0x581fc=new p[(_0x85421c(0x1f8))](oe+a[_0x85421c(0x2b1)][_0x85421c(0x31b)](k),{'left':_0x385ae9+_0xcfb5ea-_0x60308f,'top':_0x2d7fe3+_0x22eb4c-ae/0x2,'height':ae,'width':ae,'fill':_0x1aa592||p[_0x85421c(0x310)](a['COLORS'][_0x85421c(0x30c)],0x0),'strokeWidth':0x0,'stroke':_0x1aa592||p['getColor'](a[_0x85421c(0x3d5)][_0x85421c(0x30c)],0x0),'evented':!0x1});this[_0x85421c(0x247)]=_0x581fc,this[_0x85421c(0x202)][_0x85421c(0x290)](_0x581fc,b[_0x85421c(0x3c0)]);const _0x23ed48=new te(oe+a[_0x85421c(0x2b1)][_0x85421c(0x31b)](k),{'left':_0x385ae9+_0xcfb5ea-_0x60308f,'top':_0x2d7fe3+_0x22eb4c-K,'text':_0x8bda80,'color':_0x1aa592});this['_textBubble']=_0x23ed48,this[_0x85421c(0x202)][_0x85421c(0x290)](_0x23ed48,b['TEXT_RANGE_LAYER_INDEX']),this[_0x85421c(0x42d)]=!0x1;}[_0x412fda(0x286)](){const _0x3e5245=_0x412fda,_0x1ff8e8=this['_anchor'][_0x3e5245(0x2ba)][_0x3e5245(0x3fb)](()=>{const _0x2390be=_0x3e5245;this[_0x2390be(0x42d)]=!0x0;}),_0x13725f=this['_anchor'][_0x3e5245(0x30b)][_0x3e5245(0x3fb)](()=>{const _0x4835c3=_0x3e5245;this['_hideTimer']&&clearTimeout(this[_0x4835c3(0x3dc)]),this['_hideTimer']=setTimeout(()=>{const _0x5e15f3=_0x4835c3;this[_0x5e15f3(0x42d)]=!0x1;},0x7d0);});return()=>{const _0x1085df=_0x3e5245;_0x1ff8e8[_0x1085df(0x312)](),_0x13725f['unsubscribe']();};}[_0x412fda(0x24b)](_0x2ab54e,_0x349f83,_0x9e0f1f,_0x11cf20){const _0x504690=_0x412fda,_0x36d290=new a[(_0x504690(0x3d2))](_0x2ab54e)[_0x504690(0x386)](0.2)[_0x504690(0x1b8)](),_0x379493=new p[(_0x504690(0x20b))](ut+a[_0x504690(0x2b1)][_0x504690(0x31b)](k),{'pointsGroup':_0x349f83,'fill':_0x36d290||p[_0x504690(0x310)](a[_0x504690(0x3d5)][_0x504690(0x30c)],0.2),'left':_0x9e0f1f,'top':_0x11cf20,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x379493),this['_scene'][_0x504690(0x290)](_0x379493,b['TEXT_RANGE_LAYER_INDEX']);}['_drawRectRange'](_0xa1edb5,_0x239e17,_0x2c3bf5,_0x2d20d3){const _0x1cd945=_0x412fda,_0xf28ac1=new a[(_0x1cd945(0x3d2))](_0xa1edb5)[_0x1cd945(0x386)](0.2)[_0x1cd945(0x1b8)](),_0x164d0c=new p[(_0x1cd945(0x20b))](dt+a[_0x1cd945(0x2b1)][_0x1cd945(0x31b)](k),{'pointsGroup':_0x239e17,'fill':_0xf28ac1||p[_0x1cd945(0x310)](a[_0x1cd945(0x3d5)][_0x1cd945(0x30c)],0.2),'left':_0x2c3bf5,'top':_0x2d20d3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1cd945(0x219)][_0x1cd945(0x203)](_0x164d0c),this['_scene']['addObject'](_0x164d0c,b[_0x1cd945(0x3c0)]);}[_0x412fda(0x40b)](_0x542039){const _0x48e1ed=_0x542039[0x0],_0x1bb01d=_0x48e1ed[0x0],_0x579b83=_0x48e1ed[0x2],{x:_0x286eda,y:_0x5bab8f}=_0x1bb01d,{x:_0xff4dcc,y:_0x5651d3}=_0x579b83;return{'left':_0x286eda,'top':_0x5bab8f,'width':_0xff4dcc-_0x286eda,'height':_0x5651d3-_0x5bab8f};}['_getScale'](){const _0x4b311a=_0x412fda,{scaleX:_0x2c3b19,scaleY:_0x117fff}=this[_0x4b311a(0x202)]['getAncestorScale']();return Math[_0x4b311a(0x387)](_0x2c3b19,_0x117fff);}}var vt=Object[_0x412fda(0x26e)],gt=(_0x1c49ec,_0x28d79d,_0x4a52c0,_0x308621)=>{const _0x2a7475=_0x412fda;for(var _0x35d208=_0x308621>0x1?void 0x0:_0x308621?vt(_0x28d79d,_0x4a52c0):_0x28d79d,_0x183473=_0x1c49ec[_0x2a7475(0x409)]-0x1,_0x5daee7;_0x183473>=0x0;_0x183473--)(_0x5daee7=_0x1c49ec[_0x183473])&&(_0x35d208=_0x5daee7(_0x35d208)||_0x35d208);return _0x35d208;},V=(_0x5b2192,_0xa32c55)=>(_0x1fcad9,_0x55226c)=>_0xa32c55(_0x1fcad9,_0x55226c,_0x5b2192);let ve=class extends a[_0x412fda(0x1c0)]{constructor(_0x2921fc,_0x5b4cb0,_0x38f087,_0x41bae8,_0x3a5c02){const _0xc044d6=_0x412fda;super(),_(this,_0xc044d6(0x2dd),[]),_(this,_0xc044d6(0x3fa),[]),(this['_context']=_0x2921fc,this['_docSkeletonManagerService']=_0x5b4cb0,this[_0xc044d6(0x1e0)]=_0x38f087,this[_0xc044d6(0x320)]=_0x41bae8,this['_themeService']=_0x3a5c02,this[_0xc044d6(0x3fc)]());}[_0x412fda(0x3fc)](){const _0x61eab8=_0x412fda,_0xe629bb=this['_context'][_0x61eab8(0x406)],_0x53ea8f=this['_docSkeletonManagerService'];this[_0x61eab8(0x2d1)](d[_0x61eab8(0x421)]([this[_0x61eab8(0x1e0)]['getCollabCursors$'](_0xe629bb),this[_0x61eab8(0x278)][_0x61eab8(0x364)]])[_0x61eab8(0x254)]($[_0x61eab8(0x233)](([_0x51e475,_0x142c2f])=>({'skeleton':_0x53ea8f[_0x61eab8(0x1bb)](),'cursors':[..._0x51e475[_0x61eab8(0x41c)]()]['flatMap'](_0x2218e3=>({..._0x2218e3,'color':_0x142c2f[_0x2218e3['color']]}))})))[_0x61eab8(0x3c5)](_0x10d998=>{const _0x3a419a=_0x61eab8;if(this['_removeCollabCursors'](),_0x10d998){const {skeleton:_0x39b338,cursors:_0x2428e9}=_0x10d998;this[_0x3a419a(0x3be)](_0x39b338,_0x2428e9);}})),this[_0x61eab8(0x214)](),this[_0x61eab8(0x21c)]();}[_0x412fda(0x3be)](_0x589cf7,_0x1af65e){const _0x62b65c=_0x412fda,{scene:_0x569e63,mainComponent:_0x592372}=this[_0x62b65c(0x1f0)],_0x26e5c5=_0x1af65e[_0x62b65c(0x233)](_0x323525=>new Ue(_0x323525,_0x569e63,_0x589cf7,_0x592372));this[_0x62b65c(0x2dd)]=_0x26e5c5,this[_0x62b65c(0x3fa)]=_0x1af65e;}['_refreshCollabCursors'](){const _0x431d33=_0x412fda;this[_0x431d33(0x238)]();const {scene:_0x424d38,mainComponent:_0x4aee6f}=this[_0x431d33(0x1f0)],_0x93acfd=this[_0x431d33(0x3d4)][_0x431d33(0x1bb)](),_0x40f83d=this[_0x431d33(0x3fa)][_0x431d33(0x233)](_0x50426d=>new Ue(_0x50426d,_0x424d38,_0x93acfd,_0x4aee6f));this[_0x431d33(0x2dd)]=_0x40f83d;}['_removeCollabCursors'](){const _0x19f99c=_0x412fda;this[_0x19f99c(0x2dd)][_0x19f99c(0x3e1)](_0x2073c3=>_0x2073c3[_0x19f99c(0x27f)]()),this[_0x19f99c(0x2dd)]=[];}[_0x412fda(0x21c)](){const _0x23ffdf=_0x412fda,_0x1f954a=[b[_0x23ffdf(0x2a3)]['id']];this[_0x23ffdf(0x2d1)](this[_0x23ffdf(0x320)]['onCommandExecuted'](_0x36bf86=>{const _0x7c27c1=_0x23ffdf;_0x1f954a[_0x7c27c1(0x204)](_0x36bf86['id'])&&_0x36bf86['params']['unitId']===this[_0x7c27c1(0x1f0)][_0x7c27c1(0x406)]&&this[_0x7c27c1(0x1d8)]();}));}[_0x412fda(0x214)](){const _0x5917f5=_0x412fda;this[_0x5917f5(0x2d1)](a['fromEventSubject'](this[_0x5917f5(0x1f0)][_0x5917f5(0x2ce)][_0x5917f5(0x2f1)])[_0x5917f5(0x254)]($[_0x5917f5(0x2ec)](_0x334c0d=>_0x334c0d[_0x5917f5(0x250)]===p[_0x5917f5(0x35c)][_0x5917f5(0x1c3)]),$[_0x5917f5(0x1db)](0x10))[_0x5917f5(0x3c5)](()=>{const _0x5e0029=_0x5917f5;this[_0x5e0029(0x1d8)]();}));}};ve=gt([V(0x1,a[_0x412fda(0x22a)](Y[_0x412fda(0x3f2)])),V(0x2,a[_0x412fda(0x22a)](x)),V(0x3,a[_0x412fda(0x3ac)]),V(0x4,a['Inject'](a['ThemeService']))],ve);const mt=0x1,Ct=1.5;class Ae extends p[_0x412fda(0x1c7)]{constructor(_0x142ff7,_0x10031f){const _0x588edb=_0x412fda;super(_0x142ff7,_0x10031f),_(this,_0x588edb(0x1ba)),_(this,_0x588edb(0x37d),!0x1),_(this,_0x588edb(0x402)),_(this,_0x588edb(0x436),''),_(this,_0x588edb(0x2ae),'top'),_(this,_0x588edb(0x367)),(_0x10031f&&this[_0x588edb(0x240)](_0x10031f),this[_0x588edb(0x2ba)][_0x588edb(0x3fb)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x588edb(0x30b)][_0x588edb(0x3fb)](()=>this[_0x588edb(0x240)]({'hovered':!0x1})));}[_0x412fda(0x240)](_0x6a688d){const _0x585b82=_0x412fda;var _0x2132fe,_0x4708c3,_0x1919cc,_0x3beda2,_0x369ef4,_0x13a745;this[_0x585b82(0x1ba)]=(_0x2132fe=_0x6a688d['color'])!=null?_0x2132fe:this['_color'],this[_0x585b82(0x37d)]=(_0x4708c3=_0x6a688d[_0x585b82(0x420)])!=null?_0x4708c3:this['_hovered'],this[_0x585b82(0x402)]=(_0x1919cc=_0x6a688d[_0x585b82(0x3f0)])!=null?_0x1919cc:this['_range'],this[_0x585b82(0x436)]=(_0x3beda2=_0x6a688d[_0x585b82(0x27a)])!=null?_0x3beda2:this[_0x585b82(0x436)],this[_0x585b82(0x2ae)]=(_0x369ef4=_0x6a688d[_0x585b82(0x405)])!=null?_0x369ef4:this[_0x585b82(0x2ae)],this[_0x585b82(0x367)]=(_0x13a745=_0x6a688d[_0x585b82(0x246)])!=null?_0x13a745:this[_0x585b82(0x367)],this['transformByState']({'width':_0x6a688d[_0x585b82(0x43c)],'height':_0x6a688d['height']});}[_0x412fda(0x2ff)](_0x196e05){const _0x2ec8d6=_0x412fda,{row:_0x5cde20,column:_0x1ccbb6}=_0x196e05;if(_0x5cde20>=this['_range']['startRow']&&_0x5cde20<=this['_range'][_0x2ec8d6(0x1d1)]&&_0x1ccbb6>=this['_range'][_0x2ec8d6(0x28a)]&&_0x1ccbb6<=this[_0x2ec8d6(0x402)]['endColumn']){this[_0x2ec8d6(0x240)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x412fda(0x3aa)](_0x5ab61d){return!0x1;}['_draw'](_0x1d7e04){const _0x31ba07=_0x412fda;p[_0x31ba07(0x1f8)][_0x31ba07(0x39e)](_0x1d7e04,{'width':this[_0x31ba07(0x43c)],'height':this['height'],'strokeWidth':Ct,'stroke':this[_0x31ba07(0x1ba)],'evented':!0x1,'fill':this[_0x31ba07(0x367)]}),this[_0x31ba07(0x37d)]&&(_0x1d7e04['save'](),_0x1d7e04[_0x31ba07(0x3ee)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x31ba07(0x1e4)?0x0:-0x14),te[_0x31ba07(0x39e)](_0x1d7e04,{'text':this[_0x31ba07(0x436)],'color':this['_color']}),_0x1d7e04[_0x31ba07(0x3fd)]());}}var pt=Object[_0x412fda(0x26e)],bt=(_0x96142e,_0x532b65,_0x3c9f8a,_0x58d214)=>{const _0x2f2b11=_0x412fda;for(var _0x459339=_0x58d214>0x1?void 0x0:_0x58d214?pt(_0x532b65,_0x3c9f8a):_0x532b65,_0x1b6540=_0x96142e[_0x2f2b11(0x409)]-0x1,_0x28fd30;_0x1b6540>=0x0;_0x1b6540--)(_0x28fd30=_0x96142e[_0x1b6540])&&(_0x459339=_0x28fd30(_0x459339)||_0x459339);return _0x459339;},ce=(_0x57e99f,_0x22e74b)=>(_0x1b6cf2,_0xfd297f)=>_0x22e74b(_0x1b6cf2,_0xfd297f,_0x57e99f);const Et=0x1389;let ge=class extends a['RxDisposable']{constructor(_0x32c319,_0x83a620,_0x142bab,_0x2b6333){const _0x24479f=_0x412fda;super(),_(this,_0x24479f(0x3fa),new Set()),_(this,_0x24479f(0x398),null),(this['_context']=_0x32c319,this[_0x24479f(0x2b5)]=_0x83a620,this[_0x24479f(0x1e0)]=_0x142bab,this[_0x24479f(0x278)]=_0x2b6333,this[_0x24479f(0x3fc)]());}[_0x412fda(0x3fc)](){const _0x163c79=_0x412fda;this[_0x163c79(0x2b5)]['currentSkeleton$'][_0x163c79(0x254)]($[_0x163c79(0x372)](this[_0x163c79(0x414)]),$[_0x163c79(0x400)](_0x35662a=>{const _0x113f36=_0x163c79;if(_0x35662a){const _0x10b911=_0x35662a['sheetId'];return d['combineLatest'](this['_collabCursorController']['getCollabCursors$'](this['_context'][_0x113f36(0x406)]),this['_themeService'][_0x113f36(0x364)])[_0x113f36(0x254)]($['map'](([_0x35592e,_0x196be6])=>{const _0x27688f=_0x113f36,_0x2b99c0=new Map();return _0x35592e[_0x27688f(0x3e1)]((_0x3297fc,_0x42ef61)=>{const _0x43e5f8=_0x27688f;if(_0x3297fc[_0x43e5f8(0x2a0)]===_0x10b911){const _0x1ff084={..._0x3297fc};_0x1ff084['color']=_0x196be6[_0x3297fc[_0x43e5f8(0x226)]],_0x2b99c0[_0x43e5f8(0x207)](_0x42ef61,_0x1ff084);}}),{'skeleton':_0x35662a,'cursors':_0x2b99c0};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x163c79(0x3c5)](({skeleton:_0x2729da,cursors:_0x40ef5b})=>{const _0x5203b5=_0x163c79;this[_0x5203b5(0x238)](),_0x2729da&&this['_updateCollabCursors'](_0x2729da,_0x40ef5b);}),this[_0x163c79(0x2b5)]['currentSkeleton$'][_0x163c79(0x3c5)](_0x5478f2=>{const _0x3964fd=_0x163c79;if(_0x5478f2==null)return;const {skeleton:_0x3519ba}=_0x5478f2,{scene:_0x24073e}=this[_0x3964fd(0x1f0)];_0x24073e['onPointerMove$']['subscribeEvent'](a[_0x3964fd(0x425)](_0xed8a4b=>{const _0x2c98af=_0x3964fd;var _0x17cbb3,_0x3810ac;const {offsetX:_0x328463,offsetY:_0x724942}=_0xed8a4b,{x:_0xa13865,y:_0x5e84c0}=_0x24073e[_0x2c98af(0x337)](p[_0x2c98af(0x334)][_0x2c98af(0x2bb)]([_0x328463,_0x724942])),{scaleX:_0x282f60,scaleY:_0x2ca482}=_0x24073e['getAncestorScale'](),_0x216c8b=_0x24073e[_0x2c98af(0x313)](p[_0x2c98af(0x205)][_0x2c98af(0x36e)]),_0x3213bf=_0x24073e[_0x2c98af(0x3f8)](p[_0x2c98af(0x334)][_0x2c98af(0x2bb)]([_0xa13865,_0x5e84c0]),_0x216c8b),_0x26fe60=_0x3519ba[_0x2c98af(0x2bd)](_0x328463,_0x724942,_0x282f60,_0x2ca482,_0x3213bf);((_0x17cbb3=this['_lastPointer'])==null?void 0x0:_0x17cbb3['column'])===_0x26fe60[_0x2c98af(0x22c)]&&((_0x3810ac=this[_0x2c98af(0x398)])==null?void 0x0:_0x3810ac[_0x2c98af(0x2f5)])===_0x26fe60[_0x2c98af(0x2f5)]||this[_0x2c98af(0x3fa)][_0x2c98af(0x3e1)](_0x40e6a9=>{_0x40e6a9['onMouseMove'](_0x26fe60);});},0x64));});}[_0x412fda(0x3be)](_0x5a8831,_0x15d5b4){const _0x14035d=_0x412fda;var _0x4c7e3d;const _0x3ab66a=(_0x4c7e3d=this['_sheetSkeletonManagerService'][_0x14035d(0x225)]())==null?void 0x0:_0x4c7e3d[_0x14035d(0x401)];if(!_0x3ab66a)return;const _0xb6a2d4=this['_getSheetObject']();if(!_0xb6a2d4)return;this[_0x14035d(0x3fa)]['forEach'](_0x5abc31=>{const _0x2da2f2=_0x14035d;_0x5abc31[_0x2da2f2(0x241)]();});const {scene:_0x3342c3}=_0xb6a2d4,_0x3f276c=Tt(Array[_0x14035d(0x42b)](_0x15d5b4[_0x14035d(0x41c)]()))['map'](_0xfe9301=>{const _0x37c989=_0x14035d,{color:_0x4bd62e,range:_0x7de6fa,name:_0x3c0769,selection:_0x5807f4,sheetID:_0x348aa5}=_0xfe9301,{startColumn:_0x328d01,startRow:_0x2502ea,endColumn:_0x110868,endRow:_0x5aec45}=_0x7de6fa,_0x154dc3=G['getCoordByCell'](_0x2502ea,_0x328d01,_0x3342c3,_0x3ab66a),_0x53a838=G['getCoordByCell'](_0x5aec45,_0x110868,_0x3342c3,_0x3ab66a),{columnHeaderHeightAndMarginTop:_0x2fa941}=_0x3ab66a,{startX:_0x1066e3,startY:_0x1c38f3}=_0x154dc3,{endX:_0x138f55,endY:_0x3484a9}=_0x53a838,_0x13314b=_0x138f55-_0x1066e3,_0x1cff38=_0x3484a9-_0x1c38f3,_0x15d0d3={'labelPosition':_0x1c38f3-_0x2fa941>=K?_0x37c989(0x24a):'bottom','sheetID':_0x348aa5,'range':_0x7de6fa,'color':_0x4bd62e,'name':_0x3c0769,'selection':_0x5807f4,'left':_0x1066e3,'top':_0x1c38f3,'width':_0x13314b,'height':_0x1cff38,'evented':!0x1,'zIndex':Et};return new Ae(_0x3c0769,_0x15d0d3);});_0x3342c3['addObjects'](_0x3f276c,mt),this[_0x14035d(0x3fa)]=new Set(_0x3f276c);}[_0x412fda(0x238)](){const _0x372e2b=_0x412fda;var _0x268d46;(_0x268d46=this['_cursors'])==null||_0x268d46[_0x372e2b(0x3e1)](_0x5ddf45=>_0x5ddf45[_0x372e2b(0x27f)]());}[_0x412fda(0x417)](){const _0x3931c8=_0x412fda;return G[_0x3931c8(0x34a)](this[_0x3931c8(0x1f0)][_0x3931c8(0x324)],this[_0x3931c8(0x1f0)]);}};ge=bt([ce(0x1,a[_0x412fda(0x22a)](G[_0x412fda(0x2cd)])),ce(0x2,a['Inject'](x)),ce(0x3,a[_0x412fda(0x22a)](a[_0x412fda(0x382)]))],ge);function Tt(_0x5ea37f){const _0x3033ac=_0x412fda,_0x3172a4=new Map();return _0x5ea37f[_0x3033ac(0x3e1)](_0x46732d=>{const _0x1f7f86=_0x3033ac;if(_0x3172a4['has'](_0x46732d[_0x1f7f86(0x2cb)])){const _0x37d508=_0x3172a4[_0x1f7f86(0x404)](_0x46732d[_0x1f7f86(0x2cb)]);_0x37d508[_0x1f7f86(0x27a)]+=',\x20'+_0x46732d[_0x1f7f86(0x27a)];}else _0x3172a4[_0x1f7f86(0x207)](_0x46732d[_0x1f7f86(0x2cb)],_0x46732d);}),Array['from'](_0x3172a4['values']());}var E=function(){const _0x59c45b=_0x412fda;return E=Object['assign']||function(_0x5adc1a){const _0x4b25a7=_0x3ec3;for(var _0x5d8802,_0x2a8e72=0x1,_0x3b2d96=arguments[_0x4b25a7(0x409)];_0x2a8e72<_0x3b2d96;_0x2a8e72++){_0x5d8802=arguments[_0x2a8e72];for(var _0x4a9066 in _0x5d8802)Object['prototype'][_0x4b25a7(0x22d)][_0x4b25a7(0x3ab)](_0x5d8802,_0x4a9066)&&(_0x5adc1a[_0x4a9066]=_0x5d8802[_0x4a9066]);}return _0x5adc1a;},E[_0x59c45b(0x2b6)](this,arguments);},Rt=function(_0x4cf415,_0x13a3f6){const _0x37db4e=_0x412fda;var _0x33b388={};for(var _0x4242d1 in _0x4cf415)Object['prototype'][_0x37db4e(0x22d)][_0x37db4e(0x3ab)](_0x4cf415,_0x4242d1)&&_0x13a3f6[_0x37db4e(0x378)](_0x4242d1)<0x0&&(_0x33b388[_0x4242d1]=_0x4cf415[_0x4242d1]);if(_0x4cf415!=null&&typeof Object['getOwnPropertySymbols']==_0x37db4e(0x3e0)){for(var _0x2fe2f0=0x0,_0x4242d1=Object['getOwnPropertySymbols'](_0x4cf415);_0x2fe2f0<_0x4242d1[_0x37db4e(0x409)];_0x2fe2f0++)_0x13a3f6[_0x37db4e(0x378)](_0x4242d1[_0x2fe2f0])<0x0&&Object[_0x37db4e(0x397)][_0x37db4e(0x288)][_0x37db4e(0x3ab)](_0x4cf415,_0x4242d1[_0x2fe2f0])&&(_0x33b388[_0x4242d1[_0x2fe2f0]]=_0x4cf415[_0x4242d1[_0x2fe2f0]]);}return _0x33b388;},be=M['forwardRef'](function(_0x1004d3,_0xe612de){const _0x53c3c9=_0x412fda;var _0x6c2cba=_0x1004d3[_0x53c3c9(0x408)],_0x394378=_0x1004d3['id'],_0x22451e=_0x1004d3['className'],_0x11d232=_0x1004d3[_0x53c3c9(0x36b)],_0x41830b=Rt(_0x1004d3,['icon','id','className',_0x53c3c9(0x36b)]),_0x1a22b9='univerjs-icon\x20univerjs-icon-'['concat'](_0x394378,'\x20')['concat'](_0x22451e||'')[_0x53c3c9(0x331)](),_0x1f68be=M[_0x53c3c9(0x279)]('_'[_0x53c3c9(0x32b)](Ut()));return ye(_0x6c2cba,''[_0x53c3c9(0x32b)](_0x394378),{'defIds':_0x6c2cba['defIds'],'idSuffix':_0x1f68be[_0x53c3c9(0x245)]},E({'ref':_0xe612de,'className':_0x1a22b9},_0x41830b),_0x11d232);});function _0x36d4(){const _0x401fab=['unitID','getDocRanges','m1Prime','_commandService','187790hgcIrv','fillStyle','SetTextSelectionsOperation','unit','/run/','_heartbeatTimer','sessionTicket','INTERNAL_ERROR','gold400','beginPath','concat','handleIRemoveCol','toDisposable','_saveTaskMap','OTHER_CLIENTS_EDITING','translate(.97)','trim','_setupSubUnitSync','UPDATE_CURSOR','Vector2','_drawAnchor','DeleteRangeMoveLeftCommandId','getRelativeToViewportCoord','_notificationService','NO_OTHER_CLIENTS_EDITING','@univerjs-pro/collaboration','none','UniverCollaborationClientUIPlugin','collabStatus.conflict','_handleHeartbeatEvent','delete','CollaborationUIEventId','LICENSE_EXPORT_SIZE_EXCEEDED','OnLineSingle','INotificationService','univer-flex\x20univer-items-center','stringify','getTypeOfUnitAdded$','min','Error','_eventUnsubscribe','getSheetObject','HTTPService','1022984GnRrAj','xlink:href','handleDeleteRangeMoveUp','random','YUUMI_SUBSCRIPTION_NOT_FOUND','Subject','_docTransformStateCacheService','removeParam','UNIVER_SHEET','_collaborationController','@univerjs/engine-render','_handleEvent','LICENSE_MAX_UNITS_EXCEEDED','_cachedData','purple300','_unitStatus','TRANSFORM_CHANGE_OBSERVABLE_TYPE','collabStatus.fetchMiss','transformStateCache','post','debounceTime','lineTo','debug','isTransformMutationFailure','currentTheme$','_getSessionTicket','handleInsertRow','_backgroundColor','subUnitId','_urlService','imageSourceType','extend','entries','Module','VIEW_MAIN','runId','Failed','getMember','takeUntil','_assignedColors','333hquhda','_drawRectRange','CollaborationEvent','params','indexOf','CollaborationDataLoaderController','@univerjs/sheets','setInterval','collaboration-client.offline-data-not-saved','_hovered','cursorInfo','registerDependencies','onStarting','_memberService','ThemeService','4337885MugYsI','@univerjs/ui','USERS_LEAVE','setAlpha','max','onlineStatusTitle','_syncEditingCollabCursorService','UniverIcon','fillText','getFocusedUnit','MessageType','_status$','getItem','InsertRangeMoveRightCommandId','defineProperty','setItem','INVALID_INVITE_CODE','transformMutation','activeSheet$','WECHAT_HAS_BEEN_BOUND','prototype','_lastPointer','verdancy600','_removeClearOtherTimer','loadUnit','onCommandExecuted','save','drawWith','SUBMIT_CHANGESET_TIMEOUT','add','loadOfflineData','round','MOBILE_HAS_BEEN_BOUND','CHANGESET_REVISION_CONFILICT','4367XfcWfH','fill','source','session.collaboration-timeout','currentColor','triggerDblclick','call','ICommandService','override','collabCursorState$','requireSession','MoveRangeCommandId','subunit','_doCreateSocket','_transformHistoryAndStateStack','getMemberID','_docSyncEditingCollabCursorService','UnitStatus','touchDependencies','getParam','univer-online-status','handleDeleteRangeMoveLeft','APPLY_PERMISSION_DENIED','SheetsSelectionsService','serializeRangeWithSheet','_updateCollabCursors','getActiveRange','TEXT_RANGE_LAYER_INDEX','OTHER_CLIENT_EDITING','_uiPartsService','RichTextEditingMutation','colorChannel1','subscribe','DesktopCollaborationStatusDisplayController','setTimeout','@univerjs-pro/collaboration-client','[CollaborationDataLoaderController]','getSheetId','key','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','ONLINE','hide','urlChange$','@univerjs/docs-ui','YUUMI_RATE_OVER_LIMIT','ColorKit','collaboration.single-unit.warning','_docSkeletonManagerService','COLORS','measureText','AWAITING','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','CollaborationUIEventService','_send','distinctUntilChanged','_hideTimer','IUIPartsService','DocIMEInputManagerService','displayName','function','forEach','updateOfflineData','1em','_messageService','_id','COMPLETION_FINISHED','uni.network.url-service','61500ZRfTYk','getActiveSheet','runOnServer','_scheduleHeartbeat','createElement','useDependency','transform','createInstance','range','RemoteUniscriptService','DocSkeletonManagerService','MUTATION','getUndoRedoMutationParamsCache','_imageIoService','0\x200\x2017\x2016','_createSocketURL','getVpScrollXYInfoByPosToVp','tag','_cursors','subscribeEvent','_init','restore','@univerjs/engine-formula','@univerjs/drawing','switchMap','skeleton','_range','CollaborationController','get','labelPosition','unitId','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','icon','length','RemoveRowCommandId','_getAnchorBounding','then','_configService','isArray','unshift','mapTo','executionId','disposeUnit','3liYEBr','dispose$','_saveCache','CollaborationSessionService','_getSheetObject','UNRECOGNIZED','MemberService','_collabCursorState$','_onCursorDelete','values','status$','runRefRangeMutations','svg','hovered','combineLatest','_localCacheService','saveImage','isTransformMutationsWithChangesetSuccess','debounce','undoState','UNIVER_DOC','_collabSessionService','pushState','_config','from','find','_hover','DataLoaderService','isActive','search','_session','_collaborationUIEventService','NOT_COLLAB','shareReplay','@univerjs/core','_name','_transformService','sessionStatus$','Disposable','getRangePointData','BuiltInUIPart','width','APPLY_REVISION_CONFILICT','getLocalCacheKey','getUnhiddenWorksheets','disableLocalCache','toStringTag','docStateChange$','toRgbString','_onRefRangeChange','_color','getSkeleton','collab-text-range-','transformIMECache','collabStatus.syncing','IRenderManagerService','RxDisposable','text','off-line-single_clip0_910_343','resize','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','fromEvent','univer-online-status-title','Shape','_draw','getUnitId','syncEditingCollabCursor','_logService','exhaustSavingTask','INVITE_CODE_ALREADY_BOUND','saveOfflineData','NodePositionConvertToRectRange','_document','endRow','M0\x200H16V16H0z','jiqing500','_online','_render','searchParams','use','_refreshCollabCursors','url(#off-line-single_clip0_910_343)','url(#$1','throttleTime','_initStatusComponent','SessionStatus','result','BehaviorSubject','_collabCursorController','INVITE_CODE_HAS_BEEN_UES','CollaborationStatusDisplay','ENSURE_SNAPSHOT_EXECUTION','bottom','CollaborationSocketService','_httpService','APPLY_REJECT','_refRangeService','_selfUnitIDs','merge','_clearOtherTimers','evenodd','_scheduleSaving','has','getUniverSheetInstance','_context','_colorAssignService','INVITE_CODE_REQUIRED','_disabled','toString','DOC_RANGE_TYPE','div','118578LWRlWc','Rect','transformRemoteChangeset','editingUnit','_updateURLWithCurrentState','parse','_docTransformSelectionsService','CONFLICT','code','HEADER_MENU','_registerDependencies','_scene','push','includes','SHEET_VIEWPORT_KEY','getUnitStatus$','set','with','redoState','show','RegularPolygon','APPLY_NON_SEQUENTIAL_REVISION','setConfig','unload','replaceState','APPLY_DUPLICATED','_getScale','FETCH_MISS','_roomMembers$','_initResize','handleInsertRangeMoveRight','setParam','transformMutationsWithChangeset','_transformUndoRedoStack','_shapes','Workbook','_initStatusListener','_initCommandExecutedListener','_localStorageService','...','_cursorInfo$','UniverInstanceType','_dataLoaderService','collaboration.closeRoom','PY_RUNTIME_SCRIPT_ERROR','DeleteRangeMoveUpCommandId','getCurrent','color','_getMergeRange','fillRule','roomMembers$','Inject','UNAUTHENTICATED','column','hasOwnProperty','contains','_docTransformIMECacheService','IMessageService','roomMembers','USER_NOT_INVITED_CODE','map','CollaborationStatus','DocStateChangeManagerService','doc.mutation.rich-text-editing','ILogService','_removeCollabCursors','#FFF','_initDependencies','startsWith','react/jsx-runtime','DocCollaborationEntity','collabStatus.offline','SetWorksheetActivateCommand','setShapeProps','makeDirty','_startDocCollabCursor','useCallback','red300','current','backgroundColor','_anchorDot','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','SNAPSHOT_HAS_BEEN_REMOVED','top','_drawTextRange','createSocket','_injector','font','history','type','NOT_FOUND','complete','JOIN_ROOM_FAILED','pipe','TEXT','PERMISSION_DENIED','RECT','idSuffix','DEFAULT_WS_SESSION_TICKET_URL','init','Plugin','EffectRefRangId','attrs','_onCursorUpdate','_entities','defIds','getRenderById','body','getTypeOfUnitDisposed$','error','@univerjs/network','connectInjector','assignAColorForMemberID','LocaleService','_ensureSubject','_initEvent','split','_localeService','LICENSE_DISTRO_REJECTED','getOwnPropertyDescriptor','url(#on-line-single_clip0_910_349)','_cursor','clearInterval','wsSessionTicketUrl','deepClone','event$','_docClipboardService','arc','getStateCache','_themeService','useRef','name','_transformPreviousActiveRange','OFFLINE','_colorIndex','_toggleOffline','dispose','newValue','_docSkeleton','addClipboardHook','setUndoRedoMutationParamsCache','forwardRef','mask','_handleHover','UNDEFINED','propertyIsEnumerable','IUniverInstanceService','startColumn','YUUMI_UNABLE_LOAD_URL','YUUMI_URL_COL_OUT_OF_RANGE','m2Prime','SNAPSHOT_INVALID_SNAPSHOT','IRemoteInstanceService','addObject','RefRangeService','6lYsnAw','LOGIN_FAILED','Rectangle','string','path','_scheduleClearOtherTimer','_instanceService','textRanges','replaceDocRanges','BrowserCollaborationSocketService','location','univer-online-status-icon','#fff','getSheetBySheetId','sheetID','CommandType','_textBubble','SetDocZoomRatioOperation','7044328cAZrEd','SOCKET_FAILED_RETRY','blue400','session.connection-failed','_renderManagerService','@univerjs/rpc','getCurrentUnitForType','@univerjs/docs','assign','univer-offline','_labelPosition','_toggleOnline','_beforeCloseService','Tools','registerComponent','getOffsetConfig','memberID','_sheetSkeletonManagerService','apply','cursorInfo$','executeCommand','CONNECTOR_DATA_TOO_LARGE','onPointerEnter$','FromArray','LOCAL_CACHE_INTERVAL','getCellPositionByOffset','transformSelections','asObservable','_entityInit$','@univerjs/design','all','_startSheetCollabCursor','findNodePositionByCharIndex','collab-text-anchor-','clearTimeout','INVALID_ARGUMENT','_registerRenderDependencies','registerRefRange','0\x200\x2016\x2016','selection','moveTo','SheetSkeletonManagerService','engine','1105920ERiXCh','mergeOverrideWithDependencies','disposeWithMe','mutations','permission.content','origin','getCurrentRevOfUnit','_docStateChangeManagerService','off-line-single','getValue','jsx','clipPath','handleInsertCol','DocSelectionManagerService','_cursorShapes','defs','_handleLeaveEvent','getCollabEntity$','OffLineSingle','_updateLocalCursor','_revisionService','next','href','Warning','ALREADY_EXISTS','@univerjs/sheets-ui','on-line-single_clip0_910_349','ILocalCacheService','ITransformService','filter','Injector','_unitOnClients','collabStatus.notCollab','ACTIVE_UNIT_EVENT_CHANNEL','onTransformChange$','session.will-retry','saveTaskMap','SYNCED','row','IConfigService','IDocClipboardService','pluginName','data','SOCKET_FAILED','entityInit$','size','_anchor','onlineStatus','onMouseMove','ranges','EMAIL_HAS_BEEN_BOUND','_setupBeforeClosingHandler','LOCAL_CACHE_INTERVAL_KEY','_updateSubUnitFromURLParams','replace','collab-client.tooltip.reconnect','_getSaveTimeout','on-line-single','RemoveColCommandId','getConfig','onPointerLeave$','black','registerRenderModule','WebURLService','Optional','getColor','TOO_MANY_REQUESTS','unsubscribe','getViewport','_univerInstanceService','rgba(255,\x20255,\x20255,\x200.01)','56ZbaEkm','reconnect','Unknown\x20user','ticket','onRendered','generateRandomId','LICENSE_IMPORT_SIZE_EXCEEDED'];_0x36d4=function(){return _0x401fab;};return _0x36d4();}function ye(_0x306f9b,_0x23e7ce,_0x109287,_0xe44f9e,_0x4271e9){const _0x5b36c9=_0x412fda;return M[_0x5b36c9(0x3ec)](_0x306f9b['tag'],E(E({'key':_0x23e7ce},Ot(_0x306f9b,_0x109287,_0x4271e9)),_0xe44f9e),(Dt(_0x306f9b,_0x109287)['children']||[])[_0x5b36c9(0x233)](function(_0x4dacdc,_0x5979c7){const _0x1c83b8=_0x5b36c9;return ye(_0x4dacdc,''[_0x1c83b8(0x32b)](_0x23e7ce,'-')[_0x1c83b8(0x32b)](_0x306f9b[_0x1c83b8(0x3f9)],'-')[_0x1c83b8(0x32b)](_0x5979c7),_0x109287,void 0x0,_0x4271e9);}));}function Ot(_0x313a76,_0x1957c9,_0x95459){const _0x1abf18=_0x412fda;var _0x1afc21=E({},_0x313a76[_0x1abf18(0x25d)]);_0x95459!=null&&_0x95459[_0x1abf18(0x3c4)]&&_0x1afc21[_0x1abf18(0x3a6)]===_0x1abf18(0x3c4)&&(_0x1afc21[_0x1abf18(0x3a6)]=_0x95459[_0x1abf18(0x3c4)]),_0x313a76[_0x1abf18(0x3f9)]==='mask'&&_0x1afc21['id']&&(_0x1afc21['id']=_0x1afc21['id']+_0x1957c9[_0x1abf18(0x258)]),Object[_0x1abf18(0x36c)](_0x1afc21)[_0x1abf18(0x3e1)](function(_0x4d3ba0){const _0xa666a9=_0x1abf18;var _0x18e771=_0x4d3ba0[0x0],_0x20770d=_0x4d3ba0[0x1];_0x18e771===_0xa666a9(0x285)&&typeof _0x20770d==_0xa666a9(0x295)&&(_0x1afc21[_0x18e771]=_0x20770d[_0xa666a9(0x305)](/url\(#(.*)\)/,_0xa666a9(0x1da)[_0xa666a9(0x32b)](_0x1957c9[_0xa666a9(0x258)],')')));});var _0x427468=_0x1957c9[_0x1abf18(0x260)];return!_0x427468||_0x427468[_0x1abf18(0x409)]===0x0||(_0x313a76['tag']===_0x1abf18(0x1d7)&&_0x1afc21['xlink:href']&&(_0x1afc21['xlink:href']=_0x1afc21[_0x1abf18(0x34d)]+_0x1957c9[_0x1abf18(0x258)]),Object[_0x1abf18(0x36c)](_0x1afc21)[_0x1abf18(0x3e1)](function(_0x4b9593){const _0x219ee3=_0x1abf18;var _0x583cc3=_0x4b9593[0x0],_0x3fb00f=_0x4b9593[0x1];typeof _0x3fb00f==_0x219ee3(0x295)&&(_0x1afc21[_0x583cc3]=_0x3fb00f[_0x219ee3(0x305)](/url\(#(.*)\)/,_0x219ee3(0x1da)[_0x219ee3(0x32b)](_0x1957c9[_0x219ee3(0x258)],')')));})),_0x1afc21;}function Dt(_0x304072,_0x2a17fb){const _0x23924d=_0x412fda;var _0x12743e,_0x2b0aa6=_0x2a17fb[_0x23924d(0x260)];return!_0x2b0aa6||_0x2b0aa6[_0x23924d(0x409)]===0x0?_0x304072:_0x304072[_0x23924d(0x3f9)]===_0x23924d(0x2de)&&(!((_0x12743e=_0x304072['children'])===null||_0x12743e===void 0x0)&&_0x12743e[_0x23924d(0x409)])?E(E({},_0x304072),{'children':_0x304072['children'][_0x23924d(0x233)](function(_0x2ce6f2){const _0x4a882b=_0x23924d;return typeof _0x2ce6f2[_0x4a882b(0x25d)]['id']==_0x4a882b(0x295)&&_0x2b0aa6&&_0x2b0aa6[_0x4a882b(0x378)](_0x2ce6f2[_0x4a882b(0x25d)]['id'])>-0x1?E(E({},_0x2ce6f2),{'attrs':E(E({},_0x2ce6f2[_0x4a882b(0x25d)]),{'id':_0x2ce6f2[_0x4a882b(0x25d)]['id']+_0x2a17fb[_0x4a882b(0x258)]})}):_0x2ce6f2;})}):_0x304072;}function Ut(){const _0x3cb568=_0x412fda;return Math[_0x3cb568(0x34f)]()[_0x3cb568(0x1f4)](0x24)['substring'](0x2,0x8);}be[_0x412fda(0x3df)]=_0x412fda(0x38a);var Nt={'tag':_0x412fda(0x41f),'attrs':{'fill':_0x412fda(0x33b),'viewBox':_0x412fda(0x2ca),'width':_0x412fda(0x3e3),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x412fda(0x1d9)},'children':[{'tag':_0x412fda(0x296),'attrs':{'stroke':'currentColor','d':_0x412fda(0x3cc),'strokeLinecap':_0x412fda(0x3a2),'strokeLinejoin':_0x412fda(0x3a2),'strokeWidth':1.2}}]},{'tag':_0x412fda(0x2de),'attrs':{},'children':[{'tag':_0x412fda(0x2da),'attrs':{'id':_0x412fda(0x1c2)},'children':[{'tag':'path','attrs':{'fill':_0x412fda(0x29e),'d':_0x412fda(0x1d2)}}]}]}],'defIds':[_0x412fda(0x1c2)]},$e=M[_0x412fda(0x284)](function(_0x97ae64,_0x2e95dc){const _0x27e58f=_0x412fda;return M[_0x27e58f(0x3ec)](be,Object[_0x27e58f(0x2ac)]({},_0x97ae64,{'id':_0x27e58f(0x2d7),'ref':_0x2e95dc,'icon':Nt}));});$e[_0x412fda(0x3df)]=_0x412fda(0x2e1);var Mt={'tag':_0x412fda(0x41f),'attrs':{'fill':_0x412fda(0x33b),'viewBox':_0x412fda(0x3f6),'width':_0x412fda(0x3e3),'height':_0x412fda(0x3e3)},'children':[{'tag':'g','attrs':{'clipPath':_0x412fda(0x26f)},'children':[{'tag':_0x412fda(0x296),'attrs':{'stroke':_0x412fda(0x3a9),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x412fda(0x3a2),'strokeLinejoin':_0x412fda(0x3a2),'strokeWidth':1.2}}]},{'tag':_0x412fda(0x2de),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x412fda(0x2e9)},'children':[{'tag':_0x412fda(0x296),'attrs':{'fill':_0x412fda(0x29e),'d':'M0\x200H16V16H0z','transform':_0x412fda(0x330)}}]}]}],'defIds':[_0x412fda(0x2e9)]},xe=M['forwardRef'](function(_0x5591a5,_0x3d26a5){const _0x3f37d7=_0x412fda;return M['createElement'](be,Object[_0x3f37d7(0x2ac)]({},_0x5591a5,{'id':_0x3f37d7(0x308),'ref':_0x3d26a5,'icon':Mt}));});xe['displayName']=_0x412fda(0x342);const Pt=_0x412fda(0x29d),Lt=_0x412fda(0x1c6),wt=_0x412fda(0x3b9),At='univer-online',yt=_0x412fda(0x2ad),H={'onlineStatusIcon':Pt,'onlineStatusTitle':Lt,'onlineStatus':wt,'online':At,'offline':yt};function $t(_0x225bbf){const _0x3d5fe9=_0x412fda;switch(_0x225bbf){case u[_0x3d5fe9(0x234)][_0x3d5fe9(0x27c)]:return _0x3d5fe9(0x23e);case u[_0x3d5fe9(0x234)][_0x3d5fe9(0x1fe)]:return _0x3d5fe9(0x33d);case u[_0x3d5fe9(0x234)][_0x3d5fe9(0x212)]:return _0x3d5fe9(0x35d);case u['CollaborationStatus'][_0x3d5fe9(0x433)]:return _0x3d5fe9(0x2ef);case u[_0x3d5fe9(0x234)][_0x3d5fe9(0x3d7)]:case u[_0x3d5fe9(0x234)]['AWAITING_WITH_PENDING']:return _0x3d5fe9(0x1be);case u[_0x3d5fe9(0x234)][_0x3d5fe9(0x2f4)]:case u['CollaborationStatus']['PENDING']:return'collabStatus.synced';}}function je(_0x181221){const _0xfe4a80=_0x412fda,{status$:_0x2ce2be}=_0x181221,_0x22548e=R['useObservable'](_0x2ce2be,u[_0xfe4a80(0x234)][_0xfe4a80(0x433)]),_0x373ba3=R[_0xfe4a80(0x3ed)](a['LocaleService']),_0x2d1ca7=R[_0xfe4a80(0x3ed)](u['CollaborationSessionService']),_0x5da7eb=_0x22548e!==u['CollaborationStatus']['OFFLINE'],_0x1b02c2=_0x373ba3['t']($t(_0x22548e)),_0x332fa6=T['clsx'](H[_0xfe4a80(0x2fe)],{[H['online']]:_0x5da7eb,[H['offline']]:!_0x5da7eb}),_0x23d019=_0x5da7eb?L[_0xfe4a80(0x2d9)](xe,{}):L[_0xfe4a80(0x2d9)]($e,{}),_0x47b978=M[_0xfe4a80(0x243)](()=>{const _0x18699f=_0xfe4a80;_0x5da7eb||_0x2d1ca7[_0x18699f(0x317)]();},[_0x5da7eb,_0x2d1ca7]);function _0xd1cd4b(){const _0x53afc3=_0xfe4a80;return L['jsxs'](_0x53afc3(0x1f6),{'className':T['clsx'](_0x332fa6,_0x53afc3(0x344)),'onClick':_0x47b978,'children':[L[_0x53afc3(0x2d9)](_0x53afc3(0x1f6),{'className':H['onlineStatusIcon'],'children':_0x23d019}),L['jsx']('div',{'className':H[_0x53afc3(0x388)],'children':_0x1b02c2})]});}return _0x5da7eb?_0xd1cd4b():L['jsx'](T['Tooltip'],{'title':_0x373ba3['t'](_0xfe4a80(0x306)),'children':_0xd1cd4b()});}var xt=Object['getOwnPropertyDescriptor'],jt=(_0x218e71,_0x463764,_0x5e3185,_0x422d74)=>{const _0x3606d3=_0x412fda;for(var _0x30815f=_0x422d74>0x1?void 0x0:_0x422d74?xt(_0x463764,_0x5e3185):_0x463764,_0x919bbf=_0x218e71[_0x3606d3(0x409)]-0x1,_0x19425e;_0x919bbf>=0x0;_0x919bbf--)(_0x19425e=_0x218e71[_0x919bbf])&&(_0x30815f=_0x19425e(_0x30815f)||_0x30815f);return _0x30815f;},X=(_0x177a51,_0x15bf0b)=>(_0x56d433,_0x6497d7)=>_0x15bf0b(_0x56d433,_0x6497d7,_0x177a51);exports[_0x412fda(0x3c6)]=class extends a['Disposable']{constructor(_0x4f1350,_0x173ec6,_0x43f391,_0x360add){const _0x149ba1=_0x412fda;super(),_(this,'_status$',new d['BehaviorSubject'](u['CollaborationStatus'][_0x149ba1(0x433)])),(this['_univerInstanceService']=_0x4f1350,this['_injector']=_0x173ec6,this[_0x149ba1(0x355)]=_0x43f391,this[_0x149ba1(0x3c2)]=_0x360add,this[_0x149ba1(0x1dc)](),this[_0x149ba1(0x21b)]());}['_initStatusListener'](){const _0x3b0a83=_0x412fda;this[_0x3b0a83(0x2d1)](this[_0x3b0a83(0x314)]['focused$'][_0x3b0a83(0x254)](d[_0x3b0a83(0x400)](()=>{const _0xa7eb5e=_0x3b0a83,_0x3ac436=this[_0xa7eb5e(0x314)][_0xa7eb5e(0x38c)]();return _0x3ac436?this[_0xa7eb5e(0x355)][_0xa7eb5e(0x2e0)](_0x3ac436[_0xa7eb5e(0x1c9)]()):d['of'](null);}),d[_0x3b0a83(0x400)](_0x596bf9=>_0x596bf9?_0x596bf9[_0x3b0a83(0x41d)]:d['of'](u[_0x3b0a83(0x234)][_0x3b0a83(0x433)])))['subscribe'](_0x46d1b6=>{const _0x36e1b8=_0x3b0a83;this['_status$'][_0x36e1b8(0x2e4)](_0x46d1b6);}));}[_0x412fda(0x1dc)](){const _0x5a4f85=_0x412fda;this['disposeWithMe'](this[_0x5a4f85(0x3c2)][_0x5a4f85(0x2b2)](R[_0x5a4f85(0x43b)][_0x5a4f85(0x200)],()=>R[_0x5a4f85(0x266)](Bt({'status$':this[_0x5a4f85(0x38e)]['asObservable']()}),this[_0x5a4f85(0x24d)])));}},exports[_0x412fda(0x3c6)]=jt([X(0x0,a[_0x412fda(0x289)]),X(0x1,a['Inject'](a['Injector'])),X(0x2,a['Inject'](u[_0x412fda(0x403)])),X(0x3,R[_0x412fda(0x3dd)])],exports[_0x412fda(0x3c6)]);function Bt(_0x33c2e1){const {status$:_0x431fd6}=_0x33c2e1;return function(){const _0x1a2ce1=_0x3ec3;return L[_0x1a2ce1(0x2d9)](je,{'status$':_0x431fd6});};}var kt=Object[_0x412fda(0x26e)],Ht=(_0x51a6d6,_0x4a37d4,_0x3bb85f,_0x791ce8)=>{const _0x568d38=_0x412fda;for(var _0x26ad71=_0x791ce8>0x1?void 0x0:_0x791ce8?kt(_0x4a37d4,_0x3bb85f):_0x4a37d4,_0x5ccb5f=_0x51a6d6[_0x568d38(0x409)]-0x1,_0x447494;_0x5ccb5f>=0x0;_0x5ccb5f--)(_0x447494=_0x51a6d6[_0x5ccb5f])&&(_0x26ad71=_0x447494(_0x26ad71)||_0x26ad71);return _0x26ad71;},y=(_0x36b712,_0x2b0dcf)=>(_0xa7fff0,_0x3f0e06)=>_0x2b0dcf(_0xa7fff0,_0x3f0e06,_0x36b712);let z=class extends a[_0x412fda(0x439)]{constructor(_0x16bd28,_0x4d9681,_0x3487b5,_0x193f11,_0x482165,_0x248f5d){const _0x3850d6=_0x412fda;super(),this[_0x3850d6(0x2b0)]=_0x16bd28,this[_0x3850d6(0x422)]=_0x4d9681,this[_0x3850d6(0x432)]=_0x3487b5,this['_messageService']=_0x193f11,this[_0x3850d6(0x338)]=_0x482165,this['_localeService']=_0x248f5d,this[_0x3850d6(0x302)](),this[_0x3850d6(0x26a)]();}[_0x412fda(0x302)](){const _0x405101=_0x412fda;this['disposeWithMe'](this[_0x405101(0x2b0)]['registerBeforeClose'](()=>{const _0x1c3446=_0x405101;if(this[_0x1c3446(0x422)][_0x1c3446(0x2f3)]['size'])return this[_0x1c3446(0x26c)]['t'](_0x1c3446(0x37c));}));}[_0x412fda(0x26a)](){const _0x10a3ae=_0x412fda;this['disposeWithMe'](this['_collaborationUIEventService'][_0x10a3ae(0x274)][_0x10a3ae(0x3c5)](_0xc93c3=>{const _0x43062f=_0x10a3ae;_0xc93c3['id']===u[_0x43062f(0x340)][_0x43062f(0x3c1)]&&this['_messageService'][_0x43062f(0x20a)]({'type':T[_0x43062f(0x38d)]['Warning'],'content':this['_localeService']['t'](_0x43062f(0x3d3))}),_0xc93c3['id']===u[_0x43062f(0x340)]['CLOSE_ROOM']&&this['_messageService'][_0x43062f(0x20a)]({'type':T['MessageType'][_0x43062f(0x2e6)],'content':this[_0x43062f(0x26c)]['t'](_0x43062f(0x222))}),_0xc93c3['id']===u[_0x43062f(0x340)]['PERMISSION_DENIED']&&this[_0x43062f(0x338)][_0x43062f(0x20a)]({'title':this[_0x43062f(0x26c)]['t']('permission.title'),'content':this[_0x43062f(0x26c)]['t'](_0x43062f(0x2d3)),'type':_0x43062f(0x264),'duration':0x0}),_0xc93c3['id']===u[_0x43062f(0x340)][_0x43062f(0x1fe)]&&this[_0x43062f(0x3e4)]['show']({'type':T[_0x43062f(0x38d)]['Error'],'content':this[_0x43062f(0x26c)]['t'](_0x43062f(0x222))+'('+_0xc93c3[_0x43062f(0x2f9)]+')'}),_0xc93c3['id']===u[_0x43062f(0x340)][_0x43062f(0x253)]&&this[_0x43062f(0x3e4)][_0x43062f(0x20a)]({'type':T[_0x43062f(0x38d)]['Warning'],'content':this['_localeService']['t'](_0xc93c3['data']||'')}),_0xc93c3['id']===u[_0x43062f(0x340)][_0x43062f(0x2a5)]&&this[_0x43062f(0x3e4)][_0x43062f(0x20a)]({'type':T['MessageType'][_0x43062f(0x2e6)],'content':this[_0x43062f(0x26c)]['t'](_0x43062f(0x2f2))}),_0xc93c3['id']===u[_0x43062f(0x340)][_0x43062f(0x2fa)]&&this[_0x43062f(0x3e4)][_0x43062f(0x20a)]({'type':T[_0x43062f(0x38d)][_0x43062f(0x348)],'content':this[_0x43062f(0x26c)]['t'](_0x43062f(0x2a7))}),_0xc93c3['id']===u[_0x43062f(0x340)][_0x43062f(0x39f)]&&this['_messageService'][_0x43062f(0x20a)]({'type':T['MessageType']['Error'],'content':this[_0x43062f(0x26c)]['t'](_0x43062f(0x3a8))});}));}};z=Ht([y(0x0,R['IBeforeCloseService']),y(0x1,u[_0x412fda(0x2ea)]),y(0x2,a[_0x412fda(0x22a)](u[_0x412fda(0x3d9)])),y(0x3,R[_0x412fda(0x230)]),y(0x4,R[_0x412fda(0x343)]),y(0x5,a['Inject'](a[_0x412fda(0x268)]))],z);const Wt='collaboration-client-ui.config',Ne={},Ee=a['createIdentifier'](_0x412fda(0x3e7));var Ft=Object[_0x412fda(0x26e)],Yt=(_0x2ef031,_0x49a296,_0x20ebc5,_0x529344)=>{const _0x4ea9ac=_0x412fda;for(var _0x2165d1=_0x529344>0x1?void 0x0:_0x529344?Ft(_0x49a296,_0x20ebc5):_0x49a296,_0x1fb365=_0x2ef031[_0x4ea9ac(0x409)]-0x1,_0x479ca9;_0x1fb365>=0x0;_0x1fb365--)(_0x479ca9=_0x2ef031[_0x1fb365])&&(_0x2165d1=_0x479ca9(_0x2165d1)||_0x2165d1);return _0x2165d1;},W=(_0x3751b1,_0x337205)=>(_0xadd61d,_0x55da8f)=>_0x337205(_0xadd61d,_0x55da8f,_0x3751b1);exports[_0x412fda(0x379)]=class extends a[_0x412fda(0x1c0)]{constructor(_0x6d1963,_0x331638,_0x414e2a,_0x42e792,_0x5d4f71){const _0x35b37c=_0x412fda;super(),this[_0x35b37c(0x369)]=_0x6d1963,this['_logService']=_0x331638,this[_0x35b37c(0x320)]=_0x414e2a,this['_dataLoaderService']=_0x42e792,_0x5d4f71?_0x5d4f71==null||_0x5d4f71['whenReady']()[_0x35b37c(0x40c)](()=>this[_0x35b37c(0x3fc)]()):(this['_logService']['debug']('[CollaborationDataLoaderController]',_0x35b37c(0x407)),this[_0x35b37c(0x3fc)]());}async[_0x412fda(0x3fc)](){const _0x3a631b=_0x412fda,_0xcadea4=this['_urlService']['getParam']('unit'),_0xbeccc0=this[_0x3a631b(0x369)][_0x3a631b(0x3b8)](_0x3a631b(0x250)),_0x1b5b3b=this[_0x3a631b(0x369)][_0x3a631b(0x3b8)](_0x3a631b(0x3b1));if(!_0xcadea4||!_0xbeccc0){this[_0x3a631b(0x1cb)][_0x3a631b(0x362)](_0x3a631b(0x3c9),_0x3a631b(0x248));return;}const _0x116786=await this[_0x3a631b(0x221)][_0x3a631b(0x39b)](_0xcadea4,Number(_0xbeccc0),_0x1b5b3b);_0x116786&&_0x116786 instanceof a[_0x3a631b(0x21a)]&&this[_0x3a631b(0x332)](_0x116786);}async[_0x412fda(0x332)](_0x39d8f9){const _0x39a20e=_0x412fda;await this[_0x39a20e(0x304)](_0x39d8f9),_0x39d8f9[_0x39a20e(0x395)][_0x39a20e(0x254)](d[_0x39a20e(0x372)](this[_0x39a20e(0x414)]))[_0x39a20e(0x3c5)](_0x1f2736=>{const _0x41d51b=_0x39a20e;_0x1f2736&&this[_0x41d51b(0x1fb)](_0x1f2736);}),this[_0x39a20e(0x369)]['urlChange$'][_0x39a20e(0x254)](d[_0x39a20e(0x372)](this[_0x39a20e(0x414)]))['subscribe'](()=>this[_0x39a20e(0x304)](_0x39d8f9));}['_updateURLWithCurrentState'](_0x206a1f,_0x49f9db=!0x1){const _0x3b697d=_0x412fda,_0x514319=this[_0x3b697d(0x369)][_0x3b697d(0x3b8)](_0x3b697d(0x3b1));_0x206a1f[_0x3b697d(0x3ca)]()!==_0x514319&&this[_0x3b697d(0x369)][_0x3b697d(0x216)]('subunit',_0x206a1f[_0x3b697d(0x3ca)](),_0x49f9db);}async[_0x412fda(0x304)](_0x2654bc){const _0x4a00c5=_0x412fda;var _0x6e0a98;const _0x2dd3b2=this[_0x4a00c5(0x369)][_0x4a00c5(0x3b8)](_0x4a00c5(0x3b1));if(!_0x2dd3b2||!_0x2654bc[_0x4a00c5(0x29f)](_0x2dd3b2)){const _0x58c0b3=_0x2654bc[_0x4a00c5(0x43f)]()[0x0],_0x21a734=_0x2654bc['getSheetBySheetId'](_0x58c0b3);if(!_0x21a734)return;this['_updateURLWithCurrentState'](_0x21a734,!0x0),await this[_0x4a00c5(0x320)][_0x4a00c5(0x2b8)](g[_0x4a00c5(0x23f)]['id'],{'unitId':_0x2654bc[_0x4a00c5(0x1c9)](),'subUnitId':_0x58c0b3});return;}((_0x6e0a98=_0x2654bc[_0x4a00c5(0x3e9)]())==null?void 0x0:_0x6e0a98[_0x4a00c5(0x3ca)]())!==_0x2dd3b2&&await this[_0x4a00c5(0x320)][_0x4a00c5(0x2b8)](g[_0x4a00c5(0x23f)]['id'],{'unitId':_0x2654bc['getUnitId'](),'subUnitId':_0x2dd3b2});}},exports[_0x412fda(0x379)]=Yt([W(0x0,Ee),W(0x1,a['ILogService']),W(0x2,a['ICommandService']),W(0x3,a['Inject'](u[_0x412fda(0x42e)])),W(0x4,a[_0x412fda(0x30f)](Ke[_0x412fda(0x28f)]))],exports['CollaborationDataLoaderController']);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x5df682,_0x501310,_0x10f3a3,_0x17ffd0)=>{for(var _0x31f165=_0x17ffd0>0x1?void 0x0:_0x17ffd0?Vt(_0x501310,_0x10f3a3):_0x501310,_0x4a3eaf=_0x5df682['length']-0x1,_0x1603d5;_0x4a3eaf>=0x0;_0x4a3eaf--)(_0x1603d5=_0x5df682[_0x4a3eaf])&&(_0x31f165=_0x1603d5(_0x31f165)||_0x31f165);return _0x31f165;},le=(_0x426a7f,_0x386fe3)=>(_0x3aba34,_0x45ec32)=>_0x386fe3(_0x3aba34,_0x45ec32,_0x426a7f);let J=class{constructor(_0x4c53df,_0x4b4ac3,_0xc8cc0c){const _0x318ecb=_0x412fda;this[_0x318ecb(0x24d)]=_0x4c53df,this['_transformService']=_0x4b4ac3,this[_0x318ecb(0x2a8)]=_0xc8cc0c;}[_0x412fda(0x1bd)](_0x1469db){const _0x32450f=_0x412fda;this[_0x32450f(0x218)](_0x1469db),this[_0x32450f(0x27b)](_0x1469db);}[_0x412fda(0x1f9)](_0x11c602){const _0x5326c9=_0x412fda,{unitID:_0x4a8d64}=_0x11c602,_0x55b8ac=this[_0x5326c9(0x2a8)]['getRenderById'](_0x4a8d64)[_0x5326c9(0x208)](b[_0x5326c9(0x3de)]),{redoCache:_0x5526a3}=_0x55b8ac[_0x5326c9(0x3f4)]();if(_0x5526a3[_0x5326c9(0x409)]===0x0)return _0x11c602;let _0x2d2b36=a[_0x5326c9(0x2b1)][_0x5326c9(0x273)](_0x11c602[_0x5326c9(0x2d2)][0x0]);for(let _0x3dd057=0x0;_0x3dd057<_0x5526a3[_0x5326c9(0x409)];_0x3dd057++){const _0x1af158={'id':_0x5326c9(0x236),'params':{..._0x5526a3[_0x3dd057]}},_0x396365=this[_0x5326c9(0x437)][_0x5326c9(0x394)](_0x2d2b36,_0x1af158,!0x1);if(m[_0x5326c9(0x363)](_0x396365))throw _0x396365[_0x5326c9(0x264)];_0x2d2b36=_0x396365[_0x5326c9(0x31f)];}return{...a[_0x5326c9(0x2b1)]['deepClone'](_0x11c602),'mutations':[_0x2d2b36]};}[_0x412fda(0x218)](_0x4ebef9){const _0x22336f=_0x412fda,{unitID:_0x18fa7d}=_0x4ebef9,_0x2946cf=this[_0x22336f(0x2a8)]['getRenderById'](_0x18fa7d)[_0x22336f(0x208)](b['DocIMEInputManagerService']),{undoCache:_0x4825e1,redoCache:_0x224513}=_0x2946cf['getUndoRedoMutationParamsCache']();if(_0x4825e1['length']===0x0||_0x224513[_0x22336f(0x409)]===0x0)return;const _0x40d557=[],_0x455760=[];let _0x57d191=a['Tools']['deepClone'](_0x4ebef9[_0x22336f(0x2d2)][0x0]),_0x58c30a=a['Tools'][_0x22336f(0x273)](_0x4ebef9[_0x22336f(0x2d2)][0x0]);for(let _0x2e3a94=_0x4825e1[_0x22336f(0x409)]-0x1;_0x2e3a94>=0x0;_0x2e3a94--){const _0x4b1250={'id':_0x22336f(0x236),'params':{..._0x4825e1[_0x2e3a94]}},_0x316d74={'id':_0x22336f(0x236),'params':{..._0x224513[_0x2e3a94]}},_0x3cecb7=this[_0x22336f(0x437)][_0x22336f(0x394)](_0x57d191,_0x4b1250,!0x1),_0x404815=this[_0x22336f(0x437)][_0x22336f(0x394)](_0x58c30a,_0x316d74,!0x1);if(m[_0x22336f(0x363)](_0x3cecb7))throw _0x3cecb7[_0x22336f(0x264)];if(m['isTransformMutationFailure'](_0x404815))throw _0x404815[_0x22336f(0x264)];_0x40d557['unshift'](_0x3cecb7[_0x22336f(0x28d)]['params']),_0x455760['unshift'](_0x404815[_0x22336f(0x28d)][_0x22336f(0x377)]),_0x57d191=_0x3cecb7[_0x22336f(0x31f)],_0x58c30a=_0x404815[_0x22336f(0x31f)];}_0x2946cf[_0x22336f(0x283)]({'undoCache':_0x40d557,'redoCache':_0x455760});}[_0x412fda(0x27b)](_0x4a9511){const _0xc6825f=_0x412fda,{unitID:_0x1b0ebd}=_0x4a9511,_0x3439ac=this[_0xc6825f(0x2a8)][_0xc6825f(0x261)](_0x1b0ebd)[_0xc6825f(0x208)](b['DocIMEInputManagerService']),_0x512c2e=_0x3439ac[_0xc6825f(0x3bf)]();if(_0x512c2e==null)return;const _0x35cd6f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4a9511[_0xc6825f(0x31d)],'actions':null,'textRanges':[_0x512c2e]}}],_0x4732ff=this[_0xc6825f(0x437)][_0xc6825f(0x217)](_0x4a9511,_0x35cd6f);if(!m[_0xc6825f(0x424)](_0x4732ff))throw _0x4732ff['error'];const _0x5322d0=_0x4732ff[_0xc6825f(0x28d)][0x0][_0xc6825f(0x377)][_0xc6825f(0x299)];Array[_0xc6825f(0x40e)](_0x5322d0)&&_0x5322d0['length']&&_0x3439ac['setActiveRange'](_0x5322d0[0x0]);}};J=Xt([le(0x0,a[_0x412fda(0x22a)](a[_0x412fda(0x2ed)])),le(0x1,m[_0x412fda(0x2eb)]),le(0x2,p['IRenderManagerService'])],J);var Gt=Object[_0x412fda(0x26e)],qt=(_0x2081d9,_0x19f164,_0x51b9a7,_0x36fcab)=>{for(var _0x4b02fc=_0x36fcab>0x1?void 0x0:_0x36fcab?Gt(_0x19f164,_0x51b9a7):_0x19f164,_0x5ea40e=_0x2081d9['length']-0x1,_0x326613;_0x5ea40e>=0x0;_0x5ea40e--)(_0x326613=_0x2081d9[_0x5ea40e])&&(_0x4b02fc=_0x326613(_0x4b02fc)||_0x4b02fc);return _0x4b02fc;},_e=(_0x5a2be4,_0x5a9c94)=>(_0x498c25,_0x2e2c19)=>_0x5a9c94(_0x498c25,_0x2e2c19,_0x5a2be4);let Z=class{constructor(_0x25a5b5,_0x25bf43,_0x259d14){const _0x48f86d=_0x412fda;this[_0x48f86d(0x24d)]=_0x25a5b5,this['_transformService']=_0x25bf43,this[_0x48f86d(0x2d6)]=_0x259d14;}[_0x412fda(0x35e)](_0x247d59){const _0x5a0cb4=_0x412fda;this[_0x5a0cb4(0x3b3)](_0x247d59);}[_0x412fda(0x1f9)](_0xb99e6c){const _0x85ee47=_0x412fda,{unitID:_0xa58d5b}=_0xb99e6c,{collaboration:_0x3dc975}=this['_docStateChangeManagerService'][_0x85ee47(0x277)](_0xa58d5b);if(_0x3dc975[_0x85ee47(0x409)]===0x0)return _0xb99e6c;let _0x4b7a29=a[_0x85ee47(0x2b1)][_0x85ee47(0x273)](_0xb99e6c[_0x85ee47(0x2d2)][0x0]);for(let _0x1dadbe=0x0;_0x1dadbe<_0x3dc975[_0x85ee47(0x409)];_0x1dadbe++){const _0x107571={'id':_0x85ee47(0x236),'params':{'unitId':_0x3dc975[_0x1dadbe][_0x85ee47(0x406)],..._0x3dc975[_0x1dadbe]['redoState']}},_0x317a59=this[_0x85ee47(0x437)][_0x85ee47(0x394)](_0x4b7a29,_0x107571,!0x1);if(m['isTransformMutationFailure'](_0x317a59))throw _0x317a59['error'];_0x4b7a29=_0x317a59['m1Prime'];}return{...a[_0x85ee47(0x2b1)]['deepClone'](_0xb99e6c),'mutations':[_0x4b7a29]};}[_0x412fda(0x3b3)](_0x5f4b9b){const _0x42bff0=_0x412fda,{unitID:_0x4425db}=_0x5f4b9b,{history:_0x105c2d,collaboration:_0x26545d}=this['_docStateChangeManagerService']['getStateCache'](_0x4425db);if(_0x105c2d[_0x42bff0(0x409)]===0x0&&_0x26545d[_0x42bff0(0x409)]===0x0)return;const _0x3f176d=[],_0x3a1f9a=[];let _0x20a726=a['Tools']['deepClone'](_0x5f4b9b[_0x42bff0(0x2d2)][0x0]),_0x38bee0=a[_0x42bff0(0x2b1)][_0x42bff0(0x273)](_0x5f4b9b[_0x42bff0(0x2d2)][0x0]);for(let _0x27cc09=_0x105c2d[_0x42bff0(0x409)]-0x1;_0x27cc09>=0x0;_0x27cc09--){const _0x39dcc4={'id':_0x42bff0(0x236),'params':{'unitId':_0x105c2d[_0x27cc09][_0x42bff0(0x406)],..._0x105c2d[_0x27cc09][_0x42bff0(0x426)]}},_0x2cb1e3={'id':_0x42bff0(0x236),'params':{'unitId':_0x105c2d[_0x27cc09][_0x42bff0(0x406)],..._0x105c2d[_0x27cc09][_0x42bff0(0x209)]}},_0x2d49f0=this[_0x42bff0(0x437)]['transformMutation'](_0x20a726,_0x39dcc4,!0x1),_0x2151a9=this[_0x42bff0(0x437)][_0x42bff0(0x394)](_0x38bee0,_0x2cb1e3,!0x1);if(m[_0x42bff0(0x363)](_0x2d49f0))throw _0x2d49f0['error'];if(m[_0x42bff0(0x363)](_0x2151a9))throw _0x2151a9[_0x42bff0(0x264)];_0x3f176d[_0x42bff0(0x40f)]({..._0x105c2d[_0x27cc09],'undoState':_0x2d49f0[_0x42bff0(0x28d)][_0x42bff0(0x377)],'redoState':_0x2151a9[_0x42bff0(0x28d)][_0x42bff0(0x377)]}),_0x20a726=_0x2d49f0[_0x42bff0(0x31f)],_0x38bee0=_0x2151a9[_0x42bff0(0x31f)];}_0x20a726=a[_0x42bff0(0x2b1)][_0x42bff0(0x273)](_0x5f4b9b[_0x42bff0(0x2d2)][0x0]),_0x38bee0=a[_0x42bff0(0x2b1)][_0x42bff0(0x273)](_0x5f4b9b['mutations'][0x0]);for(let _0x2cc3e0=_0x26545d['length']-0x1;_0x2cc3e0>=0x0;_0x2cc3e0--){const _0x1dcc08={'id':_0x42bff0(0x236),'params':{'unitId':_0x26545d[_0x2cc3e0][_0x42bff0(0x406)],..._0x26545d[_0x2cc3e0][_0x42bff0(0x426)]}},_0x5430b9={'id':_0x42bff0(0x236),'params':{'unitId':_0x26545d[_0x2cc3e0][_0x42bff0(0x406)],..._0x26545d[_0x2cc3e0]['redoState']}},_0x47c7b6=this[_0x42bff0(0x437)]['transformMutation'](_0x20a726,_0x1dcc08,!0x1),_0x3d4619=this['_transformService']['transformMutation'](_0x38bee0,_0x5430b9,!0x1);if(m[_0x42bff0(0x363)](_0x47c7b6))throw _0x47c7b6[_0x42bff0(0x264)];if(m[_0x42bff0(0x363)](_0x3d4619))throw _0x3d4619[_0x42bff0(0x264)];_0x3a1f9a['unshift']({..._0x26545d[_0x2cc3e0],'undoState':_0x47c7b6[_0x42bff0(0x28d)][_0x42bff0(0x377)],'redoState':_0x3d4619['m2Prime'][_0x42bff0(0x377)]}),_0x20a726=_0x47c7b6[_0x42bff0(0x31f)],_0x38bee0=_0x3d4619[_0x42bff0(0x31f)];}this[_0x42bff0(0x2d6)]['setStateCache'](_0x4425db,{'history':_0x3f176d,'collaboration':_0x3a1f9a});}};Z=qt([_e(0x0,a[_0x412fda(0x22a)](a['Injector'])),_e(0x1,m[_0x412fda(0x2eb)]),_e(0x2,a[_0x412fda(0x22a)](b[_0x412fda(0x235)]))],Z);var Kt=Object[_0x412fda(0x26e)],zt=(_0x1a66cc,_0x5f4b88,_0x46ef42,_0x50646c)=>{const _0x518076=_0x412fda;for(var _0x29af19=_0x50646c>0x1?void 0x0:_0x50646c?Kt(_0x5f4b88,_0x46ef42):_0x5f4b88,_0x38407c=_0x1a66cc[_0x518076(0x409)]-0x1,_0x3e17a9;_0x38407c>=0x0;_0x38407c--)(_0x3e17a9=_0x1a66cc[_0x38407c])&&(_0x29af19=_0x3e17a9(_0x29af19)||_0x29af19);return _0x29af19;},Me=(_0x119694,_0x3f932a)=>(_0x2527d7,_0x40b790)=>_0x3f932a(_0x2527d7,_0x40b790,_0x119694);let Q=class{constructor(_0x5010e0,_0x347dc4){const _0xe86193=_0x412fda;this[_0xe86193(0x24d)]=_0x5010e0,this[_0xe86193(0x437)]=_0x347dc4;}[_0x412fda(0x2be)](_0x3f014e){const _0x198d11=_0x412fda;var _0x1fe28e;const _0x272360=this[_0x198d11(0x24d)][_0x198d11(0x404)](Y[_0x198d11(0x2dc)]),_0x191b61=(_0x1fe28e=_0x272360[_0x198d11(0x31e)]())!=null?_0x1fe28e:[];if(_0x191b61['length']===0x0)return;const _0x48ebcc=_0x3f014e[_0x198d11(0x31d)],_0x5dd77a=[{'id':_0x198d11(0x236),'params':{'unitId':_0x48ebcc,'actions':null,'textRanges':_0x191b61}}],_0x5c2a4d=this[_0x198d11(0x437)][_0x198d11(0x217)](_0x3f014e,_0x5dd77a);if(!m[_0x198d11(0x424)](_0x5c2a4d))throw _0x5c2a4d[_0x198d11(0x264)];const _0x52385a=_0x5c2a4d[_0x198d11(0x28d)][0x0][_0x198d11(0x377)][_0x198d11(0x299)];Array[_0x198d11(0x40e)](_0x52385a)&&_0x52385a[_0x198d11(0x409)]&&_0x272360[_0x198d11(0x29a)](_0x52385a,{'unitId':_0x48ebcc,'subUnitId':_0x48ebcc},!0x1);}};Q=zt([Me(0x0,a[_0x412fda(0x22a)](a['Injector'])),Me(0x1,m[_0x412fda(0x2eb)])],Q);var Jt=Object[_0x412fda(0x26e)],Zt=(_0x281472,_0x2daf18,_0x596493,_0x29cfcd)=>{const _0x148360=_0x412fda;for(var _0x19d063=_0x29cfcd>0x1?void 0x0:_0x29cfcd?Jt(_0x2daf18,_0x596493):_0x2daf18,_0x5dae34=_0x281472[_0x148360(0x409)]-0x1,_0x316026;_0x5dae34>=0x0;_0x5dae34--)(_0x316026=_0x281472[_0x5dae34])&&(_0x19d063=_0x316026(_0x19d063)||_0x19d063);return _0x19d063;},N=(_0x12bffe,_0x447007)=>(_0x268377,_0xf231c6)=>_0x447007(_0x268377,_0xf231c6,_0x12bffe);let ee=class extends a[_0x412fda(0x439)]{constructor(_0x1ff9bd,_0x29cd87,_0x40414c,_0x5be7ef,_0x396812,_0x4f0f10,_0x587e16,_0x41a833){const _0x3dbfc3=_0x412fda;super(),_(this,'_status$',new d[(_0x3dbfc3(0x1df))](u[_0x3dbfc3(0x234)][_0x3dbfc3(0x433)])),(this[_0x3dbfc3(0x2d6)]=_0x1ff9bd,this[_0x3dbfc3(0x355)]=_0x29cd87,this['_docTransformIMECacheService']=_0x40414c,this[_0x3dbfc3(0x352)]=_0x5be7ef,this['_docTransformSelectionsService']=_0x396812,this[_0x3dbfc3(0x3b5)]=_0x4f0f10,this[_0x3dbfc3(0x3e4)]=_0x587e16,this[_0x3dbfc3(0x26c)]=_0x41a833,this['_initEntityListener']());}['_initEntityListener'](){const _0x3b0ba8=_0x412fda;this[_0x3b0ba8(0x2d1)](this[_0x3b0ba8(0x355)][_0x3b0ba8(0x2fb)][_0x3b0ba8(0x3c5)](_0x42d07b=>{const _0x286338=_0x3b0ba8,_0x2c4d64=this['_docStateChangeManagerService'][_0x286338(0x442)][_0x286338(0x3c5)](_0x1c3b76=>{const _0x46890f=_0x286338;if(_0x1c3b76==null)return;const {unitId:_0x23f4bb,redoState:_0x542bb4,commandId:_0x2971f0}=_0x1c3b76;if(_0x23f4bb!==_0x42d07b[_0x46890f(0x31d)])return;const _0x2f39a6={'id':_0x2971f0,'type':a[_0x46890f(0x2a1)][_0x46890f(0x3f3)],'params':{'unitId':_0x23f4bb,'actions':_0x542bb4['actions'],'textRanges':null}};_0x42d07b['onLocalMutation'](_0x2f39a6);});if(_0x42d07b[_0x286338(0x2d1)](_0x2c4d64),_0x42d07b instanceof u[_0x286338(0x23d)]){const _0x5aa037={'onTransformIME':_0x488cb1=>this[_0x286338(0x22f)][_0x286338(0x1bd)](_0x488cb1),'onTransformState':_0x5c00f1=>this['_docTransformStateCacheService'][_0x286338(0x35e)](_0x5c00f1),'onTransformSelections':_0xa09864=>this[_0x286338(0x1fd)][_0x286338(0x2be)](_0xa09864),'onSyncEditingCollabCursor':_0x1c5802=>this[_0x286338(0x3b5)][_0x286338(0x1ca)](_0x1c5802),'onTransformRemoteChangesetByIMECache':_0x39f64f=>this['_docTransformIMECacheService'][_0x286338(0x1f9)](_0x39f64f),'onTransformRemoteChangesetByStateCache':_0x416ef9=>this[_0x286338(0x352)][_0x286338(0x1f9)](_0x416ef9)};_0x42d07b['addHandlerCallback'](_0x5aa037);}}));}};ee=Zt([N(0x0,a['Inject'](b[_0x412fda(0x235)])),N(0x1,a['Inject'](u[_0x412fda(0x403)])),N(0x2,a[_0x412fda(0x22a)](J)),N(0x3,a[_0x412fda(0x22a)](Z)),N(0x4,a[_0x412fda(0x22a)](Q)),N(0x5,a['Inject'](pe)),N(0x6,R[_0x412fda(0x230)]),N(0x7,a[_0x412fda(0x22a)](a[_0x412fda(0x268)]))],ee);var Qt=Object[_0x412fda(0x26e)],es=(_0x44a6f4,_0x238e0f,_0x282750,_0x4af94e)=>{for(var _0x4f76e2=_0x4af94e>0x1?void 0x0:_0x4af94e?Qt(_0x238e0f,_0x282750):_0x238e0f,_0x41cad8=_0x44a6f4['length']-0x1,_0x52a890;_0x41cad8>=0x0;_0x41cad8--)(_0x52a890=_0x44a6f4[_0x41cad8])&&(_0x4f76e2=_0x52a890(_0x4f76e2)||_0x4f76e2);return _0x4f76e2;},he=(_0x2c6558,_0x565444)=>(_0x5f1450,_0x39c83b)=>_0x565444(_0x5f1450,_0x39c83b,_0x2c6558);let me=class extends a[_0x412fda(0x439)]{constructor(_0x5a36cf,_0xbb0a47,_0x40ebeb){const _0xeb8b08=_0x412fda;super(),_(this,'_cachedData',new Map()),_(this,_0xeb8b08(0x32e),new Map()),_(this,_0xeb8b08(0x1f3),!0x1),(this[_0xeb8b08(0x40d)]=_0x5a36cf,this['_localStorageService']=_0xbb0a47,this[_0xeb8b08(0x2e3)]=_0x40ebeb);}[_0x412fda(0x440)](){const _0x26ef20=_0x412fda;this[_0x26ef20(0x1f3)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}get[_0x412fda(0x2f3)](){return this['_saveTaskMap'];}[_0x412fda(0x27f)](){const _0x10afb3=_0x412fda;this[_0x10afb3(0x1cc)]()[_0x10afb3(0x40c)](()=>super[_0x10afb3(0x27f)]());}async[_0x412fda(0x3a1)](_0x5cd706){const _0x523412=_0x412fda;return this['_disabled']?null:this[_0x523412(0x21d)][_0x523412(0x38f)](u['getLocalCacheKey'](_0x5cd706));}async[_0x412fda(0x1ce)](_0x56c851,_0xe1717){const _0x3198e0=_0x412fda;return!!this['_localStorageService'][_0x3198e0(0x392)](_0x56c851,_0xe1717);}[_0x412fda(0x3e2)](_0x207546,_0x106c04,_0x2481f2,_0xc58ea){const _0x5ebd25=_0x412fda,_0x2b625e=this[_0x5ebd25(0x2e3)][_0x5ebd25(0x2d5)](_0x207546);this[_0x5ebd25(0x359)][_0x5ebd25(0x207)](_0x207546,{'unitID':_0x207546,'type':_0x106c04,'awaitingChangeset':_0x2481f2,'mutations':_0xc58ea,'rev':_0x2b625e}),this[_0x5ebd25(0x32e)][_0x5ebd25(0x1ee)](_0x207546)||this[_0x5ebd25(0x1ed)](_0x207546);}[_0x412fda(0x1ed)](_0x5f0307){const _0x2ca12d=_0x412fda,_0x54e4cc=this[_0x2ca12d(0x307)]();_0x54e4cc===0x0?this[_0x2ca12d(0x415)](_0x5f0307):this[_0x2ca12d(0x32e)][_0x2ca12d(0x207)](_0x5f0307,setTimeout(()=>this[_0x2ca12d(0x415)](_0x5f0307),_0x54e4cc));}[_0x412fda(0x307)](){const _0x5969b7=_0x412fda;var _0x3a4f2d;return(_0x3a4f2d=this[_0x5969b7(0x40d)][_0x5969b7(0x30a)](u[_0x5969b7(0x303)]))!=null?_0x3a4f2d:u[_0x5969b7(0x2bc)];}[_0x412fda(0x415)](_0xe2537d){const _0x257dbc=_0x412fda,_0x575553=this['_saveTaskMap']['get'](_0xe2537d);return _0x575553!==void 0x0&&window[_0x257dbc(0x2c6)](_0x575553),this[_0x257dbc(0x21d)]['setItem'](u[_0x257dbc(0x43e)](_0xe2537d),this[_0x257dbc(0x359)][_0x257dbc(0x404)](_0xe2537d))['then'](()=>this[_0x257dbc(0x32e)][_0x257dbc(0x33f)](_0xe2537d));}async[_0x412fda(0x1cc)](){const _0x5d26f9=_0x412fda,_0x3c5a52=[];this[_0x5d26f9(0x32e)][_0x5d26f9(0x3e1)]((_0x24be96,_0x44e812)=>{const _0x521fdb=_0x5d26f9;window[_0x521fdb(0x2c6)](_0x24be96),_0x3c5a52[_0x521fdb(0x203)](this[_0x521fdb(0x415)](_0x44e812)[_0x521fdb(0x40c)](()=>{const _0x2e3a68=_0x521fdb;this[_0x2e3a68(0x32e)]['delete'](_0x44e812);}));}),await Promise[_0x5d26f9(0x2c2)](_0x3c5a52);}};me=es([he(0x0,a[_0x412fda(0x2f6)]),he(0x1,a['ILocalStorageService']),he(0x2,a[_0x412fda(0x22a)](m['RevisionService']))],me);class Be extends a[_0x412fda(0x1c0)]{constructor(){const _0x4eefb0=_0x412fda;super(),_(this,_0x4eefb0(0x3cf)),this[_0x4eefb0(0x3cf)]=d[_0x4eefb0(0x1c5)](window,'popstate')[_0x4eefb0(0x254)](d['takeUntil'](this[_0x4eefb0(0x414)]),d[_0x4eefb0(0x434)](0x1),d[_0x4eefb0(0x410)](void 0x0));}[_0x412fda(0x216)](_0x380e60,_0x4cf05c,_0x4b91be=!0x1){const _0x23aa18=_0x412fda,_0x4e1b8e=new URL(window[_0x23aa18(0x29c)][_0x23aa18(0x2e5)]);_0x4e1b8e[_0x23aa18(0x1d6)][_0x23aa18(0x207)](_0x380e60,_0x4cf05c),_0x4b91be?window[_0x23aa18(0x24f)][_0x23aa18(0x20f)]('','',_0x4e1b8e[_0x23aa18(0x1f4)]()):window[_0x23aa18(0x24f)][_0x23aa18(0x429)]('','',_0x4e1b8e['toString']());}[_0x412fda(0x353)](_0x27749f,_0x2d3267=!0x1){const _0x4ba836=_0x412fda,_0x320484=new URL(window[_0x4ba836(0x29c)]['href']);_0x320484[_0x4ba836(0x1d6)]['delete'](_0x27749f),_0x2d3267?window[_0x4ba836(0x24f)][_0x4ba836(0x20f)]('','',_0x320484[_0x4ba836(0x1f4)]()):window[_0x4ba836(0x24f)]['pushState']('','',_0x320484[_0x4ba836(0x1f4)]());}[_0x412fda(0x3b8)](_0x49a77d){const _0x3a06bf=_0x412fda;var _0x4b8dc8;return(_0x4b8dc8=new URL(window[_0x3a06bf(0x29c)][_0x3a06bf(0x2e5)])[_0x3a06bf(0x1d6)][_0x3a06bf(0x404)](_0x49a77d))!=null?_0x4b8dc8:void 0x0;}}var ts=Object[_0x412fda(0x391)],ss=Object[_0x412fda(0x26e)],ns=(_0x1e7ec7,_0x38bae5,_0x6042ad)=>_0x38bae5 in _0x1e7ec7?ts(_0x1e7ec7,_0x38bae5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6042ad}):_0x1e7ec7[_0x38bae5]=_0x6042ad,is=(_0x31bced,_0x4e2a3c,_0x1be4bb,_0x46b4c9)=>{const _0x34238c=_0x412fda;for(var _0xd5f92b=_0x46b4c9>0x1?void 0x0:_0x46b4c9?ss(_0x4e2a3c,_0x1be4bb):_0x4e2a3c,_0x56a55d=_0x31bced[_0x34238c(0x409)]-0x1,_0xe17ff7;_0x56a55d>=0x0;_0x56a55d--)(_0xe17ff7=_0x31bced[_0x56a55d])&&(_0xd5f92b=_0xe17ff7(_0xd5f92b)||_0xd5f92b);return _0xd5f92b;},ue=(_0x280f71,_0x192521)=>(_0x277ecf,_0x333052)=>_0x192521(_0x277ecf,_0x333052,_0x280f71),rs=(_0x4adfd6,_0x53b601,_0x3a5bc3)=>ns(_0x4adfd6,_0x53b601+'',_0x3a5bc3);const os='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x412fda(0x33c)]=class extends a[_0x412fda(0x25b)]{constructor(_0x1465ca=Ne,_0x1c4b44,_0x208d24,_0xb96fe2){const _0x4222c2=_0x412fda;super(),this[_0x4222c2(0x42a)]=_0x1465ca,this[_0x4222c2(0x2a8)]=_0x1c4b44,this[_0x4222c2(0x24d)]=_0x208d24,this[_0x4222c2(0x40d)]=_0xb96fe2;const {..._0x5e32b2}=a[_0x4222c2(0x1ea)]({},Ne,this[_0x4222c2(0x42a)]);this[_0x4222c2(0x40d)][_0x4222c2(0x20d)](Wt,_0x5e32b2);}[_0x412fda(0x380)](){const _0x366fef=_0x412fda;this[_0x366fef(0x201)](),this[_0x366fef(0x23a)]();}[_0x412fda(0x31a)](){const _0x3d8c13=_0x412fda;this[_0x3d8c13(0x2c8)]();}[_0x412fda(0x201)](){const _0x572ae6=_0x412fda;var _0x2b33bc;const _0x38969c=[[Ce],[Q],[J],[Z],[pe],[Ee,{'useClass':Be}],[q['ISocketService'],{'useClass':q['WebSocketService']}],[u['ILocalCacheService'],{'useClass':me}],[exports[_0x572ae6(0x3c6)]],[ee],[z],[x],[fe],[exports[_0x572ae6(0x379)]]];a[_0x572ae6(0x37f)](this[_0x572ae6(0x24d)],a[_0x572ae6(0x2d0)](_0x38969c,(_0x2b33bc=this[_0x572ae6(0x42a)])==null?void 0x0:_0x2b33bc[_0x572ae6(0x3ad)]));}[_0x412fda(0x2c8)](){const _0x3365c4=_0x412fda;this[_0x3365c4(0x2d1)](this[_0x3365c4(0x2a8)][_0x3365c4(0x30d)](a[_0x3365c4(0x220)]['UNIVER_DOC'],[ve])),this[_0x3365c4(0x2d1)](this[_0x3365c4(0x2a8)]['registerRenderModule'](a[_0x3365c4(0x220)][_0x3365c4(0x354)],[ge]));}[_0x412fda(0x23a)](){const _0x5babfd=_0x412fda;a[_0x5babfd(0x3b7)](this[_0x5babfd(0x24d)],[[x],[exports[_0x5babfd(0x3c6)]],[ee],[z],[exports[_0x5babfd(0x379)]]]);}},rs(exports[_0x412fda(0x33c)],_0x412fda(0x2f8),os),exports[_0x412fda(0x33c)]=is([a['DependentOn'](u['UniverCollaborationClientPlugin']),ue(0x1,p[_0x412fda(0x1bf)]),ue(0x2,a[_0x412fda(0x22a)](a[_0x412fda(0x2ed)])),ue(0x3,a['IConfigService'])],exports[_0x412fda(0x33c)]);function _0x3ec3(_0x43dc4f,_0x3add4f){const _0x36d425=_0x36d4();return _0x3ec3=function(_0x3ec34a,_0x10057c){_0x3ec34a=_0x3ec34a-0x1b8;let _0x31d468=_0x36d425[_0x3ec34a];return _0x31d468;},_0x3ec3(_0x43dc4f,_0x3add4f);}var as=Object[_0x412fda(0x26e)],cs=(_0xf8beae,_0x2b3589,_0x1d89b3,_0x148d6e)=>{for(var _0x25ef72=_0x148d6e>0x1?void 0x0:_0x148d6e?as(_0x2b3589,_0x1d89b3):_0x2b3589,_0xe99832=_0xf8beae['length']-0x1,_0x4e0aea;_0xe99832>=0x0;_0xe99832--)(_0x4e0aea=_0xf8beae[_0xe99832])&&(_0x25ef72=_0x4e0aea(_0x25ef72)||_0x25ef72);return _0x25ef72;},F=(_0x2d2f2a,_0x19f98b)=>(_0x4d2edf,_0x46f33a)=>_0x19f98b(_0x4d2edf,_0x46f33a,_0x2d2f2a);exports[_0x412fda(0x29b)]=class extends u[_0x412fda(0x1e5)]{constructor(_0x193995,_0xdc6b1a,_0x4a896b,_0x2d0696,_0x474f8d){super(_0x193995,_0xdc6b1a,_0x4a896b,_0x2d0696,_0x474f8d);}async[_0x412fda(0x24c)](_0x3a71fa){const _0x406373=_0x412fda,_0x1c6d0e=await this['_getSessionTicket'](),_0x2dac1a=this['_createSocketURL'](_0x3a71fa,_0x1c6d0e);return this[_0x406373(0x3b2)](_0x2dac1a);}[_0x412fda(0x3f7)](_0x2ea25b,_0x421ab2){const _0x4a3094=_0x412fda,_0x15d89a=typeof window>'u'?new URL(_0x2ea25b):new URL(_0x2ea25b,window[_0x4a3094(0x29c)][_0x4a3094(0x2d4)]);_0x15d89a[_0x4a3094(0x1d6)][_0x4a3094(0x207)](_0x4a3094(0x327),_0x421ab2);const _0x3a5f93=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x4a3094(0x430)]);return _0x3a5f93[_0x4a3094(0x404)]('runId')&&_0x15d89a[_0x4a3094(0x1d6)]['set'](_0x4a3094(0x36f),_0x3a5f93[_0x4a3094(0x404)](_0x4a3094(0x36f))),_0x15d89a[_0x4a3094(0x1f4)]();}async[_0x412fda(0x365)](){const _0x3dc277=_0x412fda;var _0xb4d866,_0x31f808,_0x1c0a29;const _0x15483a=this['_configService']['getConfig'](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x406062=(_0xb4d866=_0x15483a==null?void 0x0:_0x15483a[_0x3dc277(0x272)])!=null?_0xb4d866:u[_0x3dc277(0x259)];return(_0x1c0a29=(_0x31f808=(await this[_0x3dc277(0x1e6)][_0x3dc277(0x404)](_0x406062,{'headers':{'Content-Type':'application/json'}}))[_0x3dc277(0x262)])==null?void 0x0:_0x31f808[_0x3dc277(0x319)])!=null?_0x1c0a29:'';}},exports[_0x412fda(0x29b)]=cs([F(0x0,a[_0x412fda(0x22a)](a['Injector'])),F(0x1,a[_0x412fda(0x22a)](q[_0x412fda(0x34b)])),F(0x2,a[_0x412fda(0x2f6)]),F(0x3,a[_0x412fda(0x237)]),F(0x4,m['ISnapshotServerService'])],exports['BrowserCollaborationSocketService']);const Pe=0x7530,Le=_0x412fda(0x2f0);class ls extends a[_0x412fda(0x439)]{constructor(){const _0x12b8e4=_0x412fda;super(),_(this,'_id',a['generateRandomId']()),_(this,_0x12b8e4(0x1e9),new Set()),_(this,_0x12b8e4(0x2ee),new Map()),_(this,_0x12b8e4(0x326),null),_(this,_0x12b8e4(0x1eb),new Map()),_(this,_0x12b8e4(0x35b),new Map()),this['_init']();}['dispose'](){const _0x58f6cf=_0x412fda;super['dispose'](),this[_0x58f6cf(0x1eb)]['forEach']((_0x258af6,_0x81eb2b)=>this[_0x58f6cf(0x39a)](_0x81eb2b)),this[_0x58f6cf(0x326)]&&window[_0x58f6cf(0x271)](this[_0x58f6cf(0x326)]);}[_0x412fda(0x206)](_0x36be2a){const _0x2be074=_0x412fda;return this[_0x2be074(0x269)](_0x36be2a)[_0x2be074(0x254)](d[_0x2be074(0x3db)]());}[_0x412fda(0x1fa)](_0x536061){const _0xb56c33=_0x412fda;this[_0xb56c33(0x1e9)][_0xb56c33(0x2fc)]===0x0&&this['_scheduleHeartbeat'](),this[_0xb56c33(0x1e9)][_0xb56c33(0x3a0)](_0x536061),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x536061],'isForwarded':!0x1});}[_0x412fda(0x412)](_0x550d20){const _0x159601=_0x412fda;this[_0x159601(0x1e9)][_0x159601(0x33f)](_0x550d20),this[_0x159601(0x1e9)][_0x159601(0x2fc)]===0x0&&this[_0x159601(0x326)]&&window[_0x159601(0x271)](this['_heartbeatTimer']);}[_0x412fda(0x3fc)](){const _0x30f358=_0x412fda;this[_0x30f358(0x2d1)](a['toDisposable'](d[_0x30f358(0x1c5)](window,'storage')['subscribe'](_0x44d98d=>{const _0x7db73b=_0x30f358;if(_0x44d98d[_0x7db73b(0x3cb)]!==Le||!_0x44d98d[_0x7db73b(0x280)])return;const _0xd5744a=JSON[_0x7db73b(0x1fc)](_0x44d98d[_0x7db73b(0x280)]);this['_handleEvent'](_0xd5744a);}))),window['addEventListener'](_0x30f358(0x20e),()=>this['_send']({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x30f358(0x42b)](this[_0x30f358(0x1e9)])}));}[_0x412fda(0x357)](_0x4930f8){const _0x2d5c95=_0x412fda;switch(_0x4930f8[_0x2d5c95(0x250)]){case 0x0:this['_handleJoinEvent'](_0x4930f8);break;case 0x1:this['_handleLeaveEvent'](_0x4930f8);break;case 0x2:this[_0x2d5c95(0x33e)](_0x4930f8);break;}}['_handleJoinEvent'](_0x1fe1e0){const _0x6b0f7e=_0x412fda,{unitIDs:_0xf4008a,memberID:_0x16ff5c,isForwarded:_0x397069}=_0x1fe1e0;_0xf4008a[_0x6b0f7e(0x3e1)](_0x39bd00=>{const _0x1d88a8=_0x6b0f7e;if(!_0x397069&&this[_0x1d88a8(0x2ee)][_0x1d88a8(0x1ee)](_0x39bd00)&&this[_0x1d88a8(0x269)](_0x39bd00)[_0x1d88a8(0x2e4)](u[_0x1d88a8(0x3b6)][_0x1d88a8(0x32f)]),!this[_0x1d88a8(0x2ee)][_0x1d88a8(0x1ee)](_0x39bd00)||!this['_unitOnClients'][_0x1d88a8(0x404)](_0x39bd00)[_0x1d88a8(0x1ee)](_0x16ff5c)){const _0x51756e=this[_0x1d88a8(0x2ee)][_0x1d88a8(0x404)](_0x39bd00)||new Set();_0x51756e['add'](_0x16ff5c),this[_0x1d88a8(0x2ee)][_0x1d88a8(0x207)](_0x39bd00,_0x51756e),this['_scheduleClearOtherTimer'](_0x16ff5c);}}),_0x397069||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x412fda(0x297)](_0x474bc8){const _0x9370e2=_0x412fda;this[_0x9370e2(0x39a)](_0x474bc8);const _0x45f0ef=window[_0x9370e2(0x3c7)](()=>{const _0x1d048b=_0x9370e2;this[_0x1d048b(0x2ee)][_0x1d048b(0x3e1)](_0x5ce730=>{const _0xf843a1=_0x1d048b;_0x5ce730[_0xf843a1(0x33f)](_0x474bc8);});},Pe*0x2);this[_0x9370e2(0x1eb)][_0x9370e2(0x207)](_0x474bc8,_0x45f0ef);}[_0x412fda(0x39a)](_0x30e8f1){const _0x47c84b=_0x412fda;if(this[_0x47c84b(0x1eb)][_0x47c84b(0x1ee)](_0x30e8f1)){const _0x16b393=this['_clearOtherTimers'][_0x47c84b(0x404)](_0x30e8f1);_0x16b393&&window['clearTimeout'](_0x16b393),this[_0x47c84b(0x1eb)][_0x47c84b(0x207)](_0x30e8f1,null);}}[_0x412fda(0x2df)](_0x42761f){const _0x53a565=_0x412fda,{memberID:_0x5a2208,unitIDs:_0xdd7eb5}=_0x42761f;_0xdd7eb5[_0x53a565(0x3e1)](_0x16dd0e=>{const _0x15c29f=_0x53a565;var _0x537243;const _0x41f490=this[_0x15c29f(0x2ee)][_0x15c29f(0x404)](_0x16dd0e);_0x41f490&&(_0x41f490[_0x15c29f(0x33f)](_0x5a2208),(_0x537243=this[_0x15c29f(0x269)](_0x16dd0e))==null||_0x537243['next'](_0x41f490['size']===0x0?u['UnitStatus'][_0x15c29f(0x339)]:u[_0x15c29f(0x3b6)][_0x15c29f(0x32f)]));}),this[_0x53a565(0x39a)](_0x5a2208);}['_handleHeartbeatEvent'](_0x193cc9){const _0x593a75=_0x412fda;this[_0x593a75(0x297)](_0x193cc9[_0x593a75(0x2b4)]);}[_0x412fda(0x3da)](_0x1435da){const _0x4e197c=_0x412fda;localStorage[_0x4e197c(0x392)](Le,JSON['stringify'](_0x1435da));}[_0x412fda(0x3eb)](){const _0x3a3292=_0x412fda;this[_0x3a3292(0x326)]=window[_0x3a3292(0x37b)](()=>{const _0x2cea99=_0x3a3292;this[_0x2cea99(0x3da)]({'type':0x2,'memberID':this[_0x2cea99(0x3e5)]});},Pe);}['_ensureSubject'](_0x48bad0){const _0x418651=_0x412fda;return this[_0x418651(0x35b)]['has'](_0x48bad0)||this[_0x418651(0x35b)][_0x418651(0x207)](_0x48bad0,new d[(_0x418651(0x1df))](u[_0x418651(0x3b6)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x418651(0x35b)][_0x418651(0x404)](_0x48bad0);}}var ke=(_0x51b605=>(_0x51b605[_0x51b605['UNDEFINED']=0x0]=_0x412fda(0x287),_0x51b605[_0x51b605['OK']=0x1]='OK',_0x51b605[_0x51b605[_0x412fda(0x328)]=0x2]=_0x412fda(0x328),_0x51b605[_0x51b605[_0x412fda(0x256)]=0x3]=_0x412fda(0x256),_0x51b605[_0x51b605['NOT_FOUND']=0x4]=_0x412fda(0x251),_0x51b605[_0x51b605[_0x412fda(0x22b)]=0x5]='UNAUTHENTICATED',_0x51b605[_0x51b605['ALREADY_EXISTS']=0x6]=_0x412fda(0x2e7),_0x51b605[_0x51b605[_0x412fda(0x2c7)]=0x7]=_0x412fda(0x2c7),_0x51b605[_0x51b605[_0x412fda(0x311)]=0x8]='TOO_MANY_REQUESTS',_0x51b605[_0x51b605[_0x412fda(0x3e6)]=0x9]='COMPLETION_FINISHED',_0x51b605[_0x51b605[_0x412fda(0x293)]=0xa]='LOGIN_FAILED',_0x51b605[_0x51b605[_0x412fda(0x3a4)]=0x1389]=_0x412fda(0x3a4),_0x51b605[_0x51b605[_0x412fda(0x28e)]=0x1771]=_0x412fda(0x28e),_0x51b605[_0x51b605[_0x412fda(0x249)]=0x1772]=_0x412fda(0x249),_0x51b605[_0x51b605[_0x412fda(0x1e3)]=0x1773]=_0x412fda(0x1e3),_0x51b605[_0x51b605[_0x412fda(0x1e7)]=0x1b59]=_0x412fda(0x1e7),_0x51b605[_0x51b605[_0x412fda(0x20c)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x51b605[_0x51b605['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x412fda(0x43d),_0x51b605[_0x51b605['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x412fda(0x3bb),_0x51b605[_0x51b605[_0x412fda(0x210)]=0x1b5d]=_0x412fda(0x210),_0x51b605[_0x51b605[_0x412fda(0x2b9)]=0x1f41]=_0x412fda(0x2b9),_0x51b605[_0x51b605[_0x412fda(0x358)]=0x2329]=_0x412fda(0x358),_0x51b605[_0x51b605['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x412fda(0x1c4),_0x51b605[_0x51b605[_0x412fda(0x31c)]=0x232b]=_0x412fda(0x31c),_0x51b605[_0x51b605[_0x412fda(0x341)]=0x232c]=_0x412fda(0x341),_0x51b605[_0x51b605[_0x412fda(0x26d)]=0x232d]=_0x412fda(0x26d),_0x51b605[_0x51b605['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x412fda(0x28b),_0x51b605[_0x51b605[_0x412fda(0x28c)]=0x2712]=_0x412fda(0x28c),_0x51b605[_0x51b605[_0x412fda(0x3d1)]=0x2713]=_0x412fda(0x3d1),_0x51b605[_0x51b605[_0x412fda(0x350)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x51b605[_0x51b605['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x412fda(0x223),_0x51b605[_0x51b605[_0x412fda(0x1e1)]=0x2ee1]='INVITE_CODE_HAS_BEEN_UES',_0x51b605[_0x51b605['INVALID_INVITE_CODE']=0x2ee2]=_0x412fda(0x393),_0x51b605[_0x51b605[_0x412fda(0x1f2)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x51b605[_0x51b605[_0x412fda(0x232)]=0x2ee4]=_0x412fda(0x232),_0x51b605[_0x51b605[_0x412fda(0x1cd)]=0x2ee5]=_0x412fda(0x1cd),_0x51b605[_0x51b605[_0x412fda(0x396)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x51b605[_0x51b605[_0x412fda(0x3a3)]=0x32ca]=_0x412fda(0x3a3),_0x51b605[_0x51b605[_0x412fda(0x301)]=0x32cb]=_0x412fda(0x301),_0x51b605[_0x51b605[_0x412fda(0x418)]=-0x1]='UNRECOGNIZED',_0x51b605))(ke||{}),_s=Object[_0x412fda(0x26e)],hs=(_0x5cbc7c,_0xa229c1,_0x2e7aaa,_0x5f3501)=>{const _0x1b5307=_0x412fda;for(var _0x530496=_0x5f3501>0x1?void 0x0:_0x5f3501?_s(_0xa229c1,_0x2e7aaa):_0xa229c1,_0x5be600=_0x5cbc7c[_0x1b5307(0x409)]-0x1,_0x3c2a70;_0x5be600>=0x0;_0x5be600--)(_0x3c2a70=_0x5cbc7c[_0x5be600])&&(_0x530496=_0x3c2a70(_0x530496)||_0x530496);return _0x530496;},de=(_0x3a02da,_0x1d75f9)=>(_0x384138,_0x59be8b)=>_0x1d75f9(_0x384138,_0x59be8b,_0x3a02da);exports[_0x412fda(0x3f1)]=class extends a[_0x412fda(0x439)]{constructor(_0x513439,_0x4e102d,_0x226969){const _0x18061a=_0x412fda;super(),this[_0x18061a(0x298)]=_0x513439,this[_0x18061a(0x1e6)]=_0x4e102d,this['_configService']=_0x226969;}async[_0x412fda(0x3ea)](_0x1b97d2,_0x2ac827,_0x1c035c,..._0x3d380f){const _0xbb18ed=_0x412fda;var _0x1df5a8,_0x236836,_0x5fa405,_0x4a39ee;const _0x65e832=this[_0xbb18ed(0x298)][_0xbb18ed(0x38c)]();if(!_0x65e832)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x3c89a2=((_0x1df5a8=this[_0xbb18ed(0x40d)][_0xbb18ed(0x30a)](u[_0xbb18ed(0x3d8)]))!=null?_0x1df5a8:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x1b97d2+_0xbb18ed(0x325)+_0x2ac827,_0x4b8d9d=new URL(window[_0xbb18ed(0x29c)][_0xbb18ed(0x2e5)]),_0x38931d={'scriptId':_0x1b97d2,'runId':(_0x236836=_0x4b8d9d[_0xbb18ed(0x1d6)][_0xbb18ed(0x404)]('runId'))!=null?_0x236836:'','function':_0x2ac827,'unitId':_0x65e832['getUnitId'](),'argsOfFunction':JSON[_0xbb18ed(0x345)](_0x3d380f),'invokeId':(_0x5fa405=_0x1c035c['invokeId'])!=null?_0x5fa405:'','executionId':(_0x4a39ee=_0x1c035c[_0xbb18ed(0x411)])!=null?_0x4a39ee:''};try{const _0x3e615e=await this[_0xbb18ed(0x1e6)][_0xbb18ed(0x35f)](_0x3c89a2,{'body':_0x38931d});return _0x3e615e[_0xbb18ed(0x262)][_0xbb18ed(0x264)]&&_0x3e615e[_0xbb18ed(0x262)][_0xbb18ed(0x264)][_0xbb18ed(0x1ff)]!==ke['OK']?'Failed':_0x3e615e[_0xbb18ed(0x262)][_0xbb18ed(0x1de)];}catch{return _0xbb18ed(0x370);}}},exports['RemoteUniscriptService']=hs([de(0x0,a['IUniverInstanceService']),de(0x1,a[_0x412fda(0x22a)](q[_0x412fda(0x34b)])),de(0x2,a['IConfigService'])],exports[_0x412fda(0x3f1)]),exports[_0x412fda(0x1e2)]=je,exports['IURLService']=Ee,exports['SheetCollabCursorShape']=Ae,exports['WebBrowserSingleActiveUnitService']=ls,exports[_0x412fda(0x30e)]=Be;
@@ -1 +1 @@
1
- 'use strict';const _0x2297ee=_0xdfee;(function(_0x2bddf8,_0x4fae55){const _0x40bff7=_0xdfee,_0x411e6e=_0x2bddf8();while(!![]){try{const _0x42aa4e=-parseInt(_0x40bff7(0xfa))/0x1*(-parseInt(_0x40bff7(0xe3))/0x2)+parseInt(_0x40bff7(0xf0))/0x3*(-parseInt(_0x40bff7(0xf2))/0x4)+-parseInt(_0x40bff7(0xe4))/0x5*(parseInt(_0x40bff7(0xe7))/0x6)+parseInt(_0x40bff7(0xfc))/0x7+parseInt(_0x40bff7(0xee))/0x8*(parseInt(_0x40bff7(0xf1))/0x9)+-parseInt(_0x40bff7(0xfb))/0xa+parseInt(_0x40bff7(0xef))/0xb*(parseInt(_0x40bff7(0xec))/0xc);if(_0x42aa4e===_0x4fae55)break;else _0x411e6e['push'](_0x411e6e['shift']());}catch(_0xae7691){_0x411e6e['push'](_0x411e6e['shift']());}}}(_0x465e,0xed929));function _0xdfee(_0xed2722,_0x325155){const _0x465e31=_0x465e();return _0xdfee=function(_0xdfeed4,_0x35462c){_0xdfeed4=_0xdfeed4-0xe2;let _0x29009a=_0x465e31[_0xdfeed4];return _0x29009a;},_0xdfee(_0xed2722,_0x325155);}const e={'collab-client':{'tooltip':{'reconnect':_0x2297ee(0xf6)}},'collabStatus':{'fetchMiss':_0x2297ee(0xe6),'conflict':_0x2297ee(0xed),'notCollab':_0x2297ee(0xf3),'synced':_0x2297ee(0xe2),'syncing':'Syncing...','offline':_0x2297ee(0xf8)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x2297ee(0xe9),'room-full':_0x2297ee(0xeb),'collaboration-timeout':_0x2297ee(0xea)},'conflict':{'title':_0x2297ee(0xf7),'content':_0x2297ee(0xf4)},'permission':{'title':'Authentication\x20Error','content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x2297ee(0xe5)},'closeRoom':_0x2297ee(0xf5)},'auth':{'needGotoLoginAlert':_0x2297ee(0xf9)}};module[_0x2297ee(0xe8)]=e;function _0x465e(){const _0x3f5b1d=['Syncing\x20server\x20data...','6SPYbWx','exports','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','8190372KbrTXm','Edit\x20conflicts','64wZuCbY','22VgNOqb','4759329XrCruX','492642RDBwaZ','4pReRKR','Local\x20file','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Click\x20to\x20Reconnect','Collaboration\x20Conflict','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','5GLiPKt','17676560qwITNI','7508900eBOatv','Synced','650126cjClej','868925jZTrPt','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'];_0x465e=function(){return _0x3f5b1d;};return _0x465e();}
1
+ 'use strict';function _0x56ec(_0x135baa,_0x3c9e8c){const _0x18a9ba=_0x18a9();return _0x56ec=function(_0x56eca0,_0x11dbbb){_0x56eca0=_0x56eca0-0x133;let _0x2c9983=_0x18a9ba[_0x56eca0];return _0x2c9983;},_0x56ec(_0x135baa,_0x3c9e8c);}const _0xa22f4c=_0x56ec;(function(_0x2e6533,_0x58a79f){const _0x377ff9=_0x56ec,_0x4878ca=_0x2e6533();while(!![]){try{const _0x3e557e=parseInt(_0x377ff9(0x133))/0x1+-parseInt(_0x377ff9(0x148))/0x2*(parseInt(_0x377ff9(0x147))/0x3)+parseInt(_0x377ff9(0x136))/0x4*(-parseInt(_0x377ff9(0x146))/0x5)+-parseInt(_0x377ff9(0x135))/0x6*(parseInt(_0x377ff9(0x143))/0x7)+-parseInt(_0x377ff9(0x138))/0x8+parseInt(_0x377ff9(0x142))/0x9*(parseInt(_0x377ff9(0x149))/0xa)+parseInt(_0x377ff9(0x13c))/0xb;if(_0x3e557e===_0x58a79f)break;else _0x4878ca['push'](_0x4878ca['shift']());}catch(_0x265473){_0x4878ca['push'](_0x4878ca['shift']());}}}(_0x18a9,0xadd1e));const e={'collab-client':{'tooltip':{'reconnect':_0xa22f4c(0x144)}},'collabStatus':{'fetchMiss':_0xa22f4c(0x14c),'conflict':_0xa22f4c(0x13d),'notCollab':'Local\x20file','synced':_0xa22f4c(0x140),'syncing':_0xa22f4c(0x139),'offline':_0xa22f4c(0x13a)},'session':{'connection-failed':_0xa22f4c(0x13e),'will-retry':_0xa22f4c(0x141),'room-full':_0xa22f4c(0x13b),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0xa22f4c(0x134),'content':_0xa22f4c(0x13f)},'permission':{'title':'Authentication\x20Error','content':_0xa22f4c(0x14d)},'collaboration':{'single-unit':{'warning':_0xa22f4c(0x137)},'closeRoom':_0xa22f4c(0x14b)},'auth':{'needGotoLoginAlert':_0xa22f4c(0x145)}};module[_0xa22f4c(0x14a)]=e;function _0x18a9(){const _0xdecfa5=['313452QVHgdZ','Collaboration\x20Conflict','934512lHRrlH','4VkrVZM','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','7947008ldXEie','Syncing...','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','33808852VvwtrG','Edit\x20conflicts','Connection\x20failed,\x20please\x20check\x20your\x20network.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Synced','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','4878FWXzBk','56ySxytG','Click\x20to\x20Reconnect','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','4687685sqpUDV','549sVhlbk','1842meNuns','12370FbRKRI','exports','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Syncing\x20server\x20data...','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'];_0x18a9=function(){return _0xdecfa5;};return _0x18a9();}