@univerjs-pro/live-share 0.8.1-nightly.202506191607 → 0.8.1
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +12 -12
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x5bcf12=_0x3d7e;(function(_0x1162eb,_0x45203e){var _0x711d9a=_0x3d7e,_0x30cb27=_0x1162eb();while(!![]){try{var _0x26be92=parseInt(_0x711d9a(0xd7))/0x1+parseInt(_0x711d9a(0x119))/0x2+-parseInt(_0x711d9a(0xec))/0x3*(-parseInt(_0x711d9a(0x103))/0x4)+-parseInt(_0x711d9a(0x10c))/0x5+parseInt(_0x711d9a(0x13d))/0x6+-parseInt(_0x711d9a(0x173))/0x7+-parseInt(_0x711d9a(0x13b))/0x8;if(_0x26be92===_0x45203e)break;else _0x30cb27['push'](_0x30cb27['shift']());}catch(_0x5e9bc1){_0x30cb27['push'](_0x30cb27['shift']());}}}(_0x3d0b,0xb5aed));var U=Object['defineProperty'],F=(_0x254bf6,_0x17cb25,_0x1c3609)=>_0x17cb25 in _0x254bf6?U(_0x254bf6,_0x17cb25,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c3609}):_0x254bf6[_0x17cb25]=_0x1c3609,v=(_0x5c8495,_0x7d1ff8,_0xb04cf8)=>F(_0x5c8495,typeof _0x7d1ff8!=_0x5bcf12(0x13c)?_0x7d1ff8+'':_0x7d1ff8,_0xb04cf8);Object[_0x5bcf12(0x1b1)](exports,Symbol[_0x5bcf12(0x122)],{'value':_0x5bcf12(0x13f)});const m=require(_0x5bcf12(0x105)),o=require('@univerjs/core'),C=require(_0x5bcf12(0x1ad)),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require(_0x5bcf12(0x13a)),g=require(_0x5bcf12(0xd5)),f=require(_0x5bcf12(0xda)),_=require(_0x5bcf12(0x128)),D=require(_0x5bcf12(0xcc)),b=require(_0x5bcf12(0x169)),$='live-share.config',x={};class O extends o[_0x5bcf12(0x1ae)]{constructor(){super(...arguments),v(this,'_sharedOperations',new Set()),v(this,'_reporters',new Set());}[_0x5bcf12(0x118)](_0x2b384b){var _0x1a71f6=_0x5bcf12;return this[_0x1a71f6(0x110)][_0x1a71f6(0x10f)](_0x2b384b),o[_0x1a71f6(0x109)](()=>this[_0x1a71f6(0x110)][_0x1a71f6(0x12f)](_0x2b384b));}[_0x5bcf12(0x1a7)](_0x12ff7f){var _0x404ff3=_0x5bcf12;return this[_0x404ff3(0x19f)][_0x404ff3(0x10f)](_0x12ff7f),o['toDisposable'](()=>this['_reporters']['delete'](_0x12ff7f));}[_0x5bcf12(0x172)](_0xe8efd9){var _0x10b478=_0x5bcf12;return this[_0x10b478(0x110)]['has'](_0xe8efd9);}[_0x5bcf12(0xf3)](_0x5f2e40){var _0x33e357=_0x5bcf12;return Array[_0x33e357(0x11f)](this[_0x33e357(0x19f)])['map'](_0x593c34=>_0x593c34(_0x5f2e40));}}var H=Object[_0x5bcf12(0x117)],V=(_0x31581e,_0x38e58,_0x56c8ed,_0x57cc3e)=>{var _0x11c52d=_0x5bcf12;for(var _0x2139e0=_0x57cc3e>0x1?void 0x0:_0x57cc3e?H(_0x38e58,_0x56c8ed):_0x38e58,_0x182280=_0x31581e[_0x11c52d(0x195)]-0x1,_0x9f5cf4;_0x182280>=0x0;_0x182280--)(_0x9f5cf4=_0x31581e[_0x182280])&&(_0x2139e0=_0x9f5cf4(_0x2139e0)||_0x2139e0);return _0x2139e0;},k=(_0x40157d,_0x7b6ae4)=>(_0xf2c708,_0x3b4e2e)=>_0x7b6ae4(_0xf2c708,_0x3b4e2e,_0x40157d);let E=class extends o[_0x5bcf12(0x1ae)]{constructor(_0x5cbb29){var _0x19bade=_0x5bcf12;super(),this[_0x19bade(0xf2)]=_0x5cbb29,this[_0x19bade(0x12a)]();}[_0x5bcf12(0x12a)](){var _0x31a7cc=_0x5bcf12;[w[_0x31a7cc(0x15c)]['id'],w[_0x31a7cc(0xd0)]['id'],C[_0x31a7cc(0x112)]['id']]['forEach'](_0x170383=>{var _0x24651e=_0x31a7cc;this[_0x24651e(0x1a5)](this[_0x24651e(0xf2)][_0x24651e(0x118)](_0x170383));});}};E=V([k(0x0,o['Inject'](O))],E);function _0x3d7e(_0x28addc,_0x5e8808){var _0x3d0b0e=_0x3d0b();return _0x3d7e=function(_0x3d7e25,_0x1eb6ac){_0x3d7e25=_0x3d7e25-0xcc;var _0x20be86=_0x3d0b0e[_0x3d7e25];return _0x20be86;},_0x3d7e(_0x28addc,_0x5e8808);}var u=function(){var _0x166ba9=_0x5bcf12;return u=Object[_0x166ba9(0xf4)]||function(_0x43c4e5){var _0x3517fb=_0x166ba9;for(var _0x3db4e5,_0x2744aa=0x1,_0x200ce4=arguments[_0x3517fb(0x195)];_0x2744aa<_0x200ce4;_0x2744aa++){_0x3db4e5=arguments[_0x2744aa];for(var _0x4ba61f in _0x3db4e5)Object[_0x3517fb(0x181)][_0x3517fb(0x150)][_0x3517fb(0xe6)](_0x3db4e5,_0x4ba61f)&&(_0x43c4e5[_0x4ba61f]=_0x3db4e5[_0x4ba61f]);}return _0x43c4e5;},u[_0x166ba9(0x124)](this,arguments);},M=function(_0x2be84d,_0xdb3eb4){var _0x20ea3d=_0x5bcf12,_0x49c7d7={};for(var _0x4e4e10 in _0x2be84d)Object['prototype']['hasOwnProperty'][_0x20ea3d(0xe6)](_0x2be84d,_0x4e4e10)&&_0xdb3eb4['indexOf'](_0x4e4e10)<0x0&&(_0x49c7d7[_0x4e4e10]=_0x2be84d[_0x4e4e10]);if(_0x2be84d!=null&&typeof Object[_0x20ea3d(0xcf)]==_0x20ea3d(0x11c)){for(var _0x1e413d=0x0,_0x4e4e10=Object[_0x20ea3d(0xcf)](_0x2be84d);_0x1e413d<_0x4e4e10[_0x20ea3d(0x195)];_0x1e413d++)_0xdb3eb4[_0x20ea3d(0x102)](_0x4e4e10[_0x1e413d])<0x0&&Object[_0x20ea3d(0x181)][_0x20ea3d(0x167)][_0x20ea3d(0xe6)](_0x2be84d,_0x4e4e10[_0x1e413d])&&(_0x49c7d7[_0x4e4e10[_0x1e413d]]=_0x2be84d[_0x4e4e10[_0x1e413d]]);}return _0x49c7d7;},j=f['forwardRef'](function(_0x3d9b6f,_0x138573){var _0x407d06=_0x5bcf12,_0x2a011e=_0x3d9b6f[_0x407d06(0x163)],_0x95f899=_0x3d9b6f['id'],_0x1cb342=_0x3d9b6f[_0x407d06(0xe7)],_0xb891e0=_0x3d9b6f[_0x407d06(0x187)],_0x5acc05=M(_0x3d9b6f,[_0x407d06(0x163),'id','className','extend']),_0x31ac26=_0x407d06(0x182)['concat'](_0x95f899,'\x20')[_0x407d06(0x18c)](_0x1cb342||'')['trim'](),_0x4c48fe=f[_0x407d06(0x10e)]('_'[_0x407d06(0x18c)](G()));return y(_0x2a011e,''['concat'](_0x95f899),{'defIds':_0x2a011e['defIds'],'idSuffix':_0x4c48fe['current']},u({'ref':_0x138573,'className':_0x31ac26},_0x5acc05),_0xb891e0);});function y(_0x1eda89,_0x8b0606,_0x381b1d,_0x154402,_0x1d0180){var _0x57678a=_0x5bcf12;return f[_0x57678a(0x133)](_0x1eda89['tag'],u(u({'key':_0x8b0606},q(_0x1eda89,_0x381b1d,_0x1d0180)),_0x154402),(W(_0x1eda89,_0x381b1d)['children']||[])['map'](function(_0x3fbafa,_0x428865){var _0x4b6c21=_0x57678a;return y(_0x3fbafa,''[_0x4b6c21(0x18c)](_0x8b0606,'-')[_0x4b6c21(0x18c)](_0x1eda89['tag'],'-')['concat'](_0x428865),_0x381b1d,void 0x0,_0x1d0180);}));}function q(_0x8393e2,_0x296048,_0x430bb1){var _0x5265de=_0x5bcf12,_0x2801de=u({},_0x8393e2[_0x5265de(0x164)]);_0x430bb1!=null&&_0x430bb1[_0x5265de(0xe8)]&&_0x2801de[_0x5265de(0x142)]===_0x5265de(0xe8)&&(_0x2801de['fill']=_0x430bb1[_0x5265de(0xe8)]),_0x8393e2['tag']===_0x5265de(0x134)&&_0x2801de['id']&&(_0x2801de['id']=_0x2801de['id']+_0x296048[_0x5265de(0xf7)]),Object[_0x5265de(0x193)](_0x2801de)[_0x5265de(0xfd)](function(_0x1f989e){var _0x357a95=_0x5265de,_0x1a90fd=_0x1f989e[0x0],_0x8ae0c8=_0x1f989e[0x1];_0x1a90fd===_0x357a95(0x134)&&typeof _0x8ae0c8=='string'&&(_0x2801de[_0x1a90fd]=_0x8ae0c8[_0x357a95(0x185)](/url\(#(.*)\)/,_0x357a95(0x162)[_0x357a95(0x18c)](_0x296048[_0x357a95(0xf7)],')')));});var _0x4a399f=_0x296048[_0x5265de(0xe2)];return!_0x4a399f||_0x4a399f[_0x5265de(0x195)]===0x0||(_0x8393e2['tag']===_0x5265de(0xf8)&&_0x2801de['xlink:href']&&(_0x2801de[_0x5265de(0x136)]=_0x2801de[_0x5265de(0x136)]+_0x296048[_0x5265de(0xf7)]),Object[_0x5265de(0x193)](_0x2801de)['forEach'](function(_0x5d426a){var _0x51c0c9=_0x5265de,_0x4502c7=_0x5d426a[0x0],_0x4db3be=_0x5d426a[0x1];typeof _0x4db3be==_0x51c0c9(0xed)&&(_0x2801de[_0x4502c7]=_0x4db3be['replace'](/url\(#(.*)\)/,_0x51c0c9(0x162)[_0x51c0c9(0x18c)](_0x296048[_0x51c0c9(0xf7)],')')));})),_0x2801de;}function W(_0x13c8a8,_0x12dfff){var _0x114840=_0x5bcf12,_0x4ca85c,_0x5701fa=_0x12dfff['defIds'];return!_0x5701fa||_0x5701fa[_0x114840(0x195)]===0x0?_0x13c8a8:_0x13c8a8[_0x114840(0xd1)]===_0x114840(0x1a0)&&(!((_0x4ca85c=_0x13c8a8[_0x114840(0x166)])===null||_0x4ca85c===void 0x0)&&_0x4ca85c['length'])?u(u({},_0x13c8a8),{'children':_0x13c8a8[_0x114840(0x166)][_0x114840(0x16e)](function(_0x34fe6a){var _0x394be6=_0x114840;return typeof _0x34fe6a[_0x394be6(0x164)]['id']==_0x394be6(0xed)&&_0x5701fa&&_0x5701fa['includes'](_0x34fe6a['attrs']['id'])?u(u({},_0x34fe6a),{'attrs':u(u({},_0x34fe6a[_0x394be6(0x164)]),{'id':_0x34fe6a['attrs']['id']+_0x12dfff[_0x394be6(0xf7)]})}):_0x34fe6a;})}):_0x13c8a8;}function G(){var _0x731069=_0x5bcf12;return Math['random']()[_0x731069(0x189)](0x24)[_0x731069(0x121)](0x2,0x8);}j[_0x5bcf12(0x1a4)]=_0x5bcf12(0x196);var B={'tag':_0x5bcf12(0x127),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x5bcf12(0x15e),'height':_0x5bcf12(0x15e)},'children':[{'tag':'path','attrs':{'fill':_0x5bcf12(0x139),'d':_0x5bcf12(0x1ab)}},{'tag':_0x5bcf12(0x148),'attrs':{'fill':_0x5bcf12(0x139),'d':_0x5bcf12(0x16b),'fillRule':_0x5bcf12(0x1aa),'clipRule':'evenodd'}}]},P=f[_0x5bcf12(0x135)](function(_0x4e6b1c,_0x101943){var _0x259f6e=_0x5bcf12;return f['createElement'](j,Object['assign']({},_0x4e6b1c,{'id':_0x259f6e(0x18f),'ref':_0x101943,'icon':B}));});P[_0x5bcf12(0x1a4)]='LiveShareIcon';var Y=Object[_0x5bcf12(0x117)],R=(_0x3052c8,_0x453129,_0x410752,_0x20030d)=>{var _0x565cf4=_0x5bcf12;for(var _0x1ae8ca=_0x20030d>0x1?void 0x0:_0x20030d?Y(_0x453129,_0x410752):_0x453129,_0x509f0f=_0x3052c8[_0x565cf4(0x195)]-0x1,_0x2f9b05;_0x509f0f>=0x0;_0x509f0f--)(_0x2f9b05=_0x3052c8[_0x509f0f])&&(_0x1ae8ca=_0x2f9b05(_0x1ae8ca)||_0x1ae8ca);return _0x1ae8ca;},S=(_0x5b4fa7,_0x43b364)=>(_0x5220a9,_0x2a91ec)=>_0x43b364(_0x5220a9,_0x2a91ec,_0x5b4fa7);exports[_0x5bcf12(0x174)]=class extends o[_0x5bcf12(0x107)]{constructor(_0x5b3062,_0x3cf344,_0x2e1301){var _0x4ed229=_0x5bcf12;super(),v(this,'_entities',new Map()),(this[_0x4ed229(0x11b)]=_0x5b3062,this[_0x4ed229(0x1a8)]=_0x3cf344,this[_0x4ed229(0xe5)]=_0x2e1301,this['_init']());}async[_0x5bcf12(0x1b4)](_0x29a5b0){var _0x368054=_0x5bcf12;return this['_entities'][_0x368054(0xcd)](_0x29a5b0)||await this['_startLiveShareCoordinator'](_0x29a5b0),this[_0x368054(0x15d)][_0x368054(0x1a6)](_0x29a5b0);}[_0x5bcf12(0x12a)](){var _0x3eff68=_0x5bcf12;this[_0x3eff68(0x11b)][_0x3eff68(0x108)](o[_0x3eff68(0x17a)]['UNIVER_SHEET'])[_0x3eff68(0x19c)](b[_0x3eff68(0x141)](this['dispose$']))[_0x3eff68(0x17e)](async _0x25f7b1=>{var _0x138e35=_0x3eff68;const _0x8fced3=_0x25f7b1[_0x138e35(0x116)]();this['_entities'][_0x138e35(0xcd)](_0x8fced3)||this[_0x138e35(0x12d)](_0x8fced3);}),this[_0x3eff68(0x11b)][_0x3eff68(0xfb)](o['UniverInstanceType'][_0x3eff68(0x1b2)])[_0x3eff68(0x19c)](b[_0x3eff68(0x141)](this['dispose$']))[_0x3eff68(0x17e)](_0x115bec=>{var _0xb5a2b9=_0x3eff68;const _0xacbfeb=_0x115bec[_0xb5a2b9(0x116)](),_0x5146f1=this[_0xb5a2b9(0x15d)][_0xb5a2b9(0x1a6)](_0xacbfeb);_0x5146f1==null||_0x5146f1[_0xb5a2b9(0x18b)]();});}async[_0x5bcf12(0x12d)](_0x2f0b38){var _0x1cdf19=_0x5bcf12;const _0x2bcf28=await this[_0x1cdf19(0xe5)][_0x1cdf19(0x198)](_0x2f0b38),_0x549370=this[_0x1cdf19(0x1a8)][_0x1cdf19(0x151)](exports['LiveShareCoordinator'],_0x2f0b38,_0x2bcf28);return _0x549370['init'](),this[_0x1cdf19(0x15d)][_0x1cdf19(0x153)](_0x2f0b38,_0x549370),_0x549370;}},exports['LiveShareController']=R([S(0x0,o[_0x5bcf12(0x137)]),S(0x1,o['Inject'](o[_0x5bcf12(0xee)])),S(0x2,o[_0x5bcf12(0xe1)](m['CollaborationSessionService']))],exports[_0x5bcf12(0x174)]);var h=(_0x488d4f=>(_0x488d4f['OFFLINE']=_0x5bcf12(0xd8),_0x488d4f[_0x5bcf12(0x147)]=_0x5bcf12(0x100),_0x488d4f[_0x5bcf12(0x101)]=_0x5bcf12(0xd9),_0x488d4f[_0x5bcf12(0xde)]=_0x5bcf12(0x17d),_0x488d4f[_0x5bcf12(0x115)]=_0x5bcf12(0x159),_0x488d4f))(h||{});const Z=_0x5bcf12(0x168),J=0xc8;exports[_0x5bcf12(0x171)]=class extends o[_0x5bcf12(0x107)]{constructor(_0x163fca,_0x5e4216,_0x19c17c,_0x4d21f1,_0x392baf){var _0x228f7a=_0x5bcf12;super(),v(this,'_status$',new D[(_0x228f7a(0x19a))]('idle')),v(this,_0x228f7a(0x192),this[_0x228f7a(0x176)][_0x228f7a(0x183)]()),v(this,'_init',!0x1),v(this,_0x228f7a(0x1ac),null),v(this,'_presenter',null),(this[_0x228f7a(0x146)]=_0x163fca,this[_0x228f7a(0x149)]=_0x5e4216,this[_0x228f7a(0x132)]=_0x19c17c,this[_0x228f7a(0xf2)]=_0x4d21f1,this[_0x228f7a(0xeb)]=_0x392baf);}get['_status'](){var _0x240f47=_0x5bcf12;return this['_status$'][_0x240f47(0x140)]();}['dispose'](){var _0x55574b=_0x5bcf12,_0xc37b2d;(_0xc37b2d=this[_0x55574b(0x1ac)])==null||_0xc37b2d['dispose'](),this[_0x55574b(0x176)][_0x55574b(0xf0)](_0x55574b(0x100)),this[_0x55574b(0x176)][_0x55574b(0x16c)]();}['init'](){var _0x36ed62=_0x5bcf12;this[_0x36ed62(0x12a)]||(this['_init']=!0x0,this[_0x36ed62(0x149)]['sessionStatus$'][_0x36ed62(0x19c)](b[_0x36ed62(0x141)](this[_0x36ed62(0x157)]))['subscribe'](_0x83740f=>{var _0x26592f=_0x36ed62;switch(_0x83740f){case m[_0x26592f(0x154)][_0x26592f(0x16f)]:this[_0x26592f(0x113)]();break;case m['SessionStatus']['ONLINE']:this[_0x26592f(0x1a3)]();break;}}),this['_collabSession']['event$'][_0x36ed62(0x19c)](b[_0x36ed62(0x141)](this[_0x36ed62(0x157)]))[_0x36ed62(0x17e)](_0x18db00=>{var _0x216ec5=_0x36ed62;const {eventID:_0x5f377b}=_0x18db00;switch(_0x5f377b){case _[_0x216ec5(0x14c)]['LIVESHARE_NEW_HOST']:this[_0x216ec5(0x12c)](_0x18db00);break;case _[_0x216ec5(0x14c)]['LIVESHARE_OPERATION']:this[_0x216ec5(0xe3)](_0x18db00);break;case _[_0x216ec5(0x14c)]['LIVESHARE_TERMINATE']:this[_0x216ec5(0x144)]();break;case _[_0x216ec5(0x14c)][_0x216ec5(0x114)]:this['_handleNewChangeSets'](_0x18db00);break;}}));}[_0x5bcf12(0x130)](){var _0x2648cc=_0x5bcf12;this[_0x2648cc(0x149)][_0x2648cc(0x104)]({'eventID':_[_0x2648cc(0x14c)][_0x2648cc(0x1b3)],'data':{'unitID':this['_unitID'],'userID':this[_0x2648cc(0x149)][_0x2648cc(0x18a)]()}},this[_0x2648cc(0x146)]);}['stopPresenting'](){var _0x4b0b4e=_0x5bcf12;this['_status']===_0x4b0b4e(0x159)&&(this['_status$']['next'](_0x4b0b4e(0x100)),this[_0x4b0b4e(0x149)][_0x4b0b4e(0x104)]({'eventID':_['CollaborationEvent'][_0x4b0b4e(0x179)],'data':{'unitID':this[_0x4b0b4e(0x146)]}},this[_0x4b0b4e(0x146)]));}[_0x5bcf12(0xf1)](){var _0x128b55=_0x5bcf12;this[_0x128b55(0x199)]===_0x128b55(0x17d)&&(this['_status$'][_0x128b55(0xf0)]('following'),this[_0x128b55(0x14d)]());}['stopFollowing'](){var _0xf900dc=_0x5bcf12;this[_0xf900dc(0x199)]===_0xf900dc(0xd9)&&this[_0xf900dc(0x158)]();}[_0x5bcf12(0x12c)](_0x30d4b5){var _0x425b2b=_0x5bcf12;const {presenter:_0x2cff8a}=_0x30d4b5[_0x425b2b(0xe4)],_0x59fd04=this[_0x425b2b(0x149)][_0x425b2b(0x18a)]();this[_0x425b2b(0xce)]=_0x2cff8a,_0x2cff8a===_0x59fd04?(this[_0x425b2b(0x158)](),this['_startPresenting']()):this[_0x425b2b(0x199)]!==_0x425b2b(0x17d)&&(this[_0x425b2b(0x1a9)](),this[_0x425b2b(0x14d)]());}[_0x5bcf12(0x11d)](){var _0x3bbdaa=_0x5bcf12;const _0x2791e5={'eventID':_[_0x3bbdaa(0x14c)][_0x3bbdaa(0x19e)]};this[_0x3bbdaa(0x149)][_0x3bbdaa(0x104)](_0x2791e5,this['_unitID']);}[_0x5bcf12(0x144)](){var _0x2dbf2c=_0x5bcf12;this[_0x2dbf2c(0xce)]=null,this[_0x2dbf2c(0x199)]!==_0x2dbf2c(0x159)&&this[_0x2dbf2c(0x188)]();}[_0x5bcf12(0x106)](_0x3e6a79){var _0x441f38=_0x5bcf12;if(this[_0x441f38(0x199)]===_0x441f38(0xd9)&&this[_0x441f38(0xce)]===_0x3e6a79[_0x441f38(0xe4)]['memberID']){const _0xfba3cf=_[_0x441f38(0x126)](_0x3e6a79['data'])[_0x441f38(0xdf)]['reverse']()[_0x441f38(0x12e)](_0x330bb8=>_0x330bb8['id']===C[_0x441f38(0x138)]['id']);if(_0xfba3cf){const _0x5971f9=_0xfba3cf[_0x441f38(0x18e)][_0x441f38(0xdb)],_0x57e88a=_0xfba3cf[_0x441f38(0x18e)][_0x441f38(0xfe)]['id'];setTimeout(()=>{var _0xb71c61=_0x441f38;this['_commandService'][_0xb71c61(0xd6)](C[_0xb71c61(0x112)]['id'],{'unitId':_0x5971f9,'subUnitId':_0x57e88a},{'fromCollab':!0x0});});}}}[_0x5bcf12(0xd3)](){var _0x532574=_0x5bcf12;this['_status$'][_0x532574(0xf0)](_0x532574(0x159));const _0x166a9d=new Map(),_0x55b8f4=this[_0x532574(0x1ac)]=new o[(_0x532574(0xd2))]();_0x55b8f4['add'](o[_0x532574(0x109)](()=>{var _0x2a1c0d=_0x532574;_0x166a9d['forEach'](_0x5bd090=>_0x5bd090[_0x2a1c0d(0x16c)]()),_0x166a9d[_0x2a1c0d(0x165)]();})),_0x55b8f4['add'](this[_0x532574(0xeb)][_0x532574(0x123)](_0x2b38bc=>{var _0x3dfc66=_0x532574,_0x5020a9;if(_0x2b38bc['type']!==o[_0x3dfc66(0x1a1)]['OPERATION']||!this[_0x3dfc66(0xf2)]['shouldShareOperation'](_0x2b38bc['id']))return;const {id:_0x1ffa56}=_0x2b38bc;let _0x4c9143;_0x166a9d['has'](_0x1ffa56)?_0x4c9143=_0x166a9d[_0x3dfc66(0x1a6)](_0x1ffa56):(_0x4c9143=new D[(_0x3dfc66(0xfa))](),_0x166a9d['set'](_0x1ffa56,_0x4c9143),_0x4c9143[_0x3dfc66(0x19c)](b['throttleTime']((_0x5020a9=this[_0x3dfc66(0x132)][_0x3dfc66(0x14e)](Z))!=null?_0x5020a9:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3dfc66(0x17e)](_0x3bdf99=>{var _0x2b4bae=_0x3dfc66;this[_0x2b4bae(0x149)]['send']({'eventID':_[_0x2b4bae(0x14c)][_0x2b4bae(0x156)],'data':{'unitID':this[_0x2b4bae(0x146)],'operations':{[_0x3bdf99['id']]:{'id':_0x3bdf99['id'],'params':JSON['stringify'](_0x3bdf99[_0x2b4bae(0x18e)])}}}},this['_unitID']);})),_0x4c9143[_0x3dfc66(0xf0)](_0x2b38bc);})),this[_0x532574(0xf2)]['getInitialStates'](this[_0x532574(0x146)])[_0x532574(0xfd)](_0x3204d6=>this[_0x532574(0x149)]['send']({'eventID':_[_0x532574(0x14c)][_0x532574(0x156)],'data':{'unitID':this[_0x532574(0x146)],'operations':{[_0x3204d6['id']]:{'id':_0x3204d6['id'],'params':JSON[_0x532574(0xe9)](_0x3204d6[_0x532574(0x18e)])}}}},this[_0x532574(0x146)]));}[_0x5bcf12(0x1a9)](){var _0x2c0bb0=_0x5bcf12,_0x2fb35c;this['_status$'][_0x2c0bb0(0xf0)](_0x2c0bb0(0x100)),(_0x2fb35c=this[_0x2c0bb0(0x1ac)])==null||_0x2fb35c['dispose'](),this[_0x2c0bb0(0x1ac)]=null;}[_0x5bcf12(0x14d)](){var _0x30f180=_0x5bcf12,_0x18bfde;(_0x18bfde=this[_0x30f180(0x1ac)])==null||_0x18bfde['dispose'](),this['_status$'][_0x30f180(0xf0)](_0x30f180(0xd9));}[_0x5bcf12(0x188)](){var _0x1901aa=_0x5bcf12,_0x90bec0;this[_0x1901aa(0x176)][_0x1901aa(0xf0)]('idle'),(_0x90bec0=this[_0x1901aa(0x1ac)])==null||_0x90bec0['dispose'](),this[_0x1901aa(0x1ac)]=null;}['_stopFollowing'](){var _0x526960=_0x5bcf12,_0x3180b1;this['_status$'][_0x526960(0xf0)](_0x526960(0x17d)),(_0x3180b1=this[_0x526960(0x1ac)])==null||_0x3180b1[_0x526960(0x18b)]();}['_handleOperation'](_0x5be400){var _0x4434b4=_0x5bcf12;if([_0x4434b4(0x159),'not-following',_0x4434b4(0xd8)][_0x4434b4(0x191)](this[_0x4434b4(0x199)])||!_0x5be400[_0x4434b4(0xe4)][_0x4434b4(0x16d)]||_0x5be400[_0x4434b4(0xe4)]['presenter']===this['_collabSession'][_0x4434b4(0x18a)]())return;this['_status']===_0x4434b4(0x100)&&this[_0x4434b4(0x14d)]();const _0x4cbaa7=_0x5be400[_0x4434b4(0xe4)][_0x4434b4(0x10d)];Object[_0x4434b4(0x111)](_0x4cbaa7)[_0x4434b4(0xfd)](_0x2d57c9=>{var _0x5966d1=_0x4434b4;this[_0x5966d1(0xeb)][_0x5966d1(0xd6)](_0x2d57c9['id'],_0x2d57c9['params']?JSON['parse'](_0x2d57c9['params']):null,{'fromCollab':!0x0});});}[_0x5bcf12(0x113)](){var _0x285e13=_0x5bcf12,_0x494719;this[_0x285e13(0x176)][_0x285e13(0xf0)](_0x285e13(0xd8)),(_0x494719=this['_commandDisposable'])==null||_0x494719[_0x285e13(0x18b)]();}['_handleOnline'](){var _0xa4b749=_0x5bcf12;this['_status$'][_0xa4b749(0xf0)](_0xa4b749(0x100)),this['_fetchOperations']();}},exports[_0x5bcf12(0x171)]=R([S(0x2,o[_0x5bcf12(0xfc)]),S(0x3,o[_0x5bcf12(0xe1)](O)),S(0x4,o[_0x5bcf12(0x19b)])],exports[_0x5bcf12(0x171)]);function A(){var _0x226a17=_0x5bcf12;const _0x267adf=p[_0x226a17(0x145)](exports[_0x226a17(0x174)]),_0x214170=p[_0x226a17(0x145)](o['IUniverInstanceService']),_0x4eeeb2=p[_0x226a17(0xdc)](()=>_0x214170[_0x226a17(0x120)](o[_0x226a17(0x17a)][_0x226a17(0x1b2)]),void 0x0,!0x1,[]),[_0x3105df,_0x1b8391]=f['useState'](null),[_0x35a8f2,_0x46b90d]=f[_0x226a17(0x177)](h[_0x226a17(0x147)]),_0x3bd0c2=f['useRef'](null);return f[_0x226a17(0xf5)](()=>(_0x4eeeb2&&_0x267adf[_0x226a17(0x1b4)](_0x4eeeb2[_0x226a17(0x116)]())[_0x226a17(0x125)](_0x268a60=>{var _0x1ab6f7=_0x226a17;_0x1b8391(_0x268a60),_0x3bd0c2[_0x1ab6f7(0x129)]=_0x268a60[_0x1ab6f7(0x192)][_0x1ab6f7(0x17e)](_0x352e6f=>{_0x46b90d(_0x352e6f);});}),()=>{var _0x5e9037=_0x226a17,_0x504823;(_0x504823=_0x3bd0c2[_0x5e9037(0x129)])==null||_0x504823[_0x5e9037(0x11e)](),_0x3bd0c2[_0x5e9037(0x129)]=null;}),[_0x4eeeb2,_0x267adf]),_0x3105df?l[_0x226a17(0x14b)](g['Dropdown'],{'align':_0x226a17(0x152),'disabled':_0x35a8f2===h['OFFLINE'],'className':_0x226a17(0x11a),'overlay':l['jsx'](K,{'status':_0x35a8f2,'coordinator':_0x3105df}),'children':l['jsx']('button',{'className':g['clsx'](_0x226a17(0x14a),{'univer-cursor-not-allowed':_0x35a8f2===h[_0x226a17(0x16f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x35a8f2!==h[_0x226a17(0x16f)]}),'type':_0x226a17(0x197),'children':l[_0x226a17(0x14b)](P,{'className':'univer-size-4'})})}):null;}function K(_0x18f05e){var _0x4d2c8a=_0x5bcf12;const {status:_0x56df55,coordinator:_0x50897c}=_0x18f05e;switch(_0x56df55){case h[_0x4d2c8a(0x147)]:return l[_0x4d2c8a(0x14b)](z,{'coordinator':_0x50897c});case h[_0x4d2c8a(0x101)]:return l[_0x4d2c8a(0x14b)](Q,{'coordinator':_0x50897c});case h[_0x4d2c8a(0xde)]:return l[_0x4d2c8a(0x14b)](X,{'coordinator':_0x50897c});case h[_0x4d2c8a(0x16f)]:return l[_0x4d2c8a(0x14b)](te,{});case h[_0x4d2c8a(0x115)]:return l[_0x4d2c8a(0x14b)](ee,{'coordinator':_0x50897c});default:return null;}}function _0x3d0b(){var _0x14b554=['SAME_OPERATION_SHARE_INTERVAL','rxjs/operators','setConfig','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','complete','presenter','map','OFFLINE','You\x27re\x20following\x20the\x20presenter','LiveShareCoordinator','shouldShareOperation','7165914RuZZop','LiveShareController','Plugin','_status$','useState','default','LIVESHARE_TERMINATE','UniverInstanceType','univer-mb-3\x20univer-w-full\x20univer-text-sm','onRendered','not-following','subscribe','stopFollowing','Button','prototype','univerjs-icon\x20univerjs-icon-','asObservable','Stop\x20following','replace','_uiPartsService','extend','_beIdle','toString','getMemberID','dispose','concat','text','params','live-share-icon','registerComponent','includes','status$','entries','IUIPartsService','length','UniverIcon','button','requireSession','_status','BehaviorSubject','ICommandService','pipe','DesktopLiveShareController','LIVESHARE_FETCH_OPERATIONS','_reporters','defs','CommandType','BuiltInUIPart','_handleOnline','displayName','disposeWithMe','get','registerInitialStateReporter','_injector','_stopPresenting','evenodd','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','_commandDisposable','@univerjs/sheets','Disposable','jsxs','connectInjector','defineProperty','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','getLiveShareCoordinator','rxjs','has','_presenter','getOwnPropertySymbols','SetScrollOperation','tag','DisposableCollection','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/design','executeCommand','776250MYgrOi','offline','following','react','unitId','useObservable','UniverCollaborationClientPlugin','NOT_FOLLOWING','mutations','You\x27are\x20offline.','Inject','defIds','_handleOperation','data','_collabSessionService','call','className','colorChannel1','stringify','You\x27re\x20presenting\x20the\x20document','_commandService','1077OXSypO','string','Injector','touchDependencies','next','startFollowing','_liveShareService','getInitialStates','assign','useEffect','HEADER_MENU','idSuffix','use','registerDependencies','Subject','getTypeOfUnitDisposed$','IConfigService','forEach','sheet','Fragment','idle','FOLLOWING','indexOf','8180uzXErL','send','@univerjs-pro/collaboration-client','_handleNewChangeSets','RxDisposable','getTypeOfUnitAdded$','toDisposable','mergeOverrideWithDependencies','Start','4926795SZhuoE','operations','useRef','add','_sharedOperations','values','SetWorksheetActiveOperation','_handleOffline','NEW_CHANGESETS','PRESENTING','getUnitId','getOwnPropertyDescriptor','registerSharedOperation','2583488cfVRGY','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_univerInstanceService','function','_fetchOperations','unsubscribe','from','getCurrentTypeOfUnit$','substring','toStringTag','onCommandExecuted','apply','then','parseProtocolChangeset','svg','@univerjs-pro/collaboration','current','_init','UniverLiveSharePlugin','_handleNewHost','_startLiveShareCoordinator','find','delete','tryStartPresenting','type','_configService','createElement','mask','forwardRef','xlink:href','IUniverInstanceService','InsertSheetMutation','currentColor','react/jsx-runtime','1029464bVoOkd','symbol','478608wHpbAp','You\x27re\x20not\x20following\x20the\x20presenter','Module','getValue','takeUntil','fill','Start\x20following','_handleTerminate','useDependency','_unitID','IDLE','path','_collabSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','jsx','CollaborationEvent','_startFollowing','getConfig','merge','hasOwnProperty','createInstance','end','set','SessionStatus','_config','LIVESHARE_OPERATION','dispose$','_stopFollowing','presenting','stopPresenting','div','SetZoomRatioOperation','_entities','1em','Present\x20this\x20document','LiveShareService','pluginName','url(#$1','icon','attrs','clear','children','propertyIsEnumerable'];_0x3d0b=function(){return _0x14b554;};return _0x3d0b();}function z(_0x264336){var _0x439702=_0x5bcf12;const {coordinator:_0x2f9dc9}=_0x264336;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x439702(0x15b),{'className':_0x439702(0x17b),'children':_0x439702(0x15f)}),l[_0x439702(0x14b)](g['Button'],{'onClick':()=>_0x2f9dc9['tryStartPresenting'](),'children':_0x439702(0x10b)})]});}function Q(_0x5f554d){var _0x570067=_0x5bcf12;const {coordinator:_0x4acd3f}=_0x5f554d;return l[_0x570067(0x1af)](l[_0x570067(0xff)],{'children':[l[_0x570067(0x14b)](_0x570067(0x15b),{'className':_0x570067(0x17b),'children':_0x570067(0x170)}),l[_0x570067(0x14b)](g['Button'],{'onClick':()=>_0x4acd3f[_0x570067(0x17f)](),'children':_0x570067(0x184)})]});}function X(_0x464e41){var _0x38f8bb=_0x5bcf12;const {coordinator:_0x5e2c7b}=_0x464e41;return l[_0x38f8bb(0x1af)](l[_0x38f8bb(0xff)],{'children':[l['jsx'](_0x38f8bb(0x15b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x38f8bb(0x13e)}),l[_0x38f8bb(0x14b)](g[_0x38f8bb(0x180)],{'variant':_0x38f8bb(0x18d),'onClick':()=>_0x5e2c7b[_0x38f8bb(0xf1)](),'children':_0x38f8bb(0x143)})]});}function ee(_0x3f6aaa){var _0x3fb2c1=_0x5bcf12;const {coordinator:_0x286155}=_0x3f6aaa;return l[_0x3fb2c1(0x1af)](l[_0x3fb2c1(0xff)],{'children':[l[_0x3fb2c1(0x14b)](_0x3fb2c1(0x15b),{'className':_0x3fb2c1(0x17b),'children':_0x3fb2c1(0xea)}),l[_0x3fb2c1(0x14b)](g[_0x3fb2c1(0x180)],{'variant':_0x3fb2c1(0x178),'onClick':()=>_0x286155[_0x3fb2c1(0x15a)](),'children':'Stop\x20presenting'})]});}function te(){var _0x3b32de=_0x5bcf12;return l[_0x3b32de(0x14b)](l[_0x3b32de(0xff)],{'children':_0x3b32de(0xe0)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x1d3c7b,_0xb5d20e,_0x216cff,_0x5dc489)=>{var _0x85b67a=_0x5bcf12;for(var _0x1782ae=_0x5dc489>0x1?void 0x0:_0x5dc489?ie(_0xb5d20e,_0x216cff):_0xb5d20e,_0x2d7129=_0x1d3c7b[_0x85b67a(0x195)]-0x1,_0x5771ae;_0x2d7129>=0x0;_0x2d7129--)(_0x5771ae=_0x1d3c7b[_0x2d7129])&&(_0x1782ae=_0x5771ae(_0x1782ae)||_0x1782ae);return _0x1782ae;},L=(_0x294ee8,_0x4433b0)=>(_0x42092f,_0x57b8c0)=>_0x4433b0(_0x42092f,_0x57b8c0,_0x294ee8);exports[_0x5bcf12(0x19d)]=class extends o[_0x5bcf12(0x1ae)]{constructor(_0x512249,_0x43a814){var _0x351cd8=_0x5bcf12;super(),this[_0x351cd8(0x1a8)]=_0x512249,this[_0x351cd8(0x186)]=_0x43a814,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x11e2ec=_0x5bcf12;this[_0x11e2ec(0x1a5)](this[_0x11e2ec(0x186)][_0x11e2ec(0x190)](p[_0x11e2ec(0x1a2)][_0x11e2ec(0xf6)],()=>p[_0x11e2ec(0x1b0)](A,this[_0x11e2ec(0x1a8)])));}},exports[_0x5bcf12(0x19d)]=ne([L(0x0,o[_0x5bcf12(0xe1)](o[_0x5bcf12(0xee)])),L(0x1,p[_0x5bcf12(0x194)])],exports[_0x5bcf12(0x19d)]);var re=Object[_0x5bcf12(0x1b1)],se=Object[_0x5bcf12(0x117)],oe=(_0x1bdb2d,_0x24625a,_0x2b96c5)=>_0x24625a in _0x1bdb2d?re(_0x1bdb2d,_0x24625a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b96c5}):_0x1bdb2d[_0x24625a]=_0x2b96c5,ae=(_0x403e12,_0x38d19b,_0x190e0a,_0x3af89e)=>{for(var _0x47511d=_0x3af89e>0x1?void 0x0:_0x3af89e?se(_0x38d19b,_0x190e0a):_0x38d19b,_0x5adf5c=_0x403e12['length']-0x1,_0x157cce;_0x5adf5c>=0x0;_0x5adf5c--)(_0x157cce=_0x403e12[_0x5adf5c])&&(_0x47511d=_0x157cce(_0x47511d)||_0x47511d);return _0x47511d;},N=(_0xb08298,_0x381bdb)=>(_0x2d94d9,_0x1e5f17)=>_0x381bdb(_0x2d94d9,_0x1e5f17,_0xb08298),T=(_0x52cbad,_0xa43a46,_0x2cd775)=>oe(_0x52cbad,typeof _0xa43a46!='symbol'?_0xa43a46+'':_0xa43a46,_0x2cd775);const le=_0x5bcf12(0xd4);exports[_0x5bcf12(0x12b)]=class extends o[_0x5bcf12(0x175)]{constructor(_0x1cff11=x,_0x4a9caa,_0x460c76){var _0x31ed02=_0x5bcf12;super(),this[_0x31ed02(0x155)]=_0x1cff11,this['_injector']=_0x4a9caa,this[_0x31ed02(0x132)]=_0x460c76;const {..._0x215856}=o[_0x31ed02(0x14f)]({},x,this[_0x31ed02(0x155)]);this[_0x31ed02(0x132)][_0x31ed02(0x16a)]($,_0x215856);}['onStarting'](){var _0x907036=_0x5bcf12;o[_0x907036(0xf9)](this[_0x907036(0x1a8)],o[_0x907036(0x10a)]([[O],[exports[_0x907036(0x174)]],[E],[exports[_0x907036(0x19d)]]],this[_0x907036(0x155)]['override'])),o[_0x907036(0xef)](this[_0x907036(0x1a8)],[[E]]);}[_0x5bcf12(0x17c)](){var _0x46c6b9=_0x5bcf12;o[_0x46c6b9(0xef)](this[_0x46c6b9(0x1a8)],[[exports[_0x46c6b9(0x19d)]]]);}},T(exports[_0x5bcf12(0x12b)],_0x5bcf12(0x131),o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x5bcf12(0x12b)],_0x5bcf12(0x161),le),exports[_0x5bcf12(0x12b)]=ae([o['DependentOn'](m[_0x5bcf12(0xdd)]),N(0x1,o[_0x5bcf12(0xe1)](o[_0x5bcf12(0xee)])),N(0x2,o[_0x5bcf12(0xfc)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=A,exports[_0x5bcf12(0x160)]=O,exports['LiveShareStatus']=h;
|
|
1
|
+
'use strict';var _0x4006d2=_0x53a2;(function(_0x22f611,_0x1800cb){var _0x42eddc=_0x53a2,_0x4d4aeb=_0x22f611();while(!![]){try{var _0x4da0f0=parseInt(_0x42eddc(0x20f))/0x1+-parseInt(_0x42eddc(0x1e4))/0x2*(parseInt(_0x42eddc(0x209))/0x3)+-parseInt(_0x42eddc(0x2ba))/0x4*(-parseInt(_0x42eddc(0x2b0))/0x5)+-parseInt(_0x42eddc(0x1dd))/0x6*(-parseInt(_0x42eddc(0x2a2))/0x7)+-parseInt(_0x42eddc(0x2b9))/0x8*(parseInt(_0x42eddc(0x298))/0x9)+-parseInt(_0x42eddc(0x290))/0xa*(-parseInt(_0x42eddc(0x289))/0xb)+parseInt(_0x42eddc(0x297))/0xc;if(_0x4da0f0===_0x1800cb)break;else _0x4d4aeb['push'](_0x4d4aeb['shift']());}catch(_0x1f27d9){_0x4d4aeb['push'](_0x4d4aeb['shift']());}}}(_0x2bfb,0x8a3ba));var U=Object[_0x4006d2(0x232)],F=(_0x3ab20b,_0x178f08,_0x13b040)=>_0x178f08 in _0x3ab20b?U(_0x3ab20b,_0x178f08,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13b040}):_0x3ab20b[_0x178f08]=_0x13b040,v=(_0x45a695,_0x202143,_0x14ea2d)=>F(_0x45a695,typeof _0x202143!='symbol'?_0x202143+'':_0x202143,_0x14ea2d);Object['defineProperty'](exports,Symbol[_0x4006d2(0x257)],{'value':_0x4006d2(0x294)});const m=require(_0x4006d2(0x2a8)),o=require(_0x4006d2(0x229)),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require(_0x4006d2(0x241)),g=require(_0x4006d2(0x256)),f=require(_0x4006d2(0x1e0)),_=require(_0x4006d2(0x1f6)),D=require(_0x4006d2(0x234)),b=require(_0x4006d2(0x285)),$='live-share.config',x={};class O extends o[_0x4006d2(0x233)]{constructor(){var _0x42a5e2=_0x4006d2;super(...arguments),v(this,_0x42a5e2(0x1f8),new Set()),v(this,'_reporters',new Set());}[_0x4006d2(0x212)](_0x270a16){var _0x8539e4=_0x4006d2;return this[_0x8539e4(0x1f8)][_0x8539e4(0x2bc)](_0x270a16),o[_0x8539e4(0x24c)](()=>this[_0x8539e4(0x1f8)][_0x8539e4(0x261)](_0x270a16));}['registerInitialStateReporter'](_0x1ef1d3){var _0x55c6e7=_0x4006d2;return this[_0x55c6e7(0x2b3)]['add'](_0x1ef1d3),o[_0x55c6e7(0x24c)](()=>this[_0x55c6e7(0x2b3)][_0x55c6e7(0x261)](_0x1ef1d3));}[_0x4006d2(0x231)](_0x374888){var _0x570268=_0x4006d2;return this[_0x570268(0x1f8)][_0x570268(0x250)](_0x374888);}['getInitialStates'](_0x5af54e){var _0x5623d4=_0x4006d2;return Array['from'](this[_0x5623d4(0x2b3)])[_0x5623d4(0x267)](_0x45147a=>_0x45147a(_0x5af54e));}}var H=Object[_0x4006d2(0x299)],V=(_0x21d065,_0x15ab9a,_0x4696bf,_0x4e16a6)=>{var _0x21f6c0=_0x4006d2;for(var _0x439b26=_0x4e16a6>0x1?void 0x0:_0x4e16a6?H(_0x15ab9a,_0x4696bf):_0x15ab9a,_0x4661a2=_0x21d065[_0x21f6c0(0x205)]-0x1,_0x338c7e;_0x4661a2>=0x0;_0x4661a2--)(_0x338c7e=_0x21d065[_0x4661a2])&&(_0x439b26=_0x338c7e(_0x439b26)||_0x439b26);return _0x439b26;},k=(_0x38f89c,_0x1f5d02)=>(_0x8f3a3c,_0x1ae575)=>_0x1f5d02(_0x8f3a3c,_0x1ae575,_0x38f89c);let E=class extends o[_0x4006d2(0x233)]{constructor(_0x419e36){var _0x264684=_0x4006d2;super(),this[_0x264684(0x25e)]=_0x419e36,this[_0x264684(0x1ee)]();}[_0x4006d2(0x1ee)](){var _0x226f1c=_0x4006d2;[w[_0x226f1c(0x21e)]['id'],w['SetScrollOperation']['id'],C[_0x226f1c(0x251)]['id']][_0x226f1c(0x27f)](_0x2e3ddf=>{var _0x54a98e=_0x226f1c;this[_0x54a98e(0x2a3)](this[_0x54a98e(0x25e)][_0x54a98e(0x212)](_0x2e3ddf));});}};E=V([k(0x0,o[_0x4006d2(0x29f)](O))],E);var u=function(){var _0x303288=_0x4006d2;return u=Object[_0x303288(0x25a)]||function(_0x2d37ba){var _0x47e260=_0x303288;for(var _0x31c70b,_0x1b4f1f=0x1,_0x1f1678=arguments[_0x47e260(0x205)];_0x1b4f1f<_0x1f1678;_0x1b4f1f++){_0x31c70b=arguments[_0x1b4f1f];for(var _0x3f4543 in _0x31c70b)Object['prototype']['hasOwnProperty']['call'](_0x31c70b,_0x3f4543)&&(_0x2d37ba[_0x3f4543]=_0x31c70b[_0x3f4543]);}return _0x2d37ba;},u['apply'](this,arguments);},M=function(_0x19afe0,_0x3cc760){var _0x1fa2c7=_0x4006d2,_0x496a5c={};for(var _0x11de80 in _0x19afe0)Object[_0x1fa2c7(0x237)]['hasOwnProperty'][_0x1fa2c7(0x2a1)](_0x19afe0,_0x11de80)&&_0x3cc760[_0x1fa2c7(0x2b8)](_0x11de80)<0x0&&(_0x496a5c[_0x11de80]=_0x19afe0[_0x11de80]);if(_0x19afe0!=null&&typeof Object['getOwnPropertySymbols']==_0x1fa2c7(0x27b)){for(var _0xe1192d=0x0,_0x11de80=Object[_0x1fa2c7(0x21a)](_0x19afe0);_0xe1192d<_0x11de80[_0x1fa2c7(0x205)];_0xe1192d++)_0x3cc760['indexOf'](_0x11de80[_0xe1192d])<0x0&&Object['prototype'][_0x1fa2c7(0x2ac)][_0x1fa2c7(0x2a1)](_0x19afe0,_0x11de80[_0xe1192d])&&(_0x496a5c[_0x11de80[_0xe1192d]]=_0x19afe0[_0x11de80[_0xe1192d]]);}return _0x496a5c;},j=f[_0x4006d2(0x25f)](function(_0x4752a9,_0x2b8d3c){var _0x20ef1b=_0x4006d2,_0x37d9a6=_0x4752a9[_0x20ef1b(0x216)],_0x4e6df6=_0x4752a9['id'],_0x9b12bc=_0x4752a9[_0x20ef1b(0x274)],_0x2df7cc=_0x4752a9[_0x20ef1b(0x23e)],_0x2d8baa=M(_0x4752a9,[_0x20ef1b(0x216),'id',_0x20ef1b(0x274),_0x20ef1b(0x23e)]),_0x5054dc=_0x20ef1b(0x276)['concat'](_0x4e6df6,'\x20')['concat'](_0x9b12bc||'')[_0x20ef1b(0x21f)](),_0xdce73a=f[_0x20ef1b(0x247)]('_'['concat'](G()));return y(_0x37d9a6,''[_0x20ef1b(0x270)](_0x4e6df6),{'defIds':_0x37d9a6[_0x20ef1b(0x244)],'idSuffix':_0xdce73a[_0x20ef1b(0x25c)]},u({'ref':_0x2b8d3c,'className':_0x5054dc},_0x2d8baa),_0x2df7cc);});function y(_0x165e44,_0x25fcb7,_0x1aa436,_0x9129b3,_0x44d4b6){var _0x33bb19=_0x4006d2;return f['createElement'](_0x165e44['tag'],u(u({'key':_0x25fcb7},q(_0x165e44,_0x1aa436,_0x44d4b6)),_0x9129b3),(W(_0x165e44,_0x1aa436)[_0x33bb19(0x211)]||[])[_0x33bb19(0x267)](function(_0xb33625,_0x5338b3){var _0x18230f=_0x33bb19;return y(_0xb33625,''[_0x18230f(0x270)](_0x25fcb7,'-')[_0x18230f(0x270)](_0x165e44[_0x18230f(0x246)],'-')[_0x18230f(0x270)](_0x5338b3),_0x1aa436,void 0x0,_0x44d4b6);}));}function q(_0x244a71,_0x2145cb,_0xa04df8){var _0x18926e=_0x4006d2,_0x57bb67=u({},_0x244a71[_0x18926e(0x22b)]);_0xa04df8!=null&&_0xa04df8[_0x18926e(0x2aa)]&&_0x57bb67[_0x18926e(0x1f1)]===_0x18926e(0x2aa)&&(_0x57bb67[_0x18926e(0x1f1)]=_0xa04df8[_0x18926e(0x2aa)]),_0x244a71[_0x18926e(0x246)]==='mask'&&_0x57bb67['id']&&(_0x57bb67['id']=_0x57bb67['id']+_0x2145cb[_0x18926e(0x203)]),Object[_0x18926e(0x1de)](_0x57bb67)[_0x18926e(0x27f)](function(_0x146a98){var _0x5be83a=_0x18926e,_0x32b956=_0x146a98[0x0],_0x42343c=_0x146a98[0x1];_0x32b956===_0x5be83a(0x1e1)&&typeof _0x42343c==_0x5be83a(0x2a4)&&(_0x57bb67[_0x32b956]=_0x42343c[_0x5be83a(0x2a7)](/url\(#(.*)\)/,_0x5be83a(0x218)[_0x5be83a(0x270)](_0x2145cb[_0x5be83a(0x203)],')')));});var _0x57facc=_0x2145cb[_0x18926e(0x244)];return!_0x57facc||_0x57facc[_0x18926e(0x205)]===0x0||(_0x244a71[_0x18926e(0x246)]==='use'&&_0x57bb67[_0x18926e(0x1f7)]&&(_0x57bb67[_0x18926e(0x1f7)]=_0x57bb67['xlink:href']+_0x2145cb['idSuffix']),Object[_0x18926e(0x1de)](_0x57bb67)[_0x18926e(0x27f)](function(_0x29b3c2){var _0x3ac64a=_0x18926e,_0x4dbe70=_0x29b3c2[0x0],_0x3cb82e=_0x29b3c2[0x1];typeof _0x3cb82e==_0x3ac64a(0x2a4)&&(_0x57bb67[_0x4dbe70]=_0x3cb82e[_0x3ac64a(0x2a7)](/url\(#(.*)\)/,_0x3ac64a(0x218)[_0x3ac64a(0x270)](_0x2145cb[_0x3ac64a(0x203)],')')));})),_0x57bb67;}function W(_0x5eb527,_0x67defd){var _0x52375e=_0x4006d2,_0x40226b,_0xfef5f5=_0x67defd[_0x52375e(0x244)];return!_0xfef5f5||_0xfef5f5[_0x52375e(0x205)]===0x0?_0x5eb527:_0x5eb527['tag']==='defs'&&(!((_0x40226b=_0x5eb527[_0x52375e(0x211)])===null||_0x40226b===void 0x0)&&_0x40226b[_0x52375e(0x205)])?u(u({},_0x5eb527),{'children':_0x5eb527[_0x52375e(0x211)][_0x52375e(0x267)](function(_0x1da93c){var _0x2e303d=_0x52375e;return typeof _0x1da93c[_0x2e303d(0x22b)]['id']==_0x2e303d(0x2a4)&&_0xfef5f5&&_0xfef5f5['includes'](_0x1da93c['attrs']['id'])?u(u({},_0x1da93c),{'attrs':u(u({},_0x1da93c[_0x2e303d(0x22b)]),{'id':_0x1da93c['attrs']['id']+_0x67defd['idSuffix']})}):_0x1da93c;})}):_0x5eb527;}function G(){var _0x586c67=_0x4006d2;return Math['random']()[_0x586c67(0x21d)](0x24)[_0x586c67(0x1e9)](0x2,0x8);}j['displayName']='UniverIcon';var B={'tag':_0x4006d2(0x242),'attrs':{'xmlns':_0x4006d2(0x295),'fill':_0x4006d2(0x263),'viewBox':'0\x200\x2017\x2017','width':_0x4006d2(0x254),'height':_0x4006d2(0x254)},'children':[{'tag':_0x4006d2(0x255),'attrs':{'fill':_0x4006d2(0x292),'d':_0x4006d2(0x287)}},{'tag':'path','attrs':{'fill':_0x4006d2(0x292),'d':_0x4006d2(0x27d),'fillRule':_0x4006d2(0x24f),'clipRule':_0x4006d2(0x24f)}}]},P=f[_0x4006d2(0x25f)](function(_0x3a75a2,_0x341e29){var _0x3ad35b=_0x4006d2;return f[_0x3ad35b(0x240)](j,Object['assign']({},_0x3a75a2,{'id':_0x3ad35b(0x280),'ref':_0x341e29,'icon':B}));});P[_0x4006d2(0x23f)]=_0x4006d2(0x1f5);var Y=Object[_0x4006d2(0x299)],R=(_0x13b5d2,_0x2458e9,_0x4bf8e3,_0x938fed)=>{var _0x1e3a2a=_0x4006d2;for(var _0x57e6d7=_0x938fed>0x1?void 0x0:_0x938fed?Y(_0x2458e9,_0x4bf8e3):_0x2458e9,_0x4f6b41=_0x13b5d2[_0x1e3a2a(0x205)]-0x1,_0x5e77e3;_0x4f6b41>=0x0;_0x4f6b41--)(_0x5e77e3=_0x13b5d2[_0x4f6b41])&&(_0x57e6d7=_0x5e77e3(_0x57e6d7)||_0x57e6d7);return _0x57e6d7;},S=(_0x27f4ba,_0x228431)=>(_0x54ba4b,_0x1f452f)=>_0x228431(_0x54ba4b,_0x1f452f,_0x27f4ba);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x5f0d15,_0x389fdd,_0x3b3532){var _0x447eff=_0x4006d2;super(),v(this,_0x447eff(0x20e),new Map()),(this[_0x447eff(0x253)]=_0x5f0d15,this['_injector']=_0x389fdd,this['_collabSessionService']=_0x3b3532,this[_0x447eff(0x1ee)]());}async[_0x4006d2(0x2b2)](_0x6a213){var _0xf17df0=_0x4006d2;return this[_0xf17df0(0x20e)]['has'](_0x6a213)||await this[_0xf17df0(0x22a)](_0x6a213),this[_0xf17df0(0x20e)][_0xf17df0(0x24a)](_0x6a213);}[_0x4006d2(0x1ee)](){var _0x285e1d=_0x4006d2;this[_0x285e1d(0x253)]['getTypeOfUnitAdded$'](o['UniverInstanceType']['UNIVER_SHEET'])[_0x285e1d(0x1ef)](b[_0x285e1d(0x275)](this[_0x285e1d(0x277)]))[_0x285e1d(0x282)](async _0x4018f4=>{var _0x550974=_0x285e1d;const _0x243794=_0x4018f4[_0x550974(0x29b)]();this['_entities']['has'](_0x243794)||this[_0x550974(0x22a)](_0x243794);}),this[_0x285e1d(0x253)][_0x285e1d(0x2b7)](o[_0x285e1d(0x262)]['UNIVER_SHEET'])[_0x285e1d(0x1ef)](b[_0x285e1d(0x275)](this[_0x285e1d(0x277)]))['subscribe'](_0xf69ffb=>{var _0x1844b4=_0x285e1d;const _0x17545f=_0xf69ffb[_0x1844b4(0x29b)](),_0x406731=this[_0x1844b4(0x20e)][_0x1844b4(0x24a)](_0x17545f);_0x406731==null||_0x406731['dispose']();});}async[_0x4006d2(0x22a)](_0x362d75){var _0x56c5d8=_0x4006d2;const _0x29dc56=await this[_0x56c5d8(0x291)]['requireSession'](_0x362d75),_0xd16e1f=this[_0x56c5d8(0x2ae)]['createInstance'](exports[_0x56c5d8(0x2ad)],_0x362d75,_0x29dc56);return _0xd16e1f['init'](),this['_entities'][_0x56c5d8(0x245)](_0x362d75,_0xd16e1f),_0xd16e1f;}},exports['LiveShareController']=R([S(0x0,o[_0x4006d2(0x29c)]),S(0x1,o[_0x4006d2(0x29f)](o['Injector'])),S(0x2,o[_0x4006d2(0x29f)](m[_0x4006d2(0x28c)]))],exports['LiveShareController']);var h=(_0x22b460=>(_0x22b460[_0x4006d2(0x272)]=_0x4006d2(0x1ea),_0x22b460[_0x4006d2(0x2a6)]=_0x4006d2(0x29a),_0x22b460[_0x4006d2(0x293)]=_0x4006d2(0x223),_0x22b460['NOT_FOLLOWING']=_0x4006d2(0x27c),_0x22b460['PRESENTING']=_0x4006d2(0x269),_0x22b460))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x4006d2(0x2ad)]=class extends o[_0x4006d2(0x226)]{constructor(_0x1b9a0d,_0x318591,_0x5d4c15,_0x382df5,_0x34e92e){var _0x43f237=_0x4006d2;super(),v(this,_0x43f237(0x284),new D['BehaviorSubject'](_0x43f237(0x29a))),v(this,_0x43f237(0x207),this['_status$'][_0x43f237(0x258)]()),v(this,_0x43f237(0x1ee),!0x1),v(this,_0x43f237(0x26b),null),v(this,'_presenter',null),(this['_unitID']=_0x1b9a0d,this['_collabSession']=_0x318591,this[_0x43f237(0x202)]=_0x5d4c15,this['_liveShareService']=_0x382df5,this[_0x43f237(0x259)]=_0x34e92e);}get[_0x4006d2(0x279)](){var _0x1e1b81=_0x4006d2;return this['_status$'][_0x1e1b81(0x20a)]();}['dispose'](){var _0x228e0a=_0x4006d2,_0x2e0be6;(_0x2e0be6=this['_commandDisposable'])==null||_0x2e0be6['dispose'](),this[_0x228e0a(0x284)][_0x228e0a(0x2b4)](_0x228e0a(0x29a)),this[_0x228e0a(0x284)][_0x228e0a(0x22c)]();}['init'](){var _0x251f96=_0x4006d2;this[_0x251f96(0x1ee)]||(this['_init']=!0x0,this['_collabSession'][_0x251f96(0x221)][_0x251f96(0x1ef)](b[_0x251f96(0x275)](this[_0x251f96(0x277)]))['subscribe'](_0x92602c=>{var _0x5b55a5=_0x251f96;switch(_0x92602c){case m[_0x5b55a5(0x26e)][_0x5b55a5(0x272)]:this[_0x5b55a5(0x264)]();break;case m[_0x5b55a5(0x26e)][_0x5b55a5(0x1e6)]:this[_0x5b55a5(0x225)]();break;}}),this[_0x251f96(0x23d)][_0x251f96(0x252)]['pipe'](b[_0x251f96(0x275)](this['dispose$']))['subscribe'](_0x3a1236=>{var _0x950039=_0x251f96;const {eventID:_0x2b6d22}=_0x3a1236;switch(_0x2b6d22){case _[_0x950039(0x286)][_0x950039(0x28a)]:this[_0x950039(0x236)](_0x3a1236);break;case _[_0x950039(0x286)][_0x950039(0x208)]:this['_handleOperation'](_0x3a1236);break;case _[_0x950039(0x286)][_0x950039(0x20d)]:this['_handleTerminate']();break;case _[_0x950039(0x286)]['NEW_CHANGESETS']:this[_0x950039(0x220)](_0x3a1236);break;}}));}[_0x4006d2(0x20b)](){var _0x5c05df=_0x4006d2;this[_0x5c05df(0x23d)][_0x5c05df(0x248)]({'eventID':_['CollaborationEvent'][_0x5c05df(0x27a)],'data':{'unitID':this[_0x5c05df(0x2b5)],'userID':this[_0x5c05df(0x23d)]['getMemberID']()}},this[_0x5c05df(0x2b5)]);}[_0x4006d2(0x26f)](){var _0x374612=_0x4006d2;this['_status']===_0x374612(0x269)&&(this[_0x374612(0x284)][_0x374612(0x2b4)](_0x374612(0x29a)),this['_collabSession']['send']({'eventID':_[_0x374612(0x286)][_0x374612(0x20d)],'data':{'unitID':this[_0x374612(0x2b5)]}},this['_unitID']));}[_0x4006d2(0x2bb)](){var _0x59fc7d=_0x4006d2;this[_0x59fc7d(0x279)]===_0x59fc7d(0x27c)&&(this[_0x59fc7d(0x284)][_0x59fc7d(0x2b4)](_0x59fc7d(0x223)),this[_0x59fc7d(0x29d)]());}[_0x4006d2(0x24b)](){var _0x1c834c=_0x4006d2;this['_status']===_0x1c834c(0x223)&&this['_stopFollowing']();}[_0x4006d2(0x236)](_0x5a66a0){var _0x329097=_0x4006d2;const {presenter:_0x48502c}=_0x5a66a0[_0x329097(0x273)],_0x401b06=this[_0x329097(0x23d)][_0x329097(0x27e)]();this['_presenter']=_0x48502c,_0x48502c===_0x401b06?(this[_0x329097(0x1fd)](),this[_0x329097(0x217)]()):this['_status']!==_0x329097(0x27c)&&(this['_stopPresenting'](),this[_0x329097(0x29d)]());}['_fetchOperations'](){var _0x1a9c9c=_0x4006d2;const _0xa11430={'eventID':_['CollaborationEvent'][_0x1a9c9c(0x1f2)]};this['_collabSession'][_0x1a9c9c(0x248)](_0xa11430,this[_0x1a9c9c(0x2b5)]);}[_0x4006d2(0x243)](){var _0x512a07=_0x4006d2;this['_presenter']=null,this[_0x512a07(0x279)]!==_0x512a07(0x269)&&this[_0x512a07(0x1fc)]();}[_0x4006d2(0x220)](_0x218dc1){var _0x521448=_0x4006d2;if(this[_0x521448(0x279)]===_0x521448(0x223)&&this[_0x521448(0x25d)]===_0x218dc1[_0x521448(0x273)]['memberID']){const _0x2a1e66=_['parseProtocolChangeset'](_0x218dc1[_0x521448(0x273)])[_0x521448(0x222)][_0x521448(0x238)]()[_0x521448(0x23b)](_0x1830fd=>_0x1830fd['id']===C[_0x521448(0x288)]['id']);if(_0x2a1e66){const _0x243bd9=_0x2a1e66[_0x521448(0x23a)][_0x521448(0x249)],_0x2e6f1c=_0x2a1e66[_0x521448(0x23a)]['sheet']['id'];setTimeout(()=>{var _0x3b3b66=_0x521448;this[_0x3b3b66(0x259)][_0x3b3b66(0x281)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x243bd9,'subUnitId':_0x2e6f1c},{'fromCollab':!0x0});});}}}[_0x4006d2(0x217)](){var _0x3f5a27=_0x4006d2;this['_status$'][_0x3f5a27(0x2b4)](_0x3f5a27(0x269));const _0x335daf=new Map(),_0x2ab854=this['_commandDisposable']=new o['DisposableCollection']();_0x2ab854['add'](o[_0x3f5a27(0x24c)](()=>{var _0x36706f=_0x3f5a27;_0x335daf[_0x36706f(0x27f)](_0x79657=>_0x79657[_0x36706f(0x22c)]()),_0x335daf['clear']();})),_0x2ab854[_0x3f5a27(0x2bc)](this['_commandService'][_0x3f5a27(0x21c)](_0x190d1b=>{var _0x30eb0e=_0x3f5a27,_0xa2f135;if(_0x190d1b[_0x30eb0e(0x239)]!==o[_0x30eb0e(0x210)][_0x30eb0e(0x283)]||!this[_0x30eb0e(0x25e)]['shouldShareOperation'](_0x190d1b['id']))return;const {id:_0x40accd}=_0x190d1b;let _0x372db3;_0x335daf[_0x30eb0e(0x250)](_0x40accd)?_0x372db3=_0x335daf[_0x30eb0e(0x24a)](_0x40accd):(_0x372db3=new D['Subject'](),_0x335daf[_0x30eb0e(0x245)](_0x40accd,_0x372db3),_0x372db3[_0x30eb0e(0x1ef)](b[_0x30eb0e(0x278)]((_0xa2f135=this[_0x30eb0e(0x202)][_0x30eb0e(0x219)](Z))!=null?_0xa2f135:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x30eb0e(0x282)](_0x506e2d=>{var _0x518a4c=_0x30eb0e;this[_0x518a4c(0x23d)][_0x518a4c(0x248)]({'eventID':_[_0x518a4c(0x286)][_0x518a4c(0x208)],'data':{'unitID':this[_0x518a4c(0x2b5)],'operations':{[_0x506e2d['id']]:{'id':_0x506e2d['id'],'params':JSON[_0x518a4c(0x26a)](_0x506e2d[_0x518a4c(0x23a)])}}}},this[_0x518a4c(0x2b5)]);})),_0x372db3[_0x30eb0e(0x2b4)](_0x190d1b);})),this[_0x3f5a27(0x25e)]['getInitialStates'](this[_0x3f5a27(0x2b5)])[_0x3f5a27(0x27f)](_0x21f54b=>this[_0x3f5a27(0x23d)][_0x3f5a27(0x248)]({'eventID':_[_0x3f5a27(0x286)][_0x3f5a27(0x208)],'data':{'unitID':this[_0x3f5a27(0x2b5)],'operations':{[_0x21f54b['id']]:{'id':_0x21f54b['id'],'params':JSON['stringify'](_0x21f54b[_0x3f5a27(0x23a)])}}}},this[_0x3f5a27(0x2b5)]));}['_stopPresenting'](){var _0xb96348=_0x4006d2,_0x5e35d0;this[_0xb96348(0x284)][_0xb96348(0x2b4)](_0xb96348(0x29a)),(_0x5e35d0=this[_0xb96348(0x26b)])==null||_0x5e35d0['dispose'](),this['_commandDisposable']=null;}[_0x4006d2(0x29d)](){var _0x2a3a34=_0x4006d2,_0xc9f924;(_0xc9f924=this['_commandDisposable'])==null||_0xc9f924[_0x2a3a34(0x1fe)](),this[_0x2a3a34(0x284)][_0x2a3a34(0x2b4)](_0x2a3a34(0x223));}[_0x4006d2(0x1fc)](){var _0x5f4f8d=_0x4006d2,_0x205217;this[_0x5f4f8d(0x284)][_0x5f4f8d(0x2b4)]('idle'),(_0x205217=this[_0x5f4f8d(0x26b)])==null||_0x205217[_0x5f4f8d(0x1fe)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x251293=_0x4006d2,_0xdbbebe;this['_status$']['next']('not-following'),(_0xdbbebe=this[_0x251293(0x26b)])==null||_0xdbbebe[_0x251293(0x1fe)]();}[_0x4006d2(0x235)](_0x54863b){var _0x557fed=_0x4006d2;if([_0x557fed(0x269),_0x557fed(0x27c),_0x557fed(0x1ea)]['includes'](this[_0x557fed(0x279)])||!_0x54863b[_0x557fed(0x273)][_0x557fed(0x201)]||_0x54863b[_0x557fed(0x273)][_0x557fed(0x201)]===this[_0x557fed(0x23d)]['getMemberID']())return;this[_0x557fed(0x279)]===_0x557fed(0x29a)&&this['_startFollowing']();const _0x181412=_0x54863b['data'][_0x557fed(0x204)];Object['values'](_0x181412)['forEach'](_0x1dfdfc=>{var _0x199288=_0x557fed;this[_0x199288(0x259)][_0x199288(0x281)](_0x1dfdfc['id'],_0x1dfdfc[_0x199288(0x23a)]?JSON[_0x199288(0x268)](_0x1dfdfc['params']):null,{'fromCollab':!0x0});});}[_0x4006d2(0x264)](){var _0x2e370b=_0x4006d2,_0x58b42e;this[_0x2e370b(0x284)]['next']('offline'),(_0x58b42e=this[_0x2e370b(0x26b)])==null||_0x58b42e[_0x2e370b(0x1fe)]();}[_0x4006d2(0x225)](){var _0x3aba2c=_0x4006d2;this[_0x3aba2c(0x284)][_0x3aba2c(0x2b4)](_0x3aba2c(0x29a)),this[_0x3aba2c(0x24e)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x4006d2(0x1fa)]),S(0x3,o[_0x4006d2(0x29f)](O)),S(0x4,o[_0x4006d2(0x26d)])],exports[_0x4006d2(0x2ad)]);function A(){var _0x49719e=_0x4006d2;const _0x3b2c02=p[_0x49719e(0x200)](exports[_0x49719e(0x1e8)]),_0x2fa248=p[_0x49719e(0x200)](o['IUniverInstanceService']),_0x2e1326=p['useObservable'](()=>_0x2fa248[_0x49719e(0x28d)](o['UniverInstanceType'][_0x49719e(0x1f0)]),void 0x0,!0x1,[]),[_0x9bdf24,_0x3d385a]=f[_0x49719e(0x230)](null),[_0x115cbe,_0x1da2dc]=f['useState'](h['IDLE']),_0x579df7=f[_0x49719e(0x247)](null);return f['useEffect'](()=>(_0x2e1326&&_0x3b2c02[_0x49719e(0x2b2)](_0x2e1326[_0x49719e(0x29b)]())[_0x49719e(0x2b6)](_0x11c92c=>{var _0x2a0bd3=_0x49719e;_0x3d385a(_0x11c92c),_0x579df7['current']=_0x11c92c[_0x2a0bd3(0x207)][_0x2a0bd3(0x282)](_0x23f14c=>{_0x1da2dc(_0x23f14c);});}),()=>{var _0x1a4f45=_0x49719e,_0x4342e1;(_0x4342e1=_0x579df7[_0x1a4f45(0x25c)])==null||_0x4342e1[_0x1a4f45(0x2a5)](),_0x579df7[_0x1a4f45(0x25c)]=null;}),[_0x2e1326,_0x3b2c02]),_0x9bdf24?l['jsx'](g[_0x49719e(0x1ff)],{'align':'end','disabled':_0x115cbe===h[_0x49719e(0x272)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x49719e(0x1e3)](K,{'status':_0x115cbe,'coordinator':_0x9bdf24}),'children':l['jsx']('button',{'className':g[_0x49719e(0x24d)](_0x49719e(0x271),{'univer-cursor-not-allowed':_0x115cbe===h[_0x49719e(0x272)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x115cbe!==h[_0x49719e(0x272)]}),'type':'button','children':l['jsx'](P,{'className':_0x49719e(0x296)})})}):null;}function K(_0x12d261){var _0x11a61e=_0x4006d2;const {status:_0x186df1,coordinator:_0x4f87d1}=_0x12d261;switch(_0x186df1){case h[_0x11a61e(0x2a6)]:return l[_0x11a61e(0x1e3)](z,{'coordinator':_0x4f87d1});case h[_0x11a61e(0x293)]:return l[_0x11a61e(0x1e3)](Q,{'coordinator':_0x4f87d1});case h[_0x11a61e(0x28b)]:return l[_0x11a61e(0x1e3)](X,{'coordinator':_0x4f87d1});case h[_0x11a61e(0x272)]:return l[_0x11a61e(0x1e3)](te,{});case h[_0x11a61e(0x215)]:return l[_0x11a61e(0x1e3)](ee,{'coordinator':_0x4f87d1});default:return null;}}function z(_0x418044){var _0x138dfc=_0x4006d2;const {coordinator:_0x366d32}=_0x418044;return l[_0x138dfc(0x1df)](l[_0x138dfc(0x206)],{'children':[l[_0x138dfc(0x1e3)](_0x138dfc(0x1f9),{'className':_0x138dfc(0x2b1),'children':_0x138dfc(0x214)}),l[_0x138dfc(0x1e3)](g['Button'],{'onClick':()=>_0x366d32[_0x138dfc(0x20b)](),'children':_0x138dfc(0x2af)})]});}function Q(_0x24463d){var _0x21d401=_0x4006d2;const {coordinator:_0x53ae10}=_0x24463d;return l[_0x21d401(0x1df)](l[_0x21d401(0x206)],{'children':[l['jsx'](_0x21d401(0x1f9),{'className':_0x21d401(0x2b1),'children':_0x21d401(0x1fb)}),l[_0x21d401(0x1e3)](g[_0x21d401(0x22f)],{'onClick':()=>_0x53ae10['stopFollowing'](),'children':_0x21d401(0x1e5)})]});}function X(_0x48de87){var _0x435c43=_0x4006d2;const {coordinator:_0x1c350f}=_0x48de87;return l['jsxs'](l[_0x435c43(0x206)],{'children':[l[_0x435c43(0x1e3)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x435c43(0x1e3)](g[_0x435c43(0x22f)],{'variant':_0x435c43(0x228),'onClick':()=>_0x1c350f[_0x435c43(0x2bb)](),'children':_0x435c43(0x2a9)})]});}function ee(_0x3478b0){var _0x26db39=_0x4006d2;const {coordinator:_0x4fe3ea}=_0x3478b0;return l[_0x26db39(0x1df)](l['Fragment'],{'children':[l['jsx'](_0x26db39(0x1f9),{'className':_0x26db39(0x2b1),'children':_0x26db39(0x25b)}),l[_0x26db39(0x1e3)](g[_0x26db39(0x22f)],{'variant':_0x26db39(0x1eb),'onClick':()=>_0x4fe3ea['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x2bfb(){var _0x583af0=['_univerInstanceService','1em','path','@univerjs/design','toStringTag','asObservable','_commandService','assign','You\x27re\x20presenting\x20the\x20document','current','_presenter','_liveShareService','forwardRef','IUIPartsService','delete','UniverInstanceType','none','_handleOffline','UniverCollaborationClientPlugin','pluginName','map','parse','presenting','stringify','_commandDisposable','touchDependencies','ICommandService','SessionStatus','stopPresenting','concat','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OFFLINE','data','className','takeUntil','univerjs-icon\x20univerjs-icon-','dispose$','throttleTime','_status','LIVESHARE_REQUEST_HOST','function','not-following','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','getMemberID','forEach','live-share-icon','executeCommand','subscribe','OPERATION','_status$','rxjs/operators','CollaborationEvent','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','InsertSheetMutation','242MgeGOK','LIVESHARE_NEW_HOST','NOT_FOLLOWING','CollaborationSessionService','getCurrentTypeOfUnit$','symbol','_config','119730vywIcz','_collabSessionService','currentColor','FOLLOWING','Module','http://www.w3.org/2000/svg','univer-size-4','1713360TmxOgb','9SlKaMi','getOwnPropertyDescriptor','idle','getUnitId','IUniverInstanceService','_startFollowing','_uiPartsService','Inject','Plugin','call','2758Snkdjh','disposeWithMe','string','unsubscribe','IDLE','replace','@univerjs-pro/collaboration-client','Start\x20following','colorChannel1','You\x27are\x20offline.','propertyIsEnumerable','LiveShareCoordinator','_injector','Start','5TDmZQL','univer-mb-3\x20univer-w-full\x20univer-text-sm','getLiveShareCoordinator','_reporters','next','_unitID','then','getTypeOfUnitDisposed$','indexOf','194384AYixrA','111260NNmLYS','startFollowing','add','2364IybYUm','entries','jsxs','react','mask','LiveShareService','jsx','114oHOVTc','Stop\x20following','ONLINE','mergeOverrideWithDependencies','LiveShareController','substring','offline','default','merge','LiveShare','_init','pipe','UNIVER_SHEET','fill','LIVESHARE_FETCH_OPERATIONS','DependentOn','DesktopLiveShareController','LiveShareIcon','@univerjs-pro/collaboration','xlink:href','_sharedOperations','div','IConfigService','You\x27re\x20following\x20the\x20presenter','_beIdle','_stopFollowing','dispose','Dropdown','useDependency','presenter','_configService','idSuffix','operations','length','Fragment','status$','LIVESHARE_OPERATION','26319kFgnCK','getValue','tryStartPresenting','BuiltInUIPart','LIVESHARE_TERMINATE','_entities','501324lJHDbM','CommandType','children','registerSharedOperation','override','Present\x20this\x20document','PRESENTING','icon','_startPresenting','url(#$1','getConfig','getOwnPropertySymbols','UniverLiveSharePlugin','onCommandExecuted','toString','SetZoomRatioOperation','trim','_handleNewChangeSets','sessionStatus$','mutations','following','onStarting','_handleOnline','RxDisposable','setConfig','text','@univerjs/core','_startLiveShareCoordinator','attrs','complete','registerComponent','HEADER_MENU','Button','useState','shouldShareOperation','defineProperty','Disposable','rxjs','_handleOperation','_handleNewHost','prototype','reverse','type','params','find','Injector','_collabSession','extend','displayName','createElement','react/jsx-runtime','svg','_handleTerminate','defIds','set','tag','useRef','send','unitId','get','stopFollowing','toDisposable','clsx','_fetchOperations','evenodd','has','SetWorksheetActiveOperation','event$'];_0x2bfb=function(){return _0x583af0;};return _0x2bfb();}function te(){var _0x535ac9=_0x4006d2;return l[_0x535ac9(0x1e3)](l['Fragment'],{'children':_0x535ac9(0x2ab)});}function _0x53a2(_0x11a933,_0x4db9c9){var _0x2bfbc4=_0x2bfb();return _0x53a2=function(_0x53a268,_0x1d871e){_0x53a268=_0x53a268-0x1dd;var _0x39f4e3=_0x2bfbc4[_0x53a268];return _0x39f4e3;},_0x53a2(_0x11a933,_0x4db9c9);}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x276dd2,_0x3fb4be,_0x2e8354,_0x2aef77)=>{for(var _0x514b91=_0x2aef77>0x1?void 0x0:_0x2aef77?ie(_0x3fb4be,_0x2e8354):_0x3fb4be,_0x40f0a9=_0x276dd2['length']-0x1,_0x421589;_0x40f0a9>=0x0;_0x40f0a9--)(_0x421589=_0x276dd2[_0x40f0a9])&&(_0x514b91=_0x421589(_0x514b91)||_0x514b91);return _0x514b91;},L=(_0x3af229,_0x31702d)=>(_0x26edf1,_0x3c988f)=>_0x31702d(_0x26edf1,_0x3c988f,_0x3af229);exports['DesktopLiveShareController']=class extends o[_0x4006d2(0x233)]{constructor(_0x2b9798,_0x1b3b59){var _0x46b8d9=_0x4006d2;super(),this[_0x46b8d9(0x2ae)]=_0x2b9798,this['_uiPartsService']=_0x1b3b59,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x3d5e59=_0x4006d2;this[_0x3d5e59(0x2a3)](this[_0x3d5e59(0x29e)][_0x3d5e59(0x22d)](p[_0x3d5e59(0x20c)][_0x3d5e59(0x22e)],()=>p['connectInjector'](A,this[_0x3d5e59(0x2ae)])));}},exports[_0x4006d2(0x1f4)]=ne([L(0x0,o['Inject'](o[_0x4006d2(0x23c)])),L(0x1,p[_0x4006d2(0x260)])],exports[_0x4006d2(0x1f4)]);var re=Object['defineProperty'],se=Object[_0x4006d2(0x299)],oe=(_0x5e4b1b,_0x15cb5a,_0x37a4a5)=>_0x15cb5a in _0x5e4b1b?re(_0x5e4b1b,_0x15cb5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37a4a5}):_0x5e4b1b[_0x15cb5a]=_0x37a4a5,ae=(_0x46e740,_0x1d425c,_0x5b8895,_0x46c197)=>{var _0x344182=_0x4006d2;for(var _0x3dd35b=_0x46c197>0x1?void 0x0:_0x46c197?se(_0x1d425c,_0x5b8895):_0x1d425c,_0x571e4e=_0x46e740[_0x344182(0x205)]-0x1,_0x17639d;_0x571e4e>=0x0;_0x571e4e--)(_0x17639d=_0x46e740[_0x571e4e])&&(_0x3dd35b=_0x17639d(_0x3dd35b)||_0x3dd35b);return _0x3dd35b;},N=(_0x293133,_0x12d55a)=>(_0x44e3ca,_0x47abec)=>_0x12d55a(_0x44e3ca,_0x47abec,_0x293133),T=(_0x7e0bd4,_0x1b93b4,_0x1f29d7)=>oe(_0x7e0bd4,typeof _0x1b93b4!=_0x4006d2(0x28e)?_0x1b93b4+'':_0x1b93b4,_0x1f29d7);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x4006d2(0x21b)]=class extends o[_0x4006d2(0x2a0)]{constructor(_0x4e1855=x,_0x2e341e,_0x1292cc){var _0x1f5cf0=_0x4006d2;super(),this[_0x1f5cf0(0x28f)]=_0x4e1855,this['_injector']=_0x2e341e,this[_0x1f5cf0(0x202)]=_0x1292cc;const {..._0x3f4d08}=o[_0x1f5cf0(0x1ec)]({},x,this[_0x1f5cf0(0x28f)]);this[_0x1f5cf0(0x202)][_0x1f5cf0(0x227)]($,_0x3f4d08);}[_0x4006d2(0x224)](){var _0x577f30=_0x4006d2;o['registerDependencies'](this[_0x577f30(0x2ae)],o[_0x577f30(0x1e7)]([[O],[exports[_0x577f30(0x1e8)]],[E],[exports['DesktopLiveShareController']]],this['_config'][_0x577f30(0x213)])),o[_0x577f30(0x26c)](this[_0x577f30(0x2ae)],[[E]]);}['onRendered'](){var _0x1f68eb=_0x4006d2;o[_0x1f68eb(0x26c)](this[_0x1f68eb(0x2ae)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x4006d2(0x21b)],_0x4006d2(0x239),o[_0x4006d2(0x262)]['UNIVER_UNKNOWN']),T(exports[_0x4006d2(0x21b)],_0x4006d2(0x266),le),exports[_0x4006d2(0x21b)]=ae([o[_0x4006d2(0x1f3)](m[_0x4006d2(0x265)]),N(0x1,o[_0x4006d2(0x29f)](o[_0x4006d2(0x23c)])),N(0x2,o[_0x4006d2(0x1fa)])],exports[_0x4006d2(0x21b)]),exports[_0x4006d2(0x1ed)]=A,exports[_0x4006d2(0x1e2)]=O,exports['LiveShareStatus']=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1d2061=_0x148e;(function(_0x39dcc5,_0x57177e){var _0x3de184=_0x148e,_0x1a0c45=_0x39dcc5();while(!![]){try{var _0x2ac413=parseInt(_0x3de184(0x107))/0x1*(parseInt(_0x3de184(0xd2))/0x2)+-parseInt(_0x3de184(0x174))/0x3*(parseInt(_0x3de184(0x15f))/0x4)+-parseInt(_0x3de184(0x121))/0x5*(parseInt(_0x3de184(0x152))/0x6)+parseInt(_0x3de184(0x123))/0x7+-parseInt(_0x3de184(0x179))/0x8+-parseInt(_0x3de184(0x126))/0x9*(parseInt(_0x3de184(0x13e))/0xa)+parseInt(_0x3de184(0x159))/0xb;if(_0x2ac413===_0x57177e)break;else _0x1a0c45['push'](_0x1a0c45['shift']());}catch(_0x33d5c6){_0x1a0c45['push'](_0x1a0c45['shift']());}}}(_0x49dd,0xe2e94));var q=Object[_0x1d2061(0xf0)],z=(_0x412ba5,_0x797004,_0x221430)=>_0x797004 in _0x412ba5?q(_0x412ba5,_0x797004,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x221430}):_0x412ba5[_0x797004]=_0x221430,d=(_0x5ad454,_0x5d4cb8,_0x51012d)=>z(_0x5ad454,typeof _0x5d4cb8!='symbol'?_0x5d4cb8+'':_0x5d4cb8,_0x51012d);import{CollaborationSessionService as _0x4cd42a,SessionStatus as _0x2067be,UniverCollaborationClientPlugin as _0x3e8e9b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3ee941,toDisposable as _0x48aed0,Inject as _0x253fee,IUniverInstanceService as _0x33424e,Injector as _0x57aad1,IConfigService as _0xa95083,ICommandService as _0x4e7867,RxDisposable as _0x2ac371,UniverInstanceType as _0xa2c22f,DisposableCollection as _0x25b081,CommandType as _0x382cb4,DependentOn as _0x394549,Plugin as _0x2dc2c4,merge as _0x4db2d4,registerDependencies as _0x5d2766,mergeOverrideWithDependencies as _0x4e7ffe,touchDependencies as _0x86b33f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x2aa18e,InsertSheetMutation as _0xc429d8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x646c22,SetScrollOperation as _0x16bed9}from'@univerjs/sheets-ui';function _0x148e(_0x56ae18,_0x16b15e){var _0x49dd57=_0x49dd();return _0x148e=function(_0x148ebf,_0x4df02c){_0x148ebf=_0x148ebf-0xce;var _0x565179=_0x49dd57[_0x148ebf];return _0x565179;},_0x148e(_0x56ae18,_0x16b15e);}import{useDependency as _0x37b90a,useObservable as _0x33fa75,IUIPartsService as _0x3fcef6,BuiltInUIPart as _0x5b8b60,connectInjector as _0x1e3e05}from'@univerjs/ui';import{jsx as _0x1e62c2,jsxs as _0x12b645,Fragment as _0x4b49ed}from'react/jsx-runtime';import{Dropdown as _0x2f9467,clsx as _0x3df6c9,Button as _0x5a17cb}from'@univerjs/design';function _0x49dd(){var _0x5375fb=['init','replace','attrs','type','text','unsubscribe','string','_sharedOperations','1323492qayczy','createInstance','children','_univerInstanceService','getUnitId','disposeWithMe','1em','26708198mVLIzq','getOwnPropertyDescriptor','LIVESHARE_OPERATION','_handleOnline','data','UniverIcon','4wJXgbq','url(#$1','tryStartPresenting','none','_liveShareService','concat','univerjs-icon\x20univerjs-icon-','shouldShareOperation','getTypeOfUnitAdded$','get','then','_uiPartsService','fill','_init','LIVESHARE_FETCH_OPERATIONS','stopPresenting','currentColor','params','sheet','pluginName','dispose$','2899923MdEGxm','presenting','displayName','stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','8116048gbwdRF','onStarting','parse','_stopFollowing','_startPresenting','OFFLINE','_entities','delete','Present\x20this\x20document','path','1700JdGSkd','prototype','symbol','UNIVER_SHEET','trim','_presenter','live-share-icon','defIds','LIVESHARE_NEW_HOST','_configService','onRendered','pipe','offline','tag','mutations','toString','substring','end','_unitID','className','unitId','indexOf','HEADER_MENU','Start','_collabSessionService','getTypeOfUnitDisposed$','getLiveShareCoordinator','div','assign','http://www.w3.org/2000/svg','defineProperty','presenter','_mountLiveShare','memberID','event$','LIVESHARE_REQUEST_HOST','_injector','set','send','startFollowing','_stopPresenting','_collabSession','find','button','getCurrentTypeOfUnit$','_handleOffline','IDLE','idSuffix','xlink:href','next','includes','call','stringify','1607wHtwxw','You\x27re\x20not\x20following\x20the\x20presenter','dispose','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','sessionStatus$','_fetchOperations','_config','_handleTerminate','_commandDisposable','getMemberID','LIVESHARE_TERMINATE','forEach','_reporters','_handleOperation','idle','NOT_FOLLOWING','FOLLOWING','getOwnPropertySymbols','length','colorChannel1','subscribe','hasOwnProperty','You\x27re\x20following\x20the\x20presenter','complete','map','values','20vvxuXL','override','585879uQZcbC','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_commandService','54cJwseE','_handleNewHost','_startFollowing','not-following','PRESENTING','_startLiveShareCoordinator','reverse','_status$','mask','You\x27are\x20offline.','status$','icon','_status','live-share.config','getConfig','extend','add','ONLINE','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','registerSharedOperation','function','executeCommand','defs','_beIdle','141270FvkwDJ','0\x200\x2017\x2017','univer-size-4','SAME_OPERATION_SHARE_INTERVAL','_handleNewChangeSets','getInitialStates','current','svg','entries','has','onCommandExecuted','following'];_0x49dd=function(){return _0x5375fb;};return _0x49dd();}import{forwardRef as _0x181876,useRef as _0xec2e7b,createElement as _0x43b433,useState as _0x1669ac,useEffect as _0x483153}from'react';import{CollaborationEvent as _0x68e326,parseProtocolChangeset as _0x5bc805}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2a4565,Subject as _0xcf50bc}from'rxjs';import{takeUntil as _0x3f0d49,throttleTime as _0x461b27}from'rxjs/operators';const Oe=_0x1d2061(0x133),T={};class L extends _0x3ee941{constructor(){var _0x2f54a5=_0x1d2061;super(...arguments),d(this,_0x2f54a5(0x151),new Set()),d(this,_0x2f54a5(0x113),new Set());}[_0x1d2061(0x139)](_0x5343a2){var _0x3efda4=_0x1d2061;return this[_0x3efda4(0x151)][_0x3efda4(0x136)](_0x5343a2),_0x48aed0(()=>this[_0x3efda4(0x151)][_0x3efda4(0xcf)](_0x5343a2));}['registerInitialStateReporter'](_0x4ca4b3){var _0x20a830=_0x1d2061;return this['_reporters']['add'](_0x4ca4b3),_0x48aed0(()=>this[_0x20a830(0x113)]['delete'](_0x4ca4b3));}[_0x1d2061(0x166)](_0x244420){var _0x56da68=_0x1d2061;return this[_0x56da68(0x151)][_0x56da68(0x147)](_0x244420);}[_0x1d2061(0x143)](_0x41438a){return Array['from'](this['_reporters'])['map'](_0x47c1b6=>_0x47c1b6(_0x41438a));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x566674,_0x5802b7,_0x462824,_0x58a310)=>{var _0x5e8afa=_0x1d2061;for(var _0x17e0b8=_0x58a310>0x1?void 0x0:_0x58a310?Ee(_0x5802b7,_0x462824):_0x5802b7,_0x38f38b=_0x566674[_0x5e8afa(0x119)]-0x1,_0xcc8898;_0x38f38b>=0x0;_0x38f38b--)(_0xcc8898=_0x566674[_0x38f38b])&&(_0x17e0b8=_0xcc8898(_0x17e0b8)||_0x17e0b8);return _0x17e0b8;},Ne=(_0x197ea,_0x23b7cb)=>(_0xf6c81d,_0x4f6945)=>_0x23b7cb(_0xf6c81d,_0x4f6945,_0x197ea);let m=class extends _0x3ee941{constructor(_0xe3584e){var _0x315288=_0x1d2061;super(),this[_0x315288(0x163)]=_0xe3584e,this[_0x315288(0x16c)]();}[_0x1d2061(0x16c)](){var _0x15dbbd=_0x1d2061;[_0x646c22['id'],_0x16bed9['id'],_0x2aa18e['id']][_0x15dbbd(0x112)](_0x8083e1=>{var _0x5709b6=_0x15dbbd;this[_0x5709b6(0x157)](this[_0x5709b6(0x163)]['registerSharedOperation'](_0x8083e1));});}};m=we([Ne(0x0,_0x253fee(L))],m);var c=function(){var _0x32a5b3=_0x1d2061;return c=Object[_0x32a5b3(0xee)]||function(_0x26a00e){var _0x5e9a97=_0x32a5b3;for(var _0x242225,_0x5780e7=0x1,_0x43ab36=arguments[_0x5e9a97(0x119)];_0x5780e7<_0x43ab36;_0x5780e7++){_0x242225=arguments[_0x5780e7];for(var _0x3fba03 in _0x242225)Object[_0x5e9a97(0xd3)][_0x5e9a97(0x11c)][_0x5e9a97(0x105)](_0x242225,_0x3fba03)&&(_0x26a00e[_0x3fba03]=_0x242225[_0x3fba03]);}return _0x26a00e;},c['apply'](this,arguments);},Ce=function(_0x4a701d,_0x4c241e){var _0x50335e=_0x1d2061,_0x27d899={};for(var _0x12b216 in _0x4a701d)Object[_0x50335e(0xd3)][_0x50335e(0x11c)][_0x50335e(0x105)](_0x4a701d,_0x12b216)&&_0x4c241e[_0x50335e(0xe7)](_0x12b216)<0x0&&(_0x27d899[_0x12b216]=_0x4a701d[_0x12b216]);if(_0x4a701d!=null&&typeof Object[_0x50335e(0x118)]==_0x50335e(0x13a)){for(var _0x157435=0x0,_0x12b216=Object[_0x50335e(0x118)](_0x4a701d);_0x157435<_0x12b216[_0x50335e(0x119)];_0x157435++)_0x4c241e[_0x50335e(0xe7)](_0x12b216[_0x157435])<0x0&&Object[_0x50335e(0xd3)]['propertyIsEnumerable'][_0x50335e(0x105)](_0x4a701d,_0x12b216[_0x157435])&&(_0x27d899[_0x12b216[_0x157435]]=_0x4a701d[_0x12b216[_0x157435]]);}return _0x27d899;},W=_0x181876(function(_0x142d4d,_0x378d5a){var _0x4a1cef=_0x1d2061,_0x5d401f=_0x142d4d[_0x4a1cef(0x131)],_0x4282ee=_0x142d4d['id'],_0x28cc70=_0x142d4d[_0x4a1cef(0xe5)],_0x334218=_0x142d4d['extend'],_0x2515de=Ce(_0x142d4d,['icon','id','className',_0x4a1cef(0x135)]),_0x27bfd4=_0x4a1cef(0x165)[_0x4a1cef(0x164)](_0x4282ee,'\x20')[_0x4a1cef(0x164)](_0x28cc70||'')[_0x4a1cef(0xd6)](),_0x583809=_0xec2e7b('_'[_0x4a1cef(0x164)](Le()));return Y(_0x5d401f,''['concat'](_0x4282ee),{'defIds':_0x5d401f[_0x4a1cef(0xd9)],'idSuffix':_0x583809[_0x4a1cef(0x144)]},c({'ref':_0x378d5a,'className':_0x27bfd4},_0x2515de),_0x334218);});function Y(_0x35ddae,_0x297073,_0x60c24d,_0x167e17,_0x18972a){var _0xf26800=_0x1d2061;return _0x43b433(_0x35ddae[_0xf26800(0xdf)],c(c({'key':_0x297073},De(_0x35ddae,_0x60c24d,_0x18972a)),_0x167e17),(xe(_0x35ddae,_0x60c24d)[_0xf26800(0x154)]||[])[_0xf26800(0x11f)](function(_0x37efb0,_0x250f77){var _0x32b446=_0xf26800;return Y(_0x37efb0,''[_0x32b446(0x164)](_0x297073,'-')['concat'](_0x35ddae[_0x32b446(0xdf)],'-')[_0x32b446(0x164)](_0x250f77),_0x60c24d,void 0x0,_0x18972a);}));}function De(_0x253a8b,_0x3dca18,_0x3451bf){var _0x5a3a6f=_0x1d2061,_0x3061c9=c({},_0x253a8b[_0x5a3a6f(0x14c)]);_0x3451bf!=null&&_0x3451bf[_0x5a3a6f(0x11a)]&&_0x3061c9['fill']===_0x5a3a6f(0x11a)&&(_0x3061c9[_0x5a3a6f(0x16b)]=_0x3451bf[_0x5a3a6f(0x11a)]),_0x253a8b['tag']==='mask'&&_0x3061c9['id']&&(_0x3061c9['id']=_0x3061c9['id']+_0x3dca18['idSuffix']),Object[_0x5a3a6f(0x146)](_0x3061c9)['forEach'](function(_0x2758ff){var _0x53be68=_0x5a3a6f,_0x11cdb5=_0x2758ff[0x0],_0x2accf6=_0x2758ff[0x1];_0x11cdb5===_0x53be68(0x12e)&&typeof _0x2accf6==_0x53be68(0x150)&&(_0x3061c9[_0x11cdb5]=_0x2accf6[_0x53be68(0x14b)](/url\(#(.*)\)/,_0x53be68(0x160)[_0x53be68(0x164)](_0x3dca18[_0x53be68(0x101)],')')));});var _0x1ab441=_0x3dca18[_0x5a3a6f(0xd9)];return!_0x1ab441||_0x1ab441[_0x5a3a6f(0x119)]===0x0||(_0x253a8b[_0x5a3a6f(0xdf)]==='use'&&_0x3061c9[_0x5a3a6f(0x102)]&&(_0x3061c9['xlink:href']=_0x3061c9[_0x5a3a6f(0x102)]+_0x3dca18['idSuffix']),Object[_0x5a3a6f(0x146)](_0x3061c9)['forEach'](function(_0x1938fc){var _0x8ceccb=_0x5a3a6f,_0x365d31=_0x1938fc[0x0],_0x2d9fcd=_0x1938fc[0x1];typeof _0x2d9fcd==_0x8ceccb(0x150)&&(_0x3061c9[_0x365d31]=_0x2d9fcd[_0x8ceccb(0x14b)](/url\(#(.*)\)/,_0x8ceccb(0x160)[_0x8ceccb(0x164)](_0x3dca18[_0x8ceccb(0x101)],')')));})),_0x3061c9;}function xe(_0x57c66c,_0x3f75cd){var _0x73acae=_0x1d2061,_0x40ed2a,_0x54b3ee=_0x3f75cd[_0x73acae(0xd9)];return!_0x54b3ee||_0x54b3ee[_0x73acae(0x119)]===0x0?_0x57c66c:_0x57c66c['tag']===_0x73acae(0x13c)&&(!((_0x40ed2a=_0x57c66c[_0x73acae(0x154)])===null||_0x40ed2a===void 0x0)&&_0x40ed2a['length'])?c(c({},_0x57c66c),{'children':_0x57c66c['children'][_0x73acae(0x11f)](function(_0x279034){var _0x579247=_0x73acae;return typeof _0x279034[_0x579247(0x14c)]['id']=='string'&&_0x54b3ee&&_0x54b3ee[_0x579247(0x104)](_0x279034[_0x579247(0x14c)]['id'])?c(c({},_0x279034),{'attrs':c(c({},_0x279034[_0x579247(0x14c)]),{'id':_0x279034[_0x579247(0x14c)]['id']+_0x3f75cd[_0x579247(0x101)]})}):_0x279034;})}):_0x57c66c;}function Le(){var _0x18d726=_0x1d2061;return Math['random']()[_0x18d726(0xe1)](0x24)[_0x18d726(0xe2)](0x2,0x8);}W[_0x1d2061(0x176)]=_0x1d2061(0x15e);var ye={'tag':_0x1d2061(0x145),'attrs':{'xmlns':_0x1d2061(0xef),'fill':_0x1d2061(0x162),'viewBox':_0x1d2061(0x13f),'width':_0x1d2061(0x158),'height':_0x1d2061(0x158)},'children':[{'tag':_0x1d2061(0xd1),'attrs':{'fill':'currentColor','d':_0x1d2061(0x138)}},{'tag':_0x1d2061(0xd1),'attrs':{'fill':_0x1d2061(0x16f),'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':'evenodd','clipRule':'evenodd'}}]},B=_0x181876(function(_0x134ef0,_0x21a8f8){var _0x2e2fa9=_0x1d2061;return _0x43b433(W,Object['assign']({},_0x134ef0,{'id':_0x2e2fa9(0xd8),'ref':_0x21a8f8,'icon':ye}));});B[_0x1d2061(0x176)]='LiveShareIcon';var Re=Object[_0x1d2061(0x15a)],Z=(_0x4945f4,_0xb10b67,_0x445c66,_0x4893a6)=>{var _0x4476f9=_0x1d2061;for(var _0x3c51cc=_0x4893a6>0x1?void 0x0:_0x4893a6?Re(_0xb10b67,_0x445c66):_0xb10b67,_0x33bd42=_0x4945f4[_0x4476f9(0x119)]-0x1,_0x501c27;_0x33bd42>=0x0;_0x33bd42--)(_0x501c27=_0x4945f4[_0x33bd42])&&(_0x3c51cc=_0x501c27(_0x3c51cc)||_0x3c51cc);return _0x3c51cc;},f=(_0x348de4,_0x3e7d51)=>(_0x20643b,_0x200493)=>_0x3e7d51(_0x20643b,_0x200493,_0x348de4);let I=class extends _0x2ac371{constructor(_0x4a48a4,_0x1cf881,_0x53401c){var _0x17a61a=_0x1d2061;super(),d(this,'_entities',new Map()),(this[_0x17a61a(0x155)]=_0x4a48a4,this[_0x17a61a(0xf6)]=_0x1cf881,this[_0x17a61a(0xea)]=_0x53401c,this[_0x17a61a(0x16c)]());}async[_0x1d2061(0xec)](_0x5ff3c){var _0x56a3b5=_0x1d2061;return this[_0x56a3b5(0xce)][_0x56a3b5(0x147)](_0x5ff3c)||await this[_0x56a3b5(0x12b)](_0x5ff3c),this[_0x56a3b5(0xce)][_0x56a3b5(0x168)](_0x5ff3c);}[_0x1d2061(0x16c)](){var _0x353ae8=_0x1d2061;this['_univerInstanceService'][_0x353ae8(0x167)](_0xa2c22f[_0x353ae8(0xd5)])[_0x353ae8(0xdd)](_0x3f0d49(this[_0x353ae8(0x173)]))[_0x353ae8(0x11b)](async _0x25172d=>{var _0x18f4af=_0x353ae8;const _0x3a6083=_0x25172d['getUnitId']();this[_0x18f4af(0xce)][_0x18f4af(0x147)](_0x3a6083)||this[_0x18f4af(0x12b)](_0x3a6083);}),this[_0x353ae8(0x155)][_0x353ae8(0xeb)](_0xa2c22f[_0x353ae8(0xd5)])[_0x353ae8(0xdd)](_0x3f0d49(this[_0x353ae8(0x173)]))[_0x353ae8(0x11b)](_0x767fbd=>{var _0x5075f4=_0x353ae8;const _0x1d13a6=_0x767fbd['getUnitId'](),_0x213a30=this[_0x5075f4(0xce)][_0x5075f4(0x168)](_0x1d13a6);_0x213a30==null||_0x213a30[_0x5075f4(0x109)]();});}async[_0x1d2061(0x12b)](_0x2d1539){var _0x55ec85=_0x1d2061;const _0x1a4c3d=await this[_0x55ec85(0xea)]['requireSession'](_0x2d1539),_0x254672=this[_0x55ec85(0xf6)][_0x55ec85(0x153)](C,_0x2d1539,_0x1a4c3d);return _0x254672[_0x55ec85(0x14a)](),this[_0x55ec85(0xce)]['set'](_0x2d1539,_0x254672),_0x254672;}};I=Z([f(0x0,_0x33424e),f(0x1,_0x253fee(_0x57aad1)),f(0x2,_0x253fee(_0x4cd42a))],I);var h=(_0x35ccaf=>(_0x35ccaf['OFFLINE']='offline',_0x35ccaf[_0x1d2061(0x100)]='idle',_0x35ccaf[_0x1d2061(0x117)]='following',_0x35ccaf['NOT_FOLLOWING']=_0x1d2061(0x129),_0x35ccaf[_0x1d2061(0x12a)]=_0x1d2061(0x175),_0x35ccaf))(h||{});const Pe=_0x1d2061(0x141),Ae=0xc8;let C=class extends _0x2ac371{constructor(_0x4499a2,_0xcf3359,_0x15743b,_0x403753,_0x17e1a8){var _0x207318=_0x1d2061;super(),d(this,'_status$',new _0x2a4565('idle')),d(this,_0x207318(0x130),this[_0x207318(0x12d)]['asObservable']()),d(this,'_init',!0x1),d(this,_0x207318(0x10f),null),d(this,'_presenter',null),(this[_0x207318(0xe4)]=_0x4499a2,this['_collabSession']=_0xcf3359,this['_configService']=_0x15743b,this[_0x207318(0x163)]=_0x403753,this[_0x207318(0x125)]=_0x17e1a8);}get[_0x1d2061(0x132)](){var _0x3c3a48=_0x1d2061;return this[_0x3c3a48(0x12d)]['getValue']();}[_0x1d2061(0x109)](){var _0x1d8ed4=_0x1d2061,_0x5bb294;(_0x5bb294=this[_0x1d8ed4(0x10f)])==null||_0x5bb294[_0x1d8ed4(0x109)](),this[_0x1d8ed4(0x12d)][_0x1d8ed4(0x103)]('idle'),this['_status$'][_0x1d8ed4(0x11e)]();}[_0x1d2061(0x14a)](){var _0x2a3546=_0x1d2061;this[_0x2a3546(0x16c)]||(this[_0x2a3546(0x16c)]=!0x0,this['_collabSession'][_0x2a3546(0x10b)]['pipe'](_0x3f0d49(this[_0x2a3546(0x173)]))[_0x2a3546(0x11b)](_0x38a6cb=>{var _0x5303ef=_0x2a3546;switch(_0x38a6cb){case _0x2067be[_0x5303ef(0x17e)]:this[_0x5303ef(0xff)]();break;case _0x2067be[_0x5303ef(0x137)]:this[_0x5303ef(0x15c)]();break;}}),this['_collabSession'][_0x2a3546(0xf4)][_0x2a3546(0xdd)](_0x3f0d49(this[_0x2a3546(0x173)]))['subscribe'](_0x3ef69b=>{var _0x4450cf=_0x2a3546;const {eventID:_0x34f20e}=_0x3ef69b;switch(_0x34f20e){case _0x68e326[_0x4450cf(0xda)]:this['_handleNewHost'](_0x3ef69b);break;case _0x68e326[_0x4450cf(0x15b)]:this[_0x4450cf(0x114)](_0x3ef69b);break;case _0x68e326[_0x4450cf(0x111)]:this[_0x4450cf(0x10e)]();break;case _0x68e326['NEW_CHANGESETS']:this[_0x4450cf(0x142)](_0x3ef69b);break;}}));}['tryStartPresenting'](){var _0x398c10=_0x1d2061;this[_0x398c10(0xfb)][_0x398c10(0xf8)]({'eventID':_0x68e326[_0x398c10(0xf5)],'data':{'unitID':this[_0x398c10(0xe4)],'userID':this[_0x398c10(0xfb)][_0x398c10(0x110)]()}},this[_0x398c10(0xe4)]);}[_0x1d2061(0x16e)](){var _0x46c97f=_0x1d2061;this[_0x46c97f(0x132)]===_0x46c97f(0x175)&&(this[_0x46c97f(0x12d)][_0x46c97f(0x103)]('idle'),this[_0x46c97f(0xfb)][_0x46c97f(0xf8)]({'eventID':_0x68e326[_0x46c97f(0x111)],'data':{'unitID':this[_0x46c97f(0xe4)]}},this[_0x46c97f(0xe4)]));}[_0x1d2061(0xf9)](){var _0x62e876=_0x1d2061;this[_0x62e876(0x132)]==='not-following'&&(this[_0x62e876(0x12d)]['next'](_0x62e876(0x149)),this[_0x62e876(0x128)]());}[_0x1d2061(0x177)](){var _0xf19cf3=_0x1d2061;this[_0xf19cf3(0x132)]===_0xf19cf3(0x149)&&this['_stopFollowing']();}[_0x1d2061(0x127)](_0x11b7ea){var _0x2bbe22=_0x1d2061;const {presenter:_0x5fac1c}=_0x11b7ea[_0x2bbe22(0x15d)],_0x532d2b=this['_collabSession'][_0x2bbe22(0x110)]();this[_0x2bbe22(0xd7)]=_0x5fac1c,_0x5fac1c===_0x532d2b?(this[_0x2bbe22(0x17c)](),this[_0x2bbe22(0x17d)]()):this[_0x2bbe22(0x132)]!=='not-following'&&(this[_0x2bbe22(0xfa)](),this[_0x2bbe22(0x128)]());}[_0x1d2061(0x10c)](){var _0x254434=_0x1d2061;const _0x4ced6f={'eventID':_0x68e326[_0x254434(0x16d)]};this[_0x254434(0xfb)]['send'](_0x4ced6f,this[_0x254434(0xe4)]);}[_0x1d2061(0x10e)](){var _0x19c764=_0x1d2061;this[_0x19c764(0xd7)]=null,this[_0x19c764(0x132)]!==_0x19c764(0x175)&&this[_0x19c764(0x13d)]();}['_handleNewChangeSets'](_0x51a3e5){var _0x10b70d=_0x1d2061;if(this[_0x10b70d(0x132)]===_0x10b70d(0x149)&&this[_0x10b70d(0xd7)]===_0x51a3e5[_0x10b70d(0x15d)][_0x10b70d(0xf3)]){const _0x418104=_0x5bc805(_0x51a3e5[_0x10b70d(0x15d)])[_0x10b70d(0xe0)][_0x10b70d(0x12c)]()[_0x10b70d(0xfc)](_0x2f904b=>_0x2f904b['id']===_0xc429d8['id']);if(_0x418104){const _0xd68611=_0x418104['params'][_0x10b70d(0xe6)],_0x437630=_0x418104[_0x10b70d(0x170)][_0x10b70d(0x171)]['id'];setTimeout(()=>{var _0x1cf163=_0x10b70d;this[_0x1cf163(0x125)][_0x1cf163(0x13b)](_0x2aa18e['id'],{'unitId':_0xd68611,'subUnitId':_0x437630},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xb43744=_0x1d2061;this['_status$']['next'](_0xb43744(0x175));const _0x457d59=new Map(),_0x34f55c=this[_0xb43744(0x10f)]=new _0x25b081();_0x34f55c[_0xb43744(0x136)](_0x48aed0(()=>{var _0x384826=_0xb43744;_0x457d59[_0x384826(0x112)](_0x17d152=>_0x17d152[_0x384826(0x11e)]()),_0x457d59['clear']();})),_0x34f55c['add'](this[_0xb43744(0x125)][_0xb43744(0x148)](_0x1a1d12=>{var _0x62faf4=_0xb43744,_0x4f9f22;if(_0x1a1d12[_0x62faf4(0x14d)]!==_0x382cb4['OPERATION']||!this[_0x62faf4(0x163)][_0x62faf4(0x166)](_0x1a1d12['id']))return;const {id:_0x17ecb5}=_0x1a1d12;let _0x4596b3;_0x457d59[_0x62faf4(0x147)](_0x17ecb5)?_0x4596b3=_0x457d59[_0x62faf4(0x168)](_0x17ecb5):(_0x4596b3=new _0xcf50bc(),_0x457d59[_0x62faf4(0xf7)](_0x17ecb5,_0x4596b3),_0x4596b3[_0x62faf4(0xdd)](_0x461b27((_0x4f9f22=this[_0x62faf4(0xdb)][_0x62faf4(0x134)](Pe))!=null?_0x4f9f22:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x62faf4(0x11b)](_0x5349ad=>{var _0x5c1c77=_0x62faf4;this[_0x5c1c77(0xfb)][_0x5c1c77(0xf8)]({'eventID':_0x68e326[_0x5c1c77(0x15b)],'data':{'unitID':this[_0x5c1c77(0xe4)],'operations':{[_0x5349ad['id']]:{'id':_0x5349ad['id'],'params':JSON[_0x5c1c77(0x106)](_0x5349ad['params'])}}}},this[_0x5c1c77(0xe4)]);})),_0x4596b3[_0x62faf4(0x103)](_0x1a1d12);})),this['_liveShareService'][_0xb43744(0x143)](this[_0xb43744(0xe4)])[_0xb43744(0x112)](_0x5c97e2=>this['_collabSession']['send']({'eventID':_0x68e326[_0xb43744(0x15b)],'data':{'unitID':this[_0xb43744(0xe4)],'operations':{[_0x5c97e2['id']]:{'id':_0x5c97e2['id'],'params':JSON[_0xb43744(0x106)](_0x5c97e2[_0xb43744(0x170)])}}}},this[_0xb43744(0xe4)]));}['_stopPresenting'](){var _0x55c875=_0x1d2061,_0x4a6bfc;this['_status$']['next'](_0x55c875(0x115)),(_0x4a6bfc=this[_0x55c875(0x10f)])==null||_0x4a6bfc[_0x55c875(0x109)](),this['_commandDisposable']=null;}[_0x1d2061(0x128)](){var _0x5917e4=_0x1d2061,_0x4c25ac;(_0x4c25ac=this[_0x5917e4(0x10f)])==null||_0x4c25ac[_0x5917e4(0x109)](),this[_0x5917e4(0x12d)]['next']('following');}[_0x1d2061(0x13d)](){var _0x3360d1=_0x1d2061,_0x200d1f;this[_0x3360d1(0x12d)][_0x3360d1(0x103)](_0x3360d1(0x115)),(_0x200d1f=this[_0x3360d1(0x10f)])==null||_0x200d1f['dispose'](),this[_0x3360d1(0x10f)]=null;}[_0x1d2061(0x17c)](){var _0x4f568b=_0x1d2061,_0x41b231;this[_0x4f568b(0x12d)][_0x4f568b(0x103)](_0x4f568b(0x129)),(_0x41b231=this['_commandDisposable'])==null||_0x41b231[_0x4f568b(0x109)]();}['_handleOperation'](_0x5de271){var _0x3f33ee=_0x1d2061;if([_0x3f33ee(0x175),'not-following',_0x3f33ee(0xde)][_0x3f33ee(0x104)](this[_0x3f33ee(0x132)])||!_0x5de271[_0x3f33ee(0x15d)][_0x3f33ee(0xf1)]||_0x5de271[_0x3f33ee(0x15d)][_0x3f33ee(0xf1)]===this[_0x3f33ee(0xfb)][_0x3f33ee(0x110)]())return;this[_0x3f33ee(0x132)]===_0x3f33ee(0x115)&&this[_0x3f33ee(0x128)]();const _0x425c60=_0x5de271[_0x3f33ee(0x15d)]['operations'];Object[_0x3f33ee(0x120)](_0x425c60)[_0x3f33ee(0x112)](_0x20a5c7=>{var _0xe493c4=_0x3f33ee;this['_commandService']['executeCommand'](_0x20a5c7['id'],_0x20a5c7['params']?JSON[_0xe493c4(0x17b)](_0x20a5c7['params']):null,{'fromCollab':!0x0});});}[_0x1d2061(0xff)](){var _0x534ae3=_0x1d2061,_0x3bab3e;this[_0x534ae3(0x12d)][_0x534ae3(0x103)](_0x534ae3(0xde)),(_0x3bab3e=this[_0x534ae3(0x10f)])==null||_0x3bab3e[_0x534ae3(0x109)]();}[_0x1d2061(0x15c)](){var _0x4a5c8f=_0x1d2061;this['_status$'][_0x4a5c8f(0x103)](_0x4a5c8f(0x115)),this[_0x4a5c8f(0x10c)]();}};C=Z([f(0x2,_0xa95083),f(0x3,_0x253fee(L)),f(0x4,_0x4e7867)],C);function Te(){var _0xf7f46a=_0x1d2061;const _0xf4e780=_0x37b90a(I),_0x310cd7=_0x37b90a(_0x33424e),_0x571020=_0x33fa75(()=>_0x310cd7[_0xf7f46a(0xfe)](_0xa2c22f[_0xf7f46a(0xd5)]),void 0x0,!0x1,[]),[_0x1dd626,_0x5becf5]=_0x1669ac(null),[_0x260d25,_0x4ab75c]=_0x1669ac(h[_0xf7f46a(0x100)]),_0x15bb17=_0xec2e7b(null);return _0x483153(()=>(_0x571020&&_0xf4e780[_0xf7f46a(0xec)](_0x571020[_0xf7f46a(0x156)]())[_0xf7f46a(0x169)](_0x3631a1=>{var _0xcbe0c5=_0xf7f46a;_0x5becf5(_0x3631a1),_0x15bb17[_0xcbe0c5(0x144)]=_0x3631a1[_0xcbe0c5(0x130)]['subscribe'](_0xd47ecb=>{_0x4ab75c(_0xd47ecb);});}),()=>{var _0x5b3e1c=_0xf7f46a,_0x34064f;(_0x34064f=_0x15bb17[_0x5b3e1c(0x144)])==null||_0x34064f[_0x5b3e1c(0x14f)](),_0x15bb17[_0x5b3e1c(0x144)]=null;}),[_0x571020,_0xf4e780]),_0x1dd626?_0x1e62c2(_0x2f9467,{'align':_0xf7f46a(0xe3),'disabled':_0x260d25===h[_0xf7f46a(0x17e)],'className':_0xf7f46a(0x124),'overlay':_0x1e62c2($e,{'status':_0x260d25,'coordinator':_0x1dd626}),'children':_0x1e62c2(_0xf7f46a(0xfd),{'className':_0x3df6c9(_0xf7f46a(0x10a),{'univer-cursor-not-allowed':_0x260d25===h[_0xf7f46a(0x17e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x260d25!==h[_0xf7f46a(0x17e)]}),'type':_0xf7f46a(0xfd),'children':_0x1e62c2(B,{'className':_0xf7f46a(0x140)})})}):null;}function $e(_0x4ab5d3){var _0x2c4dda=_0x1d2061;const {status:_0x5948e3,coordinator:_0x1e6e89}=_0x4ab5d3;switch(_0x5948e3){case h[_0x2c4dda(0x100)]:return _0x1e62c2(Fe,{'coordinator':_0x1e6e89});case h[_0x2c4dda(0x117)]:return _0x1e62c2(He,{'coordinator':_0x1e6e89});case h[_0x2c4dda(0x116)]:return _0x1e62c2(je,{'coordinator':_0x1e6e89});case h['OFFLINE']:return _0x1e62c2(Ve,{});case h[_0x2c4dda(0x12a)]:return _0x1e62c2(Ue,{'coordinator':_0x1e6e89});default:return null;}}function Fe(_0x568cab){var _0x2b2b33=_0x1d2061;const {coordinator:_0x28bab8}=_0x568cab;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2(_0x2b2b33(0xed),{'className':_0x2b2b33(0x178),'children':_0x2b2b33(0xd0)}),_0x1e62c2(_0x5a17cb,{'onClick':()=>_0x28bab8[_0x2b2b33(0x161)](),'children':_0x2b2b33(0xe9)})]});}function He(_0x1fd0f8){var _0x149305=_0x1d2061;const {coordinator:_0x4cee6a}=_0x1fd0f8;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2('div',{'className':_0x149305(0x178),'children':_0x149305(0x11d)}),_0x1e62c2(_0x5a17cb,{'onClick':()=>_0x4cee6a[_0x149305(0x177)](),'children':'Stop\x20following'})]});}function je(_0x3db4e5){var _0x5ec24b=_0x1d2061;const {coordinator:_0x3feaed}=_0x3db4e5;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2(_0x5ec24b(0xed),{'className':_0x5ec24b(0x178),'children':_0x5ec24b(0x108)}),_0x1e62c2(_0x5a17cb,{'variant':_0x5ec24b(0x14e),'onClick':()=>_0x3feaed[_0x5ec24b(0xf9)](),'children':'Start\x20following'})]});}function Ue(_0x5d5393){var _0x5bccdf=_0x1d2061;const {coordinator:_0x1eb76c}=_0x5d5393;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2('div',{'className':_0x5bccdf(0x178),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x1e62c2(_0x5a17cb,{'variant':'default','onClick':()=>_0x1eb76c['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x4d80a3=_0x1d2061;return _0x1e62c2(_0x4b49ed,{'children':_0x4d80a3(0x12f)});}var Me=Object[_0x1d2061(0x15a)],ke=(_0x5f3770,_0x578690,_0x4875f0,_0x55609e)=>{var _0x40f501=_0x1d2061;for(var _0x558ede=_0x55609e>0x1?void 0x0:_0x55609e?Me(_0x578690,_0x4875f0):_0x578690,_0x354389=_0x5f3770[_0x40f501(0x119)]-0x1,_0x43a533;_0x354389>=0x0;_0x354389--)(_0x43a533=_0x5f3770[_0x354389])&&(_0x558ede=_0x43a533(_0x558ede)||_0x558ede);return _0x558ede;},$=(_0x2276c7,_0x560b84)=>(_0x3949cf,_0x534f13)=>_0x560b84(_0x3949cf,_0x534f13,_0x2276c7);let b=class extends _0x3ee941{constructor(_0x595b0e,_0x4a7cb4){var _0x40d2bb=_0x1d2061;super(),this[_0x40d2bb(0xf6)]=_0x595b0e,this[_0x40d2bb(0x16a)]=_0x4a7cb4,this[_0x40d2bb(0xf2)]();}[_0x1d2061(0xf2)](){var _0x45ea31=_0x1d2061;this['disposeWithMe'](this[_0x45ea31(0x16a)]['registerComponent'](_0x5b8b60[_0x45ea31(0xe8)],()=>_0x1e3e05(Te,this[_0x45ea31(0xf6)])));}};b=ke([$(0x0,_0x253fee(_0x57aad1)),$(0x1,_0x3fcef6)],b);var Ge=Object[_0x1d2061(0xf0)],We=Object[_0x1d2061(0x15a)],Ye=(_0x208938,_0x331e17,_0x134bde)=>_0x331e17 in _0x208938?Ge(_0x208938,_0x331e17,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x134bde}):_0x208938[_0x331e17]=_0x134bde,Be=(_0x1a4f79,_0x3a0100,_0x511f08,_0x2b4a2e)=>{var _0x35183f=_0x1d2061;for(var _0x4e7eb2=_0x2b4a2e>0x1?void 0x0:_0x2b4a2e?We(_0x3a0100,_0x511f08):_0x3a0100,_0x477017=_0x1a4f79[_0x35183f(0x119)]-0x1,_0x3ef9bc;_0x477017>=0x0;_0x477017--)(_0x3ef9bc=_0x1a4f79[_0x477017])&&(_0x4e7eb2=_0x3ef9bc(_0x4e7eb2)||_0x4e7eb2);return _0x4e7eb2;},F=(_0x50b941,_0x3b683e)=>(_0x13cfd4,_0x506198)=>_0x3b683e(_0x13cfd4,_0x506198,_0x50b941),J=(_0x21c049,_0x3d5f05,_0x48afaf)=>Ye(_0x21c049,typeof _0x3d5f05!=_0x1d2061(0xd4)?_0x3d5f05+'':_0x3d5f05,_0x48afaf);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x2dc2c4{constructor(_0x452d74=T,_0x1bc2bf,_0xbf81e4){var _0x2b104b=_0x1d2061;super(),this[_0x2b104b(0x10d)]=_0x452d74,this[_0x2b104b(0xf6)]=_0x1bc2bf,this['_configService']=_0xbf81e4;const {..._0x3f77d9}=_0x4db2d4({},T,this[_0x2b104b(0x10d)]);this['_configService']['setConfig'](Oe,_0x3f77d9);}[_0x1d2061(0x17a)](){var _0x30f2d8=_0x1d2061;_0x5d2766(this[_0x30f2d8(0xf6)],_0x4e7ffe([[L],[I],[m],[b]],this[_0x30f2d8(0x10d)][_0x30f2d8(0x122)])),_0x86b33f(this[_0x30f2d8(0xf6)],[[m]]);}[_0x1d2061(0xdc)](){_0x86b33f(this['_injector'],[[b]]);}};J(O,_0x1d2061(0x14d),_0xa2c22f['UNIVER_UNKNOWN']),J(O,_0x1d2061(0x172),Ze),O=Be([_0x394549(_0x3e8e9b),F(0x1,_0x253fee(_0x57aad1)),F(0x2,_0xa95083)],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 _0x2ba189=_0xfcac;(function(_0x1905d8,_0x33b72b){var _0x4f7654=_0xfcac,_0x4f2131=_0x1905d8();while(!![]){try{var _0x197022=-parseInt(_0x4f7654(0xcd))/0x1+-parseInt(_0x4f7654(0x158))/0x2*(parseInt(_0x4f7654(0xd5))/0x3)+-parseInt(_0x4f7654(0x101))/0x4+-parseInt(_0x4f7654(0x104))/0x5+parseInt(_0x4f7654(0xc2))/0x6+-parseInt(_0x4f7654(0x132))/0x7*(-parseInt(_0x4f7654(0x161))/0x8)+parseInt(_0x4f7654(0x13c))/0x9;if(_0x197022===_0x33b72b)break;else _0x4f2131['push'](_0x4f2131['shift']());}catch(_0x1cd761){_0x4f2131['push'](_0x4f2131['shift']());}}}(_0x1996,0xbe0ef));var q=Object[_0x2ba189(0xee)],z=(_0x5dd512,_0xaeb118,_0x3fae0e)=>_0xaeb118 in _0x5dd512?q(_0x5dd512,_0xaeb118,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fae0e}):_0x5dd512[_0xaeb118]=_0x3fae0e,d=(_0x2acde4,_0x498f96,_0x2b84da)=>z(_0x2acde4,typeof _0x498f96!=_0x2ba189(0x12c)?_0x498f96+'':_0x498f96,_0x2b84da);import{CollaborationSessionService as _0x1906a9,SessionStatus as _0xf4d28f,UniverCollaborationClientPlugin as _0x310d0b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3d8687,toDisposable as _0x2ba396,Inject as _0x42fbcf,IUniverInstanceService as _0xb5d125,Injector as _0x2f3b08,IConfigService as _0x5584c0,ICommandService as _0x4c13df,RxDisposable as _0x3fd1be,UniverInstanceType as _0x10b104,DisposableCollection as _0x50b462,CommandType as _0x505bfe,DependentOn as _0x190077,Plugin as _0x1d1513,merge as _0x5e17a8,registerDependencies as _0xa89634,mergeOverrideWithDependencies as _0x2fd152,touchDependencies as _0x1ebd0f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x2c4fe6,InsertSheetMutation as _0x56c568}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x160d91,SetScrollOperation as _0x39f42a}from'@univerjs/sheets-ui';import{useDependency as _0x5dc14c,useObservable as _0x1c3067,IUIPartsService as _0x5ca397,BuiltInUIPart as _0x19435c,connectInjector as _0x40f9b9}from'@univerjs/ui';import{jsx as _0x273a27,jsxs as _0x262791,Fragment as _0xfe85f2}from'react/jsx-runtime';import{Dropdown as _0x35e311,clsx as _0x348ec7,Button as _0x1ce9af}from'@univerjs/design';import{forwardRef as _0x583cf3,useRef as _0x1f0119,createElement as _0xfd8b51,useState as _0x5e6230,useEffect as _0x400d7d}from'react';import{CollaborationEvent as _0x277758,parseProtocolChangeset as _0x24cf23}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x433ede,Subject as _0x49f39a}from'rxjs';import{takeUntil as _0x55b894,throttleTime as _0x27469d}from'rxjs/operators';const Oe=_0x2ba189(0x141),T={};class L extends _0x3d8687{constructor(){var _0x3d4eb6=_0x2ba189;super(...arguments),d(this,_0x3d4eb6(0xf5),new Set()),d(this,_0x3d4eb6(0x16a),new Set());}[_0x2ba189(0xd3)](_0xe35bb7){var _0x32992b=_0x2ba189;return this[_0x32992b(0xf5)][_0x32992b(0x142)](_0xe35bb7),_0x2ba396(()=>this[_0x32992b(0xf5)][_0x32992b(0x13e)](_0xe35bb7));}[_0x2ba189(0x119)](_0x6f5a78){var _0x195fcd=_0x2ba189;return this[_0x195fcd(0x16a)][_0x195fcd(0x142)](_0x6f5a78),_0x2ba396(()=>this[_0x195fcd(0x16a)][_0x195fcd(0x13e)](_0x6f5a78));}[_0x2ba189(0x16e)](_0x35ed18){var _0x13b2f5=_0x2ba189;return this[_0x13b2f5(0xf5)][_0x13b2f5(0x14f)](_0x35ed18);}[_0x2ba189(0x108)](_0x249eb2){var _0x364412=_0x2ba189;return Array[_0x364412(0x13f)](this['_reporters'])[_0x364412(0xc5)](_0x55637f=>_0x55637f(_0x249eb2));}}var Ee=Object[_0x2ba189(0x126)],we=(_0x511fb8,_0x96fbdf,_0x1d7e4e,_0x272951)=>{for(var _0x5c6f4a=_0x272951>0x1?void 0x0:_0x272951?Ee(_0x96fbdf,_0x1d7e4e):_0x96fbdf,_0x4d8560=_0x511fb8['length']-0x1,_0x479c33;_0x4d8560>=0x0;_0x4d8560--)(_0x479c33=_0x511fb8[_0x4d8560])&&(_0x5c6f4a=_0x479c33(_0x5c6f4a)||_0x5c6f4a);return _0x5c6f4a;},Ne=(_0x52989b,_0x304db8)=>(_0x10dd47,_0x81383a)=>_0x304db8(_0x10dd47,_0x81383a,_0x52989b);let m=class extends _0x3d8687{constructor(_0x2fcf28){var _0x3e0278=_0x2ba189;super(),this[_0x3e0278(0x137)]=_0x2fcf28,this['_init']();}[_0x2ba189(0x124)](){var _0x5bdf0b=_0x2ba189;[_0x160d91['id'],_0x39f42a['id'],_0x2c4fe6['id']][_0x5bdf0b(0x154)](_0x23c674=>{var _0x3860c4=_0x5bdf0b;this[_0x3860c4(0xd6)](this[_0x3860c4(0x137)]['registerSharedOperation'](_0x23c674));});}};m=we([Ne(0x0,_0x42fbcf(L))],m);var c=function(){var _0x18874c=_0x2ba189;return c=Object[_0x18874c(0x165)]||function(_0x3318ee){var _0x2ae94c=_0x18874c;for(var _0x360050,_0x348d12=0x1,_0x267e5b=arguments[_0x2ae94c(0xe0)];_0x348d12<_0x267e5b;_0x348d12++){_0x360050=arguments[_0x348d12];for(var _0x1f042c in _0x360050)Object[_0x2ae94c(0x11f)][_0x2ae94c(0xca)][_0x2ae94c(0x15e)](_0x360050,_0x1f042c)&&(_0x3318ee[_0x1f042c]=_0x360050[_0x1f042c]);}return _0x3318ee;},c[_0x18874c(0xf3)](this,arguments);},Ce=function(_0x135f5a,_0x4a0a98){var _0x1be792=_0x2ba189,_0x3b507d={};for(var _0x69ad38 in _0x135f5a)Object[_0x1be792(0x11f)][_0x1be792(0xca)][_0x1be792(0x15e)](_0x135f5a,_0x69ad38)&&_0x4a0a98['indexOf'](_0x69ad38)<0x0&&(_0x3b507d[_0x69ad38]=_0x135f5a[_0x69ad38]);if(_0x135f5a!=null&&typeof Object[_0x1be792(0x13a)]==_0x1be792(0xf8)){for(var _0x177bd0=0x0,_0x69ad38=Object[_0x1be792(0x13a)](_0x135f5a);_0x177bd0<_0x69ad38[_0x1be792(0xe0)];_0x177bd0++)_0x4a0a98[_0x1be792(0x103)](_0x69ad38[_0x177bd0])<0x0&&Object[_0x1be792(0x11f)]['propertyIsEnumerable'][_0x1be792(0x15e)](_0x135f5a,_0x69ad38[_0x177bd0])&&(_0x3b507d[_0x69ad38[_0x177bd0]]=_0x135f5a[_0x69ad38[_0x177bd0]]);}return _0x3b507d;},W=_0x583cf3(function(_0x7552b0,_0x113a0b){var _0x1cfd40=_0x2ba189,_0x3f6d8f=_0x7552b0[_0x1cfd40(0x106)],_0x323d5e=_0x7552b0['id'],_0x26ee8d=_0x7552b0['className'],_0x6d5b6=_0x7552b0[_0x1cfd40(0x100)],_0x354399=Ce(_0x7552b0,[_0x1cfd40(0x106),'id',_0x1cfd40(0x152),_0x1cfd40(0x100)]),_0x275653=_0x1cfd40(0x12b)['concat'](_0x323d5e,'\x20')[_0x1cfd40(0x10f)](_0x26ee8d||'')[_0x1cfd40(0x105)](),_0x1492b3=_0x1f0119('_'[_0x1cfd40(0x10f)](Le()));return Y(_0x3f6d8f,''[_0x1cfd40(0x10f)](_0x323d5e),{'defIds':_0x3f6d8f[_0x1cfd40(0xda)],'idSuffix':_0x1492b3['current']},c({'ref':_0x113a0b,'className':_0x275653},_0x354399),_0x6d5b6);});function Y(_0x59615f,_0x58bc6f,_0x3063df,_0x333281,_0x21d679){var _0x197ac5=_0x2ba189;return _0xfd8b51(_0x59615f[_0x197ac5(0x16d)],c(c({'key':_0x58bc6f},De(_0x59615f,_0x3063df,_0x21d679)),_0x333281),(xe(_0x59615f,_0x3063df)[_0x197ac5(0xe9)]||[])[_0x197ac5(0xc5)](function(_0x319446,_0x102170){var _0x128779=_0x197ac5;return Y(_0x319446,''[_0x128779(0x10f)](_0x58bc6f,'-')['concat'](_0x59615f[_0x128779(0x16d)],'-')[_0x128779(0x10f)](_0x102170),_0x3063df,void 0x0,_0x21d679);}));}function De(_0x4ba5b4,_0x21625a,_0x3215b3){var _0x1d93c6=_0x2ba189,_0x23c242=c({},_0x4ba5b4[_0x1d93c6(0x123)]);_0x3215b3!=null&&_0x3215b3[_0x1d93c6(0x130)]&&_0x23c242[_0x1d93c6(0x168)]===_0x1d93c6(0x130)&&(_0x23c242[_0x1d93c6(0x168)]=_0x3215b3['colorChannel1']),_0x4ba5b4[_0x1d93c6(0x16d)]===_0x1d93c6(0xeb)&&_0x23c242['id']&&(_0x23c242['id']=_0x23c242['id']+_0x21625a[_0x1d93c6(0x11a)]),Object[_0x1d93c6(0x145)](_0x23c242)['forEach'](function(_0x56e08c){var _0xb29cce=_0x1d93c6,_0x1e5b70=_0x56e08c[0x0],_0x1d827b=_0x56e08c[0x1];_0x1e5b70===_0xb29cce(0xeb)&&typeof _0x1d827b==_0xb29cce(0xdd)&&(_0x23c242[_0x1e5b70]=_0x1d827b['replace'](/url\(#(.*)\)/,_0xb29cce(0x111)[_0xb29cce(0x10f)](_0x21625a[_0xb29cce(0x11a)],')')));});var _0x24b441=_0x21625a['defIds'];return!_0x24b441||_0x24b441[_0x1d93c6(0xe0)]===0x0||(_0x4ba5b4[_0x1d93c6(0x16d)]===_0x1d93c6(0xe8)&&_0x23c242[_0x1d93c6(0xfa)]&&(_0x23c242[_0x1d93c6(0xfa)]=_0x23c242[_0x1d93c6(0xfa)]+_0x21625a[_0x1d93c6(0x11a)]),Object[_0x1d93c6(0x145)](_0x23c242)[_0x1d93c6(0x154)](function(_0x59eaea){var _0x1fbef4=_0x1d93c6,_0x19635d=_0x59eaea[0x0],_0x4f484a=_0x59eaea[0x1];typeof _0x4f484a==_0x1fbef4(0xdd)&&(_0x23c242[_0x19635d]=_0x4f484a[_0x1fbef4(0x15c)](/url\(#(.*)\)/,_0x1fbef4(0x111)[_0x1fbef4(0x10f)](_0x21625a[_0x1fbef4(0x11a)],')')));})),_0x23c242;}function xe(_0x1cc124,_0x25b15f){var _0x3dde88=_0x2ba189,_0x21cf37,_0x178fd6=_0x25b15f[_0x3dde88(0xda)];return!_0x178fd6||_0x178fd6[_0x3dde88(0xe0)]===0x0?_0x1cc124:_0x1cc124[_0x3dde88(0x16d)]===_0x3dde88(0xc4)&&(!((_0x21cf37=_0x1cc124[_0x3dde88(0xe9)])===null||_0x21cf37===void 0x0)&&_0x21cf37[_0x3dde88(0xe0)])?c(c({},_0x1cc124),{'children':_0x1cc124[_0x3dde88(0xe9)][_0x3dde88(0xc5)](function(_0x27e532){var _0x10a542=_0x3dde88;return typeof _0x27e532['attrs']['id']==_0x10a542(0xdd)&&_0x178fd6&&_0x178fd6['includes'](_0x27e532[_0x10a542(0x123)]['id'])?c(c({},_0x27e532),{'attrs':c(c({},_0x27e532['attrs']),{'id':_0x27e532[_0x10a542(0x123)]['id']+_0x25b15f[_0x10a542(0x11a)]})}):_0x27e532;})}):_0x1cc124;}function Le(){var _0x3ee525=_0x2ba189;return Math[_0x3ee525(0x11c)]()[_0x3ee525(0x170)](0x24)[_0x3ee525(0x135)](0x2,0x8);}W[_0x2ba189(0xc1)]='UniverIcon';var ye={'tag':_0x2ba189(0x169),'attrs':{'xmlns':_0x2ba189(0xe6),'fill':_0x2ba189(0x11e),'viewBox':_0x2ba189(0x10c),'width':_0x2ba189(0x12d),'height':_0x2ba189(0x12d)},'children':[{'tag':_0x2ba189(0x15d),'attrs':{'fill':_0x2ba189(0x167),'d':_0x2ba189(0x117)}},{'tag':'path','attrs':{'fill':_0x2ba189(0x167),'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':'evenodd','clipRule':'evenodd'}}]},B=_0x583cf3(function(_0xd445ed,_0x16a099){var _0x3621dd=_0x2ba189;return _0xfd8b51(W,Object[_0x3621dd(0x165)]({},_0xd445ed,{'id':'live-share-icon','ref':_0x16a099,'icon':ye}));});B[_0x2ba189(0xc1)]='LiveShareIcon';var Re=Object[_0x2ba189(0x126)],Z=(_0x2b4632,_0x7ff1c4,_0x3045e1,_0x385943)=>{for(var _0xd29a4a=_0x385943>0x1?void 0x0:_0x385943?Re(_0x7ff1c4,_0x3045e1):_0x7ff1c4,_0x4aee79=_0x2b4632['length']-0x1,_0x41ac39;_0x4aee79>=0x0;_0x4aee79--)(_0x41ac39=_0x2b4632[_0x4aee79])&&(_0xd29a4a=_0x41ac39(_0xd29a4a)||_0xd29a4a);return _0xd29a4a;},f=(_0x59ae78,_0x546496)=>(_0x2358ac,_0x430c52)=>_0x546496(_0x2358ac,_0x430c52,_0x59ae78);let I=class extends _0x3fd1be{constructor(_0x21e8d0,_0x4ca8eb,_0x341af1){var _0x3d2e96=_0x2ba189;super(),d(this,_0x3d2e96(0xf9),new Map()),(this[_0x3d2e96(0x164)]=_0x21e8d0,this['_injector']=_0x4ca8eb,this[_0x3d2e96(0x15b)]=_0x341af1,this[_0x3d2e96(0x124)]());}async['getLiveShareCoordinator'](_0x3b2b8c){var _0x9ba75e=_0x2ba189;return this[_0x9ba75e(0xf9)][_0x9ba75e(0x14f)](_0x3b2b8c)||await this['_startLiveShareCoordinator'](_0x3b2b8c),this['_entities'][_0x9ba75e(0x15f)](_0x3b2b8c);}[_0x2ba189(0x124)](){var _0x892f87=_0x2ba189;this[_0x892f87(0x164)][_0x892f87(0x129)](_0x10b104[_0x892f87(0xd2)])['pipe'](_0x55b894(this['dispose$']))[_0x892f87(0x116)](async _0x524419=>{var _0x119959=_0x892f87;const _0x25c57b=_0x524419[_0x119959(0x14a)]();this[_0x119959(0xf9)][_0x119959(0x14f)](_0x25c57b)||this[_0x119959(0x122)](_0x25c57b);}),this[_0x892f87(0x164)][_0x892f87(0xf2)](_0x10b104['UNIVER_SHEET'])[_0x892f87(0x110)](_0x55b894(this[_0x892f87(0xe5)]))[_0x892f87(0x116)](_0x2d023c=>{var _0x1a3bf0=_0x892f87;const _0x273e04=_0x2d023c[_0x1a3bf0(0x14a)](),_0x240e76=this[_0x1a3bf0(0xf9)][_0x1a3bf0(0x15f)](_0x273e04);_0x240e76==null||_0x240e76['dispose']();});}async[_0x2ba189(0x122)](_0x50aa5e){var _0x1f8771=_0x2ba189;const _0x2429fc=await this[_0x1f8771(0x15b)][_0x1f8771(0xc8)](_0x50aa5e),_0x4469aa=this['_injector']['createInstance'](C,_0x50aa5e,_0x2429fc);return _0x4469aa[_0x1f8771(0xcb)](),this[_0x1f8771(0xf9)][_0x1f8771(0x147)](_0x50aa5e,_0x4469aa),_0x4469aa;}};I=Z([f(0x0,_0xb5d125),f(0x1,_0x42fbcf(_0x2f3b08)),f(0x2,_0x42fbcf(_0x1906a9))],I);function _0xfcac(_0xee6ad5,_0x4b4728){var _0x1996e9=_0x1996();return _0xfcac=function(_0xfcacc4,_0x45bd97){_0xfcacc4=_0xfcacc4-0xc1;var _0x15f217=_0x1996e9[_0xfcacc4];return _0x15f217;},_0xfcac(_0xee6ad5,_0x4b4728);}var h=(_0x17b5d7=>(_0x17b5d7[_0x2ba189(0xc3)]='offline',_0x17b5d7[_0x2ba189(0xdc)]=_0x2ba189(0x15a),_0x17b5d7['FOLLOWING']=_0x2ba189(0xea),_0x17b5d7[_0x2ba189(0x10e)]=_0x2ba189(0x14e),_0x17b5d7['PRESENTING']=_0x2ba189(0x13b),_0x17b5d7))(h||{});const Pe=_0x2ba189(0x16c),Ae=0xc8;let C=class extends _0x3fd1be{constructor(_0x1e7d7e,_0x5c3db9,_0x98429b,_0x4007f2,_0xab35ed){var _0x323908=_0x2ba189;super(),d(this,_0x323908(0x136),new _0x433ede(_0x323908(0x15a))),d(this,_0x323908(0xed),this['_status$'][_0x323908(0xcc)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x323908(0x140),null),(this[_0x323908(0xe1)]=_0x1e7d7e,this['_collabSession']=_0x5c3db9,this[_0x323908(0x16f)]=_0x98429b,this[_0x323908(0x137)]=_0x4007f2,this[_0x323908(0x143)]=_0xab35ed);}get['_status'](){var _0x2039fb=_0x2ba189;return this[_0x2039fb(0x136)]['getValue']();}['dispose'](){var _0xfb5dd4=_0x2ba189,_0x1bbaf1;(_0x1bbaf1=this['_commandDisposable'])==null||_0x1bbaf1[_0xfb5dd4(0xfd)](),this[_0xfb5dd4(0x136)][_0xfb5dd4(0x112)](_0xfb5dd4(0x15a)),this[_0xfb5dd4(0x136)][_0xfb5dd4(0x13d)]();}[_0x2ba189(0xcb)](){var _0x2c1af6=_0x2ba189;this[_0x2c1af6(0x124)]||(this[_0x2c1af6(0x124)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0x55b894(this[_0x2c1af6(0xe5)]))[_0x2c1af6(0x116)](_0x2309ab=>{var _0xb798b=_0x2c1af6;switch(_0x2309ab){case _0xf4d28f['OFFLINE']:this[_0xb798b(0x144)]();break;case _0xf4d28f['ONLINE']:this[_0xb798b(0x159)]();break;}}),this[_0x2c1af6(0xd9)][_0x2c1af6(0xd8)]['pipe'](_0x55b894(this[_0x2c1af6(0xe5)]))[_0x2c1af6(0x116)](_0x3b71ce=>{var _0x107beb=_0x2c1af6;const {eventID:_0x3716b4}=_0x3b71ce;switch(_0x3716b4){case _0x277758[_0x107beb(0x131)]:this[_0x107beb(0x163)](_0x3b71ce);break;case _0x277758[_0x107beb(0xfe)]:this[_0x107beb(0x134)](_0x3b71ce);break;case _0x277758[_0x107beb(0x16b)]:this[_0x107beb(0xd4)]();break;case _0x277758[_0x107beb(0x133)]:this[_0x107beb(0xde)](_0x3b71ce);break;}}));}[_0x2ba189(0x139)](){var _0x26d84e=_0x2ba189;this[_0x26d84e(0xd9)][_0x26d84e(0x115)]({'eventID':_0x277758[_0x26d84e(0xfc)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x26d84e(0xe1)]);}[_0x2ba189(0x156)](){var _0x50abdb=_0x2ba189;this[_0x50abdb(0xcf)]===_0x50abdb(0x13b)&&(this['_status$'][_0x50abdb(0x112)](_0x50abdb(0x15a)),this[_0x50abdb(0xd9)][_0x50abdb(0x115)]({'eventID':_0x277758['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x50abdb(0xe1)]));}[_0x2ba189(0x150)](){var _0x3736f1=_0x2ba189;this[_0x3736f1(0xcf)]===_0x3736f1(0x14e)&&(this[_0x3736f1(0x136)]['next'](_0x3736f1(0xea)),this[_0x3736f1(0xe3)]());}[_0x2ba189(0xd7)](){var _0x49d4d9=_0x2ba189;this[_0x49d4d9(0xcf)]===_0x49d4d9(0xea)&&this[_0x49d4d9(0x153)]();}['_handleNewHost'](_0x58cfc1){var _0x2d4211=_0x2ba189;const {presenter:_0x1e9af8}=_0x58cfc1[_0x2d4211(0x157)],_0x2c0d9d=this[_0x2d4211(0xd9)][_0x2d4211(0xf6)]();this[_0x2d4211(0x140)]=_0x1e9af8,_0x1e9af8===_0x2c0d9d?(this[_0x2d4211(0x153)](),this['_startPresenting']()):this[_0x2d4211(0xcf)]!=='not-following'&&(this['_stopPresenting'](),this[_0x2d4211(0xe3)]());}[_0x2ba189(0xec)](){var _0x4bc6e2=_0x2ba189;const _0x44375a={'eventID':_0x277758['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x4bc6e2(0x115)](_0x44375a,this[_0x4bc6e2(0xe1)]);}[_0x2ba189(0xd4)](){var _0x163a3b=_0x2ba189;this[_0x163a3b(0x140)]=null,this[_0x163a3b(0xcf)]!==_0x163a3b(0x13b)&&this['_beIdle']();}[_0x2ba189(0xde)](_0x720019){var _0x531ca8=_0x2ba189;if(this[_0x531ca8(0xcf)]===_0x531ca8(0xea)&&this[_0x531ca8(0x140)]===_0x720019[_0x531ca8(0x157)]['memberID']){const _0x329c7a=_0x24cf23(_0x720019['data'])[_0x531ca8(0x127)][_0x531ca8(0x138)]()[_0x531ca8(0x166)](_0xf269a9=>_0xf269a9['id']===_0x56c568['id']);if(_0x329c7a){const _0x120039=_0x329c7a[_0x531ca8(0x109)][_0x531ca8(0x121)],_0x279837=_0x329c7a[_0x531ca8(0x109)]['sheet']['id'];setTimeout(()=>{var _0x2aebe1=_0x531ca8;this[_0x2aebe1(0x143)][_0x2aebe1(0xf4)](_0x2c4fe6['id'],{'unitId':_0x120039,'subUnitId':_0x279837},{'fromCollab':!0x0});});}}}[_0x2ba189(0xf1)](){var _0x6d5684=_0x2ba189;this[_0x6d5684(0x136)][_0x6d5684(0x112)](_0x6d5684(0x13b));const _0x1ee16a=new Map(),_0xe046f5=this[_0x6d5684(0xdf)]=new _0x50b462();_0xe046f5[_0x6d5684(0x142)](_0x2ba396(()=>{_0x1ee16a['forEach'](_0x40489a=>_0x40489a['complete']()),_0x1ee16a['clear']();})),_0xe046f5['add'](this[_0x6d5684(0x143)][_0x6d5684(0x146)](_0x1f3493=>{var _0x22be56=_0x6d5684,_0x5de6fc;if(_0x1f3493[_0x22be56(0x151)]!==_0x505bfe['OPERATION']||!this['_liveShareService'][_0x22be56(0x16e)](_0x1f3493['id']))return;const {id:_0x163c40}=_0x1f3493;let _0x5f0b0d;_0x1ee16a['has'](_0x163c40)?_0x5f0b0d=_0x1ee16a['get'](_0x163c40):(_0x5f0b0d=new _0x49f39a(),_0x1ee16a[_0x22be56(0x147)](_0x163c40,_0x5f0b0d),_0x5f0b0d[_0x22be56(0x110)](_0x27469d((_0x5de6fc=this[_0x22be56(0x16f)][_0x22be56(0x102)](Pe))!=null?_0x5de6fc:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x22be56(0x116)](_0x123fe5=>{var _0x33af89=_0x22be56;this[_0x33af89(0xd9)]['send']({'eventID':_0x277758[_0x33af89(0xfe)],'data':{'unitID':this[_0x33af89(0xe1)],'operations':{[_0x123fe5['id']]:{'id':_0x123fe5['id'],'params':JSON[_0x33af89(0x14b)](_0x123fe5[_0x33af89(0x109)])}}}},this[_0x33af89(0xe1)]);})),_0x5f0b0d[_0x22be56(0x112)](_0x1f3493);})),this[_0x6d5684(0x137)][_0x6d5684(0x108)](this[_0x6d5684(0xe1)])[_0x6d5684(0x154)](_0x32e783=>this['_collabSession'][_0x6d5684(0x115)]({'eventID':_0x277758[_0x6d5684(0xfe)],'data':{'unitID':this[_0x6d5684(0xe1)],'operations':{[_0x32e783['id']]:{'id':_0x32e783['id'],'params':JSON['stringify'](_0x32e783[_0x6d5684(0x109)])}}}},this[_0x6d5684(0xe1)]));}[_0x2ba189(0xc9)](){var _0x2ded01=_0x2ba189,_0x4bdd29;this[_0x2ded01(0x136)][_0x2ded01(0x112)](_0x2ded01(0x15a)),(_0x4bdd29=this[_0x2ded01(0xdf)])==null||_0x4bdd29['dispose'](),this['_commandDisposable']=null;}[_0x2ba189(0xe3)](){var _0x25cfda=_0x2ba189,_0x217fa3;(_0x217fa3=this['_commandDisposable'])==null||_0x217fa3[_0x25cfda(0xfd)](),this[_0x25cfda(0x136)]['next']('following');}[_0x2ba189(0xe7)](){var _0x2eab9d=_0x2ba189,_0xca5737;this[_0x2eab9d(0x136)][_0x2eab9d(0x112)](_0x2eab9d(0x15a)),(_0xca5737=this[_0x2eab9d(0xdf)])==null||_0xca5737[_0x2eab9d(0xfd)](),this[_0x2eab9d(0xdf)]=null;}['_stopFollowing'](){var _0x6d117=_0x2ba189,_0x32d8ae;this[_0x6d117(0x136)][_0x6d117(0x112)](_0x6d117(0x14e)),(_0x32d8ae=this[_0x6d117(0xdf)])==null||_0x32d8ae[_0x6d117(0xfd)]();}[_0x2ba189(0x134)](_0x56761f){var _0xcf0d90=_0x2ba189;if([_0xcf0d90(0x13b),_0xcf0d90(0x14e),_0xcf0d90(0x155)]['includes'](this[_0xcf0d90(0xcf)])||!_0x56761f[_0xcf0d90(0x157)]['presenter']||_0x56761f[_0xcf0d90(0x157)][_0xcf0d90(0xef)]===this[_0xcf0d90(0xd9)][_0xcf0d90(0xf6)]())return;this[_0xcf0d90(0xcf)]===_0xcf0d90(0x15a)&&this[_0xcf0d90(0xe3)]();const _0x18df67=_0x56761f[_0xcf0d90(0x157)][_0xcf0d90(0x12f)];Object['values'](_0x18df67)[_0xcf0d90(0x154)](_0x1ec1eb=>{var _0x5592ae=_0xcf0d90;this['_commandService'][_0x5592ae(0xf4)](_0x1ec1eb['id'],_0x1ec1eb[_0x5592ae(0x109)]?JSON['parse'](_0x1ec1eb[_0x5592ae(0x109)]):null,{'fromCollab':!0x0});});}[_0x2ba189(0x144)](){var _0x4aee44=_0x2ba189,_0x1a1532;this[_0x4aee44(0x136)][_0x4aee44(0x112)](_0x4aee44(0x155)),(_0x1a1532=this[_0x4aee44(0xdf)])==null||_0x1a1532['dispose']();}[_0x2ba189(0x159)](){var _0x30f98e=_0x2ba189;this[_0x30f98e(0x136)]['next'](_0x30f98e(0x15a)),this[_0x30f98e(0xec)]();}};C=Z([f(0x2,_0x5584c0),f(0x3,_0x42fbcf(L)),f(0x4,_0x4c13df)],C);function Te(){var _0x31d124=_0x2ba189;const _0x11a319=_0x5dc14c(I),_0x151ae5=_0x5dc14c(_0xb5d125),_0x5e6df8=_0x1c3067(()=>_0x151ae5['getCurrentTypeOfUnit$'](_0x10b104[_0x31d124(0xd2)]),void 0x0,!0x1,[]),[_0x313bbc,_0x4e0145]=_0x5e6230(null),[_0xca4d32,_0x2494a0]=_0x5e6230(h['IDLE']),_0x4475d6=_0x1f0119(null);return _0x400d7d(()=>(_0x5e6df8&&_0x11a319[_0x31d124(0x162)](_0x5e6df8[_0x31d124(0x14a)]())[_0x31d124(0xc7)](_0x4f6c49=>{var _0x131b75=_0x31d124;_0x4e0145(_0x4f6c49),_0x4475d6['current']=_0x4f6c49[_0x131b75(0xed)][_0x131b75(0x116)](_0x348901=>{_0x2494a0(_0x348901);});}),()=>{var _0x55fa8c=_0x31d124,_0x5605c3;(_0x5605c3=_0x4475d6[_0x55fa8c(0xfb)])==null||_0x5605c3[_0x55fa8c(0x118)](),_0x4475d6[_0x55fa8c(0xfb)]=null;}),[_0x5e6df8,_0x11a319]),_0x313bbc?_0x273a27(_0x35e311,{'align':'end','disabled':_0xca4d32===h[_0x31d124(0xc3)],'className':_0x31d124(0x148),'overlay':_0x273a27($e,{'status':_0xca4d32,'coordinator':_0x313bbc}),'children':_0x273a27(_0x31d124(0xd1),{'className':_0x348ec7(_0x31d124(0xe4),{'univer-cursor-not-allowed':_0xca4d32===h[_0x31d124(0xc3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xca4d32!==h[_0x31d124(0xc3)]}),'type':_0x31d124(0xd1),'children':_0x273a27(B,{'className':_0x31d124(0xdb)})})}):null;}function $e(_0x508a99){var _0x3c2893=_0x2ba189;const {status:_0x1d613b,coordinator:_0x5af459}=_0x508a99;switch(_0x1d613b){case h['IDLE']:return _0x273a27(Fe,{'coordinator':_0x5af459});case h[_0x3c2893(0xf7)]:return _0x273a27(He,{'coordinator':_0x5af459});case h[_0x3c2893(0x10e)]:return _0x273a27(je,{'coordinator':_0x5af459});case h['OFFLINE']:return _0x273a27(Ve,{});case h[_0x3c2893(0x114)]:return _0x273a27(Ue,{'coordinator':_0x5af459});default:return null;}}function Fe(_0x7a5b8d){var _0x176b14=_0x2ba189;const {coordinator:_0x347c1e}=_0x7a5b8d;return _0x262791(_0xfe85f2,{'children':[_0x273a27(_0x176b14(0xff),{'className':_0x176b14(0x120),'children':_0x176b14(0x11b)}),_0x273a27(_0x1ce9af,{'onClick':()=>_0x347c1e[_0x176b14(0x139)](),'children':_0x176b14(0x107)})]});}function He(_0x5e81c0){var _0x4cb111=_0x2ba189;const {coordinator:_0x4bf788}=_0x5e81c0;return _0x262791(_0xfe85f2,{'children':[_0x273a27(_0x4cb111(0xff),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x273a27(_0x1ce9af,{'onClick':()=>_0x4bf788[_0x4cb111(0xd7)](),'children':'Stop\x20following'})]});}function je(_0x200f77){var _0x4b6ed7=_0x2ba189;const {coordinator:_0x8e509b}=_0x200f77;return _0x262791(_0xfe85f2,{'children':[_0x273a27(_0x4b6ed7(0xff),{'className':_0x4b6ed7(0x120),'children':_0x4b6ed7(0x12a)}),_0x273a27(_0x1ce9af,{'variant':_0x4b6ed7(0x113),'onClick':()=>_0x8e509b[_0x4b6ed7(0x150)](),'children':_0x4b6ed7(0x160)})]});}function Ue(_0x43c43e){var _0x5dbb15=_0x2ba189;const {coordinator:_0x586691}=_0x43c43e;return _0x262791(_0xfe85f2,{'children':[_0x273a27('div',{'className':_0x5dbb15(0x120),'children':_0x5dbb15(0x10b)}),_0x273a27(_0x1ce9af,{'variant':_0x5dbb15(0xe2),'onClick':()=>_0x586691[_0x5dbb15(0x156)](),'children':_0x5dbb15(0xf0)})]});}function _0x1996(){var _0x3d812f=['stopFollowing','event$','_collabSession','defIds','univer-size-4','IDLE','string','_handleNewChangeSets','_commandDisposable','length','_unitID','default','_startFollowing','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose$','http://www.w3.org/2000/svg','_beIdle','use','children','following','mask','_fetchOperations','status$','defineProperty','presenter','Stop\x20presenting','_startPresenting','getTypeOfUnitDisposed$','apply','executeCommand','_sharedOperations','getMemberID','FOLLOWING','function','_entities','xlink:href','current','LIVESHARE_REQUEST_HOST','dispose','LIVESHARE_OPERATION','div','extend','3912392CtBFDD','getConfig','indexOf','5180010sUMDiP','trim','icon','Start','getInitialStates','params','_mountLiveShare','You\x27re\x20presenting\x20the\x20document','0\x200\x2017\x2017','_config','NOT_FOLLOWING','concat','pipe','url(#$1','next','text','PRESENTING','send','subscribe','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','unsubscribe','registerInitialStateReporter','idSuffix','Present\x20this\x20document','random','HEADER_MENU','none','prototype','univer-mb-3\x20univer-w-full\x20univer-text-sm','unitId','_startLiveShareCoordinator','attrs','_init','registerComponent','getOwnPropertyDescriptor','mutations','pluginName','getTypeOfUnitAdded$','You\x27re\x20not\x20following\x20the\x20presenter','univerjs-icon\x20univerjs-icon-','symbol','1em','You\x27are\x20offline.','operations','colorChannel1','LIVESHARE_NEW_HOST','7ihoMCG','NEW_CHANGESETS','_handleOperation','substring','_status$','_liveShareService','reverse','tryStartPresenting','getOwnPropertySymbols','presenting','41808780LOyfwR','complete','delete','from','_presenter','live-share.config','add','_commandService','_handleOffline','entries','onCommandExecuted','set','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_uiPartsService','getUnitId','stringify','override','onRendered','not-following','has','startFollowing','type','className','_stopFollowing','forEach','offline','stopPresenting','data','4RgcWhm','_handleOnline','idle','_collabSessionService','replace','path','call','get','Start\x20following','1449576RosJjT','getLiveShareCoordinator','_handleNewHost','_univerInstanceService','assign','find','currentColor','fill','svg','_reporters','LIVESHARE_TERMINATE','SAME_OPERATION_SHARE_INTERVAL','tag','shouldShareOperation','_configService','toString','displayName','549456TVZtSq','OFFLINE','defs','map','_injector','then','requireSession','_stopPresenting','hasOwnProperty','init','asObservable','1306526KZiTME','UNIVER_UNKNOWN','_status','onStarting','button','UNIVER_SHEET','registerSharedOperation','_handleTerminate','1228632kkWDWF','disposeWithMe'];_0x1996=function(){return _0x3d812f;};return _0x1996();}function Ve(){var _0x57abed=_0x2ba189;return _0x273a27(_0xfe85f2,{'children':_0x57abed(0x12e)});}var Me=Object[_0x2ba189(0x126)],ke=(_0x1c50dd,_0x12638b,_0xb8977f,_0x189798)=>{var _0x3e410f=_0x2ba189;for(var _0x1207e1=_0x189798>0x1?void 0x0:_0x189798?Me(_0x12638b,_0xb8977f):_0x12638b,_0x3facd6=_0x1c50dd[_0x3e410f(0xe0)]-0x1,_0x462a70;_0x3facd6>=0x0;_0x3facd6--)(_0x462a70=_0x1c50dd[_0x3facd6])&&(_0x1207e1=_0x462a70(_0x1207e1)||_0x1207e1);return _0x1207e1;},$=(_0x1ea2c0,_0x9ecfde)=>(_0x3f008e,_0x2fa15f)=>_0x9ecfde(_0x3f008e,_0x2fa15f,_0x1ea2c0);let b=class extends _0x3d8687{constructor(_0x1aa4c5,_0x3384c){var _0x3aa753=_0x2ba189;super(),this['_injector']=_0x1aa4c5,this[_0x3aa753(0x149)]=_0x3384c,this[_0x3aa753(0x10a)]();}[_0x2ba189(0x10a)](){var _0x85206b=_0x2ba189;this['disposeWithMe'](this['_uiPartsService'][_0x85206b(0x125)](_0x19435c[_0x85206b(0x11d)],()=>_0x40f9b9(Te,this['_injector'])));}};b=ke([$(0x0,_0x42fbcf(_0x2f3b08)),$(0x1,_0x5ca397)],b);var Ge=Object[_0x2ba189(0xee)],We=Object[_0x2ba189(0x126)],Ye=(_0x40af8b,_0x3ba87d,_0x586392)=>_0x3ba87d in _0x40af8b?Ge(_0x40af8b,_0x3ba87d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x586392}):_0x40af8b[_0x3ba87d]=_0x586392,Be=(_0x4b7043,_0x254ac8,_0x3bc2b4,_0x4c46e4)=>{for(var _0x536b40=_0x4c46e4>0x1?void 0x0:_0x4c46e4?We(_0x254ac8,_0x3bc2b4):_0x254ac8,_0x52d610=_0x4b7043['length']-0x1,_0x4b00fa;_0x52d610>=0x0;_0x52d610--)(_0x4b00fa=_0x4b7043[_0x52d610])&&(_0x536b40=_0x4b00fa(_0x536b40)||_0x536b40);return _0x536b40;},F=(_0x270c53,_0x1c793c)=>(_0x4a37f7,_0x1f1064)=>_0x1c793c(_0x4a37f7,_0x1f1064,_0x270c53),J=(_0x5261e7,_0x21390b,_0x3c053b)=>Ye(_0x5261e7,typeof _0x21390b!=_0x2ba189(0x12c)?_0x21390b+'':_0x21390b,_0x3c053b);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1d1513{constructor(_0x497e1a=T,_0x51fba6,_0x5aa79f){var _0xb7c24c=_0x2ba189;super(),this[_0xb7c24c(0x10d)]=_0x497e1a,this[_0xb7c24c(0xc6)]=_0x51fba6,this[_0xb7c24c(0x16f)]=_0x5aa79f;const {..._0x49ec8f}=_0x5e17a8({},T,this['_config']);this[_0xb7c24c(0x16f)]['setConfig'](Oe,_0x49ec8f);}[_0x2ba189(0xd0)](){var _0x2db7d3=_0x2ba189;_0xa89634(this[_0x2db7d3(0xc6)],_0x2fd152([[L],[I],[m],[b]],this[_0x2db7d3(0x10d)][_0x2db7d3(0x14c)])),_0x1ebd0f(this[_0x2db7d3(0xc6)],[[m]]);}[_0x2ba189(0x14d)](){_0x1ebd0f(this['_injector'],[[b]]);}};J(O,_0x2ba189(0x151),_0x10b104[_0x2ba189(0xce)]),J(O,_0x2ba189(0x128),Ze),O=Be([_0x190077(_0x310d0b),F(0x1,_0x42fbcf(_0x2f3b08)),F(0x2,_0x5584c0)],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.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.univer-mb-3{margin-bottom
|
|
1
|
+
.univer-mb-3{margin-bottom:12px}.univer-box-border{box-sizing:border-box}.univer-size-4{width:16px;height:16px}.univer-w-full{width:100%}.univer-min-w-60{min-width:240px}.univer-cursor-not-allowed{cursor:not-allowed}.univer-cursor-pointer{cursor:pointer}.univer-border-none{border-style:none}.univer-bg-gray-400{background-color:var(--univer-gray-400)}.univer-bg-gray-900{background-color:var(--univer-gray-900)}.univer-px-4{padding-left:16px;padding-right:16px}.univer-py-3{padding-top:12px;padding-bottom:12px}.univer-text-sm{font-size:14px;line-height:20px}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-gray-900{color:var(--univer-gray-900)}.univer-outline-none{outline:2px solid transparent;outline-offset:2px}.hover\:univer-bg-gray-400:hover{background-color:var(--univer-gray-400)}.dark\:\!univer-bg-white:where(.univer-dark,.univer-dark *){background-color:var(--univer-white)!important}.dark\:\!univer-text-white:where(.univer-dark,.univer-dark *){color:var(--univer-white)!important}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1d2061=_0x148e;(function(_0x39dcc5,_0x57177e){var _0x3de184=_0x148e,_0x1a0c45=_0x39dcc5();while(!![]){try{var _0x2ac413=parseInt(_0x3de184(0x107))/0x1*(parseInt(_0x3de184(0xd2))/0x2)+-parseInt(_0x3de184(0x174))/0x3*(parseInt(_0x3de184(0x15f))/0x4)+-parseInt(_0x3de184(0x121))/0x5*(parseInt(_0x3de184(0x152))/0x6)+parseInt(_0x3de184(0x123))/0x7+-parseInt(_0x3de184(0x179))/0x8+-parseInt(_0x3de184(0x126))/0x9*(parseInt(_0x3de184(0x13e))/0xa)+parseInt(_0x3de184(0x159))/0xb;if(_0x2ac413===_0x57177e)break;else _0x1a0c45['push'](_0x1a0c45['shift']());}catch(_0x33d5c6){_0x1a0c45['push'](_0x1a0c45['shift']());}}}(_0x49dd,0xe2e94));var q=Object[_0x1d2061(0xf0)],z=(_0x412ba5,_0x797004,_0x221430)=>_0x797004 in _0x412ba5?q(_0x412ba5,_0x797004,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x221430}):_0x412ba5[_0x797004]=_0x221430,d=(_0x5ad454,_0x5d4cb8,_0x51012d)=>z(_0x5ad454,typeof _0x5d4cb8!='symbol'?_0x5d4cb8+'':_0x5d4cb8,_0x51012d);import{CollaborationSessionService as _0x4cd42a,SessionStatus as _0x2067be,UniverCollaborationClientPlugin as _0x3e8e9b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3ee941,toDisposable as _0x48aed0,Inject as _0x253fee,IUniverInstanceService as _0x33424e,Injector as _0x57aad1,IConfigService as _0xa95083,ICommandService as _0x4e7867,RxDisposable as _0x2ac371,UniverInstanceType as _0xa2c22f,DisposableCollection as _0x25b081,CommandType as _0x382cb4,DependentOn as _0x394549,Plugin as _0x2dc2c4,merge as _0x4db2d4,registerDependencies as _0x5d2766,mergeOverrideWithDependencies as _0x4e7ffe,touchDependencies as _0x86b33f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x2aa18e,InsertSheetMutation as _0xc429d8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x646c22,SetScrollOperation as _0x16bed9}from'@univerjs/sheets-ui';function _0x148e(_0x56ae18,_0x16b15e){var _0x49dd57=_0x49dd();return _0x148e=function(_0x148ebf,_0x4df02c){_0x148ebf=_0x148ebf-0xce;var _0x565179=_0x49dd57[_0x148ebf];return _0x565179;},_0x148e(_0x56ae18,_0x16b15e);}import{useDependency as _0x37b90a,useObservable as _0x33fa75,IUIPartsService as _0x3fcef6,BuiltInUIPart as _0x5b8b60,connectInjector as _0x1e3e05}from'@univerjs/ui';import{jsx as _0x1e62c2,jsxs as _0x12b645,Fragment as _0x4b49ed}from'react/jsx-runtime';import{Dropdown as _0x2f9467,clsx as _0x3df6c9,Button as _0x5a17cb}from'@univerjs/design';function _0x49dd(){var _0x5375fb=['init','replace','attrs','type','text','unsubscribe','string','_sharedOperations','1323492qayczy','createInstance','children','_univerInstanceService','getUnitId','disposeWithMe','1em','26708198mVLIzq','getOwnPropertyDescriptor','LIVESHARE_OPERATION','_handleOnline','data','UniverIcon','4wJXgbq','url(#$1','tryStartPresenting','none','_liveShareService','concat','univerjs-icon\x20univerjs-icon-','shouldShareOperation','getTypeOfUnitAdded$','get','then','_uiPartsService','fill','_init','LIVESHARE_FETCH_OPERATIONS','stopPresenting','currentColor','params','sheet','pluginName','dispose$','2899923MdEGxm','presenting','displayName','stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','8116048gbwdRF','onStarting','parse','_stopFollowing','_startPresenting','OFFLINE','_entities','delete','Present\x20this\x20document','path','1700JdGSkd','prototype','symbol','UNIVER_SHEET','trim','_presenter','live-share-icon','defIds','LIVESHARE_NEW_HOST','_configService','onRendered','pipe','offline','tag','mutations','toString','substring','end','_unitID','className','unitId','indexOf','HEADER_MENU','Start','_collabSessionService','getTypeOfUnitDisposed$','getLiveShareCoordinator','div','assign','http://www.w3.org/2000/svg','defineProperty','presenter','_mountLiveShare','memberID','event$','LIVESHARE_REQUEST_HOST','_injector','set','send','startFollowing','_stopPresenting','_collabSession','find','button','getCurrentTypeOfUnit$','_handleOffline','IDLE','idSuffix','xlink:href','next','includes','call','stringify','1607wHtwxw','You\x27re\x20not\x20following\x20the\x20presenter','dispose','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','sessionStatus$','_fetchOperations','_config','_handleTerminate','_commandDisposable','getMemberID','LIVESHARE_TERMINATE','forEach','_reporters','_handleOperation','idle','NOT_FOLLOWING','FOLLOWING','getOwnPropertySymbols','length','colorChannel1','subscribe','hasOwnProperty','You\x27re\x20following\x20the\x20presenter','complete','map','values','20vvxuXL','override','585879uQZcbC','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_commandService','54cJwseE','_handleNewHost','_startFollowing','not-following','PRESENTING','_startLiveShareCoordinator','reverse','_status$','mask','You\x27are\x20offline.','status$','icon','_status','live-share.config','getConfig','extend','add','ONLINE','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','registerSharedOperation','function','executeCommand','defs','_beIdle','141270FvkwDJ','0\x200\x2017\x2017','univer-size-4','SAME_OPERATION_SHARE_INTERVAL','_handleNewChangeSets','getInitialStates','current','svg','entries','has','onCommandExecuted','following'];_0x49dd=function(){return _0x5375fb;};return _0x49dd();}import{forwardRef as _0x181876,useRef as _0xec2e7b,createElement as _0x43b433,useState as _0x1669ac,useEffect as _0x483153}from'react';import{CollaborationEvent as _0x68e326,parseProtocolChangeset as _0x5bc805}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2a4565,Subject as _0xcf50bc}from'rxjs';import{takeUntil as _0x3f0d49,throttleTime as _0x461b27}from'rxjs/operators';const Oe=_0x1d2061(0x133),T={};class L extends _0x3ee941{constructor(){var _0x2f54a5=_0x1d2061;super(...arguments),d(this,_0x2f54a5(0x151),new Set()),d(this,_0x2f54a5(0x113),new Set());}[_0x1d2061(0x139)](_0x5343a2){var _0x3efda4=_0x1d2061;return this[_0x3efda4(0x151)][_0x3efda4(0x136)](_0x5343a2),_0x48aed0(()=>this[_0x3efda4(0x151)][_0x3efda4(0xcf)](_0x5343a2));}['registerInitialStateReporter'](_0x4ca4b3){var _0x20a830=_0x1d2061;return this['_reporters']['add'](_0x4ca4b3),_0x48aed0(()=>this[_0x20a830(0x113)]['delete'](_0x4ca4b3));}[_0x1d2061(0x166)](_0x244420){var _0x56da68=_0x1d2061;return this[_0x56da68(0x151)][_0x56da68(0x147)](_0x244420);}[_0x1d2061(0x143)](_0x41438a){return Array['from'](this['_reporters'])['map'](_0x47c1b6=>_0x47c1b6(_0x41438a));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x566674,_0x5802b7,_0x462824,_0x58a310)=>{var _0x5e8afa=_0x1d2061;for(var _0x17e0b8=_0x58a310>0x1?void 0x0:_0x58a310?Ee(_0x5802b7,_0x462824):_0x5802b7,_0x38f38b=_0x566674[_0x5e8afa(0x119)]-0x1,_0xcc8898;_0x38f38b>=0x0;_0x38f38b--)(_0xcc8898=_0x566674[_0x38f38b])&&(_0x17e0b8=_0xcc8898(_0x17e0b8)||_0x17e0b8);return _0x17e0b8;},Ne=(_0x197ea,_0x23b7cb)=>(_0xf6c81d,_0x4f6945)=>_0x23b7cb(_0xf6c81d,_0x4f6945,_0x197ea);let m=class extends _0x3ee941{constructor(_0xe3584e){var _0x315288=_0x1d2061;super(),this[_0x315288(0x163)]=_0xe3584e,this[_0x315288(0x16c)]();}[_0x1d2061(0x16c)](){var _0x15dbbd=_0x1d2061;[_0x646c22['id'],_0x16bed9['id'],_0x2aa18e['id']][_0x15dbbd(0x112)](_0x8083e1=>{var _0x5709b6=_0x15dbbd;this[_0x5709b6(0x157)](this[_0x5709b6(0x163)]['registerSharedOperation'](_0x8083e1));});}};m=we([Ne(0x0,_0x253fee(L))],m);var c=function(){var _0x32a5b3=_0x1d2061;return c=Object[_0x32a5b3(0xee)]||function(_0x26a00e){var _0x5e9a97=_0x32a5b3;for(var _0x242225,_0x5780e7=0x1,_0x43ab36=arguments[_0x5e9a97(0x119)];_0x5780e7<_0x43ab36;_0x5780e7++){_0x242225=arguments[_0x5780e7];for(var _0x3fba03 in _0x242225)Object[_0x5e9a97(0xd3)][_0x5e9a97(0x11c)][_0x5e9a97(0x105)](_0x242225,_0x3fba03)&&(_0x26a00e[_0x3fba03]=_0x242225[_0x3fba03]);}return _0x26a00e;},c['apply'](this,arguments);},Ce=function(_0x4a701d,_0x4c241e){var _0x50335e=_0x1d2061,_0x27d899={};for(var _0x12b216 in _0x4a701d)Object[_0x50335e(0xd3)][_0x50335e(0x11c)][_0x50335e(0x105)](_0x4a701d,_0x12b216)&&_0x4c241e[_0x50335e(0xe7)](_0x12b216)<0x0&&(_0x27d899[_0x12b216]=_0x4a701d[_0x12b216]);if(_0x4a701d!=null&&typeof Object[_0x50335e(0x118)]==_0x50335e(0x13a)){for(var _0x157435=0x0,_0x12b216=Object[_0x50335e(0x118)](_0x4a701d);_0x157435<_0x12b216[_0x50335e(0x119)];_0x157435++)_0x4c241e[_0x50335e(0xe7)](_0x12b216[_0x157435])<0x0&&Object[_0x50335e(0xd3)]['propertyIsEnumerable'][_0x50335e(0x105)](_0x4a701d,_0x12b216[_0x157435])&&(_0x27d899[_0x12b216[_0x157435]]=_0x4a701d[_0x12b216[_0x157435]]);}return _0x27d899;},W=_0x181876(function(_0x142d4d,_0x378d5a){var _0x4a1cef=_0x1d2061,_0x5d401f=_0x142d4d[_0x4a1cef(0x131)],_0x4282ee=_0x142d4d['id'],_0x28cc70=_0x142d4d[_0x4a1cef(0xe5)],_0x334218=_0x142d4d['extend'],_0x2515de=Ce(_0x142d4d,['icon','id','className',_0x4a1cef(0x135)]),_0x27bfd4=_0x4a1cef(0x165)[_0x4a1cef(0x164)](_0x4282ee,'\x20')[_0x4a1cef(0x164)](_0x28cc70||'')[_0x4a1cef(0xd6)](),_0x583809=_0xec2e7b('_'[_0x4a1cef(0x164)](Le()));return Y(_0x5d401f,''['concat'](_0x4282ee),{'defIds':_0x5d401f[_0x4a1cef(0xd9)],'idSuffix':_0x583809[_0x4a1cef(0x144)]},c({'ref':_0x378d5a,'className':_0x27bfd4},_0x2515de),_0x334218);});function Y(_0x35ddae,_0x297073,_0x60c24d,_0x167e17,_0x18972a){var _0xf26800=_0x1d2061;return _0x43b433(_0x35ddae[_0xf26800(0xdf)],c(c({'key':_0x297073},De(_0x35ddae,_0x60c24d,_0x18972a)),_0x167e17),(xe(_0x35ddae,_0x60c24d)[_0xf26800(0x154)]||[])[_0xf26800(0x11f)](function(_0x37efb0,_0x250f77){var _0x32b446=_0xf26800;return Y(_0x37efb0,''[_0x32b446(0x164)](_0x297073,'-')['concat'](_0x35ddae[_0x32b446(0xdf)],'-')[_0x32b446(0x164)](_0x250f77),_0x60c24d,void 0x0,_0x18972a);}));}function De(_0x253a8b,_0x3dca18,_0x3451bf){var _0x5a3a6f=_0x1d2061,_0x3061c9=c({},_0x253a8b[_0x5a3a6f(0x14c)]);_0x3451bf!=null&&_0x3451bf[_0x5a3a6f(0x11a)]&&_0x3061c9['fill']===_0x5a3a6f(0x11a)&&(_0x3061c9[_0x5a3a6f(0x16b)]=_0x3451bf[_0x5a3a6f(0x11a)]),_0x253a8b['tag']==='mask'&&_0x3061c9['id']&&(_0x3061c9['id']=_0x3061c9['id']+_0x3dca18['idSuffix']),Object[_0x5a3a6f(0x146)](_0x3061c9)['forEach'](function(_0x2758ff){var _0x53be68=_0x5a3a6f,_0x11cdb5=_0x2758ff[0x0],_0x2accf6=_0x2758ff[0x1];_0x11cdb5===_0x53be68(0x12e)&&typeof _0x2accf6==_0x53be68(0x150)&&(_0x3061c9[_0x11cdb5]=_0x2accf6[_0x53be68(0x14b)](/url\(#(.*)\)/,_0x53be68(0x160)[_0x53be68(0x164)](_0x3dca18[_0x53be68(0x101)],')')));});var _0x1ab441=_0x3dca18[_0x5a3a6f(0xd9)];return!_0x1ab441||_0x1ab441[_0x5a3a6f(0x119)]===0x0||(_0x253a8b[_0x5a3a6f(0xdf)]==='use'&&_0x3061c9[_0x5a3a6f(0x102)]&&(_0x3061c9['xlink:href']=_0x3061c9[_0x5a3a6f(0x102)]+_0x3dca18['idSuffix']),Object[_0x5a3a6f(0x146)](_0x3061c9)['forEach'](function(_0x1938fc){var _0x8ceccb=_0x5a3a6f,_0x365d31=_0x1938fc[0x0],_0x2d9fcd=_0x1938fc[0x1];typeof _0x2d9fcd==_0x8ceccb(0x150)&&(_0x3061c9[_0x365d31]=_0x2d9fcd[_0x8ceccb(0x14b)](/url\(#(.*)\)/,_0x8ceccb(0x160)[_0x8ceccb(0x164)](_0x3dca18[_0x8ceccb(0x101)],')')));})),_0x3061c9;}function xe(_0x57c66c,_0x3f75cd){var _0x73acae=_0x1d2061,_0x40ed2a,_0x54b3ee=_0x3f75cd[_0x73acae(0xd9)];return!_0x54b3ee||_0x54b3ee[_0x73acae(0x119)]===0x0?_0x57c66c:_0x57c66c['tag']===_0x73acae(0x13c)&&(!((_0x40ed2a=_0x57c66c[_0x73acae(0x154)])===null||_0x40ed2a===void 0x0)&&_0x40ed2a['length'])?c(c({},_0x57c66c),{'children':_0x57c66c['children'][_0x73acae(0x11f)](function(_0x279034){var _0x579247=_0x73acae;return typeof _0x279034[_0x579247(0x14c)]['id']=='string'&&_0x54b3ee&&_0x54b3ee[_0x579247(0x104)](_0x279034[_0x579247(0x14c)]['id'])?c(c({},_0x279034),{'attrs':c(c({},_0x279034[_0x579247(0x14c)]),{'id':_0x279034[_0x579247(0x14c)]['id']+_0x3f75cd[_0x579247(0x101)]})}):_0x279034;})}):_0x57c66c;}function Le(){var _0x18d726=_0x1d2061;return Math['random']()[_0x18d726(0xe1)](0x24)[_0x18d726(0xe2)](0x2,0x8);}W[_0x1d2061(0x176)]=_0x1d2061(0x15e);var ye={'tag':_0x1d2061(0x145),'attrs':{'xmlns':_0x1d2061(0xef),'fill':_0x1d2061(0x162),'viewBox':_0x1d2061(0x13f),'width':_0x1d2061(0x158),'height':_0x1d2061(0x158)},'children':[{'tag':_0x1d2061(0xd1),'attrs':{'fill':'currentColor','d':_0x1d2061(0x138)}},{'tag':_0x1d2061(0xd1),'attrs':{'fill':_0x1d2061(0x16f),'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':'evenodd','clipRule':'evenodd'}}]},B=_0x181876(function(_0x134ef0,_0x21a8f8){var _0x2e2fa9=_0x1d2061;return _0x43b433(W,Object['assign']({},_0x134ef0,{'id':_0x2e2fa9(0xd8),'ref':_0x21a8f8,'icon':ye}));});B[_0x1d2061(0x176)]='LiveShareIcon';var Re=Object[_0x1d2061(0x15a)],Z=(_0x4945f4,_0xb10b67,_0x445c66,_0x4893a6)=>{var _0x4476f9=_0x1d2061;for(var _0x3c51cc=_0x4893a6>0x1?void 0x0:_0x4893a6?Re(_0xb10b67,_0x445c66):_0xb10b67,_0x33bd42=_0x4945f4[_0x4476f9(0x119)]-0x1,_0x501c27;_0x33bd42>=0x0;_0x33bd42--)(_0x501c27=_0x4945f4[_0x33bd42])&&(_0x3c51cc=_0x501c27(_0x3c51cc)||_0x3c51cc);return _0x3c51cc;},f=(_0x348de4,_0x3e7d51)=>(_0x20643b,_0x200493)=>_0x3e7d51(_0x20643b,_0x200493,_0x348de4);let I=class extends _0x2ac371{constructor(_0x4a48a4,_0x1cf881,_0x53401c){var _0x17a61a=_0x1d2061;super(),d(this,'_entities',new Map()),(this[_0x17a61a(0x155)]=_0x4a48a4,this[_0x17a61a(0xf6)]=_0x1cf881,this[_0x17a61a(0xea)]=_0x53401c,this[_0x17a61a(0x16c)]());}async[_0x1d2061(0xec)](_0x5ff3c){var _0x56a3b5=_0x1d2061;return this[_0x56a3b5(0xce)][_0x56a3b5(0x147)](_0x5ff3c)||await this[_0x56a3b5(0x12b)](_0x5ff3c),this[_0x56a3b5(0xce)][_0x56a3b5(0x168)](_0x5ff3c);}[_0x1d2061(0x16c)](){var _0x353ae8=_0x1d2061;this['_univerInstanceService'][_0x353ae8(0x167)](_0xa2c22f[_0x353ae8(0xd5)])[_0x353ae8(0xdd)](_0x3f0d49(this[_0x353ae8(0x173)]))[_0x353ae8(0x11b)](async _0x25172d=>{var _0x18f4af=_0x353ae8;const _0x3a6083=_0x25172d['getUnitId']();this[_0x18f4af(0xce)][_0x18f4af(0x147)](_0x3a6083)||this[_0x18f4af(0x12b)](_0x3a6083);}),this[_0x353ae8(0x155)][_0x353ae8(0xeb)](_0xa2c22f[_0x353ae8(0xd5)])[_0x353ae8(0xdd)](_0x3f0d49(this[_0x353ae8(0x173)]))[_0x353ae8(0x11b)](_0x767fbd=>{var _0x5075f4=_0x353ae8;const _0x1d13a6=_0x767fbd['getUnitId'](),_0x213a30=this[_0x5075f4(0xce)][_0x5075f4(0x168)](_0x1d13a6);_0x213a30==null||_0x213a30[_0x5075f4(0x109)]();});}async[_0x1d2061(0x12b)](_0x2d1539){var _0x55ec85=_0x1d2061;const _0x1a4c3d=await this[_0x55ec85(0xea)]['requireSession'](_0x2d1539),_0x254672=this[_0x55ec85(0xf6)][_0x55ec85(0x153)](C,_0x2d1539,_0x1a4c3d);return _0x254672[_0x55ec85(0x14a)](),this[_0x55ec85(0xce)]['set'](_0x2d1539,_0x254672),_0x254672;}};I=Z([f(0x0,_0x33424e),f(0x1,_0x253fee(_0x57aad1)),f(0x2,_0x253fee(_0x4cd42a))],I);var h=(_0x35ccaf=>(_0x35ccaf['OFFLINE']='offline',_0x35ccaf[_0x1d2061(0x100)]='idle',_0x35ccaf[_0x1d2061(0x117)]='following',_0x35ccaf['NOT_FOLLOWING']=_0x1d2061(0x129),_0x35ccaf[_0x1d2061(0x12a)]=_0x1d2061(0x175),_0x35ccaf))(h||{});const Pe=_0x1d2061(0x141),Ae=0xc8;let C=class extends _0x2ac371{constructor(_0x4499a2,_0xcf3359,_0x15743b,_0x403753,_0x17e1a8){var _0x207318=_0x1d2061;super(),d(this,'_status$',new _0x2a4565('idle')),d(this,_0x207318(0x130),this[_0x207318(0x12d)]['asObservable']()),d(this,'_init',!0x1),d(this,_0x207318(0x10f),null),d(this,'_presenter',null),(this[_0x207318(0xe4)]=_0x4499a2,this['_collabSession']=_0xcf3359,this['_configService']=_0x15743b,this[_0x207318(0x163)]=_0x403753,this[_0x207318(0x125)]=_0x17e1a8);}get[_0x1d2061(0x132)](){var _0x3c3a48=_0x1d2061;return this[_0x3c3a48(0x12d)]['getValue']();}[_0x1d2061(0x109)](){var _0x1d8ed4=_0x1d2061,_0x5bb294;(_0x5bb294=this[_0x1d8ed4(0x10f)])==null||_0x5bb294[_0x1d8ed4(0x109)](),this[_0x1d8ed4(0x12d)][_0x1d8ed4(0x103)]('idle'),this['_status$'][_0x1d8ed4(0x11e)]();}[_0x1d2061(0x14a)](){var _0x2a3546=_0x1d2061;this[_0x2a3546(0x16c)]||(this[_0x2a3546(0x16c)]=!0x0,this['_collabSession'][_0x2a3546(0x10b)]['pipe'](_0x3f0d49(this[_0x2a3546(0x173)]))[_0x2a3546(0x11b)](_0x38a6cb=>{var _0x5303ef=_0x2a3546;switch(_0x38a6cb){case _0x2067be[_0x5303ef(0x17e)]:this[_0x5303ef(0xff)]();break;case _0x2067be[_0x5303ef(0x137)]:this[_0x5303ef(0x15c)]();break;}}),this['_collabSession'][_0x2a3546(0xf4)][_0x2a3546(0xdd)](_0x3f0d49(this[_0x2a3546(0x173)]))['subscribe'](_0x3ef69b=>{var _0x4450cf=_0x2a3546;const {eventID:_0x34f20e}=_0x3ef69b;switch(_0x34f20e){case _0x68e326[_0x4450cf(0xda)]:this['_handleNewHost'](_0x3ef69b);break;case _0x68e326[_0x4450cf(0x15b)]:this[_0x4450cf(0x114)](_0x3ef69b);break;case _0x68e326[_0x4450cf(0x111)]:this[_0x4450cf(0x10e)]();break;case _0x68e326['NEW_CHANGESETS']:this[_0x4450cf(0x142)](_0x3ef69b);break;}}));}['tryStartPresenting'](){var _0x398c10=_0x1d2061;this[_0x398c10(0xfb)][_0x398c10(0xf8)]({'eventID':_0x68e326[_0x398c10(0xf5)],'data':{'unitID':this[_0x398c10(0xe4)],'userID':this[_0x398c10(0xfb)][_0x398c10(0x110)]()}},this[_0x398c10(0xe4)]);}[_0x1d2061(0x16e)](){var _0x46c97f=_0x1d2061;this[_0x46c97f(0x132)]===_0x46c97f(0x175)&&(this[_0x46c97f(0x12d)][_0x46c97f(0x103)]('idle'),this[_0x46c97f(0xfb)][_0x46c97f(0xf8)]({'eventID':_0x68e326[_0x46c97f(0x111)],'data':{'unitID':this[_0x46c97f(0xe4)]}},this[_0x46c97f(0xe4)]));}[_0x1d2061(0xf9)](){var _0x62e876=_0x1d2061;this[_0x62e876(0x132)]==='not-following'&&(this[_0x62e876(0x12d)]['next'](_0x62e876(0x149)),this[_0x62e876(0x128)]());}[_0x1d2061(0x177)](){var _0xf19cf3=_0x1d2061;this[_0xf19cf3(0x132)]===_0xf19cf3(0x149)&&this['_stopFollowing']();}[_0x1d2061(0x127)](_0x11b7ea){var _0x2bbe22=_0x1d2061;const {presenter:_0x5fac1c}=_0x11b7ea[_0x2bbe22(0x15d)],_0x532d2b=this['_collabSession'][_0x2bbe22(0x110)]();this[_0x2bbe22(0xd7)]=_0x5fac1c,_0x5fac1c===_0x532d2b?(this[_0x2bbe22(0x17c)](),this[_0x2bbe22(0x17d)]()):this[_0x2bbe22(0x132)]!=='not-following'&&(this[_0x2bbe22(0xfa)](),this[_0x2bbe22(0x128)]());}[_0x1d2061(0x10c)](){var _0x254434=_0x1d2061;const _0x4ced6f={'eventID':_0x68e326[_0x254434(0x16d)]};this[_0x254434(0xfb)]['send'](_0x4ced6f,this[_0x254434(0xe4)]);}[_0x1d2061(0x10e)](){var _0x19c764=_0x1d2061;this[_0x19c764(0xd7)]=null,this[_0x19c764(0x132)]!==_0x19c764(0x175)&&this[_0x19c764(0x13d)]();}['_handleNewChangeSets'](_0x51a3e5){var _0x10b70d=_0x1d2061;if(this[_0x10b70d(0x132)]===_0x10b70d(0x149)&&this[_0x10b70d(0xd7)]===_0x51a3e5[_0x10b70d(0x15d)][_0x10b70d(0xf3)]){const _0x418104=_0x5bc805(_0x51a3e5[_0x10b70d(0x15d)])[_0x10b70d(0xe0)][_0x10b70d(0x12c)]()[_0x10b70d(0xfc)](_0x2f904b=>_0x2f904b['id']===_0xc429d8['id']);if(_0x418104){const _0xd68611=_0x418104['params'][_0x10b70d(0xe6)],_0x437630=_0x418104[_0x10b70d(0x170)][_0x10b70d(0x171)]['id'];setTimeout(()=>{var _0x1cf163=_0x10b70d;this[_0x1cf163(0x125)][_0x1cf163(0x13b)](_0x2aa18e['id'],{'unitId':_0xd68611,'subUnitId':_0x437630},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xb43744=_0x1d2061;this['_status$']['next'](_0xb43744(0x175));const _0x457d59=new Map(),_0x34f55c=this[_0xb43744(0x10f)]=new _0x25b081();_0x34f55c[_0xb43744(0x136)](_0x48aed0(()=>{var _0x384826=_0xb43744;_0x457d59[_0x384826(0x112)](_0x17d152=>_0x17d152[_0x384826(0x11e)]()),_0x457d59['clear']();})),_0x34f55c['add'](this[_0xb43744(0x125)][_0xb43744(0x148)](_0x1a1d12=>{var _0x62faf4=_0xb43744,_0x4f9f22;if(_0x1a1d12[_0x62faf4(0x14d)]!==_0x382cb4['OPERATION']||!this[_0x62faf4(0x163)][_0x62faf4(0x166)](_0x1a1d12['id']))return;const {id:_0x17ecb5}=_0x1a1d12;let _0x4596b3;_0x457d59[_0x62faf4(0x147)](_0x17ecb5)?_0x4596b3=_0x457d59[_0x62faf4(0x168)](_0x17ecb5):(_0x4596b3=new _0xcf50bc(),_0x457d59[_0x62faf4(0xf7)](_0x17ecb5,_0x4596b3),_0x4596b3[_0x62faf4(0xdd)](_0x461b27((_0x4f9f22=this[_0x62faf4(0xdb)][_0x62faf4(0x134)](Pe))!=null?_0x4f9f22:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x62faf4(0x11b)](_0x5349ad=>{var _0x5c1c77=_0x62faf4;this[_0x5c1c77(0xfb)][_0x5c1c77(0xf8)]({'eventID':_0x68e326[_0x5c1c77(0x15b)],'data':{'unitID':this[_0x5c1c77(0xe4)],'operations':{[_0x5349ad['id']]:{'id':_0x5349ad['id'],'params':JSON[_0x5c1c77(0x106)](_0x5349ad['params'])}}}},this[_0x5c1c77(0xe4)]);})),_0x4596b3[_0x62faf4(0x103)](_0x1a1d12);})),this['_liveShareService'][_0xb43744(0x143)](this[_0xb43744(0xe4)])[_0xb43744(0x112)](_0x5c97e2=>this['_collabSession']['send']({'eventID':_0x68e326[_0xb43744(0x15b)],'data':{'unitID':this[_0xb43744(0xe4)],'operations':{[_0x5c97e2['id']]:{'id':_0x5c97e2['id'],'params':JSON[_0xb43744(0x106)](_0x5c97e2[_0xb43744(0x170)])}}}},this[_0xb43744(0xe4)]));}['_stopPresenting'](){var _0x55c875=_0x1d2061,_0x4a6bfc;this['_status$']['next'](_0x55c875(0x115)),(_0x4a6bfc=this[_0x55c875(0x10f)])==null||_0x4a6bfc[_0x55c875(0x109)](),this['_commandDisposable']=null;}[_0x1d2061(0x128)](){var _0x5917e4=_0x1d2061,_0x4c25ac;(_0x4c25ac=this[_0x5917e4(0x10f)])==null||_0x4c25ac[_0x5917e4(0x109)](),this[_0x5917e4(0x12d)]['next']('following');}[_0x1d2061(0x13d)](){var _0x3360d1=_0x1d2061,_0x200d1f;this[_0x3360d1(0x12d)][_0x3360d1(0x103)](_0x3360d1(0x115)),(_0x200d1f=this[_0x3360d1(0x10f)])==null||_0x200d1f['dispose'](),this[_0x3360d1(0x10f)]=null;}[_0x1d2061(0x17c)](){var _0x4f568b=_0x1d2061,_0x41b231;this[_0x4f568b(0x12d)][_0x4f568b(0x103)](_0x4f568b(0x129)),(_0x41b231=this['_commandDisposable'])==null||_0x41b231[_0x4f568b(0x109)]();}['_handleOperation'](_0x5de271){var _0x3f33ee=_0x1d2061;if([_0x3f33ee(0x175),'not-following',_0x3f33ee(0xde)][_0x3f33ee(0x104)](this[_0x3f33ee(0x132)])||!_0x5de271[_0x3f33ee(0x15d)][_0x3f33ee(0xf1)]||_0x5de271[_0x3f33ee(0x15d)][_0x3f33ee(0xf1)]===this[_0x3f33ee(0xfb)][_0x3f33ee(0x110)]())return;this[_0x3f33ee(0x132)]===_0x3f33ee(0x115)&&this[_0x3f33ee(0x128)]();const _0x425c60=_0x5de271[_0x3f33ee(0x15d)]['operations'];Object[_0x3f33ee(0x120)](_0x425c60)[_0x3f33ee(0x112)](_0x20a5c7=>{var _0xe493c4=_0x3f33ee;this['_commandService']['executeCommand'](_0x20a5c7['id'],_0x20a5c7['params']?JSON[_0xe493c4(0x17b)](_0x20a5c7['params']):null,{'fromCollab':!0x0});});}[_0x1d2061(0xff)](){var _0x534ae3=_0x1d2061,_0x3bab3e;this[_0x534ae3(0x12d)][_0x534ae3(0x103)](_0x534ae3(0xde)),(_0x3bab3e=this[_0x534ae3(0x10f)])==null||_0x3bab3e[_0x534ae3(0x109)]();}[_0x1d2061(0x15c)](){var _0x4a5c8f=_0x1d2061;this['_status$'][_0x4a5c8f(0x103)](_0x4a5c8f(0x115)),this[_0x4a5c8f(0x10c)]();}};C=Z([f(0x2,_0xa95083),f(0x3,_0x253fee(L)),f(0x4,_0x4e7867)],C);function Te(){var _0xf7f46a=_0x1d2061;const _0xf4e780=_0x37b90a(I),_0x310cd7=_0x37b90a(_0x33424e),_0x571020=_0x33fa75(()=>_0x310cd7[_0xf7f46a(0xfe)](_0xa2c22f[_0xf7f46a(0xd5)]),void 0x0,!0x1,[]),[_0x1dd626,_0x5becf5]=_0x1669ac(null),[_0x260d25,_0x4ab75c]=_0x1669ac(h[_0xf7f46a(0x100)]),_0x15bb17=_0xec2e7b(null);return _0x483153(()=>(_0x571020&&_0xf4e780[_0xf7f46a(0xec)](_0x571020[_0xf7f46a(0x156)]())[_0xf7f46a(0x169)](_0x3631a1=>{var _0xcbe0c5=_0xf7f46a;_0x5becf5(_0x3631a1),_0x15bb17[_0xcbe0c5(0x144)]=_0x3631a1[_0xcbe0c5(0x130)]['subscribe'](_0xd47ecb=>{_0x4ab75c(_0xd47ecb);});}),()=>{var _0x5b3e1c=_0xf7f46a,_0x34064f;(_0x34064f=_0x15bb17[_0x5b3e1c(0x144)])==null||_0x34064f[_0x5b3e1c(0x14f)](),_0x15bb17[_0x5b3e1c(0x144)]=null;}),[_0x571020,_0xf4e780]),_0x1dd626?_0x1e62c2(_0x2f9467,{'align':_0xf7f46a(0xe3),'disabled':_0x260d25===h[_0xf7f46a(0x17e)],'className':_0xf7f46a(0x124),'overlay':_0x1e62c2($e,{'status':_0x260d25,'coordinator':_0x1dd626}),'children':_0x1e62c2(_0xf7f46a(0xfd),{'className':_0x3df6c9(_0xf7f46a(0x10a),{'univer-cursor-not-allowed':_0x260d25===h[_0xf7f46a(0x17e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x260d25!==h[_0xf7f46a(0x17e)]}),'type':_0xf7f46a(0xfd),'children':_0x1e62c2(B,{'className':_0xf7f46a(0x140)})})}):null;}function $e(_0x4ab5d3){var _0x2c4dda=_0x1d2061;const {status:_0x5948e3,coordinator:_0x1e6e89}=_0x4ab5d3;switch(_0x5948e3){case h[_0x2c4dda(0x100)]:return _0x1e62c2(Fe,{'coordinator':_0x1e6e89});case h[_0x2c4dda(0x117)]:return _0x1e62c2(He,{'coordinator':_0x1e6e89});case h[_0x2c4dda(0x116)]:return _0x1e62c2(je,{'coordinator':_0x1e6e89});case h['OFFLINE']:return _0x1e62c2(Ve,{});case h[_0x2c4dda(0x12a)]:return _0x1e62c2(Ue,{'coordinator':_0x1e6e89});default:return null;}}function Fe(_0x568cab){var _0x2b2b33=_0x1d2061;const {coordinator:_0x28bab8}=_0x568cab;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2(_0x2b2b33(0xed),{'className':_0x2b2b33(0x178),'children':_0x2b2b33(0xd0)}),_0x1e62c2(_0x5a17cb,{'onClick':()=>_0x28bab8[_0x2b2b33(0x161)](),'children':_0x2b2b33(0xe9)})]});}function He(_0x1fd0f8){var _0x149305=_0x1d2061;const {coordinator:_0x4cee6a}=_0x1fd0f8;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2('div',{'className':_0x149305(0x178),'children':_0x149305(0x11d)}),_0x1e62c2(_0x5a17cb,{'onClick':()=>_0x4cee6a[_0x149305(0x177)](),'children':'Stop\x20following'})]});}function je(_0x3db4e5){var _0x5ec24b=_0x1d2061;const {coordinator:_0x3feaed}=_0x3db4e5;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2(_0x5ec24b(0xed),{'className':_0x5ec24b(0x178),'children':_0x5ec24b(0x108)}),_0x1e62c2(_0x5a17cb,{'variant':_0x5ec24b(0x14e),'onClick':()=>_0x3feaed[_0x5ec24b(0xf9)](),'children':'Start\x20following'})]});}function Ue(_0x5d5393){var _0x5bccdf=_0x1d2061;const {coordinator:_0x1eb76c}=_0x5d5393;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2('div',{'className':_0x5bccdf(0x178),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x1e62c2(_0x5a17cb,{'variant':'default','onClick':()=>_0x1eb76c['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x4d80a3=_0x1d2061;return _0x1e62c2(_0x4b49ed,{'children':_0x4d80a3(0x12f)});}var Me=Object[_0x1d2061(0x15a)],ke=(_0x5f3770,_0x578690,_0x4875f0,_0x55609e)=>{var _0x40f501=_0x1d2061;for(var _0x558ede=_0x55609e>0x1?void 0x0:_0x55609e?Me(_0x578690,_0x4875f0):_0x578690,_0x354389=_0x5f3770[_0x40f501(0x119)]-0x1,_0x43a533;_0x354389>=0x0;_0x354389--)(_0x43a533=_0x5f3770[_0x354389])&&(_0x558ede=_0x43a533(_0x558ede)||_0x558ede);return _0x558ede;},$=(_0x2276c7,_0x560b84)=>(_0x3949cf,_0x534f13)=>_0x560b84(_0x3949cf,_0x534f13,_0x2276c7);let b=class extends _0x3ee941{constructor(_0x595b0e,_0x4a7cb4){var _0x40d2bb=_0x1d2061;super(),this[_0x40d2bb(0xf6)]=_0x595b0e,this[_0x40d2bb(0x16a)]=_0x4a7cb4,this[_0x40d2bb(0xf2)]();}[_0x1d2061(0xf2)](){var _0x45ea31=_0x1d2061;this['disposeWithMe'](this[_0x45ea31(0x16a)]['registerComponent'](_0x5b8b60[_0x45ea31(0xe8)],()=>_0x1e3e05(Te,this[_0x45ea31(0xf6)])));}};b=ke([$(0x0,_0x253fee(_0x57aad1)),$(0x1,_0x3fcef6)],b);var Ge=Object[_0x1d2061(0xf0)],We=Object[_0x1d2061(0x15a)],Ye=(_0x208938,_0x331e17,_0x134bde)=>_0x331e17 in _0x208938?Ge(_0x208938,_0x331e17,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x134bde}):_0x208938[_0x331e17]=_0x134bde,Be=(_0x1a4f79,_0x3a0100,_0x511f08,_0x2b4a2e)=>{var _0x35183f=_0x1d2061;for(var _0x4e7eb2=_0x2b4a2e>0x1?void 0x0:_0x2b4a2e?We(_0x3a0100,_0x511f08):_0x3a0100,_0x477017=_0x1a4f79[_0x35183f(0x119)]-0x1,_0x3ef9bc;_0x477017>=0x0;_0x477017--)(_0x3ef9bc=_0x1a4f79[_0x477017])&&(_0x4e7eb2=_0x3ef9bc(_0x4e7eb2)||_0x4e7eb2);return _0x4e7eb2;},F=(_0x50b941,_0x3b683e)=>(_0x13cfd4,_0x506198)=>_0x3b683e(_0x13cfd4,_0x506198,_0x50b941),J=(_0x21c049,_0x3d5f05,_0x48afaf)=>Ye(_0x21c049,typeof _0x3d5f05!=_0x1d2061(0xd4)?_0x3d5f05+'':_0x3d5f05,_0x48afaf);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x2dc2c4{constructor(_0x452d74=T,_0x1bc2bf,_0xbf81e4){var _0x2b104b=_0x1d2061;super(),this[_0x2b104b(0x10d)]=_0x452d74,this[_0x2b104b(0xf6)]=_0x1bc2bf,this['_configService']=_0xbf81e4;const {..._0x3f77d9}=_0x4db2d4({},T,this[_0x2b104b(0x10d)]);this['_configService']['setConfig'](Oe,_0x3f77d9);}[_0x1d2061(0x17a)](){var _0x30f2d8=_0x1d2061;_0x5d2766(this[_0x30f2d8(0xf6)],_0x4e7ffe([[L],[I],[m],[b]],this[_0x30f2d8(0x10d)][_0x30f2d8(0x122)])),_0x86b33f(this[_0x30f2d8(0xf6)],[[m]]);}[_0x1d2061(0xdc)](){_0x86b33f(this['_injector'],[[b]]);}};J(O,_0x1d2061(0x14d),_0xa2c22f['UNIVER_UNKNOWN']),J(O,_0x1d2061(0x172),Ze),O=Be([_0x394549(_0x3e8e9b),F(0x1,_0x253fee(_0x57aad1)),F(0x2,_0xa95083)],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 _0x2ba189=_0xfcac;(function(_0x1905d8,_0x33b72b){var _0x4f7654=_0xfcac,_0x4f2131=_0x1905d8();while(!![]){try{var _0x197022=-parseInt(_0x4f7654(0xcd))/0x1+-parseInt(_0x4f7654(0x158))/0x2*(parseInt(_0x4f7654(0xd5))/0x3)+-parseInt(_0x4f7654(0x101))/0x4+-parseInt(_0x4f7654(0x104))/0x5+parseInt(_0x4f7654(0xc2))/0x6+-parseInt(_0x4f7654(0x132))/0x7*(-parseInt(_0x4f7654(0x161))/0x8)+parseInt(_0x4f7654(0x13c))/0x9;if(_0x197022===_0x33b72b)break;else _0x4f2131['push'](_0x4f2131['shift']());}catch(_0x1cd761){_0x4f2131['push'](_0x4f2131['shift']());}}}(_0x1996,0xbe0ef));var q=Object[_0x2ba189(0xee)],z=(_0x5dd512,_0xaeb118,_0x3fae0e)=>_0xaeb118 in _0x5dd512?q(_0x5dd512,_0xaeb118,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fae0e}):_0x5dd512[_0xaeb118]=_0x3fae0e,d=(_0x2acde4,_0x498f96,_0x2b84da)=>z(_0x2acde4,typeof _0x498f96!=_0x2ba189(0x12c)?_0x498f96+'':_0x498f96,_0x2b84da);import{CollaborationSessionService as _0x1906a9,SessionStatus as _0xf4d28f,UniverCollaborationClientPlugin as _0x310d0b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3d8687,toDisposable as _0x2ba396,Inject as _0x42fbcf,IUniverInstanceService as _0xb5d125,Injector as _0x2f3b08,IConfigService as _0x5584c0,ICommandService as _0x4c13df,RxDisposable as _0x3fd1be,UniverInstanceType as _0x10b104,DisposableCollection as _0x50b462,CommandType as _0x505bfe,DependentOn as _0x190077,Plugin as _0x1d1513,merge as _0x5e17a8,registerDependencies as _0xa89634,mergeOverrideWithDependencies as _0x2fd152,touchDependencies as _0x1ebd0f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x2c4fe6,InsertSheetMutation as _0x56c568}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x160d91,SetScrollOperation as _0x39f42a}from'@univerjs/sheets-ui';import{useDependency as _0x5dc14c,useObservable as _0x1c3067,IUIPartsService as _0x5ca397,BuiltInUIPart as _0x19435c,connectInjector as _0x40f9b9}from'@univerjs/ui';import{jsx as _0x273a27,jsxs as _0x262791,Fragment as _0xfe85f2}from'react/jsx-runtime';import{Dropdown as _0x35e311,clsx as _0x348ec7,Button as _0x1ce9af}from'@univerjs/design';import{forwardRef as _0x583cf3,useRef as _0x1f0119,createElement as _0xfd8b51,useState as _0x5e6230,useEffect as _0x400d7d}from'react';import{CollaborationEvent as _0x277758,parseProtocolChangeset as _0x24cf23}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x433ede,Subject as _0x49f39a}from'rxjs';import{takeUntil as _0x55b894,throttleTime as _0x27469d}from'rxjs/operators';const Oe=_0x2ba189(0x141),T={};class L extends _0x3d8687{constructor(){var _0x3d4eb6=_0x2ba189;super(...arguments),d(this,_0x3d4eb6(0xf5),new Set()),d(this,_0x3d4eb6(0x16a),new Set());}[_0x2ba189(0xd3)](_0xe35bb7){var _0x32992b=_0x2ba189;return this[_0x32992b(0xf5)][_0x32992b(0x142)](_0xe35bb7),_0x2ba396(()=>this[_0x32992b(0xf5)][_0x32992b(0x13e)](_0xe35bb7));}[_0x2ba189(0x119)](_0x6f5a78){var _0x195fcd=_0x2ba189;return this[_0x195fcd(0x16a)][_0x195fcd(0x142)](_0x6f5a78),_0x2ba396(()=>this[_0x195fcd(0x16a)][_0x195fcd(0x13e)](_0x6f5a78));}[_0x2ba189(0x16e)](_0x35ed18){var _0x13b2f5=_0x2ba189;return this[_0x13b2f5(0xf5)][_0x13b2f5(0x14f)](_0x35ed18);}[_0x2ba189(0x108)](_0x249eb2){var _0x364412=_0x2ba189;return Array[_0x364412(0x13f)](this['_reporters'])[_0x364412(0xc5)](_0x55637f=>_0x55637f(_0x249eb2));}}var Ee=Object[_0x2ba189(0x126)],we=(_0x511fb8,_0x96fbdf,_0x1d7e4e,_0x272951)=>{for(var _0x5c6f4a=_0x272951>0x1?void 0x0:_0x272951?Ee(_0x96fbdf,_0x1d7e4e):_0x96fbdf,_0x4d8560=_0x511fb8['length']-0x1,_0x479c33;_0x4d8560>=0x0;_0x4d8560--)(_0x479c33=_0x511fb8[_0x4d8560])&&(_0x5c6f4a=_0x479c33(_0x5c6f4a)||_0x5c6f4a);return _0x5c6f4a;},Ne=(_0x52989b,_0x304db8)=>(_0x10dd47,_0x81383a)=>_0x304db8(_0x10dd47,_0x81383a,_0x52989b);let m=class extends _0x3d8687{constructor(_0x2fcf28){var _0x3e0278=_0x2ba189;super(),this[_0x3e0278(0x137)]=_0x2fcf28,this['_init']();}[_0x2ba189(0x124)](){var _0x5bdf0b=_0x2ba189;[_0x160d91['id'],_0x39f42a['id'],_0x2c4fe6['id']][_0x5bdf0b(0x154)](_0x23c674=>{var _0x3860c4=_0x5bdf0b;this[_0x3860c4(0xd6)](this[_0x3860c4(0x137)]['registerSharedOperation'](_0x23c674));});}};m=we([Ne(0x0,_0x42fbcf(L))],m);var c=function(){var _0x18874c=_0x2ba189;return c=Object[_0x18874c(0x165)]||function(_0x3318ee){var _0x2ae94c=_0x18874c;for(var _0x360050,_0x348d12=0x1,_0x267e5b=arguments[_0x2ae94c(0xe0)];_0x348d12<_0x267e5b;_0x348d12++){_0x360050=arguments[_0x348d12];for(var _0x1f042c in _0x360050)Object[_0x2ae94c(0x11f)][_0x2ae94c(0xca)][_0x2ae94c(0x15e)](_0x360050,_0x1f042c)&&(_0x3318ee[_0x1f042c]=_0x360050[_0x1f042c]);}return _0x3318ee;},c[_0x18874c(0xf3)](this,arguments);},Ce=function(_0x135f5a,_0x4a0a98){var _0x1be792=_0x2ba189,_0x3b507d={};for(var _0x69ad38 in _0x135f5a)Object[_0x1be792(0x11f)][_0x1be792(0xca)][_0x1be792(0x15e)](_0x135f5a,_0x69ad38)&&_0x4a0a98['indexOf'](_0x69ad38)<0x0&&(_0x3b507d[_0x69ad38]=_0x135f5a[_0x69ad38]);if(_0x135f5a!=null&&typeof Object[_0x1be792(0x13a)]==_0x1be792(0xf8)){for(var _0x177bd0=0x0,_0x69ad38=Object[_0x1be792(0x13a)](_0x135f5a);_0x177bd0<_0x69ad38[_0x1be792(0xe0)];_0x177bd0++)_0x4a0a98[_0x1be792(0x103)](_0x69ad38[_0x177bd0])<0x0&&Object[_0x1be792(0x11f)]['propertyIsEnumerable'][_0x1be792(0x15e)](_0x135f5a,_0x69ad38[_0x177bd0])&&(_0x3b507d[_0x69ad38[_0x177bd0]]=_0x135f5a[_0x69ad38[_0x177bd0]]);}return _0x3b507d;},W=_0x583cf3(function(_0x7552b0,_0x113a0b){var _0x1cfd40=_0x2ba189,_0x3f6d8f=_0x7552b0[_0x1cfd40(0x106)],_0x323d5e=_0x7552b0['id'],_0x26ee8d=_0x7552b0['className'],_0x6d5b6=_0x7552b0[_0x1cfd40(0x100)],_0x354399=Ce(_0x7552b0,[_0x1cfd40(0x106),'id',_0x1cfd40(0x152),_0x1cfd40(0x100)]),_0x275653=_0x1cfd40(0x12b)['concat'](_0x323d5e,'\x20')[_0x1cfd40(0x10f)](_0x26ee8d||'')[_0x1cfd40(0x105)](),_0x1492b3=_0x1f0119('_'[_0x1cfd40(0x10f)](Le()));return Y(_0x3f6d8f,''[_0x1cfd40(0x10f)](_0x323d5e),{'defIds':_0x3f6d8f[_0x1cfd40(0xda)],'idSuffix':_0x1492b3['current']},c({'ref':_0x113a0b,'className':_0x275653},_0x354399),_0x6d5b6);});function Y(_0x59615f,_0x58bc6f,_0x3063df,_0x333281,_0x21d679){var _0x197ac5=_0x2ba189;return _0xfd8b51(_0x59615f[_0x197ac5(0x16d)],c(c({'key':_0x58bc6f},De(_0x59615f,_0x3063df,_0x21d679)),_0x333281),(xe(_0x59615f,_0x3063df)[_0x197ac5(0xe9)]||[])[_0x197ac5(0xc5)](function(_0x319446,_0x102170){var _0x128779=_0x197ac5;return Y(_0x319446,''[_0x128779(0x10f)](_0x58bc6f,'-')['concat'](_0x59615f[_0x128779(0x16d)],'-')[_0x128779(0x10f)](_0x102170),_0x3063df,void 0x0,_0x21d679);}));}function De(_0x4ba5b4,_0x21625a,_0x3215b3){var _0x1d93c6=_0x2ba189,_0x23c242=c({},_0x4ba5b4[_0x1d93c6(0x123)]);_0x3215b3!=null&&_0x3215b3[_0x1d93c6(0x130)]&&_0x23c242[_0x1d93c6(0x168)]===_0x1d93c6(0x130)&&(_0x23c242[_0x1d93c6(0x168)]=_0x3215b3['colorChannel1']),_0x4ba5b4[_0x1d93c6(0x16d)]===_0x1d93c6(0xeb)&&_0x23c242['id']&&(_0x23c242['id']=_0x23c242['id']+_0x21625a[_0x1d93c6(0x11a)]),Object[_0x1d93c6(0x145)](_0x23c242)['forEach'](function(_0x56e08c){var _0xb29cce=_0x1d93c6,_0x1e5b70=_0x56e08c[0x0],_0x1d827b=_0x56e08c[0x1];_0x1e5b70===_0xb29cce(0xeb)&&typeof _0x1d827b==_0xb29cce(0xdd)&&(_0x23c242[_0x1e5b70]=_0x1d827b['replace'](/url\(#(.*)\)/,_0xb29cce(0x111)[_0xb29cce(0x10f)](_0x21625a[_0xb29cce(0x11a)],')')));});var _0x24b441=_0x21625a['defIds'];return!_0x24b441||_0x24b441[_0x1d93c6(0xe0)]===0x0||(_0x4ba5b4[_0x1d93c6(0x16d)]===_0x1d93c6(0xe8)&&_0x23c242[_0x1d93c6(0xfa)]&&(_0x23c242[_0x1d93c6(0xfa)]=_0x23c242[_0x1d93c6(0xfa)]+_0x21625a[_0x1d93c6(0x11a)]),Object[_0x1d93c6(0x145)](_0x23c242)[_0x1d93c6(0x154)](function(_0x59eaea){var _0x1fbef4=_0x1d93c6,_0x19635d=_0x59eaea[0x0],_0x4f484a=_0x59eaea[0x1];typeof _0x4f484a==_0x1fbef4(0xdd)&&(_0x23c242[_0x19635d]=_0x4f484a[_0x1fbef4(0x15c)](/url\(#(.*)\)/,_0x1fbef4(0x111)[_0x1fbef4(0x10f)](_0x21625a[_0x1fbef4(0x11a)],')')));})),_0x23c242;}function xe(_0x1cc124,_0x25b15f){var _0x3dde88=_0x2ba189,_0x21cf37,_0x178fd6=_0x25b15f[_0x3dde88(0xda)];return!_0x178fd6||_0x178fd6[_0x3dde88(0xe0)]===0x0?_0x1cc124:_0x1cc124[_0x3dde88(0x16d)]===_0x3dde88(0xc4)&&(!((_0x21cf37=_0x1cc124[_0x3dde88(0xe9)])===null||_0x21cf37===void 0x0)&&_0x21cf37[_0x3dde88(0xe0)])?c(c({},_0x1cc124),{'children':_0x1cc124[_0x3dde88(0xe9)][_0x3dde88(0xc5)](function(_0x27e532){var _0x10a542=_0x3dde88;return typeof _0x27e532['attrs']['id']==_0x10a542(0xdd)&&_0x178fd6&&_0x178fd6['includes'](_0x27e532[_0x10a542(0x123)]['id'])?c(c({},_0x27e532),{'attrs':c(c({},_0x27e532['attrs']),{'id':_0x27e532[_0x10a542(0x123)]['id']+_0x25b15f[_0x10a542(0x11a)]})}):_0x27e532;})}):_0x1cc124;}function Le(){var _0x3ee525=_0x2ba189;return Math[_0x3ee525(0x11c)]()[_0x3ee525(0x170)](0x24)[_0x3ee525(0x135)](0x2,0x8);}W[_0x2ba189(0xc1)]='UniverIcon';var ye={'tag':_0x2ba189(0x169),'attrs':{'xmlns':_0x2ba189(0xe6),'fill':_0x2ba189(0x11e),'viewBox':_0x2ba189(0x10c),'width':_0x2ba189(0x12d),'height':_0x2ba189(0x12d)},'children':[{'tag':_0x2ba189(0x15d),'attrs':{'fill':_0x2ba189(0x167),'d':_0x2ba189(0x117)}},{'tag':'path','attrs':{'fill':_0x2ba189(0x167),'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':'evenodd','clipRule':'evenodd'}}]},B=_0x583cf3(function(_0xd445ed,_0x16a099){var _0x3621dd=_0x2ba189;return _0xfd8b51(W,Object[_0x3621dd(0x165)]({},_0xd445ed,{'id':'live-share-icon','ref':_0x16a099,'icon':ye}));});B[_0x2ba189(0xc1)]='LiveShareIcon';var Re=Object[_0x2ba189(0x126)],Z=(_0x2b4632,_0x7ff1c4,_0x3045e1,_0x385943)=>{for(var _0xd29a4a=_0x385943>0x1?void 0x0:_0x385943?Re(_0x7ff1c4,_0x3045e1):_0x7ff1c4,_0x4aee79=_0x2b4632['length']-0x1,_0x41ac39;_0x4aee79>=0x0;_0x4aee79--)(_0x41ac39=_0x2b4632[_0x4aee79])&&(_0xd29a4a=_0x41ac39(_0xd29a4a)||_0xd29a4a);return _0xd29a4a;},f=(_0x59ae78,_0x546496)=>(_0x2358ac,_0x430c52)=>_0x546496(_0x2358ac,_0x430c52,_0x59ae78);let I=class extends _0x3fd1be{constructor(_0x21e8d0,_0x4ca8eb,_0x341af1){var _0x3d2e96=_0x2ba189;super(),d(this,_0x3d2e96(0xf9),new Map()),(this[_0x3d2e96(0x164)]=_0x21e8d0,this['_injector']=_0x4ca8eb,this[_0x3d2e96(0x15b)]=_0x341af1,this[_0x3d2e96(0x124)]());}async['getLiveShareCoordinator'](_0x3b2b8c){var _0x9ba75e=_0x2ba189;return this[_0x9ba75e(0xf9)][_0x9ba75e(0x14f)](_0x3b2b8c)||await this['_startLiveShareCoordinator'](_0x3b2b8c),this['_entities'][_0x9ba75e(0x15f)](_0x3b2b8c);}[_0x2ba189(0x124)](){var _0x892f87=_0x2ba189;this[_0x892f87(0x164)][_0x892f87(0x129)](_0x10b104[_0x892f87(0xd2)])['pipe'](_0x55b894(this['dispose$']))[_0x892f87(0x116)](async _0x524419=>{var _0x119959=_0x892f87;const _0x25c57b=_0x524419[_0x119959(0x14a)]();this[_0x119959(0xf9)][_0x119959(0x14f)](_0x25c57b)||this[_0x119959(0x122)](_0x25c57b);}),this[_0x892f87(0x164)][_0x892f87(0xf2)](_0x10b104['UNIVER_SHEET'])[_0x892f87(0x110)](_0x55b894(this[_0x892f87(0xe5)]))[_0x892f87(0x116)](_0x2d023c=>{var _0x1a3bf0=_0x892f87;const _0x273e04=_0x2d023c[_0x1a3bf0(0x14a)](),_0x240e76=this[_0x1a3bf0(0xf9)][_0x1a3bf0(0x15f)](_0x273e04);_0x240e76==null||_0x240e76['dispose']();});}async[_0x2ba189(0x122)](_0x50aa5e){var _0x1f8771=_0x2ba189;const _0x2429fc=await this[_0x1f8771(0x15b)][_0x1f8771(0xc8)](_0x50aa5e),_0x4469aa=this['_injector']['createInstance'](C,_0x50aa5e,_0x2429fc);return _0x4469aa[_0x1f8771(0xcb)](),this[_0x1f8771(0xf9)][_0x1f8771(0x147)](_0x50aa5e,_0x4469aa),_0x4469aa;}};I=Z([f(0x0,_0xb5d125),f(0x1,_0x42fbcf(_0x2f3b08)),f(0x2,_0x42fbcf(_0x1906a9))],I);function _0xfcac(_0xee6ad5,_0x4b4728){var _0x1996e9=_0x1996();return _0xfcac=function(_0xfcacc4,_0x45bd97){_0xfcacc4=_0xfcacc4-0xc1;var _0x15f217=_0x1996e9[_0xfcacc4];return _0x15f217;},_0xfcac(_0xee6ad5,_0x4b4728);}var h=(_0x17b5d7=>(_0x17b5d7[_0x2ba189(0xc3)]='offline',_0x17b5d7[_0x2ba189(0xdc)]=_0x2ba189(0x15a),_0x17b5d7['FOLLOWING']=_0x2ba189(0xea),_0x17b5d7[_0x2ba189(0x10e)]=_0x2ba189(0x14e),_0x17b5d7['PRESENTING']=_0x2ba189(0x13b),_0x17b5d7))(h||{});const Pe=_0x2ba189(0x16c),Ae=0xc8;let C=class extends _0x3fd1be{constructor(_0x1e7d7e,_0x5c3db9,_0x98429b,_0x4007f2,_0xab35ed){var _0x323908=_0x2ba189;super(),d(this,_0x323908(0x136),new _0x433ede(_0x323908(0x15a))),d(this,_0x323908(0xed),this['_status$'][_0x323908(0xcc)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x323908(0x140),null),(this[_0x323908(0xe1)]=_0x1e7d7e,this['_collabSession']=_0x5c3db9,this[_0x323908(0x16f)]=_0x98429b,this[_0x323908(0x137)]=_0x4007f2,this[_0x323908(0x143)]=_0xab35ed);}get['_status'](){var _0x2039fb=_0x2ba189;return this[_0x2039fb(0x136)]['getValue']();}['dispose'](){var _0xfb5dd4=_0x2ba189,_0x1bbaf1;(_0x1bbaf1=this['_commandDisposable'])==null||_0x1bbaf1[_0xfb5dd4(0xfd)](),this[_0xfb5dd4(0x136)][_0xfb5dd4(0x112)](_0xfb5dd4(0x15a)),this[_0xfb5dd4(0x136)][_0xfb5dd4(0x13d)]();}[_0x2ba189(0xcb)](){var _0x2c1af6=_0x2ba189;this[_0x2c1af6(0x124)]||(this[_0x2c1af6(0x124)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0x55b894(this[_0x2c1af6(0xe5)]))[_0x2c1af6(0x116)](_0x2309ab=>{var _0xb798b=_0x2c1af6;switch(_0x2309ab){case _0xf4d28f['OFFLINE']:this[_0xb798b(0x144)]();break;case _0xf4d28f['ONLINE']:this[_0xb798b(0x159)]();break;}}),this[_0x2c1af6(0xd9)][_0x2c1af6(0xd8)]['pipe'](_0x55b894(this[_0x2c1af6(0xe5)]))[_0x2c1af6(0x116)](_0x3b71ce=>{var _0x107beb=_0x2c1af6;const {eventID:_0x3716b4}=_0x3b71ce;switch(_0x3716b4){case _0x277758[_0x107beb(0x131)]:this[_0x107beb(0x163)](_0x3b71ce);break;case _0x277758[_0x107beb(0xfe)]:this[_0x107beb(0x134)](_0x3b71ce);break;case _0x277758[_0x107beb(0x16b)]:this[_0x107beb(0xd4)]();break;case _0x277758[_0x107beb(0x133)]:this[_0x107beb(0xde)](_0x3b71ce);break;}}));}[_0x2ba189(0x139)](){var _0x26d84e=_0x2ba189;this[_0x26d84e(0xd9)][_0x26d84e(0x115)]({'eventID':_0x277758[_0x26d84e(0xfc)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x26d84e(0xe1)]);}[_0x2ba189(0x156)](){var _0x50abdb=_0x2ba189;this[_0x50abdb(0xcf)]===_0x50abdb(0x13b)&&(this['_status$'][_0x50abdb(0x112)](_0x50abdb(0x15a)),this[_0x50abdb(0xd9)][_0x50abdb(0x115)]({'eventID':_0x277758['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x50abdb(0xe1)]));}[_0x2ba189(0x150)](){var _0x3736f1=_0x2ba189;this[_0x3736f1(0xcf)]===_0x3736f1(0x14e)&&(this[_0x3736f1(0x136)]['next'](_0x3736f1(0xea)),this[_0x3736f1(0xe3)]());}[_0x2ba189(0xd7)](){var _0x49d4d9=_0x2ba189;this[_0x49d4d9(0xcf)]===_0x49d4d9(0xea)&&this[_0x49d4d9(0x153)]();}['_handleNewHost'](_0x58cfc1){var _0x2d4211=_0x2ba189;const {presenter:_0x1e9af8}=_0x58cfc1[_0x2d4211(0x157)],_0x2c0d9d=this[_0x2d4211(0xd9)][_0x2d4211(0xf6)]();this[_0x2d4211(0x140)]=_0x1e9af8,_0x1e9af8===_0x2c0d9d?(this[_0x2d4211(0x153)](),this['_startPresenting']()):this[_0x2d4211(0xcf)]!=='not-following'&&(this['_stopPresenting'](),this[_0x2d4211(0xe3)]());}[_0x2ba189(0xec)](){var _0x4bc6e2=_0x2ba189;const _0x44375a={'eventID':_0x277758['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x4bc6e2(0x115)](_0x44375a,this[_0x4bc6e2(0xe1)]);}[_0x2ba189(0xd4)](){var _0x163a3b=_0x2ba189;this[_0x163a3b(0x140)]=null,this[_0x163a3b(0xcf)]!==_0x163a3b(0x13b)&&this['_beIdle']();}[_0x2ba189(0xde)](_0x720019){var _0x531ca8=_0x2ba189;if(this[_0x531ca8(0xcf)]===_0x531ca8(0xea)&&this[_0x531ca8(0x140)]===_0x720019[_0x531ca8(0x157)]['memberID']){const _0x329c7a=_0x24cf23(_0x720019['data'])[_0x531ca8(0x127)][_0x531ca8(0x138)]()[_0x531ca8(0x166)](_0xf269a9=>_0xf269a9['id']===_0x56c568['id']);if(_0x329c7a){const _0x120039=_0x329c7a[_0x531ca8(0x109)][_0x531ca8(0x121)],_0x279837=_0x329c7a[_0x531ca8(0x109)]['sheet']['id'];setTimeout(()=>{var _0x2aebe1=_0x531ca8;this[_0x2aebe1(0x143)][_0x2aebe1(0xf4)](_0x2c4fe6['id'],{'unitId':_0x120039,'subUnitId':_0x279837},{'fromCollab':!0x0});});}}}[_0x2ba189(0xf1)](){var _0x6d5684=_0x2ba189;this[_0x6d5684(0x136)][_0x6d5684(0x112)](_0x6d5684(0x13b));const _0x1ee16a=new Map(),_0xe046f5=this[_0x6d5684(0xdf)]=new _0x50b462();_0xe046f5[_0x6d5684(0x142)](_0x2ba396(()=>{_0x1ee16a['forEach'](_0x40489a=>_0x40489a['complete']()),_0x1ee16a['clear']();})),_0xe046f5['add'](this[_0x6d5684(0x143)][_0x6d5684(0x146)](_0x1f3493=>{var _0x22be56=_0x6d5684,_0x5de6fc;if(_0x1f3493[_0x22be56(0x151)]!==_0x505bfe['OPERATION']||!this['_liveShareService'][_0x22be56(0x16e)](_0x1f3493['id']))return;const {id:_0x163c40}=_0x1f3493;let _0x5f0b0d;_0x1ee16a['has'](_0x163c40)?_0x5f0b0d=_0x1ee16a['get'](_0x163c40):(_0x5f0b0d=new _0x49f39a(),_0x1ee16a[_0x22be56(0x147)](_0x163c40,_0x5f0b0d),_0x5f0b0d[_0x22be56(0x110)](_0x27469d((_0x5de6fc=this[_0x22be56(0x16f)][_0x22be56(0x102)](Pe))!=null?_0x5de6fc:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x22be56(0x116)](_0x123fe5=>{var _0x33af89=_0x22be56;this[_0x33af89(0xd9)]['send']({'eventID':_0x277758[_0x33af89(0xfe)],'data':{'unitID':this[_0x33af89(0xe1)],'operations':{[_0x123fe5['id']]:{'id':_0x123fe5['id'],'params':JSON[_0x33af89(0x14b)](_0x123fe5[_0x33af89(0x109)])}}}},this[_0x33af89(0xe1)]);})),_0x5f0b0d[_0x22be56(0x112)](_0x1f3493);})),this[_0x6d5684(0x137)][_0x6d5684(0x108)](this[_0x6d5684(0xe1)])[_0x6d5684(0x154)](_0x32e783=>this['_collabSession'][_0x6d5684(0x115)]({'eventID':_0x277758[_0x6d5684(0xfe)],'data':{'unitID':this[_0x6d5684(0xe1)],'operations':{[_0x32e783['id']]:{'id':_0x32e783['id'],'params':JSON['stringify'](_0x32e783[_0x6d5684(0x109)])}}}},this[_0x6d5684(0xe1)]));}[_0x2ba189(0xc9)](){var _0x2ded01=_0x2ba189,_0x4bdd29;this[_0x2ded01(0x136)][_0x2ded01(0x112)](_0x2ded01(0x15a)),(_0x4bdd29=this[_0x2ded01(0xdf)])==null||_0x4bdd29['dispose'](),this['_commandDisposable']=null;}[_0x2ba189(0xe3)](){var _0x25cfda=_0x2ba189,_0x217fa3;(_0x217fa3=this['_commandDisposable'])==null||_0x217fa3[_0x25cfda(0xfd)](),this[_0x25cfda(0x136)]['next']('following');}[_0x2ba189(0xe7)](){var _0x2eab9d=_0x2ba189,_0xca5737;this[_0x2eab9d(0x136)][_0x2eab9d(0x112)](_0x2eab9d(0x15a)),(_0xca5737=this[_0x2eab9d(0xdf)])==null||_0xca5737[_0x2eab9d(0xfd)](),this[_0x2eab9d(0xdf)]=null;}['_stopFollowing'](){var _0x6d117=_0x2ba189,_0x32d8ae;this[_0x6d117(0x136)][_0x6d117(0x112)](_0x6d117(0x14e)),(_0x32d8ae=this[_0x6d117(0xdf)])==null||_0x32d8ae[_0x6d117(0xfd)]();}[_0x2ba189(0x134)](_0x56761f){var _0xcf0d90=_0x2ba189;if([_0xcf0d90(0x13b),_0xcf0d90(0x14e),_0xcf0d90(0x155)]['includes'](this[_0xcf0d90(0xcf)])||!_0x56761f[_0xcf0d90(0x157)]['presenter']||_0x56761f[_0xcf0d90(0x157)][_0xcf0d90(0xef)]===this[_0xcf0d90(0xd9)][_0xcf0d90(0xf6)]())return;this[_0xcf0d90(0xcf)]===_0xcf0d90(0x15a)&&this[_0xcf0d90(0xe3)]();const _0x18df67=_0x56761f[_0xcf0d90(0x157)][_0xcf0d90(0x12f)];Object['values'](_0x18df67)[_0xcf0d90(0x154)](_0x1ec1eb=>{var _0x5592ae=_0xcf0d90;this['_commandService'][_0x5592ae(0xf4)](_0x1ec1eb['id'],_0x1ec1eb[_0x5592ae(0x109)]?JSON['parse'](_0x1ec1eb[_0x5592ae(0x109)]):null,{'fromCollab':!0x0});});}[_0x2ba189(0x144)](){var _0x4aee44=_0x2ba189,_0x1a1532;this[_0x4aee44(0x136)][_0x4aee44(0x112)](_0x4aee44(0x155)),(_0x1a1532=this[_0x4aee44(0xdf)])==null||_0x1a1532['dispose']();}[_0x2ba189(0x159)](){var _0x30f98e=_0x2ba189;this[_0x30f98e(0x136)]['next'](_0x30f98e(0x15a)),this[_0x30f98e(0xec)]();}};C=Z([f(0x2,_0x5584c0),f(0x3,_0x42fbcf(L)),f(0x4,_0x4c13df)],C);function Te(){var _0x31d124=_0x2ba189;const _0x11a319=_0x5dc14c(I),_0x151ae5=_0x5dc14c(_0xb5d125),_0x5e6df8=_0x1c3067(()=>_0x151ae5['getCurrentTypeOfUnit$'](_0x10b104[_0x31d124(0xd2)]),void 0x0,!0x1,[]),[_0x313bbc,_0x4e0145]=_0x5e6230(null),[_0xca4d32,_0x2494a0]=_0x5e6230(h['IDLE']),_0x4475d6=_0x1f0119(null);return _0x400d7d(()=>(_0x5e6df8&&_0x11a319[_0x31d124(0x162)](_0x5e6df8[_0x31d124(0x14a)]())[_0x31d124(0xc7)](_0x4f6c49=>{var _0x131b75=_0x31d124;_0x4e0145(_0x4f6c49),_0x4475d6['current']=_0x4f6c49[_0x131b75(0xed)][_0x131b75(0x116)](_0x348901=>{_0x2494a0(_0x348901);});}),()=>{var _0x55fa8c=_0x31d124,_0x5605c3;(_0x5605c3=_0x4475d6[_0x55fa8c(0xfb)])==null||_0x5605c3[_0x55fa8c(0x118)](),_0x4475d6[_0x55fa8c(0xfb)]=null;}),[_0x5e6df8,_0x11a319]),_0x313bbc?_0x273a27(_0x35e311,{'align':'end','disabled':_0xca4d32===h[_0x31d124(0xc3)],'className':_0x31d124(0x148),'overlay':_0x273a27($e,{'status':_0xca4d32,'coordinator':_0x313bbc}),'children':_0x273a27(_0x31d124(0xd1),{'className':_0x348ec7(_0x31d124(0xe4),{'univer-cursor-not-allowed':_0xca4d32===h[_0x31d124(0xc3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xca4d32!==h[_0x31d124(0xc3)]}),'type':_0x31d124(0xd1),'children':_0x273a27(B,{'className':_0x31d124(0xdb)})})}):null;}function $e(_0x508a99){var _0x3c2893=_0x2ba189;const {status:_0x1d613b,coordinator:_0x5af459}=_0x508a99;switch(_0x1d613b){case h['IDLE']:return _0x273a27(Fe,{'coordinator':_0x5af459});case h[_0x3c2893(0xf7)]:return _0x273a27(He,{'coordinator':_0x5af459});case h[_0x3c2893(0x10e)]:return _0x273a27(je,{'coordinator':_0x5af459});case h['OFFLINE']:return _0x273a27(Ve,{});case h[_0x3c2893(0x114)]:return _0x273a27(Ue,{'coordinator':_0x5af459});default:return null;}}function Fe(_0x7a5b8d){var _0x176b14=_0x2ba189;const {coordinator:_0x347c1e}=_0x7a5b8d;return _0x262791(_0xfe85f2,{'children':[_0x273a27(_0x176b14(0xff),{'className':_0x176b14(0x120),'children':_0x176b14(0x11b)}),_0x273a27(_0x1ce9af,{'onClick':()=>_0x347c1e[_0x176b14(0x139)](),'children':_0x176b14(0x107)})]});}function He(_0x5e81c0){var _0x4cb111=_0x2ba189;const {coordinator:_0x4bf788}=_0x5e81c0;return _0x262791(_0xfe85f2,{'children':[_0x273a27(_0x4cb111(0xff),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x273a27(_0x1ce9af,{'onClick':()=>_0x4bf788[_0x4cb111(0xd7)](),'children':'Stop\x20following'})]});}function je(_0x200f77){var _0x4b6ed7=_0x2ba189;const {coordinator:_0x8e509b}=_0x200f77;return _0x262791(_0xfe85f2,{'children':[_0x273a27(_0x4b6ed7(0xff),{'className':_0x4b6ed7(0x120),'children':_0x4b6ed7(0x12a)}),_0x273a27(_0x1ce9af,{'variant':_0x4b6ed7(0x113),'onClick':()=>_0x8e509b[_0x4b6ed7(0x150)](),'children':_0x4b6ed7(0x160)})]});}function Ue(_0x43c43e){var _0x5dbb15=_0x2ba189;const {coordinator:_0x586691}=_0x43c43e;return _0x262791(_0xfe85f2,{'children':[_0x273a27('div',{'className':_0x5dbb15(0x120),'children':_0x5dbb15(0x10b)}),_0x273a27(_0x1ce9af,{'variant':_0x5dbb15(0xe2),'onClick':()=>_0x586691[_0x5dbb15(0x156)](),'children':_0x5dbb15(0xf0)})]});}function _0x1996(){var _0x3d812f=['stopFollowing','event$','_collabSession','defIds','univer-size-4','IDLE','string','_handleNewChangeSets','_commandDisposable','length','_unitID','default','_startFollowing','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose$','http://www.w3.org/2000/svg','_beIdle','use','children','following','mask','_fetchOperations','status$','defineProperty','presenter','Stop\x20presenting','_startPresenting','getTypeOfUnitDisposed$','apply','executeCommand','_sharedOperations','getMemberID','FOLLOWING','function','_entities','xlink:href','current','LIVESHARE_REQUEST_HOST','dispose','LIVESHARE_OPERATION','div','extend','3912392CtBFDD','getConfig','indexOf','5180010sUMDiP','trim','icon','Start','getInitialStates','params','_mountLiveShare','You\x27re\x20presenting\x20the\x20document','0\x200\x2017\x2017','_config','NOT_FOLLOWING','concat','pipe','url(#$1','next','text','PRESENTING','send','subscribe','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','unsubscribe','registerInitialStateReporter','idSuffix','Present\x20this\x20document','random','HEADER_MENU','none','prototype','univer-mb-3\x20univer-w-full\x20univer-text-sm','unitId','_startLiveShareCoordinator','attrs','_init','registerComponent','getOwnPropertyDescriptor','mutations','pluginName','getTypeOfUnitAdded$','You\x27re\x20not\x20following\x20the\x20presenter','univerjs-icon\x20univerjs-icon-','symbol','1em','You\x27are\x20offline.','operations','colorChannel1','LIVESHARE_NEW_HOST','7ihoMCG','NEW_CHANGESETS','_handleOperation','substring','_status$','_liveShareService','reverse','tryStartPresenting','getOwnPropertySymbols','presenting','41808780LOyfwR','complete','delete','from','_presenter','live-share.config','add','_commandService','_handleOffline','entries','onCommandExecuted','set','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_uiPartsService','getUnitId','stringify','override','onRendered','not-following','has','startFollowing','type','className','_stopFollowing','forEach','offline','stopPresenting','data','4RgcWhm','_handleOnline','idle','_collabSessionService','replace','path','call','get','Start\x20following','1449576RosJjT','getLiveShareCoordinator','_handleNewHost','_univerInstanceService','assign','find','currentColor','fill','svg','_reporters','LIVESHARE_TERMINATE','SAME_OPERATION_SHARE_INTERVAL','tag','shouldShareOperation','_configService','toString','displayName','549456TVZtSq','OFFLINE','defs','map','_injector','then','requireSession','_stopPresenting','hasOwnProperty','init','asObservable','1306526KZiTME','UNIVER_UNKNOWN','_status','onStarting','button','UNIVER_SHEET','registerSharedOperation','_handleTerminate','1228632kkWDWF','disposeWithMe'];_0x1996=function(){return _0x3d812f;};return _0x1996();}function Ve(){var _0x57abed=_0x2ba189;return _0x273a27(_0xfe85f2,{'children':_0x57abed(0x12e)});}var Me=Object[_0x2ba189(0x126)],ke=(_0x1c50dd,_0x12638b,_0xb8977f,_0x189798)=>{var _0x3e410f=_0x2ba189;for(var _0x1207e1=_0x189798>0x1?void 0x0:_0x189798?Me(_0x12638b,_0xb8977f):_0x12638b,_0x3facd6=_0x1c50dd[_0x3e410f(0xe0)]-0x1,_0x462a70;_0x3facd6>=0x0;_0x3facd6--)(_0x462a70=_0x1c50dd[_0x3facd6])&&(_0x1207e1=_0x462a70(_0x1207e1)||_0x1207e1);return _0x1207e1;},$=(_0x1ea2c0,_0x9ecfde)=>(_0x3f008e,_0x2fa15f)=>_0x9ecfde(_0x3f008e,_0x2fa15f,_0x1ea2c0);let b=class extends _0x3d8687{constructor(_0x1aa4c5,_0x3384c){var _0x3aa753=_0x2ba189;super(),this['_injector']=_0x1aa4c5,this[_0x3aa753(0x149)]=_0x3384c,this[_0x3aa753(0x10a)]();}[_0x2ba189(0x10a)](){var _0x85206b=_0x2ba189;this['disposeWithMe'](this['_uiPartsService'][_0x85206b(0x125)](_0x19435c[_0x85206b(0x11d)],()=>_0x40f9b9(Te,this['_injector'])));}};b=ke([$(0x0,_0x42fbcf(_0x2f3b08)),$(0x1,_0x5ca397)],b);var Ge=Object[_0x2ba189(0xee)],We=Object[_0x2ba189(0x126)],Ye=(_0x40af8b,_0x3ba87d,_0x586392)=>_0x3ba87d in _0x40af8b?Ge(_0x40af8b,_0x3ba87d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x586392}):_0x40af8b[_0x3ba87d]=_0x586392,Be=(_0x4b7043,_0x254ac8,_0x3bc2b4,_0x4c46e4)=>{for(var _0x536b40=_0x4c46e4>0x1?void 0x0:_0x4c46e4?We(_0x254ac8,_0x3bc2b4):_0x254ac8,_0x52d610=_0x4b7043['length']-0x1,_0x4b00fa;_0x52d610>=0x0;_0x52d610--)(_0x4b00fa=_0x4b7043[_0x52d610])&&(_0x536b40=_0x4b00fa(_0x536b40)||_0x536b40);return _0x536b40;},F=(_0x270c53,_0x1c793c)=>(_0x4a37f7,_0x1f1064)=>_0x1c793c(_0x4a37f7,_0x1f1064,_0x270c53),J=(_0x5261e7,_0x21390b,_0x3c053b)=>Ye(_0x5261e7,typeof _0x21390b!=_0x2ba189(0x12c)?_0x21390b+'':_0x21390b,_0x3c053b);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1d1513{constructor(_0x497e1a=T,_0x51fba6,_0x5aa79f){var _0xb7c24c=_0x2ba189;super(),this[_0xb7c24c(0x10d)]=_0x497e1a,this[_0xb7c24c(0xc6)]=_0x51fba6,this[_0xb7c24c(0x16f)]=_0x5aa79f;const {..._0x49ec8f}=_0x5e17a8({},T,this['_config']);this[_0xb7c24c(0x16f)]['setConfig'](Oe,_0x49ec8f);}[_0x2ba189(0xd0)](){var _0x2db7d3=_0x2ba189;_0xa89634(this[_0x2db7d3(0xc6)],_0x2fd152([[L],[I],[m],[b]],this[_0x2db7d3(0x10d)][_0x2db7d3(0x14c)])),_0x1ebd0f(this[_0x2db7d3(0xc6)],[[m]]);}[_0x2ba189(0x14d)](){_0x1ebd0f(this['_injector'],[[b]]);}};J(O,_0x2ba189(0x151),_0x10b104[_0x2ba189(0xce)]),J(O,_0x2ba189(0x128),Ze),O=Be([_0x190077(_0x310d0b),F(0x1,_0x42fbcf(_0x2f3b08)),F(0x2,_0x5584c0)],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 _0x49c5(_0x45a3b6,_0x3e54b9){var _0x4bf3c9=_0x4bf3();return _0x49c5=function(_0x49c56a,_0x3942ae){_0x49c56a=_0x49c56a-0xdc;var _0x4a7a0b=_0x4bf3c9[_0x49c56a];return _0x4a7a0b;},_0x49c5(_0x45a3b6,_0x3e54b9);}(function(_0x5602fe,_0x1798ba){var _0x4a745e=_0x49c5,_0x4bd177=_0x5602fe();while(!![]){try{var _0x3d7aa1=-parseInt(_0x4a745e(0x16a))/0x1*(-parseInt(_0x4a745e(0x1b7))/0x2)+-parseInt(_0x4a745e(0x143))/0x3+parseInt(_0x4a745e(0x1a6))/0x4+-parseInt(_0x4a745e(0x1af))/0x5+parseInt(_0x4a745e(0x10e))/0x6+-parseInt(_0x4a745e(0x169))/0x7*(parseInt(_0x4a745e(0x181))/0x8)+-parseInt(_0x4a745e(0x18c))/0x9;if(_0x3d7aa1===_0x1798ba)break;else _0x4bd177['push'](_0x4bd177['shift']());}catch(_0x549f96){_0x4bd177['push'](_0x4bd177['shift']());}}}(_0x4bf3,0xd1624),function(_0x578401,_0x4b097f){var _0x184fa3=_0x49c5;typeof exports==_0x184fa3(0x125)&&typeof module<'u'?_0x4b097f(exports,require(_0x184fa3(0x146)),require(_0x184fa3(0x1be)),require('@univerjs/sheets'),require(_0x184fa3(0x14b)),require(_0x184fa3(0x122)),require(_0x184fa3(0x193)),require(_0x184fa3(0x148)),require(_0x184fa3(0xde)),require(_0x184fa3(0x171)),require(_0x184fa3(0x170)),require(_0x184fa3(0x155))):typeof define==_0x184fa3(0x118)&&define[_0x184fa3(0x121)]?define([_0x184fa3(0x11f),_0x184fa3(0x146),_0x184fa3(0x1be),'@univerjs/sheets',_0x184fa3(0x14b),'@univerjs/ui','react/jsx-runtime',_0x184fa3(0x148),_0x184fa3(0xde),'@univerjs-pro/collaboration',_0x184fa3(0x170),_0x184fa3(0x155)],_0x4b097f):(_0x578401=typeof globalThis<'u'?globalThis:_0x578401||self,_0x4b097f(_0x578401[_0x184fa3(0x1c8)]={},_0x578401[_0x184fa3(0x15a)],_0x578401[_0x184fa3(0xf4)],_0x578401[_0x184fa3(0x142)],_0x578401[_0x184fa3(0x1b8)],_0x578401[_0x184fa3(0x15b)],_0x578401[_0x184fa3(0xff)],_0x578401['UniverDesign'],_0x578401[_0x184fa3(0xff)],_0x578401[_0x184fa3(0x1ae)],_0x578401[_0x184fa3(0x170)],_0x578401[_0x184fa3(0x170)][_0x184fa3(0x1d1)]));}(this,function(_0x4d0bf9,_0x31a4d5,_0x5b7315,_0x5062e6,_0x3161fc,_0xf9f633,_0x1fa38f,_0x4c7aec,_0x1f06fd,_0x111110,_0x345978,_0x42fe46){'use strict';var _0x3c140a=_0x49c5;var _0x5d0a4b=Object['defineProperty'],_0x1bf031=(_0x4f7e4c,_0xc0a3c6,_0x389333)=>_0xc0a3c6 in _0x4f7e4c?_0x5d0a4b(_0x4f7e4c,_0xc0a3c6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x389333}):_0x4f7e4c[_0xc0a3c6]=_0x389333,_0xd19089=(_0x3048b7,_0x359d12,_0x34d553)=>_0x1bf031(_0x3048b7,typeof _0x359d12!=_0x3c140a(0x12d)?_0x359d12+'':_0x359d12,_0x34d553);const _0x1f8533=_0x3c140a(0x1d0),_0xb1cc6a={};class _0x5510c9 extends _0x5b7315[_0x3c140a(0x16b)]{constructor(){var _0x552a31=_0x3c140a;super(...arguments),_0xd19089(this,'_sharedOperations',new Set()),_0xd19089(this,_0x552a31(0x10c),new Set());}[_0x3c140a(0x1c1)](_0x11be34){var _0x196923=_0x3c140a;return this['_sharedOperations']['add'](_0x11be34),_0x5b7315['toDisposable'](()=>this['_sharedOperations'][_0x196923(0x1d2)](_0x11be34));}[_0x3c140a(0x1cd)](_0x52da84){var _0x165677=_0x3c140a;return this['_reporters'][_0x165677(0x109)](_0x52da84),_0x5b7315[_0x165677(0x140)](()=>this[_0x165677(0x10c)][_0x165677(0x1d2)](_0x52da84));}[_0x3c140a(0x1c5)](_0x27ad27){var _0x35f8a2=_0x3c140a;return this[_0x35f8a2(0x108)]['has'](_0x27ad27);}['getInitialStates'](_0x3aa900){var _0x24ac3a=_0x3c140a;return Array['from'](this[_0x24ac3a(0x10c)])['map'](_0x206bfd=>_0x206bfd(_0x3aa900));}}var _0x262881=Object[_0x3c140a(0x18e)],_0xcc9ee9=(_0x204ee0,_0x1fe775,_0x22226a,_0x1f5d2c)=>{var _0x190017=_0x3c140a;for(var _0x201d08=_0x1f5d2c>0x1?void 0x0:_0x1f5d2c?_0x262881(_0x1fe775,_0x22226a):_0x1fe775,_0x50523c=_0x204ee0[_0x190017(0x129)]-0x1,_0x43b27b;_0x50523c>=0x0;_0x50523c--)(_0x43b27b=_0x204ee0[_0x50523c])&&(_0x201d08=_0x43b27b(_0x201d08)||_0x201d08);return _0x201d08;},_0x358a37=(_0x523344,_0x2a6097)=>(_0x3f83c2,_0x546451)=>_0x2a6097(_0x3f83c2,_0x546451,_0x523344);let _0x22ed5a=class extends _0x5b7315[_0x3c140a(0x16b)]{constructor(_0x4493d3){var _0x4de9b0=_0x3c140a;super(),this[_0x4de9b0(0x189)]=_0x4493d3,this[_0x4de9b0(0x1b4)]();}[_0x3c140a(0x1b4)](){var _0x342454=_0x3c140a;[_0x3161fc[_0x342454(0x195)]['id'],_0x3161fc[_0x342454(0x150)]['id'],_0x5062e6[_0x342454(0x131)]['id']][_0x342454(0xf9)](_0xbb809b=>{var _0x42f42f=_0x342454;this[_0x42f42f(0x14a)](this['_liveShareService']['registerSharedOperation'](_0xbb809b));});}};_0x22ed5a=_0xcc9ee9([_0x358a37(0x0,_0x5b7315[_0x3c140a(0xe4)](_0x5510c9))],_0x22ed5a);var _0x45812b=function(){var _0x453dfa=_0x3c140a;return _0x45812b=Object['assign']||function(_0x234088){var _0x26a944=_0x49c5;for(var _0x40c62f,_0x42bd0c=0x1,_0xe3b997=arguments['length'];_0x42bd0c<_0xe3b997;_0x42bd0c++){_0x40c62f=arguments[_0x42bd0c];for(var _0x5d2d38 in _0x40c62f)Object['prototype']['hasOwnProperty'][_0x26a944(0x12c)](_0x40c62f,_0x5d2d38)&&(_0x234088[_0x5d2d38]=_0x40c62f[_0x5d2d38]);}return _0x234088;},_0x45812b[_0x453dfa(0x1ce)](this,arguments);},_0xd9f73=function(_0x3a6f98,_0x5b7a04){var _0x200c52=_0x3c140a,_0x533e31={};for(var _0x31ac72 in _0x3a6f98)Object[_0x200c52(0x183)]['hasOwnProperty']['call'](_0x3a6f98,_0x31ac72)&&_0x5b7a04[_0x200c52(0x136)](_0x31ac72)<0x0&&(_0x533e31[_0x31ac72]=_0x3a6f98[_0x31ac72]);if(_0x3a6f98!=null&&typeof Object[_0x200c52(0x1bf)]==_0x200c52(0x118)){for(var _0x526e88=0x0,_0x31ac72=Object[_0x200c52(0x1bf)](_0x3a6f98);_0x526e88<_0x31ac72['length'];_0x526e88++)_0x5b7a04[_0x200c52(0x136)](_0x31ac72[_0x526e88])<0x0&&Object[_0x200c52(0x183)][_0x200c52(0x115)][_0x200c52(0x12c)](_0x3a6f98,_0x31ac72[_0x526e88])&&(_0x533e31[_0x31ac72[_0x526e88]]=_0x3a6f98[_0x31ac72[_0x526e88]]);}return _0x533e31;},_0xe41621=_0x1f06fd[_0x3c140a(0x106)](function(_0x5d7d75,_0x5955de){var _0x2b306a=_0x3c140a,_0x342965=_0x5d7d75[_0x2b306a(0xf1)],_0x287522=_0x5d7d75['id'],_0x164377=_0x5d7d75[_0x2b306a(0x1bd)],_0x720c0=_0x5d7d75[_0x2b306a(0x100)],_0xa8fea2=_0xd9f73(_0x5d7d75,[_0x2b306a(0xf1),'id',_0x2b306a(0x1bd),_0x2b306a(0x100)]),_0x4bedba=_0x2b306a(0x1ad)[_0x2b306a(0x176)](_0x287522,'\x20')[_0x2b306a(0x176)](_0x164377||'')['trim'](),_0x4d57d6=_0x1f06fd['useRef']('_'[_0x2b306a(0x176)](_0x239640()));return _0x2f78b8(_0x342965,''[_0x2b306a(0x176)](_0x287522),{'defIds':_0x342965[_0x2b306a(0x101)],'idSuffix':_0x4d57d6['current']},_0x45812b({'ref':_0x5955de,'className':_0x4bedba},_0xa8fea2),_0x720c0);});function _0x2f78b8(_0x1ded98,_0x269f65,_0x224d2e,_0x32d295,_0x179ae7){var _0x276b7b=_0x3c140a;return _0x1f06fd[_0x276b7b(0x198)](_0x1ded98[_0x276b7b(0x1b2)],_0x45812b(_0x45812b({'key':_0x269f65},_0x37f38e(_0x1ded98,_0x224d2e,_0x179ae7)),_0x32d295),(_0x4d9781(_0x1ded98,_0x224d2e)[_0x276b7b(0x167)]||[])['map'](function(_0x398aab,_0x51cdba){var _0x4f906a=_0x276b7b;return _0x2f78b8(_0x398aab,''[_0x4f906a(0x176)](_0x269f65,'-')[_0x4f906a(0x176)](_0x1ded98[_0x4f906a(0x1b2)],'-')['concat'](_0x51cdba),_0x224d2e,void 0x0,_0x179ae7);}));}function _0x37f38e(_0x582ed9,_0x284e61,_0x3331a9){var _0x2d2132=_0x3c140a,_0x2e6736=_0x45812b({},_0x582ed9['attrs']);_0x3331a9!=null&&_0x3331a9[_0x2d2132(0x1a0)]&&_0x2e6736[_0x2d2132(0x124)]==='colorChannel1'&&(_0x2e6736[_0x2d2132(0x124)]=_0x3331a9['colorChannel1']),_0x582ed9['tag']===_0x2d2132(0x107)&&_0x2e6736['id']&&(_0x2e6736['id']=_0x2e6736['id']+_0x284e61['idSuffix']),Object['entries'](_0x2e6736)['forEach'](function(_0x1884dc){var _0x275c3a=_0x2d2132,_0x121f9c=_0x1884dc[0x0],_0x359515=_0x1884dc[0x1];_0x121f9c===_0x275c3a(0x107)&&typeof _0x359515==_0x275c3a(0x11c)&&(_0x2e6736[_0x121f9c]=_0x359515[_0x275c3a(0x1ac)](/url\(#(.*)\)/,'url(#$1'[_0x275c3a(0x176)](_0x284e61[_0x275c3a(0x11d)],')')));});var _0x12af31=_0x284e61[_0x2d2132(0x101)];return!_0x12af31||_0x12af31['length']===0x0||(_0x582ed9[_0x2d2132(0x1b2)]===_0x2d2132(0x19a)&&_0x2e6736[_0x2d2132(0x175)]&&(_0x2e6736[_0x2d2132(0x175)]=_0x2e6736[_0x2d2132(0x175)]+_0x284e61[_0x2d2132(0x11d)]),Object['entries'](_0x2e6736)[_0x2d2132(0xf9)](function(_0x182782){var _0x40bc1b=_0x2d2132,_0x2c1b22=_0x182782[0x0],_0x103779=_0x182782[0x1];typeof _0x103779==_0x40bc1b(0x11c)&&(_0x2e6736[_0x2c1b22]=_0x103779[_0x40bc1b(0x1ac)](/url\(#(.*)\)/,_0x40bc1b(0xed)[_0x40bc1b(0x176)](_0x284e61[_0x40bc1b(0x11d)],')')));})),_0x2e6736;}function _0x4d9781(_0x4d2f9b,_0x4bb948){var _0x2606a9=_0x3c140a,_0x4e4795,_0xba5ac6=_0x4bb948[_0x2606a9(0x101)];return!_0xba5ac6||_0xba5ac6['length']===0x0?_0x4d2f9b:_0x4d2f9b['tag']===_0x2606a9(0x157)&&(!((_0x4e4795=_0x4d2f9b[_0x2606a9(0x167)])===null||_0x4e4795===void 0x0)&&_0x4e4795[_0x2606a9(0x129)])?_0x45812b(_0x45812b({},_0x4d2f9b),{'children':_0x4d2f9b[_0x2606a9(0x167)][_0x2606a9(0x17b)](function(_0x4e8ac0){var _0x45e80b=_0x2606a9;return typeof _0x4e8ac0[_0x45e80b(0x159)]['id']=='string'&&_0xba5ac6&&_0xba5ac6['includes'](_0x4e8ac0[_0x45e80b(0x159)]['id'])?_0x45812b(_0x45812b({},_0x4e8ac0),{'attrs':_0x45812b(_0x45812b({},_0x4e8ac0['attrs']),{'id':_0x4e8ac0[_0x45e80b(0x159)]['id']+_0x4bb948['idSuffix']})}):_0x4e8ac0;})}):_0x4d2f9b;}function _0x239640(){var _0xcb5ec0=_0x3c140a;return Math[_0xcb5ec0(0xe7)]()[_0xcb5ec0(0x116)](0x24)['substring'](0x2,0x8);}_0xe41621[_0x3c140a(0x1cf)]=_0x3c140a(0x19b);var _0x53b81d={'tag':_0x3c140a(0x192),'attrs':{'xmlns':_0x3c140a(0x1cb),'fill':_0x3c140a(0x173),'viewBox':'0\x200\x2017\x2017','width':_0x3c140a(0x17f),'height':_0x3c140a(0x17f)},'children':[{'tag':_0x3c140a(0x127),'attrs':{'fill':_0x3c140a(0x15f),'d':_0x3c140a(0x114)}},{'tag':_0x3c140a(0x127),'attrs':{'fill':_0x3c140a(0x15f),'d':_0x3c140a(0xfb),'fillRule':_0x3c140a(0xf8),'clipRule':_0x3c140a(0xf8)}}]},_0x2908f4=_0x1f06fd[_0x3c140a(0x106)](function(_0x2ad571,_0x57cf12){var _0x180ab4=_0x3c140a;return _0x1f06fd[_0x180ab4(0x198)](_0xe41621,Object[_0x180ab4(0x19f)]({},_0x2ad571,{'id':_0x180ab4(0x15e),'ref':_0x57cf12,'icon':_0x53b81d}));});_0x2908f4[_0x3c140a(0x1cf)]=_0x3c140a(0x179);var _0x26a48e=Object['getOwnPropertyDescriptor'],_0x2830d5=(_0x3910f0,_0x4268c8,_0x5a328e,_0x43f8ef)=>{for(var _0x2500b5=_0x43f8ef>0x1?void 0x0:_0x43f8ef?_0x26a48e(_0x4268c8,_0x5a328e):_0x4268c8,_0x4c3228=_0x3910f0['length']-0x1,_0x4350a5;_0x4c3228>=0x0;_0x4c3228--)(_0x4350a5=_0x3910f0[_0x4c3228])&&(_0x2500b5=_0x4350a5(_0x2500b5)||_0x2500b5);return _0x2500b5;},_0x2f5969=(_0x111e83,_0x757bff)=>(_0x1a6590,_0x568d28)=>_0x757bff(_0x1a6590,_0x568d28,_0x111e83);_0x4d0bf9['LiveShareController']=class extends _0x5b7315[_0x3c140a(0x186)]{constructor(_0x1a060a,_0x27ab42,_0x413509){var _0x4df598=_0x3c140a;super(),_0xd19089(this,'_entities',new Map()),(this[_0x4df598(0x18f)]=_0x1a060a,this[_0x4df598(0x161)]=_0x27ab42,this[_0x4df598(0x13e)]=_0x413509,this[_0x4df598(0x1b4)]());}async[_0x3c140a(0x10a)](_0x5a5b8f){var _0x427a8c=_0x3c140a;return this['_entities'][_0x427a8c(0x182)](_0x5a5b8f)||await this[_0x427a8c(0x141)](_0x5a5b8f),this[_0x427a8c(0x13b)][_0x427a8c(0x130)](_0x5a5b8f);}[_0x3c140a(0x1b4)](){var _0x6557be=_0x3c140a;this[_0x6557be(0x18f)][_0x6557be(0x194)](_0x5b7315[_0x6557be(0x1b1)][_0x6557be(0x177)])[_0x6557be(0xee)](_0x42fe46[_0x6557be(0x144)](this[_0x6557be(0x1bc)]))[_0x6557be(0x185)](async _0x440088=>{var _0x6b53a7=_0x6557be;const _0x9c1045=_0x440088['getUnitId']();this[_0x6b53a7(0x13b)]['has'](_0x9c1045)||this['_startLiveShareCoordinator'](_0x9c1045);}),this['_univerInstanceService'][_0x6557be(0x162)](_0x5b7315[_0x6557be(0x1b1)][_0x6557be(0x177)])[_0x6557be(0xee)](_0x42fe46[_0x6557be(0x144)](this[_0x6557be(0x1bc)]))[_0x6557be(0x185)](_0x3c14aa=>{var _0x2a8a0d=_0x6557be;const _0x5819da=_0x3c14aa[_0x2a8a0d(0xef)](),_0x154a49=this['_entities']['get'](_0x5819da);_0x154a49==null||_0x154a49['dispose']();});}async['_startLiveShareCoordinator'](_0x42b2a1){var _0x326390=_0x3c140a;const _0x7a8dc0=await this[_0x326390(0x13e)][_0x326390(0x168)](_0x42b2a1),_0x4a9f90=this[_0x326390(0x161)][_0x326390(0x10f)](_0x4d0bf9[_0x326390(0x11e)],_0x42b2a1,_0x7a8dc0);return _0x4a9f90[_0x326390(0x1a7)](),this[_0x326390(0x13b)][_0x326390(0x147)](_0x42b2a1,_0x4a9f90),_0x4a9f90;}},_0x4d0bf9[_0x3c140a(0x13f)]=_0x2830d5([_0x2f5969(0x0,_0x5b7315[_0x3c140a(0x153)]),_0x2f5969(0x1,_0x5b7315[_0x3c140a(0xe4)](_0x5b7315['Injector'])),_0x2f5969(0x2,_0x5b7315['Inject'](_0x31a4d5['CollaborationSessionService']))],_0x4d0bf9[_0x3c140a(0x13f)]);var _0x582d0d=(_0x4f9852=>(_0x4f9852[_0x3c140a(0x19d)]=_0x3c140a(0x1c7),_0x4f9852['IDLE']=_0x3c140a(0x14f),_0x4f9852[_0x3c140a(0xf6)]='following',_0x4f9852[_0x3c140a(0x164)]=_0x3c140a(0x19e),_0x4f9852['PRESENTING']='presenting',_0x4f9852))(_0x582d0d||{});const _0x2c3bc6=_0x3c140a(0x103),_0x49c66b=0xc8;_0x4d0bf9[_0x3c140a(0x11e)]=class extends _0x5b7315[_0x3c140a(0x186)]{constructor(_0x3d97e0,_0x146c17,_0x220a2d,_0x467f39,_0x531d9e){var _0xa150c2=_0x3c140a;super(),_0xd19089(this,_0xa150c2(0x1a1),new _0x345978[(_0xa150c2(0xeb))](_0xa150c2(0x14f))),_0xd19089(this,_0xa150c2(0x174),this[_0xa150c2(0x1a1)]['asObservable']()),_0xd19089(this,_0xa150c2(0x1b4),!0x1),_0xd19089(this,'_commandDisposable',null),_0xd19089(this,'_presenter',null),(this[_0xa150c2(0x187)]=_0x3d97e0,this['_collabSession']=_0x146c17,this[_0xa150c2(0x123)]=_0x220a2d,this[_0xa150c2(0x189)]=_0x467f39,this[_0xa150c2(0x18b)]=_0x531d9e);}get[_0x3c140a(0x18a)](){return this['_status$']['getValue']();}[_0x3c140a(0x10d)](){var _0x6dd131=_0x3c140a,_0x5e0af4;(_0x5e0af4=this[_0x6dd131(0xec)])==null||_0x5e0af4[_0x6dd131(0x10d)](),this[_0x6dd131(0x1a1)][_0x6dd131(0x1a5)](_0x6dd131(0x14f)),this['_status$'][_0x6dd131(0xe6)]();}['init'](){var _0x43105f=_0x3c140a;this[_0x43105f(0x1b4)]||(this[_0x43105f(0x1b4)]=!0x0,this['_collabSession'][_0x43105f(0x119)][_0x43105f(0xee)](_0x42fe46[_0x43105f(0x144)](this[_0x43105f(0x1bc)]))[_0x43105f(0x185)](_0xa69707=>{var _0x2022d1=_0x43105f;switch(_0xa69707){case _0x31a4d5['SessionStatus']['OFFLINE']:this[_0x2022d1(0xe9)]();break;case _0x31a4d5[_0x2022d1(0x126)][_0x2022d1(0x154)]:this[_0x2022d1(0x197)]();break;}}),this[_0x43105f(0xe0)][_0x43105f(0x117)][_0x43105f(0xee)](_0x42fe46[_0x43105f(0x144)](this[_0x43105f(0x1bc)]))['subscribe'](_0x494228=>{var _0x1b9a64=_0x43105f;const {eventID:_0x5c1b7b}=_0x494228;switch(_0x5c1b7b){case _0x111110[_0x1b9a64(0x156)][_0x1b9a64(0xf3)]:this[_0x1b9a64(0x139)](_0x494228);break;case _0x111110['CollaborationEvent'][_0x1b9a64(0x16c)]:this[_0x1b9a64(0x199)](_0x494228);break;case _0x111110[_0x1b9a64(0x156)][_0x1b9a64(0x134)]:this[_0x1b9a64(0x1c9)]();break;case _0x111110['CollaborationEvent'][_0x1b9a64(0x15d)]:this[_0x1b9a64(0xe2)](_0x494228);break;}}));}[_0x3c140a(0x132)](){var _0x294df3=_0x3c140a;this[_0x294df3(0xe0)][_0x294df3(0x152)]({'eventID':_0x111110[_0x294df3(0x156)][_0x294df3(0x12e)],'data':{'unitID':this[_0x294df3(0x187)],'userID':this['_collabSession']['getMemberID']()}},this[_0x294df3(0x187)]);}[_0x3c140a(0xf5)](){var _0xfda328=_0x3c140a;this[_0xfda328(0x18a)]===_0xfda328(0x19c)&&(this[_0xfda328(0x1a1)][_0xfda328(0x1a5)](_0xfda328(0x14f)),this['_collabSession'][_0xfda328(0x152)]({'eventID':_0x111110['CollaborationEvent'][_0xfda328(0x134)],'data':{'unitID':this[_0xfda328(0x187)]}},this[_0xfda328(0x187)]));}[_0x3c140a(0x180)](){var _0xae083f=_0x3c140a;this[_0xae083f(0x18a)]==='not-following'&&(this['_status$']['next'](_0xae083f(0x17c)),this[_0xae083f(0xfe)]());}[_0x3c140a(0x16d)](){var _0x2f1a6f=_0x3c140a;this['_status']===_0x2f1a6f(0x17c)&&this['_stopFollowing']();}[_0x3c140a(0x139)](_0x5a55a0){var _0x23715a=_0x3c140a;const {presenter:_0x4d37cc}=_0x5a55a0['data'],_0x170c6d=this[_0x23715a(0xe0)]['getMemberID']();this[_0x23715a(0x133)]=_0x4d37cc,_0x4d37cc===_0x170c6d?(this[_0x23715a(0x17a)](),this['_startPresenting']()):this[_0x23715a(0x18a)]!==_0x23715a(0x19e)&&(this[_0x23715a(0xe3)](),this['_startFollowing']());}[_0x3c140a(0x1c2)](){var _0x59474d=_0x3c140a;const _0x316ad2={'eventID':_0x111110[_0x59474d(0x156)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x59474d(0xe0)][_0x59474d(0x152)](_0x316ad2,this[_0x59474d(0x187)]);}[_0x3c140a(0x1c9)](){var _0x35b1ba=_0x3c140a;this['_presenter']=null,this['_status']!==_0x35b1ba(0x19c)&&this['_beIdle']();}[_0x3c140a(0xe2)](_0xfceef6){var _0x221703=_0x3c140a;if(this[_0x221703(0x18a)]===_0x221703(0x17c)&&this[_0x221703(0x133)]===_0xfceef6[_0x221703(0x137)][_0x221703(0x13c)]){const _0x2268ac=_0x111110[_0x221703(0xdc)](_0xfceef6['data'])[_0x221703(0x172)]['reverse']()[_0x221703(0x1a8)](_0x134266=>_0x134266['id']===_0x5062e6['InsertSheetMutation']['id']);if(_0x2268ac){const _0x1a8162=_0x2268ac[_0x221703(0x1b0)]['unitId'],_0x4ff4ca=_0x2268ac[_0x221703(0x1b0)][_0x221703(0xe1)]['id'];setTimeout(()=>{var _0x273b43=_0x221703;this[_0x273b43(0x18b)][_0x273b43(0x1c3)](_0x5062e6[_0x273b43(0x131)]['id'],{'unitId':_0x1a8162,'subUnitId':_0x4ff4ca},{'fromCollab':!0x0});});}}}[_0x3c140a(0x135)](){var _0x52e678=_0x3c140a;this[_0x52e678(0x1a1)][_0x52e678(0x1a5)](_0x52e678(0x19c));const _0x4e5606=new Map(),_0x135834=this[_0x52e678(0xec)]=new _0x5b7315[(_0x52e678(0x14c))]();_0x135834[_0x52e678(0x109)](_0x5b7315[_0x52e678(0x140)](()=>{var _0x501a63=_0x52e678;_0x4e5606[_0x501a63(0xf9)](_0x1605c7=>_0x1605c7[_0x501a63(0xe6)]()),_0x4e5606['clear']();})),_0x135834[_0x52e678(0x109)](this[_0x52e678(0x18b)][_0x52e678(0x111)](_0x4fbfb7=>{var _0x47daa5=_0x52e678,_0x29c797;if(_0x4fbfb7[_0x47daa5(0x112)]!==_0x5b7315[_0x47daa5(0x1ca)][_0x47daa5(0x1b3)]||!this[_0x47daa5(0x189)][_0x47daa5(0x1c5)](_0x4fbfb7['id']))return;const {id:_0x300603}=_0x4fbfb7;let _0x37e01c;_0x4e5606[_0x47daa5(0x182)](_0x300603)?_0x37e01c=_0x4e5606[_0x47daa5(0x130)](_0x300603):(_0x37e01c=new _0x345978['Subject'](),_0x4e5606[_0x47daa5(0x147)](_0x300603,_0x37e01c),_0x37e01c[_0x47daa5(0xee)](_0x42fe46['throttleTime']((_0x29c797=this[_0x47daa5(0x123)][_0x47daa5(0x11b)](_0x2c3bc6))!=null?_0x29c797:_0x49c66b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x47daa5(0x185)](_0x36384c=>{var _0x2f1eaa=_0x47daa5;this[_0x2f1eaa(0xe0)][_0x2f1eaa(0x152)]({'eventID':_0x111110[_0x2f1eaa(0x156)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2f1eaa(0x187)],'operations':{[_0x36384c['id']]:{'id':_0x36384c['id'],'params':JSON['stringify'](_0x36384c[_0x2f1eaa(0x1b0)])}}}},this[_0x2f1eaa(0x187)]);})),_0x37e01c[_0x47daa5(0x1a5)](_0x4fbfb7);})),this[_0x52e678(0x189)][_0x52e678(0x12f)](this[_0x52e678(0x187)])[_0x52e678(0xf9)](_0x195c4b=>this[_0x52e678(0xe0)]['send']({'eventID':_0x111110[_0x52e678(0x156)][_0x52e678(0x16c)],'data':{'unitID':this[_0x52e678(0x187)],'operations':{[_0x195c4b['id']]:{'id':_0x195c4b['id'],'params':JSON[_0x52e678(0xf7)](_0x195c4b[_0x52e678(0x1b0)])}}}},this[_0x52e678(0x187)]));}['_stopPresenting'](){var _0x29ff4f=_0x3c140a,_0x3c4148;this[_0x29ff4f(0x1a1)][_0x29ff4f(0x1a5)]('idle'),(_0x3c4148=this['_commandDisposable'])==null||_0x3c4148[_0x29ff4f(0x10d)](),this[_0x29ff4f(0xec)]=null;}['_startFollowing'](){var _0x162881=_0x3c140a,_0x18730a;(_0x18730a=this[_0x162881(0xec)])==null||_0x18730a[_0x162881(0x10d)](),this[_0x162881(0x1a1)]['next'](_0x162881(0x17c));}[_0x3c140a(0x190)](){var _0x1d393d=_0x3c140a,_0x5972ef;this[_0x1d393d(0x1a1)][_0x1d393d(0x1a5)](_0x1d393d(0x14f)),(_0x5972ef=this['_commandDisposable'])==null||_0x5972ef[_0x1d393d(0x10d)](),this['_commandDisposable']=null;}[_0x3c140a(0x17a)](){var _0x1b5807=_0x3c140a,_0x3ea680;this[_0x1b5807(0x1a1)]['next'](_0x1b5807(0x19e)),(_0x3ea680=this['_commandDisposable'])==null||_0x3ea680[_0x1b5807(0x10d)]();}['_handleOperation'](_0x4455ea){var _0x250277=_0x3c140a;if([_0x250277(0x19c),_0x250277(0x19e),'offline'][_0x250277(0x1b6)](this[_0x250277(0x18a)])||!_0x4455ea[_0x250277(0x137)]['presenter']||_0x4455ea[_0x250277(0x137)]['presenter']===this[_0x250277(0xe0)]['getMemberID']())return;this[_0x250277(0x18a)]==='idle'&&this[_0x250277(0xfe)]();const _0x3f149f=_0x4455ea[_0x250277(0x137)][_0x250277(0x151)];Object[_0x250277(0x17d)](_0x3f149f)[_0x250277(0xf9)](_0x406c3c=>{var _0x3017bb=_0x250277;this[_0x3017bb(0x18b)][_0x3017bb(0x1c3)](_0x406c3c['id'],_0x406c3c[_0x3017bb(0x1b0)]?JSON['parse'](_0x406c3c[_0x3017bb(0x1b0)]):null,{'fromCollab':!0x0});});}[_0x3c140a(0xe9)](){var _0x2f91b2=_0x3c140a,_0x4781a1;this[_0x2f91b2(0x1a1)][_0x2f91b2(0x1a5)](_0x2f91b2(0x1c7)),(_0x4781a1=this[_0x2f91b2(0xec)])==null||_0x4781a1['dispose']();}[_0x3c140a(0x197)](){var _0x2b3d3c=_0x3c140a;this['_status$'][_0x2b3d3c(0x1a5)](_0x2b3d3c(0x14f)),this[_0x2b3d3c(0x1c2)]();}},_0x4d0bf9[_0x3c140a(0x11e)]=_0x2830d5([_0x2f5969(0x2,_0x5b7315['IConfigService']),_0x2f5969(0x3,_0x5b7315[_0x3c140a(0xe4)](_0x5510c9)),_0x2f5969(0x4,_0x5b7315[_0x3c140a(0x1b5)])],_0x4d0bf9[_0x3c140a(0x11e)]);function _0x42cbbf(){var _0x5e99e9=_0x3c140a;const _0x141ffe=_0xf9f633[_0x5e99e9(0x196)](_0x4d0bf9['LiveShareController']),_0xa52d21=_0xf9f633[_0x5e99e9(0x196)](_0x5b7315[_0x5e99e9(0x153)]),_0x6e28d1=_0xf9f633[_0x5e99e9(0x14e)](()=>_0xa52d21[_0x5e99e9(0x1c0)](_0x5b7315['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x354927,_0x4e0b8a]=_0x1f06fd[_0x5e99e9(0x1cc)](null),[_0x129bc6,_0x21765a]=_0x1f06fd[_0x5e99e9(0x1cc)](_0x582d0d['IDLE']),_0x48bde7=_0x1f06fd[_0x5e99e9(0x166)](null);return _0x1f06fd[_0x5e99e9(0x1a2)](()=>(_0x6e28d1&&_0x141ffe['getLiveShareCoordinator'](_0x6e28d1[_0x5e99e9(0xef)]())[_0x5e99e9(0x128)](_0x538684=>{var _0x69edc6=_0x5e99e9;_0x4e0b8a(_0x538684),_0x48bde7[_0x69edc6(0x17e)]=_0x538684[_0x69edc6(0x174)][_0x69edc6(0x185)](_0x4666ff=>{_0x21765a(_0x4666ff);});}),()=>{var _0x295031=_0x5e99e9,_0x30d20c;(_0x30d20c=_0x48bde7[_0x295031(0x17e)])==null||_0x30d20c[_0x295031(0xf0)](),_0x48bde7[_0x295031(0x17e)]=null;}),[_0x6e28d1,_0x141ffe]),_0x354927?_0x1fa38f[_0x5e99e9(0x1bb)](_0x4c7aec[_0x5e99e9(0xe8)],{'align':_0x5e99e9(0x113),'disabled':_0x129bc6===_0x582d0d['OFFLINE'],'className':_0x5e99e9(0x12b),'overlay':_0x1fa38f[_0x5e99e9(0x1bb)](_0x5356ba,{'status':_0x129bc6,'coordinator':_0x354927}),'children':_0x1fa38f[_0x5e99e9(0x1bb)](_0x5e99e9(0xdd),{'className':_0x4c7aec[_0x5e99e9(0x110)](_0x5e99e9(0x1ba),{'univer-cursor-not-allowed':_0x129bc6===_0x582d0d['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x129bc6!==_0x582d0d['OFFLINE']}),'type':_0x5e99e9(0xdd),'children':_0x1fa38f[_0x5e99e9(0x1bb)](_0x2908f4,{'className':_0x5e99e9(0x145)})})}):null;}function _0x5356ba(_0x2e3da2){var _0x1df9fd=_0x3c140a;const {status:_0x225e6c,coordinator:_0x511c4d}=_0x2e3da2;switch(_0x225e6c){case _0x582d0d['IDLE']:return _0x1fa38f[_0x1df9fd(0x1bb)](_0x5b33ec,{'coordinator':_0x511c4d});case _0x582d0d[_0x1df9fd(0xf6)]:return _0x1fa38f[_0x1df9fd(0x1bb)](_0x41a2fa,{'coordinator':_0x511c4d});case _0x582d0d[_0x1df9fd(0x164)]:return _0x1fa38f[_0x1df9fd(0x1bb)](_0x4e989f,{'coordinator':_0x511c4d});case _0x582d0d['OFFLINE']:return _0x1fa38f[_0x1df9fd(0x1bb)](_0x3e1e7d,{});case _0x582d0d[_0x1df9fd(0x1a9)]:return _0x1fa38f[_0x1df9fd(0x1bb)](_0x59afdb,{'coordinator':_0x511c4d});default:return null;}}function _0x5b33ec(_0x5a7a13){var _0x485f0b=_0x3c140a;const {coordinator:_0x22adb}=_0x5a7a13;return _0x1fa38f['jsxs'](_0x1fa38f[_0x485f0b(0x1a3)],{'children':[_0x1fa38f[_0x485f0b(0x1bb)](_0x485f0b(0x10b),{'className':_0x485f0b(0xdf),'children':'Present\x20this\x20document'}),_0x1fa38f[_0x485f0b(0x1bb)](_0x4c7aec[_0x485f0b(0xea)],{'onClick':()=>_0x22adb[_0x485f0b(0x132)](),'children':'Start'})]});}function _0x41a2fa(_0x28e2ae){var _0x5ca2ed=_0x3c140a;const {coordinator:_0x43fc94}=_0x28e2ae;return _0x1fa38f[_0x5ca2ed(0x165)](_0x1fa38f['Fragment'],{'children':[_0x1fa38f[_0x5ca2ed(0x1bb)](_0x5ca2ed(0x10b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x1fa38f['jsx'](_0x4c7aec[_0x5ca2ed(0xea)],{'onClick':()=>_0x43fc94['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x4e989f(_0x405317){var _0x363d27=_0x3c140a;const {coordinator:_0x411a65}=_0x405317;return _0x1fa38f['jsxs'](_0x1fa38f[_0x363d27(0x1a3)],{'children':[_0x1fa38f['jsx'](_0x363d27(0x10b),{'className':_0x363d27(0xdf),'children':_0x363d27(0x158)}),_0x1fa38f['jsx'](_0x4c7aec[_0x363d27(0xea)],{'variant':_0x363d27(0x18d),'onClick':()=>_0x411a65['startFollowing'](),'children':_0x363d27(0x13d)})]});}function _0x59afdb(_0x53b23d){var _0x5ef793=_0x3c140a;const {coordinator:_0x1e6f76}=_0x53b23d;return _0x1fa38f[_0x5ef793(0x165)](_0x1fa38f[_0x5ef793(0x1a3)],{'children':[_0x1fa38f['jsx']('div',{'className':_0x5ef793(0xdf),'children':_0x5ef793(0x11a)}),_0x1fa38f[_0x5ef793(0x1bb)](_0x4c7aec[_0x5ef793(0xea)],{'variant':_0x5ef793(0x160),'onClick':()=>_0x1e6f76['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x3e1e7d(){var _0x1714a1=_0x3c140a;return _0x1fa38f[_0x1714a1(0x1bb)](_0x1fa38f[_0x1714a1(0x1a3)],{'children':'You\x27are\x20offline.'});}var _0x3afa03=Object['getOwnPropertyDescriptor'],_0x50107b=(_0x485c11,_0x3ae854,_0x46087c,_0x2f7274)=>{for(var _0x174e30=_0x2f7274>0x1?void 0x0:_0x2f7274?_0x3afa03(_0x3ae854,_0x46087c):_0x3ae854,_0x11fe65=_0x485c11['length']-0x1,_0x57fc81;_0x11fe65>=0x0;_0x11fe65--)(_0x57fc81=_0x485c11[_0x11fe65])&&(_0x174e30=_0x57fc81(_0x174e30)||_0x174e30);return _0x174e30;},_0x3fd6a0=(_0x4a35a5,_0x576117)=>(_0xc4143b,_0x13f255)=>_0x576117(_0xc4143b,_0x13f255,_0x4a35a5);_0x4d0bf9[_0x3c140a(0x1c4)]=class extends _0x5b7315['Disposable']{constructor(_0x2507bd,_0x1d0b9b){var _0x469381=_0x3c140a;super(),this[_0x469381(0x161)]=_0x2507bd,this[_0x469381(0x184)]=_0x1d0b9b,this[_0x469381(0x12a)]();}[_0x3c140a(0x12a)](){var _0x2bd17c=_0x3c140a;this[_0x2bd17c(0x14a)](this[_0x2bd17c(0x184)]['registerComponent'](_0xf9f633[_0x2bd17c(0x178)][_0x2bd17c(0x1a4)],()=>_0xf9f633[_0x2bd17c(0x16f)](_0x42cbbf,this[_0x2bd17c(0x161)])));}},_0x4d0bf9[_0x3c140a(0x1c4)]=_0x50107b([_0x3fd6a0(0x0,_0x5b7315[_0x3c140a(0xe4)](_0x5b7315[_0x3c140a(0x1aa)])),_0x3fd6a0(0x1,_0xf9f633['IUIPartsService'])],_0x4d0bf9[_0x3c140a(0x1c4)]);var _0x17a2b7=Object[_0x3c140a(0xfd)],_0x336f79=Object[_0x3c140a(0x18e)],_0x43e273=(_0x49cc5c,_0x1eed89,_0x2552a5)=>_0x1eed89 in _0x49cc5c?_0x17a2b7(_0x49cc5c,_0x1eed89,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2552a5}):_0x49cc5c[_0x1eed89]=_0x2552a5,_0x420cf3=(_0x291263,_0x47c08d,_0x6d2d22,_0x61b83f)=>{var _0x106b6a=_0x3c140a;for(var _0x242390=_0x61b83f>0x1?void 0x0:_0x61b83f?_0x336f79(_0x47c08d,_0x6d2d22):_0x47c08d,_0xf31848=_0x291263[_0x106b6a(0x129)]-0x1,_0xe9b0fc;_0xf31848>=0x0;_0xf31848--)(_0xe9b0fc=_0x291263[_0xf31848])&&(_0x242390=_0xe9b0fc(_0x242390)||_0x242390);return _0x242390;},_0x33f93a=(_0x368de8,_0x5b4265)=>(_0x52116f,_0x23f63b)=>_0x5b4265(_0x52116f,_0x23f63b,_0x368de8),_0x402b05=(_0x51d079,_0x24e84f,_0x48dbec)=>_0x43e273(_0x51d079,typeof _0x24e84f!=_0x3c140a(0x12d)?_0x24e84f+'':_0x24e84f,_0x48dbec);const _0xb53b50=_0x3c140a(0x1ab);_0x4d0bf9[_0x3c140a(0x1c6)]=class extends _0x5b7315[_0x3c140a(0x104)]{constructor(_0x40e6c2=_0xb1cc6a,_0x4c1711,_0x390482){var _0x941736=_0x3c140a;super(),this['_config']=_0x40e6c2,this['_injector']=_0x4c1711,this['_configService']=_0x390482;const {..._0x78648f}=_0x5b7315[_0x941736(0xfa)]({},_0xb1cc6a,this[_0x941736(0xfc)]);this[_0x941736(0x123)][_0x941736(0x188)](_0x1f8533,_0x78648f);}[_0x3c140a(0x120)](){var _0x2135f6=_0x3c140a;_0x5b7315[_0x2135f6(0x149)](this[_0x2135f6(0x161)],_0x5b7315['mergeOverrideWithDependencies']([[_0x5510c9],[_0x4d0bf9[_0x2135f6(0x13f)]],[_0x22ed5a],[_0x4d0bf9['DesktopLiveShareController']]],this[_0x2135f6(0xfc)][_0x2135f6(0x191)])),_0x5b7315[_0x2135f6(0x138)](this['_injector'],[[_0x22ed5a]]);}[_0x3c140a(0xf2)](){var _0x2db0b6=_0x3c140a;_0x5b7315[_0x2db0b6(0x138)](this[_0x2db0b6(0x161)],[[_0x4d0bf9[_0x2db0b6(0x1c4)]]]);}},_0x402b05(_0x4d0bf9[_0x3c140a(0x1c6)],_0x3c140a(0x112),_0x5b7315[_0x3c140a(0x1b1)][_0x3c140a(0x102)]),_0x402b05(_0x4d0bf9[_0x3c140a(0x1c6)],_0x3c140a(0x105),_0xb53b50),_0x4d0bf9[_0x3c140a(0x1c6)]=_0x420cf3([_0x5b7315[_0x3c140a(0x16e)](_0x31a4d5[_0x3c140a(0x13a)]),_0x33f93a(0x1,_0x5b7315[_0x3c140a(0xe4)](_0x5b7315['Injector'])),_0x33f93a(0x2,_0x5b7315[_0x3c140a(0x14d)])],_0x4d0bf9[_0x3c140a(0x1c6)]),_0x4d0bf9[_0x3c140a(0x15c)]=_0x42cbbf,_0x4d0bf9[_0x3c140a(0x1b9)]=_0x5510c9,_0x4d0bf9[_0x3c140a(0x163)]=_0x582d0d,Object['defineProperty'](_0x4d0bf9,Symbol[_0x3c140a(0xe5)],{'value':'Module'});}));function _0x4bf3(){var _0x1682da=['SAME_OPERATION_SHARE_INTERVAL','Plugin','pluginName','forwardRef','mask','_sharedOperations','add','getLiveShareCoordinator','div','_reporters','dispose','4163766SkkYdj','createInstance','clsx','onCommandExecuted','type','end','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','propertyIsEnumerable','toString','event$','function','sessionStatus$','You\x27re\x20presenting\x20the\x20document','getConfig','string','idSuffix','LiveShareCoordinator','exports','onStarting','amd','@univerjs/ui','_configService','fill','object','SessionStatus','path','then','length','_mountLiveShare','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','call','symbol','LIVESHARE_REQUEST_HOST','getInitialStates','get','SetWorksheetActiveOperation','tryStartPresenting','_presenter','LIVESHARE_TERMINATE','_startPresenting','indexOf','data','touchDependencies','_handleNewHost','UniverCollaborationClientPlugin','_entities','memberID','Start\x20following','_collabSessionService','LiveShareController','toDisposable','_startLiveShareCoordinator','UniverSheets','4076403sJNCdG','takeUntil','univer-size-4','@univerjs-pro/collaboration-client','set','@univerjs/design','registerDependencies','disposeWithMe','@univerjs/sheets-ui','DisposableCollection','IConfigService','useObservable','idle','SetScrollOperation','operations','send','IUniverInstanceService','ONLINE','rxjs/operators','CollaborationEvent','defs','You\x27re\x20not\x20following\x20the\x20presenter','attrs','UniverProCollaborationClient','UniverUi','LiveShare','NEW_CHANGESETS','live-share-icon','currentColor','default','_injector','getTypeOfUnitDisposed$','LiveShareStatus','NOT_FOLLOWING','jsxs','useRef','children','requireSession','70YDKESL','268178CFUlkB','Disposable','LIVESHARE_OPERATION','stopFollowing','DependentOn','connectInjector','rxjs','@univerjs-pro/collaboration','mutations','none','status$','xlink:href','concat','UNIVER_SHEET','BuiltInUIPart','LiveShareIcon','_stopFollowing','map','following','values','current','1em','startFollowing','21488UvLNbq','has','prototype','_uiPartsService','subscribe','RxDisposable','_unitID','setConfig','_liveShareService','_status','_commandService','926154VWGkmu','text','getOwnPropertyDescriptor','_univerInstanceService','_beIdle','override','svg','react/jsx-runtime','getTypeOfUnitAdded$','SetZoomRatioOperation','useDependency','_handleOnline','createElement','_handleOperation','use','UniverIcon','presenting','OFFLINE','not-following','assign','colorChannel1','_status$','useEffect','Fragment','HEADER_MENU','next','4163608LXkVgy','init','find','PRESENTING','Injector','UNIVER_LIVE_SHARE_PLUGIN','replace','univerjs-icon\x20univerjs-icon-','UniverProCollaboration','965970hHqyfs','params','UniverInstanceType','tag','OPERATION','_init','ICommandService','includes','6GTTRjB','UniverSheetsUi','LiveShareService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','jsx','dispose$','className','@univerjs/core','getOwnPropertySymbols','getCurrentTypeOfUnit$','registerSharedOperation','_fetchOperations','executeCommand','DesktopLiveShareController','shouldShareOperation','UniverLiveSharePlugin','offline','UniverProLiveShare','_handleTerminate','CommandType','http://www.w3.org/2000/svg','useState','registerInitialStateReporter','apply','displayName','live-share.config','operators','delete','parseProtocolChangeset','button','react','univer-mb-3\x20univer-w-full\x20univer-text-sm','_collabSession','sheet','_handleNewChangeSets','_stopPresenting','Inject','toStringTag','complete','random','Dropdown','_handleOffline','Button','BehaviorSubject','_commandDisposable','url(#$1','pipe','getUnitId','unsubscribe','icon','onRendered','LIVESHARE_NEW_HOST','UniverCore','stopPresenting','FOLLOWING','stringify','evenodd','forEach','merge','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','_config','defineProperty','_startFollowing','React','extend','defIds','UNIVER_UNKNOWN'];_0x4bf3=function(){return _0x1682da;};return _0x4bf3();}
|
|
1
|
+
(function(_0x1a489d,_0x515638){var _0x5e67f0=_0x239d,_0x10d62f=_0x1a489d();while(!![]){try{var _0x189b98=-parseInt(_0x5e67f0(0x13a))/0x1+parseInt(_0x5e67f0(0x17b))/0x2+-parseInt(_0x5e67f0(0xeb))/0x3+-parseInt(_0x5e67f0(0x16a))/0x4+-parseInt(_0x5e67f0(0xe6))/0x5*(-parseInt(_0x5e67f0(0x147))/0x6)+parseInt(_0x5e67f0(0x12f))/0x7*(parseInt(_0x5e67f0(0x128))/0x8)+parseInt(_0x5e67f0(0x154))/0x9*(parseInt(_0x5e67f0(0xbb))/0xa);if(_0x189b98===_0x515638)break;else _0x10d62f['push'](_0x10d62f['shift']());}catch(_0x14a98c){_0x10d62f['push'](_0x10d62f['shift']());}}}(_0x10ea,0x91db1),function(_0x42236a,_0x20ed7e){var _0x2a4172=_0x239d;typeof exports==_0x2a4172(0xec)&&typeof module<'u'?_0x20ed7e(exports,require(_0x2a4172(0x10a)),require(_0x2a4172(0x145)),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require(_0x2a4172(0xa5)),require('@univerjs/design'),require(_0x2a4172(0x122)),require(_0x2a4172(0xc2)),require(_0x2a4172(0x181)),require(_0x2a4172(0xe0))):typeof define==_0x2a4172(0x155)&&define[_0x2a4172(0xdf)]?define([_0x2a4172(0x9a),'@univerjs-pro/collaboration-client',_0x2a4172(0x145),'@univerjs/sheets',_0x2a4172(0x17f),_0x2a4172(0xe1),'react/jsx-runtime',_0x2a4172(0x12b),'react',_0x2a4172(0xc2),_0x2a4172(0x181),_0x2a4172(0xe0)],_0x20ed7e):(_0x42236a=typeof globalThis<'u'?globalThis:_0x42236a||self,_0x20ed7e(_0x42236a['UniverProLiveShare']={},_0x42236a[_0x2a4172(0xf7)],_0x42236a[_0x2a4172(0x12a)],_0x42236a[_0x2a4172(0xb1)],_0x42236a['UniverSheetsUi'],_0x42236a['UniverUi'],_0x42236a[_0x2a4172(0xb5)],_0x42236a[_0x2a4172(0x13b)],_0x42236a[_0x2a4172(0xb5)],_0x42236a[_0x2a4172(0x17c)],_0x42236a['rxjs'],_0x42236a[_0x2a4172(0x181)][_0x2a4172(0x137)]));}(this,function(_0x35f0fd,_0x1af8c5,_0x1e3932,_0x42416c,_0xf4b45a,_0x39350c,_0x28fb15,_0xc7301d,_0x1307ab,_0x3e5058,_0x34268f,_0x5a7a7b){'use strict';var _0x5a5647=_0x239d;var _0x2f9514=Object[_0x5a5647(0x163)],_0x8ed210=(_0x11488e,_0x341615,_0x82f26d)=>_0x341615 in _0x11488e?_0x2f9514(_0x11488e,_0x341615,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x82f26d}):_0x11488e[_0x341615]=_0x82f26d,_0x44d794=(_0x385eab,_0x3e86bd,_0x47cd15)=>_0x8ed210(_0x385eab,typeof _0x3e86bd!=_0x5a5647(0xb8)?_0x3e86bd+'':_0x3e86bd,_0x47cd15);const _0xc941b=_0x5a5647(0x17e),_0x1c7f95={};class _0x542db8 extends _0x1e3932[_0x5a5647(0x103)]{constructor(){var _0x3a6b8d=_0x5a5647;super(...arguments),_0x44d794(this,_0x3a6b8d(0xab),new Set()),_0x44d794(this,'_reporters',new Set());}[_0x5a5647(0x99)](_0x558694){var _0x56e7ef=_0x5a5647;return this[_0x56e7ef(0xab)][_0x56e7ef(0xca)](_0x558694),_0x1e3932[_0x56e7ef(0x107)](()=>this[_0x56e7ef(0xab)][_0x56e7ef(0xb9)](_0x558694));}[_0x5a5647(0xc1)](_0x1f6e67){var _0x184172=_0x5a5647;return this['_reporters'][_0x184172(0xca)](_0x1f6e67),_0x1e3932['toDisposable'](()=>this[_0x184172(0xdb)]['delete'](_0x1f6e67));}['shouldShareOperation'](_0x25af6e){var _0x249a01=_0x5a5647;return this[_0x249a01(0xab)]['has'](_0x25af6e);}['getInitialStates'](_0x4eaba8){var _0x3977db=_0x5a5647;return Array['from'](this[_0x3977db(0xdb)])[_0x3977db(0x13f)](_0x10ebb6=>_0x10ebb6(_0x4eaba8));}}var _0x30f16f=Object[_0x5a5647(0xfb)],_0x18822c=(_0x4c7b21,_0x15b5ac,_0x1532ba,_0x4522d7)=>{var _0x543c9f=_0x5a5647;for(var _0x28bdbb=_0x4522d7>0x1?void 0x0:_0x4522d7?_0x30f16f(_0x15b5ac,_0x1532ba):_0x15b5ac,_0x4ea2ef=_0x4c7b21[_0x543c9f(0x139)]-0x1,_0x2cdad5;_0x4ea2ef>=0x0;_0x4ea2ef--)(_0x2cdad5=_0x4c7b21[_0x4ea2ef])&&(_0x28bdbb=_0x2cdad5(_0x28bdbb)||_0x28bdbb);return _0x28bdbb;},_0x2cd7dc=(_0x3caaea,_0x41eba0)=>(_0xe1694a,_0x213c94)=>_0x41eba0(_0xe1694a,_0x213c94,_0x3caaea);let _0x14aea2=class extends _0x1e3932[_0x5a5647(0x103)]{constructor(_0xdc58a6){var _0xffcc39=_0x5a5647;super(),this['_liveShareService']=_0xdc58a6,this[_0xffcc39(0x143)]();}[_0x5a5647(0x143)](){var _0x5b8031=_0x5a5647;[_0xf4b45a[_0x5b8031(0x152)]['id'],_0xf4b45a[_0x5b8031(0xf8)]['id'],_0x42416c['SetWorksheetActiveOperation']['id']][_0x5b8031(0x166)](_0x26a064=>{var _0x40d9cf=_0x5b8031;this[_0x40d9cf(0x149)](this['_liveShareService'][_0x40d9cf(0x99)](_0x26a064));});}};_0x14aea2=_0x18822c([_0x2cd7dc(0x0,_0x1e3932[_0x5a5647(0x97)](_0x542db8))],_0x14aea2);var _0x5685f8=function(){var _0x5cf891=_0x5a5647;return _0x5685f8=Object['assign']||function(_0x41fd46){var _0x313dc4=_0x239d;for(var _0x2e9bbe,_0x86e697=0x1,_0x5ab618=arguments['length'];_0x86e697<_0x5ab618;_0x86e697++){_0x2e9bbe=arguments[_0x86e697];for(var _0x29786c in _0x2e9bbe)Object[_0x313dc4(0xd0)][_0x313dc4(0xc3)][_0x313dc4(0x11a)](_0x2e9bbe,_0x29786c)&&(_0x41fd46[_0x29786c]=_0x2e9bbe[_0x29786c]);}return _0x41fd46;},_0x5685f8[_0x5cf891(0x176)](this,arguments);},_0x3af98c=function(_0x5936be,_0x9c945d){var _0x434fee=_0x5a5647,_0x16e151={};for(var _0x28537e in _0x5936be)Object[_0x434fee(0xd0)][_0x434fee(0xc3)][_0x434fee(0x11a)](_0x5936be,_0x28537e)&&_0x9c945d[_0x434fee(0xe4)](_0x28537e)<0x0&&(_0x16e151[_0x28537e]=_0x5936be[_0x28537e]);if(_0x5936be!=null&&typeof Object[_0x434fee(0x175)]=='function'){for(var _0x5b77d1=0x0,_0x28537e=Object[_0x434fee(0x175)](_0x5936be);_0x5b77d1<_0x28537e[_0x434fee(0x139)];_0x5b77d1++)_0x9c945d['indexOf'](_0x28537e[_0x5b77d1])<0x0&&Object[_0x434fee(0xd0)][_0x434fee(0x130)][_0x434fee(0x11a)](_0x5936be,_0x28537e[_0x5b77d1])&&(_0x16e151[_0x28537e[_0x5b77d1]]=_0x5936be[_0x28537e[_0x5b77d1]]);}return _0x16e151;},_0x3b0eec=_0x1307ab[_0x5a5647(0xd4)](function(_0x310517,_0x3ae614){var _0x5a2c59=_0x5a5647,_0x115953=_0x310517[_0x5a2c59(0x15d)],_0x52478d=_0x310517['id'],_0x2387ee=_0x310517['className'],_0x144c9a=_0x310517['extend'],_0x1942ca=_0x3af98c(_0x310517,['icon','id',_0x5a2c59(0xf6),_0x5a2c59(0x136)]),_0x173f30=_0x5a2c59(0x127)['concat'](_0x52478d,'\x20')['concat'](_0x2387ee||'')[_0x5a2c59(0x142)](),_0x5cd513=_0x1307ab['useRef']('_'[_0x5a2c59(0x116)](_0x5b4ef4()));return _0x9f1b35(_0x115953,''[_0x5a2c59(0x116)](_0x52478d),{'defIds':_0x115953[_0x5a2c59(0x125)],'idSuffix':_0x5cd513[_0x5a2c59(0x159)]},_0x5685f8({'ref':_0x3ae614,'className':_0x173f30},_0x1942ca),_0x144c9a);});function _0x9f1b35(_0x97604b,_0x2c045e,_0x3a0797,_0x1923ea,_0x440b11){var _0x993f25=_0x5a5647;return _0x1307ab[_0x993f25(0xa2)](_0x97604b['tag'],_0x5685f8(_0x5685f8({'key':_0x2c045e},_0x1db026(_0x97604b,_0x3a0797,_0x440b11)),_0x1923ea),(_0x2b92b0(_0x97604b,_0x3a0797)[_0x993f25(0x150)]||[])[_0x993f25(0x13f)](function(_0xc704a5,_0xc5a3e9){var _0x4480b8=_0x993f25;return _0x9f1b35(_0xc704a5,''['concat'](_0x2c045e,'-')[_0x4480b8(0x116)](_0x97604b[_0x4480b8(0x9c)],'-')[_0x4480b8(0x116)](_0xc5a3e9),_0x3a0797,void 0x0,_0x440b11);}));}function _0x1db026(_0x55738a,_0xe7a543,_0x307ea6){var _0x9256fb=_0x5a5647,_0x52a566=_0x5685f8({},_0x55738a[_0x9256fb(0x16c)]);_0x307ea6!=null&&_0x307ea6[_0x9256fb(0x14c)]&&_0x52a566[_0x9256fb(0x11c)]===_0x9256fb(0x14c)&&(_0x52a566[_0x9256fb(0x11c)]=_0x307ea6[_0x9256fb(0x14c)]),_0x55738a[_0x9256fb(0x9c)]===_0x9256fb(0xd2)&&_0x52a566['id']&&(_0x52a566['id']=_0x52a566['id']+_0xe7a543['idSuffix']),Object[_0x9256fb(0xce)](_0x52a566)[_0x9256fb(0x166)](function(_0x271ac2){var _0x4f414d=_0x9256fb,_0x18e6bd=_0x271ac2[0x0],_0x3e306b=_0x271ac2[0x1];_0x18e6bd===_0x4f414d(0xd2)&&typeof _0x3e306b==_0x4f414d(0xf0)&&(_0x52a566[_0x18e6bd]=_0x3e306b['replace'](/url\(#(.*)\)/,'url(#$1'[_0x4f414d(0x116)](_0xe7a543['idSuffix'],')')));});var _0x16a660=_0xe7a543[_0x9256fb(0x125)];return!_0x16a660||_0x16a660['length']===0x0||(_0x55738a[_0x9256fb(0x9c)]===_0x9256fb(0x104)&&_0x52a566[_0x9256fb(0xbc)]&&(_0x52a566['xlink:href']=_0x52a566[_0x9256fb(0xbc)]+_0xe7a543[_0x9256fb(0x12d)]),Object['entries'](_0x52a566)[_0x9256fb(0x166)](function(_0x256bf2){var _0x248a3f=_0x9256fb,_0x3e4fc6=_0x256bf2[0x0],_0x18136b=_0x256bf2[0x1];typeof _0x18136b==_0x248a3f(0xf0)&&(_0x52a566[_0x3e4fc6]=_0x18136b[_0x248a3f(0xdc)](/url\(#(.*)\)/,_0x248a3f(0xc0)[_0x248a3f(0x116)](_0xe7a543[_0x248a3f(0x12d)],')')));})),_0x52a566;}function _0x2b92b0(_0x763f75,_0x30a5d3){var _0x460834=_0x5a5647,_0x2b1674,_0x1a7e4f=_0x30a5d3[_0x460834(0x125)];return!_0x1a7e4f||_0x1a7e4f[_0x460834(0x139)]===0x0?_0x763f75:_0x763f75[_0x460834(0x9c)]==='defs'&&(!((_0x2b1674=_0x763f75[_0x460834(0x150)])===null||_0x2b1674===void 0x0)&&_0x2b1674[_0x460834(0x139)])?_0x5685f8(_0x5685f8({},_0x763f75),{'children':_0x763f75['children']['map'](function(_0x256244){var _0x459d0f=_0x460834;return typeof _0x256244[_0x459d0f(0x16c)]['id']=='string'&&_0x1a7e4f&&_0x1a7e4f[_0x459d0f(0xba)](_0x256244['attrs']['id'])?_0x5685f8(_0x5685f8({},_0x256244),{'attrs':_0x5685f8(_0x5685f8({},_0x256244[_0x459d0f(0x16c)]),{'id':_0x256244[_0x459d0f(0x16c)]['id']+_0x30a5d3[_0x459d0f(0x12d)]})}):_0x256244;})}):_0x763f75;}function _0x5b4ef4(){var _0x58e9cb=_0x5a5647;return Math[_0x58e9cb(0xbf)]()[_0x58e9cb(0x123)](0x24)[_0x58e9cb(0xe5)](0x2,0x8);}_0x3b0eec[_0x5a5647(0x115)]='UniverIcon';var _0x23f10e={'tag':_0x5a5647(0x10e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5a5647(0xf1),'viewBox':_0x5a5647(0x10b),'width':'1em','height':_0x5a5647(0xd3)},'children':[{'tag':_0x5a5647(0xe2),'attrs':{'fill':_0x5a5647(0x8d),'d':_0x5a5647(0x183)}},{'tag':_0x5a5647(0xe2),'attrs':{'fill':_0x5a5647(0x8d),'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':_0x5a5647(0x109),'clipRule':_0x5a5647(0x109)}}]},_0x23fd9a=_0x1307ab['forwardRef'](function(_0x3c8dc6,_0x21c1f7){var _0x5677fb=_0x5a5647;return _0x1307ab[_0x5677fb(0xa2)](_0x3b0eec,Object[_0x5677fb(0x140)]({},_0x3c8dc6,{'id':_0x5677fb(0xa9),'ref':_0x21c1f7,'icon':_0x23f10e}));});_0x23fd9a[_0x5a5647(0x115)]=_0x5a5647(0x96);var _0x1ad72d=Object[_0x5a5647(0xfb)],_0x10d18e=(_0x35f48,_0x1f148c,_0x4f24c8,_0x3ccabe)=>{for(var _0x429d7e=_0x3ccabe>0x1?void 0x0:_0x3ccabe?_0x1ad72d(_0x1f148c,_0x4f24c8):_0x1f148c,_0x2f60c4=_0x35f48['length']-0x1,_0x4233ce;_0x2f60c4>=0x0;_0x2f60c4--)(_0x4233ce=_0x35f48[_0x2f60c4])&&(_0x429d7e=_0x4233ce(_0x429d7e)||_0x429d7e);return _0x429d7e;},_0x27b262=(_0x4b8a8b,_0xc8f605)=>(_0x321100,_0x5ab918)=>_0xc8f605(_0x321100,_0x5ab918,_0x4b8a8b);_0x35f0fd[_0x5a5647(0xcf)]=class extends _0x1e3932[_0x5a5647(0x13d)]{constructor(_0x49bac1,_0x2ea969,_0x1a70c6){var _0x1f1214=_0x5a5647;super(),_0x44d794(this,_0x1f1214(0x13c),new Map()),(this[_0x1f1214(0xc6)]=_0x49bac1,this[_0x1f1214(0xde)]=_0x2ea969,this[_0x1f1214(0x129)]=_0x1a70c6,this['_init']());}async[_0x5a5647(0x12c)](_0x4a7893){var _0x4c02ea=_0x5a5647;return this['_entities'][_0x4c02ea(0xc5)](_0x4a7893)||await this['_startLiveShareCoordinator'](_0x4a7893),this[_0x4c02ea(0x13c)][_0x4c02ea(0x146)](_0x4a7893);}[_0x5a5647(0x143)](){var _0x36cb7e=_0x5a5647;this[_0x36cb7e(0xc6)][_0x36cb7e(0x15c)](_0x1e3932[_0x36cb7e(0xfe)][_0x36cb7e(0x98)])['pipe'](_0x5a7a7b[_0x36cb7e(0x135)](this[_0x36cb7e(0xea)]))[_0x36cb7e(0xb2)](async _0x2da058=>{var _0x4c5f33=_0x36cb7e;const _0x1f69c6=_0x2da058[_0x4c5f33(0xac)]();this[_0x4c5f33(0x13c)][_0x4c5f33(0xc5)](_0x1f69c6)||this[_0x4c5f33(0x10c)](_0x1f69c6);}),this[_0x36cb7e(0xc6)][_0x36cb7e(0x86)](_0x1e3932['UniverInstanceType']['UNIVER_SHEET'])['pipe'](_0x5a7a7b['takeUntil'](this['dispose$']))[_0x36cb7e(0xb2)](_0x36df86=>{var _0x519510=_0x36cb7e;const _0x238de5=_0x36df86['getUnitId'](),_0x3de463=this[_0x519510(0x13c)][_0x519510(0x146)](_0x238de5);_0x3de463==null||_0x3de463[_0x519510(0x15e)]();});}async[_0x5a5647(0x10c)](_0x35521d){var _0x59cbf8=_0x5a5647;const _0x4cdb44=await this['_collabSessionService'][_0x59cbf8(0xa4)](_0x35521d),_0x94e45a=this[_0x59cbf8(0xde)]['createInstance'](_0x35f0fd[_0x59cbf8(0xd6)],_0x35521d,_0x4cdb44);return _0x94e45a[_0x59cbf8(0xe8)](),this['_entities']['set'](_0x35521d,_0x94e45a),_0x94e45a;}},_0x35f0fd[_0x5a5647(0xcf)]=_0x10d18e([_0x27b262(0x0,_0x1e3932[_0x5a5647(0x179)]),_0x27b262(0x1,_0x1e3932[_0x5a5647(0x97)](_0x1e3932[_0x5a5647(0x131)])),_0x27b262(0x2,_0x1e3932['Inject'](_0x1af8c5[_0x5a5647(0x8a)]))],_0x35f0fd['LiveShareController']);var _0x4f1812=(_0x1c7f30=>(_0x1c7f30[_0x5a5647(0x95)]='offline',_0x1c7f30[_0x5a5647(0x13e)]=_0x5a5647(0x114),_0x1c7f30[_0x5a5647(0xd8)]=_0x5a5647(0xc7),_0x1c7f30[_0x5a5647(0x151)]='not-following',_0x1c7f30[_0x5a5647(0x110)]=_0x5a5647(0x120),_0x1c7f30))(_0x4f1812||{});const _0x8660b2=_0x5a5647(0xa7),_0x56f4b4=0xc8;_0x35f0fd[_0x5a5647(0xd6)]=class extends _0x1e3932[_0x5a5647(0x13d)]{constructor(_0x156356,_0x2624ff,_0x39e58f,_0x56778b,_0x147e9e){var _0xacb112=_0x5a5647;super(),_0x44d794(this,_0xacb112(0xb3),new _0x34268f['BehaviorSubject'](_0xacb112(0x114))),_0x44d794(this,_0xacb112(0x158),this[_0xacb112(0xb3)][_0xacb112(0x177)]()),_0x44d794(this,'_init',!0x1),_0x44d794(this,'_commandDisposable',null),_0x44d794(this,_0xacb112(0x8e),null),(this[_0xacb112(0xd7)]=_0x156356,this['_collabSession']=_0x2624ff,this[_0xacb112(0xc8)]=_0x39e58f,this[_0xacb112(0x8c)]=_0x56778b,this[_0xacb112(0xff)]=_0x147e9e);}get[_0x5a5647(0x141)](){var _0x38b59b=_0x5a5647;return this[_0x38b59b(0xb3)][_0x38b59b(0x144)]();}[_0x5a5647(0x15e)](){var _0x53bad7=_0x5a5647,_0x81801a;(_0x81801a=this['_commandDisposable'])==null||_0x81801a[_0x53bad7(0x15e)](),this[_0x53bad7(0xb3)][_0x53bad7(0x106)](_0x53bad7(0x114)),this[_0x53bad7(0xb3)][_0x53bad7(0xa0)]();}[_0x5a5647(0xe8)](){var _0x26e8d0=_0x5a5647;this[_0x26e8d0(0x143)]||(this[_0x26e8d0(0x143)]=!0x0,this[_0x26e8d0(0x156)][_0x26e8d0(0x11f)][_0x26e8d0(0x16e)](_0x5a7a7b[_0x26e8d0(0x135)](this[_0x26e8d0(0xea)]))[_0x26e8d0(0xb2)](_0xd448e4=>{var _0x253f5e=_0x26e8d0;switch(_0xd448e4){case _0x1af8c5[_0x253f5e(0x124)][_0x253f5e(0x95)]:this[_0x253f5e(0x161)]();break;case _0x1af8c5[_0x253f5e(0x124)][_0x253f5e(0x102)]:this[_0x253f5e(0x162)]();break;}}),this[_0x26e8d0(0x156)][_0x26e8d0(0x160)][_0x26e8d0(0x16e)](_0x5a7a7b['takeUntil'](this['dispose$']))['subscribe'](_0x344f95=>{var _0x45548d=_0x26e8d0;const {eventID:_0x145158}=_0x344f95;switch(_0x145158){case _0x3e5058[_0x45548d(0x167)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x344f95);break;case _0x3e5058['CollaborationEvent'][_0x45548d(0x126)]:this[_0x45548d(0x15f)](_0x344f95);break;case _0x3e5058['CollaborationEvent'][_0x45548d(0x112)]:this[_0x45548d(0x91)]();break;case _0x3e5058[_0x45548d(0x167)][_0x45548d(0x108)]:this[_0x45548d(0x101)](_0x344f95);break;}}));}[_0x5a5647(0x15b)](){var _0x330927=_0x5a5647;this['_collabSession'][_0x330927(0x14b)]({'eventID':_0x3e5058['CollaborationEvent'][_0x330927(0x14f)],'data':{'unitID':this['_unitID'],'userID':this[_0x330927(0x156)][_0x330927(0xc9)]()}},this[_0x330927(0xd7)]);}[_0x5a5647(0x8b)](){var _0x704b80=_0x5a5647;this[_0x704b80(0x141)]==='presenting'&&(this['_status$']['next'](_0x704b80(0x114)),this[_0x704b80(0x156)]['send']({'eventID':_0x3e5058[_0x704b80(0x167)][_0x704b80(0x112)],'data':{'unitID':this[_0x704b80(0xd7)]}},this[_0x704b80(0xd7)]));}[_0x5a5647(0x132)](){var _0x2e83e2=_0x5a5647;this[_0x2e83e2(0x141)]==='not-following'&&(this['_status$']['next'](_0x2e83e2(0xc7)),this[_0x2e83e2(0x100)]());}[_0x5a5647(0x94)](){var _0xf7834e=_0x5a5647;this[_0xf7834e(0x141)]===_0xf7834e(0xc7)&&this[_0xf7834e(0x9d)]();}[_0x5a5647(0xfd)](_0x20a261){var _0x3ee418=_0x5a5647;const {presenter:_0x53f3a2}=_0x20a261[_0x3ee418(0xaa)],_0x25323e=this['_collabSession'][_0x3ee418(0xc9)]();this[_0x3ee418(0x8e)]=_0x53f3a2,_0x53f3a2===_0x25323e?(this[_0x3ee418(0x9d)](),this[_0x3ee418(0xaf)]()):this[_0x3ee418(0x141)]!==_0x3ee418(0xc4)&&(this['_stopPresenting'](),this[_0x3ee418(0x100)]());}[_0x5a5647(0xcd)](){var _0x4b745d=_0x5a5647;const _0x57c148={'eventID':_0x3e5058[_0x4b745d(0x167)][_0x4b745d(0x9b)]};this[_0x4b745d(0x156)]['send'](_0x57c148,this[_0x4b745d(0xd7)]);}[_0x5a5647(0x91)](){var _0x562078=_0x5a5647;this[_0x562078(0x8e)]=null,this[_0x562078(0x141)]!==_0x562078(0x120)&&this['_beIdle']();}[_0x5a5647(0x101)](_0x263c98){var _0x43247f=_0x5a5647;if(this[_0x43247f(0x141)]===_0x43247f(0xc7)&&this[_0x43247f(0x8e)]===_0x263c98['data'][_0x43247f(0x119)]){const _0x3ae601=_0x3e5058[_0x43247f(0x10f)](_0x263c98[_0x43247f(0xaa)])[_0x43247f(0x105)]['reverse']()[_0x43247f(0x11b)](_0x2fcc9e=>_0x2fcc9e['id']===_0x42416c[_0x43247f(0xd9)]['id']);if(_0x3ae601){const _0x4d1cb9=_0x3ae601['params'][_0x43247f(0xda)],_0x5f1836=_0x3ae601['params'][_0x43247f(0xf5)]['id'];setTimeout(()=>{var _0x514ea0=_0x43247f;this['_commandService'][_0x514ea0(0x169)](_0x42416c[_0x514ea0(0xe7)]['id'],{'unitId':_0x4d1cb9,'subUnitId':_0x5f1836},{'fromCollab':!0x0});});}}}[_0x5a5647(0xaf)](){var _0x23c46b=_0x5a5647;this[_0x23c46b(0xb3)][_0x23c46b(0x106)]('presenting');const _0x28c0cb=new Map(),_0x1e4c87=this[_0x23c46b(0x17a)]=new _0x1e3932[(_0x23c46b(0xb0))]();_0x1e4c87[_0x23c46b(0xca)](_0x1e3932[_0x23c46b(0x107)](()=>{var _0x4200e3=_0x23c46b;_0x28c0cb[_0x4200e3(0x166)](_0x187c6b=>_0x187c6b[_0x4200e3(0xa0)]()),_0x28c0cb[_0x4200e3(0x12e)]();})),_0x1e4c87[_0x23c46b(0xca)](this['_commandService']['onCommandExecuted'](_0x179099=>{var _0x38b6c2=_0x23c46b,_0x56f3cc;if(_0x179099[_0x38b6c2(0x164)]!==_0x1e3932[_0x38b6c2(0x92)]['OPERATION']||!this['_liveShareService'][_0x38b6c2(0xdd)](_0x179099['id']))return;const {id:_0x4fa700}=_0x179099;let _0x350658;_0x28c0cb[_0x38b6c2(0xc5)](_0x4fa700)?_0x350658=_0x28c0cb[_0x38b6c2(0x146)](_0x4fa700):(_0x350658=new _0x34268f[(_0x38b6c2(0x172))](),_0x28c0cb[_0x38b6c2(0x14d)](_0x4fa700,_0x350658),_0x350658['pipe'](_0x5a7a7b[_0x38b6c2(0xd5)]((_0x56f3cc=this['_configService'][_0x38b6c2(0xd1)](_0x8660b2))!=null?_0x56f3cc:_0x56f4b4,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38b6c2(0xb2)](_0x3b4a04=>{var _0x24ca6f=_0x38b6c2;this[_0x24ca6f(0x156)][_0x24ca6f(0x14b)]({'eventID':_0x3e5058['CollaborationEvent'][_0x24ca6f(0x126)],'data':{'unitID':this['_unitID'],'operations':{[_0x3b4a04['id']]:{'id':_0x3b4a04['id'],'params':JSON[_0x24ca6f(0x180)](_0x3b4a04[_0x24ca6f(0x165)])}}}},this[_0x24ca6f(0xd7)]);})),_0x350658[_0x38b6c2(0x106)](_0x179099);})),this['_liveShareService'][_0x23c46b(0x90)](this['_unitID'])[_0x23c46b(0x166)](_0x57e901=>this[_0x23c46b(0x156)]['send']({'eventID':_0x3e5058[_0x23c46b(0x167)][_0x23c46b(0x126)],'data':{'unitID':this['_unitID'],'operations':{[_0x57e901['id']]:{'id':_0x57e901['id'],'params':JSON[_0x23c46b(0x180)](_0x57e901['params'])}}}},this[_0x23c46b(0xd7)]));}[_0x5a5647(0x9f)](){var _0x1be8c9=_0x5a5647,_0x42829f;this['_status$']['next'](_0x1be8c9(0x114)),(_0x42829f=this['_commandDisposable'])==null||_0x42829f[_0x1be8c9(0x15e)](),this[_0x1be8c9(0x17a)]=null;}[_0x5a5647(0x100)](){var _0x2cbe87=_0x5a5647,_0x18aedf;(_0x18aedf=this['_commandDisposable'])==null||_0x18aedf[_0x2cbe87(0x15e)](),this[_0x2cbe87(0xb3)][_0x2cbe87(0x106)](_0x2cbe87(0xc7));}['_beIdle'](){var _0x451a80=_0x5a5647,_0x2408a4;this[_0x451a80(0xb3)][_0x451a80(0x106)]('idle'),(_0x2408a4=this[_0x451a80(0x17a)])==null||_0x2408a4['dispose'](),this['_commandDisposable']=null;}[_0x5a5647(0x9d)](){var _0x1e0159=_0x5a5647,_0x46cef2;this[_0x1e0159(0xb3)][_0x1e0159(0x106)](_0x1e0159(0xc4)),(_0x46cef2=this[_0x1e0159(0x17a)])==null||_0x46cef2[_0x1e0159(0x15e)]();}[_0x5a5647(0x15f)](_0x13e822){var _0x44bb16=_0x5a5647;if(['presenting',_0x44bb16(0xc4),'offline'][_0x44bb16(0xba)](this[_0x44bb16(0x141)])||!_0x13e822[_0x44bb16(0xaa)][_0x44bb16(0xf9)]||_0x13e822[_0x44bb16(0xaa)][_0x44bb16(0xf9)]===this['_collabSession']['getMemberID']())return;this[_0x44bb16(0x141)]===_0x44bb16(0x114)&&this['_startFollowing']();const _0x2f474c=_0x13e822['data'][_0x44bb16(0x121)];Object[_0x44bb16(0x89)](_0x2f474c)[_0x44bb16(0x166)](_0x568096=>{var _0x489945=_0x44bb16;this[_0x489945(0xff)][_0x489945(0x169)](_0x568096['id'],_0x568096[_0x489945(0x165)]?JSON[_0x489945(0x14e)](_0x568096[_0x489945(0x165)]):null,{'fromCollab':!0x0});});}[_0x5a5647(0x161)](){var _0x46b810=_0x5a5647,_0x2998ef;this['_status$']['next'](_0x46b810(0x168)),(_0x2998ef=this[_0x46b810(0x17a)])==null||_0x2998ef[_0x46b810(0x15e)]();}['_handleOnline'](){var _0x1fda52=_0x5a5647;this[_0x1fda52(0xb3)][_0x1fda52(0x106)](_0x1fda52(0x114)),this[_0x1fda52(0xcd)]();}},_0x35f0fd[_0x5a5647(0xd6)]=_0x10d18e([_0x27b262(0x2,_0x1e3932[_0x5a5647(0x8f)]),_0x27b262(0x3,_0x1e3932[_0x5a5647(0x97)](_0x542db8)),_0x27b262(0x4,_0x1e3932[_0x5a5647(0x16f)])],_0x35f0fd[_0x5a5647(0xd6)]);function _0x342c10(){var _0x44c984=_0x5a5647;const _0xe03455=_0x39350c[_0x44c984(0x157)](_0x35f0fd[_0x44c984(0xcf)]),_0x8f3d50=_0x39350c[_0x44c984(0x157)](_0x1e3932[_0x44c984(0x179)]),_0x1b921e=_0x39350c['useObservable'](()=>_0x8f3d50[_0x44c984(0x14a)](_0x1e3932[_0x44c984(0xfe)][_0x44c984(0x98)]),void 0x0,!0x1,[]),[_0x4f7c4d,_0x591979]=_0x1307ab[_0x44c984(0xe3)](null),[_0x4d9be0,_0x16534d]=_0x1307ab['useState'](_0x4f1812[_0x44c984(0x13e)]),_0x4cdae1=_0x1307ab[_0x44c984(0x184)](null);return _0x1307ab[_0x44c984(0x11d)](()=>(_0x1b921e&&_0xe03455[_0x44c984(0x12c)](_0x1b921e[_0x44c984(0xac)]())[_0x44c984(0xa8)](_0xc0aa39=>{var _0xaed5cf=_0x44c984;_0x591979(_0xc0aa39),_0x4cdae1[_0xaed5cf(0x159)]=_0xc0aa39[_0xaed5cf(0x158)][_0xaed5cf(0xb2)](_0x501478=>{_0x16534d(_0x501478);});}),()=>{var _0x4ad6f4=_0x44c984,_0x10a777;(_0x10a777=_0x4cdae1[_0x4ad6f4(0x159)])==null||_0x10a777[_0x4ad6f4(0xbe)](),_0x4cdae1[_0x4ad6f4(0x159)]=null;}),[_0x1b921e,_0xe03455]),_0x4f7c4d?_0x28fb15[_0x44c984(0xcb)](_0xc7301d[_0x44c984(0xa3)],{'align':_0x44c984(0x9e),'disabled':_0x4d9be0===_0x4f1812[_0x44c984(0x95)],'className':_0x44c984(0x174),'overlay':_0x28fb15['jsx'](_0x2b9c0a,{'status':_0x4d9be0,'coordinator':_0x4f7c4d}),'children':_0x28fb15['jsx'](_0x44c984(0xb7),{'className':_0xc7301d[_0x44c984(0xb6)](_0x44c984(0x148),{'univer-cursor-not-allowed':_0x4d9be0===_0x4f1812['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4d9be0!==_0x4f1812[_0x44c984(0x95)]}),'type':_0x44c984(0xb7),'children':_0x28fb15[_0x44c984(0xcb)](_0x23fd9a,{'className':_0x44c984(0x118)})})}):null;}function _0x2b9c0a(_0x340024){var _0x1008df=_0x5a5647;const {status:_0x5e448f,coordinator:_0x588924}=_0x340024;switch(_0x5e448f){case _0x4f1812['IDLE']:return _0x28fb15[_0x1008df(0xcb)](_0x14442f,{'coordinator':_0x588924});case _0x4f1812['FOLLOWING']:return _0x28fb15[_0x1008df(0xcb)](_0x14d574,{'coordinator':_0x588924});case _0x4f1812[_0x1008df(0x151)]:return _0x28fb15[_0x1008df(0xcb)](_0x8b8c3,{'coordinator':_0x588924});case _0x4f1812[_0x1008df(0x95)]:return _0x28fb15[_0x1008df(0xcb)](_0x40e91f,{});case _0x4f1812[_0x1008df(0x110)]:return _0x28fb15[_0x1008df(0xcb)](_0x54bb84,{'coordinator':_0x588924});default:return null;}}function _0x14442f(_0x136150){var _0x4c84af=_0x5a5647;const {coordinator:_0x3d21d9}=_0x136150;return _0x28fb15[_0x4c84af(0xbd)](_0x28fb15['Fragment'],{'children':[_0x28fb15[_0x4c84af(0xcb)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x28fb15['jsx'](_0xc7301d['Button'],{'onClick':()=>_0x3d21d9['tryStartPresenting'](),'children':'Start'})]});}function _0x14d574(_0x369ece){var _0x2958fa=_0x5a5647;const {coordinator:_0x12f497}=_0x369ece;return _0x28fb15['jsxs'](_0x28fb15[_0x2958fa(0x153)],{'children':[_0x28fb15[_0x2958fa(0xcb)](_0x2958fa(0xf3),{'className':_0x2958fa(0xcc),'children':_0x2958fa(0xed)}),_0x28fb15[_0x2958fa(0xcb)](_0xc7301d['Button'],{'onClick':()=>_0x12f497['stopFollowing'](),'children':_0x2958fa(0x185)})]});}function _0x8b8c3(_0x1be9f4){var _0x2e7d10=_0x5a5647;const {coordinator:_0x24ed60}=_0x1be9f4;return _0x28fb15[_0x2e7d10(0xbd)](_0x28fb15[_0x2e7d10(0x153)],{'children':[_0x28fb15[_0x2e7d10(0xcb)]('div',{'className':_0x2e7d10(0xcc),'children':_0x2e7d10(0x87)}),_0x28fb15['jsx'](_0xc7301d['Button'],{'variant':_0x2e7d10(0x17d),'onClick':()=>_0x24ed60[_0x2e7d10(0x132)](),'children':'Start\x20following'})]});}function _0x54bb84(_0x5e76d6){var _0xbd6b77=_0x5a5647;const {coordinator:_0x1461c2}=_0x5e76d6;return _0x28fb15[_0xbd6b77(0xbd)](_0x28fb15[_0xbd6b77(0x153)],{'children':[_0x28fb15[_0xbd6b77(0xcb)]('div',{'className':_0xbd6b77(0xcc),'children':_0xbd6b77(0x16d)}),_0x28fb15[_0xbd6b77(0xcb)](_0xc7301d[_0xbd6b77(0x113)],{'variant':_0xbd6b77(0xef),'onClick':()=>_0x1461c2[_0xbd6b77(0x8b)](),'children':_0xbd6b77(0x178)})]});}function _0x40e91f(){var _0x4fc133=_0x5a5647;return _0x28fb15[_0x4fc133(0xcb)](_0x28fb15[_0x4fc133(0x153)],{'children':_0x4fc133(0xf2)});}var _0x4beb18=Object[_0x5a5647(0xfb)],_0x182385=(_0x5c3e7d,_0x13680f,_0x375a0d,_0x2f48eb)=>{for(var _0x390d50=_0x2f48eb>0x1?void 0x0:_0x2f48eb?_0x4beb18(_0x13680f,_0x375a0d):_0x13680f,_0x44ae47=_0x5c3e7d['length']-0x1,_0x52f3a5;_0x44ae47>=0x0;_0x44ae47--)(_0x52f3a5=_0x5c3e7d[_0x44ae47])&&(_0x390d50=_0x52f3a5(_0x390d50)||_0x390d50);return _0x390d50;},_0x5c81f9=(_0x11603d,_0x1013e6)=>(_0xa8949,_0x1d2402)=>_0x1013e6(_0xa8949,_0x1d2402,_0x11603d);_0x35f0fd[_0x5a5647(0xa1)]=class extends _0x1e3932['Disposable']{constructor(_0x358d3b,_0x2d0b43){var _0x1fc5fc=_0x5a5647;super(),this[_0x1fc5fc(0xde)]=_0x358d3b,this[_0x1fc5fc(0x117)]=_0x2d0b43,this[_0x1fc5fc(0x93)]();}['_mountLiveShare'](){var _0x256531=_0x5a5647;this[_0x256531(0x149)](this[_0x256531(0x117)][_0x256531(0xb4)](_0x39350c['BuiltInUIPart']['HEADER_MENU'],()=>_0x39350c[_0x256531(0x138)](_0x342c10,this[_0x256531(0xde)])));}},_0x35f0fd[_0x5a5647(0xa1)]=_0x182385([_0x5c81f9(0x0,_0x1e3932[_0x5a5647(0x97)](_0x1e3932['Injector'])),_0x5c81f9(0x1,_0x39350c['IUIPartsService'])],_0x35f0fd[_0x5a5647(0xa1)]);var _0x21cb67=Object[_0x5a5647(0x163)],_0x58b8f2=Object[_0x5a5647(0xfb)],_0x38b0b9=(_0x564cbb,_0x2e4c3b,_0x2f2b2b)=>_0x2e4c3b in _0x564cbb?_0x21cb67(_0x564cbb,_0x2e4c3b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f2b2b}):_0x564cbb[_0x2e4c3b]=_0x2f2b2b,_0x1e0560=(_0x2415b9,_0x20b3e0,_0x26fd10,_0x507417)=>{var _0x49fefa=_0x5a5647;for(var _0x401817=_0x507417>0x1?void 0x0:_0x507417?_0x58b8f2(_0x20b3e0,_0x26fd10):_0x20b3e0,_0x16a834=_0x2415b9[_0x49fefa(0x139)]-0x1,_0x22fafd;_0x16a834>=0x0;_0x16a834--)(_0x22fafd=_0x2415b9[_0x16a834])&&(_0x401817=_0x22fafd(_0x401817)||_0x401817);return _0x401817;},_0x9a6a90=(_0x496a81,_0x2a05c2)=>(_0x4d41f5,_0xa1b1a4)=>_0x2a05c2(_0x4d41f5,_0xa1b1a4,_0x496a81),_0x527854=(_0x1ef1ed,_0x2cf727,_0x58a349)=>_0x38b0b9(_0x1ef1ed,typeof _0x2cf727!='symbol'?_0x2cf727+'':_0x2cf727,_0x58a349);const _0x199f82=_0x5a5647(0x182);_0x35f0fd[_0x5a5647(0xe9)]=class extends _0x1e3932[_0x5a5647(0xfc)]{constructor(_0x1955ef=_0x1c7f95,_0x42296d,_0x4244a1){var _0x550f3a=_0x5a5647;super(),this[_0x550f3a(0x171)]=_0x1955ef,this[_0x550f3a(0xde)]=_0x42296d,this[_0x550f3a(0xc8)]=_0x4244a1;const {..._0x42a4a3}=_0x1e3932[_0x550f3a(0x111)]({},_0x1c7f95,this[_0x550f3a(0x171)]);this[_0x550f3a(0xc8)][_0x550f3a(0x170)](_0xc941b,_0x42a4a3);}[_0x5a5647(0xf4)](){var _0x5d2036=_0x5a5647;_0x1e3932[_0x5d2036(0x15a)](this[_0x5d2036(0xde)],_0x1e3932[_0x5d2036(0x133)]([[_0x542db8],[_0x35f0fd[_0x5d2036(0xcf)]],[_0x14aea2],[_0x35f0fd[_0x5d2036(0xa1)]]],this[_0x5d2036(0x171)][_0x5d2036(0xfa)])),_0x1e3932[_0x5d2036(0xae)](this[_0x5d2036(0xde)],[[_0x14aea2]]);}[_0x5a5647(0x16b)](){var _0x1ea10b=_0x5a5647;_0x1e3932[_0x1ea10b(0xae)](this[_0x1ea10b(0xde)],[[_0x35f0fd[_0x1ea10b(0xa1)]]]);}},_0x527854(_0x35f0fd[_0x5a5647(0xe9)],'type',_0x1e3932[_0x5a5647(0xfe)][_0x5a5647(0x88)]),_0x527854(_0x35f0fd[_0x5a5647(0xe9)],_0x5a5647(0xee),_0x199f82),_0x35f0fd[_0x5a5647(0xe9)]=_0x1e0560([_0x1e3932['DependentOn'](_0x1af8c5[_0x5a5647(0xa6)]),_0x9a6a90(0x1,_0x1e3932[_0x5a5647(0x97)](_0x1e3932[_0x5a5647(0x131)])),_0x9a6a90(0x2,_0x1e3932[_0x5a5647(0x8f)])],_0x35f0fd[_0x5a5647(0xe9)]),_0x35f0fd[_0x5a5647(0x134)]=_0x342c10,_0x35f0fd[_0x5a5647(0xad)]=_0x542db8,_0x35f0fd[_0x5a5647(0x10d)]=_0x4f1812,Object[_0x5a5647(0x163)](_0x35f0fd,Symbol[_0x5a5647(0x11e)],{'value':_0x5a5647(0x173)});}));function _0x239d(_0x4b2383,_0x4b3dae){var _0x10eaad=_0x10ea();return _0x239d=function(_0x239dd4,_0x3b9d06){_0x239dd4=_0x239dd4-0x86;var _0xb7efe0=_0x10eaad[_0x239dd4];return _0xb7efe0;},_0x239d(_0x4b2383,_0x4b3dae);}function _0x10ea(){var _0x3442fb=['idle','displayName','concat','_uiPartsService','univer-size-4','memberID','call','find','fill','useEffect','toStringTag','sessionStatus$','presenting','operations','react','toString','SessionStatus','defIds','LIVESHARE_OPERATION','univerjs-icon\x20univerjs-icon-','7877192hiksTE','_collabSessionService','UniverCore','@univerjs/design','getLiveShareCoordinator','idSuffix','clear','7pfpeMa','propertyIsEnumerable','Injector','startFollowing','mergeOverrideWithDependencies','LiveShare','takeUntil','extend','operators','connectInjector','length','19612xpOuAs','UniverDesign','_entities','RxDisposable','IDLE','map','assign','_status','trim','_init','getValue','@univerjs/core','get','204rlaUyV','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','getCurrentTypeOfUnit$','send','colorChannel1','set','parse','LIVESHARE_REQUEST_HOST','children','NOT_FOLLOWING','SetZoomRatioOperation','Fragment','5526TcajKy','function','_collabSession','useDependency','status$','current','registerDependencies','tryStartPresenting','getTypeOfUnitAdded$','icon','dispose','_handleOperation','event$','_handleOffline','_handleOnline','defineProperty','type','params','forEach','CollaborationEvent','offline','executeCommand','1203024eveQFt','onRendered','attrs','You\x27re\x20presenting\x20the\x20document','pipe','ICommandService','setConfig','_config','Subject','Module','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','getOwnPropertySymbols','apply','asObservable','Stop\x20presenting','IUniverInstanceService','_commandDisposable','812080uwMiXr','UniverProCollaboration','text','live-share.config','@univerjs/sheets-ui','stringify','rxjs','UNIVER_LIVE_SHARE_PLUGIN','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','useRef','Stop\x20following','getTypeOfUnitDisposed$','You\x27re\x20not\x20following\x20the\x20presenter','UNIVER_UNKNOWN','values','CollaborationSessionService','stopPresenting','_liveShareService','currentColor','_presenter','IConfigService','getInitialStates','_handleTerminate','CommandType','_mountLiveShare','stopFollowing','OFFLINE','LiveShareIcon','Inject','UNIVER_SHEET','registerSharedOperation','exports','LIVESHARE_FETCH_OPERATIONS','tag','_stopFollowing','end','_stopPresenting','complete','DesktopLiveShareController','createElement','Dropdown','requireSession','react/jsx-runtime','UniverCollaborationClientPlugin','SAME_OPERATION_SHARE_INTERVAL','then','live-share-icon','data','_sharedOperations','getUnitId','LiveShareService','touchDependencies','_startPresenting','DisposableCollection','UniverSheets','subscribe','_status$','registerComponent','React','clsx','button','symbol','delete','includes','3530IzINdK','xlink:href','jsxs','unsubscribe','random','url(#$1','registerInitialStateReporter','@univerjs-pro/collaboration','hasOwnProperty','not-following','has','_univerInstanceService','following','_configService','getMemberID','add','jsx','univer-mb-3\x20univer-w-full\x20univer-text-sm','_fetchOperations','entries','LiveShareController','prototype','getConfig','mask','1em','forwardRef','throttleTime','LiveShareCoordinator','_unitID','FOLLOWING','InsertSheetMutation','unitId','_reporters','replace','shouldShareOperation','_injector','amd','rxjs/operators','@univerjs/ui','path','useState','indexOf','substring','17445SGArub','SetWorksheetActiveOperation','init','UniverLiveSharePlugin','dispose$','2424792rJXDnr','object','You\x27re\x20following\x20the\x20presenter','pluginName','default','string','none','You\x27are\x20offline.','div','onStarting','sheet','className','UniverProCollaborationClient','SetScrollOperation','presenter','override','getOwnPropertyDescriptor','Plugin','_handleNewHost','UniverInstanceType','_commandService','_startFollowing','_handleNewChangeSets','ONLINE','Disposable','use','mutations','next','toDisposable','NEW_CHANGESETS','evenodd','@univerjs-pro/collaboration-client','0\x200\x2017\x2017','_startLiveShareCoordinator','LiveShareStatus','svg','parseProtocolChangeset','PRESENTING','merge','LIVESHARE_TERMINATE','Button'];_0x10ea=function(){return _0x3442fb;};return _0x10ea();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.1
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,24 +47,24 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.1
|
|
51
|
-
"@univerjs-pro/collaboration
|
|
52
|
-
"@univerjs/core": "0.8.1
|
|
53
|
-
"@univerjs/design": "0.8.1
|
|
54
|
-
"@univerjs/sheets": "0.8.1
|
|
55
|
-
"@univerjs/sheets-ui": "0.8.1
|
|
56
|
-
"@univerjs/ui": "0.8.1
|
|
50
|
+
"@univerjs-pro/collaboration-client": "0.8.1",
|
|
51
|
+
"@univerjs-pro/collaboration": "0.8.1",
|
|
52
|
+
"@univerjs/core": "0.8.1",
|
|
53
|
+
"@univerjs/design": "0.8.1",
|
|
54
|
+
"@univerjs/sheets": "0.8.1",
|
|
55
|
+
"@univerjs/sheets-ui": "0.8.1",
|
|
56
|
+
"@univerjs/ui": "0.8.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"postcss": "^8.5.
|
|
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.2.
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs
|
|
65
|
+
"vitest": "^3.2.0",
|
|
66
|
+
"@univerjs-infra/shared": "0.8.1",
|
|
67
|
+
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|