@univerjs-pro/live-share 0.8.2-nightly.202506251607 → 0.8.2-nightly.202506261607
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.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x3797(_0x4d43d9,_0x40a960){var _0x17e190=_0x17e1();return _0x3797=function(_0x3797c8,_0x18df8d){_0x3797c8=_0x3797c8-0xa9;var _0x3e4f4b=_0x17e190[_0x3797c8];return _0x3e4f4b;},_0x3797(_0x4d43d9,_0x40a960);}var _0x4b9391=_0x3797;(function(_0x1d7123,_0xabad7f){var _0xdad188=_0x3797,_0x2ec6dd=_0x1d7123();while(!![]){try{var _0x5d10da=parseInt(_0xdad188(0xef))/0x1*(-parseInt(_0xdad188(0x18f))/0x2)+-parseInt(_0xdad188(0xe7))/0x3+parseInt(_0xdad188(0xba))/0x4*(parseInt(_0xdad188(0x149))/0x5)+parseInt(_0xdad188(0x16c))/0x6*(parseInt(_0xdad188(0x106))/0x7)+-parseInt(_0xdad188(0xf3))/0x8+-parseInt(_0xdad188(0xda))/0x9+-parseInt(_0xdad188(0x14a))/0xa*(-parseInt(_0xdad188(0xd6))/0xb);if(_0x5d10da===_0xabad7f)break;else _0x2ec6dd['push'](_0x2ec6dd['shift']());}catch(_0x3135a5){_0x2ec6dd['push'](_0x2ec6dd['shift']());}}}(_0x17e1,0xc1076));var U=Object['defineProperty'],F=(_0x5a5d56,_0x2097d1,_0x1779a2)=>_0x2097d1 in _0x5a5d56?U(_0x5a5d56,_0x2097d1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1779a2}):_0x5a5d56[_0x2097d1]=_0x1779a2,v=(_0x786c7b,_0x3d9654,_0x280f2c)=>F(_0x786c7b,typeof _0x3d9654!=_0x4b9391(0xf9)?_0x3d9654+'':_0x3d9654,_0x280f2c);Object['defineProperty'](exports,Symbol[_0x4b9391(0xe0)],{'value':_0x4b9391(0x11d)});const m=require('@univerjs-pro/collaboration-client'),o=require(_0x4b9391(0x141)),C=require('@univerjs/sheets'),w=require(_0x4b9391(0x181)),p=require(_0x4b9391(0x165)),l=require(_0x4b9391(0x173)),g=require(_0x4b9391(0xad)),f=require(_0x4b9391(0xd4)),_=require('@univerjs-pro/collaboration'),D=require(_0x4b9391(0x17f)),b=require(_0x4b9391(0xbf)),$=_0x4b9391(0xec),x={};class O extends o['Disposable']{constructor(){var _0xaeed21=_0x4b9391;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0xaeed21(0x17a),new Set());}[_0x4b9391(0x125)](_0x232947){var _0x186480=_0x4b9391;return this[_0x186480(0x166)]['add'](_0x232947),o['toDisposable'](()=>this['_sharedOperations'][_0x186480(0x16a)](_0x232947));}[_0x4b9391(0x13f)](_0x166562){var _0x363306=_0x4b9391;return this['_reporters']['add'](_0x166562),o[_0x363306(0xf4)](()=>this[_0x363306(0x17a)][_0x363306(0x16a)](_0x166562));}[_0x4b9391(0x132)](_0x4af167){var _0x415ae6=_0x4b9391;return this[_0x415ae6(0x166)]['has'](_0x4af167);}[_0x4b9391(0xc4)](_0x45c91d){var _0x481e65=_0x4b9391;return Array['from'](this['_reporters'])[_0x481e65(0x112)](_0x5d88d6=>_0x5d88d6(_0x45c91d));}}var H=Object[_0x4b9391(0xfa)],V=(_0x790871,_0x501ea1,_0x7169ba,_0x13ab5e)=>{var _0xe53eb=_0x4b9391;for(var _0x4fa71f=_0x13ab5e>0x1?void 0x0:_0x13ab5e?H(_0x501ea1,_0x7169ba):_0x501ea1,_0x1f763a=_0x790871[_0xe53eb(0xc6)]-0x1,_0x2770cb;_0x1f763a>=0x0;_0x1f763a--)(_0x2770cb=_0x790871[_0x1f763a])&&(_0x4fa71f=_0x2770cb(_0x4fa71f)||_0x4fa71f);return _0x4fa71f;},k=(_0x586fac,_0x5a5f77)=>(_0x1ad790,_0x1d3bb4)=>_0x5a5f77(_0x1ad790,_0x1d3bb4,_0x586fac);let E=class extends o[_0x4b9391(0xca)]{constructor(_0x22ac2b){var _0xaabd95=_0x4b9391;super(),this[_0xaabd95(0xf5)]=_0x22ac2b,this[_0xaabd95(0x13d)]();}['_init'](){var _0x194d77=_0x4b9391;[w[_0x194d77(0xaf)]['id'],w[_0x194d77(0x153)]['id'],C[_0x194d77(0xa9)]['id']][_0x194d77(0xbc)](_0x4f71a5=>{var _0x2949bb=_0x194d77;this['disposeWithMe'](this[_0x2949bb(0xf5)][_0x2949bb(0x125)](_0x4f71a5));});}};E=V([k(0x0,o[_0x4b9391(0x151)](O))],E);var u=function(){var _0x4f8ad8=_0x4b9391;return u=Object[_0x4f8ad8(0x175)]||function(_0xc04668){var _0x267b5f=_0x4f8ad8;for(var _0x1d4f14,_0x1f98bc=0x1,_0x5e8d81=arguments['length'];_0x1f98bc<_0x5e8d81;_0x1f98bc++){_0x1d4f14=arguments[_0x1f98bc];for(var _0x3ebd17 in _0x1d4f14)Object[_0x267b5f(0xb2)][_0x267b5f(0x16b)][_0x267b5f(0xb4)](_0x1d4f14,_0x3ebd17)&&(_0xc04668[_0x3ebd17]=_0x1d4f14[_0x3ebd17]);}return _0xc04668;},u[_0x4f8ad8(0xab)](this,arguments);},M=function(_0x44be7f,_0x4f6f73){var _0x47462a=_0x4b9391,_0x4cec8c={};for(var _0x3a6de3 in _0x44be7f)Object[_0x47462a(0xb2)][_0x47462a(0x16b)][_0x47462a(0xb4)](_0x44be7f,_0x3a6de3)&&_0x4f6f73[_0x47462a(0x113)](_0x3a6de3)<0x0&&(_0x4cec8c[_0x3a6de3]=_0x44be7f[_0x3a6de3]);if(_0x44be7f!=null&&typeof Object[_0x47462a(0xac)]==_0x47462a(0xb6)){for(var _0x437365=0x0,_0x3a6de3=Object[_0x47462a(0xac)](_0x44be7f);_0x437365<_0x3a6de3[_0x47462a(0xc6)];_0x437365++)_0x4f6f73[_0x47462a(0x113)](_0x3a6de3[_0x437365])<0x0&&Object['prototype'][_0x47462a(0x120)][_0x47462a(0xb4)](_0x44be7f,_0x3a6de3[_0x437365])&&(_0x4cec8c[_0x3a6de3[_0x437365]]=_0x44be7f[_0x3a6de3[_0x437365]]);}return _0x4cec8c;},j=f['forwardRef'](function(_0x13c492,_0x32dc41){var _0x163d0b=_0x4b9391,_0xe64e95=_0x13c492['icon'],_0x5b76e3=_0x13c492['id'],_0x83594a=_0x13c492[_0x163d0b(0x144)],_0x28396a=_0x13c492['extend'],_0x48cf25=M(_0x13c492,['icon','id','className',_0x163d0b(0xd2)]),_0x3e37ca=_0x163d0b(0xb3)[_0x163d0b(0xd5)](_0x5b76e3,'\x20')['concat'](_0x83594a||'')[_0x163d0b(0x117)](),_0x3fc55f=f['useRef']('_'['concat'](G()));return y(_0xe64e95,''[_0x163d0b(0xd5)](_0x5b76e3),{'defIds':_0xe64e95['defIds'],'idSuffix':_0x3fc55f[_0x163d0b(0x152)]},u({'ref':_0x32dc41,'className':_0x3e37ca},_0x48cf25),_0x28396a);});function y(_0x3dd907,_0x2e6f9e,_0x35450e,_0x214791,_0x493899){var _0x4a82e5=_0x4b9391;return f[_0x4a82e5(0x107)](_0x3dd907[_0x4a82e5(0xea)],u(u({'key':_0x2e6f9e},q(_0x3dd907,_0x35450e,_0x493899)),_0x214791),(W(_0x3dd907,_0x35450e)[_0x4a82e5(0x171)]||[])[_0x4a82e5(0x112)](function(_0x1138b9,_0x15acb5){var _0xc39a68=_0x4a82e5;return y(_0x1138b9,''[_0xc39a68(0xd5)](_0x2e6f9e,'-')['concat'](_0x3dd907[_0xc39a68(0xea)],'-')[_0xc39a68(0xd5)](_0x15acb5),_0x35450e,void 0x0,_0x493899);}));}function q(_0xb283b7,_0x57553a,_0x4c93e1){var _0x154935=_0x4b9391,_0x465ab0=u({},_0xb283b7[_0x154935(0x157)]);_0x4c93e1!=null&&_0x4c93e1[_0x154935(0xe2)]&&_0x465ab0['fill']===_0x154935(0xe2)&&(_0x465ab0[_0x154935(0x160)]=_0x4c93e1[_0x154935(0xe2)]),_0xb283b7[_0x154935(0xea)]===_0x154935(0xcf)&&_0x465ab0['id']&&(_0x465ab0['id']=_0x465ab0['id']+_0x57553a['idSuffix']),Object['entries'](_0x465ab0)[_0x154935(0xbc)](function(_0xab94c){var _0x382cdc=_0x154935,_0xe0490a=_0xab94c[0x0],_0x5560eb=_0xab94c[0x1];_0xe0490a===_0x382cdc(0xcf)&&typeof _0x5560eb==_0x382cdc(0x147)&&(_0x465ab0[_0xe0490a]=_0x5560eb['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x57553a['idSuffix'],')')));});var _0x1e7dfa=_0x57553a['defIds'];return!_0x1e7dfa||_0x1e7dfa[_0x154935(0xc6)]===0x0||(_0xb283b7['tag']===_0x154935(0x15a)&&_0x465ab0[_0x154935(0x15d)]&&(_0x465ab0[_0x154935(0x15d)]=_0x465ab0[_0x154935(0x15d)]+_0x57553a['idSuffix']),Object['entries'](_0x465ab0)[_0x154935(0xbc)](function(_0x22a6c4){var _0x580439=_0x154935,_0x52f4c7=_0x22a6c4[0x0],_0x112489=_0x22a6c4[0x1];typeof _0x112489==_0x580439(0x147)&&(_0x465ab0[_0x52f4c7]=_0x112489['replace'](/url\(#(.*)\)/,_0x580439(0x13c)['concat'](_0x57553a['idSuffix'],')')));})),_0x465ab0;}function W(_0x18d788,_0x25053e){var _0x1e7870=_0x4b9391,_0x2d36b2,_0x35166b=_0x25053e['defIds'];return!_0x35166b||_0x35166b[_0x1e7870(0xc6)]===0x0?_0x18d788:_0x18d788[_0x1e7870(0xea)]===_0x1e7870(0xdb)&&(!((_0x2d36b2=_0x18d788[_0x1e7870(0x171)])===null||_0x2d36b2===void 0x0)&&_0x2d36b2['length'])?u(u({},_0x18d788),{'children':_0x18d788[_0x1e7870(0x171)][_0x1e7870(0x112)](function(_0x5b50dc){var _0x2a3510=_0x1e7870;return typeof _0x5b50dc[_0x2a3510(0x157)]['id']=='string'&&_0x35166b&&_0x35166b[_0x2a3510(0x18d)](_0x5b50dc['attrs']['id'])?u(u({},_0x5b50dc),{'attrs':u(u({},_0x5b50dc[_0x2a3510(0x157)]),{'id':_0x5b50dc[_0x2a3510(0x157)]['id']+_0x25053e[_0x2a3510(0x159)]})}):_0x5b50dc;})}):_0x18d788;}function G(){var _0x49f2f2=_0x4b9391;return Math[_0x49f2f2(0x13a)]()[_0x49f2f2(0x18c)](0x24)[_0x49f2f2(0x12a)](0x2,0x8);}j[_0x4b9391(0x154)]=_0x4b9391(0xfb);var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x4b9391(0x192)},'children':[{'tag':_0x4b9391(0xdd),'attrs':{'fill':_0x4b9391(0x15f),'d':_0x4b9391(0xae)}},{'tag':_0x4b9391(0xdd),'attrs':{'fill':_0x4b9391(0x15f),'d':_0x4b9391(0x161),'fillRule':_0x4b9391(0x15e),'clipRule':_0x4b9391(0x15e)}}]},P=f[_0x4b9391(0xe5)](function(_0x176e78,_0x31536e){var _0x2d1d4d=_0x4b9391;return f[_0x2d1d4d(0x107)](j,Object[_0x2d1d4d(0x175)]({},_0x176e78,{'id':'live-share-icon','ref':_0x31536e,'icon':B}));});P[_0x4b9391(0x154)]=_0x4b9391(0x158);var Y=Object['getOwnPropertyDescriptor'],R=(_0x35d067,_0x48d44b,_0x58845a,_0x1c9c25)=>{var _0x93ecdc=_0x4b9391;for(var _0x1ad545=_0x1c9c25>0x1?void 0x0:_0x1c9c25?Y(_0x48d44b,_0x58845a):_0x48d44b,_0x40b3e2=_0x35d067[_0x93ecdc(0xc6)]-0x1,_0x294bf8;_0x40b3e2>=0x0;_0x40b3e2--)(_0x294bf8=_0x35d067[_0x40b3e2])&&(_0x1ad545=_0x294bf8(_0x1ad545)||_0x1ad545);return _0x1ad545;},S=(_0x226668,_0x1ade8c)=>(_0x471f5d,_0x473ada)=>_0x1ade8c(_0x471f5d,_0x473ada,_0x226668);exports['LiveShareController']=class extends o[_0x4b9391(0xc3)]{constructor(_0xafb121,_0x28be18,_0x213c05){var _0xfdd759=_0x4b9391;super(),v(this,_0xfdd759(0x13e),new Map()),(this[_0xfdd759(0x13b)]=_0xafb121,this[_0xfdd759(0x115)]=_0x28be18,this[_0xfdd759(0x135)]=_0x213c05,this[_0xfdd759(0x13d)]());}async[_0x4b9391(0x101)](_0x15bbcb){var _0x4c5d6b=_0x4b9391;return this[_0x4c5d6b(0x13e)][_0x4c5d6b(0x14d)](_0x15bbcb)||await this[_0x4c5d6b(0xdf)](_0x15bbcb),this['_entities'][_0x4c5d6b(0x164)](_0x15bbcb);}[_0x4b9391(0x13d)](){var _0x26339f=_0x4b9391;this[_0x26339f(0x13b)][_0x26339f(0x123)](o[_0x26339f(0x162)]['UNIVER_SHEET'])['pipe'](b['takeUntil'](this['dispose$']))[_0x26339f(0xc1)](async _0x2d6d26=>{var _0x27c3dd=_0x26339f;const _0x4eb9de=_0x2d6d26[_0x27c3dd(0x121)]();this[_0x27c3dd(0x13e)][_0x27c3dd(0x14d)](_0x4eb9de)||this[_0x27c3dd(0xdf)](_0x4eb9de);}),this[_0x26339f(0x13b)]['getTypeOfUnitDisposed$'](o[_0x26339f(0x162)][_0x26339f(0x12b)])['pipe'](b[_0x26339f(0xdc)](this[_0x26339f(0xfe)]))[_0x26339f(0xc1)](_0x2cbab5=>{var _0xc20c7=_0x26339f;const _0x42dc77=_0x2cbab5['getUnitId'](),_0x35e8ce=this[_0xc20c7(0x13e)][_0xc20c7(0x164)](_0x42dc77);_0x35e8ce==null||_0x35e8ce['dispose']();});}async['_startLiveShareCoordinator'](_0x1d1b23){var _0x2c0d54=_0x4b9391;const _0x384377=await this[_0x2c0d54(0x135)][_0x2c0d54(0x184)](_0x1d1b23),_0x5d397f=this[_0x2c0d54(0x115)]['createInstance'](exports['LiveShareCoordinator'],_0x1d1b23,_0x384377);return _0x5d397f[_0x2c0d54(0x15b)](),this[_0x2c0d54(0x13e)]['set'](_0x1d1b23,_0x5d397f),_0x5d397f;}},exports['LiveShareController']=R([S(0x0,o[_0x4b9391(0xe3)]),S(0x1,o[_0x4b9391(0x151)](o['Injector'])),S(0x2,o['Inject'](m[_0x4b9391(0x10b)]))],exports[_0x4b9391(0x111)]);var h=(_0x3cb492=>(_0x3cb492[_0x4b9391(0xc5)]=_0x4b9391(0x138),_0x3cb492[_0x4b9391(0xb9)]=_0x4b9391(0x122),_0x3cb492[_0x4b9391(0x180)]=_0x4b9391(0x127),_0x3cb492[_0x4b9391(0x119)]=_0x4b9391(0x14b),_0x3cb492[_0x4b9391(0xbe)]=_0x4b9391(0xf6),_0x3cb492))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x4b9391(0xc3)]{constructor(_0x4be9eb,_0x39cec7,_0xc23acb,_0x1f4a70,_0x499acb){var _0x46da17=_0x4b9391;super(),v(this,_0x46da17(0xf8),new D[(_0x46da17(0x137))](_0x46da17(0x122))),v(this,'status$',this[_0x46da17(0xf8)]['asObservable']()),v(this,_0x46da17(0x13d),!0x1),v(this,'_commandDisposable',null),v(this,_0x46da17(0x108),null),(this[_0x46da17(0x116)]=_0x4be9eb,this['_collabSession']=_0x39cec7,this[_0x46da17(0x178)]=_0xc23acb,this['_liveShareService']=_0x1f4a70,this['_commandService']=_0x499acb);}get['_status'](){var _0x5e54ef=_0x4b9391;return this[_0x5e54ef(0xf8)][_0x5e54ef(0xce)]();}[_0x4b9391(0x131)](){var _0x54b50d=_0x4b9391,_0x1af12d;(_0x1af12d=this['_commandDisposable'])==null||_0x1af12d[_0x54b50d(0x131)](),this[_0x54b50d(0xf8)][_0x54b50d(0x182)](_0x54b50d(0x122)),this[_0x54b50d(0xf8)][_0x54b50d(0x16f)]();}[_0x4b9391(0x15b)](){var _0x3e96b1=_0x4b9391;this['_init']||(this[_0x3e96b1(0x13d)]=!0x0,this[_0x3e96b1(0x16d)][_0x3e96b1(0x17c)][_0x3e96b1(0xed)](b[_0x3e96b1(0xdc)](this[_0x3e96b1(0xfe)]))[_0x3e96b1(0xc1)](_0x202f87=>{var _0x3e6edf=_0x3e96b1;switch(_0x202f87){case m[_0x3e6edf(0x187)][_0x3e6edf(0xc5)]:this[_0x3e6edf(0x103)]();break;case m['SessionStatus']['ONLINE']:this[_0x3e6edf(0x142)]();break;}}),this['_collabSession'][_0x3e96b1(0xe4)][_0x3e96b1(0xed)](b[_0x3e96b1(0xdc)](this['dispose$']))['subscribe'](_0x585711=>{var _0x1653f3=_0x3e96b1;const {eventID:_0x420064}=_0x585711;switch(_0x420064){case _[_0x1653f3(0x172)]['LIVESHARE_NEW_HOST']:this[_0x1653f3(0x100)](_0x585711);break;case _[_0x1653f3(0x172)][_0x1653f3(0x133)]:this[_0x1653f3(0x15c)](_0x585711);break;case _[_0x1653f3(0x172)][_0x1653f3(0x110)]:this[_0x1653f3(0xf7)]();break;case _[_0x1653f3(0x172)][_0x1653f3(0x10d)]:this[_0x1653f3(0x169)](_0x585711);break;}}));}[_0x4b9391(0x17e)](){var _0x90198a=_0x4b9391;this[_0x90198a(0x16d)][_0x90198a(0x179)]({'eventID':_[_0x90198a(0x172)][_0x90198a(0xe6)],'data':{'unitID':this[_0x90198a(0x116)],'userID':this[_0x90198a(0x16d)][_0x90198a(0xc9)]()}},this[_0x90198a(0x116)]);}[_0x4b9391(0x10f)](){var _0x54aeaf=_0x4b9391;this[_0x54aeaf(0x109)]===_0x54aeaf(0xf6)&&(this['_status$'][_0x54aeaf(0x182)](_0x54aeaf(0x122)),this[_0x54aeaf(0x16d)][_0x54aeaf(0x179)]({'eventID':_[_0x54aeaf(0x172)][_0x54aeaf(0x110)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x4b9391(0x14c)](){var _0x4fb8b3=_0x4b9391;this[_0x4fb8b3(0x109)]===_0x4fb8b3(0x14b)&&(this['_status$'][_0x4fb8b3(0x182)](_0x4fb8b3(0x127)),this['_startFollowing']());}['stopFollowing'](){var _0x56738d=_0x4b9391;this[_0x56738d(0x109)]==='following'&&this[_0x56738d(0xf2)]();}[_0x4b9391(0x100)](_0x1498f3){var _0x2cb752=_0x4b9391;const {presenter:_0x23e325}=_0x1498f3['data'],_0x266f4e=this['_collabSession'][_0x2cb752(0xc9)]();this['_presenter']=_0x23e325,_0x23e325===_0x266f4e?(this[_0x2cb752(0xf2)](),this['_startPresenting']()):this[_0x2cb752(0x109)]!==_0x2cb752(0x14b)&&(this[_0x2cb752(0xd7)](),this[_0x2cb752(0xbd)]());}[_0x4b9391(0x118)](){var _0x566210=_0x4b9391;const _0x231176={'eventID':_[_0x566210(0x172)][_0x566210(0x12d)]};this[_0x566210(0x16d)][_0x566210(0x179)](_0x231176,this[_0x566210(0x116)]);}[_0x4b9391(0xf7)](){var _0x4b71fe=_0x4b9391;this[_0x4b71fe(0x108)]=null,this[_0x4b71fe(0x109)]!==_0x4b71fe(0xf6)&&this['_beIdle']();}[_0x4b9391(0x169)](_0x1ebf34){var _0xf7ac3f=_0x4b9391;if(this[_0xf7ac3f(0x109)]===_0xf7ac3f(0x127)&&this['_presenter']===_0x1ebf34['data']['memberID']){const _0x2fed88=_[_0xf7ac3f(0x128)](_0x1ebf34[_0xf7ac3f(0xb5)])[_0xf7ac3f(0x10c)][_0xf7ac3f(0x18a)]()[_0xf7ac3f(0xbb)](_0x295c84=>_0x295c84['id']===C['InsertSheetMutation']['id']);if(_0x2fed88){const _0x4375db=_0x2fed88[_0xf7ac3f(0x11c)][_0xf7ac3f(0xd9)],_0x48a122=_0x2fed88[_0xf7ac3f(0x11c)][_0xf7ac3f(0x129)]['id'];setTimeout(()=>{var _0x54b1b5=_0xf7ac3f;this[_0x54b1b5(0xc0)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x4375db,'subUnitId':_0x48a122},{'fromCollab':!0x0});});}}}[_0x4b9391(0x186)](){var _0x331bc8=_0x4b9391;this[_0x331bc8(0xf8)][_0x331bc8(0x182)](_0x331bc8(0xf6));const _0x358a99=new Map(),_0x325eaf=this[_0x331bc8(0xd1)]=new o[(_0x331bc8(0xe8))]();_0x325eaf[_0x331bc8(0x18b)](o[_0x331bc8(0xf4)](()=>{var _0x6ff285=_0x331bc8;_0x358a99[_0x6ff285(0xbc)](_0x1cb187=>_0x1cb187[_0x6ff285(0x16f)]()),_0x358a99['clear']();})),_0x325eaf[_0x331bc8(0x18b)](this[_0x331bc8(0xc0)]['onCommandExecuted'](_0x3f42f7=>{var _0x49c7b1=_0x331bc8,_0x543c5f;if(_0x3f42f7[_0x49c7b1(0x12e)]!==o['CommandType'][_0x49c7b1(0x17d)]||!this['_liveShareService'][_0x49c7b1(0x132)](_0x3f42f7['id']))return;const {id:_0x4a9562}=_0x3f42f7;let _0x56899d;_0x358a99[_0x49c7b1(0x14d)](_0x4a9562)?_0x56899d=_0x358a99[_0x49c7b1(0x164)](_0x4a9562):(_0x56899d=new D[(_0x49c7b1(0x143))](),_0x358a99[_0x49c7b1(0xb8)](_0x4a9562,_0x56899d),_0x56899d[_0x49c7b1(0xed)](b[_0x49c7b1(0x114)]((_0x543c5f=this[_0x49c7b1(0x178)][_0x49c7b1(0xaa)](Z))!=null?_0x543c5f:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x49c7b1(0xc1)](_0x16433a=>{var _0x376408=_0x49c7b1;this[_0x376408(0x16d)][_0x376408(0x179)]({'eventID':_[_0x376408(0x172)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x376408(0x116)],'operations':{[_0x16433a['id']]:{'id':_0x16433a['id'],'params':JSON[_0x376408(0x174)](_0x16433a[_0x376408(0x11c)])}}}},this[_0x376408(0x116)]);})),_0x56899d[_0x49c7b1(0x182)](_0x3f42f7);})),this[_0x331bc8(0xf5)][_0x331bc8(0xc4)](this['_unitID'])[_0x331bc8(0xbc)](_0x2f8740=>this[_0x331bc8(0x16d)]['send']({'eventID':_[_0x331bc8(0x172)][_0x331bc8(0x133)],'data':{'unitID':this[_0x331bc8(0x116)],'operations':{[_0x2f8740['id']]:{'id':_0x2f8740['id'],'params':JSON[_0x331bc8(0x174)](_0x2f8740[_0x331bc8(0x11c)])}}}},this[_0x331bc8(0x116)]));}[_0x4b9391(0xd7)](){var _0x338a33=_0x4b9391,_0x5cb45d;this[_0x338a33(0xf8)][_0x338a33(0x182)]('idle'),(_0x5cb45d=this[_0x338a33(0xd1)])==null||_0x5cb45d[_0x338a33(0x131)](),this[_0x338a33(0xd1)]=null;}[_0x4b9391(0xbd)](){var _0x16ee1f=_0x4b9391,_0x4ee6ee;(_0x4ee6ee=this[_0x16ee1f(0xd1)])==null||_0x4ee6ee['dispose'](),this[_0x16ee1f(0xf8)]['next'](_0x16ee1f(0x127));}[_0x4b9391(0xb1)](){var _0x5a79d=_0x4b9391,_0x47e446;this['_status$']['next']('idle'),(_0x47e446=this[_0x5a79d(0xd1)])==null||_0x47e446[_0x5a79d(0x131)](),this[_0x5a79d(0xd1)]=null;}[_0x4b9391(0xf2)](){var _0x4be413=_0x4b9391,_0x174b22;this[_0x4be413(0xf8)][_0x4be413(0x182)]('not-following'),(_0x174b22=this[_0x4be413(0xd1)])==null||_0x174b22[_0x4be413(0x131)]();}[_0x4b9391(0x15c)](_0x1998f7){var _0x31c71e=_0x4b9391;if(['presenting',_0x31c71e(0x14b),_0x31c71e(0x138)][_0x31c71e(0x18d)](this[_0x31c71e(0x109)])||!_0x1998f7['data'][_0x31c71e(0xb7)]||_0x1998f7[_0x31c71e(0xb5)]['presenter']===this[_0x31c71e(0x16d)][_0x31c71e(0xc9)]())return;this[_0x31c71e(0x109)]===_0x31c71e(0x122)&&this[_0x31c71e(0xbd)]();const _0x172598=_0x1998f7['data']['operations'];Object[_0x31c71e(0x155)](_0x172598)[_0x31c71e(0xbc)](_0x4abffd=>{var _0x3773e4=_0x31c71e;this[_0x3773e4(0xc0)][_0x3773e4(0x104)](_0x4abffd['id'],_0x4abffd[_0x3773e4(0x11c)]?JSON['parse'](_0x4abffd[_0x3773e4(0x11c)]):null,{'fromCollab':!0x0});});}[_0x4b9391(0x103)](){var _0x5681c2=_0x4b9391,_0x2b1f51;this[_0x5681c2(0xf8)][_0x5681c2(0x182)](_0x5681c2(0x138)),(_0x2b1f51=this[_0x5681c2(0xd1)])==null||_0x2b1f51[_0x5681c2(0x131)]();}[_0x4b9391(0x142)](){var _0x4deab7=_0x4b9391;this[_0x4deab7(0xf8)]['next'](_0x4deab7(0x122)),this[_0x4deab7(0x118)]();}},exports[_0x4b9391(0x139)]=R([S(0x2,o[_0x4b9391(0x156)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x4b9391(0x17b)])],exports['LiveShareCoordinator']);function A(){var _0x9958d8=_0x4b9391;const _0x21e40a=p[_0x9958d8(0xc8)](exports[_0x9958d8(0x111)]),_0x39d46f=p['useDependency'](o[_0x9958d8(0xe3)]),_0x1ede5b=p[_0x9958d8(0xfd)](()=>_0x39d46f[_0x9958d8(0x146)](o['UniverInstanceType'][_0x9958d8(0x12b)]),void 0x0,!0x1,[]),[_0x3554db,_0x2f5a64]=f[_0x9958d8(0xee)](null),[_0x26e194,_0xafc2ad]=f[_0x9958d8(0xee)](h[_0x9958d8(0xb9)]),_0x1caf3d=f[_0x9958d8(0x134)](null);return f[_0x9958d8(0xb0)](()=>(_0x1ede5b&&_0x21e40a['getLiveShareCoordinator'](_0x1ede5b[_0x9958d8(0x121)]())[_0x9958d8(0x136)](_0x56daf7=>{var _0xa32036=_0x9958d8;_0x2f5a64(_0x56daf7),_0x1caf3d[_0xa32036(0x152)]=_0x56daf7['status$'][_0xa32036(0xc1)](_0x5ebcd5=>{_0xafc2ad(_0x5ebcd5);});}),()=>{var _0x3dd89d=_0x9958d8,_0x3d471a;(_0x3d471a=_0x1caf3d[_0x3dd89d(0x152)])==null||_0x3d471a[_0x3dd89d(0xe9)](),_0x1caf3d[_0x3dd89d(0x152)]=null;}),[_0x1ede5b,_0x21e40a]),_0x3554db?l[_0x9958d8(0x150)](g['Dropdown'],{'align':_0x9958d8(0xde),'disabled':_0x26e194===h[_0x9958d8(0xc5)],'className':_0x9958d8(0xff),'overlay':l[_0x9958d8(0x150)](K,{'status':_0x26e194,'coordinator':_0x3554db}),'children':l[_0x9958d8(0x150)]('button',{'className':g['clsx'](_0x9958d8(0xd8),{'univer-cursor-not-allowed':_0x26e194===h[_0x9958d8(0xc5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x26e194!==h['OFFLINE']}),'type':_0x9958d8(0x105),'children':l['jsx'](P,{'className':_0x9958d8(0x16e)})})}):null;}function K(_0x4221fb){var _0x27a514=_0x4b9391;const {status:_0x54abea,coordinator:_0x190132}=_0x4221fb;switch(_0x54abea){case h[_0x27a514(0xb9)]:return l[_0x27a514(0x150)](z,{'coordinator':_0x190132});case h['FOLLOWING']:return l[_0x27a514(0x150)](Q,{'coordinator':_0x190132});case h[_0x27a514(0x119)]:return l['jsx'](X,{'coordinator':_0x190132});case h[_0x27a514(0xc5)]:return l[_0x27a514(0x150)](te,{});case h[_0x27a514(0xbe)]:return l[_0x27a514(0x150)](ee,{'coordinator':_0x190132});default:return null;}}function z(_0x2e2699){var _0x28820d=_0x4b9391;const {coordinator:_0x936a35}=_0x2e2699;return l[_0x28820d(0x190)](l[_0x28820d(0xfc)],{'children':[l[_0x28820d(0x150)](_0x28820d(0xd0),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28820d(0xc2)}),l['jsx'](g[_0x28820d(0x11a)],{'onClick':()=>_0x936a35['tryStartPresenting'](),'children':_0x28820d(0x130)})]});}function Q(_0x2f3239){var _0x28dd32=_0x4b9391;const {coordinator:_0x5f41c6}=_0x2f3239;return l['jsxs'](l['Fragment'],{'children':[l[_0x28dd32(0x150)](_0x28dd32(0xd0),{'className':_0x28dd32(0x126),'children':_0x28dd32(0x191)}),l[_0x28dd32(0x150)](g['Button'],{'onClick':()=>_0x5f41c6[_0x28dd32(0x188)](),'children':_0x28dd32(0x10a)})]});}function X(_0xe75817){var _0x5e42ba=_0x4b9391;const {coordinator:_0x1e7719}=_0xe75817;return l[_0x5e42ba(0x190)](l[_0x5e42ba(0xfc)],{'children':[l[_0x5e42ba(0x150)](_0x5e42ba(0xd0),{'className':_0x5e42ba(0x126),'children':_0x5e42ba(0x11b)}),l[_0x5e42ba(0x150)](g[_0x5e42ba(0x11a)],{'variant':_0x5e42ba(0xcd),'onClick':()=>_0x1e7719['startFollowing'](),'children':_0x5e42ba(0xd3)})]});}function _0x17e1(){var _0x328d85=['colorChannel1','IUniverInstanceService','event$','forwardRef','LIVESHARE_REQUEST_HOST','1675473xIvAkM','DisposableCollection','unsubscribe','tag','touchDependencies','live-share.config','pipe','useState','9MBkPOi','IUIPartsService','HEADER_MENU','_stopFollowing','12606384FQEpyq','toDisposable','_liveShareService','presenting','_handleTerminate','_status$','symbol','getOwnPropertyDescriptor','UniverIcon','Fragment','useObservable','dispose$','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','_handleNewHost','getLiveShareCoordinator','UniverLiveSharePlugin','_handleOffline','executeCommand','button','7tdQpeQ','createElement','_presenter','_status','Stop\x20following','CollaborationSessionService','mutations','NEW_CHANGESETS','pluginName','stopPresenting','LIVESHARE_TERMINATE','LiveShareController','map','indexOf','throttleTime','_injector','_unitID','trim','_fetchOperations','NOT_FOLLOWING','Button','You\x27re\x20not\x20following\x20the\x20presenter','params','Module','Plugin','LiveShare','propertyIsEnumerable','getUnitId','idle','getTypeOfUnitAdded$','registerDependencies','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','following','parseProtocolChangeset','sheet','substring','UNIVER_SHEET','registerComponent','LIVESHARE_FETCH_OPERATIONS','type','DesktopLiveShareController','Start','dispose','shouldShareOperation','LIVESHARE_OPERATION','useRef','_collabSessionService','then','BehaviorSubject','offline','LiveShareCoordinator','random','_univerInstanceService','url(#$1','_init','_entities','registerInitialStateReporter','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/core','_handleOnline','Subject','className','_mountLiveShare','getCurrentTypeOfUnit$','string','UniverCollaborationClientPlugin','42770ydvneA','144570gmRIWq','not-following','startFollowing','has','_uiPartsService','disposeWithMe','jsx','Inject','current','SetScrollOperation','displayName','values','IConfigService','attrs','LiveShareIcon','idSuffix','use','init','_handleOperation','xlink:href','evenodd','currentColor','fill','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','UniverInstanceType','BuiltInUIPart','get','@univerjs/ui','_sharedOperations','merge','connectInjector','_handleNewChangeSets','delete','hasOwnProperty','8295726VqMXIT','_collabSession','univer-size-4','complete','LiveShareStatus','children','CollaborationEvent','react/jsx-runtime','stringify','assign','default','You\x27re\x20presenting\x20the\x20document','_configService','send','_reporters','ICommandService','sessionStatus$','OPERATION','tryStartPresenting','rxjs','FOLLOWING','@univerjs/sheets-ui','next','Injector','requireSession','Stop\x20presenting','_startPresenting','SessionStatus','stopFollowing','LiveShareService','reverse','add','toString','includes','mergeOverrideWithDependencies','5292NDcMFR','jsxs','You\x27re\x20following\x20the\x20presenter','1em','SetWorksheetActiveOperation','getConfig','apply','getOwnPropertySymbols','@univerjs/design','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','SetZoomRatioOperation','useEffect','_beIdle','prototype','univerjs-icon\x20univerjs-icon-','call','data','function','presenter','set','IDLE','44cXGKLZ','find','forEach','_startFollowing','PRESENTING','rxjs/operators','_commandService','subscribe','Present\x20this\x20document','RxDisposable','getInitialStates','OFFLINE','length','onStarting','useDependency','getMemberID','Disposable','_config','override','text','getValue','mask','div','_commandDisposable','extend','Start\x20following','react','concat','1628eBUnOX','_stopPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','unitId','6008418WoEqoV','defs','takeUntil','path','end','_startLiveShareCoordinator','toStringTag','onRendered'];_0x17e1=function(){return _0x328d85;};return _0x17e1();}function ee(_0x5990be){var _0x19d708=_0x4b9391;const {coordinator:_0xf2da95}=_0x5990be;return l['jsxs'](l[_0x19d708(0xfc)],{'children':[l[_0x19d708(0x150)](_0x19d708(0xd0),{'className':_0x19d708(0x126),'children':_0x19d708(0x177)}),l[_0x19d708(0x150)](g[_0x19d708(0x11a)],{'variant':_0x19d708(0x176),'onClick':()=>_0xf2da95[_0x19d708(0x10f)](),'children':_0x19d708(0x185)})]});}function te(){var _0x3924d8=_0x4b9391;return l[_0x3924d8(0x150)](l[_0x3924d8(0xfc)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x4b9391(0xfa)],ne=(_0x157746,_0x5064d5,_0x38bd8c,_0x1bcdb0)=>{var _0x243c92=_0x4b9391;for(var _0x5c2475=_0x1bcdb0>0x1?void 0x0:_0x1bcdb0?ie(_0x5064d5,_0x38bd8c):_0x5064d5,_0x5d49f7=_0x157746[_0x243c92(0xc6)]-0x1,_0x5bf8c6;_0x5d49f7>=0x0;_0x5d49f7--)(_0x5bf8c6=_0x157746[_0x5d49f7])&&(_0x5c2475=_0x5bf8c6(_0x5c2475)||_0x5c2475);return _0x5c2475;},L=(_0xc3f961,_0x21bf3d)=>(_0x5f50c1,_0x4d2bf8)=>_0x21bf3d(_0x5f50c1,_0x4d2bf8,_0xc3f961);exports[_0x4b9391(0x12f)]=class extends o[_0x4b9391(0xca)]{constructor(_0x2e0bec,_0x338168){var _0x38619a=_0x4b9391;super(),this[_0x38619a(0x115)]=_0x2e0bec,this['_uiPartsService']=_0x338168,this[_0x38619a(0x145)]();}['_mountLiveShare'](){var _0x191de8=_0x4b9391;this[_0x191de8(0x14f)](this[_0x191de8(0x14e)][_0x191de8(0x12c)](p[_0x191de8(0x163)][_0x191de8(0xf1)],()=>p[_0x191de8(0x168)](A,this[_0x191de8(0x115)])));}},exports[_0x4b9391(0x12f)]=ne([L(0x0,o[_0x4b9391(0x151)](o[_0x4b9391(0x183)])),L(0x1,p[_0x4b9391(0xf0)])],exports[_0x4b9391(0x12f)]);var re=Object['defineProperty'],se=Object[_0x4b9391(0xfa)],oe=(_0x1673ac,_0x19a34b,_0x5275cf)=>_0x19a34b in _0x1673ac?re(_0x1673ac,_0x19a34b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5275cf}):_0x1673ac[_0x19a34b]=_0x5275cf,ae=(_0x14947d,_0x8c5b93,_0x5f0ee2,_0x179f66)=>{var _0x1149ea=_0x4b9391;for(var _0x16bac3=_0x179f66>0x1?void 0x0:_0x179f66?se(_0x8c5b93,_0x5f0ee2):_0x8c5b93,_0x1b9b8f=_0x14947d[_0x1149ea(0xc6)]-0x1,_0x49e8c2;_0x1b9b8f>=0x0;_0x1b9b8f--)(_0x49e8c2=_0x14947d[_0x1b9b8f])&&(_0x16bac3=_0x49e8c2(_0x16bac3)||_0x16bac3);return _0x16bac3;},N=(_0x4e3de2,_0x2e61fe)=>(_0x637a39,_0x5910e6)=>_0x2e61fe(_0x637a39,_0x5910e6,_0x4e3de2),T=(_0x12a563,_0x23a540,_0x19e120)=>oe(_0x12a563,typeof _0x23a540!=_0x4b9391(0xf9)?_0x23a540+'':_0x23a540,_0x19e120);const le=_0x4b9391(0x140);exports[_0x4b9391(0x102)]=class extends o[_0x4b9391(0x11e)]{constructor(_0x430069=x,_0x3ac7a8,_0x58e0e6){var _0x4591b1=_0x4b9391;super(),this[_0x4591b1(0xcb)]=_0x430069,this[_0x4591b1(0x115)]=_0x3ac7a8,this[_0x4591b1(0x178)]=_0x58e0e6;const {..._0x55c354}=o[_0x4591b1(0x167)]({},x,this['_config']);this[_0x4591b1(0x178)]['setConfig']($,_0x55c354);}[_0x4b9391(0xc7)](){var _0x442166=_0x4b9391;o[_0x442166(0x124)](this['_injector'],o[_0x442166(0x18e)]([[O],[exports['LiveShareController']],[E],[exports[_0x442166(0x12f)]]],this[_0x442166(0xcb)][_0x442166(0xcc)])),o[_0x442166(0xeb)](this[_0x442166(0x115)],[[E]]);}[_0x4b9391(0xe1)](){var _0x5af5ff=_0x4b9391;o[_0x5af5ff(0xeb)](this['_injector'],[[exports[_0x5af5ff(0x12f)]]]);}},T(exports[_0x4b9391(0x102)],_0x4b9391(0x12e),o[_0x4b9391(0x162)]['UNIVER_UNKNOWN']),T(exports[_0x4b9391(0x102)],_0x4b9391(0x10e),le),exports[_0x4b9391(0x102)]=ae([o['DependentOn'](m[_0x4b9391(0x148)]),N(0x1,o['Inject'](o[_0x4b9391(0x183)])),N(0x2,o[_0x4b9391(0x156)])],exports[_0x4b9391(0x102)]),exports[_0x4b9391(0x11f)]=A,exports[_0x4b9391(0x189)]=O,exports[_0x4b9391(0x170)]=h;
|
|
1
|
+
'use strict';var _0x42d381=_0x38bd;(function(_0x3d34c1,_0x35e7cd){var _0x2fb49f=_0x38bd,_0x368c3=_0x3d34c1();while(!![]){try{var _0x592146=parseInt(_0x2fb49f(0x8f))/0x1*(-parseInt(_0x2fb49f(0x90))/0x2)+-parseInt(_0x2fb49f(0xe0))/0x3*(parseInt(_0x2fb49f(0xf0))/0x4)+-parseInt(_0x2fb49f(0x96))/0x5+-parseInt(_0x2fb49f(0xa7))/0x6*(-parseInt(_0x2fb49f(0x127))/0x7)+parseInt(_0x2fb49f(0x121))/0x8*(-parseInt(_0x2fb49f(0x129))/0x9)+-parseInt(_0x2fb49f(0x131))/0xa*(parseInt(_0x2fb49f(0x9f))/0xb)+-parseInt(_0x2fb49f(0xcd))/0xc*(-parseInt(_0x2fb49f(0x130))/0xd);if(_0x592146===_0x35e7cd)break;else _0x368c3['push'](_0x368c3['shift']());}catch(_0x401fa8){_0x368c3['push'](_0x368c3['shift']());}}}(_0x3620,0x2a817));var U=Object[_0x42d381(0x8a)],F=(_0x57f74e,_0x3e1ac6,_0x597541)=>_0x3e1ac6 in _0x57f74e?U(_0x57f74e,_0x3e1ac6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x597541}):_0x57f74e[_0x3e1ac6]=_0x597541,v=(_0xa37be8,_0x1af1da,_0x1be1ca)=>F(_0xa37be8,typeof _0x1af1da!='symbol'?_0x1af1da+'':_0x1af1da,_0x1be1ca);Object[_0x42d381(0x8a)](exports,Symbol[_0x42d381(0x111)],{'value':'Module'});const m=require(_0x42d381(0x10f)),o=require('@univerjs/core'),C=require(_0x42d381(0xe6)),w=require(_0x42d381(0xbe)),p=require(_0x42d381(0x120)),l=require(_0x42d381(0x97)),g=require('@univerjs/design'),f=require('react'),_=require(_0x42d381(0x7b)),D=require('rxjs'),b=require('rxjs/operators'),$='live-share.config',x={};class O extends o[_0x42d381(0x85)]{constructor(){var _0x3f3d18=_0x42d381;super(...arguments),v(this,_0x3f3d18(0x89),new Set()),v(this,_0x3f3d18(0x7f),new Set());}[_0x42d381(0xc9)](_0x1ff633){var _0x421a93=_0x42d381;return this['_sharedOperations']['add'](_0x1ff633),o['toDisposable'](()=>this[_0x421a93(0x89)]['delete'](_0x1ff633));}[_0x42d381(0xe7)](_0xe2c8b9){var _0x26f361=_0x42d381;return this[_0x26f361(0x7f)]['add'](_0xe2c8b9),o[_0x26f361(0x106)](()=>this[_0x26f361(0x7f)][_0x26f361(0xb8)](_0xe2c8b9));}[_0x42d381(0xed)](_0x5594ff){var _0x4a7a83=_0x42d381;return this[_0x4a7a83(0x89)][_0x4a7a83(0xcf)](_0x5594ff);}['getInitialStates'](_0x359480){var _0x535aa4=_0x42d381;return Array[_0x535aa4(0xb1)](this[_0x535aa4(0x7f)])[_0x535aa4(0x12a)](_0x404a40=>_0x404a40(_0x359480));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x42041f,_0x2d1640,_0x2f4035,_0x3447c3)=>{var _0x4ee2b7=_0x42d381;for(var _0x5f70f3=_0x3447c3>0x1?void 0x0:_0x3447c3?H(_0x2d1640,_0x2f4035):_0x2d1640,_0x4b4955=_0x42041f[_0x4ee2b7(0xfd)]-0x1,_0xce97f1;_0x4b4955>=0x0;_0x4b4955--)(_0xce97f1=_0x42041f[_0x4b4955])&&(_0x5f70f3=_0xce97f1(_0x5f70f3)||_0x5f70f3);return _0x5f70f3;},k=(_0x1ea4d9,_0x23a5bc)=>(_0x1134f3,_0x4f9ab2)=>_0x23a5bc(_0x1134f3,_0x4f9ab2,_0x1ea4d9);let E=class extends o[_0x42d381(0x85)]{constructor(_0x349413){var _0x43af06=_0x42d381;super(),this[_0x43af06(0xe9)]=_0x349413,this[_0x43af06(0x110)]();}[_0x42d381(0x110)](){var _0x54871b=_0x42d381;[w[_0x54871b(0xc5)]['id'],w['SetScrollOperation']['id'],C[_0x54871b(0x9b)]['id']]['forEach'](_0x52e583=>{var _0x2b2e5d=_0x54871b;this[_0x2b2e5d(0x10a)](this[_0x2b2e5d(0xe9)]['registerSharedOperation'](_0x52e583));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x250824=_0x42d381;return u=Object[_0x250824(0xbd)]||function(_0x6a3af6){var _0x6ff97c=_0x250824;for(var _0xb9fea,_0x3f970f=0x1,_0x29a35e=arguments[_0x6ff97c(0xfd)];_0x3f970f<_0x29a35e;_0x3f970f++){_0xb9fea=arguments[_0x3f970f];for(var _0x13c452 in _0xb9fea)Object[_0x6ff97c(0xa3)][_0x6ff97c(0xa1)][_0x6ff97c(0x12c)](_0xb9fea,_0x13c452)&&(_0x6a3af6[_0x13c452]=_0xb9fea[_0x13c452]);}return _0x6a3af6;},u[_0x250824(0x91)](this,arguments);},M=function(_0x3d4290,_0x4cef32){var _0xde4100=_0x42d381,_0x13f002={};for(var _0x584edc in _0x3d4290)Object[_0xde4100(0xa3)][_0xde4100(0xa1)][_0xde4100(0x12c)](_0x3d4290,_0x584edc)&&_0x4cef32[_0xde4100(0x78)](_0x584edc)<0x0&&(_0x13f002[_0x584edc]=_0x3d4290[_0x584edc]);if(_0x3d4290!=null&&typeof Object[_0xde4100(0x11d)]==_0xde4100(0x7e)){for(var _0x5d3343=0x0,_0x584edc=Object[_0xde4100(0x11d)](_0x3d4290);_0x5d3343<_0x584edc[_0xde4100(0xfd)];_0x5d3343++)_0x4cef32[_0xde4100(0x78)](_0x584edc[_0x5d3343])<0x0&&Object[_0xde4100(0xa3)][_0xde4100(0x12e)]['call'](_0x3d4290,_0x584edc[_0x5d3343])&&(_0x13f002[_0x584edc[_0x5d3343]]=_0x3d4290[_0x584edc[_0x5d3343]]);}return _0x13f002;},j=f[_0x42d381(0xb9)](function(_0x5899a9,_0x3e8cab){var _0x243541=_0x42d381,_0x3cbfaa=_0x5899a9[_0x243541(0xdb)],_0x1beee3=_0x5899a9['id'],_0xea9bf2=_0x5899a9['className'],_0x9e0ec4=_0x5899a9[_0x243541(0x10b)],_0x42cdfc=M(_0x5899a9,[_0x243541(0xdb),'id','className',_0x243541(0x10b)]),_0x2d8aee=_0x243541(0x11a)['concat'](_0x1beee3,'\x20')[_0x243541(0xfa)](_0xea9bf2||'')[_0x243541(0x92)](),_0x203ee9=f['useRef']('_'[_0x243541(0xfa)](G()));return y(_0x3cbfaa,''['concat'](_0x1beee3),{'defIds':_0x3cbfaa['defIds'],'idSuffix':_0x203ee9['current']},u({'ref':_0x3e8cab,'className':_0x2d8aee},_0x42cdfc),_0x9e0ec4);});function y(_0x4f1b81,_0x279f22,_0x1c2ce1,_0x4fe322,_0x3e91cd){var _0x39639c=_0x42d381;return f['createElement'](_0x4f1b81[_0x39639c(0xe1)],u(u({'key':_0x279f22},q(_0x4f1b81,_0x1c2ce1,_0x3e91cd)),_0x4fe322),(W(_0x4f1b81,_0x1c2ce1)[_0x39639c(0xab)]||[])['map'](function(_0xdd08cc,_0x41b0c4){var _0x50c0e1=_0x39639c;return y(_0xdd08cc,''[_0x50c0e1(0xfa)](_0x279f22,'-')[_0x50c0e1(0xfa)](_0x4f1b81[_0x50c0e1(0xe1)],'-')['concat'](_0x41b0c4),_0x1c2ce1,void 0x0,_0x3e91cd);}));}function q(_0x5476f2,_0x3fcee4,_0x3fced0){var _0x3ba53d=_0x42d381,_0x1fb71b=u({},_0x5476f2[_0x3ba53d(0x119)]);_0x3fced0!=null&&_0x3fced0['colorChannel1']&&_0x1fb71b[_0x3ba53d(0x105)]===_0x3ba53d(0xb3)&&(_0x1fb71b[_0x3ba53d(0x105)]=_0x3fced0[_0x3ba53d(0xb3)]),_0x5476f2['tag']===_0x3ba53d(0x13b)&&_0x1fb71b['id']&&(_0x1fb71b['id']=_0x1fb71b['id']+_0x3fcee4[_0x3ba53d(0xc2)]),Object[_0x3ba53d(0x8e)](_0x1fb71b)[_0x3ba53d(0xaa)](function(_0x5b4150){var _0x25b5d6=_0x3ba53d,_0x2da051=_0x5b4150[0x0],_0x3f00ed=_0x5b4150[0x1];_0x2da051==='mask'&&typeof _0x3f00ed==_0x25b5d6(0x144)&&(_0x1fb71b[_0x2da051]=_0x3f00ed['replace'](/url\(#(.*)\)/,_0x25b5d6(0xd1)[_0x25b5d6(0xfa)](_0x3fcee4['idSuffix'],')')));});var _0x6fdac7=_0x3fcee4[_0x3ba53d(0xb0)];return!_0x6fdac7||_0x6fdac7[_0x3ba53d(0xfd)]===0x0||(_0x5476f2[_0x3ba53d(0xe1)]==='use'&&_0x1fb71b['xlink:href']&&(_0x1fb71b[_0x3ba53d(0x98)]=_0x1fb71b[_0x3ba53d(0x98)]+_0x3fcee4['idSuffix']),Object['entries'](_0x1fb71b)[_0x3ba53d(0xaa)](function(_0x2d64ae){var _0x1680fa=_0x3ba53d,_0x1f2afb=_0x2d64ae[0x0],_0xfe155a=_0x2d64ae[0x1];typeof _0xfe155a==_0x1680fa(0x144)&&(_0x1fb71b[_0x1f2afb]=_0xfe155a[_0x1680fa(0x141)](/url\(#(.*)\)/,_0x1680fa(0xd1)[_0x1680fa(0xfa)](_0x3fcee4[_0x1680fa(0xc2)],')')));})),_0x1fb71b;}function W(_0x5e4476,_0x2291af){var _0x110cca=_0x42d381,_0x50a613,_0x3b9be1=_0x2291af[_0x110cca(0xb0)];return!_0x3b9be1||_0x3b9be1[_0x110cca(0xfd)]===0x0?_0x5e4476:_0x5e4476[_0x110cca(0xe1)]==='defs'&&(!((_0x50a613=_0x5e4476[_0x110cca(0xab)])===null||_0x50a613===void 0x0)&&_0x50a613['length'])?u(u({},_0x5e4476),{'children':_0x5e4476[_0x110cca(0xab)][_0x110cca(0x12a)](function(_0x52268d){var _0x21edf2=_0x110cca;return typeof _0x52268d[_0x21edf2(0x119)]['id']==_0x21edf2(0x144)&&_0x3b9be1&&_0x3b9be1[_0x21edf2(0x82)](_0x52268d[_0x21edf2(0x119)]['id'])?u(u({},_0x52268d),{'attrs':u(u({},_0x52268d[_0x21edf2(0x119)]),{'id':_0x52268d['attrs']['id']+_0x2291af[_0x21edf2(0xc2)]})}):_0x52268d;})}):_0x5e4476;}function _0x3620(){var _0x18362a=['OFFLINE','7973329ovMTBS','69670hqwrPU','presenting','memberID','SAME_OPERATION_SHARE_INTERVAL','SessionStatus','OPERATION','_presenter','useState','not-following','You\x27re\x20not\x20following\x20the\x20presenter','mask','stopPresenting','useDependency','_mountLiveShare','values','_univerInstanceService','replace','useEffect','next','string','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','event$','clear','connectInjector','current','LIVESHARE_FETCH_OPERATIONS','onStarting','parseProtocolChangeset','takeUntil','LiveShareController','LiveShareService','dispose','throttleTime','InsertSheetMutation','_startFollowing','complete','UniverInstanceType','DesktopLiveShareController','onCommandExecuted','stringify','touchDependencies','HEADER_MENU','indexOf','svg','status$','@univerjs-pro/collaboration','You\x27are\x20offline.','_injector','function','_reporters','_handleNewHost','LIVESHARE_NEW_HOST','includes','_entities','Button','Disposable','IDLE','dispose$','_collabSessionService','_sharedOperations','defineProperty','init','jsxs','div','entries','1xSTbkI','271094ezhFZJ','apply','trim','DisposableCollection','LIVESHARE_OPERATION','FOLLOWING','717235iXGvLI','react/jsx-runtime','xlink:href','merge','_status$','SetWorksheetActiveOperation','NOT_FOLLOWING','send','_status','330WnSymT','get','hasOwnProperty','registerDependencies','prototype','_commandDisposable','univer-size-4','Fragment','6CqblGN','offline','LiveShare','forEach','children','0\x200\x2017\x2017','1em','pipe','jsx','defIds','from','substring','colorChannel1','text','_startPresenting','Present\x20this\x20document','Plugin','delete','forwardRef','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','getOwnPropertyDescriptor','assign','@univerjs/sheets-ui','evenodd','_collabSession','ICommandService','idSuffix','_stopFollowing','clsx','SetZoomRatioOperation','UNIVER_UNKNOWN','Inject','random','registerSharedOperation','getMemberID','You\x27re\x20following\x20the\x20presenter','data','12xuFauX','LiveShareStatus','has','path','url(#$1','IUIPartsService','toString','CollaborationSessionService','Stop\x20following','_uiPartsService','IConfigService','UniverLiveSharePlugin','LiveShareCoordinator','tryStartPresenting','icon','_handleNewChangeSets','executeCommand','_config','live-share-icon','550236vZbaig','tag','_configService','displayName','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','_handleOnline','@univerjs/sheets','registerInitialStateReporter','_startLiveShareCoordinator','_liveShareService','mergeOverrideWithDependencies','set','_unitID','shouldShareOperation','getTypeOfUnitAdded$','subscribe','4nIhEJB','http://www.w3.org/2000/svg','Subject','NEW_CHANGESETS','LIVESHARE_TERMINATE','find','onRendered','_handleTerminate','UNIVER_LIVE_SHARE_PLUGIN','button','concat','parse','getTypeOfUnitDisposed$','length','currentColor','useRef','symbol','_handleOperation','sessionStatus$','RxDisposable','unsubscribe','fill','toDisposable','getUnitId','end','_beIdle','disposeWithMe','extend','Start','univer-mb-3\x20univer-w-full\x20univer-text-sm','type','@univerjs-pro/collaboration-client','_init','toStringTag','useObservable','Injector','operations','_commandService','params','PRESENTING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','attrs','univerjs-icon\x20univerjs-icon-','_handleOffline','UNIVER_SHEET','getOwnPropertySymbols','_fetchOperations','registerComponent','@univerjs/ui','29336BrVLFH','stopFollowing','following','idle','startFollowing','createElement','1881992OCOqBi','add','90AzbgPi','map','getConfig','call','default','propertyIsEnumerable'];_0x3620=function(){return _0x18362a;};return _0x3620();}function G(){var _0x1b3c13=_0x42d381;return Math[_0x1b3c13(0xc8)]()[_0x1b3c13(0xd3)](0x24)[_0x1b3c13(0xb2)](0x2,0x8);}j[_0x42d381(0xe3)]='UniverIcon';var B={'tag':_0x42d381(0x79),'attrs':{'xmlns':_0x42d381(0xf1),'fill':'none','viewBox':_0x42d381(0xac),'width':_0x42d381(0xad),'height':'1em'},'children':[{'tag':_0x42d381(0xd0),'attrs':{'fill':_0x42d381(0xfe),'d':_0x42d381(0xbb)}},{'tag':'path','attrs':{'fill':_0x42d381(0xfe),'d':_0x42d381(0x145),'fillRule':_0x42d381(0xbf),'clipRule':_0x42d381(0xbf)}}]},P=f[_0x42d381(0xb9)](function(_0x54cb25,_0x52b0fa){var _0x7a8cae=_0x42d381;return f[_0x7a8cae(0x126)](j,Object[_0x7a8cae(0xbd)]({},_0x54cb25,{'id':_0x7a8cae(0xdf),'ref':_0x52b0fa,'icon':B}));});P[_0x42d381(0xe3)]='LiveShareIcon';var Y=Object[_0x42d381(0xbc)],R=(_0xeb10f4,_0x3d928f,_0x9e7d67,_0x5013f2)=>{var _0x4a0f1b=_0x42d381;for(var _0xaadf50=_0x5013f2>0x1?void 0x0:_0x5013f2?Y(_0x3d928f,_0x9e7d67):_0x3d928f,_0x256cf5=_0xeb10f4[_0x4a0f1b(0xfd)]-0x1,_0x4aa60b;_0x256cf5>=0x0;_0x256cf5--)(_0x4aa60b=_0xeb10f4[_0x256cf5])&&(_0xaadf50=_0x4aa60b(_0xaadf50)||_0xaadf50);return _0xaadf50;},S=(_0x56c860,_0xccfa7e)=>(_0x2f7020,_0x29bd3a)=>_0xccfa7e(_0x2f7020,_0x29bd3a,_0x56c860);exports[_0x42d381(0x6b)]=class extends o['RxDisposable']{constructor(_0x38c2f5,_0x4707df,_0xba58b){var _0x4d2267=_0x42d381;super(),v(this,_0x4d2267(0x83),new Map()),(this[_0x4d2267(0x140)]=_0x38c2f5,this[_0x4d2267(0x7d)]=_0x4707df,this[_0x4d2267(0x88)]=_0xba58b,this[_0x4d2267(0x110)]());}async['getLiveShareCoordinator'](_0x4aa561){var _0x559b7c=_0x42d381;return this['_entities'][_0x559b7c(0xcf)](_0x4aa561)||await this[_0x559b7c(0xe8)](_0x4aa561),this[_0x559b7c(0x83)][_0x559b7c(0xa0)](_0x4aa561);}['_init'](){var _0x56ec1d=_0x42d381;this[_0x56ec1d(0x140)][_0x56ec1d(0xee)](o[_0x56ec1d(0x72)][_0x56ec1d(0x11c)])[_0x56ec1d(0xae)](b[_0x56ec1d(0x6a)](this['dispose$']))[_0x56ec1d(0xef)](async _0x37aaf0=>{var _0x1fd8f5=_0x56ec1d;const _0x5bd2e4=_0x37aaf0[_0x1fd8f5(0x107)]();this['_entities'][_0x1fd8f5(0xcf)](_0x5bd2e4)||this['_startLiveShareCoordinator'](_0x5bd2e4);}),this['_univerInstanceService'][_0x56ec1d(0xfc)](o[_0x56ec1d(0x72)][_0x56ec1d(0x11c)])[_0x56ec1d(0xae)](b[_0x56ec1d(0x6a)](this['dispose$']))['subscribe'](_0x5ec2af=>{var _0x2d7cd8=_0x56ec1d;const _0x50f8e1=_0x5ec2af['getUnitId'](),_0x10cec7=this[_0x2d7cd8(0x83)][_0x2d7cd8(0xa0)](_0x50f8e1);_0x10cec7==null||_0x10cec7[_0x2d7cd8(0x6d)]();});}async[_0x42d381(0xe8)](_0x117273){var _0x5f3d4e=_0x42d381;const _0x1c7f3a=await this[_0x5f3d4e(0x88)]['requireSession'](_0x117273),_0x2792dd=this['_injector']['createInstance'](exports[_0x5f3d4e(0xd9)],_0x117273,_0x1c7f3a);return _0x2792dd[_0x5f3d4e(0x8b)](),this['_entities'][_0x5f3d4e(0xeb)](_0x117273,_0x2792dd),_0x2792dd;}},exports[_0x42d381(0x6b)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x42d381(0xc7)](o[_0x42d381(0x113)])),S(0x2,o[_0x42d381(0xc7)](m[_0x42d381(0xd4)]))],exports[_0x42d381(0x6b)]);var h=(_0x1acf6e=>(_0x1acf6e['OFFLINE']=_0x42d381(0xa8),_0x1acf6e[_0x42d381(0x86)]='idle',_0x1acf6e[_0x42d381(0x95)]=_0x42d381(0x123),_0x1acf6e[_0x42d381(0x9c)]=_0x42d381(0x139),_0x1acf6e[_0x42d381(0x117)]=_0x42d381(0x132),_0x1acf6e))(h||{});const Z=_0x42d381(0x134),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x42d381(0x103)]{constructor(_0x4c88d8,_0x216504,_0x3f7bd2,_0x79f1b,_0x29d023){var _0x208f3f=_0x42d381;super(),v(this,_0x208f3f(0x9a),new D['BehaviorSubject']('idle')),v(this,_0x208f3f(0x7a),this[_0x208f3f(0x9a)]['asObservable']()),v(this,_0x208f3f(0x110),!0x1),v(this,_0x208f3f(0xa4),null),v(this,_0x208f3f(0x137),null),(this['_unitID']=_0x4c88d8,this[_0x208f3f(0xc0)]=_0x216504,this[_0x208f3f(0xe2)]=_0x3f7bd2,this[_0x208f3f(0xe9)]=_0x79f1b,this[_0x208f3f(0x115)]=_0x29d023);}get['_status'](){var _0x47cccd=_0x42d381;return this[_0x47cccd(0x9a)]['getValue']();}[_0x42d381(0x6d)](){var _0x1d361d=_0x42d381,_0x455304;(_0x455304=this[_0x1d361d(0xa4)])==null||_0x455304[_0x1d361d(0x6d)](),this[_0x1d361d(0x9a)][_0x1d361d(0x143)](_0x1d361d(0x124)),this[_0x1d361d(0x9a)][_0x1d361d(0x71)]();}[_0x42d381(0x8b)](){var _0x29fd3f=_0x42d381;this['_init']||(this[_0x29fd3f(0x110)]=!0x0,this['_collabSession'][_0x29fd3f(0x102)][_0x29fd3f(0xae)](b[_0x29fd3f(0x6a)](this[_0x29fd3f(0x87)]))[_0x29fd3f(0xef)](_0xd899ec=>{var _0x1e92f7=_0x29fd3f;switch(_0xd899ec){case m[_0x1e92f7(0x135)][_0x1e92f7(0x12f)]:this[_0x1e92f7(0x11b)]();break;case m[_0x1e92f7(0x135)]['ONLINE']:this[_0x1e92f7(0xe5)]();break;}}),this[_0x29fd3f(0xc0)][_0x29fd3f(0x146)][_0x29fd3f(0xae)](b[_0x29fd3f(0x6a)](this[_0x29fd3f(0x87)]))[_0x29fd3f(0xef)](_0xcdba61=>{var _0x3c116e=_0x29fd3f;const {eventID:_0x22fe56}=_0xcdba61;switch(_0x22fe56){case _[_0x3c116e(0xba)][_0x3c116e(0x81)]:this[_0x3c116e(0x80)](_0xcdba61);break;case _[_0x3c116e(0xba)][_0x3c116e(0x94)]:this[_0x3c116e(0x101)](_0xcdba61);break;case _[_0x3c116e(0xba)][_0x3c116e(0xf4)]:this[_0x3c116e(0xf7)]();break;case _[_0x3c116e(0xba)][_0x3c116e(0xf3)]:this[_0x3c116e(0xdc)](_0xcdba61);break;}}));}[_0x42d381(0xda)](){var _0x2a1a16=_0x42d381;this[_0x2a1a16(0xc0)][_0x2a1a16(0x9d)]({'eventID':_[_0x2a1a16(0xba)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x2a1a16(0xec)],'userID':this[_0x2a1a16(0xc0)][_0x2a1a16(0xca)]()}},this[_0x2a1a16(0xec)]);}['stopPresenting'](){var _0x3fb999=_0x42d381;this[_0x3fb999(0x9e)]===_0x3fb999(0x132)&&(this[_0x3fb999(0x9a)][_0x3fb999(0x143)](_0x3fb999(0x124)),this[_0x3fb999(0xc0)][_0x3fb999(0x9d)]({'eventID':_[_0x3fb999(0xba)][_0x3fb999(0xf4)],'data':{'unitID':this[_0x3fb999(0xec)]}},this[_0x3fb999(0xec)]));}[_0x42d381(0x125)](){var _0xdfdb2d=_0x42d381;this[_0xdfdb2d(0x9e)]==='not-following'&&(this[_0xdfdb2d(0x9a)][_0xdfdb2d(0x143)]('following'),this[_0xdfdb2d(0x70)]());}[_0x42d381(0x122)](){var _0x255c07=_0x42d381;this[_0x255c07(0x9e)]===_0x255c07(0x123)&&this['_stopFollowing']();}[_0x42d381(0x80)](_0x85604a){var _0x2546b4=_0x42d381;const {presenter:_0x195c61}=_0x85604a[_0x2546b4(0xcc)],_0xd68481=this[_0x2546b4(0xc0)]['getMemberID']();this['_presenter']=_0x195c61,_0x195c61===_0xd68481?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x2546b4(0x9e)]!=='not-following'&&(this['_stopPresenting'](),this[_0x2546b4(0x70)]());}[_0x42d381(0x11e)](){var _0x40b0cd=_0x42d381;const _0x2cca3c={'eventID':_[_0x40b0cd(0xba)][_0x40b0cd(0x67)]};this[_0x40b0cd(0xc0)][_0x40b0cd(0x9d)](_0x2cca3c,this[_0x40b0cd(0xec)]);}[_0x42d381(0xf7)](){var _0x5cc195=_0x42d381;this['_presenter']=null,this[_0x5cc195(0x9e)]!=='presenting'&&this[_0x5cc195(0x109)]();}['_handleNewChangeSets'](_0xd282b2){var _0x3f5e8d=_0x42d381;if(this['_status']===_0x3f5e8d(0x123)&&this['_presenter']===_0xd282b2[_0x3f5e8d(0xcc)][_0x3f5e8d(0x133)]){const _0x241f96=_[_0x3f5e8d(0x69)](_0xd282b2[_0x3f5e8d(0xcc)])['mutations']['reverse']()[_0x3f5e8d(0xf5)](_0x33185f=>_0x33185f['id']===C[_0x3f5e8d(0x6f)]['id']);if(_0x241f96){const _0x9aa71e=_0x241f96[_0x3f5e8d(0x116)]['unitId'],_0x27e7af=_0x241f96['params']['sheet']['id'];setTimeout(()=>{var _0x690f89=_0x3f5e8d;this[_0x690f89(0x115)][_0x690f89(0xdd)](C[_0x690f89(0x9b)]['id'],{'unitId':_0x9aa71e,'subUnitId':_0x27e7af},{'fromCollab':!0x0});});}}}[_0x42d381(0xb5)](){var _0x46338f=_0x42d381;this['_status$'][_0x46338f(0x143)](_0x46338f(0x132));const _0x30f525=new Map(),_0x16617f=this[_0x46338f(0xa4)]=new o[(_0x46338f(0x93))]();_0x16617f[_0x46338f(0x128)](o[_0x46338f(0x106)](()=>{var _0x5c8e6f=_0x46338f;_0x30f525[_0x5c8e6f(0xaa)](_0x19b4b8=>_0x19b4b8['complete']()),_0x30f525[_0x5c8e6f(0x147)]();})),_0x16617f[_0x46338f(0x128)](this[_0x46338f(0x115)][_0x46338f(0x74)](_0x4fc506=>{var _0x8492b1=_0x46338f,_0xb80052;if(_0x4fc506[_0x8492b1(0x10e)]!==o['CommandType'][_0x8492b1(0x136)]||!this['_liveShareService'][_0x8492b1(0xed)](_0x4fc506['id']))return;const {id:_0x3f49db}=_0x4fc506;let _0x32b9fd;_0x30f525[_0x8492b1(0xcf)](_0x3f49db)?_0x32b9fd=_0x30f525[_0x8492b1(0xa0)](_0x3f49db):(_0x32b9fd=new D[(_0x8492b1(0xf2))](),_0x30f525[_0x8492b1(0xeb)](_0x3f49db,_0x32b9fd),_0x32b9fd['pipe'](b[_0x8492b1(0x6e)]((_0xb80052=this[_0x8492b1(0xe2)][_0x8492b1(0x12b)](Z))!=null?_0xb80052:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x8492b1(0xef)](_0x121a48=>{var _0x43d4b9=_0x8492b1;this[_0x43d4b9(0xc0)][_0x43d4b9(0x9d)]({'eventID':_[_0x43d4b9(0xba)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x43d4b9(0xec)],'operations':{[_0x121a48['id']]:{'id':_0x121a48['id'],'params':JSON[_0x43d4b9(0x75)](_0x121a48['params'])}}}},this[_0x43d4b9(0xec)]);})),_0x32b9fd[_0x8492b1(0x143)](_0x4fc506);})),this[_0x46338f(0xe9)]['getInitialStates'](this['_unitID'])[_0x46338f(0xaa)](_0x522918=>this[_0x46338f(0xc0)][_0x46338f(0x9d)]({'eventID':_[_0x46338f(0xba)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x46338f(0xec)],'operations':{[_0x522918['id']]:{'id':_0x522918['id'],'params':JSON[_0x46338f(0x75)](_0x522918['params'])}}}},this[_0x46338f(0xec)]));}['_stopPresenting'](){var _0x53a5c8=_0x42d381,_0x39a0ca;this[_0x53a5c8(0x9a)][_0x53a5c8(0x143)]('idle'),(_0x39a0ca=this[_0x53a5c8(0xa4)])==null||_0x39a0ca['dispose'](),this[_0x53a5c8(0xa4)]=null;}[_0x42d381(0x70)](){var _0x431c40=_0x42d381,_0x5ec3e1;(_0x5ec3e1=this['_commandDisposable'])==null||_0x5ec3e1[_0x431c40(0x6d)](),this[_0x431c40(0x9a)][_0x431c40(0x143)](_0x431c40(0x123));}[_0x42d381(0x109)](){var _0x2995d0=_0x42d381,_0x41e12f;this['_status$']['next']('idle'),(_0x41e12f=this['_commandDisposable'])==null||_0x41e12f['dispose'](),this[_0x2995d0(0xa4)]=null;}[_0x42d381(0xc3)](){var _0xedcace=_0x42d381,_0x4b0801;this['_status$'][_0xedcace(0x143)]('not-following'),(_0x4b0801=this['_commandDisposable'])==null||_0x4b0801[_0xedcace(0x6d)]();}['_handleOperation'](_0x4f0f1f){var _0x4dc557=_0x42d381;if([_0x4dc557(0x132),_0x4dc557(0x139),_0x4dc557(0xa8)]['includes'](this[_0x4dc557(0x9e)])||!_0x4f0f1f[_0x4dc557(0xcc)]['presenter']||_0x4f0f1f['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x4dc557(0x9e)]===_0x4dc557(0x124)&&this['_startFollowing']();const _0x4b51e2=_0x4f0f1f[_0x4dc557(0xcc)][_0x4dc557(0x114)];Object[_0x4dc557(0x13f)](_0x4b51e2)[_0x4dc557(0xaa)](_0x406780=>{var _0x21718b=_0x4dc557;this[_0x21718b(0x115)][_0x21718b(0xdd)](_0x406780['id'],_0x406780['params']?JSON[_0x21718b(0xfb)](_0x406780[_0x21718b(0x116)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x160297=_0x42d381,_0x6ea3ad;this[_0x160297(0x9a)][_0x160297(0x143)](_0x160297(0xa8)),(_0x6ea3ad=this[_0x160297(0xa4)])==null||_0x6ea3ad[_0x160297(0x6d)]();}['_handleOnline'](){var _0x4fbb63=_0x42d381;this[_0x4fbb63(0x9a)][_0x4fbb63(0x143)](_0x4fbb63(0x124)),this['_fetchOperations']();}},exports[_0x42d381(0xd9)]=R([S(0x2,o[_0x42d381(0xd7)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x42d381(0xc1)])],exports['LiveShareCoordinator']);function A(){var _0x2f87c2=_0x42d381;const _0x3acf7b=p[_0x2f87c2(0x13d)](exports[_0x2f87c2(0x6b)]),_0x2de654=p[_0x2f87c2(0x13d)](o['IUniverInstanceService']),_0x4b210a=p[_0x2f87c2(0x112)](()=>_0x2de654['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x2f87c2(0x11c)]),void 0x0,!0x1,[]),[_0x5811a8,_0x25fb8a]=f['useState'](null),[_0x366e54,_0x16a069]=f[_0x2f87c2(0x138)](h[_0x2f87c2(0x86)]),_0x35dca0=f[_0x2f87c2(0xff)](null);return f[_0x2f87c2(0x142)](()=>(_0x4b210a&&_0x3acf7b['getLiveShareCoordinator'](_0x4b210a[_0x2f87c2(0x107)]())['then'](_0x870aad=>{var _0x3cb716=_0x2f87c2;_0x25fb8a(_0x870aad),_0x35dca0['current']=_0x870aad[_0x3cb716(0x7a)][_0x3cb716(0xef)](_0x21342b=>{_0x16a069(_0x21342b);});}),()=>{var _0xf318ec=_0x2f87c2,_0x1dd9b4;(_0x1dd9b4=_0x35dca0[_0xf318ec(0x66)])==null||_0x1dd9b4[_0xf318ec(0x104)](),_0x35dca0[_0xf318ec(0x66)]=null;}),[_0x4b210a,_0x3acf7b]),_0x5811a8?l['jsx'](g['Dropdown'],{'align':_0x2f87c2(0x108),'disabled':_0x366e54===h[_0x2f87c2(0x12f)],'className':_0x2f87c2(0xe4),'overlay':l['jsx'](K,{'status':_0x366e54,'coordinator':_0x5811a8}),'children':l[_0x2f87c2(0xaf)](_0x2f87c2(0xf9),{'className':g[_0x2f87c2(0xc4)](_0x2f87c2(0x118),{'univer-cursor-not-allowed':_0x366e54===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x366e54!==h[_0x2f87c2(0x12f)]}),'type':_0x2f87c2(0xf9),'children':l[_0x2f87c2(0xaf)](P,{'className':_0x2f87c2(0xa5)})})}):null;}function K(_0x569a75){var _0xf3d2=_0x42d381;const {status:_0x5407fb,coordinator:_0xd69f6c}=_0x569a75;switch(_0x5407fb){case h[_0xf3d2(0x86)]:return l['jsx'](z,{'coordinator':_0xd69f6c});case h[_0xf3d2(0x95)]:return l['jsx'](Q,{'coordinator':_0xd69f6c});case h['NOT_FOLLOWING']:return l['jsx'](X,{'coordinator':_0xd69f6c});case h['OFFLINE']:return l['jsx'](te,{});case h[_0xf3d2(0x117)]:return l[_0xf3d2(0xaf)](ee,{'coordinator':_0xd69f6c});default:return null;}}function z(_0x25854b){var _0xfbe1ee=_0x42d381;const {coordinator:_0x49677b}=_0x25854b;return l[_0xfbe1ee(0x8c)](l[_0xfbe1ee(0xa6)],{'children':[l[_0xfbe1ee(0xaf)]('div',{'className':_0xfbe1ee(0x10d),'children':_0xfbe1ee(0xb6)}),l[_0xfbe1ee(0xaf)](g[_0xfbe1ee(0x84)],{'onClick':()=>_0x49677b[_0xfbe1ee(0xda)](),'children':_0xfbe1ee(0x10c)})]});}function Q(_0xa33ac){var _0x23b698=_0x42d381;const {coordinator:_0x201316}=_0xa33ac;return l[_0x23b698(0x8c)](l[_0x23b698(0xa6)],{'children':[l[_0x23b698(0xaf)](_0x23b698(0x8d),{'className':_0x23b698(0x10d),'children':_0x23b698(0xcb)}),l['jsx'](g[_0x23b698(0x84)],{'onClick':()=>_0x201316['stopFollowing'](),'children':_0x23b698(0xd5)})]});}function X(_0x2d7d06){var _0x4b8de8=_0x42d381;const {coordinator:_0x34a195}=_0x2d7d06;return l[_0x4b8de8(0x8c)](l['Fragment'],{'children':[l[_0x4b8de8(0xaf)](_0x4b8de8(0x8d),{'className':_0x4b8de8(0x10d),'children':_0x4b8de8(0x13a)}),l[_0x4b8de8(0xaf)](g[_0x4b8de8(0x84)],{'variant':_0x4b8de8(0xb4),'onClick':()=>_0x34a195[_0x4b8de8(0x125)](),'children':'Start\x20following'})]});}function ee(_0x5b2f1c){var _0x2f8a4a=_0x42d381;const {coordinator:_0x3328e6}=_0x5b2f1c;return l[_0x2f8a4a(0x8c)](l['Fragment'],{'children':[l[_0x2f8a4a(0xaf)](_0x2f8a4a(0x8d),{'className':_0x2f8a4a(0x10d),'children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](g['Button'],{'variant':_0x2f8a4a(0x12d),'onClick':()=>_0x3328e6[_0x2f8a4a(0x13c)](),'children':'Stop\x20presenting'})]});}function te(){var _0x117304=_0x42d381;return l[_0x117304(0xaf)](l['Fragment'],{'children':_0x117304(0x7c)});}var ie=Object[_0x42d381(0xbc)],ne=(_0x3794b2,_0x5cc0d9,_0x4d5981,_0x4b2b54)=>{var _0x13368e=_0x42d381;for(var _0x3323b3=_0x4b2b54>0x1?void 0x0:_0x4b2b54?ie(_0x5cc0d9,_0x4d5981):_0x5cc0d9,_0x5569e4=_0x3794b2[_0x13368e(0xfd)]-0x1,_0x5c85c0;_0x5569e4>=0x0;_0x5569e4--)(_0x5c85c0=_0x3794b2[_0x5569e4])&&(_0x3323b3=_0x5c85c0(_0x3323b3)||_0x3323b3);return _0x3323b3;},L=(_0x4f52ef,_0x18be49)=>(_0x5a3265,_0x8471ca)=>_0x18be49(_0x5a3265,_0x8471ca,_0x4f52ef);exports[_0x42d381(0x73)]=class extends o['Disposable']{constructor(_0x2849da,_0x198982){var _0x5521ef=_0x42d381;super(),this[_0x5521ef(0x7d)]=_0x2849da,this['_uiPartsService']=_0x198982,this[_0x5521ef(0x13e)]();}['_mountLiveShare'](){var _0x220af2=_0x42d381;this[_0x220af2(0x10a)](this[_0x220af2(0xd6)][_0x220af2(0x11f)](p['BuiltInUIPart'][_0x220af2(0x77)],()=>p[_0x220af2(0x65)](A,this['_injector'])));}},exports[_0x42d381(0x73)]=ne([L(0x0,o[_0x42d381(0xc7)](o['Injector'])),L(0x1,p[_0x42d381(0xd2)])],exports['DesktopLiveShareController']);var re=Object[_0x42d381(0x8a)],se=Object[_0x42d381(0xbc)],oe=(_0x1b7417,_0x3ec85c,_0x4886f0)=>_0x3ec85c in _0x1b7417?re(_0x1b7417,_0x3ec85c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4886f0}):_0x1b7417[_0x3ec85c]=_0x4886f0,ae=(_0x5d2b7a,_0x472b94,_0x5a07a8,_0x58daf7)=>{var _0x27a9a8=_0x42d381;for(var _0x1fe656=_0x58daf7>0x1?void 0x0:_0x58daf7?se(_0x472b94,_0x5a07a8):_0x472b94,_0x4147d3=_0x5d2b7a[_0x27a9a8(0xfd)]-0x1,_0x4281bf;_0x4147d3>=0x0;_0x4147d3--)(_0x4281bf=_0x5d2b7a[_0x4147d3])&&(_0x1fe656=_0x4281bf(_0x1fe656)||_0x1fe656);return _0x1fe656;},N=(_0x3a4385,_0x431e0c)=>(_0x296788,_0x523f70)=>_0x431e0c(_0x296788,_0x523f70,_0x3a4385),T=(_0x4b4b1b,_0x4ae133,_0x165466)=>oe(_0x4b4b1b,typeof _0x4ae133!=_0x42d381(0x100)?_0x4ae133+'':_0x4ae133,_0x165466);function _0x38bd(_0x43157e,_0x3bf12f){var _0x362068=_0x3620();return _0x38bd=function(_0x38bd62,_0x30fd7d){_0x38bd62=_0x38bd62-0x65;var _0xbf697d=_0x362068[_0x38bd62];return _0xbf697d;},_0x38bd(_0x43157e,_0x3bf12f);}const le=_0x42d381(0xf8);exports[_0x42d381(0xd8)]=class extends o[_0x42d381(0xb7)]{constructor(_0x33b95d=x,_0x52743d,_0x24da22){var _0x1028ad=_0x42d381;super(),this['_config']=_0x33b95d,this['_injector']=_0x52743d,this[_0x1028ad(0xe2)]=_0x24da22;const {..._0xc91143}=o[_0x1028ad(0x99)]({},x,this['_config']);this['_configService']['setConfig']($,_0xc91143);}[_0x42d381(0x68)](){var _0x1d9d7e=_0x42d381;o[_0x1d9d7e(0xa2)](this[_0x1d9d7e(0x7d)],o[_0x1d9d7e(0xea)]([[O],[exports[_0x1d9d7e(0x6b)]],[E],[exports[_0x1d9d7e(0x73)]]],this[_0x1d9d7e(0xde)]['override'])),o[_0x1d9d7e(0x76)](this[_0x1d9d7e(0x7d)],[[E]]);}[_0x42d381(0xf6)](){var _0x2b693b=_0x42d381;o[_0x2b693b(0x76)](this[_0x2b693b(0x7d)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x42d381(0xd8)],_0x42d381(0x10e),o['UniverInstanceType'][_0x42d381(0xc6)]),T(exports[_0x42d381(0xd8)],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x42d381(0xc7)](o[_0x42d381(0x113)])),N(0x2,o[_0x42d381(0xd7)])],exports[_0x42d381(0xd8)]),exports[_0x42d381(0xa9)]=A,exports[_0x42d381(0x6c)]=O,exports[_0x42d381(0xce)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x39ab13=_0x5b4e;(function(_0x4e18fe,_0x3276f1){var _0x473d31=_0x5b4e,_0x119e21=_0x4e18fe();while(!![]){try{var _0x2fd889=-parseInt(_0x473d31(0x1d5))/0x1*(-parseInt(_0x473d31(0x1d1))/0x2)+-parseInt(_0x473d31(0x210))/0x3+parseInt(_0x473d31(0x22b))/0x4*(-parseInt(_0x473d31(0x205))/0x5)+-parseInt(_0x473d31(0x1a7))/0x6+parseInt(_0x473d31(0x1f1))/0x7+-parseInt(_0x473d31(0x1d8))/0x8+-parseInt(_0x473d31(0x20d))/0x9*(-parseInt(_0x473d31(0x221))/0xa);if(_0x2fd889===_0x3276f1)break;else _0x119e21['push'](_0x119e21['shift']());}catch(_0x2661a4){_0x119e21['push'](_0x119e21['shift']());}}}(_0x4f5d,0x33119));var q=Object[_0x39ab13(0x24b)],z=(_0x445de6,_0x2df7e1,_0x3b046f)=>_0x2df7e1 in _0x445de6?q(_0x445de6,_0x2df7e1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b046f}):_0x445de6[_0x2df7e1]=_0x3b046f,d=(_0x3f6b24,_0x5b6c87,_0x49fe9a)=>z(_0x3f6b24,typeof _0x5b6c87!='symbol'?_0x5b6c87+'':_0x5b6c87,_0x49fe9a);import{CollaborationSessionService as _0x5ad299,SessionStatus as _0x2b95f4,UniverCollaborationClientPlugin as _0x4f1c65}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3e5697,toDisposable as _0x5013eb,Inject as _0x1c9dfb,IUniverInstanceService as _0x29d1ed,Injector as _0x464e72,IConfigService as _0x4d4248,ICommandService as _0x2a3247,RxDisposable as _0x22e39e,UniverInstanceType as _0x5c0cf1,DisposableCollection as _0x132033,CommandType as _0x16403c,DependentOn as _0x37ba34,Plugin as _0xd3dbe,merge as _0x42fa7a,registerDependencies as _0x2a0e63,mergeOverrideWithDependencies as _0x4d573,touchDependencies as _0x23c0a8}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x89ee5d,InsertSheetMutation as _0x1e530f}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x16daff,SetScrollOperation as _0x5dc59e}from'@univerjs/sheets-ui';import{useDependency as _0x222417,useObservable as _0x4c99ef,IUIPartsService as _0x253bf3,BuiltInUIPart as _0x2dcb19,connectInjector as _0x1dfa84}from'@univerjs/ui';import{jsx as _0x254265,jsxs as _0x4b2b03,Fragment as _0xf3a8cd}from'react/jsx-runtime';import{Dropdown as _0x313750,clsx as _0x3011bc,Button as _0x25a302}from'@univerjs/design';import{forwardRef as _0x5ed3cd,useRef as _0x2b93c5,createElement as _0x315ed0,useState as _0x5b9a8e,useEffect as _0x3c6202}from'react';import{CollaborationEvent as _0x48bb46,parseProtocolChangeset as _0x452197}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xe254f1,Subject as _0x14561}from'rxjs';import{takeUntil as _0x54001b,throttleTime as _0x11bdb2}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x3e5697{constructor(){var _0x55c512=_0x39ab13;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x55c512(0x216),new Set());}[_0x39ab13(0x1b2)](_0x477b90){var _0x156745=_0x39ab13;return this[_0x156745(0x1ce)][_0x156745(0x200)](_0x477b90),_0x5013eb(()=>this[_0x156745(0x1ce)]['delete'](_0x477b90));}[_0x39ab13(0x229)](_0x53c423){var _0xff77b1=_0x39ab13;return this[_0xff77b1(0x216)][_0xff77b1(0x200)](_0x53c423),_0x5013eb(()=>this[_0xff77b1(0x216)][_0xff77b1(0x20b)](_0x53c423));}[_0x39ab13(0x224)](_0x1d1893){var _0x44ca5b=_0x39ab13;return this[_0x44ca5b(0x1ce)]['has'](_0x1d1893);}[_0x39ab13(0x22d)](_0x3f3396){var _0x3647c0=_0x39ab13;return Array[_0x3647c0(0x21d)](this[_0x3647c0(0x216)])['map'](_0x3044cb=>_0x3044cb(_0x3f3396));}}function _0x5b4e(_0x441251,_0x575071){var _0x4f5dea=_0x4f5d();return _0x5b4e=function(_0x5b4e2e,_0x201403){_0x5b4e2e=_0x5b4e2e-0x19d;var _0x3fa836=_0x4f5dea[_0x5b4e2e];return _0x3fa836;},_0x5b4e(_0x441251,_0x575071);}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x54da9f,_0x515bf4,_0x517656,_0x49cbb8)=>{var _0x296b03=_0x39ab13;for(var _0x1e21db=_0x49cbb8>0x1?void 0x0:_0x49cbb8?Ee(_0x515bf4,_0x517656):_0x515bf4,_0x4db5e5=_0x54da9f[_0x296b03(0x1de)]-0x1,_0x3908ee;_0x4db5e5>=0x0;_0x4db5e5--)(_0x3908ee=_0x54da9f[_0x4db5e5])&&(_0x1e21db=_0x3908ee(_0x1e21db)||_0x1e21db);return _0x1e21db;},Ne=(_0xca5fed,_0x33e108)=>(_0x3f45a8,_0x3b09b2)=>_0x33e108(_0x3f45a8,_0x3b09b2,_0xca5fed);let m=class extends _0x3e5697{constructor(_0x2bd166){var _0x42c47f=_0x39ab13;super(),this[_0x42c47f(0x1ee)]=_0x2bd166,this[_0x42c47f(0x1f0)]();}['_init'](){var _0x3219d0=_0x39ab13;[_0x16daff['id'],_0x5dc59e['id'],_0x89ee5d['id']][_0x3219d0(0x1a2)](_0xd947e2=>{var _0x46d956=_0x3219d0;this[_0x46d956(0x1c0)](this[_0x46d956(0x1ee)][_0x46d956(0x1b2)](_0xd947e2));});}};m=we([Ne(0x0,_0x1c9dfb(L))],m);var c=function(){var _0x43aca1=_0x39ab13;return c=Object[_0x43aca1(0x1ef)]||function(_0x135b00){var _0x768c0=_0x43aca1;for(var _0x17d153,_0x2b33d0=0x1,_0x3ba329=arguments[_0x768c0(0x1de)];_0x2b33d0<_0x3ba329;_0x2b33d0++){_0x17d153=arguments[_0x2b33d0];for(var _0x3f9ab3 in _0x17d153)Object[_0x768c0(0x223)]['hasOwnProperty'][_0x768c0(0x1b9)](_0x17d153,_0x3f9ab3)&&(_0x135b00[_0x3f9ab3]=_0x17d153[_0x3f9ab3]);}return _0x135b00;},c['apply'](this,arguments);},Ce=function(_0x4b6d7f,_0x52ffce){var _0x29a860=_0x39ab13,_0x1e58bd={};for(var _0x2d3dfc in _0x4b6d7f)Object[_0x29a860(0x223)][_0x29a860(0x24f)][_0x29a860(0x1b9)](_0x4b6d7f,_0x2d3dfc)&&_0x52ffce[_0x29a860(0x1ad)](_0x2d3dfc)<0x0&&(_0x1e58bd[_0x2d3dfc]=_0x4b6d7f[_0x2d3dfc]);if(_0x4b6d7f!=null&&typeof Object[_0x29a860(0x21a)]==_0x29a860(0x1af)){for(var _0x54b65e=0x0,_0x2d3dfc=Object['getOwnPropertySymbols'](_0x4b6d7f);_0x54b65e<_0x2d3dfc['length'];_0x54b65e++)_0x52ffce[_0x29a860(0x1ad)](_0x2d3dfc[_0x54b65e])<0x0&&Object[_0x29a860(0x223)][_0x29a860(0x222)][_0x29a860(0x1b9)](_0x4b6d7f,_0x2d3dfc[_0x54b65e])&&(_0x1e58bd[_0x2d3dfc[_0x54b65e]]=_0x4b6d7f[_0x2d3dfc[_0x54b65e]]);}return _0x1e58bd;},W=_0x5ed3cd(function(_0x3f4609,_0x44ef17){var _0x5a3137=_0x39ab13,_0x31b750=_0x3f4609[_0x5a3137(0x1f8)],_0x2ca497=_0x3f4609['id'],_0x24a17b=_0x3f4609[_0x5a3137(0x1e1)],_0x565adb=_0x3f4609[_0x5a3137(0x1c2)],_0x425766=Ce(_0x3f4609,['icon','id',_0x5a3137(0x1e1),_0x5a3137(0x1c2)]),_0x2a44bc=_0x5a3137(0x1be)[_0x5a3137(0x208)](_0x2ca497,'\x20')[_0x5a3137(0x208)](_0x24a17b||'')[_0x5a3137(0x21c)](),_0x5f19d8=_0x2b93c5('_'[_0x5a3137(0x208)](Le()));return Y(_0x31b750,''['concat'](_0x2ca497),{'defIds':_0x31b750[_0x5a3137(0x23c)],'idSuffix':_0x5f19d8[_0x5a3137(0x1f6)]},c({'ref':_0x44ef17,'className':_0x2a44bc},_0x425766),_0x565adb);});function Y(_0x4cb8e8,_0x860e36,_0x776e4f,_0x22f651,_0x1c9d27){var _0x407a7c=_0x39ab13;return _0x315ed0(_0x4cb8e8[_0x407a7c(0x1a1)],c(c({'key':_0x860e36},De(_0x4cb8e8,_0x776e4f,_0x1c9d27)),_0x22f651),(xe(_0x4cb8e8,_0x776e4f)[_0x407a7c(0x1db)]||[])[_0x407a7c(0x19d)](function(_0x467962,_0x3c57d9){var _0x263110=_0x407a7c;return Y(_0x467962,''[_0x263110(0x208)](_0x860e36,'-')[_0x263110(0x208)](_0x4cb8e8['tag'],'-')[_0x263110(0x208)](_0x3c57d9),_0x776e4f,void 0x0,_0x1c9d27);}));}function De(_0x2a17da,_0x5caf67,_0x56933e){var _0x10f92d=_0x39ab13,_0x4dbd73=c({},_0x2a17da['attrs']);_0x56933e!=null&&_0x56933e[_0x10f92d(0x1d3)]&&_0x4dbd73[_0x10f92d(0x23d)]===_0x10f92d(0x1d3)&&(_0x4dbd73[_0x10f92d(0x23d)]=_0x56933e['colorChannel1']),_0x2a17da[_0x10f92d(0x1a1)]==='mask'&&_0x4dbd73['id']&&(_0x4dbd73['id']=_0x4dbd73['id']+_0x5caf67[_0x10f92d(0x1fa)]),Object[_0x10f92d(0x1fc)](_0x4dbd73)[_0x10f92d(0x1a2)](function(_0x3d66f2){var _0x23776f=_0x10f92d,_0x165b35=_0x3d66f2[0x0],_0x32e8db=_0x3d66f2[0x1];_0x165b35==='mask'&&typeof _0x32e8db==_0x23776f(0x201)&&(_0x4dbd73[_0x165b35]=_0x32e8db[_0x23776f(0x241)](/url\(#(.*)\)/,_0x23776f(0x1d4)[_0x23776f(0x208)](_0x5caf67['idSuffix'],')')));});var _0x441ead=_0x5caf67[_0x10f92d(0x23c)];return!_0x441ead||_0x441ead[_0x10f92d(0x1de)]===0x0||(_0x2a17da[_0x10f92d(0x1a1)]===_0x10f92d(0x240)&&_0x4dbd73[_0x10f92d(0x235)]&&(_0x4dbd73[_0x10f92d(0x235)]=_0x4dbd73['xlink:href']+_0x5caf67[_0x10f92d(0x1fa)]),Object[_0x10f92d(0x1fc)](_0x4dbd73)[_0x10f92d(0x1a2)](function(_0x2b2092){var _0x51912c=_0x10f92d,_0x645ba1=_0x2b2092[0x0],_0x2a9989=_0x2b2092[0x1];typeof _0x2a9989==_0x51912c(0x201)&&(_0x4dbd73[_0x645ba1]=_0x2a9989[_0x51912c(0x241)](/url\(#(.*)\)/,'url(#$1'[_0x51912c(0x208)](_0x5caf67[_0x51912c(0x1fa)],')')));})),_0x4dbd73;}function xe(_0x32bb4f,_0x3b1d29){var _0x510e2e=_0x39ab13,_0x57ebf6,_0x4a0980=_0x3b1d29['defIds'];return!_0x4a0980||_0x4a0980[_0x510e2e(0x1de)]===0x0?_0x32bb4f:_0x32bb4f[_0x510e2e(0x1a1)]==='defs'&&(!((_0x57ebf6=_0x32bb4f['children'])===null||_0x57ebf6===void 0x0)&&_0x57ebf6[_0x510e2e(0x1de)])?c(c({},_0x32bb4f),{'children':_0x32bb4f[_0x510e2e(0x1db)]['map'](function(_0x567bf1){var _0x16883b=_0x510e2e;return typeof _0x567bf1[_0x16883b(0x1c5)]['id']==_0x16883b(0x201)&&_0x4a0980&&_0x4a0980[_0x16883b(0x21f)](_0x567bf1['attrs']['id'])?c(c({},_0x567bf1),{'attrs':c(c({},_0x567bf1[_0x16883b(0x1c5)]),{'id':_0x567bf1[_0x16883b(0x1c5)]['id']+_0x3b1d29[_0x16883b(0x1fa)]})}):_0x567bf1;})}):_0x32bb4f;}function Le(){var _0x588479=_0x39ab13;return Math[_0x588479(0x1dc)]()[_0x588479(0x211)](0x24)[_0x588479(0x214)](0x2,0x8);}W[_0x39ab13(0x1fd)]=_0x39ab13(0x1d9);var ye={'tag':_0x39ab13(0x238),'attrs':{'xmlns':_0x39ab13(0x22c),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x39ab13(0x22e),'attrs':{'fill':_0x39ab13(0x1ac),'d':_0x39ab13(0x228)}},{'tag':_0x39ab13(0x22e),'attrs':{'fill':_0x39ab13(0x1ac),'d':_0x39ab13(0x1c7),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x5ed3cd(function(_0x32b528,_0x221a72){var _0x5885e1=_0x39ab13;return _0x315ed0(W,Object['assign']({},_0x32b528,{'id':_0x5885e1(0x1bf),'ref':_0x221a72,'icon':ye}));});B[_0x39ab13(0x1fd)]=_0x39ab13(0x1c1);var Re=Object[_0x39ab13(0x243)],Z=(_0x2858fb,_0x26827f,_0xdd19b8,_0x567ba4)=>{var _0x18d793=_0x39ab13;for(var _0x15ec61=_0x567ba4>0x1?void 0x0:_0x567ba4?Re(_0x26827f,_0xdd19b8):_0x26827f,_0x2a4c25=_0x2858fb[_0x18d793(0x1de)]-0x1,_0x213093;_0x2a4c25>=0x0;_0x2a4c25--)(_0x213093=_0x2858fb[_0x2a4c25])&&(_0x15ec61=_0x213093(_0x15ec61)||_0x15ec61);return _0x15ec61;},f=(_0x460c6f,_0x472ddb)=>(_0x4d57e4,_0x1bbe8c)=>_0x472ddb(_0x4d57e4,_0x1bbe8c,_0x460c6f);let I=class extends _0x22e39e{constructor(_0x4ee4b0,_0xaf01ea,_0x32de97){var _0x5dd880=_0x39ab13;super(),d(this,_0x5dd880(0x1c8),new Map()),(this[_0x5dd880(0x1b3)]=_0x4ee4b0,this[_0x5dd880(0x1a4)]=_0xaf01ea,this[_0x5dd880(0x247)]=_0x32de97,this[_0x5dd880(0x1f0)]());}async[_0x39ab13(0x1c9)](_0x4a8ddf){var _0x32c7a6=_0x39ab13;return this[_0x32c7a6(0x1c8)][_0x32c7a6(0x1d7)](_0x4a8ddf)||await this['_startLiveShareCoordinator'](_0x4a8ddf),this[_0x32c7a6(0x1c8)][_0x32c7a6(0x21b)](_0x4a8ddf);}['_init'](){var _0x21bc90=_0x39ab13;this[_0x21bc90(0x1b3)]['getTypeOfUnitAdded$'](_0x5c0cf1[_0x21bc90(0x219)])[_0x21bc90(0x1b7)](_0x54001b(this[_0x21bc90(0x1f2)]))[_0x21bc90(0x1f3)](async _0x5c2cc6=>{var _0x3e4434=_0x21bc90;const _0x2fe247=_0x5c2cc6[_0x3e4434(0x206)]();this[_0x3e4434(0x1c8)][_0x3e4434(0x1d7)](_0x2fe247)||this[_0x3e4434(0x1ca)](_0x2fe247);}),this[_0x21bc90(0x1b3)]['getTypeOfUnitDisposed$'](_0x5c0cf1[_0x21bc90(0x219)])[_0x21bc90(0x1b7)](_0x54001b(this[_0x21bc90(0x1f2)]))[_0x21bc90(0x1f3)](_0xf0c791=>{var _0x49478a=_0x21bc90;const _0x10c048=_0xf0c791[_0x49478a(0x206)](),_0x14c3c3=this[_0x49478a(0x1c8)][_0x49478a(0x21b)](_0x10c048);_0x14c3c3==null||_0x14c3c3[_0x49478a(0x1bd)]();});}async[_0x39ab13(0x1ca)](_0x11547e){var _0x4f0a69=_0x39ab13;const _0xcaa47b=await this[_0x4f0a69(0x247)][_0x4f0a69(0x24d)](_0x11547e),_0x576e89=this[_0x4f0a69(0x1a4)][_0x4f0a69(0x1d6)](C,_0x11547e,_0xcaa47b);return _0x576e89[_0x4f0a69(0x1e6)](),this[_0x4f0a69(0x1c8)]['set'](_0x11547e,_0x576e89),_0x576e89;}};I=Z([f(0x0,_0x29d1ed),f(0x1,_0x1c9dfb(_0x464e72)),f(0x2,_0x1c9dfb(_0x5ad299))],I);var h=(_0x127e0d=>(_0x127e0d[_0x39ab13(0x1c4)]=_0x39ab13(0x1dd),_0x127e0d[_0x39ab13(0x1f4)]=_0x39ab13(0x1cf),_0x127e0d[_0x39ab13(0x1ec)]=_0x39ab13(0x234),_0x127e0d['NOT_FOLLOWING']=_0x39ab13(0x24c),_0x127e0d[_0x39ab13(0x232)]='presenting',_0x127e0d))(h||{});const Pe=_0x39ab13(0x209),Ae=0xc8;let C=class extends _0x22e39e{constructor(_0x5dad62,_0x584743,_0x1cce1b,_0x243ee3,_0x347ba7){var _0x2ee09d=_0x39ab13;super(),d(this,_0x2ee09d(0x1b6),new _0xe254f1(_0x2ee09d(0x1cf))),d(this,_0x2ee09d(0x1a9),this[_0x2ee09d(0x1b6)][_0x2ee09d(0x1ae)]()),d(this,'_init',!0x1),d(this,_0x2ee09d(0x1b8),null),d(this,_0x2ee09d(0x1ea),null),(this[_0x2ee09d(0x202)]=_0x5dad62,this[_0x2ee09d(0x1bb)]=_0x584743,this[_0x2ee09d(0x1d2)]=_0x1cce1b,this[_0x2ee09d(0x1ee)]=_0x243ee3,this[_0x2ee09d(0x1ff)]=_0x347ba7);}get[_0x39ab13(0x1cb)](){var _0x228b18=_0x39ab13;return this[_0x228b18(0x1b6)][_0x228b18(0x20a)]();}[_0x39ab13(0x1bd)](){var _0x2ed2bf=_0x39ab13,_0x114227;(_0x114227=this[_0x2ed2bf(0x1b8)])==null||_0x114227[_0x2ed2bf(0x1bd)](),this['_status$'][_0x2ed2bf(0x1cc)](_0x2ed2bf(0x1cf)),this[_0x2ed2bf(0x1b6)][_0x2ed2bf(0x1fe)]();}[_0x39ab13(0x1e6)](){var _0x447967=_0x39ab13;this['_init']||(this[_0x447967(0x1f0)]=!0x0,this[_0x447967(0x1bb)][_0x447967(0x1a0)][_0x447967(0x1b7)](_0x54001b(this[_0x447967(0x1f2)]))['subscribe'](_0x4ecde6=>{switch(_0x4ecde6){case _0x2b95f4['OFFLINE']:this['_handleOffline']();break;case _0x2b95f4['ONLINE']:this['_handleOnline']();break;}}),this[_0x447967(0x1bb)][_0x447967(0x1a6)][_0x447967(0x1b7)](_0x54001b(this[_0x447967(0x1f2)]))[_0x447967(0x1f3)](_0x5d8123=>{var _0x576ab3=_0x447967;const {eventID:_0x2dc0a4}=_0x5d8123;switch(_0x2dc0a4){case _0x48bb46[_0x576ab3(0x1f7)]:this[_0x576ab3(0x226)](_0x5d8123);break;case _0x48bb46[_0x576ab3(0x1ab)]:this['_handleOperation'](_0x5d8123);break;case _0x48bb46[_0x576ab3(0x1bc)]:this[_0x576ab3(0x203)]();break;case _0x48bb46[_0x576ab3(0x1f9)]:this['_handleNewChangeSets'](_0x5d8123);break;}}));}[_0x39ab13(0x1c6)](){var _0x324e8d=_0x39ab13;this[_0x324e8d(0x1bb)]['send']({'eventID':_0x48bb46[_0x324e8d(0x24a)],'data':{'unitID':this[_0x324e8d(0x202)],'userID':this[_0x324e8d(0x1bb)][_0x324e8d(0x237)]()}},this['_unitID']);}['stopPresenting'](){var _0x189040=_0x39ab13;this['_status']===_0x189040(0x23e)&&(this[_0x189040(0x1b6)]['next'](_0x189040(0x1cf)),this[_0x189040(0x1bb)][_0x189040(0x1b5)]({'eventID':_0x48bb46[_0x189040(0x1bc)],'data':{'unitID':this[_0x189040(0x202)]}},this[_0x189040(0x202)]));}['startFollowing'](){var _0x33cc47=_0x39ab13;this[_0x33cc47(0x1cb)]===_0x33cc47(0x24c)&&(this[_0x33cc47(0x1b6)][_0x33cc47(0x1cc)](_0x33cc47(0x234)),this[_0x33cc47(0x249)]());}[_0x39ab13(0x1da)](){var _0x14df83=_0x39ab13;this[_0x14df83(0x1cb)]===_0x14df83(0x234)&&this[_0x14df83(0x1b4)]();}[_0x39ab13(0x226)](_0x3d5364){var _0x2d1187=_0x39ab13;const {presenter:_0x159323}=_0x3d5364[_0x2d1187(0x248)],_0x2e3c65=this[_0x2d1187(0x1bb)][_0x2d1187(0x237)]();this[_0x2d1187(0x1ea)]=_0x159323,_0x159323===_0x2e3c65?(this[_0x2d1187(0x1b4)](),this['_startPresenting']()):this[_0x2d1187(0x1cb)]!==_0x2d1187(0x24c)&&(this[_0x2d1187(0x1e5)](),this[_0x2d1187(0x249)]());}['_fetchOperations'](){var _0x153cc0=_0x39ab13;const _0x9b7e16={'eventID':_0x48bb46[_0x153cc0(0x1aa)]};this[_0x153cc0(0x1bb)][_0x153cc0(0x1b5)](_0x9b7e16,this[_0x153cc0(0x202)]);}['_handleTerminate'](){var _0x5e1c03=_0x39ab13;this[_0x5e1c03(0x1ea)]=null,this[_0x5e1c03(0x1cb)]!==_0x5e1c03(0x23e)&&this['_beIdle']();}[_0x39ab13(0x204)](_0xeb9bae){var _0x30f9ef=_0x39ab13;if(this['_status']===_0x30f9ef(0x234)&&this[_0x30f9ef(0x1ea)]===_0xeb9bae['data'][_0x30f9ef(0x239)]){const _0x485e06=_0x452197(_0xeb9bae[_0x30f9ef(0x248)])[_0x30f9ef(0x1b1)][_0x30f9ef(0x1a3)]()[_0x30f9ef(0x213)](_0x327d43=>_0x327d43['id']===_0x1e530f['id']);if(_0x485e06){const _0x17ec92=_0x485e06[_0x30f9ef(0x23b)][_0x30f9ef(0x242)],_0xfd9ce0=_0x485e06[_0x30f9ef(0x23b)][_0x30f9ef(0x217)]['id'];setTimeout(()=>{var _0x3bf54e=_0x30f9ef;this['_commandService'][_0x3bf54e(0x24e)](_0x89ee5d['id'],{'unitId':_0x17ec92,'subUnitId':_0xfd9ce0},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4f8fb3=_0x39ab13;this[_0x4f8fb3(0x1b6)][_0x4f8fb3(0x1cc)](_0x4f8fb3(0x23e));const _0x2a0a9a=new Map(),_0x37f4ae=this[_0x4f8fb3(0x1b8)]=new _0x132033();_0x37f4ae[_0x4f8fb3(0x200)](_0x5013eb(()=>{var _0x5623f1=_0x4f8fb3;_0x2a0a9a[_0x5623f1(0x1a2)](_0x583e00=>_0x583e00[_0x5623f1(0x1fe)]()),_0x2a0a9a[_0x5623f1(0x1ed)]();})),_0x37f4ae['add'](this[_0x4f8fb3(0x1ff)][_0x4f8fb3(0x1f5)](_0x46e4b3=>{var _0x32efe3=_0x4f8fb3,_0x1220d3;if(_0x46e4b3['type']!==_0x16403c[_0x32efe3(0x22a)]||!this[_0x32efe3(0x1ee)][_0x32efe3(0x224)](_0x46e4b3['id']))return;const {id:_0xa9123d}=_0x46e4b3;let _0x34f024;_0x2a0a9a['has'](_0xa9123d)?_0x34f024=_0x2a0a9a['get'](_0xa9123d):(_0x34f024=new _0x14561(),_0x2a0a9a[_0x32efe3(0x22f)](_0xa9123d,_0x34f024),_0x34f024[_0x32efe3(0x1b7)](_0x11bdb2((_0x1220d3=this['_configService'][_0x32efe3(0x244)](Pe))!=null?_0x1220d3:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x32efe3(0x1f3)](_0x1fd228=>{var _0x25230e=_0x32efe3;this[_0x25230e(0x1bb)][_0x25230e(0x1b5)]({'eventID':_0x48bb46[_0x25230e(0x1ab)],'data':{'unitID':this['_unitID'],'operations':{[_0x1fd228['id']]:{'id':_0x1fd228['id'],'params':JSON[_0x25230e(0x20f)](_0x1fd228['params'])}}}},this[_0x25230e(0x202)]);})),_0x34f024[_0x32efe3(0x1cc)](_0x46e4b3);})),this[_0x4f8fb3(0x1ee)]['getInitialStates'](this[_0x4f8fb3(0x202)])[_0x4f8fb3(0x1a2)](_0x3ab932=>this[_0x4f8fb3(0x1bb)][_0x4f8fb3(0x1b5)]({'eventID':_0x48bb46['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4f8fb3(0x202)],'operations':{[_0x3ab932['id']]:{'id':_0x3ab932['id'],'params':JSON[_0x4f8fb3(0x20f)](_0x3ab932[_0x4f8fb3(0x23b)])}}}},this[_0x4f8fb3(0x202)]));}['_stopPresenting'](){var _0x3200d1=_0x39ab13,_0x1febda;this[_0x3200d1(0x1b6)]['next']('idle'),(_0x1febda=this[_0x3200d1(0x1b8)])==null||_0x1febda['dispose'](),this['_commandDisposable']=null;}[_0x39ab13(0x249)](){var _0x5920ef=_0x39ab13,_0x11f105;(_0x11f105=this[_0x5920ef(0x1b8)])==null||_0x11f105[_0x5920ef(0x1bd)](),this[_0x5920ef(0x1b6)]['next']('following');}[_0x39ab13(0x1ba)](){var _0x53d91a=_0x39ab13,_0x5cfd6d;this[_0x53d91a(0x1b6)][_0x53d91a(0x1cc)]('idle'),(_0x5cfd6d=this[_0x53d91a(0x1b8)])==null||_0x5cfd6d[_0x53d91a(0x1bd)](),this['_commandDisposable']=null;}[_0x39ab13(0x1b4)](){var _0x93ac13=_0x39ab13,_0x51967e;this[_0x93ac13(0x1b6)][_0x93ac13(0x1cc)](_0x93ac13(0x24c)),(_0x51967e=this[_0x93ac13(0x1b8)])==null||_0x51967e[_0x93ac13(0x1bd)]();}[_0x39ab13(0x21e)](_0xde4013){var _0x1c54f6=_0x39ab13;if(['presenting',_0x1c54f6(0x24c),'offline'][_0x1c54f6(0x21f)](this[_0x1c54f6(0x1cb)])||!_0xde4013[_0x1c54f6(0x248)][_0x1c54f6(0x23a)]||_0xde4013[_0x1c54f6(0x248)][_0x1c54f6(0x23a)]===this[_0x1c54f6(0x1bb)]['getMemberID']())return;this[_0x1c54f6(0x1cb)]==='idle'&&this[_0x1c54f6(0x249)]();const _0x587b04=_0xde4013[_0x1c54f6(0x248)]['operations'];Object[_0x1c54f6(0x1e2)](_0x587b04)[_0x1c54f6(0x1a2)](_0x121121=>{var _0x2526b4=_0x1c54f6;this[_0x2526b4(0x1ff)][_0x2526b4(0x24e)](_0x121121['id'],_0x121121[_0x2526b4(0x23b)]?JSON[_0x2526b4(0x225)](_0x121121['params']):null,{'fromCollab':!0x0});});}[_0x39ab13(0x23f)](){var _0x47179d=_0x39ab13,_0x35e674;this[_0x47179d(0x1b6)][_0x47179d(0x1cc)](_0x47179d(0x1dd)),(_0x35e674=this[_0x47179d(0x1b8)])==null||_0x35e674[_0x47179d(0x1bd)]();}['_handleOnline'](){var _0x99d950=_0x39ab13;this[_0x99d950(0x1b6)][_0x99d950(0x1cc)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x4d4248),f(0x3,_0x1c9dfb(L)),f(0x4,_0x2a3247)],C);function Te(){var _0x2ee89d=_0x39ab13;const _0x47efca=_0x222417(I),_0x509158=_0x222417(_0x29d1ed),_0x42fdad=_0x4c99ef(()=>_0x509158[_0x2ee89d(0x1e3)](_0x5c0cf1[_0x2ee89d(0x219)]),void 0x0,!0x1,[]),[_0x3469fe,_0x23efe8]=_0x5b9a8e(null),[_0xf75bf3,_0x170647]=_0x5b9a8e(h[_0x2ee89d(0x1f4)]),_0x44dfe4=_0x2b93c5(null);return _0x3c6202(()=>(_0x42fdad&&_0x47efca[_0x2ee89d(0x1c9)](_0x42fdad[_0x2ee89d(0x206)]())[_0x2ee89d(0x220)](_0x1f1c41=>{var _0x36f943=_0x2ee89d;_0x23efe8(_0x1f1c41),_0x44dfe4[_0x36f943(0x1f6)]=_0x1f1c41[_0x36f943(0x1a9)][_0x36f943(0x1f3)](_0x4043f2=>{_0x170647(_0x4043f2);});}),()=>{var _0x173d52=_0x2ee89d,_0x555445;(_0x555445=_0x44dfe4[_0x173d52(0x1f6)])==null||_0x555445[_0x173d52(0x19e)](),_0x44dfe4[_0x173d52(0x1f6)]=null;}),[_0x42fdad,_0x47efca]),_0x3469fe?_0x254265(_0x313750,{'align':'end','disabled':_0xf75bf3===h['OFFLINE'],'className':_0x2ee89d(0x1a5),'overlay':_0x254265($e,{'status':_0xf75bf3,'coordinator':_0x3469fe}),'children':_0x254265(_0x2ee89d(0x227),{'className':_0x3011bc(_0x2ee89d(0x233),{'univer-cursor-not-allowed':_0xf75bf3===h[_0x2ee89d(0x1c4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xf75bf3!==h[_0x2ee89d(0x1c4)]}),'type':'button','children':_0x254265(B,{'className':_0x2ee89d(0x1fb)})})}):null;}function $e(_0x36206a){var _0x334c59=_0x39ab13;const {status:_0x4bacbe,coordinator:_0x5c0e03}=_0x36206a;switch(_0x4bacbe){case h[_0x334c59(0x1f4)]:return _0x254265(Fe,{'coordinator':_0x5c0e03});case h[_0x334c59(0x1ec)]:return _0x254265(He,{'coordinator':_0x5c0e03});case h[_0x334c59(0x231)]:return _0x254265(je,{'coordinator':_0x5c0e03});case h[_0x334c59(0x1c4)]:return _0x254265(Ve,{});case h[_0x334c59(0x232)]:return _0x254265(Ue,{'coordinator':_0x5c0e03});default:return null;}}function Fe(_0x50599f){var _0xbd76e7=_0x39ab13;const {coordinator:_0x405c0f}=_0x50599f;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265('div',{'className':_0xbd76e7(0x1e9),'children':_0xbd76e7(0x1df)}),_0x254265(_0x25a302,{'onClick':()=>_0x405c0f[_0xbd76e7(0x1c6)](),'children':_0xbd76e7(0x246)})]});}function He(_0xfa74a0){var _0x4eadf0=_0x39ab13;const {coordinator:_0x16177e}=_0xfa74a0;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265(_0x4eadf0(0x245),{'className':_0x4eadf0(0x1e9),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x254265(_0x25a302,{'onClick':()=>_0x16177e[_0x4eadf0(0x1da)](),'children':_0x4eadf0(0x1e8)})]});}function je(_0x53483e){var _0x2bbd17=_0x39ab13;const {coordinator:_0x3e560d}=_0x53483e;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265(_0x2bbd17(0x245),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2bbd17(0x1e0)}),_0x254265(_0x25a302,{'variant':_0x2bbd17(0x1e4),'onClick':()=>_0x3e560d[_0x2bbd17(0x1cd)](),'children':_0x2bbd17(0x1d0)})]});}function Ue(_0x46740c){var _0x51e54a=_0x39ab13;const {coordinator:_0x592d0a}=_0x46740c;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265(_0x51e54a(0x245),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x254265(_0x25a302,{'variant':_0x51e54a(0x1e7),'onClick':()=>_0x592d0a[_0x51e54a(0x1eb)](),'children':_0x51e54a(0x215)})]});}function Ve(){var _0x54696b=_0x39ab13;return _0x254265(_0xf3a8cd,{'children':_0x54696b(0x212)});}function _0x4f5d(){var _0x52ef5e=['defineProperty','not-following','requireSession','executeCommand','hasOwnProperty','map','unsubscribe','pluginName','sessionStatus$','tag','forEach','reverse','_injector','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','event$','1550298JIvGlb','symbol','status$','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_OPERATION','currentColor','indexOf','asObservable','function','registerComponent','mutations','registerSharedOperation','_univerInstanceService','_stopFollowing','send','_status$','pipe','_commandDisposable','call','_beIdle','_collabSession','LIVESHARE_TERMINATE','dispose','univerjs-icon\x20univerjs-icon-','live-share-icon','disposeWithMe','LiveShareIcon','extend','_config','OFFLINE','attrs','tryStartPresenting','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','_entities','getLiveShareCoordinator','_startLiveShareCoordinator','_status','next','startFollowing','_sharedOperations','idle','Start\x20following','475916pmBOag','_configService','colorChannel1','url(#$1','1pPiDnc','createInstance','has','568336lgjosb','UniverIcon','stopFollowing','children','random','offline','length','Present\x20this\x20document','You\x27re\x20not\x20following\x20the\x20presenter','className','values','getCurrentTypeOfUnit$','text','_stopPresenting','init','default','Stop\x20following','univer-mb-3\x20univer-w-full\x20univer-text-sm','_presenter','stopPresenting','FOLLOWING','clear','_liveShareService','assign','_init','1558452zpufdW','dispose$','subscribe','IDLE','onCommandExecuted','current','LIVESHARE_NEW_HOST','icon','NEW_CHANGESETS','idSuffix','univer-size-4','entries','displayName','complete','_commandService','add','string','_unitID','_handleTerminate','_handleNewChangeSets','1466935ojqjKd','getUnitId','_mountLiveShare','concat','SAME_OPERATION_SHARE_INTERVAL','getValue','delete','_uiPartsService','12807RsOHvJ','UNIVER_LIVE_SHARE_PLUGIN','stringify','683064gFhwpx','toString','You\x27are\x20offline.','find','substring','Stop\x20presenting','_reporters','sheet','onStarting','UNIVER_SHEET','getOwnPropertySymbols','get','trim','from','_handleOperation','includes','then','4210XDpahj','propertyIsEnumerable','prototype','shouldShareOperation','parse','_handleNewHost','button','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','registerInitialStateReporter','OPERATION','4tvRwtt','http://www.w3.org/2000/svg','getInitialStates','path','set','override','NOT_FOLLOWING','PRESENTING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','xlink:href','setConfig','getMemberID','svg','memberID','presenter','params','defIds','fill','presenting','_handleOffline','use','replace','unitId','getOwnPropertyDescriptor','getConfig','div','Start','_collabSessionService','data','_startFollowing','LIVESHARE_REQUEST_HOST'];_0x4f5d=function(){return _0x52ef5e;};return _0x4f5d();}var Me=Object['getOwnPropertyDescriptor'],ke=(_0xfba11e,_0x4bd9f2,_0x431492,_0xa543ae)=>{for(var _0x51ea2c=_0xa543ae>0x1?void 0x0:_0xa543ae?Me(_0x4bd9f2,_0x431492):_0x4bd9f2,_0x29c71a=_0xfba11e['length']-0x1,_0x43b22a;_0x29c71a>=0x0;_0x29c71a--)(_0x43b22a=_0xfba11e[_0x29c71a])&&(_0x51ea2c=_0x43b22a(_0x51ea2c)||_0x51ea2c);return _0x51ea2c;},$=(_0x470529,_0x2a04b1)=>(_0x4208d8,_0x477cb7)=>_0x2a04b1(_0x4208d8,_0x477cb7,_0x470529);let b=class extends _0x3e5697{constructor(_0x53edff,_0x45a169){var _0x795cc4=_0x39ab13;super(),this[_0x795cc4(0x1a4)]=_0x53edff,this[_0x795cc4(0x20c)]=_0x45a169,this[_0x795cc4(0x207)]();}['_mountLiveShare'](){var _0x2abaff=_0x39ab13;this[_0x2abaff(0x1c0)](this['_uiPartsService'][_0x2abaff(0x1b0)](_0x2dcb19['HEADER_MENU'],()=>_0x1dfa84(Te,this[_0x2abaff(0x1a4)])));}};b=ke([$(0x0,_0x1c9dfb(_0x464e72)),$(0x1,_0x253bf3)],b);var Ge=Object[_0x39ab13(0x24b)],We=Object[_0x39ab13(0x243)],Ye=(_0x3b3ceb,_0x470f0a,_0x37827e)=>_0x470f0a in _0x3b3ceb?Ge(_0x3b3ceb,_0x470f0a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37827e}):_0x3b3ceb[_0x470f0a]=_0x37827e,Be=(_0x1e092a,_0x1b2385,_0x2eb2ba,_0x65327d)=>{var _0x154b35=_0x39ab13;for(var _0x294265=_0x65327d>0x1?void 0x0:_0x65327d?We(_0x1b2385,_0x2eb2ba):_0x1b2385,_0x5aaa48=_0x1e092a[_0x154b35(0x1de)]-0x1,_0x1db196;_0x5aaa48>=0x0;_0x5aaa48--)(_0x1db196=_0x1e092a[_0x5aaa48])&&(_0x294265=_0x1db196(_0x294265)||_0x294265);return _0x294265;},F=(_0x2eed5b,_0x5ed84d)=>(_0xd65250,_0x52d0b2)=>_0x5ed84d(_0xd65250,_0x52d0b2,_0x2eed5b),J=(_0x41b937,_0x5ae394,_0x7cb0e8)=>Ye(_0x41b937,typeof _0x5ae394!=_0x39ab13(0x1a8)?_0x5ae394+'':_0x5ae394,_0x7cb0e8);const Ze=_0x39ab13(0x20e);let O=class extends _0xd3dbe{constructor(_0x473f5f=T,_0x5cd59d,_0x1c5835){var _0x195c9a=_0x39ab13;super(),this[_0x195c9a(0x1c3)]=_0x473f5f,this['_injector']=_0x5cd59d,this[_0x195c9a(0x1d2)]=_0x1c5835;const {..._0x2e27bd}=_0x42fa7a({},T,this['_config']);this[_0x195c9a(0x1d2)][_0x195c9a(0x236)](Oe,_0x2e27bd);}[_0x39ab13(0x218)](){var _0x4a004b=_0x39ab13;_0x2a0e63(this[_0x4a004b(0x1a4)],_0x4d573([[L],[I],[m],[b]],this[_0x4a004b(0x1c3)][_0x4a004b(0x230)])),_0x23c0a8(this[_0x4a004b(0x1a4)],[[m]]);}['onRendered'](){var _0x3085db=_0x39ab13;_0x23c0a8(this[_0x3085db(0x1a4)],[[b]]);}};J(O,'type',_0x5c0cf1['UNIVER_UNKNOWN']),J(O,_0x39ab13(0x19f),Ze),O=Be([_0x37ba34(_0x4f1c65),F(0x1,_0x1c9dfb(_0x464e72)),F(0x2,_0x4d4248)],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 _0x49666c=_0x4a10;(function(_0x1d8286,_0x3a0e4d){var _0x4356a6=_0x4a10,_0x403820=_0x1d8286();while(!![]){try{var _0x38bb70=parseInt(_0x4356a6(0x1d7))/0x1+-parseInt(_0x4356a6(0x27b))/0x2*(-parseInt(_0x4356a6(0x25b))/0x3)+-parseInt(_0x4356a6(0x26b))/0x4*(parseInt(_0x4356a6(0x1ed))/0x5)+-parseInt(_0x4356a6(0x275))/0x6+-parseInt(_0x4356a6(0x209))/0x7+-parseInt(_0x4356a6(0x202))/0x8+-parseInt(_0x4356a6(0x255))/0x9*(-parseInt(_0x4356a6(0x276))/0xa);if(_0x38bb70===_0x3a0e4d)break;else _0x403820['push'](_0x403820['shift']());}catch(_0x23466f){_0x403820['push'](_0x403820['shift']());}}}(_0x42a9,0xe07d3));var q=Object[_0x49666c(0x234)],z=(_0x22b56b,_0x2faf43,_0x30985b)=>_0x2faf43 in _0x22b56b?q(_0x22b56b,_0x2faf43,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30985b}):_0x22b56b[_0x2faf43]=_0x30985b,d=(_0x2a5220,_0x126139,_0x1e495c)=>z(_0x2a5220,typeof _0x126139!=_0x49666c(0x27a)?_0x126139+'':_0x126139,_0x1e495c);import{CollaborationSessionService as _0x257097,SessionStatus as _0x678256,UniverCollaborationClientPlugin as _0x12375c}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4187df,toDisposable as _0x313868,Inject as _0x4fde9b,IUniverInstanceService as _0xa2b188,Injector as _0x333a37,IConfigService as _0x3254b8,ICommandService as _0x2cc1b6,RxDisposable as _0x5a5912,UniverInstanceType as _0x499b44,DisposableCollection as _0x5bcf89,CommandType as _0x54dde8,DependentOn as _0x186759,Plugin as _0x2d3e60,merge as _0x4e9c80,registerDependencies as _0x39843d,mergeOverrideWithDependencies as _0x173527,touchDependencies as _0x22ca53}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4e269e,InsertSheetMutation as _0x30fdfb}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2b6bce,SetScrollOperation as _0x181a15}from'@univerjs/sheets-ui';import{useDependency as _0x38c78b,useObservable as _0x10e5cd,IUIPartsService as _0x1ffe74,BuiltInUIPart as _0x493576,connectInjector as _0x1e8d61}from'@univerjs/ui';import{jsx as _0x5aa0a4,jsxs as _0x50fd14,Fragment as _0x3b61db}from'react/jsx-runtime';import{Dropdown as _0x2c8fd7,clsx as _0x4dd1d4,Button as _0x4a6477}from'@univerjs/design';import{forwardRef as _0x4b483d,useRef as _0x23df2b,createElement as _0xcc362d,useState as _0x1ab635,useEffect as _0x6912a2}from'react';import{CollaborationEvent as _0x418854,parseProtocolChangeset as _0x525300}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xe996f4,Subject as _0x2786f3}from'rxjs';import{takeUntil as _0x5bc436,throttleTime as _0x1983d7}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x4187df{constructor(){var _0x8dfc2b=_0x49666c;super(...arguments),d(this,_0x8dfc2b(0x285),new Set()),d(this,_0x8dfc2b(0x23e),new Set());}[_0x49666c(0x259)](_0x1c5fe6){var _0x599143=_0x49666c;return this[_0x599143(0x285)][_0x599143(0x223)](_0x1c5fe6),_0x313868(()=>this[_0x599143(0x285)][_0x599143(0x238)](_0x1c5fe6));}[_0x49666c(0x1f3)](_0x3f1e4f){var _0x194f68=_0x49666c;return this[_0x194f68(0x23e)][_0x194f68(0x223)](_0x3f1e4f),_0x313868(()=>this[_0x194f68(0x23e)][_0x194f68(0x238)](_0x3f1e4f));}['shouldShareOperation'](_0x470d49){var _0x5a5207=_0x49666c;return this[_0x5a5207(0x285)][_0x5a5207(0x1fe)](_0x470d49);}[_0x49666c(0x219)](_0xc514d2){var _0x2548c7=_0x49666c;return Array[_0x2548c7(0x20d)](this['_reporters'])[_0x2548c7(0x260)](_0x227a2b=>_0x227a2b(_0xc514d2));}}var Ee=Object[_0x49666c(0x22d)],we=(_0x1d465d,_0x2cd8ac,_0x5e5b03,_0x3a64b8)=>{var _0x348581=_0x49666c;for(var _0x128316=_0x3a64b8>0x1?void 0x0:_0x3a64b8?Ee(_0x2cd8ac,_0x5e5b03):_0x2cd8ac,_0x306945=_0x1d465d[_0x348581(0x23d)]-0x1,_0x406a46;_0x306945>=0x0;_0x306945--)(_0x406a46=_0x1d465d[_0x306945])&&(_0x128316=_0x406a46(_0x128316)||_0x128316);return _0x128316;},Ne=(_0x5cfdb2,_0x1e4c24)=>(_0x5dcf6c,_0x509a75)=>_0x1e4c24(_0x5dcf6c,_0x509a75,_0x5cfdb2);let m=class extends _0x4187df{constructor(_0x4eec85){var _0x132cb4=_0x49666c;super(),this['_liveShareService']=_0x4eec85,this[_0x132cb4(0x1dd)]();}['_init'](){var _0x4a26d6=_0x49666c;[_0x2b6bce['id'],_0x181a15['id'],_0x4e269e['id']][_0x4a26d6(0x1f1)](_0x8049a=>{var _0x32b9da=_0x4a26d6;this['disposeWithMe'](this[_0x32b9da(0x232)][_0x32b9da(0x259)](_0x8049a));});}};m=we([Ne(0x0,_0x4fde9b(L))],m);var c=function(){var _0x341b69=_0x49666c;return c=Object[_0x341b69(0x22c)]||function(_0x309049){var _0x2d4209=_0x341b69;for(var _0x182580,_0x3e50e8=0x1,_0xcecf4b=arguments[_0x2d4209(0x23d)];_0x3e50e8<_0xcecf4b;_0x3e50e8++){_0x182580=arguments[_0x3e50e8];for(var _0x46dacc in _0x182580)Object[_0x2d4209(0x20b)]['hasOwnProperty'][_0x2d4209(0x22f)](_0x182580,_0x46dacc)&&(_0x309049[_0x46dacc]=_0x182580[_0x46dacc]);}return _0x309049;},c['apply'](this,arguments);},Ce=function(_0xfd027e,_0x51a3a7){var _0x40658e=_0x49666c,_0x10d36c={};for(var _0x464879 in _0xfd027e)Object[_0x40658e(0x20b)][_0x40658e(0x265)][_0x40658e(0x22f)](_0xfd027e,_0x464879)&&_0x51a3a7['indexOf'](_0x464879)<0x0&&(_0x10d36c[_0x464879]=_0xfd027e[_0x464879]);if(_0xfd027e!=null&&typeof Object[_0x40658e(0x261)]==_0x40658e(0x21b)){for(var _0x42c10c=0x0,_0x464879=Object[_0x40658e(0x261)](_0xfd027e);_0x42c10c<_0x464879[_0x40658e(0x23d)];_0x42c10c++)_0x51a3a7[_0x40658e(0x1db)](_0x464879[_0x42c10c])<0x0&&Object[_0x40658e(0x20b)][_0x40658e(0x23a)][_0x40658e(0x22f)](_0xfd027e,_0x464879[_0x42c10c])&&(_0x10d36c[_0x464879[_0x42c10c]]=_0xfd027e[_0x464879[_0x42c10c]]);}return _0x10d36c;},W=_0x4b483d(function(_0x48f708,_0x496801){var _0x595df6=_0x49666c,_0x1ad22b=_0x48f708[_0x595df6(0x24e)],_0x357c8e=_0x48f708['id'],_0x558a12=_0x48f708[_0x595df6(0x222)],_0x238a15=_0x48f708[_0x595df6(0x1fb)],_0x252f63=Ce(_0x48f708,['icon','id',_0x595df6(0x222),_0x595df6(0x1fb)]),_0x17fd2f='univerjs-icon\x20univerjs-icon-'[_0x595df6(0x1fa)](_0x357c8e,'\x20')['concat'](_0x558a12||'')[_0x595df6(0x24d)](),_0x157954=_0x23df2b('_'['concat'](Le()));return Y(_0x1ad22b,''[_0x595df6(0x1fa)](_0x357c8e),{'defIds':_0x1ad22b[_0x595df6(0x253)],'idSuffix':_0x157954['current']},c({'ref':_0x496801,'className':_0x17fd2f},_0x252f63),_0x238a15);});function Y(_0x14a668,_0x5b2b6d,_0x32e7ba,_0x50fdd8,_0x2e2d93){var _0x4a9701=_0x49666c;return _0xcc362d(_0x14a668[_0x4a9701(0x25e)],c(c({'key':_0x5b2b6d},De(_0x14a668,_0x32e7ba,_0x2e2d93)),_0x50fdd8),(xe(_0x14a668,_0x32e7ba)[_0x4a9701(0x1f0)]||[])[_0x4a9701(0x260)](function(_0x5e6f7d,_0x423fe3){var _0x471a01=_0x4a9701;return Y(_0x5e6f7d,''['concat'](_0x5b2b6d,'-')[_0x471a01(0x1fa)](_0x14a668[_0x471a01(0x25e)],'-')[_0x471a01(0x1fa)](_0x423fe3),_0x32e7ba,void 0x0,_0x2e2d93);}));}function De(_0x2e7df0,_0x56ce8f,_0x496d65){var _0x56e0e2=_0x49666c,_0x301e0d=c({},_0x2e7df0[_0x56e0e2(0x206)]);_0x496d65!=null&&_0x496d65['colorChannel1']&&_0x301e0d[_0x56e0e2(0x201)]===_0x56e0e2(0x1f4)&&(_0x301e0d[_0x56e0e2(0x201)]=_0x496d65[_0x56e0e2(0x1f4)]),_0x2e7df0[_0x56e0e2(0x25e)]===_0x56e0e2(0x1e9)&&_0x301e0d['id']&&(_0x301e0d['id']=_0x301e0d['id']+_0x56ce8f[_0x56e0e2(0x25c)]),Object['entries'](_0x301e0d)[_0x56e0e2(0x1f1)](function(_0x108267){var _0x2df1e9=_0x56e0e2,_0x167f74=_0x108267[0x0],_0x5b66b0=_0x108267[0x1];_0x167f74===_0x2df1e9(0x1e9)&&typeof _0x5b66b0==_0x2df1e9(0x27d)&&(_0x301e0d[_0x167f74]=_0x5b66b0['replace'](/url\(#(.*)\)/,_0x2df1e9(0x283)[_0x2df1e9(0x1fa)](_0x56ce8f['idSuffix'],')')));});var _0x5ac2ec=_0x56ce8f['defIds'];return!_0x5ac2ec||_0x5ac2ec['length']===0x0||(_0x2e7df0['tag']===_0x56e0e2(0x23c)&&_0x301e0d[_0x56e0e2(0x215)]&&(_0x301e0d[_0x56e0e2(0x215)]=_0x301e0d[_0x56e0e2(0x215)]+_0x56ce8f[_0x56e0e2(0x25c)]),Object[_0x56e0e2(0x246)](_0x301e0d)['forEach'](function(_0x546c79){var _0x5a3079=_0x56e0e2,_0x4d681c=_0x546c79[0x0],_0x5176d8=_0x546c79[0x1];typeof _0x5176d8==_0x5a3079(0x27d)&&(_0x301e0d[_0x4d681c]=_0x5176d8[_0x5a3079(0x1d4)](/url\(#(.*)\)/,_0x5a3079(0x283)[_0x5a3079(0x1fa)](_0x56ce8f[_0x5a3079(0x25c)],')')));})),_0x301e0d;}function xe(_0x42c9bd,_0x422be1){var _0x8188c5=_0x49666c,_0x24f85d,_0xc4379e=_0x422be1[_0x8188c5(0x253)];return!_0xc4379e||_0xc4379e['length']===0x0?_0x42c9bd:_0x42c9bd['tag']===_0x8188c5(0x211)&&(!((_0x24f85d=_0x42c9bd['children'])===null||_0x24f85d===void 0x0)&&_0x24f85d[_0x8188c5(0x23d)])?c(c({},_0x42c9bd),{'children':_0x42c9bd[_0x8188c5(0x1f0)][_0x8188c5(0x260)](function(_0x595f60){var _0x38139e=_0x8188c5;return typeof _0x595f60['attrs']['id']==_0x38139e(0x27d)&&_0xc4379e&&_0xc4379e[_0x38139e(0x20f)](_0x595f60[_0x38139e(0x206)]['id'])?c(c({},_0x595f60),{'attrs':c(c({},_0x595f60[_0x38139e(0x206)]),{'id':_0x595f60[_0x38139e(0x206)]['id']+_0x422be1[_0x38139e(0x25c)]})}):_0x595f60;})}):_0x42c9bd;}function Le(){var _0x426c84=_0x49666c;return Math[_0x426c84(0x272)]()[_0x426c84(0x212)](0x24)[_0x426c84(0x200)](0x2,0x8);}W[_0x49666c(0x235)]=_0x49666c(0x258);var ye={'tag':_0x49666c(0x26c),'attrs':{'xmlns':_0x49666c(0x249),'fill':_0x49666c(0x1df),'viewBox':_0x49666c(0x279),'width':'1em','height':_0x49666c(0x23f)},'children':[{'tag':_0x49666c(0x217),'attrs':{'fill':'currentColor','d':_0x49666c(0x267)}},{'tag':_0x49666c(0x217),'attrs':{'fill':_0x49666c(0x1f2),'d':_0x49666c(0x248),'fillRule':_0x49666c(0x284),'clipRule':_0x49666c(0x284)}}]},B=_0x4b483d(function(_0x44b4bb,_0x25d6b5){var _0x3f688e=_0x49666c;return _0xcc362d(W,Object[_0x3f688e(0x22c)]({},_0x44b4bb,{'id':_0x3f688e(0x205),'ref':_0x25d6b5,'icon':ye}));});B[_0x49666c(0x235)]=_0x49666c(0x243);var Re=Object[_0x49666c(0x22d)],Z=(_0x3b8d4f,_0xd05319,_0x5954ec,_0x7f3c2a)=>{var _0x6b1997=_0x49666c;for(var _0x1621cd=_0x7f3c2a>0x1?void 0x0:_0x7f3c2a?Re(_0xd05319,_0x5954ec):_0xd05319,_0x32eff9=_0x3b8d4f[_0x6b1997(0x23d)]-0x1,_0x233766;_0x32eff9>=0x0;_0x32eff9--)(_0x233766=_0x3b8d4f[_0x32eff9])&&(_0x1621cd=_0x233766(_0x1621cd)||_0x1621cd);return _0x1621cd;},f=(_0x1982fd,_0x20e268)=>(_0x2ff11b,_0xcf4b3a)=>_0x20e268(_0x2ff11b,_0xcf4b3a,_0x1982fd);let I=class extends _0x5a5912{constructor(_0x2c29e3,_0x4d1e3d,_0x449676){var _0x163af0=_0x49666c;super(),d(this,_0x163af0(0x221),new Map()),(this[_0x163af0(0x22b)]=_0x2c29e3,this['_injector']=_0x4d1e3d,this['_collabSessionService']=_0x449676,this[_0x163af0(0x1dd)]());}async[_0x49666c(0x1f5)](_0x4bc84e){var _0x3d35d8=_0x49666c;return this[_0x3d35d8(0x221)]['has'](_0x4bc84e)||await this[_0x3d35d8(0x1e1)](_0x4bc84e),this[_0x3d35d8(0x221)][_0x3d35d8(0x1fd)](_0x4bc84e);}['_init'](){var _0x4a949d=_0x49666c;this[_0x4a949d(0x22b)]['getTypeOfUnitAdded$'](_0x499b44[_0x4a949d(0x1d9)])[_0x4a949d(0x266)](_0x5bc436(this[_0x4a949d(0x210)]))[_0x4a949d(0x256)](async _0x5c965e=>{var _0x536ba9=_0x4a949d;const _0x331ac9=_0x5c965e['getUnitId']();this['_entities'][_0x536ba9(0x1fe)](_0x331ac9)||this[_0x536ba9(0x1e1)](_0x331ac9);}),this[_0x4a949d(0x22b)]['getTypeOfUnitDisposed$'](_0x499b44[_0x4a949d(0x1d9)])['pipe'](_0x5bc436(this['dispose$']))[_0x4a949d(0x256)](_0x21ede0=>{var _0x56edb9=_0x4a949d;const _0x48f45a=_0x21ede0[_0x56edb9(0x1d5)](),_0x1a8ebd=this[_0x56edb9(0x221)][_0x56edb9(0x1fd)](_0x48f45a);_0x1a8ebd==null||_0x1a8ebd[_0x56edb9(0x1eb)]();});}async['_startLiveShareCoordinator'](_0x35fb2a){var _0x5ed3ba=_0x49666c;const _0x3ee128=await this[_0x5ed3ba(0x268)][_0x5ed3ba(0x21c)](_0x35fb2a),_0x313a0d=this['_injector'][_0x5ed3ba(0x1f7)](C,_0x35fb2a,_0x3ee128);return _0x313a0d[_0x5ed3ba(0x244)](),this[_0x5ed3ba(0x221)][_0x5ed3ba(0x282)](_0x35fb2a,_0x313a0d),_0x313a0d;}};I=Z([f(0x0,_0xa2b188),f(0x1,_0x4fde9b(_0x333a37)),f(0x2,_0x4fde9b(_0x257097))],I);var h=(_0x104098=>(_0x104098[_0x49666c(0x25f)]=_0x49666c(0x269),_0x104098[_0x49666c(0x24f)]=_0x49666c(0x1f9),_0x104098[_0x49666c(0x20a)]=_0x49666c(0x21a),_0x104098[_0x49666c(0x230)]='not-following',_0x104098['PRESENTING']='presenting',_0x104098))(h||{});const Pe=_0x49666c(0x257),Ae=0xc8;let C=class extends _0x5a5912{constructor(_0x57e066,_0x44c7a2,_0x131a4e,_0x458499,_0xe3fa8e){var _0x2cf564=_0x49666c;super(),d(this,_0x2cf564(0x236),new _0xe996f4(_0x2cf564(0x1f9))),d(this,'status$',this['_status$'][_0x2cf564(0x245)]()),d(this,_0x2cf564(0x1dd),!0x1),d(this,'_commandDisposable',null),d(this,_0x2cf564(0x254),null),(this['_unitID']=_0x57e066,this[_0x2cf564(0x25a)]=_0x44c7a2,this[_0x2cf564(0x1de)]=_0x131a4e,this['_liveShareService']=_0x458499,this[_0x2cf564(0x242)]=_0xe3fa8e);}get[_0x49666c(0x280)](){var _0x3f09c6=_0x49666c;return this['_status$'][_0x3f09c6(0x1e8)]();}['dispose'](){var _0x2cbb86=_0x49666c,_0x5f1901;(_0x5f1901=this[_0x2cbb86(0x233)])==null||_0x5f1901[_0x2cbb86(0x1eb)](),this[_0x2cbb86(0x236)][_0x2cbb86(0x23b)](_0x2cbb86(0x1f9)),this[_0x2cbb86(0x236)]['complete']();}[_0x49666c(0x244)](){var _0x172ef1=_0x49666c;this[_0x172ef1(0x1dd)]||(this[_0x172ef1(0x1dd)]=!0x0,this[_0x172ef1(0x25a)]['sessionStatus$']['pipe'](_0x5bc436(this[_0x172ef1(0x210)]))[_0x172ef1(0x256)](_0x1786cc=>{var _0x15525b=_0x172ef1;switch(_0x1786cc){case _0x678256[_0x15525b(0x25f)]:this[_0x15525b(0x216)]();break;case _0x678256['ONLINE']:this[_0x15525b(0x213)]();break;}}),this[_0x172ef1(0x25a)]['event$'][_0x172ef1(0x266)](_0x5bc436(this[_0x172ef1(0x210)]))[_0x172ef1(0x256)](_0x589f7d=>{var _0x29c991=_0x172ef1;const {eventID:_0x4f00aa}=_0x589f7d;switch(_0x4f00aa){case _0x418854[_0x29c991(0x26d)]:this[_0x29c991(0x239)](_0x589f7d);break;case _0x418854[_0x29c991(0x277)]:this[_0x29c991(0x237)](_0x589f7d);break;case _0x418854[_0x29c991(0x1d6)]:this[_0x29c991(0x241)]();break;case _0x418854['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x589f7d);break;}}));}[_0x49666c(0x227)](){var _0x51ed2e=_0x49666c;this[_0x51ed2e(0x25a)][_0x51ed2e(0x225)]({'eventID':_0x418854[_0x51ed2e(0x278)],'data':{'unitID':this[_0x51ed2e(0x224)],'userID':this['_collabSession'][_0x51ed2e(0x1fc)]()}},this[_0x51ed2e(0x224)]);}[_0x49666c(0x228)](){var _0x2aa5ed=_0x49666c;this[_0x2aa5ed(0x280)]===_0x2aa5ed(0x1e7)&&(this['_status$'][_0x2aa5ed(0x23b)](_0x2aa5ed(0x1f9)),this[_0x2aa5ed(0x25a)][_0x2aa5ed(0x225)]({'eventID':_0x418854['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x2aa5ed(0x224)]));}[_0x49666c(0x27e)](){var _0x2dd229=_0x49666c;this['_status']==='not-following'&&(this[_0x2dd229(0x236)]['next']('following'),this[_0x2dd229(0x1e5)]());}['stopFollowing'](){var _0x183355=_0x49666c;this['_status']===_0x183355(0x21a)&&this[_0x183355(0x1da)]();}[_0x49666c(0x239)](_0x5e62f3){var _0x400861=_0x49666c;const {presenter:_0x3b8e86}=_0x5e62f3[_0x400861(0x25d)],_0x445222=this[_0x400861(0x25a)]['getMemberID']();this[_0x400861(0x254)]=_0x3b8e86,_0x3b8e86===_0x445222?(this[_0x400861(0x1da)](),this[_0x400861(0x21f)]()):this[_0x400861(0x280)]!==_0x400861(0x226)&&(this[_0x400861(0x22e)](),this[_0x400861(0x1e5)]());}[_0x49666c(0x1e2)](){var _0x2b82f3=_0x49666c;const _0x4517d5={'eventID':_0x418854[_0x2b82f3(0x1ea)]};this[_0x2b82f3(0x25a)][_0x2b82f3(0x225)](_0x4517d5,this[_0x2b82f3(0x224)]);}['_handleTerminate'](){var _0x47c09c=_0x49666c;this[_0x47c09c(0x254)]=null,this[_0x47c09c(0x280)]!==_0x47c09c(0x1e7)&&this['_beIdle']();}[_0x49666c(0x271)](_0x5039c3){var _0x181021=_0x49666c;if(this[_0x181021(0x280)]===_0x181021(0x21a)&&this[_0x181021(0x254)]===_0x5039c3[_0x181021(0x25d)]['memberID']){const _0x139487=_0x525300(_0x5039c3[_0x181021(0x25d)])[_0x181021(0x262)][_0x181021(0x26a)]()[_0x181021(0x1ee)](_0x3c6d7d=>_0x3c6d7d['id']===_0x30fdfb['id']);if(_0x139487){const _0x4d77a7=_0x139487[_0x181021(0x1d3)][_0x181021(0x1d8)],_0x4523de=_0x139487['params'][_0x181021(0x24a)]['id'];setTimeout(()=>{var _0x414810=_0x181021;this['_commandService'][_0x414810(0x27f)](_0x4e269e['id'],{'unitId':_0x4d77a7,'subUnitId':_0x4523de},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xa0e9ad=_0x49666c;this[_0xa0e9ad(0x236)][_0xa0e9ad(0x23b)]('presenting');const _0x4f31c4=new Map(),_0x5d4abb=this['_commandDisposable']=new _0x5bcf89();_0x5d4abb[_0xa0e9ad(0x223)](_0x313868(()=>{var _0x249ea0=_0xa0e9ad;_0x4f31c4[_0x249ea0(0x1f1)](_0x27668a=>_0x27668a[_0x249ea0(0x1dc)]()),_0x4f31c4[_0x249ea0(0x229)]();})),_0x5d4abb[_0xa0e9ad(0x223)](this[_0xa0e9ad(0x242)][_0xa0e9ad(0x263)](_0x82f3f9=>{var _0x6685e9=_0xa0e9ad,_0x53cbb4;if(_0x82f3f9[_0x6685e9(0x1f8)]!==_0x54dde8[_0x6685e9(0x218)]||!this['_liveShareService']['shouldShareOperation'](_0x82f3f9['id']))return;const {id:_0x4d6ab6}=_0x82f3f9;let _0x3a6058;_0x4f31c4[_0x6685e9(0x1fe)](_0x4d6ab6)?_0x3a6058=_0x4f31c4[_0x6685e9(0x1fd)](_0x4d6ab6):(_0x3a6058=new _0x2786f3(),_0x4f31c4[_0x6685e9(0x282)](_0x4d6ab6,_0x3a6058),_0x3a6058['pipe'](_0x1983d7((_0x53cbb4=this[_0x6685e9(0x1de)]['getConfig'](Pe))!=null?_0x53cbb4:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x6685e9(0x256)](_0x558284=>{var _0x3d381c=_0x6685e9;this[_0x3d381c(0x25a)][_0x3d381c(0x225)]({'eventID':_0x418854['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3d381c(0x224)],'operations':{[_0x558284['id']]:{'id':_0x558284['id'],'params':JSON[_0x3d381c(0x24b)](_0x558284[_0x3d381c(0x1d3)])}}}},this['_unitID']);})),_0x3a6058[_0x6685e9(0x23b)](_0x82f3f9);})),this[_0xa0e9ad(0x232)][_0xa0e9ad(0x219)](this[_0xa0e9ad(0x224)])[_0xa0e9ad(0x1f1)](_0x5d21b6=>this[_0xa0e9ad(0x25a)]['send']({'eventID':_0x418854['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xa0e9ad(0x224)],'operations':{[_0x5d21b6['id']]:{'id':_0x5d21b6['id'],'params':JSON[_0xa0e9ad(0x24b)](_0x5d21b6['params'])}}}},this[_0xa0e9ad(0x224)]));}['_stopPresenting'](){var _0x10cef7=_0x49666c,_0x14810d;this[_0x10cef7(0x236)][_0x10cef7(0x23b)](_0x10cef7(0x1f9)),(_0x14810d=this[_0x10cef7(0x233)])==null||_0x14810d[_0x10cef7(0x1eb)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x2fa585=_0x49666c,_0x5891b5;(_0x5891b5=this[_0x2fa585(0x233)])==null||_0x5891b5['dispose'](),this['_status$']['next'](_0x2fa585(0x21a));}[_0x49666c(0x20e)](){var _0x389b61=_0x49666c,_0x1ba19f;this[_0x389b61(0x236)][_0x389b61(0x23b)](_0x389b61(0x1f9)),(_0x1ba19f=this[_0x389b61(0x233)])==null||_0x1ba19f[_0x389b61(0x1eb)](),this[_0x389b61(0x233)]=null;}[_0x49666c(0x1da)](){var _0x1c9586=_0x49666c,_0x5dcf1a;this[_0x1c9586(0x236)][_0x1c9586(0x23b)](_0x1c9586(0x226)),(_0x5dcf1a=this[_0x1c9586(0x233)])==null||_0x5dcf1a[_0x1c9586(0x1eb)]();}[_0x49666c(0x237)](_0x3d6313){var _0x2316a7=_0x49666c;if([_0x2316a7(0x1e7),_0x2316a7(0x226),_0x2316a7(0x269)]['includes'](this['_status'])||!_0x3d6313[_0x2316a7(0x25d)][_0x2316a7(0x22a)]||_0x3d6313[_0x2316a7(0x25d)]['presenter']===this[_0x2316a7(0x25a)][_0x2316a7(0x1fc)]())return;this[_0x2316a7(0x280)]===_0x2316a7(0x1f9)&&this[_0x2316a7(0x1e5)]();const _0x433c30=_0x3d6313[_0x2316a7(0x25d)]['operations'];Object[_0x2316a7(0x286)](_0x433c30)[_0x2316a7(0x1f1)](_0x2cdd95=>{var _0x162795=_0x2316a7;this[_0x162795(0x242)][_0x162795(0x27f)](_0x2cdd95['id'],_0x2cdd95[_0x162795(0x1d3)]?JSON[_0x162795(0x1e4)](_0x2cdd95[_0x162795(0x1d3)]):null,{'fromCollab':!0x0});});}[_0x49666c(0x216)](){var _0x94bd3c=_0x49666c,_0x2f2790;this[_0x94bd3c(0x236)][_0x94bd3c(0x23b)]('offline'),(_0x2f2790=this[_0x94bd3c(0x233)])==null||_0x2f2790[_0x94bd3c(0x1eb)]();}[_0x49666c(0x213)](){var _0x44bf33=_0x49666c;this['_status$'][_0x44bf33(0x23b)]('idle'),this[_0x44bf33(0x1e2)]();}};C=Z([f(0x2,_0x3254b8),f(0x3,_0x4fde9b(L)),f(0x4,_0x2cc1b6)],C);function Te(){var _0x459b6f=_0x49666c;const _0x44800b=_0x38c78b(I),_0x2feee6=_0x38c78b(_0xa2b188),_0x59ca5b=_0x10e5cd(()=>_0x2feee6[_0x459b6f(0x1e0)](_0x499b44[_0x459b6f(0x1d9)]),void 0x0,!0x1,[]),[_0x59da63,_0x57d340]=_0x1ab635(null),[_0x19a386,_0x56f1f2]=_0x1ab635(h[_0x459b6f(0x24f)]),_0x2eddf1=_0x23df2b(null);return _0x6912a2(()=>(_0x59ca5b&&_0x44800b['getLiveShareCoordinator'](_0x59ca5b[_0x459b6f(0x1d5)]())[_0x459b6f(0x1d2)](_0x4c42d5=>{var _0x14a5f1=_0x459b6f;_0x57d340(_0x4c42d5),_0x2eddf1[_0x14a5f1(0x1e6)]=_0x4c42d5[_0x14a5f1(0x231)][_0x14a5f1(0x256)](_0x147f9f=>{_0x56f1f2(_0x147f9f);});}),()=>{var _0x3da4bf=_0x459b6f,_0x386b11;(_0x386b11=_0x2eddf1[_0x3da4bf(0x1e6)])==null||_0x386b11[_0x3da4bf(0x273)](),_0x2eddf1[_0x3da4bf(0x1e6)]=null;}),[_0x59ca5b,_0x44800b]),_0x59da63?_0x5aa0a4(_0x2c8fd7,{'align':_0x459b6f(0x264),'disabled':_0x19a386===h[_0x459b6f(0x25f)],'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':_0x5aa0a4($e,{'status':_0x19a386,'coordinator':_0x59da63}),'children':_0x5aa0a4(_0x459b6f(0x204),{'className':_0x4dd1d4('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x19a386===h[_0x459b6f(0x25f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x19a386!==h[_0x459b6f(0x25f)]}),'type':'button','children':_0x5aa0a4(B,{'className':'univer-size-4'})})}):null;}function $e(_0xbf4086){var _0x35afb4=_0x49666c;const {status:_0x1e2d03,coordinator:_0x47dd6f}=_0xbf4086;switch(_0x1e2d03){case h['IDLE']:return _0x5aa0a4(Fe,{'coordinator':_0x47dd6f});case h['FOLLOWING']:return _0x5aa0a4(He,{'coordinator':_0x47dd6f});case h[_0x35afb4(0x230)]:return _0x5aa0a4(je,{'coordinator':_0x47dd6f});case h[_0x35afb4(0x25f)]:return _0x5aa0a4(Ve,{});case h[_0x35afb4(0x208)]:return _0x5aa0a4(Ue,{'coordinator':_0x47dd6f});default:return null;}}function Fe(_0x2b1abe){var _0x213a43=_0x49666c;const {coordinator:_0xe0f05c}=_0x2b1abe;return _0x50fd14(_0x3b61db,{'children':[_0x5aa0a4(_0x213a43(0x220),{'className':_0x213a43(0x250),'children':'Present\x20this\x20document'}),_0x5aa0a4(_0x4a6477,{'onClick':()=>_0xe0f05c[_0x213a43(0x227)](),'children':_0x213a43(0x1ef)})]});}function He(_0x1e6c63){var _0x1da9a8=_0x49666c;const {coordinator:_0x1dced3}=_0x1e6c63;return _0x50fd14(_0x3b61db,{'children':[_0x5aa0a4('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1da9a8(0x26f)}),_0x5aa0a4(_0x4a6477,{'onClick':()=>_0x1dced3[_0x1da9a8(0x21e)](),'children':'Stop\x20following'})]});}function je(_0x512a43){var _0x5cd9c2=_0x49666c;const {coordinator:_0x565872}=_0x512a43;return _0x50fd14(_0x3b61db,{'children':[_0x5aa0a4(_0x5cd9c2(0x220),{'className':_0x5cd9c2(0x250),'children':_0x5cd9c2(0x20c)}),_0x5aa0a4(_0x4a6477,{'variant':_0x5cd9c2(0x270),'onClick':()=>_0x565872[_0x5cd9c2(0x27e)](),'children':'Start\x20following'})]});}function Ue(_0x1fa3e4){var _0x39be47=_0x49666c;const {coordinator:_0x578926}=_0x1fa3e4;return _0x50fd14(_0x3b61db,{'children':[_0x5aa0a4(_0x39be47(0x220),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x39be47(0x27c)}),_0x5aa0a4(_0x4a6477,{'variant':_0x39be47(0x247),'onClick':()=>_0x578926['stopPresenting'](),'children':_0x39be47(0x1ff)})]});}function Ve(){var _0x2a0a5d=_0x49666c;return _0x5aa0a4(_0x3b61db,{'children':_0x2a0a5d(0x281)});}function _0x42a9(){var _0x4cbb7d=['init','asObservable','entries','default','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','http://www.w3.org/2000/svg','sheet','stringify','pluginName','trim','icon','IDLE','univer-mb-3\x20univer-w-full\x20univer-text-sm','_injector','onStarting','defIds','_presenter','9kXrxvK','subscribe','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','registerSharedOperation','_collabSession','57rIaYRr','idSuffix','data','tag','OFFLINE','map','getOwnPropertySymbols','mutations','onCommandExecuted','end','hasOwnProperty','pipe','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','_collabSessionService','offline','reverse','430392iEgkIZ','svg','LIVESHARE_NEW_HOST','UNIVER_UNKNOWN','You\x27re\x20following\x20the\x20presenter','text','_handleNewChangeSets','random','unsubscribe','_config','8898852qcbKUB','30916430CneJtN','LIVESHARE_OPERATION','LIVESHARE_REQUEST_HOST','0\x200\x2017\x2017','symbol','85460VdgQPc','You\x27re\x20presenting\x20the\x20document','string','startFollowing','executeCommand','_status','You\x27are\x20offline.','set','url(#$1','evenodd','_sharedOperations','values','then','params','replace','getUnitId','LIVESHARE_TERMINATE','408644OMwvEm','unitId','UNIVER_SHEET','_stopFollowing','indexOf','complete','_init','_configService','none','getCurrentTypeOfUnit$','_startLiveShareCoordinator','_fetchOperations','_uiPartsService','parse','_startFollowing','current','presenting','getValue','mask','LIVESHARE_FETCH_OPERATIONS','dispose','_mountLiveShare','5NqSpMP','find','Start','children','forEach','currentColor','registerInitialStateReporter','colorChannel1','getLiveShareCoordinator','UNIVER_LIVE_SHARE_PLUGIN','createInstance','type','idle','concat','extend','getMemberID','get','has','Stop\x20presenting','substring','fill','6554520pjaCKJ','HEADER_MENU','button','live-share-icon','attrs','registerComponent','PRESENTING','6878165IIljUf','FOLLOWING','prototype','You\x27re\x20not\x20following\x20the\x20presenter','from','_beIdle','includes','dispose$','defs','toString','_handleOnline','override','xlink:href','_handleOffline','path','OPERATION','getInitialStates','following','function','requireSession','disposeWithMe','stopFollowing','_startPresenting','div','_entities','className','add','_unitID','send','not-following','tryStartPresenting','stopPresenting','clear','presenter','_univerInstanceService','assign','getOwnPropertyDescriptor','_stopPresenting','call','NOT_FOLLOWING','status$','_liveShareService','_commandDisposable','defineProperty','displayName','_status$','_handleOperation','delete','_handleNewHost','propertyIsEnumerable','next','use','length','_reporters','1em','onRendered','_handleTerminate','_commandService','LiveShareIcon'];_0x42a9=function(){return _0x4cbb7d;};return _0x42a9();}var Me=Object[_0x49666c(0x22d)],ke=(_0x30de30,_0x3cb51a,_0x1481ab,_0x220d3a)=>{var _0x1ee086=_0x49666c;for(var _0x9108a5=_0x220d3a>0x1?void 0x0:_0x220d3a?Me(_0x3cb51a,_0x1481ab):_0x3cb51a,_0x38f26a=_0x30de30[_0x1ee086(0x23d)]-0x1,_0x546471;_0x38f26a>=0x0;_0x38f26a--)(_0x546471=_0x30de30[_0x38f26a])&&(_0x9108a5=_0x546471(_0x9108a5)||_0x9108a5);return _0x9108a5;},$=(_0x102bbb,_0x213567)=>(_0x204ee1,_0x4e8358)=>_0x213567(_0x204ee1,_0x4e8358,_0x102bbb);function _0x4a10(_0x1c3a8b,_0x5cafdb){var _0x42a924=_0x42a9();return _0x4a10=function(_0x4a10e5,_0x224e7b){_0x4a10e5=_0x4a10e5-0x1d2;var _0x534fad=_0x42a924[_0x4a10e5];return _0x534fad;},_0x4a10(_0x1c3a8b,_0x5cafdb);}let b=class extends _0x4187df{constructor(_0x4fefee,_0x2bb0ad){var _0x431d36=_0x49666c;super(),this['_injector']=_0x4fefee,this[_0x431d36(0x1e3)]=_0x2bb0ad,this[_0x431d36(0x1ec)]();}['_mountLiveShare'](){var _0x63a750=_0x49666c;this[_0x63a750(0x21d)](this[_0x63a750(0x1e3)][_0x63a750(0x207)](_0x493576[_0x63a750(0x203)],()=>_0x1e8d61(Te,this[_0x63a750(0x251)])));}};b=ke([$(0x0,_0x4fde9b(_0x333a37)),$(0x1,_0x1ffe74)],b);var Ge=Object['defineProperty'],We=Object[_0x49666c(0x22d)],Ye=(_0x108475,_0x1eb481,_0x31f284)=>_0x1eb481 in _0x108475?Ge(_0x108475,_0x1eb481,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31f284}):_0x108475[_0x1eb481]=_0x31f284,Be=(_0x506d7b,_0x34850d,_0xcf9fc5,_0x31631e)=>{var _0x2d0fea=_0x49666c;for(var _0x10fbd6=_0x31631e>0x1?void 0x0:_0x31631e?We(_0x34850d,_0xcf9fc5):_0x34850d,_0x4014e8=_0x506d7b[_0x2d0fea(0x23d)]-0x1,_0x3b2aa6;_0x4014e8>=0x0;_0x4014e8--)(_0x3b2aa6=_0x506d7b[_0x4014e8])&&(_0x10fbd6=_0x3b2aa6(_0x10fbd6)||_0x10fbd6);return _0x10fbd6;},F=(_0x5e41dc,_0x28ae6e)=>(_0x223d0f,_0x3a19f1)=>_0x28ae6e(_0x223d0f,_0x3a19f1,_0x5e41dc),J=(_0xeafa4e,_0x285d6a,_0xb544ed)=>Ye(_0xeafa4e,typeof _0x285d6a!=_0x49666c(0x27a)?_0x285d6a+'':_0x285d6a,_0xb544ed);const Ze=_0x49666c(0x1f6);let O=class extends _0x2d3e60{constructor(_0x5f2fc8=T,_0x55657c,_0x3bfd20){var _0x3782d9=_0x49666c;super(),this[_0x3782d9(0x274)]=_0x5f2fc8,this[_0x3782d9(0x251)]=_0x55657c,this[_0x3782d9(0x1de)]=_0x3bfd20;const {..._0x3b2633}=_0x4e9c80({},T,this[_0x3782d9(0x274)]);this['_configService']['setConfig'](Oe,_0x3b2633);}[_0x49666c(0x252)](){var _0x4c3dd3=_0x49666c;_0x39843d(this[_0x4c3dd3(0x251)],_0x173527([[L],[I],[m],[b]],this[_0x4c3dd3(0x274)][_0x4c3dd3(0x214)])),_0x22ca53(this[_0x4c3dd3(0x251)],[[m]]);}[_0x49666c(0x240)](){var _0x30d25a=_0x49666c;_0x22ca53(this[_0x30d25a(0x251)],[[b]]);}};J(O,_0x49666c(0x1f8),_0x499b44[_0x49666c(0x26e)]),J(O,_0x49666c(0x24c),Ze),O=Be([_0x186759(_0x12375c),F(0x1,_0x4fde9b(_0x333a37)),F(0x2,_0x3254b8)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x39ab13=_0x5b4e;(function(_0x4e18fe,_0x3276f1){var _0x473d31=_0x5b4e,_0x119e21=_0x4e18fe();while(!![]){try{var _0x2fd889=-parseInt(_0x473d31(0x1d5))/0x1*(-parseInt(_0x473d31(0x1d1))/0x2)+-parseInt(_0x473d31(0x210))/0x3+parseInt(_0x473d31(0x22b))/0x4*(-parseInt(_0x473d31(0x205))/0x5)+-parseInt(_0x473d31(0x1a7))/0x6+parseInt(_0x473d31(0x1f1))/0x7+-parseInt(_0x473d31(0x1d8))/0x8+-parseInt(_0x473d31(0x20d))/0x9*(-parseInt(_0x473d31(0x221))/0xa);if(_0x2fd889===_0x3276f1)break;else _0x119e21['push'](_0x119e21['shift']());}catch(_0x2661a4){_0x119e21['push'](_0x119e21['shift']());}}}(_0x4f5d,0x33119));var q=Object[_0x39ab13(0x24b)],z=(_0x445de6,_0x2df7e1,_0x3b046f)=>_0x2df7e1 in _0x445de6?q(_0x445de6,_0x2df7e1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b046f}):_0x445de6[_0x2df7e1]=_0x3b046f,d=(_0x3f6b24,_0x5b6c87,_0x49fe9a)=>z(_0x3f6b24,typeof _0x5b6c87!='symbol'?_0x5b6c87+'':_0x5b6c87,_0x49fe9a);import{CollaborationSessionService as _0x5ad299,SessionStatus as _0x2b95f4,UniverCollaborationClientPlugin as _0x4f1c65}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3e5697,toDisposable as _0x5013eb,Inject as _0x1c9dfb,IUniverInstanceService as _0x29d1ed,Injector as _0x464e72,IConfigService as _0x4d4248,ICommandService as _0x2a3247,RxDisposable as _0x22e39e,UniverInstanceType as _0x5c0cf1,DisposableCollection as _0x132033,CommandType as _0x16403c,DependentOn as _0x37ba34,Plugin as _0xd3dbe,merge as _0x42fa7a,registerDependencies as _0x2a0e63,mergeOverrideWithDependencies as _0x4d573,touchDependencies as _0x23c0a8}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x89ee5d,InsertSheetMutation as _0x1e530f}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x16daff,SetScrollOperation as _0x5dc59e}from'@univerjs/sheets-ui';import{useDependency as _0x222417,useObservable as _0x4c99ef,IUIPartsService as _0x253bf3,BuiltInUIPart as _0x2dcb19,connectInjector as _0x1dfa84}from'@univerjs/ui';import{jsx as _0x254265,jsxs as _0x4b2b03,Fragment as _0xf3a8cd}from'react/jsx-runtime';import{Dropdown as _0x313750,clsx as _0x3011bc,Button as _0x25a302}from'@univerjs/design';import{forwardRef as _0x5ed3cd,useRef as _0x2b93c5,createElement as _0x315ed0,useState as _0x5b9a8e,useEffect as _0x3c6202}from'react';import{CollaborationEvent as _0x48bb46,parseProtocolChangeset as _0x452197}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xe254f1,Subject as _0x14561}from'rxjs';import{takeUntil as _0x54001b,throttleTime as _0x11bdb2}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x3e5697{constructor(){var _0x55c512=_0x39ab13;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x55c512(0x216),new Set());}[_0x39ab13(0x1b2)](_0x477b90){var _0x156745=_0x39ab13;return this[_0x156745(0x1ce)][_0x156745(0x200)](_0x477b90),_0x5013eb(()=>this[_0x156745(0x1ce)]['delete'](_0x477b90));}[_0x39ab13(0x229)](_0x53c423){var _0xff77b1=_0x39ab13;return this[_0xff77b1(0x216)][_0xff77b1(0x200)](_0x53c423),_0x5013eb(()=>this[_0xff77b1(0x216)][_0xff77b1(0x20b)](_0x53c423));}[_0x39ab13(0x224)](_0x1d1893){var _0x44ca5b=_0x39ab13;return this[_0x44ca5b(0x1ce)]['has'](_0x1d1893);}[_0x39ab13(0x22d)](_0x3f3396){var _0x3647c0=_0x39ab13;return Array[_0x3647c0(0x21d)](this[_0x3647c0(0x216)])['map'](_0x3044cb=>_0x3044cb(_0x3f3396));}}function _0x5b4e(_0x441251,_0x575071){var _0x4f5dea=_0x4f5d();return _0x5b4e=function(_0x5b4e2e,_0x201403){_0x5b4e2e=_0x5b4e2e-0x19d;var _0x3fa836=_0x4f5dea[_0x5b4e2e];return _0x3fa836;},_0x5b4e(_0x441251,_0x575071);}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x54da9f,_0x515bf4,_0x517656,_0x49cbb8)=>{var _0x296b03=_0x39ab13;for(var _0x1e21db=_0x49cbb8>0x1?void 0x0:_0x49cbb8?Ee(_0x515bf4,_0x517656):_0x515bf4,_0x4db5e5=_0x54da9f[_0x296b03(0x1de)]-0x1,_0x3908ee;_0x4db5e5>=0x0;_0x4db5e5--)(_0x3908ee=_0x54da9f[_0x4db5e5])&&(_0x1e21db=_0x3908ee(_0x1e21db)||_0x1e21db);return _0x1e21db;},Ne=(_0xca5fed,_0x33e108)=>(_0x3f45a8,_0x3b09b2)=>_0x33e108(_0x3f45a8,_0x3b09b2,_0xca5fed);let m=class extends _0x3e5697{constructor(_0x2bd166){var _0x42c47f=_0x39ab13;super(),this[_0x42c47f(0x1ee)]=_0x2bd166,this[_0x42c47f(0x1f0)]();}['_init'](){var _0x3219d0=_0x39ab13;[_0x16daff['id'],_0x5dc59e['id'],_0x89ee5d['id']][_0x3219d0(0x1a2)](_0xd947e2=>{var _0x46d956=_0x3219d0;this[_0x46d956(0x1c0)](this[_0x46d956(0x1ee)][_0x46d956(0x1b2)](_0xd947e2));});}};m=we([Ne(0x0,_0x1c9dfb(L))],m);var c=function(){var _0x43aca1=_0x39ab13;return c=Object[_0x43aca1(0x1ef)]||function(_0x135b00){var _0x768c0=_0x43aca1;for(var _0x17d153,_0x2b33d0=0x1,_0x3ba329=arguments[_0x768c0(0x1de)];_0x2b33d0<_0x3ba329;_0x2b33d0++){_0x17d153=arguments[_0x2b33d0];for(var _0x3f9ab3 in _0x17d153)Object[_0x768c0(0x223)]['hasOwnProperty'][_0x768c0(0x1b9)](_0x17d153,_0x3f9ab3)&&(_0x135b00[_0x3f9ab3]=_0x17d153[_0x3f9ab3]);}return _0x135b00;},c['apply'](this,arguments);},Ce=function(_0x4b6d7f,_0x52ffce){var _0x29a860=_0x39ab13,_0x1e58bd={};for(var _0x2d3dfc in _0x4b6d7f)Object[_0x29a860(0x223)][_0x29a860(0x24f)][_0x29a860(0x1b9)](_0x4b6d7f,_0x2d3dfc)&&_0x52ffce[_0x29a860(0x1ad)](_0x2d3dfc)<0x0&&(_0x1e58bd[_0x2d3dfc]=_0x4b6d7f[_0x2d3dfc]);if(_0x4b6d7f!=null&&typeof Object[_0x29a860(0x21a)]==_0x29a860(0x1af)){for(var _0x54b65e=0x0,_0x2d3dfc=Object['getOwnPropertySymbols'](_0x4b6d7f);_0x54b65e<_0x2d3dfc['length'];_0x54b65e++)_0x52ffce[_0x29a860(0x1ad)](_0x2d3dfc[_0x54b65e])<0x0&&Object[_0x29a860(0x223)][_0x29a860(0x222)][_0x29a860(0x1b9)](_0x4b6d7f,_0x2d3dfc[_0x54b65e])&&(_0x1e58bd[_0x2d3dfc[_0x54b65e]]=_0x4b6d7f[_0x2d3dfc[_0x54b65e]]);}return _0x1e58bd;},W=_0x5ed3cd(function(_0x3f4609,_0x44ef17){var _0x5a3137=_0x39ab13,_0x31b750=_0x3f4609[_0x5a3137(0x1f8)],_0x2ca497=_0x3f4609['id'],_0x24a17b=_0x3f4609[_0x5a3137(0x1e1)],_0x565adb=_0x3f4609[_0x5a3137(0x1c2)],_0x425766=Ce(_0x3f4609,['icon','id',_0x5a3137(0x1e1),_0x5a3137(0x1c2)]),_0x2a44bc=_0x5a3137(0x1be)[_0x5a3137(0x208)](_0x2ca497,'\x20')[_0x5a3137(0x208)](_0x24a17b||'')[_0x5a3137(0x21c)](),_0x5f19d8=_0x2b93c5('_'[_0x5a3137(0x208)](Le()));return Y(_0x31b750,''['concat'](_0x2ca497),{'defIds':_0x31b750[_0x5a3137(0x23c)],'idSuffix':_0x5f19d8[_0x5a3137(0x1f6)]},c({'ref':_0x44ef17,'className':_0x2a44bc},_0x425766),_0x565adb);});function Y(_0x4cb8e8,_0x860e36,_0x776e4f,_0x22f651,_0x1c9d27){var _0x407a7c=_0x39ab13;return _0x315ed0(_0x4cb8e8[_0x407a7c(0x1a1)],c(c({'key':_0x860e36},De(_0x4cb8e8,_0x776e4f,_0x1c9d27)),_0x22f651),(xe(_0x4cb8e8,_0x776e4f)[_0x407a7c(0x1db)]||[])[_0x407a7c(0x19d)](function(_0x467962,_0x3c57d9){var _0x263110=_0x407a7c;return Y(_0x467962,''[_0x263110(0x208)](_0x860e36,'-')[_0x263110(0x208)](_0x4cb8e8['tag'],'-')[_0x263110(0x208)](_0x3c57d9),_0x776e4f,void 0x0,_0x1c9d27);}));}function De(_0x2a17da,_0x5caf67,_0x56933e){var _0x10f92d=_0x39ab13,_0x4dbd73=c({},_0x2a17da['attrs']);_0x56933e!=null&&_0x56933e[_0x10f92d(0x1d3)]&&_0x4dbd73[_0x10f92d(0x23d)]===_0x10f92d(0x1d3)&&(_0x4dbd73[_0x10f92d(0x23d)]=_0x56933e['colorChannel1']),_0x2a17da[_0x10f92d(0x1a1)]==='mask'&&_0x4dbd73['id']&&(_0x4dbd73['id']=_0x4dbd73['id']+_0x5caf67[_0x10f92d(0x1fa)]),Object[_0x10f92d(0x1fc)](_0x4dbd73)[_0x10f92d(0x1a2)](function(_0x3d66f2){var _0x23776f=_0x10f92d,_0x165b35=_0x3d66f2[0x0],_0x32e8db=_0x3d66f2[0x1];_0x165b35==='mask'&&typeof _0x32e8db==_0x23776f(0x201)&&(_0x4dbd73[_0x165b35]=_0x32e8db[_0x23776f(0x241)](/url\(#(.*)\)/,_0x23776f(0x1d4)[_0x23776f(0x208)](_0x5caf67['idSuffix'],')')));});var _0x441ead=_0x5caf67[_0x10f92d(0x23c)];return!_0x441ead||_0x441ead[_0x10f92d(0x1de)]===0x0||(_0x2a17da[_0x10f92d(0x1a1)]===_0x10f92d(0x240)&&_0x4dbd73[_0x10f92d(0x235)]&&(_0x4dbd73[_0x10f92d(0x235)]=_0x4dbd73['xlink:href']+_0x5caf67[_0x10f92d(0x1fa)]),Object[_0x10f92d(0x1fc)](_0x4dbd73)[_0x10f92d(0x1a2)](function(_0x2b2092){var _0x51912c=_0x10f92d,_0x645ba1=_0x2b2092[0x0],_0x2a9989=_0x2b2092[0x1];typeof _0x2a9989==_0x51912c(0x201)&&(_0x4dbd73[_0x645ba1]=_0x2a9989[_0x51912c(0x241)](/url\(#(.*)\)/,'url(#$1'[_0x51912c(0x208)](_0x5caf67[_0x51912c(0x1fa)],')')));})),_0x4dbd73;}function xe(_0x32bb4f,_0x3b1d29){var _0x510e2e=_0x39ab13,_0x57ebf6,_0x4a0980=_0x3b1d29['defIds'];return!_0x4a0980||_0x4a0980[_0x510e2e(0x1de)]===0x0?_0x32bb4f:_0x32bb4f[_0x510e2e(0x1a1)]==='defs'&&(!((_0x57ebf6=_0x32bb4f['children'])===null||_0x57ebf6===void 0x0)&&_0x57ebf6[_0x510e2e(0x1de)])?c(c({},_0x32bb4f),{'children':_0x32bb4f[_0x510e2e(0x1db)]['map'](function(_0x567bf1){var _0x16883b=_0x510e2e;return typeof _0x567bf1[_0x16883b(0x1c5)]['id']==_0x16883b(0x201)&&_0x4a0980&&_0x4a0980[_0x16883b(0x21f)](_0x567bf1['attrs']['id'])?c(c({},_0x567bf1),{'attrs':c(c({},_0x567bf1[_0x16883b(0x1c5)]),{'id':_0x567bf1[_0x16883b(0x1c5)]['id']+_0x3b1d29[_0x16883b(0x1fa)]})}):_0x567bf1;})}):_0x32bb4f;}function Le(){var _0x588479=_0x39ab13;return Math[_0x588479(0x1dc)]()[_0x588479(0x211)](0x24)[_0x588479(0x214)](0x2,0x8);}W[_0x39ab13(0x1fd)]=_0x39ab13(0x1d9);var ye={'tag':_0x39ab13(0x238),'attrs':{'xmlns':_0x39ab13(0x22c),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x39ab13(0x22e),'attrs':{'fill':_0x39ab13(0x1ac),'d':_0x39ab13(0x228)}},{'tag':_0x39ab13(0x22e),'attrs':{'fill':_0x39ab13(0x1ac),'d':_0x39ab13(0x1c7),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x5ed3cd(function(_0x32b528,_0x221a72){var _0x5885e1=_0x39ab13;return _0x315ed0(W,Object['assign']({},_0x32b528,{'id':_0x5885e1(0x1bf),'ref':_0x221a72,'icon':ye}));});B[_0x39ab13(0x1fd)]=_0x39ab13(0x1c1);var Re=Object[_0x39ab13(0x243)],Z=(_0x2858fb,_0x26827f,_0xdd19b8,_0x567ba4)=>{var _0x18d793=_0x39ab13;for(var _0x15ec61=_0x567ba4>0x1?void 0x0:_0x567ba4?Re(_0x26827f,_0xdd19b8):_0x26827f,_0x2a4c25=_0x2858fb[_0x18d793(0x1de)]-0x1,_0x213093;_0x2a4c25>=0x0;_0x2a4c25--)(_0x213093=_0x2858fb[_0x2a4c25])&&(_0x15ec61=_0x213093(_0x15ec61)||_0x15ec61);return _0x15ec61;},f=(_0x460c6f,_0x472ddb)=>(_0x4d57e4,_0x1bbe8c)=>_0x472ddb(_0x4d57e4,_0x1bbe8c,_0x460c6f);let I=class extends _0x22e39e{constructor(_0x4ee4b0,_0xaf01ea,_0x32de97){var _0x5dd880=_0x39ab13;super(),d(this,_0x5dd880(0x1c8),new Map()),(this[_0x5dd880(0x1b3)]=_0x4ee4b0,this[_0x5dd880(0x1a4)]=_0xaf01ea,this[_0x5dd880(0x247)]=_0x32de97,this[_0x5dd880(0x1f0)]());}async[_0x39ab13(0x1c9)](_0x4a8ddf){var _0x32c7a6=_0x39ab13;return this[_0x32c7a6(0x1c8)][_0x32c7a6(0x1d7)](_0x4a8ddf)||await this['_startLiveShareCoordinator'](_0x4a8ddf),this[_0x32c7a6(0x1c8)][_0x32c7a6(0x21b)](_0x4a8ddf);}['_init'](){var _0x21bc90=_0x39ab13;this[_0x21bc90(0x1b3)]['getTypeOfUnitAdded$'](_0x5c0cf1[_0x21bc90(0x219)])[_0x21bc90(0x1b7)](_0x54001b(this[_0x21bc90(0x1f2)]))[_0x21bc90(0x1f3)](async _0x5c2cc6=>{var _0x3e4434=_0x21bc90;const _0x2fe247=_0x5c2cc6[_0x3e4434(0x206)]();this[_0x3e4434(0x1c8)][_0x3e4434(0x1d7)](_0x2fe247)||this[_0x3e4434(0x1ca)](_0x2fe247);}),this[_0x21bc90(0x1b3)]['getTypeOfUnitDisposed$'](_0x5c0cf1[_0x21bc90(0x219)])[_0x21bc90(0x1b7)](_0x54001b(this[_0x21bc90(0x1f2)]))[_0x21bc90(0x1f3)](_0xf0c791=>{var _0x49478a=_0x21bc90;const _0x10c048=_0xf0c791[_0x49478a(0x206)](),_0x14c3c3=this[_0x49478a(0x1c8)][_0x49478a(0x21b)](_0x10c048);_0x14c3c3==null||_0x14c3c3[_0x49478a(0x1bd)]();});}async[_0x39ab13(0x1ca)](_0x11547e){var _0x4f0a69=_0x39ab13;const _0xcaa47b=await this[_0x4f0a69(0x247)][_0x4f0a69(0x24d)](_0x11547e),_0x576e89=this[_0x4f0a69(0x1a4)][_0x4f0a69(0x1d6)](C,_0x11547e,_0xcaa47b);return _0x576e89[_0x4f0a69(0x1e6)](),this[_0x4f0a69(0x1c8)]['set'](_0x11547e,_0x576e89),_0x576e89;}};I=Z([f(0x0,_0x29d1ed),f(0x1,_0x1c9dfb(_0x464e72)),f(0x2,_0x1c9dfb(_0x5ad299))],I);var h=(_0x127e0d=>(_0x127e0d[_0x39ab13(0x1c4)]=_0x39ab13(0x1dd),_0x127e0d[_0x39ab13(0x1f4)]=_0x39ab13(0x1cf),_0x127e0d[_0x39ab13(0x1ec)]=_0x39ab13(0x234),_0x127e0d['NOT_FOLLOWING']=_0x39ab13(0x24c),_0x127e0d[_0x39ab13(0x232)]='presenting',_0x127e0d))(h||{});const Pe=_0x39ab13(0x209),Ae=0xc8;let C=class extends _0x22e39e{constructor(_0x5dad62,_0x584743,_0x1cce1b,_0x243ee3,_0x347ba7){var _0x2ee09d=_0x39ab13;super(),d(this,_0x2ee09d(0x1b6),new _0xe254f1(_0x2ee09d(0x1cf))),d(this,_0x2ee09d(0x1a9),this[_0x2ee09d(0x1b6)][_0x2ee09d(0x1ae)]()),d(this,'_init',!0x1),d(this,_0x2ee09d(0x1b8),null),d(this,_0x2ee09d(0x1ea),null),(this[_0x2ee09d(0x202)]=_0x5dad62,this[_0x2ee09d(0x1bb)]=_0x584743,this[_0x2ee09d(0x1d2)]=_0x1cce1b,this[_0x2ee09d(0x1ee)]=_0x243ee3,this[_0x2ee09d(0x1ff)]=_0x347ba7);}get[_0x39ab13(0x1cb)](){var _0x228b18=_0x39ab13;return this[_0x228b18(0x1b6)][_0x228b18(0x20a)]();}[_0x39ab13(0x1bd)](){var _0x2ed2bf=_0x39ab13,_0x114227;(_0x114227=this[_0x2ed2bf(0x1b8)])==null||_0x114227[_0x2ed2bf(0x1bd)](),this['_status$'][_0x2ed2bf(0x1cc)](_0x2ed2bf(0x1cf)),this[_0x2ed2bf(0x1b6)][_0x2ed2bf(0x1fe)]();}[_0x39ab13(0x1e6)](){var _0x447967=_0x39ab13;this['_init']||(this[_0x447967(0x1f0)]=!0x0,this[_0x447967(0x1bb)][_0x447967(0x1a0)][_0x447967(0x1b7)](_0x54001b(this[_0x447967(0x1f2)]))['subscribe'](_0x4ecde6=>{switch(_0x4ecde6){case _0x2b95f4['OFFLINE']:this['_handleOffline']();break;case _0x2b95f4['ONLINE']:this['_handleOnline']();break;}}),this[_0x447967(0x1bb)][_0x447967(0x1a6)][_0x447967(0x1b7)](_0x54001b(this[_0x447967(0x1f2)]))[_0x447967(0x1f3)](_0x5d8123=>{var _0x576ab3=_0x447967;const {eventID:_0x2dc0a4}=_0x5d8123;switch(_0x2dc0a4){case _0x48bb46[_0x576ab3(0x1f7)]:this[_0x576ab3(0x226)](_0x5d8123);break;case _0x48bb46[_0x576ab3(0x1ab)]:this['_handleOperation'](_0x5d8123);break;case _0x48bb46[_0x576ab3(0x1bc)]:this[_0x576ab3(0x203)]();break;case _0x48bb46[_0x576ab3(0x1f9)]:this['_handleNewChangeSets'](_0x5d8123);break;}}));}[_0x39ab13(0x1c6)](){var _0x324e8d=_0x39ab13;this[_0x324e8d(0x1bb)]['send']({'eventID':_0x48bb46[_0x324e8d(0x24a)],'data':{'unitID':this[_0x324e8d(0x202)],'userID':this[_0x324e8d(0x1bb)][_0x324e8d(0x237)]()}},this['_unitID']);}['stopPresenting'](){var _0x189040=_0x39ab13;this['_status']===_0x189040(0x23e)&&(this[_0x189040(0x1b6)]['next'](_0x189040(0x1cf)),this[_0x189040(0x1bb)][_0x189040(0x1b5)]({'eventID':_0x48bb46[_0x189040(0x1bc)],'data':{'unitID':this[_0x189040(0x202)]}},this[_0x189040(0x202)]));}['startFollowing'](){var _0x33cc47=_0x39ab13;this[_0x33cc47(0x1cb)]===_0x33cc47(0x24c)&&(this[_0x33cc47(0x1b6)][_0x33cc47(0x1cc)](_0x33cc47(0x234)),this[_0x33cc47(0x249)]());}[_0x39ab13(0x1da)](){var _0x14df83=_0x39ab13;this[_0x14df83(0x1cb)]===_0x14df83(0x234)&&this[_0x14df83(0x1b4)]();}[_0x39ab13(0x226)](_0x3d5364){var _0x2d1187=_0x39ab13;const {presenter:_0x159323}=_0x3d5364[_0x2d1187(0x248)],_0x2e3c65=this[_0x2d1187(0x1bb)][_0x2d1187(0x237)]();this[_0x2d1187(0x1ea)]=_0x159323,_0x159323===_0x2e3c65?(this[_0x2d1187(0x1b4)](),this['_startPresenting']()):this[_0x2d1187(0x1cb)]!==_0x2d1187(0x24c)&&(this[_0x2d1187(0x1e5)](),this[_0x2d1187(0x249)]());}['_fetchOperations'](){var _0x153cc0=_0x39ab13;const _0x9b7e16={'eventID':_0x48bb46[_0x153cc0(0x1aa)]};this[_0x153cc0(0x1bb)][_0x153cc0(0x1b5)](_0x9b7e16,this[_0x153cc0(0x202)]);}['_handleTerminate'](){var _0x5e1c03=_0x39ab13;this[_0x5e1c03(0x1ea)]=null,this[_0x5e1c03(0x1cb)]!==_0x5e1c03(0x23e)&&this['_beIdle']();}[_0x39ab13(0x204)](_0xeb9bae){var _0x30f9ef=_0x39ab13;if(this['_status']===_0x30f9ef(0x234)&&this[_0x30f9ef(0x1ea)]===_0xeb9bae['data'][_0x30f9ef(0x239)]){const _0x485e06=_0x452197(_0xeb9bae[_0x30f9ef(0x248)])[_0x30f9ef(0x1b1)][_0x30f9ef(0x1a3)]()[_0x30f9ef(0x213)](_0x327d43=>_0x327d43['id']===_0x1e530f['id']);if(_0x485e06){const _0x17ec92=_0x485e06[_0x30f9ef(0x23b)][_0x30f9ef(0x242)],_0xfd9ce0=_0x485e06[_0x30f9ef(0x23b)][_0x30f9ef(0x217)]['id'];setTimeout(()=>{var _0x3bf54e=_0x30f9ef;this['_commandService'][_0x3bf54e(0x24e)](_0x89ee5d['id'],{'unitId':_0x17ec92,'subUnitId':_0xfd9ce0},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4f8fb3=_0x39ab13;this[_0x4f8fb3(0x1b6)][_0x4f8fb3(0x1cc)](_0x4f8fb3(0x23e));const _0x2a0a9a=new Map(),_0x37f4ae=this[_0x4f8fb3(0x1b8)]=new _0x132033();_0x37f4ae[_0x4f8fb3(0x200)](_0x5013eb(()=>{var _0x5623f1=_0x4f8fb3;_0x2a0a9a[_0x5623f1(0x1a2)](_0x583e00=>_0x583e00[_0x5623f1(0x1fe)]()),_0x2a0a9a[_0x5623f1(0x1ed)]();})),_0x37f4ae['add'](this[_0x4f8fb3(0x1ff)][_0x4f8fb3(0x1f5)](_0x46e4b3=>{var _0x32efe3=_0x4f8fb3,_0x1220d3;if(_0x46e4b3['type']!==_0x16403c[_0x32efe3(0x22a)]||!this[_0x32efe3(0x1ee)][_0x32efe3(0x224)](_0x46e4b3['id']))return;const {id:_0xa9123d}=_0x46e4b3;let _0x34f024;_0x2a0a9a['has'](_0xa9123d)?_0x34f024=_0x2a0a9a['get'](_0xa9123d):(_0x34f024=new _0x14561(),_0x2a0a9a[_0x32efe3(0x22f)](_0xa9123d,_0x34f024),_0x34f024[_0x32efe3(0x1b7)](_0x11bdb2((_0x1220d3=this['_configService'][_0x32efe3(0x244)](Pe))!=null?_0x1220d3:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x32efe3(0x1f3)](_0x1fd228=>{var _0x25230e=_0x32efe3;this[_0x25230e(0x1bb)][_0x25230e(0x1b5)]({'eventID':_0x48bb46[_0x25230e(0x1ab)],'data':{'unitID':this['_unitID'],'operations':{[_0x1fd228['id']]:{'id':_0x1fd228['id'],'params':JSON[_0x25230e(0x20f)](_0x1fd228['params'])}}}},this[_0x25230e(0x202)]);})),_0x34f024[_0x32efe3(0x1cc)](_0x46e4b3);})),this[_0x4f8fb3(0x1ee)]['getInitialStates'](this[_0x4f8fb3(0x202)])[_0x4f8fb3(0x1a2)](_0x3ab932=>this[_0x4f8fb3(0x1bb)][_0x4f8fb3(0x1b5)]({'eventID':_0x48bb46['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4f8fb3(0x202)],'operations':{[_0x3ab932['id']]:{'id':_0x3ab932['id'],'params':JSON[_0x4f8fb3(0x20f)](_0x3ab932[_0x4f8fb3(0x23b)])}}}},this[_0x4f8fb3(0x202)]));}['_stopPresenting'](){var _0x3200d1=_0x39ab13,_0x1febda;this[_0x3200d1(0x1b6)]['next']('idle'),(_0x1febda=this[_0x3200d1(0x1b8)])==null||_0x1febda['dispose'](),this['_commandDisposable']=null;}[_0x39ab13(0x249)](){var _0x5920ef=_0x39ab13,_0x11f105;(_0x11f105=this[_0x5920ef(0x1b8)])==null||_0x11f105[_0x5920ef(0x1bd)](),this[_0x5920ef(0x1b6)]['next']('following');}[_0x39ab13(0x1ba)](){var _0x53d91a=_0x39ab13,_0x5cfd6d;this[_0x53d91a(0x1b6)][_0x53d91a(0x1cc)]('idle'),(_0x5cfd6d=this[_0x53d91a(0x1b8)])==null||_0x5cfd6d[_0x53d91a(0x1bd)](),this['_commandDisposable']=null;}[_0x39ab13(0x1b4)](){var _0x93ac13=_0x39ab13,_0x51967e;this[_0x93ac13(0x1b6)][_0x93ac13(0x1cc)](_0x93ac13(0x24c)),(_0x51967e=this[_0x93ac13(0x1b8)])==null||_0x51967e[_0x93ac13(0x1bd)]();}[_0x39ab13(0x21e)](_0xde4013){var _0x1c54f6=_0x39ab13;if(['presenting',_0x1c54f6(0x24c),'offline'][_0x1c54f6(0x21f)](this[_0x1c54f6(0x1cb)])||!_0xde4013[_0x1c54f6(0x248)][_0x1c54f6(0x23a)]||_0xde4013[_0x1c54f6(0x248)][_0x1c54f6(0x23a)]===this[_0x1c54f6(0x1bb)]['getMemberID']())return;this[_0x1c54f6(0x1cb)]==='idle'&&this[_0x1c54f6(0x249)]();const _0x587b04=_0xde4013[_0x1c54f6(0x248)]['operations'];Object[_0x1c54f6(0x1e2)](_0x587b04)[_0x1c54f6(0x1a2)](_0x121121=>{var _0x2526b4=_0x1c54f6;this[_0x2526b4(0x1ff)][_0x2526b4(0x24e)](_0x121121['id'],_0x121121[_0x2526b4(0x23b)]?JSON[_0x2526b4(0x225)](_0x121121['params']):null,{'fromCollab':!0x0});});}[_0x39ab13(0x23f)](){var _0x47179d=_0x39ab13,_0x35e674;this[_0x47179d(0x1b6)][_0x47179d(0x1cc)](_0x47179d(0x1dd)),(_0x35e674=this[_0x47179d(0x1b8)])==null||_0x35e674[_0x47179d(0x1bd)]();}['_handleOnline'](){var _0x99d950=_0x39ab13;this[_0x99d950(0x1b6)][_0x99d950(0x1cc)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x4d4248),f(0x3,_0x1c9dfb(L)),f(0x4,_0x2a3247)],C);function Te(){var _0x2ee89d=_0x39ab13;const _0x47efca=_0x222417(I),_0x509158=_0x222417(_0x29d1ed),_0x42fdad=_0x4c99ef(()=>_0x509158[_0x2ee89d(0x1e3)](_0x5c0cf1[_0x2ee89d(0x219)]),void 0x0,!0x1,[]),[_0x3469fe,_0x23efe8]=_0x5b9a8e(null),[_0xf75bf3,_0x170647]=_0x5b9a8e(h[_0x2ee89d(0x1f4)]),_0x44dfe4=_0x2b93c5(null);return _0x3c6202(()=>(_0x42fdad&&_0x47efca[_0x2ee89d(0x1c9)](_0x42fdad[_0x2ee89d(0x206)]())[_0x2ee89d(0x220)](_0x1f1c41=>{var _0x36f943=_0x2ee89d;_0x23efe8(_0x1f1c41),_0x44dfe4[_0x36f943(0x1f6)]=_0x1f1c41[_0x36f943(0x1a9)][_0x36f943(0x1f3)](_0x4043f2=>{_0x170647(_0x4043f2);});}),()=>{var _0x173d52=_0x2ee89d,_0x555445;(_0x555445=_0x44dfe4[_0x173d52(0x1f6)])==null||_0x555445[_0x173d52(0x19e)](),_0x44dfe4[_0x173d52(0x1f6)]=null;}),[_0x42fdad,_0x47efca]),_0x3469fe?_0x254265(_0x313750,{'align':'end','disabled':_0xf75bf3===h['OFFLINE'],'className':_0x2ee89d(0x1a5),'overlay':_0x254265($e,{'status':_0xf75bf3,'coordinator':_0x3469fe}),'children':_0x254265(_0x2ee89d(0x227),{'className':_0x3011bc(_0x2ee89d(0x233),{'univer-cursor-not-allowed':_0xf75bf3===h[_0x2ee89d(0x1c4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xf75bf3!==h[_0x2ee89d(0x1c4)]}),'type':'button','children':_0x254265(B,{'className':_0x2ee89d(0x1fb)})})}):null;}function $e(_0x36206a){var _0x334c59=_0x39ab13;const {status:_0x4bacbe,coordinator:_0x5c0e03}=_0x36206a;switch(_0x4bacbe){case h[_0x334c59(0x1f4)]:return _0x254265(Fe,{'coordinator':_0x5c0e03});case h[_0x334c59(0x1ec)]:return _0x254265(He,{'coordinator':_0x5c0e03});case h[_0x334c59(0x231)]:return _0x254265(je,{'coordinator':_0x5c0e03});case h[_0x334c59(0x1c4)]:return _0x254265(Ve,{});case h[_0x334c59(0x232)]:return _0x254265(Ue,{'coordinator':_0x5c0e03});default:return null;}}function Fe(_0x50599f){var _0xbd76e7=_0x39ab13;const {coordinator:_0x405c0f}=_0x50599f;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265('div',{'className':_0xbd76e7(0x1e9),'children':_0xbd76e7(0x1df)}),_0x254265(_0x25a302,{'onClick':()=>_0x405c0f[_0xbd76e7(0x1c6)](),'children':_0xbd76e7(0x246)})]});}function He(_0xfa74a0){var _0x4eadf0=_0x39ab13;const {coordinator:_0x16177e}=_0xfa74a0;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265(_0x4eadf0(0x245),{'className':_0x4eadf0(0x1e9),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x254265(_0x25a302,{'onClick':()=>_0x16177e[_0x4eadf0(0x1da)](),'children':_0x4eadf0(0x1e8)})]});}function je(_0x53483e){var _0x2bbd17=_0x39ab13;const {coordinator:_0x3e560d}=_0x53483e;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265(_0x2bbd17(0x245),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2bbd17(0x1e0)}),_0x254265(_0x25a302,{'variant':_0x2bbd17(0x1e4),'onClick':()=>_0x3e560d[_0x2bbd17(0x1cd)](),'children':_0x2bbd17(0x1d0)})]});}function Ue(_0x46740c){var _0x51e54a=_0x39ab13;const {coordinator:_0x592d0a}=_0x46740c;return _0x4b2b03(_0xf3a8cd,{'children':[_0x254265(_0x51e54a(0x245),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x254265(_0x25a302,{'variant':_0x51e54a(0x1e7),'onClick':()=>_0x592d0a[_0x51e54a(0x1eb)](),'children':_0x51e54a(0x215)})]});}function Ve(){var _0x54696b=_0x39ab13;return _0x254265(_0xf3a8cd,{'children':_0x54696b(0x212)});}function _0x4f5d(){var _0x52ef5e=['defineProperty','not-following','requireSession','executeCommand','hasOwnProperty','map','unsubscribe','pluginName','sessionStatus$','tag','forEach','reverse','_injector','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','event$','1550298JIvGlb','symbol','status$','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_OPERATION','currentColor','indexOf','asObservable','function','registerComponent','mutations','registerSharedOperation','_univerInstanceService','_stopFollowing','send','_status$','pipe','_commandDisposable','call','_beIdle','_collabSession','LIVESHARE_TERMINATE','dispose','univerjs-icon\x20univerjs-icon-','live-share-icon','disposeWithMe','LiveShareIcon','extend','_config','OFFLINE','attrs','tryStartPresenting','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','_entities','getLiveShareCoordinator','_startLiveShareCoordinator','_status','next','startFollowing','_sharedOperations','idle','Start\x20following','475916pmBOag','_configService','colorChannel1','url(#$1','1pPiDnc','createInstance','has','568336lgjosb','UniverIcon','stopFollowing','children','random','offline','length','Present\x20this\x20document','You\x27re\x20not\x20following\x20the\x20presenter','className','values','getCurrentTypeOfUnit$','text','_stopPresenting','init','default','Stop\x20following','univer-mb-3\x20univer-w-full\x20univer-text-sm','_presenter','stopPresenting','FOLLOWING','clear','_liveShareService','assign','_init','1558452zpufdW','dispose$','subscribe','IDLE','onCommandExecuted','current','LIVESHARE_NEW_HOST','icon','NEW_CHANGESETS','idSuffix','univer-size-4','entries','displayName','complete','_commandService','add','string','_unitID','_handleTerminate','_handleNewChangeSets','1466935ojqjKd','getUnitId','_mountLiveShare','concat','SAME_OPERATION_SHARE_INTERVAL','getValue','delete','_uiPartsService','12807RsOHvJ','UNIVER_LIVE_SHARE_PLUGIN','stringify','683064gFhwpx','toString','You\x27are\x20offline.','find','substring','Stop\x20presenting','_reporters','sheet','onStarting','UNIVER_SHEET','getOwnPropertySymbols','get','trim','from','_handleOperation','includes','then','4210XDpahj','propertyIsEnumerable','prototype','shouldShareOperation','parse','_handleNewHost','button','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','registerInitialStateReporter','OPERATION','4tvRwtt','http://www.w3.org/2000/svg','getInitialStates','path','set','override','NOT_FOLLOWING','PRESENTING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','xlink:href','setConfig','getMemberID','svg','memberID','presenter','params','defIds','fill','presenting','_handleOffline','use','replace','unitId','getOwnPropertyDescriptor','getConfig','div','Start','_collabSessionService','data','_startFollowing','LIVESHARE_REQUEST_HOST'];_0x4f5d=function(){return _0x52ef5e;};return _0x4f5d();}var Me=Object['getOwnPropertyDescriptor'],ke=(_0xfba11e,_0x4bd9f2,_0x431492,_0xa543ae)=>{for(var _0x51ea2c=_0xa543ae>0x1?void 0x0:_0xa543ae?Me(_0x4bd9f2,_0x431492):_0x4bd9f2,_0x29c71a=_0xfba11e['length']-0x1,_0x43b22a;_0x29c71a>=0x0;_0x29c71a--)(_0x43b22a=_0xfba11e[_0x29c71a])&&(_0x51ea2c=_0x43b22a(_0x51ea2c)||_0x51ea2c);return _0x51ea2c;},$=(_0x470529,_0x2a04b1)=>(_0x4208d8,_0x477cb7)=>_0x2a04b1(_0x4208d8,_0x477cb7,_0x470529);let b=class extends _0x3e5697{constructor(_0x53edff,_0x45a169){var _0x795cc4=_0x39ab13;super(),this[_0x795cc4(0x1a4)]=_0x53edff,this[_0x795cc4(0x20c)]=_0x45a169,this[_0x795cc4(0x207)]();}['_mountLiveShare'](){var _0x2abaff=_0x39ab13;this[_0x2abaff(0x1c0)](this['_uiPartsService'][_0x2abaff(0x1b0)](_0x2dcb19['HEADER_MENU'],()=>_0x1dfa84(Te,this[_0x2abaff(0x1a4)])));}};b=ke([$(0x0,_0x1c9dfb(_0x464e72)),$(0x1,_0x253bf3)],b);var Ge=Object[_0x39ab13(0x24b)],We=Object[_0x39ab13(0x243)],Ye=(_0x3b3ceb,_0x470f0a,_0x37827e)=>_0x470f0a in _0x3b3ceb?Ge(_0x3b3ceb,_0x470f0a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37827e}):_0x3b3ceb[_0x470f0a]=_0x37827e,Be=(_0x1e092a,_0x1b2385,_0x2eb2ba,_0x65327d)=>{var _0x154b35=_0x39ab13;for(var _0x294265=_0x65327d>0x1?void 0x0:_0x65327d?We(_0x1b2385,_0x2eb2ba):_0x1b2385,_0x5aaa48=_0x1e092a[_0x154b35(0x1de)]-0x1,_0x1db196;_0x5aaa48>=0x0;_0x5aaa48--)(_0x1db196=_0x1e092a[_0x5aaa48])&&(_0x294265=_0x1db196(_0x294265)||_0x294265);return _0x294265;},F=(_0x2eed5b,_0x5ed84d)=>(_0xd65250,_0x52d0b2)=>_0x5ed84d(_0xd65250,_0x52d0b2,_0x2eed5b),J=(_0x41b937,_0x5ae394,_0x7cb0e8)=>Ye(_0x41b937,typeof _0x5ae394!=_0x39ab13(0x1a8)?_0x5ae394+'':_0x5ae394,_0x7cb0e8);const Ze=_0x39ab13(0x20e);let O=class extends _0xd3dbe{constructor(_0x473f5f=T,_0x5cd59d,_0x1c5835){var _0x195c9a=_0x39ab13;super(),this[_0x195c9a(0x1c3)]=_0x473f5f,this['_injector']=_0x5cd59d,this[_0x195c9a(0x1d2)]=_0x1c5835;const {..._0x2e27bd}=_0x42fa7a({},T,this['_config']);this[_0x195c9a(0x1d2)][_0x195c9a(0x236)](Oe,_0x2e27bd);}[_0x39ab13(0x218)](){var _0x4a004b=_0x39ab13;_0x2a0e63(this[_0x4a004b(0x1a4)],_0x4d573([[L],[I],[m],[b]],this[_0x4a004b(0x1c3)][_0x4a004b(0x230)])),_0x23c0a8(this[_0x4a004b(0x1a4)],[[m]]);}['onRendered'](){var _0x3085db=_0x39ab13;_0x23c0a8(this[_0x3085db(0x1a4)],[[b]]);}};J(O,'type',_0x5c0cf1['UNIVER_UNKNOWN']),J(O,_0x39ab13(0x19f),Ze),O=Be([_0x37ba34(_0x4f1c65),F(0x1,_0x1c9dfb(_0x464e72)),F(0x2,_0x4d4248)],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 _0x49666c=_0x4a10;(function(_0x1d8286,_0x3a0e4d){var _0x4356a6=_0x4a10,_0x403820=_0x1d8286();while(!![]){try{var _0x38bb70=parseInt(_0x4356a6(0x1d7))/0x1+-parseInt(_0x4356a6(0x27b))/0x2*(-parseInt(_0x4356a6(0x25b))/0x3)+-parseInt(_0x4356a6(0x26b))/0x4*(parseInt(_0x4356a6(0x1ed))/0x5)+-parseInt(_0x4356a6(0x275))/0x6+-parseInt(_0x4356a6(0x209))/0x7+-parseInt(_0x4356a6(0x202))/0x8+-parseInt(_0x4356a6(0x255))/0x9*(-parseInt(_0x4356a6(0x276))/0xa);if(_0x38bb70===_0x3a0e4d)break;else _0x403820['push'](_0x403820['shift']());}catch(_0x23466f){_0x403820['push'](_0x403820['shift']());}}}(_0x42a9,0xe07d3));var q=Object[_0x49666c(0x234)],z=(_0x22b56b,_0x2faf43,_0x30985b)=>_0x2faf43 in _0x22b56b?q(_0x22b56b,_0x2faf43,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30985b}):_0x22b56b[_0x2faf43]=_0x30985b,d=(_0x2a5220,_0x126139,_0x1e495c)=>z(_0x2a5220,typeof _0x126139!=_0x49666c(0x27a)?_0x126139+'':_0x126139,_0x1e495c);import{CollaborationSessionService as _0x257097,SessionStatus as _0x678256,UniverCollaborationClientPlugin as _0x12375c}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4187df,toDisposable as _0x313868,Inject as _0x4fde9b,IUniverInstanceService as _0xa2b188,Injector as _0x333a37,IConfigService as _0x3254b8,ICommandService as _0x2cc1b6,RxDisposable as _0x5a5912,UniverInstanceType as _0x499b44,DisposableCollection as _0x5bcf89,CommandType as _0x54dde8,DependentOn as _0x186759,Plugin as _0x2d3e60,merge as _0x4e9c80,registerDependencies as _0x39843d,mergeOverrideWithDependencies as _0x173527,touchDependencies as _0x22ca53}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4e269e,InsertSheetMutation as _0x30fdfb}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2b6bce,SetScrollOperation as _0x181a15}from'@univerjs/sheets-ui';import{useDependency as _0x38c78b,useObservable as _0x10e5cd,IUIPartsService as _0x1ffe74,BuiltInUIPart as _0x493576,connectInjector as _0x1e8d61}from'@univerjs/ui';import{jsx as _0x5aa0a4,jsxs as _0x50fd14,Fragment as _0x3b61db}from'react/jsx-runtime';import{Dropdown as _0x2c8fd7,clsx as _0x4dd1d4,Button as _0x4a6477}from'@univerjs/design';import{forwardRef as _0x4b483d,useRef as _0x23df2b,createElement as _0xcc362d,useState as _0x1ab635,useEffect as _0x6912a2}from'react';import{CollaborationEvent as _0x418854,parseProtocolChangeset as _0x525300}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xe996f4,Subject as _0x2786f3}from'rxjs';import{takeUntil as _0x5bc436,throttleTime as _0x1983d7}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x4187df{constructor(){var _0x8dfc2b=_0x49666c;super(...arguments),d(this,_0x8dfc2b(0x285),new Set()),d(this,_0x8dfc2b(0x23e),new Set());}[_0x49666c(0x259)](_0x1c5fe6){var _0x599143=_0x49666c;return this[_0x599143(0x285)][_0x599143(0x223)](_0x1c5fe6),_0x313868(()=>this[_0x599143(0x285)][_0x599143(0x238)](_0x1c5fe6));}[_0x49666c(0x1f3)](_0x3f1e4f){var _0x194f68=_0x49666c;return this[_0x194f68(0x23e)][_0x194f68(0x223)](_0x3f1e4f),_0x313868(()=>this[_0x194f68(0x23e)][_0x194f68(0x238)](_0x3f1e4f));}['shouldShareOperation'](_0x470d49){var _0x5a5207=_0x49666c;return this[_0x5a5207(0x285)][_0x5a5207(0x1fe)](_0x470d49);}[_0x49666c(0x219)](_0xc514d2){var _0x2548c7=_0x49666c;return Array[_0x2548c7(0x20d)](this['_reporters'])[_0x2548c7(0x260)](_0x227a2b=>_0x227a2b(_0xc514d2));}}var Ee=Object[_0x49666c(0x22d)],we=(_0x1d465d,_0x2cd8ac,_0x5e5b03,_0x3a64b8)=>{var _0x348581=_0x49666c;for(var _0x128316=_0x3a64b8>0x1?void 0x0:_0x3a64b8?Ee(_0x2cd8ac,_0x5e5b03):_0x2cd8ac,_0x306945=_0x1d465d[_0x348581(0x23d)]-0x1,_0x406a46;_0x306945>=0x0;_0x306945--)(_0x406a46=_0x1d465d[_0x306945])&&(_0x128316=_0x406a46(_0x128316)||_0x128316);return _0x128316;},Ne=(_0x5cfdb2,_0x1e4c24)=>(_0x5dcf6c,_0x509a75)=>_0x1e4c24(_0x5dcf6c,_0x509a75,_0x5cfdb2);let m=class extends _0x4187df{constructor(_0x4eec85){var _0x132cb4=_0x49666c;super(),this['_liveShareService']=_0x4eec85,this[_0x132cb4(0x1dd)]();}['_init'](){var _0x4a26d6=_0x49666c;[_0x2b6bce['id'],_0x181a15['id'],_0x4e269e['id']][_0x4a26d6(0x1f1)](_0x8049a=>{var _0x32b9da=_0x4a26d6;this['disposeWithMe'](this[_0x32b9da(0x232)][_0x32b9da(0x259)](_0x8049a));});}};m=we([Ne(0x0,_0x4fde9b(L))],m);var c=function(){var _0x341b69=_0x49666c;return c=Object[_0x341b69(0x22c)]||function(_0x309049){var _0x2d4209=_0x341b69;for(var _0x182580,_0x3e50e8=0x1,_0xcecf4b=arguments[_0x2d4209(0x23d)];_0x3e50e8<_0xcecf4b;_0x3e50e8++){_0x182580=arguments[_0x3e50e8];for(var _0x46dacc in _0x182580)Object[_0x2d4209(0x20b)]['hasOwnProperty'][_0x2d4209(0x22f)](_0x182580,_0x46dacc)&&(_0x309049[_0x46dacc]=_0x182580[_0x46dacc]);}return _0x309049;},c['apply'](this,arguments);},Ce=function(_0xfd027e,_0x51a3a7){var _0x40658e=_0x49666c,_0x10d36c={};for(var _0x464879 in _0xfd027e)Object[_0x40658e(0x20b)][_0x40658e(0x265)][_0x40658e(0x22f)](_0xfd027e,_0x464879)&&_0x51a3a7['indexOf'](_0x464879)<0x0&&(_0x10d36c[_0x464879]=_0xfd027e[_0x464879]);if(_0xfd027e!=null&&typeof Object[_0x40658e(0x261)]==_0x40658e(0x21b)){for(var _0x42c10c=0x0,_0x464879=Object[_0x40658e(0x261)](_0xfd027e);_0x42c10c<_0x464879[_0x40658e(0x23d)];_0x42c10c++)_0x51a3a7[_0x40658e(0x1db)](_0x464879[_0x42c10c])<0x0&&Object[_0x40658e(0x20b)][_0x40658e(0x23a)][_0x40658e(0x22f)](_0xfd027e,_0x464879[_0x42c10c])&&(_0x10d36c[_0x464879[_0x42c10c]]=_0xfd027e[_0x464879[_0x42c10c]]);}return _0x10d36c;},W=_0x4b483d(function(_0x48f708,_0x496801){var _0x595df6=_0x49666c,_0x1ad22b=_0x48f708[_0x595df6(0x24e)],_0x357c8e=_0x48f708['id'],_0x558a12=_0x48f708[_0x595df6(0x222)],_0x238a15=_0x48f708[_0x595df6(0x1fb)],_0x252f63=Ce(_0x48f708,['icon','id',_0x595df6(0x222),_0x595df6(0x1fb)]),_0x17fd2f='univerjs-icon\x20univerjs-icon-'[_0x595df6(0x1fa)](_0x357c8e,'\x20')['concat'](_0x558a12||'')[_0x595df6(0x24d)](),_0x157954=_0x23df2b('_'['concat'](Le()));return Y(_0x1ad22b,''[_0x595df6(0x1fa)](_0x357c8e),{'defIds':_0x1ad22b[_0x595df6(0x253)],'idSuffix':_0x157954['current']},c({'ref':_0x496801,'className':_0x17fd2f},_0x252f63),_0x238a15);});function Y(_0x14a668,_0x5b2b6d,_0x32e7ba,_0x50fdd8,_0x2e2d93){var _0x4a9701=_0x49666c;return _0xcc362d(_0x14a668[_0x4a9701(0x25e)],c(c({'key':_0x5b2b6d},De(_0x14a668,_0x32e7ba,_0x2e2d93)),_0x50fdd8),(xe(_0x14a668,_0x32e7ba)[_0x4a9701(0x1f0)]||[])[_0x4a9701(0x260)](function(_0x5e6f7d,_0x423fe3){var _0x471a01=_0x4a9701;return Y(_0x5e6f7d,''['concat'](_0x5b2b6d,'-')[_0x471a01(0x1fa)](_0x14a668[_0x471a01(0x25e)],'-')[_0x471a01(0x1fa)](_0x423fe3),_0x32e7ba,void 0x0,_0x2e2d93);}));}function De(_0x2e7df0,_0x56ce8f,_0x496d65){var _0x56e0e2=_0x49666c,_0x301e0d=c({},_0x2e7df0[_0x56e0e2(0x206)]);_0x496d65!=null&&_0x496d65['colorChannel1']&&_0x301e0d[_0x56e0e2(0x201)]===_0x56e0e2(0x1f4)&&(_0x301e0d[_0x56e0e2(0x201)]=_0x496d65[_0x56e0e2(0x1f4)]),_0x2e7df0[_0x56e0e2(0x25e)]===_0x56e0e2(0x1e9)&&_0x301e0d['id']&&(_0x301e0d['id']=_0x301e0d['id']+_0x56ce8f[_0x56e0e2(0x25c)]),Object['entries'](_0x301e0d)[_0x56e0e2(0x1f1)](function(_0x108267){var _0x2df1e9=_0x56e0e2,_0x167f74=_0x108267[0x0],_0x5b66b0=_0x108267[0x1];_0x167f74===_0x2df1e9(0x1e9)&&typeof _0x5b66b0==_0x2df1e9(0x27d)&&(_0x301e0d[_0x167f74]=_0x5b66b0['replace'](/url\(#(.*)\)/,_0x2df1e9(0x283)[_0x2df1e9(0x1fa)](_0x56ce8f['idSuffix'],')')));});var _0x5ac2ec=_0x56ce8f['defIds'];return!_0x5ac2ec||_0x5ac2ec['length']===0x0||(_0x2e7df0['tag']===_0x56e0e2(0x23c)&&_0x301e0d[_0x56e0e2(0x215)]&&(_0x301e0d[_0x56e0e2(0x215)]=_0x301e0d[_0x56e0e2(0x215)]+_0x56ce8f[_0x56e0e2(0x25c)]),Object[_0x56e0e2(0x246)](_0x301e0d)['forEach'](function(_0x546c79){var _0x5a3079=_0x56e0e2,_0x4d681c=_0x546c79[0x0],_0x5176d8=_0x546c79[0x1];typeof _0x5176d8==_0x5a3079(0x27d)&&(_0x301e0d[_0x4d681c]=_0x5176d8[_0x5a3079(0x1d4)](/url\(#(.*)\)/,_0x5a3079(0x283)[_0x5a3079(0x1fa)](_0x56ce8f[_0x5a3079(0x25c)],')')));})),_0x301e0d;}function xe(_0x42c9bd,_0x422be1){var _0x8188c5=_0x49666c,_0x24f85d,_0xc4379e=_0x422be1[_0x8188c5(0x253)];return!_0xc4379e||_0xc4379e['length']===0x0?_0x42c9bd:_0x42c9bd['tag']===_0x8188c5(0x211)&&(!((_0x24f85d=_0x42c9bd['children'])===null||_0x24f85d===void 0x0)&&_0x24f85d[_0x8188c5(0x23d)])?c(c({},_0x42c9bd),{'children':_0x42c9bd[_0x8188c5(0x1f0)][_0x8188c5(0x260)](function(_0x595f60){var _0x38139e=_0x8188c5;return typeof _0x595f60['attrs']['id']==_0x38139e(0x27d)&&_0xc4379e&&_0xc4379e[_0x38139e(0x20f)](_0x595f60[_0x38139e(0x206)]['id'])?c(c({},_0x595f60),{'attrs':c(c({},_0x595f60[_0x38139e(0x206)]),{'id':_0x595f60[_0x38139e(0x206)]['id']+_0x422be1[_0x38139e(0x25c)]})}):_0x595f60;})}):_0x42c9bd;}function Le(){var _0x426c84=_0x49666c;return Math[_0x426c84(0x272)]()[_0x426c84(0x212)](0x24)[_0x426c84(0x200)](0x2,0x8);}W[_0x49666c(0x235)]=_0x49666c(0x258);var ye={'tag':_0x49666c(0x26c),'attrs':{'xmlns':_0x49666c(0x249),'fill':_0x49666c(0x1df),'viewBox':_0x49666c(0x279),'width':'1em','height':_0x49666c(0x23f)},'children':[{'tag':_0x49666c(0x217),'attrs':{'fill':'currentColor','d':_0x49666c(0x267)}},{'tag':_0x49666c(0x217),'attrs':{'fill':_0x49666c(0x1f2),'d':_0x49666c(0x248),'fillRule':_0x49666c(0x284),'clipRule':_0x49666c(0x284)}}]},B=_0x4b483d(function(_0x44b4bb,_0x25d6b5){var _0x3f688e=_0x49666c;return _0xcc362d(W,Object[_0x3f688e(0x22c)]({},_0x44b4bb,{'id':_0x3f688e(0x205),'ref':_0x25d6b5,'icon':ye}));});B[_0x49666c(0x235)]=_0x49666c(0x243);var Re=Object[_0x49666c(0x22d)],Z=(_0x3b8d4f,_0xd05319,_0x5954ec,_0x7f3c2a)=>{var _0x6b1997=_0x49666c;for(var _0x1621cd=_0x7f3c2a>0x1?void 0x0:_0x7f3c2a?Re(_0xd05319,_0x5954ec):_0xd05319,_0x32eff9=_0x3b8d4f[_0x6b1997(0x23d)]-0x1,_0x233766;_0x32eff9>=0x0;_0x32eff9--)(_0x233766=_0x3b8d4f[_0x32eff9])&&(_0x1621cd=_0x233766(_0x1621cd)||_0x1621cd);return _0x1621cd;},f=(_0x1982fd,_0x20e268)=>(_0x2ff11b,_0xcf4b3a)=>_0x20e268(_0x2ff11b,_0xcf4b3a,_0x1982fd);let I=class extends _0x5a5912{constructor(_0x2c29e3,_0x4d1e3d,_0x449676){var _0x163af0=_0x49666c;super(),d(this,_0x163af0(0x221),new Map()),(this[_0x163af0(0x22b)]=_0x2c29e3,this['_injector']=_0x4d1e3d,this['_collabSessionService']=_0x449676,this[_0x163af0(0x1dd)]());}async[_0x49666c(0x1f5)](_0x4bc84e){var _0x3d35d8=_0x49666c;return this[_0x3d35d8(0x221)]['has'](_0x4bc84e)||await this[_0x3d35d8(0x1e1)](_0x4bc84e),this[_0x3d35d8(0x221)][_0x3d35d8(0x1fd)](_0x4bc84e);}['_init'](){var _0x4a949d=_0x49666c;this[_0x4a949d(0x22b)]['getTypeOfUnitAdded$'](_0x499b44[_0x4a949d(0x1d9)])[_0x4a949d(0x266)](_0x5bc436(this[_0x4a949d(0x210)]))[_0x4a949d(0x256)](async _0x5c965e=>{var _0x536ba9=_0x4a949d;const _0x331ac9=_0x5c965e['getUnitId']();this['_entities'][_0x536ba9(0x1fe)](_0x331ac9)||this[_0x536ba9(0x1e1)](_0x331ac9);}),this[_0x4a949d(0x22b)]['getTypeOfUnitDisposed$'](_0x499b44[_0x4a949d(0x1d9)])['pipe'](_0x5bc436(this['dispose$']))[_0x4a949d(0x256)](_0x21ede0=>{var _0x56edb9=_0x4a949d;const _0x48f45a=_0x21ede0[_0x56edb9(0x1d5)](),_0x1a8ebd=this[_0x56edb9(0x221)][_0x56edb9(0x1fd)](_0x48f45a);_0x1a8ebd==null||_0x1a8ebd[_0x56edb9(0x1eb)]();});}async['_startLiveShareCoordinator'](_0x35fb2a){var _0x5ed3ba=_0x49666c;const _0x3ee128=await this[_0x5ed3ba(0x268)][_0x5ed3ba(0x21c)](_0x35fb2a),_0x313a0d=this['_injector'][_0x5ed3ba(0x1f7)](C,_0x35fb2a,_0x3ee128);return _0x313a0d[_0x5ed3ba(0x244)](),this[_0x5ed3ba(0x221)][_0x5ed3ba(0x282)](_0x35fb2a,_0x313a0d),_0x313a0d;}};I=Z([f(0x0,_0xa2b188),f(0x1,_0x4fde9b(_0x333a37)),f(0x2,_0x4fde9b(_0x257097))],I);var h=(_0x104098=>(_0x104098[_0x49666c(0x25f)]=_0x49666c(0x269),_0x104098[_0x49666c(0x24f)]=_0x49666c(0x1f9),_0x104098[_0x49666c(0x20a)]=_0x49666c(0x21a),_0x104098[_0x49666c(0x230)]='not-following',_0x104098['PRESENTING']='presenting',_0x104098))(h||{});const Pe=_0x49666c(0x257),Ae=0xc8;let C=class extends _0x5a5912{constructor(_0x57e066,_0x44c7a2,_0x131a4e,_0x458499,_0xe3fa8e){var _0x2cf564=_0x49666c;super(),d(this,_0x2cf564(0x236),new _0xe996f4(_0x2cf564(0x1f9))),d(this,'status$',this['_status$'][_0x2cf564(0x245)]()),d(this,_0x2cf564(0x1dd),!0x1),d(this,'_commandDisposable',null),d(this,_0x2cf564(0x254),null),(this['_unitID']=_0x57e066,this[_0x2cf564(0x25a)]=_0x44c7a2,this[_0x2cf564(0x1de)]=_0x131a4e,this['_liveShareService']=_0x458499,this[_0x2cf564(0x242)]=_0xe3fa8e);}get[_0x49666c(0x280)](){var _0x3f09c6=_0x49666c;return this['_status$'][_0x3f09c6(0x1e8)]();}['dispose'](){var _0x2cbb86=_0x49666c,_0x5f1901;(_0x5f1901=this[_0x2cbb86(0x233)])==null||_0x5f1901[_0x2cbb86(0x1eb)](),this[_0x2cbb86(0x236)][_0x2cbb86(0x23b)](_0x2cbb86(0x1f9)),this[_0x2cbb86(0x236)]['complete']();}[_0x49666c(0x244)](){var _0x172ef1=_0x49666c;this[_0x172ef1(0x1dd)]||(this[_0x172ef1(0x1dd)]=!0x0,this[_0x172ef1(0x25a)]['sessionStatus$']['pipe'](_0x5bc436(this[_0x172ef1(0x210)]))[_0x172ef1(0x256)](_0x1786cc=>{var _0x15525b=_0x172ef1;switch(_0x1786cc){case _0x678256[_0x15525b(0x25f)]:this[_0x15525b(0x216)]();break;case _0x678256['ONLINE']:this[_0x15525b(0x213)]();break;}}),this[_0x172ef1(0x25a)]['event$'][_0x172ef1(0x266)](_0x5bc436(this[_0x172ef1(0x210)]))[_0x172ef1(0x256)](_0x589f7d=>{var _0x29c991=_0x172ef1;const {eventID:_0x4f00aa}=_0x589f7d;switch(_0x4f00aa){case _0x418854[_0x29c991(0x26d)]:this[_0x29c991(0x239)](_0x589f7d);break;case _0x418854[_0x29c991(0x277)]:this[_0x29c991(0x237)](_0x589f7d);break;case _0x418854[_0x29c991(0x1d6)]:this[_0x29c991(0x241)]();break;case _0x418854['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x589f7d);break;}}));}[_0x49666c(0x227)](){var _0x51ed2e=_0x49666c;this[_0x51ed2e(0x25a)][_0x51ed2e(0x225)]({'eventID':_0x418854[_0x51ed2e(0x278)],'data':{'unitID':this[_0x51ed2e(0x224)],'userID':this['_collabSession'][_0x51ed2e(0x1fc)]()}},this[_0x51ed2e(0x224)]);}[_0x49666c(0x228)](){var _0x2aa5ed=_0x49666c;this[_0x2aa5ed(0x280)]===_0x2aa5ed(0x1e7)&&(this['_status$'][_0x2aa5ed(0x23b)](_0x2aa5ed(0x1f9)),this[_0x2aa5ed(0x25a)][_0x2aa5ed(0x225)]({'eventID':_0x418854['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x2aa5ed(0x224)]));}[_0x49666c(0x27e)](){var _0x2dd229=_0x49666c;this['_status']==='not-following'&&(this[_0x2dd229(0x236)]['next']('following'),this[_0x2dd229(0x1e5)]());}['stopFollowing'](){var _0x183355=_0x49666c;this['_status']===_0x183355(0x21a)&&this[_0x183355(0x1da)]();}[_0x49666c(0x239)](_0x5e62f3){var _0x400861=_0x49666c;const {presenter:_0x3b8e86}=_0x5e62f3[_0x400861(0x25d)],_0x445222=this[_0x400861(0x25a)]['getMemberID']();this[_0x400861(0x254)]=_0x3b8e86,_0x3b8e86===_0x445222?(this[_0x400861(0x1da)](),this[_0x400861(0x21f)]()):this[_0x400861(0x280)]!==_0x400861(0x226)&&(this[_0x400861(0x22e)](),this[_0x400861(0x1e5)]());}[_0x49666c(0x1e2)](){var _0x2b82f3=_0x49666c;const _0x4517d5={'eventID':_0x418854[_0x2b82f3(0x1ea)]};this[_0x2b82f3(0x25a)][_0x2b82f3(0x225)](_0x4517d5,this[_0x2b82f3(0x224)]);}['_handleTerminate'](){var _0x47c09c=_0x49666c;this[_0x47c09c(0x254)]=null,this[_0x47c09c(0x280)]!==_0x47c09c(0x1e7)&&this['_beIdle']();}[_0x49666c(0x271)](_0x5039c3){var _0x181021=_0x49666c;if(this[_0x181021(0x280)]===_0x181021(0x21a)&&this[_0x181021(0x254)]===_0x5039c3[_0x181021(0x25d)]['memberID']){const _0x139487=_0x525300(_0x5039c3[_0x181021(0x25d)])[_0x181021(0x262)][_0x181021(0x26a)]()[_0x181021(0x1ee)](_0x3c6d7d=>_0x3c6d7d['id']===_0x30fdfb['id']);if(_0x139487){const _0x4d77a7=_0x139487[_0x181021(0x1d3)][_0x181021(0x1d8)],_0x4523de=_0x139487['params'][_0x181021(0x24a)]['id'];setTimeout(()=>{var _0x414810=_0x181021;this['_commandService'][_0x414810(0x27f)](_0x4e269e['id'],{'unitId':_0x4d77a7,'subUnitId':_0x4523de},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xa0e9ad=_0x49666c;this[_0xa0e9ad(0x236)][_0xa0e9ad(0x23b)]('presenting');const _0x4f31c4=new Map(),_0x5d4abb=this['_commandDisposable']=new _0x5bcf89();_0x5d4abb[_0xa0e9ad(0x223)](_0x313868(()=>{var _0x249ea0=_0xa0e9ad;_0x4f31c4[_0x249ea0(0x1f1)](_0x27668a=>_0x27668a[_0x249ea0(0x1dc)]()),_0x4f31c4[_0x249ea0(0x229)]();})),_0x5d4abb[_0xa0e9ad(0x223)](this[_0xa0e9ad(0x242)][_0xa0e9ad(0x263)](_0x82f3f9=>{var _0x6685e9=_0xa0e9ad,_0x53cbb4;if(_0x82f3f9[_0x6685e9(0x1f8)]!==_0x54dde8[_0x6685e9(0x218)]||!this['_liveShareService']['shouldShareOperation'](_0x82f3f9['id']))return;const {id:_0x4d6ab6}=_0x82f3f9;let _0x3a6058;_0x4f31c4[_0x6685e9(0x1fe)](_0x4d6ab6)?_0x3a6058=_0x4f31c4[_0x6685e9(0x1fd)](_0x4d6ab6):(_0x3a6058=new _0x2786f3(),_0x4f31c4[_0x6685e9(0x282)](_0x4d6ab6,_0x3a6058),_0x3a6058['pipe'](_0x1983d7((_0x53cbb4=this[_0x6685e9(0x1de)]['getConfig'](Pe))!=null?_0x53cbb4:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x6685e9(0x256)](_0x558284=>{var _0x3d381c=_0x6685e9;this[_0x3d381c(0x25a)][_0x3d381c(0x225)]({'eventID':_0x418854['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3d381c(0x224)],'operations':{[_0x558284['id']]:{'id':_0x558284['id'],'params':JSON[_0x3d381c(0x24b)](_0x558284[_0x3d381c(0x1d3)])}}}},this['_unitID']);})),_0x3a6058[_0x6685e9(0x23b)](_0x82f3f9);})),this[_0xa0e9ad(0x232)][_0xa0e9ad(0x219)](this[_0xa0e9ad(0x224)])[_0xa0e9ad(0x1f1)](_0x5d21b6=>this[_0xa0e9ad(0x25a)]['send']({'eventID':_0x418854['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xa0e9ad(0x224)],'operations':{[_0x5d21b6['id']]:{'id':_0x5d21b6['id'],'params':JSON[_0xa0e9ad(0x24b)](_0x5d21b6['params'])}}}},this[_0xa0e9ad(0x224)]));}['_stopPresenting'](){var _0x10cef7=_0x49666c,_0x14810d;this[_0x10cef7(0x236)][_0x10cef7(0x23b)](_0x10cef7(0x1f9)),(_0x14810d=this[_0x10cef7(0x233)])==null||_0x14810d[_0x10cef7(0x1eb)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x2fa585=_0x49666c,_0x5891b5;(_0x5891b5=this[_0x2fa585(0x233)])==null||_0x5891b5['dispose'](),this['_status$']['next'](_0x2fa585(0x21a));}[_0x49666c(0x20e)](){var _0x389b61=_0x49666c,_0x1ba19f;this[_0x389b61(0x236)][_0x389b61(0x23b)](_0x389b61(0x1f9)),(_0x1ba19f=this[_0x389b61(0x233)])==null||_0x1ba19f[_0x389b61(0x1eb)](),this[_0x389b61(0x233)]=null;}[_0x49666c(0x1da)](){var _0x1c9586=_0x49666c,_0x5dcf1a;this[_0x1c9586(0x236)][_0x1c9586(0x23b)](_0x1c9586(0x226)),(_0x5dcf1a=this[_0x1c9586(0x233)])==null||_0x5dcf1a[_0x1c9586(0x1eb)]();}[_0x49666c(0x237)](_0x3d6313){var _0x2316a7=_0x49666c;if([_0x2316a7(0x1e7),_0x2316a7(0x226),_0x2316a7(0x269)]['includes'](this['_status'])||!_0x3d6313[_0x2316a7(0x25d)][_0x2316a7(0x22a)]||_0x3d6313[_0x2316a7(0x25d)]['presenter']===this[_0x2316a7(0x25a)][_0x2316a7(0x1fc)]())return;this[_0x2316a7(0x280)]===_0x2316a7(0x1f9)&&this[_0x2316a7(0x1e5)]();const _0x433c30=_0x3d6313[_0x2316a7(0x25d)]['operations'];Object[_0x2316a7(0x286)](_0x433c30)[_0x2316a7(0x1f1)](_0x2cdd95=>{var _0x162795=_0x2316a7;this[_0x162795(0x242)][_0x162795(0x27f)](_0x2cdd95['id'],_0x2cdd95[_0x162795(0x1d3)]?JSON[_0x162795(0x1e4)](_0x2cdd95[_0x162795(0x1d3)]):null,{'fromCollab':!0x0});});}[_0x49666c(0x216)](){var _0x94bd3c=_0x49666c,_0x2f2790;this[_0x94bd3c(0x236)][_0x94bd3c(0x23b)]('offline'),(_0x2f2790=this[_0x94bd3c(0x233)])==null||_0x2f2790[_0x94bd3c(0x1eb)]();}[_0x49666c(0x213)](){var _0x44bf33=_0x49666c;this['_status$'][_0x44bf33(0x23b)]('idle'),this[_0x44bf33(0x1e2)]();}};C=Z([f(0x2,_0x3254b8),f(0x3,_0x4fde9b(L)),f(0x4,_0x2cc1b6)],C);function Te(){var _0x459b6f=_0x49666c;const _0x44800b=_0x38c78b(I),_0x2feee6=_0x38c78b(_0xa2b188),_0x59ca5b=_0x10e5cd(()=>_0x2feee6[_0x459b6f(0x1e0)](_0x499b44[_0x459b6f(0x1d9)]),void 0x0,!0x1,[]),[_0x59da63,_0x57d340]=_0x1ab635(null),[_0x19a386,_0x56f1f2]=_0x1ab635(h[_0x459b6f(0x24f)]),_0x2eddf1=_0x23df2b(null);return _0x6912a2(()=>(_0x59ca5b&&_0x44800b['getLiveShareCoordinator'](_0x59ca5b[_0x459b6f(0x1d5)]())[_0x459b6f(0x1d2)](_0x4c42d5=>{var _0x14a5f1=_0x459b6f;_0x57d340(_0x4c42d5),_0x2eddf1[_0x14a5f1(0x1e6)]=_0x4c42d5[_0x14a5f1(0x231)][_0x14a5f1(0x256)](_0x147f9f=>{_0x56f1f2(_0x147f9f);});}),()=>{var _0x3da4bf=_0x459b6f,_0x386b11;(_0x386b11=_0x2eddf1[_0x3da4bf(0x1e6)])==null||_0x386b11[_0x3da4bf(0x273)](),_0x2eddf1[_0x3da4bf(0x1e6)]=null;}),[_0x59ca5b,_0x44800b]),_0x59da63?_0x5aa0a4(_0x2c8fd7,{'align':_0x459b6f(0x264),'disabled':_0x19a386===h[_0x459b6f(0x25f)],'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':_0x5aa0a4($e,{'status':_0x19a386,'coordinator':_0x59da63}),'children':_0x5aa0a4(_0x459b6f(0x204),{'className':_0x4dd1d4('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x19a386===h[_0x459b6f(0x25f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x19a386!==h[_0x459b6f(0x25f)]}),'type':'button','children':_0x5aa0a4(B,{'className':'univer-size-4'})})}):null;}function $e(_0xbf4086){var _0x35afb4=_0x49666c;const {status:_0x1e2d03,coordinator:_0x47dd6f}=_0xbf4086;switch(_0x1e2d03){case h['IDLE']:return _0x5aa0a4(Fe,{'coordinator':_0x47dd6f});case h['FOLLOWING']:return _0x5aa0a4(He,{'coordinator':_0x47dd6f});case h[_0x35afb4(0x230)]:return _0x5aa0a4(je,{'coordinator':_0x47dd6f});case h[_0x35afb4(0x25f)]:return _0x5aa0a4(Ve,{});case h[_0x35afb4(0x208)]:return _0x5aa0a4(Ue,{'coordinator':_0x47dd6f});default:return null;}}function Fe(_0x2b1abe){var _0x213a43=_0x49666c;const {coordinator:_0xe0f05c}=_0x2b1abe;return _0x50fd14(_0x3b61db,{'children':[_0x5aa0a4(_0x213a43(0x220),{'className':_0x213a43(0x250),'children':'Present\x20this\x20document'}),_0x5aa0a4(_0x4a6477,{'onClick':()=>_0xe0f05c[_0x213a43(0x227)](),'children':_0x213a43(0x1ef)})]});}function He(_0x1e6c63){var _0x1da9a8=_0x49666c;const {coordinator:_0x1dced3}=_0x1e6c63;return _0x50fd14(_0x3b61db,{'children':[_0x5aa0a4('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1da9a8(0x26f)}),_0x5aa0a4(_0x4a6477,{'onClick':()=>_0x1dced3[_0x1da9a8(0x21e)](),'children':'Stop\x20following'})]});}function je(_0x512a43){var _0x5cd9c2=_0x49666c;const {coordinator:_0x565872}=_0x512a43;return _0x50fd14(_0x3b61db,{'children':[_0x5aa0a4(_0x5cd9c2(0x220),{'className':_0x5cd9c2(0x250),'children':_0x5cd9c2(0x20c)}),_0x5aa0a4(_0x4a6477,{'variant':_0x5cd9c2(0x270),'onClick':()=>_0x565872[_0x5cd9c2(0x27e)](),'children':'Start\x20following'})]});}function Ue(_0x1fa3e4){var _0x39be47=_0x49666c;const {coordinator:_0x578926}=_0x1fa3e4;return _0x50fd14(_0x3b61db,{'children':[_0x5aa0a4(_0x39be47(0x220),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x39be47(0x27c)}),_0x5aa0a4(_0x4a6477,{'variant':_0x39be47(0x247),'onClick':()=>_0x578926['stopPresenting'](),'children':_0x39be47(0x1ff)})]});}function Ve(){var _0x2a0a5d=_0x49666c;return _0x5aa0a4(_0x3b61db,{'children':_0x2a0a5d(0x281)});}function _0x42a9(){var _0x4cbb7d=['init','asObservable','entries','default','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','http://www.w3.org/2000/svg','sheet','stringify','pluginName','trim','icon','IDLE','univer-mb-3\x20univer-w-full\x20univer-text-sm','_injector','onStarting','defIds','_presenter','9kXrxvK','subscribe','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','registerSharedOperation','_collabSession','57rIaYRr','idSuffix','data','tag','OFFLINE','map','getOwnPropertySymbols','mutations','onCommandExecuted','end','hasOwnProperty','pipe','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','_collabSessionService','offline','reverse','430392iEgkIZ','svg','LIVESHARE_NEW_HOST','UNIVER_UNKNOWN','You\x27re\x20following\x20the\x20presenter','text','_handleNewChangeSets','random','unsubscribe','_config','8898852qcbKUB','30916430CneJtN','LIVESHARE_OPERATION','LIVESHARE_REQUEST_HOST','0\x200\x2017\x2017','symbol','85460VdgQPc','You\x27re\x20presenting\x20the\x20document','string','startFollowing','executeCommand','_status','You\x27are\x20offline.','set','url(#$1','evenodd','_sharedOperations','values','then','params','replace','getUnitId','LIVESHARE_TERMINATE','408644OMwvEm','unitId','UNIVER_SHEET','_stopFollowing','indexOf','complete','_init','_configService','none','getCurrentTypeOfUnit$','_startLiveShareCoordinator','_fetchOperations','_uiPartsService','parse','_startFollowing','current','presenting','getValue','mask','LIVESHARE_FETCH_OPERATIONS','dispose','_mountLiveShare','5NqSpMP','find','Start','children','forEach','currentColor','registerInitialStateReporter','colorChannel1','getLiveShareCoordinator','UNIVER_LIVE_SHARE_PLUGIN','createInstance','type','idle','concat','extend','getMemberID','get','has','Stop\x20presenting','substring','fill','6554520pjaCKJ','HEADER_MENU','button','live-share-icon','attrs','registerComponent','PRESENTING','6878165IIljUf','FOLLOWING','prototype','You\x27re\x20not\x20following\x20the\x20presenter','from','_beIdle','includes','dispose$','defs','toString','_handleOnline','override','xlink:href','_handleOffline','path','OPERATION','getInitialStates','following','function','requireSession','disposeWithMe','stopFollowing','_startPresenting','div','_entities','className','add','_unitID','send','not-following','tryStartPresenting','stopPresenting','clear','presenter','_univerInstanceService','assign','getOwnPropertyDescriptor','_stopPresenting','call','NOT_FOLLOWING','status$','_liveShareService','_commandDisposable','defineProperty','displayName','_status$','_handleOperation','delete','_handleNewHost','propertyIsEnumerable','next','use','length','_reporters','1em','onRendered','_handleTerminate','_commandService','LiveShareIcon'];_0x42a9=function(){return _0x4cbb7d;};return _0x42a9();}var Me=Object[_0x49666c(0x22d)],ke=(_0x30de30,_0x3cb51a,_0x1481ab,_0x220d3a)=>{var _0x1ee086=_0x49666c;for(var _0x9108a5=_0x220d3a>0x1?void 0x0:_0x220d3a?Me(_0x3cb51a,_0x1481ab):_0x3cb51a,_0x38f26a=_0x30de30[_0x1ee086(0x23d)]-0x1,_0x546471;_0x38f26a>=0x0;_0x38f26a--)(_0x546471=_0x30de30[_0x38f26a])&&(_0x9108a5=_0x546471(_0x9108a5)||_0x9108a5);return _0x9108a5;},$=(_0x102bbb,_0x213567)=>(_0x204ee1,_0x4e8358)=>_0x213567(_0x204ee1,_0x4e8358,_0x102bbb);function _0x4a10(_0x1c3a8b,_0x5cafdb){var _0x42a924=_0x42a9();return _0x4a10=function(_0x4a10e5,_0x224e7b){_0x4a10e5=_0x4a10e5-0x1d2;var _0x534fad=_0x42a924[_0x4a10e5];return _0x534fad;},_0x4a10(_0x1c3a8b,_0x5cafdb);}let b=class extends _0x4187df{constructor(_0x4fefee,_0x2bb0ad){var _0x431d36=_0x49666c;super(),this['_injector']=_0x4fefee,this[_0x431d36(0x1e3)]=_0x2bb0ad,this[_0x431d36(0x1ec)]();}['_mountLiveShare'](){var _0x63a750=_0x49666c;this[_0x63a750(0x21d)](this[_0x63a750(0x1e3)][_0x63a750(0x207)](_0x493576[_0x63a750(0x203)],()=>_0x1e8d61(Te,this[_0x63a750(0x251)])));}};b=ke([$(0x0,_0x4fde9b(_0x333a37)),$(0x1,_0x1ffe74)],b);var Ge=Object['defineProperty'],We=Object[_0x49666c(0x22d)],Ye=(_0x108475,_0x1eb481,_0x31f284)=>_0x1eb481 in _0x108475?Ge(_0x108475,_0x1eb481,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31f284}):_0x108475[_0x1eb481]=_0x31f284,Be=(_0x506d7b,_0x34850d,_0xcf9fc5,_0x31631e)=>{var _0x2d0fea=_0x49666c;for(var _0x10fbd6=_0x31631e>0x1?void 0x0:_0x31631e?We(_0x34850d,_0xcf9fc5):_0x34850d,_0x4014e8=_0x506d7b[_0x2d0fea(0x23d)]-0x1,_0x3b2aa6;_0x4014e8>=0x0;_0x4014e8--)(_0x3b2aa6=_0x506d7b[_0x4014e8])&&(_0x10fbd6=_0x3b2aa6(_0x10fbd6)||_0x10fbd6);return _0x10fbd6;},F=(_0x5e41dc,_0x28ae6e)=>(_0x223d0f,_0x3a19f1)=>_0x28ae6e(_0x223d0f,_0x3a19f1,_0x5e41dc),J=(_0xeafa4e,_0x285d6a,_0xb544ed)=>Ye(_0xeafa4e,typeof _0x285d6a!=_0x49666c(0x27a)?_0x285d6a+'':_0x285d6a,_0xb544ed);const Ze=_0x49666c(0x1f6);let O=class extends _0x2d3e60{constructor(_0x5f2fc8=T,_0x55657c,_0x3bfd20){var _0x3782d9=_0x49666c;super(),this[_0x3782d9(0x274)]=_0x5f2fc8,this[_0x3782d9(0x251)]=_0x55657c,this[_0x3782d9(0x1de)]=_0x3bfd20;const {..._0x3b2633}=_0x4e9c80({},T,this[_0x3782d9(0x274)]);this['_configService']['setConfig'](Oe,_0x3b2633);}[_0x49666c(0x252)](){var _0x4c3dd3=_0x49666c;_0x39843d(this[_0x4c3dd3(0x251)],_0x173527([[L],[I],[m],[b]],this[_0x4c3dd3(0x274)][_0x4c3dd3(0x214)])),_0x22ca53(this[_0x4c3dd3(0x251)],[[m]]);}[_0x49666c(0x240)](){var _0x30d25a=_0x49666c;_0x22ca53(this[_0x30d25a(0x251)],[[b]]);}};J(O,_0x49666c(0x1f8),_0x499b44[_0x49666c(0x26e)]),J(O,_0x49666c(0x24c),Ze),O=Be([_0x186759(_0x12375c),F(0x1,_0x4fde9b(_0x333a37)),F(0x2,_0x3254b8)],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 _0x458f(){var _0x49e459=['996Bxtjmb','LIVESHARE_FETCH_OPERATIONS','defIds','Subject','useEffect','stopFollowing','BuiltInUIPart','_fetchOperations','event$','get','data','init','colorChannel1','toDisposable','jsxs','defineProperty','current','clsx','div','You\x27re\x20following\x20the\x20presenter','takeUntil','SetWorksheetActiveOperation','PRESENTING','mutations','getOwnPropertyDescriptor','send','_sharedOperations','children','12NCsDkh','live-share-icon','_uiPartsService','_mountLiveShare','from','entries','hasOwnProperty','SetZoomRatioOperation','concat','Present\x20this\x20document','presenting','univer-size-4','unitId','useObservable','values','ONLINE','_collabSessionService','rxjs/operators','_entities','amd','mergeOverrideWithDependencies','ICommandService','_collabSession','_startLiveShareCoordinator','UniverCollaborationClientPlugin','currentColor','1867434dSfIFW','Disposable','getTypeOfUnitAdded$','idle','add','onRendered','OFFLINE','LIVESHARE_NEW_HOST','NOT_FOLLOWING','React','rxjs','LIVESHARE_OPERATION','_status','assign','UniverProLiveShare','UniverSheets','dispose$','displayName','startFollowing','_startFollowing','_handleOnline','_univerInstanceService','default','CollaborationSessionService','sessionStatus$','_handleOffline','status$','createInstance','InsertSheetMutation','length','univer-mb-3\x20univer-w-full\x20univer-text-sm','complete','call','_unitID','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','_handleOperation','presenter','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','@univerjs-pro/collaboration','getMemberID','executeCommand','operations','_handleNewChangeSets','forEach','reverse','not-following','jsx','UniverCore','touchDependencies','Dropdown','string','asObservable','unsubscribe','forwardRef','useState','attrs','1em','replace','DisposableCollection','0\x200\x2017\x2017','getInitialStates','CollaborationEvent','shouldShareOperation','Inject','5695417sNtEFs','map','set','_configService','You\x27re\x20presenting\x20the\x20document','_injector','pluginName','2164406ETiBWR','has','getValue','pipe','stopPresenting','NEW_CHANGESETS','IUniverInstanceService','getUnitId','LiveShareController','UniverProCollaborationClient','symbol','_commandDisposable','_startPresenting','type','parseProtocolChangeset','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','className','toStringTag','UniverUi','getCurrentTypeOfUnit$','xlink:href','LiveShareIcon','Plugin','registerComponent','_config','setConfig','tryStartPresenting','propertyIsEnumerable','UNIVER_SHEET','mask','button','_init','react','getOwnPropertySymbols','UNIVER_LIVE_SHARE_PLUGIN','http://www.w3.org/2000/svg','useRef','function','getLiveShareCoordinator','onCommandExecuted','following','SetScrollOperation','memberID','extend','random','UniverLiveSharePlugin','_presenter','DesktopLiveShareController','Fragment','useDependency','4528752PAimYX','You\x27re\x20not\x20following\x20the\x20presenter','getTypeOfUnitDisposed$','stringify','@univerjs/sheets-ui','exports','IDLE','evenodd','onStarting','disposeWithMe','LIVESHARE_REQUEST_HOST','@univerjs/sheets','params','_stopFollowing','tag','prototype','registerInitialStateReporter','_reporters','dispose','univerjs-icon\x20univerjs-icon-','_handleTerminate','_commandService','find','_handleNewHost','includes','Button','HEADER_MENU','LiveShareCoordinator','end','react/jsx-runtime','registerSharedOperation','8225yofQcK','UniverInstanceType','LiveShareService','@univerjs/design','IUIPartsService','fill','LiveShareStatus','idSuffix','SessionStatus','12194872bMYHhM','_liveShareService','createElement','FOLLOWING','_beIdle','Injector','next','toString','parse','35882766lEJGro','object','_stopPresenting','delete','OPERATION','@univerjs/ui','subscribe','Stop\x20presenting','IConfigService','Start\x20following','offline','_status$','LIVESHARE_TERMINATE'];_0x458f=function(){return _0x49e459;};return _0x458f();}function _0x1530(_0x283978,_0xc51340){var _0x458fb3=_0x458f();return _0x1530=function(_0x1530aa,_0x17d3e8){_0x1530aa=_0x1530aa-0x124;var _0x5621d5=_0x458fb3[_0x1530aa];return _0x5621d5;},_0x1530(_0x283978,_0xc51340);}(function(_0x2719b1,_0x3c6b8c){var _0xf84191=_0x1530,_0x6f8d06=_0x2719b1();while(!![]){try{var _0x4e2567=parseInt(_0xf84191(0x1db))/0x1+parseInt(_0xf84191(0x134))/0x2+parseInt(_0xf84191(0x167))/0x3+-parseInt(_0xf84191(0x1a5))/0x4*(-parseInt(_0xf84191(0x186))/0x5)+-parseInt(_0xf84191(0x1c1))/0x6*(-parseInt(_0xf84191(0x12d))/0x7)+-parseInt(_0xf84191(0x18f))/0x8+-parseInt(_0xf84191(0x198))/0x9;if(_0x4e2567===_0x3c6b8c)break;else _0x6f8d06['push'](_0x6f8d06['shift']());}catch(_0x7ae802){_0x6f8d06['push'](_0x6f8d06['shift']());}}}(_0x458f,0xf06b3),function(_0x32868f,_0x4b4b69){var _0x567cb5=_0x1530;typeof exports==_0x567cb5(0x199)&&typeof module<'u'?_0x4b4b69(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require(_0x567cb5(0x172)),require(_0x567cb5(0x16b)),require(_0x567cb5(0x19d)),require(_0x567cb5(0x184)),require(_0x567cb5(0x189)),require(_0x567cb5(0x155)),require(_0x567cb5(0x201)),require(_0x567cb5(0x1e5)),require(_0x567cb5(0x1d2))):typeof define==_0x567cb5(0x15a)&&define[_0x567cb5(0x1d4)]?define([_0x567cb5(0x16c),'@univerjs-pro/collaboration-client','@univerjs/core',_0x567cb5(0x172),_0x567cb5(0x16b),_0x567cb5(0x19d),_0x567cb5(0x184),_0x567cb5(0x189),_0x567cb5(0x155),_0x567cb5(0x201),_0x567cb5(0x1e5),_0x567cb5(0x1d2)],_0x4b4b69):(_0x32868f=typeof globalThis<'u'?globalThis:_0x32868f||self,_0x4b4b69(_0x32868f[_0x567cb5(0x1e9)]={},_0x32868f[_0x567cb5(0x13d)],_0x32868f[_0x567cb5(0x20a)],_0x32868f[_0x567cb5(0x1ea)],_0x32868f['UniverSheetsUi'],_0x32868f[_0x567cb5(0x147)],_0x32868f[_0x567cb5(0x1e4)],_0x32868f['UniverDesign'],_0x32868f[_0x567cb5(0x1e4)],_0x32868f['UniverProCollaboration'],_0x32868f[_0x567cb5(0x1e5)],_0x32868f[_0x567cb5(0x1e5)]['operators']));}(this,function(_0x111dae,_0x2693c2,_0x249eb0,_0x306ad3,_0x1ad0a7,_0x19c0e6,_0x1fe136,_0x1989c2,_0x5ea529,_0x22ea66,_0x55ecd5,_0x171a18){'use strict';var _0xa01d18=_0x1530;var _0x4111d2=Object[_0xa01d18(0x1b4)],_0x45adb1=(_0x13a5d3,_0x4d4147,_0x32842a)=>_0x4d4147 in _0x13a5d3?_0x4111d2(_0x13a5d3,_0x4d4147,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32842a}):_0x13a5d3[_0x4d4147]=_0x32842a,_0xb418c5=(_0x1c5374,_0x420fc9,_0x5d7d86)=>_0x45adb1(_0x1c5374,typeof _0x420fc9!=_0xa01d18(0x13e)?_0x420fc9+'':_0x420fc9,_0x5d7d86);const _0x4d1965='live-share.config',_0x382ed5={};class _0x12539d extends _0x249eb0[_0xa01d18(0x1dc)]{constructor(){var _0x14a050=_0xa01d18;super(...arguments),_0xb418c5(this,_0x14a050(0x1bf),new Set()),_0xb418c5(this,_0x14a050(0x178),new Set());}[_0xa01d18(0x185)](_0x4d520f){var _0x2a4998=_0xa01d18;return this[_0x2a4998(0x1bf)][_0x2a4998(0x1df)](_0x4d520f),_0x249eb0[_0x2a4998(0x1b2)](()=>this[_0x2a4998(0x1bf)][_0x2a4998(0x19b)](_0x4d520f));}[_0xa01d18(0x177)](_0x5e9211){var _0x5aa5df=_0xa01d18;return this[_0x5aa5df(0x178)][_0x5aa5df(0x1df)](_0x5e9211),_0x249eb0[_0x5aa5df(0x1b2)](()=>this['_reporters'][_0x5aa5df(0x19b)](_0x5e9211));}[_0xa01d18(0x12b)](_0x5cedcd){var _0xb5b317=_0xa01d18;return this[_0xb5b317(0x1bf)][_0xb5b317(0x135)](_0x5cedcd);}[_0xa01d18(0x129)](_0x2b78f4){var _0x204947=_0xa01d18;return Array[_0x204947(0x1c5)](this[_0x204947(0x178)])[_0x204947(0x12e)](_0x133827=>_0x133827(_0x2b78f4));}}var _0x3abd3e=Object['getOwnPropertyDescriptor'],_0x385ed5=(_0x524ebb,_0x5e2bf7,_0x5765a1,_0x8cd503)=>{for(var _0x285ef3=_0x8cd503>0x1?void 0x0:_0x8cd503?_0x3abd3e(_0x5e2bf7,_0x5765a1):_0x5e2bf7,_0x56ab6a=_0x524ebb['length']-0x1,_0x261276;_0x56ab6a>=0x0;_0x56ab6a--)(_0x261276=_0x524ebb[_0x56ab6a])&&(_0x285ef3=_0x261276(_0x285ef3)||_0x285ef3);return _0x285ef3;},_0x5d4ebc=(_0x3688a1,_0x521d15)=>(_0x3f069c,_0x488a4c)=>_0x521d15(_0x3f069c,_0x488a4c,_0x3688a1);let _0x3472bf=class extends _0x249eb0['Disposable']{constructor(_0x11138d){var _0x2a3178=_0xa01d18;super(),this[_0x2a3178(0x190)]=_0x11138d,this[_0x2a3178(0x154)]();}['_init'](){var _0x227e3f=_0xa01d18;[_0x1ad0a7[_0x227e3f(0x1c8)]['id'],_0x1ad0a7[_0x227e3f(0x15e)]['id'],_0x306ad3[_0x227e3f(0x1ba)]['id']][_0x227e3f(0x206)](_0x31b11f=>{var _0x9936f6=_0x227e3f;this['disposeWithMe'](this[_0x9936f6(0x190)]['registerSharedOperation'](_0x31b11f));});}};_0x3472bf=_0x385ed5([_0x5d4ebc(0x0,_0x249eb0['Inject'](_0x12539d))],_0x3472bf);var _0x2fc022=function(){var _0x5e5366=_0xa01d18;return _0x2fc022=Object[_0x5e5366(0x1e8)]||function(_0x4c93d3){var _0xf9f765=_0x5e5366;for(var _0xdce9e,_0x1bed94=0x1,_0x56188d=arguments[_0xf9f765(0x1f8)];_0x1bed94<_0x56188d;_0x1bed94++){_0xdce9e=arguments[_0x1bed94];for(var _0x7205d1 in _0xdce9e)Object[_0xf9f765(0x176)][_0xf9f765(0x1c7)][_0xf9f765(0x1fb)](_0xdce9e,_0x7205d1)&&(_0x4c93d3[_0x7205d1]=_0xdce9e[_0x7205d1]);}return _0x4c93d3;},_0x2fc022['apply'](this,arguments);},_0x27cd57=function(_0x335e69,_0x55cfd7){var _0x37b4d5=_0xa01d18,_0x602e5c={};for(var _0xb22875 in _0x335e69)Object[_0x37b4d5(0x176)][_0x37b4d5(0x1c7)][_0x37b4d5(0x1fb)](_0x335e69,_0xb22875)&&_0x55cfd7['indexOf'](_0xb22875)<0x0&&(_0x602e5c[_0xb22875]=_0x335e69[_0xb22875]);if(_0x335e69!=null&&typeof Object[_0x37b4d5(0x156)]==_0x37b4d5(0x15a)){for(var _0x311fa9=0x0,_0xb22875=Object[_0x37b4d5(0x156)](_0x335e69);_0x311fa9<_0xb22875[_0x37b4d5(0x1f8)];_0x311fa9++)_0x55cfd7['indexOf'](_0xb22875[_0x311fa9])<0x0&&Object[_0x37b4d5(0x176)][_0x37b4d5(0x150)][_0x37b4d5(0x1fb)](_0x335e69,_0xb22875[_0x311fa9])&&(_0x602e5c[_0xb22875[_0x311fa9]]=_0x335e69[_0xb22875[_0x311fa9]]);}return _0x602e5c;},_0x330028=_0x5ea529[_0xa01d18(0x210)](function(_0x2cf101,_0x211d27){var _0x1602e5=_0xa01d18,_0x259096=_0x2cf101['icon'],_0x261a41=_0x2cf101['id'],_0x17aa8a=_0x2cf101[_0x1602e5(0x145)],_0x274475=_0x2cf101[_0x1602e5(0x160)],_0x41c680=_0x27cd57(_0x2cf101,['icon','id',_0x1602e5(0x145),_0x1602e5(0x160)]),_0x37c522=_0x1602e5(0x17a)[_0x1602e5(0x1c9)](_0x261a41,'\x20')[_0x1602e5(0x1c9)](_0x17aa8a||'')[_0x1602e5(0x143)](),_0x187bc3=_0x5ea529[_0x1602e5(0x159)]('_'[_0x1602e5(0x1c9)](_0x539db2()));return _0x2f72ee(_0x259096,''[_0x1602e5(0x1c9)](_0x261a41),{'defIds':_0x259096['defIds'],'idSuffix':_0x187bc3['current']},_0x2fc022({'ref':_0x211d27,'className':_0x37c522},_0x41c680),_0x274475);});function _0x2f72ee(_0x5a654e,_0x109cf2,_0xb09c69,_0xd63d3a,_0x41ac8c){var _0x39b49b=_0xa01d18;return _0x5ea529[_0x39b49b(0x191)](_0x5a654e[_0x39b49b(0x175)],_0x2fc022(_0x2fc022({'key':_0x109cf2},_0xf226a9(_0x5a654e,_0xb09c69,_0x41ac8c)),_0xd63d3a),(_0x1d2c82(_0x5a654e,_0xb09c69)[_0x39b49b(0x1c0)]||[])['map'](function(_0x2b7e32,_0x2f1242){var _0x59ac07=_0x39b49b;return _0x2f72ee(_0x2b7e32,''['concat'](_0x109cf2,'-')[_0x59ac07(0x1c9)](_0x5a654e[_0x59ac07(0x175)],'-')[_0x59ac07(0x1c9)](_0x2f1242),_0xb09c69,void 0x0,_0x41ac8c);}));}function _0xf226a9(_0x23a609,_0x24ed9d,_0x120acb){var _0x5b9c8e=_0xa01d18,_0x23a8d3=_0x2fc022({},_0x23a609[_0x5b9c8e(0x124)]);_0x120acb!=null&&_0x120acb[_0x5b9c8e(0x1b1)]&&_0x23a8d3['fill']===_0x5b9c8e(0x1b1)&&(_0x23a8d3[_0x5b9c8e(0x18b)]=_0x120acb[_0x5b9c8e(0x1b1)]),_0x23a609[_0x5b9c8e(0x175)]===_0x5b9c8e(0x152)&&_0x23a8d3['id']&&(_0x23a8d3['id']=_0x23a8d3['id']+_0x24ed9d[_0x5b9c8e(0x18d)]),Object[_0x5b9c8e(0x1c6)](_0x23a8d3)['forEach'](function(_0x5b0ecd){var _0x1bfd95=_0x5b9c8e,_0x2cd205=_0x5b0ecd[0x0],_0x48a0d0=_0x5b0ecd[0x1];_0x2cd205===_0x1bfd95(0x152)&&typeof _0x48a0d0==_0x1bfd95(0x20d)&&(_0x23a8d3[_0x2cd205]=_0x48a0d0[_0x1bfd95(0x126)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x24ed9d[_0x1bfd95(0x18d)],')')));});var _0x4ee12a=_0x24ed9d['defIds'];return!_0x4ee12a||_0x4ee12a['length']===0x0||(_0x23a609[_0x5b9c8e(0x175)]==='use'&&_0x23a8d3[_0x5b9c8e(0x149)]&&(_0x23a8d3[_0x5b9c8e(0x149)]=_0x23a8d3['xlink:href']+_0x24ed9d[_0x5b9c8e(0x18d)]),Object[_0x5b9c8e(0x1c6)](_0x23a8d3)['forEach'](function(_0x5dfaa3){var _0x4c8b31=_0x5b9c8e,_0x2de7da=_0x5dfaa3[0x0],_0x4b3134=_0x5dfaa3[0x1];typeof _0x4b3134==_0x4c8b31(0x20d)&&(_0x23a8d3[_0x2de7da]=_0x4b3134[_0x4c8b31(0x126)](/url\(#(.*)\)/,'url(#$1'[_0x4c8b31(0x1c9)](_0x24ed9d['idSuffix'],')')));})),_0x23a8d3;}function _0x1d2c82(_0x285193,_0x6b10c1){var _0x2ca5ee=_0xa01d18,_0x5f54ed,_0xe06643=_0x6b10c1[_0x2ca5ee(0x1a7)];return!_0xe06643||_0xe06643[_0x2ca5ee(0x1f8)]===0x0?_0x285193:_0x285193[_0x2ca5ee(0x175)]==='defs'&&(!((_0x5f54ed=_0x285193['children'])===null||_0x5f54ed===void 0x0)&&_0x5f54ed[_0x2ca5ee(0x1f8)])?_0x2fc022(_0x2fc022({},_0x285193),{'children':_0x285193[_0x2ca5ee(0x1c0)][_0x2ca5ee(0x12e)](function(_0x5ad54f){var _0x145397=_0x2ca5ee;return typeof _0x5ad54f['attrs']['id']==_0x145397(0x20d)&&_0xe06643&&_0xe06643[_0x145397(0x17f)](_0x5ad54f[_0x145397(0x124)]['id'])?_0x2fc022(_0x2fc022({},_0x5ad54f),{'attrs':_0x2fc022(_0x2fc022({},_0x5ad54f[_0x145397(0x124)]),{'id':_0x5ad54f[_0x145397(0x124)]['id']+_0x6b10c1[_0x145397(0x18d)]})}):_0x5ad54f;})}):_0x285193;}function _0x539db2(){var _0x3c53c0=_0xa01d18;return Math[_0x3c53c0(0x161)]()[_0x3c53c0(0x196)](0x24)['substring'](0x2,0x8);}_0x330028[_0xa01d18(0x1ec)]='UniverIcon';var _0x397cce={'tag':'svg','attrs':{'xmlns':_0xa01d18(0x158),'fill':'none','viewBox':_0xa01d18(0x128),'width':_0xa01d18(0x125),'height':_0xa01d18(0x125)},'children':[{'tag':'path','attrs':{'fill':_0xa01d18(0x1da),'d':_0xa01d18(0x1fd)}},{'tag':'path','attrs':{'fill':_0xa01d18(0x1da),'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':_0xa01d18(0x16e),'clipRule':'evenodd'}}]},_0x372d63=_0x5ea529['forwardRef'](function(_0x568dd7,_0x31ae60){var _0xc08c4f=_0xa01d18;return _0x5ea529[_0xc08c4f(0x191)](_0x330028,Object[_0xc08c4f(0x1e8)]({},_0x568dd7,{'id':_0xc08c4f(0x1c2),'ref':_0x31ae60,'icon':_0x397cce}));});_0x372d63[_0xa01d18(0x1ec)]=_0xa01d18(0x14a);var _0x517d3b=Object[_0xa01d18(0x1bd)],_0x2d44a6=(_0x54ebc8,_0x4e5a42,_0x238e51,_0x19d784)=>{var _0x466323=_0xa01d18;for(var _0x56f7d5=_0x19d784>0x1?void 0x0:_0x19d784?_0x517d3b(_0x4e5a42,_0x238e51):_0x4e5a42,_0xc4875e=_0x54ebc8[_0x466323(0x1f8)]-0x1,_0x265d72;_0xc4875e>=0x0;_0xc4875e--)(_0x265d72=_0x54ebc8[_0xc4875e])&&(_0x56f7d5=_0x265d72(_0x56f7d5)||_0x56f7d5);return _0x56f7d5;},_0x1d6d2b=(_0x2a2266,_0x48546a)=>(_0xb53db,_0x1be5b4)=>_0x48546a(_0xb53db,_0x1be5b4,_0x2a2266);_0x111dae[_0xa01d18(0x13c)]=class extends _0x249eb0['RxDisposable']{constructor(_0x125a2d,_0x354e51,_0x1c9741){var _0x2f2def=_0xa01d18;super(),_0xb418c5(this,_0x2f2def(0x1d3),new Map()),(this[_0x2f2def(0x1f0)]=_0x125a2d,this[_0x2f2def(0x132)]=_0x354e51,this[_0x2f2def(0x1d1)]=_0x1c9741,this[_0x2f2def(0x154)]());}async['getLiveShareCoordinator'](_0x799005){var _0x2b1cd1=_0xa01d18;return this[_0x2b1cd1(0x1d3)][_0x2b1cd1(0x135)](_0x799005)||await this['_startLiveShareCoordinator'](_0x799005),this[_0x2b1cd1(0x1d3)][_0x2b1cd1(0x1ae)](_0x799005);}[_0xa01d18(0x154)](){var _0x3a31bf=_0xa01d18;this[_0x3a31bf(0x1f0)][_0x3a31bf(0x1dd)](_0x249eb0['UniverInstanceType'][_0x3a31bf(0x151)])[_0x3a31bf(0x137)](_0x171a18['takeUntil'](this['dispose$']))['subscribe'](async _0xb8d2c7=>{var _0x29c2a0=_0x3a31bf;const _0xf5797e=_0xb8d2c7[_0x29c2a0(0x13b)]();this[_0x29c2a0(0x1d3)]['has'](_0xf5797e)||this[_0x29c2a0(0x1d8)](_0xf5797e);}),this[_0x3a31bf(0x1f0)][_0x3a31bf(0x169)](_0x249eb0['UniverInstanceType']['UNIVER_SHEET'])[_0x3a31bf(0x137)](_0x171a18[_0x3a31bf(0x1b9)](this[_0x3a31bf(0x1eb)]))[_0x3a31bf(0x19e)](_0x3a8221=>{var _0x588000=_0x3a31bf;const _0x5c48ee=_0x3a8221[_0x588000(0x13b)](),_0x17d2a1=this[_0x588000(0x1d3)][_0x588000(0x1ae)](_0x5c48ee);_0x17d2a1==null||_0x17d2a1[_0x588000(0x179)]();});}async['_startLiveShareCoordinator'](_0x47031f){var _0x64452a=_0xa01d18;const _0x56badd=await this[_0x64452a(0x1d1)]['requireSession'](_0x47031f),_0x599fb9=this[_0x64452a(0x132)][_0x64452a(0x1f6)](_0x111dae['LiveShareCoordinator'],_0x47031f,_0x56badd);return _0x599fb9[_0x64452a(0x1b0)](),this['_entities']['set'](_0x47031f,_0x599fb9),_0x599fb9;}},_0x111dae[_0xa01d18(0x13c)]=_0x2d44a6([_0x1d6d2b(0x0,_0x249eb0['IUniverInstanceService']),_0x1d6d2b(0x1,_0x249eb0[_0xa01d18(0x12c)](_0x249eb0[_0xa01d18(0x194)])),_0x1d6d2b(0x2,_0x249eb0[_0xa01d18(0x12c)](_0x2693c2[_0xa01d18(0x1f2)]))],_0x111dae[_0xa01d18(0x13c)]);var _0x640ade=(_0x1265ba=>(_0x1265ba['OFFLINE']='offline',_0x1265ba[_0xa01d18(0x16d)]=_0xa01d18(0x1de),_0x1265ba[_0xa01d18(0x192)]=_0xa01d18(0x15d),_0x1265ba['NOT_FOLLOWING']=_0xa01d18(0x208),_0x1265ba[_0xa01d18(0x1bb)]='presenting',_0x1265ba))(_0x640ade||{});const _0x3a695f='SAME_OPERATION_SHARE_INTERVAL',_0x410292=0xc8;_0x111dae[_0xa01d18(0x182)]=class extends _0x249eb0['RxDisposable']{constructor(_0x3202bd,_0x3923e6,_0x4b3a3c,_0x394693,_0xc6d3e4){var _0x55a504=_0xa01d18;super(),_0xb418c5(this,_0x55a504(0x1a3),new _0x55ecd5['BehaviorSubject'](_0x55a504(0x1de))),_0xb418c5(this,_0x55a504(0x1f5),this['_status$'][_0x55a504(0x20e)]()),_0xb418c5(this,_0x55a504(0x154),!0x1),_0xb418c5(this,_0x55a504(0x13f),null),_0xb418c5(this,_0x55a504(0x163),null),(this[_0x55a504(0x1fc)]=_0x3202bd,this[_0x55a504(0x1d7)]=_0x3923e6,this[_0x55a504(0x130)]=_0x4b3a3c,this[_0x55a504(0x190)]=_0x394693,this[_0x55a504(0x17c)]=_0xc6d3e4);}get['_status'](){var _0x21dee2=_0xa01d18;return this[_0x21dee2(0x1a3)][_0x21dee2(0x136)]();}[_0xa01d18(0x179)](){var _0x1d4cf6=_0xa01d18,_0x5522d1;(_0x5522d1=this[_0x1d4cf6(0x13f)])==null||_0x5522d1[_0x1d4cf6(0x179)](),this[_0x1d4cf6(0x1a3)][_0x1d4cf6(0x195)](_0x1d4cf6(0x1de)),this[_0x1d4cf6(0x1a3)][_0x1d4cf6(0x1fa)]();}[_0xa01d18(0x1b0)](){var _0x3964da=_0xa01d18;this['_init']||(this[_0x3964da(0x154)]=!0x0,this[_0x3964da(0x1d7)][_0x3964da(0x1f3)]['pipe'](_0x171a18[_0x3964da(0x1b9)](this[_0x3964da(0x1eb)]))[_0x3964da(0x19e)](_0x4b523a=>{var _0x56c95a=_0x3964da;switch(_0x4b523a){case _0x2693c2['SessionStatus'][_0x56c95a(0x1e1)]:this[_0x56c95a(0x1f4)]();break;case _0x2693c2[_0x56c95a(0x18e)][_0x56c95a(0x1d0)]:this[_0x56c95a(0x1ef)]();break;}}),this[_0x3964da(0x1d7)][_0x3964da(0x1ad)][_0x3964da(0x137)](_0x171a18[_0x3964da(0x1b9)](this[_0x3964da(0x1eb)]))['subscribe'](_0xc297a9=>{var _0x271819=_0x3964da;const {eventID:_0x490211}=_0xc297a9;switch(_0x490211){case _0x22ea66[_0x271819(0x12a)][_0x271819(0x1e2)]:this[_0x271819(0x17e)](_0xc297a9);break;case _0x22ea66[_0x271819(0x12a)]['LIVESHARE_OPERATION']:this[_0x271819(0x1fe)](_0xc297a9);break;case _0x22ea66[_0x271819(0x12a)][_0x271819(0x1a4)]:this[_0x271819(0x17b)]();break;case _0x22ea66[_0x271819(0x12a)][_0x271819(0x139)]:this[_0x271819(0x205)](_0xc297a9);break;}}));}[_0xa01d18(0x14f)](){var _0x1f45f4=_0xa01d18;this[_0x1f45f4(0x1d7)]['send']({'eventID':_0x22ea66[_0x1f45f4(0x12a)][_0x1f45f4(0x171)],'data':{'unitID':this[_0x1f45f4(0x1fc)],'userID':this['_collabSession'][_0x1f45f4(0x202)]()}},this[_0x1f45f4(0x1fc)]);}[_0xa01d18(0x138)](){var _0x47cd5d=_0xa01d18;this[_0x47cd5d(0x1e7)]==='presenting'&&(this[_0x47cd5d(0x1a3)][_0x47cd5d(0x195)](_0x47cd5d(0x1de)),this['_collabSession'][_0x47cd5d(0x1be)]({'eventID':_0x22ea66[_0x47cd5d(0x12a)][_0x47cd5d(0x1a4)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0xa01d18(0x1ed)](){var _0x54bbd7=_0xa01d18;this[_0x54bbd7(0x1e7)]==='not-following'&&(this['_status$'][_0x54bbd7(0x195)]('following'),this['_startFollowing']());}[_0xa01d18(0x1aa)](){var _0x2ad2ab=_0xa01d18;this[_0x2ad2ab(0x1e7)]===_0x2ad2ab(0x15d)&&this['_stopFollowing']();}[_0xa01d18(0x17e)](_0x464f2b){var _0xee7720=_0xa01d18;const {presenter:_0x29b0ea}=_0x464f2b[_0xee7720(0x1af)],_0x4cbca0=this[_0xee7720(0x1d7)][_0xee7720(0x202)]();this[_0xee7720(0x163)]=_0x29b0ea,_0x29b0ea===_0x4cbca0?(this[_0xee7720(0x174)](),this[_0xee7720(0x140)]()):this['_status']!==_0xee7720(0x208)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xa01d18(0x1ac)](){var _0x4df302=_0xa01d18;const _0x315963={'eventID':_0x22ea66[_0x4df302(0x12a)][_0x4df302(0x1a6)]};this[_0x4df302(0x1d7)][_0x4df302(0x1be)](_0x315963,this[_0x4df302(0x1fc)]);}['_handleTerminate'](){var _0x503a38=_0xa01d18;this[_0x503a38(0x163)]=null,this['_status']!=='presenting'&&this[_0x503a38(0x193)]();}[_0xa01d18(0x205)](_0x16abf7){var _0x45625a=_0xa01d18;if(this[_0x45625a(0x1e7)]==='following'&&this[_0x45625a(0x163)]===_0x16abf7[_0x45625a(0x1af)][_0x45625a(0x15f)]){const _0x2587dd=_0x22ea66[_0x45625a(0x142)](_0x16abf7[_0x45625a(0x1af)])[_0x45625a(0x1bc)][_0x45625a(0x207)]()[_0x45625a(0x17d)](_0x27201b=>_0x27201b['id']===_0x306ad3[_0x45625a(0x1f7)]['id']);if(_0x2587dd){const _0x199ba9=_0x2587dd['params'][_0x45625a(0x1cd)],_0x21e57c=_0x2587dd[_0x45625a(0x173)]['sheet']['id'];setTimeout(()=>{var _0x44061d=_0x45625a;this[_0x44061d(0x17c)][_0x44061d(0x203)](_0x306ad3['SetWorksheetActiveOperation']['id'],{'unitId':_0x199ba9,'subUnitId':_0x21e57c},{'fromCollab':!0x0});});}}}[_0xa01d18(0x140)](){var _0xe95f44=_0xa01d18;this[_0xe95f44(0x1a3)][_0xe95f44(0x195)]('presenting');const _0x46392a=new Map(),_0x383c88=this[_0xe95f44(0x13f)]=new _0x249eb0[(_0xe95f44(0x127))]();_0x383c88[_0xe95f44(0x1df)](_0x249eb0['toDisposable'](()=>{var _0x2f2002=_0xe95f44;_0x46392a['forEach'](_0x40f7bd=>_0x40f7bd[_0x2f2002(0x1fa)]()),_0x46392a['clear']();})),_0x383c88[_0xe95f44(0x1df)](this[_0xe95f44(0x17c)][_0xe95f44(0x15c)](_0x192648=>{var _0x70d8a6=_0xe95f44,_0x365dcc;if(_0x192648[_0x70d8a6(0x141)]!==_0x249eb0['CommandType'][_0x70d8a6(0x19c)]||!this[_0x70d8a6(0x190)][_0x70d8a6(0x12b)](_0x192648['id']))return;const {id:_0x82eed9}=_0x192648;let _0x4586b5;_0x46392a[_0x70d8a6(0x135)](_0x82eed9)?_0x4586b5=_0x46392a[_0x70d8a6(0x1ae)](_0x82eed9):(_0x4586b5=new _0x55ecd5[(_0x70d8a6(0x1a8))](),_0x46392a[_0x70d8a6(0x12f)](_0x82eed9,_0x4586b5),_0x4586b5['pipe'](_0x171a18['throttleTime']((_0x365dcc=this[_0x70d8a6(0x130)]['getConfig'](_0x3a695f))!=null?_0x365dcc:_0x410292,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x70d8a6(0x19e)](_0x43deb4=>{var _0x1eebf8=_0x70d8a6;this[_0x1eebf8(0x1d7)]['send']({'eventID':_0x22ea66[_0x1eebf8(0x12a)][_0x1eebf8(0x1e6)],'data':{'unitID':this['_unitID'],'operations':{[_0x43deb4['id']]:{'id':_0x43deb4['id'],'params':JSON[_0x1eebf8(0x16a)](_0x43deb4[_0x1eebf8(0x173)])}}}},this['_unitID']);})),_0x4586b5[_0x70d8a6(0x195)](_0x192648);})),this[_0xe95f44(0x190)][_0xe95f44(0x129)](this[_0xe95f44(0x1fc)])[_0xe95f44(0x206)](_0x2f5a7b=>this[_0xe95f44(0x1d7)][_0xe95f44(0x1be)]({'eventID':_0x22ea66[_0xe95f44(0x12a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xe95f44(0x1fc)],'operations':{[_0x2f5a7b['id']]:{'id':_0x2f5a7b['id'],'params':JSON[_0xe95f44(0x16a)](_0x2f5a7b['params'])}}}},this['_unitID']));}[_0xa01d18(0x19a)](){var _0x26fc16=_0xa01d18,_0x18bcc0;this[_0x26fc16(0x1a3)][_0x26fc16(0x195)]('idle'),(_0x18bcc0=this[_0x26fc16(0x13f)])==null||_0x18bcc0['dispose'](),this[_0x26fc16(0x13f)]=null;}[_0xa01d18(0x1ee)](){var _0x388458=_0xa01d18,_0x10ef2d;(_0x10ef2d=this[_0x388458(0x13f)])==null||_0x10ef2d[_0x388458(0x179)](),this['_status$'][_0x388458(0x195)]('following');}[_0xa01d18(0x193)](){var _0x4a5fd1=_0xa01d18,_0x1c5cab;this['_status$'][_0x4a5fd1(0x195)](_0x4a5fd1(0x1de)),(_0x1c5cab=this[_0x4a5fd1(0x13f)])==null||_0x1c5cab[_0x4a5fd1(0x179)](),this[_0x4a5fd1(0x13f)]=null;}[_0xa01d18(0x174)](){var _0x94e228=_0xa01d18,_0x3e8dee;this[_0x94e228(0x1a3)][_0x94e228(0x195)]('not-following'),(_0x3e8dee=this[_0x94e228(0x13f)])==null||_0x3e8dee[_0x94e228(0x179)]();}[_0xa01d18(0x1fe)](_0x5a2d91){var _0xc4400f=_0xa01d18;if([_0xc4400f(0x1cb),_0xc4400f(0x208),_0xc4400f(0x1a2)][_0xc4400f(0x17f)](this[_0xc4400f(0x1e7)])||!_0x5a2d91[_0xc4400f(0x1af)][_0xc4400f(0x1ff)]||_0x5a2d91[_0xc4400f(0x1af)][_0xc4400f(0x1ff)]===this[_0xc4400f(0x1d7)][_0xc4400f(0x202)]())return;this[_0xc4400f(0x1e7)]===_0xc4400f(0x1de)&&this[_0xc4400f(0x1ee)]();const _0x35ddfe=_0x5a2d91[_0xc4400f(0x1af)][_0xc4400f(0x204)];Object[_0xc4400f(0x1cf)](_0x35ddfe)[_0xc4400f(0x206)](_0x4f5897=>{var _0xb17ee3=_0xc4400f;this[_0xb17ee3(0x17c)][_0xb17ee3(0x203)](_0x4f5897['id'],_0x4f5897[_0xb17ee3(0x173)]?JSON[_0xb17ee3(0x197)](_0x4f5897[_0xb17ee3(0x173)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0xed9337=_0xa01d18,_0x2c9f2a;this['_status$'][_0xed9337(0x195)](_0xed9337(0x1a2)),(_0x2c9f2a=this[_0xed9337(0x13f)])==null||_0x2c9f2a[_0xed9337(0x179)]();}['_handleOnline'](){var _0x533b13=_0xa01d18;this['_status$'][_0x533b13(0x195)](_0x533b13(0x1de)),this[_0x533b13(0x1ac)]();}},_0x111dae[_0xa01d18(0x182)]=_0x2d44a6([_0x1d6d2b(0x2,_0x249eb0[_0xa01d18(0x1a0)]),_0x1d6d2b(0x3,_0x249eb0[_0xa01d18(0x12c)](_0x12539d)),_0x1d6d2b(0x4,_0x249eb0[_0xa01d18(0x1d6)])],_0x111dae[_0xa01d18(0x182)]);function _0x3c380e(){var _0x2714a1=_0xa01d18;const _0x262dc0=_0x19c0e6[_0x2714a1(0x166)](_0x111dae['LiveShareController']),_0x10e062=_0x19c0e6['useDependency'](_0x249eb0[_0x2714a1(0x13a)]),_0x540e59=_0x19c0e6[_0x2714a1(0x1ce)](()=>_0x10e062[_0x2714a1(0x148)](_0x249eb0[_0x2714a1(0x187)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x30d9bb,_0x28e662]=_0x5ea529[_0x2714a1(0x211)](null),[_0x5ca2bc,_0x519835]=_0x5ea529[_0x2714a1(0x211)](_0x640ade['IDLE']),_0x18bb20=_0x5ea529[_0x2714a1(0x159)](null);return _0x5ea529[_0x2714a1(0x1a9)](()=>(_0x540e59&&_0x262dc0[_0x2714a1(0x15b)](_0x540e59[_0x2714a1(0x13b)]())['then'](_0xf4b317=>{var _0x3d0ebb=_0x2714a1;_0x28e662(_0xf4b317),_0x18bb20[_0x3d0ebb(0x1b5)]=_0xf4b317[_0x3d0ebb(0x1f5)][_0x3d0ebb(0x19e)](_0x5746fc=>{_0x519835(_0x5746fc);});}),()=>{var _0x3da522=_0x2714a1,_0x4c2ecf;(_0x4c2ecf=_0x18bb20[_0x3da522(0x1b5)])==null||_0x4c2ecf[_0x3da522(0x20f)](),_0x18bb20[_0x3da522(0x1b5)]=null;}),[_0x540e59,_0x262dc0]),_0x30d9bb?_0x1fe136[_0x2714a1(0x209)](_0x1989c2[_0x2714a1(0x20c)],{'align':_0x2714a1(0x183),'disabled':_0x5ca2bc===_0x640ade[_0x2714a1(0x1e1)],'className':_0x2714a1(0x200),'overlay':_0x1fe136[_0x2714a1(0x209)](_0x48a3d3,{'status':_0x5ca2bc,'coordinator':_0x30d9bb}),'children':_0x1fe136[_0x2714a1(0x209)](_0x2714a1(0x153),{'className':_0x1989c2[_0x2714a1(0x1b6)](_0x2714a1(0x144),{'univer-cursor-not-allowed':_0x5ca2bc===_0x640ade[_0x2714a1(0x1e1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5ca2bc!==_0x640ade[_0x2714a1(0x1e1)]}),'type':_0x2714a1(0x153),'children':_0x1fe136['jsx'](_0x372d63,{'className':_0x2714a1(0x1cc)})})}):null;}function _0x48a3d3(_0x5ddfa4){var _0x94d4ba=_0xa01d18;const {status:_0x493a31,coordinator:_0xd874b7}=_0x5ddfa4;switch(_0x493a31){case _0x640ade[_0x94d4ba(0x16d)]:return _0x1fe136[_0x94d4ba(0x209)](_0x406974,{'coordinator':_0xd874b7});case _0x640ade[_0x94d4ba(0x192)]:return _0x1fe136[_0x94d4ba(0x209)](_0x12ff7d,{'coordinator':_0xd874b7});case _0x640ade[_0x94d4ba(0x1e3)]:return _0x1fe136[_0x94d4ba(0x209)](_0x246ebf,{'coordinator':_0xd874b7});case _0x640ade['OFFLINE']:return _0x1fe136[_0x94d4ba(0x209)](_0x342c5d,{});case _0x640ade[_0x94d4ba(0x1bb)]:return _0x1fe136[_0x94d4ba(0x209)](_0x2107dd,{'coordinator':_0xd874b7});default:return null;}}function _0x406974(_0x1660aa){var _0x5906f1=_0xa01d18;const {coordinator:_0xa1c916}=_0x1660aa;return _0x1fe136[_0x5906f1(0x1b3)](_0x1fe136[_0x5906f1(0x165)],{'children':[_0x1fe136[_0x5906f1(0x209)](_0x5906f1(0x1b7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5906f1(0x1ca)}),_0x1fe136[_0x5906f1(0x209)](_0x1989c2[_0x5906f1(0x180)],{'onClick':()=>_0xa1c916['tryStartPresenting'](),'children':'Start'})]});}function _0x12ff7d(_0x327085){var _0x19123a=_0xa01d18;const {coordinator:_0x2f06d7}=_0x327085;return _0x1fe136[_0x19123a(0x1b3)](_0x1fe136[_0x19123a(0x165)],{'children':[_0x1fe136[_0x19123a(0x209)](_0x19123a(0x1b7),{'className':_0x19123a(0x1f9),'children':_0x19123a(0x1b8)}),_0x1fe136[_0x19123a(0x209)](_0x1989c2[_0x19123a(0x180)],{'onClick':()=>_0x2f06d7[_0x19123a(0x1aa)](),'children':'Stop\x20following'})]});}function _0x246ebf(_0xc806da){var _0x36edd1=_0xa01d18;const {coordinator:_0x301a76}=_0xc806da;return _0x1fe136[_0x36edd1(0x1b3)](_0x1fe136['Fragment'],{'children':[_0x1fe136['jsx']('div',{'className':_0x36edd1(0x1f9),'children':_0x36edd1(0x168)}),_0x1fe136['jsx'](_0x1989c2[_0x36edd1(0x180)],{'variant':'text','onClick':()=>_0x301a76[_0x36edd1(0x1ed)](),'children':_0x36edd1(0x1a1)})]});}function _0x2107dd(_0x3cd1c3){var _0x2b3b4c=_0xa01d18;const {coordinator:_0x420768}=_0x3cd1c3;return _0x1fe136[_0x2b3b4c(0x1b3)](_0x1fe136['Fragment'],{'children':[_0x1fe136['jsx'](_0x2b3b4c(0x1b7),{'className':_0x2b3b4c(0x1f9),'children':_0x2b3b4c(0x131)}),_0x1fe136[_0x2b3b4c(0x209)](_0x1989c2[_0x2b3b4c(0x180)],{'variant':_0x2b3b4c(0x1f1),'onClick':()=>_0x420768[_0x2b3b4c(0x138)](),'children':_0x2b3b4c(0x19f)})]});}function _0x342c5d(){var _0x38f306=_0xa01d18;return _0x1fe136[_0x38f306(0x209)](_0x1fe136[_0x38f306(0x165)],{'children':'You\x27are\x20offline.'});}var _0x13f1f3=Object[_0xa01d18(0x1bd)],_0x3176e4=(_0x5b484f,_0x1b6a83,_0x3970b4,_0x5137e3)=>{var _0xfb6e5e=_0xa01d18;for(var _0xa1bae1=_0x5137e3>0x1?void 0x0:_0x5137e3?_0x13f1f3(_0x1b6a83,_0x3970b4):_0x1b6a83,_0x398268=_0x5b484f[_0xfb6e5e(0x1f8)]-0x1,_0x475ee3;_0x398268>=0x0;_0x398268--)(_0x475ee3=_0x5b484f[_0x398268])&&(_0xa1bae1=_0x475ee3(_0xa1bae1)||_0xa1bae1);return _0xa1bae1;},_0x33152b=(_0x258e0e,_0x16aa53)=>(_0x1e2015,_0x4435c9)=>_0x16aa53(_0x1e2015,_0x4435c9,_0x258e0e);_0x111dae[_0xa01d18(0x164)]=class extends _0x249eb0['Disposable']{constructor(_0x4b5c15,_0x19d8f6){var _0x143fce=_0xa01d18;super(),this[_0x143fce(0x132)]=_0x4b5c15,this[_0x143fce(0x1c3)]=_0x19d8f6,this['_mountLiveShare']();}[_0xa01d18(0x1c4)](){var _0x2356af=_0xa01d18;this[_0x2356af(0x170)](this[_0x2356af(0x1c3)][_0x2356af(0x14c)](_0x19c0e6[_0x2356af(0x1ab)][_0x2356af(0x181)],()=>_0x19c0e6['connectInjector'](_0x3c380e,this[_0x2356af(0x132)])));}},_0x111dae[_0xa01d18(0x164)]=_0x3176e4([_0x33152b(0x0,_0x249eb0[_0xa01d18(0x12c)](_0x249eb0[_0xa01d18(0x194)])),_0x33152b(0x1,_0x19c0e6[_0xa01d18(0x18a)])],_0x111dae[_0xa01d18(0x164)]);var _0x22cf3b=Object['defineProperty'],_0x434f6b=Object[_0xa01d18(0x1bd)],_0x54aa3c=(_0x55c129,_0x4ffaa7,_0x1e13d8)=>_0x4ffaa7 in _0x55c129?_0x22cf3b(_0x55c129,_0x4ffaa7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e13d8}):_0x55c129[_0x4ffaa7]=_0x1e13d8,_0x121e74=(_0x9dce95,_0x2f1f3e,_0x190416,_0x105b27)=>{var _0x900801=_0xa01d18;for(var _0x3fd562=_0x105b27>0x1?void 0x0:_0x105b27?_0x434f6b(_0x2f1f3e,_0x190416):_0x2f1f3e,_0x49906b=_0x9dce95[_0x900801(0x1f8)]-0x1,_0x413ef9;_0x49906b>=0x0;_0x49906b--)(_0x413ef9=_0x9dce95[_0x49906b])&&(_0x3fd562=_0x413ef9(_0x3fd562)||_0x3fd562);return _0x3fd562;},_0x2f4980=(_0x19c8f2,_0x3cc4be)=>(_0x320b0d,_0x4d7c66)=>_0x3cc4be(_0x320b0d,_0x4d7c66,_0x19c8f2),_0x48c188=(_0x2ec1de,_0x153551,_0x3a1d39)=>_0x54aa3c(_0x2ec1de,typeof _0x153551!=_0xa01d18(0x13e)?_0x153551+'':_0x153551,_0x3a1d39);const _0x25ec5b=_0xa01d18(0x157);_0x111dae[_0xa01d18(0x162)]=class extends _0x249eb0[_0xa01d18(0x14b)]{constructor(_0x203984=_0x382ed5,_0x21fbfa,_0x3bdb57){var _0x203678=_0xa01d18;super(),this[_0x203678(0x14d)]=_0x203984,this[_0x203678(0x132)]=_0x21fbfa,this['_configService']=_0x3bdb57;const {..._0x449e6f}=_0x249eb0['merge']({},_0x382ed5,this[_0x203678(0x14d)]);this['_configService'][_0x203678(0x14e)](_0x4d1965,_0x449e6f);}[_0xa01d18(0x16f)](){var _0x4e8fc6=_0xa01d18;_0x249eb0['registerDependencies'](this[_0x4e8fc6(0x132)],_0x249eb0[_0x4e8fc6(0x1d5)]([[_0x12539d],[_0x111dae[_0x4e8fc6(0x13c)]],[_0x3472bf],[_0x111dae[_0x4e8fc6(0x164)]]],this[_0x4e8fc6(0x14d)]['override'])),_0x249eb0[_0x4e8fc6(0x20b)](this[_0x4e8fc6(0x132)],[[_0x3472bf]]);}[_0xa01d18(0x1e0)](){var _0x3a9322=_0xa01d18;_0x249eb0['touchDependencies'](this[_0x3a9322(0x132)],[[_0x111dae[_0x3a9322(0x164)]]]);}},_0x48c188(_0x111dae[_0xa01d18(0x162)],'type',_0x249eb0['UniverInstanceType']['UNIVER_UNKNOWN']),_0x48c188(_0x111dae[_0xa01d18(0x162)],_0xa01d18(0x133),_0x25ec5b),_0x111dae[_0xa01d18(0x162)]=_0x121e74([_0x249eb0['DependentOn'](_0x2693c2[_0xa01d18(0x1d9)]),_0x2f4980(0x1,_0x249eb0['Inject'](_0x249eb0['Injector'])),_0x2f4980(0x2,_0x249eb0[_0xa01d18(0x1a0)])],_0x111dae[_0xa01d18(0x162)]),_0x111dae['LiveShare']=_0x3c380e,_0x111dae[_0xa01d18(0x188)]=_0x12539d,_0x111dae[_0xa01d18(0x18c)]=_0x640ade,Object[_0xa01d18(0x1b4)](_0x111dae,Symbol[_0xa01d18(0x146)],{'value':'Module'});}));
|
|
1
|
+
function _0x2601(_0x491e49,_0x535b8b){var _0x15aa81=_0x15aa();return _0x2601=function(_0x260145,_0x4a6390){_0x260145=_0x260145-0x19e;var _0x12a549=_0x15aa81[_0x260145];return _0x12a549;},_0x2601(_0x491e49,_0x535b8b);}(function(_0x117050,_0x17f11b){var _0x326785=_0x2601,_0x12c319=_0x117050();while(!![]){try{var _0x301ca2=parseInt(_0x326785(0x23b))/0x1*(parseInt(_0x326785(0x23a))/0x2)+-parseInt(_0x326785(0x1ad))/0x3+-parseInt(_0x326785(0x1cc))/0x4+parseInt(_0x326785(0x209))/0x5+-parseInt(_0x326785(0x229))/0x6*(parseInt(_0x326785(0x26b))/0x7)+parseInt(_0x326785(0x1dc))/0x8*(-parseInt(_0x326785(0x1c0))/0x9)+-parseInt(_0x326785(0x1da))/0xa*(-parseInt(_0x326785(0x243))/0xb);if(_0x301ca2===_0x17f11b)break;else _0x12c319['push'](_0x12c319['shift']());}catch(_0x46709c){_0x12c319['push'](_0x12c319['shift']());}}}(_0x15aa,0xd41b9),function(_0x217705,_0x24c617){var _0x38eef3=_0x2601;typeof exports==_0x38eef3(0x1e3)&&typeof module<'u'?_0x24c617(exports,require(_0x38eef3(0x27c)),require('@univerjs/core'),require(_0x38eef3(0x223)),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require(_0x38eef3(0x1fa)),require('react'),require(_0x38eef3(0x205)),require('rxjs'),require(_0x38eef3(0x1b0))):typeof define==_0x38eef3(0x276)&&define[_0x38eef3(0x19f)]?define([_0x38eef3(0x24d),_0x38eef3(0x27c),_0x38eef3(0x26f),_0x38eef3(0x223),_0x38eef3(0x298),'@univerjs/ui',_0x38eef3(0x286),_0x38eef3(0x1fa),_0x38eef3(0x1a0),'@univerjs-pro/collaboration','rxjs',_0x38eef3(0x1b0)],_0x24c617):(_0x217705=typeof globalThis<'u'?globalThis:_0x217705||self,_0x24c617(_0x217705[_0x38eef3(0x28a)]={},_0x217705[_0x38eef3(0x235)],_0x217705[_0x38eef3(0x265)],_0x217705[_0x38eef3(0x1b7)],_0x217705[_0x38eef3(0x201)],_0x217705[_0x38eef3(0x274)],_0x217705[_0x38eef3(0x237)],_0x217705[_0x38eef3(0x1e2)],_0x217705[_0x38eef3(0x237)],_0x217705[_0x38eef3(0x254)],_0x217705[_0x38eef3(0x204)],_0x217705[_0x38eef3(0x204)]['operators']));}(this,function(_0x5d4e32,_0x2691e0,_0x1ea171,_0x14fb42,_0x2979a8,_0x3ca375,_0x39ee11,_0x3d169b,_0x245095,_0xf9e7c6,_0x5c055c,_0x465555){'use strict';var _0x4488da=_0x2601;var _0x21db1d=Object[_0x4488da(0x279)],_0x533847=(_0x219c11,_0x27a69e,_0xef181)=>_0x27a69e in _0x219c11?_0x21db1d(_0x219c11,_0x27a69e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xef181}):_0x219c11[_0x27a69e]=_0xef181,_0x380f45=(_0x36b0d6,_0x479c75,_0x365688)=>_0x533847(_0x36b0d6,typeof _0x479c75!=_0x4488da(0x20b)?_0x479c75+'':_0x479c75,_0x365688);const _0x4d5d88=_0x4488da(0x1a6),_0x260424={};class _0xa8fba7 extends _0x1ea171[_0x4488da(0x1d6)]{constructor(){var _0x48b67e=_0x4488da;super(...arguments),_0x380f45(this,_0x48b67e(0x1d0),new Set()),_0x380f45(this,'_reporters',new Set());}[_0x4488da(0x233)](_0x52b595){var _0x117383=_0x4488da;return this[_0x117383(0x1d0)][_0x117383(0x24b)](_0x52b595),_0x1ea171[_0x117383(0x248)](()=>this[_0x117383(0x1d0)][_0x117383(0x1b6)](_0x52b595));}[_0x4488da(0x220)](_0x39e2d6){var _0x303f92=_0x4488da;return this['_reporters'][_0x303f92(0x24b)](_0x39e2d6),_0x1ea171[_0x303f92(0x248)](()=>this['_reporters'][_0x303f92(0x1b6)](_0x39e2d6));}[_0x4488da(0x1b2)](_0x3f5773){var _0x5580a2=_0x4488da;return this[_0x5580a2(0x1d0)][_0x5580a2(0x1ef)](_0x3f5773);}[_0x4488da(0x1ed)](_0x4a2df7){var _0x347b8a=_0x4488da;return Array[_0x347b8a(0x22e)](this[_0x347b8a(0x21e)])[_0x347b8a(0x27f)](_0x2948ad=>_0x2948ad(_0x4a2df7));}}var _0x2899c6=Object['getOwnPropertyDescriptor'],_0x4abf16=(_0x44d596,_0x2fbf49,_0x424db5,_0x3c8e4e)=>{var _0x7c1033=_0x4488da;for(var _0x354b6e=_0x3c8e4e>0x1?void 0x0:_0x3c8e4e?_0x2899c6(_0x2fbf49,_0x424db5):_0x2fbf49,_0x3919d0=_0x44d596[_0x7c1033(0x226)]-0x1,_0x574b4f;_0x3919d0>=0x0;_0x3919d0--)(_0x574b4f=_0x44d596[_0x3919d0])&&(_0x354b6e=_0x574b4f(_0x354b6e)||_0x354b6e);return _0x354b6e;},_0x1592a1=(_0x3d2892,_0x43f0c0)=>(_0x522208,_0x2457a5)=>_0x43f0c0(_0x522208,_0x2457a5,_0x3d2892);let _0x21dc41=class extends _0x1ea171[_0x4488da(0x1d6)]{constructor(_0x21eee0){var _0x5b1692=_0x4488da;super(),this[_0x5b1692(0x1bb)]=_0x21eee0,this[_0x5b1692(0x259)]();}[_0x4488da(0x259)](){var _0x1cbb1e=_0x4488da;[_0x2979a8['SetZoomRatioOperation']['id'],_0x2979a8[_0x1cbb1e(0x21d)]['id'],_0x14fb42[_0x1cbb1e(0x1f9)]['id']]['forEach'](_0x92455e=>{var _0x2c8978=_0x1cbb1e;this[_0x2c8978(0x26a)](this[_0x2c8978(0x1bb)][_0x2c8978(0x233)](_0x92455e));});}};_0x21dc41=_0x4abf16([_0x1592a1(0x0,_0x1ea171[_0x4488da(0x287)](_0xa8fba7))],_0x21dc41);var _0x52497c=function(){var _0x444539=_0x4488da;return _0x52497c=Object[_0x444539(0x1f7)]||function(_0x5db634){var _0x36feea=_0x444539;for(var _0xb04e25,_0x36efa9=0x1,_0x2fe392=arguments[_0x36feea(0x226)];_0x36efa9<_0x2fe392;_0x36efa9++){_0xb04e25=arguments[_0x36efa9];for(var _0xf23a61 in _0xb04e25)Object['prototype'][_0x36feea(0x1d3)]['call'](_0xb04e25,_0xf23a61)&&(_0x5db634[_0xf23a61]=_0xb04e25[_0xf23a61]);}return _0x5db634;},_0x52497c[_0x444539(0x234)](this,arguments);},_0x234033=function(_0x41db90,_0x5f12e7){var _0x1468a8=_0x4488da,_0x9a6c7d={};for(var _0x1b3ab9 in _0x41db90)Object[_0x1468a8(0x200)][_0x1468a8(0x1d3)][_0x1468a8(0x23d)](_0x41db90,_0x1b3ab9)&&_0x5f12e7[_0x1468a8(0x1bf)](_0x1b3ab9)<0x0&&(_0x9a6c7d[_0x1b3ab9]=_0x41db90[_0x1b3ab9]);if(_0x41db90!=null&&typeof Object['getOwnPropertySymbols']==_0x1468a8(0x276)){for(var _0x4040f8=0x0,_0x1b3ab9=Object['getOwnPropertySymbols'](_0x41db90);_0x4040f8<_0x1b3ab9['length'];_0x4040f8++)_0x5f12e7[_0x1468a8(0x1bf)](_0x1b3ab9[_0x4040f8])<0x0&&Object[_0x1468a8(0x200)]['propertyIsEnumerable'][_0x1468a8(0x23d)](_0x41db90,_0x1b3ab9[_0x4040f8])&&(_0x9a6c7d[_0x1b3ab9[_0x4040f8]]=_0x41db90[_0x1b3ab9[_0x4040f8]]);}return _0x9a6c7d;},_0x2bb039=_0x245095[_0x4488da(0x1db)](function(_0x9494f9,_0x1ee236){var _0x20b22b=_0x4488da,_0x29cd3a=_0x9494f9[_0x20b22b(0x283)],_0x37161c=_0x9494f9['id'],_0x3aba09=_0x9494f9[_0x20b22b(0x1f1)],_0x246474=_0x9494f9[_0x20b22b(0x27e)],_0x48708d=_0x234033(_0x9494f9,['icon','id',_0x20b22b(0x1f1),_0x20b22b(0x27e)]),_0x4d824b=_0x20b22b(0x1f6)[_0x20b22b(0x1ab)](_0x37161c,'\x20')[_0x20b22b(0x1ab)](_0x3aba09||'')['trim'](),_0x37d7df=_0x245095[_0x20b22b(0x27a)]('_'[_0x20b22b(0x1ab)](_0x4522e4()));return _0x380d11(_0x29cd3a,''[_0x20b22b(0x1ab)](_0x37161c),{'defIds':_0x29cd3a['defIds'],'idSuffix':_0x37d7df[_0x20b22b(0x1ff)]},_0x52497c({'ref':_0x1ee236,'className':_0x4d824b},_0x48708d),_0x246474);});function _0x380d11(_0x1a6d10,_0x3fc1ae,_0x2de4cf,_0x4b18d6,_0x3d7bc6){var _0x31d1fe=_0x4488da;return _0x245095['createElement'](_0x1a6d10['tag'],_0x52497c(_0x52497c({'key':_0x3fc1ae},_0x4fcf0a(_0x1a6d10,_0x2de4cf,_0x3d7bc6)),_0x4b18d6),(_0xd0b095(_0x1a6d10,_0x2de4cf)[_0x31d1fe(0x277)]||[])['map'](function(_0x292a4d,_0x40bc82){var _0x3486f8=_0x31d1fe;return _0x380d11(_0x292a4d,''[_0x3486f8(0x1ab)](_0x3fc1ae,'-')[_0x3486f8(0x1ab)](_0x1a6d10[_0x3486f8(0x1f2)],'-')[_0x3486f8(0x1ab)](_0x40bc82),_0x2de4cf,void 0x0,_0x3d7bc6);}));}function _0x4fcf0a(_0x5300ba,_0x12908e,_0x336245){var _0x1da284=_0x4488da,_0x1e29d2=_0x52497c({},_0x5300ba[_0x1da284(0x252)]);_0x336245!=null&&_0x336245[_0x1da284(0x1de)]&&_0x1e29d2[_0x1da284(0x1c7)]===_0x1da284(0x1de)&&(_0x1e29d2['fill']=_0x336245['colorChannel1']),_0x5300ba[_0x1da284(0x1f2)]==='mask'&&_0x1e29d2['id']&&(_0x1e29d2['id']=_0x1e29d2['id']+_0x12908e[_0x1da284(0x20e)]),Object[_0x1da284(0x1ce)](_0x1e29d2)[_0x1da284(0x294)](function(_0x1f7111){var _0x329ed9=_0x1da284,_0x144a31=_0x1f7111[0x0],_0x50ec71=_0x1f7111[0x1];_0x144a31===_0x329ed9(0x28f)&&typeof _0x50ec71==_0x329ed9(0x249)&&(_0x1e29d2[_0x144a31]=_0x50ec71[_0x329ed9(0x22f)](/url\(#(.*)\)/,_0x329ed9(0x222)[_0x329ed9(0x1ab)](_0x12908e['idSuffix'],')')));});var _0x469088=_0x12908e[_0x1da284(0x219)];return!_0x469088||_0x469088[_0x1da284(0x226)]===0x0||(_0x5300ba['tag']===_0x1da284(0x291)&&_0x1e29d2[_0x1da284(0x25d)]&&(_0x1e29d2[_0x1da284(0x25d)]=_0x1e29d2[_0x1da284(0x25d)]+_0x12908e[_0x1da284(0x20e)]),Object[_0x1da284(0x1ce)](_0x1e29d2)[_0x1da284(0x294)](function(_0x7429d4){var _0x91736c=_0x1da284,_0x52b604=_0x7429d4[0x0],_0x30ed80=_0x7429d4[0x1];typeof _0x30ed80==_0x91736c(0x249)&&(_0x1e29d2[_0x52b604]=_0x30ed80[_0x91736c(0x22f)](/url\(#(.*)\)/,_0x91736c(0x222)[_0x91736c(0x1ab)](_0x12908e['idSuffix'],')')));})),_0x1e29d2;}function _0xd0b095(_0x4ec183,_0x346e8){var _0x4ff5a0=_0x4488da,_0x3426ed,_0x256499=_0x346e8['defIds'];return!_0x256499||_0x256499[_0x4ff5a0(0x226)]===0x0?_0x4ec183:_0x4ec183['tag']==='defs'&&(!((_0x3426ed=_0x4ec183[_0x4ff5a0(0x277)])===null||_0x3426ed===void 0x0)&&_0x3426ed[_0x4ff5a0(0x226)])?_0x52497c(_0x52497c({},_0x4ec183),{'children':_0x4ec183[_0x4ff5a0(0x277)][_0x4ff5a0(0x27f)](function(_0x5262d3){var _0x4d1a97=_0x4ff5a0;return typeof _0x5262d3['attrs']['id']==_0x4d1a97(0x249)&&_0x256499&&_0x256499['includes'](_0x5262d3[_0x4d1a97(0x252)]['id'])?_0x52497c(_0x52497c({},_0x5262d3),{'attrs':_0x52497c(_0x52497c({},_0x5262d3['attrs']),{'id':_0x5262d3['attrs']['id']+_0x346e8[_0x4d1a97(0x20e)]})}):_0x5262d3;})}):_0x4ec183;}function _0x4522e4(){var _0x5d9211=_0x4488da;return Math[_0x5d9211(0x1fd)]()[_0x5d9211(0x225)](0x24)[_0x5d9211(0x1e1)](0x2,0x8);}_0x2bb039[_0x4488da(0x1e7)]=_0x4488da(0x25c);var _0x48286d={'tag':_0x4488da(0x1a7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x4488da(0x25b),'width':_0x4488da(0x267),'height':'1em'},'children':[{'tag':_0x4488da(0x1be),'attrs':{'fill':_0x4488da(0x224),'d':_0x4488da(0x1cd)}},{'tag':_0x4488da(0x1be),'attrs':{'fill':'currentColor','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':_0x4488da(0x255),'clipRule':_0x4488da(0x255)}}]},_0x1fbb38=_0x245095['forwardRef'](function(_0x5ee86f,_0x52f7f9){var _0x437702=_0x4488da;return _0x245095[_0x437702(0x1a1)](_0x2bb039,Object[_0x437702(0x1f7)]({},_0x5ee86f,{'id':_0x437702(0x297),'ref':_0x52f7f9,'icon':_0x48286d}));});_0x1fbb38[_0x4488da(0x1e7)]=_0x4488da(0x1ae);var _0x422b63=Object[_0x4488da(0x203)],_0x39af5f=(_0x18c8a7,_0x3e4062,_0x688828,_0x3b8e82)=>{for(var _0x2a66f7=_0x3b8e82>0x1?void 0x0:_0x3b8e82?_0x422b63(_0x3e4062,_0x688828):_0x3e4062,_0x524b4e=_0x18c8a7['length']-0x1,_0x42e59e;_0x524b4e>=0x0;_0x524b4e--)(_0x42e59e=_0x18c8a7[_0x524b4e])&&(_0x2a66f7=_0x42e59e(_0x2a66f7)||_0x2a66f7);return _0x2a66f7;},_0x12f4ec=(_0x393b01,_0x27e277)=>(_0x14751b,_0x420a9a)=>_0x27e277(_0x14751b,_0x420a9a,_0x393b01);_0x5d4e32['LiveShareController']=class extends _0x1ea171[_0x4488da(0x1c9)]{constructor(_0x3de03c,_0x4a53ad,_0x186cec){var _0x3bc0e0=_0x4488da;super(),_0x380f45(this,'_entities',new Map()),(this[_0x3bc0e0(0x257)]=_0x3de03c,this[_0x3bc0e0(0x280)]=_0x4a53ad,this[_0x3bc0e0(0x1ea)]=_0x186cec,this['_init']());}async['getLiveShareCoordinator'](_0x32800c){var _0x15bd0c=_0x4488da;return this[_0x15bd0c(0x28b)][_0x15bd0c(0x1ef)](_0x32800c)||await this['_startLiveShareCoordinator'](_0x32800c),this[_0x15bd0c(0x28b)]['get'](_0x32800c);}[_0x4488da(0x259)](){var _0x27e888=_0x4488da;this[_0x27e888(0x257)][_0x27e888(0x266)](_0x1ea171[_0x27e888(0x1b4)][_0x27e888(0x1e6)])[_0x27e888(0x1aa)](_0x465555[_0x27e888(0x1ca)](this[_0x27e888(0x1f3)]))[_0x27e888(0x215)](async _0x558fce=>{var _0x1aec6f=_0x27e888;const _0x3dcbb6=_0x558fce[_0x1aec6f(0x1df)]();this[_0x1aec6f(0x28b)][_0x1aec6f(0x1ef)](_0x3dcbb6)||this[_0x1aec6f(0x20d)](_0x3dcbb6);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x1ea171['UniverInstanceType'][_0x27e888(0x1e6)])[_0x27e888(0x1aa)](_0x465555[_0x27e888(0x1ca)](this[_0x27e888(0x1f3)]))[_0x27e888(0x215)](_0x47cf01=>{var _0x4e019c=_0x27e888;const _0x2e1922=_0x47cf01[_0x4e019c(0x1df)](),_0x3f259c=this[_0x4e019c(0x28b)]['get'](_0x2e1922);_0x3f259c==null||_0x3f259c[_0x4e019c(0x1ba)]();});}async[_0x4488da(0x20d)](_0x3b7081){var _0x2e889b=_0x4488da;const _0x363199=await this[_0x2e889b(0x1ea)][_0x2e889b(0x238)](_0x3b7081),_0x5812ba=this[_0x2e889b(0x280)][_0x2e889b(0x228)](_0x5d4e32['LiveShareCoordinator'],_0x3b7081,_0x363199);return _0x5812ba[_0x2e889b(0x1a2)](),this['_entities']['set'](_0x3b7081,_0x5812ba),_0x5812ba;}},_0x5d4e32[_0x4488da(0x1f4)]=_0x39af5f([_0x12f4ec(0x0,_0x1ea171[_0x4488da(0x218)]),_0x12f4ec(0x1,_0x1ea171[_0x4488da(0x287)](_0x1ea171['Injector'])),_0x12f4ec(0x2,_0x1ea171[_0x4488da(0x287)](_0x2691e0[_0x4488da(0x1a8)]))],_0x5d4e32[_0x4488da(0x1f4)]);var _0x1d1ee6=(_0x470ee2=>(_0x470ee2[_0x4488da(0x236)]=_0x4488da(0x24e),_0x470ee2[_0x4488da(0x1fe)]=_0x4488da(0x1b8),_0x470ee2[_0x4488da(0x27d)]=_0x4488da(0x281),_0x470ee2[_0x4488da(0x217)]=_0x4488da(0x240),_0x470ee2[_0x4488da(0x25e)]='presenting',_0x470ee2))(_0x1d1ee6||{});const _0x72f277=_0x4488da(0x23e),_0x25b984=0xc8;_0x5d4e32[_0x4488da(0x1c6)]=class extends _0x1ea171[_0x4488da(0x1c9)]{constructor(_0x1d4244,_0xca6f29,_0x26c249,_0x44acd6,_0x197ca8){var _0x2b3a37=_0x4488da;super(),_0x380f45(this,'_status$',new _0x5c055c[(_0x2b3a37(0x1f0))](_0x2b3a37(0x1b8))),_0x380f45(this,'status$',this[_0x2b3a37(0x28c)][_0x2b3a37(0x25f)]()),_0x380f45(this,_0x2b3a37(0x259),!0x1),_0x380f45(this,'_commandDisposable',null),_0x380f45(this,'_presenter',null),(this['_unitID']=_0x1d4244,this[_0x2b3a37(0x23c)]=_0xca6f29,this[_0x2b3a37(0x21b)]=_0x26c249,this[_0x2b3a37(0x1bb)]=_0x44acd6,this[_0x2b3a37(0x1a9)]=_0x197ca8);}get['_status'](){var _0x40fd33=_0x4488da;return this[_0x40fd33(0x28c)]['getValue']();}[_0x4488da(0x1ba)](){var _0x1d4282=_0x4488da,_0x160d91;(_0x160d91=this[_0x1d4282(0x1e4)])==null||_0x160d91[_0x1d4282(0x1ba)](),this[_0x1d4282(0x28c)]['next'](_0x1d4282(0x1b8)),this[_0x1d4282(0x28c)][_0x1d4282(0x284)]();}[_0x4488da(0x1a2)](){var _0x2134a7=_0x4488da;this[_0x2134a7(0x259)]||(this[_0x2134a7(0x259)]=!0x0,this['_collabSession'][_0x2134a7(0x28d)]['pipe'](_0x465555['takeUntil'](this['dispose$']))['subscribe'](_0x27f2de=>{var _0xf58bdb=_0x2134a7;switch(_0x27f2de){case _0x2691e0[_0xf58bdb(0x272)]['OFFLINE']:this[_0xf58bdb(0x1a5)]();break;case _0x2691e0['SessionStatus'][_0xf58bdb(0x1c3)]:this[_0xf58bdb(0x1ee)]();break;}}),this[_0x2134a7(0x23c)][_0x2134a7(0x207)]['pipe'](_0x465555[_0x2134a7(0x1ca)](this[_0x2134a7(0x1f3)]))[_0x2134a7(0x215)](_0x4cccbb=>{var _0x5f0eee=_0x2134a7;const {eventID:_0x3bf127}=_0x4cccbb;switch(_0x3bf127){case _0xf9e7c6[_0x5f0eee(0x24f)][_0x5f0eee(0x1a3)]:this['_handleNewHost'](_0x4cccbb);break;case _0xf9e7c6[_0x5f0eee(0x24f)][_0x5f0eee(0x211)]:this['_handleOperation'](_0x4cccbb);break;case _0xf9e7c6['CollaborationEvent'][_0x5f0eee(0x290)]:this[_0x5f0eee(0x246)]();break;case _0xf9e7c6[_0x5f0eee(0x24f)][_0x5f0eee(0x1bd)]:this[_0x5f0eee(0x216)](_0x4cccbb);break;}}));}['tryStartPresenting'](){var _0x1ac837=_0x4488da;this[_0x1ac837(0x23c)][_0x1ac837(0x242)]({'eventID':_0xf9e7c6[_0x1ac837(0x24f)][_0x1ac837(0x22b)],'data':{'unitID':this[_0x1ac837(0x20c)],'userID':this['_collabSession'][_0x1ac837(0x273)]()}},this[_0x1ac837(0x20c)]);}[_0x4488da(0x261)](){var _0x3ce45e=_0x4488da;this['_status']===_0x3ce45e(0x20a)&&(this['_status$']['next'](_0x3ce45e(0x1b8)),this[_0x3ce45e(0x23c)]['send']({'eventID':_0xf9e7c6[_0x3ce45e(0x24f)][_0x3ce45e(0x290)],'data':{'unitID':this[_0x3ce45e(0x20c)]}},this['_unitID']));}['startFollowing'](){var _0x16bf36=_0x4488da;this['_status']===_0x16bf36(0x240)&&(this[_0x16bf36(0x28c)][_0x16bf36(0x296)](_0x16bf36(0x281)),this[_0x16bf36(0x20f)]());}[_0x4488da(0x289)](){var _0x159fc0=_0x4488da;this[_0x159fc0(0x1d2)]===_0x159fc0(0x281)&&this[_0x159fc0(0x1e0)]();}[_0x4488da(0x28e)](_0x231051){var _0xeaed6d=_0x4488da;const {presenter:_0x3b75df}=_0x231051[_0xeaed6d(0x1d9)],_0x2b9172=this[_0xeaed6d(0x23c)][_0xeaed6d(0x273)]();this[_0xeaed6d(0x1ac)]=_0x3b75df,_0x3b75df===_0x2b9172?(this['_stopFollowing'](),this[_0xeaed6d(0x1c1)]()):this[_0xeaed6d(0x1d2)]!==_0xeaed6d(0x240)&&(this[_0xeaed6d(0x258)](),this[_0xeaed6d(0x20f)]());}['_fetchOperations'](){var _0xc6e817=_0x4488da;const _0x7af394={'eventID':_0xf9e7c6[_0xc6e817(0x24f)]['LIVESHARE_FETCH_OPERATIONS']};this[_0xc6e817(0x23c)][_0xc6e817(0x242)](_0x7af394,this[_0xc6e817(0x20c)]);}[_0x4488da(0x246)](){var _0x57f10b=_0x4488da;this['_presenter']=null,this[_0x57f10b(0x1d2)]!==_0x57f10b(0x20a)&&this['_beIdle']();}[_0x4488da(0x216)](_0x53d676){var _0x11f04c=_0x4488da;if(this[_0x11f04c(0x1d2)]==='following'&&this['_presenter']===_0x53d676['data'][_0x11f04c(0x1bc)]){const _0x4eab33=_0xf9e7c6[_0x11f04c(0x1eb)](_0x53d676[_0x11f04c(0x1d9)])['mutations'][_0x11f04c(0x26e)]()[_0x11f04c(0x21c)](_0x5d32b8=>_0x5d32b8['id']===_0x14fb42[_0x11f04c(0x245)]['id']);if(_0x4eab33){const _0xd17af0=_0x4eab33['params'][_0x11f04c(0x270)],_0x4f1a1d=_0x4eab33[_0x11f04c(0x1c5)][_0x11f04c(0x295)]['id'];setTimeout(()=>{var _0x3bf20b=_0x11f04c;this[_0x3bf20b(0x1a9)][_0x3bf20b(0x26d)](_0x14fb42[_0x3bf20b(0x1f9)]['id'],{'unitId':_0xd17af0,'subUnitId':_0x4f1a1d},{'fromCollab':!0x0});});}}}[_0x4488da(0x1c1)](){var _0xab6fd8=_0x4488da;this[_0xab6fd8(0x28c)][_0xab6fd8(0x296)](_0xab6fd8(0x20a));const _0x10d312=new Map(),_0x31ef28=this[_0xab6fd8(0x1e4)]=new _0x1ea171[(_0xab6fd8(0x212))]();_0x31ef28[_0xab6fd8(0x24b)](_0x1ea171[_0xab6fd8(0x248)](()=>{var _0x379836=_0xab6fd8;_0x10d312[_0x379836(0x294)](_0x326942=>_0x326942['complete']()),_0x10d312[_0x379836(0x285)]();})),_0x31ef28[_0xab6fd8(0x24b)](this[_0xab6fd8(0x1a9)]['onCommandExecuted'](_0xc1c179=>{var _0x321f38=_0xab6fd8,_0x55f615;if(_0xc1c179[_0x321f38(0x25a)]!==_0x1ea171[_0x321f38(0x1fb)][_0x321f38(0x247)]||!this[_0x321f38(0x1bb)]['shouldShareOperation'](_0xc1c179['id']))return;const {id:_0x47bfd2}=_0xc1c179;let _0x159146;_0x10d312['has'](_0x47bfd2)?_0x159146=_0x10d312[_0x321f38(0x1f5)](_0x47bfd2):(_0x159146=new _0x5c055c[(_0x321f38(0x262))](),_0x10d312['set'](_0x47bfd2,_0x159146),_0x159146[_0x321f38(0x1aa)](_0x465555[_0x321f38(0x1cf)]((_0x55f615=this[_0x321f38(0x21b)][_0x321f38(0x1af)](_0x72f277))!=null?_0x55f615:_0x25b984,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x321f38(0x215)](_0x2d83c8=>{var _0xb8bea4=_0x321f38;this['_collabSession'][_0xb8bea4(0x242)]({'eventID':_0xf9e7c6[_0xb8bea4(0x24f)][_0xb8bea4(0x211)],'data':{'unitID':this[_0xb8bea4(0x20c)],'operations':{[_0x2d83c8['id']]:{'id':_0x2d83c8['id'],'params':JSON[_0xb8bea4(0x253)](_0x2d83c8[_0xb8bea4(0x1c5)])}}}},this[_0xb8bea4(0x20c)]);})),_0x159146[_0x321f38(0x296)](_0xc1c179);})),this[_0xab6fd8(0x1bb)][_0xab6fd8(0x1ed)](this['_unitID'])[_0xab6fd8(0x294)](_0x1d7ea1=>this[_0xab6fd8(0x23c)][_0xab6fd8(0x242)]({'eventID':_0xf9e7c6[_0xab6fd8(0x24f)][_0xab6fd8(0x211)],'data':{'unitID':this[_0xab6fd8(0x20c)],'operations':{[_0x1d7ea1['id']]:{'id':_0x1d7ea1['id'],'params':JSON['stringify'](_0x1d7ea1[_0xab6fd8(0x1c5)])}}}},this[_0xab6fd8(0x20c)]));}[_0x4488da(0x258)](){var _0x5ef57a=_0x4488da,_0x23a4bd;this[_0x5ef57a(0x28c)][_0x5ef57a(0x296)]('idle'),(_0x23a4bd=this[_0x5ef57a(0x1e4)])==null||_0x23a4bd['dispose'](),this[_0x5ef57a(0x1e4)]=null;}['_startFollowing'](){var _0x2f91fb=_0x4488da,_0x13fc73;(_0x13fc73=this[_0x2f91fb(0x1e4)])==null||_0x13fc73[_0x2f91fb(0x1ba)](),this['_status$'][_0x2f91fb(0x296)](_0x2f91fb(0x281));}['_beIdle'](){var _0x2a407f=_0x4488da,_0x1589ab;this[_0x2a407f(0x28c)][_0x2a407f(0x296)](_0x2a407f(0x1b8)),(_0x1589ab=this[_0x2a407f(0x1e4)])==null||_0x1589ab[_0x2a407f(0x1ba)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x53728c=_0x4488da,_0x122a58;this['_status$'][_0x53728c(0x296)](_0x53728c(0x240)),(_0x122a58=this[_0x53728c(0x1e4)])==null||_0x122a58[_0x53728c(0x1ba)]();}[_0x4488da(0x251)](_0x40bbd9){var _0x21dc21=_0x4488da;if([_0x21dc21(0x20a),'not-following',_0x21dc21(0x24e)][_0x21dc21(0x1e9)](this['_status'])||!_0x40bbd9[_0x21dc21(0x1d9)][_0x21dc21(0x24a)]||_0x40bbd9[_0x21dc21(0x1d9)][_0x21dc21(0x24a)]===this[_0x21dc21(0x23c)]['getMemberID']())return;this[_0x21dc21(0x1d2)]===_0x21dc21(0x1b8)&&this[_0x21dc21(0x20f)]();const _0x338bcf=_0x40bbd9['data'][_0x21dc21(0x292)];Object['values'](_0x338bcf)['forEach'](_0x2ea7ce=>{var _0x5caa47=_0x21dc21;this['_commandService'][_0x5caa47(0x26d)](_0x2ea7ce['id'],_0x2ea7ce[_0x5caa47(0x1c5)]?JSON[_0x5caa47(0x1b5)](_0x2ea7ce[_0x5caa47(0x1c5)]):null,{'fromCollab':!0x0});});}[_0x4488da(0x1a5)](){var _0x43d926=_0x4488da,_0x26381c;this['_status$'][_0x43d926(0x296)](_0x43d926(0x24e)),(_0x26381c=this[_0x43d926(0x1e4)])==null||_0x26381c[_0x43d926(0x1ba)]();}[_0x4488da(0x1ee)](){var _0x5f52c5=_0x4488da;this[_0x5f52c5(0x28c)]['next'](_0x5f52c5(0x1b8)),this['_fetchOperations']();}},_0x5d4e32[_0x4488da(0x1c6)]=_0x39af5f([_0x12f4ec(0x2,_0x1ea171[_0x4488da(0x1d5)]),_0x12f4ec(0x3,_0x1ea171[_0x4488da(0x287)](_0xa8fba7)),_0x12f4ec(0x4,_0x1ea171[_0x4488da(0x268)])],_0x5d4e32[_0x4488da(0x1c6)]);function _0x44f41c(){var _0x48b54e=_0x4488da;const _0x5c1047=_0x3ca375[_0x48b54e(0x227)](_0x5d4e32[_0x48b54e(0x1f4)]),_0x32b7ab=_0x3ca375[_0x48b54e(0x227)](_0x1ea171[_0x48b54e(0x218)]),_0x1269ad=_0x3ca375[_0x48b54e(0x1e5)](()=>_0x32b7ab[_0x48b54e(0x27b)](_0x1ea171[_0x48b54e(0x1b4)][_0x48b54e(0x1e6)]),void 0x0,!0x1,[]),[_0x2bf58c,_0x2d05ee]=_0x245095[_0x48b54e(0x1d1)](null),[_0x258630,_0x231110]=_0x245095[_0x48b54e(0x1d1)](_0x1d1ee6[_0x48b54e(0x1fe)]),_0x254533=_0x245095['useRef'](null);return _0x245095['useEffect'](()=>(_0x1269ad&&_0x5c1047[_0x48b54e(0x22d)](_0x1269ad[_0x48b54e(0x1df)]())[_0x48b54e(0x230)](_0xe292c6=>{var _0x9d2eae=_0x48b54e;_0x2d05ee(_0xe292c6),_0x254533[_0x9d2eae(0x1ff)]=_0xe292c6[_0x9d2eae(0x293)][_0x9d2eae(0x215)](_0x30b0f2=>{_0x231110(_0x30b0f2);});}),()=>{var _0x21eb4c=_0x48b54e,_0x29230b;(_0x29230b=_0x254533[_0x21eb4c(0x1ff)])==null||_0x29230b[_0x21eb4c(0x256)](),_0x254533[_0x21eb4c(0x1ff)]=null;}),[_0x1269ad,_0x5c1047]),_0x2bf58c?_0x39ee11['jsx'](_0x3d169b[_0x48b54e(0x241)],{'align':'end','disabled':_0x258630===_0x1d1ee6[_0x48b54e(0x236)],'className':_0x48b54e(0x239),'overlay':_0x39ee11['jsx'](_0xf37c54,{'status':_0x258630,'coordinator':_0x2bf58c}),'children':_0x39ee11[_0x48b54e(0x282)](_0x48b54e(0x23f),{'className':_0x3d169b[_0x48b54e(0x1b3)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x258630===_0x1d1ee6[_0x48b54e(0x236)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x258630!==_0x1d1ee6[_0x48b54e(0x236)]}),'type':_0x48b54e(0x23f),'children':_0x39ee11['jsx'](_0x1fbb38,{'className':'univer-size-4'})})}):null;}function _0xf37c54(_0x354519){var _0x265722=_0x4488da;const {status:_0x4d7b73,coordinator:_0x592a4b}=_0x354519;switch(_0x4d7b73){case _0x1d1ee6[_0x265722(0x1fe)]:return _0x39ee11[_0x265722(0x282)](_0x93cf2c,{'coordinator':_0x592a4b});case _0x1d1ee6[_0x265722(0x27d)]:return _0x39ee11[_0x265722(0x282)](_0x5467c0,{'coordinator':_0x592a4b});case _0x1d1ee6['NOT_FOLLOWING']:return _0x39ee11[_0x265722(0x282)](_0x142d18,{'coordinator':_0x592a4b});case _0x1d1ee6[_0x265722(0x236)]:return _0x39ee11[_0x265722(0x282)](_0x4e1a5d,{});case _0x1d1ee6[_0x265722(0x25e)]:return _0x39ee11[_0x265722(0x282)](_0x5016c3,{'coordinator':_0x592a4b});default:return null;}}function _0x93cf2c(_0x4fd71a){var _0x2ad342=_0x4488da;const {coordinator:_0x2e43fc}=_0x4fd71a;return _0x39ee11[_0x2ad342(0x1cb)](_0x39ee11[_0x2ad342(0x202)],{'children':[_0x39ee11[_0x2ad342(0x282)]('div',{'className':_0x2ad342(0x1d8),'children':_0x2ad342(0x1b1)}),_0x39ee11['jsx'](_0x3d169b[_0x2ad342(0x1f8)],{'onClick':()=>_0x2e43fc[_0x2ad342(0x1b9)](),'children':_0x2ad342(0x278)})]});}function _0x5467c0(_0x305407){var _0x42a13b=_0x4488da;const {coordinator:_0x310a3e}=_0x305407;return _0x39ee11[_0x42a13b(0x1cb)](_0x39ee11[_0x42a13b(0x202)],{'children':[_0x39ee11[_0x42a13b(0x282)](_0x42a13b(0x244),{'className':_0x42a13b(0x1d8),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x39ee11[_0x42a13b(0x282)](_0x3d169b[_0x42a13b(0x1f8)],{'onClick':()=>_0x310a3e['stopFollowing'](),'children':_0x42a13b(0x21a)})]});}function _0x142d18(_0x2565d4){var _0x3d91fe=_0x4488da;const {coordinator:_0x34c133}=_0x2565d4;return _0x39ee11[_0x3d91fe(0x1cb)](_0x39ee11[_0x3d91fe(0x202)],{'children':[_0x39ee11[_0x3d91fe(0x282)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x39ee11[_0x3d91fe(0x282)](_0x3d169b['Button'],{'variant':_0x3d91fe(0x1c8),'onClick':()=>_0x34c133[_0x3d91fe(0x22c)](),'children':_0x3d91fe(0x221)})]});}function _0x5016c3(_0x3009c8){var _0x224fbc=_0x4488da;const {coordinator:_0x3a4b5e}=_0x3009c8;return _0x39ee11[_0x224fbc(0x1cb)](_0x39ee11[_0x224fbc(0x202)],{'children':[_0x39ee11[_0x224fbc(0x282)](_0x224fbc(0x244),{'className':_0x224fbc(0x1d8),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x39ee11[_0x224fbc(0x282)](_0x3d169b[_0x224fbc(0x1f8)],{'variant':_0x224fbc(0x275),'onClick':()=>_0x3a4b5e['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x4e1a5d(){var _0x593b53=_0x4488da;return _0x39ee11[_0x593b53(0x282)](_0x39ee11[_0x593b53(0x202)],{'children':_0x593b53(0x1dd)});}var _0x15142f=Object[_0x4488da(0x203)],_0x4eb9ca=(_0x1c83bc,_0x842f56,_0x46c0d5,_0x4ffe87)=>{for(var _0x4e71ba=_0x4ffe87>0x1?void 0x0:_0x4ffe87?_0x15142f(_0x842f56,_0x46c0d5):_0x842f56,_0x4abe02=_0x1c83bc['length']-0x1,_0x4916a3;_0x4abe02>=0x0;_0x4abe02--)(_0x4916a3=_0x1c83bc[_0x4abe02])&&(_0x4e71ba=_0x4916a3(_0x4e71ba)||_0x4e71ba);return _0x4e71ba;},_0x44c842=(_0x1cfeea,_0x25a9cc)=>(_0x53d9c3,_0x16bc9a)=>_0x25a9cc(_0x53d9c3,_0x16bc9a,_0x1cfeea);_0x5d4e32[_0x4488da(0x260)]=class extends _0x1ea171[_0x4488da(0x1d6)]{constructor(_0x40deab,_0xfce0d6){var _0x429b05=_0x4488da;super(),this['_injector']=_0x40deab,this[_0x429b05(0x1ec)]=_0xfce0d6,this['_mountLiveShare']();}[_0x4488da(0x208)](){var _0x12a192=_0x4488da;this[_0x12a192(0x26a)](this[_0x12a192(0x1ec)][_0x12a192(0x214)](_0x3ca375[_0x12a192(0x22a)][_0x12a192(0x210)],()=>_0x3ca375[_0x12a192(0x288)](_0x44f41c,this[_0x12a192(0x280)])));}},_0x5d4e32[_0x4488da(0x260)]=_0x4eb9ca([_0x44c842(0x0,_0x1ea171[_0x4488da(0x287)](_0x1ea171[_0x4488da(0x19e)])),_0x44c842(0x1,_0x3ca375[_0x4488da(0x269)])],_0x5d4e32[_0x4488da(0x260)]);var _0x3d730a=Object[_0x4488da(0x279)],_0x4fa0c2=Object[_0x4488da(0x203)],_0x5d4e5c=(_0x12026f,_0x31f021,_0x1dc0e7)=>_0x31f021 in _0x12026f?_0x3d730a(_0x12026f,_0x31f021,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1dc0e7}):_0x12026f[_0x31f021]=_0x1dc0e7,_0x2d26f4=(_0x487caa,_0x22fb09,_0x353120,_0x461491)=>{var _0x5b04d1=_0x4488da;for(var _0x16b839=_0x461491>0x1?void 0x0:_0x461491?_0x4fa0c2(_0x22fb09,_0x353120):_0x22fb09,_0x4a7e27=_0x487caa[_0x5b04d1(0x226)]-0x1,_0xe75e6f;_0x4a7e27>=0x0;_0x4a7e27--)(_0xe75e6f=_0x487caa[_0x4a7e27])&&(_0x16b839=_0xe75e6f(_0x16b839)||_0x16b839);return _0x16b839;},_0x297fd9=(_0x459fda,_0x56d64a)=>(_0x120b4e,_0x31ce43)=>_0x56d64a(_0x120b4e,_0x31ce43,_0x459fda),_0x8bf85e=(_0x37625b,_0x53fa56,_0xdec3df)=>_0x5d4e5c(_0x37625b,typeof _0x53fa56!=_0x4488da(0x20b)?_0x53fa56+'':_0x53fa56,_0xdec3df);const _0x1241f1=_0x4488da(0x232);_0x5d4e32[_0x4488da(0x1d7)]=class extends _0x1ea171[_0x4488da(0x250)]{constructor(_0x1c64f3=_0x260424,_0x54f0c6,_0xbc1b30){var _0x5531a8=_0x4488da;super(),this[_0x5531a8(0x1c4)]=_0x1c64f3,this[_0x5531a8(0x280)]=_0x54f0c6,this[_0x5531a8(0x21b)]=_0xbc1b30;const {..._0x29ece1}=_0x1ea171[_0x5531a8(0x206)]({},_0x260424,this[_0x5531a8(0x1c4)]);this[_0x5531a8(0x21b)]['setConfig'](_0x4d5d88,_0x29ece1);}[_0x4488da(0x271)](){var _0x4d4147=_0x4488da;_0x1ea171['registerDependencies'](this[_0x4d4147(0x280)],_0x1ea171[_0x4d4147(0x24c)]([[_0xa8fba7],[_0x5d4e32['LiveShareController']],[_0x21dc41],[_0x5d4e32[_0x4d4147(0x260)]]],this['_config']['override'])),_0x1ea171[_0x4d4147(0x1d4)](this[_0x4d4147(0x280)],[[_0x21dc41]]);}[_0x4488da(0x1a4)](){var _0x5b211e=_0x4488da;_0x1ea171[_0x5b211e(0x1d4)](this[_0x5b211e(0x280)],[[_0x5d4e32['DesktopLiveShareController']]]);}},_0x8bf85e(_0x5d4e32[_0x4488da(0x1d7)],_0x4488da(0x25a),_0x1ea171['UniverInstanceType'][_0x4488da(0x1c2)]),_0x8bf85e(_0x5d4e32[_0x4488da(0x1d7)],_0x4488da(0x264),_0x1241f1),_0x5d4e32['UniverLiveSharePlugin']=_0x2d26f4([_0x1ea171[_0x4488da(0x26c)](_0x2691e0[_0x4488da(0x21f)]),_0x297fd9(0x1,_0x1ea171[_0x4488da(0x287)](_0x1ea171[_0x4488da(0x19e)])),_0x297fd9(0x2,_0x1ea171[_0x4488da(0x1d5)])],_0x5d4e32[_0x4488da(0x1d7)]),_0x5d4e32[_0x4488da(0x231)]=_0x44f41c,_0x5d4e32[_0x4488da(0x1e8)]=_0xa8fba7,_0x5d4e32[_0x4488da(0x263)]=_0x1d1ee6,Object['defineProperty'](_0x5d4e32,Symbol[_0x4488da(0x1fc)],{'value':_0x4488da(0x213)});}));function _0x15aa(){var _0x49da90=['_handleOnline','has','BehaviorSubject','className','tag','dispose$','LiveShareController','get','univerjs-icon\x20univerjs-icon-','assign','Button','SetWorksheetActiveOperation','@univerjs/design','CommandType','toStringTag','random','IDLE','current','prototype','UniverSheetsUi','Fragment','getOwnPropertyDescriptor','rxjs','@univerjs-pro/collaboration','merge','event$','_mountLiveShare','4424590dgGrEn','presenting','symbol','_unitID','_startLiveShareCoordinator','idSuffix','_startFollowing','HEADER_MENU','LIVESHARE_OPERATION','DisposableCollection','Module','registerComponent','subscribe','_handleNewChangeSets','NOT_FOLLOWING','IUniverInstanceService','defIds','Stop\x20following','_configService','find','SetScrollOperation','_reporters','UniverCollaborationClientPlugin','registerInitialStateReporter','Start\x20following','url(#$1','@univerjs/sheets','currentColor','toString','length','useDependency','createInstance','1092GjmLUq','BuiltInUIPart','LIVESHARE_REQUEST_HOST','startFollowing','getLiveShareCoordinator','from','replace','then','LiveShare','UNIVER_LIVE_SHARE_PLUGIN','registerSharedOperation','apply','UniverProCollaborationClient','OFFLINE','React','requireSession','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','315138AtraAP','11adSoqO','_collabSession','call','SAME_OPERATION_SHARE_INTERVAL','button','not-following','Dropdown','send','2211UARnwC','div','InsertSheetMutation','_handleTerminate','OPERATION','toDisposable','string','presenter','add','mergeOverrideWithDependencies','exports','offline','CollaborationEvent','Plugin','_handleOperation','attrs','stringify','UniverProCollaboration','evenodd','unsubscribe','_univerInstanceService','_stopPresenting','_init','type','0\x200\x2017\x2017','UniverIcon','xlink:href','PRESENTING','asObservable','DesktopLiveShareController','stopPresenting','Subject','LiveShareStatus','pluginName','UniverCore','getTypeOfUnitAdded$','1em','ICommandService','IUIPartsService','disposeWithMe','48629RSKSCp','DependentOn','executeCommand','reverse','@univerjs/core','unitId','onStarting','SessionStatus','getMemberID','UniverUi','default','function','children','Start','defineProperty','useRef','getCurrentTypeOfUnit$','@univerjs-pro/collaboration-client','FOLLOWING','extend','map','_injector','following','jsx','icon','complete','clear','react/jsx-runtime','Inject','connectInjector','stopFollowing','UniverProLiveShare','_entities','_status$','sessionStatus$','_handleNewHost','mask','LIVESHARE_TERMINATE','use','operations','status$','forEach','sheet','next','live-share-icon','@univerjs/sheets-ui','Injector','amd','react','createElement','init','LIVESHARE_NEW_HOST','onRendered','_handleOffline','live-share.config','svg','CollaborationSessionService','_commandService','pipe','concat','_presenter','4694436DeRupl','LiveShareIcon','getConfig','rxjs/operators','Present\x20this\x20document','shouldShareOperation','clsx','UniverInstanceType','parse','delete','UniverSheets','idle','tryStartPresenting','dispose','_liveShareService','memberID','NEW_CHANGESETS','path','indexOf','4098483SInxIw','_startPresenting','UNIVER_UNKNOWN','ONLINE','_config','params','LiveShareCoordinator','fill','text','RxDisposable','takeUntil','jsxs','6216000bWfLkU','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','entries','throttleTime','_sharedOperations','useState','_status','hasOwnProperty','touchDependencies','IConfigService','Disposable','UniverLiveSharePlugin','univer-mb-3\x20univer-w-full\x20univer-text-sm','data','153690JsuPna','forwardRef','8TkFQgU','You\x27are\x20offline.','colorChannel1','getUnitId','_stopFollowing','substring','UniverDesign','object','_commandDisposable','useObservable','UNIVER_SHEET','displayName','LiveShareService','includes','_collabSessionService','parseProtocolChangeset','_uiPartsService','getInitialStates'];_0x15aa=function(){return _0x49da90;};return _0x15aa();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.2-nightly.
|
|
3
|
+
"version": "0.8.2-nightly.202506261607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.2-nightly.
|
|
51
|
-
"@univerjs/core": "0.8.2-nightly.
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs
|
|
54
|
-
"@univerjs/design": "0.8.2-nightly.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/ui": "0.8.2-nightly.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.2-nightly.202506261607",
|
|
51
|
+
"@univerjs/core": "0.8.2-nightly.202506261607",
|
|
52
|
+
"@univerjs-pro/collaboration-client": "0.8.2-nightly.202506261607",
|
|
53
|
+
"@univerjs/sheets": "0.8.2-nightly.202506261607",
|
|
54
|
+
"@univerjs/design": "0.8.2-nightly.202506261607",
|
|
55
|
+
"@univerjs/ui": "0.8.2-nightly.202506261607",
|
|
56
|
+
"@univerjs/sheets-ui": "0.8.2-nightly.202506261607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|