@univerjs-pro/live-share 0.8.0-nightly.202506021607 → 0.8.0-nightly.202506041607

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/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x16c1aa=_0x5beb;(function(_0x4a87d8,_0x51f0af){var _0x5a53f9=_0x5beb,_0x3a3500=_0x4a87d8();while(!![]){try{var _0x226df7=parseInt(_0x5a53f9(0x18b))/0x1+parseInt(_0x5a53f9(0x165))/0x2*(-parseInt(_0x5a53f9(0x108))/0x3)+-parseInt(_0x5a53f9(0x133))/0x4*(parseInt(_0x5a53f9(0x153))/0x5)+-parseInt(_0x5a53f9(0x195))/0x6+-parseInt(_0x5a53f9(0x18e))/0x7+parseInt(_0x5a53f9(0x11d))/0x8+parseInt(_0x5a53f9(0x1b5))/0x9;if(_0x226df7===_0x51f0af)break;else _0x3a3500['push'](_0x3a3500['shift']());}catch(_0x194fc8){_0x3a3500['push'](_0x3a3500['shift']());}}}(_0x3004,0xcba10));var U=Object[_0x16c1aa(0x138)],F=(_0x5ee747,_0x46e6d7,_0x16a73a)=>_0x46e6d7 in _0x5ee747?U(_0x5ee747,_0x46e6d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16a73a}):_0x5ee747[_0x46e6d7]=_0x16a73a,v=(_0x4b8e1a,_0x3a5114,_0x324066)=>F(_0x4b8e1a,typeof _0x3a5114!=_0x16c1aa(0x18f)?_0x3a5114+'':_0x3a5114,_0x324066);Object[_0x16c1aa(0x138)](exports,Symbol[_0x16c1aa(0x1a4)],{'value':_0x16c1aa(0x116)});const m=require(_0x16c1aa(0x170)),o=require(_0x16c1aa(0x1a3)),C=require(_0x16c1aa(0x147)),w=require(_0x16c1aa(0x10e)),p=require(_0x16c1aa(0x162)),l=require(_0x16c1aa(0x1ca)),g=require('@univerjs/design'),f=require('react'),_=require(_0x16c1aa(0x14c)),D=require(_0x16c1aa(0x13d)),b=require('rxjs/operators'),$=_0x16c1aa(0x1b6),x={};class O extends o['Disposable']{constructor(){var _0x570ed6=_0x16c1aa;super(...arguments),v(this,_0x570ed6(0x12c),new Set()),v(this,'_reporters',new Set());}[_0x16c1aa(0x160)](_0x4d00c6){var _0x609f88=_0x16c1aa;return this[_0x609f88(0x12c)][_0x609f88(0x163)](_0x4d00c6),o[_0x609f88(0x176)](()=>this[_0x609f88(0x12c)][_0x609f88(0x152)](_0x4d00c6));}[_0x16c1aa(0x14b)](_0x402eac){var _0x569401=_0x16c1aa;return this[_0x569401(0x1c1)]['add'](_0x402eac),o[_0x569401(0x176)](()=>this[_0x569401(0x1c1)][_0x569401(0x152)](_0x402eac));}[_0x16c1aa(0x126)](_0xea54aa){var _0x48e352=_0x16c1aa;return this[_0x48e352(0x12c)]['has'](_0xea54aa);}['getInitialStates'](_0x138357){var _0x25d9ab=_0x16c1aa;return Array[_0x25d9ab(0x1cd)](this[_0x25d9ab(0x1c1)])[_0x25d9ab(0x185)](_0x4c4148=>_0x4c4148(_0x138357));}}var H=Object[_0x16c1aa(0x1a0)],V=(_0x4fed14,_0x41abe2,_0x3a4535,_0x317219)=>{var _0x1046b2=_0x16c1aa;for(var _0x549656=_0x317219>0x1?void 0x0:_0x317219?H(_0x41abe2,_0x3a4535):_0x41abe2,_0x4beb46=_0x4fed14[_0x1046b2(0x18a)]-0x1,_0x1d721f;_0x4beb46>=0x0;_0x4beb46--)(_0x1d721f=_0x4fed14[_0x4beb46])&&(_0x549656=_0x1d721f(_0x549656)||_0x549656);return _0x549656;},k=(_0x6e7733,_0x3856e6)=>(_0x3df690,_0x1d0116)=>_0x3856e6(_0x3df690,_0x1d0116,_0x6e7733);let E=class extends o[_0x16c1aa(0x102)]{constructor(_0x346f10){var _0x1b58d9=_0x16c1aa;super(),this[_0x1b58d9(0x156)]=_0x346f10,this[_0x1b58d9(0x1bd)]();}[_0x16c1aa(0x1bd)](){var _0x128f48=_0x16c1aa;[w['SetZoomRatioOperation']['id'],w[_0x128f48(0x16d)]['id'],C[_0x128f48(0x1be)]['id']]['forEach'](_0x2e7384=>{var _0x2bbb73=_0x128f48;this[_0x2bbb73(0x132)](this['_liveShareService'][_0x2bbb73(0x160)](_0x2e7384));});}};E=V([k(0x0,o[_0x16c1aa(0x16c)](O))],E);var u=function(){return u=Object['assign']||function(_0x4e16ae){var _0x54f5fe=_0x5beb;for(var _0x2cb019,_0x555b18=0x1,_0x2baa1e=arguments[_0x54f5fe(0x18a)];_0x555b18<_0x2baa1e;_0x555b18++){_0x2cb019=arguments[_0x555b18];for(var _0x15baa0 in _0x2cb019)Object[_0x54f5fe(0x1a9)][_0x54f5fe(0x13b)][_0x54f5fe(0x12f)](_0x2cb019,_0x15baa0)&&(_0x4e16ae[_0x15baa0]=_0x2cb019[_0x15baa0]);}return _0x4e16ae;},u['apply'](this,arguments);},M=function(_0x297db1,_0xb1eaf9){var _0x2dc167=_0x16c1aa,_0x11044d={};for(var _0x55d9de in _0x297db1)Object[_0x2dc167(0x1a9)][_0x2dc167(0x13b)][_0x2dc167(0x12f)](_0x297db1,_0x55d9de)&&_0xb1eaf9[_0x2dc167(0x1d5)](_0x55d9de)<0x0&&(_0x11044d[_0x55d9de]=_0x297db1[_0x55d9de]);if(_0x297db1!=null&&typeof Object[_0x2dc167(0x1cf)]==_0x2dc167(0x199)){for(var _0x1238d0=0x0,_0x55d9de=Object[_0x2dc167(0x1cf)](_0x297db1);_0x1238d0<_0x55d9de[_0x2dc167(0x18a)];_0x1238d0++)_0xb1eaf9[_0x2dc167(0x1d5)](_0x55d9de[_0x1238d0])<0x0&&Object[_0x2dc167(0x1a9)]['propertyIsEnumerable'][_0x2dc167(0x12f)](_0x297db1,_0x55d9de[_0x1238d0])&&(_0x11044d[_0x55d9de[_0x1238d0]]=_0x297db1[_0x55d9de[_0x1238d0]]);}return _0x11044d;},j=f['forwardRef'](function(_0x50f7f8,_0x18ee39){var _0xb0d90b=_0x16c1aa,_0x1697f8=_0x50f7f8['icon'],_0xf54448=_0x50f7f8['id'],_0x4663ac=_0x50f7f8[_0xb0d90b(0x18c)],_0xe58704=_0x50f7f8[_0xb0d90b(0x106)],_0x3e3805=M(_0x50f7f8,[_0xb0d90b(0x115),'id',_0xb0d90b(0x18c),_0xb0d90b(0x106)]),_0x15a3e1=_0xb0d90b(0x197)[_0xb0d90b(0x101)](_0xf54448,'\x20')['concat'](_0x4663ac||'')['trim'](),_0x26fa12=f[_0xb0d90b(0x140)]('_'['concat'](G()));return y(_0x1697f8,''[_0xb0d90b(0x101)](_0xf54448),{'defIds':_0x1697f8[_0xb0d90b(0x105)],'idSuffix':_0x26fa12['current']},u({'ref':_0x18ee39,'className':_0x15a3e1},_0x3e3805),_0xe58704);});function y(_0x3a4522,_0x2e5ceb,_0x709541,_0xa5e58f,_0x3e1db8){var _0x10d8dd=_0x16c1aa;return f[_0x10d8dd(0x157)](_0x3a4522[_0x10d8dd(0x10c)],u(u({'key':_0x2e5ceb},q(_0x3a4522,_0x709541,_0x3e1db8)),_0xa5e58f),(W(_0x3a4522,_0x709541)[_0x10d8dd(0x192)]||[])[_0x10d8dd(0x185)](function(_0x3d433c,_0x2ae7d8){var _0x13ef9f=_0x10d8dd;return y(_0x3d433c,''[_0x13ef9f(0x101)](_0x2e5ceb,'-')[_0x13ef9f(0x101)](_0x3a4522[_0x13ef9f(0x10c)],'-')['concat'](_0x2ae7d8),_0x709541,void 0x0,_0x3e1db8);}));}function q(_0x395ba9,_0x4f9295,_0x1110c0){var _0x462201=_0x16c1aa,_0x87f585=u({},_0x395ba9['attrs']);_0x1110c0!=null&&_0x1110c0[_0x462201(0x135)]&&_0x87f585['fill']===_0x462201(0x135)&&(_0x87f585[_0x462201(0x168)]=_0x1110c0['colorChannel1']),_0x395ba9[_0x462201(0x10c)]==='mask'&&_0x87f585['id']&&(_0x87f585['id']=_0x87f585['id']+_0x4f9295['idSuffix']),Object[_0x462201(0x1c9)](_0x87f585)[_0x462201(0x16f)](function(_0x51a107){var _0x617f0c=_0x462201,_0x2c0321=_0x51a107[0x0],_0x3998c3=_0x51a107[0x1];_0x2c0321===_0x617f0c(0x13c)&&typeof _0x3998c3==_0x617f0c(0x190)&&(_0x87f585[_0x2c0321]=_0x3998c3[_0x617f0c(0x125)](/url\(#(.*)\)/,_0x617f0c(0x13a)[_0x617f0c(0x101)](_0x4f9295[_0x617f0c(0xfb)],')')));});var _0x50ba85=_0x4f9295[_0x462201(0x105)];return!_0x50ba85||_0x50ba85[_0x462201(0x18a)]===0x0||(_0x395ba9[_0x462201(0x10c)]===_0x462201(0x1c8)&&_0x87f585[_0x462201(0x1a1)]&&(_0x87f585[_0x462201(0x1a1)]=_0x87f585[_0x462201(0x1a1)]+_0x4f9295[_0x462201(0xfb)]),Object['entries'](_0x87f585)[_0x462201(0x16f)](function(_0x188544){var _0x229ec0=_0x462201,_0x154fcf=_0x188544[0x0],_0x310382=_0x188544[0x1];typeof _0x310382==_0x229ec0(0x190)&&(_0x87f585[_0x154fcf]=_0x310382[_0x229ec0(0x125)](/url\(#(.*)\)/,_0x229ec0(0x13a)[_0x229ec0(0x101)](_0x4f9295[_0x229ec0(0xfb)],')')));})),_0x87f585;}function W(_0x7624f3,_0x2077b5){var _0x3ab1f4=_0x16c1aa,_0x3b86d9,_0x5689a2=_0x2077b5[_0x3ab1f4(0x105)];return!_0x5689a2||_0x5689a2['length']===0x0?_0x7624f3:_0x7624f3[_0x3ab1f4(0x10c)]===_0x3ab1f4(0xf9)&&(!((_0x3b86d9=_0x7624f3['children'])===null||_0x3b86d9===void 0x0)&&_0x3b86d9[_0x3ab1f4(0x18a)])?u(u({},_0x7624f3),{'children':_0x7624f3[_0x3ab1f4(0x192)][_0x3ab1f4(0x185)](function(_0x61b8f2){var _0x260bb1=_0x3ab1f4;return typeof _0x61b8f2[_0x260bb1(0x10a)]['id']==_0x260bb1(0x190)&&_0x5689a2&&_0x5689a2['includes'](_0x61b8f2[_0x260bb1(0x10a)]['id'])?u(u({},_0x61b8f2),{'attrs':u(u({},_0x61b8f2[_0x260bb1(0x10a)]),{'id':_0x61b8f2[_0x260bb1(0x10a)]['id']+_0x2077b5[_0x260bb1(0xfb)]})}):_0x61b8f2;})}):_0x7624f3;}function G(){var _0x470758=_0x16c1aa;return Math[_0x470758(0x154)]()['toString'](0x24)[_0x470758(0x103)](0x2,0x8);}j[_0x16c1aa(0x1cb)]=_0x16c1aa(0x151);var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x16c1aa(0x16a),'viewBox':_0x16c1aa(0x166),'width':_0x16c1aa(0x139),'height':_0x16c1aa(0x139)},'children':[{'tag':_0x16c1aa(0x122),'attrs':{'fill':_0x16c1aa(0x114),'d':_0x16c1aa(0x1ad)}},{'tag':_0x16c1aa(0x122),'attrs':{'fill':'currentColor','d':_0x16c1aa(0x11b),'fillRule':_0x16c1aa(0x12a),'clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0x311564,_0x123a48){var _0x5a65d7=_0x16c1aa;return f[_0x5a65d7(0x157)](j,Object[_0x5a65d7(0x189)]({},_0x311564,{'id':_0x5a65d7(0x121),'ref':_0x123a48,'icon':B}));});P[_0x16c1aa(0x1cb)]=_0x16c1aa(0x174);var Y=Object[_0x16c1aa(0x1a0)],R=(_0x33cb4e,_0x5d0c10,_0x5aa168,_0x52e535)=>{var _0x8e7215=_0x16c1aa;for(var _0x314d61=_0x52e535>0x1?void 0x0:_0x52e535?Y(_0x5d0c10,_0x5aa168):_0x5d0c10,_0x3a566c=_0x33cb4e[_0x8e7215(0x18a)]-0x1,_0xa80090;_0x3a566c>=0x0;_0x3a566c--)(_0xa80090=_0x33cb4e[_0x3a566c])&&(_0x314d61=_0xa80090(_0x314d61)||_0x314d61);return _0x314d61;},S=(_0x3a5cc3,_0x279562)=>(_0x1d858c,_0x5c5d0b)=>_0x279562(_0x1d858c,_0x5c5d0b,_0x3a5cc3);exports[_0x16c1aa(0x173)]=class extends o[_0x16c1aa(0x1d4)]{constructor(_0x176674,_0x498114,_0x11777e){var _0x242485=_0x16c1aa;super(),v(this,_0x242485(0x112),new Map()),(this[_0x242485(0x183)]=_0x176674,this[_0x242485(0x15a)]=_0x498114,this[_0x242485(0x180)]=_0x11777e,this[_0x242485(0x1bd)]());}async['getLiveShareCoordinator'](_0x1247b4){var _0x505ec4=_0x16c1aa;return this[_0x505ec4(0x112)]['has'](_0x1247b4)||await this[_0x505ec4(0x1b8)](_0x1247b4),this[_0x505ec4(0x112)][_0x505ec4(0x1a2)](_0x1247b4);}[_0x16c1aa(0x1bd)](){var _0x87a729=_0x16c1aa;this['_univerInstanceService'][_0x87a729(0x111)](o[_0x87a729(0xf6)][_0x87a729(0x130)])['pipe'](b['takeUntil'](this[_0x87a729(0x19f)]))['subscribe'](async _0xdad77=>{var _0x4681b4=_0x87a729;const _0x5491af=_0xdad77['getUnitId']();this['_entities'][_0x4681b4(0x14f)](_0x5491af)||this[_0x4681b4(0x1b8)](_0x5491af);}),this['_univerInstanceService'][_0x87a729(0x17e)](o[_0x87a729(0xf6)][_0x87a729(0x130)])[_0x87a729(0x1a6)](b[_0x87a729(0xfd)](this['dispose$']))[_0x87a729(0x161)](_0xe48594=>{var _0x4cb1c5=_0x87a729;const _0x5ca626=_0xe48594[_0x4cb1c5(0x11c)](),_0x4d256e=this[_0x4cb1c5(0x112)][_0x4cb1c5(0x1a2)](_0x5ca626);_0x4d256e==null||_0x4d256e[_0x4cb1c5(0x1ac)]();});}async[_0x16c1aa(0x1b8)](_0x2edd46){var _0x3021ff=_0x16c1aa;const _0x3685e8=await this['_collabSessionService'][_0x3021ff(0x1db)](_0x2edd46),_0x12caf2=this['_injector'][_0x3021ff(0x127)](exports[_0x3021ff(0x1de)],_0x2edd46,_0x3685e8);return _0x12caf2[_0x3021ff(0x120)](),this[_0x3021ff(0x112)][_0x3021ff(0x1b4)](_0x2edd46,_0x12caf2),_0x12caf2;}},exports[_0x16c1aa(0x173)]=R([S(0x0,o[_0x16c1aa(0x15c)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o[_0x16c1aa(0x16c)](m['CollaborationSessionService']))],exports[_0x16c1aa(0x173)]);function _0x5beb(_0x360eaf,_0x2e71d8){var _0x30042e=_0x3004();return _0x5beb=function(_0x5bebab,_0x12068e){_0x5bebab=_0x5bebab-0xf6;var _0x589e89=_0x30042e[_0x5bebab];return _0x589e89;},_0x5beb(_0x360eaf,_0x2e71d8);}var h=(_0x46bc23=>(_0x46bc23[_0x16c1aa(0x17d)]='offline',_0x46bc23[_0x16c1aa(0x1bb)]='idle',_0x46bc23[_0x16c1aa(0x13f)]=_0x16c1aa(0x142),_0x46bc23['NOT_FOLLOWING']=_0x16c1aa(0xf8),_0x46bc23['PRESENTING']=_0x16c1aa(0x129),_0x46bc23))(h||{});const Z=_0x16c1aa(0x113),J=0xc8;exports[_0x16c1aa(0x1de)]=class extends o[_0x16c1aa(0x1d4)]{constructor(_0x73e1c7,_0x13f46c,_0x53211d,_0x5304cf,_0x4f6ab1){var _0x2f9c52=_0x16c1aa;super(),v(this,'_status$',new D[(_0x2f9c52(0x17a))](_0x2f9c52(0x167))),v(this,_0x2f9c52(0x1d3),this[_0x2f9c52(0x10d)][_0x2f9c52(0x1da)]()),v(this,_0x2f9c52(0x1bd),!0x1),v(this,_0x2f9c52(0x1cc),null),v(this,_0x2f9c52(0x136),null),(this[_0x2f9c52(0x1d7)]=_0x73e1c7,this[_0x2f9c52(0x187)]=_0x13f46c,this[_0x2f9c52(0x11e)]=_0x53211d,this[_0x2f9c52(0x156)]=_0x5304cf,this[_0x2f9c52(0x143)]=_0x4f6ab1);}get[_0x16c1aa(0x172)](){var _0x4c6ab1=_0x16c1aa;return this[_0x4c6ab1(0x10d)][_0x4c6ab1(0x1d6)]();}[_0x16c1aa(0x1ac)](){var _0x21cfb4=_0x16c1aa,_0x398830;(_0x398830=this['_commandDisposable'])==null||_0x398830['dispose'](),this[_0x21cfb4(0x10d)]['next'](_0x21cfb4(0x167)),this[_0x21cfb4(0x10d)][_0x21cfb4(0x1b3)]();}[_0x16c1aa(0x120)](){var _0x348822=_0x16c1aa;this[_0x348822(0x1bd)]||(this[_0x348822(0x1bd)]=!0x0,this['_collabSession'][_0x348822(0x1bf)][_0x348822(0x1a6)](b[_0x348822(0xfd)](this[_0x348822(0x19f)]))['subscribe'](_0x2c8ea7=>{var _0x5b593e=_0x348822;switch(_0x2c8ea7){case m[_0x5b593e(0x17c)][_0x5b593e(0x17d)]:this['_handleOffline']();break;case m[_0x5b593e(0x17c)][_0x5b593e(0x1ce)]:this[_0x5b593e(0x14e)]();break;}}),this['_collabSession']['event$'][_0x348822(0x1a6)](b['takeUntil'](this[_0x348822(0x19f)]))[_0x348822(0x161)](_0x3c288a=>{var _0x516861=_0x348822;const {eventID:_0x310254}=_0x3c288a;switch(_0x310254){case _['CollaborationEvent'][_0x516861(0x104)]:this[_0x516861(0x1d0)](_0x3c288a);break;case _[_0x516861(0x175)][_0x516861(0x155)]:this[_0x516861(0xff)](_0x3c288a);break;case _['CollaborationEvent'][_0x516861(0x137)]:this[_0x516861(0x1dc)]();break;case _[_0x516861(0x175)][_0x516861(0x19a)]:this[_0x516861(0x15d)](_0x3c288a);break;}}));}[_0x16c1aa(0x169)](){var _0x4178a6=_0x16c1aa;this[_0x4178a6(0x187)][_0x4178a6(0x141)]({'eventID':_[_0x4178a6(0x175)][_0x4178a6(0x100)],'data':{'unitID':this[_0x4178a6(0x1d7)],'userID':this[_0x4178a6(0x187)][_0x4178a6(0x158)]()}},this[_0x4178a6(0x1d7)]);}[_0x16c1aa(0x1d8)](){var _0x5c30be=_0x16c1aa;this['_status']===_0x5c30be(0x129)&&(this[_0x5c30be(0x10d)][_0x5c30be(0x1c0)](_0x5c30be(0x167)),this[_0x5c30be(0x187)][_0x5c30be(0x141)]({'eventID':_[_0x5c30be(0x175)][_0x5c30be(0x137)],'data':{'unitID':this[_0x5c30be(0x1d7)]}},this[_0x5c30be(0x1d7)]));}[_0x16c1aa(0x14a)](){var _0x2fddcd=_0x16c1aa;this[_0x2fddcd(0x172)]===_0x2fddcd(0xf8)&&(this[_0x2fddcd(0x10d)][_0x2fddcd(0x1c0)](_0x2fddcd(0x142)),this['_startFollowing']());}[_0x16c1aa(0x1ae)](){var _0x41fca3=_0x16c1aa;this[_0x41fca3(0x172)]==='following'&&this[_0x41fca3(0x149)]();}[_0x16c1aa(0x1d0)](_0x439dee){var _0x153dbe=_0x16c1aa;const {presenter:_0x2a675f}=_0x439dee[_0x153dbe(0x1b9)],_0x153616=this['_collabSession'][_0x153dbe(0x158)]();this[_0x153dbe(0x136)]=_0x2a675f,_0x2a675f===_0x153616?(this[_0x153dbe(0x149)](),this['_startPresenting']()):this[_0x153dbe(0x172)]!==_0x153dbe(0xf8)&&(this[_0x153dbe(0x10f)](),this['_startFollowing']());}[_0x16c1aa(0x198)](){var _0x434887=_0x16c1aa;const _0x5e7a36={'eventID':_['CollaborationEvent'][_0x434887(0x123)]};this['_collabSession']['send'](_0x5e7a36,this[_0x434887(0x1d7)]);}['_handleTerminate'](){var _0x557ef0=_0x16c1aa;this['_presenter']=null,this[_0x557ef0(0x172)]!==_0x557ef0(0x129)&&this[_0x557ef0(0x186)]();}[_0x16c1aa(0x15d)](_0x1f5b74){var _0x59b9ad=_0x16c1aa;if(this[_0x59b9ad(0x172)]===_0x59b9ad(0x142)&&this[_0x59b9ad(0x136)]===_0x1f5b74['data'][_0x59b9ad(0x13e)]){const _0x47ba8d=_['parseProtocolChangeset'](_0x1f5b74[_0x59b9ad(0x1b9)])['mutations'][_0x59b9ad(0xfe)]()['find'](_0x4166c1=>_0x4166c1['id']===C[_0x59b9ad(0x159)]['id']);if(_0x47ba8d){const _0x172864=_0x47ba8d['params'][_0x59b9ad(0x194)],_0x4eedb4=_0x47ba8d[_0x59b9ad(0x19e)][_0x59b9ad(0xf7)]['id'];setTimeout(()=>{var _0xe50581=_0x59b9ad;this[_0xe50581(0x143)]['executeCommand'](C[_0xe50581(0x1be)]['id'],{'unitId':_0x172864,'subUnitId':_0x4eedb4},{'fromCollab':!0x0});});}}}[_0x16c1aa(0x17b)](){var _0x128e0d=_0x16c1aa;this[_0x128e0d(0x10d)][_0x128e0d(0x1c0)]('presenting');const _0x35358c=new Map(),_0x549f9c=this['_commandDisposable']=new o[(_0x128e0d(0x148))]();_0x549f9c[_0x128e0d(0x163)](o[_0x128e0d(0x176)](()=>{_0x35358c['forEach'](_0x43d744=>_0x43d744['complete']()),_0x35358c['clear']();})),_0x549f9c[_0x128e0d(0x163)](this[_0x128e0d(0x143)][_0x128e0d(0x19b)](_0xc48b06=>{var _0x2c4f87=_0x128e0d,_0xfd771b;if(_0xc48b06[_0x2c4f87(0x110)]!==o['CommandType'][_0x2c4f87(0x12d)]||!this[_0x2c4f87(0x156)][_0x2c4f87(0x126)](_0xc48b06['id']))return;const {id:_0x586bda}=_0xc48b06;let _0xa786f4;_0x35358c[_0x2c4f87(0x14f)](_0x586bda)?_0xa786f4=_0x35358c[_0x2c4f87(0x1a2)](_0x586bda):(_0xa786f4=new D[(_0x2c4f87(0x1c3))](),_0x35358c[_0x2c4f87(0x1b4)](_0x586bda,_0xa786f4),_0xa786f4[_0x2c4f87(0x1a6)](b['throttleTime']((_0xfd771b=this['_configService'][_0x2c4f87(0x15b)](Z))!=null?_0xfd771b:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c4f87(0x161)](_0x3ed84d=>{var _0x4c8f8a=_0x2c4f87;this[_0x4c8f8a(0x187)][_0x4c8f8a(0x141)]({'eventID':_[_0x4c8f8a(0x175)][_0x4c8f8a(0x155)],'data':{'unitID':this[_0x4c8f8a(0x1d7)],'operations':{[_0x3ed84d['id']]:{'id':_0x3ed84d['id'],'params':JSON['stringify'](_0x3ed84d[_0x4c8f8a(0x19e)])}}}},this[_0x4c8f8a(0x1d7)]);})),_0xa786f4['next'](_0xc48b06);})),this[_0x128e0d(0x156)]['getInitialStates'](this['_unitID'])['forEach'](_0x534f55=>this[_0x128e0d(0x187)][_0x128e0d(0x141)]({'eventID':_[_0x128e0d(0x175)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x128e0d(0x1d7)],'operations':{[_0x534f55['id']]:{'id':_0x534f55['id'],'params':JSON['stringify'](_0x534f55[_0x128e0d(0x19e)])}}}},this[_0x128e0d(0x1d7)]));}[_0x16c1aa(0x10f)](){var _0x69f25b=_0x16c1aa,_0x22f32f;this[_0x69f25b(0x10d)][_0x69f25b(0x1c0)]('idle'),(_0x22f32f=this[_0x69f25b(0x1cc)])==null||_0x22f32f[_0x69f25b(0x1ac)](),this[_0x69f25b(0x1cc)]=null;}[_0x16c1aa(0x146)](){var _0xed9051=_0x16c1aa,_0x30aead;(_0x30aead=this[_0xed9051(0x1cc)])==null||_0x30aead[_0xed9051(0x1ac)](),this[_0xed9051(0x10d)][_0xed9051(0x1c0)](_0xed9051(0x142));}[_0x16c1aa(0x186)](){var _0x582382=_0x16c1aa,_0x1679e8;this['_status$'][_0x582382(0x1c0)](_0x582382(0x167)),(_0x1679e8=this[_0x582382(0x1cc)])==null||_0x1679e8[_0x582382(0x1ac)](),this[_0x582382(0x1cc)]=null;}[_0x16c1aa(0x149)](){var _0x1ea9cd=_0x16c1aa,_0x51f403;this[_0x1ea9cd(0x10d)]['next'](_0x1ea9cd(0xf8)),(_0x51f403=this[_0x1ea9cd(0x1cc)])==null||_0x51f403['dispose']();}[_0x16c1aa(0xff)](_0x5ad338){var _0x44e509=_0x16c1aa;if([_0x44e509(0x129),_0x44e509(0xf8),_0x44e509(0x1d2)][_0x44e509(0x134)](this[_0x44e509(0x172)])||!_0x5ad338[_0x44e509(0x1b9)][_0x44e509(0x17f)]||_0x5ad338[_0x44e509(0x1b9)][_0x44e509(0x17f)]===this[_0x44e509(0x187)][_0x44e509(0x158)]())return;this[_0x44e509(0x172)]===_0x44e509(0x167)&&this[_0x44e509(0x146)]();const _0xa4a4c0=_0x5ad338['data'][_0x44e509(0x181)];Object[_0x44e509(0x182)](_0xa4a4c0)[_0x44e509(0x16f)](_0x3fd540=>{var _0x30d563=_0x44e509;this[_0x30d563(0x143)]['executeCommand'](_0x3fd540['id'],_0x3fd540[_0x30d563(0x19e)]?JSON[_0x30d563(0x19c)](_0x3fd540[_0x30d563(0x19e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x462721=_0x16c1aa,_0x2b539b;this[_0x462721(0x10d)][_0x462721(0x1c0)](_0x462721(0x1d2)),(_0x2b539b=this[_0x462721(0x1cc)])==null||_0x2b539b[_0x462721(0x1ac)]();}[_0x16c1aa(0x14e)](){var _0x68b44b=_0x16c1aa;this['_status$']['next'](_0x68b44b(0x167)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=R([S(0x2,o['IConfigService']),S(0x3,o[_0x16c1aa(0x16c)](O)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x3f6f9a=_0x16c1aa;const _0x3655e8=p[_0x3f6f9a(0x16b)](exports[_0x3f6f9a(0x173)]),_0x3b4430=p[_0x3f6f9a(0x16b)](o[_0x3f6f9a(0x15c)]),_0x3a2418=p[_0x3f6f9a(0x144)](()=>_0x3b4430['getCurrentTypeOfUnit$'](o[_0x3f6f9a(0xf6)][_0x3f6f9a(0x130)]),void 0x0,!0x1,[]),[_0x363e51,_0x1201f5]=f['useState'](null),[_0x329846,_0x553b77]=f[_0x3f6f9a(0x12b)](h[_0x3f6f9a(0x1bb)]),_0x2dfe42=f['useRef'](null);return f[_0x3f6f9a(0x118)](()=>(_0x3a2418&&_0x3655e8[_0x3f6f9a(0x1a8)](_0x3a2418['getUnitId']())[_0x3f6f9a(0x1b0)](_0x39dff1=>{var _0x469c53=_0x3f6f9a;_0x1201f5(_0x39dff1),_0x2dfe42['current']=_0x39dff1[_0x469c53(0x1d3)][_0x469c53(0x161)](_0x1b4835=>{_0x553b77(_0x1b4835);});}),()=>{var _0x330b86=_0x3f6f9a,_0x4fc6e4;(_0x4fc6e4=_0x2dfe42[_0x330b86(0x1c6)])==null||_0x4fc6e4[_0x330b86(0x19d)](),_0x2dfe42[_0x330b86(0x1c6)]=null;}),[_0x3a2418,_0x3655e8]),_0x363e51?l['jsx'](g['Dropdown'],{'align':'end','disabled':_0x329846===h[_0x3f6f9a(0x17d)],'className':_0x3f6f9a(0x18d),'overlay':l[_0x3f6f9a(0x107)](K,{'status':_0x329846,'coordinator':_0x363e51}),'children':l[_0x3f6f9a(0x107)](_0x3f6f9a(0x11a),{'className':g[_0x3f6f9a(0x1c7)](_0x3f6f9a(0x177),{'univer-cursor-not-allowed':_0x329846===h[_0x3f6f9a(0x17d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x329846!==h[_0x3f6f9a(0x17d)]}),'type':_0x3f6f9a(0x11a),'children':l['jsx'](P,{'className':_0x3f6f9a(0x15e)})})}):null;}function K(_0x58a183){var _0x2c5e64=_0x16c1aa;const {status:_0x329112,coordinator:_0x25f5a9}=_0x58a183;switch(_0x329112){case h[_0x2c5e64(0x1bb)]:return l[_0x2c5e64(0x107)](z,{'coordinator':_0x25f5a9});case h[_0x2c5e64(0x13f)]:return l[_0x2c5e64(0x107)](Q,{'coordinator':_0x25f5a9});case h[_0x2c5e64(0x131)]:return l[_0x2c5e64(0x107)](X,{'coordinator':_0x25f5a9});case h[_0x2c5e64(0x17d)]:return l[_0x2c5e64(0x107)](te,{});case h[_0x2c5e64(0x124)]:return l[_0x2c5e64(0x107)](ee,{'coordinator':_0x25f5a9});default:return null;}}function z(_0x1bcd2a){var _0xcb0efb=_0x16c1aa;const {coordinator:_0x2063f8}=_0x1bcd2a;return l[_0xcb0efb(0x119)](l[_0xcb0efb(0x15f)],{'children':[l[_0xcb0efb(0x107)](_0xcb0efb(0x1b1),{'className':_0xcb0efb(0x171),'children':_0xcb0efb(0x191)}),l['jsx'](g['Button'],{'onClick':()=>_0x2063f8[_0xcb0efb(0x169)](),'children':'Start'})]});}function Q(_0x6502a9){var _0x23de5f=_0x16c1aa;const {coordinator:_0x5c395e}=_0x6502a9;return l['jsxs'](l[_0x23de5f(0x15f)],{'children':[l['jsx'](_0x23de5f(0x1b1),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x23de5f(0x178)}),l['jsx'](g[_0x23de5f(0x117)],{'onClick':()=>_0x5c395e[_0x23de5f(0x1ae)](),'children':_0x23de5f(0x1dd)})]});}function X(_0x8cb16d){var _0x1de488=_0x16c1aa;const {coordinator:_0x1c1da0}=_0x8cb16d;return l['jsxs'](l[_0x1de488(0x15f)],{'children':[l[_0x1de488(0x107)]('div',{'className':_0x1de488(0x171),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x1de488(0x107)](g['Button'],{'variant':_0x1de488(0x150),'onClick':()=>_0x1c1da0[_0x1de488(0x14a)](),'children':_0x1de488(0x188)})]});}function ee(_0x3634d8){var _0x1218d0=_0x16c1aa;const {coordinator:_0x327b85}=_0x3634d8;return l['jsxs'](l[_0x1218d0(0x15f)],{'children':[l[_0x1218d0(0x107)](_0x1218d0(0x1b1),{'className':_0x1218d0(0x171),'children':_0x1218d0(0x196)}),l[_0x1218d0(0x107)](g[_0x1218d0(0x117)],{'variant':_0x1218d0(0x179),'onClick':()=>_0x327b85[_0x1218d0(0x1d8)](),'children':_0x1218d0(0x1ba)})]});}function te(){var _0x15a7cd=_0x16c1aa;return l[_0x15a7cd(0x107)](l[_0x15a7cd(0x15f)],{'children':_0x15a7cd(0x12e)});}var ie=Object[_0x16c1aa(0x1a0)],ne=(_0x1465b2,_0x43e839,_0x13e9bf,_0x1c8da1)=>{var _0x21f9d4=_0x16c1aa;for(var _0x58e470=_0x1c8da1>0x1?void 0x0:_0x1c8da1?ie(_0x43e839,_0x13e9bf):_0x43e839,_0x1770ba=_0x1465b2[_0x21f9d4(0x18a)]-0x1,_0x2e66f5;_0x1770ba>=0x0;_0x1770ba--)(_0x2e66f5=_0x1465b2[_0x1770ba])&&(_0x58e470=_0x2e66f5(_0x58e470)||_0x58e470);return _0x58e470;},L=(_0x168bc3,_0x5b008d)=>(_0x515e2a,_0x233697)=>_0x5b008d(_0x515e2a,_0x233697,_0x168bc3);function _0x3004(){var _0x45fffc=['DisposableCollection','_stopFollowing','startFollowing','registerInitialStateReporter','@univerjs-pro/collaboration','DesktopLiveShareController','_handleOnline','has','text','UniverIcon','delete','370ZBKpvj','random','LIVESHARE_OPERATION','_liveShareService','createElement','getMemberID','InsertSheetMutation','_injector','getConfig','IUniverInstanceService','_handleNewChangeSets','univer-size-4','Fragment','registerSharedOperation','subscribe','@univerjs/ui','add','UniverCollaborationClientPlugin','258510nKqkPk','0\x200\x2017\x2017','idle','fill','tryStartPresenting','none','useDependency','Inject','SetScrollOperation','setConfig','forEach','@univerjs-pro/collaboration-client','univer-w-full\x20univer-mb-3\x20univer-text-sm','_status','LiveShareController','LiveShareIcon','CollaborationEvent','toDisposable','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','You\x27re\x20following\x20the\x20presenter','default','BehaviorSubject','_startPresenting','SessionStatus','OFFLINE','getTypeOfUnitDisposed$','presenter','_collabSessionService','operations','values','_univerInstanceService','BuiltInUIPart','map','_beIdle','_collabSession','Start\x20following','assign','length','564552ConlFY','className','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','3008628bEVPpL','symbol','string','Present\x20this\x20document','children','onRendered','unitId','8321880fkJGOU','You\x27re\x20presenting\x20the\x20document','univerjs-icon\x20univerjs-icon-','_fetchOperations','function','NEW_CHANGESETS','onCommandExecuted','parse','unsubscribe','params','dispose$','getOwnPropertyDescriptor','xlink:href','get','@univerjs/core','toStringTag','onStarting','pipe','pluginName','getLiveShareCoordinator','prototype','connectInjector','_mountLiveShare','dispose','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','stopFollowing','IConfigService','then','div','touchDependencies','complete','set','22972005jHmzqk','live-share.config','_config','_startLiveShareCoordinator','data','Stop\x20presenting','IDLE','LiveShareStatus','_init','SetWorksheetActiveOperation','sessionStatus$','next','_reporters','Plugin','Subject','UNIVER_LIVE_SHARE_PLUGIN','registerComponent','current','clsx','use','entries','react/jsx-runtime','displayName','_commandDisposable','from','ONLINE','getOwnPropertySymbols','_handleNewHost','UNIVER_UNKNOWN','offline','status$','RxDisposable','indexOf','getValue','_unitID','stopPresenting','override','asObservable','requireSession','_handleTerminate','Stop\x20following','LiveShareCoordinator','UniverInstanceType','sheet','not-following','defs','registerDependencies','idSuffix','UniverLiveSharePlugin','takeUntil','reverse','_handleOperation','LIVESHARE_REQUEST_HOST','concat','Disposable','substring','LIVESHARE_NEW_HOST','defIds','extend','jsx','6GTpCIy','HEADER_MENU','attrs','Injector','tag','_status$','@univerjs/sheets-ui','_stopPresenting','type','getTypeOfUnitAdded$','_entities','SAME_OPERATION_SHARE_INTERVAL','currentColor','icon','Module','Button','useEffect','jsxs','button','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','getUnitId','3859880nRHAqy','_configService','LiveShareService','init','live-share-icon','path','LIVESHARE_FETCH_OPERATIONS','PRESENTING','replace','shouldShareOperation','createInstance','_uiPartsService','presenting','evenodd','useState','_sharedOperations','OPERATION','You\x27are\x20offline.','call','UNIVER_SHEET','NOT_FOLLOWING','disposeWithMe','37304cIOKdj','includes','colorChannel1','_presenter','LIVESHARE_TERMINATE','defineProperty','1em','url(#$1','hasOwnProperty','mask','rxjs','memberID','FOLLOWING','useRef','send','following','_commandService','useObservable','merge','_startFollowing','@univerjs/sheets'];_0x3004=function(){return _0x45fffc;};return _0x3004();}exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x3874e8,_0x1b7d1d){var _0x5e9500=_0x16c1aa;super(),this[_0x5e9500(0x15a)]=_0x3874e8,this[_0x5e9500(0x128)]=_0x1b7d1d,this[_0x5e9500(0x1ab)]();}[_0x16c1aa(0x1ab)](){var _0x1789ff=_0x16c1aa;this['disposeWithMe'](this['_uiPartsService'][_0x1789ff(0x1c5)](p[_0x1789ff(0x184)][_0x1789ff(0x109)],()=>p[_0x1789ff(0x1aa)](A,this[_0x1789ff(0x15a)])));}},exports[_0x16c1aa(0x14d)]=ne([L(0x0,o['Inject'](o['Injector'])),L(0x1,p['IUIPartsService'])],exports[_0x16c1aa(0x14d)]);var re=Object[_0x16c1aa(0x138)],se=Object[_0x16c1aa(0x1a0)],oe=(_0x526fed,_0x2b5005,_0x4d7c1e)=>_0x2b5005 in _0x526fed?re(_0x526fed,_0x2b5005,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d7c1e}):_0x526fed[_0x2b5005]=_0x4d7c1e,ae=(_0x46efd8,_0x1f35ab,_0x305572,_0x433dae)=>{var _0xd8d371=_0x16c1aa;for(var _0x58c465=_0x433dae>0x1?void 0x0:_0x433dae?se(_0x1f35ab,_0x305572):_0x1f35ab,_0x14a100=_0x46efd8[_0xd8d371(0x18a)]-0x1,_0x3605e1;_0x14a100>=0x0;_0x14a100--)(_0x3605e1=_0x46efd8[_0x14a100])&&(_0x58c465=_0x3605e1(_0x58c465)||_0x58c465);return _0x58c465;},N=(_0x1f8dda,_0x8b7021)=>(_0x33369d,_0x33d6fd)=>_0x8b7021(_0x33369d,_0x33d6fd,_0x1f8dda),T=(_0x1915a6,_0x267eb7,_0x4916df)=>oe(_0x1915a6,typeof _0x267eb7!='symbol'?_0x267eb7+'':_0x267eb7,_0x4916df);const le=_0x16c1aa(0x1c4);exports['UniverLiveSharePlugin']=class extends o[_0x16c1aa(0x1c2)]{constructor(_0x43f03a=x,_0x1e1ac0,_0xb2ab10){var _0x5954a7=_0x16c1aa;super(),this[_0x5954a7(0x1b7)]=_0x43f03a,this[_0x5954a7(0x15a)]=_0x1e1ac0,this['_configService']=_0xb2ab10;const {..._0x4af444}=o[_0x5954a7(0x145)]({},x,this[_0x5954a7(0x1b7)]);this[_0x5954a7(0x11e)][_0x5954a7(0x16e)]($,_0x4af444);}[_0x16c1aa(0x1a5)](){var _0x349eb7=_0x16c1aa;o[_0x349eb7(0xfa)](this['_injector'],o['mergeOverrideWithDependencies']([[O],[exports[_0x349eb7(0x173)]],[E],[exports['DesktopLiveShareController']]],this[_0x349eb7(0x1b7)][_0x349eb7(0x1d9)])),o[_0x349eb7(0x1b2)](this[_0x349eb7(0x15a)],[[E]]);}[_0x16c1aa(0x193)](){var _0x42fe50=_0x16c1aa;o['touchDependencies'](this[_0x42fe50(0x15a)],[[exports[_0x42fe50(0x14d)]]]);}},T(exports[_0x16c1aa(0xfc)],'type',o[_0x16c1aa(0xf6)][_0x16c1aa(0x1d1)]),T(exports[_0x16c1aa(0xfc)],_0x16c1aa(0x1a7),le),exports[_0x16c1aa(0xfc)]=ae([o['DependentOn'](m[_0x16c1aa(0x164)]),N(0x1,o[_0x16c1aa(0x16c)](o[_0x16c1aa(0x10b)])),N(0x2,o[_0x16c1aa(0x1af)])],exports[_0x16c1aa(0xfc)]),exports['LiveShare']=A,exports[_0x16c1aa(0x11f)]=O,exports[_0x16c1aa(0x1bc)]=h;
1
+ 'use strict';var _0x4af0c9=_0x46d3;(function(_0x39ac92,_0x593ae1){var _0x424d22=_0x46d3,_0x3f5df3=_0x39ac92();while(!![]){try{var _0x287b37=-parseInt(_0x424d22(0x103))/0x1+-parseInt(_0x424d22(0xea))/0x2*(-parseInt(_0x424d22(0x18e))/0x3)+-parseInt(_0x424d22(0xef))/0x4*(parseInt(_0x424d22(0x146))/0x5)+-parseInt(_0x424d22(0x114))/0x6*(parseInt(_0x424d22(0xca))/0x7)+-parseInt(_0x424d22(0x18a))/0x8*(parseInt(_0x424d22(0x115))/0x9)+parseInt(_0x424d22(0xcc))/0xa+-parseInt(_0x424d22(0xdb))/0xb*(-parseInt(_0x424d22(0xc5))/0xc);if(_0x287b37===_0x593ae1)break;else _0x3f5df3['push'](_0x3f5df3['shift']());}catch(_0x591052){_0x3f5df3['push'](_0x3f5df3['shift']());}}}(_0x245e,0xdde17));var U=Object[_0x4af0c9(0x148)],F=(_0xedd788,_0x49cc50,_0x5bad20)=>_0x49cc50 in _0xedd788?U(_0xedd788,_0x49cc50,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bad20}):_0xedd788[_0x49cc50]=_0x5bad20,v=(_0x53bfd5,_0x104ec2,_0x80a753)=>F(_0x53bfd5,typeof _0x104ec2!='symbol'?_0x104ec2+'':_0x104ec2,_0x80a753);Object[_0x4af0c9(0x148)](exports,Symbol[_0x4af0c9(0x154)],{'value':_0x4af0c9(0x199)});const m=require(_0x4af0c9(0x191)),o=require(_0x4af0c9(0x179)),C=require('@univerjs/sheets'),w=require(_0x4af0c9(0xcb)),p=require(_0x4af0c9(0x189)),l=require('react/jsx-runtime'),g=require(_0x4af0c9(0x177)),f=require(_0x4af0c9(0x153)),_=require(_0x4af0c9(0x17f)),D=require('rxjs'),b=require(_0x4af0c9(0x164)),$=_0x4af0c9(0x196),x={};class O extends o[_0x4af0c9(0x13f)]{constructor(){var _0x4fbf94=_0x4af0c9;super(...arguments),v(this,_0x4fbf94(0x17e),new Set()),v(this,_0x4fbf94(0x16f),new Set());}['registerSharedOperation'](_0x563e56){var _0x18ef71=_0x4af0c9;return this['_sharedOperations'][_0x18ef71(0xc1)](_0x563e56),o[_0x18ef71(0x11f)](()=>this[_0x18ef71(0x17e)][_0x18ef71(0x11b)](_0x563e56));}[_0x4af0c9(0xfe)](_0x4fdcff){var _0x410011=_0x4af0c9;return this[_0x410011(0x16f)][_0x410011(0xc1)](_0x4fdcff),o[_0x410011(0x11f)](()=>this[_0x410011(0x16f)][_0x410011(0x11b)](_0x4fdcff));}[_0x4af0c9(0x151)](_0x474ac2){var _0xa4d9f=_0x4af0c9;return this[_0xa4d9f(0x17e)][_0xa4d9f(0xf4)](_0x474ac2);}[_0x4af0c9(0x188)](_0x54ee93){var _0x26211a=_0x4af0c9;return Array[_0x26211a(0x184)](this[_0x26211a(0x16f)])[_0x26211a(0x16a)](_0x3a565e=>_0x3a565e(_0x54ee93));}}var H=Object[_0x4af0c9(0x150)],V=(_0x3671a9,_0x3a920e,_0x3c34bc,_0x446118)=>{var _0x462207=_0x4af0c9;for(var _0x4b4df6=_0x446118>0x1?void 0x0:_0x446118?H(_0x3a920e,_0x3c34bc):_0x3a920e,_0x1c3117=_0x3671a9[_0x462207(0x14a)]-0x1,_0x3ca648;_0x1c3117>=0x0;_0x1c3117--)(_0x3ca648=_0x3671a9[_0x1c3117])&&(_0x4b4df6=_0x3ca648(_0x4b4df6)||_0x4b4df6);return _0x4b4df6;},k=(_0x22cd75,_0x30e3d4)=>(_0x597871,_0x15e35a)=>_0x30e3d4(_0x597871,_0x15e35a,_0x22cd75);let E=class extends o[_0x4af0c9(0x13f)]{constructor(_0x31315d){var _0x2323c2=_0x4af0c9;super(),this[_0x2323c2(0x194)]=_0x31315d,this['_init']();}[_0x4af0c9(0xe4)](){var _0x496cb8=_0x4af0c9;[w[_0x496cb8(0xc4)]['id'],w['SetScrollOperation']['id'],C[_0x496cb8(0xce)]['id']][_0x496cb8(0x152)](_0x3f5b53=>{var _0x182b9a=_0x496cb8;this['disposeWithMe'](this[_0x182b9a(0x194)][_0x182b9a(0xd8)](_0x3f5b53));});}};E=V([k(0x0,o[_0x4af0c9(0x168)](O))],E);var u=function(){var _0x431f4d=_0x4af0c9;return u=Object[_0x431f4d(0xf1)]||function(_0x319385){var _0x1d71d6=_0x431f4d;for(var _0xb5a566,_0x3d5d6b=0x1,_0x422b20=arguments[_0x1d71d6(0x14a)];_0x3d5d6b<_0x422b20;_0x3d5d6b++){_0xb5a566=arguments[_0x3d5d6b];for(var _0x4de631 in _0xb5a566)Object[_0x1d71d6(0xee)][_0x1d71d6(0x182)]['call'](_0xb5a566,_0x4de631)&&(_0x319385[_0x4de631]=_0xb5a566[_0x4de631]);}return _0x319385;},u[_0x431f4d(0xe5)](this,arguments);},M=function(_0x4b1276,_0xc4df70){var _0x1ff3ac=_0x4af0c9,_0x3b21de={};for(var _0x3df2a1 in _0x4b1276)Object[_0x1ff3ac(0xee)][_0x1ff3ac(0x182)][_0x1ff3ac(0x19f)](_0x4b1276,_0x3df2a1)&&_0xc4df70['indexOf'](_0x3df2a1)<0x0&&(_0x3b21de[_0x3df2a1]=_0x4b1276[_0x3df2a1]);if(_0x4b1276!=null&&typeof Object[_0x1ff3ac(0x12b)]==_0x1ff3ac(0x126)){for(var _0x283274=0x0,_0x3df2a1=Object[_0x1ff3ac(0x12b)](_0x4b1276);_0x283274<_0x3df2a1[_0x1ff3ac(0x14a)];_0x283274++)_0xc4df70[_0x1ff3ac(0xf9)](_0x3df2a1[_0x283274])<0x0&&Object[_0x1ff3ac(0xee)][_0x1ff3ac(0x105)][_0x1ff3ac(0x19f)](_0x4b1276,_0x3df2a1[_0x283274])&&(_0x3b21de[_0x3df2a1[_0x283274]]=_0x4b1276[_0x3df2a1[_0x283274]]);}return _0x3b21de;},j=f['forwardRef'](function(_0x117f9e,_0x22f4f9){var _0x285a71=_0x4af0c9,_0x22e1b0=_0x117f9e['icon'],_0x6c5723=_0x117f9e['id'],_0x1d7248=_0x117f9e['className'],_0x416fc0=_0x117f9e[_0x285a71(0x136)],_0x3c1fbb=M(_0x117f9e,[_0x285a71(0x10c),'id',_0x285a71(0x145),_0x285a71(0x136)]),_0x43b922='univerjs-icon\x20univerjs-icon-'['concat'](_0x6c5723,'\x20')['concat'](_0x1d7248||'')['trim'](),_0x567095=f[_0x285a71(0x106)]('_'['concat'](G()));return y(_0x22e1b0,''['concat'](_0x6c5723),{'defIds':_0x22e1b0[_0x285a71(0x101)],'idSuffix':_0x567095[_0x285a71(0x171)]},u({'ref':_0x22f4f9,'className':_0x43b922},_0x3c1fbb),_0x416fc0);});function y(_0x3bf2cd,_0x558f38,_0x3b1c93,_0x228d00,_0x5e1f1c){var _0xabddf6=_0x4af0c9;return f[_0xabddf6(0x17c)](_0x3bf2cd['tag'],u(u({'key':_0x558f38},q(_0x3bf2cd,_0x3b1c93,_0x5e1f1c)),_0x228d00),(W(_0x3bf2cd,_0x3b1c93)[_0xabddf6(0xdd)]||[])[_0xabddf6(0x16a)](function(_0x22156d,_0x3b47bc){var _0x1241c8=_0xabddf6;return y(_0x22156d,''[_0x1241c8(0x13a)](_0x558f38,'-')[_0x1241c8(0x13a)](_0x3bf2cd[_0x1241c8(0x166)],'-')[_0x1241c8(0x13a)](_0x3b47bc),_0x3b1c93,void 0x0,_0x5e1f1c);}));}function q(_0x50a24c,_0x45f609,_0x39f578){var _0x25c0f0=_0x4af0c9,_0x554069=u({},_0x50a24c[_0x25c0f0(0xfa)]);_0x39f578!=null&&_0x39f578['colorChannel1']&&_0x554069[_0x25c0f0(0xfb)]===_0x25c0f0(0x121)&&(_0x554069['fill']=_0x39f578[_0x25c0f0(0x121)]),_0x50a24c[_0x25c0f0(0x166)]===_0x25c0f0(0x195)&&_0x554069['id']&&(_0x554069['id']=_0x554069['id']+_0x45f609[_0x25c0f0(0x11d)]),Object['entries'](_0x554069)[_0x25c0f0(0x152)](function(_0x3f265d){var _0x26147d=_0x25c0f0,_0xff5e6c=_0x3f265d[0x0],_0x188ef7=_0x3f265d[0x1];_0xff5e6c==='mask'&&typeof _0x188ef7==_0x26147d(0x160)&&(_0x554069[_0xff5e6c]=_0x188ef7[_0x26147d(0x107)](/url\(#(.*)\)/,'url(#$1'[_0x26147d(0x13a)](_0x45f609[_0x26147d(0x11d)],')')));});var _0x471686=_0x45f609[_0x25c0f0(0x101)];return!_0x471686||_0x471686[_0x25c0f0(0x14a)]===0x0||(_0x50a24c[_0x25c0f0(0x166)]==='use'&&_0x554069['xlink:href']&&(_0x554069[_0x25c0f0(0x17b)]=_0x554069[_0x25c0f0(0x17b)]+_0x45f609[_0x25c0f0(0x11d)]),Object[_0x25c0f0(0x18c)](_0x554069)[_0x25c0f0(0x152)](function(_0x242b08){var _0x5cf374=_0x25c0f0,_0x160f04=_0x242b08[0x0],_0x4195bd=_0x242b08[0x1];typeof _0x4195bd==_0x5cf374(0x160)&&(_0x554069[_0x160f04]=_0x4195bd[_0x5cf374(0x107)](/url\(#(.*)\)/,_0x5cf374(0xe9)['concat'](_0x45f609[_0x5cf374(0x11d)],')')));})),_0x554069;}function W(_0x373ac5,_0x2a8fdf){var _0x199a6f=_0x4af0c9,_0x3131e0,_0x5a5550=_0x2a8fdf['defIds'];return!_0x5a5550||_0x5a5550[_0x199a6f(0x14a)]===0x0?_0x373ac5:_0x373ac5[_0x199a6f(0x166)]===_0x199a6f(0x130)&&(!((_0x3131e0=_0x373ac5[_0x199a6f(0xdd)])===null||_0x3131e0===void 0x0)&&_0x3131e0['length'])?u(u({},_0x373ac5),{'children':_0x373ac5[_0x199a6f(0xdd)][_0x199a6f(0x16a)](function(_0x452b78){var _0x385afb=_0x199a6f;return typeof _0x452b78[_0x385afb(0xfa)]['id']==_0x385afb(0x160)&&_0x5a5550&&_0x5a5550[_0x385afb(0x198)](_0x452b78[_0x385afb(0xfa)]['id'])?u(u({},_0x452b78),{'attrs':u(u({},_0x452b78[_0x385afb(0xfa)]),{'id':_0x452b78['attrs']['id']+_0x2a8fdf[_0x385afb(0x11d)]})}):_0x452b78;})}):_0x373ac5;}function _0x245e(){var _0x54f02e=['default','Inject','idle','map','throttleTime','_fetchOperations','_handleNewChangeSets','_startLiveShareCoordinator','_reporters','jsxs','current','reverse','status$','subscribe','useDependency','jsx','@univerjs/design','operations','@univerjs/core','pluginName','xlink:href','createElement','next','_sharedOperations','@univerjs-pro/collaboration','_beIdle','LIVESHARE_OPERATION','hasOwnProperty','DisposableCollection','from','get','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','CollaborationSessionService','getInitialStates','@univerjs/ui','2424EvvKua','_injector','entries','takeUntil','23361vcBzBJ','init','getLiveShareCoordinator','@univerjs-pro/collaboration-client','substring','Start\x20following','_liveShareService','mask','live-share.config','unsubscribe','includes','Module','1em','presenter','live-share-icon','set','stopPresenting','call','merge','div','currentColor','forwardRef','getMemberID','useState','_status','_unitID','not-following','Stop\x20following','add','http://www.w3.org/2000/svg','You\x27re\x20not\x20following\x20the\x20presenter','SetZoomRatioOperation','12vKjATd','ONLINE','IUniverInstanceService','NEW_CHANGESETS','none','889JEukGZ','@univerjs/sheets-ui','4105610rCigCA','_handleOperation','SetWorksheetActiveOperation','disposeWithMe','startFollowing','onRendered','complete','_univerInstanceService','UniverLiveSharePlugin','CollaborationEvent','_startFollowing','LiveShareController','registerSharedOperation','NOT_FOLLOWING','params','58440239pcirRR','univer-w-full\x20univer-mb-3\x20univer-text-sm','children','FOLLOWING','_handleOnline','displayName','getConfig','LiveShareStatus','LIVESHARE_FETCH_OPERATIONS','_init','apply','DesktopLiveShareController','univer-size-4','_configService','url(#$1','2DpRUZZ','Subject','parse','getCurrentTypeOfUnit$','prototype','28wbkDsy','send','assign','mergeOverrideWithDependencies','toString','has','clsx','UNIVER_UNKNOWN','LIVESHARE_NEW_HOST','createInstance','indexOf','attrs','fill','UniverInstanceType','UNIVER_SHEET','registerInitialStateReporter','LiveShareIcon','Stop\x20presenting','defIds','You\x27are\x20offline.','1613423bzSJby','getTypeOfUnitAdded$','propertyIsEnumerable','useRef','replace','_startPresenting','useEffect','getUnitId','useObservable','icon','HEADER_MENU','pipe','_handleNewHost','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','type','_collabSessionService','LiveShareService','82794PWPNia','34713qNbUuJ','_collabSession','setConfig','_uiPartsService','sessionStatus$','onCommandExecuted','delete','stopFollowing','idSuffix','_entities','toDisposable','button','colorChannel1','_config','IDLE','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','Fragment','function','parseProtocolChangeset','IUIPartsService','UniverIcon','offline','getOwnPropertySymbols','_commandDisposable','getTypeOfUnitDisposed$','_stopPresenting','LIVESHARE_REQUEST_HOST','defs','executeCommand','dispose$','_status$','SessionStatus','LiveShareCoordinator','extend','PRESENTING','ICommandService','getValue','concat','random','sheet','onStarting','following','Disposable','registerComponent','_handleOffline','UniverCollaborationClientPlugin','clear','evenodd','className','205505onTvLh','_commandService','defineProperty','_presenter','length','data','_handleTerminate','RxDisposable','You\x27re\x20presenting\x20the\x20document','DependentOn','getOwnPropertyDescriptor','shouldShareOperation','forEach','react','toStringTag','tryStartPresenting','_stopFollowing','You\x27re\x20following\x20the\x20presenter','Button','Injector','Start','svg','IConfigService','OPERATION','presenting','dispose','string','LIVESHARE_TERMINATE','BuiltInUIPart','OFFLINE','rxjs/operators','symbol','tag'];_0x245e=function(){return _0x54f02e;};return _0x245e();}function G(){var _0x138fe9=_0x4af0c9;return Math[_0x138fe9(0x13b)]()[_0x138fe9(0xf3)](0x24)[_0x138fe9(0x192)](0x2,0x8);}j['displayName']=_0x4af0c9(0x129);var B={'tag':_0x4af0c9(0x15b),'attrs':{'xmlns':_0x4af0c9(0xc2),'fill':_0x4af0c9(0xc9),'viewBox':'0\x200\x2017\x2017','width':_0x4af0c9(0x19a),'height':_0x4af0c9(0x19a)},'children':[{'tag':'path','attrs':{'fill':_0x4af0c9(0x1a2),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x4af0c9(0x1a2),'d':_0x4af0c9(0x110),'fillRule':_0x4af0c9(0x144),'clipRule':_0x4af0c9(0x144)}}]},P=f[_0x4af0c9(0x1a3)](function(_0x438008,_0x1b9e98){var _0x75625d=_0x4af0c9;return f[_0x75625d(0x17c)](j,Object[_0x75625d(0xf1)]({},_0x438008,{'id':_0x75625d(0x19c),'ref':_0x1b9e98,'icon':B}));});P[_0x4af0c9(0xe0)]=_0x4af0c9(0xff);var Y=Object['getOwnPropertyDescriptor'],R=(_0x2da32e,_0x241618,_0x231fca,_0xd19957)=>{for(var _0x1fc46c=_0xd19957>0x1?void 0x0:_0xd19957?Y(_0x241618,_0x231fca):_0x241618,_0x5c5ae8=_0x2da32e['length']-0x1,_0x302f0f;_0x5c5ae8>=0x0;_0x5c5ae8--)(_0x302f0f=_0x2da32e[_0x5c5ae8])&&(_0x1fc46c=_0x302f0f(_0x1fc46c)||_0x1fc46c);return _0x1fc46c;},S=(_0x53f51e,_0x515e8e)=>(_0x5f2b27,_0x17bee)=>_0x515e8e(_0x5f2b27,_0x17bee,_0x53f51e);exports['LiveShareController']=class extends o[_0x4af0c9(0x14d)]{constructor(_0x2767e4,_0x349ef2,_0x420f21){var _0x3f17e5=_0x4af0c9;super(),v(this,_0x3f17e5(0x11e),new Map()),(this[_0x3f17e5(0xd3)]=_0x2767e4,this[_0x3f17e5(0x18b)]=_0x349ef2,this[_0x3f17e5(0x112)]=_0x420f21,this['_init']());}async[_0x4af0c9(0x190)](_0x389955){var _0x2dcfba=_0x4af0c9;return this[_0x2dcfba(0x11e)][_0x2dcfba(0xf4)](_0x389955)||await this[_0x2dcfba(0x16e)](_0x389955),this['_entities'][_0x2dcfba(0x185)](_0x389955);}[_0x4af0c9(0xe4)](){var _0x2c9dd0=_0x4af0c9;this[_0x2c9dd0(0xd3)][_0x2c9dd0(0x104)](o[_0x2c9dd0(0xfc)][_0x2c9dd0(0xfd)])['pipe'](b['takeUntil'](this[_0x2c9dd0(0x132)]))[_0x2c9dd0(0x174)](async _0x4f3290=>{var _0x5e2b50=_0x2c9dd0;const _0x5be5d1=_0x4f3290[_0x5e2b50(0x10a)]();this[_0x5e2b50(0x11e)][_0x5e2b50(0xf4)](_0x5be5d1)||this[_0x5e2b50(0x16e)](_0x5be5d1);}),this['_univerInstanceService'][_0x2c9dd0(0x12d)](o[_0x2c9dd0(0xfc)]['UNIVER_SHEET'])[_0x2c9dd0(0x10e)](b[_0x2c9dd0(0x18d)](this[_0x2c9dd0(0x132)]))[_0x2c9dd0(0x174)](_0x4a47d3=>{var _0x31f647=_0x2c9dd0;const _0x4f8b22=_0x4a47d3[_0x31f647(0x10a)](),_0x1b510c=this['_entities'][_0x31f647(0x185)](_0x4f8b22);_0x1b510c==null||_0x1b510c[_0x31f647(0x15f)]();});}async[_0x4af0c9(0x16e)](_0x5512ad){var _0x5360c3=_0x4af0c9;const _0xbbd1=await this['_collabSessionService']['requireSession'](_0x5512ad),_0x36e266=this['_injector'][_0x5360c3(0xf8)](exports[_0x5360c3(0x135)],_0x5512ad,_0xbbd1);return _0x36e266[_0x5360c3(0x18f)](),this['_entities'][_0x5360c3(0x19d)](_0x5512ad,_0x36e266),_0x36e266;}},exports[_0x4af0c9(0xd7)]=R([S(0x0,o[_0x4af0c9(0xc7)]),S(0x1,o['Inject'](o[_0x4af0c9(0x159)])),S(0x2,o[_0x4af0c9(0x168)](m[_0x4af0c9(0x187)]))],exports[_0x4af0c9(0xd7)]);var h=(_0x31ce64=>(_0x31ce64[_0x4af0c9(0x163)]=_0x4af0c9(0x12a),_0x31ce64[_0x4af0c9(0x123)]='idle',_0x31ce64[_0x4af0c9(0xde)]='following',_0x31ce64[_0x4af0c9(0xd9)]=_0x4af0c9(0xbf),_0x31ce64[_0x4af0c9(0x137)]='presenting',_0x31ce64))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x4af0c9(0x135)]=class extends o[_0x4af0c9(0x14d)]{constructor(_0x54890c,_0x42c4f6,_0x4d1105,_0x2a07a8,_0x57f07d){var _0x19afd5=_0x4af0c9;super(),v(this,_0x19afd5(0x133),new D['BehaviorSubject'](_0x19afd5(0x169))),v(this,_0x19afd5(0x173),this[_0x19afd5(0x133)]['asObservable']()),v(this,_0x19afd5(0xe4),!0x1),v(this,_0x19afd5(0x12c),null),v(this,_0x19afd5(0x149),null),(this[_0x19afd5(0x1a7)]=_0x54890c,this[_0x19afd5(0x116)]=_0x42c4f6,this['_configService']=_0x4d1105,this[_0x19afd5(0x194)]=_0x2a07a8,this[_0x19afd5(0x147)]=_0x57f07d);}get['_status'](){var _0x3e49ab=_0x4af0c9;return this[_0x3e49ab(0x133)][_0x3e49ab(0x139)]();}[_0x4af0c9(0x15f)](){var _0x4e68df=_0x4af0c9,_0x51ee65;(_0x51ee65=this[_0x4e68df(0x12c)])==null||_0x51ee65['dispose'](),this[_0x4e68df(0x133)][_0x4e68df(0x17d)]('idle'),this[_0x4e68df(0x133)][_0x4e68df(0xd2)]();}[_0x4af0c9(0x18f)](){var _0x3edbe4=_0x4af0c9;this[_0x3edbe4(0xe4)]||(this[_0x3edbe4(0xe4)]=!0x0,this[_0x3edbe4(0x116)][_0x3edbe4(0x119)][_0x3edbe4(0x10e)](b[_0x3edbe4(0x18d)](this['dispose$']))[_0x3edbe4(0x174)](_0x169471=>{var _0xbcf49a=_0x3edbe4;switch(_0x169471){case m[_0xbcf49a(0x134)][_0xbcf49a(0x163)]:this[_0xbcf49a(0x141)]();break;case m[_0xbcf49a(0x134)][_0xbcf49a(0xc6)]:this[_0xbcf49a(0xdf)]();break;}}),this[_0x3edbe4(0x116)]['event$'][_0x3edbe4(0x10e)](b[_0x3edbe4(0x18d)](this[_0x3edbe4(0x132)]))['subscribe'](_0x4abdd2=>{var _0x5bf183=_0x3edbe4;const {eventID:_0x55aa5c}=_0x4abdd2;switch(_0x55aa5c){case _[_0x5bf183(0xd5)][_0x5bf183(0xf7)]:this[_0x5bf183(0x10f)](_0x4abdd2);break;case _['CollaborationEvent'][_0x5bf183(0x181)]:this['_handleOperation'](_0x4abdd2);break;case _[_0x5bf183(0xd5)][_0x5bf183(0x161)]:this[_0x5bf183(0x14c)]();break;case _['CollaborationEvent'][_0x5bf183(0xc8)]:this[_0x5bf183(0x16d)](_0x4abdd2);break;}}));}[_0x4af0c9(0x155)](){var _0x265c35=_0x4af0c9;this[_0x265c35(0x116)][_0x265c35(0xf0)]({'eventID':_[_0x265c35(0xd5)][_0x265c35(0x12f)],'data':{'unitID':this[_0x265c35(0x1a7)],'userID':this[_0x265c35(0x116)][_0x265c35(0x1a4)]()}},this[_0x265c35(0x1a7)]);}[_0x4af0c9(0x19e)](){var _0xec73d7=_0x4af0c9;this[_0xec73d7(0x1a6)]===_0xec73d7(0x15e)&&(this[_0xec73d7(0x133)][_0xec73d7(0x17d)](_0xec73d7(0x169)),this[_0xec73d7(0x116)][_0xec73d7(0xf0)]({'eventID':_['CollaborationEvent'][_0xec73d7(0x161)],'data':{'unitID':this[_0xec73d7(0x1a7)]}},this[_0xec73d7(0x1a7)]));}[_0x4af0c9(0xd0)](){var _0x3eb71f=_0x4af0c9;this[_0x3eb71f(0x1a6)]===_0x3eb71f(0xbf)&&(this[_0x3eb71f(0x133)][_0x3eb71f(0x17d)]('following'),this[_0x3eb71f(0xd6)]());}[_0x4af0c9(0x11c)](){var _0x58e848=_0x4af0c9;this[_0x58e848(0x1a6)]===_0x58e848(0x13e)&&this[_0x58e848(0x156)]();}[_0x4af0c9(0x10f)](_0x2bee33){var _0x574b00=_0x4af0c9;const {presenter:_0x346689}=_0x2bee33['data'],_0xb3d53b=this[_0x574b00(0x116)][_0x574b00(0x1a4)]();this[_0x574b00(0x149)]=_0x346689,_0x346689===_0xb3d53b?(this[_0x574b00(0x156)](),this[_0x574b00(0x108)]()):this[_0x574b00(0x1a6)]!==_0x574b00(0xbf)&&(this[_0x574b00(0x12e)](),this[_0x574b00(0xd6)]());}[_0x4af0c9(0x16c)](){var _0xf4b986=_0x4af0c9;const _0x1461e2={'eventID':_[_0xf4b986(0xd5)][_0xf4b986(0xe3)]};this['_collabSession'][_0xf4b986(0xf0)](_0x1461e2,this[_0xf4b986(0x1a7)]);}[_0x4af0c9(0x14c)](){var _0x38527c=_0x4af0c9;this[_0x38527c(0x149)]=null,this[_0x38527c(0x1a6)]!==_0x38527c(0x15e)&&this[_0x38527c(0x180)]();}[_0x4af0c9(0x16d)](_0x1e9cdc){var _0x453f51=_0x4af0c9;if(this[_0x453f51(0x1a6)]===_0x453f51(0x13e)&&this[_0x453f51(0x149)]===_0x1e9cdc['data']['memberID']){const _0x2dcae0=_[_0x453f51(0x127)](_0x1e9cdc[_0x453f51(0x14b)])['mutations'][_0x453f51(0x172)]()['find'](_0x2a937c=>_0x2a937c['id']===C['InsertSheetMutation']['id']);if(_0x2dcae0){const _0x1980cb=_0x2dcae0[_0x453f51(0xda)]['unitId'],_0x1dbd1d=_0x2dcae0[_0x453f51(0xda)][_0x453f51(0x13c)]['id'];setTimeout(()=>{var _0x344f7c=_0x453f51;this[_0x344f7c(0x147)][_0x344f7c(0x131)](C[_0x344f7c(0xce)]['id'],{'unitId':_0x1980cb,'subUnitId':_0x1dbd1d},{'fromCollab':!0x0});});}}}[_0x4af0c9(0x108)](){var _0x5210f7=_0x4af0c9;this[_0x5210f7(0x133)][_0x5210f7(0x17d)](_0x5210f7(0x15e));const _0x3df543=new Map(),_0x2b556e=this['_commandDisposable']=new o[(_0x5210f7(0x183))]();_0x2b556e['add'](o[_0x5210f7(0x11f)](()=>{var _0x451e01=_0x5210f7;_0x3df543['forEach'](_0x42fa09=>_0x42fa09[_0x451e01(0xd2)]()),_0x3df543[_0x451e01(0x143)]();})),_0x2b556e[_0x5210f7(0xc1)](this[_0x5210f7(0x147)][_0x5210f7(0x11a)](_0x2b2ad8=>{var _0x19cfbd=_0x5210f7,_0x4ac833;if(_0x2b2ad8[_0x19cfbd(0x111)]!==o['CommandType'][_0x19cfbd(0x15d)]||!this['_liveShareService'][_0x19cfbd(0x151)](_0x2b2ad8['id']))return;const {id:_0x45a1b2}=_0x2b2ad8;let _0x4bde92;_0x3df543['has'](_0x45a1b2)?_0x4bde92=_0x3df543[_0x19cfbd(0x185)](_0x45a1b2):(_0x4bde92=new D[(_0x19cfbd(0xeb))](),_0x3df543['set'](_0x45a1b2,_0x4bde92),_0x4bde92[_0x19cfbd(0x10e)](b[_0x19cfbd(0x16b)]((_0x4ac833=this['_configService'][_0x19cfbd(0xe1)](Z))!=null?_0x4ac833:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x19cfbd(0x174)](_0xc198b0=>{var _0x256e73=_0x19cfbd;this[_0x256e73(0x116)][_0x256e73(0xf0)]({'eventID':_[_0x256e73(0xd5)][_0x256e73(0x181)],'data':{'unitID':this['_unitID'],'operations':{[_0xc198b0['id']]:{'id':_0xc198b0['id'],'params':JSON['stringify'](_0xc198b0[_0x256e73(0xda)])}}}},this[_0x256e73(0x1a7)]);})),_0x4bde92[_0x19cfbd(0x17d)](_0x2b2ad8);})),this[_0x5210f7(0x194)]['getInitialStates'](this[_0x5210f7(0x1a7)])['forEach'](_0x3fd38a=>this[_0x5210f7(0x116)][_0x5210f7(0xf0)]({'eventID':_[_0x5210f7(0xd5)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x3fd38a['id']]:{'id':_0x3fd38a['id'],'params':JSON['stringify'](_0x3fd38a[_0x5210f7(0xda)])}}}},this[_0x5210f7(0x1a7)]));}[_0x4af0c9(0x12e)](){var _0x530a3f=_0x4af0c9,_0x2591a7;this[_0x530a3f(0x133)]['next']('idle'),(_0x2591a7=this[_0x530a3f(0x12c)])==null||_0x2591a7[_0x530a3f(0x15f)](),this[_0x530a3f(0x12c)]=null;}['_startFollowing'](){var _0x24ebd1=_0x4af0c9,_0x3ebe4a;(_0x3ebe4a=this[_0x24ebd1(0x12c)])==null||_0x3ebe4a['dispose'](),this['_status$'][_0x24ebd1(0x17d)](_0x24ebd1(0x13e));}[_0x4af0c9(0x180)](){var _0x35d90d=_0x4af0c9,_0x22f7e4;this[_0x35d90d(0x133)][_0x35d90d(0x17d)](_0x35d90d(0x169)),(_0x22f7e4=this[_0x35d90d(0x12c)])==null||_0x22f7e4[_0x35d90d(0x15f)](),this[_0x35d90d(0x12c)]=null;}[_0x4af0c9(0x156)](){var _0xb7f503=_0x4af0c9,_0x49bca2;this[_0xb7f503(0x133)][_0xb7f503(0x17d)](_0xb7f503(0xbf)),(_0x49bca2=this[_0xb7f503(0x12c)])==null||_0x49bca2[_0xb7f503(0x15f)]();}[_0x4af0c9(0xcd)](_0x4403bd){var _0xc36367=_0x4af0c9;if([_0xc36367(0x15e),_0xc36367(0xbf),'offline'][_0xc36367(0x198)](this['_status'])||!_0x4403bd[_0xc36367(0x14b)][_0xc36367(0x19b)]||_0x4403bd[_0xc36367(0x14b)][_0xc36367(0x19b)]===this[_0xc36367(0x116)][_0xc36367(0x1a4)]())return;this[_0xc36367(0x1a6)]===_0xc36367(0x169)&&this['_startFollowing']();const _0x3222df=_0x4403bd[_0xc36367(0x14b)][_0xc36367(0x178)];Object['values'](_0x3222df)[_0xc36367(0x152)](_0x5e17a8=>{var _0x35b6b0=_0xc36367;this[_0x35b6b0(0x147)][_0x35b6b0(0x131)](_0x5e17a8['id'],_0x5e17a8[_0x35b6b0(0xda)]?JSON[_0x35b6b0(0xec)](_0x5e17a8[_0x35b6b0(0xda)]):null,{'fromCollab':!0x0});});}[_0x4af0c9(0x141)](){var _0x55ffb4=_0x4af0c9,_0x4eaf3b;this[_0x55ffb4(0x133)][_0x55ffb4(0x17d)](_0x55ffb4(0x12a)),(_0x4eaf3b=this['_commandDisposable'])==null||_0x4eaf3b[_0x55ffb4(0x15f)]();}[_0x4af0c9(0xdf)](){var _0x288ea7=_0x4af0c9;this[_0x288ea7(0x133)]['next'](_0x288ea7(0x169)),this[_0x288ea7(0x16c)]();}},exports[_0x4af0c9(0x135)]=R([S(0x2,o[_0x4af0c9(0x15c)]),S(0x3,o[_0x4af0c9(0x168)](O)),S(0x4,o[_0x4af0c9(0x138)])],exports[_0x4af0c9(0x135)]);function A(){var _0x48c778=_0x4af0c9;const _0xb78643=p[_0x48c778(0x175)](exports['LiveShareController']),_0x15d815=p[_0x48c778(0x175)](o[_0x48c778(0xc7)]),_0x2c7074=p[_0x48c778(0x10b)](()=>_0x15d815[_0x48c778(0xed)](o['UniverInstanceType'][_0x48c778(0xfd)]),void 0x0,!0x1,[]),[_0xdc9271,_0x3bcba3]=f[_0x48c778(0x1a5)](null),[_0x22e74b,_0x144a53]=f[_0x48c778(0x1a5)](h['IDLE']),_0x152c21=f[_0x48c778(0x106)](null);return f[_0x48c778(0x109)](()=>(_0x2c7074&&_0xb78643['getLiveShareCoordinator'](_0x2c7074[_0x48c778(0x10a)]())['then'](_0x3206a7=>{var _0x4b109f=_0x48c778;_0x3bcba3(_0x3206a7),_0x152c21[_0x4b109f(0x171)]=_0x3206a7['status$'][_0x4b109f(0x174)](_0x81f8d2=>{_0x144a53(_0x81f8d2);});}),()=>{var _0x17f109=_0x48c778,_0x292350;(_0x292350=_0x152c21[_0x17f109(0x171)])==null||_0x292350[_0x17f109(0x197)](),_0x152c21[_0x17f109(0x171)]=null;}),[_0x2c7074,_0xb78643]),_0xdc9271?l[_0x48c778(0x176)](g['Dropdown'],{'align':'end','disabled':_0x22e74b===h[_0x48c778(0x163)],'className':_0x48c778(0x186),'overlay':l['jsx'](K,{'status':_0x22e74b,'coordinator':_0xdc9271}),'children':l[_0x48c778(0x176)](_0x48c778(0x120),{'className':g[_0x48c778(0xf5)](_0x48c778(0x124),{'univer-cursor-not-allowed':_0x22e74b===h[_0x48c778(0x163)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x22e74b!==h[_0x48c778(0x163)]}),'type':_0x48c778(0x120),'children':l[_0x48c778(0x176)](P,{'className':_0x48c778(0xe7)})})}):null;}function K(_0x3a2f33){var _0x45067e=_0x4af0c9;const {status:_0x227ff3,coordinator:_0x4f53c0}=_0x3a2f33;switch(_0x227ff3){case h['IDLE']:return l[_0x45067e(0x176)](z,{'coordinator':_0x4f53c0});case h[_0x45067e(0xde)]:return l[_0x45067e(0x176)](Q,{'coordinator':_0x4f53c0});case h['NOT_FOLLOWING']:return l[_0x45067e(0x176)](X,{'coordinator':_0x4f53c0});case h['OFFLINE']:return l[_0x45067e(0x176)](te,{});case h[_0x45067e(0x137)]:return l[_0x45067e(0x176)](ee,{'coordinator':_0x4f53c0});default:return null;}}function z(_0x505bce){var _0x345b99=_0x4af0c9;const {coordinator:_0xe70d89}=_0x505bce;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x345b99(0x1a1),{'className':_0x345b99(0xdc),'children':'Present\x20this\x20document'}),l['jsx'](g[_0x345b99(0x158)],{'onClick':()=>_0xe70d89['tryStartPresenting'](),'children':_0x345b99(0x15a)})]});}function Q(_0x1b9481){var _0x58fcfa=_0x4af0c9;const {coordinator:_0x32a8a9}=_0x1b9481;return l[_0x58fcfa(0x170)](l[_0x58fcfa(0x125)],{'children':[l['jsx']('div',{'className':_0x58fcfa(0xdc),'children':_0x58fcfa(0x157)}),l['jsx'](g[_0x58fcfa(0x158)],{'onClick':()=>_0x32a8a9[_0x58fcfa(0x11c)](),'children':_0x58fcfa(0xc0)})]});}function X(_0x4cd052){var _0xf875f6=_0x4af0c9;const {coordinator:_0x56a3e7}=_0x4cd052;return l[_0xf875f6(0x170)](l[_0xf875f6(0x125)],{'children':[l[_0xf875f6(0x176)](_0xf875f6(0x1a1),{'className':_0xf875f6(0xdc),'children':_0xf875f6(0xc3)}),l['jsx'](g[_0xf875f6(0x158)],{'variant':'text','onClick':()=>_0x56a3e7['startFollowing'](),'children':_0xf875f6(0x193)})]});}function ee(_0x1b121d){var _0x83e3ed=_0x4af0c9;const {coordinator:_0x45adf2}=_0x1b121d;return l[_0x83e3ed(0x170)](l['Fragment'],{'children':[l[_0x83e3ed(0x176)](_0x83e3ed(0x1a1),{'className':_0x83e3ed(0xdc),'children':_0x83e3ed(0x14e)}),l[_0x83e3ed(0x176)](g[_0x83e3ed(0x158)],{'variant':_0x83e3ed(0x167),'onClick':()=>_0x45adf2[_0x83e3ed(0x19e)](),'children':_0x83e3ed(0x100)})]});}function te(){var _0x205f23=_0x4af0c9;return l[_0x205f23(0x176)](l[_0x205f23(0x125)],{'children':_0x205f23(0x102)});}var ie=Object[_0x4af0c9(0x150)],ne=(_0x12c247,_0x5ce651,_0x2b53db,_0x54946d)=>{var _0x5a070b=_0x4af0c9;for(var _0x283bd0=_0x54946d>0x1?void 0x0:_0x54946d?ie(_0x5ce651,_0x2b53db):_0x5ce651,_0x1fa412=_0x12c247[_0x5a070b(0x14a)]-0x1,_0x3c332f;_0x1fa412>=0x0;_0x1fa412--)(_0x3c332f=_0x12c247[_0x1fa412])&&(_0x283bd0=_0x3c332f(_0x283bd0)||_0x283bd0);return _0x283bd0;},L=(_0xaac4d,_0xabea90)=>(_0xf5ff01,_0x14d47)=>_0xabea90(_0xf5ff01,_0x14d47,_0xaac4d);exports[_0x4af0c9(0xe6)]=class extends o[_0x4af0c9(0x13f)]{constructor(_0x551d5a,_0x457f47){var _0x59c34a=_0x4af0c9;super(),this[_0x59c34a(0x18b)]=_0x551d5a,this[_0x59c34a(0x118)]=_0x457f47,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x3d8725=_0x4af0c9;this[_0x3d8725(0xcf)](this[_0x3d8725(0x118)][_0x3d8725(0x140)](p[_0x3d8725(0x162)][_0x3d8725(0x10d)],()=>p['connectInjector'](A,this['_injector'])));}},exports[_0x4af0c9(0xe6)]=ne([L(0x0,o['Inject'](o['Injector'])),L(0x1,p[_0x4af0c9(0x128)])],exports[_0x4af0c9(0xe6)]);function _0x46d3(_0x26fc40,_0x522d07){var _0x245e2f=_0x245e();return _0x46d3=function(_0x46d32a,_0x2ad886){_0x46d32a=_0x46d32a-0xbf;var _0x354af3=_0x245e2f[_0x46d32a];return _0x354af3;},_0x46d3(_0x26fc40,_0x522d07);}var re=Object[_0x4af0c9(0x148)],se=Object[_0x4af0c9(0x150)],oe=(_0x5bc504,_0x3fc4d6,_0x395f2a)=>_0x3fc4d6 in _0x5bc504?re(_0x5bc504,_0x3fc4d6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x395f2a}):_0x5bc504[_0x3fc4d6]=_0x395f2a,ae=(_0x289c72,_0x3e5804,_0x22317e,_0x12776a)=>{var _0x158f51=_0x4af0c9;for(var _0x56812c=_0x12776a>0x1?void 0x0:_0x12776a?se(_0x3e5804,_0x22317e):_0x3e5804,_0x298a52=_0x289c72[_0x158f51(0x14a)]-0x1,_0x21975c;_0x298a52>=0x0;_0x298a52--)(_0x21975c=_0x289c72[_0x298a52])&&(_0x56812c=_0x21975c(_0x56812c)||_0x56812c);return _0x56812c;},N=(_0x79e0cb,_0x4a762e)=>(_0x493aab,_0x35dc2d)=>_0x4a762e(_0x493aab,_0x35dc2d,_0x79e0cb),T=(_0x14e418,_0x527918,_0x2d202f)=>oe(_0x14e418,typeof _0x527918!=_0x4af0c9(0x165)?_0x527918+'':_0x527918,_0x2d202f);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x4af0c9(0xd4)]=class extends o['Plugin']{constructor(_0x3cb663=x,_0x33cd89,_0x49c591){var _0x23ea68=_0x4af0c9;super(),this['_config']=_0x3cb663,this[_0x23ea68(0x18b)]=_0x33cd89,this[_0x23ea68(0xe8)]=_0x49c591;const {..._0x34a223}=o[_0x23ea68(0x1a0)]({},x,this[_0x23ea68(0x122)]);this['_configService'][_0x23ea68(0x117)]($,_0x34a223);}[_0x4af0c9(0x13d)](){var _0x159529=_0x4af0c9;o['registerDependencies'](this[_0x159529(0x18b)],o[_0x159529(0xf2)]([[O],[exports[_0x159529(0xd7)]],[E],[exports['DesktopLiveShareController']]],this[_0x159529(0x122)]['override'])),o['touchDependencies'](this[_0x159529(0x18b)],[[E]]);}[_0x4af0c9(0xd1)](){var _0x46f280=_0x4af0c9;o['touchDependencies'](this[_0x46f280(0x18b)],[[exports[_0x46f280(0xe6)]]]);}},T(exports[_0x4af0c9(0xd4)],'type',o['UniverInstanceType'][_0x4af0c9(0xf6)]),T(exports[_0x4af0c9(0xd4)],_0x4af0c9(0x17a),le),exports[_0x4af0c9(0xd4)]=ae([o[_0x4af0c9(0x14f)](m[_0x4af0c9(0x142)]),N(0x1,o[_0x4af0c9(0x168)](o['Injector'])),N(0x2,o[_0x4af0c9(0x15c)])],exports[_0x4af0c9(0xd4)]),exports['LiveShare']=A,exports[_0x4af0c9(0x113)]=O,exports[_0x4af0c9(0xe2)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x111845=_0x18f0;(function(_0x36881f,_0x57ffe9){var _0x36827a=_0x18f0,_0x4baee1=_0x36881f();while(!![]){try{var _0x410fb4=-parseInt(_0x36827a(0x124))/0x1*(parseInt(_0x36827a(0x157))/0x2)+parseInt(_0x36827a(0x138))/0x3*(parseInt(_0x36827a(0xd6))/0x4)+-parseInt(_0x36827a(0xb4))/0x5+parseInt(_0x36827a(0xd2))/0x6+-parseInt(_0x36827a(0x159))/0x7*(parseInt(_0x36827a(0xae))/0x8)+-parseInt(_0x36827a(0x14f))/0x9+parseInt(_0x36827a(0xc6))/0xa;if(_0x410fb4===_0x57ffe9)break;else _0x4baee1['push'](_0x4baee1['shift']());}catch(_0x4a413d){_0x4baee1['push'](_0x4baee1['shift']());}}}(_0x37cb,0x81bbc));var q=Object[_0x111845(0x11d)],z=(_0x4df1c8,_0x3a66de,_0x4d7574)=>_0x3a66de in _0x4df1c8?q(_0x4df1c8,_0x3a66de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d7574}):_0x4df1c8[_0x3a66de]=_0x4d7574,d=(_0x474221,_0x1aaf80,_0x23a779)=>z(_0x474221,typeof _0x1aaf80!=_0x111845(0xdf)?_0x1aaf80+'':_0x1aaf80,_0x23a779);import{CollaborationSessionService as _0x1ac019,SessionStatus as _0x29ebe5,UniverCollaborationClientPlugin as _0x472ee4}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4c2516,toDisposable as _0x2b451f,Inject as _0x555b6a,IUniverInstanceService as _0x2a63fd,Injector as _0x184d2a,IConfigService as _0x5942dd,ICommandService as _0xebcdd,RxDisposable as _0x355afe,UniverInstanceType as _0x36368d,DisposableCollection as _0x5a3486,CommandType as _0x216e4e,DependentOn as _0x49dea1,Plugin as _0x19e569,merge as _0x47cc38,registerDependencies as _0x134e0c,mergeOverrideWithDependencies as _0x9bf70b,touchDependencies as _0x4b550f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x592534,InsertSheetMutation as _0x885b41}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5f3cc2,SetScrollOperation as _0x44c772}from'@univerjs/sheets-ui';import{useDependency as _0x71080f,useObservable as _0x3a54bb,IUIPartsService as _0x150f06,BuiltInUIPart as _0xb3b934,connectInjector as _0x3f0fd6}from'@univerjs/ui';import{jsx as _0x33981f,jsxs as _0x6e3e1,Fragment as _0x476040}from'react/jsx-runtime';import{Dropdown as _0x1a6ce9,clsx as _0x1ef98e,Button as _0x28744d}from'@univerjs/design';import{forwardRef as _0x5acf19,useRef as _0x349cca,createElement as _0x1b5217,useState as _0x198177,useEffect as _0x4a5c1f}from'react';import{CollaborationEvent as _0x310aef,parseProtocolChangeset as _0x58cb90}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x37413d,Subject as _0x35d171}from'rxjs';import{takeUntil as _0x3fc736,throttleTime as _0x23c445}from'rxjs/operators';const Oe=_0x111845(0x153),T={};class L extends _0x4c2516{constructor(){var _0x22424c=_0x111845;super(...arguments),d(this,_0x22424c(0xba),new Set()),d(this,'_reporters',new Set());}[_0x111845(0xed)](_0x13819b){var _0x392eab=_0x111845;return this['_sharedOperations'][_0x392eab(0xe2)](_0x13819b),_0x2b451f(()=>this['_sharedOperations']['delete'](_0x13819b));}[_0x111845(0xac)](_0x5d9a2b){var _0x40403c=_0x111845;return this['_reporters'][_0x40403c(0xe2)](_0x5d9a2b),_0x2b451f(()=>this[_0x40403c(0xc7)][_0x40403c(0xbc)](_0x5d9a2b));}[_0x111845(0x103)](_0x26ab74){return this['_sharedOperations']['has'](_0x26ab74);}[_0x111845(0x126)](_0x5e0690){var _0x529b47=_0x111845;return Array[_0x529b47(0x15d)](this[_0x529b47(0xc7)])[_0x529b47(0xe8)](_0x31e042=>_0x31e042(_0x5e0690));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x4545ea,_0x2fc2e2,_0x5858a0,_0x45e868)=>{for(var _0x34e847=_0x45e868>0x1?void 0x0:_0x45e868?Ee(_0x2fc2e2,_0x5858a0):_0x2fc2e2,_0x20e5c5=_0x4545ea['length']-0x1,_0x3a0203;_0x20e5c5>=0x0;_0x20e5c5--)(_0x3a0203=_0x4545ea[_0x20e5c5])&&(_0x34e847=_0x3a0203(_0x34e847)||_0x34e847);return _0x34e847;},Ne=(_0x4b2d42,_0x581061)=>(_0x491682,_0x550474)=>_0x581061(_0x491682,_0x550474,_0x4b2d42);let m=class extends _0x4c2516{constructor(_0x30ec72){var _0x35729a=_0x111845;super(),this[_0x35729a(0xd0)]=_0x30ec72,this[_0x35729a(0xd8)]();}[_0x111845(0xd8)](){var _0x6adbc3=_0x111845;[_0x5f3cc2['id'],_0x44c772['id'],_0x592534['id']][_0x6adbc3(0xbf)](_0x4f11a4=>{var _0x5d8270=_0x6adbc3;this[_0x5d8270(0x12d)](this['_liveShareService'][_0x5d8270(0xed)](_0x4f11a4));});}};function _0x37cb(){var _0x287a5f=['clear','registerSharedOperation','LiveShareIcon','_status','length','_handleNewChangeSets','mask','get','pipe','_handleTerminate','You\x27re\x20following\x20the\x20presenter','_startLiveShareCoordinator','set','_injector','getTypeOfUnitDisposed$','UNIVER_UNKNOWN','LIVESHARE_REQUEST_HOST','You\x27re\x20presenting\x20the\x20document','data','asObservable','presenting','current','_entities','shouldShareOperation','complete','LIVESHARE_OPERATION','url(#$1','then','http://www.w3.org/2000/svg','1em','0\x200\x2017\x2017','_presenter','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','propertyIsEnumerable','getLiveShareCoordinator','event$','type','icon','memberID','SAME_OPERATION_SHARE_INTERVAL','evenodd','send','dispose','createInstance','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_collabSessionService','HEADER_MENU','not-following','mutations','defineProperty','extend','_commandService','ONLINE','next','values','dispose$','1357Zfufmh','onCommandExecuted','getInitialStates','getValue','toString','Start\x20following','univerjs-icon\x20univerjs-icon-','attrs','getOwnPropertySymbols','disposeWithMe','_config','currentColor','executeCommand','concat','tag','onRendered','registerComponent','hasOwnProperty','entries','_startFollowing','1441695delUgg','call','colorChannel1','UNIVER_SHEET','parse','_handleOperation','getCurrentTypeOfUnit$','getOwnPropertyDescriptor','text','stopFollowing','_startPresenting','IDLE','_beIdle','_commandDisposable','Stop\x20presenting','tryStartPresenting','_uiPartsService','NEW_CHANGESETS','_stopFollowing','_univerInstanceService','prototype','className','sheet','4421439eHoyYx','xlink:href','_mountLiveShare','offline','live-share.config','presenter','univer-size-4','children','1186ClgJjx','_stopPresenting','717556SwHVQV','startFollowing','params','_collabSession','from','_fetchOperations','has','getUnitId','div','includes','registerInitialStateReporter','stringify','24lTjAiv','_unitID','idle','path','sessionStatus$','following','2141385mavIhR','OPERATION','replace','_handleOffline','assign','NOT_FOLLOWING','_sharedOperations','button','delete','unitId','getTypeOfUnitAdded$','forEach','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','none','_status$','status$','use','substring','15530910yuLUMc','_reporters','_handleOnline','subscribe','string','stopPresenting','_configService','init','override','apply','_liveShareService','_handleNewHost','293640JwtnNc','function','find','displayName','8tjhTGL','trim','_init','operations','indexOf','setConfig','PRESENTING','idSuffix','defIds','symbol','svg','getMemberID','add','univer-w-full\x20univer-mb-3\x20univer-text-sm','OFFLINE','unsubscribe','You\x27re\x20not\x20following\x20the\x20presenter','requireSession','map','random','LIVESHARE_TERMINATE','getConfig'];_0x37cb=function(){return _0x287a5f;};return _0x37cb();}m=we([Ne(0x0,_0x555b6a(L))],m);var c=function(){var _0x134f6b=_0x111845;return c=Object[_0x134f6b(0xb8)]||function(_0x508a85){var _0x926583=_0x134f6b;for(var _0x36c8ea,_0x40042f=0x1,_0x545627=arguments[_0x926583(0xf0)];_0x40042f<_0x545627;_0x40042f++){_0x36c8ea=arguments[_0x40042f];for(var _0x2851cb in _0x36c8ea)Object[_0x926583(0x14c)][_0x926583(0x135)][_0x926583(0x139)](_0x36c8ea,_0x2851cb)&&(_0x508a85[_0x2851cb]=_0x36c8ea[_0x2851cb]);}return _0x508a85;},c[_0x134f6b(0xcf)](this,arguments);},Ce=function(_0xb53272,_0x485057){var _0x58a998=_0x111845,_0x48b06f={};for(var _0x5957b7 in _0xb53272)Object[_0x58a998(0x14c)][_0x58a998(0x135)][_0x58a998(0x139)](_0xb53272,_0x5957b7)&&_0x485057[_0x58a998(0xda)](_0x5957b7)<0x0&&(_0x48b06f[_0x5957b7]=_0xb53272[_0x5957b7]);if(_0xb53272!=null&&typeof Object['getOwnPropertySymbols']==_0x58a998(0xd3)){for(var _0x2cb156=0x0,_0x5957b7=Object[_0x58a998(0x12c)](_0xb53272);_0x2cb156<_0x5957b7[_0x58a998(0xf0)];_0x2cb156++)_0x485057['indexOf'](_0x5957b7[_0x2cb156])<0x0&&Object[_0x58a998(0x14c)][_0x58a998(0x10d)][_0x58a998(0x139)](_0xb53272,_0x5957b7[_0x2cb156])&&(_0x48b06f[_0x5957b7[_0x2cb156]]=_0xb53272[_0x5957b7[_0x2cb156]]);}return _0x48b06f;},W=_0x5acf19(function(_0x37dc4e,_0x16e46d){var _0x1a449a=_0x111845,_0x119090=_0x37dc4e[_0x1a449a(0x111)],_0x5b6d69=_0x37dc4e['id'],_0x453deb=_0x37dc4e[_0x1a449a(0x14d)],_0x23c15a=_0x37dc4e['extend'],_0x5dd178=Ce(_0x37dc4e,[_0x1a449a(0x111),'id',_0x1a449a(0x14d),_0x1a449a(0x11e)]),_0x1071ef=_0x1a449a(0x12a)[_0x1a449a(0x131)](_0x5b6d69,'\x20')[_0x1a449a(0x131)](_0x453deb||'')[_0x1a449a(0xd7)](),_0x5c0b47=_0x349cca('_'[_0x1a449a(0x131)](Le()));return Y(_0x119090,''[_0x1a449a(0x131)](_0x5b6d69),{'defIds':_0x119090[_0x1a449a(0xde)],'idSuffix':_0x5c0b47[_0x1a449a(0x101)]},c({'ref':_0x16e46d,'className':_0x1071ef},_0x5dd178),_0x23c15a);});function Y(_0xc1a45a,_0x3aed32,_0x507dc5,_0x499c42,_0x592d4f){var _0x56eb01=_0x111845;return _0x1b5217(_0xc1a45a['tag'],c(c({'key':_0x3aed32},De(_0xc1a45a,_0x507dc5,_0x592d4f)),_0x499c42),(xe(_0xc1a45a,_0x507dc5)[_0x56eb01(0x156)]||[])[_0x56eb01(0xe8)](function(_0x311f78,_0x240892){var _0x439f93=_0x56eb01;return Y(_0x311f78,''[_0x439f93(0x131)](_0x3aed32,'-')[_0x439f93(0x131)](_0xc1a45a[_0x439f93(0x132)],'-')[_0x439f93(0x131)](_0x240892),_0x507dc5,void 0x0,_0x592d4f);}));}function _0x18f0(_0x38fa2c,_0x6a360f){var _0x37cb35=_0x37cb();return _0x18f0=function(_0x18f026,_0x248a03){_0x18f026=_0x18f026-0xac;var _0x1c1842=_0x37cb35[_0x18f026];return _0x1c1842;},_0x18f0(_0x38fa2c,_0x6a360f);}function De(_0x497c34,_0x1610bb,_0x257ae5){var _0x1979ea=_0x111845,_0x297d31=c({},_0x497c34[_0x1979ea(0x12b)]);_0x257ae5!=null&&_0x257ae5[_0x1979ea(0x13a)]&&_0x297d31['fill']===_0x1979ea(0x13a)&&(_0x297d31['fill']=_0x257ae5[_0x1979ea(0x13a)]),_0x497c34[_0x1979ea(0x132)]===_0x1979ea(0xf2)&&_0x297d31['id']&&(_0x297d31['id']=_0x297d31['id']+_0x1610bb['idSuffix']),Object[_0x1979ea(0x136)](_0x297d31)[_0x1979ea(0xbf)](function(_0x385c07){var _0x423aca=_0x1979ea,_0x42f6dc=_0x385c07[0x0],_0x2e7171=_0x385c07[0x1];_0x42f6dc===_0x423aca(0xf2)&&typeof _0x2e7171==_0x423aca(0xca)&&(_0x297d31[_0x42f6dc]=_0x2e7171['replace'](/url\(#(.*)\)/,_0x423aca(0x106)[_0x423aca(0x131)](_0x1610bb[_0x423aca(0xdd)],')')));});var _0x2b29ee=_0x1610bb[_0x1979ea(0xde)];return!_0x2b29ee||_0x2b29ee['length']===0x0||(_0x497c34[_0x1979ea(0x132)]===_0x1979ea(0xc4)&&_0x297d31[_0x1979ea(0x150)]&&(_0x297d31[_0x1979ea(0x150)]=_0x297d31[_0x1979ea(0x150)]+_0x1610bb[_0x1979ea(0xdd)]),Object[_0x1979ea(0x136)](_0x297d31)[_0x1979ea(0xbf)](function(_0x18cd21){var _0x3ebb58=_0x1979ea,_0x30fc73=_0x18cd21[0x0],_0x7029a=_0x18cd21[0x1];typeof _0x7029a==_0x3ebb58(0xca)&&(_0x297d31[_0x30fc73]=_0x7029a[_0x3ebb58(0xb6)](/url\(#(.*)\)/,_0x3ebb58(0x106)[_0x3ebb58(0x131)](_0x1610bb[_0x3ebb58(0xdd)],')')));})),_0x297d31;}function xe(_0x2eb9b6,_0x1231aa){var _0x126f00=_0x111845,_0x79d83a,_0x4329c6=_0x1231aa['defIds'];return!_0x4329c6||_0x4329c6[_0x126f00(0xf0)]===0x0?_0x2eb9b6:_0x2eb9b6[_0x126f00(0x132)]==='defs'&&(!((_0x79d83a=_0x2eb9b6['children'])===null||_0x79d83a===void 0x0)&&_0x79d83a['length'])?c(c({},_0x2eb9b6),{'children':_0x2eb9b6['children'][_0x126f00(0xe8)](function(_0x2f5ee5){var _0x4c466a=_0x126f00;return typeof _0x2f5ee5[_0x4c466a(0x12b)]['id']==_0x4c466a(0xca)&&_0x4329c6&&_0x4329c6[_0x4c466a(0x162)](_0x2f5ee5['attrs']['id'])?c(c({},_0x2f5ee5),{'attrs':c(c({},_0x2f5ee5[_0x4c466a(0x12b)]),{'id':_0x2f5ee5[_0x4c466a(0x12b)]['id']+_0x1231aa[_0x4c466a(0xdd)]})}):_0x2f5ee5;})}):_0x2eb9b6;}function Le(){var _0x2b139b=_0x111845;return Math[_0x2b139b(0xe9)]()[_0x2b139b(0x128)](0x24)[_0x2b139b(0xc5)](0x2,0x8);}W[_0x111845(0xd5)]='UniverIcon';var ye={'tag':_0x111845(0xe0),'attrs':{'xmlns':_0x111845(0x108),'fill':_0x111845(0xc1),'viewBox':_0x111845(0x10a),'width':_0x111845(0x109),'height':'1em'},'children':[{'tag':_0x111845(0xb1),'attrs':{'fill':_0x111845(0x12f),'d':_0x111845(0xc0)}},{'tag':_0x111845(0xb1),'attrs':{'fill':_0x111845(0x12f),'d':_0x111845(0x10c),'fillRule':'evenodd','clipRule':_0x111845(0x114)}}]},B=_0x5acf19(function(_0x3d83a0,_0x1ddfa6){var _0x14eb1d=_0x111845;return _0x1b5217(W,Object[_0x14eb1d(0xb8)]({},_0x3d83a0,{'id':'live-share-icon','ref':_0x1ddfa6,'icon':ye}));});B[_0x111845(0xd5)]=_0x111845(0xee);var Re=Object[_0x111845(0x13f)],Z=(_0x513ca8,_0x3a40ad,_0x1d8632,_0x59f338)=>{var _0x2866b3=_0x111845;for(var _0x1feb58=_0x59f338>0x1?void 0x0:_0x59f338?Re(_0x3a40ad,_0x1d8632):_0x3a40ad,_0x307d02=_0x513ca8[_0x2866b3(0xf0)]-0x1,_0x44cc42;_0x307d02>=0x0;_0x307d02--)(_0x44cc42=_0x513ca8[_0x307d02])&&(_0x1feb58=_0x44cc42(_0x1feb58)||_0x1feb58);return _0x1feb58;},f=(_0x5af15f,_0x219101)=>(_0x52c4ae,_0x2ef743)=>_0x219101(_0x52c4ae,_0x2ef743,_0x5af15f);let I=class extends _0x355afe{constructor(_0x58ee33,_0x57da69,_0x5125bc){var _0xcaf2a=_0x111845;super(),d(this,_0xcaf2a(0x102),new Map()),(this['_univerInstanceService']=_0x58ee33,this[_0xcaf2a(0xf9)]=_0x57da69,this[_0xcaf2a(0x119)]=_0x5125bc,this[_0xcaf2a(0xd8)]());}async[_0x111845(0x10e)](_0x4debf9){var _0x4a39d1=_0x111845;return this[_0x4a39d1(0x102)][_0x4a39d1(0x15f)](_0x4debf9)||await this[_0x4a39d1(0xf7)](_0x4debf9),this[_0x4a39d1(0x102)]['get'](_0x4debf9);}[_0x111845(0xd8)](){var _0x97c101=_0x111845;this['_univerInstanceService'][_0x97c101(0xbe)](_0x36368d[_0x97c101(0x13b)])[_0x97c101(0xf4)](_0x3fc736(this[_0x97c101(0x123)]))['subscribe'](async _0x31edb5=>{var _0x6862f0=_0x97c101;const _0x45a15b=_0x31edb5[_0x6862f0(0x160)]();this[_0x6862f0(0x102)][_0x6862f0(0x15f)](_0x45a15b)||this[_0x6862f0(0xf7)](_0x45a15b);}),this[_0x97c101(0x14b)][_0x97c101(0xfa)](_0x36368d[_0x97c101(0x13b)])[_0x97c101(0xf4)](_0x3fc736(this[_0x97c101(0x123)]))[_0x97c101(0xc9)](_0x2644dc=>{var _0x409d19=_0x97c101;const _0x3e8dce=_0x2644dc['getUnitId'](),_0x241df4=this['_entities'][_0x409d19(0xf3)](_0x3e8dce);_0x241df4==null||_0x241df4[_0x409d19(0x116)]();});}async[_0x111845(0xf7)](_0x463d7a){var _0x124862=_0x111845;const _0x27a50a=await this[_0x124862(0x119)][_0x124862(0xe7)](_0x463d7a),_0x4b4485=this[_0x124862(0xf9)][_0x124862(0x117)](C,_0x463d7a,_0x27a50a);return _0x4b4485[_0x124862(0xcd)](),this[_0x124862(0x102)][_0x124862(0xf8)](_0x463d7a,_0x4b4485),_0x4b4485;}};I=Z([f(0x0,_0x2a63fd),f(0x1,_0x555b6a(_0x184d2a)),f(0x2,_0x555b6a(_0x1ac019))],I);var h=(_0x81e26b=>(_0x81e26b[_0x111845(0xe4)]=_0x111845(0x152),_0x81e26b[_0x111845(0x143)]=_0x111845(0xb0),_0x81e26b['FOLLOWING']=_0x111845(0xb3),_0x81e26b[_0x111845(0xb9)]=_0x111845(0x11b),_0x81e26b[_0x111845(0xdc)]=_0x111845(0x100),_0x81e26b))(h||{});const Pe=_0x111845(0x113),Ae=0xc8;let C=class extends _0x355afe{constructor(_0x4f6e98,_0x140a09,_0x579960,_0x158d89,_0x3323ec){var _0x17d75c=_0x111845;super(),d(this,_0x17d75c(0xc2),new _0x37413d(_0x17d75c(0xb0))),d(this,'status$',this[_0x17d75c(0xc2)][_0x17d75c(0xff)]()),d(this,'_init',!0x1),d(this,_0x17d75c(0x145),null),d(this,_0x17d75c(0x10b),null),(this[_0x17d75c(0xaf)]=_0x4f6e98,this[_0x17d75c(0x15c)]=_0x140a09,this[_0x17d75c(0xcc)]=_0x579960,this[_0x17d75c(0xd0)]=_0x158d89,this[_0x17d75c(0x11f)]=_0x3323ec);}get[_0x111845(0xef)](){var _0x34dcfc=_0x111845;return this[_0x34dcfc(0xc2)][_0x34dcfc(0x127)]();}[_0x111845(0x116)](){var _0x4f95cf=_0x111845,_0x3ebf86;(_0x3ebf86=this[_0x4f95cf(0x145)])==null||_0x3ebf86[_0x4f95cf(0x116)](),this[_0x4f95cf(0xc2)][_0x4f95cf(0x121)]('idle'),this[_0x4f95cf(0xc2)][_0x4f95cf(0x104)]();}[_0x111845(0xcd)](){var _0x47812c=_0x111845;this[_0x47812c(0xd8)]||(this[_0x47812c(0xd8)]=!0x0,this[_0x47812c(0x15c)][_0x47812c(0xb2)][_0x47812c(0xf4)](_0x3fc736(this['dispose$']))[_0x47812c(0xc9)](_0x4fe7bc=>{var _0x1a8c5e=_0x47812c;switch(_0x4fe7bc){case _0x29ebe5[_0x1a8c5e(0xe4)]:this['_handleOffline']();break;case _0x29ebe5[_0x1a8c5e(0x120)]:this[_0x1a8c5e(0xc8)]();break;}}),this[_0x47812c(0x15c)][_0x47812c(0x10f)][_0x47812c(0xf4)](_0x3fc736(this[_0x47812c(0x123)]))[_0x47812c(0xc9)](_0x4c2a2a=>{var _0x16a734=_0x47812c;const {eventID:_0x593ae2}=_0x4c2a2a;switch(_0x593ae2){case _0x310aef['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4c2a2a);break;case _0x310aef[_0x16a734(0x105)]:this[_0x16a734(0x13d)](_0x4c2a2a);break;case _0x310aef['LIVESHARE_TERMINATE']:this[_0x16a734(0xf5)]();break;case _0x310aef[_0x16a734(0x149)]:this[_0x16a734(0xf1)](_0x4c2a2a);break;}}));}[_0x111845(0x147)](){var _0x2c3bcf=_0x111845;this[_0x2c3bcf(0x15c)][_0x2c3bcf(0x115)]({'eventID':_0x310aef[_0x2c3bcf(0xfc)],'data':{'unitID':this[_0x2c3bcf(0xaf)],'userID':this[_0x2c3bcf(0x15c)][_0x2c3bcf(0xe1)]()}},this[_0x2c3bcf(0xaf)]);}[_0x111845(0xcb)](){var _0x3fe76d=_0x111845;this[_0x3fe76d(0xef)]===_0x3fe76d(0x100)&&(this[_0x3fe76d(0xc2)][_0x3fe76d(0x121)](_0x3fe76d(0xb0)),this['_collabSession'][_0x3fe76d(0x115)]({'eventID':_0x310aef[_0x3fe76d(0xea)],'data':{'unitID':this[_0x3fe76d(0xaf)]}},this[_0x3fe76d(0xaf)]));}['startFollowing'](){var _0x4dccd1=_0x111845;this[_0x4dccd1(0xef)]==='not-following'&&(this['_status$'][_0x4dccd1(0x121)]('following'),this[_0x4dccd1(0x137)]());}[_0x111845(0x141)](){var _0x1a7bbb=_0x111845;this[_0x1a7bbb(0xef)]===_0x1a7bbb(0xb3)&&this['_stopFollowing']();}[_0x111845(0xd1)](_0x8857df){var _0x3a18df=_0x111845;const {presenter:_0x1151ac}=_0x8857df['data'],_0x2da471=this[_0x3a18df(0x15c)][_0x3a18df(0xe1)]();this['_presenter']=_0x1151ac,_0x1151ac===_0x2da471?(this[_0x3a18df(0x14a)](),this[_0x3a18df(0x142)]()):this[_0x3a18df(0xef)]!==_0x3a18df(0x11b)&&(this[_0x3a18df(0x158)](),this[_0x3a18df(0x137)]());}[_0x111845(0x15e)](){var _0x4cdce5=_0x111845;const _0x374b0f={'eventID':_0x310aef['LIVESHARE_FETCH_OPERATIONS']};this[_0x4cdce5(0x15c)][_0x4cdce5(0x115)](_0x374b0f,this['_unitID']);}['_handleTerminate'](){var _0x2f2782=_0x111845;this[_0x2f2782(0x10b)]=null,this[_0x2f2782(0xef)]!==_0x2f2782(0x100)&&this[_0x2f2782(0x144)]();}[_0x111845(0xf1)](_0x1d9439){var _0x29a569=_0x111845;if(this[_0x29a569(0xef)]===_0x29a569(0xb3)&&this[_0x29a569(0x10b)]===_0x1d9439[_0x29a569(0xfe)][_0x29a569(0x112)]){const _0x3e7646=_0x58cb90(_0x1d9439[_0x29a569(0xfe)])[_0x29a569(0x11c)]['reverse']()[_0x29a569(0xd4)](_0x35f3c8=>_0x35f3c8['id']===_0x885b41['id']);if(_0x3e7646){const _0x3c0102=_0x3e7646['params'][_0x29a569(0xbd)],_0x5ab89a=_0x3e7646['params'][_0x29a569(0x14e)]['id'];setTimeout(()=>{var _0xb38178=_0x29a569;this[_0xb38178(0x11f)][_0xb38178(0x130)](_0x592534['id'],{'unitId':_0x3c0102,'subUnitId':_0x5ab89a},{'fromCollab':!0x0});});}}}[_0x111845(0x142)](){var _0xde3308=_0x111845;this[_0xde3308(0xc2)][_0xde3308(0x121)](_0xde3308(0x100));const _0x29ce96=new Map(),_0x28a3aa=this['_commandDisposable']=new _0x5a3486();_0x28a3aa['add'](_0x2b451f(()=>{var _0x8d82d9=_0xde3308;_0x29ce96[_0x8d82d9(0xbf)](_0x30230f=>_0x30230f['complete']()),_0x29ce96[_0x8d82d9(0xec)]();})),_0x28a3aa['add'](this[_0xde3308(0x11f)][_0xde3308(0x125)](_0x5f016a=>{var _0x3f72f4=_0xde3308,_0x36002d;if(_0x5f016a[_0x3f72f4(0x110)]!==_0x216e4e[_0x3f72f4(0xb5)]||!this['_liveShareService']['shouldShareOperation'](_0x5f016a['id']))return;const {id:_0x465dd2}=_0x5f016a;let _0x4fe5e0;_0x29ce96[_0x3f72f4(0x15f)](_0x465dd2)?_0x4fe5e0=_0x29ce96['get'](_0x465dd2):(_0x4fe5e0=new _0x35d171(),_0x29ce96[_0x3f72f4(0xf8)](_0x465dd2,_0x4fe5e0),_0x4fe5e0['pipe'](_0x23c445((_0x36002d=this[_0x3f72f4(0xcc)][_0x3f72f4(0xeb)](Pe))!=null?_0x36002d:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3f72f4(0xc9)](_0x4a0355=>{var _0x52ba58=_0x3f72f4;this[_0x52ba58(0x15c)]['send']({'eventID':_0x310aef[_0x52ba58(0x105)],'data':{'unitID':this[_0x52ba58(0xaf)],'operations':{[_0x4a0355['id']]:{'id':_0x4a0355['id'],'params':JSON[_0x52ba58(0xad)](_0x4a0355['params'])}}}},this[_0x52ba58(0xaf)]);})),_0x4fe5e0[_0x3f72f4(0x121)](_0x5f016a);})),this[_0xde3308(0xd0)][_0xde3308(0x126)](this[_0xde3308(0xaf)])[_0xde3308(0xbf)](_0x133707=>this[_0xde3308(0x15c)][_0xde3308(0x115)]({'eventID':_0x310aef[_0xde3308(0x105)],'data':{'unitID':this[_0xde3308(0xaf)],'operations':{[_0x133707['id']]:{'id':_0x133707['id'],'params':JSON[_0xde3308(0xad)](_0x133707[_0xde3308(0x15b)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x16aec4=_0x111845,_0x3a3805;this[_0x16aec4(0xc2)][_0x16aec4(0x121)]('idle'),(_0x3a3805=this['_commandDisposable'])==null||_0x3a3805[_0x16aec4(0x116)](),this[_0x16aec4(0x145)]=null;}[_0x111845(0x137)](){var _0x331ff8=_0x111845,_0x2d541b;(_0x2d541b=this[_0x331ff8(0x145)])==null||_0x2d541b[_0x331ff8(0x116)](),this[_0x331ff8(0xc2)][_0x331ff8(0x121)](_0x331ff8(0xb3));}[_0x111845(0x144)](){var _0xcadade=_0x111845,_0x466821;this[_0xcadade(0xc2)][_0xcadade(0x121)](_0xcadade(0xb0)),(_0x466821=this[_0xcadade(0x145)])==null||_0x466821[_0xcadade(0x116)](),this[_0xcadade(0x145)]=null;}['_stopFollowing'](){var _0x285e3d=_0x111845,_0x30edd8;this[_0x285e3d(0xc2)][_0x285e3d(0x121)]('not-following'),(_0x30edd8=this[_0x285e3d(0x145)])==null||_0x30edd8[_0x285e3d(0x116)]();}[_0x111845(0x13d)](_0x47fda){var _0x3c6db2=_0x111845;if([_0x3c6db2(0x100),_0x3c6db2(0x11b),_0x3c6db2(0x152)][_0x3c6db2(0x162)](this[_0x3c6db2(0xef)])||!_0x47fda[_0x3c6db2(0xfe)]['presenter']||_0x47fda[_0x3c6db2(0xfe)][_0x3c6db2(0x154)]===this[_0x3c6db2(0x15c)][_0x3c6db2(0xe1)]())return;this['_status']==='idle'&&this[_0x3c6db2(0x137)]();const _0x3087d5=_0x47fda[_0x3c6db2(0xfe)][_0x3c6db2(0xd9)];Object[_0x3c6db2(0x122)](_0x3087d5)['forEach'](_0x59bebf=>{var _0x1bb567=_0x3c6db2;this[_0x1bb567(0x11f)]['executeCommand'](_0x59bebf['id'],_0x59bebf['params']?JSON[_0x1bb567(0x13c)](_0x59bebf[_0x1bb567(0x15b)]):null,{'fromCollab':!0x0});});}[_0x111845(0xb7)](){var _0x31b2b4=_0x111845,_0x29f3d7;this[_0x31b2b4(0xc2)]['next'](_0x31b2b4(0x152)),(_0x29f3d7=this[_0x31b2b4(0x145)])==null||_0x29f3d7[_0x31b2b4(0x116)]();}[_0x111845(0xc8)](){var _0x1881d6=_0x111845;this['_status$'][_0x1881d6(0x121)](_0x1881d6(0xb0)),this['_fetchOperations']();}};C=Z([f(0x2,_0x5942dd),f(0x3,_0x555b6a(L)),f(0x4,_0xebcdd)],C);function Te(){var _0x5114e4=_0x111845;const _0x3445f6=_0x71080f(I),_0x9f9a1a=_0x71080f(_0x2a63fd),_0x5bac64=_0x3a54bb(()=>_0x9f9a1a[_0x5114e4(0x13e)](_0x36368d[_0x5114e4(0x13b)]),void 0x0,!0x1,[]),[_0x177de8,_0x476210]=_0x198177(null),[_0x21b854,_0x42b410]=_0x198177(h[_0x5114e4(0x143)]),_0x2a1b25=_0x349cca(null);return _0x4a5c1f(()=>(_0x5bac64&&_0x3445f6[_0x5114e4(0x10e)](_0x5bac64['getUnitId']())[_0x5114e4(0x107)](_0x251ef5=>{var _0xc0952d=_0x5114e4;_0x476210(_0x251ef5),_0x2a1b25['current']=_0x251ef5[_0xc0952d(0xc3)][_0xc0952d(0xc9)](_0x155664=>{_0x42b410(_0x155664);});}),()=>{var _0x1e7845=_0x5114e4,_0x394705;(_0x394705=_0x2a1b25[_0x1e7845(0x101)])==null||_0x394705[_0x1e7845(0xe5)](),_0x2a1b25[_0x1e7845(0x101)]=null;}),[_0x5bac64,_0x3445f6]),_0x177de8?_0x33981f(_0x1a6ce9,{'align':'end','disabled':_0x21b854===h[_0x5114e4(0xe4)],'className':_0x5114e4(0x118),'overlay':_0x33981f($e,{'status':_0x21b854,'coordinator':_0x177de8}),'children':_0x33981f(_0x5114e4(0xbb),{'className':_0x1ef98e('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x21b854===h[_0x5114e4(0xe4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21b854!==h['OFFLINE']}),'type':_0x5114e4(0xbb),'children':_0x33981f(B,{'className':_0x5114e4(0x155)})})}):null;}function $e(_0x394cd6){var _0x419be0=_0x111845;const {status:_0x335cc2,coordinator:_0x22fb02}=_0x394cd6;switch(_0x335cc2){case h['IDLE']:return _0x33981f(Fe,{'coordinator':_0x22fb02});case h['FOLLOWING']:return _0x33981f(He,{'coordinator':_0x22fb02});case h['NOT_FOLLOWING']:return _0x33981f(je,{'coordinator':_0x22fb02});case h[_0x419be0(0xe4)]:return _0x33981f(Ve,{});case h[_0x419be0(0xdc)]:return _0x33981f(Ue,{'coordinator':_0x22fb02});default:return null;}}function Fe(_0x3b54a9){var _0x576c38=_0x111845;const {coordinator:_0xa4f667}=_0x3b54a9;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x576c38(0x161),{'className':_0x576c38(0xe3),'children':'Present\x20this\x20document'}),_0x33981f(_0x28744d,{'onClick':()=>_0xa4f667[_0x576c38(0x147)](),'children':'Start'})]});}function He(_0x3b6174){var _0x504461=_0x111845;const {coordinator:_0xf2c592}=_0x3b6174;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x504461(0x161),{'className':_0x504461(0xe3),'children':_0x504461(0xf6)}),_0x33981f(_0x28744d,{'onClick':()=>_0xf2c592[_0x504461(0x141)](),'children':'Stop\x20following'})]});}function je(_0x1f5d45){var _0x216ecd=_0x111845;const {coordinator:_0x335676}=_0x1f5d45;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x216ecd(0x161),{'className':_0x216ecd(0xe3),'children':_0x216ecd(0xe6)}),_0x33981f(_0x28744d,{'variant':_0x216ecd(0x140),'onClick':()=>_0x335676[_0x216ecd(0x15a)](),'children':_0x216ecd(0x129)})]});}function Ue(_0x4d3787){var _0x1a6082=_0x111845;const {coordinator:_0x570917}=_0x4d3787;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x1a6082(0x161),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1a6082(0xfd)}),_0x33981f(_0x28744d,{'variant':'default','onClick':()=>_0x570917[_0x1a6082(0xcb)](),'children':_0x1a6082(0x146)})]});}function Ve(){return _0x33981f(_0x476040,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x111845(0x13f)],ke=(_0x4ad446,_0x55edca,_0x110311,_0x330de9)=>{var _0xb1adee=_0x111845;for(var _0x30a031=_0x330de9>0x1?void 0x0:_0x330de9?Me(_0x55edca,_0x110311):_0x55edca,_0x575951=_0x4ad446[_0xb1adee(0xf0)]-0x1,_0x2ad450;_0x575951>=0x0;_0x575951--)(_0x2ad450=_0x4ad446[_0x575951])&&(_0x30a031=_0x2ad450(_0x30a031)||_0x30a031);return _0x30a031;},$=(_0x98cad0,_0x2e1eb3)=>(_0x1a6655,_0x5e9046)=>_0x2e1eb3(_0x1a6655,_0x5e9046,_0x98cad0);let b=class extends _0x4c2516{constructor(_0x2644fc,_0x574014){var _0x26d564=_0x111845;super(),this[_0x26d564(0xf9)]=_0x2644fc,this[_0x26d564(0x148)]=_0x574014,this[_0x26d564(0x151)]();}[_0x111845(0x151)](){var _0x1bdaf1=_0x111845;this[_0x1bdaf1(0x12d)](this[_0x1bdaf1(0x148)][_0x1bdaf1(0x134)](_0xb3b934[_0x1bdaf1(0x11a)],()=>_0x3f0fd6(Te,this['_injector'])));}};b=ke([$(0x0,_0x555b6a(_0x184d2a)),$(0x1,_0x150f06)],b);var Ge=Object[_0x111845(0x11d)],We=Object[_0x111845(0x13f)],Ye=(_0x5d3fdb,_0x25a8e0,_0x17ff18)=>_0x25a8e0 in _0x5d3fdb?Ge(_0x5d3fdb,_0x25a8e0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17ff18}):_0x5d3fdb[_0x25a8e0]=_0x17ff18,Be=(_0x1cc361,_0x54a335,_0x2d616c,_0x298143)=>{var _0x436b20=_0x111845;for(var _0x5148ac=_0x298143>0x1?void 0x0:_0x298143?We(_0x54a335,_0x2d616c):_0x54a335,_0x277caf=_0x1cc361[_0x436b20(0xf0)]-0x1,_0x42777b;_0x277caf>=0x0;_0x277caf--)(_0x42777b=_0x1cc361[_0x277caf])&&(_0x5148ac=_0x42777b(_0x5148ac)||_0x5148ac);return _0x5148ac;},F=(_0x17fab3,_0x1b0c65)=>(_0x4ebbc2,_0x536082)=>_0x1b0c65(_0x4ebbc2,_0x536082,_0x17fab3),J=(_0x3eddcd,_0x4debfc,_0xaa0a3)=>Ye(_0x3eddcd,typeof _0x4debfc!='symbol'?_0x4debfc+'':_0x4debfc,_0xaa0a3);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x19e569{constructor(_0x16fde1=T,_0x303e94,_0x2f3bb2){var _0x4fe7b5=_0x111845;super(),this['_config']=_0x16fde1,this[_0x4fe7b5(0xf9)]=_0x303e94,this[_0x4fe7b5(0xcc)]=_0x2f3bb2;const {..._0x59c25a}=_0x47cc38({},T,this[_0x4fe7b5(0x12e)]);this[_0x4fe7b5(0xcc)][_0x4fe7b5(0xdb)](Oe,_0x59c25a);}['onStarting'](){var _0x2eefa1=_0x111845;_0x134e0c(this[_0x2eefa1(0xf9)],_0x9bf70b([[L],[I],[m],[b]],this[_0x2eefa1(0x12e)][_0x2eefa1(0xce)])),_0x4b550f(this[_0x2eefa1(0xf9)],[[m]]);}[_0x111845(0x133)](){_0x4b550f(this['_injector'],[[b]]);}};J(O,_0x111845(0x110),_0x36368d[_0x111845(0xfb)]),J(O,'pluginName',Ze),O=Be([_0x49dea1(_0x472ee4),F(0x1,_0x555b6a(_0x184d2a)),F(0x2,_0x5942dd)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x2886db=_0x695d;(function(_0x2703d9,_0x3b1564){var _0x42cf87=_0x695d,_0x447e39=_0x2703d9();while(!![]){try{var _0x16c535=parseInt(_0x42cf87(0x1a3))/0x1+-parseInt(_0x42cf87(0x1ea))/0x2+parseInt(_0x42cf87(0x1e2))/0x3+-parseInt(_0x42cf87(0x1c1))/0x4+parseInt(_0x42cf87(0x1a0))/0x5*(parseInt(_0x42cf87(0x1bb))/0x6)+parseInt(_0x42cf87(0x187))/0x7+parseInt(_0x42cf87(0x1c2))/0x8;if(_0x16c535===_0x3b1564)break;else _0x447e39['push'](_0x447e39['shift']());}catch(_0x21a2b3){_0x447e39['push'](_0x447e39['shift']());}}}(_0xe8c5,0xc1a67));var q=Object[_0x2886db(0x1fe)],z=(_0x6fd7f3,_0xf382dd,_0x4ef9e4)=>_0xf382dd in _0x6fd7f3?q(_0x6fd7f3,_0xf382dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ef9e4}):_0x6fd7f3[_0xf382dd]=_0x4ef9e4,d=(_0x49ce15,_0x2e15bc,_0x366d9a)=>z(_0x49ce15,typeof _0x2e15bc!=_0x2886db(0x1c0)?_0x2e15bc+'':_0x2e15bc,_0x366d9a);import{CollaborationSessionService as _0x37b98,SessionStatus as _0x4e7aee,UniverCollaborationClientPlugin as _0x5a9880}from'@univerjs-pro/collaboration-client';import{Disposable as _0x172f34,toDisposable as _0x3a14b5,Inject as _0x10aaa1,IUniverInstanceService as _0x11d622,Injector as _0x2015d8,IConfigService as _0x37a6e8,ICommandService as _0x342266,RxDisposable as _0x6f1f15,UniverInstanceType as _0x4aff88,DisposableCollection as _0x274689,CommandType as _0x55a605,DependentOn as _0x35d3f7,Plugin as _0x3a7036,merge as _0x4c5a48,registerDependencies as _0x5c518a,mergeOverrideWithDependencies as _0x1d9838,touchDependencies as _0x1e2724}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xcf814f,InsertSheetMutation as _0x1800b8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x59a1e5,SetScrollOperation as _0x28ccdf}from'@univerjs/sheets-ui';import{useDependency as _0x5b3603,useObservable as _0x2d4df2,IUIPartsService as _0x125ac6,BuiltInUIPart as _0x2083b0,connectInjector as _0x1b45da}from'@univerjs/ui';function _0xe8c5(){var _0x5b08f7=['_commandDisposable','data','_uiPartsService','UNIVER_LIVE_SHARE_PLUGIN','_fetchOperations','status$','createInstance','not-following','_unitID','160GtGCon','displayName','_collabSession','672842RruRfX','clear','http://www.w3.org/2000/svg','_configService','_handleTerminate','pluginName','getTypeOfUnitAdded$','registerInitialStateReporter','NOT_FOLLOWING','svg','onCommandExecuted','button','path','unsubscribe','_univerInstanceService','substring','_liveShareService','getMemberID','init','Start\x20following','operations','end','mask','find','41682tSaQyj','_stopPresenting','sheet','startFollowing','SAME_OPERATION_SHARE_INTERVAL','symbol','5727132ibxYQW','5709768gAsUEh','pipe','send','subscribe','getTypeOfUnitDisposed$','OPERATION','univer-w-full\x20univer-mb-3\x20univer-text-sm','presenter','univerjs-icon\x20univerjs-icon-','indexOf','sessionStatus$','function','use','registerComponent','icon','set','add','LIVESHARE_TERMINATE','stopPresenting','Start','OFFLINE','currentColor','getUnitId','values','idle','UNIVER_SHEET','replace','map','asObservable','You\x27re\x20not\x20following\x20the\x20presenter','getOwnPropertyDescriptor','_handleNewChangeSets','2559432JKoicy','get','IDLE','_status$','stopFollowing','default','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','HEADER_MENU','2289478UaXRZi','extend','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_startFollowing','params','getLiveShareCoordinator','_startLiveShareCoordinator','disposeWithMe','univer-size-4','You\x27re\x20presenting\x20the\x20document','unitId','text','url(#$1','memberID','1em','_status','current','getInitialStates','idSuffix','xlink:href','defineProperty','dispose','getConfig','onStarting','PRESENTING','shouldShareOperation','from','length','dispose$','_presenter','trim','_entities','string','_init','includes','LIVESHARE_REQUEST_HOST','Stop\x20following','prototype','stringify','_stopFollowing','forEach','registerSharedOperation','hasOwnProperty','colorChannel1','_sharedOperations','LIVESHARE_OPERATION','requireSession','_handleNewHost','_commandService','parse','LIVESHARE_FETCH_OPERATIONS','_config','defIds','_injector','Stop\x20presenting','type','_beIdle','mutations','UniverIcon','evenodd','live-share-icon','presenting','none','Present\x20this\x20document','_reporters','div','tag','apply','_handleOnline','_mountLiveShare','has','reverse','UNIVER_UNKNOWN','children','delete','_handleOperation','setConfig','6353914RfmbYB','tryStartPresenting','random','You\x27re\x20following\x20the\x20presenter','offline','getCurrentTypeOfUnit$','following','attrs','concat','next','FOLLOWING','assign','then','executeCommand','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','call'];_0xe8c5=function(){return _0x5b08f7;};return _0xe8c5();}import{jsx as _0x3a52ad,jsxs as _0x199030,Fragment as _0x1dbeda}from'react/jsx-runtime';import{Dropdown as _0x4dd19b,clsx as _0x2351ae,Button as _0x2dde90}from'@univerjs/design';import{forwardRef as _0x55f301,useRef as _0x2d195a,createElement as _0xc61559,useState as _0x11cb7c,useEffect as _0x548d7b}from'react';import{CollaborationEvent as _0x31f6e1,parseProtocolChangeset as _0xb1adb}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1dc9f4,Subject as _0x5762}from'rxjs';import{takeUntil as _0x120c99,throttleTime as _0x2d347e}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x172f34{constructor(){var _0x530ca9=_0x2886db;super(...arguments),d(this,_0x530ca9(0x216),new Set()),d(this,_0x530ca9(0x17a),new Set());}[_0x2886db(0x213)](_0xa9a2eb){var _0x3ab327=_0x2886db;return this[_0x3ab327(0x216)]['add'](_0xa9a2eb),_0x3a14b5(()=>this[_0x3ab327(0x216)][_0x3ab327(0x184)](_0xa9a2eb));}[_0x2886db(0x1aa)](_0xd28cfd){var _0x43d297=_0x2886db;return this[_0x43d297(0x17a)]['add'](_0xd28cfd),_0x3a14b5(()=>this[_0x43d297(0x17a)][_0x43d297(0x184)](_0xd28cfd));}[_0x2886db(0x203)](_0x1be4db){var _0x40f7d5=_0x2886db;return this[_0x40f7d5(0x216)]['has'](_0x1be4db);}[_0x2886db(0x1fb)](_0x183b70){var _0x4fee2f=_0x2886db;return Array[_0x4fee2f(0x204)](this['_reporters'])[_0x4fee2f(0x1dd)](_0x50791d=>_0x50791d(_0x183b70));}}var Ee=Object[_0x2886db(0x1e0)],we=(_0x18011c,_0x10c997,_0x2ff8b6,_0x4c53c0)=>{var _0x35c24c=_0x2886db;for(var _0x5bccd3=_0x4c53c0>0x1?void 0x0:_0x4c53c0?Ee(_0x10c997,_0x2ff8b6):_0x10c997,_0x476d91=_0x18011c[_0x35c24c(0x205)]-0x1,_0xb2602c;_0x476d91>=0x0;_0x476d91--)(_0xb2602c=_0x18011c[_0x476d91])&&(_0x5bccd3=_0xb2602c(_0x5bccd3)||_0x5bccd3);return _0x5bccd3;},Ne=(_0xcb8e00,_0x1bdf91)=>(_0x27709c,_0x5d933b)=>_0x1bdf91(_0x27709c,_0x5d933b,_0xcb8e00);let m=class extends _0x172f34{constructor(_0x1c26df){var _0x27310a=_0x2886db;super(),this[_0x27310a(0x1b3)]=_0x1c26df,this[_0x27310a(0x20b)]();}['_init'](){[_0x59a1e5['id'],_0x28ccdf['id'],_0xcf814f['id']]['forEach'](_0x45fb27=>{var _0x338720=_0x695d;this[_0x338720(0x1f1)](this[_0x338720(0x1b3)][_0x338720(0x213)](_0x45fb27));});}};m=we([Ne(0x0,_0x10aaa1(L))],m);var c=function(){var _0x28ffd9=_0x2886db;return c=Object['assign']||function(_0x42fdd4){var _0xc4ae1b=_0x695d;for(var _0x4fbdf2,_0x1b24f6=0x1,_0x1c5fe9=arguments[_0xc4ae1b(0x205)];_0x1b24f6<_0x1c5fe9;_0x1b24f6++){_0x4fbdf2=arguments[_0x1b24f6];for(var _0x4f99a7 in _0x4fbdf2)Object[_0xc4ae1b(0x20f)]['hasOwnProperty'][_0xc4ae1b(0x196)](_0x4fbdf2,_0x4f99a7)&&(_0x42fdd4[_0x4f99a7]=_0x4fbdf2[_0x4f99a7]);}return _0x42fdd4;},c[_0x28ffd9(0x17d)](this,arguments);},Ce=function(_0x397068,_0x18e9a5){var _0x21b23c=_0x2886db,_0xbe4af8={};for(var _0x5791af in _0x397068)Object['prototype'][_0x21b23c(0x214)][_0x21b23c(0x196)](_0x397068,_0x5791af)&&_0x18e9a5['indexOf'](_0x5791af)<0x0&&(_0xbe4af8[_0x5791af]=_0x397068[_0x5791af]);if(_0x397068!=null&&typeof Object['getOwnPropertySymbols']==_0x21b23c(0x1cd)){for(var _0x365b14=0x0,_0x5791af=Object['getOwnPropertySymbols'](_0x397068);_0x365b14<_0x5791af[_0x21b23c(0x205)];_0x365b14++)_0x18e9a5[_0x21b23c(0x1cb)](_0x5791af[_0x365b14])<0x0&&Object[_0x21b23c(0x20f)]['propertyIsEnumerable'][_0x21b23c(0x196)](_0x397068,_0x5791af[_0x365b14])&&(_0xbe4af8[_0x5791af[_0x365b14]]=_0x397068[_0x5791af[_0x365b14]]);}return _0xbe4af8;},W=_0x55f301(function(_0x362ed2,_0x2ad381){var _0x393126=_0x2886db,_0x105cb4=_0x362ed2[_0x393126(0x1d0)],_0x32307a=_0x362ed2['id'],_0x30c563=_0x362ed2['className'],_0x5a4b4a=_0x362ed2['extend'],_0x4a13c3=Ce(_0x362ed2,[_0x393126(0x1d0),'id','className',_0x393126(0x1eb)]),_0xadbe55=_0x393126(0x1ca)[_0x393126(0x18f)](_0x32307a,'\x20')[_0x393126(0x18f)](_0x30c563||'')[_0x393126(0x208)](),_0x323407=_0x2d195a('_'['concat'](Le()));return Y(_0x105cb4,''[_0x393126(0x18f)](_0x32307a),{'defIds':_0x105cb4[_0x393126(0x21e)],'idSuffix':_0x323407[_0x393126(0x1fa)]},c({'ref':_0x2ad381,'className':_0xadbe55},_0x4a13c3),_0x5a4b4a);});function Y(_0x56ab80,_0x5478e5,_0x5ac3d4,_0x56c996,_0x55335c){var _0x399ce6=_0x2886db;return _0xc61559(_0x56ab80[_0x399ce6(0x17c)],c(c({'key':_0x5478e5},De(_0x56ab80,_0x5ac3d4,_0x55335c)),_0x56c996),(xe(_0x56ab80,_0x5ac3d4)['children']||[])[_0x399ce6(0x1dd)](function(_0x51dd99,_0x280f97){var _0x51b815=_0x399ce6;return Y(_0x51dd99,''['concat'](_0x5478e5,'-')[_0x51b815(0x18f)](_0x56ab80[_0x51b815(0x17c)],'-')[_0x51b815(0x18f)](_0x280f97),_0x5ac3d4,void 0x0,_0x55335c);}));}function De(_0x2d8e39,_0x358f41,_0x3e1612){var _0x502666=_0x2886db,_0x12043d=c({},_0x2d8e39[_0x502666(0x18e)]);_0x3e1612!=null&&_0x3e1612[_0x502666(0x215)]&&_0x12043d['fill']===_0x502666(0x215)&&(_0x12043d['fill']=_0x3e1612[_0x502666(0x215)]),_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1b9)&&_0x12043d['id']&&(_0x12043d['id']=_0x12043d['id']+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x36579d){var _0x36c549=_0x502666,_0x3e4d7d=_0x36579d[0x0],_0x37ffee=_0x36579d[0x1];_0x3e4d7d===_0x36c549(0x1b9)&&typeof _0x37ffee==_0x36c549(0x20a)&&(_0x12043d[_0x3e4d7d]=_0x37ffee[_0x36c549(0x1dc)](/url\(#(.*)\)/,_0x36c549(0x1f6)['concat'](_0x358f41[_0x36c549(0x1fc)],')')));});var _0x3cad34=_0x358f41[_0x502666(0x21e)];return!_0x3cad34||_0x3cad34[_0x502666(0x205)]===0x0||(_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1ce)&&_0x12043d[_0x502666(0x1fd)]&&(_0x12043d[_0x502666(0x1fd)]=_0x12043d[_0x502666(0x1fd)]+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x31012a){var _0x50d183=_0x502666,_0x662a59=_0x31012a[0x0],_0x516b0d=_0x31012a[0x1];typeof _0x516b0d==_0x50d183(0x20a)&&(_0x12043d[_0x662a59]=_0x516b0d[_0x50d183(0x1dc)](/url\(#(.*)\)/,'url(#$1'[_0x50d183(0x18f)](_0x358f41['idSuffix'],')')));})),_0x12043d;}function xe(_0x4e591f,_0x318086){var _0x2a4441=_0x2886db,_0x245494,_0x5db848=_0x318086['defIds'];return!_0x5db848||_0x5db848[_0x2a4441(0x205)]===0x0?_0x4e591f:_0x4e591f['tag']==='defs'&&(!((_0x245494=_0x4e591f['children'])===null||_0x245494===void 0x0)&&_0x245494[_0x2a4441(0x205)])?c(c({},_0x4e591f),{'children':_0x4e591f[_0x2a4441(0x183)][_0x2a4441(0x1dd)](function(_0x4d1368){var _0x552cac=_0x2a4441;return typeof _0x4d1368[_0x552cac(0x18e)]['id']==_0x552cac(0x20a)&&_0x5db848&&_0x5db848[_0x552cac(0x20c)](_0x4d1368[_0x552cac(0x18e)]['id'])?c(c({},_0x4d1368),{'attrs':c(c({},_0x4d1368[_0x552cac(0x18e)]),{'id':_0x4d1368['attrs']['id']+_0x318086[_0x552cac(0x1fc)]})}):_0x4d1368;})}):_0x4e591f;}function Le(){var _0x4e58f4=_0x2886db;return Math[_0x4e58f4(0x189)]()['toString'](0x24)[_0x4e58f4(0x1b2)](0x2,0x8);}W[_0x2886db(0x1a1)]=_0x2886db(0x174);var ye={'tag':_0x2886db(0x1ac),'attrs':{'xmlns':_0x2886db(0x1a5),'fill':_0x2886db(0x178),'viewBox':'0\x200\x2017\x2017','width':_0x2886db(0x1f8),'height':_0x2886db(0x1f8)},'children':[{'tag':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'d':_0x2886db(0x195),'fillRule':_0x2886db(0x175),'clipRule':_0x2886db(0x175)}}]},B=_0x55f301(function(_0x13781d,_0x349829){var _0x21bfbc=_0x2886db;return _0xc61559(W,Object[_0x21bfbc(0x192)]({},_0x13781d,{'id':_0x21bfbc(0x176),'ref':_0x349829,'icon':ye}));});B[_0x2886db(0x1a1)]='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x2b7426,_0x5ba008,_0x59a7e8,_0x2492e9)=>{var _0x3c2bf7=_0x2886db;for(var _0x2e3c93=_0x2492e9>0x1?void 0x0:_0x2492e9?Re(_0x5ba008,_0x59a7e8):_0x5ba008,_0x79da07=_0x2b7426[_0x3c2bf7(0x205)]-0x1,_0xbd78e8;_0x79da07>=0x0;_0x79da07--)(_0xbd78e8=_0x2b7426[_0x79da07])&&(_0x2e3c93=_0xbd78e8(_0x2e3c93)||_0x2e3c93);return _0x2e3c93;},f=(_0x59200c,_0x596e39)=>(_0x406125,_0x52dd4b)=>_0x596e39(_0x406125,_0x52dd4b,_0x59200c);let I=class extends _0x6f1f15{constructor(_0x5107f1,_0x26a3f1,_0x3eee54){var _0x575e85=_0x2886db;super(),d(this,_0x575e85(0x209),new Map()),(this[_0x575e85(0x1b1)]=_0x5107f1,this[_0x575e85(0x21f)]=_0x26a3f1,this['_collabSessionService']=_0x3eee54,this[_0x575e85(0x20b)]());}async[_0x2886db(0x1ef)](_0x227b7b){var _0x4176c4=_0x2886db;return this[_0x4176c4(0x209)][_0x4176c4(0x180)](_0x227b7b)||await this[_0x4176c4(0x1f0)](_0x227b7b),this[_0x4176c4(0x209)][_0x4176c4(0x1e3)](_0x227b7b);}[_0x2886db(0x20b)](){var _0x4fd0dd=_0x2886db;this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1a9)](_0x4aff88[_0x4fd0dd(0x1db)])['pipe'](_0x120c99(this[_0x4fd0dd(0x206)]))['subscribe'](async _0x55ce3e=>{var _0x3f9089=_0x4fd0dd;const _0x421d83=_0x55ce3e[_0x3f9089(0x1d8)]();this[_0x3f9089(0x209)][_0x3f9089(0x180)](_0x421d83)||this[_0x3f9089(0x1f0)](_0x421d83);}),this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1c6)](_0x4aff88[_0x4fd0dd(0x1db)])[_0x4fd0dd(0x1c3)](_0x120c99(this[_0x4fd0dd(0x206)]))[_0x4fd0dd(0x1c5)](_0x584625=>{var _0x420a86=_0x4fd0dd;const _0x56f2c9=_0x584625[_0x420a86(0x1d8)](),_0x1150f6=this[_0x420a86(0x209)][_0x420a86(0x1e3)](_0x56f2c9);_0x1150f6==null||_0x1150f6['dispose']();});}async[_0x2886db(0x1f0)](_0x525019){var _0x54f5c7=_0x2886db;const _0x3c5d8e=await this['_collabSessionService'][_0x54f5c7(0x218)](_0x525019),_0x171e35=this[_0x54f5c7(0x21f)][_0x54f5c7(0x19d)](C,_0x525019,_0x3c5d8e);return _0x171e35[_0x54f5c7(0x1b5)](),this[_0x54f5c7(0x209)][_0x54f5c7(0x1d1)](_0x525019,_0x171e35),_0x171e35;}};I=Z([f(0x0,_0x11d622),f(0x1,_0x10aaa1(_0x2015d8)),f(0x2,_0x10aaa1(_0x37b98))],I);var h=(_0x27a6a2=>(_0x27a6a2['OFFLINE']='offline',_0x27a6a2[_0x2886db(0x1e4)]='idle',_0x27a6a2[_0x2886db(0x191)]=_0x2886db(0x18d),_0x27a6a2[_0x2886db(0x1ab)]=_0x2886db(0x19e),_0x27a6a2[_0x2886db(0x202)]=_0x2886db(0x177),_0x27a6a2))(h||{});function _0x695d(_0x28dd9a,_0x923fb0){var _0xe8c531=_0xe8c5();return _0x695d=function(_0x695db1,_0x5e4718){_0x695db1=_0x695db1-0x171;var _0x10bc6b=_0xe8c531[_0x695db1];return _0x10bc6b;},_0x695d(_0x28dd9a,_0x923fb0);}const Pe=_0x2886db(0x1bf),Ae=0xc8;let C=class extends _0x6f1f15{constructor(_0xecbae6,_0x11b829,_0x3e111e,_0x4e07d3,_0x19eaf2){var _0x126e77=_0x2886db;super(),d(this,'_status$',new _0x1dc9f4(_0x126e77(0x1da))),d(this,_0x126e77(0x19c),this[_0x126e77(0x1e5)][_0x126e77(0x1de)]()),d(this,_0x126e77(0x20b),!0x1),d(this,_0x126e77(0x197),null),d(this,'_presenter',null),(this[_0x126e77(0x19f)]=_0xecbae6,this[_0x126e77(0x1a2)]=_0x11b829,this[_0x126e77(0x1a6)]=_0x3e111e,this[_0x126e77(0x1b3)]=_0x4e07d3,this[_0x126e77(0x21a)]=_0x19eaf2);}get['_status'](){var _0x2a3b2a=_0x2886db;return this[_0x2a3b2a(0x1e5)]['getValue']();}[_0x2886db(0x1ff)](){var _0x53d1da=_0x2886db,_0x43a5f2;(_0x43a5f2=this['_commandDisposable'])==null||_0x43a5f2[_0x53d1da(0x1ff)](),this[_0x53d1da(0x1e5)]['next'](_0x53d1da(0x1da)),this[_0x53d1da(0x1e5)]['complete']();}[_0x2886db(0x1b5)](){var _0x30f21d=_0x2886db;this[_0x30f21d(0x20b)]||(this[_0x30f21d(0x20b)]=!0x0,this['_collabSession'][_0x30f21d(0x1cc)][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x241dfb=>{var _0x1c8fa5=_0x30f21d;switch(_0x241dfb){case _0x4e7aee[_0x1c8fa5(0x1d6)]:this['_handleOffline']();break;case _0x4e7aee['ONLINE']:this[_0x1c8fa5(0x17e)]();break;}}),this['_collabSession']['event$'][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x9c2bfb=>{var _0x4f988f=_0x30f21d;const {eventID:_0x5ce4dc}=_0x9c2bfb;switch(_0x5ce4dc){case _0x31f6e1['LIVESHARE_NEW_HOST']:this[_0x4f988f(0x219)](_0x9c2bfb);break;case _0x31f6e1['LIVESHARE_OPERATION']:this[_0x4f988f(0x185)](_0x9c2bfb);break;case _0x31f6e1[_0x4f988f(0x1d3)]:this[_0x4f988f(0x1a7)]();break;case _0x31f6e1['NEW_CHANGESETS']:this[_0x4f988f(0x1e1)](_0x9c2bfb);break;}}));}[_0x2886db(0x188)](){var _0x5be021=_0x2886db;this[_0x5be021(0x1a2)][_0x5be021(0x1c4)]({'eventID':_0x31f6e1[_0x5be021(0x20d)],'data':{'unitID':this[_0x5be021(0x19f)],'userID':this[_0x5be021(0x1a2)][_0x5be021(0x1b4)]()}},this['_unitID']);}[_0x2886db(0x1d4)](){var _0x366b91=_0x2886db;this[_0x366b91(0x1f9)]==='presenting'&&(this[_0x366b91(0x1e5)][_0x366b91(0x190)]('idle'),this[_0x366b91(0x1a2)]['send']({'eventID':_0x31f6e1[_0x366b91(0x1d3)],'data':{'unitID':this['_unitID']}},this[_0x366b91(0x19f)]));}[_0x2886db(0x1be)](){var _0x55ea58=_0x2886db;this[_0x55ea58(0x1f9)]===_0x55ea58(0x19e)&&(this[_0x55ea58(0x1e5)][_0x55ea58(0x190)](_0x55ea58(0x18d)),this['_startFollowing']());}[_0x2886db(0x1e6)](){var _0x3a58e3=_0x2886db;this[_0x3a58e3(0x1f9)]===_0x3a58e3(0x18d)&&this[_0x3a58e3(0x211)]();}[_0x2886db(0x219)](_0x4715bb){var _0x32700c=_0x2886db;const {presenter:_0x3ff6fc}=_0x4715bb[_0x32700c(0x198)],_0x36d41c=this[_0x32700c(0x1a2)][_0x32700c(0x1b4)]();this[_0x32700c(0x207)]=_0x3ff6fc,_0x3ff6fc===_0x36d41c?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x32700c(0x19e)&&(this[_0x32700c(0x1bc)](),this[_0x32700c(0x1ed)]());}[_0x2886db(0x19b)](){var _0x437216=_0x2886db;const _0x49b2e3={'eventID':_0x31f6e1[_0x437216(0x21c)]};this[_0x437216(0x1a2)][_0x437216(0x1c4)](_0x49b2e3,this[_0x437216(0x19f)]);}[_0x2886db(0x1a7)](){var _0x1df453=_0x2886db;this['_presenter']=null,this[_0x1df453(0x1f9)]!==_0x1df453(0x177)&&this[_0x1df453(0x172)]();}[_0x2886db(0x1e1)](_0x3879a2){var _0x73a500=_0x2886db;if(this['_status']==='following'&&this['_presenter']===_0x3879a2[_0x73a500(0x198)][_0x73a500(0x1f7)]){const _0x267bf4=_0xb1adb(_0x3879a2[_0x73a500(0x198)])[_0x73a500(0x173)][_0x73a500(0x181)]()[_0x73a500(0x1ba)](_0x477c52=>_0x477c52['id']===_0x1800b8['id']);if(_0x267bf4){const _0x5f1cc4=_0x267bf4[_0x73a500(0x1ee)][_0x73a500(0x1f4)],_0x3c4392=_0x267bf4['params'][_0x73a500(0x1bd)]['id'];setTimeout(()=>{var _0x39d4af=_0x73a500;this['_commandService'][_0x39d4af(0x194)](_0xcf814f['id'],{'unitId':_0x5f1cc4,'subUnitId':_0x3c4392},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x494428=_0x2886db;this[_0x494428(0x1e5)][_0x494428(0x190)]('presenting');const _0xdf4dbd=new Map(),_0x157f0e=this[_0x494428(0x197)]=new _0x274689();_0x157f0e[_0x494428(0x1d2)](_0x3a14b5(()=>{var _0x1b1005=_0x494428;_0xdf4dbd[_0x1b1005(0x212)](_0x380493=>_0x380493['complete']()),_0xdf4dbd[_0x1b1005(0x1a4)]();})),_0x157f0e[_0x494428(0x1d2)](this[_0x494428(0x21a)][_0x494428(0x1ad)](_0x5b85aa=>{var _0x29293f=_0x494428,_0x4b6d2f;if(_0x5b85aa['type']!==_0x55a605[_0x29293f(0x1c7)]||!this[_0x29293f(0x1b3)]['shouldShareOperation'](_0x5b85aa['id']))return;const {id:_0x3c96ff}=_0x5b85aa;let _0x1cb5a1;_0xdf4dbd[_0x29293f(0x180)](_0x3c96ff)?_0x1cb5a1=_0xdf4dbd[_0x29293f(0x1e3)](_0x3c96ff):(_0x1cb5a1=new _0x5762(),_0xdf4dbd[_0x29293f(0x1d1)](_0x3c96ff,_0x1cb5a1),_0x1cb5a1[_0x29293f(0x1c3)](_0x2d347e((_0x4b6d2f=this[_0x29293f(0x1a6)][_0x29293f(0x200)](Pe))!=null?_0x4b6d2f:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x29293f(0x1c5)](_0x1539ba=>{var _0x387b5e=_0x29293f;this[_0x387b5e(0x1a2)][_0x387b5e(0x1c4)]({'eventID':_0x31f6e1['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x387b5e(0x19f)],'operations':{[_0x1539ba['id']]:{'id':_0x1539ba['id'],'params':JSON[_0x387b5e(0x210)](_0x1539ba[_0x387b5e(0x1ee)])}}}},this['_unitID']);})),_0x1cb5a1[_0x29293f(0x190)](_0x5b85aa);})),this[_0x494428(0x1b3)]['getInitialStates'](this[_0x494428(0x19f)])['forEach'](_0x276b54=>this[_0x494428(0x1a2)][_0x494428(0x1c4)]({'eventID':_0x31f6e1[_0x494428(0x217)],'data':{'unitID':this['_unitID'],'operations':{[_0x276b54['id']]:{'id':_0x276b54['id'],'params':JSON[_0x494428(0x210)](_0x276b54[_0x494428(0x1ee)])}}}},this['_unitID']));}[_0x2886db(0x1bc)](){var _0x1ef019=_0x2886db,_0x1433cc;this[_0x1ef019(0x1e5)]['next'](_0x1ef019(0x1da)),(_0x1433cc=this[_0x1ef019(0x197)])==null||_0x1433cc[_0x1ef019(0x1ff)](),this['_commandDisposable']=null;}[_0x2886db(0x1ed)](){var _0xaf8ce6=_0x2886db,_0x7bc5a1;(_0x7bc5a1=this[_0xaf8ce6(0x197)])==null||_0x7bc5a1['dispose'](),this['_status$'][_0xaf8ce6(0x190)](_0xaf8ce6(0x18d));}[_0x2886db(0x172)](){var _0x239e80=_0x2886db,_0x5b73d6;this[_0x239e80(0x1e5)][_0x239e80(0x190)](_0x239e80(0x1da)),(_0x5b73d6=this[_0x239e80(0x197)])==null||_0x5b73d6[_0x239e80(0x1ff)](),this[_0x239e80(0x197)]=null;}[_0x2886db(0x211)](){var _0x2d0753=_0x2886db,_0x5e502;this[_0x2d0753(0x1e5)][_0x2d0753(0x190)]('not-following'),(_0x5e502=this[_0x2d0753(0x197)])==null||_0x5e502['dispose']();}[_0x2886db(0x185)](_0x3903bc){var _0x3e5926=_0x2886db;if([_0x3e5926(0x177),_0x3e5926(0x19e),_0x3e5926(0x18b)][_0x3e5926(0x20c)](this[_0x3e5926(0x1f9)])||!_0x3903bc['data'][_0x3e5926(0x1c9)]||_0x3903bc[_0x3e5926(0x198)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x3e5926(0x1f9)]===_0x3e5926(0x1da)&&this['_startFollowing']();const _0xd5dd65=_0x3903bc[_0x3e5926(0x198)][_0x3e5926(0x1b7)];Object[_0x3e5926(0x1d9)](_0xd5dd65)[_0x3e5926(0x212)](_0x1611bb=>{var _0x55d1d7=_0x3e5926;this['_commandService']['executeCommand'](_0x1611bb['id'],_0x1611bb[_0x55d1d7(0x1ee)]?JSON[_0x55d1d7(0x21b)](_0x1611bb[_0x55d1d7(0x1ee)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x56fdcd=_0x2886db,_0x5a95ba;this[_0x56fdcd(0x1e5)]['next'](_0x56fdcd(0x18b)),(_0x5a95ba=this['_commandDisposable'])==null||_0x5a95ba[_0x56fdcd(0x1ff)]();}['_handleOnline'](){var _0x42ab97=_0x2886db;this['_status$'][_0x42ab97(0x190)](_0x42ab97(0x1da)),this[_0x42ab97(0x19b)]();}};C=Z([f(0x2,_0x37a6e8),f(0x3,_0x10aaa1(L)),f(0x4,_0x342266)],C);function Te(){var _0x5a44c8=_0x2886db;const _0x3531ca=_0x5b3603(I),_0x30ee38=_0x5b3603(_0x11d622),_0x28d50a=_0x2d4df2(()=>_0x30ee38[_0x5a44c8(0x18c)](_0x4aff88[_0x5a44c8(0x1db)]),void 0x0,!0x1,[]),[_0x48eea2,_0x4b0e40]=_0x11cb7c(null),[_0x38d9a1,_0x3d45b4]=_0x11cb7c(h['IDLE']),_0x5182d6=_0x2d195a(null);return _0x548d7b(()=>(_0x28d50a&&_0x3531ca[_0x5a44c8(0x1ef)](_0x28d50a[_0x5a44c8(0x1d8)]())[_0x5a44c8(0x193)](_0x56afa1=>{var _0x5d6a49=_0x5a44c8;_0x4b0e40(_0x56afa1),_0x5182d6[_0x5d6a49(0x1fa)]=_0x56afa1[_0x5d6a49(0x19c)][_0x5d6a49(0x1c5)](_0xf35f7c=>{_0x3d45b4(_0xf35f7c);});}),()=>{var _0x7a9b3=_0x5a44c8,_0x25c32e;(_0x25c32e=_0x5182d6[_0x7a9b3(0x1fa)])==null||_0x25c32e[_0x7a9b3(0x1b0)](),_0x5182d6[_0x7a9b3(0x1fa)]=null;}),[_0x28d50a,_0x3531ca]),_0x48eea2?_0x3a52ad(_0x4dd19b,{'align':_0x5a44c8(0x1b8),'disabled':_0x38d9a1===h[_0x5a44c8(0x1d6)],'className':_0x5a44c8(0x1e8),'overlay':_0x3a52ad($e,{'status':_0x38d9a1,'coordinator':_0x48eea2}),'children':_0x3a52ad(_0x5a44c8(0x1ae),{'className':_0x2351ae(_0x5a44c8(0x1ec),{'univer-cursor-not-allowed':_0x38d9a1===h[_0x5a44c8(0x1d6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38d9a1!==h[_0x5a44c8(0x1d6)]}),'type':_0x5a44c8(0x1ae),'children':_0x3a52ad(B,{'className':_0x5a44c8(0x1f2)})})}):null;}function $e(_0x5ef130){var _0x556fcb=_0x2886db;const {status:_0x1bcafa,coordinator:_0x179ae0}=_0x5ef130;switch(_0x1bcafa){case h[_0x556fcb(0x1e4)]:return _0x3a52ad(Fe,{'coordinator':_0x179ae0});case h[_0x556fcb(0x191)]:return _0x3a52ad(He,{'coordinator':_0x179ae0});case h['NOT_FOLLOWING']:return _0x3a52ad(je,{'coordinator':_0x179ae0});case h[_0x556fcb(0x1d6)]:return _0x3a52ad(Ve,{});case h[_0x556fcb(0x202)]:return _0x3a52ad(Ue,{'coordinator':_0x179ae0});default:return null;}}function Fe(_0x11ba29){var _0x9421a5=_0x2886db;const {coordinator:_0x4c4bb1}=_0x11ba29;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x9421a5(0x17b),{'className':_0x9421a5(0x1c8),'children':_0x9421a5(0x179)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x4c4bb1[_0x9421a5(0x188)](),'children':_0x9421a5(0x1d5)})]});}function He(_0x3f9821){var _0x1841a5=_0x2886db;const {coordinator:_0x44175f}=_0x3f9821;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad('div',{'className':_0x1841a5(0x1c8),'children':_0x1841a5(0x18a)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x44175f[_0x1841a5(0x1e6)](),'children':_0x1841a5(0x20e)})]});}function je(_0x198f94){var _0x3986e8=_0x2886db;const {coordinator:_0x4fac19}=_0x198f94;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x3986e8(0x17b),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x3986e8(0x1df)}),_0x3a52ad(_0x2dde90,{'variant':_0x3986e8(0x1f5),'onClick':()=>_0x4fac19[_0x3986e8(0x1be)](),'children':_0x3986e8(0x1b6)})]});}function Ue(_0x302018){var _0x44ca58=_0x2886db;const {coordinator:_0x5b74c5}=_0x302018;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x44ca58(0x17b),{'className':_0x44ca58(0x1c8),'children':_0x44ca58(0x1f3)}),_0x3a52ad(_0x2dde90,{'variant':_0x44ca58(0x1e7),'onClick':()=>_0x5b74c5[_0x44ca58(0x1d4)](),'children':_0x44ca58(0x220)})]});}function Ve(){return _0x3a52ad(_0x1dbeda,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x2886db(0x1e0)],ke=(_0x2e7ded,_0x58b8e7,_0x2ee39d,_0x4fa189)=>{var _0x50eb0b=_0x2886db;for(var _0x1ab85f=_0x4fa189>0x1?void 0x0:_0x4fa189?Me(_0x58b8e7,_0x2ee39d):_0x58b8e7,_0x30950c=_0x2e7ded[_0x50eb0b(0x205)]-0x1,_0x7ac355;_0x30950c>=0x0;_0x30950c--)(_0x7ac355=_0x2e7ded[_0x30950c])&&(_0x1ab85f=_0x7ac355(_0x1ab85f)||_0x1ab85f);return _0x1ab85f;},$=(_0x2cc36e,_0x268480)=>(_0x32d3fe,_0x57be99)=>_0x268480(_0x32d3fe,_0x57be99,_0x2cc36e);let b=class extends _0x172f34{constructor(_0x4e7ce1,_0x4dc55c){var _0x3cbe25=_0x2886db;super(),this[_0x3cbe25(0x21f)]=_0x4e7ce1,this[_0x3cbe25(0x199)]=_0x4dc55c,this[_0x3cbe25(0x17f)]();}[_0x2886db(0x17f)](){var _0x10f90d=_0x2886db;this[_0x10f90d(0x1f1)](this['_uiPartsService'][_0x10f90d(0x1cf)](_0x2083b0[_0x10f90d(0x1e9)],()=>_0x1b45da(Te,this['_injector'])));}};b=ke([$(0x0,_0x10aaa1(_0x2015d8)),$(0x1,_0x125ac6)],b);var Ge=Object[_0x2886db(0x1fe)],We=Object[_0x2886db(0x1e0)],Ye=(_0x13b7e2,_0x2ddc74,_0x1fee3c)=>_0x2ddc74 in _0x13b7e2?Ge(_0x13b7e2,_0x2ddc74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fee3c}):_0x13b7e2[_0x2ddc74]=_0x1fee3c,Be=(_0x5d8761,_0x1708fc,_0x2e1570,_0xc8308b)=>{var _0x269401=_0x2886db;for(var _0x17f8ee=_0xc8308b>0x1?void 0x0:_0xc8308b?We(_0x1708fc,_0x2e1570):_0x1708fc,_0x111bf3=_0x5d8761[_0x269401(0x205)]-0x1,_0x396966;_0x111bf3>=0x0;_0x111bf3--)(_0x396966=_0x5d8761[_0x111bf3])&&(_0x17f8ee=_0x396966(_0x17f8ee)||_0x17f8ee);return _0x17f8ee;},F=(_0x40f86e,_0x599b00)=>(_0xea2eb0,_0x4b4696)=>_0x599b00(_0xea2eb0,_0x4b4696,_0x40f86e),J=(_0x121364,_0x3d93f3,_0x4a838f)=>Ye(_0x121364,typeof _0x3d93f3!=_0x2886db(0x1c0)?_0x3d93f3+'':_0x3d93f3,_0x4a838f);const Ze=_0x2886db(0x19a);let O=class extends _0x3a7036{constructor(_0x3ba33d=T,_0x22916c,_0x45972d){var _0x50a1be=_0x2886db;super(),this['_config']=_0x3ba33d,this[_0x50a1be(0x21f)]=_0x22916c,this[_0x50a1be(0x1a6)]=_0x45972d;const {..._0x356fb4}=_0x4c5a48({},T,this[_0x50a1be(0x21d)]);this[_0x50a1be(0x1a6)][_0x50a1be(0x186)](Oe,_0x356fb4);}[_0x2886db(0x201)](){var _0x42f15d=_0x2886db;_0x5c518a(this['_injector'],_0x1d9838([[L],[I],[m],[b]],this[_0x42f15d(0x21d)]['override'])),_0x1e2724(this['_injector'],[[m]]);}['onRendered'](){_0x1e2724(this['_injector'],[[b]]);}};J(O,_0x2886db(0x171),_0x4aff88[_0x2886db(0x182)]),J(O,_0x2886db(0x1a8),Ze),O=Be([_0x35d3f7(_0x5a9880),F(0x1,_0x10aaa1(_0x2015d8)),F(0x2,_0x37a6e8)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x111845=_0x18f0;(function(_0x36881f,_0x57ffe9){var _0x36827a=_0x18f0,_0x4baee1=_0x36881f();while(!![]){try{var _0x410fb4=-parseInt(_0x36827a(0x124))/0x1*(parseInt(_0x36827a(0x157))/0x2)+parseInt(_0x36827a(0x138))/0x3*(parseInt(_0x36827a(0xd6))/0x4)+-parseInt(_0x36827a(0xb4))/0x5+parseInt(_0x36827a(0xd2))/0x6+-parseInt(_0x36827a(0x159))/0x7*(parseInt(_0x36827a(0xae))/0x8)+-parseInt(_0x36827a(0x14f))/0x9+parseInt(_0x36827a(0xc6))/0xa;if(_0x410fb4===_0x57ffe9)break;else _0x4baee1['push'](_0x4baee1['shift']());}catch(_0x4a413d){_0x4baee1['push'](_0x4baee1['shift']());}}}(_0x37cb,0x81bbc));var q=Object[_0x111845(0x11d)],z=(_0x4df1c8,_0x3a66de,_0x4d7574)=>_0x3a66de in _0x4df1c8?q(_0x4df1c8,_0x3a66de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d7574}):_0x4df1c8[_0x3a66de]=_0x4d7574,d=(_0x474221,_0x1aaf80,_0x23a779)=>z(_0x474221,typeof _0x1aaf80!=_0x111845(0xdf)?_0x1aaf80+'':_0x1aaf80,_0x23a779);import{CollaborationSessionService as _0x1ac019,SessionStatus as _0x29ebe5,UniverCollaborationClientPlugin as _0x472ee4}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4c2516,toDisposable as _0x2b451f,Inject as _0x555b6a,IUniverInstanceService as _0x2a63fd,Injector as _0x184d2a,IConfigService as _0x5942dd,ICommandService as _0xebcdd,RxDisposable as _0x355afe,UniverInstanceType as _0x36368d,DisposableCollection as _0x5a3486,CommandType as _0x216e4e,DependentOn as _0x49dea1,Plugin as _0x19e569,merge as _0x47cc38,registerDependencies as _0x134e0c,mergeOverrideWithDependencies as _0x9bf70b,touchDependencies as _0x4b550f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x592534,InsertSheetMutation as _0x885b41}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5f3cc2,SetScrollOperation as _0x44c772}from'@univerjs/sheets-ui';import{useDependency as _0x71080f,useObservable as _0x3a54bb,IUIPartsService as _0x150f06,BuiltInUIPart as _0xb3b934,connectInjector as _0x3f0fd6}from'@univerjs/ui';import{jsx as _0x33981f,jsxs as _0x6e3e1,Fragment as _0x476040}from'react/jsx-runtime';import{Dropdown as _0x1a6ce9,clsx as _0x1ef98e,Button as _0x28744d}from'@univerjs/design';import{forwardRef as _0x5acf19,useRef as _0x349cca,createElement as _0x1b5217,useState as _0x198177,useEffect as _0x4a5c1f}from'react';import{CollaborationEvent as _0x310aef,parseProtocolChangeset as _0x58cb90}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x37413d,Subject as _0x35d171}from'rxjs';import{takeUntil as _0x3fc736,throttleTime as _0x23c445}from'rxjs/operators';const Oe=_0x111845(0x153),T={};class L extends _0x4c2516{constructor(){var _0x22424c=_0x111845;super(...arguments),d(this,_0x22424c(0xba),new Set()),d(this,'_reporters',new Set());}[_0x111845(0xed)](_0x13819b){var _0x392eab=_0x111845;return this['_sharedOperations'][_0x392eab(0xe2)](_0x13819b),_0x2b451f(()=>this['_sharedOperations']['delete'](_0x13819b));}[_0x111845(0xac)](_0x5d9a2b){var _0x40403c=_0x111845;return this['_reporters'][_0x40403c(0xe2)](_0x5d9a2b),_0x2b451f(()=>this[_0x40403c(0xc7)][_0x40403c(0xbc)](_0x5d9a2b));}[_0x111845(0x103)](_0x26ab74){return this['_sharedOperations']['has'](_0x26ab74);}[_0x111845(0x126)](_0x5e0690){var _0x529b47=_0x111845;return Array[_0x529b47(0x15d)](this[_0x529b47(0xc7)])[_0x529b47(0xe8)](_0x31e042=>_0x31e042(_0x5e0690));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x4545ea,_0x2fc2e2,_0x5858a0,_0x45e868)=>{for(var _0x34e847=_0x45e868>0x1?void 0x0:_0x45e868?Ee(_0x2fc2e2,_0x5858a0):_0x2fc2e2,_0x20e5c5=_0x4545ea['length']-0x1,_0x3a0203;_0x20e5c5>=0x0;_0x20e5c5--)(_0x3a0203=_0x4545ea[_0x20e5c5])&&(_0x34e847=_0x3a0203(_0x34e847)||_0x34e847);return _0x34e847;},Ne=(_0x4b2d42,_0x581061)=>(_0x491682,_0x550474)=>_0x581061(_0x491682,_0x550474,_0x4b2d42);let m=class extends _0x4c2516{constructor(_0x30ec72){var _0x35729a=_0x111845;super(),this[_0x35729a(0xd0)]=_0x30ec72,this[_0x35729a(0xd8)]();}[_0x111845(0xd8)](){var _0x6adbc3=_0x111845;[_0x5f3cc2['id'],_0x44c772['id'],_0x592534['id']][_0x6adbc3(0xbf)](_0x4f11a4=>{var _0x5d8270=_0x6adbc3;this[_0x5d8270(0x12d)](this['_liveShareService'][_0x5d8270(0xed)](_0x4f11a4));});}};function _0x37cb(){var _0x287a5f=['clear','registerSharedOperation','LiveShareIcon','_status','length','_handleNewChangeSets','mask','get','pipe','_handleTerminate','You\x27re\x20following\x20the\x20presenter','_startLiveShareCoordinator','set','_injector','getTypeOfUnitDisposed$','UNIVER_UNKNOWN','LIVESHARE_REQUEST_HOST','You\x27re\x20presenting\x20the\x20document','data','asObservable','presenting','current','_entities','shouldShareOperation','complete','LIVESHARE_OPERATION','url(#$1','then','http://www.w3.org/2000/svg','1em','0\x200\x2017\x2017','_presenter','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','propertyIsEnumerable','getLiveShareCoordinator','event$','type','icon','memberID','SAME_OPERATION_SHARE_INTERVAL','evenodd','send','dispose','createInstance','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_collabSessionService','HEADER_MENU','not-following','mutations','defineProperty','extend','_commandService','ONLINE','next','values','dispose$','1357Zfufmh','onCommandExecuted','getInitialStates','getValue','toString','Start\x20following','univerjs-icon\x20univerjs-icon-','attrs','getOwnPropertySymbols','disposeWithMe','_config','currentColor','executeCommand','concat','tag','onRendered','registerComponent','hasOwnProperty','entries','_startFollowing','1441695delUgg','call','colorChannel1','UNIVER_SHEET','parse','_handleOperation','getCurrentTypeOfUnit$','getOwnPropertyDescriptor','text','stopFollowing','_startPresenting','IDLE','_beIdle','_commandDisposable','Stop\x20presenting','tryStartPresenting','_uiPartsService','NEW_CHANGESETS','_stopFollowing','_univerInstanceService','prototype','className','sheet','4421439eHoyYx','xlink:href','_mountLiveShare','offline','live-share.config','presenter','univer-size-4','children','1186ClgJjx','_stopPresenting','717556SwHVQV','startFollowing','params','_collabSession','from','_fetchOperations','has','getUnitId','div','includes','registerInitialStateReporter','stringify','24lTjAiv','_unitID','idle','path','sessionStatus$','following','2141385mavIhR','OPERATION','replace','_handleOffline','assign','NOT_FOLLOWING','_sharedOperations','button','delete','unitId','getTypeOfUnitAdded$','forEach','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','none','_status$','status$','use','substring','15530910yuLUMc','_reporters','_handleOnline','subscribe','string','stopPresenting','_configService','init','override','apply','_liveShareService','_handleNewHost','293640JwtnNc','function','find','displayName','8tjhTGL','trim','_init','operations','indexOf','setConfig','PRESENTING','idSuffix','defIds','symbol','svg','getMemberID','add','univer-w-full\x20univer-mb-3\x20univer-text-sm','OFFLINE','unsubscribe','You\x27re\x20not\x20following\x20the\x20presenter','requireSession','map','random','LIVESHARE_TERMINATE','getConfig'];_0x37cb=function(){return _0x287a5f;};return _0x37cb();}m=we([Ne(0x0,_0x555b6a(L))],m);var c=function(){var _0x134f6b=_0x111845;return c=Object[_0x134f6b(0xb8)]||function(_0x508a85){var _0x926583=_0x134f6b;for(var _0x36c8ea,_0x40042f=0x1,_0x545627=arguments[_0x926583(0xf0)];_0x40042f<_0x545627;_0x40042f++){_0x36c8ea=arguments[_0x40042f];for(var _0x2851cb in _0x36c8ea)Object[_0x926583(0x14c)][_0x926583(0x135)][_0x926583(0x139)](_0x36c8ea,_0x2851cb)&&(_0x508a85[_0x2851cb]=_0x36c8ea[_0x2851cb]);}return _0x508a85;},c[_0x134f6b(0xcf)](this,arguments);},Ce=function(_0xb53272,_0x485057){var _0x58a998=_0x111845,_0x48b06f={};for(var _0x5957b7 in _0xb53272)Object[_0x58a998(0x14c)][_0x58a998(0x135)][_0x58a998(0x139)](_0xb53272,_0x5957b7)&&_0x485057[_0x58a998(0xda)](_0x5957b7)<0x0&&(_0x48b06f[_0x5957b7]=_0xb53272[_0x5957b7]);if(_0xb53272!=null&&typeof Object['getOwnPropertySymbols']==_0x58a998(0xd3)){for(var _0x2cb156=0x0,_0x5957b7=Object[_0x58a998(0x12c)](_0xb53272);_0x2cb156<_0x5957b7[_0x58a998(0xf0)];_0x2cb156++)_0x485057['indexOf'](_0x5957b7[_0x2cb156])<0x0&&Object[_0x58a998(0x14c)][_0x58a998(0x10d)][_0x58a998(0x139)](_0xb53272,_0x5957b7[_0x2cb156])&&(_0x48b06f[_0x5957b7[_0x2cb156]]=_0xb53272[_0x5957b7[_0x2cb156]]);}return _0x48b06f;},W=_0x5acf19(function(_0x37dc4e,_0x16e46d){var _0x1a449a=_0x111845,_0x119090=_0x37dc4e[_0x1a449a(0x111)],_0x5b6d69=_0x37dc4e['id'],_0x453deb=_0x37dc4e[_0x1a449a(0x14d)],_0x23c15a=_0x37dc4e['extend'],_0x5dd178=Ce(_0x37dc4e,[_0x1a449a(0x111),'id',_0x1a449a(0x14d),_0x1a449a(0x11e)]),_0x1071ef=_0x1a449a(0x12a)[_0x1a449a(0x131)](_0x5b6d69,'\x20')[_0x1a449a(0x131)](_0x453deb||'')[_0x1a449a(0xd7)](),_0x5c0b47=_0x349cca('_'[_0x1a449a(0x131)](Le()));return Y(_0x119090,''[_0x1a449a(0x131)](_0x5b6d69),{'defIds':_0x119090[_0x1a449a(0xde)],'idSuffix':_0x5c0b47[_0x1a449a(0x101)]},c({'ref':_0x16e46d,'className':_0x1071ef},_0x5dd178),_0x23c15a);});function Y(_0xc1a45a,_0x3aed32,_0x507dc5,_0x499c42,_0x592d4f){var _0x56eb01=_0x111845;return _0x1b5217(_0xc1a45a['tag'],c(c({'key':_0x3aed32},De(_0xc1a45a,_0x507dc5,_0x592d4f)),_0x499c42),(xe(_0xc1a45a,_0x507dc5)[_0x56eb01(0x156)]||[])[_0x56eb01(0xe8)](function(_0x311f78,_0x240892){var _0x439f93=_0x56eb01;return Y(_0x311f78,''[_0x439f93(0x131)](_0x3aed32,'-')[_0x439f93(0x131)](_0xc1a45a[_0x439f93(0x132)],'-')[_0x439f93(0x131)](_0x240892),_0x507dc5,void 0x0,_0x592d4f);}));}function _0x18f0(_0x38fa2c,_0x6a360f){var _0x37cb35=_0x37cb();return _0x18f0=function(_0x18f026,_0x248a03){_0x18f026=_0x18f026-0xac;var _0x1c1842=_0x37cb35[_0x18f026];return _0x1c1842;},_0x18f0(_0x38fa2c,_0x6a360f);}function De(_0x497c34,_0x1610bb,_0x257ae5){var _0x1979ea=_0x111845,_0x297d31=c({},_0x497c34[_0x1979ea(0x12b)]);_0x257ae5!=null&&_0x257ae5[_0x1979ea(0x13a)]&&_0x297d31['fill']===_0x1979ea(0x13a)&&(_0x297d31['fill']=_0x257ae5[_0x1979ea(0x13a)]),_0x497c34[_0x1979ea(0x132)]===_0x1979ea(0xf2)&&_0x297d31['id']&&(_0x297d31['id']=_0x297d31['id']+_0x1610bb['idSuffix']),Object[_0x1979ea(0x136)](_0x297d31)[_0x1979ea(0xbf)](function(_0x385c07){var _0x423aca=_0x1979ea,_0x42f6dc=_0x385c07[0x0],_0x2e7171=_0x385c07[0x1];_0x42f6dc===_0x423aca(0xf2)&&typeof _0x2e7171==_0x423aca(0xca)&&(_0x297d31[_0x42f6dc]=_0x2e7171['replace'](/url\(#(.*)\)/,_0x423aca(0x106)[_0x423aca(0x131)](_0x1610bb[_0x423aca(0xdd)],')')));});var _0x2b29ee=_0x1610bb[_0x1979ea(0xde)];return!_0x2b29ee||_0x2b29ee['length']===0x0||(_0x497c34[_0x1979ea(0x132)]===_0x1979ea(0xc4)&&_0x297d31[_0x1979ea(0x150)]&&(_0x297d31[_0x1979ea(0x150)]=_0x297d31[_0x1979ea(0x150)]+_0x1610bb[_0x1979ea(0xdd)]),Object[_0x1979ea(0x136)](_0x297d31)[_0x1979ea(0xbf)](function(_0x18cd21){var _0x3ebb58=_0x1979ea,_0x30fc73=_0x18cd21[0x0],_0x7029a=_0x18cd21[0x1];typeof _0x7029a==_0x3ebb58(0xca)&&(_0x297d31[_0x30fc73]=_0x7029a[_0x3ebb58(0xb6)](/url\(#(.*)\)/,_0x3ebb58(0x106)[_0x3ebb58(0x131)](_0x1610bb[_0x3ebb58(0xdd)],')')));})),_0x297d31;}function xe(_0x2eb9b6,_0x1231aa){var _0x126f00=_0x111845,_0x79d83a,_0x4329c6=_0x1231aa['defIds'];return!_0x4329c6||_0x4329c6[_0x126f00(0xf0)]===0x0?_0x2eb9b6:_0x2eb9b6[_0x126f00(0x132)]==='defs'&&(!((_0x79d83a=_0x2eb9b6['children'])===null||_0x79d83a===void 0x0)&&_0x79d83a['length'])?c(c({},_0x2eb9b6),{'children':_0x2eb9b6['children'][_0x126f00(0xe8)](function(_0x2f5ee5){var _0x4c466a=_0x126f00;return typeof _0x2f5ee5[_0x4c466a(0x12b)]['id']==_0x4c466a(0xca)&&_0x4329c6&&_0x4329c6[_0x4c466a(0x162)](_0x2f5ee5['attrs']['id'])?c(c({},_0x2f5ee5),{'attrs':c(c({},_0x2f5ee5[_0x4c466a(0x12b)]),{'id':_0x2f5ee5[_0x4c466a(0x12b)]['id']+_0x1231aa[_0x4c466a(0xdd)]})}):_0x2f5ee5;})}):_0x2eb9b6;}function Le(){var _0x2b139b=_0x111845;return Math[_0x2b139b(0xe9)]()[_0x2b139b(0x128)](0x24)[_0x2b139b(0xc5)](0x2,0x8);}W[_0x111845(0xd5)]='UniverIcon';var ye={'tag':_0x111845(0xe0),'attrs':{'xmlns':_0x111845(0x108),'fill':_0x111845(0xc1),'viewBox':_0x111845(0x10a),'width':_0x111845(0x109),'height':'1em'},'children':[{'tag':_0x111845(0xb1),'attrs':{'fill':_0x111845(0x12f),'d':_0x111845(0xc0)}},{'tag':_0x111845(0xb1),'attrs':{'fill':_0x111845(0x12f),'d':_0x111845(0x10c),'fillRule':'evenodd','clipRule':_0x111845(0x114)}}]},B=_0x5acf19(function(_0x3d83a0,_0x1ddfa6){var _0x14eb1d=_0x111845;return _0x1b5217(W,Object[_0x14eb1d(0xb8)]({},_0x3d83a0,{'id':'live-share-icon','ref':_0x1ddfa6,'icon':ye}));});B[_0x111845(0xd5)]=_0x111845(0xee);var Re=Object[_0x111845(0x13f)],Z=(_0x513ca8,_0x3a40ad,_0x1d8632,_0x59f338)=>{var _0x2866b3=_0x111845;for(var _0x1feb58=_0x59f338>0x1?void 0x0:_0x59f338?Re(_0x3a40ad,_0x1d8632):_0x3a40ad,_0x307d02=_0x513ca8[_0x2866b3(0xf0)]-0x1,_0x44cc42;_0x307d02>=0x0;_0x307d02--)(_0x44cc42=_0x513ca8[_0x307d02])&&(_0x1feb58=_0x44cc42(_0x1feb58)||_0x1feb58);return _0x1feb58;},f=(_0x5af15f,_0x219101)=>(_0x52c4ae,_0x2ef743)=>_0x219101(_0x52c4ae,_0x2ef743,_0x5af15f);let I=class extends _0x355afe{constructor(_0x58ee33,_0x57da69,_0x5125bc){var _0xcaf2a=_0x111845;super(),d(this,_0xcaf2a(0x102),new Map()),(this['_univerInstanceService']=_0x58ee33,this[_0xcaf2a(0xf9)]=_0x57da69,this[_0xcaf2a(0x119)]=_0x5125bc,this[_0xcaf2a(0xd8)]());}async[_0x111845(0x10e)](_0x4debf9){var _0x4a39d1=_0x111845;return this[_0x4a39d1(0x102)][_0x4a39d1(0x15f)](_0x4debf9)||await this[_0x4a39d1(0xf7)](_0x4debf9),this[_0x4a39d1(0x102)]['get'](_0x4debf9);}[_0x111845(0xd8)](){var _0x97c101=_0x111845;this['_univerInstanceService'][_0x97c101(0xbe)](_0x36368d[_0x97c101(0x13b)])[_0x97c101(0xf4)](_0x3fc736(this[_0x97c101(0x123)]))['subscribe'](async _0x31edb5=>{var _0x6862f0=_0x97c101;const _0x45a15b=_0x31edb5[_0x6862f0(0x160)]();this[_0x6862f0(0x102)][_0x6862f0(0x15f)](_0x45a15b)||this[_0x6862f0(0xf7)](_0x45a15b);}),this[_0x97c101(0x14b)][_0x97c101(0xfa)](_0x36368d[_0x97c101(0x13b)])[_0x97c101(0xf4)](_0x3fc736(this[_0x97c101(0x123)]))[_0x97c101(0xc9)](_0x2644dc=>{var _0x409d19=_0x97c101;const _0x3e8dce=_0x2644dc['getUnitId'](),_0x241df4=this['_entities'][_0x409d19(0xf3)](_0x3e8dce);_0x241df4==null||_0x241df4[_0x409d19(0x116)]();});}async[_0x111845(0xf7)](_0x463d7a){var _0x124862=_0x111845;const _0x27a50a=await this[_0x124862(0x119)][_0x124862(0xe7)](_0x463d7a),_0x4b4485=this[_0x124862(0xf9)][_0x124862(0x117)](C,_0x463d7a,_0x27a50a);return _0x4b4485[_0x124862(0xcd)](),this[_0x124862(0x102)][_0x124862(0xf8)](_0x463d7a,_0x4b4485),_0x4b4485;}};I=Z([f(0x0,_0x2a63fd),f(0x1,_0x555b6a(_0x184d2a)),f(0x2,_0x555b6a(_0x1ac019))],I);var h=(_0x81e26b=>(_0x81e26b[_0x111845(0xe4)]=_0x111845(0x152),_0x81e26b[_0x111845(0x143)]=_0x111845(0xb0),_0x81e26b['FOLLOWING']=_0x111845(0xb3),_0x81e26b[_0x111845(0xb9)]=_0x111845(0x11b),_0x81e26b[_0x111845(0xdc)]=_0x111845(0x100),_0x81e26b))(h||{});const Pe=_0x111845(0x113),Ae=0xc8;let C=class extends _0x355afe{constructor(_0x4f6e98,_0x140a09,_0x579960,_0x158d89,_0x3323ec){var _0x17d75c=_0x111845;super(),d(this,_0x17d75c(0xc2),new _0x37413d(_0x17d75c(0xb0))),d(this,'status$',this[_0x17d75c(0xc2)][_0x17d75c(0xff)]()),d(this,'_init',!0x1),d(this,_0x17d75c(0x145),null),d(this,_0x17d75c(0x10b),null),(this[_0x17d75c(0xaf)]=_0x4f6e98,this[_0x17d75c(0x15c)]=_0x140a09,this[_0x17d75c(0xcc)]=_0x579960,this[_0x17d75c(0xd0)]=_0x158d89,this[_0x17d75c(0x11f)]=_0x3323ec);}get[_0x111845(0xef)](){var _0x34dcfc=_0x111845;return this[_0x34dcfc(0xc2)][_0x34dcfc(0x127)]();}[_0x111845(0x116)](){var _0x4f95cf=_0x111845,_0x3ebf86;(_0x3ebf86=this[_0x4f95cf(0x145)])==null||_0x3ebf86[_0x4f95cf(0x116)](),this[_0x4f95cf(0xc2)][_0x4f95cf(0x121)]('idle'),this[_0x4f95cf(0xc2)][_0x4f95cf(0x104)]();}[_0x111845(0xcd)](){var _0x47812c=_0x111845;this[_0x47812c(0xd8)]||(this[_0x47812c(0xd8)]=!0x0,this[_0x47812c(0x15c)][_0x47812c(0xb2)][_0x47812c(0xf4)](_0x3fc736(this['dispose$']))[_0x47812c(0xc9)](_0x4fe7bc=>{var _0x1a8c5e=_0x47812c;switch(_0x4fe7bc){case _0x29ebe5[_0x1a8c5e(0xe4)]:this['_handleOffline']();break;case _0x29ebe5[_0x1a8c5e(0x120)]:this[_0x1a8c5e(0xc8)]();break;}}),this[_0x47812c(0x15c)][_0x47812c(0x10f)][_0x47812c(0xf4)](_0x3fc736(this[_0x47812c(0x123)]))[_0x47812c(0xc9)](_0x4c2a2a=>{var _0x16a734=_0x47812c;const {eventID:_0x593ae2}=_0x4c2a2a;switch(_0x593ae2){case _0x310aef['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4c2a2a);break;case _0x310aef[_0x16a734(0x105)]:this[_0x16a734(0x13d)](_0x4c2a2a);break;case _0x310aef['LIVESHARE_TERMINATE']:this[_0x16a734(0xf5)]();break;case _0x310aef[_0x16a734(0x149)]:this[_0x16a734(0xf1)](_0x4c2a2a);break;}}));}[_0x111845(0x147)](){var _0x2c3bcf=_0x111845;this[_0x2c3bcf(0x15c)][_0x2c3bcf(0x115)]({'eventID':_0x310aef[_0x2c3bcf(0xfc)],'data':{'unitID':this[_0x2c3bcf(0xaf)],'userID':this[_0x2c3bcf(0x15c)][_0x2c3bcf(0xe1)]()}},this[_0x2c3bcf(0xaf)]);}[_0x111845(0xcb)](){var _0x3fe76d=_0x111845;this[_0x3fe76d(0xef)]===_0x3fe76d(0x100)&&(this[_0x3fe76d(0xc2)][_0x3fe76d(0x121)](_0x3fe76d(0xb0)),this['_collabSession'][_0x3fe76d(0x115)]({'eventID':_0x310aef[_0x3fe76d(0xea)],'data':{'unitID':this[_0x3fe76d(0xaf)]}},this[_0x3fe76d(0xaf)]));}['startFollowing'](){var _0x4dccd1=_0x111845;this[_0x4dccd1(0xef)]==='not-following'&&(this['_status$'][_0x4dccd1(0x121)]('following'),this[_0x4dccd1(0x137)]());}[_0x111845(0x141)](){var _0x1a7bbb=_0x111845;this[_0x1a7bbb(0xef)]===_0x1a7bbb(0xb3)&&this['_stopFollowing']();}[_0x111845(0xd1)](_0x8857df){var _0x3a18df=_0x111845;const {presenter:_0x1151ac}=_0x8857df['data'],_0x2da471=this[_0x3a18df(0x15c)][_0x3a18df(0xe1)]();this['_presenter']=_0x1151ac,_0x1151ac===_0x2da471?(this[_0x3a18df(0x14a)](),this[_0x3a18df(0x142)]()):this[_0x3a18df(0xef)]!==_0x3a18df(0x11b)&&(this[_0x3a18df(0x158)](),this[_0x3a18df(0x137)]());}[_0x111845(0x15e)](){var _0x4cdce5=_0x111845;const _0x374b0f={'eventID':_0x310aef['LIVESHARE_FETCH_OPERATIONS']};this[_0x4cdce5(0x15c)][_0x4cdce5(0x115)](_0x374b0f,this['_unitID']);}['_handleTerminate'](){var _0x2f2782=_0x111845;this[_0x2f2782(0x10b)]=null,this[_0x2f2782(0xef)]!==_0x2f2782(0x100)&&this[_0x2f2782(0x144)]();}[_0x111845(0xf1)](_0x1d9439){var _0x29a569=_0x111845;if(this[_0x29a569(0xef)]===_0x29a569(0xb3)&&this[_0x29a569(0x10b)]===_0x1d9439[_0x29a569(0xfe)][_0x29a569(0x112)]){const _0x3e7646=_0x58cb90(_0x1d9439[_0x29a569(0xfe)])[_0x29a569(0x11c)]['reverse']()[_0x29a569(0xd4)](_0x35f3c8=>_0x35f3c8['id']===_0x885b41['id']);if(_0x3e7646){const _0x3c0102=_0x3e7646['params'][_0x29a569(0xbd)],_0x5ab89a=_0x3e7646['params'][_0x29a569(0x14e)]['id'];setTimeout(()=>{var _0xb38178=_0x29a569;this[_0xb38178(0x11f)][_0xb38178(0x130)](_0x592534['id'],{'unitId':_0x3c0102,'subUnitId':_0x5ab89a},{'fromCollab':!0x0});});}}}[_0x111845(0x142)](){var _0xde3308=_0x111845;this[_0xde3308(0xc2)][_0xde3308(0x121)](_0xde3308(0x100));const _0x29ce96=new Map(),_0x28a3aa=this['_commandDisposable']=new _0x5a3486();_0x28a3aa['add'](_0x2b451f(()=>{var _0x8d82d9=_0xde3308;_0x29ce96[_0x8d82d9(0xbf)](_0x30230f=>_0x30230f['complete']()),_0x29ce96[_0x8d82d9(0xec)]();})),_0x28a3aa['add'](this[_0xde3308(0x11f)][_0xde3308(0x125)](_0x5f016a=>{var _0x3f72f4=_0xde3308,_0x36002d;if(_0x5f016a[_0x3f72f4(0x110)]!==_0x216e4e[_0x3f72f4(0xb5)]||!this['_liveShareService']['shouldShareOperation'](_0x5f016a['id']))return;const {id:_0x465dd2}=_0x5f016a;let _0x4fe5e0;_0x29ce96[_0x3f72f4(0x15f)](_0x465dd2)?_0x4fe5e0=_0x29ce96['get'](_0x465dd2):(_0x4fe5e0=new _0x35d171(),_0x29ce96[_0x3f72f4(0xf8)](_0x465dd2,_0x4fe5e0),_0x4fe5e0['pipe'](_0x23c445((_0x36002d=this[_0x3f72f4(0xcc)][_0x3f72f4(0xeb)](Pe))!=null?_0x36002d:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3f72f4(0xc9)](_0x4a0355=>{var _0x52ba58=_0x3f72f4;this[_0x52ba58(0x15c)]['send']({'eventID':_0x310aef[_0x52ba58(0x105)],'data':{'unitID':this[_0x52ba58(0xaf)],'operations':{[_0x4a0355['id']]:{'id':_0x4a0355['id'],'params':JSON[_0x52ba58(0xad)](_0x4a0355['params'])}}}},this[_0x52ba58(0xaf)]);})),_0x4fe5e0[_0x3f72f4(0x121)](_0x5f016a);})),this[_0xde3308(0xd0)][_0xde3308(0x126)](this[_0xde3308(0xaf)])[_0xde3308(0xbf)](_0x133707=>this[_0xde3308(0x15c)][_0xde3308(0x115)]({'eventID':_0x310aef[_0xde3308(0x105)],'data':{'unitID':this[_0xde3308(0xaf)],'operations':{[_0x133707['id']]:{'id':_0x133707['id'],'params':JSON[_0xde3308(0xad)](_0x133707[_0xde3308(0x15b)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x16aec4=_0x111845,_0x3a3805;this[_0x16aec4(0xc2)][_0x16aec4(0x121)]('idle'),(_0x3a3805=this['_commandDisposable'])==null||_0x3a3805[_0x16aec4(0x116)](),this[_0x16aec4(0x145)]=null;}[_0x111845(0x137)](){var _0x331ff8=_0x111845,_0x2d541b;(_0x2d541b=this[_0x331ff8(0x145)])==null||_0x2d541b[_0x331ff8(0x116)](),this[_0x331ff8(0xc2)][_0x331ff8(0x121)](_0x331ff8(0xb3));}[_0x111845(0x144)](){var _0xcadade=_0x111845,_0x466821;this[_0xcadade(0xc2)][_0xcadade(0x121)](_0xcadade(0xb0)),(_0x466821=this[_0xcadade(0x145)])==null||_0x466821[_0xcadade(0x116)](),this[_0xcadade(0x145)]=null;}['_stopFollowing'](){var _0x285e3d=_0x111845,_0x30edd8;this[_0x285e3d(0xc2)][_0x285e3d(0x121)]('not-following'),(_0x30edd8=this[_0x285e3d(0x145)])==null||_0x30edd8[_0x285e3d(0x116)]();}[_0x111845(0x13d)](_0x47fda){var _0x3c6db2=_0x111845;if([_0x3c6db2(0x100),_0x3c6db2(0x11b),_0x3c6db2(0x152)][_0x3c6db2(0x162)](this[_0x3c6db2(0xef)])||!_0x47fda[_0x3c6db2(0xfe)]['presenter']||_0x47fda[_0x3c6db2(0xfe)][_0x3c6db2(0x154)]===this[_0x3c6db2(0x15c)][_0x3c6db2(0xe1)]())return;this['_status']==='idle'&&this[_0x3c6db2(0x137)]();const _0x3087d5=_0x47fda[_0x3c6db2(0xfe)][_0x3c6db2(0xd9)];Object[_0x3c6db2(0x122)](_0x3087d5)['forEach'](_0x59bebf=>{var _0x1bb567=_0x3c6db2;this[_0x1bb567(0x11f)]['executeCommand'](_0x59bebf['id'],_0x59bebf['params']?JSON[_0x1bb567(0x13c)](_0x59bebf[_0x1bb567(0x15b)]):null,{'fromCollab':!0x0});});}[_0x111845(0xb7)](){var _0x31b2b4=_0x111845,_0x29f3d7;this[_0x31b2b4(0xc2)]['next'](_0x31b2b4(0x152)),(_0x29f3d7=this[_0x31b2b4(0x145)])==null||_0x29f3d7[_0x31b2b4(0x116)]();}[_0x111845(0xc8)](){var _0x1881d6=_0x111845;this['_status$'][_0x1881d6(0x121)](_0x1881d6(0xb0)),this['_fetchOperations']();}};C=Z([f(0x2,_0x5942dd),f(0x3,_0x555b6a(L)),f(0x4,_0xebcdd)],C);function Te(){var _0x5114e4=_0x111845;const _0x3445f6=_0x71080f(I),_0x9f9a1a=_0x71080f(_0x2a63fd),_0x5bac64=_0x3a54bb(()=>_0x9f9a1a[_0x5114e4(0x13e)](_0x36368d[_0x5114e4(0x13b)]),void 0x0,!0x1,[]),[_0x177de8,_0x476210]=_0x198177(null),[_0x21b854,_0x42b410]=_0x198177(h[_0x5114e4(0x143)]),_0x2a1b25=_0x349cca(null);return _0x4a5c1f(()=>(_0x5bac64&&_0x3445f6[_0x5114e4(0x10e)](_0x5bac64['getUnitId']())[_0x5114e4(0x107)](_0x251ef5=>{var _0xc0952d=_0x5114e4;_0x476210(_0x251ef5),_0x2a1b25['current']=_0x251ef5[_0xc0952d(0xc3)][_0xc0952d(0xc9)](_0x155664=>{_0x42b410(_0x155664);});}),()=>{var _0x1e7845=_0x5114e4,_0x394705;(_0x394705=_0x2a1b25[_0x1e7845(0x101)])==null||_0x394705[_0x1e7845(0xe5)](),_0x2a1b25[_0x1e7845(0x101)]=null;}),[_0x5bac64,_0x3445f6]),_0x177de8?_0x33981f(_0x1a6ce9,{'align':'end','disabled':_0x21b854===h[_0x5114e4(0xe4)],'className':_0x5114e4(0x118),'overlay':_0x33981f($e,{'status':_0x21b854,'coordinator':_0x177de8}),'children':_0x33981f(_0x5114e4(0xbb),{'className':_0x1ef98e('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x21b854===h[_0x5114e4(0xe4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21b854!==h['OFFLINE']}),'type':_0x5114e4(0xbb),'children':_0x33981f(B,{'className':_0x5114e4(0x155)})})}):null;}function $e(_0x394cd6){var _0x419be0=_0x111845;const {status:_0x335cc2,coordinator:_0x22fb02}=_0x394cd6;switch(_0x335cc2){case h['IDLE']:return _0x33981f(Fe,{'coordinator':_0x22fb02});case h['FOLLOWING']:return _0x33981f(He,{'coordinator':_0x22fb02});case h['NOT_FOLLOWING']:return _0x33981f(je,{'coordinator':_0x22fb02});case h[_0x419be0(0xe4)]:return _0x33981f(Ve,{});case h[_0x419be0(0xdc)]:return _0x33981f(Ue,{'coordinator':_0x22fb02});default:return null;}}function Fe(_0x3b54a9){var _0x576c38=_0x111845;const {coordinator:_0xa4f667}=_0x3b54a9;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x576c38(0x161),{'className':_0x576c38(0xe3),'children':'Present\x20this\x20document'}),_0x33981f(_0x28744d,{'onClick':()=>_0xa4f667[_0x576c38(0x147)](),'children':'Start'})]});}function He(_0x3b6174){var _0x504461=_0x111845;const {coordinator:_0xf2c592}=_0x3b6174;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x504461(0x161),{'className':_0x504461(0xe3),'children':_0x504461(0xf6)}),_0x33981f(_0x28744d,{'onClick':()=>_0xf2c592[_0x504461(0x141)](),'children':'Stop\x20following'})]});}function je(_0x1f5d45){var _0x216ecd=_0x111845;const {coordinator:_0x335676}=_0x1f5d45;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x216ecd(0x161),{'className':_0x216ecd(0xe3),'children':_0x216ecd(0xe6)}),_0x33981f(_0x28744d,{'variant':_0x216ecd(0x140),'onClick':()=>_0x335676[_0x216ecd(0x15a)](),'children':_0x216ecd(0x129)})]});}function Ue(_0x4d3787){var _0x1a6082=_0x111845;const {coordinator:_0x570917}=_0x4d3787;return _0x6e3e1(_0x476040,{'children':[_0x33981f(_0x1a6082(0x161),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1a6082(0xfd)}),_0x33981f(_0x28744d,{'variant':'default','onClick':()=>_0x570917[_0x1a6082(0xcb)](),'children':_0x1a6082(0x146)})]});}function Ve(){return _0x33981f(_0x476040,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x111845(0x13f)],ke=(_0x4ad446,_0x55edca,_0x110311,_0x330de9)=>{var _0xb1adee=_0x111845;for(var _0x30a031=_0x330de9>0x1?void 0x0:_0x330de9?Me(_0x55edca,_0x110311):_0x55edca,_0x575951=_0x4ad446[_0xb1adee(0xf0)]-0x1,_0x2ad450;_0x575951>=0x0;_0x575951--)(_0x2ad450=_0x4ad446[_0x575951])&&(_0x30a031=_0x2ad450(_0x30a031)||_0x30a031);return _0x30a031;},$=(_0x98cad0,_0x2e1eb3)=>(_0x1a6655,_0x5e9046)=>_0x2e1eb3(_0x1a6655,_0x5e9046,_0x98cad0);let b=class extends _0x4c2516{constructor(_0x2644fc,_0x574014){var _0x26d564=_0x111845;super(),this[_0x26d564(0xf9)]=_0x2644fc,this[_0x26d564(0x148)]=_0x574014,this[_0x26d564(0x151)]();}[_0x111845(0x151)](){var _0x1bdaf1=_0x111845;this[_0x1bdaf1(0x12d)](this[_0x1bdaf1(0x148)][_0x1bdaf1(0x134)](_0xb3b934[_0x1bdaf1(0x11a)],()=>_0x3f0fd6(Te,this['_injector'])));}};b=ke([$(0x0,_0x555b6a(_0x184d2a)),$(0x1,_0x150f06)],b);var Ge=Object[_0x111845(0x11d)],We=Object[_0x111845(0x13f)],Ye=(_0x5d3fdb,_0x25a8e0,_0x17ff18)=>_0x25a8e0 in _0x5d3fdb?Ge(_0x5d3fdb,_0x25a8e0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17ff18}):_0x5d3fdb[_0x25a8e0]=_0x17ff18,Be=(_0x1cc361,_0x54a335,_0x2d616c,_0x298143)=>{var _0x436b20=_0x111845;for(var _0x5148ac=_0x298143>0x1?void 0x0:_0x298143?We(_0x54a335,_0x2d616c):_0x54a335,_0x277caf=_0x1cc361[_0x436b20(0xf0)]-0x1,_0x42777b;_0x277caf>=0x0;_0x277caf--)(_0x42777b=_0x1cc361[_0x277caf])&&(_0x5148ac=_0x42777b(_0x5148ac)||_0x5148ac);return _0x5148ac;},F=(_0x17fab3,_0x1b0c65)=>(_0x4ebbc2,_0x536082)=>_0x1b0c65(_0x4ebbc2,_0x536082,_0x17fab3),J=(_0x3eddcd,_0x4debfc,_0xaa0a3)=>Ye(_0x3eddcd,typeof _0x4debfc!='symbol'?_0x4debfc+'':_0x4debfc,_0xaa0a3);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x19e569{constructor(_0x16fde1=T,_0x303e94,_0x2f3bb2){var _0x4fe7b5=_0x111845;super(),this['_config']=_0x16fde1,this[_0x4fe7b5(0xf9)]=_0x303e94,this[_0x4fe7b5(0xcc)]=_0x2f3bb2;const {..._0x59c25a}=_0x47cc38({},T,this[_0x4fe7b5(0x12e)]);this[_0x4fe7b5(0xcc)][_0x4fe7b5(0xdb)](Oe,_0x59c25a);}['onStarting'](){var _0x2eefa1=_0x111845;_0x134e0c(this[_0x2eefa1(0xf9)],_0x9bf70b([[L],[I],[m],[b]],this[_0x2eefa1(0x12e)][_0x2eefa1(0xce)])),_0x4b550f(this[_0x2eefa1(0xf9)],[[m]]);}[_0x111845(0x133)](){_0x4b550f(this['_injector'],[[b]]);}};J(O,_0x111845(0x110),_0x36368d[_0x111845(0xfb)]),J(O,'pluginName',Ze),O=Be([_0x49dea1(_0x472ee4),F(0x1,_0x555b6a(_0x184d2a)),F(0x2,_0x5942dd)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x2886db=_0x695d;(function(_0x2703d9,_0x3b1564){var _0x42cf87=_0x695d,_0x447e39=_0x2703d9();while(!![]){try{var _0x16c535=parseInt(_0x42cf87(0x1a3))/0x1+-parseInt(_0x42cf87(0x1ea))/0x2+parseInt(_0x42cf87(0x1e2))/0x3+-parseInt(_0x42cf87(0x1c1))/0x4+parseInt(_0x42cf87(0x1a0))/0x5*(parseInt(_0x42cf87(0x1bb))/0x6)+parseInt(_0x42cf87(0x187))/0x7+parseInt(_0x42cf87(0x1c2))/0x8;if(_0x16c535===_0x3b1564)break;else _0x447e39['push'](_0x447e39['shift']());}catch(_0x21a2b3){_0x447e39['push'](_0x447e39['shift']());}}}(_0xe8c5,0xc1a67));var q=Object[_0x2886db(0x1fe)],z=(_0x6fd7f3,_0xf382dd,_0x4ef9e4)=>_0xf382dd in _0x6fd7f3?q(_0x6fd7f3,_0xf382dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ef9e4}):_0x6fd7f3[_0xf382dd]=_0x4ef9e4,d=(_0x49ce15,_0x2e15bc,_0x366d9a)=>z(_0x49ce15,typeof _0x2e15bc!=_0x2886db(0x1c0)?_0x2e15bc+'':_0x2e15bc,_0x366d9a);import{CollaborationSessionService as _0x37b98,SessionStatus as _0x4e7aee,UniverCollaborationClientPlugin as _0x5a9880}from'@univerjs-pro/collaboration-client';import{Disposable as _0x172f34,toDisposable as _0x3a14b5,Inject as _0x10aaa1,IUniverInstanceService as _0x11d622,Injector as _0x2015d8,IConfigService as _0x37a6e8,ICommandService as _0x342266,RxDisposable as _0x6f1f15,UniverInstanceType as _0x4aff88,DisposableCollection as _0x274689,CommandType as _0x55a605,DependentOn as _0x35d3f7,Plugin as _0x3a7036,merge as _0x4c5a48,registerDependencies as _0x5c518a,mergeOverrideWithDependencies as _0x1d9838,touchDependencies as _0x1e2724}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xcf814f,InsertSheetMutation as _0x1800b8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x59a1e5,SetScrollOperation as _0x28ccdf}from'@univerjs/sheets-ui';import{useDependency as _0x5b3603,useObservable as _0x2d4df2,IUIPartsService as _0x125ac6,BuiltInUIPart as _0x2083b0,connectInjector as _0x1b45da}from'@univerjs/ui';function _0xe8c5(){var _0x5b08f7=['_commandDisposable','data','_uiPartsService','UNIVER_LIVE_SHARE_PLUGIN','_fetchOperations','status$','createInstance','not-following','_unitID','160GtGCon','displayName','_collabSession','672842RruRfX','clear','http://www.w3.org/2000/svg','_configService','_handleTerminate','pluginName','getTypeOfUnitAdded$','registerInitialStateReporter','NOT_FOLLOWING','svg','onCommandExecuted','button','path','unsubscribe','_univerInstanceService','substring','_liveShareService','getMemberID','init','Start\x20following','operations','end','mask','find','41682tSaQyj','_stopPresenting','sheet','startFollowing','SAME_OPERATION_SHARE_INTERVAL','symbol','5727132ibxYQW','5709768gAsUEh','pipe','send','subscribe','getTypeOfUnitDisposed$','OPERATION','univer-w-full\x20univer-mb-3\x20univer-text-sm','presenter','univerjs-icon\x20univerjs-icon-','indexOf','sessionStatus$','function','use','registerComponent','icon','set','add','LIVESHARE_TERMINATE','stopPresenting','Start','OFFLINE','currentColor','getUnitId','values','idle','UNIVER_SHEET','replace','map','asObservable','You\x27re\x20not\x20following\x20the\x20presenter','getOwnPropertyDescriptor','_handleNewChangeSets','2559432JKoicy','get','IDLE','_status$','stopFollowing','default','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','HEADER_MENU','2289478UaXRZi','extend','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_startFollowing','params','getLiveShareCoordinator','_startLiveShareCoordinator','disposeWithMe','univer-size-4','You\x27re\x20presenting\x20the\x20document','unitId','text','url(#$1','memberID','1em','_status','current','getInitialStates','idSuffix','xlink:href','defineProperty','dispose','getConfig','onStarting','PRESENTING','shouldShareOperation','from','length','dispose$','_presenter','trim','_entities','string','_init','includes','LIVESHARE_REQUEST_HOST','Stop\x20following','prototype','stringify','_stopFollowing','forEach','registerSharedOperation','hasOwnProperty','colorChannel1','_sharedOperations','LIVESHARE_OPERATION','requireSession','_handleNewHost','_commandService','parse','LIVESHARE_FETCH_OPERATIONS','_config','defIds','_injector','Stop\x20presenting','type','_beIdle','mutations','UniverIcon','evenodd','live-share-icon','presenting','none','Present\x20this\x20document','_reporters','div','tag','apply','_handleOnline','_mountLiveShare','has','reverse','UNIVER_UNKNOWN','children','delete','_handleOperation','setConfig','6353914RfmbYB','tryStartPresenting','random','You\x27re\x20following\x20the\x20presenter','offline','getCurrentTypeOfUnit$','following','attrs','concat','next','FOLLOWING','assign','then','executeCommand','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','call'];_0xe8c5=function(){return _0x5b08f7;};return _0xe8c5();}import{jsx as _0x3a52ad,jsxs as _0x199030,Fragment as _0x1dbeda}from'react/jsx-runtime';import{Dropdown as _0x4dd19b,clsx as _0x2351ae,Button as _0x2dde90}from'@univerjs/design';import{forwardRef as _0x55f301,useRef as _0x2d195a,createElement as _0xc61559,useState as _0x11cb7c,useEffect as _0x548d7b}from'react';import{CollaborationEvent as _0x31f6e1,parseProtocolChangeset as _0xb1adb}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1dc9f4,Subject as _0x5762}from'rxjs';import{takeUntil as _0x120c99,throttleTime as _0x2d347e}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x172f34{constructor(){var _0x530ca9=_0x2886db;super(...arguments),d(this,_0x530ca9(0x216),new Set()),d(this,_0x530ca9(0x17a),new Set());}[_0x2886db(0x213)](_0xa9a2eb){var _0x3ab327=_0x2886db;return this[_0x3ab327(0x216)]['add'](_0xa9a2eb),_0x3a14b5(()=>this[_0x3ab327(0x216)][_0x3ab327(0x184)](_0xa9a2eb));}[_0x2886db(0x1aa)](_0xd28cfd){var _0x43d297=_0x2886db;return this[_0x43d297(0x17a)]['add'](_0xd28cfd),_0x3a14b5(()=>this[_0x43d297(0x17a)][_0x43d297(0x184)](_0xd28cfd));}[_0x2886db(0x203)](_0x1be4db){var _0x40f7d5=_0x2886db;return this[_0x40f7d5(0x216)]['has'](_0x1be4db);}[_0x2886db(0x1fb)](_0x183b70){var _0x4fee2f=_0x2886db;return Array[_0x4fee2f(0x204)](this['_reporters'])[_0x4fee2f(0x1dd)](_0x50791d=>_0x50791d(_0x183b70));}}var Ee=Object[_0x2886db(0x1e0)],we=(_0x18011c,_0x10c997,_0x2ff8b6,_0x4c53c0)=>{var _0x35c24c=_0x2886db;for(var _0x5bccd3=_0x4c53c0>0x1?void 0x0:_0x4c53c0?Ee(_0x10c997,_0x2ff8b6):_0x10c997,_0x476d91=_0x18011c[_0x35c24c(0x205)]-0x1,_0xb2602c;_0x476d91>=0x0;_0x476d91--)(_0xb2602c=_0x18011c[_0x476d91])&&(_0x5bccd3=_0xb2602c(_0x5bccd3)||_0x5bccd3);return _0x5bccd3;},Ne=(_0xcb8e00,_0x1bdf91)=>(_0x27709c,_0x5d933b)=>_0x1bdf91(_0x27709c,_0x5d933b,_0xcb8e00);let m=class extends _0x172f34{constructor(_0x1c26df){var _0x27310a=_0x2886db;super(),this[_0x27310a(0x1b3)]=_0x1c26df,this[_0x27310a(0x20b)]();}['_init'](){[_0x59a1e5['id'],_0x28ccdf['id'],_0xcf814f['id']]['forEach'](_0x45fb27=>{var _0x338720=_0x695d;this[_0x338720(0x1f1)](this[_0x338720(0x1b3)][_0x338720(0x213)](_0x45fb27));});}};m=we([Ne(0x0,_0x10aaa1(L))],m);var c=function(){var _0x28ffd9=_0x2886db;return c=Object['assign']||function(_0x42fdd4){var _0xc4ae1b=_0x695d;for(var _0x4fbdf2,_0x1b24f6=0x1,_0x1c5fe9=arguments[_0xc4ae1b(0x205)];_0x1b24f6<_0x1c5fe9;_0x1b24f6++){_0x4fbdf2=arguments[_0x1b24f6];for(var _0x4f99a7 in _0x4fbdf2)Object[_0xc4ae1b(0x20f)]['hasOwnProperty'][_0xc4ae1b(0x196)](_0x4fbdf2,_0x4f99a7)&&(_0x42fdd4[_0x4f99a7]=_0x4fbdf2[_0x4f99a7]);}return _0x42fdd4;},c[_0x28ffd9(0x17d)](this,arguments);},Ce=function(_0x397068,_0x18e9a5){var _0x21b23c=_0x2886db,_0xbe4af8={};for(var _0x5791af in _0x397068)Object['prototype'][_0x21b23c(0x214)][_0x21b23c(0x196)](_0x397068,_0x5791af)&&_0x18e9a5['indexOf'](_0x5791af)<0x0&&(_0xbe4af8[_0x5791af]=_0x397068[_0x5791af]);if(_0x397068!=null&&typeof Object['getOwnPropertySymbols']==_0x21b23c(0x1cd)){for(var _0x365b14=0x0,_0x5791af=Object['getOwnPropertySymbols'](_0x397068);_0x365b14<_0x5791af[_0x21b23c(0x205)];_0x365b14++)_0x18e9a5[_0x21b23c(0x1cb)](_0x5791af[_0x365b14])<0x0&&Object[_0x21b23c(0x20f)]['propertyIsEnumerable'][_0x21b23c(0x196)](_0x397068,_0x5791af[_0x365b14])&&(_0xbe4af8[_0x5791af[_0x365b14]]=_0x397068[_0x5791af[_0x365b14]]);}return _0xbe4af8;},W=_0x55f301(function(_0x362ed2,_0x2ad381){var _0x393126=_0x2886db,_0x105cb4=_0x362ed2[_0x393126(0x1d0)],_0x32307a=_0x362ed2['id'],_0x30c563=_0x362ed2['className'],_0x5a4b4a=_0x362ed2['extend'],_0x4a13c3=Ce(_0x362ed2,[_0x393126(0x1d0),'id','className',_0x393126(0x1eb)]),_0xadbe55=_0x393126(0x1ca)[_0x393126(0x18f)](_0x32307a,'\x20')[_0x393126(0x18f)](_0x30c563||'')[_0x393126(0x208)](),_0x323407=_0x2d195a('_'['concat'](Le()));return Y(_0x105cb4,''[_0x393126(0x18f)](_0x32307a),{'defIds':_0x105cb4[_0x393126(0x21e)],'idSuffix':_0x323407[_0x393126(0x1fa)]},c({'ref':_0x2ad381,'className':_0xadbe55},_0x4a13c3),_0x5a4b4a);});function Y(_0x56ab80,_0x5478e5,_0x5ac3d4,_0x56c996,_0x55335c){var _0x399ce6=_0x2886db;return _0xc61559(_0x56ab80[_0x399ce6(0x17c)],c(c({'key':_0x5478e5},De(_0x56ab80,_0x5ac3d4,_0x55335c)),_0x56c996),(xe(_0x56ab80,_0x5ac3d4)['children']||[])[_0x399ce6(0x1dd)](function(_0x51dd99,_0x280f97){var _0x51b815=_0x399ce6;return Y(_0x51dd99,''['concat'](_0x5478e5,'-')[_0x51b815(0x18f)](_0x56ab80[_0x51b815(0x17c)],'-')[_0x51b815(0x18f)](_0x280f97),_0x5ac3d4,void 0x0,_0x55335c);}));}function De(_0x2d8e39,_0x358f41,_0x3e1612){var _0x502666=_0x2886db,_0x12043d=c({},_0x2d8e39[_0x502666(0x18e)]);_0x3e1612!=null&&_0x3e1612[_0x502666(0x215)]&&_0x12043d['fill']===_0x502666(0x215)&&(_0x12043d['fill']=_0x3e1612[_0x502666(0x215)]),_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1b9)&&_0x12043d['id']&&(_0x12043d['id']=_0x12043d['id']+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x36579d){var _0x36c549=_0x502666,_0x3e4d7d=_0x36579d[0x0],_0x37ffee=_0x36579d[0x1];_0x3e4d7d===_0x36c549(0x1b9)&&typeof _0x37ffee==_0x36c549(0x20a)&&(_0x12043d[_0x3e4d7d]=_0x37ffee[_0x36c549(0x1dc)](/url\(#(.*)\)/,_0x36c549(0x1f6)['concat'](_0x358f41[_0x36c549(0x1fc)],')')));});var _0x3cad34=_0x358f41[_0x502666(0x21e)];return!_0x3cad34||_0x3cad34[_0x502666(0x205)]===0x0||(_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1ce)&&_0x12043d[_0x502666(0x1fd)]&&(_0x12043d[_0x502666(0x1fd)]=_0x12043d[_0x502666(0x1fd)]+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x31012a){var _0x50d183=_0x502666,_0x662a59=_0x31012a[0x0],_0x516b0d=_0x31012a[0x1];typeof _0x516b0d==_0x50d183(0x20a)&&(_0x12043d[_0x662a59]=_0x516b0d[_0x50d183(0x1dc)](/url\(#(.*)\)/,'url(#$1'[_0x50d183(0x18f)](_0x358f41['idSuffix'],')')));})),_0x12043d;}function xe(_0x4e591f,_0x318086){var _0x2a4441=_0x2886db,_0x245494,_0x5db848=_0x318086['defIds'];return!_0x5db848||_0x5db848[_0x2a4441(0x205)]===0x0?_0x4e591f:_0x4e591f['tag']==='defs'&&(!((_0x245494=_0x4e591f['children'])===null||_0x245494===void 0x0)&&_0x245494[_0x2a4441(0x205)])?c(c({},_0x4e591f),{'children':_0x4e591f[_0x2a4441(0x183)][_0x2a4441(0x1dd)](function(_0x4d1368){var _0x552cac=_0x2a4441;return typeof _0x4d1368[_0x552cac(0x18e)]['id']==_0x552cac(0x20a)&&_0x5db848&&_0x5db848[_0x552cac(0x20c)](_0x4d1368[_0x552cac(0x18e)]['id'])?c(c({},_0x4d1368),{'attrs':c(c({},_0x4d1368[_0x552cac(0x18e)]),{'id':_0x4d1368['attrs']['id']+_0x318086[_0x552cac(0x1fc)]})}):_0x4d1368;})}):_0x4e591f;}function Le(){var _0x4e58f4=_0x2886db;return Math[_0x4e58f4(0x189)]()['toString'](0x24)[_0x4e58f4(0x1b2)](0x2,0x8);}W[_0x2886db(0x1a1)]=_0x2886db(0x174);var ye={'tag':_0x2886db(0x1ac),'attrs':{'xmlns':_0x2886db(0x1a5),'fill':_0x2886db(0x178),'viewBox':'0\x200\x2017\x2017','width':_0x2886db(0x1f8),'height':_0x2886db(0x1f8)},'children':[{'tag':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'d':_0x2886db(0x195),'fillRule':_0x2886db(0x175),'clipRule':_0x2886db(0x175)}}]},B=_0x55f301(function(_0x13781d,_0x349829){var _0x21bfbc=_0x2886db;return _0xc61559(W,Object[_0x21bfbc(0x192)]({},_0x13781d,{'id':_0x21bfbc(0x176),'ref':_0x349829,'icon':ye}));});B[_0x2886db(0x1a1)]='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x2b7426,_0x5ba008,_0x59a7e8,_0x2492e9)=>{var _0x3c2bf7=_0x2886db;for(var _0x2e3c93=_0x2492e9>0x1?void 0x0:_0x2492e9?Re(_0x5ba008,_0x59a7e8):_0x5ba008,_0x79da07=_0x2b7426[_0x3c2bf7(0x205)]-0x1,_0xbd78e8;_0x79da07>=0x0;_0x79da07--)(_0xbd78e8=_0x2b7426[_0x79da07])&&(_0x2e3c93=_0xbd78e8(_0x2e3c93)||_0x2e3c93);return _0x2e3c93;},f=(_0x59200c,_0x596e39)=>(_0x406125,_0x52dd4b)=>_0x596e39(_0x406125,_0x52dd4b,_0x59200c);let I=class extends _0x6f1f15{constructor(_0x5107f1,_0x26a3f1,_0x3eee54){var _0x575e85=_0x2886db;super(),d(this,_0x575e85(0x209),new Map()),(this[_0x575e85(0x1b1)]=_0x5107f1,this[_0x575e85(0x21f)]=_0x26a3f1,this['_collabSessionService']=_0x3eee54,this[_0x575e85(0x20b)]());}async[_0x2886db(0x1ef)](_0x227b7b){var _0x4176c4=_0x2886db;return this[_0x4176c4(0x209)][_0x4176c4(0x180)](_0x227b7b)||await this[_0x4176c4(0x1f0)](_0x227b7b),this[_0x4176c4(0x209)][_0x4176c4(0x1e3)](_0x227b7b);}[_0x2886db(0x20b)](){var _0x4fd0dd=_0x2886db;this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1a9)](_0x4aff88[_0x4fd0dd(0x1db)])['pipe'](_0x120c99(this[_0x4fd0dd(0x206)]))['subscribe'](async _0x55ce3e=>{var _0x3f9089=_0x4fd0dd;const _0x421d83=_0x55ce3e[_0x3f9089(0x1d8)]();this[_0x3f9089(0x209)][_0x3f9089(0x180)](_0x421d83)||this[_0x3f9089(0x1f0)](_0x421d83);}),this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1c6)](_0x4aff88[_0x4fd0dd(0x1db)])[_0x4fd0dd(0x1c3)](_0x120c99(this[_0x4fd0dd(0x206)]))[_0x4fd0dd(0x1c5)](_0x584625=>{var _0x420a86=_0x4fd0dd;const _0x56f2c9=_0x584625[_0x420a86(0x1d8)](),_0x1150f6=this[_0x420a86(0x209)][_0x420a86(0x1e3)](_0x56f2c9);_0x1150f6==null||_0x1150f6['dispose']();});}async[_0x2886db(0x1f0)](_0x525019){var _0x54f5c7=_0x2886db;const _0x3c5d8e=await this['_collabSessionService'][_0x54f5c7(0x218)](_0x525019),_0x171e35=this[_0x54f5c7(0x21f)][_0x54f5c7(0x19d)](C,_0x525019,_0x3c5d8e);return _0x171e35[_0x54f5c7(0x1b5)](),this[_0x54f5c7(0x209)][_0x54f5c7(0x1d1)](_0x525019,_0x171e35),_0x171e35;}};I=Z([f(0x0,_0x11d622),f(0x1,_0x10aaa1(_0x2015d8)),f(0x2,_0x10aaa1(_0x37b98))],I);var h=(_0x27a6a2=>(_0x27a6a2['OFFLINE']='offline',_0x27a6a2[_0x2886db(0x1e4)]='idle',_0x27a6a2[_0x2886db(0x191)]=_0x2886db(0x18d),_0x27a6a2[_0x2886db(0x1ab)]=_0x2886db(0x19e),_0x27a6a2[_0x2886db(0x202)]=_0x2886db(0x177),_0x27a6a2))(h||{});function _0x695d(_0x28dd9a,_0x923fb0){var _0xe8c531=_0xe8c5();return _0x695d=function(_0x695db1,_0x5e4718){_0x695db1=_0x695db1-0x171;var _0x10bc6b=_0xe8c531[_0x695db1];return _0x10bc6b;},_0x695d(_0x28dd9a,_0x923fb0);}const Pe=_0x2886db(0x1bf),Ae=0xc8;let C=class extends _0x6f1f15{constructor(_0xecbae6,_0x11b829,_0x3e111e,_0x4e07d3,_0x19eaf2){var _0x126e77=_0x2886db;super(),d(this,'_status$',new _0x1dc9f4(_0x126e77(0x1da))),d(this,_0x126e77(0x19c),this[_0x126e77(0x1e5)][_0x126e77(0x1de)]()),d(this,_0x126e77(0x20b),!0x1),d(this,_0x126e77(0x197),null),d(this,'_presenter',null),(this[_0x126e77(0x19f)]=_0xecbae6,this[_0x126e77(0x1a2)]=_0x11b829,this[_0x126e77(0x1a6)]=_0x3e111e,this[_0x126e77(0x1b3)]=_0x4e07d3,this[_0x126e77(0x21a)]=_0x19eaf2);}get['_status'](){var _0x2a3b2a=_0x2886db;return this[_0x2a3b2a(0x1e5)]['getValue']();}[_0x2886db(0x1ff)](){var _0x53d1da=_0x2886db,_0x43a5f2;(_0x43a5f2=this['_commandDisposable'])==null||_0x43a5f2[_0x53d1da(0x1ff)](),this[_0x53d1da(0x1e5)]['next'](_0x53d1da(0x1da)),this[_0x53d1da(0x1e5)]['complete']();}[_0x2886db(0x1b5)](){var _0x30f21d=_0x2886db;this[_0x30f21d(0x20b)]||(this[_0x30f21d(0x20b)]=!0x0,this['_collabSession'][_0x30f21d(0x1cc)][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x241dfb=>{var _0x1c8fa5=_0x30f21d;switch(_0x241dfb){case _0x4e7aee[_0x1c8fa5(0x1d6)]:this['_handleOffline']();break;case _0x4e7aee['ONLINE']:this[_0x1c8fa5(0x17e)]();break;}}),this['_collabSession']['event$'][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x9c2bfb=>{var _0x4f988f=_0x30f21d;const {eventID:_0x5ce4dc}=_0x9c2bfb;switch(_0x5ce4dc){case _0x31f6e1['LIVESHARE_NEW_HOST']:this[_0x4f988f(0x219)](_0x9c2bfb);break;case _0x31f6e1['LIVESHARE_OPERATION']:this[_0x4f988f(0x185)](_0x9c2bfb);break;case _0x31f6e1[_0x4f988f(0x1d3)]:this[_0x4f988f(0x1a7)]();break;case _0x31f6e1['NEW_CHANGESETS']:this[_0x4f988f(0x1e1)](_0x9c2bfb);break;}}));}[_0x2886db(0x188)](){var _0x5be021=_0x2886db;this[_0x5be021(0x1a2)][_0x5be021(0x1c4)]({'eventID':_0x31f6e1[_0x5be021(0x20d)],'data':{'unitID':this[_0x5be021(0x19f)],'userID':this[_0x5be021(0x1a2)][_0x5be021(0x1b4)]()}},this['_unitID']);}[_0x2886db(0x1d4)](){var _0x366b91=_0x2886db;this[_0x366b91(0x1f9)]==='presenting'&&(this[_0x366b91(0x1e5)][_0x366b91(0x190)]('idle'),this[_0x366b91(0x1a2)]['send']({'eventID':_0x31f6e1[_0x366b91(0x1d3)],'data':{'unitID':this['_unitID']}},this[_0x366b91(0x19f)]));}[_0x2886db(0x1be)](){var _0x55ea58=_0x2886db;this[_0x55ea58(0x1f9)]===_0x55ea58(0x19e)&&(this[_0x55ea58(0x1e5)][_0x55ea58(0x190)](_0x55ea58(0x18d)),this['_startFollowing']());}[_0x2886db(0x1e6)](){var _0x3a58e3=_0x2886db;this[_0x3a58e3(0x1f9)]===_0x3a58e3(0x18d)&&this[_0x3a58e3(0x211)]();}[_0x2886db(0x219)](_0x4715bb){var _0x32700c=_0x2886db;const {presenter:_0x3ff6fc}=_0x4715bb[_0x32700c(0x198)],_0x36d41c=this[_0x32700c(0x1a2)][_0x32700c(0x1b4)]();this[_0x32700c(0x207)]=_0x3ff6fc,_0x3ff6fc===_0x36d41c?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x32700c(0x19e)&&(this[_0x32700c(0x1bc)](),this[_0x32700c(0x1ed)]());}[_0x2886db(0x19b)](){var _0x437216=_0x2886db;const _0x49b2e3={'eventID':_0x31f6e1[_0x437216(0x21c)]};this[_0x437216(0x1a2)][_0x437216(0x1c4)](_0x49b2e3,this[_0x437216(0x19f)]);}[_0x2886db(0x1a7)](){var _0x1df453=_0x2886db;this['_presenter']=null,this[_0x1df453(0x1f9)]!==_0x1df453(0x177)&&this[_0x1df453(0x172)]();}[_0x2886db(0x1e1)](_0x3879a2){var _0x73a500=_0x2886db;if(this['_status']==='following'&&this['_presenter']===_0x3879a2[_0x73a500(0x198)][_0x73a500(0x1f7)]){const _0x267bf4=_0xb1adb(_0x3879a2[_0x73a500(0x198)])[_0x73a500(0x173)][_0x73a500(0x181)]()[_0x73a500(0x1ba)](_0x477c52=>_0x477c52['id']===_0x1800b8['id']);if(_0x267bf4){const _0x5f1cc4=_0x267bf4[_0x73a500(0x1ee)][_0x73a500(0x1f4)],_0x3c4392=_0x267bf4['params'][_0x73a500(0x1bd)]['id'];setTimeout(()=>{var _0x39d4af=_0x73a500;this['_commandService'][_0x39d4af(0x194)](_0xcf814f['id'],{'unitId':_0x5f1cc4,'subUnitId':_0x3c4392},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x494428=_0x2886db;this[_0x494428(0x1e5)][_0x494428(0x190)]('presenting');const _0xdf4dbd=new Map(),_0x157f0e=this[_0x494428(0x197)]=new _0x274689();_0x157f0e[_0x494428(0x1d2)](_0x3a14b5(()=>{var _0x1b1005=_0x494428;_0xdf4dbd[_0x1b1005(0x212)](_0x380493=>_0x380493['complete']()),_0xdf4dbd[_0x1b1005(0x1a4)]();})),_0x157f0e[_0x494428(0x1d2)](this[_0x494428(0x21a)][_0x494428(0x1ad)](_0x5b85aa=>{var _0x29293f=_0x494428,_0x4b6d2f;if(_0x5b85aa['type']!==_0x55a605[_0x29293f(0x1c7)]||!this[_0x29293f(0x1b3)]['shouldShareOperation'](_0x5b85aa['id']))return;const {id:_0x3c96ff}=_0x5b85aa;let _0x1cb5a1;_0xdf4dbd[_0x29293f(0x180)](_0x3c96ff)?_0x1cb5a1=_0xdf4dbd[_0x29293f(0x1e3)](_0x3c96ff):(_0x1cb5a1=new _0x5762(),_0xdf4dbd[_0x29293f(0x1d1)](_0x3c96ff,_0x1cb5a1),_0x1cb5a1[_0x29293f(0x1c3)](_0x2d347e((_0x4b6d2f=this[_0x29293f(0x1a6)][_0x29293f(0x200)](Pe))!=null?_0x4b6d2f:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x29293f(0x1c5)](_0x1539ba=>{var _0x387b5e=_0x29293f;this[_0x387b5e(0x1a2)][_0x387b5e(0x1c4)]({'eventID':_0x31f6e1['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x387b5e(0x19f)],'operations':{[_0x1539ba['id']]:{'id':_0x1539ba['id'],'params':JSON[_0x387b5e(0x210)](_0x1539ba[_0x387b5e(0x1ee)])}}}},this['_unitID']);})),_0x1cb5a1[_0x29293f(0x190)](_0x5b85aa);})),this[_0x494428(0x1b3)]['getInitialStates'](this[_0x494428(0x19f)])['forEach'](_0x276b54=>this[_0x494428(0x1a2)][_0x494428(0x1c4)]({'eventID':_0x31f6e1[_0x494428(0x217)],'data':{'unitID':this['_unitID'],'operations':{[_0x276b54['id']]:{'id':_0x276b54['id'],'params':JSON[_0x494428(0x210)](_0x276b54[_0x494428(0x1ee)])}}}},this['_unitID']));}[_0x2886db(0x1bc)](){var _0x1ef019=_0x2886db,_0x1433cc;this[_0x1ef019(0x1e5)]['next'](_0x1ef019(0x1da)),(_0x1433cc=this[_0x1ef019(0x197)])==null||_0x1433cc[_0x1ef019(0x1ff)](),this['_commandDisposable']=null;}[_0x2886db(0x1ed)](){var _0xaf8ce6=_0x2886db,_0x7bc5a1;(_0x7bc5a1=this[_0xaf8ce6(0x197)])==null||_0x7bc5a1['dispose'](),this['_status$'][_0xaf8ce6(0x190)](_0xaf8ce6(0x18d));}[_0x2886db(0x172)](){var _0x239e80=_0x2886db,_0x5b73d6;this[_0x239e80(0x1e5)][_0x239e80(0x190)](_0x239e80(0x1da)),(_0x5b73d6=this[_0x239e80(0x197)])==null||_0x5b73d6[_0x239e80(0x1ff)](),this[_0x239e80(0x197)]=null;}[_0x2886db(0x211)](){var _0x2d0753=_0x2886db,_0x5e502;this[_0x2d0753(0x1e5)][_0x2d0753(0x190)]('not-following'),(_0x5e502=this[_0x2d0753(0x197)])==null||_0x5e502['dispose']();}[_0x2886db(0x185)](_0x3903bc){var _0x3e5926=_0x2886db;if([_0x3e5926(0x177),_0x3e5926(0x19e),_0x3e5926(0x18b)][_0x3e5926(0x20c)](this[_0x3e5926(0x1f9)])||!_0x3903bc['data'][_0x3e5926(0x1c9)]||_0x3903bc[_0x3e5926(0x198)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x3e5926(0x1f9)]===_0x3e5926(0x1da)&&this['_startFollowing']();const _0xd5dd65=_0x3903bc[_0x3e5926(0x198)][_0x3e5926(0x1b7)];Object[_0x3e5926(0x1d9)](_0xd5dd65)[_0x3e5926(0x212)](_0x1611bb=>{var _0x55d1d7=_0x3e5926;this['_commandService']['executeCommand'](_0x1611bb['id'],_0x1611bb[_0x55d1d7(0x1ee)]?JSON[_0x55d1d7(0x21b)](_0x1611bb[_0x55d1d7(0x1ee)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x56fdcd=_0x2886db,_0x5a95ba;this[_0x56fdcd(0x1e5)]['next'](_0x56fdcd(0x18b)),(_0x5a95ba=this['_commandDisposable'])==null||_0x5a95ba[_0x56fdcd(0x1ff)]();}['_handleOnline'](){var _0x42ab97=_0x2886db;this['_status$'][_0x42ab97(0x190)](_0x42ab97(0x1da)),this[_0x42ab97(0x19b)]();}};C=Z([f(0x2,_0x37a6e8),f(0x3,_0x10aaa1(L)),f(0x4,_0x342266)],C);function Te(){var _0x5a44c8=_0x2886db;const _0x3531ca=_0x5b3603(I),_0x30ee38=_0x5b3603(_0x11d622),_0x28d50a=_0x2d4df2(()=>_0x30ee38[_0x5a44c8(0x18c)](_0x4aff88[_0x5a44c8(0x1db)]),void 0x0,!0x1,[]),[_0x48eea2,_0x4b0e40]=_0x11cb7c(null),[_0x38d9a1,_0x3d45b4]=_0x11cb7c(h['IDLE']),_0x5182d6=_0x2d195a(null);return _0x548d7b(()=>(_0x28d50a&&_0x3531ca[_0x5a44c8(0x1ef)](_0x28d50a[_0x5a44c8(0x1d8)]())[_0x5a44c8(0x193)](_0x56afa1=>{var _0x5d6a49=_0x5a44c8;_0x4b0e40(_0x56afa1),_0x5182d6[_0x5d6a49(0x1fa)]=_0x56afa1[_0x5d6a49(0x19c)][_0x5d6a49(0x1c5)](_0xf35f7c=>{_0x3d45b4(_0xf35f7c);});}),()=>{var _0x7a9b3=_0x5a44c8,_0x25c32e;(_0x25c32e=_0x5182d6[_0x7a9b3(0x1fa)])==null||_0x25c32e[_0x7a9b3(0x1b0)](),_0x5182d6[_0x7a9b3(0x1fa)]=null;}),[_0x28d50a,_0x3531ca]),_0x48eea2?_0x3a52ad(_0x4dd19b,{'align':_0x5a44c8(0x1b8),'disabled':_0x38d9a1===h[_0x5a44c8(0x1d6)],'className':_0x5a44c8(0x1e8),'overlay':_0x3a52ad($e,{'status':_0x38d9a1,'coordinator':_0x48eea2}),'children':_0x3a52ad(_0x5a44c8(0x1ae),{'className':_0x2351ae(_0x5a44c8(0x1ec),{'univer-cursor-not-allowed':_0x38d9a1===h[_0x5a44c8(0x1d6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38d9a1!==h[_0x5a44c8(0x1d6)]}),'type':_0x5a44c8(0x1ae),'children':_0x3a52ad(B,{'className':_0x5a44c8(0x1f2)})})}):null;}function $e(_0x5ef130){var _0x556fcb=_0x2886db;const {status:_0x1bcafa,coordinator:_0x179ae0}=_0x5ef130;switch(_0x1bcafa){case h[_0x556fcb(0x1e4)]:return _0x3a52ad(Fe,{'coordinator':_0x179ae0});case h[_0x556fcb(0x191)]:return _0x3a52ad(He,{'coordinator':_0x179ae0});case h['NOT_FOLLOWING']:return _0x3a52ad(je,{'coordinator':_0x179ae0});case h[_0x556fcb(0x1d6)]:return _0x3a52ad(Ve,{});case h[_0x556fcb(0x202)]:return _0x3a52ad(Ue,{'coordinator':_0x179ae0});default:return null;}}function Fe(_0x11ba29){var _0x9421a5=_0x2886db;const {coordinator:_0x4c4bb1}=_0x11ba29;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x9421a5(0x17b),{'className':_0x9421a5(0x1c8),'children':_0x9421a5(0x179)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x4c4bb1[_0x9421a5(0x188)](),'children':_0x9421a5(0x1d5)})]});}function He(_0x3f9821){var _0x1841a5=_0x2886db;const {coordinator:_0x44175f}=_0x3f9821;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad('div',{'className':_0x1841a5(0x1c8),'children':_0x1841a5(0x18a)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x44175f[_0x1841a5(0x1e6)](),'children':_0x1841a5(0x20e)})]});}function je(_0x198f94){var _0x3986e8=_0x2886db;const {coordinator:_0x4fac19}=_0x198f94;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x3986e8(0x17b),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x3986e8(0x1df)}),_0x3a52ad(_0x2dde90,{'variant':_0x3986e8(0x1f5),'onClick':()=>_0x4fac19[_0x3986e8(0x1be)](),'children':_0x3986e8(0x1b6)})]});}function Ue(_0x302018){var _0x44ca58=_0x2886db;const {coordinator:_0x5b74c5}=_0x302018;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x44ca58(0x17b),{'className':_0x44ca58(0x1c8),'children':_0x44ca58(0x1f3)}),_0x3a52ad(_0x2dde90,{'variant':_0x44ca58(0x1e7),'onClick':()=>_0x5b74c5[_0x44ca58(0x1d4)](),'children':_0x44ca58(0x220)})]});}function Ve(){return _0x3a52ad(_0x1dbeda,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x2886db(0x1e0)],ke=(_0x2e7ded,_0x58b8e7,_0x2ee39d,_0x4fa189)=>{var _0x50eb0b=_0x2886db;for(var _0x1ab85f=_0x4fa189>0x1?void 0x0:_0x4fa189?Me(_0x58b8e7,_0x2ee39d):_0x58b8e7,_0x30950c=_0x2e7ded[_0x50eb0b(0x205)]-0x1,_0x7ac355;_0x30950c>=0x0;_0x30950c--)(_0x7ac355=_0x2e7ded[_0x30950c])&&(_0x1ab85f=_0x7ac355(_0x1ab85f)||_0x1ab85f);return _0x1ab85f;},$=(_0x2cc36e,_0x268480)=>(_0x32d3fe,_0x57be99)=>_0x268480(_0x32d3fe,_0x57be99,_0x2cc36e);let b=class extends _0x172f34{constructor(_0x4e7ce1,_0x4dc55c){var _0x3cbe25=_0x2886db;super(),this[_0x3cbe25(0x21f)]=_0x4e7ce1,this[_0x3cbe25(0x199)]=_0x4dc55c,this[_0x3cbe25(0x17f)]();}[_0x2886db(0x17f)](){var _0x10f90d=_0x2886db;this[_0x10f90d(0x1f1)](this['_uiPartsService'][_0x10f90d(0x1cf)](_0x2083b0[_0x10f90d(0x1e9)],()=>_0x1b45da(Te,this['_injector'])));}};b=ke([$(0x0,_0x10aaa1(_0x2015d8)),$(0x1,_0x125ac6)],b);var Ge=Object[_0x2886db(0x1fe)],We=Object[_0x2886db(0x1e0)],Ye=(_0x13b7e2,_0x2ddc74,_0x1fee3c)=>_0x2ddc74 in _0x13b7e2?Ge(_0x13b7e2,_0x2ddc74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fee3c}):_0x13b7e2[_0x2ddc74]=_0x1fee3c,Be=(_0x5d8761,_0x1708fc,_0x2e1570,_0xc8308b)=>{var _0x269401=_0x2886db;for(var _0x17f8ee=_0xc8308b>0x1?void 0x0:_0xc8308b?We(_0x1708fc,_0x2e1570):_0x1708fc,_0x111bf3=_0x5d8761[_0x269401(0x205)]-0x1,_0x396966;_0x111bf3>=0x0;_0x111bf3--)(_0x396966=_0x5d8761[_0x111bf3])&&(_0x17f8ee=_0x396966(_0x17f8ee)||_0x17f8ee);return _0x17f8ee;},F=(_0x40f86e,_0x599b00)=>(_0xea2eb0,_0x4b4696)=>_0x599b00(_0xea2eb0,_0x4b4696,_0x40f86e),J=(_0x121364,_0x3d93f3,_0x4a838f)=>Ye(_0x121364,typeof _0x3d93f3!=_0x2886db(0x1c0)?_0x3d93f3+'':_0x3d93f3,_0x4a838f);const Ze=_0x2886db(0x19a);let O=class extends _0x3a7036{constructor(_0x3ba33d=T,_0x22916c,_0x45972d){var _0x50a1be=_0x2886db;super(),this['_config']=_0x3ba33d,this[_0x50a1be(0x21f)]=_0x22916c,this[_0x50a1be(0x1a6)]=_0x45972d;const {..._0x356fb4}=_0x4c5a48({},T,this[_0x50a1be(0x21d)]);this[_0x50a1be(0x1a6)][_0x50a1be(0x186)](Oe,_0x356fb4);}[_0x2886db(0x201)](){var _0x42f15d=_0x2886db;_0x5c518a(this['_injector'],_0x1d9838([[L],[I],[m],[b]],this[_0x42f15d(0x21d)]['override'])),_0x1e2724(this['_injector'],[[m]]);}['onRendered'](){_0x1e2724(this['_injector'],[[b]]);}};J(O,_0x2886db(0x171),_0x4aff88[_0x2886db(0x182)]),J(O,_0x2886db(0x1a8),Ze),O=Be([_0x35d3f7(_0x5a9880),F(0x1,_0x10aaa1(_0x2015d8)),F(0x2,_0x37a6e8)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x31f2(_0x4bb000,_0x5be1c0){var _0x53acb7=_0x53ac();return _0x31f2=function(_0x31f26a,_0x242230){_0x31f26a=_0x31f26a-0x1af;var _0x43c6db=_0x53acb7[_0x31f26a];return _0x43c6db;},_0x31f2(_0x4bb000,_0x5be1c0);}function _0x53ac(){var _0x4cf55a=['_reporters','IConfigService','memberID','154548CAdkJt','_collabSessionService','toDisposable','You\x27re\x20presenting\x20the\x20document','send','UniverProCollaboration','following','Module','subscribe','indexOf','entries','_status','prototype','call','end','Present\x20this\x20document','delete','_entities','_unitID','assign','1242fAlsXA','153nbEwyq','12gRMiLb','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_injector','pipe','get','find','LIVESHARE_TERMINATE','stopPresenting','rxjs','_stopPresenting','symbol','apply','6440YSJItG','UniverProLiveShare','_status$','DependentOn','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','UniverLiveSharePlugin','Start','data','currentColor','_collabSession','SetZoomRatioOperation','Fragment','next','defs','You\x27re\x20following\x20the\x20presenter','_init','_stopFollowing','CollaborationEvent','xlink:href','has','UniverUi','createElement','HEADER_MENU','_startPresenting','hasOwnProperty','tryStartPresenting','useDependency','useEffect','override','getCurrentTypeOfUnit$','parse','mergeOverrideWithDependencies','registerSharedOperation','fill','react/jsx-runtime','_handleOffline','createInstance','11167403nngkQU','mask','react','_config','defIds','LiveShareCoordinator','LIVESHARE_FETCH_OPERATIONS','SetScrollOperation','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','getMemberID','setConfig','UNIVER_LIVE_SHARE_PLUGIN','UniverCollaborationClientPlugin','children','InsertSheetMutation','_uiPartsService','className','touchDependencies','OFFLINE','UniverSheetsUi','displayName','dispose','univer-w-full\x20univer-mb-3\x20univer-text-sm','add','onStarting','operators','onRendered','UNIVER_SHEET','SetWorksheetActiveOperation','univer-size-4','_configService','@univerjs-pro/collaboration','BuiltInUIPart','25594JMSybZ','amd','registerInitialStateReporter','getOwnPropertyDescriptor','rxjs/operators','_handleOnline','live-share.config','1em','tag','LiveShareStatus','executeCommand','SAME_OPERATION_SHARE_INTERVAL','function','LiveShareController','button','Stop\x20following','then','IDLE','params','jsxs','useRef','8568fnhTzh','_commandDisposable','http://www.w3.org/2000/svg','sheet','11qKIQvk','dispose$','3146bDrCKR','_handleOperation','_handleNewHost','univerjs-icon\x20univerjs-icon-','forwardRef','_startLiveShareCoordinator','presenter','NOT_FOLLOWING','_mountLiveShare','UniverProCollaborationClient','extend','mutations','Stop\x20presenting','pluginName','use','LIVESHARE_REQUEST_HOST','not-following','useState','default','getConfig','_liveShareService','CollaborationSessionService','LIVESHARE_OPERATION','operations','icon','IUniverInstanceService','@univerjs-pro/collaboration-client','div','map','_startFollowing','getInitialStates','_beIdle','getTypeOfUnitDisposed$','attrs','length','_handleTerminate','1665220FiLNrq','DesktopLiveShareController','981NTfiZG','toStringTag','getUnitId','FOLLOWING','current','random','replace','UniverInstanceType','colorChannel1','event$','string','_commandService','concat','type','You\x27are\x20offline.','takeUntil','stopFollowing','SessionStatus','reverse','merge','UniverIcon','Button','defineProperty','RxDisposable','substring','_fetchOperations','unsubscribe','asObservable','Plugin','_presenter','_sharedOperations','ONLINE','forEach','getLiveShareCoordinator','@univerjs/design','DisposableCollection','exports','@univerjs/sheets-ui','init','Start\x20following','Inject','ICommandService','presenting','path','idle','complete','@univerjs/ui','BehaviorSubject','_univerInstanceService','Disposable','status$','getOwnPropertySymbols','20VbflwA','startFollowing','shouldShareOperation','set','_handleNewChangeSets','PRESENTING','UniverCore','@univerjs/sheets','React','url(#$1','registerDependencies','propertyIsEnumerable','Subject','UniverDesign','evenodd','CommandType','text','clear','LiveShare','@univerjs/core','idSuffix','Injector','includes','IUIPartsService','jsx','from','unitId'];_0x53ac=function(){return _0x4cf55a;};return _0x53ac();}(function(_0x787f6,_0x230a2b){var _0x4635cb=_0x31f2,_0x363da3=_0x787f6();while(!![]){try{var _0x417f16=parseInt(_0x4635cb(0x1e4))/0x1+parseInt(_0x4635cb(0x1ff))/0x2*(-parseInt(_0x4635cb(0x28c))/0x3)+parseInt(_0x4635cb(0x277))/0x4*(-parseInt(_0x4635cb(0x259))/0x5)+parseInt(_0x4635cb(0x28b))/0x6*(-parseInt(_0x4635cb(0x1f9))/0x7)+parseInt(_0x4635cb(0x299))/0x8*(-parseInt(_0x4635cb(0x225))/0x9)+parseInt(_0x4635cb(0x223))/0xa*(-parseInt(_0x4635cb(0x1fd))/0xb)+-parseInt(_0x4635cb(0x28d))/0xc*(-parseInt(_0x4635cb(0x1c3))/0xd);if(_0x417f16===_0x230a2b)break;else _0x363da3['push'](_0x363da3['shift']());}catch(_0x21c250){_0x363da3['push'](_0x363da3['shift']());}}}(_0x53ac,0x22b8b),function(_0xa519bf,_0x25bfa7){var _0x3e9c64=_0x31f2;typeof exports=='object'&&typeof module<'u'?_0x25bfa7(exports,require(_0x3e9c64(0x219)),require(_0x3e9c64(0x26c)),require('@univerjs/sheets'),require(_0x3e9c64(0x24a)),require(_0x3e9c64(0x253)),require(_0x3e9c64(0x1c0)),require(_0x3e9c64(0x247)),require('react'),require(_0x3e9c64(0x1e2)),require(_0x3e9c64(0x295)),require(_0x3e9c64(0x1e8))):typeof define==_0x3e9c64(0x1f0)&&define[_0x3e9c64(0x1e5)]?define([_0x3e9c64(0x249),_0x3e9c64(0x219),'@univerjs/core',_0x3e9c64(0x260),_0x3e9c64(0x24a),_0x3e9c64(0x253),_0x3e9c64(0x1c0),_0x3e9c64(0x247),_0x3e9c64(0x1c5),_0x3e9c64(0x1e2),_0x3e9c64(0x295),_0x3e9c64(0x1e8)],_0x25bfa7):(_0xa519bf=typeof globalThis<'u'?globalThis:_0xa519bf||self,_0x25bfa7(_0xa519bf[_0x3e9c64(0x29a)]={},_0xa519bf[_0x3e9c64(0x208)],_0xa519bf[_0x3e9c64(0x25f)],_0xa519bf['UniverSheets'],_0xa519bf[_0x3e9c64(0x1d6)],_0xa519bf[_0x3e9c64(0x1b2)],_0xa519bf[_0x3e9c64(0x261)],_0xa519bf[_0x3e9c64(0x266)],_0xa519bf[_0x3e9c64(0x261)],_0xa519bf[_0x3e9c64(0x27c)],_0xa519bf[_0x3e9c64(0x295)],_0xa519bf[_0x3e9c64(0x295)][_0x3e9c64(0x1dc)]));}(this,function(_0xe20450,_0x40dc39,_0x144f7e,_0x1e53a5,_0x3df518,_0x1c5b20,_0x31c241,_0x53c1c6,_0x2d5ae1,_0xf92088,_0x3721a2,_0x43cb68){'use strict';var _0x24692c=_0x31f2;var _0x4e37c0=Object[_0x24692c(0x23b)],_0x488044=(_0x39cc40,_0x421e22,_0x3b17ca)=>_0x421e22 in _0x39cc40?_0x4e37c0(_0x39cc40,_0x421e22,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b17ca}):_0x39cc40[_0x421e22]=_0x3b17ca,_0x33da5e=(_0x334200,_0xbf3c4d,_0x425571)=>_0x488044(_0x334200,typeof _0xbf3c4d!=_0x24692c(0x297)?_0xbf3c4d+'':_0xbf3c4d,_0x425571);const _0x20a4b6=_0x24692c(0x1ea),_0x1a791a={};class _0x4a614a extends _0x144f7e[_0x24692c(0x256)]{constructor(){var _0x15ade9=_0x24692c;super(...arguments),_0x33da5e(this,_0x15ade9(0x243),new Set()),_0x33da5e(this,_0x15ade9(0x274),new Set());}['registerSharedOperation'](_0x53050a){var _0x4c7743=_0x24692c;return this[_0x4c7743(0x243)][_0x4c7743(0x1da)](_0x53050a),_0x144f7e[_0x4c7743(0x279)](()=>this[_0x4c7743(0x243)][_0x4c7743(0x287)](_0x53050a));}[_0x24692c(0x1e6)](_0x31b86b){var _0x3bfd5f=_0x24692c;return this[_0x3bfd5f(0x274)]['add'](_0x31b86b),_0x144f7e['toDisposable'](()=>this[_0x3bfd5f(0x274)][_0x3bfd5f(0x287)](_0x31b86b));}[_0x24692c(0x25b)](_0x424644){var _0x1be1d6=_0x24692c;return this[_0x1be1d6(0x243)][_0x1be1d6(0x1b1)](_0x424644);}[_0x24692c(0x21d)](_0x1b89e7){var _0x462eba=_0x24692c;return Array[_0x462eba(0x272)](this[_0x462eba(0x274)])['map'](_0x37af6e=>_0x37af6e(_0x1b89e7));}}var _0x27599b=Object['getOwnPropertyDescriptor'],_0x556f63=(_0x2a6223,_0x22dab6,_0x360c4b,_0x569224)=>{var _0x3af14f=_0x24692c;for(var _0x3eff4d=_0x569224>0x1?void 0x0:_0x569224?_0x27599b(_0x22dab6,_0x360c4b):_0x22dab6,_0xb95ac1=_0x2a6223[_0x3af14f(0x221)]-0x1,_0x214130;_0xb95ac1>=0x0;_0xb95ac1--)(_0x214130=_0x2a6223[_0xb95ac1])&&(_0x3eff4d=_0x214130(_0x3eff4d)||_0x3eff4d);return _0x3eff4d;},_0x463a5d=(_0x6f87fb,_0x31d0c5)=>(_0x4cccbb,_0x29142c)=>_0x31d0c5(_0x4cccbb,_0x29142c,_0x6f87fb);let _0x51287f=class extends _0x144f7e[_0x24692c(0x256)]{constructor(_0x66449a){var _0x102ddf=_0x24692c;super(),this[_0x102ddf(0x213)]=_0x66449a,this[_0x102ddf(0x2a8)]();}[_0x24692c(0x2a8)](){var _0x208a88=_0x24692c;[_0x3df518[_0x208a88(0x2a3)]['id'],_0x3df518[_0x208a88(0x1ca)]['id'],_0x1e53a5[_0x208a88(0x1df)]['id']][_0x208a88(0x245)](_0x4cbcbb=>{var _0x14b687=_0x208a88;this['disposeWithMe'](this[_0x14b687(0x213)][_0x14b687(0x1be)](_0x4cbcbb));});}};_0x51287f=_0x556f63([_0x463a5d(0x0,_0x144f7e[_0x24692c(0x24d)](_0x4a614a))],_0x51287f);var _0x11b712=function(){var _0x3fbc18=_0x24692c;return _0x11b712=Object[_0x3fbc18(0x28a)]||function(_0x587b39){var _0xba0f0b=_0x3fbc18;for(var _0x44bf4f,_0x108788=0x1,_0x3d6488=arguments['length'];_0x108788<_0x3d6488;_0x108788++){_0x44bf4f=arguments[_0x108788];for(var _0x2838ff in _0x44bf4f)Object[_0xba0f0b(0x283)][_0xba0f0b(0x1b6)][_0xba0f0b(0x284)](_0x44bf4f,_0x2838ff)&&(_0x587b39[_0x2838ff]=_0x44bf4f[_0x2838ff]);}return _0x587b39;},_0x11b712[_0x3fbc18(0x298)](this,arguments);},_0x3aae79=function(_0x1460ca,_0x461305){var _0x58b87f=_0x24692c,_0xd75628={};for(var _0xd041ee in _0x1460ca)Object[_0x58b87f(0x283)][_0x58b87f(0x1b6)][_0x58b87f(0x284)](_0x1460ca,_0xd041ee)&&_0x461305[_0x58b87f(0x280)](_0xd041ee)<0x0&&(_0xd75628[_0xd041ee]=_0x1460ca[_0xd041ee]);if(_0x1460ca!=null&&typeof Object[_0x58b87f(0x258)]=='function'){for(var _0x21f714=0x0,_0xd041ee=Object[_0x58b87f(0x258)](_0x1460ca);_0x21f714<_0xd041ee['length'];_0x21f714++)_0x461305['indexOf'](_0xd041ee[_0x21f714])<0x0&&Object[_0x58b87f(0x283)][_0x58b87f(0x264)][_0x58b87f(0x284)](_0x1460ca,_0xd041ee[_0x21f714])&&(_0xd75628[_0xd041ee[_0x21f714]]=_0x1460ca[_0xd041ee[_0x21f714]]);}return _0xd75628;},_0x4f24de=_0x2d5ae1['forwardRef'](function(_0x162a67,_0x183ed5){var _0xb85f97=_0x24692c,_0x3cb4d4=_0x162a67[_0xb85f97(0x217)],_0x394fbb=_0x162a67['id'],_0x20264c=_0x162a67['className'],_0xb33eca=_0x162a67[_0xb85f97(0x209)],_0xf4f3ea=_0x3aae79(_0x162a67,[_0xb85f97(0x217),'id',_0xb85f97(0x1d3),'extend']),_0x26191e=_0xb85f97(0x202)[_0xb85f97(0x231)](_0x394fbb,'\x20')['concat'](_0x20264c||'')['trim'](),_0xe49023=_0x2d5ae1[_0xb85f97(0x1f8)]('_'[_0xb85f97(0x231)](_0x807bed()));return _0x311d9d(_0x3cb4d4,''['concat'](_0x394fbb),{'defIds':_0x3cb4d4[_0xb85f97(0x1c7)],'idSuffix':_0xe49023[_0xb85f97(0x229)]},_0x11b712({'ref':_0x183ed5,'className':_0x26191e},_0xf4f3ea),_0xb33eca);});function _0x311d9d(_0x151200,_0x226436,_0x5a1773,_0x42f875,_0x2c2ce7){var _0xecd51e=_0x24692c;return _0x2d5ae1[_0xecd51e(0x1b3)](_0x151200[_0xecd51e(0x1ec)],_0x11b712(_0x11b712({'key':_0x226436},_0x2c88de(_0x151200,_0x5a1773,_0x2c2ce7)),_0x42f875),(_0x3454f4(_0x151200,_0x5a1773)['children']||[])[_0xecd51e(0x21b)](function(_0x35d28a,_0x6a6491){var _0x24a63b=_0xecd51e;return _0x311d9d(_0x35d28a,''[_0x24a63b(0x231)](_0x226436,'-')[_0x24a63b(0x231)](_0x151200[_0x24a63b(0x1ec)],'-')[_0x24a63b(0x231)](_0x6a6491),_0x5a1773,void 0x0,_0x2c2ce7);}));}function _0x2c88de(_0x40b40a,_0x203ed8,_0x47dcc5){var _0x4354c6=_0x24692c,_0x3a09f9=_0x11b712({},_0x40b40a[_0x4354c6(0x220)]);_0x47dcc5!=null&&_0x47dcc5[_0x4354c6(0x22d)]&&_0x3a09f9['fill']===_0x4354c6(0x22d)&&(_0x3a09f9[_0x4354c6(0x1bf)]=_0x47dcc5['colorChannel1']),_0x40b40a[_0x4354c6(0x1ec)]==='mask'&&_0x3a09f9['id']&&(_0x3a09f9['id']=_0x3a09f9['id']+_0x203ed8['idSuffix']),Object[_0x4354c6(0x281)](_0x3a09f9)[_0x4354c6(0x245)](function(_0x277214){var _0x5b9515=_0x4354c6,_0x463d0d=_0x277214[0x0],_0x283a96=_0x277214[0x1];_0x463d0d===_0x5b9515(0x1c4)&&typeof _0x283a96=='string'&&(_0x3a09f9[_0x463d0d]=_0x283a96['replace'](/url\(#(.*)\)/,'url(#$1'[_0x5b9515(0x231)](_0x203ed8['idSuffix'],')')));});var _0xb33df7=_0x203ed8['defIds'];return!_0xb33df7||_0xb33df7['length']===0x0||(_0x40b40a[_0x4354c6(0x1ec)]===_0x4354c6(0x20d)&&_0x3a09f9['xlink:href']&&(_0x3a09f9['xlink:href']=_0x3a09f9[_0x4354c6(0x1b0)]+_0x203ed8['idSuffix']),Object[_0x4354c6(0x281)](_0x3a09f9)[_0x4354c6(0x245)](function(_0x17527b){var _0x2188ba=_0x4354c6,_0x45786c=_0x17527b[0x0],_0x2d119a=_0x17527b[0x1];typeof _0x2d119a=='string'&&(_0x3a09f9[_0x45786c]=_0x2d119a[_0x2188ba(0x22b)](/url\(#(.*)\)/,_0x2188ba(0x262)[_0x2188ba(0x231)](_0x203ed8[_0x2188ba(0x26d)],')')));})),_0x3a09f9;}function _0x3454f4(_0x1243bc,_0x4f6700){var _0x542bae=_0x24692c,_0x463b7e,_0x182436=_0x4f6700[_0x542bae(0x1c7)];return!_0x182436||_0x182436[_0x542bae(0x221)]===0x0?_0x1243bc:_0x1243bc['tag']===_0x542bae(0x2a6)&&(!((_0x463b7e=_0x1243bc['children'])===null||_0x463b7e===void 0x0)&&_0x463b7e[_0x542bae(0x221)])?_0x11b712(_0x11b712({},_0x1243bc),{'children':_0x1243bc[_0x542bae(0x1d0)][_0x542bae(0x21b)](function(_0x265381){var _0x5240a2=_0x542bae;return typeof _0x265381[_0x5240a2(0x220)]['id']==_0x5240a2(0x22f)&&_0x182436&&_0x182436[_0x5240a2(0x26f)](_0x265381[_0x5240a2(0x220)]['id'])?_0x11b712(_0x11b712({},_0x265381),{'attrs':_0x11b712(_0x11b712({},_0x265381['attrs']),{'id':_0x265381[_0x5240a2(0x220)]['id']+_0x4f6700[_0x5240a2(0x26d)]})}):_0x265381;})}):_0x1243bc;}function _0x807bed(){var _0x5e547f=_0x24692c;return Math[_0x5e547f(0x22a)]()['toString'](0x24)[_0x5e547f(0x23d)](0x2,0x8);}_0x4f24de['displayName']=_0x24692c(0x239);var _0x117851={'tag':'svg','attrs':{'xmlns':_0x24692c(0x1fb),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x24692c(0x1eb)},'children':[{'tag':'path','attrs':{'fill':_0x24692c(0x2a1),'d':_0x24692c(0x28e)}},{'tag':_0x24692c(0x250),'attrs':{'fill':_0x24692c(0x2a1),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x24692c(0x267),'clipRule':_0x24692c(0x267)}}]},_0x65f1e1=_0x2d5ae1[_0x24692c(0x203)](function(_0x42d291,_0x1ccf74){var _0x37fd78=_0x24692c;return _0x2d5ae1[_0x37fd78(0x1b3)](_0x4f24de,Object['assign']({},_0x42d291,{'id':'live-share-icon','ref':_0x1ccf74,'icon':_0x117851}));});_0x65f1e1[_0x24692c(0x1d7)]='LiveShareIcon';var _0x101673=Object[_0x24692c(0x1e7)],_0xb16c34=(_0x4cfbb7,_0xf54472,_0x243a9c,_0x40d25f)=>{var _0x3d5cae=_0x24692c;for(var _0x138278=_0x40d25f>0x1?void 0x0:_0x40d25f?_0x101673(_0xf54472,_0x243a9c):_0xf54472,_0x43b0a0=_0x4cfbb7[_0x3d5cae(0x221)]-0x1,_0x5110b5;_0x43b0a0>=0x0;_0x43b0a0--)(_0x5110b5=_0x4cfbb7[_0x43b0a0])&&(_0x138278=_0x5110b5(_0x138278)||_0x138278);return _0x138278;},_0x50070b=(_0x38547d,_0x4b2d15)=>(_0x471146,_0x3a2aa9)=>_0x4b2d15(_0x471146,_0x3a2aa9,_0x38547d);_0xe20450[_0x24692c(0x1f1)]=class extends _0x144f7e[_0x24692c(0x23c)]{constructor(_0xb46cda,_0x4c5536,_0xd879e4){var _0x4560c6=_0x24692c;super(),_0x33da5e(this,_0x4560c6(0x288),new Map()),(this[_0x4560c6(0x255)]=_0xb46cda,this['_injector']=_0x4c5536,this[_0x4560c6(0x278)]=_0xd879e4,this[_0x4560c6(0x2a8)]());}async[_0x24692c(0x246)](_0x57ce3e){var _0x25adfd=_0x24692c;return this[_0x25adfd(0x288)]['has'](_0x57ce3e)||await this[_0x25adfd(0x204)](_0x57ce3e),this[_0x25adfd(0x288)]['get'](_0x57ce3e);}[_0x24692c(0x2a8)](){var _0x3f1f3a=_0x24692c;this[_0x3f1f3a(0x255)]['getTypeOfUnitAdded$'](_0x144f7e[_0x3f1f3a(0x22c)][_0x3f1f3a(0x1de)])[_0x3f1f3a(0x290)](_0x43cb68['takeUntil'](this[_0x3f1f3a(0x1fe)]))[_0x3f1f3a(0x27f)](async _0x5c3b9c=>{var _0x4f69ba=_0x3f1f3a;const _0xac5db8=_0x5c3b9c['getUnitId']();this[_0x4f69ba(0x288)][_0x4f69ba(0x1b1)](_0xac5db8)||this[_0x4f69ba(0x204)](_0xac5db8);}),this['_univerInstanceService'][_0x3f1f3a(0x21f)](_0x144f7e[_0x3f1f3a(0x22c)][_0x3f1f3a(0x1de)])['pipe'](_0x43cb68[_0x3f1f3a(0x234)](this[_0x3f1f3a(0x1fe)]))['subscribe'](_0x18ccc7=>{var _0x309d49=_0x3f1f3a;const _0x238a53=_0x18ccc7[_0x309d49(0x227)](),_0x2a9cdd=this[_0x309d49(0x288)][_0x309d49(0x291)](_0x238a53);_0x2a9cdd==null||_0x2a9cdd['dispose']();});}async[_0x24692c(0x204)](_0x490536){var _0x393099=_0x24692c;const _0x3ed4d4=await this[_0x393099(0x278)]['requireSession'](_0x490536),_0x2660b3=this[_0x393099(0x28f)][_0x393099(0x1c2)](_0xe20450[_0x393099(0x1c8)],_0x490536,_0x3ed4d4);return _0x2660b3[_0x393099(0x24b)](),this[_0x393099(0x288)][_0x393099(0x25c)](_0x490536,_0x2660b3),_0x2660b3;}},_0xe20450[_0x24692c(0x1f1)]=_0xb16c34([_0x50070b(0x0,_0x144f7e['IUniverInstanceService']),_0x50070b(0x1,_0x144f7e[_0x24692c(0x24d)](_0x144f7e[_0x24692c(0x26e)])),_0x50070b(0x2,_0x144f7e[_0x24692c(0x24d)](_0x40dc39[_0x24692c(0x214)]))],_0xe20450[_0x24692c(0x1f1)]);var _0x580f8a=(_0xf18f0b=>(_0xf18f0b[_0x24692c(0x1d5)]='offline',_0xf18f0b['IDLE']=_0x24692c(0x251),_0xf18f0b[_0x24692c(0x228)]=_0x24692c(0x27d),_0xf18f0b[_0x24692c(0x206)]=_0x24692c(0x20f),_0xf18f0b[_0x24692c(0x25e)]=_0x24692c(0x24f),_0xf18f0b))(_0x580f8a||{});const _0x480f50=_0x24692c(0x1ef),_0xeb2238=0xc8;_0xe20450[_0x24692c(0x1c8)]=class extends _0x144f7e[_0x24692c(0x23c)]{constructor(_0x4a3177,_0x257f41,_0x47d986,_0x13157e,_0x32c033){var _0x4d0d8d=_0x24692c;super(),_0x33da5e(this,_0x4d0d8d(0x29b),new _0x3721a2[(_0x4d0d8d(0x254))](_0x4d0d8d(0x251))),_0x33da5e(this,_0x4d0d8d(0x257),this['_status$'][_0x4d0d8d(0x240)]()),_0x33da5e(this,'_init',!0x1),_0x33da5e(this,_0x4d0d8d(0x1fa),null),_0x33da5e(this,_0x4d0d8d(0x242),null),(this[_0x4d0d8d(0x289)]=_0x4a3177,this[_0x4d0d8d(0x2a2)]=_0x257f41,this[_0x4d0d8d(0x1e1)]=_0x47d986,this[_0x4d0d8d(0x213)]=_0x13157e,this[_0x4d0d8d(0x230)]=_0x32c033);}get['_status'](){var _0x3d3176=_0x24692c;return this[_0x3d3176(0x29b)]['getValue']();}[_0x24692c(0x1d8)](){var _0x32efc7=_0x24692c,_0x35c2cf;(_0x35c2cf=this[_0x32efc7(0x1fa)])==null||_0x35c2cf[_0x32efc7(0x1d8)](),this['_status$'][_0x32efc7(0x2a5)](_0x32efc7(0x251)),this[_0x32efc7(0x29b)][_0x32efc7(0x252)]();}[_0x24692c(0x24b)](){var _0x4228a2=_0x24692c;this[_0x4228a2(0x2a8)]||(this[_0x4228a2(0x2a8)]=!0x0,this[_0x4228a2(0x2a2)]['sessionStatus$'][_0x4228a2(0x290)](_0x43cb68['takeUntil'](this[_0x4228a2(0x1fe)]))[_0x4228a2(0x27f)](_0x30fb97=>{var _0x345505=_0x4228a2;switch(_0x30fb97){case _0x40dc39[_0x345505(0x236)]['OFFLINE']:this[_0x345505(0x1c1)]();break;case _0x40dc39['SessionStatus'][_0x345505(0x244)]:this[_0x345505(0x1e9)]();break;}}),this['_collabSession'][_0x4228a2(0x22e)][_0x4228a2(0x290)](_0x43cb68[_0x4228a2(0x234)](this['dispose$']))[_0x4228a2(0x27f)](_0x2709c0=>{var _0x266177=_0x4228a2;const {eventID:_0x25e6f1}=_0x2709c0;switch(_0x25e6f1){case _0xf92088[_0x266177(0x1af)]['LIVESHARE_NEW_HOST']:this[_0x266177(0x201)](_0x2709c0);break;case _0xf92088[_0x266177(0x1af)][_0x266177(0x215)]:this[_0x266177(0x200)](_0x2709c0);break;case _0xf92088[_0x266177(0x1af)][_0x266177(0x293)]:this[_0x266177(0x222)]();break;case _0xf92088[_0x266177(0x1af)]['NEW_CHANGESETS']:this[_0x266177(0x25d)](_0x2709c0);break;}}));}[_0x24692c(0x1b7)](){var _0x41c070=_0x24692c;this['_collabSession'][_0x41c070(0x27b)]({'eventID':_0xf92088[_0x41c070(0x1af)][_0x41c070(0x20e)],'data':{'unitID':this[_0x41c070(0x289)],'userID':this['_collabSession'][_0x41c070(0x1cc)]()}},this[_0x41c070(0x289)]);}[_0x24692c(0x294)](){var _0x2cc7c3=_0x24692c;this[_0x2cc7c3(0x282)]===_0x2cc7c3(0x24f)&&(this[_0x2cc7c3(0x29b)][_0x2cc7c3(0x2a5)](_0x2cc7c3(0x251)),this[_0x2cc7c3(0x2a2)][_0x2cc7c3(0x27b)]({'eventID':_0xf92088[_0x2cc7c3(0x1af)][_0x2cc7c3(0x293)],'data':{'unitID':this[_0x2cc7c3(0x289)]}},this[_0x2cc7c3(0x289)]));}[_0x24692c(0x25a)](){var _0x2393da=_0x24692c;this[_0x2393da(0x282)]===_0x2393da(0x20f)&&(this[_0x2393da(0x29b)][_0x2393da(0x2a5)](_0x2393da(0x27d)),this[_0x2393da(0x21c)]());}['stopFollowing'](){var _0x14d252=_0x24692c;this['_status']==='following'&&this[_0x14d252(0x2a9)]();}[_0x24692c(0x201)](_0x2cdcc8){var _0x1b314b=_0x24692c;const {presenter:_0x1ecfa3}=_0x2cdcc8[_0x1b314b(0x2a0)],_0x3a5237=this['_collabSession'][_0x1b314b(0x1cc)]();this['_presenter']=_0x1ecfa3,_0x1ecfa3===_0x3a5237?(this[_0x1b314b(0x2a9)](),this[_0x1b314b(0x1b5)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x1b314b(0x21c)]());}[_0x24692c(0x23e)](){var _0x15a723=_0x24692c;const _0x35a054={'eventID':_0xf92088[_0x15a723(0x1af)][_0x15a723(0x1c9)]};this[_0x15a723(0x2a2)][_0x15a723(0x27b)](_0x35a054,this[_0x15a723(0x289)]);}[_0x24692c(0x222)](){var _0x5cbf42=_0x24692c;this['_presenter']=null,this[_0x5cbf42(0x282)]!==_0x5cbf42(0x24f)&&this[_0x5cbf42(0x21e)]();}[_0x24692c(0x25d)](_0x2a1e65){var _0x152253=_0x24692c;if(this[_0x152253(0x282)]==='following'&&this[_0x152253(0x242)]===_0x2a1e65['data'][_0x152253(0x276)]){const _0x5e22cb=_0xf92088['parseProtocolChangeset'](_0x2a1e65[_0x152253(0x2a0)])[_0x152253(0x20a)][_0x152253(0x237)]()[_0x152253(0x292)](_0x16bfa8=>_0x16bfa8['id']===_0x1e53a5[_0x152253(0x1d1)]['id']);if(_0x5e22cb){const _0x10d6ec=_0x5e22cb[_0x152253(0x1f6)][_0x152253(0x273)],_0x19849e=_0x5e22cb[_0x152253(0x1f6)][_0x152253(0x1fc)]['id'];setTimeout(()=>{var _0x1aaf5e=_0x152253;this['_commandService'][_0x1aaf5e(0x1ee)](_0x1e53a5['SetWorksheetActiveOperation']['id'],{'unitId':_0x10d6ec,'subUnitId':_0x19849e},{'fromCollab':!0x0});});}}}[_0x24692c(0x1b5)](){var _0x59e206=_0x24692c;this[_0x59e206(0x29b)][_0x59e206(0x2a5)](_0x59e206(0x24f));const _0x2e0668=new Map(),_0xf6dd4a=this[_0x59e206(0x1fa)]=new _0x144f7e[(_0x59e206(0x248))]();_0xf6dd4a[_0x59e206(0x1da)](_0x144f7e['toDisposable'](()=>{var _0x2daf28=_0x59e206;_0x2e0668[_0x2daf28(0x245)](_0x357ef5=>_0x357ef5[_0x2daf28(0x252)]()),_0x2e0668[_0x2daf28(0x26a)]();})),_0xf6dd4a[_0x59e206(0x1da)](this['_commandService']['onCommandExecuted'](_0x16403f=>{var _0x436234=_0x59e206,_0xd31d7e;if(_0x16403f[_0x436234(0x232)]!==_0x144f7e[_0x436234(0x268)]['OPERATION']||!this[_0x436234(0x213)][_0x436234(0x25b)](_0x16403f['id']))return;const {id:_0x271313}=_0x16403f;let _0x3725e2;_0x2e0668[_0x436234(0x1b1)](_0x271313)?_0x3725e2=_0x2e0668[_0x436234(0x291)](_0x271313):(_0x3725e2=new _0x3721a2[(_0x436234(0x265))](),_0x2e0668[_0x436234(0x25c)](_0x271313,_0x3725e2),_0x3725e2[_0x436234(0x290)](_0x43cb68['throttleTime']((_0xd31d7e=this[_0x436234(0x1e1)][_0x436234(0x212)](_0x480f50))!=null?_0xd31d7e:_0xeb2238,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1f2700=>{var _0x57ffd0=_0x436234;this[_0x57ffd0(0x2a2)][_0x57ffd0(0x27b)]({'eventID':_0xf92088[_0x57ffd0(0x1af)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x57ffd0(0x289)],'operations':{[_0x1f2700['id']]:{'id':_0x1f2700['id'],'params':JSON['stringify'](_0x1f2700[_0x57ffd0(0x1f6)])}}}},this['_unitID']);})),_0x3725e2[_0x436234(0x2a5)](_0x16403f);})),this[_0x59e206(0x213)][_0x59e206(0x21d)](this['_unitID'])[_0x59e206(0x245)](_0x5cc04a=>this['_collabSession']['send']({'eventID':_0xf92088[_0x59e206(0x1af)][_0x59e206(0x215)],'data':{'unitID':this[_0x59e206(0x289)],'operations':{[_0x5cc04a['id']]:{'id':_0x5cc04a['id'],'params':JSON['stringify'](_0x5cc04a[_0x59e206(0x1f6)])}}}},this[_0x59e206(0x289)]));}[_0x24692c(0x296)](){var _0x368ae1=_0x24692c,_0x3aa2de;this[_0x368ae1(0x29b)][_0x368ae1(0x2a5)](_0x368ae1(0x251)),(_0x3aa2de=this['_commandDisposable'])==null||_0x3aa2de['dispose'](),this[_0x368ae1(0x1fa)]=null;}[_0x24692c(0x21c)](){var _0x3ff0ef=_0x24692c,_0x5ad075;(_0x5ad075=this[_0x3ff0ef(0x1fa)])==null||_0x5ad075[_0x3ff0ef(0x1d8)](),this['_status$'][_0x3ff0ef(0x2a5)](_0x3ff0ef(0x27d));}['_beIdle'](){var _0x5ea780=_0x24692c,_0x4763d0;this['_status$'][_0x5ea780(0x2a5)](_0x5ea780(0x251)),(_0x4763d0=this['_commandDisposable'])==null||_0x4763d0['dispose'](),this[_0x5ea780(0x1fa)]=null;}[_0x24692c(0x2a9)](){var _0x50d1d6=_0x24692c,_0x5bc5c3;this['_status$'][_0x50d1d6(0x2a5)]('not-following'),(_0x5bc5c3=this['_commandDisposable'])==null||_0x5bc5c3[_0x50d1d6(0x1d8)]();}[_0x24692c(0x200)](_0x3d180d){var _0x18e12c=_0x24692c;if([_0x18e12c(0x24f),_0x18e12c(0x20f),'offline'][_0x18e12c(0x26f)](this[_0x18e12c(0x282)])||!_0x3d180d[_0x18e12c(0x2a0)][_0x18e12c(0x205)]||_0x3d180d[_0x18e12c(0x2a0)][_0x18e12c(0x205)]===this[_0x18e12c(0x2a2)][_0x18e12c(0x1cc)]())return;this[_0x18e12c(0x282)]==='idle'&&this[_0x18e12c(0x21c)]();const _0x3d8b3e=_0x3d180d[_0x18e12c(0x2a0)][_0x18e12c(0x216)];Object['values'](_0x3d8b3e)[_0x18e12c(0x245)](_0x20ff80=>{var _0x2a5244=_0x18e12c;this[_0x2a5244(0x230)][_0x2a5244(0x1ee)](_0x20ff80['id'],_0x20ff80[_0x2a5244(0x1f6)]?JSON[_0x2a5244(0x1bc)](_0x20ff80[_0x2a5244(0x1f6)]):null,{'fromCollab':!0x0});});}[_0x24692c(0x1c1)](){var _0x204c32=_0x24692c,_0x5cb6ef;this[_0x204c32(0x29b)][_0x204c32(0x2a5)]('offline'),(_0x5cb6ef=this[_0x204c32(0x1fa)])==null||_0x5cb6ef[_0x204c32(0x1d8)]();}[_0x24692c(0x1e9)](){var _0x31eecb=_0x24692c;this[_0x31eecb(0x29b)]['next'](_0x31eecb(0x251)),this[_0x31eecb(0x23e)]();}},_0xe20450[_0x24692c(0x1c8)]=_0xb16c34([_0x50070b(0x2,_0x144f7e[_0x24692c(0x275)]),_0x50070b(0x3,_0x144f7e[_0x24692c(0x24d)](_0x4a614a)),_0x50070b(0x4,_0x144f7e[_0x24692c(0x24e)])],_0xe20450[_0x24692c(0x1c8)]);function _0x405130(){var _0x22ee02=_0x24692c;const _0x4f30cd=_0x1c5b20[_0x22ee02(0x1b8)](_0xe20450[_0x22ee02(0x1f1)]),_0x479000=_0x1c5b20[_0x22ee02(0x1b8)](_0x144f7e[_0x22ee02(0x218)]),_0x50e25b=_0x1c5b20['useObservable'](()=>_0x479000[_0x22ee02(0x1bb)](_0x144f7e[_0x22ee02(0x22c)][_0x22ee02(0x1de)]),void 0x0,!0x1,[]),[_0x2aaa5b,_0x58755f]=_0x2d5ae1[_0x22ee02(0x210)](null),[_0x6c7beb,_0x522b3a]=_0x2d5ae1[_0x22ee02(0x210)](_0x580f8a[_0x22ee02(0x1f5)]),_0xec096d=_0x2d5ae1[_0x22ee02(0x1f8)](null);return _0x2d5ae1[_0x22ee02(0x1b9)](()=>(_0x50e25b&&_0x4f30cd[_0x22ee02(0x246)](_0x50e25b[_0x22ee02(0x227)]())[_0x22ee02(0x1f4)](_0x91021d=>{var _0x2dca69=_0x22ee02;_0x58755f(_0x91021d),_0xec096d['current']=_0x91021d[_0x2dca69(0x257)][_0x2dca69(0x27f)](_0x1c3f06=>{_0x522b3a(_0x1c3f06);});}),()=>{var _0x2495d3=_0x22ee02,_0x4ee33f;(_0x4ee33f=_0xec096d[_0x2495d3(0x229)])==null||_0x4ee33f[_0x2495d3(0x23f)](),_0xec096d[_0x2495d3(0x229)]=null;}),[_0x50e25b,_0x4f30cd]),_0x2aaa5b?_0x31c241[_0x22ee02(0x271)](_0x53c1c6['Dropdown'],{'align':_0x22ee02(0x285),'disabled':_0x6c7beb===_0x580f8a[_0x22ee02(0x1d5)],'className':_0x22ee02(0x29d),'overlay':_0x31c241[_0x22ee02(0x271)](_0xe6c62a,{'status':_0x6c7beb,'coordinator':_0x2aaa5b}),'children':_0x31c241['jsx']('button',{'className':_0x53c1c6['clsx'](_0x22ee02(0x1cb),{'univer-cursor-not-allowed':_0x6c7beb===_0x580f8a['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x6c7beb!==_0x580f8a[_0x22ee02(0x1d5)]}),'type':_0x22ee02(0x1f2),'children':_0x31c241[_0x22ee02(0x271)](_0x65f1e1,{'className':_0x22ee02(0x1e0)})})}):null;}function _0xe6c62a(_0xe9e6af){var _0xbb3fd6=_0x24692c;const {status:_0x475c1f,coordinator:_0x4ac2e8}=_0xe9e6af;switch(_0x475c1f){case _0x580f8a[_0xbb3fd6(0x1f5)]:return _0x31c241[_0xbb3fd6(0x271)](_0x913916,{'coordinator':_0x4ac2e8});case _0x580f8a[_0xbb3fd6(0x228)]:return _0x31c241[_0xbb3fd6(0x271)](_0x33453e,{'coordinator':_0x4ac2e8});case _0x580f8a[_0xbb3fd6(0x206)]:return _0x31c241[_0xbb3fd6(0x271)](_0x21c3bb,{'coordinator':_0x4ac2e8});case _0x580f8a[_0xbb3fd6(0x1d5)]:return _0x31c241[_0xbb3fd6(0x271)](_0x1a05fc,{});case _0x580f8a[_0xbb3fd6(0x25e)]:return _0x31c241[_0xbb3fd6(0x271)](_0x242f0e,{'coordinator':_0x4ac2e8});default:return null;}}function _0x913916(_0x3ad73b){var _0xc59e45=_0x24692c;const {coordinator:_0x1a0cf6}=_0x3ad73b;return _0x31c241[_0xc59e45(0x1f7)](_0x31c241[_0xc59e45(0x2a4)],{'children':[_0x31c241[_0xc59e45(0x271)](_0xc59e45(0x21a),{'className':_0xc59e45(0x1d9),'children':_0xc59e45(0x286)}),_0x31c241[_0xc59e45(0x271)](_0x53c1c6[_0xc59e45(0x23a)],{'onClick':()=>_0x1a0cf6[_0xc59e45(0x1b7)](),'children':_0xc59e45(0x29f)})]});}function _0x33453e(_0x13d907){var _0xe62a42=_0x24692c;const {coordinator:_0x3164f1}=_0x13d907;return _0x31c241[_0xe62a42(0x1f7)](_0x31c241[_0xe62a42(0x2a4)],{'children':[_0x31c241[_0xe62a42(0x271)](_0xe62a42(0x21a),{'className':_0xe62a42(0x1d9),'children':_0xe62a42(0x2a7)}),_0x31c241[_0xe62a42(0x271)](_0x53c1c6['Button'],{'onClick':()=>_0x3164f1[_0xe62a42(0x235)](),'children':_0xe62a42(0x1f3)})]});}function _0x21c3bb(_0x1d0800){var _0x3a7c53=_0x24692c;const {coordinator:_0x4bbb2e}=_0x1d0800;return _0x31c241[_0x3a7c53(0x1f7)](_0x31c241['Fragment'],{'children':[_0x31c241['jsx']('div',{'className':_0x3a7c53(0x1d9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x31c241[_0x3a7c53(0x271)](_0x53c1c6[_0x3a7c53(0x23a)],{'variant':_0x3a7c53(0x269),'onClick':()=>_0x4bbb2e['startFollowing'](),'children':_0x3a7c53(0x24c)})]});}function _0x242f0e(_0x552225){var _0x1db634=_0x24692c;const {coordinator:_0x456516}=_0x552225;return _0x31c241['jsxs'](_0x31c241[_0x1db634(0x2a4)],{'children':[_0x31c241[_0x1db634(0x271)](_0x1db634(0x21a),{'className':_0x1db634(0x1d9),'children':_0x1db634(0x27a)}),_0x31c241['jsx'](_0x53c1c6[_0x1db634(0x23a)],{'variant':_0x1db634(0x211),'onClick':()=>_0x456516['stopPresenting'](),'children':_0x1db634(0x20b)})]});}function _0x1a05fc(){var _0x1efb11=_0x24692c;return _0x31c241[_0x1efb11(0x271)](_0x31c241[_0x1efb11(0x2a4)],{'children':_0x1efb11(0x233)});}var _0x37d350=Object[_0x24692c(0x1e7)],_0x358bae=(_0x3eac30,_0x304c4b,_0x2bd4ac,_0x349de4)=>{var _0x8ff4f4=_0x24692c;for(var _0x2fef0f=_0x349de4>0x1?void 0x0:_0x349de4?_0x37d350(_0x304c4b,_0x2bd4ac):_0x304c4b,_0x3bdf2b=_0x3eac30[_0x8ff4f4(0x221)]-0x1,_0x5af115;_0x3bdf2b>=0x0;_0x3bdf2b--)(_0x5af115=_0x3eac30[_0x3bdf2b])&&(_0x2fef0f=_0x5af115(_0x2fef0f)||_0x2fef0f);return _0x2fef0f;},_0x4e9eb7=(_0x1ee7ac,_0x3b79b0)=>(_0x38ac23,_0x439411)=>_0x3b79b0(_0x38ac23,_0x439411,_0x1ee7ac);_0xe20450['DesktopLiveShareController']=class extends _0x144f7e[_0x24692c(0x256)]{constructor(_0x17205a,_0x5800a2){var _0x283547=_0x24692c;super(),this[_0x283547(0x28f)]=_0x17205a,this['_uiPartsService']=_0x5800a2,this[_0x283547(0x207)]();}[_0x24692c(0x207)](){var _0x514453=_0x24692c;this['disposeWithMe'](this[_0x514453(0x1d2)]['registerComponent'](_0x1c5b20[_0x514453(0x1e3)][_0x514453(0x1b4)],()=>_0x1c5b20['connectInjector'](_0x405130,this[_0x514453(0x28f)])));}},_0xe20450['DesktopLiveShareController']=_0x358bae([_0x4e9eb7(0x0,_0x144f7e[_0x24692c(0x24d)](_0x144f7e[_0x24692c(0x26e)])),_0x4e9eb7(0x1,_0x1c5b20[_0x24692c(0x270)])],_0xe20450[_0x24692c(0x224)]);var _0x444097=Object['defineProperty'],_0x52848d=Object['getOwnPropertyDescriptor'],_0x59d7fe=(_0x26c779,_0x5da6bb,_0x263d50)=>_0x5da6bb in _0x26c779?_0x444097(_0x26c779,_0x5da6bb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x263d50}):_0x26c779[_0x5da6bb]=_0x263d50,_0x4c46e1=(_0x107c7d,_0x5ada09,_0x47835b,_0x46aab3)=>{var _0x52e467=_0x24692c;for(var _0x5b7607=_0x46aab3>0x1?void 0x0:_0x46aab3?_0x52848d(_0x5ada09,_0x47835b):_0x5ada09,_0x46c104=_0x107c7d[_0x52e467(0x221)]-0x1,_0x12c724;_0x46c104>=0x0;_0x46c104--)(_0x12c724=_0x107c7d[_0x46c104])&&(_0x5b7607=_0x12c724(_0x5b7607)||_0x5b7607);return _0x5b7607;},_0x2797da=(_0x232fd2,_0x2b219e)=>(_0x1f9773,_0x34c4f6)=>_0x2b219e(_0x1f9773,_0x34c4f6,_0x232fd2),_0x4e8c1a=(_0x4d9ede,_0x311780,_0xd0fb95)=>_0x59d7fe(_0x4d9ede,typeof _0x311780!='symbol'?_0x311780+'':_0x311780,_0xd0fb95);const _0x3cb6c5=_0x24692c(0x1ce);_0xe20450[_0x24692c(0x29e)]=class extends _0x144f7e[_0x24692c(0x241)]{constructor(_0x1817b3=_0x1a791a,_0x57a9e6,_0x2e42cf){var _0x37a571=_0x24692c;super(),this['_config']=_0x1817b3,this[_0x37a571(0x28f)]=_0x57a9e6,this[_0x37a571(0x1e1)]=_0x2e42cf;const {..._0x30ac8c}=_0x144f7e[_0x37a571(0x238)]({},_0x1a791a,this[_0x37a571(0x1c6)]);this['_configService'][_0x37a571(0x1cd)](_0x20a4b6,_0x30ac8c);}[_0x24692c(0x1db)](){var _0x307a42=_0x24692c;_0x144f7e[_0x307a42(0x263)](this[_0x307a42(0x28f)],_0x144f7e[_0x307a42(0x1bd)]([[_0x4a614a],[_0xe20450[_0x307a42(0x1f1)]],[_0x51287f],[_0xe20450[_0x307a42(0x224)]]],this[_0x307a42(0x1c6)][_0x307a42(0x1ba)])),_0x144f7e[_0x307a42(0x1d4)](this[_0x307a42(0x28f)],[[_0x51287f]]);}[_0x24692c(0x1dd)](){var _0x1b5186=_0x24692c;_0x144f7e[_0x1b5186(0x1d4)](this[_0x1b5186(0x28f)],[[_0xe20450[_0x1b5186(0x224)]]]);}},_0x4e8c1a(_0xe20450['UniverLiveSharePlugin'],_0x24692c(0x232),_0x144f7e[_0x24692c(0x22c)]['UNIVER_UNKNOWN']),_0x4e8c1a(_0xe20450[_0x24692c(0x29e)],_0x24692c(0x20c),_0x3cb6c5),_0xe20450[_0x24692c(0x29e)]=_0x4c46e1([_0x144f7e[_0x24692c(0x29c)](_0x40dc39[_0x24692c(0x1cf)]),_0x2797da(0x1,_0x144f7e['Inject'](_0x144f7e['Injector'])),_0x2797da(0x2,_0x144f7e[_0x24692c(0x275)])],_0xe20450[_0x24692c(0x29e)]),_0xe20450[_0x24692c(0x26b)]=_0x405130,_0xe20450['LiveShareService']=_0x4a614a,_0xe20450[_0x24692c(0x1ed)]=_0x580f8a,Object['defineProperty'](_0xe20450,Symbol[_0x24692c(0x226)],{'value':_0x24692c(0x27e)});}));
1
+ (function(_0x3a0295,_0xa96d5f){var _0x147a03=_0x551c,_0x3f15a0=_0x3a0295();while(!![]){try{var _0x33a802=-parseInt(_0x147a03(0xcd))/0x1*(-parseInt(_0x147a03(0x135))/0x2)+parseInt(_0x147a03(0x107))/0x3+parseInt(_0x147a03(0xd9))/0x4+parseInt(_0x147a03(0xc5))/0x5*(parseInt(_0x147a03(0x96))/0x6)+-parseInt(_0x147a03(0x11e))/0x7+-parseInt(_0x147a03(0x113))/0x8+parseInt(_0x147a03(0x120))/0x9;if(_0x33a802===_0xa96d5f)break;else _0x3f15a0['push'](_0x3f15a0['shift']());}catch(_0x3b0385){_0x3f15a0['push'](_0x3f15a0['shift']());}}}(_0x2e9b,0x5dd44),function(_0x53ed2e,_0x2cd35d){var _0xec5b5c=_0x551c;typeof exports==_0xec5b5c(0x16b)&&typeof module<'u'?_0x2cd35d(exports,require(_0xec5b5c(0xf1)),require('@univerjs/core'),require(_0xec5b5c(0x169)),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require(_0xec5b5c(0x14b)),require(_0xec5b5c(0xe1)),require(_0xec5b5c(0xeb)),require(_0xec5b5c(0x131)),require(_0xec5b5c(0x164)),require(_0xec5b5c(0xe7))):typeof define==_0xec5b5c(0x106)&&define[_0xec5b5c(0x15a)]?define([_0xec5b5c(0x89),'@univerjs-pro/collaboration-client',_0xec5b5c(0xff),_0xec5b5c(0x169),_0xec5b5c(0x124),_0xec5b5c(0xca),_0xec5b5c(0x14b),'@univerjs/design',_0xec5b5c(0xeb),'@univerjs-pro/collaboration','rxjs','rxjs/operators'],_0x2cd35d):(_0x53ed2e=typeof globalThis<'u'?globalThis:_0x53ed2e||self,_0x2cd35d(_0x53ed2e['UniverProLiveShare']={},_0x53ed2e[_0xec5b5c(0x155)],_0x53ed2e[_0xec5b5c(0x11d)],_0x53ed2e[_0xec5b5c(0x9f)],_0x53ed2e[_0xec5b5c(0xb5)],_0x53ed2e[_0xec5b5c(0xda)],_0x53ed2e[_0xec5b5c(0x12a)],_0x53ed2e[_0xec5b5c(0x14d)],_0x53ed2e['React'],_0x53ed2e['UniverProCollaboration'],_0x53ed2e[_0xec5b5c(0x164)],_0x53ed2e[_0xec5b5c(0x164)]['operators']));}(this,function(_0x1ad529,_0x86777e,_0x68649f,_0x29cc2f,_0x1d2bd8,_0x467c60,_0x252371,_0x22cbab,_0x1adffa,_0x2e7c2c,_0x2afcdd,_0x2844f8){'use strict';var _0x3abdb7=_0x551c;var _0x3a4666=Object[_0x3abdb7(0xa7)],_0x23664f=(_0x21c623,_0x2ab4de,_0x1cd2cf)=>_0x2ab4de in _0x21c623?_0x3a4666(_0x21c623,_0x2ab4de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cd2cf}):_0x21c623[_0x2ab4de]=_0x1cd2cf,_0x39c852=(_0x4e4741,_0x354f39,_0x5450e1)=>_0x23664f(_0x4e4741,typeof _0x354f39!=_0x3abdb7(0x153)?_0x354f39+'':_0x354f39,_0x5450e1);const _0x5a5348=_0x3abdb7(0x14f),_0x2fd119={};class _0x262dcf extends _0x68649f[_0x3abdb7(0xef)]{constructor(){var _0x183068=_0x3abdb7;super(...arguments),_0x39c852(this,_0x183068(0x157),new Set()),_0x39c852(this,_0x183068(0xfb),new Set());}[_0x3abdb7(0xf5)](_0x28ea65){var _0x24f771=_0x3abdb7;return this[_0x24f771(0x157)][_0x24f771(0x148)](_0x28ea65),_0x68649f[_0x24f771(0x138)](()=>this['_sharedOperations'][_0x24f771(0xa0)](_0x28ea65));}['registerInitialStateReporter'](_0x1c2250){var _0x41f5ee=_0x3abdb7;return this['_reporters'][_0x41f5ee(0x148)](_0x1c2250),_0x68649f[_0x41f5ee(0x138)](()=>this[_0x41f5ee(0xfb)][_0x41f5ee(0xa0)](_0x1c2250));}[_0x3abdb7(0x166)](_0xcdff1e){return this['_sharedOperations']['has'](_0xcdff1e);}['getInitialStates'](_0x2b4897){var _0x2f11e2=_0x3abdb7;return Array[_0x2f11e2(0xe3)](this['_reporters'])['map'](_0x542593=>_0x542593(_0x2b4897));}}var _0xe5bade=Object[_0x3abdb7(0x13d)],_0x17bc3c=(_0x7e8dc8,_0x367aee,_0x5db184,_0x17a1b2)=>{var _0x374ab7=_0x3abdb7;for(var _0x4a3f63=_0x17a1b2>0x1?void 0x0:_0x17a1b2?_0xe5bade(_0x367aee,_0x5db184):_0x367aee,_0x431e52=_0x7e8dc8[_0x374ab7(0xac)]-0x1,_0xdfbcfa;_0x431e52>=0x0;_0x431e52--)(_0xdfbcfa=_0x7e8dc8[_0x431e52])&&(_0x4a3f63=_0xdfbcfa(_0x4a3f63)||_0x4a3f63);return _0x4a3f63;},_0x5829a0=(_0x4d9428,_0x34b8b9)=>(_0x537cc5,_0x46b404)=>_0x34b8b9(_0x537cc5,_0x46b404,_0x4d9428);let _0x3b0a36=class extends _0x68649f['Disposable']{constructor(_0x412701){var _0x1d054e=_0x3abdb7;super(),this[_0x1d054e(0x137)]=_0x412701,this[_0x1d054e(0xd5)]();}[_0x3abdb7(0xd5)](){var _0x4ff5b7=_0x3abdb7;[_0x1d2bd8['SetZoomRatioOperation']['id'],_0x1d2bd8[_0x4ff5b7(0x159)]['id'],_0x29cc2f[_0x4ff5b7(0xb1)]['id']][_0x4ff5b7(0x168)](_0x10b7e1=>{var _0x5712fb=_0x4ff5b7;this[_0x5712fb(0xae)](this[_0x5712fb(0x137)]['registerSharedOperation'](_0x10b7e1));});}};_0x3b0a36=_0x17bc3c([_0x5829a0(0x0,_0x68649f[_0x3abdb7(0xdf)](_0x262dcf))],_0x3b0a36);var _0x5dd2ef=function(){var _0x314868=_0x3abdb7;return _0x5dd2ef=Object[_0x314868(0xb4)]||function(_0x2dafc8){var _0x37e4d9=_0x314868;for(var _0x2d9965,_0x39c07d=0x1,_0x4ef927=arguments[_0x37e4d9(0xac)];_0x39c07d<_0x4ef927;_0x39c07d++){_0x2d9965=arguments[_0x39c07d];for(var _0x30f01a in _0x2d9965)Object['prototype'][_0x37e4d9(0x9b)][_0x37e4d9(0x116)](_0x2d9965,_0x30f01a)&&(_0x2dafc8[_0x30f01a]=_0x2d9965[_0x30f01a]);}return _0x2dafc8;},_0x5dd2ef[_0x314868(0x12f)](this,arguments);},_0x24d504=function(_0x53be78,_0x3b4596){var _0xa93b01=_0x3abdb7,_0x2f95f0={};for(var _0x22c18d in _0x53be78)Object['prototype'][_0xa93b01(0x9b)][_0xa93b01(0x116)](_0x53be78,_0x22c18d)&&_0x3b4596[_0xa93b01(0xfe)](_0x22c18d)<0x0&&(_0x2f95f0[_0x22c18d]=_0x53be78[_0x22c18d]);if(_0x53be78!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x5c6626=0x0,_0x22c18d=Object['getOwnPropertySymbols'](_0x53be78);_0x5c6626<_0x22c18d[_0xa93b01(0xac)];_0x5c6626++)_0x3b4596[_0xa93b01(0xfe)](_0x22c18d[_0x5c6626])<0x0&&Object['prototype'][_0xa93b01(0x109)]['call'](_0x53be78,_0x22c18d[_0x5c6626])&&(_0x2f95f0[_0x22c18d[_0x5c6626]]=_0x53be78[_0x22c18d[_0x5c6626]]);}return _0x2f95f0;},_0x4ef3c0=_0x1adffa[_0x3abdb7(0x127)](function(_0x3703ad,_0x54a929){var _0x13f839=_0x3abdb7,_0x5eefcd=_0x3703ad[_0x13f839(0x15f)],_0x51afba=_0x3703ad['id'],_0x306906=_0x3703ad[_0x13f839(0x94)],_0x423e90=_0x3703ad[_0x13f839(0x12d)],_0x37b51c=_0x24d504(_0x3703ad,['icon','id',_0x13f839(0x94),_0x13f839(0x12d)]),_0x315fb8='univerjs-icon\x20univerjs-icon-'['concat'](_0x51afba,'\x20')['concat'](_0x306906||'')[_0x13f839(0x10f)](),_0x364617=_0x1adffa[_0x13f839(0xb2)]('_'[_0x13f839(0x10e)](_0x5edde5()));return _0x26ab52(_0x5eefcd,''[_0x13f839(0x10e)](_0x51afba),{'defIds':_0x5eefcd[_0x13f839(0x14a)],'idSuffix':_0x364617[_0x13f839(0xc9)]},_0x5dd2ef({'ref':_0x54a929,'className':_0x315fb8},_0x37b51c),_0x423e90);});function _0x26ab52(_0x180c91,_0x572c93,_0x31c597,_0x3a7f29,_0x27f07d){var _0x24ae7c=_0x3abdb7;return _0x1adffa[_0x24ae7c(0x88)](_0x180c91[_0x24ae7c(0xb3)],_0x5dd2ef(_0x5dd2ef({'key':_0x572c93},_0x5aaeb7(_0x180c91,_0x31c597,_0x27f07d)),_0x3a7f29),(_0x375566(_0x180c91,_0x31c597)[_0x24ae7c(0x93)]||[])['map'](function(_0x4c33c0,_0x3e1168){var _0x2b31ed=_0x24ae7c;return _0x26ab52(_0x4c33c0,''[_0x2b31ed(0x10e)](_0x572c93,'-')[_0x2b31ed(0x10e)](_0x180c91[_0x2b31ed(0xb3)],'-')['concat'](_0x3e1168),_0x31c597,void 0x0,_0x27f07d);}));}function _0x5aaeb7(_0x1a25bc,_0x26e47f,_0x51ede3){var _0x41354f=_0x3abdb7,_0x5cd5c8=_0x5dd2ef({},_0x1a25bc['attrs']);_0x51ede3!=null&&_0x51ede3[_0x41354f(0x111)]&&_0x5cd5c8[_0x41354f(0x9d)]===_0x41354f(0x111)&&(_0x5cd5c8[_0x41354f(0x9d)]=_0x51ede3[_0x41354f(0x111)]),_0x1a25bc[_0x41354f(0xb3)]===_0x41354f(0xa9)&&_0x5cd5c8['id']&&(_0x5cd5c8['id']=_0x5cd5c8['id']+_0x26e47f[_0x41354f(0xcc)]),Object[_0x41354f(0xbb)](_0x5cd5c8)[_0x41354f(0x168)](function(_0x25cb5b){var _0x2f8568=_0x41354f,_0x22c9c9=_0x25cb5b[0x0],_0x5921e4=_0x25cb5b[0x1];_0x22c9c9===_0x2f8568(0xa9)&&typeof _0x5921e4==_0x2f8568(0x12c)&&(_0x5cd5c8[_0x22c9c9]=_0x5921e4[_0x2f8568(0xab)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x26e47f[_0x2f8568(0xcc)],')')));});var _0x2303d3=_0x26e47f[_0x41354f(0x14a)];return!_0x2303d3||_0x2303d3[_0x41354f(0xac)]===0x0||(_0x1a25bc[_0x41354f(0xb3)]===_0x41354f(0x161)&&_0x5cd5c8[_0x41354f(0xa8)]&&(_0x5cd5c8[_0x41354f(0xa8)]=_0x5cd5c8[_0x41354f(0xa8)]+_0x26e47f[_0x41354f(0xcc)]),Object['entries'](_0x5cd5c8)[_0x41354f(0x168)](function(_0x2ba5eb){var _0x488e33=_0x41354f,_0x1ff48e=_0x2ba5eb[0x0],_0x1fffd4=_0x2ba5eb[0x1];typeof _0x1fffd4==_0x488e33(0x12c)&&(_0x5cd5c8[_0x1ff48e]=_0x1fffd4[_0x488e33(0xab)](/url\(#(.*)\)/,_0x488e33(0xb9)['concat'](_0x26e47f[_0x488e33(0xcc)],')')));})),_0x5cd5c8;}function _0x375566(_0x2ad3c9,_0xf8ae26){var _0x9e980c=_0x3abdb7,_0x4f3a23,_0x12ab14=_0xf8ae26[_0x9e980c(0x14a)];return!_0x12ab14||_0x12ab14[_0x9e980c(0xac)]===0x0?_0x2ad3c9:_0x2ad3c9['tag']==='defs'&&(!((_0x4f3a23=_0x2ad3c9[_0x9e980c(0x93)])===null||_0x4f3a23===void 0x0)&&_0x4f3a23[_0x9e980c(0xac)])?_0x5dd2ef(_0x5dd2ef({},_0x2ad3c9),{'children':_0x2ad3c9['children'][_0x9e980c(0x139)](function(_0xadb1ab){var _0x1cb318=_0x9e980c;return typeof _0xadb1ab[_0x1cb318(0x83)]['id']==_0x1cb318(0x12c)&&_0x12ab14&&_0x12ab14[_0x1cb318(0x102)](_0xadb1ab[_0x1cb318(0x83)]['id'])?_0x5dd2ef(_0x5dd2ef({},_0xadb1ab),{'attrs':_0x5dd2ef(_0x5dd2ef({},_0xadb1ab['attrs']),{'id':_0xadb1ab[_0x1cb318(0x83)]['id']+_0xf8ae26[_0x1cb318(0xcc)]})}):_0xadb1ab;})}):_0x2ad3c9;}function _0x5edde5(){var _0x2e8545=_0x3abdb7;return Math['random']()[_0x2e8545(0xcf)](0x24)[_0x2e8545(0x144)](0x2,0x8);}_0x4ef3c0[_0x3abdb7(0xa4)]=_0x3abdb7(0xf3);var _0x589cf3={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3abdb7(0x90),'viewBox':_0x3abdb7(0x86),'width':'1em','height':_0x3abdb7(0x149)},'children':[{'tag':_0x3abdb7(0x146),'attrs':{'fill':'currentColor','d':_0x3abdb7(0x92)}},{'tag':_0x3abdb7(0x146),'attrs':{'fill':_0x3abdb7(0x98),'d':_0x3abdb7(0xa6),'fillRule':_0x3abdb7(0x130),'clipRule':_0x3abdb7(0x130)}}]},_0x34924a=_0x1adffa[_0x3abdb7(0x127)](function(_0x4df344,_0x5adcc){var _0x2398f1=_0x3abdb7;return _0x1adffa[_0x2398f1(0x88)](_0x4ef3c0,Object['assign']({},_0x4df344,{'id':_0x2398f1(0xe2),'ref':_0x5adcc,'icon':_0x589cf3}));});_0x34924a[_0x3abdb7(0xa4)]='LiveShareIcon';var _0x22e6d5=Object[_0x3abdb7(0x13d)],_0x4e5da2=(_0x14c557,_0x33a6ae,_0x457b09,_0x1d305f)=>{var _0x42b3df=_0x3abdb7;for(var _0x1a02f9=_0x1d305f>0x1?void 0x0:_0x1d305f?_0x22e6d5(_0x33a6ae,_0x457b09):_0x33a6ae,_0x32b637=_0x14c557[_0x42b3df(0xac)]-0x1,_0x311be9;_0x32b637>=0x0;_0x32b637--)(_0x311be9=_0x14c557[_0x32b637])&&(_0x1a02f9=_0x311be9(_0x1a02f9)||_0x1a02f9);return _0x1a02f9;},_0x57492a=(_0x2cde5a,_0x281868)=>(_0x32aa6c,_0x30cafa)=>_0x281868(_0x32aa6c,_0x30cafa,_0x2cde5a);_0x1ad529['LiveShareController']=class extends _0x68649f[_0x3abdb7(0x119)]{constructor(_0x19cdad,_0x234a54,_0x555a74){var _0x38075a=_0x3abdb7;super(),_0x39c852(this,_0x38075a(0xa3),new Map()),(this['_univerInstanceService']=_0x19cdad,this[_0x38075a(0xde)]=_0x234a54,this[_0x38075a(0x165)]=_0x555a74,this[_0x38075a(0xd5)]());}async[_0x3abdb7(0x16c)](_0x509716){var _0x38dc23=_0x3abdb7;return this[_0x38dc23(0xa3)][_0x38dc23(0xcb)](_0x509716)||await this[_0x38dc23(0x150)](_0x509716),this[_0x38dc23(0xa3)][_0x38dc23(0x10a)](_0x509716);}['_init'](){var _0x1480d8=_0x3abdb7;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x68649f[_0x1480d8(0x16a)]['UNIVER_SHEET'])['pipe'](_0x2844f8[_0x1480d8(0xfd)](this['dispose$']))[_0x1480d8(0x122)](async _0x491c0f=>{var _0x298f1c=_0x1480d8;const _0x562311=_0x491c0f[_0x298f1c(0xbc)]();this['_entities']['has'](_0x562311)||this[_0x298f1c(0x150)](_0x562311);}),this[_0x1480d8(0x16e)]['getTypeOfUnitDisposed$'](_0x68649f[_0x1480d8(0x16a)][_0x1480d8(0xbd)])[_0x1480d8(0x8f)](_0x2844f8[_0x1480d8(0xfd)](this[_0x1480d8(0x84)]))[_0x1480d8(0x122)](_0x59938c=>{var _0x30f1b8=_0x1480d8;const _0x109575=_0x59938c[_0x30f1b8(0xbc)](),_0x2cff9f=this['_entities'][_0x30f1b8(0x10a)](_0x109575);_0x2cff9f==null||_0x2cff9f[_0x30f1b8(0x11c)]();});}async[_0x3abdb7(0x150)](_0x1e8276){var _0x584df3=_0x3abdb7;const _0x46eccf=await this[_0x584df3(0x165)][_0x584df3(0x118)](_0x1e8276),_0x3cf11f=this[_0x584df3(0xde)]['createInstance'](_0x1ad529[_0x584df3(0xc1)],_0x1e8276,_0x46eccf);return _0x3cf11f['init'](),this[_0x584df3(0xa3)][_0x584df3(0xba)](_0x1e8276,_0x3cf11f),_0x3cf11f;}},_0x1ad529['LiveShareController']=_0x4e5da2([_0x57492a(0x0,_0x68649f[_0x3abdb7(0x15b)]),_0x57492a(0x1,_0x68649f[_0x3abdb7(0xdf)](_0x68649f['Injector'])),_0x57492a(0x2,_0x68649f[_0x3abdb7(0xdf)](_0x86777e['CollaborationSessionService']))],_0x1ad529[_0x3abdb7(0xdd)]);var _0x5587fe=(_0x266981=>(_0x266981['OFFLINE']=_0x3abdb7(0xea),_0x266981[_0x3abdb7(0x154)]='idle',_0x266981['FOLLOWING']=_0x3abdb7(0x121),_0x266981[_0x3abdb7(0x167)]=_0x3abdb7(0x145),_0x266981[_0x3abdb7(0x117)]=_0x3abdb7(0x125),_0x266981))(_0x5587fe||{});const _0x4614fb=_0x3abdb7(0xb0),_0x27a8fb=0xc8;_0x1ad529[_0x3abdb7(0xc1)]=class extends _0x68649f[_0x3abdb7(0x119)]{constructor(_0x560980,_0x2db9ca,_0x4e937b,_0x2bcd4e,_0x41fcda){var _0x5a7971=_0x3abdb7;super(),_0x39c852(this,'_status$',new _0x2afcdd['BehaviorSubject'](_0x5a7971(0xd2))),_0x39c852(this,_0x5a7971(0x11f),this[_0x5a7971(0xf2)][_0x5a7971(0x13c)]()),_0x39c852(this,_0x5a7971(0xd5),!0x1),_0x39c852(this,_0x5a7971(0xf9),null),_0x39c852(this,_0x5a7971(0x142),null),(this[_0x5a7971(0xc0)]=_0x560980,this[_0x5a7971(0x13e)]=_0x2db9ca,this['_configService']=_0x4e937b,this[_0x5a7971(0x137)]=_0x2bcd4e,this[_0x5a7971(0xe4)]=_0x41fcda);}get[_0x3abdb7(0xfc)](){var _0x1827f3=_0x3abdb7;return this[_0x1827f3(0xf2)][_0x1827f3(0xdb)]();}[_0x3abdb7(0x11c)](){var _0x9ed934=_0x3abdb7,_0x3dd468;(_0x3dd468=this[_0x9ed934(0xf9)])==null||_0x3dd468[_0x9ed934(0x11c)](),this['_status$'][_0x9ed934(0x108)](_0x9ed934(0xd2)),this[_0x9ed934(0xf2)][_0x9ed934(0xfa)]();}[_0x3abdb7(0x85)](){var _0x802d81=_0x3abdb7;this[_0x802d81(0xd5)]||(this[_0x802d81(0xd5)]=!0x0,this[_0x802d81(0x13e)][_0x802d81(0x16d)]['pipe'](_0x2844f8[_0x802d81(0xfd)](this[_0x802d81(0x84)]))[_0x802d81(0x122)](_0x179999=>{var _0x187e28=_0x802d81;switch(_0x179999){case _0x86777e['SessionStatus']['OFFLINE']:this[_0x187e28(0x112)]();break;case _0x86777e['SessionStatus'][_0x187e28(0xd7)]:this[_0x187e28(0x13f)]();break;}}),this['_collabSession'][_0x802d81(0x136)]['pipe'](_0x2844f8[_0x802d81(0xfd)](this[_0x802d81(0x84)]))[_0x802d81(0x122)](_0x4f675b=>{var _0xa422a5=_0x802d81;const {eventID:_0x30835c}=_0x4f675b;switch(_0x30835c){case _0x2e7c2c[_0xa422a5(0xaa)][_0xa422a5(0x10d)]:this[_0xa422a5(0xc3)](_0x4f675b);break;case _0x2e7c2c[_0xa422a5(0xaa)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x4f675b);break;case _0x2e7c2c[_0xa422a5(0xaa)][_0xa422a5(0xe8)]:this[_0xa422a5(0x129)]();break;case _0x2e7c2c[_0xa422a5(0xaa)]['NEW_CHANGESETS']:this[_0xa422a5(0x13b)](_0x4f675b);break;}}));}[_0x3abdb7(0x160)](){var _0x76a1b0=_0x3abdb7;this[_0x76a1b0(0x13e)][_0x76a1b0(0xa1)]({'eventID':_0x2e7c2c[_0x76a1b0(0xaa)][_0x76a1b0(0x87)],'data':{'unitID':this['_unitID'],'userID':this[_0x76a1b0(0x13e)]['getMemberID']()}},this['_unitID']);}[_0x3abdb7(0x156)](){var _0x1cb989=_0x3abdb7;this[_0x1cb989(0xfc)]===_0x1cb989(0x125)&&(this[_0x1cb989(0xf2)][_0x1cb989(0x108)](_0x1cb989(0xd2)),this['_collabSession']['send']({'eventID':_0x2e7c2c[_0x1cb989(0xaa)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1cb989(0xc0)]}},this['_unitID']));}['startFollowing'](){var _0x4c3082=_0x3abdb7;this[_0x4c3082(0xfc)]===_0x4c3082(0x145)&&(this[_0x4c3082(0xf2)][_0x4c3082(0x108)](_0x4c3082(0x121)),this[_0x4c3082(0xe6)]());}[_0x3abdb7(0x133)](){var _0x503490=_0x3abdb7;this[_0x503490(0xfc)]===_0x503490(0x121)&&this[_0x503490(0xe5)]();}['_handleNewHost'](_0x21190b){var _0x3862ce=_0x3abdb7;const {presenter:_0x54f01b}=_0x21190b[_0x3862ce(0x11a)],_0x51cdf8=this[_0x3862ce(0x13e)]['getMemberID']();this['_presenter']=_0x54f01b,_0x54f01b===_0x51cdf8?(this['_stopFollowing'](),this[_0x3862ce(0xb8)]()):this[_0x3862ce(0xfc)]!==_0x3862ce(0x145)&&(this['_stopPresenting'](),this[_0x3862ce(0xe6)]());}['_fetchOperations'](){var _0x1ef479=_0x3abdb7;const _0x36afa7={'eventID':_0x2e7c2c[_0x1ef479(0xaa)][_0x1ef479(0x163)]};this[_0x1ef479(0x13e)]['send'](_0x36afa7,this[_0x1ef479(0xc0)]);}['_handleTerminate'](){var _0x5169e0=_0x3abdb7;this[_0x5169e0(0x142)]=null,this['_status']!==_0x5169e0(0x125)&&this[_0x5169e0(0xc8)]();}[_0x3abdb7(0x13b)](_0x9ea404){var _0x128736=_0x3abdb7;if(this[_0x128736(0xfc)]===_0x128736(0x121)&&this[_0x128736(0x142)]===_0x9ea404['data'][_0x128736(0x103)]){const _0x2b1a6d=_0x2e7c2c[_0x128736(0x134)](_0x9ea404[_0x128736(0x11a)])[_0x128736(0xd0)][_0x128736(0x126)]()['find'](_0x753083=>_0x753083['id']===_0x29cc2f[_0x128736(0x151)]['id']);if(_0x2b1a6d){const _0x203bae=_0x2b1a6d[_0x128736(0xf8)][_0x128736(0x104)],_0x1470e=_0x2b1a6d[_0x128736(0xf8)][_0x128736(0x158)]['id'];setTimeout(()=>{var _0x4c132c=_0x128736;this[_0x4c132c(0xe4)][_0x4c132c(0xe9)](_0x29cc2f[_0x4c132c(0xb1)]['id'],{'unitId':_0x203bae,'subUnitId':_0x1470e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x43c192=_0x3abdb7;this[_0x43c192(0xf2)][_0x43c192(0x108)](_0x43c192(0x125));const _0x47758e=new Map(),_0x84e65f=this[_0x43c192(0xf9)]=new _0x68649f['DisposableCollection']();_0x84e65f[_0x43c192(0x148)](_0x68649f['toDisposable'](()=>{var _0x203f00=_0x43c192;_0x47758e[_0x203f00(0x168)](_0x3d6de3=>_0x3d6de3[_0x203f00(0xfa)]()),_0x47758e['clear']();})),_0x84e65f[_0x43c192(0x148)](this['_commandService'][_0x43c192(0xec)](_0x420847=>{var _0x21f97e=_0x43c192,_0x214793;if(_0x420847['type']!==_0x68649f[_0x21f97e(0xc6)][_0x21f97e(0x10c)]||!this['_liveShareService'][_0x21f97e(0x166)](_0x420847['id']))return;const {id:_0x1e9054}=_0x420847;let _0x25b458;_0x47758e[_0x21f97e(0xcb)](_0x1e9054)?_0x25b458=_0x47758e[_0x21f97e(0x10a)](_0x1e9054):(_0x25b458=new _0x2afcdd[(_0x21f97e(0x128))](),_0x47758e[_0x21f97e(0xba)](_0x1e9054,_0x25b458),_0x25b458[_0x21f97e(0x8f)](_0x2844f8[_0x21f97e(0xd6)]((_0x214793=this[_0x21f97e(0xc2)][_0x21f97e(0x15e)](_0x4614fb))!=null?_0x214793:_0x27a8fb,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x21f97e(0x122)](_0x1fea0c=>{var _0x3bbf98=_0x21f97e;this[_0x3bbf98(0x13e)][_0x3bbf98(0xa1)]({'eventID':_0x2e7c2c[_0x3bbf98(0xaa)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x1fea0c['id']]:{'id':_0x1fea0c['id'],'params':JSON[_0x3bbf98(0xbe)](_0x1fea0c[_0x3bbf98(0xf8)])}}}},this[_0x3bbf98(0xc0)]);})),_0x25b458[_0x21f97e(0x108)](_0x420847);})),this[_0x43c192(0x137)][_0x43c192(0x100)](this['_unitID'])[_0x43c192(0x168)](_0x58af98=>this[_0x43c192(0x13e)]['send']({'eventID':_0x2e7c2c[_0x43c192(0xaa)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x43c192(0xc0)],'operations':{[_0x58af98['id']]:{'id':_0x58af98['id'],'params':JSON['stringify'](_0x58af98[_0x43c192(0xf8)])}}}},this[_0x43c192(0xc0)]));}[_0x3abdb7(0x95)](){var _0xbecdcf=_0x3abdb7,_0x23d906;this[_0xbecdcf(0xf2)][_0xbecdcf(0x108)]('idle'),(_0x23d906=this[_0xbecdcf(0xf9)])==null||_0x23d906[_0xbecdcf(0x11c)](),this[_0xbecdcf(0xf9)]=null;}[_0x3abdb7(0xe6)](){var _0x2d108f=_0x3abdb7,_0x3fcc05;(_0x3fcc05=this[_0x2d108f(0xf9)])==null||_0x3fcc05[_0x2d108f(0x11c)](),this[_0x2d108f(0xf2)]['next'](_0x2d108f(0x121));}['_beIdle'](){var _0x3ab93b=_0x3abdb7,_0x32ccf9;this[_0x3ab93b(0xf2)]['next'](_0x3ab93b(0xd2)),(_0x32ccf9=this[_0x3ab93b(0xf9)])==null||_0x32ccf9[_0x3ab93b(0x11c)](),this[_0x3ab93b(0xf9)]=null;}[_0x3abdb7(0xe5)](){var _0x1a7cc4=_0x3abdb7,_0x8e67e0;this['_status$']['next']('not-following'),(_0x8e67e0=this[_0x1a7cc4(0xf9)])==null||_0x8e67e0[_0x1a7cc4(0x11c)]();}['_handleOperation'](_0x4c828a){var _0x5e24b6=_0x3abdb7;if(['presenting',_0x5e24b6(0x145),_0x5e24b6(0xea)]['includes'](this[_0x5e24b6(0xfc)])||!_0x4c828a['data'][_0x5e24b6(0x9a)]||_0x4c828a[_0x5e24b6(0x11a)][_0x5e24b6(0x9a)]===this[_0x5e24b6(0x13e)][_0x5e24b6(0x14e)]())return;this[_0x5e24b6(0xfc)]===_0x5e24b6(0xd2)&&this[_0x5e24b6(0xe6)]();const _0x28e682=_0x4c828a[_0x5e24b6(0x11a)][_0x5e24b6(0x8e)];Object['values'](_0x28e682)[_0x5e24b6(0x168)](_0x4040ee=>{var _0x2d94f3=_0x5e24b6;this[_0x2d94f3(0xe4)][_0x2d94f3(0xe9)](_0x4040ee['id'],_0x4040ee[_0x2d94f3(0xf8)]?JSON[_0x2d94f3(0x132)](_0x4040ee['params']):null,{'fromCollab':!0x0});});}[_0x3abdb7(0x112)](){var _0x681334=_0x3abdb7,_0x49e3f0;this[_0x681334(0xf2)]['next'](_0x681334(0xea)),(_0x49e3f0=this[_0x681334(0xf9)])==null||_0x49e3f0[_0x681334(0x11c)]();}['_handleOnline'](){var _0x104a4a=_0x3abdb7;this['_status$'][_0x104a4a(0x108)](_0x104a4a(0xd2)),this[_0x104a4a(0x141)]();}},_0x1ad529[_0x3abdb7(0xc1)]=_0x4e5da2([_0x57492a(0x2,_0x68649f[_0x3abdb7(0xf7)]),_0x57492a(0x3,_0x68649f[_0x3abdb7(0xdf)](_0x262dcf)),_0x57492a(0x4,_0x68649f['ICommandService'])],_0x1ad529[_0x3abdb7(0xc1)]);function _0x19d771(){var _0xc629f9=_0x3abdb7;const _0x4c75c6=_0x467c60[_0xc629f9(0x9c)](_0x1ad529[_0xc629f9(0xdd)]),_0x56acee=_0x467c60['useDependency'](_0x68649f[_0xc629f9(0x15b)]),_0x66f85b=_0x467c60[_0xc629f9(0xd8)](()=>_0x56acee['getCurrentTypeOfUnit$'](_0x68649f[_0xc629f9(0x16a)][_0xc629f9(0xbd)]),void 0x0,!0x1,[]),[_0x1086f7,_0x3ae709]=_0x1adffa['useState'](null),[_0x487438,_0x1ca65f]=_0x1adffa['useState'](_0x5587fe[_0xc629f9(0x154)]),_0x456577=_0x1adffa[_0xc629f9(0xb2)](null);return _0x1adffa[_0xc629f9(0x9e)](()=>(_0x66f85b&&_0x4c75c6[_0xc629f9(0x16c)](_0x66f85b['getUnitId']())[_0xc629f9(0xa2)](_0x42c691=>{var _0x10967b=_0xc629f9;_0x3ae709(_0x42c691),_0x456577[_0x10967b(0xc9)]=_0x42c691[_0x10967b(0x11f)]['subscribe'](_0x16d813=>{_0x1ca65f(_0x16d813);});}),()=>{var _0x2ba12a=_0xc629f9,_0x1731cf;(_0x1731cf=_0x456577['current'])==null||_0x1731cf[_0x2ba12a(0x114)](),_0x456577[_0x2ba12a(0xc9)]=null;}),[_0x66f85b,_0x4c75c6]),_0x1086f7?_0x252371[_0xc629f9(0xe0)](_0x22cbab['Dropdown'],{'align':_0xc629f9(0x15d),'disabled':_0x487438===_0x5587fe[_0xc629f9(0x10b)],'className':_0xc629f9(0x105),'overlay':_0x252371[_0xc629f9(0xe0)](_0xac50fb,{'status':_0x487438,'coordinator':_0x1086f7}),'children':_0x252371[_0xc629f9(0xe0)](_0xc629f9(0xbf),{'className':_0x22cbab['clsx'](_0xc629f9(0xc4),{'univer-cursor-not-allowed':_0x487438===_0x5587fe[_0xc629f9(0x10b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x487438!==_0x5587fe[_0xc629f9(0x10b)]}),'type':'button','children':_0x252371['jsx'](_0x34924a,{'className':_0xc629f9(0x162)})})}):null;}function _0xac50fb(_0x16111f){var _0x1f3949=_0x3abdb7;const {status:_0x3ca647,coordinator:_0x213a7f}=_0x16111f;switch(_0x3ca647){case _0x5587fe['IDLE']:return _0x252371[_0x1f3949(0xe0)](_0x127724,{'coordinator':_0x213a7f});case _0x5587fe[_0x1f3949(0xd1)]:return _0x252371[_0x1f3949(0xe0)](_0x241155,{'coordinator':_0x213a7f});case _0x5587fe[_0x1f3949(0x167)]:return _0x252371['jsx'](_0x4beec6,{'coordinator':_0x213a7f});case _0x5587fe[_0x1f3949(0x10b)]:return _0x252371[_0x1f3949(0xe0)](_0x4b8ad4,{});case _0x5587fe[_0x1f3949(0x117)]:return _0x252371[_0x1f3949(0xe0)](_0x3ff057,{'coordinator':_0x213a7f});default:return null;}}function _0x127724(_0x20b49b){var _0x128fcc=_0x3abdb7;const {coordinator:_0x7c83b4}=_0x20b49b;return _0x252371[_0x128fcc(0xd3)](_0x252371[_0x128fcc(0xb6)],{'children':[_0x252371[_0x128fcc(0xe0)](_0x128fcc(0xf4),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x128fcc(0x8a)}),_0x252371['jsx'](_0x22cbab[_0x128fcc(0xdc)],{'onClick':()=>_0x7c83b4[_0x128fcc(0x160)](),'children':_0x128fcc(0xce)})]});}function _0x241155(_0x197d4d){var _0x267516=_0x3abdb7;const {coordinator:_0x4d8c90}=_0x197d4d;return _0x252371['jsxs'](_0x252371[_0x267516(0xb6)],{'children':[_0x252371[_0x267516(0xe0)](_0x267516(0xf4),{'className':_0x267516(0x8b),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x252371[_0x267516(0xe0)](_0x22cbab[_0x267516(0xdc)],{'onClick':()=>_0x4d8c90['stopFollowing'](),'children':_0x267516(0x101)})]});}function _0x4beec6(_0xdeab03){var _0x5d8175=_0x3abdb7;const {coordinator:_0x3eca0b}=_0xdeab03;return _0x252371[_0x5d8175(0xd3)](_0x252371['Fragment'],{'children':[_0x252371['jsx'](_0x5d8175(0xf4),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5d8175(0x143)}),_0x252371[_0x5d8175(0xe0)](_0x22cbab[_0x5d8175(0xdc)],{'variant':'text','onClick':()=>_0x3eca0b['startFollowing'](),'children':_0x5d8175(0x11b)})]});}function _0x3ff057(_0x476159){var _0x356c1b=_0x3abdb7;const {coordinator:_0x421178}=_0x476159;return _0x252371[_0x356c1b(0xd3)](_0x252371[_0x356c1b(0xb6)],{'children':[_0x252371[_0x356c1b(0xe0)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x356c1b(0x12e)}),_0x252371[_0x356c1b(0xe0)](_0x22cbab[_0x356c1b(0xdc)],{'variant':'default','onClick':()=>_0x421178[_0x356c1b(0x156)](),'children':_0x356c1b(0x13a)})]});}function _0x4b8ad4(){var _0xbc714a=_0x3abdb7;return _0x252371[_0xbc714a(0xe0)](_0x252371[_0xbc714a(0xb6)],{'children':_0xbc714a(0xed)});}var _0x3d176f=Object[_0x3abdb7(0x13d)],_0x24ba94=(_0x550223,_0x554118,_0x5d297d,_0xc30318)=>{var _0x76b13f=_0x3abdb7;for(var _0x36bf25=_0xc30318>0x1?void 0x0:_0xc30318?_0x3d176f(_0x554118,_0x5d297d):_0x554118,_0x3ad2cf=_0x550223[_0x76b13f(0xac)]-0x1,_0x442a0c;_0x3ad2cf>=0x0;_0x3ad2cf--)(_0x442a0c=_0x550223[_0x3ad2cf])&&(_0x36bf25=_0x442a0c(_0x36bf25)||_0x36bf25);return _0x36bf25;},_0x2d6260=(_0x41ffbe,_0x36c970)=>(_0x2f3c94,_0x46eff7)=>_0x36c970(_0x2f3c94,_0x46eff7,_0x41ffbe);_0x1ad529[_0x3abdb7(0x8d)]=class extends _0x68649f[_0x3abdb7(0xef)]{constructor(_0x37c81e,_0xdc5fb1){var _0x16eb80=_0x3abdb7;super(),this[_0x16eb80(0xde)]=_0x37c81e,this[_0x16eb80(0xee)]=_0xdc5fb1,this[_0x16eb80(0x115)]();}[_0x3abdb7(0x115)](){var _0x84b311=_0x3abdb7;this[_0x84b311(0xae)](this['_uiPartsService'][_0x84b311(0x140)](_0x467c60[_0x84b311(0x123)]['HEADER_MENU'],()=>_0x467c60['connectInjector'](_0x19d771,this[_0x84b311(0xde)])));}},_0x1ad529[_0x3abdb7(0x8d)]=_0x24ba94([_0x2d6260(0x0,_0x68649f['Inject'](_0x68649f['Injector'])),_0x2d6260(0x1,_0x467c60[_0x3abdb7(0xd4)])],_0x1ad529['DesktopLiveShareController']);var _0x4020c5=Object['defineProperty'],_0x96fd49=Object[_0x3abdb7(0x13d)],_0x5af732=(_0x766171,_0x21daf4,_0x48c1ee)=>_0x21daf4 in _0x766171?_0x4020c5(_0x766171,_0x21daf4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48c1ee}):_0x766171[_0x21daf4]=_0x48c1ee,_0x59de7c=(_0x12b4ce,_0x5d5ec2,_0x48e362,_0x499300)=>{var _0x4d753a=_0x3abdb7;for(var _0x31b768=_0x499300>0x1?void 0x0:_0x499300?_0x96fd49(_0x5d5ec2,_0x48e362):_0x5d5ec2,_0x576f1e=_0x12b4ce[_0x4d753a(0xac)]-0x1,_0x4fd68e;_0x576f1e>=0x0;_0x576f1e--)(_0x4fd68e=_0x12b4ce[_0x576f1e])&&(_0x31b768=_0x4fd68e(_0x31b768)||_0x31b768);return _0x31b768;},_0x24aa96=(_0xed7196,_0x51a7eb)=>(_0x3c7d8e,_0x190064)=>_0x51a7eb(_0x3c7d8e,_0x190064,_0xed7196),_0xa1a6be=(_0x2070d6,_0x157fe8,_0x1f1257)=>_0x5af732(_0x2070d6,typeof _0x157fe8!='symbol'?_0x157fe8+'':_0x157fe8,_0x1f1257);const _0x39dfae='UNIVER_LIVE_SHARE_PLUGIN';_0x1ad529[_0x3abdb7(0xad)]=class extends _0x68649f[_0x3abdb7(0x152)]{constructor(_0x1fca22=_0x2fd119,_0x2e0555,_0x4b8123){var _0xebe7f5=_0x3abdb7;super(),this['_config']=_0x1fca22,this['_injector']=_0x2e0555,this['_configService']=_0x4b8123;const {..._0x4db055}=_0x68649f['merge']({},_0x2fd119,this['_config']);this[_0xebe7f5(0xc2)][_0xebe7f5(0xf0)](_0x5a5348,_0x4db055);}[_0x3abdb7(0x91)](){var _0x29d28f=_0x3abdb7;_0x68649f[_0x29d28f(0x99)](this[_0x29d28f(0xde)],_0x68649f[_0x29d28f(0x15c)]([[_0x262dcf],[_0x1ad529[_0x29d28f(0xdd)]],[_0x3b0a36],[_0x1ad529[_0x29d28f(0x8d)]]],this[_0x29d28f(0xaf)][_0x29d28f(0xf6)])),_0x68649f[_0x29d28f(0xc7)](this[_0x29d28f(0xde)],[[_0x3b0a36]]);}[_0x3abdb7(0xa5)](){var _0x4be9f1=_0x3abdb7;_0x68649f[_0x4be9f1(0xc7)](this[_0x4be9f1(0xde)],[[_0x1ad529[_0x4be9f1(0x8d)]]]);}},_0xa1a6be(_0x1ad529[_0x3abdb7(0xad)],_0x3abdb7(0x147),_0x68649f['UniverInstanceType'][_0x3abdb7(0x110)]),_0xa1a6be(_0x1ad529[_0x3abdb7(0xad)],'pluginName',_0x39dfae),_0x1ad529[_0x3abdb7(0xad)]=_0x59de7c([_0x68649f[_0x3abdb7(0x14c)](_0x86777e[_0x3abdb7(0x8c)]),_0x24aa96(0x1,_0x68649f[_0x3abdb7(0xdf)](_0x68649f[_0x3abdb7(0x12b)])),_0x24aa96(0x2,_0x68649f[_0x3abdb7(0xf7)])],_0x1ad529['UniverLiveSharePlugin']),_0x1ad529[_0x3abdb7(0x82)]=_0x19d771,_0x1ad529[_0x3abdb7(0x97)]=_0x262dcf,_0x1ad529[_0x3abdb7(0xb7)]=_0x5587fe,Object[_0x3abdb7(0xa7)](_0x1ad529,Symbol['toStringTag'],{'value':'Module'});}));function _0x551c(_0x32ec8e,_0x7ec9e4){var _0x2e9b76=_0x2e9b();return _0x551c=function(_0x551ce8,_0x474b5d){_0x551ce8=_0x551ce8-0x82;var _0x1cec10=_0x2e9b76[_0x551ce8];return _0x1cec10;},_0x551c(_0x32ec8e,_0x7ec9e4);}function _0x2e9b(){var _0x528ad1=['has','idSuffix','1ZSPfBo','Start','toString','mutations','FOLLOWING','idle','jsxs','IUIPartsService','_init','throttleTime','ONLINE','useObservable','851908Cfpvkz','UniverUi','getValue','Button','LiveShareController','_injector','Inject','jsx','@univerjs/design','live-share-icon','from','_commandService','_stopFollowing','_startFollowing','rxjs/operators','LIVESHARE_TERMINATE','executeCommand','offline','react','onCommandExecuted','You\x27are\x20offline.','_uiPartsService','Disposable','setConfig','@univerjs-pro/collaboration-client','_status$','UniverIcon','div','registerSharedOperation','override','IConfigService','params','_commandDisposable','complete','_reporters','_status','takeUntil','indexOf','@univerjs/core','getInitialStates','Stop\x20following','includes','memberID','unitId','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','function','882531TTKlYB','next','propertyIsEnumerable','get','OFFLINE','OPERATION','LIVESHARE_NEW_HOST','concat','trim','UNIVER_UNKNOWN','colorChannel1','_handleOffline','5466696dXHJVM','unsubscribe','_mountLiveShare','call','PRESENTING','requireSession','RxDisposable','data','Start\x20following','dispose','UniverCore','4237114nEZwnK','status$','3171186zblydC','following','subscribe','BuiltInUIPart','@univerjs/sheets-ui','presenting','reverse','forwardRef','Subject','_handleTerminate','React','Injector','string','extend','You\x27re\x20presenting\x20the\x20document','apply','evenodd','@univerjs-pro/collaboration','parse','stopFollowing','parseProtocolChangeset','722218FNMXiW','event$','_liveShareService','toDisposable','map','Stop\x20presenting','_handleNewChangeSets','asObservable','getOwnPropertyDescriptor','_collabSession','_handleOnline','registerComponent','_fetchOperations','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','substring','not-following','path','type','add','1em','defIds','react/jsx-runtime','DependentOn','UniverDesign','getMemberID','live-share.config','_startLiveShareCoordinator','InsertSheetMutation','Plugin','symbol','IDLE','UniverProCollaborationClient','stopPresenting','_sharedOperations','sheet','SetScrollOperation','amd','IUniverInstanceService','mergeOverrideWithDependencies','end','getConfig','icon','tryStartPresenting','use','univer-size-4','LIVESHARE_FETCH_OPERATIONS','rxjs','_collabSessionService','shouldShareOperation','NOT_FOLLOWING','forEach','@univerjs/sheets','UniverInstanceType','object','getLiveShareCoordinator','sessionStatus$','_univerInstanceService','LiveShare','attrs','dispose$','init','0\x200\x2017\x2017','LIVESHARE_REQUEST_HOST','createElement','exports','Present\x20this\x20document','univer-w-full\x20univer-mb-3\x20univer-text-sm','UniverCollaborationClientPlugin','DesktopLiveShareController','operations','pipe','none','onStarting','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','children','className','_stopPresenting','36mUnZqi','LiveShareService','currentColor','registerDependencies','presenter','hasOwnProperty','useDependency','fill','useEffect','UniverSheets','delete','send','then','_entities','displayName','onRendered','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','defineProperty','xlink:href','mask','CollaborationEvent','replace','length','UniverLiveSharePlugin','disposeWithMe','_config','SAME_OPERATION_SHARE_INTERVAL','SetWorksheetActiveOperation','useRef','tag','assign','UniverSheetsUi','Fragment','LiveShareStatus','_startPresenting','url(#$1','set','entries','getUnitId','UNIVER_SHEET','stringify','button','_unitID','LiveShareCoordinator','_configService','_handleNewHost','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','376955AoHwNs','CommandType','touchDependencies','_beIdle','current','@univerjs/ui'];_0x2e9b=function(){return _0x528ad1;};return _0x2e9b();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.0-nightly.202506021607",
3
+ "version": "0.8.0-nightly.202506041607",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,22 +47,22 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration": "0.8.0-nightly.202506021607",
51
- "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506021607",
52
- "@univerjs/design": "0.8.0-nightly.202506021607",
53
- "@univerjs/sheets": "0.8.0-nightly.202506021607",
54
- "@univerjs/core": "0.8.0-nightly.202506021607",
55
- "@univerjs/ui": "0.8.0-nightly.202506021607",
56
- "@univerjs/sheets-ui": "0.8.0-nightly.202506021607"
50
+ "@univerjs-pro/collaboration": "0.8.0-nightly.202506041607",
51
+ "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506041607",
52
+ "@univerjs/design": "0.8.0-nightly.202506041607",
53
+ "@univerjs/sheets": "0.8.0-nightly.202506041607",
54
+ "@univerjs/core": "0.8.0-nightly.202506041607",
55
+ "@univerjs/ui": "0.8.0-nightly.202506041607",
56
+ "@univerjs/sheets-ui": "0.8.0-nightly.202506041607"
57
57
  },
58
58
  "devDependencies": {
59
- "postcss": "^8.5.3",
59
+ "postcss": "^8.5.4",
60
60
  "react": "18.3.1",
61
61
  "rxjs": "7.8.2",
62
62
  "tailwindcss": "^3.4.17",
63
63
  "typescript": "^5.8.3",
64
64
  "vite": "^6.3.5",
65
- "vitest": "^3.1.4",
65
+ "vitest": "^3.2.0",
66
66
  "@univerjs-infra/shared": "0.8.0-beta.1",
67
67
  "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },