@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202505241606 → 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 _0x3eaa0b=_0x3172;(function(_0x49cc18,_0x541522){const _0x929121=_0x3172,_0x306071=_0x49cc18();while(!![]){try{const _0x2584fd=parseInt(_0x929121(0x7b))/0x1+-parseInt(_0x929121(0x7c))/0x2*(-parseInt(_0x929121(0x6e))/0x3)+parseInt(_0x929121(0x78))/0x4+parseInt(_0x929121(0x79))/0x5+parseInt(_0x929121(0x72))/0x6*(-parseInt(_0x929121(0x73))/0x7)+parseInt(_0x929121(0x7a))/0x8*(parseInt(_0x929121(0x74))/0x9)+parseInt(_0x929121(0x76))/0xa*(-parseInt(_0x929121(0x6f))/0xb);if(_0x2584fd===_0x541522)break;else _0x306071['push'](_0x306071['shift']());}catch(_0x1d3fe6){_0x306071['push'](_0x306071['shift']());}}}(_0x4593,0x2698a));const t=require(_0x3eaa0b(0x75)),e=require(_0x3eaa0b(0x71));function _0x4593(){const _0x56fad8=['229510qKNIKM','FUniver','972480wkzOBF','839460RTqKAi','632ujvpwp','149798VNETEd','4IzdJWg','RemoteUniscriptService','400674nqmrhc','253CVCICz','runOnServer','@univerjs/core/facade','6870ucUOza','1106DrMJxw','4437GiAUOK','@univerjs-pro/collaboration-client-ui'];_0x4593=function(){return _0x56fad8;};return _0x4593();}function _0x3172(_0x578e85,_0x52c840){const _0x45936a=_0x4593();return _0x3172=function(_0x31726c,_0x3091da){_0x31726c=_0x31726c-0x6d;let _0x368175=_0x45936a[_0x31726c];return _0x368175;},_0x3172(_0x578e85,_0x52c840);}class c extends e['FUniver']{[_0x3eaa0b(0x70)](_0x476c2a,_0x84ff68,..._0x1e3759){const _0x4199f1=_0x3eaa0b;return this['_injector']['get'](t[_0x4199f1(0x6d)])[_0x4199f1(0x70)](_0x476c2a,_0x84ff68,{},..._0x1e3759);}}e[_0x3eaa0b(0x77)]['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 _0x6e2c50=_0x8c86;(function(_0x39534d,_0x40cad9){const _0xf55874=_0x8c86,_0x333abf=_0x39534d();while(!![]){try{const _0x4f0d43=-parseInt(_0xf55874(0x178))/0x1*(-parseInt(_0xf55874(0x18c))/0x2)+-parseInt(_0xf55874(0x151))/0x3+parseInt(_0xf55874(0x28d))/0x4+parseInt(_0xf55874(0xd5))/0x5+parseInt(_0xf55874(0x1ea))/0x6+-parseInt(_0xf55874(0x132))/0x7*(-parseInt(_0xf55874(0xf5))/0x8)+-parseInt(_0xf55874(0x2e7))/0x9*(parseInt(_0xf55874(0x1df))/0xa);if(_0x4f0d43===_0x40cad9)break;else _0x333abf['push'](_0x333abf['shift']());}catch(_0x810734){_0x333abf['push'](_0x333abf['shift']());}}}(_0xaf5b,0xebc7d));var Ve=Object['defineProperty'],Xe=(_0x2bb942,_0x4baf06,_0x4bb9d1)=>_0x4baf06 in _0x2bb942?Ve(_0x2bb942,_0x4baf06,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4bb9d1}):_0x2bb942[_0x4baf06]=_0x4bb9d1,h=(_0x8c6cde,_0x355339,_0x5dfa49)=>Xe(_0x8c6cde,typeof _0x355339!=_0x6e2c50(0x149)?_0x355339+'':_0x355339,_0x5dfa49);function _0x8c86(_0x31b1dd,_0x53c0d2){const _0xaf5bcb=_0xaf5b();return _0x8c86=function(_0x8c8615,_0x3f51d1){_0x8c8615=_0x8c8615-0xc4;let _0x30e524=_0xaf5bcb[_0x8c8615];return _0x30e524;},_0x8c86(_0x31b1dd,_0x53c0d2);}Object[_0x6e2c50(0x2d6)](exports,Symbol[_0x6e2c50(0x288)],{'value':'Module'});const u=require(_0x6e2c50(0x319)),a=require(_0x6e2c50(0x1ad)),p=require(_0x6e2c50(0x293)),G=require('@univerjs/network'),b=require(_0x6e2c50(0x302)),Ge=require(_0x6e2c50(0x1bf)),d=require(_0x6e2c50(0x12f)),Y=require(_0x6e2c50(0x30a)),m=require('@univerjs-pro/collaboration'),Ee=require(_0x6e2c50(0x2d3)),g=require(_0x6e2c50(0x22d)),$=require('rxjs/operators'),X=require(_0x6e2c50(0x175)),P=require(_0x6e2c50(0x2d5)),T=require(_0x6e2c50(0x159)),D=require(_0x6e2c50(0x200)),M=require('react'),Ke=require('@univerjs/rpc');var qe=Object[_0x6e2c50(0x160)],ze=(_0x28dc25,_0x1df3cd,_0xe12cef,_0x1d35dc)=>{const _0x16a799=_0x6e2c50;for(var _0x1ddd2f=_0x1d35dc>0x1?void 0x0:_0x1d35dc?qe(_0x1df3cd,_0xe12cef):_0x1df3cd,_0x80bd1a=_0x28dc25[_0x16a799(0x2ba)]-0x1,_0x29f521;_0x80bd1a>=0x0;_0x80bd1a--)(_0x29f521=_0x28dc25[_0x80bd1a])&&(_0x1ddd2f=_0x29f521(_0x1ddd2f)||_0x1ddd2f);return _0x1ddd2f;},Te=(_0x2a455f,_0x4004e2)=>(_0x3d818c,_0x5d05a9)=>_0x4004e2(_0x3d818c,_0x5d05a9,_0x2a455f);let de=class extends a[_0x6e2c50(0x130)]{constructor(_0x34ed83,_0x5b40af){const _0x39b61b=_0x6e2c50;super(),this[_0x39b61b(0x2a0)]=_0x34ed83,this[_0x39b61b(0x269)]=_0x5b40af,this[_0x39b61b(0x2f2)]();}[_0x6e2c50(0x2f2)](){const _0xdb193e=_0x6e2c50,_0x29f15e=this;this[_0xdb193e(0x210)](this[_0xdb193e(0x2a0)][_0xdb193e(0x2ad)]({'onBeforePasteImage':async _0x119289=>{const _0x1ad2cf=_0xdb193e,_0xb8c686=await _0x29f15e[_0x1ad2cf(0x269)][_0x1ad2cf(0x340)](_0x119289);return _0xb8c686?{'source':_0xb8c686['source'],'imageSourceType':_0xb8c686[_0x1ad2cf(0x245)]}:null;}}));}};de=ze([Te(0x0,b['IDocClipboardService']),Te(0x1,Ge[_0x6e2c50(0x184)])],de);const Oe=[_0x6e2c50(0x2b0),_0x6e2c50(0x14b),_0x6e2c50(0x180),'red.300','blue.400','yellow.400'];class me extends a[_0x6e2c50(0x1a1)]{constructor(){const _0x1faf07=_0x6e2c50;super(...arguments),h(this,_0x1faf07(0x2e4),new Map()),h(this,_0x1faf07(0x2fc),0x0);}[_0x6e2c50(0x321)](_0x443c5b){const _0x50961f=_0x6e2c50;if(this[_0x50961f(0x2e4)][_0x50961f(0x1a8)](_0x443c5b))return this[_0x50961f(0x2e4)]['get'](_0x443c5b);const _0x312c50=Oe[this[_0x50961f(0x2fc)]];return this[_0x50961f(0x2fc)]=(this['_colorIndex']+0x1)%Oe['length'],this[_0x50961f(0x2e4)][_0x50961f(0x1cd)](_0x443c5b,_0x312c50),_0x312c50;}}function Pe(_0x5352d2){let _0x465697='';for(const _0x1b2867 of _0x5352d2){const {startOffset:_0x295137,endOffset:_0x19427a,isActive:_0x4127aa,rangeType:_0x2b0bf0,segmentId:_0x8a6d22,segmentPage:_0x36fdca}=_0x1b2867;_0x465697['length']&&(_0x465697+=','),_0x465697+=_0x295137+':'+_0x19427a+':'+(_0x4127aa?'1':'0')+':'+_0x2b0bf0+':'+_0x8a6d22+':'+_0x36fdca;}return _0x465697;}function Je(_0x506d8c){const _0x4ef796=_0x6e2c50,_0x5280e5=_0x506d8c['split'](','),_0x29c456=[];for(const _0x2b57e7 of _0x5280e5){const [_0x5a701f,_0x646fd,_0x166a30,_0x52c62c,_0x56026d,_0x11c19e]=_0x2b57e7['split'](':');_0x29c456['push']({'startOffset':Number(_0x5a701f),'endOffset':Number(_0x646fd),'collapsed':_0x5a701f===_0x646fd,'isActive':_0x166a30==='1','rangeType':_0x52c62c===a[_0x4ef796(0x34a)]['TEXT']?a[_0x4ef796(0x34a)][_0x4ef796(0x14d)]:a['DOC_RANGE_TYPE'][_0x4ef796(0x114)],'segmentId':typeof _0x56026d=='string'?String(_0x56026d):'','segmentPage':Number(_0x11c19e!=null?_0x11c19e:-0x1)});}return _0x29c456['some'](_0x1efeba=>_0x1efeba[_0x4ef796(0x1f7)])||(_0x29c456[0x0]['isActive']=!0x0),_0x29c456;}class Ce extends a[_0x6e2c50(0x130)]{constructor(){const _0x39c448=_0x6e2c50;super(...arguments),h(this,_0x39c448(0x2a4),new d[(_0x39c448(0x104))](null)),h(this,_0x39c448(0x304),this[_0x39c448(0x2a4)][_0x39c448(0x2a8)]());}[_0x6e2c50(0x1ca)](_0x4fd5a4){const _0x14fe98=_0x6e2c50,{unitID:_0x3f42ed,memberID:_0x1b1945,textRanges:_0x11d157}=_0x4fd5a4,_0x49f751=Pe(_0x11d157);if(_0x49f751==='')return;const _0x191475={'unitID':_0x3f42ed,'memberID':_0x1b1945,'selection':_0x49f751};this[_0x14fe98(0x2a4)][_0x14fe98(0xc4)](_0x191475);}}var Ze=Object[_0x6e2c50(0x160)],Qe=(_0x550c03,_0x2d456e,_0x540db8,_0x1baea9)=>{for(var _0x47a509=_0x1baea9>0x1?void 0x0:_0x1baea9?Ze(_0x2d456e,_0x540db8):_0x2d456e,_0x20ee9b=_0x550c03['length']-0x1,_0x4366e5;_0x20ee9b>=0x0;_0x20ee9b--)(_0x4366e5=_0x550c03[_0x20ee9b])&&(_0x47a509=_0x4366e5(_0x47a509)||_0x47a509);return _0x47a509;},L=(_0x1f9c0d,_0x3fe434)=>(_0x195ef8,_0xe287db)=>_0x3fe434(_0x195ef8,_0xe287db,_0x1f9c0d);const et=0x12c,tt=0x64;let fe=class extends a[_0x6e2c50(0x130)]{constructor(_0x59183c,_0x23ab48,_0x1096b6,_0x223626,_0x2e45aa,_0x17aae3,_0x373bcb,_0x3643c8,_0x2b55fd){const _0x519a4c=_0x6e2c50;super(),h(this,_0x519a4c(0x2ab),!0x1),h(this,_0x519a4c(0x2f2),!0x1),h(this,'_cursorInfo$',new d[(_0x519a4c(0x104))](new Map())),h(this,_0x519a4c(0x1ac),this[_0x519a4c(0x30d)][_0x519a4c(0x2a8)]()),h(this,_0x519a4c(0x1e8),new d['BehaviorSubject']([])),h(this,_0x519a4c(0x2bb),this[_0x519a4c(0x1e8)][_0x519a4c(0x1be)](d[_0x519a4c(0x26e)](et))),h(this,'_updateLocalCursor',a[_0x519a4c(0x23b)](_0x3d9805=>{const _0x44f844=_0x519a4c,_0x1f9ad2={'eventID':m[_0x44f844(0x2cb)][_0x44f844(0x287)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x44f844(0x267)](),'selection':Pe(_0x3d9805)}};this['_session'][_0x44f844(0x161)](_0x1f9ad2,this[_0x44f844(0x2e8)]);},tt)),(this[_0x519a4c(0x2e8)]=_0x59183c,this[_0x519a4c(0x230)]=_0x23ab48,this[_0x519a4c(0x307)]=_0x1096b6,this[_0x519a4c(0x16d)]=_0x223626,this[_0x519a4c(0x1dd)]=_0x2e45aa,this[_0x519a4c(0x17c)]=_0x17aae3,this[_0x519a4c(0x335)]=_0x373bcb,this[_0x519a4c(0x1d3)]=_0x3643c8,this[_0x519a4c(0x18f)]=_0x2b55fd);}get[_0x6e2c50(0x29e)](){const _0x3d2e6f=_0x6e2c50;return this[_0x3d2e6f(0x30d)][_0x3d2e6f(0x116)]();}get[_0x6e2c50(0x1ec)](){const _0xb2bba7=_0x6e2c50;return this[_0xb2bba7(0x1e8)][_0xb2bba7(0x116)]();}['dispose'](){const _0x10ca79=_0x6e2c50;super['dispose'](),this[_0x10ca79(0x30d)][_0x10ca79(0xc4)](new Map()),this[_0x10ca79(0x30d)]['complete'](),this[_0x10ca79(0x1e8)][_0x10ca79(0xc4)]([]),this[_0x10ca79(0x1e8)][_0x10ca79(0x32f)]();}['init'](){const _0x449f9e=_0x6e2c50;this['_init']||(this[_0x449f9e(0x2f2)]=!0x0,this[_0x449f9e(0x230)][_0x449f9e(0x165)][_0x449f9e(0x1be)](d[_0x449f9e(0x211)](this[_0x449f9e(0x19a)]))[_0x449f9e(0xd6)](_0x42eb3f=>{const _0x57ecf4=_0x449f9e;_0x42eb3f===u[_0x57ecf4(0x16f)][_0x57ecf4(0x20a)]?this[_0x57ecf4(0x305)]():this[_0x57ecf4(0x273)]();}),this['_session']['event$']['pipe'](d[_0x449f9e(0x211)](this[_0x449f9e(0x19a)]))[_0x449f9e(0xd6)](_0x5539df=>{const _0x387ccc=_0x449f9e,_0x558384=_0x5539df[_0x387ccc(0x21c)];_0x558384===m[_0x387ccc(0x2cb)][_0x387ccc(0x287)]&&this[_0x387ccc(0x1b6)](_0x5539df),_0x558384===m['CollaborationEvent'][_0x387ccc(0x295)]&&this[_0x387ccc(0x1bc)](_0x5539df);}),this[_0x449f9e(0x210)](this[_0x449f9e(0x18f)][_0x449f9e(0x2a3)](_0x2a7f6c=>{const _0x212be3=_0x449f9e,_0x590ada=_0x2a7f6c[_0x212be3(0x326)];_0x590ada!=null&&this['_online']&&_0x2a7f6c['id']===Y[_0x212be3(0x134)]['id']&&_0x590ada[_0x212be3(0xd2)]===this['unitID']&&_0x590ada[_0x212be3(0xec)]===!0x1&&_0x590ada[_0x212be3(0x27f)][_0x212be3(0x2ba)]>0x0&&this['_updateLocalCursor'](_0x590ada[_0x212be3(0x27f)]);})),this[_0x449f9e(0x17c)]['collabCursorState$'][_0x449f9e(0x1be)](d[_0x449f9e(0x211)](this[_0x449f9e(0x19a)]))[_0x449f9e(0xd6)](_0x385c01=>{const _0x27b496=_0x449f9e;if((_0x385c01==null?void 0x0:_0x385c01[_0x27b496(0x2e8)])!==this[_0x27b496(0x2e8)])return;const _0x666a7c={'eventID':m[_0x27b496(0x2cb)]['UPDATE_CURSOR'],'data':_0x385c01};this['_onCursorUpdate'](_0x666a7c);}),this['disposeWithMe'](this['_commandService'][_0x449f9e(0x2a3)](_0x17034b=>{const _0x1d686f=_0x449f9e;if(_0x17034b[_0x1d686f(0x326)]==null)return;const _0x5a8d55=_0x17034b[_0x1d686f(0x326)];if(_0x17034b['id']!==Y[_0x1d686f(0xd3)]['id']||_0x5a8d55[_0x1d686f(0xd2)]!==this[_0x1d686f(0x2e8)])return;const _0x556042={'id':'doc.mutation.rich-text-editing','params':_0x5a8d55},_0x5c7639=this[_0x1d686f(0x29e)];for(const [_0x2a6a15,_0x1d2b07]of _0x5c7639){const _0x24adcd={'id':_0x1d686f(0x208),'params':{'unitId':this[_0x1d686f(0x2e8)],'actions':null,'textRanges':_0x1d2b07[_0x1d686f(0x27f)]}},_0x49788c=this['_transformService'][_0x1d686f(0x21e)](_0x556042,_0x24adcd,!0x1);if(m[_0x1d686f(0x24a)](_0x49788c))throw _0x49788c[_0x1d686f(0x279)];_0x5c7639[_0x1d686f(0x1cd)](_0x2a6a15,{..._0x1d2b07,'ranges':_0x49788c[_0x1d686f(0x2a2)][_0x1d686f(0x326)]['textRanges']});}queueMicrotask(()=>{const _0x226460=_0x1d686f;this[_0x226460(0x30d)][_0x226460(0xc4)](_0x5c7639);});})));}[_0x6e2c50(0x1b6)](_0x366947){const _0x5867fe=_0x6e2c50;var _0x3b244d,_0x49cfc1;const {memberID:_0x641afd,selection:_0x3ce9db}=_0x366947[_0x5867fe(0x105)],_0x5e71df=Je(_0x3ce9db),_0x479564=(_0x49cfc1=(_0x3b244d=this['_memberService'][_0x5867fe(0x212)](this[_0x5867fe(0x2e8)],_0x641afd))==null?void 0x0:_0x3b244d[_0x5867fe(0x317)])!=null?_0x49cfc1:_0x5867fe(0x2cd),_0x279600={'color':this[_0x5867fe(0x16d)][_0x5867fe(0x321)](_0x641afd),'name':_0x479564,'ranges':_0x5e71df},_0x52bc96=this[_0x5867fe(0x29e)];_0x52bc96['set'](_0x641afd,_0x279600),this[_0x5867fe(0x30d)][_0x5867fe(0xc4)](_0x52bc96);}[_0x6e2c50(0x1bc)](_0x4bf30e){const _0x3211a8=_0x6e2c50,{memberID:_0x5c9c03}=_0x4bf30e[_0x3211a8(0x105)],_0x335148=this[_0x3211a8(0x29e)];_0x335148[_0x3211a8(0x1cf)](_0x5c9c03),this[_0x3211a8(0x30d)][_0x3211a8(0xc4)](_0x335148);}['_toggleOnline'](){const _0x1f5138=_0x6e2c50;var _0x3dcd75;if(this['_online']=!0x0,((_0x3dcd75=this[_0x1f5138(0x1d3)][_0x1f5138(0x1fe)]())==null?void 0x0:_0x3dcd75[_0x1f5138(0x2e0)]())!==this['unitID'])return;const _0x98568d=this[_0x1f5138(0x307)][_0x1f5138(0x226)](Y[_0x1f5138(0x2b4)])[_0x1f5138(0x256)]();Array['isArray'](_0x98568d)&&_0x98568d[_0x1f5138(0x2ba)]>0x0&&this['_updateLocalCursor'](_0x98568d);}[_0x6e2c50(0x273)](){const _0x34a9e1=_0x6e2c50;this[_0x34a9e1(0x2ab)]=!0x1;}};fe=Qe([L(0x2,a['Inject'](a[_0x6e2c50(0x2fe)])),L(0x3,a[_0x6e2c50(0x25a)](me)),L(0x4,a[_0x6e2c50(0x25a)](u['MemberService'])),L(0x5,a[_0x6e2c50(0x25a)](Ce)),L(0x6,m['ITransformService']),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x6e2c50(0x150)])],fe);var st=Object[_0x6e2c50(0x160)],it=(_0x589eb1,_0x30149f,_0x287233,_0xd97e8f)=>{for(var _0x16e043=_0xd97e8f>0x1?void 0x0:_0xd97e8f?st(_0x30149f,_0x287233):_0x30149f,_0x379086=_0x589eb1['length']-0x1,_0x40fd12;_0x379086>=0x0;_0x379086--)(_0x40fd12=_0x589eb1[_0x379086])&&(_0x16e043=_0x40fd12(_0x16e043)||_0x16e043);return _0x16e043;},w=(_0x30ac40,_0x52ca19)=>(_0x36353c,_0x471042)=>_0x52ca19(_0x36353c,_0x471042,_0x30ac40);const nt=0x12c,rt=0x64,ot=()=>{let _0x4262e5=[],_0x53891a=!0x1;return _0x32830a=>{const _0xef7637=_0x8c86;_0x4262e5[_0xef7637(0x1a3)](_0x32830a),_0x53891a||(_0x53891a=!0x0,setTimeout(()=>{_0x4262e5['forEach'](_0x397c4a=>_0x397c4a()),_0x4262e5=[],_0x53891a=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x58fdb2,_0x373a53,_0x1d93a1,_0x58dc36,_0x3b5b25,_0x46599a,_0x5978ce,_0x6351aa){const _0x2ce337=_0x6e2c50;super(),h(this,_0x2ce337(0x2ab),!0x1),h(this,_0x2ce337(0x2f2),!0x1),h(this,_0x2ce337(0x30d),new d[(_0x2ce337(0x104))](new Map())),h(this,_0x2ce337(0x1ac),this[_0x2ce337(0x30d)]['asObservable']()),h(this,_0x2ce337(0x1e8),new d['BehaviorSubject']([])),h(this,_0x2ce337(0x2bb),this['_roomMembers$']['pipe'](d[_0x2ce337(0x26e)](nt))),h(this,'_updateLocalCursor',a[_0x2ce337(0x23b)]((_0x2c13a2,_0x3fa445)=>{const _0x3364f6=_0x2ce337,_0x15818d={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x3364f6(0x2e8)],'memberID':this['_session']['getMemberID'](),'selection':Ee[_0x3364f6(0x310)](_0x2c13a2,_0x3fa445[_0x3364f6(0xca)])}};this[_0x3364f6(0x230)][_0x3364f6(0x161)](_0x15818d,this[_0x3364f6(0x2e8)]);},rt)),(this['unitID']=_0x58fdb2,this[_0x2ce337(0x230)]=_0x373a53,this[_0x2ce337(0x307)]=_0x1d93a1,this[_0x2ce337(0x16d)]=_0x58dc36,this[_0x2ce337(0x1dd)]=_0x3b5b25,this['_univerInstanceService']=_0x46599a,this[_0x2ce337(0x18f)]=_0x5978ce,this['_refRangeService']=_0x6351aa);}get[_0x6e2c50(0x29e)](){const _0x4d3117=_0x6e2c50;return this[_0x4d3117(0x30d)]['getValue']();}get[_0x6e2c50(0x1ec)](){const _0x4d80d9=_0x6e2c50;return this[_0x4d80d9(0x1e8)]['getValue']();}['dispose'](){const _0x5212f9=_0x6e2c50;super[_0x5212f9(0x27b)](),this['_cursorInfo$'][_0x5212f9(0xc4)](new Map()),this[_0x5212f9(0x30d)][_0x5212f9(0x32f)](),this[_0x5212f9(0x1e8)][_0x5212f9(0xc4)]([]),this['_roomMembers$'][_0x5212f9(0x32f)]();}[_0x6e2c50(0x18e)](){const _0x356513=_0x6e2c50;this[_0x356513(0x2f2)]||(this['_init']=!0x0,this[_0x356513(0x230)]['sessionStatus$']['pipe'](d[_0x356513(0x211)](this[_0x356513(0x19a)]))[_0x356513(0xd6)](_0x52be96=>{const _0x35e774=_0x356513;_0x52be96===u[_0x35e774(0x16f)][_0x35e774(0x20a)]?this[_0x35e774(0x305)]():this[_0x35e774(0x273)]();}),this['_session']['event$']['pipe'](d[_0x356513(0x211)](this['dispose$']))[_0x356513(0xd6)](_0x511df5=>{const _0x948575=_0x356513,_0x107737=_0x511df5[_0x948575(0x21c)];_0x107737===m[_0x948575(0x2cb)]['UPDATE_CURSOR']&&this[_0x948575(0x1b6)](_0x511df5),_0x107737===m['CollaborationEvent'][_0x948575(0x295)]&&this[_0x948575(0x1bc)](_0x511df5);}),this['_onRefRangeChange'](),this[_0x356513(0x210)](this[_0x356513(0x18f)][_0x356513(0x2a3)](_0x2290f1=>{const _0x1f478d=_0x356513;if(this[_0x1f478d(0x2ab)]&&_0x2290f1['id']===g[_0x1f478d(0x2c1)]['id']&&_0x2290f1[_0x1f478d(0x326)][_0x1f478d(0xd2)]===this[_0x1f478d(0x2e8)]){const _0x5589d5=_0x2290f1[_0x1f478d(0x326)];this[_0x1f478d(0x16a)](_0x5589d5[_0x1f478d(0xe7)],_0x5589d5[_0x1f478d(0x13e)][0x0]);}})));}[_0x6e2c50(0x1b6)](_0x12f5db){const _0x400cb5=_0x6e2c50;var _0x2415d6,_0x2d7109;const {memberID:_0x416251,selection:_0x1d42bc}=_0x12f5db[_0x400cb5(0x105)],{sheetName:_0x4a92f4,range:_0x689de}=Ee[_0x400cb5(0x1bd)](_0x1d42bc),_0x1058ac={'name':(_0x2d7109=(_0x2415d6=this[_0x400cb5(0x1dd)][_0x400cb5(0x212)](this['unitID'],_0x416251))==null?void 0x0:_0x2415d6['name'])!=null?_0x2d7109:'Unknown\x20user','range':this[_0x400cb5(0x183)](_0x4a92f4,_0x689de),'sheetID':_0x4a92f4,'color':this[_0x400cb5(0x16d)]['assignAColorForMemberID'](_0x416251),'selection':_0x1d42bc},_0x1ffd41=this['cursorInfo'];_0x1ffd41[_0x400cb5(0x1cd)](_0x416251,_0x1058ac),this['_cursorInfo$']['next'](_0x1ffd41);}[_0x6e2c50(0x1bc)](_0x1bbb96){const _0x5546da=_0x6e2c50,{memberID:_0x371243}=_0x1bbb96['data'],_0x408691=this[_0x5546da(0x29e)];_0x408691['delete'](_0x371243),this[_0x5546da(0x30d)]['next'](_0x408691);}[_0x6e2c50(0x183)](_0xe538df,_0x2181eb){const _0x5f389b=_0x6e2c50;var _0x3f84ee,_0xf77056;const _0x499554=(_0xf77056=(_0x3f84ee=this['_univerInstanceService'][_0x5f389b(0x332)](this[_0x5f389b(0x2e8)]))==null?void 0x0:_0x3f84ee[_0x5f389b(0x2de)](_0xe538df))==null?void 0x0:_0xf77056['getMergeData']();return(_0x499554==null?void 0x0:_0x499554[_0x5f389b(0x15a)](_0x259aab=>a[_0x5f389b(0x281)]['contains'](_0x259aab,_0x2181eb)))||_0x2181eb;}[_0x6e2c50(0xfe)](){const _0x3cc559=_0x6e2c50,_0x5bd405=new a[(_0x3cc559(0x345))](),_0x5b064a=ot(),_0x3a8a0b=()=>{const _0x289131=_0x3cc559;_0x5bd405['dispose']();const _0x4e942b=(_0x4fd019,_0x5a9c7c,_0x2d4fd3,_0x20629c)=>{const _0x5bb74b=_0x8c86;let _0x2769ce=[];switch(_0x4fd019['id']){case g[_0x5bb74b(0x1c1)]['DeleteRangeMoveLeftCommandId']:{_0x2769ce=g[_0x5bb74b(0x1a6)](_0x4fd019,_0x20629c);break;}case g[_0x5bb74b(0x1c1)][_0x5bb74b(0x1b4)]:{_0x2769ce=g['handleDeleteRangeMoveUp'](_0x4fd019,_0x20629c);break;}case g[_0x5bb74b(0x1c1)][_0x5bb74b(0x14f)]:{_0x2769ce=g['handleInsertCol'](_0x4fd019,_0x20629c);break;}case g[_0x5bb74b(0x1c1)][_0x5bb74b(0x1d7)]:{_0x2769ce=g['handleInsertRangeMoveDown'](_0x4fd019,_0x20629c);break;}case g[_0x5bb74b(0x1c1)][_0x5bb74b(0x29d)]:{_0x2769ce=g[_0x5bb74b(0xef)](_0x4fd019,_0x20629c);break;}case g[_0x5bb74b(0x1c1)][_0x5bb74b(0x18d)]:{_0x2769ce=g['handleInsertRow'](_0x4fd019,_0x20629c);break;}case g[_0x5bb74b(0x1c1)][_0x5bb74b(0x249)]:{_0x2769ce=g[_0x5bb74b(0x14e)](_0x4fd019,_0x20629c);break;}case g[_0x5bb74b(0x1c1)][_0x5bb74b(0x1f4)]:{_0x2769ce=g[_0x5bb74b(0x25b)](_0x4fd019,_0x20629c);break;}case g['EffectRefRangId'][_0x5bb74b(0x2a7)]:{_0x2769ce=g[_0x5bb74b(0xe0)](_0x4fd019,_0x20629c);break;}}const _0x4bebf8=g['runRefRangeMutations'](_0x2769ce,_0x20629c),_0x484827=this[_0x5bb74b(0x29e)]['get'](_0x5a9c7c);if(_0x484827&&_0x4bebf8){const _0x95fb0f={..._0x484827,'range':_0x4bebf8};this['cursorInfo']['set'](_0x5a9c7c,_0x95fb0f),_0x5b064a(()=>{const _0xdfdb33=_0x5bb74b,_0x311430=this[_0xdfdb33(0x328)]['registerRefRange'](_0x4bebf8,_0x225b6b=>(_0x311430[_0xdfdb33(0x27b)](),_0x4e942b(_0x225b6b,_0x5a9c7c,_0x2d4fd3,_0x4bebf8)));_0x5bd405['add'](_0x311430);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x289131(0x158)]((_0x545f,_0x16bf7e)=>{const _0x2cb96f=_0x289131,{range:_0x46accd,sheetID:_0x32f454}=_0x545f,_0x5ddfa8=this[_0x2cb96f(0x328)][_0x2cb96f(0xf1)](_0x46accd,_0x165ab9=>(_0x5ddfa8[_0x2cb96f(0x27b)](),_0x4e942b(_0x165ab9,_0x16bf7e,_0x32f454,_0x46accd)));_0x5bd405['add'](_0x5ddfa8);});};this['disposeWithMe'](a[_0x3cc559(0x157)](this[_0x3cc559(0x30d)][_0x3cc559(0xd6)](()=>{_0x3a8a0b();})));}[_0x6e2c50(0x305)](){const _0x5d04d8=_0x6e2c50;var _0x4114f6,_0x8b23c9;if(this[_0x5d04d8(0x2ab)]=!0x0,((_0x4114f6=this[_0x5d04d8(0x1d3)][_0x5d04d8(0x1fe)]())==null?void 0x0:_0x4114f6[_0x5d04d8(0x2e0)]())!==this[_0x5d04d8(0x2e8)])return;const _0x59d91d=(_0x8b23c9=this[_0x5d04d8(0x307)][_0x5d04d8(0x226)](g[_0x5d04d8(0x324)])[_0x5d04d8(0x2e9)]())==null?void 0x0:_0x8b23c9[0x0],_0x572551=this[_0x5d04d8(0x1d3)][_0x5d04d8(0x15f)](a[_0x5d04d8(0x1bb)][_0x5d04d8(0xe6)])[_0x5d04d8(0x268)]();_0x59d91d&&_0x572551&&this[_0x5d04d8(0x16a)](_0x572551[_0x5d04d8(0xf7)](),_0x59d91d);}[_0x6e2c50(0x273)](){const _0x33da7d=_0x6e2c50;this[_0x33da7d(0x2ab)]=!0x1;}};Se=it([w(0x2,a[_0x6e2c50(0x25a)](a[_0x6e2c50(0x2fe)])),w(0x3,a['Inject'](me)),w(0x4,a[_0x6e2c50(0x25a)](u[_0x6e2c50(0x118)])),w(0x5,a[_0x6e2c50(0x21b)]),w(0x6,a[_0x6e2c50(0x150)]),w(0x7,a[_0x6e2c50(0x25a)](g[_0x6e2c50(0x334)]))],Se);var at=Object[_0x6e2c50(0x160)],ct=(_0x108335,_0x1c7d9e,_0x5f2a4c,_0x2fb6a8)=>{const _0x347004=_0x6e2c50;for(var _0x1c4c91=_0x2fb6a8>0x1?void 0x0:_0x2fb6a8?at(_0x1c7d9e,_0x5f2a4c):_0x1c7d9e,_0x433663=_0x108335[_0x347004(0x2ba)]-0x1,_0x3a4226;_0x433663>=0x0;_0x433663--)(_0x3a4226=_0x108335[_0x433663])&&(_0x1c4c91=_0x3a4226(_0x1c4c91)||_0x1c4c91);return _0x1c4c91;},ie=(_0x43d64c,_0x230583)=>(_0x11d439,_0x4ebc00)=>_0x230583(_0x11d439,_0x4ebc00,_0x43d64c);let x=class extends a['RxDisposable']{constructor(_0x595016,_0x33dfa3,_0x64842e){const _0x275bd3=_0x6e2c50;super(),h(this,_0x275bd3(0x12b),new Map()),h(this,_0x275bd3(0x1d4),new d[(_0x275bd3(0x233))]()),(this[_0x275bd3(0x1d3)]=_0x595016,this[_0x275bd3(0x307)]=_0x33dfa3,this['_collabSessionService']=_0x64842e,this['_init']());}[_0x6e2c50(0x27b)](){const _0x11e6e9=_0x6e2c50;super[_0x11e6e9(0x27b)](),this[_0x11e6e9(0x1d4)][_0x11e6e9(0x32f)](),this[_0x11e6e9(0x12b)][_0x11e6e9(0x158)](_0x3bcf2d=>_0x3bcf2d[_0x11e6e9(0x27b)]());}['getCollabCursors$'](_0x45c782){const _0x29a4b3=_0x6e2c50;return this['_entities'][_0x29a4b3(0x1a8)](_0x45c782)?this[_0x29a4b3(0x12b)][_0x29a4b3(0x226)](_0x45c782)[_0x29a4b3(0x1ac)]:this[_0x29a4b3(0x1d4)][_0x29a4b3(0x1be)](d[_0x29a4b3(0x2f8)](_0x58c6da=>_0x58c6da['unitID']===_0x45c782),d[_0x29a4b3(0x143)](_0xafaa2a=>_0xafaa2a[_0x29a4b3(0x1ac)]));}['_init'](){const _0x221e38=_0x6e2c50;this[_0x221e38(0x1d3)]['getTypeOfUnitAdded$'](a[_0x221e38(0x1bb)][_0x221e38(0xe6)])[_0x221e38(0x1be)](d[_0x221e38(0x211)](this[_0x221e38(0x19a)]))[_0x221e38(0xd6)](async _0x373227=>{const _0x92cab7=_0x221e38,_0x590230=_0x373227[_0x92cab7(0x2e0)](),_0x259116=await this[_0x92cab7(0x275)](_0x590230);this[_0x92cab7(0x1d4)][_0x92cab7(0xc4)](_0x259116),this[_0x92cab7(0x12b)][_0x92cab7(0x1cd)](_0x590230,_0x259116);}),this['_univerInstanceService'][_0x221e38(0x1da)](a[_0x221e38(0x1bb)][_0x221e38(0x1ed)])[_0x221e38(0x1be)](d[_0x221e38(0x211)](this[_0x221e38(0x19a)]))[_0x221e38(0x1be)](d[_0x221e38(0x2f8)](_0x10bfe2=>!_0x10bfe2[_0x221e38(0x2e0)]()[_0x221e38(0x2ec)]('__')))[_0x221e38(0xd6)](async _0x148199=>{const _0x193a2b=_0x221e38,_0x4eea46=_0x148199[_0x193a2b(0x2e0)](),_0x32e8c0=await this['_startDocCollabCursor'](_0x4eea46);this[_0x193a2b(0x1d4)]['next'](_0x32e8c0),this[_0x193a2b(0x12b)][_0x193a2b(0x1cd)](_0x4eea46,_0x32e8c0);}),d[_0x221e38(0x263)](this[_0x221e38(0x1d3)][_0x221e38(0x122)](a[_0x221e38(0x1bb)][_0x221e38(0x1ed)]),this[_0x221e38(0x1d3)]['getTypeOfUnitDisposed$'](a[_0x221e38(0x1bb)][_0x221e38(0xe6)]))[_0x221e38(0x1be)](d[_0x221e38(0x211)](this['dispose$']))[_0x221e38(0xd6)](_0x38b869=>{const _0x17bb63=_0x221e38,_0xbef3e2=_0x38b869[_0x17bb63(0x2e0)](),_0x2442d1=this[_0x17bb63(0x12b)][_0x17bb63(0x226)](_0xbef3e2);_0x2442d1&&(_0x2442d1[_0x17bb63(0x27b)](),this[_0x17bb63(0x12b)][_0x17bb63(0x1cf)](_0xbef3e2));});}async[_0x6e2c50(0x275)](_0x36ea44){const _0x18eae2=_0x6e2c50,_0x5ed459=await this['_collabSessionService'][_0x18eae2(0x31e)](_0x36ea44),_0x2acee4=this['_injector'][_0x18eae2(0x247)](Se,_0x36ea44,_0x5ed459);return _0x2acee4[_0x18eae2(0x18e)](),_0x2acee4;}async['_startDocCollabCursor'](_0x111a39){const _0x460853=_0x6e2c50,_0x3823b4=await this[_0x460853(0x162)][_0x460853(0x31e)](_0x111a39),_0x1eff32=this['_injector'][_0x460853(0x247)](fe,_0x111a39,_0x3823b4);return _0x1eff32['init'](),_0x1eff32;}};function _0xaf5b(){const _0x3c2e06=['_session','IMessageService','from','Subject','editingUnit','_anchor','RemoteUniscriptService','arc','BuiltInUIPart','ThemeService','clearTimeout','debounce','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','1em','beginPath','unsubscribe','_transformHistoryAndStateStack','all','_status$','forwardRef','getColor','imageSourceType','hasOwnProperty','createInstance','_createSocketURL','MoveRangeCommandId','isTransformMutationFailure','Error','permission.title','ticket','currentColor','with','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','getLocalCacheKey','SUBMIT_CHANGESET_TIMEOUT','_setupSubUnitSync','setTimeout','save','getDocRanges','entityInit$','YUUMI_UNABLE_LOAD_URL','transformSelections','Inject','handleIRemoveCol','getOwnPropertySymbols','_uiPartsService','getUnitStatus$','_cursorShapes','_initEvent','hovered','fromEvent','merge','collab-text-anchor-','column','_notificationService','getMemberID','getActiveSheet','_imageIoService','collabStatus.synced','jsx','textRanges','collaboration.closeRoom','debounceTime','fromEventSubject','redoState','AWAITING_WITH_PENDING','_docSkeleton','_toggleOffline','origin','_startSheetCollabCursor','transformIMECache','history','transformByState','error','setActiveRange','dispose','Optional','Workbook','CollaborationDataLoaderController','ranges','invokeId','Rectangle','backgroundColor','min','_draw','getColorFromTheme','ITransformService','UPDATE_CURSOR','toStringTag','_refreshCollabCursors','APPLY_NON_SEQUENTIAL_REVISION','TEXT_RANGE_LAYER_INDEX','pushState','5613028WVHeHY','_docTransformStateCacheService','className','apply','BrowserCollaborationSocketService','function','@univerjs/engine-render','defIds','USERS_LEAVE','_registerRenderDependencies','on-line-single','_hideTimer','use','whenReady','setConfig','CHANGESET_REVISION_CONFILICT','InsertRangeMoveRightCommandId','cursorInfo','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_docClipboardService','Shape','m2Prime','onCommandExecuted','_collabCursorState$','INTERNAL_ERROR','call','RemoveRowCommandId','asObservable','CONFLICT','_updateCollabCursors','_online','useRef','addClipboardHook','stringify','APPLY_REJECT','purple.300','uni.network.url-service','ILogService','ACTIVE_UNIT_EVENT_CHANNEL','DocSelectionManagerService','INVALID_ARGUMENT','setItem','_renderManagerService','_range','replace','length','roomMembers$','currentSkeleton$','isTransformMutationsWithChangesetSuccess','getSkeleton','_unitOnClients','CollaborationStatus','SetSelectionsOperation','_setupBeforeClosingHandler','docStateChange$','post','Tools','_drawTextRange','INVITE_CODE_HAS_BEEN_UES','_cursor','LICENSE_MAX_UNITS_EXCEEDED','path','CollaborationEvent','substring','Unknown\x20user','_transformPreviousActiveRange','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_unitStatus','LICENSE_IMPORT_SIZE_EXCEEDED','off-line-single','@univerjs/engine-formula','TOO_MANY_REQUESTS','react/jsx-runtime','defineProperty','_hover','replaceState','_heartbeatTimer','_selfUnitIDs','getRelativeToViewportCoord','_messageService','random','getSheetBySheetId','0\x200\x2016\x2016','getUnitId','_backgroundColor','unshift','map','_assignedColors','collabStatus.conflict','UniverCollaborationClientUIPlugin','9APGacF','unitID','getCurrentSelections','bottom','getUndoRedoMutationParamsCache','startsWith','_updateURLWithCurrentState','exhaustSavingTask','evenodd','undoState','#FFF','_init','_handleLeaveEvent','transformMutationsWithChangeset','labelPosition','getVpScrollXYInfoByPosToVp','debug','filter','_cachedData','OTHER_CLIENTS_EDITING','_config','_colorIndex','concat','Injector','none','entries','search','@univerjs/docs-ui','TRANSFORM_CHANGE_OBSERVABLE_TYPE','collabCursorState$','_toggleOnline','_httpService','_injector','resize','skeleton','@univerjs/docs','SHEET_VIEWPORT_KEY','off-line-single_clip0_910_343','_cursorInfo$','Warning','session.will-retry','serializeRangeWithSheet','SetWorksheetActivateCommand','_handleJoinEvent','colorChannel1','Tooltip','location','combineLatest','name','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','@univerjs-pro/collaboration-client','UnitStatus','INVITE_CODE_REQUIRED','_collaborationController','sheetID','requireSession','reconnect','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','assignAColorForMemberID','YUUMI_AI_RUN_FAILED','idSuffix','SheetsSelectionsService','size','params','IRenderManagerService','_refRangeService','assign','UNDEFINED','drawWith','_beforeCloseService','createSocket','_docTransformIMECacheService','complete','YUUMI_RATE_OVER_LIMIT','IConfigService','getUniverSheetInstance','useObservable','RefRangeService','_transformService','MessageType','_docStateChangeManagerService','executionId','ENSURE_SNAPSHOT_EXECUTION','executeCommand','collaboration.single-unit.warning','ALREADY_EXISTS','UNRECOGNIZED','getParam','INotificationService','saveImage','_saveTaskMap','ISnapshotServerService','WebBrowserSingleActiveUnitService','_handleEvent','DisposableCollection','_localStorageService','_color','subscribeEvent','onMouseMove','DOC_RANGE_TYPE','saveOfflineData','onPointerEnter$','Plugin','_doCreateSocket','_drawAnchor','next','LocaleService','CommandType','_hovered','_saveCache','text','range','application/json','prototype','_getSaveTimeout','setInterval','selection','_eventUnsubscribe','closePath','unitId','RichTextEditingMutation','width','2673605ANGSrl','subscribe','svg','[RemoteUniscriptService]:\x20no\x20focused\x20unit','EMAIL_HAS_BEEN_BOUND','startColumn','code','runId','collabStatus.fetchMiss','_themeService','ISocketService','handleIRemoveRow','getCollabCursors$','SheetCollabCursorShape','COMPLETION_FINISHED','saveTaskMap','runOnServer','UNIVER_SHEET','subUnitId','_urlService','endRow','_sheetSkeletonManagerService','body','isEditing','_drawRectRange','m1Prime','handleInsertRangeMoveRight','getCurrent','registerRefRange','getRangePointData','CollaborationStatusDisplay','#fff','147352LuyPrg','ILocalCacheService','getSheetId','registerComponent','WECHAT_HAS_BEEN_BOUND','_ensureSubject','_handleHover','LICENSE_DISTRO_REJECTED','collab-client.tooltip.reconnect','_onRefRangeChange','SYNCED','makeDirty','useDependency','override','children','BehaviorSubject','data','jsxs','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','YUUMI_TABLE_NOT_FOUND_IN_UNIT','FromArray','color','DesktopCollaborationStatusDisplayController','CONNECTOR_DATA_TOO_LARGE','findNodePositionByCharIndex','values','_scene','xlink:href','sessionTicket','_scheduleHeartbeat','LOCAL_CACHE_INTERVAL_KEY','RECT','searchParams','getValue','...','MemberService','height','getAncestorScale','mask','onRendered','_initDependencies','_initCommandExecutedListener','_scheduleSaving','deepClone','_docSkeletonManagerService','getTypeOfUnitDisposed$','hide','registerRenderModule','_configService','_initStatusComponent','tag','getOffsetConfig','Rect','SetDocZoomRatioOperation','_entities','YUUMI_SUBSCRIPTION_NOT_FOUND','_disabled','getCollabEntity$','rxjs','RxDisposable','setShapeProps','217uxCLMZ','HEADER_MENU','SetTextSelectionsOperation','onPointerLeave$','Vector2','attrs','UniverCollaborationClientPlugin','transform','OTHER_CLIENT_EDITING','endColumn','clsx','url(#$1','selections','indexOf','setUndoRedoMutationParamsCache','disposeUnit','status$','switchMap','OffLineSingle','MOBILE_HAS_BEEN_BOUND','add','key','NO_OTHER_CLIENTS_EDITING','symbol','fill','jiqing.500','DocStateChangeManagerService','TEXT','handleMoveRange','InsertColCommandId','ICommandService','991764PPhFLu','current','useCallback','_getSessionTicket','getViewport','IBeforeCloseService','toDisposable','forEach','@univerjs/ui','find','trim','_updateSubUnitFromURLParams','extend','WebURLService','getCurrentUnitForType','getOwnPropertyDescriptor','send','_collabSessionService','currentTheme$','OnLineSingle','sessionStatus$','collaboration-client.offline-data-not-saved','_transformUndoRedoStack','CollaborationUIEventId','APPLY_REVISION_CONFILICT','_updateLocalCursor','/run/','toRgbString','_colorAssignService','NodePositionConvertToRectRange','SessionStatus','urlChange$','DataLoaderService','RegularPolygon','IRemoteInstanceService','NodePositionConvertToCursor','@univerjs/sheets-ui','HTTPService','APPLY_DUPLICATED','49VCLFAH','_logService','unload','COLORS','_syncEditingCollabCursorService','IURLService','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','mergeOverrideWithDependencies','green.600','_scheduleClearOtherTimer','DocIMEInputManagerService','_getMergeRange','IImageIoService','distinctUntilChanged','OFFLINE','addObject','getStateCache','_lastPointer','_getScale','PENDING','43116DigpZy','InsertRowCommandId','init','_commandService','registerDependencies','PY_RUNTIME_SCRIPT_ERROR','_getSheetObject','_id','collabStatus.syncing','actions','collabStatus.offline','moveTo','type','mapTo','dispose$','FETCH_MISS','getCellPositionByOffset','session.collaboration-timeout','INVITE_CODE_ALREADY_BOUND','triggerDblclick','top','Disposable','fillRule','push','_dataLoaderService','_localeService','handleDeleteRangeMoveLeft','UNAUTHENTICATED','has','getCoordByCell','round','_clearOtherTimers','cursorInfo$','@univerjs/core','_handleHeartbeatEvent','restore','_collabCursorController','measureText','lineTo','onTransformChange$','DeleteRangeMoveUpCommandId','_name','_onCursorUpdate','subunit','throttleTime','setAlpha','_cursors','UniverInstanceType','_onCursorDelete','deserializeRangeWithSheet','pipe','@univerjs/drawing','div','EffectRefRangId','_docSyncEditingCollabCursorService','toString','LOCAL_CACHE_INTERVAL','WebSocketService','SNAPSHOT_HAS_BEEN_REMOVED','newValue','_revisionService','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','syncEditingCollabCursor','sheetId','collab-text-range-','set','_removeClearOtherTimer','delete','_context','href','PERMISSION_DENIED','_univerInstanceService','_entityInit$','_labelPosition','NOT_FOUND','InsertRangeMoveDownCommandId','DocCollaborationEntity','_document','getTypeOfUnitAdded$','CollaborationController','rgba(255,\x20255,\x20255,\x200.01)','_memberService','YUUMI_URL_COL_OUT_OF_RANGE','29127790YGDDvP','YUUMI_NO_CUBOID_FOR_QUESTION','NOT_COLLAB','getCurrentRevOfUnit','generateRandomId','[CollaborationDataLoaderController]','SNAPSHOT_INVALID_SNAPSHOT','propertyIsEnumerable','transformRemoteChangeset','_roomMembers$','SOCKET_FAILED_RETRY','3862890YOnGsc','_send','roomMembers','UNIVER_DOC','registerBeforeClose','collab-rect-range-','getConfig','updateOfflineData','getRenderById','loadOfflineData','RemoveColCommandId','INVALID_INVITE_CODE','M0\x200H16V16H0z','isActive','addHandlerCallback','isArray','session.connection-failed','mutations','displayName','_render','getFocusedUnit','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','@univerjs/design','univer-flex\x20univer-items-center','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','DocSkeletonManagerService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','LICENSE_EXPORT_SIZE_EXCEEDED','string','univerjs-icon\x20univerjs-icon-','doc.mutation.rich-text-editing','setStateCache','ONLINE','YUUMI_ALL_TABLES_IS_INVALID','_shapes','_textBubble','defs','CLOSE_ROOM','disposeWithMe','takeUntil','getMember','pluginName','JOIN_ROOM_FAILED','CollaborationSocketService','icon','then','createElement','addEventListener','show','IUniverInstanceService','eventID','fillStyle','transformMutation','Failed','_getAnchorBounding','_removeCollabCursors','_registerDependencies','black','transformStateCache','SOCKET_FAILED','get','_anchorDot','font','_initEntityListener','_localCacheService','on-line-single_clip0_910_349','setParam','@univerjs/sheets','CollaborationSessionService','_instanceService'];_0xaf5b=function(){return _0x3c2e06;};return _0xaf5b();}x=ct([ie(0x0,a[_0x6e2c50(0x21b)]),ie(0x1,a[_0x6e2c50(0x25a)](a['Injector'])),ie(0x2,a[_0x6e2c50(0x25a)](u[_0x6e2c50(0x22e)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x1ff680,_0x230b27){const _0x24d96a=_0x6e2c50;let {radius:_0x1d193f,width:_0x98d7cb,height:_0x4eec22}=_0x230b27;_0x1d193f=_0x1d193f!=null?_0x1d193f:0x0,_0x98d7cb=_0x98d7cb!=null?_0x98d7cb:0x1e,_0x4eec22=_0x4eec22!=null?_0x4eec22:0x1e;let _0x450676=0x0,_0x57faf0=0x0,_0x2e55f1=0x0;_0x450676=_0x57faf0=_0x2e55f1=Math[_0x24d96a(0x283)](_0x1d193f,_0x98d7cb/0x2,_0x4eec22/0x2),_0x1ff680[_0x24d96a(0x23e)](),_0x1ff680[_0x24d96a(0x197)](_0x450676,0x0),_0x1ff680[_0x24d96a(0x1b2)](_0x98d7cb-_0x57faf0,0x0),_0x1ff680[_0x24d96a(0x237)](_0x98d7cb-_0x57faf0,_0x57faf0,_0x57faf0,Math['PI']*0x3/0x2,0x0,!0x1),_0x1ff680['lineTo'](_0x98d7cb,_0x4eec22-_0x2e55f1),_0x1ff680[_0x24d96a(0x237)](_0x98d7cb-_0x2e55f1,_0x4eec22-_0x2e55f1,_0x2e55f1,0x0,Math['PI']/0x2,!0x1),_0x1ff680[_0x24d96a(0x1b2)](0x0,_0x4eec22),_0x1ff680[_0x24d96a(0x1b2)](0x0,_0x450676),_0x1ff680[_0x24d96a(0x237)](_0x450676,_0x450676,_0x450676,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1ff680[_0x24d96a(0xd1)](),_0x230b27[_0x24d96a(0x14a)]&&(_0x1ff680[_0x24d96a(0x255)](),_0x1ff680[_0x24d96a(0x21d)]=_0x230b27['fill'],_0x230b27[_0x24d96a(0x1a2)]===_0x24d96a(0x2ef)?_0x1ff680['fill'](_0x24d96a(0x2ef)):_0x1ff680[_0x24d96a(0x14a)](),_0x1ff680[_0x24d96a(0x1af)]());}class ee extends p[_0x6e2c50(0x2a1)]{constructor(_0x4ac1b0,_0x501184){const _0x58da13=_0x6e2c50;super(_0x4ac1b0,_0x501184),h(this,_0x58da13(0x10a)),h(this,_0x58da13(0xc9)),(this[_0x58da13(0x10a)]=_0x501184==null?void 0x0:_0x501184[_0x58da13(0x10a)],this[_0x58da13(0xc9)]=_0x501184==null?void 0x0:_0x501184[_0x58da13(0xc9)]);}static['drawWith'](_0x3559d9,_0x3cc0fe){const _0x5d1e98=_0x6e2c50,{text:_0x356742,color:_0x5a91a0}=_0x3cc0fe;_0x3559d9['save'](),_0x3559d9[_0x5d1e98(0x228)]=_0x5d1e98(0x1ff);const _0x598bf2=_0x3559d9[_0x5d1e98(0x1b1)](_0x356742)[_0x5d1e98(0xd4)],_0x464ce6=Math[_0x5d1e98(0x283)](_0x598bf2+0x2*ne,Re);_t(_0x3559d9,{'height':K,'radius':0x4,'width':_0x464ce6,'fill':_0x5a91a0}),_0x3559d9[_0x5d1e98(0x21d)]=_0x5d1e98(0x2f1);const _0x136417=ne,_0x39e791=K-lt,_0x145b33=Re-0x2*ne;if(_0x598bf2>_0x145b33){let _0x479d73='',_0x211019=0x0;for(const _0x441a54 of _0x356742){const _0x261f3b=_0x3559d9[_0x5d1e98(0x1b1)](_0x441a54)[_0x5d1e98(0xd4)];if(_0x211019+_0x261f3b<=_0x145b33-_0x3559d9[_0x5d1e98(0x1b1)](_0x5d1e98(0x117))[_0x5d1e98(0xd4)])_0x479d73+=_0x441a54,_0x211019+=_0x261f3b;else{_0x479d73+=_0x5d1e98(0x117);break;}}_0x3559d9['fillText'](_0x479d73,_0x136417,_0x39e791);}else _0x3559d9['fillText'](_0x356742,_0x136417,_0x39e791);_0x3559d9[_0x5d1e98(0x1af)]();}['_draw'](_0x536039){const _0x29069f=_0x6e2c50;ee[_0x29069f(0x32b)](_0x536039,this);}}const re=_0x6e2c50(0x264),ht=_0x6e2c50(0x1cc),ut=_0x6e2c50(0x1ef),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x6e2c50(0x1dc);class De{constructor(_0xc69f00,_0x3da2a9,_0x560be3,_0x5e632e){const _0x464e5e=_0x6e2c50;h(this,_0x464e5e(0x20c),[]),h(this,_0x464e5e(0x235),null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,'_hideTimer',null),h(this,'_eventUnsubscribe',null),(this[_0x464e5e(0x2c8)]=_0xc69f00,this[_0x464e5e(0x10f)]=_0x3da2a9,this[_0x464e5e(0x272)]=_0x560be3,this[_0x464e5e(0x1d9)]=_0x5e632e,this[_0x464e5e(0x1fd)]());}set[_0x6e2c50(0x2d7)](_0x3a1554){const _0x26d448=_0x6e2c50;_0x3a1554?(this['_anchorDot']&&this['_anchorDot'][_0x26d448(0x123)](),this['_textBubble']&&this['_textBubble'][_0x26d448(0x21a)]()):(this[_0x26d448(0x227)]&&this[_0x26d448(0x227)][_0x26d448(0x21a)](),this['_textBubble']&&this[_0x26d448(0x20d)][_0x26d448(0x123)]());}['dispose'](){const _0x226b54=_0x6e2c50;for(const _0x2db915 of this[_0x226b54(0x20c)])_0x2db915[_0x226b54(0x27b)]();this[_0x226b54(0x20d)]&&this[_0x226b54(0x20d)][_0x226b54(0x27b)](),this[_0x226b54(0x227)]&&this[_0x226b54(0x227)]['dispose'](),this[_0x226b54(0x235)]&&this['_anchor'][_0x226b54(0x27b)](),this[_0x226b54(0xd0)]&&this[_0x226b54(0xd0)]();}['_render'](){const _0x140001=_0x6e2c50;var _0x3dd692;const {_docSkeleton:_0x591cf6,_document:_0x559934}=this,{color:_0x5f3512,name:_0x5792c9,ranges:_0x4fac23}=this[_0x140001(0x2c8)],_0x527135=_0x559934[_0x140001(0x128)](),{docsLeft:_0x595331,docsTop:_0x47af71}=_0x527135,_0x446648=new b[(_0x140001(0x174))](_0x527135,_0x591cf6);for(const {startOffset:_0x1a5a57,endOffset:_0x3bd4aa,rangeType:_0x2a8905,segmentId:_0x30225e,segmentPage:_0x351394,collapsed:_0x394e64,isActive:_0x3d9a1d}of _0x4fac23){const _0x12a61e=_0x591cf6[_0x140001(0x10d)](_0x1a5a57,!0x0,_0x30225e,_0x351394);let _0x5cb6a9=_0x591cf6[_0x140001(0x10d)](_0x3bd4aa,!0x0,_0x30225e,_0x351394);if(_0x5cb6a9==null&&(_0x5cb6a9=_0x591cf6['findNodePositionByCharIndex'](_0x3bd4aa-0x1,!0x1,_0x30225e,_0x351394)),_0x3d9a1d){const {contentBoxPointGroup:_0xba5875}=_0x446648[_0x140001(0xf2)](_0x5cb6a9,_0x5cb6a9);if(_0xba5875['length']===0x0)continue;this[_0x140001(0x34f)](_0x5f3512,_0xba5875,_0x595331,_0x47af71,_0x5792c9),this[_0x140001(0xd0)]=this[_0x140001(0xfb)]();}if(_0x12a61e&&_0x5cb6a9){if(_0x2a8905===a[_0x140001(0x34a)][_0x140001(0x114)]){const _0x551c1e=new b[(_0x140001(0x16e))](_0x527135,_0x591cf6),{pointGroup:_0x1ecd54}=(_0x3dd692=_0x551c1e['getRangePointData'](_0x12a61e,_0x5cb6a9))!=null?_0x3dd692:{};if(_0x1ecd54==null||_0x1ecd54[_0x140001(0x2ba)]===0x0)continue;this[_0x140001(0xed)](_0x5f3512,_0x1ecd54,_0x595331,_0x47af71);}else{if(!_0x394e64){const {borderBoxPointGroup:_0x3e7b39}=_0x446648[_0x140001(0xf2)](_0x12a61e,_0x5cb6a9);if(_0x3e7b39[_0x140001(0x2ba)]===0x0)continue;this[_0x140001(0x2c6)](_0x5f3512,_0x3e7b39,_0x595331,_0x47af71);}}}}}['_drawAnchor'](_0x4ba4b5,_0x42dc87,_0x4c64ef,_0x5bf9a0,_0x44bf3e){const _0x260e04=_0x6e2c50,_0x51f961=this[_0x260e04(0x220)](_0x42dc87),{left:_0x199be8,top:_0x31b85b,height:_0x91846f}=_0x51f961,_0x1e1263=this[_0x260e04(0x18a)](),_0x2151d6=ft/_0x1e1263,_0x14e5cc=new p['Rect'](re+a['Tools']['generateRandomId'](k),{'left':_0x199be8+_0x4c64ef-_0x2151d6,'top':_0x31b85b+_0x5bf9a0,'height':_0x91846f,'width':dt,'fill':_0x4ba4b5||p[_0x260e04(0x244)](a[_0x260e04(0x17b)]['black'],0x0),'strokeWidth':_0x2151d6,'stroke':St,'evented':!0x0});this[_0x260e04(0x235)]=_0x14e5cc,this['_scene'][_0x260e04(0x187)](_0x14e5cc,b[_0x260e04(0x28b)]);const _0x1017a6=new p['Rect'](re+a[_0x260e04(0x2c5)][_0x260e04(0x1e3)](k),{'left':_0x199be8+_0x4c64ef-_0x2151d6,'top':_0x31b85b+_0x5bf9a0-oe/0x2,'height':oe,'width':oe,'fill':_0x4ba4b5||p['getColor'](a[_0x260e04(0x17b)][_0x260e04(0x223)],0x0),'strokeWidth':0x0,'stroke':_0x4ba4b5||p[_0x260e04(0x244)](a[_0x260e04(0x17b)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x1017a6,this[_0x260e04(0x10f)][_0x260e04(0x187)](_0x1017a6,b[_0x260e04(0x28b)]);const _0x5800ec=new ee(re+a[_0x260e04(0x2c5)]['generateRandomId'](k),{'left':_0x199be8+_0x4c64ef-_0x2151d6,'top':_0x31b85b+_0x5bf9a0-K,'text':_0x44bf3e,'color':_0x4ba4b5});this[_0x260e04(0x20d)]=_0x5800ec,this[_0x260e04(0x10f)][_0x260e04(0x187)](_0x5800ec,b['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x6e2c50(0xfb)](){const _0x3cf6e5=_0x6e2c50,_0x143da2=this[_0x3cf6e5(0x235)][_0x3cf6e5(0x34c)][_0x3cf6e5(0x348)](()=>{const _0x4fd1dc=_0x3cf6e5;this[_0x4fd1dc(0x2d7)]=!0x0;}),_0x123af7=this[_0x3cf6e5(0x235)][_0x3cf6e5(0x135)][_0x3cf6e5(0x348)](()=>{const _0x49ba28=_0x3cf6e5;this['_hideTimer']&&clearTimeout(this[_0x49ba28(0x298)]),this['_hideTimer']=setTimeout(()=>{const _0x573c4a=_0x49ba28;this[_0x573c4a(0x2d7)]=!0x1;},0x7d0);});return()=>{const _0x2da9e1=_0x3cf6e5;_0x143da2[_0x2da9e1(0x23f)](),_0x123af7[_0x2da9e1(0x23f)]();};}[_0x6e2c50(0x2c6)](_0x31c870,_0x5ad8f8,_0x20ca6e,_0x3214e9){const _0xd6800d=_0x6e2c50,_0x14eb9c=new a['ColorKit'](_0x31c870)[_0xd6800d(0x1b9)](0.2)[_0xd6800d(0x16c)](),_0x3cdd9d=new p[(_0xd6800d(0x172))](ht+a['Tools'][_0xd6800d(0x1e3)](k),{'pointsGroup':_0x5ad8f8,'fill':_0x14eb9c||p['getColor'](a[_0xd6800d(0x17b)]['black'],0.2),'left':_0x20ca6e,'top':_0x3214e9,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xd6800d(0x20c)][_0xd6800d(0x1a3)](_0x3cdd9d),this[_0xd6800d(0x10f)][_0xd6800d(0x187)](_0x3cdd9d,b[_0xd6800d(0x28b)]);}[_0x6e2c50(0xed)](_0x307be6,_0x4b95e8,_0x409a1a,_0x25d26a){const _0x4726a0=_0x6e2c50,_0x5c5de3=new a['ColorKit'](_0x307be6)[_0x4726a0(0x1b9)](0.2)[_0x4726a0(0x16c)](),_0x1448e6=new p[(_0x4726a0(0x172))](ut+a[_0x4726a0(0x2c5)][_0x4726a0(0x1e3)](k),{'pointsGroup':_0x4b95e8,'fill':_0x5c5de3||p[_0x4726a0(0x244)](a[_0x4726a0(0x17b)]['black'],0.2),'left':_0x409a1a,'top':_0x25d26a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4726a0(0x20c)][_0x4726a0(0x1a3)](_0x1448e6),this[_0x4726a0(0x10f)][_0x4726a0(0x187)](_0x1448e6,b[_0x4726a0(0x28b)]);}[_0x6e2c50(0x220)](_0x4c9fdc){const _0x53c0ea=_0x4c9fdc[0x0],_0x2714d9=_0x53c0ea[0x0],_0x2ecb87=_0x53c0ea[0x2],{x:_0x42cc96,y:_0xbbb571}=_0x2714d9,{x:_0x42d41c,y:_0x3a27ec}=_0x2ecb87;return{'left':_0x42cc96,'top':_0xbbb571,'width':_0x42d41c-_0x42cc96,'height':_0x3a27ec-_0xbbb571};}['_getScale'](){const _0xcbae79=_0x6e2c50,{scaleX:_0x3beba1,scaleY:_0xea71d}=this[_0xcbae79(0x10f)][_0xcbae79(0x11a)]();return Math['max'](_0x3beba1,_0xea71d);}}var It=Object[_0x6e2c50(0x160)],vt=(_0x29d8ec,_0x358392,_0x2ddfdd,_0x4dd760)=>{const _0x499771=_0x6e2c50;for(var _0x483db9=_0x4dd760>0x1?void 0x0:_0x4dd760?It(_0x358392,_0x2ddfdd):_0x358392,_0x5d0e2c=_0x29d8ec[_0x499771(0x2ba)]-0x1,_0x5741b2;_0x5d0e2c>=0x0;_0x5d0e2c--)(_0x5741b2=_0x29d8ec[_0x5d0e2c])&&(_0x483db9=_0x5741b2(_0x483db9)||_0x483db9);return _0x483db9;},W=(_0x76b012,_0x13b0a9)=>(_0x4daaad,_0x519860)=>_0x13b0a9(_0x4daaad,_0x519860,_0x76b012);let Ie=class extends a['RxDisposable']{constructor(_0x5743a5,_0x4d06bc,_0x5496b3,_0xaa0a2d,_0x10c0bc){const _0x4745bd=_0x6e2c50;super(),h(this,'_cursorShapes',[]),h(this,_0x4745bd(0x1ba),[]),(this['_context']=_0x5743a5,this['_docSkeletonManagerService']=_0x4d06bc,this['_collabCursorController']=_0x5496b3,this[_0x4745bd(0x18f)]=_0xaa0a2d,this[_0x4745bd(0xde)]=_0x10c0bc,this['_init']());}[_0x6e2c50(0x2f2)](){const _0x17a3a9=_0x6e2c50,_0x2790c8=this[_0x17a3a9(0x1d0)][_0x17a3a9(0xd2)],_0x4f9b17=this[_0x17a3a9(0x121)];this[_0x17a3a9(0x210)](d[_0x17a3a9(0x316)]([this[_0x17a3a9(0x1b0)][_0x17a3a9(0xe1)](_0x2790c8),this[_0x17a3a9(0xde)][_0x17a3a9(0x163)]])[_0x17a3a9(0x1be)]($[_0x17a3a9(0x2e3)](([_0x408d13,_0x2380a3])=>({'skeleton':_0x4f9b17[_0x17a3a9(0x2be)](),'cursors':[..._0x408d13[_0x17a3a9(0x10e)]()]['flatMap'](_0x4cb45b=>({..._0x4cb45b,'color':this[_0x17a3a9(0xde)][_0x17a3a9(0x285)](_0x4cb45b[_0x17a3a9(0x10a)])}))})))[_0x17a3a9(0xd6)](_0x46cfdb=>{const _0x59765a=_0x17a3a9;if(this[_0x59765a(0x221)](),_0x46cfdb){const {skeleton:_0x391878,cursors:_0x253a2c}=_0x46cfdb;this['_updateCollabCursors'](_0x391878,_0x253a2c);}})),this['_initResize'](),this[_0x17a3a9(0x11e)]();}['_updateCollabCursors'](_0x7b4fed,_0x265a46){const _0x3752c6=_0x6e2c50,{scene:_0x3d36dc,mainComponent:_0x27d6a5}=this[_0x3752c6(0x1d0)],_0x58b1b6=_0x265a46['map'](_0x53dc62=>new De(_0x53dc62,_0x3d36dc,_0x7b4fed,_0x27d6a5));this[_0x3752c6(0x25f)]=_0x58b1b6,this['_cursors']=_0x265a46;}[_0x6e2c50(0x289)](){const _0x1cbbfd=_0x6e2c50;this['_removeCollabCursors']();const {scene:_0x17db66,mainComponent:_0x280cf6}=this[_0x1cbbfd(0x1d0)],_0x3f5047=this[_0x1cbbfd(0x121)]['getSkeleton'](),_0x506008=this['_cursors'][_0x1cbbfd(0x2e3)](_0x2777d8=>new De(_0x2777d8,_0x17db66,_0x3f5047,_0x280cf6));this[_0x1cbbfd(0x25f)]=_0x506008;}[_0x6e2c50(0x221)](){const _0x2be518=_0x6e2c50;this[_0x2be518(0x25f)][_0x2be518(0x158)](_0x981ca7=>_0x981ca7[_0x2be518(0x27b)]()),this['_cursorShapes']=[];}[_0x6e2c50(0x11e)](){const _0x1b0f85=_0x6e2c50,_0x15b647=[b[_0x1b0f85(0x12a)]['id']];this[_0x1b0f85(0x210)](this[_0x1b0f85(0x18f)]['onCommandExecuted'](_0x4f9800=>{const _0x2af853=_0x1b0f85;_0x15b647['includes'](_0x4f9800['id'])&&_0x4f9800[_0x2af853(0x326)][_0x2af853(0xd2)]===this[_0x2af853(0x1d0)][_0x2af853(0xd2)]&&this[_0x2af853(0x289)]();}));}['_initResize'](){const _0x2d6c9a=_0x6e2c50;this[_0x2d6c9a(0x210)](a[_0x2d6c9a(0x26f)](this[_0x2d6c9a(0x1d0)]['engine'][_0x2d6c9a(0x1b3)])[_0x2d6c9a(0x1be)]($[_0x2d6c9a(0x2f8)](_0x523dcc=>_0x523dcc['type']===p[_0x2d6c9a(0x303)][_0x2d6c9a(0x308)]),$[_0x2d6c9a(0x1b8)](0x10))[_0x2d6c9a(0xd6)](()=>{const _0x391ee8=_0x2d6c9a;this[_0x391ee8(0x289)]();}));}};Ie=vt([W(0x1,a[_0x6e2c50(0x25a)](Y[_0x6e2c50(0x203)])),W(0x2,a[_0x6e2c50(0x25a)](x)),W(0x3,a[_0x6e2c50(0x150)]),W(0x4,a[_0x6e2c50(0x25a)](a['ThemeService']))],Ie);const gt=0x1,mt=1.5;class Ae extends p['Shape']{constructor(_0x36914e,_0x5a9af7){const _0x408ba3=_0x6e2c50;super(_0x36914e,_0x5a9af7),h(this,_0x408ba3(0x347)),h(this,_0x408ba3(0xc7),!0x1),h(this,'_range'),h(this,'_name',''),h(this,_0x408ba3(0x1d5),_0x408ba3(0x1a0)),h(this,_0x408ba3(0x2e1)),(_0x5a9af7&&this[_0x408ba3(0x131)](_0x5a9af7),this['onPointerEnter$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x408ba3(0x135)]['subscribeEvent'](()=>this[_0x408ba3(0x131)]({'hovered':!0x1})));}[_0x6e2c50(0x131)](_0x18a5c3){const _0x1478f8=_0x6e2c50;var _0x19fda9,_0x58cae8,_0x4b70b8,_0x1494cb,_0x51839b,_0x5922f1;this[_0x1478f8(0x347)]=(_0x19fda9=_0x18a5c3[_0x1478f8(0x10a)])!=null?_0x19fda9:this['_color'],this[_0x1478f8(0xc7)]=(_0x58cae8=_0x18a5c3[_0x1478f8(0x261)])!=null?_0x58cae8:this['_hovered'],this['_range']=(_0x4b70b8=_0x18a5c3[_0x1478f8(0xca)])!=null?_0x4b70b8:this[_0x1478f8(0x2b8)],this[_0x1478f8(0x1b5)]=(_0x1494cb=_0x18a5c3[_0x1478f8(0x317)])!=null?_0x1494cb:this[_0x1478f8(0x1b5)],this[_0x1478f8(0x1d5)]=(_0x51839b=_0x18a5c3[_0x1478f8(0x2f5)])!=null?_0x51839b:this['_labelPosition'],this['_backgroundColor']=(_0x5922f1=_0x18a5c3[_0x1478f8(0x282)])!=null?_0x5922f1:this['_backgroundColor'],this[_0x1478f8(0x278)]({'width':_0x18a5c3[_0x1478f8(0xd4)],'height':_0x18a5c3[_0x1478f8(0x119)]});}[_0x6e2c50(0x349)](_0x188938){const _0x20288f=_0x6e2c50,{row:_0x1c649f,column:_0x5230d0}=_0x188938;if(_0x1c649f>=this[_0x20288f(0x2b8)]['startRow']&&_0x1c649f<=this['_range'][_0x20288f(0xe9)]&&_0x5230d0>=this[_0x20288f(0x2b8)][_0x20288f(0xda)]&&_0x5230d0<=this[_0x20288f(0x2b8)][_0x20288f(0x13b)]){this[_0x20288f(0x131)]({'hovered':!0x0});return;}this[_0x20288f(0x131)]({'hovered':!0x1});}[_0x6e2c50(0x19f)](_0x4e3ffc){return!0x1;}[_0x6e2c50(0x284)](_0x40b1f2){const _0x59f73f=_0x6e2c50;p[_0x59f73f(0x129)]['drawWith'](_0x40b1f2,{'width':this[_0x59f73f(0xd4)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x59f73f(0x347)],'evented':!0x1,'fill':this[_0x59f73f(0x2e1)]}),this[_0x59f73f(0xc7)]&&(_0x40b1f2[_0x59f73f(0x255)](),_0x40b1f2[_0x59f73f(0x139)](0x1,0x0,0x0,0x1,this[_0x59f73f(0xd4)],this[_0x59f73f(0x1d5)]===_0x59f73f(0x2ea)?0x0:-0x14),ee[_0x59f73f(0x32b)](_0x40b1f2,{'text':this[_0x59f73f(0x1b5)],'color':this[_0x59f73f(0x347)]}),_0x40b1f2[_0x59f73f(0x1af)]());}}var Ct=Object[_0x6e2c50(0x160)],pt=(_0xd697b,_0x337152,_0x3123b4,_0xdf90de)=>{const _0x1e4e05=_0x6e2c50;for(var _0x203743=_0xdf90de>0x1?void 0x0:_0xdf90de?Ct(_0x337152,_0x3123b4):_0x337152,_0x57ce61=_0xd697b[_0x1e4e05(0x2ba)]-0x1,_0x17027b;_0x57ce61>=0x0;_0x57ce61--)(_0x17027b=_0xd697b[_0x57ce61])&&(_0x203743=_0x17027b(_0x203743)||_0x203743);return _0x203743;},ae=(_0x2902e1,_0x47ce88)=>(_0x3494bd,_0x1ff516)=>_0x47ce88(_0x3494bd,_0x1ff516,_0x2902e1);const bt=0x1389;let ve=class extends a[_0x6e2c50(0x130)]{constructor(_0x41f82e,_0x4b799f,_0x558e55,_0x3a73fb){const _0x8249d4=_0x6e2c50;super(),h(this,'_cursors',new Set()),h(this,_0x8249d4(0x189),null),(this['_context']=_0x41f82e,this[_0x8249d4(0xea)]=_0x4b799f,this[_0x8249d4(0x1b0)]=_0x558e55,this[_0x8249d4(0xde)]=_0x3a73fb,this[_0x8249d4(0x2f2)]());}['_init'](){const _0x43a677=_0x6e2c50;this[_0x43a677(0xea)]['currentSkeleton$'][_0x43a677(0x1be)]($[_0x43a677(0x211)](this[_0x43a677(0x19a)]),$[_0x43a677(0x143)](_0x4080c4=>{const _0xeef753=_0x43a677;if(_0x4080c4){const _0x5cf410=_0x4080c4[_0xeef753(0x1cb)];return d[_0xeef753(0x316)](this[_0xeef753(0x1b0)]['getCollabCursors$'](this[_0xeef753(0x1d0)]['unitId']),this[_0xeef753(0xde)][_0xeef753(0x163)])['pipe']($[_0xeef753(0x2e3)](([_0x12d315,_0x19d7e9])=>{const _0x24737b=new Map();return _0x12d315['forEach']((_0x539ba0,_0x5808be)=>{const _0x579a14=_0x8c86;if(_0x539ba0[_0x579a14(0x31d)]===_0x5cf410){const _0x1d56ce={..._0x539ba0};_0x1d56ce[_0x579a14(0x10a)]=this[_0x579a14(0xde)]['getColorFromTheme'](_0x539ba0[_0x579a14(0x10a)]),_0x24737b[_0x579a14(0x1cd)](_0x5808be,_0x1d56ce);}}),{'skeleton':_0x4080c4,'cursors':_0x24737b};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x43a677(0xd6)](({skeleton:_0x26b58d,cursors:_0x425601})=>{const _0x4a6374=_0x43a677;this['_removeCollabCursors'](),_0x26b58d&&this[_0x4a6374(0x2aa)](_0x26b58d,_0x425601);}),this['_sheetSkeletonManagerService'][_0x43a677(0x2bc)]['subscribe'](_0x130bdd=>{const _0x178936=_0x43a677;if(_0x130bdd==null)return;const {skeleton:_0x3f108c}=_0x130bdd,{scene:_0x4d121e}=this[_0x178936(0x1d0)];_0x4d121e['onPointerMove$'][_0x178936(0x348)](a[_0x178936(0x23b)](_0x209758=>{const _0x900540=_0x178936;var _0x55c66b,_0x23cd15;const {offsetX:_0x434e34,offsetY:_0x10297c}=_0x209758,{x:_0x558955,y:_0x33cd6d}=_0x4d121e[_0x900540(0x2db)](p[_0x900540(0x136)][_0x900540(0x109)]([_0x434e34,_0x10297c])),{scaleX:_0x524213,scaleY:_0x4aaff0}=_0x4d121e['getAncestorScale'](),_0xce9662=_0x4d121e[_0x900540(0x155)](p[_0x900540(0x30b)]['VIEW_MAIN']),_0x2c6953=_0x4d121e[_0x900540(0x2f6)](p[_0x900540(0x136)][_0x900540(0x109)]([_0x558955,_0x33cd6d]),_0xce9662),_0x2e14c6=_0x3f108c[_0x900540(0x19c)](_0x434e34,_0x10297c,_0x524213,_0x4aaff0,_0x2c6953);((_0x55c66b=this['_lastPointer'])==null?void 0x0:_0x55c66b[_0x900540(0x265)])===_0x2e14c6[_0x900540(0x265)]&&((_0x23cd15=this[_0x900540(0x189)])==null?void 0x0:_0x23cd15['row'])===_0x2e14c6['row']||this[_0x900540(0x1ba)][_0x900540(0x158)](_0x3d966e=>{_0x3d966e['onMouseMove'](_0x2e14c6);});},0x64));});}[_0x6e2c50(0x2aa)](_0x6f739f,_0x217ebd){const _0x201876=_0x6e2c50;var _0x48e40c;const _0x4d4668=(_0x48e40c=this['_sheetSkeletonManagerService'][_0x201876(0xf0)]())==null?void 0x0:_0x48e40c[_0x201876(0x309)];if(!_0x4d4668)return;const _0x3dcc7e=this[_0x201876(0x192)]();if(!_0x3dcc7e)return;this[_0x201876(0x1ba)][_0x201876(0x158)](_0x11e80c=>{const _0x286c40=_0x201876;_0x11e80c[_0x286c40(0x100)]();});const {scene:_0x2535f8}=_0x3dcc7e,_0x257e0b=Et(Array[_0x201876(0x232)](_0x217ebd[_0x201876(0x10e)]()))[_0x201876(0x2e3)](_0x64366a=>{const _0x5521cb=_0x201876,{color:_0x3393a7,range:_0x19d8e1,name:_0x4d7686,selection:_0x4cda03,sheetID:_0x29ea4e}=_0x64366a,{startColumn:_0x37da51,startRow:_0x582765,endColumn:_0x5473e9,endRow:_0x4b8b63}=_0x19d8e1,_0xadc76c=X[_0x5521cb(0x1a9)](_0x582765,_0x37da51,_0x2535f8,_0x4d4668),_0x5668e6=X[_0x5521cb(0x1a9)](_0x4b8b63,_0x5473e9,_0x2535f8,_0x4d4668),{columnHeaderHeightAndMarginTop:_0x2bc00a}=_0x4d4668,{startX:_0x303d39,startY:_0x472825}=_0xadc76c,{endX:_0x1800b1,endY:_0x44749c}=_0x5668e6,_0x1363f9=_0x1800b1-_0x303d39,_0xe84e4d=_0x44749c-_0x472825,_0x4fbb33={'labelPosition':_0x472825-_0x2bc00a>=K?_0x5521cb(0x1a0):_0x5521cb(0x2ea),'sheetID':_0x29ea4e,'range':_0x19d8e1,'color':_0x3393a7,'name':_0x4d7686,'selection':_0x4cda03,'left':_0x303d39,'top':_0x472825,'width':_0x1363f9,'height':_0xe84e4d,'evented':!0x1,'zIndex':bt};return new Ae(_0x4d7686,_0x4fbb33);});_0x2535f8['addObjects'](_0x257e0b,gt),this[_0x201876(0x1ba)]=new Set(_0x257e0b);}[_0x6e2c50(0x221)](){const _0x16c424=_0x6e2c50;var _0x449d85;(_0x449d85=this[_0x16c424(0x1ba)])==null||_0x449d85[_0x16c424(0x158)](_0x574864=>_0x574864[_0x16c424(0x27b)]());}[_0x6e2c50(0x192)](){const _0x20cf94=_0x6e2c50;return X['getSheetObject'](this[_0x20cf94(0x1d0)]['unit'],this[_0x20cf94(0x1d0)]);}};ve=pt([ae(0x1,a[_0x6e2c50(0x25a)](X['SheetSkeletonManagerService'])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x6e2c50(0x25a)](a[_0x6e2c50(0x239)]))],ve);function Et(_0x297520){const _0xf2d29f=_0x6e2c50,_0x3bfad4=new Map();return _0x297520[_0xf2d29f(0x158)](_0x59513d=>{const _0x38c6e5=_0xf2d29f;if(_0x3bfad4[_0x38c6e5(0x1a8)](_0x59513d['selection'])){const _0x2fee59=_0x3bfad4['get'](_0x59513d[_0x38c6e5(0xcf)]);_0x2fee59[_0x38c6e5(0x317)]+=',\x20'+_0x59513d[_0x38c6e5(0x317)];}else _0x3bfad4['set'](_0x59513d[_0x38c6e5(0xcf)],_0x59513d);}),Array[_0xf2d29f(0x232)](_0x3bfad4[_0xf2d29f(0x10e)]());}var E=function(){const _0x5ea5dc=_0x6e2c50;return E=Object[_0x5ea5dc(0x329)]||function(_0x614e85){const _0x18626b=_0x5ea5dc;for(var _0x41fb70,_0x18c37e=0x1,_0x33bfc9=arguments['length'];_0x18c37e<_0x33bfc9;_0x18c37e++){_0x41fb70=arguments[_0x18c37e];for(var _0x489686 in _0x41fb70)Object['prototype'][_0x18626b(0x246)]['call'](_0x41fb70,_0x489686)&&(_0x614e85[_0x489686]=_0x41fb70[_0x489686]);}return _0x614e85;},E[_0x5ea5dc(0x290)](this,arguments);},Tt=function(_0xce8e1,_0x425dc8){const _0x1f4316=_0x6e2c50;var _0xc257bb={};for(var _0x31ede9 in _0xce8e1)Object[_0x1f4316(0xcc)][_0x1f4316(0x246)][_0x1f4316(0x2a6)](_0xce8e1,_0x31ede9)&&_0x425dc8['indexOf'](_0x31ede9)<0x0&&(_0xc257bb[_0x31ede9]=_0xce8e1[_0x31ede9]);if(_0xce8e1!=null&&typeof Object[_0x1f4316(0x25c)]==_0x1f4316(0x292)){for(var _0x523385=0x0,_0x31ede9=Object[_0x1f4316(0x25c)](_0xce8e1);_0x523385<_0x31ede9[_0x1f4316(0x2ba)];_0x523385++)_0x425dc8[_0x1f4316(0x13f)](_0x31ede9[_0x523385])<0x0&&Object[_0x1f4316(0xcc)][_0x1f4316(0x1e6)][_0x1f4316(0x2a6)](_0xce8e1,_0x31ede9[_0x523385])&&(_0xc257bb[_0x31ede9[_0x523385]]=_0xce8e1[_0x31ede9[_0x523385]]);}return _0xc257bb;},pe=M[_0x6e2c50(0x243)](function(_0x49f96b,_0x5c4210){const _0x512022=_0x6e2c50;var _0x1f38d6=_0x49f96b[_0x512022(0x216)],_0x1ec95c=_0x49f96b['id'],_0x3a519b=_0x49f96b[_0x512022(0x28f)],_0x24d3a3=_0x49f96b[_0x512022(0x15d)],_0x139a0c=Tt(_0x49f96b,[_0x512022(0x216),'id',_0x512022(0x28f),_0x512022(0x15d)]),_0x47368d=_0x512022(0x207)[_0x512022(0x2fd)](_0x1ec95c,'\x20')[_0x512022(0x2fd)](_0x3a519b||'')[_0x512022(0x15b)](),_0x4aff3d=M[_0x512022(0x2ac)]('_'[_0x512022(0x2fd)](Dt()));return we(_0x1f38d6,''[_0x512022(0x2fd)](_0x1ec95c),{'defIds':_0x1f38d6[_0x512022(0x294)],'idSuffix':_0x4aff3d[_0x512022(0x152)]},E({'ref':_0x5c4210,'className':_0x47368d},_0x139a0c),_0x24d3a3);});function we(_0x56c746,_0x84bb7,_0x1678a3,_0x4db79c,_0x402f0b){const _0x343dba=_0x6e2c50;return M[_0x343dba(0x218)](_0x56c746['tag'],E(E({'key':_0x84bb7},Ot(_0x56c746,_0x1678a3,_0x402f0b)),_0x4db79c),(Rt(_0x56c746,_0x1678a3)[_0x343dba(0x103)]||[])[_0x343dba(0x2e3)](function(_0xb9b7ea,_0x521543){const _0x30186d=_0x343dba;return we(_0xb9b7ea,''[_0x30186d(0x2fd)](_0x84bb7,'-')[_0x30186d(0x2fd)](_0x56c746[_0x30186d(0x127)],'-')['concat'](_0x521543),_0x1678a3,void 0x0,_0x402f0b);}));}function Ot(_0x57131c,_0x4e0052,_0x2a6e74){const _0x2bf265=_0x6e2c50;var _0x1b2c1b=E({},_0x57131c[_0x2bf265(0x137)]);_0x2a6e74!=null&&_0x2a6e74[_0x2bf265(0x313)]&&_0x1b2c1b[_0x2bf265(0x14a)]===_0x2bf265(0x313)&&(_0x1b2c1b['fill']=_0x2a6e74['colorChannel1']),_0x57131c[_0x2bf265(0x127)]===_0x2bf265(0x11b)&&_0x1b2c1b['id']&&(_0x1b2c1b['id']=_0x1b2c1b['id']+_0x4e0052[_0x2bf265(0x323)]),Object[_0x2bf265(0x300)](_0x1b2c1b)[_0x2bf265(0x158)](function(_0x269436){const _0x4d24f5=_0x2bf265;var _0x23b666=_0x269436[0x0],_0x36c0b9=_0x269436[0x1];_0x23b666===_0x4d24f5(0x11b)&&typeof _0x36c0b9==_0x4d24f5(0x206)&&(_0x1b2c1b[_0x23b666]=_0x36c0b9[_0x4d24f5(0x2b9)](/url\(#(.*)\)/,'url(#$1'[_0x4d24f5(0x2fd)](_0x4e0052['idSuffix'],')')));});var _0x4e0702=_0x4e0052['defIds'];return!_0x4e0702||_0x4e0702[_0x2bf265(0x2ba)]===0x0||(_0x57131c['tag']===_0x2bf265(0x299)&&_0x1b2c1b[_0x2bf265(0x110)]&&(_0x1b2c1b[_0x2bf265(0x110)]=_0x1b2c1b[_0x2bf265(0x110)]+_0x4e0052[_0x2bf265(0x323)]),Object[_0x2bf265(0x300)](_0x1b2c1b)['forEach'](function(_0x2a9b1b){const _0x1a2efa=_0x2bf265;var _0x4735f2=_0x2a9b1b[0x0],_0x16947f=_0x2a9b1b[0x1];typeof _0x16947f==_0x1a2efa(0x206)&&(_0x1b2c1b[_0x4735f2]=_0x16947f[_0x1a2efa(0x2b9)](/url\(#(.*)\)/,_0x1a2efa(0x13d)[_0x1a2efa(0x2fd)](_0x4e0052['idSuffix'],')')));})),_0x1b2c1b;}function Rt(_0x5e4093,_0x232708){const _0x31f982=_0x6e2c50;var _0x3c26b0,_0x115a7b=_0x232708[_0x31f982(0x294)];return!_0x115a7b||_0x115a7b[_0x31f982(0x2ba)]===0x0?_0x5e4093:_0x5e4093[_0x31f982(0x127)]==='defs'&&(!((_0x3c26b0=_0x5e4093['children'])===null||_0x3c26b0===void 0x0)&&_0x3c26b0[_0x31f982(0x2ba)])?E(E({},_0x5e4093),{'children':_0x5e4093[_0x31f982(0x103)][_0x31f982(0x2e3)](function(_0x2aab0d){const _0x26937f=_0x31f982;return typeof _0x2aab0d[_0x26937f(0x137)]['id']=='string'&&_0x115a7b&&_0x115a7b[_0x26937f(0x13f)](_0x2aab0d[_0x26937f(0x137)]['id'])>-0x1?E(E({},_0x2aab0d),{'attrs':E(E({},_0x2aab0d[_0x26937f(0x137)]),{'id':_0x2aab0d['attrs']['id']+_0x232708[_0x26937f(0x323)]})}):_0x2aab0d;})}):_0x5e4093;}function Dt(){const _0x554485=_0x6e2c50;return Math[_0x554485(0x2dd)]()[_0x554485(0x1c3)](0x24)[_0x554485(0x2cc)](0x2,0x8);}pe['displayName']='UniverIcon';var Ut={'tag':'svg','attrs':{'fill':_0x6e2c50(0x2ff),'viewBox':_0x6e2c50(0x2df),'width':_0x6e2c50(0x23d),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x6e2c50(0x2ca),'attrs':{'stroke':_0x6e2c50(0x24e),'d':_0x6e2c50(0x23c),'strokeLinecap':_0x6e2c50(0x1aa),'strokeLinejoin':_0x6e2c50(0x1aa),'strokeWidth':1.2}}]},{'tag':_0x6e2c50(0x20e),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x6e2c50(0x30c)},'children':[{'tag':'path','attrs':{'fill':_0x6e2c50(0xf4),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x6e2c50(0x30c)]},ye=M[_0x6e2c50(0x243)](function(_0x1c28bd,_0x5a63e8){const _0x2fa08a=_0x6e2c50;return M[_0x2fa08a(0x218)](pe,Object[_0x2fa08a(0x329)]({},_0x1c28bd,{'id':_0x2fa08a(0x2d2),'ref':_0x5a63e8,'icon':Ut}));});ye[_0x6e2c50(0x1fc)]=_0x6e2c50(0x144);var Nt={'tag':_0x6e2c50(0xd7),'attrs':{'fill':_0x6e2c50(0x2ff),'viewBox':'0\x200\x2017\x2016','width':_0x6e2c50(0x23d),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x6e2c50(0x24e),'d':_0x6e2c50(0x1c9),'strokeLinecap':_0x6e2c50(0x1aa),'strokeLinejoin':_0x6e2c50(0x1aa),'strokeWidth':1.2}}]},{'tag':_0x6e2c50(0x20e),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x6e2c50(0x22b)},'children':[{'tag':_0x6e2c50(0x2ca),'attrs':{'fill':_0x6e2c50(0xf4),'d':_0x6e2c50(0x1f6),'transform':'translate(.97)'}}]}]}],'defIds':[_0x6e2c50(0x22b)]},$e=M['forwardRef'](function(_0x286653,_0x44b576){const _0x167dcd=_0x6e2c50;return M[_0x167dcd(0x218)](pe,Object[_0x167dcd(0x329)]({},_0x286653,{'id':_0x167dcd(0x297),'ref':_0x44b576,'icon':Nt}));});$e[_0x6e2c50(0x1fc)]=_0x6e2c50(0x164);function Mt(_0xf24620){const _0x46aa71=_0x6e2c50;switch(_0xf24620){case u[_0x46aa71(0x2c0)][_0x46aa71(0x186)]:return _0x46aa71(0x196);case u[_0x46aa71(0x2c0)][_0x46aa71(0x2a9)]:return _0x46aa71(0x2e5);case u[_0x46aa71(0x2c0)][_0x46aa71(0x19b)]:return _0x46aa71(0xdd);case u['CollaborationStatus'][_0x46aa71(0x1e1)]:return'collabStatus.notCollab';case u['CollaborationStatus']['AWAITING']:case u[_0x46aa71(0x2c0)][_0x46aa71(0x271)]:return _0x46aa71(0x194);case u[_0x46aa71(0x2c0)][_0x46aa71(0xff)]:case u['CollaborationStatus'][_0x46aa71(0x18b)]:return _0x46aa71(0x26a);}}function xe(_0x2f8073){const _0x195d53=_0x6e2c50,{status$:_0x42b30b}=_0x2f8073,_0x3f7f7c=T[_0x195d53(0x333)](_0x42b30b,u[_0x195d53(0x2c0)][_0x195d53(0x1e1)]),_0x209ab8=T[_0x195d53(0x101)](a[_0x195d53(0xc5)]),_0x50aed4=T[_0x195d53(0x101)](u[_0x195d53(0x22e)]),_0x12e7d7=_0x3f7f7c!==u[_0x195d53(0x2c0)][_0x195d53(0x186)],_0x48b43f=_0x209ab8['t'](Mt(_0x3f7f7c)),_0xbf7ed0=_0x12e7d7?P[_0x195d53(0x26b)]($e,{}):P['jsx'](ye,{}),_0x1f16c7=M[_0x195d53(0x153)](()=>{const _0x58a326=_0x195d53;_0x12e7d7||_0x50aed4[_0x58a326(0x31f)]();},[_0x12e7d7,_0x50aed4]);function _0x53d1f4(){const _0x152d71=_0x195d53;return P[_0x152d71(0x106)](_0x152d71(0x1c0),{'className':_0x152d71(0x201),'onClick':_0x1f16c7,'children':[P[_0x152d71(0x26b)](_0x152d71(0x1c0),{'className':D[_0x152d71(0x13c)]('univer-flex\x20univer-mr-2\x20univer-text-xl',{'univer-text-green-500':_0x12e7d7,'univer-text-red-500':!_0x12e7d7}),'children':_0xbf7ed0}),P[_0x152d71(0x26b)](_0x152d71(0x1c0),{'className':_0x152d71(0x250),'children':_0x48b43f})]});}return _0x12e7d7?_0x53d1f4():P[_0x195d53(0x26b)](D[_0x195d53(0x314)],{'title':_0x209ab8['t'](_0x195d53(0xfd)),'children':_0x53d1f4()});}var Lt=Object[_0x6e2c50(0x160)],Pt=(_0x5bb52f,_0x4537e1,_0x21b871,_0x4a8363)=>{for(var _0x3572af=_0x4a8363>0x1?void 0x0:_0x4a8363?Lt(_0x4537e1,_0x21b871):_0x4537e1,_0x5b69f1=_0x5bb52f['length']-0x1,_0x11facf;_0x5b69f1>=0x0;_0x5b69f1--)(_0x11facf=_0x5bb52f[_0x5b69f1])&&(_0x3572af=_0x11facf(_0x3572af)||_0x3572af);return _0x3572af;},V=(_0x333ea3,_0x35e0cc)=>(_0x518834,_0x28f71b)=>_0x35e0cc(_0x518834,_0x28f71b,_0x333ea3);exports[_0x6e2c50(0x10b)]=class extends a[_0x6e2c50(0x1a1)]{constructor(_0x53ba4c,_0xb29330,_0xd35bfb,_0x590274){const _0x3e9011=_0x6e2c50;super(),h(this,_0x3e9011(0x242),new d[(_0x3e9011(0x104))](u['CollaborationStatus'][_0x3e9011(0x1e1)])),(this[_0x3e9011(0x1d3)]=_0x53ba4c,this['_injector']=_0xb29330,this['_collaborationController']=_0xd35bfb,this[_0x3e9011(0x25d)]=_0x590274,this[_0x3e9011(0x126)](),this['_initStatusListener']());}['_initStatusListener'](){const _0xb71c40=_0x6e2c50;this[_0xb71c40(0x210)](this['_univerInstanceService']['focused$']['pipe'](d[_0xb71c40(0x143)](()=>{const _0xa1f2c2=_0xb71c40,_0x629d8f=this[_0xa1f2c2(0x1d3)][_0xa1f2c2(0x1fe)]();return _0x629d8f?this['_collaborationController'][_0xa1f2c2(0x12e)](_0x629d8f['getUnitId']()):d['of'](null);}),d[_0xb71c40(0x143)](_0x18d66a=>_0x18d66a?_0x18d66a[_0xb71c40(0x142)]:d['of'](u['CollaborationStatus'][_0xb71c40(0x1e1)])))[_0xb71c40(0xd6)](_0x326136=>{const _0x310074=_0xb71c40;this['_status$'][_0x310074(0xc4)](_0x326136);}));}['_initStatusComponent'](){const _0x36ba2b=_0x6e2c50;this[_0x36ba2b(0x210)](this[_0x36ba2b(0x25d)][_0x36ba2b(0xf8)](T[_0x36ba2b(0x238)][_0x36ba2b(0x133)],()=>T['connectInjector'](At({'status$':this['_status$']['asObservable']()}),this[_0x36ba2b(0x307)])));}},exports[_0x6e2c50(0x10b)]=Pt([V(0x0,a[_0x6e2c50(0x21b)]),V(0x1,a[_0x6e2c50(0x25a)](a[_0x6e2c50(0x2fe)])),V(0x2,a[_0x6e2c50(0x25a)](u['CollaborationController'])),V(0x3,T['IUIPartsService'])],exports['DesktopCollaborationStatusDisplayController']);function At(_0x28885c){const {status$:_0x466de8}=_0x28885c;return function(){return P['jsx'](xe,{'status$':_0x466de8});};}var wt=Object[_0x6e2c50(0x160)],yt=(_0x16d70f,_0x41527b,_0x28d319,_0x6b004c)=>{const _0xf274b5=_0x6e2c50;for(var _0x77b4bd=_0x6b004c>0x1?void 0x0:_0x6b004c?wt(_0x41527b,_0x28d319):_0x41527b,_0x27e0b6=_0x16d70f[_0xf274b5(0x2ba)]-0x1,_0x1f4c24;_0x27e0b6>=0x0;_0x27e0b6--)(_0x1f4c24=_0x16d70f[_0x27e0b6])&&(_0x77b4bd=_0x1f4c24(_0x77b4bd)||_0x77b4bd);return _0x77b4bd;},y=(_0x1d567b,_0x240cd7)=>(_0x3a80b,_0x36e350)=>_0x240cd7(_0x3a80b,_0x36e350,_0x1d567b);let q=class extends a[_0x6e2c50(0x1a1)]{constructor(_0x514c12,_0xfe4fc5,_0x32de,_0x308bd4,_0x27715a,_0xeded11){const _0x2ca47b=_0x6e2c50;super(),this[_0x2ca47b(0x32c)]=_0x514c12,this[_0x2ca47b(0x22a)]=_0xfe4fc5,this['_collaborationUIEventService']=_0x32de,this[_0x2ca47b(0x2dc)]=_0x308bd4,this[_0x2ca47b(0x266)]=_0x27715a,this[_0x2ca47b(0x1a5)]=_0xeded11,this[_0x2ca47b(0x2c2)](),this[_0x2ca47b(0x260)]();}[_0x6e2c50(0x2c2)](){const _0xf28f65=_0x6e2c50;this['disposeWithMe'](this[_0xf28f65(0x32c)][_0xf28f65(0x1ee)](()=>{const _0x2de5ca=_0xf28f65;if(this[_0x2de5ca(0x22a)][_0x2de5ca(0xe4)][_0x2de5ca(0x325)])return this[_0x2de5ca(0x1a5)]['t'](_0x2de5ca(0x166));}));}[_0x6e2c50(0x260)](){const _0x2e67c5=_0x6e2c50;this[_0x2e67c5(0x210)](this['_collaborationUIEventService']['event$'][_0x2e67c5(0xd6)](_0x209d5e=>{const _0x32fb6d=_0x2e67c5;_0x209d5e['id']===u[_0x32fb6d(0x168)][_0x32fb6d(0x13a)]&&this[_0x32fb6d(0x2dc)][_0x32fb6d(0x21a)]({'type':D[_0x32fb6d(0x336)][_0x32fb6d(0x30e)],'content':this[_0x32fb6d(0x1a5)]['t'](_0x32fb6d(0x33b))}),_0x209d5e['id']===u[_0x32fb6d(0x168)][_0x32fb6d(0x20f)]&&this['_messageService'][_0x32fb6d(0x21a)]({'type':D[_0x32fb6d(0x336)][_0x32fb6d(0x30e)],'content':this[_0x32fb6d(0x1a5)]['t'](_0x32fb6d(0x26d))}),_0x209d5e['id']===u['CollaborationUIEventId']['PERMISSION_DENIED']&&this['_notificationService'][_0x32fb6d(0x21a)]({'title':this[_0x32fb6d(0x1a5)]['t'](_0x32fb6d(0x24c)),'content':this[_0x32fb6d(0x1a5)]['t']('permission.content'),'type':'error','duration':0x0}),_0x209d5e['id']===u[_0x32fb6d(0x168)][_0x32fb6d(0x2a9)]&&this['_messageService'][_0x32fb6d(0x21a)]({'type':D[_0x32fb6d(0x336)][_0x32fb6d(0x24b)],'content':this[_0x32fb6d(0x1a5)]['t'](_0x32fb6d(0x26d))+'('+_0x209d5e['data']+')'}),_0x209d5e['id']===u['CollaborationUIEventId'][_0x32fb6d(0x214)]&&this[_0x32fb6d(0x2dc)][_0x32fb6d(0x21a)]({'type':D[_0x32fb6d(0x336)]['Warning'],'content':this[_0x32fb6d(0x1a5)]['t'](_0x209d5e[_0x32fb6d(0x105)]||'')}),_0x209d5e['id']===u['CollaborationUIEventId'][_0x32fb6d(0x1e9)]&&this[_0x32fb6d(0x2dc)][_0x32fb6d(0x21a)]({'type':D[_0x32fb6d(0x336)][_0x32fb6d(0x30e)],'content':this[_0x32fb6d(0x1a5)]['t'](_0x32fb6d(0x30f))}),_0x209d5e['id']===u[_0x32fb6d(0x168)][_0x32fb6d(0x225)]&&this[_0x32fb6d(0x2dc)][_0x32fb6d(0x21a)]({'type':D[_0x32fb6d(0x336)]['Error'],'content':this[_0x32fb6d(0x1a5)]['t'](_0x32fb6d(0x1fa))}),_0x209d5e['id']===u[_0x32fb6d(0x168)][_0x32fb6d(0x252)]&&this['_messageService'][_0x32fb6d(0x21a)]({'type':D['MessageType']['Error'],'content':this[_0x32fb6d(0x1a5)]['t'](_0x32fb6d(0x19d))});}));}};q=yt([y(0x0,T[_0x6e2c50(0x156)]),y(0x1,u[_0x6e2c50(0xf6)]),y(0x2,a[_0x6e2c50(0x25a)](u['CollaborationUIEventService'])),y(0x3,T[_0x6e2c50(0x231)]),y(0x4,T[_0x6e2c50(0x33f)]),y(0x5,a[_0x6e2c50(0x25a)](a['LocaleService']))],q);const $t='collaboration-client-ui.config',Ue={},be=a['createIdentifier'](_0x6e2c50(0x2b1));var xt=Object['getOwnPropertyDescriptor'],jt=(_0x34aace,_0x4e64b6,_0x37b1a9,_0x582f0f)=>{const _0x11ca8f=_0x6e2c50;for(var _0x3f7876=_0x582f0f>0x1?void 0x0:_0x582f0f?xt(_0x4e64b6,_0x37b1a9):_0x4e64b6,_0x2e2207=_0x34aace[_0x11ca8f(0x2ba)]-0x1,_0x561314;_0x2e2207>=0x0;_0x2e2207--)(_0x561314=_0x34aace[_0x2e2207])&&(_0x3f7876=_0x561314(_0x3f7876)||_0x3f7876);return _0x3f7876;},H=(_0x24aceb,_0x1a6820)=>(_0x2b0766,_0x3eefbb)=>_0x1a6820(_0x2b0766,_0x3eefbb,_0x24aceb);exports[_0x6e2c50(0x27e)]=class extends a[_0x6e2c50(0x130)]{constructor(_0x3bc042,_0x30c280,_0x4123c3,_0x64f5e1,_0x326625){const _0xdde4f7=_0x6e2c50;super(),this['_urlService']=_0x3bc042,this[_0xdde4f7(0x179)]=_0x30c280,this[_0xdde4f7(0x18f)]=_0x4123c3,this[_0xdde4f7(0x1a4)]=_0x64f5e1,_0x326625?_0x326625==null||_0x326625[_0xdde4f7(0x29a)]()[_0xdde4f7(0x217)](()=>this[_0xdde4f7(0x2f2)]()):(this[_0xdde4f7(0x179)][_0xdde4f7(0x2f7)](_0xdde4f7(0x1e4),_0xdde4f7(0x2cf)),this['_init']());}async[_0x6e2c50(0x2f2)](){const _0x2554a7=_0x6e2c50,_0x5efb1a=this[_0x2554a7(0xe8)]['getParam']('unit'),_0x32ebd3=this[_0x2554a7(0xe8)][_0x2554a7(0x33e)](_0x2554a7(0x198)),_0x48ac27=this[_0x2554a7(0xe8)]['getParam'](_0x2554a7(0x1b7));if(!_0x5efb1a||!_0x32ebd3){this[_0x2554a7(0x179)]['debug'](_0x2554a7(0x1e4),_0x2554a7(0x320));return;}const _0x51d71d=await this[_0x2554a7(0x1a4)]['loadUnit'](_0x5efb1a,Number(_0x32ebd3),_0x48ac27);_0x51d71d&&_0x51d71d instanceof a[_0x2554a7(0x27d)]&&this['_setupSubUnitSync'](_0x51d71d);}async[_0x6e2c50(0x253)](_0x255098){const _0x1fa501=_0x6e2c50;await this[_0x1fa501(0x15c)](_0x255098),_0x255098['activeSheet$'][_0x1fa501(0x1be)](d[_0x1fa501(0x211)](this['dispose$']))['subscribe'](_0x201524=>{const _0x2a30d6=_0x1fa501;_0x201524&&this[_0x2a30d6(0x2ed)](_0x201524);}),this[_0x1fa501(0xe8)][_0x1fa501(0x170)][_0x1fa501(0x1be)](d[_0x1fa501(0x211)](this[_0x1fa501(0x19a)]))[_0x1fa501(0xd6)](()=>this[_0x1fa501(0x15c)](_0x255098));}[_0x6e2c50(0x2ed)](_0x99a573,_0x57f2af=!0x1){const _0x39e6bd=_0x6e2c50,_0x541790=this['_urlService'][_0x39e6bd(0x33e)](_0x39e6bd(0x1b7));_0x99a573[_0x39e6bd(0xf7)]()!==_0x541790&&this[_0x39e6bd(0xe8)][_0x39e6bd(0x22c)](_0x39e6bd(0x1b7),_0x99a573['getSheetId'](),_0x57f2af);}async[_0x6e2c50(0x15c)](_0x51b19f){const _0xb08bb1=_0x6e2c50;var _0x163ae3;const _0xb43a2c=this[_0xb08bb1(0xe8)]['getParam'](_0xb08bb1(0x1b7));if(!_0xb43a2c||!_0x51b19f[_0xb08bb1(0x2de)](_0xb43a2c)){const _0xc0a1b0=_0x51b19f['getUnhiddenWorksheets']()[0x0],_0x5055ab=_0x51b19f[_0xb08bb1(0x2de)](_0xc0a1b0);if(!_0x5055ab)return;this[_0xb08bb1(0x2ed)](_0x5055ab,!0x0),await this['_commandService'][_0xb08bb1(0x33a)](g[_0xb08bb1(0x311)]['id'],{'unitId':_0x51b19f[_0xb08bb1(0x2e0)](),'subUnitId':_0xc0a1b0});return;}((_0x163ae3=_0x51b19f[_0xb08bb1(0x268)]())==null?void 0x0:_0x163ae3[_0xb08bb1(0xf7)]())!==_0xb43a2c&&await this[_0xb08bb1(0x18f)][_0xb08bb1(0x33a)](g[_0xb08bb1(0x311)]['id'],{'unitId':_0x51b19f[_0xb08bb1(0x2e0)](),'subUnitId':_0xb43a2c});}},exports[_0x6e2c50(0x27e)]=jt([H(0x0,be),H(0x1,a[_0x6e2c50(0x2b2)]),H(0x2,a['ICommandService']),H(0x3,a[_0x6e2c50(0x25a)](u[_0x6e2c50(0x171)])),H(0x4,a[_0x6e2c50(0x27c)](Ke[_0x6e2c50(0x173)]))],exports[_0x6e2c50(0x27e)]);var Bt=Object[_0x6e2c50(0x160)],kt=(_0x46428c,_0x2868a7,_0x4be55b,_0x1db957)=>{for(var _0x37cb30=_0x1db957>0x1?void 0x0:_0x1db957?Bt(_0x2868a7,_0x4be55b):_0x2868a7,_0xba7e0c=_0x46428c['length']-0x1,_0x176d20;_0xba7e0c>=0x0;_0xba7e0c--)(_0x176d20=_0x46428c[_0xba7e0c])&&(_0x37cb30=_0x176d20(_0x37cb30)||_0x37cb30);return _0x37cb30;},ce=(_0x46d97f,_0x4c7841)=>(_0x2fabdd,_0x566a63)=>_0x4c7841(_0x2fabdd,_0x566a63,_0x46d97f);let z=class{constructor(_0x4eb183,_0x256316,_0x54a790){const _0x1ca363=_0x6e2c50;this[_0x1ca363(0x307)]=_0x4eb183,this[_0x1ca363(0x335)]=_0x256316,this[_0x1ca363(0x2b7)]=_0x54a790;}[_0x6e2c50(0x276)](_0x316f0b){const _0xb9dd6e=_0x6e2c50;this['_transformUndoRedoStack'](_0x316f0b),this[_0xb9dd6e(0x2ce)](_0x316f0b);}[_0x6e2c50(0x1e7)](_0x37e023){const _0x2c3710=_0x6e2c50,{unitID:_0x4e0ee9}=_0x37e023,_0x47ce63=this[_0x2c3710(0x2b7)][_0x2c3710(0x1f2)](_0x4e0ee9)[_0x2c3710(0x24f)](b[_0x2c3710(0x182)]),{redoCache:_0xaf5979}=_0x47ce63['getUndoRedoMutationParamsCache']();if(_0xaf5979[_0x2c3710(0x2ba)]===0x0)return _0x37e023;let _0x41c6ef=a[_0x2c3710(0x2c5)][_0x2c3710(0x120)](_0x37e023['mutations'][0x0]);for(let _0x28d196=0x0;_0x28d196<_0xaf5979[_0x2c3710(0x2ba)];_0x28d196++){const _0x81857e={'id':_0x2c3710(0x208),'params':{..._0xaf5979[_0x28d196]}},_0x4e13cc=this[_0x2c3710(0x335)]['transformMutation'](_0x41c6ef,_0x81857e,!0x1);if(m[_0x2c3710(0x24a)](_0x4e13cc))throw _0x4e13cc['error'];_0x41c6ef=_0x4e13cc['m1Prime'];}return{...a[_0x2c3710(0x2c5)][_0x2c3710(0x120)](_0x37e023),'mutations':[_0x41c6ef]};}[_0x6e2c50(0x167)](_0xbbcbbd){const _0x4ebd04=_0x6e2c50,{unitID:_0x281610}=_0xbbcbbd,_0x2c117f=this[_0x4ebd04(0x2b7)]['getRenderById'](_0x281610)[_0x4ebd04(0x24f)](b[_0x4ebd04(0x182)]),{undoCache:_0x24067c,redoCache:_0x5d5ba1}=_0x2c117f[_0x4ebd04(0x2eb)]();if(_0x24067c[_0x4ebd04(0x2ba)]===0x0||_0x5d5ba1[_0x4ebd04(0x2ba)]===0x0)return;const _0xaab586=[],_0x56eb82=[];let _0x382e52=a[_0x4ebd04(0x2c5)]['deepClone'](_0xbbcbbd['mutations'][0x0]),_0x2bc85d=a['Tools'][_0x4ebd04(0x120)](_0xbbcbbd[_0x4ebd04(0x1fb)][0x0]);for(let _0x39a8a0=_0x24067c[_0x4ebd04(0x2ba)]-0x1;_0x39a8a0>=0x0;_0x39a8a0--){const _0x5191c5={'id':'doc.mutation.rich-text-editing','params':{..._0x24067c[_0x39a8a0]}},_0x57aaf8={'id':_0x4ebd04(0x208),'params':{..._0x5d5ba1[_0x39a8a0]}},_0x2fac60=this[_0x4ebd04(0x335)][_0x4ebd04(0x21e)](_0x382e52,_0x5191c5,!0x1),_0x58452b=this[_0x4ebd04(0x335)][_0x4ebd04(0x21e)](_0x2bc85d,_0x57aaf8,!0x1);if(m[_0x4ebd04(0x24a)](_0x2fac60))throw _0x2fac60[_0x4ebd04(0x279)];if(m[_0x4ebd04(0x24a)](_0x58452b))throw _0x58452b[_0x4ebd04(0x279)];_0xaab586[_0x4ebd04(0x2e2)](_0x2fac60[_0x4ebd04(0x2a2)][_0x4ebd04(0x326)]),_0x56eb82['unshift'](_0x58452b['m2Prime'][_0x4ebd04(0x326)]),_0x382e52=_0x2fac60[_0x4ebd04(0xee)],_0x2bc85d=_0x58452b[_0x4ebd04(0xee)];}_0x2c117f[_0x4ebd04(0x140)]({'undoCache':_0xaab586,'redoCache':_0x56eb82});}[_0x6e2c50(0x2ce)](_0x747e4d){const _0x41c4f8=_0x6e2c50,{unitID:_0x492467}=_0x747e4d,_0x3f9293=this['_renderManagerService'][_0x41c4f8(0x1f2)](_0x492467)[_0x41c4f8(0x24f)](b[_0x41c4f8(0x182)]),_0x10f5fc=_0x3f9293['getActiveRange']();if(_0x10f5fc==null)return;const _0x160e6c=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x747e4d[_0x41c4f8(0x2e8)],'actions':null,'textRanges':[_0x10f5fc]}}],_0xb2c38b=this['_transformService']['transformMutationsWithChangeset'](_0x747e4d,_0x160e6c);if(!m[_0x41c4f8(0x2bd)](_0xb2c38b))throw _0xb2c38b['error'];const _0x43a5a7=_0xb2c38b[_0x41c4f8(0x2a2)][0x0]['params'][_0x41c4f8(0x26c)];Array[_0x41c4f8(0x1f9)](_0x43a5a7)&&_0x43a5a7[_0x41c4f8(0x2ba)]&&_0x3f9293[_0x41c4f8(0x27a)](_0x43a5a7[0x0]);}};z=kt([ce(0x0,a['Inject'](a[_0x6e2c50(0x2fe)])),ce(0x1,m['ITransformService']),ce(0x2,p[_0x6e2c50(0x327)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0xc2339e,_0x41cfa0,_0x44283d,_0x41288c)=>{const _0x963613=_0x6e2c50;for(var _0x5b4cbb=_0x41288c>0x1?void 0x0:_0x41288c?Ht(_0x41cfa0,_0x44283d):_0x41cfa0,_0x3a436c=_0xc2339e[_0x963613(0x2ba)]-0x1,_0x467e66;_0x3a436c>=0x0;_0x3a436c--)(_0x467e66=_0xc2339e[_0x3a436c])&&(_0x5b4cbb=_0x467e66(_0x5b4cbb)||_0x5b4cbb);return _0x5b4cbb;},le=(_0x59a81b,_0x2dc998)=>(_0x172010,_0x2dd2bf)=>_0x2dc998(_0x172010,_0x2dd2bf,_0x59a81b);let J=class{constructor(_0x4fae34,_0x2662b3,_0x572c4d){const _0x36871b=_0x6e2c50;this[_0x36871b(0x307)]=_0x4fae34,this['_transformService']=_0x2662b3,this[_0x36871b(0x337)]=_0x572c4d;}[_0x6e2c50(0x224)](_0x5d7e09){const _0x3cbe4f=_0x6e2c50;this[_0x3cbe4f(0x240)](_0x5d7e09);}['transformRemoteChangeset'](_0x186dde){const _0x3f01a8=_0x6e2c50,{unitID:_0x39c49a}=_0x186dde,{collaboration:_0x1667fc}=this[_0x3f01a8(0x337)][_0x3f01a8(0x188)](_0x39c49a);if(_0x1667fc[_0x3f01a8(0x2ba)]===0x0)return _0x186dde;let _0x25e26a=a['Tools']['deepClone'](_0x186dde[_0x3f01a8(0x1fb)][0x0]);for(let _0x4a8c7b=0x0;_0x4a8c7b<_0x1667fc[_0x3f01a8(0x2ba)];_0x4a8c7b++){const _0x31861d={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1667fc[_0x4a8c7b][_0x3f01a8(0xd2)],..._0x1667fc[_0x4a8c7b][_0x3f01a8(0x270)]}},_0x4acb4b=this[_0x3f01a8(0x335)][_0x3f01a8(0x21e)](_0x25e26a,_0x31861d,!0x1);if(m[_0x3f01a8(0x24a)](_0x4acb4b))throw _0x4acb4b[_0x3f01a8(0x279)];_0x25e26a=_0x4acb4b[_0x3f01a8(0xee)];}return{...a[_0x3f01a8(0x2c5)][_0x3f01a8(0x120)](_0x186dde),'mutations':[_0x25e26a]};}[_0x6e2c50(0x240)](_0x32dbe8){const _0x5b1313=_0x6e2c50,{unitID:_0x159403}=_0x32dbe8,{history:_0x4f4589,collaboration:_0xc50eb4}=this[_0x5b1313(0x337)][_0x5b1313(0x188)](_0x159403);if(_0x4f4589[_0x5b1313(0x2ba)]===0x0&&_0xc50eb4[_0x5b1313(0x2ba)]===0x0)return;const _0x3c868c=[],_0x300571=[];let _0x5c449b=a['Tools'][_0x5b1313(0x120)](_0x32dbe8[_0x5b1313(0x1fb)][0x0]),_0x125a7e=a[_0x5b1313(0x2c5)][_0x5b1313(0x120)](_0x32dbe8[_0x5b1313(0x1fb)][0x0]);for(let _0x7a2d6b=_0x4f4589[_0x5b1313(0x2ba)]-0x1;_0x7a2d6b>=0x0;_0x7a2d6b--){const _0x42f7d1={'id':_0x5b1313(0x208),'params':{'unitId':_0x4f4589[_0x7a2d6b][_0x5b1313(0xd2)],..._0x4f4589[_0x7a2d6b][_0x5b1313(0x2f0)]}},_0x50132c={'id':_0x5b1313(0x208),'params':{'unitId':_0x4f4589[_0x7a2d6b]['unitId'],..._0x4f4589[_0x7a2d6b][_0x5b1313(0x270)]}},_0x1db55b=this[_0x5b1313(0x335)]['transformMutation'](_0x5c449b,_0x42f7d1,!0x1),_0x29b25a=this['_transformService']['transformMutation'](_0x125a7e,_0x50132c,!0x1);if(m['isTransformMutationFailure'](_0x1db55b))throw _0x1db55b['error'];if(m[_0x5b1313(0x24a)](_0x29b25a))throw _0x29b25a[_0x5b1313(0x279)];_0x3c868c['unshift']({..._0x4f4589[_0x7a2d6b],'undoState':_0x1db55b[_0x5b1313(0x2a2)][_0x5b1313(0x326)],'redoState':_0x29b25a[_0x5b1313(0x2a2)][_0x5b1313(0x326)]}),_0x5c449b=_0x1db55b[_0x5b1313(0xee)],_0x125a7e=_0x29b25a[_0x5b1313(0xee)];}_0x5c449b=a[_0x5b1313(0x2c5)][_0x5b1313(0x120)](_0x32dbe8[_0x5b1313(0x1fb)][0x0]),_0x125a7e=a[_0x5b1313(0x2c5)][_0x5b1313(0x120)](_0x32dbe8[_0x5b1313(0x1fb)][0x0]);for(let _0x4bd52d=_0xc50eb4[_0x5b1313(0x2ba)]-0x1;_0x4bd52d>=0x0;_0x4bd52d--){const _0x4dd672={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xc50eb4[_0x4bd52d][_0x5b1313(0xd2)],..._0xc50eb4[_0x4bd52d]['undoState']}},_0xcad168={'id':_0x5b1313(0x208),'params':{'unitId':_0xc50eb4[_0x4bd52d][_0x5b1313(0xd2)],..._0xc50eb4[_0x4bd52d][_0x5b1313(0x270)]}},_0x2a621e=this[_0x5b1313(0x335)][_0x5b1313(0x21e)](_0x5c449b,_0x4dd672,!0x1),_0x2d807b=this[_0x5b1313(0x335)][_0x5b1313(0x21e)](_0x125a7e,_0xcad168,!0x1);if(m[_0x5b1313(0x24a)](_0x2a621e))throw _0x2a621e[_0x5b1313(0x279)];if(m[_0x5b1313(0x24a)](_0x2d807b))throw _0x2d807b[_0x5b1313(0x279)];_0x300571['unshift']({..._0xc50eb4[_0x4bd52d],'undoState':_0x2a621e[_0x5b1313(0x2a2)][_0x5b1313(0x326)],'redoState':_0x2d807b[_0x5b1313(0x2a2)][_0x5b1313(0x326)]}),_0x5c449b=_0x2a621e['m1Prime'],_0x125a7e=_0x2d807b[_0x5b1313(0xee)];}this['_docStateChangeManagerService'][_0x5b1313(0x209)](_0x159403,{'history':_0x3c868c,'collaboration':_0x300571});}};J=Ft([le(0x0,a[_0x6e2c50(0x25a)](a['Injector'])),le(0x1,m['ITransformService']),le(0x2,a['Inject'](b['DocStateChangeManagerService']))],J);var Yt=Object[_0x6e2c50(0x160)],Wt=(_0xccfeb9,_0x350ca2,_0xd1ea6d,_0xb5cdba)=>{const _0xec5402=_0x6e2c50;for(var _0x5cb624=_0xb5cdba>0x1?void 0x0:_0xb5cdba?Yt(_0x350ca2,_0xd1ea6d):_0x350ca2,_0x2d395a=_0xccfeb9[_0xec5402(0x2ba)]-0x1,_0x54c3cc;_0x2d395a>=0x0;_0x2d395a--)(_0x54c3cc=_0xccfeb9[_0x2d395a])&&(_0x5cb624=_0x54c3cc(_0x5cb624)||_0x5cb624);return _0x5cb624;},Ne=(_0x1e145f,_0x3aaf0e)=>(_0x5b7b51,_0x4a76ed)=>_0x3aaf0e(_0x5b7b51,_0x4a76ed,_0x1e145f);let Z=class{constructor(_0x139548,_0x5b8425){const _0x17c508=_0x6e2c50;this[_0x17c508(0x307)]=_0x139548,this[_0x17c508(0x335)]=_0x5b8425;}[_0x6e2c50(0x259)](_0x125ccf){const _0xd22e5f=_0x6e2c50;var _0x13fad4;const _0x3c531e=this[_0xd22e5f(0x307)][_0xd22e5f(0x226)](Y[_0xd22e5f(0x2b4)]),_0x504e47=(_0x13fad4=_0x3c531e[_0xd22e5f(0x256)]())!=null?_0x13fad4:[];if(_0x504e47[_0xd22e5f(0x2ba)]===0x0)return;const _0x24c214=_0x125ccf['unitID'],_0x2e7e3d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x24c214,'actions':null,'textRanges':_0x504e47}}],_0x18e6f9=this[_0xd22e5f(0x335)][_0xd22e5f(0x2f4)](_0x125ccf,_0x2e7e3d);if(!m['isTransformMutationsWithChangesetSuccess'](_0x18e6f9))throw _0x18e6f9[_0xd22e5f(0x279)];const _0x49db06=_0x18e6f9[_0xd22e5f(0x2a2)][0x0][_0xd22e5f(0x326)]['textRanges'];Array[_0xd22e5f(0x1f9)](_0x49db06)&&_0x49db06['length']&&_0x3c531e['replaceDocRanges'](_0x49db06,{'unitId':_0x24c214,'subUnitId':_0x24c214},!0x1);}};Z=Wt([Ne(0x0,a[_0x6e2c50(0x25a)](a['Injector'])),Ne(0x1,m[_0x6e2c50(0x286)])],Z);var Vt=Object[_0x6e2c50(0x160)],Xt=(_0x586cfe,_0x376da1,_0x30b130,_0x48756f)=>{const _0x7f1aca=_0x6e2c50;for(var _0x315c6b=_0x48756f>0x1?void 0x0:_0x48756f?Vt(_0x376da1,_0x30b130):_0x376da1,_0x54e026=_0x586cfe[_0x7f1aca(0x2ba)]-0x1,_0x5a835e;_0x54e026>=0x0;_0x54e026--)(_0x5a835e=_0x586cfe[_0x54e026])&&(_0x315c6b=_0x5a835e(_0x315c6b)||_0x315c6b);return _0x315c6b;},N=(_0x5d2db1,_0x42ddd0)=>(_0x3973d3,_0x197343)=>_0x42ddd0(_0x3973d3,_0x197343,_0x5d2db1);let Q=class extends a[_0x6e2c50(0x1a1)]{constructor(_0x579676,_0x318b5e,_0x21e330,_0x3710e5,_0x464c61,_0x32ead0,_0x2bbf6c,_0x398bf6){const _0x3c4c11=_0x6e2c50;super(),h(this,'_status$',new d[(_0x3c4c11(0x104))](u[_0x3c4c11(0x2c0)][_0x3c4c11(0x1e1)])),(this[_0x3c4c11(0x337)]=_0x579676,this['_collaborationController']=_0x318b5e,this[_0x3c4c11(0x32e)]=_0x21e330,this[_0x3c4c11(0x28e)]=_0x3710e5,this['_docTransformSelectionsService']=_0x464c61,this['_docSyncEditingCollabCursorService']=_0x32ead0,this[_0x3c4c11(0x2dc)]=_0x2bbf6c,this['_localeService']=_0x398bf6,this[_0x3c4c11(0x229)]());}[_0x6e2c50(0x229)](){const _0x3130ac=_0x6e2c50;this[_0x3130ac(0x210)](this[_0x3130ac(0x31c)][_0x3130ac(0x257)]['subscribe'](_0x4ca19c=>{const _0x5901c7=_0x3130ac,_0x5e5296=this[_0x5901c7(0x337)][_0x5901c7(0x2c3)][_0x5901c7(0xd6)](_0x421d98=>{const _0x528e10=_0x5901c7;if(_0x421d98==null)return;const {unitId:_0x4a5d02,redoState:_0x4a7348,commandId:_0x354e7c}=_0x421d98;if(_0x4a5d02!==_0x4ca19c[_0x528e10(0x2e8)])return;const _0x16bcd2={'id':_0x354e7c,'type':a[_0x528e10(0xc6)]['MUTATION'],'params':{'unitId':_0x4a5d02,'actions':_0x4a7348[_0x528e10(0x195)],'textRanges':null}};_0x4ca19c['onLocalMutation'](_0x16bcd2);});if(_0x4ca19c[_0x5901c7(0x210)](_0x5e5296),_0x4ca19c instanceof u[_0x5901c7(0x1d8)]){const _0xa12155={'onTransformIME':_0x5e052f=>this['_docTransformIMECacheService'][_0x5901c7(0x276)](_0x5e052f),'onTransformState':_0x4560fe=>this[_0x5901c7(0x28e)][_0x5901c7(0x224)](_0x4560fe),'onTransformSelections':_0x12630c=>this['_docTransformSelectionsService'][_0x5901c7(0x259)](_0x12630c),'onSyncEditingCollabCursor':_0x53ec05=>this[_0x5901c7(0x1c2)]['syncEditingCollabCursor'](_0x53ec05),'onTransformRemoteChangesetByIMECache':_0x197086=>this[_0x5901c7(0x32e)][_0x5901c7(0x1e7)](_0x197086),'onTransformRemoteChangesetByStateCache':_0x51812d=>this[_0x5901c7(0x28e)][_0x5901c7(0x1e7)](_0x51812d)};_0x4ca19c[_0x5901c7(0x1f8)](_0xa12155);}}));}};Q=Xt([N(0x0,a[_0x6e2c50(0x25a)](b[_0x6e2c50(0x14c)])),N(0x1,a[_0x6e2c50(0x25a)](u[_0x6e2c50(0x1db)])),N(0x2,a[_0x6e2c50(0x25a)](z)),N(0x3,a[_0x6e2c50(0x25a)](J)),N(0x4,a[_0x6e2c50(0x25a)](Z)),N(0x5,a[_0x6e2c50(0x25a)](Ce)),N(0x6,T[_0x6e2c50(0x231)]),N(0x7,a[_0x6e2c50(0x25a)](a[_0x6e2c50(0xc5)]))],Q);var Gt=Object[_0x6e2c50(0x160)],Kt=(_0x2dd1c1,_0xe6be4e,_0x160832,_0x1612d1)=>{const _0x2e9f57=_0x6e2c50;for(var _0x4857b6=_0x1612d1>0x1?void 0x0:_0x1612d1?Gt(_0xe6be4e,_0x160832):_0xe6be4e,_0x57585d=_0x2dd1c1[_0x2e9f57(0x2ba)]-0x1,_0x57ff0b;_0x57585d>=0x0;_0x57585d--)(_0x57ff0b=_0x2dd1c1[_0x57585d])&&(_0x4857b6=_0x57ff0b(_0x4857b6)||_0x4857b6);return _0x4857b6;},_e=(_0x15d862,_0x2d51d8)=>(_0x267aa9,_0xb215b9)=>_0x2d51d8(_0x267aa9,_0xb215b9,_0x15d862);let ge=class extends a[_0x6e2c50(0x1a1)]{constructor(_0x2d65e7,_0x4dc5fe,_0x76bca7){const _0x4d6ef9=_0x6e2c50;super(),h(this,_0x4d6ef9(0x2f9),new Map()),h(this,_0x4d6ef9(0x341),new Map()),h(this,_0x4d6ef9(0x12d),!0x1),(this['_configService']=_0x2d65e7,this[_0x4d6ef9(0x346)]=_0x4dc5fe,this[_0x4d6ef9(0x1c8)]=_0x76bca7);}['disableLocalCache'](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x28589=_0x6e2c50;this[_0x28589(0x12d)]=!0x1;}get[_0x6e2c50(0xe4)](){const _0x3b214e=_0x6e2c50;return this[_0x3b214e(0x341)];}[_0x6e2c50(0x27b)](){const _0x17a3bb=_0x6e2c50;this[_0x17a3bb(0x2ee)]()[_0x17a3bb(0x217)](()=>super['dispose']());}async[_0x6e2c50(0x1f3)](_0x3a5e76){const _0x431832=_0x6e2c50;return this[_0x431832(0x12d)]?null:this[_0x431832(0x346)]['getItem'](u[_0x431832(0x251)](_0x3a5e76));}async[_0x6e2c50(0x34b)](_0x11d02b,_0x3caa6c){const _0x2ca6f4=_0x6e2c50;return!!this[_0x2ca6f4(0x346)][_0x2ca6f4(0x2b6)](_0x11d02b,_0x3caa6c);}[_0x6e2c50(0x1f1)](_0x45ffe5,_0x56cb9e,_0x2a59de,_0x24b506){const _0x28738f=_0x6e2c50,_0x9874b6=this[_0x28738f(0x1c8)][_0x28738f(0x1e2)](_0x45ffe5);this[_0x28738f(0x2f9)][_0x28738f(0x1cd)](_0x45ffe5,{'unitID':_0x45ffe5,'type':_0x56cb9e,'awaitingChangeset':_0x2a59de,'mutations':_0x24b506,'rev':_0x9874b6}),this[_0x28738f(0x341)][_0x28738f(0x1a8)](_0x45ffe5)||this[_0x28738f(0x11f)](_0x45ffe5);}[_0x6e2c50(0x11f)](_0x2a39e2){const _0x2156ce=_0x6e2c50,_0x34c12e=this[_0x2156ce(0xcd)]();_0x34c12e===0x0?this['_saveCache'](_0x2a39e2):this[_0x2156ce(0x341)][_0x2156ce(0x1cd)](_0x2a39e2,setTimeout(()=>this[_0x2156ce(0xc8)](_0x2a39e2),_0x34c12e));}[_0x6e2c50(0xcd)](){const _0x22d20b=_0x6e2c50;var _0xfb354d;return(_0xfb354d=this[_0x22d20b(0x125)][_0x22d20b(0x1f0)](u[_0x22d20b(0x113)]))!=null?_0xfb354d:u[_0x22d20b(0x1c4)];}['_saveCache'](_0x250bef){const _0x27e0b2=_0x6e2c50,_0xd668e=this[_0x27e0b2(0x341)][_0x27e0b2(0x226)](_0x250bef);return _0xd668e!==void 0x0&&window[_0x27e0b2(0x23a)](_0xd668e),this['_localStorageService']['setItem'](u[_0x27e0b2(0x251)](_0x250bef),this['_cachedData'][_0x27e0b2(0x226)](_0x250bef))[_0x27e0b2(0x217)](()=>this[_0x27e0b2(0x341)]['delete'](_0x250bef));}async['exhaustSavingTask'](){const _0x40b34c=_0x6e2c50,_0x38e791=[];this['_saveTaskMap'][_0x40b34c(0x158)]((_0x2993da,_0x5ac9ba)=>{const _0x4758e2=_0x40b34c;window[_0x4758e2(0x23a)](_0x2993da),_0x38e791['push'](this[_0x4758e2(0xc8)](_0x5ac9ba)[_0x4758e2(0x217)](()=>{const _0x4c33ab=_0x4758e2;this[_0x4c33ab(0x341)][_0x4c33ab(0x1cf)](_0x5ac9ba);}));}),await Promise[_0x40b34c(0x241)](_0x38e791);}};ge=Kt([_e(0x0,a['IConfigService']),_e(0x1,a['ILocalStorageService']),_e(0x2,a['Inject'](m['RevisionService']))],ge);class je extends a[_0x6e2c50(0x130)]{constructor(){const _0x500c83=_0x6e2c50;super(),h(this,_0x500c83(0x170)),this[_0x500c83(0x170)]=d[_0x500c83(0x262)](window,'popstate')[_0x500c83(0x1be)](d[_0x500c83(0x211)](this['dispose$']),d['shareReplay'](0x1),d[_0x500c83(0x199)](void 0x0));}[_0x6e2c50(0x22c)](_0x1c6efa,_0x50e93e,_0x30bead=!0x1){const _0x5a64d6=_0x6e2c50,_0x3ae979=new URL(window[_0x5a64d6(0x315)][_0x5a64d6(0x1d1)]);_0x3ae979[_0x5a64d6(0x115)][_0x5a64d6(0x1cd)](_0x1c6efa,_0x50e93e),_0x30bead?window['history'][_0x5a64d6(0x2d8)]('','',_0x3ae979[_0x5a64d6(0x1c3)]()):window['history'][_0x5a64d6(0x28c)]('','',_0x3ae979[_0x5a64d6(0x1c3)]());}['removeParam'](_0x2f4ee5,_0x32aad0=!0x1){const _0x416601=_0x6e2c50,_0x23d5aa=new URL(window[_0x416601(0x315)][_0x416601(0x1d1)]);_0x23d5aa[_0x416601(0x115)][_0x416601(0x1cf)](_0x2f4ee5),_0x32aad0?window[_0x416601(0x277)]['replaceState']('','',_0x23d5aa[_0x416601(0x1c3)]()):window[_0x416601(0x277)][_0x416601(0x28c)]('','',_0x23d5aa[_0x416601(0x1c3)]());}['getParam'](_0x38c34d){const _0x185351=_0x6e2c50;var _0x2001bf;return(_0x2001bf=new URL(window[_0x185351(0x315)]['href'])[_0x185351(0x115)]['get'](_0x38c34d))!=null?_0x2001bf:void 0x0;}}var qt=Object[_0x6e2c50(0x2d6)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x3ed8d1,_0x5f4078,_0x10aa25)=>_0x5f4078 in _0x3ed8d1?qt(_0x3ed8d1,_0x5f4078,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10aa25}):_0x3ed8d1[_0x5f4078]=_0x10aa25,Zt=(_0x100176,_0xddbbf4,_0x2f2464,_0x5dac51)=>{const _0x277507=_0x6e2c50;for(var _0x30d7dd=_0x5dac51>0x1?void 0x0:_0x5dac51?zt(_0xddbbf4,_0x2f2464):_0xddbbf4,_0x83197f=_0x100176[_0x277507(0x2ba)]-0x1,_0x4fbe83;_0x83197f>=0x0;_0x83197f--)(_0x4fbe83=_0x100176[_0x83197f])&&(_0x30d7dd=_0x4fbe83(_0x30d7dd)||_0x30d7dd);return _0x30d7dd;},he=(_0x1dc30c,_0x1fdd23)=>(_0x24f89c,_0x2399bb)=>_0x1fdd23(_0x24f89c,_0x2399bb,_0x1dc30c),Qt=(_0xf7a33e,_0x2875eb,_0x4a99d6)=>Jt(_0xf7a33e,_0x2875eb+'',_0x4a99d6);const es=_0x6e2c50(0x202);exports[_0x6e2c50(0x2e6)]=class extends a[_0x6e2c50(0x34d)]{constructor(_0x43ac31=Ue,_0x1cac05,_0x31183a,_0x4a781e){const _0x4eedab=_0x6e2c50;super(),this[_0x4eedab(0x2fb)]=_0x43ac31,this[_0x4eedab(0x2b7)]=_0x1cac05,this[_0x4eedab(0x307)]=_0x31183a,this[_0x4eedab(0x125)]=_0x4a781e;const {..._0x4fff80}=a[_0x4eedab(0x263)]({},Ue,this[_0x4eedab(0x2fb)]);this[_0x4eedab(0x125)][_0x4eedab(0x29b)]($t,_0x4fff80);}['onStarting'](){const _0x52e245=_0x6e2c50;this[_0x52e245(0x222)](),this[_0x52e245(0x11d)]();}[_0x6e2c50(0x11c)](){const _0x5c2940=_0x6e2c50;this[_0x5c2940(0x296)]();}['_registerDependencies'](){const _0x24ac90=_0x6e2c50;var _0x15cc17;const _0x191dee=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x24ac90(0xdf)],{'useClass':G[_0x24ac90(0x1c5)]}],[u[_0x24ac90(0xf6)],{'useClass':ge}],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x24ac90(0x190)](this[_0x24ac90(0x307)],a[_0x24ac90(0x17f)](_0x191dee,(_0x15cc17=this['_config'])==null?void 0x0:_0x15cc17[_0x24ac90(0x102)]));}[_0x6e2c50(0x296)](){const _0x4d4a1b=_0x6e2c50;this[_0x4d4a1b(0x210)](this['_renderManagerService'][_0x4d4a1b(0x124)](a['UniverInstanceType'][_0x4d4a1b(0x1ed)],[Ie])),this[_0x4d4a1b(0x210)](this['_renderManagerService'][_0x4d4a1b(0x124)](a['UniverInstanceType'][_0x4d4a1b(0xe6)],[ve]));}[_0x6e2c50(0x11d)](){const _0x9bc4f1=_0x6e2c50;a['touchDependencies'](this[_0x9bc4f1(0x307)],[[x],[exports[_0x9bc4f1(0x10b)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x6e2c50(0x2e6)],_0x6e2c50(0x213),es),exports[_0x6e2c50(0x2e6)]=Zt([a['DependentOn'](u[_0x6e2c50(0x138)]),he(0x1,p['IRenderManagerService']),he(0x2,a[_0x6e2c50(0x25a)](a[_0x6e2c50(0x2fe)])),he(0x3,a[_0x6e2c50(0x331)])],exports[_0x6e2c50(0x2e6)]);var ts=Object[_0x6e2c50(0x160)],ss=(_0x43d25e,_0x4d01a4,_0x57997f,_0x10dcd7)=>{const _0x4683fe=_0x6e2c50;for(var _0x18bc5d=_0x10dcd7>0x1?void 0x0:_0x10dcd7?ts(_0x4d01a4,_0x57997f):_0x4d01a4,_0x4bd216=_0x43d25e[_0x4683fe(0x2ba)]-0x1,_0x2006d8;_0x4bd216>=0x0;_0x4bd216--)(_0x2006d8=_0x43d25e[_0x4bd216])&&(_0x18bc5d=_0x2006d8(_0x18bc5d)||_0x18bc5d);return _0x18bc5d;},F=(_0x4ecd54,_0x5a689b)=>(_0x355925,_0x5b1dc3)=>_0x5a689b(_0x355925,_0x5b1dc3,_0x4ecd54);exports[_0x6e2c50(0x291)]=class extends u[_0x6e2c50(0x215)]{constructor(_0x534c84,_0x31e2d0,_0x211556,_0x3bea75,_0x53904a){super(_0x534c84,_0x31e2d0,_0x211556,_0x3bea75,_0x53904a);}async[_0x6e2c50(0x32d)](_0x9b0a33){const _0xcb8c55=_0x6e2c50,_0x9f0d8b=await this[_0xcb8c55(0x154)](),_0x5e2882=this[_0xcb8c55(0x248)](_0x9b0a33,_0x9f0d8b);return this[_0xcb8c55(0x34e)](_0x5e2882);}[_0x6e2c50(0x248)](_0x347e28,_0x576340){const _0x445349=_0x6e2c50,_0x374f5a=typeof window>'u'?new URL(_0x347e28):new URL(_0x347e28,window[_0x445349(0x315)][_0x445349(0x274)]);_0x374f5a['searchParams'][_0x445349(0x1cd)](_0x445349(0x111),_0x576340);const _0x2af47d=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x445349(0x315)][_0x445349(0x301)]);return _0x2af47d['get'](_0x445349(0xdc))&&_0x374f5a[_0x445349(0x115)][_0x445349(0x1cd)](_0x445349(0xdc),_0x2af47d['get'](_0x445349(0xdc))),_0x374f5a['toString']();}async[_0x6e2c50(0x154)](){const _0x4918db=_0x6e2c50;var _0x17dce1,_0x43a8f4,_0x5d6793;const _0x5ecc1a=this['_configService'][_0x4918db(0x1f0)](u[_0x4918db(0x29f)]),_0xdb44c1=(_0x17dce1=_0x5ecc1a==null?void 0x0:_0x5ecc1a['wsSessionTicketUrl'])!=null?_0x17dce1:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x5d6793=(_0x43a8f4=(await this[_0x4918db(0x306)]['get'](_0xdb44c1,{'headers':{'Content-Type':_0x4918db(0xcb)}}))['body'])==null?void 0x0:_0x43a8f4[_0x4918db(0x24d)])!=null?_0x5d6793:'';}},exports[_0x6e2c50(0x291)]=ss([F(0x0,a['Inject'](a['Injector'])),F(0x1,a[_0x6e2c50(0x25a)](G[_0x6e2c50(0x176)])),F(0x2,a[_0x6e2c50(0x331)]),F(0x3,a[_0x6e2c50(0x2b2)]),F(0x4,m[_0x6e2c50(0x342)])],exports[_0x6e2c50(0x291)]);const Me=0x7530,Le=_0x6e2c50(0x2b3);class is extends a[_0x6e2c50(0x1a1)]{constructor(){const _0x35d417=_0x6e2c50;super(),h(this,_0x35d417(0x193),a['generateRandomId']()),h(this,_0x35d417(0x2da),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x35d417(0x2d9),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x35d417(0x2d0),new Map()),this[_0x35d417(0x2f2)]();}[_0x6e2c50(0x27b)](){const _0x464a2b=_0x6e2c50;super[_0x464a2b(0x27b)](),this[_0x464a2b(0x1ab)][_0x464a2b(0x158)]((_0x1f98f6,_0x39ee71)=>this['_removeClearOtherTimer'](_0x39ee71)),this[_0x464a2b(0x2d9)]&&window['clearInterval'](this[_0x464a2b(0x2d9)]);}[_0x6e2c50(0x25e)](_0x47d2fe){const _0x21e90e=_0x6e2c50;return this[_0x21e90e(0xfa)](_0x47d2fe)['pipe'](d[_0x21e90e(0x185)]());}[_0x6e2c50(0x234)](_0x54740a){const _0x8ada52=_0x6e2c50;this[_0x8ada52(0x2da)][_0x8ada52(0x325)]===0x0&&this[_0x8ada52(0x112)](),this[_0x8ada52(0x2da)][_0x8ada52(0x146)](_0x54740a),this[_0x8ada52(0x1eb)]({'type':0x0,'memberID':this[_0x8ada52(0x193)],'unitIDs':[_0x54740a],'isForwarded':!0x1});}[_0x6e2c50(0x141)](_0x28ee3b){const _0x5dfb11=_0x6e2c50;this[_0x5dfb11(0x2da)][_0x5dfb11(0x1cf)](_0x28ee3b),this[_0x5dfb11(0x2da)][_0x5dfb11(0x325)]===0x0&&this[_0x5dfb11(0x2d9)]&&window['clearInterval'](this[_0x5dfb11(0x2d9)]);}[_0x6e2c50(0x2f2)](){const _0x154067=_0x6e2c50;this['disposeWithMe'](a[_0x154067(0x157)](d[_0x154067(0x262)](window,'storage')[_0x154067(0xd6)](_0x1e3e1e=>{const _0x59c99c=_0x154067;if(_0x1e3e1e[_0x59c99c(0x147)]!==Le||!_0x1e3e1e['newValue'])return;const _0xed6ff=JSON['parse'](_0x1e3e1e[_0x59c99c(0x1c7)]);this[_0x59c99c(0x344)](_0xed6ff);}))),window[_0x154067(0x219)](_0x154067(0x17a),()=>this[_0x154067(0x1eb)]({'type':0x1,'memberID':this[_0x154067(0x193)],'unitIDs':Array[_0x154067(0x232)](this[_0x154067(0x2da)])}));}[_0x6e2c50(0x344)](_0x4b579e){const _0x57112b=_0x6e2c50;switch(_0x4b579e[_0x57112b(0x198)]){case 0x0:this[_0x57112b(0x312)](_0x4b579e);break;case 0x1:this['_handleLeaveEvent'](_0x4b579e);break;case 0x2:this['_handleHeartbeatEvent'](_0x4b579e);break;}}[_0x6e2c50(0x312)](_0x225955){const _0x33cc43=_0x6e2c50,{unitIDs:_0x2069f0,memberID:_0x568511,isForwarded:_0x4aed96}=_0x225955;_0x2069f0['forEach'](_0x37fc7=>{const _0x45728c=_0x8c86;if(!_0x4aed96&&this[_0x45728c(0x2bf)][_0x45728c(0x1a8)](_0x37fc7)&&this[_0x45728c(0xfa)](_0x37fc7)[_0x45728c(0xc4)](u[_0x45728c(0x31a)][_0x45728c(0x2fa)]),!this[_0x45728c(0x2bf)][_0x45728c(0x1a8)](_0x37fc7)||!this['_unitOnClients'][_0x45728c(0x226)](_0x37fc7)[_0x45728c(0x1a8)](_0x568511)){const _0x517ba5=this[_0x45728c(0x2bf)][_0x45728c(0x226)](_0x37fc7)||new Set();_0x517ba5[_0x45728c(0x146)](_0x568511),this['_unitOnClients'][_0x45728c(0x1cd)](_0x37fc7,_0x517ba5),this[_0x45728c(0x181)](_0x568511);}}),_0x4aed96||this[_0x33cc43(0x1eb)]({'type':0x0,'memberID':this[_0x33cc43(0x193)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x6e2c50(0x181)](_0x3a2838){const _0x37de31=_0x6e2c50;this['_removeClearOtherTimer'](_0x3a2838);const _0x276f36=window[_0x37de31(0x254)](()=>{const _0x417871=_0x37de31;this['_unitOnClients'][_0x417871(0x158)](_0x14bb38=>{_0x14bb38['delete'](_0x3a2838);});},Me*0x2);this[_0x37de31(0x1ab)][_0x37de31(0x1cd)](_0x3a2838,_0x276f36);}[_0x6e2c50(0x1ce)](_0xcfa9e4){const _0x182228=_0x6e2c50;if(this['_clearOtherTimers'][_0x182228(0x1a8)](_0xcfa9e4)){const _0x92a1b0=this[_0x182228(0x1ab)][_0x182228(0x226)](_0xcfa9e4);_0x92a1b0&&window[_0x182228(0x23a)](_0x92a1b0),this[_0x182228(0x1ab)][_0x182228(0x1cd)](_0xcfa9e4,null);}}[_0x6e2c50(0x2f3)](_0x1d0021){const _0x256aed=_0x6e2c50,{memberID:_0x5e43ed,unitIDs:_0x3d72ff}=_0x1d0021;_0x3d72ff[_0x256aed(0x158)](_0x4d5a58=>{const _0x314298=_0x256aed;var _0x5d12d9;const _0x5c1dbe=this[_0x314298(0x2bf)]['get'](_0x4d5a58);_0x5c1dbe&&(_0x5c1dbe[_0x314298(0x1cf)](_0x5e43ed),(_0x5d12d9=this[_0x314298(0xfa)](_0x4d5a58))==null||_0x5d12d9[_0x314298(0xc4)](_0x5c1dbe[_0x314298(0x325)]===0x0?u[_0x314298(0x31a)]['NO_OTHER_CLIENTS_EDITING']:u[_0x314298(0x31a)]['OTHER_CLIENTS_EDITING']));}),this[_0x256aed(0x1ce)](_0x5e43ed);}[_0x6e2c50(0x1ae)](_0x51b9aa){this['_scheduleClearOtherTimer'](_0x51b9aa['memberID']);}[_0x6e2c50(0x1eb)](_0x4e49c4){const _0x28bddd=_0x6e2c50;localStorage[_0x28bddd(0x2b6)](Le,JSON[_0x28bddd(0x2ae)](_0x4e49c4));}[_0x6e2c50(0x112)](){const _0x3d81c5=_0x6e2c50;this[_0x3d81c5(0x2d9)]=window[_0x3d81c5(0xce)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},Me);}[_0x6e2c50(0xfa)](_0x1500db){const _0x51bd46=_0x6e2c50;return this['_unitStatus'][_0x51bd46(0x1a8)](_0x1500db)||this[_0x51bd46(0x2d0)][_0x51bd46(0x1cd)](_0x1500db,new d[(_0x51bd46(0x104))](u[_0x51bd46(0x31a)][_0x51bd46(0x148)])),this[_0x51bd46(0x2d0)][_0x51bd46(0x226)](_0x1500db);}}var Be=(_0xea561a=>(_0xea561a[_0xea561a['UNDEFINED']=0x0]=_0x6e2c50(0x32a),_0xea561a[_0xea561a['OK']=0x1]='OK',_0xea561a[_0xea561a[_0x6e2c50(0x2a5)]=0x2]=_0x6e2c50(0x2a5),_0xea561a[_0xea561a[_0x6e2c50(0x1d2)]=0x3]=_0x6e2c50(0x1d2),_0xea561a[_0xea561a['NOT_FOUND']=0x4]=_0x6e2c50(0x1d6),_0xea561a[_0xea561a[_0x6e2c50(0x1a7)]=0x5]=_0x6e2c50(0x1a7),_0xea561a[_0xea561a[_0x6e2c50(0x33c)]=0x6]='ALREADY_EXISTS',_0xea561a[_0xea561a[_0x6e2c50(0x2b5)]=0x7]=_0x6e2c50(0x2b5),_0xea561a[_0xea561a[_0x6e2c50(0x2d4)]=0x8]='TOO_MANY_REQUESTS',_0xea561a[_0xea561a[_0x6e2c50(0xe3)]=0x9]=_0x6e2c50(0xe3),_0xea561a[_0xea561a['LOGIN_FAILED']=0xa]='LOGIN_FAILED',_0xea561a[_0xea561a[_0x6e2c50(0x29c)]=0x1389]=_0x6e2c50(0x29c),_0xea561a[_0xea561a[_0x6e2c50(0x1e5)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0xea561a[_0xea561a[_0x6e2c50(0x1c6)]=0x1772]=_0x6e2c50(0x1c6),_0xea561a[_0xea561a[_0x6e2c50(0x339)]=0x1773]=_0x6e2c50(0x339),_0xea561a[_0xea561a['APPLY_REJECT']=0x1b59]=_0x6e2c50(0x2af),_0xea561a[_0xea561a[_0x6e2c50(0x28a)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0xea561a[_0xea561a[_0x6e2c50(0x169)]=0x1b5b]=_0x6e2c50(0x169),_0xea561a[_0xea561a['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0xea561a[_0xea561a[_0x6e2c50(0x177)]=0x1b5d]=_0x6e2c50(0x177),_0xea561a[_0xea561a[_0x6e2c50(0x10c)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0xea561a[_0xea561a[_0x6e2c50(0x2c9)]=0x2329]=_0x6e2c50(0x2c9),_0xea561a[_0xea561a[_0x6e2c50(0x107)]=0x232a]=_0x6e2c50(0x107),_0xea561a[_0xea561a[_0x6e2c50(0x2d1)]=0x232b]=_0x6e2c50(0x2d1),_0xea561a[_0xea561a['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x6e2c50(0x205),_0xea561a[_0xea561a['LICENSE_DISTRO_REJECTED']=0x232d]=_0x6e2c50(0xfc),_0xea561a[_0xea561a[_0x6e2c50(0x258)]=0x2711]=_0x6e2c50(0x258),_0xea561a[_0xea561a[_0x6e2c50(0x1de)]=0x2712]=_0x6e2c50(0x1de),_0xea561a[_0xea561a[_0x6e2c50(0x330)]=0x2713]=_0x6e2c50(0x330),_0xea561a[_0xea561a[_0x6e2c50(0x12c)]=0x2714]=_0x6e2c50(0x12c),_0xea561a[_0xea561a[_0x6e2c50(0x1e0)]=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0xea561a[_0xea561a['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0xea561a[_0xea561a[_0x6e2c50(0x108)]=0x271c]=_0x6e2c50(0x108),_0xea561a[_0xea561a['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x6e2c50(0x20b),_0xea561a[_0xea561a[_0x6e2c50(0x17e)]=0x271e]=_0x6e2c50(0x17e),_0xea561a[_0xea561a[_0x6e2c50(0x322)]=0x271f]=_0x6e2c50(0x322),_0xea561a[_0xea561a[_0x6e2c50(0x191)]=0x2af9]=_0x6e2c50(0x191),_0xea561a[_0xea561a[_0x6e2c50(0x2c7)]=0x2ee1]=_0x6e2c50(0x2c7),_0xea561a[_0xea561a[_0x6e2c50(0x1f5)]=0x2ee2]=_0x6e2c50(0x1f5),_0xea561a[_0xea561a[_0x6e2c50(0x31b)]=0x2ee3]='INVITE_CODE_REQUIRED',_0xea561a[_0xea561a['USER_NOT_INVITED_CODE']=0x2ee4]='USER_NOT_INVITED_CODE',_0xea561a[_0xea561a['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x6e2c50(0x19e),_0xea561a[_0xea561a['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x6e2c50(0xf9),_0xea561a[_0xea561a[_0x6e2c50(0x145)]=0x32ca]=_0x6e2c50(0x145),_0xea561a[_0xea561a[_0x6e2c50(0xd9)]=0x32cb]=_0x6e2c50(0xd9),_0xea561a[_0xea561a[_0x6e2c50(0x33d)]=-0x1]='UNRECOGNIZED',_0xea561a))(Be||{}),ns=Object[_0x6e2c50(0x160)],rs=(_0x74262,_0x31ce70,_0x61e057,_0x1948c6)=>{const _0x5e9cd9=_0x6e2c50;for(var _0x133f10=_0x1948c6>0x1?void 0x0:_0x1948c6?ns(_0x31ce70,_0x61e057):_0x31ce70,_0x2c07b4=_0x74262[_0x5e9cd9(0x2ba)]-0x1,_0x10d75d;_0x2c07b4>=0x0;_0x2c07b4--)(_0x10d75d=_0x74262[_0x2c07b4])&&(_0x133f10=_0x10d75d(_0x133f10)||_0x133f10);return _0x133f10;},ue=(_0xf765e7,_0x39bdff)=>(_0x3fa3a4,_0x38bc76)=>_0x39bdff(_0x3fa3a4,_0x38bc76,_0xf765e7);exports[_0x6e2c50(0x236)]=class extends a[_0x6e2c50(0x1a1)]{constructor(_0x348dec,_0x2e0cc8,_0x387197){const _0x59c690=_0x6e2c50;super(),this['_instanceService']=_0x348dec,this[_0x59c690(0x306)]=_0x2e0cc8,this[_0x59c690(0x125)]=_0x387197;}async[_0x6e2c50(0xe5)](_0x24bb40,_0x441ac6,_0x89d209,..._0x5b7ea7){const _0x3bbd72=_0x6e2c50;var _0x3f4dd4,_0x5eb4ff,_0x345185,_0x5202b4;const _0x1fe6a4=this[_0x3bbd72(0x22f)][_0x3bbd72(0x1fe)]();if(!_0x1fe6a4)throw new Error(_0x3bbd72(0xd8));const _0x48c5f8=((_0x3f4dd4=this[_0x3bbd72(0x125)]['getConfig'](u[_0x3bbd72(0x318)]))!=null?_0x3f4dd4:u[_0x3bbd72(0x204)])+'/'+_0x24bb40+_0x3bbd72(0x16b)+_0x441ac6,_0xb821c2=new URL(window[_0x3bbd72(0x315)][_0x3bbd72(0x1d1)]),_0x39a5d8={'scriptId':_0x24bb40,'runId':(_0x5eb4ff=_0xb821c2[_0x3bbd72(0x115)][_0x3bbd72(0x226)](_0x3bbd72(0xdc)))!=null?_0x5eb4ff:'','function':_0x441ac6,'unitId':_0x1fe6a4[_0x3bbd72(0x2e0)](),'argsOfFunction':JSON['stringify'](_0x5b7ea7),'invokeId':(_0x345185=_0x89d209[_0x3bbd72(0x280)])!=null?_0x345185:'','executionId':(_0x5202b4=_0x89d209[_0x3bbd72(0x338)])!=null?_0x5202b4:''};try{const _0x2cadf3=await this[_0x3bbd72(0x306)][_0x3bbd72(0x2c4)](_0x48c5f8,{'body':_0x39a5d8});return _0x2cadf3[_0x3bbd72(0xeb)][_0x3bbd72(0x279)]&&_0x2cadf3['body'][_0x3bbd72(0x279)][_0x3bbd72(0xdb)]!==Be['OK']?_0x3bbd72(0x21f):_0x2cadf3[_0x3bbd72(0xeb)]['result'];}catch{return _0x3bbd72(0x21f);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x6e2c50(0x21b)]),ue(0x1,a[_0x6e2c50(0x25a)](G[_0x6e2c50(0x176)])),ue(0x2,a['IConfigService'])],exports[_0x6e2c50(0x236)]),exports[_0x6e2c50(0xf3)]=xe,exports[_0x6e2c50(0x17d)]=be,exports[_0x6e2c50(0xe2)]=Ae,exports[_0x6e2c50(0x343)]=is,exports[_0x6e2c50(0x15e)]=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 _0x5801c3=_0x343f;(function(_0x40ea45,_0x3fd4ab){const _0x4925c6=_0x343f,_0x523704=_0x40ea45();while(!![]){try{const _0x117eda=parseInt(_0x4925c6(0x165))/0x1*(parseInt(_0x4925c6(0x16e))/0x2)+parseInt(_0x4925c6(0x177))/0x3*(-parseInt(_0x4925c6(0x170))/0x4)+-parseInt(_0x4925c6(0x179))/0x5*(parseInt(_0x4925c6(0x168))/0x6)+parseInt(_0x4925c6(0x174))/0x7+-parseInt(_0x4925c6(0x16f))/0x8+-parseInt(_0x4925c6(0x164))/0x9+parseInt(_0x4925c6(0x171))/0xa;if(_0x117eda===_0x3fd4ab)break;else _0x523704['push'](_0x523704['shift']());}catch(_0x3f8fb9){_0x523704['push'](_0x523704['shift']());}}}(_0x4683,0xe1209));function _0x343f(_0x2841a7,_0x318e1d){const _0x4683c4=_0x4683();return _0x343f=function(_0x343f00,_0x1da69d){_0x343f00=_0x343f00-0x164;let _0x5f248a=_0x4683c4[_0x343f00];return _0x5f248a;},_0x343f(_0x2841a7,_0x318e1d);}function _0x4683(){const _0x4094ca=['Synced','1515902OlvwKV','7341056KwMZgF','116wIJsrX','24218980DauTfX','Syncing...','Local\x20file','3427564mZqhYU','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','148449sZSoYl','Connection\x20failed,\x20please\x20check\x20your\x20network.','8630cibXQz','Authentication\x20Error','4207230Eayiss','2tByagg','Collaboration\x20Conflict','exports','2382RrgasI','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.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.'];_0x4683=function(){return _0x4094ca;};return _0x4683();}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x5801c3(0x16a),'notCollab':_0x5801c3(0x173),'synced':_0x5801c3(0x16d),'syncing':_0x5801c3(0x172),'offline':_0x5801c3(0x176)},'session':{'connection-failed':_0x5801c3(0x178),'will-retry':_0x5801c3(0x16c),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x5801c3(0x175)},'conflict':{'title':_0x5801c3(0x166),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x5801c3(0x17a),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x5801c3(0x16b)},'auth':{'needGotoLoginAlert':_0x5801c3(0x169)}};module[_0x5801c3(0x167)]=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;