@univerjs-pro/collaboration-client-ui 0.6.10-experimental.20250428-261c0dd → 0.6.10-experimental.20250428-2b6408c

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 _0x505f15=_0x1ad5;(function(_0x1a05d3,_0x34bee3){const _0x3d2a01=_0x1ad5,_0x5d5f2b=_0x1a05d3();while(!![]){try{const _0x10b74c=parseInt(_0x3d2a01(0xe2))/0x1+-parseInt(_0x3d2a01(0xdd))/0x2*(parseInt(_0x3d2a01(0xe8))/0x3)+parseInt(_0x3d2a01(0xe4))/0x4*(-parseInt(_0x3d2a01(0xdf))/0x5)+-parseInt(_0x3d2a01(0xe7))/0x6*(parseInt(_0x3d2a01(0xed))/0x7)+parseInt(_0x3d2a01(0xec))/0x8*(-parseInt(_0x3d2a01(0xe9))/0x9)+-parseInt(_0x3d2a01(0xea))/0xa+parseInt(_0x3d2a01(0xeb))/0xb;if(_0x10b74c===_0x34bee3)break;else _0x5d5f2b['push'](_0x5d5f2b['shift']());}catch(_0x4f4cc3){_0x5d5f2b['push'](_0x5d5f2b['shift']());}}}(_0x22e8,0x7dd0b));function _0x1ad5(_0x5ee0c2,_0x4569ac){const _0x22e880=_0x22e8();return _0x1ad5=function(_0x1ad59e,_0x37557a){_0x1ad59e=_0x1ad59e-0xdc;let _0x3d0d0f=_0x22e880[_0x1ad59e];return _0x3d0d0f;},_0x1ad5(_0x5ee0c2,_0x4569ac);}function _0x22e8(){const _0x470961=['2KlsbrR','get','575npTZaG','RemoteUniscriptService','runOnServer','695638EPqxyY','FUniver','10308noDLgj','@univerjs/core/facade','extend','42AZAkhk','695526oZNrOj','288198QaJVOT','10256110PJttLC','36117488aaMZzJ','248cUwQir','917217qXQRAx','_injector','@univerjs-pro/collaboration-client-ui'];_0x22e8=function(){return _0x470961;};return _0x22e8();}const t=require(_0x505f15(0xdc)),e=require(_0x505f15(0xe5));class c extends e[_0x505f15(0xe3)]{[_0x505f15(0xe1)](_0x1450b5,_0x46f192,..._0x2431fe){const _0x5b1280=_0x505f15;return this[_0x5b1280(0xee)][_0x5b1280(0xde)](t[_0x5b1280(0xe0)])[_0x5b1280(0xe1)](_0x1450b5,_0x46f192,{},..._0x2431fe);}}e[_0x505f15(0xe3)][_0x505f15(0xe6)](c);
1
+ 'use strict';function _0x4505(_0x2b472b,_0x2b13ba){const _0x1f7a1e=_0x1f7a();return _0x4505=function(_0x450500,_0x3c9a78){_0x450500=_0x450500-0xa9;let _0x51525c=_0x1f7a1e[_0x450500];return _0x51525c;},_0x4505(_0x2b472b,_0x2b13ba);}function _0x1f7a(){const _0xafcd1d=['FUniver','140AYkTad','803806vApHpq','4347174LmRvxW','1019178eCBeKR','get','16wFodVn','69883Zqtsmk','3660wkbXhW','40aHuUxg','runOnServer','1819910qCgWDo','980140RvkXFp','1MNHFEv','extend','@univerjs/core/facade','54399RunNdG'];_0x1f7a=function(){return _0xafcd1d;};return _0x1f7a();}const _0xd494d=_0x4505;(function(_0x18640a,_0x145dae){const _0xa4675a=_0x4505,_0x54a321=_0x18640a();while(!![]){try{const _0x19ac1e=parseInt(_0xa4675a(0xac))/0x1*(-parseInt(_0xa4675a(0xb2))/0x2)+parseInt(_0xa4675a(0xaf))/0x3*(-parseInt(_0xa4675a(0xb1))/0x4)+parseInt(_0xa4675a(0xaa))/0x5+-parseInt(_0xa4675a(0xb3))/0x6+parseInt(_0xa4675a(0xab))/0x7*(parseInt(_0xa4675a(0xb6))/0x8)+-parseInt(_0xa4675a(0xb4))/0x9*(parseInt(_0xa4675a(0xb9))/0xa)+parseInt(_0xa4675a(0xb7))/0xb*(parseInt(_0xa4675a(0xb8))/0xc);if(_0x19ac1e===_0x145dae)break;else _0x54a321['push'](_0x54a321['shift']());}catch(_0x1f3ccc){_0x54a321['push'](_0x54a321['shift']());}}}(_0x1f7a,0x59c10));const t=require('@univerjs-pro/collaboration-client-ui'),e=require(_0xd494d(0xae));class c extends e[_0xd494d(0xb0)]{['runOnServer'](_0x86601,_0x24a596,..._0x123de3){const _0x4a5c37=_0xd494d;return this['_injector'][_0x4a5c37(0xb5)](t['RemoteUniscriptService'])[_0x4a5c37(0xa9)](_0x86601,_0x24a596,{},..._0x123de3);}}e[_0xd494d(0xb0)][_0xd494d(0xad)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x183fa5=_0x5188;(function(_0x3afa03,_0x1a4f49){const _0x2ed8fd=_0x5188,_0x22e264=_0x3afa03();while(!![]){try{const _0x270a07=-parseInt(_0x2ed8fd(0x27e))/0x1+-parseInt(_0x2ed8fd(0x2f5))/0x2*(-parseInt(_0x2ed8fd(0x1cb))/0x3)+parseInt(_0x2ed8fd(0x225))/0x4+-parseInt(_0x2ed8fd(0x395))/0x5*(-parseInt(_0x2ed8fd(0x1d5))/0x6)+-parseInt(_0x2ed8fd(0x380))/0x7+parseInt(_0x2ed8fd(0x3c5))/0x8+parseInt(_0x2ed8fd(0x382))/0x9*(-parseInt(_0x2ed8fd(0x3f5))/0xa);if(_0x270a07===_0x1a4f49)break;else _0x22e264['push'](_0x22e264['shift']());}catch(_0x32edbb){_0x22e264['push'](_0x22e264['shift']());}}}(_0x18b1,0xe4d71));var Ve=Object['defineProperty'],Xe=(_0x267b43,_0x555c16,_0x11ca67)=>_0x555c16 in _0x267b43?Ve(_0x267b43,_0x555c16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11ca67}):_0x267b43[_0x555c16]=_0x11ca67,h=(_0xbcecd,_0x55fae7,_0x374b83)=>Xe(_0xbcecd,typeof _0x55fae7!='symbol'?_0x55fae7+'':_0x55fae7,_0x374b83);Object[_0x183fa5(0x2d6)](exports,Symbol[_0x183fa5(0x32d)],{'value':_0x183fa5(0x328)});const u=require(_0x183fa5(0x1fb)),a=require('@univerjs/core'),p=require(_0x183fa5(0x217)),G=require(_0x183fa5(0x35c)),b=require(_0x183fa5(0x2b7)),Ge=require('@univerjs/drawing'),d=require(_0x183fa5(0x3aa)),W=require(_0x183fa5(0x1e0)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x183fa5(0x316)),g=require(_0x183fa5(0x277)),$=require(_0x183fa5(0x2df)),X=require(_0x183fa5(0x26f)),P=require(_0x183fa5(0x2a1)),T=require(_0x183fa5(0x2d1)),D=require(_0x183fa5(0x21d)),M=require('react'),qe=require(_0x183fa5(0x1fa));var Ke=Object[_0x183fa5(0x255)],ze=(_0x206853,_0x46e2d6,_0x6f905e,_0x4fe880)=>{for(var _0x5a67b4=_0x4fe880>0x1?void 0x0:_0x4fe880?Ke(_0x46e2d6,_0x6f905e):_0x46e2d6,_0x1c24d0=_0x206853['length']-0x1,_0x11c326;_0x1c24d0>=0x0;_0x1c24d0--)(_0x11c326=_0x206853[_0x1c24d0])&&(_0x5a67b4=_0x11c326(_0x5a67b4)||_0x5a67b4);return _0x5a67b4;},Te=(_0x4ddccd,_0x3dd271)=>(_0x5cf0c3,_0x231c1f)=>_0x3dd271(_0x5cf0c3,_0x231c1f,_0x4ddccd);let de=class extends a[_0x183fa5(0x3b8)]{constructor(_0x40e05a,_0x283318){const _0x51facb=_0x183fa5;super(),this[_0x51facb(0x1b8)]=_0x40e05a,this[_0x51facb(0x31f)]=_0x283318,this['_init']();}[_0x183fa5(0x240)](){const _0x4a3bc3=_0x183fa5,_0xe63bce=this;this['disposeWithMe'](this[_0x4a3bc3(0x1b8)]['addClipboardHook']({'onBeforePasteImage':async _0x5df793=>{const _0x30102b=_0x4a3bc3,_0x5e116b=await _0xe63bce[_0x30102b(0x31f)][_0x30102b(0x3c2)](_0x5df793);return _0x5e116b?{'source':_0x5e116b[_0x30102b(0x3fa)],'imageSourceType':_0x5e116b[_0x30102b(0x31e)]}:null;}}));}};de=ze([Te(0x0,b[_0x183fa5(0x31b)]),Te(0x1,Ge[_0x183fa5(0x1c5)])],de);const Oe=[_0x183fa5(0x2de),_0x183fa5(0x19b),'verdancy600','red300',_0x183fa5(0x3c9),_0x183fa5(0x24d)];class me extends a[_0x183fa5(0x3ec)]{constructor(){const _0x3b4b2a=_0x183fa5;super(...arguments),h(this,_0x3b4b2a(0x3cc),new Map()),h(this,_0x3b4b2a(0x1ee),0x0);}[_0x183fa5(0x35a)](_0x9efb67){const _0x64f903=_0x183fa5;if(this[_0x64f903(0x3cc)]['has'](_0x9efb67))return this[_0x64f903(0x3cc)][_0x64f903(0x2dc)](_0x9efb67);const _0x50bfbc=Oe[this[_0x64f903(0x1ee)]];return this[_0x64f903(0x1ee)]=(this[_0x64f903(0x1ee)]+0x1)%Oe[_0x64f903(0x260)],this[_0x64f903(0x3cc)][_0x64f903(0x279)](_0x9efb67,_0x50bfbc),_0x50bfbc;}}function Pe(_0x3b4528){const _0x4f1fd5=_0x183fa5;let _0x1ffd51='';for(const _0x1fe2a8 of _0x3b4528){const {startOffset:_0x486d44,endOffset:_0x33b0c1,isActive:_0x4f38b4,rangeType:_0x2ba9d2,segmentId:_0x4f4d3d,segmentPage:_0x265b2e}=_0x1fe2a8;_0x1ffd51[_0x4f1fd5(0x260)]&&(_0x1ffd51+=','),_0x1ffd51+=_0x486d44+':'+_0x33b0c1+':'+(_0x4f38b4?'1':'0')+':'+_0x2ba9d2+':'+_0x4f4d3d+':'+_0x265b2e;}return _0x1ffd51;}function Je(_0x3e9451){const _0x4c3baa=_0x183fa5,_0x2e5a03=_0x3e9451[_0x4c3baa(0x405)](','),_0x92af6e=[];for(const _0x3589b6 of _0x2e5a03){const [_0x38f1e4,_0x518a3b,_0x4b332b,_0x176133,_0x383144,_0x49769e]=_0x3589b6[_0x4c3baa(0x405)](':');_0x92af6e[_0x4c3baa(0x2a0)]({'startOffset':Number(_0x38f1e4),'endOffset':Number(_0x518a3b),'collapsed':_0x38f1e4===_0x518a3b,'isActive':_0x4b332b==='1','rangeType':_0x176133===a[_0x4c3baa(0x27b)][_0x4c3baa(0x1bc)]?a[_0x4c3baa(0x27b)][_0x4c3baa(0x1bc)]:a['DOC_RANGE_TYPE'][_0x4c3baa(0x2db)],'segmentId':typeof _0x383144==_0x4c3baa(0x2fb)?String(_0x383144):'','segmentPage':Number(_0x49769e!=null?_0x49769e:-0x1)});}return _0x92af6e[_0x4c3baa(0x3f3)](_0x48cce0=>_0x48cce0[_0x4c3baa(0x27c)])||(_0x92af6e[0x0][_0x4c3baa(0x27c)]=!0x0),_0x92af6e;}class Ce extends a['RxDisposable']{constructor(){const _0x45e724=_0x183fa5;super(...arguments),h(this,_0x45e724(0x226),new d[(_0x45e724(0x323))](null)),h(this,_0x45e724(0x2c2),this[_0x45e724(0x226)][_0x45e724(0x31c)]());}['syncEditingCollabCursor'](_0x452a61){const _0x5e118e=_0x183fa5,{unitID:_0x1c8e51,memberID:_0x3a9b03,textRanges:_0x1cee7b}=_0x452a61,_0x297f66=Pe(_0x1cee7b);if(_0x297f66==='')return;const _0x3ecb64={'unitID':_0x1c8e51,'memberID':_0x3a9b03,'selection':_0x297f66};this[_0x5e118e(0x226)][_0x5e118e(0x254)](_0x3ecb64);}}var Ze=Object[_0x183fa5(0x255)],Qe=(_0x4fc56f,_0x1a670a,_0x4153be,_0x74a6a1)=>{const _0x28adb5=_0x183fa5;for(var _0x320e8a=_0x74a6a1>0x1?void 0x0:_0x74a6a1?Ze(_0x1a670a,_0x4153be):_0x1a670a,_0x3030bb=_0x4fc56f[_0x28adb5(0x260)]-0x1,_0x6a1a34;_0x3030bb>=0x0;_0x3030bb--)(_0x6a1a34=_0x4fc56f[_0x3030bb])&&(_0x320e8a=_0x6a1a34(_0x320e8a)||_0x320e8a);return _0x320e8a;},L=(_0x4abf25,_0x3b9499)=>(_0x1f20c4,_0x50b394)=>_0x3b9499(_0x1f20c4,_0x50b394,_0x4abf25);const et=0x12c,tt=0x64;let fe=class extends a[_0x183fa5(0x3b8)]{constructor(_0x5df597,_0x4244f9,_0x71cf77,_0x3e60c6,_0x2703e7,_0x43c681,_0x39c5b1,_0x20b971,_0x270c64){const _0xaea7b7=_0x183fa5;super(),h(this,_0xaea7b7(0x2c3),!0x1),h(this,_0xaea7b7(0x240),!0x1),h(this,_0xaea7b7(0x34c),new d[(_0xaea7b7(0x323))](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0xaea7b7(0x31c)]()),h(this,_0xaea7b7(0x3b5),new d[(_0xaea7b7(0x323))]([])),h(this,_0xaea7b7(0x375),this['_roomMembers$']['pipe'](d['debounceTime'](et))),h(this,_0xaea7b7(0x295),a[_0xaea7b7(0x3be)](_0x4af7e0=>{const _0x4530bc=_0xaea7b7,_0x5c6a59={'eventID':m[_0x4530bc(0x1a4)][_0x4530bc(0x3b1)],'data':{'unitID':this[_0x4530bc(0x1b7)],'memberID':this[_0x4530bc(0x383)][_0x4530bc(0x3db)](),'selection':Pe(_0x4af7e0)}};this[_0x4530bc(0x383)][_0x4530bc(0x3ee)](_0x5c6a59,this['unitID']);},tt)),(this[_0xaea7b7(0x1b7)]=_0x5df597,this[_0xaea7b7(0x383)]=_0x4244f9,this[_0xaea7b7(0x20a)]=_0x71cf77,this[_0xaea7b7(0x1ca)]=_0x3e60c6,this[_0xaea7b7(0x2e9)]=_0x2703e7,this[_0xaea7b7(0x324)]=_0x43c681,this[_0xaea7b7(0x346)]=_0x39c5b1,this[_0xaea7b7(0x28f)]=_0x20b971,this['_commandService']=_0x270c64);}get['cursorInfo'](){const _0x257ede=_0x183fa5;return this[_0x257ede(0x34c)][_0x257ede(0x3df)]();}get[_0x183fa5(0x3a2)](){const _0x428600=_0x183fa5;return this[_0x428600(0x3b5)][_0x428600(0x3df)]();}[_0x183fa5(0x2a6)](){const _0x11d0e9=_0x183fa5;super[_0x11d0e9(0x2a6)](),this['_cursorInfo$'][_0x11d0e9(0x254)](new Map()),this['_cursorInfo$'][_0x11d0e9(0x2cf)](),this[_0x11d0e9(0x3b5)][_0x11d0e9(0x254)]([]),this['_roomMembers$']['complete']();}[_0x183fa5(0x2b0)](){const _0xb4afea=_0x183fa5;this[_0xb4afea(0x240)]||(this[_0xb4afea(0x240)]=!0x0,this[_0xb4afea(0x383)][_0xb4afea(0x352)][_0xb4afea(0x213)](d[_0xb4afea(0x351)](this[_0xb4afea(0x22f)]))[_0xb4afea(0x24c)](_0xee2feb=>{const _0x2bd33c=_0xb4afea;_0xee2feb===u[_0x2bd33c(0x32f)][_0x2bd33c(0x2bf)]?this[_0x2bd33c(0x3d9)]():this[_0x2bd33c(0x358)]();}),this[_0xb4afea(0x383)][_0xb4afea(0x2f6)]['pipe'](d[_0xb4afea(0x351)](this[_0xb4afea(0x22f)]))[_0xb4afea(0x24c)](_0x15defa=>{const _0x2d4420=_0xb4afea,_0x4c594e=_0x15defa[_0x2d4420(0x36b)];_0x4c594e===m['CollaborationEvent'][_0x2d4420(0x3b1)]&&this['_onCursorUpdate'](_0x15defa),_0x4c594e===m[_0x2d4420(0x1a4)]['USERS_LEAVE']&&this[_0x2d4420(0x267)](_0x15defa);}),this[_0xb4afea(0x220)](this[_0xb4afea(0x210)][_0xb4afea(0x271)](_0xee0309=>{const _0x5d5e55=_0xb4afea,_0x28e535=_0xee0309['params'];_0x28e535!=null&&this[_0x5d5e55(0x2c3)]&&_0xee0309['id']===W[_0x5d5e55(0x39b)]['id']&&_0x28e535[_0x5d5e55(0x34f)]===this[_0x5d5e55(0x1b7)]&&_0x28e535['isEditing']===!0x1&&_0x28e535[_0x5d5e55(0x37e)][_0x5d5e55(0x260)]>0x0&&this['_updateLocalCursor'](_0x28e535['ranges']);})),this[_0xb4afea(0x324)][_0xb4afea(0x2c2)][_0xb4afea(0x213)](d[_0xb4afea(0x351)](this[_0xb4afea(0x22f)]))[_0xb4afea(0x24c)](_0x3e4a06=>{const _0x1e9489=_0xb4afea;if((_0x3e4a06==null?void 0x0:_0x3e4a06[_0x1e9489(0x1b7)])!==this[_0x1e9489(0x1b7)])return;const _0x40a6d5={'eventID':m[_0x1e9489(0x1a4)][_0x1e9489(0x3b1)],'data':_0x3e4a06};this[_0x1e9489(0x1b2)](_0x40a6d5);}),this[_0xb4afea(0x220)](this[_0xb4afea(0x210)][_0xb4afea(0x271)](_0x43c2e1=>{const _0x484dbf=_0xb4afea;if(_0x43c2e1[_0x484dbf(0x1c1)]==null)return;const _0x544b96=_0x43c2e1[_0x484dbf(0x1c1)];if(_0x43c2e1['id']!==W[_0x484dbf(0x1be)]['id']||_0x544b96[_0x484dbf(0x34f)]!==this[_0x484dbf(0x1b7)])return;const _0x35f5ef={'id':_0x484dbf(0x300),'params':_0x544b96},_0x54318a=this[_0x484dbf(0x27d)];for(const [_0xf033ca,_0x2e3ff4]of _0x54318a){const _0x541003={'id':_0x484dbf(0x300),'params':{'unitId':this[_0x484dbf(0x1b7)],'actions':null,'textRanges':_0x2e3ff4[_0x484dbf(0x37e)]}},_0x43a249=this[_0x484dbf(0x346)]['transformMutation'](_0x35f5ef,_0x541003,!0x1);if(m[_0x484dbf(0x1d3)](_0x43a249))throw _0x43a249['error'];_0x54318a[_0x484dbf(0x279)](_0xf033ca,{..._0x2e3ff4,'ranges':_0x43a249['m2Prime'][_0x484dbf(0x1c1)][_0x484dbf(0x1ab)]});}queueMicrotask(()=>{const _0x3b43af=_0x484dbf;this[_0x3b43af(0x34c)][_0x3b43af(0x254)](_0x54318a);});})));}[_0x183fa5(0x1b2)](_0x5dec0b){const _0x4a9975=_0x183fa5;var _0x5b9b03,_0x1708a0;const {memberID:_0x13d4ca,selection:_0x6164ca}=_0x5dec0b[_0x4a9975(0x1ac)],_0x438afe=Je(_0x6164ca),_0x3ad1b6=(_0x1708a0=(_0x5b9b03=this['_memberService'][_0x4a9975(0x304)](this[_0x4a9975(0x1b7)],_0x13d4ca))==null?void 0x0:_0x5b9b03['name'])!=null?_0x1708a0:_0x4a9975(0x40b),_0x4f4c41={'color':this[_0x4a9975(0x1ca)][_0x4a9975(0x35a)](_0x13d4ca),'name':_0x3ad1b6,'ranges':_0x438afe},_0x5a8204=this[_0x4a9975(0x27d)];_0x5a8204[_0x4a9975(0x279)](_0x13d4ca,_0x4f4c41),this[_0x4a9975(0x34c)][_0x4a9975(0x254)](_0x5a8204);}['_onCursorDelete'](_0x5e2659){const _0x3cace5=_0x183fa5,{memberID:_0xf8234a}=_0x5e2659[_0x3cace5(0x1ac)],_0x17999e=this['cursorInfo'];_0x17999e[_0x3cace5(0x1dc)](_0xf8234a),this[_0x3cace5(0x34c)][_0x3cace5(0x254)](_0x17999e);}['_toggleOnline'](){const _0x3b1956=_0x183fa5;var _0x355f33;if(this[_0x3b1956(0x2c3)]=!0x0,((_0x355f33=this[_0x3b1956(0x28f)][_0x3b1956(0x276)]())==null?void 0x0:_0x355f33[_0x3b1956(0x3bf)]())!==this[_0x3b1956(0x1b7)])return;const _0x3df974=this['_injector'][_0x3b1956(0x2dc)](W[_0x3b1956(0x28e)])[_0x3b1956(0x268)]();Array[_0x3b1956(0x2ba)](_0x3df974)&&_0x3df974[_0x3b1956(0x260)]>0x0&&this[_0x3b1956(0x295)](_0x3df974);}[_0x183fa5(0x358)](){const _0x3ea3d9=_0x183fa5;this[_0x3ea3d9(0x2c3)]=!0x1;}};fe=Qe([L(0x2,a[_0x183fa5(0x3dc)](a['Injector'])),L(0x3,a[_0x183fa5(0x3dc)](me)),L(0x4,a[_0x183fa5(0x3dc)](u['MemberService'])),L(0x5,a[_0x183fa5(0x3dc)](Ce)),L(0x6,m[_0x183fa5(0x20b)]),L(0x7,a[_0x183fa5(0x33a)]),L(0x8,a['ICommandService'])],fe);var st=Object[_0x183fa5(0x255)],it=(_0x4a44ca,_0x33ad6d,_0x49ffc2,_0x99bf2c)=>{const _0x33699c=_0x183fa5;for(var _0x582649=_0x99bf2c>0x1?void 0x0:_0x99bf2c?st(_0x33ad6d,_0x49ffc2):_0x33ad6d,_0x4113fe=_0x4a44ca[_0x33699c(0x260)]-0x1,_0x485a91;_0x4113fe>=0x0;_0x4113fe--)(_0x485a91=_0x4a44ca[_0x4113fe])&&(_0x582649=_0x485a91(_0x582649)||_0x582649);return _0x582649;},A=(_0x569ab9,_0x1ac834)=>(_0x2e5970,_0x24f30e)=>_0x1ac834(_0x2e5970,_0x24f30e,_0x569ab9);const nt=0x12c,rt=0x64,ot=()=>{let _0x5a1615=[],_0x120472=!0x1;return _0x15bec7=>{_0x5a1615['push'](_0x15bec7),_0x120472||(_0x120472=!0x0,setTimeout(()=>{const _0x7b3828=_0x5188;_0x5a1615[_0x7b3828(0x2ae)](_0x4bfd4b=>_0x4bfd4b()),_0x5a1615=[],_0x120472=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x1f6994,_0x2a764a,_0x4aac82,_0x24981b,_0x33bb95,_0x5806da,_0x2a7add,_0x2569ef){const _0x492fc2=_0x183fa5;super(),h(this,_0x492fc2(0x2c3),!0x1),h(this,'_init',!0x1),h(this,_0x492fc2(0x34c),new d[(_0x492fc2(0x323))](new Map())),h(this,_0x492fc2(0x201),this[_0x492fc2(0x34c)][_0x492fc2(0x31c)]()),h(this,_0x492fc2(0x3b5),new d[(_0x492fc2(0x323))]([])),h(this,_0x492fc2(0x375),this[_0x492fc2(0x3b5)][_0x492fc2(0x213)](d['debounceTime'](nt))),h(this,_0x492fc2(0x295),a['debounce']((_0x4078cc,_0x4aafda)=>{const _0x5710e6=_0x492fc2,_0x30883c={'eventID':m[_0x5710e6(0x1a4)][_0x5710e6(0x3b1)],'data':{'unitID':this['unitID'],'memberID':this[_0x5710e6(0x383)][_0x5710e6(0x3db)](),'selection':Ee[_0x5710e6(0x3c8)](_0x4078cc,_0x4aafda['range'])}};this['_session']['send'](_0x30883c,this['unitID']);},rt)),(this[_0x492fc2(0x1b7)]=_0x1f6994,this[_0x492fc2(0x383)]=_0x2a764a,this[_0x492fc2(0x20a)]=_0x4aac82,this[_0x492fc2(0x1ca)]=_0x24981b,this[_0x492fc2(0x2e9)]=_0x33bb95,this[_0x492fc2(0x28f)]=_0x5806da,this['_commandService']=_0x2a7add,this['_refRangeService']=_0x2569ef);}get[_0x183fa5(0x27d)](){const _0x33c8e7=_0x183fa5;return this[_0x33c8e7(0x34c)][_0x33c8e7(0x3df)]();}get[_0x183fa5(0x3a2)](){const _0x59df38=_0x183fa5;return this['_roomMembers$'][_0x59df38(0x3df)]();}['dispose'](){const _0x12ec5a=_0x183fa5;super[_0x12ec5a(0x2a6)](),this[_0x12ec5a(0x34c)][_0x12ec5a(0x254)](new Map()),this[_0x12ec5a(0x34c)]['complete'](),this[_0x12ec5a(0x3b5)][_0x12ec5a(0x254)]([]),this[_0x12ec5a(0x3b5)][_0x12ec5a(0x2cf)]();}[_0x183fa5(0x2b0)](){const _0x15c02d=_0x183fa5;this[_0x15c02d(0x240)]||(this['_init']=!0x0,this[_0x15c02d(0x383)][_0x15c02d(0x352)][_0x15c02d(0x213)](d[_0x15c02d(0x351)](this[_0x15c02d(0x22f)]))['subscribe'](_0x53be1d=>{const _0x317c2a=_0x15c02d;_0x53be1d===u['SessionStatus'][_0x317c2a(0x2bf)]?this['_toggleOnline']():this[_0x317c2a(0x358)]();}),this[_0x15c02d(0x383)]['event$']['pipe'](d[_0x15c02d(0x351)](this['dispose$']))[_0x15c02d(0x24c)](_0x4c4001=>{const _0x1360a8=_0x15c02d,_0x188877=_0x4c4001['eventID'];_0x188877===m[_0x1360a8(0x1a4)][_0x1360a8(0x3b1)]&&this[_0x1360a8(0x1b2)](_0x4c4001),_0x188877===m['CollaborationEvent']['USERS_LEAVE']&&this[_0x1360a8(0x267)](_0x4c4001);}),this[_0x15c02d(0x32e)](),this['disposeWithMe'](this[_0x15c02d(0x210)][_0x15c02d(0x271)](_0x2432f5=>{const _0x2e00cf=_0x15c02d;if(this[_0x2e00cf(0x2c3)]&&_0x2432f5['id']===g['SetSelectionsOperation']['id']&&_0x2432f5['params'][_0x2e00cf(0x34f)]===this[_0x2e00cf(0x1b7)]){const _0xfdfa7f=_0x2432f5[_0x2e00cf(0x1c1)];this[_0x2e00cf(0x295)](_0xfdfa7f['subUnitId'],_0xfdfa7f[_0x2e00cf(0x1bb)][0x0]);}})));}[_0x183fa5(0x1b2)](_0x1387bb){const _0x1df72b=_0x183fa5;var _0xb5a416,_0x598a65;const {memberID:_0x1755c5,selection:_0x36a4d9}=_0x1387bb[_0x1df72b(0x1ac)],{sheetName:_0x1cf954,range:_0x41743d}=Ee[_0x1df72b(0x3fd)](_0x36a4d9),_0x183ea9={'name':(_0x598a65=(_0xb5a416=this[_0x1df72b(0x2e9)]['getMember'](this['unitID'],_0x1755c5))==null?void 0x0:_0xb5a416[_0x1df72b(0x393)])!=null?_0x598a65:_0x1df72b(0x40b),'range':this[_0x1df72b(0x373)](_0x1cf954,_0x41743d),'sheetID':_0x1cf954,'color':this[_0x1df72b(0x1ca)]['assignAColorForMemberID'](_0x1755c5),'selection':_0x36a4d9},_0x28e302=this['cursorInfo'];_0x28e302[_0x1df72b(0x279)](_0x1755c5,_0x183ea9),this[_0x1df72b(0x34c)][_0x1df72b(0x254)](_0x28e302);}['_onCursorDelete'](_0x1e322d){const _0x1bb097=_0x183fa5,{memberID:_0x567c36}=_0x1e322d[_0x1bb097(0x1ac)],_0x228646=this['cursorInfo'];_0x228646[_0x1bb097(0x1dc)](_0x567c36),this['_cursorInfo$'][_0x1bb097(0x254)](_0x228646);}[_0x183fa5(0x373)](_0x3e1698,_0x178bff){const _0x413f4e=_0x183fa5;var _0x22d441,_0x38848c;const _0x461d42=(_0x38848c=(_0x22d441=this['_univerInstanceService'][_0x413f4e(0x1e7)](this[_0x413f4e(0x1b7)]))==null?void 0x0:_0x22d441[_0x413f4e(0x2ed)](_0x3e1698))==null?void 0x0:_0x38848c[_0x413f4e(0x22b)]();return(_0x461d42==null?void 0x0:_0x461d42[_0x413f4e(0x1cd)](_0x4a759c=>a['Rectangle']['contains'](_0x4a759c,_0x178bff)))||_0x178bff;}[_0x183fa5(0x32e)](){const _0x2c89cc=_0x183fa5,_0x223379=new a[(_0x2c89cc(0x38c))](),_0xa6197d=ot(),_0x1865ad=()=>{const _0x6e1791=_0x2c89cc;_0x223379[_0x6e1791(0x2a6)]();const _0x588068=(_0x2c22b0,_0x114a94,_0x2064f4,_0xf3fbe5)=>{const _0x2b3743=_0x6e1791;let _0x3427aa=[];switch(_0x2c22b0['id']){case g[_0x2b3743(0x266)][_0x2b3743(0x3dd)]:{_0x3427aa=g[_0x2b3743(0x1ec)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)][_0x2b3743(0x3ed)]:{_0x3427aa=g[_0x2b3743(0x1a5)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)][_0x2b3743(0x1e2)]:{_0x3427aa=g[_0x2b3743(0x3b6)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)]['InsertRangeMoveDownCommandId']:{_0x3427aa=g['handleInsertRangeMoveDown'](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)][_0x2b3743(0x2da)]:{_0x3427aa=g[_0x2b3743(0x3f9)](_0x2c22b0,_0xf3fbe5);break;}case g['EffectRefRangId'][_0x2b3743(0x24e)]:{_0x3427aa=g[_0x2b3743(0x371)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)]['MoveRangeCommandId']:{_0x3427aa=g[_0x2b3743(0x38d)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)][_0x2b3743(0x27f)]:{_0x3427aa=g[_0x2b3743(0x35d)](_0x2c22b0,_0xf3fbe5);break;}case g[_0x2b3743(0x266)][_0x2b3743(0x39c)]:{_0x3427aa=g[_0x2b3743(0x309)](_0x2c22b0,_0xf3fbe5);break;}}const _0x568018=g['runRefRangeMutations'](_0x3427aa,_0xf3fbe5),_0x55c4f1=this[_0x2b3743(0x27d)][_0x2b3743(0x2dc)](_0x114a94);if(_0x55c4f1&&_0x568018){const _0x2c0bd8={..._0x55c4f1,'range':_0x568018};this[_0x2b3743(0x27d)][_0x2b3743(0x279)](_0x114a94,_0x2c0bd8),_0xa6197d(()=>{const _0x438819=_0x2b3743,_0x1987e0=this['_refRangeService']['registerRefRange'](_0x568018,_0x5b1760=>(_0x1987e0[_0x438819(0x2a6)](),_0x588068(_0x5b1760,_0x114a94,_0x2064f4,_0x568018)));_0x223379['add'](_0x1987e0);});}return{'redos':[],'undos':[]};};this[_0x6e1791(0x27d)][_0x6e1791(0x2ae)]((_0x4b6e74,_0x4df529)=>{const _0x2fef7a=_0x6e1791,{range:_0x4b7976,sheetID:_0x37a8ae}=_0x4b6e74,_0x5a544b=this['_refRangeService'][_0x2fef7a(0x19c)](_0x4b7976,_0x4c00b1=>(_0x5a544b['dispose'](),_0x588068(_0x4c00b1,_0x4df529,_0x37a8ae,_0x4b7976)));_0x223379[_0x2fef7a(0x292)](_0x5a544b);});};this[_0x2c89cc(0x220)](a[_0x2c89cc(0x29e)](this['_cursorInfo$']['subscribe'](()=>{_0x1865ad();})));}['_toggleOnline'](){const _0x76c7f0=_0x183fa5;var _0x3f598b,_0x158315;if(this['_online']=!0x0,((_0x3f598b=this[_0x76c7f0(0x28f)][_0x76c7f0(0x276)]())==null?void 0x0:_0x3f598b[_0x76c7f0(0x3bf)]())!==this[_0x76c7f0(0x1b7)])return;const _0x1a3d71=(_0x158315=this['_injector'][_0x76c7f0(0x2dc)](g['SheetsSelectionsService'])['getCurrentSelections']())==null?void 0x0:_0x158315[0x0],_0x5089b0=this[_0x76c7f0(0x28f)][_0x76c7f0(0x22c)](a[_0x76c7f0(0x2f4)][_0x76c7f0(0x407)])['getActiveSheet']();_0x1a3d71&&_0x5089b0&&this[_0x76c7f0(0x295)](_0x5089b0['getSheetId'](),_0x1a3d71);}[_0x183fa5(0x358)](){const _0x450906=_0x183fa5;this[_0x450906(0x2c3)]=!0x1;}};Se=it([A(0x2,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),A(0x3,a[_0x183fa5(0x3dc)](me)),A(0x4,a[_0x183fa5(0x3dc)](u[_0x183fa5(0x24a)])),A(0x5,a[_0x183fa5(0x33a)]),A(0x6,a[_0x183fa5(0x3fb)]),A(0x7,a[_0x183fa5(0x3dc)](g['RefRangeService']))],Se);var at=Object[_0x183fa5(0x255)],ct=(_0x4acce6,_0x3fd6f3,_0xc65d51,_0x2ab8fa)=>{const _0x14fc41=_0x183fa5;for(var _0x2e29fd=_0x2ab8fa>0x1?void 0x0:_0x2ab8fa?at(_0x3fd6f3,_0xc65d51):_0x3fd6f3,_0x38670f=_0x4acce6[_0x14fc41(0x260)]-0x1,_0x494b1b;_0x38670f>=0x0;_0x38670f--)(_0x494b1b=_0x4acce6[_0x38670f])&&(_0x2e29fd=_0x494b1b(_0x2e29fd)||_0x2e29fd);return _0x2e29fd;},ie=(_0x30ba6f,_0x559609)=>(_0x941ff,_0x4c5425)=>_0x559609(_0x941ff,_0x4c5425,_0x30ba6f);let x=class extends a[_0x183fa5(0x3b8)]{constructor(_0x44bf5c,_0x2f7ef6,_0x3a7e15){const _0x47aa67=_0x183fa5;super(),h(this,_0x47aa67(0x25a),new Map()),h(this,_0x47aa67(0x3cf),new d['Subject']()),(this['_univerInstanceService']=_0x44bf5c,this[_0x47aa67(0x20a)]=_0x2f7ef6,this['_collabSessionService']=_0x3a7e15,this[_0x47aa67(0x240)]());}[_0x183fa5(0x2a6)](){const _0x2c8b28=_0x183fa5;super[_0x2c8b28(0x2a6)](),this[_0x2c8b28(0x3cf)][_0x2c8b28(0x2cf)](),this[_0x2c8b28(0x25a)][_0x2c8b28(0x2ae)](_0x323b96=>_0x323b96[_0x2c8b28(0x2a6)]());}['getCollabCursors$'](_0x156843){const _0x1de0ed=_0x183fa5;return this[_0x1de0ed(0x25a)][_0x1de0ed(0x1e3)](_0x156843)?this['_entities'][_0x1de0ed(0x2dc)](_0x156843)[_0x1de0ed(0x201)]:this[_0x1de0ed(0x3cf)]['pipe'](d['filter'](_0x4b1920=>_0x4b1920['unitID']===_0x156843),d[_0x1de0ed(0x26c)](_0x4919b0=>_0x4919b0[_0x1de0ed(0x201)]));}[_0x183fa5(0x240)](){const _0x3fb92e=_0x183fa5;this[_0x3fb92e(0x28f)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x3fb92e(0x407)])[_0x3fb92e(0x213)](d[_0x3fb92e(0x351)](this[_0x3fb92e(0x22f)]))['subscribe'](async _0x2a645f=>{const _0x54a508=_0x3fb92e,_0x428603=_0x2a645f[_0x54a508(0x3bf)](),_0x1934c8=await this[_0x54a508(0x203)](_0x428603);this['_entityInit$'][_0x54a508(0x254)](_0x1934c8),this['_entities'][_0x54a508(0x279)](_0x428603,_0x1934c8);}),this[_0x3fb92e(0x28f)][_0x3fb92e(0x1f3)](a[_0x3fb92e(0x2f4)][_0x3fb92e(0x2c8)])[_0x3fb92e(0x213)](d[_0x3fb92e(0x351)](this[_0x3fb92e(0x22f)]))[_0x3fb92e(0x213)](d[_0x3fb92e(0x1b0)](_0x6ce48c=>!_0x6ce48c['getUnitId']()[_0x3fb92e(0x1a7)]('__')))['subscribe'](async _0x148c05=>{const _0x42c2bf=_0x3fb92e,_0x2471be=_0x148c05[_0x42c2bf(0x3bf)](),_0x2bd264=await this[_0x42c2bf(0x34a)](_0x2471be);this['_entityInit$']['next'](_0x2bd264),this[_0x42c2bf(0x25a)]['set'](_0x2471be,_0x2bd264);}),d['merge'](this[_0x3fb92e(0x28f)][_0x3fb92e(0x2a4)](a[_0x3fb92e(0x2f4)][_0x3fb92e(0x2c8)]),this[_0x3fb92e(0x28f)][_0x3fb92e(0x2a4)](a[_0x3fb92e(0x2f4)]['UNIVER_SHEET']))[_0x3fb92e(0x213)](d[_0x3fb92e(0x351)](this[_0x3fb92e(0x22f)]))[_0x3fb92e(0x24c)](_0x7687e8=>{const _0x58079d=_0x3fb92e,_0x52db79=_0x7687e8['getUnitId'](),_0x12624a=this[_0x58079d(0x25a)][_0x58079d(0x2dc)](_0x52db79);_0x12624a&&(_0x12624a[_0x58079d(0x2a6)](),this[_0x58079d(0x25a)]['delete'](_0x52db79));});}async[_0x183fa5(0x203)](_0x33d98f){const _0x37eb03=_0x183fa5,_0x4947fe=await this[_0x37eb03(0x2be)][_0x37eb03(0x281)](_0x33d98f),_0x370977=this[_0x37eb03(0x20a)][_0x37eb03(0x32c)](Se,_0x33d98f,_0x4947fe);return _0x370977[_0x37eb03(0x2b0)](),_0x370977;}async[_0x183fa5(0x34a)](_0x5502c7){const _0x94d5c6=_0x183fa5,_0x4cd7fd=await this[_0x94d5c6(0x2be)][_0x94d5c6(0x281)](_0x5502c7),_0x24196e=this['_injector']['createInstance'](fe,_0x5502c7,_0x4cd7fd);return _0x24196e['init'](),_0x24196e;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),ie(0x2,a[_0x183fa5(0x3dc)](u['CollaborationSessionService']))],x);const q=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4a7f52,_0x53e658){const _0x59ff11=_0x183fa5;let {radius:_0x1b3044,width:_0x37621c,height:_0x54de69}=_0x53e658;_0x1b3044=_0x1b3044!=null?_0x1b3044:0x0,_0x37621c=_0x37621c!=null?_0x37621c:0x1e,_0x54de69=_0x54de69!=null?_0x54de69:0x1e;let _0x2bb4a2=0x0,_0x12c839=0x0,_0x2efbee=0x0;_0x2bb4a2=_0x12c839=_0x2efbee=Math[_0x59ff11(0x250)](_0x1b3044,_0x37621c/0x2,_0x54de69/0x2),_0x4a7f52[_0x59ff11(0x235)](),_0x4a7f52[_0x59ff11(0x38b)](_0x2bb4a2,0x0),_0x4a7f52[_0x59ff11(0x1b4)](_0x37621c-_0x12c839,0x0),_0x4a7f52['arc'](_0x37621c-_0x12c839,_0x12c839,_0x12c839,Math['PI']*0x3/0x2,0x0,!0x1),_0x4a7f52['lineTo'](_0x37621c,_0x54de69-_0x2efbee),_0x4a7f52[_0x59ff11(0x3c3)](_0x37621c-_0x2efbee,_0x54de69-_0x2efbee,_0x2efbee,0x0,Math['PI']/0x2,!0x1),_0x4a7f52[_0x59ff11(0x1b4)](0x0,_0x54de69),_0x4a7f52[_0x59ff11(0x1b4)](0x0,_0x2bb4a2),_0x4a7f52['arc'](_0x2bb4a2,_0x2bb4a2,_0x2bb4a2,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4a7f52['closePath'](),_0x53e658[_0x59ff11(0x3c4)]&&(_0x4a7f52[_0x59ff11(0x2fc)](),_0x4a7f52['fillStyle']=_0x53e658[_0x59ff11(0x3c4)],_0x53e658[_0x59ff11(0x368)]===_0x59ff11(0x259)?_0x4a7f52[_0x59ff11(0x3c4)]('evenodd'):_0x4a7f52['fill'](),_0x4a7f52[_0x59ff11(0x36c)]());}class ee extends p[_0x183fa5(0x384)]{constructor(_0x63a059,_0x2c7ffc){const _0x41fce9=_0x183fa5;super(_0x63a059,_0x2c7ffc),h(this,_0x41fce9(0x2af)),h(this,_0x41fce9(0x364)),(this[_0x41fce9(0x2af)]=_0x2c7ffc==null?void 0x0:_0x2c7ffc[_0x41fce9(0x2af)],this[_0x41fce9(0x364)]=_0x2c7ffc==null?void 0x0:_0x2c7ffc[_0x41fce9(0x364)]);}static[_0x183fa5(0x334)](_0x5920db,_0x6fb295){const _0x1f99f4=_0x183fa5,{text:_0x2194ac,color:_0x22ee31}=_0x6fb295;_0x5920db[_0x1f99f4(0x2fc)](),_0x5920db[_0x1f99f4(0x35b)]=_0x1f99f4(0x32b);const _0x22e99d=_0x5920db['measureText'](_0x2194ac)['width'],_0x1e52d9=Math[_0x1f99f4(0x250)](_0x22e99d+0x2*ne,Re);_t(_0x5920db,{'height':q,'radius':0x4,'width':_0x1e52d9,'fill':_0x22ee31}),_0x5920db['fillStyle']=_0x1f99f4(0x37d);const _0x1860b5=ne,_0x2b0048=q-lt,_0x5a5fcc=Re-0x2*ne;if(_0x22e99d>_0x5a5fcc){let _0x11c0b6='',_0xa765c3=0x0;for(const _0x5ca0ba of _0x2194ac){const _0x411993=_0x5920db[_0x1f99f4(0x3d7)](_0x5ca0ba)[_0x1f99f4(0x2e5)];if(_0xa765c3+_0x411993<=_0x5a5fcc-_0x5920db[_0x1f99f4(0x3d7)](_0x1f99f4(0x342))['width'])_0x11c0b6+=_0x5ca0ba,_0xa765c3+=_0x411993;else{_0x11c0b6+=_0x1f99f4(0x342);break;}}_0x5920db[_0x1f99f4(0x3c6)](_0x11c0b6,_0x1860b5,_0x2b0048);}else _0x5920db[_0x1f99f4(0x3c6)](_0x2194ac,_0x1860b5,_0x2b0048);_0x5920db[_0x1f99f4(0x36c)]();}[_0x183fa5(0x28b)](_0x3e6c6f){const _0x247058=_0x183fa5;ee[_0x247058(0x334)](_0x3e6c6f,this);}}const re=_0x183fa5(0x376),ht='collab-text-range-',ut=_0x183fa5(0x2ef),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x183fa5(0x274);class De{constructor(_0x161aa0,_0x185b64,_0x2672df,_0x43cded){const _0x3670e8=_0x183fa5;h(this,_0x3670e8(0x302),[]),h(this,'_anchor',null),h(this,_0x3670e8(0x232),null),h(this,_0x3670e8(0x38a),null),h(this,_0x3670e8(0x3b4),null),h(this,_0x3670e8(0x2f7),null),(this[_0x3670e8(0x3f0)]=_0x161aa0,this[_0x3670e8(0x3e0)]=_0x185b64,this[_0x3670e8(0x3e6)]=_0x2672df,this[_0x3670e8(0x2cc)]=_0x43cded,this[_0x3670e8(0x3d0)]());}set['_hover'](_0x1468e3){const _0x556584=_0x183fa5;_0x1468e3?(this['_anchorDot']&&this[_0x556584(0x38a)]['hide'](),this[_0x556584(0x232)]&&this['_textBubble'][_0x556584(0x19d)]()):(this[_0x556584(0x38a)]&&this[_0x556584(0x38a)][_0x556584(0x19d)](),this[_0x556584(0x232)]&&this[_0x556584(0x232)][_0x556584(0x315)]());}[_0x183fa5(0x2a6)](){const _0x41f254=_0x183fa5;for(const _0x1b6054 of this[_0x41f254(0x302)])_0x1b6054['dispose']();this[_0x41f254(0x232)]&&this['_textBubble'][_0x41f254(0x2a6)](),this[_0x41f254(0x38a)]&&this[_0x41f254(0x38a)][_0x41f254(0x2a6)](),this[_0x41f254(0x1ae)]&&this[_0x41f254(0x1ae)][_0x41f254(0x2a6)](),this[_0x41f254(0x2f7)]&&this[_0x41f254(0x2f7)]();}[_0x183fa5(0x3d0)](){const _0x12f2a9=_0x183fa5;var _0x27acfe;const {_docSkeleton:_0x1f710a,_document:_0x1b026a}=this,{color:_0x159424,name:_0x40094b,ranges:_0x540469}=this[_0x12f2a9(0x3f0)],_0x2ab85c=_0x1b026a['getOffsetConfig'](),{docsLeft:_0x598018,docsTop:_0x400408}=_0x2ab85c,_0x2cf820=new b[(_0x12f2a9(0x21f))](_0x2ab85c,_0x1f710a);for(const {startOffset:_0x30807d,endOffset:_0x320ca7,rangeType:_0x19b100,segmentId:_0x5498b6,segmentPage:_0xad840c,collapsed:_0xda4cc0,isActive:_0x23c6b8}of _0x540469){const _0x16fa40=_0x1f710a[_0x12f2a9(0x2f2)](_0x30807d,!0x0,_0x5498b6,_0xad840c);let _0x387461=_0x1f710a['findNodePositionByCharIndex'](_0x320ca7,!0x0,_0x5498b6,_0xad840c);if(_0x387461==null&&(_0x387461=_0x1f710a['findNodePositionByCharIndex'](_0x320ca7-0x1,!0x1,_0x5498b6,_0xad840c)),_0x23c6b8){const {contentBoxPointGroup:_0x4560c2}=_0x2cf820[_0x12f2a9(0x344)](_0x387461,_0x387461);if(_0x4560c2['length']===0x0)continue;this[_0x12f2a9(0x3e7)](_0x159424,_0x4560c2,_0x598018,_0x400408,_0x40094b),this[_0x12f2a9(0x2f7)]=this[_0x12f2a9(0x3e5)]();}if(_0x16fa40&&_0x387461){if(_0x19b100===a[_0x12f2a9(0x27b)][_0x12f2a9(0x2db)]){const _0x4e0a29=new b['NodePositionConvertToRectRange'](_0x2ab85c,_0x1f710a),{pointGroup:_0x321f59}=(_0x27acfe=_0x4e0a29[_0x12f2a9(0x344)](_0x16fa40,_0x387461))!=null?_0x27acfe:{};if(_0x321f59==null||_0x321f59[_0x12f2a9(0x260)]===0x0)continue;this['_drawRectRange'](_0x159424,_0x321f59,_0x598018,_0x400408);}else{if(!_0xda4cc0){const {borderBoxPointGroup:_0x4d6d6f}=_0x2cf820[_0x12f2a9(0x344)](_0x16fa40,_0x387461);if(_0x4d6d6f[_0x12f2a9(0x260)]===0x0)continue;this['_drawTextRange'](_0x159424,_0x4d6d6f,_0x598018,_0x400408);}}}}}[_0x183fa5(0x3e7)](_0x2452eb,_0x4d60a1,_0x1b4a80,_0x43cb19,_0x43bfd1){const _0x5d6624=_0x183fa5,_0x186770=this['_getAnchorBounding'](_0x4d60a1),{left:_0x1d24e6,top:_0x299aef,height:_0x2ca1ef}=_0x186770,_0x590f26=this[_0x5d6624(0x20d)](),_0x1d2cd7=ft/_0x590f26,_0x17e76e=new p[(_0x5d6624(0x3d8))](re+a[_0x5d6624(0x2e2)][_0x5d6624(0x273)](k),{'left':_0x1d24e6+_0x1b4a80-_0x1d2cd7,'top':_0x299aef+_0x43cb19,'height':_0x2ca1ef,'width':dt,'fill':_0x2452eb||p[_0x5d6624(0x1dd)](a['COLORS'][_0x5d6624(0x361)],0x0),'strokeWidth':_0x1d2cd7,'stroke':St,'evented':!0x0});this[_0x5d6624(0x1ae)]=_0x17e76e,this['_scene'][_0x5d6624(0x3a5)](_0x17e76e,b[_0x5d6624(0x1ad)]);const _0x5c22a8=new p[(_0x5d6624(0x3d8))](re+a[_0x5d6624(0x2e2)]['generateRandomId'](k),{'left':_0x1d24e6+_0x1b4a80-_0x1d2cd7,'top':_0x299aef+_0x43cb19-oe/0x2,'height':oe,'width':oe,'fill':_0x2452eb||p[_0x5d6624(0x1dd)](a[_0x5d6624(0x2d9)][_0x5d6624(0x361)],0x0),'strokeWidth':0x0,'stroke':_0x2452eb||p[_0x5d6624(0x1dd)](a[_0x5d6624(0x2d9)][_0x5d6624(0x361)],0x0),'evented':!0x1});this[_0x5d6624(0x38a)]=_0x5c22a8,this[_0x5d6624(0x3e0)]['addObject'](_0x5c22a8,b['TEXT_RANGE_LAYER_INDEX']);const _0x46cd0f=new ee(re+a[_0x5d6624(0x2e2)]['generateRandomId'](k),{'left':_0x1d24e6+_0x1b4a80-_0x1d2cd7,'top':_0x299aef+_0x43cb19-q,'text':_0x43bfd1,'color':_0x2452eb});this[_0x5d6624(0x232)]=_0x46cd0f,this[_0x5d6624(0x3e0)][_0x5d6624(0x3a5)](_0x46cd0f,b[_0x5d6624(0x1ad)]),this['_hover']=!0x1;}[_0x183fa5(0x3e5)](){const _0xd66161=_0x183fa5,_0x5f1f8e=this[_0xd66161(0x1ae)][_0xd66161(0x37c)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x2c4ed0=this[_0xd66161(0x1ae)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x1b6561=_0xd66161;this[_0x1b6561(0x3b4)]&&clearTimeout(this[_0x1b6561(0x3b4)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x41a593=_0xd66161;_0x5f1f8e[_0x41a593(0x330)](),_0x2c4ed0[_0x41a593(0x330)]();};}[_0x183fa5(0x40a)](_0x3ce63e,_0x476152,_0x22a981,_0x18a6d7){const _0x202b82=_0x183fa5,_0x3ddbd2=new a['ColorKit'](_0x3ce63e)[_0x202b82(0x404)](0.2)['toRgbString'](),_0x3dbf63=new p[(_0x202b82(0x1d0))](ht+a['Tools'][_0x202b82(0x273)](k),{'pointsGroup':_0x476152,'fill':_0x3ddbd2||p[_0x202b82(0x1dd)](a[_0x202b82(0x2d9)][_0x202b82(0x361)],0.2),'left':_0x22a981,'top':_0x18a6d7,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x3dbf63),this[_0x202b82(0x3e0)][_0x202b82(0x3a5)](_0x3dbf63,b[_0x202b82(0x1ad)]);}[_0x183fa5(0x2ca)](_0x38e819,_0x156826,_0x1c5371,_0x3bd35f){const _0x9bdb0=_0x183fa5,_0x27bd38=new a['ColorKit'](_0x38e819)['setAlpha'](0.2)[_0x9bdb0(0x40d)](),_0x284fd3=new p[(_0x9bdb0(0x1d0))](ut+a['Tools']['generateRandomId'](k),{'pointsGroup':_0x156826,'fill':_0x27bd38||p[_0x9bdb0(0x1dd)](a[_0x9bdb0(0x2d9)][_0x9bdb0(0x361)],0.2),'left':_0x1c5371,'top':_0x3bd35f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x9bdb0(0x302)][_0x9bdb0(0x2a0)](_0x284fd3),this[_0x9bdb0(0x3e0)]['addObject'](_0x284fd3,b[_0x9bdb0(0x1ad)]);}['_getAnchorBounding'](_0x5e32a6){const _0x2fa59b=_0x5e32a6[0x0],_0x27573f=_0x2fa59b[0x0],_0x300f5a=_0x2fa59b[0x2],{x:_0x43e381,y:_0x4886ee}=_0x27573f,{x:_0x1a9815,y:_0x102959}=_0x300f5a;return{'left':_0x43e381,'top':_0x4886ee,'width':_0x1a9815-_0x43e381,'height':_0x102959-_0x4886ee};}[_0x183fa5(0x20d)](){const _0x8b36f3=_0x183fa5,{scaleX:_0x424296,scaleY:_0xcd946}=this[_0x8b36f3(0x3e0)][_0x8b36f3(0x1fe)]();return Math['max'](_0x424296,_0xcd946);}}var It=Object[_0x183fa5(0x255)],vt=(_0x5da1fa,_0x52e93f,_0x417b96,_0x571ae3)=>{const _0x2461fc=_0x183fa5;for(var _0x1a12b5=_0x571ae3>0x1?void 0x0:_0x571ae3?It(_0x52e93f,_0x417b96):_0x52e93f,_0x4aa603=_0x5da1fa[_0x2461fc(0x260)]-0x1,_0x32e1b1;_0x4aa603>=0x0;_0x4aa603--)(_0x32e1b1=_0x5da1fa[_0x4aa603])&&(_0x1a12b5=_0x32e1b1(_0x1a12b5)||_0x1a12b5);return _0x1a12b5;},Y=(_0x4211d8,_0x6d77ca)=>(_0x31d653,_0x3395c5)=>_0x6d77ca(_0x31d653,_0x3395c5,_0x4211d8);let Ie=class extends a[_0x183fa5(0x3b8)]{constructor(_0x22f30f,_0x33e117,_0x54ceb0,_0x47a908,_0x163e42){const _0x38cc12=_0x183fa5;super(),h(this,_0x38cc12(0x1a8),[]),h(this,_0x38cc12(0x25c),[]),(this[_0x38cc12(0x2b2)]=_0x22f30f,this['_docSkeletonManagerService']=_0x33e117,this[_0x38cc12(0x30e)]=_0x54ceb0,this['_commandService']=_0x47a908,this['_themeService']=_0x163e42,this[_0x38cc12(0x240)]());}[_0x183fa5(0x240)](){const _0x276e52=_0x183fa5,_0x34c162=this[_0x276e52(0x2b2)][_0x276e52(0x34f)],_0x4c49f6=this[_0x276e52(0x212)];this[_0x276e52(0x220)](d[_0x276e52(0x1d9)]([this[_0x276e52(0x30e)][_0x276e52(0x1c3)](_0x34c162),this[_0x276e52(0x272)][_0x276e52(0x3a4)]])[_0x276e52(0x213)]($[_0x276e52(0x38f)](([_0x282903,_0x7c2e8d])=>({'skeleton':_0x4c49f6[_0x276e52(0x310)](),'cursors':[..._0x282903[_0x276e52(0x1f9)]()][_0x276e52(0x3b7)](_0x1cb85c=>({..._0x1cb85c,'color':_0x7c2e8d[_0x1cb85c[_0x276e52(0x2af)]]}))})))[_0x276e52(0x24c)](_0x4bcbe3=>{const _0x5253ca=_0x276e52;if(this[_0x5253ca(0x3ca)](),_0x4bcbe3){const {skeleton:_0x57dc1e,cursors:_0xac2070}=_0x4bcbe3;this[_0x5253ca(0x1e5)](_0x57dc1e,_0xac2070);}})),this[_0x276e52(0x28c)](),this[_0x276e52(0x400)]();}['_updateCollabCursors'](_0x2e78e4,_0x2e8f4d){const _0x288e08=_0x183fa5,{scene:_0x13d2e4,mainComponent:_0x1ae60a}=this[_0x288e08(0x2b2)],_0xd41fe5=_0x2e8f4d[_0x288e08(0x38f)](_0x45d9b5=>new De(_0x45d9b5,_0x13d2e4,_0x2e78e4,_0x1ae60a));this[_0x288e08(0x1a8)]=_0xd41fe5,this[_0x288e08(0x25c)]=_0x2e8f4d;}['_refreshCollabCursors'](){const _0x42ee80=_0x183fa5;this[_0x42ee80(0x3ca)]();const {scene:_0x10c567,mainComponent:_0x494e7b}=this[_0x42ee80(0x2b2)],_0x50d02=this[_0x42ee80(0x212)]['getSkeleton'](),_0x35f8c7=this[_0x42ee80(0x25c)][_0x42ee80(0x38f)](_0x438a31=>new De(_0x438a31,_0x10c567,_0x50d02,_0x494e7b));this['_cursorShapes']=_0x35f8c7;}[_0x183fa5(0x3ca)](){const _0x5b13bd=_0x183fa5;this[_0x5b13bd(0x1a8)][_0x5b13bd(0x2ae)](_0x2ee737=>_0x2ee737[_0x5b13bd(0x2a6)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x1d2b1=_0x183fa5,_0x33b14b=[b['SetDocZoomRatioOperation']['id']];this[_0x1d2b1(0x220)](this[_0x1d2b1(0x210)][_0x1d2b1(0x271)](_0x4fd54c=>{const _0x3e40e2=_0x1d2b1;_0x33b14b['includes'](_0x4fd54c['id'])&&_0x4fd54c[_0x3e40e2(0x1c1)][_0x3e40e2(0x34f)]===this['_context'][_0x3e40e2(0x34f)]&&this[_0x3e40e2(0x29b)]();}));}[_0x183fa5(0x28c)](){const _0x427c93=_0x183fa5;this['disposeWithMe'](a[_0x427c93(0x1db)](this['_context'][_0x427c93(0x348)][_0x427c93(0x1b3)])[_0x427c93(0x213)]($['filter'](_0x4e8231=>_0x4e8231[_0x427c93(0x2c9)]===p[_0x427c93(0x1ea)][_0x427c93(0x322)]),$[_0x427c93(0x349)](0x10))[_0x427c93(0x24c)](()=>{const _0x77416f=_0x427c93;this[_0x77416f(0x29b)]();}));}};Ie=vt([Y(0x1,a[_0x183fa5(0x3dc)](W[_0x183fa5(0x313)])),Y(0x2,a[_0x183fa5(0x3dc)](x)),Y(0x3,a['ICommandService']),Y(0x4,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x341)]))],Ie);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x101c64,_0x5bc8c0){const _0x2e80ac=_0x183fa5;super(_0x101c64,_0x5bc8c0),h(this,_0x2e80ac(0x252)),h(this,_0x2e80ac(0x1eb),!0x1),h(this,'_range'),h(this,_0x2e80ac(0x1c0),''),h(this,'_labelPosition',_0x2e80ac(0x1a0)),h(this,_0x2e80ac(0x40e)),(_0x5bc8c0&&this[_0x2e80ac(0x399)](_0x5bc8c0),this[_0x2e80ac(0x37c)][_0x2e80ac(0x3a1)](()=>this[_0x2e80ac(0x399)]({'hovered':!0x0})),this['onPointerLeave$'][_0x2e80ac(0x3a1)](()=>this[_0x2e80ac(0x399)]({'hovered':!0x1})));}[_0x183fa5(0x399)](_0x3c6fdb){const _0x2c8def=_0x183fa5;var _0x1ac860,_0x28ab32,_0x2cb95a,_0x39e395,_0x2086a9,_0x57982f;this[_0x2c8def(0x252)]=(_0x1ac860=_0x3c6fdb[_0x2c8def(0x2af)])!=null?_0x1ac860:this[_0x2c8def(0x252)],this[_0x2c8def(0x1eb)]=(_0x28ab32=_0x3c6fdb[_0x2c8def(0x243)])!=null?_0x28ab32:this[_0x2c8def(0x1eb)],this[_0x2c8def(0x297)]=(_0x2cb95a=_0x3c6fdb[_0x2c8def(0x332)])!=null?_0x2cb95a:this[_0x2c8def(0x297)],this[_0x2c8def(0x1c0)]=(_0x39e395=_0x3c6fdb[_0x2c8def(0x393)])!=null?_0x39e395:this[_0x2c8def(0x1c0)],this['_labelPosition']=(_0x2086a9=_0x3c6fdb['labelPosition'])!=null?_0x2086a9:this[_0x2c8def(0x221)],this['_backgroundColor']=(_0x57982f=_0x3c6fdb[_0x2c8def(0x307)])!=null?_0x57982f:this[_0x2c8def(0x40e)],this[_0x2c8def(0x1c4)]({'width':_0x3c6fdb[_0x2c8def(0x2e5)],'height':_0x3c6fdb[_0x2c8def(0x3bc)]});}[_0x183fa5(0x397)](_0x4ed643){const _0x11ea24=_0x183fa5,{row:_0x3030f9,column:_0x52d6f6}=_0x4ed643;if(_0x3030f9>=this[_0x11ea24(0x297)]['startRow']&&_0x3030f9<=this[_0x11ea24(0x297)]['endRow']&&_0x52d6f6>=this[_0x11ea24(0x297)][_0x11ea24(0x34d)]&&_0x52d6f6<=this[_0x11ea24(0x297)][_0x11ea24(0x299)]){this[_0x11ea24(0x399)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x183fa5(0x236)](_0x3fcdf6){return!0x1;}[_0x183fa5(0x28b)](_0x545844){const _0x58e7d9=_0x183fa5;p[_0x58e7d9(0x3d8)]['drawWith'](_0x545844,{'width':this['width'],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x58e7d9(0x252)],'evented':!0x1,'fill':this[_0x58e7d9(0x40e)]}),this[_0x58e7d9(0x1eb)]&&(_0x545844[_0x58e7d9(0x2fc)](),_0x545844['transform'](0x1,0x0,0x0,0x1,this['width'],this[_0x58e7d9(0x221)]===_0x58e7d9(0x331)?0x0:-0x14),ee[_0x58e7d9(0x334)](_0x545844,{'text':this[_0x58e7d9(0x1c0)],'color':this[_0x58e7d9(0x252)]}),_0x545844[_0x58e7d9(0x36c)]());}}var Ct=Object[_0x183fa5(0x255)],pt=(_0xf28422,_0x36e86d,_0x293a0c,_0x14f996)=>{const _0x49efbb=_0x183fa5;for(var _0x11480b=_0x14f996>0x1?void 0x0:_0x14f996?Ct(_0x36e86d,_0x293a0c):_0x36e86d,_0x41f8ac=_0xf28422[_0x49efbb(0x260)]-0x1,_0x4c1cc8;_0x41f8ac>=0x0;_0x41f8ac--)(_0x4c1cc8=_0xf28422[_0x41f8ac])&&(_0x11480b=_0x4c1cc8(_0x11480b)||_0x11480b);return _0x11480b;},ae=(_0x2bfe7c,_0x309ee5)=>(_0x4a8a71,_0x522d61)=>_0x309ee5(_0x4a8a71,_0x522d61,_0x2bfe7c);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x5e2abb,_0x1e6a89,_0x54b864,_0x26c140){const _0x4e01c3=_0x183fa5;super(),h(this,'_cursors',new Set()),h(this,_0x4e01c3(0x372),null),(this[_0x4e01c3(0x2b2)]=_0x5e2abb,this[_0x4e01c3(0x1fc)]=_0x1e6a89,this[_0x4e01c3(0x30e)]=_0x54b864,this['_themeService']=_0x26c140,this[_0x4e01c3(0x240)]());}[_0x183fa5(0x240)](){const _0x22f058=_0x183fa5;this['_sheetSkeletonManagerService'][_0x22f058(0x327)][_0x22f058(0x213)]($[_0x22f058(0x351)](this[_0x22f058(0x22f)]),$[_0x22f058(0x26c)](_0x5c452d=>{const _0x52cf07=_0x22f058;if(_0x5c452d){const _0x4fdcc6=_0x5c452d[_0x52cf07(0x2d0)];return d[_0x52cf07(0x1d9)](this[_0x52cf07(0x30e)][_0x52cf07(0x1c3)](this['_context'][_0x52cf07(0x34f)]),this[_0x52cf07(0x272)][_0x52cf07(0x3a4)])[_0x52cf07(0x213)]($[_0x52cf07(0x38f)](([_0x492b9c,_0x3729d6])=>{const _0x1e208a=_0x52cf07,_0x32ff73=new Map();return _0x492b9c[_0x1e208a(0x2ae)]((_0x599025,_0x2d053d)=>{const _0x1aa9b8=_0x1e208a;if(_0x599025['sheetID']===_0x4fdcc6){const _0x38ff4b={..._0x599025};_0x38ff4b[_0x1aa9b8(0x2af)]=_0x3729d6[_0x599025['color']],_0x32ff73[_0x1aa9b8(0x279)](_0x2d053d,_0x38ff4b);}}),{'skeleton':_0x5c452d,'cursors':_0x32ff73};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x22f058(0x24c)](({skeleton:_0x399246,cursors:_0x9e875f})=>{const _0x37ab67=_0x22f058;this[_0x37ab67(0x3ca)](),_0x399246&&this[_0x37ab67(0x1e5)](_0x399246,_0x9e875f);}),this[_0x22f058(0x1fc)][_0x22f058(0x327)]['subscribe'](_0x2995ce=>{const _0x5bc748=_0x22f058;if(_0x2995ce==null)return;const {skeleton:_0x4372b3}=_0x2995ce,{scene:_0x5ac7a7}=this[_0x5bc748(0x2b2)];_0x5ac7a7[_0x5bc748(0x26a)][_0x5bc748(0x3a1)](a[_0x5bc748(0x3be)](_0x5c454c=>{const _0x2cb856=_0x5bc748;var _0x3c115a,_0x58f813;const {offsetX:_0x6a2954,offsetY:_0x5befc3}=_0x5c454c,{x:_0x549ccd,y:_0x1a1863}=_0x5ac7a7['getRelativeToViewportCoord'](p[_0x2cb856(0x263)][_0x2cb856(0x253)]([_0x6a2954,_0x5befc3])),{scaleX:_0x3ba3c0,scaleY:_0x262e40}=_0x5ac7a7[_0x2cb856(0x1fe)](),_0x116d6e=_0x5ac7a7[_0x2cb856(0x389)](p[_0x2cb856(0x312)][_0x2cb856(0x231)]),_0x3f35e8=_0x5ac7a7[_0x2cb856(0x28a)](p['Vector2'][_0x2cb856(0x253)]([_0x549ccd,_0x1a1863]),_0x116d6e),_0x77fd94=_0x4372b3[_0x2cb856(0x2b6)](_0x6a2954,_0x5befc3,_0x3ba3c0,_0x262e40,_0x3f35e8);((_0x3c115a=this['_lastPointer'])==null?void 0x0:_0x3c115a[_0x2cb856(0x20f)])===_0x77fd94[_0x2cb856(0x20f)]&&((_0x58f813=this['_lastPointer'])==null?void 0x0:_0x58f813[_0x2cb856(0x3a7)])===_0x77fd94[_0x2cb856(0x3a7)]||this['_cursors'][_0x2cb856(0x2ae)](_0xd5716e=>{const _0x5f1ae0=_0x2cb856;_0xd5716e[_0x5f1ae0(0x397)](_0x77fd94);});},0x64));});}[_0x183fa5(0x1e5)](_0x528e3e,_0x5d94a1){const _0x4b3fff=_0x183fa5;var _0x3134da;const _0x6a0e45=(_0x3134da=this[_0x4b3fff(0x1fc)][_0x4b3fff(0x337)]())==null?void 0x0:_0x3134da['skeleton'];if(!_0x6a0e45)return;const _0x3a883e=this[_0x4b3fff(0x30f)]();if(!_0x3a883e)return;this[_0x4b3fff(0x25c)]['forEach'](_0xcce07d=>{const _0x5edb13=_0x4b3fff;_0xcce07d[_0x5edb13(0x298)]();});const {scene:_0xa0e30}=_0x3a883e,_0x55b995=Et(Array[_0x4b3fff(0x37b)](_0x5d94a1[_0x4b3fff(0x1f9)]()))[_0x4b3fff(0x38f)](_0x386462=>{const _0x3f2eaa=_0x4b3fff,{color:_0xa7dbd2,range:_0xf784f5,name:_0x1c9623,selection:_0x37aa41,sheetID:_0x537e9d}=_0x386462,{startColumn:_0x40509e,startRow:_0x44e9ad,endColumn:_0x45e7a1,endRow:_0x4ac308}=_0xf784f5,_0x1a38ab=X[_0x3f2eaa(0x336)](_0x44e9ad,_0x40509e,_0xa0e30,_0x6a0e45),_0x45a0cf=X[_0x3f2eaa(0x336)](_0x4ac308,_0x45e7a1,_0xa0e30,_0x6a0e45),{columnHeaderHeightAndMarginTop:_0x6ccbec}=_0x6a0e45,{startX:_0x598aaa,startY:_0x4a5371}=_0x1a38ab,{endX:_0xd7190c,endY:_0x1a9d5d}=_0x45a0cf,_0x4afb3e=_0xd7190c-_0x598aaa,_0x1ffab0=_0x1a9d5d-_0x4a5371,_0x1deda5={'labelPosition':_0x4a5371-_0x6ccbec>=q?_0x3f2eaa(0x1a0):'bottom','sheetID':_0x537e9d,'range':_0xf784f5,'color':_0xa7dbd2,'name':_0x1c9623,'selection':_0x37aa41,'left':_0x598aaa,'top':_0x4a5371,'width':_0x4afb3e,'height':_0x1ffab0,'evented':!0x1,'zIndex':bt};return new we(_0x1c9623,_0x1deda5);});_0xa0e30[_0x4b3fff(0x218)](_0x55b995,gt),this['_cursors']=new Set(_0x55b995);}[_0x183fa5(0x3ca)](){const _0x1e5d52=_0x183fa5;var _0x3c9e79;(_0x3c9e79=this[_0x1e5d52(0x25c)])==null||_0x3c9e79[_0x1e5d52(0x2ae)](_0x538503=>_0x538503['dispose']());}[_0x183fa5(0x30f)](){const _0x5cecde=_0x183fa5;return X[_0x5cecde(0x409)](this[_0x5cecde(0x2b2)]['unit'],this['_context']);}};ve=pt([ae(0x1,a[_0x183fa5(0x3dc)](X['SheetSkeletonManagerService'])),ae(0x2,a[_0x183fa5(0x3dc)](x)),ae(0x3,a['Inject'](a[_0x183fa5(0x341)]))],ve);function Et(_0xe5cd0){const _0x4266ab=_0x183fa5,_0x543aa1=new Map();return _0xe5cd0[_0x4266ab(0x2ae)](_0x49b9ee=>{const _0x37e754=_0x4266ab;if(_0x543aa1[_0x37e754(0x1e3)](_0x49b9ee[_0x37e754(0x359)])){const _0x26ae6f=_0x543aa1[_0x37e754(0x2dc)](_0x49b9ee['selection']);_0x26ae6f[_0x37e754(0x393)]+=',\x20'+_0x49b9ee[_0x37e754(0x393)];}else _0x543aa1[_0x37e754(0x279)](_0x49b9ee[_0x37e754(0x359)],_0x49b9ee);}),Array[_0x4266ab(0x37b)](_0x543aa1['values']());}var E=function(){const _0x2d7cc2=_0x183fa5;return E=Object[_0x2d7cc2(0x3f7)]||function(_0x56e703){const _0x544184=_0x2d7cc2;for(var _0x1fd305,_0x4b9f36=0x1,_0xedca92=arguments['length'];_0x4b9f36<_0xedca92;_0x4b9f36++){_0x1fd305=arguments[_0x4b9f36];for(var _0x158953 in _0x1fd305)Object[_0x544184(0x1f7)][_0x544184(0x238)][_0x544184(0x24b)](_0x1fd305,_0x158953)&&(_0x56e703[_0x158953]=_0x1fd305[_0x158953]);}return _0x56e703;},E[_0x2d7cc2(0x1fd)](this,arguments);},Tt=function(_0x211fd2,_0x19bee5){const _0x1e740b=_0x183fa5;var _0x3647e7={};for(var _0x453dea in _0x211fd2)Object[_0x1e740b(0x1f7)]['hasOwnProperty'][_0x1e740b(0x24b)](_0x211fd2,_0x453dea)&&_0x19bee5[_0x1e740b(0x23d)](_0x453dea)<0x0&&(_0x3647e7[_0x453dea]=_0x211fd2[_0x453dea]);if(_0x211fd2!=null&&typeof Object[_0x1e740b(0x2f3)]==_0x1e740b(0x1e4)){for(var _0xa35888=0x0,_0x453dea=Object[_0x1e740b(0x2f3)](_0x211fd2);_0xa35888<_0x453dea[_0x1e740b(0x260)];_0xa35888++)_0x19bee5[_0x1e740b(0x23d)](_0x453dea[_0xa35888])<0x0&&Object[_0x1e740b(0x1f7)][_0x1e740b(0x289)][_0x1e740b(0x24b)](_0x211fd2,_0x453dea[_0xa35888])&&(_0x3647e7[_0x453dea[_0xa35888]]=_0x211fd2[_0x453dea[_0xa35888]]);}return _0x3647e7;},pe=M[_0x183fa5(0x356)](function(_0x3b0289,_0x1f224d){const _0x4697e8=_0x183fa5;var _0x44b79a=_0x3b0289['icon'],_0x3c88f5=_0x3b0289['id'],_0x5a9a13=_0x3b0289[_0x4697e8(0x2d5)],_0x4d040d=_0x3b0289[_0x4697e8(0x207)],_0x307df2=Tt(_0x3b0289,[_0x4697e8(0x392),'id','className',_0x4697e8(0x207)]),_0x3caa70=_0x4697e8(0x317)[_0x4697e8(0x3d5)](_0x3c88f5,'\x20')['concat'](_0x5a9a13||'')['trim'](),_0x1b7faa=M[_0x4697e8(0x261)]('_'['concat'](Dt()));return Ae(_0x44b79a,''[_0x4697e8(0x3d5)](_0x3c88f5),{'defIds':_0x44b79a[_0x4697e8(0x3cd)],'idSuffix':_0x1b7faa[_0x4697e8(0x2c4)]},E({'ref':_0x1f224d,'className':_0x3caa70},_0x307df2),_0x4d040d);});function Ae(_0x4a9edc,_0x258502,_0x4f22b8,_0x19e5fd,_0x353d52){const _0x42f0e2=_0x183fa5;return M[_0x42f0e2(0x257)](_0x4a9edc['tag'],E(E({'key':_0x258502},Ot(_0x4a9edc,_0x4f22b8,_0x353d52)),_0x19e5fd),(Rt(_0x4a9edc,_0x4f22b8)['children']||[])[_0x42f0e2(0x38f)](function(_0x12bd5f,_0x1d433d){const _0x449c85=_0x42f0e2;return Ae(_0x12bd5f,''[_0x449c85(0x3d5)](_0x258502,'-')[_0x449c85(0x3d5)](_0x4a9edc[_0x449c85(0x3a6)],'-')[_0x449c85(0x3d5)](_0x1d433d),_0x4f22b8,void 0x0,_0x353d52);}));}function Ot(_0x3cf932,_0x46fdbc,_0x48b110){const _0x566f32=_0x183fa5;var _0x343b17=E({},_0x3cf932[_0x566f32(0x385)]);_0x48b110!=null&&_0x48b110[_0x566f32(0x1ef)]&&_0x343b17['fill']===_0x566f32(0x1ef)&&(_0x343b17['fill']=_0x48b110[_0x566f32(0x1ef)]),_0x3cf932[_0x566f32(0x3a6)]===_0x566f32(0x247)&&_0x343b17['id']&&(_0x343b17['id']=_0x343b17['id']+_0x46fdbc[_0x566f32(0x35e)]),Object['entries'](_0x343b17)[_0x566f32(0x2ae)](function(_0x20c300){const _0x2f2f73=_0x566f32;var _0x477b5e=_0x20c300[0x0],_0x242a99=_0x20c300[0x1];_0x477b5e===_0x2f2f73(0x247)&&typeof _0x242a99==_0x2f2f73(0x2fb)&&(_0x343b17[_0x477b5e]=_0x242a99[_0x2f2f73(0x2a2)](/url\(#(.*)\)/,_0x2f2f73(0x3ba)[_0x2f2f73(0x3d5)](_0x46fdbc[_0x2f2f73(0x35e)],')')));});var _0x47f3f8=_0x46fdbc['defIds'];return!_0x47f3f8||_0x47f3f8[_0x566f32(0x260)]===0x0||(_0x3cf932['tag']==='use'&&_0x343b17['xlink:href']&&(_0x343b17['xlink:href']=_0x343b17['xlink:href']+_0x46fdbc['idSuffix']),Object['entries'](_0x343b17)[_0x566f32(0x2ae)](function(_0x4b920e){const _0x3fe57e=_0x566f32;var _0x59abc2=_0x4b920e[0x0],_0x3b584b=_0x4b920e[0x1];typeof _0x3b584b=='string'&&(_0x343b17[_0x59abc2]=_0x3b584b[_0x3fe57e(0x2a2)](/url\(#(.*)\)/,_0x3fe57e(0x3ba)[_0x3fe57e(0x3d5)](_0x46fdbc[_0x3fe57e(0x35e)],')')));})),_0x343b17;}function Rt(_0x27bb20,_0x5f1267){const _0x578e73=_0x183fa5;var _0x1546b6,_0x309160=_0x5f1267[_0x578e73(0x3cd)];return!_0x309160||_0x309160[_0x578e73(0x260)]===0x0?_0x27bb20:_0x27bb20[_0x578e73(0x3a6)]===_0x578e73(0x290)&&(!((_0x1546b6=_0x27bb20[_0x578e73(0x2c0)])===null||_0x1546b6===void 0x0)&&_0x1546b6[_0x578e73(0x260)])?E(E({},_0x27bb20),{'children':_0x27bb20[_0x578e73(0x2c0)][_0x578e73(0x38f)](function(_0x7dc4a){const _0x4ea5f8=_0x578e73;return typeof _0x7dc4a[_0x4ea5f8(0x385)]['id']==_0x4ea5f8(0x2fb)&&_0x309160&&_0x309160[_0x4ea5f8(0x23d)](_0x7dc4a[_0x4ea5f8(0x385)]['id'])>-0x1?E(E({},_0x7dc4a),{'attrs':E(E({},_0x7dc4a[_0x4ea5f8(0x385)]),{'id':_0x7dc4a[_0x4ea5f8(0x385)]['id']+_0x5f1267[_0x4ea5f8(0x35e)]})}):_0x7dc4a;})}):_0x27bb20;}function Dt(){const _0x10cde5=_0x183fa5;return Math[_0x10cde5(0x23c)]()[_0x10cde5(0x1c7)](0x24)[_0x10cde5(0x369)](0x2,0x8);}pe[_0x183fa5(0x3d4)]=_0x183fa5(0x27a);var Ut={'tag':_0x183fa5(0x308),'attrs':{'fill':_0x183fa5(0x256),'viewBox':'0\x200\x2016\x2016','width':_0x183fa5(0x1a9),'height':_0x183fa5(0x1a9)},'children':[{'tag':'g','attrs':{'clipPath':_0x183fa5(0x1cf)},'children':[{'tag':_0x183fa5(0x227),'attrs':{'stroke':_0x183fa5(0x33e),'d':_0x183fa5(0x3bd),'strokeLinecap':_0x183fa5(0x2b4),'strokeLinejoin':_0x183fa5(0x2b4),'strokeWidth':1.2}}]},{'tag':_0x183fa5(0x290),'attrs':{},'children':[{'tag':_0x183fa5(0x2bc),'attrs':{'id':_0x183fa5(0x321)},'children':[{'tag':_0x183fa5(0x227),'attrs':{'fill':_0x183fa5(0x216),'d':_0x183fa5(0x1ba)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ye=M[_0x183fa5(0x356)](function(_0x4bac61,_0x2954c0){const _0x41f51d=_0x183fa5;return M[_0x41f51d(0x257)](pe,Object[_0x41f51d(0x3f7)]({},_0x4bac61,{'id':_0x41f51d(0x2cb),'ref':_0x2954c0,'icon':Ut}));});ye[_0x183fa5(0x3d4)]='OffLineSingle';var Nt={'tag':_0x183fa5(0x308),'attrs':{'fill':_0x183fa5(0x256),'viewBox':_0x183fa5(0x1f6),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x183fa5(0x2f8)},'children':[{'tag':_0x183fa5(0x227),'attrs':{'stroke':_0x183fa5(0x33e),'d':_0x183fa5(0x2f1),'strokeLinecap':_0x183fa5(0x2b4),'strokeLinejoin':_0x183fa5(0x2b4),'strokeWidth':1.2}}]},{'tag':_0x183fa5(0x290),'attrs':{},'children':[{'tag':_0x183fa5(0x2bc),'attrs':{'id':_0x183fa5(0x19e)},'children':[{'tag':'path','attrs':{'fill':_0x183fa5(0x216),'d':_0x183fa5(0x1ba),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M['forwardRef'](function(_0x501c48,_0x4bb884){const _0x556042=_0x183fa5;return M['createElement'](pe,Object[_0x556042(0x3f7)]({},_0x501c48,{'id':_0x556042(0x239),'ref':_0x4bb884,'icon':Nt}));});$e[_0x183fa5(0x3d4)]=_0x183fa5(0x19a);function Mt(_0x2318a3){const _0x1cc6da=_0x183fa5;switch(_0x2318a3){case u[_0x1cc6da(0x3f2)][_0x1cc6da(0x386)]:return _0x1cc6da(0x1de);case u[_0x1cc6da(0x3f2)][_0x1cc6da(0x319)]:return'collabStatus.conflict';case u[_0x1cc6da(0x3f2)][_0x1cc6da(0x2ce)]:return'collabStatus.fetchMiss';case u[_0x1cc6da(0x3f2)]['NOT_COLLAB']:return _0x1cc6da(0x223);case u[_0x1cc6da(0x3f2)]['AWAITING']:case u[_0x1cc6da(0x3f2)][_0x1cc6da(0x3f8)]:return'collabStatus.syncing';case u['CollaborationStatus'][_0x1cc6da(0x3c0)]:case u['CollaborationStatus'][_0x1cc6da(0x2ff)]:return'collabStatus.synced';}}function _0x5188(_0x1716af,_0x265837){const _0x18b133=_0x18b1();return _0x5188=function(_0x51889b,_0x46a687){_0x51889b=_0x51889b-0x199;let _0x13a5cb=_0x18b133[_0x51889b];return _0x13a5cb;},_0x5188(_0x1716af,_0x265837);}function xe(_0x352ed7){const _0x1edb79=_0x183fa5,{status$:_0x3056ef}=_0x352ed7,_0x25f721=T[_0x1edb79(0x1d4)](_0x3056ef,u['CollaborationStatus'][_0x1edb79(0x2d2)]),_0x518a2a=T['useDependency'](a[_0x1edb79(0x3d2)]),_0x1225d5=T['useDependency'](u[_0x1edb79(0x208)]),_0x1dff1c=_0x25f721!==u[_0x1edb79(0x3f2)][_0x1edb79(0x386)],_0x2b1838=_0x518a2a['t'](Mt(_0x25f721)),_0x1b3285=_0x1dff1c?P[_0x1edb79(0x1f0)]($e,{}):P[_0x1edb79(0x1f0)](ye,{}),_0x2ab2dd=M['useCallback'](()=>{_0x1dff1c||_0x1225d5['reconnect']();},[_0x1dff1c,_0x1225d5]);function _0x13cbd7(){const _0x3ff7d9=_0x1edb79;return P[_0x3ff7d9(0x296)]('div',{'className':_0x3ff7d9(0x1ed),'onClick':_0x2ab2dd,'children':[P[_0x3ff7d9(0x1f0)]('div',{'className':D[_0x3ff7d9(0x24f)](_0x3ff7d9(0x23a),_0x1dff1c?'univer-text-green-500':'univer-text-red-500'),'children':_0x1b3285}),P[_0x3ff7d9(0x1f0)]('div',{'className':_0x3ff7d9(0x1f5),'children':_0x2b1838})]});}return _0x1dff1c?_0x13cbd7():P[_0x1edb79(0x1f0)](D[_0x1edb79(0x2a5)],{'title':_0x518a2a['t'](_0x1edb79(0x237)),'children':_0x13cbd7()});}var Lt=Object[_0x183fa5(0x255)],Pt=(_0x5a67b2,_0x6890ab,_0x4eb9d9,_0x1e5884)=>{for(var _0x446665=_0x1e5884>0x1?void 0x0:_0x1e5884?Lt(_0x6890ab,_0x4eb9d9):_0x6890ab,_0x578cac=_0x5a67b2['length']-0x1,_0x4ab55c;_0x578cac>=0x0;_0x578cac--)(_0x4ab55c=_0x5a67b2[_0x578cac])&&(_0x446665=_0x4ab55c(_0x446665)||_0x446665);return _0x446665;},V=(_0x294b25,_0x2ffe71)=>(_0xccb1f7,_0x58d9f3)=>_0x2ffe71(_0xccb1f7,_0x58d9f3,_0x294b25);exports[_0x183fa5(0x222)]=class extends a['Disposable']{constructor(_0x5e4ea4,_0x5a57b6,_0x3d4c83,_0x4efc19){const _0x3f3f69=_0x183fa5;super(),h(this,_0x3f3f69(0x374),new d['BehaviorSubject'](u[_0x3f3f69(0x3f2)][_0x3f3f69(0x2d2)])),(this[_0x3f3f69(0x28f)]=_0x5e4ea4,this[_0x3f3f69(0x20a)]=_0x5a57b6,this[_0x3f3f69(0x293)]=_0x3d4c83,this[_0x3f3f69(0x2dd)]=_0x4efc19,this[_0x3f3f69(0x2a8)](),this[_0x3f3f69(0x2c7)]());}[_0x183fa5(0x2c7)](){const _0x5ab8ce=_0x183fa5;this[_0x5ab8ce(0x220)](this[_0x5ab8ce(0x28f)][_0x5ab8ce(0x1b9)][_0x5ab8ce(0x213)](d[_0x5ab8ce(0x26c)](()=>{const _0x21eec6=_0x5ab8ce,_0x1e2442=this['_univerInstanceService']['getFocusedUnit']();return _0x1e2442?this[_0x21eec6(0x293)]['getCollabEntity$'](_0x1e2442[_0x21eec6(0x3bf)]()):d['of'](null);}),d[_0x5ab8ce(0x26c)](_0x2e56c8=>_0x2e56c8?_0x2e56c8['status$']:d['of'](u['CollaborationStatus'][_0x5ab8ce(0x2d2)])))['subscribe'](_0x15bc06=>{const _0xd08e90=_0x5ab8ce;this[_0xd08e90(0x374)]['next'](_0x15bc06);}));}[_0x183fa5(0x2a8)](){const _0x4e69d4=_0x183fa5;this[_0x4e69d4(0x220)](this[_0x4e69d4(0x2dd)][_0x4e69d4(0x403)](T[_0x4e69d4(0x23b)][_0x4e69d4(0x26b)],()=>T[_0x4e69d4(0x362)](wt({'status$':this['_status$'][_0x4e69d4(0x31c)]()}),this[_0x4e69d4(0x20a)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a[_0x183fa5(0x33a)]),V(0x1,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),V(0x2,a['Inject'](u[_0x183fa5(0x270)])),V(0x3,T['IUIPartsService'])],exports[_0x183fa5(0x222)]);function wt(_0x5acaa7){const {status$:_0x309000}=_0x5acaa7;return function(){const _0x41dba2=_0x5188;return P[_0x41dba2(0x1f0)](xe,{'status$':_0x309000});};}var At=Object[_0x183fa5(0x255)],yt=(_0x2b2ebf,_0x273d47,_0x4311f0,_0x165b0c)=>{const _0x517755=_0x183fa5;for(var _0x250982=_0x165b0c>0x1?void 0x0:_0x165b0c?At(_0x273d47,_0x4311f0):_0x273d47,_0x3e678d=_0x2b2ebf[_0x517755(0x260)]-0x1,_0x2608d1;_0x3e678d>=0x0;_0x3e678d--)(_0x2608d1=_0x2b2ebf[_0x3e678d])&&(_0x250982=_0x2608d1(_0x250982)||_0x250982);return _0x250982;},y=(_0x9c294a,_0x55f8ff)=>(_0x3a16ef,_0x3364f2)=>_0x55f8ff(_0x3a16ef,_0x3364f2,_0x9c294a);let K=class extends a[_0x183fa5(0x3ec)]{constructor(_0x2d9b37,_0x57c88c,_0x3d4a37,_0x1b2a51,_0xa9e73,_0x4dcbb0){const _0x29dcac=_0x183fa5;super(),this[_0x29dcac(0x20e)]=_0x2d9b37,this[_0x29dcac(0x285)]=_0x57c88c,this[_0x29dcac(0x378)]=_0x3d4a37,this[_0x29dcac(0x19f)]=_0x1b2a51,this['_notificationService']=_0xa9e73,this[_0x29dcac(0x377)]=_0x4dcbb0,this[_0x29dcac(0x282)](),this[_0x29dcac(0x32a)]();}['_setupBeforeClosingHandler'](){const _0x345165=_0x183fa5;this[_0x345165(0x220)](this['_beforeCloseService'][_0x345165(0x287)](()=>{const _0x835b53=_0x345165;if(this[_0x835b53(0x285)][_0x835b53(0x2d3)][_0x835b53(0x36e)])return this[_0x835b53(0x377)]['t'](_0x835b53(0x391));}));}[_0x183fa5(0x32a)](){const _0x5eee8e=_0x183fa5;this[_0x5eee8e(0x220)](this[_0x5eee8e(0x378)][_0x5eee8e(0x2f6)][_0x5eee8e(0x24c)](_0x471384=>{const _0x5aa28b=_0x5eee8e;_0x471384['id']===u[_0x5aa28b(0x2a3)][_0x5aa28b(0x1b5)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D['MessageType']['Warning'],'content':this[_0x5aa28b(0x377)]['t']('collaboration.single-unit.warning')}),_0x471384['id']===u[_0x5aa28b(0x2a3)][_0x5aa28b(0x202)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D[_0x5aa28b(0x370)]['Warning'],'content':this[_0x5aa28b(0x377)]['t'](_0x5aa28b(0x1d1))}),_0x471384['id']===u[_0x5aa28b(0x2a3)]['PERMISSION_DENIED']&&this[_0x5aa28b(0x3e4)][_0x5aa28b(0x19d)]({'title':this[_0x5aa28b(0x377)]['t'](_0x5aa28b(0x264)),'content':this[_0x5aa28b(0x377)]['t'](_0x5aa28b(0x2fe)),'type':_0x5aa28b(0x1b6),'duration':0x0}),_0x471384['id']===u[_0x5aa28b(0x2a3)][_0x5aa28b(0x319)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D[_0x5aa28b(0x370)][_0x5aa28b(0x39a)],'content':this[_0x5aa28b(0x377)]['t'](_0x5aa28b(0x1d1))+'('+_0x471384[_0x5aa28b(0x1ac)]+')'}),_0x471384['id']===u['CollaborationUIEventId'][_0x5aa28b(0x3bb)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D['MessageType'][_0x5aa28b(0x206)],'content':this[_0x5aa28b(0x377)]['t'](_0x471384[_0x5aa28b(0x1ac)]||'')}),_0x471384['id']===u['CollaborationUIEventId'][_0x5aa28b(0x3ff)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D[_0x5aa28b(0x370)][_0x5aa28b(0x206)],'content':this['_localeService']['t'](_0x5aa28b(0x204))}),_0x471384['id']===u[_0x5aa28b(0x2a3)][_0x5aa28b(0x343)]&&this[_0x5aa28b(0x19f)][_0x5aa28b(0x19d)]({'type':D[_0x5aa28b(0x370)]['Error'],'content':this[_0x5aa28b(0x377)]['t']('session.connection-failed')}),_0x471384['id']===u[_0x5aa28b(0x2a3)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5aa28b(0x19f)]['show']({'type':D['MessageType'][_0x5aa28b(0x39a)],'content':this[_0x5aa28b(0x377)]['t'](_0x5aa28b(0x3ef))});}));}};K=yt([y(0x0,T[_0x183fa5(0x20c)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x183fa5(0x3dc)](u[_0x183fa5(0x333)])),y(0x3,T[_0x183fa5(0x200)]),y(0x4,T[_0x183fa5(0x37a)]),y(0x5,a['Inject'](a[_0x183fa5(0x3d2)]))],K);const $t=_0x183fa5(0x1a2),Ue={},be=a[_0x183fa5(0x40c)]('uni.network.url-service');var xt=Object[_0x183fa5(0x255)],jt=(_0x546ccb,_0x315d32,_0x417430,_0x4baa0e)=>{const _0x71dcff=_0x183fa5;for(var _0x132d74=_0x4baa0e>0x1?void 0x0:_0x4baa0e?xt(_0x315d32,_0x417430):_0x315d32,_0x1c92e3=_0x546ccb[_0x71dcff(0x260)]-0x1,_0x23e82f;_0x1c92e3>=0x0;_0x1c92e3--)(_0x23e82f=_0x546ccb[_0x1c92e3])&&(_0x132d74=_0x23e82f(_0x132d74)||_0x132d74);return _0x132d74;},H=(_0x44be2a,_0x244e85)=>(_0x3a1aec,_0x2729a6)=>_0x244e85(_0x3a1aec,_0x2729a6,_0x44be2a);exports[_0x183fa5(0x1c6)]=class extends a[_0x183fa5(0x3b8)]{constructor(_0x573ae7,_0x1b7ebc,_0x211daa,_0x402888,_0x26507f){const _0x315e97=_0x183fa5;super(),this[_0x315e97(0x350)]=_0x573ae7,this['_logService']=_0x1b7ebc,this['_commandService']=_0x211daa,this[_0x315e97(0x26d)]=_0x402888,_0x26507f?_0x26507f==null||_0x26507f['whenReady']()[_0x315e97(0x3eb)](()=>this[_0x315e97(0x240)]()):(this['_logService'][_0x315e97(0x37f)](_0x315e97(0x1a6),_0x315e97(0x306)),this[_0x315e97(0x240)]());}async[_0x183fa5(0x240)](){const _0x3ada59=_0x183fa5,_0x437a40=this['_urlService']['getParam'](_0x3ada59(0x3b9)),_0x2894a2=this['_urlService'][_0x3ada59(0x262)](_0x3ada59(0x2c9)),_0x5a1c0a=this[_0x3ada59(0x350)][_0x3ada59(0x262)](_0x3ada59(0x381));if(!_0x437a40||!_0x2894a2){this[_0x3ada59(0x209)][_0x3ada59(0x37f)](_0x3ada59(0x1a6),_0x3ada59(0x3ab));return;}const _0x1e6713=await this[_0x3ada59(0x26d)][_0x3ada59(0x36d)](_0x437a40,Number(_0x2894a2),_0x5a1c0a);_0x1e6713&&_0x1e6713 instanceof a['Workbook']&&this[_0x3ada59(0x31a)](_0x1e6713);}async[_0x183fa5(0x31a)](_0x568014){const _0x30279d=_0x183fa5;await this[_0x30279d(0x38e)](_0x568014),_0x568014['activeSheet$'][_0x30279d(0x213)](d[_0x30279d(0x351)](this[_0x30279d(0x22f)]))[_0x30279d(0x24c)](_0x533126=>{const _0x8826b3=_0x30279d;_0x533126&&this[_0x8826b3(0x353)](_0x533126);}),this[_0x30279d(0x350)][_0x30279d(0x2c5)][_0x30279d(0x213)](d['takeUntil'](this['dispose$']))[_0x30279d(0x24c)](()=>this[_0x30279d(0x38e)](_0x568014));}[_0x183fa5(0x353)](_0x1a8aec,_0x55828a=!0x1){const _0x1bfb32=_0x183fa5,_0x5e0b65=this[_0x1bfb32(0x350)][_0x1bfb32(0x262)](_0x1bfb32(0x381));_0x1a8aec[_0x1bfb32(0x1d2)]()!==_0x5e0b65&&this[_0x1bfb32(0x350)][_0x1bfb32(0x3a0)](_0x1bfb32(0x381),_0x1a8aec[_0x1bfb32(0x1d2)](),_0x55828a);}async[_0x183fa5(0x38e)](_0x17cf6b){const _0xbafdd1=_0x183fa5;var _0x2f63b6;const _0x4a993a=this[_0xbafdd1(0x350)][_0xbafdd1(0x262)](_0xbafdd1(0x381));if(!_0x4a993a||!_0x17cf6b['getSheetBySheetId'](_0x4a993a)){const _0x503b70=_0x17cf6b['getUnhiddenWorksheets']()[0x0],_0x1e47ab=_0x17cf6b['getSheetBySheetId'](_0x503b70);if(!_0x1e47ab)return;this['_updateURLWithCurrentState'](_0x1e47ab,!0x0),await this['_commandService'][_0xbafdd1(0x2ee)](g[_0xbafdd1(0x1e9)]['id'],{'unitId':_0x17cf6b['getUnitId'](),'subUnitId':_0x503b70});return;}((_0x2f63b6=_0x17cf6b['getActiveSheet']())==null?void 0x0:_0x2f63b6[_0xbafdd1(0x1d2)]())!==_0x4a993a&&await this['_commandService']['executeCommand'](g[_0xbafdd1(0x1e9)]['id'],{'unitId':_0x17cf6b[_0xbafdd1(0x3bf)](),'subUnitId':_0x4a993a});}},exports[_0x183fa5(0x1c6)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x183fa5(0x3fb)]),H(0x3,a['Inject'](u[_0x183fa5(0x398)])),H(0x4,a['Optional'](qe['IRemoteInstanceService']))],exports[_0x183fa5(0x1c6)]);var Bt=Object[_0x183fa5(0x255)],kt=(_0x5655c7,_0x2131f3,_0x2c6da1,_0x419846)=>{const _0x2276fd=_0x183fa5;for(var _0x534545=_0x419846>0x1?void 0x0:_0x419846?Bt(_0x2131f3,_0x2c6da1):_0x2131f3,_0x510881=_0x5655c7[_0x2276fd(0x260)]-0x1,_0x26e02f;_0x510881>=0x0;_0x510881--)(_0x26e02f=_0x5655c7[_0x510881])&&(_0x534545=_0x26e02f(_0x534545)||_0x534545);return _0x534545;},ce=(_0x4a7127,_0x162a86)=>(_0xd7365a,_0x59ce69)=>_0x162a86(_0xd7365a,_0x59ce69,_0x4a7127);let z=class{constructor(_0x11fb22,_0x313ade,_0x13bad8){const _0x4b7c8e=_0x183fa5;this[_0x4b7c8e(0x20a)]=_0x11fb22,this['_transformService']=_0x313ade,this[_0x4b7c8e(0x2ad)]=_0x13bad8;}[_0x183fa5(0x2bd)](_0x4f194b){const _0x5e02a2=_0x183fa5;this[_0x5e02a2(0x1d7)](_0x4f194b),this['_transformPreviousActiveRange'](_0x4f194b);}[_0x183fa5(0x233)](_0x212dc6){const _0x32f907=_0x183fa5,{unitID:_0x492352}=_0x212dc6,_0x4571d8=this[_0x32f907(0x2ad)][_0x32f907(0x246)](_0x492352)[_0x32f907(0x265)](b[_0x32f907(0x1a3)]),{redoCache:_0x4349d3}=_0x4571d8[_0x32f907(0x339)]();if(_0x4349d3[_0x32f907(0x260)]===0x0)return _0x212dc6;let _0x317796=a[_0x32f907(0x2e2)][_0x32f907(0x3ea)](_0x212dc6[_0x32f907(0x1ff)][0x0]);for(let _0x5ebcbc=0x0;_0x5ebcbc<_0x4349d3[_0x32f907(0x260)];_0x5ebcbc++){const _0x12e2b1={'id':_0x32f907(0x300),'params':{..._0x4349d3[_0x5ebcbc]}},_0x36579b=this['_transformService'][_0x32f907(0x2e7)](_0x317796,_0x12e2b1,!0x1);if(m['isTransformMutationFailure'](_0x36579b))throw _0x36579b['error'];_0x317796=_0x36579b[_0x32f907(0x229)];}return{...a[_0x32f907(0x2e2)][_0x32f907(0x3ea)](_0x212dc6),'mutations':[_0x317796]};}['_transformUndoRedoStack'](_0x51df0b){const _0x2c41e3=_0x183fa5,{unitID:_0x226874}=_0x51df0b,_0x5e2421=this[_0x2c41e3(0x2ad)][_0x2c41e3(0x246)](_0x226874)[_0x2c41e3(0x265)](b[_0x2c41e3(0x1a3)]),{undoCache:_0x42b3ef,redoCache:_0xa088bd}=_0x5e2421['getUndoRedoMutationParamsCache']();if(_0x42b3ef[_0x2c41e3(0x260)]===0x0||_0xa088bd[_0x2c41e3(0x260)]===0x0)return;const _0x1c7b16=[],_0x92f64=[];let _0x291dae=a[_0x2c41e3(0x2e2)][_0x2c41e3(0x3ea)](_0x51df0b['mutations'][0x0]),_0x411cf9=a[_0x2c41e3(0x2e2)][_0x2c41e3(0x3ea)](_0x51df0b[_0x2c41e3(0x1ff)][0x0]);for(let _0x5f59f9=_0x42b3ef[_0x2c41e3(0x260)]-0x1;_0x5f59f9>=0x0;_0x5f59f9--){const _0x1b7219={'id':'doc.mutation.rich-text-editing','params':{..._0x42b3ef[_0x5f59f9]}},_0x5ed917={'id':'doc.mutation.rich-text-editing','params':{..._0xa088bd[_0x5f59f9]}},_0x2bd845=this[_0x2c41e3(0x346)]['transformMutation'](_0x291dae,_0x1b7219,!0x1),_0xfeee80=this[_0x2c41e3(0x346)][_0x2c41e3(0x2e7)](_0x411cf9,_0x5ed917,!0x1);if(m[_0x2c41e3(0x1d3)](_0x2bd845))throw _0x2bd845[_0x2c41e3(0x1b6)];if(m[_0x2c41e3(0x1d3)](_0xfeee80))throw _0xfeee80[_0x2c41e3(0x1b6)];_0x1c7b16[_0x2c41e3(0x2e4)](_0x2bd845[_0x2c41e3(0x29c)][_0x2c41e3(0x1c1)]),_0x92f64[_0x2c41e3(0x2e4)](_0xfeee80['m2Prime'][_0x2c41e3(0x1c1)]),_0x291dae=_0x2bd845['m1Prime'],_0x411cf9=_0xfeee80[_0x2c41e3(0x229)];}_0x5e2421[_0x2c41e3(0x301)]({'undoCache':_0x1c7b16,'redoCache':_0x92f64});}[_0x183fa5(0x1d6)](_0x82a91e){const _0x3bd8ce=_0x183fa5,{unitID:_0x3088d0}=_0x82a91e,_0x4ad1d9=this[_0x3bd8ce(0x2ad)][_0x3bd8ce(0x246)](_0x3088d0)['with'](b[_0x3bd8ce(0x1a3)]),_0x1b8366=_0x4ad1d9[_0x3bd8ce(0x205)]();if(_0x1b8366==null)return;const _0x2c9b4f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x82a91e[_0x3bd8ce(0x1b7)],'actions':null,'textRanges':[_0x1b8366]}}],_0x15a0f9=this[_0x3bd8ce(0x346)][_0x3bd8ce(0x303)](_0x82a91e,_0x2c9b4f);if(!m['isTransformMutationsWithChangesetSuccess'](_0x15a0f9))throw _0x15a0f9[_0x3bd8ce(0x1b6)];const _0x207671=_0x15a0f9[_0x3bd8ce(0x29c)][0x0][_0x3bd8ce(0x1c1)][_0x3bd8ce(0x1ab)];Array['isArray'](_0x207671)&&_0x207671[_0x3bd8ce(0x260)]&&_0x4ad1d9['setActiveRange'](_0x207671[0x0]);}};z=kt([ce(0x0,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),ce(0x1,m[_0x183fa5(0x20b)]),ce(0x2,p[_0x183fa5(0x1ce)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x4eca99,_0x197047,_0x8f17cc,_0x5d09e3)=>{const _0x13d2c1=_0x183fa5;for(var _0x1e5c20=_0x5d09e3>0x1?void 0x0:_0x5d09e3?Ht(_0x197047,_0x8f17cc):_0x197047,_0x509795=_0x4eca99[_0x13d2c1(0x260)]-0x1,_0x4c537d;_0x509795>=0x0;_0x509795--)(_0x4c537d=_0x4eca99[_0x509795])&&(_0x1e5c20=_0x4c537d(_0x1e5c20)||_0x1e5c20);return _0x1e5c20;},le=(_0x2e99cd,_0x51f792)=>(_0x5a7b7b,_0x587e07)=>_0x51f792(_0x5a7b7b,_0x587e07,_0x2e99cd);let J=class{constructor(_0x5e8656,_0x25e3c2,_0x63c37a){const _0x2ddcd3=_0x183fa5;this['_injector']=_0x5e8656,this['_transformService']=_0x25e3c2,this[_0x2ddcd3(0x3d3)]=_0x63c37a;}['transformStateCache'](_0x2fea1f){const _0x203e84=_0x183fa5;this[_0x203e84(0x325)](_0x2fea1f);}[_0x183fa5(0x233)](_0x548817){const _0x481b08=_0x183fa5,{unitID:_0x6852ba}=_0x548817,{collaboration:_0x4fb3a0}=this[_0x481b08(0x3d3)][_0x481b08(0x1bf)](_0x6852ba);if(_0x4fb3a0[_0x481b08(0x260)]===0x0)return _0x548817;let _0x198b8d=a['Tools'][_0x481b08(0x3ea)](_0x548817['mutations'][0x0]);for(let _0x3234aa=0x0;_0x3234aa<_0x4fb3a0[_0x481b08(0x260)];_0x3234aa++){const _0x25e7cb={'id':_0x481b08(0x300),'params':{'unitId':_0x4fb3a0[_0x3234aa][_0x481b08(0x34f)],..._0x4fb3a0[_0x3234aa]['redoState']}},_0x43e0c5=this[_0x481b08(0x346)][_0x481b08(0x2e7)](_0x198b8d,_0x25e7cb,!0x1);if(m['isTransformMutationFailure'](_0x43e0c5))throw _0x43e0c5[_0x481b08(0x1b6)];_0x198b8d=_0x43e0c5['m1Prime'];}return{...a[_0x481b08(0x2e2)]['deepClone'](_0x548817),'mutations':[_0x198b8d]};}[_0x183fa5(0x325)](_0xd9b742){const _0xee88d3=_0x183fa5,{unitID:_0x3acc66}=_0xd9b742,{history:_0x258460,collaboration:_0x1ab853}=this[_0xee88d3(0x3d3)][_0xee88d3(0x1bf)](_0x3acc66);if(_0x258460[_0xee88d3(0x260)]===0x0&&_0x1ab853[_0xee88d3(0x260)]===0x0)return;const _0x229eb1=[],_0xce7456=[];let _0x3a6721=a[_0xee88d3(0x2e2)]['deepClone'](_0xd9b742['mutations'][0x0]),_0x3c45d5=a[_0xee88d3(0x2e2)][_0xee88d3(0x3ea)](_0xd9b742[_0xee88d3(0x1ff)][0x0]);for(let _0xc56861=_0x258460['length']-0x1;_0xc56861>=0x0;_0xc56861--){const _0xbf5578={'id':_0xee88d3(0x300),'params':{'unitId':_0x258460[_0xc56861][_0xee88d3(0x34f)],..._0x258460[_0xc56861][_0xee88d3(0x230)]}},_0x1758dd={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x258460[_0xc56861]['unitId'],..._0x258460[_0xc56861]['redoState']}},_0x1de1c8=this['_transformService'][_0xee88d3(0x2e7)](_0x3a6721,_0xbf5578,!0x1),_0x31b385=this[_0xee88d3(0x346)][_0xee88d3(0x2e7)](_0x3c45d5,_0x1758dd,!0x1);if(m[_0xee88d3(0x1d3)](_0x1de1c8))throw _0x1de1c8[_0xee88d3(0x1b6)];if(m['isTransformMutationFailure'](_0x31b385))throw _0x31b385[_0xee88d3(0x1b6)];_0x229eb1[_0xee88d3(0x2e4)]({..._0x258460[_0xc56861],'undoState':_0x1de1c8['m2Prime'][_0xee88d3(0x1c1)],'redoState':_0x31b385[_0xee88d3(0x29c)]['params']}),_0x3a6721=_0x1de1c8[_0xee88d3(0x229)],_0x3c45d5=_0x31b385[_0xee88d3(0x229)];}_0x3a6721=a['Tools'][_0xee88d3(0x3ea)](_0xd9b742['mutations'][0x0]),_0x3c45d5=a[_0xee88d3(0x2e2)]['deepClone'](_0xd9b742['mutations'][0x0]);for(let _0x32da9b=_0x1ab853[_0xee88d3(0x260)]-0x1;_0x32da9b>=0x0;_0x32da9b--){const _0x41c577={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1ab853[_0x32da9b]['unitId'],..._0x1ab853[_0x32da9b]['undoState']}},_0x5d6151={'id':_0xee88d3(0x300),'params':{'unitId':_0x1ab853[_0x32da9b][_0xee88d3(0x34f)],..._0x1ab853[_0x32da9b][_0xee88d3(0x3af)]}},_0x2ceebe=this[_0xee88d3(0x346)][_0xee88d3(0x2e7)](_0x3a6721,_0x41c577,!0x1),_0x89e0c8=this[_0xee88d3(0x346)][_0xee88d3(0x2e7)](_0x3c45d5,_0x5d6151,!0x1);if(m['isTransformMutationFailure'](_0x2ceebe))throw _0x2ceebe[_0xee88d3(0x1b6)];if(m[_0xee88d3(0x1d3)](_0x89e0c8))throw _0x89e0c8[_0xee88d3(0x1b6)];_0xce7456[_0xee88d3(0x2e4)]({..._0x1ab853[_0x32da9b],'undoState':_0x2ceebe[_0xee88d3(0x29c)][_0xee88d3(0x1c1)],'redoState':_0x89e0c8[_0xee88d3(0x29c)][_0xee88d3(0x1c1)]}),_0x3a6721=_0x2ceebe[_0xee88d3(0x229)],_0x3c45d5=_0x89e0c8[_0xee88d3(0x229)];}this[_0xee88d3(0x3d3)][_0xee88d3(0x2b1)](_0x3acc66,{'history':_0x229eb1,'collaboration':_0xce7456});}};J=Ft([le(0x0,a['Inject'](a[_0x183fa5(0x2e1)])),le(0x1,m[_0x183fa5(0x20b)]),le(0x2,a[_0x183fa5(0x3dc)](b['DocStateChangeManagerService']))],J);var Wt=Object[_0x183fa5(0x255)],Yt=(_0x810348,_0x357418,_0x5a56ab,_0x5348a5)=>{const _0x5919b1=_0x183fa5;for(var _0x36eb7b=_0x5348a5>0x1?void 0x0:_0x5348a5?Wt(_0x357418,_0x5a56ab):_0x357418,_0xb9430e=_0x810348[_0x5919b1(0x260)]-0x1,_0x53dfba;_0xb9430e>=0x0;_0xb9430e--)(_0x53dfba=_0x810348[_0xb9430e])&&(_0x36eb7b=_0x53dfba(_0x36eb7b)||_0x36eb7b);return _0x36eb7b;},Ne=(_0x3f49a9,_0x3c7190)=>(_0x54ea89,_0x539e65)=>_0x3c7190(_0x54ea89,_0x539e65,_0x3f49a9);let Z=class{constructor(_0x49868c,_0x179a7b){const _0x47d3f2=_0x183fa5;this[_0x47d3f2(0x20a)]=_0x49868c,this['_transformService']=_0x179a7b;}[_0x183fa5(0x387)](_0x5a2982){const _0x842335=_0x183fa5;var _0x2074ef;const _0x21c126=this[_0x842335(0x20a)][_0x842335(0x2dc)](W[_0x842335(0x28e)]),_0x534da0=(_0x2074ef=_0x21c126[_0x842335(0x268)]())!=null?_0x2074ef:[];if(_0x534da0[_0x842335(0x260)]===0x0)return;const _0x4ea9f6=_0x5a2982[_0x842335(0x1b7)],_0x18326e=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4ea9f6,'actions':null,'textRanges':_0x534da0}}],_0x152972=this[_0x842335(0x346)][_0x842335(0x303)](_0x5a2982,_0x18326e);if(!m['isTransformMutationsWithChangesetSuccess'](_0x152972))throw _0x152972[_0x842335(0x1b6)];const _0x4701b3=_0x152972[_0x842335(0x29c)][0x0][_0x842335(0x1c1)][_0x842335(0x1ab)];Array[_0x842335(0x2ba)](_0x4701b3)&&_0x4701b3[_0x842335(0x260)]&&_0x21c126[_0x842335(0x21e)](_0x4701b3,{'unitId':_0x4ea9f6,'subUnitId':_0x4ea9f6},!0x1);}};Z=Yt([Ne(0x0,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x183fa5(0x255)],Xt=(_0x5f5471,_0x97615a,_0xe7f1a4,_0x5cb861)=>{const _0x4ff2aa=_0x183fa5;for(var _0x1c1af0=_0x5cb861>0x1?void 0x0:_0x5cb861?Vt(_0x97615a,_0xe7f1a4):_0x97615a,_0x585915=_0x5f5471[_0x4ff2aa(0x260)]-0x1,_0x50a1a0;_0x585915>=0x0;_0x585915--)(_0x50a1a0=_0x5f5471[_0x585915])&&(_0x1c1af0=_0x50a1a0(_0x1c1af0)||_0x1c1af0);return _0x1c1af0;},N=(_0x4209f2,_0x4d83b3)=>(_0x5d05d3,_0x33c13d)=>_0x4d83b3(_0x5d05d3,_0x33c13d,_0x4209f2);let Q=class extends a[_0x183fa5(0x3ec)]{constructor(_0x583a9d,_0xee4e6b,_0x195537,_0x9a5cb6,_0x5b96a7,_0x5b40c5,_0x4e9f6f,_0xa9e75e){const _0x18b3eb=_0x183fa5;super(),h(this,_0x18b3eb(0x374),new d[(_0x18b3eb(0x323))](u['CollaborationStatus'][_0x18b3eb(0x2d2)])),(this['_docStateChangeManagerService']=_0x583a9d,this[_0x18b3eb(0x293)]=_0xee4e6b,this[_0x18b3eb(0x2ec)]=_0x195537,this['_docTransformStateCacheService']=_0x9a5cb6,this[_0x18b3eb(0x2e0)]=_0x5b96a7,this[_0x18b3eb(0x258)]=_0x5b40c5,this[_0x18b3eb(0x19f)]=_0x4e9f6f,this[_0x18b3eb(0x377)]=_0xa9e75e,this[_0x18b3eb(0x345)]());}[_0x183fa5(0x345)](){const _0x5e562c=_0x183fa5;this[_0x5e562c(0x220)](this['_collaborationController'][_0x5e562c(0x1e1)][_0x5e562c(0x24c)](_0x19727c=>{const _0x435e3a=_0x5e562c,_0x4cfab1=this[_0x435e3a(0x3d3)][_0x435e3a(0x29d)][_0x435e3a(0x24c)](_0x35a2d2=>{const _0x293989=_0x435e3a;if(_0x35a2d2==null)return;const {unitId:_0x4ef455,redoState:_0x1a0dcc,commandId:_0x245786}=_0x35a2d2;if(_0x4ef455!==_0x19727c[_0x293989(0x1b7)])return;const _0x63eae3={'id':_0x245786,'type':a['CommandType'][_0x293989(0x340)],'params':{'unitId':_0x4ef455,'actions':_0x1a0dcc[_0x293989(0x30c)],'textRanges':null}};_0x19727c[_0x293989(0x2c1)](_0x63eae3);});if(_0x19727c['disposeWithMe'](_0x4cfab1),_0x19727c instanceof u[_0x435e3a(0x3fc)]){const _0x1bd2b7={'onTransformIME':_0x396957=>this['_docTransformIMECacheService'][_0x435e3a(0x2bd)](_0x396957),'onTransformState':_0x1ec459=>this[_0x435e3a(0x3ae)][_0x435e3a(0x3b3)](_0x1ec459),'onTransformSelections':_0x3feb8d=>this[_0x435e3a(0x2e0)][_0x435e3a(0x387)](_0x3feb8d),'onSyncEditingCollabCursor':_0x5da266=>this['_docSyncEditingCollabCursorService'][_0x435e3a(0x248)](_0x5da266),'onTransformRemoteChangesetByIMECache':_0x4e4765=>this['_docTransformIMECacheService'][_0x435e3a(0x233)](_0x4e4765),'onTransformRemoteChangesetByStateCache':_0x1cd578=>this[_0x435e3a(0x3ae)][_0x435e3a(0x233)](_0x1cd578)};_0x19727c[_0x435e3a(0x396)](_0x1bd2b7);}}));}};function _0x18b1(){const _0x59ca43=['No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','APPLY_DUPLICATED','YUUMI_ASYNCIO_CANCELLED','_docTransformStateCacheService','redoState','popstate','UPDATE_CURSOR','_selfUnitIDs','transformStateCache','_hideTimer','_roomMembers$','handleInsertCol','flatMap','RxDisposable','unit','url(#$1','JOIN_ROOM_FAILED','height','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','debounce','getUnitId','SYNCED','runOnServer','saveImage','arc','fill','12632088ekSAkF','fillText','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','serializeRangeWithSheet','blue400','_removeCollabCursors','COMPLETION_FINISHED','_assignedColors','defIds','getUnitStatus$','_entityInit$','_render','PY_RUNTIME_SCRIPT_ERROR','LocaleService','_docStateChangeManagerService','displayName','concat','CONNECTOR_DATA_TOO_LARGE','measureText','Rect','_toggleOnline','_registerDependencies','getMemberID','Inject','DeleteRangeMoveLeftCommandId','WebSocketService','getValue','_scene','ticket','MOBILE_HAS_BEEN_BOUND','merge','_notificationService','_handleHover','_docSkeleton','_drawAnchor','APPLY_PERMISSION_DENIED','_id','deepClone','then','Disposable','DeleteRangeMoveUpCommandId','send','session.collaboration-timeout','_cursor','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','CollaborationStatus','some','disableLocalCache','30mCjnPZ','getConfig','assign','AWAITING_WITH_PENDING','handleInsertRangeMoveRight','source','ICommandService','DocCollaborationEntity','deserializeRangeWithSheet','_ensureSubject','SOCKET_FAILED_RETRY','_initCommandExecutedListener','LICENSE_IMPORT_SIZE_EXCEEDED','INVITE_CODE_REQUIRED','registerComponent','setAlpha','split','replaceState','UNIVER_SHEET','LOCAL_CACHE_INTERVAL','getSheetObject','_drawTextRange','Unknown\x20user','createIdentifier','toRgbString','_backgroundColor','invokeId','OnLineSingle','jiqing500','registerRefRange','show','on-line-single_clip0_910_349','_messageService','top','_getSaveTimeout','collaboration-client-ui.config','DocIMEInputManagerService','CollaborationEvent','handleDeleteRangeMoveUp','[CollaborationDataLoaderController]','startsWith','_cursorShapes','1em','_unitStatus','textRanges','data','TEXT_RANGE_LAYER_INDEX','_anchor','CollaborationSocketService','filter','APPLY_NON_SEQUENTIAL_REVISION','_onCursorUpdate','onTransformChange$','lineTo','OTHER_CLIENT_EDITING','error','unitID','_docClipboardService','focused$','M0\x200H16V16H0z','selections','TEXT','runId','RichTextEditingMutation','getStateCache','_name','params','clearTimeout','getCollabCursors$','transformByState','IImageIoService','CollaborationDataLoaderController','toString','CollaborationStatusDisplay','ILocalCacheService','_colorAssignService','2306769smAoWd','all','find','IRenderManagerService','url(#off-line-single_clip0_910_343)','RegularPolygon','collaboration.closeRoom','getSheetId','isTransformMutationFailure','useObservable','206478vBKOuF','_transformPreviousActiveRange','_transformUndoRedoStack','_configService','combineLatest','enableLocalCache','fromEventSubject','delete','getColor','collabStatus.offline','stringify','@univerjs/docs','entityInit$','InsertColCommandId','has','function','_updateCollabCursors','RemoteUniscriptService','getUniverSheetInstance','LICENSE_MAX_UNITS_EXCEEDED','SetWorksheetActivateCommand','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_hovered','handleDeleteRangeMoveLeft','univer-flex\x20univer-items-center','_colorIndex','colorChannel1','jsx','_handleLeaveEvent','_handleEvent','getTypeOfUnitAdded$','location','univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','0\x200\x2017\x2016','prototype','clearInterval','values','@univerjs/rpc','@univerjs-pro/collaboration-client','_sheetSkeletonManagerService','apply','getAncestorScale','mutations','IMessageService','cursorInfo$','CLOSE_ROOM','_startSheetCollabCursor','session.will-retry','getActiveRange','Warning','extend','CollaborationSessionService','_logService','_injector','ITransformService','IBeforeCloseService','_getScale','_beforeCloseService','column','_commandService','UnitStatus','_docSkeletonManagerService','pipe','removeParam','_scheduleHeartbeat','#fff','@univerjs/engine-render','addObjects','_saveTaskMap','_localStorageService','INVITE_CODE_ALREADY_BOUND','LOGIN_FAILED','@univerjs/design','replaceDocRanges','NodePositionConvertToCursor','disposeWithMe','_labelPosition','DesktopCollaborationStatusDisplayController','collabStatus.notCollab','_httpService','2345880lomsdV','_collabCursorState$','path','getItem','m1Prime','DocStateChangeManagerService','getMergeData','getCurrentUnitForType','_disabled','_removeClearOtherTimer','dispose$','undoState','VIEW_MAIN','_textBubble','transformRemoteChangeset','_handleHeartbeatEvent','beginPath','triggerDblclick','collab-client.tooltip.reconnect','hasOwnProperty','on-line-single','univer-flex\x20univer-mr-2\x20univer-text-[20px]','BuiltInUIPart','random','indexOf','mapTo','APPLY_REJECT','_init','SNAPSHOT_INVALID_SNAPSHOT','[RemoteUniscriptService]:\x20no\x20focused\x20unit','hovered','_cachedData','BrowserCollaborationSocketService','getRenderById','mask','syncEditingCollabCursor','INVITE_CODE_HAS_BEEN_UES','MemberService','call','subscribe','gold400','InsertRowCommandId','clsx','min','Failed','_color','FromArray','next','getOwnPropertyDescriptor','none','createElement','_docSyncEditingCollabCursorService','evenodd','_entities','EMAIL_HAS_BEEN_BOUND','_cursors','YUUMI_RATE_OVER_LIMIT','UNRECOGNIZED','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','length','useRef','getParam','Vector2','permission.title','with','EffectRefRangId','_onCursorDelete','getDocRanges','YUUMI_NO_CUBOID_FOR_QUESTION','onPointerMove$','HEADER_MENU','switchMap','_dataLoaderService','Plugin','@univerjs/sheets-ui','CollaborationController','onCommandExecuted','_themeService','generateRandomId','rgba(255,\x20255,\x20255,\x200.01)','executionId','getFocusedUnit','@univerjs/sheets','fromEvent','set','UniverIcon','DOC_RANGE_TYPE','isActive','cursorInfo','1741631QrAmWT','RemoveColCommandId','YUUMI_UNABLE_LOAD_URL','requireSession','_setupBeforeClosingHandler','YUUMI_URL_COL_OUT_OF_RANGE','HTTPService','_localCacheService','memberID','registerBeforeClose','post','propertyIsEnumerable','getVpScrollXYInfoByPosToVp','_draw','_initResize','RevisionService','DocSelectionManagerService','_univerInstanceService','defs','UNDEFINED','add','_collaborationController','searchParams','_updateLocalCursor','jsxs','_range','makeDirty','endColumn','code','_refreshCollabCursors','m2Prime','docStateChange$','toDisposable','ISocketService','push','react/jsx-runtime','replace','CollaborationUIEventId','getTypeOfUnitDisposed$','Tooltip','dispose','YUUMI_SUBSCRIPTION_NOT_FOUND','_initStatusComponent','sessionTicket','SheetCollabCursorShape','_getSessionTicket','APPLY_REVISION_CONFILICT','_renderManagerService','forEach','color','init','setStateCache','_context','_scheduleSaving','round','_scheduleClearOtherTimer','getCellPositionByOffset','@univerjs/docs-ui','registerRenderModule','_unitOnClients','isArray','newValue','clipPath','transformIMECache','_collabSessionService','ONLINE','children','onLocalMutation','collabCursorState$','_online','current','urlChange$','ENSURE_SNAPSHOT_EXECUTION','_initStatusListener','UNIVER_DOC','type','_drawRectRange','off-line-single','_document','_heartbeatTimer','FETCH_MISS','complete','sheetId','@univerjs/ui','NOT_COLLAB','saveTaskMap','_createSocketURL','className','defineProperty','CHANGESET_REVISION_CONFILICT','NOT_FOUND','COLORS','InsertRangeMoveRightCommandId','RECT','get','_uiPartsService','purple300','rxjs/operators','_docTransformSelectionsService','Injector','Tools','touchDependencies','unshift','width','override','transformMutation','onRendered','_memberService','UNAUTHENTICATED','INVALID_INVITE_CODE','_docTransformIMECacheService','getSheetBySheetId','executeCommand','collab-rect-range-','parse','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','findNodePositionByCharIndex','getOwnPropertySymbols','UniverInstanceType','4lUANzK','event$','_eventUnsubscribe','url(#on-line-single_clip0_910_349)','OTHER_CLIENTS_EDITING','USER_NOT_INVITED_CODE','string','save','/run/','permission.content','PENDING','doc.mutation.rich-text-editing','setUndoRedoMutationParamsCache','_shapes','transformMutationsWithChangeset','getMember','LICENSE_EXPORT_SIZE_EXCEEDED','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','backgroundColor','svg','handleIRemoveRow','mergeOverrideWithDependencies','UniverCollaborationClientPlugin','actions','ACTIVE_UNIT_EVENT_CHANNEL','_collabCursorController','_getSheetObject','getSkeleton','PERMISSION_DENIED','SHEET_VIEWPORT_KEY','DocSkeletonManagerService','WECHAT_HAS_BEEN_BOUND','hide','@univerjs/engine-formula','univerjs-icon\x20univerjs-icon-','wsSessionTicketUrl','CONFLICT','_setupSubUnitSync','IDocClipboardService','asObservable','application/json','imageSourceType','_imageIoService','search','off-line-single_clip0_910_343','resize','BehaviorSubject','_syncEditingCollabCursorService','_transformHistoryAndStateStack','setItem','currentSkeleton$','Module','exhaustSavingTask','_initEvent','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','createInstance','toStringTag','_onRefRangeChange','SessionStatus','unsubscribe','bottom','range','CollaborationUIEventService','drawWith','pushState','getCoordByCell','getCurrent','IConfigService','getUndoRedoMutationParamsCache','IUniverInstanceService','NO_OTHER_CLIENTS_EDITING','href','ILocalStorageService','currentColor','key','MUTATION','ThemeService','...','SOCKET_FAILED','getRangePointData','_initEntityListener','_transformService','getCurrentRevOfUnit','engine','throttleTime','_startDocCollabCursor','_initDependencies','_cursorInfo$','startColumn','DependentOn','unitId','_urlService','takeUntil','sessionStatus$','_updateURLWithCurrentState','_send','SNAPSHOT_HAS_BEEN_REMOVED','forwardRef','body','_toggleOffline','selection','assignAColorForMemberID','font','@univerjs/network','handleIRemoveCol','idSuffix','_registerRenderDependencies','INTERNAL_ERROR','black','connectInjector','_config','text','setConfig','history','loadOfflineData','fillRule','substring','TOO_MANY_REQUESTS','eventID','restore','loadUnit','size','_handleJoinEvent','MessageType','handleInsertRow','_lastPointer','_getMergeRange','_status$','roomMembers$','collab-text-anchor-','_localeService','_collaborationUIEventService','INVALID_ARGUMENT','INotificationService','from','onPointerEnter$','#FFF','ranges','debug','1685033rdHUvz','subunit','4931919ZooWXw','_session','Shape','attrs','OFFLINE','transformSelections','ILogService','getViewport','_anchorDot','moveTo','DisposableCollection','handleMoveRange','_updateSubUnitFromURLParams','map','updateOfflineData','collaboration-client.offline-data-not-saved','icon','name','onStarting','125DCoLBL','addHandlerCallback','onMouseMove','DataLoaderService','setShapeProps','Error','SetTextSelectionsOperation','RemoveRowCommandId','_clearOtherTimers','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','getLocalCacheKey','setParam','subscribeEvent','roomMembers','UniverCollaborationClientUIPlugin','currentTheme$','addObject','tag','row','_saveCache','_revisionService','rxjs'];_0x18b1=function(){return _0x59ca43;};return _0x18b1();}Q=Xt([N(0x0,a['Inject'](b[_0x183fa5(0x22a)])),N(0x1,a['Inject'](u['CollaborationController'])),N(0x2,a[_0x183fa5(0x3dc)](z)),N(0x3,a[_0x183fa5(0x3dc)](J)),N(0x4,a[_0x183fa5(0x3dc)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,T['IMessageService']),N(0x7,a['Inject'](a['LocaleService']))],Q);var Gt=Object[_0x183fa5(0x255)],qt=(_0x367f28,_0x5de162,_0x22a27f,_0x4c373f)=>{const _0x4dacda=_0x183fa5;for(var _0x5948fa=_0x4c373f>0x1?void 0x0:_0x4c373f?Gt(_0x5de162,_0x22a27f):_0x5de162,_0x15bdd7=_0x367f28[_0x4dacda(0x260)]-0x1,_0x300923;_0x15bdd7>=0x0;_0x15bdd7--)(_0x300923=_0x367f28[_0x15bdd7])&&(_0x5948fa=_0x300923(_0x5948fa)||_0x5948fa);return _0x5948fa;},_e=(_0x16d126,_0x1262f9)=>(_0x373693,_0x16ac7c)=>_0x1262f9(_0x373693,_0x16ac7c,_0x16d126);let ge=class extends a['Disposable']{constructor(_0x5cbd89,_0x33af0d,_0x6957e9){const _0x237594=_0x183fa5;super(),h(this,'_cachedData',new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x237594(0x22d),!0x1),(this[_0x237594(0x1d8)]=_0x5cbd89,this[_0x237594(0x21a)]=_0x33af0d,this[_0x237594(0x3a9)]=_0x6957e9);}[_0x183fa5(0x3f4)](){const _0x1af12=_0x183fa5;this[_0x1af12(0x22d)]=!0x0;}[_0x183fa5(0x1da)](){const _0x299d1a=_0x183fa5;this[_0x299d1a(0x22d)]=!0x1;}get[_0x183fa5(0x2d3)](){const _0x5afde8=_0x183fa5;return this[_0x5afde8(0x219)];}[_0x183fa5(0x2a6)](){const _0x2c011d=_0x183fa5;this[_0x2c011d(0x329)]()[_0x2c011d(0x3eb)](()=>super[_0x2c011d(0x2a6)]());}async[_0x183fa5(0x367)](_0x577e30){const _0x15caa3=_0x183fa5;return this[_0x15caa3(0x22d)]?null:this[_0x15caa3(0x21a)][_0x15caa3(0x228)](u[_0x15caa3(0x39f)](_0x577e30));}async['saveOfflineData'](_0x5e7c9f,_0x5d0c8c){const _0x446ca9=_0x183fa5;return!!this['_localStorageService'][_0x446ca9(0x326)](_0x5e7c9f,_0x5d0c8c);}[_0x183fa5(0x390)](_0x31af78,_0x5068e7,_0x4f978d,_0x1818ac){const _0x4bb949=_0x183fa5,_0x1e3a19=this[_0x4bb949(0x3a9)][_0x4bb949(0x347)](_0x31af78);this[_0x4bb949(0x244)][_0x4bb949(0x279)](_0x31af78,{'unitID':_0x31af78,'type':_0x5068e7,'awaitingChangeset':_0x4f978d,'mutations':_0x1818ac,'rev':_0x1e3a19}),this[_0x4bb949(0x219)][_0x4bb949(0x1e3)](_0x31af78)||this['_scheduleSaving'](_0x31af78);}[_0x183fa5(0x2b3)](_0x3f5b8a){const _0x3bdcc6=_0x183fa5,_0x4e35b9=this[_0x3bdcc6(0x1a1)]();_0x4e35b9===0x0?this['_saveCache'](_0x3f5b8a):this[_0x3bdcc6(0x219)][_0x3bdcc6(0x279)](_0x3f5b8a,setTimeout(()=>this[_0x3bdcc6(0x3a8)](_0x3f5b8a),_0x4e35b9));}[_0x183fa5(0x1a1)](){const _0x2fc1aa=_0x183fa5;var _0xa85910;return(_0xa85910=this[_0x2fc1aa(0x1d8)][_0x2fc1aa(0x3f6)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0xa85910:u[_0x2fc1aa(0x408)];}['_saveCache'](_0x134d7d){const _0x4a1d3c=_0x183fa5,_0x5617f4=this[_0x4a1d3c(0x219)][_0x4a1d3c(0x2dc)](_0x134d7d);return _0x5617f4!==void 0x0&&window[_0x4a1d3c(0x1c2)](_0x5617f4),this['_localStorageService'][_0x4a1d3c(0x326)](u[_0x4a1d3c(0x39f)](_0x134d7d),this[_0x4a1d3c(0x244)][_0x4a1d3c(0x2dc)](_0x134d7d))['then'](()=>this[_0x4a1d3c(0x219)][_0x4a1d3c(0x1dc)](_0x134d7d));}async[_0x183fa5(0x329)](){const _0x1b3678=_0x183fa5,_0x564a31=[];this[_0x1b3678(0x219)][_0x1b3678(0x2ae)]((_0x54867b,_0x523638)=>{const _0x57c331=_0x1b3678;window[_0x57c331(0x1c2)](_0x54867b),_0x564a31[_0x57c331(0x2a0)](this[_0x57c331(0x3a8)](_0x523638)[_0x57c331(0x3eb)](()=>{const _0x4e333a=_0x57c331;this[_0x4e333a(0x219)][_0x4e333a(0x1dc)](_0x523638);}));}),await Promise[_0x1b3678(0x1cc)](_0x564a31);}};ge=qt([_e(0x0,a['IConfigService']),_e(0x1,a[_0x183fa5(0x33d)]),_e(0x2,a[_0x183fa5(0x3dc)](m[_0x183fa5(0x28d)]))],ge);class je extends a[_0x183fa5(0x3b8)]{constructor(){const _0x12443f=_0x183fa5;super(),h(this,_0x12443f(0x2c5)),this['urlChange$']=d[_0x12443f(0x278)](window,_0x12443f(0x3b0))['pipe'](d[_0x12443f(0x351)](this[_0x12443f(0x22f)]),d['shareReplay'](0x1),d[_0x12443f(0x23e)](void 0x0));}['setParam'](_0x32b4c5,_0x278cd3,_0x4368e6=!0x1){const _0x4872d1=_0x183fa5,_0x41108c=new URL(window[_0x4872d1(0x1f4)][_0x4872d1(0x33c)]);_0x41108c['searchParams'][_0x4872d1(0x279)](_0x32b4c5,_0x278cd3),_0x4368e6?window[_0x4872d1(0x366)][_0x4872d1(0x406)]('','',_0x41108c[_0x4872d1(0x1c7)]()):window[_0x4872d1(0x366)][_0x4872d1(0x335)]('','',_0x41108c[_0x4872d1(0x1c7)]());}[_0x183fa5(0x214)](_0x375444,_0x421800=!0x1){const _0x28314b=_0x183fa5,_0xc7ccbb=new URL(window[_0x28314b(0x1f4)]['href']);_0xc7ccbb[_0x28314b(0x294)]['delete'](_0x375444),_0x421800?window[_0x28314b(0x366)][_0x28314b(0x406)]('','',_0xc7ccbb[_0x28314b(0x1c7)]()):window[_0x28314b(0x366)][_0x28314b(0x335)]('','',_0xc7ccbb[_0x28314b(0x1c7)]());}[_0x183fa5(0x262)](_0x2527d5){const _0x548385=_0x183fa5;var _0x56ce34;return(_0x56ce34=new URL(window['location'][_0x548385(0x33c)])[_0x548385(0x294)]['get'](_0x2527d5))!=null?_0x56ce34:void 0x0;}}var Kt=Object['defineProperty'],zt=Object[_0x183fa5(0x255)],Jt=(_0x313a4d,_0x2ff107,_0x132409)=>_0x2ff107 in _0x313a4d?Kt(_0x313a4d,_0x2ff107,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x132409}):_0x313a4d[_0x2ff107]=_0x132409,Zt=(_0x2e4a8f,_0x1df63b,_0x2a3dbe,_0x33f7fe)=>{for(var _0xb3e757=_0x33f7fe>0x1?void 0x0:_0x33f7fe?zt(_0x1df63b,_0x2a3dbe):_0x1df63b,_0x5186a9=_0x2e4a8f['length']-0x1,_0x1ff65b;_0x5186a9>=0x0;_0x5186a9--)(_0x1ff65b=_0x2e4a8f[_0x5186a9])&&(_0xb3e757=_0x1ff65b(_0xb3e757)||_0xb3e757);return _0xb3e757;},he=(_0x1d699e,_0x335b35)=>(_0x211060,_0x553a79)=>_0x335b35(_0x211060,_0x553a79,_0x1d699e),Qt=(_0x2f1e48,_0x3461d8,_0x18f666)=>Jt(_0x2f1e48,_0x3461d8+'',_0x18f666);const es=_0x183fa5(0x3f1);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x183fa5(0x26e)]{constructor(_0x8c9634=Ue,_0x1635d2,_0x2b7b4d,_0x332af0){const _0x44f424=_0x183fa5;super(),this[_0x44f424(0x363)]=_0x8c9634,this[_0x44f424(0x2ad)]=_0x1635d2,this[_0x44f424(0x20a)]=_0x2b7b4d,this[_0x44f424(0x1d8)]=_0x332af0;const {..._0x1e5dc5}=a[_0x44f424(0x3e3)]({},Ue,this[_0x44f424(0x363)]);this['_configService'][_0x44f424(0x365)]($t,_0x1e5dc5);}[_0x183fa5(0x394)](){const _0x2b01a4=_0x183fa5;this[_0x2b01a4(0x3da)](),this[_0x2b01a4(0x34b)]();}[_0x183fa5(0x2e8)](){const _0x1e86cf=_0x183fa5;this[_0x1e86cf(0x35f)]();}[_0x183fa5(0x3da)](){const _0x14e38f=_0x183fa5;var _0x39d7a1;const _0x397551=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x14e38f(0x29f)],{'useClass':G[_0x14e38f(0x3de)]}],[u[_0x14e38f(0x1c9)],{'useClass':ge}],[exports[_0x14e38f(0x222)]],[Q],[K],[x],[de],[exports['CollaborationDataLoaderController']]];a['registerDependencies'](this[_0x14e38f(0x20a)],a[_0x14e38f(0x30a)](_0x397551,(_0x39d7a1=this[_0x14e38f(0x363)])==null?void 0x0:_0x39d7a1[_0x14e38f(0x2e6)]));}[_0x183fa5(0x35f)](){const _0x332bf1=_0x183fa5;this[_0x332bf1(0x220)](this['_renderManagerService'][_0x332bf1(0x2b8)](a[_0x332bf1(0x2f4)][_0x332bf1(0x2c8)],[Ie])),this[_0x332bf1(0x220)](this['_renderManagerService'][_0x332bf1(0x2b8)](a[_0x332bf1(0x2f4)][_0x332bf1(0x407)],[ve]));}[_0x183fa5(0x34b)](){const _0x181e90=_0x183fa5;a[_0x181e90(0x2e3)](this[_0x181e90(0x20a)],[[x],[exports[_0x181e90(0x222)]],[Q],[K],[exports[_0x181e90(0x1c6)]]]);}},Qt(exports[_0x183fa5(0x3a3)],'pluginName',es),exports[_0x183fa5(0x3a3)]=Zt([a[_0x183fa5(0x34e)](u[_0x183fa5(0x30b)]),he(0x1,p[_0x183fa5(0x1ce)]),he(0x2,a[_0x183fa5(0x3dc)](a['Injector'])),he(0x3,a[_0x183fa5(0x338)])],exports[_0x183fa5(0x3a3)]);var ts=Object[_0x183fa5(0x255)],ss=(_0x16e4f2,_0x33cd0c,_0x591954,_0x5b558d)=>{for(var _0x356864=_0x5b558d>0x1?void 0x0:_0x5b558d?ts(_0x33cd0c,_0x591954):_0x33cd0c,_0x3cf2a5=_0x16e4f2['length']-0x1,_0x229913;_0x3cf2a5>=0x0;_0x3cf2a5--)(_0x229913=_0x16e4f2[_0x3cf2a5])&&(_0x356864=_0x229913(_0x356864)||_0x356864);return _0x356864;},F=(_0x23a3a6,_0x3cbdf9)=>(_0x4cf0fa,_0x27b8fd)=>_0x3cbdf9(_0x4cf0fa,_0x27b8fd,_0x23a3a6);exports[_0x183fa5(0x245)]=class extends u[_0x183fa5(0x1af)]{constructor(_0x567c8b,_0x10ed96,_0x1f966b,_0x4a15b1,_0x32bedb){super(_0x567c8b,_0x10ed96,_0x1f966b,_0x4a15b1,_0x32bedb);}async['createSocket'](_0x26ab40){const _0x128f3d=_0x183fa5,_0x8c2f53=await this[_0x128f3d(0x2ab)](),_0xe51891=this[_0x128f3d(0x2d4)](_0x26ab40,_0x8c2f53);return this['_doCreateSocket'](_0xe51891);}['_createSocketURL'](_0x3b4feb,_0x393f27){const _0x2bb04e=_0x183fa5,_0x39fa61=typeof window>'u'?new URL(_0x3b4feb):new URL(_0x3b4feb,window[_0x2bb04e(0x1f4)]['origin']);_0x39fa61[_0x2bb04e(0x294)][_0x2bb04e(0x279)](_0x2bb04e(0x2a9),_0x393f27);const _0x15e7ea=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x2bb04e(0x1f4)][_0x2bb04e(0x320)]);return _0x15e7ea['get'](_0x2bb04e(0x1bd))&&_0x39fa61[_0x2bb04e(0x294)][_0x2bb04e(0x279)](_0x2bb04e(0x1bd),_0x15e7ea[_0x2bb04e(0x2dc)](_0x2bb04e(0x1bd))),_0x39fa61['toString']();}async[_0x183fa5(0x2ab)](){const _0x493682=_0x183fa5;var _0x51a63a,_0x468ca8,_0x433968;const _0xc96093=this[_0x493682(0x1d8)]['getConfig'](u[_0x493682(0x3c7)]),_0x5030e5=(_0x51a63a=_0xc96093==null?void 0x0:_0xc96093[_0x493682(0x318)])!=null?_0x51a63a:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x433968=(_0x468ca8=(await this['_httpService'][_0x493682(0x2dc)](_0x5030e5,{'headers':{'Content-Type':_0x493682(0x31d)}}))[_0x493682(0x357)])==null?void 0x0:_0x468ca8[_0x493682(0x3e1)])!=null?_0x433968:'';}},exports[_0x183fa5(0x245)]=ss([F(0x0,a[_0x183fa5(0x3dc)](a[_0x183fa5(0x2e1)])),F(0x1,a[_0x183fa5(0x3dc)](G[_0x183fa5(0x284)])),F(0x2,a[_0x183fa5(0x338)]),F(0x3,a[_0x183fa5(0x388)]),F(0x4,m['ISnapshotServerService'])],exports[_0x183fa5(0x245)]);const Me=0x7530,Le=_0x183fa5(0x30d);class is extends a[_0x183fa5(0x3ec)]{constructor(){const _0x214a74=_0x183fa5;super(),h(this,_0x214a74(0x3e9),a['generateRandomId']()),h(this,'_selfUnitIDs',new Set()),h(this,_0x214a74(0x2b9),new Map()),h(this,_0x214a74(0x2cd),null),h(this,_0x214a74(0x39d),new Map()),h(this,'_unitStatus',new Map()),this['_init']();}[_0x183fa5(0x2a6)](){const _0x18d0c0=_0x183fa5;super[_0x18d0c0(0x2a6)](),this['_clearOtherTimers'][_0x18d0c0(0x2ae)]((_0x4cbbd8,_0xf8b501)=>this[_0x18d0c0(0x22e)](_0xf8b501)),this['_heartbeatTimer']&&window[_0x18d0c0(0x1f8)](this[_0x18d0c0(0x2cd)]);}[_0x183fa5(0x3ce)](_0x3b2331){const _0x3aecee=_0x183fa5;return this[_0x3aecee(0x3fe)](_0x3b2331)[_0x3aecee(0x213)](d['distinctUntilChanged']());}['editingUnit'](_0x1933e6){const _0x82d39c=_0x183fa5;this[_0x82d39c(0x3b2)][_0x82d39c(0x36e)]===0x0&&this[_0x82d39c(0x215)](),this['_selfUnitIDs'][_0x82d39c(0x292)](_0x1933e6),this[_0x82d39c(0x354)]({'type':0x0,'memberID':this[_0x82d39c(0x3e9)],'unitIDs':[_0x1933e6],'isForwarded':!0x1});}['disposeUnit'](_0x15492c){const _0x18b2b9=_0x183fa5;this['_selfUnitIDs'][_0x18b2b9(0x1dc)](_0x15492c),this[_0x18b2b9(0x3b2)][_0x18b2b9(0x36e)]===0x0&&this[_0x18b2b9(0x2cd)]&&window[_0x18b2b9(0x1f8)](this[_0x18b2b9(0x2cd)]);}[_0x183fa5(0x240)](){const _0x2c30c5=_0x183fa5;this['disposeWithMe'](a[_0x2c30c5(0x29e)](d['fromEvent'](window,'storage')[_0x2c30c5(0x24c)](_0x2217ae=>{const _0x205c0e=_0x2c30c5;if(_0x2217ae[_0x205c0e(0x33f)]!==Le||!_0x2217ae[_0x205c0e(0x2bb)])return;const _0x1e03a5=JSON[_0x205c0e(0x2f0)](_0x2217ae[_0x205c0e(0x2bb)]);this[_0x205c0e(0x1f2)](_0x1e03a5);}))),window['addEventListener']('unload',()=>this[_0x2c30c5(0x354)]({'type':0x1,'memberID':this[_0x2c30c5(0x3e9)],'unitIDs':Array['from'](this[_0x2c30c5(0x3b2)])}));}[_0x183fa5(0x1f2)](_0x2059ea){const _0x3f3f21=_0x183fa5;switch(_0x2059ea[_0x3f3f21(0x2c9)]){case 0x0:this[_0x3f3f21(0x36f)](_0x2059ea);break;case 0x1:this[_0x3f3f21(0x1f1)](_0x2059ea);break;case 0x2:this['_handleHeartbeatEvent'](_0x2059ea);break;}}[_0x183fa5(0x36f)](_0x3d7878){const _0x3ce74d=_0x183fa5,{unitIDs:_0x256c14,memberID:_0x501041,isForwarded:_0x235d48}=_0x3d7878;_0x256c14[_0x3ce74d(0x2ae)](_0x4829cd=>{const _0x4f1535=_0x3ce74d;if(!_0x235d48&&this[_0x4f1535(0x2b9)][_0x4f1535(0x1e3)](_0x4829cd)&&this[_0x4f1535(0x3fe)](_0x4829cd)[_0x4f1535(0x254)](u[_0x4f1535(0x211)][_0x4f1535(0x2f9)]),!this[_0x4f1535(0x2b9)]['has'](_0x4829cd)||!this[_0x4f1535(0x2b9)]['get'](_0x4829cd)[_0x4f1535(0x1e3)](_0x501041)){const _0x384c0d=this[_0x4f1535(0x2b9)]['get'](_0x4829cd)||new Set();_0x384c0d[_0x4f1535(0x292)](_0x501041),this[_0x4f1535(0x2b9)][_0x4f1535(0x279)](_0x4829cd,_0x384c0d),this[_0x4f1535(0x2b5)](_0x501041);}}),_0x235d48||this[_0x3ce74d(0x354)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3ce74d(0x3b2)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x58dad2){const _0x29e471=_0x183fa5;this['_removeClearOtherTimer'](_0x58dad2);const _0x2c7bf2=window['setTimeout'](()=>{const _0x39784f=_0x5188;this[_0x39784f(0x2b9)][_0x39784f(0x2ae)](_0x4980bf=>{const _0x4c55d7=_0x39784f;_0x4980bf[_0x4c55d7(0x1dc)](_0x58dad2);});},Me*0x2);this[_0x29e471(0x39d)][_0x29e471(0x279)](_0x58dad2,_0x2c7bf2);}['_removeClearOtherTimer'](_0x3278fc){const _0x1fc79d=_0x183fa5;if(this['_clearOtherTimers'][_0x1fc79d(0x1e3)](_0x3278fc)){const _0x5ae65a=this[_0x1fc79d(0x39d)][_0x1fc79d(0x2dc)](_0x3278fc);_0x5ae65a&&window[_0x1fc79d(0x1c2)](_0x5ae65a),this['_clearOtherTimers']['set'](_0x3278fc,null);}}[_0x183fa5(0x1f1)](_0x329ec5){const _0x1566e8=_0x183fa5,{memberID:_0x4dbc48,unitIDs:_0x3f8dfe}=_0x329ec5;_0x3f8dfe[_0x1566e8(0x2ae)](_0x145a2e=>{const _0x7cf28b=_0x1566e8;var _0x53ab87;const _0x1e56df=this[_0x7cf28b(0x2b9)][_0x7cf28b(0x2dc)](_0x145a2e);_0x1e56df&&(_0x1e56df['delete'](_0x4dbc48),(_0x53ab87=this['_ensureSubject'](_0x145a2e))==null||_0x53ab87[_0x7cf28b(0x254)](_0x1e56df[_0x7cf28b(0x36e)]===0x0?u[_0x7cf28b(0x211)][_0x7cf28b(0x33b)]:u[_0x7cf28b(0x211)][_0x7cf28b(0x2f9)]));}),this[_0x1566e8(0x22e)](_0x4dbc48);}[_0x183fa5(0x234)](_0x425883){const _0x5d6147=_0x183fa5;this[_0x5d6147(0x2b5)](_0x425883[_0x5d6147(0x286)]);}[_0x183fa5(0x354)](_0xe3df1c){const _0x2d7128=_0x183fa5;localStorage[_0x2d7128(0x326)](Le,JSON[_0x2d7128(0x1df)](_0xe3df1c));}[_0x183fa5(0x215)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x4fd008=_0x5188;this[_0x4fd008(0x354)]({'type':0x2,'memberID':this[_0x4fd008(0x3e9)]});},Me);}[_0x183fa5(0x3fe)](_0x119c55){const _0x31a3e0=_0x183fa5;return this[_0x31a3e0(0x1aa)]['has'](_0x119c55)||this[_0x31a3e0(0x1aa)][_0x31a3e0(0x279)](_0x119c55,new d[(_0x31a3e0(0x323))](u[_0x31a3e0(0x211)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x31a3e0(0x2dc)](_0x119c55);}}var Be=(_0x59f251=>(_0x59f251[_0x59f251[_0x183fa5(0x291)]=0x0]=_0x183fa5(0x291),_0x59f251[_0x59f251['OK']=0x1]='OK',_0x59f251[_0x59f251[_0x183fa5(0x360)]=0x2]=_0x183fa5(0x360),_0x59f251[_0x59f251[_0x183fa5(0x311)]=0x3]=_0x183fa5(0x311),_0x59f251[_0x59f251['NOT_FOUND']=0x4]=_0x183fa5(0x2d8),_0x59f251[_0x59f251[_0x183fa5(0x2ea)]=0x5]=_0x183fa5(0x2ea),_0x59f251[_0x59f251['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x59f251[_0x59f251[_0x183fa5(0x379)]=0x7]=_0x183fa5(0x379),_0x59f251[_0x59f251[_0x183fa5(0x36a)]=0x8]=_0x183fa5(0x36a),_0x59f251[_0x59f251[_0x183fa5(0x3cb)]=0x9]='COMPLETION_FINISHED',_0x59f251[_0x59f251[_0x183fa5(0x21c)]=0xa]=_0x183fa5(0x21c),_0x59f251[_0x59f251[_0x183fa5(0x2d7)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x59f251[_0x59f251[_0x183fa5(0x241)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x59f251[_0x59f251[_0x183fa5(0x355)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x59f251[_0x59f251[_0x183fa5(0x2c6)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x59f251[_0x59f251[_0x183fa5(0x23f)]=0x1b59]='APPLY_REJECT',_0x59f251[_0x59f251[_0x183fa5(0x1b1)]=0x1b5a]=_0x183fa5(0x1b1),_0x59f251[_0x59f251[_0x183fa5(0x2ac)]=0x1b5b]=_0x183fa5(0x2ac),_0x59f251[_0x59f251['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x183fa5(0x3e8),_0x59f251[_0x59f251[_0x183fa5(0x3ac)]=0x1b5d]=_0x183fa5(0x3ac),_0x59f251[_0x59f251[_0x183fa5(0x3d6)]=0x1f41]=_0x183fa5(0x3d6),_0x59f251[_0x59f251['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x183fa5(0x1e8),_0x59f251[_0x59f251[_0x183fa5(0x39e)]=0x232a]=_0x183fa5(0x39e),_0x59f251[_0x59f251[_0x183fa5(0x401)]=0x232b]=_0x183fa5(0x401),_0x59f251[_0x59f251[_0x183fa5(0x305)]=0x232c]=_0x183fa5(0x305),_0x59f251[_0x59f251['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x59f251[_0x59f251[_0x183fa5(0x280)]=0x2711]=_0x183fa5(0x280),_0x59f251[_0x59f251[_0x183fa5(0x283)]=0x2712]=_0x183fa5(0x283),_0x59f251[_0x59f251[_0x183fa5(0x25d)]=0x2713]=_0x183fa5(0x25d),_0x59f251[_0x59f251[_0x183fa5(0x2a7)]=0x2714]=_0x183fa5(0x2a7),_0x59f251[_0x59f251[_0x183fa5(0x269)]=0x271a]=_0x183fa5(0x269),_0x59f251[_0x59f251[_0x183fa5(0x3ad)]=0x271b]=_0x183fa5(0x3ad),_0x59f251[_0x59f251[_0x183fa5(0x3d1)]=0x2af9]=_0x183fa5(0x3d1),_0x59f251[_0x59f251[_0x183fa5(0x249)]=0x2ee1]=_0x183fa5(0x249),_0x59f251[_0x59f251[_0x183fa5(0x2eb)]=0x2ee2]='INVALID_INVITE_CODE',_0x59f251[_0x59f251[_0x183fa5(0x402)]=0x2ee3]=_0x183fa5(0x402),_0x59f251[_0x59f251[_0x183fa5(0x2fa)]=0x2ee4]='USER_NOT_INVITED_CODE',_0x59f251[_0x59f251['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x183fa5(0x21b),_0x59f251[_0x59f251[_0x183fa5(0x314)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x59f251[_0x59f251[_0x183fa5(0x3e2)]=0x32ca]=_0x183fa5(0x3e2),_0x59f251[_0x59f251['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x183fa5(0x25b),_0x59f251[_0x59f251[_0x183fa5(0x25e)]=-0x1]='UNRECOGNIZED',_0x59f251))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x46b768,_0x473f41,_0x10a7ae,_0x570a4b)=>{const _0x447bde=_0x183fa5;for(var _0x112e83=_0x570a4b>0x1?void 0x0:_0x570a4b?ns(_0x473f41,_0x10a7ae):_0x473f41,_0x51b4ee=_0x46b768[_0x447bde(0x260)]-0x1,_0x42b06c;_0x51b4ee>=0x0;_0x51b4ee--)(_0x42b06c=_0x46b768[_0x51b4ee])&&(_0x112e83=_0x42b06c(_0x112e83)||_0x112e83);return _0x112e83;},ue=(_0x3e8c86,_0x787de8)=>(_0x3d2856,_0x181c26)=>_0x787de8(_0x3d2856,_0x181c26,_0x3e8c86);exports[_0x183fa5(0x1e6)]=class extends a[_0x183fa5(0x3ec)]{constructor(_0x49121f,_0x40b83a,_0x356358){const _0x1269c1=_0x183fa5;super(),this['_instanceService']=_0x49121f,this['_httpService']=_0x40b83a,this[_0x1269c1(0x1d8)]=_0x356358;}async[_0x183fa5(0x3c1)](_0x521f9e,_0x3ac69,_0x1a0706,..._0x5c1501){const _0xf035fd=_0x183fa5;var _0x31e679,_0x5c037f,_0x3a1fe9,_0x27c22d;const _0x36a2cf=this['_instanceService'][_0xf035fd(0x276)]();if(!_0x36a2cf)throw new Error(_0xf035fd(0x242));const _0x17d97c=((_0x31e679=this['_configService'][_0xf035fd(0x3f6)](u[_0xf035fd(0x25f)]))!=null?_0x31e679:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x521f9e+_0xf035fd(0x2fd)+_0x3ac69,_0x12d1cc=new URL(window[_0xf035fd(0x1f4)][_0xf035fd(0x33c)]),_0x1b269f={'scriptId':_0x521f9e,'runId':(_0x5c037f=_0x12d1cc[_0xf035fd(0x294)][_0xf035fd(0x2dc)]('runId'))!=null?_0x5c037f:'','function':_0x3ac69,'unitId':_0x36a2cf[_0xf035fd(0x3bf)](),'argsOfFunction':JSON['stringify'](_0x5c1501),'invokeId':(_0x3a1fe9=_0x1a0706[_0xf035fd(0x199)])!=null?_0x3a1fe9:'','executionId':(_0x27c22d=_0x1a0706[_0xf035fd(0x275)])!=null?_0x27c22d:''};try{const _0x1c6509=await this[_0xf035fd(0x224)][_0xf035fd(0x288)](_0x17d97c,{'body':_0x1b269f});return _0x1c6509[_0xf035fd(0x357)][_0xf035fd(0x1b6)]&&_0x1c6509[_0xf035fd(0x357)][_0xf035fd(0x1b6)][_0xf035fd(0x29a)]!==Be['OK']?_0xf035fd(0x251):_0x1c6509[_0xf035fd(0x357)]['result'];}catch{return'Failed';}}},exports[_0x183fa5(0x1e6)]=rs([ue(0x0,a[_0x183fa5(0x33a)]),ue(0x1,a[_0x183fa5(0x3dc)](G[_0x183fa5(0x284)])),ue(0x2,a['IConfigService'])],exports[_0x183fa5(0x1e6)]),exports[_0x183fa5(0x1c8)]=xe,exports['IURLService']=be,exports[_0x183fa5(0x2aa)]=we,exports['WebBrowserSingleActiveUnitService']=is,exports['WebURLService']=je;
1
+ 'use strict';const _0x581ecc=_0x17f3;(function(_0x44d5ef,_0x500166){const _0x3144b4=_0x17f3,_0x5b25f7=_0x44d5ef();while(!![]){try{const _0x363162=-parseInt(_0x3144b4(0x1aa))/0x1+parseInt(_0x3144b4(0x30a))/0x2+parseInt(_0x3144b4(0x129))/0x3*(-parseInt(_0x3144b4(0x1e0))/0x4)+-parseInt(_0x3144b4(0x1c7))/0x5*(-parseInt(_0x3144b4(0x173))/0x6)+parseInt(_0x3144b4(0x2f1))/0x7*(parseInt(_0x3144b4(0x14e))/0x8)+parseInt(_0x3144b4(0x2f2))/0x9+-parseInt(_0x3144b4(0x33f))/0xa;if(_0x363162===_0x500166)break;else _0x5b25f7['push'](_0x5b25f7['shift']());}catch(_0x40ba1e){_0x5b25f7['push'](_0x5b25f7['shift']());}}}(_0x3fa8,0xeba46));var Ve=Object[_0x581ecc(0x2bf)],Xe=(_0x2ac63d,_0x14eb34,_0xc5dc84)=>_0x14eb34 in _0x2ac63d?Ve(_0x2ac63d,_0x14eb34,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc5dc84}):_0x2ac63d[_0x14eb34]=_0xc5dc84,h=(_0x42e58c,_0x5d9e36,_0x139fa5)=>Xe(_0x42e58c,typeof _0x5d9e36!=_0x581ecc(0x2fd)?_0x5d9e36+'':_0x5d9e36,_0x139fa5);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x581ecc(0x172)});const u=require(_0x581ecc(0x2ab)),a=require(_0x581ecc(0x2e6)),p=require(_0x581ecc(0x1d6)),G=require('@univerjs/network'),b=require(_0x581ecc(0x356)),Ge=require(_0x581ecc(0x21b)),d=require(_0x581ecc(0x28a)),W=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Ee=require(_0x581ecc(0x1d5)),g=require(_0x581ecc(0x1dc)),$=require(_0x581ecc(0x385)),X=require(_0x581ecc(0x32a)),P=require('react/jsx-runtime'),T=require(_0x581ecc(0x2a3)),D=require('@univerjs/design'),M=require(_0x581ecc(0x33b)),qe=require('@univerjs/rpc');var Ke=Object[_0x581ecc(0x182)],ze=(_0x2da86f,_0xab15f0,_0x3465d0,_0x164cf5)=>{const _0x420ece=_0x581ecc;for(var _0x12e818=_0x164cf5>0x1?void 0x0:_0x164cf5?Ke(_0xab15f0,_0x3465d0):_0xab15f0,_0x35c79b=_0x2da86f[_0x420ece(0x2a0)]-0x1,_0x26ed5c;_0x35c79b>=0x0;_0x35c79b--)(_0x26ed5c=_0x2da86f[_0x35c79b])&&(_0x12e818=_0x26ed5c(_0x12e818)||_0x12e818);return _0x12e818;},Te=(_0x2dfe7c,_0x381300)=>(_0x2caa7c,_0x5d9a22)=>_0x381300(_0x2caa7c,_0x5d9a22,_0x2dfe7c);let de=class extends a[_0x581ecc(0x2e8)]{constructor(_0x33bb95,_0x27cbc6){const _0x787e2e=_0x581ecc;super(),this['_docClipboardService']=_0x33bb95,this[_0x787e2e(0x231)]=_0x27cbc6,this[_0x787e2e(0x1f1)]();}['_init'](){const _0x2b3554=_0x581ecc,_0x13aa8a=this;this[_0x2b3554(0x191)](this['_docClipboardService'][_0x2b3554(0x1be)]({'onBeforePasteImage':async _0xdb73ef=>{const _0x5e5390=_0x2b3554,_0x129600=await _0x13aa8a[_0x5e5390(0x231)][_0x5e5390(0x2f7)](_0xdb73ef);return _0x129600?{'source':_0x129600['source'],'imageSourceType':_0x129600[_0x5e5390(0x2e4)]}:null;}}));}};de=ze([Te(0x0,b[_0x581ecc(0x2b3)]),Te(0x1,Ge[_0x581ecc(0x341)])],de);const Oe=['purple300',_0x581ecc(0x175),_0x581ecc(0x1b7),'red300',_0x581ecc(0x1e2),_0x581ecc(0x2e5)];class me extends a[_0x581ecc(0x1fc)]{constructor(){const _0x229868=_0x581ecc;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x229868(0x18f),0x0);}['assignAColorForMemberID'](_0x55e10c){const _0x1dea26=_0x581ecc;if(this[_0x1dea26(0x266)][_0x1dea26(0x1af)](_0x55e10c))return this['_assignedColors'][_0x1dea26(0x2b8)](_0x55e10c);const _0x25296b=Oe[this[_0x1dea26(0x18f)]];return this[_0x1dea26(0x18f)]=(this[_0x1dea26(0x18f)]+0x1)%Oe[_0x1dea26(0x2a0)],this[_0x1dea26(0x266)][_0x1dea26(0x2d0)](_0x55e10c,_0x25296b),_0x25296b;}}function Pe(_0x1e90e1){const _0x4a7794=_0x581ecc;let _0x30e136='';for(const _0x5b4da8 of _0x1e90e1){const {startOffset:_0x3e7b8c,endOffset:_0x3dd1cf,isActive:_0x3fa57d,rangeType:_0x1d2d7b,segmentId:_0x21a807,segmentPage:_0x577531}=_0x5b4da8;_0x30e136[_0x4a7794(0x2a0)]&&(_0x30e136+=','),_0x30e136+=_0x3e7b8c+':'+_0x3dd1cf+':'+(_0x3fa57d?'1':'0')+':'+_0x1d2d7b+':'+_0x21a807+':'+_0x577531;}return _0x30e136;}function Je(_0x32c287){const _0xe84765=_0x581ecc,_0x555195=_0x32c287[_0xe84765(0x348)](','),_0x4a9cf9=[];for(const _0xb54da7 of _0x555195){const [_0x246b32,_0x4d683f,_0x569f00,_0x47541e,_0x2a8fea,_0xf78467]=_0xb54da7['split'](':');_0x4a9cf9[_0xe84765(0x11e)]({'startOffset':Number(_0x246b32),'endOffset':Number(_0x4d683f),'collapsed':_0x246b32===_0x4d683f,'isActive':_0x569f00==='1','rangeType':_0x47541e===a[_0xe84765(0x1c2)][_0xe84765(0x217)]?a['DOC_RANGE_TYPE'][_0xe84765(0x217)]:a['DOC_RANGE_TYPE'][_0xe84765(0x331)],'segmentId':typeof _0x2a8fea=='string'?String(_0x2a8fea):'','segmentPage':Number(_0xf78467!=null?_0xf78467:-0x1)});}return _0x4a9cf9['some'](_0x32e09c=>_0x32e09c[_0xe84765(0x37f)])||(_0x4a9cf9[0x0][_0xe84765(0x37f)]=!0x0),_0x4a9cf9;}class Ce extends a['RxDisposable']{constructor(){const _0x49ccf1=_0x581ecc;super(...arguments),h(this,'_collabCursorState$',new d['BehaviorSubject'](null)),h(this,_0x49ccf1(0x19f),this[_0x49ccf1(0x240)][_0x49ccf1(0x2ea)]());}[_0x581ecc(0x28d)](_0x2ad354){const _0x37284e=_0x581ecc,{unitID:_0x217248,memberID:_0x35a5ad,textRanges:_0x16fbf8}=_0x2ad354,_0x3c5c5f=Pe(_0x16fbf8);if(_0x3c5c5f==='')return;const _0x5060b9={'unitID':_0x217248,'memberID':_0x35a5ad,'selection':_0x3c5c5f};this[_0x37284e(0x240)][_0x37284e(0x33d)](_0x5060b9);}}var Ze=Object[_0x581ecc(0x182)],Qe=(_0x5e0305,_0x133fd1,_0x381ab6,_0x4bfdfd)=>{const _0x2f9849=_0x581ecc;for(var _0x31e3d2=_0x4bfdfd>0x1?void 0x0:_0x4bfdfd?Ze(_0x133fd1,_0x381ab6):_0x133fd1,_0x24310d=_0x5e0305[_0x2f9849(0x2a0)]-0x1,_0x40fc4f;_0x24310d>=0x0;_0x24310d--)(_0x40fc4f=_0x5e0305[_0x24310d])&&(_0x31e3d2=_0x40fc4f(_0x31e3d2)||_0x31e3d2);return _0x31e3d2;},L=(_0x364a64,_0x23a1a6)=>(_0x275a43,_0x26fe05)=>_0x23a1a6(_0x275a43,_0x26fe05,_0x364a64);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x3cc6f8,_0x5b2cfe,_0x3e5b90,_0x487167,_0x1fb0ad,_0x43ba95,_0x38317b,_0x1e014f,_0x43aac2){const _0x312e7e=_0x581ecc;super(),h(this,_0x312e7e(0x34a),!0x1),h(this,'_init',!0x1),h(this,_0x312e7e(0x20e),new d[(_0x312e7e(0x205))](new Map())),h(this,_0x312e7e(0x22c),this['_cursorInfo$']['asObservable']()),h(this,'_roomMembers$',new d[(_0x312e7e(0x205))]([])),h(this,'roomMembers$',this[_0x312e7e(0x140)][_0x312e7e(0x37a)](d['debounceTime'](et))),h(this,_0x312e7e(0x337),a[_0x312e7e(0x2c5)](_0x590ad5=>{const _0x42e156=_0x312e7e,_0x3b7e52={'eventID':m[_0x42e156(0x344)][_0x42e156(0x22e)],'data':{'unitID':this[_0x42e156(0x2c7)],'memberID':this[_0x42e156(0x38d)][_0x42e156(0x363)](),'selection':Pe(_0x590ad5)}};this['_session']['send'](_0x3b7e52,this[_0x42e156(0x2c7)]);},tt)),(this['unitID']=_0x3cc6f8,this[_0x312e7e(0x38d)]=_0x5b2cfe,this['_injector']=_0x3e5b90,this[_0x312e7e(0x1b3)]=_0x487167,this[_0x312e7e(0x19d)]=_0x1fb0ad,this[_0x312e7e(0x32d)]=_0x43ba95,this[_0x312e7e(0x2ae)]=_0x38317b,this[_0x312e7e(0x1a1)]=_0x1e014f,this[_0x312e7e(0x290)]=_0x43aac2);}get[_0x581ecc(0x33e)](){const _0xbf0d18=_0x581ecc;return this[_0xbf0d18(0x20e)][_0xbf0d18(0x242)]();}get[_0x581ecc(0x285)](){const _0x1d1085=_0x581ecc;return this[_0x1d1085(0x140)][_0x1d1085(0x242)]();}[_0x581ecc(0x1b0)](){const _0x515467=_0x581ecc;super[_0x515467(0x1b0)](),this[_0x515467(0x20e)][_0x515467(0x33d)](new Map()),this['_cursorInfo$']['complete'](),this[_0x515467(0x140)][_0x515467(0x33d)]([]),this[_0x515467(0x140)][_0x515467(0x21e)]();}['init'](){const _0x55ca2c=_0x581ecc;this[_0x55ca2c(0x1f1)]||(this[_0x55ca2c(0x1f1)]=!0x0,this['_session'][_0x55ca2c(0x2c0)][_0x55ca2c(0x37a)](d[_0x55ca2c(0x18e)](this[_0x55ca2c(0x194)]))['subscribe'](_0x50542f=>{const _0x900b19=_0x55ca2c;_0x50542f===u['SessionStatus'][_0x900b19(0x325)]?this[_0x900b19(0x30e)]():this[_0x900b19(0x267)]();}),this[_0x55ca2c(0x38d)][_0x55ca2c(0x2dc)]['pipe'](d[_0x55ca2c(0x18e)](this[_0x55ca2c(0x194)]))['subscribe'](_0x5c54d2=>{const _0x1ca7b4=_0x55ca2c,_0xe2942e=_0x5c54d2[_0x1ca7b4(0x38c)];_0xe2942e===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x1ca7b4(0x145)](_0x5c54d2),_0xe2942e===m[_0x1ca7b4(0x344)][_0x1ca7b4(0x2d7)]&&this[_0x1ca7b4(0x188)](_0x5c54d2);}),this[_0x55ca2c(0x191)](this[_0x55ca2c(0x290)][_0x55ca2c(0x2be)](_0x1ac37f=>{const _0x14ad44=_0x55ca2c,_0x2d8b23=_0x1ac37f['params'];_0x2d8b23!=null&&this[_0x14ad44(0x34a)]&&_0x1ac37f['id']===W['SetTextSelectionsOperation']['id']&&_0x2d8b23[_0x14ad44(0x2bc)]===this[_0x14ad44(0x2c7)]&&_0x2d8b23[_0x14ad44(0x1ce)]===!0x1&&_0x2d8b23[_0x14ad44(0x249)][_0x14ad44(0x2a0)]>0x0&&this['_updateLocalCursor'](_0x2d8b23['ranges']);})),this[_0x55ca2c(0x32d)][_0x55ca2c(0x19f)][_0x55ca2c(0x37a)](d[_0x55ca2c(0x18e)](this[_0x55ca2c(0x194)]))[_0x55ca2c(0x21f)](_0x120065=>{const _0x4cb77a=_0x55ca2c;if((_0x120065==null?void 0x0:_0x120065[_0x4cb77a(0x2c7)])!==this[_0x4cb77a(0x2c7)])return;const _0x305612={'eventID':m[_0x4cb77a(0x344)][_0x4cb77a(0x22e)],'data':_0x120065};this[_0x4cb77a(0x145)](_0x305612);}),this[_0x55ca2c(0x191)](this[_0x55ca2c(0x290)][_0x55ca2c(0x2be)](_0x24ed10=>{const _0x281b7b=_0x55ca2c;if(_0x24ed10[_0x281b7b(0x16d)]==null)return;const _0x1bf554=_0x24ed10[_0x281b7b(0x16d)];if(_0x24ed10['id']!==W[_0x281b7b(0x2b4)]['id']||_0x1bf554[_0x281b7b(0x2bc)]!==this[_0x281b7b(0x2c7)])return;const _0x49ce45={'id':_0x281b7b(0x306),'params':_0x1bf554},_0x695aed=this[_0x281b7b(0x33e)];for(const [_0x436538,_0x34412c]of _0x695aed){const _0xf1c50f={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x281b7b(0x2c7)],'actions':null,'textRanges':_0x34412c[_0x281b7b(0x249)]}},_0x4ab50b=this[_0x281b7b(0x2ae)][_0x281b7b(0x2cb)](_0x49ce45,_0xf1c50f,!0x1);if(m['isTransformMutationFailure'](_0x4ab50b))throw _0x4ab50b['error'];_0x695aed[_0x281b7b(0x2d0)](_0x436538,{..._0x34412c,'ranges':_0x4ab50b['m2Prime'][_0x281b7b(0x16d)][_0x281b7b(0x375)]});}queueMicrotask(()=>{const _0x373b80=_0x281b7b;this['_cursorInfo$'][_0x373b80(0x33d)](_0x695aed);});})));}[_0x581ecc(0x145)](_0x4d5684){const _0x421122=_0x581ecc;var _0x3376df,_0x6963e;const {memberID:_0x4defa4,selection:_0x3b1cf6}=_0x4d5684[_0x421122(0x17c)],_0xb0f28d=Je(_0x3b1cf6),_0xc066a9=(_0x6963e=(_0x3376df=this[_0x421122(0x19d)]['getMember'](this[_0x421122(0x2c7)],_0x4defa4))==null?void 0x0:_0x3376df[_0x421122(0x1a4)])!=null?_0x6963e:_0x421122(0x2f3),_0x285313={'color':this['_colorAssignService'][_0x421122(0x17e)](_0x4defa4),'name':_0xc066a9,'ranges':_0xb0f28d},_0x3a0e1b=this[_0x421122(0x33e)];_0x3a0e1b[_0x421122(0x2d0)](_0x4defa4,_0x285313),this[_0x421122(0x20e)][_0x421122(0x33d)](_0x3a0e1b);}[_0x581ecc(0x188)](_0x22297c){const _0x3b010b=_0x581ecc,{memberID:_0x40b86c}=_0x22297c[_0x3b010b(0x17c)],_0x5c0c39=this[_0x3b010b(0x33e)];_0x5c0c39['delete'](_0x40b86c),this[_0x3b010b(0x20e)][_0x3b010b(0x33d)](_0x5c0c39);}[_0x581ecc(0x30e)](){const _0x42ceac=_0x581ecc;var _0x2fa6ee;if(this['_online']=!0x0,((_0x2fa6ee=this['_univerInstanceService'][_0x42ceac(0x254)]())==null?void 0x0:_0x2fa6ee[_0x42ceac(0x274)]())!==this[_0x42ceac(0x2c7)])return;const _0x730ef6=this[_0x42ceac(0x27b)]['get'](W['DocSelectionManagerService'])[_0x42ceac(0x360)]();Array['isArray'](_0x730ef6)&&_0x730ef6[_0x42ceac(0x2a0)]>0x0&&this[_0x42ceac(0x337)](_0x730ef6);}[_0x581ecc(0x267)](){const _0x305770=_0x581ecc;this[_0x305770(0x34a)]=!0x1;}};fe=Qe([L(0x2,a[_0x581ecc(0x210)](a[_0x581ecc(0x255)])),L(0x3,a[_0x581ecc(0x210)](me)),L(0x4,a['Inject'](u[_0x581ecc(0x308)])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0x581ecc(0x28b)]),L(0x7,a[_0x581ecc(0x2f9)]),L(0x8,a[_0x581ecc(0x353)])],fe);var st=Object[_0x581ecc(0x182)],it=(_0x291b35,_0x5da4f5,_0x3cd4a7,_0x5dd837)=>{for(var _0x390085=_0x5dd837>0x1?void 0x0:_0x5dd837?st(_0x5da4f5,_0x3cd4a7):_0x5da4f5,_0x3e96dc=_0x291b35['length']-0x1,_0x29a791;_0x3e96dc>=0x0;_0x3e96dc--)(_0x29a791=_0x291b35[_0x3e96dc])&&(_0x390085=_0x29a791(_0x390085)||_0x390085);return _0x390085;},A=(_0x2c9a5a,_0x5a5ada)=>(_0x2f0b4d,_0x2c0edf)=>_0x5a5ada(_0x2f0b4d,_0x2c0edf,_0x2c9a5a);const nt=0x12c,rt=0x64,ot=()=>{let _0x1fa30e=[],_0xf3c5de=!0x1;return _0x1a5ae4=>{const _0x1f81a7=_0x17f3;_0x1fa30e[_0x1f81a7(0x11e)](_0x1a5ae4),_0xf3c5de||(_0xf3c5de=!0x0,setTimeout(()=>{_0x1fa30e['forEach'](_0x416292=>_0x416292()),_0x1fa30e=[],_0xf3c5de=!0x1;}));};};let Se=class extends a[_0x581ecc(0x2e8)]{constructor(_0x529c9c,_0x5bac16,_0x465f05,_0x1504cc,_0x57ac31,_0x55569b,_0x54fad8,_0x1b8f78){const _0x4a066d=_0x581ecc;super(),h(this,_0x4a066d(0x34a),!0x1),h(this,_0x4a066d(0x1f1),!0x1),h(this,_0x4a066d(0x20e),new d[(_0x4a066d(0x205))](new Map())),h(this,_0x4a066d(0x22c),this[_0x4a066d(0x20e)][_0x4a066d(0x2ea)]()),h(this,'_roomMembers$',new d[(_0x4a066d(0x205))]([])),h(this,_0x4a066d(0x160),this['_roomMembers$'][_0x4a066d(0x37a)](d['debounceTime'](nt))),h(this,_0x4a066d(0x337),a[_0x4a066d(0x2c5)]((_0xcf166a,_0x535710)=>{const _0x5aef41=_0x4a066d,_0x2e0403={'eventID':m[_0x5aef41(0x344)][_0x5aef41(0x22e)],'data':{'unitID':this[_0x5aef41(0x2c7)],'memberID':this[_0x5aef41(0x38d)][_0x5aef41(0x363)](),'selection':Ee[_0x5aef41(0x1fd)](_0xcf166a,_0x535710['range'])}};this[_0x5aef41(0x38d)][_0x5aef41(0x339)](_0x2e0403,this[_0x5aef41(0x2c7)]);},rt)),(this[_0x4a066d(0x2c7)]=_0x529c9c,this[_0x4a066d(0x38d)]=_0x5bac16,this[_0x4a066d(0x27b)]=_0x465f05,this[_0x4a066d(0x1b3)]=_0x1504cc,this[_0x4a066d(0x19d)]=_0x57ac31,this[_0x4a066d(0x1a1)]=_0x55569b,this[_0x4a066d(0x290)]=_0x54fad8,this[_0x4a066d(0x29f)]=_0x1b8f78);}get[_0x581ecc(0x33e)](){const _0x51795f=_0x581ecc;return this['_cursorInfo$'][_0x51795f(0x242)]();}get['roomMembers'](){const _0x4175d6=_0x581ecc;return this[_0x4175d6(0x140)]['getValue']();}[_0x581ecc(0x1b0)](){const _0x1d24fe=_0x581ecc;super[_0x1d24fe(0x1b0)](),this[_0x1d24fe(0x20e)][_0x1d24fe(0x33d)](new Map()),this['_cursorInfo$'][_0x1d24fe(0x21e)](),this[_0x1d24fe(0x140)][_0x1d24fe(0x33d)]([]),this[_0x1d24fe(0x140)][_0x1d24fe(0x21e)]();}[_0x581ecc(0x21c)](){const _0x5971c9=_0x581ecc;this[_0x5971c9(0x1f1)]||(this[_0x5971c9(0x1f1)]=!0x0,this[_0x5971c9(0x38d)][_0x5971c9(0x2c0)][_0x5971c9(0x37a)](d[_0x5971c9(0x18e)](this[_0x5971c9(0x194)]))[_0x5971c9(0x21f)](_0x159886=>{const _0x466eb4=_0x5971c9;_0x159886===u['SessionStatus'][_0x466eb4(0x325)]?this[_0x466eb4(0x30e)]():this[_0x466eb4(0x267)]();}),this[_0x5971c9(0x38d)][_0x5971c9(0x2dc)][_0x5971c9(0x37a)](d[_0x5971c9(0x18e)](this[_0x5971c9(0x194)]))['subscribe'](_0x44227f=>{const _0x1b0d85=_0x5971c9,_0x28002f=_0x44227f['eventID'];_0x28002f===m[_0x1b0d85(0x344)][_0x1b0d85(0x22e)]&&this['_onCursorUpdate'](_0x44227f),_0x28002f===m[_0x1b0d85(0x344)][_0x1b0d85(0x2d7)]&&this['_onCursorDelete'](_0x44227f);}),this[_0x5971c9(0x167)](),this[_0x5971c9(0x191)](this[_0x5971c9(0x290)]['onCommandExecuted'](_0x176ad2=>{const _0x2e2594=_0x5971c9;if(this[_0x2e2594(0x34a)]&&_0x176ad2['id']===g[_0x2e2594(0x1f9)]['id']&&_0x176ad2[_0x2e2594(0x16d)][_0x2e2594(0x2bc)]===this[_0x2e2594(0x2c7)]){const _0x5c7426=_0x176ad2['params'];this[_0x2e2594(0x337)](_0x5c7426[_0x2e2594(0x376)],_0x5c7426[_0x2e2594(0x391)][0x0]);}})));}[_0x581ecc(0x145)](_0xab04cc){const _0x12333e=_0x581ecc;var _0x1d6d01,_0x3e1109;const {memberID:_0x2f7ec4,selection:_0x8e6f00}=_0xab04cc[_0x12333e(0x17c)],{sheetName:_0x5e27fb,range:_0x5d53e4}=Ee['deserializeRangeWithSheet'](_0x8e6f00),_0x227f25={'name':(_0x3e1109=(_0x1d6d01=this[_0x12333e(0x19d)][_0x12333e(0x2e1)](this['unitID'],_0x2f7ec4))==null?void 0x0:_0x1d6d01[_0x12333e(0x1a4)])!=null?_0x3e1109:_0x12333e(0x2f3),'range':this[_0x12333e(0x2a9)](_0x5e27fb,_0x5d53e4),'sheetID':_0x5e27fb,'color':this['_colorAssignService'][_0x12333e(0x17e)](_0x2f7ec4),'selection':_0x8e6f00},_0x5ed271=this[_0x12333e(0x33e)];_0x5ed271[_0x12333e(0x2d0)](_0x2f7ec4,_0x227f25),this[_0x12333e(0x20e)][_0x12333e(0x33d)](_0x5ed271);}['_onCursorDelete'](_0x509fa2){const _0x161c26=_0x581ecc,{memberID:_0x110163}=_0x509fa2[_0x161c26(0x17c)],_0x3cf6d2=this[_0x161c26(0x33e)];_0x3cf6d2[_0x161c26(0x29e)](_0x110163),this[_0x161c26(0x20e)]['next'](_0x3cf6d2);}['_getMergeRange'](_0x9cce65,_0x257867){const _0x3aed38=_0x581ecc;var _0x3da228,_0x2fed6a;const _0x318b99=(_0x2fed6a=(_0x3da228=this['_univerInstanceService'][_0x3aed38(0x2b7)](this[_0x3aed38(0x2c7)]))==null?void 0x0:_0x3da228[_0x3aed38(0x21a)](_0x9cce65))==null?void 0x0:_0x2fed6a[_0x3aed38(0x1bb)]();return(_0x318b99==null?void 0x0:_0x318b99['find'](_0x206810=>a[_0x3aed38(0x20a)]['contains'](_0x206810,_0x257867)))||_0x257867;}[_0x581ecc(0x167)](){const _0x3363ee=_0x581ecc,_0xce5a4d=new a[(_0x3363ee(0x1ee))](),_0x5dc9b0=ot(),_0x420890=()=>{const _0x209d35=_0x3363ee;_0xce5a4d[_0x209d35(0x1b0)]();const _0x49a8ab=(_0x45af99,_0xe06d03,_0x427a90,_0x423e81)=>{const _0xb94441=_0x209d35;let _0x1817a0=[];switch(_0x45af99['id']){case g[_0xb94441(0x34d)][_0xb94441(0x1e6)]:{_0x1817a0=g[_0xb94441(0x36b)](_0x45af99,_0x423e81);break;}case g[_0xb94441(0x34d)][_0xb94441(0x1d3)]:{_0x1817a0=g[_0xb94441(0x1d1)](_0x45af99,_0x423e81);break;}case g[_0xb94441(0x34d)][_0xb94441(0x204)]:{_0x1817a0=g[_0xb94441(0x35a)](_0x45af99,_0x423e81);break;}case g[_0xb94441(0x34d)]['InsertRangeMoveDownCommandId']:{_0x1817a0=g[_0xb94441(0x236)](_0x45af99,_0x423e81);break;}case g[_0xb94441(0x34d)]['InsertRangeMoveRightCommandId']:{_0x1817a0=g[_0xb94441(0x1b5)](_0x45af99,_0x423e81);break;}case g['EffectRefRangId'][_0xb94441(0x2f4)]:{_0x1817a0=g[_0xb94441(0x2ad)](_0x45af99,_0x423e81);break;}case g[_0xb94441(0x34d)]['MoveRangeCommandId']:{_0x1817a0=g[_0xb94441(0x2c6)](_0x45af99,_0x423e81);break;}case g['EffectRefRangId'][_0xb94441(0x1ab)]:{_0x1817a0=g['handleIRemoveCol'](_0x45af99,_0x423e81);break;}case g[_0xb94441(0x34d)][_0xb94441(0x15f)]:{_0x1817a0=g['handleIRemoveRow'](_0x45af99,_0x423e81);break;}}const _0x47a754=g[_0xb94441(0x15c)](_0x1817a0,_0x423e81),_0x730454=this[_0xb94441(0x33e)][_0xb94441(0x2b8)](_0xe06d03);if(_0x730454&&_0x47a754){const _0x32595a={..._0x730454,'range':_0x47a754};this[_0xb94441(0x33e)]['set'](_0xe06d03,_0x32595a),_0x5dc9b0(()=>{const _0x4dda2b=_0xb94441,_0x3d5c86=this[_0x4dda2b(0x29f)][_0x4dda2b(0x277)](_0x47a754,_0x195d34=>(_0x3d5c86[_0x4dda2b(0x1b0)](),_0x49a8ab(_0x195d34,_0xe06d03,_0x427a90,_0x47a754)));_0xce5a4d[_0x4dda2b(0x1db)](_0x3d5c86);});}return{'redos':[],'undos':[]};};this[_0x209d35(0x33e)][_0x209d35(0x1dd)]((_0x52d21f,_0x392eec)=>{const _0xc0342d=_0x209d35,{range:_0x4a0284,sheetID:_0x2ddc79}=_0x52d21f,_0x27ee7d=this['_refRangeService'][_0xc0342d(0x277)](_0x4a0284,_0xf9c5f4=>(_0x27ee7d[_0xc0342d(0x1b0)](),_0x49a8ab(_0xf9c5f4,_0x392eec,_0x2ddc79,_0x4a0284)));_0xce5a4d['add'](_0x27ee7d);});};this[_0x3363ee(0x191)](a[_0x3363ee(0x354)](this[_0x3363ee(0x20e)][_0x3363ee(0x21f)](()=>{_0x420890();})));}[_0x581ecc(0x30e)](){const _0x15ec58=_0x581ecc;var _0x286cda,_0x2aeeb7;if(this[_0x15ec58(0x34a)]=!0x0,((_0x286cda=this[_0x15ec58(0x1a1)][_0x15ec58(0x254)]())==null?void 0x0:_0x286cda[_0x15ec58(0x274)]())!==this[_0x15ec58(0x2c7)])return;const _0x20b606=(_0x2aeeb7=this[_0x15ec58(0x27b)][_0x15ec58(0x2b8)](g[_0x15ec58(0x36f)])[_0x15ec58(0x1c5)]())==null?void 0x0:_0x2aeeb7[0x0],_0x38baae=this[_0x15ec58(0x1a1)][_0x15ec58(0x36a)](a[_0x15ec58(0x1e1)][_0x15ec58(0x373)])[_0x15ec58(0x2b9)]();_0x20b606&&_0x38baae&&this[_0x15ec58(0x337)](_0x38baae['getSheetId'](),_0x20b606);}[_0x581ecc(0x267)](){const _0x102faa=_0x581ecc;this[_0x102faa(0x34a)]=!0x1;}};Se=it([A(0x2,a['Inject'](a[_0x581ecc(0x255)])),A(0x3,a['Inject'](me)),A(0x4,a[_0x581ecc(0x210)](u[_0x581ecc(0x308)])),A(0x5,a[_0x581ecc(0x2f9)]),A(0x6,a[_0x581ecc(0x353)]),A(0x7,a[_0x581ecc(0x210)](g[_0x581ecc(0x1b6)]))],Se);var at=Object[_0x581ecc(0x182)],ct=(_0x28b2d6,_0x4dd595,_0x53290d,_0x24958c)=>{const _0xc84921=_0x581ecc;for(var _0x2f3dc4=_0x24958c>0x1?void 0x0:_0x24958c?at(_0x4dd595,_0x53290d):_0x4dd595,_0xfe00c2=_0x28b2d6[_0xc84921(0x2a0)]-0x1,_0x1e1537;_0xfe00c2>=0x0;_0xfe00c2--)(_0x1e1537=_0x28b2d6[_0xfe00c2])&&(_0x2f3dc4=_0x1e1537(_0x2f3dc4)||_0x2f3dc4);return _0x2f3dc4;},ie=(_0x3e7c4f,_0x400b8c)=>(_0x497cb2,_0x1d458b)=>_0x400b8c(_0x497cb2,_0x1d458b,_0x3e7c4f);let x=class extends a['RxDisposable']{constructor(_0x3a43dc,_0x1cad4b,_0x5c89b2){const _0x212fb6=_0x581ecc;super(),h(this,_0x212fb6(0x31c),new Map()),h(this,_0x212fb6(0x143),new d[(_0x212fb6(0x239))]()),(this[_0x212fb6(0x1a1)]=_0x3a43dc,this[_0x212fb6(0x27b)]=_0x1cad4b,this[_0x212fb6(0x37e)]=_0x5c89b2,this[_0x212fb6(0x1f1)]());}[_0x581ecc(0x1b0)](){const _0x44fb68=_0x581ecc;super['dispose'](),this[_0x44fb68(0x143)][_0x44fb68(0x21e)](),this['_entities']['forEach'](_0x38e4b9=>_0x38e4b9['dispose']());}['getCollabCursors$'](_0x4d0cc7){const _0x4e8d18=_0x581ecc;return this[_0x4e8d18(0x31c)]['has'](_0x4d0cc7)?this['_entities'][_0x4e8d18(0x2b8)](_0x4d0cc7)['cursorInfo$']:this['_entityInit$'][_0x4e8d18(0x37a)](d['filter'](_0x155332=>_0x155332[_0x4e8d18(0x2c7)]===_0x4d0cc7),d['switchMap'](_0x1319b6=>_0x1319b6[_0x4e8d18(0x22c)]));}[_0x581ecc(0x1f1)](){const _0x103754=_0x581ecc;this['_univerInstanceService'][_0x103754(0x345)](a[_0x103754(0x1e1)][_0x103754(0x373)])[_0x103754(0x37a)](d[_0x103754(0x18e)](this[_0x103754(0x194)]))['subscribe'](async _0x703ed1=>{const _0x58edae=_0x103754,_0xbc03d4=_0x703ed1[_0x58edae(0x274)](),_0x12c42b=await this['_startSheetCollabCursor'](_0xbc03d4);this[_0x58edae(0x143)][_0x58edae(0x33d)](_0x12c42b),this[_0x58edae(0x31c)][_0x58edae(0x2d0)](_0xbc03d4,_0x12c42b);}),this[_0x103754(0x1a1)][_0x103754(0x345)](a[_0x103754(0x1e1)]['UNIVER_DOC'])[_0x103754(0x37a)](d[_0x103754(0x18e)](this['dispose$']))[_0x103754(0x37a)](d[_0x103754(0x260)](_0x31e26f=>!_0x31e26f['getUnitId']()[_0x103754(0x187)]('__')))['subscribe'](async _0x5a436a=>{const _0x154108=_0x103754,_0x8a16a5=_0x5a436a['getUnitId'](),_0x3c7388=await this[_0x154108(0x29d)](_0x8a16a5);this[_0x154108(0x143)]['next'](_0x3c7388),this['_entities'][_0x154108(0x2d0)](_0x8a16a5,_0x3c7388);}),d[_0x103754(0x19c)](this[_0x103754(0x1a1)][_0x103754(0x361)](a[_0x103754(0x1e1)][_0x103754(0x2fa)]),this[_0x103754(0x1a1)][_0x103754(0x361)](a[_0x103754(0x1e1)][_0x103754(0x373)]))[_0x103754(0x37a)](d[_0x103754(0x18e)](this[_0x103754(0x194)]))[_0x103754(0x21f)](_0x21cb89=>{const _0x1c5352=_0x103754,_0x4746c8=_0x21cb89[_0x1c5352(0x274)](),_0x9dc597=this['_entities'][_0x1c5352(0x2b8)](_0x4746c8);_0x9dc597&&(_0x9dc597[_0x1c5352(0x1b0)](),this[_0x1c5352(0x31c)][_0x1c5352(0x29e)](_0x4746c8));});}async[_0x581ecc(0x17d)](_0x55f000){const _0x2cea66=_0x581ecc,_0x1511ba=await this[_0x2cea66(0x37e)][_0x2cea66(0x114)](_0x55f000),_0x230996=this[_0x2cea66(0x27b)][_0x2cea66(0x18d)](Se,_0x55f000,_0x1511ba);return _0x230996['init'](),_0x230996;}async[_0x581ecc(0x29d)](_0x54158e){const _0x1e8caf=_0x581ecc,_0x4cc648=await this[_0x1e8caf(0x37e)]['requireSession'](_0x54158e),_0x9974a4=this[_0x1e8caf(0x27b)][_0x1e8caf(0x18d)](fe,_0x54158e,_0x4cc648);return _0x9974a4['init'](),_0x9974a4;}};x=ct([ie(0x0,a[_0x581ecc(0x2f9)]),ie(0x1,a[_0x581ecc(0x210)](a[_0x581ecc(0x255)])),ie(0x2,a['Inject'](u[_0x581ecc(0x362)]))],x);const q=0x14,Re=0xc8,ne=0x4,lt=0x5;function _0x3fa8(){const _0x3b7f6e=['bold\x2013px\x20Source\x20Han\x20Sans\x20CN','useRef','ONLINE','_handleLeaveEvent','saveTaskMap','_removeCollabCursors','updateOfflineData','@univerjs/sheets-ui','_registerRenderDependencies','createIdentifier','_syncEditingCollabCursorService','none','onPointerLeave$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','RECT','_hovered','SYNCED','CollaborationController','_drawTextRange','endRow','_updateLocalCursor','Tooltip','send','function','react','stringify','next','cursorInfo','3422590cLMsTs','_status$','IImageIoService','replaceState','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','CollaborationEvent','getTypeOfUnitAdded$','/run/','getParam','split','Rect','_online','CONFLICT','_eventUnsubscribe','EffectRefRangId','IUIPartsService','ENSURE_SNAPSHOT_EXECUTION','ColorKit','getItem','setItem','ICommandService','toDisposable','urlChange$','@univerjs/docs-ui','INTERNAL_ERROR','AWAITING_WITH_PENDING','searchParams','handleInsertCol','getOffsetConfig','collabStatus.syncing','post','1em','_drawRectRange','getDocRanges','getTypeOfUnitDisposed$','CollaborationSessionService','getMemberID','icon','_instanceService','collaboration.closeRoom','_initStatusListener','getLocalCacheKey','_cursors','getCurrentUnitForType','handleDeleteRangeMoveLeft','_initStatusComponent','startColumn','SNAPSHOT_HAS_BEEN_REMOVED','SheetsSelectionsService','LOGIN_FAILED','NOT_COLLAB','NO_OTHER_CLIENTS_EDITING','UNIVER_SHEET','getSheetId','textRanges','subUnitId','UNAUTHENTICATED','hasOwnProperty','DocCollaborationEntity','pipe','storage','exhaustSavingTask','createSocket','_collabSessionService','isActive','_config','useObservable','_localCacheService','url(#on-line-single_clip0_910_349)','INVITE_CODE_ALREADY_BOUND','rxjs/operators','mutations','SNAPSHOT_INVALID_SNAPSHOT','currentColor','collabStatus.offline','INVITE_CODE_REQUIRED','useCallback','eventID','_session','SheetCollabCursorShape','DesktopCollaborationStatusDisplayController','result','selections','_heartbeatTimer','session.collaboration-timeout','combineLatest','ISocketService','setTimeout','univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','_range','PERMISSION_DENIED','DocSkeletonManagerService','_docTransformStateCacheService','requireSession','_selfUnitIDs','restore','FromArray','fillStyle','clearInterval','addObject','_saveCache','path','SUBMIT_CHANGESET_TIMEOUT','push','beginPath','YUUMI_ASYNCIO_CANCELLED','type','trim','IBeforeCloseService','transformByState','labelPosition','BrowserCollaborationSocketService','_localStorageService','_docSyncEditingCollabCursorService','4515975PiGBnd','activeSheet$','#fff','executeCommand','size','random','LICENSE_MAX_UNITS_EXCEEDED','href','OnLineSingle','_uiPartsService','url(#off-line-single_clip0_910_343)','_unitStatus','getSkeleton','collab-rect-range-','setActiveRange','replaceDocRanges','moveTo','Plugin','getActiveRange','univerjs-icon\x20univerjs-icon-','_render','engine','Shape','_roomMembers$','_scene','_themeService','_entityInit$','CollaborationUIEventId','_onCursorUpdate','UniverCollaborationClientUIPlugin','className','registerRenderModule','entries','drawWith','INVITE_CODE_HAS_BEEN_UES','sheetId','unshift','1719944hBesYB','IRemoteInstanceService','APPLY_REVISION_CONFILICT','tag','DocIMEInputManagerService','_getScale','onTransformChange$','collabStatus.notCollab','resize','color','getRenderById','INVALID_INVITE_CODE','subunit','status$','runRefRangeMutations','lineTo','column','RemoveRowCommandId','roomMembers$','LICENSE_IMPORT_SIZE_EXCEEDED','APPLY_NON_SEQUENTIAL_REVISION','[RemoteUniscriptService]:\x20no\x20focused\x20unit','addEventListener','_cursor','attrs','_onRefRangeChange','getViewport','MUTATION','jsxs','text','_collabCursorController','params','toString','debug','clipPath','_anchorDot','Module','6ZhCmdG','onMouseMove','jiqing500','forwardRef','getUnitStatus$','black','show','assign','LICENSE_EXPORT_SIZE_EXCEEDED','data','_startSheetCollabCursor','assignAColorForMemberID','m1Prime','popstate','_scheduleClearOtherTimer','getOwnPropertyDescriptor','APPLY_PERMISSION_DENIED','Tools','registerComponent','ILogService','startsWith','_onCursorDelete','location','currentSkeleton$','HEADER_MENU','_id','createInstance','takeUntil','_colorIndex','onStarting','disposeWithMe','CollaborationStatus','children','dispose$','hide','url(#$1','colorChannel1','YUUMI_RATE_OVER_LIMIT','reconnect','sessionTicket','saveOfflineData','merge','_memberService','_docStateChangeManagerService','collabCursorState$','application/json','_univerInstanceService','SOCKET_FAILED','values','name','round','isArray','_updateSubUnitFromURLParams','SHEET_VIEWPORT_KEY','addObjects','990336MhKrmI','RemoveColCommandId','_cachedData','defs','unload','has','dispose','_backgroundColor','extend','_colorAssignService','ticket','handleInsertRangeMoveRight','RefRangeService','verdancy600','with','prototype','DependentOn','getMergeData','_unitOnClients','bottom','addClipboardHook','backgroundColor','_docSkeletonManagerService','univer-flex\x20univer-mr-2\x20univer-text-[20px]','DOC_RANGE_TYPE','idSuffix','xlink:href','getCurrentSelections','disableLocalCache','5608145WxyeHC','_anchor','onRendered','save','code','_transformUndoRedoStack','_drawAnchor','isEditing','clsx','_hideTimer','handleDeleteRangeMoveUp','CollaborationDataLoaderController','DeleteRangeMoveUpCommandId','_removeClearOtherTimer','@univerjs/engine-formula','@univerjs/engine-render','transformRemoteChangeset','transformSelections','transformIMECache','CollaborationUIEventService','add','@univerjs/sheets','forEach','YUUMI_NO_CUBOID_FOR_QUESTION','0\x200\x2016\x2016','4yRbPpD','UniverInstanceType','blue400','collaboration-client.offline-data-not-saved','_handleEvent','HTTPService','DeleteRangeMoveLeftCommandId','LOCAL_CACHE_INTERVAL','height','_updateCollabCursors','map','_initEvent','setConfig','WebURLService','DisposableCollection','getColor','_httpService','_init','getCellPositionByOffset','entityInit$','_saveTaskMap','#FFF','COLORS','generateRandomId','selection','SetSelectionsOperation','executionId','getConfig','Disposable','serializeRangeWithSheet','YUUMI_UNABLE_LOAD_URL','top','max','_disabled','redoState','_configService','InsertColCommandId','BehaviorSubject','body','_transformHistoryAndStateStack','_shapes','actions','Rectangle','connectInjector','_lastPointer','_scheduleSaving','_cursorInfo$','_getSaveTimeout','Inject','runId','useDependency','_initResize','0\x200\x2017\x2016','_handleHeartbeatEvent','range','TEXT','memberID','displayName','getSheetBySheetId','@univerjs/drawing','init','subscribeEvent','complete','subscribe','focused$','univer-flex\x20univer-items-center','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','width','isTransformMutationsWithChangesetSuccess','_collaborationUIEventService','search','_transformPreviousActiveRange','ILocalStorageService','_updateURLWithCurrentState','_initEntityListener','WebSocketService','cursorInfo$','uni.network.url-service','UPDATE_CURSOR','measureText','use','_imageIoService','jsx','hovered','ILocalCacheService','onPointerEnter$','handleInsertRangeMoveDown','registerDependencies','RemoteUniscriptService','Subject','_refreshCollabCursors','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','row','UNRECOGNIZED','deepClone','BuiltInUIPart','_collabCursorState$','mask','getValue','getCoordByCell','_labelPosition','_docSkeleton','unsubscribe','univer-text-red-500','defIds','ranges','fill','div','on-line-single','collabStatus.fetchMiss','NodePositionConvertToCursor','_docTransformSelectionsService','removeParam','_createSocketURL','_getSheetObject','CONNECTOR_DATA_TOO_LARGE','getFocusedUnit','Injector','getRangePointData','PY_RUNTIME_SCRIPT_ERROR','IConfigService','translate(.97)','createElement','...','session.connection-failed','invokeId','_registerDependencies','skeleton','filter','_urlService','fromEvent','indexOf','pluginName','WECHAT_HAS_BEEN_BOUND','_assignedColors','_toggleOffline','CHANGESET_REVISION_CONFILICT','editingUnit','svg','_getAnchorBounding','YUUMI_SUBSCRIPTION_NOT_FOUND','ThemeService','permission.content','DocSelectionManagerService','concat','getCurrentRevOfUnit','m2Prime','JOIN_ROOM_FAILED','getUnitId','LICENSE_DISTRO_REJECTED','currentTheme$','registerRefRange','_setupSubUnitSync','_ensureSubject','collaboration.single-unit.warning','_injector','UniverIcon','addHandlerCallback','substring','_logService','NOT_FOUND','SOCKET_FAILED_RETRY','session.will-retry','Error','_renderManagerService','roomMembers','MOBILE_HAS_BEEN_BOUND','NodePositionConvertToRectRange','OFFLINE','_cursorShapes','rxjs','ITransformService','COMPLETION_FINISHED','syncEditingCollabCursor','off-line-single_clip0_910_343','isTransformMutationFailure','_commandService','univer-text-green-500','onLocalMutation','_sheetSkeletonManagerService','transform','getAncestorScale','_initDependencies','Warning','setShapeProps','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','DataLoaderService','ISnapshotServerService','call','_startDocCollabCursor','delete','_refRangeService','length','mergeOverrideWithDependencies','_textBubble','@univerjs/ui','getStateCache','getSheetObject','UnitStatus','USER_NOT_INVITED_CODE','string','_getMergeRange','_initCommandExecutedListener','@univerjs-pro/collaboration-client','history','handleInsertRow','_transformService','_notificationService','arc','LocaleService','OffLineSingle','IDocClipboardService','RichTextEditingMutation','parse','on-line-single_clip0_910_349','getUniverSheetInstance','get','getActiveSheet','UNDEFINED','INVALID_ARGUMENT','unitId','IMessageService','onCommandExecuted','defineProperty','sessionStatus$','fillText','getCurrent','transformStateCache','_messageService','debounce','handleMoveRange','unitID','TEXT_RANGE_LAYER_INDEX','sheetID','rgba(255,\x20255,\x20255,\x200.01)','transformMutation','LOCAL_CACHE_INTERVAL_KEY','RevisionService','TOO_MANY_REQUESTS','collab-client.tooltip.reconnect','set','MessageType','then','_name','from','_scheduleHeartbeat','IURLService','USERS_LEAVE','replace','apply','DocStateChangeManagerService','setParam','event$','getVpScrollXYInfoByPosToVp','_send','_collaborationController','_dataLoaderService','getMember','pushState','transformMutationsWithChangeset','imageSourceType','gold400','@univerjs/core','APPLY_REJECT','RxDisposable','_setupBeforeClosingHandler','asObservable','switchMap','PENDING','min','toRgbString','ALREADY_EXISTS','IRenderManagerService','28fDjqkL','12894867NzqFKl','Unknown\x20user','InsertRowCommandId','_clearOtherTimers','docStateChange$','saveImage','_localeService','IUniverInstanceService','UNIVER_DOC','getUndoRedoMutationParamsCache','error','symbol','newValue','undoState','M0\x200H16V16H0z','_color','YUUMI_URL_COL_OUT_OF_RANGE','clearTimeout','all','_hover','doc.mutation.rich-text-editing','_beforeCloseService','MemberService','disposeUnit','777492QMvlCc','APPLY_DUPLICATED','makeDirty','ACTIVE_UNIT_EVENT_CHANNEL','_toggleOnline','throttleTime','WebBrowserSingleActiveUnitService','_context','unit','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','off-line-single','_getSessionTicket','_handleJoinEvent','findNodePositionByCharIndex','endColumn','getCollabCursors$','evenodd','includes','_entities','getRelativeToViewportCoord','_docTransformIMECacheService','SetWorksheetActivateCommand','_handleHover','[CollaborationDataLoaderController]','collab-text-anchor-'];_0x3fa8=function(){return _0x3b7f6e;};return _0x3fa8();}function _t(_0xca858a,_0x5017d9){const _0x38287c=_0x581ecc;let {radius:_0x1ccc73,width:_0x3d8526,height:_0x26ee76}=_0x5017d9;_0x1ccc73=_0x1ccc73!=null?_0x1ccc73:0x0,_0x3d8526=_0x3d8526!=null?_0x3d8526:0x1e,_0x26ee76=_0x26ee76!=null?_0x26ee76:0x1e;let _0x34b096=0x0,_0x495560=0x0,_0x53064c=0x0;_0x34b096=_0x495560=_0x53064c=Math['min'](_0x1ccc73,_0x3d8526/0x2,_0x26ee76/0x2),_0xca858a[_0x38287c(0x11f)](),_0xca858a[_0x38287c(0x139)](_0x34b096,0x0),_0xca858a[_0x38287c(0x15d)](_0x3d8526-_0x495560,0x0),_0xca858a[_0x38287c(0x2b0)](_0x3d8526-_0x495560,_0x495560,_0x495560,Math['PI']*0x3/0x2,0x0,!0x1),_0xca858a[_0x38287c(0x15d)](_0x3d8526,_0x26ee76-_0x53064c),_0xca858a[_0x38287c(0x2b0)](_0x3d8526-_0x53064c,_0x26ee76-_0x53064c,_0x53064c,0x0,Math['PI']/0x2,!0x1),_0xca858a[_0x38287c(0x15d)](0x0,_0x26ee76),_0xca858a[_0x38287c(0x15d)](0x0,_0x34b096),_0xca858a[_0x38287c(0x2b0)](_0x34b096,_0x34b096,_0x34b096,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xca858a['closePath'](),_0x5017d9[_0x38287c(0x24a)]&&(_0xca858a[_0x38287c(0x1ca)](),_0xca858a[_0x38287c(0x118)]=_0x5017d9['fill'],_0x5017d9['fillRule']===_0x38287c(0x31a)?_0xca858a[_0x38287c(0x24a)](_0x38287c(0x31a)):_0xca858a[_0x38287c(0x24a)](),_0xca858a[_0x38287c(0x116)]());}class ee extends p[_0x581ecc(0x13f)]{constructor(_0xf19a36,_0x9ffd8d){const _0x1bb7d6=_0x581ecc;super(_0xf19a36,_0x9ffd8d),h(this,_0x1bb7d6(0x157)),h(this,_0x1bb7d6(0x16b)),(this[_0x1bb7d6(0x157)]=_0x9ffd8d==null?void 0x0:_0x9ffd8d[_0x1bb7d6(0x157)],this[_0x1bb7d6(0x16b)]=_0x9ffd8d==null?void 0x0:_0x9ffd8d[_0x1bb7d6(0x16b)]);}static['drawWith'](_0x552092,_0x558d64){const _0x313a86=_0x581ecc,{text:_0xa0f9a5,color:_0x21b942}=_0x558d64;_0x552092[_0x313a86(0x1ca)](),_0x552092['font']=_0x313a86(0x323);const _0x4e9e57=_0x552092[_0x313a86(0x22f)](_0xa0f9a5)[_0x313a86(0x223)],_0x4bad66=Math[_0x313a86(0x2ed)](_0x4e9e57+0x2*ne,Re);_t(_0x552092,{'height':q,'radius':0x4,'width':_0x4bad66,'fill':_0x21b942}),_0x552092[_0x313a86(0x118)]=_0x313a86(0x1f5);const _0x152042=ne,_0x2ba989=q-lt,_0x3aa4a5=Re-0x2*ne;if(_0x4e9e57>_0x3aa4a5){let _0x49238a='',_0x5713e8=0x0;for(const _0x2b27f2 of _0xa0f9a5){const _0x3f3c61=_0x552092[_0x313a86(0x22f)](_0x2b27f2)[_0x313a86(0x223)];if(_0x5713e8+_0x3f3c61<=_0x3aa4a5-_0x552092[_0x313a86(0x22f)](_0x313a86(0x25b))[_0x313a86(0x223)])_0x49238a+=_0x2b27f2,_0x5713e8+=_0x3f3c61;else{_0x49238a+=_0x313a86(0x25b);break;}}_0x552092[_0x313a86(0x2c1)](_0x49238a,_0x152042,_0x2ba989);}else _0x552092[_0x313a86(0x2c1)](_0xa0f9a5,_0x152042,_0x2ba989);_0x552092[_0x313a86(0x116)]();}['_draw'](_0xfe6d3f){const _0x265963=_0x581ecc;ee[_0x265963(0x14a)](_0xfe6d3f,this);}}const re=_0x581ecc(0x322),ht='collab-text-range-',ut=_0x581ecc(0x136),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x581ecc(0x2ca);class De{constructor(_0x597cf7,_0x579e0b,_0x16747a,_0x128e18){const _0x556e92=_0x581ecc;h(this,_0x556e92(0x208),[]),h(this,_0x556e92(0x1c8),null),h(this,_0x556e92(0x2a2),null),h(this,_0x556e92(0x171),null),h(this,'_hideTimer',null),h(this,_0x556e92(0x34c),null),(this['_cursor']=_0x597cf7,this[_0x556e92(0x141)]=_0x579e0b,this[_0x556e92(0x245)]=_0x16747a,this['_document']=_0x128e18,this[_0x556e92(0x13d)]());}set['_hover'](_0x173f1b){const _0xd5a601=_0x581ecc;_0x173f1b?(this[_0xd5a601(0x171)]&&this[_0xd5a601(0x171)][_0xd5a601(0x195)](),this[_0xd5a601(0x2a2)]&&this[_0xd5a601(0x2a2)][_0xd5a601(0x179)]()):(this[_0xd5a601(0x171)]&&this['_anchorDot']['show'](),this[_0xd5a601(0x2a2)]&&this['_textBubble']['hide']());}[_0x581ecc(0x1b0)](){const _0x54fd01=_0x581ecc;for(const _0x38d1e9 of this[_0x54fd01(0x208)])_0x38d1e9[_0x54fd01(0x1b0)]();this['_textBubble']&&this['_textBubble'][_0x54fd01(0x1b0)](),this['_anchorDot']&&this[_0x54fd01(0x171)][_0x54fd01(0x1b0)](),this[_0x54fd01(0x1c8)]&&this['_anchor'][_0x54fd01(0x1b0)](),this[_0x54fd01(0x34c)]&&this['_eventUnsubscribe']();}['_render'](){const _0x3ac283=_0x581ecc;var _0x3defb6;const {_docSkeleton:_0xb5da2b,_document:_0x3519fd}=this,{color:_0x293c53,name:_0x2b2cc8,ranges:_0x383244}=this[_0x3ac283(0x165)],_0xd6d1fc=_0x3519fd[_0x3ac283(0x35b)](),{docsLeft:_0x434494,docsTop:_0x256200}=_0xd6d1fc,_0x35b77a=new b[(_0x3ac283(0x24e))](_0xd6d1fc,_0xb5da2b);for(const {startOffset:_0x8e1527,endOffset:_0xf85104,rangeType:_0x4bec33,segmentId:_0x2d8a51,segmentPage:_0x571756,collapsed:_0x28d022,isActive:_0x434ced}of _0x383244){const _0x74d5d8=_0xb5da2b[_0x3ac283(0x317)](_0x8e1527,!0x0,_0x2d8a51,_0x571756);let _0x574672=_0xb5da2b[_0x3ac283(0x317)](_0xf85104,!0x0,_0x2d8a51,_0x571756);if(_0x574672==null&&(_0x574672=_0xb5da2b[_0x3ac283(0x317)](_0xf85104-0x1,!0x1,_0x2d8a51,_0x571756)),_0x434ced){const {contentBoxPointGroup:_0x306edf}=_0x35b77a[_0x3ac283(0x256)](_0x574672,_0x574672);if(_0x306edf['length']===0x0)continue;this[_0x3ac283(0x1cd)](_0x293c53,_0x306edf,_0x434494,_0x256200,_0x2b2cc8),this[_0x3ac283(0x34c)]=this[_0x3ac283(0x320)]();}if(_0x74d5d8&&_0x574672){if(_0x4bec33===a[_0x3ac283(0x1c2)][_0x3ac283(0x331)]){const _0x572a7d=new b[(_0x3ac283(0x287))](_0xd6d1fc,_0xb5da2b),{pointGroup:_0x3f71ec}=(_0x3defb6=_0x572a7d[_0x3ac283(0x256)](_0x74d5d8,_0x574672))!=null?_0x3defb6:{};if(_0x3f71ec==null||_0x3f71ec[_0x3ac283(0x2a0)]===0x0)continue;this[_0x3ac283(0x35f)](_0x293c53,_0x3f71ec,_0x434494,_0x256200);}else{if(!_0x28d022){const {borderBoxPointGroup:_0x501465}=_0x35b77a[_0x3ac283(0x256)](_0x74d5d8,_0x574672);if(_0x501465[_0x3ac283(0x2a0)]===0x0)continue;this[_0x3ac283(0x335)](_0x293c53,_0x501465,_0x434494,_0x256200);}}}}}[_0x581ecc(0x1cd)](_0x48239d,_0x28d629,_0x32ead2,_0x2feefa,_0x515836){const _0x3b4fb7=_0x581ecc,_0xf7073f=this[_0x3b4fb7(0x26b)](_0x28d629),{left:_0x481cf3,top:_0x1f8231,height:_0x52ad63}=_0xf7073f,_0x1be168=this['_getScale'](),_0x15f5f8=ft/_0x1be168,_0x43800c=new p[(_0x3b4fb7(0x349))](re+a[_0x3b4fb7(0x184)][_0x3b4fb7(0x1f7)](k),{'left':_0x481cf3+_0x32ead2-_0x15f5f8,'top':_0x1f8231+_0x2feefa,'height':_0x52ad63,'width':dt,'fill':_0x48239d||p['getColor'](a[_0x3b4fb7(0x1f6)]['black'],0x0),'strokeWidth':_0x15f5f8,'stroke':St,'evented':!0x0});this[_0x3b4fb7(0x1c8)]=_0x43800c,this[_0x3b4fb7(0x141)][_0x3b4fb7(0x11a)](_0x43800c,b[_0x3b4fb7(0x2c8)]);const _0x1c400a=new p[(_0x3b4fb7(0x349))](re+a['Tools'][_0x3b4fb7(0x1f7)](k),{'left':_0x481cf3+_0x32ead2-_0x15f5f8,'top':_0x1f8231+_0x2feefa-oe/0x2,'height':oe,'width':oe,'fill':_0x48239d||p[_0x3b4fb7(0x1ef)](a[_0x3b4fb7(0x1f6)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x48239d||p[_0x3b4fb7(0x1ef)](a[_0x3b4fb7(0x1f6)][_0x3b4fb7(0x178)],0x0),'evented':!0x1});this[_0x3b4fb7(0x171)]=_0x1c400a,this[_0x3b4fb7(0x141)]['addObject'](_0x1c400a,b[_0x3b4fb7(0x2c8)]);const _0x3fea0d=new ee(re+a[_0x3b4fb7(0x184)][_0x3b4fb7(0x1f7)](k),{'left':_0x481cf3+_0x32ead2-_0x15f5f8,'top':_0x1f8231+_0x2feefa-q,'text':_0x515836,'color':_0x48239d});this['_textBubble']=_0x3fea0d,this[_0x3b4fb7(0x141)][_0x3b4fb7(0x11a)](_0x3fea0d,b[_0x3b4fb7(0x2c8)]),this['_hover']=!0x1;}[_0x581ecc(0x320)](){const _0x247d94=_0x581ecc,_0x12a95b=this[_0x247d94(0x1c8)][_0x247d94(0x235)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0xf84e6f=this['_anchor'][_0x247d94(0x32f)][_0x247d94(0x21d)](()=>{const _0x19eacc=_0x247d94;this[_0x19eacc(0x1d0)]&&clearTimeout(this[_0x19eacc(0x1d0)]),this['_hideTimer']=setTimeout(()=>{const _0x141af3=_0x19eacc;this[_0x141af3(0x305)]=!0x1;},0x7d0);});return()=>{const _0xc951df=_0x247d94;_0x12a95b['unsubscribe'](),_0xf84e6f[_0xc951df(0x246)]();};}[_0x581ecc(0x335)](_0x3e180e,_0x1c768d,_0x373932,_0x149b12){const _0x560af0=_0x581ecc,_0x2ee7f6=new a[(_0x560af0(0x350))](_0x3e180e)['setAlpha'](0.2)[_0x560af0(0x2ee)](),_0x26b633=new p['RegularPolygon'](ht+a['Tools'][_0x560af0(0x1f7)](k),{'pointsGroup':_0x1c768d,'fill':_0x2ee7f6||p['getColor'](a['COLORS'][_0x560af0(0x178)],0.2),'left':_0x373932,'top':_0x149b12,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x560af0(0x11e)](_0x26b633),this[_0x560af0(0x141)][_0x560af0(0x11a)](_0x26b633,b[_0x560af0(0x2c8)]);}[_0x581ecc(0x35f)](_0x4195f1,_0x336c57,_0x5a422b,_0x52ccc0){const _0x4075a2=_0x581ecc,_0x597cfb=new a[(_0x4075a2(0x350))](_0x4195f1)['setAlpha'](0.2)[_0x4075a2(0x2ee)](),_0x1778b7=new p['RegularPolygon'](ut+a[_0x4075a2(0x184)]['generateRandomId'](k),{'pointsGroup':_0x336c57,'fill':_0x597cfb||p[_0x4075a2(0x1ef)](a[_0x4075a2(0x1f6)][_0x4075a2(0x178)],0.2),'left':_0x5a422b,'top':_0x52ccc0,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4075a2(0x11e)](_0x1778b7),this[_0x4075a2(0x141)][_0x4075a2(0x11a)](_0x1778b7,b[_0x4075a2(0x2c8)]);}['_getAnchorBounding'](_0x56da81){const _0x1838e6=_0x56da81[0x0],_0x2ce2d7=_0x1838e6[0x0],_0x3de174=_0x1838e6[0x2],{x:_0xbe6fc2,y:_0x34a76a}=_0x2ce2d7,{x:_0x1f2f20,y:_0x1d95c9}=_0x3de174;return{'left':_0xbe6fc2,'top':_0x34a76a,'width':_0x1f2f20-_0xbe6fc2,'height':_0x1d95c9-_0x34a76a};}[_0x581ecc(0x153)](){const _0x3f1664=_0x581ecc,{scaleX:_0x5ac6d5,scaleY:_0x581b59}=this[_0x3f1664(0x141)][_0x3f1664(0x295)]();return Math[_0x3f1664(0x200)](_0x5ac6d5,_0x581b59);}}var It=Object[_0x581ecc(0x182)],vt=(_0x29242a,_0x546695,_0x2edea4,_0x582b69)=>{const _0x294959=_0x581ecc;for(var _0x1e05c2=_0x582b69>0x1?void 0x0:_0x582b69?It(_0x546695,_0x2edea4):_0x546695,_0x4a3b84=_0x29242a[_0x294959(0x2a0)]-0x1,_0x2db6c3;_0x4a3b84>=0x0;_0x4a3b84--)(_0x2db6c3=_0x29242a[_0x4a3b84])&&(_0x1e05c2=_0x2db6c3(_0x1e05c2)||_0x1e05c2);return _0x1e05c2;},Y=(_0x50a69b,_0x3a2b9b)=>(_0x24a194,_0x326019)=>_0x3a2b9b(_0x24a194,_0x326019,_0x50a69b);let Ie=class extends a['RxDisposable']{constructor(_0x309662,_0xfeaca3,_0x344ca4,_0xf0bbc1,_0x5e1ae4){const _0x570566=_0x581ecc;super(),h(this,_0x570566(0x289),[]),h(this,_0x570566(0x369),[]),(this[_0x570566(0x311)]=_0x309662,this[_0x570566(0x1c0)]=_0xfeaca3,this[_0x570566(0x16c)]=_0x344ca4,this['_commandService']=_0xf0bbc1,this[_0x570566(0x142)]=_0x5e1ae4,this['_init']());}['_init'](){const _0x447372=_0x581ecc,_0x24235e=this[_0x447372(0x311)]['unitId'],_0x32fc5c=this[_0x447372(0x1c0)];this[_0x447372(0x191)](d[_0x447372(0x394)]([this[_0x447372(0x16c)][_0x447372(0x319)](_0x24235e),this[_0x447372(0x142)][_0x447372(0x276)]])['pipe']($[_0x447372(0x1ea)](([_0x11bd57,_0x4cee56])=>({'skeleton':_0x32fc5c[_0x447372(0x135)](),'cursors':[..._0x11bd57[_0x447372(0x1a3)]()]['flatMap'](_0x444e23=>({..._0x444e23,'color':_0x4cee56[_0x444e23[_0x447372(0x157)]]}))})))[_0x447372(0x21f)](_0xc030cd=>{const _0x221d2f=_0x447372;if(this[_0x221d2f(0x328)](),_0xc030cd){const {skeleton:_0x5eade0,cursors:_0x553c5b}=_0xc030cd;this[_0x221d2f(0x1e9)](_0x5eade0,_0x553c5b);}})),this[_0x447372(0x213)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x3b9fcf,_0x26c418){const _0x5d6812=_0x581ecc,{scene:_0x3e6f44,mainComponent:_0xebf82e}=this['_context'],_0x1194d9=_0x26c418['map'](_0x3e8893=>new De(_0x3e8893,_0x3e6f44,_0x3b9fcf,_0xebf82e));this[_0x5d6812(0x289)]=_0x1194d9,this[_0x5d6812(0x369)]=_0x26c418;}[_0x581ecc(0x23a)](){const _0x34a5b4=_0x581ecc;this[_0x34a5b4(0x328)]();const {scene:_0x23e232,mainComponent:_0x2a3679}=this[_0x34a5b4(0x311)],_0x231c2d=this[_0x34a5b4(0x1c0)]['getSkeleton'](),_0x8949fa=this[_0x34a5b4(0x369)][_0x34a5b4(0x1ea)](_0x122a81=>new De(_0x122a81,_0x23e232,_0x231c2d,_0x2a3679));this[_0x34a5b4(0x289)]=_0x8949fa;}['_removeCollabCursors'](){const _0x16dd4c=_0x581ecc;this[_0x16dd4c(0x289)][_0x16dd4c(0x1dd)](_0x4e051f=>_0x4e051f[_0x16dd4c(0x1b0)]()),this['_cursorShapes']=[];}[_0x581ecc(0x2aa)](){const _0xa7da9=_0x581ecc,_0xa71f7e=[b['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0xa7da9(0x290)][_0xa7da9(0x2be)](_0x38575c=>{const _0x263998=_0xa7da9;_0xa71f7e[_0x263998(0x31b)](_0x38575c['id'])&&_0x38575c[_0x263998(0x16d)][_0x263998(0x2bc)]===this[_0x263998(0x311)][_0x263998(0x2bc)]&&this[_0x263998(0x23a)]();}));}[_0x581ecc(0x213)](){const _0x4354f6=_0x581ecc;this[_0x4354f6(0x191)](a['fromEventSubject'](this['_context'][_0x4354f6(0x13e)][_0x4354f6(0x154)])[_0x4354f6(0x37a)]($[_0x4354f6(0x260)](_0x1a311d=>_0x1a311d['type']===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x4354f6(0x156)]),$[_0x4354f6(0x30f)](0x10))[_0x4354f6(0x21f)](()=>{const _0x2654d5=_0x4354f6;this[_0x2654d5(0x23a)]();}));}};Ie=vt([Y(0x1,a[_0x581ecc(0x210)](W[_0x581ecc(0x112)])),Y(0x2,a['Inject'](x)),Y(0x3,a[_0x581ecc(0x353)]),Y(0x4,a[_0x581ecc(0x210)](a[_0x581ecc(0x26d)]))],Ie);const gt=0x1,mt=1.5;class we extends p['Shape']{constructor(_0x462134,_0x2de7a4){const _0x4a66a4=_0x581ecc;super(_0x462134,_0x2de7a4),h(this,'_color'),h(this,'_hovered',!0x1),h(this,_0x4a66a4(0x110)),h(this,_0x4a66a4(0x2d3),''),h(this,_0x4a66a4(0x244),_0x4a66a4(0x1ff)),h(this,_0x4a66a4(0x1b1)),(_0x2de7a4&&this[_0x4a66a4(0x298)](_0x2de7a4),this[_0x4a66a4(0x235)][_0x4a66a4(0x21d)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x4a66a4(0x32f)][_0x4a66a4(0x21d)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x423780){const _0x52c703=_0x581ecc;var _0x1030b2,_0x26b98c,_0xe837fc,_0x3183cf,_0x108014,_0x1567c6;this[_0x52c703(0x301)]=(_0x1030b2=_0x423780[_0x52c703(0x157)])!=null?_0x1030b2:this[_0x52c703(0x301)],this[_0x52c703(0x332)]=(_0x26b98c=_0x423780[_0x52c703(0x233)])!=null?_0x26b98c:this[_0x52c703(0x332)],this[_0x52c703(0x110)]=(_0xe837fc=_0x423780[_0x52c703(0x216)])!=null?_0xe837fc:this[_0x52c703(0x110)],this[_0x52c703(0x2d3)]=(_0x3183cf=_0x423780['name'])!=null?_0x3183cf:this[_0x52c703(0x2d3)],this[_0x52c703(0x244)]=(_0x108014=_0x423780[_0x52c703(0x125)])!=null?_0x108014:this['_labelPosition'],this['_backgroundColor']=(_0x1567c6=_0x423780[_0x52c703(0x1bf)])!=null?_0x1567c6:this['_backgroundColor'],this[_0x52c703(0x124)]({'width':_0x423780['width'],'height':_0x423780[_0x52c703(0x1e8)]});}[_0x581ecc(0x174)](_0x43b16b){const _0xa9e6fa=_0x581ecc,{row:_0x7e25f9,column:_0x1d20a8}=_0x43b16b;if(_0x7e25f9>=this[_0xa9e6fa(0x110)]['startRow']&&_0x7e25f9<=this[_0xa9e6fa(0x110)][_0xa9e6fa(0x336)]&&_0x1d20a8>=this[_0xa9e6fa(0x110)][_0xa9e6fa(0x36d)]&&_0x1d20a8<=this[_0xa9e6fa(0x110)][_0xa9e6fa(0x318)]){this[_0xa9e6fa(0x298)]({'hovered':!0x0});return;}this[_0xa9e6fa(0x298)]({'hovered':!0x1});}['triggerDblclick'](_0x2a6c02){return!0x1;}['_draw'](_0x374edd){const _0x4519f4=_0x581ecc;p['Rect'][_0x4519f4(0x14a)](_0x374edd,{'width':this[_0x4519f4(0x223)],'height':this['height'],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x4519f4(0x1b1)]}),this[_0x4519f4(0x332)]&&(_0x374edd['save'](),_0x374edd[_0x4519f4(0x294)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x4519f4(0x1bd)?0x0:-0x14),ee['drawWith'](_0x374edd,{'text':this[_0x4519f4(0x2d3)],'color':this['_color']}),_0x374edd['restore']());}}var Ct=Object[_0x581ecc(0x182)],pt=(_0x4d149b,_0x141c88,_0x260131,_0x4ed5c0)=>{const _0xeb4751=_0x581ecc;for(var _0x2dd019=_0x4ed5c0>0x1?void 0x0:_0x4ed5c0?Ct(_0x141c88,_0x260131):_0x141c88,_0xa52cf=_0x4d149b[_0xeb4751(0x2a0)]-0x1,_0x4bc882;_0xa52cf>=0x0;_0xa52cf--)(_0x4bc882=_0x4d149b[_0xa52cf])&&(_0x2dd019=_0x4bc882(_0x2dd019)||_0x2dd019);return _0x2dd019;},ae=(_0x586cde,_0x3d5b4e)=>(_0x10e309,_0x508a91)=>_0x3d5b4e(_0x10e309,_0x508a91,_0x586cde);const bt=0x1389;let ve=class extends a[_0x581ecc(0x2e8)]{constructor(_0x21e10b,_0x42a9e8,_0x307f04,_0x43fa6b){const _0x4786e0=_0x581ecc;super(),h(this,'_cursors',new Set()),h(this,'_lastPointer',null),(this[_0x4786e0(0x311)]=_0x21e10b,this[_0x4786e0(0x293)]=_0x42a9e8,this[_0x4786e0(0x16c)]=_0x307f04,this[_0x4786e0(0x142)]=_0x43fa6b,this[_0x4786e0(0x1f1)]());}[_0x581ecc(0x1f1)](){const _0x117fbe=_0x581ecc;this[_0x117fbe(0x293)][_0x117fbe(0x18a)]['pipe']($[_0x117fbe(0x18e)](this['dispose$']),$[_0x117fbe(0x2eb)](_0x3985b3=>{const _0x2d23ea=_0x117fbe;if(_0x3985b3){const _0x5031dd=_0x3985b3[_0x2d23ea(0x14c)];return d[_0x2d23ea(0x394)](this[_0x2d23ea(0x16c)]['getCollabCursors$'](this[_0x2d23ea(0x311)][_0x2d23ea(0x2bc)]),this[_0x2d23ea(0x142)][_0x2d23ea(0x276)])[_0x2d23ea(0x37a)]($['map'](([_0x3bb3a5,_0x4d40e6])=>{const _0x2b4630=_0x2d23ea,_0x41c878=new Map();return _0x3bb3a5[_0x2b4630(0x1dd)]((_0x80a6b3,_0x5b269f)=>{const _0x297e96=_0x2b4630;if(_0x80a6b3[_0x297e96(0x2c9)]===_0x5031dd){const _0x119d54={..._0x80a6b3};_0x119d54[_0x297e96(0x157)]=_0x4d40e6[_0x80a6b3[_0x297e96(0x157)]],_0x41c878[_0x297e96(0x2d0)](_0x5b269f,_0x119d54);}}),{'skeleton':_0x3985b3,'cursors':_0x41c878};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x117fbe(0x21f)](({skeleton:_0x5b00f7,cursors:_0x4011e3})=>{const _0x4360a6=_0x117fbe;this[_0x4360a6(0x328)](),_0x5b00f7&&this[_0x4360a6(0x1e9)](_0x5b00f7,_0x4011e3);}),this['_sheetSkeletonManagerService'][_0x117fbe(0x18a)][_0x117fbe(0x21f)](_0x3a0c5b=>{const _0x5ceee8=_0x117fbe;if(_0x3a0c5b==null)return;const {skeleton:_0x4b99b4}=_0x3a0c5b,{scene:_0x13eaa2}=this[_0x5ceee8(0x311)];_0x13eaa2['onPointerMove$'][_0x5ceee8(0x21d)](a[_0x5ceee8(0x2c5)](_0x2ce4dc=>{const _0x2e3dc1=_0x5ceee8;var _0x3e7fe0,_0x5ee315;const {offsetX:_0x3fe511,offsetY:_0x351009}=_0x2ce4dc,{x:_0x5d0124,y:_0x37fcd2}=_0x13eaa2[_0x2e3dc1(0x31d)](p['Vector2']['FromArray']([_0x3fe511,_0x351009])),{scaleX:_0x1adec9,scaleY:_0x30b09c}=_0x13eaa2[_0x2e3dc1(0x295)](),_0x379ba2=_0x13eaa2[_0x2e3dc1(0x168)](p[_0x2e3dc1(0x1a8)]['VIEW_MAIN']),_0x215ba9=_0x13eaa2[_0x2e3dc1(0x2dd)](p['Vector2'][_0x2e3dc1(0x117)]([_0x5d0124,_0x37fcd2]),_0x379ba2),_0x536f3e=_0x4b99b4[_0x2e3dc1(0x1f2)](_0x3fe511,_0x351009,_0x1adec9,_0x30b09c,_0x215ba9);((_0x3e7fe0=this['_lastPointer'])==null?void 0x0:_0x3e7fe0[_0x2e3dc1(0x15e)])===_0x536f3e['column']&&((_0x5ee315=this[_0x2e3dc1(0x20c)])==null?void 0x0:_0x5ee315['row'])===_0x536f3e[_0x2e3dc1(0x23c)]||this[_0x2e3dc1(0x369)]['forEach'](_0xd84880=>{const _0x3d1351=_0x2e3dc1;_0xd84880[_0x3d1351(0x174)](_0x536f3e);});},0x64));});}['_updateCollabCursors'](_0x43a17b,_0x29d078){const _0x2b2e7a=_0x581ecc;var _0x2c7a91;const _0x3b7914=(_0x2c7a91=this[_0x2b2e7a(0x293)][_0x2b2e7a(0x2c2)]())==null?void 0x0:_0x2c7a91[_0x2b2e7a(0x25f)];if(!_0x3b7914)return;const _0x59fa03=this[_0x2b2e7a(0x252)]();if(!_0x59fa03)return;this['_cursors'][_0x2b2e7a(0x1dd)](_0x23c286=>{const _0xdd2bdc=_0x2b2e7a;_0x23c286[_0xdd2bdc(0x30c)]();});const {scene:_0x306795}=_0x59fa03,_0x2327f5=Et(Array[_0x2b2e7a(0x2d4)](_0x29d078[_0x2b2e7a(0x1a3)]()))['map'](_0x362edd=>{const _0x1f2065=_0x2b2e7a,{color:_0x36907e,range:_0x3d02e0,name:_0x4acd9a,selection:_0x13de88,sheetID:_0xe3d441}=_0x362edd,{startColumn:_0x27b33f,startRow:_0x327e1e,endColumn:_0x4bf51a,endRow:_0x310fd3}=_0x3d02e0,_0x240f47=X[_0x1f2065(0x243)](_0x327e1e,_0x27b33f,_0x306795,_0x3b7914),_0x206aed=X[_0x1f2065(0x243)](_0x310fd3,_0x4bf51a,_0x306795,_0x3b7914),{columnHeaderHeightAndMarginTop:_0x42b833}=_0x3b7914,{startX:_0x40b07b,startY:_0x11e6a8}=_0x240f47,{endX:_0x5d2eb8,endY:_0x2ca832}=_0x206aed,_0x4161a2=_0x5d2eb8-_0x40b07b,_0x3ceb08=_0x2ca832-_0x11e6a8,_0x30f3b3={'labelPosition':_0x11e6a8-_0x42b833>=q?_0x1f2065(0x1ff):_0x1f2065(0x1bd),'sheetID':_0xe3d441,'range':_0x3d02e0,'color':_0x36907e,'name':_0x4acd9a,'selection':_0x13de88,'left':_0x40b07b,'top':_0x11e6a8,'width':_0x4161a2,'height':_0x3ceb08,'evented':!0x1,'zIndex':bt};return new we(_0x4acd9a,_0x30f3b3);});_0x306795[_0x2b2e7a(0x1a9)](_0x2327f5,gt),this[_0x2b2e7a(0x369)]=new Set(_0x2327f5);}[_0x581ecc(0x328)](){const _0x400cc1=_0x581ecc;var _0x333180;(_0x333180=this[_0x400cc1(0x369)])==null||_0x333180[_0x400cc1(0x1dd)](_0x18717f=>_0x18717f[_0x400cc1(0x1b0)]());}[_0x581ecc(0x252)](){const _0x54ed6f=_0x581ecc;return X[_0x54ed6f(0x2a5)](this[_0x54ed6f(0x311)][_0x54ed6f(0x312)],this[_0x54ed6f(0x311)]);}};ve=pt([ae(0x1,a['Inject'](X['SheetSkeletonManagerService'])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x581ecc(0x210)](a['ThemeService']))],ve);function Et(_0x1df26c){const _0xc6846e=_0x581ecc,_0x9523a4=new Map();return _0x1df26c[_0xc6846e(0x1dd)](_0x153e86=>{const _0xd8cb3=_0xc6846e;if(_0x9523a4[_0xd8cb3(0x1af)](_0x153e86['selection'])){const _0x59808e=_0x9523a4[_0xd8cb3(0x2b8)](_0x153e86[_0xd8cb3(0x1f8)]);_0x59808e['name']+=',\x20'+_0x153e86[_0xd8cb3(0x1a4)];}else _0x9523a4[_0xd8cb3(0x2d0)](_0x153e86[_0xd8cb3(0x1f8)],_0x153e86);}),Array[_0xc6846e(0x2d4)](_0x9523a4['values']());}var E=function(){const _0x272a53=_0x581ecc;return E=Object[_0x272a53(0x17a)]||function(_0x59bcb1){const _0x2ac13b=_0x272a53;for(var _0x2965d6,_0x3218dc=0x1,_0x3f2561=arguments[_0x2ac13b(0x2a0)];_0x3218dc<_0x3f2561;_0x3218dc++){_0x2965d6=arguments[_0x3218dc];for(var _0x1ac72e in _0x2965d6)Object[_0x2ac13b(0x1b9)][_0x2ac13b(0x378)]['call'](_0x2965d6,_0x1ac72e)&&(_0x59bcb1[_0x1ac72e]=_0x2965d6[_0x1ac72e]);}return _0x59bcb1;},E[_0x272a53(0x2d9)](this,arguments);},Tt=function(_0x4e8dd1,_0xca19b5){const _0x394919=_0x581ecc;var _0x385eef={};for(var _0x33568d in _0x4e8dd1)Object['prototype'][_0x394919(0x378)]['call'](_0x4e8dd1,_0x33568d)&&_0xca19b5['indexOf'](_0x33568d)<0x0&&(_0x385eef[_0x33568d]=_0x4e8dd1[_0x33568d]);if(_0x4e8dd1!=null&&typeof Object['getOwnPropertySymbols']==_0x394919(0x33a)){for(var _0x1b1efe=0x0,_0x33568d=Object['getOwnPropertySymbols'](_0x4e8dd1);_0x1b1efe<_0x33568d[_0x394919(0x2a0)];_0x1b1efe++)_0xca19b5[_0x394919(0x263)](_0x33568d[_0x1b1efe])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x394919(0x29c)](_0x4e8dd1,_0x33568d[_0x1b1efe])&&(_0x385eef[_0x33568d[_0x1b1efe]]=_0x4e8dd1[_0x33568d[_0x1b1efe]]);}return _0x385eef;},pe=M[_0x581ecc(0x176)](function(_0xc9c903,_0x1bf031){const _0x2958f6=_0x581ecc;var _0x5bf8e6=_0xc9c903[_0x2958f6(0x364)],_0x4ff1ac=_0xc9c903['id'],_0x5ca773=_0xc9c903[_0x2958f6(0x147)],_0x4c6bc0=_0xc9c903[_0x2958f6(0x1b2)],_0x1ced2f=Tt(_0xc9c903,[_0x2958f6(0x364),'id',_0x2958f6(0x147),_0x2958f6(0x1b2)]),_0xa9a896=_0x2958f6(0x13c)[_0x2958f6(0x270)](_0x4ff1ac,'\x20')[_0x2958f6(0x270)](_0x5ca773||'')[_0x2958f6(0x122)](),_0x12b70b=M[_0x2958f6(0x324)]('_'[_0x2958f6(0x270)](Dt()));return Ae(_0x5bf8e6,''[_0x2958f6(0x270)](_0x4ff1ac),{'defIds':_0x5bf8e6[_0x2958f6(0x248)],'idSuffix':_0x12b70b['current']},E({'ref':_0x1bf031,'className':_0xa9a896},_0x1ced2f),_0x4c6bc0);});function Ae(_0xc52807,_0x1963c4,_0x48427c,_0x5a37c0,_0x2b8971){const _0x2aee3d=_0x581ecc;return M[_0x2aee3d(0x25a)](_0xc52807['tag'],E(E({'key':_0x1963c4},Ot(_0xc52807,_0x48427c,_0x2b8971)),_0x5a37c0),(Rt(_0xc52807,_0x48427c)[_0x2aee3d(0x193)]||[])[_0x2aee3d(0x1ea)](function(_0x4dff01,_0x4d7231){const _0x13094b=_0x2aee3d;return Ae(_0x4dff01,''[_0x13094b(0x270)](_0x1963c4,'-')[_0x13094b(0x270)](_0xc52807[_0x13094b(0x151)],'-')[_0x13094b(0x270)](_0x4d7231),_0x48427c,void 0x0,_0x2b8971);}));}function Ot(_0x2ba93c,_0x35d8b0,_0x144b4e){const _0x221ed0=_0x581ecc;var _0x2a4da0=E({},_0x2ba93c[_0x221ed0(0x166)]);_0x144b4e!=null&&_0x144b4e[_0x221ed0(0x197)]&&_0x2a4da0[_0x221ed0(0x24a)]===_0x221ed0(0x197)&&(_0x2a4da0[_0x221ed0(0x24a)]=_0x144b4e[_0x221ed0(0x197)]),_0x2ba93c['tag']===_0x221ed0(0x241)&&_0x2a4da0['id']&&(_0x2a4da0['id']=_0x2a4da0['id']+_0x35d8b0[_0x221ed0(0x1c3)]),Object[_0x221ed0(0x149)](_0x2a4da0)[_0x221ed0(0x1dd)](function(_0x32990d){const _0x17f6be=_0x221ed0;var _0x3311ce=_0x32990d[0x0],_0x17e048=_0x32990d[0x1];_0x3311ce===_0x17f6be(0x241)&&typeof _0x17e048=='string'&&(_0x2a4da0[_0x3311ce]=_0x17e048[_0x17f6be(0x2d8)](/url\(#(.*)\)/,_0x17f6be(0x196)[_0x17f6be(0x270)](_0x35d8b0[_0x17f6be(0x1c3)],')')));});var _0x13d7c6=_0x35d8b0[_0x221ed0(0x248)];return!_0x13d7c6||_0x13d7c6[_0x221ed0(0x2a0)]===0x0||(_0x2ba93c[_0x221ed0(0x151)]===_0x221ed0(0x230)&&_0x2a4da0[_0x221ed0(0x1c4)]&&(_0x2a4da0[_0x221ed0(0x1c4)]=_0x2a4da0[_0x221ed0(0x1c4)]+_0x35d8b0[_0x221ed0(0x1c3)]),Object[_0x221ed0(0x149)](_0x2a4da0)[_0x221ed0(0x1dd)](function(_0x73c1af){const _0x27e865=_0x221ed0;var _0x2d5e22=_0x73c1af[0x0],_0x3fd592=_0x73c1af[0x1];typeof _0x3fd592==_0x27e865(0x2a8)&&(_0x2a4da0[_0x2d5e22]=_0x3fd592[_0x27e865(0x2d8)](/url\(#(.*)\)/,_0x27e865(0x196)[_0x27e865(0x270)](_0x35d8b0[_0x27e865(0x1c3)],')')));})),_0x2a4da0;}function Rt(_0xc2df75,_0xbd3aec){const _0x11a90d=_0x581ecc;var _0x230e0f,_0xd1ff5=_0xbd3aec['defIds'];return!_0xd1ff5||_0xd1ff5['length']===0x0?_0xc2df75:_0xc2df75['tag']===_0x11a90d(0x1ad)&&(!((_0x230e0f=_0xc2df75['children'])===null||_0x230e0f===void 0x0)&&_0x230e0f[_0x11a90d(0x2a0)])?E(E({},_0xc2df75),{'children':_0xc2df75['children'][_0x11a90d(0x1ea)](function(_0x1971da){const _0x249650=_0x11a90d;return typeof _0x1971da['attrs']['id']=='string'&&_0xd1ff5&&_0xd1ff5[_0x249650(0x263)](_0x1971da['attrs']['id'])>-0x1?E(E({},_0x1971da),{'attrs':E(E({},_0x1971da['attrs']),{'id':_0x1971da[_0x249650(0x166)]['id']+_0xbd3aec[_0x249650(0x1c3)]})}):_0x1971da;})}):_0xc2df75;}function _0x17f3(_0x192835,_0x3fec4d){const _0x3fa894=_0x3fa8();return _0x17f3=function(_0x17f3cd,_0x2a2e58){_0x17f3cd=_0x17f3cd-0x10f;let _0x3714a7=_0x3fa894[_0x17f3cd];return _0x3714a7;},_0x17f3(_0x192835,_0x3fec4d);}function Dt(){const _0x593eda=_0x581ecc;return Math[_0x593eda(0x12e)]()[_0x593eda(0x16e)](0x24)[_0x593eda(0x27e)](0x2,0x8);}pe[_0x581ecc(0x219)]=_0x581ecc(0x27c);var Ut={'tag':_0x581ecc(0x26a),'attrs':{'fill':_0x581ecc(0x32e),'viewBox':_0x581ecc(0x1df),'width':_0x581ecc(0x35e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x581ecc(0x133)},'children':[{'tag':_0x581ecc(0x11c),'attrs':{'stroke':_0x581ecc(0x388),'d':'M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','strokeLinecap':_0x581ecc(0x1a5),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x581ecc(0x1ad),'attrs':{},'children':[{'tag':_0x581ecc(0x170),'attrs':{'id':_0x581ecc(0x28e)},'children':[{'tag':_0x581ecc(0x11c),'attrs':{'fill':_0x581ecc(0x12b),'d':_0x581ecc(0x300)}}]}]}],'defIds':[_0x581ecc(0x28e)]},ye=M[_0x581ecc(0x176)](function(_0x36bf81,_0x4a25ec){const _0x4d99e1=_0x581ecc;return M[_0x4d99e1(0x25a)](pe,Object['assign']({},_0x36bf81,{'id':_0x4d99e1(0x314),'ref':_0x4a25ec,'icon':Ut}));});ye[_0x581ecc(0x219)]=_0x581ecc(0x2b2);var Nt={'tag':_0x581ecc(0x26a),'attrs':{'fill':_0x581ecc(0x32e),'viewBox':_0x581ecc(0x214),'width':_0x581ecc(0x35e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x581ecc(0x383)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x581ecc(0x313),'strokeLinecap':_0x581ecc(0x1a5),'strokeLinejoin':_0x581ecc(0x1a5),'strokeWidth':1.2}}]},{'tag':_0x581ecc(0x1ad),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x581ecc(0x2b6)},'children':[{'tag':_0x581ecc(0x11c),'attrs':{'fill':_0x581ecc(0x12b),'d':'M0\x200H16V16H0z','transform':_0x581ecc(0x259)}}]}]}],'defIds':[_0x581ecc(0x2b6)]},$e=M[_0x581ecc(0x176)](function(_0x15b53e,_0x5132e4){const _0x77417d=_0x581ecc;return M[_0x77417d(0x25a)](pe,Object[_0x77417d(0x17a)]({},_0x15b53e,{'id':_0x77417d(0x24c),'ref':_0x5132e4,'icon':Nt}));});$e['displayName']=_0x581ecc(0x131);function Mt(_0x5038d9){const _0x51f070=_0x581ecc;switch(_0x5038d9){case u['CollaborationStatus']['OFFLINE']:return _0x51f070(0x389);case u[_0x51f070(0x192)][_0x51f070(0x34b)]:return'collabStatus.conflict';case u[_0x51f070(0x192)]['FETCH_MISS']:return _0x51f070(0x24d);case u[_0x51f070(0x192)]['NOT_COLLAB']:return _0x51f070(0x155);case u[_0x51f070(0x192)]['AWAITING']:case u[_0x51f070(0x192)][_0x51f070(0x358)]:return _0x51f070(0x35c);case u[_0x51f070(0x192)][_0x51f070(0x333)]:case u[_0x51f070(0x192)][_0x51f070(0x2ec)]:return'collabStatus.synced';}}function xe(_0x25d699){const _0x4fbd62=_0x581ecc,{status$:_0x30fcc5}=_0x25d699,_0x4fcfaf=T[_0x4fbd62(0x381)](_0x30fcc5,u['CollaborationStatus']['NOT_COLLAB']),_0x45bfbc=T['useDependency'](a['LocaleService']),_0x4960b7=T[_0x4fbd62(0x212)](u['CollaborationSessionService']),_0x482fd4=_0x4fcfaf!==u['CollaborationStatus'][_0x4fbd62(0x288)],_0x12ff3d=_0x45bfbc['t'](Mt(_0x4fcfaf)),_0x4c9d33=_0x482fd4?P[_0x4fbd62(0x232)]($e,{}):P[_0x4fbd62(0x232)](ye,{}),_0x1f708e=M[_0x4fbd62(0x38b)](()=>{const _0x3354ca=_0x4fbd62;_0x482fd4||_0x4960b7[_0x3354ca(0x199)]();},[_0x482fd4,_0x4960b7]);function _0x5e9e6a(){const _0x437c97=_0x4fbd62;return P[_0x437c97(0x16a)](_0x437c97(0x24b),{'className':_0x437c97(0x221),'onClick':_0x1f708e,'children':[P['jsx']('div',{'className':D[_0x437c97(0x1cf)](_0x437c97(0x1c1),_0x482fd4?_0x437c97(0x291):_0x437c97(0x247)),'children':_0x4c9d33}),P['jsx'](_0x437c97(0x24b),{'className':_0x437c97(0x10f),'children':_0x12ff3d})]});}return _0x482fd4?_0x5e9e6a():P[_0x4fbd62(0x232)](D[_0x4fbd62(0x338)],{'title':_0x45bfbc['t'](_0x4fbd62(0x2cf)),'children':_0x5e9e6a()});}var Lt=Object[_0x581ecc(0x182)],Pt=(_0x1cb34e,_0xcf833f,_0x4b7180,_0x36e0ef)=>{const _0x16d9d4=_0x581ecc;for(var _0x27e22f=_0x36e0ef>0x1?void 0x0:_0x36e0ef?Lt(_0xcf833f,_0x4b7180):_0xcf833f,_0x1251d3=_0x1cb34e[_0x16d9d4(0x2a0)]-0x1,_0x2e4c09;_0x1251d3>=0x0;_0x1251d3--)(_0x2e4c09=_0x1cb34e[_0x1251d3])&&(_0x27e22f=_0x2e4c09(_0x27e22f)||_0x27e22f);return _0x27e22f;},V=(_0x55d72b,_0x3f2c87)=>(_0x89638,_0x3e8371)=>_0x3f2c87(_0x89638,_0x3e8371,_0x55d72b);exports[_0x581ecc(0x38f)]=class extends a[_0x581ecc(0x1fc)]{constructor(_0x2464fd,_0x512086,_0x151e72,_0xbd62b){const _0x385281=_0x581ecc;super(),h(this,_0x385281(0x340),new d[(_0x385281(0x205))](u[_0x385281(0x192)][_0x385281(0x371)])),(this['_univerInstanceService']=_0x2464fd,this['_injector']=_0x512086,this[_0x385281(0x2df)]=_0x151e72,this[_0x385281(0x132)]=_0xbd62b,this[_0x385281(0x36c)](),this[_0x385281(0x367)]());}[_0x581ecc(0x367)](){const _0x239e4f=_0x581ecc;this[_0x239e4f(0x191)](this[_0x239e4f(0x1a1)][_0x239e4f(0x220)][_0x239e4f(0x37a)](d[_0x239e4f(0x2eb)](()=>{const _0x1be3f9=_0x239e4f,_0x3fc4cb=this[_0x1be3f9(0x1a1)][_0x1be3f9(0x254)]();return _0x3fc4cb?this['_collaborationController']['getCollabEntity$'](_0x3fc4cb[_0x1be3f9(0x274)]()):d['of'](null);}),d[_0x239e4f(0x2eb)](_0x721a40=>_0x721a40?_0x721a40[_0x239e4f(0x15b)]:d['of'](u[_0x239e4f(0x192)]['NOT_COLLAB'])))[_0x239e4f(0x21f)](_0x255250=>{const _0x61248=_0x239e4f;this[_0x61248(0x340)][_0x61248(0x33d)](_0x255250);}));}['_initStatusComponent'](){const _0x246a46=_0x581ecc;this[_0x246a46(0x191)](this[_0x246a46(0x132)][_0x246a46(0x185)](T[_0x246a46(0x23f)][_0x246a46(0x18b)],()=>T[_0x246a46(0x20b)](wt({'status$':this[_0x246a46(0x340)][_0x246a46(0x2ea)]()}),this[_0x246a46(0x27b)])));}},exports[_0x581ecc(0x38f)]=Pt([V(0x0,a[_0x581ecc(0x2f9)]),V(0x1,a[_0x581ecc(0x210)](a['Injector'])),V(0x2,a['Inject'](u[_0x581ecc(0x334)])),V(0x3,T[_0x581ecc(0x34e)])],exports['DesktopCollaborationStatusDisplayController']);function wt(_0x2625b5){const {status$:_0x5d0cc2}=_0x2625b5;return function(){return P['jsx'](xe,{'status$':_0x5d0cc2});};}var At=Object[_0x581ecc(0x182)],yt=(_0x1b6dc2,_0x3e9d44,_0x9f51bd,_0x58ea54)=>{const _0x1df289=_0x581ecc;for(var _0x3f9810=_0x58ea54>0x1?void 0x0:_0x58ea54?At(_0x3e9d44,_0x9f51bd):_0x3e9d44,_0x4bebd7=_0x1b6dc2[_0x1df289(0x2a0)]-0x1,_0x27a759;_0x4bebd7>=0x0;_0x4bebd7--)(_0x27a759=_0x1b6dc2[_0x4bebd7])&&(_0x3f9810=_0x27a759(_0x3f9810)||_0x3f9810);return _0x3f9810;},y=(_0x13cc78,_0x4313f0)=>(_0x3366ef,_0x41c8a8)=>_0x4313f0(_0x3366ef,_0x41c8a8,_0x13cc78);let K=class extends a[_0x581ecc(0x1fc)]{constructor(_0x5d5cf4,_0x1f0973,_0x3ddcd1,_0x591964,_0x3fe8f2,_0xb9bbf8){const _0x990fe2=_0x581ecc;super(),this[_0x990fe2(0x307)]=_0x5d5cf4,this[_0x990fe2(0x382)]=_0x1f0973,this['_collaborationUIEventService']=_0x3ddcd1,this[_0x990fe2(0x2c4)]=_0x591964,this[_0x990fe2(0x2af)]=_0x3fe8f2,this['_localeService']=_0xb9bbf8,this['_setupBeforeClosingHandler'](),this[_0x990fe2(0x1eb)]();}[_0x581ecc(0x2e9)](){const _0x55e9a4=_0x581ecc;this['disposeWithMe'](this[_0x55e9a4(0x307)]['registerBeforeClose'](()=>{const _0x3abba2=_0x55e9a4;if(this['_localCacheService'][_0x3abba2(0x327)][_0x3abba2(0x12d)])return this[_0x3abba2(0x2f8)]['t'](_0x3abba2(0x1e3));}));}[_0x581ecc(0x1eb)](){const _0x4e07ec=_0x581ecc;this[_0x4e07ec(0x191)](this[_0x4e07ec(0x225)]['event$']['subscribe'](_0x3a578f=>{const _0x30e4b0=_0x4e07ec;_0x3a578f['id']===u[_0x30e4b0(0x144)]['OTHER_CLIENT_EDITING']&&this[_0x30e4b0(0x2c4)]['show']({'type':D[_0x30e4b0(0x2d1)][_0x30e4b0(0x297)],'content':this[_0x30e4b0(0x2f8)]['t'](_0x30e4b0(0x27a))}),_0x3a578f['id']===u[_0x30e4b0(0x144)]['CLOSE_ROOM']&&this['_messageService'][_0x30e4b0(0x179)]({'type':D[_0x30e4b0(0x2d1)]['Warning'],'content':this[_0x30e4b0(0x2f8)]['t'](_0x30e4b0(0x366))}),_0x3a578f['id']===u[_0x30e4b0(0x144)]['PERMISSION_DENIED']&&this[_0x30e4b0(0x2af)][_0x30e4b0(0x179)]({'title':this[_0x30e4b0(0x2f8)]['t']('permission.title'),'content':this['_localeService']['t'](_0x30e4b0(0x26e)),'type':'error','duration':0x0}),_0x3a578f['id']===u[_0x30e4b0(0x144)][_0x30e4b0(0x34b)]&&this['_messageService']['show']({'type':D[_0x30e4b0(0x2d1)][_0x30e4b0(0x283)],'content':this[_0x30e4b0(0x2f8)]['t'](_0x30e4b0(0x366))+'('+_0x3a578f[_0x30e4b0(0x17c)]+')'}),_0x3a578f['id']===u['CollaborationUIEventId'][_0x30e4b0(0x273)]&&this[_0x30e4b0(0x2c4)][_0x30e4b0(0x179)]({'type':D[_0x30e4b0(0x2d1)][_0x30e4b0(0x297)],'content':this[_0x30e4b0(0x2f8)]['t'](_0x3a578f['data']||'')}),_0x3a578f['id']===u[_0x30e4b0(0x144)][_0x30e4b0(0x281)]&&this[_0x30e4b0(0x2c4)][_0x30e4b0(0x179)]({'type':D['MessageType'][_0x30e4b0(0x297)],'content':this[_0x30e4b0(0x2f8)]['t'](_0x30e4b0(0x282))}),_0x3a578f['id']===u[_0x30e4b0(0x144)][_0x30e4b0(0x1a2)]&&this[_0x30e4b0(0x2c4)][_0x30e4b0(0x179)]({'type':D[_0x30e4b0(0x2d1)][_0x30e4b0(0x283)],'content':this[_0x30e4b0(0x2f8)]['t'](_0x30e4b0(0x25c))}),_0x3a578f['id']===u['CollaborationUIEventId'][_0x30e4b0(0x11d)]&&this[_0x30e4b0(0x2c4)][_0x30e4b0(0x179)]({'type':D[_0x30e4b0(0x2d1)][_0x30e4b0(0x283)],'content':this[_0x30e4b0(0x2f8)]['t'](_0x30e4b0(0x393))});}));}};K=yt([y(0x0,T[_0x581ecc(0x123)]),y(0x1,u[_0x581ecc(0x234)]),y(0x2,a[_0x581ecc(0x210)](u[_0x581ecc(0x1da)])),y(0x3,T[_0x581ecc(0x2bd)]),y(0x4,T['INotificationService']),y(0x5,a['Inject'](a[_0x581ecc(0x2b1)]))],K);const $t='collaboration-client-ui.config',Ue={},be=a[_0x581ecc(0x32c)](_0x581ecc(0x22d));var xt=Object[_0x581ecc(0x182)],jt=(_0x35f62c,_0x3f51ae,_0x360f80,_0x48a86e)=>{for(var _0x246310=_0x48a86e>0x1?void 0x0:_0x48a86e?xt(_0x3f51ae,_0x360f80):_0x3f51ae,_0x2264f5=_0x35f62c['length']-0x1,_0x2093f2;_0x2264f5>=0x0;_0x2264f5--)(_0x2093f2=_0x35f62c[_0x2264f5])&&(_0x246310=_0x2093f2(_0x246310)||_0x246310);return _0x246310;},H=(_0x541df5,_0xeadce5)=>(_0x5d9897,_0x380e85)=>_0xeadce5(_0x5d9897,_0x380e85,_0x541df5);exports[_0x581ecc(0x1d2)]=class extends a[_0x581ecc(0x2e8)]{constructor(_0x10c069,_0x401cc6,_0x52aac1,_0x212228,_0x21cfd9){const _0xd9121e=_0x581ecc;super(),this[_0xd9121e(0x261)]=_0x10c069,this[_0xd9121e(0x27f)]=_0x401cc6,this[_0xd9121e(0x290)]=_0x52aac1,this[_0xd9121e(0x2e0)]=_0x212228,_0x21cfd9?_0x21cfd9==null||_0x21cfd9['whenReady']()['then'](()=>this['_init']()):(this['_logService']['debug'](_0xd9121e(0x321),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0xd9121e(0x1f1)]());}async[_0x581ecc(0x1f1)](){const _0x558120=_0x581ecc,_0x105d19=this[_0x558120(0x261)]['getParam'](_0x558120(0x312)),_0x2adc2f=this[_0x558120(0x261)][_0x558120(0x347)](_0x558120(0x121)),_0x1bd95=this['_urlService'][_0x558120(0x347)](_0x558120(0x15a));if(!_0x105d19||!_0x2adc2f){this[_0x558120(0x27f)][_0x558120(0x16f)](_0x558120(0x321),_0x558120(0x343));return;}const _0x82c75=await this['_dataLoaderService']['loadUnit'](_0x105d19,Number(_0x2adc2f),_0x1bd95);_0x82c75&&_0x82c75 instanceof a['Workbook']&&this['_setupSubUnitSync'](_0x82c75);}async[_0x581ecc(0x278)](_0x56e8b2){const _0x11a2ae=_0x581ecc;await this[_0x11a2ae(0x1a7)](_0x56e8b2),_0x56e8b2[_0x11a2ae(0x12a)]['pipe'](d[_0x11a2ae(0x18e)](this[_0x11a2ae(0x194)]))[_0x11a2ae(0x21f)](_0x2ceb41=>{const _0x4132f3=_0x11a2ae;_0x2ceb41&&this[_0x4132f3(0x229)](_0x2ceb41);}),this['_urlService'][_0x11a2ae(0x355)][_0x11a2ae(0x37a)](d[_0x11a2ae(0x18e)](this[_0x11a2ae(0x194)]))['subscribe'](()=>this[_0x11a2ae(0x1a7)](_0x56e8b2));}[_0x581ecc(0x229)](_0x21ba26,_0x183d8c=!0x1){const _0x4b468a=_0x581ecc,_0x129780=this['_urlService']['getParam']('subunit');_0x21ba26[_0x4b468a(0x374)]()!==_0x129780&&this['_urlService'][_0x4b468a(0x2db)](_0x4b468a(0x15a),_0x21ba26[_0x4b468a(0x374)](),_0x183d8c);}async[_0x581ecc(0x1a7)](_0x42a407){const _0xe1a5c7=_0x581ecc;var _0x18a8d6;const _0x5ea619=this[_0xe1a5c7(0x261)][_0xe1a5c7(0x347)](_0xe1a5c7(0x15a));if(!_0x5ea619||!_0x42a407[_0xe1a5c7(0x21a)](_0x5ea619)){const _0x2b2120=_0x42a407['getUnhiddenWorksheets']()[0x0],_0x3fa4ca=_0x42a407[_0xe1a5c7(0x21a)](_0x2b2120);if(!_0x3fa4ca)return;this[_0xe1a5c7(0x229)](_0x3fa4ca,!0x0),await this['_commandService'][_0xe1a5c7(0x12c)](g[_0xe1a5c7(0x31f)]['id'],{'unitId':_0x42a407[_0xe1a5c7(0x274)](),'subUnitId':_0x2b2120});return;}((_0x18a8d6=_0x42a407[_0xe1a5c7(0x2b9)]())==null?void 0x0:_0x18a8d6['getSheetId']())!==_0x5ea619&&await this[_0xe1a5c7(0x290)][_0xe1a5c7(0x12c)](g[_0xe1a5c7(0x31f)]['id'],{'unitId':_0x42a407[_0xe1a5c7(0x274)](),'subUnitId':_0x5ea619});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x581ecc(0x186)]),H(0x2,a['ICommandService']),H(0x3,a['Inject'](u[_0x581ecc(0x29a)])),H(0x4,a['Optional'](qe[_0x581ecc(0x14f)]))],exports[_0x581ecc(0x1d2)]);var Bt=Object[_0x581ecc(0x182)],kt=(_0xf963ab,_0x110a31,_0x3701fd,_0x2a380f)=>{for(var _0x35ce5a=_0x2a380f>0x1?void 0x0:_0x2a380f?Bt(_0x110a31,_0x3701fd):_0x110a31,_0x4217b6=_0xf963ab['length']-0x1,_0x425c1d;_0x4217b6>=0x0;_0x4217b6--)(_0x425c1d=_0xf963ab[_0x4217b6])&&(_0x35ce5a=_0x425c1d(_0x35ce5a)||_0x35ce5a);return _0x35ce5a;},ce=(_0x313e89,_0x5e7e8d)=>(_0x55c74d,_0x503104)=>_0x5e7e8d(_0x55c74d,_0x503104,_0x313e89);let z=class{constructor(_0x3c4b49,_0x55fa54,_0x1aa957){const _0x186290=_0x581ecc;this[_0x186290(0x27b)]=_0x3c4b49,this[_0x186290(0x2ae)]=_0x55fa54,this[_0x186290(0x284)]=_0x1aa957;}['transformIMECache'](_0x220988){const _0x4a75f6=_0x581ecc;this[_0x4a75f6(0x1cc)](_0x220988),this[_0x4a75f6(0x227)](_0x220988);}[_0x581ecc(0x1d7)](_0xf88b30){const _0x2b8738=_0x581ecc,{unitID:_0x1cfbb1}=_0xf88b30,_0x46637c=this[_0x2b8738(0x284)][_0x2b8738(0x158)](_0x1cfbb1)['with'](b[_0x2b8738(0x152)]),{redoCache:_0x4d2428}=_0x46637c[_0x2b8738(0x2fb)]();if(_0x4d2428[_0x2b8738(0x2a0)]===0x0)return _0xf88b30;let _0x3abfae=a[_0x2b8738(0x184)][_0x2b8738(0x23e)](_0xf88b30[_0x2b8738(0x386)][0x0]);for(let _0x4dd56a=0x0;_0x4dd56a<_0x4d2428['length'];_0x4dd56a++){const _0x242ef7={'id':'doc.mutation.rich-text-editing','params':{..._0x4d2428[_0x4dd56a]}},_0x5ea840=this['_transformService']['transformMutation'](_0x3abfae,_0x242ef7,!0x1);if(m['isTransformMutationFailure'](_0x5ea840))throw _0x5ea840[_0x2b8738(0x2fc)];_0x3abfae=_0x5ea840['m1Prime'];}return{...a[_0x2b8738(0x184)][_0x2b8738(0x23e)](_0xf88b30),'mutations':[_0x3abfae]};}[_0x581ecc(0x1cc)](_0x3a2e32){const _0x590a37=_0x581ecc,{unitID:_0x3a6b1f}=_0x3a2e32,_0x10f5db=this[_0x590a37(0x284)][_0x590a37(0x158)](_0x3a6b1f)[_0x590a37(0x1b8)](b[_0x590a37(0x152)]),{undoCache:_0x5a5cdb,redoCache:_0x173b07}=_0x10f5db[_0x590a37(0x2fb)]();if(_0x5a5cdb['length']===0x0||_0x173b07[_0x590a37(0x2a0)]===0x0)return;const _0x1abc4d=[],_0x3f7b54=[];let _0x2f27c9=a[_0x590a37(0x184)][_0x590a37(0x23e)](_0x3a2e32['mutations'][0x0]),_0x288164=a[_0x590a37(0x184)][_0x590a37(0x23e)](_0x3a2e32[_0x590a37(0x386)][0x0]);for(let _0x4cee51=_0x5a5cdb[_0x590a37(0x2a0)]-0x1;_0x4cee51>=0x0;_0x4cee51--){const _0x4a95e3={'id':_0x590a37(0x306),'params':{..._0x5a5cdb[_0x4cee51]}},_0x56a688={'id':_0x590a37(0x306),'params':{..._0x173b07[_0x4cee51]}},_0x5b0daf=this['_transformService']['transformMutation'](_0x2f27c9,_0x4a95e3,!0x1),_0x13f4c8=this['_transformService'][_0x590a37(0x2cb)](_0x288164,_0x56a688,!0x1);if(m[_0x590a37(0x28f)](_0x5b0daf))throw _0x5b0daf[_0x590a37(0x2fc)];if(m['isTransformMutationFailure'](_0x13f4c8))throw _0x13f4c8[_0x590a37(0x2fc)];_0x1abc4d[_0x590a37(0x14d)](_0x5b0daf[_0x590a37(0x272)][_0x590a37(0x16d)]),_0x3f7b54[_0x590a37(0x14d)](_0x13f4c8[_0x590a37(0x272)]['params']),_0x2f27c9=_0x5b0daf[_0x590a37(0x17f)],_0x288164=_0x13f4c8[_0x590a37(0x17f)];}_0x10f5db['setUndoRedoMutationParamsCache']({'undoCache':_0x1abc4d,'redoCache':_0x3f7b54});}[_0x581ecc(0x227)](_0x3cb491){const _0x50be12=_0x581ecc,{unitID:_0x32fa8a}=_0x3cb491,_0x501e3b=this[_0x50be12(0x284)][_0x50be12(0x158)](_0x32fa8a)[_0x50be12(0x1b8)](b[_0x50be12(0x152)]),_0x77c2e9=_0x501e3b[_0x50be12(0x13b)]();if(_0x77c2e9==null)return;const _0xe8e22f=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3cb491['unitID'],'actions':null,'textRanges':[_0x77c2e9]}}],_0x593fc2=this[_0x50be12(0x2ae)]['transformMutationsWithChangeset'](_0x3cb491,_0xe8e22f);if(!m['isTransformMutationsWithChangesetSuccess'](_0x593fc2))throw _0x593fc2[_0x50be12(0x2fc)];const _0x1b8bf5=_0x593fc2[_0x50be12(0x272)][0x0]['params'][_0x50be12(0x375)];Array['isArray'](_0x1b8bf5)&&_0x1b8bf5[_0x50be12(0x2a0)]&&_0x501e3b[_0x50be12(0x137)](_0x1b8bf5[0x0]);}};z=kt([ce(0x0,a[_0x581ecc(0x210)](a[_0x581ecc(0x255)])),ce(0x1,m['ITransformService']),ce(0x2,p[_0x581ecc(0x2f0)])],z);var Ht=Object[_0x581ecc(0x182)],Ft=(_0x32786b,_0x4d16ce,_0x462283,_0x305585)=>{const _0x3d2356=_0x581ecc;for(var _0x1c1c99=_0x305585>0x1?void 0x0:_0x305585?Ht(_0x4d16ce,_0x462283):_0x4d16ce,_0x455140=_0x32786b[_0x3d2356(0x2a0)]-0x1,_0x5b70ea;_0x455140>=0x0;_0x455140--)(_0x5b70ea=_0x32786b[_0x455140])&&(_0x1c1c99=_0x5b70ea(_0x1c1c99)||_0x1c1c99);return _0x1c1c99;},le=(_0x352611,_0x20dacd)=>(_0x16043e,_0x18d58e)=>_0x20dacd(_0x16043e,_0x18d58e,_0x352611);let J=class{constructor(_0x1c0c31,_0x548b5c,_0x4b2e6d){const _0x1312b3=_0x581ecc;this['_injector']=_0x1c0c31,this[_0x1312b3(0x2ae)]=_0x548b5c,this[_0x1312b3(0x19e)]=_0x4b2e6d;}[_0x581ecc(0x2c3)](_0x47d789){const _0x7f02c0=_0x581ecc;this[_0x7f02c0(0x207)](_0x47d789);}[_0x581ecc(0x1d7)](_0x5acd58){const _0x554601=_0x581ecc,{unitID:_0x3ae8}=_0x5acd58,{collaboration:_0x339a47}=this[_0x554601(0x19e)][_0x554601(0x2a4)](_0x3ae8);if(_0x339a47['length']===0x0)return _0x5acd58;let _0x2e32e0=a[_0x554601(0x184)]['deepClone'](_0x5acd58[_0x554601(0x386)][0x0]);for(let _0xb83182=0x0;_0xb83182<_0x339a47[_0x554601(0x2a0)];_0xb83182++){const _0x35673d={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x339a47[_0xb83182][_0x554601(0x2bc)],..._0x339a47[_0xb83182]['redoState']}},_0x160281=this[_0x554601(0x2ae)][_0x554601(0x2cb)](_0x2e32e0,_0x35673d,!0x1);if(m[_0x554601(0x28f)](_0x160281))throw _0x160281[_0x554601(0x2fc)];_0x2e32e0=_0x160281['m1Prime'];}return{...a[_0x554601(0x184)][_0x554601(0x23e)](_0x5acd58),'mutations':[_0x2e32e0]};}['_transformHistoryAndStateStack'](_0x5466fe){const _0x5db56f=_0x581ecc,{unitID:_0x48ba3e}=_0x5466fe,{history:_0x2af0e1,collaboration:_0x2442be}=this[_0x5db56f(0x19e)][_0x5db56f(0x2a4)](_0x48ba3e);if(_0x2af0e1[_0x5db56f(0x2a0)]===0x0&&_0x2442be['length']===0x0)return;const _0x35c4c3=[],_0x300003=[];let _0x27141d=a['Tools'][_0x5db56f(0x23e)](_0x5466fe[_0x5db56f(0x386)][0x0]),_0x36e65e=a[_0x5db56f(0x184)][_0x5db56f(0x23e)](_0x5466fe[_0x5db56f(0x386)][0x0]);for(let _0x455070=_0x2af0e1[_0x5db56f(0x2a0)]-0x1;_0x455070>=0x0;_0x455070--){const _0x59de0e={'id':_0x5db56f(0x306),'params':{'unitId':_0x2af0e1[_0x455070][_0x5db56f(0x2bc)],..._0x2af0e1[_0x455070][_0x5db56f(0x2ff)]}},_0x333add={'id':_0x5db56f(0x306),'params':{'unitId':_0x2af0e1[_0x455070][_0x5db56f(0x2bc)],..._0x2af0e1[_0x455070]['redoState']}},_0x5288ca=this['_transformService'][_0x5db56f(0x2cb)](_0x27141d,_0x59de0e,!0x1),_0xbe85d9=this[_0x5db56f(0x2ae)][_0x5db56f(0x2cb)](_0x36e65e,_0x333add,!0x1);if(m[_0x5db56f(0x28f)](_0x5288ca))throw _0x5288ca['error'];if(m[_0x5db56f(0x28f)](_0xbe85d9))throw _0xbe85d9['error'];_0x35c4c3[_0x5db56f(0x14d)]({..._0x2af0e1[_0x455070],'undoState':_0x5288ca[_0x5db56f(0x272)][_0x5db56f(0x16d)],'redoState':_0xbe85d9[_0x5db56f(0x272)]['params']}),_0x27141d=_0x5288ca['m1Prime'],_0x36e65e=_0xbe85d9['m1Prime'];}_0x27141d=a[_0x5db56f(0x184)][_0x5db56f(0x23e)](_0x5466fe[_0x5db56f(0x386)][0x0]),_0x36e65e=a['Tools']['deepClone'](_0x5466fe[_0x5db56f(0x386)][0x0]);for(let _0x1ec7d7=_0x2442be['length']-0x1;_0x1ec7d7>=0x0;_0x1ec7d7--){const _0x12dcb1={'id':_0x5db56f(0x306),'params':{'unitId':_0x2442be[_0x1ec7d7][_0x5db56f(0x2bc)],..._0x2442be[_0x1ec7d7]['undoState']}},_0x2e0328={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2442be[_0x1ec7d7][_0x5db56f(0x2bc)],..._0x2442be[_0x1ec7d7][_0x5db56f(0x202)]}},_0xefd307=this['_transformService'][_0x5db56f(0x2cb)](_0x27141d,_0x12dcb1,!0x1),_0x45d373=this['_transformService']['transformMutation'](_0x36e65e,_0x2e0328,!0x1);if(m[_0x5db56f(0x28f)](_0xefd307))throw _0xefd307[_0x5db56f(0x2fc)];if(m['isTransformMutationFailure'](_0x45d373))throw _0x45d373[_0x5db56f(0x2fc)];_0x300003[_0x5db56f(0x14d)]({..._0x2442be[_0x1ec7d7],'undoState':_0xefd307[_0x5db56f(0x272)][_0x5db56f(0x16d)],'redoState':_0x45d373[_0x5db56f(0x272)][_0x5db56f(0x16d)]}),_0x27141d=_0xefd307[_0x5db56f(0x17f)],_0x36e65e=_0x45d373[_0x5db56f(0x17f)];}this[_0x5db56f(0x19e)]['setStateCache'](_0x48ba3e,{'history':_0x35c4c3,'collaboration':_0x300003});}};J=Ft([le(0x0,a[_0x581ecc(0x210)](a[_0x581ecc(0x255)])),le(0x1,m[_0x581ecc(0x28b)]),le(0x2,a[_0x581ecc(0x210)](b[_0x581ecc(0x2da)]))],J);var Wt=Object['getOwnPropertyDescriptor'],Yt=(_0x4a20b4,_0x3494b3,_0x487689,_0x5b8a74)=>{const _0x29dce1=_0x581ecc;for(var _0x2befe1=_0x5b8a74>0x1?void 0x0:_0x5b8a74?Wt(_0x3494b3,_0x487689):_0x3494b3,_0x5553b9=_0x4a20b4[_0x29dce1(0x2a0)]-0x1,_0x17384c;_0x5553b9>=0x0;_0x5553b9--)(_0x17384c=_0x4a20b4[_0x5553b9])&&(_0x2befe1=_0x17384c(_0x2befe1)||_0x2befe1);return _0x2befe1;},Ne=(_0x58dcbd,_0x5de607)=>(_0x377c18,_0x306ea2)=>_0x5de607(_0x377c18,_0x306ea2,_0x58dcbd);let Z=class{constructor(_0x1f758f,_0x1494b6){const _0x558945=_0x581ecc;this[_0x558945(0x27b)]=_0x1f758f,this[_0x558945(0x2ae)]=_0x1494b6;}['transformSelections'](_0x52789c){const _0x57de55=_0x581ecc;var _0x435a5d;const _0x41cdcd=this[_0x57de55(0x27b)]['get'](W[_0x57de55(0x26f)]),_0x5163b6=(_0x435a5d=_0x41cdcd[_0x57de55(0x360)]())!=null?_0x435a5d:[];if(_0x5163b6[_0x57de55(0x2a0)]===0x0)return;const _0x51e898=_0x52789c[_0x57de55(0x2c7)],_0xf1a3=[{'id':_0x57de55(0x306),'params':{'unitId':_0x51e898,'actions':null,'textRanges':_0x5163b6}}],_0x2b0645=this[_0x57de55(0x2ae)][_0x57de55(0x2e3)](_0x52789c,_0xf1a3);if(!m[_0x57de55(0x224)](_0x2b0645))throw _0x2b0645[_0x57de55(0x2fc)];const _0x56d72e=_0x2b0645[_0x57de55(0x272)][0x0][_0x57de55(0x16d)][_0x57de55(0x375)];Array[_0x57de55(0x1a6)](_0x56d72e)&&_0x56d72e['length']&&_0x41cdcd[_0x57de55(0x138)](_0x56d72e,{'unitId':_0x51e898,'subUnitId':_0x51e898},!0x1);}};Z=Yt([Ne(0x0,a[_0x581ecc(0x210)](a['Injector'])),Ne(0x1,m[_0x581ecc(0x28b)])],Z);var Vt=Object[_0x581ecc(0x182)],Xt=(_0x2ef5c5,_0x10dca5,_0x3ffa65,_0x45bdb6)=>{const _0x2b4b1f=_0x581ecc;for(var _0x1a7f3a=_0x45bdb6>0x1?void 0x0:_0x45bdb6?Vt(_0x10dca5,_0x3ffa65):_0x10dca5,_0x1e457c=_0x2ef5c5[_0x2b4b1f(0x2a0)]-0x1,_0x56541d;_0x1e457c>=0x0;_0x1e457c--)(_0x56541d=_0x2ef5c5[_0x1e457c])&&(_0x1a7f3a=_0x56541d(_0x1a7f3a)||_0x1a7f3a);return _0x1a7f3a;},N=(_0x3e3b7d,_0x288629)=>(_0x310616,_0x1b421e)=>_0x288629(_0x310616,_0x1b421e,_0x3e3b7d);let Q=class extends a[_0x581ecc(0x1fc)]{constructor(_0x2d32f8,_0x4ce551,_0x1fb48d,_0x4663c6,_0x608709,_0x5a9c22,_0x1dfca9,_0x3e259d){const _0x245eda=_0x581ecc;super(),h(this,_0x245eda(0x340),new d[(_0x245eda(0x205))](u[_0x245eda(0x192)][_0x245eda(0x371)])),(this['_docStateChangeManagerService']=_0x2d32f8,this[_0x245eda(0x2df)]=_0x4ce551,this[_0x245eda(0x31e)]=_0x1fb48d,this[_0x245eda(0x113)]=_0x4663c6,this[_0x245eda(0x24f)]=_0x608709,this[_0x245eda(0x128)]=_0x5a9c22,this['_messageService']=_0x1dfca9,this[_0x245eda(0x2f8)]=_0x3e259d,this[_0x245eda(0x22a)]());}[_0x581ecc(0x22a)](){const _0x5f6833=_0x581ecc;this[_0x5f6833(0x191)](this[_0x5f6833(0x2df)][_0x5f6833(0x1f3)]['subscribe'](_0x396488=>{const _0x166e7e=_0x5f6833,_0x5157ee=this[_0x166e7e(0x19e)][_0x166e7e(0x2f6)][_0x166e7e(0x21f)](_0x24f23c=>{const _0x1e3bb9=_0x166e7e;if(_0x24f23c==null)return;const {unitId:_0x834e22,redoState:_0x484d1c,commandId:_0xf431bc}=_0x24f23c;if(_0x834e22!==_0x396488[_0x1e3bb9(0x2c7)])return;const _0x2852c0={'id':_0xf431bc,'type':a['CommandType'][_0x1e3bb9(0x169)],'params':{'unitId':_0x834e22,'actions':_0x484d1c[_0x1e3bb9(0x209)],'textRanges':null}};_0x396488[_0x1e3bb9(0x292)](_0x2852c0);});if(_0x396488['disposeWithMe'](_0x5157ee),_0x396488 instanceof u[_0x166e7e(0x379)]){const _0x55983e={'onTransformIME':_0x1dcfc1=>this['_docTransformIMECacheService'][_0x166e7e(0x1d9)](_0x1dcfc1),'onTransformState':_0x3e872f=>this['_docTransformStateCacheService'][_0x166e7e(0x2c3)](_0x3e872f),'onTransformSelections':_0x4ee21d=>this[_0x166e7e(0x24f)][_0x166e7e(0x1d8)](_0x4ee21d),'onSyncEditingCollabCursor':_0x9c60da=>this[_0x166e7e(0x128)][_0x166e7e(0x28d)](_0x9c60da),'onTransformRemoteChangesetByIMECache':_0x12bce8=>this[_0x166e7e(0x31e)][_0x166e7e(0x1d7)](_0x12bce8),'onTransformRemoteChangesetByStateCache':_0x5f08b2=>this['_docTransformStateCacheService'][_0x166e7e(0x1d7)](_0x5f08b2)};_0x396488[_0x166e7e(0x27d)](_0x55983e);}}));}};Q=Xt([N(0x0,a['Inject'](b[_0x581ecc(0x2da)])),N(0x1,a[_0x581ecc(0x210)](u[_0x581ecc(0x334)])),N(0x2,a[_0x581ecc(0x210)](z)),N(0x3,a[_0x581ecc(0x210)](J)),N(0x4,a[_0x581ecc(0x210)](Z)),N(0x5,a[_0x581ecc(0x210)](Ce)),N(0x6,T[_0x581ecc(0x2bd)]),N(0x7,a[_0x581ecc(0x210)](a[_0x581ecc(0x2b1)]))],Q);var Gt=Object[_0x581ecc(0x182)],qt=(_0x2e49d5,_0x23a3a0,_0x21e7eb,_0x3621b7)=>{for(var _0xaf3aaa=_0x3621b7>0x1?void 0x0:_0x3621b7?Gt(_0x23a3a0,_0x21e7eb):_0x23a3a0,_0x54abfd=_0x2e49d5['length']-0x1,_0x3f8f9a;_0x54abfd>=0x0;_0x54abfd--)(_0x3f8f9a=_0x2e49d5[_0x54abfd])&&(_0xaf3aaa=_0x3f8f9a(_0xaf3aaa)||_0xaf3aaa);return _0xaf3aaa;},_e=(_0x443d43,_0x5c4af5)=>(_0x9fec3d,_0x4681fc)=>_0x5c4af5(_0x9fec3d,_0x4681fc,_0x443d43);let ge=class extends a[_0x581ecc(0x1fc)]{constructor(_0x5428f0,_0x2e8baf,_0x1f8dea){const _0x5927c6=_0x581ecc;super(),h(this,'_cachedData',new Map()),h(this,_0x5927c6(0x1f4),new Map()),h(this,_0x5927c6(0x201),!0x1),(this[_0x5927c6(0x203)]=_0x5428f0,this[_0x5927c6(0x127)]=_0x2e8baf,this['_revisionService']=_0x1f8dea);}[_0x581ecc(0x1c6)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x5675d9=_0x581ecc;this[_0x5675d9(0x201)]=!0x1;}get[_0x581ecc(0x327)](){const _0x37e3f0=_0x581ecc;return this[_0x37e3f0(0x1f4)];}[_0x581ecc(0x1b0)](){const _0xfa0e07=_0x581ecc;this[_0xfa0e07(0x37c)]()['then'](()=>super[_0xfa0e07(0x1b0)]());}async['loadOfflineData'](_0x292d69){const _0x3c040d=_0x581ecc;return this[_0x3c040d(0x201)]?null:this['_localStorageService'][_0x3c040d(0x351)](u['getLocalCacheKey'](_0x292d69));}async[_0x581ecc(0x19b)](_0x394bd4,_0x344f55){const _0x2c2b25=_0x581ecc;return!!this['_localStorageService'][_0x2c2b25(0x352)](_0x394bd4,_0x344f55);}[_0x581ecc(0x329)](_0x261a90,_0x27cc13,_0x5a4dab,_0x54efa6){const _0x327f8c=_0x581ecc,_0x1eb074=this['_revisionService'][_0x327f8c(0x271)](_0x261a90);this['_cachedData'][_0x327f8c(0x2d0)](_0x261a90,{'unitID':_0x261a90,'type':_0x27cc13,'awaitingChangeset':_0x5a4dab,'mutations':_0x54efa6,'rev':_0x1eb074}),this[_0x327f8c(0x1f4)][_0x327f8c(0x1af)](_0x261a90)||this[_0x327f8c(0x20d)](_0x261a90);}[_0x581ecc(0x20d)](_0x4ffd32){const _0x4bf138=_0x581ecc,_0x44a180=this[_0x4bf138(0x20f)]();_0x44a180===0x0?this[_0x4bf138(0x11b)](_0x4ffd32):this[_0x4bf138(0x1f4)][_0x4bf138(0x2d0)](_0x4ffd32,setTimeout(()=>this[_0x4bf138(0x11b)](_0x4ffd32),_0x44a180));}[_0x581ecc(0x20f)](){const _0x21666a=_0x581ecc;var _0x2c58b8;return(_0x2c58b8=this[_0x21666a(0x203)]['getConfig'](u[_0x21666a(0x2cc)]))!=null?_0x2c58b8:u[_0x21666a(0x1e7)];}[_0x581ecc(0x11b)](_0x976610){const _0x17687b=_0x581ecc,_0x130129=this['_saveTaskMap'][_0x17687b(0x2b8)](_0x976610);return _0x130129!==void 0x0&&window[_0x17687b(0x303)](_0x130129),this[_0x17687b(0x127)][_0x17687b(0x352)](u[_0x17687b(0x368)](_0x976610),this[_0x17687b(0x1ac)][_0x17687b(0x2b8)](_0x976610))[_0x17687b(0x2d2)](()=>this[_0x17687b(0x1f4)]['delete'](_0x976610));}async[_0x581ecc(0x37c)](){const _0x4061db=_0x581ecc,_0x1eda78=[];this[_0x4061db(0x1f4)][_0x4061db(0x1dd)]((_0x2db19c,_0x491c57)=>{const _0x2452d9=_0x4061db;window[_0x2452d9(0x303)](_0x2db19c),_0x1eda78[_0x2452d9(0x11e)](this[_0x2452d9(0x11b)](_0x491c57)[_0x2452d9(0x2d2)](()=>{const _0x173fcf=_0x2452d9;this[_0x173fcf(0x1f4)][_0x173fcf(0x29e)](_0x491c57);}));}),await Promise[_0x4061db(0x304)](_0x1eda78);}};ge=qt([_e(0x0,a[_0x581ecc(0x258)]),_e(0x1,a[_0x581ecc(0x228)]),_e(0x2,a[_0x581ecc(0x210)](m[_0x581ecc(0x2cd)]))],ge);class je extends a[_0x581ecc(0x2e8)]{constructor(){const _0x485ec8=_0x581ecc;super(),h(this,_0x485ec8(0x355)),this['urlChange$']=d['fromEvent'](window,_0x485ec8(0x180))[_0x485ec8(0x37a)](d[_0x485ec8(0x18e)](this[_0x485ec8(0x194)]),d['shareReplay'](0x1),d['mapTo'](void 0x0));}[_0x581ecc(0x2db)](_0x28dc08,_0x5c4596,_0x1a03bc=!0x1){const _0x35ceb5=_0x581ecc,_0x20e598=new URL(window['location'][_0x35ceb5(0x130)]);_0x20e598[_0x35ceb5(0x359)]['set'](_0x28dc08,_0x5c4596),_0x1a03bc?window[_0x35ceb5(0x2ac)][_0x35ceb5(0x342)]('','',_0x20e598['toString']()):window['history'][_0x35ceb5(0x2e2)]('','',_0x20e598[_0x35ceb5(0x16e)]());}[_0x581ecc(0x250)](_0x38379d,_0x13c81a=!0x1){const _0x1065d6=_0x581ecc,_0x5720c1=new URL(window['location']['href']);_0x5720c1[_0x1065d6(0x359)][_0x1065d6(0x29e)](_0x38379d),_0x13c81a?window[_0x1065d6(0x2ac)][_0x1065d6(0x342)]('','',_0x5720c1[_0x1065d6(0x16e)]()):window[_0x1065d6(0x2ac)][_0x1065d6(0x2e2)]('','',_0x5720c1[_0x1065d6(0x16e)]());}['getParam'](_0x5d47bb){const _0x101f32=_0x581ecc;var _0x4b3653;return(_0x4b3653=new URL(window[_0x101f32(0x189)][_0x101f32(0x130)])['searchParams']['get'](_0x5d47bb))!=null?_0x4b3653:void 0x0;}}var Kt=Object['defineProperty'],zt=Object[_0x581ecc(0x182)],Jt=(_0x5a53be,_0x285fbb,_0x2a933)=>_0x285fbb in _0x5a53be?Kt(_0x5a53be,_0x285fbb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a933}):_0x5a53be[_0x285fbb]=_0x2a933,Zt=(_0x2b458f,_0x4bdf73,_0x2b1e88,_0x3d43cc)=>{const _0x4e093a=_0x581ecc;for(var _0x1036e3=_0x3d43cc>0x1?void 0x0:_0x3d43cc?zt(_0x4bdf73,_0x2b1e88):_0x4bdf73,_0x56f99a=_0x2b458f[_0x4e093a(0x2a0)]-0x1,_0x31a138;_0x56f99a>=0x0;_0x56f99a--)(_0x31a138=_0x2b458f[_0x56f99a])&&(_0x1036e3=_0x31a138(_0x1036e3)||_0x1036e3);return _0x1036e3;},he=(_0x1489dd,_0x59ed2d)=>(_0x4fbc59,_0x408ff7)=>_0x59ed2d(_0x4fbc59,_0x408ff7,_0x1489dd),Qt=(_0x5455dc,_0x421ca1,_0x2b13fc)=>Jt(_0x5455dc,_0x421ca1+'',_0x2b13fc);const es=_0x581ecc(0x222);exports[_0x581ecc(0x146)]=class extends a[_0x581ecc(0x13a)]{constructor(_0x3b12b2=Ue,_0x556f8e,_0x4a7dcf,_0xf8ea81){const _0x3da8a0=_0x581ecc;super(),this[_0x3da8a0(0x380)]=_0x3b12b2,this[_0x3da8a0(0x284)]=_0x556f8e,this['_injector']=_0x4a7dcf,this[_0x3da8a0(0x203)]=_0xf8ea81;const {..._0x4e0b32}=a['merge']({},Ue,this[_0x3da8a0(0x380)]);this[_0x3da8a0(0x203)][_0x3da8a0(0x1ec)]($t,_0x4e0b32);}[_0x581ecc(0x190)](){const _0xb5808e=_0x581ecc;this[_0xb5808e(0x25e)](),this[_0xb5808e(0x296)]();}[_0x581ecc(0x1c9)](){this['_registerRenderDependencies']();}[_0x581ecc(0x25e)](){const _0x2f5fe8=_0x581ecc;var _0x3af9b9;const _0x504453=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x2f5fe8(0x395)],{'useClass':G[_0x2f5fe8(0x22b)]}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x2f5fe8(0x38f)]],[Q],[K],[x],[de],[exports[_0x2f5fe8(0x1d2)]]];a[_0x2f5fe8(0x237)](this['_injector'],a[_0x2f5fe8(0x2a1)](_0x504453,(_0x3af9b9=this['_config'])==null?void 0x0:_0x3af9b9['override']));}[_0x581ecc(0x32b)](){const _0x5f5b60=_0x581ecc;this['disposeWithMe'](this[_0x5f5b60(0x284)][_0x5f5b60(0x148)](a['UniverInstanceType'][_0x5f5b60(0x2fa)],[Ie])),this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](a[_0x5f5b60(0x1e1)][_0x5f5b60(0x373)],[ve]));}[_0x581ecc(0x296)](){const _0x4c281f=_0x581ecc;a['touchDependencies'](this[_0x4c281f(0x27b)],[[x],[exports[_0x4c281f(0x38f)]],[Q],[K],[exports[_0x4c281f(0x1d2)]]]);}},Qt(exports[_0x581ecc(0x146)],_0x581ecc(0x264),es),exports[_0x581ecc(0x146)]=Zt([a[_0x581ecc(0x1ba)](u['UniverCollaborationClientPlugin']),he(0x1,p['IRenderManagerService']),he(0x2,a[_0x581ecc(0x210)](a[_0x581ecc(0x255)])),he(0x3,a['IConfigService'])],exports['UniverCollaborationClientUIPlugin']);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x14a5f2,_0x424796,_0x30abe1,_0x4f9385)=>{const _0x397a0c=_0x581ecc;for(var _0x36a7f6=_0x4f9385>0x1?void 0x0:_0x4f9385?ts(_0x424796,_0x30abe1):_0x424796,_0x36c5ed=_0x14a5f2[_0x397a0c(0x2a0)]-0x1,_0x1e10d1;_0x36c5ed>=0x0;_0x36c5ed--)(_0x1e10d1=_0x14a5f2[_0x36c5ed])&&(_0x36a7f6=_0x1e10d1(_0x36a7f6)||_0x36a7f6);return _0x36a7f6;},F=(_0x1cc040,_0x582e9f)=>(_0x26a756,_0x37ca57)=>_0x582e9f(_0x26a756,_0x37ca57,_0x1cc040);exports[_0x581ecc(0x126)]=class extends u['CollaborationSocketService']{constructor(_0x4f2997,_0x3d3d8c,_0x2bd126,_0x5df10b,_0x2a62c0){super(_0x4f2997,_0x3d3d8c,_0x2bd126,_0x5df10b,_0x2a62c0);}async[_0x581ecc(0x37d)](_0x309bc2){const _0x2d7966=_0x581ecc,_0xceda78=await this[_0x2d7966(0x315)](),_0xa7c8ef=this[_0x2d7966(0x251)](_0x309bc2,_0xceda78);return this['_doCreateSocket'](_0xa7c8ef);}['_createSocketURL'](_0x5ea886,_0x3b9de7){const _0x1fa4ba=_0x581ecc,_0x3c0866=typeof window>'u'?new URL(_0x5ea886):new URL(_0x5ea886,window[_0x1fa4ba(0x189)]['origin']);_0x3c0866[_0x1fa4ba(0x359)][_0x1fa4ba(0x2d0)](_0x1fa4ba(0x19a),_0x3b9de7);const _0x7c3fa2=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1fa4ba(0x189)][_0x1fa4ba(0x226)]);return _0x7c3fa2[_0x1fa4ba(0x2b8)]('runId')&&_0x3c0866[_0x1fa4ba(0x359)][_0x1fa4ba(0x2d0)](_0x1fa4ba(0x211),_0x7c3fa2[_0x1fa4ba(0x2b8)]('runId')),_0x3c0866[_0x1fa4ba(0x16e)]();}async[_0x581ecc(0x315)](){const _0x55e522=_0x581ecc;var _0x103027,_0x3b59ec,_0x1ebb21;const _0x1ca812=this[_0x55e522(0x203)][_0x55e522(0x1fb)](u[_0x55e522(0x330)]),_0x5f58aa=(_0x103027=_0x1ca812==null?void 0x0:_0x1ca812['wsSessionTicketUrl'])!=null?_0x103027:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x1ebb21=(_0x3b59ec=(await this[_0x55e522(0x1f0)][_0x55e522(0x2b8)](_0x5f58aa,{'headers':{'Content-Type':_0x55e522(0x1a0)}}))['body'])==null?void 0x0:_0x3b59ec[_0x55e522(0x1b4)])!=null?_0x1ebb21:'';}},exports['BrowserCollaborationSocketService']=ss([F(0x0,a['Inject'](a[_0x581ecc(0x255)])),F(0x1,a[_0x581ecc(0x210)](G[_0x581ecc(0x1e5)])),F(0x2,a['IConfigService']),F(0x3,a[_0x581ecc(0x186)]),F(0x4,m[_0x581ecc(0x29b)])],exports[_0x581ecc(0x126)]);const Me=0x7530,Le=_0x581ecc(0x30d);class is extends a[_0x581ecc(0x1fc)]{constructor(){const _0x1885ac=_0x581ecc;super(),h(this,_0x1885ac(0x18c),a[_0x1885ac(0x1f7)]()),h(this,_0x1885ac(0x115),new Set()),h(this,_0x1885ac(0x1bc),new Map()),h(this,_0x1885ac(0x392),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x1885ac(0x134),new Map()),this[_0x1885ac(0x1f1)]();}[_0x581ecc(0x1b0)](){const _0x272080=_0x581ecc;super[_0x272080(0x1b0)](),this[_0x272080(0x2f5)][_0x272080(0x1dd)]((_0x3dcd12,_0x11e62b)=>this[_0x272080(0x1d4)](_0x11e62b)),this['_heartbeatTimer']&&window[_0x272080(0x119)](this['_heartbeatTimer']);}[_0x581ecc(0x177)](_0x500ef5){const _0x29b4e0=_0x581ecc;return this[_0x29b4e0(0x279)](_0x500ef5)[_0x29b4e0(0x37a)](d['distinctUntilChanged']());}[_0x581ecc(0x269)](_0x38f293){const _0x332981=_0x581ecc;this[_0x332981(0x115)]['size']===0x0&&this[_0x332981(0x2d5)](),this[_0x332981(0x115)][_0x332981(0x1db)](_0x38f293),this[_0x332981(0x2de)]({'type':0x0,'memberID':this[_0x332981(0x18c)],'unitIDs':[_0x38f293],'isForwarded':!0x1});}[_0x581ecc(0x309)](_0x31d7cb){const _0x116663=_0x581ecc;this[_0x116663(0x115)][_0x116663(0x29e)](_0x31d7cb),this[_0x116663(0x115)]['size']===0x0&&this[_0x116663(0x392)]&&window[_0x116663(0x119)](this[_0x116663(0x392)]);}[_0x581ecc(0x1f1)](){const _0xd9c81f=_0x581ecc;this[_0xd9c81f(0x191)](a[_0xd9c81f(0x354)](d[_0xd9c81f(0x262)](window,_0xd9c81f(0x37b))[_0xd9c81f(0x21f)](_0x34a7db=>{const _0x459d39=_0xd9c81f;if(_0x34a7db['key']!==Le||!_0x34a7db['newValue'])return;const _0x24e8f8=JSON[_0x459d39(0x2b5)](_0x34a7db[_0x459d39(0x2fe)]);this[_0x459d39(0x1e4)](_0x24e8f8);}))),window[_0xd9c81f(0x164)](_0xd9c81f(0x1ae),()=>this[_0xd9c81f(0x2de)]({'type':0x1,'memberID':this[_0xd9c81f(0x18c)],'unitIDs':Array[_0xd9c81f(0x2d4)](this[_0xd9c81f(0x115)])}));}[_0x581ecc(0x1e4)](_0x1f959a){const _0x1146db=_0x581ecc;switch(_0x1f959a[_0x1146db(0x121)]){case 0x0:this[_0x1146db(0x316)](_0x1f959a);break;case 0x1:this[_0x1146db(0x326)](_0x1f959a);break;case 0x2:this[_0x1146db(0x215)](_0x1f959a);break;}}[_0x581ecc(0x316)](_0x5052f6){const _0xaa82f0=_0x581ecc,{unitIDs:_0x2fe2d2,memberID:_0xf6f340,isForwarded:_0x211b81}=_0x5052f6;_0x2fe2d2[_0xaa82f0(0x1dd)](_0x595cec=>{const _0x75391a=_0xaa82f0;if(!_0x211b81&&this[_0x75391a(0x1bc)]['has'](_0x595cec)&&this['_ensureSubject'](_0x595cec)['next'](u[_0x75391a(0x2a6)]['OTHER_CLIENTS_EDITING']),!this[_0x75391a(0x1bc)][_0x75391a(0x1af)](_0x595cec)||!this[_0x75391a(0x1bc)]['get'](_0x595cec)[_0x75391a(0x1af)](_0xf6f340)){const _0x2157f7=this['_unitOnClients'][_0x75391a(0x2b8)](_0x595cec)||new Set();_0x2157f7[_0x75391a(0x1db)](_0xf6f340),this[_0x75391a(0x1bc)][_0x75391a(0x2d0)](_0x595cec,_0x2157f7),this[_0x75391a(0x181)](_0xf6f340);}}),_0x211b81||this[_0xaa82f0(0x2de)]({'type':0x0,'memberID':this[_0xaa82f0(0x18c)],'unitIDs':[...this[_0xaa82f0(0x115)]],'isForwarded':!0x0});}[_0x581ecc(0x181)](_0x4f1e75){const _0x338409=_0x581ecc;this[_0x338409(0x1d4)](_0x4f1e75);const _0x53dbf7=window[_0x338409(0x396)](()=>{const _0x527ed6=_0x338409;this['_unitOnClients'][_0x527ed6(0x1dd)](_0x3fd798=>{const _0x2ae49c=_0x527ed6;_0x3fd798[_0x2ae49c(0x29e)](_0x4f1e75);});},Me*0x2);this['_clearOtherTimers'][_0x338409(0x2d0)](_0x4f1e75,_0x53dbf7);}[_0x581ecc(0x1d4)](_0x4f081d){const _0x262fe6=_0x581ecc;if(this[_0x262fe6(0x2f5)][_0x262fe6(0x1af)](_0x4f081d)){const _0x3256f3=this[_0x262fe6(0x2f5)][_0x262fe6(0x2b8)](_0x4f081d);_0x3256f3&&window['clearTimeout'](_0x3256f3),this[_0x262fe6(0x2f5)][_0x262fe6(0x2d0)](_0x4f081d,null);}}[_0x581ecc(0x326)](_0x458398){const _0x4db21d=_0x581ecc,{memberID:_0x6be2e2,unitIDs:_0x32c80c}=_0x458398;_0x32c80c['forEach'](_0x448a32=>{const _0x39220e=_0x17f3;var _0x1fe047;const _0x444c22=this['_unitOnClients'][_0x39220e(0x2b8)](_0x448a32);_0x444c22&&(_0x444c22[_0x39220e(0x29e)](_0x6be2e2),(_0x1fe047=this[_0x39220e(0x279)](_0x448a32))==null||_0x1fe047['next'](_0x444c22[_0x39220e(0x12d)]===0x0?u[_0x39220e(0x2a6)][_0x39220e(0x372)]:u[_0x39220e(0x2a6)]['OTHER_CLIENTS_EDITING']));}),this[_0x4db21d(0x1d4)](_0x6be2e2);}[_0x581ecc(0x215)](_0x1fd82b){const _0xe28d6=_0x581ecc;this['_scheduleClearOtherTimer'](_0x1fd82b[_0xe28d6(0x218)]);}[_0x581ecc(0x2de)](_0xdf5571){const _0x2fbd8b=_0x581ecc;localStorage['setItem'](Le,JSON[_0x2fbd8b(0x33c)](_0xdf5571));}['_scheduleHeartbeat'](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x380eb9=_0x17f3;this[_0x380eb9(0x2de)]({'type':0x2,'memberID':this[_0x380eb9(0x18c)]});},Me);}[_0x581ecc(0x279)](_0x6e88e0){const _0xf1088a=_0x581ecc;return this[_0xf1088a(0x134)][_0xf1088a(0x1af)](_0x6e88e0)||this['_unitStatus']['set'](_0x6e88e0,new d['BehaviorSubject'](u[_0xf1088a(0x2a6)]['NO_OTHER_CLIENTS_EDITING'])),this[_0xf1088a(0x134)][_0xf1088a(0x2b8)](_0x6e88e0);}}var Be=(_0x30484d=>(_0x30484d[_0x30484d[_0x581ecc(0x2ba)]=0x0]=_0x581ecc(0x2ba),_0x30484d[_0x30484d['OK']=0x1]='OK',_0x30484d[_0x30484d[_0x581ecc(0x357)]=0x2]=_0x581ecc(0x357),_0x30484d[_0x30484d[_0x581ecc(0x111)]=0x3]='PERMISSION_DENIED',_0x30484d[_0x30484d[_0x581ecc(0x280)]=0x4]=_0x581ecc(0x280),_0x30484d[_0x30484d[_0x581ecc(0x377)]=0x5]=_0x581ecc(0x377),_0x30484d[_0x30484d[_0x581ecc(0x2ef)]=0x6]=_0x581ecc(0x2ef),_0x30484d[_0x30484d[_0x581ecc(0x2bb)]=0x7]='INVALID_ARGUMENT',_0x30484d[_0x30484d[_0x581ecc(0x2ce)]=0x8]='TOO_MANY_REQUESTS',_0x30484d[_0x30484d[_0x581ecc(0x28c)]=0x9]=_0x581ecc(0x28c),_0x30484d[_0x30484d[_0x581ecc(0x370)]=0xa]='LOGIN_FAILED',_0x30484d[_0x30484d[_0x581ecc(0x268)]=0x1389]=_0x581ecc(0x268),_0x30484d[_0x30484d[_0x581ecc(0x387)]=0x1771]=_0x581ecc(0x387),_0x30484d[_0x30484d[_0x581ecc(0x36e)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x30484d[_0x30484d[_0x581ecc(0x34f)]=0x1773]=_0x581ecc(0x34f),_0x30484d[_0x30484d[_0x581ecc(0x2e7)]=0x1b59]='APPLY_REJECT',_0x30484d[_0x30484d[_0x581ecc(0x162)]=0x1b5a]=_0x581ecc(0x162),_0x30484d[_0x30484d[_0x581ecc(0x150)]=0x1b5b]=_0x581ecc(0x150),_0x30484d[_0x30484d[_0x581ecc(0x183)]=0x1b5c]=_0x581ecc(0x183),_0x30484d[_0x30484d[_0x581ecc(0x30b)]=0x1b5d]=_0x581ecc(0x30b),_0x30484d[_0x30484d[_0x581ecc(0x253)]=0x1f41]=_0x581ecc(0x253),_0x30484d[_0x30484d['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x581ecc(0x12f),_0x30484d[_0x30484d['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x581ecc(0x299),_0x30484d[_0x30484d[_0x581ecc(0x161)]=0x232b]=_0x581ecc(0x161),_0x30484d[_0x30484d[_0x581ecc(0x17b)]=0x232c]=_0x581ecc(0x17b),_0x30484d[_0x30484d[_0x581ecc(0x275)]=0x232d]=_0x581ecc(0x275),_0x30484d[_0x30484d[_0x581ecc(0x1fe)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x30484d[_0x30484d[_0x581ecc(0x302)]=0x2712]=_0x581ecc(0x302),_0x30484d[_0x30484d[_0x581ecc(0x198)]=0x2713]=_0x581ecc(0x198),_0x30484d[_0x30484d[_0x581ecc(0x26c)]=0x2714]=_0x581ecc(0x26c),_0x30484d[_0x30484d['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x581ecc(0x1de),_0x30484d[_0x30484d[_0x581ecc(0x120)]=0x271b]=_0x581ecc(0x120),_0x30484d[_0x30484d[_0x581ecc(0x257)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x30484d[_0x30484d[_0x581ecc(0x14b)]=0x2ee1]=_0x581ecc(0x14b),_0x30484d[_0x30484d[_0x581ecc(0x159)]=0x2ee2]=_0x581ecc(0x159),_0x30484d[_0x30484d['INVITE_CODE_REQUIRED']=0x2ee3]=_0x581ecc(0x38a),_0x30484d[_0x30484d[_0x581ecc(0x2a7)]=0x2ee4]=_0x581ecc(0x2a7),_0x30484d[_0x30484d[_0x581ecc(0x384)]=0x2ee5]=_0x581ecc(0x384),_0x30484d[_0x30484d[_0x581ecc(0x265)]=0x32c9]=_0x581ecc(0x265),_0x30484d[_0x30484d['MOBILE_HAS_BEEN_BOUND']=0x32ca]=_0x581ecc(0x286),_0x30484d[_0x30484d['EMAIL_HAS_BEEN_BOUND']=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x30484d[_0x30484d['UNRECOGNIZED']=-0x1]=_0x581ecc(0x23d),_0x30484d))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x327e26,_0x5748f2,_0x1af564,_0x2034e2)=>{const _0x9ea957=_0x581ecc;for(var _0x43d11e=_0x2034e2>0x1?void 0x0:_0x2034e2?ns(_0x5748f2,_0x1af564):_0x5748f2,_0x5ea06e=_0x327e26[_0x9ea957(0x2a0)]-0x1,_0x35df26;_0x5ea06e>=0x0;_0x5ea06e--)(_0x35df26=_0x327e26[_0x5ea06e])&&(_0x43d11e=_0x35df26(_0x43d11e)||_0x43d11e);return _0x43d11e;},ue=(_0x266a0e,_0x23cc00)=>(_0x26463e,_0x50b454)=>_0x23cc00(_0x26463e,_0x50b454,_0x266a0e);exports[_0x581ecc(0x238)]=class extends a['Disposable']{constructor(_0x219d7d,_0x318c6e,_0x15876c){const _0x2692ff=_0x581ecc;super(),this[_0x2692ff(0x365)]=_0x219d7d,this[_0x2692ff(0x1f0)]=_0x318c6e,this['_configService']=_0x15876c;}async['runOnServer'](_0x44fa05,_0x2803b7,_0x4f2db0,..._0x3e50ea){const _0xa99bc9=_0x581ecc;var _0x255b63,_0x233d1f,_0x14e86b,_0x57618c;const _0x4f8345=this[_0xa99bc9(0x365)][_0xa99bc9(0x254)]();if(!_0x4f8345)throw new Error(_0xa99bc9(0x163));const _0xafea56=((_0x255b63=this[_0xa99bc9(0x203)][_0xa99bc9(0x1fb)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x255b63:u[_0xa99bc9(0x23b)])+'/'+_0x44fa05+_0xa99bc9(0x346)+_0x2803b7,_0x4b59a9=new URL(window[_0xa99bc9(0x189)][_0xa99bc9(0x130)]),_0x46f53d={'scriptId':_0x44fa05,'runId':(_0x233d1f=_0x4b59a9[_0xa99bc9(0x359)][_0xa99bc9(0x2b8)](_0xa99bc9(0x211)))!=null?_0x233d1f:'','function':_0x2803b7,'unitId':_0x4f8345[_0xa99bc9(0x274)](),'argsOfFunction':JSON['stringify'](_0x3e50ea),'invokeId':(_0x14e86b=_0x4f2db0[_0xa99bc9(0x25d)])!=null?_0x14e86b:'','executionId':(_0x57618c=_0x4f2db0[_0xa99bc9(0x1fa)])!=null?_0x57618c:''};try{const _0x50a983=await this['_httpService'][_0xa99bc9(0x35d)](_0xafea56,{'body':_0x46f53d});return _0x50a983[_0xa99bc9(0x206)][_0xa99bc9(0x2fc)]&&_0x50a983[_0xa99bc9(0x206)][_0xa99bc9(0x2fc)][_0xa99bc9(0x1cb)]!==Be['OK']?'Failed':_0x50a983[_0xa99bc9(0x206)][_0xa99bc9(0x390)];}catch{return'Failed';}}},exports[_0x581ecc(0x238)]=rs([ue(0x0,a[_0x581ecc(0x2f9)]),ue(0x1,a[_0x581ecc(0x210)](G[_0x581ecc(0x1e5)])),ue(0x2,a[_0x581ecc(0x258)])],exports[_0x581ecc(0x238)]),exports['CollaborationStatusDisplay']=xe,exports[_0x581ecc(0x2d6)]=be,exports[_0x581ecc(0x38e)]=we,exports[_0x581ecc(0x310)]=is,exports[_0x581ecc(0x1ed)]=je;
@@ -1 +1 @@
1
- 'use strict';const _0x4bcdbe=_0x3a70;(function(_0x5ba6fd,_0x11f0f0){const _0xc252ac=_0x3a70,_0x1ec7e2=_0x5ba6fd();while(!![]){try{const _0x374cea=-parseInt(_0xc252ac(0x199))/0x1*(-parseInt(_0xc252ac(0x189))/0x2)+parseInt(_0xc252ac(0x18b))/0x3+parseInt(_0xc252ac(0x197))/0x4*(parseInt(_0xc252ac(0x191))/0x5)+-parseInt(_0xc252ac(0x18c))/0x6+parseInt(_0xc252ac(0x196))/0x7+parseInt(_0xc252ac(0x185))/0x8+-parseInt(_0xc252ac(0x18d))/0x9;if(_0x374cea===_0x11f0f0)break;else _0x1ec7e2['push'](_0x1ec7e2['shift']());}catch(_0x2ee3be){_0x1ec7e2['push'](_0x1ec7e2['shift']());}}}(_0x56bc,0x1b305));function _0x56bc(){const _0xf118e8=['Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','exports','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','35DasVei','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Authentication\x20Error','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','340543DICGhi','29572zhgIfX','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1rrbnNX','Connection\x20failed,\x20please\x20check\x20your\x20network.','Edit\x20conflicts','429296NGqNAH','Syncing...','Synced','Collaboration\x20Conflict','268478CjVQHw','Click\x20to\x20Reconnect','24165ogQNCo','775698TUliiU','501372DzcAGy'];_0x56bc=function(){return _0xf118e8;};return _0x56bc();}function _0x3a70(_0x35e80b,_0xd45889){const _0x56bce5=_0x56bc();return _0x3a70=function(_0x3a7060,_0xd9a7ff){_0x3a7060=_0x3a7060-0x184;let _0x51f0cc=_0x56bce5[_0x3a7060];return _0x51f0cc;},_0x3a70(_0x35e80b,_0xd45889);}const e={'collab-client':{'tooltip':{'reconnect':_0x4bcdbe(0x18a)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x4bcdbe(0x184),'notCollab':'Local\x20file','synced':_0x4bcdbe(0x187),'syncing':_0x4bcdbe(0x186),'offline':_0x4bcdbe(0x192)},'session':{'connection-failed':_0x4bcdbe(0x19a),'will-retry':_0x4bcdbe(0x193),'room-full':_0x4bcdbe(0x18e),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x4bcdbe(0x188),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x4bcdbe(0x194),'content':_0x4bcdbe(0x195)},'collaboration':{'single-unit':{'warning':_0x4bcdbe(0x198)},'closeRoom':_0x4bcdbe(0x190)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};module[_0x4bcdbe(0x18f)]=e;
1
+ 'use strict';function _0x19c6(){const _0x439c63=['125868buirCb','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','202632ElmwWt','Edit\x20conflicts','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','2086215xQspff','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.','Click\x20to\x20Reconnect','301zeQaQq','Connection\x20failed,\x20please\x20check\x20your\x20network.','Collaboration\x20Conflict','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','632790wpgQqg','193697vzVQbz','exports','1096322ZgzGOk','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','1031460TnXUXq'];_0x19c6=function(){return _0x439c63;};return _0x19c6();}const _0xfaa7f5=_0x58e1;function _0x58e1(_0x4f082a,_0x245b7d){const _0x19c628=_0x19c6();return _0x58e1=function(_0x58e1b1,_0x183138){_0x58e1b1=_0x58e1b1-0x158;let _0x5c6263=_0x19c628[_0x58e1b1];return _0x5c6263;},_0x58e1(_0x4f082a,_0x245b7d);}(function(_0x2d05d4,_0x22370c){const _0x2c990a=_0x58e1,_0x3909ab=_0x2d05d4();while(!![]){try{const _0x279e0a=-parseInt(_0x2c990a(0x166))/0x1+-parseInt(_0x2c990a(0x168))/0x2+parseInt(_0x2c990a(0x165))/0x3+parseInt(_0x2c990a(0x158))/0x4+-parseInt(_0x2c990a(0x15e))/0x5+parseInt(_0x2c990a(0x159))/0x6+-parseInt(_0x2c990a(0x161))/0x7*(-parseInt(_0x2c990a(0x15b))/0x8);if(_0x279e0a===_0x22370c)break;else _0x3909ab['push'](_0x3909ab['shift']());}catch(_0x3c279b){_0x3909ab['push'](_0x3909ab['shift']());}}}(_0x19c6,0x667eb));const e={'collab-client':{'tooltip':{'reconnect':_0xfaa7f5(0x160)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0xfaa7f5(0x15c),'notCollab':'Local\x20file','synced':'Synced','syncing':'Syncing...','offline':_0xfaa7f5(0x15a)},'session':{'connection-failed':_0xfaa7f5(0x162),'will-retry':_0xfaa7f5(0x164),'room-full':_0xfaa7f5(0x169),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0xfaa7f5(0x163),'content':_0xfaa7f5(0x15f)},'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':_0xfaa7f5(0x15d)},'closeRoom':_0xfaa7f5(0x16a)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};module[_0xfaa7f5(0x167)]=e;