@univerjs-pro/collaboration-client-ui 0.8.0-nightly.202506091607 → 0.8.0-nightly.202506111607
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 +15 -15
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x936d(){const _0x50f2d4=['@univerjs-pro/collaboration-client-ui','348986QhaETU','13218898xizNqT','runOnServer','RemoteUniscriptService','50572KKPzdd','205186ZOAqDg','1886624NpmfSA','extend','981diuTTb','6kgpzSK','FUniver','@univerjs/core/facade','54AAijGL','_injector','30910diBwfR','85rLNYcA','44338lpqFSV'];_0x936d=function(){return _0x50f2d4;};return _0x936d();}const _0x167ac7=_0x2167;(function(_0x2f65f6,_0x58cb34){const _0x5a8000=_0x2167,_0xe6a5ce=_0x2f65f6();while(!![]){try{const _0x5f9e78=parseInt(_0x5a8000(0x14e))/0x1+-parseInt(_0x5a8000(0x153))/0x2*(-parseInt(_0x5a8000(0x145))/0x3)+-parseInt(_0x5a8000(0x152))/0x4*(-parseInt(_0x5a8000(0x14b))/0x5)+parseInt(_0x5a8000(0x148))/0x6*(parseInt(_0x5a8000(0x14c))/0x7)+parseInt(_0x5a8000(0x154))/0x8+-parseInt(_0x5a8000(0x144))/0x9*(-parseInt(_0x5a8000(0x14a))/0xa)+-parseInt(_0x5a8000(0x14f))/0xb;if(_0x5f9e78===_0x58cb34)break;else _0xe6a5ce['push'](_0xe6a5ce['shift']());}catch(_0x219941){_0xe6a5ce['push'](_0xe6a5ce['shift']());}}}(_0x936d,0x30212));function _0x2167(_0x290f1d,_0x3dfab0){const _0x936d31=_0x936d();return _0x2167=function(_0x2167ba,_0xa3e3e3){_0x2167ba=_0x2167ba-0x143;let _0x20c5e7=_0x936d31[_0x2167ba];return _0x20c5e7;},_0x2167(_0x290f1d,_0x3dfab0);}const t=require(_0x167ac7(0x14d)),e=require(_0x167ac7(0x147));class c extends e[_0x167ac7(0x146)]{[_0x167ac7(0x150)](_0x469e6f,_0x315505,..._0x3a7133){const _0x1403b1=_0x167ac7;return this[_0x1403b1(0x149)]['get'](t[_0x1403b1(0x151)])[_0x1403b1(0x150)](_0x469e6f,_0x315505,{},..._0x3a7133);}}e[_0x167ac7(0x146)][_0x167ac7(0x143)](c);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x51cf5f=_0x406e;(function(_0x1c9e1f,_0xc8dae7){const _0x39dc3f=_0x406e,_0x109420=_0x1c9e1f();while(!![]){try{const _0x446d49=parseInt(_0x39dc3f(0x330))/0x1+parseInt(_0x39dc3f(0x1ac))/0x2+-parseInt(_0x39dc3f(0x2cf))/0x3*(-parseInt(_0x39dc3f(0x336))/0x4)+parseInt(_0x39dc3f(0x290))/0x5+parseInt(_0x39dc3f(0x23e))/0x6+parseInt(_0x39dc3f(0x1b3))/0x7+-parseInt(_0x39dc3f(0x33f))/0x8*(parseInt(_0x39dc3f(0x2d5))/0x9);if(_0x446d49===_0xc8dae7)break;else _0x109420['push'](_0x109420['shift']());}catch(_0x257801){_0x109420['push'](_0x109420['shift']());}}}(_0x65eb,0xf036e));var Ve=Object[_0x51cf5f(0x348)],Xe=(_0x4126a1,_0x2d1228,_0x516455)=>_0x2d1228 in _0x4126a1?Ve(_0x4126a1,_0x2d1228,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x516455}):_0x4126a1[_0x2d1228]=_0x516455,h=(_0x299af4,_0x4c1b06,_0x262882)=>Xe(_0x299af4,typeof _0x4c1b06!='symbol'?_0x4c1b06+'':_0x4c1b06,_0x262882);Object[_0x51cf5f(0x348)](exports,Symbol[_0x51cf5f(0x2e5)],{'value':_0x51cf5f(0x17d)});const u=require('@univerjs-pro/collaboration-client'),a=require(_0x51cf5f(0x24e)),p=require(_0x51cf5f(0x23a)),G=require(_0x51cf5f(0x14d)),b=require(_0x51cf5f(0x397)),Ge=require('@univerjs/drawing'),d=require('rxjs'),Y=require('@univerjs/docs'),m=require('@univerjs-pro/collaboration'),Ee=require(_0x51cf5f(0x2af)),g=require(_0x51cf5f(0x137)),$=require(_0x51cf5f(0x1fe)),X=require(_0x51cf5f(0x3ae)),w=require('react/jsx-runtime'),T=require(_0x51cf5f(0x232)),D=require('@univerjs/design'),M=require(_0x51cf5f(0x320)),Ke=require(_0x51cf5f(0x166));var qe=Object[_0x51cf5f(0x377)],ze=(_0x30b602,_0x8d4aaf,_0x419f5a,_0xf1f080)=>{const _0xc6bcf0=_0x51cf5f;for(var _0x413540=_0xf1f080>0x1?void 0x0:_0xf1f080?qe(_0x8d4aaf,_0x419f5a):_0x8d4aaf,_0x1e5c0c=_0x30b602[_0xc6bcf0(0x296)]-0x1,_0x22841c;_0x1e5c0c>=0x0;_0x1e5c0c--)(_0x22841c=_0x30b602[_0x1e5c0c])&&(_0x413540=_0x22841c(_0x413540)||_0x413540);return _0x413540;},Te=(_0x334292,_0x22e618)=>(_0x4a7c37,_0x133792)=>_0x22e618(_0x4a7c37,_0x133792,_0x334292);let de=class extends a['RxDisposable']{constructor(_0x30cf4a,_0x34442e){const _0xb9415f=_0x51cf5f;super(),this[_0xb9415f(0x12b)]=_0x30cf4a,this[_0xb9415f(0x31c)]=_0x34442e,this[_0xb9415f(0x2f4)]();}[_0x51cf5f(0x2f4)](){const _0x49b6bc=_0x51cf5f,_0x268ca2=this;this[_0x49b6bc(0x1fa)](this['_docClipboardService'][_0x49b6bc(0x26a)]({'onBeforePasteImage':async _0x48c7c1=>{const _0x5b2ad2=_0x49b6bc,_0x1f28d2=await _0x268ca2[_0x5b2ad2(0x31c)][_0x5b2ad2(0x12d)](_0x48c7c1);return _0x1f28d2?{'source':_0x1f28d2[_0x5b2ad2(0x1cc)],'imageSourceType':_0x1f28d2[_0x5b2ad2(0x13d)]}:null;}}));}};de=ze([Te(0x0,b[_0x51cf5f(0x163)]),Te(0x1,Ge['IImageIoService'])],de);const Oe=['purple.300',_0x51cf5f(0x286),_0x51cf5f(0x1b4),_0x51cf5f(0x18b),_0x51cf5f(0x1ab),_0x51cf5f(0x2ce)];class me extends a[_0x51cf5f(0x188)]{constructor(){const _0xfe8f8a=_0x51cf5f;super(...arguments),h(this,_0xfe8f8a(0x223),new Map()),h(this,_0xfe8f8a(0x1c5),0x0);}['assignAColorForMemberID'](_0x511e35){const _0x2c3cf1=_0x51cf5f;if(this['_assignedColors'][_0x2c3cf1(0x2e2)](_0x511e35))return this['_assignedColors'][_0x2c3cf1(0x214)](_0x511e35);const _0xbe41ef=Oe[this[_0x2c3cf1(0x1c5)]];return this[_0x2c3cf1(0x1c5)]=(this[_0x2c3cf1(0x1c5)]+0x1)%Oe['length'],this['_assignedColors'][_0x2c3cf1(0x2e8)](_0x511e35,_0xbe41ef),_0xbe41ef;}}function we(_0x5f0dcc){const _0x11a3b4=_0x51cf5f;let _0x413952='';for(const _0x45e0df of _0x5f0dcc){const {startOffset:_0x1c7d90,endOffset:_0x2c28ac,isActive:_0x3f1eed,rangeType:_0x266775,segmentId:_0x5bd16b,segmentPage:_0x1a9a35}=_0x45e0df;_0x413952[_0x11a3b4(0x296)]&&(_0x413952+=','),_0x413952+=_0x1c7d90+':'+_0x2c28ac+':'+(_0x3f1eed?'1':'0')+':'+_0x266775+':'+_0x5bd16b+':'+_0x1a9a35;}return _0x413952;}function Je(_0x35cb32){const _0x17eeb9=_0x51cf5f,_0x3b614d=_0x35cb32[_0x17eeb9(0x1d4)](','),_0x484746=[];for(const _0x22cd87 of _0x3b614d){const [_0x53f97e,_0x1b37bd,_0x23ab33,_0x59c969,_0x33c45c,_0x15a83b]=_0x22cd87['split'](':');_0x484746[_0x17eeb9(0x326)]({'startOffset':Number(_0x53f97e),'endOffset':Number(_0x1b37bd),'collapsed':_0x53f97e===_0x1b37bd,'isActive':_0x23ab33==='1','rangeType':_0x59c969===a[_0x17eeb9(0x2ad)]['TEXT']?a[_0x17eeb9(0x2ad)][_0x17eeb9(0x28c)]:a[_0x17eeb9(0x2ad)]['RECT'],'segmentId':typeof _0x33c45c==_0x17eeb9(0x308)?String(_0x33c45c):'','segmentPage':Number(_0x15a83b!=null?_0x15a83b:-0x1)});}return _0x484746[_0x17eeb9(0x355)](_0x57df18=>_0x57df18[_0x17eeb9(0x268)])||(_0x484746[0x0][_0x17eeb9(0x268)]=!0x0),_0x484746;}class Ce extends a[_0x51cf5f(0x298)]{constructor(){const _0x228119=_0x51cf5f;super(...arguments),h(this,_0x228119(0x13e),new d[(_0x228119(0x365))](null)),h(this,_0x228119(0x331),this[_0x228119(0x13e)][_0x228119(0x387)]());}[_0x51cf5f(0x245)](_0x4683b0){const _0x4b0b17=_0x51cf5f,{unitID:_0x397368,memberID:_0x17efeb,textRanges:_0x445064}=_0x4683b0,_0x2e8556=we(_0x445064);if(_0x2e8556==='')return;const _0x3f9762={'unitID':_0x397368,'memberID':_0x17efeb,'selection':_0x2e8556};this[_0x4b0b17(0x13e)][_0x4b0b17(0x19c)](_0x3f9762);}}var Ze=Object['getOwnPropertyDescriptor'],Qe=(_0x357c41,_0x2ca4d0,_0x222805,_0x50f1cd)=>{const _0x51b80c=_0x51cf5f;for(var _0x53b392=_0x50f1cd>0x1?void 0x0:_0x50f1cd?Ze(_0x2ca4d0,_0x222805):_0x2ca4d0,_0x1baabb=_0x357c41[_0x51b80c(0x296)]-0x1,_0x1b46f1;_0x1baabb>=0x0;_0x1baabb--)(_0x1b46f1=_0x357c41[_0x1baabb])&&(_0x53b392=_0x1b46f1(_0x53b392)||_0x53b392);return _0x53b392;},L=(_0x51fe7e,_0x233fcf)=>(_0x4e5965,_0x4d9e65)=>_0x233fcf(_0x4e5965,_0x4d9e65,_0x51fe7e);const et=0x12c,tt=0x64;let fe=class extends a['RxDisposable']{constructor(_0x5322ef,_0x207351,_0x47b0d2,_0x3f6581,_0x4897ec,_0x2d1938,_0x4d6c3f,_0x21a8ac,_0x32e3cf){const _0x2d9da4=_0x51cf5f;super(),h(this,_0x2d9da4(0x17c),!0x1),h(this,_0x2d9da4(0x2f4),!0x1),h(this,_0x2d9da4(0x1ed),new d[(_0x2d9da4(0x365))](new Map())),h(this,'cursorInfo$',this[_0x2d9da4(0x1ed)][_0x2d9da4(0x387)]()),h(this,_0x2d9da4(0x2e1),new d[(_0x2d9da4(0x365))]([])),h(this,_0x2d9da4(0x3b9),this[_0x2d9da4(0x2e1)][_0x2d9da4(0x3a7)](d[_0x2d9da4(0x238)](et))),h(this,'_updateLocalCursor',a['debounce'](_0x3e3280=>{const _0x3937e8=_0x2d9da4,_0x339488={'eventID':m[_0x3937e8(0x16b)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x3937e8(0x191)][_0x3937e8(0x3aa)](),'selection':we(_0x3e3280)}};this['_session'][_0x3937e8(0x220)](_0x339488,this[_0x3937e8(0x1f4)]);},tt)),(this[_0x2d9da4(0x1f4)]=_0x5322ef,this[_0x2d9da4(0x191)]=_0x207351,this['_injector']=_0x47b0d2,this[_0x2d9da4(0x215)]=_0x3f6581,this[_0x2d9da4(0x18c)]=_0x4897ec,this[_0x2d9da4(0x247)]=_0x2d1938,this[_0x2d9da4(0x1a4)]=_0x4d6c3f,this[_0x2d9da4(0x28d)]=_0x21a8ac,this['_commandService']=_0x32e3cf);}get[_0x51cf5f(0x38c)](){const _0xae0130=_0x51cf5f;return this[_0xae0130(0x1ed)][_0xae0130(0x329)]();}get['roomMembers'](){const _0x2960d0=_0x51cf5f;return this[_0x2960d0(0x2e1)]['getValue']();}[_0x51cf5f(0x277)](){const _0x1b2e74=_0x51cf5f;super[_0x1b2e74(0x277)](),this['_cursorInfo$']['next'](new Map()),this[_0x1b2e74(0x1ed)][_0x1b2e74(0x21c)](),this['_roomMembers$'][_0x1b2e74(0x19c)]([]),this['_roomMembers$']['complete']();}[_0x51cf5f(0x22e)](){const _0x626536=_0x51cf5f;this['_init']||(this[_0x626536(0x2f4)]=!0x0,this['_session']['sessionStatus$'][_0x626536(0x3a7)](d[_0x626536(0x20d)](this['dispose$']))[_0x626536(0x254)](_0x43a3ff=>{const _0x1c8bff=_0x626536;_0x43a3ff===u[_0x1c8bff(0x23d)][_0x1c8bff(0x145)]?this[_0x1c8bff(0x26b)]():this[_0x1c8bff(0x207)]();}),this['_session']['event$'][_0x626536(0x3a7)](d['takeUntil'](this[_0x626536(0x28a)]))[_0x626536(0x254)](_0x5bd0c9=>{const _0x156d49=_0x626536,_0x58a140=_0x5bd0c9[_0x156d49(0x253)];_0x58a140===m[_0x156d49(0x16b)][_0x156d49(0x32a)]&&this[_0x156d49(0x210)](_0x5bd0c9),_0x58a140===m['CollaborationEvent'][_0x156d49(0x187)]&&this[_0x156d49(0x370)](_0x5bd0c9);}),this[_0x626536(0x1fa)](this[_0x626536(0x362)]['onCommandExecuted'](_0x45d742=>{const _0x54d7ed=_0x626536,_0x82c5e3=_0x45d742[_0x54d7ed(0x3b5)];_0x82c5e3!=null&&this['_online']&&_0x45d742['id']===Y[_0x54d7ed(0x274)]['id']&&_0x82c5e3[_0x54d7ed(0x395)]===this['unitID']&&_0x82c5e3[_0x54d7ed(0x2bd)]===!0x1&&_0x82c5e3[_0x54d7ed(0x287)][_0x54d7ed(0x296)]>0x0&&this[_0x54d7ed(0x27e)](_0x82c5e3[_0x54d7ed(0x287)]);})),this[_0x626536(0x247)][_0x626536(0x331)]['pipe'](d['takeUntil'](this[_0x626536(0x28a)]))[_0x626536(0x254)](_0x1dbb1d=>{const _0x47c427=_0x626536;if((_0x1dbb1d==null?void 0x0:_0x1dbb1d['unitID'])!==this[_0x47c427(0x1f4)])return;const _0x30d0ba={'eventID':m[_0x47c427(0x16b)]['UPDATE_CURSOR'],'data':_0x1dbb1d};this[_0x47c427(0x210)](_0x30d0ba);}),this[_0x626536(0x1fa)](this[_0x626536(0x362)][_0x626536(0x1a3)](_0x35af14=>{const _0x247e6b=_0x626536;if(_0x35af14[_0x247e6b(0x3b5)]==null)return;const _0x5897cf=_0x35af14[_0x247e6b(0x3b5)];if(_0x35af14['id']!==Y[_0x247e6b(0x26c)]['id']||_0x5897cf[_0x247e6b(0x395)]!==this[_0x247e6b(0x1f4)])return;const _0x171a41={'id':_0x247e6b(0x292),'params':_0x5897cf},_0x487d3c=this[_0x247e6b(0x38c)];for(const [_0xdca5a1,_0x38f962]of _0x487d3c){const _0x2f0a15={'id':_0x247e6b(0x292),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x38f962['ranges']}},_0x274339=this[_0x247e6b(0x1a4)][_0x247e6b(0x148)](_0x171a41,_0x2f0a15,!0x1);if(m[_0x247e6b(0x201)](_0x274339))throw _0x274339['error'];_0x487d3c[_0x247e6b(0x2e8)](_0xdca5a1,{..._0x38f962,'ranges':_0x274339[_0x247e6b(0x3af)]['params'][_0x247e6b(0x225)]});}queueMicrotask(()=>{const _0x3cc912=_0x247e6b;this[_0x3cc912(0x1ed)][_0x3cc912(0x19c)](_0x487d3c);});})));}[_0x51cf5f(0x210)](_0x1fa907){const _0x37d1ad=_0x51cf5f;var _0x2706fd,_0xdeefe7;const {memberID:_0x48eca1,selection:_0x43b91e}=_0x1fa907['data'],_0x1e276c=Je(_0x43b91e),_0x48b960=(_0xdeefe7=(_0x2706fd=this[_0x37d1ad(0x18c)][_0x37d1ad(0x282)](this[_0x37d1ad(0x1f4)],_0x48eca1))==null?void 0x0:_0x2706fd['name'])!=null?_0xdeefe7:'Unknown\x20user',_0x564f9d={'color':this[_0x37d1ad(0x215)][_0x37d1ad(0x35f)](_0x48eca1),'name':_0x48b960,'ranges':_0x1e276c},_0x19e89b=this['cursorInfo'];_0x19e89b[_0x37d1ad(0x2e8)](_0x48eca1,_0x564f9d),this['_cursorInfo$'][_0x37d1ad(0x19c)](_0x19e89b);}[_0x51cf5f(0x370)](_0x21b74a){const _0x2cf34e=_0x51cf5f,{memberID:_0x222e63}=_0x21b74a[_0x2cf34e(0x2eb)],_0x17ac89=this[_0x2cf34e(0x38c)];_0x17ac89[_0x2cf34e(0x1cb)](_0x222e63),this['_cursorInfo$'][_0x2cf34e(0x19c)](_0x17ac89);}[_0x51cf5f(0x26b)](){const _0x2ad857=_0x51cf5f;var _0x201859;if(this['_online']=!0x0,((_0x201859=this[_0x2ad857(0x28d)][_0x2ad857(0x340)]())==null?void 0x0:_0x201859[_0x2ad857(0x14f)]())!==this[_0x2ad857(0x1f4)])return;const _0x3e1960=this['_injector'][_0x2ad857(0x214)](Y['DocSelectionManagerService'])[_0x2ad857(0x1e8)]();Array[_0x2ad857(0x273)](_0x3e1960)&&_0x3e1960[_0x2ad857(0x296)]>0x0&&this[_0x2ad857(0x27e)](_0x3e1960);}[_0x51cf5f(0x207)](){const _0x3273bc=_0x51cf5f;this[_0x3273bc(0x17c)]=!0x1;}};fe=Qe([L(0x2,a['Inject'](a[_0x51cf5f(0x2be)])),L(0x3,a['Inject'](me)),L(0x4,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x267)])),L(0x5,a[_0x51cf5f(0x249)](Ce)),L(0x6,m[_0x51cf5f(0x339)]),L(0x7,a[_0x51cf5f(0x185)]),L(0x8,a['ICommandService'])],fe);var st=Object['getOwnPropertyDescriptor'],it=(_0x1fa032,_0x3cc087,_0x2048b4,_0x3c1f13)=>{const _0x1a1c70=_0x51cf5f;for(var _0x103e9a=_0x3c1f13>0x1?void 0x0:_0x3c1f13?st(_0x3cc087,_0x2048b4):_0x3cc087,_0x55e56f=_0x1fa032[_0x1a1c70(0x296)]-0x1,_0x662391;_0x55e56f>=0x0;_0x55e56f--)(_0x662391=_0x1fa032[_0x55e56f])&&(_0x103e9a=_0x662391(_0x103e9a)||_0x103e9a);return _0x103e9a;},A=(_0x749382,_0x43fcac)=>(_0x4e582f,_0x54d070)=>_0x43fcac(_0x4e582f,_0x54d070,_0x749382);const nt=0x12c,rt=0x64,ot=()=>{let _0x1efe6b=[],_0x352af6=!0x1;return _0x5a6cba=>{const _0x39c04=_0x406e;_0x1efe6b[_0x39c04(0x326)](_0x5a6cba),_0x352af6||(_0x352af6=!0x0,setTimeout(()=>{_0x1efe6b['forEach'](_0x5071a8=>_0x5071a8()),_0x1efe6b=[],_0x352af6=!0x1;}));};};let Se=class extends a['RxDisposable']{constructor(_0x5c2ef7,_0x4020a6,_0x1fcbe0,_0x56177c,_0x1b4ebe,_0x1ee3c8,_0x2b1765,_0x190ba0){const _0x4b27ba=_0x51cf5f;super(),h(this,_0x4b27ba(0x17c),!0x1),h(this,_0x4b27ba(0x2f4),!0x1),h(this,'_cursorInfo$',new d[(_0x4b27ba(0x365))](new Map())),h(this,_0x4b27ba(0x3ac),this[_0x4b27ba(0x1ed)]['asObservable']()),h(this,_0x4b27ba(0x2e1),new d[(_0x4b27ba(0x365))]([])),h(this,_0x4b27ba(0x3b9),this['_roomMembers$'][_0x4b27ba(0x3a7)](d[_0x4b27ba(0x238)](nt))),h(this,_0x4b27ba(0x27e),a[_0x4b27ba(0x246)]((_0x481c3b,_0x3da4be)=>{const _0x9eb8b2=_0x4b27ba,_0x2e63f7={'eventID':m[_0x9eb8b2(0x16b)][_0x9eb8b2(0x32a)],'data':{'unitID':this[_0x9eb8b2(0x1f4)],'memberID':this['_session']['getMemberID'](),'selection':Ee['serializeRangeWithSheet'](_0x481c3b,_0x3da4be[_0x9eb8b2(0x271)])}};this['_session'][_0x9eb8b2(0x220)](_0x2e63f7,this['unitID']);},rt)),(this[_0x4b27ba(0x1f4)]=_0x5c2ef7,this[_0x4b27ba(0x191)]=_0x4020a6,this[_0x4b27ba(0x382)]=_0x1fcbe0,this[_0x4b27ba(0x215)]=_0x56177c,this[_0x4b27ba(0x18c)]=_0x1b4ebe,this['_univerInstanceService']=_0x1ee3c8,this[_0x4b27ba(0x362)]=_0x2b1765,this['_refRangeService']=_0x190ba0);}get[_0x51cf5f(0x38c)](){const _0x15c22b=_0x51cf5f;return this[_0x15c22b(0x1ed)]['getValue']();}get[_0x51cf5f(0x343)](){const _0x5e7b43=_0x51cf5f;return this['_roomMembers$'][_0x5e7b43(0x329)]();}[_0x51cf5f(0x277)](){const _0x570c6b=_0x51cf5f;super[_0x570c6b(0x277)](),this['_cursorInfo$'][_0x570c6b(0x19c)](new Map()),this[_0x570c6b(0x1ed)][_0x570c6b(0x21c)](),this['_roomMembers$'][_0x570c6b(0x19c)]([]),this[_0x570c6b(0x2e1)][_0x570c6b(0x21c)]();}[_0x51cf5f(0x22e)](){const _0x33dd0d=_0x51cf5f;this[_0x33dd0d(0x2f4)]||(this['_init']=!0x0,this['_session'][_0x33dd0d(0x354)][_0x33dd0d(0x3a7)](d[_0x33dd0d(0x20d)](this['dispose$']))[_0x33dd0d(0x254)](_0x316d0d=>{const _0x2268f1=_0x33dd0d;_0x316d0d===u['SessionStatus'][_0x2268f1(0x145)]?this['_toggleOnline']():this[_0x2268f1(0x207)]();}),this[_0x33dd0d(0x191)][_0x33dd0d(0x341)][_0x33dd0d(0x3a7)](d['takeUntil'](this[_0x33dd0d(0x28a)]))[_0x33dd0d(0x254)](_0x19aee9=>{const _0xddc0b0=_0x33dd0d,_0xc42298=_0x19aee9[_0xddc0b0(0x253)];_0xc42298===m[_0xddc0b0(0x16b)]['UPDATE_CURSOR']&&this[_0xddc0b0(0x210)](_0x19aee9),_0xc42298===m[_0xddc0b0(0x16b)][_0xddc0b0(0x187)]&&this[_0xddc0b0(0x370)](_0x19aee9);}),this['_onRefRangeChange'](),this[_0x33dd0d(0x1fa)](this['_commandService']['onCommandExecuted'](_0x54bcd5=>{const _0x2060fd=_0x33dd0d;if(this[_0x2060fd(0x17c)]&&_0x54bcd5['id']===g[_0x2060fd(0x17f)]['id']&&_0x54bcd5['params'][_0x2060fd(0x395)]===this[_0x2060fd(0x1f4)]){const _0x1dcf18=_0x54bcd5[_0x2060fd(0x3b5)];this[_0x2060fd(0x27e)](_0x1dcf18[_0x2060fd(0x32c)],_0x1dcf18[_0x2060fd(0x195)][0x0]);}})));}[_0x51cf5f(0x210)](_0x510931){const _0xfbab32=_0x51cf5f;var _0x553e9c,_0x39b48b;const {memberID:_0x5ce682,selection:_0x327146}=_0x510931['data'],{sheetName:_0xfd1b55,range:_0x1281f7}=Ee['deserializeRangeWithSheet'](_0x327146),_0x491e89={'name':(_0x39b48b=(_0x553e9c=this[_0xfbab32(0x18c)][_0xfbab32(0x282)](this[_0xfbab32(0x1f4)],_0x5ce682))==null?void 0x0:_0x553e9c[_0xfbab32(0x2e6)])!=null?_0x39b48b:_0xfbab32(0x2f1),'range':this['_getMergeRange'](_0xfd1b55,_0x1281f7),'sheetID':_0xfd1b55,'color':this[_0xfbab32(0x215)][_0xfbab32(0x35f)](_0x5ce682),'selection':_0x327146},_0x3b35ff=this[_0xfbab32(0x38c)];_0x3b35ff[_0xfbab32(0x2e8)](_0x5ce682,_0x491e89),this['_cursorInfo$'][_0xfbab32(0x19c)](_0x3b35ff);}[_0x51cf5f(0x370)](_0x42db7f){const _0x39d84b=_0x51cf5f,{memberID:_0x9a3642}=_0x42db7f[_0x39d84b(0x2eb)],_0x54d2fc=this[_0x39d84b(0x38c)];_0x54d2fc[_0x39d84b(0x1cb)](_0x9a3642),this['_cursorInfo$'][_0x39d84b(0x19c)](_0x54d2fc);}[_0x51cf5f(0x180)](_0x12121f,_0x1bb165){const _0x48aea5=_0x51cf5f;var _0x15abaf,_0xae6f81;const _0xa3a3fc=(_0xae6f81=(_0x15abaf=this[_0x48aea5(0x28d)][_0x48aea5(0x305)](this['unitID']))==null?void 0x0:_0x15abaf[_0x48aea5(0x2ec)](_0x12121f))==null?void 0x0:_0xae6f81[_0x48aea5(0x24c)]();return(_0xa3a3fc==null?void 0x0:_0xa3a3fc['find'](_0x4e1481=>a[_0x48aea5(0x173)][_0x48aea5(0x1e9)](_0x4e1481,_0x1bb165)))||_0x1bb165;}['_onRefRangeChange'](){const _0x13de0c=_0x51cf5f,_0x315432=new a[(_0x13de0c(0x193))](),_0x535d62=ot(),_0x52e055=()=>{const _0x35e45b=_0x13de0c;_0x315432['dispose']();const _0x232a12=(_0x5f090e,_0x2a9410,_0x3bccb2,_0x3eba40)=>{const _0x3b1cc3=_0x406e;let _0x54f620=[];switch(_0x5f090e['id']){case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x135)]:{_0x54f620=g[_0x3b1cc3(0x300)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x14e)]:{_0x54f620=g[_0x3b1cc3(0x359)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x1e0)]:{_0x54f620=g[_0x3b1cc3(0x168)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x208)]:{_0x54f620=g[_0x3b1cc3(0x250)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x38f)]:{_0x54f620=g['handleInsertRangeMoveRight'](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x27b)]:{_0x54f620=g[_0x3b1cc3(0x3a2)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x1d8)]:{_0x54f620=g[_0x3b1cc3(0x2de)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)]['RemoveColCommandId']:{_0x54f620=g[_0x3b1cc3(0x375)](_0x5f090e,_0x3eba40);break;}case g[_0x3b1cc3(0x16d)][_0x3b1cc3(0x33e)]:{_0x54f620=g[_0x3b1cc3(0x28b)](_0x5f090e,_0x3eba40);break;}}const _0x1c8fc7=g[_0x3b1cc3(0x156)](_0x54f620,_0x3eba40),_0x395b5f=this['cursorInfo'][_0x3b1cc3(0x214)](_0x2a9410);if(_0x395b5f&&_0x1c8fc7){const _0xea599e={..._0x395b5f,'range':_0x1c8fc7};this[_0x3b1cc3(0x38c)][_0x3b1cc3(0x2e8)](_0x2a9410,_0xea599e),_0x535d62(()=>{const _0x1d8efb=_0x3b1cc3,_0x18e406=this[_0x1d8efb(0x3a3)][_0x1d8efb(0x1b6)](_0x1c8fc7,_0x533085=>(_0x18e406['dispose'](),_0x232a12(_0x533085,_0x2a9410,_0x3bccb2,_0x1c8fc7)));_0x315432['add'](_0x18e406);});}return{'redos':[],'undos':[]};};this[_0x35e45b(0x38c)]['forEach']((_0x2b670c,_0x46deb9)=>{const _0x16b4b5=_0x35e45b,{range:_0x29a154,sheetID:_0x1e6ad1}=_0x2b670c,_0x18b67d=this['_refRangeService']['registerRefRange'](_0x29a154,_0x5c8467=>(_0x18b67d[_0x16b4b5(0x277)](),_0x232a12(_0x5c8467,_0x46deb9,_0x1e6ad1,_0x29a154)));_0x315432[_0x16b4b5(0x1e2)](_0x18b67d);});};this[_0x13de0c(0x1fa)](a[_0x13de0c(0x30a)](this['_cursorInfo$'][_0x13de0c(0x254)](()=>{_0x52e055();})));}[_0x51cf5f(0x26b)](){const _0x3494c7=_0x51cf5f;var _0x4d15a6,_0x2efe53;if(this[_0x3494c7(0x17c)]=!0x0,((_0x4d15a6=this[_0x3494c7(0x28d)][_0x3494c7(0x340)]())==null?void 0x0:_0x4d15a6[_0x3494c7(0x14f)]())!==this[_0x3494c7(0x1f4)])return;const _0x3672bd=(_0x2efe53=this['_injector'][_0x3494c7(0x214)](g[_0x3494c7(0x39b)])[_0x3494c7(0x237)]())==null?void 0x0:_0x2efe53[0x0],_0x496bc9=this['_univerInstanceService'][_0x3494c7(0x2c8)](a[_0x3494c7(0x304)][_0x3494c7(0x2fd)])[_0x3494c7(0x171)]();_0x3672bd&&_0x496bc9&&this[_0x3494c7(0x27e)](_0x496bc9['getSheetId'](),_0x3672bd);}['_toggleOffline'](){const _0x419655=_0x51cf5f;this[_0x419655(0x17c)]=!0x1;}};Se=it([A(0x2,a[_0x51cf5f(0x249)](a['Injector'])),A(0x3,a[_0x51cf5f(0x249)](me)),A(0x4,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x267)])),A(0x5,a[_0x51cf5f(0x185)]),A(0x6,a[_0x51cf5f(0x36e)]),A(0x7,a[_0x51cf5f(0x249)](g[_0x51cf5f(0x384)]))],Se);var at=Object['getOwnPropertyDescriptor'],ct=(_0x1d0b39,_0x5da8be,_0x476082,_0x45587f)=>{const _0x4cc240=_0x51cf5f;for(var _0xe3d928=_0x45587f>0x1?void 0x0:_0x45587f?at(_0x5da8be,_0x476082):_0x5da8be,_0x457624=_0x1d0b39[_0x4cc240(0x296)]-0x1,_0x16ee72;_0x457624>=0x0;_0x457624--)(_0x16ee72=_0x1d0b39[_0x457624])&&(_0xe3d928=_0x16ee72(_0xe3d928)||_0xe3d928);return _0xe3d928;},ie=(_0x2f367c,_0x272923)=>(_0x2bc554,_0x56cfca)=>_0x272923(_0x2bc554,_0x56cfca,_0x2f367c);let x=class extends a[_0x51cf5f(0x298)]{constructor(_0x38b4a2,_0x199ead,_0xfad773){const _0x4008ac=_0x51cf5f;super(),h(this,_0x4008ac(0x1ca),new Map()),h(this,_0x4008ac(0x1c2),new d[(_0x4008ac(0x37e))]()),(this[_0x4008ac(0x28d)]=_0x38b4a2,this[_0x4008ac(0x382)]=_0x199ead,this[_0x4008ac(0x192)]=_0xfad773,this[_0x4008ac(0x2f4)]());}[_0x51cf5f(0x277)](){const _0xa0d7b6=_0x51cf5f;super[_0xa0d7b6(0x277)](),this[_0xa0d7b6(0x1c2)]['complete'](),this[_0xa0d7b6(0x1ca)][_0xa0d7b6(0x2ba)](_0x1603d4=>_0x1603d4['dispose']());}[_0x51cf5f(0x2a4)](_0x2fc904){const _0x3ebbbf=_0x51cf5f;return this[_0x3ebbbf(0x1ca)][_0x3ebbbf(0x2e2)](_0x2fc904)?this[_0x3ebbbf(0x1ca)][_0x3ebbbf(0x214)](_0x2fc904)['cursorInfo$']:this[_0x3ebbbf(0x1c2)]['pipe'](d[_0x3ebbbf(0x1d0)](_0x57e45d=>_0x57e45d[_0x3ebbbf(0x1f4)]===_0x2fc904),d[_0x3ebbbf(0x1d5)](_0x17b17f=>_0x17b17f['cursorInfo$']));}['_init'](){const _0x21f428=_0x51cf5f;this[_0x21f428(0x28d)][_0x21f428(0x1e1)](a[_0x21f428(0x304)][_0x21f428(0x2fd)])[_0x21f428(0x3a7)](d['takeUntil'](this['dispose$']))[_0x21f428(0x254)](async _0x29ff36=>{const _0x4b3590=_0x21f428,_0x21f92e=_0x29ff36[_0x4b3590(0x14f)](),_0x22a407=await this[_0x4b3590(0x1b2)](_0x21f92e);this[_0x4b3590(0x1c2)][_0x4b3590(0x19c)](_0x22a407),this[_0x4b3590(0x1ca)][_0x4b3590(0x2e8)](_0x21f92e,_0x22a407);}),this[_0x21f428(0x28d)][_0x21f428(0x1e1)](a[_0x21f428(0x304)][_0x21f428(0x288)])[_0x21f428(0x3a7)](d[_0x21f428(0x20d)](this['dispose$']))[_0x21f428(0x3a7)](d['filter'](_0x99cc9b=>!_0x99cc9b['getUnitId']()[_0x21f428(0x142)]('__')))[_0x21f428(0x254)](async _0x4b4ae3=>{const _0x23306=_0x21f428,_0x520eef=_0x4b4ae3['getUnitId'](),_0x3217e8=await this['_startDocCollabCursor'](_0x520eef);this['_entityInit$'][_0x23306(0x19c)](_0x3217e8),this['_entities'][_0x23306(0x2e8)](_0x520eef,_0x3217e8);}),d[_0x21f428(0x2fc)](this[_0x21f428(0x28d)][_0x21f428(0x29d)](a[_0x21f428(0x304)][_0x21f428(0x288)]),this[_0x21f428(0x28d)][_0x21f428(0x29d)](a[_0x21f428(0x304)]['UNIVER_SHEET']))[_0x21f428(0x3a7)](d[_0x21f428(0x20d)](this['dispose$']))['subscribe'](_0x3dffea=>{const _0x26fb62=_0x21f428,_0x34449a=_0x3dffea[_0x26fb62(0x14f)](),_0x2f6f4b=this[_0x26fb62(0x1ca)]['get'](_0x34449a);_0x2f6f4b&&(_0x2f6f4b[_0x26fb62(0x277)](),this['_entities'][_0x26fb62(0x1cb)](_0x34449a));});}async[_0x51cf5f(0x1b2)](_0x4f8e5b){const _0xfee5ee=_0x51cf5f,_0x565cb1=await this['_collabSessionService'][_0xfee5ee(0x2fe)](_0x4f8e5b),_0x370b73=this[_0xfee5ee(0x382)][_0xfee5ee(0x30f)](Se,_0x4f8e5b,_0x565cb1);return _0x370b73[_0xfee5ee(0x22e)](),_0x370b73;}async[_0x51cf5f(0x1eb)](_0x43339e){const _0x5683d9=_0x51cf5f,_0x1eaf9d=await this[_0x5683d9(0x192)][_0x5683d9(0x2fe)](_0x43339e),_0x223e33=this[_0x5683d9(0x382)][_0x5683d9(0x30f)](fe,_0x43339e,_0x1eaf9d);return _0x223e33['init'](),_0x223e33;}};x=ct([ie(0x0,a[_0x51cf5f(0x185)]),ie(0x1,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),ie(0x2,a['Inject'](u[_0x51cf5f(0x386)]))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x450f53,_0x28ddf3){const _0x25e9a3=_0x51cf5f;let {radius:_0x10bb36,width:_0x41d167,height:_0x9ea3d3}=_0x28ddf3;_0x10bb36=_0x10bb36!=null?_0x10bb36:0x0,_0x41d167=_0x41d167!=null?_0x41d167:0x1e,_0x9ea3d3=_0x9ea3d3!=null?_0x9ea3d3:0x1e;let _0x5ec22b=0x0,_0x15ab57=0x0,_0x13fb4f=0x0;_0x5ec22b=_0x15ab57=_0x13fb4f=Math[_0x25e9a3(0x217)](_0x10bb36,_0x41d167/0x2,_0x9ea3d3/0x2),_0x450f53[_0x25e9a3(0x257)](),_0x450f53[_0x25e9a3(0x31f)](_0x5ec22b,0x0),_0x450f53[_0x25e9a3(0x147)](_0x41d167-_0x15ab57,0x0),_0x450f53['arc'](_0x41d167-_0x15ab57,_0x15ab57,_0x15ab57,Math['PI']*0x3/0x2,0x0,!0x1),_0x450f53[_0x25e9a3(0x147)](_0x41d167,_0x9ea3d3-_0x13fb4f),_0x450f53[_0x25e9a3(0x202)](_0x41d167-_0x13fb4f,_0x9ea3d3-_0x13fb4f,_0x13fb4f,0x0,Math['PI']/0x2,!0x1),_0x450f53['lineTo'](0x0,_0x9ea3d3),_0x450f53[_0x25e9a3(0x147)](0x0,_0x5ec22b),_0x450f53['arc'](_0x5ec22b,_0x5ec22b,_0x5ec22b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x450f53[_0x25e9a3(0x1a1)](),_0x28ddf3[_0x25e9a3(0x2ff)]&&(_0x450f53['save'](),_0x450f53[_0x25e9a3(0x34b)]=_0x28ddf3['fill'],_0x28ddf3[_0x25e9a3(0x2bb)]==='evenodd'?_0x450f53[_0x25e9a3(0x2ff)](_0x25e9a3(0x2b7)):_0x450f53[_0x25e9a3(0x2ff)](),_0x450f53[_0x25e9a3(0x143)]());}class ee extends p[_0x51cf5f(0x189)]{constructor(_0x3ac461,_0x2699a7){const _0x1e335d=_0x51cf5f;super(_0x3ac461,_0x2699a7),h(this,_0x1e335d(0x39f)),h(this,_0x1e335d(0x36a)),(this['color']=_0x2699a7==null?void 0x0:_0x2699a7[_0x1e335d(0x39f)],this['text']=_0x2699a7==null?void 0x0:_0x2699a7[_0x1e335d(0x36a)]);}static[_0x51cf5f(0x28f)](_0x2c7975,_0x459ba9){const _0x16f6db=_0x51cf5f,{text:_0x3f0fb6,color:_0x46b91a}=_0x459ba9;_0x2c7975[_0x16f6db(0x14a)](),_0x2c7975[_0x16f6db(0x2a9)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x5e704f=_0x2c7975['measureText'](_0x3f0fb6)[_0x16f6db(0x1bc)],_0x2e611f=Math[_0x16f6db(0x217)](_0x5e704f+0x2*ne,Re);_t(_0x2c7975,{'height':K,'radius':0x4,'width':_0x2e611f,'fill':_0x46b91a}),_0x2c7975[_0x16f6db(0x34b)]=_0x16f6db(0x2b0);const _0x5c6ed2=ne,_0x115ce5=K-lt,_0x542b5f=Re-0x2*ne;if(_0x5e704f>_0x542b5f){let _0x15f2fd='',_0x376e34=0x0;for(const _0x1d3f93 of _0x3f0fb6){const _0x35d8df=_0x2c7975[_0x16f6db(0x36d)](_0x1d3f93)['width'];if(_0x376e34+_0x35d8df<=_0x542b5f-_0x2c7975['measureText'](_0x16f6db(0x165))[_0x16f6db(0x1bc)])_0x15f2fd+=_0x1d3f93,_0x376e34+=_0x35d8df;else{_0x15f2fd+=_0x16f6db(0x165);break;}}_0x2c7975['fillText'](_0x15f2fd,_0x5c6ed2,_0x115ce5);}else _0x2c7975[_0x16f6db(0x252)](_0x3f0fb6,_0x5c6ed2,_0x115ce5);_0x2c7975[_0x16f6db(0x143)]();}[_0x51cf5f(0x16c)](_0x1ff4ab){const _0x2d2b2c=_0x51cf5f;ee[_0x2d2b2c(0x28f)](_0x1ff4ab,this);}}const re='collab-text-anchor-',ht=_0x51cf5f(0x381),ut=_0x51cf5f(0x345),k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x51cf5f(0x18e);class De{constructor(_0x33b1f,_0x5a51ba,_0x1fe078,_0x4ab1a){const _0x4bc176=_0x51cf5f;h(this,_0x4bc176(0x2f2),[]),h(this,'_anchor',null),h(this,_0x4bc176(0x266),null),h(this,_0x4bc176(0x19f),null),h(this,'_hideTimer',null),h(this,_0x4bc176(0x172),null),(this[_0x4bc176(0x20e)]=_0x33b1f,this[_0x4bc176(0x12e)]=_0x5a51ba,this[_0x4bc176(0x25a)]=_0x1fe078,this[_0x4bc176(0x322)]=_0x4ab1a,this['_render']());}set[_0x51cf5f(0x29a)](_0x25a13f){const _0x341a9a=_0x51cf5f;_0x25a13f?(this[_0x341a9a(0x19f)]&&this[_0x341a9a(0x19f)][_0x341a9a(0x2a0)](),this['_textBubble']&&this[_0x341a9a(0x266)][_0x341a9a(0x356)]()):(this[_0x341a9a(0x19f)]&&this[_0x341a9a(0x19f)]['show'](),this['_textBubble']&&this[_0x341a9a(0x266)]['hide']());}[_0x51cf5f(0x277)](){const _0x2b8150=_0x51cf5f;for(const _0x3ec2ea of this['_shapes'])_0x3ec2ea[_0x2b8150(0x277)]();this[_0x2b8150(0x266)]&&this['_textBubble'][_0x2b8150(0x277)](),this[_0x2b8150(0x19f)]&&this[_0x2b8150(0x19f)][_0x2b8150(0x277)](),this['_anchor']&&this[_0x2b8150(0x2b6)][_0x2b8150(0x277)](),this[_0x2b8150(0x172)]&&this[_0x2b8150(0x172)]();}[_0x51cf5f(0x34d)](){const _0xa32359=_0x51cf5f;var _0x122512;const {_docSkeleton:_0x416c0b,_document:_0x20b77f}=this,{color:_0x16b05b,name:_0x53af48,ranges:_0x3e849f}=this['_cursor'],_0x133a7a=_0x20b77f[_0xa32359(0x1f3)](),{docsLeft:_0x8a3760,docsTop:_0x3b22ed}=_0x133a7a,_0x58df71=new b[(_0xa32359(0x175))](_0x133a7a,_0x416c0b);for(const {startOffset:_0x423276,endOffset:_0x19e12b,rangeType:_0xb75ea2,segmentId:_0x383456,segmentPage:_0xe526e0,collapsed:_0xc09131,isActive:_0x4ba9c7}of _0x3e849f){const _0xe27b27=_0x416c0b[_0xa32359(0x167)](_0x423276,!0x0,_0x383456,_0xe526e0);let _0x556fd8=_0x416c0b[_0xa32359(0x167)](_0x19e12b,!0x0,_0x383456,_0xe526e0);if(_0x556fd8==null&&(_0x556fd8=_0x416c0b[_0xa32359(0x167)](_0x19e12b-0x1,!0x1,_0x383456,_0xe526e0)),_0x4ba9c7){const {contentBoxPointGroup:_0x411ea3}=_0x58df71[_0xa32359(0x316)](_0x556fd8,_0x556fd8);if(_0x411ea3[_0xa32359(0x296)]===0x0)continue;this[_0xa32359(0x393)](_0x16b05b,_0x411ea3,_0x8a3760,_0x3b22ed,_0x53af48),this[_0xa32359(0x172)]=this['_handleHover']();}if(_0xe27b27&&_0x556fd8){if(_0xb75ea2===a[_0xa32359(0x2ad)][_0xa32359(0x146)]){const _0x407fec=new b['NodePositionConvertToRectRange'](_0x133a7a,_0x416c0b),{pointGroup:_0x3d0b49}=(_0x122512=_0x407fec[_0xa32359(0x316)](_0xe27b27,_0x556fd8))!=null?_0x122512:{};if(_0x3d0b49==null||_0x3d0b49[_0xa32359(0x296)]===0x0)continue;this[_0xa32359(0x281)](_0x16b05b,_0x3d0b49,_0x8a3760,_0x3b22ed);}else{if(!_0xc09131){const {borderBoxPointGroup:_0x4d78a7}=_0x58df71[_0xa32359(0x316)](_0xe27b27,_0x556fd8);if(_0x4d78a7[_0xa32359(0x296)]===0x0)continue;this[_0xa32359(0x14b)](_0x16b05b,_0x4d78a7,_0x8a3760,_0x3b22ed);}}}}}[_0x51cf5f(0x393)](_0x58df96,_0x4bd9fa,_0x4cd7ab,_0x350458,_0x27351d){const _0x25b0d5=_0x51cf5f,_0x333da5=this[_0x25b0d5(0x3a1)](_0x4bd9fa),{left:_0x26394c,top:_0x27d377,height:_0x546360}=_0x333da5,_0x4b4814=this['_getScale'](),_0x48d969=ft/_0x4b4814,_0x474156=new p[(_0x25b0d5(0x378))](re+a['Tools'][_0x25b0d5(0x22c)](k),{'left':_0x26394c+_0x4cd7ab-_0x48d969,'top':_0x27d377+_0x350458,'height':_0x546360,'width':dt,'fill':_0x58df96||p[_0x25b0d5(0x200)](a['COLORS'][_0x25b0d5(0x206)],0x0),'strokeWidth':_0x48d969,'stroke':St,'evented':!0x0});this[_0x25b0d5(0x2b6)]=_0x474156,this[_0x25b0d5(0x12e)][_0x25b0d5(0x182)](_0x474156,b[_0x25b0d5(0x361)]);const _0x43c0cc=new p[(_0x25b0d5(0x378))](re+a[_0x25b0d5(0x311)][_0x25b0d5(0x22c)](k),{'left':_0x26394c+_0x4cd7ab-_0x48d969,'top':_0x27d377+_0x350458-oe/0x2,'height':oe,'width':oe,'fill':_0x58df96||p[_0x25b0d5(0x200)](a['COLORS'][_0x25b0d5(0x206)],0x0),'strokeWidth':0x0,'stroke':_0x58df96||p[_0x25b0d5(0x200)](a[_0x25b0d5(0x388)][_0x25b0d5(0x206)],0x0),'evented':!0x1});this[_0x25b0d5(0x19f)]=_0x43c0cc,this[_0x25b0d5(0x12e)][_0x25b0d5(0x182)](_0x43c0cc,b[_0x25b0d5(0x361)]);const _0x12656a=new ee(re+a['Tools'][_0x25b0d5(0x22c)](k),{'left':_0x26394c+_0x4cd7ab-_0x48d969,'top':_0x27d377+_0x350458-K,'text':_0x27351d,'color':_0x58df96});this[_0x25b0d5(0x266)]=_0x12656a,this[_0x25b0d5(0x12e)]['addObject'](_0x12656a,b['TEXT_RANGE_LAYER_INDEX']),this[_0x25b0d5(0x29a)]=!0x1;}[_0x51cf5f(0x13c)](){const _0x390c3c=_0x51cf5f,_0x52b040=this['_anchor'][_0x390c3c(0x1a9)][_0x390c3c(0x13b)](()=>{const _0x34096c=_0x390c3c;this[_0x34096c(0x29a)]=!0x0;}),_0x4b1db2=this[_0x390c3c(0x2b6)]['onPointerLeave$'][_0x390c3c(0x13b)](()=>{const _0x37c886=_0x390c3c;this[_0x37c886(0x366)]&&clearTimeout(this[_0x37c886(0x366)]),this['_hideTimer']=setTimeout(()=>{const _0x5df5f6=_0x37c886;this[_0x5df5f6(0x29a)]=!0x1;},0x7d0);});return()=>{const _0x52c314=_0x390c3c;_0x52b040[_0x52c314(0x26f)](),_0x4b1db2['unsubscribe']();};}[_0x51cf5f(0x14b)](_0x3ba318,_0x3556e1,_0x3fb631,_0xad2f45){const _0x25f10b=_0x51cf5f,_0x2f5ea3=new a['ColorKit'](_0x3ba318)[_0x25f10b(0x2e3)](0.2)[_0x25f10b(0x33c)](),_0x3babd3=new p[(_0x25f10b(0x364))](ht+a['Tools'][_0x25f10b(0x22c)](k),{'pointsGroup':_0x3556e1,'fill':_0x2f5ea3||p[_0x25f10b(0x200)](a[_0x25f10b(0x388)]['black'],0.2),'left':_0x3fb631,'top':_0xad2f45,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x25f10b(0x326)](_0x3babd3),this[_0x25f10b(0x12e)][_0x25f10b(0x182)](_0x3babd3,b[_0x25f10b(0x361)]);}[_0x51cf5f(0x281)](_0x3d212d,_0x348cc4,_0x34b073,_0x4fda1f){const _0x4906d5=_0x51cf5f,_0x28523c=new a[(_0x4906d5(0x16a))](_0x3d212d)[_0x4906d5(0x2e3)](0.2)[_0x4906d5(0x33c)](),_0x297931=new p['RegularPolygon'](ut+a[_0x4906d5(0x311)]['generateRandomId'](k),{'pointsGroup':_0x348cc4,'fill':_0x28523c||p[_0x4906d5(0x200)](a[_0x4906d5(0x388)][_0x4906d5(0x206)],0.2),'left':_0x34b073,'top':_0x4fda1f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4906d5(0x2f2)][_0x4906d5(0x326)](_0x297931),this[_0x4906d5(0x12e)][_0x4906d5(0x182)](_0x297931,b['TEXT_RANGE_LAYER_INDEX']);}[_0x51cf5f(0x3a1)](_0x374919){const _0x52345a=_0x374919[0x0],_0x58a905=_0x52345a[0x0],_0x2beab5=_0x52345a[0x2],{x:_0x1bf9f1,y:_0x233568}=_0x58a905,{x:_0xd989d1,y:_0x536238}=_0x2beab5;return{'left':_0x1bf9f1,'top':_0x233568,'width':_0xd989d1-_0x1bf9f1,'height':_0x536238-_0x233568};}[_0x51cf5f(0x37f)](){const _0x8263d9=_0x51cf5f,{scaleX:_0x21eaeb,scaleY:_0x23ce96}=this['_scene'][_0x8263d9(0x30d)]();return Math[_0x8263d9(0x317)](_0x21eaeb,_0x23ce96);}}var It=Object[_0x51cf5f(0x377)],vt=(_0x131922,_0x4389f7,_0x4d4631,_0x465c13)=>{for(var _0x35c346=_0x465c13>0x1?void 0x0:_0x465c13?It(_0x4389f7,_0x4d4631):_0x4389f7,_0x4ace7e=_0x131922['length']-0x1,_0x424291;_0x4ace7e>=0x0;_0x4ace7e--)(_0x424291=_0x131922[_0x4ace7e])&&(_0x35c346=_0x424291(_0x35c346)||_0x35c346);return _0x35c346;},W=(_0x559a00,_0x1ba0bd)=>(_0x59f03d,_0x57256e)=>_0x1ba0bd(_0x59f03d,_0x57256e,_0x559a00);let Ie=class extends a[_0x51cf5f(0x298)]{constructor(_0x15b3a5,_0x563c3e,_0x225f1c,_0xfa7b71,_0x49deac){const _0x14059f=_0x51cf5f;super(),h(this,'_cursorShapes',[]),h(this,_0x14059f(0x258),[]),(this[_0x14059f(0x318)]=_0x15b3a5,this['_docSkeletonManagerService']=_0x563c3e,this[_0x14059f(0x262)]=_0x225f1c,this['_commandService']=_0xfa7b71,this[_0x14059f(0x1ea)]=_0x49deac,this['_init']());}[_0x51cf5f(0x2f4)](){const _0x5353ba=_0x51cf5f,_0x26f32e=this[_0x5353ba(0x318)]['unitId'],_0x4f06c1=this[_0x5353ba(0x1ef)];this[_0x5353ba(0x1fa)](d[_0x5353ba(0x34e)]([this[_0x5353ba(0x262)]['getCollabCursors$'](_0x26f32e),this['_themeService']['currentTheme$']])[_0x5353ba(0x3a7)]($['map'](([_0x4c1848,_0x1cd994])=>({'skeleton':_0x4f06c1[_0x5353ba(0x23c)](),'cursors':[..._0x4c1848[_0x5353ba(0x1d3)]()][_0x5353ba(0x2a2)](_0x1ab44c=>({..._0x1ab44c,'color':this[_0x5353ba(0x1ea)][_0x5353ba(0x2c1)](_0x1ab44c[_0x5353ba(0x39f)])}))})))[_0x5353ba(0x254)](_0x5e69b2=>{const _0xe61cf6=_0x5353ba;if(this[_0xe61cf6(0x312)](),_0x5e69b2){const {skeleton:_0x312bff,cursors:_0x5e60e5}=_0x5e69b2;this[_0xe61cf6(0x1db)](_0x312bff,_0x5e60e5);}})),this[_0x5353ba(0x13a)](),this[_0x5353ba(0x2f7)]();}[_0x51cf5f(0x1db)](_0x5b1477,_0x23326b){const _0x3acc58=_0x51cf5f,{scene:_0x5155f8,mainComponent:_0x620fce}=this[_0x3acc58(0x318)],_0x508ccb=_0x23326b['map'](_0x16d0c4=>new De(_0x16d0c4,_0x5155f8,_0x5b1477,_0x620fce));this[_0x3acc58(0x38e)]=_0x508ccb,this[_0x3acc58(0x258)]=_0x23326b;}['_refreshCollabCursors'](){const _0x54f367=_0x51cf5f;this[_0x54f367(0x312)]();const {scene:_0x30422f,mainComponent:_0x51f816}=this[_0x54f367(0x318)],_0x566a92=this[_0x54f367(0x1ef)][_0x54f367(0x23c)](),_0x44f22d=this['_cursors'][_0x54f367(0x307)](_0x2ee618=>new De(_0x2ee618,_0x30422f,_0x566a92,_0x51f816));this['_cursorShapes']=_0x44f22d;}[_0x51cf5f(0x312)](){const _0x191b59=_0x51cf5f;this[_0x191b59(0x38e)][_0x191b59(0x2ba)](_0x28d0a2=>_0x28d0a2[_0x191b59(0x277)]()),this[_0x191b59(0x38e)]=[];}[_0x51cf5f(0x2f7)](){const _0x5a1dd9=_0x51cf5f,_0x2d1abe=[b['SetDocZoomRatioOperation']['id']];this[_0x5a1dd9(0x1fa)](this[_0x5a1dd9(0x362)][_0x5a1dd9(0x1a3)](_0xab7b8e=>{const _0x225865=_0x5a1dd9;_0x2d1abe[_0x225865(0x37b)](_0xab7b8e['id'])&&_0xab7b8e[_0x225865(0x3b5)]['unitId']===this[_0x225865(0x318)]['unitId']&&this[_0x225865(0x350)]();}));}[_0x51cf5f(0x13a)](){const _0x435d37=_0x51cf5f;this[_0x435d37(0x1fa)](a['fromEventSubject'](this[_0x435d37(0x318)]['engine'][_0x435d37(0x260)])[_0x435d37(0x3a7)]($[_0x435d37(0x1d0)](_0x131b56=>_0x131b56['type']===p[_0x435d37(0x2dc)][_0x435d37(0x2a6)]),$[_0x435d37(0x32d)](0x10))[_0x435d37(0x254)](()=>{const _0x6955b9=_0x435d37;this[_0x6955b9(0x350)]();}));}};Ie=vt([W(0x1,a[_0x51cf5f(0x249)](Y[_0x51cf5f(0x334)])),W(0x2,a[_0x51cf5f(0x249)](x)),W(0x3,a[_0x51cf5f(0x36e)]),W(0x4,a['Inject'](a[_0x51cf5f(0x39e)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x51cf5f(0x189)]{constructor(_0xf2aa9c,_0x2e3e21){const _0x421466=_0x51cf5f;super(_0xf2aa9c,_0x2e3e21),h(this,_0x421466(0x2c5)),h(this,'_hovered',!0x1),h(this,_0x421466(0x209)),h(this,_0x421466(0x2d2),''),h(this,_0x421466(0x265),_0x421466(0x1c9)),h(this,_0x421466(0x310)),(_0x2e3e21&&this['setShapeProps'](_0x2e3e21),this[_0x421466(0x1a9)][_0x421466(0x13b)](()=>this[_0x421466(0x3a4)]({'hovered':!0x0})),this['onPointerLeave$'][_0x421466(0x13b)](()=>this[_0x421466(0x3a4)]({'hovered':!0x1})));}[_0x51cf5f(0x3a4)](_0x3c9e0c){const _0x1b7958=_0x51cf5f;var _0x2bbb0f,_0xa86e25,_0x635c81,_0x435665,_0x2547cd,_0x340cf2;this[_0x1b7958(0x2c5)]=(_0x2bbb0f=_0x3c9e0c['color'])!=null?_0x2bbb0f:this[_0x1b7958(0x2c5)],this['_hovered']=(_0xa86e25=_0x3c9e0c[_0x1b7958(0x133)])!=null?_0xa86e25:this[_0x1b7958(0x138)],this['_range']=(_0x635c81=_0x3c9e0c['range'])!=null?_0x635c81:this[_0x1b7958(0x209)],this[_0x1b7958(0x2d2)]=(_0x435665=_0x3c9e0c[_0x1b7958(0x2e6)])!=null?_0x435665:this[_0x1b7958(0x2d2)],this['_labelPosition']=(_0x2547cd=_0x3c9e0c['labelPosition'])!=null?_0x2547cd:this[_0x1b7958(0x265)],this['_backgroundColor']=(_0x340cf2=_0x3c9e0c[_0x1b7958(0x3a9)])!=null?_0x340cf2:this[_0x1b7958(0x310)],this['transformByState']({'width':_0x3c9e0c[_0x1b7958(0x1bc)],'height':_0x3c9e0c[_0x1b7958(0x22b)]});}['onMouseMove'](_0x2cc55a){const _0x1e27fa=_0x51cf5f,{row:_0x4929cd,column:_0x4d9ca9}=_0x2cc55a;if(_0x4929cd>=this[_0x1e27fa(0x209)][_0x1e27fa(0x233)]&&_0x4929cd<=this[_0x1e27fa(0x209)][_0x1e27fa(0x1f8)]&&_0x4d9ca9>=this[_0x1e27fa(0x209)][_0x1e27fa(0x2f9)]&&_0x4d9ca9<=this[_0x1e27fa(0x209)][_0x1e27fa(0x1e3)]){this[_0x1e27fa(0x3a4)]({'hovered':!0x0});return;}this[_0x1e27fa(0x3a4)]({'hovered':!0x1});}[_0x51cf5f(0x1a0)](_0x186743){return!0x1;}['_draw'](_0x40651c){const _0x1f6685=_0x51cf5f;p['Rect'][_0x1f6685(0x28f)](_0x40651c,{'width':this[_0x1f6685(0x1bc)],'height':this['height'],'strokeWidth':mt,'stroke':this[_0x1f6685(0x2c5)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x1f6685(0x138)]&&(_0x40651c[_0x1f6685(0x14a)](),_0x40651c['transform'](0x1,0x0,0x0,0x1,this[_0x1f6685(0x1bc)],this[_0x1f6685(0x265)]===_0x1f6685(0x349)?0x0:-0x14),ee[_0x1f6685(0x28f)](_0x40651c,{'text':this[_0x1f6685(0x2d2)],'color':this[_0x1f6685(0x2c5)]}),_0x40651c[_0x1f6685(0x143)]());}}var Ct=Object[_0x51cf5f(0x377)],pt=(_0x5c1351,_0x644aad,_0x3a8bb6,_0x2a1b9f)=>{const _0x29b97b=_0x51cf5f;for(var _0x51109d=_0x2a1b9f>0x1?void 0x0:_0x2a1b9f?Ct(_0x644aad,_0x3a8bb6):_0x644aad,_0x4cd2f5=_0x5c1351[_0x29b97b(0x296)]-0x1,_0x1a6eec;_0x4cd2f5>=0x0;_0x4cd2f5--)(_0x1a6eec=_0x5c1351[_0x4cd2f5])&&(_0x51109d=_0x1a6eec(_0x51109d)||_0x51109d);return _0x51109d;},ae=(_0x13c8a6,_0x1d2e40)=>(_0x417a08,_0x4171c9)=>_0x1d2e40(_0x417a08,_0x4171c9,_0x13c8a6);const bt=0x1389;let ve=class extends a[_0x51cf5f(0x298)]{constructor(_0x11f66a,_0x2c48d9,_0x396fa2,_0x5dbf37){const _0x34f8d5=_0x51cf5f;super(),h(this,_0x34f8d5(0x258),new Set()),h(this,'_lastPointer',null),(this[_0x34f8d5(0x318)]=_0x11f66a,this[_0x34f8d5(0x1a7)]=_0x2c48d9,this[_0x34f8d5(0x262)]=_0x396fa2,this[_0x34f8d5(0x1ea)]=_0x5dbf37,this['_init']());}['_init'](){const _0x2b3fd9=_0x51cf5f;this[_0x2b3fd9(0x1a7)][_0x2b3fd9(0x184)][_0x2b3fd9(0x3a7)]($[_0x2b3fd9(0x20d)](this[_0x2b3fd9(0x28a)]),$[_0x2b3fd9(0x1d5)](_0x41e596=>{const _0x281584=_0x2b3fd9;if(_0x41e596){const _0x2d6d38=_0x41e596[_0x281584(0x256)];return d[_0x281584(0x34e)](this[_0x281584(0x262)][_0x281584(0x2a4)](this['_context'][_0x281584(0x395)]),this[_0x281584(0x1ea)][_0x281584(0x242)])['pipe']($['map'](([_0x24adbd,_0xfd6433])=>{const _0x5386ca=_0x281584,_0x45f0b5=new Map();return _0x24adbd[_0x5386ca(0x2ba)]((_0x2f4edc,_0x5f5916)=>{const _0x118db8=_0x5386ca;if(_0x2f4edc['sheetID']===_0x2d6d38){const _0x563590={..._0x2f4edc};_0x563590[_0x118db8(0x39f)]=this[_0x118db8(0x1ea)][_0x118db8(0x2c1)](_0x2f4edc[_0x118db8(0x39f)]),_0x45f0b5['set'](_0x5f5916,_0x563590);}}),{'skeleton':_0x41e596,'cursors':_0x45f0b5};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3da971,cursors:_0x35ec40})=>{this['_removeCollabCursors'](),_0x3da971&&this['_updateCollabCursors'](_0x3da971,_0x35ec40);}),this[_0x2b3fd9(0x1a7)]['currentSkeleton$'][_0x2b3fd9(0x254)](_0x211b59=>{const _0x538361=_0x2b3fd9;if(_0x211b59==null)return;const {skeleton:_0x7be27b}=_0x211b59,{scene:_0x57d936}=this[_0x538361(0x318)];_0x57d936['onPointerMove$'][_0x538361(0x13b)](a['debounce'](_0x11ee46=>{const _0x727b2d=_0x538361;var _0xb7adb8,_0x2c1538;const {offsetX:_0x417606,offsetY:_0x4b0423}=_0x11ee46,{x:_0x35dbd7,y:_0x39a85d}=_0x57d936[_0x727b2d(0x33b)](p[_0x727b2d(0x132)][_0x727b2d(0x13f)]([_0x417606,_0x4b0423])),{scaleX:_0xb3c127,scaleY:_0x3b40ff}=_0x57d936[_0x727b2d(0x30d)](),_0x53241c=_0x57d936[_0x727b2d(0x327)](p[_0x727b2d(0x21d)][_0x727b2d(0x224)]),_0x2c4467=_0x57d936['getVpScrollXYInfoByPosToVp'](p['Vector2'][_0x727b2d(0x13f)]([_0x35dbd7,_0x39a85d]),_0x53241c),_0x4ca306=_0x7be27b[_0x727b2d(0x1a2)](_0x417606,_0x4b0423,_0xb3c127,_0x3b40ff,_0x2c4467);((_0xb7adb8=this[_0x727b2d(0x357)])==null?void 0x0:_0xb7adb8[_0x727b2d(0x222)])===_0x4ca306[_0x727b2d(0x222)]&&((_0x2c1538=this[_0x727b2d(0x357)])==null?void 0x0:_0x2c1538[_0x727b2d(0x1fd)])===_0x4ca306[_0x727b2d(0x1fd)]||this[_0x727b2d(0x258)][_0x727b2d(0x2ba)](_0x316a61=>{const _0x494b60=_0x727b2d;_0x316a61[_0x494b60(0x23b)](_0x4ca306);});},0x64));});}[_0x51cf5f(0x1db)](_0x50c8b8,_0x26eb85){const _0x119c0c=_0x51cf5f;var _0x2c1af3;const _0x3957d3=(_0x2c1af3=this[_0x119c0c(0x1a7)][_0x119c0c(0x2dd)]())==null?void 0x0:_0x2c1af3[_0x119c0c(0x24d)];if(!_0x3957d3)return;const _0xfc2998=this[_0x119c0c(0x179)]();if(!_0xfc2998)return;this['_cursors'][_0x119c0c(0x2ba)](_0x52b4e6=>{const _0x241bf3=_0x119c0c;_0x52b4e6[_0x241bf3(0x21f)]();});const {scene:_0x3682a5}=_0xfc2998,_0x2873e0=Et(Array[_0x119c0c(0x1f0)](_0x26eb85[_0x119c0c(0x1d3)]()))[_0x119c0c(0x307)](_0x338dca=>{const _0x20a714=_0x119c0c,{color:_0x1e64ae,range:_0x58ec11,name:_0x53e920,selection:_0x54a107,sheetID:_0x1070d3}=_0x338dca,{startColumn:_0x1ac2a9,startRow:_0x3c173c,endColumn:_0x5b45e9,endRow:_0x31b46f}=_0x58ec11,_0x2fad32=X[_0x20a714(0x2c9)](_0x3c173c,_0x1ac2a9,_0x3682a5,_0x3957d3),_0x4fe6b0=X[_0x20a714(0x2c9)](_0x31b46f,_0x5b45e9,_0x3682a5,_0x3957d3),{columnHeaderHeightAndMarginTop:_0x267f73}=_0x3957d3,{startX:_0x416ed1,startY:_0x9539ac}=_0x2fad32,{endX:_0x125e17,endY:_0x2f6e56}=_0x4fe6b0,_0x17c97e=_0x125e17-_0x416ed1,_0x1accb0=_0x2f6e56-_0x9539ac,_0x14ae2e={'labelPosition':_0x9539ac-_0x267f73>=K?'top':_0x20a714(0x349),'sheetID':_0x1070d3,'range':_0x58ec11,'color':_0x1e64ae,'name':_0x53e920,'selection':_0x54a107,'left':_0x416ed1,'top':_0x9539ac,'width':_0x17c97e,'height':_0x1accb0,'evented':!0x1,'zIndex':bt};return new Pe(_0x53e920,_0x14ae2e);});_0x3682a5[_0x119c0c(0x1f9)](_0x2873e0,gt),this[_0x119c0c(0x258)]=new Set(_0x2873e0);}[_0x51cf5f(0x312)](){const _0x475cdc=_0x51cf5f;var _0x1e574e;(_0x1e574e=this[_0x475cdc(0x258)])==null||_0x1e574e[_0x475cdc(0x2ba)](_0x544786=>_0x544786['dispose']());}[_0x51cf5f(0x179)](){const _0x2f9db5=_0x51cf5f;return X['getSheetObject'](this[_0x2f9db5(0x318)][_0x2f9db5(0x31e)],this[_0x2f9db5(0x318)]);}};ve=pt([ae(0x1,a[_0x51cf5f(0x249)](X[_0x51cf5f(0x373)])),ae(0x2,a[_0x51cf5f(0x249)](x)),ae(0x3,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x39e)]))],ve);function Et(_0x3a87fe){const _0x40550c=_0x51cf5f,_0x515592=new Map();return _0x3a87fe[_0x40550c(0x2ba)](_0x186903=>{const _0x24ec77=_0x40550c;if(_0x515592[_0x24ec77(0x2e2)](_0x186903['selection'])){const _0x3aacc4=_0x515592[_0x24ec77(0x214)](_0x186903[_0x24ec77(0x38a)]);_0x3aacc4[_0x24ec77(0x2e6)]+=',\x20'+_0x186903[_0x24ec77(0x2e6)];}else _0x515592[_0x24ec77(0x2e8)](_0x186903[_0x24ec77(0x38a)],_0x186903);}),Array[_0x40550c(0x1f0)](_0x515592[_0x40550c(0x1d3)]());}var E=function(){const _0x10219d=_0x51cf5f;return E=Object[_0x10219d(0x181)]||function(_0x16a1e4){const _0x36c406=_0x10219d;for(var _0xac90bb,_0x1d2b03=0x1,_0x2b6e27=arguments[_0x36c406(0x296)];_0x1d2b03<_0x2b6e27;_0x1d2b03++){_0xac90bb=arguments[_0x1d2b03];for(var _0x224f7b in _0xac90bb)Object['prototype']['hasOwnProperty']['call'](_0xac90bb,_0x224f7b)&&(_0x16a1e4[_0x224f7b]=_0xac90bb[_0x224f7b]);}return _0x16a1e4;},E[_0x10219d(0x24f)](this,arguments);},Tt=function(_0x3bb10e,_0x53406d){const _0x3e21ec=_0x51cf5f;var _0x4e6384={};for(var _0x4c4f82 in _0x3bb10e)Object['prototype'][_0x3e21ec(0x28e)][_0x3e21ec(0x325)](_0x3bb10e,_0x4c4f82)&&_0x53406d[_0x3e21ec(0x36c)](_0x4c4f82)<0x0&&(_0x4e6384[_0x4c4f82]=_0x3bb10e[_0x4c4f82]);if(_0x3bb10e!=null&&typeof Object[_0x3e21ec(0x3b2)]==_0x3e21ec(0x37d)){for(var _0x4e1da7=0x0,_0x4c4f82=Object['getOwnPropertySymbols'](_0x3bb10e);_0x4e1da7<_0x4c4f82[_0x3e21ec(0x296)];_0x4e1da7++)_0x53406d[_0x3e21ec(0x36c)](_0x4c4f82[_0x4e1da7])<0x0&&Object[_0x3e21ec(0x160)][_0x3e21ec(0x1be)][_0x3e21ec(0x325)](_0x3bb10e,_0x4c4f82[_0x4e1da7])&&(_0x4e6384[_0x4c4f82[_0x4e1da7]]=_0x3bb10e[_0x4c4f82[_0x4e1da7]]);}return _0x4e6384;},pe=M[_0x51cf5f(0x3b8)](function(_0x1fc6e4,_0x8da0c3){const _0x231e47=_0x51cf5f;var _0x436ac0=_0x1fc6e4[_0x231e47(0x338)],_0x5980ce=_0x1fc6e4['id'],_0x47b912=_0x1fc6e4[_0x231e47(0x303)],_0x455995=_0x1fc6e4[_0x231e47(0x27a)],_0x162d03=Tt(_0x1fc6e4,[_0x231e47(0x338),'id',_0x231e47(0x303),'extend']),_0x16ccac=_0x231e47(0x2b9)[_0x231e47(0x1ce)](_0x5980ce,'\x20')[_0x231e47(0x1ce)](_0x47b912||'')['trim'](),_0x5c1094=M[_0x231e47(0x150)]('_'[_0x231e47(0x1ce)](Dt()));return Ae(_0x436ac0,''[_0x231e47(0x1ce)](_0x5980ce),{'defIds':_0x436ac0[_0x231e47(0x369)],'idSuffix':_0x5c1094[_0x231e47(0x2d7)]},E({'ref':_0x8da0c3,'className':_0x16ccac},_0x162d03),_0x455995);});function Ae(_0x5de706,_0x41bdbf,_0x107330,_0x632bf2,_0x25038b){const _0x2cf17c=_0x51cf5f;return M[_0x2cf17c(0x30b)](_0x5de706[_0x2cf17c(0x29f)],E(E({'key':_0x41bdbf},Ot(_0x5de706,_0x107330,_0x25038b)),_0x632bf2),(Rt(_0x5de706,_0x107330)['children']||[])[_0x2cf17c(0x307)](function(_0x3527b0,_0x477bc1){const _0x1a18bb=_0x2cf17c;return Ae(_0x3527b0,''['concat'](_0x41bdbf,'-')[_0x1a18bb(0x1ce)](_0x5de706[_0x1a18bb(0x29f)],'-')['concat'](_0x477bc1),_0x107330,void 0x0,_0x25038b);}));}function Ot(_0xe26fbe,_0x50e4fc,_0x3984e3){const _0x5476a2=_0x51cf5f;var _0x5499f4=E({},_0xe26fbe[_0x5476a2(0x32b)]);_0x3984e3!=null&&_0x3984e3['colorChannel1']&&_0x5499f4[_0x5476a2(0x2ff)]==='colorChannel1'&&(_0x5499f4[_0x5476a2(0x2ff)]=_0x3984e3[_0x5476a2(0x204)]),_0xe26fbe['tag']==='mask'&&_0x5499f4['id']&&(_0x5499f4['id']=_0x5499f4['id']+_0x50e4fc[_0x5476a2(0x20c)]),Object[_0x5476a2(0x1b0)](_0x5499f4)[_0x5476a2(0x2ba)](function(_0x1ea39a){const _0xca0e28=_0x5476a2;var _0x35b175=_0x1ea39a[0x0],_0x29dc03=_0x1ea39a[0x1];_0x35b175==='mask'&&typeof _0x29dc03==_0xca0e28(0x308)&&(_0x5499f4[_0x35b175]=_0x29dc03[_0xca0e28(0x1d9)](/url\(#(.*)\)/,_0xca0e28(0x2d4)['concat'](_0x50e4fc[_0xca0e28(0x20c)],')')));});var _0x4014cf=_0x50e4fc[_0x5476a2(0x369)];return!_0x4014cf||_0x4014cf[_0x5476a2(0x296)]===0x0||(_0xe26fbe['tag']===_0x5476a2(0x301)&&_0x5499f4['xlink:href']&&(_0x5499f4[_0x5476a2(0x251)]=_0x5499f4[_0x5476a2(0x251)]+_0x50e4fc['idSuffix']),Object[_0x5476a2(0x1b0)](_0x5499f4)[_0x5476a2(0x2ba)](function(_0x3d52f5){const _0x9cd9b1=_0x5476a2;var _0xb1b29e=_0x3d52f5[0x0],_0x2c4aaf=_0x3d52f5[0x1];typeof _0x2c4aaf==_0x9cd9b1(0x308)&&(_0x5499f4[_0xb1b29e]=_0x2c4aaf[_0x9cd9b1(0x1d9)](/url\(#(.*)\)/,_0x9cd9b1(0x2d4)[_0x9cd9b1(0x1ce)](_0x50e4fc[_0x9cd9b1(0x20c)],')')));})),_0x5499f4;}function Rt(_0x44deee,_0xfa5c2e){const _0x2f51aa=_0x51cf5f;var _0x5e0a8b,_0x11b7a4=_0xfa5c2e[_0x2f51aa(0x369)];return!_0x11b7a4||_0x11b7a4[_0x2f51aa(0x296)]===0x0?_0x44deee:_0x44deee[_0x2f51aa(0x29f)]===_0x2f51aa(0x239)&&(!((_0x5e0a8b=_0x44deee['children'])===null||_0x5e0a8b===void 0x0)&&_0x5e0a8b[_0x2f51aa(0x296)])?E(E({},_0x44deee),{'children':_0x44deee[_0x2f51aa(0x1f5)][_0x2f51aa(0x307)](function(_0x418c8b){const _0x5a2f08=_0x2f51aa;return typeof _0x418c8b[_0x5a2f08(0x32b)]['id']=='string'&&_0x11b7a4&&_0x11b7a4['includes'](_0x418c8b[_0x5a2f08(0x32b)]['id'])?E(E({},_0x418c8b),{'attrs':E(E({},_0x418c8b[_0x5a2f08(0x32b)]),{'id':_0x418c8b[_0x5a2f08(0x32b)]['id']+_0xfa5c2e['idSuffix']})}):_0x418c8b;})}):_0x44deee;}function Dt(){const _0x181869=_0x51cf5f;return Math[_0x181869(0x374)]()[_0x181869(0x2f3)](0x24)[_0x181869(0x157)](0x2,0x8);}pe[_0x51cf5f(0x1d6)]=_0x51cf5f(0x2d3);var Ut={'tag':_0x51cf5f(0x14c),'attrs':{'xmlns':_0x51cf5f(0x328),'fill':_0x51cf5f(0x39a),'viewBox':'0\x200\x2016\x2016','width':_0x51cf5f(0x313),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x51cf5f(0x2b3)},'children':[{'tag':'path','attrs':{'stroke':'currentColor','d':_0x51cf5f(0x196),'strokeLinecap':_0x51cf5f(0x177),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x51cf5f(0x239),'attrs':{},'children':[{'tag':_0x51cf5f(0x1ad),'attrs':{'id':_0x51cf5f(0x1f6)},'children':[{'tag':'path','attrs':{'fill':_0x51cf5f(0x3b1),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-icon_clip0_910_343']},ye=M['forwardRef'](function(_0x1c96bf,_0x3f05ba){const _0x3b4a05=_0x51cf5f;return M['createElement'](pe,Object[_0x3b4a05(0x181)]({},_0x1c96bf,{'id':_0x3b4a05(0x243),'ref':_0x3f05ba,'icon':Ut}));});ye[_0x51cf5f(0x1d6)]=_0x51cf5f(0x389);var Nt={'tag':_0x51cf5f(0x14c),'attrs':{'xmlns':_0x51cf5f(0x328),'fill':_0x51cf5f(0x39a),'viewBox':'0\x200\x2017\x2016','width':_0x51cf5f(0x313),'height':_0x51cf5f(0x313)},'children':[{'tag':'g','attrs':{'clipPath':_0x51cf5f(0x186)},'children':[{'tag':_0x51cf5f(0x3b0),'attrs':{'stroke':_0x51cf5f(0x2c7),'d':_0x51cf5f(0x2ef),'strokeLinecap':_0x51cf5f(0x177),'strokeLinejoin':_0x51cf5f(0x177),'strokeWidth':1.2}}]},{'tag':_0x51cf5f(0x239),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x51cf5f(0x32e)},'children':[{'tag':'path','attrs':{'fill':_0x51cf5f(0x3b1),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x51cf5f(0x32e)]},$e=M['forwardRef'](function(_0x43c29e,_0xe0745e){const _0x3271f5=_0x51cf5f;return M[_0x3271f5(0x30b)](pe,Object[_0x3271f5(0x181)]({},_0x43c29e,{'id':_0x3271f5(0x1fb),'ref':_0xe0745e,'icon':Nt}));});$e[_0x51cf5f(0x1d6)]=_0x51cf5f(0x36b);function Mt(_0x1385c7){const _0x33d734=_0x51cf5f;switch(_0x1385c7){case u[_0x33d734(0x198)][_0x33d734(0x3a8)]:return'collabStatus.offline';case u['CollaborationStatus'][_0x33d734(0x244)]:return'collabStatus.conflict';case u[_0x33d734(0x198)][_0x33d734(0x29c)]:return _0x33d734(0x34a);case u[_0x33d734(0x198)][_0x33d734(0x1cf)]:return _0x33d734(0x248);case u[_0x33d734(0x198)][_0x33d734(0x30c)]:case u[_0x33d734(0x198)]['AWAITING_WITH_PENDING']:return _0x33d734(0x2cb);case u['CollaborationStatus']['SYNCED']:case u[_0x33d734(0x198)][_0x33d734(0x27c)]:return _0x33d734(0x280);}}function xe(_0x576c68){const _0x5c7bb3=_0x51cf5f,{status$:_0x494575}=_0x576c68,_0x51ad1f=T[_0x5c7bb3(0x2bf)](_0x494575,u[_0x5c7bb3(0x198)]['NOT_COLLAB']),_0x4f91d6=T['useDependency'](a[_0x5c7bb3(0x306)]),_0x3a7249=T['useDependency'](u[_0x5c7bb3(0x386)]),_0x53b73b=_0x51ad1f!==u[_0x5c7bb3(0x198)]['OFFLINE'],_0x38b954=_0x4f91d6['t'](Mt(_0x51ad1f)),_0x2c5263=_0x53b73b?w[_0x5c7bb3(0x392)]($e,{}):w['jsx'](ye,{}),_0x52cbeb=M[_0x5c7bb3(0x2ab)](()=>{_0x53b73b||_0x3a7249['reconnect']();},[_0x53b73b,_0x3a7249]);function _0x51bac8(){const _0x362335=_0x5c7bb3;return w['jsxs'](_0x362335(0x205),{'className':'univer-flex\x20univer-items-center','onClick':_0x52cbeb,'children':[w[_0x362335(0x392)](_0x362335(0x205),{'className':D['clsx'](_0x362335(0x2f5),{'univer-text-green-500':_0x53b73b,'univer-text-red-500':!_0x53b73b}),'children':_0x2c5263}),w[_0x362335(0x392)]('div',{'className':_0x362335(0x1af),'children':_0x38b954})]});}return _0x53b73b?_0x51bac8():w[_0x5c7bb3(0x392)](D[_0x5c7bb3(0x333)],{'title':_0x4f91d6['t']('collab-client.tooltip.reconnect'),'children':_0x51bac8()});}var Lt=Object[_0x51cf5f(0x377)],wt=(_0x218584,_0x4a7c5d,_0x35588e,_0x5800d6)=>{const _0x1e0e7a=_0x51cf5f;for(var _0x1e1333=_0x5800d6>0x1?void 0x0:_0x5800d6?Lt(_0x4a7c5d,_0x35588e):_0x4a7c5d,_0x328c7c=_0x218584[_0x1e0e7a(0x296)]-0x1,_0x5da06c;_0x328c7c>=0x0;_0x328c7c--)(_0x5da06c=_0x218584[_0x328c7c])&&(_0x1e1333=_0x5da06c(_0x1e1333)||_0x1e1333);return _0x1e1333;},V=(_0x222b94,_0x47e494)=>(_0x394f17,_0x467f15)=>_0x47e494(_0x394f17,_0x467f15,_0x222b94);exports[_0x51cf5f(0x1ba)]=class extends a[_0x51cf5f(0x188)]{constructor(_0x1a6b11,_0x64ac2d,_0x266334,_0x44a814){const _0xc4890f=_0x51cf5f;super(),h(this,_0xc4890f(0x1ec),new d[(_0xc4890f(0x365))](u['CollaborationStatus'][_0xc4890f(0x1cf)])),(this[_0xc4890f(0x28d)]=_0x1a6b11,this['_injector']=_0x64ac2d,this[_0xc4890f(0x3b6)]=_0x266334,this[_0xc4890f(0x263)]=_0x44a814,this[_0xc4890f(0x15b)](),this[_0xc4890f(0x1b9)]());}[_0x51cf5f(0x1b9)](){const _0x14fbf4=_0x51cf5f;this[_0x14fbf4(0x1fa)](this[_0x14fbf4(0x28d)][_0x14fbf4(0x321)][_0x14fbf4(0x3a7)](d[_0x14fbf4(0x1d5)](()=>{const _0x2f0f0d=_0x14fbf4,_0x5993ec=this['_univerInstanceService'][_0x2f0f0d(0x340)]();return _0x5993ec?this[_0x2f0f0d(0x3b6)][_0x2f0f0d(0x3ad)](_0x5993ec[_0x2f0f0d(0x14f)]()):d['of'](null);}),d['switchMap'](_0x342d49=>_0x342d49?_0x342d49[_0x14fbf4(0x234)]:d['of'](u[_0x14fbf4(0x198)][_0x14fbf4(0x1cf)])))['subscribe'](_0xe9e5b3=>{const _0x366c70=_0x14fbf4;this[_0x366c70(0x1ec)][_0x366c70(0x19c)](_0xe9e5b3);}));}[_0x51cf5f(0x15b)](){const _0x416cb6=_0x51cf5f;this[_0x416cb6(0x1fa)](this[_0x416cb6(0x263)]['registerComponent'](T[_0x416cb6(0x1a5)][_0x416cb6(0x161)],()=>T['connectInjector'](Pt({'status$':this[_0x416cb6(0x1ec)][_0x416cb6(0x387)]()}),this[_0x416cb6(0x382)])));}},exports['DesktopCollaborationStatusDisplayController']=wt([V(0x0,a['IUniverInstanceService']),V(0x1,a['Inject'](a[_0x51cf5f(0x2be)])),V(0x2,a['Inject'](u[_0x51cf5f(0x162)])),V(0x3,T[_0x51cf5f(0x3a6)])],exports[_0x51cf5f(0x1ba)]);function Pt(_0x3eda08){const {status$:_0x412cba}=_0x3eda08;return function(){const _0x2744bd=_0x406e;return w[_0x2744bd(0x392)](xe,{'status$':_0x412cba});};}var At=Object[_0x51cf5f(0x377)],yt=(_0x3b8089,_0x49e7e1,_0x42bd50,_0x4535d0)=>{const _0x22c50b=_0x51cf5f;for(var _0x27a46c=_0x4535d0>0x1?void 0x0:_0x4535d0?At(_0x49e7e1,_0x42bd50):_0x49e7e1,_0x3b80f6=_0x3b8089[_0x22c50b(0x296)]-0x1,_0x133195;_0x3b80f6>=0x0;_0x3b80f6--)(_0x133195=_0x3b8089[_0x3b80f6])&&(_0x27a46c=_0x133195(_0x27a46c)||_0x27a46c);return _0x27a46c;},y=(_0xf8c425,_0x44e5d9)=>(_0x1af55f,_0x38195b)=>_0x44e5d9(_0x1af55f,_0x38195b,_0xf8c425);let q=class extends a[_0x51cf5f(0x188)]{constructor(_0x35a31b,_0x2a4fbb,_0x54cfff,_0x199c06,_0x1d4640,_0x3edd5d){const _0x138ba3=_0x51cf5f;super(),this[_0x138ba3(0x1d1)]=_0x35a31b,this['_localCacheService']=_0x2a4fbb,this[_0x138ba3(0x21b)]=_0x54cfff,this[_0x138ba3(0x1a8)]=_0x199c06,this[_0x138ba3(0x15a)]=_0x1d4640,this[_0x138ba3(0x1e5)]=_0x3edd5d,this[_0x138ba3(0x35a)](),this[_0x138ba3(0x35e)]();}[_0x51cf5f(0x35a)](){const _0x3ab1dd=_0x51cf5f;this[_0x3ab1dd(0x1fa)](this[_0x3ab1dd(0x1d1)][_0x3ab1dd(0x391)](()=>{const _0x52952c=_0x3ab1dd;if(this['_localCacheService'][_0x52952c(0x15d)][_0x52952c(0x335)])return this[_0x52952c(0x1e5)]['t']('collaboration-client.offline-data-not-saved');}));}['_initEvent'](){const _0x41fc97=_0x51cf5f;this['disposeWithMe'](this[_0x41fc97(0x21b)][_0x41fc97(0x341)][_0x41fc97(0x254)](_0x57a416=>{const _0x5be16a=_0x41fc97;_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x276)]&&this['_messageService'][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x35c))}),_0x57a416['id']===u['CollaborationUIEventId']['CLOSE_ROOM']&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this[_0x5be16a(0x1e5)]['t']('collaboration.closeRoom')}),_0x57a416['id']===u[_0x5be16a(0x15e)]['PERMISSION_DENIED']&&this[_0x5be16a(0x15a)]['show']({'title':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x2ae)),'content':this[_0x5be16a(0x1e5)]['t']('permission.content'),'type':_0x5be16a(0x2d9),'duration':0x0}),_0x57a416['id']===u['CollaborationUIEventId'][_0x5be16a(0x244)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x2ca)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x12c))+'('+_0x57a416[_0x5be16a(0x2eb)]+')'}),_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x2a8)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this['_localeService']['t'](_0x57a416[_0x5be16a(0x2eb)]||'')}),_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x190)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x1a6)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x270))}),_0x57a416['id']===u[_0x5be16a(0x15e)][_0x5be16a(0x1e7)]&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)]['Error'],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x2d0))}),_0x57a416['id']===u['CollaborationUIEventId']['SUBMIT_CHANGESET_TIMEOUT']&&this[_0x5be16a(0x1a8)][_0x5be16a(0x356)]({'type':D[_0x5be16a(0x151)][_0x5be16a(0x2ca)],'content':this[_0x5be16a(0x1e5)]['t'](_0x5be16a(0x21e))});}));}};q=yt([y(0x0,T[_0x51cf5f(0x291)]),y(0x1,u[_0x51cf5f(0x278)]),y(0x2,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x3b3)])),y(0x3,T[_0x51cf5f(0x35d)]),y(0x4,T[_0x51cf5f(0x332)]),y(0x5,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x306)]))],q);const $t=_0x51cf5f(0x213),Ue={},be=a[_0x51cf5f(0x23f)](_0x51cf5f(0x314));var xt=Object[_0x51cf5f(0x377)],jt=(_0x28b395,_0x31eded,_0x1b5de5,_0x12bbf5)=>{const _0x5c1966=_0x51cf5f;for(var _0x5e9efb=_0x12bbf5>0x1?void 0x0:_0x12bbf5?xt(_0x31eded,_0x1b5de5):_0x31eded,_0xa63a4c=_0x28b395[_0x5c1966(0x296)]-0x1,_0xc8dade;_0xa63a4c>=0x0;_0xa63a4c--)(_0xc8dade=_0x28b395[_0xa63a4c])&&(_0x5e9efb=_0xc8dade(_0x5e9efb)||_0x5e9efb);return _0x5e9efb;},H=(_0x19acc5,_0x1604e4)=>(_0x24a8fd,_0x4ed6d5)=>_0x1604e4(_0x24a8fd,_0x4ed6d5,_0x19acc5);exports['CollaborationDataLoaderController']=class extends a[_0x51cf5f(0x298)]{constructor(_0x160fbc,_0x41e3fb,_0x2a603e,_0x2e3f84,_0x184899){const _0x1eca94=_0x51cf5f;super(),this['_urlService']=_0x160fbc,this['_logService']=_0x41e3fb,this[_0x1eca94(0x362)]=_0x2a603e,this['_dataLoaderService']=_0x2e3f84,_0x184899?_0x184899==null||_0x184899['whenReady']()[_0x1eca94(0x2b1)](()=>this[_0x1eca94(0x2f4)]()):(this[_0x1eca94(0x309)][_0x1eca94(0x353)]('[CollaborationDataLoaderController]',_0x1eca94(0x390)),this[_0x1eca94(0x2f4)]());}async['_init'](){const _0x21bbf7=_0x51cf5f,_0x1346bc=this['_urlService']['getParam'](_0x21bbf7(0x31e)),_0xabe503=this['_urlService'][_0x21bbf7(0x39d)](_0x21bbf7(0x1ae)),_0x5e334c=this[_0x21bbf7(0x1aa)][_0x21bbf7(0x39d)](_0x21bbf7(0x1c7));if(!_0x1346bc||!_0xabe503){this[_0x21bbf7(0x309)][_0x21bbf7(0x353)](_0x21bbf7(0x1b7),_0x21bbf7(0x2f0));return;}const _0x16e532=await this[_0x21bbf7(0x275)][_0x21bbf7(0x236)](_0x1346bc,Number(_0xabe503),_0x5e334c);_0x16e532&&_0x16e532 instanceof a[_0x21bbf7(0x2cc)]&&this['_setupSubUnitSync'](_0x16e532);}async[_0x51cf5f(0x211)](_0x519cde){const _0x57351a=_0x51cf5f;await this[_0x57351a(0x279)](_0x519cde),_0x519cde[_0x57351a(0x12f)]['pipe'](d[_0x57351a(0x20d)](this[_0x57351a(0x28a)]))['subscribe'](_0x1313a4=>{_0x1313a4&&this['_updateURLWithCurrentState'](_0x1313a4);}),this[_0x57351a(0x1aa)][_0x57351a(0x25e)][_0x57351a(0x3a7)](d[_0x57351a(0x20d)](this[_0x57351a(0x28a)]))['subscribe'](()=>this[_0x57351a(0x279)](_0x519cde));}[_0x51cf5f(0x344)](_0x1b02ed,_0x21cf13=!0x1){const _0x2eba21=_0x51cf5f,_0x34eb94=this[_0x2eba21(0x1aa)]['getParam'](_0x2eba21(0x1c7));_0x1b02ed['getSheetId']()!==_0x34eb94&&this[_0x2eba21(0x1aa)][_0x2eba21(0x141)]('subunit',_0x1b02ed[_0x2eba21(0x399)](),_0x21cf13);}async[_0x51cf5f(0x279)](_0x2355ee){const _0x2062ae=_0x51cf5f;var _0x4fee57;const _0x128a85=this[_0x2062ae(0x1aa)]['getParam'](_0x2062ae(0x1c7));if(!_0x128a85||!_0x2355ee[_0x2062ae(0x2ec)](_0x128a85)){const _0x2cc81e=_0x2355ee['getUnhiddenWorksheets']()[0x0],_0x5d92d8=_0x2355ee[_0x2062ae(0x2ec)](_0x2cc81e);if(!_0x5d92d8)return;this[_0x2062ae(0x344)](_0x5d92d8,!0x0),await this[_0x2062ae(0x362)][_0x2062ae(0x170)](g['SetWorksheetActivateCommand']['id'],{'unitId':_0x2355ee[_0x2062ae(0x14f)](),'subUnitId':_0x2cc81e});return;}((_0x4fee57=_0x2355ee['getActiveSheet']())==null?void 0x0:_0x4fee57[_0x2062ae(0x399)]())!==_0x128a85&&await this['_commandService'][_0x2062ae(0x170)](g[_0x2062ae(0x319)]['id'],{'unitId':_0x2355ee[_0x2062ae(0x14f)](),'subUnitId':_0x128a85});}},exports[_0x51cf5f(0x363)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x51cf5f(0x36e)]),H(0x3,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x2c4)])),H(0x4,a[_0x51cf5f(0x2e4)](Ke['IRemoteInstanceService']))],exports[_0x51cf5f(0x363)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x274193,_0x1a8102,_0x425233,_0x38f088)=>{const _0x2b3de3=_0x51cf5f;for(var _0x33b0e5=_0x38f088>0x1?void 0x0:_0x38f088?Bt(_0x1a8102,_0x425233):_0x1a8102,_0x12b2e3=_0x274193[_0x2b3de3(0x296)]-0x1,_0x383b4e;_0x12b2e3>=0x0;_0x12b2e3--)(_0x383b4e=_0x274193[_0x12b2e3])&&(_0x33b0e5=_0x383b4e(_0x33b0e5)||_0x33b0e5);return _0x33b0e5;},ce=(_0x531d29,_0x50f2dc)=>(_0x5cd163,_0x1cbd7d)=>_0x50f2dc(_0x5cd163,_0x1cbd7d,_0x531d29);let z=class{constructor(_0x10a184,_0x2fa638,_0x46c52e){const _0x54acb2=_0x51cf5f;this[_0x54acb2(0x382)]=_0x10a184,this[_0x54acb2(0x1a4)]=_0x2fa638,this[_0x54acb2(0x152)]=_0x46c52e;}[_0x51cf5f(0x136)](_0xf8cd9e){const _0x30dcdf=_0x51cf5f;this[_0x30dcdf(0x2b2)](_0xf8cd9e),this['_transformPreviousActiveRange'](_0xf8cd9e);}['transformRemoteChangeset'](_0x4d20ef){const _0x1ab388=_0x51cf5f,{unitID:_0x19c757}=_0x4d20ef,_0x2cf20f=this['_renderManagerService'][_0x1ab388(0x1bd)](_0x19c757)[_0x1ab388(0x1f2)](b[_0x1ab388(0x2db)]),{redoCache:_0x30d4d5}=_0x2cf20f[_0x1ab388(0x230)]();if(_0x30d4d5[_0x1ab388(0x296)]===0x0)return _0x4d20ef;let _0x21a92f=a[_0x1ab388(0x311)][_0x1ab388(0x2f6)](_0x4d20ef[_0x1ab388(0x297)][0x0]);for(let _0x11dcdd=0x0;_0x11dcdd<_0x30d4d5[_0x1ab388(0x296)];_0x11dcdd++){const _0x5783fa={'id':_0x1ab388(0x292),'params':{..._0x30d4d5[_0x11dcdd]}},_0x1fb6ee=this[_0x1ab388(0x1a4)][_0x1ab388(0x148)](_0x21a92f,_0x5783fa,!0x1);if(m['isTransformMutationFailure'](_0x1fb6ee))throw _0x1fb6ee[_0x1ab388(0x2d9)];_0x21a92f=_0x1fb6ee[_0x1ab388(0x33a)];}return{...a[_0x1ab388(0x311)][_0x1ab388(0x2f6)](_0x4d20ef),'mutations':[_0x21a92f]};}[_0x51cf5f(0x2b2)](_0x653b72){const _0x1fc9f0=_0x51cf5f,{unitID:_0x54dba3}=_0x653b72,_0x245ff8=this[_0x1fc9f0(0x152)][_0x1fc9f0(0x1bd)](_0x54dba3)[_0x1fc9f0(0x1f2)](b[_0x1fc9f0(0x2db)]),{undoCache:_0x3a856d,redoCache:_0x2e02e1}=_0x245ff8[_0x1fc9f0(0x230)]();if(_0x3a856d[_0x1fc9f0(0x296)]===0x0||_0x2e02e1[_0x1fc9f0(0x296)]===0x0)return;const _0x354251=[],_0x14de46=[];let _0xae34c0=a[_0x1fc9f0(0x311)][_0x1fc9f0(0x2f6)](_0x653b72[_0x1fc9f0(0x297)][0x0]),_0x34d313=a[_0x1fc9f0(0x311)][_0x1fc9f0(0x2f6)](_0x653b72['mutations'][0x0]);for(let _0x29ceba=_0x3a856d[_0x1fc9f0(0x296)]-0x1;_0x29ceba>=0x0;_0x29ceba--){const _0x22b3b4={'id':_0x1fc9f0(0x292),'params':{..._0x3a856d[_0x29ceba]}},_0xaecc1a={'id':_0x1fc9f0(0x292),'params':{..._0x2e02e1[_0x29ceba]}},_0x2d3b64=this[_0x1fc9f0(0x1a4)][_0x1fc9f0(0x148)](_0xae34c0,_0x22b3b4,!0x1),_0x3e9216=this[_0x1fc9f0(0x1a4)]['transformMutation'](_0x34d313,_0xaecc1a,!0x1);if(m[_0x1fc9f0(0x201)](_0x2d3b64))throw _0x2d3b64[_0x1fc9f0(0x2d9)];if(m[_0x1fc9f0(0x201)](_0x3e9216))throw _0x3e9216['error'];_0x354251[_0x1fc9f0(0x1de)](_0x2d3b64[_0x1fc9f0(0x3af)]['params']),_0x14de46[_0x1fc9f0(0x1de)](_0x3e9216[_0x1fc9f0(0x3af)][_0x1fc9f0(0x3b5)]),_0xae34c0=_0x2d3b64['m1Prime'],_0x34d313=_0x3e9216[_0x1fc9f0(0x33a)];}_0x245ff8[_0x1fc9f0(0x3b7)]({'undoCache':_0x354251,'redoCache':_0x14de46});}[_0x51cf5f(0x218)](_0xeece57){const _0x1739ae=_0x51cf5f,{unitID:_0x57a29b}=_0xeece57,_0x5c27f7=this[_0x1739ae(0x152)][_0x1739ae(0x1bd)](_0x57a29b)['with'](b['DocIMEInputManagerService']),_0x424e1a=_0x5c27f7[_0x1739ae(0x18d)]();if(_0x424e1a==null)return;const _0x3889db=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0xeece57[_0x1739ae(0x1f4)],'actions':null,'textRanges':[_0x424e1a]}}],_0x2970cc=this['_transformService'][_0x1739ae(0x169)](_0xeece57,_0x3889db);if(!m['isTransformMutationsWithChangesetSuccess'](_0x2970cc))throw _0x2970cc[_0x1739ae(0x2d9)];const _0xd3f1b0=_0x2970cc[_0x1739ae(0x3af)][0x0]['params'][_0x1739ae(0x225)];Array[_0x1739ae(0x273)](_0xd3f1b0)&&_0xd3f1b0['length']&&_0x5c27f7[_0x1739ae(0x295)](_0xd3f1b0[0x0]);}};z=kt([ce(0x0,a[_0x51cf5f(0x249)](a['Injector'])),ce(0x1,m[_0x51cf5f(0x339)]),ce(0x2,p[_0x51cf5f(0x18a)])],z);var Ht=Object[_0x51cf5f(0x377)],Ft=(_0x4cf21f,_0x4a490b,_0x4d9c82,_0x3545a3)=>{const _0x11d148=_0x51cf5f;for(var _0x12c82c=_0x3545a3>0x1?void 0x0:_0x3545a3?Ht(_0x4a490b,_0x4d9c82):_0x4a490b,_0x38ab76=_0x4cf21f[_0x11d148(0x296)]-0x1,_0xb8d997;_0x38ab76>=0x0;_0x38ab76--)(_0xb8d997=_0x4cf21f[_0x38ab76])&&(_0x12c82c=_0xb8d997(_0x12c82c)||_0x12c82c);return _0x12c82c;},le=(_0x4942c8,_0x10035c)=>(_0x4748b8,_0x245c2f)=>_0x10035c(_0x4748b8,_0x245c2f,_0x4942c8);let J=class{constructor(_0x175d44,_0x1399cd,_0x2a71f6){const _0x3d3ead=_0x51cf5f;this[_0x3d3ead(0x382)]=_0x175d44,this['_transformService']=_0x1399cd,this['_docStateChangeManagerService']=_0x2a71f6;}['transformStateCache'](_0x230137){const _0x593967=_0x51cf5f;this[_0x593967(0x1df)](_0x230137);}['transformRemoteChangeset'](_0xf0e5e0){const _0x2c39b2=_0x51cf5f,{unitID:_0x44e8c2}=_0xf0e5e0,{collaboration:_0x195c81}=this[_0x2c39b2(0x2e0)]['getStateCache'](_0x44e8c2);if(_0x195c81['length']===0x0)return _0xf0e5e0;let _0x561acf=a[_0x2c39b2(0x311)][_0x2c39b2(0x2f6)](_0xf0e5e0[_0x2c39b2(0x297)][0x0]);for(let _0x36d5ee=0x0;_0x36d5ee<_0x195c81[_0x2c39b2(0x296)];_0x36d5ee++){const _0x349646={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x195c81[_0x36d5ee]['unitId'],..._0x195c81[_0x36d5ee][_0x2c39b2(0x18f)]}},_0x3c3085=this['_transformService'][_0x2c39b2(0x148)](_0x561acf,_0x349646,!0x1);if(m['isTransformMutationFailure'](_0x3c3085))throw _0x3c3085['error'];_0x561acf=_0x3c3085[_0x2c39b2(0x33a)];}return{...a[_0x2c39b2(0x311)][_0x2c39b2(0x2f6)](_0xf0e5e0),'mutations':[_0x561acf]};}[_0x51cf5f(0x1df)](_0x44851f){const _0x16cd79=_0x51cf5f,{unitID:_0x355b1e}=_0x44851f,{history:_0x105e06,collaboration:_0xcf963e}=this[_0x16cd79(0x2e0)][_0x16cd79(0x1ee)](_0x355b1e);if(_0x105e06[_0x16cd79(0x296)]===0x0&&_0xcf963e[_0x16cd79(0x296)]===0x0)return;const _0x3e7f23=[],_0x5c5e56=[];let _0x5aea9d=a['Tools']['deepClone'](_0x44851f[_0x16cd79(0x297)][0x0]),_0x5b1536=a[_0x16cd79(0x311)][_0x16cd79(0x2f6)](_0x44851f[_0x16cd79(0x297)][0x0]);for(let _0x5d0fa6=_0x105e06[_0x16cd79(0x296)]-0x1;_0x5d0fa6>=0x0;_0x5d0fa6--){const _0x23316b={'id':_0x16cd79(0x292),'params':{'unitId':_0x105e06[_0x5d0fa6][_0x16cd79(0x395)],..._0x105e06[_0x5d0fa6][_0x16cd79(0x22a)]}},_0x49d9cf={'id':_0x16cd79(0x292),'params':{'unitId':_0x105e06[_0x5d0fa6][_0x16cd79(0x395)],..._0x105e06[_0x5d0fa6][_0x16cd79(0x18f)]}},_0x1cd216=this[_0x16cd79(0x1a4)]['transformMutation'](_0x5aea9d,_0x23316b,!0x1),_0x1e6c44=this['_transformService']['transformMutation'](_0x5b1536,_0x49d9cf,!0x1);if(m[_0x16cd79(0x201)](_0x1cd216))throw _0x1cd216['error'];if(m[_0x16cd79(0x201)](_0x1e6c44))throw _0x1e6c44[_0x16cd79(0x2d9)];_0x3e7f23['unshift']({..._0x105e06[_0x5d0fa6],'undoState':_0x1cd216['m2Prime'][_0x16cd79(0x3b5)],'redoState':_0x1e6c44[_0x16cd79(0x3af)][_0x16cd79(0x3b5)]}),_0x5aea9d=_0x1cd216[_0x16cd79(0x33a)],_0x5b1536=_0x1e6c44['m1Prime'];}_0x5aea9d=a[_0x16cd79(0x311)]['deepClone'](_0x44851f['mutations'][0x0]),_0x5b1536=a[_0x16cd79(0x311)][_0x16cd79(0x2f6)](_0x44851f[_0x16cd79(0x297)][0x0]);for(let _0x208d96=_0xcf963e[_0x16cd79(0x296)]-0x1;_0x208d96>=0x0;_0x208d96--){const _0x11b2e2={'id':_0x16cd79(0x292),'params':{'unitId':_0xcf963e[_0x208d96][_0x16cd79(0x395)],..._0xcf963e[_0x208d96][_0x16cd79(0x22a)]}},_0x4e5a28={'id':_0x16cd79(0x292),'params':{'unitId':_0xcf963e[_0x208d96][_0x16cd79(0x395)],..._0xcf963e[_0x208d96][_0x16cd79(0x18f)]}},_0xd887d3=this['_transformService'][_0x16cd79(0x148)](_0x5aea9d,_0x11b2e2,!0x1),_0x286a87=this['_transformService']['transformMutation'](_0x5b1536,_0x4e5a28,!0x1);if(m[_0x16cd79(0x201)](_0xd887d3))throw _0xd887d3[_0x16cd79(0x2d9)];if(m['isTransformMutationFailure'](_0x286a87))throw _0x286a87[_0x16cd79(0x2d9)];_0x5c5e56['unshift']({..._0xcf963e[_0x208d96],'undoState':_0xd887d3[_0x16cd79(0x3af)][_0x16cd79(0x3b5)],'redoState':_0x286a87['m2Prime'][_0x16cd79(0x3b5)]}),_0x5aea9d=_0xd887d3[_0x16cd79(0x33a)],_0x5b1536=_0x286a87[_0x16cd79(0x33a)];}this[_0x16cd79(0x2e0)]['setStateCache'](_0x355b1e,{'history':_0x3e7f23,'collaboration':_0x5c5e56});}};J=Ft([le(0x0,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),le(0x1,m[_0x51cf5f(0x339)]),le(0x2,a[_0x51cf5f(0x249)](b[_0x51cf5f(0x358)]))],J);var Yt=Object[_0x51cf5f(0x377)],Wt=(_0x53b47d,_0x400779,_0x4472a9,_0x108f07)=>{const _0x393d95=_0x51cf5f;for(var _0x3d2738=_0x108f07>0x1?void 0x0:_0x108f07?Yt(_0x400779,_0x4472a9):_0x400779,_0x2c97dd=_0x53b47d[_0x393d95(0x296)]-0x1,_0x5c3200;_0x2c97dd>=0x0;_0x2c97dd--)(_0x5c3200=_0x53b47d[_0x2c97dd])&&(_0x3d2738=_0x5c3200(_0x3d2738)||_0x3d2738);return _0x3d2738;},Ne=(_0x22c0de,_0x534d12)=>(_0x2a5aa2,_0xa7b4c5)=>_0x534d12(_0x2a5aa2,_0xa7b4c5,_0x22c0de);let Z=class{constructor(_0x44e5d3,_0x28dd30){const _0x2cf251=_0x51cf5f;this[_0x2cf251(0x382)]=_0x44e5d3,this[_0x2cf251(0x1a4)]=_0x28dd30;}[_0x51cf5f(0x153)](_0x1feea5){const _0x8bd2fd=_0x51cf5f;var _0xa5600a;const _0x4a7249=this['_injector']['get'](Y[_0x8bd2fd(0x398)]),_0x5557c3=(_0xa5600a=_0x4a7249[_0x8bd2fd(0x1e8)]())!=null?_0xa5600a:[];if(_0x5557c3[_0x8bd2fd(0x296)]===0x0)return;const _0x82df78=_0x1feea5['unitID'],_0x54fe4e=[{'id':_0x8bd2fd(0x292),'params':{'unitId':_0x82df78,'actions':null,'textRanges':_0x5557c3}}],_0x5599b1=this[_0x8bd2fd(0x1a4)][_0x8bd2fd(0x169)](_0x1feea5,_0x54fe4e);if(!m[_0x8bd2fd(0x337)](_0x5599b1))throw _0x5599b1['error'];const _0x553464=_0x5599b1[_0x8bd2fd(0x3af)][0x0][_0x8bd2fd(0x3b5)][_0x8bd2fd(0x225)];Array[_0x8bd2fd(0x273)](_0x553464)&&_0x553464[_0x8bd2fd(0x296)]&&_0x4a7249['replaceDocRanges'](_0x553464,{'unitId':_0x82df78,'subUnitId':_0x82df78},!0x1);}};Z=Wt([Ne(0x0,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),Ne(0x1,m['ITransformService'])],Z);var Vt=Object['getOwnPropertyDescriptor'],Xt=(_0xbdc317,_0x24269d,_0x10c8bf,_0x21a855)=>{for(var _0x30d14a=_0x21a855>0x1?void 0x0:_0x21a855?Vt(_0x24269d,_0x10c8bf):_0x24269d,_0x39f72e=_0xbdc317['length']-0x1,_0xaf4323;_0x39f72e>=0x0;_0x39f72e--)(_0xaf4323=_0xbdc317[_0x39f72e])&&(_0x30d14a=_0xaf4323(_0x30d14a)||_0x30d14a);return _0x30d14a;},N=(_0x307820,_0x3c3312)=>(_0x4220f9,_0x3f7bb6)=>_0x3c3312(_0x4220f9,_0x3f7bb6,_0x307820);let Q=class extends a[_0x51cf5f(0x188)]{constructor(_0xf481c9,_0xaadec4,_0x4a8aaa,_0x584b6a,_0x1c95f8,_0x1b5d7e,_0x490475,_0x22a62c){const _0x1d6e25=_0x51cf5f;super(),h(this,'_status$',new d[(_0x1d6e25(0x365))](u[_0x1d6e25(0x198)][_0x1d6e25(0x1cf)])),(this[_0x1d6e25(0x2e0)]=_0xf481c9,this[_0x1d6e25(0x3b6)]=_0xaadec4,this[_0x1d6e25(0x15c)]=_0x4a8aaa,this[_0x1d6e25(0x131)]=_0x584b6a,this[_0x1d6e25(0x1c8)]=_0x1c95f8,this[_0x1d6e25(0x2c2)]=_0x1b5d7e,this[_0x1d6e25(0x1a8)]=_0x490475,this[_0x1d6e25(0x1e5)]=_0x22a62c,this[_0x1d6e25(0x17b)]());}['_initEntityListener'](){const _0x164de9=_0x51cf5f;this[_0x164de9(0x1fa)](this[_0x164de9(0x3b6)][_0x164de9(0x183)][_0x164de9(0x254)](_0x1a0744=>{const _0x122ac0=_0x164de9,_0x3552fc=this[_0x122ac0(0x2e0)][_0x122ac0(0x174)][_0x122ac0(0x254)](_0x4236a6=>{const _0x2f9918=_0x122ac0;if(_0x4236a6==null)return;const {unitId:_0x1c956f,redoState:_0x4c0799,commandId:_0xa4d9a6}=_0x4236a6;if(_0x1c956f!==_0x1a0744[_0x2f9918(0x1f4)])return;const _0x2a9c5e={'id':_0xa4d9a6,'type':a[_0x2f9918(0x199)]['MUTATION'],'params':{'unitId':_0x1c956f,'actions':_0x4c0799[_0x2f9918(0x324)],'textRanges':null}};_0x1a0744[_0x2f9918(0x34f)](_0x2a9c5e);});if(_0x1a0744[_0x122ac0(0x1fa)](_0x3552fc),_0x1a0744 instanceof u[_0x122ac0(0x219)]){const _0xccae07={'onTransformIME':_0x35b660=>this[_0x122ac0(0x15c)]['transformIMECache'](_0x35b660),'onTransformState':_0x13c2bc=>this[_0x122ac0(0x131)][_0x122ac0(0x2a1)](_0x13c2bc),'onTransformSelections':_0xa4c6fe=>this[_0x122ac0(0x1c8)]['transformSelections'](_0xa4c6fe),'onSyncEditingCollabCursor':_0x45bf98=>this[_0x122ac0(0x2c2)][_0x122ac0(0x245)](_0x45bf98),'onTransformRemoteChangesetByIMECache':_0x4829fe=>this[_0x122ac0(0x15c)][_0x122ac0(0x17e)](_0x4829fe),'onTransformRemoteChangesetByStateCache':_0x29b833=>this['_docTransformStateCacheService'][_0x122ac0(0x17e)](_0x29b833)};_0x1a0744[_0x122ac0(0x2da)](_0xccae07);}}));}};Q=Xt([N(0x0,a[_0x51cf5f(0x249)](b[_0x51cf5f(0x358)])),N(0x1,a[_0x51cf5f(0x249)](u[_0x51cf5f(0x162)])),N(0x2,a[_0x51cf5f(0x249)](z)),N(0x3,a[_0x51cf5f(0x249)](J)),N(0x4,a[_0x51cf5f(0x249)](Z)),N(0x5,a[_0x51cf5f(0x249)](Ce)),N(0x6,T['IMessageService']),N(0x7,a['Inject'](a[_0x51cf5f(0x306)]))],Q);var Gt=Object['getOwnPropertyDescriptor'],Kt=(_0x5b6e62,_0x3651c1,_0x3c611e,_0x397a5b)=>{const _0x2980d8=_0x51cf5f;for(var _0x1038d5=_0x397a5b>0x1?void 0x0:_0x397a5b?Gt(_0x3651c1,_0x3c611e):_0x3651c1,_0x10af21=_0x5b6e62[_0x2980d8(0x296)]-0x1,_0x2c7dce;_0x10af21>=0x0;_0x10af21--)(_0x2c7dce=_0x5b6e62[_0x10af21])&&(_0x1038d5=_0x2c7dce(_0x1038d5)||_0x1038d5);return _0x1038d5;},_e=(_0x2900c6,_0x19991e)=>(_0x574079,_0x2307aa)=>_0x19991e(_0x574079,_0x2307aa,_0x2900c6);let ge=class extends a[_0x51cf5f(0x188)]{constructor(_0x26d355,_0x51d2f7,_0x79c7bb){const _0x993b81=_0x51cf5f;super(),h(this,_0x993b81(0x130),new Map()),h(this,_0x993b81(0x2d6),new Map()),h(this,_0x993b81(0x385),!0x1),(this['_configService']=_0x26d355,this[_0x993b81(0x15f)]=_0x51d2f7,this[_0x993b81(0x372)]=_0x79c7bb);}[_0x51cf5f(0x302)](){this['_disabled']=!0x0;}[_0x51cf5f(0x158)](){const _0x1554d0=_0x51cf5f;this[_0x1554d0(0x385)]=!0x1;}get[_0x51cf5f(0x15d)](){const _0x1a878e=_0x51cf5f;return this[_0x1a878e(0x2d6)];}[_0x51cf5f(0x277)](){const _0x4404b7=_0x51cf5f;this[_0x4404b7(0x25c)]()[_0x4404b7(0x2b1)](()=>super[_0x4404b7(0x277)]());}async[_0x51cf5f(0x2c0)](_0x9f2725){const _0x2f46b1=_0x51cf5f;return this[_0x2f46b1(0x385)]?null:this[_0x2f46b1(0x15f)][_0x2f46b1(0x255)](u['getLocalCacheKey'](_0x9f2725));}async[_0x51cf5f(0x17a)](_0x2d9b59,_0x5ed866){const _0x31878b=_0x51cf5f;return!!this[_0x31878b(0x15f)][_0x31878b(0x1d7)](_0x2d9b59,_0x5ed866);}[_0x51cf5f(0x289)](_0x4ad92e,_0x5deed4,_0x577d67,_0x46155c){const _0x54f39a=_0x51cf5f,_0xcf8af1=this[_0x54f39a(0x372)][_0x54f39a(0x351)](_0x4ad92e);this[_0x54f39a(0x130)][_0x54f39a(0x2e8)](_0x4ad92e,{'unitID':_0x4ad92e,'type':_0x5deed4,'awaitingChangeset':_0x577d67,'mutations':_0x46155c,'rev':_0xcf8af1}),this[_0x54f39a(0x2d6)]['has'](_0x4ad92e)||this[_0x54f39a(0x26e)](_0x4ad92e);}[_0x51cf5f(0x26e)](_0x875c86){const _0x2af2c5=_0x51cf5f,_0x46f274=this[_0x2af2c5(0x264)]();_0x46f274===0x0?this['_saveCache'](_0x875c86):this[_0x2af2c5(0x2d6)][_0x2af2c5(0x2e8)](_0x875c86,setTimeout(()=>this[_0x2af2c5(0x35b)](_0x875c86),_0x46f274));}[_0x51cf5f(0x264)](){const _0x4c0eb5=_0x51cf5f;var _0x38867b;return(_0x38867b=this[_0x4c0eb5(0x178)][_0x4c0eb5(0x2aa)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x38867b:u[_0x4c0eb5(0x20f)];}[_0x51cf5f(0x35b)](_0x50b774){const _0x140850=_0x51cf5f,_0x2a6e6d=this[_0x140850(0x2d6)][_0x140850(0x214)](_0x50b774);return _0x2a6e6d!==void 0x0&&window[_0x140850(0x259)](_0x2a6e6d),this[_0x140850(0x15f)][_0x140850(0x1d7)](u[_0x140850(0x1b1)](_0x50b774),this[_0x140850(0x130)][_0x140850(0x214)](_0x50b774))[_0x140850(0x2b1)](()=>this[_0x140850(0x2d6)][_0x140850(0x1cb)](_0x50b774));}async[_0x51cf5f(0x25c)](){const _0x101c8d=_0x51cf5f,_0x21312a=[];this[_0x101c8d(0x2d6)][_0x101c8d(0x2ba)]((_0x48a2d6,_0x9801bf)=>{const _0x357eae=_0x101c8d;window[_0x357eae(0x259)](_0x48a2d6),_0x21312a['push'](this['_saveCache'](_0x9801bf)['then'](()=>{const _0x5dfd97=_0x357eae;this[_0x5dfd97(0x2d6)]['delete'](_0x9801bf);}));}),await Promise[_0x101c8d(0x19b)](_0x21312a);}};ge=Kt([_e(0x0,a[_0x51cf5f(0x293)]),_e(0x1,a['ILocalStorageService']),_e(0x2,a['Inject'](m[_0x51cf5f(0x284)]))],ge);function _0x406e(_0x221920,_0x3f57bd){const _0x65eb63=_0x65eb();return _0x406e=function(_0x406e5f,_0x2eb395){_0x406e5f=_0x406e5f-0x12b;let _0x83b5b3=_0x65eb63[_0x406e5f];return _0x83b5b3;},_0x406e(_0x221920,_0x3f57bd);}class je extends a[_0x51cf5f(0x298)]{constructor(){const _0x36b5a6=_0x51cf5f;super(),h(this,'urlChange$'),this['urlChange$']=d[_0x36b5a6(0x29e)](window,_0x36b5a6(0x360))['pipe'](d['takeUntil'](this[_0x36b5a6(0x28a)]),d['shareReplay'](0x1),d['mapTo'](void 0x0));}['setParam'](_0x1c607f,_0x4336ac,_0x337b7c=!0x1){const _0x2532c6=_0x51cf5f,_0x4521d9=new URL(window['location'][_0x2532c6(0x1e4)]);_0x4521d9[_0x2532c6(0x3a5)][_0x2532c6(0x2e8)](_0x1c607f,_0x4336ac),_0x337b7c?window[_0x2532c6(0x19a)][_0x2532c6(0x227)]('','',_0x4521d9[_0x2532c6(0x2f3)]()):window[_0x2532c6(0x19a)][_0x2532c6(0x1c3)]('','',_0x4521d9['toString']());}[_0x51cf5f(0x22f)](_0x41af90,_0x4207c3=!0x1){const _0x2a2485=_0x51cf5f,_0x4ba64b=new URL(window[_0x2a2485(0x396)][_0x2a2485(0x1e4)]);_0x4ba64b[_0x2a2485(0x3a5)][_0x2a2485(0x1cb)](_0x41af90),_0x4207c3?window[_0x2a2485(0x19a)][_0x2a2485(0x227)]('','',_0x4ba64b[_0x2a2485(0x2f3)]()):window[_0x2a2485(0x19a)][_0x2a2485(0x1c3)]('','',_0x4ba64b[_0x2a2485(0x2f3)]());}['getParam'](_0x2ab996){const _0x5dca9b=_0x51cf5f;var _0x29e4b5;return(_0x29e4b5=new URL(window[_0x5dca9b(0x396)][_0x5dca9b(0x1e4)])[_0x5dca9b(0x3a5)][_0x5dca9b(0x214)](_0x2ab996))!=null?_0x29e4b5:void 0x0;}}var qt=Object[_0x51cf5f(0x348)],zt=Object[_0x51cf5f(0x377)],Jt=(_0x4e0cfa,_0xbbc363,_0x346b8d)=>_0xbbc363 in _0x4e0cfa?qt(_0x4e0cfa,_0xbbc363,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x346b8d}):_0x4e0cfa[_0xbbc363]=_0x346b8d,Zt=(_0xd07a1a,_0x39c204,_0x5037c5,_0x199d60)=>{const _0x358147=_0x51cf5f;for(var _0x1f8f2b=_0x199d60>0x1?void 0x0:_0x199d60?zt(_0x39c204,_0x5037c5):_0x39c204,_0x45022b=_0xd07a1a[_0x358147(0x296)]-0x1,_0x2b964e;_0x45022b>=0x0;_0x45022b--)(_0x2b964e=_0xd07a1a[_0x45022b])&&(_0x1f8f2b=_0x2b964e(_0x1f8f2b)||_0x1f8f2b);return _0x1f8f2b;},he=(_0x4bc2cd,_0x2944e1)=>(_0x439054,_0x381bee)=>_0x2944e1(_0x439054,_0x381bee,_0x4bc2cd),Qt=(_0x3fe019,_0x58b63c,_0xdf855d)=>Jt(_0x3fe019,_0x58b63c+'',_0xdf855d);const es=_0x51cf5f(0x380);exports[_0x51cf5f(0x3ab)]=class extends a[_0x51cf5f(0x342)]{constructor(_0x5d8cd5=Ue,_0x3bb1cd,_0x15493c,_0x2bff52){const _0x520eca=_0x51cf5f;super(),this[_0x520eca(0x31b)]=_0x5d8cd5,this[_0x520eca(0x152)]=_0x3bb1cd,this[_0x520eca(0x382)]=_0x15493c,this[_0x520eca(0x178)]=_0x2bff52;const {..._0x4c8988}=a[_0x520eca(0x2fc)]({},Ue,this['_config']);this[_0x520eca(0x178)][_0x520eca(0x368)]($t,_0x4c8988);}[_0x51cf5f(0x140)](){const _0x443ada=_0x51cf5f;this[_0x443ada(0x3b4)](),this[_0x443ada(0x31d)]();}[_0x51cf5f(0x383)](){const _0x12c672=_0x51cf5f;this[_0x12c672(0x29b)]();}[_0x51cf5f(0x3b4)](){const _0x213265=_0x51cf5f;var _0x5b09d6;const _0x147389=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x213265(0x25d)],{'useClass':G['WebSocketService']}],[u[_0x213265(0x278)],{'useClass':ge}],[exports[_0x213265(0x1ba)]],[Q],[q],[x],[de],[exports[_0x213265(0x363)]]];a['registerDependencies'](this['_injector'],a['mergeOverrideWithDependencies'](_0x147389,(_0x5b09d6=this['_config'])==null?void 0x0:_0x5b09d6[_0x213265(0x352)]));}[_0x51cf5f(0x29b)](){const _0x17e949=_0x51cf5f;this[_0x17e949(0x1fa)](this[_0x17e949(0x152)][_0x17e949(0x1c1)](a[_0x17e949(0x304)][_0x17e949(0x288)],[Ie])),this[_0x17e949(0x1fa)](this[_0x17e949(0x152)][_0x17e949(0x1c1)](a['UniverInstanceType'][_0x17e949(0x2fd)],[ve]));}[_0x51cf5f(0x31d)](){const _0x1fb496=_0x51cf5f;a['touchDependencies'](this['_injector'],[[x],[exports[_0x1fb496(0x1ba)]],[Q],[q],[exports[_0x1fb496(0x363)]]]);}},Qt(exports[_0x51cf5f(0x3ab)],_0x51cf5f(0x347),es),exports[_0x51cf5f(0x3ab)]=Zt([a[_0x51cf5f(0x25b)](u[_0x51cf5f(0x37a)]),he(0x1,p[_0x51cf5f(0x18a)]),he(0x2,a[_0x51cf5f(0x249)](a[_0x51cf5f(0x2be)])),he(0x3,a[_0x51cf5f(0x293)])],exports[_0x51cf5f(0x3ab)]);var ts=Object[_0x51cf5f(0x377)],ss=(_0x1f09c2,_0x283bd3,_0x3fdab8,_0x3cf6e0)=>{const _0x25890d=_0x51cf5f;for(var _0x17cdbe=_0x3cf6e0>0x1?void 0x0:_0x3cf6e0?ts(_0x283bd3,_0x3fdab8):_0x283bd3,_0x118236=_0x1f09c2[_0x25890d(0x296)]-0x1,_0x22eaab;_0x118236>=0x0;_0x118236--)(_0x22eaab=_0x1f09c2[_0x118236])&&(_0x17cdbe=_0x22eaab(_0x17cdbe)||_0x17cdbe);return _0x17cdbe;},F=(_0x118eff,_0x421fb4)=>(_0x4cbb99,_0x4666a6)=>_0x421fb4(_0x4cbb99,_0x4666a6,_0x118eff);exports[_0x51cf5f(0x37c)]=class extends u[_0x51cf5f(0x371)]{constructor(_0x2389c4,_0x5cc06d,_0x5c53b6,_0x4e9a23,_0x16c97c){super(_0x2389c4,_0x5cc06d,_0x5c53b6,_0x4e9a23,_0x16c97c);}async[_0x51cf5f(0x39c)](_0x331e58){const _0x2ae202=_0x51cf5f,_0x339389=await this['_getSessionTicket'](),_0x4218af=this[_0x2ae202(0x24a)](_0x331e58,_0x339389);return this['_doCreateSocket'](_0x4218af);}['_createSocketURL'](_0x228f82,_0xdc83c8){const _0x1308dc=_0x51cf5f,_0x29f161=typeof window>'u'?new URL(_0x228f82):new URL(_0x228f82,window[_0x1308dc(0x396)]['origin']);_0x29f161[_0x1308dc(0x3a5)][_0x1308dc(0x2e8)](_0x1308dc(0x22d),_0xdc83c8);const _0x35492f=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x1308dc(0x285)]);return _0x35492f[_0x1308dc(0x214)](_0x1308dc(0x20b))&&_0x29f161[_0x1308dc(0x3a5)]['set'](_0x1308dc(0x20b),_0x35492f[_0x1308dc(0x214)](_0x1308dc(0x20b))),_0x29f161['toString']();}async[_0x51cf5f(0x367)](){const _0x534bc9=_0x51cf5f;var _0x36e699,_0x5cbba8,_0x1abed6;const _0x10dd2e=this['_configService'][_0x534bc9(0x2aa)](u[_0x534bc9(0x1ff)]),_0x11ce10=(_0x36e699=_0x10dd2e==null?void 0x0:_0x10dd2e[_0x534bc9(0x203)])!=null?_0x36e699:u[_0x534bc9(0x1f7)];return(_0x1abed6=(_0x5cbba8=(await this[_0x534bc9(0x2cd)][_0x534bc9(0x214)](_0x11ce10,{'headers':{'Content-Type':'application/json'}}))[_0x534bc9(0x226)])==null?void 0x0:_0x5cbba8[_0x534bc9(0x26d)])!=null?_0x1abed6:'';}},exports[_0x51cf5f(0x37c)]=ss([F(0x0,a['Inject'](a[_0x51cf5f(0x2be)])),F(0x1,a[_0x51cf5f(0x249)](G[_0x51cf5f(0x20a)])),F(0x2,a['IConfigService']),F(0x3,a[_0x51cf5f(0x1b5)]),F(0x4,m[_0x51cf5f(0x16f)])],exports[_0x51cf5f(0x37c)]);const Me=0x7530,Le=_0x51cf5f(0x376);function _0x65eb(){const _0x44a4ce=['sessionTicket','init','removeParam','getUndoRedoMutationParamsCache','SNAPSHOT_HAS_BEEN_REMOVED','@univerjs/ui','startRow','status$','ENSURE_SNAPSHOT_EXECUTION','loadUnit','getCurrentSelections','debounceTime','defs','@univerjs/engine-render','onMouseMove','getSkeleton','SessionStatus','6549462UlDfvX','createIdentifier','_selfUnitIDs','RemoteUniscriptService','currentTheme$','off-line-icon','CONFLICT','syncEditingCollabCursor','debounce','_syncEditingCollabCursorService','collabStatus.notCollab','Inject','_createSocketURL','YUUMI_UNABLE_LOAD_URL','getMergeData','skeleton','@univerjs/core','apply','handleInsertRangeMoveDown','xlink:href','fillText','eventID','subscribe','getItem','sheetId','beginPath','_cursors','clearTimeout','_docSkeleton','DependentOn','exhaustSavingTask','ISocketService','urlChange$','[RemoteUniscriptService]:\x20no\x20focused\x20unit','onTransformChange$','executionId','_collabCursorController','_uiPartsService','_getSaveTimeout','_labelPosition','_textBubble','MemberService','isActive','NO_OTHER_CLIENTS_EDITING','addClipboardHook','_toggleOnline','RichTextEditingMutation','ticket','_scheduleSaving','unsubscribe','session.will-retry','range','/run/','isArray','SetTextSelectionsOperation','_dataLoaderService','OTHER_CLIENT_EDITING','dispose','ILocalCacheService','_updateSubUnitFromURLParams','extend','InsertRowCommandId','PENDING','LICENSE_EXPORT_SIZE_EXCEEDED','_updateLocalCursor','getUnitStatus$','collabStatus.synced','_drawRectRange','getMember','APPLY_REJECT','RevisionService','search','jiqing.500','ranges','UNIVER_DOC','updateOfflineData','dispose$','handleIRemoveRow','TEXT','_univerInstanceService','hasOwnProperty','drawWith','7108465qBnXOl','IBeforeCloseService','doc.mutation.rich-text-editing','IConfigService','memberID','setActiveRange','length','mutations','RxDisposable','_handleLeaveEvent','_hover','_registerRenderDependencies','FETCH_MISS','getTypeOfUnitDisposed$','fromEvent','tag','hide','transformStateCache','flatMap','INVITE_CODE_HAS_BEEN_UES','getCollabCursors$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','resize','_heartbeatTimer','JOIN_ROOM_FAILED','font','getConfig','useCallback','COMPLETION_FINISHED','DOC_RANGE_TYPE','permission.title','@univerjs/engine-formula','#FFF','then','_transformUndoRedoStack','url(#off-line-icon_clip0_910_343)','_handleHeartbeatEvent','stringify','_anchor','evenodd','YUUMI_URL_COL_OUT_OF_RANGE','univerjs-icon\x20univerjs-icon-','forEach','fillRule','_instanceService','isEditing','Injector','useObservable','loadOfflineData','getColorFromTheme','_docSyncEditingCollabCursorService','_unitOnClients','DataLoaderService','_color','PERMISSION_DENIED','currentColor','getCurrentUnitForType','getCoordByCell','Error','collabStatus.syncing','Workbook','_httpService','yellow.400','48rciBxH','session.connection-failed','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_name','UniverIcon','url(#$1','46809aRMcDU','_saveTaskMap','current','YUUMI_NO_CUBOID_FOR_QUESTION','error','addHandlerCallback','DocIMEInputManagerService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getCurrent','handleMoveRange','LICENSE_IMPORT_SIZE_EXCEEDED','_docStateChangeManagerService','_roomMembers$','has','setAlpha','Optional','toStringTag','name','UNRECOGNIZED','set','invokeId','LICENSE_MAX_UNITS_EXCEEDED','data','getSheetBySheetId','UNDEFINED','LOGIN_FAILED','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','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Unknown\x20user','_shapes','toString','_init','univer-flex\x20univer-mr-2\x20univer-text-xl','deepClone','_initCommandExecutedListener','CollaborationStatusDisplay','startColumn','UnitStatus','Failed','merge','UNIVER_SHEET','requireSession','fill','handleDeleteRangeMoveLeft','use','disableLocalCache','className','UniverInstanceType','getUniverSheetInstance','LocaleService','map','string','_logService','toDisposable','createElement','AWAITING','getAncestorScale','_id','createInstance','_backgroundColor','Tools','_removeCollabCursors','1em','uni.network.url-service','WebURLService','getRangePointData','max','_context','SetWorksheetActivateCommand','_handleEvent','_config','_imageIoService','_initDependencies','unit','moveTo','react','focused$','_document','WECHAT_HAS_BEEN_BOUND','actions','call','push','getViewport','http://www.w3.org/2000/svg','getValue','UPDATE_CURSOR','attrs','subUnitId','throttleTime','on-line-icon_clip0_910_349','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','853580OCntKE','collabCursorState$','INotificationService','Tooltip','DocSkeletonManagerService','size','38604KmCgXd','isTransformMutationsWithChangesetSuccess','icon','ITransformService','m1Prime','getRelativeToViewportCoord','toRgbString','WebBrowserSingleActiveUnitService','RemoveRowCommandId','5048MlEKwv','getFocusedUnit','event$','Plugin','roomMembers','_updateURLWithCurrentState','collab-rect-range-','INVITE_CODE_REQUIRED','pluginName','defineProperty','bottom','collabStatus.fetchMiss','fillStyle','OTHER_CLIENTS_EDITING','_render','combineLatest','onLocalMutation','_refreshCollabCursors','getCurrentRevOfUnit','override','debug','sessionStatus$','some','show','_lastPointer','DocStateChangeManagerService','handleDeleteRangeMoveUp','_setupBeforeClosingHandler','_saveCache','collaboration.single-unit.warning','IMessageService','_initEvent','assignAColorForMemberID','popstate','TEXT_RANGE_LAYER_INDEX','_commandService','CollaborationDataLoaderController','RegularPolygon','BehaviorSubject','_hideTimer','_getSessionTicket','setConfig','defIds','text','OnLineIcon','indexOf','measureText','ICommandService','INTERNAL_ERROR','_onCursorDelete','CollaborationSocketService','_revisionService','SheetSkeletonManagerService','random','handleIRemoveCol','ACTIVE_UNIT_EVENT_CHANNEL','getOwnPropertyDescriptor','Rect','UNAUTHENTICATED','UniverCollaborationClientPlugin','includes','BrowserCollaborationSocketService','function','Subject','_getScale','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','collab-text-range-','_injector','onRendered','RefRangeService','_disabled','CollaborationSessionService','asObservable','COLORS','OffLineIcon','selection','_removeClearOtherTimer','cursorInfo','INVITE_CODE_ALREADY_BOUND','_cursorShapes','InsertRangeMoveRightCommandId','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','registerBeforeClose','jsx','_drawAnchor','APPLY_REVISION_CONFILICT','unitId','location','@univerjs/docs-ui','DocSelectionManagerService','getSheetId','none','SheetsSelectionsService','createSocket','getParam','ThemeService','color','_scheduleHeartbeat','_getAnchorBounding','handleInsertRow','_refRangeService','setShapeProps','searchParams','IUIPartsService','pipe','OFFLINE','backgroundColor','getMemberID','UniverCollaborationClientUIPlugin','cursorInfo$','getCollabEntity$','@univerjs/sheets-ui','m2Prime','path','white','getOwnPropertySymbols','CollaborationUIEventService','_registerDependencies','params','_collaborationController','setUndoRedoMutationParamsCache','forwardRef','roomMembers$','_docClipboardService','collaboration.closeRoom','saveImage','_scene','activeSheet$','_cachedData','_docTransformStateCacheService','Vector2','hovered','clearInterval','DeleteRangeMoveLeftCommandId','transformIMECache','@univerjs/sheets','_hovered','USER_NOT_INVITED_CODE','_initResize','subscribeEvent','_handleHover','imageSourceType','_collabCursorState$','FromArray','onStarting','setParam','startsWith','restore','MOBILE_HAS_BEEN_BOUND','ONLINE','RECT','lineTo','transformMutation','distinctUntilChanged','save','_drawTextRange','svg','@univerjs/network','DeleteRangeMoveUpCommandId','getUnitId','useRef','MessageType','_renderManagerService','transformSelections','_ensureSubject','CHANGESET_REVISION_CONFILICT','runRefRangeMutations','substring','enableLocalCache','ALREADY_EXISTS','_notificationService','_initStatusComponent','_docTransformIMECacheService','saveTaskMap','CollaborationUIEventId','_localStorageService','prototype','HEADER_MENU','CollaborationController','IDocClipboardService','setInterval','...','@univerjs/rpc','findNodePositionByCharIndex','handleInsertCol','transformMutationsWithChangeset','ColorKit','CollaborationEvent','_draw','EffectRefRangId','code','ISnapshotServerService','executeCommand','getActiveSheet','_eventUnsubscribe','Rectangle','docStateChange$','NodePositionConvertToCursor','YUUMI_TABLE_NOT_FOUND_IN_UNIT','round','_configService','_getSheetObject','saveOfflineData','_initEntityListener','_online','Module','transformRemoteChangeset','SetSelectionsOperation','_getMergeRange','assign','addObject','entityInit$','currentSkeleton$','IUniverInstanceService','url(#on-line-icon_clip0_910_349)','USERS_LEAVE','Disposable','Shape','IRenderManagerService','red.300','_memberService','getActiveRange','rgba(255,\x20255,\x20255,\x200.01)','redoState','SOCKET_FAILED_RETRY','_session','_collabSessionService','DisposableCollection','YUUMI_RATE_OVER_LIMIT','selections','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','setTimeout','CollaborationStatus','CommandType','history','all','next','YUUMI_SUBSCRIPTION_NOT_FOUND','disposeUnit','_anchorDot','triggerDblclick','closePath','getCellPositionByOffset','onCommandExecuted','_transformService','BuiltInUIPart','Warning','_sheetSkeletonManagerService','_messageService','onPointerEnter$','_urlService','blue.400','1106232CGxHrH','clipPath','type','univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','entries','getLocalCacheKey','_startSheetCollabCursor','1339569gAGyoy','green.600','ILogService','registerRefRange','[CollaborationDataLoaderController]','newValue','_initStatusListener','DesktopCollaborationStatusDisplayController','EMAIL_HAS_BEEN_BOUND','width','getRenderById','propertyIsEnumerable','INVALID_INVITE_CODE','_handleJoinEvent','registerRenderModule','_entityInit$','pushState','_scheduleClearOtherTimer','_colorIndex','YUUMI_ALL_TABLES_IS_INVALID','subunit','_docTransformSelectionsService','top','_entities','delete','source','NOT_FOUND','concat','NOT_COLLAB','filter','_beforeCloseService','_send','values','split','switchMap','displayName','setItem','MoveRangeCommandId','replace','_clearOtherTimers','_updateCollabCursors','YUUMI_AI_RUN_FAILED','storage','unshift','_transformHistoryAndStateStack','InsertColCommandId','getTypeOfUnitAdded$','add','endColumn','href','_localeService','APPLY_DUPLICATED','SOCKET_FAILED','getDocRanges','contains','_themeService','_startDocCollabCursor','_status$','_cursorInfo$','getStateCache','_docSkeletonManagerService','from','SNAPSHOT_INVALID_SNAPSHOT','with','getOffsetConfig','unitID','children','off-line-icon_clip0_910_343','DEFAULT_WS_SESSION_TICKET_URL','endRow','addObjects','disposeWithMe','on-line-icon','CONNECTOR_DATA_TOO_LARGE','row','rxjs/operators','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getColor','isTransformMutationFailure','arc','wsSessionTicketUrl','colorChannel1','div','black','_toggleOffline','InsertRangeMoveDownCommandId','_range','HTTPService','runId','idSuffix','takeUntil','_cursor','LOCAL_CACHE_INTERVAL','_onCursorUpdate','_setupSubUnitSync','TOO_MANY_REQUESTS','collaboration-client-ui.config','get','_colorAssignService','INVALID_ARGUMENT','min','_transformPreviousActiveRange','DocCollaborationEntity','post','_collaborationUIEventService','complete','SHEET_VIEWPORT_KEY','session.collaboration-timeout','makeDirty','send','unload','column','_assignedColors','VIEW_MAIN','textRanges','body','replaceState','_unitStatus','APPLY_NON_SEQUENTIAL_REVISION','undoState','height','generateRandomId'];_0x65eb=function(){return _0x44a4ce;};return _0x65eb();}class is extends a[_0x51cf5f(0x188)]{constructor(){const _0x18b3ee=_0x51cf5f;super(),h(this,_0x18b3ee(0x30e),a['generateRandomId']()),h(this,_0x18b3ee(0x240),new Set()),h(this,'_unitOnClients',new Map()),h(this,_0x18b3ee(0x2a7),null),h(this,'_clearOtherTimers',new Map()),h(this,'_unitStatus',new Map()),this[_0x18b3ee(0x2f4)]();}[_0x51cf5f(0x277)](){const _0x15802c=_0x51cf5f;super['dispose'](),this[_0x15802c(0x1da)][_0x15802c(0x2ba)]((_0x1ac13c,_0xb70df1)=>this[_0x15802c(0x38b)](_0xb70df1)),this[_0x15802c(0x2a7)]&&window['clearInterval'](this[_0x15802c(0x2a7)]);}[_0x51cf5f(0x27f)](_0x48d2ee){const _0x53de53=_0x51cf5f;return this[_0x53de53(0x154)](_0x48d2ee)[_0x53de53(0x3a7)](d[_0x53de53(0x149)]());}['editingUnit'](_0x45f6c9){const _0x391cbe=_0x51cf5f;this[_0x391cbe(0x240)][_0x391cbe(0x335)]===0x0&&this[_0x391cbe(0x3a0)](),this['_selfUnitIDs'][_0x391cbe(0x1e2)](_0x45f6c9),this[_0x391cbe(0x1d2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x45f6c9],'isForwarded':!0x1});}[_0x51cf5f(0x19e)](_0xd2b7ef){const _0x4c6b89=_0x51cf5f;this['_selfUnitIDs'][_0x4c6b89(0x1cb)](_0xd2b7ef),this[_0x4c6b89(0x240)][_0x4c6b89(0x335)]===0x0&&this[_0x4c6b89(0x2a7)]&&window[_0x4c6b89(0x134)](this[_0x4c6b89(0x2a7)]);}[_0x51cf5f(0x2f4)](){const _0x2c7e57=_0x51cf5f;this[_0x2c7e57(0x1fa)](a['toDisposable'](d['fromEvent'](window,_0x2c7e57(0x1dd))[_0x2c7e57(0x254)](_0x4ee341=>{const _0x188140=_0x2c7e57;if(_0x4ee341['key']!==Le||!_0x4ee341['newValue'])return;const _0x5bbba2=JSON['parse'](_0x4ee341[_0x188140(0x1b8)]);this[_0x188140(0x31a)](_0x5bbba2);}))),window['addEventListener'](_0x2c7e57(0x221),()=>this[_0x2c7e57(0x1d2)]({'type':0x1,'memberID':this[_0x2c7e57(0x30e)],'unitIDs':Array[_0x2c7e57(0x1f0)](this['_selfUnitIDs'])}));}[_0x51cf5f(0x31a)](_0x5cb10f){const _0x53eee2=_0x51cf5f;switch(_0x5cb10f['type']){case 0x0:this[_0x53eee2(0x1c0)](_0x5cb10f);break;case 0x1:this['_handleLeaveEvent'](_0x5cb10f);break;case 0x2:this[_0x53eee2(0x2b4)](_0x5cb10f);break;}}[_0x51cf5f(0x1c0)](_0x2f18a7){const _0x5ab6d3=_0x51cf5f,{unitIDs:_0x461230,memberID:_0x4a83a1,isForwarded:_0x3d2341}=_0x2f18a7;_0x461230[_0x5ab6d3(0x2ba)](_0x4047db=>{const _0x19a7f8=_0x5ab6d3;if(!_0x3d2341&&this[_0x19a7f8(0x2c3)][_0x19a7f8(0x2e2)](_0x4047db)&&this[_0x19a7f8(0x154)](_0x4047db)[_0x19a7f8(0x19c)](u[_0x19a7f8(0x2fa)][_0x19a7f8(0x34c)]),!this[_0x19a7f8(0x2c3)][_0x19a7f8(0x2e2)](_0x4047db)||!this[_0x19a7f8(0x2c3)][_0x19a7f8(0x214)](_0x4047db)[_0x19a7f8(0x2e2)](_0x4a83a1)){const _0x51fe6e=this['_unitOnClients']['get'](_0x4047db)||new Set();_0x51fe6e[_0x19a7f8(0x1e2)](_0x4a83a1),this[_0x19a7f8(0x2c3)][_0x19a7f8(0x2e8)](_0x4047db,_0x51fe6e),this[_0x19a7f8(0x1c4)](_0x4a83a1);}}),_0x3d2341||this[_0x5ab6d3(0x1d2)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x5ab6d3(0x240)]],'isForwarded':!0x0});}[_0x51cf5f(0x1c4)](_0x3d735c){const _0x18fa86=_0x51cf5f;this[_0x18fa86(0x38b)](_0x3d735c);const _0x343266=window[_0x18fa86(0x197)](()=>{const _0x5397af=_0x18fa86;this[_0x5397af(0x2c3)][_0x5397af(0x2ba)](_0x304bcf=>{const _0x68fac3=_0x5397af;_0x304bcf[_0x68fac3(0x1cb)](_0x3d735c);});},Me*0x2);this['_clearOtherTimers'][_0x18fa86(0x2e8)](_0x3d735c,_0x343266);}[_0x51cf5f(0x38b)](_0x5c369b){const _0x18978c=_0x51cf5f;if(this[_0x18978c(0x1da)][_0x18978c(0x2e2)](_0x5c369b)){const _0x38d323=this[_0x18978c(0x1da)]['get'](_0x5c369b);_0x38d323&&window[_0x18978c(0x259)](_0x38d323),this[_0x18978c(0x1da)][_0x18978c(0x2e8)](_0x5c369b,null);}}[_0x51cf5f(0x299)](_0x151fea){const _0x5023e5=_0x51cf5f,{memberID:_0x4d562a,unitIDs:_0x26928b}=_0x151fea;_0x26928b[_0x5023e5(0x2ba)](_0x255fda=>{const _0x3af136=_0x5023e5;var _0x198475;const _0x32a91a=this[_0x3af136(0x2c3)][_0x3af136(0x214)](_0x255fda);_0x32a91a&&(_0x32a91a[_0x3af136(0x1cb)](_0x4d562a),(_0x198475=this[_0x3af136(0x154)](_0x255fda))==null||_0x198475[_0x3af136(0x19c)](_0x32a91a['size']===0x0?u[_0x3af136(0x2fa)][_0x3af136(0x269)]:u[_0x3af136(0x2fa)][_0x3af136(0x34c)]));}),this[_0x5023e5(0x38b)](_0x4d562a);}[_0x51cf5f(0x2b4)](_0x33abd0){const _0xc43a89=_0x51cf5f;this['_scheduleClearOtherTimer'](_0x33abd0[_0xc43a89(0x294)]);}['_send'](_0x3be96e){const _0x102112=_0x51cf5f;localStorage[_0x102112(0x1d7)](Le,JSON[_0x102112(0x2b5)](_0x3be96e));}[_0x51cf5f(0x3a0)](){const _0x198ab0=_0x51cf5f;this[_0x198ab0(0x2a7)]=window[_0x198ab0(0x164)](()=>{const _0x2ce30e=_0x198ab0;this[_0x2ce30e(0x1d2)]({'type':0x2,'memberID':this['_id']});},Me);}['_ensureSubject'](_0x478062){const _0x4cb1a2=_0x51cf5f;return this['_unitStatus']['has'](_0x478062)||this[_0x4cb1a2(0x228)][_0x4cb1a2(0x2e8)](_0x478062,new d['BehaviorSubject'](u[_0x4cb1a2(0x2fa)][_0x4cb1a2(0x269)])),this[_0x4cb1a2(0x228)][_0x4cb1a2(0x214)](_0x478062);}}var Be=(_0x1f5a85=>(_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2ed)]=0x0]=_0x51cf5f(0x2ed),_0x1f5a85[_0x1f5a85['OK']=0x1]='OK',_0x1f5a85[_0x1f5a85['INTERNAL_ERROR']=0x2]=_0x51cf5f(0x36f),_0x1f5a85[_0x1f5a85['PERMISSION_DENIED']=0x3]=_0x51cf5f(0x2c6),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1cd)]=0x4]='NOT_FOUND',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x379)]=0x5]=_0x51cf5f(0x379),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x159)]=0x6]=_0x51cf5f(0x159),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x216)]=0x7]=_0x51cf5f(0x216),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x212)]=0x8]=_0x51cf5f(0x212),_0x1f5a85[_0x1f5a85['COMPLETION_FINISHED']=0x9]=_0x51cf5f(0x2ac),_0x1f5a85[_0x1f5a85['LOGIN_FAILED']=0xa]=_0x51cf5f(0x2ee),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x155)]=0x1389]=_0x51cf5f(0x155),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1f1)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x231)]=0x1772]=_0x51cf5f(0x231),_0x1f5a85[_0x1f5a85['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x51cf5f(0x235),_0x1f5a85[_0x1f5a85['APPLY_REJECT']=0x1b59]=_0x51cf5f(0x283),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x229)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x394)]=0x1b5b]=_0x51cf5f(0x394),_0x1f5a85[_0x1f5a85['APPLY_PERMISSION_DENIED']=0x1b5c]='APPLY_PERMISSION_DENIED',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1e6)]=0x1b5d]=_0x51cf5f(0x1e6),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1fc)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2ea)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x1f5a85[_0x1f5a85['LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED']=0x232a]=_0x51cf5f(0x2d1),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2df)]=0x232b]=_0x51cf5f(0x2df),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x27d)]=0x232c]=_0x51cf5f(0x27d),_0x1f5a85[_0x1f5a85['LICENSE_DISTRO_REJECTED']=0x232d]='LICENSE_DISTRO_REJECTED',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x24b)]=0x2711]=_0x51cf5f(0x24b),_0x1f5a85[_0x1f5a85['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x51cf5f(0x2b8),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x194)]=0x2713]=_0x51cf5f(0x194),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x19d)]=0x2714]=_0x51cf5f(0x19d),_0x1f5a85[_0x1f5a85['YUUMI_NO_CUBOID_FOR_QUESTION']=0x271a]=_0x51cf5f(0x2d8),_0x1f5a85[_0x1f5a85['YUUMI_ASYNCIO_CANCELLED']=0x271b]='YUUMI_ASYNCIO_CANCELLED',_0x1f5a85[_0x1f5a85['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x51cf5f(0x176),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1c6)]=0x271d]=_0x51cf5f(0x1c6),_0x1f5a85[_0x1f5a85['YUUMI_PROMPT_MAX_TOKENS_EXCEEDED']=0x271e]=_0x51cf5f(0x32f),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1dc)]=0x271f]=_0x51cf5f(0x1dc),_0x1f5a85[_0x1f5a85['PY_RUNTIME_SCRIPT_ERROR']=0x2af9]='PY_RUNTIME_SCRIPT_ERROR',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2a3)]=0x2ee1]=_0x51cf5f(0x2a3),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1bf)]=0x2ee2]=_0x51cf5f(0x1bf),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x346)]=0x2ee3]=_0x51cf5f(0x346),_0x1f5a85[_0x1f5a85['USER_NOT_INVITED_CODE']=0x2ee4]=_0x51cf5f(0x139),_0x1f5a85[_0x1f5a85['INVITE_CODE_ALREADY_BOUND']=0x2ee5]=_0x51cf5f(0x38d),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x323)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x144)]=0x32ca]='MOBILE_HAS_BEEN_BOUND',_0x1f5a85[_0x1f5a85[_0x51cf5f(0x1bb)]=0x32cb]=_0x51cf5f(0x1bb),_0x1f5a85[_0x1f5a85[_0x51cf5f(0x2e7)]=-0x1]=_0x51cf5f(0x2e7),_0x1f5a85))(Be||{}),ns=Object[_0x51cf5f(0x377)],rs=(_0xb0af4f,_0x11dd70,_0x5c315a,_0x52f3b8)=>{for(var _0x23af05=_0x52f3b8>0x1?void 0x0:_0x52f3b8?ns(_0x11dd70,_0x5c315a):_0x11dd70,_0x1a9b51=_0xb0af4f['length']-0x1,_0x2ce73e;_0x1a9b51>=0x0;_0x1a9b51--)(_0x2ce73e=_0xb0af4f[_0x1a9b51])&&(_0x23af05=_0x2ce73e(_0x23af05)||_0x23af05);return _0x23af05;},ue=(_0x5e37eb,_0x732b01)=>(_0x41e585,_0x10490f)=>_0x732b01(_0x41e585,_0x10490f,_0x5e37eb);exports['RemoteUniscriptService']=class extends a[_0x51cf5f(0x188)]{constructor(_0x5e22e9,_0x30c350,_0x2a71db){const _0x146c20=_0x51cf5f;super(),this[_0x146c20(0x2bc)]=_0x5e22e9,this[_0x146c20(0x2cd)]=_0x30c350,this[_0x146c20(0x178)]=_0x2a71db;}async['runOnServer'](_0x359a60,_0x2738b9,_0x2bed64,..._0x20a722){const _0x3ce64d=_0x51cf5f;var _0x51aa08,_0x2bae18,_0xb8a74b,_0x3ceab7;const _0x8a1507=this[_0x3ce64d(0x2bc)][_0x3ce64d(0x340)]();if(!_0x8a1507)throw new Error(_0x3ce64d(0x25f));const _0x289b86=((_0x51aa08=this[_0x3ce64d(0x178)][_0x3ce64d(0x2aa)](u['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']))!=null?_0x51aa08:u[_0x3ce64d(0x2a5)])+'/'+_0x359a60+_0x3ce64d(0x272)+_0x2738b9,_0x461b42=new URL(window[_0x3ce64d(0x396)][_0x3ce64d(0x1e4)]),_0x4774fc={'scriptId':_0x359a60,'runId':(_0x2bae18=_0x461b42[_0x3ce64d(0x3a5)][_0x3ce64d(0x214)]('runId'))!=null?_0x2bae18:'','function':_0x2738b9,'unitId':_0x8a1507[_0x3ce64d(0x14f)](),'argsOfFunction':JSON['stringify'](_0x20a722),'invokeId':(_0xb8a74b=_0x2bed64[_0x3ce64d(0x2e9)])!=null?_0xb8a74b:'','executionId':(_0x3ceab7=_0x2bed64[_0x3ce64d(0x261)])!=null?_0x3ceab7:''};try{const _0xf3322e=await this[_0x3ce64d(0x2cd)][_0x3ce64d(0x21a)](_0x289b86,{'body':_0x4774fc});return _0xf3322e['body'][_0x3ce64d(0x2d9)]&&_0xf3322e[_0x3ce64d(0x226)][_0x3ce64d(0x2d9)][_0x3ce64d(0x16e)]!==Be['OK']?_0x3ce64d(0x2fb):_0xf3322e[_0x3ce64d(0x226)]['result'];}catch{return _0x3ce64d(0x2fb);}}},exports[_0x51cf5f(0x241)]=rs([ue(0x0,a['IUniverInstanceService']),ue(0x1,a[_0x51cf5f(0x249)](G['HTTPService'])),ue(0x2,a[_0x51cf5f(0x293)])],exports['RemoteUniscriptService']),exports[_0x51cf5f(0x2f8)]=xe,exports['IURLService']=be,exports['SheetCollabCursorShape']=Pe,exports[_0x51cf5f(0x33d)]=is,exports[_0x51cf5f(0x315)]=je;
|
|
1
|
+
'use strict';const _0x4b86e5=_0x5371;(function(_0x703b37,_0x82b89c){const _0x4d0689=_0x5371,_0x363912=_0x703b37();while(!![]){try{const _0x993935=parseInt(_0x4d0689(0x273))/0x1+-parseInt(_0x4d0689(0x168))/0x2*(parseInt(_0x4d0689(0x2c1))/0x3)+parseInt(_0x4d0689(0xbc))/0x4*(parseInt(_0x4d0689(0x10d))/0x5)+parseInt(_0x4d0689(0x100))/0x6+parseInt(_0x4d0689(0x211))/0x7+parseInt(_0x4d0689(0x18f))/0x8*(parseInt(_0x4d0689(0x2fb))/0x9)+-parseInt(_0x4d0689(0x2d5))/0xa*(parseInt(_0x4d0689(0x21e))/0xb);if(_0x993935===_0x82b89c)break;else _0x363912['push'](_0x363912['shift']());}catch(_0x3e78c6){_0x363912['push'](_0x363912['shift']());}}}(_0x1f41,0xe90b9));var Ve=Object[_0x4b86e5(0x2e4)],Xe=(_0x300a9e,_0x33c577,_0x2cb23e)=>_0x33c577 in _0x300a9e?Ve(_0x300a9e,_0x33c577,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cb23e}):_0x300a9e[_0x33c577]=_0x2cb23e,h=(_0x2bf611,_0xbabd41,_0x49bf98)=>Xe(_0x2bf611,typeof _0xbabd41!=_0x4b86e5(0x145)?_0xbabd41+'':_0xbabd41,_0x49bf98);Object[_0x4b86e5(0x2e4)](exports,Symbol[_0x4b86e5(0x132)],{'value':_0x4b86e5(0x329)});const u=require(_0x4b86e5(0x291)),a=require(_0x4b86e5(0x1e8)),p=require(_0x4b86e5(0xb2)),G=require(_0x4b86e5(0x1a1)),b=require('@univerjs/docs-ui'),Ge=require(_0x4b86e5(0x2b2)),d=require(_0x4b86e5(0x1ad)),Y=require('@univerjs/docs'),m=require(_0x4b86e5(0x285)),Ee=require(_0x4b86e5(0x2f5)),g=require('@univerjs/sheets'),$=require(_0x4b86e5(0x2e7)),X=require(_0x4b86e5(0xee)),w=require(_0x4b86e5(0x1f2)),T=require(_0x4b86e5(0x22a)),D=require(_0x4b86e5(0x215)),M=require(_0x4b86e5(0x259)),Ke=require(_0x4b86e5(0x317));var qe=Object[_0x4b86e5(0x220)],ze=(_0x3e59a5,_0x24b05e,_0x1f864a,_0x3e464d)=>{const _0x4e5fbc=_0x4b86e5;for(var _0x6779e1=_0x3e464d>0x1?void 0x0:_0x3e464d?qe(_0x24b05e,_0x1f864a):_0x24b05e,_0x544b4c=_0x3e59a5[_0x4e5fbc(0x214)]-0x1,_0x4112dd;_0x544b4c>=0x0;_0x544b4c--)(_0x4112dd=_0x3e59a5[_0x544b4c])&&(_0x6779e1=_0x4112dd(_0x6779e1)||_0x6779e1);return _0x6779e1;},Te=(_0x71a96,_0x6fc8a2)=>(_0x30af8c,_0x38d4d6)=>_0x6fc8a2(_0x30af8c,_0x38d4d6,_0x71a96);let de=class extends a['RxDisposable']{constructor(_0x4fb669,_0x3f565a){const _0x55b8b1=_0x4b86e5;super(),this['_docClipboardService']=_0x4fb669,this['_imageIoService']=_0x3f565a,this[_0x55b8b1(0x1f3)]();}[_0x4b86e5(0x1f3)](){const _0x5d7120=_0x4b86e5,_0x28b36c=this;this[_0x5d7120(0x240)](this[_0x5d7120(0x103)][_0x5d7120(0x17e)]({'onBeforePasteImage':async _0xe24697=>{const _0x4c837f=_0x5d7120,_0x1c355b=await _0x28b36c[_0x4c837f(0x2ba)][_0x4c837f(0xec)](_0xe24697);return _0x1c355b?{'source':_0x1c355b[_0x4c837f(0x2a2)],'imageSourceType':_0x1c355b['imageSourceType']}:null;}}));}};de=ze([Te(0x0,b['IDocClipboardService']),Te(0x1,Ge['IImageIoService'])],de);const Oe=[_0x4b86e5(0xfb),_0x4b86e5(0x190),_0x4b86e5(0x304),_0x4b86e5(0x233),_0x4b86e5(0x203),'yellow.400'];class me extends a[_0x4b86e5(0x1b8)]{constructor(){const _0x319ed1=_0x4b86e5;super(...arguments),h(this,_0x319ed1(0x32a),new Map()),h(this,_0x319ed1(0x169),0x0);}[_0x4b86e5(0xb9)](_0x4cd665){const _0x4b18a=_0x4b86e5;if(this[_0x4b18a(0x32a)][_0x4b18a(0x135)](_0x4cd665))return this[_0x4b18a(0x32a)][_0x4b18a(0x2e2)](_0x4cd665);const _0x7b4fe0=Oe[this['_colorIndex']];return this[_0x4b18a(0x169)]=(this[_0x4b18a(0x169)]+0x1)%Oe[_0x4b18a(0x214)],this[_0x4b18a(0x32a)]['set'](_0x4cd665,_0x7b4fe0),_0x7b4fe0;}}function _0x1f41(){const _0x7021a1=['fromEvent','UPDATE_CURSOR','source','throttleTime','call','dispose$','_commandService','getValue','isArray','EffectRefRangId','registerRefRange','Warning','fillRule','name','updateOfflineData','Shape','enableLocalCache','_registerDependencies','@univerjs/drawing','params','getUniverSheetInstance','ENSURE_SNAPSHOT_EXECUTION','RemoteUniscriptService','#FFF','runId','LICENSE_DISTRO_REJECTED','_imageIoService','transformStateCache','event$','_startDocCollabCursor','undoState','none','icon','426879ryEuRH','serializeRangeWithSheet','_localeService','currentTheme$','getLocalCacheKey','ICommandService','_localCacheService','_clearOtherTimers','createSocket','univer-flex\x20univer-items-center','div','getTypeOfUnitAdded$','getColor','_shapes','lineTo','M0\x200H16V16H0z','top','UniverIcon','getOffsetConfig','save','10Zbenqh','with','onPointerEnter$','_transformUndoRedoStack','searchParams','_draw','_drawRectRange','handleInsertRangeMoveRight','defs','getActiveSheet','PENDING','_initResize','unitId','get','map','defineProperty','on-line-icon','IConfigService','rxjs/operators','APPLY_REJECT','column','post','_refreshCollabCursors','getVpScrollXYInfoByPosToVp','_logService','href','UNAUTHENTICATED','_revisionService','_startSheetCollabCursor','mask','_initStatusComponent','next','@univerjs/engine-formula','_config','merge','getSkeleton','MoveRangeCommandId','SetWorksheetActivateCommand','17054154xpMDLk','toRgbString','requireSession','COLORS','getStateCache','_initEvent','IUIPartsService','getSheetBySheetId','RxDisposable','green.600','_docSkeleton','UniverInstanceType','handleIRemoveRow','_collaborationController','_getAnchorBounding','disableLocalCache','getUnitStatus$','INVALID_ARGUMENT','PY_RUNTIME_SCRIPT_ERROR','setParam','NOT_COLLAB','white','RemoveColCommandId','INVITE_CODE_REQUIRED','measureText','_drawAnchor','YUUMI_ALL_TABLES_IS_INVALID','_collaborationUIEventService','@univerjs/rpc','setShapeProps','Error','jsxs','_status$','LICENSE_MAX_UNITS_EXCEEDED','_configService','0\x200\x2016\x2016','forEach','_getMergeRange','isActive','ticket','storage','RefRangeService','SYNCED','_saveTaskMap','text','_removeCollabCursors','Module','_assignedColors','filter','getTypeOfUnitDisposed$','_transformPreviousActiveRange','_messageService','cursorInfo$','YUUMI_NO_CUBOID_FOR_QUESTION','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_disabled','onRendered','getUnitId','collab-text-anchor-','fromEventSubject','_getScale','error','USER_NOT_INVITED_CODE','_cursors','_scene','off-line-icon','combineLatest','_memberService','getMember','NodePositionConvertToCursor','_document','_context','JOIN_ROOM_FAILED','ONLINE','_collabSessionService','hovered','round','complete','INTERNAL_ERROR','FromArray','_scheduleSaving','@univerjs/engine-render','LICENSE_EXPORT_SIZE_EXCEEDED','YUUMI_URL_COL_OUT_OF_RANGE','indexOf','transformIMECache','UnitStatus','_collabCursorState$','assignAColorForMemberID','getCurrentUnitForType','code','1073944arwHPe','YUUMI_RATE_OVER_LIMIT','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','on-line-icon_clip0_910_349','_anchor','findNodePositionByCharIndex','TEXT_RANGE_LAYER_INDEX','subunit','ISnapshotServerService','EMAIL_HAS_BEEN_BOUND','UNDEFINED','size','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','Optional','_handleEvent','transformByState','_toggleOffline','black','useDependency','1em','_unitStatus','MOBILE_HAS_BEEN_BOUND','_id','restore','HTTPService','DeleteRangeMoveUpCommandId','xlink:href','isTransformMutationsWithChangesetSuccess','then','YUUMI_PROMPT_MAX_TOKENS_EXCEEDED','collabStatus.conflict','getUnhiddenWorksheets','handleMoveRange','parse','_injector','distinctUntilChanged','from','concat','debug','_onCursorUpdate','origin','RemoveRowCommandId','_setupSubUnitSync','some','APPLY_NON_SEQUENTIAL_REVISION','setUndoRedoMutationParamsCache','_univerInstanceService','MessageType','saveImage','drawWith','@univerjs/sheets-ui','handleInsertCol','onMouseMove','unit','_name','disposeUnit','_refRangeService','SNAPSHOT_INVALID_SNAPSHOT','wsSessionTicketUrl','useObservable','collaboration-client.offline-data-not-saved','_localStorageService','_saveCache','purple.300','all','newValue','type','pipe','5846286eKZyWo','max','fillStyle','_docClipboardService','ThemeService','url(#off-line-icon_clip0_910_343)','eventID','override','children','apply','toString','CollaborationStatus','subUnitId','10HuiipV','getUndoRedoMutationParamsCache','colorChannel1','addEventListener','fillText','SheetsSelectionsService','_toggleOnline','IUniverInstanceService','beginPath','UNRECOGNIZED','entityInit$','useCallback','evenodd','switchMap','body','_transformHistoryAndStateStack','_urlService','off-line-icon_clip0_910_343','NodePositionConvertToRectRange','flatMap','_docSkeletonManagerService','CLOSE_ROOM','mapTo','translate(.97)','_updateURLWithCurrentState','_online','SOCKET_FAILED_RETRY','setStateCache','engine','replaceDocRanges','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','clearInterval','getParam','CommandType','collab-client.tooltip.reconnect','min','...','toStringTag','displayName','SheetSkeletonManagerService','has','ACTIVE_UNIT_EVENT_CHANNEL','_docStateChangeManagerService','_updateSubUnitFromURLParams','ILogService','UniverCollaborationClientUIPlugin','currentSkeleton$','WebURLService','ITransformService','current','Unknown\x20user','_hovered','debounceTime','cursorInfo','addObjects','_anchorDot','symbol','unitID','_removeClearOtherTimer','SUBMIT_CHANGESET_TIMEOUT','_doCreateSocket','substring','ILocalStorageService','_docTransformStateCacheService','urlChange$','_send','_entityInit$','registerRenderModule','subscribeEvent','textRanges','CollaborationDataLoaderController','rgba(255,\x20255,\x20255,\x200.01)','InsertRangeMoveRightCommandId','transformRemoteChangeset','InsertRangeMoveDownCommandId','VIEW_MAIN','DOC_RANGE_TYPE','setActiveRange','Inject','unsubscribe','/run/','subscribe','pluginName','generateRandomId','dispose','_initDependencies','clipPath','find','USERS_LEAVE','loadOfflineData','Failed','22oKuEZK','_colorIndex','mutations','FETCH_MISS','CollaborationSessionService','_collabCursorController','_selfUnitIDs','_handleHeartbeatEvent','_themeService','_scheduleClearOtherTimer','focused$','COMPLETION_FINISHED','_entities','collaboration-client-ui.config','Plugin','roomMembers','onCommandExecuted','prototype','OTHER_CLIENTS_EDITING','LOGIN_FAILED','transformSelections','_heartbeatTimer','addClipboardHook','getFocusedUnit','Rect','replace','Vector2','Injector','PERMISSION_DENIED','_backgroundColor','univer-mr-2\x20univer-flex\x20univer-text-xl','string','CollaborationUIEventId','clsx','[CollaborationDataLoaderController]','ISocketService','debounce','_handleJoinEvent','width','8MJMqFe','jiqing.500','_getSessionTicket','deserializeRangeWithSheet','_render','APPLY_PERMISSION_DENIED','deepClone','_setupBeforeClosingHandler','DocSkeletonManagerService','CollaborationEvent','tag','Rectangle','getCurrentRevOfUnit','removeParam','jsx','transformMutation','path','makeDirty','@univerjs/network','sheetID','collabCursorState$','url(#on-line-icon_clip0_910_349)','_docTransformIMECacheService','BuiltInUIPart','toDisposable','UNIVER_DOC','getDocRanges','LICENSE_IMPORT_SIZE_EXCEEDED','backgroundColor','init','rxjs','closePath','getMergeData','className','_getSheetObject','handleIRemoveCol','show','univerjs-icon\x20univerjs-icon-','delete','triggerDblclick','_session','Disposable','_handleHover','touchDependencies','entries','IURLService','0\x200\x2017\x2016','height','invokeId','_docTransformSelectionsService','IRenderManagerService','_ensureSubject','WebSocketService','SetDocZoomRatioOperation','docStateChange$','session.collaboration-timeout','add','url(#$1','editingUnit','CONNECTOR_DATA_TOO_LARGE','_color','values','fill','connectInjector','data','session.will-retry','InsertColCommandId','forwardRef','SNAPSHOT_HAS_BEEN_REMOVED','saveTaskMap','handleDeleteRangeMoveUp','handleInsertRow','getCellPositionByOffset','attrs','CHANGESET_REVISION_CONFILICT','getCoordByCell','location','_syncEditingCollabCursorService','Subject','unshift','executeCommand','_updateCollabCursors','YUUMI_UNABLE_LOAD_URL','selection','NOT_FOUND','collaboration.closeRoom','getConfig','onLocalMutation','transformMutationsWithChangeset','@univerjs/core','HEADER_MENU','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_httpService','send','InsertRowCommandId','collabStatus.notCollab','Tools','handleInsertRangeMoveDown','unload','react/jsx-runtime','_init','_scheduleHeartbeat','ALREADY_EXISTS','key','CollaborationStatusDisplay','stringify','_lastPointer','includes','function','OffLineIcon','ILocalCacheService','shareReplay','collabStatus.syncing','currentColor','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','labelPosition','blue.400','_initEntityListener','_colorAssignService','SheetCollabCursorShape','UNIVER_SHEET','RegularPolygon','_cursor','onPointerLeave$','MUTATION','INVITE_CODE_HAS_BEEN_UES','_initCommandExecutedListener','sessionStatus$','_initStatusListener','_registerRenderDependencies','5178152YQsBRR','onTransformChange$','isTransformMutationFailure','length','@univerjs/design','setInterval','onPointerMove$','getItem','loadUnit','CollaborationController','extend','RECT','collabStatus.fetchMiss','22570141nSeHfU','_drawTextRange','getOwnPropertyDescriptor','m2Prime','AWAITING_WITH_PENDING','_cursorInfo$','INVALID_INVITE_CODE','SessionStatus','DocIMEInputManagerService','getCurrentSelections','collabStatus.offline','saveOfflineData','@univerjs/ui','_cachedData','createElement','popstate','_labelPosition','getMemberID','setTimeout','IMessageService','addHandlerCallback','red.300','_createSocketURL','getSheetId','_hover','getOwnPropertySymbols','reconnect','asObservable','session.connection-failed','BehaviorSubject','createInstance','_docSyncEditingCollabCursorService','setConfig','TOO_MANY_REQUESTS','disposeWithMe','_getSaveTimeout','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_onCursorDelete','_updateLocalCursor','use','uni.network.url-service','ColorKit','redoState','clearTimeout','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','takeUntil','_notificationService','_eventUnsubscribe','m1Prime','bottom','LocaleService','_instanceService','Workbook','row','_unitOnClients','addObject','_cursorShapes','_beforeCloseService','transform','react','getColorFromTheme','startRow','pushState','TEXT','_range','moveTo','DocStateChangeManagerService','_uiPartsService','sheetId','getActiveRange','assign','_roomMembers$','skeleton','defIds','IRemoteInstanceService','OnLineIcon','CONFLICT','getCollabEntity$','status$','_sheetSkeletonManagerService','arc','DocCollaborationEntity','MemberService','YUUMI_ASYNCIO_CANCELLED','getAncestorScale','425612jFTXga','DesktopCollaborationStatusDisplayController','APPLY_REVISION_CONFILICT','set','DataLoaderService','roomMembers$','memberID','_onRefRangeChange','svg','getCollabCursors$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Tooltip','_textBubble','_hideTimer','DocSelectionManagerService','_transformService','ranges','hasOwnProperty','@univerjs-pro/collaboration','setAlpha','WECHAT_HAS_BEEN_BOUND','propertyIsEnumerable','getRangePointData','YUUMI_TABLE_NOT_FOUND_IN_UNIT','setItem','OFFLINE','getRelativeToViewportCoord','color','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','history','@univerjs-pro/collaboration-client','sessionTicket','doc.mutation.rich-text-editing','OTHER_CLIENT_EDITING','BrowserCollaborationSocketService','http://www.w3.org/2000/svg','_renderManagerService','collabStatus.synced','getRenderById','range','push','split','replaceState','startsWith','idSuffix'];_0x1f41=function(){return _0x7021a1;};return _0x1f41();}function we(_0x5c4322){const _0x139d93=_0x4b86e5;let _0x2ff377='';for(const _0x4788a7 of _0x5c4322){const {startOffset:_0x407f02,endOffset:_0x306e93,isActive:_0x312275,rangeType:_0x505a9f,segmentId:_0xa7a140,segmentPage:_0x18b06e}=_0x4788a7;_0x2ff377[_0x139d93(0x214)]&&(_0x2ff377+=','),_0x2ff377+=_0x407f02+':'+_0x306e93+':'+(_0x312275?'1':'0')+':'+_0x505a9f+':'+_0xa7a140+':'+_0x18b06e;}return _0x2ff377;}function Je(_0x7eb4f9){const _0x54e711=_0x4b86e5,_0x30753f=_0x7eb4f9[_0x54e711(0x29c)](','),_0x3e5da6=[];for(const _0x2d5edb of _0x30753f){const [_0x35e7ae,_0x15050e,_0x5d3d7c,_0x2d7bd6,_0x1027d1,_0x547212]=_0x2d5edb[_0x54e711(0x29c)](':');_0x3e5da6[_0x54e711(0x29b)]({'startOffset':Number(_0x35e7ae),'endOffset':Number(_0x15050e),'collapsed':_0x35e7ae===_0x15050e,'isActive':_0x5d3d7c==='1','rangeType':_0x2d7bd6===a['DOC_RANGE_TYPE'][_0x54e711(0x25d)]?a[_0x54e711(0x159)][_0x54e711(0x25d)]:a['DOC_RANGE_TYPE']['RECT'],'segmentId':typeof _0x1027d1==_0x54e711(0x187)?String(_0x1027d1):'','segmentPage':Number(_0x547212!=null?_0x547212:-0x1)});}return _0x3e5da6[_0x54e711(0xe7)](_0x60af15=>_0x60af15[_0x54e711(0x321)])||(_0x3e5da6[0x0][_0x54e711(0x321)]=!0x0),_0x3e5da6;}class Ce extends a[_0x4b86e5(0x303)]{constructor(){const _0x223279=_0x4b86e5;super(...arguments),h(this,'_collabCursorState$',new d['BehaviorSubject'](null)),h(this,_0x223279(0x1a3),this[_0x223279(0xb8)][_0x223279(0x239)]());}['syncEditingCollabCursor'](_0x1dbbd4){const _0x55adab=_0x4b86e5,{unitID:_0x4b71d0,memberID:_0x12d00c,textRanges:_0x2756d2}=_0x1dbbd4,_0x1fd1ec=we(_0x2756d2);if(_0x1fd1ec==='')return;const _0x14cdd7={'unitID':_0x4b71d0,'memberID':_0x12d00c,'selection':_0x1fd1ec};this[_0x55adab(0xb8)]['next'](_0x14cdd7);}}var Ze=Object[_0x4b86e5(0x220)],Qe=(_0x2f85b9,_0x5c943b,_0x86ac5c,_0x2ac56b)=>{const _0x3d776e=_0x4b86e5;for(var _0x3ad622=_0x2ac56b>0x1?void 0x0:_0x2ac56b?Ze(_0x5c943b,_0x86ac5c):_0x5c943b,_0x4aa6fb=_0x2f85b9[_0x3d776e(0x214)]-0x1,_0x4135db;_0x4aa6fb>=0x0;_0x4aa6fb--)(_0x4135db=_0x2f85b9[_0x4aa6fb])&&(_0x3ad622=_0x4135db(_0x3ad622)||_0x3ad622);return _0x3ad622;},L=(_0x2b8b96,_0x3e57ad)=>(_0x127c90,_0x23b9d0)=>_0x3e57ad(_0x127c90,_0x23b9d0,_0x2b8b96);const et=0x12c,tt=0x64;let fe=class extends a[_0x4b86e5(0x303)]{constructor(_0x146d16,_0x9240ab,_0x8b935e,_0x22baea,_0x2db7ee,_0x3b6916,_0x5d3888,_0x49a4ca,_0x410fd7){const _0x2b5da9=_0x4b86e5;super(),h(this,'_online',!0x1),h(this,_0x2b5da9(0x1f3),!0x1),h(this,_0x2b5da9(0x223),new d[(_0x2b5da9(0x23b))](new Map())),h(this,_0x2b5da9(0x32f),this[_0x2b5da9(0x223)][_0x2b5da9(0x239)]()),h(this,'_roomMembers$',new d[(_0x2b5da9(0x23b))]([])),h(this,_0x2b5da9(0x278),this['_roomMembers$']['pipe'](d[_0x2b5da9(0x141)](et))),h(this,'_updateLocalCursor',a[_0x2b5da9(0x18c)](_0x4da490=>{const _0x168843=_0x2b5da9,_0x2d4a0a={'eventID':m[_0x168843(0x198)][_0x168843(0x2a1)],'data':{'unitID':this['unitID'],'memberID':this[_0x168843(0x1b7)][_0x168843(0x22f)](),'selection':we(_0x4da490)}};this[_0x168843(0x1b7)]['send'](_0x2d4a0a,this['unitID']);},tt)),(this[_0x2b5da9(0x146)]=_0x146d16,this[_0x2b5da9(0x1b7)]=_0x9240ab,this[_0x2b5da9(0xde)]=_0x8b935e,this['_colorAssignService']=_0x22baea,this[_0x2b5da9(0x33e)]=_0x2db7ee,this['_syncEditingCollabCursorService']=_0x3b6916,this['_transformService']=_0x5d3888,this[_0x2b5da9(0xea)]=_0x49a4ca,this[_0x2b5da9(0x2a6)]=_0x410fd7);}get[_0x4b86e5(0x142)](){const _0x1f6e4e=_0x4b86e5;return this['_cursorInfo$'][_0x1f6e4e(0x2a7)]();}get[_0x4b86e5(0x177)](){const _0x2296b4=_0x4b86e5;return this[_0x2296b4(0x265)][_0x2296b4(0x2a7)]();}[_0x4b86e5(0x161)](){const _0x51d653=_0x4b86e5;super[_0x51d653(0x161)](),this[_0x51d653(0x223)][_0x51d653(0x2f4)](new Map()),this[_0x51d653(0x223)][_0x51d653(0x348)](),this[_0x51d653(0x265)][_0x51d653(0x2f4)]([]),this[_0x51d653(0x265)]['complete']();}[_0x4b86e5(0x1ac)](){const _0x19f23b=_0x4b86e5;this[_0x19f23b(0x1f3)]||(this['_init']=!0x0,this['_session'][_0x19f23b(0x20e)]['pipe'](d[_0x19f23b(0x24b)](this[_0x19f23b(0x2a5)]))[_0x19f23b(0x15e)](_0x1b2ad5=>{const _0x4f61d8=_0x19f23b;_0x1b2ad5===u[_0x4f61d8(0x225)][_0x4f61d8(0x344)]?this[_0x4f61d8(0x113)]():this[_0x4f61d8(0xcc)]();}),this[_0x19f23b(0x1b7)]['event$']['pipe'](d[_0x19f23b(0x24b)](this['dispose$']))[_0x19f23b(0x15e)](_0x341575=>{const _0x3795f8=_0x19f23b,_0x108c20=_0x341575[_0x3795f8(0x106)];_0x108c20===m[_0x3795f8(0x198)][_0x3795f8(0x2a1)]&&this[_0x3795f8(0xe3)](_0x341575),_0x108c20===m[_0x3795f8(0x198)][_0x3795f8(0x165)]&&this[_0x3795f8(0x243)](_0x341575);}),this[_0x19f23b(0x240)](this[_0x19f23b(0x2a6)]['onCommandExecuted'](_0x13fc99=>{const _0x4f331d=_0x19f23b,_0x5d93a9=_0x13fc99['params'];_0x5d93a9!=null&&this['_online']&&_0x13fc99['id']===Y['SetTextSelectionsOperation']['id']&&_0x5d93a9[_0x4f331d(0x2e1)]===this[_0x4f331d(0x146)]&&_0x5d93a9['isEditing']===!0x1&&_0x5d93a9['ranges'][_0x4f331d(0x214)]>0x0&&this[_0x4f331d(0x244)](_0x5d93a9[_0x4f331d(0x283)]);})),this[_0x19f23b(0x1dc)][_0x19f23b(0x1a3)][_0x19f23b(0xff)](d[_0x19f23b(0x24b)](this[_0x19f23b(0x2a5)]))[_0x19f23b(0x15e)](_0x4c05fd=>{const _0x41fa03=_0x19f23b;if((_0x4c05fd==null?void 0x0:_0x4c05fd['unitID'])!==this[_0x41fa03(0x146)])return;const _0x3b800b={'eventID':m[_0x41fa03(0x198)]['UPDATE_CURSOR'],'data':_0x4c05fd};this['_onCursorUpdate'](_0x3b800b);}),this[_0x19f23b(0x240)](this[_0x19f23b(0x2a6)][_0x19f23b(0x178)](_0x15c3fb=>{const _0x3aa376=_0x19f23b;if(_0x15c3fb[_0x3aa376(0x2b3)]==null)return;const _0x32b640=_0x15c3fb[_0x3aa376(0x2b3)];if(_0x15c3fb['id']!==Y['RichTextEditingMutation']['id']||_0x32b640['unitId']!==this[_0x3aa376(0x146)])return;const _0x671655={'id':'doc.mutation.rich-text-editing','params':_0x32b640},_0x3842c3=this[_0x3aa376(0x142)];for(const [_0x4a210d,_0x43e36d]of _0x3842c3){const _0x452798={'id':_0x3aa376(0x293),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x43e36d[_0x3aa376(0x283)]}},_0x244cf7=this['_transformService']['transformMutation'](_0x671655,_0x452798,!0x1);if(m[_0x3aa376(0x213)](_0x244cf7))throw _0x244cf7[_0x3aa376(0x338)];_0x3842c3[_0x3aa376(0x276)](_0x4a210d,{..._0x43e36d,'ranges':_0x244cf7[_0x3aa376(0x221)][_0x3aa376(0x2b3)][_0x3aa376(0x152)]});}queueMicrotask(()=>{const _0x12ee24=_0x3aa376;this[_0x12ee24(0x223)][_0x12ee24(0x2f4)](_0x3842c3);});})));}['_onCursorUpdate'](_0xbf6e26){const _0x11657b=_0x4b86e5;var _0x108e55,_0xfe3476;const {memberID:_0x4905b4,selection:_0x3fceba}=_0xbf6e26['data'],_0x49bb43=Je(_0x3fceba),_0xb7933d=(_0xfe3476=(_0x108e55=this[_0x11657b(0x33e)][_0x11657b(0x33f)](this[_0x11657b(0x146)],_0x4905b4))==null?void 0x0:_0x108e55['name'])!=null?_0xfe3476:_0x11657b(0x13f),_0x21c332={'color':this[_0x11657b(0x205)][_0x11657b(0xb9)](_0x4905b4),'name':_0xb7933d,'ranges':_0x49bb43},_0x3567b1=this[_0x11657b(0x142)];_0x3567b1[_0x11657b(0x276)](_0x4905b4,_0x21c332),this[_0x11657b(0x223)][_0x11657b(0x2f4)](_0x3567b1);}['_onCursorDelete'](_0x231595){const _0x359746=_0x4b86e5,{memberID:_0x53774e}=_0x231595[_0x359746(0x1cf)],_0x3a29e5=this[_0x359746(0x142)];_0x3a29e5[_0x359746(0x1b5)](_0x53774e),this[_0x359746(0x223)]['next'](_0x3a29e5);}['_toggleOnline'](){const _0x15340a=_0x4b86e5;var _0x418e5d;if(this['_online']=!0x0,((_0x418e5d=this[_0x15340a(0xea)][_0x15340a(0x17f)]())==null?void 0x0:_0x418e5d[_0x15340a(0x334)]())!==this[_0x15340a(0x146)])return;const _0x41bbe8=this[_0x15340a(0xde)][_0x15340a(0x2e2)](Y[_0x15340a(0x281)])[_0x15340a(0x1a9)]();Array[_0x15340a(0x2a8)](_0x41bbe8)&&_0x41bbe8[_0x15340a(0x214)]>0x0&&this['_updateLocalCursor'](_0x41bbe8);}[_0x4b86e5(0xcc)](){this['_online']=!0x1;}};fe=Qe([L(0x2,a[_0x4b86e5(0x15b)](a['Injector'])),L(0x3,a['Inject'](me)),L(0x4,a['Inject'](u[_0x4b86e5(0x270)])),L(0x5,a[_0x4b86e5(0x15b)](Ce)),L(0x6,m[_0x4b86e5(0x13d)]),L(0x7,a['IUniverInstanceService']),L(0x8,a[_0x4b86e5(0x2c6)])],fe);var st=Object[_0x4b86e5(0x220)],it=(_0x41da0d,_0x1d65d2,_0x198ae2,_0x4396cc)=>{const _0x1b46d1=_0x4b86e5;for(var _0x9fe157=_0x4396cc>0x1?void 0x0:_0x4396cc?st(_0x1d65d2,_0x198ae2):_0x1d65d2,_0x48f7a4=_0x41da0d[_0x1b46d1(0x214)]-0x1,_0x1a2e33;_0x48f7a4>=0x0;_0x48f7a4--)(_0x1a2e33=_0x41da0d[_0x48f7a4])&&(_0x9fe157=_0x1a2e33(_0x9fe157)||_0x9fe157);return _0x9fe157;},A=(_0x5437d2,_0x22d3cb)=>(_0x3f8f5b,_0x42bbab)=>_0x22d3cb(_0x3f8f5b,_0x42bbab,_0x5437d2);const nt=0x12c,rt=0x64,ot=()=>{let _0x362211=[],_0x15d9dd=!0x1;return _0x3e4b7c=>{const _0x2f9821=_0x5371;_0x362211[_0x2f9821(0x29b)](_0x3e4b7c),_0x15d9dd||(_0x15d9dd=!0x0,setTimeout(()=>{_0x362211['forEach'](_0x4b0fee=>_0x4b0fee()),_0x362211=[],_0x15d9dd=!0x1;}));};};let Se=class extends a[_0x4b86e5(0x303)]{constructor(_0x33e2a8,_0x1bb532,_0x5acdf2,_0x55b31f,_0x671262,_0x4ba1d7,_0x2387e2,_0x5e446f){const _0x4e37a2=_0x4b86e5;super(),h(this,_0x4e37a2(0x126),!0x1),h(this,'_init',!0x1),h(this,'_cursorInfo$',new d['BehaviorSubject'](new Map())),h(this,_0x4e37a2(0x32f),this[_0x4e37a2(0x223)][_0x4e37a2(0x239)]()),h(this,_0x4e37a2(0x265),new d['BehaviorSubject']([])),h(this,'roomMembers$',this[_0x4e37a2(0x265)]['pipe'](d[_0x4e37a2(0x141)](nt))),h(this,_0x4e37a2(0x244),a['debounce']((_0x45a034,_0x171b96)=>{const _0x5aca33=_0x4e37a2,_0x49ce7a={'eventID':m['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x5aca33(0x146)],'memberID':this[_0x5aca33(0x1b7)][_0x5aca33(0x22f)](),'selection':Ee[_0x5aca33(0x2c2)](_0x45a034,_0x171b96[_0x5aca33(0x29a)])}};this[_0x5aca33(0x1b7)][_0x5aca33(0x1ec)](_0x49ce7a,this[_0x5aca33(0x146)]);},rt)),(this['unitID']=_0x33e2a8,this['_session']=_0x1bb532,this[_0x4e37a2(0xde)]=_0x5acdf2,this[_0x4e37a2(0x205)]=_0x55b31f,this[_0x4e37a2(0x33e)]=_0x671262,this[_0x4e37a2(0xea)]=_0x4ba1d7,this[_0x4e37a2(0x2a6)]=_0x2387e2,this['_refRangeService']=_0x5e446f);}get[_0x4b86e5(0x142)](){const _0x57d275=_0x4b86e5;return this[_0x57d275(0x223)]['getValue']();}get[_0x4b86e5(0x177)](){const _0x107db3=_0x4b86e5;return this['_roomMembers$'][_0x107db3(0x2a7)]();}['dispose'](){const _0x5b8acd=_0x4b86e5;super['dispose'](),this[_0x5b8acd(0x223)][_0x5b8acd(0x2f4)](new Map()),this[_0x5b8acd(0x223)][_0x5b8acd(0x348)](),this[_0x5b8acd(0x265)]['next']([]),this['_roomMembers$']['complete']();}[_0x4b86e5(0x1ac)](){const _0x612286=_0x4b86e5;this[_0x612286(0x1f3)]||(this[_0x612286(0x1f3)]=!0x0,this[_0x612286(0x1b7)][_0x612286(0x20e)][_0x612286(0xff)](d['takeUntil'](this['dispose$']))[_0x612286(0x15e)](_0x3967ca=>{const _0x3b398c=_0x612286;_0x3967ca===u[_0x3b398c(0x225)][_0x3b398c(0x344)]?this[_0x3b398c(0x113)]():this[_0x3b398c(0xcc)]();}),this[_0x612286(0x1b7)][_0x612286(0x2bc)]['pipe'](d['takeUntil'](this[_0x612286(0x2a5)]))[_0x612286(0x15e)](_0x5baa10=>{const _0x42cb94=_0x612286,_0x2230a8=_0x5baa10[_0x42cb94(0x106)];_0x2230a8===m['CollaborationEvent'][_0x42cb94(0x2a1)]&&this[_0x42cb94(0xe3)](_0x5baa10),_0x2230a8===m[_0x42cb94(0x198)][_0x42cb94(0x165)]&&this['_onCursorDelete'](_0x5baa10);}),this[_0x612286(0x27a)](),this[_0x612286(0x240)](this[_0x612286(0x2a6)][_0x612286(0x178)](_0x3f54e2=>{const _0x567696=_0x612286;if(this[_0x567696(0x126)]&&_0x3f54e2['id']===g['SetSelectionsOperation']['id']&&_0x3f54e2[_0x567696(0x2b3)]['unitId']===this['unitID']){const _0x1f08e9=_0x3f54e2[_0x567696(0x2b3)];this[_0x567696(0x244)](_0x1f08e9[_0x567696(0x10c)],_0x1f08e9['selections'][0x0]);}})));}[_0x4b86e5(0xe3)](_0x4e6296){const _0x5471c3=_0x4b86e5;var _0x52aadf,_0x729e01;const {memberID:_0x1dc997,selection:_0x2ba5e9}=_0x4e6296[_0x5471c3(0x1cf)],{sheetName:_0x3e2fa4,range:_0x12f319}=Ee[_0x5471c3(0x192)](_0x2ba5e9),_0xd6907f={'name':(_0x729e01=(_0x52aadf=this[_0x5471c3(0x33e)][_0x5471c3(0x33f)](this[_0x5471c3(0x146)],_0x1dc997))==null?void 0x0:_0x52aadf[_0x5471c3(0x2ad)])!=null?_0x729e01:_0x5471c3(0x13f),'range':this[_0x5471c3(0x320)](_0x3e2fa4,_0x12f319),'sheetID':_0x3e2fa4,'color':this['_colorAssignService']['assignAColorForMemberID'](_0x1dc997),'selection':_0x2ba5e9},_0x18bf66=this['cursorInfo'];_0x18bf66[_0x5471c3(0x276)](_0x1dc997,_0xd6907f),this[_0x5471c3(0x223)]['next'](_0x18bf66);}[_0x4b86e5(0x243)](_0x3041ef){const _0x35699e=_0x4b86e5,{memberID:_0x362f98}=_0x3041ef[_0x35699e(0x1cf)],_0x6f304=this[_0x35699e(0x142)];_0x6f304[_0x35699e(0x1b5)](_0x362f98),this[_0x35699e(0x223)][_0x35699e(0x2f4)](_0x6f304);}[_0x4b86e5(0x320)](_0x405b50,_0x4c6a43){const _0x551d75=_0x4b86e5;var _0x524f67,_0x25d2aa;const _0x29e0a4=(_0x25d2aa=(_0x524f67=this[_0x551d75(0xea)][_0x551d75(0x2b4)](this[_0x551d75(0x146)]))==null?void 0x0:_0x524f67['getSheetBySheetId'](_0x405b50))==null?void 0x0:_0x25d2aa[_0x551d75(0x1af)]();return(_0x29e0a4==null?void 0x0:_0x29e0a4[_0x551d75(0x164)](_0x2b2ff2=>a[_0x551d75(0x19a)]['contains'](_0x2b2ff2,_0x4c6a43)))||_0x4c6a43;}[_0x4b86e5(0x27a)](){const _0x1e7acb=_0x4b86e5,_0x43b294=new a['DisposableCollection'](),_0x51bd8f=ot(),_0x5d0b65=()=>{const _0x287329=_0x5371;_0x43b294['dispose']();const _0x5b4b84=(_0x1c71a2,_0x318ca2,_0x414bcb,_0x53bef2)=>{const _0x40129c=_0x5371;let _0x291729=[];switch(_0x1c71a2['id']){case g[_0x40129c(0x2a9)]['DeleteRangeMoveLeftCommandId']:{_0x291729=g['handleDeleteRangeMoveLeft'](_0x1c71a2,_0x53bef2);break;}case g[_0x40129c(0x2a9)][_0x40129c(0xd5)]:{_0x291729=g[_0x40129c(0x1d5)](_0x1c71a2,_0x53bef2);break;}case g[_0x40129c(0x2a9)][_0x40129c(0x1d1)]:{_0x291729=g[_0x40129c(0xef)](_0x1c71a2,_0x53bef2);break;}case g[_0x40129c(0x2a9)][_0x40129c(0x157)]:{_0x291729=g[_0x40129c(0x1f0)](_0x1c71a2,_0x53bef2);break;}case g[_0x40129c(0x2a9)][_0x40129c(0x155)]:{_0x291729=g[_0x40129c(0x2dc)](_0x1c71a2,_0x53bef2);break;}case g[_0x40129c(0x2a9)][_0x40129c(0x1ed)]:{_0x291729=g[_0x40129c(0x1d6)](_0x1c71a2,_0x53bef2);break;}case g[_0x40129c(0x2a9)][_0x40129c(0x2f9)]:{_0x291729=g[_0x40129c(0xdc)](_0x1c71a2,_0x53bef2);break;}case g['EffectRefRangId'][_0x40129c(0x311)]:{_0x291729=g[_0x40129c(0x1b2)](_0x1c71a2,_0x53bef2);break;}case g[_0x40129c(0x2a9)][_0x40129c(0xe5)]:{_0x291729=g[_0x40129c(0x307)](_0x1c71a2,_0x53bef2);break;}}const _0x2b159a=g['runRefRangeMutations'](_0x291729,_0x53bef2),_0x2c9e18=this['cursorInfo']['get'](_0x318ca2);if(_0x2c9e18&&_0x2b159a){const _0x59617e={..._0x2c9e18,'range':_0x2b159a};this['cursorInfo'][_0x40129c(0x276)](_0x318ca2,_0x59617e),_0x51bd8f(()=>{const _0x5367ec=_0x40129c,_0x3b1086=this[_0x5367ec(0xf4)][_0x5367ec(0x2aa)](_0x2b159a,_0x16b762=>(_0x3b1086[_0x5367ec(0x161)](),_0x5b4b84(_0x16b762,_0x318ca2,_0x414bcb,_0x2b159a)));_0x43b294[_0x5367ec(0x1c7)](_0x3b1086);});}return{'redos':[],'undos':[]};};this[_0x287329(0x142)][_0x287329(0x31f)]((_0x1f5679,_0x5bf13c)=>{const _0x33540f=_0x287329,{range:_0x205b55,sheetID:_0xc078e9}=_0x1f5679,_0xa5a905=this['_refRangeService']['registerRefRange'](_0x205b55,_0x5ba54a=>(_0xa5a905[_0x33540f(0x161)](),_0x5b4b84(_0x5ba54a,_0x5bf13c,_0xc078e9,_0x205b55)));_0x43b294[_0x33540f(0x1c7)](_0xa5a905);});};this[_0x1e7acb(0x240)](a[_0x1e7acb(0x1a7)](this[_0x1e7acb(0x223)][_0x1e7acb(0x15e)](()=>{_0x5d0b65();})));}[_0x4b86e5(0x113)](){const _0x43223c=_0x4b86e5;var _0x1904c0,_0x2eb53e;if(this[_0x43223c(0x126)]=!0x0,((_0x1904c0=this['_univerInstanceService'][_0x43223c(0x17f)]())==null?void 0x0:_0x1904c0[_0x43223c(0x334)]())!==this[_0x43223c(0x146)])return;const _0x466d70=(_0x2eb53e=this['_injector'][_0x43223c(0x2e2)](g[_0x43223c(0x112)])[_0x43223c(0x227)]())==null?void 0x0:_0x2eb53e[0x0],_0x36549c=this[_0x43223c(0xea)][_0x43223c(0xba)](a[_0x43223c(0x306)]['UNIVER_SHEET'])[_0x43223c(0x2de)]();_0x466d70&&_0x36549c&&this['_updateLocalCursor'](_0x36549c['getSheetId'](),_0x466d70);}[_0x4b86e5(0xcc)](){const _0x6ca717=_0x4b86e5;this[_0x6ca717(0x126)]=!0x1;}};Se=it([A(0x2,a['Inject'](a[_0x4b86e5(0x183)])),A(0x3,a[_0x4b86e5(0x15b)](me)),A(0x4,a['Inject'](u[_0x4b86e5(0x270)])),A(0x5,a[_0x4b86e5(0x114)]),A(0x6,a[_0x4b86e5(0x2c6)]),A(0x7,a[_0x4b86e5(0x15b)](g[_0x4b86e5(0x324)]))],Se);var at=Object[_0x4b86e5(0x220)],ct=(_0x1d59d4,_0x24408e,_0x32522b,_0x411e04)=>{for(var _0x2b154d=_0x411e04>0x1?void 0x0:_0x411e04?at(_0x24408e,_0x32522b):_0x24408e,_0x41e784=_0x1d59d4['length']-0x1,_0x517f66;_0x41e784>=0x0;_0x41e784--)(_0x517f66=_0x1d59d4[_0x41e784])&&(_0x2b154d=_0x517f66(_0x2b154d)||_0x2b154d);return _0x2b154d;},ie=(_0x8bc932,_0x3faf91)=>(_0x569c1b,_0x51738f)=>_0x3faf91(_0x569c1b,_0x51738f,_0x8bc932);let x=class extends a[_0x4b86e5(0x303)]{constructor(_0x389b82,_0x515ce4,_0x56ea96){const _0x13b4a9=_0x4b86e5;super(),h(this,_0x13b4a9(0x174),new Map()),h(this,_0x13b4a9(0x14f),new d[(_0x13b4a9(0x1dd))]()),(this[_0x13b4a9(0xea)]=_0x389b82,this['_injector']=_0x515ce4,this[_0x13b4a9(0x345)]=_0x56ea96,this[_0x13b4a9(0x1f3)]());}[_0x4b86e5(0x161)](){const _0x2da54a=_0x4b86e5;super['dispose'](),this['_entityInit$'][_0x2da54a(0x348)](),this[_0x2da54a(0x174)]['forEach'](_0x1efe0e=>_0x1efe0e[_0x2da54a(0x161)]());}[_0x4b86e5(0x27c)](_0x5c95dc){const _0x18c2a1=_0x4b86e5;return this[_0x18c2a1(0x174)][_0x18c2a1(0x135)](_0x5c95dc)?this[_0x18c2a1(0x174)][_0x18c2a1(0x2e2)](_0x5c95dc)['cursorInfo$']:this['_entityInit$'][_0x18c2a1(0xff)](d[_0x18c2a1(0x32b)](_0x161862=>_0x161862[_0x18c2a1(0x146)]===_0x5c95dc),d[_0x18c2a1(0x11a)](_0x421677=>_0x421677[_0x18c2a1(0x32f)]));}[_0x4b86e5(0x1f3)](){const _0x4429e0=_0x4b86e5;this[_0x4429e0(0xea)][_0x4429e0(0x2cc)](a[_0x4429e0(0x306)]['UNIVER_SHEET'])[_0x4429e0(0xff)](d['takeUntil'](this[_0x4429e0(0x2a5)]))['subscribe'](async _0x724270=>{const _0x53515e=_0x4429e0,_0x10304e=_0x724270[_0x53515e(0x334)](),_0x1da657=await this[_0x53515e(0x2f1)](_0x10304e);this['_entityInit$']['next'](_0x1da657),this[_0x53515e(0x174)][_0x53515e(0x276)](_0x10304e,_0x1da657);}),this[_0x4429e0(0xea)][_0x4429e0(0x2cc)](a['UniverInstanceType'][_0x4429e0(0x1a8)])[_0x4429e0(0xff)](d[_0x4429e0(0x24b)](this[_0x4429e0(0x2a5)]))[_0x4429e0(0xff)](d['filter'](_0x3cb15b=>!_0x3cb15b[_0x4429e0(0x334)]()[_0x4429e0(0x29e)]('__')))[_0x4429e0(0x15e)](async _0x2e8fa6=>{const _0x2c2f51=_0x4429e0,_0x36330c=_0x2e8fa6[_0x2c2f51(0x334)](),_0x56e391=await this[_0x2c2f51(0x2bd)](_0x36330c);this[_0x2c2f51(0x14f)][_0x2c2f51(0x2f4)](_0x56e391),this['_entities'][_0x2c2f51(0x276)](_0x36330c,_0x56e391);}),d[_0x4429e0(0x2f7)](this['_univerInstanceService'][_0x4429e0(0x32c)](a[_0x4429e0(0x306)][_0x4429e0(0x1a8)]),this[_0x4429e0(0xea)][_0x4429e0(0x32c)](a[_0x4429e0(0x306)][_0x4429e0(0x207)]))[_0x4429e0(0xff)](d[_0x4429e0(0x24b)](this['dispose$']))['subscribe'](_0x366270=>{const _0xa06c58=_0x4429e0,_0x3102f9=_0x366270[_0xa06c58(0x334)](),_0x1172e5=this[_0xa06c58(0x174)][_0xa06c58(0x2e2)](_0x3102f9);_0x1172e5&&(_0x1172e5[_0xa06c58(0x161)](),this[_0xa06c58(0x174)][_0xa06c58(0x1b5)](_0x3102f9));});}async[_0x4b86e5(0x2f1)](_0x4d9256){const _0xa9a24e=_0x4b86e5,_0x592621=await this[_0xa9a24e(0x345)][_0xa9a24e(0x2fd)](_0x4d9256),_0x43268c=this[_0xa9a24e(0xde)][_0xa9a24e(0x23c)](Se,_0x4d9256,_0x592621);return _0x43268c['init'](),_0x43268c;}async[_0x4b86e5(0x2bd)](_0x20fd6b){const _0x16f908=_0x4b86e5,_0x182a0c=await this[_0x16f908(0x345)][_0x16f908(0x2fd)](_0x20fd6b),_0x296437=this[_0x16f908(0xde)]['createInstance'](fe,_0x20fd6b,_0x182a0c);return _0x296437['init'](),_0x296437;}};x=ct([ie(0x0,a[_0x4b86e5(0x114)]),ie(0x1,a['Inject'](a[_0x4b86e5(0x183)])),ie(0x2,a['Inject'](u['CollaborationSessionService']))],x);const K=0x14,Re=0xc8,ne=0x4,lt=0x5;function _t(_0x4088a4,_0xf37a2e){const _0x4e31c9=_0x4b86e5;let {radius:_0x36ba7a,width:_0x39154b,height:_0x21e0f6}=_0xf37a2e;_0x36ba7a=_0x36ba7a!=null?_0x36ba7a:0x0,_0x39154b=_0x39154b!=null?_0x39154b:0x1e,_0x21e0f6=_0x21e0f6!=null?_0x21e0f6:0x1e;let _0x31c1b8=0x0,_0x1b658d=0x0,_0x3d648a=0x0;_0x31c1b8=_0x1b658d=_0x3d648a=Math[_0x4e31c9(0x130)](_0x36ba7a,_0x39154b/0x2,_0x21e0f6/0x2),_0x4088a4[_0x4e31c9(0x115)](),_0x4088a4[_0x4e31c9(0x25f)](_0x31c1b8,0x0),_0x4088a4['lineTo'](_0x39154b-_0x1b658d,0x0),_0x4088a4[_0x4e31c9(0x26e)](_0x39154b-_0x1b658d,_0x1b658d,_0x1b658d,Math['PI']*0x3/0x2,0x0,!0x1),_0x4088a4[_0x4e31c9(0x2cf)](_0x39154b,_0x21e0f6-_0x3d648a),_0x4088a4[_0x4e31c9(0x26e)](_0x39154b-_0x3d648a,_0x21e0f6-_0x3d648a,_0x3d648a,0x0,Math['PI']/0x2,!0x1),_0x4088a4[_0x4e31c9(0x2cf)](0x0,_0x21e0f6),_0x4088a4['lineTo'](0x0,_0x31c1b8),_0x4088a4[_0x4e31c9(0x26e)](_0x31c1b8,_0x31c1b8,_0x31c1b8,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4088a4[_0x4e31c9(0x1ae)](),_0xf37a2e[_0x4e31c9(0x1cd)]&&(_0x4088a4[_0x4e31c9(0x2d4)](),_0x4088a4[_0x4e31c9(0x102)]=_0xf37a2e[_0x4e31c9(0x1cd)],_0xf37a2e[_0x4e31c9(0x2ac)]===_0x4e31c9(0x119)?_0x4088a4[_0x4e31c9(0x1cd)](_0x4e31c9(0x119)):_0x4088a4[_0x4e31c9(0x1cd)](),_0x4088a4[_0x4e31c9(0xd3)]());}class ee extends p[_0x4b86e5(0x2af)]{constructor(_0x460cbb,_0x4d14f8){const _0x98e215=_0x4b86e5;super(_0x460cbb,_0x4d14f8),h(this,_0x98e215(0x28e)),h(this,_0x98e215(0x327)),(this[_0x98e215(0x28e)]=_0x4d14f8==null?void 0x0:_0x4d14f8[_0x98e215(0x28e)],this['text']=_0x4d14f8==null?void 0x0:_0x4d14f8[_0x98e215(0x327)]);}static[_0x4b86e5(0xed)](_0x3989bd,_0x411557){const _0x3fcbe5=_0x4b86e5,{text:_0x44d01e,color:_0x2c3ebf}=_0x411557;_0x3989bd[_0x3fcbe5(0x2d4)](),_0x3989bd['font']=_0x3fcbe5(0xbe);const _0x1f88b1=_0x3989bd['measureText'](_0x44d01e)[_0x3fcbe5(0x18e)],_0x14d3ff=Math[_0x3fcbe5(0x130)](_0x1f88b1+0x2*ne,Re);_t(_0x3989bd,{'height':K,'radius':0x4,'width':_0x14d3ff,'fill':_0x2c3ebf}),_0x3989bd[_0x3fcbe5(0x102)]=_0x3fcbe5(0x2b7);const _0x225791=ne,_0x4adb11=K-lt,_0x7259b=Re-0x2*ne;if(_0x1f88b1>_0x7259b){let _0x5bd2e1='',_0x12d6d3=0x0;for(const _0x596f64 of _0x44d01e){const _0x2b9847=_0x3989bd[_0x3fcbe5(0x313)](_0x596f64)[_0x3fcbe5(0x18e)];if(_0x12d6d3+_0x2b9847<=_0x7259b-_0x3989bd['measureText'](_0x3fcbe5(0x131))[_0x3fcbe5(0x18e)])_0x5bd2e1+=_0x596f64,_0x12d6d3+=_0x2b9847;else{_0x5bd2e1+=_0x3fcbe5(0x131);break;}}_0x3989bd[_0x3fcbe5(0x111)](_0x5bd2e1,_0x225791,_0x4adb11);}else _0x3989bd[_0x3fcbe5(0x111)](_0x44d01e,_0x225791,_0x4adb11);_0x3989bd[_0x3fcbe5(0xd3)]();}[_0x4b86e5(0x2da)](_0x396d54){ee['drawWith'](_0x396d54,this);}}const re=_0x4b86e5(0x335),ht='collab-text-range-',ut='collab-rect-range-',k=0x6,dt=1.5,oe=0x4,ft=1.5,St=_0x4b86e5(0x154);class De{constructor(_0x11cbae,_0x2d93ad,_0x68d3,_0x555f12){const _0x5a45b6=_0x4b86e5;h(this,_0x5a45b6(0x2ce),[]),h(this,_0x5a45b6(0xc0),null),h(this,_0x5a45b6(0x27f),null),h(this,_0x5a45b6(0x144),null),h(this,_0x5a45b6(0x280),null),h(this,'_eventUnsubscribe',null),(this[_0x5a45b6(0x209)]=_0x11cbae,this['_scene']=_0x2d93ad,this[_0x5a45b6(0x305)]=_0x68d3,this[_0x5a45b6(0x341)]=_0x555f12,this['_render']());}set[_0x4b86e5(0x236)](_0x550da7){const _0x3370d1=_0x4b86e5;_0x550da7?(this[_0x3370d1(0x144)]&&this[_0x3370d1(0x144)]['hide'](),this[_0x3370d1(0x27f)]&&this[_0x3370d1(0x27f)][_0x3370d1(0x1b3)]()):(this[_0x3370d1(0x144)]&&this[_0x3370d1(0x144)][_0x3370d1(0x1b3)](),this[_0x3370d1(0x27f)]&&this[_0x3370d1(0x27f)]['hide']());}[_0x4b86e5(0x161)](){const _0x4decbf=_0x4b86e5;for(const _0x236420 of this['_shapes'])_0x236420['dispose']();this[_0x4decbf(0x27f)]&&this[_0x4decbf(0x27f)][_0x4decbf(0x161)](),this[_0x4decbf(0x144)]&&this[_0x4decbf(0x144)][_0x4decbf(0x161)](),this[_0x4decbf(0xc0)]&&this['_anchor'][_0x4decbf(0x161)](),this[_0x4decbf(0x24d)]&&this[_0x4decbf(0x24d)]();}[_0x4b86e5(0x193)](){const _0x543409=_0x4b86e5;var _0x5f10e9;const {_docSkeleton:_0x184947,_document:_0x39d846}=this,{color:_0xbb4ca7,name:_0xcf8683,ranges:_0x81c691}=this[_0x543409(0x209)],_0x59a577=_0x39d846[_0x543409(0x2d3)](),{docsLeft:_0x2d41db,docsTop:_0x5f0295}=_0x59a577,_0x37bd36=new b[(_0x543409(0x340))](_0x59a577,_0x184947);for(const {startOffset:_0x5a6285,endOffset:_0x46e5aa,rangeType:_0x4425ae,segmentId:_0x2086a2,segmentPage:_0x3e3fa0,collapsed:_0x4db3d6,isActive:_0x1df7bc}of _0x81c691){const _0xb11645=_0x184947['findNodePositionByCharIndex'](_0x5a6285,!0x0,_0x2086a2,_0x3e3fa0);let _0x2dce5d=_0x184947[_0x543409(0xc1)](_0x46e5aa,!0x0,_0x2086a2,_0x3e3fa0);if(_0x2dce5d==null&&(_0x2dce5d=_0x184947[_0x543409(0xc1)](_0x46e5aa-0x1,!0x1,_0x2086a2,_0x3e3fa0)),_0x1df7bc){const {contentBoxPointGroup:_0x933058}=_0x37bd36[_0x543409(0x289)](_0x2dce5d,_0x2dce5d);if(_0x933058[_0x543409(0x214)]===0x0)continue;this[_0x543409(0x314)](_0xbb4ca7,_0x933058,_0x2d41db,_0x5f0295,_0xcf8683),this[_0x543409(0x24d)]=this[_0x543409(0x1b9)]();}if(_0xb11645&&_0x2dce5d){if(_0x4425ae===a[_0x543409(0x159)][_0x543409(0x21c)]){const _0x5189c4=new b[(_0x543409(0x11f))](_0x59a577,_0x184947),{pointGroup:_0x1c8163}=(_0x5f10e9=_0x5189c4['getRangePointData'](_0xb11645,_0x2dce5d))!=null?_0x5f10e9:{};if(_0x1c8163==null||_0x1c8163[_0x543409(0x214)]===0x0)continue;this['_drawRectRange'](_0xbb4ca7,_0x1c8163,_0x2d41db,_0x5f0295);}else{if(!_0x4db3d6){const {borderBoxPointGroup:_0xbca9b5}=_0x37bd36['getRangePointData'](_0xb11645,_0x2dce5d);if(_0xbca9b5['length']===0x0)continue;this[_0x543409(0x21f)](_0xbb4ca7,_0xbca9b5,_0x2d41db,_0x5f0295);}}}}}[_0x4b86e5(0x314)](_0xde8d57,_0x212591,_0x56c8c5,_0x2ade18,_0x5dc8ad){const _0x22d94e=_0x4b86e5,_0x45ef74=this[_0x22d94e(0x309)](_0x212591),{left:_0x5d6971,top:_0x33497c,height:_0x596439}=_0x45ef74,_0x4886ce=this[_0x22d94e(0x337)](),_0x36fb05=ft/_0x4886ce,_0x20c3b5=new p[(_0x22d94e(0x180))](re+a[_0x22d94e(0x1ef)][_0x22d94e(0x160)](k),{'left':_0x5d6971+_0x56c8c5-_0x36fb05,'top':_0x33497c+_0x2ade18,'height':_0x596439,'width':dt,'fill':_0xde8d57||p[_0x22d94e(0x2cd)](a[_0x22d94e(0x2fe)][_0x22d94e(0xcd)],0x0),'strokeWidth':_0x36fb05,'stroke':St,'evented':!0x0});this[_0x22d94e(0xc0)]=_0x20c3b5,this[_0x22d94e(0x33b)][_0x22d94e(0x255)](_0x20c3b5,b[_0x22d94e(0xc2)]);const _0x3b2ac3=new p[(_0x22d94e(0x180))](re+a[_0x22d94e(0x1ef)][_0x22d94e(0x160)](k),{'left':_0x5d6971+_0x56c8c5-_0x36fb05,'top':_0x33497c+_0x2ade18-oe/0x2,'height':oe,'width':oe,'fill':_0xde8d57||p[_0x22d94e(0x2cd)](a[_0x22d94e(0x2fe)][_0x22d94e(0xcd)],0x0),'strokeWidth':0x0,'stroke':_0xde8d57||p[_0x22d94e(0x2cd)](a['COLORS']['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x3b2ac3,this[_0x22d94e(0x33b)]['addObject'](_0x3b2ac3,b['TEXT_RANGE_LAYER_INDEX']);const _0x4eca89=new ee(re+a[_0x22d94e(0x1ef)][_0x22d94e(0x160)](k),{'left':_0x5d6971+_0x56c8c5-_0x36fb05,'top':_0x33497c+_0x2ade18-K,'text':_0x5dc8ad,'color':_0xde8d57});this['_textBubble']=_0x4eca89,this['_scene'][_0x22d94e(0x255)](_0x4eca89,b['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x4b86e5(0x1b9)](){const _0x3f2773=_0x4b86e5,_0x318a36=this['_anchor'][_0x3f2773(0x2d7)][_0x3f2773(0x151)](()=>{const _0x3d8f4a=_0x3f2773;this[_0x3d8f4a(0x236)]=!0x0;}),_0x22332d=this[_0x3f2773(0xc0)][_0x3f2773(0x20a)][_0x3f2773(0x151)](()=>{const _0x31582b=_0x3f2773;this[_0x31582b(0x280)]&&clearTimeout(this[_0x31582b(0x280)]),this['_hideTimer']=setTimeout(()=>{const _0x3378fa=_0x31582b;this[_0x3378fa(0x236)]=!0x1;},0x7d0);});return()=>{const _0x1d7fe6=_0x3f2773;_0x318a36[_0x1d7fe6(0x15c)](),_0x22332d[_0x1d7fe6(0x15c)]();};}[_0x4b86e5(0x21f)](_0x4bca12,_0x887524,_0xca0259,_0x4716a2){const _0x2a568f=_0x4b86e5,_0x1007c2=new a[(_0x2a568f(0x247))](_0x4bca12)[_0x2a568f(0x286)](0.2)['toRgbString'](),_0x2bfc7b=new p[(_0x2a568f(0x208))](ht+a[_0x2a568f(0x1ef)]['generateRandomId'](k),{'pointsGroup':_0x887524,'fill':_0x1007c2||p[_0x2a568f(0x2cd)](a[_0x2a568f(0x2fe)][_0x2a568f(0xcd)],0.2),'left':_0xca0259,'top':_0x4716a2,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2a568f(0x2ce)][_0x2a568f(0x29b)](_0x2bfc7b),this[_0x2a568f(0x33b)][_0x2a568f(0x255)](_0x2bfc7b,b['TEXT_RANGE_LAYER_INDEX']);}[_0x4b86e5(0x2db)](_0xf2311c,_0x447f8f,_0x8ca172,_0x532e5b){const _0x25a269=_0x4b86e5,_0x408228=new a['ColorKit'](_0xf2311c)[_0x25a269(0x286)](0.2)[_0x25a269(0x2fc)](),_0x2178a8=new p[(_0x25a269(0x208))](ut+a[_0x25a269(0x1ef)][_0x25a269(0x160)](k),{'pointsGroup':_0x447f8f,'fill':_0x408228||p[_0x25a269(0x2cd)](a[_0x25a269(0x2fe)][_0x25a269(0xcd)],0.2),'left':_0x8ca172,'top':_0x532e5b,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x25a269(0x2ce)][_0x25a269(0x29b)](_0x2178a8),this[_0x25a269(0x33b)][_0x25a269(0x255)](_0x2178a8,b['TEXT_RANGE_LAYER_INDEX']);}[_0x4b86e5(0x309)](_0x22b843){const _0x229459=_0x22b843[0x0],_0x38b5d4=_0x229459[0x0],_0x2c8366=_0x229459[0x2],{x:_0x1f68a3,y:_0xf880}=_0x38b5d4,{x:_0x33dd32,y:_0x3ab005}=_0x2c8366;return{'left':_0x1f68a3,'top':_0xf880,'width':_0x33dd32-_0x1f68a3,'height':_0x3ab005-_0xf880};}[_0x4b86e5(0x337)](){const _0x1e478f=_0x4b86e5,{scaleX:_0x4d1405,scaleY:_0xcf0f85}=this[_0x1e478f(0x33b)][_0x1e478f(0x272)]();return Math[_0x1e478f(0x101)](_0x4d1405,_0xcf0f85);}}var It=Object[_0x4b86e5(0x220)],vt=(_0x3090ae,_0x3d1e04,_0x3b3be0,_0x443bdb)=>{for(var _0x1ebee4=_0x443bdb>0x1?void 0x0:_0x443bdb?It(_0x3d1e04,_0x3b3be0):_0x3d1e04,_0x1811f0=_0x3090ae['length']-0x1,_0x3345e3;_0x1811f0>=0x0;_0x1811f0--)(_0x3345e3=_0x3090ae[_0x1811f0])&&(_0x1ebee4=_0x3345e3(_0x1ebee4)||_0x1ebee4);return _0x1ebee4;},W=(_0x488f5b,_0x5291a1)=>(_0x32d0d4,_0x54871f)=>_0x5291a1(_0x32d0d4,_0x54871f,_0x488f5b);let Ie=class extends a[_0x4b86e5(0x303)]{constructor(_0x1f3baf,_0x14882b,_0x445494,_0x348b1c,_0x3025a6){const _0x1606bf=_0x4b86e5;super(),h(this,_0x1606bf(0x256),[]),h(this,'_cursors',[]),(this[_0x1606bf(0x342)]=_0x1f3baf,this[_0x1606bf(0x121)]=_0x14882b,this['_collabCursorController']=_0x445494,this[_0x1606bf(0x2a6)]=_0x348b1c,this[_0x1606bf(0x170)]=_0x3025a6,this[_0x1606bf(0x1f3)]());}[_0x4b86e5(0x1f3)](){const _0x1264d2=_0x4b86e5,_0x18609b=this[_0x1264d2(0x342)]['unitId'],_0xee3db6=this[_0x1264d2(0x121)];this[_0x1264d2(0x240)](d[_0x1264d2(0x33d)]([this['_collabCursorController']['getCollabCursors$'](_0x18609b),this[_0x1264d2(0x170)][_0x1264d2(0x2c4)]])[_0x1264d2(0xff)]($['map'](([_0xa07496,_0x66391b])=>({'skeleton':_0xee3db6['getSkeleton'](),'cursors':[..._0xa07496[_0x1264d2(0x1cc)]()][_0x1264d2(0x120)](_0x10c93c=>({..._0x10c93c,'color':this[_0x1264d2(0x170)][_0x1264d2(0x25a)](_0x10c93c[_0x1264d2(0x28e)])}))})))['subscribe'](_0x1b8dca=>{const _0x3ae881=_0x1264d2;if(this[_0x3ae881(0x328)](),_0x1b8dca){const {skeleton:_0x5dc9c4,cursors:_0x5bb297}=_0x1b8dca;this[_0x3ae881(0x1e0)](_0x5dc9c4,_0x5bb297);}})),this[_0x1264d2(0x2e0)](),this[_0x1264d2(0x20d)]();}['_updateCollabCursors'](_0x53e271,_0x2c17bb){const _0x136137=_0x4b86e5,{scene:_0x11e0c0,mainComponent:_0x53bfc2}=this[_0x136137(0x342)],_0x483d1a=_0x2c17bb['map'](_0x45cd1a=>new De(_0x45cd1a,_0x11e0c0,_0x53e271,_0x53bfc2));this[_0x136137(0x256)]=_0x483d1a,this[_0x136137(0x33a)]=_0x2c17bb;}[_0x4b86e5(0x2eb)](){const _0x27d0e6=_0x4b86e5;this['_removeCollabCursors']();const {scene:_0x15d4b9,mainComponent:_0x8dc81c}=this[_0x27d0e6(0x342)],_0x2d74ba=this['_docSkeletonManagerService'][_0x27d0e6(0x2f8)](),_0x5964ce=this[_0x27d0e6(0x33a)][_0x27d0e6(0x2e3)](_0x5a10ac=>new De(_0x5a10ac,_0x15d4b9,_0x2d74ba,_0x8dc81c));this[_0x27d0e6(0x256)]=_0x5964ce;}[_0x4b86e5(0x328)](){const _0x4be7d8=_0x4b86e5;this[_0x4be7d8(0x256)][_0x4be7d8(0x31f)](_0x56fc4d=>_0x56fc4d[_0x4be7d8(0x161)]()),this[_0x4be7d8(0x256)]=[];}[_0x4b86e5(0x20d)](){const _0xaa6405=_0x4b86e5,_0x1c7700=[b[_0xaa6405(0x1c4)]['id']];this[_0xaa6405(0x240)](this[_0xaa6405(0x2a6)][_0xaa6405(0x178)](_0x5cee13=>{const _0x559f5a=_0xaa6405;_0x1c7700[_0x559f5a(0x1fa)](_0x5cee13['id'])&&_0x5cee13[_0x559f5a(0x2b3)]['unitId']===this[_0x559f5a(0x342)][_0x559f5a(0x2e1)]&&this[_0x559f5a(0x2eb)]();}));}[_0x4b86e5(0x2e0)](){const _0x116a95=_0x4b86e5;this[_0x116a95(0x240)](a[_0x116a95(0x336)](this[_0x116a95(0x342)][_0x116a95(0x129)][_0x116a95(0x212)])[_0x116a95(0xff)]($[_0x116a95(0x32b)](_0x2fb1f5=>_0x2fb1f5[_0x116a95(0xfe)]===p['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),$[_0x116a95(0x2a3)](0x10))[_0x116a95(0x15e)](()=>{const _0x5f85fc=_0x116a95;this[_0x5f85fc(0x2eb)]();}));}};Ie=vt([W(0x1,a[_0x4b86e5(0x15b)](Y[_0x4b86e5(0x197)])),W(0x2,a['Inject'](x)),W(0x3,a['ICommandService']),W(0x4,a[_0x4b86e5(0x15b)](a[_0x4b86e5(0x104)]))],Ie);const gt=0x1,mt=1.5;class Pe extends p[_0x4b86e5(0x2af)]{constructor(_0x2bde4e,_0x9166a){const _0x7aa41d=_0x4b86e5;super(_0x2bde4e,_0x9166a),h(this,_0x7aa41d(0x1cb)),h(this,_0x7aa41d(0x140),!0x1),h(this,_0x7aa41d(0x25e)),h(this,_0x7aa41d(0xf2),''),h(this,_0x7aa41d(0x22e),_0x7aa41d(0x2d1)),h(this,_0x7aa41d(0x185)),(_0x9166a&&this[_0x7aa41d(0x318)](_0x9166a),this[_0x7aa41d(0x2d7)][_0x7aa41d(0x151)](()=>this[_0x7aa41d(0x318)]({'hovered':!0x0})),this[_0x7aa41d(0x20a)][_0x7aa41d(0x151)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x4b86e5(0x318)](_0x39b456){const _0x2c7fd5=_0x4b86e5;var _0x3b62cc,_0x29e696,_0x5d9d36,_0x59687d,_0x2293be,_0x5efbcb;this[_0x2c7fd5(0x1cb)]=(_0x3b62cc=_0x39b456[_0x2c7fd5(0x28e)])!=null?_0x3b62cc:this[_0x2c7fd5(0x1cb)],this[_0x2c7fd5(0x140)]=(_0x29e696=_0x39b456[_0x2c7fd5(0x346)])!=null?_0x29e696:this[_0x2c7fd5(0x140)],this['_range']=(_0x5d9d36=_0x39b456[_0x2c7fd5(0x29a)])!=null?_0x5d9d36:this[_0x2c7fd5(0x25e)],this['_name']=(_0x59687d=_0x39b456[_0x2c7fd5(0x2ad)])!=null?_0x59687d:this[_0x2c7fd5(0xf2)],this[_0x2c7fd5(0x22e)]=(_0x2293be=_0x39b456[_0x2c7fd5(0x202)])!=null?_0x2293be:this[_0x2c7fd5(0x22e)],this[_0x2c7fd5(0x185)]=(_0x5efbcb=_0x39b456[_0x2c7fd5(0x1ab)])!=null?_0x5efbcb:this[_0x2c7fd5(0x185)],this[_0x2c7fd5(0xcb)]({'width':_0x39b456['width'],'height':_0x39b456['height']});}[_0x4b86e5(0xf0)](_0x1bfa9f){const _0x266a0c=_0x4b86e5,{row:_0x917cbb,column:_0xe58269}=_0x1bfa9f;if(_0x917cbb>=this[_0x266a0c(0x25e)][_0x266a0c(0x25b)]&&_0x917cbb<=this[_0x266a0c(0x25e)]['endRow']&&_0xe58269>=this['_range']['startColumn']&&_0xe58269<=this['_range']['endColumn']){this[_0x266a0c(0x318)]({'hovered':!0x0});return;}this[_0x266a0c(0x318)]({'hovered':!0x1});}[_0x4b86e5(0x1b6)](_0x354936){return!0x1;}[_0x4b86e5(0x2da)](_0x14227b){const _0x116b39=_0x4b86e5;p['Rect']['drawWith'](_0x14227b,{'width':this[_0x116b39(0x18e)],'height':this[_0x116b39(0x1be)],'strokeWidth':mt,'stroke':this[_0x116b39(0x1cb)],'evented':!0x1,'fill':this[_0x116b39(0x185)]}),this[_0x116b39(0x140)]&&(_0x14227b[_0x116b39(0x2d4)](),_0x14227b[_0x116b39(0x258)](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x116b39(0x24f)?0x0:-0x14),ee[_0x116b39(0xed)](_0x14227b,{'text':this[_0x116b39(0xf2)],'color':this[_0x116b39(0x1cb)]}),_0x14227b[_0x116b39(0xd3)]());}}var Ct=Object[_0x4b86e5(0x220)],pt=(_0x292f25,_0xe6fda2,_0x5bb260,_0x4e5c57)=>{const _0x59097c=_0x4b86e5;for(var _0x145cc8=_0x4e5c57>0x1?void 0x0:_0x4e5c57?Ct(_0xe6fda2,_0x5bb260):_0xe6fda2,_0x4f327a=_0x292f25[_0x59097c(0x214)]-0x1,_0x6a412c;_0x4f327a>=0x0;_0x4f327a--)(_0x6a412c=_0x292f25[_0x4f327a])&&(_0x145cc8=_0x6a412c(_0x145cc8)||_0x145cc8);return _0x145cc8;},ae=(_0x461f43,_0x12edcd)=>(_0x12d654,_0x35d3b2)=>_0x12edcd(_0x12d654,_0x35d3b2,_0x461f43);const bt=0x1389;let ve=class extends a[_0x4b86e5(0x303)]{constructor(_0x191181,_0x36d145,_0x4a1416,_0x3234c6){const _0x2386c6=_0x4b86e5;super(),h(this,'_cursors',new Set()),h(this,_0x2386c6(0x1f9),null),(this[_0x2386c6(0x342)]=_0x191181,this[_0x2386c6(0x26d)]=_0x36d145,this[_0x2386c6(0x16d)]=_0x4a1416,this[_0x2386c6(0x170)]=_0x3234c6,this[_0x2386c6(0x1f3)]());}[_0x4b86e5(0x1f3)](){const _0x4792a6=_0x4b86e5;this[_0x4792a6(0x26d)][_0x4792a6(0x13b)][_0x4792a6(0xff)]($['takeUntil'](this[_0x4792a6(0x2a5)]),$[_0x4792a6(0x11a)](_0x69c658=>{const _0x2e6127=_0x4792a6;if(_0x69c658){const _0x1e5401=_0x69c658[_0x2e6127(0x262)];return d[_0x2e6127(0x33d)](this['_collabCursorController'][_0x2e6127(0x27c)](this[_0x2e6127(0x342)][_0x2e6127(0x2e1)]),this[_0x2e6127(0x170)][_0x2e6127(0x2c4)])[_0x2e6127(0xff)]($[_0x2e6127(0x2e3)](([_0x22e0e6,_0x5d0dab])=>{const _0x91e28b=_0x2e6127,_0x46aafb=new Map();return _0x22e0e6[_0x91e28b(0x31f)]((_0x18d44b,_0x351a6b)=>{const _0x220542=_0x91e28b;if(_0x18d44b[_0x220542(0x1a2)]===_0x1e5401){const _0x5959a5={..._0x18d44b};_0x5959a5['color']=this[_0x220542(0x170)]['getColorFromTheme'](_0x18d44b[_0x220542(0x28e)]),_0x46aafb[_0x220542(0x276)](_0x351a6b,_0x5959a5);}}),{'skeleton':_0x69c658,'cursors':_0x46aafb};}));}return d['of']({'skeleton':null,'cursors':new Map()});}))[_0x4792a6(0x15e)](({skeleton:_0x23c32f,cursors:_0x33ab1c})=>{const _0x53638e=_0x4792a6;this['_removeCollabCursors'](),_0x23c32f&&this[_0x53638e(0x1e0)](_0x23c32f,_0x33ab1c);}),this[_0x4792a6(0x26d)][_0x4792a6(0x13b)]['subscribe'](_0x28cd1b=>{const _0x4bca60=_0x4792a6;if(_0x28cd1b==null)return;const {skeleton:_0x115e03}=_0x28cd1b,{scene:_0x131155}=this[_0x4bca60(0x342)];_0x131155[_0x4bca60(0x217)][_0x4bca60(0x151)](a[_0x4bca60(0x18c)](_0x40acea=>{const _0x59454b=_0x4bca60;var _0x570eee,_0x4462ca;const {offsetX:_0x566305,offsetY:_0x107ab9}=_0x40acea,{x:_0x271d10,y:_0x298990}=_0x131155[_0x59454b(0x28d)](p[_0x59454b(0x182)][_0x59454b(0x34a)]([_0x566305,_0x107ab9])),{scaleX:_0x12ffec,scaleY:_0x552d72}=_0x131155['getAncestorScale'](),_0x11d345=_0x131155['getViewport'](p['SHEET_VIEWPORT_KEY'][_0x59454b(0x158)]),_0x5ece2d=_0x131155[_0x59454b(0x2ec)](p[_0x59454b(0x182)][_0x59454b(0x34a)]([_0x271d10,_0x298990]),_0x11d345),_0x847033=_0x115e03[_0x59454b(0x1d7)](_0x566305,_0x107ab9,_0x12ffec,_0x552d72,_0x5ece2d);((_0x570eee=this[_0x59454b(0x1f9)])==null?void 0x0:_0x570eee[_0x59454b(0x2e9)])===_0x847033[_0x59454b(0x2e9)]&&((_0x4462ca=this['_lastPointer'])==null?void 0x0:_0x4462ca[_0x59454b(0x253)])===_0x847033[_0x59454b(0x253)]||this[_0x59454b(0x33a)]['forEach'](_0xc46a0f=>{const _0x223c58=_0x59454b;_0xc46a0f[_0x223c58(0xf0)](_0x847033);});},0x64));});}[_0x4b86e5(0x1e0)](_0xc4f9b8,_0x2920bf){const _0x586ce6=_0x4b86e5;var _0x1a6038;const _0x2f045d=(_0x1a6038=this[_0x586ce6(0x26d)]['getCurrent']())==null?void 0x0:_0x1a6038[_0x586ce6(0x266)];if(!_0x2f045d)return;const _0x292d3d=this[_0x586ce6(0x1b1)]();if(!_0x292d3d)return;this[_0x586ce6(0x33a)][_0x586ce6(0x31f)](_0x3ce7ed=>{const _0x43ed25=_0x586ce6;_0x3ce7ed[_0x43ed25(0x1a0)]();});const {scene:_0x2905d1}=_0x292d3d,_0x2fd677=Et(Array[_0x586ce6(0xe0)](_0x2920bf[_0x586ce6(0x1cc)]()))[_0x586ce6(0x2e3)](_0x3f86f3=>{const _0x3928fd=_0x586ce6,{color:_0x4d682e,range:_0x17a862,name:_0x18181f,selection:_0x453f88,sheetID:_0x198de5}=_0x3f86f3,{startColumn:_0x1ee5c1,startRow:_0x50fb13,endColumn:_0x4df1ca,endRow:_0x47fe85}=_0x17a862,_0x2b83a4=X[_0x3928fd(0x1da)](_0x50fb13,_0x1ee5c1,_0x2905d1,_0x2f045d),_0x4e4c4e=X['getCoordByCell'](_0x47fe85,_0x4df1ca,_0x2905d1,_0x2f045d),{columnHeaderHeightAndMarginTop:_0x459e94}=_0x2f045d,{startX:_0x35b87c,startY:_0xf2c92e}=_0x2b83a4,{endX:_0x1f6662,endY:_0x15efb0}=_0x4e4c4e,_0x425022=_0x1f6662-_0x35b87c,_0x5e0906=_0x15efb0-_0xf2c92e,_0x2a474c={'labelPosition':_0xf2c92e-_0x459e94>=K?_0x3928fd(0x2d1):'bottom','sheetID':_0x198de5,'range':_0x17a862,'color':_0x4d682e,'name':_0x18181f,'selection':_0x453f88,'left':_0x35b87c,'top':_0xf2c92e,'width':_0x425022,'height':_0x5e0906,'evented':!0x1,'zIndex':bt};return new Pe(_0x18181f,_0x2a474c);});_0x2905d1[_0x586ce6(0x143)](_0x2fd677,gt),this['_cursors']=new Set(_0x2fd677);}[_0x4b86e5(0x328)](){const _0x33af1f=_0x4b86e5;var _0x11f732;(_0x11f732=this[_0x33af1f(0x33a)])==null||_0x11f732[_0x33af1f(0x31f)](_0x35fdc7=>_0x35fdc7['dispose']());}[_0x4b86e5(0x1b1)](){const _0x103139=_0x4b86e5;return X['getSheetObject'](this['_context'][_0x103139(0xf1)],this['_context']);}};ve=pt([ae(0x1,a['Inject'](X[_0x4b86e5(0x134)])),ae(0x2,a['Inject'](x)),ae(0x3,a[_0x4b86e5(0x15b)](a[_0x4b86e5(0x104)]))],ve);function Et(_0x4aed5a){const _0x1d95fd=_0x4b86e5,_0x9f4aa6=new Map();return _0x4aed5a['forEach'](_0x1c0ba8=>{const _0x2a4291=_0x5371;if(_0x9f4aa6[_0x2a4291(0x135)](_0x1c0ba8[_0x2a4291(0x1e2)])){const _0x423617=_0x9f4aa6[_0x2a4291(0x2e2)](_0x1c0ba8[_0x2a4291(0x1e2)]);_0x423617['name']+=',\x20'+_0x1c0ba8['name'];}else _0x9f4aa6['set'](_0x1c0ba8[_0x2a4291(0x1e2)],_0x1c0ba8);}),Array[_0x1d95fd(0xe0)](_0x9f4aa6[_0x1d95fd(0x1cc)]());}var E=function(){const _0x1dd0f9=_0x4b86e5;return E=Object[_0x1dd0f9(0x264)]||function(_0x48cf48){const _0x187268=_0x1dd0f9;for(var _0x17568c,_0x24caed=0x1,_0x3410ff=arguments['length'];_0x24caed<_0x3410ff;_0x24caed++){_0x17568c=arguments[_0x24caed];for(var _0x56eaef in _0x17568c)Object['prototype'][_0x187268(0x284)][_0x187268(0x2a4)](_0x17568c,_0x56eaef)&&(_0x48cf48[_0x56eaef]=_0x17568c[_0x56eaef]);}return _0x48cf48;},E[_0x1dd0f9(0x109)](this,arguments);},Tt=function(_0x1ff499,_0x57ba18){const _0x3c484d=_0x4b86e5;var _0x1338c3={};for(var _0x2ffded in _0x1ff499)Object[_0x3c484d(0x179)][_0x3c484d(0x284)][_0x3c484d(0x2a4)](_0x1ff499,_0x2ffded)&&_0x57ba18['indexOf'](_0x2ffded)<0x0&&(_0x1338c3[_0x2ffded]=_0x1ff499[_0x2ffded]);if(_0x1ff499!=null&&typeof Object[_0x3c484d(0x237)]==_0x3c484d(0x1fb)){for(var _0x1202da=0x0,_0x2ffded=Object[_0x3c484d(0x237)](_0x1ff499);_0x1202da<_0x2ffded[_0x3c484d(0x214)];_0x1202da++)_0x57ba18[_0x3c484d(0xb5)](_0x2ffded[_0x1202da])<0x0&&Object[_0x3c484d(0x179)][_0x3c484d(0x288)]['call'](_0x1ff499,_0x2ffded[_0x1202da])&&(_0x1338c3[_0x2ffded[_0x1202da]]=_0x1ff499[_0x2ffded[_0x1202da]]);}return _0x1338c3;},pe=M['forwardRef'](function(_0x4e5a28,_0x29ef40){const _0x4e4575=_0x4b86e5;var _0x2a9768=_0x4e5a28['icon'],_0x16a621=_0x4e5a28['id'],_0x192c68=_0x4e5a28[_0x4e4575(0x1b0)],_0x21a50a=_0x4e5a28[_0x4e4575(0x21b)],_0x18ba20=Tt(_0x4e5a28,[_0x4e4575(0x2c0),'id',_0x4e4575(0x1b0),'extend']),_0x313506=_0x4e4575(0x1b4)[_0x4e4575(0xe1)](_0x16a621,'\x20')[_0x4e4575(0xe1)](_0x192c68||'')['trim'](),_0xb8445d=M['useRef']('_'[_0x4e4575(0xe1)](Dt()));return Ae(_0x2a9768,''[_0x4e4575(0xe1)](_0x16a621),{'defIds':_0x2a9768[_0x4e4575(0x267)],'idSuffix':_0xb8445d[_0x4e4575(0x13e)]},E({'ref':_0x29ef40,'className':_0x313506},_0x18ba20),_0x21a50a);});function Ae(_0x3f3721,_0x52f7c0,_0x36add0,_0x3e1500,_0x36b368){const _0x604590=_0x4b86e5;return M['createElement'](_0x3f3721[_0x604590(0x199)],E(E({'key':_0x52f7c0},Ot(_0x3f3721,_0x36add0,_0x36b368)),_0x3e1500),(Rt(_0x3f3721,_0x36add0)[_0x604590(0x108)]||[])[_0x604590(0x2e3)](function(_0x117844,_0x4cbe4f){const _0x108055=_0x604590;return Ae(_0x117844,''[_0x108055(0xe1)](_0x52f7c0,'-')['concat'](_0x3f3721[_0x108055(0x199)],'-')['concat'](_0x4cbe4f),_0x36add0,void 0x0,_0x36b368);}));}function Ot(_0xe0d9f,_0x51ec05,_0xedd396){const _0x35414c=_0x4b86e5;var _0x1dc502=E({},_0xe0d9f['attrs']);_0xedd396!=null&&_0xedd396[_0x35414c(0x10f)]&&_0x1dc502[_0x35414c(0x1cd)]===_0x35414c(0x10f)&&(_0x1dc502['fill']=_0xedd396['colorChannel1']),_0xe0d9f[_0x35414c(0x199)]===_0x35414c(0x2f2)&&_0x1dc502['id']&&(_0x1dc502['id']=_0x1dc502['id']+_0x51ec05[_0x35414c(0x29f)]),Object[_0x35414c(0x1bb)](_0x1dc502)[_0x35414c(0x31f)](function(_0x4222a5){const _0x3c9f31=_0x35414c;var _0xef8543=_0x4222a5[0x0],_0xd8ec6c=_0x4222a5[0x1];_0xef8543==='mask'&&typeof _0xd8ec6c==_0x3c9f31(0x187)&&(_0x1dc502[_0xef8543]=_0xd8ec6c[_0x3c9f31(0x181)](/url\(#(.*)\)/,_0x3c9f31(0x1c8)[_0x3c9f31(0xe1)](_0x51ec05[_0x3c9f31(0x29f)],')')));});var _0x481616=_0x51ec05[_0x35414c(0x267)];return!_0x481616||_0x481616[_0x35414c(0x214)]===0x0||(_0xe0d9f[_0x35414c(0x199)]===_0x35414c(0x245)&&_0x1dc502[_0x35414c(0xd6)]&&(_0x1dc502[_0x35414c(0xd6)]=_0x1dc502[_0x35414c(0xd6)]+_0x51ec05['idSuffix']),Object[_0x35414c(0x1bb)](_0x1dc502)[_0x35414c(0x31f)](function(_0x1ae46a){const _0x5f7711=_0x35414c;var _0x1a7302=_0x1ae46a[0x0],_0x5dc862=_0x1ae46a[0x1];typeof _0x5dc862=='string'&&(_0x1dc502[_0x1a7302]=_0x5dc862[_0x5f7711(0x181)](/url\(#(.*)\)/,'url(#$1'[_0x5f7711(0xe1)](_0x51ec05['idSuffix'],')')));})),_0x1dc502;}function Rt(_0x1aed16,_0x30c171){const _0x557307=_0x4b86e5;var _0x529075,_0x106d70=_0x30c171[_0x557307(0x267)];return!_0x106d70||_0x106d70[_0x557307(0x214)]===0x0?_0x1aed16:_0x1aed16['tag']===_0x557307(0x2dd)&&(!((_0x529075=_0x1aed16[_0x557307(0x108)])===null||_0x529075===void 0x0)&&_0x529075[_0x557307(0x214)])?E(E({},_0x1aed16),{'children':_0x1aed16[_0x557307(0x108)]['map'](function(_0x4be0bc){const _0x50b72f=_0x557307;return typeof _0x4be0bc[_0x50b72f(0x1d8)]['id']==_0x50b72f(0x187)&&_0x106d70&&_0x106d70[_0x50b72f(0x1fa)](_0x4be0bc['attrs']['id'])?E(E({},_0x4be0bc),{'attrs':E(E({},_0x4be0bc[_0x50b72f(0x1d8)]),{'id':_0x4be0bc[_0x50b72f(0x1d8)]['id']+_0x30c171[_0x50b72f(0x29f)]})}):_0x4be0bc;})}):_0x1aed16;}function Dt(){const _0x6892b7=_0x4b86e5;return Math['random']()[_0x6892b7(0x10a)](0x24)[_0x6892b7(0x14a)](0x2,0x8);}pe['displayName']=_0x4b86e5(0x2d2);var Ut={'tag':_0x4b86e5(0x27b),'attrs':{'xmlns':_0x4b86e5(0x296),'fill':'none','viewBox':_0x4b86e5(0x31e),'width':_0x4b86e5(0xcf),'height':_0x4b86e5(0xcf)},'children':[{'tag':'g','attrs':{'clipPath':_0x4b86e5(0x105)},'children':[{'tag':_0x4b86e5(0x19f),'attrs':{'stroke':_0x4b86e5(0x200),'d':_0x4b86e5(0x12b),'strokeLinecap':_0x4b86e5(0x347),'strokeLinejoin':_0x4b86e5(0x347),'strokeWidth':1.2}}]},{'tag':_0x4b86e5(0x2dd),'attrs':{},'children':[{'tag':_0x4b86e5(0x163),'attrs':{'id':_0x4b86e5(0x11e)},'children':[{'tag':_0x4b86e5(0x19f),'attrs':{'fill':_0x4b86e5(0x310),'d':_0x4b86e5(0x2d0)}}]}]}],'defIds':[_0x4b86e5(0x11e)]},ye=M[_0x4b86e5(0x1d2)](function(_0x162c99,_0x5de429){const _0x35cfb6=_0x4b86e5;return M[_0x35cfb6(0x22c)](pe,Object[_0x35cfb6(0x264)]({},_0x162c99,{'id':_0x35cfb6(0x33c),'ref':_0x5de429,'icon':Ut}));});ye['displayName']=_0x4b86e5(0x1fc);var Nt={'tag':_0x4b86e5(0x27b),'attrs':{'xmlns':_0x4b86e5(0x296),'fill':_0x4b86e5(0x2bf),'viewBox':_0x4b86e5(0x1bd),'width':_0x4b86e5(0xcf),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x4b86e5(0x1a4)},'children':[{'tag':'path','attrs':{'stroke':_0x4b86e5(0x200),'d':_0x4b86e5(0xc8),'strokeLinecap':'round','strokeLinejoin':_0x4b86e5(0x347),'strokeWidth':1.2}}]},{'tag':_0x4b86e5(0x2dd),'attrs':{},'children':[{'tag':_0x4b86e5(0x163),'attrs':{'id':_0x4b86e5(0xbf)},'children':[{'tag':_0x4b86e5(0x19f),'attrs':{'fill':_0x4b86e5(0x310),'d':_0x4b86e5(0x2d0),'transform':_0x4b86e5(0x124)}}]}]}],'defIds':[_0x4b86e5(0xbf)]},$e=M[_0x4b86e5(0x1d2)](function(_0x3326c5,_0x134d24){const _0x9803bc=_0x4b86e5;return M[_0x9803bc(0x22c)](pe,Object[_0x9803bc(0x264)]({},_0x3326c5,{'id':_0x9803bc(0x2e5),'ref':_0x134d24,'icon':Nt}));});$e[_0x4b86e5(0x133)]=_0x4b86e5(0x269);function Mt(_0x284101){const _0x434969=_0x4b86e5;switch(_0x284101){case u['CollaborationStatus'][_0x434969(0x28c)]:return _0x434969(0x228);case u[_0x434969(0x10b)][_0x434969(0x26a)]:return _0x434969(0xda);case u[_0x434969(0x10b)][_0x434969(0x16b)]:return _0x434969(0x21d);case u[_0x434969(0x10b)][_0x434969(0x30f)]:return _0x434969(0x1ee);case u['CollaborationStatus']['AWAITING']:case u['CollaborationStatus'][_0x434969(0x222)]:return _0x434969(0x1ff);case u[_0x434969(0x10b)][_0x434969(0x325)]:case u['CollaborationStatus'][_0x434969(0x2df)]:return _0x434969(0x298);}}function xe(_0xc9cba6){const _0x1b927a=_0x4b86e5,{status$:_0x25cc46}=_0xc9cba6,_0x31fcef=T[_0x1b927a(0xf7)](_0x25cc46,u[_0x1b927a(0x10b)][_0x1b927a(0x30f)]),_0x545dbc=T[_0x1b927a(0xce)](a[_0x1b927a(0x250)]),_0x1ebad2=T[_0x1b927a(0xce)](u[_0x1b927a(0x16c)]),_0x40b55b=_0x31fcef!==u[_0x1b927a(0x10b)][_0x1b927a(0x28c)],_0x4723e9=_0x545dbc['t'](Mt(_0x31fcef)),_0x108b8e=_0x40b55b?w['jsx']($e,{}):w[_0x1b927a(0x19d)](ye,{}),_0x1e2954=M[_0x1b927a(0x118)](()=>{const _0x528b7d=_0x1b927a;_0x40b55b||_0x1ebad2[_0x528b7d(0x238)]();},[_0x40b55b,_0x1ebad2]);function _0x8a2683(){const _0x2eed82=_0x1b927a;return w[_0x2eed82(0x31a)](_0x2eed82(0x2cb),{'className':_0x2eed82(0x2ca),'onClick':_0x1e2954,'children':[w[_0x2eed82(0x19d)](_0x2eed82(0x2cb),{'className':D[_0x2eed82(0x189)](_0x2eed82(0x186),{'univer-text-green-500':_0x40b55b,'univer-text-red-500':!_0x40b55b}),'children':_0x108b8e}),w[_0x2eed82(0x19d)](_0x2eed82(0x2cb),{'className':'univer-text-sm\x20univer-leading-8\x20univer-text-gray-600\x20dark:!univer-text-gray-200','children':_0x4723e9})]});}return _0x40b55b?_0x8a2683():w['jsx'](D[_0x1b927a(0x27e)],{'title':_0x545dbc['t'](_0x1b927a(0x12f)),'children':_0x8a2683()});}var Lt=Object[_0x4b86e5(0x220)],wt=(_0x4c7189,_0x5a81d5,_0x38b6cb,_0x3cb6ca)=>{const _0x347fe8=_0x4b86e5;for(var _0x54c941=_0x3cb6ca>0x1?void 0x0:_0x3cb6ca?Lt(_0x5a81d5,_0x38b6cb):_0x5a81d5,_0x347d4f=_0x4c7189[_0x347fe8(0x214)]-0x1,_0x4ce622;_0x347d4f>=0x0;_0x347d4f--)(_0x4ce622=_0x4c7189[_0x347d4f])&&(_0x54c941=_0x4ce622(_0x54c941)||_0x54c941);return _0x54c941;},V=(_0x506eca,_0x3b203d)=>(_0x8a5ae0,_0x55bf0f)=>_0x3b203d(_0x8a5ae0,_0x55bf0f,_0x506eca);exports[_0x4b86e5(0x274)]=class extends a[_0x4b86e5(0x1b8)]{constructor(_0x374c68,_0x6074a7,_0xbf71f5,_0x3fda41){const _0xdbef59=_0x4b86e5;super(),h(this,_0xdbef59(0x31b),new d['BehaviorSubject'](u['CollaborationStatus'][_0xdbef59(0x30f)])),(this['_univerInstanceService']=_0x374c68,this['_injector']=_0x6074a7,this['_collaborationController']=_0xbf71f5,this[_0xdbef59(0x261)]=_0x3fda41,this[_0xdbef59(0x2f3)](),this['_initStatusListener']());}[_0x4b86e5(0x20f)](){const _0x3d1887=_0x4b86e5;this[_0x3d1887(0x240)](this[_0x3d1887(0xea)][_0x3d1887(0x172)][_0x3d1887(0xff)](d[_0x3d1887(0x11a)](()=>{const _0x1f6334=_0x3d1887,_0x341a22=this[_0x1f6334(0xea)][_0x1f6334(0x17f)]();return _0x341a22?this['_collaborationController'][_0x1f6334(0x26b)](_0x341a22[_0x1f6334(0x334)]()):d['of'](null);}),d[_0x3d1887(0x11a)](_0x2ac8d3=>_0x2ac8d3?_0x2ac8d3[_0x3d1887(0x26c)]:d['of'](u['CollaborationStatus']['NOT_COLLAB'])))['subscribe'](_0x8e8379=>{const _0x5dc5a9=_0x3d1887;this[_0x5dc5a9(0x31b)]['next'](_0x8e8379);}));}[_0x4b86e5(0x2f3)](){const _0x5b45ba=_0x4b86e5;this[_0x5b45ba(0x240)](this[_0x5b45ba(0x261)]['registerComponent'](T[_0x5b45ba(0x1a6)][_0x5b45ba(0x1e9)],()=>T[_0x5b45ba(0x1ce)](Pt({'status$':this[_0x5b45ba(0x31b)]['asObservable']()}),this[_0x5b45ba(0xde)])));}},exports[_0x4b86e5(0x274)]=wt([V(0x0,a[_0x4b86e5(0x114)]),V(0x1,a[_0x4b86e5(0x15b)](a['Injector'])),V(0x2,a[_0x4b86e5(0x15b)](u[_0x4b86e5(0x21a)])),V(0x3,T[_0x4b86e5(0x301)])],exports[_0x4b86e5(0x274)]);function Pt(_0xda7e8d){const {status$:_0x31cb70}=_0xda7e8d;return function(){return w['jsx'](xe,{'status$':_0x31cb70});};}function _0x5371(_0x13d9f4,_0x3510c1){const _0x1f41c8=_0x1f41();return _0x5371=function(_0x5371e3,_0x44a0cc){_0x5371e3=_0x5371e3-0xb2;let _0x2fdf26=_0x1f41c8[_0x5371e3];return _0x2fdf26;},_0x5371(_0x13d9f4,_0x3510c1);}var At=Object[_0x4b86e5(0x220)],yt=(_0x10069f,_0x5c5cc8,_0x2e6ed7,_0x14348b)=>{const _0x282ee5=_0x4b86e5;for(var _0x4959a5=_0x14348b>0x1?void 0x0:_0x14348b?At(_0x5c5cc8,_0x2e6ed7):_0x5c5cc8,_0x26374c=_0x10069f[_0x282ee5(0x214)]-0x1,_0x38860b;_0x26374c>=0x0;_0x26374c--)(_0x38860b=_0x10069f[_0x26374c])&&(_0x4959a5=_0x38860b(_0x4959a5)||_0x4959a5);return _0x4959a5;},y=(_0x321f5c,_0x5a3ad0)=>(_0xb0462d,_0x35b684)=>_0x5a3ad0(_0xb0462d,_0x35b684,_0x321f5c);let q=class extends a['Disposable']{constructor(_0x2d7a03,_0x42841f,_0x3e057f,_0x1e1290,_0x2969c7,_0x277e78){const _0x26aef9=_0x4b86e5;super(),this[_0x26aef9(0x257)]=_0x2d7a03,this[_0x26aef9(0x2c7)]=_0x42841f,this['_collaborationUIEventService']=_0x3e057f,this[_0x26aef9(0x32e)]=_0x1e1290,this[_0x26aef9(0x24c)]=_0x2969c7,this[_0x26aef9(0x2c3)]=_0x277e78,this[_0x26aef9(0x196)](),this['_initEvent']();}[_0x4b86e5(0x196)](){const _0x475864=_0x4b86e5;this[_0x475864(0x240)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x35a308=_0x475864;if(this[_0x35a308(0x2c7)][_0x35a308(0x1d4)]['size'])return this['_localeService']['t'](_0x35a308(0xf8));}));}[_0x4b86e5(0x300)](){const _0x365cc4=_0x4b86e5;this[_0x365cc4(0x240)](this[_0x365cc4(0x316)][_0x365cc4(0x2bc)][_0x365cc4(0x15e)](_0x51f885=>{const _0x4d2be9=_0x365cc4;_0x51f885['id']===u[_0x4d2be9(0x188)][_0x4d2be9(0x294)]&&this['_messageService']['show']({'type':D['MessageType'][_0x4d2be9(0x2ab)],'content':this[_0x4d2be9(0x2c3)]['t']('collaboration.single-unit.warning')}),_0x51f885['id']===u['CollaborationUIEventId'][_0x4d2be9(0x122)]&&this[_0x4d2be9(0x32e)][_0x4d2be9(0x1b3)]({'type':D[_0x4d2be9(0xeb)][_0x4d2be9(0x2ab)],'content':this[_0x4d2be9(0x2c3)]['t'](_0x4d2be9(0x1e4))}),_0x51f885['id']===u['CollaborationUIEventId'][_0x4d2be9(0x184)]&&this[_0x4d2be9(0x24c)][_0x4d2be9(0x1b3)]({'title':this[_0x4d2be9(0x2c3)]['t']('permission.title'),'content':this[_0x4d2be9(0x2c3)]['t']('permission.content'),'type':_0x4d2be9(0x338),'duration':0x0}),_0x51f885['id']===u['CollaborationUIEventId'][_0x4d2be9(0x26a)]&&this['_messageService'][_0x4d2be9(0x1b3)]({'type':D[_0x4d2be9(0xeb)][_0x4d2be9(0x319)],'content':this[_0x4d2be9(0x2c3)]['t'](_0x4d2be9(0x1e4))+'('+_0x51f885[_0x4d2be9(0x1cf)]+')'}),_0x51f885['id']===u[_0x4d2be9(0x188)][_0x4d2be9(0x343)]&&this['_messageService'][_0x4d2be9(0x1b3)]({'type':D['MessageType'][_0x4d2be9(0x2ab)],'content':this[_0x4d2be9(0x2c3)]['t'](_0x51f885[_0x4d2be9(0x1cf)]||'')}),_0x51f885['id']===u[_0x4d2be9(0x188)][_0x4d2be9(0x127)]&&this[_0x4d2be9(0x32e)][_0x4d2be9(0x1b3)]({'type':D['MessageType'][_0x4d2be9(0x2ab)],'content':this['_localeService']['t'](_0x4d2be9(0x1d0))}),_0x51f885['id']===u[_0x4d2be9(0x188)]['SOCKET_FAILED']&&this['_messageService'][_0x4d2be9(0x1b3)]({'type':D[_0x4d2be9(0xeb)][_0x4d2be9(0x319)],'content':this[_0x4d2be9(0x2c3)]['t'](_0x4d2be9(0x23a))}),_0x51f885['id']===u[_0x4d2be9(0x188)][_0x4d2be9(0x148)]&&this[_0x4d2be9(0x32e)]['show']({'type':D[_0x4d2be9(0xeb)][_0x4d2be9(0x319)],'content':this['_localeService']['t'](_0x4d2be9(0x1c6))});}));}};q=yt([y(0x0,T['IBeforeCloseService']),y(0x1,u[_0x4b86e5(0x1fd)]),y(0x2,a[_0x4b86e5(0x15b)](u['CollaborationUIEventService'])),y(0x3,T['IMessageService']),y(0x4,T['INotificationService']),y(0x5,a['Inject'](a[_0x4b86e5(0x250)]))],q);const $t=_0x4b86e5(0x175),Ue={},be=a['createIdentifier'](_0x4b86e5(0x246));var xt=Object['getOwnPropertyDescriptor'],jt=(_0x4e2e41,_0x16e890,_0x475389,_0xd1fb46)=>{for(var _0x4fd64e=_0xd1fb46>0x1?void 0x0:_0xd1fb46?xt(_0x16e890,_0x475389):_0x16e890,_0x483a2e=_0x4e2e41['length']-0x1,_0x5b310c;_0x483a2e>=0x0;_0x483a2e--)(_0x5b310c=_0x4e2e41[_0x483a2e])&&(_0x4fd64e=_0x5b310c(_0x4fd64e)||_0x4fd64e);return _0x4fd64e;},H=(_0x4b5bc7,_0x849af5)=>(_0x73186d,_0x43dac4)=>_0x849af5(_0x73186d,_0x43dac4,_0x4b5bc7);exports[_0x4b86e5(0x153)]=class extends a['RxDisposable']{constructor(_0x2e9e8c,_0x4faa60,_0x3cc0d1,_0x41333f,_0xc2b6d8){const _0x488e9f=_0x4b86e5;super(),this[_0x488e9f(0x11d)]=_0x2e9e8c,this[_0x488e9f(0x2ed)]=_0x4faa60,this[_0x488e9f(0x2a6)]=_0x3cc0d1,this['_dataLoaderService']=_0x41333f,_0xc2b6d8?_0xc2b6d8==null||_0xc2b6d8['whenReady']()['then'](()=>this['_init']()):(this[_0x488e9f(0x2ed)][_0x488e9f(0xe2)](_0x488e9f(0x18a),_0x488e9f(0x1ea)),this[_0x488e9f(0x1f3)]());}async[_0x4b86e5(0x1f3)](){const _0x4ce6fc=_0x4b86e5,_0x13f45b=this['_urlService']['getParam']('unit'),_0x1d0cc4=this[_0x4ce6fc(0x11d)]['getParam'](_0x4ce6fc(0xfe)),_0x51752d=this[_0x4ce6fc(0x11d)][_0x4ce6fc(0x12d)](_0x4ce6fc(0xc3));if(!_0x13f45b||!_0x1d0cc4){this['_logService'][_0x4ce6fc(0xe2)](_0x4ce6fc(0x18a),_0x4ce6fc(0x242));return;}const _0x468289=await this['_dataLoaderService'][_0x4ce6fc(0x219)](_0x13f45b,Number(_0x1d0cc4),_0x51752d);_0x468289&&_0x468289 instanceof a[_0x4ce6fc(0x252)]&&this[_0x4ce6fc(0xe6)](_0x468289);}async['_setupSubUnitSync'](_0x402593){const _0x3cf787=_0x4b86e5;await this[_0x3cf787(0x138)](_0x402593),_0x402593['activeSheet$']['pipe'](d['takeUntil'](this[_0x3cf787(0x2a5)]))[_0x3cf787(0x15e)](_0x56243b=>{const _0x51cb83=_0x3cf787;_0x56243b&&this[_0x51cb83(0x125)](_0x56243b);}),this[_0x3cf787(0x11d)][_0x3cf787(0x14d)]['pipe'](d[_0x3cf787(0x24b)](this['dispose$']))[_0x3cf787(0x15e)](()=>this['_updateSubUnitFromURLParams'](_0x402593));}[_0x4b86e5(0x125)](_0x362780,_0x175f1a=!0x1){const _0x1c35f7=_0x4b86e5,_0x1f8c64=this['_urlService']['getParam'](_0x1c35f7(0xc3));_0x362780[_0x1c35f7(0x235)]()!==_0x1f8c64&&this[_0x1c35f7(0x11d)][_0x1c35f7(0x30e)](_0x1c35f7(0xc3),_0x362780[_0x1c35f7(0x235)](),_0x175f1a);}async[_0x4b86e5(0x138)](_0x47c55c){const _0x155f14=_0x4b86e5;var _0x39744a;const _0x2c5f78=this[_0x155f14(0x11d)][_0x155f14(0x12d)](_0x155f14(0xc3));if(!_0x2c5f78||!_0x47c55c['getSheetBySheetId'](_0x2c5f78)){const _0x12dddb=_0x47c55c[_0x155f14(0xdb)]()[0x0],_0x59740a=_0x47c55c[_0x155f14(0x302)](_0x12dddb);if(!_0x59740a)return;this['_updateURLWithCurrentState'](_0x59740a,!0x0),await this['_commandService'][_0x155f14(0x1df)](g[_0x155f14(0x2fa)]['id'],{'unitId':_0x47c55c[_0x155f14(0x334)](),'subUnitId':_0x12dddb});return;}((_0x39744a=_0x47c55c['getActiveSheet']())==null?void 0x0:_0x39744a[_0x155f14(0x235)]())!==_0x2c5f78&&await this[_0x155f14(0x2a6)][_0x155f14(0x1df)](g[_0x155f14(0x2fa)]['id'],{'unitId':_0x47c55c[_0x155f14(0x334)](),'subUnitId':_0x2c5f78});}},exports[_0x4b86e5(0x153)]=jt([H(0x0,be),H(0x1,a['ILogService']),H(0x2,a[_0x4b86e5(0x2c6)]),H(0x3,a[_0x4b86e5(0x15b)](u[_0x4b86e5(0x277)])),H(0x4,a[_0x4b86e5(0xc9)](Ke[_0x4b86e5(0x268)]))],exports[_0x4b86e5(0x153)]);var Bt=Object['getOwnPropertyDescriptor'],kt=(_0x18b570,_0x2a863b,_0x25a564,_0x5dc42b)=>{for(var _0x2aa407=_0x5dc42b>0x1?void 0x0:_0x5dc42b?Bt(_0x2a863b,_0x25a564):_0x2a863b,_0x2a5809=_0x18b570['length']-0x1,_0x46dabc;_0x2a5809>=0x0;_0x2a5809--)(_0x46dabc=_0x18b570[_0x2a5809])&&(_0x2aa407=_0x46dabc(_0x2aa407)||_0x2aa407);return _0x2aa407;},ce=(_0xca3ed7,_0x3144dd)=>(_0x25b81e,_0x4107c3)=>_0x3144dd(_0x25b81e,_0x4107c3,_0xca3ed7);let z=class{constructor(_0x4e1bfd,_0x27ee49,_0x254c64){const _0x5a4655=_0x4b86e5;this[_0x5a4655(0xde)]=_0x4e1bfd,this[_0x5a4655(0x282)]=_0x27ee49,this[_0x5a4655(0x297)]=_0x254c64;}['transformIMECache'](_0x40d830){const _0x273fe9=_0x4b86e5;this['_transformUndoRedoStack'](_0x40d830),this[_0x273fe9(0x32d)](_0x40d830);}[_0x4b86e5(0x156)](_0x467f49){const _0x53808c=_0x4b86e5,{unitID:_0x48a8d5}=_0x467f49,_0x292d5d=this[_0x53808c(0x297)][_0x53808c(0x299)](_0x48a8d5)[_0x53808c(0x2d6)](b[_0x53808c(0x226)]),{redoCache:_0x3afc95}=_0x292d5d[_0x53808c(0x10e)]();if(_0x3afc95[_0x53808c(0x214)]===0x0)return _0x467f49;let _0xc3071c=a['Tools'][_0x53808c(0x195)](_0x467f49[_0x53808c(0x16a)][0x0]);for(let _0x21d687=0x0;_0x21d687<_0x3afc95[_0x53808c(0x214)];_0x21d687++){const _0x2b58e6={'id':_0x53808c(0x293),'params':{..._0x3afc95[_0x21d687]}},_0x599308=this[_0x53808c(0x282)][_0x53808c(0x19e)](_0xc3071c,_0x2b58e6,!0x1);if(m['isTransformMutationFailure'](_0x599308))throw _0x599308[_0x53808c(0x338)];_0xc3071c=_0x599308[_0x53808c(0x24e)];}return{...a[_0x53808c(0x1ef)][_0x53808c(0x195)](_0x467f49),'mutations':[_0xc3071c]};}[_0x4b86e5(0x2d8)](_0x31f6e7){const _0x5af268=_0x4b86e5,{unitID:_0x8b5e40}=_0x31f6e7,_0x21ca45=this[_0x5af268(0x297)]['getRenderById'](_0x8b5e40)[_0x5af268(0x2d6)](b[_0x5af268(0x226)]),{undoCache:_0x1a7ff1,redoCache:_0x235963}=_0x21ca45[_0x5af268(0x10e)]();if(_0x1a7ff1['length']===0x0||_0x235963['length']===0x0)return;const _0x148c23=[],_0x56f47a=[];let _0x18b5cc=a[_0x5af268(0x1ef)][_0x5af268(0x195)](_0x31f6e7[_0x5af268(0x16a)][0x0]),_0x30c01b=a[_0x5af268(0x1ef)][_0x5af268(0x195)](_0x31f6e7['mutations'][0x0]);for(let _0x5f2133=_0x1a7ff1['length']-0x1;_0x5f2133>=0x0;_0x5f2133--){const _0x487ed6={'id':'doc.mutation.rich-text-editing','params':{..._0x1a7ff1[_0x5f2133]}},_0x18ce96={'id':_0x5af268(0x293),'params':{..._0x235963[_0x5f2133]}},_0x8dcc5d=this[_0x5af268(0x282)][_0x5af268(0x19e)](_0x18b5cc,_0x487ed6,!0x1),_0x2770ce=this['_transformService'][_0x5af268(0x19e)](_0x30c01b,_0x18ce96,!0x1);if(m[_0x5af268(0x213)](_0x8dcc5d))throw _0x8dcc5d[_0x5af268(0x338)];if(m['isTransformMutationFailure'](_0x2770ce))throw _0x2770ce[_0x5af268(0x338)];_0x148c23[_0x5af268(0x1de)](_0x8dcc5d[_0x5af268(0x221)]['params']),_0x56f47a[_0x5af268(0x1de)](_0x2770ce[_0x5af268(0x221)][_0x5af268(0x2b3)]),_0x18b5cc=_0x8dcc5d[_0x5af268(0x24e)],_0x30c01b=_0x2770ce[_0x5af268(0x24e)];}_0x21ca45[_0x5af268(0xe9)]({'undoCache':_0x148c23,'redoCache':_0x56f47a});}[_0x4b86e5(0x32d)](_0x1d95e1){const _0x17459a=_0x4b86e5,{unitID:_0x30c036}=_0x1d95e1,_0xf43b78=this[_0x17459a(0x297)][_0x17459a(0x299)](_0x30c036)[_0x17459a(0x2d6)](b[_0x17459a(0x226)]),_0x408786=_0xf43b78[_0x17459a(0x263)]();if(_0x408786==null)return;const _0x230440=[{'id':_0x17459a(0x293),'params':{'unitId':_0x1d95e1['unitID'],'actions':null,'textRanges':[_0x408786]}}],_0x258160=this[_0x17459a(0x282)][_0x17459a(0x1e7)](_0x1d95e1,_0x230440);if(!m['isTransformMutationsWithChangesetSuccess'](_0x258160))throw _0x258160['error'];const _0x1f8cbb=_0x258160[_0x17459a(0x221)][0x0]['params']['textRanges'];Array[_0x17459a(0x2a8)](_0x1f8cbb)&&_0x1f8cbb[_0x17459a(0x214)]&&_0xf43b78[_0x17459a(0x15a)](_0x1f8cbb[0x0]);}};z=kt([ce(0x0,a[_0x4b86e5(0x15b)](a[_0x4b86e5(0x183)])),ce(0x1,m[_0x4b86e5(0x13d)]),ce(0x2,p['IRenderManagerService'])],z);var Ht=Object['getOwnPropertyDescriptor'],Ft=(_0x184f1e,_0x2e8396,_0x89a55c,_0xaecf92)=>{const _0x31d0d4=_0x4b86e5;for(var _0x489cda=_0xaecf92>0x1?void 0x0:_0xaecf92?Ht(_0x2e8396,_0x89a55c):_0x2e8396,_0x26db36=_0x184f1e[_0x31d0d4(0x214)]-0x1,_0x1d7716;_0x26db36>=0x0;_0x26db36--)(_0x1d7716=_0x184f1e[_0x26db36])&&(_0x489cda=_0x1d7716(_0x489cda)||_0x489cda);return _0x489cda;},le=(_0x4ab120,_0x3763f9)=>(_0x5e3f2a,_0x2d8f77)=>_0x3763f9(_0x5e3f2a,_0x2d8f77,_0x4ab120);let J=class{constructor(_0x2ac4f3,_0x4e6dce,_0x252b0d){const _0x5f1b4a=_0x4b86e5;this[_0x5f1b4a(0xde)]=_0x2ac4f3,this[_0x5f1b4a(0x282)]=_0x4e6dce,this[_0x5f1b4a(0x137)]=_0x252b0d;}[_0x4b86e5(0x2bb)](_0x17010d){const _0x354e00=_0x4b86e5;this[_0x354e00(0x11c)](_0x17010d);}[_0x4b86e5(0x156)](_0x101c9b){const _0x3e022c=_0x4b86e5,{unitID:_0x2282eb}=_0x101c9b,{collaboration:_0x24deaf}=this[_0x3e022c(0x137)][_0x3e022c(0x2ff)](_0x2282eb);if(_0x24deaf[_0x3e022c(0x214)]===0x0)return _0x101c9b;let _0x4b152b=a[_0x3e022c(0x1ef)][_0x3e022c(0x195)](_0x101c9b['mutations'][0x0]);for(let _0x1bda41=0x0;_0x1bda41<_0x24deaf[_0x3e022c(0x214)];_0x1bda41++){const _0x420b2f={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x24deaf[_0x1bda41][_0x3e022c(0x2e1)],..._0x24deaf[_0x1bda41][_0x3e022c(0x248)]}},_0x57cccc=this[_0x3e022c(0x282)][_0x3e022c(0x19e)](_0x4b152b,_0x420b2f,!0x1);if(m[_0x3e022c(0x213)](_0x57cccc))throw _0x57cccc[_0x3e022c(0x338)];_0x4b152b=_0x57cccc[_0x3e022c(0x24e)];}return{...a[_0x3e022c(0x1ef)]['deepClone'](_0x101c9b),'mutations':[_0x4b152b]};}[_0x4b86e5(0x11c)](_0x2b8394){const _0x16084a=_0x4b86e5,{unitID:_0x3df45e}=_0x2b8394,{history:_0x24e089,collaboration:_0x17aef6}=this[_0x16084a(0x137)][_0x16084a(0x2ff)](_0x3df45e);if(_0x24e089[_0x16084a(0x214)]===0x0&&_0x17aef6[_0x16084a(0x214)]===0x0)return;const _0x9322d5=[],_0x168be5=[];let _0x4678f7=a[_0x16084a(0x1ef)][_0x16084a(0x195)](_0x2b8394['mutations'][0x0]),_0x24970a=a[_0x16084a(0x1ef)][_0x16084a(0x195)](_0x2b8394['mutations'][0x0]);for(let _0x2c10f7=_0x24e089[_0x16084a(0x214)]-0x1;_0x2c10f7>=0x0;_0x2c10f7--){const _0x3050f8={'id':_0x16084a(0x293),'params':{'unitId':_0x24e089[_0x2c10f7][_0x16084a(0x2e1)],..._0x24e089[_0x2c10f7][_0x16084a(0x2be)]}},_0x59712a={'id':_0x16084a(0x293),'params':{'unitId':_0x24e089[_0x2c10f7][_0x16084a(0x2e1)],..._0x24e089[_0x2c10f7][_0x16084a(0x248)]}},_0x213fca=this[_0x16084a(0x282)][_0x16084a(0x19e)](_0x4678f7,_0x3050f8,!0x1),_0x2e5bba=this[_0x16084a(0x282)][_0x16084a(0x19e)](_0x24970a,_0x59712a,!0x1);if(m['isTransformMutationFailure'](_0x213fca))throw _0x213fca['error'];if(m[_0x16084a(0x213)](_0x2e5bba))throw _0x2e5bba['error'];_0x9322d5[_0x16084a(0x1de)]({..._0x24e089[_0x2c10f7],'undoState':_0x213fca[_0x16084a(0x221)]['params'],'redoState':_0x2e5bba['m2Prime'][_0x16084a(0x2b3)]}),_0x4678f7=_0x213fca[_0x16084a(0x24e)],_0x24970a=_0x2e5bba[_0x16084a(0x24e)];}_0x4678f7=a['Tools']['deepClone'](_0x2b8394['mutations'][0x0]),_0x24970a=a[_0x16084a(0x1ef)][_0x16084a(0x195)](_0x2b8394[_0x16084a(0x16a)][0x0]);for(let _0x1c0328=_0x17aef6[_0x16084a(0x214)]-0x1;_0x1c0328>=0x0;_0x1c0328--){const _0x388c3b={'id':_0x16084a(0x293),'params':{'unitId':_0x17aef6[_0x1c0328]['unitId'],..._0x17aef6[_0x1c0328][_0x16084a(0x2be)]}},_0x4df963={'id':_0x16084a(0x293),'params':{'unitId':_0x17aef6[_0x1c0328][_0x16084a(0x2e1)],..._0x17aef6[_0x1c0328][_0x16084a(0x248)]}},_0x2f0fe4=this[_0x16084a(0x282)][_0x16084a(0x19e)](_0x4678f7,_0x388c3b,!0x1),_0x78108b=this['_transformService']['transformMutation'](_0x24970a,_0x4df963,!0x1);if(m[_0x16084a(0x213)](_0x2f0fe4))throw _0x2f0fe4['error'];if(m[_0x16084a(0x213)](_0x78108b))throw _0x78108b[_0x16084a(0x338)];_0x168be5[_0x16084a(0x1de)]({..._0x17aef6[_0x1c0328],'undoState':_0x2f0fe4[_0x16084a(0x221)][_0x16084a(0x2b3)],'redoState':_0x78108b[_0x16084a(0x221)][_0x16084a(0x2b3)]}),_0x4678f7=_0x2f0fe4[_0x16084a(0x24e)],_0x24970a=_0x78108b['m1Prime'];}this[_0x16084a(0x137)][_0x16084a(0x128)](_0x3df45e,{'history':_0x9322d5,'collaboration':_0x168be5});}};J=Ft([le(0x0,a[_0x4b86e5(0x15b)](a[_0x4b86e5(0x183)])),le(0x1,m[_0x4b86e5(0x13d)]),le(0x2,a[_0x4b86e5(0x15b)](b[_0x4b86e5(0x260)]))],J);var Yt=Object[_0x4b86e5(0x220)],Wt=(_0x4b3330,_0x99795b,_0xc7d297,_0x384508)=>{const _0x16382a=_0x4b86e5;for(var _0xd0a68c=_0x384508>0x1?void 0x0:_0x384508?Yt(_0x99795b,_0xc7d297):_0x99795b,_0x5428f7=_0x4b3330[_0x16382a(0x214)]-0x1,_0x2283e0;_0x5428f7>=0x0;_0x5428f7--)(_0x2283e0=_0x4b3330[_0x5428f7])&&(_0xd0a68c=_0x2283e0(_0xd0a68c)||_0xd0a68c);return _0xd0a68c;},Ne=(_0x31bd88,_0x399d62)=>(_0x17177c,_0x28cd63)=>_0x399d62(_0x17177c,_0x28cd63,_0x31bd88);let Z=class{constructor(_0x1af360,_0x48bd03){const _0x2d1934=_0x4b86e5;this[_0x2d1934(0xde)]=_0x1af360,this[_0x2d1934(0x282)]=_0x48bd03;}['transformSelections'](_0x466bb2){const _0x56392b=_0x4b86e5;var _0x135a7e;const _0x3f899f=this[_0x56392b(0xde)][_0x56392b(0x2e2)](Y['DocSelectionManagerService']),_0x34139b=(_0x135a7e=_0x3f899f[_0x56392b(0x1a9)]())!=null?_0x135a7e:[];if(_0x34139b['length']===0x0)return;const _0x4ed0b2=_0x466bb2[_0x56392b(0x146)],_0x4e358b=[{'id':_0x56392b(0x293),'params':{'unitId':_0x4ed0b2,'actions':null,'textRanges':_0x34139b}}],_0x59c2e4=this[_0x56392b(0x282)]['transformMutationsWithChangeset'](_0x466bb2,_0x4e358b);if(!m[_0x56392b(0xd7)](_0x59c2e4))throw _0x59c2e4[_0x56392b(0x338)];const _0x3c8e46=_0x59c2e4[_0x56392b(0x221)][0x0][_0x56392b(0x2b3)]['textRanges'];Array['isArray'](_0x3c8e46)&&_0x3c8e46['length']&&_0x3f899f[_0x56392b(0x12a)](_0x3c8e46,{'unitId':_0x4ed0b2,'subUnitId':_0x4ed0b2},!0x1);}};Z=Wt([Ne(0x0,a[_0x4b86e5(0x15b)](a['Injector'])),Ne(0x1,m[_0x4b86e5(0x13d)])],Z);var Vt=Object[_0x4b86e5(0x220)],Xt=(_0x13618d,_0x3dae1d,_0x2b9704,_0x5a5412)=>{for(var _0x5de021=_0x5a5412>0x1?void 0x0:_0x5a5412?Vt(_0x3dae1d,_0x2b9704):_0x3dae1d,_0x349b30=_0x13618d['length']-0x1,_0x5df80d;_0x349b30>=0x0;_0x349b30--)(_0x5df80d=_0x13618d[_0x349b30])&&(_0x5de021=_0x5df80d(_0x5de021)||_0x5de021);return _0x5de021;},N=(_0x5da6be,_0x1c23b8)=>(_0x4ab9c9,_0x1301d8)=>_0x1c23b8(_0x4ab9c9,_0x1301d8,_0x5da6be);let Q=class extends a[_0x4b86e5(0x1b8)]{constructor(_0x49464b,_0x31afa6,_0x1789ed,_0x295c1d,_0xa92e0e,_0x4146c5,_0x2f85e8,_0x2b9aba){const _0x556c8e=_0x4b86e5;super(),h(this,_0x556c8e(0x31b),new d[(_0x556c8e(0x23b))](u['CollaborationStatus'][_0x556c8e(0x30f)])),(this[_0x556c8e(0x137)]=_0x49464b,this['_collaborationController']=_0x31afa6,this['_docTransformIMECacheService']=_0x1789ed,this[_0x556c8e(0x14c)]=_0x295c1d,this[_0x556c8e(0x1c0)]=_0xa92e0e,this[_0x556c8e(0x23d)]=_0x4146c5,this[_0x556c8e(0x32e)]=_0x2f85e8,this[_0x556c8e(0x2c3)]=_0x2b9aba,this[_0x556c8e(0x204)]());}[_0x4b86e5(0x204)](){const _0x1a3c91=_0x4b86e5;this['disposeWithMe'](this[_0x1a3c91(0x308)][_0x1a3c91(0x117)]['subscribe'](_0x4c14e3=>{const _0x2f5837=_0x1a3c91,_0x35ed8c=this[_0x2f5837(0x137)][_0x2f5837(0x1c5)][_0x2f5837(0x15e)](_0x4f45d7=>{const _0x516030=_0x2f5837;if(_0x4f45d7==null)return;const {unitId:_0x5e94bf,redoState:_0x58647d,commandId:_0x3a906d}=_0x4f45d7;if(_0x5e94bf!==_0x4c14e3[_0x516030(0x146)])return;const _0x219592={'id':_0x3a906d,'type':a[_0x516030(0x12e)][_0x516030(0x20b)],'params':{'unitId':_0x5e94bf,'actions':_0x58647d['actions'],'textRanges':null}};_0x4c14e3[_0x516030(0x1e6)](_0x219592);});if(_0x4c14e3['disposeWithMe'](_0x35ed8c),_0x4c14e3 instanceof u[_0x2f5837(0x26f)]){const _0xa9999={'onTransformIME':_0x1a135a=>this[_0x2f5837(0x1a5)][_0x2f5837(0xb6)](_0x1a135a),'onTransformState':_0x342d24=>this[_0x2f5837(0x14c)][_0x2f5837(0x2bb)](_0x342d24),'onTransformSelections':_0x929bb0=>this[_0x2f5837(0x1c0)][_0x2f5837(0x17c)](_0x929bb0),'onSyncEditingCollabCursor':_0x5d326f=>this[_0x2f5837(0x23d)]['syncEditingCollabCursor'](_0x5d326f),'onTransformRemoteChangesetByIMECache':_0x19066e=>this[_0x2f5837(0x1a5)][_0x2f5837(0x156)](_0x19066e),'onTransformRemoteChangesetByStateCache':_0x3c2f20=>this[_0x2f5837(0x14c)][_0x2f5837(0x156)](_0x3c2f20)};_0x4c14e3[_0x2f5837(0x232)](_0xa9999);}}));}};Q=Xt([N(0x0,a[_0x4b86e5(0x15b)](b[_0x4b86e5(0x260)])),N(0x1,a[_0x4b86e5(0x15b)](u[_0x4b86e5(0x21a)])),N(0x2,a[_0x4b86e5(0x15b)](z)),N(0x3,a['Inject'](J)),N(0x4,a['Inject'](Z)),N(0x5,a[_0x4b86e5(0x15b)](Ce)),N(0x6,T[_0x4b86e5(0x231)]),N(0x7,a[_0x4b86e5(0x15b)](a[_0x4b86e5(0x250)]))],Q);var Gt=Object[_0x4b86e5(0x220)],Kt=(_0x37ff36,_0x52a73f,_0x26fdde,_0xf16764)=>{const _0x169744=_0x4b86e5;for(var _0x474577=_0xf16764>0x1?void 0x0:_0xf16764?Gt(_0x52a73f,_0x26fdde):_0x52a73f,_0x5253fb=_0x37ff36[_0x169744(0x214)]-0x1,_0xdf448e;_0x5253fb>=0x0;_0x5253fb--)(_0xdf448e=_0x37ff36[_0x5253fb])&&(_0x474577=_0xdf448e(_0x474577)||_0x474577);return _0x474577;},_e=(_0x2a7f0b,_0x429d82)=>(_0x230a42,_0x25eca4)=>_0x429d82(_0x230a42,_0x25eca4,_0x2a7f0b);let ge=class extends a[_0x4b86e5(0x1b8)]{constructor(_0x2f71e9,_0x3ff8a0,_0x31c795){const _0x4ed067=_0x4b86e5;super(),h(this,_0x4ed067(0x22b),new Map()),h(this,_0x4ed067(0x326),new Map()),h(this,_0x4ed067(0x332),!0x1),(this[_0x4ed067(0x31d)]=_0x2f71e9,this[_0x4ed067(0xf9)]=_0x3ff8a0,this[_0x4ed067(0x2f0)]=_0x31c795);}[_0x4b86e5(0x30a)](){this['_disabled']=!0x0;}[_0x4b86e5(0x2b0)](){const _0x5a0214=_0x4b86e5;this[_0x5a0214(0x332)]=!0x1;}get[_0x4b86e5(0x1d4)](){const _0xbc5fb2=_0x4b86e5;return this[_0xbc5fb2(0x326)];}[_0x4b86e5(0x161)](){const _0x4842bd=_0x4b86e5;this['exhaustSavingTask']()[_0x4842bd(0xd8)](()=>super['dispose']());}async[_0x4b86e5(0x166)](_0x23c3fd){const _0x54295f=_0x4b86e5;return this[_0x54295f(0x332)]?null:this[_0x54295f(0xf9)][_0x54295f(0x218)](u[_0x54295f(0x2c5)](_0x23c3fd));}async[_0x4b86e5(0x229)](_0x331127,_0x399430){const _0x32ad64=_0x4b86e5;return!!this[_0x32ad64(0xf9)][_0x32ad64(0x28b)](_0x331127,_0x399430);}[_0x4b86e5(0x2ae)](_0x54134b,_0x3353f6,_0x332b8c,_0x11603f){const _0x3bffba=_0x4b86e5,_0x5a313d=this['_revisionService'][_0x3bffba(0x19b)](_0x54134b);this[_0x3bffba(0x22b)][_0x3bffba(0x276)](_0x54134b,{'unitID':_0x54134b,'type':_0x3353f6,'awaitingChangeset':_0x332b8c,'mutations':_0x11603f,'rev':_0x5a313d}),this[_0x3bffba(0x326)]['has'](_0x54134b)||this[_0x3bffba(0x34b)](_0x54134b);}[_0x4b86e5(0x34b)](_0x218d2c){const _0x3c8eaf=_0x4b86e5,_0x49d965=this[_0x3c8eaf(0x241)]();_0x49d965===0x0?this['_saveCache'](_0x218d2c):this[_0x3c8eaf(0x326)][_0x3c8eaf(0x276)](_0x218d2c,setTimeout(()=>this[_0x3c8eaf(0xfa)](_0x218d2c),_0x49d965));}[_0x4b86e5(0x241)](){const _0x27862d=_0x4b86e5;var _0x126d82;return(_0x126d82=this[_0x27862d(0x31d)][_0x27862d(0x1e5)](u['LOCAL_CACHE_INTERVAL_KEY']))!=null?_0x126d82:u['LOCAL_CACHE_INTERVAL'];}[_0x4b86e5(0xfa)](_0x2bd02e){const _0x3cff28=_0x4b86e5,_0x6e8301=this['_saveTaskMap']['get'](_0x2bd02e);return _0x6e8301!==void 0x0&&window['clearTimeout'](_0x6e8301),this[_0x3cff28(0xf9)][_0x3cff28(0x28b)](u['getLocalCacheKey'](_0x2bd02e),this[_0x3cff28(0x22b)][_0x3cff28(0x2e2)](_0x2bd02e))['then'](()=>this[_0x3cff28(0x326)][_0x3cff28(0x1b5)](_0x2bd02e));}async['exhaustSavingTask'](){const _0x4aad4b=_0x4b86e5,_0x525197=[];this['_saveTaskMap'][_0x4aad4b(0x31f)]((_0x57ae19,_0x35f61f)=>{const _0x252c47=_0x4aad4b;window[_0x252c47(0x249)](_0x57ae19),_0x525197[_0x252c47(0x29b)](this[_0x252c47(0xfa)](_0x35f61f)['then'](()=>{const _0x39203d=_0x252c47;this['_saveTaskMap'][_0x39203d(0x1b5)](_0x35f61f);}));}),await Promise[_0x4aad4b(0xfc)](_0x525197);}};ge=Kt([_e(0x0,a[_0x4b86e5(0x2e6)]),_e(0x1,a[_0x4b86e5(0x14b)]),_e(0x2,a[_0x4b86e5(0x15b)](m['RevisionService']))],ge);class je extends a[_0x4b86e5(0x303)]{constructor(){const _0x5cf313=_0x4b86e5;super(),h(this,_0x5cf313(0x14d)),this['urlChange$']=d['fromEvent'](window,_0x5cf313(0x22d))[_0x5cf313(0xff)](d[_0x5cf313(0x24b)](this[_0x5cf313(0x2a5)]),d[_0x5cf313(0x1fe)](0x1),d[_0x5cf313(0x123)](void 0x0));}[_0x4b86e5(0x30e)](_0x2aa3b8,_0x32a28c,_0x344d62=!0x1){const _0x5c2543=_0x4b86e5,_0x1c0cbe=new URL(window[_0x5c2543(0x1db)][_0x5c2543(0x2ee)]);_0x1c0cbe['searchParams'][_0x5c2543(0x276)](_0x2aa3b8,_0x32a28c),_0x344d62?window[_0x5c2543(0x290)]['replaceState']('','',_0x1c0cbe[_0x5c2543(0x10a)]()):window[_0x5c2543(0x290)][_0x5c2543(0x25c)]('','',_0x1c0cbe[_0x5c2543(0x10a)]());}[_0x4b86e5(0x19c)](_0x142eb6,_0x1abb3e=!0x1){const _0x179637=_0x4b86e5,_0x2fcbce=new URL(window[_0x179637(0x1db)]['href']);_0x2fcbce[_0x179637(0x2d9)][_0x179637(0x1b5)](_0x142eb6),_0x1abb3e?window[_0x179637(0x290)][_0x179637(0x29d)]('','',_0x2fcbce[_0x179637(0x10a)]()):window[_0x179637(0x290)]['pushState']('','',_0x2fcbce['toString']());}[_0x4b86e5(0x12d)](_0x1c5d16){const _0x55a0d0=_0x4b86e5;var _0x2e78c5;return(_0x2e78c5=new URL(window[_0x55a0d0(0x1db)][_0x55a0d0(0x2ee)])[_0x55a0d0(0x2d9)]['get'](_0x1c5d16))!=null?_0x2e78c5:void 0x0;}}var qt=Object[_0x4b86e5(0x2e4)],zt=Object[_0x4b86e5(0x220)],Jt=(_0x22fa5d,_0x5f4b1f,_0xa02900)=>_0x5f4b1f in _0x22fa5d?qt(_0x22fa5d,_0x5f4b1f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa02900}):_0x22fa5d[_0x5f4b1f]=_0xa02900,Zt=(_0x17f1c7,_0x1a3c21,_0x486b39,_0x224197)=>{const _0x49941=_0x4b86e5;for(var _0x395c52=_0x224197>0x1?void 0x0:_0x224197?zt(_0x1a3c21,_0x486b39):_0x1a3c21,_0x7d0249=_0x17f1c7[_0x49941(0x214)]-0x1,_0x85a40b;_0x7d0249>=0x0;_0x7d0249--)(_0x85a40b=_0x17f1c7[_0x7d0249])&&(_0x395c52=_0x85a40b(_0x395c52)||_0x395c52);return _0x395c52;},he=(_0x5cd9a6,_0x459b22)=>(_0x5df3fa,_0x22b75f)=>_0x459b22(_0x5df3fa,_0x22b75f,_0x5cd9a6),Qt=(_0x1c4034,_0x51312c,_0xbdc7c8)=>Jt(_0x1c4034,_0x51312c+'',_0xbdc7c8);const es=_0x4b86e5(0x28f);exports[_0x4b86e5(0x13a)]=class extends a[_0x4b86e5(0x176)]{constructor(_0x17c586=Ue,_0x21710e,_0x21b5be,_0x5185b4){const _0x1abcfc=_0x4b86e5;super(),this[_0x1abcfc(0x2f6)]=_0x17c586,this[_0x1abcfc(0x297)]=_0x21710e,this[_0x1abcfc(0xde)]=_0x21b5be,this[_0x1abcfc(0x31d)]=_0x5185b4;const {..._0x39dc20}=a['merge']({},Ue,this[_0x1abcfc(0x2f6)]);this['_configService'][_0x1abcfc(0x23e)]($t,_0x39dc20);}['onStarting'](){const _0xde1a94=_0x4b86e5;this[_0xde1a94(0x2b1)](),this[_0xde1a94(0x162)]();}[_0x4b86e5(0x333)](){const _0x5dcde9=_0x4b86e5;this[_0x5dcde9(0x210)]();}[_0x4b86e5(0x2b1)](){const _0x25f08f=_0x4b86e5;var _0x5d556e;const _0x12fbec=[[me],[Z],[z],[J],[Ce],[be,{'useClass':je}],[G[_0x25f08f(0x18b)],{'useClass':G[_0x25f08f(0x1c3)]}],[u[_0x25f08f(0x1fd)],{'useClass':ge}],[exports[_0x25f08f(0x274)]],[Q],[q],[x],[de],[exports['CollaborationDataLoaderController']]];a['registerDependencies'](this['_injector'],a['mergeOverrideWithDependencies'](_0x12fbec,(_0x5d556e=this[_0x25f08f(0x2f6)])==null?void 0x0:_0x5d556e[_0x25f08f(0x107)]));}[_0x4b86e5(0x210)](){const _0x3eed99=_0x4b86e5;this[_0x3eed99(0x240)](this[_0x3eed99(0x297)][_0x3eed99(0x150)](a[_0x3eed99(0x306)]['UNIVER_DOC'],[Ie])),this['disposeWithMe'](this[_0x3eed99(0x297)][_0x3eed99(0x150)](a[_0x3eed99(0x306)][_0x3eed99(0x207)],[ve]));}[_0x4b86e5(0x162)](){const _0x5be4b3=_0x4b86e5;a[_0x5be4b3(0x1ba)](this[_0x5be4b3(0xde)],[[x],[exports[_0x5be4b3(0x274)]],[Q],[q],[exports['CollaborationDataLoaderController']]]);}},Qt(exports[_0x4b86e5(0x13a)],_0x4b86e5(0x15f),es),exports['UniverCollaborationClientUIPlugin']=Zt([a['DependentOn'](u['UniverCollaborationClientPlugin']),he(0x1,p[_0x4b86e5(0x1c1)]),he(0x2,a[_0x4b86e5(0x15b)](a['Injector'])),he(0x3,a[_0x4b86e5(0x2e6)])],exports['UniverCollaborationClientUIPlugin']);var ts=Object['getOwnPropertyDescriptor'],ss=(_0x2446b2,_0x8eb785,_0x501584,_0xd2c85e)=>{const _0x4b48af=_0x4b86e5;for(var _0x18524f=_0xd2c85e>0x1?void 0x0:_0xd2c85e?ts(_0x8eb785,_0x501584):_0x8eb785,_0x2c6f7d=_0x2446b2[_0x4b48af(0x214)]-0x1,_0x2c555a;_0x2c6f7d>=0x0;_0x2c6f7d--)(_0x2c555a=_0x2446b2[_0x2c6f7d])&&(_0x18524f=_0x2c555a(_0x18524f)||_0x18524f);return _0x18524f;},F=(_0x1366cf,_0x1e0c27)=>(_0x1b311c,_0x49915b)=>_0x1e0c27(_0x1b311c,_0x49915b,_0x1366cf);exports[_0x4b86e5(0x295)]=class extends u['CollaborationSocketService']{constructor(_0x15d368,_0x163254,_0x3b8f99,_0x969118,_0x213cac){super(_0x15d368,_0x163254,_0x3b8f99,_0x969118,_0x213cac);}async[_0x4b86e5(0x2c9)](_0x389383){const _0x2c2fe1=_0x4b86e5,_0x3cff92=await this[_0x2c2fe1(0x191)](),_0x39171a=this['_createSocketURL'](_0x389383,_0x3cff92);return this[_0x2c2fe1(0x149)](_0x39171a);}[_0x4b86e5(0x234)](_0x21e01f,_0x20050e){const _0x5e31ca=_0x4b86e5,_0x45ec89=typeof window>'u'?new URL(_0x21e01f):new URL(_0x21e01f,window[_0x5e31ca(0x1db)][_0x5e31ca(0xe4)]);_0x45ec89['searchParams'][_0x5e31ca(0x276)](_0x5e31ca(0x292),_0x20050e);const _0x1f3661=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x5e31ca(0x1db)]['search']);return _0x1f3661[_0x5e31ca(0x2e2)](_0x5e31ca(0x2b8))&&_0x45ec89[_0x5e31ca(0x2d9)][_0x5e31ca(0x276)]('runId',_0x1f3661[_0x5e31ca(0x2e2)](_0x5e31ca(0x2b8))),_0x45ec89[_0x5e31ca(0x10a)]();}async[_0x4b86e5(0x191)](){const _0x2c2c31=_0x4b86e5;var _0x3107b0,_0x22d171,_0x3f73b2;const _0x268209=this[_0x2c2c31(0x31d)][_0x2c2c31(0x1e5)](u[_0x2c2c31(0x27d)]),_0x493510=(_0x3107b0=_0x268209==null?void 0x0:_0x268209[_0x2c2c31(0xf6)])!=null?_0x3107b0:u['DEFAULT_WS_SESSION_TICKET_URL'];return(_0x3f73b2=(_0x22d171=(await this[_0x2c2c31(0x1eb)][_0x2c2c31(0x2e2)](_0x493510,{'headers':{'Content-Type':'application/json'}}))[_0x2c2c31(0x11b)])==null?void 0x0:_0x22d171[_0x2c2c31(0x322)])!=null?_0x3f73b2:'';}},exports[_0x4b86e5(0x295)]=ss([F(0x0,a[_0x4b86e5(0x15b)](a[_0x4b86e5(0x183)])),F(0x1,a[_0x4b86e5(0x15b)](G[_0x4b86e5(0xd4)])),F(0x2,a['IConfigService']),F(0x3,a[_0x4b86e5(0x139)]),F(0x4,m[_0x4b86e5(0xc4)])],exports[_0x4b86e5(0x295)]);const Me=0x7530,Le=_0x4b86e5(0x136);class is extends a[_0x4b86e5(0x1b8)]{constructor(){const _0x49775c=_0x4b86e5;super(),h(this,_0x49775c(0xd2),a[_0x49775c(0x160)]()),h(this,_0x49775c(0x16e),new Set()),h(this,_0x49775c(0x254),new Map()),h(this,_0x49775c(0x17d),null),h(this,'_clearOtherTimers',new Map()),h(this,_0x49775c(0xd0),new Map()),this[_0x49775c(0x1f3)]();}[_0x4b86e5(0x161)](){const _0x1575da=_0x4b86e5;super[_0x1575da(0x161)](),this['_clearOtherTimers'][_0x1575da(0x31f)]((_0x1a8db4,_0x41b7ac)=>this[_0x1575da(0x147)](_0x41b7ac)),this[_0x1575da(0x17d)]&&window[_0x1575da(0x12c)](this[_0x1575da(0x17d)]);}[_0x4b86e5(0x30b)](_0x4fb1b2){const _0x3aff98=_0x4b86e5;return this[_0x3aff98(0x1c2)](_0x4fb1b2)[_0x3aff98(0xff)](d[_0x3aff98(0xdf)]());}[_0x4b86e5(0x1c9)](_0x39fc5d){const _0x3a5b00=_0x4b86e5;this[_0x3a5b00(0x16e)][_0x3a5b00(0xc7)]===0x0&&this[_0x3a5b00(0x1f4)](),this[_0x3a5b00(0x16e)][_0x3a5b00(0x1c7)](_0x39fc5d),this[_0x3a5b00(0x14e)]({'type':0x0,'memberID':this[_0x3a5b00(0xd2)],'unitIDs':[_0x39fc5d],'isForwarded':!0x1});}[_0x4b86e5(0xf3)](_0x1fe442){const _0x29e8ae=_0x4b86e5;this[_0x29e8ae(0x16e)][_0x29e8ae(0x1b5)](_0x1fe442),this['_selfUnitIDs']['size']===0x0&&this[_0x29e8ae(0x17d)]&&window[_0x29e8ae(0x12c)](this[_0x29e8ae(0x17d)]);}['_init'](){const _0x3e24eb=_0x4b86e5;this[_0x3e24eb(0x240)](a['toDisposable'](d[_0x3e24eb(0x2a0)](window,_0x3e24eb(0x323))['subscribe'](_0x1e1bd7=>{const _0x499eea=_0x3e24eb;if(_0x1e1bd7[_0x499eea(0x1f6)]!==Le||!_0x1e1bd7[_0x499eea(0xfd)])return;const _0x5d6b53=JSON[_0x499eea(0xdd)](_0x1e1bd7[_0x499eea(0xfd)]);this[_0x499eea(0xca)](_0x5d6b53);}))),window[_0x3e24eb(0x110)](_0x3e24eb(0x1f1),()=>this[_0x3e24eb(0x14e)]({'type':0x1,'memberID':this[_0x3e24eb(0xd2)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x4b86e5(0xca)](_0x50798f){const _0x4afddd=_0x4b86e5;switch(_0x50798f[_0x4afddd(0xfe)]){case 0x0:this[_0x4afddd(0x18d)](_0x50798f);break;case 0x1:this['_handleLeaveEvent'](_0x50798f);break;case 0x2:this['_handleHeartbeatEvent'](_0x50798f);break;}}[_0x4b86e5(0x18d)](_0x55f29f){const _0x30dc34=_0x4b86e5,{unitIDs:_0x3d1573,memberID:_0x234185,isForwarded:_0x40f238}=_0x55f29f;_0x3d1573[_0x30dc34(0x31f)](_0x41be8f=>{const _0x14db56=_0x30dc34;if(!_0x40f238&&this[_0x14db56(0x254)][_0x14db56(0x135)](_0x41be8f)&&this[_0x14db56(0x1c2)](_0x41be8f)[_0x14db56(0x2f4)](u['UnitStatus'][_0x14db56(0x17a)]),!this['_unitOnClients'][_0x14db56(0x135)](_0x41be8f)||!this['_unitOnClients'][_0x14db56(0x2e2)](_0x41be8f)[_0x14db56(0x135)](_0x234185)){const _0x6b0f7b=this[_0x14db56(0x254)]['get'](_0x41be8f)||new Set();_0x6b0f7b['add'](_0x234185),this[_0x14db56(0x254)][_0x14db56(0x276)](_0x41be8f,_0x6b0f7b),this[_0x14db56(0x171)](_0x234185);}}),_0x40f238||this[_0x30dc34(0x14e)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x30dc34(0x16e)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x299d4d){const _0x3f6d0a=_0x4b86e5;this['_removeClearOtherTimer'](_0x299d4d);const _0x402e96=window[_0x3f6d0a(0x230)](()=>{this['_unitOnClients']['forEach'](_0x3252d6=>{_0x3252d6['delete'](_0x299d4d);});},Me*0x2);this[_0x3f6d0a(0x2c8)]['set'](_0x299d4d,_0x402e96);}[_0x4b86e5(0x147)](_0x4c03cb){const _0x5e7faa=_0x4b86e5;if(this[_0x5e7faa(0x2c8)]['has'](_0x4c03cb)){const _0x178516=this[_0x5e7faa(0x2c8)]['get'](_0x4c03cb);_0x178516&&window['clearTimeout'](_0x178516),this[_0x5e7faa(0x2c8)][_0x5e7faa(0x276)](_0x4c03cb,null);}}['_handleLeaveEvent'](_0x2ed61e){const _0x2226ec=_0x4b86e5,{memberID:_0x2a00f8,unitIDs:_0x5f3998}=_0x2ed61e;_0x5f3998[_0x2226ec(0x31f)](_0x2cd490=>{const _0x424b9a=_0x2226ec;var _0xe4871a;const _0x328c76=this[_0x424b9a(0x254)][_0x424b9a(0x2e2)](_0x2cd490);_0x328c76&&(_0x328c76['delete'](_0x2a00f8),(_0xe4871a=this[_0x424b9a(0x1c2)](_0x2cd490))==null||_0xe4871a['next'](_0x328c76[_0x424b9a(0xc7)]===0x0?u['UnitStatus']['NO_OTHER_CLIENTS_EDITING']:u[_0x424b9a(0xb7)][_0x424b9a(0x17a)]));}),this[_0x2226ec(0x147)](_0x2a00f8);}[_0x4b86e5(0x16f)](_0x3aded5){const _0xa135f3=_0x4b86e5;this[_0xa135f3(0x171)](_0x3aded5[_0xa135f3(0x279)]);}[_0x4b86e5(0x14e)](_0x2964b8){const _0x505aca=_0x4b86e5;localStorage['setItem'](Le,JSON[_0x505aca(0x1f8)](_0x2964b8));}[_0x4b86e5(0x1f4)](){const _0x361d32=_0x4b86e5;this[_0x361d32(0x17d)]=window[_0x361d32(0x216)](()=>{const _0xbc23fa=_0x361d32;this[_0xbc23fa(0x14e)]({'type':0x2,'memberID':this[_0xbc23fa(0xd2)]});},Me);}[_0x4b86e5(0x1c2)](_0x5a0b5c){const _0x9e41cf=_0x4b86e5;return this[_0x9e41cf(0xd0)][_0x9e41cf(0x135)](_0x5a0b5c)||this[_0x9e41cf(0xd0)][_0x9e41cf(0x276)](_0x5a0b5c,new d[(_0x9e41cf(0x23b))](u['UnitStatus']['NO_OTHER_CLIENTS_EDITING'])),this[_0x9e41cf(0xd0)][_0x9e41cf(0x2e2)](_0x5a0b5c);}}var Be=(_0x17ea03=>(_0x17ea03[_0x17ea03[_0x4b86e5(0xc6)]=0x0]=_0x4b86e5(0xc6),_0x17ea03[_0x17ea03['OK']=0x1]='OK',_0x17ea03[_0x17ea03['INTERNAL_ERROR']=0x2]=_0x4b86e5(0x349),_0x17ea03[_0x17ea03[_0x4b86e5(0x184)]=0x3]=_0x4b86e5(0x184),_0x17ea03[_0x17ea03[_0x4b86e5(0x1e3)]=0x4]=_0x4b86e5(0x1e3),_0x17ea03[_0x17ea03[_0x4b86e5(0x2ef)]=0x5]=_0x4b86e5(0x2ef),_0x17ea03[_0x17ea03[_0x4b86e5(0x1f5)]=0x6]=_0x4b86e5(0x1f5),_0x17ea03[_0x17ea03[_0x4b86e5(0x30c)]=0x7]=_0x4b86e5(0x30c),_0x17ea03[_0x17ea03[_0x4b86e5(0x23f)]=0x8]=_0x4b86e5(0x23f),_0x17ea03[_0x17ea03[_0x4b86e5(0x173)]=0x9]=_0x4b86e5(0x173),_0x17ea03[_0x17ea03[_0x4b86e5(0x17b)]=0xa]=_0x4b86e5(0x17b),_0x17ea03[_0x17ea03['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x4b86e5(0x1d9),_0x17ea03[_0x17ea03['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x4b86e5(0xf5),_0x17ea03[_0x17ea03['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x4b86e5(0x1d3),_0x17ea03[_0x17ea03[_0x4b86e5(0x2b5)]=0x1773]=_0x4b86e5(0x2b5),_0x17ea03[_0x17ea03[_0x4b86e5(0x2e8)]=0x1b59]=_0x4b86e5(0x2e8),_0x17ea03[_0x17ea03[_0x4b86e5(0xe8)]=0x1b5a]=_0x4b86e5(0xe8),_0x17ea03[_0x17ea03[_0x4b86e5(0x275)]=0x1b5b]=_0x4b86e5(0x275),_0x17ea03[_0x17ea03[_0x4b86e5(0x194)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x17ea03[_0x17ea03['APPLY_DUPLICATED']=0x1b5d]='APPLY_DUPLICATED',_0x17ea03[_0x17ea03[_0x4b86e5(0x1ca)]=0x1f41]=_0x4b86e5(0x1ca),_0x17ea03[_0x17ea03['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x4b86e5(0x31c),_0x17ea03[_0x17ea03[_0x4b86e5(0x201)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x17ea03[_0x17ea03[_0x4b86e5(0x1aa)]=0x232b]=_0x4b86e5(0x1aa),_0x17ea03[_0x17ea03[_0x4b86e5(0xb3)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x17ea03[_0x17ea03[_0x4b86e5(0x2b9)]=0x232d]=_0x4b86e5(0x2b9),_0x17ea03[_0x17ea03[_0x4b86e5(0x1e1)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x17ea03[_0x17ea03[_0x4b86e5(0xb4)]=0x2712]=_0x4b86e5(0xb4),_0x17ea03[_0x17ea03[_0x4b86e5(0xbd)]=0x2713]=_0x4b86e5(0xbd),_0x17ea03[_0x17ea03['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x17ea03[_0x17ea03[_0x4b86e5(0x330)]=0x271a]=_0x4b86e5(0x330),_0x17ea03[_0x17ea03['YUUMI_ASYNCIO_CANCELLED']=0x271b]=_0x4b86e5(0x271),_0x17ea03[_0x17ea03['YUUMI_TABLE_NOT_FOUND_IN_UNIT']=0x271c]=_0x4b86e5(0x28a),_0x17ea03[_0x17ea03[_0x4b86e5(0x315)]=0x271d]=_0x4b86e5(0x315),_0x17ea03[_0x17ea03[_0x4b86e5(0xd9)]=0x271e]=_0x4b86e5(0xd9),_0x17ea03[_0x17ea03['YUUMI_AI_RUN_FAILED']=0x271f]='YUUMI_AI_RUN_FAILED',_0x17ea03[_0x17ea03[_0x4b86e5(0x30d)]=0x2af9]=_0x4b86e5(0x30d),_0x17ea03[_0x17ea03['INVITE_CODE_HAS_BEEN_UES']=0x2ee1]=_0x4b86e5(0x20c),_0x17ea03[_0x17ea03[_0x4b86e5(0x224)]=0x2ee2]=_0x4b86e5(0x224),_0x17ea03[_0x17ea03[_0x4b86e5(0x312)]=0x2ee3]=_0x4b86e5(0x312),_0x17ea03[_0x17ea03[_0x4b86e5(0x339)]=0x2ee4]=_0x4b86e5(0x339),_0x17ea03[_0x17ea03['INVITE_CODE_ALREADY_BOUND']=0x2ee5]='INVITE_CODE_ALREADY_BOUND',_0x17ea03[_0x17ea03[_0x4b86e5(0x287)]=0x32c9]='WECHAT_HAS_BEEN_BOUND',_0x17ea03[_0x17ea03[_0x4b86e5(0xd1)]=0x32ca]=_0x4b86e5(0xd1),_0x17ea03[_0x17ea03['EMAIL_HAS_BEEN_BOUND']=0x32cb]=_0x4b86e5(0xc5),_0x17ea03[_0x17ea03[_0x4b86e5(0x116)]=-0x1]=_0x4b86e5(0x116),_0x17ea03))(Be||{}),ns=Object[_0x4b86e5(0x220)],rs=(_0x2b44da,_0x5a1f23,_0x26d79d,_0x435205)=>{const _0x5a8477=_0x4b86e5;for(var _0x273ea7=_0x435205>0x1?void 0x0:_0x435205?ns(_0x5a1f23,_0x26d79d):_0x5a1f23,_0x1abe98=_0x2b44da[_0x5a8477(0x214)]-0x1,_0x5ae722;_0x1abe98>=0x0;_0x1abe98--)(_0x5ae722=_0x2b44da[_0x1abe98])&&(_0x273ea7=_0x5ae722(_0x273ea7)||_0x273ea7);return _0x273ea7;},ue=(_0x4daffa,_0x3366d7)=>(_0x361182,_0x4a2a77)=>_0x3366d7(_0x361182,_0x4a2a77,_0x4daffa);exports[_0x4b86e5(0x2b6)]=class extends a[_0x4b86e5(0x1b8)]{constructor(_0x3dbed9,_0x749b14,_0x9ac66a){const _0x7c12b4=_0x4b86e5;super(),this[_0x7c12b4(0x251)]=_0x3dbed9,this[_0x7c12b4(0x1eb)]=_0x749b14,this[_0x7c12b4(0x31d)]=_0x9ac66a;}async['runOnServer'](_0x283dc8,_0x5abc9e,_0x2a2297,..._0x1b5be8){const _0x158edc=_0x4b86e5;var _0x3f3f2a,_0x367df2,_0x1e3d85,_0x1d1db7;const _0x4b8a69=this[_0x158edc(0x251)]['getFocusedUnit']();if(!_0x4b8a69)throw new Error('[RemoteUniscriptService]:\x20no\x20focused\x20unit');const _0x2b73af=((_0x3f3f2a=this['_configService'][_0x158edc(0x1e5)](u[_0x158edc(0x331)]))!=null?_0x3f3f2a:u[_0x158edc(0x24a)])+'/'+_0x283dc8+_0x158edc(0x15d)+_0x5abc9e,_0x58c895=new URL(window[_0x158edc(0x1db)][_0x158edc(0x2ee)]),_0x4477f5={'scriptId':_0x283dc8,'runId':(_0x367df2=_0x58c895[_0x158edc(0x2d9)][_0x158edc(0x2e2)](_0x158edc(0x2b8)))!=null?_0x367df2:'','function':_0x5abc9e,'unitId':_0x4b8a69[_0x158edc(0x334)](),'argsOfFunction':JSON[_0x158edc(0x1f8)](_0x1b5be8),'invokeId':(_0x1e3d85=_0x2a2297[_0x158edc(0x1bf)])!=null?_0x1e3d85:'','executionId':(_0x1d1db7=_0x2a2297['executionId'])!=null?_0x1d1db7:''};try{const _0x2e4e22=await this[_0x158edc(0x1eb)][_0x158edc(0x2ea)](_0x2b73af,{'body':_0x4477f5});return _0x2e4e22[_0x158edc(0x11b)][_0x158edc(0x338)]&&_0x2e4e22[_0x158edc(0x11b)][_0x158edc(0x338)][_0x158edc(0xbb)]!==Be['OK']?_0x158edc(0x167):_0x2e4e22[_0x158edc(0x11b)]['result'];}catch{return'Failed';}}},exports[_0x4b86e5(0x2b6)]=rs([ue(0x0,a[_0x4b86e5(0x114)]),ue(0x1,a[_0x4b86e5(0x15b)](G[_0x4b86e5(0xd4)])),ue(0x2,a[_0x4b86e5(0x2e6)])],exports[_0x4b86e5(0x2b6)]),exports[_0x4b86e5(0x1f7)]=xe,exports[_0x4b86e5(0x1bc)]=be,exports[_0x4b86e5(0x206)]=Pe,exports['WebBrowserSingleActiveUnitService']=is,exports[_0x4b86e5(0x13c)]=je;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x58bb(){const _0x370fd0=['426362DgiNAY','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','9RWzojo','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','1457853BqHJKs','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','exports','Syncing\x20server\x20data...','Authentication\x20Error','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','23257760xzlmxY','5954255zzOKrY','232oMldDH','1068608yjruOe','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Click\x20to\x20Reconnect','5LsUgKe','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Edit\x20conflicts','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','1663290NVERvN','Local\x20file','305011DItYqm','Collaboration\x20Conflict'];_0x58bb=function(){return _0x370fd0;};return _0x58bb();}const _0xbb893c=_0x3e59;(function(_0x51fffe,_0x585a13){const _0xca7be4=_0x3e59,_0x5d84b9=_0x51fffe();while(!![]){try{const _0x3e0b69=-parseInt(_0xca7be4(0x158))/0x1*(parseInt(_0xca7be4(0x148))/0x2)+-parseInt(_0xca7be4(0x14c))/0x3+parseInt(_0xca7be4(0x155))/0x4+-parseInt(_0xca7be4(0x153))/0x5+-parseInt(_0xca7be4(0x144))/0x6+-parseInt(_0xca7be4(0x146))/0x7*(-parseInt(_0xca7be4(0x154))/0x8)+parseInt(_0xca7be4(0x14a))/0x9*(parseInt(_0xca7be4(0x152))/0xa);if(_0x3e0b69===_0x585a13)break;else _0x5d84b9['push'](_0x5d84b9['shift']());}catch(_0x4a8007){_0x5d84b9['push'](_0x5d84b9['shift']());}}}(_0x58bb,0xcc40f));function _0x3e59(_0x1ca4b7,_0x5c16b5){const _0x58bbd5=_0x58bb();return _0x3e59=function(_0x3e59e8,_0x1c9264){_0x3e59e8=_0x3e59e8-0x144;let _0x5eddf0=_0x58bbd5[_0x3e59e8];return _0x5eddf0;},_0x3e59(_0x1ca4b7,_0x5c16b5);}const e={'collab-client':{'tooltip':{'reconnect':_0xbb893c(0x157)}},'collabStatus':{'fetchMiss':_0xbb893c(0x14f),'conflict':_0xbb893c(0x15a),'notCollab':_0xbb893c(0x145),'synced':'Synced','syncing':'Syncing...','offline':_0xbb893c(0x14b)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0xbb893c(0x159),'room-full':_0xbb893c(0x15b),'collaboration-timeout':_0xbb893c(0x14d)},'conflict':{'title':_0xbb893c(0x147),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0xbb893c(0x150),'content':_0xbb893c(0x15c)},'collaboration':{'single-unit':{'warning':_0xbb893c(0x156)},'closeRoom':_0xbb893c(0x149)},'auth':{'needGotoLoginAlert':_0xbb893c(0x151)}};module[_0xbb893c(0x14e)]=e;
|