@univerjs-pro/collaboration-client-ui 0.6.10-nightly.202504281607 → 0.7.0-beta.0
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 -16
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x228498=_0x169c;(function(_0x2ffd7d,_0x31c672){const _0x817b7e=_0x169c,_0x559b37=_0x2ffd7d();while(!![]){try{const _0x76bcea=parseInt(_0x817b7e(0x1ea))/0x1+-parseInt(_0x817b7e(0x1e9))/0x2*(-parseInt(_0x817b7e(0x1f0))/0x3)+-parseInt(_0x817b7e(0x1e0))/0x4*(-parseInt(_0x817b7e(0x1f1))/0x5)+-parseInt(_0x817b7e(0x1e5))/0x6*(parseInt(_0x817b7e(0x1ee))/0x7)+-parseInt(_0x817b7e(0x1e4))/0x8+-parseInt(_0x817b7e(0x1ec))/0x9*(parseInt(_0x817b7e(0x1de))/0xa)+parseInt(_0x817b7e(0x1e2))/0xb*(parseInt(_0x817b7e(0x1e7))/0xc);if(_0x76bcea===_0x31c672)break;else _0x559b37['push'](_0x559b37['shift']());}catch(_0x3a63ef){_0x559b37['push'](_0x559b37['shift']());}}}(_0x5a7c,0x75c4a));function _0x169c(_0x1dbb01,_0x35fbe1){const _0x5a7cd9=_0x5a7c();return _0x169c=function(_0x169c94,_0x4d230b){_0x169c94=_0x169c94-0x1de;let _0x45f6f6=_0x5a7cd9[_0x169c94];return _0x45f6f6;},_0x169c(_0x1dbb01,_0x35fbe1);}function _0x5a7c(){const _0x4ba431=['60tDTkqt','85515MHmdYy','10wiMJau','get','20bQdRbY','RemoteUniscriptService','143IeuCzp','@univerjs/core/facade','7352472ZeDcEp','102IVtafW','runOnServer','1142544fWppBF','FUniver','57026WJJNKj','552355gwQXqT','extend','2559258pEyXrW','@univerjs-pro/collaboration-client-ui','312977shzkwf','_injector'];_0x5a7c=function(){return _0x4ba431;};return _0x5a7c();}const t=require(_0x228498(0x1ed)),e=require(_0x228498(0x1e3));class c extends e[_0x228498(0x1e8)]{[_0x228498(0x1e6)](_0x625ba3,_0x5a155c,..._0x33d41b){const _0x5031c7=_0x228498;return this[_0x5031c7(0x1ef)][_0x5031c7(0x1df)](t[_0x5031c7(0x1e1)])['runOnServer'](_0x625ba3,_0x5a155c,{},..._0x33d41b);}}e[_0x228498(0x1e8)][_0x228498(0x1eb)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x17da78=_0x135d;(function(_0x59fd50,_0x57a25c){const _0x2eb22c=_0x135d,_0x3b300f=_0x59fd50();while(!![]){try{const _0x109cbd=parseInt(_0x2eb22c(0x195))/0x1+-parseInt(_0x2eb22c(0x184))/0x2+-parseInt(_0x2eb22c(0x21f))/0x3+-parseInt(_0x2eb22c(0x2b4))/0x4+-parseInt(_0x2eb22c(0x1d6))/0x5*(-parseInt(_0x2eb22c(0x28a))/0x6)+parseInt(_0x2eb22c(0x244))/0x7+parseInt(_0x2eb22c(0x18f))/0x8*(parseInt(_0x2eb22c(0x321))/0x9);if(_0x109cbd===_0x57a25c)break;else _0x3b300f['push'](_0x3b300f['shift']());}catch(_0x42a291){_0x3b300f['push'](_0x3b300f['shift']());}}}(_0x2c59,0x7a408));var Ve=Object[_0x17da78(0x231)],Xe=(_0x5a938a,_0x4287fd,_0x245e8b)=>_0x4287fd in _0x5a938a?Ve(_0x5a938a,_0x4287fd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x245e8b}):_0x5a938a[_0x4287fd]=_0x245e8b,h=(_0x1f0b8d,_0x379671,_0x5a5ec6)=>Xe(_0x1f0b8d,typeof _0x379671!='symbol'?_0x379671+'':_0x379671,_0x5a5ec6);Object['defineProperty'](exports,Symbol[_0x17da78(0x21a)],{'value':'Module'});const u=require(_0x17da78(0x2d5)),a=require(_0x17da78(0x10b)),p=require('@univerjs/engine-render'),G=require('@univerjs/network'),b=require('@univerjs/docs-ui'),Ge=require(_0x17da78(0x2b7)),d=require(_0x17da78(0x2d8)),W=require(_0x17da78(0x312)),m=require(_0x17da78(0x303)),Ee=require('@univerjs/engine-formula'),g=require(_0x17da78(0x105)),$=require('rxjs/operators'),X=require(_0x17da78(0x246)),P=require(_0x17da78(0x2bf)),T=require(_0x17da78(0x289)),D=require(_0x17da78(0x2b8)),M=require('react'),qe=require(_0x17da78(0x219));var Ke=Object[_0x17da78(0x2d6)],ze=(_0x320af4,_0x4514ef,_0x2632fd,_0x2911b9)=>{const _0x50aeb9=_0x17da78;for(var _0xa85f7e=_0x2911b9>0x1?void 0x0:_0x2911b9?Ke(_0x4514ef,_0x2632fd):_0x4514ef,_0x25c5df=_0x320af4[_0x50aeb9(0x12c)]-0x1,_0x634ec1;_0x25c5df>=0x0;_0x25c5df--)(_0x634ec1=_0x320af4[_0x25c5df])&&(_0xa85f7e=_0x634ec1(_0xa85f7e)||_0xa85f7e);return _0xa85f7e;},Te=(_0x125657,_0x4882f4)=>(_0x421ed3,_0x23ae1c)=>_0x4882f4(_0x421ed3,_0x23ae1c,_0x125657);let de=class extends a[_0x17da78(0x206)]{constructor(_0x12b367,_0x2ee9be){const _0x5c16a6=_0x17da78;super(),this['_docClipboardService']=_0x12b367,this[_0x5c16a6(0x1ac)]=_0x2ee9be,this[_0x5c16a6(0xd7)]();}[_0x17da78(0xd7)](){const _0x2cbd22=_0x17da78,_0x5009ee=this;this[_0x2cbd22(0x1cb)](this[_0x2cbd22(0xbf)][_0x2cbd22(0x1c3)]({'onBeforePasteImage':async _0x18b7c1=>{const _0x37b387=_0x2cbd22,_0x53685d=await _0x5009ee[_0x37b387(0x1ac)]['saveImage'](_0x18b7c1);return _0x53685d?{'source':_0x53685d[_0x37b387(0x317)],'imageSourceType':_0x53685d[_0x37b387(0x258)]}:null;}}));}};de=ze([Te(0x0,b[_0x17da78(0x16e)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x17da78(0x1a1),_0x17da78(0x1a5),'verdancy600',_0x17da78(0x313),_0x17da78(0x27f),_0x17da78(0x271)];class me extends a[_0x17da78(0x175)]{constructor(){const _0x2e0a1e=_0x17da78;super(...arguments),h(this,_0x2e0a1e(0x279),new Map()),h(this,'_colorIndex',0x0);}[_0x17da78(0x12d)](_0x5f5d8a){const _0x318a4f=_0x17da78;if(this[_0x318a4f(0x279)][_0x318a4f(0x24f)](_0x5f5d8a))return this[_0x318a4f(0x279)][_0x318a4f(0xc7)](_0x5f5d8a);const _0x46f23d=Oe[this[_0x318a4f(0x109)]];return this[_0x318a4f(0x109)]=(this['_colorIndex']+0x1)%Oe[_0x318a4f(0x12c)],this[_0x318a4f(0x279)][_0x318a4f(0x1bb)](_0x5f5d8a,_0x46f23d),_0x46f23d;}}function Pe(_0x183a0f){const _0x216267=_0x17da78;let _0x495b61='';for(const _0x5656b7 of _0x183a0f){const {startOffset:_0x443194,endOffset:_0x4678a6,isActive:_0x307bd5,rangeType:_0x1079e5,segmentId:_0x3fe768,segmentPage:_0x30f553}=_0x5656b7;_0x495b61[_0x216267(0x12c)]&&(_0x495b61+=','),_0x495b61+=_0x443194+':'+_0x4678a6+':'+(_0x307bd5?'1':'0')+':'+_0x1079e5+':'+_0x3fe768+':'+_0x30f553;}return _0x495b61;}function Je(_0x5f3099){const _0xf646b7=_0x17da78,_0x5dda7a=_0x5f3099[_0xf646b7(0x124)](','),_0x2db49a=[];for(const _0x4c8bc4 of _0x5dda7a){const [_0x3062d3,_0x5e7020,_0x484d11,_0x20147b,_0x54077b,_0x44a72a]=_0x4c8bc4['split'](':');_0x2db49a[_0xf646b7(0x32a)]({'startOffset':Number(_0x3062d3),'endOffset':Number(_0x5e7020),'collapsed':_0x3062d3===_0x5e7020,'isActive':_0x484d11==='1','rangeType':_0x20147b===a[_0xf646b7(0x30d)][_0xf646b7(0xc1)]?a[_0xf646b7(0x30d)]['TEXT']:a[_0xf646b7(0x30d)]['RECT'],'segmentId':typeof _0x54077b==_0xf646b7(0x20c)?String(_0x54077b):'','segmentPage':Number(_0x44a72a!=null?_0x44a72a:-0x1)});}return _0x2db49a[_0xf646b7(0x13d)](_0x55bd29=>_0x55bd29['isActive'])||(_0x2db49a[0x0]['isActive']=!0x0),_0x2db49a;}class Ce extends a[_0x17da78(0x206)]{constructor(){const _0x132b3e=_0x17da78;super(...arguments),h(this,'_collabCursorState$',new d[(_0x132b3e(0x2f6))](null)),h(this,_0x132b3e(0x2f5),this[_0x132b3e(0x154)]['asObservable']());}[_0x17da78(0x265)](_0xda2598){const {unitID:_0x401e8a,memberID:_0x16e809,textRanges:_0x266726}=_0xda2598,_0x5acd42=Pe(_0x266726);if(_0x5acd42==='')return;const _0x72d792={'unitID':_0x401e8a,'memberID':_0x16e809,'selection':_0x5acd42};this['_collabCursorState$']['next'](_0x72d792);}}var Ze=Object[_0x17da78(0x2d6)],Qe=(_0x4fcb8b,_0x317d45,_0x280c50,_0x31bd7a)=>{const _0x25aaa8=_0x17da78;for(var _0x20b3bd=_0x31bd7a>0x1?void 0x0:_0x31bd7a?Ze(_0x317d45,_0x280c50):_0x317d45,_0x49df27=_0x4fcb8b[_0x25aaa8(0x12c)]-0x1,_0x2cd89b;_0x49df27>=0x0;_0x49df27--)(_0x2cd89b=_0x4fcb8b[_0x49df27])&&(_0x20b3bd=_0x2cd89b(_0x20b3bd)||_0x20b3bd);return _0x20b3bd;},L=(_0x1c86f5,_0x5961be)=>(_0x234b53,_0x5ac6ee)=>_0x5961be(_0x234b53,_0x5ac6ee,_0x1c86f5);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0xea2c90,_0x79f4ec,_0x3c1787,_0x1ba2f6,_0x16815c,_0x49a119,_0x2c7381,_0xa11a5,_0x3db86c){const _0x10fa7e=_0x17da78;super(),h(this,_0x10fa7e(0x2c4),!0x1),h(this,'_init',!0x1),h(this,_0x10fa7e(0x207),new d[(_0x10fa7e(0x2f6))](new Map())),h(this,_0x10fa7e(0x1b8),this[_0x10fa7e(0x207)][_0x10fa7e(0x2e1)]()),h(this,'_roomMembers$',new d[(_0x10fa7e(0x2f6))]([])),h(this,_0x10fa7e(0x160),this[_0x10fa7e(0x102)]['pipe'](d['debounceTime'](et))),h(this,_0x10fa7e(0x2e8),a['debounce'](_0x3669b1=>{const _0x1ba5c2=_0x10fa7e,_0x1714ee={'eventID':m[_0x1ba5c2(0x267)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x1ba5c2(0x247)],'memberID':this[_0x1ba5c2(0x1be)]['getMemberID'](),'selection':Pe(_0x3669b1)}};this[_0x1ba5c2(0x1be)][_0x1ba5c2(0xbb)](_0x1714ee,this['unitID']);},tt)),(this[_0x10fa7e(0x247)]=_0xea2c90,this['_session']=_0x79f4ec,this['_injector']=_0x3c1787,this[_0x10fa7e(0x1d4)]=_0x1ba2f6,this['_memberService']=_0x16815c,this[_0x10fa7e(0x183)]=_0x49a119,this['_transformService']=_0x2c7381,this[_0x10fa7e(0x2ab)]=_0xa11a5,this[_0x10fa7e(0x155)]=_0x3db86c);}get[_0x17da78(0x10d)](){const _0x4e7ced=_0x17da78;return this[_0x4e7ced(0x207)][_0x4e7ced(0x2ef)]();}get[_0x17da78(0x1ae)](){return this['_roomMembers$']['getValue']();}[_0x17da78(0x26d)](){const _0x2a579b=_0x17da78;super[_0x2a579b(0x26d)](),this[_0x2a579b(0x207)][_0x2a579b(0x117)](new Map()),this[_0x2a579b(0x207)][_0x2a579b(0xba)](),this['_roomMembers$'][_0x2a579b(0x117)]([]),this['_roomMembers$'][_0x2a579b(0xba)]();}[_0x17da78(0x1e2)](){const _0x2f2d19=_0x17da78;this[_0x2f2d19(0xd7)]||(this[_0x2f2d19(0xd7)]=!0x0,this[_0x2f2d19(0x1be)]['sessionStatus$'][_0x2f2d19(0x2fd)](d['takeUntil'](this['dispose$']))[_0x2f2d19(0x221)](_0x32c401=>{const _0x1567ab=_0x2f2d19;_0x32c401===u['SessionStatus']['ONLINE']?this['_toggleOnline']():this[_0x1567ab(0x27e)]();}),this[_0x2f2d19(0x1be)][_0x2f2d19(0xe6)][_0x2f2d19(0x2fd)](d['takeUntil'](this['dispose$']))[_0x2f2d19(0x221)](_0x12c44c=>{const _0x45c159=_0x2f2d19,_0x316c19=_0x12c44c[_0x45c159(0x1b5)];_0x316c19===m[_0x45c159(0x267)][_0x45c159(0x334)]&&this['_onCursorUpdate'](_0x12c44c),_0x316c19===m[_0x45c159(0x267)]['USERS_LEAVE']&&this[_0x45c159(0x189)](_0x12c44c);}),this[_0x2f2d19(0x1cb)](this[_0x2f2d19(0x155)][_0x2f2d19(0x170)](_0xdd4f27=>{const _0x3e378d=_0x2f2d19,_0x3ebd05=_0xdd4f27[_0x3e378d(0xdf)];_0x3ebd05!=null&&this[_0x3e378d(0x2c4)]&&_0xdd4f27['id']===W[_0x3e378d(0x1eb)]['id']&&_0x3ebd05[_0x3e378d(0x2ea)]===this[_0x3e378d(0x247)]&&_0x3ebd05[_0x3e378d(0x32f)]===!0x1&&_0x3ebd05[_0x3e378d(0x32e)][_0x3e378d(0x12c)]>0x0&&this[_0x3e378d(0x2e8)](_0x3ebd05['ranges']);})),this[_0x2f2d19(0x183)][_0x2f2d19(0x2f5)][_0x2f2d19(0x2fd)](d['takeUntil'](this[_0x2f2d19(0xc9)]))[_0x2f2d19(0x221)](_0x2712f7=>{const _0x53cb1f=_0x2f2d19;if((_0x2712f7==null?void 0x0:_0x2712f7[_0x53cb1f(0x247)])!==this['unitID'])return;const _0x15b973={'eventID':m[_0x53cb1f(0x267)][_0x53cb1f(0x334)],'data':_0x2712f7};this[_0x53cb1f(0x2c9)](_0x15b973);}),this['disposeWithMe'](this[_0x2f2d19(0x155)][_0x2f2d19(0x170)](_0x23dc9f=>{const _0x320a1e=_0x2f2d19;if(_0x23dc9f['params']==null)return;const _0xb0eb1a=_0x23dc9f[_0x320a1e(0xdf)];if(_0x23dc9f['id']!==W[_0x320a1e(0xc5)]['id']||_0xb0eb1a[_0x320a1e(0x2ea)]!==this['unitID'])return;const _0x347cee={'id':_0x320a1e(0xc0),'params':_0xb0eb1a},_0x2bef2c=this[_0x320a1e(0x10d)];for(const [_0xd0b315,_0xef4d32]of _0x2bef2c){const _0x5da44d={'id':_0x320a1e(0xc0),'params':{'unitId':this[_0x320a1e(0x247)],'actions':null,'textRanges':_0xef4d32[_0x320a1e(0x32e)]}},_0x38f43c=this[_0x320a1e(0x301)][_0x320a1e(0x29d)](_0x347cee,_0x5da44d,!0x1);if(m['isTransformMutationFailure'](_0x38f43c))throw _0x38f43c[_0x320a1e(0x11a)];_0x2bef2c[_0x320a1e(0x1bb)](_0xd0b315,{..._0xef4d32,'ranges':_0x38f43c[_0x320a1e(0x143)][_0x320a1e(0xdf)][_0x320a1e(0x144)]});}queueMicrotask(()=>{const _0x7d367e=_0x320a1e;this[_0x7d367e(0x207)][_0x7d367e(0x117)](_0x2bef2c);});})));}[_0x17da78(0x2c9)](_0x358d4f){const _0x2310da=_0x17da78;var _0xb3cdc,_0x25a506;const {memberID:_0x322dc7,selection:_0x432e0d}=_0x358d4f[_0x2310da(0x214)],_0x32e1ba=Je(_0x432e0d),_0x52a162=(_0x25a506=(_0xb3cdc=this['_memberService']['getMember'](this[_0x2310da(0x247)],_0x322dc7))==null?void 0x0:_0xb3cdc['name'])!=null?_0x25a506:'Unknown\x20user',_0x43d1eb={'color':this[_0x2310da(0x1d4)][_0x2310da(0x12d)](_0x322dc7),'name':_0x52a162,'ranges':_0x32e1ba},_0x480b24=this[_0x2310da(0x10d)];_0x480b24['set'](_0x322dc7,_0x43d1eb),this[_0x2310da(0x207)][_0x2310da(0x117)](_0x480b24);}[_0x17da78(0x189)](_0x18d85e){const _0x541eaa=_0x17da78,{memberID:_0x32a0fa}=_0x18d85e[_0x541eaa(0x214)],_0x413f31=this[_0x541eaa(0x10d)];_0x413f31[_0x541eaa(0x1cc)](_0x32a0fa),this[_0x541eaa(0x207)]['next'](_0x413f31);}[_0x17da78(0x1e4)](){const _0x4fc266=_0x17da78;var _0x12dbfd;if(this[_0x4fc266(0x2c4)]=!0x0,((_0x12dbfd=this[_0x4fc266(0x2ab)][_0x4fc266(0xfb)]())==null?void 0x0:_0x12dbfd[_0x4fc266(0x2cf)]())!==this[_0x4fc266(0x247)])return;const _0x2920ff=this[_0x4fc266(0x32d)]['get'](W['DocSelectionManagerService'])[_0x4fc266(0x197)]();Array[_0x4fc266(0x2ba)](_0x2920ff)&&_0x2920ff[_0x4fc266(0x12c)]>0x0&&this[_0x4fc266(0x2e8)](_0x2920ff);}[_0x17da78(0x27e)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0x17da78(0x18a)](a[_0x17da78(0x31b)])),L(0x3,a['Inject'](me)),L(0x4,a[_0x17da78(0x18a)](u[_0x17da78(0x103)])),L(0x5,a[_0x17da78(0x18a)](Ce)),L(0x6,m[_0x17da78(0x2de)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x17da78(0x1fb)])],fe);var st=Object[_0x17da78(0x2d6)],it=(_0x440b2c,_0x1643d4,_0x1e7d71,_0x5208fe)=>{const _0x2daa37=_0x17da78;for(var _0x54a99f=_0x5208fe>0x1?void 0x0:_0x5208fe?st(_0x1643d4,_0x1e7d71):_0x1643d4,_0x2b7111=_0x440b2c[_0x2daa37(0x12c)]-0x1,_0x11a90c;_0x2b7111>=0x0;_0x2b7111--)(_0x11a90c=_0x440b2c[_0x2b7111])&&(_0x54a99f=_0x11a90c(_0x54a99f)||_0x54a99f);return _0x54a99f;},A=(_0x1052f9,_0x2e6c28)=>(_0x403034,_0x16b616)=>_0x2e6c28(_0x403034,_0x16b616,_0x1052f9);const nt=0x12c,rt=0x64,ot=()=>{let _0x341640=[],_0x1e3a9d=!0x1;return _0x49810a=>{_0x341640['push'](_0x49810a),_0x1e3a9d||(_0x1e3a9d=!0x0,setTimeout(()=>{const _0x130586=_0x135d;_0x341640[_0x130586(0x21c)](_0x5632d8=>_0x5632d8()),_0x341640=[],_0x1e3a9d=!0x1;}));};};let Se=class extends a[_0x17da78(0x206)]{constructor(_0x2c4422,_0x4e225b,_0x221314,_0x47af84,_0x594d03,_0x56aadb,_0x3e548e,_0x3f205b){const _0x599387=_0x17da78;super(),h(this,_0x599387(0x2c4),!0x1),h(this,_0x599387(0xd7),!0x1),h(this,_0x599387(0x207),new d[(_0x599387(0x2f6))](new Map())),h(this,_0x599387(0x1b8),this[_0x599387(0x207)][_0x599387(0x2e1)]()),h(this,'_roomMembers$',new d[(_0x599387(0x2f6))]([])),h(this,_0x599387(0x160),this[_0x599387(0x102)]['pipe'](d['debounceTime'](nt))),h(this,_0x599387(0x2e8),a[_0x599387(0x2c0)]((_0x50bca0,_0x472e35)=>{const _0x460f3f=_0x599387,_0x5e3ac3={'eventID':m[_0x460f3f(0x267)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x460f3f(0x247)],'memberID':this[_0x460f3f(0x1be)][_0x460f3f(0x2a6)](),'selection':Ee[_0x460f3f(0x2f2)](_0x50bca0,_0x472e35['range'])}};this[_0x460f3f(0x1be)][_0x460f3f(0xbb)](_0x5e3ac3,this[_0x460f3f(0x247)]);},rt)),(this['unitID']=_0x2c4422,this[_0x599387(0x1be)]=_0x4e225b,this['_injector']=_0x221314,this['_colorAssignService']=_0x47af84,this[_0x599387(0x230)]=_0x594d03,this[_0x599387(0x2ab)]=_0x56aadb,this[_0x599387(0x155)]=_0x3e548e,this[_0x599387(0x2bb)]=_0x3f205b);}get[_0x17da78(0x10d)](){const _0x3a9c6a=_0x17da78;return this[_0x3a9c6a(0x207)][_0x3a9c6a(0x2ef)]();}get[_0x17da78(0x1ae)](){const _0x278d97=_0x17da78;return this[_0x278d97(0x102)]['getValue']();}['dispose'](){const _0x29520e=_0x17da78;super['dispose'](),this[_0x29520e(0x207)][_0x29520e(0x117)](new Map()),this[_0x29520e(0x207)][_0x29520e(0xba)](),this[_0x29520e(0x102)][_0x29520e(0x117)]([]),this[_0x29520e(0x102)][_0x29520e(0xba)]();}[_0x17da78(0x1e2)](){const _0x2422e5=_0x17da78;this['_init']||(this[_0x2422e5(0xd7)]=!0x0,this['_session'][_0x2422e5(0xe0)][_0x2422e5(0x2fd)](d[_0x2422e5(0x1e8)](this[_0x2422e5(0xc9)]))[_0x2422e5(0x221)](_0x5361ac=>{const _0x2f31a6=_0x2422e5;_0x5361ac===u[_0x2f31a6(0x20e)][_0x2f31a6(0x122)]?this[_0x2f31a6(0x1e4)]():this[_0x2f31a6(0x27e)]();}),this[_0x2422e5(0x1be)][_0x2422e5(0xe6)]['pipe'](d[_0x2422e5(0x1e8)](this[_0x2422e5(0xc9)]))['subscribe'](_0x30ca49=>{const _0x50d915=_0x2422e5,_0x2d5b8d=_0x30ca49[_0x50d915(0x1b5)];_0x2d5b8d===m['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x50d915(0x2c9)](_0x30ca49),_0x2d5b8d===m['CollaborationEvent'][_0x50d915(0x276)]&&this['_onCursorDelete'](_0x30ca49);}),this['_onRefRangeChange'](),this[_0x2422e5(0x1cb)](this['_commandService'][_0x2422e5(0x170)](_0x1e3776=>{const _0x3b00c4=_0x2422e5;if(this[_0x3b00c4(0x2c4)]&&_0x1e3776['id']===g['SetSelectionsOperation']['id']&&_0x1e3776['params'][_0x3b00c4(0x2ea)]===this['unitID']){const _0x17c101=_0x1e3776['params'];this[_0x3b00c4(0x2e8)](_0x17c101[_0x3b00c4(0x323)],_0x17c101[_0x3b00c4(0x21b)][0x0]);}})));}['_onCursorUpdate'](_0x241e09){const _0x3b8f68=_0x17da78;var _0x230444,_0x3c349e;const {memberID:_0x1f3061,selection:_0x335321}=_0x241e09[_0x3b8f68(0x214)],{sheetName:_0x5ccbdd,range:_0x5a2efd}=Ee[_0x3b8f68(0x113)](_0x335321),_0x40d4c0={'name':(_0x3c349e=(_0x230444=this[_0x3b8f68(0x230)][_0x3b8f68(0x104)](this[_0x3b8f68(0x247)],_0x1f3061))==null?void 0x0:_0x230444['name'])!=null?_0x3c349e:_0x3b8f68(0x1c0),'range':this['_getMergeRange'](_0x5ccbdd,_0x5a2efd),'sheetID':_0x5ccbdd,'color':this[_0x3b8f68(0x1d4)][_0x3b8f68(0x12d)](_0x1f3061),'selection':_0x335321},_0x524725=this['cursorInfo'];_0x524725['set'](_0x1f3061,_0x40d4c0),this[_0x3b8f68(0x207)][_0x3b8f68(0x117)](_0x524725);}[_0x17da78(0x189)](_0x3702a5){const _0x333222=_0x17da78,{memberID:_0x324cb0}=_0x3702a5[_0x333222(0x214)],_0x3ac674=this[_0x333222(0x10d)];_0x3ac674[_0x333222(0x1cc)](_0x324cb0),this[_0x333222(0x207)][_0x333222(0x117)](_0x3ac674);}[_0x17da78(0x20b)](_0x58d1e5,_0x5c1926){const _0x20bfed=_0x17da78;var _0x29665c,_0x42bb33;const _0x3f4b5b=(_0x42bb33=(_0x29665c=this[_0x20bfed(0x2ab)][_0x20bfed(0x24a)](this[_0x20bfed(0x247)]))==null?void 0x0:_0x29665c[_0x20bfed(0x249)](_0x58d1e5))==null?void 0x0:_0x42bb33[_0x20bfed(0x1b7)]();return(_0x3f4b5b==null?void 0x0:_0x3f4b5b[_0x20bfed(0x27c)](_0x4315d3=>a[_0x20bfed(0x178)]['contains'](_0x4315d3,_0x5c1926)))||_0x5c1926;}[_0x17da78(0x29b)](){const _0x5eba16=_0x17da78,_0x3f7798=new a['DisposableCollection'](),_0x207fdd=ot(),_0x9ec24d=()=>{const _0x4b2ed1=_0x135d;_0x3f7798['dispose']();const _0x38a4a7=(_0x40766b,_0x5ada04,_0xea882f,_0x230720)=>{const _0xd8645a=_0x135d;let _0x1f6a00=[];switch(_0x40766b['id']){case g['EffectRefRangId'][_0xd8645a(0x22b)]:{_0x1f6a00=g[_0xd8645a(0xe2)](_0x40766b,_0x230720);break;}case g[_0xd8645a(0x2b0)][_0xd8645a(0x30a)]:{_0x1f6a00=g[_0xd8645a(0x28f)](_0x40766b,_0x230720);break;}case g['EffectRefRangId'][_0xd8645a(0x176)]:{_0x1f6a00=g['handleInsertCol'](_0x40766b,_0x230720);break;}case g['EffectRefRangId'][_0xd8645a(0x270)]:{_0x1f6a00=g[_0xd8645a(0x228)](_0x40766b,_0x230720);break;}case g[_0xd8645a(0x2b0)]['InsertRangeMoveRightCommandId']:{_0x1f6a00=g['handleInsertRangeMoveRight'](_0x40766b,_0x230720);break;}case g['EffectRefRangId'][_0xd8645a(0x225)]:{_0x1f6a00=g[_0xd8645a(0x1fa)](_0x40766b,_0x230720);break;}case g[_0xd8645a(0x2b0)]['MoveRangeCommandId']:{_0x1f6a00=g['handleMoveRange'](_0x40766b,_0x230720);break;}case g['EffectRefRangId'][_0xd8645a(0xd0)]:{_0x1f6a00=g['handleIRemoveCol'](_0x40766b,_0x230720);break;}case g[_0xd8645a(0x2b0)]['RemoveRowCommandId']:{_0x1f6a00=g[_0xd8645a(0x287)](_0x40766b,_0x230720);break;}}const _0x26a47e=g[_0xd8645a(0x232)](_0x1f6a00,_0x230720),_0x495ae0=this['cursorInfo'][_0xd8645a(0xc7)](_0x5ada04);if(_0x495ae0&&_0x26a47e){const _0x4ae51d={..._0x495ae0,'range':_0x26a47e};this[_0xd8645a(0x10d)][_0xd8645a(0x1bb)](_0x5ada04,_0x4ae51d),_0x207fdd(()=>{const _0x57f95c=_0xd8645a,_0x1d3c66=this[_0x57f95c(0x2bb)][_0x57f95c(0x186)](_0x26a47e,_0xb7de1c=>(_0x1d3c66[_0x57f95c(0x26d)](),_0x38a4a7(_0xb7de1c,_0x5ada04,_0xea882f,_0x26a47e)));_0x3f7798[_0x57f95c(0x23f)](_0x1d3c66);});}return{'redos':[],'undos':[]};};this[_0x4b2ed1(0x10d)][_0x4b2ed1(0x21c)]((_0x60a720,_0x5223d2)=>{const _0x472b30=_0x4b2ed1,{range:_0x2482a7,sheetID:_0x4bb57d}=_0x60a720,_0x54c642=this[_0x472b30(0x2bb)][_0x472b30(0x186)](_0x2482a7,_0x3ba08a=>(_0x54c642['dispose'](),_0x38a4a7(_0x3ba08a,_0x5223d2,_0x4bb57d,_0x2482a7)));_0x3f7798[_0x472b30(0x23f)](_0x54c642);});};this[_0x5eba16(0x1cb)](a['toDisposable'](this[_0x5eba16(0x207)][_0x5eba16(0x221)](()=>{_0x9ec24d();})));}[_0x17da78(0x1e4)](){const _0x46b7f5=_0x17da78;var _0xaf7878,_0x20c7ff;if(this[_0x46b7f5(0x2c4)]=!0x0,((_0xaf7878=this[_0x46b7f5(0x2ab)][_0x46b7f5(0xfb)]())==null?void 0x0:_0xaf7878[_0x46b7f5(0x2cf)]())!==this['unitID'])return;const _0x197c9f=(_0x20c7ff=this['_injector'][_0x46b7f5(0xc7)](g[_0x46b7f5(0xcc)])[_0x46b7f5(0x16a)]())==null?void 0x0:_0x20c7ff[0x0],_0x3cd70b=this[_0x46b7f5(0x2ab)]['getCurrentUnitForType'](a[_0x46b7f5(0x29f)][_0x46b7f5(0x14b)])[_0x46b7f5(0xeb)]();_0x197c9f&&_0x3cd70b&&this[_0x46b7f5(0x2e8)](_0x3cd70b[_0x46b7f5(0x1d9)](),_0x197c9f);}[_0x17da78(0x27e)](){this['_online']=!0x1;}};Se=it([A(0x2,a['Inject'](a[_0x17da78(0x31b)])),A(0x3,a['Inject'](me)),A(0x4,a['Inject'](u[_0x17da78(0x103)])),A(0x5,a[_0x17da78(0x15d)]),A(0x6,a[_0x17da78(0x1fb)]),A(0x7,a[_0x17da78(0x18a)](g[_0x17da78(0x19a)]))],Se);var at=Object[_0x17da78(0x2d6)],ct=(_0x2d41e4,_0x25f00a,_0x41ba76,_0x5555aa)=>{for(var _0x1c95a4=_0x5555aa>0x1?void 0x0:_0x5555aa?at(_0x25f00a,_0x41ba76):_0x25f00a,_0x26096f=_0x2d41e4['length']-0x1,_0xa4adc9;_0x26096f>=0x0;_0x26096f--)(_0xa4adc9=_0x2d41e4[_0x26096f])&&(_0x1c95a4=_0xa4adc9(_0x1c95a4)||_0x1c95a4);return _0x1c95a4;},ie=(_0x9260fa,_0x1ec891)=>(_0x984e8,_0x1710a3)=>_0x1ec891(_0x984e8,_0x1710a3,_0x9260fa);let x=class extends a[_0x17da78(0x206)]{constructor(_0x57bddb,_0x9c1f2f,_0x180236){const _0x2ae9bb=_0x17da78;super(),h(this,_0x2ae9bb(0x22e),new Map()),h(this,_0x2ae9bb(0x1f1),new d['Subject']()),(this[_0x2ae9bb(0x2ab)]=_0x57bddb,this[_0x2ae9bb(0x32d)]=_0x9c1f2f,this[_0x2ae9bb(0x180)]=_0x180236,this['_init']());}[_0x17da78(0x26d)](){const _0x26aa63=_0x17da78;super[_0x26aa63(0x26d)](),this['_entityInit$']['complete'](),this[_0x26aa63(0x22e)][_0x26aa63(0x21c)](_0x47f27c=>_0x47f27c[_0x26aa63(0x26d)]());}['getCollabCursors$'](_0x58d68d){const _0x20bd41=_0x17da78;return this[_0x20bd41(0x22e)][_0x20bd41(0x24f)](_0x58d68d)?this[_0x20bd41(0x22e)][_0x20bd41(0xc7)](_0x58d68d)[_0x20bd41(0x1b8)]:this[_0x20bd41(0x1f1)]['pipe'](d[_0x20bd41(0x167)](_0x347e5b=>_0x347e5b[_0x20bd41(0x247)]===_0x58d68d),d['switchMap'](_0x3c433b=>_0x3c433b['cursorInfo$']));}['_init'](){const _0x498114=_0x17da78;this[_0x498114(0x2ab)]['getTypeOfUnitAdded$'](a[_0x498114(0x29f)][_0x498114(0x14b)])['pipe'](d[_0x498114(0x1e8)](this[_0x498114(0xc9)]))[_0x498114(0x221)](async _0x225a66=>{const _0x2b0584=_0x498114,_0x3f658d=_0x225a66[_0x2b0584(0x2cf)](),_0x556dc1=await this['_startSheetCollabCursor'](_0x3f658d);this[_0x2b0584(0x1f1)][_0x2b0584(0x117)](_0x556dc1),this['_entities'][_0x2b0584(0x1bb)](_0x3f658d,_0x556dc1);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x498114(0x29f)][_0x498114(0x14a)])[_0x498114(0x2fd)](d[_0x498114(0x1e8)](this[_0x498114(0xc9)]))[_0x498114(0x2fd)](d['filter'](_0x3b2ec8=>!_0x3b2ec8[_0x498114(0x2cf)]()['startsWith']('__')))['subscribe'](async _0x20bcaa=>{const _0x51bc9e=_0x498114,_0x4aed83=_0x20bcaa[_0x51bc9e(0x2cf)](),_0x11e405=await this[_0x51bc9e(0x2a0)](_0x4aed83);this[_0x51bc9e(0x1f1)][_0x51bc9e(0x117)](_0x11e405),this['_entities'][_0x51bc9e(0x1bb)](_0x4aed83,_0x11e405);}),d[_0x498114(0x238)](this[_0x498114(0x2ab)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x498114(0x14a)]),this[_0x498114(0x2ab)][_0x498114(0x2e4)](a[_0x498114(0x29f)][_0x498114(0x14b)]))[_0x498114(0x2fd)](d[_0x498114(0x1e8)](this[_0x498114(0xc9)]))[_0x498114(0x221)](_0x2a4339=>{const _0xfe2cd9=_0x498114,_0x1a9e3b=_0x2a4339['getUnitId'](),_0x1dfa83=this['_entities'][_0xfe2cd9(0xc7)](_0x1a9e3b);_0x1dfa83&&(_0x1dfa83[_0xfe2cd9(0x26d)](),this[_0xfe2cd9(0x22e)][_0xfe2cd9(0x1cc)](_0x1a9e3b));});}async[_0x17da78(0xd4)](_0x27935d){const _0x24fcdf=_0x17da78,_0x3b42a1=await this[_0x24fcdf(0x180)][_0x24fcdf(0x1d2)](_0x27935d),_0x14709d=this['_injector'][_0x24fcdf(0x153)](Se,_0x27935d,_0x3b42a1);return _0x14709d[_0x24fcdf(0x1e2)](),_0x14709d;}async[_0x17da78(0x2a0)](_0x37ab66){const _0x38a904=_0x17da78,_0x28149e=await this[_0x38a904(0x180)][_0x38a904(0x1d2)](_0x37ab66),_0x36db3e=this[_0x38a904(0x32d)][_0x38a904(0x153)](fe,_0x37ab66,_0x28149e);return _0x36db3e[_0x38a904(0x1e2)](),_0x36db3e;}};x=ct([ie(0x0,a[_0x17da78(0x15d)]),ie(0x1,a[_0x17da78(0x18a)](a[_0x17da78(0x31b)])),ie(0x2,a[_0x17da78(0x18a)](u[_0x17da78(0xd3)]))],x);const q=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x1287eb,_0x4803c9){const _0x115c62=_0x17da78;let {radius:_0x474fa1,width:_0x44198c,height:_0x2a275a}=_0x4803c9;_0x474fa1=_0x474fa1!=null?_0x474fa1:0x0,_0x44198c=_0x44198c!=null?_0x44198c:0x1e,_0x2a275a=_0x2a275a!=null?_0x2a275a:0x1e;let _0x4d6a32=0x0,_0x43e9d8=0x0,_0x29cbf5=0x0;_0x4d6a32=_0x43e9d8=_0x29cbf5=Math[_0x115c62(0xe8)](_0x474fa1,_0x44198c/0x2,_0x2a275a/0x2),_0x1287eb[_0x115c62(0x295)](),_0x1287eb['moveTo'](_0x4d6a32,0x0),_0x1287eb[_0x115c62(0x1db)](_0x44198c-_0x43e9d8,0x0),_0x1287eb[_0x115c62(0xe7)](_0x44198c-_0x43e9d8,_0x43e9d8,_0x43e9d8,Math['PI']*0x3/0x2,0x0,!0x1),_0x1287eb[_0x115c62(0x1db)](_0x44198c,_0x2a275a-_0x29cbf5),_0x1287eb['arc'](_0x44198c-_0x29cbf5,_0x2a275a-_0x29cbf5,_0x29cbf5,0x0,Math['PI']/0x2,!0x1),_0x1287eb[_0x115c62(0x1db)](0x0,_0x2a275a),_0x1287eb[_0x115c62(0x1db)](0x0,_0x4d6a32),_0x1287eb[_0x115c62(0xe7)](_0x4d6a32,_0x4d6a32,_0x4d6a32,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1287eb[_0x115c62(0x245)](),_0x4803c9[_0x115c62(0xf1)]&&(_0x1287eb[_0x115c62(0x2b5)](),_0x1287eb[_0x115c62(0x223)]=_0x4803c9[_0x115c62(0xf1)],_0x4803c9[_0x115c62(0x218)]==='evenodd'?_0x1287eb[_0x115c62(0xf1)](_0x115c62(0x1d8)):_0x1287eb[_0x115c62(0xf1)](),_0x1287eb[_0x115c62(0x1b6)]());}function _0x135d(_0x4b4f29,_0x4e636e){const _0x2c5924=_0x2c59();return _0x135d=function(_0x135d78,_0xfede6d){_0x135d78=_0x135d78-0xb8;let _0x4eb2d9=_0x2c5924[_0x135d78];return _0x4eb2d9;},_0x135d(_0x4b4f29,_0x4e636e);}class ee extends p[_0x17da78(0x1f8)]{constructor(_0x5c0691,_0x17e338){const _0x484a07=_0x17da78;super(_0x5c0691,_0x17e338),h(this,'color'),h(this,_0x484a07(0x191)),(this['color']=_0x17e338==null?void 0x0:_0x17e338[_0x484a07(0x1d1)],this[_0x484a07(0x191)]=_0x17e338==null?void 0x0:_0x17e338[_0x484a07(0x191)]);}static[_0x17da78(0x149)](_0xcf6f2c,_0x113d32){const _0x4f8c89=_0x17da78,{text:_0x24ba7a,color:_0x4bc706}=_0x113d32;_0xcf6f2c[_0x4f8c89(0x2b5)](),_0xcf6f2c[_0x4f8c89(0x322)]=_0x4f8c89(0x235);const _0x1324ca=_0xcf6f2c[_0x4f8c89(0x179)](_0x24ba7a)[_0x4f8c89(0x2f0)],_0x319f41=Math[_0x4f8c89(0xe8)](_0x1324ca+0x2*ne,Re);_t(_0xcf6f2c,{'height':q,'radius':0x4,'width':_0x319f41,'fill':_0x4bc706}),_0xcf6f2c[_0x4f8c89(0x223)]=_0x4f8c89(0x161);const _0x41465f=ne,_0xe9706e=q-lt,_0x20c84e=Re-0x2*ne;if(_0x1324ca>_0x20c84e){let _0x5e8c8c='',_0x52ecdd=0x0;for(const _0x4a87eb of _0x24ba7a){const _0x223d0f=_0xcf6f2c[_0x4f8c89(0x179)](_0x4a87eb)[_0x4f8c89(0x2f0)];if(_0x52ecdd+_0x223d0f<=_0x20c84e-_0xcf6f2c['measureText'](_0x4f8c89(0x1f2))[_0x4f8c89(0x2f0)])_0x5e8c8c+=_0x4a87eb,_0x52ecdd+=_0x223d0f;else{_0x5e8c8c+=_0x4f8c89(0x1f2);break;}}_0xcf6f2c[_0x4f8c89(0x286)](_0x5e8c8c,_0x41465f,_0xe9706e);}else _0xcf6f2c['fillText'](_0x24ba7a,_0x41465f,_0xe9706e);_0xcf6f2c['restore']();}[_0x17da78(0x16f)](_0x5db2cc){const _0x2fb7fa=_0x17da78;ee[_0x2fb7fa(0x149)](_0x5db2cc,this);}}const re=_0x17da78(0x1a9),ht=_0x17da78(0x23b),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x17da78(0x299);class De{constructor(_0x14b7e1,_0x5351d0,_0x5f54e1,_0x3f6880){const _0x541b21=_0x17da78;h(this,_0x541b21(0x132),[]),h(this,_0x541b21(0x330),null),h(this,_0x541b21(0x17a),null),h(this,_0x541b21(0x17b),null),h(this,_0x541b21(0x268),null),h(this,'_eventUnsubscribe',null),(this[_0x541b21(0x21e)]=_0x14b7e1,this[_0x541b21(0x198)]=_0x5351d0,this['_docSkeleton']=_0x5f54e1,this[_0x541b21(0x2b6)]=_0x3f6880,this[_0x541b21(0xd5)]());}set['_hover'](_0x5ed794){const _0x17bc8b=_0x17da78;_0x5ed794?(this[_0x17bc8b(0x17b)]&&this[_0x17bc8b(0x17b)][_0x17bc8b(0x22a)](),this[_0x17bc8b(0x17a)]&&this[_0x17bc8b(0x17a)][_0x17bc8b(0x240)]()):(this[_0x17bc8b(0x17b)]&&this[_0x17bc8b(0x17b)][_0x17bc8b(0x240)](),this[_0x17bc8b(0x17a)]&&this[_0x17bc8b(0x17a)][_0x17bc8b(0x22a)]());}[_0x17da78(0x26d)](){const _0x2a1cc7=_0x17da78;for(const _0x1e4c3f of this[_0x2a1cc7(0x132)])_0x1e4c3f[_0x2a1cc7(0x26d)]();this[_0x2a1cc7(0x17a)]&&this[_0x2a1cc7(0x17a)][_0x2a1cc7(0x26d)](),this[_0x2a1cc7(0x17b)]&&this[_0x2a1cc7(0x17b)]['dispose'](),this[_0x2a1cc7(0x330)]&&this[_0x2a1cc7(0x330)][_0x2a1cc7(0x26d)](),this['_eventUnsubscribe']&&this[_0x2a1cc7(0x15e)]();}[_0x17da78(0xd5)](){const _0x91f436=_0x17da78;var _0x3e04c3;const {_docSkeleton:_0x15d884,_document:_0x49719b}=this,{color:_0x597963,name:_0x17043e,ranges:_0x1b4816}=this[_0x91f436(0x21e)],_0x5b7f98=_0x49719b[_0x91f436(0xcd)](),{docsLeft:_0x4544bc,docsTop:_0x1986d2}=_0x5b7f98,_0x5ad75e=new b[(_0x91f436(0x1c7))](_0x5b7f98,_0x15d884);for(const {startOffset:_0x16d072,endOffset:_0x285290,rangeType:_0x53a086,segmentId:_0x6b61af,segmentPage:_0x1a0982,collapsed:_0x859a9d,isActive:_0xdba8c}of _0x1b4816){const _0x338055=_0x15d884[_0x91f436(0x26a)](_0x16d072,!0x0,_0x6b61af,_0x1a0982);let _0x528bb6=_0x15d884[_0x91f436(0x26a)](_0x285290,!0x0,_0x6b61af,_0x1a0982);if(_0x528bb6==null&&(_0x528bb6=_0x15d884['findNodePositionByCharIndex'](_0x285290-0x1,!0x1,_0x6b61af,_0x1a0982)),_0xdba8c){const {contentBoxPointGroup:_0x47a31e}=_0x5ad75e[_0x91f436(0x1ef)](_0x528bb6,_0x528bb6);if(_0x47a31e[_0x91f436(0x12c)]===0x0)continue;this[_0x91f436(0x1dc)](_0x597963,_0x47a31e,_0x4544bc,_0x1986d2,_0x17043e),this[_0x91f436(0x15e)]=this['_handleHover']();}if(_0x338055&&_0x528bb6){if(_0x53a086===a[_0x91f436(0x30d)][_0x91f436(0x150)]){const _0x106a14=new b[(_0x91f436(0x2e9))](_0x5b7f98,_0x15d884),{pointGroup:_0x5abccb}=(_0x3e04c3=_0x106a14[_0x91f436(0x1ef)](_0x338055,_0x528bb6))!=null?_0x3e04c3:{};if(_0x5abccb==null||_0x5abccb[_0x91f436(0x12c)]===0x0)continue;this[_0x91f436(0x2a3)](_0x597963,_0x5abccb,_0x4544bc,_0x1986d2);}else{if(!_0x859a9d){const {borderBoxPointGroup:_0x38298a}=_0x5ad75e[_0x91f436(0x1ef)](_0x338055,_0x528bb6);if(_0x38298a[_0x91f436(0x12c)]===0x0)continue;this['_drawTextRange'](_0x597963,_0x38298a,_0x4544bc,_0x1986d2);}}}}}[_0x17da78(0x1dc)](_0x2d9861,_0x46e560,_0x2ece63,_0x51aa6c,_0x15151f){const _0x4674dc=_0x17da78,_0x296924=this[_0x4674dc(0x1ee)](_0x46e560),{left:_0x4349d6,top:_0x2508d1,height:_0x4ea61e}=_0x296924,_0x46f330=this['_getScale'](),_0x4c3d02=ft/_0x46f330,_0x2faef8=new p[(_0x4674dc(0x27a))](re+a[_0x4674dc(0x2d9)][_0x4674dc(0xc8)](k),{'left':_0x4349d6+_0x2ece63-_0x4c3d02,'top':_0x2508d1+_0x51aa6c,'height':_0x4ea61e,'width':dt,'fill':_0x2d9861||p[_0x4674dc(0x108)](a[_0x4674dc(0x1aa)][_0x4674dc(0xfe)],0x0),'strokeWidth':_0x4c3d02,'stroke':St,'evented':!0x0});this['_anchor']=_0x2faef8,this[_0x4674dc(0x198)][_0x4674dc(0x261)](_0x2faef8,b[_0x4674dc(0x20a)]);const _0x35bc7c=new p[(_0x4674dc(0x27a))](re+a[_0x4674dc(0x2d9)][_0x4674dc(0xc8)](k),{'left':_0x4349d6+_0x2ece63-_0x4c3d02,'top':_0x2508d1+_0x51aa6c-oe/0x2,'height':oe,'width':oe,'fill':_0x2d9861||p[_0x4674dc(0x108)](a[_0x4674dc(0x1aa)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x2d9861||p[_0x4674dc(0x108)](a['COLORS'][_0x4674dc(0xfe)],0x0),'evented':!0x1});this[_0x4674dc(0x17b)]=_0x35bc7c,this[_0x4674dc(0x198)][_0x4674dc(0x261)](_0x35bc7c,b['TEXT_RANGE_LAYER_INDEX']);const _0x20410f=new ee(re+a[_0x4674dc(0x2d9)][_0x4674dc(0xc8)](k),{'left':_0x4349d6+_0x2ece63-_0x4c3d02,'top':_0x2508d1+_0x51aa6c-q,'text':_0x15151f,'color':_0x2d9861});this['_textBubble']=_0x20410f,this[_0x4674dc(0x198)][_0x4674dc(0x261)](_0x20410f,b[_0x4674dc(0x20a)]),this[_0x4674dc(0x260)]=!0x1;}[_0x17da78(0x25a)](){const _0xd2a0ec=_0x17da78,_0x348ebb=this['_anchor'][_0xd2a0ec(0x304)][_0xd2a0ec(0xc6)](()=>{const _0x51a6b8=_0xd2a0ec;this[_0x51a6b8(0x260)]=!0x0;}),_0x133de7=this['_anchor'][_0xd2a0ec(0x319)]['subscribeEvent'](()=>{const _0x4a7e7d=_0xd2a0ec;this['_hideTimer']&&clearTimeout(this[_0x4a7e7d(0x268)]),this[_0x4a7e7d(0x268)]=setTimeout(()=>{const _0x35b85c=_0x4a7e7d;this[_0x35b85c(0x260)]=!0x1;},0x7d0);});return()=>{const _0x75260f=_0xd2a0ec;_0x348ebb[_0x75260f(0x32c)](),_0x133de7[_0x75260f(0x32c)]();};}[_0x17da78(0x196)](_0xcfc2fa,_0x50698b,_0x415526,_0x271248){const _0x1ca9d9=_0x17da78,_0x358c11=new a[(_0x1ca9d9(0x205))](_0xcfc2fa)[_0x1ca9d9(0x13c)](0.2)['toRgbString'](),_0x5305e9=new p['RegularPolygon'](ht+a[_0x1ca9d9(0x2d9)][_0x1ca9d9(0xc8)](k),{'pointsGroup':_0x50698b,'fill':_0x358c11||p[_0x1ca9d9(0x108)](a['COLORS']['black'],0.2),'left':_0x415526,'top':_0x271248,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1ca9d9(0x132)][_0x1ca9d9(0x32a)](_0x5305e9),this[_0x1ca9d9(0x198)]['addObject'](_0x5305e9,b[_0x1ca9d9(0x20a)]);}[_0x17da78(0x2a3)](_0x4797f3,_0x1c239b,_0x2a0f8b,_0x4af908){const _0x4118ae=_0x17da78,_0x54464b=new a[(_0x4118ae(0x205))](_0x4797f3)['setAlpha'](0.2)['toRgbString'](),_0x4c3050=new p['RegularPolygon'](ut+a[_0x4118ae(0x2d9)]['generateRandomId'](k),{'pointsGroup':_0x1c239b,'fill':_0x54464b||p[_0x4118ae(0x108)](a[_0x4118ae(0x1aa)]['black'],0.2),'left':_0x2a0f8b,'top':_0x4af908,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4118ae(0x132)][_0x4118ae(0x32a)](_0x4c3050),this[_0x4118ae(0x198)][_0x4118ae(0x261)](_0x4c3050,b['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x3a7c9d){const _0x33bc95=_0x3a7c9d[0x0],_0x295629=_0x33bc95[0x0],_0x37441b=_0x33bc95[0x2],{x:_0x27e5e6,y:_0x2d8a5c}=_0x295629,{x:_0x8d1798,y:_0x40f9dc}=_0x37441b;return{'left':_0x27e5e6,'top':_0x2d8a5c,'width':_0x8d1798-_0x27e5e6,'height':_0x40f9dc-_0x2d8a5c};}[_0x17da78(0x157)](){const _0x26243c=_0x17da78,{scaleX:_0x241ac4,scaleY:_0x2a74df}=this[_0x26243c(0x198)][_0x26243c(0x278)]();return Math[_0x26243c(0x2ad)](_0x241ac4,_0x2a74df);}}var It=Object['getOwnPropertyDescriptor'],vt=(_0x400372,_0x5c2445,_0x5ecfba,_0x26219f)=>{const _0x1c5789=_0x17da78;for(var _0x15d79c=_0x26219f>0x1?void 0x0:_0x26219f?It(_0x5c2445,_0x5ecfba):_0x5c2445,_0x5e66b5=_0x400372[_0x1c5789(0x12c)]-0x1,_0x28ea25;_0x5e66b5>=0x0;_0x5e66b5--)(_0x28ea25=_0x400372[_0x5e66b5])&&(_0x15d79c=_0x28ea25(_0x15d79c)||_0x15d79c);return _0x15d79c;},Y=(_0xb9d9c0,_0x3845a1)=>(_0x19a010,_0x2e48b6)=>_0x3845a1(_0x19a010,_0x2e48b6,_0xb9d9c0);function _0x2c59(){const _0x57b214=['701180QiOAlA','_drawTextRange','getDocRanges','_scene','YUUMI_ASYNCIO_CANCELLED','RefRangeService','IMessageService','_docTransformSelectionsService','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','_context','_updateURLWithCurrentState','DocIMEInputManagerService','purple300','executeCommand','collaboration-client.offline-data-not-saved','_refreshCollabCursors','jiqing500','FromArray','INVALID_ARGUMENT','DocCollaborationEntity','collab-text-anchor-','COLORS','uni.network.url-service','_imageIoService','startColumn','roomMembers','triggerDblclick','INVITE_CODE_ALREADY_BOUND','popstate','_id','LICENSE_IMPORT_SIZE_EXCEEDED','INTERNAL_ERROR','eventID','restore','getMergeData','cursorInfo$','transformByState','SHEET_VIEWPORT_KEY','set','throttleTime','WebURLService','_session','univerjs-icon\x20univerjs-icon-','Unknown\x20user','fromEvent','_backgroundColor','addClipboardHook','executionId','_collabCursorController','_getSessionTicket','NodePositionConvertToCursor','_initEntityListener','collaboration-client-ui.config','onRendered','disposeWithMe','delete','_initDependencies','CollaborationStatusDisplay','onLocalMutation','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','color','requireSession','use','_colorAssignService','replaceState','1702420weMnWK','AWAITING_WITH_PENDING','evenodd','getSheetId','[RemoteUniscriptService]:\x20no\x20focused\x20unit','lineTo','_drawAnchor','transformIMECache','_beforeCloseService','override','_getSheetObject','clsx','init','_initResize','_toggleOnline','sheetId','CONNECTOR_DATA_TOO_LARGE','isTransformMutationsWithChangesetSuccess','takeUntil','shareReplay','_initEvent','SetTextSelectionsOperation','all','concat','_getAnchorBounding','getRangePointData','actions','_entityInit$','...','storage','apply','SUBMIT_CHANGESET_TIMEOUT','UniverCollaborationClientUIPlugin','saveTaskMap','Shape','LocaleService','handleInsertRow','ICommandService','_transformHistoryAndStateStack','values','random','indexOf','DesktopCollaborationStatusDisplayController','onMouseMove','from','svg','getViewport','ColorKit','RxDisposable','_cursorInfo$','registerRenderModule','UNAUTHENTICATED','TEXT_RANGE_LAYER_INDEX','_getMergeRange','string','NO_OTHER_CLIENTS_EDITING','SessionStatus','startRow','touchDependencies','_saveCache','DEFAULT_WS_SESSION_TICKET_URL','CollaborationStatus','data','univer-text-green-500','whenReady','BuiltInUIPart','fillRule','@univerjs/rpc','toStringTag','selections','forEach','MessageType','_cursor','1829376mPxVCu','permission.content','subscribe','getUndoRedoMutationParamsCache','fillStyle','newValue','InsertRowCommandId','_heartbeatTimer','WebSocketService','handleInsertRangeMoveDown','EMAIL_HAS_BEEN_BOUND','hide','DeleteRangeMoveLeftCommandId','collaboration.closeRoom','PY_RUNTIME_SCRIPT_ERROR','_entities','INVITE_CODE_HAS_BEEN_UES','_memberService','defineProperty','runRefRangeMutations','runId','replace','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','currentSkeleton$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','merge','getCoordByCell','_collaborationUIEventService','collab-text-range-','urlChange$','SOCKET_FAILED_RETRY','CONFLICT','add','show','pluginName','getSkeleton','_updateSubUnitFromURLParams','1012571mNSfbh','closePath','@univerjs/sheets-ui','unitID','_logService','getSheetBySheetId','getUniverSheetInstance','COMPLETION_FINISHED','activeSheet$','_collaborationController','skeleton','has','ILocalCacheService','stringify','hovered','collabStatus.syncing','APPLY_PERMISSION_DENIED','_send','sessionTicket','_transformUndoRedoStack','imageSourceType','_themeService','_handleHover','getRenderById','session.collaboration-timeout','off-line-single_clip0_910_343','current','setInterval','_hover','addObject','_uiPartsService','_unitOnClients','_handleEvent','syncEditingCollabCursor','_handleHeartbeatEvent','CollaborationEvent','_hideTimer','CollaborationSocketService','findNodePositionByCharIndex','getParam','map','dispose','transformRemoteChangeset','_docSkeletonManagerService','InsertRangeMoveDownCommandId','gold400','location','_registerRenderDependencies','useObservable','saveOfflineData','USERS_LEAVE','YUUMI_RATE_OVER_LIMIT','getAncestorScale','_assignedColors','Rect','history','find','ALREADY_EXISTS','_toggleOffline','blue400','CollaborationController','redoState','PERMISSION_DENIED','HEADER_MENU','YUUMI_UNABLE_LOAD_URL','session.will-retry','fillText','handleIRemoveRow','icon','@univerjs/ui','6CPGvru','registerDependencies','hasOwnProperty','_doCreateSocket','toDisposable','handleDeleteRangeMoveUp','result','APPLY_REVISION_CONFILICT','_docStateChangeManagerService','_saveTaskMap','DocSelectionManagerService','beginPath','Warning','FETCH_MISS','CollaborationUIEventId','rgba(255,\x20255,\x20255,\x200.01)','wsSessionTicketUrl','_onRefRangeChange','getLocalCacheKey','transformMutation','_getSaveTimeout','UniverInstanceType','_startDocCollabCursor','tag','disableLocalCache','_drawRectRange','isTransformMutationFailure','_docTransformIMECacheService','getMemberID','1em','_messageService','useDependency','xlink:href','_univerInstanceService','collabStatus.fetchMiss','max','currentTheme$','session.connection-failed','EffectRefRangId','updateOfflineData','BrowserCollaborationSocketService','name','2922420abaobB','save','_document','@univerjs/drawing','@univerjs/design','_setupSubUnitSync','isArray','_refRangeService','univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','translate(.97)','PENDING','react/jsx-runtime','debounce','bottom','IBeforeCloseService','top','_online','IConfigService','_unitStatus','origin','entityInit$','_onCursorUpdate','invokeId','prototype','assign','_initCommandExecutedListener','setShapeProps','getUnitId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','USER_NOT_INVITED_CODE','getStateCache','_localStorageService','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','@univerjs-pro/collaboration-client','getOwnPropertyDescriptor','toString','rxjs','Tools','clearTimeout','entries','SetDocZoomRatioOperation','pushState','ITransformService','LICENSE_EXPORT_SIZE_EXCEEDED','MUTATION','asObservable','children','_cachedData','getTypeOfUnitDisposed$','_lastPointer','deepClone','clipPath','_updateLocalCursor','NodePositionConvertToRectRange','unitId','TOO_MANY_REQUESTS','WECHAT_HAS_BEEN_BOUND','_initStatusListener','loadOfflineData','getValue','width','_createSocketURL','serializeRangeWithSheet','type','createSocket','collabCursorState$','BehaviorSubject','unshift','loadUnit','UNRECOGNIZED','getCollabCursors$','_notificationService','removeParam','pipe','off-line-single','LICENSE_DISTRO_REJECTED','_renderManagerService','_transformService','disposeUnit','@univerjs-pro/collaboration','onPointerEnter$','SetWorksheetActivateCommand','LOCAL_CACHE_INTERVAL','selection','CollaborationDataLoaderController','addObjects','DeleteRangeMoveUpCommandId','LOGIN_FAILED','RemoteUniscriptService','DOC_RANGE_TYPE','setTimeout','Error','searchParams','0\x200\x2017\x2016','@univerjs/docs','red300','mutations','switchMap','APPLY_DUPLICATED','source','_removeClearOtherTimer','onPointerLeave$','forwardRef','Injector','IUIPartsService','_name','_clearOtherTimers','_dataLoaderService','M0\x200H16V16H0z','27PAGCFH','font','subUnitId','sheetID','_scheduleSaving','YUUMI_NO_CUBOID_FOR_QUESTION','docStateChange$','unload','_instanceService','push','setUndoRedoMutationParamsCache','unsubscribe','_injector','ranges','isEditing','_anchor','ILogService','status$','_range','UPDATE_CURSOR','collaboration.single-unit.warning','IURLService','CHANGESET_REVISION_CONFILICT','path','complete','send','0\x200\x2016\x2016','row','getVpScrollXYInfoByPosToVp','_docClipboardService','doc.mutation.rich-text-editing','TEXT','collabStatus.synced','distinctUntilChanged','_color','RichTextEditingMutation','subscribeEvent','get','generateRandomId','dispose$','unit','transformStateCache','SheetsSelectionsService','getOffsetConfig','url(#on-line-single_clip0_910_349)','mapTo','RemoveColCommandId','DependentOn','application/json','CollaborationSessionService','_startSheetCollabCursor','_render','exhaustSavingTask','_init','createElement','_cursors','size','_scheduleClearOtherTimer','APPLY_REJECT','SOCKET_FAILED','setParam','params','sessionStatus$','transform','handleDeleteRangeMoveLeft','url(#$1','mergeOverrideWithDependencies','CLOSE_ROOM','event$','arc','min','YUUMI_SUBSCRIPTION_NOT_FOUND','Workbook','getActiveSheet','SYNCED','Optional','useRef','ENSURE_SNAPSHOT_EXECUTION','_docTransformStateCacheService','fill','_handleJoinEvent','focused$','HTTPService','createIdentifier','Failed','[CollaborationDataLoaderController]','_disabled','backgroundColor','CollaborationUIEventService','getFocusedUnit','endRow','_urlService','black','then','idSuffix','post','_roomMembers$','MemberService','getMember','@univerjs/sheets','on-line-single_clip0_910_349','m1Prime','getColor','_colorIndex','call','@univerjs/core','TRANSFORM_CHANGE_OBSERVABLE_TYPE','cursorInfo','transformSelections','column','_revisionService','range','url(#off-line-single_clip0_910_343)','deserializeRangeWithSheet','_configService','colorChannel1','RevisionService','next','parse','_registerDependencies','error','_selfUnitIDs','_sheetSkeletonManagerService','UnitStatus','debug','setItem','reconnect','getOwnPropertySymbols','ONLINE','undoState','split','defs','_initStatusComponent','NOT_FOUND','clearInterval','makeDirty','_hovered','_localeService','length','assignAColorForMemberID','subunit','div','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','ThemeService','_shapes','on-line-single','extend','_updateCollabCursors','jsx','collabStatus.conflict','_localCacheService','mask','_cursorShapes','univer-text-red-500','setAlpha','some','APPLY_NON_SEQUENTIAL_REVISION','getCellPositionByOffset','registerBeforeClose','getConfig','DocStateChangeManagerService','m2Prime','textRanges','_handleLeaveEvent','onStarting','combineLatest','_docSyncEditingCollabCursorService','drawWith','UNIVER_DOC','UNIVER_SHEET','transformMutationsWithChangeset','_status$','SNAPSHOT_INVALID_SNAPSHOT','getCurrent','RECT','getRelativeToViewportCoord','with','createInstance','_collabCursorState$','_commandService','LOCAL_CACHE_INTERVAL_KEY','_getScale','_config','SNAPSHOT_HAS_BEEN_REMOVED','useCallback','#fff','defIds','IUniverInstanceService','_eventUnsubscribe','currentColor','roomMembers$','#FFF','collab-client.tooltip.reconnect','Plugin','editingUnit','height','function','filter','_removeCollabCursors','attrs','getCurrentSelections','ISocketService','code','collabStatus.notCollab','IDocClipboardService','_draw','onCommandExecuted','displayName','href','enableLocalCache','_httpService','Disposable','InsertColCommandId','round','Rectangle','measureText','_textBubble','_anchorDot','_labelPosition','LICENSE_MAX_UNITS_EXCEEDED','OffLineSingle','getItem','_collabSessionService','NOT_COLLAB','jsxs','_syncEditingCollabCursorService','715472hQGJhc','getUnhiddenWorksheets','registerRefRange','INVITE_CODE_REQUIRED','getSheetObject','_onCursorDelete','Inject','OnLineSingle','UNDEFINED','IRenderManagerService','Tooltip','2700160fYhBlZ','_ensureSubject','text','addEventListener','replaceDocRanges','body'];_0x2c59=function(){return _0x57b214;};return _0x2c59();}let Ie=class extends a['RxDisposable']{constructor(_0x2648c1,_0x13f82c,_0x29b467,_0x5e7053,_0x499a96){const _0x26def5=_0x17da78;super(),h(this,_0x26def5(0x13a),[]),h(this,'_cursors',[]),(this[_0x26def5(0x19e)]=_0x2648c1,this[_0x26def5(0x26f)]=_0x13f82c,this[_0x26def5(0x1c5)]=_0x29b467,this[_0x26def5(0x155)]=_0x5e7053,this[_0x26def5(0x259)]=_0x499a96,this['_init']());}[_0x17da78(0xd7)](){const _0x9f9df7=_0x17da78,_0x5342c3=this[_0x9f9df7(0x19e)][_0x9f9df7(0x2ea)],_0x5194b4=this[_0x9f9df7(0x26f)];this[_0x9f9df7(0x1cb)](d[_0x9f9df7(0x147)]([this['_collabCursorController'][_0x9f9df7(0x2fa)](_0x5342c3),this['_themeService']['currentTheme$']])[_0x9f9df7(0x2fd)]($[_0x9f9df7(0x26c)](([_0x338218,_0x1906d6])=>({'skeleton':_0x5194b4[_0x9f9df7(0x242)](),'cursors':[..._0x338218['values']()]['flatMap'](_0x2b9316=>({..._0x2b9316,'color':_0x1906d6[_0x2b9316['color']]}))})))[_0x9f9df7(0x221)](_0xe59c45=>{const _0x5a8925=_0x9f9df7;if(this[_0x5a8925(0x168)](),_0xe59c45){const {skeleton:_0x173f76,cursors:_0x31faae}=_0xe59c45;this['_updateCollabCursors'](_0x173f76,_0x31faae);}})),this[_0x9f9df7(0x1e3)](),this[_0x9f9df7(0x2cd)]();}[_0x17da78(0x135)](_0x32dd17,_0x5211d8){const _0x55be6a=_0x17da78,{scene:_0x232a8c,mainComponent:_0x4d03c2}=this[_0x55be6a(0x19e)],_0x1a4166=_0x5211d8[_0x55be6a(0x26c)](_0xada149=>new De(_0xada149,_0x232a8c,_0x32dd17,_0x4d03c2));this[_0x55be6a(0x13a)]=_0x1a4166,this[_0x55be6a(0xd9)]=_0x5211d8;}['_refreshCollabCursors'](){const _0x427491=_0x17da78;this[_0x427491(0x168)]();const {scene:_0x502eb9,mainComponent:_0x4b8f80}=this['_context'],_0x137de8=this[_0x427491(0x26f)][_0x427491(0x242)](),_0x131cc1=this[_0x427491(0xd9)][_0x427491(0x26c)](_0x2e811a=>new De(_0x2e811a,_0x502eb9,_0x137de8,_0x4b8f80));this[_0x427491(0x13a)]=_0x131cc1;}['_removeCollabCursors'](){const _0x42ec8d=_0x17da78;this[_0x42ec8d(0x13a)][_0x42ec8d(0x21c)](_0x101b2b=>_0x101b2b[_0x42ec8d(0x26d)]()),this['_cursorShapes']=[];}[_0x17da78(0x2cd)](){const _0x1fc901=_0x17da78,_0x2ffa76=[b[_0x1fc901(0x2dc)]['id']];this[_0x1fc901(0x1cb)](this[_0x1fc901(0x155)][_0x1fc901(0x170)](_0x422fa1=>{const _0x459ff2=_0x1fc901;_0x2ffa76['includes'](_0x422fa1['id'])&&_0x422fa1['params'][_0x459ff2(0x2ea)]===this[_0x459ff2(0x19e)]['unitId']&&this[_0x459ff2(0x1a4)]();}));}['_initResize'](){const _0x37cb25=_0x17da78;this[_0x37cb25(0x1cb)](a['fromEventSubject'](this['_context']['engine']['onTransformChange$'])[_0x37cb25(0x2fd)]($['filter'](_0x2fecb3=>_0x2fecb3[_0x37cb25(0x2f3)]===p[_0x37cb25(0x10c)]['resize']),$[_0x37cb25(0x1bc)](0x10))[_0x37cb25(0x221)](()=>{this['_refreshCollabCursors']();}));}};Ie=vt([Y(0x1,a['Inject'](W['DocSkeletonManagerService'])),Y(0x2,a['Inject'](x)),Y(0x3,a[_0x17da78(0x1fb)]),Y(0x4,a['Inject'](a[_0x17da78(0x131)]))],Ie);const gt=0x1,mt=1.5;class we extends p[_0x17da78(0x1f8)]{constructor(_0x257da4,_0xf3b34c){const _0x4e2fbd=_0x17da78;super(_0x257da4,_0xf3b34c),h(this,_0x4e2fbd(0xc4)),h(this,_0x4e2fbd(0x12a),!0x1),h(this,'_range'),h(this,_0x4e2fbd(0x31d),''),h(this,'_labelPosition',_0x4e2fbd(0x2c3)),h(this,_0x4e2fbd(0x1c2)),(_0xf3b34c&&this[_0x4e2fbd(0x2ce)](_0xf3b34c),this['onPointerEnter$'][_0x4e2fbd(0xc6)](()=>this[_0x4e2fbd(0x2ce)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this[_0x4e2fbd(0x2ce)]({'hovered':!0x1})));}[_0x17da78(0x2ce)](_0x158a8f){const _0x353db9=_0x17da78;var _0x49a5fd,_0x186c96,_0x3771ca,_0x58dd13,_0x33d42e,_0x153344;this[_0x353db9(0xc4)]=(_0x49a5fd=_0x158a8f['color'])!=null?_0x49a5fd:this[_0x353db9(0xc4)],this[_0x353db9(0x12a)]=(_0x186c96=_0x158a8f[_0x353db9(0x252)])!=null?_0x186c96:this[_0x353db9(0x12a)],this['_range']=(_0x3771ca=_0x158a8f[_0x353db9(0x111)])!=null?_0x3771ca:this[_0x353db9(0x333)],this[_0x353db9(0x31d)]=(_0x58dd13=_0x158a8f[_0x353db9(0x2b3)])!=null?_0x58dd13:this[_0x353db9(0x31d)],this[_0x353db9(0x17c)]=(_0x33d42e=_0x158a8f['labelPosition'])!=null?_0x33d42e:this[_0x353db9(0x17c)],this[_0x353db9(0x1c2)]=(_0x153344=_0x158a8f[_0x353db9(0xf9)])!=null?_0x153344:this['_backgroundColor'],this[_0x353db9(0x1b9)]({'width':_0x158a8f[_0x353db9(0x2f0)],'height':_0x158a8f[_0x353db9(0x165)]});}[_0x17da78(0x201)](_0x42bb16){const _0x196214=_0x17da78,{row:_0x32fef8,column:_0x4fde01}=_0x42bb16;if(_0x32fef8>=this['_range'][_0x196214(0x20f)]&&_0x32fef8<=this[_0x196214(0x333)][_0x196214(0xfc)]&&_0x4fde01>=this[_0x196214(0x333)][_0x196214(0x1ad)]&&_0x4fde01<=this[_0x196214(0x333)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x196214(0x2ce)]({'hovered':!0x1});}[_0x17da78(0x1af)](_0x70984d){return!0x1;}[_0x17da78(0x16f)](_0x10fcc7){const _0x254164=_0x17da78;p[_0x254164(0x27a)][_0x254164(0x149)](_0x10fcc7,{'width':this['width'],'height':this[_0x254164(0x165)],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x254164(0x1c2)]}),this[_0x254164(0x12a)]&&(_0x10fcc7[_0x254164(0x2b5)](),_0x10fcc7[_0x254164(0xe1)](0x1,0x0,0x0,0x1,this[_0x254164(0x2f0)],this[_0x254164(0x17c)]===_0x254164(0x2c1)?0x0:-0x14),ee[_0x254164(0x149)](_0x10fcc7,{'text':this[_0x254164(0x31d)],'color':this[_0x254164(0xc4)]}),_0x10fcc7['restore']());}}var Ct=Object[_0x17da78(0x2d6)],pt=(_0x338d4d,_0x1cd8af,_0x3176f6,_0x2fd56a)=>{const _0x595ffa=_0x17da78;for(var _0x3956a9=_0x2fd56a>0x1?void 0x0:_0x2fd56a?Ct(_0x1cd8af,_0x3176f6):_0x1cd8af,_0x3c6858=_0x338d4d[_0x595ffa(0x12c)]-0x1,_0x3ec1b8;_0x3c6858>=0x0;_0x3c6858--)(_0x3ec1b8=_0x338d4d[_0x3c6858])&&(_0x3956a9=_0x3ec1b8(_0x3956a9)||_0x3956a9);return _0x3956a9;},ae=(_0x33c4b4,_0x2a5f26)=>(_0x2ba6a9,_0x9fce7c)=>_0x2a5f26(_0x2ba6a9,_0x9fce7c,_0x33c4b4);const bt=0x1389;let ve=class extends a['RxDisposable']{constructor(_0x5af63e,_0x2eb981,_0x54001c,_0xb03408){const _0x4c730a=_0x17da78;super(),h(this,_0x4c730a(0xd9),new Set()),h(this,_0x4c730a(0x2e5),null),(this[_0x4c730a(0x19e)]=_0x5af63e,this[_0x4c730a(0x11c)]=_0x2eb981,this[_0x4c730a(0x1c5)]=_0x54001c,this[_0x4c730a(0x259)]=_0xb03408,this['_init']());}[_0x17da78(0xd7)](){const _0x2a400b=_0x17da78;this[_0x2a400b(0x11c)][_0x2a400b(0x236)][_0x2a400b(0x2fd)]($[_0x2a400b(0x1e8)](this[_0x2a400b(0xc9)]),$[_0x2a400b(0x315)](_0x30cf4d=>{const _0x4d6ac1=_0x2a400b;if(_0x30cf4d){const _0x3eb55b=_0x30cf4d[_0x4d6ac1(0x1e5)];return d[_0x4d6ac1(0x147)](this['_collabCursorController'][_0x4d6ac1(0x2fa)](this[_0x4d6ac1(0x19e)][_0x4d6ac1(0x2ea)]),this[_0x4d6ac1(0x259)][_0x4d6ac1(0x2ae)])[_0x4d6ac1(0x2fd)]($[_0x4d6ac1(0x26c)](([_0x37023b,_0x2b68e5])=>{const _0x2fa0c5=_0x4d6ac1,_0x312272=new Map();return _0x37023b[_0x2fa0c5(0x21c)]((_0x4fcb8e,_0x4e7542)=>{const _0x25a1b9=_0x2fa0c5;if(_0x4fcb8e[_0x25a1b9(0x324)]===_0x3eb55b){const _0x34ceb2={..._0x4fcb8e};_0x34ceb2[_0x25a1b9(0x1d1)]=_0x2b68e5[_0x4fcb8e[_0x25a1b9(0x1d1)]],_0x312272[_0x25a1b9(0x1bb)](_0x4e7542,_0x34ceb2);}}),{'skeleton':_0x30cf4d,'cursors':_0x312272};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x2ef80b,cursors:_0x12bef8})=>{const _0xd808c3=_0x2a400b;this[_0xd808c3(0x168)](),_0x2ef80b&&this[_0xd808c3(0x135)](_0x2ef80b,_0x12bef8);}),this[_0x2a400b(0x11c)][_0x2a400b(0x236)][_0x2a400b(0x221)](_0x28e5fc=>{const _0xcb399=_0x2a400b;if(_0x28e5fc==null)return;const {skeleton:_0x2ec276}=_0x28e5fc,{scene:_0x3deacc}=this[_0xcb399(0x19e)];_0x3deacc['onPointerMove$']['subscribeEvent'](a[_0xcb399(0x2c0)](_0x156500=>{const _0x1b7b50=_0xcb399;var _0x3055e6,_0x1db3cc;const {offsetX:_0x43bc63,offsetY:_0x54a734}=_0x156500,{x:_0x502bad,y:_0x5ce060}=_0x3deacc[_0x1b7b50(0x151)](p['Vector2'][_0x1b7b50(0x1a6)]([_0x43bc63,_0x54a734])),{scaleX:_0xb4e26c,scaleY:_0x3fdd81}=_0x3deacc[_0x1b7b50(0x278)](),_0xbd21d2=_0x3deacc[_0x1b7b50(0x204)](p[_0x1b7b50(0x1ba)]['VIEW_MAIN']),_0x5e0ac7=_0x3deacc[_0x1b7b50(0xbe)](p['Vector2'][_0x1b7b50(0x1a6)]([_0x502bad,_0x5ce060]),_0xbd21d2),_0x234af9=_0x2ec276[_0x1b7b50(0x13f)](_0x43bc63,_0x54a734,_0xb4e26c,_0x3fdd81,_0x5e0ac7);((_0x3055e6=this[_0x1b7b50(0x2e5)])==null?void 0x0:_0x3055e6[_0x1b7b50(0x10f)])===_0x234af9[_0x1b7b50(0x10f)]&&((_0x1db3cc=this['_lastPointer'])==null?void 0x0:_0x1db3cc[_0x1b7b50(0xbd)])===_0x234af9[_0x1b7b50(0xbd)]||this[_0x1b7b50(0xd9)][_0x1b7b50(0x21c)](_0x46dcbb=>{const _0x19fd68=_0x1b7b50;_0x46dcbb[_0x19fd68(0x201)](_0x234af9);});},0x64));});}[_0x17da78(0x135)](_0x4ed112,_0x5918e9){const _0x1a57b4=_0x17da78;var _0x415031;const _0x4c255d=(_0x415031=this['_sheetSkeletonManagerService'][_0x1a57b4(0x14f)]())==null?void 0x0:_0x415031[_0x1a57b4(0x24e)];if(!_0x4c255d)return;const _0x149030=this[_0x1a57b4(0x1e0)]();if(!_0x149030)return;this[_0x1a57b4(0xd9)][_0x1a57b4(0x21c)](_0x3627f8=>{const _0x3b783b=_0x1a57b4;_0x3627f8[_0x3b783b(0x129)]();});const {scene:_0x27c29a}=_0x149030,_0x4fe9b2=Et(Array[_0x1a57b4(0x202)](_0x5918e9['values']()))['map'](_0x116509=>{const _0x4d11e6=_0x1a57b4,{color:_0x510c33,range:_0x5a1cef,name:_0x5ac993,selection:_0x393c8c,sheetID:_0x521f67}=_0x116509,{startColumn:_0xfe244d,startRow:_0x1645c0,endColumn:_0x40e621,endRow:_0x3d4c79}=_0x5a1cef,_0x5251d5=X['getCoordByCell'](_0x1645c0,_0xfe244d,_0x27c29a,_0x4c255d),_0x561466=X[_0x4d11e6(0x239)](_0x3d4c79,_0x40e621,_0x27c29a,_0x4c255d),{columnHeaderHeightAndMarginTop:_0x3f46c4}=_0x4c255d,{startX:_0x31a2d0,startY:_0x2f9e13}=_0x5251d5,{endX:_0x19cae3,endY:_0x387e52}=_0x561466,_0x178c10=_0x19cae3-_0x31a2d0,_0x3c21db=_0x387e52-_0x2f9e13,_0x55057c={'labelPosition':_0x2f9e13-_0x3f46c4>=q?'top':_0x4d11e6(0x2c1),'sheetID':_0x521f67,'range':_0x5a1cef,'color':_0x510c33,'name':_0x5ac993,'selection':_0x393c8c,'left':_0x31a2d0,'top':_0x2f9e13,'width':_0x178c10,'height':_0x3c21db,'evented':!0x1,'zIndex':bt};return new we(_0x5ac993,_0x55057c);});_0x27c29a[_0x1a57b4(0x309)](_0x4fe9b2,gt),this[_0x1a57b4(0xd9)]=new Set(_0x4fe9b2);}['_removeCollabCursors'](){const _0x1aa9c0=_0x17da78;var _0x1e0750;(_0x1e0750=this[_0x1aa9c0(0xd9)])==null||_0x1e0750[_0x1aa9c0(0x21c)](_0x2dee5d=>_0x2dee5d['dispose']());}['_getSheetObject'](){const _0x1f8d79=_0x17da78;return X[_0x1f8d79(0x188)](this[_0x1f8d79(0x19e)][_0x1f8d79(0xca)],this[_0x1f8d79(0x19e)]);}};ve=pt([ae(0x1,a[_0x17da78(0x18a)](X['SheetSkeletonManagerService'])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x17da78(0x18a)](a[_0x17da78(0x131)]))],ve);function Et(_0x579507){const _0x35b69b=_0x17da78,_0x1a917e=new Map();return _0x579507[_0x35b69b(0x21c)](_0x2a7aaf=>{const _0xbb9da4=_0x35b69b;if(_0x1a917e[_0xbb9da4(0x24f)](_0x2a7aaf[_0xbb9da4(0x307)])){const _0x141053=_0x1a917e[_0xbb9da4(0xc7)](_0x2a7aaf['selection']);_0x141053[_0xbb9da4(0x2b3)]+=',\x20'+_0x2a7aaf['name'];}else _0x1a917e[_0xbb9da4(0x1bb)](_0x2a7aaf[_0xbb9da4(0x307)],_0x2a7aaf);}),Array[_0x35b69b(0x202)](_0x1a917e[_0x35b69b(0x1fd)]());}var E=function(){const _0x3050e6=_0x17da78;return E=Object[_0x3050e6(0x2cc)]||function(_0x219449){const _0xb441d5=_0x3050e6;for(var _0x1d33a6,_0x134011=0x1,_0x107fd1=arguments[_0xb441d5(0x12c)];_0x134011<_0x107fd1;_0x134011++){_0x1d33a6=arguments[_0x134011];for(var _0x449d96 in _0x1d33a6)Object['prototype']['hasOwnProperty'][_0xb441d5(0x10a)](_0x1d33a6,_0x449d96)&&(_0x219449[_0x449d96]=_0x1d33a6[_0x449d96]);}return _0x219449;},E[_0x3050e6(0x1f4)](this,arguments);},Tt=function(_0x247217,_0xf18d8){const _0x29bd42=_0x17da78;var _0x105fe5={};for(var _0x2e5fb1 in _0x247217)Object[_0x29bd42(0x2cb)][_0x29bd42(0x28c)][_0x29bd42(0x10a)](_0x247217,_0x2e5fb1)&&_0xf18d8[_0x29bd42(0x1ff)](_0x2e5fb1)<0x0&&(_0x105fe5[_0x2e5fb1]=_0x247217[_0x2e5fb1]);if(_0x247217!=null&&typeof Object[_0x29bd42(0x121)]==_0x29bd42(0x166)){for(var _0x4b0dfa=0x0,_0x2e5fb1=Object['getOwnPropertySymbols'](_0x247217);_0x4b0dfa<_0x2e5fb1[_0x29bd42(0x12c)];_0x4b0dfa++)_0xf18d8['indexOf'](_0x2e5fb1[_0x4b0dfa])<0x0&&Object[_0x29bd42(0x2cb)]['propertyIsEnumerable'][_0x29bd42(0x10a)](_0x247217,_0x2e5fb1[_0x4b0dfa])&&(_0x105fe5[_0x2e5fb1[_0x4b0dfa]]=_0x247217[_0x2e5fb1[_0x4b0dfa]]);}return _0x105fe5;},pe=M[_0x17da78(0x31a)](function(_0x52a24b,_0x280b85){const _0xe0387b=_0x17da78;var _0x3860a7=_0x52a24b[_0xe0387b(0x288)],_0x5092d2=_0x52a24b['id'],_0x5da7f0=_0x52a24b['className'],_0x192f97=_0x52a24b[_0xe0387b(0x134)],_0x163712=Tt(_0x52a24b,[_0xe0387b(0x288),'id','className',_0xe0387b(0x134)]),_0x5a331b=_0xe0387b(0x1bf)[_0xe0387b(0x1ed)](_0x5092d2,'\x20')[_0xe0387b(0x1ed)](_0x5da7f0||'')['trim'](),_0x44b625=M[_0xe0387b(0xee)]('_'[_0xe0387b(0x1ed)](Dt()));return Ae(_0x3860a7,''['concat'](_0x5092d2),{'defIds':_0x3860a7[_0xe0387b(0x15c)],'idSuffix':_0x44b625[_0xe0387b(0x25e)]},E({'ref':_0x280b85,'className':_0x5a331b},_0x163712),_0x192f97);});function Ae(_0x3f9884,_0x35ff9e,_0x359c22,_0x365ab4,_0xafcb06){const _0x3e067e=_0x17da78;return M[_0x3e067e(0xd8)](_0x3f9884[_0x3e067e(0x2a1)],E(E({'key':_0x35ff9e},Ot(_0x3f9884,_0x359c22,_0xafcb06)),_0x365ab4),(Rt(_0x3f9884,_0x359c22)[_0x3e067e(0x2e2)]||[])['map'](function(_0xbd4b72,_0xedf1b9){const _0x2f6d11=_0x3e067e;return Ae(_0xbd4b72,''[_0x2f6d11(0x1ed)](_0x35ff9e,'-')[_0x2f6d11(0x1ed)](_0x3f9884[_0x2f6d11(0x2a1)],'-')['concat'](_0xedf1b9),_0x359c22,void 0x0,_0xafcb06);}));}function Ot(_0x5404ca,_0x3aa350,_0x56fd22){const _0x14107d=_0x17da78;var _0xbce496=E({},_0x5404ca[_0x14107d(0x169)]);_0x56fd22!=null&&_0x56fd22[_0x14107d(0x115)]&&_0xbce496[_0x14107d(0xf1)]==='colorChannel1'&&(_0xbce496[_0x14107d(0xf1)]=_0x56fd22['colorChannel1']),_0x5404ca[_0x14107d(0x2a1)]==='mask'&&_0xbce496['id']&&(_0xbce496['id']=_0xbce496['id']+_0x3aa350[_0x14107d(0x100)]),Object[_0x14107d(0x2db)](_0xbce496)['forEach'](function(_0x5599a5){const _0xe1c6ba=_0x14107d;var _0x5d3d82=_0x5599a5[0x0],_0x170882=_0x5599a5[0x1];_0x5d3d82===_0xe1c6ba(0x139)&&typeof _0x170882==_0xe1c6ba(0x20c)&&(_0xbce496[_0x5d3d82]=_0x170882[_0xe1c6ba(0x234)](/url\(#(.*)\)/,'url(#$1'[_0xe1c6ba(0x1ed)](_0x3aa350[_0xe1c6ba(0x100)],')')));});var _0x110fe5=_0x3aa350[_0x14107d(0x15c)];return!_0x110fe5||_0x110fe5['length']===0x0||(_0x5404ca[_0x14107d(0x2a1)]===_0x14107d(0x1d3)&&_0xbce496['xlink:href']&&(_0xbce496['xlink:href']=_0xbce496[_0x14107d(0x2aa)]+_0x3aa350[_0x14107d(0x100)]),Object['entries'](_0xbce496)[_0x14107d(0x21c)](function(_0x3efcdc){const _0x115213=_0x14107d;var _0x552663=_0x3efcdc[0x0],_0x2b3707=_0x3efcdc[0x1];typeof _0x2b3707=='string'&&(_0xbce496[_0x552663]=_0x2b3707[_0x115213(0x234)](/url\(#(.*)\)/,_0x115213(0xe3)[_0x115213(0x1ed)](_0x3aa350['idSuffix'],')')));})),_0xbce496;}function Rt(_0x1fe4ac,_0x529ada){const _0x236622=_0x17da78;var _0x5790a9,_0x8718ad=_0x529ada['defIds'];return!_0x8718ad||_0x8718ad['length']===0x0?_0x1fe4ac:_0x1fe4ac[_0x236622(0x2a1)]===_0x236622(0x125)&&(!((_0x5790a9=_0x1fe4ac[_0x236622(0x2e2)])===null||_0x5790a9===void 0x0)&&_0x5790a9['length'])?E(E({},_0x1fe4ac),{'children':_0x1fe4ac[_0x236622(0x2e2)][_0x236622(0x26c)](function(_0x3ad15e){const _0x36da42=_0x236622;return typeof _0x3ad15e['attrs']['id']==_0x36da42(0x20c)&&_0x8718ad&&_0x8718ad[_0x36da42(0x1ff)](_0x3ad15e[_0x36da42(0x169)]['id'])>-0x1?E(E({},_0x3ad15e),{'attrs':E(E({},_0x3ad15e[_0x36da42(0x169)]),{'id':_0x3ad15e[_0x36da42(0x169)]['id']+_0x529ada[_0x36da42(0x100)]})}):_0x3ad15e;})}):_0x1fe4ac;}function Dt(){const _0x1908b1=_0x17da78;return Math[_0x1908b1(0x1fe)]()[_0x1908b1(0x2d7)](0x24)['substring'](0x2,0x8);}pe[_0x17da78(0x171)]='UniverIcon';var Ut={'tag':_0x17da78(0x203),'attrs':{'fill':'none','viewBox':_0x17da78(0xbc),'width':_0x17da78(0x2a7),'height':_0x17da78(0x2a7)},'children':[{'tag':'g','attrs':{'clipPath':_0x17da78(0x112)},'children':[{'tag':_0x17da78(0xb9),'attrs':{'stroke':_0x17da78(0x15f),'d':_0x17da78(0x19d),'strokeLinecap':_0x17da78(0x177),'strokeLinejoin':_0x17da78(0x177),'strokeWidth':1.2}}]},{'tag':_0x17da78(0x125),'attrs':{},'children':[{'tag':_0x17da78(0x2e7),'attrs':{'id':_0x17da78(0x25d)},'children':[{'tag':_0x17da78(0xb9),'attrs':{'fill':_0x17da78(0x15b),'d':_0x17da78(0x320)}}]}]}],'defIds':[_0x17da78(0x25d)]},ye=M[_0x17da78(0x31a)](function(_0x2be18a,_0x2fc021){const _0x319597=_0x17da78;return M['createElement'](pe,Object[_0x319597(0x2cc)]({},_0x2be18a,{'id':_0x319597(0x2fe),'ref':_0x2fc021,'icon':Ut}));});ye[_0x17da78(0x171)]=_0x17da78(0x17e);var Nt={'tag':_0x17da78(0x203),'attrs':{'fill':'none','viewBox':_0x17da78(0x311),'width':_0x17da78(0x2a7),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x17da78(0xce)},'children':[{'tag':_0x17da78(0xb9),'attrs':{'stroke':_0x17da78(0x15f),'d':_0x17da78(0x2d4),'strokeLinecap':'round','strokeLinejoin':_0x17da78(0x177),'strokeWidth':1.2}}]},{'tag':_0x17da78(0x125),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x17da78(0xb9),'attrs':{'fill':_0x17da78(0x15b),'d':_0x17da78(0x320),'transform':_0x17da78(0x2bd)}}]}]}],'defIds':[_0x17da78(0x106)]},$e=M[_0x17da78(0x31a)](function(_0x12aa59,_0x2acc8f){const _0x32e3ba=_0x17da78;return M['createElement'](pe,Object['assign']({},_0x12aa59,{'id':_0x32e3ba(0x133),'ref':_0x2acc8f,'icon':Nt}));});$e[_0x17da78(0x171)]=_0x17da78(0x18b);function Mt(_0x189303){const _0x2915f5=_0x17da78;switch(_0x189303){case u[_0x2915f5(0x213)]['OFFLINE']:return'collabStatus.offline';case u[_0x2915f5(0x213)][_0x2915f5(0x23e)]:return _0x2915f5(0x137);case u['CollaborationStatus'][_0x2915f5(0x297)]:return _0x2915f5(0x2ac);case u[_0x2915f5(0x213)][_0x2915f5(0x181)]:return _0x2915f5(0x16d);case u[_0x2915f5(0x213)]['AWAITING']:case u[_0x2915f5(0x213)][_0x2915f5(0x1d7)]:return _0x2915f5(0x253);case u['CollaborationStatus'][_0x2915f5(0xec)]:case u[_0x2915f5(0x213)][_0x2915f5(0x2be)]:return _0x2915f5(0xc2);}}function xe(_0x424bbd){const _0x78dfe8=_0x17da78,{status$:_0x309da7}=_0x424bbd,_0x49e3a8=T[_0x78dfe8(0x274)](_0x309da7,u[_0x78dfe8(0x213)]['NOT_COLLAB']),_0x5cd44c=T[_0x78dfe8(0x2a9)](a[_0x78dfe8(0x1f9)]),_0x5460ff=T[_0x78dfe8(0x2a9)](u['CollaborationSessionService']),_0x8d6c3c=_0x49e3a8!==u['CollaborationStatus']['OFFLINE'],_0x808174=_0x5cd44c['t'](Mt(_0x49e3a8)),_0xb04d3e=_0x8d6c3c?P[_0x78dfe8(0x136)]($e,{}):P['jsx'](ye,{}),_0x44faa1=M[_0x78dfe8(0x15a)](()=>{const _0x5593f5=_0x78dfe8;_0x8d6c3c||_0x5460ff[_0x5593f5(0x120)]();},[_0x8d6c3c,_0x5460ff]);function _0x54f016(){const _0x4eb042=_0x78dfe8;return P[_0x4eb042(0x182)](_0x4eb042(0x12f),{'className':'univer-flex\x20univer-items-center','onClick':_0x44faa1,'children':[P[_0x4eb042(0x136)](_0x4eb042(0x12f),{'className':D[_0x4eb042(0x1e1)]('univer-flex\x20univer-mr-2\x20univer-text-[20px]',_0x8d6c3c?_0x4eb042(0x215):_0x4eb042(0x13b)),'children':_0xb04d3e}),P[_0x4eb042(0x136)](_0x4eb042(0x12f),{'className':_0x4eb042(0x2bc),'children':_0x808174})]});}return _0x8d6c3c?_0x54f016():P[_0x78dfe8(0x136)](D[_0x78dfe8(0x18e)],{'title':_0x5cd44c['t'](_0x78dfe8(0x162)),'children':_0x54f016()});}var Lt=Object[_0x17da78(0x2d6)],Pt=(_0x4cabce,_0xbb845e,_0x273a8a,_0x42907c)=>{const _0x5d1764=_0x17da78;for(var _0x1af27b=_0x42907c>0x1?void 0x0:_0x42907c?Lt(_0xbb845e,_0x273a8a):_0xbb845e,_0x192610=_0x4cabce[_0x5d1764(0x12c)]-0x1,_0x3c968d;_0x192610>=0x0;_0x192610--)(_0x3c968d=_0x4cabce[_0x192610])&&(_0x1af27b=_0x3c968d(_0x1af27b)||_0x1af27b);return _0x1af27b;},V=(_0x317da8,_0x347a2f)=>(_0x365c0a,_0x970b2b)=>_0x347a2f(_0x365c0a,_0x970b2b,_0x317da8);exports[_0x17da78(0x200)]=class extends a[_0x17da78(0x175)]{constructor(_0x589f37,_0x12f8cc,_0x170ac2,_0x230254){const _0x581751=_0x17da78;super(),h(this,_0x581751(0x14d),new d['BehaviorSubject'](u[_0x581751(0x213)][_0x581751(0x181)])),(this[_0x581751(0x2ab)]=_0x589f37,this[_0x581751(0x32d)]=_0x12f8cc,this[_0x581751(0x24d)]=_0x170ac2,this[_0x581751(0x262)]=_0x230254,this['_initStatusComponent'](),this[_0x581751(0x2ed)]());}[_0x17da78(0x2ed)](){const _0x44eef5=_0x17da78;this[_0x44eef5(0x1cb)](this[_0x44eef5(0x2ab)][_0x44eef5(0xf3)][_0x44eef5(0x2fd)](d[_0x44eef5(0x315)](()=>{const _0xa913ff=_0x44eef5,_0x369119=this[_0xa913ff(0x2ab)][_0xa913ff(0xfb)]();return _0x369119?this[_0xa913ff(0x24d)]['getCollabEntity$'](_0x369119[_0xa913ff(0x2cf)]()):d['of'](null);}),d[_0x44eef5(0x315)](_0x12f0f4=>_0x12f0f4?_0x12f0f4[_0x44eef5(0x332)]:d['of'](u['CollaborationStatus'][_0x44eef5(0x181)])))[_0x44eef5(0x221)](_0x226886=>{const _0x4406e1=_0x44eef5;this[_0x4406e1(0x14d)][_0x4406e1(0x117)](_0x226886);}));}[_0x17da78(0x126)](){const _0x44845d=_0x17da78;this['disposeWithMe'](this[_0x44845d(0x262)]['registerComponent'](T[_0x44845d(0x217)][_0x44845d(0x283)],()=>T['connectInjector'](wt({'status$':this[_0x44845d(0x14d)]['asObservable']()}),this[_0x44845d(0x32d)])));}},exports['DesktopCollaborationStatusDisplayController']=Pt([V(0x0,a['IUniverInstanceService']),V(0x1,a['Inject'](a['Injector'])),V(0x2,a[_0x17da78(0x18a)](u[_0x17da78(0x280)])),V(0x3,T[_0x17da78(0x31c)])],exports[_0x17da78(0x200)]);function wt(_0x5130dc){const {status$:_0x174493}=_0x5130dc;return function(){const _0x473a09=_0x135d;return P[_0x473a09(0x136)](xe,{'status$':_0x174493});};}var At=Object[_0x17da78(0x2d6)],yt=(_0x25842b,_0x4c10fe,_0xd01e4d,_0x564f75)=>{const _0x4640dd=_0x17da78;for(var _0x49298f=_0x564f75>0x1?void 0x0:_0x564f75?At(_0x4c10fe,_0xd01e4d):_0x4c10fe,_0x456f1a=_0x25842b[_0x4640dd(0x12c)]-0x1,_0x21a7a3;_0x456f1a>=0x0;_0x456f1a--)(_0x21a7a3=_0x25842b[_0x456f1a])&&(_0x49298f=_0x21a7a3(_0x49298f)||_0x49298f);return _0x49298f;},y=(_0x52f176,_0x5d278a)=>(_0x3d88be,_0x371c2d)=>_0x5d278a(_0x3d88be,_0x371c2d,_0x52f176);let K=class extends a[_0x17da78(0x175)]{constructor(_0xc3c1aa,_0x367417,_0x1b58b1,_0x3b6f10,_0x434780,_0x304e46){const _0x28b5ec=_0x17da78;super(),this[_0x28b5ec(0x1de)]=_0xc3c1aa,this[_0x28b5ec(0x138)]=_0x367417,this[_0x28b5ec(0x23a)]=_0x1b58b1,this[_0x28b5ec(0x2a8)]=_0x3b6f10,this[_0x28b5ec(0x2fb)]=_0x434780,this[_0x28b5ec(0x12b)]=_0x304e46,this['_setupBeforeClosingHandler'](),this[_0x28b5ec(0x1ea)]();}['_setupBeforeClosingHandler'](){const _0x3a757f=_0x17da78;this[_0x3a757f(0x1cb)](this['_beforeCloseService'][_0x3a757f(0x140)](()=>{const _0xeebee=_0x3a757f;if(this['_localCacheService'][_0xeebee(0x1f7)]['size'])return this[_0xeebee(0x12b)]['t'](_0xeebee(0x1a3));}));}['_initEvent'](){const _0x5e8c52=_0x17da78;this[_0x5e8c52(0x1cb)](this['_collaborationUIEventService']['event$'][_0x5e8c52(0x221)](_0x1c917c=>{const _0x42810c=_0x5e8c52;_0x1c917c['id']===u[_0x42810c(0x298)]['OTHER_CLIENT_EDITING']&&this[_0x42810c(0x2a8)][_0x42810c(0x240)]({'type':D['MessageType']['Warning'],'content':this['_localeService']['t'](_0x42810c(0x335))}),_0x1c917c['id']===u[_0x42810c(0x298)][_0x42810c(0xe5)]&&this['_messageService']['show']({'type':D[_0x42810c(0x21d)][_0x42810c(0x296)],'content':this[_0x42810c(0x12b)]['t'](_0x42810c(0x22c))}),_0x1c917c['id']===u[_0x42810c(0x298)][_0x42810c(0x282)]&&this['_notificationService'][_0x42810c(0x240)]({'title':this[_0x42810c(0x12b)]['t']('permission.title'),'content':this[_0x42810c(0x12b)]['t'](_0x42810c(0x220)),'type':_0x42810c(0x11a),'duration':0x0}),_0x1c917c['id']===u[_0x42810c(0x298)][_0x42810c(0x23e)]&&this[_0x42810c(0x2a8)]['show']({'type':D['MessageType'][_0x42810c(0x30f)],'content':this[_0x42810c(0x12b)]['t'](_0x42810c(0x22c))+'('+_0x1c917c[_0x42810c(0x214)]+')'}),_0x1c917c['id']===u['CollaborationUIEventId']['JOIN_ROOM_FAILED']&&this[_0x42810c(0x2a8)][_0x42810c(0x240)]({'type':D[_0x42810c(0x21d)][_0x42810c(0x296)],'content':this[_0x42810c(0x12b)]['t'](_0x1c917c[_0x42810c(0x214)]||'')}),_0x1c917c['id']===u[_0x42810c(0x298)][_0x42810c(0x23d)]&&this[_0x42810c(0x2a8)][_0x42810c(0x240)]({'type':D[_0x42810c(0x21d)][_0x42810c(0x296)],'content':this['_localeService']['t'](_0x42810c(0x285))}),_0x1c917c['id']===u[_0x42810c(0x298)][_0x42810c(0xdd)]&&this['_messageService']['show']({'type':D['MessageType'][_0x42810c(0x30f)],'content':this[_0x42810c(0x12b)]['t'](_0x42810c(0x2af))}),_0x1c917c['id']===u[_0x42810c(0x298)][_0x42810c(0x1f5)]&&this[_0x42810c(0x2a8)][_0x42810c(0x240)]({'type':D[_0x42810c(0x21d)][_0x42810c(0x30f)],'content':this[_0x42810c(0x12b)]['t'](_0x42810c(0x25c))});}));}};K=yt([y(0x0,T[_0x17da78(0x2c2)]),y(0x1,u[_0x17da78(0x250)]),y(0x2,a['Inject'](u[_0x17da78(0xfa)])),y(0x3,T[_0x17da78(0x19b)]),y(0x4,T['INotificationService']),y(0x5,a[_0x17da78(0x18a)](a[_0x17da78(0x1f9)]))],K);const $t=_0x17da78(0x1c9),Ue={},be=a[_0x17da78(0xf5)](_0x17da78(0x1ab));var xt=Object[_0x17da78(0x2d6)],jt=(_0x348f90,_0xb58294,_0x1c3043,_0xca1586)=>{const _0x5bbc6e=_0x17da78;for(var _0xebf92c=_0xca1586>0x1?void 0x0:_0xca1586?xt(_0xb58294,_0x1c3043):_0xb58294,_0x3c7ff7=_0x348f90[_0x5bbc6e(0x12c)]-0x1,_0x452282;_0x3c7ff7>=0x0;_0x3c7ff7--)(_0x452282=_0x348f90[_0x3c7ff7])&&(_0xebf92c=_0x452282(_0xebf92c)||_0xebf92c);return _0xebf92c;},H=(_0x5e39f8,_0x6023ce)=>(_0x2a9612,_0x21ecf7)=>_0x6023ce(_0x2a9612,_0x21ecf7,_0x5e39f8);exports[_0x17da78(0x308)]=class extends a[_0x17da78(0x206)]{constructor(_0xc1d141,_0x37c098,_0x4048e2,_0x405c16,_0x525d78){const _0x49efeb=_0x17da78;super(),this[_0x49efeb(0xfd)]=_0xc1d141,this[_0x49efeb(0x248)]=_0x37c098,this[_0x49efeb(0x155)]=_0x4048e2,this['_dataLoaderService']=_0x405c16,_0x525d78?_0x525d78==null||_0x525d78[_0x49efeb(0x216)]()['then'](()=>this[_0x49efeb(0xd7)]()):(this['_logService']['debug'](_0x49efeb(0xf7),_0x49efeb(0x237)),this['_init']());}async[_0x17da78(0xd7)](){const _0x2d18bc=_0x17da78,_0x315803=this[_0x2d18bc(0xfd)][_0x2d18bc(0x26b)](_0x2d18bc(0xca)),_0x218f74=this[_0x2d18bc(0xfd)][_0x2d18bc(0x26b)](_0x2d18bc(0x2f3)),_0x57b605=this[_0x2d18bc(0xfd)][_0x2d18bc(0x26b)](_0x2d18bc(0x12e));if(!_0x315803||!_0x218f74){this[_0x2d18bc(0x248)][_0x2d18bc(0x11e)](_0x2d18bc(0xf7),_0x2d18bc(0x1d0));return;}const _0xc40eda=await this[_0x2d18bc(0x31f)][_0x2d18bc(0x2f8)](_0x315803,Number(_0x218f74),_0x57b605);_0xc40eda&&_0xc40eda instanceof a[_0x2d18bc(0xea)]&&this[_0x2d18bc(0x2b9)](_0xc40eda);}async[_0x17da78(0x2b9)](_0x1e5ff3){const _0x4fde08=_0x17da78;await this[_0x4fde08(0x243)](_0x1e5ff3),_0x1e5ff3[_0x4fde08(0x24c)][_0x4fde08(0x2fd)](d[_0x4fde08(0x1e8)](this['dispose$']))[_0x4fde08(0x221)](_0x5be66a=>{const _0x5e5af8=_0x4fde08;_0x5be66a&&this[_0x5e5af8(0x19f)](_0x5be66a);}),this[_0x4fde08(0xfd)][_0x4fde08(0x23c)]['pipe'](d[_0x4fde08(0x1e8)](this[_0x4fde08(0xc9)]))['subscribe'](()=>this[_0x4fde08(0x243)](_0x1e5ff3));}[_0x17da78(0x19f)](_0x14dfa4,_0x2117b5=!0x1){const _0x202d00=_0x17da78,_0x31c6b4=this[_0x202d00(0xfd)][_0x202d00(0x26b)](_0x202d00(0x12e));_0x14dfa4['getSheetId']()!==_0x31c6b4&&this['_urlService'][_0x202d00(0xde)](_0x202d00(0x12e),_0x14dfa4['getSheetId'](),_0x2117b5);}async[_0x17da78(0x243)](_0x208d22){const _0x24d852=_0x17da78;var _0x2cf424;const _0x41b549=this[_0x24d852(0xfd)][_0x24d852(0x26b)](_0x24d852(0x12e));if(!_0x41b549||!_0x208d22[_0x24d852(0x249)](_0x41b549)){const _0x43b69d=_0x208d22[_0x24d852(0x185)]()[0x0],_0xe31b31=_0x208d22[_0x24d852(0x249)](_0x43b69d);if(!_0xe31b31)return;this['_updateURLWithCurrentState'](_0xe31b31,!0x0),await this[_0x24d852(0x155)]['executeCommand'](g[_0x24d852(0x305)]['id'],{'unitId':_0x208d22['getUnitId'](),'subUnitId':_0x43b69d});return;}((_0x2cf424=_0x208d22[_0x24d852(0xeb)]())==null?void 0x0:_0x2cf424[_0x24d852(0x1d9)]())!==_0x41b549&&await this[_0x24d852(0x155)][_0x24d852(0x1a2)](g[_0x24d852(0x305)]['id'],{'unitId':_0x208d22['getUnitId'](),'subUnitId':_0x41b549});}},exports['CollaborationDataLoaderController']=jt([H(0x0,be),H(0x1,a[_0x17da78(0x331)]),H(0x2,a[_0x17da78(0x1fb)]),H(0x3,a[_0x17da78(0x18a)](u['DataLoaderService'])),H(0x4,a[_0x17da78(0xed)](qe['IRemoteInstanceService']))],exports[_0x17da78(0x308)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x312c51,_0x2546eb,_0x137827,_0x2510aa)=>{const _0x3e6243=_0x17da78;for(var _0x425805=_0x2510aa>0x1?void 0x0:_0x2510aa?Bt(_0x2546eb,_0x137827):_0x2546eb,_0x2f4e96=_0x312c51[_0x3e6243(0x12c)]-0x1,_0x3b43df;_0x2f4e96>=0x0;_0x2f4e96--)(_0x3b43df=_0x312c51[_0x2f4e96])&&(_0x425805=_0x3b43df(_0x425805)||_0x425805);return _0x425805;},ce=(_0x146554,_0x4de062)=>(_0x319ccb,_0x47228c)=>_0x4de062(_0x319ccb,_0x47228c,_0x146554);let z=class{constructor(_0x5e390f,_0x1b3eb9,_0x5e191d){const _0x21b097=_0x17da78;this[_0x21b097(0x32d)]=_0x5e390f,this[_0x21b097(0x301)]=_0x1b3eb9,this[_0x21b097(0x300)]=_0x5e191d;}[_0x17da78(0x1dd)](_0x53c310){const _0x16cd89=_0x17da78;this[_0x16cd89(0x257)](_0x53c310),this['_transformPreviousActiveRange'](_0x53c310);}['transformRemoteChangeset'](_0x40211e){const _0x4417bd=_0x17da78,{unitID:_0x16a361}=_0x40211e,_0x3c7643=this[_0x4417bd(0x300)][_0x4417bd(0x25b)](_0x16a361)[_0x4417bd(0x152)](b['DocIMEInputManagerService']),{redoCache:_0x1d7522}=_0x3c7643[_0x4417bd(0x222)]();if(_0x1d7522[_0x4417bd(0x12c)]===0x0)return _0x40211e;let _0x17a583=a['Tools'][_0x4417bd(0x2e6)](_0x40211e['mutations'][0x0]);for(let _0x885dc0=0x0;_0x885dc0<_0x1d7522['length'];_0x885dc0++){const _0x288877={'id':_0x4417bd(0xc0),'params':{..._0x1d7522[_0x885dc0]}},_0x31b748=this[_0x4417bd(0x301)]['transformMutation'](_0x17a583,_0x288877,!0x1);if(m[_0x4417bd(0x2a4)](_0x31b748))throw _0x31b748[_0x4417bd(0x11a)];_0x17a583=_0x31b748[_0x4417bd(0x107)];}return{...a[_0x4417bd(0x2d9)]['deepClone'](_0x40211e),'mutations':[_0x17a583]};}[_0x17da78(0x257)](_0x5bf87b){const _0x1c4ecd=_0x17da78,{unitID:_0x45c2b5}=_0x5bf87b,_0x1a31a0=this[_0x1c4ecd(0x300)][_0x1c4ecd(0x25b)](_0x45c2b5)[_0x1c4ecd(0x152)](b[_0x1c4ecd(0x1a0)]),{undoCache:_0x250b2b,redoCache:_0xaceaf8}=_0x1a31a0[_0x1c4ecd(0x222)]();if(_0x250b2b[_0x1c4ecd(0x12c)]===0x0||_0xaceaf8[_0x1c4ecd(0x12c)]===0x0)return;const _0x18d2a6=[],_0x26e4d6=[];let _0x10fcb6=a[_0x1c4ecd(0x2d9)][_0x1c4ecd(0x2e6)](_0x5bf87b[_0x1c4ecd(0x314)][0x0]),_0x2b4475=a[_0x1c4ecd(0x2d9)][_0x1c4ecd(0x2e6)](_0x5bf87b[_0x1c4ecd(0x314)][0x0]);for(let _0x1be5a2=_0x250b2b['length']-0x1;_0x1be5a2>=0x0;_0x1be5a2--){const _0x5e0d40={'id':_0x1c4ecd(0xc0),'params':{..._0x250b2b[_0x1be5a2]}},_0x520ac9={'id':_0x1c4ecd(0xc0),'params':{..._0xaceaf8[_0x1be5a2]}},_0xc06ad2=this[_0x1c4ecd(0x301)][_0x1c4ecd(0x29d)](_0x10fcb6,_0x5e0d40,!0x1),_0x28f729=this[_0x1c4ecd(0x301)][_0x1c4ecd(0x29d)](_0x2b4475,_0x520ac9,!0x1);if(m['isTransformMutationFailure'](_0xc06ad2))throw _0xc06ad2['error'];if(m['isTransformMutationFailure'](_0x28f729))throw _0x28f729[_0x1c4ecd(0x11a)];_0x18d2a6[_0x1c4ecd(0x2f7)](_0xc06ad2['m2Prime'][_0x1c4ecd(0xdf)]),_0x26e4d6['unshift'](_0x28f729[_0x1c4ecd(0x143)]['params']),_0x10fcb6=_0xc06ad2[_0x1c4ecd(0x107)],_0x2b4475=_0x28f729[_0x1c4ecd(0x107)];}_0x1a31a0[_0x1c4ecd(0x32b)]({'undoCache':_0x18d2a6,'redoCache':_0x26e4d6});}['_transformPreviousActiveRange'](_0x41b033){const _0x342d7e=_0x17da78,{unitID:_0x4960bd}=_0x41b033,_0xbe27da=this[_0x342d7e(0x300)][_0x342d7e(0x25b)](_0x4960bd)[_0x342d7e(0x152)](b[_0x342d7e(0x1a0)]),_0x479e82=_0xbe27da['getActiveRange']();if(_0x479e82==null)return;const _0x5d6531=[{'id':_0x342d7e(0xc0),'params':{'unitId':_0x41b033[_0x342d7e(0x247)],'actions':null,'textRanges':[_0x479e82]}}],_0x4aeecc=this[_0x342d7e(0x301)][_0x342d7e(0x14c)](_0x41b033,_0x5d6531);if(!m[_0x342d7e(0x1e7)](_0x4aeecc))throw _0x4aeecc[_0x342d7e(0x11a)];const _0x2336e6=_0x4aeecc[_0x342d7e(0x143)][0x0][_0x342d7e(0xdf)]['textRanges'];Array[_0x342d7e(0x2ba)](_0x2336e6)&&_0x2336e6[_0x342d7e(0x12c)]&&_0xbe27da['setActiveRange'](_0x2336e6[0x0]);}};z=kt([ce(0x0,a[_0x17da78(0x18a)](a[_0x17da78(0x31b)])),ce(0x1,m[_0x17da78(0x2de)]),ce(0x2,p[_0x17da78(0x18d)])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x2ec0ce,_0x5219f1,_0x3e2579,_0x154625)=>{for(var _0x9efaee=_0x154625>0x1?void 0x0:_0x154625?Ht(_0x5219f1,_0x3e2579):_0x5219f1,_0xa6af13=_0x2ec0ce['length']-0x1,_0x1e34ae;_0xa6af13>=0x0;_0xa6af13--)(_0x1e34ae=_0x2ec0ce[_0xa6af13])&&(_0x9efaee=_0x1e34ae(_0x9efaee)||_0x9efaee);return _0x9efaee;},le=(_0x31b050,_0x24f30a)=>(_0x5a22c6,_0x3fc72d)=>_0x24f30a(_0x5a22c6,_0x3fc72d,_0x31b050);let J=class{constructor(_0x308b31,_0x17ca4d,_0x567690){const _0x530422=_0x17da78;this[_0x530422(0x32d)]=_0x308b31,this[_0x530422(0x301)]=_0x17ca4d,this['_docStateChangeManagerService']=_0x567690;}[_0x17da78(0xcb)](_0x33fc03){this['_transformHistoryAndStateStack'](_0x33fc03);}['transformRemoteChangeset'](_0x15cbe4){const _0x252bb9=_0x17da78,{unitID:_0x3820d9}=_0x15cbe4,{collaboration:_0xd5997}=this[_0x252bb9(0x292)]['getStateCache'](_0x3820d9);if(_0xd5997[_0x252bb9(0x12c)]===0x0)return _0x15cbe4;let _0x595db9=a['Tools'][_0x252bb9(0x2e6)](_0x15cbe4[_0x252bb9(0x314)][0x0]);for(let _0x1084d9=0x0;_0x1084d9<_0xd5997['length'];_0x1084d9++){const _0x30a93b={'id':_0x252bb9(0xc0),'params':{'unitId':_0xd5997[_0x1084d9][_0x252bb9(0x2ea)],..._0xd5997[_0x1084d9][_0x252bb9(0x281)]}},_0x225106=this[_0x252bb9(0x301)][_0x252bb9(0x29d)](_0x595db9,_0x30a93b,!0x1);if(m['isTransformMutationFailure'](_0x225106))throw _0x225106[_0x252bb9(0x11a)];_0x595db9=_0x225106[_0x252bb9(0x107)];}return{...a[_0x252bb9(0x2d9)][_0x252bb9(0x2e6)](_0x15cbe4),'mutations':[_0x595db9]};}[_0x17da78(0x1fc)](_0x2ac20d){const _0x18e730=_0x17da78,{unitID:_0x5740bb}=_0x2ac20d,{history:_0x156427,collaboration:_0x2858f4}=this['_docStateChangeManagerService'][_0x18e730(0x2d2)](_0x5740bb);if(_0x156427[_0x18e730(0x12c)]===0x0&&_0x2858f4[_0x18e730(0x12c)]===0x0)return;const _0x115962=[],_0x1f0271=[];let _0xebfa05=a[_0x18e730(0x2d9)][_0x18e730(0x2e6)](_0x2ac20d[_0x18e730(0x314)][0x0]),_0x26d611=a[_0x18e730(0x2d9)][_0x18e730(0x2e6)](_0x2ac20d[_0x18e730(0x314)][0x0]);for(let _0x2d8bb6=_0x156427[_0x18e730(0x12c)]-0x1;_0x2d8bb6>=0x0;_0x2d8bb6--){const _0x1339e5={'id':_0x18e730(0xc0),'params':{'unitId':_0x156427[_0x2d8bb6][_0x18e730(0x2ea)],..._0x156427[_0x2d8bb6]['undoState']}},_0x52db33={'id':_0x18e730(0xc0),'params':{'unitId':_0x156427[_0x2d8bb6]['unitId'],..._0x156427[_0x2d8bb6]['redoState']}},_0x3954d7=this[_0x18e730(0x301)][_0x18e730(0x29d)](_0xebfa05,_0x1339e5,!0x1),_0x255fb5=this[_0x18e730(0x301)][_0x18e730(0x29d)](_0x26d611,_0x52db33,!0x1);if(m[_0x18e730(0x2a4)](_0x3954d7))throw _0x3954d7[_0x18e730(0x11a)];if(m[_0x18e730(0x2a4)](_0x255fb5))throw _0x255fb5[_0x18e730(0x11a)];_0x115962[_0x18e730(0x2f7)]({..._0x156427[_0x2d8bb6],'undoState':_0x3954d7[_0x18e730(0x143)][_0x18e730(0xdf)],'redoState':_0x255fb5[_0x18e730(0x143)][_0x18e730(0xdf)]}),_0xebfa05=_0x3954d7[_0x18e730(0x107)],_0x26d611=_0x255fb5[_0x18e730(0x107)];}_0xebfa05=a[_0x18e730(0x2d9)][_0x18e730(0x2e6)](_0x2ac20d[_0x18e730(0x314)][0x0]),_0x26d611=a[_0x18e730(0x2d9)][_0x18e730(0x2e6)](_0x2ac20d[_0x18e730(0x314)][0x0]);for(let _0x3a8fa0=_0x2858f4[_0x18e730(0x12c)]-0x1;_0x3a8fa0>=0x0;_0x3a8fa0--){const _0x5a49cb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2858f4[_0x3a8fa0]['unitId'],..._0x2858f4[_0x3a8fa0][_0x18e730(0x123)]}},_0x5da381={'id':_0x18e730(0xc0),'params':{'unitId':_0x2858f4[_0x3a8fa0]['unitId'],..._0x2858f4[_0x3a8fa0]['redoState']}},_0x3a6c71=this[_0x18e730(0x301)][_0x18e730(0x29d)](_0xebfa05,_0x5a49cb,!0x1),_0x152233=this[_0x18e730(0x301)][_0x18e730(0x29d)](_0x26d611,_0x5da381,!0x1);if(m[_0x18e730(0x2a4)](_0x3a6c71))throw _0x3a6c71[_0x18e730(0x11a)];if(m[_0x18e730(0x2a4)](_0x152233))throw _0x152233[_0x18e730(0x11a)];_0x1f0271['unshift']({..._0x2858f4[_0x3a8fa0],'undoState':_0x3a6c71['m2Prime']['params'],'redoState':_0x152233[_0x18e730(0x143)][_0x18e730(0xdf)]}),_0xebfa05=_0x3a6c71['m1Prime'],_0x26d611=_0x152233['m1Prime'];}this[_0x18e730(0x292)]['setStateCache'](_0x5740bb,{'history':_0x115962,'collaboration':_0x1f0271});}};J=Ft([le(0x0,a[_0x17da78(0x18a)](a['Injector'])),le(0x1,m[_0x17da78(0x2de)]),le(0x2,a[_0x17da78(0x18a)](b['DocStateChangeManagerService']))],J);var Wt=Object[_0x17da78(0x2d6)],Yt=(_0x549870,_0x45815c,_0x474b73,_0x784bd4)=>{const _0x183337=_0x17da78;for(var _0x4a3ead=_0x784bd4>0x1?void 0x0:_0x784bd4?Wt(_0x45815c,_0x474b73):_0x45815c,_0x25daac=_0x549870[_0x183337(0x12c)]-0x1,_0x2c674d;_0x25daac>=0x0;_0x25daac--)(_0x2c674d=_0x549870[_0x25daac])&&(_0x4a3ead=_0x2c674d(_0x4a3ead)||_0x4a3ead);return _0x4a3ead;},Ne=(_0x54e567,_0x5eff98)=>(_0x141260,_0x3eb707)=>_0x5eff98(_0x141260,_0x3eb707,_0x54e567);let Z=class{constructor(_0x35bc6c,_0x4df07b){const _0x13a9e3=_0x17da78;this[_0x13a9e3(0x32d)]=_0x35bc6c,this[_0x13a9e3(0x301)]=_0x4df07b;}[_0x17da78(0x10e)](_0x354dd9){const _0x12b8e3=_0x17da78;var _0x3c2107;const _0x215c56=this[_0x12b8e3(0x32d)][_0x12b8e3(0xc7)](W[_0x12b8e3(0x294)]),_0x52f025=(_0x3c2107=_0x215c56[_0x12b8e3(0x197)]())!=null?_0x3c2107:[];if(_0x52f025[_0x12b8e3(0x12c)]===0x0)return;const _0x5ca9e1=_0x354dd9[_0x12b8e3(0x247)],_0x3672b3=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x5ca9e1,'actions':null,'textRanges':_0x52f025}}],_0x3b0b4a=this['_transformService'][_0x12b8e3(0x14c)](_0x354dd9,_0x3672b3);if(!m['isTransformMutationsWithChangesetSuccess'](_0x3b0b4a))throw _0x3b0b4a[_0x12b8e3(0x11a)];const _0x522050=_0x3b0b4a[_0x12b8e3(0x143)][0x0][_0x12b8e3(0xdf)][_0x12b8e3(0x144)];Array[_0x12b8e3(0x2ba)](_0x522050)&&_0x522050[_0x12b8e3(0x12c)]&&_0x215c56[_0x12b8e3(0x193)](_0x522050,{'unitId':_0x5ca9e1,'subUnitId':_0x5ca9e1},!0x1);}};Z=Yt([Ne(0x0,a['Inject'](a[_0x17da78(0x31b)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object[_0x17da78(0x2d6)],Xt=(_0x45fb6c,_0x55e52d,_0x5072d5,_0x21773e)=>{for(var _0x17a0a5=_0x21773e>0x1?void 0x0:_0x21773e?Vt(_0x55e52d,_0x5072d5):_0x55e52d,_0xa5ac79=_0x45fb6c['length']-0x1,_0x6002e6;_0xa5ac79>=0x0;_0xa5ac79--)(_0x6002e6=_0x45fb6c[_0xa5ac79])&&(_0x17a0a5=_0x6002e6(_0x17a0a5)||_0x17a0a5);return _0x17a0a5;},N=(_0xe714df,_0x565092)=>(_0x26db5f,_0x5171d2)=>_0x565092(_0x26db5f,_0x5171d2,_0xe714df);let Q=class extends a[_0x17da78(0x175)]{constructor(_0x44fde3,_0x282b98,_0x57d2da,_0x4274a6,_0x2a7ae3,_0x3d2a81,_0x21a50b,_0x1a0e6a){const _0xa0b28a=_0x17da78;super(),h(this,'_status$',new d[(_0xa0b28a(0x2f6))](u[_0xa0b28a(0x213)][_0xa0b28a(0x181)])),(this['_docStateChangeManagerService']=_0x44fde3,this['_collaborationController']=_0x282b98,this[_0xa0b28a(0x2a5)]=_0x57d2da,this[_0xa0b28a(0xf0)]=_0x4274a6,this['_docTransformSelectionsService']=_0x2a7ae3,this[_0xa0b28a(0x148)]=_0x3d2a81,this[_0xa0b28a(0x2a8)]=_0x21a50b,this[_0xa0b28a(0x12b)]=_0x1a0e6a,this[_0xa0b28a(0x1c8)]());}[_0x17da78(0x1c8)](){const _0x2a746d=_0x17da78;this['disposeWithMe'](this[_0x2a746d(0x24d)][_0x2a746d(0x2c8)][_0x2a746d(0x221)](_0x2b7a6e=>{const _0x29570c=_0x2a746d,_0x544d8f=this['_docStateChangeManagerService'][_0x29570c(0x327)][_0x29570c(0x221)](_0x470456=>{const _0xfb0155=_0x29570c;if(_0x470456==null)return;const {unitId:_0x569734,redoState:_0x368e00,commandId:_0x3542d0}=_0x470456;if(_0x569734!==_0x2b7a6e[_0xfb0155(0x247)])return;const _0x3a9f71={'id':_0x3542d0,'type':a['CommandType'][_0xfb0155(0x2e0)],'params':{'unitId':_0x569734,'actions':_0x368e00[_0xfb0155(0x1f0)],'textRanges':null}};_0x2b7a6e[_0xfb0155(0x1cf)](_0x3a9f71);});if(_0x2b7a6e[_0x29570c(0x1cb)](_0x544d8f),_0x2b7a6e instanceof u[_0x29570c(0x1a8)]){const _0x487f68={'onTransformIME':_0x44e140=>this[_0x29570c(0x2a5)][_0x29570c(0x1dd)](_0x44e140),'onTransformState':_0x8a2852=>this[_0x29570c(0xf0)][_0x29570c(0xcb)](_0x8a2852),'onTransformSelections':_0x53d470=>this[_0x29570c(0x19c)][_0x29570c(0x10e)](_0x53d470),'onSyncEditingCollabCursor':_0x5afdd2=>this[_0x29570c(0x148)][_0x29570c(0x265)](_0x5afdd2),'onTransformRemoteChangesetByIMECache':_0x3e8c4e=>this[_0x29570c(0x2a5)][_0x29570c(0x26e)](_0x3e8c4e),'onTransformRemoteChangesetByStateCache':_0x238473=>this[_0x29570c(0xf0)][_0x29570c(0x26e)](_0x238473)};_0x2b7a6e['addHandlerCallback'](_0x487f68);}}));}};Q=Xt([N(0x0,a[_0x17da78(0x18a)](b[_0x17da78(0x142)])),N(0x1,a[_0x17da78(0x18a)](u[_0x17da78(0x280)])),N(0x2,a[_0x17da78(0x18a)](z)),N(0x3,a[_0x17da78(0x18a)](J)),N(0x4,a[_0x17da78(0x18a)](Z)),N(0x5,a['Inject'](Ce)),N(0x6,T[_0x17da78(0x19b)]),N(0x7,a[_0x17da78(0x18a)](a[_0x17da78(0x1f9)]))],Q);var Gt=Object[_0x17da78(0x2d6)],qt=(_0x11ca21,_0x1c1daa,_0x1d4722,_0x171e02)=>{const _0x25cb72=_0x17da78;for(var _0x1d5523=_0x171e02>0x1?void 0x0:_0x171e02?Gt(_0x1c1daa,_0x1d4722):_0x1c1daa,_0x2973be=_0x11ca21[_0x25cb72(0x12c)]-0x1,_0x1c97b1;_0x2973be>=0x0;_0x2973be--)(_0x1c97b1=_0x11ca21[_0x2973be])&&(_0x1d5523=_0x1c97b1(_0x1d5523)||_0x1d5523);return _0x1d5523;},_e=(_0x18afe5,_0x59d2aa)=>(_0x4cbc9e,_0x253229)=>_0x59d2aa(_0x4cbc9e,_0x253229,_0x18afe5);let ge=class extends a[_0x17da78(0x175)]{constructor(_0x571b2e,_0x163d3f,_0x531474){const _0x440d12=_0x17da78;super(),h(this,_0x440d12(0x2e3),new Map()),h(this,_0x440d12(0x293),new Map()),h(this,'_disabled',!0x1),(this[_0x440d12(0x114)]=_0x571b2e,this[_0x440d12(0x2d3)]=_0x163d3f,this[_0x440d12(0x110)]=_0x531474);}[_0x17da78(0x2a2)](){const _0x2ca0bb=_0x17da78;this[_0x2ca0bb(0xf8)]=!0x0;}[_0x17da78(0x173)](){const _0x16d8d1=_0x17da78;this[_0x16d8d1(0xf8)]=!0x1;}get[_0x17da78(0x1f7)](){return this['_saveTaskMap'];}[_0x17da78(0x26d)](){const _0x2a2c96=_0x17da78;this[_0x2a2c96(0xd6)]()[_0x2a2c96(0xff)](()=>super[_0x2a2c96(0x26d)]());}async[_0x17da78(0x2ee)](_0x151767){const _0x914eba=_0x17da78;return this['_disabled']?null:this[_0x914eba(0x2d3)][_0x914eba(0x17f)](u[_0x914eba(0x29c)](_0x151767));}async[_0x17da78(0x275)](_0x2e07f6,_0x2c2aa7){const _0x2d4007=_0x17da78;return!!this[_0x2d4007(0x2d3)]['setItem'](_0x2e07f6,_0x2c2aa7);}[_0x17da78(0x2b1)](_0x27c3ac,_0x3b21f1,_0x7c08e0,_0x1e30e7){const _0x4f54b6=_0x17da78,_0x5cb1f6=this[_0x4f54b6(0x110)]['getCurrentRevOfUnit'](_0x27c3ac);this[_0x4f54b6(0x2e3)][_0x4f54b6(0x1bb)](_0x27c3ac,{'unitID':_0x27c3ac,'type':_0x3b21f1,'awaitingChangeset':_0x7c08e0,'mutations':_0x1e30e7,'rev':_0x5cb1f6}),this['_saveTaskMap']['has'](_0x27c3ac)||this[_0x4f54b6(0x325)](_0x27c3ac);}[_0x17da78(0x325)](_0x3a9532){const _0x3f95e9=_0x17da78,_0xac3b60=this['_getSaveTimeout']();_0xac3b60===0x0?this[_0x3f95e9(0x211)](_0x3a9532):this['_saveTaskMap'][_0x3f95e9(0x1bb)](_0x3a9532,setTimeout(()=>this[_0x3f95e9(0x211)](_0x3a9532),_0xac3b60));}[_0x17da78(0x29e)](){const _0x13b07b=_0x17da78;var _0x32b593;return(_0x32b593=this[_0x13b07b(0x114)]['getConfig'](u[_0x13b07b(0x156)]))!=null?_0x32b593:u[_0x13b07b(0x306)];}[_0x17da78(0x211)](_0x409065){const _0x4b01c2=_0x17da78,_0x4a63c1=this['_saveTaskMap'][_0x4b01c2(0xc7)](_0x409065);return _0x4a63c1!==void 0x0&&window[_0x4b01c2(0x2da)](_0x4a63c1),this[_0x4b01c2(0x2d3)][_0x4b01c2(0x11f)](u['getLocalCacheKey'](_0x409065),this['_cachedData']['get'](_0x409065))[_0x4b01c2(0xff)](()=>this[_0x4b01c2(0x293)][_0x4b01c2(0x1cc)](_0x409065));}async[_0x17da78(0xd6)](){const _0x21c86b=_0x17da78,_0x30bfe4=[];this[_0x21c86b(0x293)][_0x21c86b(0x21c)]((_0x53ee4c,_0x207d43)=>{const _0x1907d5=_0x21c86b;window[_0x1907d5(0x2da)](_0x53ee4c),_0x30bfe4[_0x1907d5(0x32a)](this[_0x1907d5(0x211)](_0x207d43)['then'](()=>{const _0x1d6b6a=_0x1907d5;this['_saveTaskMap'][_0x1d6b6a(0x1cc)](_0x207d43);}));}),await Promise[_0x21c86b(0x1ec)](_0x30bfe4);}};ge=qt([_e(0x0,a[_0x17da78(0x2c5)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a[_0x17da78(0x18a)](m[_0x17da78(0x116)]))],ge);class je extends a[_0x17da78(0x206)]{constructor(){const _0x3fbc91=_0x17da78;super(),h(this,_0x3fbc91(0x23c)),this[_0x3fbc91(0x23c)]=d[_0x3fbc91(0x1c1)](window,_0x3fbc91(0x1b1))[_0x3fbc91(0x2fd)](d[_0x3fbc91(0x1e8)](this['dispose$']),d[_0x3fbc91(0x1e9)](0x1),d[_0x3fbc91(0xcf)](void 0x0));}['setParam'](_0x39d801,_0x5b9b05,_0x463ba0=!0x1){const _0x5383b6=_0x17da78,_0x57d7fd=new URL(window[_0x5383b6(0x272)]['href']);_0x57d7fd[_0x5383b6(0x310)][_0x5383b6(0x1bb)](_0x39d801,_0x5b9b05),_0x463ba0?window['history'][_0x5383b6(0x1d5)]('','',_0x57d7fd[_0x5383b6(0x2d7)]()):window[_0x5383b6(0x27b)]['pushState']('','',_0x57d7fd[_0x5383b6(0x2d7)]());}[_0x17da78(0x2fc)](_0x3f51ec,_0x29c58f=!0x1){const _0x1611d4=_0x17da78,_0x1d3ee1=new URL(window[_0x1611d4(0x272)]['href']);_0x1d3ee1['searchParams']['delete'](_0x3f51ec),_0x29c58f?window[_0x1611d4(0x27b)][_0x1611d4(0x1d5)]('','',_0x1d3ee1[_0x1611d4(0x2d7)]()):window[_0x1611d4(0x27b)][_0x1611d4(0x2dd)]('','',_0x1d3ee1[_0x1611d4(0x2d7)]());}[_0x17da78(0x26b)](_0xf363e5){const _0x34d6c9=_0x17da78;var _0x4d53d2;return(_0x4d53d2=new URL(window[_0x34d6c9(0x272)][_0x34d6c9(0x172)])[_0x34d6c9(0x310)][_0x34d6c9(0xc7)](_0xf363e5))!=null?_0x4d53d2:void 0x0;}}var Kt=Object[_0x17da78(0x231)],zt=Object['getOwnPropertyDescriptor'],Jt=(_0x2e30b2,_0x31c2ba,_0x1662a1)=>_0x31c2ba in _0x2e30b2?Kt(_0x2e30b2,_0x31c2ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1662a1}):_0x2e30b2[_0x31c2ba]=_0x1662a1,Zt=(_0x7eabf8,_0x4fd8d6,_0x16f67f,_0x14fb4f)=>{const _0xe4f750=_0x17da78;for(var _0x2f7edb=_0x14fb4f>0x1?void 0x0:_0x14fb4f?zt(_0x4fd8d6,_0x16f67f):_0x4fd8d6,_0x25b4a7=_0x7eabf8[_0xe4f750(0x12c)]-0x1,_0x249252;_0x25b4a7>=0x0;_0x25b4a7--)(_0x249252=_0x7eabf8[_0x25b4a7])&&(_0x2f7edb=_0x249252(_0x2f7edb)||_0x2f7edb);return _0x2f7edb;},he=(_0xb17463,_0xa0f536)=>(_0x37aa71,_0x31103e)=>_0xa0f536(_0x37aa71,_0x31103e,_0xb17463),Qt=(_0x12174c,_0x26621b,_0x1739bd)=>Jt(_0x12174c,_0x26621b+'',_0x1739bd);const es=_0x17da78(0x130);exports[_0x17da78(0x1f6)]=class extends a[_0x17da78(0x163)]{constructor(_0x1b3e6f=Ue,_0x1ad382,_0x1ad0a5,_0x6ac1a){const _0x17f630=_0x17da78;super(),this['_config']=_0x1b3e6f,this[_0x17f630(0x300)]=_0x1ad382,this[_0x17f630(0x32d)]=_0x1ad0a5,this[_0x17f630(0x114)]=_0x6ac1a;const {..._0x5f00b5}=a[_0x17f630(0x238)]({},Ue,this[_0x17f630(0x158)]);this[_0x17f630(0x114)]['setConfig']($t,_0x5f00b5);}[_0x17da78(0x146)](){const _0x265f24=_0x17da78;this[_0x265f24(0x119)](),this[_0x265f24(0x1cd)]();}[_0x17da78(0x1ca)](){const _0xf03bb6=_0x17da78;this[_0xf03bb6(0x273)]();}[_0x17da78(0x119)](){const _0x31ef90=_0x17da78;var _0x5c7523;const _0x2dcb2b=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x31ef90(0x16b)],{'useClass':G[_0x31ef90(0x227)]}],[u['ILocalCacheService'],{'useClass':ge}],[exports[_0x31ef90(0x200)]],[Q],[K],[x],[de],[exports[_0x31ef90(0x308)]]];a[_0x31ef90(0x28b)](this[_0x31ef90(0x32d)],a[_0x31ef90(0xe4)](_0x2dcb2b,(_0x5c7523=this['_config'])==null?void 0x0:_0x5c7523[_0x31ef90(0x1df)]));}[_0x17da78(0x273)](){const _0x24f479=_0x17da78;this['disposeWithMe'](this['_renderManagerService']['registerRenderModule'](a[_0x24f479(0x29f)]['UNIVER_DOC'],[Ie])),this[_0x24f479(0x1cb)](this[_0x24f479(0x300)][_0x24f479(0x208)](a[_0x24f479(0x29f)]['UNIVER_SHEET'],[ve]));}[_0x17da78(0x1cd)](){const _0x2571c3=_0x17da78;a[_0x2571c3(0x210)](this[_0x2571c3(0x32d)],[[x],[exports['DesktopCollaborationStatusDisplayController']],[Q],[K],[exports[_0x2571c3(0x308)]]]);}},Qt(exports['UniverCollaborationClientUIPlugin'],_0x17da78(0x241),es),exports['UniverCollaborationClientUIPlugin']=Zt([a[_0x17da78(0xd1)](u['UniverCollaborationClientPlugin']),he(0x1,p['IRenderManagerService']),he(0x2,a['Inject'](a[_0x17da78(0x31b)])),he(0x3,a['IConfigService'])],exports[_0x17da78(0x1f6)]);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x5d9827,_0x7f0191,_0x2fa5f1,_0xeb70c4)=>{const _0x3fa4c6=_0x17da78;for(var _0x288888=_0xeb70c4>0x1?void 0x0:_0xeb70c4?ts(_0x7f0191,_0x2fa5f1):_0x7f0191,_0x2872c8=_0x5d9827[_0x3fa4c6(0x12c)]-0x1,_0xb6af28;_0x2872c8>=0x0;_0x2872c8--)(_0xb6af28=_0x5d9827[_0x2872c8])&&(_0x288888=_0xb6af28(_0x288888)||_0x288888);return _0x288888;},F=(_0x1494bd,_0x372933)=>(_0x45a6c8,_0x5255b8)=>_0x372933(_0x45a6c8,_0x5255b8,_0x1494bd);exports[_0x17da78(0x2b2)]=class extends u[_0x17da78(0x269)]{constructor(_0x1d553e,_0x49027a,_0x4ac0ac,_0x2f758b,_0x5baefb){super(_0x1d553e,_0x49027a,_0x4ac0ac,_0x2f758b,_0x5baefb);}async[_0x17da78(0x2f4)](_0x157c08){const _0x352abf=_0x17da78,_0x3d0773=await this['_getSessionTicket'](),_0x43c067=this[_0x352abf(0x2f1)](_0x157c08,_0x3d0773);return this[_0x352abf(0x28d)](_0x43c067);}[_0x17da78(0x2f1)](_0x2105f0,_0x2e4463){const _0x1f8034=_0x17da78,_0x1437f0=typeof window>'u'?new URL(_0x2105f0):new URL(_0x2105f0,window['location'][_0x1f8034(0x2c7)]);_0x1437f0[_0x1f8034(0x310)][_0x1f8034(0x1bb)](_0x1f8034(0x256),_0x2e4463);const _0x2512f0=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x1f8034(0x272)]['search']);return _0x2512f0[_0x1f8034(0xc7)](_0x1f8034(0x233))&&_0x1437f0[_0x1f8034(0x310)][_0x1f8034(0x1bb)]('runId',_0x2512f0['get'](_0x1f8034(0x233))),_0x1437f0['toString']();}async[_0x17da78(0x1c6)](){const _0x51d767=_0x17da78;var _0x464dae,_0x4a00a6,_0x21a858;const _0x5a3a0d=this[_0x51d767(0x114)][_0x51d767(0x141)](u[_0x51d767(0x2d0)]),_0x4df5ac=(_0x464dae=_0x5a3a0d==null?void 0x0:_0x5a3a0d[_0x51d767(0x29a)])!=null?_0x464dae:u[_0x51d767(0x212)];return(_0x21a858=(_0x4a00a6=(await this[_0x51d767(0x174)][_0x51d767(0xc7)](_0x4df5ac,{'headers':{'Content-Type':_0x51d767(0xd2)}}))[_0x51d767(0x194)])==null?void 0x0:_0x4a00a6['ticket'])!=null?_0x21a858:'';}},exports[_0x17da78(0x2b2)]=ss([F(0x0,a[_0x17da78(0x18a)](a[_0x17da78(0x31b)])),F(0x1,a[_0x17da78(0x18a)](G[_0x17da78(0xf4)])),F(0x2,a[_0x17da78(0x2c5)]),F(0x3,a['ILogService']),F(0x4,m['ISnapshotServerService'])],exports[_0x17da78(0x2b2)]);const Me=0x7530,Le='ACTIVE_UNIT_EVENT_CHANNEL';class is extends a[_0x17da78(0x175)]{constructor(){const _0x506716=_0x17da78;super(),h(this,_0x506716(0x1b2),a['generateRandomId']()),h(this,_0x506716(0x11b),new Set()),h(this,_0x506716(0x263),new Map()),h(this,_0x506716(0x226),null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this[_0x506716(0xd7)]();}[_0x17da78(0x26d)](){const _0x147851=_0x17da78;super['dispose'](),this[_0x147851(0x31e)]['forEach']((_0x2b14ea,_0x24c191)=>this[_0x147851(0x318)](_0x24c191)),this[_0x147851(0x226)]&&window[_0x147851(0x128)](this[_0x147851(0x226)]);}['getUnitStatus$'](_0x136767){const _0x51fe76=_0x17da78;return this['_ensureSubject'](_0x136767)[_0x51fe76(0x2fd)](d[_0x51fe76(0xc3)]());}[_0x17da78(0x164)](_0x35a91d){const _0xd0fe53=_0x17da78;this[_0xd0fe53(0x11b)][_0xd0fe53(0xda)]===0x0&&this['_scheduleHeartbeat'](),this[_0xd0fe53(0x11b)]['add'](_0x35a91d),this[_0xd0fe53(0x255)]({'type':0x0,'memberID':this[_0xd0fe53(0x1b2)],'unitIDs':[_0x35a91d],'isForwarded':!0x1});}[_0x17da78(0x302)](_0x15c3d3){const _0x3502ca=_0x17da78;this[_0x3502ca(0x11b)][_0x3502ca(0x1cc)](_0x15c3d3),this[_0x3502ca(0x11b)][_0x3502ca(0xda)]===0x0&&this['_heartbeatTimer']&&window[_0x3502ca(0x128)](this[_0x3502ca(0x226)]);}[_0x17da78(0xd7)](){const _0x509a67=_0x17da78;this[_0x509a67(0x1cb)](a[_0x509a67(0x28e)](d[_0x509a67(0x1c1)](window,_0x509a67(0x1f3))[_0x509a67(0x221)](_0x3437fe=>{const _0xaa889f=_0x509a67;if(_0x3437fe['key']!==Le||!_0x3437fe[_0xaa889f(0x224)])return;const _0x4edf8c=JSON[_0xaa889f(0x118)](_0x3437fe['newValue']);this[_0xaa889f(0x264)](_0x4edf8c);}))),window[_0x509a67(0x192)](_0x509a67(0x328),()=>this[_0x509a67(0x255)]({'type':0x1,'memberID':this[_0x509a67(0x1b2)],'unitIDs':Array[_0x509a67(0x202)](this[_0x509a67(0x11b)])}));}[_0x17da78(0x264)](_0x257976){const _0x123953=_0x17da78;switch(_0x257976['type']){case 0x0:this[_0x123953(0xf2)](_0x257976);break;case 0x1:this[_0x123953(0x145)](_0x257976);break;case 0x2:this[_0x123953(0x266)](_0x257976);break;}}[_0x17da78(0xf2)](_0xf00b4c){const _0x411078=_0x17da78,{unitIDs:_0x2380fb,memberID:_0xc7a670,isForwarded:_0x5575ed}=_0xf00b4c;_0x2380fb[_0x411078(0x21c)](_0x2cdd56=>{const _0x16a29a=_0x411078;if(!_0x5575ed&&this[_0x16a29a(0x263)][_0x16a29a(0x24f)](_0x2cdd56)&&this['_ensureSubject'](_0x2cdd56)[_0x16a29a(0x117)](u['UnitStatus']['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x16a29a(0x24f)](_0x2cdd56)||!this['_unitOnClients'][_0x16a29a(0xc7)](_0x2cdd56)[_0x16a29a(0x24f)](_0xc7a670)){const _0x1c8737=this['_unitOnClients'][_0x16a29a(0xc7)](_0x2cdd56)||new Set();_0x1c8737[_0x16a29a(0x23f)](_0xc7a670),this[_0x16a29a(0x263)][_0x16a29a(0x1bb)](_0x2cdd56,_0x1c8737),this[_0x16a29a(0xdb)](_0xc7a670);}}),_0x5575ed||this[_0x411078(0x255)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x411078(0x11b)]],'isForwarded':!0x0});}[_0x17da78(0xdb)](_0x37475d){const _0x15c37a=_0x17da78;this[_0x15c37a(0x318)](_0x37475d);const _0x255c91=window[_0x15c37a(0x30e)](()=>{const _0x47a6fa=_0x15c37a;this[_0x47a6fa(0x263)][_0x47a6fa(0x21c)](_0x3aab60=>{_0x3aab60['delete'](_0x37475d);});},Me*0x2);this[_0x15c37a(0x31e)]['set'](_0x37475d,_0x255c91);}[_0x17da78(0x318)](_0x2afd19){const _0x5ea941=_0x17da78;if(this['_clearOtherTimers'][_0x5ea941(0x24f)](_0x2afd19)){const _0x100c4a=this['_clearOtherTimers']['get'](_0x2afd19);_0x100c4a&&window['clearTimeout'](_0x100c4a),this['_clearOtherTimers'][_0x5ea941(0x1bb)](_0x2afd19,null);}}[_0x17da78(0x145)](_0x57b450){const _0x55effc=_0x17da78,{memberID:_0x3046d9,unitIDs:_0x5ba008}=_0x57b450;_0x5ba008[_0x55effc(0x21c)](_0x3fbe25=>{const _0x3729a7=_0x55effc;var _0x1d668e;const _0x12e08d=this[_0x3729a7(0x263)][_0x3729a7(0xc7)](_0x3fbe25);_0x12e08d&&(_0x12e08d['delete'](_0x3046d9),(_0x1d668e=this[_0x3729a7(0x190)](_0x3fbe25))==null||_0x1d668e['next'](_0x12e08d['size']===0x0?u[_0x3729a7(0x11d)]['NO_OTHER_CLIENTS_EDITING']:u[_0x3729a7(0x11d)]['OTHER_CLIENTS_EDITING']));}),this[_0x55effc(0x318)](_0x3046d9);}[_0x17da78(0x266)](_0xc66439){this['_scheduleClearOtherTimer'](_0xc66439['memberID']);}[_0x17da78(0x255)](_0x2012a9){const _0x5b974f=_0x17da78;localStorage[_0x5b974f(0x11f)](Le,JSON[_0x5b974f(0x251)](_0x2012a9));}['_scheduleHeartbeat'](){const _0xc54050=_0x17da78;this[_0xc54050(0x226)]=window[_0xc54050(0x25f)](()=>{const _0x2891ad=_0xc54050;this[_0x2891ad(0x255)]({'type':0x2,'memberID':this[_0x2891ad(0x1b2)]});},Me);}[_0x17da78(0x190)](_0x54a899){const _0x1a79da=_0x17da78;return this[_0x1a79da(0x2c6)][_0x1a79da(0x24f)](_0x54a899)||this['_unitStatus'][_0x1a79da(0x1bb)](_0x54a899,new d[(_0x1a79da(0x2f6))](u[_0x1a79da(0x11d)][_0x1a79da(0x20d)])),this[_0x1a79da(0x2c6)][_0x1a79da(0xc7)](_0x54a899);}}var Be=(_0x4767e0=>(_0x4767e0[_0x4767e0[_0x17da78(0x18c)]=0x0]=_0x17da78(0x18c),_0x4767e0[_0x4767e0['OK']=0x1]='OK',_0x4767e0[_0x4767e0[_0x17da78(0x1b4)]=0x2]=_0x17da78(0x1b4),_0x4767e0[_0x4767e0[_0x17da78(0x282)]=0x3]=_0x17da78(0x282),_0x4767e0[_0x4767e0['NOT_FOUND']=0x4]=_0x17da78(0x127),_0x4767e0[_0x4767e0[_0x17da78(0x209)]=0x5]='UNAUTHENTICATED',_0x4767e0[_0x4767e0[_0x17da78(0x27d)]=0x6]=_0x17da78(0x27d),_0x4767e0[_0x4767e0['INVALID_ARGUMENT']=0x7]=_0x17da78(0x1a7),_0x4767e0[_0x4767e0[_0x17da78(0x2eb)]=0x8]=_0x17da78(0x2eb),_0x4767e0[_0x4767e0[_0x17da78(0x24b)]=0x9]=_0x17da78(0x24b),_0x4767e0[_0x4767e0[_0x17da78(0x30b)]=0xa]=_0x17da78(0x30b),_0x4767e0[_0x4767e0['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x17da78(0xb8),_0x4767e0[_0x4767e0[_0x17da78(0x14e)]=0x1771]=_0x17da78(0x14e),_0x4767e0[_0x4767e0[_0x17da78(0x159)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x4767e0[_0x4767e0[_0x17da78(0xef)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x4767e0[_0x4767e0[_0x17da78(0xdc)]=0x1b59]=_0x17da78(0xdc),_0x4767e0[_0x4767e0[_0x17da78(0x13e)]=0x1b5a]=_0x17da78(0x13e),_0x4767e0[_0x4767e0[_0x17da78(0x291)]=0x1b5b]=_0x17da78(0x291),_0x4767e0[_0x4767e0[_0x17da78(0x254)]=0x1b5c]=_0x17da78(0x254),_0x4767e0[_0x4767e0[_0x17da78(0x316)]=0x1b5d]='APPLY_DUPLICATED',_0x4767e0[_0x4767e0[_0x17da78(0x1e6)]=0x1f41]=_0x17da78(0x1e6),_0x4767e0[_0x4767e0[_0x17da78(0x17d)]=0x2329]=_0x17da78(0x17d),_0x4767e0[_0x4767e0['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x4767e0[_0x4767e0['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x17da78(0x1b3),_0x4767e0[_0x4767e0[_0x17da78(0x2df)]=0x232c]=_0x17da78(0x2df),_0x4767e0[_0x4767e0[_0x17da78(0x2ff)]=0x232d]=_0x17da78(0x2ff),_0x4767e0[_0x4767e0[_0x17da78(0x284)]=0x2711]=_0x17da78(0x284),_0x4767e0[_0x4767e0['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x4767e0[_0x4767e0['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x17da78(0x277),_0x4767e0[_0x4767e0[_0x17da78(0xe9)]=0x2714]=_0x17da78(0xe9),_0x4767e0[_0x4767e0[_0x17da78(0x326)]=0x271a]=_0x17da78(0x326),_0x4767e0[_0x4767e0[_0x17da78(0x199)]=0x271b]=_0x17da78(0x199),_0x4767e0[_0x4767e0[_0x17da78(0x22d)]=0x2af9]=_0x17da78(0x22d),_0x4767e0[_0x4767e0['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x17da78(0x22f),_0x4767e0[_0x4767e0['INVALID_INVITE_CODE']=0x2ee2]='INVALID_INVITE_CODE',_0x4767e0[_0x4767e0[_0x17da78(0x187)]=0x2ee3]='INVITE_CODE_REQUIRED',_0x4767e0[_0x4767e0[_0x17da78(0x2d1)]=0x2ee4]=_0x17da78(0x2d1),_0x4767e0[_0x4767e0[_0x17da78(0x1b0)]=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x4767e0[_0x4767e0['WECHAT_HAS_BEEN_BOUND']=0x32c9]=_0x17da78(0x2ec),_0x4767e0[_0x4767e0['MOBILE_HAS_BEEN_BOUND']=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x4767e0[_0x4767e0[_0x17da78(0x229)]=0x32cb]='EMAIL_HAS_BEEN_BOUND',_0x4767e0[_0x4767e0[_0x17da78(0x2f9)]=-0x1]=_0x17da78(0x2f9),_0x4767e0))(Be||{}),ns=Object['getOwnPropertyDescriptor'],rs=(_0x39d976,_0x4cfd68,_0x22f3d8,_0x31a427)=>{const _0x494cc8=_0x17da78;for(var _0x59b8c6=_0x31a427>0x1?void 0x0:_0x31a427?ns(_0x4cfd68,_0x22f3d8):_0x4cfd68,_0x3109d1=_0x39d976[_0x494cc8(0x12c)]-0x1,_0x4d8d84;_0x3109d1>=0x0;_0x3109d1--)(_0x4d8d84=_0x39d976[_0x3109d1])&&(_0x59b8c6=_0x4d8d84(_0x59b8c6)||_0x59b8c6);return _0x59b8c6;},ue=(_0x44f2b3,_0x5469b5)=>(_0x5b0280,_0x4e3f3e)=>_0x5469b5(_0x5b0280,_0x4e3f3e,_0x44f2b3);exports['RemoteUniscriptService']=class extends a[_0x17da78(0x175)]{constructor(_0x455d69,_0x5d8ba2,_0x2c0e75){const _0x331de1=_0x17da78;super(),this[_0x331de1(0x329)]=_0x455d69,this[_0x331de1(0x174)]=_0x5d8ba2,this[_0x331de1(0x114)]=_0x2c0e75;}async['runOnServer'](_0x3f7b38,_0x235f34,_0x363197,..._0x1634b0){const _0x1c59f5=_0x17da78;var _0x3e32d5,_0x3b7ff6,_0x37a0c6,_0x76d76a;const _0x3868bc=this[_0x1c59f5(0x329)][_0x1c59f5(0xfb)]();if(!_0x3868bc)throw new Error(_0x1c59f5(0x1da));const _0x50acc8=((_0x3e32d5=this[_0x1c59f5(0x114)]['getConfig'](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x3e32d5:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x3f7b38+'/run/'+_0x235f34,_0x5616f9=new URL(window[_0x1c59f5(0x272)][_0x1c59f5(0x172)]),_0x35608e={'scriptId':_0x3f7b38,'runId':(_0x3b7ff6=_0x5616f9['searchParams'][_0x1c59f5(0xc7)](_0x1c59f5(0x233)))!=null?_0x3b7ff6:'','function':_0x235f34,'unitId':_0x3868bc[_0x1c59f5(0x2cf)](),'argsOfFunction':JSON[_0x1c59f5(0x251)](_0x1634b0),'invokeId':(_0x37a0c6=_0x363197[_0x1c59f5(0x2ca)])!=null?_0x37a0c6:'','executionId':(_0x76d76a=_0x363197[_0x1c59f5(0x1c4)])!=null?_0x76d76a:''};try{const _0x26a3a4=await this[_0x1c59f5(0x174)][_0x1c59f5(0x101)](_0x50acc8,{'body':_0x35608e});return _0x26a3a4[_0x1c59f5(0x194)][_0x1c59f5(0x11a)]&&_0x26a3a4[_0x1c59f5(0x194)][_0x1c59f5(0x11a)][_0x1c59f5(0x16c)]!==Be['OK']?_0x1c59f5(0xf6):_0x26a3a4[_0x1c59f5(0x194)][_0x1c59f5(0x290)];}catch{return _0x1c59f5(0xf6);}}},exports[_0x17da78(0x30c)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a['Inject'](G[_0x17da78(0xf4)])),ue(0x2,a[_0x17da78(0x2c5)])],exports['RemoteUniscriptService']),exports[_0x17da78(0x1ce)]=xe,exports[_0x17da78(0x336)]=be,exports['SheetCollabCursorShape']=we,exports['WebBrowserSingleActiveUnitService']=is,exports[_0x17da78(0x1bd)]=je;
|
|
1
|
+
'use strict';const _0x121fa1=_0x2681;(function(_0x377856,_0x2625dd){const _0x4f2efd=_0x2681,_0x1f482a=_0x377856();while(!![]){try{const _0x13b864=-parseInt(_0x4f2efd(0x23a))/0x1*(-parseInt(_0x4f2efd(0x244))/0x2)+-parseInt(_0x4f2efd(0x235))/0x3+-parseInt(_0x4f2efd(0x17d))/0x4*(parseInt(_0x4f2efd(0x2a5))/0x5)+-parseInt(_0x4f2efd(0x146))/0x6+-parseInt(_0x4f2efd(0x251))/0x7+-parseInt(_0x4f2efd(0x21c))/0x8+parseInt(_0x4f2efd(0x2ae))/0x9;if(_0x13b864===_0x2625dd)break;else _0x1f482a['push'](_0x1f482a['shift']());}catch(_0x2d2a14){_0x1f482a['push'](_0x1f482a['shift']());}}}(_0x528c,0x83405));var Ve=Object[_0x121fa1(0x13d)],Xe=(_0x392509,_0x2bd2d6,_0x627342)=>_0x2bd2d6 in _0x392509?Ve(_0x392509,_0x2bd2d6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x627342}):_0x392509[_0x2bd2d6]=_0x627342,h=(_0x294f8f,_0x583f1,_0x374949)=>Xe(_0x294f8f,typeof _0x583f1!=_0x121fa1(0x236)?_0x583f1+'':_0x583f1,_0x374949);Object[_0x121fa1(0x13d)](exports,Symbol[_0x121fa1(0x1c6)],{'value':'Module'});const u=require(_0x121fa1(0x163)),a=require(_0x121fa1(0x329)),p=require(_0x121fa1(0x1d3)),G=require('@univerjs/network'),b=require(_0x121fa1(0x155)),Ge=require(_0x121fa1(0x375)),d=require('rxjs'),W=require('@univerjs/docs'),m=require(_0x121fa1(0x367)),Ee=require(_0x121fa1(0x1b7)),g=require(_0x121fa1(0x33c)),$=require('rxjs/operators'),X=require(_0x121fa1(0x2a8)),P=require(_0x121fa1(0x2e7)),T=require(_0x121fa1(0x150)),D=require(_0x121fa1(0x338)),M=require(_0x121fa1(0x13f)),qe=require(_0x121fa1(0x325));var Ke=Object['getOwnPropertyDescriptor'],ze=(_0x574100,_0x1c2d21,_0x4891f0,_0x91e8b1)=>{const _0x28ee49=_0x121fa1;for(var _0x38c337=_0x91e8b1>0x1?void 0x0:_0x91e8b1?Ke(_0x1c2d21,_0x4891f0):_0x1c2d21,_0x58dd3b=_0x574100[_0x28ee49(0x363)]-0x1,_0x35e00c;_0x58dd3b>=0x0;_0x58dd3b--)(_0x35e00c=_0x574100[_0x58dd3b])&&(_0x38c337=_0x35e00c(_0x38c337)||_0x38c337);return _0x38c337;},Te=(_0x37b4f4,_0x5e8d45)=>(_0x276969,_0x196785)=>_0x5e8d45(_0x276969,_0x196785,_0x37b4f4);function _0x2681(_0x144e0d,_0x266f11){const _0x528ced=_0x528c();return _0x2681=function(_0x268183,_0x473b53){_0x268183=_0x268183-0x10c;let _0x54eb63=_0x528ced[_0x268183];return _0x54eb63;},_0x2681(_0x144e0d,_0x266f11);}let de=class extends a[_0x121fa1(0x189)]{constructor(_0x437ae4,_0x240e1d){const _0x55b814=_0x121fa1;super(),this[_0x55b814(0x1aa)]=_0x437ae4,this[_0x55b814(0x27c)]=_0x240e1d,this[_0x55b814(0x324)]();}[_0x121fa1(0x324)](){const _0x35a80c=_0x121fa1,_0x10575b=this;this[_0x35a80c(0x337)](this['_docClipboardService'][_0x35a80c(0x2d9)]({'onBeforePasteImage':async _0xd1e245=>{const _0x1fdf84=_0x35a80c,_0x5d343a=await _0x10575b['_imageIoService'][_0x1fdf84(0x29d)](_0xd1e245);return _0x5d343a?{'source':_0x5d343a['source'],'imageSourceType':_0x5d343a[_0x1fdf84(0x21f)]}:null;}}));}};de=ze([Te(0x0,b[_0x121fa1(0x161)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x121fa1(0x2b7),'jiqing500',_0x121fa1(0x29b),_0x121fa1(0x364),_0x121fa1(0x30b),_0x121fa1(0x1f3)];class me extends a[_0x121fa1(0x28d)]{constructor(){const _0x24cfbf=_0x121fa1;super(...arguments),h(this,_0x24cfbf(0x21b),new Map()),h(this,'_colorIndex',0x0);}[_0x121fa1(0x1a9)](_0x1cbff4){const _0x5db7d5=_0x121fa1;if(this[_0x5db7d5(0x21b)]['has'](_0x1cbff4))return this[_0x5db7d5(0x21b)][_0x5db7d5(0x192)](_0x1cbff4);const _0x27d9fd=Oe[this[_0x5db7d5(0x2ed)]];return this[_0x5db7d5(0x2ed)]=(this[_0x5db7d5(0x2ed)]+0x1)%Oe[_0x5db7d5(0x363)],this[_0x5db7d5(0x21b)][_0x5db7d5(0x26d)](_0x1cbff4,_0x27d9fd),_0x27d9fd;}}function Pe(_0x6589e2){let _0x20cdb8='';for(const _0x81ff9 of _0x6589e2){const {startOffset:_0x11d952,endOffset:_0x410dbe,isActive:_0x4d8606,rangeType:_0x423a6e,segmentId:_0x18ddf2,segmentPage:_0x4da2d8}=_0x81ff9;_0x20cdb8['length']&&(_0x20cdb8+=','),_0x20cdb8+=_0x11d952+':'+_0x410dbe+':'+(_0x4d8606?'1':'0')+':'+_0x423a6e+':'+_0x18ddf2+':'+_0x4da2d8;}return _0x20cdb8;}function Je(_0x4ff8e6){const _0x4918ed=_0x121fa1,_0x5a65fa=_0x4ff8e6[_0x4918ed(0x273)](','),_0x3cf215=[];for(const _0x3f788f of _0x5a65fa){const [_0x310494,_0x815dfe,_0x58aca7,_0x517a92,_0xe58d73,_0x36a1de]=_0x3f788f[_0x4918ed(0x273)](':');_0x3cf215[_0x4918ed(0x342)]({'startOffset':Number(_0x310494),'endOffset':Number(_0x815dfe),'collapsed':_0x310494===_0x815dfe,'isActive':_0x58aca7==='1','rangeType':_0x517a92===a[_0x4918ed(0x1c9)][_0x4918ed(0x283)]?a['DOC_RANGE_TYPE']['TEXT']:a[_0x4918ed(0x1c9)][_0x4918ed(0x188)],'segmentId':typeof _0xe58d73==_0x4918ed(0x18b)?String(_0xe58d73):'','segmentPage':Number(_0x36a1de!=null?_0x36a1de:-0x1)});}return _0x3cf215[_0x4918ed(0x37f)](_0x43c713=>_0x43c713[_0x4918ed(0x25d)])||(_0x3cf215[0x0][_0x4918ed(0x25d)]=!0x0),_0x3cf215;}class Ce extends a[_0x121fa1(0x189)]{constructor(){const _0x1bad25=_0x121fa1;super(...arguments),h(this,'_collabCursorState$',new d[(_0x1bad25(0x368))](null)),h(this,_0x1bad25(0x257),this[_0x1bad25(0x1e5)][_0x1bad25(0x35c)]());}[_0x121fa1(0x1c1)](_0x208cb7){const _0x3a08e7=_0x121fa1,{unitID:_0x1d83b2,memberID:_0x25ec80,textRanges:_0xa8e5bd}=_0x208cb7,_0x42d182=Pe(_0xa8e5bd);if(_0x42d182==='')return;const _0x1ca1ca={'unitID':_0x1d83b2,'memberID':_0x25ec80,'selection':_0x42d182};this[_0x3a08e7(0x1e5)][_0x3a08e7(0x2fb)](_0x1ca1ca);}}var Ze=Object[_0x121fa1(0x383)],Qe=(_0x353fc3,_0x355b26,_0x58b1f5,_0x1fd375)=>{for(var _0x3b247e=_0x1fd375>0x1?void 0x0:_0x1fd375?Ze(_0x355b26,_0x58b1f5):_0x355b26,_0x3b0323=_0x353fc3['length']-0x1,_0x2ec2d6;_0x3b0323>=0x0;_0x3b0323--)(_0x2ec2d6=_0x353fc3[_0x3b0323])&&(_0x3b247e=_0x2ec2d6(_0x3b247e)||_0x3b247e);return _0x3b247e;},L=(_0x34f33b,_0x44d485)=>(_0x504f9a,_0x35df49)=>_0x44d485(_0x504f9a,_0x35df49,_0x34f33b);const et=0x12c,tt=0x64;let fe=class extends a[_0x121fa1(0x189)]{constructor(_0x57356e,_0x2f1cf3,_0x4002e6,_0x582862,_0x5687a1,_0x3aea2b,_0x3d6dc9,_0x1c5dab,_0x52cf7d){const _0x2d57a0=_0x121fa1;super(),h(this,'_online',!0x1),h(this,'_init',!0x1),h(this,_0x2d57a0(0x276),new d['BehaviorSubject'](new Map())),h(this,_0x2d57a0(0x199),this[_0x2d57a0(0x276)][_0x2d57a0(0x35c)]()),h(this,_0x2d57a0(0x2f3),new d[(_0x2d57a0(0x368))]([])),h(this,_0x2d57a0(0x18f),this[_0x2d57a0(0x2f3)]['pipe'](d['debounceTime'](et))),h(this,_0x2d57a0(0x2f4),a[_0x2d57a0(0x142)](_0x3c6bd4=>{const _0x32d8bf=_0x2d57a0,_0x1fc01e={'eventID':m[_0x32d8bf(0x11b)][_0x32d8bf(0x2d1)],'data':{'unitID':this[_0x32d8bf(0x173)],'memberID':this['_session'][_0x32d8bf(0x37a)](),'selection':Pe(_0x3c6bd4)}};this[_0x32d8bf(0x2a6)][_0x32d8bf(0x2f5)](_0x1fc01e,this[_0x32d8bf(0x173)]);},tt)),(this[_0x2d57a0(0x173)]=_0x57356e,this[_0x2d57a0(0x2a6)]=_0x2f1cf3,this[_0x2d57a0(0x2e3)]=_0x4002e6,this[_0x2d57a0(0x377)]=_0x582862,this['_memberService']=_0x5687a1,this[_0x2d57a0(0x307)]=_0x3aea2b,this['_transformService']=_0x3d6dc9,this[_0x2d57a0(0x32e)]=_0x1c5dab,this[_0x2d57a0(0x35a)]=_0x52cf7d);}get[_0x121fa1(0x17e)](){const _0x4dd83a=_0x121fa1;return this[_0x4dd83a(0x276)]['getValue']();}get[_0x121fa1(0x237)](){const _0x3b0993=_0x121fa1;return this[_0x3b0993(0x2f3)][_0x3b0993(0x33f)]();}['dispose'](){const _0x1d7fae=_0x121fa1;super[_0x1d7fae(0x29c)](),this[_0x1d7fae(0x276)][_0x1d7fae(0x2fb)](new Map()),this['_cursorInfo$'][_0x1d7fae(0x12b)](),this[_0x1d7fae(0x2f3)][_0x1d7fae(0x2fb)]([]),this[_0x1d7fae(0x2f3)][_0x1d7fae(0x12b)]();}[_0x121fa1(0x326)](){const _0x2b168a=_0x121fa1;this[_0x2b168a(0x324)]||(this[_0x2b168a(0x324)]=!0x0,this[_0x2b168a(0x2a6)][_0x2b168a(0x336)][_0x2b168a(0x166)](d[_0x2b168a(0x26c)](this[_0x2b168a(0x347)]))[_0x2b168a(0x2c7)](_0x4169d0=>{const _0x2adcc1=_0x2b168a;_0x4169d0===u[_0x2adcc1(0x2b2)][_0x2adcc1(0x334)]?this[_0x2adcc1(0x36b)]():this[_0x2adcc1(0x2ee)]();}),this[_0x2b168a(0x2a6)]['event$'][_0x2b168a(0x166)](d[_0x2b168a(0x26c)](this['dispose$']))[_0x2b168a(0x2c7)](_0x4dc43d=>{const _0x1e934c=_0x2b168a,_0x57a4b9=_0x4dc43d[_0x1e934c(0x1af)];_0x57a4b9===m['CollaborationEvent'][_0x1e934c(0x2d1)]&&this[_0x1e934c(0x2a1)](_0x4dc43d),_0x57a4b9===m[_0x1e934c(0x11b)][_0x1e934c(0x31c)]&&this[_0x1e934c(0x14f)](_0x4dc43d);}),this[_0x2b168a(0x337)](this[_0x2b168a(0x35a)][_0x2b168a(0x2ac)](_0x41ef43=>{const _0x19b8ac=_0x2b168a,_0x49c9f6=_0x41ef43['params'];_0x49c9f6!=null&&this['_online']&&_0x41ef43['id']===W[_0x19b8ac(0x21a)]['id']&&_0x49c9f6['unitId']===this[_0x19b8ac(0x173)]&&_0x49c9f6[_0x19b8ac(0x2e4)]===!0x1&&_0x49c9f6[_0x19b8ac(0x34a)]['length']>0x0&&this[_0x19b8ac(0x2f4)](_0x49c9f6[_0x19b8ac(0x34a)]);})),this['_syncEditingCollabCursorService'][_0x2b168a(0x257)][_0x2b168a(0x166)](d[_0x2b168a(0x26c)](this[_0x2b168a(0x347)]))['subscribe'](_0x1dcdb8=>{const _0x3e9fd6=_0x2b168a;if((_0x1dcdb8==null?void 0x0:_0x1dcdb8['unitID'])!==this[_0x3e9fd6(0x173)])return;const _0x5c7793={'eventID':m[_0x3e9fd6(0x11b)]['UPDATE_CURSOR'],'data':_0x1dcdb8};this[_0x3e9fd6(0x2a1)](_0x5c7793);}),this['disposeWithMe'](this[_0x2b168a(0x35a)][_0x2b168a(0x2ac)](_0x4abcfc=>{const _0x5bdc58=_0x2b168a;if(_0x4abcfc[_0x5bdc58(0x398)]==null)return;const _0x3fda03=_0x4abcfc['params'];if(_0x4abcfc['id']!==W['RichTextEditingMutation']['id']||_0x3fda03[_0x5bdc58(0x39c)]!==this[_0x5bdc58(0x173)])return;const _0x120d48={'id':_0x5bdc58(0x2e9),'params':_0x3fda03},_0x45c0ed=this['cursorInfo'];for(const [_0x8c0937,_0x40a5ad]of _0x45c0ed){const _0x4b6d8c={'id':_0x5bdc58(0x2e9),'params':{'unitId':this[_0x5bdc58(0x173)],'actions':null,'textRanges':_0x40a5ad['ranges']}},_0x1d9ee3=this[_0x5bdc58(0x366)][_0x5bdc58(0x1cb)](_0x120d48,_0x4b6d8c,!0x1);if(m[_0x5bdc58(0x335)](_0x1d9ee3))throw _0x1d9ee3[_0x5bdc58(0x2cf)];_0x45c0ed['set'](_0x8c0937,{..._0x40a5ad,'ranges':_0x1d9ee3['m2Prime']['params'][_0x5bdc58(0x2a3)]});}queueMicrotask(()=>{const _0x5888dc=_0x5bdc58;this[_0x5888dc(0x276)][_0x5888dc(0x2fb)](_0x45c0ed);});})));}[_0x121fa1(0x2a1)](_0x47893a){const _0x368c6b=_0x121fa1;var _0x202312,_0x53871e;const {memberID:_0x44c6ea,selection:_0x304848}=_0x47893a['data'],_0x1eead6=Je(_0x304848),_0x5f26a3=(_0x53871e=(_0x202312=this['_memberService']['getMember'](this[_0x368c6b(0x173)],_0x44c6ea))==null?void 0x0:_0x202312[_0x368c6b(0x158)])!=null?_0x53871e:'Unknown\x20user',_0x58c5be={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x44c6ea),'name':_0x5f26a3,'ranges':_0x1eead6},_0x16ab48=this[_0x368c6b(0x17e)];_0x16ab48['set'](_0x44c6ea,_0x58c5be),this[_0x368c6b(0x276)]['next'](_0x16ab48);}['_onCursorDelete'](_0x5656d1){const _0x191818=_0x121fa1,{memberID:_0x216e43}=_0x5656d1[_0x191818(0x1e2)],_0x323bdf=this[_0x191818(0x17e)];_0x323bdf[_0x191818(0x278)](_0x216e43),this[_0x191818(0x276)]['next'](_0x323bdf);}['_toggleOnline'](){const _0x507d31=_0x121fa1;var _0x55f7c5;if(this[_0x507d31(0x1b4)]=!0x0,((_0x55f7c5=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x55f7c5[_0x507d31(0x2cd)]())!==this[_0x507d31(0x173)])return;const _0x246807=this[_0x507d31(0x2e3)][_0x507d31(0x192)](W[_0x507d31(0x2af)])[_0x507d31(0x145)]();Array[_0x507d31(0x1b0)](_0x246807)&&_0x246807['length']>0x0&&this['_updateLocalCursor'](_0x246807);}['_toggleOffline'](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0x121fa1(0x227)](a['Injector'])),L(0x3,a[_0x121fa1(0x227)](me)),L(0x4,a[_0x121fa1(0x227)](u[_0x121fa1(0x255)])),L(0x5,a[_0x121fa1(0x227)](Ce)),L(0x6,m[_0x121fa1(0x1a8)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x121fa1(0x256)])],fe);var st=Object[_0x121fa1(0x383)],it=(_0x2b94f5,_0x3cf184,_0x50b11e,_0x6a12d6)=>{const _0x2fa087=_0x121fa1;for(var _0x4fd2da=_0x6a12d6>0x1?void 0x0:_0x6a12d6?st(_0x3cf184,_0x50b11e):_0x3cf184,_0x3f8d1a=_0x2b94f5[_0x2fa087(0x363)]-0x1,_0x8b7474;_0x3f8d1a>=0x0;_0x3f8d1a--)(_0x8b7474=_0x2b94f5[_0x3f8d1a])&&(_0x4fd2da=_0x8b7474(_0x4fd2da)||_0x4fd2da);return _0x4fd2da;},A=(_0x23cede,_0x20ffd5)=>(_0x584a75,_0xb08a00)=>_0x20ffd5(_0x584a75,_0xb08a00,_0x23cede);const nt=0x12c,rt=0x64,ot=()=>{let _0x42722a=[],_0x44150f=!0x1;return _0x5e2820=>{const _0x56fa0e=_0x2681;_0x42722a[_0x56fa0e(0x342)](_0x5e2820),_0x44150f||(_0x44150f=!0x0,setTimeout(()=>{const _0x526db6=_0x56fa0e;_0x42722a[_0x526db6(0x397)](_0x5592b1=>_0x5592b1()),_0x42722a=[],_0x44150f=!0x1;}));};};let Se=class extends a[_0x121fa1(0x189)]{constructor(_0x3223a1,_0x511933,_0x337895,_0x3518f6,_0x533f38,_0x120f84,_0x4f59de,_0xf65ad5){const _0x5b76f5=_0x121fa1;super(),h(this,_0x5b76f5(0x1b4),!0x1),h(this,_0x5b76f5(0x324),!0x1),h(this,_0x5b76f5(0x276),new d[(_0x5b76f5(0x368))](new Map())),h(this,_0x5b76f5(0x199),this[_0x5b76f5(0x276)][_0x5b76f5(0x35c)]()),h(this,_0x5b76f5(0x2f3),new d[(_0x5b76f5(0x368))]([])),h(this,_0x5b76f5(0x18f),this[_0x5b76f5(0x2f3)][_0x5b76f5(0x166)](d[_0x5b76f5(0x262)](nt))),h(this,'_updateLocalCursor',a[_0x5b76f5(0x142)]((_0x15edf0,_0x238b63)=>{const _0x4cb77e=_0x5b76f5,_0x3188fa={'eventID':m[_0x4cb77e(0x11b)][_0x4cb77e(0x2d1)],'data':{'unitID':this[_0x4cb77e(0x173)],'memberID':this['_session']['getMemberID'](),'selection':Ee[_0x4cb77e(0x220)](_0x15edf0,_0x238b63[_0x4cb77e(0x234)])}};this[_0x4cb77e(0x2a6)][_0x4cb77e(0x2f5)](_0x3188fa,this['unitID']);},rt)),(this[_0x5b76f5(0x173)]=_0x3223a1,this[_0x5b76f5(0x2a6)]=_0x511933,this[_0x5b76f5(0x2e3)]=_0x337895,this[_0x5b76f5(0x377)]=_0x3518f6,this['_memberService']=_0x533f38,this[_0x5b76f5(0x32e)]=_0x120f84,this[_0x5b76f5(0x35a)]=_0x4f59de,this['_refRangeService']=_0xf65ad5);}get[_0x121fa1(0x17e)](){const _0x148d5c=_0x121fa1;return this[_0x148d5c(0x276)]['getValue']();}get[_0x121fa1(0x237)](){return this['_roomMembers$']['getValue']();}[_0x121fa1(0x29c)](){const _0x18c55d=_0x121fa1;super[_0x18c55d(0x29c)](),this[_0x18c55d(0x276)][_0x18c55d(0x2fb)](new Map()),this[_0x18c55d(0x276)]['complete'](),this['_roomMembers$'][_0x18c55d(0x2fb)]([]),this[_0x18c55d(0x2f3)][_0x18c55d(0x12b)]();}['init'](){const _0x506f96=_0x121fa1;this[_0x506f96(0x324)]||(this[_0x506f96(0x324)]=!0x0,this[_0x506f96(0x2a6)][_0x506f96(0x336)][_0x506f96(0x166)](d['takeUntil'](this[_0x506f96(0x347)]))['subscribe'](_0x51bf72=>{const _0x129838=_0x506f96;_0x51bf72===u[_0x129838(0x2b2)][_0x129838(0x334)]?this[_0x129838(0x36b)]():this[_0x129838(0x2ee)]();}),this[_0x506f96(0x2a6)][_0x506f96(0x323)][_0x506f96(0x166)](d[_0x506f96(0x26c)](this[_0x506f96(0x347)]))[_0x506f96(0x2c7)](_0x8b299=>{const _0x57c20a=_0x506f96,_0x175028=_0x8b299[_0x57c20a(0x1af)];_0x175028===m[_0x57c20a(0x11b)][_0x57c20a(0x2d1)]&&this['_onCursorUpdate'](_0x8b299),_0x175028===m[_0x57c20a(0x11b)][_0x57c20a(0x31c)]&&this[_0x57c20a(0x14f)](_0x8b299);}),this[_0x506f96(0x1fc)](),this['disposeWithMe'](this['_commandService'][_0x506f96(0x2ac)](_0xaefcd1=>{const _0xa75225=_0x506f96;if(this[_0xa75225(0x1b4)]&&_0xaefcd1['id']===g[_0xa75225(0x391)]['id']&&_0xaefcd1[_0xa75225(0x398)]['unitId']===this[_0xa75225(0x173)]){const _0x595962=_0xaefcd1[_0xa75225(0x398)];this['_updateLocalCursor'](_0x595962[_0xa75225(0x384)],_0x595962[_0xa75225(0x19f)][0x0]);}})));}[_0x121fa1(0x2a1)](_0x597bf3){const _0x12401b=_0x121fa1;var _0x505aa8,_0xf19013;const {memberID:_0x4d8476,selection:_0xe3673e}=_0x597bf3[_0x12401b(0x1e2)],{sheetName:_0xaa0a0e,range:_0x44fe50}=Ee['deserializeRangeWithSheet'](_0xe3673e),_0x18a568={'name':(_0xf19013=(_0x505aa8=this[_0x12401b(0x349)][_0x12401b(0x238)](this[_0x12401b(0x173)],_0x4d8476))==null?void 0x0:_0x505aa8[_0x12401b(0x158)])!=null?_0xf19013:_0x12401b(0x38f),'range':this['_getMergeRange'](_0xaa0a0e,_0x44fe50),'sheetID':_0xaa0a0e,'color':this[_0x12401b(0x377)][_0x12401b(0x1a9)](_0x4d8476),'selection':_0xe3673e},_0x3beae5=this[_0x12401b(0x17e)];_0x3beae5[_0x12401b(0x26d)](_0x4d8476,_0x18a568),this[_0x12401b(0x276)][_0x12401b(0x2fb)](_0x3beae5);}[_0x121fa1(0x14f)](_0x204fc4){const _0x186318=_0x121fa1,{memberID:_0xec3f6}=_0x204fc4['data'],_0x2cc457=this['cursorInfo'];_0x2cc457['delete'](_0xec3f6),this[_0x186318(0x276)][_0x186318(0x2fb)](_0x2cc457);}[_0x121fa1(0x2e8)](_0x5b8d1b,_0x1e08e8){const _0x33b235=_0x121fa1;var _0x586b99,_0x4bda52;const _0x406acf=(_0x4bda52=(_0x586b99=this[_0x33b235(0x32e)][_0x33b235(0x330)](this['unitID']))==null?void 0x0:_0x586b99[_0x33b235(0x13c)](_0x5b8d1b))==null?void 0x0:_0x4bda52[_0x33b235(0x14a)]();return(_0x406acf==null?void 0x0:_0x406acf[_0x33b235(0x27a)](_0x5e86f9=>a[_0x33b235(0x20a)][_0x33b235(0x196)](_0x5e86f9,_0x1e08e8)))||_0x1e08e8;}[_0x121fa1(0x1fc)](){const _0xe735cb=_0x121fa1,_0x4c3fab=new a[(_0xe735cb(0x34b))](),_0x53b62f=ot(),_0x355196=()=>{const _0xb93eb=_0xe735cb;_0x4c3fab['dispose']();const _0x2b21a4=(_0x779900,_0x170b4e,_0xda6746,_0x92b593)=>{const _0x30a857=_0x2681;let _0x893ceb=[];switch(_0x779900['id']){case g[_0x30a857(0x396)][_0x30a857(0x213)]:{_0x893ceb=g[_0x30a857(0x274)](_0x779900,_0x92b593);break;}case g['EffectRefRangId'][_0x30a857(0x290)]:{_0x893ceb=g['handleDeleteRangeMoveUp'](_0x779900,_0x92b593);break;}case g[_0x30a857(0x396)][_0x30a857(0x15c)]:{_0x893ceb=g[_0x30a857(0x370)](_0x779900,_0x92b593);break;}case g[_0x30a857(0x396)][_0x30a857(0x1d0)]:{_0x893ceb=g[_0x30a857(0x12e)](_0x779900,_0x92b593);break;}case g['EffectRefRangId'][_0x30a857(0x380)]:{_0x893ceb=g['handleInsertRangeMoveRight'](_0x779900,_0x92b593);break;}case g[_0x30a857(0x396)][_0x30a857(0x16e)]:{_0x893ceb=g[_0x30a857(0x14b)](_0x779900,_0x92b593);break;}case g[_0x30a857(0x396)][_0x30a857(0x15e)]:{_0x893ceb=g[_0x30a857(0x28c)](_0x779900,_0x92b593);break;}case g[_0x30a857(0x396)][_0x30a857(0x1a5)]:{_0x893ceb=g['handleIRemoveCol'](_0x779900,_0x92b593);break;}case g['EffectRefRangId']['RemoveRowCommandId']:{_0x893ceb=g[_0x30a857(0x167)](_0x779900,_0x92b593);break;}}const _0x251b3c=g[_0x30a857(0x19d)](_0x893ceb,_0x92b593),_0x2e449f=this['cursorInfo']['get'](_0x170b4e);if(_0x2e449f&&_0x251b3c){const _0x4361a2={..._0x2e449f,'range':_0x251b3c};this[_0x30a857(0x17e)][_0x30a857(0x26d)](_0x170b4e,_0x4361a2),_0x53b62f(()=>{const _0x263468=_0x30a857,_0x136b67=this[_0x263468(0x137)]['registerRefRange'](_0x251b3c,_0x235548=>(_0x136b67[_0x263468(0x29c)](),_0x2b21a4(_0x235548,_0x170b4e,_0xda6746,_0x251b3c)));_0x4c3fab[_0x263468(0x139)](_0x136b67);});}return{'redos':[],'undos':[]};};this[_0xb93eb(0x17e)][_0xb93eb(0x397)]((_0x571e2d,_0x1f22eb)=>{const _0x2029c6=_0xb93eb,{range:_0x55b480,sheetID:_0x4c0e6f}=_0x571e2d,_0x482b91=this[_0x2029c6(0x137)]['registerRefRange'](_0x55b480,_0x3f6da8=>(_0x482b91[_0x2029c6(0x29c)](),_0x2b21a4(_0x3f6da8,_0x1f22eb,_0x4c0e6f,_0x55b480)));_0x4c3fab[_0x2029c6(0x139)](_0x482b91);});};this['disposeWithMe'](a[_0xe735cb(0x340)](this[_0xe735cb(0x276)][_0xe735cb(0x2c7)](()=>{_0x355196();})));}[_0x121fa1(0x36b)](){const _0x4c67a8=_0x121fa1;var _0x931afa,_0x281ecb;if(this[_0x4c67a8(0x1b4)]=!0x0,((_0x931afa=this['_univerInstanceService'][_0x4c67a8(0x1b5)]())==null?void 0x0:_0x931afa[_0x4c67a8(0x2cd)]())!==this['unitID'])return;const _0xd90c9a=(_0x281ecb=this[_0x4c67a8(0x2e3)][_0x4c67a8(0x192)](g[_0x4c67a8(0x232)])[_0x4c67a8(0x206)]())==null?void 0x0:_0x281ecb[0x0],_0x471920=this['_univerInstanceService'][_0x4c67a8(0x293)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x4c67a8(0x22d)]();_0xd90c9a&&_0x471920&&this[_0x4c67a8(0x2f4)](_0x471920['getSheetId'](),_0xd90c9a);}[_0x121fa1(0x2ee)](){const _0x574b42=_0x121fa1;this[_0x574b42(0x1b4)]=!0x1;}};Se=it([A(0x2,a[_0x121fa1(0x227)](a[_0x121fa1(0x123)])),A(0x3,a[_0x121fa1(0x227)](me)),A(0x4,a[_0x121fa1(0x227)](u['MemberService'])),A(0x5,a[_0x121fa1(0x1a0)]),A(0x6,a[_0x121fa1(0x256)]),A(0x7,a['Inject'](g[_0x121fa1(0x1ba)]))],Se);var at=Object[_0x121fa1(0x383)],ct=(_0x5b67f5,_0x348aad,_0x1cecbb,_0x5b00e3)=>{const _0x53aa6c=_0x121fa1;for(var _0x125f10=_0x5b00e3>0x1?void 0x0:_0x5b00e3?at(_0x348aad,_0x1cecbb):_0x348aad,_0x5515e9=_0x5b67f5[_0x53aa6c(0x363)]-0x1,_0x7fc53e;_0x5515e9>=0x0;_0x5515e9--)(_0x7fc53e=_0x5b67f5[_0x5515e9])&&(_0x125f10=_0x7fc53e(_0x125f10)||_0x125f10);return _0x125f10;},ie=(_0x21e854,_0x3d0337)=>(_0x3f63ba,_0x37ba8c)=>_0x3d0337(_0x3f63ba,_0x37ba8c,_0x21e854);let x=class extends a[_0x121fa1(0x189)]{constructor(_0x2961,_0x1fb2ca,_0x35540d){const _0x485d28=_0x121fa1;super(),h(this,_0x485d28(0x14e),new Map()),h(this,'_entityInit$',new d[(_0x485d28(0x24b))]()),(this[_0x485d28(0x32e)]=_0x2961,this[_0x485d28(0x2e3)]=_0x1fb2ca,this['_collabSessionService']=_0x35540d,this[_0x485d28(0x324)]());}[_0x121fa1(0x29c)](){const _0x872981=_0x121fa1;super['dispose'](),this[_0x872981(0x2b9)][_0x872981(0x12b)](),this[_0x872981(0x14e)][_0x872981(0x397)](_0x5a3945=>_0x5a3945[_0x872981(0x29c)]());}['getCollabCursors$'](_0x345894){const _0x4e56fa=_0x121fa1;return this[_0x4e56fa(0x14e)][_0x4e56fa(0x295)](_0x345894)?this[_0x4e56fa(0x14e)]['get'](_0x345894)[_0x4e56fa(0x199)]:this[_0x4e56fa(0x2b9)]['pipe'](d[_0x4e56fa(0x36e)](_0x4b97ff=>_0x4b97ff['unitID']===_0x345894),d[_0x4e56fa(0x35e)](_0x319b19=>_0x319b19['cursorInfo$']));}['_init'](){const _0x36db14=_0x121fa1;this[_0x36db14(0x32e)][_0x36db14(0x134)](a[_0x36db14(0x1cf)][_0x36db14(0x2ce)])[_0x36db14(0x166)](d['takeUntil'](this[_0x36db14(0x347)]))[_0x36db14(0x2c7)](async _0x578964=>{const _0x57f35f=_0x36db14,_0x4cc6d5=_0x578964[_0x57f35f(0x2cd)](),_0x8c7ab6=await this[_0x57f35f(0x24a)](_0x4cc6d5);this[_0x57f35f(0x2b9)]['next'](_0x8c7ab6),this[_0x57f35f(0x14e)][_0x57f35f(0x26d)](_0x4cc6d5,_0x8c7ab6);}),this[_0x36db14(0x32e)]['getTypeOfUnitAdded$'](a[_0x36db14(0x1cf)][_0x36db14(0x1f9)])[_0x36db14(0x166)](d['takeUntil'](this[_0x36db14(0x347)]))[_0x36db14(0x166)](d[_0x36db14(0x36e)](_0x52b28c=>!_0x52b28c[_0x36db14(0x2cd)]()[_0x36db14(0x261)]('__')))[_0x36db14(0x2c7)](async _0x386081=>{const _0x5a3a30=_0x36db14,_0x509f25=_0x386081[_0x5a3a30(0x2cd)](),_0x39e6f8=await this[_0x5a3a30(0x129)](_0x509f25);this[_0x5a3a30(0x2b9)][_0x5a3a30(0x2fb)](_0x39e6f8),this[_0x5a3a30(0x14e)][_0x5a3a30(0x26d)](_0x509f25,_0x39e6f8);}),d['merge'](this[_0x36db14(0x32e)][_0x36db14(0x24d)](a[_0x36db14(0x1cf)][_0x36db14(0x1f9)]),this[_0x36db14(0x32e)][_0x36db14(0x24d)](a[_0x36db14(0x1cf)][_0x36db14(0x2ce)]))['pipe'](d[_0x36db14(0x26c)](this[_0x36db14(0x347)]))[_0x36db14(0x2c7)](_0x702eda=>{const _0x23f0c0=_0x36db14,_0x5ce548=_0x702eda[_0x23f0c0(0x2cd)](),_0x5129f5=this[_0x23f0c0(0x14e)]['get'](_0x5ce548);_0x5129f5&&(_0x5129f5[_0x23f0c0(0x29c)](),this[_0x23f0c0(0x14e)][_0x23f0c0(0x278)](_0x5ce548));});}async[_0x121fa1(0x24a)](_0x4a8876){const _0x420d58=_0x121fa1,_0xa22853=await this['_collabSessionService'][_0x420d58(0x185)](_0x4a8876),_0xd0263c=this['_injector'][_0x420d58(0x177)](Se,_0x4a8876,_0xa22853);return _0xd0263c['init'](),_0xd0263c;}async[_0x121fa1(0x129)](_0x406cd6){const _0x348a1e=_0x121fa1,_0x5bfb93=await this[_0x348a1e(0x2b8)][_0x348a1e(0x185)](_0x406cd6),_0x20067c=this['_injector'][_0x348a1e(0x177)](fe,_0x406cd6,_0x5bfb93);return _0x20067c[_0x348a1e(0x326)](),_0x20067c;}};x=ct([ie(0x0,a[_0x121fa1(0x1a0)]),ie(0x1,a['Inject'](a['Injector'])),ie(0x2,a[_0x121fa1(0x227)](u[_0x121fa1(0x2d3)]))],x);const q=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x494348,_0x9a8c22){const _0x39fbe9=_0x121fa1;let {radius:_0x245d62,width:_0xfee347,height:_0x552bb7}=_0x9a8c22;_0x245d62=_0x245d62!=null?_0x245d62:0x0,_0xfee347=_0xfee347!=null?_0xfee347:0x1e,_0x552bb7=_0x552bb7!=null?_0x552bb7:0x1e;let _0x50d9d4=0x0,_0x1756db=0x0,_0x40ec09=0x0;_0x50d9d4=_0x1756db=_0x40ec09=Math[_0x39fbe9(0x309)](_0x245d62,_0xfee347/0x2,_0x552bb7/0x2),_0x494348['beginPath'](),_0x494348[_0x39fbe9(0x2ba)](_0x50d9d4,0x0),_0x494348['lineTo'](_0xfee347-_0x1756db,0x0),_0x494348[_0x39fbe9(0x2f6)](_0xfee347-_0x1756db,_0x1756db,_0x1756db,Math['PI']*0x3/0x2,0x0,!0x1),_0x494348['lineTo'](_0xfee347,_0x552bb7-_0x40ec09),_0x494348[_0x39fbe9(0x2f6)](_0xfee347-_0x40ec09,_0x552bb7-_0x40ec09,_0x40ec09,0x0,Math['PI']/0x2,!0x1),_0x494348[_0x39fbe9(0x1ac)](0x0,_0x552bb7),_0x494348[_0x39fbe9(0x1ac)](0x0,_0x50d9d4),_0x494348['arc'](_0x50d9d4,_0x50d9d4,_0x50d9d4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x494348[_0x39fbe9(0x242)](),_0x9a8c22[_0x39fbe9(0x315)]&&(_0x494348[_0x39fbe9(0x15d)](),_0x494348['fillStyle']=_0x9a8c22[_0x39fbe9(0x315)],_0x9a8c22[_0x39fbe9(0x2c9)]===_0x39fbe9(0x348)?_0x494348['fill'](_0x39fbe9(0x348)):_0x494348[_0x39fbe9(0x315)](),_0x494348[_0x39fbe9(0x393)]());}class ee extends p[_0x121fa1(0x18d)]{constructor(_0x3ed634,_0x4453fb){const _0x5b47e7=_0x121fa1;super(_0x3ed634,_0x4453fb),h(this,_0x5b47e7(0x23c)),h(this,_0x5b47e7(0x2dc)),(this[_0x5b47e7(0x23c)]=_0x4453fb==null?void 0x0:_0x4453fb['color'],this[_0x5b47e7(0x2dc)]=_0x4453fb==null?void 0x0:_0x4453fb[_0x5b47e7(0x2dc)]);}static[_0x121fa1(0x26b)](_0x552716,_0x16433f){const _0x5160ff=_0x121fa1,{text:_0x1742ab,color:_0x27ec68}=_0x16433f;_0x552716[_0x5160ff(0x15d)](),_0x552716['font']=_0x5160ff(0x2e5);const _0x161d68=_0x552716['measureText'](_0x1742ab)[_0x5160ff(0x149)],_0x2744d5=Math[_0x5160ff(0x309)](_0x161d68+0x2*ne,Re);_t(_0x552716,{'height':q,'radius':0x4,'width':_0x2744d5,'fill':_0x27ec68}),_0x552716['fillStyle']=_0x5160ff(0x313);const _0x493150=ne,_0x456450=q-lt,_0xddac1f=Re-0x2*ne;if(_0x161d68>_0xddac1f){let _0x3ff662='',_0x179547=0x0;for(const _0x2384ba of _0x1742ab){const _0x5b6ec3=_0x552716[_0x5160ff(0x272)](_0x2384ba)[_0x5160ff(0x149)];if(_0x179547+_0x5b6ec3<=_0xddac1f-_0x552716[_0x5160ff(0x272)]('...')[_0x5160ff(0x149)])_0x3ff662+=_0x2384ba,_0x179547+=_0x5b6ec3;else{_0x3ff662+=_0x5160ff(0x118);break;}}_0x552716[_0x5160ff(0x1c0)](_0x3ff662,_0x493150,_0x456450);}else _0x552716[_0x5160ff(0x1c0)](_0x1742ab,_0x493150,_0x456450);_0x552716['restore']();}[_0x121fa1(0x122)](_0x1e03e1){const _0x36dab7=_0x121fa1;ee[_0x36dab7(0x26b)](_0x1e03e1,this);}}const re='collab-text-anchor-',ht=_0x121fa1(0x253),ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x121fa1(0x310);class De{constructor(_0x148df5,_0x458f13,_0x2389f6,_0x2c9b5b){const _0x5b05df=_0x121fa1;h(this,_0x5b05df(0x361),[]),h(this,_0x5b05df(0x131),null),h(this,_0x5b05df(0x289),null),h(this,_0x5b05df(0x1f8),null),h(this,_0x5b05df(0x394),null),h(this,_0x5b05df(0x222),null),(this[_0x5b05df(0x147)]=_0x148df5,this['_scene']=_0x458f13,this['_docSkeleton']=_0x2389f6,this['_document']=_0x2c9b5b,this[_0x5b05df(0x17c)]());}set[_0x121fa1(0x2b1)](_0x5ccf14){const _0x45204b=_0x121fa1;_0x5ccf14?(this[_0x45204b(0x1f8)]&&this[_0x45204b(0x1f8)][_0x45204b(0x1ae)](),this[_0x45204b(0x289)]&&this[_0x45204b(0x289)][_0x45204b(0x1a2)]()):(this[_0x45204b(0x1f8)]&&this[_0x45204b(0x1f8)][_0x45204b(0x1a2)](),this[_0x45204b(0x289)]&&this[_0x45204b(0x289)][_0x45204b(0x1ae)]());}['dispose'](){const _0x219060=_0x121fa1;for(const _0x51ffc4 of this[_0x219060(0x361)])_0x51ffc4[_0x219060(0x29c)]();this['_textBubble']&&this['_textBubble'][_0x219060(0x29c)](),this[_0x219060(0x1f8)]&&this[_0x219060(0x1f8)][_0x219060(0x29c)](),this[_0x219060(0x131)]&&this['_anchor']['dispose'](),this['_eventUnsubscribe']&&this[_0x219060(0x222)]();}[_0x121fa1(0x17c)](){const _0x568d21=_0x121fa1;var _0x403762;const {_docSkeleton:_0x19bc2b,_document:_0x1f8cb5}=this,{color:_0xdbd9c5,name:_0x38580b,ranges:_0x372c24}=this[_0x568d21(0x147)],_0x428561=_0x1f8cb5['getOffsetConfig'](),{docsLeft:_0x3be66b,docsTop:_0x1d3e2c}=_0x428561,_0x95a6ae=new b[(_0x568d21(0x187))](_0x428561,_0x19bc2b);for(const {startOffset:_0xba1d1f,endOffset:_0x551415,rangeType:_0x3fc17e,segmentId:_0x5501ca,segmentPage:_0xda5103,collapsed:_0xd64437,isActive:_0x485512}of _0x372c24){const _0x4e4ce9=_0x19bc2b[_0x568d21(0x279)](_0xba1d1f,!0x0,_0x5501ca,_0xda5103);let _0x5e6043=_0x19bc2b[_0x568d21(0x279)](_0x551415,!0x0,_0x5501ca,_0xda5103);if(_0x5e6043==null&&(_0x5e6043=_0x19bc2b[_0x568d21(0x279)](_0x551415-0x1,!0x1,_0x5501ca,_0xda5103)),_0x485512){const {contentBoxPointGroup:_0x3d65c0}=_0x95a6ae[_0x568d21(0x2f7)](_0x5e6043,_0x5e6043);if(_0x3d65c0[_0x568d21(0x363)]===0x0)continue;this[_0x568d21(0x354)](_0xdbd9c5,_0x3d65c0,_0x3be66b,_0x1d3e2c,_0x38580b),this[_0x568d21(0x222)]=this[_0x568d21(0x320)]();}if(_0x4e4ce9&&_0x5e6043){if(_0x3fc17e===a['DOC_RANGE_TYPE'][_0x568d21(0x188)]){const _0x987c=new b[(_0x568d21(0x34c))](_0x428561,_0x19bc2b),{pointGroup:_0x3b3bdc}=(_0x403762=_0x987c[_0x568d21(0x2f7)](_0x4e4ce9,_0x5e6043))!=null?_0x403762:{};if(_0x3b3bdc==null||_0x3b3bdc[_0x568d21(0x363)]===0x0)continue;this[_0x568d21(0x352)](_0xdbd9c5,_0x3b3bdc,_0x3be66b,_0x1d3e2c);}else{if(!_0xd64437){const {borderBoxPointGroup:_0xe34adf}=_0x95a6ae[_0x568d21(0x2f7)](_0x4e4ce9,_0x5e6043);if(_0xe34adf[_0x568d21(0x363)]===0x0)continue;this[_0x568d21(0x1d1)](_0xdbd9c5,_0xe34adf,_0x3be66b,_0x1d3e2c);}}}}}[_0x121fa1(0x354)](_0x5a44ec,_0x19258d,_0x3d6bce,_0x23b5a1,_0x4e5a8b){const _0x14cdc3=_0x121fa1,_0x3b6728=this[_0x14cdc3(0x124)](_0x19258d),{left:_0x57b28b,top:_0x366a8f,height:_0x3f33c5}=_0x3b6728,_0x140237=this['_getScale'](),_0x451825=ft/_0x140237,_0x23223d=new p[(_0x14cdc3(0x39d))](re+a[_0x14cdc3(0x2b3)][_0x14cdc3(0x211)](k),{'left':_0x57b28b+_0x3d6bce-_0x451825,'top':_0x366a8f+_0x23b5a1,'height':_0x3f33c5,'width':dt,'fill':_0x5a44ec||p[_0x14cdc3(0x1d6)](a[_0x14cdc3(0x125)][_0x14cdc3(0x1f2)],0x0),'strokeWidth':_0x451825,'stroke':St,'evented':!0x0});this[_0x14cdc3(0x131)]=_0x23223d,this[_0x14cdc3(0x27f)][_0x14cdc3(0x144)](_0x23223d,b['TEXT_RANGE_LAYER_INDEX']);const _0x294a0b=new p['Rect'](re+a[_0x14cdc3(0x2b3)]['generateRandomId'](k),{'left':_0x57b28b+_0x3d6bce-_0x451825,'top':_0x366a8f+_0x23b5a1-oe/0x2,'height':oe,'width':oe,'fill':_0x5a44ec||p['getColor'](a[_0x14cdc3(0x125)][_0x14cdc3(0x1f2)],0x0),'strokeWidth':0x0,'stroke':_0x5a44ec||p['getColor'](a[_0x14cdc3(0x125)][_0x14cdc3(0x1f2)],0x0),'evented':!0x1});this[_0x14cdc3(0x1f8)]=_0x294a0b,this['_scene']['addObject'](_0x294a0b,b[_0x14cdc3(0x395)]);const _0x4aba79=new ee(re+a[_0x14cdc3(0x2b3)][_0x14cdc3(0x211)](k),{'left':_0x57b28b+_0x3d6bce-_0x451825,'top':_0x366a8f+_0x23b5a1-q,'text':_0x4e5a8b,'color':_0x5a44ec});this['_textBubble']=_0x4aba79,this[_0x14cdc3(0x27f)][_0x14cdc3(0x144)](_0x4aba79,b[_0x14cdc3(0x395)]),this[_0x14cdc3(0x2b1)]=!0x1;}[_0x121fa1(0x320)](){const _0x34c898=_0x121fa1,_0x23c71b=this['_anchor'][_0x34c898(0x119)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x117390=this['_anchor'][_0x34c898(0x219)][_0x34c898(0x221)](()=>{const _0xb4c264=_0x34c898;this['_hideTimer']&&clearTimeout(this[_0xb4c264(0x394)]),this[_0xb4c264(0x394)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x9593e0=_0x34c898;_0x23c71b[_0x9593e0(0x202)](),_0x117390['unsubscribe']();};}[_0x121fa1(0x1d1)](_0x1fa44f,_0x4fd4af,_0x199b7e,_0x1c753d){const _0x188ac8=_0x121fa1,_0x2335d1=new a[(_0x188ac8(0x2c8))](_0x1fa44f)[_0x188ac8(0x30f)](0.2)['toRgbString'](),_0x183a5f=new p[(_0x188ac8(0x160))](ht+a[_0x188ac8(0x2b3)]['generateRandomId'](k),{'pointsGroup':_0x4fd4af,'fill':_0x2335d1||p[_0x188ac8(0x1d6)](a[_0x188ac8(0x125)][_0x188ac8(0x1f2)],0.2),'left':_0x199b7e,'top':_0x1c753d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x188ac8(0x361)][_0x188ac8(0x342)](_0x183a5f),this[_0x188ac8(0x27f)]['addObject'](_0x183a5f,b[_0x188ac8(0x395)]);}[_0x121fa1(0x352)](_0xe97d9e,_0x512ea8,_0x8bf125,_0x4fbe23){const _0x3f3d98=_0x121fa1,_0x117098=new a[(_0x3f3d98(0x2c8))](_0xe97d9e)[_0x3f3d98(0x30f)](0.2)[_0x3f3d98(0x16b)](),_0x180302=new p[(_0x3f3d98(0x160))](ut+a['Tools'][_0x3f3d98(0x211)](k),{'pointsGroup':_0x512ea8,'fill':_0x117098||p['getColor'](a[_0x3f3d98(0x125)]['black'],0.2),'left':_0x8bf125,'top':_0x4fbe23,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3f3d98(0x361)][_0x3f3d98(0x342)](_0x180302),this[_0x3f3d98(0x27f)]['addObject'](_0x180302,b['TEXT_RANGE_LAYER_INDEX']);}['_getAnchorBounding'](_0x2ffc99){const _0x470081=_0x2ffc99[0x0],_0x4532e9=_0x470081[0x0],_0x1acada=_0x470081[0x2],{x:_0x5e77ca,y:_0x4c03cf}=_0x4532e9,{x:_0xd8d16a,y:_0x2720ea}=_0x1acada;return{'left':_0x5e77ca,'top':_0x4c03cf,'width':_0xd8d16a-_0x5e77ca,'height':_0x2720ea-_0x4c03cf};}[_0x121fa1(0x25b)](){const _0x3331f2=_0x121fa1,{scaleX:_0x20c0bd,scaleY:_0x3a136f}=this[_0x3331f2(0x27f)][_0x3331f2(0x353)]();return Math[_0x3331f2(0x327)](_0x20c0bd,_0x3a136f);}}var It=Object[_0x121fa1(0x383)],vt=(_0x2eaf49,_0x3356f0,_0x2f2cec,_0x4426a2)=>{const _0x130e13=_0x121fa1;for(var _0x9ec7bd=_0x4426a2>0x1?void 0x0:_0x4426a2?It(_0x3356f0,_0x2f2cec):_0x3356f0,_0x5a2033=_0x2eaf49[_0x130e13(0x363)]-0x1,_0x5c7085;_0x5a2033>=0x0;_0x5a2033--)(_0x5c7085=_0x2eaf49[_0x5a2033])&&(_0x9ec7bd=_0x5c7085(_0x9ec7bd)||_0x9ec7bd);return _0x9ec7bd;},Y=(_0x922d0a,_0x4afcfa)=>(_0x3009d9,_0x28b87e)=>_0x4afcfa(_0x3009d9,_0x28b87e,_0x922d0a);let Ie=class extends a[_0x121fa1(0x189)]{constructor(_0x2afc39,_0x205290,_0x3be220,_0x387d89,_0x37be69){const _0x1bc61f=_0x121fa1;super(),h(this,'_cursorShapes',[]),h(this,_0x1bc61f(0x17f),[]),(this['_context']=_0x2afc39,this[_0x1bc61f(0x387)]=_0x205290,this[_0x1bc61f(0x157)]=_0x3be220,this[_0x1bc61f(0x35a)]=_0x387d89,this[_0x1bc61f(0x126)]=_0x37be69,this[_0x1bc61f(0x324)]());}[_0x121fa1(0x324)](){const _0x4a3987=_0x121fa1,_0x5283d6=this[_0x4a3987(0x205)]['unitId'],_0x4a4251=this['_docSkeletonManagerService'];this[_0x4a3987(0x337)](d[_0x4a3987(0x2aa)]([this[_0x4a3987(0x157)]['getCollabCursors$'](_0x5283d6),this[_0x4a3987(0x126)][_0x4a3987(0x308)]])[_0x4a3987(0x166)]($[_0x4a3987(0x287)](([_0x26ffd2,_0xfcf3a7])=>({'skeleton':_0x4a4251[_0x4a3987(0x1fe)](),'cursors':[..._0x26ffd2[_0x4a3987(0x200)]()][_0x4a3987(0x116)](_0x23bdc3=>({..._0x23bdc3,'color':_0xfcf3a7[_0x23bdc3[_0x4a3987(0x23c)]]}))})))[_0x4a3987(0x2c7)](_0x362872=>{const _0x8431f7=_0x4a3987;if(this[_0x8431f7(0x28a)](),_0x362872){const {skeleton:_0x1da665,cursors:_0x1a247b}=_0x362872;this[_0x8431f7(0x16f)](_0x1da665,_0x1a247b);}})),this[_0x4a3987(0x2d7)](),this[_0x4a3987(0x1ff)]();}[_0x121fa1(0x16f)](_0x4a90e5,_0x5f3e30){const _0x2b9824=_0x121fa1,{scene:_0x21b9fc,mainComponent:_0x5e2bf}=this[_0x2b9824(0x205)],_0x5e7101=_0x5f3e30[_0x2b9824(0x287)](_0x58ccb8=>new De(_0x58ccb8,_0x21b9fc,_0x4a90e5,_0x5e2bf));this[_0x2b9824(0x31b)]=_0x5e7101,this['_cursors']=_0x5f3e30;}[_0x121fa1(0x351)](){const _0x218a70=_0x121fa1;this['_removeCollabCursors']();const {scene:_0xe880ee,mainComponent:_0x541f74}=this[_0x218a70(0x205)],_0xabb331=this['_docSkeletonManagerService'][_0x218a70(0x1fe)](),_0x3f3a26=this['_cursors'][_0x218a70(0x287)](_0x588d07=>new De(_0x588d07,_0xe880ee,_0xabb331,_0x541f74));this['_cursorShapes']=_0x3f3a26;}[_0x121fa1(0x28a)](){const _0x250c3d=_0x121fa1;this['_cursorShapes'][_0x250c3d(0x397)](_0x484d87=>_0x484d87[_0x250c3d(0x29c)]()),this[_0x250c3d(0x31b)]=[];}[_0x121fa1(0x1ff)](){const _0x4880d2=_0x121fa1,_0x510faa=[b[_0x4880d2(0x294)]['id']];this[_0x4880d2(0x337)](this['_commandService']['onCommandExecuted'](_0x14e611=>{const _0x4fc05a=_0x4880d2;_0x510faa[_0x4fc05a(0x32d)](_0x14e611['id'])&&_0x14e611[_0x4fc05a(0x398)][_0x4fc05a(0x39c)]===this[_0x4fc05a(0x205)][_0x4fc05a(0x39c)]&&this[_0x4fc05a(0x351)]();}));}[_0x121fa1(0x2d7)](){const _0x256586=_0x121fa1;this[_0x256586(0x337)](a[_0x256586(0x376)](this['_context']['engine'][_0x256586(0x138)])['pipe']($[_0x256586(0x36e)](_0x254125=>_0x254125[_0x256586(0x31e)]===p[_0x256586(0x168)][_0x256586(0x302)]),$['throttleTime'](0x10))[_0x256586(0x2c7)](()=>{this['_refreshCollabCursors']();}));}};Ie=vt([Y(0x1,a[_0x121fa1(0x227)](W[_0x121fa1(0x300)])),Y(0x2,a['Inject'](x)),Y(0x3,a[_0x121fa1(0x256)]),Y(0x4,a[_0x121fa1(0x227)](a['ThemeService']))],Ie);const gt=0x1,mt=1.5;class we extends p[_0x121fa1(0x18d)]{constructor(_0xcb6905,_0x2eb1b8){const _0x211c3d=_0x121fa1;super(_0xcb6905,_0x2eb1b8),h(this,_0x211c3d(0x198)),h(this,_0x211c3d(0x2c4),!0x1),h(this,'_range'),h(this,_0x211c3d(0x2dd),''),h(this,_0x211c3d(0x1be),_0x211c3d(0x19c)),h(this,_0x211c3d(0x20d)),(_0x2eb1b8&&this[_0x211c3d(0x25c)](_0x2eb1b8),this[_0x211c3d(0x119)][_0x211c3d(0x221)](()=>this[_0x211c3d(0x25c)]({'hovered':!0x0})),this[_0x211c3d(0x219)]['subscribeEvent'](()=>this[_0x211c3d(0x25c)]({'hovered':!0x1})));}[_0x121fa1(0x25c)](_0x896375){const _0x3c55c8=_0x121fa1;var _0xa61271,_0x2e299c,_0x2646b9,_0x118ec5,_0x523a9a,_0x2ffc8e;this[_0x3c55c8(0x198)]=(_0xa61271=_0x896375[_0x3c55c8(0x23c)])!=null?_0xa61271:this['_color'],this['_hovered']=(_0x2e299c=_0x896375[_0x3c55c8(0x203)])!=null?_0x2e299c:this[_0x3c55c8(0x2c4)],this['_range']=(_0x2646b9=_0x896375['range'])!=null?_0x2646b9:this[_0x3c55c8(0x346)],this[_0x3c55c8(0x2dd)]=(_0x118ec5=_0x896375[_0x3c55c8(0x158)])!=null?_0x118ec5:this['_name'],this[_0x3c55c8(0x1be)]=(_0x523a9a=_0x896375[_0x3c55c8(0x1d7)])!=null?_0x523a9a:this[_0x3c55c8(0x1be)],this[_0x3c55c8(0x20d)]=(_0x2ffc8e=_0x896375['backgroundColor'])!=null?_0x2ffc8e:this[_0x3c55c8(0x20d)],this[_0x3c55c8(0x304)]({'width':_0x896375[_0x3c55c8(0x149)],'height':_0x896375[_0x3c55c8(0x1d9)]});}[_0x121fa1(0x18c)](_0x4002ae){const _0x1200a7=_0x121fa1,{row:_0xf50bb,column:_0x4b3291}=_0x4002ae;if(_0xf50bb>=this[_0x1200a7(0x346)][_0x1200a7(0x341)]&&_0xf50bb<=this[_0x1200a7(0x346)][_0x1200a7(0x378)]&&_0x4b3291>=this[_0x1200a7(0x346)][_0x1200a7(0x27e)]&&_0x4b3291<=this[_0x1200a7(0x346)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x121fa1(0x374)](_0x2b2e1d){return!0x1;}['_draw'](_0x4a9f0a){const _0x38e2ea=_0x121fa1;p[_0x38e2ea(0x39d)][_0x38e2ea(0x26b)](_0x4a9f0a,{'width':this[_0x38e2ea(0x149)],'height':this['height'],'strokeWidth':mt,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x38e2ea(0x20d)]}),this[_0x38e2ea(0x2c4)]&&(_0x4a9f0a[_0x38e2ea(0x15d)](),_0x4a9f0a[_0x38e2ea(0x2c2)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x38e2ea(0x267)?0x0:-0x14),ee[_0x38e2ea(0x26b)](_0x4a9f0a,{'text':this[_0x38e2ea(0x2dd)],'color':this['_color']}),_0x4a9f0a[_0x38e2ea(0x393)]());}}var Ct=Object[_0x121fa1(0x383)],pt=(_0xacca80,_0x1949f8,_0x491af2,_0x37b492)=>{const _0x207d57=_0x121fa1;for(var _0x3c067c=_0x37b492>0x1?void 0x0:_0x37b492?Ct(_0x1949f8,_0x491af2):_0x1949f8,_0x4faeb1=_0xacca80[_0x207d57(0x363)]-0x1,_0x483b07;_0x4faeb1>=0x0;_0x4faeb1--)(_0x483b07=_0xacca80[_0x4faeb1])&&(_0x3c067c=_0x483b07(_0x3c067c)||_0x3c067c);return _0x3c067c;},ae=(_0x422762,_0x4a7cd4)=>(_0x4b4f6,_0x14b7ba)=>_0x4a7cd4(_0x4b4f6,_0x14b7ba,_0x422762);const bt=0x1389;let ve=class extends a[_0x121fa1(0x189)]{constructor(_0x38c63d,_0x306536,_0x5b9cfb,_0x2eb156){const _0x2172de=_0x121fa1;super(),h(this,_0x2172de(0x17f),new Set()),h(this,_0x2172de(0x22e),null),(this[_0x2172de(0x205)]=_0x38c63d,this[_0x2172de(0x1c3)]=_0x306536,this[_0x2172de(0x157)]=_0x5b9cfb,this['_themeService']=_0x2eb156,this[_0x2172de(0x324)]());}[_0x121fa1(0x324)](){const _0x251e24=_0x121fa1;this[_0x251e24(0x1c3)][_0x251e24(0x33d)][_0x251e24(0x166)]($[_0x251e24(0x26c)](this[_0x251e24(0x347)]),$['switchMap'](_0x20f680=>{const _0x2bd22d=_0x251e24;if(_0x20f680){const _0x197d00=_0x20f680[_0x2bd22d(0x37b)];return d[_0x2bd22d(0x2aa)](this[_0x2bd22d(0x157)]['getCollabCursors$'](this[_0x2bd22d(0x205)][_0x2bd22d(0x39c)]),this[_0x2bd22d(0x126)]['currentTheme$'])[_0x2bd22d(0x166)]($[_0x2bd22d(0x287)](([_0x118957,_0x3af9c3])=>{const _0x4fcd45=_0x2bd22d,_0x353c18=new Map();return _0x118957[_0x4fcd45(0x397)]((_0x127190,_0x59c87f)=>{const _0x195c9f=_0x4fcd45;if(_0x127190[_0x195c9f(0x1b1)]===_0x197d00){const _0x4df97b={..._0x127190};_0x4df97b['color']=_0x3af9c3[_0x127190[_0x195c9f(0x23c)]],_0x353c18[_0x195c9f(0x26d)](_0x59c87f,_0x4df97b);}}),{'skeleton':_0x20f680,'cursors':_0x353c18};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x251e24(0x2c7)](({skeleton:_0x3340ad,cursors:_0x325334})=>{const _0x29b8bc=_0x251e24;this[_0x29b8bc(0x28a)](),_0x3340ad&&this[_0x29b8bc(0x16f)](_0x3340ad,_0x325334);}),this[_0x251e24(0x1c3)][_0x251e24(0x33d)]['subscribe'](_0x2d369a=>{const _0xfc047c=_0x251e24;if(_0x2d369a==null)return;const {skeleton:_0x4b064f}=_0x2d369a,{scene:_0x28589b}=this[_0xfc047c(0x205)];_0x28589b[_0xfc047c(0x312)][_0xfc047c(0x221)](a['debounce'](_0xdca75b=>{const _0x35bcae=_0xfc047c;var _0x4ddf70,_0x4a94ad;const {offsetX:_0x5cf0db,offsetY:_0x2adcd8}=_0xdca75b,{x:_0x1b2cd9,y:_0x3ab822}=_0x28589b['getRelativeToViewportCoord'](p['Vector2'][_0x35bcae(0x388)]([_0x5cf0db,_0x2adcd8])),{scaleX:_0x4f0ef8,scaleY:_0x134fa1}=_0x28589b['getAncestorScale'](),_0x3fa564=_0x28589b[_0x35bcae(0x254)](p[_0x35bcae(0x317)][_0x35bcae(0x207)]),_0x1b0e54=_0x28589b['getVpScrollXYInfoByPosToVp'](p[_0x35bcae(0x13a)][_0x35bcae(0x388)]([_0x1b2cd9,_0x3ab822]),_0x3fa564),_0x1fc64d=_0x4b064f[_0x35bcae(0x2fd)](_0x5cf0db,_0x2adcd8,_0x4f0ef8,_0x134fa1,_0x1b0e54);((_0x4ddf70=this[_0x35bcae(0x22e)])==null?void 0x0:_0x4ddf70[_0x35bcae(0x373)])===_0x1fc64d[_0x35bcae(0x373)]&&((_0x4a94ad=this[_0x35bcae(0x22e)])==null?void 0x0:_0x4a94ad[_0x35bcae(0x114)])===_0x1fc64d['row']||this['_cursors']['forEach'](_0x21f9b6=>{_0x21f9b6['onMouseMove'](_0x1fc64d);});},0x64));});}[_0x121fa1(0x16f)](_0x37a0eb,_0x579bd8){const _0x40fdf6=_0x121fa1;var _0x343403;const _0x46c606=(_0x343403=this[_0x40fdf6(0x1c3)][_0x40fdf6(0x217)]())==null?void 0x0:_0x343403[_0x40fdf6(0x1e9)];if(!_0x46c606)return;const _0x1bb18f=this[_0x40fdf6(0x332)]();if(!_0x1bb18f)return;this[_0x40fdf6(0x17f)]['forEach'](_0x4f9788=>{const _0x226ba7=_0x40fdf6;_0x4f9788[_0x226ba7(0x241)]();});const {scene:_0x5af4e0}=_0x1bb18f,_0x526366=Et(Array[_0x40fdf6(0x314)](_0x579bd8[_0x40fdf6(0x200)]()))[_0x40fdf6(0x287)](_0x5a3328=>{const _0x3af8ba=_0x40fdf6,{color:_0x1cfbad,range:_0x478cde,name:_0x29a552,selection:_0x1f8000,sheetID:_0x1d3645}=_0x5a3328,{startColumn:_0x3fb5a9,startRow:_0x5ab8c1,endColumn:_0x649745,endRow:_0x24b04e}=_0x478cde,_0x536dfd=X['getCoordByCell'](_0x5ab8c1,_0x3fb5a9,_0x5af4e0,_0x46c606),_0xad8c33=X[_0x3af8ba(0x23f)](_0x24b04e,_0x649745,_0x5af4e0,_0x46c606),{columnHeaderHeightAndMarginTop:_0x2372d2}=_0x46c606,{startX:_0x4a2679,startY:_0x1055b3}=_0x536dfd,{endX:_0xdb2d33,endY:_0x15ea84}=_0xad8c33,_0x3b105a=_0xdb2d33-_0x4a2679,_0x26a718=_0x15ea84-_0x1055b3,_0x1ec82b={'labelPosition':_0x1055b3-_0x2372d2>=q?_0x3af8ba(0x19c):_0x3af8ba(0x267),'sheetID':_0x1d3645,'range':_0x478cde,'color':_0x1cfbad,'name':_0x29a552,'selection':_0x1f8000,'left':_0x4a2679,'top':_0x1055b3,'width':_0x3b105a,'height':_0x26a718,'evented':!0x1,'zIndex':bt};return new we(_0x29a552,_0x1ec82b);});_0x5af4e0[_0x40fdf6(0x358)](_0x526366,gt),this[_0x40fdf6(0x17f)]=new Set(_0x526366);}[_0x121fa1(0x28a)](){const _0x10770f=_0x121fa1;var _0x203ca7;(_0x203ca7=this[_0x10770f(0x17f)])==null||_0x203ca7[_0x10770f(0x397)](_0x4fdbbe=>_0x4fdbbe[_0x10770f(0x29c)]());}[_0x121fa1(0x332)](){const _0x470dc3=_0x121fa1;return X[_0x470dc3(0x229)](this[_0x470dc3(0x205)][_0x470dc3(0x1b6)],this['_context']);}};ve=pt([ae(0x1,a[_0x121fa1(0x227)](X[_0x121fa1(0x133)])),ae(0x2,a[_0x121fa1(0x227)](x)),ae(0x3,a[_0x121fa1(0x227)](a['ThemeService']))],ve);function Et(_0x224617){const _0x4ed899=_0x121fa1,_0x11b737=new Map();return _0x224617['forEach'](_0x510d04=>{const _0x3f7074=_0x2681;if(_0x11b737[_0x3f7074(0x295)](_0x510d04[_0x3f7074(0x1fa)])){const _0x104d3c=_0x11b737['get'](_0x510d04[_0x3f7074(0x1fa)]);_0x104d3c[_0x3f7074(0x158)]+=',\x20'+_0x510d04[_0x3f7074(0x158)];}else _0x11b737['set'](_0x510d04[_0x3f7074(0x1fa)],_0x510d04);}),Array[_0x4ed899(0x314)](_0x11b737[_0x4ed899(0x200)]());}var E=function(){const _0x10a8d7=_0x121fa1;return E=Object[_0x10a8d7(0x2ea)]||function(_0x29caf0){const _0x205790=_0x10a8d7;for(var _0x1da26d,_0x2383b2=0x1,_0x417345=arguments[_0x205790(0x363)];_0x2383b2<_0x417345;_0x2383b2++){_0x1da26d=arguments[_0x2383b2];for(var _0x24a95f in _0x1da26d)Object[_0x205790(0x2a0)]['hasOwnProperty'][_0x205790(0x25e)](_0x1da26d,_0x24a95f)&&(_0x29caf0[_0x24a95f]=_0x1da26d[_0x24a95f]);}return _0x29caf0;},E[_0x10a8d7(0x194)](this,arguments);},Tt=function(_0x16bc8f,_0x39c5c9){const _0x2d8202=_0x121fa1;var _0x177ace={};for(var _0xfa436b in _0x16bc8f)Object['prototype'][_0x2d8202(0x270)][_0x2d8202(0x25e)](_0x16bc8f,_0xfa436b)&&_0x39c5c9[_0x2d8202(0x115)](_0xfa436b)<0x0&&(_0x177ace[_0xfa436b]=_0x16bc8f[_0xfa436b]);if(_0x16bc8f!=null&&typeof Object['getOwnPropertySymbols']==_0x2d8202(0x2eb)){for(var _0x38a98b=0x0,_0xfa436b=Object[_0x2d8202(0x269)](_0x16bc8f);_0x38a98b<_0xfa436b[_0x2d8202(0x363)];_0x38a98b++)_0x39c5c9['indexOf'](_0xfa436b[_0x38a98b])<0x0&&Object[_0x2d8202(0x2a0)][_0x2d8202(0x379)][_0x2d8202(0x25e)](_0x16bc8f,_0xfa436b[_0x38a98b])&&(_0x177ace[_0xfa436b[_0x38a98b]]=_0x16bc8f[_0xfa436b[_0x38a98b]]);}return _0x177ace;},pe=M['forwardRef'](function(_0x9f4f40,_0x497c00){const _0x266420=_0x121fa1;var _0x2bcf59=_0x9f4f40[_0x266420(0x2a9)],_0x2f2ca8=_0x9f4f40['id'],_0x348dfa=_0x9f4f40['className'],_0x570470=_0x9f4f40[_0x266420(0x2cb)],_0x11d645=Tt(_0x9f4f40,['icon','id',_0x266420(0x231),_0x266420(0x2cb)]),_0x29f785=_0x266420(0x10e)['concat'](_0x2f2ca8,'\x20')[_0x266420(0x11d)](_0x348dfa||'')[_0x266420(0x10c)](),_0x565611=M[_0x266420(0x2c1)]('_'[_0x266420(0x11d)](Dt()));return Ae(_0x2bcf59,''['concat'](_0x2f2ca8),{'defIds':_0x2bcf59[_0x266420(0x29a)],'idSuffix':_0x565611[_0x266420(0x15f)]},E({'ref':_0x497c00,'className':_0x29f785},_0x11d645),_0x570470);});function Ae(_0x304133,_0x3bb3de,_0x4de193,_0x1ead42,_0x11f247){const _0x744e92=_0x121fa1;return M[_0x744e92(0x2d8)](_0x304133[_0x744e92(0x197)],E(E({'key':_0x3bb3de},Ot(_0x304133,_0x4de193,_0x11f247)),_0x1ead42),(Rt(_0x304133,_0x4de193)[_0x744e92(0x1f5)]||[])['map'](function(_0x5cbe2f,_0x5819ca){const _0x4bbcbd=_0x744e92;return Ae(_0x5cbe2f,''[_0x4bbcbd(0x11d)](_0x3bb3de,'-')[_0x4bbcbd(0x11d)](_0x304133[_0x4bbcbd(0x197)],'-')[_0x4bbcbd(0x11d)](_0x5819ca),_0x4de193,void 0x0,_0x11f247);}));}function Ot(_0x4c26bb,_0x47e4a2,_0x5ea1dc){const _0x38b47b=_0x121fa1;var _0x4c904f=E({},_0x4c26bb[_0x38b47b(0x1f6)]);_0x5ea1dc!=null&&_0x5ea1dc[_0x38b47b(0x208)]&&_0x4c904f['fill']===_0x38b47b(0x208)&&(_0x4c904f[_0x38b47b(0x315)]=_0x5ea1dc[_0x38b47b(0x208)]),_0x4c26bb[_0x38b47b(0x197)]===_0x38b47b(0x22c)&&_0x4c904f['id']&&(_0x4c904f['id']=_0x4c904f['id']+_0x47e4a2['idSuffix']),Object[_0x38b47b(0x181)](_0x4c904f)[_0x38b47b(0x397)](function(_0x1382df){const _0x54b7a0=_0x38b47b;var _0xa07fe6=_0x1382df[0x0],_0x4f4e6a=_0x1382df[0x1];_0xa07fe6==='mask'&&typeof _0x4f4e6a==_0x54b7a0(0x18b)&&(_0x4c904f[_0xa07fe6]=_0x4f4e6a[_0x54b7a0(0x2ca)](/url\(#(.*)\)/,_0x54b7a0(0x1ec)[_0x54b7a0(0x11d)](_0x47e4a2['idSuffix'],')')));});var _0x3d5d9a=_0x47e4a2[_0x38b47b(0x29a)];return!_0x3d5d9a||_0x3d5d9a[_0x38b47b(0x363)]===0x0||(_0x4c26bb['tag']===_0x38b47b(0x26f)&&_0x4c904f[_0x38b47b(0x12d)]&&(_0x4c904f['xlink:href']=_0x4c904f['xlink:href']+_0x47e4a2[_0x38b47b(0x30e)]),Object[_0x38b47b(0x181)](_0x4c904f)[_0x38b47b(0x397)](function(_0x1f72a2){const _0x28cf58=_0x38b47b;var _0x4d0207=_0x1f72a2[0x0],_0x382664=_0x1f72a2[0x1];typeof _0x382664==_0x28cf58(0x18b)&&(_0x4c904f[_0x4d0207]=_0x382664[_0x28cf58(0x2ca)](/url\(#(.*)\)/,'url(#$1'[_0x28cf58(0x11d)](_0x47e4a2[_0x28cf58(0x30e)],')')));})),_0x4c904f;}function Rt(_0x51f89c,_0x1dfc66){const _0x286239=_0x121fa1;var _0x367846,_0x1c4c8e=_0x1dfc66[_0x286239(0x29a)];return!_0x1c4c8e||_0x1c4c8e['length']===0x0?_0x51f89c:_0x51f89c['tag']==='defs'&&(!((_0x367846=_0x51f89c[_0x286239(0x1f5)])===null||_0x367846===void 0x0)&&_0x367846['length'])?E(E({},_0x51f89c),{'children':_0x51f89c[_0x286239(0x1f5)][_0x286239(0x287)](function(_0x504dce){const _0x16b606=_0x286239;return typeof _0x504dce[_0x16b606(0x1f6)]['id']=='string'&&_0x1c4c8e&&_0x1c4c8e[_0x16b606(0x115)](_0x504dce['attrs']['id'])>-0x1?E(E({},_0x504dce),{'attrs':E(E({},_0x504dce[_0x16b606(0x1f6)]),{'id':_0x504dce[_0x16b606(0x1f6)]['id']+_0x1dfc66[_0x16b606(0x30e)]})}):_0x504dce;})}):_0x51f89c;}function Dt(){const _0x5a5b00=_0x121fa1;return Math[_0x5a5b00(0x1dd)]()[_0x5a5b00(0x2a2)](0x24)['substring'](0x2,0x8);}pe[_0x121fa1(0x23d)]='UniverIcon';var Ut={'tag':'svg','attrs':{'fill':_0x121fa1(0x2b5),'viewBox':_0x121fa1(0x345),'width':_0x121fa1(0x171),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x121fa1(0x385),'attrs':{'stroke':_0x121fa1(0x11f),'d':_0x121fa1(0x212),'strokeLinecap':'round','strokeLinejoin':_0x121fa1(0x127),'strokeWidth':1.2}}]},{'tag':_0x121fa1(0x130),'attrs':{},'children':[{'tag':_0x121fa1(0x372),'attrs':{'id':_0x121fa1(0x2b0)},'children':[{'tag':_0x121fa1(0x385),'attrs':{'fill':_0x121fa1(0x28e),'d':_0x121fa1(0x1a3)}}]}]}],'defIds':[_0x121fa1(0x2b0)]},ye=M[_0x121fa1(0x291)](function(_0x56d2c3,_0x37d7b8){const _0x41e861=_0x121fa1;return M[_0x41e861(0x2d8)](pe,Object['assign']({},_0x56d2c3,{'id':_0x41e861(0x11c),'ref':_0x37d7b8,'icon':Ut}));});ye[_0x121fa1(0x23d)]=_0x121fa1(0x218);var Nt={'tag':_0x121fa1(0x16d),'attrs':{'fill':_0x121fa1(0x2b5),'viewBox':'0\x200\x2017\x2016','width':'1em','height':_0x121fa1(0x171)},'children':[{'tag':'g','attrs':{'clipPath':_0x121fa1(0x14c)},'children':[{'tag':_0x121fa1(0x385),'attrs':{'stroke':_0x121fa1(0x11f),'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':_0x121fa1(0x127),'strokeLinejoin':_0x121fa1(0x127),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x121fa1(0x372),'attrs':{'id':_0x121fa1(0x141)},'children':[{'tag':'path','attrs':{'fill':_0x121fa1(0x28e),'d':_0x121fa1(0x1a3),'transform':_0x121fa1(0x2e0)}}]}]}],'defIds':['on-line-single_clip0_910_349']},$e=M[_0x121fa1(0x291)](function(_0x3a62bc,_0x25f125){const _0x1c0157=_0x121fa1;return M[_0x1c0157(0x2d8)](pe,Object[_0x1c0157(0x2ea)]({},_0x3a62bc,{'id':_0x1c0157(0x1ab),'ref':_0x25f125,'icon':Nt}));});$e[_0x121fa1(0x23d)]=_0x121fa1(0x190);function Mt(_0x3f1a9b){const _0x5304cf=_0x121fa1;switch(_0x3f1a9b){case u[_0x5304cf(0x359)]['OFFLINE']:return _0x5304cf(0x20b);case u['CollaborationStatus'][_0x5304cf(0x11e)]:return _0x5304cf(0x36d);case u['CollaborationStatus'][_0x5304cf(0x2d2)]:return _0x5304cf(0x2d4);case u[_0x5304cf(0x359)][_0x5304cf(0x113)]:return'collabStatus.notCollab';case u[_0x5304cf(0x359)][_0x5304cf(0x2e2)]:case u['CollaborationStatus']['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case u[_0x5304cf(0x359)]['SYNCED']:case u[_0x5304cf(0x359)][_0x5304cf(0x2d0)]:return _0x5304cf(0x2c6);}}function xe(_0x2ae7c5){const _0x4f0cb1=_0x121fa1,{status$:_0x3606f8}=_0x2ae7c5,_0x3ef7ef=T['useObservable'](_0x3606f8,u['CollaborationStatus'][_0x4f0cb1(0x113)]),_0x141977=T['useDependency'](a[_0x4f0cb1(0x28f)]),_0x104d74=T[_0x4f0cb1(0x22a)](u[_0x4f0cb1(0x2d3)]),_0x26bb4e=_0x3ef7ef!==u['CollaborationStatus'][_0x4f0cb1(0x1e3)],_0x35bbb7=_0x141977['t'](Mt(_0x3ef7ef)),_0xdb0e41=_0x26bb4e?P[_0x4f0cb1(0x228)]($e,{}):P['jsx'](ye,{}),_0x4fd62f=M[_0x4f0cb1(0x1cd)](()=>{_0x26bb4e||_0x104d74['reconnect']();},[_0x26bb4e,_0x104d74]);function _0xe2ab99(){const _0x19974a=_0x4f0cb1;return P[_0x19974a(0x264)](_0x19974a(0x23e),{'className':_0x19974a(0x2b6),'onClick':_0x4fd62f,'children':[P[_0x19974a(0x228)]('div',{'className':D[_0x19974a(0x38b)](_0x19974a(0x1db),_0x26bb4e?'univer-text-green-500':_0x19974a(0x311)),'children':_0xdb0e41}),P[_0x19974a(0x228)](_0x19974a(0x23e),{'className':_0x19974a(0x153),'children':_0x35bbb7})]});}return _0x26bb4e?_0xe2ab99():P[_0x4f0cb1(0x228)](D[_0x4f0cb1(0x369)],{'title':_0x141977['t'](_0x4f0cb1(0x2df)),'children':_0xe2ab99()});}var Lt=Object[_0x121fa1(0x383)],Pt=(_0x177ed6,_0x2fda10,_0x51ffdf,_0x187a9c)=>{for(var _0x4c32f9=_0x187a9c>0x1?void 0x0:_0x187a9c?Lt(_0x2fda10,_0x51ffdf):_0x2fda10,_0x4ecbe2=_0x177ed6['length']-0x1,_0x56b20a;_0x4ecbe2>=0x0;_0x4ecbe2--)(_0x56b20a=_0x177ed6[_0x4ecbe2])&&(_0x4c32f9=_0x56b20a(_0x4c32f9)||_0x4c32f9);return _0x4c32f9;},V=(_0x3c41f6,_0x3259d7)=>(_0x147c10,_0x267546)=>_0x3259d7(_0x147c10,_0x267546,_0x3c41f6);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x121fa1(0x28d)]{constructor(_0x5046f4,_0x4f6e9f,_0x5decc3,_0x205171){const _0x2bde27=_0x121fa1;super(),h(this,_0x2bde27(0x1c8),new d['BehaviorSubject'](u[_0x2bde27(0x359)][_0x2bde27(0x113)])),(this[_0x2bde27(0x32e)]=_0x5046f4,this[_0x2bde27(0x2e3)]=_0x4f6e9f,this[_0x2bde27(0x1bd)]=_0x5decc3,this[_0x2bde27(0x175)]=_0x205171,this[_0x2bde27(0x245)](),this[_0x2bde27(0x1ea)]());}[_0x121fa1(0x1ea)](){const _0x2e9171=_0x121fa1;this[_0x2e9171(0x337)](this[_0x2e9171(0x32e)][_0x2e9171(0x25f)][_0x2e9171(0x166)](d[_0x2e9171(0x35e)](()=>{const _0x20dbb6=_0x2e9171,_0x28f952=this['_univerInstanceService'][_0x20dbb6(0x1b5)]();return _0x28f952?this[_0x20dbb6(0x1bd)][_0x20dbb6(0x38d)](_0x28f952['getUnitId']()):d['of'](null);}),d[_0x2e9171(0x35e)](_0x37eb91=>_0x37eb91?_0x37eb91[_0x2e9171(0x37d)]:d['of'](u[_0x2e9171(0x359)]['NOT_COLLAB'])))[_0x2e9171(0x2c7)](_0x49a8f5=>{const _0x265195=_0x2e9171;this['_status$'][_0x265195(0x2fb)](_0x49a8f5);}));}['_initStatusComponent'](){const _0x10c848=_0x121fa1;this[_0x10c848(0x337)](this['_uiPartsService'][_0x10c848(0x186)](T['BuiltInUIPart'][_0x10c848(0x322)],()=>T['connectInjector'](wt({'status$':this[_0x10c848(0x1c8)][_0x10c848(0x35c)]()}),this[_0x10c848(0x2e3)])));}},exports[_0x121fa1(0x285)]=Pt([V(0x0,a[_0x121fa1(0x1a0)]),V(0x1,a[_0x121fa1(0x227)](a[_0x121fa1(0x123)])),V(0x2,a[_0x121fa1(0x227)](u['CollaborationController'])),V(0x3,T[_0x121fa1(0x225)])],exports[_0x121fa1(0x285)]);function wt(_0x17e508){const {status$:_0x164e1c}=_0x17e508;return function(){const _0xb9b442=_0x2681;return P[_0xb9b442(0x228)](xe,{'status$':_0x164e1c});};}var At=Object[_0x121fa1(0x383)],yt=(_0x1538d7,_0x713473,_0x3c73d5,_0x172ee7)=>{const _0x4cd002=_0x121fa1;for(var _0x56a8ce=_0x172ee7>0x1?void 0x0:_0x172ee7?At(_0x713473,_0x3c73d5):_0x713473,_0xdb4f57=_0x1538d7[_0x4cd002(0x363)]-0x1,_0x14f955;_0xdb4f57>=0x0;_0xdb4f57--)(_0x14f955=_0x1538d7[_0xdb4f57])&&(_0x56a8ce=_0x14f955(_0x56a8ce)||_0x56a8ce);return _0x56a8ce;},y=(_0x558386,_0x4bdf57)=>(_0x51d0ef,_0x5d4a94)=>_0x4bdf57(_0x51d0ef,_0x5d4a94,_0x558386);let K=class extends a['Disposable']{constructor(_0x4d62bc,_0x4c4138,_0x2a0abc,_0x403911,_0x3c25d7,_0x3d6bb3){const _0x144ba3=_0x121fa1;super(),this[_0x144ba3(0x2cc)]=_0x4d62bc,this[_0x144ba3(0x1b9)]=_0x4c4138,this[_0x144ba3(0x1cc)]=_0x2a0abc,this['_messageService']=_0x403911,this[_0x144ba3(0x33b)]=_0x3c25d7,this[_0x144ba3(0x365)]=_0x3d6bb3,this[_0x144ba3(0x292)](),this['_initEvent']();}[_0x121fa1(0x292)](){const _0x4ffb2e=_0x121fa1;this[_0x4ffb2e(0x337)](this['_beforeCloseService'][_0x4ffb2e(0x36f)](()=>{const _0x513278=_0x4ffb2e;if(this[_0x513278(0x1b9)][_0x513278(0x2bd)]['size'])return this['_localeService']['t'](_0x513278(0x260));}));}[_0x121fa1(0x2ad)](){const _0x372887=_0x121fa1;this[_0x372887(0x337)](this['_collaborationUIEventService'][_0x372887(0x323)][_0x372887(0x2c7)](_0x1b7535=>{const _0x581366=_0x372887;_0x1b7535['id']===u[_0x581366(0x180)][_0x581366(0x1e8)]&&this[_0x581366(0x193)][_0x581366(0x1a2)]({'type':D[_0x581366(0x2bb)]['Warning'],'content':this[_0x581366(0x365)]['t'](_0x581366(0x33e))}),_0x1b7535['id']===u['CollaborationUIEventId'][_0x581366(0x371)]&&this[_0x581366(0x193)]['show']({'type':D[_0x581366(0x2bb)]['Warning'],'content':this[_0x581366(0x365)]['t']('collaboration.closeRoom')}),_0x1b7535['id']===u[_0x581366(0x180)][_0x581366(0x162)]&&this[_0x581366(0x33b)][_0x581366(0x1a2)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x581366(0x365)]['t'](_0x581366(0x10f)),'type':_0x581366(0x2cf),'duration':0x0}),_0x1b7535['id']===u[_0x581366(0x180)]['CONFLICT']&&this[_0x581366(0x193)]['show']({'type':D['MessageType'][_0x581366(0x22f)],'content':this[_0x581366(0x365)]['t'](_0x581366(0x34f))+'('+_0x1b7535['data']+')'}),_0x1b7535['id']===u[_0x581366(0x180)][_0x581366(0x1c2)]&&this[_0x581366(0x193)][_0x581366(0x1a2)]({'type':D[_0x581366(0x2bb)][_0x581366(0x355)],'content':this[_0x581366(0x365)]['t'](_0x1b7535[_0x581366(0x1e2)]||'')}),_0x1b7535['id']===u['CollaborationUIEventId'][_0x581366(0x110)]&&this[_0x581366(0x193)][_0x581366(0x1a2)]({'type':D[_0x581366(0x2bb)][_0x581366(0x355)],'content':this[_0x581366(0x365)]['t']('session.will-retry')}),_0x1b7535['id']===u['CollaborationUIEventId'][_0x581366(0x27b)]&&this[_0x581366(0x193)][_0x581366(0x1a2)]({'type':D[_0x581366(0x2bb)][_0x581366(0x22f)],'content':this[_0x581366(0x365)]['t'](_0x581366(0x179))}),_0x1b7535['id']===u[_0x581366(0x180)][_0x581366(0x20e)]&&this[_0x581366(0x193)][_0x581366(0x1a2)]({'type':D['MessageType'][_0x581366(0x22f)],'content':this['_localeService']['t'](_0x581366(0x1f7))});}));}};K=yt([y(0x0,T[_0x121fa1(0x252)]),y(0x1,u[_0x121fa1(0x183)]),y(0x2,a['Inject'](u[_0x121fa1(0x271)])),y(0x3,T[_0x121fa1(0x233)]),y(0x4,T[_0x121fa1(0x1df)]),y(0x5,a[_0x121fa1(0x227)](a['LocaleService']))],K);const $t=_0x121fa1(0x12f),Ue={},be=a[_0x121fa1(0x140)](_0x121fa1(0x38e));var xt=Object[_0x121fa1(0x383)],jt=(_0x3b5865,_0x35ff65,_0x36343e,_0x44b4fd)=>{const _0x123c44=_0x121fa1;for(var _0x2c90ca=_0x44b4fd>0x1?void 0x0:_0x44b4fd?xt(_0x35ff65,_0x36343e):_0x35ff65,_0x5da1da=_0x3b5865[_0x123c44(0x363)]-0x1,_0x38a490;_0x5da1da>=0x0;_0x5da1da--)(_0x38a490=_0x3b5865[_0x5da1da])&&(_0x2c90ca=_0x38a490(_0x2c90ca)||_0x2c90ca);return _0x2c90ca;},H=(_0x5239ef,_0x4d9dbe)=>(_0x4ccdc7,_0x49ec4b)=>_0x4d9dbe(_0x4ccdc7,_0x49ec4b,_0x5239ef);exports[_0x121fa1(0x2bf)]=class extends a[_0x121fa1(0x189)]{constructor(_0x362675,_0x1c9c00,_0x5994fd,_0x29fba1,_0x51832e){const _0x531127=_0x121fa1;super(),this[_0x531127(0x350)]=_0x362675,this[_0x531127(0x2ab)]=_0x1c9c00,this[_0x531127(0x35a)]=_0x5994fd,this[_0x531127(0x1b8)]=_0x29fba1,_0x51832e?_0x51832e==null||_0x51832e[_0x531127(0x321)]()[_0x531127(0x1bf)](()=>this[_0x531127(0x324)]()):(this[_0x531127(0x2ab)][_0x531127(0x37e)](_0x531127(0x117),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x531127(0x324)]());}async[_0x121fa1(0x324)](){const _0x45dfca=_0x121fa1,_0x157dd7=this['_urlService'][_0x45dfca(0x22b)](_0x45dfca(0x1b6)),_0x3f0636=this[_0x45dfca(0x350)][_0x45dfca(0x22b)](_0x45dfca(0x31e)),_0xbf07c7=this[_0x45dfca(0x350)][_0x45dfca(0x22b)](_0x45dfca(0x120));if(!_0x157dd7||!_0x3f0636){this['_logService'][_0x45dfca(0x37e)]('[CollaborationDataLoaderController]',_0x45dfca(0x36c));return;}const _0x29c65f=await this[_0x45dfca(0x1b8)][_0x45dfca(0x1c5)](_0x157dd7,Number(_0x3f0636),_0xbf07c7);_0x29c65f&&_0x29c65f instanceof a[_0x45dfca(0x209)]&&this[_0x45dfca(0x386)](_0x29c65f);}async[_0x121fa1(0x386)](_0x2c507d){const _0x3ad5c6=_0x121fa1;await this[_0x3ad5c6(0x19a)](_0x2c507d),_0x2c507d[_0x3ad5c6(0x39a)][_0x3ad5c6(0x166)](d['takeUntil'](this['dispose$']))[_0x3ad5c6(0x2c7)](_0xd4545d=>{const _0x2663bf=_0x3ad5c6;_0xd4545d&&this[_0x2663bf(0x1de)](_0xd4545d);}),this[_0x3ad5c6(0x350)][_0x3ad5c6(0x27d)]['pipe'](d[_0x3ad5c6(0x26c)](this[_0x3ad5c6(0x347)]))[_0x3ad5c6(0x2c7)](()=>this[_0x3ad5c6(0x19a)](_0x2c507d));}[_0x121fa1(0x1de)](_0x5ba616,_0xfe3dc1=!0x1){const _0x1d24ef=_0x121fa1,_0x573c58=this[_0x1d24ef(0x350)][_0x1d24ef(0x22b)](_0x1d24ef(0x120));_0x5ba616[_0x1d24ef(0x191)]()!==_0x573c58&&this[_0x1d24ef(0x350)][_0x1d24ef(0x184)](_0x1d24ef(0x120),_0x5ba616[_0x1d24ef(0x191)](),_0xfe3dc1);}async[_0x121fa1(0x19a)](_0x2f4b16){const _0x489ae9=_0x121fa1;var _0x10014b;const _0xc29add=this[_0x489ae9(0x350)]['getParam'](_0x489ae9(0x120));if(!_0xc29add||!_0x2f4b16[_0x489ae9(0x13c)](_0xc29add)){const _0x32daca=_0x2f4b16[_0x489ae9(0x2b4)]()[0x0],_0x48dc6b=_0x2f4b16[_0x489ae9(0x13c)](_0x32daca);if(!_0x48dc6b)return;this[_0x489ae9(0x1de)](_0x48dc6b,!0x0),await this[_0x489ae9(0x35a)][_0x489ae9(0x2ff)](g[_0x489ae9(0x24f)]['id'],{'unitId':_0x2f4b16[_0x489ae9(0x2cd)](),'subUnitId':_0x32daca});return;}((_0x10014b=_0x2f4b16['getActiveSheet']())==null?void 0x0:_0x10014b[_0x489ae9(0x191)]())!==_0xc29add&&await this['_commandService']['executeCommand'](g[_0x489ae9(0x24f)]['id'],{'unitId':_0x2f4b16[_0x489ae9(0x2cd)](),'subUnitId':_0xc29add});}},exports[_0x121fa1(0x2bf)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x121fa1(0x256)]),H(0x3,a[_0x121fa1(0x227)](u[_0x121fa1(0x1a6)])),H(0x4,a[_0x121fa1(0x30c)](qe[_0x121fa1(0x1e1)]))],exports[_0x121fa1(0x2bf)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x51f0fc,_0x4a975e,_0x3d1051,_0x1129df)=>{const _0x25881e=_0x121fa1;for(var _0x91315f=_0x1129df>0x1?void 0x0:_0x1129df?Bt(_0x4a975e,_0x3d1051):_0x4a975e,_0x1f4384=_0x51f0fc[_0x25881e(0x363)]-0x1,_0xecd8b9;_0x1f4384>=0x0;_0x1f4384--)(_0xecd8b9=_0x51f0fc[_0x1f4384])&&(_0x91315f=_0xecd8b9(_0x91315f)||_0x91315f);return _0x91315f;},ce=(_0x3c2bc0,_0xcb196a)=>(_0x3c8efa,_0x2f7877)=>_0xcb196a(_0x3c8efa,_0x2f7877,_0x3c2bc0);let z=class{constructor(_0x4fd4cb,_0x3420dd,_0x28b406){const _0x10f092=_0x121fa1;this['_injector']=_0x4fd4cb,this[_0x10f092(0x366)]=_0x3420dd,this[_0x10f092(0x282)]=_0x28b406;}['transformIMECache'](_0x5adc7b){const _0x2a69e6=_0x121fa1;this[_0x2a69e6(0x360)](_0x5adc7b),this[_0x2a69e6(0x178)](_0x5adc7b);}[_0x121fa1(0x195)](_0x13d863){const _0x3b0fbe=_0x121fa1,{unitID:_0x558c87}=_0x13d863,_0x29a8fe=this[_0x3b0fbe(0x282)][_0x3b0fbe(0x214)](_0x558c87)[_0x3b0fbe(0x2db)](b[_0x3b0fbe(0x18a)]),{redoCache:_0x5d287d}=_0x29a8fe['getUndoRedoMutationParamsCache']();if(_0x5d287d[_0x3b0fbe(0x363)]===0x0)return _0x13d863;let _0x3fd4f8=a['Tools'][_0x3b0fbe(0x112)](_0x13d863[_0x3b0fbe(0x288)][0x0]);for(let _0x48ac28=0x0;_0x48ac28<_0x5d287d['length'];_0x48ac28++){const _0x1b69d7={'id':_0x3b0fbe(0x2e9),'params':{..._0x5d287d[_0x48ac28]}},_0x45c1cb=this[_0x3b0fbe(0x366)][_0x3b0fbe(0x1cb)](_0x3fd4f8,_0x1b69d7,!0x1);if(m[_0x3b0fbe(0x335)](_0x45c1cb))throw _0x45c1cb[_0x3b0fbe(0x2cf)];_0x3fd4f8=_0x45c1cb['m1Prime'];}return{...a[_0x3b0fbe(0x2b3)][_0x3b0fbe(0x112)](_0x13d863),'mutations':[_0x3fd4f8]};}['_transformUndoRedoStack'](_0x1fcd7a){const _0x2e1d5d=_0x121fa1,{unitID:_0x245bf0}=_0x1fcd7a,_0x300c9d=this[_0x2e1d5d(0x282)][_0x2e1d5d(0x214)](_0x245bf0)[_0x2e1d5d(0x2db)](b['DocIMEInputManagerService']),{undoCache:_0x1d2eb3,redoCache:_0x254441}=_0x300c9d[_0x2e1d5d(0x263)]();if(_0x1d2eb3[_0x2e1d5d(0x363)]===0x0||_0x254441[_0x2e1d5d(0x363)]===0x0)return;const _0x4d023e=[],_0x4fabe4=[];let _0x36baa7=a[_0x2e1d5d(0x2b3)][_0x2e1d5d(0x112)](_0x1fcd7a[_0x2e1d5d(0x288)][0x0]),_0x589cd4=a['Tools']['deepClone'](_0x1fcd7a[_0x2e1d5d(0x288)][0x0]);for(let _0x130a42=_0x1d2eb3[_0x2e1d5d(0x363)]-0x1;_0x130a42>=0x0;_0x130a42--){const _0x3b3d41={'id':_0x2e1d5d(0x2e9),'params':{..._0x1d2eb3[_0x130a42]}},_0x375072={'id':_0x2e1d5d(0x2e9),'params':{..._0x254441[_0x130a42]}},_0x5996ee=this[_0x2e1d5d(0x366)][_0x2e1d5d(0x1cb)](_0x36baa7,_0x3b3d41,!0x1),_0x2f469f=this[_0x2e1d5d(0x366)][_0x2e1d5d(0x1cb)](_0x589cd4,_0x375072,!0x1);if(m[_0x2e1d5d(0x335)](_0x5996ee))throw _0x5996ee['error'];if(m['isTransformMutationFailure'](_0x2f469f))throw _0x2f469f['error'];_0x4d023e[_0x2e1d5d(0x1dc)](_0x5996ee[_0x2e1d5d(0x1e7)][_0x2e1d5d(0x398)]),_0x4fabe4[_0x2e1d5d(0x1dc)](_0x2f469f['m2Prime'][_0x2e1d5d(0x398)]),_0x36baa7=_0x5996ee['m1Prime'],_0x589cd4=_0x2f469f[_0x2e1d5d(0x277)];}_0x300c9d[_0x2e1d5d(0x1e0)]({'undoCache':_0x4d023e,'redoCache':_0x4fabe4});}[_0x121fa1(0x178)](_0x43c726){const _0x57be27=_0x121fa1,{unitID:_0x2edbaa}=_0x43c726,_0x3052c8=this[_0x57be27(0x282)][_0x57be27(0x214)](_0x2edbaa)[_0x57be27(0x2db)](b[_0x57be27(0x18a)]),_0x5a2760=_0x3052c8[_0x57be27(0x2f2)]();if(_0x5a2760==null)return;const _0x54e6b1=[{'id':_0x57be27(0x2e9),'params':{'unitId':_0x43c726[_0x57be27(0x173)],'actions':null,'textRanges':[_0x5a2760]}}],_0xb7cec5=this[_0x57be27(0x366)][_0x57be27(0x28b)](_0x43c726,_0x54e6b1);if(!m[_0x57be27(0x298)](_0xb7cec5))throw _0xb7cec5[_0x57be27(0x2cf)];const _0x7152e0=_0xb7cec5[_0x57be27(0x1e7)][0x0]['params'][_0x57be27(0x2a3)];Array['isArray'](_0x7152e0)&&_0x7152e0[_0x57be27(0x363)]&&_0x3052c8[_0x57be27(0x18e)](_0x7152e0[0x0]);}};z=kt([ce(0x0,a[_0x121fa1(0x227)](a[_0x121fa1(0x123)])),ce(0x1,m['ITransformService']),ce(0x2,p[_0x121fa1(0x1ce)])],z);var Ht=Object[_0x121fa1(0x383)],Ft=(_0x5d6cd5,_0x1ca9de,_0x123d20,_0x356ee0)=>{const _0x581731=_0x121fa1;for(var _0x4d765e=_0x356ee0>0x1?void 0x0:_0x356ee0?Ht(_0x1ca9de,_0x123d20):_0x1ca9de,_0x588aa1=_0x5d6cd5[_0x581731(0x363)]-0x1,_0x5ad580;_0x588aa1>=0x0;_0x588aa1--)(_0x5ad580=_0x5d6cd5[_0x588aa1])&&(_0x4d765e=_0x5ad580(_0x4d765e)||_0x4d765e);return _0x4d765e;},le=(_0x3e20ba,_0x337314)=>(_0x21bf33,_0x2f0c81)=>_0x337314(_0x21bf33,_0x2f0c81,_0x3e20ba);let J=class{constructor(_0x3e0b42,_0x23973a,_0x18ad75){const _0x4045a2=_0x121fa1;this[_0x4045a2(0x2e3)]=_0x3e0b42,this[_0x4045a2(0x366)]=_0x23973a,this[_0x4045a2(0x136)]=_0x18ad75;}[_0x121fa1(0x20c)](_0x37f996){const _0x485380=_0x121fa1;this[_0x485380(0x224)](_0x37f996);}[_0x121fa1(0x195)](_0x5224b3){const _0x25501a=_0x121fa1,{unitID:_0x4899de}=_0x5224b3,{collaboration:_0x1a0255}=this[_0x25501a(0x136)][_0x25501a(0x35d)](_0x4899de);if(_0x1a0255['length']===0x0)return _0x5224b3;let _0xc2fd8e=a[_0x25501a(0x2b3)][_0x25501a(0x112)](_0x5224b3[_0x25501a(0x288)][0x0]);for(let _0x494d1e=0x0;_0x494d1e<_0x1a0255[_0x25501a(0x363)];_0x494d1e++){const _0x32bd91={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1a0255[_0x494d1e][_0x25501a(0x39c)],..._0x1a0255[_0x494d1e]['redoState']}},_0x344776=this[_0x25501a(0x366)][_0x25501a(0x1cb)](_0xc2fd8e,_0x32bd91,!0x1);if(m[_0x25501a(0x335)](_0x344776))throw _0x344776['error'];_0xc2fd8e=_0x344776['m1Prime'];}return{...a['Tools'][_0x25501a(0x112)](_0x5224b3),'mutations':[_0xc2fd8e]};}[_0x121fa1(0x224)](_0x2b5636){const _0xf25a63=_0x121fa1,{unitID:_0x30cd7f}=_0x2b5636,{history:_0x426fca,collaboration:_0x3899a9}=this[_0xf25a63(0x136)][_0xf25a63(0x35d)](_0x30cd7f);if(_0x426fca[_0xf25a63(0x363)]===0x0&&_0x3899a9[_0xf25a63(0x363)]===0x0)return;const _0x5ddc9a=[],_0x5778d5=[];let _0x532fcf=a[_0xf25a63(0x2b3)][_0xf25a63(0x112)](_0x2b5636[_0xf25a63(0x288)][0x0]),_0x1a33ce=a['Tools']['deepClone'](_0x2b5636[_0xf25a63(0x288)][0x0]);for(let _0x511576=_0x426fca[_0xf25a63(0x363)]-0x1;_0x511576>=0x0;_0x511576--){const _0x2dc9bc={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x426fca[_0x511576][_0xf25a63(0x39c)],..._0x426fca[_0x511576][_0xf25a63(0x243)]}},_0x243b0f={'id':_0xf25a63(0x2e9),'params':{'unitId':_0x426fca[_0x511576][_0xf25a63(0x39c)],..._0x426fca[_0x511576][_0xf25a63(0x2ef)]}},_0x2dc91c=this[_0xf25a63(0x366)][_0xf25a63(0x1cb)](_0x532fcf,_0x2dc9bc,!0x1),_0x4251af=this[_0xf25a63(0x366)][_0xf25a63(0x1cb)](_0x1a33ce,_0x243b0f,!0x1);if(m[_0xf25a63(0x335)](_0x2dc91c))throw _0x2dc91c[_0xf25a63(0x2cf)];if(m[_0xf25a63(0x335)](_0x4251af))throw _0x4251af[_0xf25a63(0x2cf)];_0x5ddc9a[_0xf25a63(0x1dc)]({..._0x426fca[_0x511576],'undoState':_0x2dc91c[_0xf25a63(0x1e7)][_0xf25a63(0x398)],'redoState':_0x4251af[_0xf25a63(0x1e7)]['params']}),_0x532fcf=_0x2dc91c[_0xf25a63(0x277)],_0x1a33ce=_0x4251af[_0xf25a63(0x277)];}_0x532fcf=a['Tools']['deepClone'](_0x2b5636[_0xf25a63(0x288)][0x0]),_0x1a33ce=a[_0xf25a63(0x2b3)]['deepClone'](_0x2b5636[_0xf25a63(0x288)][0x0]);for(let _0x42b80e=_0x3899a9[_0xf25a63(0x363)]-0x1;_0x42b80e>=0x0;_0x42b80e--){const _0x4e2cc6={'id':_0xf25a63(0x2e9),'params':{'unitId':_0x3899a9[_0x42b80e][_0xf25a63(0x39c)],..._0x3899a9[_0x42b80e][_0xf25a63(0x243)]}},_0x943020={'id':_0xf25a63(0x2e9),'params':{'unitId':_0x3899a9[_0x42b80e][_0xf25a63(0x39c)],..._0x3899a9[_0x42b80e][_0xf25a63(0x2ef)]}},_0x54b5f9=this['_transformService'][_0xf25a63(0x1cb)](_0x532fcf,_0x4e2cc6,!0x1),_0x3281d6=this[_0xf25a63(0x366)][_0xf25a63(0x1cb)](_0x1a33ce,_0x943020,!0x1);if(m['isTransformMutationFailure'](_0x54b5f9))throw _0x54b5f9[_0xf25a63(0x2cf)];if(m[_0xf25a63(0x335)](_0x3281d6))throw _0x3281d6['error'];_0x5778d5[_0xf25a63(0x1dc)]({..._0x3899a9[_0x42b80e],'undoState':_0x54b5f9[_0xf25a63(0x1e7)][_0xf25a63(0x398)],'redoState':_0x3281d6['m2Prime'][_0xf25a63(0x398)]}),_0x532fcf=_0x54b5f9[_0xf25a63(0x277)],_0x1a33ce=_0x3281d6[_0xf25a63(0x277)];}this[_0xf25a63(0x136)][_0xf25a63(0x2f0)](_0x30cd7f,{'history':_0x5ddc9a,'collaboration':_0x5778d5});}};J=Ft([le(0x0,a['Inject'](a[_0x121fa1(0x123)])),le(0x1,m[_0x121fa1(0x1a8)]),le(0x2,a[_0x121fa1(0x227)](b[_0x121fa1(0x31f)]))],J);var Wt=Object[_0x121fa1(0x383)],Yt=(_0x3777be,_0x877e57,_0x18aa83,_0x1d8269)=>{const _0x205dc3=_0x121fa1;for(var _0xfcd4ac=_0x1d8269>0x1?void 0x0:_0x1d8269?Wt(_0x877e57,_0x18aa83):_0x877e57,_0x50209d=_0x3777be[_0x205dc3(0x363)]-0x1,_0x471ee7;_0x50209d>=0x0;_0x50209d--)(_0x471ee7=_0x3777be[_0x50209d])&&(_0xfcd4ac=_0x471ee7(_0xfcd4ac)||_0xfcd4ac);return _0xfcd4ac;},Ne=(_0x42c444,_0xeb815)=>(_0x456922,_0x4f01eb)=>_0xeb815(_0x456922,_0x4f01eb,_0x42c444);let Z=class{constructor(_0xaaa2a1,_0x42a942){const _0x397dfd=_0x121fa1;this[_0x397dfd(0x2e3)]=_0xaaa2a1,this[_0x397dfd(0x366)]=_0x42a942;}[_0x121fa1(0x339)](_0x5c1880){const _0x56b42b=_0x121fa1;var _0x28d897;const _0x58a6d3=this['_injector'][_0x56b42b(0x192)](W[_0x56b42b(0x2af)]),_0x3f9e3c=(_0x28d897=_0x58a6d3[_0x56b42b(0x145)]())!=null?_0x28d897:[];if(_0x3f9e3c['length']===0x0)return;const _0x2a7610=_0x5c1880['unitID'],_0x2cd92b=[{'id':_0x56b42b(0x2e9),'params':{'unitId':_0x2a7610,'actions':null,'textRanges':_0x3f9e3c}}],_0x3be393=this[_0x56b42b(0x366)][_0x56b42b(0x28b)](_0x5c1880,_0x2cd92b);if(!m['isTransformMutationsWithChangesetSuccess'](_0x3be393))throw _0x3be393[_0x56b42b(0x2cf)];const _0x27b8ae=_0x3be393[_0x56b42b(0x1e7)][0x0][_0x56b42b(0x398)]['textRanges'];Array[_0x56b42b(0x1b0)](_0x27b8ae)&&_0x27b8ae[_0x56b42b(0x363)]&&_0x58a6d3[_0x56b42b(0x303)](_0x27b8ae,{'unitId':_0x2a7610,'subUnitId':_0x2a7610},!0x1);}};function _0x528c(){const _0x534636=['univer-text-red-500','onPointerMove$','#FFF','from','fill','setItem','SHEET_VIEWPORT_KEY','code','/run/','NOT_FOUND','_cursorShapes','USERS_LEAVE','getUnitStatus$','type','DocStateChangeManagerService','_handleHover','whenReady','HEADER_MENU','event$','_init','@univerjs/rpc','init','max','_initEntityListener','@univerjs/core','WECHAT_HAS_BEEN_BOUND','UNAUTHENTICATED','newValue','includes','_univerInstanceService','merge','getUniverSheetInstance','_getSaveTimeout','_getSheetObject','INVITE_CODE_REQUIRED','ONLINE','isTransformMutationFailure','sessionStatus$','disposeWithMe','@univerjs/design','transformSelections','onLocalMutation','_notificationService','@univerjs/sheets','currentSkeleton$','collaboration.single-unit.warning','getValue','toDisposable','startRow','push','_localStorageService','_configService','0\x200\x2016\x2016','_range','dispose$','evenodd','_memberService','ranges','DisposableCollection','NodePositionConvertToRectRange','entityInit$','docStateChange$','collaboration.closeRoom','_urlService','_refreshCollabCursors','_drawRectRange','getAncestorScale','_drawAnchor','Warning','history','loadOfflineData','addObjects','CollaborationStatus','_commandService','searchParams','asObservable','getStateCache','switchMap','_clearOtherTimers','_transformUndoRedoStack','_shapes','setTimeout','length','red300','_localeService','_transformService','@univerjs-pro/collaboration','BehaviorSubject','Tooltip','NO_OTHER_CLIENTS_EDITING','_toggleOnline','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','collabStatus.conflict','filter','registerBeforeClose','handleInsertCol','CLOSE_ROOM','clipPath','column','triggerDblclick','@univerjs/drawing','fromEventSubject','_colorAssignService','endRow','propertyIsEnumerable','getMemberID','sheetId','shareReplay','status$','debug','some','InsertRangeMoveRightCommandId','_revisionService','APPLY_REVISION_CONFILICT','getOwnPropertyDescriptor','subUnitId','path','_setupSubUnitSync','_docSkeletonManagerService','FromArray','all','_doCreateSocket','clsx','_handleJoinEvent','getCollabEntity$','uni.network.url-service','Unknown\x20user','_createSocketURL','SetSelectionsOperation','IConfigService','restore','_hideTimer','TEXT_RANGE_LAYER_INDEX','EffectRefRangId','forEach','params','disposeUnit','activeSheet$','INTERNAL_ERROR','unitId','Rect','trim','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','univerjs-icon\x20univerjs-icon-','permission.content','SOCKET_FAILED_RETRY','override','deepClone','NOT_COLLAB','row','indexOf','flatMap','[CollaborationDataLoaderController]','...','onPointerEnter$','DEFAULT_WS_SESSION_TICKET_URL','CollaborationEvent','off-line-single','concat','CONFLICT','currentColor','subunit','clearInterval','_draw','Injector','_getAnchorBounding','COLORS','_themeService','round','registerRenderModule','_startDocCollabCursor','APPLY_PERMISSION_DENIED','complete','_httpService','xlink:href','handleInsertRangeMoveDown','collaboration-client-ui.config','defs','_anchor','_docSyncEditingCollabCursorService','SheetSkeletonManagerService','getTypeOfUnitAdded$','_registerDependencies','_docStateChangeManagerService','_refRangeService','onTransformChange$','add','Vector2','getItem','getSheetBySheetId','defineProperty','YUUMI_UNABLE_LOAD_URL','react','createIdentifier','on-line-single_clip0_910_349','debounce','removeParam','addObject','getDocRanges','1306752rrynWs','_cursor','CONNECTOR_DATA_TOO_LARGE','width','getMergeData','handleInsertRow','url(#on-line-single_clip0_910_349)','UniverCollaborationClientUIPlugin','_entities','_onCursorDelete','@univerjs/ui','_docTransformSelectionsService','body','univer-text-[14px]\x20univer-leading-[32px]\x20univer-text-gray-600','_scheduleHeartbeat','@univerjs/docs-ui','clearTimeout','_collabCursorController','name','_registerRenderDependencies','mapTo','_handleHeartbeatEvent','InsertColCommandId','save','MoveRangeCommandId','current','RegularPolygon','IDocClipboardService','PERMISSION_DENIED','@univerjs-pro/collaboration-client','_disabled','href','pipe','handleIRemoveRow','TRANSFORM_CHANGE_OBSERVABLE_TYPE','ILogService','origin','toRgbString','_unitStatus','svg','InsertRowCommandId','_updateCollabCursors','storage','1em','ILocalStorageService','unitID','TOO_MANY_REQUESTS','_uiPartsService','_saveTaskMap','createInstance','_transformPreviousActiveRange','session.connection-failed','exhaustSavingTask','setConfig','_render','33536bskvSF','cursorInfo','_cursors','CollaborationUIEventId','entries','APPLY_NON_SEQUENTIAL_REVISION','ILocalCacheService','setParam','requireSession','registerComponent','NodePositionConvertToCursor','RECT','RxDisposable','DocIMEInputManagerService','string','onMouseMove','Shape','setActiveRange','roomMembers$','OnLineSingle','getSheetId','get','_messageService','apply','transformRemoteChangeset','contains','tag','_color','cursorInfo$','_updateSubUnitFromURLParams','_config','top','runRefRangeMutations','_instanceService','selections','IUniverInstanceService','RemoteUniscriptService','show','M0\x200H16V16H0z','transformIMECache','RemoveColCommandId','DataLoaderService','_send','ITransformService','assignAColorForMemberID','_docClipboardService','on-line-single','lineTo','SNAPSHOT_HAS_BEEN_REMOVED','hide','eventID','isArray','sheetID','disableLocalCache','stringify','_online','getFocusedUnit','unit','@univerjs/engine-formula','_dataLoaderService','_localCacheService','RefRangeService','pushState','OTHER_CLIENTS_EDITING','_collaborationController','_labelPosition','then','fillText','syncEditingCollabCursor','JOIN_ROOM_FAILED','_sheetSkeletonManagerService','_id','loadUnit','toStringTag','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_status$','DOC_RANGE_TYPE','USER_NOT_INVITED_CODE','transformMutation','_collaborationUIEventService','useCallback','IRenderManagerService','UniverInstanceType','InsertRangeMoveDownCommandId','_drawTextRange','PY_RUNTIME_SCRIPT_ERROR','@univerjs/engine-render','_getSessionTicket','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','getColor','labelPosition','onStarting','height','WebURLService','univer-flex\x20univer-mr-2\x20univer-text-[20px]','unshift','random','_updateURLWithCurrentState','INotificationService','setUndoRedoMutationParamsCache','IRemoteInstanceService','data','OFFLINE','getCurrentRevOfUnit','_collabCursorState$','key','m2Prime','OTHER_CLIENT_EDITING','skeleton','_initStatusListener','INVITE_CODE_HAS_BEEN_UES','url(#$1','EMAIL_HAS_BEEN_BOUND','_removeClearOtherTimer','SNAPSHOT_INVALID_SNAPSHOT','LICENSE_DISTRO_REJECTED','onRendered','black','gold400','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','children','attrs','session.collaboration-timeout','_anchorDot','UNIVER_DOC','selection','runOnServer','_onRefRangeChange','BrowserCollaborationSocketService','getSkeleton','_initCommandExecutedListener','values','post','unsubscribe','hovered','ticket','_context','getCurrentSelections','VIEW_MAIN','colorChannel1','Workbook','Rectangle','collabStatus.offline','transformStateCache','_backgroundColor','SUBMIT_CHANGESET_TIMEOUT','YUUMI_ASYNCIO_CANCELLED','HTTPService','generateRandomId','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','DeleteRangeMoveLeftCommandId','getRenderById','CollaborationController','YUUMI_SUBSCRIPTION_NOT_FOUND','getCurrent','OffLineSingle','onPointerLeave$','SetTextSelectionsOperation','_assignedColors','7027840RVePpN','invokeId','INVALID_ARGUMENT','imageSourceType','serializeRangeWithSheet','subscribeEvent','_eventUnsubscribe','result','_transformHistoryAndStateStack','IUIPartsService','enableLocalCache','Inject','jsx','getSheetObject','useDependency','getParam','mask','getActiveSheet','_lastPointer','Error','executionId','className','SheetsSelectionsService','IMessageService','range','1858587itrqbx','symbol','roomMembers','getMember','_docTransformIMECacheService','334932RDsnJd','getConfig','color','displayName','div','getCoordByCell','_ensureSubject','makeDirty','closePath','undoState','6ngBtWO','_initStatusComponent','distinctUntilChanged','unload','_selfUnitIDs','popstate','_startSheetCollabCursor','Subject','_saveCache','getTypeOfUnitDisposed$','ACTIVE_UNIT_EVENT_CHANNEL','SetWorksheetActivateCommand','location','4330550lbkffk','IBeforeCloseService','collab-text-range-','getViewport','MemberService','ICommandService','collabCursorState$','fromEvent','_heartbeatTimer','COMPLETION_FINISHED','_getScale','setShapeProps','isActive','call','focused$','collaboration-client.offline-data-not-saved','startsWith','debounceTime','getUndoRedoMutationParamsCache','jsxs','CHANGESET_REVISION_CONFILICT','LICENSE_IMPORT_SIZE_EXCEEDED','bottom','_cachedData','getOwnPropertySymbols','UniverCollaborationClientPlugin','drawWith','takeUntil','set','LOCAL_CACHE_INTERVAL_KEY','use','hasOwnProperty','CollaborationUIEventService','measureText','split','handleDeleteRangeMoveLeft','LOGIN_FAILED','_cursorInfo$','m1Prime','delete','findNodePositionByCharIndex','find','SOCKET_FAILED','_imageIoService','urlChange$','startColumn','_scene','addHandlerCallback','editingUnit','_renderManagerService','TEXT','WebSocketService','DesktopCollaborationStatusDisplayController','WebBrowserSingleActiveUnitService','map','mutations','_textBubble','_removeCollabCursors','transformMutationsWithChangeset','handleMoveRange','Disposable','#fff','LocaleService','DeleteRangeMoveUpCommandId','forwardRef','_setupBeforeClosingHandler','getCurrentUnitForType','SetDocZoomRatioOperation','has','Failed','LICENSE_EXPORT_SIZE_EXCEEDED','isTransformMutationsWithChangesetSuccess','DocCollaborationEntity','defIds','verdancy600','dispose','saveImage','YUUMI_URL_COL_OUT_OF_RANGE','_handleEvent','prototype','_onCursorUpdate','toString','textRanges','UnitStatus','525GlMdNj','_session','size','@univerjs/sheets-ui','icon','combineLatest','_logService','onCommandExecuted','_initEvent','24728220wfYeWB','DocSelectionManagerService','off-line-single_clip0_910_343','_hover','SessionStatus','Tools','getUnhiddenWorksheets','none','univer-flex\x20univer-items-center','purple300','_collabSessionService','_entityInit$','moveTo','MessageType','RevisionService','saveTaskMap','updateOfflineData','CollaborationDataLoaderController','ENSURE_SNAPSHOT_EXECUTION','useRef','transform','_unitOnClients','_hovered','ALREADY_EXISTS','collabStatus.synced','subscribe','ColorKit','fillRule','replace','extend','_beforeCloseService','getUnitId','UNIVER_SHEET','error','PENDING','UPDATE_CURSOR','FETCH_MISS','CollaborationSessionService','collabStatus.fetchMiss','APPLY_REJECT','INVALID_INVITE_CODE','_initResize','createElement','addClipboardHook','getLocalCacheKey','with','text','_name','CollaborationSocketService','collab-client.tooltip.reconnect','translate(.97)','INVITE_CODE_ALREADY_BOUND','AWAITING','_injector','isEditing','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','runId','react/jsx-runtime','_getMergeRange','doc.mutation.rich-text-editing','assign','function','mergeOverrideWithDependencies','_colorIndex','_toggleOffline','redoState','setStateCache','_handleLeaveEvent','getActiveRange','_roomMembers$','_updateLocalCursor','send','arc','getRangePointData','SheetCollabCursorShape','_scheduleSaving','MOBILE_HAS_BEEN_BOUND','next','wsSessionTicketUrl','getCellPositionByOffset','registerDependencies','executeCommand','DocSkeletonManagerService','application/json','resize','replaceDocRanges','transformByState','_scheduleClearOtherTimer','ISocketService','_syncEditingCollabCursorService','currentTheme$','min','LOCAL_CACHE_INTERVAL','blue400','Optional','YUUMI_RATE_OVER_LIMIT','idSuffix','setAlpha','rgba(255,\x20255,\x20255,\x200.01)'];_0x528c=function(){return _0x534636;};return _0x528c();}Z=Yt([Ne(0x0,a[_0x121fa1(0x227)](a[_0x121fa1(0x123)])),Ne(0x1,m[_0x121fa1(0x1a8)])],Z);var Vt=Object[_0x121fa1(0x383)],Xt=(_0x3c2d08,_0xda605,_0x2a519c,_0x36d81a)=>{for(var _0x38ee3b=_0x36d81a>0x1?void 0x0:_0x36d81a?Vt(_0xda605,_0x2a519c):_0xda605,_0x59ca2e=_0x3c2d08['length']-0x1,_0x21f921;_0x59ca2e>=0x0;_0x59ca2e--)(_0x21f921=_0x3c2d08[_0x59ca2e])&&(_0x38ee3b=_0x21f921(_0x38ee3b)||_0x38ee3b);return _0x38ee3b;},N=(_0x43d2fa,_0x253bae)=>(_0x49a72d,_0x366976)=>_0x253bae(_0x49a72d,_0x366976,_0x43d2fa);let Q=class extends a['Disposable']{constructor(_0x54a894,_0x2a36c7,_0x3878b9,_0xb00a6b,_0x58e675,_0x2be564,_0x4f2c6a,_0x44164f){const _0x3b9969=_0x121fa1;super(),h(this,_0x3b9969(0x1c8),new d[(_0x3b9969(0x368))](u[_0x3b9969(0x359)][_0x3b9969(0x113)])),(this[_0x3b9969(0x136)]=_0x54a894,this[_0x3b9969(0x1bd)]=_0x2a36c7,this[_0x3b9969(0x239)]=_0x3878b9,this['_docTransformStateCacheService']=_0xb00a6b,this[_0x3b9969(0x151)]=_0x58e675,this[_0x3b9969(0x132)]=_0x2be564,this[_0x3b9969(0x193)]=_0x4f2c6a,this['_localeService']=_0x44164f,this['_initEntityListener']());}[_0x121fa1(0x328)](){const _0x1cc999=_0x121fa1;this[_0x1cc999(0x337)](this[_0x1cc999(0x1bd)][_0x1cc999(0x34d)][_0x1cc999(0x2c7)](_0x57cdca=>{const _0x2117fd=_0x1cc999,_0xb1748f=this[_0x2117fd(0x136)][_0x2117fd(0x34e)][_0x2117fd(0x2c7)](_0x58e4c6=>{const _0x55cfea=_0x2117fd;if(_0x58e4c6==null)return;const {unitId:_0x5d3ad3,redoState:_0x3b38ea,commandId:_0x1ce41a}=_0x58e4c6;if(_0x5d3ad3!==_0x57cdca[_0x55cfea(0x173)])return;const _0x2d4363={'id':_0x1ce41a,'type':a['CommandType']['MUTATION'],'params':{'unitId':_0x5d3ad3,'actions':_0x3b38ea['actions'],'textRanges':null}};_0x57cdca[_0x55cfea(0x33a)](_0x2d4363);});if(_0x57cdca[_0x2117fd(0x337)](_0xb1748f),_0x57cdca instanceof u[_0x2117fd(0x299)]){const _0x5954c6={'onTransformIME':_0x33a42b=>this['_docTransformIMECacheService'][_0x2117fd(0x1a4)](_0x33a42b),'onTransformState':_0xb16f8b=>this['_docTransformStateCacheService'][_0x2117fd(0x20c)](_0xb16f8b),'onTransformSelections':_0x2e6124=>this[_0x2117fd(0x151)][_0x2117fd(0x339)](_0x2e6124),'onSyncEditingCollabCursor':_0x4cb8fb=>this['_docSyncEditingCollabCursorService'][_0x2117fd(0x1c1)](_0x4cb8fb),'onTransformRemoteChangesetByIMECache':_0x1950e8=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x1950e8),'onTransformRemoteChangesetByStateCache':_0x353149=>this['_docTransformStateCacheService']['transformRemoteChangeset'](_0x353149)};_0x57cdca[_0x2117fd(0x280)](_0x5954c6);}}));}};Q=Xt([N(0x0,a[_0x121fa1(0x227)](b[_0x121fa1(0x31f)])),N(0x1,a[_0x121fa1(0x227)](u[_0x121fa1(0x215)])),N(0x2,a[_0x121fa1(0x227)](z)),N(0x3,a[_0x121fa1(0x227)](J)),N(0x4,a[_0x121fa1(0x227)](Z)),N(0x5,a[_0x121fa1(0x227)](Ce)),N(0x6,T[_0x121fa1(0x233)]),N(0x7,a['Inject'](a['LocaleService']))],Q);var Gt=Object['getOwnPropertyDescriptor'],qt=(_0x451781,_0x22129b,_0x5f02d8,_0x410650)=>{for(var _0x5933c8=_0x410650>0x1?void 0x0:_0x410650?Gt(_0x22129b,_0x5f02d8):_0x22129b,_0x33b655=_0x451781['length']-0x1,_0x6859c3;_0x33b655>=0x0;_0x33b655--)(_0x6859c3=_0x451781[_0x33b655])&&(_0x5933c8=_0x6859c3(_0x5933c8)||_0x5933c8);return _0x5933c8;},_e=(_0x177454,_0x1056e8)=>(_0x379f0c,_0x49f6d3)=>_0x1056e8(_0x379f0c,_0x49f6d3,_0x177454);let ge=class extends a[_0x121fa1(0x28d)]{constructor(_0xebdc4e,_0x27cf74,_0x47bbb1){const _0x3c14af=_0x121fa1;super(),h(this,'_cachedData',new Map()),h(this,_0x3c14af(0x176),new Map()),h(this,_0x3c14af(0x164),!0x1),(this[_0x3c14af(0x344)]=_0xebdc4e,this[_0x3c14af(0x343)]=_0x27cf74,this[_0x3c14af(0x381)]=_0x47bbb1);}[_0x121fa1(0x1b2)](){this['_disabled']=!0x0;}[_0x121fa1(0x226)](){this['_disabled']=!0x1;}get[_0x121fa1(0x2bd)](){return this['_saveTaskMap'];}[_0x121fa1(0x29c)](){const _0x53d55f=_0x121fa1;this[_0x53d55f(0x17a)]()[_0x53d55f(0x1bf)](()=>super[_0x53d55f(0x29c)]());}async[_0x121fa1(0x357)](_0x230565){const _0x477b74=_0x121fa1;return this['_disabled']?null:this[_0x477b74(0x343)][_0x477b74(0x13b)](u[_0x477b74(0x2da)](_0x230565));}async['saveOfflineData'](_0x4b52d7,_0x4ae3c2){const _0x48d2e1=_0x121fa1;return!!this['_localStorageService'][_0x48d2e1(0x316)](_0x4b52d7,_0x4ae3c2);}[_0x121fa1(0x2be)](_0x229df5,_0x26ed1b,_0x3c9876,_0x52af50){const _0x136918=_0x121fa1,_0x2fbb83=this[_0x136918(0x381)][_0x136918(0x1e4)](_0x229df5);this[_0x136918(0x268)]['set'](_0x229df5,{'unitID':_0x229df5,'type':_0x26ed1b,'awaitingChangeset':_0x3c9876,'mutations':_0x52af50,'rev':_0x2fbb83}),this[_0x136918(0x176)][_0x136918(0x295)](_0x229df5)||this['_scheduleSaving'](_0x229df5);}[_0x121fa1(0x2f9)](_0x57997c){const _0x14464a=_0x121fa1,_0x3592e3=this['_getSaveTimeout']();_0x3592e3===0x0?this[_0x14464a(0x24c)](_0x57997c):this[_0x14464a(0x176)][_0x14464a(0x26d)](_0x57997c,setTimeout(()=>this[_0x14464a(0x24c)](_0x57997c),_0x3592e3));}[_0x121fa1(0x331)](){const _0x3ddc5f=_0x121fa1;var _0x3b4593;return(_0x3b4593=this[_0x3ddc5f(0x344)]['getConfig'](u[_0x3ddc5f(0x26e)]))!=null?_0x3b4593:u[_0x3ddc5f(0x30a)];}['_saveCache'](_0x5e362a){const _0x43a5a7=_0x121fa1,_0x156157=this[_0x43a5a7(0x176)][_0x43a5a7(0x192)](_0x5e362a);return _0x156157!==void 0x0&&window['clearTimeout'](_0x156157),this[_0x43a5a7(0x343)][_0x43a5a7(0x316)](u[_0x43a5a7(0x2da)](_0x5e362a),this['_cachedData'][_0x43a5a7(0x192)](_0x5e362a))[_0x43a5a7(0x1bf)](()=>this[_0x43a5a7(0x176)][_0x43a5a7(0x278)](_0x5e362a));}async[_0x121fa1(0x17a)](){const _0x30bdea=_0x121fa1,_0x55e94d=[];this[_0x30bdea(0x176)][_0x30bdea(0x397)]((_0x123e1c,_0x1a5c88)=>{const _0x455132=_0x30bdea;window[_0x455132(0x156)](_0x123e1c),_0x55e94d[_0x455132(0x342)](this[_0x455132(0x24c)](_0x1a5c88)[_0x455132(0x1bf)](()=>{const _0x1aaf4e=_0x455132;this[_0x1aaf4e(0x176)][_0x1aaf4e(0x278)](_0x1a5c88);}));}),await Promise[_0x30bdea(0x389)](_0x55e94d);}};ge=qt([_e(0x0,a[_0x121fa1(0x392)]),_e(0x1,a[_0x121fa1(0x172)]),_e(0x2,a['Inject'](m[_0x121fa1(0x2bc)]))],ge);class je extends a['RxDisposable']{constructor(){const _0x35bff6=_0x121fa1;super(),h(this,_0x35bff6(0x27d)),this['urlChange$']=d[_0x35bff6(0x258)](window,_0x35bff6(0x249))[_0x35bff6(0x166)](d[_0x35bff6(0x26c)](this[_0x35bff6(0x347)]),d[_0x35bff6(0x37c)](0x1),d[_0x35bff6(0x15a)](void 0x0));}[_0x121fa1(0x184)](_0x2211e9,_0x3747c2,_0x10f3cc=!0x1){const _0x3a245b=_0x121fa1,_0x4919f5=new URL(window[_0x3a245b(0x250)][_0x3a245b(0x165)]);_0x4919f5[_0x3a245b(0x35b)][_0x3a245b(0x26d)](_0x2211e9,_0x3747c2),_0x10f3cc?window['history']['replaceState']('','',_0x4919f5[_0x3a245b(0x2a2)]()):window[_0x3a245b(0x356)]['pushState']('','',_0x4919f5[_0x3a245b(0x2a2)]());}[_0x121fa1(0x143)](_0x56aa04,_0x3807dd=!0x1){const _0x4b8732=_0x121fa1,_0x6254cc=new URL(window[_0x4b8732(0x250)][_0x4b8732(0x165)]);_0x6254cc[_0x4b8732(0x35b)][_0x4b8732(0x278)](_0x56aa04),_0x3807dd?window[_0x4b8732(0x356)]['replaceState']('','',_0x6254cc['toString']()):window['history'][_0x4b8732(0x1bb)]('','',_0x6254cc[_0x4b8732(0x2a2)]());}[_0x121fa1(0x22b)](_0x1da8f3){const _0x37587d=_0x121fa1;var _0x7f73c7;return(_0x7f73c7=new URL(window[_0x37587d(0x250)][_0x37587d(0x165)])[_0x37587d(0x35b)][_0x37587d(0x192)](_0x1da8f3))!=null?_0x7f73c7:void 0x0;}}var Kt=Object[_0x121fa1(0x13d)],zt=Object[_0x121fa1(0x383)],Jt=(_0xc71526,_0x2087ea,_0x48986b)=>_0x2087ea in _0xc71526?Kt(_0xc71526,_0x2087ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48986b}):_0xc71526[_0x2087ea]=_0x48986b,Zt=(_0x6871bb,_0x56a8bd,_0x5e318e,_0x5ad221)=>{const _0x1f2412=_0x121fa1;for(var _0x35ebe5=_0x5ad221>0x1?void 0x0:_0x5ad221?zt(_0x56a8bd,_0x5e318e):_0x56a8bd,_0x362580=_0x6871bb[_0x1f2412(0x363)]-0x1,_0x446844;_0x362580>=0x0;_0x362580--)(_0x446844=_0x6871bb[_0x362580])&&(_0x35ebe5=_0x446844(_0x35ebe5)||_0x35ebe5);return _0x35ebe5;},he=(_0x59d28a,_0x2d28e8)=>(_0x67de89,_0x3a9fe6)=>_0x2d28e8(_0x67de89,_0x3a9fe6,_0x59d28a),Qt=(_0x3fabee,_0x4c704b,_0x993912)=>Jt(_0x3fabee,_0x4c704b+'',_0x993912);const es=_0x121fa1(0x1d5);exports['UniverCollaborationClientUIPlugin']=class extends a['Plugin']{constructor(_0x55633d=Ue,_0x64230b,_0xaac3f7,_0x5baebe){const _0x5035c6=_0x121fa1;super(),this['_config']=_0x55633d,this[_0x5035c6(0x282)]=_0x64230b,this['_injector']=_0xaac3f7,this[_0x5035c6(0x344)]=_0x5baebe;const {..._0x4cb99b}=a[_0x5035c6(0x32f)]({},Ue,this['_config']);this[_0x5035c6(0x344)][_0x5035c6(0x17b)]($t,_0x4cb99b);}[_0x121fa1(0x1d8)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x121fa1(0x1f1)](){const _0x2d7126=_0x121fa1;this[_0x2d7126(0x159)]();}[_0x121fa1(0x135)](){const _0x5153b6=_0x121fa1;var _0xcae1da;const _0x1c890f=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x5153b6(0x306)],{'useClass':G[_0x5153b6(0x284)]}],[u[_0x5153b6(0x183)],{'useClass':ge}],[exports[_0x5153b6(0x285)]],[Q],[K],[x],[de],[exports['CollaborationDataLoaderController']]];a[_0x5153b6(0x2fe)](this[_0x5153b6(0x2e3)],a[_0x5153b6(0x2ec)](_0x1c890f,(_0xcae1da=this[_0x5153b6(0x19b)])==null?void 0x0:_0xcae1da[_0x5153b6(0x111)]));}['_registerRenderDependencies'](){const _0x16ec3c=_0x121fa1;this['disposeWithMe'](this[_0x16ec3c(0x282)][_0x16ec3c(0x128)](a[_0x16ec3c(0x1cf)][_0x16ec3c(0x1f9)],[Ie])),this[_0x16ec3c(0x337)](this[_0x16ec3c(0x282)][_0x16ec3c(0x128)](a[_0x16ec3c(0x1cf)][_0x16ec3c(0x2ce)],[ve]));}['_initDependencies'](){const _0x2cae28=_0x121fa1;a['touchDependencies'](this[_0x2cae28(0x2e3)],[[x],[exports[_0x2cae28(0x285)]],[Q],[K],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x121fa1(0x14d)],'pluginName',es),exports[_0x121fa1(0x14d)]=Zt([a['DependentOn'](u[_0x121fa1(0x26a)]),he(0x1,p['IRenderManagerService']),he(0x2,a[_0x121fa1(0x227)](a['Injector'])),he(0x3,a['IConfigService'])],exports[_0x121fa1(0x14d)]);var ts=Object[_0x121fa1(0x383)],ss=(_0x16be5b,_0x2ebdb4,_0xe7c70e,_0x13b2b2)=>{const _0xbd9035=_0x121fa1;for(var _0x38a6c1=_0x13b2b2>0x1?void 0x0:_0x13b2b2?ts(_0x2ebdb4,_0xe7c70e):_0x2ebdb4,_0x5d32ad=_0x16be5b[_0xbd9035(0x363)]-0x1,_0x2c53e6;_0x5d32ad>=0x0;_0x5d32ad--)(_0x2c53e6=_0x16be5b[_0x5d32ad])&&(_0x38a6c1=_0x2c53e6(_0x38a6c1)||_0x38a6c1);return _0x38a6c1;},F=(_0x4179cd,_0xaa8937)=>(_0x1c2d37,_0xdded70)=>_0xaa8937(_0x1c2d37,_0xdded70,_0x4179cd);exports['BrowserCollaborationSocketService']=class extends u[_0x121fa1(0x2de)]{constructor(_0x2c8408,_0x563966,_0x5e068e,_0x417cad,_0x2707f9){super(_0x2c8408,_0x563966,_0x5e068e,_0x417cad,_0x2707f9);}async['createSocket'](_0x273e98){const _0x365ec7=_0x121fa1,_0x5adbc6=await this[_0x365ec7(0x1d4)](),_0x20d615=this[_0x365ec7(0x390)](_0x273e98,_0x5adbc6);return this[_0x365ec7(0x38a)](_0x20d615);}[_0x121fa1(0x390)](_0x1958ee,_0x162f10){const _0x5998ec=_0x121fa1,_0x20094d=typeof window>'u'?new URL(_0x1958ee):new URL(_0x1958ee,window[_0x5998ec(0x250)][_0x5998ec(0x16a)]);_0x20094d[_0x5998ec(0x35b)][_0x5998ec(0x26d)]('sessionTicket',_0x162f10);const _0x354991=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5998ec(0x250)]['search']);return _0x354991['get'](_0x5998ec(0x2e6))&&_0x20094d[_0x5998ec(0x35b)]['set'](_0x5998ec(0x2e6),_0x354991[_0x5998ec(0x192)](_0x5998ec(0x2e6))),_0x20094d['toString']();}async[_0x121fa1(0x1d4)](){const _0x3ae4c6=_0x121fa1;var _0x5346ae,_0x4f57af,_0x2466b6;const _0x37ff9d=this['_configService']['getConfig'](u[_0x3ae4c6(0x10d)]),_0x406e5d=(_0x5346ae=_0x37ff9d==null?void 0x0:_0x37ff9d[_0x3ae4c6(0x2fc)])!=null?_0x5346ae:u[_0x3ae4c6(0x11a)];return(_0x2466b6=(_0x4f57af=(await this[_0x3ae4c6(0x12c)][_0x3ae4c6(0x192)](_0x406e5d,{'headers':{'Content-Type':_0x3ae4c6(0x301)}}))[_0x3ae4c6(0x152)])==null?void 0x0:_0x4f57af[_0x3ae4c6(0x204)])!=null?_0x2466b6:'';}},exports[_0x121fa1(0x1fd)]=ss([F(0x0,a[_0x121fa1(0x227)](a[_0x121fa1(0x123)])),F(0x1,a[_0x121fa1(0x227)](G[_0x121fa1(0x210)])),F(0x2,a[_0x121fa1(0x392)]),F(0x3,a[_0x121fa1(0x169)]),F(0x4,m['ISnapshotServerService'])],exports[_0x121fa1(0x1fd)]);const Me=0x7530,Le=_0x121fa1(0x24e);class is extends a[_0x121fa1(0x28d)]{constructor(){const _0x26fd4e=_0x121fa1;super(),h(this,_0x26fd4e(0x1c4),a[_0x26fd4e(0x211)]()),h(this,_0x26fd4e(0x248),new Set()),h(this,_0x26fd4e(0x2c3),new Map()),h(this,_0x26fd4e(0x259),null),h(this,_0x26fd4e(0x35f),new Map()),h(this,_0x26fd4e(0x16c),new Map()),this[_0x26fd4e(0x324)]();}[_0x121fa1(0x29c)](){const _0x1f1735=_0x121fa1;super[_0x1f1735(0x29c)](),this[_0x1f1735(0x35f)][_0x1f1735(0x397)]((_0x4ba2b7,_0x545194)=>this[_0x1f1735(0x1ee)](_0x545194)),this['_heartbeatTimer']&&window[_0x1f1735(0x121)](this[_0x1f1735(0x259)]);}[_0x121fa1(0x31d)](_0x3045e){const _0x102cc8=_0x121fa1;return this[_0x102cc8(0x240)](_0x3045e)[_0x102cc8(0x166)](d[_0x102cc8(0x246)]());}[_0x121fa1(0x281)](_0x14229c){const _0x2d2c45=_0x121fa1;this[_0x2d2c45(0x248)][_0x2d2c45(0x2a7)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x2d2c45(0x139)](_0x14229c),this[_0x2d2c45(0x1a7)]({'type':0x0,'memberID':this[_0x2d2c45(0x1c4)],'unitIDs':[_0x14229c],'isForwarded':!0x1});}[_0x121fa1(0x399)](_0x5d4af3){const _0x57641a=_0x121fa1;this[_0x57641a(0x248)]['delete'](_0x5d4af3),this[_0x57641a(0x248)][_0x57641a(0x2a7)]===0x0&&this[_0x57641a(0x259)]&&window[_0x57641a(0x121)](this['_heartbeatTimer']);}['_init'](){const _0x353fcf=_0x121fa1;this[_0x353fcf(0x337)](a['toDisposable'](d[_0x353fcf(0x258)](window,_0x353fcf(0x170))[_0x353fcf(0x2c7)](_0x19cfa5=>{const _0x53eaca=_0x353fcf;if(_0x19cfa5[_0x53eaca(0x1e6)]!==Le||!_0x19cfa5[_0x53eaca(0x32c)])return;const _0x41e22a=JSON['parse'](_0x19cfa5[_0x53eaca(0x32c)]);this['_handleEvent'](_0x41e22a);}))),window['addEventListener'](_0x353fcf(0x247),()=>this[_0x353fcf(0x1a7)]({'type':0x1,'memberID':this['_id'],'unitIDs':Array[_0x353fcf(0x314)](this['_selfUnitIDs'])}));}[_0x121fa1(0x29f)](_0xa8c7a2){const _0x37c925=_0x121fa1;switch(_0xa8c7a2[_0x37c925(0x31e)]){case 0x0:this[_0x37c925(0x38c)](_0xa8c7a2);break;case 0x1:this['_handleLeaveEvent'](_0xa8c7a2);break;case 0x2:this[_0x37c925(0x15b)](_0xa8c7a2);break;}}[_0x121fa1(0x38c)](_0x4a89b0){const _0x3f2324=_0x121fa1,{unitIDs:_0x4c32fe,memberID:_0x56ab09,isForwarded:_0x2bf884}=_0x4a89b0;_0x4c32fe[_0x3f2324(0x397)](_0x2594fc=>{const _0x5e507a=_0x3f2324;if(!_0x2bf884&&this[_0x5e507a(0x2c3)][_0x5e507a(0x295)](_0x2594fc)&&this[_0x5e507a(0x240)](_0x2594fc)[_0x5e507a(0x2fb)](u['UnitStatus'][_0x5e507a(0x1bc)]),!this[_0x5e507a(0x2c3)][_0x5e507a(0x295)](_0x2594fc)||!this[_0x5e507a(0x2c3)]['get'](_0x2594fc)['has'](_0x56ab09)){const _0x362871=this[_0x5e507a(0x2c3)][_0x5e507a(0x192)](_0x2594fc)||new Set();_0x362871[_0x5e507a(0x139)](_0x56ab09),this[_0x5e507a(0x2c3)][_0x5e507a(0x26d)](_0x2594fc,_0x362871),this[_0x5e507a(0x305)](_0x56ab09);}}),_0x2bf884||this[_0x3f2324(0x1a7)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x3f2324(0x248)]],'isForwarded':!0x0});}[_0x121fa1(0x305)](_0x1b2e07){const _0x2f4d15=_0x121fa1;this[_0x2f4d15(0x1ee)](_0x1b2e07);const _0x2d6bc4=window[_0x2f4d15(0x362)](()=>{const _0x52ad21=_0x2f4d15;this[_0x52ad21(0x2c3)][_0x52ad21(0x397)](_0x2e0d99=>{const _0x15d536=_0x52ad21;_0x2e0d99[_0x15d536(0x278)](_0x1b2e07);});},Me*0x2);this[_0x2f4d15(0x35f)][_0x2f4d15(0x26d)](_0x1b2e07,_0x2d6bc4);}[_0x121fa1(0x1ee)](_0x503342){const _0x11bbaf=_0x121fa1;if(this[_0x11bbaf(0x35f)]['has'](_0x503342)){const _0x445c6f=this['_clearOtherTimers']['get'](_0x503342);_0x445c6f&&window[_0x11bbaf(0x156)](_0x445c6f),this['_clearOtherTimers'][_0x11bbaf(0x26d)](_0x503342,null);}}[_0x121fa1(0x2f1)](_0x2b65e6){const _0x3165c4=_0x121fa1,{memberID:_0x5d0e21,unitIDs:_0x101bfe}=_0x2b65e6;_0x101bfe[_0x3165c4(0x397)](_0xc77055=>{const _0x2c42a7=_0x3165c4;var _0x243b19;const _0x5d2e3f=this[_0x2c42a7(0x2c3)][_0x2c42a7(0x192)](_0xc77055);_0x5d2e3f&&(_0x5d2e3f['delete'](_0x5d0e21),(_0x243b19=this['_ensureSubject'](_0xc77055))==null||_0x243b19[_0x2c42a7(0x2fb)](_0x5d2e3f[_0x2c42a7(0x2a7)]===0x0?u[_0x2c42a7(0x2a4)][_0x2c42a7(0x36a)]:u[_0x2c42a7(0x2a4)][_0x2c42a7(0x1bc)]));}),this[_0x3165c4(0x1ee)](_0x5d0e21);}[_0x121fa1(0x15b)](_0x4e571e){const _0xc9373=_0x121fa1;this[_0xc9373(0x305)](_0x4e571e['memberID']);}[_0x121fa1(0x1a7)](_0x4a337c){const _0x3c761d=_0x121fa1;localStorage[_0x3c761d(0x316)](Le,JSON['stringify'](_0x4a337c));}[_0x121fa1(0x154)](){const _0x16ef9e=_0x121fa1;this[_0x16ef9e(0x259)]=window['setInterval'](()=>{const _0x3a4bee=_0x16ef9e;this[_0x3a4bee(0x1a7)]({'type':0x2,'memberID':this[_0x3a4bee(0x1c4)]});},Me);}['_ensureSubject'](_0x5dd7fb){const _0x126775=_0x121fa1;return this[_0x126775(0x16c)][_0x126775(0x295)](_0x5dd7fb)||this[_0x126775(0x16c)]['set'](_0x5dd7fb,new d[(_0x126775(0x368))](u['UnitStatus'][_0x126775(0x36a)])),this[_0x126775(0x16c)][_0x126775(0x192)](_0x5dd7fb);}}var Be=(_0x1e7c36=>(_0x1e7c36[_0x1e7c36['UNDEFINED']=0x0]='UNDEFINED',_0x1e7c36[_0x1e7c36['OK']=0x1]='OK',_0x1e7c36[_0x1e7c36[_0x121fa1(0x39b)]=0x2]=_0x121fa1(0x39b),_0x1e7c36[_0x1e7c36[_0x121fa1(0x162)]=0x3]=_0x121fa1(0x162),_0x1e7c36[_0x1e7c36[_0x121fa1(0x31a)]=0x4]=_0x121fa1(0x31a),_0x1e7c36[_0x1e7c36['UNAUTHENTICATED']=0x5]=_0x121fa1(0x32b),_0x1e7c36[_0x1e7c36['ALREADY_EXISTS']=0x6]=_0x121fa1(0x2c5),_0x1e7c36[_0x1e7c36[_0x121fa1(0x21e)]=0x7]=_0x121fa1(0x21e),_0x1e7c36[_0x1e7c36[_0x121fa1(0x174)]=0x8]=_0x121fa1(0x174),_0x1e7c36[_0x1e7c36[_0x121fa1(0x25a)]=0x9]=_0x121fa1(0x25a),_0x1e7c36[_0x1e7c36['LOGIN_FAILED']=0xa]=_0x121fa1(0x275),_0x1e7c36[_0x1e7c36[_0x121fa1(0x265)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x1e7c36[_0x1e7c36[_0x121fa1(0x1ef)]=0x1771]=_0x121fa1(0x1ef),_0x1e7c36[_0x1e7c36[_0x121fa1(0x1ad)]=0x1772]=_0x121fa1(0x1ad),_0x1e7c36[_0x1e7c36[_0x121fa1(0x2c0)]=0x1773]=_0x121fa1(0x2c0),_0x1e7c36[_0x1e7c36[_0x121fa1(0x2d5)]=0x1b59]=_0x121fa1(0x2d5),_0x1e7c36[_0x1e7c36['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x121fa1(0x182),_0x1e7c36[_0x1e7c36['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x121fa1(0x382),_0x1e7c36[_0x1e7c36['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x121fa1(0x12a),_0x1e7c36[_0x1e7c36['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x1e7c36[_0x1e7c36[_0x121fa1(0x148)]=0x1f41]=_0x121fa1(0x148),_0x1e7c36[_0x1e7c36['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1e7c36[_0x1e7c36[_0x121fa1(0x1f4)]=0x232a]=_0x121fa1(0x1f4),_0x1e7c36[_0x1e7c36[_0x121fa1(0x266)]=0x232b]=_0x121fa1(0x266),_0x1e7c36[_0x1e7c36[_0x121fa1(0x297)]=0x232c]=_0x121fa1(0x297),_0x1e7c36[_0x1e7c36[_0x121fa1(0x1f0)]=0x232d]=_0x121fa1(0x1f0),_0x1e7c36[_0x1e7c36[_0x121fa1(0x13e)]=0x2711]=_0x121fa1(0x13e),_0x1e7c36[_0x1e7c36[_0x121fa1(0x29e)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x1e7c36[_0x1e7c36[_0x121fa1(0x30d)]=0x2713]=_0x121fa1(0x30d),_0x1e7c36[_0x1e7c36[_0x121fa1(0x216)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x1e7c36[_0x1e7c36['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]='YUUMI_NO_CUBOID_FOR_QUESTION',_0x1e7c36[_0x1e7c36[_0x121fa1(0x20f)]=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x1e7c36[_0x1e7c36[_0x121fa1(0x1d2)]=0x2af9]=_0x121fa1(0x1d2),_0x1e7c36[_0x1e7c36['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x121fa1(0x1eb),_0x1e7c36[_0x1e7c36['INVALID_INVITE_CODE']=0x2ee2]=_0x121fa1(0x2d6),_0x1e7c36[_0x1e7c36['INVITE_CODE_REQUIRED']=0x2ee3]=_0x121fa1(0x333),_0x1e7c36[_0x1e7c36[_0x121fa1(0x1ca)]=0x2ee4]=_0x121fa1(0x1ca),_0x1e7c36[_0x1e7c36[_0x121fa1(0x2e1)]=0x2ee5]=_0x121fa1(0x2e1),_0x1e7c36[_0x1e7c36[_0x121fa1(0x32a)]=0x32c9]=_0x121fa1(0x32a),_0x1e7c36[_0x1e7c36[_0x121fa1(0x2fa)]=0x32ca]=_0x121fa1(0x2fa),_0x1e7c36[_0x1e7c36[_0x121fa1(0x1ed)]=0x32cb]=_0x121fa1(0x1ed),_0x1e7c36[_0x1e7c36['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x1e7c36))(Be||{}),ns=Object[_0x121fa1(0x383)],rs=(_0x36570e,_0x405a85,_0x3915c7,_0x43d78c)=>{const _0x54a6af=_0x121fa1;for(var _0x5c51ac=_0x43d78c>0x1?void 0x0:_0x43d78c?ns(_0x405a85,_0x3915c7):_0x405a85,_0x470500=_0x36570e[_0x54a6af(0x363)]-0x1,_0x36e995;_0x470500>=0x0;_0x470500--)(_0x36e995=_0x36570e[_0x470500])&&(_0x5c51ac=_0x36e995(_0x5c51ac)||_0x5c51ac);return _0x5c51ac;},ue=(_0x20cdd3,_0x3228a0)=>(_0x42198c,_0x5d13e6)=>_0x3228a0(_0x42198c,_0x5d13e6,_0x20cdd3);exports[_0x121fa1(0x1a1)]=class extends a[_0x121fa1(0x28d)]{constructor(_0x180781,_0x13616c,_0x3127ce){const _0x3beaeb=_0x121fa1;super(),this[_0x3beaeb(0x19e)]=_0x180781,this[_0x3beaeb(0x12c)]=_0x13616c,this[_0x3beaeb(0x344)]=_0x3127ce;}async[_0x121fa1(0x1fb)](_0x6fbad1,_0x1070b2,_0x284ea1,..._0xcc0518){const _0x23f10d=_0x121fa1;var _0x359609,_0x52315e,_0xc07287,_0x3ca570;const _0x59f1e9=this[_0x23f10d(0x19e)][_0x23f10d(0x1b5)]();if(!_0x59f1e9)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x477b3b=((_0x359609=this[_0x23f10d(0x344)][_0x23f10d(0x23b)](u[_0x23f10d(0x1c7)]))!=null?_0x359609:u['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT'])+'/'+_0x6fbad1+_0x23f10d(0x319)+_0x1070b2,_0x1b16bf=new URL(window[_0x23f10d(0x250)][_0x23f10d(0x165)]),_0x197ab7={'scriptId':_0x6fbad1,'runId':(_0x52315e=_0x1b16bf[_0x23f10d(0x35b)][_0x23f10d(0x192)](_0x23f10d(0x2e6)))!=null?_0x52315e:'','function':_0x1070b2,'unitId':_0x59f1e9['getUnitId'](),'argsOfFunction':JSON[_0x23f10d(0x1b3)](_0xcc0518),'invokeId':(_0xc07287=_0x284ea1[_0x23f10d(0x21d)])!=null?_0xc07287:'','executionId':(_0x3ca570=_0x284ea1[_0x23f10d(0x230)])!=null?_0x3ca570:''};try{const _0x488401=await this['_httpService'][_0x23f10d(0x201)](_0x477b3b,{'body':_0x197ab7});return _0x488401[_0x23f10d(0x152)]['error']&&_0x488401['body'][_0x23f10d(0x2cf)][_0x23f10d(0x318)]!==Be['OK']?_0x23f10d(0x296):_0x488401[_0x23f10d(0x152)][_0x23f10d(0x223)];}catch{return _0x23f10d(0x296);}}},exports['RemoteUniscriptService']=rs([ue(0x0,a[_0x121fa1(0x1a0)]),ue(0x1,a[_0x121fa1(0x227)](G[_0x121fa1(0x210)])),ue(0x2,a[_0x121fa1(0x392)])],exports[_0x121fa1(0x1a1)]),exports['CollaborationStatusDisplay']=xe,exports['IURLService']=be,exports[_0x121fa1(0x2f8)]=we,exports[_0x121fa1(0x286)]=is,exports[_0x121fa1(0x1da)]=je;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';const _0x705d27=_0x553e;function _0x553e(_0x156bd2,_0xf1c0bd){const _0xc2cfd=_0xc2cf();return _0x553e=function(_0x553e6b,_0x3aea4a){_0x553e6b=_0x553e6b-0xc9;let _0x34aec1=_0xc2cfd[_0x553e6b];return _0x34aec1;},_0x553e(_0x156bd2,_0xf1c0bd);}(function(_0x4d31b2,_0x30a609){const _0x5d3958=_0x553e,_0x590131=_0x4d31b2();while(!![]){try{const _0x2e7a66=parseInt(_0x5d3958(0xe0))/0x1+parseInt(_0x5d3958(0xd7))/0x2*(parseInt(_0x5d3958(0xdb))/0x3)+-parseInt(_0x5d3958(0xd8))/0x4*(parseInt(_0x5d3958(0xdd))/0x5)+parseInt(_0x5d3958(0xcb))/0x6*(-parseInt(_0x5d3958(0xe3))/0x7)+parseInt(_0x5d3958(0xe2))/0x8*(parseInt(_0x5d3958(0xd3))/0x9)+-parseInt(_0x5d3958(0xcf))/0xa+parseInt(_0x5d3958(0xce))/0xb*(parseInt(_0x5d3958(0xd9))/0xc);if(_0x2e7a66===_0x30a609)break;else _0x590131['push'](_0x590131['shift']());}catch(_0x4465c3){_0x590131['push'](_0x590131['shift']());}}}(_0xc2cf,0xdb643));const e={'collab-client':{'tooltip':{'reconnect':_0x705d27(0xdc)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x705d27(0xc9),'notCollab':_0x705d27(0xcd),'synced':_0x705d27(0xe4),'syncing':_0x705d27(0xd2),'offline':_0x705d27(0xd1)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':_0x705d27(0xd0),'collaboration-timeout':_0x705d27(0xe1)},'conflict':{'title':_0x705d27(0xdf),'content':_0x705d27(0xd5)},'permission':{'title':_0x705d27(0xcc),'content':_0x705d27(0xd4)},'collaboration':{'single-unit':{'warning':_0x705d27(0xd6)},'closeRoom':_0x705d27(0xda)},'auth':{'needGotoLoginAlert':_0x705d27(0xca)}};function _0xc2cf(){const _0x1a533a=['Local\x20file','5360069NuQYIW','12102660shcXQD','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Syncing...','260811vEWrrF','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','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.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','2oybEaN','74236eKUGbE','24vAxPCd','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','1249626fFkQgu','Click\x20to\x20Reconnect','40sLBAJE','exports','Collaboration\x20Conflict','1493479PvQxzX','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','56UEExVM','17661QyJUud','Synced','Edit\x20conflicts','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','1974mdyvHK','Authentication\x20Error'];_0xc2cf=function(){return _0x1a533a;};return _0xc2cf();}module[_0x705d27(0xde)]=e;
|