@univerjs-pro/collaboration-client-ui 0.7.0-nightly.202504301607 → 0.7.0-nightly.202505011607
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 +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -17
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x340c(_0x5d1ea5,_0x5ce30b){const _0x48035e=_0x4803();return _0x340c=function(_0x340c7b,_0x95a88){_0x340c7b=_0x340c7b-0x7a;let _0x3e9966=_0x48035e[_0x340c7b];return _0x3e9966;},_0x340c(_0x5d1ea5,_0x5ce30b);}const _0x10c81c=_0x340c;(function(_0x10fcdb,_0x5b9d8c){const _0x3ca388=_0x340c,_0x205871=_0x10fcdb();while(!![]){try{const _0x15dc96=parseInt(_0x3ca388(0x87))/0x1+parseInt(_0x3ca388(0x7e))/0x2+parseInt(_0x3ca388(0x80))/0x3*(-parseInt(_0x3ca388(0x7f))/0x4)+parseInt(_0x3ca388(0x81))/0x5+parseInt(_0x3ca388(0x7b))/0x6*(parseInt(_0x3ca388(0x84))/0x7)+-parseInt(_0x3ca388(0x7c))/0x8+-parseInt(_0x3ca388(0x7d))/0x9*(-parseInt(_0x3ca388(0x88))/0xa);if(_0x15dc96===_0x5b9d8c)break;else _0x205871['push'](_0x205871['shift']());}catch(_0x5284dc){_0x205871['push'](_0x205871['shift']());}}}(_0x4803,0xf3439));function _0x4803(){const _0x4607da=['2142405ONrSLw','1842236yIKrKQ','24ZFYWdQ','596559AaFGYs','812010AeIzkd','RemoteUniscriptService','@univerjs-pro/collaboration-client-ui','7DVgRbN','@univerjs/core/facade','runOnServer','724155uYKIvx','30phYPIb','FUniver','7484226JUMmjd','12637232KqfLlh'];_0x4803=function(){return _0x4607da;};return _0x4803();}const t=require(_0x10c81c(0x83)),e=require(_0x10c81c(0x85));class c extends e[_0x10c81c(0x7a)]{[_0x10c81c(0x86)](_0x3c3165,_0x11b92d,..._0x272f89){const _0x2f6cb6=_0x10c81c;return this['_injector']['get'](t[_0x2f6cb6(0x82)])[_0x2f6cb6(0x86)](_0x3c3165,_0x11b92d,{},..._0x272f89);}}e[_0x10c81c(0x7a)]['extend'](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5241c7=_0x5ae1;(function(_0x4bbfaf,_0x2bf3fc){const _0x27136a=_0x5ae1,_0x4ca5e2=_0x4bbfaf();while(!![]){try{const _0x7db984=parseInt(_0x27136a(0x3b7))/0x1+parseInt(_0x27136a(0x329))/0x2+-parseInt(_0x27136a(0x378))/0x3+parseInt(_0x27136a(0x2f4))/0x4*(-parseInt(_0x27136a(0x1c9))/0x5)+-parseInt(_0x27136a(0x3b9))/0x6+-parseInt(_0x27136a(0x1ab))/0x7+-parseInt(_0x27136a(0x194))/0x8*(-parseInt(_0x27136a(0x30e))/0x9);if(_0x7db984===_0x2bf3fc)break;else _0x4ca5e2['push'](_0x4ca5e2['shift']());}catch(_0x7e297d){_0x4ca5e2['push'](_0x4ca5e2['shift']());}}}(_0x4565,0xaefa4));var Ve=Object[_0x5241c7(0x28a)],Xe=(_0xe5e2b0,_0x9c9d8f,_0x422be2)=>_0x9c9d8f in _0xe5e2b0?Ve(_0xe5e2b0,_0x9c9d8f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x422be2}):_0xe5e2b0[_0x9c9d8f]=_0x422be2,h=(_0x3240da,_0x2f55ca,_0x259c60)=>Xe(_0x3240da,typeof _0x2f55ca!='symbol'?_0x2f55ca+'':_0x2f55ca,_0x259c60);Object[_0x5241c7(0x28a)](exports,Symbol[_0x5241c7(0x328)],{'value':_0x5241c7(0x2f9)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x5241c7(0x25e)),p=require(_0x5241c7(0x17b)),G=require(_0x5241c7(0x1d9)),b=require(_0x5241c7(0x2f2)),Ge=require(_0x5241c7(0x20c)),d=require(_0x5241c7(0x27f)),W=require(_0x5241c7(0x35e)),m=require(_0x5241c7(0x3bf)),Ee=require(_0x5241c7(0x2ec)),g=require(_0x5241c7(0x295)),$=require(_0x5241c7(0x23f)),X=require(_0x5241c7(0x2bf)),P=require(_0x5241c7(0x33a)),T=require(_0x5241c7(0x38d)),D=require(_0x5241c7(0x235)),M=require(_0x5241c7(0x2c8)),qe=require(_0x5241c7(0x25d));var Ke=Object[_0x5241c7(0x334)],ze=(_0x55776a,_0x4d3af8,_0x23db3f,_0x1b0ad4)=>{const _0x48c973=_0x5241c7;for(var _0x42d7fd=_0x1b0ad4>0x1?void 0x0:_0x1b0ad4?Ke(_0x4d3af8,_0x23db3f):_0x4d3af8,_0xf5ed7c=_0x55776a[_0x48c973(0x3bd)]-0x1,_0x6d840b;_0xf5ed7c>=0x0;_0xf5ed7c--)(_0x6d840b=_0x55776a[_0xf5ed7c])&&(_0x42d7fd=_0x6d840b(_0x42d7fd)||_0x42d7fd);return _0x42d7fd;},Te=(_0xbf1aa2,_0x19b830)=>(_0x23d0ac,_0x341db1)=>_0x19b830(_0x23d0ac,_0x341db1,_0xbf1aa2);let de=class extends a['RxDisposable']{constructor(_0x31ca6d,_0x3884df){const _0x551ddc=_0x5241c7;super(),this[_0x551ddc(0x2e0)]=_0x31ca6d,this[_0x551ddc(0x2b7)]=_0x3884df,this[_0x551ddc(0x369)]();}['_init'](){const _0x514e3c=_0x5241c7,_0xd7cfc1=this;this[_0x514e3c(0x1de)](this[_0x514e3c(0x2e0)]['addClipboardHook']({'onBeforePasteImage':async _0x2f089e=>{const _0x3fccfe=_0x514e3c,_0x2d3b2d=await _0xd7cfc1['_imageIoService'][_0x3fccfe(0x3d3)](_0x2f089e);return _0x2d3b2d?{'source':_0x2d3b2d[_0x3fccfe(0x1a2)],'imageSourceType':_0x2d3b2d[_0x3fccfe(0x31a)]}:null;}}));}};de=ze([Te(0x0,b[_0x5241c7(0x300)]),Te(0x1,Ge[_0x5241c7(0x348)])],de);const Oe=[_0x5241c7(0x221),'jiqing500',_0x5241c7(0x2c5),_0x5241c7(0x37d),'blue400','gold400'];class me extends a[_0x5241c7(0x2c9)]{constructor(){const _0x5cd321=_0x5241c7;super(...arguments),h(this,'_assignedColors',new Map()),h(this,_0x5cd321(0x1e6),0x0);}[_0x5241c7(0x1c8)](_0x5cd676){const _0xaec2a0=_0x5241c7;if(this['_assignedColors'][_0xaec2a0(0x310)](_0x5cd676))return this[_0xaec2a0(0x2b3)][_0xaec2a0(0x187)](_0x5cd676);const _0x1faff9=Oe[this[_0xaec2a0(0x1e6)]];return this[_0xaec2a0(0x1e6)]=(this[_0xaec2a0(0x1e6)]+0x1)%Oe['length'],this[_0xaec2a0(0x2b3)][_0xaec2a0(0x314)](_0x5cd676,_0x1faff9),_0x1faff9;}}function Pe(_0x1abda1){const _0x4f910a=_0x5241c7;let _0xa8bbb5='';for(const _0x584947 of _0x1abda1){const {startOffset:_0x5d1f89,endOffset:_0x276529,isActive:_0x57c40c,rangeType:_0x4ab989,segmentId:_0x2bf785,segmentPage:_0x24ef58}=_0x584947;_0xa8bbb5[_0x4f910a(0x3bd)]&&(_0xa8bbb5+=','),_0xa8bbb5+=_0x5d1f89+':'+_0x276529+':'+(_0x57c40c?'1':'0')+':'+_0x4ab989+':'+_0x2bf785+':'+_0x24ef58;}return _0xa8bbb5;}function Je(_0x2b20ff){const _0xb8a73b=_0x5241c7,_0x585594=_0x2b20ff[_0xb8a73b(0x1d3)](','),_0x104e03=[];for(const _0x12e0ed of _0x585594){const [_0x4ad263,_0x3ee572,_0x4b3641,_0x368bdf,_0x3d81f5,_0x1bc8b1]=_0x12e0ed[_0xb8a73b(0x1d3)](':');_0x104e03[_0xb8a73b(0x234)]({'startOffset':Number(_0x4ad263),'endOffset':Number(_0x3ee572),'collapsed':_0x4ad263===_0x3ee572,'isActive':_0x4b3641==='1','rangeType':_0x368bdf===a['DOC_RANGE_TYPE']['TEXT']?a[_0xb8a73b(0x29f)][_0xb8a73b(0x26e)]:a[_0xb8a73b(0x29f)][_0xb8a73b(0x1b0)],'segmentId':typeof _0x3d81f5=='string'?String(_0x3d81f5):'','segmentPage':Number(_0x1bc8b1!=null?_0x1bc8b1:-0x1)});}return _0x104e03[_0xb8a73b(0x339)](_0x1e8f4c=>_0x1e8f4c[_0xb8a73b(0x2f7)])||(_0x104e03[0x0]['isActive']=!0x0),_0x104e03;}class Ce extends a[_0x5241c7(0x1dd)]{constructor(){const _0x2c7977=_0x5241c7;super(...arguments),h(this,_0x2c7977(0x3c0),new d['BehaviorSubject'](null)),h(this,_0x2c7977(0x20a),this[_0x2c7977(0x3c0)][_0x2c7977(0x322)]());}[_0x5241c7(0x32a)](_0x12a492){const _0x3c6ccf=_0x5241c7,{unitID:_0x449615,memberID:_0x301cbe,textRanges:_0x17e174}=_0x12a492,_0xea052a=Pe(_0x17e174);if(_0xea052a==='')return;const _0x26e349={'unitID':_0x449615,'memberID':_0x301cbe,'selection':_0xea052a};this[_0x3c6ccf(0x3c0)][_0x3c6ccf(0x24c)](_0x26e349);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x3437c5,_0x24f797,_0x42b19a,_0x40d3ce)=>{const _0x599b6e=_0x5241c7;for(var _0x4379bb=_0x40d3ce>0x1?void 0x0:_0x40d3ce?Ze(_0x24f797,_0x42b19a):_0x24f797,_0x568eac=_0x3437c5[_0x599b6e(0x3bd)]-0x1,_0x5f178c;_0x568eac>=0x0;_0x568eac--)(_0x5f178c=_0x3437c5[_0x568eac])&&(_0x4379bb=_0x5f178c(_0x4379bb)||_0x4379bb);return _0x4379bb;},L=(_0x4561ff,_0x4d79d2)=>(_0x24fc37,_0x3efa58)=>_0x4d79d2(_0x24fc37,_0x3efa58,_0x4561ff);const et=0x12c,tt=0x64;let fe=class extends a[_0x5241c7(0x1dd)]{constructor(_0x1e959a,_0x197326,_0x5919cf,_0x2ec710,_0x7b1b24,_0x3853fc,_0x49bd63,_0x3ca087,_0x163b5a){const _0x4b1db6=_0x5241c7;super(),h(this,'_online',!0x1),h(this,_0x4b1db6(0x369),!0x1),h(this,_0x4b1db6(0x172),new d[(_0x4b1db6(0x366))](new Map())),h(this,'cursorInfo$',this[_0x4b1db6(0x172)][_0x4b1db6(0x322)]()),h(this,_0x4b1db6(0x193),new d[(_0x4b1db6(0x366))]([])),h(this,_0x4b1db6(0x224),this[_0x4b1db6(0x193)][_0x4b1db6(0x353)](d[_0x4b1db6(0x27e)](et))),h(this,'_updateLocalCursor',a[_0x4b1db6(0x302)](_0x23b9f1=>{const _0x219138=_0x4b1db6,_0x27ad3f={'eventID':m[_0x219138(0x1e1)][_0x219138(0x3bb)],'data':{'unitID':this['unitID'],'memberID':this[_0x219138(0x204)][_0x219138(0x1ee)](),'selection':Pe(_0x23b9f1)}};this[_0x219138(0x204)][_0x219138(0x1b9)](_0x27ad3f,this['unitID']);},tt)),(this['unitID']=_0x1e959a,this[_0x4b1db6(0x204)]=_0x197326,this[_0x4b1db6(0x3c8)]=_0x5919cf,this[_0x4b1db6(0x1f7)]=_0x2ec710,this[_0x4b1db6(0x3e4)]=_0x7b1b24,this[_0x4b1db6(0x2f3)]=_0x3853fc,this[_0x4b1db6(0x1e5)]=_0x49bd63,this[_0x4b1db6(0x308)]=_0x3ca087,this[_0x4b1db6(0x1fb)]=_0x163b5a);}get[_0x5241c7(0x198)](){const _0x4dc2df=_0x5241c7;return this[_0x4dc2df(0x172)]['getValue']();}get['roomMembers'](){const _0x264519=_0x5241c7;return this[_0x264519(0x193)]['getValue']();}['dispose'](){const _0x2f4201=_0x5241c7;super[_0x2f4201(0x347)](),this[_0x2f4201(0x172)][_0x2f4201(0x24c)](new Map()),this[_0x2f4201(0x172)]['complete'](),this['_roomMembers$'][_0x2f4201(0x24c)]([]),this[_0x2f4201(0x193)][_0x2f4201(0x375)]();}[_0x5241c7(0x2b9)](){const _0x51a2ec=_0x5241c7;this[_0x51a2ec(0x369)]||(this['_init']=!0x0,this[_0x51a2ec(0x204)][_0x51a2ec(0x384)][_0x51a2ec(0x353)](d[_0x51a2ec(0x214)](this['dispose$']))[_0x51a2ec(0x3d4)](_0x409f69=>{const _0x199c47=_0x51a2ec;_0x409f69===u[_0x199c47(0x39f)][_0x199c47(0x2c6)]?this[_0x199c47(0x1c5)]():this['_toggleOffline']();}),this[_0x51a2ec(0x204)][_0x51a2ec(0x188)][_0x51a2ec(0x353)](d[_0x51a2ec(0x214)](this[_0x51a2ec(0x352)]))[_0x51a2ec(0x3d4)](_0x1f5fb2=>{const _0x493ac7=_0x51a2ec,_0x56e420=_0x1f5fb2[_0x493ac7(0x189)];_0x56e420===m[_0x493ac7(0x1e1)][_0x493ac7(0x3bb)]&&this[_0x493ac7(0x1d8)](_0x1f5fb2),_0x56e420===m[_0x493ac7(0x1e1)]['USERS_LEAVE']&&this[_0x493ac7(0x3c6)](_0x1f5fb2);}),this['disposeWithMe'](this['_commandService'][_0x51a2ec(0x376)](_0x2ac386=>{const _0xf156d5=_0x51a2ec,_0x233eb1=_0x2ac386[_0xf156d5(0x1e3)];_0x233eb1!=null&&this[_0xf156d5(0x276)]&&_0x2ac386['id']===W[_0xf156d5(0x3c2)]['id']&&_0x233eb1[_0xf156d5(0x2b5)]===this[_0xf156d5(0x18f)]&&_0x233eb1[_0xf156d5(0x1f5)]===!0x1&&_0x233eb1[_0xf156d5(0x38c)][_0xf156d5(0x3bd)]>0x0&&this['_updateLocalCursor'](_0x233eb1['ranges']);})),this[_0x51a2ec(0x2f3)]['collabCursorState$'][_0x51a2ec(0x353)](d[_0x51a2ec(0x214)](this['dispose$']))[_0x51a2ec(0x3d4)](_0x680359=>{const _0xd81282=_0x51a2ec;if((_0x680359==null?void 0x0:_0x680359['unitID'])!==this[_0xd81282(0x18f)])return;const _0x3e20c9={'eventID':m[_0xd81282(0x1e1)][_0xd81282(0x3bb)],'data':_0x680359};this['_onCursorUpdate'](_0x3e20c9);}),this[_0x51a2ec(0x1de)](this[_0x51a2ec(0x1fb)][_0x51a2ec(0x376)](_0x9250cb=>{const _0xedf5f4=_0x51a2ec;if(_0x9250cb[_0xedf5f4(0x1e3)]==null)return;const _0x1dc2e6=_0x9250cb[_0xedf5f4(0x1e3)];if(_0x9250cb['id']!==W['RichTextEditingMutation']['id']||_0x1dc2e6[_0xedf5f4(0x2b5)]!==this['unitID'])return;const _0x34860f={'id':_0xedf5f4(0x34e),'params':_0x1dc2e6},_0x2cace7=this[_0xedf5f4(0x198)];for(const [_0x1d1cac,_0x9f9d5b]of _0x2cace7){const _0x10e7bf={'id':_0xedf5f4(0x34e),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x9f9d5b[_0xedf5f4(0x38c)]}},_0x273989=this[_0xedf5f4(0x1e5)][_0xedf5f4(0x285)](_0x34860f,_0x10e7bf,!0x1);if(m[_0xedf5f4(0x36e)](_0x273989))throw _0x273989[_0xedf5f4(0x327)];_0x2cace7[_0xedf5f4(0x314)](_0x1d1cac,{..._0x9f9d5b,'ranges':_0x273989['m2Prime'][_0xedf5f4(0x1e3)][_0xedf5f4(0x357)]});}queueMicrotask(()=>{const _0x543eda=_0xedf5f4;this[_0x543eda(0x172)][_0x543eda(0x24c)](_0x2cace7);});})));}['_onCursorUpdate'](_0x4ee5b2){const _0x49b858=_0x5241c7;var _0x237c64,_0x21a1d3;const {memberID:_0x1aaaa1,selection:_0x4646c0}=_0x4ee5b2[_0x49b858(0x23d)],_0x1f2ebc=Je(_0x4646c0),_0x105b02=(_0x21a1d3=(_0x237c64=this[_0x49b858(0x3e4)]['getMember'](this[_0x49b858(0x18f)],_0x1aaaa1))==null?void 0x0:_0x237c64[_0x49b858(0x380)])!=null?_0x21a1d3:_0x49b858(0x175),_0x25d575={'color':this['_colorAssignService'][_0x49b858(0x1c8)](_0x1aaaa1),'name':_0x105b02,'ranges':_0x1f2ebc},_0x2962b8=this['cursorInfo'];_0x2962b8[_0x49b858(0x314)](_0x1aaaa1,_0x25d575),this[_0x49b858(0x172)]['next'](_0x2962b8);}[_0x5241c7(0x3c6)](_0x50f880){const _0x41e505=_0x5241c7,{memberID:_0x4bba7d}=_0x50f880[_0x41e505(0x23d)],_0x293876=this[_0x41e505(0x198)];_0x293876[_0x41e505(0x364)](_0x4bba7d),this[_0x41e505(0x172)][_0x41e505(0x24c)](_0x293876);}[_0x5241c7(0x1c5)](){const _0x25d07e=_0x5241c7;var _0x29e736;if(this[_0x25d07e(0x276)]=!0x0,((_0x29e736=this[_0x25d07e(0x308)][_0x25d07e(0x169)]())==null?void 0x0:_0x29e736['getUnitId']())!==this[_0x25d07e(0x18f)])return;const _0x49c03e=this[_0x25d07e(0x3c8)][_0x25d07e(0x187)](W[_0x25d07e(0x3b1)])['getDocRanges']();Array['isArray'](_0x49c03e)&&_0x49c03e[_0x25d07e(0x3bd)]>0x0&&this[_0x25d07e(0x241)](_0x49c03e);}['_toggleOffline'](){const _0x1604a2=_0x5241c7;this[_0x1604a2(0x276)]=!0x1;}};fe=Qe([L(0x2,a[_0x5241c7(0x190)](a[_0x5241c7(0x197)])),L(0x3,a[_0x5241c7(0x190)](me)),L(0x4,a[_0x5241c7(0x190)](u[_0x5241c7(0x259)])),L(0x5,a['Inject'](Ce)),L(0x6,m[_0x5241c7(0x361)]),L(0x7,a[_0x5241c7(0x356)]),L(0x8,a[_0x5241c7(0x387)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x47188a,_0x5ac0fc,_0x8a9b1a,_0x290130)=>{const _0xbf72f6=_0x5241c7;for(var _0x93ffa6=_0x290130>0x1?void 0x0:_0x290130?st(_0x5ac0fc,_0x8a9b1a):_0x5ac0fc,_0x177890=_0x47188a[_0xbf72f6(0x3bd)]-0x1,_0x4f97e2;_0x177890>=0x0;_0x177890--)(_0x4f97e2=_0x47188a[_0x177890])&&(_0x93ffa6=_0x4f97e2(_0x93ffa6)||_0x93ffa6);return _0x93ffa6;},A=(_0x1b4c2b,_0x3918fb)=>(_0x263f61,_0x2c0940)=>_0x3918fb(_0x263f61,_0x2c0940,_0x1b4c2b);const nt=0x12c,rt=0x64,ot=()=>{let _0x555879=[],_0x373931=!0x1;return _0x4b4dd0=>{const _0xfd294=_0x5ae1;_0x555879[_0xfd294(0x234)](_0x4b4dd0),_0x373931||(_0x373931=!0x0,setTimeout(()=>{const _0x3455b7=_0xfd294;_0x555879[_0x3455b7(0x37a)](_0x2498c9=>_0x2498c9()),_0x555879=[],_0x373931=!0x1;}));};};function _0x5ae1(_0x340c57,_0xdee13a){const _0x45657d=_0x4565();return _0x5ae1=function(_0x5ae146,_0x2c6e31){_0x5ae146=_0x5ae146-0x169;let _0x131769=_0x45657d[_0x5ae146];return _0x131769;},_0x5ae1(_0x340c57,_0xdee13a);}let Se=class extends a[_0x5241c7(0x1dd)]{constructor(_0x2a4c2b,_0x4d5f65,_0x556de0,_0xab274a,_0x29f249,_0x352eac,_0x40e4c1,_0x5c187e){const _0x366403=_0x5241c7;super(),h(this,_0x366403(0x276),!0x1),h(this,'_init',!0x1),h(this,_0x366403(0x172),new d[(_0x366403(0x366))](new Map())),h(this,'cursorInfo$',this[_0x366403(0x172)]['asObservable']()),h(this,_0x366403(0x193),new d[(_0x366403(0x366))]([])),h(this,'roomMembers$',this['_roomMembers$'][_0x366403(0x353)](d[_0x366403(0x27e)](nt))),h(this,_0x366403(0x241),a[_0x366403(0x302)]((_0x24ca88,_0x22b89d)=>{const _0x1b8254=_0x366403,_0x518e3e={'eventID':m[_0x1b8254(0x1e1)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1b8254(0x18f)],'memberID':this[_0x1b8254(0x204)][_0x1b8254(0x1ee)](),'selection':Ee[_0x1b8254(0x24d)](_0x24ca88,_0x22b89d[_0x1b8254(0x3b8)])}};this[_0x1b8254(0x204)]['send'](_0x518e3e,this[_0x1b8254(0x18f)]);},rt)),(this['unitID']=_0x2a4c2b,this[_0x366403(0x204)]=_0x4d5f65,this[_0x366403(0x3c8)]=_0x556de0,this[_0x366403(0x1f7)]=_0xab274a,this[_0x366403(0x3e4)]=_0x29f249,this[_0x366403(0x308)]=_0x352eac,this[_0x366403(0x1fb)]=_0x40e4c1,this[_0x366403(0x229)]=_0x5c187e);}get['cursorInfo'](){const _0x1316ff=_0x5241c7;return this[_0x1316ff(0x172)][_0x1316ff(0x2bd)]();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}[_0x5241c7(0x347)](){const _0x3239f5=_0x5241c7;super[_0x3239f5(0x347)](),this[_0x3239f5(0x172)][_0x3239f5(0x24c)](new Map()),this[_0x3239f5(0x172)][_0x3239f5(0x375)](),this[_0x3239f5(0x193)][_0x3239f5(0x24c)]([]),this[_0x3239f5(0x193)][_0x3239f5(0x375)]();}[_0x5241c7(0x2b9)](){const _0x480bb0=_0x5241c7;this[_0x480bb0(0x369)]||(this[_0x480bb0(0x369)]=!0x0,this[_0x480bb0(0x204)][_0x480bb0(0x384)][_0x480bb0(0x353)](d[_0x480bb0(0x214)](this[_0x480bb0(0x352)]))[_0x480bb0(0x3d4)](_0x4c2a98=>{const _0x5b335e=_0x480bb0;_0x4c2a98===u['SessionStatus'][_0x5b335e(0x2c6)]?this[_0x5b335e(0x1c5)]():this[_0x5b335e(0x38f)]();}),this[_0x480bb0(0x204)][_0x480bb0(0x188)][_0x480bb0(0x353)](d[_0x480bb0(0x214)](this['dispose$']))[_0x480bb0(0x3d4)](_0x161812=>{const _0x254a3b=_0x480bb0,_0x1c0c32=_0x161812[_0x254a3b(0x189)];_0x1c0c32===m[_0x254a3b(0x1e1)][_0x254a3b(0x3bb)]&&this[_0x254a3b(0x1d8)](_0x161812),_0x1c0c32===m[_0x254a3b(0x1e1)]['USERS_LEAVE']&&this[_0x254a3b(0x3c6)](_0x161812);}),this[_0x480bb0(0x32f)](),this['disposeWithMe'](this['_commandService'][_0x480bb0(0x376)](_0x52a733=>{const _0x1b2824=_0x480bb0;if(this[_0x1b2824(0x276)]&&_0x52a733['id']===g[_0x1b2824(0x1bc)]['id']&&_0x52a733[_0x1b2824(0x1e3)][_0x1b2824(0x2b5)]===this[_0x1b2824(0x18f)]){const _0x64221=_0x52a733[_0x1b2824(0x1e3)];this[_0x1b2824(0x241)](_0x64221['subUnitId'],_0x64221[_0x1b2824(0x1ed)][0x0]);}})));}[_0x5241c7(0x1d8)](_0x5c3f8f){const _0x418eb5=_0x5241c7;var _0x19c093,_0x4161e2;const {memberID:_0x1d71fd,selection:_0x34a8a6}=_0x5c3f8f['data'],{sheetName:_0xf050ae,range:_0x4a3b95}=Ee[_0x418eb5(0x2cc)](_0x34a8a6),_0x5db8de={'name':(_0x4161e2=(_0x19c093=this['_memberService']['getMember'](this[_0x418eb5(0x18f)],_0x1d71fd))==null?void 0x0:_0x19c093[_0x418eb5(0x380)])!=null?_0x4161e2:_0x418eb5(0x175),'range':this[_0x418eb5(0x34f)](_0xf050ae,_0x4a3b95),'sheetID':_0xf050ae,'color':this[_0x418eb5(0x1f7)][_0x418eb5(0x1c8)](_0x1d71fd),'selection':_0x34a8a6},_0x26b549=this[_0x418eb5(0x198)];_0x26b549[_0x418eb5(0x314)](_0x1d71fd,_0x5db8de),this[_0x418eb5(0x172)][_0x418eb5(0x24c)](_0x26b549);}[_0x5241c7(0x3c6)](_0x31c431){const _0x2331ae=_0x5241c7,{memberID:_0x113d29}=_0x31c431[_0x2331ae(0x23d)],_0x52e7ca=this['cursorInfo'];_0x52e7ca[_0x2331ae(0x364)](_0x113d29),this['_cursorInfo$']['next'](_0x52e7ca);}['_getMergeRange'](_0x30424e,_0x4d74f1){const _0x4a1956=_0x5241c7;var _0x44d760,_0x641788;const _0xc3839e=(_0x641788=(_0x44d760=this[_0x4a1956(0x308)]['getUniverSheetInstance'](this['unitID']))==null?void 0x0:_0x44d760[_0x4a1956(0x1c4)](_0x30424e))==null?void 0x0:_0x641788['getMergeData']();return(_0xc3839e==null?void 0x0:_0xc3839e[_0x4a1956(0x2ff)](_0x9b89f7=>a['Rectangle'][_0x4a1956(0x373)](_0x9b89f7,_0x4d74f1)))||_0x4d74f1;}[_0x5241c7(0x32f)](){const _0x4aa20c=_0x5241c7,_0x2dff29=new a['DisposableCollection'](),_0x5e0148=ot(),_0x1d397a=()=>{const _0x5ac5a6=_0x5ae1;_0x2dff29['dispose']();const _0x5e07a2=(_0x40edac,_0xa062ca,_0x184768,_0x4eb43a)=>{const _0x368482=_0x5ae1;let _0x494388=[];switch(_0x40edac['id']){case g['EffectRefRangId'][_0x368482(0x213)]:{_0x494388=g['handleDeleteRangeMoveLeft'](_0x40edac,_0x4eb43a);break;}case g[_0x368482(0x1b4)][_0x368482(0x2ea)]:{_0x494388=g[_0x368482(0x39d)](_0x40edac,_0x4eb43a);break;}case g[_0x368482(0x1b4)][_0x368482(0x2a0)]:{_0x494388=g[_0x368482(0x2aa)](_0x40edac,_0x4eb43a);break;}case g['EffectRefRangId'][_0x368482(0x3cb)]:{_0x494388=g[_0x368482(0x181)](_0x40edac,_0x4eb43a);break;}case g[_0x368482(0x1b4)][_0x368482(0x253)]:{_0x494388=g[_0x368482(0x17e)](_0x40edac,_0x4eb43a);break;}case g[_0x368482(0x1b4)]['InsertRowCommandId']:{_0x494388=g[_0x368482(0x263)](_0x40edac,_0x4eb43a);break;}case g[_0x368482(0x1b4)]['MoveRangeCommandId']:{_0x494388=g[_0x368482(0x208)](_0x40edac,_0x4eb43a);break;}case g[_0x368482(0x1b4)][_0x368482(0x271)]:{_0x494388=g[_0x368482(0x1a9)](_0x40edac,_0x4eb43a);break;}case g[_0x368482(0x1b4)][_0x368482(0x2d7)]:{_0x494388=g[_0x368482(0x1ce)](_0x40edac,_0x4eb43a);break;}}const _0x4318e8=g[_0x368482(0x331)](_0x494388,_0x4eb43a),_0x11ec9e=this['cursorInfo'][_0x368482(0x187)](_0xa062ca);if(_0x11ec9e&&_0x4318e8){const _0x415aee={..._0x11ec9e,'range':_0x4318e8};this[_0x368482(0x198)][_0x368482(0x314)](_0xa062ca,_0x415aee),_0x5e0148(()=>{const _0x52f7a1=_0x368482,_0x411765=this[_0x52f7a1(0x229)]['registerRefRange'](_0x4318e8,_0x1c8c3f=>(_0x411765['dispose'](),_0x5e07a2(_0x1c8c3f,_0xa062ca,_0x184768,_0x4318e8)));_0x2dff29[_0x52f7a1(0x344)](_0x411765);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x5ac5a6(0x37a)]((_0x5e5885,_0x1205a)=>{const _0x173ad4=_0x5ac5a6,{range:_0x4f10a1,sheetID:_0x274975}=_0x5e5885,_0x74f62e=this[_0x173ad4(0x229)][_0x173ad4(0x2fa)](_0x4f10a1,_0x3a8b08=>(_0x74f62e[_0x173ad4(0x347)](),_0x5e07a2(_0x3a8b08,_0x1205a,_0x274975,_0x4f10a1)));_0x2dff29[_0x173ad4(0x344)](_0x74f62e);});};this['disposeWithMe'](a['toDisposable'](this[_0x4aa20c(0x172)][_0x4aa20c(0x3d4)](()=>{_0x1d397a();})));}[_0x5241c7(0x1c5)](){const _0x2a7732=_0x5241c7;var _0x47b88d,_0x34a85b;if(this[_0x2a7732(0x276)]=!0x0,((_0x47b88d=this[_0x2a7732(0x308)][_0x2a7732(0x169)]())==null?void 0x0:_0x47b88d[_0x2a7732(0x2d1)]())!==this['unitID'])return;const _0xaa2717=(_0x34a85b=this[_0x2a7732(0x3c8)]['get'](g[_0x2a7732(0x1b3)])['getCurrentSelections']())==null?void 0x0:_0x34a85b[0x0],_0x1d716b=this[_0x2a7732(0x308)]['getCurrentUnitForType'](a[_0x2a7732(0x215)][_0x2a7732(0x3c5)])[_0x2a7732(0x289)]();_0xaa2717&&_0x1d716b&&this[_0x2a7732(0x241)](_0x1d716b[_0x2a7732(0x195)](),_0xaa2717);}['_toggleOffline'](){this['_online']=!0x1;}};Se=it([A(0x2,a[_0x5241c7(0x190)](a[_0x5241c7(0x197)])),A(0x3,a[_0x5241c7(0x190)](me)),A(0x4,a[_0x5241c7(0x190)](u[_0x5241c7(0x259)])),A(0x5,a['IUniverInstanceService']),A(0x6,a[_0x5241c7(0x387)]),A(0x7,a['Inject'](g['RefRangeService']))],Se);var at=Object[_0x5241c7(0x334)],ct=(_0x4f857d,_0x45fd6b,_0x26161b,_0x14b072)=>{const _0x23fc1d=_0x5241c7;for(var _0x14fdf4=_0x14b072>0x1?void 0x0:_0x14b072?at(_0x45fd6b,_0x26161b):_0x45fd6b,_0x56e1b6=_0x4f857d[_0x23fc1d(0x3bd)]-0x1,_0x74155f;_0x56e1b6>=0x0;_0x56e1b6--)(_0x74155f=_0x4f857d[_0x56e1b6])&&(_0x14fdf4=_0x74155f(_0x14fdf4)||_0x14fdf4);return _0x14fdf4;},ie=(_0x1f615d,_0x37728c)=>(_0x1c7561,_0x1026c0)=>_0x37728c(_0x1c7561,_0x1026c0,_0x1f615d);let x=class extends a[_0x5241c7(0x1dd)]{constructor(_0xc2c55b,_0x2311cd,_0x3d15c2){const _0x416859=_0x5241c7;super(),h(this,_0x416859(0x31c),new Map()),h(this,'_entityInit$',new d[(_0x416859(0x377))]()),(this[_0x416859(0x308)]=_0xc2c55b,this['_injector']=_0x2311cd,this[_0x416859(0x31b)]=_0x3d15c2,this[_0x416859(0x369)]());}[_0x5241c7(0x347)](){const _0xf57772=_0x5241c7;super[_0xf57772(0x347)](),this['_entityInit$'][_0xf57772(0x375)](),this[_0xf57772(0x31c)]['forEach'](_0x39cc52=>_0x39cc52[_0xf57772(0x347)]());}[_0x5241c7(0x1fc)](_0x568a92){const _0x562384=_0x5241c7;return this[_0x562384(0x31c)][_0x562384(0x310)](_0x568a92)?this[_0x562384(0x31c)][_0x562384(0x187)](_0x568a92)[_0x562384(0x179)]:this['_entityInit$'][_0x562384(0x353)](d['filter'](_0x27aa8f=>_0x27aa8f['unitID']===_0x568a92),d[_0x562384(0x3d0)](_0x2d14a5=>_0x2d14a5[_0x562384(0x179)]));}[_0x5241c7(0x369)](){const _0x260857=_0x5241c7;this['_univerInstanceService']['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x260857(0x3c5)])['pipe'](d[_0x260857(0x214)](this[_0x260857(0x352)]))[_0x260857(0x3d4)](async _0xd943ad=>{const _0x37d181=_0x260857,_0x4a1267=_0xd943ad['getUnitId'](),_0x35869a=await this[_0x37d181(0x1a1)](_0x4a1267);this[_0x37d181(0x266)][_0x37d181(0x24c)](_0x35869a),this[_0x37d181(0x31c)][_0x37d181(0x314)](_0x4a1267,_0x35869a);}),this[_0x260857(0x308)][_0x260857(0x367)](a[_0x260857(0x215)][_0x260857(0x2a5)])[_0x260857(0x353)](d['takeUntil'](this[_0x260857(0x352)]))[_0x260857(0x353)](d[_0x260857(0x269)](_0x44609a=>!_0x44609a[_0x260857(0x2d1)]()[_0x260857(0x1ef)]('__')))[_0x260857(0x3d4)](async _0x78783d=>{const _0xa31ee4=_0x260857,_0x444b26=_0x78783d['getUnitId'](),_0x30ed7a=await this[_0xa31ee4(0x2e9)](_0x444b26);this[_0xa31ee4(0x266)][_0xa31ee4(0x24c)](_0x30ed7a),this[_0xa31ee4(0x31c)]['set'](_0x444b26,_0x30ed7a);}),d[_0x260857(0x2cb)](this[_0x260857(0x308)]['getTypeOfUnitDisposed$'](a[_0x260857(0x215)][_0x260857(0x2a5)]),this[_0x260857(0x308)][_0x260857(0x176)](a[_0x260857(0x215)][_0x260857(0x3c5)]))['pipe'](d[_0x260857(0x214)](this[_0x260857(0x352)]))['subscribe'](_0x5cceb6=>{const _0x329b71=_0x260857,_0x2af457=_0x5cceb6[_0x329b71(0x2d1)](),_0x5a6fb6=this[_0x329b71(0x31c)][_0x329b71(0x187)](_0x2af457);_0x5a6fb6&&(_0x5a6fb6['dispose'](),this['_entities'][_0x329b71(0x364)](_0x2af457));});}async['_startSheetCollabCursor'](_0x17f7d6){const _0x28317e=_0x5241c7,_0x131344=await this[_0x28317e(0x31b)]['requireSession'](_0x17f7d6),_0x5a39dc=this['_injector']['createInstance'](Se,_0x17f7d6,_0x131344);return _0x5a39dc[_0x28317e(0x2b9)](),_0x5a39dc;}async[_0x5241c7(0x2e9)](_0x31191c){const _0x4fd488=_0x5241c7,_0x586c73=await this[_0x4fd488(0x31b)]['requireSession'](_0x31191c),_0x4d935f=this[_0x4fd488(0x3c8)][_0x4fd488(0x1fe)](fe,_0x31191c,_0x586c73);return _0x4d935f[_0x4fd488(0x2b9)](),_0x4d935f;}};x=ct([ie(0x0,a[_0x5241c7(0x356)]),ie(0x1,a[_0x5241c7(0x190)](a['Injector'])),ie(0x2,a[_0x5241c7(0x190)](u[_0x5241c7(0x33c)]))],x);const q=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x5256e4,_0x398817){const _0xdfe49c=_0x5241c7;let {radius:_0x588831,width:_0x1be016,height:_0x2f5ec9}=_0x398817;_0x588831=_0x588831!=null?_0x588831:0x0,_0x1be016=_0x1be016!=null?_0x1be016:0x1e,_0x2f5ec9=_0x2f5ec9!=null?_0x2f5ec9:0x1e;let _0x2daa52=0x0,_0x648ae4=0x0,_0x31d5fd=0x0;_0x2daa52=_0x648ae4=_0x31d5fd=Math[_0xdfe49c(0x2f5)](_0x588831,_0x1be016/0x2,_0x2f5ec9/0x2),_0x5256e4[_0xdfe49c(0x260)](),_0x5256e4[_0xdfe49c(0x32b)](_0x2daa52,0x0),_0x5256e4[_0xdfe49c(0x299)](_0x1be016-_0x648ae4,0x0),_0x5256e4[_0xdfe49c(0x343)](_0x1be016-_0x648ae4,_0x648ae4,_0x648ae4,Math['PI']*0x3/0x2,0x0,!0x1),_0x5256e4['lineTo'](_0x1be016,_0x2f5ec9-_0x31d5fd),_0x5256e4['arc'](_0x1be016-_0x31d5fd,_0x2f5ec9-_0x31d5fd,_0x31d5fd,0x0,Math['PI']/0x2,!0x1),_0x5256e4[_0xdfe49c(0x299)](0x0,_0x2f5ec9),_0x5256e4[_0xdfe49c(0x299)](0x0,_0x2daa52),_0x5256e4[_0xdfe49c(0x343)](_0x2daa52,_0x2daa52,_0x2daa52,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5256e4[_0xdfe49c(0x24f)](),_0x398817[_0xdfe49c(0x29c)]&&(_0x5256e4['save'](),_0x5256e4[_0xdfe49c(0x332)]=_0x398817[_0xdfe49c(0x29c)],_0x398817[_0xdfe49c(0x2f6)]===_0xdfe49c(0x1bd)?_0x5256e4['fill'](_0xdfe49c(0x1bd)):_0x5256e4[_0xdfe49c(0x29c)](),_0x5256e4[_0xdfe49c(0x296)]());}class ee extends p[_0x5241c7(0x2a7)]{constructor(_0x33cab4,_0xfa98f3){const _0x1a2ce5=_0x5241c7;super(_0x33cab4,_0xfa98f3),h(this,'color'),h(this,_0x1a2ce5(0x210)),(this[_0x1a2ce5(0x1fa)]=_0xfa98f3==null?void 0x0:_0xfa98f3[_0x1a2ce5(0x1fa)],this[_0x1a2ce5(0x210)]=_0xfa98f3==null?void 0x0:_0xfa98f3[_0x1a2ce5(0x210)]);}static[_0x5241c7(0x1e0)](_0x235911,_0xfe9b4){const _0x5eaa30=_0x5241c7,{text:_0x4fe9e1,color:_0xa8d580}=_0xfe9b4;_0x235911[_0x5eaa30(0x27c)](),_0x235911['font']=_0x5eaa30(0x1b6);const _0x20a7d0=_0x235911[_0x5eaa30(0x37e)](_0x4fe9e1)[_0x5eaa30(0x390)],_0x432562=Math[_0x5eaa30(0x2f5)](_0x20a7d0+0x2*ne,Re);_t(_0x235911,{'height':q,'radius':0x4,'width':_0x432562,'fill':_0xa8d580}),_0x235911[_0x5eaa30(0x332)]=_0x5eaa30(0x1a5);const _0x1041e9=ne,_0x2f7176=q-lt,_0x5364b9=Re-0x2*ne;if(_0x20a7d0>_0x5364b9){let _0x1480f4='',_0x2b2cc8=0x0;for(const _0x1dfc5c of _0x4fe9e1){const _0x4cab72=_0x235911[_0x5eaa30(0x37e)](_0x1dfc5c)['width'];if(_0x2b2cc8+_0x4cab72<=_0x5364b9-_0x235911['measureText'](_0x5eaa30(0x216))['width'])_0x1480f4+=_0x1dfc5c,_0x2b2cc8+=_0x4cab72;else{_0x1480f4+=_0x5eaa30(0x216);break;}}_0x235911['fillText'](_0x1480f4,_0x1041e9,_0x2f7176);}else _0x235911[_0x5eaa30(0x35a)](_0x4fe9e1,_0x1041e9,_0x2f7176);_0x235911[_0x5eaa30(0x296)]();}[_0x5241c7(0x1e2)](_0x12ac37){const _0x1e4d6c=_0x5241c7;ee[_0x1e4d6c(0x1e0)](_0x12ac37,this);}}const re='collab-text-anchor-',ht=_0x5241c7(0x272),ut=_0x5241c7(0x389),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x5241c7(0x25f);class De{constructor(_0x54f88b,_0x294e2e,_0x4fb9e6,_0x543205){const _0x525de6=_0x5241c7;h(this,_0x525de6(0x30f),[]),h(this,_0x525de6(0x273),null),h(this,'_textBubble',null),h(this,_0x525de6(0x25c),null),h(this,_0x525de6(0x2af),null),h(this,_0x525de6(0x292),null),(this[_0x525de6(0x240)]=_0x54f88b,this['_scene']=_0x294e2e,this[_0x525de6(0x233)]=_0x4fb9e6,this['_document']=_0x543205,this[_0x525de6(0x275)]());}set[_0x5241c7(0x26a)](_0xd5faca){const _0x2cd114=_0x5241c7;_0xd5faca?(this[_0x2cd114(0x25c)]&&this['_anchorDot'][_0x2cd114(0x222)](),this[_0x2cd114(0x3a7)]&&this[_0x2cd114(0x3a7)][_0x2cd114(0x262)]()):(this['_anchorDot']&&this['_anchorDot'][_0x2cd114(0x262)](),this[_0x2cd114(0x3a7)]&&this[_0x2cd114(0x3a7)][_0x2cd114(0x222)]());}[_0x5241c7(0x347)](){const _0x4efc28=_0x5241c7;for(const _0x2c6538 of this[_0x4efc28(0x30f)])_0x2c6538['dispose']();this[_0x4efc28(0x3a7)]&&this['_textBubble']['dispose'](),this[_0x4efc28(0x25c)]&&this[_0x4efc28(0x25c)][_0x4efc28(0x347)](),this['_anchor']&&this[_0x4efc28(0x273)][_0x4efc28(0x347)](),this[_0x4efc28(0x292)]&&this[_0x4efc28(0x292)]();}[_0x5241c7(0x275)](){const _0x15f133=_0x5241c7;var _0x5bc7cb;const {_docSkeleton:_0x999db0,_document:_0x4c5ae5}=this,{color:_0x54093c,name:_0x467eaf,ranges:_0x36c196}=this['_cursor'],_0x1c5aa7=_0x4c5ae5[_0x15f133(0x29b)](),{docsLeft:_0x27894b,docsTop:_0x39c9ae}=_0x1c5aa7,_0x5947d6=new b[(_0x15f133(0x32d))](_0x1c5aa7,_0x999db0);for(const {startOffset:_0x489fb0,endOffset:_0xb00d38,rangeType:_0x255691,segmentId:_0xe09820,segmentPage:_0x19c6cd,collapsed:_0xa24607,isActive:_0x595992}of _0x36c196){const _0x4b9c3a=_0x999db0[_0x15f133(0x236)](_0x489fb0,!0x0,_0xe09820,_0x19c6cd);let _0x50a9c0=_0x999db0[_0x15f133(0x236)](_0xb00d38,!0x0,_0xe09820,_0x19c6cd);if(_0x50a9c0==null&&(_0x50a9c0=_0x999db0[_0x15f133(0x236)](_0xb00d38-0x1,!0x1,_0xe09820,_0x19c6cd)),_0x595992){const {contentBoxPointGroup:_0x1379d9}=_0x5947d6[_0x15f133(0x26b)](_0x50a9c0,_0x50a9c0);if(_0x1379d9['length']===0x0)continue;this[_0x15f133(0x3db)](_0x54093c,_0x1379d9,_0x27894b,_0x39c9ae,_0x467eaf),this[_0x15f133(0x292)]=this[_0x15f133(0x17a)]();}if(_0x4b9c3a&&_0x50a9c0){if(_0x255691===a[_0x15f133(0x29f)][_0x15f133(0x1b0)]){const _0xb5c21=new b['NodePositionConvertToRectRange'](_0x1c5aa7,_0x999db0),{pointGroup:_0x56275b}=(_0x5bc7cb=_0xb5c21[_0x15f133(0x26b)](_0x4b9c3a,_0x50a9c0))!=null?_0x5bc7cb:{};if(_0x56275b==null||_0x56275b['length']===0x0)continue;this[_0x15f133(0x33e)](_0x54093c,_0x56275b,_0x27894b,_0x39c9ae);}else{if(!_0xa24607){const {borderBoxPointGroup:_0x496c7a}=_0x5947d6[_0x15f133(0x26b)](_0x4b9c3a,_0x50a9c0);if(_0x496c7a[_0x15f133(0x3bd)]===0x0)continue;this[_0x15f133(0x209)](_0x54093c,_0x496c7a,_0x27894b,_0x39c9ae);}}}}}[_0x5241c7(0x3db)](_0x56a496,_0x24372f,_0x50fac5,_0x48da22,_0x53288e){const _0x12fe35=_0x5241c7,_0x257647=this[_0x12fe35(0x351)](_0x24372f),{left:_0xa24c3,top:_0x40e412,height:_0x12228d}=_0x257647,_0x26f32d=this[_0x12fe35(0x3a0)](),_0x1c3851=ft/_0x26f32d,_0x4d26bb=new p['Rect'](re+a[_0x12fe35(0x29e)][_0x12fe35(0x34a)](k),{'left':_0xa24c3+_0x50fac5-_0x1c3851,'top':_0x40e412+_0x48da22,'height':_0x12228d,'width':dt,'fill':_0x56a496||p[_0x12fe35(0x247)](a['COLORS']['black'],0x0),'strokeWidth':_0x1c3851,'stroke':St,'evented':!0x0});this[_0x12fe35(0x273)]=_0x4d26bb,this[_0x12fe35(0x2b8)][_0x12fe35(0x205)](_0x4d26bb,b[_0x12fe35(0x219)]);const _0x5010d0=new p[(_0x12fe35(0x256))](re+a[_0x12fe35(0x29e)][_0x12fe35(0x34a)](k),{'left':_0xa24c3+_0x50fac5-_0x1c3851,'top':_0x40e412+_0x48da22-oe/0x2,'height':oe,'width':oe,'fill':_0x56a496||p[_0x12fe35(0x247)](a[_0x12fe35(0x22b)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x56a496||p[_0x12fe35(0x247)](a[_0x12fe35(0x22b)][_0x12fe35(0x37c)],0x0),'evented':!0x1});this[_0x12fe35(0x25c)]=_0x5010d0,this[_0x12fe35(0x2b8)][_0x12fe35(0x205)](_0x5010d0,b[_0x12fe35(0x219)]);const _0x4d1e9f=new ee(re+a['Tools']['generateRandomId'](k),{'left':_0xa24c3+_0x50fac5-_0x1c3851,'top':_0x40e412+_0x48da22-q,'text':_0x53288e,'color':_0x56a496});this[_0x12fe35(0x3a7)]=_0x4d1e9f,this[_0x12fe35(0x2b8)]['addObject'](_0x4d1e9f,b[_0x12fe35(0x219)]),this[_0x12fe35(0x26a)]=!0x1;}[_0x5241c7(0x17a)](){const _0x15e822=_0x5241c7,_0x3b5d9f=this[_0x15e822(0x273)][_0x15e822(0x1d4)][_0x15e822(0x2f0)](()=>{const _0x44d5d7=_0x15e822;this[_0x44d5d7(0x26a)]=!0x0;}),_0x2feeb4=this['_anchor'][_0x15e822(0x3d2)][_0x15e822(0x2f0)](()=>{const _0x583337=_0x15e822;this['_hideTimer']&&clearTimeout(this[_0x583337(0x2af)]),this[_0x583337(0x2af)]=setTimeout(()=>{const _0x5b4337=_0x583337;this[_0x5b4337(0x26a)]=!0x1;},0x7d0);});return()=>{const _0x442b45=_0x15e822;_0x3b5d9f[_0x442b45(0x306)](),_0x2feeb4[_0x442b45(0x306)]();};}[_0x5241c7(0x209)](_0x17f638,_0x54f679,_0x45d84a,_0x59daa7){const _0x45e525=_0x5241c7,_0x187a90=new a['ColorKit'](_0x17f638)['setAlpha'](0.2)[_0x45e525(0x3e0)](),_0x1016e4=new p['RegularPolygon'](ht+a['Tools'][_0x45e525(0x34a)](k),{'pointsGroup':_0x54f679,'fill':_0x187a90||p[_0x45e525(0x247)](a[_0x45e525(0x22b)][_0x45e525(0x37c)],0.2),'left':_0x45d84a,'top':_0x59daa7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x45e525(0x30f)][_0x45e525(0x234)](_0x1016e4),this[_0x45e525(0x2b8)]['addObject'](_0x1016e4,b[_0x45e525(0x219)]);}[_0x5241c7(0x33e)](_0x5b59cf,_0x429072,_0x1916dc,_0x597aff){const _0x436d82=_0x5241c7,_0x443b63=new a[(_0x436d82(0x3b0))](_0x5b59cf)['setAlpha'](0.2)[_0x436d82(0x3e0)](),_0x5e631b=new p['RegularPolygon'](ut+a[_0x436d82(0x29e)][_0x436d82(0x34a)](k),{'pointsGroup':_0x429072,'fill':_0x443b63||p[_0x436d82(0x247)](a[_0x436d82(0x22b)][_0x436d82(0x37c)],0.2),'left':_0x1916dc,'top':_0x597aff,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x436d82(0x234)](_0x5e631b),this[_0x436d82(0x2b8)][_0x436d82(0x205)](_0x5e631b,b['TEXT_RANGE_LAYER_INDEX']);}[_0x5241c7(0x351)](_0x2b3d92){const _0x2bb939=_0x2b3d92[0x0],_0x26d101=_0x2bb939[0x0],_0x1dea98=_0x2bb939[0x2],{x:_0x33f4a1,y:_0x58a287}=_0x26d101,{x:_0x3eec8a,y:_0x36e259}=_0x1dea98;return{'left':_0x33f4a1,'top':_0x58a287,'width':_0x3eec8a-_0x33f4a1,'height':_0x36e259-_0x58a287};}[_0x5241c7(0x3a0)](){const _0x4e1a74=_0x5241c7,{scaleX:_0xbf2d3e,scaleY:_0x27aae7}=this[_0x4e1a74(0x2b8)][_0x4e1a74(0x2e7)]();return Math[_0x4e1a74(0x26f)](_0xbf2d3e,_0x27aae7);}}var It=Object[_0x5241c7(0x334)],vt=(_0x429edc,_0x14d890,_0x4f5b37,_0x5b34f4)=>{const _0x2376a6=_0x5241c7;for(var _0x5dec4a=_0x5b34f4>0x1?void 0x0:_0x5b34f4?It(_0x14d890,_0x4f5b37):_0x14d890,_0x3163ea=_0x429edc[_0x2376a6(0x3bd)]-0x1,_0x13518d;_0x3163ea>=0x0;_0x3163ea--)(_0x13518d=_0x429edc[_0x3163ea])&&(_0x5dec4a=_0x13518d(_0x5dec4a)||_0x5dec4a);return _0x5dec4a;},Y=(_0x465281,_0x2d1040)=>(_0x3c9e20,_0x329f81)=>_0x2d1040(_0x3c9e20,_0x329f81,_0x465281);let Ie=class extends a[_0x5241c7(0x1dd)]{constructor(_0x2f0a98,_0x974ce0,_0x1d84ca,_0x125dfe,_0x26c44e){const _0x336a74=_0x5241c7;super(),h(this,_0x336a74(0x1f4),[]),h(this,_0x336a74(0x207),[]),(this[_0x336a74(0x16e)]=_0x2f0a98,this[_0x336a74(0x385)]=_0x974ce0,this[_0x336a74(0x1a6)]=_0x1d84ca,this['_commandService']=_0x125dfe,this[_0x336a74(0x3d8)]=_0x26c44e,this[_0x336a74(0x369)]());}[_0x5241c7(0x369)](){const _0x28a0ff=_0x5241c7,_0x23404a=this['_context'][_0x28a0ff(0x2b5)],_0x5ee210=this['_docSkeletonManagerService'];this[_0x28a0ff(0x1de)](d[_0x28a0ff(0x2df)]([this[_0x28a0ff(0x1a6)]['getCollabCursors$'](_0x23404a),this[_0x28a0ff(0x3d8)][_0x28a0ff(0x1c1)]])['pipe']($[_0x28a0ff(0x39c)](([_0x3dad24,_0x554b42])=>({'skeleton':_0x5ee210[_0x28a0ff(0x170)](),'cursors':[..._0x3dad24[_0x28a0ff(0x3dd)]()][_0x28a0ff(0x2a6)](_0x3377bc=>({..._0x3377bc,'color':_0x554b42[_0x3377bc[_0x28a0ff(0x1fa)]]}))})))['subscribe'](_0x37b97a=>{if(this['_removeCollabCursors'](),_0x37b97a){const {skeleton:_0x4c91a5,cursors:_0x39380e}=_0x37b97a;this['_updateCollabCursors'](_0x4c91a5,_0x39380e);}})),this[_0x28a0ff(0x3c3)](),this['_initCommandExecutedListener']();}[_0x5241c7(0x303)](_0x416213,_0x1bcd21){const _0x39d7af=_0x5241c7,{scene:_0xfc0d14,mainComponent:_0xfc5c13}=this['_context'],_0xfa0b6d=_0x1bcd21[_0x39d7af(0x39c)](_0x33721c=>new De(_0x33721c,_0xfc0d14,_0x416213,_0xfc5c13));this[_0x39d7af(0x1f4)]=_0xfa0b6d,this[_0x39d7af(0x207)]=_0x1bcd21;}[_0x5241c7(0x249)](){const _0x27a17b=_0x5241c7;this[_0x27a17b(0x19e)]();const {scene:_0x38f561,mainComponent:_0x3923cc}=this[_0x27a17b(0x16e)],_0x535207=this[_0x27a17b(0x385)]['getSkeleton'](),_0x3d39ff=this['_cursors'][_0x27a17b(0x39c)](_0x5e94d2=>new De(_0x5e94d2,_0x38f561,_0x535207,_0x3923cc));this[_0x27a17b(0x1f4)]=_0x3d39ff;}[_0x5241c7(0x19e)](){const _0x4261cb=_0x5241c7;this[_0x4261cb(0x1f4)][_0x4261cb(0x37a)](_0x301f8b=>_0x301f8b[_0x4261cb(0x347)]()),this[_0x4261cb(0x1f4)]=[];}[_0x5241c7(0x324)](){const _0x3f733e=_0x5241c7,_0x4bd25f=[b[_0x3f733e(0x257)]['id']];this['disposeWithMe'](this[_0x3f733e(0x1fb)][_0x3f733e(0x376)](_0x269604=>{const _0x17e606=_0x3f733e;_0x4bd25f['includes'](_0x269604['id'])&&_0x269604[_0x17e606(0x1e3)][_0x17e606(0x2b5)]===this[_0x17e606(0x16e)][_0x17e606(0x2b5)]&&this[_0x17e606(0x249)]();}));}[_0x5241c7(0x3c3)](){const _0x313b44=_0x5241c7;this['disposeWithMe'](a[_0x313b44(0x3cf)](this[_0x313b44(0x16e)][_0x313b44(0x2b4)][_0x313b44(0x281)])[_0x313b44(0x353)]($[_0x313b44(0x269)](_0x4a9d44=>_0x4a9d44['type']===p[_0x313b44(0x2d8)][_0x313b44(0x279)]),$[_0x313b44(0x252)](0x10))['subscribe'](()=>{const _0x3eb86e=_0x313b44;this[_0x3eb86e(0x249)]();}));}};Ie=vt([Y(0x1,a[_0x5241c7(0x190)](W['DocSkeletonManagerService'])),Y(0x2,a['Inject'](x)),Y(0x3,a['ICommandService']),Y(0x4,a[_0x5241c7(0x190)](a[_0x5241c7(0x2dc)]))],Ie);const gt=0x1,mt=1.5;class we extends p[_0x5241c7(0x2a7)]{constructor(_0x276815,_0x261eef){const _0x54cdb2=_0x5241c7;super(_0x276815,_0x261eef),h(this,_0x54cdb2(0x2a8)),h(this,_0x54cdb2(0x19a),!0x1),h(this,_0x54cdb2(0x358)),h(this,_0x54cdb2(0x1e4),''),h(this,'_labelPosition',_0x54cdb2(0x1cc)),h(this,_0x54cdb2(0x2e4)),(_0x261eef&&this[_0x54cdb2(0x1b5)](_0x261eef),this[_0x54cdb2(0x1d4)][_0x54cdb2(0x2f0)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x54cdb2(0x3d2)]['subscribeEvent'](()=>this[_0x54cdb2(0x1b5)]({'hovered':!0x1})));}[_0x5241c7(0x1b5)](_0x25cf9d){const _0x7c441a=_0x5241c7;var _0x5425eb,_0x19e011,_0x570f00,_0x135c2a,_0x31a931,_0x5c9c4d;this[_0x7c441a(0x2a8)]=(_0x5425eb=_0x25cf9d[_0x7c441a(0x1fa)])!=null?_0x5425eb:this[_0x7c441a(0x2a8)],this[_0x7c441a(0x19a)]=(_0x19e011=_0x25cf9d[_0x7c441a(0x32e)])!=null?_0x19e011:this[_0x7c441a(0x19a)],this[_0x7c441a(0x358)]=(_0x570f00=_0x25cf9d[_0x7c441a(0x3b8)])!=null?_0x570f00:this['_range'],this['_name']=(_0x135c2a=_0x25cf9d['name'])!=null?_0x135c2a:this[_0x7c441a(0x1e4)],this[_0x7c441a(0x24a)]=(_0x31a931=_0x25cf9d['labelPosition'])!=null?_0x31a931:this['_labelPosition'],this[_0x7c441a(0x2e4)]=(_0x5c9c4d=_0x25cf9d['backgroundColor'])!=null?_0x5c9c4d:this[_0x7c441a(0x2e4)],this[_0x7c441a(0x265)]({'width':_0x25cf9d[_0x7c441a(0x390)],'height':_0x25cf9d[_0x7c441a(0x1c7)]});}['onMouseMove'](_0x30e675){const _0x4a9848=_0x5241c7,{row:_0xf525f5,column:_0x28d884}=_0x30e675;if(_0xf525f5>=this[_0x4a9848(0x358)][_0x4a9848(0x17c)]&&_0xf525f5<=this['_range'][_0x4a9848(0x17f)]&&_0x28d884>=this['_range'][_0x4a9848(0x199)]&&_0x28d884<=this[_0x4a9848(0x358)][_0x4a9848(0x228)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x4a9848(0x1b5)]({'hovered':!0x1});}[_0x5241c7(0x3a6)](_0x488d27){return!0x1;}[_0x5241c7(0x1e2)](_0x16a049){const _0x29daff=_0x5241c7;p[_0x29daff(0x256)][_0x29daff(0x1e0)](_0x16a049,{'width':this['width'],'height':this[_0x29daff(0x1c7)],'strokeWidth':mt,'stroke':this[_0x29daff(0x2a8)],'evented':!0x1,'fill':this[_0x29daff(0x2e4)]}),this[_0x29daff(0x19a)]&&(_0x16a049['save'](),_0x16a049[_0x29daff(0x1d0)](0x1,0x0,0x0,0x1,this[_0x29daff(0x390)],this[_0x29daff(0x24a)]===_0x29daff(0x3a3)?0x0:-0x14),ee['drawWith'](_0x16a049,{'text':this[_0x29daff(0x1e4)],'color':this[_0x29daff(0x2a8)]}),_0x16a049[_0x29daff(0x296)]());}}var Ct=Object[_0x5241c7(0x334)],pt=(_0x537798,_0x314613,_0x49ab26,_0x38e3b1)=>{const _0x5c3949=_0x5241c7;for(var _0x796a2f=_0x38e3b1>0x1?void 0x0:_0x38e3b1?Ct(_0x314613,_0x49ab26):_0x314613,_0x1f8b28=_0x537798[_0x5c3949(0x3bd)]-0x1,_0xf22448;_0x1f8b28>=0x0;_0x1f8b28--)(_0xf22448=_0x537798[_0x1f8b28])&&(_0x796a2f=_0xf22448(_0x796a2f)||_0x796a2f);return _0x796a2f;},ae=(_0x520ea2,_0x89a060)=>(_0x2ed82f,_0x58c652)=>_0x89a060(_0x2ed82f,_0x58c652,_0x520ea2);const bt=0x1389;let ve=class extends a[_0x5241c7(0x1dd)]{constructor(_0x163810,_0x6deb77,_0x486812,_0x833c87){const _0x41bcdd=_0x5241c7;super(),h(this,_0x41bcdd(0x207),new Set()),h(this,_0x41bcdd(0x345),null),(this[_0x41bcdd(0x16e)]=_0x163810,this[_0x41bcdd(0x23c)]=_0x6deb77,this[_0x41bcdd(0x1a6)]=_0x486812,this[_0x41bcdd(0x3d8)]=_0x833c87,this[_0x41bcdd(0x369)]());}[_0x5241c7(0x369)](){const _0x42fd9b=_0x5241c7;this[_0x42fd9b(0x23c)]['currentSkeleton$'][_0x42fd9b(0x353)]($[_0x42fd9b(0x214)](this['dispose$']),$[_0x42fd9b(0x3d0)](_0x2f80a7=>{const _0x5afcd4=_0x42fd9b;if(_0x2f80a7){const _0x20c587=_0x2f80a7['sheetId'];return d['combineLatest'](this[_0x5afcd4(0x1a6)][_0x5afcd4(0x1fc)](this[_0x5afcd4(0x16e)][_0x5afcd4(0x2b5)]),this[_0x5afcd4(0x3d8)][_0x5afcd4(0x1c1)])[_0x5afcd4(0x353)]($[_0x5afcd4(0x39c)](([_0x4a25b2,_0xfc6ec5])=>{const _0x1959b8=_0x5afcd4,_0x402109=new Map();return _0x4a25b2[_0x1959b8(0x37a)]((_0x425c63,_0x42ce4e)=>{const _0x4399de=_0x1959b8;if(_0x425c63['sheetID']===_0x20c587){const _0x2cb2a1={..._0x425c63};_0x2cb2a1[_0x4399de(0x1fa)]=_0xfc6ec5[_0x425c63[_0x4399de(0x1fa)]],_0x402109[_0x4399de(0x314)](_0x42ce4e,_0x2cb2a1);}}),{'skeleton':_0x2f80a7,'cursors':_0x402109};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x31b7de,cursors:_0x10bf6d})=>{const _0x2128d9=_0x42fd9b;this[_0x2128d9(0x19e)](),_0x31b7de&&this[_0x2128d9(0x303)](_0x31b7de,_0x10bf6d);}),this[_0x42fd9b(0x23c)][_0x42fd9b(0x178)][_0x42fd9b(0x3d4)](_0x4ce734=>{const _0x2b0a3d=_0x42fd9b;if(_0x4ce734==null)return;const {skeleton:_0x527220}=_0x4ce734,{scene:_0x3234e7}=this['_context'];_0x3234e7[_0x2b0a3d(0x340)][_0x2b0a3d(0x2f0)](a[_0x2b0a3d(0x302)](_0x59e47b=>{const _0x1801c8=_0x2b0a3d;var _0x2c857a,_0x572870;const {offsetX:_0x42a163,offsetY:_0xaec04}=_0x59e47b,{x:_0xf7eab6,y:_0x1a3dc8}=_0x3234e7[_0x1801c8(0x2d4)](p[_0x1801c8(0x1c6)][_0x1801c8(0x337)]([_0x42a163,_0xaec04])),{scaleX:_0x2df89c,scaleY:_0x353341}=_0x3234e7[_0x1801c8(0x2e7)](),_0x5aa980=_0x3234e7[_0x1801c8(0x391)](p['SHEET_VIEWPORT_KEY'][_0x1801c8(0x3cc)]),_0x27d445=_0x3234e7['getVpScrollXYInfoByPosToVp'](p[_0x1801c8(0x1c6)][_0x1801c8(0x337)]([_0xf7eab6,_0x1a3dc8]),_0x5aa980),_0x50bac3=_0x527220['getCellPositionByOffset'](_0x42a163,_0xaec04,_0x2df89c,_0x353341,_0x27d445);((_0x2c857a=this[_0x1801c8(0x345)])==null?void 0x0:_0x2c857a[_0x1801c8(0x1cb)])===_0x50bac3[_0x1801c8(0x1cb)]&&((_0x572870=this[_0x1801c8(0x345)])==null?void 0x0:_0x572870['row'])===_0x50bac3['row']||this[_0x1801c8(0x207)]['forEach'](_0x222e73=>{const _0x2a3f26=_0x1801c8;_0x222e73[_0x2a3f26(0x225)](_0x50bac3);});},0x64));});}[_0x5241c7(0x303)](_0x571c15,_0x169759){const _0x5ae323=_0x5241c7;var _0x20e18e;const _0x4241b2=(_0x20e18e=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x20e18e['skeleton'];if(!_0x4241b2)return;const _0xc8fef4=this['_getSheetObject']();if(!_0xc8fef4)return;this[_0x5ae323(0x207)]['forEach'](_0x194fb3=>{const _0x4fa275=_0x5ae323;_0x194fb3[_0x4fa275(0x1dc)]();});const {scene:_0x130687}=_0xc8fef4,_0x24e12d=Et(Array['from'](_0x169759[_0x5ae323(0x3dd)]()))[_0x5ae323(0x39c)](_0x306465=>{const _0x142a1c=_0x5ae323,{color:_0xd2297d,range:_0x287048,name:_0x49874a,selection:_0x5dbf04,sheetID:_0x14235d}=_0x306465,{startColumn:_0x14acb7,startRow:_0x316a01,endColumn:_0x179515,endRow:_0x2b99f1}=_0x287048,_0x3fab3d=X[_0x142a1c(0x319)](_0x316a01,_0x14acb7,_0x130687,_0x4241b2),_0x477df8=X[_0x142a1c(0x319)](_0x2b99f1,_0x179515,_0x130687,_0x4241b2),{columnHeaderHeightAndMarginTop:_0x52d329}=_0x4241b2,{startX:_0x5a55c9,startY:_0x562a5b}=_0x3fab3d,{endX:_0x54cf19,endY:_0x53f0e4}=_0x477df8,_0x12ea08=_0x54cf19-_0x5a55c9,_0xaf92d5=_0x53f0e4-_0x562a5b,_0x106893={'labelPosition':_0x562a5b-_0x52d329>=q?_0x142a1c(0x1cc):_0x142a1c(0x3a3),'sheetID':_0x14235d,'range':_0x287048,'color':_0xd2297d,'name':_0x49874a,'selection':_0x5dbf04,'left':_0x5a55c9,'top':_0x562a5b,'width':_0x12ea08,'height':_0xaf92d5,'evented':!0x1,'zIndex':bt};return new we(_0x49874a,_0x106893);});_0x130687['addObjects'](_0x24e12d,gt),this[_0x5ae323(0x207)]=new Set(_0x24e12d);}[_0x5241c7(0x19e)](){const _0x11843a=_0x5241c7;var _0x271010;(_0x271010=this[_0x11843a(0x207)])==null||_0x271010[_0x11843a(0x37a)](_0x38e802=>_0x38e802[_0x11843a(0x347)]());}['_getSheetObject'](){const _0x5a75df=_0x5241c7;return X[_0x5a75df(0x1f9)](this['_context'][_0x5a75df(0x2fe)],this[_0x5a75df(0x16e)]);}};ve=pt([ae(0x1,a['Inject'](X[_0x5241c7(0x3d5)])),ae(0x2,a[_0x5241c7(0x190)](x)),ae(0x3,a[_0x5241c7(0x190)](a['ThemeService']))],ve);function Et(_0x5c796c){const _0x39c49d=_0x5241c7,_0x5c0eb9=new Map();return _0x5c796c[_0x39c49d(0x37a)](_0x46c75f=>{const _0x160bf4=_0x39c49d;if(_0x5c0eb9[_0x160bf4(0x310)](_0x46c75f['selection'])){const _0x4e6525=_0x5c0eb9['get'](_0x46c75f[_0x160bf4(0x226)]);_0x4e6525[_0x160bf4(0x380)]+=',\x20'+_0x46c75f['name'];}else _0x5c0eb9[_0x160bf4(0x314)](_0x46c75f[_0x160bf4(0x226)],_0x46c75f);}),Array[_0x39c49d(0x25a)](_0x5c0eb9[_0x39c49d(0x3dd)]());}var E=function(){const _0x31662d=_0x5241c7;return E=Object[_0x31662d(0x2be)]||function(_0x2f452a){const _0xb9e5b3=_0x31662d;for(var _0x17e847,_0x2cc60e=0x1,_0x61f9ac=arguments['length'];_0x2cc60e<_0x61f9ac;_0x2cc60e++){_0x17e847=arguments[_0x2cc60e];for(var _0x3fa4a7 in _0x17e847)Object[_0xb9e5b3(0x399)]['hasOwnProperty'][_0xb9e5b3(0x2c4)](_0x17e847,_0x3fa4a7)&&(_0x2f452a[_0x3fa4a7]=_0x17e847[_0x3fa4a7]);}return _0x2f452a;},E['apply'](this,arguments);},Tt=function(_0x11342f,_0xcd1f5d){const _0x24b5fa=_0x5241c7;var _0x5ef8f1={};for(var _0x1e02df in _0x11342f)Object[_0x24b5fa(0x399)]['hasOwnProperty']['call'](_0x11342f,_0x1e02df)&&_0xcd1f5d['indexOf'](_0x1e02df)<0x0&&(_0x5ef8f1[_0x1e02df]=_0x11342f[_0x1e02df]);if(_0x11342f!=null&&typeof Object[_0x24b5fa(0x382)]=='function'){for(var _0x62d538=0x0,_0x1e02df=Object[_0x24b5fa(0x382)](_0x11342f);_0x62d538<_0x1e02df[_0x24b5fa(0x3bd)];_0x62d538++)_0xcd1f5d[_0x24b5fa(0x2da)](_0x1e02df[_0x62d538])<0x0&&Object[_0x24b5fa(0x399)][_0x24b5fa(0x326)][_0x24b5fa(0x2c4)](_0x11342f,_0x1e02df[_0x62d538])&&(_0x5ef8f1[_0x1e02df[_0x62d538]]=_0x11342f[_0x1e02df[_0x62d538]]);}return _0x5ef8f1;},pe=M['forwardRef'](function(_0xc5ad9e,_0x3aec25){const _0x1e0878=_0x5241c7;var _0x537a3c=_0xc5ad9e[_0x1e0878(0x2de)],_0x1ade30=_0xc5ad9e['id'],_0x349f10=_0xc5ad9e[_0x1e0878(0x242)],_0x1a77a8=_0xc5ad9e[_0x1e0878(0x2e2)],_0x460e09=Tt(_0xc5ad9e,['icon','id',_0x1e0878(0x242),_0x1e0878(0x2e2)]),_0x2e4e1f=_0x1e0878(0x258)[_0x1e0878(0x333)](_0x1ade30,'\x20')['concat'](_0x349f10||'')[_0x1e0878(0x2b0)](),_0x704cc6=M[_0x1e0878(0x22c)]('_'[_0x1e0878(0x333)](Dt()));return Ae(_0x537a3c,''[_0x1e0878(0x333)](_0x1ade30),{'defIds':_0x537a3c[_0x1e0878(0x1a0)],'idSuffix':_0x704cc6[_0x1e0878(0x394)]},E({'ref':_0x3aec25,'className':_0x2e4e1f},_0x460e09),_0x1a77a8);});function Ae(_0x19e4d4,_0x3f8965,_0x24abf7,_0x287379,_0x2d5437){const _0x1b6857=_0x5241c7;return M['createElement'](_0x19e4d4['tag'],E(E({'key':_0x3f8965},Ot(_0x19e4d4,_0x24abf7,_0x2d5437)),_0x287379),(Rt(_0x19e4d4,_0x24abf7)[_0x1b6857(0x27d)]||[])[_0x1b6857(0x39c)](function(_0x4a8895,_0x190f98){const _0x14a45=_0x1b6857;return Ae(_0x4a8895,''[_0x14a45(0x333)](_0x3f8965,'-')[_0x14a45(0x333)](_0x19e4d4[_0x14a45(0x321)],'-')[_0x14a45(0x333)](_0x190f98),_0x24abf7,void 0x0,_0x2d5437);}));}function Ot(_0x426155,_0x5ead92,_0x5c34ba){const _0x5ef683=_0x5241c7;var _0x39fad2=E({},_0x426155[_0x5ef683(0x27a)]);_0x5c34ba!=null&&_0x5c34ba[_0x5ef683(0x1ea)]&&_0x39fad2[_0x5ef683(0x29c)]===_0x5ef683(0x1ea)&&(_0x39fad2[_0x5ef683(0x29c)]=_0x5c34ba['colorChannel1']),_0x426155[_0x5ef683(0x321)]===_0x5ef683(0x1b2)&&_0x39fad2['id']&&(_0x39fad2['id']=_0x39fad2['id']+_0x5ead92[_0x5ef683(0x27b)]),Object[_0x5ef683(0x386)](_0x39fad2)[_0x5ef683(0x37a)](function(_0x16093b){const _0x5c9b52=_0x5ef683;var _0x18565a=_0x16093b[0x0],_0x467c6b=_0x16093b[0x1];_0x18565a===_0x5c9b52(0x1b2)&&typeof _0x467c6b==_0x5c9b52(0x3e3)&&(_0x39fad2[_0x18565a]=_0x467c6b['replace'](/url\(#(.*)\)/,_0x5c9b52(0x318)[_0x5c9b52(0x333)](_0x5ead92[_0x5c9b52(0x27b)],')')));});var _0x4e8633=_0x5ead92['defIds'];return!_0x4e8633||_0x4e8633[_0x5ef683(0x3bd)]===0x0||(_0x426155['tag']===_0x5ef683(0x294)&&_0x39fad2[_0x5ef683(0x323)]&&(_0x39fad2[_0x5ef683(0x323)]=_0x39fad2['xlink:href']+_0x5ead92[_0x5ef683(0x27b)]),Object['entries'](_0x39fad2)[_0x5ef683(0x37a)](function(_0x377283){const _0x3e647b=_0x5ef683;var _0x24661e=_0x377283[0x0],_0x468f80=_0x377283[0x1];typeof _0x468f80=='string'&&(_0x39fad2[_0x24661e]=_0x468f80[_0x3e647b(0x277)](/url\(#(.*)\)/,_0x3e647b(0x318)[_0x3e647b(0x333)](_0x5ead92[_0x3e647b(0x27b)],')')));})),_0x39fad2;}function Rt(_0x120911,_0x9aeb96){const _0x5a0a05=_0x5241c7;var _0x302633,_0x47def0=_0x9aeb96['defIds'];return!_0x47def0||_0x47def0[_0x5a0a05(0x3bd)]===0x0?_0x120911:_0x120911['tag']===_0x5a0a05(0x24b)&&(!((_0x302633=_0x120911[_0x5a0a05(0x27d)])===null||_0x302633===void 0x0)&&_0x302633['length'])?E(E({},_0x120911),{'children':_0x120911[_0x5a0a05(0x27d)]['map'](function(_0x3e0096){const _0x3477ec=_0x5a0a05;return typeof _0x3e0096[_0x3477ec(0x27a)]['id']==_0x3477ec(0x3e3)&&_0x47def0&&_0x47def0['indexOf'](_0x3e0096['attrs']['id'])>-0x1?E(E({},_0x3e0096),{'attrs':E(E({},_0x3e0096[_0x3477ec(0x27a)]),{'id':_0x3e0096[_0x3477ec(0x27a)]['id']+_0x9aeb96['idSuffix']})}):_0x3e0096;})}):_0x120911;}function Dt(){const _0x44ab76=_0x5241c7;return Math[_0x44ab76(0x18d)]()['toString'](0x24)[_0x44ab76(0x3e2)](0x2,0x8);}pe['displayName']='UniverIcon';var Ut={'tag':'svg','attrs':{'fill':_0x5241c7(0x2dd),'viewBox':_0x5241c7(0x1b1),'width':_0x5241c7(0x372),'height':_0x5241c7(0x372)},'children':[{'tag':'g','attrs':{'clipPath':_0x5241c7(0x282)},'children':[{'tag':_0x5241c7(0x350),'attrs':{'stroke':_0x5241c7(0x3d6),'d':_0x5241c7(0x317),'strokeLinecap':_0x5241c7(0x19b),'strokeLinejoin':_0x5241c7(0x19b),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x5241c7(0x2ca)},'children':[{'tag':_0x5241c7(0x350),'attrs':{'fill':'#fff','d':_0x5241c7(0x20b)}}]}]}],'defIds':['off-line-single_clip0_910_343']},ye=M[_0x5241c7(0x2d9)](function(_0x3c32b0,_0x34865c){const _0xf639f7=_0x5241c7;return M[_0xf639f7(0x362)](pe,Object['assign']({},_0x3c32b0,{'id':_0xf639f7(0x2ac),'ref':_0x34865c,'icon':Ut}));});ye['displayName']=_0x5241c7(0x1c3);var Nt={'tag':_0x5241c7(0x245),'attrs':{'fill':_0x5241c7(0x2dd),'viewBox':_0x5241c7(0x1fd),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x5241c7(0x350),'attrs':{'stroke':_0x5241c7(0x3d6),'d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':_0x5241c7(0x19b),'strokeLinejoin':_0x5241c7(0x19b),'strokeWidth':1.2}}]},{'tag':_0x5241c7(0x24b),'attrs':{},'children':[{'tag':_0x5241c7(0x2cd),'attrs':{'id':_0x5241c7(0x3aa)},'children':[{'tag':'path','attrs':{'fill':_0x5241c7(0x243),'d':_0x5241c7(0x20b),'transform':_0x5241c7(0x3ab)}}]}]}],'defIds':[_0x5241c7(0x3aa)]},$e=M[_0x5241c7(0x2d9)](function(_0x2fae79,_0x43aa1c){const _0x4e66aa=_0x5241c7;return M[_0x4e66aa(0x362)](pe,Object['assign']({},_0x2fae79,{'id':'on-line-single','ref':_0x43aa1c,'icon':Nt}));});$e[_0x5241c7(0x3e6)]=_0x5241c7(0x3e8);function Mt(_0x2069a0){const _0x3168a3=_0x5241c7;switch(_0x2069a0){case u[_0x3168a3(0x16f)][_0x3168a3(0x3e7)]:return'collabStatus.offline';case u[_0x3168a3(0x16f)][_0x3168a3(0x379)]:return _0x3168a3(0x2ad);case u[_0x3168a3(0x16f)][_0x3168a3(0x284)]:return _0x3168a3(0x3da);case u[_0x3168a3(0x16f)][_0x3168a3(0x2a4)]:return _0x3168a3(0x38b);case u[_0x3168a3(0x16f)][_0x3168a3(0x1eb)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return _0x3168a3(0x325);case u[_0x3168a3(0x16f)]['SYNCED']:case u[_0x3168a3(0x16f)]['PENDING']:return'collabStatus.synced';}}function xe(_0xf521de){const _0x5d5538=_0x5241c7,{status$:_0x1cba72}=_0xf521de,_0x4bede4=T[_0x5d5538(0x3ae)](_0x1cba72,u[_0x5d5538(0x16f)]['NOT_COLLAB']),_0xe71a37=T['useDependency'](a['LocaleService']),_0x390056=T[_0x5d5538(0x3e1)](u[_0x5d5538(0x33c)]),_0x3f24b1=_0x4bede4!==u['CollaborationStatus'][_0x5d5538(0x3e7)],_0x36bf80=_0xe71a37['t'](Mt(_0x4bede4)),_0x81f375=_0x3f24b1?P[_0x5d5538(0x230)]($e,{}):P['jsx'](ye,{}),_0x3ba148=M['useCallback'](()=>{_0x3f24b1||_0x390056['reconnect']();},[_0x3f24b1,_0x390056]);function _0x19a812(){const _0x42b634=_0x5d5538;return P['jsxs'](_0x42b634(0x2e3),{'className':_0x42b634(0x267),'onClick':_0x3ba148,'children':[P['jsx']('div',{'className':D['clsx'](_0x42b634(0x183),_0x3f24b1?_0x42b634(0x3df):'univer-text-red-500'),'children':_0x81f375}),P['jsx']('div',{'className':_0x42b634(0x2f8),'children':_0x36bf80})]});}return _0x3f24b1?_0x19a812():P[_0x5d5538(0x230)](D[_0x5d5538(0x246)],{'title':_0xe71a37['t'](_0x5d5538(0x3be)),'children':_0x19a812()});}var Lt=Object['getOwnPropertyDescriptor'],Pt=(_0x570797,_0x50d1a1,_0x578df1,_0x4dd715)=>{const _0x2509fa=_0x5241c7;for(var _0x2c0b18=_0x4dd715>0x1?void 0x0:_0x4dd715?Lt(_0x50d1a1,_0x578df1):_0x50d1a1,_0x2c5fe0=_0x570797[_0x2509fa(0x3bd)]-0x1,_0x2b20c2;_0x2c5fe0>=0x0;_0x2c5fe0--)(_0x2b20c2=_0x570797[_0x2c5fe0])&&(_0x2c0b18=_0x2b20c2(_0x2c0b18)||_0x2c0b18);return _0x2c0b18;},V=(_0x4e2896,_0x16e085)=>(_0x50edf1,_0x372257)=>_0x16e085(_0x50edf1,_0x372257,_0x4e2896);exports[_0x5241c7(0x39b)]=class extends a[_0x5241c7(0x2c9)]{constructor(_0x1186c1,_0x44a464,_0x5c7a92,_0x3ef7eb){const _0xbe1ee5=_0x5241c7;super(),h(this,_0xbe1ee5(0x290),new d[(_0xbe1ee5(0x366))](u[_0xbe1ee5(0x16f)][_0xbe1ee5(0x2a4)])),(this['_univerInstanceService']=_0x1186c1,this[_0xbe1ee5(0x3c8)]=_0x44a464,this[_0xbe1ee5(0x220)]=_0x5c7a92,this[_0xbe1ee5(0x2a2)]=_0x3ef7eb,this[_0xbe1ee5(0x203)](),this[_0xbe1ee5(0x21f)]());}['_initStatusListener'](){const _0xc61747=_0x5241c7;this[_0xc61747(0x1de)](this[_0xc61747(0x308)][_0xc61747(0x3b4)][_0xc61747(0x353)](d[_0xc61747(0x3d0)](()=>{const _0x3a790d=_0xc61747,_0x5b78c4=this[_0x3a790d(0x308)][_0x3a790d(0x169)]();return _0x5b78c4?this[_0x3a790d(0x220)][_0x3a790d(0x286)](_0x5b78c4['getUnitId']()):d['of'](null);}),d[_0xc61747(0x3d0)](_0x1a2c7e=>_0x1a2c7e?_0x1a2c7e[_0xc61747(0x29d)]:d['of'](u[_0xc61747(0x16f)][_0xc61747(0x2a4)])))[_0xc61747(0x3d4)](_0x85d35d=>{const _0x401209=_0xc61747;this['_status$'][_0x401209(0x24c)](_0x85d35d);}));}[_0x5241c7(0x203)](){const _0x5cf784=_0x5241c7;this['disposeWithMe'](this[_0x5cf784(0x2a2)]['registerComponent'](T[_0x5cf784(0x309)][_0x5cf784(0x341)],()=>T[_0x5cf784(0x16c)](wt({'status$':this[_0x5cf784(0x290)]['asObservable']()}),this[_0x5cf784(0x3c8)])));}},exports[_0x5241c7(0x39b)]=Pt([V(0x0,a[_0x5241c7(0x356)]),V(0x1,a[_0x5241c7(0x190)](a['Injector'])),V(0x2,a['Inject'](u[_0x5241c7(0x3ba)])),V(0x3,T[_0x5241c7(0x182)])],exports[_0x5241c7(0x39b)]);function wt(_0x4f83e0){const {status$:_0x334435}=_0x4f83e0;return function(){const _0x11b17e=_0x5ae1;return P[_0x11b17e(0x230)](xe,{'status$':_0x334435});};}var At=Object[_0x5241c7(0x334)],yt=(_0x51185a,_0x276d8a,_0x442a02,_0x306bad)=>{const _0x5a0d1e=_0x5241c7;for(var _0x2260b8=_0x306bad>0x1?void 0x0:_0x306bad?At(_0x276d8a,_0x442a02):_0x276d8a,_0x2b2745=_0x51185a[_0x5a0d1e(0x3bd)]-0x1,_0x4591dc;_0x2b2745>=0x0;_0x2b2745--)(_0x4591dc=_0x51185a[_0x2b2745])&&(_0x2260b8=_0x4591dc(_0x2260b8)||_0x2260b8);return _0x2260b8;},y=(_0x57183e,_0x5e0cb7)=>(_0x177004,_0x22f18d)=>_0x5e0cb7(_0x177004,_0x22f18d,_0x57183e);let K=class extends a[_0x5241c7(0x2c9)]{constructor(_0x28408f,_0x138fa3,_0x4f1e1a,_0x1d0f96,_0xbcf097,_0x12de15){const _0x1a2028=_0x5241c7;super(),this[_0x1a2028(0x32c)]=_0x28408f,this[_0x1a2028(0x19d)]=_0x138fa3,this[_0x1a2028(0x374)]=_0x4f1e1a,this[_0x1a2028(0x365)]=_0x1d0f96,this[_0x1a2028(0x171)]=_0xbcf097,this[_0x1a2028(0x21c)]=_0x12de15,this[_0x1a2028(0x2ef)](),this[_0x1a2028(0x1da)]();}[_0x5241c7(0x2ef)](){const _0x25ae57=_0x5241c7;this[_0x25ae57(0x1de)](this[_0x25ae57(0x32c)][_0x25ae57(0x2fc)](()=>{const _0x3b2c23=_0x25ae57;if(this[_0x3b2c23(0x19d)][_0x3b2c23(0x359)]['size'])return this[_0x3b2c23(0x21c)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x5241c7(0x1da)](){const _0x26ee01=_0x5241c7;this[_0x26ee01(0x1de)](this[_0x26ee01(0x374)][_0x26ee01(0x188)][_0x26ee01(0x3d4)](_0x557cb8=>{const _0x30fe68=_0x26ee01;_0x557cb8['id']===u[_0x30fe68(0x396)][_0x30fe68(0x2f1)]&&this[_0x30fe68(0x365)][_0x30fe68(0x262)]({'type':D[_0x30fe68(0x206)]['Warning'],'content':this[_0x30fe68(0x21c)]['t'](_0x30fe68(0x35b))}),_0x557cb8['id']===u[_0x30fe68(0x396)]['CLOSE_ROOM']&&this['_messageService']['show']({'type':D['MessageType'][_0x30fe68(0x1a7)],'content':this[_0x30fe68(0x21c)]['t']('collaboration.closeRoom')}),_0x557cb8['id']===u[_0x30fe68(0x396)][_0x30fe68(0x3eb)]&&this[_0x30fe68(0x171)][_0x30fe68(0x262)]({'title':this[_0x30fe68(0x21c)]['t'](_0x30fe68(0x316)),'content':this[_0x30fe68(0x21c)]['t'](_0x30fe68(0x21d)),'type':_0x30fe68(0x327),'duration':0x0}),_0x557cb8['id']===u[_0x30fe68(0x396)][_0x30fe68(0x379)]&&this[_0x30fe68(0x365)][_0x30fe68(0x262)]({'type':D[_0x30fe68(0x206)][_0x30fe68(0x3af)],'content':this[_0x30fe68(0x21c)]['t'](_0x30fe68(0x30b))+'('+_0x557cb8[_0x30fe68(0x23d)]+')'}),_0x557cb8['id']===u[_0x30fe68(0x396)][_0x30fe68(0x3ac)]&&this['_messageService']['show']({'type':D[_0x30fe68(0x206)]['Warning'],'content':this[_0x30fe68(0x21c)]['t'](_0x557cb8[_0x30fe68(0x23d)]||'')}),_0x557cb8['id']===u[_0x30fe68(0x396)][_0x30fe68(0x2ed)]&&this[_0x30fe68(0x365)][_0x30fe68(0x262)]({'type':D['MessageType'][_0x30fe68(0x1a7)],'content':this[_0x30fe68(0x21c)]['t']('session.will-retry')}),_0x557cb8['id']===u[_0x30fe68(0x396)][_0x30fe68(0x1d5)]&&this['_messageService'][_0x30fe68(0x262)]({'type':D[_0x30fe68(0x206)][_0x30fe68(0x3af)],'content':this['_localeService']['t']('session.connection-failed')}),_0x557cb8['id']===u[_0x30fe68(0x396)]['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x30fe68(0x365)]['show']({'type':D[_0x30fe68(0x206)][_0x30fe68(0x3af)],'content':this[_0x30fe68(0x21c)]['t'](_0x30fe68(0x3ea))});}));}};K=yt([y(0x0,T[_0x5241c7(0x1ac)]),y(0x1,u[_0x5241c7(0x30a)]),y(0x2,a[_0x5241c7(0x190)](u[_0x5241c7(0x33f)])),y(0x3,T['IMessageService']),y(0x4,T[_0x5241c7(0x2ae)]),y(0x5,a['Inject'](a[_0x5241c7(0x37b)]))],K);const $t='collaboration-client-ui.config',Ue={},be=a['createIdentifier'](_0x5241c7(0x36f));var xt=Object[_0x5241c7(0x334)],jt=(_0x2a35af,_0xb505a5,_0x7fae85,_0x2076c4)=>{const _0x53b2e2=_0x5241c7;for(var _0x31b8f3=_0x2076c4>0x1?void 0x0:_0x2076c4?xt(_0xb505a5,_0x7fae85):_0xb505a5,_0x378e36=_0x2a35af[_0x53b2e2(0x3bd)]-0x1,_0x21ff87;_0x378e36>=0x0;_0x378e36--)(_0x21ff87=_0x2a35af[_0x378e36])&&(_0x31b8f3=_0x21ff87(_0x31b8f3)||_0x31b8f3);return _0x31b8f3;},H=(_0x2add69,_0x3ebf2c)=>(_0x280042,_0x1c3e4e)=>_0x3ebf2c(_0x280042,_0x1c3e4e,_0x2add69);exports[_0x5241c7(0x38e)]=class extends a[_0x5241c7(0x1dd)]{constructor(_0x4ddf22,_0xef8202,_0x46bbfa,_0x4b4a4a,_0x5040a9){const _0x30a1b4=_0x5241c7;super(),this[_0x30a1b4(0x16a)]=_0x4ddf22,this['_logService']=_0xef8202,this[_0x30a1b4(0x1fb)]=_0x46bbfa,this[_0x30a1b4(0x239)]=_0x4b4a4a,_0x5040a9?_0x5040a9==null||_0x5040a9[_0x30a1b4(0x305)]()[_0x30a1b4(0x3ec)](()=>this[_0x30a1b4(0x369)]()):(this['_logService'][_0x30a1b4(0x397)](_0x30a1b4(0x238),_0x30a1b4(0x1f0)),this[_0x30a1b4(0x369)]());}async['_init'](){const _0x132cbc=_0x5241c7,_0x539c2d=this['_urlService'][_0x132cbc(0x261)]('unit'),_0x50f347=this[_0x132cbc(0x16a)][_0x132cbc(0x261)](_0x132cbc(0x201)),_0x424c5f=this[_0x132cbc(0x16a)][_0x132cbc(0x261)]('subunit');if(!_0x539c2d||!_0x50f347){this[_0x132cbc(0x180)][_0x132cbc(0x397)]('[CollaborationDataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}const _0x471aa0=await this[_0x132cbc(0x239)][_0x132cbc(0x2db)](_0x539c2d,Number(_0x50f347),_0x424c5f);_0x471aa0&&_0x471aa0 instanceof a[_0x132cbc(0x186)]&&this['_setupSubUnitSync'](_0x471aa0);}async[_0x5241c7(0x36d)](_0x482672){const _0x5b0816=_0x5241c7;await this[_0x5b0816(0x231)](_0x482672),_0x482672[_0x5b0816(0x1af)][_0x5b0816(0x353)](d[_0x5b0816(0x214)](this['dispose$']))[_0x5b0816(0x3d4)](_0x5e5c15=>{const _0x4fa3b9=_0x5b0816;_0x5e5c15&&this[_0x4fa3b9(0x1aa)](_0x5e5c15);}),this['_urlService']['urlChange$'][_0x5b0816(0x353)](d[_0x5b0816(0x214)](this[_0x5b0816(0x352)]))[_0x5b0816(0x3d4)](()=>this[_0x5b0816(0x231)](_0x482672));}['_updateURLWithCurrentState'](_0x45ef79,_0xd1804a=!0x1){const _0x52aaab=_0x5241c7,_0x588f58=this[_0x52aaab(0x16a)][_0x52aaab(0x261)](_0x52aaab(0x388));_0x45ef79['getSheetId']()!==_0x588f58&&this[_0x52aaab(0x16a)][_0x52aaab(0x395)]('subunit',_0x45ef79[_0x52aaab(0x195)](),_0xd1804a);}async['_updateSubUnitFromURLParams'](_0x32a970){const _0x52b622=_0x5241c7;var _0x2cf294;const _0x7ee39c=this['_urlService'][_0x52b622(0x261)](_0x52b622(0x388));if(!_0x7ee39c||!_0x32a970['getSheetBySheetId'](_0x7ee39c)){const _0x47207f=_0x32a970[_0x52b622(0x2c3)]()[0x0],_0xc765d2=_0x32a970['getSheetBySheetId'](_0x47207f);if(!_0xc765d2)return;this[_0x52b622(0x1aa)](_0xc765d2,!0x0),await this[_0x52b622(0x1fb)][_0x52b622(0x3a8)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x32a970['getUnitId'](),'subUnitId':_0x47207f});return;}((_0x2cf294=_0x32a970['getActiveSheet']())==null?void 0x0:_0x2cf294[_0x52b622(0x195)]())!==_0x7ee39c&&await this['_commandService']['executeCommand'](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x32a970[_0x52b622(0x2d1)](),'subUnitId':_0x7ee39c});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x5241c7(0x1f6)]),H(0x2,a['ICommandService']),H(0x3,a[_0x5241c7(0x190)](u[_0x5241c7(0x30c)])),H(0x4,a[_0x5241c7(0x212)](qe[_0x5241c7(0x3a9)]))],exports[_0x5241c7(0x38e)]);var Bt=Object[_0x5241c7(0x334)],kt=(_0x1b082b,_0x528dfd,_0x48a24d,_0x493926)=>{for(var _0x19378b=_0x493926>0x1?void 0x0:_0x493926?Bt(_0x528dfd,_0x48a24d):_0x528dfd,_0x29ac8f=_0x1b082b['length']-0x1,_0x5360ed;_0x29ac8f>=0x0;_0x29ac8f--)(_0x5360ed=_0x1b082b[_0x29ac8f])&&(_0x19378b=_0x5360ed(_0x19378b)||_0x19378b);return _0x19378b;},ce=(_0x2987ea,_0x4f49b4)=>(_0xa080c8,_0x90e6c3)=>_0x4f49b4(_0xa080c8,_0x90e6c3,_0x2987ea);let z=class{constructor(_0x3e6493,_0x1c1afa,_0xea57be){const _0x150b8d=_0x5241c7;this[_0x150b8d(0x3c8)]=_0x3e6493,this['_transformService']=_0x1c1afa,this[_0x150b8d(0x2a1)]=_0xea57be;}[_0x5241c7(0x1b8)](_0x5dd805){const _0x3ee0c6=_0x5241c7;this[_0x3ee0c6(0x20f)](_0x5dd805),this['_transformPreviousActiveRange'](_0x5dd805);}[_0x5241c7(0x33b)](_0x371b7a){const _0x84454c=_0x5241c7,{unitID:_0x3d55ac}=_0x371b7a,_0x2bd6a4=this[_0x84454c(0x2a1)][_0x84454c(0x23a)](_0x3d55ac)[_0x84454c(0x336)](b[_0x84454c(0x368)]),{redoCache:_0x8bfed3}=_0x2bd6a4[_0x84454c(0x1e9)]();if(_0x8bfed3[_0x84454c(0x3bd)]===0x0)return _0x371b7a;let _0x49c3ea=a[_0x84454c(0x29e)]['deepClone'](_0x371b7a[_0x84454c(0x3a1)][0x0]);for(let _0x98b781=0x0;_0x98b781<_0x8bfed3[_0x84454c(0x3bd)];_0x98b781++){const _0x2811c0={'id':_0x84454c(0x34e),'params':{..._0x8bfed3[_0x98b781]}},_0x5bcaea=this[_0x84454c(0x1e5)][_0x84454c(0x285)](_0x49c3ea,_0x2811c0,!0x1);if(m[_0x84454c(0x36e)](_0x5bcaea))throw _0x5bcaea[_0x84454c(0x327)];_0x49c3ea=_0x5bcaea['m1Prime'];}return{...a[_0x84454c(0x29e)][_0x84454c(0x2b2)](_0x371b7a),'mutations':[_0x49c3ea]};}[_0x5241c7(0x20f)](_0x492623){const _0xaa08bd=_0x5241c7,{unitID:_0x4ce720}=_0x492623,_0x23faa8=this[_0xaa08bd(0x2a1)][_0xaa08bd(0x23a)](_0x4ce720)[_0xaa08bd(0x336)](b[_0xaa08bd(0x368)]),{undoCache:_0x5417a0,redoCache:_0xaf8f65}=_0x23faa8[_0xaa08bd(0x1e9)]();if(_0x5417a0[_0xaa08bd(0x3bd)]===0x0||_0xaf8f65[_0xaa08bd(0x3bd)]===0x0)return;const _0xbe2c2c=[],_0x715a64=[];let _0x262354=a['Tools'][_0xaa08bd(0x2b2)](_0x492623[_0xaa08bd(0x3a1)][0x0]),_0x1c6760=a[_0xaa08bd(0x29e)][_0xaa08bd(0x2b2)](_0x492623[_0xaa08bd(0x3a1)][0x0]);for(let _0x4eddc5=_0x5417a0[_0xaa08bd(0x3bd)]-0x1;_0x4eddc5>=0x0;_0x4eddc5--){const _0x4b89b5={'id':_0xaa08bd(0x34e),'params':{..._0x5417a0[_0x4eddc5]}},_0x651f13={'id':_0xaa08bd(0x34e),'params':{..._0xaf8f65[_0x4eddc5]}},_0x27c7eb=this[_0xaa08bd(0x1e5)][_0xaa08bd(0x285)](_0x262354,_0x4b89b5,!0x1),_0x5783bf=this[_0xaa08bd(0x1e5)][_0xaa08bd(0x285)](_0x1c6760,_0x651f13,!0x1);if(m['isTransformMutationFailure'](_0x27c7eb))throw _0x27c7eb[_0xaa08bd(0x327)];if(m[_0xaa08bd(0x36e)](_0x5783bf))throw _0x5783bf[_0xaa08bd(0x327)];_0xbe2c2c[_0xaa08bd(0x18e)](_0x27c7eb[_0xaa08bd(0x21b)][_0xaa08bd(0x1e3)]),_0x715a64['unshift'](_0x5783bf[_0xaa08bd(0x21b)][_0xaa08bd(0x1e3)]),_0x262354=_0x27c7eb[_0xaa08bd(0x363)],_0x1c6760=_0x5783bf[_0xaa08bd(0x363)];}_0x23faa8[_0xaa08bd(0x1df)]({'undoCache':_0xbe2c2c,'redoCache':_0x715a64});}[_0x5241c7(0x191)](_0x4918f1){const _0x317ba6=_0x5241c7,{unitID:_0x3e0c2e}=_0x4918f1,_0x5b609a=this['_renderManagerService'][_0x317ba6(0x23a)](_0x3e0c2e)[_0x317ba6(0x336)](b['DocIMEInputManagerService']),_0x3de62f=_0x5b609a[_0x317ba6(0x2e5)]();if(_0x3de62f==null)return;const _0x2fbc73=[{'id':_0x317ba6(0x34e),'params':{'unitId':_0x4918f1[_0x317ba6(0x18f)],'actions':null,'textRanges':[_0x3de62f]}}],_0x4904e3=this['_transformService'][_0x317ba6(0x1cd)](_0x4918f1,_0x2fbc73);if(!m[_0x317ba6(0x381)](_0x4904e3))throw _0x4904e3[_0x317ba6(0x327)];const _0x31b5c5=_0x4904e3[_0x317ba6(0x21b)][0x0]['params']['textRanges'];Array['isArray'](_0x31b5c5)&&_0x31b5c5[_0x317ba6(0x3bd)]&&_0x5b609a[_0x317ba6(0x2a9)](_0x31b5c5[0x0]);}};z=kt([ce(0x0,a[_0x5241c7(0x190)](a[_0x5241c7(0x197)])),ce(0x1,m[_0x5241c7(0x361)]),ce(0x2,p[_0x5241c7(0x196)])],z);var Ht=Object[_0x5241c7(0x334)],Ft=(_0x25347e,_0x40cd61,_0xbd5c66,_0x527f76)=>{const _0x3e6157=_0x5241c7;for(var _0x62b39=_0x527f76>0x1?void 0x0:_0x527f76?Ht(_0x40cd61,_0xbd5c66):_0x40cd61,_0x2c4b23=_0x25347e[_0x3e6157(0x3bd)]-0x1,_0x5d6ea3;_0x2c4b23>=0x0;_0x2c4b23--)(_0x5d6ea3=_0x25347e[_0x2c4b23])&&(_0x62b39=_0x5d6ea3(_0x62b39)||_0x62b39);return _0x62b39;},le=(_0x11b9a8,_0x4769f8)=>(_0x59fe43,_0x392a8c)=>_0x4769f8(_0x59fe43,_0x392a8c,_0x11b9a8);let J=class{constructor(_0x5da3b8,_0x349f88,_0x71260d){const _0x145acd=_0x5241c7;this['_injector']=_0x5da3b8,this[_0x145acd(0x1e5)]=_0x349f88,this['_docStateChangeManagerService']=_0x71260d;}[_0x5241c7(0x1ff)](_0x141ba7){const _0x1c06a5=_0x5241c7;this[_0x1c06a5(0x29a)](_0x141ba7);}['transformRemoteChangeset'](_0x928ba6){const _0x2134e3=_0x5241c7,{unitID:_0x2f0be3}=_0x928ba6,{collaboration:_0xba69c3}=this[_0x2134e3(0x355)][_0x2134e3(0x3d9)](_0x2f0be3);if(_0xba69c3[_0x2134e3(0x3bd)]===0x0)return _0x928ba6;let _0x509254=a[_0x2134e3(0x29e)][_0x2134e3(0x2b2)](_0x928ba6['mutations'][0x0]);for(let _0x2980c3=0x0;_0x2980c3<_0xba69c3['length'];_0x2980c3++){const _0x3d997c={'id':_0x2134e3(0x34e),'params':{'unitId':_0xba69c3[_0x2980c3][_0x2134e3(0x2b5)],..._0xba69c3[_0x2980c3]['redoState']}},_0x1fcf4f=this[_0x2134e3(0x1e5)]['transformMutation'](_0x509254,_0x3d997c,!0x1);if(m[_0x2134e3(0x36e)](_0x1fcf4f))throw _0x1fcf4f[_0x2134e3(0x327)];_0x509254=_0x1fcf4f[_0x2134e3(0x363)];}return{...a[_0x2134e3(0x29e)]['deepClone'](_0x928ba6),'mutations':[_0x509254]};}[_0x5241c7(0x29a)](_0x2e2e40){const _0x2fc5a9=_0x5241c7,{unitID:_0xa3f5d0}=_0x2e2e40,{history:_0x26d8ae,collaboration:_0x2f8f2a}=this['_docStateChangeManagerService'][_0x2fc5a9(0x3d9)](_0xa3f5d0);if(_0x26d8ae[_0x2fc5a9(0x3bd)]===0x0&&_0x2f8f2a[_0x2fc5a9(0x3bd)]===0x0)return;const _0x543ca2=[],_0x55f1eb=[];let _0x3f1a04=a[_0x2fc5a9(0x29e)][_0x2fc5a9(0x2b2)](_0x2e2e40[_0x2fc5a9(0x3a1)][0x0]),_0x1ac4ba=a[_0x2fc5a9(0x29e)]['deepClone'](_0x2e2e40[_0x2fc5a9(0x3a1)][0x0]);for(let _0x13adfd=_0x26d8ae[_0x2fc5a9(0x3bd)]-0x1;_0x13adfd>=0x0;_0x13adfd--){const _0x4840d9={'id':_0x2fc5a9(0x34e),'params':{'unitId':_0x26d8ae[_0x13adfd][_0x2fc5a9(0x2b5)],..._0x26d8ae[_0x13adfd][_0x2fc5a9(0x268)]}},_0x57e91c={'id':_0x2fc5a9(0x34e),'params':{'unitId':_0x26d8ae[_0x13adfd]['unitId'],..._0x26d8ae[_0x13adfd]['redoState']}},_0x206c82=this[_0x2fc5a9(0x1e5)][_0x2fc5a9(0x285)](_0x3f1a04,_0x4840d9,!0x1),_0x10ea72=this['_transformService'][_0x2fc5a9(0x285)](_0x1ac4ba,_0x57e91c,!0x1);if(m[_0x2fc5a9(0x36e)](_0x206c82))throw _0x206c82['error'];if(m[_0x2fc5a9(0x36e)](_0x10ea72))throw _0x10ea72[_0x2fc5a9(0x327)];_0x543ca2[_0x2fc5a9(0x18e)]({..._0x26d8ae[_0x13adfd],'undoState':_0x206c82[_0x2fc5a9(0x21b)][_0x2fc5a9(0x1e3)],'redoState':_0x10ea72[_0x2fc5a9(0x21b)][_0x2fc5a9(0x1e3)]}),_0x3f1a04=_0x206c82[_0x2fc5a9(0x363)],_0x1ac4ba=_0x10ea72['m1Prime'];}_0x3f1a04=a[_0x2fc5a9(0x29e)][_0x2fc5a9(0x2b2)](_0x2e2e40[_0x2fc5a9(0x3a1)][0x0]),_0x1ac4ba=a['Tools'][_0x2fc5a9(0x2b2)](_0x2e2e40[_0x2fc5a9(0x3a1)][0x0]);for(let _0x1e7602=_0x2f8f2a[_0x2fc5a9(0x3bd)]-0x1;_0x1e7602>=0x0;_0x1e7602--){const _0x1fe83f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2f8f2a[_0x1e7602][_0x2fc5a9(0x2b5)],..._0x2f8f2a[_0x1e7602]['undoState']}},_0x162374={'id':_0x2fc5a9(0x34e),'params':{'unitId':_0x2f8f2a[_0x1e7602]['unitId'],..._0x2f8f2a[_0x1e7602][_0x2fc5a9(0x2a3)]}},_0x691156=this[_0x2fc5a9(0x1e5)][_0x2fc5a9(0x285)](_0x3f1a04,_0x1fe83f,!0x1),_0x391f01=this['_transformService'][_0x2fc5a9(0x285)](_0x1ac4ba,_0x162374,!0x1);if(m['isTransformMutationFailure'](_0x691156))throw _0x691156[_0x2fc5a9(0x327)];if(m['isTransformMutationFailure'](_0x391f01))throw _0x391f01['error'];_0x55f1eb[_0x2fc5a9(0x18e)]({..._0x2f8f2a[_0x1e7602],'undoState':_0x691156[_0x2fc5a9(0x21b)]['params'],'redoState':_0x391f01['m2Prime'][_0x2fc5a9(0x1e3)]}),_0x3f1a04=_0x691156[_0x2fc5a9(0x363)],_0x1ac4ba=_0x391f01[_0x2fc5a9(0x363)];}this[_0x2fc5a9(0x355)]['setStateCache'](_0xa3f5d0,{'history':_0x543ca2,'collaboration':_0x55f1eb});}};J=Ft([le(0x0,a[_0x5241c7(0x190)](a[_0x5241c7(0x197)])),le(0x1,m['ITransformService']),le(0x2,a['Inject'](b[_0x5241c7(0x1ae)]))],J);var Wt=Object[_0x5241c7(0x334)],Yt=(_0x494f68,_0x5be4ce,_0x478965,_0x274544)=>{for(var _0x4c1751=_0x274544>0x1?void 0x0:_0x274544?Wt(_0x5be4ce,_0x478965):_0x5be4ce,_0x46a1e6=_0x494f68['length']-0x1,_0x1680b6;_0x46a1e6>=0x0;_0x46a1e6--)(_0x1680b6=_0x494f68[_0x46a1e6])&&(_0x4c1751=_0x1680b6(_0x4c1751)||_0x4c1751);return _0x4c1751;},Ne=(_0x52b846,_0x147e87)=>(_0x1d4736,_0x2fca7e)=>_0x147e87(_0x1d4736,_0x2fca7e,_0x52b846);let Z=class{constructor(_0xa9d12,_0x2aee78){const _0x13a685=_0x5241c7;this['_injector']=_0xa9d12,this[_0x13a685(0x1e5)]=_0x2aee78;}[_0x5241c7(0x1f1)](_0x298190){const _0x37d6c=_0x5241c7;var _0xe607f1;const _0x44c44c=this[_0x37d6c(0x3c8)][_0x37d6c(0x187)](W[_0x37d6c(0x3b1)]),_0x446a40=(_0xe607f1=_0x44c44c[_0x37d6c(0x3ad)]())!=null?_0xe607f1:[];if(_0x446a40[_0x37d6c(0x3bd)]===0x0)return;const _0x1b99c0=_0x298190[_0x37d6c(0x18f)],_0x39bad5=[{'id':_0x37d6c(0x34e),'params':{'unitId':_0x1b99c0,'actions':null,'textRanges':_0x446a40}}],_0x58288d=this[_0x37d6c(0x1e5)][_0x37d6c(0x1cd)](_0x298190,_0x39bad5);if(!m['isTransformMutationsWithChangesetSuccess'](_0x58288d))throw _0x58288d['error'];const _0x51c64b=_0x58288d[_0x37d6c(0x21b)][0x0][_0x37d6c(0x1e3)][_0x37d6c(0x357)];Array['isArray'](_0x51c64b)&&_0x51c64b[_0x37d6c(0x3bd)]&&_0x44c44c[_0x37d6c(0x28c)](_0x51c64b,{'unitId':_0x1b99c0,'subUnitId':_0x1b99c0},!0x1);}};Z=Yt([Ne(0x0,a[_0x5241c7(0x190)](a[_0x5241c7(0x197)])),Ne(0x1,m[_0x5241c7(0x361)])],Z);var Vt=Object[_0x5241c7(0x334)],Xt=(_0x49322f,_0x594701,_0xed0cbf,_0x2afc8a)=>{for(var _0x30ffae=_0x2afc8a>0x1?void 0x0:_0x2afc8a?Vt(_0x594701,_0xed0cbf):_0x594701,_0x3e3882=_0x49322f['length']-0x1,_0xf2f55b;_0x3e3882>=0x0;_0x3e3882--)(_0xf2f55b=_0x49322f[_0x3e3882])&&(_0x30ffae=_0xf2f55b(_0x30ffae)||_0x30ffae);return _0x30ffae;},N=(_0x35f56a,_0x5b42f6)=>(_0xf4ca78,_0x30727d)=>_0x5b42f6(_0xf4ca78,_0x30727d,_0x35f56a);let Q=class extends a[_0x5241c7(0x2c9)]{constructor(_0x458250,_0x2a93d5,_0x6b3ddf,_0x5c8ecc,_0x10b666,_0x1bb770,_0x21ca3e,_0xb7e322){const _0x4fa875=_0x5241c7;super(),h(this,_0x4fa875(0x290),new d[(_0x4fa875(0x366))](u[_0x4fa875(0x16f)][_0x4fa875(0x2a4)])),(this['_docStateChangeManagerService']=_0x458250,this['_collaborationController']=_0x2a93d5,this['_docTransformIMECacheService']=_0x6b3ddf,this[_0x4fa875(0x2c0)]=_0x5c8ecc,this[_0x4fa875(0x2bb)]=_0x10b666,this[_0x4fa875(0x3cd)]=_0x1bb770,this[_0x4fa875(0x365)]=_0x21ca3e,this['_localeService']=_0xb7e322,this['_initEntityListener']());}[_0x5241c7(0x298)](){const _0x1d599f=_0x5241c7;this['disposeWithMe'](this[_0x1d599f(0x220)][_0x1d599f(0x320)][_0x1d599f(0x3d4)](_0x131a21=>{const _0x374553=_0x1d599f,_0x10433b=this[_0x374553(0x355)][_0x374553(0x185)][_0x374553(0x3d4)](_0x3a0428=>{const _0x218c1e=_0x374553;if(_0x3a0428==null)return;const {unitId:_0x3689de,redoState:_0x30d2a4,commandId:_0x13c756}=_0x3a0428;if(_0x3689de!==_0x131a21['unitID'])return;const _0x38b5be={'id':_0x13c756,'type':a[_0x218c1e(0x36a)][_0x218c1e(0x22f)],'params':{'unitId':_0x3689de,'actions':_0x30d2a4[_0x218c1e(0x3a2)],'textRanges':null}};_0x131a21['onLocalMutation'](_0x38b5be);});if(_0x131a21[_0x374553(0x1de)](_0x10433b),_0x131a21 instanceof u[_0x374553(0x232)]){const _0x1b7999={'onTransformIME':_0x1d2b8=>this['_docTransformIMECacheService'][_0x374553(0x1b8)](_0x1d2b8),'onTransformState':_0x495d70=>this[_0x374553(0x2c0)][_0x374553(0x1ff)](_0x495d70),'onTransformSelections':_0xca17d1=>this[_0x374553(0x2bb)][_0x374553(0x1f1)](_0xca17d1),'onSyncEditingCollabCursor':_0x162e43=>this[_0x374553(0x3cd)][_0x374553(0x32a)](_0x162e43),'onTransformRemoteChangesetByIMECache':_0xbe6e49=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0xbe6e49),'onTransformRemoteChangesetByStateCache':_0xb09f0e=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0xb09f0e)};_0x131a21[_0x374553(0x2ab)](_0x1b7999);}}));}};Q=Xt([N(0x0,a[_0x5241c7(0x190)](b[_0x5241c7(0x1ae)])),N(0x1,a[_0x5241c7(0x190)](u[_0x5241c7(0x3ba)])),N(0x2,a['Inject'](z)),N(0x3,a[_0x5241c7(0x190)](J)),N(0x4,a[_0x5241c7(0x190)](Z)),N(0x5,a[_0x5241c7(0x190)](Ce)),N(0x6,T[_0x5241c7(0x1d2)]),N(0x7,a[_0x5241c7(0x190)](a[_0x5241c7(0x37b)]))],Q);var Gt=Object[_0x5241c7(0x334)],qt=(_0x13e2a9,_0x47bc98,_0x73933a,_0x371d89)=>{const _0x5e45f9=_0x5241c7;for(var _0x498aee=_0x371d89>0x1?void 0x0:_0x371d89?Gt(_0x47bc98,_0x73933a):_0x47bc98,_0x196490=_0x13e2a9[_0x5e45f9(0x3bd)]-0x1,_0x17706b;_0x196490>=0x0;_0x196490--)(_0x17706b=_0x13e2a9[_0x196490])&&(_0x498aee=_0x17706b(_0x498aee)||_0x498aee);return _0x498aee;},_e=(_0x549636,_0x1693ed)=>(_0x1f211e,_0x2ba9c9)=>_0x1693ed(_0x1f211e,_0x2ba9c9,_0x549636);let ge=class extends a[_0x5241c7(0x2c9)]{constructor(_0x3ab906,_0x4e71c7,_0x5672d3){const _0x515906=_0x5241c7;super(),h(this,'_cachedData',new Map()),h(this,_0x515906(0x393),new Map()),h(this,_0x515906(0x19f),!0x1),(this['_configService']=_0x3ab906,this[_0x515906(0x22a)]=_0x4e71c7,this[_0x515906(0x18a)]=_0x5672d3);}[_0x5241c7(0x22e)](){const _0x2a3133=_0x5241c7;this[_0x2a3133(0x19f)]=!0x0;}[_0x5241c7(0x31e)](){const _0x36bc0b=_0x5241c7;this[_0x36bc0b(0x19f)]=!0x1;}get[_0x5241c7(0x359)](){const _0x3b6e0a=_0x5241c7;return this[_0x3b6e0a(0x393)];}[_0x5241c7(0x347)](){const _0x254896=_0x5241c7;this[_0x254896(0x1bf)]()[_0x254896(0x3ec)](()=>super[_0x254896(0x347)]());}async[_0x5241c7(0x3c9)](_0x144f56){const _0x2c27e7=_0x5241c7;return this[_0x2c27e7(0x19f)]?null:this[_0x2c27e7(0x22a)]['getItem'](u['getLocalCacheKey'](_0x144f56));}async[_0x5241c7(0x21e)](_0x36c4d5,_0x23a55d){const _0x5c18e0=_0x5241c7;return!!this[_0x5c18e0(0x22a)][_0x5c18e0(0x20e)](_0x36c4d5,_0x23a55d);}[_0x5241c7(0x39a)](_0x4b9b6f,_0x2a5c26,_0x5ca1ff,_0x947181){const _0x46d65d=_0x5241c7,_0x5447b7=this['_revisionService'][_0x46d65d(0x1f8)](_0x4b9b6f);this['_cachedData'][_0x46d65d(0x314)](_0x4b9b6f,{'unitID':_0x4b9b6f,'type':_0x2a5c26,'awaitingChangeset':_0x5ca1ff,'mutations':_0x947181,'rev':_0x5447b7}),this[_0x46d65d(0x393)][_0x46d65d(0x310)](_0x4b9b6f)||this[_0x46d65d(0x274)](_0x4b9b6f);}[_0x5241c7(0x274)](_0xe380ad){const _0x3ad24c=_0x5241c7,_0x148f64=this[_0x3ad24c(0x301)]();_0x148f64===0x0?this['_saveCache'](_0xe380ad):this[_0x3ad24c(0x393)]['set'](_0xe380ad,setTimeout(()=>this[_0x3ad24c(0x2ce)](_0xe380ad),_0x148f64));}['_getSaveTimeout'](){const _0x1f385d=_0x5241c7;var _0x2f2fcd;return(_0x2f2fcd=this['_configService'][_0x1f385d(0x2d0)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x2f2fcd:u[_0x1f385d(0x2e6)];}['_saveCache'](_0x335313){const _0x339296=_0x5241c7,_0x434d4a=this[_0x339296(0x393)][_0x339296(0x187)](_0x335313);return _0x434d4a!==void 0x0&&window[_0x339296(0x3ce)](_0x434d4a),this['_localStorageService']['setItem'](u[_0x339296(0x251)](_0x335313),this[_0x339296(0x3b2)][_0x339296(0x187)](_0x335313))[_0x339296(0x3ec)](()=>this[_0x339296(0x393)]['delete'](_0x335313));}async[_0x5241c7(0x1bf)](){const _0x53cf6e=_0x5241c7,_0x5dfce9=[];this[_0x53cf6e(0x393)][_0x53cf6e(0x37a)]((_0x3db271,_0x4a1b98)=>{const _0x36a1c9=_0x53cf6e;window[_0x36a1c9(0x3ce)](_0x3db271),_0x5dfce9['push'](this[_0x36a1c9(0x2ce)](_0x4a1b98)[_0x36a1c9(0x3ec)](()=>{const _0x12f4db=_0x36a1c9;this[_0x12f4db(0x393)][_0x12f4db(0x364)](_0x4a1b98);}));}),await Promise[_0x53cf6e(0x3de)](_0x5dfce9);}};ge=qt([_e(0x0,a[_0x5241c7(0x1ad)]),_e(0x1,a[_0x5241c7(0x392)]),_e(0x2,a[_0x5241c7(0x190)](m[_0x5241c7(0x202)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x593b0a=_0x5241c7;super(),h(this,_0x593b0a(0x18b)),this['urlChange$']=d['fromEvent'](window,_0x593b0a(0x288))['pipe'](d[_0x593b0a(0x214)](this[_0x593b0a(0x352)]),d[_0x593b0a(0x2ee)](0x1),d[_0x593b0a(0x287)](void 0x0));}[_0x5241c7(0x395)](_0x1fd136,_0x5d034c,_0x3ba2ac=!0x1){const _0x4526f8=_0x5241c7,_0x1803ef=new URL(window['location'][_0x4526f8(0x3b6)]);_0x1803ef[_0x4526f8(0x25b)]['set'](_0x1fd136,_0x5d034c),_0x3ba2ac?window[_0x4526f8(0x39e)][_0x4526f8(0x177)]('','',_0x1803ef[_0x4526f8(0x3a5)]()):window['history'][_0x4526f8(0x1d6)]('','',_0x1803ef[_0x4526f8(0x3a5)]());}[_0x5241c7(0x278)](_0x17754b,_0x460f61=!0x1){const _0x51d6d2=_0x5241c7,_0x1d4d96=new URL(window['location'][_0x51d6d2(0x3b6)]);_0x1d4d96[_0x51d6d2(0x25b)][_0x51d6d2(0x364)](_0x17754b),_0x460f61?window[_0x51d6d2(0x39e)][_0x51d6d2(0x177)]('','',_0x1d4d96[_0x51d6d2(0x3a5)]()):window[_0x51d6d2(0x39e)][_0x51d6d2(0x1d6)]('','',_0x1d4d96['toString']());}[_0x5241c7(0x261)](_0x16f5af){const _0x3917fd=_0x5241c7;var _0x10036e;return(_0x10036e=new URL(window[_0x3917fd(0x1ba)]['href'])[_0x3917fd(0x25b)][_0x3917fd(0x187)](_0x16f5af))!=null?_0x10036e:void 0x0;}}var Kt=Object['defineProperty'],zt=Object[_0x5241c7(0x334)],Jt=(_0x2303ce,_0x5dc063,_0x292389)=>_0x5dc063 in _0x2303ce?Kt(_0x2303ce,_0x5dc063,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x292389}):_0x2303ce[_0x5dc063]=_0x292389,Zt=(_0x2eba70,_0xa97249,_0x3553a8,_0x5e8d79)=>{for(var _0x2b5ec0=_0x5e8d79>0x1?void 0x0:_0x5e8d79?zt(_0xa97249,_0x3553a8):_0xa97249,_0x2fe126=_0x2eba70['length']-0x1,_0x3a6fd0;_0x2fe126>=0x0;_0x2fe126--)(_0x3a6fd0=_0x2eba70[_0x2fe126])&&(_0x2b5ec0=_0x3a6fd0(_0x2b5ec0)||_0x2b5ec0);return _0x2b5ec0;},he=(_0x23430a,_0x5b78bd)=>(_0x2807a2,_0x2950dc)=>_0x5b78bd(_0x2807a2,_0x2950dc,_0x23430a),Qt=(_0x467598,_0x5ec922,_0x544fe8)=>Jt(_0x467598,_0x5ec922+'',_0x544fe8);const es=_0x5241c7(0x2c1);exports['UniverCollaborationClientUIPlugin']=class extends a[_0x5241c7(0x34b)]{constructor(_0x24b2db=Ue,_0x4617ac,_0xdcb930,_0x249959){const _0x3a661a=_0x5241c7;super(),this[_0x3a661a(0x1d7)]=_0x24b2db,this['_renderManagerService']=_0x4617ac,this['_injector']=_0xdcb930,this[_0x3a661a(0x35f)]=_0x249959;const {..._0x380b23}=a[_0x3a661a(0x2cb)]({},Ue,this[_0x3a661a(0x1d7)]);this[_0x3a661a(0x35f)]['setConfig']($t,_0x380b23);}[_0x5241c7(0x23e)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x5241c7(0x36b)](){const _0x262998=_0x5241c7;this[_0x262998(0x1d1)]();}[_0x5241c7(0x174)](){const _0x1e6491=_0x5241c7;var _0x181976;const _0x44a2f4=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x1e6491(0x354)],{'useClass':G[_0x1e6491(0x200)]}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x1e6491(0x39b)]],[Q],[K],[x],[de],[exports[_0x1e6491(0x38e)]]];a[_0x1e6491(0x270)](this['_injector'],a['mergeOverrideWithDependencies'](_0x44a2f4,(_0x181976=this['_config'])==null?void 0x0:_0x181976['override']));}[_0x5241c7(0x1d1)](){const _0xf24f5c=_0x5241c7;this[_0xf24f5c(0x1de)](this[_0xf24f5c(0x2a1)][_0xf24f5c(0x37f)](a[_0xf24f5c(0x215)]['UNIVER_DOC'],[Ie])),this['disposeWithMe'](this[_0xf24f5c(0x2a1)][_0xf24f5c(0x37f)](a['UniverInstanceType'][_0xf24f5c(0x3c5)],[ve]));}[_0x5241c7(0x173)](){const _0x34ff08=_0x5241c7;a[_0x34ff08(0x293)](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[K],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x5241c7(0x1cf)],_0x5241c7(0x297),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x5241c7(0x36c)](u['UniverCollaborationClientPlugin']),he(0x1,p['IRenderManagerService']),he(0x2,a['Inject'](a[_0x5241c7(0x197)])),he(0x3,a[_0x5241c7(0x1ad)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object[_0x5241c7(0x334)],ss=(_0x59d344,_0x5c34ca,_0x135597,_0x503dcc)=>{const _0x43a648=_0x5241c7;for(var _0x106d22=_0x503dcc>0x1?void 0x0:_0x503dcc?ts(_0x5c34ca,_0x135597):_0x5c34ca,_0x24c364=_0x59d344[_0x43a648(0x3bd)]-0x1,_0x1ed2a7;_0x24c364>=0x0;_0x24c364--)(_0x1ed2a7=_0x59d344[_0x24c364])&&(_0x106d22=_0x1ed2a7(_0x106d22)||_0x106d22);return _0x106d22;},F=(_0x4a46a8,_0x4eb2dd)=>(_0x5566a0,_0x106880)=>_0x4eb2dd(_0x5566a0,_0x106880,_0x4a46a8);exports[_0x5241c7(0x28f)]=class extends u[_0x5241c7(0x2d5)]{constructor(_0x421001,_0x4775dc,_0x5435a6,_0x4cac5f,_0x1a4eb8){super(_0x421001,_0x4775dc,_0x5435a6,_0x4cac5f,_0x1a4eb8);}async['createSocket'](_0x3e137f){const _0x42fe12=_0x5241c7,_0x2cd464=await this[_0x42fe12(0x3e9)](),_0x183fee=this['_createSocketURL'](_0x3e137f,_0x2cd464);return this['_doCreateSocket'](_0x183fee);}[_0x5241c7(0x2b6)](_0x119794,_0x27359f){const _0x291d06=_0x5241c7,_0x5bbe07=typeof window>'u'?new URL(_0x119794):new URL(_0x119794,window[_0x291d06(0x1ba)][_0x291d06(0x280)]);_0x5bbe07[_0x291d06(0x25b)][_0x291d06(0x314)](_0x291d06(0x2b1),_0x27359f);const _0x2df206=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x291d06(0x1ba)][_0x291d06(0x3c1)]);return _0x2df206['get']('runId')&&_0x5bbe07[_0x291d06(0x25b)]['set'](_0x291d06(0x1f3),_0x2df206[_0x291d06(0x187)](_0x291d06(0x1f3))),_0x5bbe07['toString']();}async[_0x5241c7(0x3e9)](){const _0x5e178d=_0x5241c7;var _0x2191f5,_0x1dd369,_0x2695fc;const _0x59b6d9=this[_0x5e178d(0x35f)][_0x5e178d(0x2d0)](u[_0x5e178d(0x1e7)]),_0x22230f=(_0x2191f5=_0x59b6d9==null?void 0x0:_0x59b6d9[_0x5e178d(0x2c7)])!=null?_0x2191f5:u[_0x5e178d(0x217)];return(_0x2695fc=(_0x1dd369=(await this[_0x5e178d(0x338)][_0x5e178d(0x187)](_0x22230f,{'headers':{'Content-Type':_0x5e178d(0x370)}}))['body'])==null?void 0x0:_0x1dd369[_0x5e178d(0x3bc)])!=null?_0x2695fc:'';}},exports[_0x5241c7(0x28f)]=ss([F(0x0,a[_0x5241c7(0x190)](a[_0x5241c7(0x197)])),F(0x1,a[_0x5241c7(0x190)](G[_0x5241c7(0x264)])),F(0x2,a[_0x5241c7(0x1ad)]),F(0x3,a[_0x5241c7(0x1f6)]),F(0x4,m[_0x5241c7(0x3dc)])],exports[_0x5241c7(0x28f)]);const Me=0x7530,Le=_0x5241c7(0x2fd);class is extends a[_0x5241c7(0x2c9)]{constructor(){const _0xc9901f=_0x5241c7;super(),h(this,_0xc9901f(0x31d),a[_0xc9901f(0x34a)]()),h(this,'_selfUnitIDs',new Set()),h(this,'_unitOnClients',new Map()),h(this,_0xc9901f(0x398),null),h(this,_0xc9901f(0x35c),new Map()),h(this,'_unitStatus',new Map()),this[_0xc9901f(0x369)]();}[_0x5241c7(0x347)](){const _0x2f44af=_0x5241c7;super[_0x2f44af(0x347)](),this['_clearOtherTimers']['forEach']((_0xc0aecf,_0x5d3c64)=>this[_0x2f44af(0x17d)](_0x5d3c64)),this[_0x2f44af(0x398)]&&window[_0x2f44af(0x1c2)](this[_0x2f44af(0x398)]);}[_0x5241c7(0x2d2)](_0x2638f5){const _0x1a4e33=_0x5241c7;return this[_0x1a4e33(0x33d)](_0x2638f5)[_0x1a4e33(0x353)](d[_0x1a4e33(0x21a)]());}[_0x5241c7(0x19c)](_0x3b187d){const _0x6232a0=_0x5241c7;this[_0x6232a0(0x283)][_0x6232a0(0x223)]===0x0&&this[_0x6232a0(0x1db)](),this[_0x6232a0(0x283)]['add'](_0x3b187d),this[_0x6232a0(0x311)]({'type':0x0,'memberID':this[_0x6232a0(0x31d)],'unitIDs':[_0x3b187d],'isForwarded':!0x1});}[_0x5241c7(0x2cf)](_0x516b2f){const _0x2e9318=_0x5241c7;this['_selfUnitIDs'][_0x2e9318(0x364)](_0x516b2f),this[_0x2e9318(0x283)]['size']===0x0&&this[_0x2e9318(0x398)]&&window['clearInterval'](this['_heartbeatTimer']);}[_0x5241c7(0x369)](){const _0x44e588=_0x5241c7;this[_0x44e588(0x1de)](a[_0x44e588(0x3c7)](d[_0x44e588(0x304)](window,'storage')['subscribe'](_0x589dce=>{const _0x51e81b=_0x44e588;if(_0x589dce['key']!==Le||!_0x589dce[_0x51e81b(0x237)])return;const _0x18386c=JSON[_0x51e81b(0x34c)](_0x589dce[_0x51e81b(0x237)]);this[_0x51e81b(0x3b5)](_0x18386c);}))),window[_0x44e588(0x1b7)](_0x44e588(0x2d6),()=>this[_0x44e588(0x311)]({'type':0x1,'memberID':this[_0x44e588(0x31d)],'unitIDs':Array['from'](this[_0x44e588(0x283)])}));}[_0x5241c7(0x3b5)](_0x442d7f){const _0x39fa93=_0x5241c7;switch(_0x442d7f['type']){case 0x0:this[_0x39fa93(0x313)](_0x442d7f);break;case 0x1:this['_handleLeaveEvent'](_0x442d7f);break;case 0x2:this['_handleHeartbeatEvent'](_0x442d7f);break;}}[_0x5241c7(0x313)](_0x2ec55e){const _0x2d29a2=_0x5241c7,{unitIDs:_0x4c6d34,memberID:_0x446b0b,isForwarded:_0x59a0a5}=_0x2ec55e;_0x4c6d34[_0x2d29a2(0x37a)](_0x12ce66=>{const _0xbcd80f=_0x2d29a2;if(!_0x59a0a5&&this[_0xbcd80f(0x315)]['has'](_0x12ce66)&&this[_0xbcd80f(0x33d)](_0x12ce66)[_0xbcd80f(0x24c)](u[_0xbcd80f(0x1ec)][_0xbcd80f(0x342)]),!this['_unitOnClients'][_0xbcd80f(0x310)](_0x12ce66)||!this[_0xbcd80f(0x315)][_0xbcd80f(0x187)](_0x12ce66)[_0xbcd80f(0x310)](_0x446b0b)){const _0x33d72b=this[_0xbcd80f(0x315)][_0xbcd80f(0x187)](_0x12ce66)||new Set();_0x33d72b[_0xbcd80f(0x344)](_0x446b0b),this[_0xbcd80f(0x315)]['set'](_0x12ce66,_0x33d72b),this[_0xbcd80f(0x2e1)](_0x446b0b);}}),_0x59a0a5||this[_0x2d29a2(0x311)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2d29a2(0x283)]],'isForwarded':!0x0});}[_0x5241c7(0x2e1)](_0x45a8e3){const _0x2fbf1c=_0x5241c7;this[_0x2fbf1c(0x17d)](_0x45a8e3);const _0x33f016=window['setTimeout'](()=>{const _0x1cfb31=_0x2fbf1c;this['_unitOnClients'][_0x1cfb31(0x37a)](_0x23e6e7=>{const _0x200950=_0x1cfb31;_0x23e6e7[_0x200950(0x364)](_0x45a8e3);});},Me*0x2);this['_clearOtherTimers'][_0x2fbf1c(0x314)](_0x45a8e3,_0x33f016);}[_0x5241c7(0x17d)](_0x35739f){const _0xc16c93=_0x5241c7;if(this[_0xc16c93(0x35c)][_0xc16c93(0x310)](_0x35739f)){const _0x138375=this[_0xc16c93(0x35c)][_0xc16c93(0x187)](_0x35739f);_0x138375&&window[_0xc16c93(0x3ce)](_0x138375),this[_0xc16c93(0x35c)][_0xc16c93(0x314)](_0x35739f,null);}}[_0x5241c7(0x1e8)](_0x46c5b){const _0x4b20a1=_0x5241c7,{memberID:_0x326689,unitIDs:_0x20d91d}=_0x46c5b;_0x20d91d[_0x4b20a1(0x37a)](_0x5627f3=>{const _0x40fea0=_0x4b20a1;var _0x5b3015;const _0x1d0021=this[_0x40fea0(0x315)]['get'](_0x5627f3);_0x1d0021&&(_0x1d0021[_0x40fea0(0x364)](_0x326689),(_0x5b3015=this['_ensureSubject'](_0x5627f3))==null||_0x5b3015['next'](_0x1d0021[_0x40fea0(0x223)]===0x0?u[_0x40fea0(0x1ec)][_0x40fea0(0x211)]:u[_0x40fea0(0x1ec)]['OTHER_CLIENTS_EDITING']));}),this[_0x4b20a1(0x17d)](_0x326689);}['_handleHeartbeatEvent'](_0x40f7ac){const _0x12aede=_0x5241c7;this[_0x12aede(0x2e1)](_0x40f7ac[_0x12aede(0x3b3)]);}[_0x5241c7(0x311)](_0xadeab7){const _0x426356=_0x5241c7;localStorage['setItem'](Le,JSON[_0x426356(0x244)](_0xadeab7));}[_0x5241c7(0x1db)](){const _0x4dde2d=_0x5241c7;this[_0x4dde2d(0x398)]=window[_0x4dde2d(0x3c4)](()=>{const _0x5e0f3a=_0x4dde2d;this[_0x5e0f3a(0x311)]({'type':0x2,'memberID':this[_0x5e0f3a(0x31d)]});},Me);}[_0x5241c7(0x33d)](_0x3ba797){const _0x97bc6d=_0x5241c7;return this[_0x97bc6d(0x312)][_0x97bc6d(0x310)](_0x3ba797)||this[_0x97bc6d(0x312)][_0x97bc6d(0x314)](_0x3ba797,new d[(_0x97bc6d(0x366))](u['UnitStatus'][_0x97bc6d(0x211)])),this['_unitStatus'][_0x97bc6d(0x187)](_0x3ba797);}}var Be=(_0x2c05fb=>(_0x2c05fb[_0x2c05fb[_0x5241c7(0x1a4)]=0x0]=_0x5241c7(0x1a4),_0x2c05fb[_0x2c05fb['OK']=0x1]='OK',_0x2c05fb[_0x2c05fb[_0x5241c7(0x250)]=0x2]='INTERNAL_ERROR',_0x2c05fb[_0x2c05fb[_0x5241c7(0x3eb)]=0x3]='PERMISSION_DENIED',_0x2c05fb[_0x2c05fb['NOT_FOUND']=0x4]='NOT_FOUND',_0x2c05fb[_0x2c05fb[_0x5241c7(0x1be)]=0x5]=_0x5241c7(0x1be),_0x2c05fb[_0x2c05fb['ALREADY_EXISTS']=0x6]=_0x5241c7(0x360),_0x2c05fb[_0x2c05fb[_0x5241c7(0x2bc)]=0x7]=_0x5241c7(0x2bc),_0x2c05fb[_0x2c05fb[_0x5241c7(0x335)]=0x8]=_0x5241c7(0x335),_0x2c05fb[_0x2c05fb[_0x5241c7(0x38a)]=0x9]=_0x5241c7(0x38a),_0x2c05fb[_0x2c05fb[_0x5241c7(0x383)]=0xa]=_0x5241c7(0x383),_0x2c05fb[_0x2c05fb[_0x5241c7(0x2fb)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x2c05fb[_0x2c05fb[_0x5241c7(0x28d)]=0x1771]=_0x5241c7(0x28d),_0x2c05fb[_0x2c05fb[_0x5241c7(0x184)]=0x1772]=_0x5241c7(0x184),_0x2c05fb[_0x2c05fb[_0x5241c7(0x1ca)]=0x1773]=_0x5241c7(0x1ca),_0x2c05fb[_0x2c05fb[_0x5241c7(0x255)]=0x1b59]='APPLY_REJECT',_0x2c05fb[_0x2c05fb[_0x5241c7(0x1a3)]=0x1b5a]=_0x5241c7(0x1a3),_0x2c05fb[_0x2c05fb[_0x5241c7(0x192)]=0x1b5b]=_0x5241c7(0x192),_0x2c05fb[_0x2c05fb[_0x5241c7(0x254)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x2c05fb[_0x2c05fb[_0x5241c7(0x218)]=0x1b5d]=_0x5241c7(0x218),_0x2c05fb[_0x2c05fb[_0x5241c7(0x3e5)]=0x1f41]=_0x5241c7(0x3e5),_0x2c05fb[_0x2c05fb[_0x5241c7(0x2e8)]=0x2329]=_0x5241c7(0x2e8),_0x2c05fb[_0x2c05fb[_0x5241c7(0x34d)]=0x232a]=_0x5241c7(0x34d),_0x2c05fb[_0x2c05fb[_0x5241c7(0x2c2)]=0x232b]=_0x5241c7(0x2c2),_0x2c05fb[_0x2c05fb[_0x5241c7(0x16b)]=0x232c]=_0x5241c7(0x16b),_0x2c05fb[_0x2c05fb[_0x5241c7(0x2d3)]=0x232d]='LICENSE_DISTRO_REJECTED',_0x2c05fb[_0x2c05fb[_0x5241c7(0x26d)]=0x2711]=_0x5241c7(0x26d),_0x2c05fb[_0x2c05fb[_0x5241c7(0x24e)]=0x2712]=_0x5241c7(0x24e),_0x2c05fb[_0x2c05fb['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x5241c7(0x35d),_0x2c05fb[_0x2c05fb[_0x5241c7(0x2eb)]=0x2714]=_0x5241c7(0x2eb),_0x2c05fb[_0x2c05fb[_0x5241c7(0x2ba)]=0x271a]=_0x5241c7(0x2ba),_0x2c05fb[_0x2c05fb[_0x5241c7(0x346)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x2c05fb[_0x2c05fb[_0x5241c7(0x1a8)]=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x2c05fb[_0x2c05fb['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x5241c7(0x3ca),_0x2c05fb[_0x2c05fb[_0x5241c7(0x3d7)]=0x2ee2]=_0x5241c7(0x3d7),_0x2c05fb[_0x2c05fb[_0x5241c7(0x22d)]=0x2ee3]=_0x5241c7(0x22d),_0x2c05fb[_0x2c05fb['USER_NOT_INVITED_CODE']=0x2ee4]=_0x5241c7(0x30d),_0x2c05fb[_0x2c05fb['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x5241c7(0x248),_0x2c05fb[_0x2c05fb['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x5241c7(0x307),_0x2c05fb[_0x2c05fb[_0x5241c7(0x1f2)]=0x32ca]=_0x5241c7(0x1f2),_0x2c05fb[_0x2c05fb['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x5241c7(0x291),_0x2c05fb[_0x2c05fb['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x2c05fb))(Be||{}),ns=Object[_0x5241c7(0x334)],rs=(_0x5d2e64,_0x191618,_0x58d051,_0x10e61f)=>{const _0x2243e4=_0x5241c7;for(var _0xf46547=_0x10e61f>0x1?void 0x0:_0x10e61f?ns(_0x191618,_0x58d051):_0x191618,_0x51580f=_0x5d2e64[_0x2243e4(0x3bd)]-0x1,_0x62c739;_0x51580f>=0x0;_0x51580f--)(_0x62c739=_0x5d2e64[_0x51580f])&&(_0xf46547=_0x62c739(_0xf46547)||_0xf46547);return _0xf46547;},ue=(_0x393f14,_0x539db8)=>(_0x4d9997,_0x198176)=>_0x539db8(_0x4d9997,_0x198176,_0x393f14);exports[_0x5241c7(0x227)]=class extends a[_0x5241c7(0x2c9)]{constructor(_0x6558fd,_0x1020ce,_0x200665){const _0x10114=_0x5241c7;super(),this[_0x10114(0x28b)]=_0x6558fd,this[_0x10114(0x338)]=_0x1020ce,this['_configService']=_0x200665;}async['runOnServer'](_0xfe9623,_0x3d01a2,_0x513834,..._0x2bb2d5){const _0x3586d6=_0x5241c7;var _0x55caed,_0x5c06bd,_0x199b0d,_0x574f99;const _0x2e5973=this[_0x3586d6(0x28b)][_0x3586d6(0x169)]();if(!_0x2e5973)throw new Error(_0x3586d6(0x18c));const _0x5604d6=((_0x55caed=this['_configService'][_0x3586d6(0x2d0)](u[_0x3586d6(0x1c0)]))!=null?_0x55caed:u[_0x3586d6(0x20d)])+'/'+_0xfe9623+_0x3586d6(0x1bb)+_0x3d01a2,_0x3ea0a4=new URL(window[_0x3586d6(0x1ba)]['href']),_0x42da20={'scriptId':_0xfe9623,'runId':(_0x5c06bd=_0x3ea0a4[_0x3586d6(0x25b)][_0x3586d6(0x187)](_0x3586d6(0x1f3)))!=null?_0x5c06bd:'','function':_0x3d01a2,'unitId':_0x2e5973[_0x3586d6(0x2d1)](),'argsOfFunction':JSON[_0x3586d6(0x244)](_0x2bb2d5),'invokeId':(_0x199b0d=_0x513834[_0x3586d6(0x371)])!=null?_0x199b0d:'','executionId':(_0x574f99=_0x513834['executionId'])!=null?_0x574f99:''};try{const _0x4530ad=await this[_0x3586d6(0x338)][_0x3586d6(0x16d)](_0x5604d6,{'body':_0x42da20});return _0x4530ad[_0x3586d6(0x26c)]['error']&&_0x4530ad['body'][_0x3586d6(0x327)][_0x3586d6(0x23b)]!==Be['OK']?_0x3586d6(0x3a4):_0x4530ad[_0x3586d6(0x26c)][_0x3586d6(0x3d1)];}catch{return'Failed';}}},exports[_0x5241c7(0x227)]=rs([ue(0x0,a[_0x5241c7(0x356)]),ue(0x1,a[_0x5241c7(0x190)](G[_0x5241c7(0x264)])),ue(0x2,a['IConfigService'])],exports[_0x5241c7(0x227)]),exports['CollaborationStatusDisplay']=xe,exports[_0x5241c7(0x28e)]=be,exports[_0x5241c7(0x349)]=we,exports[_0x5241c7(0x330)]=is,exports[_0x5241c7(0x31f)]=je;function _0x4565(){const _0x299898=['deepClone','_assignedColors','engine','unitId','_createSocketURL','_imageIoService','_scene','init','YUUMI_NO_CUBOID_FOR_QUESTION','_docTransformSelectionsService','INVALID_ARGUMENT','getValue','assign','@univerjs/sheets-ui','_docTransformStateCacheService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','LICENSE_IMPORT_SIZE_EXCEEDED','getUnhiddenWorksheets','call','verdancy600','ONLINE','wsSessionTicketUrl','react','Disposable','off-line-single_clip0_910_343','merge','deserializeRangeWithSheet','clipPath','_saveCache','disposeUnit','getConfig','getUnitId','getUnitStatus$','LICENSE_DISTRO_REJECTED','getRelativeToViewportCoord','CollaborationSocketService','unload','RemoveRowCommandId','TRANSFORM_CHANGE_OBSERVABLE_TYPE','forwardRef','indexOf','loadUnit','ThemeService','none','icon','combineLatest','_docClipboardService','_scheduleClearOtherTimer','extend','div','_backgroundColor','getActiveRange','LOCAL_CACHE_INTERVAL','getAncestorScale','LICENSE_MAX_UNITS_EXCEEDED','_startDocCollabCursor','DeleteRangeMoveUpCommandId','YUUMI_SUBSCRIPTION_NOT_FOUND','@univerjs/engine-formula','SOCKET_FAILED_RETRY','shareReplay','_setupBeforeClosingHandler','subscribeEvent','OTHER_CLIENT_EDITING','@univerjs/docs-ui','_syncEditingCollabCursorService','6996TjsvdE','min','fillRule','isActive','univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','Module','registerRefRange','CHANGESET_REVISION_CONFILICT','registerBeforeClose','ACTIVE_UNIT_EVENT_CHANNEL','unit','find','IDocClipboardService','_getSaveTimeout','debounce','_updateCollabCursors','fromEvent','whenReady','unsubscribe','WECHAT_HAS_BEEN_BOUND','_univerInstanceService','BuiltInUIPart','ILocalCacheService','collaboration.closeRoom','DataLoaderService','USER_NOT_INVITED_CODE','63sEwViQ','_shapes','has','_send','_unitStatus','_handleJoinEvent','set','_unitOnClients','permission.title','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','url(#$1','getCoordByCell','imageSourceType','_collabSessionService','_entities','_id','enableLocalCache','WebURLService','entityInit$','tag','asObservable','xlink:href','_initCommandExecutedListener','collabStatus.syncing','propertyIsEnumerable','error','toStringTag','1049912qPvsSO','syncEditingCollabCursor','moveTo','_beforeCloseService','NodePositionConvertToCursor','hovered','_onRefRangeChange','WebBrowserSingleActiveUnitService','runRefRangeMutations','fillStyle','concat','getOwnPropertyDescriptor','TOO_MANY_REQUESTS','with','FromArray','_httpService','some','react/jsx-runtime','transformRemoteChangeset','CollaborationSessionService','_ensureSubject','_drawRectRange','CollaborationUIEventService','onPointerMove$','HEADER_MENU','OTHER_CLIENTS_EDITING','arc','add','_lastPointer','YUUMI_ASYNCIO_CANCELLED','dispose','IImageIoService','SheetCollabCursorShape','generateRandomId','Plugin','parse','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','doc.mutation.rich-text-editing','_getMergeRange','path','_getAnchorBounding','dispose$','pipe','ISocketService','_docStateChangeManagerService','IUniverInstanceService','textRanges','_range','saveTaskMap','fillText','collaboration.single-unit.warning','_clearOtherTimers','YUUMI_RATE_OVER_LIMIT','@univerjs/docs','_configService','ALREADY_EXISTS','ITransformService','createElement','m1Prime','delete','_messageService','BehaviorSubject','getTypeOfUnitAdded$','DocIMEInputManagerService','_init','CommandType','onRendered','DependentOn','_setupSubUnitSync','isTransformMutationFailure','uni.network.url-service','application/json','invokeId','1em','contains','_collaborationUIEventService','complete','onCommandExecuted','Subject','1035276ChdRGO','CONFLICT','forEach','LocaleService','black','red300','measureText','registerRenderModule','name','isTransformMutationsWithChangesetSuccess','getOwnPropertySymbols','LOGIN_FAILED','sessionStatus$','_docSkeletonManagerService','entries','ICommandService','subunit','collab-rect-range-','COMPLETION_FINISHED','collabStatus.notCollab','ranges','@univerjs/ui','CollaborationDataLoaderController','_toggleOffline','width','getViewport','ILocalStorageService','_saveTaskMap','current','setParam','CollaborationUIEventId','debug','_heartbeatTimer','prototype','updateOfflineData','DesktopCollaborationStatusDisplayController','map','handleDeleteRangeMoveUp','history','SessionStatus','_getScale','mutations','actions','bottom','Failed','toString','triggerDblclick','_textBubble','executeCommand','IRemoteInstanceService','on-line-single_clip0_910_349','translate(.97)','JOIN_ROOM_FAILED','getDocRanges','useObservable','Error','ColorKit','DocSelectionManagerService','_cachedData','memberID','focused$','_handleEvent','href','181384tXpgTf','range','6715242QYVGrk','CollaborationController','UPDATE_CURSOR','ticket','length','collab-client.tooltip.reconnect','@univerjs-pro/collaboration','_collabCursorState$','search','SetTextSelectionsOperation','_initResize','setInterval','UNIVER_SHEET','_onCursorDelete','toDisposable','_injector','loadOfflineData','INVITE_CODE_HAS_BEEN_UES','InsertRangeMoveDownCommandId','VIEW_MAIN','_docSyncEditingCollabCursorService','clearTimeout','fromEventSubject','switchMap','result','onPointerLeave$','saveImage','subscribe','SheetSkeletonManagerService','currentColor','INVALID_INVITE_CODE','_themeService','getStateCache','collabStatus.fetchMiss','_drawAnchor','ISnapshotServerService','values','all','univer-text-green-500','toRgbString','useDependency','substring','string','_memberService','CONNECTOR_DATA_TOO_LARGE','displayName','OFFLINE','OnLineSingle','_getSessionTicket','session.collaboration-timeout','PERMISSION_DENIED','then','getFocusedUnit','_urlService','LICENSE_EXPORT_SIZE_EXCEEDED','connectInjector','post','_context','CollaborationStatus','getSkeleton','_notificationService','_cursorInfo$','_initDependencies','_registerDependencies','Unknown\x20user','getTypeOfUnitDisposed$','replaceState','currentSkeleton$','cursorInfo$','_handleHover','@univerjs/engine-render','startRow','_removeClearOtherTimer','handleInsertRangeMoveRight','endRow','_logService','handleInsertRangeMoveDown','IUIPartsService','univer-flex\x20univer-mr-2\x20univer-text-[20px]','SNAPSHOT_HAS_BEEN_REMOVED','docStateChange$','Workbook','get','event$','eventID','_revisionService','urlChange$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','random','unshift','unitID','Inject','_transformPreviousActiveRange','APPLY_REVISION_CONFILICT','_roomMembers$','2346488bfUaMC','getSheetId','IRenderManagerService','Injector','cursorInfo','startColumn','_hovered','round','editingUnit','_localCacheService','_removeCollabCursors','_disabled','defIds','_startSheetCollabCursor','source','APPLY_NON_SEQUENTIAL_REVISION','UNDEFINED','#FFF','_collabCursorController','Warning','PY_RUNTIME_SCRIPT_ERROR','handleIRemoveCol','_updateURLWithCurrentState','3596579uoVRKo','IBeforeCloseService','IConfigService','DocStateChangeManagerService','activeSheet$','RECT','0\x200\x2016\x2016','mask','SheetsSelectionsService','EffectRefRangId','setShapeProps','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','addEventListener','transformIMECache','send','location','/run/','SetSelectionsOperation','evenodd','UNAUTHENTICATED','exhaustSavingTask','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','currentTheme$','clearInterval','OffLineSingle','getSheetBySheetId','_toggleOnline','Vector2','height','assignAColorForMemberID','185IuhKoB','ENSURE_SNAPSHOT_EXECUTION','column','top','transformMutationsWithChangeset','handleIRemoveRow','UniverCollaborationClientUIPlugin','transform','_registerRenderDependencies','IMessageService','split','onPointerEnter$','SOCKET_FAILED','pushState','_config','_onCursorUpdate','@univerjs/network','_initEvent','_scheduleHeartbeat','makeDirty','RxDisposable','disposeWithMe','setUndoRedoMutationParamsCache','drawWith','CollaborationEvent','_draw','params','_name','_transformService','_colorIndex','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_handleLeaveEvent','getUndoRedoMutationParamsCache','colorChannel1','AWAITING','UnitStatus','selections','getMemberID','startsWith','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','transformSelections','MOBILE_HAS_BEEN_BOUND','runId','_cursorShapes','isEditing','ILogService','_colorAssignService','getCurrentRevOfUnit','getSheetObject','color','_commandService','getCollabCursors$','0\x200\x2017\x2016','createInstance','transformStateCache','WebSocketService','type','RevisionService','_initStatusComponent','_session','addObject','MessageType','_cursors','handleMoveRange','_drawTextRange','collabCursorState$','M0\x200H16V16H0z','@univerjs/drawing','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','setItem','_transformUndoRedoStack','text','NO_OTHER_CLIENTS_EDITING','Optional','DeleteRangeMoveLeftCommandId','takeUntil','UniverInstanceType','...','DEFAULT_WS_SESSION_TICKET_URL','APPLY_DUPLICATED','TEXT_RANGE_LAYER_INDEX','distinctUntilChanged','m2Prime','_localeService','permission.content','saveOfflineData','_initStatusListener','_collaborationController','purple300','hide','size','roomMembers$','onMouseMove','selection','RemoteUniscriptService','endColumn','_refRangeService','_localStorageService','COLORS','useRef','INVITE_CODE_REQUIRED','disableLocalCache','MUTATION','jsx','_updateSubUnitFromURLParams','DocCollaborationEntity','_docSkeleton','push','@univerjs/design','findNodePositionByCharIndex','newValue','[CollaborationDataLoaderController]','_dataLoaderService','getRenderById','code','_sheetSkeletonManagerService','data','onStarting','rxjs/operators','_cursor','_updateLocalCursor','className','#fff','stringify','svg','Tooltip','getColor','INVITE_CODE_ALREADY_BOUND','_refreshCollabCursors','_labelPosition','defs','next','serializeRangeWithSheet','YUUMI_URL_COL_OUT_OF_RANGE','closePath','INTERNAL_ERROR','getLocalCacheKey','throttleTime','InsertRangeMoveRightCommandId','APPLY_PERMISSION_DENIED','APPLY_REJECT','Rect','SetDocZoomRatioOperation','univerjs-icon\x20univerjs-icon-','MemberService','from','searchParams','_anchorDot','@univerjs/rpc','@univerjs/core','rgba(255,\x20255,\x20255,\x200.01)','beginPath','getParam','show','handleInsertRow','HTTPService','transformByState','_entityInit$','univer-flex\x20univer-items-center','undoState','filter','_hover','getRangePointData','body','YUUMI_UNABLE_LOAD_URL','TEXT','max','registerDependencies','RemoveColCommandId','collab-text-range-','_anchor','_scheduleSaving','_render','_online','replace','removeParam','resize','attrs','idSuffix','save','children','debounceTime','rxjs','origin','onTransformChange$','url(#off-line-single_clip0_910_343)','_selfUnitIDs','FETCH_MISS','transformMutation','getCollabEntity$','mapTo','popstate','getActiveSheet','defineProperty','_instanceService','replaceDocRanges','SNAPSHOT_INVALID_SNAPSHOT','IURLService','BrowserCollaborationSocketService','_status$','EMAIL_HAS_BEEN_BOUND','_eventUnsubscribe','touchDependencies','use','@univerjs/sheets','restore','pluginName','_initEntityListener','lineTo','_transformHistoryAndStateStack','getOffsetConfig','fill','status$','Tools','DOC_RANGE_TYPE','InsertColCommandId','_renderManagerService','_uiPartsService','redoState','NOT_COLLAB','UNIVER_DOC','flatMap','Shape','_color','setActiveRange','handleInsertCol','addHandlerCallback','off-line-single','collabStatus.conflict','INotificationService','_hideTimer','trim','sessionTicket'];_0x4565=function(){return _0x299898;};return _0x4565();}
|
|
1
|
+
'use strict';const _0x3719c8=_0x169d;(function(_0x74aedd,_0x132457){const _0x444859=_0x169d,_0x4433b8=_0x74aedd();while(!![]){try{const _0x2b6392=parseInt(_0x444859(0x364))/0x1*(-parseInt(_0x444859(0x255))/0x2)+-parseInt(_0x444859(0x3b3))/0x3+-parseInt(_0x444859(0x3a5))/0x4*(-parseInt(_0x444859(0x1f4))/0x5)+-parseInt(_0x444859(0x307))/0x6*(parseInt(_0x444859(0x1f0))/0x7)+-parseInt(_0x444859(0x2f7))/0x8+-parseInt(_0x444859(0x204))/0x9*(-parseInt(_0x444859(0x2ee))/0xa)+parseInt(_0x444859(0x38f))/0xb;if(_0x2b6392===_0x132457)break;else _0x4433b8['push'](_0x4433b8['shift']());}catch(_0x4a5a6a){_0x4433b8['push'](_0x4433b8['shift']());}}}(_0x2b06,0xa8070));var Ve=Object['defineProperty'],Xe=(_0x328db0,_0x6015f5,_0x3bb267)=>_0x6015f5 in _0x328db0?Ve(_0x328db0,_0x6015f5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bb267}):_0x328db0[_0x6015f5]=_0x3bb267,h=(_0x25d682,_0x230bb3,_0x4ee294)=>Xe(_0x25d682,typeof _0x230bb3!='symbol'?_0x230bb3+'':_0x230bb3,_0x4ee294);Object[_0x3719c8(0x40d)](exports,Symbol[_0x3719c8(0x29d)],{'value':'Module'});const u=require(_0x3719c8(0x30c)),a=require(_0x3719c8(0x28c)),p=require(_0x3719c8(0x3c4)),G=require(_0x3719c8(0x29f)),b=require('@univerjs/docs-ui'),Ge=require(_0x3719c8(0x2e7)),d=require(_0x3719c8(0x366)),F=require(_0x3719c8(0x383)),m=require(_0x3719c8(0x42b)),Ee=require(_0x3719c8(0x396)),g=require('@univerjs/sheets'),$=require(_0x3719c8(0x32e)),X=require(_0x3719c8(0x2e0)),P=require(_0x3719c8(0x3f4)),T=require(_0x3719c8(0x415)),D=require(_0x3719c8(0x26b)),M=require('react'),Ke=require(_0x3719c8(0x33f));var qe=Object[_0x3719c8(0x2b9)],ze=(_0xac40c,_0x3022a8,_0x272295,_0x140398)=>{const _0x2331ff=_0x3719c8;for(var _0x43d412=_0x140398>0x1?void 0x0:_0x140398?qe(_0x3022a8,_0x272295):_0x3022a8,_0x242fd6=_0xac40c[_0x2331ff(0x1e4)]-0x1,_0x48d183;_0x242fd6>=0x0;_0x242fd6--)(_0x48d183=_0xac40c[_0x242fd6])&&(_0x43d412=_0x48d183(_0x43d412)||_0x43d412);return _0x43d412;},Te=(_0x5ec53c,_0x26cf2b)=>(_0x35db79,_0x50d852)=>_0x26cf2b(_0x35db79,_0x50d852,_0x5ec53c);let de=class extends a[_0x3719c8(0x41d)]{constructor(_0x4dbcca,_0x19894a){const _0x58a03b=_0x3719c8;super(),this['_docClipboardService']=_0x4dbcca,this[_0x58a03b(0x30b)]=_0x19894a,this[_0x58a03b(0x41c)]();}[_0x3719c8(0x41c)](){const _0x5e085b=_0x3719c8,_0x20adbe=this;this[_0x5e085b(0x43b)](this[_0x5e085b(0x35d)][_0x5e085b(0x42e)]({'onBeforePasteImage':async _0x5971e4=>{const _0x1a920d=_0x5e085b,_0xd5b055=await _0x20adbe['_imageIoService'][_0x1a920d(0x257)](_0x5971e4);return _0xd5b055?{'source':_0xd5b055[_0x1a920d(0x361)],'imageSourceType':_0xd5b055['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b[_0x3719c8(0x3b8)]),Te(0x1,Ge[_0x3719c8(0x3e1)])],de);const Oe=['purple300',_0x3719c8(0x222),_0x3719c8(0x3a6),_0x3719c8(0x3de),'blue400',_0x3719c8(0x1f8)];class me extends a[_0x3719c8(0x3bd)]{constructor(){const _0x10db15=_0x3719c8;super(...arguments),h(this,_0x10db15(0x3da),new Map()),h(this,'_colorIndex',0x0);}[_0x3719c8(0x1d1)](_0x3d3c75){const _0x175a47=_0x3719c8;if(this[_0x175a47(0x3da)][_0x175a47(0x252)](_0x3d3c75))return this[_0x175a47(0x3da)][_0x175a47(0x263)](_0x3d3c75);const _0x528ec2=Oe[this[_0x175a47(0x2f3)]];return this[_0x175a47(0x2f3)]=(this['_colorIndex']+0x1)%Oe[_0x175a47(0x1e4)],this['_assignedColors'][_0x175a47(0x2e3)](_0x3d3c75,_0x528ec2),_0x528ec2;}}function Pe(_0x42546f){let _0x1a2905='';for(const _0x1ef212 of _0x42546f){const {startOffset:_0x499c93,endOffset:_0x53127f,isActive:_0x57a342,rangeType:_0x932f83,segmentId:_0x28f3a3,segmentPage:_0x52e34b}=_0x1ef212;_0x1a2905['length']&&(_0x1a2905+=','),_0x1a2905+=_0x499c93+':'+_0x53127f+':'+(_0x57a342?'1':'0')+':'+_0x932f83+':'+_0x28f3a3+':'+_0x52e34b;}return _0x1a2905;}function Je(_0x16d732){const _0x17b4e8=_0x3719c8,_0x28b426=_0x16d732[_0x17b4e8(0x2aa)](','),_0x19493f=[];for(const _0x296012 of _0x28b426){const [_0x13d548,_0x5864da,_0x2dcb41,_0xe8d006,_0x45da93,_0x5e0207]=_0x296012['split'](':');_0x19493f['push']({'startOffset':Number(_0x13d548),'endOffset':Number(_0x5864da),'collapsed':_0x13d548===_0x5864da,'isActive':_0x2dcb41==='1','rangeType':_0xe8d006===a[_0x17b4e8(0x2c5)][_0x17b4e8(0x2d5)]?a[_0x17b4e8(0x2c5)][_0x17b4e8(0x2d5)]:a[_0x17b4e8(0x2c5)]['RECT'],'segmentId':typeof _0x45da93=='string'?String(_0x45da93):'','segmentPage':Number(_0x5e0207!=null?_0x5e0207:-0x1)});}return _0x19493f['some'](_0x1f86d7=>_0x1f86d7[_0x17b4e8(0x3a9)])||(_0x19493f[0x0][_0x17b4e8(0x3a9)]=!0x0),_0x19493f;}class Ce extends a['RxDisposable']{constructor(){const _0x26ebd1=_0x3719c8;super(...arguments),h(this,_0x26ebd1(0x314),new d[(_0x26ebd1(0x347))](null)),h(this,_0x26ebd1(0x333),this[_0x26ebd1(0x314)][_0x26ebd1(0x240)]());}[_0x3719c8(0x2e1)](_0x42f39f){const _0x420e09=_0x3719c8,{unitID:_0x2ba189,memberID:_0x41d705,textRanges:_0x2916be}=_0x42f39f,_0x473ae8=Pe(_0x2916be);if(_0x473ae8==='')return;const _0x1e0d9b={'unitID':_0x2ba189,'memberID':_0x41d705,'selection':_0x473ae8};this[_0x420e09(0x314)]['next'](_0x1e0d9b);}}function _0x2b06(){const _0x43838b=['deepClone','Error','_docSkeletonManagerService','_dataLoaderService','trim','onCommandExecuted','getOwnPropertyDescriptor','function','CollaborationUIEventService','LICENSE_DISTRO_REJECTED','_name','event$','evenodd','roomMembers','combineLatest','_instanceService','INVALID_ARGUMENT','exhaustSavingTask','DOC_RANGE_TYPE','CONFLICT','_drawRectRange','off-line-single','getCurrentRevOfUnit','handleIRemoveRow','LocaleService','CollaborationController','UNIVER_SHEET','_updateSubUnitFromURLParams','_document','defs','_range','getRangePointData','#FFF','isTransformMutationFailure','TEXT','APPLY_DUPLICATED','whenReady','on-line-single_clip0_910_349','getCollabCursors$','RefRangeService','handleInsertCol','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','WebSocketService','_clearOtherTimers','loadUnit','@univerjs/sheets-ui','syncEditingCollabCursor','unshift','set','handleDeleteRangeMoveLeft','debug','fillText','@univerjs/drawing','CommandType','_cachedData','_updateCollabCursors','_transformPreviousActiveRange','collabStatus.offline','defIds','67280RBoaMu','executionId','TOO_MANY_REQUESTS','getCurrentUnitForType','ENSURE_SNAPSHOT_EXECUTION','_colorIndex','_hover','skeleton','result','6381424DbnYFV','mask','RegularPolygon','1em','CLOSE_ROOM','size','CollaborationSocketService','top','setConfig','RemoveRowCommandId','off-line-single_clip0_910_343','values','isEditing','CollaborationStatusDisplay','_getAnchorBounding','_initCommandExecutedListener','5587932XPMEvc','font','endColumn','onLocalMutation','_imageIoService','@univerjs-pro/collaboration-client','UnitStatus','unitID','column','APPLY_REVISION_CONFILICT','addObject','CollaborationEvent','distinctUntilChanged','_collabCursorState$','_startSheetCollabCursor','FETCH_MISS','_color','_docSyncEditingCollabCursorService','registerRefRange','save','CONNECTOR_DATA_TOO_LARGE','_httpService','HEADER_MENU','handleDeleteRangeMoveUp','indexOf','getTypeOfUnitAdded$','textRanges','collab-rect-range-','useDependency','LICENSE_IMPORT_SIZE_EXCEEDED','editingUnit','lineTo','pluginName','LOGIN_FAILED','replaceState','searchParams','find','getCoordByCell','INVALID_INVITE_CODE','rxjs/operators','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_selfUnitIDs','USERS_LEAVE','...','collabCursorState$','string','path','getUnitStatus$','transformSelections','_cursors','loadOfflineData','fillStyle','clsx','OnLineSingle','_scheduleClearOtherTimer','merge','@univerjs/rpc','actions','RichTextEditingMutation','LOCAL_CACHE_INTERVAL_KEY','debounce','undoState','_transformUndoRedoStack','stringify','BehaviorSubject','forEach','_eventUnsubscribe','WECHAT_HAS_BEEN_BOUND','map','SNAPSHOT_INVALID_SNAPSHOT','switchMap','YUUMI_RATE_OVER_LIMIT','disableLocalCache','_injector','getCellPositionByOffset','SHEET_VIEWPORT_KEY','getUnhiddenWorksheets','ITransformService','OffLineSingle','_docTransformStateCacheService','_transformHistoryAndStateStack','ONLINE','_backgroundColor','debounceTime','replace','hide','_docClipboardService','prototype','toDisposable','IMessageService','source','CollaborationSessionService','sheetID','31SLdeNS','max','rxjs','onRendered','svg','YUUMI_TABLE_NOT_FOUND_IN_UNIT','MessageType','post','runRefRangeMutations','type','EMAIL_HAS_BEEN_BOUND','_themeService','collabStatus.synced','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','colorChannel1','eventID','status$','SetTextSelectionsOperation','getMemberID','_saveTaskMap','_sheetSkeletonManagerService','onPointerLeave$','collaboration.closeRoom','pipe','name','_scheduleSaving','COMPLETION_FINISHED','Workbook','code','location','forwardRef','@univerjs/docs','Tooltip','range','INVITE_CODE_HAS_BEEN_UES','INTERNAL_ERROR','idSuffix','SNAPSHOT_HAS_BEEN_REMOVED','getCurrentSelections','focused$','connectInjector','onStarting','DocSelectionManagerService','11203060SCqvto','[RemoteUniscriptService]:\x20no\x20focused\x20unit','cursorInfo','_removeClearOtherTimer','MemberService','handleIRemoveCol','children','@univerjs/engine-formula','body','PERMISSION_DENIED','transformByState','_handleLeaveEvent','getAncestorScale','getOwnPropertySymbols','runOnServer','isArray','href','getActiveSheet','createElement','IConfigService','_cursorInfo$','UniverCollaborationClientPlugin','1216216KrHFdy','verdancy600','_commandService','USER_NOT_INVITED_CODE','isActive','[CollaborationDataLoaderController]','0\x200\x2017\x2016','urlChange$','ISocketService','saveTaskMap','SYNCED','UNAUTHENTICATED','transformMutationsWithChangeset','_initEntityListener','740493efOgRx','handleInsertRangeMoveRight','clearInterval','all','_textBubble','IDocClipboardService','M0\x200H16V16H0z','NOT_COLLAB','_initDependencies','transformIMECache','Disposable','DependentOn','_updateURLWithCurrentState','handleInsertRow','BuiltInUIPart','translate(.97)','cursorInfo$','@univerjs/engine-render','_localStorageService','_configService','_urlService','UNIVER_DOC','displayName','_localeService','filter','jsx','_roomMembers$','pushState','tag','YUUMI_NO_CUBOID_FOR_QUESTION','makeDirty','onMouseMove','_entities','IRenderManagerService','deserializeRangeWithSheet','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','selection','_collabCursorController','mergeOverrideWithDependencies','_assignedColors','_disabled','YUUMI_ALL_TABLES_IS_INVALID','DeleteRangeMoveUpCommandId','red300','createSocket','_labelPosition','IImageIoService','_saveCache','delete','fill','Failed','row','clearTimeout','AWAITING_WITH_PENDING','getMember','_collaborationController','SUBMIT_CHANGESET_TIMEOUT','_unitStatus','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','_config','RemoveColCommandId','replaceDocRanges','unit','YUUMI_URL_COL_OUT_OF_RANGE','currentSkeleton$','react/jsx-runtime','APPLY_REJECT','permission.title','add','_toggleOnline','transform','Shape','COLORS','roomMembers$','handleMoveRange','SetWorksheetActivateCommand','executeCommand','_setupSubUnitSync','saveOfflineData','generateRandomId','HTTPService','DesktopCollaborationStatusDisplayController','memberID','url(#on-line-single_clip0_910_349)','hasOwnProperty','getCollabEntity$','_handleHover','getOffsetConfig','LICENSE_EXPORT_SIZE_EXCEEDED','UNRECOGNIZED','defineProperty','mutations','popstate','_status$','Vector2','_context','Tools','onPointerEnter$','@univerjs/ui','entries','_removeCollabCursors','_draw','_session','_cursor','extend','_init','RxDisposable','SetSelectionsOperation','_scene','FromArray','subunit','collaboration.single-unit.warning','on-line-single','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','m2Prime','ILocalCacheService','YUUMI_UNABLE_LOAD_URL','getValue','_collaborationUIEventService','then','@univerjs-pro/collaboration','univer-text-red-500','_toggleOffline','addClipboardHook','data','_notificationService','createInstance','collabStatus.conflict','RevisionService','setTimeout','getSkeleton','_colorAssignService','send','SheetsSelectionsService','INVITE_CODE_REQUIRED','transformMutation','disposeWithMe','_anchorDot','DeleteRangeMoveLeftCommandId','invokeId','engine','UniverInstanceType','resize','runId','INVITE_CODE_ALREADY_BOUND','UPDATE_CURSOR','YUUMI_SUBSCRIPTION_NOT_FOUND','_id','history','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','ColorKit','getUnitId','_memberService','_ensureSubject','useCallback','Inject','round','toString','NOT_FOUND','startColumn','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','collab-text-range-','apply','attrs','assignAColorForMemberID','call','subscribeEvent','getSheetObject','OTHER_CLIENT_EDITING','BrowserCollaborationSocketService','INotificationService','_drawTextRange','_drawAnchor','selections','_heartbeatTimer','addEventListener','doc.mutation.rich-text-editing','subscribe','ACTIVE_UNIT_EVENT_CHANNEL','_docStateChangeManagerService','application/json','DocIMEInputManagerService','getSheetBySheetId','length','_hovered','from','complete','_syncEditingCollabCursorService','subUnitId','getSheetId','getStateCache','collab-text-anchor-','UniverIcon','_transformService','CollaborationDataLoaderController','7yqqeft','push','CollaborationUIEventId','flatMap','15OLJert','getConfig','override','getLocalCacheKey','gold400','InsertRowCommandId','_initEvent','toRgbString','_lastPointer','getColor','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','with','_send','_entityInit$','LOCAL_CACHE_INTERVAL','getRenderById','1296gunulY','uni.network.url-service','requireSession','useObservable','onPointerMove$','CHANGESET_REVISION_CONFILICT','next','_revisionService','registerBeforeClose','bottom','NO_OTHER_CLIENTS_EDITING','_uiPartsService','RECT','_messageService','getFocusedUnit','SheetSkeletonManagerService','dispose','_render','_cursorShapes','_anchor','VIEW_MAIN','wsSessionTicketUrl','throttleTime','MUTATION','IBeforeCloseService','_beforeCloseService','sheetId','YUUMI_AI_RUN_FAILED','_getSheetObject','JOIN_ROOM_FAILED','jiqing500','url(#$1','storage','div','propertyIsEnumerable','concat','EffectRefRangId','_unitOnClients','shareReplay','Rect','getUndoRedoMutationParamsCache','_onCursorDelete','_online','params','setShapeProps','ICommandService','takeUntil','setInterval','assign','substring','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','search','dispose$','univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','Warning','_initResize','ranges','Subject','DocStateChangeManagerService','WebBrowserSingleActiveUnitService','asObservable','measureText','_getScale','_scheduleHeartbeat','_initStatusListener','error','sessionTicket','black','APPLY_NON_SEQUENTIAL_REVISION','activeSheet$','enableLocalCache','_updateLocalCursor','show','getParam','removeParam','unsubscribe','drawWith','getTypeOfUnitDisposed$','has','_shapes','transformRemoteChangeset','15186DxqDiX','APPLY_PERMISSION_DENIED','saveImage','fromEvent','CollaborationStatus','session.will-retry','currentColor','none','IUniverInstanceService','SetDocZoomRatioOperation','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','univer-flex\x20univer-mr-2\x20univer-text-[20px]','init','mapTo','get','min','Injector','width','xlink:href','icon','registerComponent','ALREADY_EXISTS','@univerjs/design','_initStatusComponent','getViewport','_localCacheService','_collabSessionService','_hideTimer','disposeUnit','OTHER_CLIENTS_EDITING','YUUMI_ASYNCIO_CANCELLED','unitId','_docTransformSelectionsService','restore','_handleHeartbeatEvent','url(#off-line-single_clip0_910_343)','AWAITING','setItem','handleInsertRangeMoveDown','setActiveRange','collaboration-client-ui.config','_onCursorUpdate','className','_getSaveTimeout','_univerInstanceService','redoState','triggerDblclick','_docTransformIMECacheService','newValue','transformStateCache','ILocalStorageService','_getSessionTicket','jsxs','SessionStatus','text','@univerjs/core','backgroundColor','#fff','IURLService','fromEventSubject','registerRenderModule','_handleEvent','NodePositionConvertToCursor','Unknown\x20user','setAlpha','_onRefRangeChange','UniverCollaborationClientUIPlugin','_handleJoinEvent','closePath','Optional','UNDEFINED','arc','toStringTag','collabStatus.fetchMiss','@univerjs/network','height','getActiveRange','_refreshCollabCursors','RemoteUniscriptService','color','touchDependencies','m1Prime','_renderManagerService','Rectangle','_refRangeService','split','_setupBeforeClosingHandler','_startDocCollabCursor','getMergeData','serializeRangeWithSheet','parse','_logService','TEXT_RANGE_LAYER_INDEX','Plugin'];_0x2b06=function(){return _0x43838b;};return _0x2b06();}var Ze=Object[_0x3719c8(0x2b9)],Qe=(_0x458676,_0x187143,_0x4fe5f5,_0x289ca9)=>{const _0x421815=_0x3719c8;for(var _0x45da30=_0x289ca9>0x1?void 0x0:_0x289ca9?Ze(_0x187143,_0x4fe5f5):_0x187143,_0x110f41=_0x458676[_0x421815(0x1e4)]-0x1,_0x5c20d5;_0x110f41>=0x0;_0x110f41--)(_0x5c20d5=_0x458676[_0x110f41])&&(_0x45da30=_0x5c20d5(_0x45da30)||_0x45da30);return _0x45da30;},L=(_0x1d72d5,_0x5beabf)=>(_0x4a7f87,_0x538a9c)=>_0x5beabf(_0x4a7f87,_0x538a9c,_0x1d72d5);const et=0x12c,tt=0x64;let fe=class extends a[_0x3719c8(0x41d)]{constructor(_0x5c97b5,_0xb6c8eb,_0x4a9b60,_0x268525,_0x503daa,_0x2b56ce,_0x525891,_0x470cf0,_0x44f72c){const _0x4c7b15=_0x3719c8;super(),h(this,_0x4c7b15(0x22e),!0x1),h(this,_0x4c7b15(0x41c),!0x1),h(this,_0x4c7b15(0x3a3),new d[(_0x4c7b15(0x347))](new Map())),h(this,_0x4c7b15(0x3c3),this[_0x4c7b15(0x3a3)][_0x4c7b15(0x240)]()),h(this,'_roomMembers$',new d['BehaviorSubject']([])),h(this,_0x4c7b15(0x3fc),this[_0x4c7b15(0x3cd)][_0x4c7b15(0x37b)](d[_0x4c7b15(0x35a)](et))),h(this,_0x4c7b15(0x24b),a[_0x4c7b15(0x343)](_0x3f6338=>{const _0x44a8d3=_0x4c7b15,_0x45235c={'eventID':m[_0x44a8d3(0x312)][_0x44a8d3(0x444)],'data':{'unitID':this[_0x44a8d3(0x30e)],'memberID':this[_0x44a8d3(0x419)]['getMemberID'](),'selection':Pe(_0x3f6338)}};this[_0x44a8d3(0x419)]['send'](_0x45235c,this[_0x44a8d3(0x30e)]);},tt)),(this['unitID']=_0x5c97b5,this[_0x4c7b15(0x419)]=_0xb6c8eb,this[_0x4c7b15(0x350)]=_0x4a9b60,this[_0x4c7b15(0x436)]=_0x268525,this[_0x4c7b15(0x44b)]=_0x503daa,this['_syncEditingCollabCursorService']=_0x2b56ce,this['_transformService']=_0x525891,this[_0x4c7b15(0x281)]=_0x470cf0,this[_0x4c7b15(0x3a7)]=_0x44f72c);}get[_0x3719c8(0x391)](){const _0x145ad1=_0x3719c8;return this[_0x145ad1(0x3a3)][_0x145ad1(0x428)]();}get[_0x3719c8(0x2c0)](){const _0x4f09ab=_0x3719c8;return this['_roomMembers$'][_0x4f09ab(0x428)]();}[_0x3719c8(0x214)](){const _0x15bc0a=_0x3719c8;super['dispose'](),this[_0x15bc0a(0x3a3)][_0x15bc0a(0x20a)](new Map()),this[_0x15bc0a(0x3a3)][_0x15bc0a(0x1e7)](),this[_0x15bc0a(0x3cd)]['next']([]),this[_0x15bc0a(0x3cd)][_0x15bc0a(0x1e7)]();}[_0x3719c8(0x261)](){const _0x1f498f=_0x3719c8;this['_init']||(this[_0x1f498f(0x41c)]=!0x0,this['_session']['sessionStatus$'][_0x1f498f(0x37b)](d[_0x1f498f(0x232)](this[_0x1f498f(0x238)]))[_0x1f498f(0x1de)](_0xf4957f=>{const _0x474c59=_0x1f498f;_0xf4957f===u[_0x474c59(0x28a)][_0x474c59(0x358)]?this[_0x474c59(0x3f8)]():this[_0x474c59(0x42d)]();}),this[_0x1f498f(0x419)][_0x1f498f(0x2be)][_0x1f498f(0x37b)](d[_0x1f498f(0x232)](this['dispose$']))['subscribe'](_0x4a0f43=>{const _0x2ad77b=_0x1f498f,_0x371ac5=_0x4a0f43[_0x2ad77b(0x373)];_0x371ac5===m[_0x2ad77b(0x312)][_0x2ad77b(0x444)]&&this['_onCursorUpdate'](_0x4a0f43),_0x371ac5===m[_0x2ad77b(0x312)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x4a0f43);}),this[_0x1f498f(0x43b)](this[_0x1f498f(0x3a7)][_0x1f498f(0x2b8)](_0x35eac9=>{const _0x35d2ec=_0x1f498f,_0x514e09=_0x35eac9['params'];_0x514e09!=null&&this['_online']&&_0x35eac9['id']===F[_0x35d2ec(0x375)]['id']&&_0x514e09[_0x35d2ec(0x274)]===this['unitID']&&_0x514e09[_0x35d2ec(0x303)]===!0x1&&_0x514e09[_0x35d2ec(0x23c)][_0x35d2ec(0x1e4)]>0x0&&this[_0x35d2ec(0x24b)](_0x514e09['ranges']);})),this[_0x1f498f(0x1e8)][_0x1f498f(0x333)][_0x1f498f(0x37b)](d[_0x1f498f(0x232)](this[_0x1f498f(0x238)]))[_0x1f498f(0x1de)](_0x4e10d5=>{const _0x1c6c47=_0x1f498f;if((_0x4e10d5==null?void 0x0:_0x4e10d5[_0x1c6c47(0x30e)])!==this['unitID'])return;const _0x40e0b1={'eventID':m[_0x1c6c47(0x312)][_0x1c6c47(0x444)],'data':_0x4e10d5};this['_onCursorUpdate'](_0x40e0b1);}),this[_0x1f498f(0x43b)](this[_0x1f498f(0x3a7)]['onCommandExecuted'](_0x5a7481=>{const _0x57af1f=_0x1f498f;if(_0x5a7481[_0x57af1f(0x22f)]==null)return;const _0x32bdbe=_0x5a7481[_0x57af1f(0x22f)];if(_0x5a7481['id']!==F[_0x57af1f(0x341)]['id']||_0x32bdbe[_0x57af1f(0x274)]!==this[_0x57af1f(0x30e)])return;const _0x5accaa={'id':_0x57af1f(0x1dd),'params':_0x32bdbe},_0x508f71=this['cursorInfo'];for(const [_0x3b996f,_0x487ade]of _0x508f71){const _0x570ebf={'id':_0x57af1f(0x1dd),'params':{'unitId':this[_0x57af1f(0x30e)],'actions':null,'textRanges':_0x487ade[_0x57af1f(0x23c)]}},_0x1d08fd=this[_0x57af1f(0x1ee)][_0x57af1f(0x43a)](_0x5accaa,_0x570ebf,!0x1);if(m[_0x57af1f(0x2d4)](_0x1d08fd))throw _0x1d08fd['error'];_0x508f71[_0x57af1f(0x2e3)](_0x3b996f,{..._0x487ade,'ranges':_0x1d08fd[_0x57af1f(0x425)][_0x57af1f(0x22f)][_0x57af1f(0x321)]});}queueMicrotask(()=>{const _0x221b07=_0x57af1f;this[_0x221b07(0x3a3)][_0x221b07(0x20a)](_0x508f71);});})));}['_onCursorUpdate'](_0x3dece9){const _0x2732fc=_0x3719c8;var _0x2a7c60,_0x16f46c;const {memberID:_0x35a9e0,selection:_0x31b82d}=_0x3dece9['data'],_0xff4970=Je(_0x31b82d),_0x226cb1=(_0x16f46c=(_0x2a7c60=this['_memberService'][_0x2732fc(0x3e9)](this[_0x2732fc(0x30e)],_0x35a9e0))==null?void 0x0:_0x2a7c60['name'])!=null?_0x16f46c:_0x2732fc(0x294),_0x1a34ec={'color':this[_0x2732fc(0x436)]['assignAColorForMemberID'](_0x35a9e0),'name':_0x226cb1,'ranges':_0xff4970},_0xabc0aa=this[_0x2732fc(0x391)];_0xabc0aa['set'](_0x35a9e0,_0x1a34ec),this[_0x2732fc(0x3a3)][_0x2732fc(0x20a)](_0xabc0aa);}[_0x3719c8(0x22d)](_0x12510d){const _0x3137ce=_0x3719c8,{memberID:_0x47c31a}=_0x12510d[_0x3137ce(0x42f)],_0x2d5385=this[_0x3137ce(0x391)];_0x2d5385['delete'](_0x47c31a),this[_0x3137ce(0x3a3)][_0x3137ce(0x20a)](_0x2d5385);}[_0x3719c8(0x3f8)](){const _0x5ea329=_0x3719c8;var _0x50c0c5;if(this[_0x5ea329(0x22e)]=!0x0,((_0x50c0c5=this['_univerInstanceService'][_0x5ea329(0x212)]())==null?void 0x0:_0x50c0c5[_0x5ea329(0x44a)]())!==this[_0x5ea329(0x30e)])return;const _0x317804=this[_0x5ea329(0x350)][_0x5ea329(0x263)](F['DocSelectionManagerService'])['getDocRanges']();Array[_0x5ea329(0x39e)](_0x317804)&&_0x317804[_0x5ea329(0x1e4)]>0x0&&this[_0x5ea329(0x24b)](_0x317804);}['_toggleOffline'](){const _0x38ddcc=_0x3719c8;this[_0x38ddcc(0x22e)]=!0x1;}};fe=Qe([L(0x2,a[_0x3719c8(0x44e)](a['Injector'])),L(0x3,a[_0x3719c8(0x44e)](me)),L(0x4,a[_0x3719c8(0x44e)](u[_0x3719c8(0x393)])),L(0x5,a[_0x3719c8(0x44e)](Ce)),L(0x6,m[_0x3719c8(0x354)]),L(0x7,a[_0x3719c8(0x25d)]),L(0x8,a[_0x3719c8(0x231)])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x5cad00,_0x5c5248,_0x265f12,_0x49b4a2)=>{const _0x2d8770=_0x3719c8;for(var _0x1e79f2=_0x49b4a2>0x1?void 0x0:_0x49b4a2?st(_0x5c5248,_0x265f12):_0x5c5248,_0x5814b9=_0x5cad00[_0x2d8770(0x1e4)]-0x1,_0xa9062d;_0x5814b9>=0x0;_0x5814b9--)(_0xa9062d=_0x5cad00[_0x5814b9])&&(_0x1e79f2=_0xa9062d(_0x1e79f2)||_0x1e79f2);return _0x1e79f2;},w=(_0x4682c3,_0x2489da)=>(_0x572050,_0x388e7d)=>_0x2489da(_0x572050,_0x388e7d,_0x4682c3);const nt=0x12c,rt=0x64,ot=()=>{let _0x19f63e=[],_0x3eabc9=!0x1;return _0x3ae8b6=>{_0x19f63e['push'](_0x3ae8b6),_0x3eabc9||(_0x3eabc9=!0x0,setTimeout(()=>{const _0x1226a0=_0x169d;_0x19f63e[_0x1226a0(0x348)](_0x46f781=>_0x46f781()),_0x19f63e=[],_0x3eabc9=!0x1;}));};};let Se=class extends a[_0x3719c8(0x41d)]{constructor(_0x800309,_0x14b578,_0x29ba55,_0x3f8794,_0x2cfb55,_0x277c5d,_0x1009d8,_0x58e595){const _0x6d8547=_0x3719c8;super(),h(this,_0x6d8547(0x22e),!0x1),h(this,_0x6d8547(0x41c),!0x1),h(this,'_cursorInfo$',new d[(_0x6d8547(0x347))](new Map())),h(this,_0x6d8547(0x3c3),this[_0x6d8547(0x3a3)]['asObservable']()),h(this,_0x6d8547(0x3cd),new d['BehaviorSubject']([])),h(this,_0x6d8547(0x3fc),this['_roomMembers$']['pipe'](d[_0x6d8547(0x35a)](nt))),h(this,'_updateLocalCursor',a['debounce']((_0x4025cd,_0x53416e)=>{const _0x43f919=_0x6d8547,_0x2989df={'eventID':m[_0x43f919(0x312)][_0x43f919(0x444)],'data':{'unitID':this[_0x43f919(0x30e)],'memberID':this[_0x43f919(0x419)][_0x43f919(0x376)](),'selection':Ee[_0x43f919(0x2ae)](_0x4025cd,_0x53416e[_0x43f919(0x385)])}};this[_0x43f919(0x419)][_0x43f919(0x437)](_0x2989df,this[_0x43f919(0x30e)]);},rt)),(this[_0x6d8547(0x30e)]=_0x800309,this[_0x6d8547(0x419)]=_0x14b578,this[_0x6d8547(0x350)]=_0x29ba55,this[_0x6d8547(0x436)]=_0x3f8794,this['_memberService']=_0x2cfb55,this[_0x6d8547(0x281)]=_0x277c5d,this[_0x6d8547(0x3a7)]=_0x1009d8,this[_0x6d8547(0x2a9)]=_0x58e595);}get['cursorInfo'](){const _0x51ed83=_0x3719c8;return this[_0x51ed83(0x3a3)]['getValue']();}get[_0x3719c8(0x2c0)](){const _0x18396e=_0x3719c8;return this[_0x18396e(0x3cd)][_0x18396e(0x428)]();}['dispose'](){const _0x933503=_0x3719c8;super[_0x933503(0x214)](),this['_cursorInfo$']['next'](new Map()),this[_0x933503(0x3a3)][_0x933503(0x1e7)](),this[_0x933503(0x3cd)][_0x933503(0x20a)]([]),this['_roomMembers$']['complete']();}[_0x3719c8(0x261)](){const _0x7d8fe1=_0x3719c8;this[_0x7d8fe1(0x41c)]||(this[_0x7d8fe1(0x41c)]=!0x0,this[_0x7d8fe1(0x419)]['sessionStatus$'][_0x7d8fe1(0x37b)](d[_0x7d8fe1(0x232)](this[_0x7d8fe1(0x238)]))[_0x7d8fe1(0x1de)](_0x4f1eb7=>{const _0x446d36=_0x7d8fe1;_0x4f1eb7===u[_0x446d36(0x28a)][_0x446d36(0x358)]?this[_0x446d36(0x3f8)]():this['_toggleOffline']();}),this['_session']['event$'][_0x7d8fe1(0x37b)](d[_0x7d8fe1(0x232)](this[_0x7d8fe1(0x238)]))[_0x7d8fe1(0x1de)](_0x401a67=>{const _0x4e5960=_0x7d8fe1,_0x54ab03=_0x401a67['eventID'];_0x54ab03===m[_0x4e5960(0x312)][_0x4e5960(0x444)]&&this['_onCursorUpdate'](_0x401a67),_0x54ab03===m[_0x4e5960(0x312)][_0x4e5960(0x331)]&&this['_onCursorDelete'](_0x401a67);}),this[_0x7d8fe1(0x296)](),this[_0x7d8fe1(0x43b)](this[_0x7d8fe1(0x3a7)][_0x7d8fe1(0x2b8)](_0x2c8444=>{const _0x289809=_0x7d8fe1;if(this['_online']&&_0x2c8444['id']===g[_0x289809(0x41e)]['id']&&_0x2c8444['params'][_0x289809(0x274)]===this[_0x289809(0x30e)]){const _0x153785=_0x2c8444[_0x289809(0x22f)];this[_0x289809(0x24b)](_0x153785[_0x289809(0x1e9)],_0x153785[_0x289809(0x1da)][0x0]);}})));}[_0x3719c8(0x27e)](_0x1d38a4){const _0x20af81=_0x3719c8;var _0x2fcd9e,_0x356ace;const {memberID:_0x2f9bea,selection:_0x388993}=_0x1d38a4[_0x20af81(0x42f)],{sheetName:_0x28a9c9,range:_0xff9e23}=Ee[_0x20af81(0x3d5)](_0x388993),_0x54838f={'name':(_0x356ace=(_0x2fcd9e=this[_0x20af81(0x44b)]['getMember'](this[_0x20af81(0x30e)],_0x2f9bea))==null?void 0x0:_0x2fcd9e['name'])!=null?_0x356ace:_0x20af81(0x294),'range':this['_getMergeRange'](_0x28a9c9,_0xff9e23),'sheetID':_0x28a9c9,'color':this[_0x20af81(0x436)][_0x20af81(0x1d1)](_0x2f9bea),'selection':_0x388993},_0xffdd1d=this[_0x20af81(0x391)];_0xffdd1d[_0x20af81(0x2e3)](_0x2f9bea,_0x54838f),this[_0x20af81(0x3a3)]['next'](_0xffdd1d);}[_0x3719c8(0x22d)](_0x30d69c){const _0x11972c=_0x3719c8,{memberID:_0x1659eb}=_0x30d69c[_0x11972c(0x42f)],_0x250aa3=this[_0x11972c(0x391)];_0x250aa3[_0x11972c(0x3e3)](_0x1659eb),this[_0x11972c(0x3a3)][_0x11972c(0x20a)](_0x250aa3);}['_getMergeRange'](_0x4bbc0b,_0x42a7f7){const _0x397fee=_0x3719c8;var _0x1ee2b3,_0x8a3a4f;const _0xa8198a=(_0x8a3a4f=(_0x1ee2b3=this[_0x397fee(0x281)]['getUniverSheetInstance'](this[_0x397fee(0x30e)]))==null?void 0x0:_0x1ee2b3[_0x397fee(0x1e3)](_0x4bbc0b))==null?void 0x0:_0x8a3a4f[_0x397fee(0x2ad)]();return(_0xa8198a==null?void 0x0:_0xa8198a[_0x397fee(0x32b)](_0x2435d6=>a[_0x397fee(0x2a8)]['contains'](_0x2435d6,_0x42a7f7)))||_0x42a7f7;}[_0x3719c8(0x296)](){const _0x56304d=_0x3719c8,_0x42535a=new a['DisposableCollection'](),_0x5bdee5=ot(),_0x535a80=()=>{const _0x31a7aa=_0x169d;_0x42535a[_0x31a7aa(0x214)]();const _0x250edd=(_0x3691a2,_0xaeee68,_0x394dc8,_0xde908c)=>{const _0x2ce254=_0x31a7aa;let _0x2399d4=[];switch(_0x3691a2['id']){case g[_0x2ce254(0x228)][_0x2ce254(0x43d)]:{_0x2399d4=g[_0x2ce254(0x2e4)](_0x3691a2,_0xde908c);break;}case g[_0x2ce254(0x228)][_0x2ce254(0x3dd)]:{_0x2399d4=g[_0x2ce254(0x31e)](_0x3691a2,_0xde908c);break;}case g[_0x2ce254(0x228)]['InsertColCommandId']:{_0x2399d4=g[_0x2ce254(0x2db)](_0x3691a2,_0xde908c);break;}case g[_0x2ce254(0x228)]['InsertRangeMoveDownCommandId']:{_0x2399d4=g[_0x2ce254(0x27b)](_0x3691a2,_0xde908c);break;}case g[_0x2ce254(0x228)]['InsertRangeMoveRightCommandId']:{_0x2399d4=g[_0x2ce254(0x3b4)](_0x3691a2,_0xde908c);break;}case g['EffectRefRangId'][_0x2ce254(0x1f9)]:{_0x2399d4=g[_0x2ce254(0x3c0)](_0x3691a2,_0xde908c);break;}case g[_0x2ce254(0x228)]['MoveRangeCommandId']:{_0x2399d4=g[_0x2ce254(0x3fd)](_0x3691a2,_0xde908c);break;}case g[_0x2ce254(0x228)][_0x2ce254(0x3ef)]:{_0x2399d4=g[_0x2ce254(0x394)](_0x3691a2,_0xde908c);break;}case g[_0x2ce254(0x228)][_0x2ce254(0x300)]:{_0x2399d4=g[_0x2ce254(0x2ca)](_0x3691a2,_0xde908c);break;}}const _0x4f8165=g[_0x2ce254(0x36c)](_0x2399d4,_0xde908c),_0x449c7f=this[_0x2ce254(0x391)][_0x2ce254(0x263)](_0xaeee68);if(_0x449c7f&&_0x4f8165){const _0x400a10={..._0x449c7f,'range':_0x4f8165};this[_0x2ce254(0x391)]['set'](_0xaeee68,_0x400a10),_0x5bdee5(()=>{const _0x387a36=_0x2ce254,_0x25182d=this[_0x387a36(0x2a9)][_0x387a36(0x319)](_0x4f8165,_0x1ac708=>(_0x25182d[_0x387a36(0x214)](),_0x250edd(_0x1ac708,_0xaeee68,_0x394dc8,_0x4f8165)));_0x42535a[_0x387a36(0x3f7)](_0x25182d);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x31a7aa(0x348)]((_0x5ab23f,_0x5d8476)=>{const _0x3e2c5d=_0x31a7aa,{range:_0x270d1c,sheetID:_0x3cfb9e}=_0x5ab23f,_0x31b214=this['_refRangeService']['registerRefRange'](_0x270d1c,_0x484bc8=>(_0x31b214[_0x3e2c5d(0x214)](),_0x250edd(_0x484bc8,_0x5d8476,_0x3cfb9e,_0x270d1c)));_0x42535a[_0x3e2c5d(0x3f7)](_0x31b214);});};this[_0x56304d(0x43b)](a['toDisposable'](this[_0x56304d(0x3a3)][_0x56304d(0x1de)](()=>{_0x535a80();})));}[_0x3719c8(0x3f8)](){const _0x21af46=_0x3719c8;var _0x33f72a,_0x517d99;if(this[_0x21af46(0x22e)]=!0x0,((_0x33f72a=this[_0x21af46(0x281)][_0x21af46(0x212)]())==null?void 0x0:_0x33f72a['getUnitId']())!==this[_0x21af46(0x30e)])return;const _0x5028bd=(_0x517d99=this[_0x21af46(0x350)]['get'](g[_0x21af46(0x438)])[_0x21af46(0x38a)]())==null?void 0x0:_0x517d99[0x0],_0xc0a77=this[_0x21af46(0x281)][_0x21af46(0x2f1)](a[_0x21af46(0x440)][_0x21af46(0x2cd)])['getActiveSheet']();_0x5028bd&&_0xc0a77&&this[_0x21af46(0x24b)](_0xc0a77[_0x21af46(0x1ea)](),_0x5028bd);}[_0x3719c8(0x42d)](){this['_online']=!0x1;}};Se=it([w(0x2,a[_0x3719c8(0x44e)](a[_0x3719c8(0x265)])),w(0x3,a[_0x3719c8(0x44e)](me)),w(0x4,a[_0x3719c8(0x44e)](u[_0x3719c8(0x393)])),w(0x5,a[_0x3719c8(0x25d)]),w(0x6,a['ICommandService']),w(0x7,a['Inject'](g[_0x3719c8(0x2da)]))],Se);var at=Object[_0x3719c8(0x2b9)],ct=(_0x3338e4,_0x2becca,_0x366350,_0x32240e)=>{const _0x4d0257=_0x3719c8;for(var _0x27ae5e=_0x32240e>0x1?void 0x0:_0x32240e?at(_0x2becca,_0x366350):_0x2becca,_0x38ef20=_0x3338e4[_0x4d0257(0x1e4)]-0x1,_0x47cd84;_0x38ef20>=0x0;_0x38ef20--)(_0x47cd84=_0x3338e4[_0x38ef20])&&(_0x27ae5e=_0x47cd84(_0x27ae5e)||_0x27ae5e);return _0x27ae5e;},ie=(_0xffacd8,_0x30b759)=>(_0x551e5e,_0x4f8120)=>_0x30b759(_0x551e5e,_0x4f8120,_0xffacd8);let x=class extends a[_0x3719c8(0x41d)]{constructor(_0x40dd4d,_0x4572ad,_0x2360c6){const _0x373d2c=_0x3719c8;super(),h(this,_0x373d2c(0x3d3),new Map()),h(this,'_entityInit$',new d[(_0x373d2c(0x23d))]()),(this[_0x373d2c(0x281)]=_0x40dd4d,this[_0x373d2c(0x350)]=_0x4572ad,this[_0x373d2c(0x26f)]=_0x2360c6,this['_init']());}[_0x3719c8(0x214)](){const _0x43b7bd=_0x3719c8;super['dispose'](),this[_0x43b7bd(0x201)][_0x43b7bd(0x1e7)](),this[_0x43b7bd(0x3d3)][_0x43b7bd(0x348)](_0x572cdd=>_0x572cdd[_0x43b7bd(0x214)]());}[_0x3719c8(0x2d9)](_0x44f8ef){const _0x488e5c=_0x3719c8;return this[_0x488e5c(0x3d3)][_0x488e5c(0x252)](_0x44f8ef)?this[_0x488e5c(0x3d3)][_0x488e5c(0x263)](_0x44f8ef)[_0x488e5c(0x3c3)]:this[_0x488e5c(0x201)][_0x488e5c(0x37b)](d[_0x488e5c(0x3cb)](_0xdfc8f2=>_0xdfc8f2['unitID']===_0x44f8ef),d[_0x488e5c(0x34d)](_0xa3d97a=>_0xa3d97a[_0x488e5c(0x3c3)]));}[_0x3719c8(0x41c)](){const _0x3e347f=_0x3719c8;this[_0x3e347f(0x281)]['getTypeOfUnitAdded$'](a[_0x3e347f(0x440)][_0x3e347f(0x2cd)])[_0x3e347f(0x37b)](d['takeUntil'](this[_0x3e347f(0x238)]))[_0x3e347f(0x1de)](async _0x322840=>{const _0xdaabd1=_0x3e347f,_0x40c4e=_0x322840[_0xdaabd1(0x44a)](),_0x8edc82=await this[_0xdaabd1(0x315)](_0x40c4e);this[_0xdaabd1(0x201)][_0xdaabd1(0x20a)](_0x8edc82),this['_entities'][_0xdaabd1(0x2e3)](_0x40c4e,_0x8edc82);}),this[_0x3e347f(0x281)][_0x3e347f(0x320)](a[_0x3e347f(0x440)][_0x3e347f(0x3c8)])[_0x3e347f(0x37b)](d[_0x3e347f(0x232)](this['dispose$']))[_0x3e347f(0x37b)](d[_0x3e347f(0x3cb)](_0x231484=>!_0x231484[_0x3e347f(0x44a)]()['startsWith']('__')))['subscribe'](async _0x9cdba5=>{const _0x28b10d=_0x3e347f,_0x1188bd=_0x9cdba5[_0x28b10d(0x44a)](),_0x52e490=await this[_0x28b10d(0x2ac)](_0x1188bd);this['_entityInit$'][_0x28b10d(0x20a)](_0x52e490),this[_0x28b10d(0x3d3)][_0x28b10d(0x2e3)](_0x1188bd,_0x52e490);}),d[_0x3e347f(0x33e)](this['_univerInstanceService'][_0x3e347f(0x251)](a[_0x3e347f(0x440)][_0x3e347f(0x3c8)]),this[_0x3e347f(0x281)][_0x3e347f(0x251)](a[_0x3e347f(0x440)][_0x3e347f(0x2cd)]))[_0x3e347f(0x37b)](d[_0x3e347f(0x232)](this['dispose$']))['subscribe'](_0x5d4637=>{const _0x5f43d9=_0x3e347f,_0x5139c0=_0x5d4637['getUnitId'](),_0x40a2a6=this[_0x5f43d9(0x3d3)]['get'](_0x5139c0);_0x40a2a6&&(_0x40a2a6[_0x5f43d9(0x214)](),this[_0x5f43d9(0x3d3)][_0x5f43d9(0x3e3)](_0x5139c0));});}async[_0x3719c8(0x315)](_0x447884){const _0x5df5b9=_0x3719c8,_0x399ed0=await this[_0x5df5b9(0x26f)][_0x5df5b9(0x206)](_0x447884),_0x209582=this[_0x5df5b9(0x350)][_0x5df5b9(0x431)](Se,_0x447884,_0x399ed0);return _0x209582[_0x5df5b9(0x261)](),_0x209582;}async[_0x3719c8(0x2ac)](_0x1aefc6){const _0x210367=_0x3719c8,_0x122d23=await this[_0x210367(0x26f)][_0x210367(0x206)](_0x1aefc6),_0x4c205d=this[_0x210367(0x350)][_0x210367(0x431)](fe,_0x1aefc6,_0x122d23);return _0x4c205d['init'](),_0x4c205d;}};x=ct([ie(0x0,a[_0x3719c8(0x25d)]),ie(0x1,a[_0x3719c8(0x44e)](a[_0x3719c8(0x265)])),ie(0x2,a[_0x3719c8(0x44e)](u[_0x3719c8(0x362)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x40e02f,_0x453cb8){const _0x184a8c=_0x3719c8;let {radius:_0x2aeb3f,width:_0x59ddf5,height:_0x275f1c}=_0x453cb8;_0x2aeb3f=_0x2aeb3f!=null?_0x2aeb3f:0x0,_0x59ddf5=_0x59ddf5!=null?_0x59ddf5:0x1e,_0x275f1c=_0x275f1c!=null?_0x275f1c:0x1e;let _0x2b3e60=0x0,_0x4978d0=0x0,_0x3f3b91=0x0;_0x2b3e60=_0x4978d0=_0x3f3b91=Math[_0x184a8c(0x264)](_0x2aeb3f,_0x59ddf5/0x2,_0x275f1c/0x2),_0x40e02f['beginPath'](),_0x40e02f['moveTo'](_0x2b3e60,0x0),_0x40e02f['lineTo'](_0x59ddf5-_0x4978d0,0x0),_0x40e02f[_0x184a8c(0x29c)](_0x59ddf5-_0x4978d0,_0x4978d0,_0x4978d0,Math['PI']*0x3/0x2,0x0,!0x1),_0x40e02f[_0x184a8c(0x326)](_0x59ddf5,_0x275f1c-_0x3f3b91),_0x40e02f[_0x184a8c(0x29c)](_0x59ddf5-_0x3f3b91,_0x275f1c-_0x3f3b91,_0x3f3b91,0x0,Math['PI']/0x2,!0x1),_0x40e02f[_0x184a8c(0x326)](0x0,_0x275f1c),_0x40e02f[_0x184a8c(0x326)](0x0,_0x2b3e60),_0x40e02f['arc'](_0x2b3e60,_0x2b3e60,_0x2b3e60,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x40e02f[_0x184a8c(0x299)](),_0x453cb8['fill']&&(_0x40e02f[_0x184a8c(0x31a)](),_0x40e02f[_0x184a8c(0x33a)]=_0x453cb8['fill'],_0x453cb8['fillRule']===_0x184a8c(0x2bf)?_0x40e02f[_0x184a8c(0x3e4)](_0x184a8c(0x2bf)):_0x40e02f[_0x184a8c(0x3e4)](),_0x40e02f[_0x184a8c(0x276)]());}function _0x169d(_0x715826,_0x3c5206){const _0x2b0619=_0x2b06();return _0x169d=function(_0x169d9b,_0x497e33){_0x169d9b=_0x169d9b-0x1c9;let _0x2b7106=_0x2b0619[_0x169d9b];return _0x2b7106;},_0x169d(_0x715826,_0x3c5206);}class ee extends p[_0x3719c8(0x3fa)]{constructor(_0x5e85fd,_0x16bdc3){const _0x1ff7a1=_0x3719c8;super(_0x5e85fd,_0x16bdc3),h(this,_0x1ff7a1(0x2a4)),h(this,_0x1ff7a1(0x28b)),(this[_0x1ff7a1(0x2a4)]=_0x16bdc3==null?void 0x0:_0x16bdc3[_0x1ff7a1(0x2a4)],this[_0x1ff7a1(0x28b)]=_0x16bdc3==null?void 0x0:_0x16bdc3['text']);}static[_0x3719c8(0x250)](_0x3b3f21,_0x1a9e8b){const _0x2c4fd2=_0x3719c8,{text:_0x60c1d0,color:_0x1f66dc}=_0x1a9e8b;_0x3b3f21['save'](),_0x3b3f21[_0x2c4fd2(0x308)]=_0x2c4fd2(0x1fe);const _0x38e5d7=_0x3b3f21[_0x2c4fd2(0x241)](_0x60c1d0)['width'],_0x1293d5=Math[_0x2c4fd2(0x264)](_0x38e5d7+0x2*ne,Re);_t(_0x3b3f21,{'height':K,'radius':0x4,'width':_0x1293d5,'fill':_0x1f66dc}),_0x3b3f21[_0x2c4fd2(0x33a)]=_0x2c4fd2(0x2d3);const _0x2a7b88=ne,_0xd843aa=K-lt,_0x4639bc=Re-0x2*ne;if(_0x38e5d7>_0x4639bc){let _0x4b3a39='',_0x2b97c3=0x0;for(const _0x32ddf4 of _0x60c1d0){const _0x542f54=_0x3b3f21['measureText'](_0x32ddf4)[_0x2c4fd2(0x266)];if(_0x2b97c3+_0x542f54<=_0x4639bc-_0x3b3f21[_0x2c4fd2(0x241)](_0x2c4fd2(0x332))[_0x2c4fd2(0x266)])_0x4b3a39+=_0x32ddf4,_0x2b97c3+=_0x542f54;else{_0x4b3a39+='...';break;}}_0x3b3f21['fillText'](_0x4b3a39,_0x2a7b88,_0xd843aa);}else _0x3b3f21[_0x2c4fd2(0x2e6)](_0x60c1d0,_0x2a7b88,_0xd843aa);_0x3b3f21[_0x2c4fd2(0x276)]();}[_0x3719c8(0x418)](_0x30e179){const _0x3defb2=_0x3719c8;ee[_0x3defb2(0x250)](_0x30e179,this);}}const re=_0x3719c8(0x1ec),ht=_0x3719c8(0x1ce),ut=_0x3719c8(0x322),k=0x6,dt=1.5,oe=0x4,ft=1.5,St='rgba(255,\x20255,\x20255,\x200.01)';class De{constructor(_0x318e88,_0x1b0c3d,_0x52813c,_0x50766a){const _0x12c7fb=_0x3719c8;h(this,_0x12c7fb(0x253),[]),h(this,_0x12c7fb(0x217),null),h(this,'_textBubble',null),h(this,'_anchorDot',null),h(this,'_hideTimer',null),h(this,_0x12c7fb(0x349),null),(this[_0x12c7fb(0x41a)]=_0x318e88,this[_0x12c7fb(0x41f)]=_0x1b0c3d,this['_docSkeleton']=_0x52813c,this[_0x12c7fb(0x2cf)]=_0x50766a,this[_0x12c7fb(0x215)]());}set[_0x3719c8(0x2f4)](_0x595be9){const _0xa95667=_0x3719c8;_0x595be9?(this[_0xa95667(0x43c)]&&this[_0xa95667(0x43c)][_0xa95667(0x35c)](),this[_0xa95667(0x3b7)]&&this[_0xa95667(0x3b7)][_0xa95667(0x24c)]()):(this[_0xa95667(0x43c)]&&this['_anchorDot']['show'](),this['_textBubble']&&this[_0xa95667(0x3b7)][_0xa95667(0x35c)]());}[_0x3719c8(0x214)](){const _0x2a1d9c=_0x3719c8;for(const _0x2b0abb of this['_shapes'])_0x2b0abb['dispose']();this['_textBubble']&&this[_0x2a1d9c(0x3b7)][_0x2a1d9c(0x214)](),this[_0x2a1d9c(0x43c)]&&this[_0x2a1d9c(0x43c)][_0x2a1d9c(0x214)](),this['_anchor']&&this['_anchor'][_0x2a1d9c(0x214)](),this[_0x2a1d9c(0x349)]&&this[_0x2a1d9c(0x349)]();}[_0x3719c8(0x215)](){const _0x53c134=_0x3719c8;var _0x5b40fa;const {_docSkeleton:_0x23f44d,_document:_0x3754f8}=this,{color:_0x504b91,name:_0x2d839c,ranges:_0x476b30}=this['_cursor'],_0x528d2d=_0x3754f8[_0x53c134(0x40a)](),{docsLeft:_0x2de3f3,docsTop:_0x5f023e}=_0x528d2d,_0x3d87f4=new b[(_0x53c134(0x293))](_0x528d2d,_0x23f44d);for(const {startOffset:_0x433049,endOffset:_0x3c2f37,rangeType:_0xc77c48,segmentId:_0x280f0e,segmentPage:_0x1e3d85,collapsed:_0x275f05,isActive:_0x5809b2}of _0x476b30){const _0x236f85=_0x23f44d['findNodePositionByCharIndex'](_0x433049,!0x0,_0x280f0e,_0x1e3d85);let _0x2d2c2c=_0x23f44d['findNodePositionByCharIndex'](_0x3c2f37,!0x0,_0x280f0e,_0x1e3d85);if(_0x2d2c2c==null&&(_0x2d2c2c=_0x23f44d['findNodePositionByCharIndex'](_0x3c2f37-0x1,!0x1,_0x280f0e,_0x1e3d85)),_0x5809b2){const {contentBoxPointGroup:_0x254fb2}=_0x3d87f4['getRangePointData'](_0x2d2c2c,_0x2d2c2c);if(_0x254fb2['length']===0x0)continue;this[_0x53c134(0x1d9)](_0x504b91,_0x254fb2,_0x2de3f3,_0x5f023e,_0x2d839c),this['_eventUnsubscribe']=this['_handleHover']();}if(_0x236f85&&_0x2d2c2c){if(_0xc77c48===a['DOC_RANGE_TYPE'][_0x53c134(0x210)]){const _0x356a6a=new b['NodePositionConvertToRectRange'](_0x528d2d,_0x23f44d),{pointGroup:_0x23a859}=(_0x5b40fa=_0x356a6a[_0x53c134(0x2d2)](_0x236f85,_0x2d2c2c))!=null?_0x5b40fa:{};if(_0x23a859==null||_0x23a859['length']===0x0)continue;this[_0x53c134(0x2c7)](_0x504b91,_0x23a859,_0x2de3f3,_0x5f023e);}else{if(!_0x275f05){const {borderBoxPointGroup:_0x270627}=_0x3d87f4[_0x53c134(0x2d2)](_0x236f85,_0x2d2c2c);if(_0x270627[_0x53c134(0x1e4)]===0x0)continue;this[_0x53c134(0x1d8)](_0x504b91,_0x270627,_0x2de3f3,_0x5f023e);}}}}}[_0x3719c8(0x1d9)](_0x777215,_0x386b4a,_0x3e5c93,_0x557dfb,_0x311798){const _0x115f19=_0x3719c8,_0xba2697=this[_0x115f19(0x305)](_0x386b4a),{left:_0xd768ea,top:_0x44ba93,height:_0x335a2e}=_0xba2697,_0x3b40c9=this[_0x115f19(0x242)](),_0x310036=ft/_0x3b40c9,_0xe3300b=new p[(_0x115f19(0x22b))](re+a[_0x115f19(0x413)]['generateRandomId'](k),{'left':_0xd768ea+_0x3e5c93-_0x310036,'top':_0x44ba93+_0x557dfb,'height':_0x335a2e,'width':dt,'fill':_0x777215||p[_0x115f19(0x1fd)](a[_0x115f19(0x3fb)][_0x115f19(0x247)],0x0),'strokeWidth':_0x310036,'stroke':St,'evented':!0x0});this[_0x115f19(0x217)]=_0xe3300b,this[_0x115f19(0x41f)][_0x115f19(0x311)](_0xe3300b,b[_0x115f19(0x2b1)]);const _0x376362=new p['Rect'](re+a[_0x115f19(0x413)]['generateRandomId'](k),{'left':_0xd768ea+_0x3e5c93-_0x310036,'top':_0x44ba93+_0x557dfb-oe/0x2,'height':oe,'width':oe,'fill':_0x777215||p[_0x115f19(0x1fd)](a[_0x115f19(0x3fb)][_0x115f19(0x247)],0x0),'strokeWidth':0x0,'stroke':_0x777215||p[_0x115f19(0x1fd)](a[_0x115f19(0x3fb)][_0x115f19(0x247)],0x0),'evented':!0x1});this[_0x115f19(0x43c)]=_0x376362,this[_0x115f19(0x41f)][_0x115f19(0x311)](_0x376362,b[_0x115f19(0x2b1)]);const _0x28fe59=new ee(re+a[_0x115f19(0x413)][_0x115f19(0x402)](k),{'left':_0xd768ea+_0x3e5c93-_0x310036,'top':_0x44ba93+_0x557dfb-K,'text':_0x311798,'color':_0x777215});this[_0x115f19(0x3b7)]=_0x28fe59,this[_0x115f19(0x41f)][_0x115f19(0x311)](_0x28fe59,b['TEXT_RANGE_LAYER_INDEX']),this[_0x115f19(0x2f4)]=!0x1;}[_0x3719c8(0x409)](){const _0x51e6e9=_0x3719c8,_0x5c3089=this['_anchor'][_0x51e6e9(0x414)]['subscribeEvent'](()=>{const _0x18ceb1=_0x51e6e9;this[_0x18ceb1(0x2f4)]=!0x0;}),_0x52dc04=this[_0x51e6e9(0x217)][_0x51e6e9(0x379)][_0x51e6e9(0x1d3)](()=>{const _0x52f67d=_0x51e6e9;this['_hideTimer']&&clearTimeout(this[_0x52f67d(0x270)]),this[_0x52f67d(0x270)]=setTimeout(()=>{const _0x3a54d4=_0x52f67d;this[_0x3a54d4(0x2f4)]=!0x1;},0x7d0);});return()=>{const _0x41c30a=_0x51e6e9;_0x5c3089[_0x41c30a(0x24f)](),_0x52dc04[_0x41c30a(0x24f)]();};}[_0x3719c8(0x1d8)](_0xd6a7e8,_0x5c4b45,_0x2854bc,_0x1fbef9){const _0xe60686=_0x3719c8,_0xed5194=new a['ColorKit'](_0xd6a7e8)[_0xe60686(0x295)](0.2)[_0xe60686(0x1fb)](),_0x9264a4=new p[(_0xe60686(0x2f9))](ht+a[_0xe60686(0x413)][_0xe60686(0x402)](k),{'pointsGroup':_0x5c4b45,'fill':_0xed5194||p[_0xe60686(0x1fd)](a[_0xe60686(0x3fb)][_0xe60686(0x247)],0.2),'left':_0x2854bc,'top':_0x1fbef9,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes']['push'](_0x9264a4),this[_0xe60686(0x41f)]['addObject'](_0x9264a4,b[_0xe60686(0x2b1)]);}[_0x3719c8(0x2c7)](_0x6d8e37,_0x1dded6,_0x19d490,_0x427c69){const _0x11d46f=_0x3719c8,_0x1be792=new a[(_0x11d46f(0x449))](_0x6d8e37)[_0x11d46f(0x295)](0.2)[_0x11d46f(0x1fb)](),_0x43343b=new p['RegularPolygon'](ut+a[_0x11d46f(0x413)]['generateRandomId'](k),{'pointsGroup':_0x1dded6,'fill':_0x1be792||p[_0x11d46f(0x1fd)](a[_0x11d46f(0x3fb)][_0x11d46f(0x247)],0.2),'left':_0x19d490,'top':_0x427c69,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x11d46f(0x253)][_0x11d46f(0x1f1)](_0x43343b),this[_0x11d46f(0x41f)][_0x11d46f(0x311)](_0x43343b,b[_0x11d46f(0x2b1)]);}[_0x3719c8(0x305)](_0x1b64a6){const _0x523f2d=_0x1b64a6[0x0],_0x2c4c84=_0x523f2d[0x0],_0x480601=_0x523f2d[0x2],{x:_0x1f4a9b,y:_0x3281eb}=_0x2c4c84,{x:_0x51897b,y:_0x2b3d61}=_0x480601;return{'left':_0x1f4a9b,'top':_0x3281eb,'width':_0x51897b-_0x1f4a9b,'height':_0x2b3d61-_0x3281eb};}['_getScale'](){const _0x2d7b30=_0x3719c8,{scaleX:_0x1e1b4c,scaleY:_0x231deb}=this[_0x2d7b30(0x41f)][_0x2d7b30(0x39b)]();return Math[_0x2d7b30(0x365)](_0x1e1b4c,_0x231deb);}}var It=Object[_0x3719c8(0x2b9)],vt=(_0x1c55cf,_0x25e012,_0x770ebf,_0x46f40d)=>{const _0x3793dc=_0x3719c8;for(var _0x17ebc4=_0x46f40d>0x1?void 0x0:_0x46f40d?It(_0x25e012,_0x770ebf):_0x25e012,_0x3c8f88=_0x1c55cf[_0x3793dc(0x1e4)]-0x1,_0x518754;_0x3c8f88>=0x0;_0x3c8f88--)(_0x518754=_0x1c55cf[_0x3c8f88])&&(_0x17ebc4=_0x518754(_0x17ebc4)||_0x17ebc4);return _0x17ebc4;},W=(_0x2f98ba,_0x1ef06c)=>(_0x35cca8,_0x99b87c)=>_0x1ef06c(_0x35cca8,_0x99b87c,_0x2f98ba);let Ie=class extends a['RxDisposable']{constructor(_0x368452,_0x1898d9,_0x16c825,_0xbb77ea,_0xd27ca4){const _0x2b635f=_0x3719c8;super(),h(this,_0x2b635f(0x216),[]),h(this,_0x2b635f(0x338),[]),(this[_0x2b635f(0x412)]=_0x368452,this[_0x2b635f(0x2b5)]=_0x1898d9,this['_collabCursorController']=_0x16c825,this[_0x2b635f(0x3a7)]=_0xbb77ea,this[_0x2b635f(0x36f)]=_0xd27ca4,this['_init']());}['_init'](){const _0x41c7ef=_0x3719c8,_0x4ada81=this[_0x41c7ef(0x412)]['unitId'],_0x2aa4e0=this['_docSkeletonManagerService'];this[_0x41c7ef(0x43b)](d[_0x41c7ef(0x2c1)]([this[_0x41c7ef(0x3d8)][_0x41c7ef(0x2d9)](_0x4ada81),this[_0x41c7ef(0x36f)]['currentTheme$']])[_0x41c7ef(0x37b)]($[_0x41c7ef(0x34b)](([_0x14d052,_0xcf9f41])=>({'skeleton':_0x2aa4e0[_0x41c7ef(0x435)](),'cursors':[..._0x14d052[_0x41c7ef(0x302)]()][_0x41c7ef(0x1f3)](_0x542698=>({..._0x542698,'color':_0xcf9f41[_0x542698[_0x41c7ef(0x2a4)]]}))})))[_0x41c7ef(0x1de)](_0x20d658=>{const _0x24317b=_0x41c7ef;if(this[_0x24317b(0x417)](),_0x20d658){const {skeleton:_0x3d7b88,cursors:_0x19c909}=_0x20d658;this[_0x24317b(0x2ea)](_0x3d7b88,_0x19c909);}})),this[_0x41c7ef(0x23b)](),this['_initCommandExecutedListener']();}[_0x3719c8(0x2ea)](_0x535c60,_0x3f6a81){const _0x51e287=_0x3719c8,{scene:_0x2df920,mainComponent:_0x433ae1}=this['_context'],_0x52ae4b=_0x3f6a81[_0x51e287(0x34b)](_0x5050a4=>new De(_0x5050a4,_0x2df920,_0x535c60,_0x433ae1));this['_cursorShapes']=_0x52ae4b,this['_cursors']=_0x3f6a81;}[_0x3719c8(0x2a2)](){const _0x18c5e4=_0x3719c8;this['_removeCollabCursors']();const {scene:_0x1c3d27,mainComponent:_0x1e9144}=this[_0x18c5e4(0x412)],_0x62b35b=this[_0x18c5e4(0x2b5)][_0x18c5e4(0x435)](),_0x443f04=this[_0x18c5e4(0x338)]['map'](_0x2eb5ee=>new De(_0x2eb5ee,_0x1c3d27,_0x62b35b,_0x1e9144));this[_0x18c5e4(0x216)]=_0x443f04;}['_removeCollabCursors'](){const _0x3c4dad=_0x3719c8;this[_0x3c4dad(0x216)][_0x3c4dad(0x348)](_0x220e35=>_0x220e35['dispose']()),this[_0x3c4dad(0x216)]=[];}[_0x3719c8(0x306)](){const _0x55b656=_0x3719c8,_0x3a8cc4=[b[_0x55b656(0x25e)]['id']];this[_0x55b656(0x43b)](this[_0x55b656(0x3a7)][_0x55b656(0x2b8)](_0x50524d=>{const _0x3d1399=_0x55b656;_0x3a8cc4['includes'](_0x50524d['id'])&&_0x50524d[_0x3d1399(0x22f)][_0x3d1399(0x274)]===this[_0x3d1399(0x412)]['unitId']&&this['_refreshCollabCursors']();}));}[_0x3719c8(0x23b)](){const _0x5c5067=_0x3719c8;this['disposeWithMe'](a[_0x5c5067(0x290)](this['_context'][_0x5c5067(0x43f)]['onTransformChange$'])['pipe']($[_0x5c5067(0x3cb)](_0x2e8b0a=>_0x2e8b0a[_0x5c5067(0x36d)]===p[_0x5c5067(0x32f)][_0x5c5067(0x441)]),$[_0x5c5067(0x21a)](0x10))[_0x5c5067(0x1de)](()=>{const _0x53eb48=_0x5c5067;this[_0x53eb48(0x2a2)]();}));}};Ie=vt([W(0x1,a['Inject'](F['DocSkeletonManagerService'])),W(0x2,a['Inject'](x)),W(0x3,a['ICommandService']),W(0x4,a['Inject'](a['ThemeService']))],Ie);const gt=0x1,mt=1.5;class Ae extends p[_0x3719c8(0x3fa)]{constructor(_0x55ad78,_0x195730){const _0x216a5e=_0x3719c8;super(_0x55ad78,_0x195730),h(this,'_color'),h(this,'_hovered',!0x1),h(this,_0x216a5e(0x2d1)),h(this,_0x216a5e(0x2bd),''),h(this,_0x216a5e(0x3e0),_0x216a5e(0x2fe)),h(this,_0x216a5e(0x359)),(_0x195730&&this['setShapeProps'](_0x195730),this[_0x216a5e(0x414)]['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x216a5e(0x230)]({'hovered':!0x1})));}['setShapeProps'](_0x37dee8){const _0x490fb4=_0x3719c8;var _0x40d71b,_0x4519bb,_0x5db4bf,_0x2db683,_0x53c427,_0x136540;this['_color']=(_0x40d71b=_0x37dee8[_0x490fb4(0x2a4)])!=null?_0x40d71b:this['_color'],this['_hovered']=(_0x4519bb=_0x37dee8['hovered'])!=null?_0x4519bb:this[_0x490fb4(0x1e5)],this[_0x490fb4(0x2d1)]=(_0x5db4bf=_0x37dee8[_0x490fb4(0x385)])!=null?_0x5db4bf:this[_0x490fb4(0x2d1)],this[_0x490fb4(0x2bd)]=(_0x2db683=_0x37dee8[_0x490fb4(0x37c)])!=null?_0x2db683:this['_name'],this[_0x490fb4(0x3e0)]=(_0x53c427=_0x37dee8['labelPosition'])!=null?_0x53c427:this['_labelPosition'],this[_0x490fb4(0x359)]=(_0x136540=_0x37dee8[_0x490fb4(0x28d)])!=null?_0x136540:this[_0x490fb4(0x359)],this[_0x490fb4(0x399)]({'width':_0x37dee8[_0x490fb4(0x266)],'height':_0x37dee8[_0x490fb4(0x2a0)]});}['onMouseMove'](_0x1a2b29){const _0x4e9371=_0x3719c8,{row:_0x18da76,column:_0xbb9281}=_0x1a2b29;if(_0x18da76>=this[_0x4e9371(0x2d1)]['startRow']&&_0x18da76<=this['_range']['endRow']&&_0xbb9281>=this[_0x4e9371(0x2d1)][_0x4e9371(0x1cc)]&&_0xbb9281<=this[_0x4e9371(0x2d1)][_0x4e9371(0x309)]){this[_0x4e9371(0x230)]({'hovered':!0x0});return;}this[_0x4e9371(0x230)]({'hovered':!0x1});}[_0x3719c8(0x283)](_0x4c4578){return!0x1;}[_0x3719c8(0x418)](_0x242f19){const _0x56f0de=_0x3719c8;p[_0x56f0de(0x22b)][_0x56f0de(0x250)](_0x242f19,{'width':this[_0x56f0de(0x266)],'height':this[_0x56f0de(0x2a0)],'strokeWidth':mt,'stroke':this[_0x56f0de(0x317)],'evented':!0x1,'fill':this[_0x56f0de(0x359)]}),this['_hovered']&&(_0x242f19[_0x56f0de(0x31a)](),_0x242f19[_0x56f0de(0x3f9)](0x1,0x0,0x0,0x1,this['width'],this[_0x56f0de(0x3e0)]===_0x56f0de(0x20d)?0x0:-0x14),ee[_0x56f0de(0x250)](_0x242f19,{'text':this[_0x56f0de(0x2bd)],'color':this[_0x56f0de(0x317)]}),_0x242f19[_0x56f0de(0x276)]());}}var Ct=Object['getOwnPropertyDescriptor'],pt=(_0x3e18c4,_0x593cdb,_0x14de43,_0x2b7453)=>{const _0x390230=_0x3719c8;for(var _0x31329a=_0x2b7453>0x1?void 0x0:_0x2b7453?Ct(_0x593cdb,_0x14de43):_0x593cdb,_0x53691e=_0x3e18c4[_0x390230(0x1e4)]-0x1,_0x57719e;_0x53691e>=0x0;_0x53691e--)(_0x57719e=_0x3e18c4[_0x53691e])&&(_0x31329a=_0x57719e(_0x31329a)||_0x31329a);return _0x31329a;},ae=(_0x2e1766,_0x328c53)=>(_0x220b33,_0x1b4390)=>_0x328c53(_0x220b33,_0x1b4390,_0x2e1766);const bt=0x1389;let ve=class extends a[_0x3719c8(0x41d)]{constructor(_0x1a63a2,_0x277a6a,_0xd44805,_0x11fee4){const _0x19a7e5=_0x3719c8;super(),h(this,_0x19a7e5(0x338),new Set()),h(this,_0x19a7e5(0x1fc),null),(this[_0x19a7e5(0x412)]=_0x1a63a2,this[_0x19a7e5(0x378)]=_0x277a6a,this[_0x19a7e5(0x3d8)]=_0xd44805,this[_0x19a7e5(0x36f)]=_0x11fee4,this[_0x19a7e5(0x41c)]());}[_0x3719c8(0x41c)](){const _0x3c5bd4=_0x3719c8;this['_sheetSkeletonManagerService'][_0x3c5bd4(0x3f3)][_0x3c5bd4(0x37b)]($[_0x3c5bd4(0x232)](this['dispose$']),$[_0x3c5bd4(0x34d)](_0x33aeb8=>{const _0x28cfba=_0x3c5bd4;if(_0x33aeb8){const _0x31a18f=_0x33aeb8[_0x28cfba(0x21e)];return d['combineLatest'](this[_0x28cfba(0x3d8)][_0x28cfba(0x2d9)](this[_0x28cfba(0x412)][_0x28cfba(0x274)]),this['_themeService']['currentTheme$'])[_0x28cfba(0x37b)]($[_0x28cfba(0x34b)](([_0x183a2a,_0x26ac14])=>{const _0x52e3f8=_0x28cfba,_0x5f445e=new Map();return _0x183a2a[_0x52e3f8(0x348)]((_0x47d961,_0x56980a)=>{const _0xda0bab=_0x52e3f8;if(_0x47d961[_0xda0bab(0x363)]===_0x31a18f){const _0x1f9c78={..._0x47d961};_0x1f9c78[_0xda0bab(0x2a4)]=_0x26ac14[_0x47d961[_0xda0bab(0x2a4)]],_0x5f445e[_0xda0bab(0x2e3)](_0x56980a,_0x1f9c78);}}),{'skeleton':_0x33aeb8,'cursors':_0x5f445e};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x3c5bd4(0x1de)](({skeleton:_0x32cafb,cursors:_0x4c14c0})=>{const _0x439b4c=_0x3c5bd4;this[_0x439b4c(0x417)](),_0x32cafb&&this[_0x439b4c(0x2ea)](_0x32cafb,_0x4c14c0);}),this[_0x3c5bd4(0x378)][_0x3c5bd4(0x3f3)][_0x3c5bd4(0x1de)](_0xfd2ff=>{const _0x373b56=_0x3c5bd4;if(_0xfd2ff==null)return;const {skeleton:_0x15e909}=_0xfd2ff,{scene:_0xb8c2ca}=this[_0x373b56(0x412)];_0xb8c2ca[_0x373b56(0x208)]['subscribeEvent'](a[_0x373b56(0x343)](_0x640904=>{const _0x42b957=_0x373b56;var _0x49f82c,_0x17f351;const {offsetX:_0x2d282c,offsetY:_0x412535}=_0x640904,{x:_0x2265f0,y:_0x23d7a5}=_0xb8c2ca['getRelativeToViewportCoord'](p[_0x42b957(0x411)][_0x42b957(0x420)]([_0x2d282c,_0x412535])),{scaleX:_0x3116fa,scaleY:_0x49ab90}=_0xb8c2ca[_0x42b957(0x39b)](),_0x418c2f=_0xb8c2ca[_0x42b957(0x26d)](p[_0x42b957(0x352)][_0x42b957(0x218)]),_0x243cdd=_0xb8c2ca['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x42b957(0x420)]([_0x2265f0,_0x23d7a5]),_0x418c2f),_0x10674e=_0x15e909[_0x42b957(0x351)](_0x2d282c,_0x412535,_0x3116fa,_0x49ab90,_0x243cdd);((_0x49f82c=this[_0x42b957(0x1fc)])==null?void 0x0:_0x49f82c[_0x42b957(0x30f)])===_0x10674e[_0x42b957(0x30f)]&&((_0x17f351=this[_0x42b957(0x1fc)])==null?void 0x0:_0x17f351[_0x42b957(0x3e6)])===_0x10674e[_0x42b957(0x3e6)]||this['_cursors']['forEach'](_0x1abe15=>{const _0x21ae50=_0x42b957;_0x1abe15[_0x21ae50(0x3d2)](_0x10674e);});},0x64));});}[_0x3719c8(0x2ea)](_0x20d5c9,_0x34086c){const _0x3c5003=_0x3719c8;var _0x559b40;const _0x563c8a=(_0x559b40=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x559b40[_0x3c5003(0x2f5)];if(!_0x563c8a)return;const _0x2d90e9=this['_getSheetObject']();if(!_0x2d90e9)return;this[_0x3c5003(0x338)][_0x3c5003(0x348)](_0x56d63b=>{const _0x267578=_0x3c5003;_0x56d63b[_0x267578(0x3d1)]();});const {scene:_0x1f1e92}=_0x2d90e9,_0xb85f52=Et(Array['from'](_0x34086c[_0x3c5003(0x302)]()))['map'](_0x155f72=>{const _0x458c49=_0x3c5003,{color:_0x36e033,range:_0xa959fa,name:_0x101614,selection:_0x36c50b,sheetID:_0x45645b}=_0x155f72,{startColumn:_0xa2d3fe,startRow:_0x468bcc,endColumn:_0x1b9f02,endRow:_0x42f4aa}=_0xa959fa,_0x5cddd2=X[_0x458c49(0x32c)](_0x468bcc,_0xa2d3fe,_0x1f1e92,_0x563c8a),_0x5bda89=X[_0x458c49(0x32c)](_0x42f4aa,_0x1b9f02,_0x1f1e92,_0x563c8a),{columnHeaderHeightAndMarginTop:_0x78a973}=_0x563c8a,{startX:_0x744f86,startY:_0x1d2b2e}=_0x5cddd2,{endX:_0x27aa93,endY:_0x1d1cf0}=_0x5bda89,_0x5a1dc9=_0x27aa93-_0x744f86,_0x3c4f12=_0x1d1cf0-_0x1d2b2e,_0x13ad6e={'labelPosition':_0x1d2b2e-_0x78a973>=K?'top':_0x458c49(0x20d),'sheetID':_0x45645b,'range':_0xa959fa,'color':_0x36e033,'name':_0x101614,'selection':_0x36c50b,'left':_0x744f86,'top':_0x1d2b2e,'width':_0x5a1dc9,'height':_0x3c4f12,'evented':!0x1,'zIndex':bt};return new Ae(_0x101614,_0x13ad6e);});_0x1f1e92['addObjects'](_0xb85f52,gt),this['_cursors']=new Set(_0xb85f52);}[_0x3719c8(0x417)](){const _0x2dbea7=_0x3719c8;var _0x5ca169;(_0x5ca169=this[_0x2dbea7(0x338)])==null||_0x5ca169[_0x2dbea7(0x348)](_0x30cc0d=>_0x30cc0d[_0x2dbea7(0x214)]());}[_0x3719c8(0x220)](){const _0x59cb0e=_0x3719c8;return X[_0x59cb0e(0x1d4)](this[_0x59cb0e(0x412)][_0x59cb0e(0x3f1)],this['_context']);}};ve=pt([ae(0x1,a[_0x3719c8(0x44e)](X[_0x3719c8(0x213)])),ae(0x2,a[_0x3719c8(0x44e)](x)),ae(0x3,a[_0x3719c8(0x44e)](a['ThemeService']))],ve);function Et(_0x8a841a){const _0x261b58=_0x3719c8,_0x160c4b=new Map();return _0x8a841a[_0x261b58(0x348)](_0x1c46a5=>{const _0x1c32c1=_0x261b58;if(_0x160c4b[_0x1c32c1(0x252)](_0x1c46a5[_0x1c32c1(0x3d7)])){const _0x97d0ee=_0x160c4b['get'](_0x1c46a5['selection']);_0x97d0ee[_0x1c32c1(0x37c)]+=',\x20'+_0x1c46a5[_0x1c32c1(0x37c)];}else _0x160c4b[_0x1c32c1(0x2e3)](_0x1c46a5[_0x1c32c1(0x3d7)],_0x1c46a5);}),Array[_0x261b58(0x1e6)](_0x160c4b[_0x261b58(0x302)]());}var E=function(){const _0x5ae5c2=_0x3719c8;return E=Object[_0x5ae5c2(0x234)]||function(_0x402106){const _0x2253e0=_0x5ae5c2;for(var _0x40e08e,_0x5510a4=0x1,_0x35ab67=arguments[_0x2253e0(0x1e4)];_0x5510a4<_0x35ab67;_0x5510a4++){_0x40e08e=arguments[_0x5510a4];for(var _0x135162 in _0x40e08e)Object[_0x2253e0(0x35e)][_0x2253e0(0x407)][_0x2253e0(0x1d2)](_0x40e08e,_0x135162)&&(_0x402106[_0x135162]=_0x40e08e[_0x135162]);}return _0x402106;},E[_0x5ae5c2(0x1cf)](this,arguments);},Tt=function(_0x2d42cb,_0x4fe2c7){const _0x336580=_0x3719c8;var _0x30eac0={};for(var _0x57583c in _0x2d42cb)Object[_0x336580(0x35e)][_0x336580(0x407)][_0x336580(0x1d2)](_0x2d42cb,_0x57583c)&&_0x4fe2c7[_0x336580(0x31f)](_0x57583c)<0x0&&(_0x30eac0[_0x57583c]=_0x2d42cb[_0x57583c]);if(_0x2d42cb!=null&&typeof Object['getOwnPropertySymbols']==_0x336580(0x2ba)){for(var _0x12ac7a=0x0,_0x57583c=Object[_0x336580(0x39c)](_0x2d42cb);_0x12ac7a<_0x57583c[_0x336580(0x1e4)];_0x12ac7a++)_0x4fe2c7['indexOf'](_0x57583c[_0x12ac7a])<0x0&&Object['prototype'][_0x336580(0x226)]['call'](_0x2d42cb,_0x57583c[_0x12ac7a])&&(_0x30eac0[_0x57583c[_0x12ac7a]]=_0x2d42cb[_0x57583c[_0x12ac7a]]);}return _0x30eac0;},pe=M[_0x3719c8(0x382)](function(_0x3df9db,_0x383d76){const _0x32c61c=_0x3719c8;var _0x5c7766=_0x3df9db[_0x32c61c(0x268)],_0x3a8a35=_0x3df9db['id'],_0x59afed=_0x3df9db[_0x32c61c(0x27f)],_0xd5d451=_0x3df9db['extend'],_0x1807b4=Tt(_0x3df9db,[_0x32c61c(0x268),'id',_0x32c61c(0x27f),_0x32c61c(0x41b)]),_0x5df64d='univerjs-icon\x20univerjs-icon-'[_0x32c61c(0x227)](_0x3a8a35,'\x20')[_0x32c61c(0x227)](_0x59afed||'')[_0x32c61c(0x2b7)](),_0x411823=M['useRef']('_'['concat'](Dt()));return we(_0x5c7766,''[_0x32c61c(0x227)](_0x3a8a35),{'defIds':_0x5c7766[_0x32c61c(0x2ed)],'idSuffix':_0x411823['current']},E({'ref':_0x383d76,'className':_0x5df64d},_0x1807b4),_0xd5d451);});function we(_0x2cba6f,_0x2ab0c7,_0x55c813,_0x353b6f,_0x4b7e8f){const _0x439f7d=_0x3719c8;return M[_0x439f7d(0x3a1)](_0x2cba6f[_0x439f7d(0x3cf)],E(E({'key':_0x2ab0c7},Ot(_0x2cba6f,_0x55c813,_0x4b7e8f)),_0x353b6f),(Rt(_0x2cba6f,_0x55c813)[_0x439f7d(0x395)]||[])[_0x439f7d(0x34b)](function(_0x15c542,_0x34b8ea){const _0x1bf28e=_0x439f7d;return we(_0x15c542,''[_0x1bf28e(0x227)](_0x2ab0c7,'-')[_0x1bf28e(0x227)](_0x2cba6f[_0x1bf28e(0x3cf)],'-')[_0x1bf28e(0x227)](_0x34b8ea),_0x55c813,void 0x0,_0x4b7e8f);}));}function Ot(_0x42072b,_0x2aec38,_0x51d832){const _0x2de991=_0x3719c8;var _0x39bbfa=E({},_0x42072b[_0x2de991(0x1d0)]);_0x51d832!=null&&_0x51d832['colorChannel1']&&_0x39bbfa[_0x2de991(0x3e4)]===_0x2de991(0x372)&&(_0x39bbfa['fill']=_0x51d832[_0x2de991(0x372)]),_0x42072b[_0x2de991(0x3cf)]===_0x2de991(0x2f8)&&_0x39bbfa['id']&&(_0x39bbfa['id']=_0x39bbfa['id']+_0x2aec38[_0x2de991(0x388)]),Object[_0x2de991(0x416)](_0x39bbfa)['forEach'](function(_0x4c1292){const _0x139689=_0x2de991;var _0x3ea001=_0x4c1292[0x0],_0x2dd496=_0x4c1292[0x1];_0x3ea001===_0x139689(0x2f8)&&typeof _0x2dd496==_0x139689(0x334)&&(_0x39bbfa[_0x3ea001]=_0x2dd496[_0x139689(0x35b)](/url\(#(.*)\)/,'url(#$1'[_0x139689(0x227)](_0x2aec38[_0x139689(0x388)],')')));});var _0x468e61=_0x2aec38[_0x2de991(0x2ed)];return!_0x468e61||_0x468e61[_0x2de991(0x1e4)]===0x0||(_0x42072b[_0x2de991(0x3cf)]==='use'&&_0x39bbfa[_0x2de991(0x267)]&&(_0x39bbfa['xlink:href']=_0x39bbfa[_0x2de991(0x267)]+_0x2aec38['idSuffix']),Object[_0x2de991(0x416)](_0x39bbfa)[_0x2de991(0x348)](function(_0x2b2dca){const _0x2a578e=_0x2de991;var _0x304822=_0x2b2dca[0x0],_0xd15f84=_0x2b2dca[0x1];typeof _0xd15f84==_0x2a578e(0x334)&&(_0x39bbfa[_0x304822]=_0xd15f84[_0x2a578e(0x35b)](/url\(#(.*)\)/,_0x2a578e(0x223)[_0x2a578e(0x227)](_0x2aec38[_0x2a578e(0x388)],')')));})),_0x39bbfa;}function Rt(_0x154d15,_0x4b0e60){const _0x455e54=_0x3719c8;var _0xc52f9e,_0x418091=_0x4b0e60[_0x455e54(0x2ed)];return!_0x418091||_0x418091[_0x455e54(0x1e4)]===0x0?_0x154d15:_0x154d15[_0x455e54(0x3cf)]===_0x455e54(0x2d0)&&(!((_0xc52f9e=_0x154d15[_0x455e54(0x395)])===null||_0xc52f9e===void 0x0)&&_0xc52f9e['length'])?E(E({},_0x154d15),{'children':_0x154d15[_0x455e54(0x395)][_0x455e54(0x34b)](function(_0x28411f){const _0x157d1a=_0x455e54;return typeof _0x28411f[_0x157d1a(0x1d0)]['id']==_0x157d1a(0x334)&&_0x418091&&_0x418091[_0x157d1a(0x31f)](_0x28411f[_0x157d1a(0x1d0)]['id'])>-0x1?E(E({},_0x28411f),{'attrs':E(E({},_0x28411f[_0x157d1a(0x1d0)]),{'id':_0x28411f[_0x157d1a(0x1d0)]['id']+_0x4b0e60[_0x157d1a(0x388)]})}):_0x28411f;})}):_0x154d15;}function Dt(){const _0x1ad57a=_0x3719c8;return Math['random']()[_0x1ad57a(0x1ca)](0x24)[_0x1ad57a(0x235)](0x2,0x8);}pe[_0x3719c8(0x3c9)]=_0x3719c8(0x1ed);var Ut={'tag':_0x3719c8(0x368),'attrs':{'fill':_0x3719c8(0x25c),'viewBox':'0\x200\x2016\x2016','width':_0x3719c8(0x2fa),'height':_0x3719c8(0x2fa)},'children':[{'tag':'g','attrs':{'clipPath':_0x3719c8(0x278)},'children':[{'tag':_0x3719c8(0x335),'attrs':{'stroke':_0x3719c8(0x25b),'d':_0x3719c8(0x3ed),'strokeLinecap':_0x3719c8(0x1c9),'strokeLinejoin':_0x3719c8(0x1c9),'strokeWidth':1.2}}]},{'tag':_0x3719c8(0x2d0),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x3719c8(0x28e),'d':_0x3719c8(0x3b9)}}]}]}],'defIds':[_0x3719c8(0x301)]},ye=M[_0x3719c8(0x382)](function(_0xd71820,_0x4cd96d){const _0x2a8a4c=_0x3719c8;return M['createElement'](pe,Object[_0x2a8a4c(0x234)]({},_0xd71820,{'id':_0x2a8a4c(0x2c8),'ref':_0x4cd96d,'icon':Ut}));});ye[_0x3719c8(0x3c9)]=_0x3719c8(0x355);var Nt={'tag':_0x3719c8(0x368),'attrs':{'fill':_0x3719c8(0x25c),'viewBox':_0x3719c8(0x3ab),'width':_0x3719c8(0x2fa),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3719c8(0x406)},'children':[{'tag':_0x3719c8(0x335),'attrs':{'stroke':'currentColor','d':_0x3719c8(0x424),'strokeLinecap':_0x3719c8(0x1c9),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3719c8(0x2d0),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':_0x3719c8(0x28e),'d':_0x3719c8(0x3b9),'transform':_0x3719c8(0x3c2)}}]}]}],'defIds':[_0x3719c8(0x2d8)]},$e=M[_0x3719c8(0x382)](function(_0xb25a74,_0x5bd475){const _0x320935=_0x3719c8;return M['createElement'](pe,Object[_0x320935(0x234)]({},_0xb25a74,{'id':_0x320935(0x423),'ref':_0x5bd475,'icon':Nt}));});$e[_0x3719c8(0x3c9)]=_0x3719c8(0x33c);function Mt(_0x4058a6){const _0x5e3823=_0x3719c8;switch(_0x4058a6){case u[_0x5e3823(0x259)]['OFFLINE']:return _0x5e3823(0x2ec);case u['CollaborationStatus'][_0x5e3823(0x2c6)]:return _0x5e3823(0x432);case u['CollaborationStatus'][_0x5e3823(0x316)]:return _0x5e3823(0x29e);case u[_0x5e3823(0x259)][_0x5e3823(0x3ba)]:return'collabStatus.notCollab';case u['CollaborationStatus'][_0x5e3823(0x279)]:case u['CollaborationStatus'][_0x5e3823(0x3e8)]:return'collabStatus.syncing';case u[_0x5e3823(0x259)][_0x5e3823(0x3af)]:case u['CollaborationStatus']['PENDING']:return _0x5e3823(0x370);}}function xe(_0x17bcd9){const _0x29b5f9=_0x3719c8,{status$:_0x45dc22}=_0x17bcd9,_0x4b9820=T[_0x29b5f9(0x207)](_0x45dc22,u[_0x29b5f9(0x259)][_0x29b5f9(0x3ba)]),_0x3b41bf=T[_0x29b5f9(0x323)](a['LocaleService']),_0xb648bf=T[_0x29b5f9(0x323)](u[_0x29b5f9(0x362)]),_0x136555=_0x4b9820!==u[_0x29b5f9(0x259)]['OFFLINE'],_0x3398c0=_0x3b41bf['t'](Mt(_0x4b9820)),_0x2f1598=_0x136555?P['jsx']($e,{}):P[_0x29b5f9(0x3cc)](ye,{}),_0x409b8a=M[_0x29b5f9(0x44d)](()=>{_0x136555||_0xb648bf['reconnect']();},[_0x136555,_0xb648bf]);function _0x5c6b87(){const _0x3d75c2=_0x29b5f9;return P[_0x3d75c2(0x289)]('div',{'className':'univer-flex\x20univer-items-center','onClick':_0x409b8a,'children':[P[_0x3d75c2(0x3cc)]('div',{'className':D[_0x3d75c2(0x33b)](_0x3d75c2(0x260),_0x136555?'univer-text-green-500':_0x3d75c2(0x42c)),'children':_0x2f1598}),P[_0x3d75c2(0x3cc)](_0x3d75c2(0x225),{'className':_0x3d75c2(0x239),'children':_0x3398c0})]});}return _0x136555?_0x5c6b87():P[_0x29b5f9(0x3cc)](D[_0x29b5f9(0x384)],{'title':_0x3b41bf['t']('collab-client.tooltip.reconnect'),'children':_0x5c6b87()});}var Lt=Object[_0x3719c8(0x2b9)],Pt=(_0x50266d,_0x539e3d,_0x13f9d1,_0xaccd2e)=>{for(var _0x333f49=_0xaccd2e>0x1?void 0x0:_0xaccd2e?Lt(_0x539e3d,_0x13f9d1):_0x539e3d,_0xb37e22=_0x50266d['length']-0x1,_0x1d58d2;_0xb37e22>=0x0;_0xb37e22--)(_0x1d58d2=_0x50266d[_0xb37e22])&&(_0x333f49=_0x1d58d2(_0x333f49)||_0x333f49);return _0x333f49;},V=(_0xd9b57e,_0x47fda1)=>(_0x8de3c8,_0x103357)=>_0x47fda1(_0x8de3c8,_0x103357,_0xd9b57e);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x3719c8(0x3bd)]{constructor(_0x1bf446,_0x3a6d4c,_0x4c1555,_0x4ed3f9){const _0x1da69a=_0x3719c8;super(),h(this,_0x1da69a(0x410),new d[(_0x1da69a(0x347))](u[_0x1da69a(0x259)][_0x1da69a(0x3ba)])),(this[_0x1da69a(0x281)]=_0x1bf446,this[_0x1da69a(0x350)]=_0x3a6d4c,this[_0x1da69a(0x3ea)]=_0x4c1555,this['_uiPartsService']=_0x4ed3f9,this[_0x1da69a(0x26c)](),this[_0x1da69a(0x244)]());}[_0x3719c8(0x244)](){const _0x42ba3a=_0x3719c8;this[_0x42ba3a(0x43b)](this[_0x42ba3a(0x281)][_0x42ba3a(0x38b)][_0x42ba3a(0x37b)](d[_0x42ba3a(0x34d)](()=>{const _0x4f2790=_0x42ba3a,_0x3e5fb3=this['_univerInstanceService'][_0x4f2790(0x212)]();return _0x3e5fb3?this[_0x4f2790(0x3ea)][_0x4f2790(0x408)](_0x3e5fb3[_0x4f2790(0x44a)]()):d['of'](null);}),d[_0x42ba3a(0x34d)](_0x35c3ab=>_0x35c3ab?_0x35c3ab[_0x42ba3a(0x374)]:d['of'](u[_0x42ba3a(0x259)][_0x42ba3a(0x3ba)])))[_0x42ba3a(0x1de)](_0x5c4f7a=>{const _0x4ad206=_0x42ba3a;this[_0x4ad206(0x410)][_0x4ad206(0x20a)](_0x5c4f7a);}));}['_initStatusComponent'](){const _0x4fdc0e=_0x3719c8;this['disposeWithMe'](this[_0x4fdc0e(0x20f)][_0x4fdc0e(0x269)](T[_0x4fdc0e(0x3c1)][_0x4fdc0e(0x31d)],()=>T[_0x4fdc0e(0x38c)](At({'status$':this['_status$'][_0x4fdc0e(0x240)]()}),this[_0x4fdc0e(0x350)])));}},exports[_0x3719c8(0x404)]=Pt([V(0x0,a[_0x3719c8(0x25d)]),V(0x1,a[_0x3719c8(0x44e)](a[_0x3719c8(0x265)])),V(0x2,a['Inject'](u[_0x3719c8(0x2cc)])),V(0x3,T['IUIPartsService'])],exports['DesktopCollaborationStatusDisplayController']);function At(_0x12bc8e){const {status$:_0x19180c}=_0x12bc8e;return function(){const _0x3ce1c1=_0x169d;return P[_0x3ce1c1(0x3cc)](xe,{'status$':_0x19180c});};}var wt=Object[_0x3719c8(0x2b9)],yt=(_0x387002,_0x2bbbed,_0x316bc3,_0x3902fe)=>{const _0x283c11=_0x3719c8;for(var _0x2a837f=_0x3902fe>0x1?void 0x0:_0x3902fe?wt(_0x2bbbed,_0x316bc3):_0x2bbbed,_0x1032b1=_0x387002[_0x283c11(0x1e4)]-0x1,_0x18adaf;_0x1032b1>=0x0;_0x1032b1--)(_0x18adaf=_0x387002[_0x1032b1])&&(_0x2a837f=_0x18adaf(_0x2a837f)||_0x2a837f);return _0x2a837f;},y=(_0x20496e,_0x4161ca)=>(_0x590ba5,_0xceac92)=>_0x4161ca(_0x590ba5,_0xceac92,_0x20496e);let q=class extends a[_0x3719c8(0x3bd)]{constructor(_0xc83277,_0x3a917b,_0x2da8d4,_0x1e9232,_0x49f1fb,_0x35ec96){const _0x510c3a=_0x3719c8;super(),this[_0x510c3a(0x21d)]=_0xc83277,this[_0x510c3a(0x26e)]=_0x3a917b,this[_0x510c3a(0x429)]=_0x2da8d4,this['_messageService']=_0x1e9232,this[_0x510c3a(0x430)]=_0x49f1fb,this['_localeService']=_0x35ec96,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x3719c8(0x2ab)](){const _0xbd57fa=_0x3719c8;this[_0xbd57fa(0x43b)](this[_0xbd57fa(0x21d)][_0xbd57fa(0x20c)](()=>{const _0x12666e=_0xbd57fa;if(this['_localCacheService'][_0x12666e(0x3ae)][_0x12666e(0x2fc)])return this[_0x12666e(0x3ca)]['t']('collaboration-client.offline-data-not-saved');}));}[_0x3719c8(0x1fa)](){const _0x5746db=_0x3719c8;this[_0x5746db(0x43b)](this['_collaborationUIEventService'][_0x5746db(0x2be)][_0x5746db(0x1de)](_0x210ff8=>{const _0x146ca2=_0x5746db;_0x210ff8['id']===u[_0x146ca2(0x1f2)][_0x146ca2(0x1d5)]&&this[_0x146ca2(0x211)][_0x146ca2(0x24c)]({'type':D['MessageType'][_0x146ca2(0x23a)],'content':this[_0x146ca2(0x3ca)]['t'](_0x146ca2(0x422))}),_0x210ff8['id']===u[_0x146ca2(0x1f2)][_0x146ca2(0x2fb)]&&this[_0x146ca2(0x211)]['show']({'type':D[_0x146ca2(0x36a)]['Warning'],'content':this[_0x146ca2(0x3ca)]['t'](_0x146ca2(0x37a))}),_0x210ff8['id']===u[_0x146ca2(0x1f2)][_0x146ca2(0x398)]&&this[_0x146ca2(0x430)][_0x146ca2(0x24c)]({'title':this[_0x146ca2(0x3ca)]['t'](_0x146ca2(0x3f6)),'content':this['_localeService']['t']('permission.content'),'type':_0x146ca2(0x245),'duration':0x0}),_0x210ff8['id']===u[_0x146ca2(0x1f2)][_0x146ca2(0x2c6)]&&this['_messageService'][_0x146ca2(0x24c)]({'type':D[_0x146ca2(0x36a)][_0x146ca2(0x2b4)],'content':this['_localeService']['t'](_0x146ca2(0x37a))+'('+_0x210ff8[_0x146ca2(0x42f)]+')'}),_0x210ff8['id']===u[_0x146ca2(0x1f2)][_0x146ca2(0x221)]&&this[_0x146ca2(0x211)][_0x146ca2(0x24c)]({'type':D[_0x146ca2(0x36a)]['Warning'],'content':this[_0x146ca2(0x3ca)]['t'](_0x210ff8[_0x146ca2(0x42f)]||'')}),_0x210ff8['id']===u[_0x146ca2(0x1f2)]['SOCKET_FAILED_RETRY']&&this[_0x146ca2(0x211)][_0x146ca2(0x24c)]({'type':D[_0x146ca2(0x36a)]['Warning'],'content':this[_0x146ca2(0x3ca)]['t'](_0x146ca2(0x25a))}),_0x210ff8['id']===u[_0x146ca2(0x1f2)]['SOCKET_FAILED']&&this[_0x146ca2(0x211)][_0x146ca2(0x24c)]({'type':D[_0x146ca2(0x36a)][_0x146ca2(0x2b4)],'content':this[_0x146ca2(0x3ca)]['t']('session.connection-failed')}),_0x210ff8['id']===u[_0x146ca2(0x1f2)][_0x146ca2(0x3eb)]&&this[_0x146ca2(0x211)][_0x146ca2(0x24c)]({'type':D[_0x146ca2(0x36a)]['Error'],'content':this[_0x146ca2(0x3ca)]['t']('session.collaboration-timeout')});}));}};q=yt([y(0x0,T[_0x3719c8(0x21c)]),y(0x1,u[_0x3719c8(0x426)]),y(0x2,a['Inject'](u[_0x3719c8(0x2bb)])),y(0x3,T[_0x3719c8(0x360)]),y(0x4,T[_0x3719c8(0x1d7)]),y(0x5,a[_0x3719c8(0x44e)](a[_0x3719c8(0x2cb)]))],q);const $t=_0x3719c8(0x27d),Ue={},be=a['createIdentifier'](_0x3719c8(0x205));var xt=Object[_0x3719c8(0x2b9)],jt=(_0x22743b,_0x57c1ab,_0x22817b,_0x22e3d0)=>{for(var _0x499122=_0x22e3d0>0x1?void 0x0:_0x22e3d0?xt(_0x57c1ab,_0x22817b):_0x57c1ab,_0x30e575=_0x22743b['length']-0x1,_0x2a513d;_0x30e575>=0x0;_0x30e575--)(_0x2a513d=_0x22743b[_0x30e575])&&(_0x499122=_0x2a513d(_0x499122)||_0x499122);return _0x499122;},H=(_0x153031,_0x1c7146)=>(_0x1345c3,_0xa96bff)=>_0x1c7146(_0x1345c3,_0xa96bff,_0x153031);exports[_0x3719c8(0x1ef)]=class extends a['RxDisposable']{constructor(_0x51e1fc,_0x1c8b88,_0x471868,_0x1a8a87,_0x34a498){const _0x1d7496=_0x3719c8;super(),this[_0x1d7496(0x3c7)]=_0x51e1fc,this['_logService']=_0x1c8b88,this[_0x1d7496(0x3a7)]=_0x471868,this['_dataLoaderService']=_0x1a8a87,_0x34a498?_0x34a498==null||_0x34a498[_0x1d7496(0x2d7)]()[_0x1d7496(0x42a)](()=>this[_0x1d7496(0x41c)]()):(this[_0x1d7496(0x2b0)]['debug'](_0x1d7496(0x3aa),_0x1d7496(0x3d6)),this[_0x1d7496(0x41c)]());}async[_0x3719c8(0x41c)](){const _0x275c68=_0x3719c8,_0x2dc2c3=this['_urlService'][_0x275c68(0x24d)](_0x275c68(0x3f1)),_0xf01f9e=this[_0x275c68(0x3c7)][_0x275c68(0x24d)](_0x275c68(0x36d)),_0x4181a2=this[_0x275c68(0x3c7)][_0x275c68(0x24d)](_0x275c68(0x421));if(!_0x2dc2c3||!_0xf01f9e){this['_logService'][_0x275c68(0x2e5)](_0x275c68(0x3aa),_0x275c68(0x1cd));return;}const _0x18ef16=await this[_0x275c68(0x2b6)][_0x275c68(0x2df)](_0x2dc2c3,Number(_0xf01f9e),_0x4181a2);_0x18ef16&&_0x18ef16 instanceof a[_0x275c68(0x37f)]&&this[_0x275c68(0x400)](_0x18ef16);}async[_0x3719c8(0x400)](_0x10f824){const _0x75ef31=_0x3719c8;await this['_updateSubUnitFromURLParams'](_0x10f824),_0x10f824[_0x75ef31(0x249)][_0x75ef31(0x37b)](d['takeUntil'](this[_0x75ef31(0x238)]))['subscribe'](_0x5e5d60=>{const _0xeb4551=_0x75ef31;_0x5e5d60&&this[_0xeb4551(0x3bf)](_0x5e5d60);}),this[_0x75ef31(0x3c7)][_0x75ef31(0x3ac)][_0x75ef31(0x37b)](d['takeUntil'](this[_0x75ef31(0x238)]))[_0x75ef31(0x1de)](()=>this[_0x75ef31(0x2ce)](_0x10f824));}[_0x3719c8(0x3bf)](_0x130d5,_0x3b0af1=!0x1){const _0x554cbb=_0x3719c8,_0x19a952=this[_0x554cbb(0x3c7)][_0x554cbb(0x24d)]('subunit');_0x130d5[_0x554cbb(0x1ea)]()!==_0x19a952&&this[_0x554cbb(0x3c7)]['setParam'](_0x554cbb(0x421),_0x130d5[_0x554cbb(0x1ea)](),_0x3b0af1);}async[_0x3719c8(0x2ce)](_0x153706){const _0x3f8205=_0x3719c8;var _0x5bd7fa;const _0xb11edb=this[_0x3f8205(0x3c7)][_0x3f8205(0x24d)](_0x3f8205(0x421));if(!_0xb11edb||!_0x153706[_0x3f8205(0x1e3)](_0xb11edb)){const _0x41d382=_0x153706[_0x3f8205(0x353)]()[0x0],_0x435ee6=_0x153706[_0x3f8205(0x1e3)](_0x41d382);if(!_0x435ee6)return;this[_0x3f8205(0x3bf)](_0x435ee6,!0x0),await this['_commandService'][_0x3f8205(0x3ff)](g[_0x3f8205(0x3fe)]['id'],{'unitId':_0x153706[_0x3f8205(0x44a)](),'subUnitId':_0x41d382});return;}((_0x5bd7fa=_0x153706[_0x3f8205(0x3a0)]())==null?void 0x0:_0x5bd7fa['getSheetId']())!==_0xb11edb&&await this[_0x3f8205(0x3a7)][_0x3f8205(0x3ff)](g[_0x3f8205(0x3fe)]['id'],{'unitId':_0x153706[_0x3f8205(0x44a)](),'subUnitId':_0xb11edb});}},exports[_0x3719c8(0x1ef)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x3719c8(0x231)]),H(0x3,a['Inject'](u['DataLoaderService'])),H(0x4,a[_0x3719c8(0x29a)](Ke['IRemoteInstanceService']))],exports[_0x3719c8(0x1ef)]);var Bt=Object[_0x3719c8(0x2b9)],kt=(_0x5dd972,_0x32eed4,_0x36cc29,_0xbb7f8a)=>{const _0x1f85f7=_0x3719c8;for(var _0x137098=_0xbb7f8a>0x1?void 0x0:_0xbb7f8a?Bt(_0x32eed4,_0x36cc29):_0x32eed4,_0xfea696=_0x5dd972[_0x1f85f7(0x1e4)]-0x1,_0x549ce1;_0xfea696>=0x0;_0xfea696--)(_0x549ce1=_0x5dd972[_0xfea696])&&(_0x137098=_0x549ce1(_0x137098)||_0x137098);return _0x137098;},ce=(_0x5802ec,_0x1bd844)=>(_0x399f9c,_0x3a49b0)=>_0x1bd844(_0x399f9c,_0x3a49b0,_0x5802ec);let z=class{constructor(_0x183b79,_0x67fac2,_0xb825f8){const _0x22cd6a=_0x3719c8;this['_injector']=_0x183b79,this['_transformService']=_0x67fac2,this[_0x22cd6a(0x2a7)]=_0xb825f8;}[_0x3719c8(0x3bc)](_0x20317c){const _0x43be07=_0x3719c8;this[_0x43be07(0x345)](_0x20317c),this['_transformPreviousActiveRange'](_0x20317c);}[_0x3719c8(0x254)](_0x14f505){const _0x599cd6=_0x3719c8,{unitID:_0x15af27}=_0x14f505,_0x2ac8b6=this['_renderManagerService'][_0x599cd6(0x203)](_0x15af27)[_0x599cd6(0x1ff)](b['DocIMEInputManagerService']),{redoCache:_0x3ab0fb}=_0x2ac8b6[_0x599cd6(0x22c)]();if(_0x3ab0fb[_0x599cd6(0x1e4)]===0x0)return _0x14f505;let _0x4e5076=a[_0x599cd6(0x413)][_0x599cd6(0x2b3)](_0x14f505[_0x599cd6(0x40e)][0x0]);for(let _0x1ab03f=0x0;_0x1ab03f<_0x3ab0fb['length'];_0x1ab03f++){const _0x280869={'id':_0x599cd6(0x1dd),'params':{..._0x3ab0fb[_0x1ab03f]}},_0x3060b4=this[_0x599cd6(0x1ee)][_0x599cd6(0x43a)](_0x4e5076,_0x280869,!0x1);if(m['isTransformMutationFailure'](_0x3060b4))throw _0x3060b4[_0x599cd6(0x245)];_0x4e5076=_0x3060b4[_0x599cd6(0x2a6)];}return{...a['Tools'][_0x599cd6(0x2b3)](_0x14f505),'mutations':[_0x4e5076]};}[_0x3719c8(0x345)](_0x19fea3){const _0x30d6db=_0x3719c8,{unitID:_0xadfc5}=_0x19fea3,_0x4b1de6=this[_0x30d6db(0x2a7)][_0x30d6db(0x203)](_0xadfc5)[_0x30d6db(0x1ff)](b[_0x30d6db(0x1e2)]),{undoCache:_0x32114a,redoCache:_0x495968}=_0x4b1de6[_0x30d6db(0x22c)]();if(_0x32114a['length']===0x0||_0x495968['length']===0x0)return;const _0x6184e7=[],_0x1733c4=[];let _0x45071d=a['Tools']['deepClone'](_0x19fea3[_0x30d6db(0x40e)][0x0]),_0x316b24=a[_0x30d6db(0x413)][_0x30d6db(0x2b3)](_0x19fea3[_0x30d6db(0x40e)][0x0]);for(let _0x477430=_0x32114a[_0x30d6db(0x1e4)]-0x1;_0x477430>=0x0;_0x477430--){const _0x3a7c84={'id':_0x30d6db(0x1dd),'params':{..._0x32114a[_0x477430]}},_0x21de9f={'id':'doc.mutation.rich-text-editing','params':{..._0x495968[_0x477430]}},_0x470b0b=this[_0x30d6db(0x1ee)][_0x30d6db(0x43a)](_0x45071d,_0x3a7c84,!0x1),_0x214e1c=this[_0x30d6db(0x1ee)][_0x30d6db(0x43a)](_0x316b24,_0x21de9f,!0x1);if(m[_0x30d6db(0x2d4)](_0x470b0b))throw _0x470b0b[_0x30d6db(0x245)];if(m[_0x30d6db(0x2d4)](_0x214e1c))throw _0x214e1c['error'];_0x6184e7[_0x30d6db(0x2e2)](_0x470b0b[_0x30d6db(0x425)][_0x30d6db(0x22f)]),_0x1733c4[_0x30d6db(0x2e2)](_0x214e1c['m2Prime'][_0x30d6db(0x22f)]),_0x45071d=_0x470b0b[_0x30d6db(0x2a6)],_0x316b24=_0x214e1c[_0x30d6db(0x2a6)];}_0x4b1de6['setUndoRedoMutationParamsCache']({'undoCache':_0x6184e7,'redoCache':_0x1733c4});}[_0x3719c8(0x2eb)](_0x454028){const _0xee7f52=_0x3719c8,{unitID:_0x2bc3cb}=_0x454028,_0x5ac820=this[_0xee7f52(0x2a7)][_0xee7f52(0x203)](_0x2bc3cb)[_0xee7f52(0x1ff)](b[_0xee7f52(0x1e2)]),_0x41a2db=_0x5ac820[_0xee7f52(0x2a1)]();if(_0x41a2db==null)return;const _0x4a37d6=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x454028[_0xee7f52(0x30e)],'actions':null,'textRanges':[_0x41a2db]}}],_0x3b18ca=this[_0xee7f52(0x1ee)][_0xee7f52(0x3b1)](_0x454028,_0x4a37d6);if(!m['isTransformMutationsWithChangesetSuccess'](_0x3b18ca))throw _0x3b18ca[_0xee7f52(0x245)];const _0x1b24df=_0x3b18ca[_0xee7f52(0x425)][0x0]['params'][_0xee7f52(0x321)];Array[_0xee7f52(0x39e)](_0x1b24df)&&_0x1b24df[_0xee7f52(0x1e4)]&&_0x5ac820[_0xee7f52(0x27c)](_0x1b24df[0x0]);}};z=kt([ce(0x0,a[_0x3719c8(0x44e)](a[_0x3719c8(0x265)])),ce(0x1,m[_0x3719c8(0x354)]),ce(0x2,p[_0x3719c8(0x3d4)])],z);var Ht=Object['getOwnPropertyDescriptor'],Yt=(_0x3370b3,_0x501aa2,_0x18eac6,_0x442455)=>{const _0x25e010=_0x3719c8;for(var _0x3a1d42=_0x442455>0x1?void 0x0:_0x442455?Ht(_0x501aa2,_0x18eac6):_0x501aa2,_0x37bdcc=_0x3370b3[_0x25e010(0x1e4)]-0x1,_0x6e6e9c;_0x37bdcc>=0x0;_0x37bdcc--)(_0x6e6e9c=_0x3370b3[_0x37bdcc])&&(_0x3a1d42=_0x6e6e9c(_0x3a1d42)||_0x3a1d42);return _0x3a1d42;},le=(_0x4b2dbe,_0x2343df)=>(_0x3b2752,_0x55d7af)=>_0x2343df(_0x3b2752,_0x55d7af,_0x4b2dbe);let J=class{constructor(_0x25be4a,_0x2a64e1,_0x12c2cb){const _0x422eb1=_0x3719c8;this['_injector']=_0x25be4a,this['_transformService']=_0x2a64e1,this[_0x422eb1(0x1e0)]=_0x12c2cb;}[_0x3719c8(0x286)](_0x580f4a){const _0x30fe18=_0x3719c8;this[_0x30fe18(0x357)](_0x580f4a);}['transformRemoteChangeset'](_0x2dd7d8){const _0x5023b9=_0x3719c8,{unitID:_0x53fac5}=_0x2dd7d8,{collaboration:_0x5beedb}=this[_0x5023b9(0x1e0)][_0x5023b9(0x1eb)](_0x53fac5);if(_0x5beedb[_0x5023b9(0x1e4)]===0x0)return _0x2dd7d8;let _0x32ab60=a[_0x5023b9(0x413)][_0x5023b9(0x2b3)](_0x2dd7d8['mutations'][0x0]);for(let _0x17db45=0x0;_0x17db45<_0x5beedb['length'];_0x17db45++){const _0x64acac={'id':_0x5023b9(0x1dd),'params':{'unitId':_0x5beedb[_0x17db45][_0x5023b9(0x274)],..._0x5beedb[_0x17db45][_0x5023b9(0x282)]}},_0x380422=this[_0x5023b9(0x1ee)][_0x5023b9(0x43a)](_0x32ab60,_0x64acac,!0x1);if(m[_0x5023b9(0x2d4)](_0x380422))throw _0x380422[_0x5023b9(0x245)];_0x32ab60=_0x380422['m1Prime'];}return{...a[_0x5023b9(0x413)][_0x5023b9(0x2b3)](_0x2dd7d8),'mutations':[_0x32ab60]};}[_0x3719c8(0x357)](_0x5e8ecc){const _0x404c36=_0x3719c8,{unitID:_0xa957b9}=_0x5e8ecc,{history:_0x2025c8,collaboration:_0x1ab24d}=this[_0x404c36(0x1e0)][_0x404c36(0x1eb)](_0xa957b9);if(_0x2025c8[_0x404c36(0x1e4)]===0x0&&_0x1ab24d[_0x404c36(0x1e4)]===0x0)return;const _0x4be456=[],_0x295191=[];let _0x2f750b=a['Tools'][_0x404c36(0x2b3)](_0x5e8ecc['mutations'][0x0]),_0x24f585=a[_0x404c36(0x413)][_0x404c36(0x2b3)](_0x5e8ecc['mutations'][0x0]);for(let _0x35dc3c=_0x2025c8[_0x404c36(0x1e4)]-0x1;_0x35dc3c>=0x0;_0x35dc3c--){const _0x241535={'id':_0x404c36(0x1dd),'params':{'unitId':_0x2025c8[_0x35dc3c][_0x404c36(0x274)],..._0x2025c8[_0x35dc3c][_0x404c36(0x344)]}},_0x34159b={'id':_0x404c36(0x1dd),'params':{'unitId':_0x2025c8[_0x35dc3c][_0x404c36(0x274)],..._0x2025c8[_0x35dc3c]['redoState']}},_0x1ac1e1=this[_0x404c36(0x1ee)]['transformMutation'](_0x2f750b,_0x241535,!0x1),_0x17e4ff=this[_0x404c36(0x1ee)][_0x404c36(0x43a)](_0x24f585,_0x34159b,!0x1);if(m[_0x404c36(0x2d4)](_0x1ac1e1))throw _0x1ac1e1[_0x404c36(0x245)];if(m['isTransformMutationFailure'](_0x17e4ff))throw _0x17e4ff[_0x404c36(0x245)];_0x4be456['unshift']({..._0x2025c8[_0x35dc3c],'undoState':_0x1ac1e1['m2Prime'][_0x404c36(0x22f)],'redoState':_0x17e4ff[_0x404c36(0x425)]['params']}),_0x2f750b=_0x1ac1e1[_0x404c36(0x2a6)],_0x24f585=_0x17e4ff[_0x404c36(0x2a6)];}_0x2f750b=a[_0x404c36(0x413)][_0x404c36(0x2b3)](_0x5e8ecc[_0x404c36(0x40e)][0x0]),_0x24f585=a[_0x404c36(0x413)][_0x404c36(0x2b3)](_0x5e8ecc['mutations'][0x0]);for(let _0xf4e6fb=_0x1ab24d[_0x404c36(0x1e4)]-0x1;_0xf4e6fb>=0x0;_0xf4e6fb--){const _0x47df41={'id':_0x404c36(0x1dd),'params':{'unitId':_0x1ab24d[_0xf4e6fb][_0x404c36(0x274)],..._0x1ab24d[_0xf4e6fb]['undoState']}},_0x5dd7c2={'id':_0x404c36(0x1dd),'params':{'unitId':_0x1ab24d[_0xf4e6fb]['unitId'],..._0x1ab24d[_0xf4e6fb][_0x404c36(0x282)]}},_0x53a93e=this[_0x404c36(0x1ee)][_0x404c36(0x43a)](_0x2f750b,_0x47df41,!0x1),_0x486f04=this[_0x404c36(0x1ee)][_0x404c36(0x43a)](_0x24f585,_0x5dd7c2,!0x1);if(m[_0x404c36(0x2d4)](_0x53a93e))throw _0x53a93e[_0x404c36(0x245)];if(m['isTransformMutationFailure'](_0x486f04))throw _0x486f04[_0x404c36(0x245)];_0x295191['unshift']({..._0x1ab24d[_0xf4e6fb],'undoState':_0x53a93e[_0x404c36(0x425)][_0x404c36(0x22f)],'redoState':_0x486f04[_0x404c36(0x425)][_0x404c36(0x22f)]}),_0x2f750b=_0x53a93e[_0x404c36(0x2a6)],_0x24f585=_0x486f04[_0x404c36(0x2a6)];}this['_docStateChangeManagerService']['setStateCache'](_0xa957b9,{'history':_0x4be456,'collaboration':_0x295191});}};J=Yt([le(0x0,a[_0x3719c8(0x44e)](a['Injector'])),le(0x1,m[_0x3719c8(0x354)]),le(0x2,a[_0x3719c8(0x44e)](b[_0x3719c8(0x23e)]))],J);var Ft=Object[_0x3719c8(0x2b9)],Wt=(_0x1666fb,_0x442b16,_0x1dda47,_0x2fd9a0)=>{const _0x5dc155=_0x3719c8;for(var _0x479fde=_0x2fd9a0>0x1?void 0x0:_0x2fd9a0?Ft(_0x442b16,_0x1dda47):_0x442b16,_0x5a9375=_0x1666fb[_0x5dc155(0x1e4)]-0x1,_0x3b6549;_0x5a9375>=0x0;_0x5a9375--)(_0x3b6549=_0x1666fb[_0x5a9375])&&(_0x479fde=_0x3b6549(_0x479fde)||_0x479fde);return _0x479fde;},Ne=(_0x44c21d,_0x1f93a2)=>(_0x5b40ff,_0x5ce9fb)=>_0x1f93a2(_0x5b40ff,_0x5ce9fb,_0x44c21d);let Z=class{constructor(_0xb8a74e,_0x1f2817){const _0xe32f9d=_0x3719c8;this[_0xe32f9d(0x350)]=_0xb8a74e,this[_0xe32f9d(0x1ee)]=_0x1f2817;}[_0x3719c8(0x337)](_0x565718){const _0x343dc7=_0x3719c8;var _0x4eee6d;const _0x1668ee=this['_injector'][_0x343dc7(0x263)](F[_0x343dc7(0x38e)]),_0x594f3c=(_0x4eee6d=_0x1668ee['getDocRanges']())!=null?_0x4eee6d:[];if(_0x594f3c[_0x343dc7(0x1e4)]===0x0)return;const _0x2ddfa0=_0x565718[_0x343dc7(0x30e)],_0x5b3702=[{'id':_0x343dc7(0x1dd),'params':{'unitId':_0x2ddfa0,'actions':null,'textRanges':_0x594f3c}}],_0x53ff28=this[_0x343dc7(0x1ee)][_0x343dc7(0x3b1)](_0x565718,_0x5b3702);if(!m['isTransformMutationsWithChangesetSuccess'](_0x53ff28))throw _0x53ff28[_0x343dc7(0x245)];const _0x56659f=_0x53ff28['m2Prime'][0x0][_0x343dc7(0x22f)][_0x343dc7(0x321)];Array[_0x343dc7(0x39e)](_0x56659f)&&_0x56659f['length']&&_0x1668ee[_0x343dc7(0x3f0)](_0x56659f,{'unitId':_0x2ddfa0,'subUnitId':_0x2ddfa0},!0x1);}};Z=Wt([Ne(0x0,a[_0x3719c8(0x44e)](a[_0x3719c8(0x265)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x3719c8(0x2b9)],Xt=(_0x136730,_0x1ec60e,_0x23b475,_0x46b290)=>{const _0x3fad5c=_0x3719c8;for(var _0x4aa00f=_0x46b290>0x1?void 0x0:_0x46b290?Vt(_0x1ec60e,_0x23b475):_0x1ec60e,_0x1baf28=_0x136730[_0x3fad5c(0x1e4)]-0x1,_0x1f5e64;_0x1baf28>=0x0;_0x1baf28--)(_0x1f5e64=_0x136730[_0x1baf28])&&(_0x4aa00f=_0x1f5e64(_0x4aa00f)||_0x4aa00f);return _0x4aa00f;},N=(_0x57af6f,_0x1e0e4a)=>(_0x5c7ec9,_0x5b87fa)=>_0x1e0e4a(_0x5c7ec9,_0x5b87fa,_0x57af6f);let Q=class extends a[_0x3719c8(0x3bd)]{constructor(_0xcdba7e,_0xa160b7,_0x419735,_0x2aa5cd,_0x5a2db9,_0x376d3d,_0x21d142,_0x3a1c0f){const _0x3bfb5d=_0x3719c8;super(),h(this,'_status$',new d[(_0x3bfb5d(0x347))](u[_0x3bfb5d(0x259)][_0x3bfb5d(0x3ba)])),(this['_docStateChangeManagerService']=_0xcdba7e,this['_collaborationController']=_0xa160b7,this[_0x3bfb5d(0x284)]=_0x419735,this[_0x3bfb5d(0x356)]=_0x2aa5cd,this[_0x3bfb5d(0x275)]=_0x5a2db9,this[_0x3bfb5d(0x318)]=_0x376d3d,this[_0x3bfb5d(0x211)]=_0x21d142,this[_0x3bfb5d(0x3ca)]=_0x3a1c0f,this[_0x3bfb5d(0x3b2)]());}[_0x3719c8(0x3b2)](){const _0x19b22a=_0x3719c8;this[_0x19b22a(0x43b)](this[_0x19b22a(0x3ea)]['entityInit$'][_0x19b22a(0x1de)](_0x2fe7e6=>{const _0x238e0c=_0x19b22a,_0x2cf10a=this['_docStateChangeManagerService']['docStateChange$'][_0x238e0c(0x1de)](_0x21b5f4=>{const _0x4f67c1=_0x238e0c;if(_0x21b5f4==null)return;const {unitId:_0x1c1d26,redoState:_0x5306a1,commandId:_0x684856}=_0x21b5f4;if(_0x1c1d26!==_0x2fe7e6[_0x4f67c1(0x30e)])return;const _0x4457f0={'id':_0x684856,'type':a[_0x4f67c1(0x2e8)][_0x4f67c1(0x21b)],'params':{'unitId':_0x1c1d26,'actions':_0x5306a1[_0x4f67c1(0x340)],'textRanges':null}};_0x2fe7e6[_0x4f67c1(0x30a)](_0x4457f0);});if(_0x2fe7e6['disposeWithMe'](_0x2cf10a),_0x2fe7e6 instanceof u['DocCollaborationEntity']){const _0x89f216={'onTransformIME':_0x33a31a=>this[_0x238e0c(0x284)][_0x238e0c(0x3bc)](_0x33a31a),'onTransformState':_0x41096b=>this[_0x238e0c(0x356)]['transformStateCache'](_0x41096b),'onTransformSelections':_0x1684ef=>this[_0x238e0c(0x275)]['transformSelections'](_0x1684ef),'onSyncEditingCollabCursor':_0x138d05=>this[_0x238e0c(0x318)][_0x238e0c(0x2e1)](_0x138d05),'onTransformRemoteChangesetByIMECache':_0x38d267=>this[_0x238e0c(0x284)]['transformRemoteChangeset'](_0x38d267),'onTransformRemoteChangesetByStateCache':_0x4f16d7=>this['_docTransformStateCacheService'][_0x238e0c(0x254)](_0x4f16d7)};_0x2fe7e6['addHandlerCallback'](_0x89f216);}}));}};Q=Xt([N(0x0,a[_0x3719c8(0x44e)](b[_0x3719c8(0x23e)])),N(0x1,a[_0x3719c8(0x44e)](u[_0x3719c8(0x2cc)])),N(0x2,a[_0x3719c8(0x44e)](z)),N(0x3,a[_0x3719c8(0x44e)](J)),N(0x4,a[_0x3719c8(0x44e)](Z)),N(0x5,a[_0x3719c8(0x44e)](Ce)),N(0x6,T[_0x3719c8(0x360)]),N(0x7,a[_0x3719c8(0x44e)](a[_0x3719c8(0x2cb)]))],Q);var Gt=Object[_0x3719c8(0x2b9)],Kt=(_0x238c0d,_0x2a8c77,_0x427979,_0x567120)=>{const _0x50bb09=_0x3719c8;for(var _0x180fdd=_0x567120>0x1?void 0x0:_0x567120?Gt(_0x2a8c77,_0x427979):_0x2a8c77,_0xf6a319=_0x238c0d[_0x50bb09(0x1e4)]-0x1,_0x96efa4;_0xf6a319>=0x0;_0xf6a319--)(_0x96efa4=_0x238c0d[_0xf6a319])&&(_0x180fdd=_0x96efa4(_0x180fdd)||_0x180fdd);return _0x180fdd;},_e=(_0x4869f9,_0x27bbf3)=>(_0x482aab,_0x1bc0b6)=>_0x27bbf3(_0x482aab,_0x1bc0b6,_0x4869f9);let ge=class extends a[_0x3719c8(0x3bd)]{constructor(_0x1be645,_0x538ee1,_0x396aec){const _0x47be28=_0x3719c8;super(),h(this,_0x47be28(0x2e9),new Map()),h(this,'_saveTaskMap',new Map()),h(this,_0x47be28(0x3db),!0x1),(this[_0x47be28(0x3c6)]=_0x1be645,this['_localStorageService']=_0x538ee1,this[_0x47be28(0x20b)]=_0x396aec);}[_0x3719c8(0x34f)](){const _0x48424f=_0x3719c8;this[_0x48424f(0x3db)]=!0x0;}[_0x3719c8(0x24a)](){this['_disabled']=!0x1;}get[_0x3719c8(0x3ae)](){const _0x370724=_0x3719c8;return this[_0x370724(0x377)];}[_0x3719c8(0x214)](){const _0xcad483=_0x3719c8;this[_0xcad483(0x2c4)]()[_0xcad483(0x42a)](()=>super['dispose']());}async[_0x3719c8(0x339)](_0x685563){const _0x856234=_0x3719c8;return this['_disabled']?null:this['_localStorageService']['getItem'](u[_0x856234(0x1f7)](_0x685563));}async[_0x3719c8(0x401)](_0xf62d25,_0x4a023c){const _0x50ca9f=_0x3719c8;return!!this[_0x50ca9f(0x3c5)][_0x50ca9f(0x27a)](_0xf62d25,_0x4a023c);}['updateOfflineData'](_0x124968,_0x37735d,_0x4b4a2e,_0x431301){const _0x2f941d=_0x3719c8,_0x121a0b=this[_0x2f941d(0x20b)][_0x2f941d(0x2c9)](_0x124968);this[_0x2f941d(0x2e9)][_0x2f941d(0x2e3)](_0x124968,{'unitID':_0x124968,'type':_0x37735d,'awaitingChangeset':_0x4b4a2e,'mutations':_0x431301,'rev':_0x121a0b}),this[_0x2f941d(0x377)][_0x2f941d(0x252)](_0x124968)||this[_0x2f941d(0x37d)](_0x124968);}[_0x3719c8(0x37d)](_0x35b7a0){const _0x42a903=_0x3719c8,_0x37a7bd=this[_0x42a903(0x280)]();_0x37a7bd===0x0?this[_0x42a903(0x3e2)](_0x35b7a0):this[_0x42a903(0x377)][_0x42a903(0x2e3)](_0x35b7a0,setTimeout(()=>this[_0x42a903(0x3e2)](_0x35b7a0),_0x37a7bd));}[_0x3719c8(0x280)](){const _0x1d434f=_0x3719c8;var _0x3a781f;return(_0x3a781f=this[_0x1d434f(0x3c6)][_0x1d434f(0x1f5)](u[_0x1d434f(0x342)]))!=null?_0x3a781f:u[_0x1d434f(0x202)];}[_0x3719c8(0x3e2)](_0x4f50b4){const _0x40011d=_0x3719c8,_0x7420b=this[_0x40011d(0x377)][_0x40011d(0x263)](_0x4f50b4);return _0x7420b!==void 0x0&&window[_0x40011d(0x3e7)](_0x7420b),this[_0x40011d(0x3c5)][_0x40011d(0x27a)](u['getLocalCacheKey'](_0x4f50b4),this['_cachedData'][_0x40011d(0x263)](_0x4f50b4))[_0x40011d(0x42a)](()=>this['_saveTaskMap'][_0x40011d(0x3e3)](_0x4f50b4));}async[_0x3719c8(0x2c4)](){const _0x8cf2f=_0x3719c8,_0x2378ec=[];this[_0x8cf2f(0x377)][_0x8cf2f(0x348)]((_0x6801c4,_0x5b6889)=>{const _0x45edd1=_0x8cf2f;window['clearTimeout'](_0x6801c4),_0x2378ec[_0x45edd1(0x1f1)](this[_0x45edd1(0x3e2)](_0x5b6889)[_0x45edd1(0x42a)](()=>{const _0x41800a=_0x45edd1;this[_0x41800a(0x377)][_0x41800a(0x3e3)](_0x5b6889);}));}),await Promise[_0x8cf2f(0x3b6)](_0x2378ec);}};ge=Kt([_e(0x0,a[_0x3719c8(0x3a2)]),_e(0x1,a[_0x3719c8(0x287)]),_e(0x2,a['Inject'](m[_0x3719c8(0x433)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x3e457c=_0x3719c8;super(),h(this,'urlChange$'),this[_0x3e457c(0x3ac)]=d[_0x3e457c(0x258)](window,_0x3e457c(0x40f))[_0x3e457c(0x37b)](d['takeUntil'](this[_0x3e457c(0x238)]),d[_0x3e457c(0x22a)](0x1),d[_0x3e457c(0x262)](void 0x0));}['setParam'](_0x4863f2,_0x461ca6,_0x2e1f0d=!0x1){const _0x1d92a7=_0x3719c8,_0x1454e1=new URL(window['location'][_0x1d92a7(0x39f)]);_0x1454e1[_0x1d92a7(0x32a)][_0x1d92a7(0x2e3)](_0x4863f2,_0x461ca6),_0x2e1f0d?window['history'][_0x1d92a7(0x329)]('','',_0x1454e1[_0x1d92a7(0x1ca)]()):window[_0x1d92a7(0x447)][_0x1d92a7(0x3ce)]('','',_0x1454e1[_0x1d92a7(0x1ca)]());}[_0x3719c8(0x24e)](_0x5d7fa9,_0x367852=!0x1){const _0x54c2ee=_0x3719c8,_0x2a2307=new URL(window['location']['href']);_0x2a2307[_0x54c2ee(0x32a)]['delete'](_0x5d7fa9),_0x367852?window[_0x54c2ee(0x447)][_0x54c2ee(0x329)]('','',_0x2a2307['toString']()):window[_0x54c2ee(0x447)][_0x54c2ee(0x3ce)]('','',_0x2a2307[_0x54c2ee(0x1ca)]());}[_0x3719c8(0x24d)](_0x3cc810){const _0x55c74a=_0x3719c8;var _0xeb115a;return(_0xeb115a=new URL(window[_0x55c74a(0x381)]['href'])[_0x55c74a(0x32a)]['get'](_0x3cc810))!=null?_0xeb115a:void 0x0;}}var qt=Object[_0x3719c8(0x40d)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x2baf8f,_0x5afd9d,_0x344489)=>_0x5afd9d in _0x2baf8f?qt(_0x2baf8f,_0x5afd9d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x344489}):_0x2baf8f[_0x5afd9d]=_0x344489,Zt=(_0x46674a,_0x5062e4,_0x52da8b,_0x1cb9f8)=>{for(var _0x53239f=_0x1cb9f8>0x1?void 0x0:_0x1cb9f8?zt(_0x5062e4,_0x52da8b):_0x5062e4,_0x3c9370=_0x46674a['length']-0x1,_0x219c6a;_0x3c9370>=0x0;_0x3c9370--)(_0x219c6a=_0x46674a[_0x3c9370])&&(_0x53239f=_0x219c6a(_0x53239f)||_0x53239f);return _0x53239f;},he=(_0x11ef12,_0x43b913)=>(_0x17505c,_0x51eaaf)=>_0x43b913(_0x17505c,_0x51eaaf,_0x11ef12),Qt=(_0x1549ce,_0x119c5f,_0x461082)=>Jt(_0x1549ce,_0x119c5f+'',_0x461082);const es=_0x3719c8(0x448);exports[_0x3719c8(0x297)]=class extends a[_0x3719c8(0x2b2)]{constructor(_0xd2d258=Ue,_0x1019d5,_0x1ed4cd,_0x190d73){const _0x3032e9=_0x3719c8;super(),this['_config']=_0xd2d258,this[_0x3032e9(0x2a7)]=_0x1019d5,this[_0x3032e9(0x350)]=_0x1ed4cd,this['_configService']=_0x190d73;const {..._0x3125b8}=a[_0x3032e9(0x33e)]({},Ue,this[_0x3032e9(0x3ee)]);this[_0x3032e9(0x3c6)][_0x3032e9(0x2ff)]($t,_0x3125b8);}[_0x3719c8(0x38d)](){const _0x3e76c9=_0x3719c8;this['_registerDependencies'](),this[_0x3e76c9(0x3bb)]();}[_0x3719c8(0x367)](){this['_registerRenderDependencies']();}['_registerDependencies'](){const _0x4a19a5=_0x3719c8;var _0x3377b0;const _0xb190f=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x4a19a5(0x3ad)],{'useClass':G[_0x4a19a5(0x2dd)]}],[u[_0x4a19a5(0x426)],{'useClass':ge}],[exports[_0x4a19a5(0x404)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a['registerDependencies'](this[_0x4a19a5(0x350)],a[_0x4a19a5(0x3d9)](_0xb190f,(_0x3377b0=this[_0x4a19a5(0x3ee)])==null?void 0x0:_0x3377b0[_0x4a19a5(0x1f6)]));}['_registerRenderDependencies'](){const _0x12329d=_0x3719c8;this[_0x12329d(0x43b)](this[_0x12329d(0x2a7)][_0x12329d(0x291)](a[_0x12329d(0x440)]['UNIVER_DOC'],[Ie])),this[_0x12329d(0x43b)](this[_0x12329d(0x2a7)][_0x12329d(0x291)](a[_0x12329d(0x440)][_0x12329d(0x2cd)],[ve]));}['_initDependencies'](){const _0x2f6ffa=_0x3719c8;a[_0x2f6ffa(0x2a5)](this['_injector'],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[q],[exports[_0x2f6ffa(0x1ef)]]]);}},Qt(exports[_0x3719c8(0x297)],_0x3719c8(0x327),es),exports[_0x3719c8(0x297)]=Zt([a[_0x3719c8(0x3be)](u[_0x3719c8(0x3a4)]),he(0x1,p['IRenderManagerService']),he(0x2,a['Inject'](a[_0x3719c8(0x265)])),he(0x3,a[_0x3719c8(0x3a2)])],exports[_0x3719c8(0x297)]);var ts=Object[_0x3719c8(0x2b9)],ss=(_0x1ce1ae,_0x55c35f,_0x187cc4,_0x28ae58)=>{const _0x20c123=_0x3719c8;for(var _0x4d0c29=_0x28ae58>0x1?void 0x0:_0x28ae58?ts(_0x55c35f,_0x187cc4):_0x55c35f,_0x243726=_0x1ce1ae[_0x20c123(0x1e4)]-0x1,_0x28b9d8;_0x243726>=0x0;_0x243726--)(_0x28b9d8=_0x1ce1ae[_0x243726])&&(_0x4d0c29=_0x28b9d8(_0x4d0c29)||_0x4d0c29);return _0x4d0c29;},Y=(_0x431486,_0x29af2e)=>(_0x6a1ea1,_0x52f026)=>_0x29af2e(_0x6a1ea1,_0x52f026,_0x431486);exports[_0x3719c8(0x1d6)]=class extends u[_0x3719c8(0x2fd)]{constructor(_0x16a17e,_0x2664b3,_0x83793d,_0x50f6a5,_0x35b4a6){super(_0x16a17e,_0x2664b3,_0x83793d,_0x50f6a5,_0x35b4a6);}async[_0x3719c8(0x3df)](_0x2b8532){const _0x2c6274=await this['_getSessionTicket'](),_0x3cadb1=this['_createSocketURL'](_0x2b8532,_0x2c6274);return this['_doCreateSocket'](_0x3cadb1);}['_createSocketURL'](_0x45bff3,_0x5884a2){const _0x1a4844=_0x3719c8,_0x259ac2=typeof window>'u'?new URL(_0x45bff3):new URL(_0x45bff3,window['location']['origin']);_0x259ac2['searchParams'][_0x1a4844(0x2e3)](_0x1a4844(0x246),_0x5884a2);const _0x308559=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1a4844(0x381)][_0x1a4844(0x237)]);return _0x308559[_0x1a4844(0x263)](_0x1a4844(0x442))&&_0x259ac2[_0x1a4844(0x32a)][_0x1a4844(0x2e3)](_0x1a4844(0x442),_0x308559[_0x1a4844(0x263)](_0x1a4844(0x442))),_0x259ac2[_0x1a4844(0x1ca)]();}async[_0x3719c8(0x288)](){const _0x5d8e1a=_0x3719c8;var _0x2f9f39,_0x3e93a1,_0x529737;const _0x51b0f7=this[_0x5d8e1a(0x3c6)][_0x5d8e1a(0x1f5)](u[_0x5d8e1a(0x2dc)]),_0x53e735=(_0x2f9f39=_0x51b0f7==null?void 0x0:_0x51b0f7[_0x5d8e1a(0x219)])!=null?_0x2f9f39:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x529737=(_0x3e93a1=(await this[_0x5d8e1a(0x31c)][_0x5d8e1a(0x263)](_0x53e735,{'headers':{'Content-Type':_0x5d8e1a(0x1e1)}}))[_0x5d8e1a(0x397)])==null?void 0x0:_0x3e93a1['ticket'])!=null?_0x529737:'';}},exports[_0x3719c8(0x1d6)]=ss([Y(0x0,a[_0x3719c8(0x44e)](a[_0x3719c8(0x265)])),Y(0x1,a[_0x3719c8(0x44e)](G[_0x3719c8(0x403)])),Y(0x2,a[_0x3719c8(0x3a2)]),Y(0x3,a['ILogService']),Y(0x4,m['ISnapshotServerService'])],exports[_0x3719c8(0x1d6)]);const Me=0x7530,Le=_0x3719c8(0x1df);class is extends a[_0x3719c8(0x3bd)]{constructor(){const _0x43743d=_0x3719c8;super(),h(this,'_id',a['generateRandomId']()),h(this,_0x43743d(0x330),new Set()),h(this,_0x43743d(0x229),new Map()),h(this,_0x43743d(0x1db),null),h(this,_0x43743d(0x2de),new Map()),h(this,_0x43743d(0x3ec),new Map()),this[_0x43743d(0x41c)]();}[_0x3719c8(0x214)](){const _0x405125=_0x3719c8;super['dispose'](),this['_clearOtherTimers']['forEach']((_0x42b58e,_0x39d909)=>this[_0x405125(0x392)](_0x39d909)),this[_0x405125(0x1db)]&&window[_0x405125(0x3b5)](this[_0x405125(0x1db)]);}[_0x3719c8(0x336)](_0x2f0db7){const _0x6a092f=_0x3719c8;return this['_ensureSubject'](_0x2f0db7)['pipe'](d[_0x6a092f(0x313)]());}[_0x3719c8(0x325)](_0xd5bee){const _0x47c213=_0x3719c8;this[_0x47c213(0x330)]['size']===0x0&&this[_0x47c213(0x243)](),this['_selfUnitIDs'][_0x47c213(0x3f7)](_0xd5bee),this[_0x47c213(0x200)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0xd5bee],'isForwarded':!0x1});}[_0x3719c8(0x271)](_0x162132){const _0x523e03=_0x3719c8;this['_selfUnitIDs'][_0x523e03(0x3e3)](_0x162132),this['_selfUnitIDs']['size']===0x0&&this[_0x523e03(0x1db)]&&window[_0x523e03(0x3b5)](this['_heartbeatTimer']);}[_0x3719c8(0x41c)](){const _0x3b4647=_0x3719c8;this[_0x3b4647(0x43b)](a[_0x3b4647(0x35f)](d[_0x3b4647(0x258)](window,_0x3b4647(0x224))[_0x3b4647(0x1de)](_0x4e1bcb=>{const _0x89bd27=_0x3b4647;if(_0x4e1bcb['key']!==Le||!_0x4e1bcb[_0x89bd27(0x285)])return;const _0x5353c6=JSON[_0x89bd27(0x2af)](_0x4e1bcb[_0x89bd27(0x285)]);this[_0x89bd27(0x292)](_0x5353c6);}))),window[_0x3b4647(0x1dc)]('unload',()=>this[_0x3b4647(0x200)]({'type':0x1,'memberID':this[_0x3b4647(0x446)],'unitIDs':Array[_0x3b4647(0x1e6)](this[_0x3b4647(0x330)])}));}[_0x3719c8(0x292)](_0x34107e){const _0x3f7ce5=_0x3719c8;switch(_0x34107e[_0x3f7ce5(0x36d)]){case 0x0:this[_0x3f7ce5(0x298)](_0x34107e);break;case 0x1:this[_0x3f7ce5(0x39a)](_0x34107e);break;case 0x2:this['_handleHeartbeatEvent'](_0x34107e);break;}}[_0x3719c8(0x298)](_0x42dc90){const _0x46bd87=_0x3719c8,{unitIDs:_0x131622,memberID:_0x555eb3,isForwarded:_0x3a1b6b}=_0x42dc90;_0x131622[_0x46bd87(0x348)](_0x2f6bd4=>{const _0x3fef4e=_0x46bd87;if(!_0x3a1b6b&&this[_0x3fef4e(0x229)]['has'](_0x2f6bd4)&&this[_0x3fef4e(0x44c)](_0x2f6bd4)['next'](u[_0x3fef4e(0x30d)][_0x3fef4e(0x272)]),!this[_0x3fef4e(0x229)][_0x3fef4e(0x252)](_0x2f6bd4)||!this['_unitOnClients'][_0x3fef4e(0x263)](_0x2f6bd4)[_0x3fef4e(0x252)](_0x555eb3)){const _0x5117e2=this[_0x3fef4e(0x229)][_0x3fef4e(0x263)](_0x2f6bd4)||new Set();_0x5117e2[_0x3fef4e(0x3f7)](_0x555eb3),this['_unitOnClients']['set'](_0x2f6bd4,_0x5117e2),this[_0x3fef4e(0x33d)](_0x555eb3);}}),_0x3a1b6b||this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x46bd87(0x330)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x3ff871){const _0x553f33=_0x3719c8;this[_0x553f33(0x392)](_0x3ff871);const _0x38039e=window[_0x553f33(0x434)](()=>{const _0x511f80=_0x553f33;this[_0x511f80(0x229)]['forEach'](_0x2eacc7=>{const _0x507f91=_0x511f80;_0x2eacc7[_0x507f91(0x3e3)](_0x3ff871);});},Me*0x2);this[_0x553f33(0x2de)][_0x553f33(0x2e3)](_0x3ff871,_0x38039e);}['_removeClearOtherTimer'](_0x14f7d8){const _0x3e932e=_0x3719c8;if(this[_0x3e932e(0x2de)][_0x3e932e(0x252)](_0x14f7d8)){const _0x481e51=this[_0x3e932e(0x2de)][_0x3e932e(0x263)](_0x14f7d8);_0x481e51&&window[_0x3e932e(0x3e7)](_0x481e51),this[_0x3e932e(0x2de)][_0x3e932e(0x2e3)](_0x14f7d8,null);}}[_0x3719c8(0x39a)](_0x18b89d){const _0x26938f=_0x3719c8,{memberID:_0x146e4c,unitIDs:_0x3a2ee2}=_0x18b89d;_0x3a2ee2[_0x26938f(0x348)](_0x263695=>{const _0x53d527=_0x26938f;var _0xd7ba6b;const _0x3cddde=this[_0x53d527(0x229)][_0x53d527(0x263)](_0x263695);_0x3cddde&&(_0x3cddde[_0x53d527(0x3e3)](_0x146e4c),(_0xd7ba6b=this[_0x53d527(0x44c)](_0x263695))==null||_0xd7ba6b[_0x53d527(0x20a)](_0x3cddde['size']===0x0?u[_0x53d527(0x30d)]['NO_OTHER_CLIENTS_EDITING']:u[_0x53d527(0x30d)][_0x53d527(0x272)]));}),this[_0x26938f(0x392)](_0x146e4c);}[_0x3719c8(0x277)](_0xc4ec0f){const _0x2c5efc=_0x3719c8;this[_0x2c5efc(0x33d)](_0xc4ec0f[_0x2c5efc(0x405)]);}[_0x3719c8(0x200)](_0x4b0018){const _0x25cfb0=_0x3719c8;localStorage[_0x25cfb0(0x27a)](Le,JSON[_0x25cfb0(0x346)](_0x4b0018));}[_0x3719c8(0x243)](){const _0x56fe97=_0x3719c8;this[_0x56fe97(0x1db)]=window[_0x56fe97(0x233)](()=>{const _0x2ac6ff=_0x56fe97;this['_send']({'type':0x2,'memberID':this[_0x2ac6ff(0x446)]});},Me);}['_ensureSubject'](_0x1a88a0){const _0x436467=_0x3719c8;return this[_0x436467(0x3ec)][_0x436467(0x252)](_0x1a88a0)||this['_unitStatus'][_0x436467(0x2e3)](_0x1a88a0,new d['BehaviorSubject'](u[_0x436467(0x30d)][_0x436467(0x20e)])),this[_0x436467(0x3ec)][_0x436467(0x263)](_0x1a88a0);}}var Be=(_0x306ade=>(_0x306ade[_0x306ade[_0x3719c8(0x29b)]=0x0]=_0x3719c8(0x29b),_0x306ade[_0x306ade['OK']=0x1]='OK',_0x306ade[_0x306ade['INTERNAL_ERROR']=0x2]=_0x3719c8(0x387),_0x306ade[_0x306ade[_0x3719c8(0x398)]=0x3]=_0x3719c8(0x398),_0x306ade[_0x306ade['NOT_FOUND']=0x4]=_0x3719c8(0x1cb),_0x306ade[_0x306ade[_0x3719c8(0x3b0)]=0x5]='UNAUTHENTICATED',_0x306ade[_0x306ade['ALREADY_EXISTS']=0x6]=_0x3719c8(0x26a),_0x306ade[_0x306ade[_0x3719c8(0x2c3)]=0x7]=_0x3719c8(0x2c3),_0x306ade[_0x306ade[_0x3719c8(0x2f0)]=0x8]=_0x3719c8(0x2f0),_0x306ade[_0x306ade[_0x3719c8(0x37e)]=0x9]=_0x3719c8(0x37e),_0x306ade[_0x306ade[_0x3719c8(0x328)]=0xa]=_0x3719c8(0x328),_0x306ade[_0x306ade[_0x3719c8(0x209)]=0x1389]=_0x3719c8(0x209),_0x306ade[_0x306ade[_0x3719c8(0x34c)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x306ade[_0x306ade[_0x3719c8(0x389)]=0x1772]=_0x3719c8(0x389),_0x306ade[_0x306ade[_0x3719c8(0x2f2)]=0x1773]=_0x3719c8(0x2f2),_0x306ade[_0x306ade[_0x3719c8(0x3f5)]=0x1b59]='APPLY_REJECT',_0x306ade[_0x306ade['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x3719c8(0x248),_0x306ade[_0x306ade[_0x3719c8(0x310)]=0x1b5b]=_0x3719c8(0x310),_0x306ade[_0x306ade[_0x3719c8(0x256)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x306ade[_0x306ade[_0x3719c8(0x2d6)]=0x1b5d]=_0x3719c8(0x2d6),_0x306ade[_0x306ade[_0x3719c8(0x31b)]=0x1f41]=_0x3719c8(0x31b),_0x306ade[_0x306ade['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x306ade[_0x306ade[_0x3719c8(0x371)]=0x232a]=_0x3719c8(0x371),_0x306ade[_0x306ade[_0x3719c8(0x324)]=0x232b]=_0x3719c8(0x324),_0x306ade[_0x306ade[_0x3719c8(0x40b)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x306ade[_0x306ade[_0x3719c8(0x2bc)]=0x232d]=_0x3719c8(0x2bc),_0x306ade[_0x306ade[_0x3719c8(0x427)]=0x2711]=_0x3719c8(0x427),_0x306ade[_0x306ade[_0x3719c8(0x3f2)]=0x2712]=_0x3719c8(0x3f2),_0x306ade[_0x306ade[_0x3719c8(0x34e)]=0x2713]=_0x3719c8(0x34e),_0x306ade[_0x306ade[_0x3719c8(0x445)]=0x2714]=_0x3719c8(0x445),_0x306ade[_0x306ade[_0x3719c8(0x3d0)]=0x271a]=_0x3719c8(0x3d0),_0x306ade[_0x306ade[_0x3719c8(0x273)]=0x271b]=_0x3719c8(0x273),_0x306ade[_0x306ade[_0x3719c8(0x369)]=0x271c]=_0x3719c8(0x369),_0x306ade[_0x306ade['YUUMI_ALL_TABLES_IS_INVALID']=0x271d]=_0x3719c8(0x3dc),_0x306ade[_0x306ade[_0x3719c8(0x236)]=0x271e]='YUUMI_PROMPT_MAX_TOKENS_EXCEEDED',_0x306ade[_0x306ade['YUUMI_AI_RUN_FAILED']=0x271f]=_0x3719c8(0x21f),_0x306ade[_0x306ade['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x306ade[_0x306ade[_0x3719c8(0x386)]=0x2ee1]=_0x3719c8(0x386),_0x306ade[_0x306ade[_0x3719c8(0x32d)]=0x2ee2]=_0x3719c8(0x32d),_0x306ade[_0x306ade[_0x3719c8(0x439)]=0x2ee3]=_0x3719c8(0x439),_0x306ade[_0x306ade[_0x3719c8(0x3a8)]=0x2ee4]=_0x3719c8(0x3a8),_0x306ade[_0x306ade[_0x3719c8(0x443)]=0x2ee5]=_0x3719c8(0x443),_0x306ade[_0x306ade[_0x3719c8(0x34a)]=0x32c9]=_0x3719c8(0x34a),_0x306ade[_0x306ade['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x306ade[_0x306ade[_0x3719c8(0x36e)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x306ade[_0x306ade['UNRECOGNIZED']=-0x1]=_0x3719c8(0x40c),_0x306ade))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x2d4697,_0xbd864c,_0x1a25a1,_0x1c0250)=>{const _0xdb5868=_0x3719c8;for(var _0x47780f=_0x1c0250>0x1?void 0x0:_0x1c0250?ns(_0xbd864c,_0x1a25a1):_0xbd864c,_0x3af6e5=_0x2d4697[_0xdb5868(0x1e4)]-0x1,_0x25ed91;_0x3af6e5>=0x0;_0x3af6e5--)(_0x25ed91=_0x2d4697[_0x3af6e5])&&(_0x47780f=_0x25ed91(_0x47780f)||_0x47780f);return _0x47780f;},ue=(_0x9f3ff5,_0x18079e)=>(_0x115b2c,_0x4e4083)=>_0x18079e(_0x115b2c,_0x4e4083,_0x9f3ff5);exports['RemoteUniscriptService']=class extends a[_0x3719c8(0x3bd)]{constructor(_0x18afc0,_0x1c1cae,_0x2ba407){const _0x2a9359=_0x3719c8;super(),this[_0x2a9359(0x2c2)]=_0x18afc0,this[_0x2a9359(0x31c)]=_0x1c1cae,this[_0x2a9359(0x3c6)]=_0x2ba407;}async[_0x3719c8(0x39d)](_0xc891f2,_0x273b28,_0x32340d,..._0x255f6b){const _0xcb4fff=_0x3719c8;var _0x1f42a4,_0x1a8ffb,_0x14f27d,_0x68fba1;const _0x5d03ff=this[_0xcb4fff(0x2c2)][_0xcb4fff(0x212)]();if(!_0x5d03ff)throw new Error(_0xcb4fff(0x390));const _0x121263=((_0x1f42a4=this[_0xcb4fff(0x3c6)]['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x1f42a4:u[_0xcb4fff(0x25f)])+'/'+_0xc891f2+'/run/'+_0x273b28,_0x2565ac=new URL(window[_0xcb4fff(0x381)][_0xcb4fff(0x39f)]),_0x121983={'scriptId':_0xc891f2,'runId':(_0x1a8ffb=_0x2565ac['searchParams']['get'](_0xcb4fff(0x442)))!=null?_0x1a8ffb:'','function':_0x273b28,'unitId':_0x5d03ff[_0xcb4fff(0x44a)](),'argsOfFunction':JSON['stringify'](_0x255f6b),'invokeId':(_0x14f27d=_0x32340d[_0xcb4fff(0x43e)])!=null?_0x14f27d:'','executionId':(_0x68fba1=_0x32340d[_0xcb4fff(0x2ef)])!=null?_0x68fba1:''};try{const _0x386f87=await this['_httpService'][_0xcb4fff(0x36b)](_0x121263,{'body':_0x121983});return _0x386f87['body'][_0xcb4fff(0x245)]&&_0x386f87['body']['error'][_0xcb4fff(0x380)]!==Be['OK']?_0xcb4fff(0x3e5):_0x386f87['body'][_0xcb4fff(0x2f6)];}catch{return _0xcb4fff(0x3e5);}}},exports[_0x3719c8(0x2a3)]=rs([ue(0x0,a[_0x3719c8(0x25d)]),ue(0x1,a[_0x3719c8(0x44e)](G[_0x3719c8(0x403)])),ue(0x2,a[_0x3719c8(0x3a2)])],exports['RemoteUniscriptService']),exports[_0x3719c8(0x304)]=xe,exports[_0x3719c8(0x28f)]=be,exports['SheetCollabCursorShape']=Ae,exports[_0x3719c8(0x23f)]=is,exports['WebURLService']=je;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x6f450a=_0x23cc;(function(_0x5c66d1,_0x3d7025){const _0x26cc69=_0x23cc,_0x3f4de3=_0x5c66d1();while(!![]){try{const _0x7194a2=parseInt(_0x26cc69(0x155))/0x1*(-parseInt(_0x26cc69(0x153))/0x2)+-parseInt(_0x26cc69(0x156))/0x3+-parseInt(_0x26cc69(0x14b))/0x4*(parseInt(_0x26cc69(0x157))/0x5)+parseInt(_0x26cc69(0x15e))/0x6*(parseInt(_0x26cc69(0x164))/0x7)+parseInt(_0x26cc69(0x15d))/0x8+-parseInt(_0x26cc69(0x14e))/0x9*(-parseInt(_0x26cc69(0x15b))/0xa)+-parseInt(_0x26cc69(0x150))/0xb*(parseInt(_0x26cc69(0x152))/0xc);if(_0x7194a2===_0x3d7025)break;else _0x3f4de3['push'](_0x3f4de3['shift']());}catch(_0x5d4ab1){_0x3f4de3['push'](_0x3f4de3['shift']());}}}(_0x4e9b,0xef267));function _0x23cc(_0x1d936c,_0x5918f6){const _0x4e9b4b=_0x4e9b();return _0x23cc=function(_0x23ccb2,_0x63705){_0x23ccb2=_0x23ccb2-0x14b;let _0x502c3d=_0x4e9b4b[_0x23ccb2];return _0x502c3d;},_0x23cc(_0x1d936c,_0x5918f6);}function _0x4e9b(){const _0x4da5e2=['Edit\x20conflicts','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','3704210JflnYv','Local\x20file','14336136PqSLnt','3277758anQcda','Syncing\x20server\x20data...','Connection\x20failed,\x20please\x20check\x20your\x20network.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','exports','14bGsVTy','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.','4951364DyRRxQ','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','45BkKNTA','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','6281FEwMgT','Authentication\x20Error','17004zkfNrj','2wrirlx','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','1156517pAhgix','1661052ETrNGf','5cqSSgD','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'];_0x4e9b=function(){return _0x4da5e2;};return _0x4e9b();}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x6f450a(0x15f),'conflict':_0x6f450a(0x159),'notCollab':_0x6f450a(0x15c),'synced':'Synced','syncing':'Syncing...','offline':_0x6f450a(0x14f)},'session':{'connection-failed':_0x6f450a(0x160),'will-retry':_0x6f450a(0x154),'room-full':_0x6f450a(0x15a),'collaboration-timeout':_0x6f450a(0x14c)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x6f450a(0x165)},'permission':{'title':_0x6f450a(0x151),'content':_0x6f450a(0x158)},'collaboration':{'single-unit':{'warning':_0x6f450a(0x161)},'closeRoom':_0x6f450a(0x162)},'auth':{'needGotoLoginAlert':_0x6f450a(0x14d)}};module[_0x6f450a(0x163)]=e;
|