@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505231607 → 0.7.0-nightly.202505251606

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 _0x1817f9=_0x6df2;(function(_0x1bc15a,_0x4f46de){const _0x55e7ec=_0x6df2,_0x3a0cc1=_0x1bc15a();while(!![]){try{const _0x4402ad=-parseInt(_0x55e7ec(0xf4))/0x1*(parseInt(_0x55e7ec(0xec))/0x2)+parseInt(_0x55e7ec(0xea))/0x3+parseInt(_0x55e7ec(0xed))/0x4*(parseInt(_0x55e7ec(0xf1))/0x5)+-parseInt(_0x55e7ec(0xf0))/0x6+parseInt(_0x55e7ec(0xe9))/0x7+-parseInt(_0x55e7ec(0xf5))/0x8+parseInt(_0x55e7ec(0xee))/0x9;if(_0x4402ad===_0x4f46de)break;else _0x3a0cc1['push'](_0x3a0cc1['shift']());}catch(_0x2ac868){_0x3a0cc1['push'](_0x3a0cc1['shift']());}}}(_0x1a4c,0x7b05b));function _0x1a4c(){const _0xfc81bd=['53ecQqzv','7012144gFQQZN','runOnServer','2983309ypgnjH','2505024IydWGM','RemoteUniscriptService','36646KUfMUj','4IXlpYi','12594690ivxswU','FUniver','2302920fDKQJF','373755rjApyl','_injector','@univerjs-pro/collaboration-client-ui'];_0x1a4c=function(){return _0xfc81bd;};return _0x1a4c();}const t=require(_0x1817f9(0xf3)),e=require('@univerjs/core/facade');class c extends e[_0x1817f9(0xef)]{[_0x1817f9(0xe8)](_0x34ceb1,_0x239ab2,..._0x43ce03){const _0x2783a2=_0x1817f9;return this[_0x2783a2(0xf2)]['get'](t[_0x2783a2(0xeb)])['runOnServer'](_0x34ceb1,_0x239ab2,{},..._0x43ce03);}}function _0x6df2(_0x410be8,_0x167436){const _0x1a4cb7=_0x1a4c();return _0x6df2=function(_0x6df2f,_0x38a371){_0x6df2f=_0x6df2f-0xe8;let _0xf4d360=_0x1a4cb7[_0x6df2f];return _0xf4d360;},_0x6df2(_0x410be8,_0x167436);}e[_0x1817f9(0xef)]['extend'](c);
1
+ 'use strict';function _0x1c1e(){const _0x4b2152=['FUniver','_injector','3535510WkLLnM','2305247EAHAZn','248ilFsQm','6498549DVLemt','extend','26159PSpgyL','6BourTz','4937608ppTwpu','5581490FRpqGN','runOnServer','@univerjs-pro/collaboration-client-ui','74PojyZz','get','18666QUgBfR'];_0x1c1e=function(){return _0x4b2152;};return _0x1c1e();}function _0x191c(_0x408ee3,_0x3dcb74){const _0x1c1eb7=_0x1c1e();return _0x191c=function(_0x191c2e,_0x3a76c1){_0x191c2e=_0x191c2e-0x1a7;let _0x23542e=_0x1c1eb7[_0x191c2e];return _0x23542e;},_0x191c(_0x408ee3,_0x3dcb74);}const _0x5f4281=_0x191c;(function(_0x15bf30,_0x899a8e){const _0x1b24d2=_0x191c,_0x2b4b28=_0x15bf30();while(!![]){try{const _0x16840c=parseInt(_0x1b24d2(0x1b5))/0x1*(parseInt(_0x1b24d2(0x1ab))/0x2)+parseInt(_0x1b24d2(0x1ad))/0x3*(parseInt(_0x1b24d2(0x1b2))/0x4)+parseInt(_0x1b24d2(0x1b0))/0x5+-parseInt(_0x1b24d2(0x1b6))/0x6*(-parseInt(_0x1b24d2(0x1b1))/0x7)+-parseInt(_0x1b24d2(0x1a7))/0x8+-parseInt(_0x1b24d2(0x1b3))/0x9+-parseInt(_0x1b24d2(0x1a8))/0xa;if(_0x16840c===_0x899a8e)break;else _0x2b4b28['push'](_0x2b4b28['shift']());}catch(_0x206ddf){_0x2b4b28['push'](_0x2b4b28['shift']());}}}(_0x1c1e,0x78473));const t=require(_0x5f4281(0x1aa)),e=require('@univerjs/core/facade');class c extends e['FUniver']{[_0x5f4281(0x1a9)](_0x1220e5,_0x3200ef,..._0xbbd173){const _0x20bac7=_0x5f4281;return this[_0x20bac7(0x1af)][_0x20bac7(0x1ac)](t['RemoteUniscriptService'])['runOnServer'](_0x1220e5,_0x3200ef,{},..._0xbbd173);}}e[_0x5f4281(0x1ae)][_0x5f4281(0x1b4)](c);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x16f785=_0x2ff8;(function(_0x16a99d,_0x5488bf){const _0x96d581=_0x2ff8,_0x3ee3e5=_0x16a99d();while(!![]){try{const _0x31825e=-parseInt(_0x96d581(0x33e))/0x1*(-parseInt(_0x96d581(0x155))/0x2)+parseInt(_0x96d581(0x2dd))/0x3*(parseInt(_0x96d581(0x1ce))/0x4)+parseInt(_0x96d581(0x17e))/0x5+parseInt(_0x96d581(0x1ec))/0x6*(parseInt(_0x96d581(0x1e5))/0x7)+-parseInt(_0x96d581(0x390))/0x8+-parseInt(_0x96d581(0x211))/0x9*(parseInt(_0x96d581(0x2a4))/0xa)+parseInt(_0x96d581(0x2f7))/0xb;if(_0x31825e===_0x5488bf)break;else _0x3ee3e5['push'](_0x3ee3e5['shift']());}catch(_0x367f2c){_0x3ee3e5['push'](_0x3ee3e5['shift']());}}}(_0x272c,0xb3506));var Ve=Object[_0x16f785(0x240)],Xe=(_0x1a8f89,_0x4296b1,_0x4a7bb1)=>_0x4296b1 in _0x1a8f89?Ve(_0x1a8f89,_0x4296b1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a7bb1}):_0x1a8f89[_0x4296b1]=_0x4a7bb1,h=(_0x2d59cd,_0x57012e,_0x5c6177)=>Xe(_0x2d59cd,typeof _0x57012e!=_0x16f785(0x35f)?_0x57012e+'':_0x57012e,_0x5c6177);Object[_0x16f785(0x240)](exports,Symbol[_0x16f785(0x32a)],{'value':_0x16f785(0x34c)});const u=require('@univerjs-pro/collaboration-client'),a=require('@univerjs/core'),p=require('@univerjs/engine-render'),G=require(_0x16f785(0x342)),b=require(_0x16f785(0x2e6)),Ge=require('@univerjs/drawing'),d=require(_0x16f785(0x224)),Y=require(_0x16f785(0x267)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x16f785(0x3a1)),g=require('@univerjs/sheets'),$=require(_0x16f785(0x1f3)),X=require('@univerjs/sheets-ui'),P=require(_0x16f785(0x389)),T=require('@univerjs/ui'),D=require(_0x16f785(0x1a4)),M=require('react'),Ke=require(_0x16f785(0x249));var qe=Object['getOwnPropertyDescriptor'],ze=(_0x51615e,_0x15e358,_0x2a4b52,_0xbd20e4)=>{const _0x2bf844=_0x16f785;for(var _0x4ca0ff=_0xbd20e4>0x1?void 0x0:_0xbd20e4?qe(_0x15e358,_0x2a4b52):_0x15e358,_0x2e3674=_0x51615e[_0x2bf844(0x378)]-0x1,_0x120a7e;_0x2e3674>=0x0;_0x2e3674--)(_0x120a7e=_0x51615e[_0x2e3674])&&(_0x4ca0ff=_0x120a7e(_0x4ca0ff)||_0x4ca0ff);return _0x4ca0ff;},Te=(_0x2a156e,_0x17fb9e)=>(_0x3eb51e,_0x2f3a06)=>_0x17fb9e(_0x3eb51e,_0x2f3a06,_0x2a156e);let de=class extends a[_0x16f785(0x191)]{constructor(_0x942d09,_0x5b09c9){const _0x32aea7=_0x16f785;super(),this['_docClipboardService']=_0x942d09,this['_imageIoService']=_0x5b09c9,this[_0x32aea7(0x39e)]();}[_0x16f785(0x39e)](){const _0x33fbee=_0x16f785,_0x225b24=this;this[_0x33fbee(0x3b2)](this['_docClipboardService']['addClipboardHook']({'onBeforePasteImage':async _0x4d59d9=>{const _0x5cf6f0=_0x33fbee,_0x118428=await _0x225b24['_imageIoService'][_0x5cf6f0(0x353)](_0x4d59d9);return _0x118428?{'source':_0x118428[_0x5cf6f0(0x364)],'imageSourceType':_0x118428['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b[_0x16f785(0x30e)]),Te(0x1,Ge[_0x16f785(0x150)])],de);const Oe=[_0x16f785(0x1da),_0x16f785(0x328),'green.600',_0x16f785(0x1f6),_0x16f785(0x394),'yellow.400'];class me extends a[_0x16f785(0x1c7)]{constructor(){const _0x3bf336=_0x16f785;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x3bf336(0x245),0x0);}[_0x16f785(0x2a3)](_0x2c62da){const _0x3aa64b=_0x16f785;if(this['_assignedColors'][_0x3aa64b(0x13f)](_0x2c62da))return this[_0x3aa64b(0x286)][_0x3aa64b(0x22c)](_0x2c62da);const _0x4a22a9=Oe[this[_0x3aa64b(0x245)]];return this[_0x3aa64b(0x245)]=(this[_0x3aa64b(0x245)]+0x1)%Oe[_0x3aa64b(0x378)],this['_assignedColors'][_0x3aa64b(0x2fc)](_0x2c62da,_0x4a22a9),_0x4a22a9;}}function Pe(_0x19a59e){let _0x20641a='';for(const _0x5289db of _0x19a59e){const {startOffset:_0x5982d0,endOffset:_0x1852d4,isActive:_0xb2e67,rangeType:_0x94f2df,segmentId:_0xe02c00,segmentPage:_0xaf81c1}=_0x5289db;_0x20641a['length']&&(_0x20641a+=','),_0x20641a+=_0x5982d0+':'+_0x1852d4+':'+(_0xb2e67?'1':'0')+':'+_0x94f2df+':'+_0xe02c00+':'+_0xaf81c1;}return _0x20641a;}function Je(_0x525541){const _0x288093=_0x16f785,_0x2cf86f=_0x525541[_0x288093(0x303)](','),_0x1d607d=[];for(const _0x3ea9de of _0x2cf86f){const [_0x513919,_0xb3832b,_0x475747,_0x14b67c,_0x401088,_0x1a1a7a]=_0x3ea9de[_0x288093(0x303)](':');_0x1d607d['push']({'startOffset':Number(_0x513919),'endOffset':Number(_0xb3832b),'collapsed':_0x513919===_0xb3832b,'isActive':_0x475747==='1','rangeType':_0x14b67c===a['DOC_RANGE_TYPE'][_0x288093(0x2eb)]?a[_0x288093(0x354)][_0x288093(0x2eb)]:a[_0x288093(0x354)]['RECT'],'segmentId':typeof _0x401088==_0x288093(0x330)?String(_0x401088):'','segmentPage':Number(_0x1a1a7a!=null?_0x1a1a7a:-0x1)});}return _0x1d607d[_0x288093(0x221)](_0x213009=>_0x213009[_0x288093(0x369)])||(_0x1d607d[0x0][_0x288093(0x369)]=!0x0),_0x1d607d;}class Ce extends a[_0x16f785(0x191)]{constructor(){const _0x5c7526=_0x16f785;super(...arguments),h(this,'_collabCursorState$',new d['BehaviorSubject'](null)),h(this,_0x5c7526(0x17b),this[_0x5c7526(0x2a2)]['asObservable']());}['syncEditingCollabCursor'](_0x147819){const _0x5d4e13=_0x16f785,{unitID:_0xdea06,memberID:_0x73f6d8,textRanges:_0x31d87d}=_0x147819,_0x1ec7a5=Pe(_0x31d87d);if(_0x1ec7a5==='')return;const _0x58f71a={'unitID':_0xdea06,'memberID':_0x73f6d8,'selection':_0x1ec7a5};this[_0x5d4e13(0x2a2)]['next'](_0x58f71a);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x2a83bf,_0x3dea9b,_0x212b33,_0x22977c)=>{const _0x3df496=_0x16f785;for(var _0x4117f3=_0x22977c>0x1?void 0x0:_0x22977c?Ze(_0x3dea9b,_0x212b33):_0x3dea9b,_0x354a54=_0x2a83bf[_0x3df496(0x378)]-0x1,_0x4e5b60;_0x354a54>=0x0;_0x354a54--)(_0x4e5b60=_0x2a83bf[_0x354a54])&&(_0x4117f3=_0x4e5b60(_0x4117f3)||_0x4117f3);return _0x4117f3;},L=(_0x12707f,_0x2d2561)=>(_0x29ee14,_0x220537)=>_0x2d2561(_0x29ee14,_0x220537,_0x12707f);const et=0x12c,tt=0x64;let fe=class extends a[_0x16f785(0x191)]{constructor(_0xcf3ad6,_0x2182cf,_0x3d0d3f,_0x7e788d,_0x10f12e,_0x19c5f5,_0x1cd5d4,_0xf52eb1,_0x445094){const _0x1f87c2=_0x16f785;super(),h(this,_0x1f87c2(0x318),!0x1),h(this,_0x1f87c2(0x39e),!0x1),h(this,'_cursorInfo$',new d[(_0x1f87c2(0x229))](new Map())),h(this,_0x1f87c2(0x2f9),this[_0x1f87c2(0x37b)][_0x1f87c2(0x257)]()),h(this,'_roomMembers$',new d[(_0x1f87c2(0x229))]([])),h(this,_0x1f87c2(0x360),this['_roomMembers$'][_0x1f87c2(0x1a6)](d['debounceTime'](et))),h(this,_0x1f87c2(0x140),a[_0x1f87c2(0x206)](_0x1eabd0=>{const _0x320360=_0x1f87c2,_0x1c76f1={'eventID':m[_0x320360(0x32e)][_0x320360(0x315)],'data':{'unitID':this[_0x320360(0x167)],'memberID':this[_0x320360(0x20c)][_0x320360(0x1db)](),'selection':Pe(_0x1eabd0)}};this[_0x320360(0x20c)][_0x320360(0x34b)](_0x1c76f1,this[_0x320360(0x167)]);},tt)),(this[_0x1f87c2(0x167)]=_0xcf3ad6,this[_0x1f87c2(0x20c)]=_0x2182cf,this[_0x1f87c2(0x1b4)]=_0x3d0d3f,this[_0x1f87c2(0x3aa)]=_0x7e788d,this[_0x1f87c2(0x1d1)]=_0x10f12e,this[_0x1f87c2(0x185)]=_0x19c5f5,this['_transformService']=_0x1cd5d4,this[_0x1f87c2(0x2ff)]=_0xf52eb1,this['_commandService']=_0x445094);}get[_0x16f785(0x189)](){const _0x36db21=_0x16f785;return this[_0x36db21(0x37b)]['getValue']();}get['roomMembers'](){const _0x3de3a9=_0x16f785;return this[_0x3de3a9(0x289)][_0x3de3a9(0x2ab)]();}[_0x16f785(0x2c5)](){const _0x3f317b=_0x16f785;super['dispose'](),this['_cursorInfo$'][_0x3f317b(0x1c3)](new Map()),this[_0x3f317b(0x37b)][_0x3f317b(0x266)](),this[_0x3f317b(0x289)][_0x3f317b(0x1c3)]([]),this[_0x3f317b(0x289)][_0x3f317b(0x266)]();}['init'](){const _0x5bd6ab=_0x16f785;this['_init']||(this[_0x5bd6ab(0x39e)]=!0x0,this[_0x5bd6ab(0x20c)][_0x5bd6ab(0x220)][_0x5bd6ab(0x1a6)](d[_0x5bd6ab(0x341)](this['dispose$']))[_0x5bd6ab(0x1fa)](_0x359d06=>{const _0x706829=_0x5bd6ab;_0x359d06===u[_0x706829(0x1a5)]['ONLINE']?this[_0x706829(0x1ff)]():this[_0x706829(0x355)]();}),this[_0x5bd6ab(0x20c)][_0x5bd6ab(0x273)][_0x5bd6ab(0x1a6)](d['takeUntil'](this[_0x5bd6ab(0x332)]))[_0x5bd6ab(0x1fa)](_0x2632ee=>{const _0x5e3655=_0x5bd6ab,_0x1dff72=_0x2632ee[_0x5e3655(0x2f6)];_0x1dff72===m[_0x5e3655(0x32e)]['UPDATE_CURSOR']&&this[_0x5e3655(0x22d)](_0x2632ee),_0x1dff72===m['CollaborationEvent'][_0x5e3655(0x1dd)]&&this['_onCursorDelete'](_0x2632ee);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x76d997=>{const _0x2ec226=_0x5bd6ab,_0x4bca9e=_0x76d997[_0x2ec226(0x1d5)];_0x4bca9e!=null&&this['_online']&&_0x76d997['id']===Y[_0x2ec226(0x31c)]['id']&&_0x4bca9e[_0x2ec226(0x1b8)]===this[_0x2ec226(0x167)]&&_0x4bca9e[_0x2ec226(0x24f)]===!0x1&&_0x4bca9e[_0x2ec226(0x279)][_0x2ec226(0x378)]>0x0&&this[_0x2ec226(0x140)](_0x4bca9e[_0x2ec226(0x279)]);})),this[_0x5bd6ab(0x185)][_0x5bd6ab(0x17b)]['pipe'](d[_0x5bd6ab(0x341)](this[_0x5bd6ab(0x332)]))[_0x5bd6ab(0x1fa)](_0x2b7100=>{const _0x142deb=_0x5bd6ab;if((_0x2b7100==null?void 0x0:_0x2b7100[_0x142deb(0x167)])!==this['unitID'])return;const _0x324404={'eventID':m[_0x142deb(0x32e)][_0x142deb(0x315)],'data':_0x2b7100};this[_0x142deb(0x22d)](_0x324404);}),this[_0x5bd6ab(0x3b2)](this[_0x5bd6ab(0x333)][_0x5bd6ab(0x34f)](_0x2e7883=>{const _0x31250d=_0x5bd6ab;if(_0x2e7883[_0x31250d(0x1d5)]==null)return;const _0xca628f=_0x2e7883[_0x31250d(0x1d5)];if(_0x2e7883['id']!==Y[_0x31250d(0x174)]['id']||_0xca628f['unitId']!==this[_0x31250d(0x167)])return;const _0x5d4c9a={'id':_0x31250d(0x275),'params':_0xca628f},_0x16357c=this[_0x31250d(0x189)];for(const [_0x2cb7f8,_0x25889e]of _0x16357c){const _0x5e7e49={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x31250d(0x167)],'actions':null,'textRanges':_0x25889e[_0x31250d(0x279)]}},_0xfd5a18=this['_transformService'][_0x31250d(0x3b0)](_0x5d4c9a,_0x5e7e49,!0x1);if(m['isTransformMutationFailure'](_0xfd5a18))throw _0xfd5a18['error'];_0x16357c['set'](_0x2cb7f8,{..._0x25889e,'ranges':_0xfd5a18[_0x31250d(0x1bd)][_0x31250d(0x1d5)][_0x31250d(0x30d)]});}queueMicrotask(()=>{const _0x41cf2e=_0x31250d;this[_0x41cf2e(0x37b)]['next'](_0x16357c);});})));}[_0x16f785(0x22d)](_0x25244e){const _0xc7a6b7=_0x16f785;var _0x3b9656,_0xe1ebbf;const {memberID:_0x2f17e3,selection:_0x125104}=_0x25244e[_0xc7a6b7(0x214)],_0xc11227=Je(_0x125104),_0x29b56c=(_0xe1ebbf=(_0x3b9656=this[_0xc7a6b7(0x1d1)][_0xc7a6b7(0x306)](this[_0xc7a6b7(0x167)],_0x2f17e3))==null?void 0x0:_0x3b9656[_0xc7a6b7(0x291)])!=null?_0xe1ebbf:_0xc7a6b7(0x226),_0xcb4a59={'color':this[_0xc7a6b7(0x3aa)][_0xc7a6b7(0x2a3)](_0x2f17e3),'name':_0x29b56c,'ranges':_0xc11227},_0x2a114b=this[_0xc7a6b7(0x189)];_0x2a114b['set'](_0x2f17e3,_0xcb4a59),this[_0xc7a6b7(0x37b)][_0xc7a6b7(0x1c3)](_0x2a114b);}['_onCursorDelete'](_0x5d3cb9){const _0x413938=_0x16f785,{memberID:_0x10d883}=_0x5d3cb9['data'],_0x2c9942=this[_0x413938(0x189)];_0x2c9942['delete'](_0x10d883),this[_0x413938(0x37b)]['next'](_0x2c9942);}['_toggleOnline'](){const _0x45c8e2=_0x16f785;var _0x2b5258;if(this[_0x45c8e2(0x318)]=!0x0,((_0x2b5258=this[_0x45c8e2(0x2ff)][_0x45c8e2(0x20a)]())==null?void 0x0:_0x2b5258['getUnitId']())!==this[_0x45c8e2(0x167)])return;const _0x109729=this[_0x45c8e2(0x1b4)][_0x45c8e2(0x22c)](Y[_0x45c8e2(0x335)])[_0x45c8e2(0x340)]();Array[_0x45c8e2(0x21a)](_0x109729)&&_0x109729[_0x45c8e2(0x378)]>0x0&&this[_0x45c8e2(0x140)](_0x109729);}[_0x16f785(0x355)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0x16f785(0x2c4)](a[_0x16f785(0x241)])),L(0x3,a['Inject'](me)),L(0x4,a[_0x16f785(0x2c4)](u[_0x16f785(0x160)])),L(0x5,a[_0x16f785(0x2c4)](Ce)),L(0x6,m['ITransformService']),L(0x7,a[_0x16f785(0x3b7)]),L(0x8,a[_0x16f785(0x199)])],fe);var st=Object[_0x16f785(0x2a8)],it=(_0x430ff9,_0x2a3560,_0x5e3cdd,_0xbc1024)=>{const _0x2c3fe1=_0x16f785;for(var _0x2e0eb7=_0xbc1024>0x1?void 0x0:_0xbc1024?st(_0x2a3560,_0x5e3cdd):_0x2a3560,_0x5a061b=_0x430ff9[_0x2c3fe1(0x378)]-0x1,_0x554fc6;_0x5a061b>=0x0;_0x5a061b--)(_0x554fc6=_0x430ff9[_0x5a061b])&&(_0x2e0eb7=_0x554fc6(_0x2e0eb7)||_0x2e0eb7);return _0x2e0eb7;},w=(_0x27a44b,_0x9e7425)=>(_0x58f15d,_0x278444)=>_0x9e7425(_0x58f15d,_0x278444,_0x27a44b);const nt=0x12c,rt=0x64,ot=()=>{let _0x1e4e5c=[],_0x2b73f2=!0x1;return _0x438936=>{const _0x57a136=_0x2ff8;_0x1e4e5c[_0x57a136(0x25f)](_0x438936),_0x2b73f2||(_0x2b73f2=!0x0,setTimeout(()=>{const _0x221254=_0x57a136;_0x1e4e5c[_0x221254(0x35e)](_0x4c2aa4=>_0x4c2aa4()),_0x1e4e5c=[],_0x2b73f2=!0x1;}));};};let Se=class extends a[_0x16f785(0x191)]{constructor(_0x3979f9,_0x1b42cb,_0x46fa44,_0x188677,_0x11ea1f,_0x4cce75,_0x2698e4,_0x168722){const _0xaf9d10=_0x16f785;super(),h(this,_0xaf9d10(0x318),!0x1),h(this,_0xaf9d10(0x39e),!0x1),h(this,_0xaf9d10(0x37b),new d[(_0xaf9d10(0x229))](new Map())),h(this,'cursorInfo$',this[_0xaf9d10(0x37b)][_0xaf9d10(0x257)]()),h(this,'_roomMembers$',new d['BehaviorSubject']([])),h(this,_0xaf9d10(0x360),this[_0xaf9d10(0x289)][_0xaf9d10(0x1a6)](d[_0xaf9d10(0x336)](nt))),h(this,_0xaf9d10(0x140),a['debounce']((_0x5d3fb2,_0x2e1b83)=>{const _0x352648=_0xaf9d10,_0x3ef029={'eventID':m[_0x352648(0x32e)][_0x352648(0x315)],'data':{'unitID':this[_0x352648(0x167)],'memberID':this[_0x352648(0x20c)][_0x352648(0x1db)](),'selection':Ee[_0x352648(0x30f)](_0x5d3fb2,_0x2e1b83[_0x352648(0x3a4)])}};this[_0x352648(0x20c)]['send'](_0x3ef029,this[_0x352648(0x167)]);},rt)),(this[_0xaf9d10(0x167)]=_0x3979f9,this[_0xaf9d10(0x20c)]=_0x1b42cb,this['_injector']=_0x46fa44,this[_0xaf9d10(0x3aa)]=_0x188677,this[_0xaf9d10(0x1d1)]=_0x11ea1f,this[_0xaf9d10(0x2ff)]=_0x4cce75,this['_commandService']=_0x2698e4,this[_0xaf9d10(0x304)]=_0x168722);}get[_0x16f785(0x189)](){const _0x18c47e=_0x16f785;return this[_0x18c47e(0x37b)]['getValue']();}get[_0x16f785(0x166)](){const _0xf87345=_0x16f785;return this[_0xf87345(0x289)][_0xf87345(0x2ab)]();}[_0x16f785(0x2c5)](){const _0x518de0=_0x16f785;super[_0x518de0(0x2c5)](),this[_0x518de0(0x37b)]['next'](new Map()),this[_0x518de0(0x37b)]['complete'](),this[_0x518de0(0x289)][_0x518de0(0x1c3)]([]),this[_0x518de0(0x289)]['complete']();}[_0x16f785(0x2e4)](){const _0x4df1c9=_0x16f785;this[_0x4df1c9(0x39e)]||(this['_init']=!0x0,this[_0x4df1c9(0x20c)]['sessionStatus$'][_0x4df1c9(0x1a6)](d['takeUntil'](this[_0x4df1c9(0x332)]))[_0x4df1c9(0x1fa)](_0x57f5c7=>{const _0xf3a0de=_0x4df1c9;_0x57f5c7===u['SessionStatus'][_0xf3a0de(0x1aa)]?this[_0xf3a0de(0x1ff)]():this['_toggleOffline']();}),this[_0x4df1c9(0x20c)][_0x4df1c9(0x273)][_0x4df1c9(0x1a6)](d['takeUntil'](this[_0x4df1c9(0x332)]))[_0x4df1c9(0x1fa)](_0x33a428=>{const _0x28bb42=_0x4df1c9,_0x508afe=_0x33a428[_0x28bb42(0x2f6)];_0x508afe===m[_0x28bb42(0x32e)][_0x28bb42(0x315)]&&this['_onCursorUpdate'](_0x33a428),_0x508afe===m[_0x28bb42(0x32e)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x33a428);}),this['_onRefRangeChange'](),this[_0x4df1c9(0x3b2)](this['_commandService'][_0x4df1c9(0x34f)](_0x243d75=>{const _0x50cb00=_0x4df1c9;if(this[_0x50cb00(0x318)]&&_0x243d75['id']===g[_0x50cb00(0x198)]['id']&&_0x243d75[_0x50cb00(0x1d5)][_0x50cb00(0x1b8)]===this[_0x50cb00(0x167)]){const _0xefffc4=_0x243d75[_0x50cb00(0x1d5)];this[_0x50cb00(0x140)](_0xefffc4[_0x50cb00(0x234)],_0xefffc4['selections'][0x0]);}})));}[_0x16f785(0x22d)](_0xb444fb){const _0x17c2d1=_0x16f785;var _0x85045b,_0xd953c8;const {memberID:_0x368605,selection:_0xdd218d}=_0xb444fb[_0x17c2d1(0x214)],{sheetName:_0x233349,range:_0x5e50d1}=Ee[_0x17c2d1(0x1a2)](_0xdd218d),_0x2dbcf0={'name':(_0xd953c8=(_0x85045b=this['_memberService'][_0x17c2d1(0x306)](this[_0x17c2d1(0x167)],_0x368605))==null?void 0x0:_0x85045b[_0x17c2d1(0x291)])!=null?_0xd953c8:_0x17c2d1(0x226),'range':this['_getMergeRange'](_0x233349,_0x5e50d1),'sheetID':_0x233349,'color':this['_colorAssignService'][_0x17c2d1(0x2a3)](_0x368605),'selection':_0xdd218d},_0x5a3ea7=this[_0x17c2d1(0x189)];_0x5a3ea7['set'](_0x368605,_0x2dbcf0),this[_0x17c2d1(0x37b)][_0x17c2d1(0x1c3)](_0x5a3ea7);}[_0x16f785(0x2aa)](_0x249754){const _0x183351=_0x16f785,{memberID:_0x234290}=_0x249754[_0x183351(0x214)],_0x29f683=this[_0x183351(0x189)];_0x29f683[_0x183351(0x1be)](_0x234290),this[_0x183351(0x37b)][_0x183351(0x1c3)](_0x29f683);}['_getMergeRange'](_0x32b789,_0x47af8e){const _0x42a27f=_0x16f785;var _0x496461,_0x23e621;const _0x47da7d=(_0x23e621=(_0x496461=this[_0x42a27f(0x2ff)][_0x42a27f(0x329)](this[_0x42a27f(0x167)]))==null?void 0x0:_0x496461[_0x42a27f(0x1c0)](_0x32b789))==null?void 0x0:_0x23e621['getMergeData']();return(_0x47da7d==null?void 0x0:_0x47da7d['find'](_0x1b1d50=>a[_0x42a27f(0x28c)][_0x42a27f(0x148)](_0x1b1d50,_0x47af8e)))||_0x47af8e;}[_0x16f785(0x27a)](){const _0x1760c5=_0x16f785,_0x56f5e5=new a[(_0x1760c5(0x1e7))](),_0x55bb35=ot(),_0x5c2a0b=()=>{const _0x1efe41=_0x1760c5;_0x56f5e5[_0x1efe41(0x2c5)]();const _0x44c048=(_0x2798a3,_0x1aa921,_0x15f518,_0xfa86cc)=>{const _0x49e29d=_0x1efe41;let _0x3f0fd5=[];switch(_0x2798a3['id']){case g['EffectRefRangId'][_0x49e29d(0x2da)]:{_0x3f0fd5=g[_0x49e29d(0x2c6)](_0x2798a3,_0xfa86cc);break;}case g[_0x49e29d(0x274)][_0x49e29d(0x39d)]:{_0x3f0fd5=g[_0x49e29d(0x316)](_0x2798a3,_0xfa86cc);break;}case g[_0x49e29d(0x274)][_0x49e29d(0x293)]:{_0x3f0fd5=g[_0x49e29d(0x35b)](_0x2798a3,_0xfa86cc);break;}case g[_0x49e29d(0x274)][_0x49e29d(0x381)]:{_0x3f0fd5=g[_0x49e29d(0x36d)](_0x2798a3,_0xfa86cc);break;}case g[_0x49e29d(0x274)][_0x49e29d(0x16d)]:{_0x3f0fd5=g[_0x49e29d(0x2f0)](_0x2798a3,_0xfa86cc);break;}case g[_0x49e29d(0x274)][_0x49e29d(0x222)]:{_0x3f0fd5=g[_0x49e29d(0x168)](_0x2798a3,_0xfa86cc);break;}case g['EffectRefRangId'][_0x49e29d(0x292)]:{_0x3f0fd5=g[_0x49e29d(0x2f3)](_0x2798a3,_0xfa86cc);break;}case g[_0x49e29d(0x274)][_0x49e29d(0x2e7)]:{_0x3f0fd5=g[_0x49e29d(0x238)](_0x2798a3,_0xfa86cc);break;}case g['EffectRefRangId'][_0x49e29d(0x2c7)]:{_0x3f0fd5=g[_0x49e29d(0x145)](_0x2798a3,_0xfa86cc);break;}}const _0x1cc5aa=g[_0x49e29d(0x305)](_0x3f0fd5,_0xfa86cc),_0x5227bb=this[_0x49e29d(0x189)][_0x49e29d(0x22c)](_0x1aa921);if(_0x5227bb&&_0x1cc5aa){const _0x3bd12b={..._0x5227bb,'range':_0x1cc5aa};this[_0x49e29d(0x189)]['set'](_0x1aa921,_0x3bd12b),_0x55bb35(()=>{const _0x25a63f=_0x49e29d,_0x2d85d9=this[_0x25a63f(0x304)][_0x25a63f(0x154)](_0x1cc5aa,_0x89e969=>(_0x2d85d9[_0x25a63f(0x2c5)](),_0x44c048(_0x89e969,_0x1aa921,_0x15f518,_0x1cc5aa)));_0x56f5e5[_0x25a63f(0x37e)](_0x2d85d9);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x1efe41(0x35e)]((_0x564f4e,_0x200c28)=>{const _0x56e0a4=_0x1efe41,{range:_0x11be28,sheetID:_0x8087f4}=_0x564f4e,_0x1fb7e2=this[_0x56e0a4(0x304)]['registerRefRange'](_0x11be28,_0x9f7013=>(_0x1fb7e2[_0x56e0a4(0x2c5)](),_0x44c048(_0x9f7013,_0x200c28,_0x8087f4,_0x11be28)));_0x56f5e5[_0x56e0a4(0x37e)](_0x1fb7e2);});};this[_0x1760c5(0x3b2)](a[_0x1760c5(0x39f)](this[_0x1760c5(0x37b)][_0x1760c5(0x1fa)](()=>{_0x5c2a0b();})));}[_0x16f785(0x1ff)](){const _0xbb8e9a=_0x16f785;var _0x4d25de,_0x9fb203;if(this[_0xbb8e9a(0x318)]=!0x0,((_0x4d25de=this['_univerInstanceService'][_0xbb8e9a(0x20a)]())==null?void 0x0:_0x4d25de[_0xbb8e9a(0x14f)]())!==this[_0xbb8e9a(0x167)])return;const _0x215d80=(_0x9fb203=this[_0xbb8e9a(0x1b4)]['get'](g[_0xbb8e9a(0x3b8)])[_0xbb8e9a(0x1ae)]())==null?void 0x0:_0x9fb203[0x0],_0x5b0277=this['_univerInstanceService']['getCurrentUnitForType'](a[_0xbb8e9a(0x2a5)][_0xbb8e9a(0x253)])[_0xbb8e9a(0x2f4)]();_0x215d80&&_0x5b0277&&this[_0xbb8e9a(0x140)](_0x5b0277[_0xbb8e9a(0x186)](),_0x215d80);}[_0x16f785(0x355)](){const _0x37edba=_0x16f785;this[_0x37edba(0x318)]=!0x1;}};Se=it([w(0x2,a[_0x16f785(0x2c4)](a[_0x16f785(0x241)])),w(0x3,a['Inject'](me)),w(0x4,a[_0x16f785(0x2c4)](u[_0x16f785(0x160)])),w(0x5,a[_0x16f785(0x3b7)]),w(0x6,a[_0x16f785(0x199)]),w(0x7,a[_0x16f785(0x2c4)](g[_0x16f785(0x2bf)]))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x1cac56,_0x47ac51,_0x75038f,_0x48e064)=>{const _0x4ac019=_0x16f785;for(var _0x30c016=_0x48e064>0x1?void 0x0:_0x48e064?at(_0x47ac51,_0x75038f):_0x47ac51,_0x175e77=_0x1cac56[_0x4ac019(0x378)]-0x1,_0x4eefee;_0x175e77>=0x0;_0x175e77--)(_0x4eefee=_0x1cac56[_0x175e77])&&(_0x30c016=_0x4eefee(_0x30c016)||_0x30c016);return _0x30c016;},ie=(_0x22e5e3,_0x390e8d)=>(_0xeecdb1,_0x1d8931)=>_0x390e8d(_0xeecdb1,_0x1d8931,_0x22e5e3);let x=class extends a['RxDisposable']{constructor(_0x3b3b53,_0x1d4293,_0x128ac3){const _0x148634=_0x16f785;super(),h(this,'_entities',new Map()),h(this,_0x148634(0x33c),new d[(_0x148634(0x1f0))]()),(this[_0x148634(0x2ff)]=_0x3b3b53,this[_0x148634(0x1b4)]=_0x1d4293,this[_0x148634(0x366)]=_0x128ac3,this[_0x148634(0x39e)]());}['dispose'](){const _0x8bfe2e=_0x16f785;super[_0x8bfe2e(0x2c5)](),this[_0x8bfe2e(0x33c)]['complete'](),this['_entities']['forEach'](_0x8860a6=>_0x8860a6[_0x8bfe2e(0x2c5)]());}[_0x16f785(0x3a8)](_0x311ba5){const _0x528f69=_0x16f785;return this[_0x528f69(0x2b5)]['has'](_0x311ba5)?this[_0x528f69(0x2b5)][_0x528f69(0x22c)](_0x311ba5)['cursorInfo$']:this[_0x528f69(0x33c)][_0x528f69(0x1a6)](d[_0x528f69(0x1a0)](_0x453aac=>_0x453aac[_0x528f69(0x167)]===_0x311ba5),d[_0x528f69(0x232)](_0x21da79=>_0x21da79[_0x528f69(0x2f9)]));}['_init'](){const _0x47e9cb=_0x16f785;this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x47e9cb(0x2a5)][_0x47e9cb(0x253)])[_0x47e9cb(0x1a6)](d[_0x47e9cb(0x341)](this[_0x47e9cb(0x332)]))[_0x47e9cb(0x1fa)](async _0xa38dbc=>{const _0x5620b7=_0x47e9cb,_0x2740db=_0xa38dbc[_0x5620b7(0x14f)](),_0x5300ba=await this[_0x5620b7(0x20f)](_0x2740db);this[_0x5620b7(0x33c)]['next'](_0x5300ba),this[_0x5620b7(0x2b5)][_0x5620b7(0x2fc)](_0x2740db,_0x5300ba);}),this[_0x47e9cb(0x2ff)]['getTypeOfUnitAdded$'](a[_0x47e9cb(0x2a5)][_0x47e9cb(0x1e2)])[_0x47e9cb(0x1a6)](d['takeUntil'](this[_0x47e9cb(0x332)]))['pipe'](d['filter'](_0x183752=>!_0x183752[_0x47e9cb(0x14f)]()[_0x47e9cb(0x312)]('__')))[_0x47e9cb(0x1fa)](async _0x14cf32=>{const _0xf74ca=_0x47e9cb,_0x296781=_0x14cf32[_0xf74ca(0x14f)](),_0x17d65f=await this[_0xf74ca(0x26d)](_0x296781);this[_0xf74ca(0x33c)][_0xf74ca(0x1c3)](_0x17d65f),this[_0xf74ca(0x2b5)]['set'](_0x296781,_0x17d65f);}),d['merge'](this[_0x47e9cb(0x2ff)][_0x47e9cb(0x16e)](a[_0x47e9cb(0x2a5)][_0x47e9cb(0x1e2)]),this[_0x47e9cb(0x2ff)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x47e9cb(0x253)]))[_0x47e9cb(0x1a6)](d[_0x47e9cb(0x341)](this[_0x47e9cb(0x332)]))[_0x47e9cb(0x1fa)](_0x2d1b52=>{const _0x468c1f=_0x47e9cb,_0x3d48d2=_0x2d1b52[_0x468c1f(0x14f)](),_0x1451d9=this[_0x468c1f(0x2b5)][_0x468c1f(0x22c)](_0x3d48d2);_0x1451d9&&(_0x1451d9[_0x468c1f(0x2c5)](),this['_entities'][_0x468c1f(0x1be)](_0x3d48d2));});}async[_0x16f785(0x20f)](_0x2409b6){const _0x593997=_0x16f785,_0xdec18c=await this[_0x593997(0x366)][_0x593997(0x1af)](_0x2409b6),_0x73a7d7=this['_injector'][_0x593997(0x399)](Se,_0x2409b6,_0xdec18c);return _0x73a7d7[_0x593997(0x2e4)](),_0x73a7d7;}async['_startDocCollabCursor'](_0x2d23a1){const _0x2d588d=_0x16f785,_0x3a7c84=await this['_collabSessionService'][_0x2d588d(0x1af)](_0x2d23a1),_0x394ce2=this['_injector']['createInstance'](fe,_0x2d23a1,_0x3a7c84);return _0x394ce2[_0x2d588d(0x2e4)](),_0x394ce2;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x16f785(0x2c4)](a[_0x16f785(0x241)])),ie(0x2,a[_0x16f785(0x2c4)](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x1fac5e,_0x5c0ddc){const _0x168d47=_0x16f785;let {radius:_0x4ec2cb,width:_0x1628e3,height:_0x26f4b6}=_0x5c0ddc;_0x4ec2cb=_0x4ec2cb!=null?_0x4ec2cb:0x0,_0x1628e3=_0x1628e3!=null?_0x1628e3:0x1e,_0x26f4b6=_0x26f4b6!=null?_0x26f4b6:0x1e;let _0xa7816e=0x0,_0x33d82c=0x0,_0x1f9acd=0x0;_0xa7816e=_0x33d82c=_0x1f9acd=Math[_0x168d47(0x37d)](_0x4ec2cb,_0x1628e3/0x2,_0x26f4b6/0x2),_0x1fac5e['beginPath'](),_0x1fac5e[_0x168d47(0x27c)](_0xa7816e,0x0),_0x1fac5e[_0x168d47(0x347)](_0x1628e3-_0x33d82c,0x0),_0x1fac5e[_0x168d47(0x1c5)](_0x1628e3-_0x33d82c,_0x33d82c,_0x33d82c,Math['PI']*0x3/0x2,0x0,!0x1),_0x1fac5e['lineTo'](_0x1628e3,_0x26f4b6-_0x1f9acd),_0x1fac5e[_0x168d47(0x1c5)](_0x1628e3-_0x1f9acd,_0x26f4b6-_0x1f9acd,_0x1f9acd,0x0,Math['PI']/0x2,!0x1),_0x1fac5e[_0x168d47(0x347)](0x0,_0x26f4b6),_0x1fac5e['lineTo'](0x0,_0xa7816e),_0x1fac5e[_0x168d47(0x1c5)](_0xa7816e,_0xa7816e,_0xa7816e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1fac5e[_0x168d47(0x22a)](),_0x5c0ddc[_0x168d47(0x352)]&&(_0x1fac5e[_0x168d47(0x300)](),_0x1fac5e[_0x168d47(0x181)]=_0x5c0ddc[_0x168d47(0x352)],_0x5c0ddc[_0x168d47(0x282)]===_0x168d47(0x326)?_0x1fac5e[_0x168d47(0x352)](_0x168d47(0x326)):_0x1fac5e[_0x168d47(0x352)](),_0x1fac5e[_0x168d47(0x1d9)]());}class ee extends p[_0x16f785(0x31e)]{constructor(_0x4fb5da,_0x2689fa){const _0x4a8363=_0x16f785;super(_0x4fb5da,_0x2689fa),h(this,'color'),h(this,_0x4a8363(0x373)),(this[_0x4a8363(0x3b5)]=_0x2689fa==null?void 0x0:_0x2689fa[_0x4a8363(0x3b5)],this[_0x4a8363(0x373)]=_0x2689fa==null?void 0x0:_0x2689fa[_0x4a8363(0x373)]);}static[_0x16f785(0x223)](_0x5b6b57,_0x12aa6f){const _0x170088=_0x16f785,{text:_0x4f2b93,color:_0x3e5e12}=_0x12aa6f;_0x5b6b57[_0x170088(0x300)](),_0x5b6b57['font']=_0x170088(0x3a9);const _0x1eb69c=_0x5b6b57[_0x170088(0x1f4)](_0x4f2b93)[_0x170088(0x2b6)],_0x302608=Math[_0x170088(0x37d)](_0x1eb69c+0x2*ne,Re);_t(_0x5b6b57,{'height':K,'radius':0x4,'width':_0x302608,'fill':_0x3e5e12}),_0x5b6b57[_0x170088(0x181)]=_0x170088(0x3bd);const _0xeaf044=ne,_0x180ea1=K-lt,_0x3a711f=Re-0x2*ne;if(_0x1eb69c>_0x3a711f){let _0x4957b3='',_0x261e2c=0x0;for(const _0x47ab34 of _0x4f2b93){const _0x12fddf=_0x5b6b57[_0x170088(0x1f4)](_0x47ab34)[_0x170088(0x2b6)];if(_0x261e2c+_0x12fddf<=_0x3a711f-_0x5b6b57['measureText']('...')['width'])_0x4957b3+=_0x47ab34,_0x261e2c+=_0x12fddf;else{_0x4957b3+=_0x170088(0x169);break;}}_0x5b6b57['fillText'](_0x4957b3,_0xeaf044,_0x180ea1);}else _0x5b6b57[_0x170088(0x26e)](_0x4f2b93,_0xeaf044,_0x180ea1);_0x5b6b57[_0x170088(0x1d9)]();}[_0x16f785(0x236)](_0x37224c){ee['drawWith'](_0x37224c,this);}}const re=_0x16f785(0x2bd),ht='collab-text-range-',ut=_0x16f785(0x271),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x16f785(0x18f);class De{constructor(_0x359379,_0x4944ab,_0x26f75a,_0xceec86){const _0x2e670a=_0x16f785;h(this,'_shapes',[]),h(this,'_anchor',null),h(this,'_textBubble',null),h(this,_0x2e670a(0x356),null),h(this,_0x2e670a(0x1c9),null),h(this,'_eventUnsubscribe',null),(this[_0x2e670a(0x2e9)]=_0x359379,this['_scene']=_0x4944ab,this[_0x2e670a(0x1bc)]=_0x26f75a,this[_0x2e670a(0x28b)]=_0xceec86,this[_0x2e670a(0x2d8)]());}set[_0x16f785(0x322)](_0x1edb9b){const _0x1c8da8=_0x16f785;_0x1edb9b?(this['_anchorDot']&&this[_0x1c8da8(0x356)][_0x1c8da8(0x17f)](),this['_textBubble']&&this[_0x1c8da8(0x172)]['show']()):(this[_0x1c8da8(0x356)]&&this[_0x1c8da8(0x356)]['show'](),this[_0x1c8da8(0x172)]&&this[_0x1c8da8(0x172)][_0x1c8da8(0x17f)]());}[_0x16f785(0x2c5)](){const _0x477557=_0x16f785;for(const _0x5d2257 of this[_0x477557(0x38e)])_0x5d2257[_0x477557(0x2c5)]();this['_textBubble']&&this[_0x477557(0x172)][_0x477557(0x2c5)](),this[_0x477557(0x356)]&&this[_0x477557(0x356)]['dispose'](),this['_anchor']&&this[_0x477557(0x3be)][_0x477557(0x2c5)](),this[_0x477557(0x143)]&&this[_0x477557(0x143)]();}[_0x16f785(0x2d8)](){const _0x57d8e0=_0x16f785;var _0x5aa675;const {_docSkeleton:_0x5191d1,_document:_0x66bb}=this,{color:_0xe61f4b,name:_0x31ac2b,ranges:_0x29cdd6}=this[_0x57d8e0(0x2e9)],_0x441788=_0x66bb[_0x57d8e0(0x3b3)](),{docsLeft:_0x9fbe9,docsTop:_0x6ee7ef}=_0x441788,_0x23f2bd=new b[(_0x57d8e0(0x26f))](_0x441788,_0x5191d1);for(const {startOffset:_0xf5c41e,endOffset:_0x6ea071,rangeType:_0x206fe2,segmentId:_0x29f4cc,segmentPage:_0x2746ac,collapsed:_0x2342f4,isActive:_0x146452}of _0x29cdd6){const _0x713c37=_0x5191d1[_0x57d8e0(0x1f9)](_0xf5c41e,!0x0,_0x29f4cc,_0x2746ac);let _0x16314e=_0x5191d1['findNodePositionByCharIndex'](_0x6ea071,!0x0,_0x29f4cc,_0x2746ac);if(_0x16314e==null&&(_0x16314e=_0x5191d1[_0x57d8e0(0x1f9)](_0x6ea071-0x1,!0x1,_0x29f4cc,_0x2746ac)),_0x146452){const {contentBoxPointGroup:_0x164f5a}=_0x23f2bd['getRangePointData'](_0x16314e,_0x16314e);if(_0x164f5a[_0x57d8e0(0x378)]===0x0)continue;this[_0x57d8e0(0x24a)](_0xe61f4b,_0x164f5a,_0x9fbe9,_0x6ee7ef,_0x31ac2b),this['_eventUnsubscribe']=this[_0x57d8e0(0x175)]();}if(_0x713c37&&_0x16314e){if(_0x206fe2===a['DOC_RANGE_TYPE']['RECT']){const _0x7c243d=new b[(_0x57d8e0(0x225))](_0x441788,_0x5191d1),{pointGroup:_0x855b7}=(_0x5aa675=_0x7c243d[_0x57d8e0(0x363)](_0x713c37,_0x16314e))!=null?_0x5aa675:{};if(_0x855b7==null||_0x855b7[_0x57d8e0(0x378)]===0x0)continue;this[_0x57d8e0(0x3c3)](_0xe61f4b,_0x855b7,_0x9fbe9,_0x6ee7ef);}else{if(!_0x2342f4){const {borderBoxPointGroup:_0x5c7856}=_0x23f2bd[_0x57d8e0(0x363)](_0x713c37,_0x16314e);if(_0x5c7856[_0x57d8e0(0x378)]===0x0)continue;this[_0x57d8e0(0x2b4)](_0xe61f4b,_0x5c7856,_0x9fbe9,_0x6ee7ef);}}}}}['_drawAnchor'](_0x146efb,_0x452fb3,_0x97014,_0x25329d,_0x5e729f){const _0x2e3d4f=_0x16f785,_0x446dcc=this['_getAnchorBounding'](_0x452fb3),{left:_0x5733a0,top:_0x22033b,height:_0x2e715b}=_0x446dcc,_0x310c4b=this['_getScale'](),_0x2d299c=ft/_0x310c4b,_0x51d8c6=new p[(_0x2e3d4f(0x29a))](re+a['Tools'][_0x2e3d4f(0x36f)](k),{'left':_0x5733a0+_0x97014-_0x2d299c,'top':_0x22033b+_0x25329d,'height':_0x2e715b,'width':dt,'fill':_0x146efb||p[_0x2e3d4f(0x37f)](a[_0x2e3d4f(0x308)][_0x2e3d4f(0x385)],0x0),'strokeWidth':_0x2d299c,'stroke':St,'evented':!0x0});this[_0x2e3d4f(0x3be)]=_0x51d8c6,this[_0x2e3d4f(0x313)][_0x2e3d4f(0x2fd)](_0x51d8c6,b[_0x2e3d4f(0x1d2)]);const _0x14b403=new p[(_0x2e3d4f(0x29a))](re+a['Tools']['generateRandomId'](k),{'left':_0x5733a0+_0x97014-_0x2d299c,'top':_0x22033b+_0x25329d-oe/0x2,'height':oe,'width':oe,'fill':_0x146efb||p[_0x2e3d4f(0x37f)](a[_0x2e3d4f(0x308)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x146efb||p['getColor'](a[_0x2e3d4f(0x308)][_0x2e3d4f(0x385)],0x0),'evented':!0x1});this['_anchorDot']=_0x14b403,this[_0x2e3d4f(0x313)][_0x2e3d4f(0x2fd)](_0x14b403,b[_0x2e3d4f(0x1d2)]);const _0x4bf378=new ee(re+a[_0x2e3d4f(0x320)][_0x2e3d4f(0x36f)](k),{'left':_0x5733a0+_0x97014-_0x2d299c,'top':_0x22033b+_0x25329d-K,'text':_0x5e729f,'color':_0x146efb});this[_0x2e3d4f(0x172)]=_0x4bf378,this[_0x2e3d4f(0x313)][_0x2e3d4f(0x2fd)](_0x4bf378,b[_0x2e3d4f(0x1d2)]),this[_0x2e3d4f(0x322)]=!0x1;}['_handleHover'](){const _0x37c61f=_0x16f785,_0x475465=this[_0x37c61f(0x3be)][_0x37c61f(0x242)][_0x37c61f(0x15d)](()=>{this['_hover']=!0x0;}),_0x49be56=this[_0x37c61f(0x3be)][_0x37c61f(0x3bf)][_0x37c61f(0x15d)](()=>{const _0x1400c6=_0x37c61f;this[_0x1400c6(0x1c9)]&&clearTimeout(this[_0x1400c6(0x1c9)]),this[_0x1400c6(0x1c9)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x2a7f2e=_0x37c61f;_0x475465[_0x2a7f2e(0x2ee)](),_0x49be56[_0x2a7f2e(0x2ee)]();};}['_drawTextRange'](_0x1702c7,_0x997496,_0x118aa2,_0x3c2f69){const _0x4dfc55=_0x16f785,_0x3869bb=new a['ColorKit'](_0x1702c7)[_0x4dfc55(0x21d)](0.2)[_0x4dfc55(0x272)](),_0x50b7da=new p['RegularPolygon'](ht+a[_0x4dfc55(0x320)][_0x4dfc55(0x36f)](k),{'pointsGroup':_0x997496,'fill':_0x3869bb||p[_0x4dfc55(0x37f)](a[_0x4dfc55(0x308)][_0x4dfc55(0x385)],0.2),'left':_0x118aa2,'top':_0x3c2f69,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4dfc55(0x38e)]['push'](_0x50b7da),this[_0x4dfc55(0x313)][_0x4dfc55(0x2fd)](_0x50b7da,b[_0x4dfc55(0x1d2)]);}[_0x16f785(0x3c3)](_0x9a3a07,_0x53301b,_0x1d7a45,_0x21e8e1){const _0x6c7923=_0x16f785,_0x5cfa5c=new a[(_0x6c7923(0x359))](_0x9a3a07)[_0x6c7923(0x21d)](0.2)[_0x6c7923(0x272)](),_0xfbc97c=new p[(_0x6c7923(0x375))](ut+a[_0x6c7923(0x320)][_0x6c7923(0x36f)](k),{'pointsGroup':_0x53301b,'fill':_0x5cfa5c||p[_0x6c7923(0x37f)](a[_0x6c7923(0x308)]['black'],0.2),'left':_0x1d7a45,'top':_0x21e8e1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x6c7923(0x38e)][_0x6c7923(0x25f)](_0xfbc97c),this[_0x6c7923(0x313)][_0x6c7923(0x2fd)](_0xfbc97c,b[_0x6c7923(0x1d2)]);}[_0x16f785(0x3b9)](_0x56ecb5){const _0xf0b79e=_0x56ecb5[0x0],_0x2eb986=_0xf0b79e[0x0],_0x4c86f1=_0xf0b79e[0x2],{x:_0x256158,y:_0x15947a}=_0x2eb986,{x:_0x34b241,y:_0x3db5fb}=_0x4c86f1;return{'left':_0x256158,'top':_0x15947a,'width':_0x34b241-_0x256158,'height':_0x3db5fb-_0x15947a};}[_0x16f785(0x2a7)](){const _0x26d47f=_0x16f785,{scaleX:_0x12a2c0,scaleY:_0x2c9f68}=this[_0x26d47f(0x313)][_0x26d47f(0x23b)]();return Math[_0x26d47f(0x250)](_0x12a2c0,_0x2c9f68);}}var It=Object[_0x16f785(0x2a8)],vt=(_0x10706d,_0xa8519a,_0x2a2631,_0x560a27)=>{const _0x7b2a0e=_0x16f785;for(var _0x3d5598=_0x560a27>0x1?void 0x0:_0x560a27?It(_0xa8519a,_0x2a2631):_0xa8519a,_0x4f9efe=_0x10706d[_0x7b2a0e(0x378)]-0x1,_0x3d55b8;_0x4f9efe>=0x0;_0x4f9efe--)(_0x3d55b8=_0x10706d[_0x4f9efe])&&(_0x3d5598=_0x3d55b8(_0x3d5598)||_0x3d5598);return _0x3d5598;},W=(_0xcd323d,_0x472e91)=>(_0xd9af25,_0x48a457)=>_0x472e91(_0xd9af25,_0x48a457,_0xcd323d);let Ie=class extends a['RxDisposable']{constructor(_0xa7ad43,_0x223f8b,_0x225d06,_0x1c99b0,_0x13108b){const _0x5880dc=_0x16f785;super(),h(this,_0x5880dc(0x1dc),[]),h(this,'_cursors',[]),(this['_context']=_0xa7ad43,this[_0x5880dc(0x149)]=_0x223f8b,this[_0x5880dc(0x26c)]=_0x225d06,this[_0x5880dc(0x333)]=_0x1c99b0,this[_0x5880dc(0x1d0)]=_0x13108b,this[_0x5880dc(0x39e)]());}[_0x16f785(0x39e)](){const _0x1608e7=_0x16f785,_0x395cf4=this[_0x1608e7(0x31a)][_0x1608e7(0x1b8)],_0x4ec103=this['_docSkeletonManagerService'];this['disposeWithMe'](d[_0x1608e7(0x33d)]([this[_0x1608e7(0x26c)][_0x1608e7(0x3a8)](_0x395cf4),this[_0x1608e7(0x1d0)][_0x1608e7(0x3a5)]])['pipe']($[_0x1608e7(0x1a1)](([_0xbd486d,_0x565a1d])=>({'skeleton':_0x4ec103['getSkeleton'](),'cursors':[..._0xbd486d[_0x1608e7(0x1fd)]()][_0x1608e7(0x195)](_0x49cad1=>({..._0x49cad1,'color':this[_0x1608e7(0x1d0)][_0x1608e7(0x19f)](_0x49cad1['color'])}))})))[_0x1608e7(0x1fa)](_0x4905f0=>{const _0x893461=_0x1608e7;if(this[_0x893461(0x165)](),_0x4905f0){const {skeleton:_0x3ad240,cursors:_0x3dd4d6}=_0x4905f0;this[_0x893461(0x3bb)](_0x3ad240,_0x3dd4d6);}})),this[_0x1608e7(0x3ba)](),this[_0x1608e7(0x1b5)]();}[_0x16f785(0x3bb)](_0x19152f,_0x24a59a){const _0x56c1df=_0x16f785,{scene:_0x2674bf,mainComponent:_0x2c9ee2}=this[_0x56c1df(0x31a)],_0x3e0dcf=_0x24a59a[_0x56c1df(0x1a1)](_0x508b10=>new De(_0x508b10,_0x2674bf,_0x19152f,_0x2c9ee2));this['_cursorShapes']=_0x3e0dcf,this[_0x56c1df(0x38a)]=_0x24a59a;}['_refreshCollabCursors'](){const _0x4e0900=_0x16f785;this[_0x4e0900(0x165)]();const {scene:_0xc58f03,mainComponent:_0x19c8ca}=this[_0x4e0900(0x31a)],_0x52cb4b=this['_docSkeletonManagerService'][_0x4e0900(0x180)](),_0x49a6bd=this[_0x4e0900(0x38a)][_0x4e0900(0x1a1)](_0x108d27=>new De(_0x108d27,_0xc58f03,_0x52cb4b,_0x19c8ca));this['_cursorShapes']=_0x49a6bd;}['_removeCollabCursors'](){const _0x1ec0ed=_0x16f785;this['_cursorShapes'][_0x1ec0ed(0x35e)](_0x398edb=>_0x398edb[_0x1ec0ed(0x2c5)]()),this[_0x1ec0ed(0x1dc)]=[];}[_0x16f785(0x1b5)](){const _0xb4b42=_0x16f785,_0x2c4eec=[b['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0xb4b42(0x333)][_0xb4b42(0x34f)](_0x357fb9=>{const _0x479664=_0xb4b42;_0x2c4eec[_0x479664(0x178)](_0x357fb9['id'])&&_0x357fb9[_0x479664(0x1d5)][_0x479664(0x1b8)]===this['_context'][_0x479664(0x1b8)]&&this[_0x479664(0x2bc)]();}));}[_0x16f785(0x3ba)](){const _0x33510b=_0x16f785;this[_0x33510b(0x3b2)](a['fromEventSubject'](this[_0x33510b(0x31a)][_0x33510b(0x2e8)][_0x33510b(0x215)])['pipe']($['filter'](_0x20203f=>_0x20203f['type']===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x33510b(0x183)]),$[_0x33510b(0x15a)](0x10))['subscribe'](()=>{const _0x73b815=_0x33510b;this[_0x73b815(0x2bc)]();}));}};Ie=vt([W(0x1,a['Inject'](Y[_0x16f785(0x17a)])),W(0x2,a['Inject'](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x16f785(0x2c4)](a[_0x16f785(0x39c)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x16f785(0x31e)]{constructor(_0x5596f8,_0x5113dc){const _0x25fa1e=_0x16f785;super(_0x5596f8,_0x5113dc),h(this,_0x25fa1e(0x2c0)),h(this,_0x25fa1e(0x264),!0x1),h(this,_0x25fa1e(0x24b)),h(this,'_name',''),h(this,_0x25fa1e(0x2de),_0x25fa1e(0x357)),h(this,'_backgroundColor'),(_0x5113dc&&this['setShapeProps'](_0x5113dc),this['onPointerEnter$'][_0x25fa1e(0x15d)](()=>this[_0x25fa1e(0x171)]({'hovered':!0x0})),this[_0x25fa1e(0x3bf)][_0x25fa1e(0x15d)](()=>this[_0x25fa1e(0x171)]({'hovered':!0x1})));}[_0x16f785(0x171)](_0x56863c){const _0x43331f=_0x16f785;var _0x55217a,_0xa93e45,_0x39edf3,_0x5467d2,_0x41b220,_0x16c821;this[_0x43331f(0x2c0)]=(_0x55217a=_0x56863c['color'])!=null?_0x55217a:this['_color'],this[_0x43331f(0x264)]=(_0xa93e45=_0x56863c[_0x43331f(0x2cc)])!=null?_0xa93e45:this[_0x43331f(0x264)],this[_0x43331f(0x24b)]=(_0x39edf3=_0x56863c['range'])!=null?_0x39edf3:this[_0x43331f(0x24b)],this[_0x43331f(0x21b)]=(_0x5467d2=_0x56863c[_0x43331f(0x291)])!=null?_0x5467d2:this['_name'],this[_0x43331f(0x2de)]=(_0x41b220=_0x56863c[_0x43331f(0x288)])!=null?_0x41b220:this[_0x43331f(0x2de)],this[_0x43331f(0x1a8)]=(_0x16c821=_0x56863c[_0x43331f(0x24d)])!=null?_0x16c821:this['_backgroundColor'],this['transformByState']({'width':_0x56863c['width'],'height':_0x56863c['height']});}[_0x16f785(0x26b)](_0x2b2684){const _0x1a6d52=_0x16f785,{row:_0x5aa442,column:_0x30cb2a}=_0x2b2684;if(_0x5aa442>=this[_0x1a6d52(0x24b)][_0x1a6d52(0x2a9)]&&_0x5aa442<=this[_0x1a6d52(0x24b)][_0x1a6d52(0x297)]&&_0x30cb2a>=this[_0x1a6d52(0x24b)][_0x1a6d52(0x337)]&&_0x30cb2a<=this[_0x1a6d52(0x24b)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x16f785(0x338)](_0x8afecd){return!0x1;}[_0x16f785(0x236)](_0x17a17d){const _0x536e2b=_0x16f785;p['Rect'][_0x536e2b(0x223)](_0x17a17d,{'width':this[_0x536e2b(0x2b6)],'height':this[_0x536e2b(0x2cb)],'strokeWidth':mt,'stroke':this[_0x536e2b(0x2c0)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x536e2b(0x264)]&&(_0x17a17d['save'](),_0x17a17d[_0x536e2b(0x184)](0x1,0x0,0x0,0x1,this[_0x536e2b(0x2b6)],this[_0x536e2b(0x2de)]==='bottom'?0x0:-0x14),ee[_0x536e2b(0x223)](_0x17a17d,{'text':this[_0x536e2b(0x21b)],'color':this[_0x536e2b(0x2c0)]}),_0x17a17d[_0x536e2b(0x1d9)]());}}var Ct=Object[_0x16f785(0x2a8)],pt=(_0x42b10b,_0x12562d,_0xe82fc6,_0x3c1bfe)=>{for(var _0x222ddf=_0x3c1bfe>0x1?void 0x0:_0x3c1bfe?Ct(_0x12562d,_0xe82fc6):_0x12562d,_0x3a96c6=_0x42b10b['length']-0x1,_0x5757dc;_0x3a96c6>=0x0;_0x3a96c6--)(_0x5757dc=_0x42b10b[_0x3a96c6])&&(_0x222ddf=_0x5757dc(_0x222ddf)||_0x222ddf);return _0x222ddf;},ae=(_0x3f773d,_0x5a8e03)=>(_0x4dd48c,_0x230327)=>_0x5a8e03(_0x4dd48c,_0x230327,_0x3f773d);const bt=0x1389;let ve=class extends a[_0x16f785(0x191)]{constructor(_0x2041f5,_0x4127f3,_0x38507b,_0x21c2f9){const _0x141e33=_0x16f785;super(),h(this,_0x141e33(0x38a),new Set()),h(this,_0x141e33(0x36c),null),(this[_0x141e33(0x31a)]=_0x2041f5,this[_0x141e33(0x256)]=_0x4127f3,this[_0x141e33(0x26c)]=_0x38507b,this[_0x141e33(0x1d0)]=_0x21c2f9,this[_0x141e33(0x39e)]());}[_0x16f785(0x39e)](){const _0x59be53=_0x16f785;this[_0x59be53(0x256)][_0x59be53(0x32b)][_0x59be53(0x1a6)]($[_0x59be53(0x341)](this[_0x59be53(0x332)]),$[_0x59be53(0x232)](_0x287f62=>{const _0x12e147=_0x59be53;if(_0x287f62){const _0x30d418=_0x287f62['sheetId'];return d[_0x12e147(0x33d)](this['_collabCursorController']['getCollabCursors$'](this[_0x12e147(0x31a)][_0x12e147(0x1b8)]),this[_0x12e147(0x1d0)][_0x12e147(0x3a5)])[_0x12e147(0x1a6)]($[_0x12e147(0x1a1)](([_0x1deca4,_0x2beb63])=>{const _0x149663=new Map();return _0x1deca4['forEach']((_0x387de0,_0x2281f4)=>{const _0x3c0d73=_0x2ff8;if(_0x387de0[_0x3c0d73(0x35a)]===_0x30d418){const _0x258217={..._0x387de0};_0x258217[_0x3c0d73(0x3b5)]=this[_0x3c0d73(0x1d0)][_0x3c0d73(0x19f)](_0x387de0['color']),_0x149663['set'](_0x2281f4,_0x258217);}}),{'skeleton':_0x287f62,'cursors':_0x149663};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x59be53(0x1fa)](({skeleton:_0x44163f,cursors:_0xd14108})=>{const _0x889166=_0x59be53;this[_0x889166(0x165)](),_0x44163f&&this[_0x889166(0x3bb)](_0x44163f,_0xd14108);}),this[_0x59be53(0x256)][_0x59be53(0x32b)][_0x59be53(0x1fa)](_0x185a34=>{const _0x36a55a=_0x59be53;if(_0x185a34==null)return;const {skeleton:_0x463c08}=_0x185a34,{scene:_0x5c3834}=this[_0x36a55a(0x31a)];_0x5c3834['onPointerMove$'][_0x36a55a(0x15d)](a[_0x36a55a(0x206)](_0x57c0ce=>{const _0x385cd2=_0x36a55a;var _0x22fabf,_0x3969b7;const {offsetX:_0xf5ceee,offsetY:_0x128c01}=_0x57c0ce,{x:_0x12c387,y:_0x299bfe}=_0x5c3834[_0x385cd2(0x217)](p['Vector2'][_0x385cd2(0x1ee)]([_0xf5ceee,_0x128c01])),{scaleX:_0x5332a6,scaleY:_0x38c4a5}=_0x5c3834[_0x385cd2(0x23b)](),_0x31656d=_0x5c3834[_0x385cd2(0x1cb)](p[_0x385cd2(0x2b8)][_0x385cd2(0x278)]),_0x118555=_0x5c3834[_0x385cd2(0x2d3)](p[_0x385cd2(0x1ef)][_0x385cd2(0x1ee)]([_0x12c387,_0x299bfe]),_0x31656d),_0x471985=_0x463c08[_0x385cd2(0x2df)](_0xf5ceee,_0x128c01,_0x5332a6,_0x38c4a5,_0x118555);((_0x22fabf=this[_0x385cd2(0x36c)])==null?void 0x0:_0x22fabf[_0x385cd2(0x1b1)])===_0x471985[_0x385cd2(0x1b1)]&&((_0x3969b7=this[_0x385cd2(0x36c)])==null?void 0x0:_0x3969b7['row'])===_0x471985[_0x385cd2(0x2ad)]||this[_0x385cd2(0x38a)][_0x385cd2(0x35e)](_0x1833f4=>{const _0x13cd76=_0x385cd2;_0x1833f4[_0x13cd76(0x26b)](_0x471985);});},0x64));});}[_0x16f785(0x3bb)](_0x280243,_0x5de8f7){const _0x479d0d=_0x16f785;var _0x3a559e;const _0x452b53=(_0x3a559e=this[_0x479d0d(0x256)]['getCurrent']())==null?void 0x0:_0x3a559e[_0x479d0d(0x1b9)];if(!_0x452b53)return;const _0x2c4bfa=this['_getSheetObject']();if(!_0x2c4bfa)return;this[_0x479d0d(0x38a)][_0x479d0d(0x35e)](_0x503d8c=>{const _0x1ea071=_0x479d0d;_0x503d8c[_0x1ea071(0x18a)]();});const {scene:_0x2c1ec0}=_0x2c4bfa,_0x23e3ee=Et(Array['from'](_0x5de8f7[_0x479d0d(0x1fd)]()))['map'](_0x5704c3=>{const _0x2a8e18=_0x479d0d,{color:_0x5c9357,range:_0x462f35,name:_0x59e55d,selection:_0x9f0cd8,sheetID:_0x27b826}=_0x5704c3,{startColumn:_0x18b5fe,startRow:_0x1e0215,endColumn:_0x2efb11,endRow:_0x113346}=_0x462f35,_0x26e70c=X[_0x2a8e18(0x2ef)](_0x1e0215,_0x18b5fe,_0x2c1ec0,_0x452b53),_0x3c8e7f=X[_0x2a8e18(0x2ef)](_0x113346,_0x2efb11,_0x2c1ec0,_0x452b53),{columnHeaderHeightAndMarginTop:_0x554676}=_0x452b53,{startX:_0x209df0,startY:_0x265c42}=_0x26e70c,{endX:_0x5dfb22,endY:_0x182d1e}=_0x3c8e7f,_0xcce6e1=_0x5dfb22-_0x209df0,_0x527079=_0x182d1e-_0x265c42,_0x1fe9f3={'labelPosition':_0x265c42-_0x554676>=K?_0x2a8e18(0x357):_0x2a8e18(0x235),'sheetID':_0x27b826,'range':_0x462f35,'color':_0x5c9357,'name':_0x59e55d,'selection':_0x9f0cd8,'left':_0x209df0,'top':_0x265c42,'width':_0xcce6e1,'height':_0x527079,'evented':!0x1,'zIndex':bt};return new Ae(_0x59e55d,_0x1fe9f3);});_0x2c1ec0[_0x479d0d(0x1ab)](_0x23e3ee,gt),this[_0x479d0d(0x38a)]=new Set(_0x23e3ee);}['_removeCollabCursors'](){const _0x10a056=_0x16f785;var _0x7edb66;(_0x7edb66=this[_0x10a056(0x38a)])==null||_0x7edb66[_0x10a056(0x35e)](_0xc05268=>_0xc05268['dispose']());}['_getSheetObject'](){const _0x20e8aa=_0x16f785;return X[_0x20e8aa(0x1a7)](this[_0x20e8aa(0x31a)]['unit'],this[_0x20e8aa(0x31a)]);}};ve=pt([ae(0x1,a[_0x16f785(0x2c4)](X[_0x16f785(0x13d)])),ae(0x2,a[_0x16f785(0x2c4)](x)),ae(0x3,a[_0x16f785(0x2c4)](a[_0x16f785(0x39c)]))],ve);function Et(_0xa86d7){const _0x37c3c6=_0x16f785,_0x24d99c=new Map();return _0xa86d7['forEach'](_0x404a9a=>{const _0x3110de=_0x2ff8;if(_0x24d99c[_0x3110de(0x13f)](_0x404a9a[_0x3110de(0x14b)])){const _0x4f96d9=_0x24d99c[_0x3110de(0x22c)](_0x404a9a['selection']);_0x4f96d9[_0x3110de(0x291)]+=',\x20'+_0x404a9a[_0x3110de(0x291)];}else _0x24d99c[_0x3110de(0x2fc)](_0x404a9a['selection'],_0x404a9a);}),Array['from'](_0x24d99c[_0x37c3c6(0x1fd)]());}var E=function(){const _0x11562c=_0x16f785;return E=Object[_0x11562c(0x38c)]||function(_0x466414){const _0x52707c=_0x11562c;for(var _0x2a3fde,_0x4b3d8d=0x1,_0x21c706=arguments[_0x52707c(0x378)];_0x4b3d8d<_0x21c706;_0x4b3d8d++){_0x2a3fde=arguments[_0x4b3d8d];for(var _0x38791c in _0x2a3fde)Object[_0x52707c(0x2d2)][_0x52707c(0x309)][_0x52707c(0x387)](_0x2a3fde,_0x38791c)&&(_0x466414[_0x38791c]=_0x2a3fde[_0x38791c]);}return _0x466414;},E[_0x11562c(0x2a6)](this,arguments);},Tt=function(_0x24ad75,_0x548715){const _0x52abb5=_0x16f785;var _0x2bdf03={};for(var _0x47a47d in _0x24ad75)Object['prototype'][_0x52abb5(0x309)][_0x52abb5(0x387)](_0x24ad75,_0x47a47d)&&_0x548715[_0x52abb5(0x23e)](_0x47a47d)<0x0&&(_0x2bdf03[_0x47a47d]=_0x24ad75[_0x47a47d]);if(_0x24ad75!=null&&typeof Object[_0x52abb5(0x25c)]==_0x52abb5(0x1c2)){for(var _0x3af01f=0x0,_0x47a47d=Object[_0x52abb5(0x25c)](_0x24ad75);_0x3af01f<_0x47a47d['length'];_0x3af01f++)_0x548715[_0x52abb5(0x23e)](_0x47a47d[_0x3af01f])<0x0&&Object[_0x52abb5(0x2d2)]['propertyIsEnumerable'][_0x52abb5(0x387)](_0x24ad75,_0x47a47d[_0x3af01f])&&(_0x2bdf03[_0x47a47d[_0x3af01f]]=_0x24ad75[_0x47a47d[_0x3af01f]]);}return _0x2bdf03;},pe=M[_0x16f785(0x334)](function(_0x4bb377,_0x2b8f36){const _0x6b5138=_0x16f785;var _0x34c407=_0x4bb377['icon'],_0x5b1505=_0x4bb377['id'],_0x415d7a=_0x4bb377['className'],_0x41255e=_0x4bb377['extend'],_0x5c0d10=Tt(_0x4bb377,[_0x6b5138(0x233),'id','className','extend']),_0x1c1e54=_0x6b5138(0x252)[_0x6b5138(0x261)](_0x5b1505,'\x20')[_0x6b5138(0x261)](_0x415d7a||'')[_0x6b5138(0x28e)](),_0x4d9cb5=M[_0x6b5138(0x2d6)]('_'['concat'](Dt()));return we(_0x34c407,''['concat'](_0x5b1505),{'defIds':_0x34c407[_0x6b5138(0x156)],'idSuffix':_0x4d9cb5['current']},E({'ref':_0x2b8f36,'className':_0x1c1e54},_0x5c0d10),_0x41255e);});function we(_0x914626,_0x248e1b,_0x345832,_0x170520,_0x5e1290){const _0x151160=_0x16f785;return M[_0x151160(0x2a0)](_0x914626[_0x151160(0x1cf)],E(E({'key':_0x248e1b},Ot(_0x914626,_0x345832,_0x5e1290)),_0x170520),(Rt(_0x914626,_0x345832)[_0x151160(0x219)]||[])['map'](function(_0x73257f,_0x30d4ae){const _0x8153e3=_0x151160;return we(_0x73257f,''['concat'](_0x248e1b,'-')[_0x8153e3(0x261)](_0x914626[_0x8153e3(0x1cf)],'-')['concat'](_0x30d4ae),_0x345832,void 0x0,_0x5e1290);}));}function Ot(_0x41b033,_0x4f1ef1,_0x580973){const _0x36259a=_0x16f785;var _0x4103bb=E({},_0x41b033[_0x36259a(0x27f)]);_0x580973!=null&&_0x580973['colorChannel1']&&_0x4103bb[_0x36259a(0x352)]===_0x36259a(0x2ec)&&(_0x4103bb['fill']=_0x580973[_0x36259a(0x2ec)]),_0x41b033[_0x36259a(0x1cf)]===_0x36259a(0x1ca)&&_0x4103bb['id']&&(_0x4103bb['id']=_0x4103bb['id']+_0x4f1ef1[_0x36259a(0x164)]),Object['entries'](_0x4103bb)[_0x36259a(0x35e)](function(_0x585da){const _0x2ae1bb=_0x36259a;var _0x4de4a3=_0x585da[0x0],_0x267ab3=_0x585da[0x1];_0x4de4a3===_0x2ae1bb(0x1ca)&&typeof _0x267ab3=='string'&&(_0x4103bb[_0x4de4a3]=_0x267ab3['replace'](/url\(#(.*)\)/,'url(#$1'[_0x2ae1bb(0x261)](_0x4f1ef1[_0x2ae1bb(0x164)],')')));});var _0x2455f7=_0x4f1ef1[_0x36259a(0x156)];return!_0x2455f7||_0x2455f7[_0x36259a(0x378)]===0x0||(_0x41b033['tag']==='use'&&_0x4103bb[_0x36259a(0x152)]&&(_0x4103bb[_0x36259a(0x152)]=_0x4103bb['xlink:href']+_0x4f1ef1[_0x36259a(0x164)]),Object['entries'](_0x4103bb)[_0x36259a(0x35e)](function(_0x2c7eaf){const _0x545728=_0x36259a;var _0x1f08e2=_0x2c7eaf[0x0],_0x2ae1c5=_0x2c7eaf[0x1];typeof _0x2ae1c5=='string'&&(_0x4103bb[_0x1f08e2]=_0x2ae1c5[_0x545728(0x255)](/url\(#(.*)\)/,_0x545728(0x25a)[_0x545728(0x261)](_0x4f1ef1[_0x545728(0x164)],')')));})),_0x4103bb;}function Rt(_0x4de4fc,_0x2b944c){const _0x31c3c9=_0x16f785;var _0x169653,_0x11e2fa=_0x2b944c['defIds'];return!_0x11e2fa||_0x11e2fa[_0x31c3c9(0x378)]===0x0?_0x4de4fc:_0x4de4fc['tag']===_0x31c3c9(0x16f)&&(!((_0x169653=_0x4de4fc[_0x31c3c9(0x219)])===null||_0x169653===void 0x0)&&_0x169653['length'])?E(E({},_0x4de4fc),{'children':_0x4de4fc[_0x31c3c9(0x219)][_0x31c3c9(0x1a1)](function(_0x5cc750){const _0x41d0cc=_0x31c3c9;return typeof _0x5cc750[_0x41d0cc(0x27f)]['id']=='string'&&_0x11e2fa&&_0x11e2fa[_0x41d0cc(0x23e)](_0x5cc750[_0x41d0cc(0x27f)]['id'])>-0x1?E(E({},_0x5cc750),{'attrs':E(E({},_0x5cc750[_0x41d0cc(0x27f)]),{'id':_0x5cc750[_0x41d0cc(0x27f)]['id']+_0x2b944c['idSuffix']})}):_0x5cc750;})}):_0x4de4fc;}function Dt(){const _0x4ce866=_0x16f785;return Math[_0x4ce866(0x3c4)]()[_0x4ce866(0x23a)](0x24)[_0x4ce866(0x244)](0x2,0x8);}function _0x272c(){const _0x16e408=['YUUMI_ALL_TABLES_IS_INVALID','_initStatusListener','set','addObject','DocIMEInputManagerService','_univerInstanceService','save','CHANGESET_REVISION_CONFILICT','redoState','split','_refRangeService','runRefRangeMutations','getMember','invokeId','COLORS','hasOwnProperty','UniverCollaborationClientPlugin','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','deepClone','textRanges','IDocClipboardService','serializeRangeWithSheet','SNAPSHOT_INVALID_SNAPSHOT','UNDEFINED','startsWith','_scene','getUnhiddenWorksheets','UPDATE_CURSOR','handleDeleteRangeMoveUp','addHandlerCallback','_online','connectInjector','_context','transformSelections','SetTextSelectionsOperation','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','Shape','permission.content','Tools','_removeClearOtherTimer','_hover','_revisionService','INVALID_INVITE_CODE','ENSURE_SNAPSHOT_EXECUTION','evenodd','_notificationService','jiqing.500','getUniverSheetInstance','toStringTag','currentSkeleton$','NOT_COLLAB','APPLY_NON_SEQUENTIAL_REVISION','CollaborationEvent','getUndoRedoMutationParamsCache','string','setActiveRange','dispose$','_commandService','forwardRef','DocSelectionManagerService','debounceTime','startColumn','triggerDblclick','collabStatus.offline','_handleEvent','mergeOverrideWithDependencies','_entityInit$','combineLatest','11582QwZhXL','LICENSE_IMPORT_SIZE_EXCEEDED','getDocRanges','takeUntil','@univerjs/network','Tooltip','currentColor','error','_transformUndoRedoStack','lineTo','uni.network.url-service','getItem','INTERNAL_ERROR','send','Module','#fff','off-line-single_clip0_910_343','onCommandExecuted','setItem','[CollaborationDataLoaderController]','fill','saveImage','DOC_RANGE_TYPE','_toggleOffline','_anchorDot','top','OffLineSingle','ColorKit','sheetID','handleInsertCol','_handleJoinEvent','_cachedData','forEach','symbol','roomMembers$','YUUMI_URL_COL_OUT_OF_RANGE','transformIMECache','getRangePointData','source','_handleHeartbeatEvent','_collabSessionService','_messageService','shareReplay','isActive','onRendered','origin','_lastPointer','handleInsertRangeMoveDown','RevisionService','generateRandomId','IBeforeCloseService','TOO_MANY_REQUESTS','CLOSE_ROOM','text','body','RegularPolygon','_setupSubUnitSync','getStateCache','length','_transformService','setTimeout','_cursorInfo$','RemoteUniscriptService','min','add','getColor','then','InsertRangeMoveDownCommandId','PERMISSION_DENIED','collabStatus.notCollab','_send','black','YUUMI_SUBSCRIPTION_NOT_FOUND','call','_status$','react/jsx-runtime','_cursors','path','assign','APPLY_REVISION_CONFILICT','_shapes','href','9419568HwpvSL','_docStateChangeManagerService','YUUMI_AI_RUN_FAILED','_registerRenderDependencies','blue.400','getUnitStatus$','_setupBeforeClosingHandler','setParam','unshift','createInstance','DocStateChangeManagerService','Warning','ThemeService','DeleteRangeMoveUpCommandId','_init','toDisposable','_scheduleSaving','@univerjs/engine-formula','CollaborationController','transformRemoteChangeset','range','currentTheme$','_selfUnitIDs','EMAIL_HAS_BEEN_BOUND','getCollabCursors$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_colorAssignService','getParam','MessageType','SheetCollabCursorShape','0\x200\x2016\x2016','CollaborationDataLoaderController','transformMutation','SYNCED','disposeWithMe','getOffsetConfig','_updateURLWithCurrentState','color','show','IUniverInstanceService','SheetsSelectionsService','_getAnchorBounding','_initResize','_updateCollabCursors','_beforeCloseService','#FFF','_anchor','onPointerLeave$','BrowserCollaborationSocketService','DocCollaborationEntity','docStateChange$','_drawRectRange','random','_urlService','SheetSkeletonManagerService','useCallback','has','_updateLocalCursor','collabStatus.fetchMiss','Plugin','_eventUnsubscribe','LocaleService','handleIRemoveRow','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','getActiveRange','contains','_docSkeletonManagerService','pluginName','selection','transformMutationsWithChangeset','_clearOtherTimers','JOIN_ROOM_FAILED','getUnitId','IImageIoService','HEADER_MENU','xlink:href','IRemoteInstanceService','registerRefRange','56iDHajM','defIds','enableLocalCache','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','useDependency','throttleTime','PENDING','whenReady','subscribeEvent','_unitOnClients','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','MemberService','type','memberID','clearTimeout','idSuffix','_removeCollabCursors','roomMembers','unitID','handleInsertRow','...','collaboration-client-ui.config','_ensureSubject','runOnServer','InsertRangeMoveRightCommandId','getTypeOfUnitDisposed$','defs','WECHAT_HAS_BEEN_BOUND','setShapeProps','_textBubble','setInterval','RichTextEditingMutation','_handleHover','DependentOn','YUUMI_UNABLE_LOAD_URL','includes','ILogService','DocSkeletonManagerService','collabCursorState$','CollaborationUIEventService','OFFLINE','2013085CeLRsw','hide','getSkeleton','fillStyle','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','resize','transform','_syncEditingCollabCursorService','getSheetId','stringify','CONFLICT','cursorInfo','makeDirty','setStateCache','CollaborationSocketService','svg','size','rgba(255,\x20255,\x20255,\x200.01)','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','RxDisposable','div','IRenderManagerService','isTransformMutationFailure','flatMap','_disabled','subunit','SetSelectionsOperation','ICommandService','focused$','INVALID_ARGUMENT','parse','IUIPartsService','_transformHistoryAndStateStack','getColorFromTheme','filter','map','deserializeRangeWithSheet','saveOfflineData','@univerjs/design','SessionStatus','pipe','getSheetObject','_backgroundColor','round','ONLINE','addObjects','1em','_docTransformStateCacheService','getCurrentSelections','requireSession','runId','column','executeCommand','_scheduleHeartbeat','_injector','_initCommandExecutedListener','_docTransformIMECacheService','CollaborationStatus','unitId','skeleton','mutations','entityInit$','_docSkeleton','m2Prime','delete','LICENSE_DISTRO_REJECTED','getSheetBySheetId','all','function','next','collabStatus.synced','arc','CONNECTOR_DATA_TOO_LARGE','Disposable','addEventListener','_hideTimer','mask','getViewport','WebSocketService','_createSocketURL','4eCbKtV','tag','_themeService','_memberService','TEXT_RANGE_LAYER_INDEX','sessionTicket','editingUnit','params','onLocalMutation','_updateSubUnitFromURLParams','replaceDocRanges','restore','purple.300','getMemberID','_cursorShapes','USERS_LEAVE','UNRECOGNIZED','0\x200\x2017\x2016','_renderManagerService','INVITE_CODE_ALREADY_BOUND','UNIVER_DOC','UnitStatus','location','4483339poAmvi','_collaborationUIEventService','DisposableCollection','UNAUTHENTICATED','distinctUntilChanged','APPLY_PERMISSION_DENIED','CollaborationUIEventId','6rxQosW','ITransformService','FromArray','Vector2','Subject','_getSessionTicket','off-line-single','rxjs/operators','measureText','displayName','red.300','_handleLeaveEvent','newValue','findNodePositionByCharIndex','subscribe','_registerDependencies','_instanceService','values','APPLY_DUPLICATED','_toggleOnline','LOCAL_CACHE_INTERVAL_KEY','ISnapshotServerService','session.will-retry','_scheduleClearOtherTimer','search','PY_RUNTIME_SCRIPT_ERROR','debounce','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','session.connection-failed','createSocket','getFocusedUnit','undoState','_session','USER_NOT_INVITED_CODE','none','_startSheetCollabCursor','jsxs','90lzRbxl','Error','disposeUnit','data','onTransformChange$','collaboration.closeRoom','getRelativeToViewportCoord','ALREADY_EXISTS','children','isArray','_name','DEFAULT_WS_SESSION_TICKET_URL','setAlpha','getRenderById','AWAITING_WITH_PENDING','sessionStatus$','some','InsertRowCommandId','drawWith','rxjs','NodePositionConvertToRectRange','Unknown\x20user','setUndoRedoMutationParamsCache','getLocalCacheKey','BehaviorSubject','closePath','_saveTaskMap','get','_onCursorUpdate','YUUMI_NO_CUBOID_FOR_QUESTION','clipPath','transformStateCache','IMessageService','switchMap','icon','subUnitId','bottom','_draw','updateOfflineData','handleIRemoveCol','_config','toString','getAncestorScale','NOT_FOUND','LICENSE_MAX_UNITS_EXCEEDED','indexOf','createIdentifier','defineProperty','Injector','onPointerEnter$','disableLocalCache','substring','_colorIndex','searchParams','_docTransformSelectionsService','mapTo','@univerjs/rpc','_drawAnchor','_range','storage','backgroundColor','UniverIcon','isEditing','max','actions','univerjs-icon\x20univerjs-icon-','UNIVER_SHEET','loadUnit','replace','_sheetSkeletonManagerService','asObservable','UniverCollaborationClientUIPlugin','on-line-single','url(#$1','/run/','getOwnPropertySymbols','_unitStatus','m1Prime','push','IConfigService','concat','getConfig','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','_hovered','_getSaveTimeout','complete','@univerjs/docs','jsx','INVITE_CODE_REQUIRED','INVITE_CODE_HAS_BEEN_UES','onMouseMove','_collabCursorController','_startDocCollabCursor','fillText','NodePositionConvertToCursor','wsSessionTicketUrl','collab-rect-range-','toRgbString','event$','EffectRefRangId','doc.mutation.rich-text-editing','urlChange$','_initEntityListener','VIEW_MAIN','ranges','_onRefRangeChange','YUUMI_RATE_OVER_LIMIT','moveTo','url(#off-line-single_clip0_910_343)','merge','attrs','_collaborationController','_logService','fillRule','debug','_saveCache','CollaborationStatusDisplay','_assignedColors','clearInterval','labelPosition','_roomMembers$','loadOfflineData','_document','Rectangle','override','trim','YUUMI_TABLE_NOT_FOUND_IN_UNIT','_localeService','name','MoveRangeCommandId','InsertColCommandId','code','_configService','APPLY_REJECT','endRow','INotificationService','_initStatusComponent','Rect','from','WebBrowserSingleActiveUnitService','onStarting','MOBILE_HAS_BEEN_BOUND','[RemoteUniscriptService]:\x20no\x20focused\x20unit','createElement','with','_collabCursorState$','assignAColorForMemberID','783220QifWfL','UniverInstanceType','apply','_getScale','getOwnPropertyDescriptor','startRow','_onCursorDelete','getValue','_id','row','_uiPartsService','_heartbeatTimer','registerComponent','ILocalCacheService','registerRenderModule','Workbook','_drawTextRange','_entities','width','SetWorksheetActivateCommand','SHEET_VIEWPORT_KEY','YUUMI_ASYNCIO_CANCELLED','exhaustSavingTask','Failed','_refreshCollabCursors','collab-text-anchor-','isTransformMutationsWithChangesetSuccess','RefRangeService','_color','ISocketService','history','_doCreateSocket','Inject','dispose','handleDeleteRangeMoveLeft','RemoveRowCommandId','_localStorageService','_dataLoaderService','M0\x200H16V16H0z','height','hovered','fromEvent','COMPLETION_FINISHED','pushState','MUTATION','registerDependencies','prototype','getVpScrollXYInfoByPosToVp','DataLoaderService','_docSyncEditingCollabCursorService','useRef','OTHER_CLIENTS_EDITING','_render','LICENSE_EXPORT_SIZE_EXCEEDED','DeleteRangeMoveLeftCommandId','LOGIN_FAILED','HTTPService','207039JEKtZA','_labelPosition','getCellPositionByOffset','_transformPreviousActiveRange','_initDependencies','Optional','_initEvent','init','_httpService','@univerjs/docs-ui','RemoveColCommandId','engine','_cursor','getCollabEntity$','TEXT','colorChannel1','OnLineSingle','unsubscribe','getCoordByCell','handleInsertRangeMoveRight','replaceState','_localCacheService','handleMoveRange','getActiveSheet','DesktopCollaborationStatusDisplayController','eventID','13846063iuGbQZ','SNAPSHOT_HAS_BEEN_REMOVED','cursorInfo$'];_0x272c=function(){return _0x16e408;};return _0x272c();}pe['displayName']=_0x16f785(0x24e);var Ut={'tag':_0x16f785(0x18d),'attrs':{'fill':_0x16f785(0x20e),'viewBox':_0x16f785(0x3ae),'width':'1em','height':_0x16f785(0x1ac)},'children':[{'tag':'g','attrs':{'clipPath':_0x16f785(0x27d)},'children':[{'tag':_0x16f785(0x38b),'attrs':{'stroke':_0x16f785(0x344),'d':_0x16f785(0x263),'strokeLinecap':_0x16f785(0x1a9),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x16f785(0x16f),'attrs':{},'children':[{'tag':_0x16f785(0x22f),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x16f785(0x38b),'attrs':{'fill':_0x16f785(0x34d),'d':_0x16f785(0x2ca)}}]}]}],'defIds':[_0x16f785(0x34e)]},ye=M[_0x16f785(0x334)](function(_0x530a03,_0x46356c){const _0x5c8bdb=_0x16f785;return M['createElement'](pe,Object[_0x5c8bdb(0x38c)]({},_0x530a03,{'id':_0x5c8bdb(0x1f2),'ref':_0x46356c,'icon':Ut}));});ye[_0x16f785(0x1f5)]=_0x16f785(0x358);function _0x2ff8(_0x3f369e,_0x2f0bb4){const _0x272cec=_0x272c();return _0x2ff8=function(_0x2ff8f8,_0x595d44){_0x2ff8f8=_0x2ff8f8-0x13d;let _0x3d13d8=_0x272cec[_0x2ff8f8];return _0x3d13d8;},_0x2ff8(_0x3f369e,_0x2f0bb4);}var Nt={'tag':_0x16f785(0x18d),'attrs':{'fill':_0x16f785(0x20e),'viewBox':_0x16f785(0x1df),'width':'1em','height':_0x16f785(0x1ac)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x16f785(0x344),'d':_0x16f785(0x190),'strokeLinecap':_0x16f785(0x1a9),'strokeLinejoin':_0x16f785(0x1a9),'strokeWidth':1.2}}]},{'tag':_0x16f785(0x16f),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x16f785(0x38b),'attrs':{'fill':'#fff','d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M[_0x16f785(0x334)](function(_0x4c8152,_0x7e9b65){const _0x42fdd6=_0x16f785;return M[_0x42fdd6(0x2a0)](pe,Object[_0x42fdd6(0x38c)]({},_0x4c8152,{'id':_0x42fdd6(0x259),'ref':_0x7e9b65,'icon':Nt}));});$e['displayName']=_0x16f785(0x2ed);function Mt(_0x1ac205){const _0x127484=_0x16f785;switch(_0x1ac205){case u[_0x127484(0x1b7)]['OFFLINE']:return _0x127484(0x339);case u[_0x127484(0x1b7)][_0x127484(0x188)]:return'collabStatus.conflict';case u[_0x127484(0x1b7)]['FETCH_MISS']:return _0x127484(0x141);case u[_0x127484(0x1b7)][_0x127484(0x32c)]:return _0x127484(0x383);case u['CollaborationStatus']['AWAITING']:case u[_0x127484(0x1b7)][_0x127484(0x21f)]:return'collabStatus.syncing';case u[_0x127484(0x1b7)][_0x127484(0x3b1)]:case u[_0x127484(0x1b7)][_0x127484(0x15b)]:return _0x127484(0x1c4);}}function xe(_0x58f04c){const _0x1980dd=_0x16f785,{status$:_0x5eca79}=_0x58f04c,_0x368b44=T['useObservable'](_0x5eca79,u[_0x1980dd(0x1b7)][_0x1980dd(0x32c)]),_0x2c80b9=T['useDependency'](a[_0x1980dd(0x144)]),_0x42565e=T[_0x1980dd(0x159)](u['CollaborationSessionService']),_0x3bc26b=_0x368b44!==u['CollaborationStatus'][_0x1980dd(0x17d)],_0x1f2038=_0x2c80b9['t'](Mt(_0x368b44)),_0x273946=_0x3bc26b?P[_0x1980dd(0x268)]($e,{}):P['jsx'](ye,{}),_0x290c0b=M[_0x1980dd(0x13e)](()=>{_0x3bc26b||_0x42565e['reconnect']();},[_0x3bc26b,_0x42565e]);function _0x516723(){const _0x28dad2=_0x1980dd;return P[_0x28dad2(0x210)](_0x28dad2(0x192),{'className':'univer-flex\x20univer-items-center','onClick':_0x290c0b,'children':[P['jsx'](_0x28dad2(0x192),{'className':D['clsx']('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x3bc26b,'univer-text-red-500':!_0x3bc26b}),'children':_0x273946}),P[_0x28dad2(0x268)](_0x28dad2(0x192),{'className':_0x28dad2(0x15f),'children':_0x1f2038})]});}return _0x3bc26b?_0x516723():P['jsx'](D[_0x1980dd(0x343)],{'title':_0x2c80b9['t']('collab-client.tooltip.reconnect'),'children':_0x516723()});}var Lt=Object[_0x16f785(0x2a8)],Pt=(_0x1cef65,_0x540e7e,_0x2d56bf,_0x15c797)=>{const _0x1f82d2=_0x16f785;for(var _0x575c88=_0x15c797>0x1?void 0x0:_0x15c797?Lt(_0x540e7e,_0x2d56bf):_0x540e7e,_0x4b5e7d=_0x1cef65[_0x1f82d2(0x378)]-0x1,_0x29d0f4;_0x4b5e7d>=0x0;_0x4b5e7d--)(_0x29d0f4=_0x1cef65[_0x4b5e7d])&&(_0x575c88=_0x29d0f4(_0x575c88)||_0x575c88);return _0x575c88;},V=(_0x492d9c,_0x17e91f)=>(_0x2c56ae,_0x578a44)=>_0x17e91f(_0x2c56ae,_0x578a44,_0x492d9c);exports[_0x16f785(0x2f5)]=class extends a['Disposable']{constructor(_0x5033d0,_0x3dc69b,_0x290935,_0x389033){const _0x5b8447=_0x16f785;super(),h(this,'_status$',new d[(_0x5b8447(0x229))](u[_0x5b8447(0x1b7)][_0x5b8447(0x32c)])),(this[_0x5b8447(0x2ff)]=_0x5033d0,this[_0x5b8447(0x1b4)]=_0x3dc69b,this['_collaborationController']=_0x290935,this['_uiPartsService']=_0x389033,this[_0x5b8447(0x299)](),this[_0x5b8447(0x2fb)]());}['_initStatusListener'](){const _0xcd6957=_0x16f785;this[_0xcd6957(0x3b2)](this['_univerInstanceService'][_0xcd6957(0x19a)][_0xcd6957(0x1a6)](d[_0xcd6957(0x232)](()=>{const _0x49001b=_0xcd6957,_0xcc36e4=this['_univerInstanceService'][_0x49001b(0x20a)]();return _0xcc36e4?this[_0x49001b(0x280)][_0x49001b(0x2ea)](_0xcc36e4['getUnitId']()):d['of'](null);}),d[_0xcd6957(0x232)](_0x55c97c=>_0x55c97c?_0x55c97c['status$']:d['of'](u[_0xcd6957(0x1b7)]['NOT_COLLAB'])))['subscribe'](_0x153cb3=>{const _0x4bdfce=_0xcd6957;this[_0x4bdfce(0x388)][_0x4bdfce(0x1c3)](_0x153cb3);}));}['_initStatusComponent'](){const _0x5f5bc1=_0x16f785;this['disposeWithMe'](this[_0x5f5bc1(0x2ae)][_0x5f5bc1(0x2b0)](T['BuiltInUIPart'][_0x5f5bc1(0x151)],()=>T[_0x5f5bc1(0x319)](At({'status$':this[_0x5f5bc1(0x388)][_0x5f5bc1(0x257)]()}),this[_0x5f5bc1(0x1b4)])));}},exports[_0x16f785(0x2f5)]=Pt([V(0x0,a[_0x16f785(0x3b7)]),V(0x1,a[_0x16f785(0x2c4)](a[_0x16f785(0x241)])),V(0x2,a[_0x16f785(0x2c4)](u[_0x16f785(0x3a2)])),V(0x3,T[_0x16f785(0x19d)])],exports[_0x16f785(0x2f5)]);function At(_0xcceb11){const {status$:_0x14a6b1}=_0xcceb11;return function(){return P['jsx'](xe,{'status$':_0x14a6b1});};}var wt=Object[_0x16f785(0x2a8)],yt=(_0x26f6a3,_0x19a31b,_0x5d74c3,_0x130c07)=>{const _0x442479=_0x16f785;for(var _0x2c7899=_0x130c07>0x1?void 0x0:_0x130c07?wt(_0x19a31b,_0x5d74c3):_0x19a31b,_0x3c268b=_0x26f6a3[_0x442479(0x378)]-0x1,_0x2c1c83;_0x3c268b>=0x0;_0x3c268b--)(_0x2c1c83=_0x26f6a3[_0x3c268b])&&(_0x2c7899=_0x2c1c83(_0x2c7899)||_0x2c7899);return _0x2c7899;},y=(_0x36b4bd,_0x16ccd8)=>(_0x23295c,_0x573c31)=>_0x16ccd8(_0x23295c,_0x573c31,_0x36b4bd);let q=class extends a[_0x16f785(0x1c7)]{constructor(_0x2deb9d,_0x418b00,_0x5f23d6,_0x204ec1,_0x3045c1,_0x5ed711){const _0x405cc7=_0x16f785;super(),this[_0x405cc7(0x3bc)]=_0x2deb9d,this[_0x405cc7(0x2f2)]=_0x418b00,this[_0x405cc7(0x1e6)]=_0x5f23d6,this['_messageService']=_0x204ec1,this[_0x405cc7(0x327)]=_0x3045c1,this['_localeService']=_0x5ed711,this[_0x405cc7(0x396)](),this[_0x405cc7(0x2e3)]();}[_0x16f785(0x396)](){const _0xf6b6=_0x16f785;this[_0xf6b6(0x3b2)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x430325=_0xf6b6;if(this[_0x430325(0x2f2)]['saveTaskMap'][_0x430325(0x18e)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}[_0x16f785(0x2e3)](){const _0xeeaa34=_0x16f785;this['disposeWithMe'](this[_0xeeaa34(0x1e6)][_0xeeaa34(0x273)]['subscribe'](_0x1e74b9=>{const _0x19c228=_0xeeaa34;_0x1e74b9['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0x19c228(0x367)][_0x19c228(0x3b6)]({'type':D['MessageType']['Warning'],'content':this[_0x19c228(0x290)]['t']('collaboration.single-unit.warning')}),_0x1e74b9['id']===u[_0x19c228(0x1eb)][_0x19c228(0x372)]&&this[_0x19c228(0x367)]['show']({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x19c228(0x216))}),_0x1e74b9['id']===u[_0x19c228(0x1eb)]['PERMISSION_DENIED']&&this[_0x19c228(0x327)]['show']({'title':this[_0x19c228(0x290)]['t']('permission.title'),'content':this[_0x19c228(0x290)]['t'](_0x19c228(0x31f)),'type':_0x19c228(0x345),'duration':0x0}),_0x1e74b9['id']===u[_0x19c228(0x1eb)][_0x19c228(0x188)]&&this['_messageService'][_0x19c228(0x3b6)]({'type':D[_0x19c228(0x3ac)][_0x19c228(0x212)],'content':this['_localeService']['t']('collaboration.closeRoom')+'('+_0x1e74b9[_0x19c228(0x214)]+')'}),_0x1e74b9['id']===u['CollaborationUIEventId'][_0x19c228(0x14e)]&&this[_0x19c228(0x367)][_0x19c228(0x3b6)]({'type':D[_0x19c228(0x3ac)][_0x19c228(0x39b)],'content':this[_0x19c228(0x290)]['t'](_0x1e74b9[_0x19c228(0x214)]||'')}),_0x1e74b9['id']===u['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x19c228(0x367)]['show']({'type':D[_0x19c228(0x3ac)]['Warning'],'content':this[_0x19c228(0x290)]['t'](_0x19c228(0x202))}),_0x1e74b9['id']===u[_0x19c228(0x1eb)]['SOCKET_FAILED']&&this[_0x19c228(0x367)][_0x19c228(0x3b6)]({'type':D[_0x19c228(0x3ac)][_0x19c228(0x212)],'content':this['_localeService']['t'](_0x19c228(0x208))}),_0x1e74b9['id']===u[_0x19c228(0x1eb)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x19c228(0x367)][_0x19c228(0x3b6)]({'type':D[_0x19c228(0x3ac)]['Error'],'content':this[_0x19c228(0x290)]['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,T[_0x16f785(0x370)]),y(0x1,u[_0x16f785(0x2b1)]),y(0x2,a[_0x16f785(0x2c4)](u[_0x16f785(0x17c)])),y(0x3,T[_0x16f785(0x231)]),y(0x4,T[_0x16f785(0x298)]),y(0x5,a[_0x16f785(0x2c4)](a[_0x16f785(0x144)]))],q);const $t=_0x16f785(0x16a),Ue={},be=a[_0x16f785(0x23f)](_0x16f785(0x348));var xt=Object[_0x16f785(0x2a8)],jt=(_0x5eb67a,_0x1e87d0,_0x566c5d,_0x2cfa0c)=>{const _0x2eafb8=_0x16f785;for(var _0x1a4ed5=_0x2cfa0c>0x1?void 0x0:_0x2cfa0c?xt(_0x1e87d0,_0x566c5d):_0x1e87d0,_0x16ba6a=_0x5eb67a[_0x2eafb8(0x378)]-0x1,_0x4802d7;_0x16ba6a>=0x0;_0x16ba6a--)(_0x4802d7=_0x5eb67a[_0x16ba6a])&&(_0x1a4ed5=_0x4802d7(_0x1a4ed5)||_0x1a4ed5);return _0x1a4ed5;},H=(_0x43b8a9,_0xba9618)=>(_0xcde2c0,_0x31f0f8)=>_0xba9618(_0xcde2c0,_0x31f0f8,_0x43b8a9);exports[_0x16f785(0x3af)]=class extends a[_0x16f785(0x191)]{constructor(_0x4c8afe,_0x18b9d9,_0x4336f0,_0x2aa1fa,_0x468469){const _0x43d419=_0x16f785;super(),this[_0x43d419(0x3c5)]=_0x4c8afe,this[_0x43d419(0x281)]=_0x18b9d9,this[_0x43d419(0x333)]=_0x4336f0,this[_0x43d419(0x2c9)]=_0x2aa1fa,_0x468469?_0x468469==null||_0x468469[_0x43d419(0x15c)]()[_0x43d419(0x380)](()=>this[_0x43d419(0x39e)]()):(this[_0x43d419(0x281)][_0x43d419(0x283)](_0x43d419(0x351),_0x43d419(0x158)),this['_init']());}async[_0x16f785(0x39e)](){const _0x24d47d=_0x16f785,_0x470195=this['_urlService']['getParam']('unit'),_0x1c5c36=this[_0x24d47d(0x3c5)]['getParam'](_0x24d47d(0x161)),_0x412ee3=this[_0x24d47d(0x3c5)][_0x24d47d(0x3ab)](_0x24d47d(0x197));if(!_0x470195||!_0x1c5c36){this[_0x24d47d(0x281)]['debug']('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x2e7b67=await this[_0x24d47d(0x2c9)][_0x24d47d(0x254)](_0x470195,Number(_0x1c5c36),_0x412ee3);_0x2e7b67&&_0x2e7b67 instanceof a[_0x24d47d(0x2b3)]&&this[_0x24d47d(0x376)](_0x2e7b67);}async[_0x16f785(0x376)](_0x3b9e63){const _0x5d04cf=_0x16f785;await this[_0x5d04cf(0x1d7)](_0x3b9e63),_0x3b9e63['activeSheet$']['pipe'](d[_0x5d04cf(0x341)](this[_0x5d04cf(0x332)]))[_0x5d04cf(0x1fa)](_0x22097c=>{_0x22097c&&this['_updateURLWithCurrentState'](_0x22097c);}),this['_urlService']['urlChange$'][_0x5d04cf(0x1a6)](d[_0x5d04cf(0x341)](this[_0x5d04cf(0x332)]))[_0x5d04cf(0x1fa)](()=>this[_0x5d04cf(0x1d7)](_0x3b9e63));}[_0x16f785(0x3b4)](_0x5e8b6a,_0x28507b=!0x1){const _0x5612f3=_0x16f785,_0x3cd057=this[_0x5612f3(0x3c5)][_0x5612f3(0x3ab)](_0x5612f3(0x197));_0x5e8b6a['getSheetId']()!==_0x3cd057&&this[_0x5612f3(0x3c5)][_0x5612f3(0x397)](_0x5612f3(0x197),_0x5e8b6a[_0x5612f3(0x186)](),_0x28507b);}async[_0x16f785(0x1d7)](_0x34487e){const _0x4a4f78=_0x16f785;var _0xda1429;const _0x5a965e=this[_0x4a4f78(0x3c5)][_0x4a4f78(0x3ab)]('subunit');if(!_0x5a965e||!_0x34487e[_0x4a4f78(0x1c0)](_0x5a965e)){const _0x39535b=_0x34487e[_0x4a4f78(0x314)]()[0x0],_0x2c9998=_0x34487e[_0x4a4f78(0x1c0)](_0x39535b);if(!_0x2c9998)return;this[_0x4a4f78(0x3b4)](_0x2c9998,!0x0),await this['_commandService']['executeCommand'](g[_0x4a4f78(0x2b7)]['id'],{'unitId':_0x34487e['getUnitId'](),'subUnitId':_0x39535b});return;}((_0xda1429=_0x34487e[_0x4a4f78(0x2f4)]())==null?void 0x0:_0xda1429[_0x4a4f78(0x186)]())!==_0x5a965e&&await this[_0x4a4f78(0x333)][_0x4a4f78(0x1b2)](g[_0x4a4f78(0x2b7)]['id'],{'unitId':_0x34487e[_0x4a4f78(0x14f)](),'subUnitId':_0x5a965e});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x16f785(0x179)]),H(0x2,a[_0x16f785(0x199)]),H(0x3,a[_0x16f785(0x2c4)](u[_0x16f785(0x2d4)])),H(0x4,a[_0x16f785(0x2e2)](Ke[_0x16f785(0x153)]))],exports[_0x16f785(0x3af)]);var Bt=Object[_0x16f785(0x2a8)],kt=(_0x4b4bba,_0x4557f6,_0x3d8dce,_0x27d17f)=>{for(var _0x2f5e67=_0x27d17f>0x1?void 0x0:_0x27d17f?Bt(_0x4557f6,_0x3d8dce):_0x4557f6,_0x2e49d6=_0x4b4bba['length']-0x1,_0x41a32e;_0x2e49d6>=0x0;_0x2e49d6--)(_0x41a32e=_0x4b4bba[_0x2e49d6])&&(_0x2f5e67=_0x41a32e(_0x2f5e67)||_0x2f5e67);return _0x2f5e67;},ce=(_0x5f3397,_0x1a26c4)=>(_0x4b6385,_0x551c76)=>_0x1a26c4(_0x4b6385,_0x551c76,_0x5f3397);let z=class{constructor(_0x3fca7d,_0x420dbf,_0x34a519){const _0x4f7fab=_0x16f785;this[_0x4f7fab(0x1b4)]=_0x3fca7d,this[_0x4f7fab(0x379)]=_0x420dbf,this[_0x4f7fab(0x1e0)]=_0x34a519;}[_0x16f785(0x362)](_0x5d2bea){const _0x581970=_0x16f785;this[_0x581970(0x346)](_0x5d2bea),this['_transformPreviousActiveRange'](_0x5d2bea);}[_0x16f785(0x3a3)](_0xb91daf){const _0x27f943=_0x16f785,{unitID:_0x1dcafc}=_0xb91daf,_0x259811=this[_0x27f943(0x1e0)][_0x27f943(0x21e)](_0x1dcafc)[_0x27f943(0x2a1)](b[_0x27f943(0x2fe)]),{redoCache:_0x1a1709}=_0x259811[_0x27f943(0x32f)]();if(_0x1a1709[_0x27f943(0x378)]===0x0)return _0xb91daf;let _0x3fa65b=a[_0x27f943(0x320)][_0x27f943(0x30c)](_0xb91daf[_0x27f943(0x1ba)][0x0]);for(let _0x2b9166=0x0;_0x2b9166<_0x1a1709['length'];_0x2b9166++){const _0x3fdbc1={'id':'doc.mutation.rich-text-editing','params':{..._0x1a1709[_0x2b9166]}},_0x1d07f6=this[_0x27f943(0x379)]['transformMutation'](_0x3fa65b,_0x3fdbc1,!0x1);if(m['isTransformMutationFailure'](_0x1d07f6))throw _0x1d07f6[_0x27f943(0x345)];_0x3fa65b=_0x1d07f6['m1Prime'];}return{...a[_0x27f943(0x320)][_0x27f943(0x30c)](_0xb91daf),'mutations':[_0x3fa65b]};}['_transformUndoRedoStack'](_0x3cc9ea){const _0x35af61=_0x16f785,{unitID:_0x2075ae}=_0x3cc9ea,_0x349e63=this['_renderManagerService'][_0x35af61(0x21e)](_0x2075ae)[_0x35af61(0x2a1)](b['DocIMEInputManagerService']),{undoCache:_0x213199,redoCache:_0x26674d}=_0x349e63[_0x35af61(0x32f)]();if(_0x213199[_0x35af61(0x378)]===0x0||_0x26674d[_0x35af61(0x378)]===0x0)return;const _0x4cf4d8=[],_0x43b90d=[];let _0x3498c3=a['Tools'][_0x35af61(0x30c)](_0x3cc9ea[_0x35af61(0x1ba)][0x0]),_0x27b0f4=a[_0x35af61(0x320)]['deepClone'](_0x3cc9ea[_0x35af61(0x1ba)][0x0]);for(let _0x2064a5=_0x213199[_0x35af61(0x378)]-0x1;_0x2064a5>=0x0;_0x2064a5--){const _0x1fa2fb={'id':_0x35af61(0x275),'params':{..._0x213199[_0x2064a5]}},_0x881310={'id':_0x35af61(0x275),'params':{..._0x26674d[_0x2064a5]}},_0x356bbb=this[_0x35af61(0x379)]['transformMutation'](_0x3498c3,_0x1fa2fb,!0x1),_0x194351=this[_0x35af61(0x379)][_0x35af61(0x3b0)](_0x27b0f4,_0x881310,!0x1);if(m['isTransformMutationFailure'](_0x356bbb))throw _0x356bbb[_0x35af61(0x345)];if(m[_0x35af61(0x194)](_0x194351))throw _0x194351['error'];_0x4cf4d8[_0x35af61(0x398)](_0x356bbb[_0x35af61(0x1bd)]['params']),_0x43b90d[_0x35af61(0x398)](_0x194351['m2Prime'][_0x35af61(0x1d5)]),_0x3498c3=_0x356bbb[_0x35af61(0x25e)],_0x27b0f4=_0x194351[_0x35af61(0x25e)];}_0x349e63[_0x35af61(0x227)]({'undoCache':_0x4cf4d8,'redoCache':_0x43b90d});}[_0x16f785(0x2e0)](_0x43fb3e){const _0x21fd59=_0x16f785,{unitID:_0x4011aa}=_0x43fb3e,_0x267460=this[_0x21fd59(0x1e0)][_0x21fd59(0x21e)](_0x4011aa)[_0x21fd59(0x2a1)](b[_0x21fd59(0x2fe)]),_0x3ad54b=_0x267460[_0x21fd59(0x147)]();if(_0x3ad54b==null)return;const _0xec308f=[{'id':_0x21fd59(0x275),'params':{'unitId':_0x43fb3e['unitID'],'actions':null,'textRanges':[_0x3ad54b]}}],_0x3fcca0=this[_0x21fd59(0x379)][_0x21fd59(0x14c)](_0x43fb3e,_0xec308f);if(!m[_0x21fd59(0x2be)](_0x3fcca0))throw _0x3fcca0[_0x21fd59(0x345)];const _0x292fd1=_0x3fcca0[_0x21fd59(0x1bd)][0x0]['params']['textRanges'];Array[_0x21fd59(0x21a)](_0x292fd1)&&_0x292fd1[_0x21fd59(0x378)]&&_0x267460[_0x21fd59(0x331)](_0x292fd1[0x0]);}};z=kt([ce(0x0,a[_0x16f785(0x2c4)](a['Injector'])),ce(0x1,m['ITransformService']),ce(0x2,p['IRenderManagerService'])],z);var Ht=Object[_0x16f785(0x2a8)],Ft=(_0x30853f,_0x3e40c6,_0x57f0bd,_0x486c8b)=>{const _0x5a398b=_0x16f785;for(var _0x41dfe8=_0x486c8b>0x1?void 0x0:_0x486c8b?Ht(_0x3e40c6,_0x57f0bd):_0x3e40c6,_0x3e4392=_0x30853f[_0x5a398b(0x378)]-0x1,_0x1fe657;_0x3e4392>=0x0;_0x3e4392--)(_0x1fe657=_0x30853f[_0x3e4392])&&(_0x41dfe8=_0x1fe657(_0x41dfe8)||_0x41dfe8);return _0x41dfe8;},le=(_0x41d3ca,_0x44400b)=>(_0x12ea53,_0x291a0b)=>_0x44400b(_0x12ea53,_0x291a0b,_0x41d3ca);let J=class{constructor(_0x454e38,_0x4f5c8e,_0x4309d6){this['_injector']=_0x454e38,this['_transformService']=_0x4f5c8e,this['_docStateChangeManagerService']=_0x4309d6;}[_0x16f785(0x230)](_0x1f491e){const _0x31b5bf=_0x16f785;this[_0x31b5bf(0x19e)](_0x1f491e);}['transformRemoteChangeset'](_0xdc8800){const _0x5d19c2=_0x16f785,{unitID:_0x2beb3f}=_0xdc8800,{collaboration:_0x9f77ea}=this[_0x5d19c2(0x391)][_0x5d19c2(0x377)](_0x2beb3f);if(_0x9f77ea[_0x5d19c2(0x378)]===0x0)return _0xdc8800;let _0x36976f=a[_0x5d19c2(0x320)][_0x5d19c2(0x30c)](_0xdc8800[_0x5d19c2(0x1ba)][0x0]);for(let _0x42772b=0x0;_0x42772b<_0x9f77ea[_0x5d19c2(0x378)];_0x42772b++){const _0x2a9075={'id':_0x5d19c2(0x275),'params':{'unitId':_0x9f77ea[_0x42772b][_0x5d19c2(0x1b8)],..._0x9f77ea[_0x42772b]['redoState']}},_0x1f5a47=this[_0x5d19c2(0x379)][_0x5d19c2(0x3b0)](_0x36976f,_0x2a9075,!0x1);if(m[_0x5d19c2(0x194)](_0x1f5a47))throw _0x1f5a47['error'];_0x36976f=_0x1f5a47[_0x5d19c2(0x25e)];}return{...a[_0x5d19c2(0x320)][_0x5d19c2(0x30c)](_0xdc8800),'mutations':[_0x36976f]};}[_0x16f785(0x19e)](_0x700ea7){const _0x2d849a=_0x16f785,{unitID:_0x150ea9}=_0x700ea7,{history:_0x1b21c0,collaboration:_0x28acdc}=this[_0x2d849a(0x391)][_0x2d849a(0x377)](_0x150ea9);if(_0x1b21c0[_0x2d849a(0x378)]===0x0&&_0x28acdc[_0x2d849a(0x378)]===0x0)return;const _0x31c602=[],_0x24c895=[];let _0x2fde2e=a[_0x2d849a(0x320)]['deepClone'](_0x700ea7[_0x2d849a(0x1ba)][0x0]),_0x584db9=a[_0x2d849a(0x320)][_0x2d849a(0x30c)](_0x700ea7['mutations'][0x0]);for(let _0x37196f=_0x1b21c0['length']-0x1;_0x37196f>=0x0;_0x37196f--){const _0x108c33={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1b21c0[_0x37196f][_0x2d849a(0x1b8)],..._0x1b21c0[_0x37196f][_0x2d849a(0x20b)]}},_0x54650e={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1b21c0[_0x37196f][_0x2d849a(0x1b8)],..._0x1b21c0[_0x37196f][_0x2d849a(0x302)]}},_0x4d6933=this[_0x2d849a(0x379)]['transformMutation'](_0x2fde2e,_0x108c33,!0x1),_0x50f7c1=this[_0x2d849a(0x379)][_0x2d849a(0x3b0)](_0x584db9,_0x54650e,!0x1);if(m[_0x2d849a(0x194)](_0x4d6933))throw _0x4d6933['error'];if(m[_0x2d849a(0x194)](_0x50f7c1))throw _0x50f7c1[_0x2d849a(0x345)];_0x31c602[_0x2d849a(0x398)]({..._0x1b21c0[_0x37196f],'undoState':_0x4d6933[_0x2d849a(0x1bd)][_0x2d849a(0x1d5)],'redoState':_0x50f7c1[_0x2d849a(0x1bd)][_0x2d849a(0x1d5)]}),_0x2fde2e=_0x4d6933[_0x2d849a(0x25e)],_0x584db9=_0x50f7c1[_0x2d849a(0x25e)];}_0x2fde2e=a[_0x2d849a(0x320)][_0x2d849a(0x30c)](_0x700ea7[_0x2d849a(0x1ba)][0x0]),_0x584db9=a[_0x2d849a(0x320)][_0x2d849a(0x30c)](_0x700ea7[_0x2d849a(0x1ba)][0x0]);for(let _0x55cbd9=_0x28acdc[_0x2d849a(0x378)]-0x1;_0x55cbd9>=0x0;_0x55cbd9--){const _0x1904d0={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x28acdc[_0x55cbd9][_0x2d849a(0x1b8)],..._0x28acdc[_0x55cbd9][_0x2d849a(0x20b)]}},_0x27b17a={'id':_0x2d849a(0x275),'params':{'unitId':_0x28acdc[_0x55cbd9][_0x2d849a(0x1b8)],..._0x28acdc[_0x55cbd9][_0x2d849a(0x302)]}},_0x4fdc62=this['_transformService'][_0x2d849a(0x3b0)](_0x2fde2e,_0x1904d0,!0x1),_0x2881e6=this[_0x2d849a(0x379)]['transformMutation'](_0x584db9,_0x27b17a,!0x1);if(m['isTransformMutationFailure'](_0x4fdc62))throw _0x4fdc62[_0x2d849a(0x345)];if(m['isTransformMutationFailure'](_0x2881e6))throw _0x2881e6[_0x2d849a(0x345)];_0x24c895[_0x2d849a(0x398)]({..._0x28acdc[_0x55cbd9],'undoState':_0x4fdc62[_0x2d849a(0x1bd)][_0x2d849a(0x1d5)],'redoState':_0x2881e6['m2Prime']['params']}),_0x2fde2e=_0x4fdc62[_0x2d849a(0x25e)],_0x584db9=_0x2881e6[_0x2d849a(0x25e)];}this[_0x2d849a(0x391)][_0x2d849a(0x18b)](_0x150ea9,{'history':_0x31c602,'collaboration':_0x24c895});}};J=Ft([le(0x0,a['Inject'](a[_0x16f785(0x241)])),le(0x1,m['ITransformService']),le(0x2,a['Inject'](b[_0x16f785(0x39a)]))],J);var Yt=Object[_0x16f785(0x2a8)],Wt=(_0x3540be,_0x3ae685,_0x4d531a,_0x3a93e1)=>{const _0x204808=_0x16f785;for(var _0xa0ffa5=_0x3a93e1>0x1?void 0x0:_0x3a93e1?Yt(_0x3ae685,_0x4d531a):_0x3ae685,_0x500c66=_0x3540be[_0x204808(0x378)]-0x1,_0x354022;_0x500c66>=0x0;_0x500c66--)(_0x354022=_0x3540be[_0x500c66])&&(_0xa0ffa5=_0x354022(_0xa0ffa5)||_0xa0ffa5);return _0xa0ffa5;},Ne=(_0x57686f,_0x16d8ce)=>(_0x22174c,_0x19ab84)=>_0x16d8ce(_0x22174c,_0x19ab84,_0x57686f);let Z=class{constructor(_0x85e6d8,_0x37e000){const _0x45e2c9=_0x16f785;this['_injector']=_0x85e6d8,this[_0x45e2c9(0x379)]=_0x37e000;}[_0x16f785(0x31b)](_0x474923){const _0x48fdff=_0x16f785;var _0x12b496;const _0x1dfba4=this[_0x48fdff(0x1b4)]['get'](Y[_0x48fdff(0x335)]),_0x45a9fb=(_0x12b496=_0x1dfba4[_0x48fdff(0x340)]())!=null?_0x12b496:[];if(_0x45a9fb[_0x48fdff(0x378)]===0x0)return;const _0xda4211=_0x474923['unitID'],_0x3bd637=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xda4211,'actions':null,'textRanges':_0x45a9fb}}],_0xc87b78=this[_0x48fdff(0x379)][_0x48fdff(0x14c)](_0x474923,_0x3bd637);if(!m[_0x48fdff(0x2be)](_0xc87b78))throw _0xc87b78[_0x48fdff(0x345)];const _0x1c66c9=_0xc87b78[_0x48fdff(0x1bd)][0x0][_0x48fdff(0x1d5)][_0x48fdff(0x30d)];Array[_0x48fdff(0x21a)](_0x1c66c9)&&_0x1c66c9[_0x48fdff(0x378)]&&_0x1dfba4[_0x48fdff(0x1d8)](_0x1c66c9,{'unitId':_0xda4211,'subUnitId':_0xda4211},!0x1);}};Z=Wt([Ne(0x0,a[_0x16f785(0x2c4)](a[_0x16f785(0x241)])),Ne(0x1,m[_0x16f785(0x1ed)])],Z);var Vt=Object[_0x16f785(0x2a8)],Xt=(_0x1f2ac5,_0x7b7f1a,_0xa1458a,_0x456628)=>{const _0x45e858=_0x16f785;for(var _0x3d7e12=_0x456628>0x1?void 0x0:_0x456628?Vt(_0x7b7f1a,_0xa1458a):_0x7b7f1a,_0x363722=_0x1f2ac5[_0x45e858(0x378)]-0x1,_0x33960a;_0x363722>=0x0;_0x363722--)(_0x33960a=_0x1f2ac5[_0x363722])&&(_0x3d7e12=_0x33960a(_0x3d7e12)||_0x3d7e12);return _0x3d7e12;},N=(_0xaed4d,_0x41e09b)=>(_0x20e0da,_0x38baef)=>_0x41e09b(_0x20e0da,_0x38baef,_0xaed4d);let Q=class extends a[_0x16f785(0x1c7)]{constructor(_0x133136,_0x112f5c,_0x2ca386,_0x240f25,_0x24ae90,_0x48462f,_0x55852e,_0x749b51){const _0x467132=_0x16f785;super(),h(this,_0x467132(0x388),new d[(_0x467132(0x229))](u[_0x467132(0x1b7)]['NOT_COLLAB'])),(this[_0x467132(0x391)]=_0x133136,this[_0x467132(0x280)]=_0x112f5c,this[_0x467132(0x1b6)]=_0x2ca386,this[_0x467132(0x1ad)]=_0x240f25,this[_0x467132(0x247)]=_0x24ae90,this['_docSyncEditingCollabCursorService']=_0x48462f,this[_0x467132(0x367)]=_0x55852e,this[_0x467132(0x290)]=_0x749b51,this[_0x467132(0x277)]());}[_0x16f785(0x277)](){const _0x1f07d7=_0x16f785;this[_0x1f07d7(0x3b2)](this['_collaborationController'][_0x1f07d7(0x1bb)]['subscribe'](_0x5a6ccb=>{const _0xdedbe3=_0x1f07d7,_0x529599=this[_0xdedbe3(0x391)][_0xdedbe3(0x3c2)][_0xdedbe3(0x1fa)](_0x29b8f7=>{const _0x2f83d3=_0xdedbe3;if(_0x29b8f7==null)return;const {unitId:_0x55c371,redoState:_0x1a56cd,commandId:_0x59391f}=_0x29b8f7;if(_0x55c371!==_0x5a6ccb['unitID'])return;const _0x3ec5d9={'id':_0x59391f,'type':a['CommandType'][_0x2f83d3(0x2d0)],'params':{'unitId':_0x55c371,'actions':_0x1a56cd[_0x2f83d3(0x251)],'textRanges':null}};_0x5a6ccb[_0x2f83d3(0x1d6)](_0x3ec5d9);});if(_0x5a6ccb[_0xdedbe3(0x3b2)](_0x529599),_0x5a6ccb instanceof u[_0xdedbe3(0x3c1)]){const _0x51a40c={'onTransformIME':_0x13043a=>this[_0xdedbe3(0x1b6)]['transformIMECache'](_0x13043a),'onTransformState':_0xd2b250=>this[_0xdedbe3(0x1ad)][_0xdedbe3(0x230)](_0xd2b250),'onTransformSelections':_0x333d54=>this[_0xdedbe3(0x247)][_0xdedbe3(0x31b)](_0x333d54),'onSyncEditingCollabCursor':_0x3054c7=>this[_0xdedbe3(0x2d5)]['syncEditingCollabCursor'](_0x3054c7),'onTransformRemoteChangesetByIMECache':_0x176d33=>this['_docTransformIMECacheService'][_0xdedbe3(0x3a3)](_0x176d33),'onTransformRemoteChangesetByStateCache':_0x58c7e8=>this[_0xdedbe3(0x1ad)][_0xdedbe3(0x3a3)](_0x58c7e8)};_0x5a6ccb[_0xdedbe3(0x317)](_0x51a40c);}}));}};Q=Xt([N(0x0,a[_0x16f785(0x2c4)](b[_0x16f785(0x39a)])),N(0x1,a['Inject'](u['CollaborationController'])),N(0x2,a['Inject'](z)),N(0x3,a[_0x16f785(0x2c4)](J)),N(0x4,a[_0x16f785(0x2c4)](Z)),N(0x5,a[_0x16f785(0x2c4)](Ce)),N(0x6,T[_0x16f785(0x231)]),N(0x7,a[_0x16f785(0x2c4)](a[_0x16f785(0x144)]))],Q);var Gt=Object[_0x16f785(0x2a8)],Kt=(_0x1cc750,_0xa6a1c5,_0x47259a,_0x54f491)=>{const _0xc73c88=_0x16f785;for(var _0x62e594=_0x54f491>0x1?void 0x0:_0x54f491?Gt(_0xa6a1c5,_0x47259a):_0xa6a1c5,_0x4820f9=_0x1cc750[_0xc73c88(0x378)]-0x1,_0x579968;_0x4820f9>=0x0;_0x4820f9--)(_0x579968=_0x1cc750[_0x4820f9])&&(_0x62e594=_0x579968(_0x62e594)||_0x62e594);return _0x62e594;},_e=(_0x54736f,_0x3380d9)=>(_0x435910,_0x215743)=>_0x3380d9(_0x435910,_0x215743,_0x54736f);let ge=class extends a['Disposable']{constructor(_0x1f414b,_0x3b058c,_0x59d6db){const _0x4bc06c=_0x16f785;super(),h(this,'_cachedData',new Map()),h(this,_0x4bc06c(0x22b),new Map()),h(this,_0x4bc06c(0x196),!0x1),(this[_0x4bc06c(0x295)]=_0x1f414b,this[_0x4bc06c(0x2c8)]=_0x3b058c,this['_revisionService']=_0x59d6db);}[_0x16f785(0x243)](){const _0x34b487=_0x16f785;this[_0x34b487(0x196)]=!0x0;}[_0x16f785(0x157)](){this['_disabled']=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x16f785(0x2c5)](){const _0x27e16e=_0x16f785;this[_0x27e16e(0x2ba)]()[_0x27e16e(0x380)](()=>super[_0x27e16e(0x2c5)]());}async[_0x16f785(0x28a)](_0x1decfc){const _0xf15254=_0x16f785;return this[_0xf15254(0x196)]?null:this[_0xf15254(0x2c8)][_0xf15254(0x349)](u[_0xf15254(0x228)](_0x1decfc));}async[_0x16f785(0x1a3)](_0x345725,_0x11b059){const _0x3bf325=_0x16f785;return!!this[_0x3bf325(0x2c8)]['setItem'](_0x345725,_0x11b059);}[_0x16f785(0x237)](_0xfcd66f,_0x1dc7ba,_0x389987,_0x23568d){const _0x25116b=_0x16f785,_0x2f8d37=this[_0x25116b(0x323)]['getCurrentRevOfUnit'](_0xfcd66f);this[_0x25116b(0x35d)][_0x25116b(0x2fc)](_0xfcd66f,{'unitID':_0xfcd66f,'type':_0x1dc7ba,'awaitingChangeset':_0x389987,'mutations':_0x23568d,'rev':_0x2f8d37}),this[_0x25116b(0x22b)][_0x25116b(0x13f)](_0xfcd66f)||this[_0x25116b(0x3a0)](_0xfcd66f);}['_scheduleSaving'](_0x3b80a5){const _0x58664f=_0x16f785,_0xe1aa38=this[_0x58664f(0x265)]();_0xe1aa38===0x0?this[_0x58664f(0x284)](_0x3b80a5):this['_saveTaskMap'][_0x58664f(0x2fc)](_0x3b80a5,setTimeout(()=>this[_0x58664f(0x284)](_0x3b80a5),_0xe1aa38));}[_0x16f785(0x265)](){const _0x241156=_0x16f785;var _0x29d948;return(_0x29d948=this[_0x241156(0x295)][_0x241156(0x262)](u[_0x241156(0x200)]))!=null?_0x29d948:u['LOCAL_CACHE_INTERVAL'];}['_saveCache'](_0xe25a2a){const _0x10f782=_0x16f785,_0x338903=this[_0x10f782(0x22b)][_0x10f782(0x22c)](_0xe25a2a);return _0x338903!==void 0x0&&window[_0x10f782(0x163)](_0x338903),this[_0x10f782(0x2c8)][_0x10f782(0x350)](u['getLocalCacheKey'](_0xe25a2a),this['_cachedData'][_0x10f782(0x22c)](_0xe25a2a))[_0x10f782(0x380)](()=>this['_saveTaskMap'][_0x10f782(0x1be)](_0xe25a2a));}async['exhaustSavingTask'](){const _0x1fa315=_0x16f785,_0x49c80a=[];this[_0x1fa315(0x22b)][_0x1fa315(0x35e)]((_0x400991,_0x5ea1fb)=>{const _0x31f19a=_0x1fa315;window[_0x31f19a(0x163)](_0x400991),_0x49c80a[_0x31f19a(0x25f)](this[_0x31f19a(0x284)](_0x5ea1fb)[_0x31f19a(0x380)](()=>{const _0x1cdf31=_0x31f19a;this[_0x1cdf31(0x22b)][_0x1cdf31(0x1be)](_0x5ea1fb);}));}),await Promise[_0x1fa315(0x1c1)](_0x49c80a);}};ge=Kt([_e(0x0,a[_0x16f785(0x260)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x16f785(0x2c4)](m[_0x16f785(0x36e)]))],ge);class je extends a[_0x16f785(0x191)]{constructor(){const _0x26bf73=_0x16f785;super(),h(this,_0x26bf73(0x276)),this[_0x26bf73(0x276)]=d[_0x26bf73(0x2cd)](window,'popstate')[_0x26bf73(0x1a6)](d['takeUntil'](this[_0x26bf73(0x332)]),d[_0x26bf73(0x368)](0x1),d[_0x26bf73(0x248)](void 0x0));}[_0x16f785(0x397)](_0x543208,_0x15fb9f,_0x188609=!0x1){const _0x177282=_0x16f785,_0x2bbb22=new URL(window[_0x177282(0x1e4)]['href']);_0x2bbb22[_0x177282(0x246)][_0x177282(0x2fc)](_0x543208,_0x15fb9f),_0x188609?window[_0x177282(0x2c2)][_0x177282(0x2f1)]('','',_0x2bbb22[_0x177282(0x23a)]()):window[_0x177282(0x2c2)][_0x177282(0x2cf)]('','',_0x2bbb22[_0x177282(0x23a)]());}['removeParam'](_0x3adb1e,_0x585603=!0x1){const _0x1abd35=_0x16f785,_0x358a9c=new URL(window[_0x1abd35(0x1e4)]['href']);_0x358a9c[_0x1abd35(0x246)][_0x1abd35(0x1be)](_0x3adb1e),_0x585603?window['history'][_0x1abd35(0x2f1)]('','',_0x358a9c[_0x1abd35(0x23a)]()):window['history'][_0x1abd35(0x2cf)]('','',_0x358a9c[_0x1abd35(0x23a)]());}[_0x16f785(0x3ab)](_0x57be14){const _0x150a17=_0x16f785;var _0x44b2d9;return(_0x44b2d9=new URL(window[_0x150a17(0x1e4)][_0x150a17(0x38f)])[_0x150a17(0x246)][_0x150a17(0x22c)](_0x57be14))!=null?_0x44b2d9:void 0x0;}}var qt=Object[_0x16f785(0x240)],zt=Object[_0x16f785(0x2a8)],Jt=(_0x310ab9,_0x482d2b,_0xcada15)=>_0x482d2b in _0x310ab9?qt(_0x310ab9,_0x482d2b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcada15}):_0x310ab9[_0x482d2b]=_0xcada15,Zt=(_0x597054,_0x411407,_0x198d31,_0x29ad99)=>{const _0x507252=_0x16f785;for(var _0x5cf7bb=_0x29ad99>0x1?void 0x0:_0x29ad99?zt(_0x411407,_0x198d31):_0x411407,_0x4270ff=_0x597054[_0x507252(0x378)]-0x1,_0x7f27c4;_0x4270ff>=0x0;_0x4270ff--)(_0x7f27c4=_0x597054[_0x4270ff])&&(_0x5cf7bb=_0x7f27c4(_0x5cf7bb)||_0x5cf7bb);return _0x5cf7bb;},he=(_0x194906,_0x827dff)=>(_0x4a630e,_0x549367)=>_0x827dff(_0x4a630e,_0x549367,_0x194906),Qt=(_0x3f5993,_0x28a242,_0x32aba2)=>Jt(_0x3f5993,_0x28a242+'',_0x32aba2);const es='UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN';exports[_0x16f785(0x258)]=class extends a[_0x16f785(0x142)]{constructor(_0x27be84=Ue,_0x2dabc7,_0x1cbbf7,_0x249b80){const _0x1a84e1=_0x16f785;super(),this[_0x1a84e1(0x239)]=_0x27be84,this[_0x1a84e1(0x1e0)]=_0x2dabc7,this[_0x1a84e1(0x1b4)]=_0x1cbbf7,this[_0x1a84e1(0x295)]=_0x249b80;const {..._0x2f29e5}=a[_0x1a84e1(0x27e)]({},Ue,this['_config']);this['_configService']['setConfig']($t,_0x2f29e5);}[_0x16f785(0x29d)](){const _0x43fcdb=_0x16f785;this[_0x43fcdb(0x1fb)](),this[_0x43fcdb(0x2e1)]();}[_0x16f785(0x36a)](){const _0x381e3c=_0x16f785;this[_0x381e3c(0x393)]();}[_0x16f785(0x1fb)](){const _0x3f5251=_0x16f785;var _0x2b3e32;const _0x488012=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x3f5251(0x2c1)],{'useClass':G[_0x3f5251(0x1cc)]}],[u[_0x3f5251(0x2b1)],{'useClass':ge}],[exports[_0x3f5251(0x2f5)]],[Q],[q],[x],[de],[exports[_0x3f5251(0x3af)]]];a[_0x3f5251(0x2d1)](this[_0x3f5251(0x1b4)],a[_0x3f5251(0x33b)](_0x488012,(_0x2b3e32=this['_config'])==null?void 0x0:_0x2b3e32[_0x3f5251(0x28d)]));}[_0x16f785(0x393)](){const _0x4fc7dc=_0x16f785;this[_0x4fc7dc(0x3b2)](this[_0x4fc7dc(0x1e0)][_0x4fc7dc(0x2b2)](a[_0x4fc7dc(0x2a5)][_0x4fc7dc(0x1e2)],[Ie])),this[_0x4fc7dc(0x3b2)](this[_0x4fc7dc(0x1e0)]['registerRenderModule'](a['UniverInstanceType'][_0x4fc7dc(0x253)],[ve]));}[_0x16f785(0x2e1)](){const _0x588f6f=_0x16f785;a['touchDependencies'](this[_0x588f6f(0x1b4)],[[x],[exports[_0x588f6f(0x2f5)]],[Q],[q],[exports[_0x588f6f(0x3af)]]]);}},Qt(exports[_0x16f785(0x258)],_0x16f785(0x14a),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x16f785(0x176)](u[_0x16f785(0x30a)]),he(0x1,p[_0x16f785(0x193)]),he(0x2,a[_0x16f785(0x2c4)](a[_0x16f785(0x241)])),he(0x3,a[_0x16f785(0x260)])],exports[_0x16f785(0x258)]);var ts=Object[_0x16f785(0x2a8)],ss=(_0x4f4cbf,_0x2e8532,_0x42b0b0,_0x394149)=>{const _0x3b53a7=_0x16f785;for(var _0x17c049=_0x394149>0x1?void 0x0:_0x394149?ts(_0x2e8532,_0x42b0b0):_0x2e8532,_0x3cdc22=_0x4f4cbf[_0x3b53a7(0x378)]-0x1,_0x49eb61;_0x3cdc22>=0x0;_0x3cdc22--)(_0x49eb61=_0x4f4cbf[_0x3cdc22])&&(_0x17c049=_0x49eb61(_0x17c049)||_0x17c049);return _0x17c049;},F=(_0x4e2ac9,_0x257de6)=>(_0x461d4d,_0x2f907b)=>_0x257de6(_0x461d4d,_0x2f907b,_0x4e2ac9);exports['BrowserCollaborationSocketService']=class extends u[_0x16f785(0x18c)]{constructor(_0x30724b,_0x4ebfa0,_0x2b9118,_0x24b67d,_0x663411){super(_0x30724b,_0x4ebfa0,_0x2b9118,_0x24b67d,_0x663411);}async[_0x16f785(0x209)](_0x2e9bfc){const _0x2a3c37=_0x16f785,_0x2aae79=await this[_0x2a3c37(0x1f1)](),_0x48a36f=this[_0x2a3c37(0x1cd)](_0x2e9bfc,_0x2aae79);return this[_0x2a3c37(0x2c3)](_0x48a36f);}[_0x16f785(0x1cd)](_0x969840,_0x736226){const _0x1dda40=_0x16f785,_0x1d165a=typeof window>'u'?new URL(_0x969840):new URL(_0x969840,window['location'][_0x1dda40(0x36b)]);_0x1d165a[_0x1dda40(0x246)][_0x1dda40(0x2fc)](_0x1dda40(0x1d3),_0x736226);const _0x3b3753=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1dda40(0x1e4)][_0x1dda40(0x204)]);return _0x3b3753[_0x1dda40(0x22c)](_0x1dda40(0x1b0))&&_0x1d165a[_0x1dda40(0x246)][_0x1dda40(0x2fc)](_0x1dda40(0x1b0),_0x3b3753[_0x1dda40(0x22c)]('runId')),_0x1d165a[_0x1dda40(0x23a)]();}async[_0x16f785(0x1f1)](){const _0x5c3d7f=_0x16f785;var _0x3bc6c3,_0x81720a,_0x3ca8dc;const _0xe820a4=this['_configService']['getConfig'](u[_0x5c3d7f(0x182)]),_0x2e11f0=(_0x3bc6c3=_0xe820a4==null?void 0x0:_0xe820a4[_0x5c3d7f(0x270)])!=null?_0x3bc6c3:u[_0x5c3d7f(0x21c)];return(_0x3ca8dc=(_0x81720a=(await this['_httpService'][_0x5c3d7f(0x22c)](_0x2e11f0,{'headers':{'Content-Type':'application/json'}}))[_0x5c3d7f(0x374)])==null?void 0x0:_0x81720a['ticket'])!=null?_0x3ca8dc:'';}},exports[_0x16f785(0x3c0)]=ss([F(0x0,a[_0x16f785(0x2c4)](a[_0x16f785(0x241)])),F(0x1,a[_0x16f785(0x2c4)](G[_0x16f785(0x2dc)])),F(0x2,a['IConfigService']),F(0x3,a['ILogService']),F(0x4,m[_0x16f785(0x201)])],exports['BrowserCollaborationSocketService']);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class is extends a[_0x16f785(0x1c7)]{constructor(){const _0xccd900=_0x16f785;super(),h(this,_0xccd900(0x2ac),a['generateRandomId']()),h(this,_0xccd900(0x3a6),new Set()),h(this,_0xccd900(0x15e),new Map()),h(this,_0xccd900(0x2af),null),h(this,_0xccd900(0x14d),new Map()),h(this,_0xccd900(0x25d),new Map()),this[_0xccd900(0x39e)]();}[_0x16f785(0x2c5)](){const _0x4d659f=_0x16f785;super['dispose'](),this[_0x4d659f(0x14d)][_0x4d659f(0x35e)]((_0x127899,_0x250352)=>this[_0x4d659f(0x321)](_0x250352)),this[_0x4d659f(0x2af)]&&window[_0x4d659f(0x287)](this[_0x4d659f(0x2af)]);}[_0x16f785(0x395)](_0x5b7baf){const _0x1193f6=_0x16f785;return this[_0x1193f6(0x16b)](_0x5b7baf)['pipe'](d[_0x1193f6(0x1e9)]());}[_0x16f785(0x1d4)](_0x5ce20c){const _0x59d9ea=_0x16f785;this[_0x59d9ea(0x3a6)]['size']===0x0&&this[_0x59d9ea(0x1b3)](),this[_0x59d9ea(0x3a6)][_0x59d9ea(0x37e)](_0x5ce20c),this[_0x59d9ea(0x384)]({'type':0x0,'memberID':this[_0x59d9ea(0x2ac)],'unitIDs':[_0x5ce20c],'isForwarded':!0x1});}[_0x16f785(0x213)](_0x96efa4){const _0x5215fe=_0x16f785;this['_selfUnitIDs'][_0x5215fe(0x1be)](_0x96efa4),this['_selfUnitIDs'][_0x5215fe(0x18e)]===0x0&&this['_heartbeatTimer']&&window[_0x5215fe(0x287)](this[_0x5215fe(0x2af)]);}[_0x16f785(0x39e)](){const _0x21a7e0=_0x16f785;this[_0x21a7e0(0x3b2)](a[_0x21a7e0(0x39f)](d[_0x21a7e0(0x2cd)](window,_0x21a7e0(0x24c))['subscribe'](_0x5863c0=>{const _0x2266b5=_0x21a7e0;if(_0x5863c0['key']!==Le||!_0x5863c0[_0x2266b5(0x1f8)])return;const _0x435861=JSON[_0x2266b5(0x19c)](_0x5863c0[_0x2266b5(0x1f8)]);this[_0x2266b5(0x33a)](_0x435861);}))),window[_0x21a7e0(0x1c8)]('unload',()=>this[_0x21a7e0(0x384)]({'type':0x1,'memberID':this[_0x21a7e0(0x2ac)],'unitIDs':Array[_0x21a7e0(0x29b)](this[_0x21a7e0(0x3a6)])}));}[_0x16f785(0x33a)](_0x4def28){const _0x314754=_0x16f785;switch(_0x4def28[_0x314754(0x161)]){case 0x0:this['_handleJoinEvent'](_0x4def28);break;case 0x1:this['_handleLeaveEvent'](_0x4def28);break;case 0x2:this['_handleHeartbeatEvent'](_0x4def28);break;}}[_0x16f785(0x35c)](_0x2bef60){const _0x35f068=_0x16f785,{unitIDs:_0x4ff722,memberID:_0x573dd9,isForwarded:_0x17cb5d}=_0x2bef60;_0x4ff722[_0x35f068(0x35e)](_0x285884=>{const _0x4c2c51=_0x35f068;if(!_0x17cb5d&&this['_unitOnClients']['has'](_0x285884)&&this[_0x4c2c51(0x16b)](_0x285884)['next'](u[_0x4c2c51(0x1e3)][_0x4c2c51(0x2d7)]),!this[_0x4c2c51(0x15e)][_0x4c2c51(0x13f)](_0x285884)||!this[_0x4c2c51(0x15e)][_0x4c2c51(0x22c)](_0x285884)['has'](_0x573dd9)){const _0x4dfec8=this[_0x4c2c51(0x15e)]['get'](_0x285884)||new Set();_0x4dfec8['add'](_0x573dd9),this[_0x4c2c51(0x15e)]['set'](_0x285884,_0x4dfec8),this[_0x4c2c51(0x203)](_0x573dd9);}}),_0x17cb5d||this['_send']({'type':0x0,'memberID':this[_0x35f068(0x2ac)],'unitIDs':[...this[_0x35f068(0x3a6)]],'isForwarded':!0x0});}[_0x16f785(0x203)](_0x20e8f9){const _0x1b2056=_0x16f785;this[_0x1b2056(0x321)](_0x20e8f9);const _0x5b2c6a=window[_0x1b2056(0x37a)](()=>{const _0x27a747=_0x1b2056;this[_0x27a747(0x15e)]['forEach'](_0x3d91dc=>{_0x3d91dc['delete'](_0x20e8f9);});},Me*0x2);this[_0x1b2056(0x14d)]['set'](_0x20e8f9,_0x5b2c6a);}[_0x16f785(0x321)](_0x528a20){const _0x5a0dd7=_0x16f785;if(this[_0x5a0dd7(0x14d)][_0x5a0dd7(0x13f)](_0x528a20)){const _0x220ecb=this[_0x5a0dd7(0x14d)]['get'](_0x528a20);_0x220ecb&&window['clearTimeout'](_0x220ecb),this[_0x5a0dd7(0x14d)][_0x5a0dd7(0x2fc)](_0x528a20,null);}}[_0x16f785(0x1f7)](_0x501f3e){const _0x2a3cbf=_0x16f785,{memberID:_0x10a3fe,unitIDs:_0x175159}=_0x501f3e;_0x175159[_0x2a3cbf(0x35e)](_0x39b704=>{const _0x1fc177=_0x2a3cbf;var _0x59bf50;const _0x310e3e=this[_0x1fc177(0x15e)]['get'](_0x39b704);_0x310e3e&&(_0x310e3e[_0x1fc177(0x1be)](_0x10a3fe),(_0x59bf50=this['_ensureSubject'](_0x39b704))==null||_0x59bf50[_0x1fc177(0x1c3)](_0x310e3e[_0x1fc177(0x18e)]===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u['UnitStatus'][_0x1fc177(0x2d7)]));}),this[_0x2a3cbf(0x321)](_0x10a3fe);}[_0x16f785(0x365)](_0x4cadf6){const _0xfdcbbf=_0x16f785;this[_0xfdcbbf(0x203)](_0x4cadf6[_0xfdcbbf(0x162)]);}[_0x16f785(0x384)](_0x5a6989){const _0x3eab3f=_0x16f785;localStorage['setItem'](Le,JSON[_0x3eab3f(0x187)](_0x5a6989));}['_scheduleHeartbeat'](){const _0xd500f1=_0x16f785;this['_heartbeatTimer']=window[_0xd500f1(0x173)](()=>{const _0x5f32ac=_0xd500f1;this[_0x5f32ac(0x384)]({'type':0x2,'memberID':this[_0x5f32ac(0x2ac)]});},Me);}[_0x16f785(0x16b)](_0x366ae1){const _0x6e1591=_0x16f785;return this[_0x6e1591(0x25d)]['has'](_0x366ae1)||this[_0x6e1591(0x25d)][_0x6e1591(0x2fc)](_0x366ae1,new d[(_0x6e1591(0x229))](u[_0x6e1591(0x1e3)]['NO_OTHER_CLIENTS_EDITING'])),this['_unitStatus'][_0x6e1591(0x22c)](_0x366ae1);}}var Be=(_0x260093=>(_0x260093[_0x260093['UNDEFINED']=0x0]=_0x16f785(0x311),_0x260093[_0x260093['OK']=0x1]='OK',_0x260093[_0x260093[_0x16f785(0x34a)]=0x2]=_0x16f785(0x34a),_0x260093[_0x260093[_0x16f785(0x382)]=0x3]=_0x16f785(0x382),_0x260093[_0x260093[_0x16f785(0x23c)]=0x4]=_0x16f785(0x23c),_0x260093[_0x260093[_0x16f785(0x1e8)]=0x5]=_0x16f785(0x1e8),_0x260093[_0x260093['ALREADY_EXISTS']=0x6]=_0x16f785(0x218),_0x260093[_0x260093[_0x16f785(0x19b)]=0x7]=_0x16f785(0x19b),_0x260093[_0x260093[_0x16f785(0x371)]=0x8]=_0x16f785(0x371),_0x260093[_0x260093[_0x16f785(0x2ce)]=0x9]=_0x16f785(0x2ce),_0x260093[_0x260093[_0x16f785(0x2db)]=0xa]=_0x16f785(0x2db),_0x260093[_0x260093[_0x16f785(0x301)]=0x1389]=_0x16f785(0x301),_0x260093[_0x260093[_0x16f785(0x310)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x260093[_0x260093[_0x16f785(0x2f8)]=0x1772]=_0x16f785(0x2f8),_0x260093[_0x260093[_0x16f785(0x325)]=0x1773]=_0x16f785(0x325),_0x260093[_0x260093[_0x16f785(0x296)]=0x1b59]=_0x16f785(0x296),_0x260093[_0x260093[_0x16f785(0x32d)]=0x1b5a]=_0x16f785(0x32d),_0x260093[_0x260093[_0x16f785(0x38d)]=0x1b5b]='APPLY_REVISION_CONFILICT',_0x260093[_0x260093[_0x16f785(0x1ea)]=0x1b5c]=_0x16f785(0x1ea),_0x260093[_0x260093['APPLY_DUPLICATED']=0x1b5d]=_0x16f785(0x1fe),_0x260093[_0x260093[_0x16f785(0x1c6)]=0x1f41]=_0x16f785(0x1c6),_0x260093[_0x260093[_0x16f785(0x23d)]=0x2329]=_0x16f785(0x23d),_0x260093[_0x260093[_0x16f785(0x31d)]=0x232a]=_0x16f785(0x31d),_0x260093[_0x260093[_0x16f785(0x33f)]=0x232b]=_0x16f785(0x33f),_0x260093[_0x260093[_0x16f785(0x2d9)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x260093[_0x260093[_0x16f785(0x1bf)]=0x232d]=_0x16f785(0x1bf),_0x260093[_0x260093[_0x16f785(0x177)]=0x2711]=_0x16f785(0x177),_0x260093[_0x260093[_0x16f785(0x361)]=0x2712]=_0x16f785(0x361),_0x260093[_0x260093[_0x16f785(0x27b)]=0x2713]=_0x16f785(0x27b),_0x260093[_0x260093['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x16f785(0x386),_0x260093[_0x260093[_0x16f785(0x22e)]=0x271a]=_0x16f785(0x22e),_0x260093[_0x260093['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x16f785(0x2b9),_0x260093[_0x260093['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x16f785(0x28f),_0x260093[_0x260093['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x16f785(0x2fa),_0x260093[_0x260093[_0x16f785(0x146)]=0x271e]=_0x16f785(0x146),_0x260093[_0x260093[_0x16f785(0x392)]=0x271f]=_0x16f785(0x392),_0x260093[_0x260093[_0x16f785(0x205)]=0x2af9]=_0x16f785(0x205),_0x260093[_0x260093['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x16f785(0x26a),_0x260093[_0x260093[_0x16f785(0x324)]=0x2ee2]=_0x16f785(0x324),_0x260093[_0x260093[_0x16f785(0x269)]=0x2ee3]=_0x16f785(0x269),_0x260093[_0x260093[_0x16f785(0x20d)]=0x2ee4]=_0x16f785(0x20d),_0x260093[_0x260093[_0x16f785(0x1e1)]=0x2ee5]=_0x16f785(0x1e1),_0x260093[_0x260093[_0x16f785(0x170)]=0x32c9]=_0x16f785(0x170),_0x260093[_0x260093[_0x16f785(0x29e)]=0x32ca]=_0x16f785(0x29e),_0x260093[_0x260093[_0x16f785(0x3a7)]=0x32cb]=_0x16f785(0x3a7),_0x260093[_0x260093[_0x16f785(0x1de)]=-0x1]=_0x16f785(0x1de),_0x260093))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x58ff56,_0x2eee59,_0x451b84,_0x2999f6)=>{const _0x516e10=_0x16f785;for(var _0x159167=_0x2999f6>0x1?void 0x0:_0x2999f6?ns(_0x2eee59,_0x451b84):_0x2eee59,_0x22bb43=_0x58ff56[_0x516e10(0x378)]-0x1,_0x34bbca;_0x22bb43>=0x0;_0x22bb43--)(_0x34bbca=_0x58ff56[_0x22bb43])&&(_0x159167=_0x34bbca(_0x159167)||_0x159167);return _0x159167;},ue=(_0x3c4c7e,_0x37a9ae)=>(_0x803ca5,_0x2ee3c0)=>_0x37a9ae(_0x803ca5,_0x2ee3c0,_0x3c4c7e);exports[_0x16f785(0x37c)]=class extends a[_0x16f785(0x1c7)]{constructor(_0x19bc5f,_0x3246de,_0x123c76){const _0x3a4ee0=_0x16f785;super(),this['_instanceService']=_0x19bc5f,this['_httpService']=_0x3246de,this[_0x3a4ee0(0x295)]=_0x123c76;}async[_0x16f785(0x16c)](_0x4ac176,_0x3c8057,_0x7beaa3,..._0x272328){const _0x12dead=_0x16f785;var _0x301ac0,_0x59b81b,_0x47ea70,_0x301af6;const _0x2514e2=this[_0x12dead(0x1fc)][_0x12dead(0x20a)]();if(!_0x2514e2)throw new Error(_0x12dead(0x29f));const _0x3d5a38=((_0x301ac0=this[_0x12dead(0x295)][_0x12dead(0x262)](u[_0x12dead(0x30b)]))!=null?_0x301ac0:u[_0x12dead(0x207)])+'/'+_0x4ac176+_0x12dead(0x25b)+_0x3c8057,_0x413ce0=new URL(window['location'][_0x12dead(0x38f)]),_0x174939={'scriptId':_0x4ac176,'runId':(_0x59b81b=_0x413ce0['searchParams'][_0x12dead(0x22c)]('runId'))!=null?_0x59b81b:'','function':_0x3c8057,'unitId':_0x2514e2[_0x12dead(0x14f)](),'argsOfFunction':JSON[_0x12dead(0x187)](_0x272328),'invokeId':(_0x47ea70=_0x7beaa3[_0x12dead(0x307)])!=null?_0x47ea70:'','executionId':(_0x301af6=_0x7beaa3['executionId'])!=null?_0x301af6:''};try{const _0x30eca9=await this[_0x12dead(0x2e5)]['post'](_0x3d5a38,{'body':_0x174939});return _0x30eca9['body'][_0x12dead(0x345)]&&_0x30eca9[_0x12dead(0x374)][_0x12dead(0x345)][_0x12dead(0x294)]!==Be['OK']?'Failed':_0x30eca9['body']['result'];}catch{return _0x12dead(0x2bb);}}},exports[_0x16f785(0x37c)]=rs([ue(0x0,a[_0x16f785(0x3b7)]),ue(0x1,a['Inject'](G[_0x16f785(0x2dc)])),ue(0x2,a[_0x16f785(0x260)])],exports[_0x16f785(0x37c)]),exports[_0x16f785(0x285)]=xe,exports['IURLService']=be,exports[_0x16f785(0x3ad)]=Ae,exports[_0x16f785(0x29c)]=is,exports['WebURLService']=je;
1
+ 'use strict';const _0x49162d=_0x1009;(function(_0x364ad0,_0x599e31){const _0x557d8f=_0x1009,_0x2fceef=_0x364ad0();while(!![]){try{const _0x233a28=parseInt(_0x557d8f(0xd4))/0x1+parseInt(_0x557d8f(0x226))/0x2+parseInt(_0x557d8f(0x130))/0x3*(parseInt(_0x557d8f(0xf8))/0x4)+-parseInt(_0x557d8f(0x1a7))/0x5*(parseInt(_0x557d8f(0x1d7))/0x6)+parseInt(_0x557d8f(0x1b6))/0x7+parseInt(_0x557d8f(0x294))/0x8+-parseInt(_0x557d8f(0x21e))/0x9;if(_0x233a28===_0x599e31)break;else _0x2fceef['push'](_0x2fceef['shift']());}catch(_0x21ef06){_0x2fceef['push'](_0x2fceef['shift']());}}}(_0x4fda,0x57053));var Ve=Object[_0x49162d(0x7f)],Xe=(_0xcc1a90,_0x577ae3,_0x5c8812)=>_0x577ae3 in _0xcc1a90?Ve(_0xcc1a90,_0x577ae3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c8812}):_0xcc1a90[_0x577ae3]=_0x5c8812,h=(_0x5bee23,_0x241924,_0x1bdfbd)=>Xe(_0x5bee23,typeof _0x241924!='symbol'?_0x241924+'':_0x241924,_0x1bdfbd);Object[_0x49162d(0x7f)](exports,Symbol[_0x49162d(0xb4)],{'value':'Module'});const u=require(_0x49162d(0x84)),a=require('@univerjs/core'),p=require(_0x49162d(0x16e)),G=require('@univerjs/network'),b=require(_0x49162d(0x1c9)),Ge=require(_0x49162d(0x28e)),d=require('rxjs'),Y=require(_0x49162d(0x1bb)),m=require(_0x49162d(0x27a)),Ee=require('@univerjs/engine-formula'),g=require('@univerjs/sheets'),$=require('rxjs/operators'),X=require(_0x49162d(0x16f)),P=require('react/jsx-runtime'),T=require('@univerjs/ui'),D=require(_0x49162d(0x1eb)),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0x49162d(0x20a)],ze=(_0x8a1b1,_0x552072,_0x3fbe0b,_0x5f5093)=>{for(var _0x5d9a06=_0x5f5093>0x1?void 0x0:_0x5f5093?qe(_0x552072,_0x3fbe0b):_0x552072,_0x49dd13=_0x8a1b1['length']-0x1,_0x39d770;_0x49dd13>=0x0;_0x49dd13--)(_0x39d770=_0x8a1b1[_0x49dd13])&&(_0x5d9a06=_0x39d770(_0x5d9a06)||_0x5d9a06);return _0x5d9a06;},Te=(_0x4a6bcc,_0xf1b2a9)=>(_0x1c687f,_0x4a7286)=>_0xf1b2a9(_0x1c687f,_0x4a7286,_0x4a6bcc);let de=class extends a[_0x49162d(0xe0)]{constructor(_0x1da3ab,_0x112292){const _0xf24e62=_0x49162d;super(),this[_0xf24e62(0x28d)]=_0x1da3ab,this[_0xf24e62(0x194)]=_0x112292,this[_0xf24e62(0x258)]();}['_init'](){const _0x404bc1=_0x49162d,_0x2df214=this;this['disposeWithMe'](this[_0x404bc1(0x28d)][_0x404bc1(0x298)]({'onBeforePasteImage':async _0x41e15c=>{const _0x50839d=_0x404bc1,_0x4b6086=await _0x2df214[_0x50839d(0x194)][_0x50839d(0x11d)](_0x41e15c);return _0x4b6086?{'source':_0x4b6086[_0x50839d(0x14e)],'imageSourceType':_0x4b6086[_0x50839d(0x181)]}:null;}}));}};de=ze([Te(0x0,b[_0x49162d(0x247)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x49162d(0x23d),'jiqing.500',_0x49162d(0x2f2),_0x49162d(0x1f8),_0x49162d(0x2e3),_0x49162d(0x179)];class me extends a[_0x49162d(0x1ad)]{constructor(){const _0x81d3f0=_0x49162d;super(...arguments),h(this,_0x81d3f0(0x114),new Map()),h(this,_0x81d3f0(0x282),0x0);}['assignAColorForMemberID'](_0x2e8636){const _0x6eb1da=_0x49162d;if(this[_0x6eb1da(0x114)][_0x6eb1da(0x17c)](_0x2e8636))return this[_0x6eb1da(0x114)][_0x6eb1da(0x150)](_0x2e8636);const _0x1a87e7=Oe[this['_colorIndex']];return this['_colorIndex']=(this[_0x6eb1da(0x282)]+0x1)%Oe[_0x6eb1da(0x2b1)],this['_assignedColors'][_0x6eb1da(0x15a)](_0x2e8636,_0x1a87e7),_0x1a87e7;}}function Pe(_0x48f68e){const _0x2493ac=_0x49162d;let _0x243ab3='';for(const _0x37db00 of _0x48f68e){const {startOffset:_0x539079,endOffset:_0x24e4c8,isActive:_0x1bee8f,rangeType:_0xce8f66,segmentId:_0x4e58fb,segmentPage:_0x8255da}=_0x37db00;_0x243ab3[_0x2493ac(0x2b1)]&&(_0x243ab3+=','),_0x243ab3+=_0x539079+':'+_0x24e4c8+':'+(_0x1bee8f?'1':'0')+':'+_0xce8f66+':'+_0x4e58fb+':'+_0x8255da;}return _0x243ab3;}function Je(_0x9eb104){const _0x1fb76a=_0x49162d,_0xef8780=_0x9eb104[_0x1fb76a(0x13f)](','),_0x141e9c=[];for(const _0x5ee43c of _0xef8780){const [_0x4f179b,_0x547887,_0x426362,_0x43ca4a,_0x1fce36,_0x38b0dd]=_0x5ee43c[_0x1fb76a(0x13f)](':');_0x141e9c[_0x1fb76a(0x2aa)]({'startOffset':Number(_0x4f179b),'endOffset':Number(_0x547887),'collapsed':_0x4f179b===_0x547887,'isActive':_0x426362==='1','rangeType':_0x43ca4a===a[_0x1fb76a(0x100)][_0x1fb76a(0x124)]?a['DOC_RANGE_TYPE']['TEXT']:a[_0x1fb76a(0x100)]['RECT'],'segmentId':typeof _0x1fce36=='string'?String(_0x1fce36):'','segmentPage':Number(_0x38b0dd!=null?_0x38b0dd:-0x1)});}return _0x141e9c[_0x1fb76a(0x17b)](_0x151aa4=>_0x151aa4[_0x1fb76a(0x29a)])||(_0x141e9c[0x0][_0x1fb76a(0x29a)]=!0x0),_0x141e9c;}class Ce extends a[_0x49162d(0xe0)]{constructor(){const _0x5197ba=_0x49162d;super(...arguments),h(this,_0x5197ba(0x8c),new d['BehaviorSubject'](null)),h(this,_0x5197ba(0x106),this[_0x5197ba(0x8c)][_0x5197ba(0x10f)]());}['syncEditingCollabCursor'](_0x58fed4){const _0xef0873=_0x49162d,{unitID:_0x40456b,memberID:_0x12ec36,textRanges:_0x57e390}=_0x58fed4,_0x8d7288=Pe(_0x57e390);if(_0x8d7288==='')return;const _0x1c516a={'unitID':_0x40456b,'memberID':_0x12ec36,'selection':_0x8d7288};this[_0xef0873(0x8c)][_0xef0873(0x151)](_0x1c516a);}}var Ze=Object[_0x49162d(0x20a)],Qe=(_0x2afa09,_0x3b6a71,_0x31732f,_0x2fc871)=>{const _0xa9d32=_0x49162d;for(var _0xba07b4=_0x2fc871>0x1?void 0x0:_0x2fc871?Ze(_0x3b6a71,_0x31732f):_0x3b6a71,_0x2da377=_0x2afa09[_0xa9d32(0x2b1)]-0x1,_0x1f2bde;_0x2da377>=0x0;_0x2da377--)(_0x1f2bde=_0x2afa09[_0x2da377])&&(_0xba07b4=_0x1f2bde(_0xba07b4)||_0xba07b4);return _0xba07b4;},L=(_0x4b2bde,_0x11d31b)=>(_0x3c7e47,_0x2bc3c6)=>_0x11d31b(_0x3c7e47,_0x2bc3c6,_0x4b2bde);const et=0x12c,tt=0x64;let fe=class extends a[_0x49162d(0xe0)]{constructor(_0x3d4cb6,_0x151c6d,_0x4f0992,_0x4e94ce,_0x5a9954,_0x9def9b,_0x3c7997,_0x4d0711,_0x181bd7){const _0xc3a89b=_0x49162d;super(),h(this,_0xc3a89b(0x213),!0x1),h(this,_0xc3a89b(0x258),!0x1),h(this,_0xc3a89b(0x7d),new d[(_0xc3a89b(0xf7))](new Map())),h(this,_0xc3a89b(0x2ee),this['_cursorInfo$']['asObservable']()),h(this,_0xc3a89b(0x236),new d[(_0xc3a89b(0xf7))]([])),h(this,_0xc3a89b(0x18a),this[_0xc3a89b(0x236)][_0xc3a89b(0x1b3)](d[_0xc3a89b(0x80)](et))),h(this,'_updateLocalCursor',a[_0xc3a89b(0x2f6)](_0x36a17b=>{const _0x2ac55b=_0xc3a89b,_0x346265={'eventID':m[_0x2ac55b(0x192)][_0x2ac55b(0x223)],'data':{'unitID':this[_0x2ac55b(0x143)],'memberID':this[_0x2ac55b(0x293)][_0x2ac55b(0x14c)](),'selection':Pe(_0x36a17b)}};this[_0x2ac55b(0x293)][_0x2ac55b(0x190)](_0x346265,this['unitID']);},tt)),(this[_0xc3a89b(0x143)]=_0x3d4cb6,this[_0xc3a89b(0x293)]=_0x151c6d,this[_0xc3a89b(0xd5)]=_0x4f0992,this['_colorAssignService']=_0x4e94ce,this['_memberService']=_0x5a9954,this['_syncEditingCollabCursorService']=_0x9def9b,this[_0xc3a89b(0x172)]=_0x3c7997,this[_0xc3a89b(0x19f)]=_0x4d0711,this[_0xc3a89b(0x2b8)]=_0x181bd7);}get[_0x49162d(0xe4)](){const _0x2fb9e4=_0x49162d;return this[_0x2fb9e4(0x7d)][_0x2fb9e4(0xd1)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}[_0x49162d(0x205)](){const _0xd7df15=_0x49162d;super['dispose'](),this['_cursorInfo$']['next'](new Map()),this['_cursorInfo$'][_0xd7df15(0x10c)](),this[_0xd7df15(0x236)][_0xd7df15(0x151)]([]),this[_0xd7df15(0x236)][_0xd7df15(0x10c)]();}[_0x49162d(0x21c)](){const _0x444d9f=_0x49162d;this['_init']||(this[_0x444d9f(0x258)]=!0x0,this[_0x444d9f(0x293)][_0x444d9f(0x1f5)]['pipe'](d[_0x444d9f(0x21f)](this[_0x444d9f(0x9d)]))[_0x444d9f(0x168)](_0x3b5f99=>{const _0xae8d1a=_0x444d9f;_0x3b5f99===u[_0xae8d1a(0xef)][_0xae8d1a(0x268)]?this[_0xae8d1a(0x233)]():this[_0xae8d1a(0x306)]();}),this['_session'][_0x444d9f(0x169)][_0x444d9f(0x1b3)](d[_0x444d9f(0x21f)](this[_0x444d9f(0x9d)]))['subscribe'](_0x3afd3e=>{const _0x3392d4=_0x444d9f,_0x383421=_0x3afd3e[_0x3392d4(0xea)];_0x383421===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x3392d4(0x131)](_0x3afd3e),_0x383421===m[_0x3392d4(0x192)][_0x3392d4(0x2ed)]&&this[_0x3392d4(0x2ae)](_0x3afd3e);}),this[_0x444d9f(0x287)](this[_0x444d9f(0x2b8)][_0x444d9f(0xf6)](_0x4fcc05=>{const _0x517f7c=_0x444d9f,_0x27faf8=_0x4fcc05[_0x517f7c(0x2d4)];_0x27faf8!=null&&this[_0x517f7c(0x213)]&&_0x4fcc05['id']===Y[_0x517f7c(0xbd)]['id']&&_0x27faf8[_0x517f7c(0xd6)]===this[_0x517f7c(0x143)]&&_0x27faf8['isEditing']===!0x1&&_0x27faf8[_0x517f7c(0x95)][_0x517f7c(0x2b1)]>0x0&&this[_0x517f7c(0xa7)](_0x27faf8['ranges']);})),this[_0x444d9f(0x2bb)][_0x444d9f(0x106)]['pipe'](d['takeUntil'](this[_0x444d9f(0x9d)]))[_0x444d9f(0x168)](_0x2ddfa9=>{const _0x3c8de2=_0x444d9f;if((_0x2ddfa9==null?void 0x0:_0x2ddfa9['unitID'])!==this[_0x3c8de2(0x143)])return;const _0x4d5e2b={'eventID':m['CollaborationEvent'][_0x3c8de2(0x223)],'data':_0x2ddfa9};this[_0x3c8de2(0x131)](_0x4d5e2b);}),this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x47b2f3=>{const _0x16cd2e=_0x444d9f;if(_0x47b2f3[_0x16cd2e(0x2d4)]==null)return;const _0x503d4a=_0x47b2f3['params'];if(_0x47b2f3['id']!==Y[_0x16cd2e(0x2db)]['id']||_0x503d4a[_0x16cd2e(0xd6)]!==this[_0x16cd2e(0x143)])return;const _0x498b73={'id':_0x16cd2e(0xb3),'params':_0x503d4a},_0x42b789=this[_0x16cd2e(0xe4)];for(const [_0x599f1c,_0x418d15]of _0x42b789){const _0x4cbc5c={'id':_0x16cd2e(0xb3),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x418d15[_0x16cd2e(0x95)]}},_0xd16aa9=this['_transformService']['transformMutation'](_0x498b73,_0x4cbc5c,!0x1);if(m[_0x16cd2e(0xa0)](_0xd16aa9))throw _0xd16aa9[_0x16cd2e(0x252)];_0x42b789[_0x16cd2e(0x15a)](_0x599f1c,{..._0x418d15,'ranges':_0xd16aa9[_0x16cd2e(0x203)][_0x16cd2e(0x2d4)][_0x16cd2e(0x2b7)]});}queueMicrotask(()=>{const _0x4fb1ff=_0x16cd2e;this[_0x4fb1ff(0x7d)][_0x4fb1ff(0x151)](_0x42b789);});})));}[_0x49162d(0x131)](_0x1ccd14){const _0x39b819=_0x49162d;var _0x409b55,_0x12341b;const {memberID:_0x27e6be,selection:_0x56a911}=_0x1ccd14['data'],_0x3ea785=Je(_0x56a911),_0x24fa86=(_0x12341b=(_0x409b55=this[_0x39b819(0x178)][_0x39b819(0x1c6)](this[_0x39b819(0x143)],_0x27e6be))==null?void 0x0:_0x409b55['name'])!=null?_0x12341b:'Unknown\x20user',_0x49de1c={'color':this[_0x39b819(0xe9)][_0x39b819(0x2fe)](_0x27e6be),'name':_0x24fa86,'ranges':_0x3ea785},_0x57e96a=this[_0x39b819(0xe4)];_0x57e96a[_0x39b819(0x15a)](_0x27e6be,_0x49de1c),this[_0x39b819(0x7d)]['next'](_0x57e96a);}['_onCursorDelete'](_0x2fbbad){const _0x6692ec=_0x49162d,{memberID:_0x28da7f}=_0x2fbbad[_0x6692ec(0x24d)],_0x2b9e55=this['cursorInfo'];_0x2b9e55[_0x6692ec(0x16c)](_0x28da7f),this[_0x6692ec(0x7d)][_0x6692ec(0x151)](_0x2b9e55);}[_0x49162d(0x233)](){const _0x487f3c=_0x49162d;var _0x1097e0;if(this[_0x487f3c(0x213)]=!0x0,((_0x1097e0=this[_0x487f3c(0x19f)][_0x487f3c(0x1fc)]())==null?void 0x0:_0x1097e0[_0x487f3c(0x2e9)]())!==this[_0x487f3c(0x143)])return;const _0x5d1170=this[_0x487f3c(0xd5)][_0x487f3c(0x150)](Y[_0x487f3c(0x186)])[_0x487f3c(0x2e1)]();Array['isArray'](_0x5d1170)&&_0x5d1170[_0x487f3c(0x2b1)]>0x0&&this[_0x487f3c(0xa7)](_0x5d1170);}['_toggleOffline'](){const _0x246df3=_0x49162d;this[_0x246df3(0x213)]=!0x1;}};fe=Qe([L(0x2,a['Inject'](a[_0x49162d(0x87)])),L(0x3,a[_0x49162d(0xad)](me)),L(0x4,a[_0x49162d(0xad)](u[_0x49162d(0x296)])),L(0x5,a[_0x49162d(0xad)](Ce)),L(0x6,m[_0x49162d(0x273)]),L(0x7,a[_0x49162d(0x280)]),L(0x8,a[_0x49162d(0x21a)])],fe);var st=Object[_0x49162d(0x20a)],it=(_0x243bfe,_0x459190,_0xf264ec,_0x3e8728)=>{for(var _0x4b2ed3=_0x3e8728>0x1?void 0x0:_0x3e8728?st(_0x459190,_0xf264ec):_0x459190,_0x39eeac=_0x243bfe['length']-0x1,_0x5a5ee9;_0x39eeac>=0x0;_0x39eeac--)(_0x5a5ee9=_0x243bfe[_0x39eeac])&&(_0x4b2ed3=_0x5a5ee9(_0x4b2ed3)||_0x4b2ed3);return _0x4b2ed3;},w=(_0x29109f,_0x311bda)=>(_0x524a14,_0x5797c5)=>_0x311bda(_0x524a14,_0x5797c5,_0x29109f);const nt=0x12c,rt=0x64,ot=()=>{let _0xa0a39f=[],_0x1a9a23=!0x1;return _0x464b7a=>{const _0x44c74e=_0x1009;_0xa0a39f[_0x44c74e(0x2aa)](_0x464b7a),_0x1a9a23||(_0x1a9a23=!0x0,setTimeout(()=>{const _0x384e5f=_0x44c74e;_0xa0a39f[_0x384e5f(0x207)](_0x267a7a=>_0x267a7a()),_0xa0a39f=[],_0x1a9a23=!0x1;}));};};let Se=class extends a[_0x49162d(0xe0)]{constructor(_0x19c070,_0x54d987,_0x12230e,_0x2fc14a,_0x34c723,_0x3c83e5,_0x3d042f,_0x5ad0b9){const _0x39802b=_0x49162d;super(),h(this,_0x39802b(0x213),!0x1),h(this,_0x39802b(0x258),!0x1),h(this,_0x39802b(0x7d),new d[(_0x39802b(0xf7))](new Map())),h(this,'cursorInfo$',this['_cursorInfo$'][_0x39802b(0x10f)]()),h(this,_0x39802b(0x236),new d[(_0x39802b(0xf7))]([])),h(this,_0x39802b(0x18a),this[_0x39802b(0x236)][_0x39802b(0x1b3)](d[_0x39802b(0x80)](nt))),h(this,_0x39802b(0xa7),a[_0x39802b(0x2f6)]((_0x2c8e1a,_0xde114f)=>{const _0x5b494c=_0x39802b,_0x2b3147={'eventID':m[_0x5b494c(0x192)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x5b494c(0x143)],'memberID':this[_0x5b494c(0x293)][_0x5b494c(0x14c)](),'selection':Ee[_0x5b494c(0x20b)](_0x2c8e1a,_0xde114f[_0x5b494c(0x201)])}};this['_session'][_0x5b494c(0x190)](_0x2b3147,this[_0x5b494c(0x143)]);},rt)),(this['unitID']=_0x19c070,this[_0x39802b(0x293)]=_0x54d987,this[_0x39802b(0xd5)]=_0x12230e,this[_0x39802b(0xe9)]=_0x2fc14a,this[_0x39802b(0x178)]=_0x34c723,this[_0x39802b(0x19f)]=_0x3c83e5,this[_0x39802b(0x2b8)]=_0x3d042f,this[_0x39802b(0x145)]=_0x5ad0b9);}get[_0x49162d(0xe4)](){const _0x1b1eef=_0x49162d;return this[_0x1b1eef(0x7d)][_0x1b1eef(0xd1)]();}get[_0x49162d(0x155)](){const _0x29bff6=_0x49162d;return this[_0x29bff6(0x236)]['getValue']();}[_0x49162d(0x205)](){const _0x8adafa=_0x49162d;super['dispose'](),this[_0x8adafa(0x7d)][_0x8adafa(0x151)](new Map()),this[_0x8adafa(0x7d)][_0x8adafa(0x10c)](),this['_roomMembers$'][_0x8adafa(0x151)]([]),this[_0x8adafa(0x236)][_0x8adafa(0x10c)]();}[_0x49162d(0x21c)](){const _0x299631=_0x49162d;this[_0x299631(0x258)]||(this[_0x299631(0x258)]=!0x0,this[_0x299631(0x293)][_0x299631(0x1f5)][_0x299631(0x1b3)](d[_0x299631(0x21f)](this['dispose$']))[_0x299631(0x168)](_0x46bf35=>{const _0x1ac1c=_0x299631;_0x46bf35===u[_0x1ac1c(0xef)][_0x1ac1c(0x268)]?this[_0x1ac1c(0x233)]():this[_0x1ac1c(0x306)]();}),this[_0x299631(0x293)][_0x299631(0x169)][_0x299631(0x1b3)](d[_0x299631(0x21f)](this['dispose$']))[_0x299631(0x168)](_0x2574ba=>{const _0x205a55=_0x299631,_0x3fd703=_0x2574ba[_0x205a55(0xea)];_0x3fd703===m[_0x205a55(0x192)][_0x205a55(0x223)]&&this[_0x205a55(0x131)](_0x2574ba),_0x3fd703===m[_0x205a55(0x192)]['USERS_LEAVE']&&this[_0x205a55(0x2ae)](_0x2574ba);}),this[_0x299631(0x1e9)](),this[_0x299631(0x287)](this[_0x299631(0x2b8)][_0x299631(0xf6)](_0x120404=>{const _0x2c6f98=_0x299631;if(this[_0x2c6f98(0x213)]&&_0x120404['id']===g[_0x2c6f98(0x86)]['id']&&_0x120404['params'][_0x2c6f98(0xd6)]===this['unitID']){const _0x59a80d=_0x120404[_0x2c6f98(0x2d4)];this[_0x2c6f98(0xa7)](_0x59a80d[_0x2c6f98(0xcf)],_0x59a80d[_0x2c6f98(0x253)][0x0]);}})));}[_0x49162d(0x131)](_0x2cef5e){const _0x27a104=_0x49162d;var _0x1f3ca6,_0x2b5470;const {memberID:_0x25061a,selection:_0x5ae814}=_0x2cef5e[_0x27a104(0x24d)],{sheetName:_0x43a769,range:_0x1927ed}=Ee[_0x27a104(0x141)](_0x5ae814),_0x5a6273={'name':(_0x2b5470=(_0x1f3ca6=this[_0x27a104(0x178)][_0x27a104(0x1c6)](this[_0x27a104(0x143)],_0x25061a))==null?void 0x0:_0x1f3ca6['name'])!=null?_0x2b5470:_0x27a104(0x12c),'range':this[_0x27a104(0x2e4)](_0x43a769,_0x1927ed),'sheetID':_0x43a769,'color':this[_0x27a104(0xe9)][_0x27a104(0x2fe)](_0x25061a),'selection':_0x5ae814},_0x5724c0=this[_0x27a104(0xe4)];_0x5724c0[_0x27a104(0x15a)](_0x25061a,_0x5a6273),this[_0x27a104(0x7d)][_0x27a104(0x151)](_0x5724c0);}[_0x49162d(0x2ae)](_0xdebb9a){const _0x25989=_0x49162d,{memberID:_0x4c460f}=_0xdebb9a[_0x25989(0x24d)],_0x8c2170=this['cursorInfo'];_0x8c2170[_0x25989(0x16c)](_0x4c460f),this['_cursorInfo$'][_0x25989(0x151)](_0x8c2170);}['_getMergeRange'](_0x35c18d,_0x3766a5){const _0x14a706=_0x49162d;var _0x35dada,_0x33dca8;const _0x4d72c4=(_0x33dca8=(_0x35dada=this[_0x14a706(0x19f)][_0x14a706(0x259)](this[_0x14a706(0x143)]))==null?void 0x0:_0x35dada[_0x14a706(0xa4)](_0x35c18d))==null?void 0x0:_0x33dca8[_0x14a706(0x1b4)]();return(_0x4d72c4==null?void 0x0:_0x4d72c4['find'](_0x2b72b1=>a[_0x14a706(0x1da)][_0x14a706(0x216)](_0x2b72b1,_0x3766a5)))||_0x3766a5;}['_onRefRangeChange'](){const _0x16b630=_0x49162d,_0xb04fb4=new a[(_0x16b630(0x11a))](),_0x2f2456=ot(),_0x118d94=()=>{const _0x40377a=_0x16b630;_0xb04fb4[_0x40377a(0x205)]();const _0x55778b=(_0x44fcb7,_0x2036f0,_0x28f2bc,_0x4ada08)=>{const _0x509ff2=_0x40377a;let _0xc8df75=[];switch(_0x44fcb7['id']){case g[_0x509ff2(0xc7)][_0x509ff2(0xc9)]:{_0xc8df75=g[_0x509ff2(0xbe)](_0x44fcb7,_0x4ada08);break;}case g[_0x509ff2(0xc7)][_0x509ff2(0x2ba)]:{_0xc8df75=g['handleDeleteRangeMoveUp'](_0x44fcb7,_0x4ada08);break;}case g['EffectRefRangId'][_0x509ff2(0x290)]:{_0xc8df75=g[_0x509ff2(0x1d3)](_0x44fcb7,_0x4ada08);break;}case g[_0x509ff2(0xc7)][_0x509ff2(0x24e)]:{_0xc8df75=g['handleInsertRangeMoveDown'](_0x44fcb7,_0x4ada08);break;}case g[_0x509ff2(0xc7)][_0x509ff2(0x7e)]:{_0xc8df75=g[_0x509ff2(0x2e0)](_0x44fcb7,_0x4ada08);break;}case g[_0x509ff2(0xc7)][_0x509ff2(0x231)]:{_0xc8df75=g[_0x509ff2(0x222)](_0x44fcb7,_0x4ada08);break;}case g[_0x509ff2(0xc7)]['MoveRangeCommandId']:{_0xc8df75=g['handleMoveRange'](_0x44fcb7,_0x4ada08);break;}case g[_0x509ff2(0xc7)]['RemoveColCommandId']:{_0xc8df75=g['handleIRemoveCol'](_0x44fcb7,_0x4ada08);break;}case g[_0x509ff2(0xc7)][_0x509ff2(0x7c)]:{_0xc8df75=g['handleIRemoveRow'](_0x44fcb7,_0x4ada08);break;}}const _0x3b7f14=g[_0x509ff2(0x1d2)](_0xc8df75,_0x4ada08),_0x29a37c=this[_0x509ff2(0xe4)]['get'](_0x2036f0);if(_0x29a37c&&_0x3b7f14){const _0x1fd400={..._0x29a37c,'range':_0x3b7f14};this[_0x509ff2(0xe4)][_0x509ff2(0x15a)](_0x2036f0,_0x1fd400),_0x2f2456(()=>{const _0x8f1e28=_0x509ff2,_0xb38c75=this['_refRangeService'][_0x8f1e28(0xb7)](_0x3b7f14,_0x277b29=>(_0xb38c75[_0x8f1e28(0x205)](),_0x55778b(_0x277b29,_0x2036f0,_0x28f2bc,_0x3b7f14)));_0xb04fb4[_0x8f1e28(0x23f)](_0xb38c75);});}return{'redos':[],'undos':[]};};this[_0x40377a(0xe4)][_0x40377a(0x207)]((_0x44f239,_0x567fc7)=>{const _0x157259=_0x40377a,{range:_0x1e95c4,sheetID:_0x2af4df}=_0x44f239,_0x504345=this['_refRangeService'][_0x157259(0xb7)](_0x1e95c4,_0x1d1888=>(_0x504345[_0x157259(0x205)](),_0x55778b(_0x1d1888,_0x567fc7,_0x2af4df,_0x1e95c4)));_0xb04fb4['add'](_0x504345);});};this[_0x16b630(0x287)](a[_0x16b630(0x182)](this[_0x16b630(0x7d)]['subscribe'](()=>{_0x118d94();})));}[_0x49162d(0x233)](){const _0x569fc6=_0x49162d;var _0x2651c4,_0x5ba0e2;if(this[_0x569fc6(0x213)]=!0x0,((_0x2651c4=this['_univerInstanceService'][_0x569fc6(0x1fc)]())==null?void 0x0:_0x2651c4[_0x569fc6(0x2e9)]())!==this[_0x569fc6(0x143)])return;const _0x45f33d=(_0x5ba0e2=this[_0x569fc6(0xd5)]['get'](g[_0x569fc6(0x2b6)])[_0x569fc6(0x111)]())==null?void 0x0:_0x5ba0e2[0x0],_0x32c3e2=this[_0x569fc6(0x19f)]['getCurrentUnitForType'](a[_0x569fc6(0x2e7)][_0x569fc6(0x160)])['getActiveSheet']();_0x45f33d&&_0x32c3e2&&this[_0x569fc6(0xa7)](_0x32c3e2[_0x569fc6(0x2fa)](),_0x45f33d);}[_0x49162d(0x306)](){this['_online']=!0x1;}};Se=it([w(0x2,a[_0x49162d(0xad)](a[_0x49162d(0x87)])),w(0x3,a[_0x49162d(0xad)](me)),w(0x4,a['Inject'](u[_0x49162d(0x296)])),w(0x5,a['IUniverInstanceService']),w(0x6,a[_0x49162d(0x21a)]),w(0x7,a[_0x49162d(0xad)](g[_0x49162d(0x1e3)]))],Se);var at=Object[_0x49162d(0x20a)],ct=(_0x4132b5,_0x5b64b0,_0x3a9346,_0x5352dc)=>{for(var _0x2f45f4=_0x5352dc>0x1?void 0x0:_0x5352dc?at(_0x5b64b0,_0x3a9346):_0x5b64b0,_0x236dda=_0x4132b5['length']-0x1,_0xfbb68a;_0x236dda>=0x0;_0x236dda--)(_0xfbb68a=_0x4132b5[_0x236dda])&&(_0x2f45f4=_0xfbb68a(_0x2f45f4)||_0x2f45f4);return _0x2f45f4;},ie=(_0x4f6bee,_0x4995da)=>(_0x3a12b7,_0x47462c)=>_0x4995da(_0x3a12b7,_0x47462c,_0x4f6bee);let x=class extends a[_0x49162d(0xe0)]{constructor(_0x5cd5e1,_0x379e81,_0x2d0f87){const _0x2bdae5=_0x49162d;super(),h(this,_0x2bdae5(0x88),new Map()),h(this,_0x2bdae5(0x1c0),new d['Subject']()),(this[_0x2bdae5(0x19f)]=_0x5cd5e1,this[_0x2bdae5(0xd5)]=_0x379e81,this[_0x2bdae5(0xa5)]=_0x2d0f87,this['_init']());}[_0x49162d(0x205)](){const _0x1962ce=_0x49162d;super[_0x1962ce(0x205)](),this[_0x1962ce(0x1c0)][_0x1962ce(0x10c)](),this[_0x1962ce(0x88)][_0x1962ce(0x207)](_0x4dd03e=>_0x4dd03e[_0x1962ce(0x205)]());}[_0x49162d(0x20d)](_0x27801f){const _0x213104=_0x49162d;return this['_entities'][_0x213104(0x17c)](_0x27801f)?this['_entities'][_0x213104(0x150)](_0x27801f)[_0x213104(0x2ee)]:this[_0x213104(0x1c0)][_0x213104(0x1b3)](d[_0x213104(0x1ed)](_0x56cf5a=>_0x56cf5a[_0x213104(0x143)]===_0x27801f),d[_0x213104(0x109)](_0x55a467=>_0x55a467[_0x213104(0x2ee)]));}['_init'](){const _0x5e149f=_0x49162d;this['_univerInstanceService'][_0x5e149f(0x23a)](a[_0x5e149f(0x2e7)][_0x5e149f(0x160)])[_0x5e149f(0x1b3)](d['takeUntil'](this[_0x5e149f(0x9d)]))['subscribe'](async _0x139d65=>{const _0x3a0b38=_0x5e149f,_0x56bb8a=_0x139d65[_0x3a0b38(0x2e9)](),_0x3a1355=await this[_0x3a0b38(0x1e0)](_0x56bb8a);this['_entityInit$']['next'](_0x3a1355),this['_entities']['set'](_0x56bb8a,_0x3a1355);}),this[_0x5e149f(0x19f)][_0x5e149f(0x23a)](a[_0x5e149f(0x2e7)][_0x5e149f(0x7a)])[_0x5e149f(0x1b3)](d['takeUntil'](this[_0x5e149f(0x9d)]))[_0x5e149f(0x1b3)](d[_0x5e149f(0x1ed)](_0x2ca75f=>!_0x2ca75f['getUnitId']()[_0x5e149f(0x1bd)]('__')))['subscribe'](async _0x7d373e=>{const _0x294e6d=_0x5e149f,_0x5682d1=_0x7d373e[_0x294e6d(0x2e9)](),_0x21cfb0=await this[_0x294e6d(0x116)](_0x5682d1);this['_entityInit$'][_0x294e6d(0x151)](_0x21cfb0),this[_0x294e6d(0x88)]['set'](_0x5682d1,_0x21cfb0);}),d['merge'](this[_0x5e149f(0x19f)][_0x5e149f(0x2cf)](a[_0x5e149f(0x2e7)][_0x5e149f(0x7a)]),this[_0x5e149f(0x19f)][_0x5e149f(0x2cf)](a[_0x5e149f(0x2e7)][_0x5e149f(0x160)]))[_0x5e149f(0x1b3)](d[_0x5e149f(0x21f)](this[_0x5e149f(0x9d)]))[_0x5e149f(0x168)](_0x11fcb8=>{const _0xb6e49b=_0x5e149f,_0x17cd1e=_0x11fcb8[_0xb6e49b(0x2e9)](),_0x58c224=this[_0xb6e49b(0x88)][_0xb6e49b(0x150)](_0x17cd1e);_0x58c224&&(_0x58c224[_0xb6e49b(0x205)](),this[_0xb6e49b(0x88)][_0xb6e49b(0x16c)](_0x17cd1e));});}async['_startSheetCollabCursor'](_0xce0382){const _0x250dc2=_0x49162d,_0x254bd2=await this[_0x250dc2(0xa5)][_0x250dc2(0xc1)](_0xce0382),_0x15c5b2=this['_injector'][_0x250dc2(0x2d1)](Se,_0xce0382,_0x254bd2);return _0x15c5b2[_0x250dc2(0x21c)](),_0x15c5b2;}async[_0x49162d(0x116)](_0xd46a81){const _0x3493d9=_0x49162d,_0x449973=await this['_collabSessionService']['requireSession'](_0xd46a81),_0x565be1=this[_0x3493d9(0xd5)]['createInstance'](fe,_0xd46a81,_0x449973);return _0x565be1[_0x3493d9(0x21c)](),_0x565be1;}};x=ct([ie(0x0,a['IUniverInstanceService']),ie(0x1,a[_0x49162d(0xad)](a[_0x49162d(0x87)])),ie(0x2,a[_0x49162d(0xad)](u[_0x49162d(0x2dd)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x245ef1,_0x17452d){const _0x5efb8b=_0x49162d;let {radius:_0x3ea79b,width:_0x2dd46f,height:_0x4e0854}=_0x17452d;_0x3ea79b=_0x3ea79b!=null?_0x3ea79b:0x0,_0x2dd46f=_0x2dd46f!=null?_0x2dd46f:0x1e,_0x4e0854=_0x4e0854!=null?_0x4e0854:0x1e;let _0x6def59=0x0,_0xb5d2a9=0x0,_0xc1d165=0x0;_0x6def59=_0xb5d2a9=_0xc1d165=Math[_0x5efb8b(0x1d0)](_0x3ea79b,_0x2dd46f/0x2,_0x4e0854/0x2),_0x245ef1[_0x5efb8b(0x27d)](),_0x245ef1[_0x5efb8b(0x11c)](_0x6def59,0x0),_0x245ef1[_0x5efb8b(0x15d)](_0x2dd46f-_0xb5d2a9,0x0),_0x245ef1[_0x5efb8b(0x2cc)](_0x2dd46f-_0xb5d2a9,_0xb5d2a9,_0xb5d2a9,Math['PI']*0x3/0x2,0x0,!0x1),_0x245ef1[_0x5efb8b(0x15d)](_0x2dd46f,_0x4e0854-_0xc1d165),_0x245ef1[_0x5efb8b(0x2cc)](_0x2dd46f-_0xc1d165,_0x4e0854-_0xc1d165,_0xc1d165,0x0,Math['PI']/0x2,!0x1),_0x245ef1['lineTo'](0x0,_0x4e0854),_0x245ef1[_0x5efb8b(0x15d)](0x0,_0x6def59),_0x245ef1[_0x5efb8b(0x2cc)](_0x6def59,_0x6def59,_0x6def59,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x245ef1[_0x5efb8b(0x89)](),_0x17452d[_0x5efb8b(0x177)]&&(_0x245ef1[_0x5efb8b(0x1cb)](),_0x245ef1[_0x5efb8b(0x206)]=_0x17452d[_0x5efb8b(0x177)],_0x17452d[_0x5efb8b(0x232)]==='evenodd'?_0x245ef1[_0x5efb8b(0x177)](_0x5efb8b(0x23c)):_0x245ef1['fill'](),_0x245ef1[_0x5efb8b(0x2b3)]());}class ee extends p['Shape']{constructor(_0x39b0af,_0x151998){const _0x26bea0=_0x49162d;super(_0x39b0af,_0x151998),h(this,_0x26bea0(0x16a)),h(this,_0x26bea0(0x26f)),(this[_0x26bea0(0x16a)]=_0x151998==null?void 0x0:_0x151998[_0x26bea0(0x16a)],this[_0x26bea0(0x26f)]=_0x151998==null?void 0x0:_0x151998['text']);}static[_0x49162d(0x99)](_0x3ca42a,_0x4a321a){const _0x3efa48=_0x49162d,{text:_0x177f8f,color:_0x180612}=_0x4a321a;_0x3ca42a[_0x3efa48(0x1cb)](),_0x3ca42a[_0x3efa48(0x2c3)]=_0x3efa48(0xec);const _0x3c3b68=_0x3ca42a[_0x3efa48(0x9f)](_0x177f8f)['width'],_0x22c936=Math[_0x3efa48(0x1d0)](_0x3c3b68+0x2*ne,Re);_t(_0x3ca42a,{'height':K,'radius':0x4,'width':_0x22c936,'fill':_0x180612}),_0x3ca42a[_0x3efa48(0x206)]='#FFF';const _0x3083d8=ne,_0x4bb995=K-lt,_0x2ce027=Re-0x2*ne;if(_0x3c3b68>_0x2ce027){let _0x276290='',_0x364713=0x0;for(const _0x2f779e of _0x177f8f){const _0x1b8710=_0x3ca42a['measureText'](_0x2f779e)[_0x3efa48(0x171)];if(_0x364713+_0x1b8710<=_0x2ce027-_0x3ca42a[_0x3efa48(0x9f)](_0x3efa48(0x1f0))['width'])_0x276290+=_0x2f779e,_0x364713+=_0x1b8710;else{_0x276290+=_0x3efa48(0x1f0);break;}}_0x3ca42a['fillText'](_0x276290,_0x3083d8,_0x4bb995);}else _0x3ca42a['fillText'](_0x177f8f,_0x3083d8,_0x4bb995);_0x3ca42a[_0x3efa48(0x2b3)]();}[_0x49162d(0x117)](_0x7e4be8){const _0x1f1822=_0x49162d;ee[_0x1f1822(0x99)](_0x7e4be8,this);}}const re=_0x49162d(0x136),ht=_0x49162d(0x15b),ut=_0x49162d(0x2b0),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x49162d(0x9a);class De{constructor(_0x3bc2ec,_0x37e4cd,_0x514178,_0x2cad3a){const _0x47294d=_0x49162d;h(this,_0x47294d(0x2c2),[]),h(this,_0x47294d(0x28a),null),h(this,_0x47294d(0x13b),null),h(this,_0x47294d(0x157),null),h(this,_0x47294d(0x183),null),h(this,_0x47294d(0x24f),null),(this['_cursor']=_0x3bc2ec,this[_0x47294d(0x10b)]=_0x37e4cd,this[_0x47294d(0xaa)]=_0x514178,this['_document']=_0x2cad3a,this[_0x47294d(0xe6)]());}set[_0x49162d(0x12a)](_0x5a22f0){const _0x1d7814=_0x49162d;_0x5a22f0?(this[_0x1d7814(0x157)]&&this[_0x1d7814(0x157)][_0x1d7814(0xa8)](),this[_0x1d7814(0x13b)]&&this[_0x1d7814(0x13b)][_0x1d7814(0x1f1)]()):(this[_0x1d7814(0x157)]&&this[_0x1d7814(0x157)][_0x1d7814(0x1f1)](),this['_textBubble']&&this['_textBubble'][_0x1d7814(0xa8)]());}[_0x49162d(0x205)](){const _0x52a570=_0x49162d;for(const _0x35da9c of this['_shapes'])_0x35da9c[_0x52a570(0x205)]();this[_0x52a570(0x13b)]&&this[_0x52a570(0x13b)][_0x52a570(0x205)](),this[_0x52a570(0x157)]&&this['_anchorDot'][_0x52a570(0x205)](),this[_0x52a570(0x28a)]&&this[_0x52a570(0x28a)][_0x52a570(0x205)](),this[_0x52a570(0x24f)]&&this['_eventUnsubscribe']();}['_render'](){const _0x4623b1=_0x49162d;var _0x273d14;const {_docSkeleton:_0x17535f,_document:_0x434650}=this,{color:_0x28b52a,name:_0x3f7362,ranges:_0x202a84}=this[_0x4623b1(0x25e)],_0x7b076e=_0x434650['getOffsetConfig'](),{docsLeft:_0x42652c,docsTop:_0x12d4a4}=_0x7b076e,_0x1788a6=new b[(_0x4623b1(0x24c))](_0x7b076e,_0x17535f);for(const {startOffset:_0x4609fd,endOffset:_0x5b6961,rangeType:_0x249d01,segmentId:_0x44d621,segmentPage:_0x142dd7,collapsed:_0x3d6892,isActive:_0x1ef174}of _0x202a84){const _0x3d7e3e=_0x17535f[_0x4623b1(0x221)](_0x4609fd,!0x0,_0x44d621,_0x142dd7);let _0x5ed0c5=_0x17535f['findNodePositionByCharIndex'](_0x5b6961,!0x0,_0x44d621,_0x142dd7);if(_0x5ed0c5==null&&(_0x5ed0c5=_0x17535f[_0x4623b1(0x221)](_0x5b6961-0x1,!0x1,_0x44d621,_0x142dd7)),_0x1ef174){const {contentBoxPointGroup:_0x17e250}=_0x1788a6['getRangePointData'](_0x5ed0c5,_0x5ed0c5);if(_0x17e250[_0x4623b1(0x2b1)]===0x0)continue;this[_0x4623b1(0xf9)](_0x28b52a,_0x17e250,_0x42652c,_0x12d4a4,_0x3f7362),this[_0x4623b1(0x24f)]=this[_0x4623b1(0x289)]();}if(_0x3d7e3e&&_0x5ed0c5){if(_0x249d01===a[_0x4623b1(0x100)][_0x4623b1(0x1e8)]){const _0x2d855e=new b[(_0x4623b1(0x2da))](_0x7b076e,_0x17535f),{pointGroup:_0x39aeea}=(_0x273d14=_0x2d855e[_0x4623b1(0x180)](_0x3d7e3e,_0x5ed0c5))!=null?_0x273d14:{};if(_0x39aeea==null||_0x39aeea['length']===0x0)continue;this[_0x4623b1(0x218)](_0x28b52a,_0x39aeea,_0x42652c,_0x12d4a4);}else{if(!_0x3d6892){const {borderBoxPointGroup:_0x41ce8a}=_0x1788a6[_0x4623b1(0x180)](_0x3d7e3e,_0x5ed0c5);if(_0x41ce8a['length']===0x0)continue;this[_0x4623b1(0xb0)](_0x28b52a,_0x41ce8a,_0x42652c,_0x12d4a4);}}}}}[_0x49162d(0xf9)](_0x22f631,_0x3bcf17,_0x18eacb,_0x2e1cd9,_0x2ac4af){const _0x55b288=_0x49162d,_0xa867ad=this[_0x55b288(0x25c)](_0x3bcf17),{left:_0x562cdd,top:_0x2ef5dc,height:_0x55e6ab}=_0xa867ad,_0x5c91e2=this[_0x55b288(0x2bc)](),_0xbda77a=ft/_0x5c91e2,_0x4cf902=new p[(_0x55b288(0x241))](re+a[_0x55b288(0xac)][_0x55b288(0x101)](k),{'left':_0x562cdd+_0x18eacb-_0xbda77a,'top':_0x2ef5dc+_0x2e1cd9,'height':_0x55e6ab,'width':dt,'fill':_0x22f631||p['getColor'](a[_0x55b288(0x1b1)][_0x55b288(0x217)],0x0),'strokeWidth':_0xbda77a,'stroke':St,'evented':!0x0});this[_0x55b288(0x28a)]=_0x4cf902,this[_0x55b288(0x10b)][_0x55b288(0x128)](_0x4cf902,b[_0x55b288(0x2e6)]);const _0x3572b6=new p[(_0x55b288(0x241))](re+a[_0x55b288(0xac)]['generateRandomId'](k),{'left':_0x562cdd+_0x18eacb-_0xbda77a,'top':_0x2ef5dc+_0x2e1cd9-oe/0x2,'height':oe,'width':oe,'fill':_0x22f631||p[_0x55b288(0xa2)](a['COLORS'][_0x55b288(0x217)],0x0),'strokeWidth':0x0,'stroke':_0x22f631||p['getColor'](a['COLORS'][_0x55b288(0x217)],0x0),'evented':!0x1});this['_anchorDot']=_0x3572b6,this[_0x55b288(0x10b)][_0x55b288(0x128)](_0x3572b6,b[_0x55b288(0x2e6)]);const _0xba0f84=new ee(re+a[_0x55b288(0xac)][_0x55b288(0x101)](k),{'left':_0x562cdd+_0x18eacb-_0xbda77a,'top':_0x2ef5dc+_0x2e1cd9-K,'text':_0x2ac4af,'color':_0x22f631});this[_0x55b288(0x13b)]=_0xba0f84,this[_0x55b288(0x10b)][_0x55b288(0x128)](_0xba0f84,b[_0x55b288(0x2e6)]),this[_0x55b288(0x12a)]=!0x1;}[_0x49162d(0x289)](){const _0x3c8f63=_0x49162d,_0x5caca6=this['_anchor'][_0x3c8f63(0x265)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0xf5e560=this[_0x3c8f63(0x28a)][_0x3c8f63(0x24b)][_0x3c8f63(0x1bf)](()=>{const _0x27d2af=_0x3c8f63;this[_0x27d2af(0x183)]&&clearTimeout(this[_0x27d2af(0x183)]),this[_0x27d2af(0x183)]=setTimeout(()=>{const _0x3e2e5a=_0x27d2af;this[_0x3e2e5a(0x12a)]=!0x1;},0x7d0);});return()=>{_0x5caca6['unsubscribe'](),_0xf5e560['unsubscribe']();};}['_drawTextRange'](_0x2c820a,_0x4ee443,_0x2dde9f,_0x22ba86){const _0x3d3854=_0x49162d,_0x480b6e=new a[(_0x3d3854(0x10a))](_0x2c820a)['setAlpha'](0.2)[_0x3d3854(0x211)](),_0x3caa5c=new p[(_0x3d3854(0x96))](ht+a[_0x3d3854(0xac)][_0x3d3854(0x101)](k),{'pointsGroup':_0x4ee443,'fill':_0x480b6e||p[_0x3d3854(0xa2)](a[_0x3d3854(0x1b1)][_0x3d3854(0x217)],0.2),'left':_0x2dde9f,'top':_0x22ba86,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3d3854(0x2c2)][_0x3d3854(0x2aa)](_0x3caa5c),this[_0x3d3854(0x10b)][_0x3d3854(0x128)](_0x3caa5c,b[_0x3d3854(0x2e6)]);}[_0x49162d(0x218)](_0x93aa46,_0x1b13f6,_0x4efa16,_0xe02b16){const _0x30042b=_0x49162d,_0x5a0d4c=new a['ColorKit'](_0x93aa46)[_0x30042b(0x2ec)](0.2)[_0x30042b(0x211)](),_0x1488d6=new p['RegularPolygon'](ut+a['Tools'][_0x30042b(0x101)](k),{'pointsGroup':_0x1b13f6,'fill':_0x5a0d4c||p['getColor'](a[_0x30042b(0x1b1)][_0x30042b(0x217)],0.2),'left':_0x4efa16,'top':_0xe02b16,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x30042b(0x2c2)]['push'](_0x1488d6),this[_0x30042b(0x10b)][_0x30042b(0x128)](_0x1488d6,b['TEXT_RANGE_LAYER_INDEX']);}[_0x49162d(0x25c)](_0x247cfd){const _0x3a6fb2=_0x247cfd[0x0],_0x101b3e=_0x3a6fb2[0x0],_0x38ef07=_0x3a6fb2[0x2],{x:_0x177897,y:_0x48f2eb}=_0x101b3e,{x:_0x1f030b,y:_0x311227}=_0x38ef07;return{'left':_0x177897,'top':_0x48f2eb,'width':_0x1f030b-_0x177897,'height':_0x311227-_0x48f2eb};}[_0x49162d(0x2bc)](){const _0x209c27=_0x49162d,{scaleX:_0x83eb4b,scaleY:_0x2a5aed}=this[_0x209c27(0x10b)][_0x209c27(0x245)]();return Math['max'](_0x83eb4b,_0x2a5aed);}}var It=Object[_0x49162d(0x20a)],vt=(_0x16c448,_0x149ca4,_0xb04138,_0x29c315)=>{for(var _0xc5ee4d=_0x29c315>0x1?void 0x0:_0x29c315?It(_0x149ca4,_0xb04138):_0x149ca4,_0x3510fd=_0x16c448['length']-0x1,_0x3938f0;_0x3510fd>=0x0;_0x3510fd--)(_0x3938f0=_0x16c448[_0x3510fd])&&(_0xc5ee4d=_0x3938f0(_0xc5ee4d)||_0xc5ee4d);return _0xc5ee4d;},W=(_0x525c21,_0x10f9e5)=>(_0x432c10,_0x1dd588)=>_0x10f9e5(_0x432c10,_0x1dd588,_0x525c21);let Ie=class extends a['RxDisposable']{constructor(_0x50f5f9,_0x1691f9,_0x1862e2,_0x58e7f4,_0xc80374){const _0x44bfca=_0x49162d;super(),h(this,_0x44bfca(0xda),[]),h(this,'_cursors',[]),(this[_0x44bfca(0x1c2)]=_0x50f5f9,this[_0x44bfca(0x142)]=_0x1691f9,this[_0x44bfca(0x283)]=_0x1862e2,this['_commandService']=_0x58e7f4,this[_0x44bfca(0x1db)]=_0xc80374,this['_init']());}['_init'](){const _0x3ae644=_0x49162d,_0x127cd0=this[_0x3ae644(0x1c2)][_0x3ae644(0xd6)],_0x4b013a=this[_0x3ae644(0x142)];this[_0x3ae644(0x287)](d['combineLatest']([this['_collabCursorController'][_0x3ae644(0x20d)](_0x127cd0),this[_0x3ae644(0x1db)][_0x3ae644(0xe8)]])['pipe']($[_0x3ae644(0x1ca)](([_0x1b5ed7,_0x505eef])=>({'skeleton':_0x4b013a[_0x3ae644(0x20f)](),'cursors':[..._0x1b5ed7[_0x3ae644(0x10e)]()][_0x3ae644(0x276)](_0x2e0776=>({..._0x2e0776,'color':this[_0x3ae644(0x1db)][_0x3ae644(0x278)](_0x2e0776[_0x3ae644(0x16a)])}))})))[_0x3ae644(0x168)](_0x3861a5=>{const _0x48d9f2=_0x3ae644;if(this[_0x48d9f2(0xc4)](),_0x3861a5){const {skeleton:_0x2f69ab,cursors:_0x4daf8d}=_0x3861a5;this[_0x48d9f2(0x19a)](_0x2f69ab,_0x4daf8d);}})),this[_0x3ae644(0x1d1)](),this[_0x3ae644(0x22c)]();}[_0x49162d(0x19a)](_0x64ab46,_0x3b9778){const _0x371357=_0x49162d,{scene:_0x1169c0,mainComponent:_0x357838}=this[_0x371357(0x1c2)],_0x1b3e1c=_0x3b9778['map'](_0x4c8017=>new De(_0x4c8017,_0x1169c0,_0x64ab46,_0x357838));this[_0x371357(0xda)]=_0x1b3e1c,this['_cursors']=_0x3b9778;}[_0x49162d(0x1b2)](){const _0x21eb7e=_0x49162d;this[_0x21eb7e(0xc4)]();const {scene:_0xd81c0e,mainComponent:_0x4e9644}=this[_0x21eb7e(0x1c2)],_0x4f3700=this['_docSkeletonManagerService'][_0x21eb7e(0x20f)](),_0x2937e2=this[_0x21eb7e(0x219)][_0x21eb7e(0x1ca)](_0x598cd6=>new De(_0x598cd6,_0xd81c0e,_0x4f3700,_0x4e9644));this['_cursorShapes']=_0x2937e2;}['_removeCollabCursors'](){const _0x104f42=_0x49162d;this[_0x104f42(0xda)][_0x104f42(0x207)](_0x422f05=>_0x422f05[_0x104f42(0x205)]()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x1d0e29=_0x49162d,_0x3dda5f=[b[_0x1d0e29(0x102)]['id']];this['disposeWithMe'](this['_commandService'][_0x1d0e29(0xf6)](_0x5c3632=>{const _0x31446f=_0x1d0e29;_0x3dda5f[_0x31446f(0xd8)](_0x5c3632['id'])&&_0x5c3632[_0x31446f(0x2d4)][_0x31446f(0xd6)]===this[_0x31446f(0x1c2)][_0x31446f(0xd6)]&&this[_0x31446f(0x1b2)]();}));}[_0x49162d(0x1d1)](){const _0x4baaad=_0x49162d;this[_0x4baaad(0x287)](a[_0x4baaad(0x277)](this[_0x4baaad(0x1c2)][_0x4baaad(0x18d)][_0x4baaad(0x22b)])['pipe']($[_0x4baaad(0x1ed)](_0x4c7feb=>_0x4c7feb['type']===p[_0x4baaad(0x17a)][_0x4baaad(0x1c4)]),$[_0x4baaad(0x17e)](0x10))[_0x4baaad(0x168)](()=>{const _0x3f6a08=_0x4baaad;this[_0x3f6a08(0x1b2)]();}));}};Ie=vt([W(0x1,a['Inject'](Y[_0x49162d(0x2a9)])),W(0x2,a[_0x49162d(0xad)](x)),W(0x3,a[_0x49162d(0x21a)]),W(0x4,a[_0x49162d(0xad)](a[_0x49162d(0x2af)]))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x49162d(0x26b)]{constructor(_0x101029,_0x59e752){const _0x299934=_0x49162d;super(_0x101029,_0x59e752),h(this,_0x299934(0xcb)),h(this,'_hovered',!0x1),h(this,_0x299934(0x291)),h(this,_0x299934(0x264),''),h(this,_0x299934(0x1a9),_0x299934(0x19e)),h(this,'_backgroundColor'),(_0x59e752&&this['setShapeProps'](_0x59e752),this[_0x299934(0x265)][_0x299934(0x1bf)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x299934(0x24b)][_0x299934(0x1bf)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x49162d(0x1be)](_0x588e79){const _0x2be8c7=_0x49162d;var _0xed6092,_0xbb8122,_0x402082,_0x207a19,_0x4e6e3d,_0x18abb9;this[_0x2be8c7(0xcb)]=(_0xed6092=_0x588e79[_0x2be8c7(0x16a)])!=null?_0xed6092:this['_color'],this[_0x2be8c7(0x15c)]=(_0xbb8122=_0x588e79[_0x2be8c7(0x2a0)])!=null?_0xbb8122:this[_0x2be8c7(0x15c)],this['_range']=(_0x402082=_0x588e79['range'])!=null?_0x402082:this[_0x2be8c7(0x291)],this[_0x2be8c7(0x264)]=(_0x207a19=_0x588e79['name'])!=null?_0x207a19:this[_0x2be8c7(0x264)],this[_0x2be8c7(0x1a9)]=(_0x4e6e3d=_0x588e79[_0x2be8c7(0x29b)])!=null?_0x4e6e3d:this[_0x2be8c7(0x1a9)],this[_0x2be8c7(0x158)]=(_0x18abb9=_0x588e79[_0x2be8c7(0x82)])!=null?_0x18abb9:this['_backgroundColor'],this[_0x2be8c7(0x173)]({'width':_0x588e79[_0x2be8c7(0x171)],'height':_0x588e79[_0x2be8c7(0x9b)]});}['onMouseMove'](_0x20cc1c){const _0x3621cd=_0x49162d,{row:_0x140bf7,column:_0x39165a}=_0x20cc1c;if(_0x140bf7>=this[_0x3621cd(0x291)]['startRow']&&_0x140bf7<=this[_0x3621cd(0x291)][_0x3621cd(0x163)]&&_0x39165a>=this[_0x3621cd(0x291)][_0x3621cd(0xd3)]&&_0x39165a<=this[_0x3621cd(0x291)][_0x3621cd(0x1d9)]){this[_0x3621cd(0x1be)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x49162d(0xa3)](_0x53e010){return!0x1;}[_0x49162d(0x117)](_0xef20a7){const _0xc974da=_0x49162d;p['Rect']['drawWith'](_0xef20a7,{'width':this[_0xc974da(0x171)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0xc974da(0xcb)],'evented':!0x1,'fill':this[_0xc974da(0x158)]}),this[_0xc974da(0x15c)]&&(_0xef20a7[_0xc974da(0x1cb)](),_0xef20a7[_0xc974da(0x8e)](0x1,0x0,0x0,0x1,this[_0xc974da(0x171)],this['_labelPosition']===_0xc974da(0x166)?0x0:-0x14),ee['drawWith'](_0xef20a7,{'text':this[_0xc974da(0x264)],'color':this[_0xc974da(0xcb)]}),_0xef20a7['restore']());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x587e9c,_0x1cb8f5,_0x4c90cd,_0x1477b5)=>{for(var _0x13104a=_0x1477b5>0x1?void 0x0:_0x1477b5?Ct(_0x1cb8f5,_0x4c90cd):_0x1cb8f5,_0xd582e5=_0x587e9c['length']-0x1,_0x890812;_0xd582e5>=0x0;_0xd582e5--)(_0x890812=_0x587e9c[_0xd582e5])&&(_0x13104a=_0x890812(_0x13104a)||_0x13104a);return _0x13104a;},ae=(_0x2895d1,_0x22712d)=>(_0x2bf895,_0x3af2ab)=>_0x22712d(_0x2bf895,_0x3af2ab,_0x2895d1);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x1b4de7,_0x820173,_0x26f44d,_0x47f34c){const _0x222159=_0x49162d;super(),h(this,'_cursors',new Set()),h(this,_0x222159(0x189),null),(this['_context']=_0x1b4de7,this[_0x222159(0x2f1)]=_0x820173,this['_collabCursorController']=_0x26f44d,this[_0x222159(0x1db)]=_0x47f34c,this[_0x222159(0x258)]());}[_0x49162d(0x258)](){const _0x190c7f=_0x49162d;this[_0x190c7f(0x2f1)][_0x190c7f(0xe1)][_0x190c7f(0x1b3)]($[_0x190c7f(0x21f)](this[_0x190c7f(0x9d)]),$[_0x190c7f(0x109)](_0x296dfb=>{const _0x5a16bd=_0x190c7f;if(_0x296dfb){const _0x265883=_0x296dfb['sheetId'];return d[_0x5a16bd(0x250)](this[_0x5a16bd(0x283)]['getCollabCursors$'](this[_0x5a16bd(0x1c2)]['unitId']),this[_0x5a16bd(0x1db)]['currentTheme$'])[_0x5a16bd(0x1b3)]($[_0x5a16bd(0x1ca)](([_0xf0565,_0x30f34e])=>{const _0x55968e=new Map();return _0xf0565['forEach']((_0x579972,_0x3c33b5)=>{const _0x1513c9=_0x1009;if(_0x579972['sheetID']===_0x265883){const _0x5d9f87={..._0x579972};_0x5d9f87[_0x1513c9(0x16a)]=this[_0x1513c9(0x1db)][_0x1513c9(0x278)](_0x579972[_0x1513c9(0x16a)]),_0x55968e[_0x1513c9(0x15a)](_0x3c33b5,_0x5d9f87);}}),{'skeleton':_0x296dfb,'cursors':_0x55968e};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x190c7f(0x168)](({skeleton:_0x2ddd56,cursors:_0x2518e7})=>{const _0x5049b7=_0x190c7f;this[_0x5049b7(0xc4)](),_0x2ddd56&&this[_0x5049b7(0x19a)](_0x2ddd56,_0x2518e7);}),this[_0x190c7f(0x2f1)][_0x190c7f(0xe1)][_0x190c7f(0x168)](_0x2f0057=>{const _0x46b106=_0x190c7f;if(_0x2f0057==null)return;const {skeleton:_0x2c9fe6}=_0x2f0057,{scene:_0x5f326c}=this[_0x46b106(0x1c2)];_0x5f326c['onPointerMove$'][_0x46b106(0x1bf)](a['debounce'](_0x2bb3b2=>{const _0x56427f=_0x46b106;var _0x209b4a,_0x4ce229;const {offsetX:_0x190d3d,offsetY:_0x1c91fc}=_0x2bb3b2,{x:_0x2ac5c3,y:_0x5c2b52}=_0x5f326c[_0x56427f(0x2f8)](p['Vector2']['FromArray']([_0x190d3d,_0x1c91fc])),{scaleX:_0x54721b,scaleY:_0x341457}=_0x5f326c['getAncestorScale'](),_0x233e58=_0x5f326c['getViewport'](p[_0x56427f(0xb5)][_0x56427f(0x1c3)]),_0x3892de=_0x5f326c[_0x56427f(0x2c9)](p[_0x56427f(0x2a6)]['FromArray']([_0x2ac5c3,_0x5c2b52]),_0x233e58),_0x4a974b=_0x2c9fe6[_0x56427f(0xc5)](_0x190d3d,_0x1c91fc,_0x54721b,_0x341457,_0x3892de);((_0x209b4a=this[_0x56427f(0x189)])==null?void 0x0:_0x209b4a[_0x56427f(0x2ef)])===_0x4a974b['column']&&((_0x4ce229=this['_lastPointer'])==null?void 0x0:_0x4ce229[_0x56427f(0x26c)])===_0x4a974b[_0x56427f(0x26c)]||this[_0x56427f(0x219)]['forEach'](_0xa34db5=>{const _0x2dc55a=_0x56427f;_0xa34db5[_0x2dc55a(0x144)](_0x4a974b);});},0x64));});}['_updateCollabCursors'](_0x5537de,_0x1b3957){const _0xff43d=_0x49162d;var _0x595abc;const _0xa28ece=(_0x595abc=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x595abc[_0xff43d(0x225)];if(!_0xa28ece)return;const _0x7ebb1c=this['_getSheetObject']();if(!_0x7ebb1c)return;this['_cursors'][_0xff43d(0x207)](_0x37c09d=>{const _0x319a21=_0xff43d;_0x37c09d[_0x319a21(0xbf)]();});const {scene:_0x2e24c6}=_0x7ebb1c,_0x3f305a=Et(Array['from'](_0x1b3957[_0xff43d(0x10e)]()))[_0xff43d(0x1ca)](_0x49226f=>{const _0x4916dd=_0xff43d,{color:_0xee77ee,range:_0x5b9b00,name:_0x4d8b7d,selection:_0x156ba7,sheetID:_0x491204}=_0x49226f,{startColumn:_0x47e2f3,startRow:_0x2895e4,endColumn:_0x48b51e,endRow:_0x34245d}=_0x5b9b00,_0x34c9ea=X[_0x4916dd(0x108)](_0x2895e4,_0x47e2f3,_0x2e24c6,_0xa28ece),_0x48d0e7=X['getCoordByCell'](_0x34245d,_0x48b51e,_0x2e24c6,_0xa28ece),{columnHeaderHeightAndMarginTop:_0x201635}=_0xa28ece,{startX:_0x5b6fd0,startY:_0x1dccf8}=_0x34c9ea,{endX:_0x2e324c,endY:_0x46a960}=_0x48d0e7,_0xf0b8f5=_0x2e324c-_0x5b6fd0,_0x495270=_0x46a960-_0x1dccf8,_0x436cf6={'labelPosition':_0x1dccf8-_0x201635>=K?_0x4916dd(0x19e):'bottom','sheetID':_0x491204,'range':_0x5b9b00,'color':_0xee77ee,'name':_0x4d8b7d,'selection':_0x156ba7,'left':_0x5b6fd0,'top':_0x1dccf8,'width':_0xf0b8f5,'height':_0x495270,'evented':!0x1,'zIndex':bt};return new Ae(_0x4d8b7d,_0x436cf6);});_0x2e24c6['addObjects'](_0x3f305a,gt),this[_0xff43d(0x219)]=new Set(_0x3f305a);}[_0x49162d(0xc4)](){const _0xbea91=_0x49162d;var _0x1c4f7e;(_0x1c4f7e=this['_cursors'])==null||_0x1c4f7e[_0xbea91(0x207)](_0x363c19=>_0x363c19[_0xbea91(0x205)]());}[_0x49162d(0x214)](){const _0x39c6ed=_0x49162d;return X[_0x39c6ed(0xbc)](this[_0x39c6ed(0x1c2)][_0x39c6ed(0x257)],this[_0x39c6ed(0x1c2)]);}};ve=pt([ae(0x1,a[_0x49162d(0xad)](X[_0x49162d(0x9c)])),ae(0x2,a[_0x49162d(0xad)](x)),ae(0x3,a[_0x49162d(0xad)](a[_0x49162d(0x2af)]))],ve);function Et(_0x3d515c){const _0x58bed2=_0x49162d,_0x3de098=new Map();return _0x3d515c[_0x58bed2(0x207)](_0x2420c5=>{const _0x2e72d3=_0x58bed2;if(_0x3de098[_0x2e72d3(0x17c)](_0x2420c5[_0x2e72d3(0x107)])){const _0x26a533=_0x3de098[_0x2e72d3(0x150)](_0x2420c5['selection']);_0x26a533['name']+=',\x20'+_0x2420c5[_0x2e72d3(0x1bc)];}else _0x3de098[_0x2e72d3(0x15a)](_0x2420c5[_0x2e72d3(0x107)],_0x2420c5);}),Array[_0x58bed2(0x26d)](_0x3de098['values']());}var E=function(){const _0x4d06c9=_0x49162d;return E=Object[_0x4d06c9(0xaf)]||function(_0x3f59c3){const _0x56e000=_0x4d06c9;for(var _0x4ca073,_0x3127a5=0x1,_0x12edc2=arguments['length'];_0x3127a5<_0x12edc2;_0x3127a5++){_0x4ca073=arguments[_0x3127a5];for(var _0x55314c in _0x4ca073)Object[_0x56e000(0x1d4)][_0x56e000(0x19d)][_0x56e000(0x269)](_0x4ca073,_0x55314c)&&(_0x3f59c3[_0x55314c]=_0x4ca073[_0x55314c]);}return _0x3f59c3;},E['apply'](this,arguments);},Tt=function(_0x4dd47e,_0x4935fe){const _0x3f4e33=_0x49162d;var _0x4a46bb={};for(var _0xa6c3c4 in _0x4dd47e)Object[_0x3f4e33(0x1d4)][_0x3f4e33(0x19d)][_0x3f4e33(0x269)](_0x4dd47e,_0xa6c3c4)&&_0x4935fe['indexOf'](_0xa6c3c4)<0x0&&(_0x4a46bb[_0xa6c3c4]=_0x4dd47e[_0xa6c3c4]);if(_0x4dd47e!=null&&typeof Object[_0x3f4e33(0x1a1)]=='function'){for(var _0x36ec3c=0x0,_0xa6c3c4=Object[_0x3f4e33(0x1a1)](_0x4dd47e);_0x36ec3c<_0xa6c3c4[_0x3f4e33(0x2b1)];_0x36ec3c++)_0x4935fe['indexOf'](_0xa6c3c4[_0x36ec3c])<0x0&&Object[_0x3f4e33(0x1d4)][_0x3f4e33(0x199)][_0x3f4e33(0x269)](_0x4dd47e,_0xa6c3c4[_0x36ec3c])&&(_0x4a46bb[_0xa6c3c4[_0x36ec3c]]=_0x4dd47e[_0xa6c3c4[_0x36ec3c]]);}return _0x4a46bb;},pe=M[_0x49162d(0x105)](function(_0x28414c,_0x34463e){const _0x554ba9=_0x49162d;var _0x49a030=_0x28414c['icon'],_0x430126=_0x28414c['id'],_0x313a35=_0x28414c[_0x554ba9(0x2ca)],_0x2d1cb6=_0x28414c[_0x554ba9(0x256)],_0x4a244f=Tt(_0x28414c,[_0x554ba9(0x202),'id',_0x554ba9(0x2ca),_0x554ba9(0x256)]),_0x57bd0d=_0x554ba9(0x147)['concat'](_0x430126,'\x20')['concat'](_0x313a35||'')[_0x554ba9(0x1f2)](),_0x368502=M[_0x554ba9(0x1b9)]('_'[_0x554ba9(0x29d)](Dt()));return we(_0x49a030,''[_0x554ba9(0x29d)](_0x430126),{'defIds':_0x49a030['defIds'],'idSuffix':_0x368502[_0x554ba9(0xba)]},E({'ref':_0x34463e,'className':_0x57bd0d},_0x4a244f),_0x2d1cb6);});function we(_0x7db8d6,_0x107c40,_0x495531,_0x3a4700,_0x26aa3e){const _0x7ec4cc=_0x49162d;return M['createElement'](_0x7db8d6[_0x7ec4cc(0x8f)],E(E({'key':_0x107c40},Ot(_0x7db8d6,_0x495531,_0x26aa3e)),_0x3a4700),(Rt(_0x7db8d6,_0x495531)['children']||[])[_0x7ec4cc(0x1ca)](function(_0xd15b59,_0x344bee){const _0xd026d8=_0x7ec4cc;return we(_0xd15b59,''[_0xd026d8(0x29d)](_0x107c40,'-')[_0xd026d8(0x29d)](_0x7db8d6[_0xd026d8(0x8f)],'-')[_0xd026d8(0x29d)](_0x344bee),_0x495531,void 0x0,_0x26aa3e);}));}function Ot(_0x4afce8,_0x507f56,_0x215c43){const _0x1a9f3c=_0x49162d;var _0x511a89=E({},_0x4afce8[_0x1a9f3c(0x8b)]);_0x215c43!=null&&_0x215c43[_0x1a9f3c(0x1e1)]&&_0x511a89['fill']==='colorChannel1'&&(_0x511a89[_0x1a9f3c(0x177)]=_0x215c43[_0x1a9f3c(0x1e1)]),_0x4afce8[_0x1a9f3c(0x8f)]===_0x1a9f3c(0x1ec)&&_0x511a89['id']&&(_0x511a89['id']=_0x511a89['id']+_0x507f56[_0x1a9f3c(0xa1)]),Object[_0x1a9f3c(0x129)](_0x511a89)['forEach'](function(_0x580306){const _0x2b5ced=_0x1a9f3c;var _0x3fb495=_0x580306[0x0],_0x51c842=_0x580306[0x1];_0x3fb495==='mask'&&typeof _0x51c842==_0x2b5ced(0x2bf)&&(_0x511a89[_0x3fb495]=_0x51c842[_0x2b5ced(0x227)](/url\(#(.*)\)/,_0x2b5ced(0x251)[_0x2b5ced(0x29d)](_0x507f56[_0x2b5ced(0xa1)],')')));});var _0x1ca55d=_0x507f56[_0x1a9f3c(0xa6)];return!_0x1ca55d||_0x1ca55d[_0x1a9f3c(0x2b1)]===0x0||(_0x4afce8['tag']===_0x1a9f3c(0x2e5)&&_0x511a89[_0x1a9f3c(0x242)]&&(_0x511a89[_0x1a9f3c(0x242)]=_0x511a89['xlink:href']+_0x507f56[_0x1a9f3c(0xa1)]),Object[_0x1a9f3c(0x129)](_0x511a89)[_0x1a9f3c(0x207)](function(_0x5098a6){const _0x187c78=_0x1a9f3c;var _0xccea79=_0x5098a6[0x0],_0x1c6d9e=_0x5098a6[0x1];typeof _0x1c6d9e=='string'&&(_0x511a89[_0xccea79]=_0x1c6d9e['replace'](/url\(#(.*)\)/,_0x187c78(0x251)[_0x187c78(0x29d)](_0x507f56['idSuffix'],')')));})),_0x511a89;}function Rt(_0x29ddeb,_0x37dbe0){const _0x54c768=_0x49162d;var _0x14d151,_0x587025=_0x37dbe0['defIds'];return!_0x587025||_0x587025['length']===0x0?_0x29ddeb:_0x29ddeb['tag']==='defs'&&(!((_0x14d151=_0x29ddeb[_0x54c768(0x25a)])===null||_0x14d151===void 0x0)&&_0x14d151[_0x54c768(0x2b1)])?E(E({},_0x29ddeb),{'children':_0x29ddeb[_0x54c768(0x25a)][_0x54c768(0x1ca)](function(_0x1e53b4){const _0x43aea4=_0x54c768;return typeof _0x1e53b4[_0x43aea4(0x8b)]['id']=='string'&&_0x587025&&_0x587025[_0x43aea4(0x23b)](_0x1e53b4[_0x43aea4(0x8b)]['id'])>-0x1?E(E({},_0x1e53b4),{'attrs':E(E({},_0x1e53b4[_0x43aea4(0x8b)]),{'id':_0x1e53b4['attrs']['id']+_0x37dbe0[_0x43aea4(0xa1)]})}):_0x1e53b4;})}):_0x29ddeb;}function _0x4fda(){const _0x523cb6=['INVALID_ARGUMENT','@univerjs/docs','name','startsWith','setShapeProps','subscribeEvent','_entityInit$','CollaborationDataLoaderController','_context','VIEW_MAIN','resize','LocaleService','getMember','INVALID_INVITE_CODE','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','@univerjs/docs-ui','map','save','LICENSE_DISTRO_REJECTED','replaceState','transformRemoteChangeset','storage','min','_initResize','runRefRangeMutations','handleInsertCol','prototype','IUIPartsService','getActiveRange','45726ZSYhoO','_initDependencies','endColumn','Rectangle','_themeService','SetWorksheetActivateCommand','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_localeService','YUUMI_ALL_TABLES_IS_INVALID','_startSheetCollabCursor','colorChannel1','_logService','RefRangeService','DocIMEInputManagerService','INTERNAL_ERROR','PERMISSION_DENIED','YUUMI_URL_COL_OUT_OF_RANGE','RECT','_onRefRangeChange','OFFLINE','@univerjs/design','mask','filter','invokeId','PY_RUNTIME_SCRIPT_ERROR','...','show','trim','mapTo','url(#on-line-single_clip0_910_349)','sessionStatus$','ISnapshotServerService','1em','red.300','_revisionService','IURLService','_instanceService','getFocusedUnit','SYNCED','pluginName','_beforeCloseService','LICENSE_MAX_UNITS_EXCEEDED','range','icon','m2Prime','m1Prime','dispose','fillStyle','forEach','TOO_MANY_REQUESTS','subunit','getOwnPropertyDescriptor','serializeRangeWithSheet','_collaborationController','getCollabCursors$','memberID','getSkeleton','NOT_FOUND','toRgbString','useCallback','_online','_getSheetObject','distinctUntilChanged','contains','black','_drawRectRange','_cursors','ICommandService','CommandType','init','displayName','8354934ZjqnFw','takeUntil','jsx','findNodePositionByCharIndex','handleInsertRow','UPDATE_CURSOR','INVITE_CODE_REQUIRED','skeleton','959310jasAXh','replace','off-line-single_clip0_910_343','useObservable','path','onTransformChange$','_initCommandExecutedListener','_config','currentColor','override','ILocalCacheService','InsertRowCommandId','fillRule','_toggleOnline','APPLY_DUPLICATED','M0\x200H16V16H0z','_roomMembers$','permission.title','MUTATION','BrowserCollaborationSocketService','getTypeOfUnitAdded$','indexOf','evenodd','purple.300','sessionTicket','add','_handleJoinEvent','Rect','xlink:href','fromEvent','setStateCache','getAncestorScale','Plugin','IDocClipboardService','executionId','SheetCollabCursorShape','LOCAL_CACHE_INTERVAL','onPointerLeave$','NodePositionConvertToCursor','data','InsertRangeMoveDownCommandId','_eventUnsubscribe','combineLatest','url(#$1','error','selections','CHANGESET_REVISION_CONFILICT','jsxs','extend','unit','_init','getUniverSheetInstance','children','whenReady','_getAnchorBounding','Failed','_cursor','code','docStateChange$','AWAITING','UNAUTHENTICATED','INVITE_CODE_HAS_BEEN_UES','_name','onPointerEnter$','_transformHistoryAndStateStack','saveOfflineData','ONLINE','call','getCurrentRevOfUnit','Shape','row','from','removeParam','text','addHandlerCallback','SOCKET_FAILED_RETRY','parse','ITransformService','_getSaveTimeout','CollaborationSocketService','flatMap','fromEventSubject','getColorFromTheme','YUUMI_NO_CUBOID_FOR_QUESTION','@univerjs-pro/collaboration','CLOSE_ROOM','0\x200\x2016\x2016','beginPath','USER_NOT_INVITED_CODE','_send','IUniverInstanceService','_unitStatus','_colorIndex','_collabCursorController','mutations','MessageType','_notificationService','disposeWithMe','_docStateChangeManagerService','_handleHover','_anchor','isTransformMutationsWithChangesetSuccess','OTHER_CLIENTS_EDITING','_docClipboardService','@univerjs/drawing','origin','InsertColCommandId','_range','_scheduleHeartbeat','_session','3839112HTpiBo','YUUMI_RATE_OVER_LIMIT','MemberService','href','addClipboardHook','random','isActive','labelPosition','Optional','concat','DataLoaderService','YUUMI_SUBSCRIPTION_NOT_FOUND','hovered','_docSyncEditingCollabCursorService','DependentOn','exhaustSavingTask','_doCreateSocket','UnitStatus','Vector2','onRendered','RevisionService','DocSkeletonManagerService','push','stringify','_status$','DesktopCollaborationStatusDisplayController','_onCursorDelete','ThemeService','collab-rect-range-','length','LOCAL_CACHE_INTERVAL_KEY','restore','_removeClearOtherTimer','_urlService','SheetsSelectionsService','textRanges','_commandService','createElement','DeleteRangeMoveUpCommandId','_syncEditingCollabCursorService','_getScale','_initEntityListener','_initStatusListener','string','collab-client.tooltip.reconnect','createSocket','_shapes','font','_docTransformSelectionsService','_httpService','unload','AWAITING_WITH_PENDING','wsSessionTicketUrl','getVpScrollXYInfoByPosToVp','className','mergeOverrideWithDependencies','arc','runId','location','getTypeOfUnitDisposed$','size','createInstance','IConfigService','_ensureSubject','params','executeCommand','toString','BuiltInUIPart','ILogService','FETCH_MISS','NodePositionConvertToRectRange','RichTextEditingMutation','APPLY_REJECT','CollaborationSessionService','COMPLETION_FINISHED','search','handleInsertRangeMoveRight','getDocRanges','_selfUnitIDs','blue.400','_getMergeRange','use','TEXT_RANGE_LAYER_INDEX','UniverInstanceType','_docTransformIMECacheService','getUnitId','#fff','_registerDependencies','setAlpha','USERS_LEAVE','cursorInfo$','column','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','_sheetSkeletonManagerService','green.600','setConfig','registerRenderModule','getLocalCacheKey','debounce','off-line-single','getRelativeToViewportCoord','collabStatus.syncing','getSheetId','_handleEvent','setInterval','_messageService','assignAColorForMemberID','clearTimeout','YUUMI_AI_RUN_FAILED','uni.network.url-service','_updateURLWithCurrentState','_registerRenderDependencies','_handleLeaveEvent','transformIMECache','_toggleOffline','UNIVER_DOC','collaboration.single-unit.warning','RemoveRowCommandId','_cursorInfo$','InsertRangeMoveRightCommandId','defineProperty','debounceTime','CollaborationUIEventService','backgroundColor','[CollaborationDataLoaderController]','@univerjs-pro/collaboration-client','DocStateChangeManagerService','SetSelectionsOperation','Injector','_entities','closePath','_configService','attrs','_collabCursorState$','isArray','transform','tag','deepClone','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','IRenderManagerService','_disabled','status$','ranges','RegularPolygon','transformStateCache','LICENSE_IMPORT_SIZE_EXCEEDED','drawWith','rgba(255,\x20255,\x20255,\x200.01)','height','SheetSkeletonManagerService','dispose$','redoState','measureText','isTransformMutationFailure','idSuffix','getColor','triggerDblclick','getSheetBySheetId','_collabSessionService','defIds','_updateLocalCursor','hide','searchParams','_docSkeleton','_docTransformStateCacheService','Tools','Inject','_initStatusComponent','assign','_drawTextRange','url(#off-line-single_clip0_910_343)','ticket','doc.mutation.rich-text-editing','toStringTag','SHEET_VIEWPORT_KEY','_collaborationUIEventService','registerRefRange','undoState','collabStatus.conflict','current','CollaborationStatus','getSheetObject','SetTextSelectionsOperation','handleDeleteRangeMoveLeft','makeDirty','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','requireSession','shareReplay','body','_removeCollabCursors','getCellPositionByOffset','replaceDocRanges','EffectRefRangId','NOT_COLLAB','DeleteRangeMoveLeftCommandId','_saveTaskMap','_color','_localStorageService','SNAPSHOT_INVALID_SNAPSHOT','_renderManagerService','subUnitId','EMAIL_HAS_BEEN_BOUND','getValue','Error','startColumn','362360glZQjz','_injector','unitId','_heartbeatTimer','includes','_uiPartsService','_cursorShapes','urlChange$','debug','defs','RemoteUniscriptService','INotificationService','RxDisposable','currentSkeleton$','MOBILE_HAS_BEEN_BOUND','registerDependencies','cursorInfo','UniverIcon','_render','onLocalMutation','currentTheme$','_colorAssignService','eventID','univer-flex\x20univer-items-center','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','touchDependencies','UNDEFINED','SessionStatus','svg','collabStatus.synced','NO_OTHER_CLIENTS_EDITING','on-line-single_clip0_910_349','UNRECOGNIZED','WebBrowserSingleActiveUnitService','onCommandExecuted','BehaviorSubject','5884zINQxe','_drawAnchor','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','CONFLICT','collabStatus.fetchMiss','IBeforeCloseService','APPLY_PERMISSION_DENIED','_createSocketURL','DOC_RANGE_TYPE','generateRandomId','SetDocZoomRatioOperation','setTimeout','ILocalStorageService','forwardRef','collabCursorState$','selection','getCoordByCell','switchMap','ColorKit','_scene','complete','ENSURE_SNAPSHOT_EXECUTION','values','asObservable','getUnitStatus$','getCurrentSelections','_setupBeforeClosingHandler','LICENSE_EXPORT_SIZE_EXCEEDED','_assignedColors','loadUnit','_startDocCollabCursor','_draw','_unitOnClients','IMessageService','DisposableCollection','univer-flex\x20univer-mr-2\x20univer-text-xl','moveTo','saveImage','_id','WebURLService','CollaborationController','INVITE_CODE_ALREADY_BOUND','_scheduleClearOtherTimer','registerBeforeClose','TEXT','SNAPSHOT_HAS_BEEN_REMOVED','YUUMI_UNABLE_LOAD_URL','PENDING','addObject','entries','_hover','permission.content','Unknown\x20user','ACTIVE_UNIT_EVENT_CHANNEL','pushState','on-line-single','294uZqivK','_onCursorUpdate','activeSheet$','YUUMI_ASYNCIO_CANCELLED','_clearOtherTimers','getItem','collab-text-anchor-','round','getParam','translate(.97)','_cachedData','_textBubble','JOIN_ROOM_FAILED','collaboration-client.offline-data-not-saved','enableLocalCache','split','DocCollaborationEntity','deserializeRangeWithSheet','_docSkeletonManagerService','unitID','onMouseMove','_refRangeService','substring','univerjs-icon\x20univerjs-icon-','_initEvent','transformMutation','CollaborationUIEventId','CONNECTOR_DATA_TOO_LARGE','getMemberID','getStateCache','source','setItem','get','next','loadOfflineData','setParam','_localCacheService','roomMembers','post','_anchorDot','_backgroundColor','collaboration.closeRoom','set','collab-text-range-','_hovered','lineTo','session.will-retry','connectInjector','UNIVER_SHEET','actions','Warning','endRow','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','_scheduleSaving','bottom','useDependency','subscribe','event$','color','HTTPService','delete','ALREADY_EXISTS','@univerjs/engine-render','@univerjs/sheets-ui','result','width','_transformService','transformByState','popstate','getConfig','then','fill','_memberService','yellow.400','TRANSFORM_CHANGE_OBSERVABLE_TYPE','some','has','_setupSubUnitSync','throttleTime','session.collaboration-timeout','getRangePointData','imageSourceType','toDisposable','_hideTimer','_transformPreviousActiveRange','clearInterval','DocSelectionManagerService','APPLY_NON_SEQUENTIAL_REVISION','syncEditingCollabCursor','_lastPointer','roomMembers$','unshift','_saveCache','engine','history','runOnServer','send','LOGIN_FAILED','CollaborationEvent','with','_imageIoService','collaboration-client-ui.config','_updateSubUnitFromURLParams','disposeUnit','clipPath','propertyIsEnumerable','_updateCollabCursors','YUUMI_TABLE_NOT_FOUND_IN_UNIT','WebSocketService','hasOwnProperty','top','_univerInstanceService','getUndoRedoMutationParamsCache','getOwnPropertySymbols','UniverCollaborationClientUIPlugin','ISocketService','_getSessionTicket','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','saveTaskMap','385mYKVLu','_handleHeartbeatEvent','_labelPosition','updateOfflineData','onStarting','getRenderById','Disposable','none','focused$','entityInit$','COLORS','_refreshCollabCursors','pipe','getMergeData','application/json','2838612lhkuUp','editingUnit','getUnhiddenWorksheets','useRef'];_0x4fda=function(){return _0x523cb6;};return _0x4fda();}function Dt(){const _0x4bce66=_0x49162d;return Math[_0x4bce66(0x299)]()[_0x4bce66(0x2d6)](0x24)[_0x4bce66(0x146)](0x2,0x8);}pe['displayName']=_0x49162d(0xe5);var Ut={'tag':_0x49162d(0xf0),'attrs':{'fill':_0x49162d(0x1ae),'viewBox':_0x49162d(0x27c),'width':'1em','height':_0x49162d(0x1f7)},'children':[{'tag':'g','attrs':{'clipPath':_0x49162d(0xb1)},'children':[{'tag':'path','attrs':{'stroke':_0x49162d(0x22e),'d':_0x49162d(0x2f0),'strokeLinecap':_0x49162d(0x137),'strokeLinejoin':_0x49162d(0x137),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x49162d(0x198),'attrs':{'id':_0x49162d(0x228)},'children':[{'tag':_0x49162d(0x22a),'attrs':{'fill':_0x49162d(0x2ea),'d':_0x49162d(0x235)}}]}]}],'defIds':[_0x49162d(0x228)]},ye=M[_0x49162d(0x105)](function(_0x3dd05b,_0x41d3fb){const _0x5da217=_0x49162d;return M[_0x5da217(0x2b9)](pe,Object[_0x5da217(0xaf)]({},_0x3dd05b,{'id':_0x5da217(0x2f7),'ref':_0x41d3fb,'icon':Ut}));});ye[_0x49162d(0x21d)]='OffLineSingle';var Nt={'tag':_0x49162d(0xf0),'attrs':{'fill':_0x49162d(0x1ae),'viewBox':'0\x200\x2017\x2016','width':_0x49162d(0x1f7),'height':_0x49162d(0x1f7)},'children':[{'tag':'g','attrs':{'clipPath':_0x49162d(0x1f4)},'children':[{'tag':'path','attrs':{'stroke':_0x49162d(0x22e),'d':_0x49162d(0x1a5),'strokeLinecap':_0x49162d(0x137),'strokeLinejoin':_0x49162d(0x137),'strokeWidth':1.2}}]},{'tag':_0x49162d(0xdd),'attrs':{},'children':[{'tag':_0x49162d(0x198),'attrs':{'id':_0x49162d(0xf3)},'children':[{'tag':_0x49162d(0x22a),'attrs':{'fill':_0x49162d(0x2ea),'d':_0x49162d(0x235),'transform':_0x49162d(0x139)}}]}]}],'defIds':[_0x49162d(0xf3)]},$e=M[_0x49162d(0x105)](function(_0x31ede9,_0x29b9c3){const _0x25d55f=_0x49162d;return M[_0x25d55f(0x2b9)](pe,Object['assign']({},_0x31ede9,{'id':_0x25d55f(0x12f),'ref':_0x29b9c3,'icon':Nt}));});$e[_0x49162d(0x21d)]='OnLineSingle';function Mt(_0x18963b){const _0x21df61=_0x49162d;switch(_0x18963b){case u[_0x21df61(0xbb)]['OFFLINE']:return'collabStatus.offline';case u['CollaborationStatus'][_0x21df61(0xfb)]:return _0x21df61(0xb9);case u['CollaborationStatus'][_0x21df61(0x2d9)]:return _0x21df61(0xfc);case u['CollaborationStatus'][_0x21df61(0xc8)]:return'collabStatus.notCollab';case u[_0x21df61(0xbb)][_0x21df61(0x261)]:case u[_0x21df61(0xbb)][_0x21df61(0x2c7)]:return _0x21df61(0x2f9);case u['CollaborationStatus'][_0x21df61(0x1fd)]:case u[_0x21df61(0xbb)][_0x21df61(0x127)]:return _0x21df61(0xf1);}}function xe(_0x326e2f){const _0x3e3400=_0x49162d,{status$:_0x63ee86}=_0x326e2f,_0x460a8c=T[_0x3e3400(0x229)](_0x63ee86,u[_0x3e3400(0xbb)][_0x3e3400(0xc8)]),_0x3a9bdf=T['useDependency'](a[_0x3e3400(0x1c5)]),_0x46bea0=T[_0x3e3400(0x167)](u['CollaborationSessionService']),_0x2c6d26=_0x460a8c!==u[_0x3e3400(0xbb)][_0x3e3400(0x1ea)],_0x1c619e=_0x3a9bdf['t'](Mt(_0x460a8c)),_0x577951=_0x2c6d26?P[_0x3e3400(0x220)]($e,{}):P[_0x3e3400(0x220)](ye,{}),_0x4f84b7=M[_0x3e3400(0x212)](()=>{_0x2c6d26||_0x46bea0['reconnect']();},[_0x2c6d26,_0x46bea0]);function _0x50286b(){const _0x4b6624=_0x3e3400;return P[_0x4b6624(0x255)]('div',{'className':_0x4b6624(0xeb),'onClick':_0x4f84b7,'children':[P[_0x4b6624(0x220)]('div',{'className':D['clsx'](_0x4b6624(0x11b),{'univer-text-green-500':_0x2c6d26,'univer-text-red-500':!_0x2c6d26}),'children':_0x577951}),P[_0x4b6624(0x220)]('div',{'className':_0x4b6624(0x164),'children':_0x1c619e})]});}return _0x2c6d26?_0x50286b():P[_0x3e3400(0x220)](D['Tooltip'],{'title':_0x3a9bdf['t'](_0x3e3400(0x2c0)),'children':_0x50286b()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x1d0ca0,_0xd2d488,_0x780d9b,_0x463ea8)=>{const _0x1eb609=_0x49162d;for(var _0x3cf9ab=_0x463ea8>0x1?void 0x0:_0x463ea8?Lt(_0xd2d488,_0x780d9b):_0xd2d488,_0x8726ae=_0x1d0ca0[_0x1eb609(0x2b1)]-0x1,_0x1c1abd;_0x8726ae>=0x0;_0x8726ae--)(_0x1c1abd=_0x1d0ca0[_0x8726ae])&&(_0x3cf9ab=_0x1c1abd(_0x3cf9ab)||_0x3cf9ab);return _0x3cf9ab;},V=(_0x51d190,_0x540d40)=>(_0x9ed99b,_0x5d8ada)=>_0x540d40(_0x9ed99b,_0x5d8ada,_0x51d190);exports[_0x49162d(0x2ad)]=class extends a[_0x49162d(0x1ad)]{constructor(_0x2d6b3f,_0x3f0f20,_0x4a749f,_0x582931){const _0x3ae587=_0x49162d;super(),h(this,_0x3ae587(0x2ac),new d['BehaviorSubject'](u[_0x3ae587(0xbb)]['NOT_COLLAB'])),(this[_0x3ae587(0x19f)]=_0x2d6b3f,this[_0x3ae587(0xd5)]=_0x3f0f20,this[_0x3ae587(0x20c)]=_0x4a749f,this[_0x3ae587(0xd9)]=_0x582931,this[_0x3ae587(0xae)](),this['_initStatusListener']());}[_0x49162d(0x2be)](){const _0x4f5d90=_0x49162d;this[_0x4f5d90(0x287)](this[_0x4f5d90(0x19f)][_0x4f5d90(0x1af)][_0x4f5d90(0x1b3)](d[_0x4f5d90(0x109)](()=>{const _0x5a7d4d=_0x4f5d90,_0x1a7e61=this[_0x5a7d4d(0x19f)][_0x5a7d4d(0x1fc)]();return _0x1a7e61?this['_collaborationController']['getCollabEntity$'](_0x1a7e61[_0x5a7d4d(0x2e9)]()):d['of'](null);}),d[_0x4f5d90(0x109)](_0x501f8a=>_0x501f8a?_0x501f8a[_0x4f5d90(0x94)]:d['of'](u['CollaborationStatus'][_0x4f5d90(0xc8)])))['subscribe'](_0x7f8106=>{const _0x26fcd7=_0x4f5d90;this[_0x26fcd7(0x2ac)][_0x26fcd7(0x151)](_0x7f8106);}));}[_0x49162d(0xae)](){const _0x57b754=_0x49162d;this[_0x57b754(0x287)](this[_0x57b754(0xd9)]['registerComponent'](T[_0x57b754(0x2d7)]['HEADER_MENU'],()=>T[_0x57b754(0x15f)](At({'status$':this[_0x57b754(0x2ac)]['asObservable']()}),this[_0x57b754(0xd5)])));}},exports[_0x49162d(0x2ad)]=Pt([V(0x0,a[_0x49162d(0x280)]),V(0x1,a[_0x49162d(0xad)](a[_0x49162d(0x87)])),V(0x2,a[_0x49162d(0xad)](u['CollaborationController'])),V(0x3,T[_0x49162d(0x1d5)])],exports[_0x49162d(0x2ad)]);function At(_0x164cc1){const {status$:_0x20bce1}=_0x164cc1;return function(){return P['jsx'](xe,{'status$':_0x20bce1});};}var wt=Object['getOwnPropertyDescriptor'],yt=(_0x36c3df,_0x21daf3,_0x184102,_0x5c370c)=>{const _0x34705d=_0x49162d;for(var _0x3b4007=_0x5c370c>0x1?void 0x0:_0x5c370c?wt(_0x21daf3,_0x184102):_0x21daf3,_0xbd1ad3=_0x36c3df[_0x34705d(0x2b1)]-0x1,_0x308591;_0xbd1ad3>=0x0;_0xbd1ad3--)(_0x308591=_0x36c3df[_0xbd1ad3])&&(_0x3b4007=_0x308591(_0x3b4007)||_0x3b4007);return _0x3b4007;},y=(_0x269b86,_0x2929a2)=>(_0x1fbf5e,_0x9b019c)=>_0x2929a2(_0x1fbf5e,_0x9b019c,_0x269b86);let q=class extends a[_0x49162d(0x1ad)]{constructor(_0x2834bc,_0x541a1d,_0x389639,_0x336428,_0x322498,_0x159fd6){const _0x424e0f=_0x49162d;super(),this[_0x424e0f(0x1ff)]=_0x2834bc,this[_0x424e0f(0x154)]=_0x541a1d,this[_0x424e0f(0xb6)]=_0x389639,this['_messageService']=_0x336428,this['_notificationService']=_0x322498,this[_0x424e0f(0x1de)]=_0x159fd6,this[_0x424e0f(0x112)](),this[_0x424e0f(0x148)]();}[_0x49162d(0x112)](){const _0x1f15a8=_0x49162d;this[_0x1f15a8(0x287)](this[_0x1f15a8(0x1ff)][_0x1f15a8(0x123)](()=>{const _0x503a22=_0x1f15a8;if(this[_0x503a22(0x154)][_0x503a22(0x1a6)]['size'])return this['_localeService']['t'](_0x503a22(0x13d));}));}[_0x49162d(0x148)](){const _0x4d4d8a=_0x49162d;this[_0x4d4d8a(0x287)](this[_0x4d4d8a(0xb6)]['event$'][_0x4d4d8a(0x168)](_0x1ff55e=>{const _0x43d238=_0x4d4d8a;_0x1ff55e['id']===u['CollaborationUIEventId']['OTHER_CLIENT_EDITING']&&this[_0x43d238(0x2fd)][_0x43d238(0x1f1)]({'type':D[_0x43d238(0x285)][_0x43d238(0x162)],'content':this[_0x43d238(0x1de)]['t'](_0x43d238(0x7b))}),_0x1ff55e['id']===u[_0x43d238(0x14a)][_0x43d238(0x27b)]&&this[_0x43d238(0x2fd)]['show']({'type':D['MessageType']['Warning'],'content':this[_0x43d238(0x1de)]['t'](_0x43d238(0x159))}),_0x1ff55e['id']===u[_0x43d238(0x14a)][_0x43d238(0x1e6)]&&this[_0x43d238(0x286)][_0x43d238(0x1f1)]({'title':this[_0x43d238(0x1de)]['t'](_0x43d238(0x237)),'content':this[_0x43d238(0x1de)]['t'](_0x43d238(0x12b)),'type':'error','duration':0x0}),_0x1ff55e['id']===u[_0x43d238(0x14a)][_0x43d238(0xfb)]&&this['_messageService'][_0x43d238(0x1f1)]({'type':D[_0x43d238(0x285)][_0x43d238(0xd2)],'content':this[_0x43d238(0x1de)]['t']('collaboration.closeRoom')+'('+_0x1ff55e[_0x43d238(0x24d)]+')'}),_0x1ff55e['id']===u[_0x43d238(0x14a)][_0x43d238(0x13c)]&&this[_0x43d238(0x2fd)][_0x43d238(0x1f1)]({'type':D[_0x43d238(0x285)]['Warning'],'content':this[_0x43d238(0x1de)]['t'](_0x1ff55e[_0x43d238(0x24d)]||'')}),_0x1ff55e['id']===u[_0x43d238(0x14a)][_0x43d238(0x271)]&&this['_messageService'][_0x43d238(0x1f1)]({'type':D[_0x43d238(0x285)][_0x43d238(0x162)],'content':this['_localeService']['t'](_0x43d238(0x15e))}),_0x1ff55e['id']===u[_0x43d238(0x14a)]['SOCKET_FAILED']&&this[_0x43d238(0x2fd)][_0x43d238(0x1f1)]({'type':D['MessageType']['Error'],'content':this[_0x43d238(0x1de)]['t']('session.connection-failed')}),_0x1ff55e['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x43d238(0x2fd)]['show']({'type':D['MessageType'][_0x43d238(0xd2)],'content':this['_localeService']['t'](_0x43d238(0x17f))});}));}};q=yt([y(0x0,T[_0x49162d(0xfd)]),y(0x1,u['ILocalCacheService']),y(0x2,a[_0x49162d(0xad)](u[_0x49162d(0x81)])),y(0x3,T[_0x49162d(0x119)]),y(0x4,T[_0x49162d(0xdf)]),y(0x5,a[_0x49162d(0xad)](a[_0x49162d(0x1c5)]))],q);const $t=_0x49162d(0x195),Ue={},be=a['createIdentifier'](_0x49162d(0x301));var xt=Object[_0x49162d(0x20a)],jt=(_0xb265f2,_0x4382ee,_0x68b290,_0x5468fc)=>{const _0x50425b=_0x49162d;for(var _0x48347d=_0x5468fc>0x1?void 0x0:_0x5468fc?xt(_0x4382ee,_0x68b290):_0x4382ee,_0x2afc0c=_0xb265f2[_0x50425b(0x2b1)]-0x1,_0x5874c2;_0x2afc0c>=0x0;_0x2afc0c--)(_0x5874c2=_0xb265f2[_0x2afc0c])&&(_0x48347d=_0x5874c2(_0x48347d)||_0x48347d);return _0x48347d;},H=(_0x1f62f6,_0x4238ff)=>(_0x4cecc1,_0x4050c7)=>_0x4238ff(_0x4cecc1,_0x4050c7,_0x1f62f6);exports[_0x49162d(0x1c1)]=class extends a[_0x49162d(0xe0)]{constructor(_0x208d31,_0x4753c8,_0x2308c0,_0x33e144,_0x54c738){const _0x241b6b=_0x49162d;super(),this['_urlService']=_0x208d31,this[_0x241b6b(0x1e2)]=_0x4753c8,this[_0x241b6b(0x2b8)]=_0x2308c0,this['_dataLoaderService']=_0x33e144,_0x54c738?_0x54c738==null||_0x54c738[_0x241b6b(0x25b)]()[_0x241b6b(0x176)](()=>this[_0x241b6b(0x258)]()):(this[_0x241b6b(0x1e2)][_0x241b6b(0xdc)](_0x241b6b(0x83),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this['_init']());}async[_0x49162d(0x258)](){const _0xb287f7=_0x49162d,_0x4bfb65=this[_0xb287f7(0x2b5)][_0xb287f7(0x138)](_0xb287f7(0x257)),_0x49bb7a=this[_0xb287f7(0x2b5)][_0xb287f7(0x138)]('type'),_0x49eeeb=this['_urlService'][_0xb287f7(0x138)](_0xb287f7(0x209));if(!_0x4bfb65||!_0x49bb7a){this['_logService'][_0xb287f7(0xdc)]('[CollaborationDataLoaderController]',_0xb287f7(0x1c8));return;}const _0x926eb6=await this['_dataLoaderService'][_0xb287f7(0x115)](_0x4bfb65,Number(_0x49bb7a),_0x49eeeb);_0x926eb6&&_0x926eb6 instanceof a['Workbook']&&this[_0xb287f7(0x17d)](_0x926eb6);}async['_setupSubUnitSync'](_0x485af1){const _0xa91080=_0x49162d;await this[_0xa91080(0x196)](_0x485af1),_0x485af1[_0xa91080(0x132)][_0xa91080(0x1b3)](d['takeUntil'](this[_0xa91080(0x9d)]))[_0xa91080(0x168)](_0x5d02ae=>{const _0x4e7b3f=_0xa91080;_0x5d02ae&&this[_0x4e7b3f(0x302)](_0x5d02ae);}),this[_0xa91080(0x2b5)][_0xa91080(0xdb)][_0xa91080(0x1b3)](d[_0xa91080(0x21f)](this[_0xa91080(0x9d)]))[_0xa91080(0x168)](()=>this[_0xa91080(0x196)](_0x485af1));}[_0x49162d(0x302)](_0x2d6e9b,_0xa6d618=!0x1){const _0x1e2cc8=_0x49162d,_0x5ee695=this['_urlService'][_0x1e2cc8(0x138)](_0x1e2cc8(0x209));_0x2d6e9b['getSheetId']()!==_0x5ee695&&this[_0x1e2cc8(0x2b5)][_0x1e2cc8(0x153)](_0x1e2cc8(0x209),_0x2d6e9b[_0x1e2cc8(0x2fa)](),_0xa6d618);}async[_0x49162d(0x196)](_0x48ee74){const _0x11bbfd=_0x49162d;var _0x56c72b;const _0x17eac6=this[_0x11bbfd(0x2b5)][_0x11bbfd(0x138)](_0x11bbfd(0x209));if(!_0x17eac6||!_0x48ee74[_0x11bbfd(0xa4)](_0x17eac6)){const _0x4cb177=_0x48ee74[_0x11bbfd(0x1b8)]()[0x0],_0x4673b9=_0x48ee74[_0x11bbfd(0xa4)](_0x4cb177);if(!_0x4673b9)return;this['_updateURLWithCurrentState'](_0x4673b9,!0x0),await this[_0x11bbfd(0x2b8)]['executeCommand'](g[_0x11bbfd(0x1dc)]['id'],{'unitId':_0x48ee74[_0x11bbfd(0x2e9)](),'subUnitId':_0x4cb177});return;}((_0x56c72b=_0x48ee74['getActiveSheet']())==null?void 0x0:_0x56c72b['getSheetId']())!==_0x17eac6&&await this[_0x11bbfd(0x2b8)][_0x11bbfd(0x2d5)](g[_0x11bbfd(0x1dc)]['id'],{'unitId':_0x48ee74['getUnitId'](),'subUnitId':_0x17eac6});}},exports[_0x49162d(0x1c1)]=jt([H(0x0,be),H(0x1,a[_0x49162d(0x2d8)]),H(0x2,a[_0x49162d(0x21a)]),H(0x3,a[_0x49162d(0xad)](u[_0x49162d(0x29e)])),H(0x4,a[_0x49162d(0x29c)](Ke['IRemoteInstanceService']))],exports[_0x49162d(0x1c1)]);var Bt=Object[_0x49162d(0x20a)],kt=(_0x2e837f,_0x124fce,_0x42157a,_0x1e35ef)=>{const _0xd11fc8=_0x49162d;for(var _0xc08a11=_0x1e35ef>0x1?void 0x0:_0x1e35ef?Bt(_0x124fce,_0x42157a):_0x124fce,_0x585fdf=_0x2e837f[_0xd11fc8(0x2b1)]-0x1,_0x4fa43b;_0x585fdf>=0x0;_0x585fdf--)(_0x4fa43b=_0x2e837f[_0x585fdf])&&(_0xc08a11=_0x4fa43b(_0xc08a11)||_0xc08a11);return _0xc08a11;},ce=(_0x103a08,_0x10a775)=>(_0x5266a4,_0x3eb30c)=>_0x10a775(_0x5266a4,_0x3eb30c,_0x103a08);let z=class{constructor(_0x2f755c,_0x1b31c7,_0x1a6c78){const _0x3dc130=_0x49162d;this[_0x3dc130(0xd5)]=_0x2f755c,this['_transformService']=_0x1b31c7,this['_renderManagerService']=_0x1a6c78;}[_0x49162d(0x305)](_0x5747b7){const _0x2f8f66=_0x49162d;this['_transformUndoRedoStack'](_0x5747b7),this[_0x2f8f66(0x184)](_0x5747b7);}[_0x49162d(0x1ce)](_0x12162c){const _0x40359b=_0x49162d,{unitID:_0x3be278}=_0x12162c,_0xe1edb7=this[_0x40359b(0xce)][_0x40359b(0x1ac)](_0x3be278)[_0x40359b(0x193)](b['DocIMEInputManagerService']),{redoCache:_0x4f8021}=_0xe1edb7[_0x40359b(0x1a0)]();if(_0x4f8021[_0x40359b(0x2b1)]===0x0)return _0x12162c;let _0x1aceab=a['Tools'][_0x40359b(0x90)](_0x12162c[_0x40359b(0x284)][0x0]);for(let _0x43ac88=0x0;_0x43ac88<_0x4f8021[_0x40359b(0x2b1)];_0x43ac88++){const _0x5792e7={'id':'doc.mutation.rich-text-editing','params':{..._0x4f8021[_0x43ac88]}},_0x2fcf04=this[_0x40359b(0x172)][_0x40359b(0x149)](_0x1aceab,_0x5792e7,!0x1);if(m[_0x40359b(0xa0)](_0x2fcf04))throw _0x2fcf04[_0x40359b(0x252)];_0x1aceab=_0x2fcf04[_0x40359b(0x204)];}return{...a[_0x40359b(0xac)][_0x40359b(0x90)](_0x12162c),'mutations':[_0x1aceab]};}['_transformUndoRedoStack'](_0xdfcccf){const _0x1fb54c=_0x49162d,{unitID:_0x360736}=_0xdfcccf,_0x420281=this[_0x1fb54c(0xce)][_0x1fb54c(0x1ac)](_0x360736)[_0x1fb54c(0x193)](b[_0x1fb54c(0x1e4)]),{undoCache:_0x13489f,redoCache:_0x14d9f3}=_0x420281[_0x1fb54c(0x1a0)]();if(_0x13489f[_0x1fb54c(0x2b1)]===0x0||_0x14d9f3[_0x1fb54c(0x2b1)]===0x0)return;const _0x3bd4bf=[],_0x14ba68=[];let _0x5bd61d=a['Tools']['deepClone'](_0xdfcccf[_0x1fb54c(0x284)][0x0]),_0x28e3f2=a['Tools'][_0x1fb54c(0x90)](_0xdfcccf[_0x1fb54c(0x284)][0x0]);for(let _0x4e403e=_0x13489f[_0x1fb54c(0x2b1)]-0x1;_0x4e403e>=0x0;_0x4e403e--){const _0x3d8035={'id':_0x1fb54c(0xb3),'params':{..._0x13489f[_0x4e403e]}},_0x255f52={'id':'doc.mutation.rich-text-editing','params':{..._0x14d9f3[_0x4e403e]}},_0x3704a3=this[_0x1fb54c(0x172)][_0x1fb54c(0x149)](_0x5bd61d,_0x3d8035,!0x1),_0x530359=this[_0x1fb54c(0x172)][_0x1fb54c(0x149)](_0x28e3f2,_0x255f52,!0x1);if(m['isTransformMutationFailure'](_0x3704a3))throw _0x3704a3[_0x1fb54c(0x252)];if(m[_0x1fb54c(0xa0)](_0x530359))throw _0x530359[_0x1fb54c(0x252)];_0x3bd4bf[_0x1fb54c(0x18b)](_0x3704a3[_0x1fb54c(0x203)][_0x1fb54c(0x2d4)]),_0x14ba68[_0x1fb54c(0x18b)](_0x530359[_0x1fb54c(0x203)][_0x1fb54c(0x2d4)]),_0x5bd61d=_0x3704a3[_0x1fb54c(0x204)],_0x28e3f2=_0x530359['m1Prime'];}_0x420281['setUndoRedoMutationParamsCache']({'undoCache':_0x3bd4bf,'redoCache':_0x14ba68});}[_0x49162d(0x184)](_0x323140){const _0x3ccc83=_0x49162d,{unitID:_0x309299}=_0x323140,_0x4e33dc=this['_renderManagerService']['getRenderById'](_0x309299)[_0x3ccc83(0x193)](b[_0x3ccc83(0x1e4)]),_0x5a9086=_0x4e33dc[_0x3ccc83(0x1d6)]();if(_0x5a9086==null)return;const _0x1f749b=[{'id':_0x3ccc83(0xb3),'params':{'unitId':_0x323140[_0x3ccc83(0x143)],'actions':null,'textRanges':[_0x5a9086]}}],_0x2d7b61=this['_transformService']['transformMutationsWithChangeset'](_0x323140,_0x1f749b);if(!m[_0x3ccc83(0x28b)](_0x2d7b61))throw _0x2d7b61[_0x3ccc83(0x252)];const _0x2802eb=_0x2d7b61[_0x3ccc83(0x203)][0x0][_0x3ccc83(0x2d4)][_0x3ccc83(0x2b7)];Array[_0x3ccc83(0x8d)](_0x2802eb)&&_0x2802eb['length']&&_0x4e33dc['setActiveRange'](_0x2802eb[0x0]);}};z=kt([ce(0x0,a[_0x49162d(0xad)](a['Injector'])),ce(0x1,m[_0x49162d(0x273)]),ce(0x2,p[_0x49162d(0x92)])],z);var Ht=Object[_0x49162d(0x20a)],Ft=(_0x342ac6,_0x1d90c0,_0x251323,_0x932757)=>{const _0x94a3ce=_0x49162d;for(var _0x3f89cb=_0x932757>0x1?void 0x0:_0x932757?Ht(_0x1d90c0,_0x251323):_0x1d90c0,_0x526c55=_0x342ac6[_0x94a3ce(0x2b1)]-0x1,_0x3655d7;_0x526c55>=0x0;_0x526c55--)(_0x3655d7=_0x342ac6[_0x526c55])&&(_0x3f89cb=_0x3655d7(_0x3f89cb)||_0x3f89cb);return _0x3f89cb;},le=(_0x6aa5c5,_0x4fad02)=>(_0x385433,_0x1f4774)=>_0x4fad02(_0x385433,_0x1f4774,_0x6aa5c5);let J=class{constructor(_0x23887b,_0x58e567,_0x2c80bc){const _0x349d80=_0x49162d;this[_0x349d80(0xd5)]=_0x23887b,this[_0x349d80(0x172)]=_0x58e567,this[_0x349d80(0x288)]=_0x2c80bc;}[_0x49162d(0x97)](_0x322d9c){const _0x195739=_0x49162d;this[_0x195739(0x266)](_0x322d9c);}[_0x49162d(0x1ce)](_0x1484ff){const _0x4d20ba=_0x49162d,{unitID:_0x54b494}=_0x1484ff,{collaboration:_0x25d303}=this[_0x4d20ba(0x288)][_0x4d20ba(0x14d)](_0x54b494);if(_0x25d303['length']===0x0)return _0x1484ff;let _0x7fcf36=a[_0x4d20ba(0xac)]['deepClone'](_0x1484ff[_0x4d20ba(0x284)][0x0]);for(let _0xc2457d=0x0;_0xc2457d<_0x25d303[_0x4d20ba(0x2b1)];_0xc2457d++){const _0x5d5440={'id':_0x4d20ba(0xb3),'params':{'unitId':_0x25d303[_0xc2457d][_0x4d20ba(0xd6)],..._0x25d303[_0xc2457d][_0x4d20ba(0x9e)]}},_0xbb347c=this[_0x4d20ba(0x172)][_0x4d20ba(0x149)](_0x7fcf36,_0x5d5440,!0x1);if(m['isTransformMutationFailure'](_0xbb347c))throw _0xbb347c['error'];_0x7fcf36=_0xbb347c[_0x4d20ba(0x204)];}return{...a[_0x4d20ba(0xac)][_0x4d20ba(0x90)](_0x1484ff),'mutations':[_0x7fcf36]};}['_transformHistoryAndStateStack'](_0x44b0e0){const _0xd1a9d9=_0x49162d,{unitID:_0x5cb93d}=_0x44b0e0,{history:_0x129de4,collaboration:_0x487713}=this[_0xd1a9d9(0x288)][_0xd1a9d9(0x14d)](_0x5cb93d);if(_0x129de4[_0xd1a9d9(0x2b1)]===0x0&&_0x487713[_0xd1a9d9(0x2b1)]===0x0)return;const _0x217efe=[],_0x1aba37=[];let _0x1697eb=a[_0xd1a9d9(0xac)]['deepClone'](_0x44b0e0[_0xd1a9d9(0x284)][0x0]),_0x429b55=a['Tools'][_0xd1a9d9(0x90)](_0x44b0e0['mutations'][0x0]);for(let _0xe4e27d=_0x129de4[_0xd1a9d9(0x2b1)]-0x1;_0xe4e27d>=0x0;_0xe4e27d--){const _0x5eb259={'id':_0xd1a9d9(0xb3),'params':{'unitId':_0x129de4[_0xe4e27d][_0xd1a9d9(0xd6)],..._0x129de4[_0xe4e27d][_0xd1a9d9(0xb8)]}},_0x5d803d={'id':_0xd1a9d9(0xb3),'params':{'unitId':_0x129de4[_0xe4e27d]['unitId'],..._0x129de4[_0xe4e27d][_0xd1a9d9(0x9e)]}},_0x587ffd=this[_0xd1a9d9(0x172)][_0xd1a9d9(0x149)](_0x1697eb,_0x5eb259,!0x1),_0x5921d3=this['_transformService']['transformMutation'](_0x429b55,_0x5d803d,!0x1);if(m[_0xd1a9d9(0xa0)](_0x587ffd))throw _0x587ffd[_0xd1a9d9(0x252)];if(m[_0xd1a9d9(0xa0)](_0x5921d3))throw _0x5921d3[_0xd1a9d9(0x252)];_0x217efe[_0xd1a9d9(0x18b)]({..._0x129de4[_0xe4e27d],'undoState':_0x587ffd[_0xd1a9d9(0x203)][_0xd1a9d9(0x2d4)],'redoState':_0x5921d3['m2Prime']['params']}),_0x1697eb=_0x587ffd['m1Prime'],_0x429b55=_0x5921d3[_0xd1a9d9(0x204)];}_0x1697eb=a[_0xd1a9d9(0xac)][_0xd1a9d9(0x90)](_0x44b0e0[_0xd1a9d9(0x284)][0x0]),_0x429b55=a[_0xd1a9d9(0xac)][_0xd1a9d9(0x90)](_0x44b0e0['mutations'][0x0]);for(let _0xe0a49a=_0x487713['length']-0x1;_0xe0a49a>=0x0;_0xe0a49a--){const _0x464bfc={'id':_0xd1a9d9(0xb3),'params':{'unitId':_0x487713[_0xe0a49a][_0xd1a9d9(0xd6)],..._0x487713[_0xe0a49a][_0xd1a9d9(0xb8)]}},_0x8b42ea={'id':_0xd1a9d9(0xb3),'params':{'unitId':_0x487713[_0xe0a49a][_0xd1a9d9(0xd6)],..._0x487713[_0xe0a49a]['redoState']}},_0x211bbc=this['_transformService'][_0xd1a9d9(0x149)](_0x1697eb,_0x464bfc,!0x1),_0x18f94d=this['_transformService'][_0xd1a9d9(0x149)](_0x429b55,_0x8b42ea,!0x1);if(m[_0xd1a9d9(0xa0)](_0x211bbc))throw _0x211bbc['error'];if(m[_0xd1a9d9(0xa0)](_0x18f94d))throw _0x18f94d[_0xd1a9d9(0x252)];_0x1aba37[_0xd1a9d9(0x18b)]({..._0x487713[_0xe0a49a],'undoState':_0x211bbc['m2Prime'][_0xd1a9d9(0x2d4)],'redoState':_0x18f94d[_0xd1a9d9(0x203)][_0xd1a9d9(0x2d4)]}),_0x1697eb=_0x211bbc['m1Prime'],_0x429b55=_0x18f94d[_0xd1a9d9(0x204)];}this['_docStateChangeManagerService'][_0xd1a9d9(0x244)](_0x5cb93d,{'history':_0x217efe,'collaboration':_0x1aba37});}};J=Ft([le(0x0,a[_0x49162d(0xad)](a[_0x49162d(0x87)])),le(0x1,m[_0x49162d(0x273)]),le(0x2,a[_0x49162d(0xad)](b[_0x49162d(0x85)]))],J);var Yt=Object['getOwnPropertyDescriptor'],Wt=(_0x52b257,_0x2f358f,_0x46010d,_0x309280)=>{const _0x321f6a=_0x49162d;for(var _0x2ea99a=_0x309280>0x1?void 0x0:_0x309280?Yt(_0x2f358f,_0x46010d):_0x2f358f,_0x1cc320=_0x52b257[_0x321f6a(0x2b1)]-0x1,_0x204cd2;_0x1cc320>=0x0;_0x1cc320--)(_0x204cd2=_0x52b257[_0x1cc320])&&(_0x2ea99a=_0x204cd2(_0x2ea99a)||_0x2ea99a);return _0x2ea99a;},Ne=(_0x50b0bd,_0xf2a1fc)=>(_0x2b6528,_0x1c7941)=>_0xf2a1fc(_0x2b6528,_0x1c7941,_0x50b0bd);let Z=class{constructor(_0x3b922c,_0xa0bc3e){this['_injector']=_0x3b922c,this['_transformService']=_0xa0bc3e;}['transformSelections'](_0x235fd7){const _0x3de0cc=_0x49162d;var _0x320766;const _0x3cfad1=this['_injector'][_0x3de0cc(0x150)](Y[_0x3de0cc(0x186)]),_0x5958b8=(_0x320766=_0x3cfad1[_0x3de0cc(0x2e1)]())!=null?_0x320766:[];if(_0x5958b8[_0x3de0cc(0x2b1)]===0x0)return;const _0x557325=_0x235fd7[_0x3de0cc(0x143)],_0x2875fc=[{'id':_0x3de0cc(0xb3),'params':{'unitId':_0x557325,'actions':null,'textRanges':_0x5958b8}}],_0x3f1194=this['_transformService']['transformMutationsWithChangeset'](_0x235fd7,_0x2875fc);if(!m[_0x3de0cc(0x28b)](_0x3f1194))throw _0x3f1194[_0x3de0cc(0x252)];const _0x122bae=_0x3f1194['m2Prime'][0x0][_0x3de0cc(0x2d4)][_0x3de0cc(0x2b7)];Array['isArray'](_0x122bae)&&_0x122bae['length']&&_0x3cfad1[_0x3de0cc(0xc6)](_0x122bae,{'unitId':_0x557325,'subUnitId':_0x557325},!0x1);}};Z=Wt([Ne(0x0,a[_0x49162d(0xad)](a[_0x49162d(0x87)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0x369a97,_0x91798f,_0x5dd0c9,_0x5b6758)=>{for(var _0x4234e9=_0x5b6758>0x1?void 0x0:_0x5b6758?Vt(_0x91798f,_0x5dd0c9):_0x91798f,_0x1ec51b=_0x369a97['length']-0x1,_0x34b909;_0x1ec51b>=0x0;_0x1ec51b--)(_0x34b909=_0x369a97[_0x1ec51b])&&(_0x4234e9=_0x34b909(_0x4234e9)||_0x4234e9);return _0x4234e9;},N=(_0x3ae220,_0x56479e)=>(_0x1a6eac,_0x69a583)=>_0x56479e(_0x1a6eac,_0x69a583,_0x3ae220);let Q=class extends a[_0x49162d(0x1ad)]{constructor(_0x21225b,_0x33a8d9,_0x1a2411,_0x400c83,_0xd05ede,_0x3f863f,_0x32e95e,_0x411d20){const _0x423513=_0x49162d;super(),h(this,_0x423513(0x2ac),new d[(_0x423513(0xf7))](u['CollaborationStatus'][_0x423513(0xc8)])),(this[_0x423513(0x288)]=_0x21225b,this['_collaborationController']=_0x33a8d9,this[_0x423513(0x2e8)]=_0x1a2411,this[_0x423513(0xab)]=_0x400c83,this[_0x423513(0x2c4)]=_0xd05ede,this['_docSyncEditingCollabCursorService']=_0x3f863f,this[_0x423513(0x2fd)]=_0x32e95e,this[_0x423513(0x1de)]=_0x411d20,this[_0x423513(0x2bd)]());}[_0x49162d(0x2bd)](){const _0x290723=_0x49162d;this['disposeWithMe'](this[_0x290723(0x20c)][_0x290723(0x1b0)][_0x290723(0x168)](_0x4f0820=>{const _0x4bf849=_0x290723,_0x8e4ad5=this[_0x4bf849(0x288)][_0x4bf849(0x260)][_0x4bf849(0x168)](_0x538c15=>{const _0x372a67=_0x4bf849;if(_0x538c15==null)return;const {unitId:_0x2e46af,redoState:_0x28dcb5,commandId:_0x69453d}=_0x538c15;if(_0x2e46af!==_0x4f0820[_0x372a67(0x143)])return;const _0x4cc032={'id':_0x69453d,'type':a[_0x372a67(0x21b)][_0x372a67(0x238)],'params':{'unitId':_0x2e46af,'actions':_0x28dcb5[_0x372a67(0x161)],'textRanges':null}};_0x4f0820[_0x372a67(0xe7)](_0x4cc032);});if(_0x4f0820[_0x4bf849(0x287)](_0x8e4ad5),_0x4f0820 instanceof u[_0x4bf849(0x140)]){const _0x16bcc5={'onTransformIME':_0x741a=>this[_0x4bf849(0x2e8)]['transformIMECache'](_0x741a),'onTransformState':_0x3f26ad=>this[_0x4bf849(0xab)]['transformStateCache'](_0x3f26ad),'onTransformSelections':_0x43e171=>this[_0x4bf849(0x2c4)]['transformSelections'](_0x43e171),'onSyncEditingCollabCursor':_0x8a0f9b=>this[_0x4bf849(0x2a1)][_0x4bf849(0x188)](_0x8a0f9b),'onTransformRemoteChangesetByIMECache':_0x3a71a8=>this[_0x4bf849(0x2e8)][_0x4bf849(0x1ce)](_0x3a71a8),'onTransformRemoteChangesetByStateCache':_0x454cf8=>this[_0x4bf849(0xab)]['transformRemoteChangeset'](_0x454cf8)};_0x4f0820[_0x4bf849(0x270)](_0x16bcc5);}}));}};Q=Xt([N(0x0,a[_0x49162d(0xad)](b[_0x49162d(0x85)])),N(0x1,a[_0x49162d(0xad)](u[_0x49162d(0x120)])),N(0x2,a[_0x49162d(0xad)](z)),N(0x3,a['Inject'](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x49162d(0xad)](Ce)),N(0x6,T[_0x49162d(0x119)]),N(0x7,a[_0x49162d(0xad)](a[_0x49162d(0x1c5)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x3dcb6b,_0x587de3,_0x513da1,_0x228583)=>{const _0x4e0188=_0x49162d;for(var _0x19040c=_0x228583>0x1?void 0x0:_0x228583?Gt(_0x587de3,_0x513da1):_0x587de3,_0x24992d=_0x3dcb6b[_0x4e0188(0x2b1)]-0x1,_0xe917ed;_0x24992d>=0x0;_0x24992d--)(_0xe917ed=_0x3dcb6b[_0x24992d])&&(_0x19040c=_0xe917ed(_0x19040c)||_0x19040c);return _0x19040c;},_e=(_0x2ce47b,_0x4de00b)=>(_0x5e04bd,_0x527cca)=>_0x4de00b(_0x5e04bd,_0x527cca,_0x2ce47b);let ge=class extends a['Disposable']{constructor(_0xa8d060,_0x185a35,_0x21c7a5){const _0x5e48bc=_0x49162d;super(),h(this,'_cachedData',new Map()),h(this,_0x5e48bc(0xca),new Map()),h(this,'_disabled',!0x1),(this[_0x5e48bc(0x8a)]=_0xa8d060,this['_localStorageService']=_0x185a35,this[_0x5e48bc(0x1f9)]=_0x21c7a5);}['disableLocalCache'](){const _0x4df9c9=_0x49162d;this[_0x4df9c9(0x93)]=!0x0;}[_0x49162d(0x13e)](){this['_disabled']=!0x1;}get[_0x49162d(0x1a6)](){const _0x98192=_0x49162d;return this[_0x98192(0xca)];}[_0x49162d(0x205)](){const _0x19e331=_0x49162d;this[_0x19e331(0x2a3)]()[_0x19e331(0x176)](()=>super[_0x19e331(0x205)]());}async[_0x49162d(0x152)](_0xebcaec){const _0x1d4c6d=_0x49162d;return this['_disabled']?null:this[_0x1d4c6d(0xcc)][_0x1d4c6d(0x135)](u[_0x1d4c6d(0x2f5)](_0xebcaec));}async[_0x49162d(0x267)](_0x29399b,_0x3194e4){const _0x337f7c=_0x49162d;return!!this[_0x337f7c(0xcc)][_0x337f7c(0x14f)](_0x29399b,_0x3194e4);}[_0x49162d(0x1aa)](_0x2c40a2,_0xc16a6a,_0x172335,_0x4a6f2e){const _0x4bf00d=_0x49162d,_0x3d23cc=this[_0x4bf00d(0x1f9)][_0x4bf00d(0x26a)](_0x2c40a2);this[_0x4bf00d(0x13a)][_0x4bf00d(0x15a)](_0x2c40a2,{'unitID':_0x2c40a2,'type':_0xc16a6a,'awaitingChangeset':_0x172335,'mutations':_0x4a6f2e,'rev':_0x3d23cc}),this[_0x4bf00d(0xca)]['has'](_0x2c40a2)||this['_scheduleSaving'](_0x2c40a2);}[_0x49162d(0x165)](_0x53fc8f){const _0x4bad71=_0x49162d,_0x48e092=this[_0x4bad71(0x274)]();_0x48e092===0x0?this[_0x4bad71(0x18c)](_0x53fc8f):this[_0x4bad71(0xca)][_0x4bad71(0x15a)](_0x53fc8f,setTimeout(()=>this[_0x4bad71(0x18c)](_0x53fc8f),_0x48e092));}[_0x49162d(0x274)](){const _0x2f34f0=_0x49162d;var _0x160ea9;return(_0x160ea9=this['_configService'][_0x2f34f0(0x175)](u[_0x2f34f0(0x2b2)]))!=null?_0x160ea9:u[_0x2f34f0(0x24a)];}[_0x49162d(0x18c)](_0x273a2f){const _0x2d8201=_0x49162d,_0x2aaf86=this[_0x2d8201(0xca)][_0x2d8201(0x150)](_0x273a2f);return _0x2aaf86!==void 0x0&&window[_0x2d8201(0x2ff)](_0x2aaf86),this['_localStorageService'][_0x2d8201(0x14f)](u[_0x2d8201(0x2f5)](_0x273a2f),this['_cachedData'][_0x2d8201(0x150)](_0x273a2f))['then'](()=>this[_0x2d8201(0xca)][_0x2d8201(0x16c)](_0x273a2f));}async['exhaustSavingTask'](){const _0x3292df=_0x49162d,_0x24eeb7=[];this[_0x3292df(0xca)][_0x3292df(0x207)]((_0x2c2199,_0x3c8387)=>{const _0x3592e4=_0x3292df;window[_0x3592e4(0x2ff)](_0x2c2199),_0x24eeb7[_0x3592e4(0x2aa)](this[_0x3592e4(0x18c)](_0x3c8387)['then'](()=>{const _0x579fc1=_0x3592e4;this[_0x579fc1(0xca)][_0x579fc1(0x16c)](_0x3c8387);}));}),await Promise['all'](_0x24eeb7);}};ge=Kt([_e(0x0,a[_0x49162d(0x2d2)]),_e(0x1,a[_0x49162d(0x104)]),_e(0x2,a[_0x49162d(0xad)](m[_0x49162d(0x2a8)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x5537e2=_0x49162d;super(),h(this,_0x5537e2(0xdb)),this[_0x5537e2(0xdb)]=d[_0x5537e2(0x243)](window,_0x5537e2(0x174))['pipe'](d[_0x5537e2(0x21f)](this[_0x5537e2(0x9d)]),d[_0x5537e2(0xc2)](0x1),d[_0x5537e2(0x1f3)](void 0x0));}[_0x49162d(0x153)](_0x3b7a0f,_0x219e8a,_0x460a87=!0x1){const _0x40d24d=_0x49162d,_0x52691c=new URL(window[_0x40d24d(0x2ce)]['href']);_0x52691c[_0x40d24d(0xa9)]['set'](_0x3b7a0f,_0x219e8a),_0x460a87?window[_0x40d24d(0x18e)][_0x40d24d(0x1cd)]('','',_0x52691c[_0x40d24d(0x2d6)]()):window['history'][_0x40d24d(0x12e)]('','',_0x52691c[_0x40d24d(0x2d6)]());}[_0x49162d(0x26e)](_0x477374,_0x40748c=!0x1){const _0x440013=_0x49162d,_0x4cf164=new URL(window[_0x440013(0x2ce)]['href']);_0x4cf164[_0x440013(0xa9)][_0x440013(0x16c)](_0x477374),_0x40748c?window[_0x440013(0x18e)][_0x440013(0x1cd)]('','',_0x4cf164[_0x440013(0x2d6)]()):window['history'][_0x440013(0x12e)]('','',_0x4cf164['toString']());}[_0x49162d(0x138)](_0x559d1b){const _0x55a4a6=_0x49162d;var _0x9aa5cc;return(_0x9aa5cc=new URL(window[_0x55a4a6(0x2ce)][_0x55a4a6(0x297)])[_0x55a4a6(0xa9)][_0x55a4a6(0x150)](_0x559d1b))!=null?_0x9aa5cc:void 0x0;}}var qt=Object[_0x49162d(0x7f)],zt=Object[_0x49162d(0x20a)],Jt=(_0x589869,_0x3705be,_0x3763b6)=>_0x3705be in _0x589869?qt(_0x589869,_0x3705be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3763b6}):_0x589869[_0x3705be]=_0x3763b6,Zt=(_0x2ef69a,_0x103155,_0x15c82c,_0x2a5221)=>{const _0x4c22c8=_0x49162d;for(var _0x31f0f8=_0x2a5221>0x1?void 0x0:_0x2a5221?zt(_0x103155,_0x15c82c):_0x103155,_0x16ae50=_0x2ef69a[_0x4c22c8(0x2b1)]-0x1,_0x3e0929;_0x16ae50>=0x0;_0x16ae50--)(_0x3e0929=_0x2ef69a[_0x16ae50])&&(_0x31f0f8=_0x3e0929(_0x31f0f8)||_0x31f0f8);return _0x31f0f8;},he=(_0x254758,_0xec8bbb)=>(_0xecfee8,_0x20a93a)=>_0xec8bbb(_0xecfee8,_0x20a93a,_0x254758),Qt=(_0x5e643e,_0x57dc2a,_0x36a0c0)=>Jt(_0x5e643e,_0x57dc2a+'',_0x36a0c0);const es=_0x49162d(0x91);exports[_0x49162d(0x1a2)]=class extends a[_0x49162d(0x246)]{constructor(_0x1ad3ee=Ue,_0x338166,_0x5f2d97,_0x567a9f){const _0x3c6c03=_0x49162d;super(),this['_config']=_0x1ad3ee,this[_0x3c6c03(0xce)]=_0x338166,this[_0x3c6c03(0xd5)]=_0x5f2d97,this['_configService']=_0x567a9f;const {..._0x3958d9}=a['merge']({},Ue,this[_0x3c6c03(0x22d)]);this[_0x3c6c03(0x8a)][_0x3c6c03(0x2f3)]($t,_0x3958d9);}[_0x49162d(0x1ab)](){const _0x59c801=_0x49162d;this[_0x59c801(0x2eb)](),this[_0x59c801(0x1d8)]();}[_0x49162d(0x2a7)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x5a6405=_0x49162d;var _0x2a15b4;const _0x24ee86=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x5a6405(0x1a3)],{'useClass':G[_0x5a6405(0x19c)]}],[u[_0x5a6405(0x230)],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x5a6405(0xe3)](this[_0x5a6405(0xd5)],a[_0x5a6405(0x2cb)](_0x24ee86,(_0x2a15b4=this['_config'])==null?void 0x0:_0x2a15b4[_0x5a6405(0x22f)]));}[_0x49162d(0x303)](){const _0x5cdc1a=_0x49162d;this['disposeWithMe'](this[_0x5cdc1a(0xce)][_0x5cdc1a(0x2f4)](a[_0x5cdc1a(0x2e7)][_0x5cdc1a(0x7a)],[Ie])),this[_0x5cdc1a(0x287)](this[_0x5cdc1a(0xce)]['registerRenderModule'](a[_0x5cdc1a(0x2e7)]['UNIVER_SHEET'],[ve]));}[_0x49162d(0x1d8)](){const _0x3d5171=_0x49162d;a[_0x3d5171(0xed)](this[_0x3d5171(0xd5)],[[x],[exports[_0x3d5171(0x2ad)]],[Q],[q],[exports[_0x3d5171(0x1c1)]]]);}},Qt(exports[_0x49162d(0x1a2)],_0x49162d(0x1fe),es),exports[_0x49162d(0x1a2)]=Zt([a[_0x49162d(0x2a2)](u['UniverCollaborationClientPlugin']),he(0x1,p[_0x49162d(0x92)]),he(0x2,a[_0x49162d(0xad)](a['Injector'])),he(0x3,a[_0x49162d(0x2d2)])],exports[_0x49162d(0x1a2)]);function _0x1009(_0x30466d,_0x4a6452){const _0x4fdac4=_0x4fda();return _0x1009=function(_0x100908,_0xdf2690){_0x100908=_0x100908-0x7a;let _0x2a0c82=_0x4fdac4[_0x100908];return _0x2a0c82;},_0x1009(_0x30466d,_0x4a6452);}var ts=Object[_0x49162d(0x20a)],ss=(_0xe9f8ce,_0x2508a0,_0x359d65,_0x137611)=>{const _0xc55c57=_0x49162d;for(var _0x12111d=_0x137611>0x1?void 0x0:_0x137611?ts(_0x2508a0,_0x359d65):_0x2508a0,_0x43225c=_0xe9f8ce[_0xc55c57(0x2b1)]-0x1,_0x144a64;_0x43225c>=0x0;_0x43225c--)(_0x144a64=_0xe9f8ce[_0x43225c])&&(_0x12111d=_0x144a64(_0x12111d)||_0x12111d);return _0x12111d;},F=(_0x363c7a,_0x47c887)=>(_0xeebbd7,_0x41b6c4)=>_0x47c887(_0xeebbd7,_0x41b6c4,_0x363c7a);exports[_0x49162d(0x239)]=class extends u[_0x49162d(0x275)]{constructor(_0x4b0138,_0x5e8583,_0x2b672e,_0xdb8e77,_0x4ee063){super(_0x4b0138,_0x5e8583,_0x2b672e,_0xdb8e77,_0x4ee063);}async[_0x49162d(0x2c1)](_0x426da7){const _0x41925a=_0x49162d,_0x45a20f=await this[_0x41925a(0x1a4)](),_0x4106b8=this[_0x41925a(0xff)](_0x426da7,_0x45a20f);return this[_0x41925a(0x2a4)](_0x4106b8);}[_0x49162d(0xff)](_0x182740,_0x566c86){const _0x107c6c=_0x49162d,_0x424530=typeof window>'u'?new URL(_0x182740):new URL(_0x182740,window[_0x107c6c(0x2ce)][_0x107c6c(0x28f)]);_0x424530[_0x107c6c(0xa9)][_0x107c6c(0x15a)](_0x107c6c(0x23e),_0x566c86);const _0x27d3a2=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x107c6c(0x2ce)][_0x107c6c(0x2df)]);return _0x27d3a2[_0x107c6c(0x150)]('runId')&&_0x424530[_0x107c6c(0xa9)][_0x107c6c(0x15a)]('runId',_0x27d3a2['get']('runId')),_0x424530[_0x107c6c(0x2d6)]();}async[_0x49162d(0x1a4)](){const _0x43ca44=_0x49162d;var _0x428253,_0x52d453,_0x3aa7c8;const _0x313337=this['_configService'][_0x43ca44(0x175)](u['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']),_0x16ddf9=(_0x428253=_0x313337==null?void 0x0:_0x313337[_0x43ca44(0x2c8)])!=null?_0x428253:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x3aa7c8=(_0x52d453=(await this['_httpService'][_0x43ca44(0x150)](_0x16ddf9,{'headers':{'Content-Type':_0x43ca44(0x1b5)}}))[_0x43ca44(0xc3)])==null?void 0x0:_0x52d453[_0x43ca44(0xb2)])!=null?_0x3aa7c8:'';}},exports[_0x49162d(0x239)]=ss([F(0x0,a[_0x49162d(0xad)](a['Injector'])),F(0x1,a['Inject'](G[_0x49162d(0x16b)])),F(0x2,a['IConfigService']),F(0x3,a[_0x49162d(0x2d8)]),F(0x4,m[_0x49162d(0x1f6)])],exports[_0x49162d(0x239)]);const Me=0x7530,Le=_0x49162d(0x12d);class is extends a[_0x49162d(0x1ad)]{constructor(){const _0x4586ef=_0x49162d;super(),h(this,_0x4586ef(0x11e),a[_0x4586ef(0x101)]()),h(this,_0x4586ef(0x2e2),new Set()),h(this,_0x4586ef(0x118),new Map()),h(this,_0x4586ef(0xd7),null),h(this,_0x4586ef(0x134),new Map()),h(this,'_unitStatus',new Map()),this['_init']();}[_0x49162d(0x205)](){const _0x489e8f=_0x49162d;super[_0x489e8f(0x205)](),this['_clearOtherTimers'][_0x489e8f(0x207)]((_0x501275,_0x5de3e7)=>this[_0x489e8f(0x2b4)](_0x5de3e7)),this[_0x489e8f(0xd7)]&&window[_0x489e8f(0x185)](this['_heartbeatTimer']);}[_0x49162d(0x110)](_0x395483){const _0x58241d=_0x49162d;return this[_0x58241d(0x2d3)](_0x395483)[_0x58241d(0x1b3)](d[_0x58241d(0x215)]());}[_0x49162d(0x1b7)](_0x3da094){const _0x249a44=_0x49162d;this[_0x249a44(0x2e2)][_0x249a44(0x2d0)]===0x0&&this['_scheduleHeartbeat'](),this[_0x249a44(0x2e2)]['add'](_0x3da094),this[_0x249a44(0x27f)]({'type':0x0,'memberID':this[_0x249a44(0x11e)],'unitIDs':[_0x3da094],'isForwarded':!0x1});}[_0x49162d(0x197)](_0x300d48){const _0x54e27c=_0x49162d;this['_selfUnitIDs'][_0x54e27c(0x16c)](_0x300d48),this[_0x54e27c(0x2e2)][_0x54e27c(0x2d0)]===0x0&&this[_0x54e27c(0xd7)]&&window[_0x54e27c(0x185)](this[_0x54e27c(0xd7)]);}['_init'](){const _0x1231a6=_0x49162d;this['disposeWithMe'](a[_0x1231a6(0x182)](d[_0x1231a6(0x243)](window,_0x1231a6(0x1cf))['subscribe'](_0x5f0698=>{const _0x45a043=_0x1231a6;if(_0x5f0698['key']!==Le||!_0x5f0698['newValue'])return;const _0x8f18d=JSON[_0x45a043(0x272)](_0x5f0698['newValue']);this['_handleEvent'](_0x8f18d);}))),window['addEventListener'](_0x1231a6(0x2c6),()=>this['_send']({'type':0x1,'memberID':this[_0x1231a6(0x11e)],'unitIDs':Array[_0x1231a6(0x26d)](this[_0x1231a6(0x2e2)])}));}[_0x49162d(0x2fb)](_0x414521){const _0xe5069a=_0x49162d;switch(_0x414521['type']){case 0x0:this[_0xe5069a(0x240)](_0x414521);break;case 0x1:this['_handleLeaveEvent'](_0x414521);break;case 0x2:this['_handleHeartbeatEvent'](_0x414521);break;}}[_0x49162d(0x240)](_0xcd56f2){const _0x4ba83c=_0x49162d,{unitIDs:_0x1af86c,memberID:_0x39afa1,isForwarded:_0x51ab54}=_0xcd56f2;_0x1af86c['forEach'](_0x5d46c4=>{const _0x116440=_0x1009;if(!_0x51ab54&&this['_unitOnClients'][_0x116440(0x17c)](_0x5d46c4)&&this[_0x116440(0x2d3)](_0x5d46c4)[_0x116440(0x151)](u['UnitStatus'][_0x116440(0x28c)]),!this[_0x116440(0x118)][_0x116440(0x17c)](_0x5d46c4)||!this['_unitOnClients'][_0x116440(0x150)](_0x5d46c4)[_0x116440(0x17c)](_0x39afa1)){const _0x18f7e1=this[_0x116440(0x118)][_0x116440(0x150)](_0x5d46c4)||new Set();_0x18f7e1['add'](_0x39afa1),this[_0x116440(0x118)][_0x116440(0x15a)](_0x5d46c4,_0x18f7e1),this[_0x116440(0x122)](_0x39afa1);}}),_0x51ab54||this[_0x4ba83c(0x27f)]({'type':0x0,'memberID':this[_0x4ba83c(0x11e)],'unitIDs':[...this[_0x4ba83c(0x2e2)]],'isForwarded':!0x0});}[_0x49162d(0x122)](_0xccc234){const _0x272446=_0x49162d;this[_0x272446(0x2b4)](_0xccc234);const _0x2e6210=window[_0x272446(0x103)](()=>{const _0x4e8548=_0x272446;this['_unitOnClients'][_0x4e8548(0x207)](_0x123ec2=>{const _0x3321f9=_0x4e8548;_0x123ec2[_0x3321f9(0x16c)](_0xccc234);});},Me*0x2);this[_0x272446(0x134)][_0x272446(0x15a)](_0xccc234,_0x2e6210);}[_0x49162d(0x2b4)](_0x7b1cf8){const _0x242b80=_0x49162d;if(this['_clearOtherTimers'][_0x242b80(0x17c)](_0x7b1cf8)){const _0x4023f0=this[_0x242b80(0x134)]['get'](_0x7b1cf8);_0x4023f0&&window[_0x242b80(0x2ff)](_0x4023f0),this[_0x242b80(0x134)][_0x242b80(0x15a)](_0x7b1cf8,null);}}[_0x49162d(0x304)](_0x1fd70e){const {memberID:_0x5291d0,unitIDs:_0x12ea71}=_0x1fd70e;_0x12ea71['forEach'](_0x1c3c2d=>{const _0x2e18d2=_0x1009;var _0x571b90;const _0x42666b=this['_unitOnClients'][_0x2e18d2(0x150)](_0x1c3c2d);_0x42666b&&(_0x42666b['delete'](_0x5291d0),(_0x571b90=this['_ensureSubject'](_0x1c3c2d))==null||_0x571b90[_0x2e18d2(0x151)](_0x42666b[_0x2e18d2(0x2d0)]===0x0?u[_0x2e18d2(0x2a5)]['NO_OTHER_CLIENTS_EDITING']:u[_0x2e18d2(0x2a5)][_0x2e18d2(0x28c)]));}),this['_removeClearOtherTimer'](_0x5291d0);}[_0x49162d(0x1a8)](_0x4a1d96){const _0x2becec=_0x49162d;this['_scheduleClearOtherTimer'](_0x4a1d96[_0x2becec(0x20e)]);}[_0x49162d(0x27f)](_0x5260ac){const _0x12ed7f=_0x49162d;localStorage[_0x12ed7f(0x14f)](Le,JSON[_0x12ed7f(0x2ab)](_0x5260ac));}[_0x49162d(0x292)](){const _0x211561=_0x49162d;this[_0x211561(0xd7)]=window[_0x211561(0x2fc)](()=>{const _0x5f1d7d=_0x211561;this[_0x5f1d7d(0x27f)]({'type':0x2,'memberID':this[_0x5f1d7d(0x11e)]});},Me);}[_0x49162d(0x2d3)](_0x163869){const _0x4102d3=_0x49162d;return this[_0x4102d3(0x281)][_0x4102d3(0x17c)](_0x163869)||this[_0x4102d3(0x281)]['set'](_0x163869,new d[(_0x4102d3(0xf7))](u['UnitStatus'][_0x4102d3(0xf2)])),this[_0x4102d3(0x281)][_0x4102d3(0x150)](_0x163869);}}var Be=(_0x477d26=>(_0x477d26[_0x477d26[_0x49162d(0xee)]=0x0]=_0x49162d(0xee),_0x477d26[_0x477d26['OK']=0x1]='OK',_0x477d26[_0x477d26[_0x49162d(0x1e5)]=0x2]=_0x49162d(0x1e5),_0x477d26[_0x477d26[_0x49162d(0x1e6)]=0x3]='PERMISSION_DENIED',_0x477d26[_0x477d26[_0x49162d(0x210)]=0x4]=_0x49162d(0x210),_0x477d26[_0x477d26[_0x49162d(0x262)]=0x5]=_0x49162d(0x262),_0x477d26[_0x477d26[_0x49162d(0x16d)]=0x6]=_0x49162d(0x16d),_0x477d26[_0x477d26['INVALID_ARGUMENT']=0x7]=_0x49162d(0x1ba),_0x477d26[_0x477d26[_0x49162d(0x208)]=0x8]=_0x49162d(0x208),_0x477d26[_0x477d26[_0x49162d(0x2de)]=0x9]=_0x49162d(0x2de),_0x477d26[_0x477d26[_0x49162d(0x191)]=0xa]=_0x49162d(0x191),_0x477d26[_0x477d26[_0x49162d(0x254)]=0x1389]=_0x49162d(0x254),_0x477d26[_0x477d26[_0x49162d(0xcd)]=0x1771]=_0x49162d(0xcd),_0x477d26[_0x477d26[_0x49162d(0x125)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x477d26[_0x477d26[_0x49162d(0x10d)]=0x1773]=_0x49162d(0x10d),_0x477d26[_0x477d26[_0x49162d(0x2dc)]=0x1b59]='APPLY_REJECT',_0x477d26[_0x477d26[_0x49162d(0x187)]=0x1b5a]=_0x49162d(0x187),_0x477d26[_0x477d26['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x477d26[_0x477d26[_0x49162d(0xfe)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x477d26[_0x477d26[_0x49162d(0x234)]=0x1b5d]=_0x49162d(0x234),_0x477d26[_0x477d26[_0x49162d(0x14b)]=0x1f41]=_0x49162d(0x14b),_0x477d26[_0x477d26[_0x49162d(0x200)]=0x2329]=_0x49162d(0x200),_0x477d26[_0x477d26[_0x49162d(0x1dd)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x477d26[_0x477d26[_0x49162d(0x98)]=0x232b]=_0x49162d(0x98),_0x477d26[_0x477d26['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x49162d(0x113),_0x477d26[_0x477d26[_0x49162d(0x1cc)]=0x232d]=_0x49162d(0x1cc),_0x477d26[_0x477d26[_0x49162d(0x126)]=0x2711]=_0x49162d(0x126),_0x477d26[_0x477d26[_0x49162d(0x1e7)]=0x2712]=_0x49162d(0x1e7),_0x477d26[_0x477d26['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x49162d(0x295),_0x477d26[_0x477d26[_0x49162d(0x29f)]=0x2714]=_0x49162d(0x29f),_0x477d26[_0x477d26[_0x49162d(0x279)]=0x271a]=_0x49162d(0x279),_0x477d26[_0x477d26[_0x49162d(0x133)]=0x271b]=_0x49162d(0x133),_0x477d26[_0x477d26[_0x49162d(0x19b)]=0x271c]=_0x49162d(0x19b),_0x477d26[_0x477d26[_0x49162d(0x1df)]=0x271d]='YUUMI_ALL_TABLES_IS_INVALID',_0x477d26[_0x477d26['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x49162d(0xc0),_0x477d26[_0x477d26['YUUMI_AI_RUN_FAILED']=0x271f]=_0x49162d(0x300),_0x477d26[_0x477d26['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]=_0x49162d(0x1ef),_0x477d26[_0x477d26[_0x49162d(0x263)]=0x2ee1]=_0x49162d(0x263),_0x477d26[_0x477d26[_0x49162d(0x1c7)]=0x2ee2]=_0x49162d(0x1c7),_0x477d26[_0x477d26[_0x49162d(0x224)]=0x2ee3]=_0x49162d(0x224),_0x477d26[_0x477d26[_0x49162d(0x27e)]=0x2ee4]=_0x49162d(0x27e),_0x477d26[_0x477d26[_0x49162d(0x121)]=0x2ee5]=_0x49162d(0x121),_0x477d26[_0x477d26['WECHAT_HAS_BEEN_BOUND']=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x477d26[_0x477d26[_0x49162d(0xe2)]=0x32ca]=_0x49162d(0xe2),_0x477d26[_0x477d26[_0x49162d(0xd0)]=0x32cb]=_0x49162d(0xd0),_0x477d26[_0x477d26['UNRECOGNIZED']=-0x1]=_0x49162d(0xf4),_0x477d26))(Be||{}),ns=Object[_0x49162d(0x20a)],rs=(_0x8973a6,_0x4d643f,_0x2d8bcc,_0x483154)=>{for(var _0x77eef4=_0x483154>0x1?void 0x0:_0x483154?ns(_0x4d643f,_0x2d8bcc):_0x4d643f,_0x5dcd2e=_0x8973a6['length']-0x1,_0x15ee78;_0x5dcd2e>=0x0;_0x5dcd2e--)(_0x15ee78=_0x8973a6[_0x5dcd2e])&&(_0x77eef4=_0x15ee78(_0x77eef4)||_0x77eef4);return _0x77eef4;},ue=(_0x3b8166,_0x315e45)=>(_0x572631,_0x865d95)=>_0x315e45(_0x572631,_0x865d95,_0x3b8166);exports[_0x49162d(0xde)]=class extends a['Disposable']{constructor(_0x18e2d8,_0x4f31db,_0x3cf486){const _0x53babf=_0x49162d;super(),this[_0x53babf(0x1fb)]=_0x18e2d8,this[_0x53babf(0x2c5)]=_0x4f31db,this[_0x53babf(0x8a)]=_0x3cf486;}async[_0x49162d(0x18f)](_0x4c6d6c,_0x5c50b5,_0x1b2c6e,..._0x4d6bbf){const _0x5d069a=_0x49162d;var _0x24dc2a,_0x483337,_0x2d00e0,_0x44a3ec;const _0x4ca148=this[_0x5d069a(0x1fb)][_0x5d069a(0x1fc)]();if(!_0x4ca148)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x1fa497=((_0x24dc2a=this[_0x5d069a(0x8a)][_0x5d069a(0x175)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x24dc2a:u[_0x5d069a(0xfa)])+'/'+_0x4c6d6c+'/run/'+_0x5c50b5,_0x276d36=new URL(window[_0x5d069a(0x2ce)][_0x5d069a(0x297)]),_0x397cf9={'scriptId':_0x4c6d6c,'runId':(_0x483337=_0x276d36['searchParams'][_0x5d069a(0x150)](_0x5d069a(0x2cd)))!=null?_0x483337:'','function':_0x5c50b5,'unitId':_0x4ca148['getUnitId'](),'argsOfFunction':JSON['stringify'](_0x4d6bbf),'invokeId':(_0x2d00e0=_0x1b2c6e[_0x5d069a(0x1ee)])!=null?_0x2d00e0:'','executionId':(_0x44a3ec=_0x1b2c6e[_0x5d069a(0x248)])!=null?_0x44a3ec:''};try{const _0x2957ec=await this['_httpService'][_0x5d069a(0x156)](_0x1fa497,{'body':_0x397cf9});return _0x2957ec['body'][_0x5d069a(0x252)]&&_0x2957ec[_0x5d069a(0xc3)][_0x5d069a(0x252)][_0x5d069a(0x25f)]!==Be['OK']?_0x5d069a(0x25d):_0x2957ec[_0x5d069a(0xc3)][_0x5d069a(0x170)];}catch{return'Failed';}}},exports[_0x49162d(0xde)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x49162d(0xad)](G[_0x49162d(0x16b)])),ue(0x2,a[_0x49162d(0x2d2)])],exports[_0x49162d(0xde)]),exports['CollaborationStatusDisplay']=xe,exports[_0x49162d(0x1fa)]=be,exports[_0x49162d(0x249)]=Ae,exports[_0x49162d(0xf5)]=is,exports[_0x49162d(0x11f)]=je;
@@ -1 +1 @@
1
- 'use strict';const _0x412aca=_0x5a3e;(function(_0x3c31ea,_0x349252){const _0x5c3f43=_0x5a3e,_0x491ac8=_0x3c31ea();while(!![]){try{const _0x2b71cf=parseInt(_0x5c3f43(0x12c))/0x1*(-parseInt(_0x5c3f43(0x13c))/0x2)+parseInt(_0x5c3f43(0x138))/0x3*(parseInt(_0x5c3f43(0x128))/0x4)+parseInt(_0x5c3f43(0x133))/0x5+-parseInt(_0x5c3f43(0x13b))/0x6*(-parseInt(_0x5c3f43(0x131))/0x7)+parseInt(_0x5c3f43(0x134))/0x8+parseInt(_0x5c3f43(0x125))/0x9*(-parseInt(_0x5c3f43(0x139))/0xa)+-parseInt(_0x5c3f43(0x12a))/0xb*(parseInt(_0x5c3f43(0x13a))/0xc);if(_0x2b71cf===_0x349252)break;else _0x491ac8['push'](_0x491ac8['shift']());}catch(_0x5e1593){_0x491ac8['push'](_0x491ac8['shift']());}}}(_0x4af8,0x91e34));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x412aca(0x135),'notCollab':_0x412aca(0x126),'synced':_0x412aca(0x12b),'syncing':'Syncing...','offline':_0x412aca(0x137)},'session':{'connection-failed':_0x412aca(0x12f),'will-retry':_0x412aca(0x12e),'room-full':_0x412aca(0x13d),'collaboration-timeout':_0x412aca(0x130)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x412aca(0x127)},'permission':{'title':_0x412aca(0x136),'content':_0x412aca(0x12d)},'collaboration':{'single-unit':{'warning':_0x412aca(0x129)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};function _0x5a3e(_0x5ab224,_0x285f36){const _0x4af8c5=_0x4af8();return _0x5a3e=function(_0x5a3eb4,_0xa3e84a){_0x5a3eb4=_0x5a3eb4-0x125;let _0x965445=_0x4af8c5[_0x5a3eb4];return _0x965445;},_0x5a3e(_0x5ab224,_0x285f36);}function _0x4af8(){const _0x7c3277=['Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Connection\x20failed,\x20please\x20check\x20your\x20network.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','6777883OwsqFr','exports','5001890VWvShc','5757360FqOtqQ','Edit\x20conflicts','Authentication\x20Error','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','15IAMSyA','594040nHILIA','13560oxPezf','6aqldmH','173644uLubUi','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','171TfwTNd','Local\x20file','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','97420ncRLov','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','6325fGJjmu','Synced','5VGRqTk'];_0x4af8=function(){return _0x7c3277;};return _0x4af8();}module[_0x412aca(0x132)]=e;
1
+ 'use strict';const _0x4b33c2=_0x299a;(function(_0x343117,_0x5bb76a){const _0x548d87=_0x299a,_0x2ef18d=_0x343117();while(!![]){try{const _0xde5cff=-parseInt(_0x548d87(0x15a))/0x1*(-parseInt(_0x548d87(0x152))/0x2)+-parseInt(_0x548d87(0x154))/0x3*(parseInt(_0x548d87(0x155))/0x4)+parseInt(_0x548d87(0x15c))/0x5+parseInt(_0x548d87(0x150))/0x6+-parseInt(_0x548d87(0x14f))/0x7+-parseInt(_0x548d87(0x156))/0x8*(-parseInt(_0x548d87(0x14e))/0x9)+-parseInt(_0x548d87(0x14a))/0xa;if(_0xde5cff===_0x5bb76a)break;else _0x2ef18d['push'](_0x2ef18d['shift']());}catch(_0x3ff056){_0x2ef18d['push'](_0x2ef18d['shift']());}}}(_0x3cd5,0xbc294));function _0x299a(_0x138293,_0x58ea26){const _0x3cd5cc=_0x3cd5();return _0x299a=function(_0x299a52,_0xda09fc){_0x299a52=_0x299a52-0x14a;let _0x475a21=_0x3cd5cc[_0x299a52];return _0x475a21;},_0x299a(_0x138293,_0x58ea26);}function _0x3cd5(){const _0x3c38f1=['You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Local\x20file','1ZgLymp','Collaboration\x20Conflict','3544170zUGLnv','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed,\x20please\x20check\x20your\x20network.','exports','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.','7700900SNQBxM','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Edit\x20conflicts','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','18BCdqiX','1569414xUzmzC','8726484KsxRdg','Syncing...','1100498LoHook','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','321nHfnLl','38796qZTScJ','357184UqEtzM','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'];_0x3cd5=function(){return _0x3c38f1;};return _0x3cd5();}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x4b33c2(0x14c),'notCollab':_0x4b33c2(0x159),'synced':'Synced','syncing':_0x4b33c2(0x151),'offline':_0x4b33c2(0x157)},'session':{'connection-failed':_0x4b33c2(0x160),'will-retry':_0x4b33c2(0x15d),'room-full':_0x4b33c2(0x153),'collaboration-timeout':_0x4b33c2(0x15f)},'conflict':{'title':_0x4b33c2(0x15b),'content':_0x4b33c2(0x162)},'permission':{'title':'Authentication\x20Error','content':_0x4b33c2(0x15e)},'collaboration':{'single-unit':{'warning':_0x4b33c2(0x158)},'closeRoom':_0x4b33c2(0x14d)},'auth':{'needGotoLoginAlert':_0x4b33c2(0x14b)}};module[_0x4b33c2(0x161)]=e;