@univerjs-pro/live-share 0.8.1 → 0.8.2-nightly.202506201607

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x4006d2=_0x53a2;(function(_0x22f611,_0x1800cb){var _0x42eddc=_0x53a2,_0x4d4aeb=_0x22f611();while(!![]){try{var _0x4da0f0=parseInt(_0x42eddc(0x20f))/0x1+-parseInt(_0x42eddc(0x1e4))/0x2*(parseInt(_0x42eddc(0x209))/0x3)+-parseInt(_0x42eddc(0x2ba))/0x4*(-parseInt(_0x42eddc(0x2b0))/0x5)+-parseInt(_0x42eddc(0x1dd))/0x6*(-parseInt(_0x42eddc(0x2a2))/0x7)+-parseInt(_0x42eddc(0x2b9))/0x8*(parseInt(_0x42eddc(0x298))/0x9)+-parseInt(_0x42eddc(0x290))/0xa*(-parseInt(_0x42eddc(0x289))/0xb)+parseInt(_0x42eddc(0x297))/0xc;if(_0x4da0f0===_0x1800cb)break;else _0x4d4aeb['push'](_0x4d4aeb['shift']());}catch(_0x1f27d9){_0x4d4aeb['push'](_0x4d4aeb['shift']());}}}(_0x2bfb,0x8a3ba));var U=Object[_0x4006d2(0x232)],F=(_0x3ab20b,_0x178f08,_0x13b040)=>_0x178f08 in _0x3ab20b?U(_0x3ab20b,_0x178f08,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13b040}):_0x3ab20b[_0x178f08]=_0x13b040,v=(_0x45a695,_0x202143,_0x14ea2d)=>F(_0x45a695,typeof _0x202143!='symbol'?_0x202143+'':_0x202143,_0x14ea2d);Object['defineProperty'](exports,Symbol[_0x4006d2(0x257)],{'value':_0x4006d2(0x294)});const m=require(_0x4006d2(0x2a8)),o=require(_0x4006d2(0x229)),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require(_0x4006d2(0x241)),g=require(_0x4006d2(0x256)),f=require(_0x4006d2(0x1e0)),_=require(_0x4006d2(0x1f6)),D=require(_0x4006d2(0x234)),b=require(_0x4006d2(0x285)),$='live-share.config',x={};class O extends o[_0x4006d2(0x233)]{constructor(){var _0x42a5e2=_0x4006d2;super(...arguments),v(this,_0x42a5e2(0x1f8),new Set()),v(this,'_reporters',new Set());}[_0x4006d2(0x212)](_0x270a16){var _0x8539e4=_0x4006d2;return this[_0x8539e4(0x1f8)][_0x8539e4(0x2bc)](_0x270a16),o[_0x8539e4(0x24c)](()=>this[_0x8539e4(0x1f8)][_0x8539e4(0x261)](_0x270a16));}['registerInitialStateReporter'](_0x1ef1d3){var _0x55c6e7=_0x4006d2;return this[_0x55c6e7(0x2b3)]['add'](_0x1ef1d3),o[_0x55c6e7(0x24c)](()=>this[_0x55c6e7(0x2b3)][_0x55c6e7(0x261)](_0x1ef1d3));}[_0x4006d2(0x231)](_0x374888){var _0x570268=_0x4006d2;return this[_0x570268(0x1f8)][_0x570268(0x250)](_0x374888);}['getInitialStates'](_0x5af54e){var _0x5623d4=_0x4006d2;return Array['from'](this[_0x5623d4(0x2b3)])[_0x5623d4(0x267)](_0x45147a=>_0x45147a(_0x5af54e));}}var H=Object[_0x4006d2(0x299)],V=(_0x21d065,_0x15ab9a,_0x4696bf,_0x4e16a6)=>{var _0x21f6c0=_0x4006d2;for(var _0x439b26=_0x4e16a6>0x1?void 0x0:_0x4e16a6?H(_0x15ab9a,_0x4696bf):_0x15ab9a,_0x4661a2=_0x21d065[_0x21f6c0(0x205)]-0x1,_0x338c7e;_0x4661a2>=0x0;_0x4661a2--)(_0x338c7e=_0x21d065[_0x4661a2])&&(_0x439b26=_0x338c7e(_0x439b26)||_0x439b26);return _0x439b26;},k=(_0x38f89c,_0x1f5d02)=>(_0x8f3a3c,_0x1ae575)=>_0x1f5d02(_0x8f3a3c,_0x1ae575,_0x38f89c);let E=class extends o[_0x4006d2(0x233)]{constructor(_0x419e36){var _0x264684=_0x4006d2;super(),this[_0x264684(0x25e)]=_0x419e36,this[_0x264684(0x1ee)]();}[_0x4006d2(0x1ee)](){var _0x226f1c=_0x4006d2;[w[_0x226f1c(0x21e)]['id'],w['SetScrollOperation']['id'],C[_0x226f1c(0x251)]['id']][_0x226f1c(0x27f)](_0x2e3ddf=>{var _0x54a98e=_0x226f1c;this[_0x54a98e(0x2a3)](this[_0x54a98e(0x25e)][_0x54a98e(0x212)](_0x2e3ddf));});}};E=V([k(0x0,o[_0x4006d2(0x29f)](O))],E);var u=function(){var _0x303288=_0x4006d2;return u=Object[_0x303288(0x25a)]||function(_0x2d37ba){var _0x47e260=_0x303288;for(var _0x31c70b,_0x1b4f1f=0x1,_0x1f1678=arguments[_0x47e260(0x205)];_0x1b4f1f<_0x1f1678;_0x1b4f1f++){_0x31c70b=arguments[_0x1b4f1f];for(var _0x3f4543 in _0x31c70b)Object['prototype']['hasOwnProperty']['call'](_0x31c70b,_0x3f4543)&&(_0x2d37ba[_0x3f4543]=_0x31c70b[_0x3f4543]);}return _0x2d37ba;},u['apply'](this,arguments);},M=function(_0x19afe0,_0x3cc760){var _0x1fa2c7=_0x4006d2,_0x496a5c={};for(var _0x11de80 in _0x19afe0)Object[_0x1fa2c7(0x237)]['hasOwnProperty'][_0x1fa2c7(0x2a1)](_0x19afe0,_0x11de80)&&_0x3cc760[_0x1fa2c7(0x2b8)](_0x11de80)<0x0&&(_0x496a5c[_0x11de80]=_0x19afe0[_0x11de80]);if(_0x19afe0!=null&&typeof Object['getOwnPropertySymbols']==_0x1fa2c7(0x27b)){for(var _0xe1192d=0x0,_0x11de80=Object[_0x1fa2c7(0x21a)](_0x19afe0);_0xe1192d<_0x11de80[_0x1fa2c7(0x205)];_0xe1192d++)_0x3cc760['indexOf'](_0x11de80[_0xe1192d])<0x0&&Object['prototype'][_0x1fa2c7(0x2ac)][_0x1fa2c7(0x2a1)](_0x19afe0,_0x11de80[_0xe1192d])&&(_0x496a5c[_0x11de80[_0xe1192d]]=_0x19afe0[_0x11de80[_0xe1192d]]);}return _0x496a5c;},j=f[_0x4006d2(0x25f)](function(_0x4752a9,_0x2b8d3c){var _0x20ef1b=_0x4006d2,_0x37d9a6=_0x4752a9[_0x20ef1b(0x216)],_0x4e6df6=_0x4752a9['id'],_0x9b12bc=_0x4752a9[_0x20ef1b(0x274)],_0x2df7cc=_0x4752a9[_0x20ef1b(0x23e)],_0x2d8baa=M(_0x4752a9,[_0x20ef1b(0x216),'id',_0x20ef1b(0x274),_0x20ef1b(0x23e)]),_0x5054dc=_0x20ef1b(0x276)['concat'](_0x4e6df6,'\x20')['concat'](_0x9b12bc||'')[_0x20ef1b(0x21f)](),_0xdce73a=f[_0x20ef1b(0x247)]('_'['concat'](G()));return y(_0x37d9a6,''[_0x20ef1b(0x270)](_0x4e6df6),{'defIds':_0x37d9a6[_0x20ef1b(0x244)],'idSuffix':_0xdce73a[_0x20ef1b(0x25c)]},u({'ref':_0x2b8d3c,'className':_0x5054dc},_0x2d8baa),_0x2df7cc);});function y(_0x165e44,_0x25fcb7,_0x1aa436,_0x9129b3,_0x44d4b6){var _0x33bb19=_0x4006d2;return f['createElement'](_0x165e44['tag'],u(u({'key':_0x25fcb7},q(_0x165e44,_0x1aa436,_0x44d4b6)),_0x9129b3),(W(_0x165e44,_0x1aa436)[_0x33bb19(0x211)]||[])[_0x33bb19(0x267)](function(_0xb33625,_0x5338b3){var _0x18230f=_0x33bb19;return y(_0xb33625,''[_0x18230f(0x270)](_0x25fcb7,'-')[_0x18230f(0x270)](_0x165e44[_0x18230f(0x246)],'-')[_0x18230f(0x270)](_0x5338b3),_0x1aa436,void 0x0,_0x44d4b6);}));}function q(_0x244a71,_0x2145cb,_0xa04df8){var _0x18926e=_0x4006d2,_0x57bb67=u({},_0x244a71[_0x18926e(0x22b)]);_0xa04df8!=null&&_0xa04df8[_0x18926e(0x2aa)]&&_0x57bb67[_0x18926e(0x1f1)]===_0x18926e(0x2aa)&&(_0x57bb67[_0x18926e(0x1f1)]=_0xa04df8[_0x18926e(0x2aa)]),_0x244a71[_0x18926e(0x246)]==='mask'&&_0x57bb67['id']&&(_0x57bb67['id']=_0x57bb67['id']+_0x2145cb[_0x18926e(0x203)]),Object[_0x18926e(0x1de)](_0x57bb67)[_0x18926e(0x27f)](function(_0x146a98){var _0x5be83a=_0x18926e,_0x32b956=_0x146a98[0x0],_0x42343c=_0x146a98[0x1];_0x32b956===_0x5be83a(0x1e1)&&typeof _0x42343c==_0x5be83a(0x2a4)&&(_0x57bb67[_0x32b956]=_0x42343c[_0x5be83a(0x2a7)](/url\(#(.*)\)/,_0x5be83a(0x218)[_0x5be83a(0x270)](_0x2145cb[_0x5be83a(0x203)],')')));});var _0x57facc=_0x2145cb[_0x18926e(0x244)];return!_0x57facc||_0x57facc[_0x18926e(0x205)]===0x0||(_0x244a71[_0x18926e(0x246)]==='use'&&_0x57bb67[_0x18926e(0x1f7)]&&(_0x57bb67[_0x18926e(0x1f7)]=_0x57bb67['xlink:href']+_0x2145cb['idSuffix']),Object[_0x18926e(0x1de)](_0x57bb67)[_0x18926e(0x27f)](function(_0x29b3c2){var _0x3ac64a=_0x18926e,_0x4dbe70=_0x29b3c2[0x0],_0x3cb82e=_0x29b3c2[0x1];typeof _0x3cb82e==_0x3ac64a(0x2a4)&&(_0x57bb67[_0x4dbe70]=_0x3cb82e[_0x3ac64a(0x2a7)](/url\(#(.*)\)/,_0x3ac64a(0x218)[_0x3ac64a(0x270)](_0x2145cb[_0x3ac64a(0x203)],')')));})),_0x57bb67;}function W(_0x5eb527,_0x67defd){var _0x52375e=_0x4006d2,_0x40226b,_0xfef5f5=_0x67defd[_0x52375e(0x244)];return!_0xfef5f5||_0xfef5f5[_0x52375e(0x205)]===0x0?_0x5eb527:_0x5eb527['tag']==='defs'&&(!((_0x40226b=_0x5eb527[_0x52375e(0x211)])===null||_0x40226b===void 0x0)&&_0x40226b[_0x52375e(0x205)])?u(u({},_0x5eb527),{'children':_0x5eb527[_0x52375e(0x211)][_0x52375e(0x267)](function(_0x1da93c){var _0x2e303d=_0x52375e;return typeof _0x1da93c[_0x2e303d(0x22b)]['id']==_0x2e303d(0x2a4)&&_0xfef5f5&&_0xfef5f5['includes'](_0x1da93c['attrs']['id'])?u(u({},_0x1da93c),{'attrs':u(u({},_0x1da93c[_0x2e303d(0x22b)]),{'id':_0x1da93c['attrs']['id']+_0x67defd['idSuffix']})}):_0x1da93c;})}):_0x5eb527;}function G(){var _0x586c67=_0x4006d2;return Math['random']()[_0x586c67(0x21d)](0x24)[_0x586c67(0x1e9)](0x2,0x8);}j['displayName']='UniverIcon';var B={'tag':_0x4006d2(0x242),'attrs':{'xmlns':_0x4006d2(0x295),'fill':_0x4006d2(0x263),'viewBox':'0\x200\x2017\x2017','width':_0x4006d2(0x254),'height':_0x4006d2(0x254)},'children':[{'tag':_0x4006d2(0x255),'attrs':{'fill':_0x4006d2(0x292),'d':_0x4006d2(0x287)}},{'tag':'path','attrs':{'fill':_0x4006d2(0x292),'d':_0x4006d2(0x27d),'fillRule':_0x4006d2(0x24f),'clipRule':_0x4006d2(0x24f)}}]},P=f[_0x4006d2(0x25f)](function(_0x3a75a2,_0x341e29){var _0x3ad35b=_0x4006d2;return f[_0x3ad35b(0x240)](j,Object['assign']({},_0x3a75a2,{'id':_0x3ad35b(0x280),'ref':_0x341e29,'icon':B}));});P[_0x4006d2(0x23f)]=_0x4006d2(0x1f5);var Y=Object[_0x4006d2(0x299)],R=(_0x13b5d2,_0x2458e9,_0x4bf8e3,_0x938fed)=>{var _0x1e3a2a=_0x4006d2;for(var _0x57e6d7=_0x938fed>0x1?void 0x0:_0x938fed?Y(_0x2458e9,_0x4bf8e3):_0x2458e9,_0x4f6b41=_0x13b5d2[_0x1e3a2a(0x205)]-0x1,_0x5e77e3;_0x4f6b41>=0x0;_0x4f6b41--)(_0x5e77e3=_0x13b5d2[_0x4f6b41])&&(_0x57e6d7=_0x5e77e3(_0x57e6d7)||_0x57e6d7);return _0x57e6d7;},S=(_0x27f4ba,_0x228431)=>(_0x54ba4b,_0x1f452f)=>_0x228431(_0x54ba4b,_0x1f452f,_0x27f4ba);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x5f0d15,_0x389fdd,_0x3b3532){var _0x447eff=_0x4006d2;super(),v(this,_0x447eff(0x20e),new Map()),(this[_0x447eff(0x253)]=_0x5f0d15,this['_injector']=_0x389fdd,this['_collabSessionService']=_0x3b3532,this[_0x447eff(0x1ee)]());}async[_0x4006d2(0x2b2)](_0x6a213){var _0xf17df0=_0x4006d2;return this[_0xf17df0(0x20e)]['has'](_0x6a213)||await this[_0xf17df0(0x22a)](_0x6a213),this[_0xf17df0(0x20e)][_0xf17df0(0x24a)](_0x6a213);}[_0x4006d2(0x1ee)](){var _0x285e1d=_0x4006d2;this[_0x285e1d(0x253)]['getTypeOfUnitAdded$'](o['UniverInstanceType']['UNIVER_SHEET'])[_0x285e1d(0x1ef)](b[_0x285e1d(0x275)](this[_0x285e1d(0x277)]))[_0x285e1d(0x282)](async _0x4018f4=>{var _0x550974=_0x285e1d;const _0x243794=_0x4018f4[_0x550974(0x29b)]();this['_entities']['has'](_0x243794)||this[_0x550974(0x22a)](_0x243794);}),this[_0x285e1d(0x253)][_0x285e1d(0x2b7)](o[_0x285e1d(0x262)]['UNIVER_SHEET'])[_0x285e1d(0x1ef)](b[_0x285e1d(0x275)](this[_0x285e1d(0x277)]))['subscribe'](_0xf69ffb=>{var _0x1844b4=_0x285e1d;const _0x17545f=_0xf69ffb[_0x1844b4(0x29b)](),_0x406731=this[_0x1844b4(0x20e)][_0x1844b4(0x24a)](_0x17545f);_0x406731==null||_0x406731['dispose']();});}async[_0x4006d2(0x22a)](_0x362d75){var _0x56c5d8=_0x4006d2;const _0x29dc56=await this[_0x56c5d8(0x291)]['requireSession'](_0x362d75),_0xd16e1f=this[_0x56c5d8(0x2ae)]['createInstance'](exports[_0x56c5d8(0x2ad)],_0x362d75,_0x29dc56);return _0xd16e1f['init'](),this['_entities'][_0x56c5d8(0x245)](_0x362d75,_0xd16e1f),_0xd16e1f;}},exports['LiveShareController']=R([S(0x0,o[_0x4006d2(0x29c)]),S(0x1,o[_0x4006d2(0x29f)](o['Injector'])),S(0x2,o[_0x4006d2(0x29f)](m[_0x4006d2(0x28c)]))],exports['LiveShareController']);var h=(_0x22b460=>(_0x22b460[_0x4006d2(0x272)]=_0x4006d2(0x1ea),_0x22b460[_0x4006d2(0x2a6)]=_0x4006d2(0x29a),_0x22b460[_0x4006d2(0x293)]=_0x4006d2(0x223),_0x22b460['NOT_FOLLOWING']=_0x4006d2(0x27c),_0x22b460['PRESENTING']=_0x4006d2(0x269),_0x22b460))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x4006d2(0x2ad)]=class extends o[_0x4006d2(0x226)]{constructor(_0x1b9a0d,_0x318591,_0x5d4c15,_0x382df5,_0x34e92e){var _0x43f237=_0x4006d2;super(),v(this,_0x43f237(0x284),new D['BehaviorSubject'](_0x43f237(0x29a))),v(this,_0x43f237(0x207),this['_status$'][_0x43f237(0x258)]()),v(this,_0x43f237(0x1ee),!0x1),v(this,_0x43f237(0x26b),null),v(this,'_presenter',null),(this['_unitID']=_0x1b9a0d,this['_collabSession']=_0x318591,this[_0x43f237(0x202)]=_0x5d4c15,this['_liveShareService']=_0x382df5,this[_0x43f237(0x259)]=_0x34e92e);}get[_0x4006d2(0x279)](){var _0x1e1b81=_0x4006d2;return this['_status$'][_0x1e1b81(0x20a)]();}['dispose'](){var _0x228e0a=_0x4006d2,_0x2e0be6;(_0x2e0be6=this['_commandDisposable'])==null||_0x2e0be6['dispose'](),this[_0x228e0a(0x284)][_0x228e0a(0x2b4)](_0x228e0a(0x29a)),this[_0x228e0a(0x284)][_0x228e0a(0x22c)]();}['init'](){var _0x251f96=_0x4006d2;this[_0x251f96(0x1ee)]||(this['_init']=!0x0,this['_collabSession'][_0x251f96(0x221)][_0x251f96(0x1ef)](b[_0x251f96(0x275)](this[_0x251f96(0x277)]))['subscribe'](_0x92602c=>{var _0x5b55a5=_0x251f96;switch(_0x92602c){case m[_0x5b55a5(0x26e)][_0x5b55a5(0x272)]:this[_0x5b55a5(0x264)]();break;case m[_0x5b55a5(0x26e)][_0x5b55a5(0x1e6)]:this[_0x5b55a5(0x225)]();break;}}),this[_0x251f96(0x23d)][_0x251f96(0x252)]['pipe'](b[_0x251f96(0x275)](this['dispose$']))['subscribe'](_0x3a1236=>{var _0x950039=_0x251f96;const {eventID:_0x2b6d22}=_0x3a1236;switch(_0x2b6d22){case _[_0x950039(0x286)][_0x950039(0x28a)]:this[_0x950039(0x236)](_0x3a1236);break;case _[_0x950039(0x286)][_0x950039(0x208)]:this['_handleOperation'](_0x3a1236);break;case _[_0x950039(0x286)][_0x950039(0x20d)]:this['_handleTerminate']();break;case _[_0x950039(0x286)]['NEW_CHANGESETS']:this[_0x950039(0x220)](_0x3a1236);break;}}));}[_0x4006d2(0x20b)](){var _0x5c05df=_0x4006d2;this[_0x5c05df(0x23d)][_0x5c05df(0x248)]({'eventID':_['CollaborationEvent'][_0x5c05df(0x27a)],'data':{'unitID':this[_0x5c05df(0x2b5)],'userID':this[_0x5c05df(0x23d)]['getMemberID']()}},this[_0x5c05df(0x2b5)]);}[_0x4006d2(0x26f)](){var _0x374612=_0x4006d2;this['_status']===_0x374612(0x269)&&(this[_0x374612(0x284)][_0x374612(0x2b4)](_0x374612(0x29a)),this['_collabSession']['send']({'eventID':_[_0x374612(0x286)][_0x374612(0x20d)],'data':{'unitID':this[_0x374612(0x2b5)]}},this['_unitID']));}[_0x4006d2(0x2bb)](){var _0x59fc7d=_0x4006d2;this[_0x59fc7d(0x279)]===_0x59fc7d(0x27c)&&(this[_0x59fc7d(0x284)][_0x59fc7d(0x2b4)](_0x59fc7d(0x223)),this[_0x59fc7d(0x29d)]());}[_0x4006d2(0x24b)](){var _0x1c834c=_0x4006d2;this['_status']===_0x1c834c(0x223)&&this['_stopFollowing']();}[_0x4006d2(0x236)](_0x5a66a0){var _0x329097=_0x4006d2;const {presenter:_0x48502c}=_0x5a66a0[_0x329097(0x273)],_0x401b06=this[_0x329097(0x23d)][_0x329097(0x27e)]();this['_presenter']=_0x48502c,_0x48502c===_0x401b06?(this[_0x329097(0x1fd)](),this[_0x329097(0x217)]()):this['_status']!==_0x329097(0x27c)&&(this['_stopPresenting'](),this[_0x329097(0x29d)]());}['_fetchOperations'](){var _0x1a9c9c=_0x4006d2;const _0xa11430={'eventID':_['CollaborationEvent'][_0x1a9c9c(0x1f2)]};this['_collabSession'][_0x1a9c9c(0x248)](_0xa11430,this[_0x1a9c9c(0x2b5)]);}[_0x4006d2(0x243)](){var _0x512a07=_0x4006d2;this['_presenter']=null,this[_0x512a07(0x279)]!==_0x512a07(0x269)&&this[_0x512a07(0x1fc)]();}[_0x4006d2(0x220)](_0x218dc1){var _0x521448=_0x4006d2;if(this[_0x521448(0x279)]===_0x521448(0x223)&&this[_0x521448(0x25d)]===_0x218dc1[_0x521448(0x273)]['memberID']){const _0x2a1e66=_['parseProtocolChangeset'](_0x218dc1[_0x521448(0x273)])[_0x521448(0x222)][_0x521448(0x238)]()[_0x521448(0x23b)](_0x1830fd=>_0x1830fd['id']===C[_0x521448(0x288)]['id']);if(_0x2a1e66){const _0x243bd9=_0x2a1e66[_0x521448(0x23a)][_0x521448(0x249)],_0x2e6f1c=_0x2a1e66[_0x521448(0x23a)]['sheet']['id'];setTimeout(()=>{var _0x3b3b66=_0x521448;this[_0x3b3b66(0x259)][_0x3b3b66(0x281)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x243bd9,'subUnitId':_0x2e6f1c},{'fromCollab':!0x0});});}}}[_0x4006d2(0x217)](){var _0x3f5a27=_0x4006d2;this['_status$'][_0x3f5a27(0x2b4)](_0x3f5a27(0x269));const _0x335daf=new Map(),_0x2ab854=this['_commandDisposable']=new o['DisposableCollection']();_0x2ab854['add'](o[_0x3f5a27(0x24c)](()=>{var _0x36706f=_0x3f5a27;_0x335daf[_0x36706f(0x27f)](_0x79657=>_0x79657[_0x36706f(0x22c)]()),_0x335daf['clear']();})),_0x2ab854[_0x3f5a27(0x2bc)](this['_commandService'][_0x3f5a27(0x21c)](_0x190d1b=>{var _0x30eb0e=_0x3f5a27,_0xa2f135;if(_0x190d1b[_0x30eb0e(0x239)]!==o[_0x30eb0e(0x210)][_0x30eb0e(0x283)]||!this[_0x30eb0e(0x25e)]['shouldShareOperation'](_0x190d1b['id']))return;const {id:_0x40accd}=_0x190d1b;let _0x372db3;_0x335daf[_0x30eb0e(0x250)](_0x40accd)?_0x372db3=_0x335daf[_0x30eb0e(0x24a)](_0x40accd):(_0x372db3=new D['Subject'](),_0x335daf[_0x30eb0e(0x245)](_0x40accd,_0x372db3),_0x372db3[_0x30eb0e(0x1ef)](b[_0x30eb0e(0x278)]((_0xa2f135=this[_0x30eb0e(0x202)][_0x30eb0e(0x219)](Z))!=null?_0xa2f135:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x30eb0e(0x282)](_0x506e2d=>{var _0x518a4c=_0x30eb0e;this[_0x518a4c(0x23d)][_0x518a4c(0x248)]({'eventID':_[_0x518a4c(0x286)][_0x518a4c(0x208)],'data':{'unitID':this[_0x518a4c(0x2b5)],'operations':{[_0x506e2d['id']]:{'id':_0x506e2d['id'],'params':JSON[_0x518a4c(0x26a)](_0x506e2d[_0x518a4c(0x23a)])}}}},this[_0x518a4c(0x2b5)]);})),_0x372db3[_0x30eb0e(0x2b4)](_0x190d1b);})),this[_0x3f5a27(0x25e)]['getInitialStates'](this[_0x3f5a27(0x2b5)])[_0x3f5a27(0x27f)](_0x21f54b=>this[_0x3f5a27(0x23d)][_0x3f5a27(0x248)]({'eventID':_[_0x3f5a27(0x286)][_0x3f5a27(0x208)],'data':{'unitID':this[_0x3f5a27(0x2b5)],'operations':{[_0x21f54b['id']]:{'id':_0x21f54b['id'],'params':JSON['stringify'](_0x21f54b[_0x3f5a27(0x23a)])}}}},this[_0x3f5a27(0x2b5)]));}['_stopPresenting'](){var _0xb96348=_0x4006d2,_0x5e35d0;this[_0xb96348(0x284)][_0xb96348(0x2b4)](_0xb96348(0x29a)),(_0x5e35d0=this[_0xb96348(0x26b)])==null||_0x5e35d0['dispose'](),this['_commandDisposable']=null;}[_0x4006d2(0x29d)](){var _0x2a3a34=_0x4006d2,_0xc9f924;(_0xc9f924=this['_commandDisposable'])==null||_0xc9f924[_0x2a3a34(0x1fe)](),this[_0x2a3a34(0x284)][_0x2a3a34(0x2b4)](_0x2a3a34(0x223));}[_0x4006d2(0x1fc)](){var _0x5f4f8d=_0x4006d2,_0x205217;this[_0x5f4f8d(0x284)][_0x5f4f8d(0x2b4)]('idle'),(_0x205217=this[_0x5f4f8d(0x26b)])==null||_0x205217[_0x5f4f8d(0x1fe)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x251293=_0x4006d2,_0xdbbebe;this['_status$']['next']('not-following'),(_0xdbbebe=this[_0x251293(0x26b)])==null||_0xdbbebe[_0x251293(0x1fe)]();}[_0x4006d2(0x235)](_0x54863b){var _0x557fed=_0x4006d2;if([_0x557fed(0x269),_0x557fed(0x27c),_0x557fed(0x1ea)]['includes'](this[_0x557fed(0x279)])||!_0x54863b[_0x557fed(0x273)][_0x557fed(0x201)]||_0x54863b[_0x557fed(0x273)][_0x557fed(0x201)]===this[_0x557fed(0x23d)]['getMemberID']())return;this[_0x557fed(0x279)]===_0x557fed(0x29a)&&this['_startFollowing']();const _0x181412=_0x54863b['data'][_0x557fed(0x204)];Object['values'](_0x181412)['forEach'](_0x1dfdfc=>{var _0x199288=_0x557fed;this[_0x199288(0x259)][_0x199288(0x281)](_0x1dfdfc['id'],_0x1dfdfc[_0x199288(0x23a)]?JSON[_0x199288(0x268)](_0x1dfdfc['params']):null,{'fromCollab':!0x0});});}[_0x4006d2(0x264)](){var _0x2e370b=_0x4006d2,_0x58b42e;this[_0x2e370b(0x284)]['next']('offline'),(_0x58b42e=this[_0x2e370b(0x26b)])==null||_0x58b42e[_0x2e370b(0x1fe)]();}[_0x4006d2(0x225)](){var _0x3aba2c=_0x4006d2;this[_0x3aba2c(0x284)][_0x3aba2c(0x2b4)](_0x3aba2c(0x29a)),this[_0x3aba2c(0x24e)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x4006d2(0x1fa)]),S(0x3,o[_0x4006d2(0x29f)](O)),S(0x4,o[_0x4006d2(0x26d)])],exports[_0x4006d2(0x2ad)]);function A(){var _0x49719e=_0x4006d2;const _0x3b2c02=p[_0x49719e(0x200)](exports[_0x49719e(0x1e8)]),_0x2fa248=p[_0x49719e(0x200)](o['IUniverInstanceService']),_0x2e1326=p['useObservable'](()=>_0x2fa248[_0x49719e(0x28d)](o['UniverInstanceType'][_0x49719e(0x1f0)]),void 0x0,!0x1,[]),[_0x9bdf24,_0x3d385a]=f[_0x49719e(0x230)](null),[_0x115cbe,_0x1da2dc]=f['useState'](h['IDLE']),_0x579df7=f[_0x49719e(0x247)](null);return f['useEffect'](()=>(_0x2e1326&&_0x3b2c02[_0x49719e(0x2b2)](_0x2e1326[_0x49719e(0x29b)]())[_0x49719e(0x2b6)](_0x11c92c=>{var _0x2a0bd3=_0x49719e;_0x3d385a(_0x11c92c),_0x579df7['current']=_0x11c92c[_0x2a0bd3(0x207)][_0x2a0bd3(0x282)](_0x23f14c=>{_0x1da2dc(_0x23f14c);});}),()=>{var _0x1a4f45=_0x49719e,_0x4342e1;(_0x4342e1=_0x579df7[_0x1a4f45(0x25c)])==null||_0x4342e1[_0x1a4f45(0x2a5)](),_0x579df7[_0x1a4f45(0x25c)]=null;}),[_0x2e1326,_0x3b2c02]),_0x9bdf24?l['jsx'](g[_0x49719e(0x1ff)],{'align':'end','disabled':_0x115cbe===h[_0x49719e(0x272)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x49719e(0x1e3)](K,{'status':_0x115cbe,'coordinator':_0x9bdf24}),'children':l['jsx']('button',{'className':g[_0x49719e(0x24d)](_0x49719e(0x271),{'univer-cursor-not-allowed':_0x115cbe===h[_0x49719e(0x272)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x115cbe!==h[_0x49719e(0x272)]}),'type':'button','children':l['jsx'](P,{'className':_0x49719e(0x296)})})}):null;}function K(_0x12d261){var _0x11a61e=_0x4006d2;const {status:_0x186df1,coordinator:_0x4f87d1}=_0x12d261;switch(_0x186df1){case h[_0x11a61e(0x2a6)]:return l[_0x11a61e(0x1e3)](z,{'coordinator':_0x4f87d1});case h[_0x11a61e(0x293)]:return l[_0x11a61e(0x1e3)](Q,{'coordinator':_0x4f87d1});case h[_0x11a61e(0x28b)]:return l[_0x11a61e(0x1e3)](X,{'coordinator':_0x4f87d1});case h[_0x11a61e(0x272)]:return l[_0x11a61e(0x1e3)](te,{});case h[_0x11a61e(0x215)]:return l[_0x11a61e(0x1e3)](ee,{'coordinator':_0x4f87d1});default:return null;}}function z(_0x418044){var _0x138dfc=_0x4006d2;const {coordinator:_0x366d32}=_0x418044;return l[_0x138dfc(0x1df)](l[_0x138dfc(0x206)],{'children':[l[_0x138dfc(0x1e3)](_0x138dfc(0x1f9),{'className':_0x138dfc(0x2b1),'children':_0x138dfc(0x214)}),l[_0x138dfc(0x1e3)](g['Button'],{'onClick':()=>_0x366d32[_0x138dfc(0x20b)](),'children':_0x138dfc(0x2af)})]});}function Q(_0x24463d){var _0x21d401=_0x4006d2;const {coordinator:_0x53ae10}=_0x24463d;return l[_0x21d401(0x1df)](l[_0x21d401(0x206)],{'children':[l['jsx'](_0x21d401(0x1f9),{'className':_0x21d401(0x2b1),'children':_0x21d401(0x1fb)}),l[_0x21d401(0x1e3)](g[_0x21d401(0x22f)],{'onClick':()=>_0x53ae10['stopFollowing'](),'children':_0x21d401(0x1e5)})]});}function X(_0x48de87){var _0x435c43=_0x4006d2;const {coordinator:_0x1c350f}=_0x48de87;return l['jsxs'](l[_0x435c43(0x206)],{'children':[l[_0x435c43(0x1e3)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x435c43(0x1e3)](g[_0x435c43(0x22f)],{'variant':_0x435c43(0x228),'onClick':()=>_0x1c350f[_0x435c43(0x2bb)](),'children':_0x435c43(0x2a9)})]});}function ee(_0x3478b0){var _0x26db39=_0x4006d2;const {coordinator:_0x4fe3ea}=_0x3478b0;return l[_0x26db39(0x1df)](l['Fragment'],{'children':[l['jsx'](_0x26db39(0x1f9),{'className':_0x26db39(0x2b1),'children':_0x26db39(0x25b)}),l[_0x26db39(0x1e3)](g[_0x26db39(0x22f)],{'variant':_0x26db39(0x1eb),'onClick':()=>_0x4fe3ea['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x2bfb(){var _0x583af0=['_univerInstanceService','1em','path','@univerjs/design','toStringTag','asObservable','_commandService','assign','You\x27re\x20presenting\x20the\x20document','current','_presenter','_liveShareService','forwardRef','IUIPartsService','delete','UniverInstanceType','none','_handleOffline','UniverCollaborationClientPlugin','pluginName','map','parse','presenting','stringify','_commandDisposable','touchDependencies','ICommandService','SessionStatus','stopPresenting','concat','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OFFLINE','data','className','takeUntil','univerjs-icon\x20univerjs-icon-','dispose$','throttleTime','_status','LIVESHARE_REQUEST_HOST','function','not-following','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','getMemberID','forEach','live-share-icon','executeCommand','subscribe','OPERATION','_status$','rxjs/operators','CollaborationEvent','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','InsertSheetMutation','242MgeGOK','LIVESHARE_NEW_HOST','NOT_FOLLOWING','CollaborationSessionService','getCurrentTypeOfUnit$','symbol','_config','119730vywIcz','_collabSessionService','currentColor','FOLLOWING','Module','http://www.w3.org/2000/svg','univer-size-4','1713360TmxOgb','9SlKaMi','getOwnPropertyDescriptor','idle','getUnitId','IUniverInstanceService','_startFollowing','_uiPartsService','Inject','Plugin','call','2758Snkdjh','disposeWithMe','string','unsubscribe','IDLE','replace','@univerjs-pro/collaboration-client','Start\x20following','colorChannel1','You\x27are\x20offline.','propertyIsEnumerable','LiveShareCoordinator','_injector','Start','5TDmZQL','univer-mb-3\x20univer-w-full\x20univer-text-sm','getLiveShareCoordinator','_reporters','next','_unitID','then','getTypeOfUnitDisposed$','indexOf','194384AYixrA','111260NNmLYS','startFollowing','add','2364IybYUm','entries','jsxs','react','mask','LiveShareService','jsx','114oHOVTc','Stop\x20following','ONLINE','mergeOverrideWithDependencies','LiveShareController','substring','offline','default','merge','LiveShare','_init','pipe','UNIVER_SHEET','fill','LIVESHARE_FETCH_OPERATIONS','DependentOn','DesktopLiveShareController','LiveShareIcon','@univerjs-pro/collaboration','xlink:href','_sharedOperations','div','IConfigService','You\x27re\x20following\x20the\x20presenter','_beIdle','_stopFollowing','dispose','Dropdown','useDependency','presenter','_configService','idSuffix','operations','length','Fragment','status$','LIVESHARE_OPERATION','26319kFgnCK','getValue','tryStartPresenting','BuiltInUIPart','LIVESHARE_TERMINATE','_entities','501324lJHDbM','CommandType','children','registerSharedOperation','override','Present\x20this\x20document','PRESENTING','icon','_startPresenting','url(#$1','getConfig','getOwnPropertySymbols','UniverLiveSharePlugin','onCommandExecuted','toString','SetZoomRatioOperation','trim','_handleNewChangeSets','sessionStatus$','mutations','following','onStarting','_handleOnline','RxDisposable','setConfig','text','@univerjs/core','_startLiveShareCoordinator','attrs','complete','registerComponent','HEADER_MENU','Button','useState','shouldShareOperation','defineProperty','Disposable','rxjs','_handleOperation','_handleNewHost','prototype','reverse','type','params','find','Injector','_collabSession','extend','displayName','createElement','react/jsx-runtime','svg','_handleTerminate','defIds','set','tag','useRef','send','unitId','get','stopFollowing','toDisposable','clsx','_fetchOperations','evenodd','has','SetWorksheetActiveOperation','event$'];_0x2bfb=function(){return _0x583af0;};return _0x2bfb();}function te(){var _0x535ac9=_0x4006d2;return l[_0x535ac9(0x1e3)](l['Fragment'],{'children':_0x535ac9(0x2ab)});}function _0x53a2(_0x11a933,_0x4db9c9){var _0x2bfbc4=_0x2bfb();return _0x53a2=function(_0x53a268,_0x1d871e){_0x53a268=_0x53a268-0x1dd;var _0x39f4e3=_0x2bfbc4[_0x53a268];return _0x39f4e3;},_0x53a2(_0x11a933,_0x4db9c9);}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x276dd2,_0x3fb4be,_0x2e8354,_0x2aef77)=>{for(var _0x514b91=_0x2aef77>0x1?void 0x0:_0x2aef77?ie(_0x3fb4be,_0x2e8354):_0x3fb4be,_0x40f0a9=_0x276dd2['length']-0x1,_0x421589;_0x40f0a9>=0x0;_0x40f0a9--)(_0x421589=_0x276dd2[_0x40f0a9])&&(_0x514b91=_0x421589(_0x514b91)||_0x514b91);return _0x514b91;},L=(_0x3af229,_0x31702d)=>(_0x26edf1,_0x3c988f)=>_0x31702d(_0x26edf1,_0x3c988f,_0x3af229);exports['DesktopLiveShareController']=class extends o[_0x4006d2(0x233)]{constructor(_0x2b9798,_0x1b3b59){var _0x46b8d9=_0x4006d2;super(),this[_0x46b8d9(0x2ae)]=_0x2b9798,this['_uiPartsService']=_0x1b3b59,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x3d5e59=_0x4006d2;this[_0x3d5e59(0x2a3)](this[_0x3d5e59(0x29e)][_0x3d5e59(0x22d)](p[_0x3d5e59(0x20c)][_0x3d5e59(0x22e)],()=>p['connectInjector'](A,this[_0x3d5e59(0x2ae)])));}},exports[_0x4006d2(0x1f4)]=ne([L(0x0,o['Inject'](o[_0x4006d2(0x23c)])),L(0x1,p[_0x4006d2(0x260)])],exports[_0x4006d2(0x1f4)]);var re=Object['defineProperty'],se=Object[_0x4006d2(0x299)],oe=(_0x5e4b1b,_0x15cb5a,_0x37a4a5)=>_0x15cb5a in _0x5e4b1b?re(_0x5e4b1b,_0x15cb5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37a4a5}):_0x5e4b1b[_0x15cb5a]=_0x37a4a5,ae=(_0x46e740,_0x1d425c,_0x5b8895,_0x46c197)=>{var _0x344182=_0x4006d2;for(var _0x3dd35b=_0x46c197>0x1?void 0x0:_0x46c197?se(_0x1d425c,_0x5b8895):_0x1d425c,_0x571e4e=_0x46e740[_0x344182(0x205)]-0x1,_0x17639d;_0x571e4e>=0x0;_0x571e4e--)(_0x17639d=_0x46e740[_0x571e4e])&&(_0x3dd35b=_0x17639d(_0x3dd35b)||_0x3dd35b);return _0x3dd35b;},N=(_0x293133,_0x12d55a)=>(_0x44e3ca,_0x47abec)=>_0x12d55a(_0x44e3ca,_0x47abec,_0x293133),T=(_0x7e0bd4,_0x1b93b4,_0x1f29d7)=>oe(_0x7e0bd4,typeof _0x1b93b4!=_0x4006d2(0x28e)?_0x1b93b4+'':_0x1b93b4,_0x1f29d7);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x4006d2(0x21b)]=class extends o[_0x4006d2(0x2a0)]{constructor(_0x4e1855=x,_0x2e341e,_0x1292cc){var _0x1f5cf0=_0x4006d2;super(),this[_0x1f5cf0(0x28f)]=_0x4e1855,this['_injector']=_0x2e341e,this[_0x1f5cf0(0x202)]=_0x1292cc;const {..._0x3f4d08}=o[_0x1f5cf0(0x1ec)]({},x,this[_0x1f5cf0(0x28f)]);this[_0x1f5cf0(0x202)][_0x1f5cf0(0x227)]($,_0x3f4d08);}[_0x4006d2(0x224)](){var _0x577f30=_0x4006d2;o['registerDependencies'](this[_0x577f30(0x2ae)],o[_0x577f30(0x1e7)]([[O],[exports[_0x577f30(0x1e8)]],[E],[exports['DesktopLiveShareController']]],this['_config'][_0x577f30(0x213)])),o[_0x577f30(0x26c)](this[_0x577f30(0x2ae)],[[E]]);}['onRendered'](){var _0x1f68eb=_0x4006d2;o[_0x1f68eb(0x26c)](this[_0x1f68eb(0x2ae)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x4006d2(0x21b)],_0x4006d2(0x239),o[_0x4006d2(0x262)]['UNIVER_UNKNOWN']),T(exports[_0x4006d2(0x21b)],_0x4006d2(0x266),le),exports[_0x4006d2(0x21b)]=ae([o[_0x4006d2(0x1f3)](m[_0x4006d2(0x265)]),N(0x1,o[_0x4006d2(0x29f)](o[_0x4006d2(0x23c)])),N(0x2,o[_0x4006d2(0x1fa)])],exports[_0x4006d2(0x21b)]),exports[_0x4006d2(0x1ed)]=A,exports[_0x4006d2(0x1e2)]=O,exports['LiveShareStatus']=h;
1
+ 'use strict';var _0x1745ea=_0x3e4a;(function(_0x1d94cf,_0x66ed29){var _0x28fa40=_0x3e4a,_0x314ded=_0x1d94cf();while(!![]){try{var _0x4b9800=parseInt(_0x28fa40(0x1b0))/0x1+-parseInt(_0x28fa40(0x18c))/0x2*(parseInt(_0x28fa40(0x1c5))/0x3)+parseInt(_0x28fa40(0x1b3))/0x4*(-parseInt(_0x28fa40(0x1ab))/0x5)+-parseInt(_0x28fa40(0x153))/0x6*(-parseInt(_0x28fa40(0x116))/0x7)+-parseInt(_0x28fa40(0x178))/0x8*(-parseInt(_0x28fa40(0x11f))/0x9)+-parseInt(_0x28fa40(0x114))/0xa*(parseInt(_0x28fa40(0xf2))/0xb)+parseInt(_0x28fa40(0x17f))/0xc;if(_0x4b9800===_0x66ed29)break;else _0x314ded['push'](_0x314ded['shift']());}catch(_0xc2292c){_0x314ded['push'](_0x314ded['shift']());}}}(_0x2f07,0x46331));var U=Object[_0x1745ea(0xfd)],F=(_0x1ef594,_0x43c89a,_0x562878)=>_0x43c89a in _0x1ef594?U(_0x1ef594,_0x43c89a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x562878}):_0x1ef594[_0x43c89a]=_0x562878,v=(_0x3e93fa,_0x414665,_0x4db13d)=>F(_0x3e93fa,typeof _0x414665!='symbol'?_0x414665+'':_0x414665,_0x4db13d);Object[_0x1745ea(0xfd)](exports,Symbol[_0x1745ea(0x1a4)],{'value':_0x1745ea(0x162)});const m=require(_0x1745ea(0x15d)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require(_0x1745ea(0x15a)),l=require(_0x1745ea(0x133)),g=require(_0x1745ea(0x187)),f=require('react'),_=require(_0x1745ea(0x161)),D=require(_0x1745ea(0xed)),b=require(_0x1745ea(0x1a5)),$='live-share.config',x={};class O extends o['Disposable']{constructor(){var _0x92f837=_0x1745ea;super(...arguments),v(this,_0x92f837(0xea),new Set()),v(this,_0x92f837(0xfa),new Set());}['registerSharedOperation'](_0x4b1af3){var _0x3cc8e5=_0x1745ea;return this[_0x3cc8e5(0xea)][_0x3cc8e5(0x147)](_0x4b1af3),o[_0x3cc8e5(0x12d)](()=>this[_0x3cc8e5(0xea)][_0x3cc8e5(0x167)](_0x4b1af3));}['registerInitialStateReporter'](_0x3a566b){var _0x4c217c=_0x1745ea;return this[_0x4c217c(0xfa)]['add'](_0x3a566b),o[_0x4c217c(0x12d)](()=>this[_0x4c217c(0xfa)][_0x4c217c(0x167)](_0x3a566b));}[_0x1745ea(0x131)](_0x1b24a8){var _0x3d7522=_0x1745ea;return this[_0x3d7522(0xea)]['has'](_0x1b24a8);}[_0x1745ea(0x143)](_0x380321){var _0x52a4aa=_0x1745ea;return Array['from'](this[_0x52a4aa(0xfa)])[_0x52a4aa(0x142)](_0x5bec60=>_0x5bec60(_0x380321));}}var H=Object[_0x1745ea(0xff)],V=(_0x33eec6,_0x55fc19,_0x265e08,_0x378b6d)=>{var _0x231c01=_0x1745ea;for(var _0x51fd30=_0x378b6d>0x1?void 0x0:_0x378b6d?H(_0x55fc19,_0x265e08):_0x55fc19,_0x2e7456=_0x33eec6[_0x231c01(0xf7)]-0x1,_0x3a81b0;_0x2e7456>=0x0;_0x2e7456--)(_0x3a81b0=_0x33eec6[_0x2e7456])&&(_0x51fd30=_0x3a81b0(_0x51fd30)||_0x51fd30);return _0x51fd30;},k=(_0x1135eb,_0x2397a9)=>(_0x2b886b,_0x2b8abf)=>_0x2397a9(_0x2b886b,_0x2b8abf,_0x1135eb);let E=class extends o[_0x1745ea(0x126)]{constructor(_0x186e89){var _0x3aa1ef=_0x1745ea;super(),this['_liveShareService']=_0x186e89,this[_0x3aa1ef(0x1af)]();}[_0x1745ea(0x1af)](){var _0x5d3087=_0x1745ea;[w['SetZoomRatioOperation']['id'],w[_0x5d3087(0x1c6)]['id'],C[_0x5d3087(0x15c)]['id']][_0x5d3087(0x170)](_0x234ec9=>{var _0x48b5eb=_0x5d3087;this['disposeWithMe'](this[_0x48b5eb(0x106)][_0x48b5eb(0x1bd)](_0x234ec9));});}};E=V([k(0x0,o[_0x1745ea(0x10b)](O))],E);var u=function(){var _0x2af862=_0x1745ea;return u=Object[_0x2af862(0x137)]||function(_0x3bbfcc){var _0x4922d4=_0x2af862;for(var _0x3fdb5b,_0x101bd0=0x1,_0x2948cb=arguments['length'];_0x101bd0<_0x2948cb;_0x101bd0++){_0x3fdb5b=arguments[_0x101bd0];for(var _0x443785 in _0x3fdb5b)Object[_0x4922d4(0x19c)][_0x4922d4(0x13e)][_0x4922d4(0x193)](_0x3fdb5b,_0x443785)&&(_0x3bbfcc[_0x443785]=_0x3fdb5b[_0x443785]);}return _0x3bbfcc;},u[_0x2af862(0x163)](this,arguments);},M=function(_0x31b6ba,_0x5998dd){var _0x15efa2=_0x1745ea,_0x500fcb={};for(var _0x496d91 in _0x31b6ba)Object[_0x15efa2(0x19c)][_0x15efa2(0x13e)][_0x15efa2(0x193)](_0x31b6ba,_0x496d91)&&_0x5998dd[_0x15efa2(0x1a8)](_0x496d91)<0x0&&(_0x500fcb[_0x496d91]=_0x31b6ba[_0x496d91]);if(_0x31b6ba!=null&&typeof Object[_0x15efa2(0xe5)]==_0x15efa2(0x12e)){for(var _0x2cea16=0x0,_0x496d91=Object[_0x15efa2(0xe5)](_0x31b6ba);_0x2cea16<_0x496d91['length'];_0x2cea16++)_0x5998dd['indexOf'](_0x496d91[_0x2cea16])<0x0&&Object[_0x15efa2(0x19c)][_0x15efa2(0xf0)]['call'](_0x31b6ba,_0x496d91[_0x2cea16])&&(_0x500fcb[_0x496d91[_0x2cea16]]=_0x31b6ba[_0x496d91[_0x2cea16]]);}return _0x500fcb;},j=f[_0x1745ea(0x1b5)](function(_0x2646db,_0x39db70){var _0x28a3de=_0x1745ea,_0xe0d3de=_0x2646db[_0x28a3de(0x17c)],_0xeeaeb2=_0x2646db['id'],_0x364dbb=_0x2646db['className'],_0x3c5147=_0x2646db[_0x28a3de(0x1c2)],_0x4bbfdf=M(_0x2646db,['icon','id',_0x28a3de(0x132),_0x28a3de(0x1c2)]),_0x2e6ac2='univerjs-icon\x20univerjs-icon-'[_0x28a3de(0x10e)](_0xeeaeb2,'\x20')[_0x28a3de(0x10e)](_0x364dbb||'')[_0x28a3de(0xee)](),_0x59f0d9=f[_0x28a3de(0x181)]('_'['concat'](G()));return y(_0xe0d3de,''['concat'](_0xeeaeb2),{'defIds':_0xe0d3de['defIds'],'idSuffix':_0x59f0d9['current']},u({'ref':_0x39db70,'className':_0x2e6ac2},_0x4bbfdf),_0x3c5147);});function y(_0x590de5,_0x35b995,_0xbf2330,_0x58dbf9,_0xf31419){var _0x11afa4=_0x1745ea;return f[_0x11afa4(0x19d)](_0x590de5[_0x11afa4(0x1a9)],u(u({'key':_0x35b995},q(_0x590de5,_0xbf2330,_0xf31419)),_0x58dbf9),(W(_0x590de5,_0xbf2330)[_0x11afa4(0x100)]||[])[_0x11afa4(0x142)](function(_0x80cf91,_0x32b271){var _0x431b42=_0x11afa4;return y(_0x80cf91,''['concat'](_0x35b995,'-')[_0x431b42(0x10e)](_0x590de5[_0x431b42(0x1a9)],'-')['concat'](_0x32b271),_0xbf2330,void 0x0,_0xf31419);}));}function q(_0x6c396e,_0x56dbdc,_0x5c080d){var _0x166e84=_0x1745ea,_0x46aa12=u({},_0x6c396e[_0x166e84(0x164)]);_0x5c080d!=null&&_0x5c080d[_0x166e84(0x13a)]&&_0x46aa12[_0x166e84(0x124)]==='colorChannel1'&&(_0x46aa12[_0x166e84(0x124)]=_0x5c080d[_0x166e84(0x13a)]),_0x6c396e[_0x166e84(0x1a9)]===_0x166e84(0x10d)&&_0x46aa12['id']&&(_0x46aa12['id']=_0x46aa12['id']+_0x56dbdc[_0x166e84(0x102)]),Object[_0x166e84(0x138)](_0x46aa12)['forEach'](function(_0x41df30){var _0x433a12=_0x166e84,_0x3427a5=_0x41df30[0x0],_0x2d5991=_0x41df30[0x1];_0x3427a5==='mask'&&typeof _0x2d5991==_0x433a12(0x10f)&&(_0x46aa12[_0x3427a5]=_0x2d5991[_0x433a12(0x104)](/url\(#(.*)\)/,_0x433a12(0x1aa)[_0x433a12(0x10e)](_0x56dbdc[_0x433a12(0x102)],')')));});var _0x54ade5=_0x56dbdc[_0x166e84(0x19b)];return!_0x54ade5||_0x54ade5[_0x166e84(0xf7)]===0x0||(_0x6c396e[_0x166e84(0x1a9)]===_0x166e84(0x108)&&_0x46aa12[_0x166e84(0x10c)]&&(_0x46aa12['xlink:href']=_0x46aa12[_0x166e84(0x10c)]+_0x56dbdc['idSuffix']),Object[_0x166e84(0x138)](_0x46aa12)[_0x166e84(0x170)](function(_0x51d086){var _0x19508a=_0x166e84,_0x465000=_0x51d086[0x0],_0x43f259=_0x51d086[0x1];typeof _0x43f259==_0x19508a(0x10f)&&(_0x46aa12[_0x465000]=_0x43f259[_0x19508a(0x104)](/url\(#(.*)\)/,'url(#$1'[_0x19508a(0x10e)](_0x56dbdc[_0x19508a(0x102)],')')));})),_0x46aa12;}function W(_0x1eb6f2,_0x572249){var _0x41e04b=_0x1745ea,_0x145e4c,_0x14dda3=_0x572249[_0x41e04b(0x19b)];return!_0x14dda3||_0x14dda3['length']===0x0?_0x1eb6f2:_0x1eb6f2['tag']===_0x41e04b(0x17e)&&(!((_0x145e4c=_0x1eb6f2['children'])===null||_0x145e4c===void 0x0)&&_0x145e4c['length'])?u(u({},_0x1eb6f2),{'children':_0x1eb6f2[_0x41e04b(0x100)][_0x41e04b(0x142)](function(_0x4a8529){var _0x2f260f=_0x41e04b;return typeof _0x4a8529[_0x2f260f(0x164)]['id']==_0x2f260f(0x10f)&&_0x14dda3&&_0x14dda3['includes'](_0x4a8529[_0x2f260f(0x164)]['id'])?u(u({},_0x4a8529),{'attrs':u(u({},_0x4a8529[_0x2f260f(0x164)]),{'id':_0x4a8529[_0x2f260f(0x164)]['id']+_0x572249[_0x2f260f(0x102)]})}):_0x4a8529;})}):_0x1eb6f2;}function G(){var _0xa9d524=_0x1745ea;return Math['random']()[_0xa9d524(0x1a1)](0x24)['substring'](0x2,0x8);}j[_0x1745ea(0xe7)]=_0x1745ea(0x11c);var B={'tag':'svg','attrs':{'xmlns':_0x1745ea(0x127),'fill':_0x1745ea(0x184),'viewBox':'0\x200\x2017\x2017','width':_0x1745ea(0x1c7),'height':_0x1745ea(0x1c7)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x1745ea(0x103)}},{'tag':_0x1745ea(0x16b),'attrs':{'fill':_0x1745ea(0x195),'d':_0x1745ea(0x144),'fillRule':'evenodd','clipRule':_0x1745ea(0x1bb)}}]},P=f[_0x1745ea(0x1b5)](function(_0x27debe,_0x285aed){var _0x5465a2=_0x1745ea;return f[_0x5465a2(0x19d)](j,Object[_0x5465a2(0x137)]({},_0x27debe,{'id':'live-share-icon','ref':_0x285aed,'icon':B}));});function _0x2f07(){var _0x3873bf=['getOwnPropertyDescriptor','children','button','idSuffix','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','replace','_configService','_liveShareService','get','use','LIVESHARE_OPERATION','onRendered','Inject','xlink:href','mask','concat','string','_entities','presenting','getUnitId','parse','105380jWYLVU','_beIdle','22918bCcQeV','IDLE','_collabSessionService','PRESENTING','_status$','_injector','UniverIcon','IUIPartsService','UniverInstanceType','801qWSNZu','next','LiveShareService','dispose','You\x27re\x20presenting\x20the\x20document','fill','_uiPartsService','Disposable','http://www.w3.org/2000/svg','unitId','idle','NOT_FOLLOWING','useState','Dropdown','toDisposable','function','DependentOn','_handleNewChangeSets','shouldShareOperation','className','react/jsx-runtime','touchDependencies','_stopFollowing','throttleTime','assign','entries','UNIVER_UNKNOWN','colorChannel1','jsxs','IConfigService','getLiveShareCoordinator','hasOwnProperty','parseProtocolChangeset','useDependency','pluginName','map','getInitialStates','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','You\x27are\x20offline.','_stopPresenting','add','symbol','registerComponent','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','mergeOverrideWithDependencies','sheet','startFollowing','LIVESHARE_REQUEST_HOST','univer-size-4','BehaviorSubject','LIVESHARE_FETCH_OPERATIONS','getTypeOfUnitDisposed$','654UCSgPq','stopFollowing','then','LiveShareStatus','_fetchOperations','LIVESHARE_NEW_HOST','mutations','@univerjs/ui','text','SetWorksheetActiveOperation','@univerjs-pro/collaboration-client','LIVESHARE_TERMINATE','status$','OFFLINE','@univerjs-pro/collaboration','Module','apply','attrs','Fragment','requireSession','delete','_status','DesktopLiveShareController','reverse','path','override','Stop\x20presenting','Present\x20this\x20document','_commandService','forEach','set','UniverLiveSharePlugin','UNIVER_SHEET','_collabSession','setConfig','disposeWithMe','div','15160HoEbqz','CollaborationSessionService','DisposableCollection','has','icon','pipe','defs','10673208nmjBck','IUniverInstanceService','useRef','useEffect','following','none','data','Subject','@univerjs/design','OPERATION','end','_commandDisposable','offline','6mYdkoB','HEADER_MENU','SessionStatus','event$','current','jsx','sessionStatus$','call','complete','currentColor','_univerInstanceService','connectInjector','params','SAME_OPERATION_SHARE_INTERVAL','stopPresenting','defIds','prototype','createElement','dispose$','LiveShare','_mountLiveShare','toString','_startLiveShareCoordinator','_handleOnline','toStringTag','rxjs/operators','_presenter','LiveShareCoordinator','indexOf','tag','url(#$1','5NuQGIV','_handleTerminate','getMemberID','_handleNewHost','_init','260032LuDzSO','presenter','memberID','1209524SCuaid','values','forwardRef','univer-mb-3\x20univer-w-full\x20univer-text-sm','operations','getTypeOfUnitAdded$','getCurrentTypeOfUnit$','not-following','evenodd','_config','registerSharedOperation','_startPresenting','FOLLOWING','_handleOffline','takeUntil','extend','Plugin','getConfig','568707lygAio','SetScrollOperation','1em','CollaborationEvent','registerDependencies','tryStartPresenting','getOwnPropertySymbols','clear','displayName','ONLINE','send','_sharedOperations','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','NEW_CHANGESETS','rxjs','trim','onStarting','propertyIsEnumerable','executeCommand','539dutDGb','Injector','merge','Button','_handleOperation','length','LiveShareController','subscribe','_reporters','_unitID','_startFollowing','defineProperty','init'];_0x2f07=function(){return _0x3873bf;};return _0x2f07();}P['displayName']='LiveShareIcon';var Y=Object['getOwnPropertyDescriptor'],R=(_0x1345ed,_0x50c601,_0x427de8,_0x5bb437)=>{var _0x3125f5=_0x1745ea;for(var _0x387e73=_0x5bb437>0x1?void 0x0:_0x5bb437?Y(_0x50c601,_0x427de8):_0x50c601,_0x3a97ec=_0x1345ed[_0x3125f5(0xf7)]-0x1,_0x4f02cd;_0x3a97ec>=0x0;_0x3a97ec--)(_0x4f02cd=_0x1345ed[_0x3a97ec])&&(_0x387e73=_0x4f02cd(_0x387e73)||_0x387e73);return _0x387e73;},S=(_0x558e89,_0x286df2)=>(_0x54666b,_0xbbbfec)=>_0x286df2(_0x54666b,_0xbbbfec,_0x558e89);exports[_0x1745ea(0xf8)]=class extends o['RxDisposable']{constructor(_0x479eab,_0x5c045,_0x422dd0){var _0x53500f=_0x1745ea;super(),v(this,'_entities',new Map()),(this[_0x53500f(0x196)]=_0x479eab,this[_0x53500f(0x11b)]=_0x5c045,this[_0x53500f(0x118)]=_0x422dd0,this[_0x53500f(0x1af)]());}async['getLiveShareCoordinator'](_0x1dd0e3){var _0x584779=_0x1745ea;return this[_0x584779(0x110)][_0x584779(0x17b)](_0x1dd0e3)||await this[_0x584779(0x1a2)](_0x1dd0e3),this[_0x584779(0x110)][_0x584779(0x107)](_0x1dd0e3);}[_0x1745ea(0x1af)](){var _0x96d7c4=_0x1745ea;this[_0x96d7c4(0x196)][_0x96d7c4(0x1b8)](o[_0x96d7c4(0x11e)]['UNIVER_SHEET'])[_0x96d7c4(0x17d)](b[_0x96d7c4(0x1c1)](this[_0x96d7c4(0x19e)]))[_0x96d7c4(0xf9)](async _0x258510=>{var _0xd785cc=_0x96d7c4;const _0x3ca350=_0x258510[_0xd785cc(0x112)]();this['_entities'][_0xd785cc(0x17b)](_0x3ca350)||this[_0xd785cc(0x1a2)](_0x3ca350);}),this[_0x96d7c4(0x196)][_0x96d7c4(0x152)](o['UniverInstanceType'][_0x96d7c4(0x173)])[_0x96d7c4(0x17d)](b[_0x96d7c4(0x1c1)](this['dispose$']))['subscribe'](_0x6518a5=>{var _0x333522=_0x96d7c4;const _0x26ca45=_0x6518a5['getUnitId'](),_0x35976c=this[_0x333522(0x110)][_0x333522(0x107)](_0x26ca45);_0x35976c==null||_0x35976c[_0x333522(0x122)]();});}async[_0x1745ea(0x1a2)](_0xf8b1c7){var _0x2296bc=_0x1745ea;const _0x146a13=await this[_0x2296bc(0x118)][_0x2296bc(0x166)](_0xf8b1c7),_0x4d80d0=this[_0x2296bc(0x11b)]['createInstance'](exports[_0x2296bc(0x1a7)],_0xf8b1c7,_0x146a13);return _0x4d80d0[_0x2296bc(0xfe)](),this['_entities']['set'](_0xf8b1c7,_0x4d80d0),_0x4d80d0;}},exports['LiveShareController']=R([S(0x0,o[_0x1745ea(0x180)]),S(0x1,o[_0x1745ea(0x10b)](o['Injector'])),S(0x2,o['Inject'](m[_0x1745ea(0x179)]))],exports['LiveShareController']);var h=(_0x48ef4f=>(_0x48ef4f[_0x1745ea(0x160)]='offline',_0x48ef4f[_0x1745ea(0x117)]=_0x1745ea(0x129),_0x48ef4f[_0x1745ea(0x1bf)]=_0x1745ea(0x183),_0x48ef4f[_0x1745ea(0x12a)]=_0x1745ea(0x1ba),_0x48ef4f[_0x1745ea(0x119)]=_0x1745ea(0x111),_0x48ef4f))(h||{});const Z=_0x1745ea(0x199),J=0xc8;exports[_0x1745ea(0x1a7)]=class extends o['RxDisposable']{constructor(_0x49e843,_0x270f0d,_0x265f01,_0x49b1bf,_0x596fe1){var _0x3dae3b=_0x1745ea;super(),v(this,'_status$',new D[(_0x3dae3b(0x150))](_0x3dae3b(0x129))),v(this,_0x3dae3b(0x15f),this[_0x3dae3b(0x11a)]['asObservable']()),v(this,_0x3dae3b(0x1af),!0x1),v(this,_0x3dae3b(0x18a),null),v(this,_0x3dae3b(0x1a6),null),(this[_0x3dae3b(0xfb)]=_0x49e843,this[_0x3dae3b(0x174)]=_0x270f0d,this[_0x3dae3b(0x105)]=_0x265f01,this[_0x3dae3b(0x106)]=_0x49b1bf,this[_0x3dae3b(0x16f)]=_0x596fe1);}get['_status'](){return this['_status$']['getValue']();}['dispose'](){var _0x37f8f3=_0x1745ea,_0x135e3c;(_0x135e3c=this[_0x37f8f3(0x18a)])==null||_0x135e3c[_0x37f8f3(0x122)](),this[_0x37f8f3(0x11a)]['next']('idle'),this[_0x37f8f3(0x11a)][_0x37f8f3(0x194)]();}[_0x1745ea(0xfe)](){var _0x2d2765=_0x1745ea;this[_0x2d2765(0x1af)]||(this['_init']=!0x0,this[_0x2d2765(0x174)][_0x2d2765(0x192)][_0x2d2765(0x17d)](b[_0x2d2765(0x1c1)](this[_0x2d2765(0x19e)]))[_0x2d2765(0xf9)](_0x1c2a7d=>{var _0x416bb1=_0x2d2765;switch(_0x1c2a7d){case m['SessionStatus'][_0x416bb1(0x160)]:this[_0x416bb1(0x1c0)]();break;case m[_0x416bb1(0x18e)][_0x416bb1(0xe8)]:this['_handleOnline']();break;}}),this[_0x2d2765(0x174)][_0x2d2765(0x18f)][_0x2d2765(0x17d)](b[_0x2d2765(0x1c1)](this[_0x2d2765(0x19e)]))[_0x2d2765(0xf9)](_0x584ea0=>{var _0x4df24c=_0x2d2765;const {eventID:_0x4bdc98}=_0x584ea0;switch(_0x4bdc98){case _[_0x4df24c(0xe2)][_0x4df24c(0x158)]:this[_0x4df24c(0x1ae)](_0x584ea0);break;case _[_0x4df24c(0xe2)][_0x4df24c(0x109)]:this['_handleOperation'](_0x584ea0);break;case _['CollaborationEvent'][_0x4df24c(0x15e)]:this[_0x4df24c(0x1ac)]();break;case _['CollaborationEvent'][_0x4df24c(0xec)]:this[_0x4df24c(0x130)](_0x584ea0);break;}}));}[_0x1745ea(0xe4)](){var _0x3f23a9=_0x1745ea;this[_0x3f23a9(0x174)][_0x3f23a9(0xe9)]({'eventID':_[_0x3f23a9(0xe2)][_0x3f23a9(0x14e)],'data':{'unitID':this['_unitID'],'userID':this[_0x3f23a9(0x174)][_0x3f23a9(0x1ad)]()}},this[_0x3f23a9(0xfb)]);}[_0x1745ea(0x19a)](){var _0x27ab05=_0x1745ea;this[_0x27ab05(0x168)]===_0x27ab05(0x111)&&(this[_0x27ab05(0x11a)][_0x27ab05(0x120)](_0x27ab05(0x129)),this[_0x27ab05(0x174)][_0x27ab05(0xe9)]({'eventID':_[_0x27ab05(0xe2)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x27ab05(0xfb)]}},this[_0x27ab05(0xfb)]));}[_0x1745ea(0x14d)](){var _0x430a11=_0x1745ea;this[_0x430a11(0x168)]===_0x430a11(0x1ba)&&(this[_0x430a11(0x11a)]['next'](_0x430a11(0x183)),this[_0x430a11(0xfc)]());}[_0x1745ea(0x154)](){var _0x539088=_0x1745ea;this[_0x539088(0x168)]===_0x539088(0x183)&&this[_0x539088(0x135)]();}['_handleNewHost'](_0x5201fc){var _0x48198a=_0x1745ea;const {presenter:_0x27daac}=_0x5201fc[_0x48198a(0x185)],_0x21103c=this['_collabSession'][_0x48198a(0x1ad)]();this[_0x48198a(0x1a6)]=_0x27daac,_0x27daac===_0x21103c?(this['_stopFollowing'](),this[_0x48198a(0x1be)]()):this[_0x48198a(0x168)]!==_0x48198a(0x1ba)&&(this[_0x48198a(0x146)](),this['_startFollowing']());}[_0x1745ea(0x157)](){var _0x994074=_0x1745ea;const _0x5edcd7={'eventID':_['CollaborationEvent'][_0x994074(0x151)]};this[_0x994074(0x174)][_0x994074(0xe9)](_0x5edcd7,this[_0x994074(0xfb)]);}[_0x1745ea(0x1ac)](){var _0x33175a=_0x1745ea;this['_presenter']=null,this['_status']!==_0x33175a(0x111)&&this[_0x33175a(0x115)]();}[_0x1745ea(0x130)](_0x4028da){var _0x5bc936=_0x1745ea;if(this[_0x5bc936(0x168)]===_0x5bc936(0x183)&&this[_0x5bc936(0x1a6)]===_0x4028da[_0x5bc936(0x185)][_0x5bc936(0x1b2)]){const _0x3f34e8=_[_0x5bc936(0x13f)](_0x4028da[_0x5bc936(0x185)])[_0x5bc936(0x159)][_0x5bc936(0x16a)]()['find'](_0x4fea97=>_0x4fea97['id']===C['InsertSheetMutation']['id']);if(_0x3f34e8){const _0x372e8c=_0x3f34e8[_0x5bc936(0x198)][_0x5bc936(0x128)],_0x5b1c9c=_0x3f34e8[_0x5bc936(0x198)][_0x5bc936(0x14c)]['id'];setTimeout(()=>{var _0x36c8b2=_0x5bc936;this['_commandService'][_0x36c8b2(0xf1)](C[_0x36c8b2(0x15c)]['id'],{'unitId':_0x372e8c,'subUnitId':_0x5b1c9c},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x16e1fc=_0x1745ea;this[_0x16e1fc(0x11a)][_0x16e1fc(0x120)](_0x16e1fc(0x111));const _0x4b0f6e=new Map(),_0x195b83=this['_commandDisposable']=new o[(_0x16e1fc(0x17a))]();_0x195b83[_0x16e1fc(0x147)](o[_0x16e1fc(0x12d)](()=>{var _0x1c5770=_0x16e1fc;_0x4b0f6e[_0x1c5770(0x170)](_0x376a2d=>_0x376a2d['complete']()),_0x4b0f6e[_0x1c5770(0xe6)]();})),_0x195b83['add'](this['_commandService']['onCommandExecuted'](_0x5dd238=>{var _0x495ee4=_0x16e1fc,_0x210c2e;if(_0x5dd238['type']!==o['CommandType'][_0x495ee4(0x188)]||!this[_0x495ee4(0x106)][_0x495ee4(0x131)](_0x5dd238['id']))return;const {id:_0x489962}=_0x5dd238;let _0x482c8b;_0x4b0f6e[_0x495ee4(0x17b)](_0x489962)?_0x482c8b=_0x4b0f6e['get'](_0x489962):(_0x482c8b=new D[(_0x495ee4(0x186))](),_0x4b0f6e[_0x495ee4(0x171)](_0x489962,_0x482c8b),_0x482c8b[_0x495ee4(0x17d)](b[_0x495ee4(0x136)]((_0x210c2e=this[_0x495ee4(0x105)][_0x495ee4(0x1c4)](Z))!=null?_0x210c2e:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1181fb=>{var _0x5a7dad=_0x495ee4;this[_0x5a7dad(0x174)]['send']({'eventID':_[_0x5a7dad(0xe2)][_0x5a7dad(0x109)],'data':{'unitID':this['_unitID'],'operations':{[_0x1181fb['id']]:{'id':_0x1181fb['id'],'params':JSON['stringify'](_0x1181fb[_0x5a7dad(0x198)])}}}},this[_0x5a7dad(0xfb)]);})),_0x482c8b[_0x495ee4(0x120)](_0x5dd238);})),this[_0x16e1fc(0x106)][_0x16e1fc(0x143)](this[_0x16e1fc(0xfb)])[_0x16e1fc(0x170)](_0x1c8604=>this[_0x16e1fc(0x174)]['send']({'eventID':_['CollaborationEvent'][_0x16e1fc(0x109)],'data':{'unitID':this[_0x16e1fc(0xfb)],'operations':{[_0x1c8604['id']]:{'id':_0x1c8604['id'],'params':JSON['stringify'](_0x1c8604[_0x16e1fc(0x198)])}}}},this[_0x16e1fc(0xfb)]));}[_0x1745ea(0x146)](){var _0x59a275=_0x1745ea,_0x1d513a;this[_0x59a275(0x11a)][_0x59a275(0x120)](_0x59a275(0x129)),(_0x1d513a=this[_0x59a275(0x18a)])==null||_0x1d513a[_0x59a275(0x122)](),this[_0x59a275(0x18a)]=null;}[_0x1745ea(0xfc)](){var _0x509ddc=_0x1745ea,_0x42402d;(_0x42402d=this[_0x509ddc(0x18a)])==null||_0x42402d[_0x509ddc(0x122)](),this['_status$']['next'](_0x509ddc(0x183));}[_0x1745ea(0x115)](){var _0x52500d=_0x1745ea,_0x4569b7;this[_0x52500d(0x11a)][_0x52500d(0x120)]('idle'),(_0x4569b7=this['_commandDisposable'])==null||_0x4569b7[_0x52500d(0x122)](),this[_0x52500d(0x18a)]=null;}['_stopFollowing'](){var _0x17ad86=_0x1745ea,_0x4275d5;this[_0x17ad86(0x11a)][_0x17ad86(0x120)]('not-following'),(_0x4275d5=this['_commandDisposable'])==null||_0x4275d5[_0x17ad86(0x122)]();}[_0x1745ea(0xf6)](_0x348a79){var _0x1f59ac=_0x1745ea;if(['presenting','not-following',_0x1f59ac(0x18b)]['includes'](this[_0x1f59ac(0x168)])||!_0x348a79[_0x1f59ac(0x185)][_0x1f59ac(0x1b1)]||_0x348a79[_0x1f59ac(0x185)][_0x1f59ac(0x1b1)]===this['_collabSession'][_0x1f59ac(0x1ad)]())return;this[_0x1f59ac(0x168)]===_0x1f59ac(0x129)&&this[_0x1f59ac(0xfc)]();const _0x3a4444=_0x348a79[_0x1f59ac(0x185)][_0x1f59ac(0x1b7)];Object[_0x1f59ac(0x1b4)](_0x3a4444)[_0x1f59ac(0x170)](_0x1219ec=>{var _0x254d31=_0x1f59ac;this[_0x254d31(0x16f)][_0x254d31(0xf1)](_0x1219ec['id'],_0x1219ec[_0x254d31(0x198)]?JSON[_0x254d31(0x113)](_0x1219ec['params']):null,{'fromCollab':!0x0});});}[_0x1745ea(0x1c0)](){var _0x3514ba=_0x1745ea,_0x42ead0;this[_0x3514ba(0x11a)][_0x3514ba(0x120)](_0x3514ba(0x18b)),(_0x42ead0=this['_commandDisposable'])==null||_0x42ead0['dispose']();}[_0x1745ea(0x1a3)](){var _0x56e5e=_0x1745ea;this[_0x56e5e(0x11a)]['next'](_0x56e5e(0x129)),this[_0x56e5e(0x157)]();}},exports[_0x1745ea(0x1a7)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x1745ea(0x10b)](O)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x2a1d22=_0x1745ea;const _0x16736c=p[_0x2a1d22(0x140)](exports[_0x2a1d22(0xf8)]),_0x280863=p[_0x2a1d22(0x140)](o['IUniverInstanceService']),_0x3f6b86=p['useObservable'](()=>_0x280863[_0x2a1d22(0x1b9)](o[_0x2a1d22(0x11e)][_0x2a1d22(0x173)]),void 0x0,!0x1,[]),[_0x2268b5,_0xdbf003]=f['useState'](null),[_0x5a0953,_0x5b8770]=f[_0x2a1d22(0x12b)](h[_0x2a1d22(0x117)]),_0x343a3b=f[_0x2a1d22(0x181)](null);return f[_0x2a1d22(0x182)](()=>(_0x3f6b86&&_0x16736c[_0x2a1d22(0x13d)](_0x3f6b86['getUnitId']())[_0x2a1d22(0x155)](_0x3ce2e3=>{var _0x5871ee=_0x2a1d22;_0xdbf003(_0x3ce2e3),_0x343a3b[_0x5871ee(0x190)]=_0x3ce2e3[_0x5871ee(0x15f)][_0x5871ee(0xf9)](_0x3a85c4=>{_0x5b8770(_0x3a85c4);});}),()=>{var _0x2ff912=_0x2a1d22,_0x184308;(_0x184308=_0x343a3b[_0x2ff912(0x190)])==null||_0x184308['unsubscribe'](),_0x343a3b[_0x2ff912(0x190)]=null;}),[_0x3f6b86,_0x16736c]),_0x2268b5?l[_0x2a1d22(0x191)](g[_0x2a1d22(0x12c)],{'align':_0x2a1d22(0x189),'disabled':_0x5a0953===h[_0x2a1d22(0x160)],'className':_0x2a1d22(0xeb),'overlay':l[_0x2a1d22(0x191)](K,{'status':_0x5a0953,'coordinator':_0x2268b5}),'children':l[_0x2a1d22(0x191)](_0x2a1d22(0x101),{'className':g['clsx'](_0x2a1d22(0x14a),{'univer-cursor-not-allowed':_0x5a0953===h[_0x2a1d22(0x160)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5a0953!==h[_0x2a1d22(0x160)]}),'type':_0x2a1d22(0x101),'children':l[_0x2a1d22(0x191)](P,{'className':_0x2a1d22(0x14f)})})}):null;}function K(_0xff5ff1){var _0x5c1561=_0x1745ea;const {status:_0x253266,coordinator:_0x4bf0c5}=_0xff5ff1;switch(_0x253266){case h['IDLE']:return l[_0x5c1561(0x191)](z,{'coordinator':_0x4bf0c5});case h[_0x5c1561(0x1bf)]:return l[_0x5c1561(0x191)](Q,{'coordinator':_0x4bf0c5});case h[_0x5c1561(0x12a)]:return l[_0x5c1561(0x191)](X,{'coordinator':_0x4bf0c5});case h[_0x5c1561(0x160)]:return l['jsx'](te,{});case h[_0x5c1561(0x119)]:return l[_0x5c1561(0x191)](ee,{'coordinator':_0x4bf0c5});default:return null;}}function _0x3e4a(_0xc11979,_0x248737){var _0x2f078c=_0x2f07();return _0x3e4a=function(_0x3e4a5a,_0x3ccd9c){_0x3e4a5a=_0x3e4a5a-0xe2;var _0x61ba7d=_0x2f078c[_0x3e4a5a];return _0x61ba7d;},_0x3e4a(_0xc11979,_0x248737);}function z(_0xcace33){var _0x449e0f=_0x1745ea;const {coordinator:_0x2e4679}=_0xcace33;return l['jsxs'](l[_0x449e0f(0x165)],{'children':[l[_0x449e0f(0x191)](_0x449e0f(0x177),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x449e0f(0x16e)}),l[_0x449e0f(0x191)](g[_0x449e0f(0xf5)],{'onClick':()=>_0x2e4679[_0x449e0f(0xe4)](),'children':'Start'})]});}function Q(_0x5b7110){var _0x9c1a7b=_0x1745ea;const {coordinator:_0x1e0b8b}=_0x5b7110;return l[_0x9c1a7b(0x13b)](l[_0x9c1a7b(0x165)],{'children':[l[_0x9c1a7b(0x191)](_0x9c1a7b(0x177),{'className':_0x9c1a7b(0x1b6),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g[_0x9c1a7b(0xf5)],{'onClick':()=>_0x1e0b8b[_0x9c1a7b(0x154)](),'children':'Stop\x20following'})]});}function X(_0x3d1886){var _0x5c2030=_0x1745ea;const {coordinator:_0x440d2d}=_0x3d1886;return l[_0x5c2030(0x13b)](l[_0x5c2030(0x165)],{'children':[l[_0x5c2030(0x191)](_0x5c2030(0x177),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x5c2030(0x191)](g[_0x5c2030(0xf5)],{'variant':_0x5c2030(0x15b),'onClick':()=>_0x440d2d[_0x5c2030(0x14d)](),'children':'Start\x20following'})]});}function ee(_0x51dac8){var _0x3f3442=_0x1745ea;const {coordinator:_0x4e38de}=_0x51dac8;return l[_0x3f3442(0x13b)](l[_0x3f3442(0x165)],{'children':[l[_0x3f3442(0x191)]('div',{'className':_0x3f3442(0x1b6),'children':_0x3f3442(0x123)}),l['jsx'](g['Button'],{'variant':'default','onClick':()=>_0x4e38de['stopPresenting'](),'children':_0x3f3442(0x16d)})]});}function te(){var _0x15c970=_0x1745ea;return l['jsx'](l[_0x15c970(0x165)],{'children':_0x15c970(0x145)});}var ie=Object[_0x1745ea(0xff)],ne=(_0x15d9c0,_0x286e9,_0x43c96e,_0x265560)=>{var _0x34fd8c=_0x1745ea;for(var _0xb9135a=_0x265560>0x1?void 0x0:_0x265560?ie(_0x286e9,_0x43c96e):_0x286e9,_0x3741d8=_0x15d9c0[_0x34fd8c(0xf7)]-0x1,_0x1d347c;_0x3741d8>=0x0;_0x3741d8--)(_0x1d347c=_0x15d9c0[_0x3741d8])&&(_0xb9135a=_0x1d347c(_0xb9135a)||_0xb9135a);return _0xb9135a;},L=(_0x186039,_0x2ffc8b)=>(_0x510dc9,_0x457f15)=>_0x2ffc8b(_0x510dc9,_0x457f15,_0x186039);exports[_0x1745ea(0x169)]=class extends o['Disposable']{constructor(_0x34261a,_0x59bfc5){var _0x251c9f=_0x1745ea;super(),this['_injector']=_0x34261a,this['_uiPartsService']=_0x59bfc5,this[_0x251c9f(0x1a0)]();}['_mountLiveShare'](){var _0x26833b=_0x1745ea;this[_0x26833b(0x176)](this[_0x26833b(0x125)][_0x26833b(0x149)](p['BuiltInUIPart'][_0x26833b(0x18d)],()=>p[_0x26833b(0x197)](A,this[_0x26833b(0x11b)])));}},exports[_0x1745ea(0x169)]=ne([L(0x0,o[_0x1745ea(0x10b)](o[_0x1745ea(0xf3)])),L(0x1,p[_0x1745ea(0x11d)])],exports[_0x1745ea(0x169)]);var re=Object[_0x1745ea(0xfd)],se=Object[_0x1745ea(0xff)],oe=(_0x26fd95,_0x1010c2,_0x23b0aa)=>_0x1010c2 in _0x26fd95?re(_0x26fd95,_0x1010c2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23b0aa}):_0x26fd95[_0x1010c2]=_0x23b0aa,ae=(_0x22870e,_0x527687,_0x574522,_0x46114f)=>{var _0x2ffd45=_0x1745ea;for(var _0x2d5a71=_0x46114f>0x1?void 0x0:_0x46114f?se(_0x527687,_0x574522):_0x527687,_0x498cb4=_0x22870e[_0x2ffd45(0xf7)]-0x1,_0x51fd5f;_0x498cb4>=0x0;_0x498cb4--)(_0x51fd5f=_0x22870e[_0x498cb4])&&(_0x2d5a71=_0x51fd5f(_0x2d5a71)||_0x2d5a71);return _0x2d5a71;},N=(_0x72cc8a,_0x191c7a)=>(_0x2303ee,_0x5dae67)=>_0x191c7a(_0x2303ee,_0x5dae67,_0x72cc8a),T=(_0x55e976,_0x3f6a17,_0x1a043b)=>oe(_0x55e976,typeof _0x3f6a17!=_0x1745ea(0x148)?_0x3f6a17+'':_0x3f6a17,_0x1a043b);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x1745ea(0x172)]=class extends o[_0x1745ea(0x1c3)]{constructor(_0x166798=x,_0x3068e9,_0xf0753e){var _0x188f65=_0x1745ea;super(),this[_0x188f65(0x1bc)]=_0x166798,this[_0x188f65(0x11b)]=_0x3068e9,this[_0x188f65(0x105)]=_0xf0753e;const {..._0x310a5d}=o[_0x188f65(0xf4)]({},x,this[_0x188f65(0x1bc)]);this[_0x188f65(0x105)][_0x188f65(0x175)]($,_0x310a5d);}[_0x1745ea(0xef)](){var _0x247dab=_0x1745ea;o[_0x247dab(0xe3)](this[_0x247dab(0x11b)],o[_0x247dab(0x14b)]([[O],[exports[_0x247dab(0xf8)]],[E],[exports[_0x247dab(0x169)]]],this[_0x247dab(0x1bc)][_0x247dab(0x16c)])),o[_0x247dab(0x134)](this[_0x247dab(0x11b)],[[E]]);}[_0x1745ea(0x10a)](){var _0x56fddd=_0x1745ea;o[_0x56fddd(0x134)](this[_0x56fddd(0x11b)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x1745ea(0x172)],'type',o[_0x1745ea(0x11e)][_0x1745ea(0x139)]),T(exports[_0x1745ea(0x172)],_0x1745ea(0x141),le),exports[_0x1745ea(0x172)]=ae([o[_0x1745ea(0x12f)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x1745ea(0x10b)](o[_0x1745ea(0xf3)])),N(0x2,o[_0x1745ea(0x13c)])],exports['UniverLiveSharePlugin']),exports[_0x1745ea(0x19f)]=A,exports[_0x1745ea(0x121)]=O,exports[_0x1745ea(0x156)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x2ba189=_0xfcac;(function(_0x1905d8,_0x33b72b){var _0x4f7654=_0xfcac,_0x4f2131=_0x1905d8();while(!![]){try{var _0x197022=-parseInt(_0x4f7654(0xcd))/0x1+-parseInt(_0x4f7654(0x158))/0x2*(parseInt(_0x4f7654(0xd5))/0x3)+-parseInt(_0x4f7654(0x101))/0x4+-parseInt(_0x4f7654(0x104))/0x5+parseInt(_0x4f7654(0xc2))/0x6+-parseInt(_0x4f7654(0x132))/0x7*(-parseInt(_0x4f7654(0x161))/0x8)+parseInt(_0x4f7654(0x13c))/0x9;if(_0x197022===_0x33b72b)break;else _0x4f2131['push'](_0x4f2131['shift']());}catch(_0x1cd761){_0x4f2131['push'](_0x4f2131['shift']());}}}(_0x1996,0xbe0ef));var q=Object[_0x2ba189(0xee)],z=(_0x5dd512,_0xaeb118,_0x3fae0e)=>_0xaeb118 in _0x5dd512?q(_0x5dd512,_0xaeb118,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fae0e}):_0x5dd512[_0xaeb118]=_0x3fae0e,d=(_0x2acde4,_0x498f96,_0x2b84da)=>z(_0x2acde4,typeof _0x498f96!=_0x2ba189(0x12c)?_0x498f96+'':_0x498f96,_0x2b84da);import{CollaborationSessionService as _0x1906a9,SessionStatus as _0xf4d28f,UniverCollaborationClientPlugin as _0x310d0b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3d8687,toDisposable as _0x2ba396,Inject as _0x42fbcf,IUniverInstanceService as _0xb5d125,Injector as _0x2f3b08,IConfigService as _0x5584c0,ICommandService as _0x4c13df,RxDisposable as _0x3fd1be,UniverInstanceType as _0x10b104,DisposableCollection as _0x50b462,CommandType as _0x505bfe,DependentOn as _0x190077,Plugin as _0x1d1513,merge as _0x5e17a8,registerDependencies as _0xa89634,mergeOverrideWithDependencies as _0x2fd152,touchDependencies as _0x1ebd0f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x2c4fe6,InsertSheetMutation as _0x56c568}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x160d91,SetScrollOperation as _0x39f42a}from'@univerjs/sheets-ui';import{useDependency as _0x5dc14c,useObservable as _0x1c3067,IUIPartsService as _0x5ca397,BuiltInUIPart as _0x19435c,connectInjector as _0x40f9b9}from'@univerjs/ui';import{jsx as _0x273a27,jsxs as _0x262791,Fragment as _0xfe85f2}from'react/jsx-runtime';import{Dropdown as _0x35e311,clsx as _0x348ec7,Button as _0x1ce9af}from'@univerjs/design';import{forwardRef as _0x583cf3,useRef as _0x1f0119,createElement as _0xfd8b51,useState as _0x5e6230,useEffect as _0x400d7d}from'react';import{CollaborationEvent as _0x277758,parseProtocolChangeset as _0x24cf23}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x433ede,Subject as _0x49f39a}from'rxjs';import{takeUntil as _0x55b894,throttleTime as _0x27469d}from'rxjs/operators';const Oe=_0x2ba189(0x141),T={};class L extends _0x3d8687{constructor(){var _0x3d4eb6=_0x2ba189;super(...arguments),d(this,_0x3d4eb6(0xf5),new Set()),d(this,_0x3d4eb6(0x16a),new Set());}[_0x2ba189(0xd3)](_0xe35bb7){var _0x32992b=_0x2ba189;return this[_0x32992b(0xf5)][_0x32992b(0x142)](_0xe35bb7),_0x2ba396(()=>this[_0x32992b(0xf5)][_0x32992b(0x13e)](_0xe35bb7));}[_0x2ba189(0x119)](_0x6f5a78){var _0x195fcd=_0x2ba189;return this[_0x195fcd(0x16a)][_0x195fcd(0x142)](_0x6f5a78),_0x2ba396(()=>this[_0x195fcd(0x16a)][_0x195fcd(0x13e)](_0x6f5a78));}[_0x2ba189(0x16e)](_0x35ed18){var _0x13b2f5=_0x2ba189;return this[_0x13b2f5(0xf5)][_0x13b2f5(0x14f)](_0x35ed18);}[_0x2ba189(0x108)](_0x249eb2){var _0x364412=_0x2ba189;return Array[_0x364412(0x13f)](this['_reporters'])[_0x364412(0xc5)](_0x55637f=>_0x55637f(_0x249eb2));}}var Ee=Object[_0x2ba189(0x126)],we=(_0x511fb8,_0x96fbdf,_0x1d7e4e,_0x272951)=>{for(var _0x5c6f4a=_0x272951>0x1?void 0x0:_0x272951?Ee(_0x96fbdf,_0x1d7e4e):_0x96fbdf,_0x4d8560=_0x511fb8['length']-0x1,_0x479c33;_0x4d8560>=0x0;_0x4d8560--)(_0x479c33=_0x511fb8[_0x4d8560])&&(_0x5c6f4a=_0x479c33(_0x5c6f4a)||_0x5c6f4a);return _0x5c6f4a;},Ne=(_0x52989b,_0x304db8)=>(_0x10dd47,_0x81383a)=>_0x304db8(_0x10dd47,_0x81383a,_0x52989b);let m=class extends _0x3d8687{constructor(_0x2fcf28){var _0x3e0278=_0x2ba189;super(),this[_0x3e0278(0x137)]=_0x2fcf28,this['_init']();}[_0x2ba189(0x124)](){var _0x5bdf0b=_0x2ba189;[_0x160d91['id'],_0x39f42a['id'],_0x2c4fe6['id']][_0x5bdf0b(0x154)](_0x23c674=>{var _0x3860c4=_0x5bdf0b;this[_0x3860c4(0xd6)](this[_0x3860c4(0x137)]['registerSharedOperation'](_0x23c674));});}};m=we([Ne(0x0,_0x42fbcf(L))],m);var c=function(){var _0x18874c=_0x2ba189;return c=Object[_0x18874c(0x165)]||function(_0x3318ee){var _0x2ae94c=_0x18874c;for(var _0x360050,_0x348d12=0x1,_0x267e5b=arguments[_0x2ae94c(0xe0)];_0x348d12<_0x267e5b;_0x348d12++){_0x360050=arguments[_0x348d12];for(var _0x1f042c in _0x360050)Object[_0x2ae94c(0x11f)][_0x2ae94c(0xca)][_0x2ae94c(0x15e)](_0x360050,_0x1f042c)&&(_0x3318ee[_0x1f042c]=_0x360050[_0x1f042c]);}return _0x3318ee;},c[_0x18874c(0xf3)](this,arguments);},Ce=function(_0x135f5a,_0x4a0a98){var _0x1be792=_0x2ba189,_0x3b507d={};for(var _0x69ad38 in _0x135f5a)Object[_0x1be792(0x11f)][_0x1be792(0xca)][_0x1be792(0x15e)](_0x135f5a,_0x69ad38)&&_0x4a0a98['indexOf'](_0x69ad38)<0x0&&(_0x3b507d[_0x69ad38]=_0x135f5a[_0x69ad38]);if(_0x135f5a!=null&&typeof Object[_0x1be792(0x13a)]==_0x1be792(0xf8)){for(var _0x177bd0=0x0,_0x69ad38=Object[_0x1be792(0x13a)](_0x135f5a);_0x177bd0<_0x69ad38[_0x1be792(0xe0)];_0x177bd0++)_0x4a0a98[_0x1be792(0x103)](_0x69ad38[_0x177bd0])<0x0&&Object[_0x1be792(0x11f)]['propertyIsEnumerable'][_0x1be792(0x15e)](_0x135f5a,_0x69ad38[_0x177bd0])&&(_0x3b507d[_0x69ad38[_0x177bd0]]=_0x135f5a[_0x69ad38[_0x177bd0]]);}return _0x3b507d;},W=_0x583cf3(function(_0x7552b0,_0x113a0b){var _0x1cfd40=_0x2ba189,_0x3f6d8f=_0x7552b0[_0x1cfd40(0x106)],_0x323d5e=_0x7552b0['id'],_0x26ee8d=_0x7552b0['className'],_0x6d5b6=_0x7552b0[_0x1cfd40(0x100)],_0x354399=Ce(_0x7552b0,[_0x1cfd40(0x106),'id',_0x1cfd40(0x152),_0x1cfd40(0x100)]),_0x275653=_0x1cfd40(0x12b)['concat'](_0x323d5e,'\x20')[_0x1cfd40(0x10f)](_0x26ee8d||'')[_0x1cfd40(0x105)](),_0x1492b3=_0x1f0119('_'[_0x1cfd40(0x10f)](Le()));return Y(_0x3f6d8f,''[_0x1cfd40(0x10f)](_0x323d5e),{'defIds':_0x3f6d8f[_0x1cfd40(0xda)],'idSuffix':_0x1492b3['current']},c({'ref':_0x113a0b,'className':_0x275653},_0x354399),_0x6d5b6);});function Y(_0x59615f,_0x58bc6f,_0x3063df,_0x333281,_0x21d679){var _0x197ac5=_0x2ba189;return _0xfd8b51(_0x59615f[_0x197ac5(0x16d)],c(c({'key':_0x58bc6f},De(_0x59615f,_0x3063df,_0x21d679)),_0x333281),(xe(_0x59615f,_0x3063df)[_0x197ac5(0xe9)]||[])[_0x197ac5(0xc5)](function(_0x319446,_0x102170){var _0x128779=_0x197ac5;return Y(_0x319446,''[_0x128779(0x10f)](_0x58bc6f,'-')['concat'](_0x59615f[_0x128779(0x16d)],'-')[_0x128779(0x10f)](_0x102170),_0x3063df,void 0x0,_0x21d679);}));}function De(_0x4ba5b4,_0x21625a,_0x3215b3){var _0x1d93c6=_0x2ba189,_0x23c242=c({},_0x4ba5b4[_0x1d93c6(0x123)]);_0x3215b3!=null&&_0x3215b3[_0x1d93c6(0x130)]&&_0x23c242[_0x1d93c6(0x168)]===_0x1d93c6(0x130)&&(_0x23c242[_0x1d93c6(0x168)]=_0x3215b3['colorChannel1']),_0x4ba5b4[_0x1d93c6(0x16d)]===_0x1d93c6(0xeb)&&_0x23c242['id']&&(_0x23c242['id']=_0x23c242['id']+_0x21625a[_0x1d93c6(0x11a)]),Object[_0x1d93c6(0x145)](_0x23c242)['forEach'](function(_0x56e08c){var _0xb29cce=_0x1d93c6,_0x1e5b70=_0x56e08c[0x0],_0x1d827b=_0x56e08c[0x1];_0x1e5b70===_0xb29cce(0xeb)&&typeof _0x1d827b==_0xb29cce(0xdd)&&(_0x23c242[_0x1e5b70]=_0x1d827b['replace'](/url\(#(.*)\)/,_0xb29cce(0x111)[_0xb29cce(0x10f)](_0x21625a[_0xb29cce(0x11a)],')')));});var _0x24b441=_0x21625a['defIds'];return!_0x24b441||_0x24b441[_0x1d93c6(0xe0)]===0x0||(_0x4ba5b4[_0x1d93c6(0x16d)]===_0x1d93c6(0xe8)&&_0x23c242[_0x1d93c6(0xfa)]&&(_0x23c242[_0x1d93c6(0xfa)]=_0x23c242[_0x1d93c6(0xfa)]+_0x21625a[_0x1d93c6(0x11a)]),Object[_0x1d93c6(0x145)](_0x23c242)[_0x1d93c6(0x154)](function(_0x59eaea){var _0x1fbef4=_0x1d93c6,_0x19635d=_0x59eaea[0x0],_0x4f484a=_0x59eaea[0x1];typeof _0x4f484a==_0x1fbef4(0xdd)&&(_0x23c242[_0x19635d]=_0x4f484a[_0x1fbef4(0x15c)](/url\(#(.*)\)/,_0x1fbef4(0x111)[_0x1fbef4(0x10f)](_0x21625a[_0x1fbef4(0x11a)],')')));})),_0x23c242;}function xe(_0x1cc124,_0x25b15f){var _0x3dde88=_0x2ba189,_0x21cf37,_0x178fd6=_0x25b15f[_0x3dde88(0xda)];return!_0x178fd6||_0x178fd6[_0x3dde88(0xe0)]===0x0?_0x1cc124:_0x1cc124[_0x3dde88(0x16d)]===_0x3dde88(0xc4)&&(!((_0x21cf37=_0x1cc124[_0x3dde88(0xe9)])===null||_0x21cf37===void 0x0)&&_0x21cf37[_0x3dde88(0xe0)])?c(c({},_0x1cc124),{'children':_0x1cc124[_0x3dde88(0xe9)][_0x3dde88(0xc5)](function(_0x27e532){var _0x10a542=_0x3dde88;return typeof _0x27e532['attrs']['id']==_0x10a542(0xdd)&&_0x178fd6&&_0x178fd6['includes'](_0x27e532[_0x10a542(0x123)]['id'])?c(c({},_0x27e532),{'attrs':c(c({},_0x27e532['attrs']),{'id':_0x27e532[_0x10a542(0x123)]['id']+_0x25b15f[_0x10a542(0x11a)]})}):_0x27e532;})}):_0x1cc124;}function Le(){var _0x3ee525=_0x2ba189;return Math[_0x3ee525(0x11c)]()[_0x3ee525(0x170)](0x24)[_0x3ee525(0x135)](0x2,0x8);}W[_0x2ba189(0xc1)]='UniverIcon';var ye={'tag':_0x2ba189(0x169),'attrs':{'xmlns':_0x2ba189(0xe6),'fill':_0x2ba189(0x11e),'viewBox':_0x2ba189(0x10c),'width':_0x2ba189(0x12d),'height':_0x2ba189(0x12d)},'children':[{'tag':_0x2ba189(0x15d),'attrs':{'fill':_0x2ba189(0x167),'d':_0x2ba189(0x117)}},{'tag':'path','attrs':{'fill':_0x2ba189(0x167),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x583cf3(function(_0xd445ed,_0x16a099){var _0x3621dd=_0x2ba189;return _0xfd8b51(W,Object[_0x3621dd(0x165)]({},_0xd445ed,{'id':'live-share-icon','ref':_0x16a099,'icon':ye}));});B[_0x2ba189(0xc1)]='LiveShareIcon';var Re=Object[_0x2ba189(0x126)],Z=(_0x2b4632,_0x7ff1c4,_0x3045e1,_0x385943)=>{for(var _0xd29a4a=_0x385943>0x1?void 0x0:_0x385943?Re(_0x7ff1c4,_0x3045e1):_0x7ff1c4,_0x4aee79=_0x2b4632['length']-0x1,_0x41ac39;_0x4aee79>=0x0;_0x4aee79--)(_0x41ac39=_0x2b4632[_0x4aee79])&&(_0xd29a4a=_0x41ac39(_0xd29a4a)||_0xd29a4a);return _0xd29a4a;},f=(_0x59ae78,_0x546496)=>(_0x2358ac,_0x430c52)=>_0x546496(_0x2358ac,_0x430c52,_0x59ae78);let I=class extends _0x3fd1be{constructor(_0x21e8d0,_0x4ca8eb,_0x341af1){var _0x3d2e96=_0x2ba189;super(),d(this,_0x3d2e96(0xf9),new Map()),(this[_0x3d2e96(0x164)]=_0x21e8d0,this['_injector']=_0x4ca8eb,this[_0x3d2e96(0x15b)]=_0x341af1,this[_0x3d2e96(0x124)]());}async['getLiveShareCoordinator'](_0x3b2b8c){var _0x9ba75e=_0x2ba189;return this[_0x9ba75e(0xf9)][_0x9ba75e(0x14f)](_0x3b2b8c)||await this['_startLiveShareCoordinator'](_0x3b2b8c),this['_entities'][_0x9ba75e(0x15f)](_0x3b2b8c);}[_0x2ba189(0x124)](){var _0x892f87=_0x2ba189;this[_0x892f87(0x164)][_0x892f87(0x129)](_0x10b104[_0x892f87(0xd2)])['pipe'](_0x55b894(this['dispose$']))[_0x892f87(0x116)](async _0x524419=>{var _0x119959=_0x892f87;const _0x25c57b=_0x524419[_0x119959(0x14a)]();this[_0x119959(0xf9)][_0x119959(0x14f)](_0x25c57b)||this[_0x119959(0x122)](_0x25c57b);}),this[_0x892f87(0x164)][_0x892f87(0xf2)](_0x10b104['UNIVER_SHEET'])[_0x892f87(0x110)](_0x55b894(this[_0x892f87(0xe5)]))[_0x892f87(0x116)](_0x2d023c=>{var _0x1a3bf0=_0x892f87;const _0x273e04=_0x2d023c[_0x1a3bf0(0x14a)](),_0x240e76=this[_0x1a3bf0(0xf9)][_0x1a3bf0(0x15f)](_0x273e04);_0x240e76==null||_0x240e76['dispose']();});}async[_0x2ba189(0x122)](_0x50aa5e){var _0x1f8771=_0x2ba189;const _0x2429fc=await this[_0x1f8771(0x15b)][_0x1f8771(0xc8)](_0x50aa5e),_0x4469aa=this['_injector']['createInstance'](C,_0x50aa5e,_0x2429fc);return _0x4469aa[_0x1f8771(0xcb)](),this[_0x1f8771(0xf9)][_0x1f8771(0x147)](_0x50aa5e,_0x4469aa),_0x4469aa;}};I=Z([f(0x0,_0xb5d125),f(0x1,_0x42fbcf(_0x2f3b08)),f(0x2,_0x42fbcf(_0x1906a9))],I);function _0xfcac(_0xee6ad5,_0x4b4728){var _0x1996e9=_0x1996();return _0xfcac=function(_0xfcacc4,_0x45bd97){_0xfcacc4=_0xfcacc4-0xc1;var _0x15f217=_0x1996e9[_0xfcacc4];return _0x15f217;},_0xfcac(_0xee6ad5,_0x4b4728);}var h=(_0x17b5d7=>(_0x17b5d7[_0x2ba189(0xc3)]='offline',_0x17b5d7[_0x2ba189(0xdc)]=_0x2ba189(0x15a),_0x17b5d7['FOLLOWING']=_0x2ba189(0xea),_0x17b5d7[_0x2ba189(0x10e)]=_0x2ba189(0x14e),_0x17b5d7['PRESENTING']=_0x2ba189(0x13b),_0x17b5d7))(h||{});const Pe=_0x2ba189(0x16c),Ae=0xc8;let C=class extends _0x3fd1be{constructor(_0x1e7d7e,_0x5c3db9,_0x98429b,_0x4007f2,_0xab35ed){var _0x323908=_0x2ba189;super(),d(this,_0x323908(0x136),new _0x433ede(_0x323908(0x15a))),d(this,_0x323908(0xed),this['_status$'][_0x323908(0xcc)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x323908(0x140),null),(this[_0x323908(0xe1)]=_0x1e7d7e,this['_collabSession']=_0x5c3db9,this[_0x323908(0x16f)]=_0x98429b,this[_0x323908(0x137)]=_0x4007f2,this[_0x323908(0x143)]=_0xab35ed);}get['_status'](){var _0x2039fb=_0x2ba189;return this[_0x2039fb(0x136)]['getValue']();}['dispose'](){var _0xfb5dd4=_0x2ba189,_0x1bbaf1;(_0x1bbaf1=this['_commandDisposable'])==null||_0x1bbaf1[_0xfb5dd4(0xfd)](),this[_0xfb5dd4(0x136)][_0xfb5dd4(0x112)](_0xfb5dd4(0x15a)),this[_0xfb5dd4(0x136)][_0xfb5dd4(0x13d)]();}[_0x2ba189(0xcb)](){var _0x2c1af6=_0x2ba189;this[_0x2c1af6(0x124)]||(this[_0x2c1af6(0x124)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0x55b894(this[_0x2c1af6(0xe5)]))[_0x2c1af6(0x116)](_0x2309ab=>{var _0xb798b=_0x2c1af6;switch(_0x2309ab){case _0xf4d28f['OFFLINE']:this[_0xb798b(0x144)]();break;case _0xf4d28f['ONLINE']:this[_0xb798b(0x159)]();break;}}),this[_0x2c1af6(0xd9)][_0x2c1af6(0xd8)]['pipe'](_0x55b894(this[_0x2c1af6(0xe5)]))[_0x2c1af6(0x116)](_0x3b71ce=>{var _0x107beb=_0x2c1af6;const {eventID:_0x3716b4}=_0x3b71ce;switch(_0x3716b4){case _0x277758[_0x107beb(0x131)]:this[_0x107beb(0x163)](_0x3b71ce);break;case _0x277758[_0x107beb(0xfe)]:this[_0x107beb(0x134)](_0x3b71ce);break;case _0x277758[_0x107beb(0x16b)]:this[_0x107beb(0xd4)]();break;case _0x277758[_0x107beb(0x133)]:this[_0x107beb(0xde)](_0x3b71ce);break;}}));}[_0x2ba189(0x139)](){var _0x26d84e=_0x2ba189;this[_0x26d84e(0xd9)][_0x26d84e(0x115)]({'eventID':_0x277758[_0x26d84e(0xfc)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x26d84e(0xe1)]);}[_0x2ba189(0x156)](){var _0x50abdb=_0x2ba189;this[_0x50abdb(0xcf)]===_0x50abdb(0x13b)&&(this['_status$'][_0x50abdb(0x112)](_0x50abdb(0x15a)),this[_0x50abdb(0xd9)][_0x50abdb(0x115)]({'eventID':_0x277758['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x50abdb(0xe1)]));}[_0x2ba189(0x150)](){var _0x3736f1=_0x2ba189;this[_0x3736f1(0xcf)]===_0x3736f1(0x14e)&&(this[_0x3736f1(0x136)]['next'](_0x3736f1(0xea)),this[_0x3736f1(0xe3)]());}[_0x2ba189(0xd7)](){var _0x49d4d9=_0x2ba189;this[_0x49d4d9(0xcf)]===_0x49d4d9(0xea)&&this[_0x49d4d9(0x153)]();}['_handleNewHost'](_0x58cfc1){var _0x2d4211=_0x2ba189;const {presenter:_0x1e9af8}=_0x58cfc1[_0x2d4211(0x157)],_0x2c0d9d=this[_0x2d4211(0xd9)][_0x2d4211(0xf6)]();this[_0x2d4211(0x140)]=_0x1e9af8,_0x1e9af8===_0x2c0d9d?(this[_0x2d4211(0x153)](),this['_startPresenting']()):this[_0x2d4211(0xcf)]!=='not-following'&&(this['_stopPresenting'](),this[_0x2d4211(0xe3)]());}[_0x2ba189(0xec)](){var _0x4bc6e2=_0x2ba189;const _0x44375a={'eventID':_0x277758['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x4bc6e2(0x115)](_0x44375a,this[_0x4bc6e2(0xe1)]);}[_0x2ba189(0xd4)](){var _0x163a3b=_0x2ba189;this[_0x163a3b(0x140)]=null,this[_0x163a3b(0xcf)]!==_0x163a3b(0x13b)&&this['_beIdle']();}[_0x2ba189(0xde)](_0x720019){var _0x531ca8=_0x2ba189;if(this[_0x531ca8(0xcf)]===_0x531ca8(0xea)&&this[_0x531ca8(0x140)]===_0x720019[_0x531ca8(0x157)]['memberID']){const _0x329c7a=_0x24cf23(_0x720019['data'])[_0x531ca8(0x127)][_0x531ca8(0x138)]()[_0x531ca8(0x166)](_0xf269a9=>_0xf269a9['id']===_0x56c568['id']);if(_0x329c7a){const _0x120039=_0x329c7a[_0x531ca8(0x109)][_0x531ca8(0x121)],_0x279837=_0x329c7a[_0x531ca8(0x109)]['sheet']['id'];setTimeout(()=>{var _0x2aebe1=_0x531ca8;this[_0x2aebe1(0x143)][_0x2aebe1(0xf4)](_0x2c4fe6['id'],{'unitId':_0x120039,'subUnitId':_0x279837},{'fromCollab':!0x0});});}}}[_0x2ba189(0xf1)](){var _0x6d5684=_0x2ba189;this[_0x6d5684(0x136)][_0x6d5684(0x112)](_0x6d5684(0x13b));const _0x1ee16a=new Map(),_0xe046f5=this[_0x6d5684(0xdf)]=new _0x50b462();_0xe046f5[_0x6d5684(0x142)](_0x2ba396(()=>{_0x1ee16a['forEach'](_0x40489a=>_0x40489a['complete']()),_0x1ee16a['clear']();})),_0xe046f5['add'](this[_0x6d5684(0x143)][_0x6d5684(0x146)](_0x1f3493=>{var _0x22be56=_0x6d5684,_0x5de6fc;if(_0x1f3493[_0x22be56(0x151)]!==_0x505bfe['OPERATION']||!this['_liveShareService'][_0x22be56(0x16e)](_0x1f3493['id']))return;const {id:_0x163c40}=_0x1f3493;let _0x5f0b0d;_0x1ee16a['has'](_0x163c40)?_0x5f0b0d=_0x1ee16a['get'](_0x163c40):(_0x5f0b0d=new _0x49f39a(),_0x1ee16a[_0x22be56(0x147)](_0x163c40,_0x5f0b0d),_0x5f0b0d[_0x22be56(0x110)](_0x27469d((_0x5de6fc=this[_0x22be56(0x16f)][_0x22be56(0x102)](Pe))!=null?_0x5de6fc:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x22be56(0x116)](_0x123fe5=>{var _0x33af89=_0x22be56;this[_0x33af89(0xd9)]['send']({'eventID':_0x277758[_0x33af89(0xfe)],'data':{'unitID':this[_0x33af89(0xe1)],'operations':{[_0x123fe5['id']]:{'id':_0x123fe5['id'],'params':JSON[_0x33af89(0x14b)](_0x123fe5[_0x33af89(0x109)])}}}},this[_0x33af89(0xe1)]);})),_0x5f0b0d[_0x22be56(0x112)](_0x1f3493);})),this[_0x6d5684(0x137)][_0x6d5684(0x108)](this[_0x6d5684(0xe1)])[_0x6d5684(0x154)](_0x32e783=>this['_collabSession'][_0x6d5684(0x115)]({'eventID':_0x277758[_0x6d5684(0xfe)],'data':{'unitID':this[_0x6d5684(0xe1)],'operations':{[_0x32e783['id']]:{'id':_0x32e783['id'],'params':JSON['stringify'](_0x32e783[_0x6d5684(0x109)])}}}},this[_0x6d5684(0xe1)]));}[_0x2ba189(0xc9)](){var _0x2ded01=_0x2ba189,_0x4bdd29;this[_0x2ded01(0x136)][_0x2ded01(0x112)](_0x2ded01(0x15a)),(_0x4bdd29=this[_0x2ded01(0xdf)])==null||_0x4bdd29['dispose'](),this['_commandDisposable']=null;}[_0x2ba189(0xe3)](){var _0x25cfda=_0x2ba189,_0x217fa3;(_0x217fa3=this['_commandDisposable'])==null||_0x217fa3[_0x25cfda(0xfd)](),this[_0x25cfda(0x136)]['next']('following');}[_0x2ba189(0xe7)](){var _0x2eab9d=_0x2ba189,_0xca5737;this[_0x2eab9d(0x136)][_0x2eab9d(0x112)](_0x2eab9d(0x15a)),(_0xca5737=this[_0x2eab9d(0xdf)])==null||_0xca5737[_0x2eab9d(0xfd)](),this[_0x2eab9d(0xdf)]=null;}['_stopFollowing'](){var _0x6d117=_0x2ba189,_0x32d8ae;this[_0x6d117(0x136)][_0x6d117(0x112)](_0x6d117(0x14e)),(_0x32d8ae=this[_0x6d117(0xdf)])==null||_0x32d8ae[_0x6d117(0xfd)]();}[_0x2ba189(0x134)](_0x56761f){var _0xcf0d90=_0x2ba189;if([_0xcf0d90(0x13b),_0xcf0d90(0x14e),_0xcf0d90(0x155)]['includes'](this[_0xcf0d90(0xcf)])||!_0x56761f[_0xcf0d90(0x157)]['presenter']||_0x56761f[_0xcf0d90(0x157)][_0xcf0d90(0xef)]===this[_0xcf0d90(0xd9)][_0xcf0d90(0xf6)]())return;this[_0xcf0d90(0xcf)]===_0xcf0d90(0x15a)&&this[_0xcf0d90(0xe3)]();const _0x18df67=_0x56761f[_0xcf0d90(0x157)][_0xcf0d90(0x12f)];Object['values'](_0x18df67)[_0xcf0d90(0x154)](_0x1ec1eb=>{var _0x5592ae=_0xcf0d90;this['_commandService'][_0x5592ae(0xf4)](_0x1ec1eb['id'],_0x1ec1eb[_0x5592ae(0x109)]?JSON['parse'](_0x1ec1eb[_0x5592ae(0x109)]):null,{'fromCollab':!0x0});});}[_0x2ba189(0x144)](){var _0x4aee44=_0x2ba189,_0x1a1532;this[_0x4aee44(0x136)][_0x4aee44(0x112)](_0x4aee44(0x155)),(_0x1a1532=this[_0x4aee44(0xdf)])==null||_0x1a1532['dispose']();}[_0x2ba189(0x159)](){var _0x30f98e=_0x2ba189;this[_0x30f98e(0x136)]['next'](_0x30f98e(0x15a)),this[_0x30f98e(0xec)]();}};C=Z([f(0x2,_0x5584c0),f(0x3,_0x42fbcf(L)),f(0x4,_0x4c13df)],C);function Te(){var _0x31d124=_0x2ba189;const _0x11a319=_0x5dc14c(I),_0x151ae5=_0x5dc14c(_0xb5d125),_0x5e6df8=_0x1c3067(()=>_0x151ae5['getCurrentTypeOfUnit$'](_0x10b104[_0x31d124(0xd2)]),void 0x0,!0x1,[]),[_0x313bbc,_0x4e0145]=_0x5e6230(null),[_0xca4d32,_0x2494a0]=_0x5e6230(h['IDLE']),_0x4475d6=_0x1f0119(null);return _0x400d7d(()=>(_0x5e6df8&&_0x11a319[_0x31d124(0x162)](_0x5e6df8[_0x31d124(0x14a)]())[_0x31d124(0xc7)](_0x4f6c49=>{var _0x131b75=_0x31d124;_0x4e0145(_0x4f6c49),_0x4475d6['current']=_0x4f6c49[_0x131b75(0xed)][_0x131b75(0x116)](_0x348901=>{_0x2494a0(_0x348901);});}),()=>{var _0x55fa8c=_0x31d124,_0x5605c3;(_0x5605c3=_0x4475d6[_0x55fa8c(0xfb)])==null||_0x5605c3[_0x55fa8c(0x118)](),_0x4475d6[_0x55fa8c(0xfb)]=null;}),[_0x5e6df8,_0x11a319]),_0x313bbc?_0x273a27(_0x35e311,{'align':'end','disabled':_0xca4d32===h[_0x31d124(0xc3)],'className':_0x31d124(0x148),'overlay':_0x273a27($e,{'status':_0xca4d32,'coordinator':_0x313bbc}),'children':_0x273a27(_0x31d124(0xd1),{'className':_0x348ec7(_0x31d124(0xe4),{'univer-cursor-not-allowed':_0xca4d32===h[_0x31d124(0xc3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xca4d32!==h[_0x31d124(0xc3)]}),'type':_0x31d124(0xd1),'children':_0x273a27(B,{'className':_0x31d124(0xdb)})})}):null;}function $e(_0x508a99){var _0x3c2893=_0x2ba189;const {status:_0x1d613b,coordinator:_0x5af459}=_0x508a99;switch(_0x1d613b){case h['IDLE']:return _0x273a27(Fe,{'coordinator':_0x5af459});case h[_0x3c2893(0xf7)]:return _0x273a27(He,{'coordinator':_0x5af459});case h[_0x3c2893(0x10e)]:return _0x273a27(je,{'coordinator':_0x5af459});case h['OFFLINE']:return _0x273a27(Ve,{});case h[_0x3c2893(0x114)]:return _0x273a27(Ue,{'coordinator':_0x5af459});default:return null;}}function Fe(_0x7a5b8d){var _0x176b14=_0x2ba189;const {coordinator:_0x347c1e}=_0x7a5b8d;return _0x262791(_0xfe85f2,{'children':[_0x273a27(_0x176b14(0xff),{'className':_0x176b14(0x120),'children':_0x176b14(0x11b)}),_0x273a27(_0x1ce9af,{'onClick':()=>_0x347c1e[_0x176b14(0x139)](),'children':_0x176b14(0x107)})]});}function He(_0x5e81c0){var _0x4cb111=_0x2ba189;const {coordinator:_0x4bf788}=_0x5e81c0;return _0x262791(_0xfe85f2,{'children':[_0x273a27(_0x4cb111(0xff),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x273a27(_0x1ce9af,{'onClick':()=>_0x4bf788[_0x4cb111(0xd7)](),'children':'Stop\x20following'})]});}function je(_0x200f77){var _0x4b6ed7=_0x2ba189;const {coordinator:_0x8e509b}=_0x200f77;return _0x262791(_0xfe85f2,{'children':[_0x273a27(_0x4b6ed7(0xff),{'className':_0x4b6ed7(0x120),'children':_0x4b6ed7(0x12a)}),_0x273a27(_0x1ce9af,{'variant':_0x4b6ed7(0x113),'onClick':()=>_0x8e509b[_0x4b6ed7(0x150)](),'children':_0x4b6ed7(0x160)})]});}function Ue(_0x43c43e){var _0x5dbb15=_0x2ba189;const {coordinator:_0x586691}=_0x43c43e;return _0x262791(_0xfe85f2,{'children':[_0x273a27('div',{'className':_0x5dbb15(0x120),'children':_0x5dbb15(0x10b)}),_0x273a27(_0x1ce9af,{'variant':_0x5dbb15(0xe2),'onClick':()=>_0x586691[_0x5dbb15(0x156)](),'children':_0x5dbb15(0xf0)})]});}function _0x1996(){var _0x3d812f=['stopFollowing','event$','_collabSession','defIds','univer-size-4','IDLE','string','_handleNewChangeSets','_commandDisposable','length','_unitID','default','_startFollowing','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose$','http://www.w3.org/2000/svg','_beIdle','use','children','following','mask','_fetchOperations','status$','defineProperty','presenter','Stop\x20presenting','_startPresenting','getTypeOfUnitDisposed$','apply','executeCommand','_sharedOperations','getMemberID','FOLLOWING','function','_entities','xlink:href','current','LIVESHARE_REQUEST_HOST','dispose','LIVESHARE_OPERATION','div','extend','3912392CtBFDD','getConfig','indexOf','5180010sUMDiP','trim','icon','Start','getInitialStates','params','_mountLiveShare','You\x27re\x20presenting\x20the\x20document','0\x200\x2017\x2017','_config','NOT_FOLLOWING','concat','pipe','url(#$1','next','text','PRESENTING','send','subscribe','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','unsubscribe','registerInitialStateReporter','idSuffix','Present\x20this\x20document','random','HEADER_MENU','none','prototype','univer-mb-3\x20univer-w-full\x20univer-text-sm','unitId','_startLiveShareCoordinator','attrs','_init','registerComponent','getOwnPropertyDescriptor','mutations','pluginName','getTypeOfUnitAdded$','You\x27re\x20not\x20following\x20the\x20presenter','univerjs-icon\x20univerjs-icon-','symbol','1em','You\x27are\x20offline.','operations','colorChannel1','LIVESHARE_NEW_HOST','7ihoMCG','NEW_CHANGESETS','_handleOperation','substring','_status$','_liveShareService','reverse','tryStartPresenting','getOwnPropertySymbols','presenting','41808780LOyfwR','complete','delete','from','_presenter','live-share.config','add','_commandService','_handleOffline','entries','onCommandExecuted','set','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_uiPartsService','getUnitId','stringify','override','onRendered','not-following','has','startFollowing','type','className','_stopFollowing','forEach','offline','stopPresenting','data','4RgcWhm','_handleOnline','idle','_collabSessionService','replace','path','call','get','Start\x20following','1449576RosJjT','getLiveShareCoordinator','_handleNewHost','_univerInstanceService','assign','find','currentColor','fill','svg','_reporters','LIVESHARE_TERMINATE','SAME_OPERATION_SHARE_INTERVAL','tag','shouldShareOperation','_configService','toString','displayName','549456TVZtSq','OFFLINE','defs','map','_injector','then','requireSession','_stopPresenting','hasOwnProperty','init','asObservable','1306526KZiTME','UNIVER_UNKNOWN','_status','onStarting','button','UNIVER_SHEET','registerSharedOperation','_handleTerminate','1228632kkWDWF','disposeWithMe'];_0x1996=function(){return _0x3d812f;};return _0x1996();}function Ve(){var _0x57abed=_0x2ba189;return _0x273a27(_0xfe85f2,{'children':_0x57abed(0x12e)});}var Me=Object[_0x2ba189(0x126)],ke=(_0x1c50dd,_0x12638b,_0xb8977f,_0x189798)=>{var _0x3e410f=_0x2ba189;for(var _0x1207e1=_0x189798>0x1?void 0x0:_0x189798?Me(_0x12638b,_0xb8977f):_0x12638b,_0x3facd6=_0x1c50dd[_0x3e410f(0xe0)]-0x1,_0x462a70;_0x3facd6>=0x0;_0x3facd6--)(_0x462a70=_0x1c50dd[_0x3facd6])&&(_0x1207e1=_0x462a70(_0x1207e1)||_0x1207e1);return _0x1207e1;},$=(_0x1ea2c0,_0x9ecfde)=>(_0x3f008e,_0x2fa15f)=>_0x9ecfde(_0x3f008e,_0x2fa15f,_0x1ea2c0);let b=class extends _0x3d8687{constructor(_0x1aa4c5,_0x3384c){var _0x3aa753=_0x2ba189;super(),this['_injector']=_0x1aa4c5,this[_0x3aa753(0x149)]=_0x3384c,this[_0x3aa753(0x10a)]();}[_0x2ba189(0x10a)](){var _0x85206b=_0x2ba189;this['disposeWithMe'](this['_uiPartsService'][_0x85206b(0x125)](_0x19435c[_0x85206b(0x11d)],()=>_0x40f9b9(Te,this['_injector'])));}};b=ke([$(0x0,_0x42fbcf(_0x2f3b08)),$(0x1,_0x5ca397)],b);var Ge=Object[_0x2ba189(0xee)],We=Object[_0x2ba189(0x126)],Ye=(_0x40af8b,_0x3ba87d,_0x586392)=>_0x3ba87d in _0x40af8b?Ge(_0x40af8b,_0x3ba87d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x586392}):_0x40af8b[_0x3ba87d]=_0x586392,Be=(_0x4b7043,_0x254ac8,_0x3bc2b4,_0x4c46e4)=>{for(var _0x536b40=_0x4c46e4>0x1?void 0x0:_0x4c46e4?We(_0x254ac8,_0x3bc2b4):_0x254ac8,_0x52d610=_0x4b7043['length']-0x1,_0x4b00fa;_0x52d610>=0x0;_0x52d610--)(_0x4b00fa=_0x4b7043[_0x52d610])&&(_0x536b40=_0x4b00fa(_0x536b40)||_0x536b40);return _0x536b40;},F=(_0x270c53,_0x1c793c)=>(_0x4a37f7,_0x1f1064)=>_0x1c793c(_0x4a37f7,_0x1f1064,_0x270c53),J=(_0x5261e7,_0x21390b,_0x3c053b)=>Ye(_0x5261e7,typeof _0x21390b!=_0x2ba189(0x12c)?_0x21390b+'':_0x21390b,_0x3c053b);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1d1513{constructor(_0x497e1a=T,_0x51fba6,_0x5aa79f){var _0xb7c24c=_0x2ba189;super(),this[_0xb7c24c(0x10d)]=_0x497e1a,this[_0xb7c24c(0xc6)]=_0x51fba6,this[_0xb7c24c(0x16f)]=_0x5aa79f;const {..._0x49ec8f}=_0x5e17a8({},T,this['_config']);this[_0xb7c24c(0x16f)]['setConfig'](Oe,_0x49ec8f);}[_0x2ba189(0xd0)](){var _0x2db7d3=_0x2ba189;_0xa89634(this[_0x2db7d3(0xc6)],_0x2fd152([[L],[I],[m],[b]],this[_0x2db7d3(0x10d)][_0x2db7d3(0x14c)])),_0x1ebd0f(this[_0x2db7d3(0xc6)],[[m]]);}[_0x2ba189(0x14d)](){_0x1ebd0f(this['_injector'],[[b]]);}};J(O,_0x2ba189(0x151),_0x10b104[_0x2ba189(0xce)]),J(O,_0x2ba189(0x128),Ze),O=Be([_0x190077(_0x310d0b),F(0x1,_0x42fbcf(_0x2f3b08)),F(0x2,_0x5584c0)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x3f6484=_0x1eb5;(function(_0xad7a7d,_0x7abc13){var _0x2887f0=_0x1eb5,_0xcae380=_0xad7a7d();while(!![]){try{var _0x3ec156=-parseInt(_0x2887f0(0x1ff))/0x1+parseInt(_0x2887f0(0x1b7))/0x2*(-parseInt(_0x2887f0(0x1cf))/0x3)+-parseInt(_0x2887f0(0x1c3))/0x4+parseInt(_0x2887f0(0x1b9))/0x5+parseInt(_0x2887f0(0x19d))/0x6+parseInt(_0x2887f0(0x22f))/0x7*(parseInt(_0x2887f0(0x1d1))/0x8)+parseInt(_0x2887f0(0x1b2))/0x9*(parseInt(_0x2887f0(0x21d))/0xa);if(_0x3ec156===_0x7abc13)break;else _0xcae380['push'](_0xcae380['shift']());}catch(_0x374bbe){_0xcae380['push'](_0xcae380['shift']());}}}(_0x7f9e,0x73518));var q=Object[_0x3f6484(0x198)],z=(_0x39865d,_0x12de5c,_0x597d26)=>_0x12de5c in _0x39865d?q(_0x39865d,_0x12de5c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x597d26}):_0x39865d[_0x12de5c]=_0x597d26,d=(_0x41cc04,_0x54f721,_0x5d0032)=>z(_0x41cc04,typeof _0x54f721!=_0x3f6484(0x1fa)?_0x54f721+'':_0x54f721,_0x5d0032);import{CollaborationSessionService as _0x44272f,SessionStatus as _0x3b378c,UniverCollaborationClientPlugin as _0x589148}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1c6341,toDisposable as _0x5d9009,Inject as _0xb0930d,IUniverInstanceService as _0x42e888,Injector as _0xd563d9,IConfigService as _0x12e4b9,ICommandService as _0x49d015,RxDisposable as _0x395f61,UniverInstanceType as _0x4d54d3,DisposableCollection as _0x3dec07,CommandType as _0x174ae4,DependentOn as _0x311632,Plugin as _0x1608cc,merge as _0x17d777,registerDependencies as _0x2e569d,mergeOverrideWithDependencies as _0x4e9805,touchDependencies as _0x5a07de}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x5290c1,InsertSheetMutation as _0x4ed00e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x20b3ac,SetScrollOperation as _0x56c318}from'@univerjs/sheets-ui';import{useDependency as _0xa5510d,useObservable as _0x2d9124,IUIPartsService as _0x66463e,BuiltInUIPart as _0x40a2e7,connectInjector as _0x326657}from'@univerjs/ui';import{jsx as _0x43ea3b,jsxs as _0x3a2126,Fragment as _0x4fe31c}from'react/jsx-runtime';import{Dropdown as _0x1da88c,clsx as _0x5c6958,Button as _0x5149cf}from'@univerjs/design';import{forwardRef as _0x2fbe4c,useRef as _0x2d77f1,createElement as _0x540073,useState as _0x54cd30,useEffect as _0x27b4cf}from'react';import{CollaborationEvent as _0x3e33df,parseProtocolChangeset as _0x20f59d}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3ea211,Subject as _0x3cce0e}from'rxjs';import{takeUntil as _0x8cada7,throttleTime as _0x1b3bef}from'rxjs/operators';const Oe=_0x3f6484(0x23a),T={};class L extends _0x1c6341{constructor(){var _0x34e1a1=_0x3f6484;super(...arguments),d(this,_0x34e1a1(0x1f0),new Set()),d(this,_0x34e1a1(0x216),new Set());}[_0x3f6484(0x19a)](_0xf1c070){var _0x37d44a=_0x3f6484;return this['_sharedOperations'][_0x37d44a(0x1da)](_0xf1c070),_0x5d9009(()=>this[_0x37d44a(0x1f0)][_0x37d44a(0x1a2)](_0xf1c070));}[_0x3f6484(0x1fc)](_0x46c8bd){var _0x1b4fe6=_0x3f6484;return this['_reporters'][_0x1b4fe6(0x1da)](_0x46c8bd),_0x5d9009(()=>this[_0x1b4fe6(0x216)][_0x1b4fe6(0x1a2)](_0x46c8bd));}[_0x3f6484(0x1d2)](_0x560899){var _0x69f3fa=_0x3f6484;return this['_sharedOperations'][_0x69f3fa(0x1f8)](_0x560899);}[_0x3f6484(0x214)](_0x4b8202){var _0x3c5fcb=_0x3f6484;return Array[_0x3c5fcb(0x21a)](this[_0x3c5fcb(0x216)])[_0x3c5fcb(0x1a1)](_0x31be3c=>_0x31be3c(_0x4b8202));}}var Ee=Object[_0x3f6484(0x223)],we=(_0x14482a,_0x52c38b,_0xe2aac6,_0x3c4945)=>{var _0x2ac8fc=_0x3f6484;for(var _0x1e104d=_0x3c4945>0x1?void 0x0:_0x3c4945?Ee(_0x52c38b,_0xe2aac6):_0x52c38b,_0x210ae4=_0x14482a[_0x2ac8fc(0x232)]-0x1,_0x1423c2;_0x210ae4>=0x0;_0x210ae4--)(_0x1423c2=_0x14482a[_0x210ae4])&&(_0x1e104d=_0x1423c2(_0x1e104d)||_0x1e104d);return _0x1e104d;},Ne=(_0x5bdb69,_0x2a54fa)=>(_0x451e32,_0x522dcb)=>_0x2a54fa(_0x451e32,_0x522dcb,_0x5bdb69);let m=class extends _0x1c6341{constructor(_0x516b8a){var _0x25ca81=_0x3f6484;super(),this[_0x25ca81(0x210)]=_0x516b8a,this[_0x25ca81(0x1c1)]();}['_init'](){[_0x20b3ac['id'],_0x56c318['id'],_0x5290c1['id']]['forEach'](_0x31ab1f=>{var _0x52efaf=_0x1eb5;this[_0x52efaf(0x1df)](this[_0x52efaf(0x210)]['registerSharedOperation'](_0x31ab1f));});}};m=we([Ne(0x0,_0xb0930d(L))],m);var c=function(){var _0x5c52dd=_0x3f6484;return c=Object[_0x5c52dd(0x197)]||function(_0xfe9a91){var _0x356857=_0x5c52dd;for(var _0xb8cb0c,_0x2b933e=0x1,_0x55bcdd=arguments['length'];_0x2b933e<_0x55bcdd;_0x2b933e++){_0xb8cb0c=arguments[_0x2b933e];for(var _0x579685 in _0xb8cb0c)Object[_0x356857(0x230)][_0x356857(0x1fb)][_0x356857(0x192)](_0xb8cb0c,_0x579685)&&(_0xfe9a91[_0x579685]=_0xb8cb0c[_0x579685]);}return _0xfe9a91;},c[_0x5c52dd(0x1b0)](this,arguments);},Ce=function(_0x1a4d9e,_0x2ad66e){var _0x2bd257=_0x3f6484,_0x16c1e7={};for(var _0x5cc590 in _0x1a4d9e)Object['prototype']['hasOwnProperty'][_0x2bd257(0x192)](_0x1a4d9e,_0x5cc590)&&_0x2ad66e['indexOf'](_0x5cc590)<0x0&&(_0x16c1e7[_0x5cc590]=_0x1a4d9e[_0x5cc590]);if(_0x1a4d9e!=null&&typeof Object[_0x2bd257(0x1a0)]==_0x2bd257(0x1a5)){for(var _0x2571b4=0x0,_0x5cc590=Object[_0x2bd257(0x1a0)](_0x1a4d9e);_0x2571b4<_0x5cc590[_0x2bd257(0x232)];_0x2571b4++)_0x2ad66e[_0x2bd257(0x222)](_0x5cc590[_0x2571b4])<0x0&&Object[_0x2bd257(0x230)][_0x2bd257(0x1e6)][_0x2bd257(0x192)](_0x1a4d9e,_0x5cc590[_0x2571b4])&&(_0x16c1e7[_0x5cc590[_0x2571b4]]=_0x1a4d9e[_0x5cc590[_0x2571b4]]);}return _0x16c1e7;},W=_0x2fbe4c(function(_0x4650a6,_0x11915e){var _0x38feb2=_0x3f6484,_0xcc8b6b=_0x4650a6[_0x38feb2(0x22e)],_0x5de131=_0x4650a6['id'],_0xf9f63d=_0x4650a6[_0x38feb2(0x238)],_0x49d759=_0x4650a6[_0x38feb2(0x1c2)],_0x189f32=Ce(_0x4650a6,[_0x38feb2(0x22e),'id',_0x38feb2(0x238),_0x38feb2(0x1c2)]),_0x8a9249='univerjs-icon\x20univerjs-icon-'[_0x38feb2(0x1e3)](_0x5de131,'\x20')[_0x38feb2(0x1e3)](_0xf9f63d||'')[_0x38feb2(0x217)](),_0x32ea4c=_0x2d77f1('_'[_0x38feb2(0x1e3)](Le()));return Y(_0xcc8b6b,''[_0x38feb2(0x1e3)](_0x5de131),{'defIds':_0xcc8b6b[_0x38feb2(0x1e9)],'idSuffix':_0x32ea4c[_0x38feb2(0x1ec)]},c({'ref':_0x11915e,'className':_0x8a9249},_0x189f32),_0x49d759);});function Y(_0x13e041,_0x531d8b,_0x2fd716,_0x150bb7,_0x3de9b4){var _0x15a491=_0x3f6484;return _0x540073(_0x13e041[_0x15a491(0x21c)],c(c({'key':_0x531d8b},De(_0x13e041,_0x2fd716,_0x3de9b4)),_0x150bb7),(xe(_0x13e041,_0x2fd716)[_0x15a491(0x1bc)]||[])[_0x15a491(0x1a1)](function(_0xc2e75,_0x49b9c7){var _0x19e03d=_0x15a491;return Y(_0xc2e75,''[_0x19e03d(0x1e3)](_0x531d8b,'-')[_0x19e03d(0x1e3)](_0x13e041[_0x19e03d(0x21c)],'-')['concat'](_0x49b9c7),_0x2fd716,void 0x0,_0x3de9b4);}));}function De(_0x16ebcc,_0x75b34b,_0xcb0a9c){var _0x1f3bde=_0x3f6484,_0x6723ef=c({},_0x16ebcc[_0x1f3bde(0x1c0)]);_0xcb0a9c!=null&&_0xcb0a9c[_0x1f3bde(0x1bb)]&&_0x6723ef[_0x1f3bde(0x1e7)]===_0x1f3bde(0x1bb)&&(_0x6723ef[_0x1f3bde(0x1e7)]=_0xcb0a9c[_0x1f3bde(0x1bb)]),_0x16ebcc[_0x1f3bde(0x21c)]===_0x1f3bde(0x1db)&&_0x6723ef['id']&&(_0x6723ef['id']=_0x6723ef['id']+_0x75b34b[_0x1f3bde(0x21b)]),Object['entries'](_0x6723ef)['forEach'](function(_0x2c895a){var _0x49c895=_0x1f3bde,_0x5c9904=_0x2c895a[0x0],_0x40a37f=_0x2c895a[0x1];_0x5c9904==='mask'&&typeof _0x40a37f==_0x49c895(0x1ed)&&(_0x6723ef[_0x5c9904]=_0x40a37f[_0x49c895(0x1ea)](/url\(#(.*)\)/,_0x49c895(0x1bd)[_0x49c895(0x1e3)](_0x75b34b[_0x49c895(0x21b)],')')));});var _0x2fd371=_0x75b34b[_0x1f3bde(0x1e9)];return!_0x2fd371||_0x2fd371['length']===0x0||(_0x16ebcc[_0x1f3bde(0x21c)]===_0x1f3bde(0x1ac)&&_0x6723ef[_0x1f3bde(0x1dc)]&&(_0x6723ef[_0x1f3bde(0x1dc)]=_0x6723ef[_0x1f3bde(0x1dc)]+_0x75b34b['idSuffix']),Object[_0x1f3bde(0x239)](_0x6723ef)['forEach'](function(_0x37927e){var _0x1b7d52=_0x1f3bde,_0x4260ef=_0x37927e[0x0],_0x530e04=_0x37927e[0x1];typeof _0x530e04==_0x1b7d52(0x1ed)&&(_0x6723ef[_0x4260ef]=_0x530e04['replace'](/url\(#(.*)\)/,_0x1b7d52(0x1bd)[_0x1b7d52(0x1e3)](_0x75b34b['idSuffix'],')')));})),_0x6723ef;}function xe(_0x4af652,_0x4465eb){var _0x4fcfff=_0x3f6484,_0x5b2fd8,_0x3d2eb9=_0x4465eb[_0x4fcfff(0x1e9)];return!_0x3d2eb9||_0x3d2eb9[_0x4fcfff(0x232)]===0x0?_0x4af652:_0x4af652['tag']===_0x4fcfff(0x1a3)&&(!((_0x5b2fd8=_0x4af652['children'])===null||_0x5b2fd8===void 0x0)&&_0x5b2fd8[_0x4fcfff(0x232)])?c(c({},_0x4af652),{'children':_0x4af652['children'][_0x4fcfff(0x1a1)](function(_0x10eb05){var _0xc8f5d2=_0x4fcfff;return typeof _0x10eb05['attrs']['id']=='string'&&_0x3d2eb9&&_0x3d2eb9[_0xc8f5d2(0x1a8)](_0x10eb05[_0xc8f5d2(0x1c0)]['id'])?c(c({},_0x10eb05),{'attrs':c(c({},_0x10eb05['attrs']),{'id':_0x10eb05[_0xc8f5d2(0x1c0)]['id']+_0x4465eb[_0xc8f5d2(0x21b)]})}):_0x10eb05;})}):_0x4af652;}function Le(){var _0x5d4095=_0x3f6484;return Math[_0x5d4095(0x231)]()[_0x5d4095(0x236)](0x24)[_0x5d4095(0x201)](0x2,0x8);}W[_0x3f6484(0x203)]=_0x3f6484(0x1f7);function _0x7f9e(){var _0x3eb531=['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','getCurrentTypeOfUnit$','asObservable','requireSession','add','mask','xlink:href','getLiveShareCoordinator','OPERATION','disposeWithMe','_commandService','_handleNewChangeSets','getUnitId','concat','_presenter','sessionStatus$','propertyIsEnumerable','fill','find','defIds','replace','tryStartPresenting','current','string','pluginName','dispose','_sharedOperations','LIVESHARE_NEW_HOST','sheet','subscribe','then','presenting','currentColor','UniverIcon','has','getMemberID','symbol','hasOwnProperty','registerInitialStateReporter','_commandDisposable','_unitID','242377YmzVxA','offline','substring','You\x27re\x20presenting\x20the\x20document','displayName','_status','UNIVER_SHEET','_handleOffline','end','parse','status$','HEADER_MENU','not-following','_configService','stopPresenting','stopFollowing','event$','_liveShareService','_collabSessionService','_beIdle','_startLiveShareCoordinator','getInitialStates','Start\x20following','_reporters','trim','override','ONLINE','from','idSuffix','tag','10IGfOOw','NOT_FOLLOWING','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startFollowing','_collabSession','indexOf','getOwnPropertyDescriptor','_handleTerminate','_stopPresenting','_entities','http://www.w3.org/2000/svg','presenter','executeCommand','none','You\x27re\x20not\x20following\x20the\x20presenter','_config','next','icon','7CZhKKg','prototype','random','length','LIVESHARE_TERMINATE','NEW_CHANGESETS','0\x200\x2017\x2017','toString','_status$','className','entries','live-share.config','_startPresenting','pipe','You\x27re\x20following\x20the\x20presenter','getConfig','setConfig','complete','_injector','registerComponent','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','onStarting','FOLLOWING','call','default','set','values','Start','assign','defineProperty','forEach','registerSharedOperation','div','_handleOnline','823128IVqPmj','following','_uiPartsService','getOwnPropertySymbols','map','delete','defs','_univerInstanceService','function','idle','stringify','includes','type','text','Stop\x20presenting','use','_mountLiveShare','svg','onCommandExecuted','apply','params','6321213RJkBNu','_fetchOperations','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','univer-size-4','801804JtaDXZ','get','3310865aVKwsL','send','colorChannel1','children','url(#$1','LIVESHARE_OPERATION','evenodd','attrs','_init','extend','2420456oEYcnj','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','PRESENTING','getTypeOfUnitDisposed$','init','path','data','IDLE','_stopFollowing','LiveShareIcon','mutations','1em','3KgRTLY','startFollowing','1752152PGmLKe','shouldShareOperation','OFFLINE','live-share-icon','Stop\x20following'];_0x7f9e=function(){return _0x3eb531;};return _0x7f9e();}var ye={'tag':_0x3f6484(0x1ae),'attrs':{'xmlns':_0x3f6484(0x227),'fill':_0x3f6484(0x22a),'viewBox':_0x3f6484(0x235),'width':_0x3f6484(0x1ce),'height':_0x3f6484(0x1ce)},'children':[{'tag':_0x3f6484(0x1c8),'attrs':{'fill':_0x3f6484(0x1f6),'d':_0x3f6484(0x1d6)}},{'tag':_0x3f6484(0x1c8),'attrs':{'fill':_0x3f6484(0x1f6),'d':_0x3f6484(0x1c4),'fillRule':_0x3f6484(0x1bf),'clipRule':_0x3f6484(0x1bf)}}]},B=_0x2fbe4c(function(_0x4435b8,_0x49b74c){var _0x2cb07c=_0x3f6484;return _0x540073(W,Object[_0x2cb07c(0x197)]({},_0x4435b8,{'id':_0x2cb07c(0x1d4),'ref':_0x49b74c,'icon':ye}));});B['displayName']=_0x3f6484(0x1cc);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x3a7b9a,_0x425914,_0x4e20d1,_0x9b0c31)=>{var _0xcca0f1=_0x3f6484;for(var _0x1b158c=_0x9b0c31>0x1?void 0x0:_0x9b0c31?Re(_0x425914,_0x4e20d1):_0x425914,_0x9888e0=_0x3a7b9a[_0xcca0f1(0x232)]-0x1,_0x3495da;_0x9888e0>=0x0;_0x9888e0--)(_0x3495da=_0x3a7b9a[_0x9888e0])&&(_0x1b158c=_0x3495da(_0x1b158c)||_0x1b158c);return _0x1b158c;},f=(_0x56e26c,_0x5d4780)=>(_0x45d9d3,_0x4f8937)=>_0x5d4780(_0x45d9d3,_0x4f8937,_0x56e26c);let I=class extends _0x395f61{constructor(_0x1dc664,_0x5d4ab1,_0x3b7229){var _0x53726c=_0x3f6484;super(),d(this,_0x53726c(0x226),new Map()),(this[_0x53726c(0x1a4)]=_0x1dc664,this[_0x53726c(0x241)]=_0x5d4ab1,this[_0x53726c(0x211)]=_0x3b7229,this[_0x53726c(0x1c1)]());}async[_0x3f6484(0x1dd)](_0x452c4f){var _0x20d26f=_0x3f6484;return this['_entities'][_0x20d26f(0x1f8)](_0x452c4f)||await this[_0x20d26f(0x213)](_0x452c4f),this[_0x20d26f(0x226)][_0x20d26f(0x1b8)](_0x452c4f);}[_0x3f6484(0x1c1)](){var _0x2bc87f=_0x3f6484;this[_0x2bc87f(0x1a4)]['getTypeOfUnitAdded$'](_0x4d54d3[_0x2bc87f(0x205)])[_0x2bc87f(0x23c)](_0x8cada7(this[_0x2bc87f(0x1b4)]))[_0x2bc87f(0x1f3)](async _0x15e72b=>{var _0x15b0b6=_0x2bc87f;const _0x2212e0=_0x15e72b[_0x15b0b6(0x1e2)]();this[_0x15b0b6(0x226)][_0x15b0b6(0x1f8)](_0x2212e0)||this[_0x15b0b6(0x213)](_0x2212e0);}),this[_0x2bc87f(0x1a4)][_0x2bc87f(0x1c6)](_0x4d54d3[_0x2bc87f(0x205)])[_0x2bc87f(0x23c)](_0x8cada7(this['dispose$']))[_0x2bc87f(0x1f3)](_0x2d6ae1=>{var _0x3fd885=_0x2bc87f;const _0x2b4e67=_0x2d6ae1[_0x3fd885(0x1e2)](),_0x2668a5=this['_entities'][_0x3fd885(0x1b8)](_0x2b4e67);_0x2668a5==null||_0x2668a5[_0x3fd885(0x1ef)]();});}async[_0x3f6484(0x213)](_0x567d72){var _0x36e6cf=_0x3f6484;const _0x45f211=await this[_0x36e6cf(0x211)][_0x36e6cf(0x1d9)](_0x567d72),_0x63ab66=this[_0x36e6cf(0x241)]['createInstance'](C,_0x567d72,_0x45f211);return _0x63ab66[_0x36e6cf(0x1c7)](),this['_entities'][_0x36e6cf(0x194)](_0x567d72,_0x63ab66),_0x63ab66;}};I=Z([f(0x0,_0x42e888),f(0x1,_0xb0930d(_0xd563d9)),f(0x2,_0xb0930d(_0x44272f))],I);var h=(_0x581310=>(_0x581310['OFFLINE']=_0x3f6484(0x200),_0x581310[_0x3f6484(0x1ca)]='idle',_0x581310['FOLLOWING']=_0x3f6484(0x19e),_0x581310[_0x3f6484(0x21e)]=_0x3f6484(0x20b),_0x581310[_0x3f6484(0x1c5)]=_0x3f6484(0x1f5),_0x581310))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x395f61{constructor(_0x494d65,_0x46c792,_0x149535,_0x18250f,_0x4a8932){var _0x22ef4a=_0x3f6484;super(),d(this,_0x22ef4a(0x237),new _0x3ea211(_0x22ef4a(0x1a6))),d(this,_0x22ef4a(0x209),this[_0x22ef4a(0x237)][_0x22ef4a(0x1d8)]()),d(this,_0x22ef4a(0x1c1),!0x1),d(this,_0x22ef4a(0x1fd),null),d(this,_0x22ef4a(0x1e4),null),(this['_unitID']=_0x494d65,this['_collabSession']=_0x46c792,this['_configService']=_0x149535,this[_0x22ef4a(0x210)]=_0x18250f,this[_0x22ef4a(0x1e0)]=_0x4a8932);}get[_0x3f6484(0x204)](){var _0x2cc9fb=_0x3f6484;return this[_0x2cc9fb(0x237)]['getValue']();}[_0x3f6484(0x1ef)](){var _0x39ef2c=_0x3f6484,_0x4fe5c4;(_0x4fe5c4=this[_0x39ef2c(0x1fd)])==null||_0x4fe5c4[_0x39ef2c(0x1ef)](),this[_0x39ef2c(0x237)][_0x39ef2c(0x22d)](_0x39ef2c(0x1a6)),this[_0x39ef2c(0x237)][_0x39ef2c(0x240)]();}[_0x3f6484(0x1c7)](){var _0x18572f=_0x3f6484;this[_0x18572f(0x1c1)]||(this[_0x18572f(0x1c1)]=!0x0,this['_collabSession'][_0x18572f(0x1e5)][_0x18572f(0x23c)](_0x8cada7(this[_0x18572f(0x1b4)]))[_0x18572f(0x1f3)](_0x42ae8c=>{var _0x31b91f=_0x18572f;switch(_0x42ae8c){case _0x3b378c[_0x31b91f(0x1d3)]:this[_0x31b91f(0x206)]();break;case _0x3b378c[_0x31b91f(0x219)]:this[_0x31b91f(0x19c)]();break;}}),this[_0x18572f(0x221)][_0x18572f(0x20f)][_0x18572f(0x23c)](_0x8cada7(this[_0x18572f(0x1b4)]))[_0x18572f(0x1f3)](_0x196d01=>{var _0x3dfae5=_0x18572f;const {eventID:_0x4f894f}=_0x196d01;switch(_0x4f894f){case _0x3e33df[_0x3dfae5(0x1f1)]:this['_handleNewHost'](_0x196d01);break;case _0x3e33df[_0x3dfae5(0x1be)]:this['_handleOperation'](_0x196d01);break;case _0x3e33df[_0x3dfae5(0x233)]:this[_0x3dfae5(0x224)]();break;case _0x3e33df[_0x3dfae5(0x234)]:this[_0x3dfae5(0x1e1)](_0x196d01);break;}}));}[_0x3f6484(0x1eb)](){var _0x438b72=_0x3f6484;this[_0x438b72(0x221)][_0x438b72(0x1ba)]({'eventID':_0x3e33df['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x438b72(0x1fe)],'userID':this[_0x438b72(0x221)][_0x438b72(0x1f9)]()}},this[_0x438b72(0x1fe)]);}[_0x3f6484(0x20d)](){var _0x3e4909=_0x3f6484;this['_status']==='presenting'&&(this['_status$'][_0x3e4909(0x22d)](_0x3e4909(0x1a6)),this[_0x3e4909(0x221)]['send']({'eventID':_0x3e33df[_0x3e4909(0x233)],'data':{'unitID':this['_unitID']}},this[_0x3e4909(0x1fe)]));}[_0x3f6484(0x1d0)](){var _0x127056=_0x3f6484;this[_0x127056(0x204)]===_0x127056(0x20b)&&(this[_0x127056(0x237)][_0x127056(0x22d)](_0x127056(0x19e)),this[_0x127056(0x220)]());}[_0x3f6484(0x20e)](){var _0x1a6d1a=_0x3f6484;this[_0x1a6d1a(0x204)]===_0x1a6d1a(0x19e)&&this[_0x1a6d1a(0x1cb)]();}['_handleNewHost'](_0x5a6bda){var _0x10c723=_0x3f6484;const {presenter:_0x2a7e68}=_0x5a6bda[_0x10c723(0x1c9)],_0x4e429d=this[_0x10c723(0x221)][_0x10c723(0x1f9)]();this[_0x10c723(0x1e4)]=_0x2a7e68,_0x2a7e68===_0x4e429d?(this['_stopFollowing'](),this[_0x10c723(0x23b)]()):this[_0x10c723(0x204)]!==_0x10c723(0x20b)&&(this[_0x10c723(0x225)](),this[_0x10c723(0x220)]());}[_0x3f6484(0x1b3)](){var _0x49aa09=_0x3f6484;const _0xa41da9={'eventID':_0x3e33df['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x49aa09(0x1ba)](_0xa41da9,this[_0x49aa09(0x1fe)]);}[_0x3f6484(0x224)](){var _0x1f9165=_0x3f6484;this[_0x1f9165(0x1e4)]=null,this[_0x1f9165(0x204)]!==_0x1f9165(0x1f5)&&this[_0x1f9165(0x212)]();}['_handleNewChangeSets'](_0x461d9a){var _0x4c0f3d=_0x3f6484;if(this[_0x4c0f3d(0x204)]===_0x4c0f3d(0x19e)&&this[_0x4c0f3d(0x1e4)]===_0x461d9a[_0x4c0f3d(0x1c9)]['memberID']){const _0x4f74bf=_0x20f59d(_0x461d9a[_0x4c0f3d(0x1c9)])[_0x4c0f3d(0x1cd)]['reverse']()[_0x4c0f3d(0x1e8)](_0x193b6a=>_0x193b6a['id']===_0x4ed00e['id']);if(_0x4f74bf){const _0x276c08=_0x4f74bf[_0x4c0f3d(0x1b1)]['unitId'],_0x3ed59c=_0x4f74bf[_0x4c0f3d(0x1b1)][_0x4c0f3d(0x1f2)]['id'];setTimeout(()=>{var _0x15ee85=_0x4c0f3d;this[_0x15ee85(0x1e0)][_0x15ee85(0x229)](_0x5290c1['id'],{'unitId':_0x276c08,'subUnitId':_0x3ed59c},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3a9644=_0x3f6484;this[_0x3a9644(0x237)]['next']('presenting');const _0x1162ef=new Map(),_0x4965b0=this[_0x3a9644(0x1fd)]=new _0x3dec07();_0x4965b0[_0x3a9644(0x1da)](_0x5d9009(()=>{var _0x26301d=_0x3a9644;_0x1162ef['forEach'](_0x5dd723=>_0x5dd723[_0x26301d(0x240)]()),_0x1162ef['clear']();})),_0x4965b0[_0x3a9644(0x1da)](this[_0x3a9644(0x1e0)][_0x3a9644(0x1af)](_0x2d852f=>{var _0x58e171=_0x3a9644,_0x5beb35;if(_0x2d852f[_0x58e171(0x1a9)]!==_0x174ae4[_0x58e171(0x1de)]||!this[_0x58e171(0x210)][_0x58e171(0x1d2)](_0x2d852f['id']))return;const {id:_0x92cc89}=_0x2d852f;let _0x308529;_0x1162ef[_0x58e171(0x1f8)](_0x92cc89)?_0x308529=_0x1162ef[_0x58e171(0x1b8)](_0x92cc89):(_0x308529=new _0x3cce0e(),_0x1162ef[_0x58e171(0x194)](_0x92cc89,_0x308529),_0x308529[_0x58e171(0x23c)](_0x1b3bef((_0x5beb35=this[_0x58e171(0x20c)][_0x58e171(0x23e)](Pe))!=null?_0x5beb35:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x58e171(0x1f3)](_0x2636d0=>{var _0x445e4c=_0x58e171;this[_0x445e4c(0x221)][_0x445e4c(0x1ba)]({'eventID':_0x3e33df['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x445e4c(0x1fe)],'operations':{[_0x2636d0['id']]:{'id':_0x2636d0['id'],'params':JSON[_0x445e4c(0x1a7)](_0x2636d0[_0x445e4c(0x1b1)])}}}},this['_unitID']);})),_0x308529[_0x58e171(0x22d)](_0x2d852f);})),this[_0x3a9644(0x210)]['getInitialStates'](this['_unitID'])[_0x3a9644(0x199)](_0x466dd9=>this['_collabSession'][_0x3a9644(0x1ba)]({'eventID':_0x3e33df[_0x3a9644(0x1be)],'data':{'unitID':this['_unitID'],'operations':{[_0x466dd9['id']]:{'id':_0x466dd9['id'],'params':JSON[_0x3a9644(0x1a7)](_0x466dd9[_0x3a9644(0x1b1)])}}}},this[_0x3a9644(0x1fe)]));}[_0x3f6484(0x225)](){var _0x46b4bc=_0x3f6484,_0x9ed68b;this['_status$'][_0x46b4bc(0x22d)](_0x46b4bc(0x1a6)),(_0x9ed68b=this[_0x46b4bc(0x1fd)])==null||_0x9ed68b[_0x46b4bc(0x1ef)](),this[_0x46b4bc(0x1fd)]=null;}[_0x3f6484(0x220)](){var _0x39c7dd=_0x3f6484,_0x59b942;(_0x59b942=this['_commandDisposable'])==null||_0x59b942['dispose'](),this['_status$']['next'](_0x39c7dd(0x19e));}['_beIdle'](){var _0x45e4e2=_0x3f6484,_0x9bee58;this[_0x45e4e2(0x237)][_0x45e4e2(0x22d)]('idle'),(_0x9bee58=this[_0x45e4e2(0x1fd)])==null||_0x9bee58[_0x45e4e2(0x1ef)](),this[_0x45e4e2(0x1fd)]=null;}['_stopFollowing'](){var _0x597f23=_0x3f6484,_0x5ddbcd;this[_0x597f23(0x237)][_0x597f23(0x22d)](_0x597f23(0x20b)),(_0x5ddbcd=this[_0x597f23(0x1fd)])==null||_0x5ddbcd[_0x597f23(0x1ef)]();}['_handleOperation'](_0x17bd60){var _0xfb4874=_0x3f6484;if(['presenting',_0xfb4874(0x20b),'offline'][_0xfb4874(0x1a8)](this[_0xfb4874(0x204)])||!_0x17bd60['data'][_0xfb4874(0x228)]||_0x17bd60[_0xfb4874(0x1c9)][_0xfb4874(0x228)]===this[_0xfb4874(0x221)][_0xfb4874(0x1f9)]())return;this[_0xfb4874(0x204)]===_0xfb4874(0x1a6)&&this[_0xfb4874(0x220)]();const _0x965bf3=_0x17bd60[_0xfb4874(0x1c9)]['operations'];Object[_0xfb4874(0x195)](_0x965bf3)[_0xfb4874(0x199)](_0x4b4011=>{var _0x534f5a=_0xfb4874;this[_0x534f5a(0x1e0)][_0x534f5a(0x229)](_0x4b4011['id'],_0x4b4011[_0x534f5a(0x1b1)]?JSON[_0x534f5a(0x208)](_0x4b4011[_0x534f5a(0x1b1)]):null,{'fromCollab':!0x0});});}[_0x3f6484(0x206)](){var _0x30acc3=_0x3f6484,_0x42c01a;this['_status$'][_0x30acc3(0x22d)](_0x30acc3(0x200)),(_0x42c01a=this[_0x30acc3(0x1fd)])==null||_0x42c01a['dispose']();}[_0x3f6484(0x19c)](){var _0x259562=_0x3f6484;this[_0x259562(0x237)][_0x259562(0x22d)]('idle'),this[_0x259562(0x1b3)]();}};C=Z([f(0x2,_0x12e4b9),f(0x3,_0xb0930d(L)),f(0x4,_0x49d015)],C);function _0x1eb5(_0x1413f4,_0x250eb2){var _0x7f9ee4=_0x7f9e();return _0x1eb5=function(_0x1eb595,_0x5387a3){_0x1eb595=_0x1eb595-0x190;var _0x2df395=_0x7f9ee4[_0x1eb595];return _0x2df395;},_0x1eb5(_0x1413f4,_0x250eb2);}function Te(){var _0x583f4b=_0x3f6484;const _0x399aba=_0xa5510d(I),_0x28420b=_0xa5510d(_0x42e888),_0x51aeeb=_0x2d9124(()=>_0x28420b[_0x583f4b(0x1d7)](_0x4d54d3[_0x583f4b(0x205)]),void 0x0,!0x1,[]),[_0x52efed,_0x434724]=_0x54cd30(null),[_0x4b9a75,_0x55c526]=_0x54cd30(h[_0x583f4b(0x1ca)]),_0x46be48=_0x2d77f1(null);return _0x27b4cf(()=>(_0x51aeeb&&_0x399aba['getLiveShareCoordinator'](_0x51aeeb['getUnitId']())[_0x583f4b(0x1f4)](_0x5f192c=>{var _0x328361=_0x583f4b;_0x434724(_0x5f192c),_0x46be48[_0x328361(0x1ec)]=_0x5f192c[_0x328361(0x209)][_0x328361(0x1f3)](_0x3d4060=>{_0x55c526(_0x3d4060);});}),()=>{var _0x5cdf7b=_0x583f4b,_0x201cbb;(_0x201cbb=_0x46be48['current'])==null||_0x201cbb['unsubscribe'](),_0x46be48[_0x5cdf7b(0x1ec)]=null;}),[_0x51aeeb,_0x399aba]),_0x52efed?_0x43ea3b(_0x1da88c,{'align':_0x583f4b(0x207),'disabled':_0x4b9a75===h[_0x583f4b(0x1d3)],'className':_0x583f4b(0x1b5),'overlay':_0x43ea3b($e,{'status':_0x4b9a75,'coordinator':_0x52efed}),'children':_0x43ea3b('button',{'className':_0x5c6958(_0x583f4b(0x243),{'univer-cursor-not-allowed':_0x4b9a75===h[_0x583f4b(0x1d3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4b9a75!==h[_0x583f4b(0x1d3)]}),'type':'button','children':_0x43ea3b(B,{'className':_0x583f4b(0x1b6)})})}):null;}function $e(_0x13bc4c){var _0x265915=_0x3f6484;const {status:_0x48012f,coordinator:_0x516e3b}=_0x13bc4c;switch(_0x48012f){case h[_0x265915(0x1ca)]:return _0x43ea3b(Fe,{'coordinator':_0x516e3b});case h[_0x265915(0x191)]:return _0x43ea3b(He,{'coordinator':_0x516e3b});case h['NOT_FOLLOWING']:return _0x43ea3b(je,{'coordinator':_0x516e3b});case h[_0x265915(0x1d3)]:return _0x43ea3b(Ve,{});case h[_0x265915(0x1c5)]:return _0x43ea3b(Ue,{'coordinator':_0x516e3b});default:return null;}}function Fe(_0x573df3){var _0xa672ca=_0x3f6484;const {coordinator:_0xebfc2f}=_0x573df3;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0xa672ca(0x19b),{'className':_0xa672ca(0x21f),'children':'Present\x20this\x20document'}),_0x43ea3b(_0x5149cf,{'onClick':()=>_0xebfc2f['tryStartPresenting'](),'children':_0xa672ca(0x196)})]});}function He(_0x41fbf6){var _0x1ee31d=_0x3f6484;const {coordinator:_0x37657d}=_0x41fbf6;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0x1ee31d(0x19b),{'className':_0x1ee31d(0x21f),'children':_0x1ee31d(0x23d)}),_0x43ea3b(_0x5149cf,{'onClick':()=>_0x37657d[_0x1ee31d(0x20e)](),'children':_0x1ee31d(0x1d5)})]});}function je(_0x4efb1f){var _0xb7817a=_0x3f6484;const {coordinator:_0x5323d5}=_0x4efb1f;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0xb7817a(0x19b),{'className':_0xb7817a(0x21f),'children':_0xb7817a(0x22b)}),_0x43ea3b(_0x5149cf,{'variant':_0xb7817a(0x1aa),'onClick':()=>_0x5323d5['startFollowing'](),'children':_0xb7817a(0x215)})]});}function Ue(_0x2400a5){var _0x10c872=_0x3f6484;const {coordinator:_0x678897}=_0x2400a5;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0x10c872(0x19b),{'className':_0x10c872(0x21f),'children':_0x10c872(0x202)}),_0x43ea3b(_0x5149cf,{'variant':_0x10c872(0x193),'onClick':()=>_0x678897[_0x10c872(0x20d)](),'children':_0x10c872(0x1ab)})]});}function Ve(){return _0x43ea3b(_0x4fe31c,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x3f6484(0x223)],ke=(_0x34d0b8,_0x2ee673,_0x128d4e,_0xe1a25e)=>{for(var _0xc38861=_0xe1a25e>0x1?void 0x0:_0xe1a25e?Me(_0x2ee673,_0x128d4e):_0x2ee673,_0x318b76=_0x34d0b8['length']-0x1,_0x34d245;_0x318b76>=0x0;_0x318b76--)(_0x34d245=_0x34d0b8[_0x318b76])&&(_0xc38861=_0x34d245(_0xc38861)||_0xc38861);return _0xc38861;},$=(_0x26f81e,_0x37b05b)=>(_0x152a4e,_0x2d1235)=>_0x37b05b(_0x152a4e,_0x2d1235,_0x26f81e);let b=class extends _0x1c6341{constructor(_0x4f07bf,_0x5cd3be){var _0x28bc21=_0x3f6484;super(),this['_injector']=_0x4f07bf,this[_0x28bc21(0x19f)]=_0x5cd3be,this[_0x28bc21(0x1ad)]();}[_0x3f6484(0x1ad)](){var _0x25745e=_0x3f6484;this[_0x25745e(0x1df)](this[_0x25745e(0x19f)][_0x25745e(0x242)](_0x40a2e7[_0x25745e(0x20a)],()=>_0x326657(Te,this['_injector'])));}};b=ke([$(0x0,_0xb0930d(_0xd563d9)),$(0x1,_0x66463e)],b);var Ge=Object[_0x3f6484(0x198)],We=Object[_0x3f6484(0x223)],Ye=(_0x5ebbef,_0x54a7f1,_0x5a39f0)=>_0x54a7f1 in _0x5ebbef?Ge(_0x5ebbef,_0x54a7f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a39f0}):_0x5ebbef[_0x54a7f1]=_0x5a39f0,Be=(_0x11243b,_0x12def3,_0x2b35e5,_0x7a80aa)=>{var _0x46fe2f=_0x3f6484;for(var _0xf5d9ba=_0x7a80aa>0x1?void 0x0:_0x7a80aa?We(_0x12def3,_0x2b35e5):_0x12def3,_0x589e8c=_0x11243b[_0x46fe2f(0x232)]-0x1,_0x246e11;_0x589e8c>=0x0;_0x589e8c--)(_0x246e11=_0x11243b[_0x589e8c])&&(_0xf5d9ba=_0x246e11(_0xf5d9ba)||_0xf5d9ba);return _0xf5d9ba;},F=(_0x5a0550,_0x7dd6b5)=>(_0x19ad5f,_0x5d4f6d)=>_0x7dd6b5(_0x19ad5f,_0x5d4f6d,_0x5a0550),J=(_0xe2c96e,_0x5a0c64,_0xdff54d)=>Ye(_0xe2c96e,typeof _0x5a0c64!='symbol'?_0x5a0c64+'':_0x5a0c64,_0xdff54d);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1608cc{constructor(_0x280542=T,_0x5ec4f2,_0x26ccde){var _0x35c66=_0x3f6484;super(),this[_0x35c66(0x22c)]=_0x280542,this[_0x35c66(0x241)]=_0x5ec4f2,this['_configService']=_0x26ccde;const {..._0x229c31}=_0x17d777({},T,this[_0x35c66(0x22c)]);this[_0x35c66(0x20c)][_0x35c66(0x23f)](Oe,_0x229c31);}[_0x3f6484(0x190)](){var _0x464908=_0x3f6484;_0x2e569d(this[_0x464908(0x241)],_0x4e9805([[L],[I],[m],[b]],this[_0x464908(0x22c)][_0x464908(0x218)])),_0x5a07de(this[_0x464908(0x241)],[[m]]);}['onRendered'](){var _0x460f41=_0x3f6484;_0x5a07de(this[_0x460f41(0x241)],[[b]]);}};J(O,'type',_0x4d54d3['UNIVER_UNKNOWN']),J(O,_0x3f6484(0x1ee),Ze),O=Be([_0x311632(_0x589148),F(0x1,_0xb0930d(_0xd563d9)),F(0x2,_0x12e4b9)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.css CHANGED
@@ -1 +1 @@
1
- .univer-mb-3{margin-bottom:12px}.univer-box-border{box-sizing:border-box}.univer-size-4{width:16px;height:16px}.univer-w-full{width:100%}.univer-min-w-60{min-width:240px}.univer-cursor-not-allowed{cursor:not-allowed}.univer-cursor-pointer{cursor:pointer}.univer-border-none{border-style:none}.univer-bg-gray-400{background-color:var(--univer-gray-400)}.univer-bg-gray-900{background-color:var(--univer-gray-900)}.univer-px-4{padding-left:16px;padding-right:16px}.univer-py-3{padding-top:12px;padding-bottom:12px}.univer-text-sm{font-size:14px;line-height:20px}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-gray-900{color:var(--univer-gray-900)}.univer-outline-none{outline:2px solid transparent;outline-offset:2px}.hover\:univer-bg-gray-400:hover{background-color:var(--univer-gray-400)}.dark\:\!univer-bg-white:where(.univer-dark,.univer-dark *){background-color:var(--univer-white)!important}.dark\:\!univer-text-white:where(.univer-dark,.univer-dark *){color:var(--univer-white)!important}
1
+ .univer-mb-3{margin-bottom:.75rem}.univer-box-border{box-sizing:border-box}.univer-size-4{width:1rem;height:1rem}.univer-w-full{width:100%}.univer-min-w-60{min-width:15rem}.univer-cursor-not-allowed{cursor:not-allowed}.univer-cursor-pointer{cursor:pointer}.univer-border-none{border-style:none}.univer-bg-gray-400{background-color:var(--univer-gray-400)}.univer-bg-gray-900{background-color:var(--univer-gray-900)}.univer-px-4{padding-left:1rem;padding-right:1rem}.univer-py-3{padding-top:.75rem;padding-bottom:.75rem}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-gray-900{color:var(--univer-gray-900)}.univer-outline-none{outline:2px solid transparent;outline-offset:2px}.hover\:univer-bg-gray-400:hover{background-color:var(--univer-gray-400)}.dark\:\!univer-bg-white:where(.univer-dark,.univer-dark *){background-color:var(--univer-white)!important}.dark\:\!univer-text-white:where(.univer-dark,.univer-dark *){color:var(--univer-white)!important}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x2ba189=_0xfcac;(function(_0x1905d8,_0x33b72b){var _0x4f7654=_0xfcac,_0x4f2131=_0x1905d8();while(!![]){try{var _0x197022=-parseInt(_0x4f7654(0xcd))/0x1+-parseInt(_0x4f7654(0x158))/0x2*(parseInt(_0x4f7654(0xd5))/0x3)+-parseInt(_0x4f7654(0x101))/0x4+-parseInt(_0x4f7654(0x104))/0x5+parseInt(_0x4f7654(0xc2))/0x6+-parseInt(_0x4f7654(0x132))/0x7*(-parseInt(_0x4f7654(0x161))/0x8)+parseInt(_0x4f7654(0x13c))/0x9;if(_0x197022===_0x33b72b)break;else _0x4f2131['push'](_0x4f2131['shift']());}catch(_0x1cd761){_0x4f2131['push'](_0x4f2131['shift']());}}}(_0x1996,0xbe0ef));var q=Object[_0x2ba189(0xee)],z=(_0x5dd512,_0xaeb118,_0x3fae0e)=>_0xaeb118 in _0x5dd512?q(_0x5dd512,_0xaeb118,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fae0e}):_0x5dd512[_0xaeb118]=_0x3fae0e,d=(_0x2acde4,_0x498f96,_0x2b84da)=>z(_0x2acde4,typeof _0x498f96!=_0x2ba189(0x12c)?_0x498f96+'':_0x498f96,_0x2b84da);import{CollaborationSessionService as _0x1906a9,SessionStatus as _0xf4d28f,UniverCollaborationClientPlugin as _0x310d0b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3d8687,toDisposable as _0x2ba396,Inject as _0x42fbcf,IUniverInstanceService as _0xb5d125,Injector as _0x2f3b08,IConfigService as _0x5584c0,ICommandService as _0x4c13df,RxDisposable as _0x3fd1be,UniverInstanceType as _0x10b104,DisposableCollection as _0x50b462,CommandType as _0x505bfe,DependentOn as _0x190077,Plugin as _0x1d1513,merge as _0x5e17a8,registerDependencies as _0xa89634,mergeOverrideWithDependencies as _0x2fd152,touchDependencies as _0x1ebd0f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x2c4fe6,InsertSheetMutation as _0x56c568}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x160d91,SetScrollOperation as _0x39f42a}from'@univerjs/sheets-ui';import{useDependency as _0x5dc14c,useObservable as _0x1c3067,IUIPartsService as _0x5ca397,BuiltInUIPart as _0x19435c,connectInjector as _0x40f9b9}from'@univerjs/ui';import{jsx as _0x273a27,jsxs as _0x262791,Fragment as _0xfe85f2}from'react/jsx-runtime';import{Dropdown as _0x35e311,clsx as _0x348ec7,Button as _0x1ce9af}from'@univerjs/design';import{forwardRef as _0x583cf3,useRef as _0x1f0119,createElement as _0xfd8b51,useState as _0x5e6230,useEffect as _0x400d7d}from'react';import{CollaborationEvent as _0x277758,parseProtocolChangeset as _0x24cf23}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x433ede,Subject as _0x49f39a}from'rxjs';import{takeUntil as _0x55b894,throttleTime as _0x27469d}from'rxjs/operators';const Oe=_0x2ba189(0x141),T={};class L extends _0x3d8687{constructor(){var _0x3d4eb6=_0x2ba189;super(...arguments),d(this,_0x3d4eb6(0xf5),new Set()),d(this,_0x3d4eb6(0x16a),new Set());}[_0x2ba189(0xd3)](_0xe35bb7){var _0x32992b=_0x2ba189;return this[_0x32992b(0xf5)][_0x32992b(0x142)](_0xe35bb7),_0x2ba396(()=>this[_0x32992b(0xf5)][_0x32992b(0x13e)](_0xe35bb7));}[_0x2ba189(0x119)](_0x6f5a78){var _0x195fcd=_0x2ba189;return this[_0x195fcd(0x16a)][_0x195fcd(0x142)](_0x6f5a78),_0x2ba396(()=>this[_0x195fcd(0x16a)][_0x195fcd(0x13e)](_0x6f5a78));}[_0x2ba189(0x16e)](_0x35ed18){var _0x13b2f5=_0x2ba189;return this[_0x13b2f5(0xf5)][_0x13b2f5(0x14f)](_0x35ed18);}[_0x2ba189(0x108)](_0x249eb2){var _0x364412=_0x2ba189;return Array[_0x364412(0x13f)](this['_reporters'])[_0x364412(0xc5)](_0x55637f=>_0x55637f(_0x249eb2));}}var Ee=Object[_0x2ba189(0x126)],we=(_0x511fb8,_0x96fbdf,_0x1d7e4e,_0x272951)=>{for(var _0x5c6f4a=_0x272951>0x1?void 0x0:_0x272951?Ee(_0x96fbdf,_0x1d7e4e):_0x96fbdf,_0x4d8560=_0x511fb8['length']-0x1,_0x479c33;_0x4d8560>=0x0;_0x4d8560--)(_0x479c33=_0x511fb8[_0x4d8560])&&(_0x5c6f4a=_0x479c33(_0x5c6f4a)||_0x5c6f4a);return _0x5c6f4a;},Ne=(_0x52989b,_0x304db8)=>(_0x10dd47,_0x81383a)=>_0x304db8(_0x10dd47,_0x81383a,_0x52989b);let m=class extends _0x3d8687{constructor(_0x2fcf28){var _0x3e0278=_0x2ba189;super(),this[_0x3e0278(0x137)]=_0x2fcf28,this['_init']();}[_0x2ba189(0x124)](){var _0x5bdf0b=_0x2ba189;[_0x160d91['id'],_0x39f42a['id'],_0x2c4fe6['id']][_0x5bdf0b(0x154)](_0x23c674=>{var _0x3860c4=_0x5bdf0b;this[_0x3860c4(0xd6)](this[_0x3860c4(0x137)]['registerSharedOperation'](_0x23c674));});}};m=we([Ne(0x0,_0x42fbcf(L))],m);var c=function(){var _0x18874c=_0x2ba189;return c=Object[_0x18874c(0x165)]||function(_0x3318ee){var _0x2ae94c=_0x18874c;for(var _0x360050,_0x348d12=0x1,_0x267e5b=arguments[_0x2ae94c(0xe0)];_0x348d12<_0x267e5b;_0x348d12++){_0x360050=arguments[_0x348d12];for(var _0x1f042c in _0x360050)Object[_0x2ae94c(0x11f)][_0x2ae94c(0xca)][_0x2ae94c(0x15e)](_0x360050,_0x1f042c)&&(_0x3318ee[_0x1f042c]=_0x360050[_0x1f042c]);}return _0x3318ee;},c[_0x18874c(0xf3)](this,arguments);},Ce=function(_0x135f5a,_0x4a0a98){var _0x1be792=_0x2ba189,_0x3b507d={};for(var _0x69ad38 in _0x135f5a)Object[_0x1be792(0x11f)][_0x1be792(0xca)][_0x1be792(0x15e)](_0x135f5a,_0x69ad38)&&_0x4a0a98['indexOf'](_0x69ad38)<0x0&&(_0x3b507d[_0x69ad38]=_0x135f5a[_0x69ad38]);if(_0x135f5a!=null&&typeof Object[_0x1be792(0x13a)]==_0x1be792(0xf8)){for(var _0x177bd0=0x0,_0x69ad38=Object[_0x1be792(0x13a)](_0x135f5a);_0x177bd0<_0x69ad38[_0x1be792(0xe0)];_0x177bd0++)_0x4a0a98[_0x1be792(0x103)](_0x69ad38[_0x177bd0])<0x0&&Object[_0x1be792(0x11f)]['propertyIsEnumerable'][_0x1be792(0x15e)](_0x135f5a,_0x69ad38[_0x177bd0])&&(_0x3b507d[_0x69ad38[_0x177bd0]]=_0x135f5a[_0x69ad38[_0x177bd0]]);}return _0x3b507d;},W=_0x583cf3(function(_0x7552b0,_0x113a0b){var _0x1cfd40=_0x2ba189,_0x3f6d8f=_0x7552b0[_0x1cfd40(0x106)],_0x323d5e=_0x7552b0['id'],_0x26ee8d=_0x7552b0['className'],_0x6d5b6=_0x7552b0[_0x1cfd40(0x100)],_0x354399=Ce(_0x7552b0,[_0x1cfd40(0x106),'id',_0x1cfd40(0x152),_0x1cfd40(0x100)]),_0x275653=_0x1cfd40(0x12b)['concat'](_0x323d5e,'\x20')[_0x1cfd40(0x10f)](_0x26ee8d||'')[_0x1cfd40(0x105)](),_0x1492b3=_0x1f0119('_'[_0x1cfd40(0x10f)](Le()));return Y(_0x3f6d8f,''[_0x1cfd40(0x10f)](_0x323d5e),{'defIds':_0x3f6d8f[_0x1cfd40(0xda)],'idSuffix':_0x1492b3['current']},c({'ref':_0x113a0b,'className':_0x275653},_0x354399),_0x6d5b6);});function Y(_0x59615f,_0x58bc6f,_0x3063df,_0x333281,_0x21d679){var _0x197ac5=_0x2ba189;return _0xfd8b51(_0x59615f[_0x197ac5(0x16d)],c(c({'key':_0x58bc6f},De(_0x59615f,_0x3063df,_0x21d679)),_0x333281),(xe(_0x59615f,_0x3063df)[_0x197ac5(0xe9)]||[])[_0x197ac5(0xc5)](function(_0x319446,_0x102170){var _0x128779=_0x197ac5;return Y(_0x319446,''[_0x128779(0x10f)](_0x58bc6f,'-')['concat'](_0x59615f[_0x128779(0x16d)],'-')[_0x128779(0x10f)](_0x102170),_0x3063df,void 0x0,_0x21d679);}));}function De(_0x4ba5b4,_0x21625a,_0x3215b3){var _0x1d93c6=_0x2ba189,_0x23c242=c({},_0x4ba5b4[_0x1d93c6(0x123)]);_0x3215b3!=null&&_0x3215b3[_0x1d93c6(0x130)]&&_0x23c242[_0x1d93c6(0x168)]===_0x1d93c6(0x130)&&(_0x23c242[_0x1d93c6(0x168)]=_0x3215b3['colorChannel1']),_0x4ba5b4[_0x1d93c6(0x16d)]===_0x1d93c6(0xeb)&&_0x23c242['id']&&(_0x23c242['id']=_0x23c242['id']+_0x21625a[_0x1d93c6(0x11a)]),Object[_0x1d93c6(0x145)](_0x23c242)['forEach'](function(_0x56e08c){var _0xb29cce=_0x1d93c6,_0x1e5b70=_0x56e08c[0x0],_0x1d827b=_0x56e08c[0x1];_0x1e5b70===_0xb29cce(0xeb)&&typeof _0x1d827b==_0xb29cce(0xdd)&&(_0x23c242[_0x1e5b70]=_0x1d827b['replace'](/url\(#(.*)\)/,_0xb29cce(0x111)[_0xb29cce(0x10f)](_0x21625a[_0xb29cce(0x11a)],')')));});var _0x24b441=_0x21625a['defIds'];return!_0x24b441||_0x24b441[_0x1d93c6(0xe0)]===0x0||(_0x4ba5b4[_0x1d93c6(0x16d)]===_0x1d93c6(0xe8)&&_0x23c242[_0x1d93c6(0xfa)]&&(_0x23c242[_0x1d93c6(0xfa)]=_0x23c242[_0x1d93c6(0xfa)]+_0x21625a[_0x1d93c6(0x11a)]),Object[_0x1d93c6(0x145)](_0x23c242)[_0x1d93c6(0x154)](function(_0x59eaea){var _0x1fbef4=_0x1d93c6,_0x19635d=_0x59eaea[0x0],_0x4f484a=_0x59eaea[0x1];typeof _0x4f484a==_0x1fbef4(0xdd)&&(_0x23c242[_0x19635d]=_0x4f484a[_0x1fbef4(0x15c)](/url\(#(.*)\)/,_0x1fbef4(0x111)[_0x1fbef4(0x10f)](_0x21625a[_0x1fbef4(0x11a)],')')));})),_0x23c242;}function xe(_0x1cc124,_0x25b15f){var _0x3dde88=_0x2ba189,_0x21cf37,_0x178fd6=_0x25b15f[_0x3dde88(0xda)];return!_0x178fd6||_0x178fd6[_0x3dde88(0xe0)]===0x0?_0x1cc124:_0x1cc124[_0x3dde88(0x16d)]===_0x3dde88(0xc4)&&(!((_0x21cf37=_0x1cc124[_0x3dde88(0xe9)])===null||_0x21cf37===void 0x0)&&_0x21cf37[_0x3dde88(0xe0)])?c(c({},_0x1cc124),{'children':_0x1cc124[_0x3dde88(0xe9)][_0x3dde88(0xc5)](function(_0x27e532){var _0x10a542=_0x3dde88;return typeof _0x27e532['attrs']['id']==_0x10a542(0xdd)&&_0x178fd6&&_0x178fd6['includes'](_0x27e532[_0x10a542(0x123)]['id'])?c(c({},_0x27e532),{'attrs':c(c({},_0x27e532['attrs']),{'id':_0x27e532[_0x10a542(0x123)]['id']+_0x25b15f[_0x10a542(0x11a)]})}):_0x27e532;})}):_0x1cc124;}function Le(){var _0x3ee525=_0x2ba189;return Math[_0x3ee525(0x11c)]()[_0x3ee525(0x170)](0x24)[_0x3ee525(0x135)](0x2,0x8);}W[_0x2ba189(0xc1)]='UniverIcon';var ye={'tag':_0x2ba189(0x169),'attrs':{'xmlns':_0x2ba189(0xe6),'fill':_0x2ba189(0x11e),'viewBox':_0x2ba189(0x10c),'width':_0x2ba189(0x12d),'height':_0x2ba189(0x12d)},'children':[{'tag':_0x2ba189(0x15d),'attrs':{'fill':_0x2ba189(0x167),'d':_0x2ba189(0x117)}},{'tag':'path','attrs':{'fill':_0x2ba189(0x167),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x583cf3(function(_0xd445ed,_0x16a099){var _0x3621dd=_0x2ba189;return _0xfd8b51(W,Object[_0x3621dd(0x165)]({},_0xd445ed,{'id':'live-share-icon','ref':_0x16a099,'icon':ye}));});B[_0x2ba189(0xc1)]='LiveShareIcon';var Re=Object[_0x2ba189(0x126)],Z=(_0x2b4632,_0x7ff1c4,_0x3045e1,_0x385943)=>{for(var _0xd29a4a=_0x385943>0x1?void 0x0:_0x385943?Re(_0x7ff1c4,_0x3045e1):_0x7ff1c4,_0x4aee79=_0x2b4632['length']-0x1,_0x41ac39;_0x4aee79>=0x0;_0x4aee79--)(_0x41ac39=_0x2b4632[_0x4aee79])&&(_0xd29a4a=_0x41ac39(_0xd29a4a)||_0xd29a4a);return _0xd29a4a;},f=(_0x59ae78,_0x546496)=>(_0x2358ac,_0x430c52)=>_0x546496(_0x2358ac,_0x430c52,_0x59ae78);let I=class extends _0x3fd1be{constructor(_0x21e8d0,_0x4ca8eb,_0x341af1){var _0x3d2e96=_0x2ba189;super(),d(this,_0x3d2e96(0xf9),new Map()),(this[_0x3d2e96(0x164)]=_0x21e8d0,this['_injector']=_0x4ca8eb,this[_0x3d2e96(0x15b)]=_0x341af1,this[_0x3d2e96(0x124)]());}async['getLiveShareCoordinator'](_0x3b2b8c){var _0x9ba75e=_0x2ba189;return this[_0x9ba75e(0xf9)][_0x9ba75e(0x14f)](_0x3b2b8c)||await this['_startLiveShareCoordinator'](_0x3b2b8c),this['_entities'][_0x9ba75e(0x15f)](_0x3b2b8c);}[_0x2ba189(0x124)](){var _0x892f87=_0x2ba189;this[_0x892f87(0x164)][_0x892f87(0x129)](_0x10b104[_0x892f87(0xd2)])['pipe'](_0x55b894(this['dispose$']))[_0x892f87(0x116)](async _0x524419=>{var _0x119959=_0x892f87;const _0x25c57b=_0x524419[_0x119959(0x14a)]();this[_0x119959(0xf9)][_0x119959(0x14f)](_0x25c57b)||this[_0x119959(0x122)](_0x25c57b);}),this[_0x892f87(0x164)][_0x892f87(0xf2)](_0x10b104['UNIVER_SHEET'])[_0x892f87(0x110)](_0x55b894(this[_0x892f87(0xe5)]))[_0x892f87(0x116)](_0x2d023c=>{var _0x1a3bf0=_0x892f87;const _0x273e04=_0x2d023c[_0x1a3bf0(0x14a)](),_0x240e76=this[_0x1a3bf0(0xf9)][_0x1a3bf0(0x15f)](_0x273e04);_0x240e76==null||_0x240e76['dispose']();});}async[_0x2ba189(0x122)](_0x50aa5e){var _0x1f8771=_0x2ba189;const _0x2429fc=await this[_0x1f8771(0x15b)][_0x1f8771(0xc8)](_0x50aa5e),_0x4469aa=this['_injector']['createInstance'](C,_0x50aa5e,_0x2429fc);return _0x4469aa[_0x1f8771(0xcb)](),this[_0x1f8771(0xf9)][_0x1f8771(0x147)](_0x50aa5e,_0x4469aa),_0x4469aa;}};I=Z([f(0x0,_0xb5d125),f(0x1,_0x42fbcf(_0x2f3b08)),f(0x2,_0x42fbcf(_0x1906a9))],I);function _0xfcac(_0xee6ad5,_0x4b4728){var _0x1996e9=_0x1996();return _0xfcac=function(_0xfcacc4,_0x45bd97){_0xfcacc4=_0xfcacc4-0xc1;var _0x15f217=_0x1996e9[_0xfcacc4];return _0x15f217;},_0xfcac(_0xee6ad5,_0x4b4728);}var h=(_0x17b5d7=>(_0x17b5d7[_0x2ba189(0xc3)]='offline',_0x17b5d7[_0x2ba189(0xdc)]=_0x2ba189(0x15a),_0x17b5d7['FOLLOWING']=_0x2ba189(0xea),_0x17b5d7[_0x2ba189(0x10e)]=_0x2ba189(0x14e),_0x17b5d7['PRESENTING']=_0x2ba189(0x13b),_0x17b5d7))(h||{});const Pe=_0x2ba189(0x16c),Ae=0xc8;let C=class extends _0x3fd1be{constructor(_0x1e7d7e,_0x5c3db9,_0x98429b,_0x4007f2,_0xab35ed){var _0x323908=_0x2ba189;super(),d(this,_0x323908(0x136),new _0x433ede(_0x323908(0x15a))),d(this,_0x323908(0xed),this['_status$'][_0x323908(0xcc)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x323908(0x140),null),(this[_0x323908(0xe1)]=_0x1e7d7e,this['_collabSession']=_0x5c3db9,this[_0x323908(0x16f)]=_0x98429b,this[_0x323908(0x137)]=_0x4007f2,this[_0x323908(0x143)]=_0xab35ed);}get['_status'](){var _0x2039fb=_0x2ba189;return this[_0x2039fb(0x136)]['getValue']();}['dispose'](){var _0xfb5dd4=_0x2ba189,_0x1bbaf1;(_0x1bbaf1=this['_commandDisposable'])==null||_0x1bbaf1[_0xfb5dd4(0xfd)](),this[_0xfb5dd4(0x136)][_0xfb5dd4(0x112)](_0xfb5dd4(0x15a)),this[_0xfb5dd4(0x136)][_0xfb5dd4(0x13d)]();}[_0x2ba189(0xcb)](){var _0x2c1af6=_0x2ba189;this[_0x2c1af6(0x124)]||(this[_0x2c1af6(0x124)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0x55b894(this[_0x2c1af6(0xe5)]))[_0x2c1af6(0x116)](_0x2309ab=>{var _0xb798b=_0x2c1af6;switch(_0x2309ab){case _0xf4d28f['OFFLINE']:this[_0xb798b(0x144)]();break;case _0xf4d28f['ONLINE']:this[_0xb798b(0x159)]();break;}}),this[_0x2c1af6(0xd9)][_0x2c1af6(0xd8)]['pipe'](_0x55b894(this[_0x2c1af6(0xe5)]))[_0x2c1af6(0x116)](_0x3b71ce=>{var _0x107beb=_0x2c1af6;const {eventID:_0x3716b4}=_0x3b71ce;switch(_0x3716b4){case _0x277758[_0x107beb(0x131)]:this[_0x107beb(0x163)](_0x3b71ce);break;case _0x277758[_0x107beb(0xfe)]:this[_0x107beb(0x134)](_0x3b71ce);break;case _0x277758[_0x107beb(0x16b)]:this[_0x107beb(0xd4)]();break;case _0x277758[_0x107beb(0x133)]:this[_0x107beb(0xde)](_0x3b71ce);break;}}));}[_0x2ba189(0x139)](){var _0x26d84e=_0x2ba189;this[_0x26d84e(0xd9)][_0x26d84e(0x115)]({'eventID':_0x277758[_0x26d84e(0xfc)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x26d84e(0xe1)]);}[_0x2ba189(0x156)](){var _0x50abdb=_0x2ba189;this[_0x50abdb(0xcf)]===_0x50abdb(0x13b)&&(this['_status$'][_0x50abdb(0x112)](_0x50abdb(0x15a)),this[_0x50abdb(0xd9)][_0x50abdb(0x115)]({'eventID':_0x277758['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x50abdb(0xe1)]));}[_0x2ba189(0x150)](){var _0x3736f1=_0x2ba189;this[_0x3736f1(0xcf)]===_0x3736f1(0x14e)&&(this[_0x3736f1(0x136)]['next'](_0x3736f1(0xea)),this[_0x3736f1(0xe3)]());}[_0x2ba189(0xd7)](){var _0x49d4d9=_0x2ba189;this[_0x49d4d9(0xcf)]===_0x49d4d9(0xea)&&this[_0x49d4d9(0x153)]();}['_handleNewHost'](_0x58cfc1){var _0x2d4211=_0x2ba189;const {presenter:_0x1e9af8}=_0x58cfc1[_0x2d4211(0x157)],_0x2c0d9d=this[_0x2d4211(0xd9)][_0x2d4211(0xf6)]();this[_0x2d4211(0x140)]=_0x1e9af8,_0x1e9af8===_0x2c0d9d?(this[_0x2d4211(0x153)](),this['_startPresenting']()):this[_0x2d4211(0xcf)]!=='not-following'&&(this['_stopPresenting'](),this[_0x2d4211(0xe3)]());}[_0x2ba189(0xec)](){var _0x4bc6e2=_0x2ba189;const _0x44375a={'eventID':_0x277758['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x4bc6e2(0x115)](_0x44375a,this[_0x4bc6e2(0xe1)]);}[_0x2ba189(0xd4)](){var _0x163a3b=_0x2ba189;this[_0x163a3b(0x140)]=null,this[_0x163a3b(0xcf)]!==_0x163a3b(0x13b)&&this['_beIdle']();}[_0x2ba189(0xde)](_0x720019){var _0x531ca8=_0x2ba189;if(this[_0x531ca8(0xcf)]===_0x531ca8(0xea)&&this[_0x531ca8(0x140)]===_0x720019[_0x531ca8(0x157)]['memberID']){const _0x329c7a=_0x24cf23(_0x720019['data'])[_0x531ca8(0x127)][_0x531ca8(0x138)]()[_0x531ca8(0x166)](_0xf269a9=>_0xf269a9['id']===_0x56c568['id']);if(_0x329c7a){const _0x120039=_0x329c7a[_0x531ca8(0x109)][_0x531ca8(0x121)],_0x279837=_0x329c7a[_0x531ca8(0x109)]['sheet']['id'];setTimeout(()=>{var _0x2aebe1=_0x531ca8;this[_0x2aebe1(0x143)][_0x2aebe1(0xf4)](_0x2c4fe6['id'],{'unitId':_0x120039,'subUnitId':_0x279837},{'fromCollab':!0x0});});}}}[_0x2ba189(0xf1)](){var _0x6d5684=_0x2ba189;this[_0x6d5684(0x136)][_0x6d5684(0x112)](_0x6d5684(0x13b));const _0x1ee16a=new Map(),_0xe046f5=this[_0x6d5684(0xdf)]=new _0x50b462();_0xe046f5[_0x6d5684(0x142)](_0x2ba396(()=>{_0x1ee16a['forEach'](_0x40489a=>_0x40489a['complete']()),_0x1ee16a['clear']();})),_0xe046f5['add'](this[_0x6d5684(0x143)][_0x6d5684(0x146)](_0x1f3493=>{var _0x22be56=_0x6d5684,_0x5de6fc;if(_0x1f3493[_0x22be56(0x151)]!==_0x505bfe['OPERATION']||!this['_liveShareService'][_0x22be56(0x16e)](_0x1f3493['id']))return;const {id:_0x163c40}=_0x1f3493;let _0x5f0b0d;_0x1ee16a['has'](_0x163c40)?_0x5f0b0d=_0x1ee16a['get'](_0x163c40):(_0x5f0b0d=new _0x49f39a(),_0x1ee16a[_0x22be56(0x147)](_0x163c40,_0x5f0b0d),_0x5f0b0d[_0x22be56(0x110)](_0x27469d((_0x5de6fc=this[_0x22be56(0x16f)][_0x22be56(0x102)](Pe))!=null?_0x5de6fc:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x22be56(0x116)](_0x123fe5=>{var _0x33af89=_0x22be56;this[_0x33af89(0xd9)]['send']({'eventID':_0x277758[_0x33af89(0xfe)],'data':{'unitID':this[_0x33af89(0xe1)],'operations':{[_0x123fe5['id']]:{'id':_0x123fe5['id'],'params':JSON[_0x33af89(0x14b)](_0x123fe5[_0x33af89(0x109)])}}}},this[_0x33af89(0xe1)]);})),_0x5f0b0d[_0x22be56(0x112)](_0x1f3493);})),this[_0x6d5684(0x137)][_0x6d5684(0x108)](this[_0x6d5684(0xe1)])[_0x6d5684(0x154)](_0x32e783=>this['_collabSession'][_0x6d5684(0x115)]({'eventID':_0x277758[_0x6d5684(0xfe)],'data':{'unitID':this[_0x6d5684(0xe1)],'operations':{[_0x32e783['id']]:{'id':_0x32e783['id'],'params':JSON['stringify'](_0x32e783[_0x6d5684(0x109)])}}}},this[_0x6d5684(0xe1)]));}[_0x2ba189(0xc9)](){var _0x2ded01=_0x2ba189,_0x4bdd29;this[_0x2ded01(0x136)][_0x2ded01(0x112)](_0x2ded01(0x15a)),(_0x4bdd29=this[_0x2ded01(0xdf)])==null||_0x4bdd29['dispose'](),this['_commandDisposable']=null;}[_0x2ba189(0xe3)](){var _0x25cfda=_0x2ba189,_0x217fa3;(_0x217fa3=this['_commandDisposable'])==null||_0x217fa3[_0x25cfda(0xfd)](),this[_0x25cfda(0x136)]['next']('following');}[_0x2ba189(0xe7)](){var _0x2eab9d=_0x2ba189,_0xca5737;this[_0x2eab9d(0x136)][_0x2eab9d(0x112)](_0x2eab9d(0x15a)),(_0xca5737=this[_0x2eab9d(0xdf)])==null||_0xca5737[_0x2eab9d(0xfd)](),this[_0x2eab9d(0xdf)]=null;}['_stopFollowing'](){var _0x6d117=_0x2ba189,_0x32d8ae;this[_0x6d117(0x136)][_0x6d117(0x112)](_0x6d117(0x14e)),(_0x32d8ae=this[_0x6d117(0xdf)])==null||_0x32d8ae[_0x6d117(0xfd)]();}[_0x2ba189(0x134)](_0x56761f){var _0xcf0d90=_0x2ba189;if([_0xcf0d90(0x13b),_0xcf0d90(0x14e),_0xcf0d90(0x155)]['includes'](this[_0xcf0d90(0xcf)])||!_0x56761f[_0xcf0d90(0x157)]['presenter']||_0x56761f[_0xcf0d90(0x157)][_0xcf0d90(0xef)]===this[_0xcf0d90(0xd9)][_0xcf0d90(0xf6)]())return;this[_0xcf0d90(0xcf)]===_0xcf0d90(0x15a)&&this[_0xcf0d90(0xe3)]();const _0x18df67=_0x56761f[_0xcf0d90(0x157)][_0xcf0d90(0x12f)];Object['values'](_0x18df67)[_0xcf0d90(0x154)](_0x1ec1eb=>{var _0x5592ae=_0xcf0d90;this['_commandService'][_0x5592ae(0xf4)](_0x1ec1eb['id'],_0x1ec1eb[_0x5592ae(0x109)]?JSON['parse'](_0x1ec1eb[_0x5592ae(0x109)]):null,{'fromCollab':!0x0});});}[_0x2ba189(0x144)](){var _0x4aee44=_0x2ba189,_0x1a1532;this[_0x4aee44(0x136)][_0x4aee44(0x112)](_0x4aee44(0x155)),(_0x1a1532=this[_0x4aee44(0xdf)])==null||_0x1a1532['dispose']();}[_0x2ba189(0x159)](){var _0x30f98e=_0x2ba189;this[_0x30f98e(0x136)]['next'](_0x30f98e(0x15a)),this[_0x30f98e(0xec)]();}};C=Z([f(0x2,_0x5584c0),f(0x3,_0x42fbcf(L)),f(0x4,_0x4c13df)],C);function Te(){var _0x31d124=_0x2ba189;const _0x11a319=_0x5dc14c(I),_0x151ae5=_0x5dc14c(_0xb5d125),_0x5e6df8=_0x1c3067(()=>_0x151ae5['getCurrentTypeOfUnit$'](_0x10b104[_0x31d124(0xd2)]),void 0x0,!0x1,[]),[_0x313bbc,_0x4e0145]=_0x5e6230(null),[_0xca4d32,_0x2494a0]=_0x5e6230(h['IDLE']),_0x4475d6=_0x1f0119(null);return _0x400d7d(()=>(_0x5e6df8&&_0x11a319[_0x31d124(0x162)](_0x5e6df8[_0x31d124(0x14a)]())[_0x31d124(0xc7)](_0x4f6c49=>{var _0x131b75=_0x31d124;_0x4e0145(_0x4f6c49),_0x4475d6['current']=_0x4f6c49[_0x131b75(0xed)][_0x131b75(0x116)](_0x348901=>{_0x2494a0(_0x348901);});}),()=>{var _0x55fa8c=_0x31d124,_0x5605c3;(_0x5605c3=_0x4475d6[_0x55fa8c(0xfb)])==null||_0x5605c3[_0x55fa8c(0x118)](),_0x4475d6[_0x55fa8c(0xfb)]=null;}),[_0x5e6df8,_0x11a319]),_0x313bbc?_0x273a27(_0x35e311,{'align':'end','disabled':_0xca4d32===h[_0x31d124(0xc3)],'className':_0x31d124(0x148),'overlay':_0x273a27($e,{'status':_0xca4d32,'coordinator':_0x313bbc}),'children':_0x273a27(_0x31d124(0xd1),{'className':_0x348ec7(_0x31d124(0xe4),{'univer-cursor-not-allowed':_0xca4d32===h[_0x31d124(0xc3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xca4d32!==h[_0x31d124(0xc3)]}),'type':_0x31d124(0xd1),'children':_0x273a27(B,{'className':_0x31d124(0xdb)})})}):null;}function $e(_0x508a99){var _0x3c2893=_0x2ba189;const {status:_0x1d613b,coordinator:_0x5af459}=_0x508a99;switch(_0x1d613b){case h['IDLE']:return _0x273a27(Fe,{'coordinator':_0x5af459});case h[_0x3c2893(0xf7)]:return _0x273a27(He,{'coordinator':_0x5af459});case h[_0x3c2893(0x10e)]:return _0x273a27(je,{'coordinator':_0x5af459});case h['OFFLINE']:return _0x273a27(Ve,{});case h[_0x3c2893(0x114)]:return _0x273a27(Ue,{'coordinator':_0x5af459});default:return null;}}function Fe(_0x7a5b8d){var _0x176b14=_0x2ba189;const {coordinator:_0x347c1e}=_0x7a5b8d;return _0x262791(_0xfe85f2,{'children':[_0x273a27(_0x176b14(0xff),{'className':_0x176b14(0x120),'children':_0x176b14(0x11b)}),_0x273a27(_0x1ce9af,{'onClick':()=>_0x347c1e[_0x176b14(0x139)](),'children':_0x176b14(0x107)})]});}function He(_0x5e81c0){var _0x4cb111=_0x2ba189;const {coordinator:_0x4bf788}=_0x5e81c0;return _0x262791(_0xfe85f2,{'children':[_0x273a27(_0x4cb111(0xff),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x273a27(_0x1ce9af,{'onClick':()=>_0x4bf788[_0x4cb111(0xd7)](),'children':'Stop\x20following'})]});}function je(_0x200f77){var _0x4b6ed7=_0x2ba189;const {coordinator:_0x8e509b}=_0x200f77;return _0x262791(_0xfe85f2,{'children':[_0x273a27(_0x4b6ed7(0xff),{'className':_0x4b6ed7(0x120),'children':_0x4b6ed7(0x12a)}),_0x273a27(_0x1ce9af,{'variant':_0x4b6ed7(0x113),'onClick':()=>_0x8e509b[_0x4b6ed7(0x150)](),'children':_0x4b6ed7(0x160)})]});}function Ue(_0x43c43e){var _0x5dbb15=_0x2ba189;const {coordinator:_0x586691}=_0x43c43e;return _0x262791(_0xfe85f2,{'children':[_0x273a27('div',{'className':_0x5dbb15(0x120),'children':_0x5dbb15(0x10b)}),_0x273a27(_0x1ce9af,{'variant':_0x5dbb15(0xe2),'onClick':()=>_0x586691[_0x5dbb15(0x156)](),'children':_0x5dbb15(0xf0)})]});}function _0x1996(){var _0x3d812f=['stopFollowing','event$','_collabSession','defIds','univer-size-4','IDLE','string','_handleNewChangeSets','_commandDisposable','length','_unitID','default','_startFollowing','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose$','http://www.w3.org/2000/svg','_beIdle','use','children','following','mask','_fetchOperations','status$','defineProperty','presenter','Stop\x20presenting','_startPresenting','getTypeOfUnitDisposed$','apply','executeCommand','_sharedOperations','getMemberID','FOLLOWING','function','_entities','xlink:href','current','LIVESHARE_REQUEST_HOST','dispose','LIVESHARE_OPERATION','div','extend','3912392CtBFDD','getConfig','indexOf','5180010sUMDiP','trim','icon','Start','getInitialStates','params','_mountLiveShare','You\x27re\x20presenting\x20the\x20document','0\x200\x2017\x2017','_config','NOT_FOLLOWING','concat','pipe','url(#$1','next','text','PRESENTING','send','subscribe','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','unsubscribe','registerInitialStateReporter','idSuffix','Present\x20this\x20document','random','HEADER_MENU','none','prototype','univer-mb-3\x20univer-w-full\x20univer-text-sm','unitId','_startLiveShareCoordinator','attrs','_init','registerComponent','getOwnPropertyDescriptor','mutations','pluginName','getTypeOfUnitAdded$','You\x27re\x20not\x20following\x20the\x20presenter','univerjs-icon\x20univerjs-icon-','symbol','1em','You\x27are\x20offline.','operations','colorChannel1','LIVESHARE_NEW_HOST','7ihoMCG','NEW_CHANGESETS','_handleOperation','substring','_status$','_liveShareService','reverse','tryStartPresenting','getOwnPropertySymbols','presenting','41808780LOyfwR','complete','delete','from','_presenter','live-share.config','add','_commandService','_handleOffline','entries','onCommandExecuted','set','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_uiPartsService','getUnitId','stringify','override','onRendered','not-following','has','startFollowing','type','className','_stopFollowing','forEach','offline','stopPresenting','data','4RgcWhm','_handleOnline','idle','_collabSessionService','replace','path','call','get','Start\x20following','1449576RosJjT','getLiveShareCoordinator','_handleNewHost','_univerInstanceService','assign','find','currentColor','fill','svg','_reporters','LIVESHARE_TERMINATE','SAME_OPERATION_SHARE_INTERVAL','tag','shouldShareOperation','_configService','toString','displayName','549456TVZtSq','OFFLINE','defs','map','_injector','then','requireSession','_stopPresenting','hasOwnProperty','init','asObservable','1306526KZiTME','UNIVER_UNKNOWN','_status','onStarting','button','UNIVER_SHEET','registerSharedOperation','_handleTerminate','1228632kkWDWF','disposeWithMe'];_0x1996=function(){return _0x3d812f;};return _0x1996();}function Ve(){var _0x57abed=_0x2ba189;return _0x273a27(_0xfe85f2,{'children':_0x57abed(0x12e)});}var Me=Object[_0x2ba189(0x126)],ke=(_0x1c50dd,_0x12638b,_0xb8977f,_0x189798)=>{var _0x3e410f=_0x2ba189;for(var _0x1207e1=_0x189798>0x1?void 0x0:_0x189798?Me(_0x12638b,_0xb8977f):_0x12638b,_0x3facd6=_0x1c50dd[_0x3e410f(0xe0)]-0x1,_0x462a70;_0x3facd6>=0x0;_0x3facd6--)(_0x462a70=_0x1c50dd[_0x3facd6])&&(_0x1207e1=_0x462a70(_0x1207e1)||_0x1207e1);return _0x1207e1;},$=(_0x1ea2c0,_0x9ecfde)=>(_0x3f008e,_0x2fa15f)=>_0x9ecfde(_0x3f008e,_0x2fa15f,_0x1ea2c0);let b=class extends _0x3d8687{constructor(_0x1aa4c5,_0x3384c){var _0x3aa753=_0x2ba189;super(),this['_injector']=_0x1aa4c5,this[_0x3aa753(0x149)]=_0x3384c,this[_0x3aa753(0x10a)]();}[_0x2ba189(0x10a)](){var _0x85206b=_0x2ba189;this['disposeWithMe'](this['_uiPartsService'][_0x85206b(0x125)](_0x19435c[_0x85206b(0x11d)],()=>_0x40f9b9(Te,this['_injector'])));}};b=ke([$(0x0,_0x42fbcf(_0x2f3b08)),$(0x1,_0x5ca397)],b);var Ge=Object[_0x2ba189(0xee)],We=Object[_0x2ba189(0x126)],Ye=(_0x40af8b,_0x3ba87d,_0x586392)=>_0x3ba87d in _0x40af8b?Ge(_0x40af8b,_0x3ba87d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x586392}):_0x40af8b[_0x3ba87d]=_0x586392,Be=(_0x4b7043,_0x254ac8,_0x3bc2b4,_0x4c46e4)=>{for(var _0x536b40=_0x4c46e4>0x1?void 0x0:_0x4c46e4?We(_0x254ac8,_0x3bc2b4):_0x254ac8,_0x52d610=_0x4b7043['length']-0x1,_0x4b00fa;_0x52d610>=0x0;_0x52d610--)(_0x4b00fa=_0x4b7043[_0x52d610])&&(_0x536b40=_0x4b00fa(_0x536b40)||_0x536b40);return _0x536b40;},F=(_0x270c53,_0x1c793c)=>(_0x4a37f7,_0x1f1064)=>_0x1c793c(_0x4a37f7,_0x1f1064,_0x270c53),J=(_0x5261e7,_0x21390b,_0x3c053b)=>Ye(_0x5261e7,typeof _0x21390b!=_0x2ba189(0x12c)?_0x21390b+'':_0x21390b,_0x3c053b);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1d1513{constructor(_0x497e1a=T,_0x51fba6,_0x5aa79f){var _0xb7c24c=_0x2ba189;super(),this[_0xb7c24c(0x10d)]=_0x497e1a,this[_0xb7c24c(0xc6)]=_0x51fba6,this[_0xb7c24c(0x16f)]=_0x5aa79f;const {..._0x49ec8f}=_0x5e17a8({},T,this['_config']);this[_0xb7c24c(0x16f)]['setConfig'](Oe,_0x49ec8f);}[_0x2ba189(0xd0)](){var _0x2db7d3=_0x2ba189;_0xa89634(this[_0x2db7d3(0xc6)],_0x2fd152([[L],[I],[m],[b]],this[_0x2db7d3(0x10d)][_0x2db7d3(0x14c)])),_0x1ebd0f(this[_0x2db7d3(0xc6)],[[m]]);}[_0x2ba189(0x14d)](){_0x1ebd0f(this['_injector'],[[b]]);}};J(O,_0x2ba189(0x151),_0x10b104[_0x2ba189(0xce)]),J(O,_0x2ba189(0x128),Ze),O=Be([_0x190077(_0x310d0b),F(0x1,_0x42fbcf(_0x2f3b08)),F(0x2,_0x5584c0)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x3f6484=_0x1eb5;(function(_0xad7a7d,_0x7abc13){var _0x2887f0=_0x1eb5,_0xcae380=_0xad7a7d();while(!![]){try{var _0x3ec156=-parseInt(_0x2887f0(0x1ff))/0x1+parseInt(_0x2887f0(0x1b7))/0x2*(-parseInt(_0x2887f0(0x1cf))/0x3)+-parseInt(_0x2887f0(0x1c3))/0x4+parseInt(_0x2887f0(0x1b9))/0x5+parseInt(_0x2887f0(0x19d))/0x6+parseInt(_0x2887f0(0x22f))/0x7*(parseInt(_0x2887f0(0x1d1))/0x8)+parseInt(_0x2887f0(0x1b2))/0x9*(parseInt(_0x2887f0(0x21d))/0xa);if(_0x3ec156===_0x7abc13)break;else _0xcae380['push'](_0xcae380['shift']());}catch(_0x374bbe){_0xcae380['push'](_0xcae380['shift']());}}}(_0x7f9e,0x73518));var q=Object[_0x3f6484(0x198)],z=(_0x39865d,_0x12de5c,_0x597d26)=>_0x12de5c in _0x39865d?q(_0x39865d,_0x12de5c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x597d26}):_0x39865d[_0x12de5c]=_0x597d26,d=(_0x41cc04,_0x54f721,_0x5d0032)=>z(_0x41cc04,typeof _0x54f721!=_0x3f6484(0x1fa)?_0x54f721+'':_0x54f721,_0x5d0032);import{CollaborationSessionService as _0x44272f,SessionStatus as _0x3b378c,UniverCollaborationClientPlugin as _0x589148}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1c6341,toDisposable as _0x5d9009,Inject as _0xb0930d,IUniverInstanceService as _0x42e888,Injector as _0xd563d9,IConfigService as _0x12e4b9,ICommandService as _0x49d015,RxDisposable as _0x395f61,UniverInstanceType as _0x4d54d3,DisposableCollection as _0x3dec07,CommandType as _0x174ae4,DependentOn as _0x311632,Plugin as _0x1608cc,merge as _0x17d777,registerDependencies as _0x2e569d,mergeOverrideWithDependencies as _0x4e9805,touchDependencies as _0x5a07de}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x5290c1,InsertSheetMutation as _0x4ed00e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x20b3ac,SetScrollOperation as _0x56c318}from'@univerjs/sheets-ui';import{useDependency as _0xa5510d,useObservable as _0x2d9124,IUIPartsService as _0x66463e,BuiltInUIPart as _0x40a2e7,connectInjector as _0x326657}from'@univerjs/ui';import{jsx as _0x43ea3b,jsxs as _0x3a2126,Fragment as _0x4fe31c}from'react/jsx-runtime';import{Dropdown as _0x1da88c,clsx as _0x5c6958,Button as _0x5149cf}from'@univerjs/design';import{forwardRef as _0x2fbe4c,useRef as _0x2d77f1,createElement as _0x540073,useState as _0x54cd30,useEffect as _0x27b4cf}from'react';import{CollaborationEvent as _0x3e33df,parseProtocolChangeset as _0x20f59d}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3ea211,Subject as _0x3cce0e}from'rxjs';import{takeUntil as _0x8cada7,throttleTime as _0x1b3bef}from'rxjs/operators';const Oe=_0x3f6484(0x23a),T={};class L extends _0x1c6341{constructor(){var _0x34e1a1=_0x3f6484;super(...arguments),d(this,_0x34e1a1(0x1f0),new Set()),d(this,_0x34e1a1(0x216),new Set());}[_0x3f6484(0x19a)](_0xf1c070){var _0x37d44a=_0x3f6484;return this['_sharedOperations'][_0x37d44a(0x1da)](_0xf1c070),_0x5d9009(()=>this[_0x37d44a(0x1f0)][_0x37d44a(0x1a2)](_0xf1c070));}[_0x3f6484(0x1fc)](_0x46c8bd){var _0x1b4fe6=_0x3f6484;return this['_reporters'][_0x1b4fe6(0x1da)](_0x46c8bd),_0x5d9009(()=>this[_0x1b4fe6(0x216)][_0x1b4fe6(0x1a2)](_0x46c8bd));}[_0x3f6484(0x1d2)](_0x560899){var _0x69f3fa=_0x3f6484;return this['_sharedOperations'][_0x69f3fa(0x1f8)](_0x560899);}[_0x3f6484(0x214)](_0x4b8202){var _0x3c5fcb=_0x3f6484;return Array[_0x3c5fcb(0x21a)](this[_0x3c5fcb(0x216)])[_0x3c5fcb(0x1a1)](_0x31be3c=>_0x31be3c(_0x4b8202));}}var Ee=Object[_0x3f6484(0x223)],we=(_0x14482a,_0x52c38b,_0xe2aac6,_0x3c4945)=>{var _0x2ac8fc=_0x3f6484;for(var _0x1e104d=_0x3c4945>0x1?void 0x0:_0x3c4945?Ee(_0x52c38b,_0xe2aac6):_0x52c38b,_0x210ae4=_0x14482a[_0x2ac8fc(0x232)]-0x1,_0x1423c2;_0x210ae4>=0x0;_0x210ae4--)(_0x1423c2=_0x14482a[_0x210ae4])&&(_0x1e104d=_0x1423c2(_0x1e104d)||_0x1e104d);return _0x1e104d;},Ne=(_0x5bdb69,_0x2a54fa)=>(_0x451e32,_0x522dcb)=>_0x2a54fa(_0x451e32,_0x522dcb,_0x5bdb69);let m=class extends _0x1c6341{constructor(_0x516b8a){var _0x25ca81=_0x3f6484;super(),this[_0x25ca81(0x210)]=_0x516b8a,this[_0x25ca81(0x1c1)]();}['_init'](){[_0x20b3ac['id'],_0x56c318['id'],_0x5290c1['id']]['forEach'](_0x31ab1f=>{var _0x52efaf=_0x1eb5;this[_0x52efaf(0x1df)](this[_0x52efaf(0x210)]['registerSharedOperation'](_0x31ab1f));});}};m=we([Ne(0x0,_0xb0930d(L))],m);var c=function(){var _0x5c52dd=_0x3f6484;return c=Object[_0x5c52dd(0x197)]||function(_0xfe9a91){var _0x356857=_0x5c52dd;for(var _0xb8cb0c,_0x2b933e=0x1,_0x55bcdd=arguments['length'];_0x2b933e<_0x55bcdd;_0x2b933e++){_0xb8cb0c=arguments[_0x2b933e];for(var _0x579685 in _0xb8cb0c)Object[_0x356857(0x230)][_0x356857(0x1fb)][_0x356857(0x192)](_0xb8cb0c,_0x579685)&&(_0xfe9a91[_0x579685]=_0xb8cb0c[_0x579685]);}return _0xfe9a91;},c[_0x5c52dd(0x1b0)](this,arguments);},Ce=function(_0x1a4d9e,_0x2ad66e){var _0x2bd257=_0x3f6484,_0x16c1e7={};for(var _0x5cc590 in _0x1a4d9e)Object['prototype']['hasOwnProperty'][_0x2bd257(0x192)](_0x1a4d9e,_0x5cc590)&&_0x2ad66e['indexOf'](_0x5cc590)<0x0&&(_0x16c1e7[_0x5cc590]=_0x1a4d9e[_0x5cc590]);if(_0x1a4d9e!=null&&typeof Object[_0x2bd257(0x1a0)]==_0x2bd257(0x1a5)){for(var _0x2571b4=0x0,_0x5cc590=Object[_0x2bd257(0x1a0)](_0x1a4d9e);_0x2571b4<_0x5cc590[_0x2bd257(0x232)];_0x2571b4++)_0x2ad66e[_0x2bd257(0x222)](_0x5cc590[_0x2571b4])<0x0&&Object[_0x2bd257(0x230)][_0x2bd257(0x1e6)][_0x2bd257(0x192)](_0x1a4d9e,_0x5cc590[_0x2571b4])&&(_0x16c1e7[_0x5cc590[_0x2571b4]]=_0x1a4d9e[_0x5cc590[_0x2571b4]]);}return _0x16c1e7;},W=_0x2fbe4c(function(_0x4650a6,_0x11915e){var _0x38feb2=_0x3f6484,_0xcc8b6b=_0x4650a6[_0x38feb2(0x22e)],_0x5de131=_0x4650a6['id'],_0xf9f63d=_0x4650a6[_0x38feb2(0x238)],_0x49d759=_0x4650a6[_0x38feb2(0x1c2)],_0x189f32=Ce(_0x4650a6,[_0x38feb2(0x22e),'id',_0x38feb2(0x238),_0x38feb2(0x1c2)]),_0x8a9249='univerjs-icon\x20univerjs-icon-'[_0x38feb2(0x1e3)](_0x5de131,'\x20')[_0x38feb2(0x1e3)](_0xf9f63d||'')[_0x38feb2(0x217)](),_0x32ea4c=_0x2d77f1('_'[_0x38feb2(0x1e3)](Le()));return Y(_0xcc8b6b,''[_0x38feb2(0x1e3)](_0x5de131),{'defIds':_0xcc8b6b[_0x38feb2(0x1e9)],'idSuffix':_0x32ea4c[_0x38feb2(0x1ec)]},c({'ref':_0x11915e,'className':_0x8a9249},_0x189f32),_0x49d759);});function Y(_0x13e041,_0x531d8b,_0x2fd716,_0x150bb7,_0x3de9b4){var _0x15a491=_0x3f6484;return _0x540073(_0x13e041[_0x15a491(0x21c)],c(c({'key':_0x531d8b},De(_0x13e041,_0x2fd716,_0x3de9b4)),_0x150bb7),(xe(_0x13e041,_0x2fd716)[_0x15a491(0x1bc)]||[])[_0x15a491(0x1a1)](function(_0xc2e75,_0x49b9c7){var _0x19e03d=_0x15a491;return Y(_0xc2e75,''[_0x19e03d(0x1e3)](_0x531d8b,'-')[_0x19e03d(0x1e3)](_0x13e041[_0x19e03d(0x21c)],'-')['concat'](_0x49b9c7),_0x2fd716,void 0x0,_0x3de9b4);}));}function De(_0x16ebcc,_0x75b34b,_0xcb0a9c){var _0x1f3bde=_0x3f6484,_0x6723ef=c({},_0x16ebcc[_0x1f3bde(0x1c0)]);_0xcb0a9c!=null&&_0xcb0a9c[_0x1f3bde(0x1bb)]&&_0x6723ef[_0x1f3bde(0x1e7)]===_0x1f3bde(0x1bb)&&(_0x6723ef[_0x1f3bde(0x1e7)]=_0xcb0a9c[_0x1f3bde(0x1bb)]),_0x16ebcc[_0x1f3bde(0x21c)]===_0x1f3bde(0x1db)&&_0x6723ef['id']&&(_0x6723ef['id']=_0x6723ef['id']+_0x75b34b[_0x1f3bde(0x21b)]),Object['entries'](_0x6723ef)['forEach'](function(_0x2c895a){var _0x49c895=_0x1f3bde,_0x5c9904=_0x2c895a[0x0],_0x40a37f=_0x2c895a[0x1];_0x5c9904==='mask'&&typeof _0x40a37f==_0x49c895(0x1ed)&&(_0x6723ef[_0x5c9904]=_0x40a37f[_0x49c895(0x1ea)](/url\(#(.*)\)/,_0x49c895(0x1bd)[_0x49c895(0x1e3)](_0x75b34b[_0x49c895(0x21b)],')')));});var _0x2fd371=_0x75b34b[_0x1f3bde(0x1e9)];return!_0x2fd371||_0x2fd371['length']===0x0||(_0x16ebcc[_0x1f3bde(0x21c)]===_0x1f3bde(0x1ac)&&_0x6723ef[_0x1f3bde(0x1dc)]&&(_0x6723ef[_0x1f3bde(0x1dc)]=_0x6723ef[_0x1f3bde(0x1dc)]+_0x75b34b['idSuffix']),Object[_0x1f3bde(0x239)](_0x6723ef)['forEach'](function(_0x37927e){var _0x1b7d52=_0x1f3bde,_0x4260ef=_0x37927e[0x0],_0x530e04=_0x37927e[0x1];typeof _0x530e04==_0x1b7d52(0x1ed)&&(_0x6723ef[_0x4260ef]=_0x530e04['replace'](/url\(#(.*)\)/,_0x1b7d52(0x1bd)[_0x1b7d52(0x1e3)](_0x75b34b['idSuffix'],')')));})),_0x6723ef;}function xe(_0x4af652,_0x4465eb){var _0x4fcfff=_0x3f6484,_0x5b2fd8,_0x3d2eb9=_0x4465eb[_0x4fcfff(0x1e9)];return!_0x3d2eb9||_0x3d2eb9[_0x4fcfff(0x232)]===0x0?_0x4af652:_0x4af652['tag']===_0x4fcfff(0x1a3)&&(!((_0x5b2fd8=_0x4af652['children'])===null||_0x5b2fd8===void 0x0)&&_0x5b2fd8[_0x4fcfff(0x232)])?c(c({},_0x4af652),{'children':_0x4af652['children'][_0x4fcfff(0x1a1)](function(_0x10eb05){var _0xc8f5d2=_0x4fcfff;return typeof _0x10eb05['attrs']['id']=='string'&&_0x3d2eb9&&_0x3d2eb9[_0xc8f5d2(0x1a8)](_0x10eb05[_0xc8f5d2(0x1c0)]['id'])?c(c({},_0x10eb05),{'attrs':c(c({},_0x10eb05['attrs']),{'id':_0x10eb05[_0xc8f5d2(0x1c0)]['id']+_0x4465eb[_0xc8f5d2(0x21b)]})}):_0x10eb05;})}):_0x4af652;}function Le(){var _0x5d4095=_0x3f6484;return Math[_0x5d4095(0x231)]()[_0x5d4095(0x236)](0x24)[_0x5d4095(0x201)](0x2,0x8);}W[_0x3f6484(0x203)]=_0x3f6484(0x1f7);function _0x7f9e(){var _0x3eb531=['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','getCurrentTypeOfUnit$','asObservable','requireSession','add','mask','xlink:href','getLiveShareCoordinator','OPERATION','disposeWithMe','_commandService','_handleNewChangeSets','getUnitId','concat','_presenter','sessionStatus$','propertyIsEnumerable','fill','find','defIds','replace','tryStartPresenting','current','string','pluginName','dispose','_sharedOperations','LIVESHARE_NEW_HOST','sheet','subscribe','then','presenting','currentColor','UniverIcon','has','getMemberID','symbol','hasOwnProperty','registerInitialStateReporter','_commandDisposable','_unitID','242377YmzVxA','offline','substring','You\x27re\x20presenting\x20the\x20document','displayName','_status','UNIVER_SHEET','_handleOffline','end','parse','status$','HEADER_MENU','not-following','_configService','stopPresenting','stopFollowing','event$','_liveShareService','_collabSessionService','_beIdle','_startLiveShareCoordinator','getInitialStates','Start\x20following','_reporters','trim','override','ONLINE','from','idSuffix','tag','10IGfOOw','NOT_FOLLOWING','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startFollowing','_collabSession','indexOf','getOwnPropertyDescriptor','_handleTerminate','_stopPresenting','_entities','http://www.w3.org/2000/svg','presenter','executeCommand','none','You\x27re\x20not\x20following\x20the\x20presenter','_config','next','icon','7CZhKKg','prototype','random','length','LIVESHARE_TERMINATE','NEW_CHANGESETS','0\x200\x2017\x2017','toString','_status$','className','entries','live-share.config','_startPresenting','pipe','You\x27re\x20following\x20the\x20presenter','getConfig','setConfig','complete','_injector','registerComponent','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','onStarting','FOLLOWING','call','default','set','values','Start','assign','defineProperty','forEach','registerSharedOperation','div','_handleOnline','823128IVqPmj','following','_uiPartsService','getOwnPropertySymbols','map','delete','defs','_univerInstanceService','function','idle','stringify','includes','type','text','Stop\x20presenting','use','_mountLiveShare','svg','onCommandExecuted','apply','params','6321213RJkBNu','_fetchOperations','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','univer-size-4','801804JtaDXZ','get','3310865aVKwsL','send','colorChannel1','children','url(#$1','LIVESHARE_OPERATION','evenodd','attrs','_init','extend','2420456oEYcnj','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','PRESENTING','getTypeOfUnitDisposed$','init','path','data','IDLE','_stopFollowing','LiveShareIcon','mutations','1em','3KgRTLY','startFollowing','1752152PGmLKe','shouldShareOperation','OFFLINE','live-share-icon','Stop\x20following'];_0x7f9e=function(){return _0x3eb531;};return _0x7f9e();}var ye={'tag':_0x3f6484(0x1ae),'attrs':{'xmlns':_0x3f6484(0x227),'fill':_0x3f6484(0x22a),'viewBox':_0x3f6484(0x235),'width':_0x3f6484(0x1ce),'height':_0x3f6484(0x1ce)},'children':[{'tag':_0x3f6484(0x1c8),'attrs':{'fill':_0x3f6484(0x1f6),'d':_0x3f6484(0x1d6)}},{'tag':_0x3f6484(0x1c8),'attrs':{'fill':_0x3f6484(0x1f6),'d':_0x3f6484(0x1c4),'fillRule':_0x3f6484(0x1bf),'clipRule':_0x3f6484(0x1bf)}}]},B=_0x2fbe4c(function(_0x4435b8,_0x49b74c){var _0x2cb07c=_0x3f6484;return _0x540073(W,Object[_0x2cb07c(0x197)]({},_0x4435b8,{'id':_0x2cb07c(0x1d4),'ref':_0x49b74c,'icon':ye}));});B['displayName']=_0x3f6484(0x1cc);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x3a7b9a,_0x425914,_0x4e20d1,_0x9b0c31)=>{var _0xcca0f1=_0x3f6484;for(var _0x1b158c=_0x9b0c31>0x1?void 0x0:_0x9b0c31?Re(_0x425914,_0x4e20d1):_0x425914,_0x9888e0=_0x3a7b9a[_0xcca0f1(0x232)]-0x1,_0x3495da;_0x9888e0>=0x0;_0x9888e0--)(_0x3495da=_0x3a7b9a[_0x9888e0])&&(_0x1b158c=_0x3495da(_0x1b158c)||_0x1b158c);return _0x1b158c;},f=(_0x56e26c,_0x5d4780)=>(_0x45d9d3,_0x4f8937)=>_0x5d4780(_0x45d9d3,_0x4f8937,_0x56e26c);let I=class extends _0x395f61{constructor(_0x1dc664,_0x5d4ab1,_0x3b7229){var _0x53726c=_0x3f6484;super(),d(this,_0x53726c(0x226),new Map()),(this[_0x53726c(0x1a4)]=_0x1dc664,this[_0x53726c(0x241)]=_0x5d4ab1,this[_0x53726c(0x211)]=_0x3b7229,this[_0x53726c(0x1c1)]());}async[_0x3f6484(0x1dd)](_0x452c4f){var _0x20d26f=_0x3f6484;return this['_entities'][_0x20d26f(0x1f8)](_0x452c4f)||await this[_0x20d26f(0x213)](_0x452c4f),this[_0x20d26f(0x226)][_0x20d26f(0x1b8)](_0x452c4f);}[_0x3f6484(0x1c1)](){var _0x2bc87f=_0x3f6484;this[_0x2bc87f(0x1a4)]['getTypeOfUnitAdded$'](_0x4d54d3[_0x2bc87f(0x205)])[_0x2bc87f(0x23c)](_0x8cada7(this[_0x2bc87f(0x1b4)]))[_0x2bc87f(0x1f3)](async _0x15e72b=>{var _0x15b0b6=_0x2bc87f;const _0x2212e0=_0x15e72b[_0x15b0b6(0x1e2)]();this[_0x15b0b6(0x226)][_0x15b0b6(0x1f8)](_0x2212e0)||this[_0x15b0b6(0x213)](_0x2212e0);}),this[_0x2bc87f(0x1a4)][_0x2bc87f(0x1c6)](_0x4d54d3[_0x2bc87f(0x205)])[_0x2bc87f(0x23c)](_0x8cada7(this['dispose$']))[_0x2bc87f(0x1f3)](_0x2d6ae1=>{var _0x3fd885=_0x2bc87f;const _0x2b4e67=_0x2d6ae1[_0x3fd885(0x1e2)](),_0x2668a5=this['_entities'][_0x3fd885(0x1b8)](_0x2b4e67);_0x2668a5==null||_0x2668a5[_0x3fd885(0x1ef)]();});}async[_0x3f6484(0x213)](_0x567d72){var _0x36e6cf=_0x3f6484;const _0x45f211=await this[_0x36e6cf(0x211)][_0x36e6cf(0x1d9)](_0x567d72),_0x63ab66=this[_0x36e6cf(0x241)]['createInstance'](C,_0x567d72,_0x45f211);return _0x63ab66[_0x36e6cf(0x1c7)](),this['_entities'][_0x36e6cf(0x194)](_0x567d72,_0x63ab66),_0x63ab66;}};I=Z([f(0x0,_0x42e888),f(0x1,_0xb0930d(_0xd563d9)),f(0x2,_0xb0930d(_0x44272f))],I);var h=(_0x581310=>(_0x581310['OFFLINE']=_0x3f6484(0x200),_0x581310[_0x3f6484(0x1ca)]='idle',_0x581310['FOLLOWING']=_0x3f6484(0x19e),_0x581310[_0x3f6484(0x21e)]=_0x3f6484(0x20b),_0x581310[_0x3f6484(0x1c5)]=_0x3f6484(0x1f5),_0x581310))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x395f61{constructor(_0x494d65,_0x46c792,_0x149535,_0x18250f,_0x4a8932){var _0x22ef4a=_0x3f6484;super(),d(this,_0x22ef4a(0x237),new _0x3ea211(_0x22ef4a(0x1a6))),d(this,_0x22ef4a(0x209),this[_0x22ef4a(0x237)][_0x22ef4a(0x1d8)]()),d(this,_0x22ef4a(0x1c1),!0x1),d(this,_0x22ef4a(0x1fd),null),d(this,_0x22ef4a(0x1e4),null),(this['_unitID']=_0x494d65,this['_collabSession']=_0x46c792,this['_configService']=_0x149535,this[_0x22ef4a(0x210)]=_0x18250f,this[_0x22ef4a(0x1e0)]=_0x4a8932);}get[_0x3f6484(0x204)](){var _0x2cc9fb=_0x3f6484;return this[_0x2cc9fb(0x237)]['getValue']();}[_0x3f6484(0x1ef)](){var _0x39ef2c=_0x3f6484,_0x4fe5c4;(_0x4fe5c4=this[_0x39ef2c(0x1fd)])==null||_0x4fe5c4[_0x39ef2c(0x1ef)](),this[_0x39ef2c(0x237)][_0x39ef2c(0x22d)](_0x39ef2c(0x1a6)),this[_0x39ef2c(0x237)][_0x39ef2c(0x240)]();}[_0x3f6484(0x1c7)](){var _0x18572f=_0x3f6484;this[_0x18572f(0x1c1)]||(this[_0x18572f(0x1c1)]=!0x0,this['_collabSession'][_0x18572f(0x1e5)][_0x18572f(0x23c)](_0x8cada7(this[_0x18572f(0x1b4)]))[_0x18572f(0x1f3)](_0x42ae8c=>{var _0x31b91f=_0x18572f;switch(_0x42ae8c){case _0x3b378c[_0x31b91f(0x1d3)]:this[_0x31b91f(0x206)]();break;case _0x3b378c[_0x31b91f(0x219)]:this[_0x31b91f(0x19c)]();break;}}),this[_0x18572f(0x221)][_0x18572f(0x20f)][_0x18572f(0x23c)](_0x8cada7(this[_0x18572f(0x1b4)]))[_0x18572f(0x1f3)](_0x196d01=>{var _0x3dfae5=_0x18572f;const {eventID:_0x4f894f}=_0x196d01;switch(_0x4f894f){case _0x3e33df[_0x3dfae5(0x1f1)]:this['_handleNewHost'](_0x196d01);break;case _0x3e33df[_0x3dfae5(0x1be)]:this['_handleOperation'](_0x196d01);break;case _0x3e33df[_0x3dfae5(0x233)]:this[_0x3dfae5(0x224)]();break;case _0x3e33df[_0x3dfae5(0x234)]:this[_0x3dfae5(0x1e1)](_0x196d01);break;}}));}[_0x3f6484(0x1eb)](){var _0x438b72=_0x3f6484;this[_0x438b72(0x221)][_0x438b72(0x1ba)]({'eventID':_0x3e33df['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x438b72(0x1fe)],'userID':this[_0x438b72(0x221)][_0x438b72(0x1f9)]()}},this[_0x438b72(0x1fe)]);}[_0x3f6484(0x20d)](){var _0x3e4909=_0x3f6484;this['_status']==='presenting'&&(this['_status$'][_0x3e4909(0x22d)](_0x3e4909(0x1a6)),this[_0x3e4909(0x221)]['send']({'eventID':_0x3e33df[_0x3e4909(0x233)],'data':{'unitID':this['_unitID']}},this[_0x3e4909(0x1fe)]));}[_0x3f6484(0x1d0)](){var _0x127056=_0x3f6484;this[_0x127056(0x204)]===_0x127056(0x20b)&&(this[_0x127056(0x237)][_0x127056(0x22d)](_0x127056(0x19e)),this[_0x127056(0x220)]());}[_0x3f6484(0x20e)](){var _0x1a6d1a=_0x3f6484;this[_0x1a6d1a(0x204)]===_0x1a6d1a(0x19e)&&this[_0x1a6d1a(0x1cb)]();}['_handleNewHost'](_0x5a6bda){var _0x10c723=_0x3f6484;const {presenter:_0x2a7e68}=_0x5a6bda[_0x10c723(0x1c9)],_0x4e429d=this[_0x10c723(0x221)][_0x10c723(0x1f9)]();this[_0x10c723(0x1e4)]=_0x2a7e68,_0x2a7e68===_0x4e429d?(this['_stopFollowing'](),this[_0x10c723(0x23b)]()):this[_0x10c723(0x204)]!==_0x10c723(0x20b)&&(this[_0x10c723(0x225)](),this[_0x10c723(0x220)]());}[_0x3f6484(0x1b3)](){var _0x49aa09=_0x3f6484;const _0xa41da9={'eventID':_0x3e33df['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x49aa09(0x1ba)](_0xa41da9,this[_0x49aa09(0x1fe)]);}[_0x3f6484(0x224)](){var _0x1f9165=_0x3f6484;this[_0x1f9165(0x1e4)]=null,this[_0x1f9165(0x204)]!==_0x1f9165(0x1f5)&&this[_0x1f9165(0x212)]();}['_handleNewChangeSets'](_0x461d9a){var _0x4c0f3d=_0x3f6484;if(this[_0x4c0f3d(0x204)]===_0x4c0f3d(0x19e)&&this[_0x4c0f3d(0x1e4)]===_0x461d9a[_0x4c0f3d(0x1c9)]['memberID']){const _0x4f74bf=_0x20f59d(_0x461d9a[_0x4c0f3d(0x1c9)])[_0x4c0f3d(0x1cd)]['reverse']()[_0x4c0f3d(0x1e8)](_0x193b6a=>_0x193b6a['id']===_0x4ed00e['id']);if(_0x4f74bf){const _0x276c08=_0x4f74bf[_0x4c0f3d(0x1b1)]['unitId'],_0x3ed59c=_0x4f74bf[_0x4c0f3d(0x1b1)][_0x4c0f3d(0x1f2)]['id'];setTimeout(()=>{var _0x15ee85=_0x4c0f3d;this[_0x15ee85(0x1e0)][_0x15ee85(0x229)](_0x5290c1['id'],{'unitId':_0x276c08,'subUnitId':_0x3ed59c},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3a9644=_0x3f6484;this[_0x3a9644(0x237)]['next']('presenting');const _0x1162ef=new Map(),_0x4965b0=this[_0x3a9644(0x1fd)]=new _0x3dec07();_0x4965b0[_0x3a9644(0x1da)](_0x5d9009(()=>{var _0x26301d=_0x3a9644;_0x1162ef['forEach'](_0x5dd723=>_0x5dd723[_0x26301d(0x240)]()),_0x1162ef['clear']();})),_0x4965b0[_0x3a9644(0x1da)](this[_0x3a9644(0x1e0)][_0x3a9644(0x1af)](_0x2d852f=>{var _0x58e171=_0x3a9644,_0x5beb35;if(_0x2d852f[_0x58e171(0x1a9)]!==_0x174ae4[_0x58e171(0x1de)]||!this[_0x58e171(0x210)][_0x58e171(0x1d2)](_0x2d852f['id']))return;const {id:_0x92cc89}=_0x2d852f;let _0x308529;_0x1162ef[_0x58e171(0x1f8)](_0x92cc89)?_0x308529=_0x1162ef[_0x58e171(0x1b8)](_0x92cc89):(_0x308529=new _0x3cce0e(),_0x1162ef[_0x58e171(0x194)](_0x92cc89,_0x308529),_0x308529[_0x58e171(0x23c)](_0x1b3bef((_0x5beb35=this[_0x58e171(0x20c)][_0x58e171(0x23e)](Pe))!=null?_0x5beb35:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x58e171(0x1f3)](_0x2636d0=>{var _0x445e4c=_0x58e171;this[_0x445e4c(0x221)][_0x445e4c(0x1ba)]({'eventID':_0x3e33df['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x445e4c(0x1fe)],'operations':{[_0x2636d0['id']]:{'id':_0x2636d0['id'],'params':JSON[_0x445e4c(0x1a7)](_0x2636d0[_0x445e4c(0x1b1)])}}}},this['_unitID']);})),_0x308529[_0x58e171(0x22d)](_0x2d852f);})),this[_0x3a9644(0x210)]['getInitialStates'](this['_unitID'])[_0x3a9644(0x199)](_0x466dd9=>this['_collabSession'][_0x3a9644(0x1ba)]({'eventID':_0x3e33df[_0x3a9644(0x1be)],'data':{'unitID':this['_unitID'],'operations':{[_0x466dd9['id']]:{'id':_0x466dd9['id'],'params':JSON[_0x3a9644(0x1a7)](_0x466dd9[_0x3a9644(0x1b1)])}}}},this[_0x3a9644(0x1fe)]));}[_0x3f6484(0x225)](){var _0x46b4bc=_0x3f6484,_0x9ed68b;this['_status$'][_0x46b4bc(0x22d)](_0x46b4bc(0x1a6)),(_0x9ed68b=this[_0x46b4bc(0x1fd)])==null||_0x9ed68b[_0x46b4bc(0x1ef)](),this[_0x46b4bc(0x1fd)]=null;}[_0x3f6484(0x220)](){var _0x39c7dd=_0x3f6484,_0x59b942;(_0x59b942=this['_commandDisposable'])==null||_0x59b942['dispose'](),this['_status$']['next'](_0x39c7dd(0x19e));}['_beIdle'](){var _0x45e4e2=_0x3f6484,_0x9bee58;this[_0x45e4e2(0x237)][_0x45e4e2(0x22d)]('idle'),(_0x9bee58=this[_0x45e4e2(0x1fd)])==null||_0x9bee58[_0x45e4e2(0x1ef)](),this[_0x45e4e2(0x1fd)]=null;}['_stopFollowing'](){var _0x597f23=_0x3f6484,_0x5ddbcd;this[_0x597f23(0x237)][_0x597f23(0x22d)](_0x597f23(0x20b)),(_0x5ddbcd=this[_0x597f23(0x1fd)])==null||_0x5ddbcd[_0x597f23(0x1ef)]();}['_handleOperation'](_0x17bd60){var _0xfb4874=_0x3f6484;if(['presenting',_0xfb4874(0x20b),'offline'][_0xfb4874(0x1a8)](this[_0xfb4874(0x204)])||!_0x17bd60['data'][_0xfb4874(0x228)]||_0x17bd60[_0xfb4874(0x1c9)][_0xfb4874(0x228)]===this[_0xfb4874(0x221)][_0xfb4874(0x1f9)]())return;this[_0xfb4874(0x204)]===_0xfb4874(0x1a6)&&this[_0xfb4874(0x220)]();const _0x965bf3=_0x17bd60[_0xfb4874(0x1c9)]['operations'];Object[_0xfb4874(0x195)](_0x965bf3)[_0xfb4874(0x199)](_0x4b4011=>{var _0x534f5a=_0xfb4874;this[_0x534f5a(0x1e0)][_0x534f5a(0x229)](_0x4b4011['id'],_0x4b4011[_0x534f5a(0x1b1)]?JSON[_0x534f5a(0x208)](_0x4b4011[_0x534f5a(0x1b1)]):null,{'fromCollab':!0x0});});}[_0x3f6484(0x206)](){var _0x30acc3=_0x3f6484,_0x42c01a;this['_status$'][_0x30acc3(0x22d)](_0x30acc3(0x200)),(_0x42c01a=this[_0x30acc3(0x1fd)])==null||_0x42c01a['dispose']();}[_0x3f6484(0x19c)](){var _0x259562=_0x3f6484;this[_0x259562(0x237)][_0x259562(0x22d)]('idle'),this[_0x259562(0x1b3)]();}};C=Z([f(0x2,_0x12e4b9),f(0x3,_0xb0930d(L)),f(0x4,_0x49d015)],C);function _0x1eb5(_0x1413f4,_0x250eb2){var _0x7f9ee4=_0x7f9e();return _0x1eb5=function(_0x1eb595,_0x5387a3){_0x1eb595=_0x1eb595-0x190;var _0x2df395=_0x7f9ee4[_0x1eb595];return _0x2df395;},_0x1eb5(_0x1413f4,_0x250eb2);}function Te(){var _0x583f4b=_0x3f6484;const _0x399aba=_0xa5510d(I),_0x28420b=_0xa5510d(_0x42e888),_0x51aeeb=_0x2d9124(()=>_0x28420b[_0x583f4b(0x1d7)](_0x4d54d3[_0x583f4b(0x205)]),void 0x0,!0x1,[]),[_0x52efed,_0x434724]=_0x54cd30(null),[_0x4b9a75,_0x55c526]=_0x54cd30(h[_0x583f4b(0x1ca)]),_0x46be48=_0x2d77f1(null);return _0x27b4cf(()=>(_0x51aeeb&&_0x399aba['getLiveShareCoordinator'](_0x51aeeb['getUnitId']())[_0x583f4b(0x1f4)](_0x5f192c=>{var _0x328361=_0x583f4b;_0x434724(_0x5f192c),_0x46be48[_0x328361(0x1ec)]=_0x5f192c[_0x328361(0x209)][_0x328361(0x1f3)](_0x3d4060=>{_0x55c526(_0x3d4060);});}),()=>{var _0x5cdf7b=_0x583f4b,_0x201cbb;(_0x201cbb=_0x46be48['current'])==null||_0x201cbb['unsubscribe'](),_0x46be48[_0x5cdf7b(0x1ec)]=null;}),[_0x51aeeb,_0x399aba]),_0x52efed?_0x43ea3b(_0x1da88c,{'align':_0x583f4b(0x207),'disabled':_0x4b9a75===h[_0x583f4b(0x1d3)],'className':_0x583f4b(0x1b5),'overlay':_0x43ea3b($e,{'status':_0x4b9a75,'coordinator':_0x52efed}),'children':_0x43ea3b('button',{'className':_0x5c6958(_0x583f4b(0x243),{'univer-cursor-not-allowed':_0x4b9a75===h[_0x583f4b(0x1d3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4b9a75!==h[_0x583f4b(0x1d3)]}),'type':'button','children':_0x43ea3b(B,{'className':_0x583f4b(0x1b6)})})}):null;}function $e(_0x13bc4c){var _0x265915=_0x3f6484;const {status:_0x48012f,coordinator:_0x516e3b}=_0x13bc4c;switch(_0x48012f){case h[_0x265915(0x1ca)]:return _0x43ea3b(Fe,{'coordinator':_0x516e3b});case h[_0x265915(0x191)]:return _0x43ea3b(He,{'coordinator':_0x516e3b});case h['NOT_FOLLOWING']:return _0x43ea3b(je,{'coordinator':_0x516e3b});case h[_0x265915(0x1d3)]:return _0x43ea3b(Ve,{});case h[_0x265915(0x1c5)]:return _0x43ea3b(Ue,{'coordinator':_0x516e3b});default:return null;}}function Fe(_0x573df3){var _0xa672ca=_0x3f6484;const {coordinator:_0xebfc2f}=_0x573df3;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0xa672ca(0x19b),{'className':_0xa672ca(0x21f),'children':'Present\x20this\x20document'}),_0x43ea3b(_0x5149cf,{'onClick':()=>_0xebfc2f['tryStartPresenting'](),'children':_0xa672ca(0x196)})]});}function He(_0x41fbf6){var _0x1ee31d=_0x3f6484;const {coordinator:_0x37657d}=_0x41fbf6;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0x1ee31d(0x19b),{'className':_0x1ee31d(0x21f),'children':_0x1ee31d(0x23d)}),_0x43ea3b(_0x5149cf,{'onClick':()=>_0x37657d[_0x1ee31d(0x20e)](),'children':_0x1ee31d(0x1d5)})]});}function je(_0x4efb1f){var _0xb7817a=_0x3f6484;const {coordinator:_0x5323d5}=_0x4efb1f;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0xb7817a(0x19b),{'className':_0xb7817a(0x21f),'children':_0xb7817a(0x22b)}),_0x43ea3b(_0x5149cf,{'variant':_0xb7817a(0x1aa),'onClick':()=>_0x5323d5['startFollowing'](),'children':_0xb7817a(0x215)})]});}function Ue(_0x2400a5){var _0x10c872=_0x3f6484;const {coordinator:_0x678897}=_0x2400a5;return _0x3a2126(_0x4fe31c,{'children':[_0x43ea3b(_0x10c872(0x19b),{'className':_0x10c872(0x21f),'children':_0x10c872(0x202)}),_0x43ea3b(_0x5149cf,{'variant':_0x10c872(0x193),'onClick':()=>_0x678897[_0x10c872(0x20d)](),'children':_0x10c872(0x1ab)})]});}function Ve(){return _0x43ea3b(_0x4fe31c,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x3f6484(0x223)],ke=(_0x34d0b8,_0x2ee673,_0x128d4e,_0xe1a25e)=>{for(var _0xc38861=_0xe1a25e>0x1?void 0x0:_0xe1a25e?Me(_0x2ee673,_0x128d4e):_0x2ee673,_0x318b76=_0x34d0b8['length']-0x1,_0x34d245;_0x318b76>=0x0;_0x318b76--)(_0x34d245=_0x34d0b8[_0x318b76])&&(_0xc38861=_0x34d245(_0xc38861)||_0xc38861);return _0xc38861;},$=(_0x26f81e,_0x37b05b)=>(_0x152a4e,_0x2d1235)=>_0x37b05b(_0x152a4e,_0x2d1235,_0x26f81e);let b=class extends _0x1c6341{constructor(_0x4f07bf,_0x5cd3be){var _0x28bc21=_0x3f6484;super(),this['_injector']=_0x4f07bf,this[_0x28bc21(0x19f)]=_0x5cd3be,this[_0x28bc21(0x1ad)]();}[_0x3f6484(0x1ad)](){var _0x25745e=_0x3f6484;this[_0x25745e(0x1df)](this[_0x25745e(0x19f)][_0x25745e(0x242)](_0x40a2e7[_0x25745e(0x20a)],()=>_0x326657(Te,this['_injector'])));}};b=ke([$(0x0,_0xb0930d(_0xd563d9)),$(0x1,_0x66463e)],b);var Ge=Object[_0x3f6484(0x198)],We=Object[_0x3f6484(0x223)],Ye=(_0x5ebbef,_0x54a7f1,_0x5a39f0)=>_0x54a7f1 in _0x5ebbef?Ge(_0x5ebbef,_0x54a7f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a39f0}):_0x5ebbef[_0x54a7f1]=_0x5a39f0,Be=(_0x11243b,_0x12def3,_0x2b35e5,_0x7a80aa)=>{var _0x46fe2f=_0x3f6484;for(var _0xf5d9ba=_0x7a80aa>0x1?void 0x0:_0x7a80aa?We(_0x12def3,_0x2b35e5):_0x12def3,_0x589e8c=_0x11243b[_0x46fe2f(0x232)]-0x1,_0x246e11;_0x589e8c>=0x0;_0x589e8c--)(_0x246e11=_0x11243b[_0x589e8c])&&(_0xf5d9ba=_0x246e11(_0xf5d9ba)||_0xf5d9ba);return _0xf5d9ba;},F=(_0x5a0550,_0x7dd6b5)=>(_0x19ad5f,_0x5d4f6d)=>_0x7dd6b5(_0x19ad5f,_0x5d4f6d,_0x5a0550),J=(_0xe2c96e,_0x5a0c64,_0xdff54d)=>Ye(_0xe2c96e,typeof _0x5a0c64!='symbol'?_0x5a0c64+'':_0x5a0c64,_0xdff54d);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1608cc{constructor(_0x280542=T,_0x5ec4f2,_0x26ccde){var _0x35c66=_0x3f6484;super(),this[_0x35c66(0x22c)]=_0x280542,this[_0x35c66(0x241)]=_0x5ec4f2,this['_configService']=_0x26ccde;const {..._0x229c31}=_0x17d777({},T,this[_0x35c66(0x22c)]);this[_0x35c66(0x20c)][_0x35c66(0x23f)](Oe,_0x229c31);}[_0x3f6484(0x190)](){var _0x464908=_0x3f6484;_0x2e569d(this[_0x464908(0x241)],_0x4e9805([[L],[I],[m],[b]],this[_0x464908(0x22c)][_0x464908(0x218)])),_0x5a07de(this[_0x464908(0x241)],[[m]]);}['onRendered'](){var _0x460f41=_0x3f6484;_0x5a07de(this[_0x460f41(0x241)],[[b]]);}};J(O,'type',_0x4d54d3['UNIVER_UNKNOWN']),J(O,_0x3f6484(0x1ee),Ze),O=Be([_0x311632(_0x589148),F(0x1,_0xb0930d(_0xd563d9)),F(0x2,_0x12e4b9)],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(_0x1a489d,_0x515638){var _0x5e67f0=_0x239d,_0x10d62f=_0x1a489d();while(!![]){try{var _0x189b98=-parseInt(_0x5e67f0(0x13a))/0x1+parseInt(_0x5e67f0(0x17b))/0x2+-parseInt(_0x5e67f0(0xeb))/0x3+-parseInt(_0x5e67f0(0x16a))/0x4+-parseInt(_0x5e67f0(0xe6))/0x5*(-parseInt(_0x5e67f0(0x147))/0x6)+parseInt(_0x5e67f0(0x12f))/0x7*(parseInt(_0x5e67f0(0x128))/0x8)+parseInt(_0x5e67f0(0x154))/0x9*(parseInt(_0x5e67f0(0xbb))/0xa);if(_0x189b98===_0x515638)break;else _0x10d62f['push'](_0x10d62f['shift']());}catch(_0x14a98c){_0x10d62f['push'](_0x10d62f['shift']());}}}(_0x10ea,0x91db1),function(_0x42236a,_0x20ed7e){var _0x2a4172=_0x239d;typeof exports==_0x2a4172(0xec)&&typeof module<'u'?_0x20ed7e(exports,require(_0x2a4172(0x10a)),require(_0x2a4172(0x145)),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require(_0x2a4172(0xa5)),require('@univerjs/design'),require(_0x2a4172(0x122)),require(_0x2a4172(0xc2)),require(_0x2a4172(0x181)),require(_0x2a4172(0xe0))):typeof define==_0x2a4172(0x155)&&define[_0x2a4172(0xdf)]?define([_0x2a4172(0x9a),'@univerjs-pro/collaboration-client',_0x2a4172(0x145),'@univerjs/sheets',_0x2a4172(0x17f),_0x2a4172(0xe1),'react/jsx-runtime',_0x2a4172(0x12b),'react',_0x2a4172(0xc2),_0x2a4172(0x181),_0x2a4172(0xe0)],_0x20ed7e):(_0x42236a=typeof globalThis<'u'?globalThis:_0x42236a||self,_0x20ed7e(_0x42236a['UniverProLiveShare']={},_0x42236a[_0x2a4172(0xf7)],_0x42236a[_0x2a4172(0x12a)],_0x42236a[_0x2a4172(0xb1)],_0x42236a['UniverSheetsUi'],_0x42236a['UniverUi'],_0x42236a[_0x2a4172(0xb5)],_0x42236a[_0x2a4172(0x13b)],_0x42236a[_0x2a4172(0xb5)],_0x42236a[_0x2a4172(0x17c)],_0x42236a['rxjs'],_0x42236a[_0x2a4172(0x181)][_0x2a4172(0x137)]));}(this,function(_0x35f0fd,_0x1af8c5,_0x1e3932,_0x42416c,_0xf4b45a,_0x39350c,_0x28fb15,_0xc7301d,_0x1307ab,_0x3e5058,_0x34268f,_0x5a7a7b){'use strict';var _0x5a5647=_0x239d;var _0x2f9514=Object[_0x5a5647(0x163)],_0x8ed210=(_0x11488e,_0x341615,_0x82f26d)=>_0x341615 in _0x11488e?_0x2f9514(_0x11488e,_0x341615,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x82f26d}):_0x11488e[_0x341615]=_0x82f26d,_0x44d794=(_0x385eab,_0x3e86bd,_0x47cd15)=>_0x8ed210(_0x385eab,typeof _0x3e86bd!=_0x5a5647(0xb8)?_0x3e86bd+'':_0x3e86bd,_0x47cd15);const _0xc941b=_0x5a5647(0x17e),_0x1c7f95={};class _0x542db8 extends _0x1e3932[_0x5a5647(0x103)]{constructor(){var _0x3a6b8d=_0x5a5647;super(...arguments),_0x44d794(this,_0x3a6b8d(0xab),new Set()),_0x44d794(this,'_reporters',new Set());}[_0x5a5647(0x99)](_0x558694){var _0x56e7ef=_0x5a5647;return this[_0x56e7ef(0xab)][_0x56e7ef(0xca)](_0x558694),_0x1e3932[_0x56e7ef(0x107)](()=>this[_0x56e7ef(0xab)][_0x56e7ef(0xb9)](_0x558694));}[_0x5a5647(0xc1)](_0x1f6e67){var _0x184172=_0x5a5647;return this['_reporters'][_0x184172(0xca)](_0x1f6e67),_0x1e3932['toDisposable'](()=>this[_0x184172(0xdb)]['delete'](_0x1f6e67));}['shouldShareOperation'](_0x25af6e){var _0x249a01=_0x5a5647;return this[_0x249a01(0xab)]['has'](_0x25af6e);}['getInitialStates'](_0x4eaba8){var _0x3977db=_0x5a5647;return Array['from'](this[_0x3977db(0xdb)])[_0x3977db(0x13f)](_0x10ebb6=>_0x10ebb6(_0x4eaba8));}}var _0x30f16f=Object[_0x5a5647(0xfb)],_0x18822c=(_0x4c7b21,_0x15b5ac,_0x1532ba,_0x4522d7)=>{var _0x543c9f=_0x5a5647;for(var _0x28bdbb=_0x4522d7>0x1?void 0x0:_0x4522d7?_0x30f16f(_0x15b5ac,_0x1532ba):_0x15b5ac,_0x4ea2ef=_0x4c7b21[_0x543c9f(0x139)]-0x1,_0x2cdad5;_0x4ea2ef>=0x0;_0x4ea2ef--)(_0x2cdad5=_0x4c7b21[_0x4ea2ef])&&(_0x28bdbb=_0x2cdad5(_0x28bdbb)||_0x28bdbb);return _0x28bdbb;},_0x2cd7dc=(_0x3caaea,_0x41eba0)=>(_0xe1694a,_0x213c94)=>_0x41eba0(_0xe1694a,_0x213c94,_0x3caaea);let _0x14aea2=class extends _0x1e3932[_0x5a5647(0x103)]{constructor(_0xdc58a6){var _0xffcc39=_0x5a5647;super(),this['_liveShareService']=_0xdc58a6,this[_0xffcc39(0x143)]();}[_0x5a5647(0x143)](){var _0x5b8031=_0x5a5647;[_0xf4b45a[_0x5b8031(0x152)]['id'],_0xf4b45a[_0x5b8031(0xf8)]['id'],_0x42416c['SetWorksheetActiveOperation']['id']][_0x5b8031(0x166)](_0x26a064=>{var _0x40d9cf=_0x5b8031;this[_0x40d9cf(0x149)](this['_liveShareService'][_0x40d9cf(0x99)](_0x26a064));});}};_0x14aea2=_0x18822c([_0x2cd7dc(0x0,_0x1e3932[_0x5a5647(0x97)](_0x542db8))],_0x14aea2);var _0x5685f8=function(){var _0x5cf891=_0x5a5647;return _0x5685f8=Object['assign']||function(_0x41fd46){var _0x313dc4=_0x239d;for(var _0x2e9bbe,_0x86e697=0x1,_0x5ab618=arguments['length'];_0x86e697<_0x5ab618;_0x86e697++){_0x2e9bbe=arguments[_0x86e697];for(var _0x29786c in _0x2e9bbe)Object[_0x313dc4(0xd0)][_0x313dc4(0xc3)][_0x313dc4(0x11a)](_0x2e9bbe,_0x29786c)&&(_0x41fd46[_0x29786c]=_0x2e9bbe[_0x29786c]);}return _0x41fd46;},_0x5685f8[_0x5cf891(0x176)](this,arguments);},_0x3af98c=function(_0x5936be,_0x9c945d){var _0x434fee=_0x5a5647,_0x16e151={};for(var _0x28537e in _0x5936be)Object[_0x434fee(0xd0)][_0x434fee(0xc3)][_0x434fee(0x11a)](_0x5936be,_0x28537e)&&_0x9c945d[_0x434fee(0xe4)](_0x28537e)<0x0&&(_0x16e151[_0x28537e]=_0x5936be[_0x28537e]);if(_0x5936be!=null&&typeof Object[_0x434fee(0x175)]=='function'){for(var _0x5b77d1=0x0,_0x28537e=Object[_0x434fee(0x175)](_0x5936be);_0x5b77d1<_0x28537e[_0x434fee(0x139)];_0x5b77d1++)_0x9c945d['indexOf'](_0x28537e[_0x5b77d1])<0x0&&Object[_0x434fee(0xd0)][_0x434fee(0x130)][_0x434fee(0x11a)](_0x5936be,_0x28537e[_0x5b77d1])&&(_0x16e151[_0x28537e[_0x5b77d1]]=_0x5936be[_0x28537e[_0x5b77d1]]);}return _0x16e151;},_0x3b0eec=_0x1307ab[_0x5a5647(0xd4)](function(_0x310517,_0x3ae614){var _0x5a2c59=_0x5a5647,_0x115953=_0x310517[_0x5a2c59(0x15d)],_0x52478d=_0x310517['id'],_0x2387ee=_0x310517['className'],_0x144c9a=_0x310517['extend'],_0x1942ca=_0x3af98c(_0x310517,['icon','id',_0x5a2c59(0xf6),_0x5a2c59(0x136)]),_0x173f30=_0x5a2c59(0x127)['concat'](_0x52478d,'\x20')['concat'](_0x2387ee||'')[_0x5a2c59(0x142)](),_0x5cd513=_0x1307ab['useRef']('_'[_0x5a2c59(0x116)](_0x5b4ef4()));return _0x9f1b35(_0x115953,''[_0x5a2c59(0x116)](_0x52478d),{'defIds':_0x115953[_0x5a2c59(0x125)],'idSuffix':_0x5cd513[_0x5a2c59(0x159)]},_0x5685f8({'ref':_0x3ae614,'className':_0x173f30},_0x1942ca),_0x144c9a);});function _0x9f1b35(_0x97604b,_0x2c045e,_0x3a0797,_0x1923ea,_0x440b11){var _0x993f25=_0x5a5647;return _0x1307ab[_0x993f25(0xa2)](_0x97604b['tag'],_0x5685f8(_0x5685f8({'key':_0x2c045e},_0x1db026(_0x97604b,_0x3a0797,_0x440b11)),_0x1923ea),(_0x2b92b0(_0x97604b,_0x3a0797)[_0x993f25(0x150)]||[])[_0x993f25(0x13f)](function(_0xc704a5,_0xc5a3e9){var _0x4480b8=_0x993f25;return _0x9f1b35(_0xc704a5,''['concat'](_0x2c045e,'-')[_0x4480b8(0x116)](_0x97604b[_0x4480b8(0x9c)],'-')[_0x4480b8(0x116)](_0xc5a3e9),_0x3a0797,void 0x0,_0x440b11);}));}function _0x1db026(_0x55738a,_0xe7a543,_0x307ea6){var _0x9256fb=_0x5a5647,_0x52a566=_0x5685f8({},_0x55738a[_0x9256fb(0x16c)]);_0x307ea6!=null&&_0x307ea6[_0x9256fb(0x14c)]&&_0x52a566[_0x9256fb(0x11c)]===_0x9256fb(0x14c)&&(_0x52a566[_0x9256fb(0x11c)]=_0x307ea6[_0x9256fb(0x14c)]),_0x55738a[_0x9256fb(0x9c)]===_0x9256fb(0xd2)&&_0x52a566['id']&&(_0x52a566['id']=_0x52a566['id']+_0xe7a543['idSuffix']),Object[_0x9256fb(0xce)](_0x52a566)[_0x9256fb(0x166)](function(_0x271ac2){var _0x4f414d=_0x9256fb,_0x18e6bd=_0x271ac2[0x0],_0x3e306b=_0x271ac2[0x1];_0x18e6bd===_0x4f414d(0xd2)&&typeof _0x3e306b==_0x4f414d(0xf0)&&(_0x52a566[_0x18e6bd]=_0x3e306b['replace'](/url\(#(.*)\)/,'url(#$1'[_0x4f414d(0x116)](_0xe7a543['idSuffix'],')')));});var _0x16a660=_0xe7a543[_0x9256fb(0x125)];return!_0x16a660||_0x16a660['length']===0x0||(_0x55738a[_0x9256fb(0x9c)]===_0x9256fb(0x104)&&_0x52a566[_0x9256fb(0xbc)]&&(_0x52a566['xlink:href']=_0x52a566[_0x9256fb(0xbc)]+_0xe7a543[_0x9256fb(0x12d)]),Object['entries'](_0x52a566)[_0x9256fb(0x166)](function(_0x256bf2){var _0x248a3f=_0x9256fb,_0x3e4fc6=_0x256bf2[0x0],_0x18136b=_0x256bf2[0x1];typeof _0x18136b==_0x248a3f(0xf0)&&(_0x52a566[_0x3e4fc6]=_0x18136b[_0x248a3f(0xdc)](/url\(#(.*)\)/,_0x248a3f(0xc0)[_0x248a3f(0x116)](_0xe7a543[_0x248a3f(0x12d)],')')));})),_0x52a566;}function _0x2b92b0(_0x763f75,_0x30a5d3){var _0x460834=_0x5a5647,_0x2b1674,_0x1a7e4f=_0x30a5d3[_0x460834(0x125)];return!_0x1a7e4f||_0x1a7e4f[_0x460834(0x139)]===0x0?_0x763f75:_0x763f75[_0x460834(0x9c)]==='defs'&&(!((_0x2b1674=_0x763f75[_0x460834(0x150)])===null||_0x2b1674===void 0x0)&&_0x2b1674[_0x460834(0x139)])?_0x5685f8(_0x5685f8({},_0x763f75),{'children':_0x763f75['children']['map'](function(_0x256244){var _0x459d0f=_0x460834;return typeof _0x256244[_0x459d0f(0x16c)]['id']=='string'&&_0x1a7e4f&&_0x1a7e4f[_0x459d0f(0xba)](_0x256244['attrs']['id'])?_0x5685f8(_0x5685f8({},_0x256244),{'attrs':_0x5685f8(_0x5685f8({},_0x256244[_0x459d0f(0x16c)]),{'id':_0x256244[_0x459d0f(0x16c)]['id']+_0x30a5d3[_0x459d0f(0x12d)]})}):_0x256244;})}):_0x763f75;}function _0x5b4ef4(){var _0x58e9cb=_0x5a5647;return Math[_0x58e9cb(0xbf)]()[_0x58e9cb(0x123)](0x24)[_0x58e9cb(0xe5)](0x2,0x8);}_0x3b0eec[_0x5a5647(0x115)]='UniverIcon';var _0x23f10e={'tag':_0x5a5647(0x10e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5a5647(0xf1),'viewBox':_0x5a5647(0x10b),'width':'1em','height':_0x5a5647(0xd3)},'children':[{'tag':_0x5a5647(0xe2),'attrs':{'fill':_0x5a5647(0x8d),'d':_0x5a5647(0x183)}},{'tag':_0x5a5647(0xe2),'attrs':{'fill':_0x5a5647(0x8d),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x5a5647(0x109),'clipRule':_0x5a5647(0x109)}}]},_0x23fd9a=_0x1307ab['forwardRef'](function(_0x3c8dc6,_0x21c1f7){var _0x5677fb=_0x5a5647;return _0x1307ab[_0x5677fb(0xa2)](_0x3b0eec,Object[_0x5677fb(0x140)]({},_0x3c8dc6,{'id':_0x5677fb(0xa9),'ref':_0x21c1f7,'icon':_0x23f10e}));});_0x23fd9a[_0x5a5647(0x115)]=_0x5a5647(0x96);var _0x1ad72d=Object[_0x5a5647(0xfb)],_0x10d18e=(_0x35f48,_0x1f148c,_0x4f24c8,_0x3ccabe)=>{for(var _0x429d7e=_0x3ccabe>0x1?void 0x0:_0x3ccabe?_0x1ad72d(_0x1f148c,_0x4f24c8):_0x1f148c,_0x2f60c4=_0x35f48['length']-0x1,_0x4233ce;_0x2f60c4>=0x0;_0x2f60c4--)(_0x4233ce=_0x35f48[_0x2f60c4])&&(_0x429d7e=_0x4233ce(_0x429d7e)||_0x429d7e);return _0x429d7e;},_0x27b262=(_0x4b8a8b,_0xc8f605)=>(_0x321100,_0x5ab918)=>_0xc8f605(_0x321100,_0x5ab918,_0x4b8a8b);_0x35f0fd[_0x5a5647(0xcf)]=class extends _0x1e3932[_0x5a5647(0x13d)]{constructor(_0x49bac1,_0x2ea969,_0x1a70c6){var _0x1f1214=_0x5a5647;super(),_0x44d794(this,_0x1f1214(0x13c),new Map()),(this[_0x1f1214(0xc6)]=_0x49bac1,this[_0x1f1214(0xde)]=_0x2ea969,this[_0x1f1214(0x129)]=_0x1a70c6,this['_init']());}async[_0x5a5647(0x12c)](_0x4a7893){var _0x4c02ea=_0x5a5647;return this['_entities'][_0x4c02ea(0xc5)](_0x4a7893)||await this['_startLiveShareCoordinator'](_0x4a7893),this[_0x4c02ea(0x13c)][_0x4c02ea(0x146)](_0x4a7893);}[_0x5a5647(0x143)](){var _0x36cb7e=_0x5a5647;this[_0x36cb7e(0xc6)][_0x36cb7e(0x15c)](_0x1e3932[_0x36cb7e(0xfe)][_0x36cb7e(0x98)])['pipe'](_0x5a7a7b[_0x36cb7e(0x135)](this[_0x36cb7e(0xea)]))[_0x36cb7e(0xb2)](async _0x2da058=>{var _0x4c5f33=_0x36cb7e;const _0x1f69c6=_0x2da058[_0x4c5f33(0xac)]();this[_0x4c5f33(0x13c)][_0x4c5f33(0xc5)](_0x1f69c6)||this[_0x4c5f33(0x10c)](_0x1f69c6);}),this[_0x36cb7e(0xc6)][_0x36cb7e(0x86)](_0x1e3932['UniverInstanceType']['UNIVER_SHEET'])['pipe'](_0x5a7a7b['takeUntil'](this['dispose$']))[_0x36cb7e(0xb2)](_0x36df86=>{var _0x519510=_0x36cb7e;const _0x238de5=_0x36df86['getUnitId'](),_0x3de463=this[_0x519510(0x13c)][_0x519510(0x146)](_0x238de5);_0x3de463==null||_0x3de463[_0x519510(0x15e)]();});}async[_0x5a5647(0x10c)](_0x35521d){var _0x59cbf8=_0x5a5647;const _0x4cdb44=await this['_collabSessionService'][_0x59cbf8(0xa4)](_0x35521d),_0x94e45a=this[_0x59cbf8(0xde)]['createInstance'](_0x35f0fd[_0x59cbf8(0xd6)],_0x35521d,_0x4cdb44);return _0x94e45a[_0x59cbf8(0xe8)](),this['_entities']['set'](_0x35521d,_0x94e45a),_0x94e45a;}},_0x35f0fd[_0x5a5647(0xcf)]=_0x10d18e([_0x27b262(0x0,_0x1e3932[_0x5a5647(0x179)]),_0x27b262(0x1,_0x1e3932[_0x5a5647(0x97)](_0x1e3932[_0x5a5647(0x131)])),_0x27b262(0x2,_0x1e3932['Inject'](_0x1af8c5[_0x5a5647(0x8a)]))],_0x35f0fd['LiveShareController']);var _0x4f1812=(_0x1c7f30=>(_0x1c7f30[_0x5a5647(0x95)]='offline',_0x1c7f30[_0x5a5647(0x13e)]=_0x5a5647(0x114),_0x1c7f30[_0x5a5647(0xd8)]=_0x5a5647(0xc7),_0x1c7f30[_0x5a5647(0x151)]='not-following',_0x1c7f30[_0x5a5647(0x110)]=_0x5a5647(0x120),_0x1c7f30))(_0x4f1812||{});const _0x8660b2=_0x5a5647(0xa7),_0x56f4b4=0xc8;_0x35f0fd[_0x5a5647(0xd6)]=class extends _0x1e3932[_0x5a5647(0x13d)]{constructor(_0x156356,_0x2624ff,_0x39e58f,_0x56778b,_0x147e9e){var _0xacb112=_0x5a5647;super(),_0x44d794(this,_0xacb112(0xb3),new _0x34268f['BehaviorSubject'](_0xacb112(0x114))),_0x44d794(this,_0xacb112(0x158),this[_0xacb112(0xb3)][_0xacb112(0x177)]()),_0x44d794(this,'_init',!0x1),_0x44d794(this,'_commandDisposable',null),_0x44d794(this,_0xacb112(0x8e),null),(this[_0xacb112(0xd7)]=_0x156356,this['_collabSession']=_0x2624ff,this[_0xacb112(0xc8)]=_0x39e58f,this[_0xacb112(0x8c)]=_0x56778b,this[_0xacb112(0xff)]=_0x147e9e);}get[_0x5a5647(0x141)](){var _0x38b59b=_0x5a5647;return this[_0x38b59b(0xb3)][_0x38b59b(0x144)]();}[_0x5a5647(0x15e)](){var _0x53bad7=_0x5a5647,_0x81801a;(_0x81801a=this['_commandDisposable'])==null||_0x81801a[_0x53bad7(0x15e)](),this[_0x53bad7(0xb3)][_0x53bad7(0x106)](_0x53bad7(0x114)),this[_0x53bad7(0xb3)][_0x53bad7(0xa0)]();}[_0x5a5647(0xe8)](){var _0x26e8d0=_0x5a5647;this[_0x26e8d0(0x143)]||(this[_0x26e8d0(0x143)]=!0x0,this[_0x26e8d0(0x156)][_0x26e8d0(0x11f)][_0x26e8d0(0x16e)](_0x5a7a7b[_0x26e8d0(0x135)](this[_0x26e8d0(0xea)]))[_0x26e8d0(0xb2)](_0xd448e4=>{var _0x253f5e=_0x26e8d0;switch(_0xd448e4){case _0x1af8c5[_0x253f5e(0x124)][_0x253f5e(0x95)]:this[_0x253f5e(0x161)]();break;case _0x1af8c5[_0x253f5e(0x124)][_0x253f5e(0x102)]:this[_0x253f5e(0x162)]();break;}}),this[_0x26e8d0(0x156)][_0x26e8d0(0x160)][_0x26e8d0(0x16e)](_0x5a7a7b['takeUntil'](this['dispose$']))['subscribe'](_0x344f95=>{var _0x45548d=_0x26e8d0;const {eventID:_0x145158}=_0x344f95;switch(_0x145158){case _0x3e5058[_0x45548d(0x167)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x344f95);break;case _0x3e5058['CollaborationEvent'][_0x45548d(0x126)]:this[_0x45548d(0x15f)](_0x344f95);break;case _0x3e5058['CollaborationEvent'][_0x45548d(0x112)]:this[_0x45548d(0x91)]();break;case _0x3e5058[_0x45548d(0x167)][_0x45548d(0x108)]:this[_0x45548d(0x101)](_0x344f95);break;}}));}[_0x5a5647(0x15b)](){var _0x330927=_0x5a5647;this['_collabSession'][_0x330927(0x14b)]({'eventID':_0x3e5058['CollaborationEvent'][_0x330927(0x14f)],'data':{'unitID':this['_unitID'],'userID':this[_0x330927(0x156)][_0x330927(0xc9)]()}},this[_0x330927(0xd7)]);}[_0x5a5647(0x8b)](){var _0x704b80=_0x5a5647;this[_0x704b80(0x141)]==='presenting'&&(this['_status$']['next'](_0x704b80(0x114)),this[_0x704b80(0x156)]['send']({'eventID':_0x3e5058[_0x704b80(0x167)][_0x704b80(0x112)],'data':{'unitID':this[_0x704b80(0xd7)]}},this[_0x704b80(0xd7)]));}[_0x5a5647(0x132)](){var _0x2e83e2=_0x5a5647;this[_0x2e83e2(0x141)]==='not-following'&&(this['_status$']['next'](_0x2e83e2(0xc7)),this[_0x2e83e2(0x100)]());}[_0x5a5647(0x94)](){var _0xf7834e=_0x5a5647;this[_0xf7834e(0x141)]===_0xf7834e(0xc7)&&this[_0xf7834e(0x9d)]();}[_0x5a5647(0xfd)](_0x20a261){var _0x3ee418=_0x5a5647;const {presenter:_0x53f3a2}=_0x20a261[_0x3ee418(0xaa)],_0x25323e=this['_collabSession'][_0x3ee418(0xc9)]();this[_0x3ee418(0x8e)]=_0x53f3a2,_0x53f3a2===_0x25323e?(this[_0x3ee418(0x9d)](),this[_0x3ee418(0xaf)]()):this[_0x3ee418(0x141)]!==_0x3ee418(0xc4)&&(this['_stopPresenting'](),this[_0x3ee418(0x100)]());}[_0x5a5647(0xcd)](){var _0x4b745d=_0x5a5647;const _0x57c148={'eventID':_0x3e5058[_0x4b745d(0x167)][_0x4b745d(0x9b)]};this[_0x4b745d(0x156)]['send'](_0x57c148,this[_0x4b745d(0xd7)]);}[_0x5a5647(0x91)](){var _0x562078=_0x5a5647;this[_0x562078(0x8e)]=null,this[_0x562078(0x141)]!==_0x562078(0x120)&&this['_beIdle']();}[_0x5a5647(0x101)](_0x263c98){var _0x43247f=_0x5a5647;if(this[_0x43247f(0x141)]===_0x43247f(0xc7)&&this[_0x43247f(0x8e)]===_0x263c98['data'][_0x43247f(0x119)]){const _0x3ae601=_0x3e5058[_0x43247f(0x10f)](_0x263c98[_0x43247f(0xaa)])[_0x43247f(0x105)]['reverse']()[_0x43247f(0x11b)](_0x2fcc9e=>_0x2fcc9e['id']===_0x42416c[_0x43247f(0xd9)]['id']);if(_0x3ae601){const _0x4d1cb9=_0x3ae601['params'][_0x43247f(0xda)],_0x5f1836=_0x3ae601['params'][_0x43247f(0xf5)]['id'];setTimeout(()=>{var _0x514ea0=_0x43247f;this['_commandService'][_0x514ea0(0x169)](_0x42416c[_0x514ea0(0xe7)]['id'],{'unitId':_0x4d1cb9,'subUnitId':_0x5f1836},{'fromCollab':!0x0});});}}}[_0x5a5647(0xaf)](){var _0x23c46b=_0x5a5647;this[_0x23c46b(0xb3)][_0x23c46b(0x106)]('presenting');const _0x28c0cb=new Map(),_0x1e4c87=this[_0x23c46b(0x17a)]=new _0x1e3932[(_0x23c46b(0xb0))]();_0x1e4c87[_0x23c46b(0xca)](_0x1e3932[_0x23c46b(0x107)](()=>{var _0x4200e3=_0x23c46b;_0x28c0cb[_0x4200e3(0x166)](_0x187c6b=>_0x187c6b[_0x4200e3(0xa0)]()),_0x28c0cb[_0x4200e3(0x12e)]();})),_0x1e4c87[_0x23c46b(0xca)](this['_commandService']['onCommandExecuted'](_0x179099=>{var _0x38b6c2=_0x23c46b,_0x56f3cc;if(_0x179099[_0x38b6c2(0x164)]!==_0x1e3932[_0x38b6c2(0x92)]['OPERATION']||!this['_liveShareService'][_0x38b6c2(0xdd)](_0x179099['id']))return;const {id:_0x4fa700}=_0x179099;let _0x350658;_0x28c0cb[_0x38b6c2(0xc5)](_0x4fa700)?_0x350658=_0x28c0cb[_0x38b6c2(0x146)](_0x4fa700):(_0x350658=new _0x34268f[(_0x38b6c2(0x172))](),_0x28c0cb[_0x38b6c2(0x14d)](_0x4fa700,_0x350658),_0x350658['pipe'](_0x5a7a7b[_0x38b6c2(0xd5)]((_0x56f3cc=this['_configService'][_0x38b6c2(0xd1)](_0x8660b2))!=null?_0x56f3cc:_0x56f4b4,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38b6c2(0xb2)](_0x3b4a04=>{var _0x24ca6f=_0x38b6c2;this[_0x24ca6f(0x156)][_0x24ca6f(0x14b)]({'eventID':_0x3e5058['CollaborationEvent'][_0x24ca6f(0x126)],'data':{'unitID':this['_unitID'],'operations':{[_0x3b4a04['id']]:{'id':_0x3b4a04['id'],'params':JSON[_0x24ca6f(0x180)](_0x3b4a04[_0x24ca6f(0x165)])}}}},this[_0x24ca6f(0xd7)]);})),_0x350658[_0x38b6c2(0x106)](_0x179099);})),this['_liveShareService'][_0x23c46b(0x90)](this['_unitID'])[_0x23c46b(0x166)](_0x57e901=>this[_0x23c46b(0x156)]['send']({'eventID':_0x3e5058[_0x23c46b(0x167)][_0x23c46b(0x126)],'data':{'unitID':this['_unitID'],'operations':{[_0x57e901['id']]:{'id':_0x57e901['id'],'params':JSON[_0x23c46b(0x180)](_0x57e901['params'])}}}},this[_0x23c46b(0xd7)]));}[_0x5a5647(0x9f)](){var _0x1be8c9=_0x5a5647,_0x42829f;this['_status$']['next'](_0x1be8c9(0x114)),(_0x42829f=this['_commandDisposable'])==null||_0x42829f[_0x1be8c9(0x15e)](),this[_0x1be8c9(0x17a)]=null;}[_0x5a5647(0x100)](){var _0x2cbe87=_0x5a5647,_0x18aedf;(_0x18aedf=this['_commandDisposable'])==null||_0x18aedf[_0x2cbe87(0x15e)](),this[_0x2cbe87(0xb3)][_0x2cbe87(0x106)](_0x2cbe87(0xc7));}['_beIdle'](){var _0x451a80=_0x5a5647,_0x2408a4;this[_0x451a80(0xb3)][_0x451a80(0x106)]('idle'),(_0x2408a4=this[_0x451a80(0x17a)])==null||_0x2408a4['dispose'](),this['_commandDisposable']=null;}[_0x5a5647(0x9d)](){var _0x1e0159=_0x5a5647,_0x46cef2;this[_0x1e0159(0xb3)][_0x1e0159(0x106)](_0x1e0159(0xc4)),(_0x46cef2=this[_0x1e0159(0x17a)])==null||_0x46cef2[_0x1e0159(0x15e)]();}[_0x5a5647(0x15f)](_0x13e822){var _0x44bb16=_0x5a5647;if(['presenting',_0x44bb16(0xc4),'offline'][_0x44bb16(0xba)](this[_0x44bb16(0x141)])||!_0x13e822[_0x44bb16(0xaa)][_0x44bb16(0xf9)]||_0x13e822[_0x44bb16(0xaa)][_0x44bb16(0xf9)]===this['_collabSession']['getMemberID']())return;this[_0x44bb16(0x141)]===_0x44bb16(0x114)&&this['_startFollowing']();const _0x2f474c=_0x13e822['data'][_0x44bb16(0x121)];Object[_0x44bb16(0x89)](_0x2f474c)[_0x44bb16(0x166)](_0x568096=>{var _0x489945=_0x44bb16;this[_0x489945(0xff)][_0x489945(0x169)](_0x568096['id'],_0x568096[_0x489945(0x165)]?JSON[_0x489945(0x14e)](_0x568096[_0x489945(0x165)]):null,{'fromCollab':!0x0});});}[_0x5a5647(0x161)](){var _0x46b810=_0x5a5647,_0x2998ef;this['_status$']['next'](_0x46b810(0x168)),(_0x2998ef=this[_0x46b810(0x17a)])==null||_0x2998ef[_0x46b810(0x15e)]();}['_handleOnline'](){var _0x1fda52=_0x5a5647;this[_0x1fda52(0xb3)][_0x1fda52(0x106)](_0x1fda52(0x114)),this[_0x1fda52(0xcd)]();}},_0x35f0fd[_0x5a5647(0xd6)]=_0x10d18e([_0x27b262(0x2,_0x1e3932[_0x5a5647(0x8f)]),_0x27b262(0x3,_0x1e3932[_0x5a5647(0x97)](_0x542db8)),_0x27b262(0x4,_0x1e3932[_0x5a5647(0x16f)])],_0x35f0fd[_0x5a5647(0xd6)]);function _0x342c10(){var _0x44c984=_0x5a5647;const _0xe03455=_0x39350c[_0x44c984(0x157)](_0x35f0fd[_0x44c984(0xcf)]),_0x8f3d50=_0x39350c[_0x44c984(0x157)](_0x1e3932[_0x44c984(0x179)]),_0x1b921e=_0x39350c['useObservable'](()=>_0x8f3d50[_0x44c984(0x14a)](_0x1e3932[_0x44c984(0xfe)][_0x44c984(0x98)]),void 0x0,!0x1,[]),[_0x4f7c4d,_0x591979]=_0x1307ab[_0x44c984(0xe3)](null),[_0x4d9be0,_0x16534d]=_0x1307ab['useState'](_0x4f1812[_0x44c984(0x13e)]),_0x4cdae1=_0x1307ab[_0x44c984(0x184)](null);return _0x1307ab[_0x44c984(0x11d)](()=>(_0x1b921e&&_0xe03455[_0x44c984(0x12c)](_0x1b921e[_0x44c984(0xac)]())[_0x44c984(0xa8)](_0xc0aa39=>{var _0xaed5cf=_0x44c984;_0x591979(_0xc0aa39),_0x4cdae1[_0xaed5cf(0x159)]=_0xc0aa39[_0xaed5cf(0x158)][_0xaed5cf(0xb2)](_0x501478=>{_0x16534d(_0x501478);});}),()=>{var _0x4ad6f4=_0x44c984,_0x10a777;(_0x10a777=_0x4cdae1[_0x4ad6f4(0x159)])==null||_0x10a777[_0x4ad6f4(0xbe)](),_0x4cdae1[_0x4ad6f4(0x159)]=null;}),[_0x1b921e,_0xe03455]),_0x4f7c4d?_0x28fb15[_0x44c984(0xcb)](_0xc7301d[_0x44c984(0xa3)],{'align':_0x44c984(0x9e),'disabled':_0x4d9be0===_0x4f1812[_0x44c984(0x95)],'className':_0x44c984(0x174),'overlay':_0x28fb15['jsx'](_0x2b9c0a,{'status':_0x4d9be0,'coordinator':_0x4f7c4d}),'children':_0x28fb15['jsx'](_0x44c984(0xb7),{'className':_0xc7301d[_0x44c984(0xb6)](_0x44c984(0x148),{'univer-cursor-not-allowed':_0x4d9be0===_0x4f1812['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4d9be0!==_0x4f1812[_0x44c984(0x95)]}),'type':_0x44c984(0xb7),'children':_0x28fb15[_0x44c984(0xcb)](_0x23fd9a,{'className':_0x44c984(0x118)})})}):null;}function _0x2b9c0a(_0x340024){var _0x1008df=_0x5a5647;const {status:_0x5e448f,coordinator:_0x588924}=_0x340024;switch(_0x5e448f){case _0x4f1812['IDLE']:return _0x28fb15[_0x1008df(0xcb)](_0x14442f,{'coordinator':_0x588924});case _0x4f1812['FOLLOWING']:return _0x28fb15[_0x1008df(0xcb)](_0x14d574,{'coordinator':_0x588924});case _0x4f1812[_0x1008df(0x151)]:return _0x28fb15[_0x1008df(0xcb)](_0x8b8c3,{'coordinator':_0x588924});case _0x4f1812[_0x1008df(0x95)]:return _0x28fb15[_0x1008df(0xcb)](_0x40e91f,{});case _0x4f1812[_0x1008df(0x110)]:return _0x28fb15[_0x1008df(0xcb)](_0x54bb84,{'coordinator':_0x588924});default:return null;}}function _0x14442f(_0x136150){var _0x4c84af=_0x5a5647;const {coordinator:_0x3d21d9}=_0x136150;return _0x28fb15[_0x4c84af(0xbd)](_0x28fb15['Fragment'],{'children':[_0x28fb15[_0x4c84af(0xcb)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x28fb15['jsx'](_0xc7301d['Button'],{'onClick':()=>_0x3d21d9['tryStartPresenting'](),'children':'Start'})]});}function _0x14d574(_0x369ece){var _0x2958fa=_0x5a5647;const {coordinator:_0x12f497}=_0x369ece;return _0x28fb15['jsxs'](_0x28fb15[_0x2958fa(0x153)],{'children':[_0x28fb15[_0x2958fa(0xcb)](_0x2958fa(0xf3),{'className':_0x2958fa(0xcc),'children':_0x2958fa(0xed)}),_0x28fb15[_0x2958fa(0xcb)](_0xc7301d['Button'],{'onClick':()=>_0x12f497['stopFollowing'](),'children':_0x2958fa(0x185)})]});}function _0x8b8c3(_0x1be9f4){var _0x2e7d10=_0x5a5647;const {coordinator:_0x24ed60}=_0x1be9f4;return _0x28fb15[_0x2e7d10(0xbd)](_0x28fb15[_0x2e7d10(0x153)],{'children':[_0x28fb15[_0x2e7d10(0xcb)]('div',{'className':_0x2e7d10(0xcc),'children':_0x2e7d10(0x87)}),_0x28fb15['jsx'](_0xc7301d['Button'],{'variant':_0x2e7d10(0x17d),'onClick':()=>_0x24ed60[_0x2e7d10(0x132)](),'children':'Start\x20following'})]});}function _0x54bb84(_0x5e76d6){var _0xbd6b77=_0x5a5647;const {coordinator:_0x1461c2}=_0x5e76d6;return _0x28fb15[_0xbd6b77(0xbd)](_0x28fb15[_0xbd6b77(0x153)],{'children':[_0x28fb15[_0xbd6b77(0xcb)]('div',{'className':_0xbd6b77(0xcc),'children':_0xbd6b77(0x16d)}),_0x28fb15[_0xbd6b77(0xcb)](_0xc7301d[_0xbd6b77(0x113)],{'variant':_0xbd6b77(0xef),'onClick':()=>_0x1461c2[_0xbd6b77(0x8b)](),'children':_0xbd6b77(0x178)})]});}function _0x40e91f(){var _0x4fc133=_0x5a5647;return _0x28fb15[_0x4fc133(0xcb)](_0x28fb15[_0x4fc133(0x153)],{'children':_0x4fc133(0xf2)});}var _0x4beb18=Object[_0x5a5647(0xfb)],_0x182385=(_0x5c3e7d,_0x13680f,_0x375a0d,_0x2f48eb)=>{for(var _0x390d50=_0x2f48eb>0x1?void 0x0:_0x2f48eb?_0x4beb18(_0x13680f,_0x375a0d):_0x13680f,_0x44ae47=_0x5c3e7d['length']-0x1,_0x52f3a5;_0x44ae47>=0x0;_0x44ae47--)(_0x52f3a5=_0x5c3e7d[_0x44ae47])&&(_0x390d50=_0x52f3a5(_0x390d50)||_0x390d50);return _0x390d50;},_0x5c81f9=(_0x11603d,_0x1013e6)=>(_0xa8949,_0x1d2402)=>_0x1013e6(_0xa8949,_0x1d2402,_0x11603d);_0x35f0fd[_0x5a5647(0xa1)]=class extends _0x1e3932['Disposable']{constructor(_0x358d3b,_0x2d0b43){var _0x1fc5fc=_0x5a5647;super(),this[_0x1fc5fc(0xde)]=_0x358d3b,this[_0x1fc5fc(0x117)]=_0x2d0b43,this[_0x1fc5fc(0x93)]();}['_mountLiveShare'](){var _0x256531=_0x5a5647;this[_0x256531(0x149)](this[_0x256531(0x117)][_0x256531(0xb4)](_0x39350c['BuiltInUIPart']['HEADER_MENU'],()=>_0x39350c[_0x256531(0x138)](_0x342c10,this[_0x256531(0xde)])));}},_0x35f0fd[_0x5a5647(0xa1)]=_0x182385([_0x5c81f9(0x0,_0x1e3932[_0x5a5647(0x97)](_0x1e3932['Injector'])),_0x5c81f9(0x1,_0x39350c['IUIPartsService'])],_0x35f0fd[_0x5a5647(0xa1)]);var _0x21cb67=Object[_0x5a5647(0x163)],_0x58b8f2=Object[_0x5a5647(0xfb)],_0x38b0b9=(_0x564cbb,_0x2e4c3b,_0x2f2b2b)=>_0x2e4c3b in _0x564cbb?_0x21cb67(_0x564cbb,_0x2e4c3b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f2b2b}):_0x564cbb[_0x2e4c3b]=_0x2f2b2b,_0x1e0560=(_0x2415b9,_0x20b3e0,_0x26fd10,_0x507417)=>{var _0x49fefa=_0x5a5647;for(var _0x401817=_0x507417>0x1?void 0x0:_0x507417?_0x58b8f2(_0x20b3e0,_0x26fd10):_0x20b3e0,_0x16a834=_0x2415b9[_0x49fefa(0x139)]-0x1,_0x22fafd;_0x16a834>=0x0;_0x16a834--)(_0x22fafd=_0x2415b9[_0x16a834])&&(_0x401817=_0x22fafd(_0x401817)||_0x401817);return _0x401817;},_0x9a6a90=(_0x496a81,_0x2a05c2)=>(_0x4d41f5,_0xa1b1a4)=>_0x2a05c2(_0x4d41f5,_0xa1b1a4,_0x496a81),_0x527854=(_0x1ef1ed,_0x2cf727,_0x58a349)=>_0x38b0b9(_0x1ef1ed,typeof _0x2cf727!='symbol'?_0x2cf727+'':_0x2cf727,_0x58a349);const _0x199f82=_0x5a5647(0x182);_0x35f0fd[_0x5a5647(0xe9)]=class extends _0x1e3932[_0x5a5647(0xfc)]{constructor(_0x1955ef=_0x1c7f95,_0x42296d,_0x4244a1){var _0x550f3a=_0x5a5647;super(),this[_0x550f3a(0x171)]=_0x1955ef,this[_0x550f3a(0xde)]=_0x42296d,this[_0x550f3a(0xc8)]=_0x4244a1;const {..._0x42a4a3}=_0x1e3932[_0x550f3a(0x111)]({},_0x1c7f95,this[_0x550f3a(0x171)]);this[_0x550f3a(0xc8)][_0x550f3a(0x170)](_0xc941b,_0x42a4a3);}[_0x5a5647(0xf4)](){var _0x5d2036=_0x5a5647;_0x1e3932[_0x5d2036(0x15a)](this[_0x5d2036(0xde)],_0x1e3932[_0x5d2036(0x133)]([[_0x542db8],[_0x35f0fd[_0x5d2036(0xcf)]],[_0x14aea2],[_0x35f0fd[_0x5d2036(0xa1)]]],this[_0x5d2036(0x171)][_0x5d2036(0xfa)])),_0x1e3932[_0x5d2036(0xae)](this[_0x5d2036(0xde)],[[_0x14aea2]]);}[_0x5a5647(0x16b)](){var _0x1ea10b=_0x5a5647;_0x1e3932[_0x1ea10b(0xae)](this[_0x1ea10b(0xde)],[[_0x35f0fd[_0x1ea10b(0xa1)]]]);}},_0x527854(_0x35f0fd[_0x5a5647(0xe9)],'type',_0x1e3932[_0x5a5647(0xfe)][_0x5a5647(0x88)]),_0x527854(_0x35f0fd[_0x5a5647(0xe9)],_0x5a5647(0xee),_0x199f82),_0x35f0fd[_0x5a5647(0xe9)]=_0x1e0560([_0x1e3932['DependentOn'](_0x1af8c5[_0x5a5647(0xa6)]),_0x9a6a90(0x1,_0x1e3932[_0x5a5647(0x97)](_0x1e3932[_0x5a5647(0x131)])),_0x9a6a90(0x2,_0x1e3932[_0x5a5647(0x8f)])],_0x35f0fd[_0x5a5647(0xe9)]),_0x35f0fd[_0x5a5647(0x134)]=_0x342c10,_0x35f0fd[_0x5a5647(0xad)]=_0x542db8,_0x35f0fd[_0x5a5647(0x10d)]=_0x4f1812,Object[_0x5a5647(0x163)](_0x35f0fd,Symbol[_0x5a5647(0x11e)],{'value':_0x5a5647(0x173)});}));function _0x239d(_0x4b2383,_0x4b3dae){var _0x10eaad=_0x10ea();return _0x239d=function(_0x239dd4,_0x3b9d06){_0x239dd4=_0x239dd4-0x86;var _0xb7efe0=_0x10eaad[_0x239dd4];return _0xb7efe0;},_0x239d(_0x4b2383,_0x4b3dae);}function _0x10ea(){var _0x3442fb=['idle','displayName','concat','_uiPartsService','univer-size-4','memberID','call','find','fill','useEffect','toStringTag','sessionStatus$','presenting','operations','react','toString','SessionStatus','defIds','LIVESHARE_OPERATION','univerjs-icon\x20univerjs-icon-','7877192hiksTE','_collabSessionService','UniverCore','@univerjs/design','getLiveShareCoordinator','idSuffix','clear','7pfpeMa','propertyIsEnumerable','Injector','startFollowing','mergeOverrideWithDependencies','LiveShare','takeUntil','extend','operators','connectInjector','length','19612xpOuAs','UniverDesign','_entities','RxDisposable','IDLE','map','assign','_status','trim','_init','getValue','@univerjs/core','get','204rlaUyV','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','getCurrentTypeOfUnit$','send','colorChannel1','set','parse','LIVESHARE_REQUEST_HOST','children','NOT_FOLLOWING','SetZoomRatioOperation','Fragment','5526TcajKy','function','_collabSession','useDependency','status$','current','registerDependencies','tryStartPresenting','getTypeOfUnitAdded$','icon','dispose','_handleOperation','event$','_handleOffline','_handleOnline','defineProperty','type','params','forEach','CollaborationEvent','offline','executeCommand','1203024eveQFt','onRendered','attrs','You\x27re\x20presenting\x20the\x20document','pipe','ICommandService','setConfig','_config','Subject','Module','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','getOwnPropertySymbols','apply','asObservable','Stop\x20presenting','IUniverInstanceService','_commandDisposable','812080uwMiXr','UniverProCollaboration','text','live-share.config','@univerjs/sheets-ui','stringify','rxjs','UNIVER_LIVE_SHARE_PLUGIN','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','useRef','Stop\x20following','getTypeOfUnitDisposed$','You\x27re\x20not\x20following\x20the\x20presenter','UNIVER_UNKNOWN','values','CollaborationSessionService','stopPresenting','_liveShareService','currentColor','_presenter','IConfigService','getInitialStates','_handleTerminate','CommandType','_mountLiveShare','stopFollowing','OFFLINE','LiveShareIcon','Inject','UNIVER_SHEET','registerSharedOperation','exports','LIVESHARE_FETCH_OPERATIONS','tag','_stopFollowing','end','_stopPresenting','complete','DesktopLiveShareController','createElement','Dropdown','requireSession','react/jsx-runtime','UniverCollaborationClientPlugin','SAME_OPERATION_SHARE_INTERVAL','then','live-share-icon','data','_sharedOperations','getUnitId','LiveShareService','touchDependencies','_startPresenting','DisposableCollection','UniverSheets','subscribe','_status$','registerComponent','React','clsx','button','symbol','delete','includes','3530IzINdK','xlink:href','jsxs','unsubscribe','random','url(#$1','registerInitialStateReporter','@univerjs-pro/collaboration','hasOwnProperty','not-following','has','_univerInstanceService','following','_configService','getMemberID','add','jsx','univer-mb-3\x20univer-w-full\x20univer-text-sm','_fetchOperations','entries','LiveShareController','prototype','getConfig','mask','1em','forwardRef','throttleTime','LiveShareCoordinator','_unitID','FOLLOWING','InsertSheetMutation','unitId','_reporters','replace','shouldShareOperation','_injector','amd','rxjs/operators','@univerjs/ui','path','useState','indexOf','substring','17445SGArub','SetWorksheetActiveOperation','init','UniverLiveSharePlugin','dispose$','2424792rJXDnr','object','You\x27re\x20following\x20the\x20presenter','pluginName','default','string','none','You\x27are\x20offline.','div','onStarting','sheet','className','UniverProCollaborationClient','SetScrollOperation','presenter','override','getOwnPropertyDescriptor','Plugin','_handleNewHost','UniverInstanceType','_commandService','_startFollowing','_handleNewChangeSets','ONLINE','Disposable','use','mutations','next','toDisposable','NEW_CHANGESETS','evenodd','@univerjs-pro/collaboration-client','0\x200\x2017\x2017','_startLiveShareCoordinator','LiveShareStatus','svg','parseProtocolChangeset','PRESENTING','merge','LIVESHARE_TERMINATE','Button'];_0x10ea=function(){return _0x3442fb;};return _0x10ea();}
1
+ function _0x51e2(_0x344cbf,_0x3737c5){var _0x257899=_0x2578();return _0x51e2=function(_0x51e2e1,_0x456d9a){_0x51e2e1=_0x51e2e1-0x1da;var _0x32c4d2=_0x257899[_0x51e2e1];return _0x32c4d2;},_0x51e2(_0x344cbf,_0x3737c5);}function _0x2578(){var _0xa71c6e=['dispose$','244990cbnjwa','toDisposable','complete','UniverUi','startFollowing','@univerjs/design','IConfigService','onStarting','17899RZkjSF','SetScrollOperation','path','_unitID','@univerjs/ui','OFFLINE','useEffect','IUniverInstanceService','187uKDHVy','disposeWithMe','_startLiveShareCoordinator','operators','unsubscribe','button','SetWorksheetActiveOperation','init','presenter','mask','IDLE','exports','connectInjector','React','Start','1686bdBBSb','getUnitId','stringify','http://www.w3.org/2000/svg','Disposable','@univerjs-pro/collaboration','trim','_presenter','getLiveShareCoordinator','following','takeUntil','function','getOwnPropertyDescriptor','data','presenting','propertyIsEnumerable','_status','IUIPartsService','_injector','shouldShareOperation','useRef','SAME_OPERATION_SHARE_INTERVAL','rxjs','live-share.config','type','_config','Fragment','LIVESHARE_TERMINATE','LIVESHARE_REQUEST_HOST','indexOf','NEW_CHANGESETS','toString','256OBIbeA','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','CollaborationEvent','not-following','SessionStatus','BehaviorSubject','Module','_handleTerminate','colorChannel1','_sharedOperations','useDependency','event$','Present\x20this\x20document','find','url(#$1','div','PRESENTING','rxjs/operators','xlink:href','svg','univer-mb-3\x20univer-w-full\x20univer-text-sm','replace','_mountLiveShare','LiveShareStatus','@univerjs/sheets','getValue','Inject','delete','requireSession','none','_handleNewChangeSets','onCommandExecuted','assign','@univerjs/sheets-ui','reverse','Start\x20following','CollaborationSessionService','getConfig','_init','UniverLiveSharePlugin','4mfbmDB','memberID','DisposableCollection','throttleTime','has','ICommandService','_handleNewHost','getMemberID','66482Jerdzu','_collabSession','defs','end','1337265oMTvBi','LiveShareCoordinator','params','FOLLOWING','0\x200\x2017\x2017','evenodd','Injector','CommandType','_collabSessionService','text','registerDependencies','_reporters','from','UniverInstanceType','3313705zzuRKo','_stopFollowing','_handleOperation','LiveShare','currentColor','RxDisposable','NOT_FOLLOWING','offline','subscribe','UniverCore','DependentOn','add','Plugin','_commandService','dispose','icon','length','HEADER_MENU','prototype','LiveShareController','idSuffix','tag','displayName','touchDependencies','getTypeOfUnitDisposed$','fill','concat','UniverIcon','_uiPartsService','current','className','_fetchOperations','LiveShareIcon','_commandDisposable','createElement','_startPresenting','_status$','1574512idLtZc','defineProperty','operations','random','getTypeOfUnitAdded$','1em','_liveShareService','_univerInstanceService','clear','toStringTag','defIds','values','string','LIVESHARE_NEW_HOST','UniverProLiveShare','DesktopLiveShareController','live-share-icon','symbol','set','parse','hasOwnProperty','4260YjgoSg','stopPresenting','You\x27re\x20presenting\x20the\x20document','10667LSOpDn','amd','_configService','UniverProCollaborationClient','@univerjs/core','UniverCollaborationClientPlugin','_handleOffline','call','jsxs','_startFollowing','next','UniverSheets','Button','includes','idle','send','18FtSPFD','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','substring','LIVESHARE_OPERATION','getCurrentTypeOfUnit$','univerjs-icon\x20univerjs-icon-','setConfig','You\x27re\x20not\x20following\x20the\x20presenter','registerSharedOperation','tryStartPresenting','forEach','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getOwnPropertySymbols','status$','attrs','OPERATION','get','@univerjs-pro/collaboration-client','react','children','jsx','Subject','UniverProCollaboration','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','stopFollowing','pipe','useState','UNIVER_SHEET','clsx','_entities','getInitialStates','map','UniverDesign','entries','UniverSheetsUi','_beIdle','ONLINE','sheet','react/jsx-runtime','Dropdown'];_0x2578=function(){return _0xa71c6e;};return _0x2578();}(function(_0x2b191c,_0x3f6961){var _0x24beab=_0x51e2,_0x534f12=_0x2b191c();while(!![]){try{var _0x3af95f=parseInt(_0x24beab(0x281))/0x1*(-parseInt(_0x24beab(0x202))/0x2)+-parseInt(_0x24beab(0x236))/0x3+-parseInt(_0x24beab(0x22a))/0x4*(parseInt(_0x24beab(0x244))/0x5)+parseInt(_0x24beab(0x1e2))/0x6*(parseInt(_0x24beab(0x2c2))/0x7)+-parseInt(_0x24beab(0x269))/0x8*(-parseInt(_0x24beab(0x291))/0x9)+parseInt(_0x24beab(0x2ba))/0xa*(parseInt(_0x24beab(0x2ca))/0xb)+parseInt(_0x24beab(0x27e))/0xc*(parseInt(_0x24beab(0x232))/0xd);if(_0x3af95f===_0x3f6961)break;else _0x534f12['push'](_0x534f12['shift']());}catch(_0x27c2b5){_0x534f12['push'](_0x534f12['shift']());}}}(_0x2578,0xd4752),function(_0x4d76c7,_0x2dd344){var _0x46480e=_0x51e2;typeof exports=='object'&&typeof module<'u'?_0x2dd344(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require(_0x46480e(0x21a)),require('@univerjs/sheets-ui'),require(_0x46480e(0x2c6)),require(_0x46480e(0x2b7)),require(_0x46480e(0x2bf)),require(_0x46480e(0x2a3)),require(_0x46480e(0x1e7)),require(_0x46480e(0x1f8)),require(_0x46480e(0x213))):typeof define==_0x46480e(0x1ed)&&define[_0x46480e(0x282)]?define([_0x46480e(0x1de),_0x46480e(0x2a2),_0x46480e(0x285),_0x46480e(0x21a),_0x46480e(0x223),'@univerjs/ui',_0x46480e(0x2b7),_0x46480e(0x2bf),_0x46480e(0x2a3),'@univerjs-pro/collaboration',_0x46480e(0x1f8),'rxjs/operators'],_0x2dd344):(_0x4d76c7=typeof globalThis<'u'?globalThis:_0x4d76c7||self,_0x2dd344(_0x4d76c7[_0x46480e(0x277)]={},_0x4d76c7[_0x46480e(0x284)],_0x4d76c7[_0x46480e(0x24d)],_0x4d76c7[_0x46480e(0x28c)],_0x4d76c7[_0x46480e(0x2b3)],_0x4d76c7[_0x46480e(0x2bd)],_0x4d76c7[_0x46480e(0x1e0)],_0x4d76c7[_0x46480e(0x2b1)],_0x4d76c7[_0x46480e(0x1e0)],_0x4d76c7[_0x46480e(0x2a7)],_0x4d76c7[_0x46480e(0x1f8)],_0x4d76c7['rxjs'][_0x46480e(0x2cd)]));}(this,function(_0x51f9ed,_0x48665f,_0x485ecf,_0x219aae,_0x4dfe15,_0x57616f,_0x563fcb,_0x2dc538,_0x5f3208,_0x2f0030,_0x459ea5,_0x5f2e92){'use strict';var _0x12abdc=_0x51e2;var _0x16d109=Object[_0x12abdc(0x26a)],_0x5b63df=(_0x57fc0d,_0x5ba474,_0x130d90)=>_0x5ba474 in _0x57fc0d?_0x16d109(_0x57fc0d,_0x5ba474,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x130d90}):_0x57fc0d[_0x5ba474]=_0x130d90,_0x52a734=(_0x54ae85,_0xce642f,_0x37edce)=>_0x5b63df(_0x54ae85,typeof _0xce642f!='symbol'?_0xce642f+'':_0xce642f,_0x37edce);const _0x15f181=_0x12abdc(0x1f9),_0x5362c1={};class _0x583b40 extends _0x485ecf[_0x12abdc(0x1e6)]{constructor(){var _0x581848=_0x12abdc;super(...arguments),_0x52a734(this,_0x581848(0x20b),new Set()),_0x52a734(this,_0x581848(0x241),new Set());}[_0x12abdc(0x299)](_0x347388){var _0x112182=_0x12abdc;return this['_sharedOperations'][_0x112182(0x24f)](_0x347388),_0x485ecf[_0x112182(0x2bb)](()=>this[_0x112182(0x20b)][_0x112182(0x21d)](_0x347388));}['registerInitialStateReporter'](_0x271a1b){var _0x4dd6e7=_0x12abdc;return this[_0x4dd6e7(0x241)][_0x4dd6e7(0x24f)](_0x271a1b),_0x485ecf[_0x4dd6e7(0x2bb)](()=>this[_0x4dd6e7(0x241)][_0x4dd6e7(0x21d)](_0x271a1b));}[_0x12abdc(0x1f5)](_0x2cbced){var _0x44a032=_0x12abdc;return this[_0x44a032(0x20b)][_0x44a032(0x22e)](_0x2cbced);}[_0x12abdc(0x2af)](_0x52ca6b){var _0x51e4c7=_0x12abdc;return Array[_0x51e4c7(0x242)](this[_0x51e4c7(0x241)])['map'](_0x1b8296=>_0x1b8296(_0x52ca6b));}}var _0x1836f2=Object[_0x12abdc(0x1ee)],_0x11af8e=(_0x26ec0b,_0x4a5b67,_0x284f26,_0x5c0e80)=>{for(var _0x268ad3=_0x5c0e80>0x1?void 0x0:_0x5c0e80?_0x1836f2(_0x4a5b67,_0x284f26):_0x4a5b67,_0x7cf4aa=_0x26ec0b['length']-0x1,_0x1f9c0f;_0x7cf4aa>=0x0;_0x7cf4aa--)(_0x1f9c0f=_0x26ec0b[_0x7cf4aa])&&(_0x268ad3=_0x1f9c0f(_0x268ad3)||_0x268ad3);return _0x268ad3;},_0x5555f7=(_0x4eb87b,_0x1ffa46)=>(_0x3ae658,_0x5c91cf)=>_0x1ffa46(_0x3ae658,_0x5c91cf,_0x4eb87b);let _0x4cb525=class extends _0x485ecf[_0x12abdc(0x1e6)]{constructor(_0x4d527d){var _0x1e5ee2=_0x12abdc;super(),this[_0x1e5ee2(0x26f)]=_0x4d527d,this[_0x1e5ee2(0x228)]();}['_init'](){var _0x282150=_0x12abdc;[_0x4dfe15['SetZoomRatioOperation']['id'],_0x4dfe15[_0x282150(0x2c3)]['id'],_0x219aae[_0x282150(0x2d0)]['id']]['forEach'](_0x1aa98d=>{var _0x4bed47=_0x282150;this[_0x4bed47(0x2cb)](this[_0x4bed47(0x26f)]['registerSharedOperation'](_0x1aa98d));});}};_0x4cb525=_0x11af8e([_0x5555f7(0x0,_0x485ecf[_0x12abdc(0x21c)](_0x583b40))],_0x4cb525);var _0x178c65=function(){return _0x178c65=Object['assign']||function(_0x3ca633){var _0x1384b2=_0x51e2;for(var _0x28fc91,_0x1f31c1=0x1,_0x2631a1=arguments[_0x1384b2(0x254)];_0x1f31c1<_0x2631a1;_0x1f31c1++){_0x28fc91=arguments[_0x1f31c1];for(var _0x537355 in _0x28fc91)Object[_0x1384b2(0x256)]['hasOwnProperty']['call'](_0x28fc91,_0x537355)&&(_0x3ca633[_0x537355]=_0x28fc91[_0x537355]);}return _0x3ca633;},_0x178c65['apply'](this,arguments);},_0x23abf8=function(_0x485048,_0x6ad1b9){var _0x322f72=_0x12abdc,_0x4afa1f={};for(var _0x3c5258 in _0x485048)Object[_0x322f72(0x256)][_0x322f72(0x27d)][_0x322f72(0x288)](_0x485048,_0x3c5258)&&_0x6ad1b9[_0x322f72(0x1ff)](_0x3c5258)<0x0&&(_0x4afa1f[_0x3c5258]=_0x485048[_0x3c5258]);if(_0x485048!=null&&typeof Object['getOwnPropertySymbols']==_0x322f72(0x1ed)){for(var _0x435f6d=0x0,_0x3c5258=Object[_0x322f72(0x29d)](_0x485048);_0x435f6d<_0x3c5258[_0x322f72(0x254)];_0x435f6d++)_0x6ad1b9[_0x322f72(0x1ff)](_0x3c5258[_0x435f6d])<0x0&&Object[_0x322f72(0x256)][_0x322f72(0x1f1)][_0x322f72(0x288)](_0x485048,_0x3c5258[_0x435f6d])&&(_0x4afa1f[_0x3c5258[_0x435f6d]]=_0x485048[_0x3c5258[_0x435f6d]]);}return _0x4afa1f;},_0x3027e2=_0x5f3208['forwardRef'](function(_0x2a6860,_0x1054a2){var _0x3b3780=_0x12abdc,_0x1cd617=_0x2a6860[_0x3b3780(0x253)],_0x549a6d=_0x2a6860['id'],_0x15139f=_0x2a6860['className'],_0x1e76da=_0x2a6860['extend'],_0x31c4c8=_0x23abf8(_0x2a6860,['icon','id',_0x3b3780(0x262),'extend']),_0x159bb7=_0x3b3780(0x296)['concat'](_0x549a6d,'\x20')[_0x3b3780(0x25e)](_0x15139f||'')[_0x3b3780(0x1e8)](),_0x187f01=_0x5f3208[_0x3b3780(0x1f6)]('_'[_0x3b3780(0x25e)](_0x1730ef()));return _0x3823be(_0x1cd617,''['concat'](_0x549a6d),{'defIds':_0x1cd617[_0x3b3780(0x273)],'idSuffix':_0x187f01[_0x3b3780(0x261)]},_0x178c65({'ref':_0x1054a2,'className':_0x159bb7},_0x31c4c8),_0x1e76da);});function _0x3823be(_0x3551c1,_0x34b687,_0x579e6f,_0x217031,_0x18f812){var _0x61a9d6=_0x12abdc;return _0x5f3208[_0x61a9d6(0x266)](_0x3551c1['tag'],_0x178c65(_0x178c65({'key':_0x34b687},_0x66699d(_0x3551c1,_0x579e6f,_0x18f812)),_0x217031),(_0xabb3b2(_0x3551c1,_0x579e6f)[_0x61a9d6(0x2a4)]||[])['map'](function(_0x8a9ef3,_0xf4fabe){var _0x4620da=_0x61a9d6;return _0x3823be(_0x8a9ef3,''[_0x4620da(0x25e)](_0x34b687,'-')[_0x4620da(0x25e)](_0x3551c1[_0x4620da(0x259)],'-')[_0x4620da(0x25e)](_0xf4fabe),_0x579e6f,void 0x0,_0x18f812);}));}function _0x66699d(_0xdb9137,_0x423443,_0x3e4cbb){var _0x117a0d=_0x12abdc,_0x451eb7=_0x178c65({},_0xdb9137[_0x117a0d(0x29f)]);_0x3e4cbb!=null&&_0x3e4cbb['colorChannel1']&&_0x451eb7['fill']===_0x117a0d(0x20a)&&(_0x451eb7[_0x117a0d(0x25d)]=_0x3e4cbb[_0x117a0d(0x20a)]),_0xdb9137['tag']===_0x117a0d(0x1dc)&&_0x451eb7['id']&&(_0x451eb7['id']=_0x451eb7['id']+_0x423443['idSuffix']),Object[_0x117a0d(0x2b2)](_0x451eb7)['forEach'](function(_0x548c26){var _0x1bb7a2=_0x117a0d,_0xe3062c=_0x548c26[0x0],_0x8bb5a1=_0x548c26[0x1];_0xe3062c===_0x1bb7a2(0x1dc)&&typeof _0x8bb5a1==_0x1bb7a2(0x275)&&(_0x451eb7[_0xe3062c]=_0x8bb5a1[_0x1bb7a2(0x217)](/url\(#(.*)\)/,_0x1bb7a2(0x210)[_0x1bb7a2(0x25e)](_0x423443['idSuffix'],')')));});var _0x58849f=_0x423443['defIds'];return!_0x58849f||_0x58849f[_0x117a0d(0x254)]===0x0||(_0xdb9137[_0x117a0d(0x259)]==='use'&&_0x451eb7[_0x117a0d(0x214)]&&(_0x451eb7[_0x117a0d(0x214)]=_0x451eb7[_0x117a0d(0x214)]+_0x423443[_0x117a0d(0x258)]),Object['entries'](_0x451eb7)[_0x117a0d(0x29b)](function(_0x2c6175){var _0x78fe28=_0x117a0d,_0x1bf447=_0x2c6175[0x0],_0x5aaea4=_0x2c6175[0x1];typeof _0x5aaea4==_0x78fe28(0x275)&&(_0x451eb7[_0x1bf447]=_0x5aaea4['replace'](/url\(#(.*)\)/,_0x78fe28(0x210)[_0x78fe28(0x25e)](_0x423443[_0x78fe28(0x258)],')')));})),_0x451eb7;}function _0xabb3b2(_0x517ca7,_0x39077d){var _0x32c15b=_0x12abdc,_0x10c677,_0x497c56=_0x39077d[_0x32c15b(0x273)];return!_0x497c56||_0x497c56[_0x32c15b(0x254)]===0x0?_0x517ca7:_0x517ca7[_0x32c15b(0x259)]===_0x32c15b(0x234)&&(!((_0x10c677=_0x517ca7[_0x32c15b(0x2a4)])===null||_0x10c677===void 0x0)&&_0x10c677[_0x32c15b(0x254)])?_0x178c65(_0x178c65({},_0x517ca7),{'children':_0x517ca7['children'][_0x32c15b(0x2b0)](function(_0x6ac769){var _0x424dc9=_0x32c15b;return typeof _0x6ac769[_0x424dc9(0x29f)]['id']==_0x424dc9(0x275)&&_0x497c56&&_0x497c56[_0x424dc9(0x28e)](_0x6ac769[_0x424dc9(0x29f)]['id'])?_0x178c65(_0x178c65({},_0x6ac769),{'attrs':_0x178c65(_0x178c65({},_0x6ac769[_0x424dc9(0x29f)]),{'id':_0x6ac769[_0x424dc9(0x29f)]['id']+_0x39077d[_0x424dc9(0x258)]})}):_0x6ac769;})}):_0x517ca7;}function _0x1730ef(){var _0x259035=_0x12abdc;return Math[_0x259035(0x26c)]()[_0x259035(0x201)](0x24)[_0x259035(0x293)](0x2,0x8);}_0x3027e2[_0x12abdc(0x25a)]=_0x12abdc(0x25f);var _0x3347ab={'tag':_0x12abdc(0x215),'attrs':{'xmlns':_0x12abdc(0x1e5),'fill':_0x12abdc(0x21f),'viewBox':_0x12abdc(0x23a),'width':_0x12abdc(0x26e),'height':_0x12abdc(0x26e)},'children':[{'tag':_0x12abdc(0x2c4),'attrs':{'fill':_0x12abdc(0x248),'d':_0x12abdc(0x2a8)}},{'tag':_0x12abdc(0x2c4),'attrs':{'fill':_0x12abdc(0x248),'d':_0x12abdc(0x292),'fillRule':_0x12abdc(0x23b),'clipRule':_0x12abdc(0x23b)}}]},_0x1dc797=_0x5f3208['forwardRef'](function(_0x368478,_0x4c6c7a){var _0x2097f8=_0x12abdc;return _0x5f3208[_0x2097f8(0x266)](_0x3027e2,Object[_0x2097f8(0x222)]({},_0x368478,{'id':_0x2097f8(0x279),'ref':_0x4c6c7a,'icon':_0x3347ab}));});_0x1dc797[_0x12abdc(0x25a)]=_0x12abdc(0x264);var _0x43e5d1=Object['getOwnPropertyDescriptor'],_0x5c5e91=(_0x1050c5,_0x423ffa,_0x399cbf,_0x189735)=>{var _0xdcd0c0=_0x12abdc;for(var _0x4940b3=_0x189735>0x1?void 0x0:_0x189735?_0x43e5d1(_0x423ffa,_0x399cbf):_0x423ffa,_0x25f5ac=_0x1050c5[_0xdcd0c0(0x254)]-0x1,_0xd3fee8;_0x25f5ac>=0x0;_0x25f5ac--)(_0xd3fee8=_0x1050c5[_0x25f5ac])&&(_0x4940b3=_0xd3fee8(_0x4940b3)||_0x4940b3);return _0x4940b3;},_0x361efc=(_0x2da283,_0x174303)=>(_0x1e92bf,_0x35b435)=>_0x174303(_0x1e92bf,_0x35b435,_0x2da283);_0x51f9ed['LiveShareController']=class extends _0x485ecf[_0x12abdc(0x249)]{constructor(_0x163ec6,_0x3ede99,_0x2ec695){var _0x5089f6=_0x12abdc;super(),_0x52a734(this,_0x5089f6(0x2ae),new Map()),(this[_0x5089f6(0x270)]=_0x163ec6,this[_0x5089f6(0x1f4)]=_0x3ede99,this['_collabSessionService']=_0x2ec695,this[_0x5089f6(0x228)]());}async[_0x12abdc(0x1ea)](_0xc35a6f){var _0x2c0e07=_0x12abdc;return this[_0x2c0e07(0x2ae)][_0x2c0e07(0x22e)](_0xc35a6f)||await this[_0x2c0e07(0x2cc)](_0xc35a6f),this['_entities'][_0x2c0e07(0x2a1)](_0xc35a6f);}[_0x12abdc(0x228)](){var _0x933add=_0x12abdc;this[_0x933add(0x270)][_0x933add(0x26d)](_0x485ecf['UniverInstanceType']['UNIVER_SHEET'])[_0x933add(0x2aa)](_0x5f2e92[_0x933add(0x1ec)](this[_0x933add(0x2b9)]))[_0x933add(0x24c)](async _0x57657c=>{var _0x5ad85b=_0x933add;const _0x198965=_0x57657c[_0x5ad85b(0x1e3)]();this[_0x5ad85b(0x2ae)][_0x5ad85b(0x22e)](_0x198965)||this[_0x5ad85b(0x2cc)](_0x198965);}),this[_0x933add(0x270)][_0x933add(0x25c)](_0x485ecf[_0x933add(0x243)][_0x933add(0x2ac)])[_0x933add(0x2aa)](_0x5f2e92[_0x933add(0x1ec)](this[_0x933add(0x2b9)]))['subscribe'](_0x2284ed=>{var _0x474f4d=_0x933add;const _0x3f8a1c=_0x2284ed[_0x474f4d(0x1e3)](),_0x80195c=this[_0x474f4d(0x2ae)]['get'](_0x3f8a1c);_0x80195c==null||_0x80195c['dispose']();});}async[_0x12abdc(0x2cc)](_0x228d94){var _0x46e533=_0x12abdc;const _0x10b2f2=await this[_0x46e533(0x23e)][_0x46e533(0x21e)](_0x228d94),_0x40dbd0=this[_0x46e533(0x1f4)]['createInstance'](_0x51f9ed['LiveShareCoordinator'],_0x228d94,_0x10b2f2);return _0x40dbd0[_0x46e533(0x1da)](),this[_0x46e533(0x2ae)][_0x46e533(0x27b)](_0x228d94,_0x40dbd0),_0x40dbd0;}},_0x51f9ed[_0x12abdc(0x257)]=_0x5c5e91([_0x361efc(0x0,_0x485ecf[_0x12abdc(0x2c9)]),_0x361efc(0x1,_0x485ecf[_0x12abdc(0x21c)](_0x485ecf['Injector'])),_0x361efc(0x2,_0x485ecf['Inject'](_0x48665f[_0x12abdc(0x226)]))],_0x51f9ed['LiveShareController']);var _0x3385bc=(_0x5e793d=>(_0x5e793d['OFFLINE']=_0x12abdc(0x24b),_0x5e793d[_0x12abdc(0x1dd)]=_0x12abdc(0x28f),_0x5e793d[_0x12abdc(0x239)]='following',_0x5e793d['NOT_FOLLOWING']=_0x12abdc(0x205),_0x5e793d[_0x12abdc(0x212)]='presenting',_0x5e793d))(_0x3385bc||{});const _0x584a7d=_0x12abdc(0x1f7),_0x32a7ab=0xc8;_0x51f9ed[_0x12abdc(0x237)]=class extends _0x485ecf['RxDisposable']{constructor(_0x312f57,_0x159f9b,_0x1d6efd,_0x87aefd,_0x4addfd){var _0x286ab1=_0x12abdc;super(),_0x52a734(this,_0x286ab1(0x268),new _0x459ea5[(_0x286ab1(0x207))](_0x286ab1(0x28f))),_0x52a734(this,'status$',this['_status$']['asObservable']()),_0x52a734(this,_0x286ab1(0x228),!0x1),_0x52a734(this,'_commandDisposable',null),_0x52a734(this,_0x286ab1(0x1e9),null),(this[_0x286ab1(0x2c5)]=_0x312f57,this['_collabSession']=_0x159f9b,this[_0x286ab1(0x283)]=_0x1d6efd,this['_liveShareService']=_0x87aefd,this[_0x286ab1(0x251)]=_0x4addfd);}get[_0x12abdc(0x1f2)](){var _0x178891=_0x12abdc;return this[_0x178891(0x268)][_0x178891(0x21b)]();}[_0x12abdc(0x252)](){var _0x21ccc0=_0x12abdc,_0x2682bc;(_0x2682bc=this[_0x21ccc0(0x265)])==null||_0x2682bc[_0x21ccc0(0x252)](),this[_0x21ccc0(0x268)][_0x21ccc0(0x28b)]('idle'),this[_0x21ccc0(0x268)][_0x21ccc0(0x2bc)]();}['init'](){var _0x38ac8e=_0x12abdc;this[_0x38ac8e(0x228)]||(this[_0x38ac8e(0x228)]=!0x0,this[_0x38ac8e(0x233)]['sessionStatus$'][_0x38ac8e(0x2aa)](_0x5f2e92[_0x38ac8e(0x1ec)](this[_0x38ac8e(0x2b9)]))[_0x38ac8e(0x24c)](_0x8a0b5e=>{var _0x18caa2=_0x38ac8e;switch(_0x8a0b5e){case _0x48665f['SessionStatus']['OFFLINE']:this[_0x18caa2(0x287)]();break;case _0x48665f[_0x18caa2(0x206)][_0x18caa2(0x2b5)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x38ac8e(0x20d)][_0x38ac8e(0x2aa)](_0x5f2e92[_0x38ac8e(0x1ec)](this[_0x38ac8e(0x2b9)]))[_0x38ac8e(0x24c)](_0x38b4c4=>{var _0x3d672f=_0x38ac8e;const {eventID:_0x15573e}=_0x38b4c4;switch(_0x15573e){case _0x2f0030[_0x3d672f(0x204)][_0x3d672f(0x276)]:this[_0x3d672f(0x230)](_0x38b4c4);break;case _0x2f0030[_0x3d672f(0x204)][_0x3d672f(0x294)]:this[_0x3d672f(0x246)](_0x38b4c4);break;case _0x2f0030[_0x3d672f(0x204)][_0x3d672f(0x1fd)]:this[_0x3d672f(0x209)]();break;case _0x2f0030[_0x3d672f(0x204)][_0x3d672f(0x200)]:this[_0x3d672f(0x220)](_0x38b4c4);break;}}));}[_0x12abdc(0x29a)](){var _0x39c33e=_0x12abdc;this['_collabSession'][_0x39c33e(0x290)]({'eventID':_0x2f0030[_0x39c33e(0x204)][_0x39c33e(0x1fe)],'data':{'unitID':this[_0x39c33e(0x2c5)],'userID':this['_collabSession'][_0x39c33e(0x231)]()}},this[_0x39c33e(0x2c5)]);}[_0x12abdc(0x27f)](){var _0x480140=_0x12abdc;this['_status']===_0x480140(0x1f0)&&(this[_0x480140(0x268)][_0x480140(0x28b)](_0x480140(0x28f)),this[_0x480140(0x233)]['send']({'eventID':_0x2f0030[_0x480140(0x204)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x480140(0x2c5)]}},this[_0x480140(0x2c5)]));}[_0x12abdc(0x2be)](){var _0x8a265a=_0x12abdc;this[_0x8a265a(0x1f2)]==='not-following'&&(this[_0x8a265a(0x268)][_0x8a265a(0x28b)]('following'),this['_startFollowing']());}[_0x12abdc(0x2a9)](){var _0x2cc124=_0x12abdc;this[_0x2cc124(0x1f2)]===_0x2cc124(0x1eb)&&this['_stopFollowing']();}[_0x12abdc(0x230)](_0x411a40){var _0x36eb1d=_0x12abdc;const {presenter:_0x16dbf2}=_0x411a40['data'],_0x576666=this[_0x36eb1d(0x233)][_0x36eb1d(0x231)]();this[_0x36eb1d(0x1e9)]=_0x16dbf2,_0x16dbf2===_0x576666?(this[_0x36eb1d(0x245)](),this[_0x36eb1d(0x267)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x36eb1d(0x28a)]());}[_0x12abdc(0x263)](){var _0x362e2f=_0x12abdc;const _0x44720e={'eventID':_0x2f0030[_0x362e2f(0x204)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x362e2f(0x233)][_0x362e2f(0x290)](_0x44720e,this[_0x362e2f(0x2c5)]);}[_0x12abdc(0x209)](){var _0x2d298a=_0x12abdc;this[_0x2d298a(0x1e9)]=null,this[_0x2d298a(0x1f2)]!==_0x2d298a(0x1f0)&&this[_0x2d298a(0x2b4)]();}[_0x12abdc(0x220)](_0x56ffd0){var _0x30750b=_0x12abdc;if(this['_status']===_0x30750b(0x1eb)&&this[_0x30750b(0x1e9)]===_0x56ffd0[_0x30750b(0x1ef)][_0x30750b(0x22b)]){const _0x3a07fd=_0x2f0030['parseProtocolChangeset'](_0x56ffd0[_0x30750b(0x1ef)])['mutations'][_0x30750b(0x224)]()[_0x30750b(0x20f)](_0x1d6aef=>_0x1d6aef['id']===_0x219aae['InsertSheetMutation']['id']);if(_0x3a07fd){const _0x5bf6f7=_0x3a07fd[_0x30750b(0x238)]['unitId'],_0x22b6c6=_0x3a07fd[_0x30750b(0x238)][_0x30750b(0x2b6)]['id'];setTimeout(()=>{var _0x4f182b=_0x30750b;this[_0x4f182b(0x251)]['executeCommand'](_0x219aae[_0x4f182b(0x2d0)]['id'],{'unitId':_0x5bf6f7,'subUnitId':_0x22b6c6},{'fromCollab':!0x0});});}}}[_0x12abdc(0x267)](){var _0x4e4d8d=_0x12abdc;this[_0x4e4d8d(0x268)][_0x4e4d8d(0x28b)](_0x4e4d8d(0x1f0));const _0x457c1b=new Map(),_0x4eadc1=this[_0x4e4d8d(0x265)]=new _0x485ecf[(_0x4e4d8d(0x22c))]();_0x4eadc1[_0x4e4d8d(0x24f)](_0x485ecf[_0x4e4d8d(0x2bb)](()=>{var _0x4b0780=_0x4e4d8d;_0x457c1b[_0x4b0780(0x29b)](_0x4430e3=>_0x4430e3[_0x4b0780(0x2bc)]()),_0x457c1b[_0x4b0780(0x271)]();})),_0x4eadc1['add'](this[_0x4e4d8d(0x251)][_0x4e4d8d(0x221)](_0x2188ee=>{var _0xb2c7fe=_0x4e4d8d,_0x36c2ab;if(_0x2188ee['type']!==_0x485ecf[_0xb2c7fe(0x23d)][_0xb2c7fe(0x2a0)]||!this[_0xb2c7fe(0x26f)][_0xb2c7fe(0x1f5)](_0x2188ee['id']))return;const {id:_0x552661}=_0x2188ee;let _0x24f83f;_0x457c1b['has'](_0x552661)?_0x24f83f=_0x457c1b['get'](_0x552661):(_0x24f83f=new _0x459ea5[(_0xb2c7fe(0x2a6))](),_0x457c1b[_0xb2c7fe(0x27b)](_0x552661,_0x24f83f),_0x24f83f[_0xb2c7fe(0x2aa)](_0x5f2e92[_0xb2c7fe(0x22d)]((_0x36c2ab=this[_0xb2c7fe(0x283)][_0xb2c7fe(0x227)](_0x584a7d))!=null?_0x36c2ab:_0x32a7ab,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xb2c7fe(0x24c)](_0x1b4020=>{var _0x3bbd71=_0xb2c7fe;this[_0x3bbd71(0x233)][_0x3bbd71(0x290)]({'eventID':_0x2f0030['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x1b4020['id']]:{'id':_0x1b4020['id'],'params':JSON[_0x3bbd71(0x1e4)](_0x1b4020[_0x3bbd71(0x238)])}}}},this['_unitID']);})),_0x24f83f[_0xb2c7fe(0x28b)](_0x2188ee);})),this[_0x4e4d8d(0x26f)][_0x4e4d8d(0x2af)](this['_unitID'])[_0x4e4d8d(0x29b)](_0x200e40=>this[_0x4e4d8d(0x233)][_0x4e4d8d(0x290)]({'eventID':_0x2f0030['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x200e40['id']]:{'id':_0x200e40['id'],'params':JSON[_0x4e4d8d(0x1e4)](_0x200e40[_0x4e4d8d(0x238)])}}}},this[_0x4e4d8d(0x2c5)]));}['_stopPresenting'](){var _0xc5db1b=_0x12abdc,_0x32547e;this[_0xc5db1b(0x268)]['next']('idle'),(_0x32547e=this[_0xc5db1b(0x265)])==null||_0x32547e['dispose'](),this['_commandDisposable']=null;}[_0x12abdc(0x28a)](){var _0x3af85e=_0x12abdc,_0x5df624;(_0x5df624=this[_0x3af85e(0x265)])==null||_0x5df624[_0x3af85e(0x252)](),this['_status$'][_0x3af85e(0x28b)]('following');}['_beIdle'](){var _0x2c836c=_0x12abdc,_0x3566af;this[_0x2c836c(0x268)][_0x2c836c(0x28b)](_0x2c836c(0x28f)),(_0x3566af=this['_commandDisposable'])==null||_0x3566af['dispose'](),this[_0x2c836c(0x265)]=null;}[_0x12abdc(0x245)](){var _0x5f5a14=_0x12abdc,_0x3beb08;this[_0x5f5a14(0x268)][_0x5f5a14(0x28b)](_0x5f5a14(0x205)),(_0x3beb08=this[_0x5f5a14(0x265)])==null||_0x3beb08[_0x5f5a14(0x252)]();}[_0x12abdc(0x246)](_0x235245){var _0x59aa8c=_0x12abdc;if([_0x59aa8c(0x1f0),'not-following',_0x59aa8c(0x24b)][_0x59aa8c(0x28e)](this['_status'])||!_0x235245[_0x59aa8c(0x1ef)][_0x59aa8c(0x1db)]||_0x235245[_0x59aa8c(0x1ef)][_0x59aa8c(0x1db)]===this[_0x59aa8c(0x233)]['getMemberID']())return;this[_0x59aa8c(0x1f2)]===_0x59aa8c(0x28f)&&this[_0x59aa8c(0x28a)]();const _0x4d44b6=_0x235245[_0x59aa8c(0x1ef)][_0x59aa8c(0x26b)];Object[_0x59aa8c(0x274)](_0x4d44b6)[_0x59aa8c(0x29b)](_0x508a39=>{var _0x3f4f9c=_0x59aa8c;this['_commandService']['executeCommand'](_0x508a39['id'],_0x508a39[_0x3f4f9c(0x238)]?JSON[_0x3f4f9c(0x27c)](_0x508a39[_0x3f4f9c(0x238)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x534bb5=_0x12abdc,_0x45f26c;this[_0x534bb5(0x268)]['next'](_0x534bb5(0x24b)),(_0x45f26c=this[_0x534bb5(0x265)])==null||_0x45f26c[_0x534bb5(0x252)]();}['_handleOnline'](){var _0x118dfa=_0x12abdc;this[_0x118dfa(0x268)][_0x118dfa(0x28b)](_0x118dfa(0x28f)),this[_0x118dfa(0x263)]();}},_0x51f9ed[_0x12abdc(0x237)]=_0x5c5e91([_0x361efc(0x2,_0x485ecf[_0x12abdc(0x2c0)]),_0x361efc(0x3,_0x485ecf['Inject'](_0x583b40)),_0x361efc(0x4,_0x485ecf[_0x12abdc(0x22f)])],_0x51f9ed[_0x12abdc(0x237)]);function _0x19a790(){var _0x409b9a=_0x12abdc;const _0x7f37c7=_0x57616f[_0x409b9a(0x20c)](_0x51f9ed['LiveShareController']),_0x21c73f=_0x57616f[_0x409b9a(0x20c)](_0x485ecf[_0x409b9a(0x2c9)]),_0x3b4633=_0x57616f['useObservable'](()=>_0x21c73f[_0x409b9a(0x295)](_0x485ecf[_0x409b9a(0x243)][_0x409b9a(0x2ac)]),void 0x0,!0x1,[]),[_0x51f58c,_0x554b6f]=_0x5f3208[_0x409b9a(0x2ab)](null),[_0x1fdaed,_0x35f074]=_0x5f3208[_0x409b9a(0x2ab)](_0x3385bc[_0x409b9a(0x1dd)]),_0x39cd81=_0x5f3208[_0x409b9a(0x1f6)](null);return _0x5f3208[_0x409b9a(0x2c8)](()=>(_0x3b4633&&_0x7f37c7[_0x409b9a(0x1ea)](_0x3b4633[_0x409b9a(0x1e3)]())['then'](_0x219468=>{var _0x56b370=_0x409b9a;_0x554b6f(_0x219468),_0x39cd81[_0x56b370(0x261)]=_0x219468[_0x56b370(0x29e)][_0x56b370(0x24c)](_0xaacb87=>{_0x35f074(_0xaacb87);});}),()=>{var _0xa7e076=_0x409b9a,_0x4f4e73;(_0x4f4e73=_0x39cd81[_0xa7e076(0x261)])==null||_0x4f4e73[_0xa7e076(0x2ce)](),_0x39cd81[_0xa7e076(0x261)]=null;}),[_0x3b4633,_0x7f37c7]),_0x51f58c?_0x563fcb['jsx'](_0x2dc538[_0x409b9a(0x2b8)],{'align':_0x409b9a(0x235),'disabled':_0x1fdaed===_0x3385bc[_0x409b9a(0x2c7)],'className':_0x409b9a(0x203),'overlay':_0x563fcb[_0x409b9a(0x2a5)](_0x3f0c8e,{'status':_0x1fdaed,'coordinator':_0x51f58c}),'children':_0x563fcb['jsx']('button',{'className':_0x2dc538[_0x409b9a(0x2ad)](_0x409b9a(0x29c),{'univer-cursor-not-allowed':_0x1fdaed===_0x3385bc[_0x409b9a(0x2c7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1fdaed!==_0x3385bc[_0x409b9a(0x2c7)]}),'type':_0x409b9a(0x2cf),'children':_0x563fcb['jsx'](_0x1dc797,{'className':'univer-size-4'})})}):null;}function _0x3f0c8e(_0x2abd42){var _0x2e05b9=_0x12abdc;const {status:_0xd0cab8,coordinator:_0x3b2fde}=_0x2abd42;switch(_0xd0cab8){case _0x3385bc[_0x2e05b9(0x1dd)]:return _0x563fcb[_0x2e05b9(0x2a5)](_0x3a881c,{'coordinator':_0x3b2fde});case _0x3385bc[_0x2e05b9(0x239)]:return _0x563fcb[_0x2e05b9(0x2a5)](_0x445592,{'coordinator':_0x3b2fde});case _0x3385bc[_0x2e05b9(0x24a)]:return _0x563fcb[_0x2e05b9(0x2a5)](_0x545743,{'coordinator':_0x3b2fde});case _0x3385bc['OFFLINE']:return _0x563fcb[_0x2e05b9(0x2a5)](_0x3553be,{});case _0x3385bc[_0x2e05b9(0x212)]:return _0x563fcb[_0x2e05b9(0x2a5)](_0x5a7f07,{'coordinator':_0x3b2fde});default:return null;}}function _0x3a881c(_0x54f56d){var _0x8c4c57=_0x12abdc;const {coordinator:_0x42773c}=_0x54f56d;return _0x563fcb['jsxs'](_0x563fcb['Fragment'],{'children':[_0x563fcb['jsx']('div',{'className':_0x8c4c57(0x216),'children':_0x8c4c57(0x20e)}),_0x563fcb[_0x8c4c57(0x2a5)](_0x2dc538[_0x8c4c57(0x28d)],{'onClick':()=>_0x42773c['tryStartPresenting'](),'children':_0x8c4c57(0x1e1)})]});}function _0x445592(_0x1c5816){var _0xcc7338=_0x12abdc;const {coordinator:_0x5b213c}=_0x1c5816;return _0x563fcb['jsxs'](_0x563fcb[_0xcc7338(0x1fc)],{'children':[_0x563fcb[_0xcc7338(0x2a5)]('div',{'className':_0xcc7338(0x216),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x563fcb[_0xcc7338(0x2a5)](_0x2dc538[_0xcc7338(0x28d)],{'onClick':()=>_0x5b213c['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x545743(_0x448ba5){var _0xb25e4a=_0x12abdc;const {coordinator:_0x2fa661}=_0x448ba5;return _0x563fcb[_0xb25e4a(0x289)](_0x563fcb['Fragment'],{'children':[_0x563fcb[_0xb25e4a(0x2a5)](_0xb25e4a(0x211),{'className':_0xb25e4a(0x216),'children':_0xb25e4a(0x298)}),_0x563fcb[_0xb25e4a(0x2a5)](_0x2dc538[_0xb25e4a(0x28d)],{'variant':_0xb25e4a(0x23f),'onClick':()=>_0x2fa661[_0xb25e4a(0x2be)](),'children':_0xb25e4a(0x225)})]});}function _0x5a7f07(_0x4d7b15){var _0x20f05e=_0x12abdc;const {coordinator:_0x281625}=_0x4d7b15;return _0x563fcb[_0x20f05e(0x289)](_0x563fcb[_0x20f05e(0x1fc)],{'children':[_0x563fcb[_0x20f05e(0x2a5)](_0x20f05e(0x211),{'className':_0x20f05e(0x216),'children':_0x20f05e(0x280)}),_0x563fcb[_0x20f05e(0x2a5)](_0x2dc538[_0x20f05e(0x28d)],{'variant':'default','onClick':()=>_0x281625[_0x20f05e(0x27f)](),'children':'Stop\x20presenting'})]});}function _0x3553be(){var _0x3157f1=_0x12abdc;return _0x563fcb['jsx'](_0x563fcb[_0x3157f1(0x1fc)],{'children':'You\x27are\x20offline.'});}var _0x2a8fa6=Object[_0x12abdc(0x1ee)],_0xf0c86d=(_0x4e489c,_0x50ad44,_0x5838c7,_0x20fb2e)=>{var _0x57fe3d=_0x12abdc;for(var _0x298773=_0x20fb2e>0x1?void 0x0:_0x20fb2e?_0x2a8fa6(_0x50ad44,_0x5838c7):_0x50ad44,_0x255307=_0x4e489c[_0x57fe3d(0x254)]-0x1,_0x53c680;_0x255307>=0x0;_0x255307--)(_0x53c680=_0x4e489c[_0x255307])&&(_0x298773=_0x53c680(_0x298773)||_0x298773);return _0x298773;},_0x113b62=(_0x5b5fb7,_0x2fd2e3)=>(_0x3e4fc5,_0x200184)=>_0x2fd2e3(_0x3e4fc5,_0x200184,_0x5b5fb7);_0x51f9ed[_0x12abdc(0x278)]=class extends _0x485ecf[_0x12abdc(0x1e6)]{constructor(_0x1099f1,_0x4d6739){var _0x1ac1e3=_0x12abdc;super(),this[_0x1ac1e3(0x1f4)]=_0x1099f1,this[_0x1ac1e3(0x260)]=_0x4d6739,this[_0x1ac1e3(0x218)]();}[_0x12abdc(0x218)](){var _0x2c41a9=_0x12abdc;this['disposeWithMe'](this[_0x2c41a9(0x260)]['registerComponent'](_0x57616f['BuiltInUIPart'][_0x2c41a9(0x255)],()=>_0x57616f[_0x2c41a9(0x1df)](_0x19a790,this['_injector'])));}},_0x51f9ed['DesktopLiveShareController']=_0xf0c86d([_0x113b62(0x0,_0x485ecf[_0x12abdc(0x21c)](_0x485ecf['Injector'])),_0x113b62(0x1,_0x57616f[_0x12abdc(0x1f3)])],_0x51f9ed[_0x12abdc(0x278)]);var _0x10970a=Object['defineProperty'],_0xd54d48=Object['getOwnPropertyDescriptor'],_0x52ff8c=(_0x3f2a20,_0x279bc1,_0x21c403)=>_0x279bc1 in _0x3f2a20?_0x10970a(_0x3f2a20,_0x279bc1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21c403}):_0x3f2a20[_0x279bc1]=_0x21c403,_0x5d13e4=(_0x201cad,_0x5dd1e8,_0x409d21,_0xb40ae6)=>{var _0x434319=_0x12abdc;for(var _0x281499=_0xb40ae6>0x1?void 0x0:_0xb40ae6?_0xd54d48(_0x5dd1e8,_0x409d21):_0x5dd1e8,_0x358b93=_0x201cad[_0x434319(0x254)]-0x1,_0x48c612;_0x358b93>=0x0;_0x358b93--)(_0x48c612=_0x201cad[_0x358b93])&&(_0x281499=_0x48c612(_0x281499)||_0x281499);return _0x281499;},_0x25a1e4=(_0x2242b9,_0x357db5)=>(_0x50589a,_0x56a5bc)=>_0x357db5(_0x50589a,_0x56a5bc,_0x2242b9),_0x504764=(_0xfe8be3,_0x4f29cc,_0x131288)=>_0x52ff8c(_0xfe8be3,typeof _0x4f29cc!=_0x12abdc(0x27a)?_0x4f29cc+'':_0x4f29cc,_0x131288);const _0x473b9d='UNIVER_LIVE_SHARE_PLUGIN';_0x51f9ed[_0x12abdc(0x229)]=class extends _0x485ecf[_0x12abdc(0x250)]{constructor(_0x378e84=_0x5362c1,_0x526702,_0x4b9128){var _0x4a93ed=_0x12abdc;super(),this[_0x4a93ed(0x1fb)]=_0x378e84,this[_0x4a93ed(0x1f4)]=_0x526702,this[_0x4a93ed(0x283)]=_0x4b9128;const {..._0x4d367d}=_0x485ecf['merge']({},_0x5362c1,this[_0x4a93ed(0x1fb)]);this['_configService'][_0x4a93ed(0x297)](_0x15f181,_0x4d367d);}[_0x12abdc(0x2c1)](){var _0x79d6f2=_0x12abdc;_0x485ecf[_0x79d6f2(0x240)](this[_0x79d6f2(0x1f4)],_0x485ecf['mergeOverrideWithDependencies']([[_0x583b40],[_0x51f9ed['LiveShareController']],[_0x4cb525],[_0x51f9ed['DesktopLiveShareController']]],this[_0x79d6f2(0x1fb)]['override'])),_0x485ecf[_0x79d6f2(0x25b)](this['_injector'],[[_0x4cb525]]);}['onRendered'](){var _0x2efbb1=_0x12abdc;_0x485ecf[_0x2efbb1(0x25b)](this['_injector'],[[_0x51f9ed['DesktopLiveShareController']]]);}},_0x504764(_0x51f9ed[_0x12abdc(0x229)],_0x12abdc(0x1fa),_0x485ecf[_0x12abdc(0x243)]['UNIVER_UNKNOWN']),_0x504764(_0x51f9ed[_0x12abdc(0x229)],'pluginName',_0x473b9d),_0x51f9ed['UniverLiveSharePlugin']=_0x5d13e4([_0x485ecf[_0x12abdc(0x24e)](_0x48665f[_0x12abdc(0x286)]),_0x25a1e4(0x1,_0x485ecf[_0x12abdc(0x21c)](_0x485ecf[_0x12abdc(0x23c)])),_0x25a1e4(0x2,_0x485ecf['IConfigService'])],_0x51f9ed[_0x12abdc(0x229)]),_0x51f9ed[_0x12abdc(0x247)]=_0x19a790,_0x51f9ed['LiveShareService']=_0x583b40,_0x51f9ed[_0x12abdc(0x219)]=_0x3385bc,Object[_0x12abdc(0x26a)](_0x51f9ed,Symbol[_0x12abdc(0x272)],{'value':_0x12abdc(0x208)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.1",
3
+ "version": "0.8.2-nightly.202506201607",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,23 +47,23 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration-client": "0.8.1",
51
- "@univerjs-pro/collaboration": "0.8.1",
52
- "@univerjs/core": "0.8.1",
53
- "@univerjs/design": "0.8.1",
54
- "@univerjs/sheets": "0.8.1",
55
- "@univerjs/sheets-ui": "0.8.1",
56
- "@univerjs/ui": "0.8.1"
50
+ "@univerjs-pro/collaboration": "0.8.2-nightly.202506201607",
51
+ "@univerjs-pro/collaboration-client": "0.8.2-nightly.202506201607",
52
+ "@univerjs/core": "0.8.2-nightly.202506201607",
53
+ "@univerjs/sheets": "0.8.2-nightly.202506201607",
54
+ "@univerjs/ui": "0.8.2-nightly.202506201607",
55
+ "@univerjs/sheets-ui": "0.8.2-nightly.202506201607",
56
+ "@univerjs/design": "0.8.2-nightly.202506201607"
57
57
  },
58
58
  "devDependencies": {
59
- "postcss": "^8.5.4",
59
+ "postcss": "^8.5.6",
60
60
  "react": "18.3.1",
61
61
  "rxjs": "7.8.2",
62
62
  "tailwindcss": "^3.4.17",
63
63
  "typescript": "^5.8.3",
64
64
  "vite": "^6.3.5",
65
- "vitest": "^3.2.0",
66
- "@univerjs-infra/shared": "0.8.1",
65
+ "vitest": "^3.2.3",
66
+ "@univerjs-infra/shared": "0.8.2",
67
67
  "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },
69
69
  "scripts": {