@univerjs-pro/live-share 0.9.1-nightly.202507061606 → 0.9.1-nightly.202507071607

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 _0x2d3710=_0x4ffa;(function(_0xbb4735,_0x66ed5c){var _0x39d0a9=_0x4ffa,_0x4f0a85=_0xbb4735();while(!![]){try{var _0x23f61d=-parseInt(_0x39d0a9(0x1db))/0x1+-parseInt(_0x39d0a9(0x25c))/0x2+parseInt(_0x39d0a9(0x2be))/0x3*(-parseInt(_0x39d0a9(0x237))/0x4)+-parseInt(_0x39d0a9(0x2bd))/0x5*(-parseInt(_0x39d0a9(0x204))/0x6)+parseInt(_0x39d0a9(0x231))/0x7+parseInt(_0x39d0a9(0x23e))/0x8*(-parseInt(_0x39d0a9(0x224))/0x9)+parseInt(_0x39d0a9(0x23f))/0xa;if(_0x23f61d===_0x66ed5c)break;else _0x4f0a85['push'](_0x4f0a85['shift']());}catch(_0x21ab44){_0x4f0a85['push'](_0x4f0a85['shift']());}}}(_0x4006,0xbab9f));var U=Object[_0x2d3710(0x271)],F=(_0x55e57b,_0x2c1072,_0x3613c5)=>_0x2c1072 in _0x55e57b?U(_0x55e57b,_0x2c1072,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3613c5}):_0x55e57b[_0x2c1072]=_0x3613c5,v=(_0x1c2835,_0x5bec5c,_0xaca486)=>F(_0x1c2835,typeof _0x5bec5c!=_0x2d3710(0x27f)?_0x5bec5c+'':_0x5bec5c,_0xaca486);Object[_0x2d3710(0x271)](exports,Symbol[_0x2d3710(0x29d)],{'value':_0x2d3710(0x205)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x2d3710(0x256),x={};class O extends o[_0x2d3710(0x21b)]{constructor(){var _0x3d72b0=_0x2d3710;super(...arguments),v(this,_0x3d72b0(0x2a5),new Set()),v(this,_0x3d72b0(0x1fd),new Set());}[_0x2d3710(0x29c)](_0x1f565e){var _0x47c10b=_0x2d3710;return this[_0x47c10b(0x2a5)]['add'](_0x1f565e),o[_0x47c10b(0x2a2)](()=>this[_0x47c10b(0x2a5)]['delete'](_0x1f565e));}[_0x2d3710(0x26c)](_0x4f301c){var _0xd92da=_0x2d3710;return this[_0xd92da(0x1fd)][_0xd92da(0x242)](_0x4f301c),o[_0xd92da(0x2a2)](()=>this[_0xd92da(0x1fd)][_0xd92da(0x283)](_0x4f301c));}[_0x2d3710(0x28d)](_0x51b8d3){var _0x18a156=_0x2d3710;return this[_0x18a156(0x2a5)][_0x18a156(0x2ae)](_0x51b8d3);}[_0x2d3710(0x266)](_0x1083a9){var _0x79d10a=_0x2d3710;return Array[_0x79d10a(0x24a)](this['_reporters'])[_0x79d10a(0x235)](_0x2ba799=>_0x2ba799(_0x1083a9));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x575cc5,_0x3d85f3,_0x1f207f,_0x5c3d2e)=>{var _0x125897=_0x2d3710;for(var _0xf7dd0c=_0x5c3d2e>0x1?void 0x0:_0x5c3d2e?H(_0x3d85f3,_0x1f207f):_0x3d85f3,_0x23b549=_0x575cc5[_0x125897(0x299)]-0x1,_0x16ca20;_0x23b549>=0x0;_0x23b549--)(_0x16ca20=_0x575cc5[_0x23b549])&&(_0xf7dd0c=_0x16ca20(_0xf7dd0c)||_0xf7dd0c);return _0xf7dd0c;},k=(_0x1c4d0e,_0x191b90)=>(_0x1e775a,_0x1a0d19)=>_0x191b90(_0x1e775a,_0x1a0d19,_0x1c4d0e);let E=class extends o['Disposable']{constructor(_0x334c4f){var _0x41b495=_0x2d3710;super(),this[_0x41b495(0x26d)]=_0x334c4f,this[_0x41b495(0x225)]();}[_0x2d3710(0x225)](){var _0x146acd=_0x2d3710;[w[_0x146acd(0x1f6)]['id'],w[_0x146acd(0x23b)]['id'],C[_0x146acd(0x220)]['id']]['forEach'](_0x529f8d=>{var _0xa4e8ba=_0x146acd;this[_0xa4e8ba(0x218)](this[_0xa4e8ba(0x26d)][_0xa4e8ba(0x29c)](_0x529f8d));});}};E=V([k(0x0,o[_0x2d3710(0x1fb)](O))],E);var u=function(){var _0x844c1d=_0x2d3710;return u=Object[_0x844c1d(0x281)]||function(_0x470cb8){var _0x72a1a=_0x844c1d;for(var _0x27cca3,_0x8c76ff=0x1,_0x2a755e=arguments['length'];_0x8c76ff<_0x2a755e;_0x8c76ff++){_0x27cca3=arguments[_0x8c76ff];for(var _0x133c3a in _0x27cca3)Object[_0x72a1a(0x251)][_0x72a1a(0x21a)][_0x72a1a(0x200)](_0x27cca3,_0x133c3a)&&(_0x470cb8[_0x133c3a]=_0x27cca3[_0x133c3a]);}return _0x470cb8;},u['apply'](this,arguments);},M=function(_0x5d1335,_0x2301b3){var _0x25819e=_0x2d3710,_0x2a5050={};for(var _0x6ebbe0 in _0x5d1335)Object[_0x25819e(0x251)][_0x25819e(0x21a)][_0x25819e(0x200)](_0x5d1335,_0x6ebbe0)&&_0x2301b3[_0x25819e(0x267)](_0x6ebbe0)<0x0&&(_0x2a5050[_0x6ebbe0]=_0x5d1335[_0x6ebbe0]);if(_0x5d1335!=null&&typeof Object['getOwnPropertySymbols']==_0x25819e(0x1fa)){for(var _0x5341d6=0x0,_0x6ebbe0=Object[_0x25819e(0x278)](_0x5d1335);_0x5341d6<_0x6ebbe0[_0x25819e(0x299)];_0x5341d6++)_0x2301b3[_0x25819e(0x267)](_0x6ebbe0[_0x5341d6])<0x0&&Object[_0x25819e(0x251)][_0x25819e(0x1f7)][_0x25819e(0x200)](_0x5d1335,_0x6ebbe0[_0x5341d6])&&(_0x2a5050[_0x6ebbe0[_0x5341d6]]=_0x5d1335[_0x6ebbe0[_0x5341d6]]);}return _0x2a5050;},j=f[_0x2d3710(0x1f3)](function(_0x16d3c9,_0x1d6a58){var _0x18a84c=_0x2d3710,_0xbf90c6=_0x16d3c9[_0x18a84c(0x241)],_0x21be3e=_0x16d3c9['id'],_0x193d63=_0x16d3c9[_0x18a84c(0x203)],_0x5a9790=_0x16d3c9['extend'],_0x56107f=M(_0x16d3c9,[_0x18a84c(0x241),'id',_0x18a84c(0x203),_0x18a84c(0x26b)]),_0x3bf65e=_0x18a84c(0x280)[_0x18a84c(0x1f0)](_0x21be3e,'\x20')[_0x18a84c(0x1f0)](_0x193d63||'')[_0x18a84c(0x28f)](),_0x23931e=f[_0x18a84c(0x219)]('_'['concat'](G()));return y(_0xbf90c6,''[_0x18a84c(0x1f0)](_0x21be3e),{'defIds':_0xbf90c6['defIds'],'idSuffix':_0x23931e[_0x18a84c(0x2b0)]},u({'ref':_0x1d6a58,'className':_0x3bf65e},_0x56107f),_0x5a9790);});function y(_0x593d0d,_0xc41d67,_0x3d2033,_0x931da5,_0x49a2be){var _0x457567=_0x2d3710;return f[_0x457567(0x279)](_0x593d0d[_0x457567(0x268)],u(u({'key':_0xc41d67},q(_0x593d0d,_0x3d2033,_0x49a2be)),_0x931da5),(W(_0x593d0d,_0x3d2033)[_0x457567(0x21d)]||[])['map'](function(_0x51965b,_0x54f7c1){var _0x23a38b=_0x457567;return y(_0x51965b,''[_0x23a38b(0x1f0)](_0xc41d67,'-')[_0x23a38b(0x1f0)](_0x593d0d[_0x23a38b(0x268)],'-')[_0x23a38b(0x1f0)](_0x54f7c1),_0x3d2033,void 0x0,_0x49a2be);}));}function q(_0x3574ec,_0x305472,_0x21cec5){var _0xe2b1fb=_0x2d3710,_0x6f73aa=u({},_0x3574ec[_0xe2b1fb(0x1e8)]);_0x21cec5!=null&&_0x21cec5[_0xe2b1fb(0x236)]&&_0x6f73aa[_0xe2b1fb(0x249)]===_0xe2b1fb(0x236)&&(_0x6f73aa[_0xe2b1fb(0x249)]=_0x21cec5['colorChannel1']),_0x3574ec[_0xe2b1fb(0x268)]===_0xe2b1fb(0x29e)&&_0x6f73aa['id']&&(_0x6f73aa['id']=_0x6f73aa['id']+_0x305472[_0xe2b1fb(0x1e5)]),Object['entries'](_0x6f73aa)[_0xe2b1fb(0x1df)](function(_0x52b8eb){var _0x591e45=_0xe2b1fb,_0x3812da=_0x52b8eb[0x0],_0x3c4745=_0x52b8eb[0x1];_0x3812da===_0x591e45(0x29e)&&typeof _0x3c4745==_0x591e45(0x2a9)&&(_0x6f73aa[_0x3812da]=_0x3c4745['replace'](/url\(#(.*)\)/,_0x591e45(0x274)[_0x591e45(0x1f0)](_0x305472[_0x591e45(0x1e5)],')')));});var _0x37100c=_0x305472[_0xe2b1fb(0x202)];return!_0x37100c||_0x37100c['length']===0x0||(_0x3574ec[_0xe2b1fb(0x268)]==='use'&&_0x6f73aa['xlink:href']&&(_0x6f73aa[_0xe2b1fb(0x1e9)]=_0x6f73aa[_0xe2b1fb(0x1e9)]+_0x305472[_0xe2b1fb(0x1e5)]),Object[_0xe2b1fb(0x27c)](_0x6f73aa)['forEach'](function(_0x12e024){var _0x1e90e1=_0xe2b1fb,_0x1b3044=_0x12e024[0x0],_0x1e9abc=_0x12e024[0x1];typeof _0x1e9abc==_0x1e90e1(0x2a9)&&(_0x6f73aa[_0x1b3044]=_0x1e9abc[_0x1e90e1(0x264)](/url\(#(.*)\)/,_0x1e90e1(0x274)['concat'](_0x305472[_0x1e90e1(0x1e5)],')')));})),_0x6f73aa;}function W(_0xd407b7,_0x31588b){var _0x182776=_0x2d3710,_0x38797b,_0x54cc03=_0x31588b[_0x182776(0x202)];return!_0x54cc03||_0x54cc03[_0x182776(0x299)]===0x0?_0xd407b7:_0xd407b7['tag']===_0x182776(0x232)&&(!((_0x38797b=_0xd407b7['children'])===null||_0x38797b===void 0x0)&&_0x38797b[_0x182776(0x299)])?u(u({},_0xd407b7),{'children':_0xd407b7[_0x182776(0x21d)]['map'](function(_0x15b967){var _0x18e4f5=_0x182776;return typeof _0x15b967[_0x18e4f5(0x1e8)]['id']==_0x18e4f5(0x2a9)&&_0x54cc03&&_0x54cc03['includes'](_0x15b967[_0x18e4f5(0x1e8)]['id'])?u(u({},_0x15b967),{'attrs':u(u({},_0x15b967[_0x18e4f5(0x1e8)]),{'id':_0x15b967[_0x18e4f5(0x1e8)]['id']+_0x31588b[_0x18e4f5(0x1e5)]})}):_0x15b967;})}):_0xd407b7;}function G(){var _0xccc35b=_0x2d3710;return Math[_0xccc35b(0x269)]()[_0xccc35b(0x2b2)](0x24)['substring'](0x2,0x8);}j[_0x2d3710(0x25b)]=_0x2d3710(0x214);var B={'tag':_0x2d3710(0x2a3),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x2d3710(0x2ac),'viewBox':_0x2d3710(0x293),'width':_0x2d3710(0x216),'height':_0x2d3710(0x216)},'children':[{'tag':_0x2d3710(0x1ed),'attrs':{'fill':_0x2d3710(0x215),'d':_0x2d3710(0x247)}},{'tag':_0x2d3710(0x1ed),'attrs':{'fill':'currentColor','d':_0x2d3710(0x233),'fillRule':_0x2d3710(0x25e),'clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0xcf3558,_0x3c3cdc){var _0x3586cd=_0x2d3710;return f['createElement'](j,Object['assign']({},_0xcf3558,{'id':_0x3586cd(0x27a),'ref':_0x3c3cdc,'icon':B}));});function _0x4ffa(_0x132e47,_0x23d44a){var _0x4006a5=_0x4006();return _0x4ffa=function(_0x4ffa28,_0x18a4d5){_0x4ffa28=_0x4ffa28-0x1db;var _0x5c933d=_0x4006a5[_0x4ffa28];return _0x5c933d;},_0x4ffa(_0x132e47,_0x23d44a);}P['displayName']=_0x2d3710(0x20c);var Y=Object[_0x2d3710(0x1ea)],R=(_0x512729,_0x1f3e13,_0x254e51,_0x371d4b)=>{var _0x167a7c=_0x2d3710;for(var _0x51bff6=_0x371d4b>0x1?void 0x0:_0x371d4b?Y(_0x1f3e13,_0x254e51):_0x1f3e13,_0x132667=_0x512729[_0x167a7c(0x299)]-0x1,_0x1b3356;_0x132667>=0x0;_0x132667--)(_0x1b3356=_0x512729[_0x132667])&&(_0x51bff6=_0x1b3356(_0x51bff6)||_0x51bff6);return _0x51bff6;},S=(_0x24c31c,_0x39084b)=>(_0x5283cd,_0x46c8a9)=>_0x39084b(_0x5283cd,_0x46c8a9,_0x24c31c);exports[_0x2d3710(0x2b9)]=class extends o[_0x2d3710(0x213)]{constructor(_0xed2467,_0x1f34a1,_0x57b03d){var _0xafe09c=_0x2d3710;super(),v(this,'_entities',new Map()),(this[_0xafe09c(0x234)]=_0xed2467,this['_injector']=_0x1f34a1,this[_0xafe09c(0x260)]=_0x57b03d,this[_0xafe09c(0x225)]());}async[_0x2d3710(0x227)](_0x3e781f){var _0x252bf7=_0x2d3710;return this[_0x252bf7(0x257)][_0x252bf7(0x2ae)](_0x3e781f)||await this[_0x252bf7(0x259)](_0x3e781f),this[_0x252bf7(0x257)][_0x252bf7(0x2b3)](_0x3e781f);}[_0x2d3710(0x225)](){var _0x17d65a=_0x2d3710;this[_0x17d65a(0x234)][_0x17d65a(0x246)](o[_0x17d65a(0x23d)][_0x17d65a(0x2a6)])[_0x17d65a(0x238)](b[_0x17d65a(0x28c)](this[_0x17d65a(0x25a)]))[_0x17d65a(0x24f)](async _0x4a0dfd=>{var _0x5bbfee=_0x17d65a;const _0x902c9f=_0x4a0dfd[_0x5bbfee(0x2b7)]();this[_0x5bbfee(0x257)][_0x5bbfee(0x2ae)](_0x902c9f)||this[_0x5bbfee(0x259)](_0x902c9f);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x17d65a(0x2a6)])[_0x17d65a(0x238)](b[_0x17d65a(0x28c)](this['dispose$']))[_0x17d65a(0x24f)](_0x27f535=>{var _0x4e5f71=_0x17d65a;const _0x8ec56d=_0x27f535[_0x4e5f71(0x2b7)](),_0x30429c=this[_0x4e5f71(0x257)]['get'](_0x8ec56d);_0x30429c==null||_0x30429c[_0x4e5f71(0x22b)]();});}async[_0x2d3710(0x259)](_0x139386){var _0x247b6d=_0x2d3710;const _0x2fee1e=await this[_0x247b6d(0x260)][_0x247b6d(0x298)](_0x139386),_0xbdd17a=this[_0x247b6d(0x2a0)][_0x247b6d(0x20a)](exports[_0x247b6d(0x294)],_0x139386,_0x2fee1e);return _0xbdd17a['init'](),this['_entities']['set'](_0x139386,_0xbdd17a),_0xbdd17a;}},exports[_0x2d3710(0x2b9)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x2d3710(0x1fb)](o['Injector'])),S(0x2,o[_0x2d3710(0x1fb)](m[_0x2d3710(0x2a7)]))],exports['LiveShareController']);var h=(_0x1e2c20=>(_0x1e2c20[_0x2d3710(0x2b1)]='offline',_0x1e2c20[_0x2d3710(0x22a)]=_0x2d3710(0x26f),_0x1e2c20[_0x2d3710(0x23a)]=_0x2d3710(0x28e),_0x1e2c20[_0x2d3710(0x22c)]=_0x2d3710(0x1e1),_0x1e2c20[_0x2d3710(0x1f1)]=_0x2d3710(0x254),_0x1e2c20))(h||{});const Z=_0x2d3710(0x2ab),J=0xc8;exports[_0x2d3710(0x294)]=class extends o[_0x2d3710(0x213)]{constructor(_0x5b598f,_0x1f44ba,_0x1c010b,_0x49c9f6,_0x4b8b55){var _0x20710a=_0x2d3710;super(),v(this,_0x20710a(0x263),new D[(_0x20710a(0x284))](_0x20710a(0x26f))),v(this,_0x20710a(0x28b),this[_0x20710a(0x263)][_0x20710a(0x2b4)]()),v(this,_0x20710a(0x225),!0x1),v(this,_0x20710a(0x1e4),null),v(this,'_presenter',null),(this['_unitID']=_0x5b598f,this[_0x20710a(0x1f4)]=_0x1f44ba,this[_0x20710a(0x1e3)]=_0x1c010b,this['_liveShareService']=_0x49c9f6,this[_0x20710a(0x29a)]=_0x4b8b55);}get[_0x2d3710(0x285)](){var _0x2140a2=_0x2d3710;return this['_status$'][_0x2140a2(0x282)]();}[_0x2d3710(0x22b)](){var _0x495f41=_0x2d3710,_0x579fd1;(_0x579fd1=this[_0x495f41(0x1e4)])==null||_0x579fd1[_0x495f41(0x22b)](),this[_0x495f41(0x263)]['next']('idle'),this[_0x495f41(0x263)][_0x495f41(0x250)]();}[_0x2d3710(0x239)](){var _0x286a5b=_0x2d3710;this[_0x286a5b(0x225)]||(this[_0x286a5b(0x225)]=!0x0,this[_0x286a5b(0x1f4)][_0x286a5b(0x25d)]['pipe'](b[_0x286a5b(0x28c)](this[_0x286a5b(0x25a)]))[_0x286a5b(0x24f)](_0x259e59=>{var _0x475a9b=_0x286a5b;switch(_0x259e59){case m['SessionStatus']['OFFLINE']:this[_0x475a9b(0x288)]();break;case m[_0x475a9b(0x1ee)][_0x475a9b(0x226)]:this[_0x475a9b(0x292)]();break;}}),this['_collabSession'][_0x286a5b(0x2a4)][_0x286a5b(0x238)](b[_0x286a5b(0x28c)](this[_0x286a5b(0x25a)]))[_0x286a5b(0x24f)](_0x43e7ce=>{var _0x219b97=_0x286a5b;const {eventID:_0x8bce6f}=_0x43e7ce;switch(_0x8bce6f){case _[_0x219b97(0x24d)][_0x219b97(0x243)]:this['_handleNewHost'](_0x43e7ce);break;case _['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x43e7ce);break;case _[_0x219b97(0x24d)][_0x219b97(0x1f9)]:this[_0x219b97(0x261)]();break;case _[_0x219b97(0x24d)][_0x219b97(0x29f)]:this[_0x219b97(0x211)](_0x43e7ce);break;}}));}[_0x2d3710(0x21c)](){var _0xaf9f9a=_0x2d3710;this[_0xaf9f9a(0x1f4)]['send']({'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0xaf9f9a(0x1f4)][_0xaf9f9a(0x23c)]()}},this[_0xaf9f9a(0x272)]);}[_0x2d3710(0x222)](){var _0x2dcd97=_0x2d3710;this[_0x2dcd97(0x285)]==='presenting'&&(this['_status$'][_0x2dcd97(0x28a)]('idle'),this[_0x2dcd97(0x1f4)][_0x2dcd97(0x27e)]({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2dcd97(0x272)]}},this[_0x2dcd97(0x272)]));}['startFollowing'](){var _0x1d1a6f=_0x2d3710;this[_0x1d1a6f(0x285)]===_0x1d1a6f(0x1e1)&&(this[_0x1d1a6f(0x263)][_0x1d1a6f(0x28a)](_0x1d1a6f(0x28e)),this['_startFollowing']());}[_0x2d3710(0x2b5)](){var _0x3b3500=_0x2d3710;this['_status']==='following'&&this[_0x3b3500(0x2aa)]();}[_0x2d3710(0x258)](_0x94a337){var _0x1fc331=_0x2d3710;const {presenter:_0x583e07}=_0x94a337[_0x1fc331(0x275)],_0x5d5165=this[_0x1fc331(0x1f4)][_0x1fc331(0x23c)]();this[_0x1fc331(0x2a8)]=_0x583e07,_0x583e07===_0x5d5165?(this['_stopFollowing'](),this[_0x1fc331(0x1ef)]()):this['_status']!==_0x1fc331(0x1e1)&&(this[_0x1fc331(0x2a1)](),this['_startFollowing']());}[_0x2d3710(0x2af)](){var _0x1c3106=_0x2d3710;const _0x597a03={'eventID':_['CollaborationEvent'][_0x1c3106(0x217)]};this[_0x1c3106(0x1f4)]['send'](_0x597a03,this[_0x1c3106(0x272)]);}['_handleTerminate'](){var _0x436839=_0x2d3710;this[_0x436839(0x2a8)]=null,this[_0x436839(0x285)]!==_0x436839(0x254)&&this[_0x436839(0x1e6)]();}['_handleNewChangeSets'](_0x44adf5){var _0x3da391=_0x2d3710;if(this[_0x3da391(0x285)]===_0x3da391(0x28e)&&this[_0x3da391(0x2a8)]===_0x44adf5[_0x3da391(0x275)][_0x3da391(0x2bb)]){const _0x4cddc0=_[_0x3da391(0x208)](_0x44adf5[_0x3da391(0x275)])[_0x3da391(0x1e2)]['reverse']()[_0x3da391(0x273)](_0x422757=>_0x422757['id']===C[_0x3da391(0x2bc)]['id']);if(_0x4cddc0){const _0x3a124f=_0x4cddc0[_0x3da391(0x228)][_0x3da391(0x2b8)],_0x13ad3f=_0x4cddc0[_0x3da391(0x228)][_0x3da391(0x1fc)]['id'];setTimeout(()=>{var _0x59ff03=_0x3da391;this[_0x59ff03(0x29a)][_0x59ff03(0x277)](C[_0x59ff03(0x220)]['id'],{'unitId':_0x3a124f,'subUnitId':_0x13ad3f},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x2ae981=_0x2d3710;this['_status$']['next'](_0x2ae981(0x254));const _0x59e28f=new Map(),_0x24b8eb=this['_commandDisposable']=new o['DisposableCollection']();_0x24b8eb[_0x2ae981(0x242)](o[_0x2ae981(0x2a2)](()=>{var _0x37412c=_0x2ae981;_0x59e28f[_0x37412c(0x1df)](_0x1be02d=>_0x1be02d[_0x37412c(0x250)]()),_0x59e28f[_0x37412c(0x245)]();})),_0x24b8eb[_0x2ae981(0x242)](this['_commandService'][_0x2ae981(0x27b)](_0x2faf26=>{var _0x2c5b42=_0x2ae981,_0x6c727f;if(_0x2faf26[_0x2c5b42(0x22e)]!==o[_0x2c5b42(0x20b)][_0x2c5b42(0x27d)]||!this[_0x2c5b42(0x26d)][_0x2c5b42(0x28d)](_0x2faf26['id']))return;const {id:_0x576531}=_0x2faf26;let _0x5214d8;_0x59e28f['has'](_0x576531)?_0x5214d8=_0x59e28f[_0x2c5b42(0x2b3)](_0x576531):(_0x5214d8=new D[(_0x2c5b42(0x265))](),_0x59e28f['set'](_0x576531,_0x5214d8),_0x5214d8[_0x2c5b42(0x238)](b['throttleTime']((_0x6c727f=this['_configService'][_0x2c5b42(0x1de)](Z))!=null?_0x6c727f:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c5b42(0x24f)](_0x2671ad=>{var _0x5e4cb0=_0x2c5b42;this[_0x5e4cb0(0x1f4)][_0x5e4cb0(0x27e)]({'eventID':_[_0x5e4cb0(0x24d)][_0x5e4cb0(0x1f8)],'data':{'unitID':this[_0x5e4cb0(0x272)],'operations':{[_0x2671ad['id']]:{'id':_0x2671ad['id'],'params':JSON[_0x5e4cb0(0x25f)](_0x2671ad['params'])}}}},this[_0x5e4cb0(0x272)]);})),_0x5214d8[_0x2c5b42(0x28a)](_0x2faf26);})),this['_liveShareService']['getInitialStates'](this[_0x2ae981(0x272)])['forEach'](_0x351bd2=>this[_0x2ae981(0x1f4)][_0x2ae981(0x27e)]({'eventID':_[_0x2ae981(0x24d)][_0x2ae981(0x1f8)],'data':{'unitID':this['_unitID'],'operations':{[_0x351bd2['id']]:{'id':_0x351bd2['id'],'params':JSON[_0x2ae981(0x25f)](_0x351bd2['params'])}}}},this['_unitID']));}[_0x2d3710(0x2a1)](){var _0x40dbed=_0x2d3710,_0x1a357c;this[_0x40dbed(0x263)]['next']('idle'),(_0x1a357c=this[_0x40dbed(0x1e4)])==null||_0x1a357c[_0x40dbed(0x22b)](),this[_0x40dbed(0x1e4)]=null;}[_0x2d3710(0x1f5)](){var _0x4f3819=_0x2d3710,_0x6a255e;(_0x6a255e=this['_commandDisposable'])==null||_0x6a255e[_0x4f3819(0x22b)](),this[_0x4f3819(0x263)][_0x4f3819(0x28a)](_0x4f3819(0x28e));}['_beIdle'](){var _0x317f9f=_0x2d3710,_0x2f8c92;this[_0x317f9f(0x263)]['next']('idle'),(_0x2f8c92=this[_0x317f9f(0x1e4)])==null||_0x2f8c92[_0x317f9f(0x22b)](),this[_0x317f9f(0x1e4)]=null;}[_0x2d3710(0x2aa)](){var _0x4a7327=_0x2d3710,_0x46b5df;this[_0x4a7327(0x263)][_0x4a7327(0x28a)](_0x4a7327(0x1e1)),(_0x46b5df=this['_commandDisposable'])==null||_0x46b5df[_0x4a7327(0x22b)]();}[_0x2d3710(0x1dd)](_0x1272e4){var _0x7d0953=_0x2d3710;if(['presenting',_0x7d0953(0x1e1),_0x7d0953(0x26a)][_0x7d0953(0x20d)](this[_0x7d0953(0x285)])||!_0x1272e4[_0x7d0953(0x275)][_0x7d0953(0x207)]||_0x1272e4[_0x7d0953(0x275)][_0x7d0953(0x207)]===this[_0x7d0953(0x1f4)][_0x7d0953(0x23c)]())return;this[_0x7d0953(0x285)]===_0x7d0953(0x26f)&&this[_0x7d0953(0x1f5)]();const _0x32f34d=_0x1272e4[_0x7d0953(0x275)][_0x7d0953(0x1eb)];Object[_0x7d0953(0x1fe)](_0x32f34d)[_0x7d0953(0x1df)](_0x5b52a1=>{var _0x15a73a=_0x7d0953;this[_0x15a73a(0x29a)][_0x15a73a(0x277)](_0x5b52a1['id'],_0x5b52a1[_0x15a73a(0x228)]?JSON[_0x15a73a(0x276)](_0x5b52a1[_0x15a73a(0x228)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x34537b=_0x2d3710,_0x41b629;this['_status$'][_0x34537b(0x28a)](_0x34537b(0x26a)),(_0x41b629=this[_0x34537b(0x1e4)])==null||_0x41b629[_0x34537b(0x22b)]();}[_0x2d3710(0x292)](){var _0x15579c=_0x2d3710;this[_0x15579c(0x263)][_0x15579c(0x28a)]('idle'),this[_0x15579c(0x2af)]();}},exports[_0x2d3710(0x294)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x2d3710(0x1fb)](O)),S(0x4,o[_0x2d3710(0x24b)])],exports[_0x2d3710(0x294)]);function A(){var _0x3037f3=_0x2d3710;const _0x16adb7=p[_0x3037f3(0x26e)](exports[_0x3037f3(0x2b9)]),_0x53d4bd=p['useDependency'](o['IUniverInstanceService']),_0x2dbdd8=p['useObservable'](()=>_0x53d4bd['getCurrentTypeOfUnit$'](o[_0x3037f3(0x23d)][_0x3037f3(0x2a6)]),void 0x0,!0x1,[]),[_0x492e70,_0x55652a]=f[_0x3037f3(0x291)](null),[_0x1822fa,_0x6506c8]=f[_0x3037f3(0x291)](h[_0x3037f3(0x22a)]),_0x36db99=f['useRef'](null);return f['useEffect'](()=>(_0x2dbdd8&&_0x16adb7[_0x3037f3(0x227)](_0x2dbdd8[_0x3037f3(0x2b7)]())['then'](_0x3f26a5=>{var _0x326112=_0x3037f3;_0x55652a(_0x3f26a5),_0x36db99['current']=_0x3f26a5[_0x326112(0x28b)][_0x326112(0x24f)](_0x4448e5=>{_0x6506c8(_0x4448e5);});}),()=>{var _0x31e018=_0x3037f3,_0x422c49;(_0x422c49=_0x36db99[_0x31e018(0x2b0)])==null||_0x422c49['unsubscribe'](),_0x36db99[_0x31e018(0x2b0)]=null;}),[_0x2dbdd8,_0x16adb7]),_0x492e70?l[_0x3037f3(0x297)](g['Dropdown'],{'align':_0x3037f3(0x20e),'disabled':_0x1822fa===h[_0x3037f3(0x2b1)],'className':_0x3037f3(0x295),'overlay':l['jsx'](K,{'status':_0x1822fa,'coordinator':_0x492e70}),'children':l[_0x3037f3(0x297)]('button',{'className':g[_0x3037f3(0x252)](_0x3037f3(0x240),{'univer-cursor-not-allowed':_0x1822fa===h[_0x3037f3(0x2b1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1822fa!==h[_0x3037f3(0x2b1)]}),'type':'button','children':l['jsx'](P,{'className':_0x3037f3(0x230)})})}):null;}function K(_0x32f509){var _0x2c3ec1=_0x2d3710;const {status:_0x3be96b,coordinator:_0x48f7fd}=_0x32f509;switch(_0x3be96b){case h[_0x2c3ec1(0x22a)]:return l[_0x2c3ec1(0x297)](z,{'coordinator':_0x48f7fd});case h[_0x2c3ec1(0x23a)]:return l['jsx'](Q,{'coordinator':_0x48f7fd});case h[_0x2c3ec1(0x22c)]:return l[_0x2c3ec1(0x297)](X,{'coordinator':_0x48f7fd});case h['OFFLINE']:return l[_0x2c3ec1(0x297)](te,{});case h['PRESENTING']:return l[_0x2c3ec1(0x297)](ee,{'coordinator':_0x48f7fd});default:return null;}}function _0x4006(){var _0x458c1e=['UNIVER_SHEET','CollaborationSessionService','_presenter','string','_stopFollowing','SAME_OPERATION_SHARE_INTERVAL','none','pluginName','has','_fetchOperations','current','OFFLINE','toString','get','asObservable','stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','getUnitId','unitId','LiveShareController','startFollowing','memberID','InsertSheetMutation','1535JwyxZp','77739AlxGPj','div','19986YKHGNY','Start','_handleOperation','getConfig','forEach','_mountLiveShare','not-following','mutations','_configService','_commandDisposable','idSuffix','_beIdle','LiveShareStatus','attrs','xlink:href','getOwnPropertyDescriptor','operations','DesktopLiveShareController','path','SessionStatus','_startPresenting','concat','PRESENTING','Fragment','forwardRef','_collabSession','_startFollowing','SetZoomRatioOperation','propertyIsEnumerable','LIVESHARE_OPERATION','LIVESHARE_TERMINATE','function','Inject','sheet','_reporters','values','Button','call','registerDependencies','defIds','className','6924GmLSSv','Module','Stop\x20following','presenter','parseProtocolChangeset','Injector','createInstance','CommandType','LiveShareIcon','includes','end','DependentOn','LiveShareService','_handleNewChangeSets','Present\x20this\x20document','RxDisposable','UniverIcon','currentColor','1em','LIVESHARE_FETCH_OPERATIONS','disposeWithMe','useRef','hasOwnProperty','Disposable','tryStartPresenting','children','setConfig','connectInjector','SetWorksheetActiveOperation','UniverLiveSharePlugin','stopPresenting','UNIVER_LIVE_SHARE_PLUGIN','261lLyMAL','_init','ONLINE','getLiveShareCoordinator','params','onStarting','IDLE','dispose','NOT_FOLLOWING','HEADER_MENU','type','override','univer-size-4','5488868IBmaVY','defs','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','_univerInstanceService','map','colorChannel1','112nXoEWb','pipe','init','FOLLOWING','SetScrollOperation','getMemberID','UniverInstanceType','394672UbjCWQ','32255460EJGGvG','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','icon','add','LIVESHARE_NEW_HOST','BuiltInUIPart','clear','getTypeOfUnitAdded$','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','LiveShare','fill','from','ICommandService','You\x27re\x20not\x20following\x20the\x20presenter','CollaborationEvent','_config','subscribe','complete','prototype','clsx','touchDependencies','presenting','Start\x20following','live-share.config','_entities','_handleNewHost','_startLiveShareCoordinator','dispose$','displayName','2845762gQOpZa','sessionStatus$','evenodd','stringify','_collabSessionService','_handleTerminate','Stop\x20presenting','_status$','replace','Subject','getInitialStates','indexOf','tag','random','offline','extend','registerInitialStateReporter','_liveShareService','useDependency','idle','onRendered','defineProperty','_unitID','find','url(#$1','data','parse','executeCommand','getOwnPropertySymbols','createElement','live-share-icon','onCommandExecuted','entries','OPERATION','send','symbol','univerjs-icon\x20univerjs-icon-','assign','getValue','delete','BehaviorSubject','_status','You\x27are\x20offline.','jsxs','_handleOffline','_uiPartsService','next','status$','takeUntil','shouldShareOperation','following','trim','UniverCollaborationClientPlugin','useState','_handleOnline','0\x200\x2017\x2017','LiveShareCoordinator','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','merge','jsx','requireSession','length','_commandService','Plugin','registerSharedOperation','toStringTag','mask','NEW_CHANGESETS','_injector','_stopPresenting','toDisposable','svg','event$','_sharedOperations'];_0x4006=function(){return _0x458c1e;};return _0x4006();}function z(_0x1551ae){var _0x53abd8=_0x2d3710;const {coordinator:_0x44948b}=_0x1551ae;return l['jsxs'](l[_0x53abd8(0x1f2)],{'children':[l[_0x53abd8(0x297)](_0x53abd8(0x2bf),{'className':_0x53abd8(0x2b6),'children':_0x53abd8(0x212)}),l['jsx'](g[_0x53abd8(0x1ff)],{'onClick':()=>_0x44948b[_0x53abd8(0x21c)](),'children':_0x53abd8(0x1dc)})]});}function Q(_0x52c226){var _0x4e5d5d=_0x2d3710;const {coordinator:_0xdfd09a}=_0x52c226;return l['jsxs'](l[_0x4e5d5d(0x1f2)],{'children':[l[_0x4e5d5d(0x297)](_0x4e5d5d(0x2bf),{'className':_0x4e5d5d(0x2b6),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g[_0x4e5d5d(0x1ff)],{'onClick':()=>_0xdfd09a[_0x4e5d5d(0x2b5)](),'children':_0x4e5d5d(0x206)})]});}function X(_0x1ae099){var _0x3f86be=_0x2d3710;const {coordinator:_0x170e91}=_0x1ae099;return l['jsxs'](l[_0x3f86be(0x1f2)],{'children':[l['jsx'](_0x3f86be(0x2bf),{'className':_0x3f86be(0x2b6),'children':_0x3f86be(0x24c)}),l[_0x3f86be(0x297)](g[_0x3f86be(0x1ff)],{'variant':'text','onClick':()=>_0x170e91[_0x3f86be(0x2ba)](),'children':_0x3f86be(0x255)})]});}function ee(_0x59b483){var _0x4ccfeb=_0x2d3710;const {coordinator:_0x2da8dd}=_0x59b483;return l[_0x4ccfeb(0x287)](l[_0x4ccfeb(0x1f2)],{'children':[l[_0x4ccfeb(0x297)](_0x4ccfeb(0x2bf),{'className':_0x4ccfeb(0x2b6),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x4ccfeb(0x297)](g[_0x4ccfeb(0x1ff)],{'variant':'default','onClick':()=>_0x2da8dd[_0x4ccfeb(0x222)](),'children':_0x4ccfeb(0x262)})]});}function te(){var _0x583668=_0x2d3710;return l[_0x583668(0x297)](l[_0x583668(0x1f2)],{'children':_0x583668(0x286)});}var ie=Object[_0x2d3710(0x1ea)],ne=(_0xbbe60f,_0x16696f,_0x24fd01,_0x57b2a6)=>{var _0x11a313=_0x2d3710;for(var _0x296749=_0x57b2a6>0x1?void 0x0:_0x57b2a6?ie(_0x16696f,_0x24fd01):_0x16696f,_0x2c5198=_0xbbe60f[_0x11a313(0x299)]-0x1,_0x3c0d13;_0x2c5198>=0x0;_0x2c5198--)(_0x3c0d13=_0xbbe60f[_0x2c5198])&&(_0x296749=_0x3c0d13(_0x296749)||_0x296749);return _0x296749;},L=(_0x5e3353,_0x1caeea)=>(_0xd9822,_0x2b7cc6)=>_0x1caeea(_0xd9822,_0x2b7cc6,_0x5e3353);exports[_0x2d3710(0x1ec)]=class extends o[_0x2d3710(0x21b)]{constructor(_0x48fbb5,_0x5e2f4c){var _0x2fd1f1=_0x2d3710;super(),this[_0x2fd1f1(0x2a0)]=_0x48fbb5,this[_0x2fd1f1(0x289)]=_0x5e2f4c,this['_mountLiveShare']();}[_0x2d3710(0x1e0)](){var _0x5edf77=_0x2d3710;this['disposeWithMe'](this[_0x5edf77(0x289)]['registerComponent'](p[_0x5edf77(0x244)][_0x5edf77(0x22d)],()=>p[_0x5edf77(0x21f)](A,this[_0x5edf77(0x2a0)])));}},exports[_0x2d3710(0x1ec)]=ne([L(0x0,o[_0x2d3710(0x1fb)](o[_0x2d3710(0x209)])),L(0x1,p['IUIPartsService'])],exports[_0x2d3710(0x1ec)]);var re=Object[_0x2d3710(0x271)],se=Object[_0x2d3710(0x1ea)],oe=(_0x19fe8e,_0x554205,_0x18aa96)=>_0x554205 in _0x19fe8e?re(_0x19fe8e,_0x554205,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18aa96}):_0x19fe8e[_0x554205]=_0x18aa96,ae=(_0x10fa43,_0x57b6b1,_0x411159,_0x2fa9cd)=>{var _0x578d0f=_0x2d3710;for(var _0x25b464=_0x2fa9cd>0x1?void 0x0:_0x2fa9cd?se(_0x57b6b1,_0x411159):_0x57b6b1,_0x266911=_0x10fa43[_0x578d0f(0x299)]-0x1,_0x457832;_0x266911>=0x0;_0x266911--)(_0x457832=_0x10fa43[_0x266911])&&(_0x25b464=_0x457832(_0x25b464)||_0x25b464);return _0x25b464;},N=(_0x48358f,_0x3913e4)=>(_0x4f2dcb,_0x5e7de2)=>_0x3913e4(_0x4f2dcb,_0x5e7de2,_0x48358f),T=(_0x151e06,_0x210b06,_0x47d4e0)=>oe(_0x151e06,typeof _0x210b06!=_0x2d3710(0x27f)?_0x210b06+'':_0x210b06,_0x47d4e0);const le=_0x2d3710(0x223);exports[_0x2d3710(0x221)]=class extends o[_0x2d3710(0x29b)]{constructor(_0xf4da51=x,_0x4739c2,_0x34fcf8){var _0x2e8279=_0x2d3710;super(),this[_0x2e8279(0x24e)]=_0xf4da51,this[_0x2e8279(0x2a0)]=_0x4739c2,this[_0x2e8279(0x1e3)]=_0x34fcf8;const {..._0x817c82}=o[_0x2e8279(0x296)]({},x,this[_0x2e8279(0x24e)]);this[_0x2e8279(0x1e3)][_0x2e8279(0x21e)]($,_0x817c82);}[_0x2d3710(0x229)](){var _0x52de7c=_0x2d3710;o[_0x52de7c(0x201)](this[_0x52de7c(0x2a0)],o['mergeOverrideWithDependencies']([[O],[exports[_0x52de7c(0x2b9)]],[E],[exports[_0x52de7c(0x1ec)]]],this[_0x52de7c(0x24e)][_0x52de7c(0x22f)])),o[_0x52de7c(0x253)](this[_0x52de7c(0x2a0)],[[E]]);}[_0x2d3710(0x270)](){var _0x54fb8c=_0x2d3710;o['touchDependencies'](this[_0x54fb8c(0x2a0)],[[exports['DesktopLiveShareController']]]);}},T(exports['UniverLiveSharePlugin'],_0x2d3710(0x22e),o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x2d3710(0x221)],_0x2d3710(0x2ad),le),exports[_0x2d3710(0x221)]=ae([o[_0x2d3710(0x20f)](m[_0x2d3710(0x290)]),N(0x1,o[_0x2d3710(0x1fb)](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x2d3710(0x221)]),exports[_0x2d3710(0x248)]=A,exports[_0x2d3710(0x210)]=O,exports[_0x2d3710(0x1e7)]=h;
1
+ 'use strict';var _0x3d2949=_0x1593;(function(_0x4f3938,_0x431a1a){var _0x50050f=_0x1593,_0x374692=_0x4f3938();while(!![]){try{var _0x50ff19=parseInt(_0x50050f(0x1d6))/0x1+parseInt(_0x50050f(0x207))/0x2+parseInt(_0x50050f(0x1b0))/0x3*(parseInt(_0x50050f(0x204))/0x4)+parseInt(_0x50050f(0x1a7))/0x5*(parseInt(_0x50050f(0x157))/0x6)+-parseInt(_0x50050f(0x14d))/0x7+-parseInt(_0x50050f(0x165))/0x8*(-parseInt(_0x50050f(0x172))/0x9)+-parseInt(_0x50050f(0x215))/0xa;if(_0x50ff19===_0x431a1a)break;else _0x374692['push'](_0x374692['shift']());}catch(_0x3af80b){_0x374692['push'](_0x374692['shift']());}}}(_0x2978,0xbd32f));var U=Object[_0x3d2949(0x175)],F=(_0x3e015c,_0x2db239,_0x574bbd)=>_0x2db239 in _0x3e015c?U(_0x3e015c,_0x2db239,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x574bbd}):_0x3e015c[_0x2db239]=_0x574bbd,v=(_0x373d98,_0x1ee170,_0x447ed5)=>F(_0x373d98,typeof _0x1ee170!=_0x3d2949(0x183)?_0x1ee170+'':_0x1ee170,_0x447ed5);Object['defineProperty'](exports,Symbol[_0x3d2949(0x17a)],{'value':_0x3d2949(0x155)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$='live-share.config',x={};class O extends o[_0x3d2949(0x14b)]{constructor(){var _0x3b2ce5=_0x3d2949;super(...arguments),v(this,_0x3b2ce5(0x1b2),new Set()),v(this,_0x3b2ce5(0x17b),new Set());}[_0x3d2949(0x1d8)](_0x287335){var _0x45844d=_0x3d2949;return this['_sharedOperations'][_0x45844d(0x168)](_0x287335),o[_0x45844d(0x180)](()=>this['_sharedOperations'][_0x45844d(0x1f1)](_0x287335));}[_0x3d2949(0x174)](_0x5b9f3b){var _0x3dd489=_0x3d2949;return this['_reporters'][_0x3dd489(0x168)](_0x5b9f3b),o[_0x3dd489(0x180)](()=>this['_reporters'][_0x3dd489(0x1f1)](_0x5b9f3b));}['shouldShareOperation'](_0x56aeec){var _0x2f9c04=_0x3d2949;return this[_0x2f9c04(0x1b2)][_0x2f9c04(0x1b4)](_0x56aeec);}[_0x3d2949(0x1ac)](_0x587263){var _0x1bb7eb=_0x3d2949;return Array['from'](this[_0x1bb7eb(0x17b)])[_0x1bb7eb(0x16a)](_0x4ddcd7=>_0x4ddcd7(_0x587263));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x52a903,_0x50ece1,_0x28c068,_0x481e48)=>{var _0x3bc794=_0x3d2949;for(var _0x4e8e23=_0x481e48>0x1?void 0x0:_0x481e48?H(_0x50ece1,_0x28c068):_0x50ece1,_0x47bf36=_0x52a903[_0x3bc794(0x1b5)]-0x1,_0x131c40;_0x47bf36>=0x0;_0x47bf36--)(_0x131c40=_0x52a903[_0x47bf36])&&(_0x4e8e23=_0x131c40(_0x4e8e23)||_0x4e8e23);return _0x4e8e23;},k=(_0x35f0f8,_0x207977)=>(_0x22ddc4,_0x1e4daf)=>_0x207977(_0x22ddc4,_0x1e4daf,_0x35f0f8);let E=class extends o['Disposable']{constructor(_0x481bcc){var _0x4ae5f4=_0x3d2949;super(),this[_0x4ae5f4(0x1ee)]=_0x481bcc,this[_0x4ae5f4(0x1a9)]();}[_0x3d2949(0x1a9)](){var _0x2c7b52=_0x3d2949;[w['SetZoomRatioOperation']['id'],w[_0x2c7b52(0x194)]['id'],C[_0x2c7b52(0x1f5)]['id']]['forEach'](_0x4421ee=>{var _0x355d6a=_0x2c7b52;this[_0x355d6a(0x199)](this['_liveShareService'][_0x355d6a(0x1d8)](_0x4421ee));});}};E=V([k(0x0,o[_0x3d2949(0x156)](O))],E);var u=function(){var _0x3a62c7=_0x3d2949;return u=Object[_0x3a62c7(0x1a0)]||function(_0x5a3307){var _0x42c2e4=_0x3a62c7;for(var _0x586a9,_0x40ae12=0x1,_0x38c650=arguments['length'];_0x40ae12<_0x38c650;_0x40ae12++){_0x586a9=arguments[_0x40ae12];for(var _0x539ec7 in _0x586a9)Object[_0x42c2e4(0x18d)]['hasOwnProperty'][_0x42c2e4(0x17c)](_0x586a9,_0x539ec7)&&(_0x5a3307[_0x539ec7]=_0x586a9[_0x539ec7]);}return _0x5a3307;},u[_0x3a62c7(0x1a5)](this,arguments);},M=function(_0x233ff2,_0x33933d){var _0x4ac4ce=_0x3d2949,_0x48f872={};for(var _0x3b0a63 in _0x233ff2)Object['prototype'][_0x4ac4ce(0x1b3)][_0x4ac4ce(0x17c)](_0x233ff2,_0x3b0a63)&&_0x33933d[_0x4ac4ce(0x1a2)](_0x3b0a63)<0x0&&(_0x48f872[_0x3b0a63]=_0x233ff2[_0x3b0a63]);if(_0x233ff2!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x2ef219=0x0,_0x3b0a63=Object[_0x4ac4ce(0x189)](_0x233ff2);_0x2ef219<_0x3b0a63[_0x4ac4ce(0x1b5)];_0x2ef219++)_0x33933d[_0x4ac4ce(0x1a2)](_0x3b0a63[_0x2ef219])<0x0&&Object['prototype'][_0x4ac4ce(0x1f6)][_0x4ac4ce(0x17c)](_0x233ff2,_0x3b0a63[_0x2ef219])&&(_0x48f872[_0x3b0a63[_0x2ef219]]=_0x233ff2[_0x3b0a63[_0x2ef219]]);}return _0x48f872;},j=f[_0x3d2949(0x1b1)](function(_0x3dfbc6,_0x4b9ac1){var _0x59b94a=_0x3d2949,_0x279421=_0x3dfbc6[_0x59b94a(0x15e)],_0x2e0301=_0x3dfbc6['id'],_0x5575ea=_0x3dfbc6[_0x59b94a(0x209)],_0x18e412=_0x3dfbc6[_0x59b94a(0x143)],_0x1e0940=M(_0x3dfbc6,[_0x59b94a(0x15e),'id',_0x59b94a(0x209),_0x59b94a(0x143)]),_0x565af3=_0x59b94a(0x1d5)[_0x59b94a(0x182)](_0x2e0301,'\x20')[_0x59b94a(0x182)](_0x5575ea||'')[_0x59b94a(0x15d)](),_0x4bc818=f['useRef']('_'[_0x59b94a(0x182)](G()));return y(_0x279421,''[_0x59b94a(0x182)](_0x2e0301),{'defIds':_0x279421[_0x59b94a(0x21e)],'idSuffix':_0x4bc818[_0x59b94a(0x14f)]},u({'ref':_0x4b9ac1,'className':_0x565af3},_0x1e0940),_0x18e412);});function y(_0x1adcc9,_0x3cd97d,_0x13968d,_0x31965a,_0x29ed50){var _0x37ec8b=_0x3d2949;return f[_0x37ec8b(0x208)](_0x1adcc9[_0x37ec8b(0x19a)],u(u({'key':_0x3cd97d},q(_0x1adcc9,_0x13968d,_0x29ed50)),_0x31965a),(W(_0x1adcc9,_0x13968d)[_0x37ec8b(0x1a1)]||[])[_0x37ec8b(0x16a)](function(_0xe7ef3d,_0x1a12c3){var _0x35f597=_0x37ec8b;return y(_0xe7ef3d,''[_0x35f597(0x182)](_0x3cd97d,'-')[_0x35f597(0x182)](_0x1adcc9[_0x35f597(0x19a)],'-')[_0x35f597(0x182)](_0x1a12c3),_0x13968d,void 0x0,_0x29ed50);}));}function q(_0x45e793,_0x3a71e6,_0x28cff5){var _0x278e87=_0x3d2949,_0x17d525=u({},_0x45e793[_0x278e87(0x147)]);_0x28cff5!=null&&_0x28cff5[_0x278e87(0x203)]&&_0x17d525[_0x278e87(0x17d)]===_0x278e87(0x203)&&(_0x17d525[_0x278e87(0x17d)]=_0x28cff5['colorChannel1']),_0x45e793[_0x278e87(0x19a)]===_0x278e87(0x15a)&&_0x17d525['id']&&(_0x17d525['id']=_0x17d525['id']+_0x3a71e6[_0x278e87(0x19c)]),Object[_0x278e87(0x190)](_0x17d525)[_0x278e87(0x216)](function(_0x4d875e){var _0xbd2b7=_0x278e87,_0x32fda0=_0x4d875e[0x0],_0x5ea707=_0x4d875e[0x1];_0x32fda0===_0xbd2b7(0x15a)&&typeof _0x5ea707==_0xbd2b7(0x178)&&(_0x17d525[_0x32fda0]=_0x5ea707[_0xbd2b7(0x160)](/url\(#(.*)\)/,_0xbd2b7(0x1ff)['concat'](_0x3a71e6[_0xbd2b7(0x19c)],')')));});var _0x45bd17=_0x3a71e6['defIds'];return!_0x45bd17||_0x45bd17['length']===0x0||(_0x45e793[_0x278e87(0x19a)]==='use'&&_0x17d525[_0x278e87(0x20b)]&&(_0x17d525[_0x278e87(0x20b)]=_0x17d525['xlink:href']+_0x3a71e6[_0x278e87(0x19c)]),Object[_0x278e87(0x190)](_0x17d525)['forEach'](function(_0x1216dd){var _0x2ef641=_0x278e87,_0x1e934b=_0x1216dd[0x0],_0x46f434=_0x1216dd[0x1];typeof _0x46f434=='string'&&(_0x17d525[_0x1e934b]=_0x46f434[_0x2ef641(0x160)](/url\(#(.*)\)/,_0x2ef641(0x1ff)[_0x2ef641(0x182)](_0x3a71e6[_0x2ef641(0x19c)],')')));})),_0x17d525;}function W(_0x19340c,_0x5b4efa){var _0xe03e62=_0x3d2949,_0x8c5895,_0x1c3c1b=_0x5b4efa[_0xe03e62(0x21e)];return!_0x1c3c1b||_0x1c3c1b[_0xe03e62(0x1b5)]===0x0?_0x19340c:_0x19340c['tag']==='defs'&&(!((_0x8c5895=_0x19340c[_0xe03e62(0x1a1)])===null||_0x8c5895===void 0x0)&&_0x8c5895[_0xe03e62(0x1b5)])?u(u({},_0x19340c),{'children':_0x19340c[_0xe03e62(0x1a1)][_0xe03e62(0x16a)](function(_0x1cb0d5){var _0x20ad7d=_0xe03e62;return typeof _0x1cb0d5[_0x20ad7d(0x147)]['id']==_0x20ad7d(0x178)&&_0x1c3c1b&&_0x1c3c1b[_0x20ad7d(0x1e1)](_0x1cb0d5['attrs']['id'])?u(u({},_0x1cb0d5),{'attrs':u(u({},_0x1cb0d5[_0x20ad7d(0x147)]),{'id':_0x1cb0d5['attrs']['id']+_0x5b4efa[_0x20ad7d(0x19c)]})}):_0x1cb0d5;})}):_0x19340c;}function G(){var _0x376cb7=_0x3d2949;return Math['random']()[_0x376cb7(0x1b8)](0x24)[_0x376cb7(0x1ab)](0x2,0x8);}j['displayName']='UniverIcon';var B={'tag':_0x3d2949(0x219),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3d2949(0x1cc),'viewBox':_0x3d2949(0x19f),'width':_0x3d2949(0x1e9),'height':'1em'},'children':[{'tag':_0x3d2949(0x1e5),'attrs':{'fill':'currentColor','d':_0x3d2949(0x187)}},{'tag':_0x3d2949(0x1e5),'attrs':{'fill':_0x3d2949(0x1ea),'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':_0x3d2949(0x18f)}}]},P=f[_0x3d2949(0x1b1)](function(_0x823389,_0x33f5ac){var _0x300832=_0x3d2949;return f[_0x300832(0x208)](j,Object[_0x300832(0x1a0)]({},_0x823389,{'id':_0x300832(0x144),'ref':_0x33f5ac,'icon':B}));});P[_0x3d2949(0x1a8)]=_0x3d2949(0x146);var Y=Object[_0x3d2949(0x152)],R=(_0x587af8,_0x57fa42,_0x8f0648,_0x3cb693)=>{var _0x16c8cf=_0x3d2949;for(var _0x30f6dc=_0x3cb693>0x1?void 0x0:_0x3cb693?Y(_0x57fa42,_0x8f0648):_0x57fa42,_0x1d4eb3=_0x587af8[_0x16c8cf(0x1b5)]-0x1,_0x10f0ab;_0x1d4eb3>=0x0;_0x1d4eb3--)(_0x10f0ab=_0x587af8[_0x1d4eb3])&&(_0x30f6dc=_0x10f0ab(_0x30f6dc)||_0x30f6dc);return _0x30f6dc;},S=(_0x223eb8,_0xc9b339)=>(_0x4b4437,_0x5af1a6)=>_0xc9b339(_0x4b4437,_0x5af1a6,_0x223eb8);exports[_0x3d2949(0x163)]=class extends o[_0x3d2949(0x171)]{constructor(_0x326ca2,_0x4ca046,_0x10b5f0){var _0x5da7c9=_0x3d2949;super(),v(this,_0x5da7c9(0x1b7),new Map()),(this[_0x5da7c9(0x1dd)]=_0x326ca2,this[_0x5da7c9(0x198)]=_0x4ca046,this['_collabSessionService']=_0x10b5f0,this[_0x5da7c9(0x1a9)]());}async[_0x3d2949(0x179)](_0x59f050){var _0x2f6020=_0x3d2949;return this[_0x2f6020(0x1b7)]['has'](_0x59f050)||await this['_startLiveShareCoordinator'](_0x59f050),this[_0x2f6020(0x1b7)][_0x2f6020(0x1f7)](_0x59f050);}[_0x3d2949(0x1a9)](){var _0xee201c=_0x3d2949;this['_univerInstanceService'][_0xee201c(0x16e)](o[_0xee201c(0x1f0)][_0xee201c(0x1bc)])['pipe'](b[_0xee201c(0x1c3)](this[_0xee201c(0x1a4)]))[_0xee201c(0x1f3)](async _0x214a7b=>{var _0x125593=_0xee201c;const _0x28bb43=_0x214a7b['getUnitId']();this[_0x125593(0x1b7)]['has'](_0x28bb43)||this[_0x125593(0x191)](_0x28bb43);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0xee201c(0x1bc)])[_0xee201c(0x149)](b[_0xee201c(0x1c3)](this[_0xee201c(0x1a4)]))[_0xee201c(0x1f3)](_0xb224ec=>{var _0x190db4=_0xee201c;const _0x205006=_0xb224ec[_0x190db4(0x21b)](),_0x5b1b2b=this[_0x190db4(0x1b7)][_0x190db4(0x1f7)](_0x205006);_0x5b1b2b==null||_0x5b1b2b[_0x190db4(0x169)]();});}async['_startLiveShareCoordinator'](_0x245404){var _0x3ce1bb=_0x3d2949;const _0x1089fc=await this[_0x3ce1bb(0x1c2)]['requireSession'](_0x245404),_0x1f8f0c=this[_0x3ce1bb(0x198)]['createInstance'](exports[_0x3ce1bb(0x1ad)],_0x245404,_0x1089fc);return _0x1f8f0c[_0x3ce1bb(0x1d2)](),this[_0x3ce1bb(0x1b7)][_0x3ce1bb(0x195)](_0x245404,_0x1f8f0c),_0x1f8f0c;}},exports[_0x3d2949(0x163)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o['Inject'](o[_0x3d2949(0x1b9)])),S(0x2,o[_0x3d2949(0x156)](m['CollaborationSessionService']))],exports[_0x3d2949(0x163)]);var h=(_0x500d97=>(_0x500d97[_0x3d2949(0x200)]=_0x3d2949(0x20a),_0x500d97[_0x3d2949(0x14e)]='idle',_0x500d97[_0x3d2949(0x188)]=_0x3d2949(0x192),_0x500d97[_0x3d2949(0x1e4)]=_0x3d2949(0x1e6),_0x500d97['PRESENTING']=_0x3d2949(0x218),_0x500d97))(h||{});const Z=_0x3d2949(0x19e),J=0xc8;exports[_0x3d2949(0x1ad)]=class extends o[_0x3d2949(0x171)]{constructor(_0x268e10,_0x131250,_0x5e232a,_0x29aef1,_0x361ae4){var _0x335871=_0x3d2949;super(),v(this,_0x335871(0x158),new D['BehaviorSubject'](_0x335871(0x1c6))),v(this,_0x335871(0x140),this[_0x335871(0x158)]['asObservable']()),v(this,'_init',!0x1),v(this,_0x335871(0x17e),null),v(this,'_presenter',null),(this[_0x335871(0x1d4)]=_0x268e10,this['_collabSession']=_0x131250,this[_0x335871(0x1c7)]=_0x5e232a,this[_0x335871(0x1ee)]=_0x29aef1,this['_commandService']=_0x361ae4);}get['_status'](){var _0x5b8293=_0x3d2949;return this['_status$'][_0x5b8293(0x1fd)]();}[_0x3d2949(0x169)](){var _0x17b1e8=_0x3d2949,_0x4b3894;(_0x4b3894=this[_0x17b1e8(0x17e)])==null||_0x4b3894['dispose'](),this[_0x17b1e8(0x158)][_0x17b1e8(0x20e)]('idle'),this[_0x17b1e8(0x158)][_0x17b1e8(0x1d7)]();}[_0x3d2949(0x1d2)](){var _0x9f9419=_0x3d2949;this[_0x9f9419(0x1a9)]||(this[_0x9f9419(0x1a9)]=!0x0,this[_0x9f9419(0x1a6)][_0x9f9419(0x16b)][_0x9f9419(0x149)](b['takeUntil'](this[_0x9f9419(0x1a4)]))[_0x9f9419(0x1f3)](_0x47ce7c=>{var _0x338c2e=_0x9f9419;switch(_0x47ce7c){case m['SessionStatus']['OFFLINE']:this[_0x338c2e(0x185)]();break;case m[_0x338c2e(0x19b)][_0x338c2e(0x213)]:this[_0x338c2e(0x20d)]();break;}}),this[_0x9f9419(0x1a6)]['event$'][_0x9f9419(0x149)](b[_0x9f9419(0x1c3)](this['dispose$']))[_0x9f9419(0x1f3)](_0x11a797=>{var _0x278320=_0x9f9419;const {eventID:_0x26767a}=_0x11a797;switch(_0x26767a){case _[_0x278320(0x1bb)]['LIVESHARE_NEW_HOST']:this[_0x278320(0x14c)](_0x11a797);break;case _[_0x278320(0x1bb)][_0x278320(0x150)]:this['_handleOperation'](_0x11a797);break;case _['CollaborationEvent'][_0x278320(0x1bf)]:this['_handleTerminate']();break;case _[_0x278320(0x1bb)][_0x278320(0x1e7)]:this[_0x278320(0x164)](_0x11a797);break;}}));}[_0x3d2949(0x1c0)](){var _0x4b6f74=_0x3d2949;this['_collabSession'][_0x4b6f74(0x1e3)]({'eventID':_[_0x4b6f74(0x1bb)][_0x4b6f74(0x161)],'data':{'unitID':this[_0x4b6f74(0x1d4)],'userID':this['_collabSession'][_0x4b6f74(0x193)]()}},this[_0x4b6f74(0x1d4)]);}[_0x3d2949(0x1ce)](){var _0x4a8a13=_0x3d2949;this[_0x4a8a13(0x1de)]==='presenting'&&(this['_status$'][_0x4a8a13(0x20e)]('idle'),this[_0x4a8a13(0x1a6)][_0x4a8a13(0x1e3)]({'eventID':_[_0x4a8a13(0x1bb)][_0x4a8a13(0x1bf)],'data':{'unitID':this[_0x4a8a13(0x1d4)]}},this[_0x4a8a13(0x1d4)]));}[_0x3d2949(0x173)](){var _0x2f9c1c=_0x3d2949;this[_0x2f9c1c(0x1de)]===_0x2f9c1c(0x1e6)&&(this[_0x2f9c1c(0x158)][_0x2f9c1c(0x20e)](_0x2f9c1c(0x192)),this[_0x2f9c1c(0x201)]());}[_0x3d2949(0x1af)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x3d2949(0x14c)](_0x139f1d){var _0x4cbd08=_0x3d2949;const {presenter:_0x48450}=_0x139f1d['data'],_0xf4a5fb=this[_0x4cbd08(0x1a6)][_0x4cbd08(0x193)]();this[_0x4cbd08(0x1df)]=_0x48450,_0x48450===_0xf4a5fb?(this[_0x4cbd08(0x154)](),this['_startPresenting']()):this[_0x4cbd08(0x1de)]!=='not-following'&&(this[_0x4cbd08(0x197)](),this[_0x4cbd08(0x201)]());}[_0x3d2949(0x176)](){var _0xc9b6fa=_0x3d2949;const _0x3fa301={'eventID':_[_0xc9b6fa(0x1bb)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession']['send'](_0x3fa301,this['_unitID']);}[_0x3d2949(0x18b)](){var _0x1d9ae7=_0x3d2949;this[_0x1d9ae7(0x1df)]=null,this['_status']!==_0x1d9ae7(0x218)&&this[_0x1d9ae7(0x217)]();}[_0x3d2949(0x164)](_0x45d603){var _0x1c4b7c=_0x3d2949;if(this['_status']===_0x1c4b7c(0x192)&&this['_presenter']===_0x45d603['data']['memberID']){const _0x374249=_[_0x1c4b7c(0x151)](_0x45d603[_0x1c4b7c(0x1dc)])[_0x1c4b7c(0x15f)][_0x1c4b7c(0x1e0)]()[_0x1c4b7c(0x186)](_0x3c403f=>_0x3c403f['id']===C[_0x1c4b7c(0x1c9)]['id']);if(_0x374249){const _0x141d32=_0x374249['params']['unitId'],_0x303e13=_0x374249[_0x1c4b7c(0x159)][_0x1c4b7c(0x17f)]['id'];setTimeout(()=>{var _0x485150=_0x1c4b7c;this['_commandService'][_0x485150(0x210)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x141d32,'subUnitId':_0x303e13},{'fromCollab':!0x0});});}}}[_0x3d2949(0x1db)](){var _0x2f5590=_0x3d2949;this[_0x2f5590(0x158)]['next'](_0x2f5590(0x218));const _0x154044=new Map(),_0x144ad1=this[_0x2f5590(0x17e)]=new o[(_0x2f5590(0x1d3))]();_0x144ad1['add'](o[_0x2f5590(0x180)](()=>{var _0x286340=_0x2f5590;_0x154044['forEach'](_0x5a98a7=>_0x5a98a7[_0x286340(0x1d7)]()),_0x154044['clear']();})),_0x144ad1[_0x2f5590(0x168)](this[_0x2f5590(0x1ae)][_0x2f5590(0x202)](_0x267981=>{var _0x244649=_0x2f5590,_0x4ce3a2;if(_0x267981[_0x244649(0x1ef)]!==o['CommandType'][_0x244649(0x166)]||!this[_0x244649(0x1ee)][_0x244649(0x18e)](_0x267981['id']))return;const {id:_0x544fde}=_0x267981;let _0x1634f2;_0x154044[_0x244649(0x1b4)](_0x544fde)?_0x1634f2=_0x154044[_0x244649(0x1f7)](_0x544fde):(_0x1634f2=new D[(_0x244649(0x1ca))](),_0x154044[_0x244649(0x195)](_0x544fde,_0x1634f2),_0x1634f2[_0x244649(0x149)](b[_0x244649(0x18c)]((_0x4ce3a2=this[_0x244649(0x1c7)][_0x244649(0x162)](Z))!=null?_0x4ce3a2:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x8b94fd=>{var _0x1894f8=_0x244649;this[_0x1894f8(0x1a6)][_0x1894f8(0x1e3)]({'eventID':_['CollaborationEvent'][_0x1894f8(0x150)],'data':{'unitID':this[_0x1894f8(0x1d4)],'operations':{[_0x8b94fd['id']]:{'id':_0x8b94fd['id'],'params':JSON[_0x1894f8(0x16c)](_0x8b94fd[_0x1894f8(0x159)])}}}},this[_0x1894f8(0x1d4)]);})),_0x1634f2[_0x244649(0x20e)](_0x267981);})),this[_0x2f5590(0x1ee)][_0x2f5590(0x1ac)](this[_0x2f5590(0x1d4)])['forEach'](_0x2b851a=>this[_0x2f5590(0x1a6)][_0x2f5590(0x1e3)]({'eventID':_[_0x2f5590(0x1bb)][_0x2f5590(0x150)],'data':{'unitID':this[_0x2f5590(0x1d4)],'operations':{[_0x2b851a['id']]:{'id':_0x2b851a['id'],'params':JSON[_0x2f5590(0x16c)](_0x2b851a[_0x2f5590(0x159)])}}}},this[_0x2f5590(0x1d4)]));}[_0x3d2949(0x197)](){var _0x271476=_0x3d2949,_0x3b7486;this[_0x271476(0x158)][_0x271476(0x20e)](_0x271476(0x1c6)),(_0x3b7486=this[_0x271476(0x17e)])==null||_0x3b7486[_0x271476(0x169)](),this[_0x271476(0x17e)]=null;}[_0x3d2949(0x201)](){var _0x4f7e14=_0x3d2949,_0x43d551;(_0x43d551=this['_commandDisposable'])==null||_0x43d551[_0x4f7e14(0x169)](),this[_0x4f7e14(0x158)][_0x4f7e14(0x20e)]('following');}[_0x3d2949(0x217)](){var _0x22997c=_0x3d2949,_0x155fa0;this[_0x22997c(0x158)]['next'](_0x22997c(0x1c6)),(_0x155fa0=this['_commandDisposable'])==null||_0x155fa0[_0x22997c(0x169)](),this[_0x22997c(0x17e)]=null;}['_stopFollowing'](){var _0xe80b6=_0x3d2949,_0x5d71be;this['_status$']['next']('not-following'),(_0x5d71be=this[_0xe80b6(0x17e)])==null||_0x5d71be[_0xe80b6(0x169)]();}[_0x3d2949(0x1be)](_0x5f325b){var _0x39d16b=_0x3d2949;if([_0x39d16b(0x218),_0x39d16b(0x1e6),_0x39d16b(0x20a)][_0x39d16b(0x1e1)](this[_0x39d16b(0x1de)])||!_0x5f325b[_0x39d16b(0x1dc)][_0x39d16b(0x1eb)]||_0x5f325b[_0x39d16b(0x1dc)][_0x39d16b(0x1eb)]===this['_collabSession'][_0x39d16b(0x193)]())return;this[_0x39d16b(0x1de)]===_0x39d16b(0x1c6)&&this[_0x39d16b(0x201)]();const _0x1076c2=_0x5f325b[_0x39d16b(0x1dc)][_0x39d16b(0x1ed)];Object[_0x39d16b(0x1c1)](_0x1076c2)[_0x39d16b(0x216)](_0x51ed57=>{var _0x108aee=_0x39d16b;this[_0x108aee(0x1ae)][_0x108aee(0x210)](_0x51ed57['id'],_0x51ed57['params']?JSON[_0x108aee(0x148)](_0x51ed57['params']):null,{'fromCollab':!0x0});});}[_0x3d2949(0x185)](){var _0x2ede6d=_0x3d2949,_0x5dd3f5;this[_0x2ede6d(0x158)][_0x2ede6d(0x20e)](_0x2ede6d(0x20a)),(_0x5dd3f5=this['_commandDisposable'])==null||_0x5dd3f5[_0x2ede6d(0x169)]();}[_0x3d2949(0x20d)](){var _0x587a5c=_0x3d2949;this[_0x587a5c(0x158)]['next'](_0x587a5c(0x1c6)),this[_0x587a5c(0x176)]();}},exports[_0x3d2949(0x1ad)]=R([S(0x2,o[_0x3d2949(0x1d0)]),S(0x3,o[_0x3d2949(0x156)](O)),S(0x4,o['ICommandService'])],exports[_0x3d2949(0x1ad)]);function A(){var _0xac2e96=_0x3d2949;const _0x2e7410=p[_0xac2e96(0x1aa)](exports[_0xac2e96(0x163)]),_0x212331=p[_0xac2e96(0x1aa)](o['IUniverInstanceService']),_0x4549b8=p[_0xac2e96(0x20f)](()=>_0x212331[_0xac2e96(0x1d9)](o[_0xac2e96(0x1f0)][_0xac2e96(0x1bc)]),void 0x0,!0x1,[]),[_0x12c45b,_0xf698bf]=f['useState'](null),[_0x3878c6,_0x3a690e]=f[_0xac2e96(0x1c4)](h[_0xac2e96(0x14e)]),_0x8bbfd4=f[_0xac2e96(0x181)](null);return f['useEffect'](()=>(_0x4549b8&&_0x2e7410[_0xac2e96(0x179)](_0x4549b8[_0xac2e96(0x21b)]())[_0xac2e96(0x1fc)](_0x452f78=>{var _0x61a3f7=_0xac2e96;_0xf698bf(_0x452f78),_0x8bbfd4[_0x61a3f7(0x14f)]=_0x452f78[_0x61a3f7(0x140)][_0x61a3f7(0x1f3)](_0x256890=>{_0x3a690e(_0x256890);});}),()=>{var _0x403be5=_0xac2e96,_0x273c75;(_0x273c75=_0x8bbfd4['current'])==null||_0x273c75[_0x403be5(0x1fe)](),_0x8bbfd4[_0x403be5(0x14f)]=null;}),[_0x4549b8,_0x2e7410]),_0x12c45b?l[_0xac2e96(0x196)](g['Dropdown'],{'align':_0xac2e96(0x1d1),'disabled':_0x3878c6===h[_0xac2e96(0x200)],'className':_0xac2e96(0x167),'overlay':l[_0xac2e96(0x196)](K,{'status':_0x3878c6,'coordinator':_0x12c45b}),'children':l['jsx'](_0xac2e96(0x170),{'className':g[_0xac2e96(0x1f4)](_0xac2e96(0x1c5),{'univer-cursor-not-allowed':_0x3878c6===h[_0xac2e96(0x200)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3878c6!==h[_0xac2e96(0x200)]}),'type':_0xac2e96(0x170),'children':l[_0xac2e96(0x196)](P,{'className':_0xac2e96(0x1bd)})})}):null;}function K(_0x1d478a){var _0x3450d4=_0x3d2949;const {status:_0x1e4ede,coordinator:_0x5a6454}=_0x1d478a;switch(_0x1e4ede){case h[_0x3450d4(0x14e)]:return l[_0x3450d4(0x196)](z,{'coordinator':_0x5a6454});case h[_0x3450d4(0x188)]:return l[_0x3450d4(0x196)](Q,{'coordinator':_0x5a6454});case h[_0x3450d4(0x1e4)]:return l[_0x3450d4(0x196)](X,{'coordinator':_0x5a6454});case h[_0x3450d4(0x200)]:return l[_0x3450d4(0x196)](te,{});case h[_0x3450d4(0x212)]:return l[_0x3450d4(0x196)](ee,{'coordinator':_0x5a6454});default:return null;}}function z(_0x1080a1){var _0x5ac393=_0x3d2949;const {coordinator:_0x1c090d}=_0x1080a1;return l[_0x5ac393(0x1cb)](l[_0x5ac393(0x1f2)],{'children':[l[_0x5ac393(0x196)](_0x5ac393(0x214),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5ac393(0x14a)}),l[_0x5ac393(0x196)](g[_0x5ac393(0x1a3)],{'onClick':()=>_0x1c090d['tryStartPresenting'](),'children':_0x5ac393(0x16f)})]});}function Q(_0x5e395c){var _0x557343=_0x3d2949;const {coordinator:_0x51cc69}=_0x5e395c;return l[_0x557343(0x1cb)](l[_0x557343(0x1f2)],{'children':[l[_0x557343(0x196)](_0x557343(0x214),{'className':_0x557343(0x1cf),'children':_0x557343(0x21a)}),l[_0x557343(0x196)](g['Button'],{'onClick':()=>_0x51cc69[_0x557343(0x1af)](),'children':_0x557343(0x142)})]});}function _0x2978(){var _0x92550b=['getOwnPropertySymbols','LiveShare','_handleTerminate','throttleTime','prototype','shouldShareOperation','evenodd','entries','_startLiveShareCoordinator','following','getMemberID','SetScrollOperation','set','jsx','_stopPresenting','_injector','disposeWithMe','tag','SessionStatus','idSuffix','connectInjector','SAME_OPERATION_SHARE_INTERVAL','0\x200\x2017\x2017','assign','children','indexOf','Button','dispose$','apply','_collabSession','2635fGzxEF','displayName','_init','useDependency','substring','getInitialStates','LiveShareCoordinator','_commandService','stopFollowing','442959iRoRIK','forwardRef','_sharedOperations','hasOwnProperty','has','length','Stop\x20presenting','_entities','toString','Injector','You\x27re\x20presenting\x20the\x20document','CollaborationEvent','UNIVER_SHEET','univer-size-4','_handleOperation','LIVESHARE_TERMINATE','tryStartPresenting','values','_collabSessionService','takeUntil','useState','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','idle','_configService','merge','InsertSheetMutation','Subject','jsxs','none','LiveShareStatus','stopPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','IConfigService','end','init','DisposableCollection','_unitID','univerjs-icon\x20univerjs-icon-','448582wtnOpF','complete','registerSharedOperation','getCurrentTypeOfUnit$','mergeOverrideWithDependencies','_startPresenting','data','_univerInstanceService','_status','_presenter','reverse','includes','override','send','NOT_FOLLOWING','path','not-following','NEW_CHANGESETS','text','1em','currentColor','presenter','IUIPartsService','operations','_liveShareService','type','UniverInstanceType','delete','Fragment','subscribe','clsx','SetWorksheetActiveOperation','propertyIsEnumerable','get','_uiPartsService','UNIVER_UNKNOWN','UniverCollaborationClientPlugin','_config','then','getValue','unsubscribe','url(#$1','OFFLINE','_startFollowing','onCommandExecuted','colorChannel1','40CjjTPP','UniverLiveSharePlugin','UNIVER_LIVE_SHARE_PLUGIN','622990IVnMKP','createElement','className','offline','xlink:href','DesktopLiveShareController','_handleOnline','next','useObservable','executeCommand','registerComponent','PRESENTING','ONLINE','div','26222650HhaNQc','forEach','_beIdle','presenting','svg','You\x27re\x20following\x20the\x20presenter','getUnitId','onStarting','pluginName','defIds','status$','default','Stop\x20following','extend','live-share-icon','DependentOn','LiveShareIcon','attrs','parse','pipe','Present\x20this\x20document','Disposable','_handleNewHost','3591077mctTcH','IDLE','current','LIVESHARE_OPERATION','parseProtocolChangeset','getOwnPropertyDescriptor','_mountLiveShare','_stopFollowing','Module','Inject','9198SbQZeh','_status$','params','mask','You\x27re\x20not\x20following\x20the\x20presenter','HEADER_MENU','trim','icon','mutations','replace','LIVESHARE_REQUEST_HOST','getConfig','LiveShareController','_handleNewChangeSets','7192BBwJOx','OPERATION','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','add','dispose','map','sessionStatus$','stringify','onRendered','getTypeOfUnitAdded$','Start','button','RxDisposable','8667LHMraJ','startFollowing','registerInitialStateReporter','defineProperty','_fetchOperations','touchDependencies','string','getLiveShareCoordinator','toStringTag','_reporters','call','fill','_commandDisposable','sheet','toDisposable','useRef','concat','symbol','You\x27are\x20offline.','_handleOffline','find','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','FOLLOWING'];_0x2978=function(){return _0x92550b;};return _0x2978();}function X(_0x2e0edf){var _0x2a61d0=_0x3d2949;const {coordinator:_0xe5a21d}=_0x2e0edf;return l['jsxs'](l[_0x2a61d0(0x1f2)],{'children':[l['jsx'](_0x2a61d0(0x214),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2a61d0(0x15b)}),l[_0x2a61d0(0x196)](g[_0x2a61d0(0x1a3)],{'variant':_0x2a61d0(0x1e8),'onClick':()=>_0xe5a21d[_0x2a61d0(0x173)](),'children':'Start\x20following'})]});}function ee(_0x111dd7){var _0x582989=_0x3d2949;const {coordinator:_0x18f9b2}=_0x111dd7;return l[_0x582989(0x1cb)](l[_0x582989(0x1f2)],{'children':[l[_0x582989(0x196)](_0x582989(0x214),{'className':_0x582989(0x1cf),'children':_0x582989(0x1ba)}),l[_0x582989(0x196)](g[_0x582989(0x1a3)],{'variant':_0x582989(0x141),'onClick':()=>_0x18f9b2[_0x582989(0x1ce)](),'children':_0x582989(0x1b6)})]});}function _0x1593(_0x4b1db0,_0x57cf9d){var _0x297898=_0x2978();return _0x1593=function(_0x1593d3,_0x18440b){_0x1593d3=_0x1593d3-0x140;var _0xfdbf5d=_0x297898[_0x1593d3];return _0xfdbf5d;},_0x1593(_0x4b1db0,_0x57cf9d);}function te(){var _0x48b6c1=_0x3d2949;return l[_0x48b6c1(0x196)](l[_0x48b6c1(0x1f2)],{'children':_0x48b6c1(0x184)});}var ie=Object[_0x3d2949(0x152)],ne=(_0x3afbde,_0x112bdb,_0x24d621,_0x384770)=>{var _0x156e02=_0x3d2949;for(var _0x1a35c9=_0x384770>0x1?void 0x0:_0x384770?ie(_0x112bdb,_0x24d621):_0x112bdb,_0x371ff9=_0x3afbde[_0x156e02(0x1b5)]-0x1,_0x386005;_0x371ff9>=0x0;_0x371ff9--)(_0x386005=_0x3afbde[_0x371ff9])&&(_0x1a35c9=_0x386005(_0x1a35c9)||_0x1a35c9);return _0x1a35c9;},L=(_0x16ca37,_0x4a2d44)=>(_0x2c83f4,_0x52620c)=>_0x4a2d44(_0x2c83f4,_0x52620c,_0x16ca37);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x3e6116,_0x598b3d){var _0x1818b6=_0x3d2949;super(),this['_injector']=_0x3e6116,this[_0x1818b6(0x1f8)]=_0x598b3d,this[_0x1818b6(0x153)]();}[_0x3d2949(0x153)](){var _0x2f8247=_0x3d2949;this[_0x2f8247(0x199)](this[_0x2f8247(0x1f8)][_0x2f8247(0x211)](p['BuiltInUIPart'][_0x2f8247(0x15c)],()=>p[_0x2f8247(0x19d)](A,this['_injector'])));}},exports[_0x3d2949(0x20c)]=ne([L(0x0,o[_0x3d2949(0x156)](o['Injector'])),L(0x1,p[_0x3d2949(0x1ec)])],exports[_0x3d2949(0x20c)]);var re=Object[_0x3d2949(0x175)],se=Object['getOwnPropertyDescriptor'],oe=(_0x1cb864,_0x29e343,_0x5c816e)=>_0x29e343 in _0x1cb864?re(_0x1cb864,_0x29e343,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c816e}):_0x1cb864[_0x29e343]=_0x5c816e,ae=(_0x206edc,_0xa81a63,_0x334179,_0x2b8615)=>{for(var _0x31ea76=_0x2b8615>0x1?void 0x0:_0x2b8615?se(_0xa81a63,_0x334179):_0xa81a63,_0x5c5646=_0x206edc['length']-0x1,_0xd4ec0d;_0x5c5646>=0x0;_0x5c5646--)(_0xd4ec0d=_0x206edc[_0x5c5646])&&(_0x31ea76=_0xd4ec0d(_0x31ea76)||_0x31ea76);return _0x31ea76;},N=(_0x16dacd,_0x5c142c)=>(_0x5d3d52,_0x3bdfc2)=>_0x5c142c(_0x5d3d52,_0x3bdfc2,_0x16dacd),T=(_0x1b08ca,_0x384091,_0x2d1469)=>oe(_0x1b08ca,typeof _0x384091!=_0x3d2949(0x183)?_0x384091+'':_0x384091,_0x2d1469);const le=_0x3d2949(0x206);exports[_0x3d2949(0x205)]=class extends o['Plugin']{constructor(_0x2ee2d6=x,_0x367974,_0x2f5557){var _0x3b02ce=_0x3d2949;super(),this[_0x3b02ce(0x1fb)]=_0x2ee2d6,this[_0x3b02ce(0x198)]=_0x367974,this[_0x3b02ce(0x1c7)]=_0x2f5557;const {..._0x294811}=o[_0x3b02ce(0x1c8)]({},x,this['_config']);this[_0x3b02ce(0x1c7)]['setConfig']($,_0x294811);}[_0x3d2949(0x21c)](){var _0x3c7dd3=_0x3d2949;o['registerDependencies'](this[_0x3c7dd3(0x198)],o[_0x3c7dd3(0x1da)]([[O],[exports[_0x3c7dd3(0x163)]],[E],[exports[_0x3c7dd3(0x20c)]]],this[_0x3c7dd3(0x1fb)][_0x3c7dd3(0x1e2)])),o[_0x3c7dd3(0x177)](this[_0x3c7dd3(0x198)],[[E]]);}[_0x3d2949(0x16d)](){var _0x11e810=_0x3d2949;o[_0x11e810(0x177)](this[_0x11e810(0x198)],[[exports[_0x11e810(0x20c)]]]);}},T(exports['UniverLiveSharePlugin'],_0x3d2949(0x1ef),o['UniverInstanceType'][_0x3d2949(0x1f9)]),T(exports['UniverLiveSharePlugin'],_0x3d2949(0x21d),le),exports[_0x3d2949(0x205)]=ae([o[_0x3d2949(0x145)](m[_0x3d2949(0x1fa)]),N(0x1,o['Inject'](o[_0x3d2949(0x1b9)])),N(0x2,o[_0x3d2949(0x1d0)])],exports[_0x3d2949(0x205)]),exports[_0x3d2949(0x18a)]=A,exports['LiveShareService']=O,exports[_0x3d2949(0x1cd)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x5d30d8=_0x3b8a;(function(_0x57bd60,_0x1ebfda){var _0x11832a=_0x3b8a,_0x4dd278=_0x57bd60();while(!![]){try{var _0x2edd34=parseInt(_0x11832a(0x20e))/0x1*(-parseInt(_0x11832a(0x1df))/0x2)+parseInt(_0x11832a(0x1f3))/0x3+parseInt(_0x11832a(0x165))/0x4+parseInt(_0x11832a(0x199))/0x5+-parseInt(_0x11832a(0x1bf))/0x6*(parseInt(_0x11832a(0x212))/0x7)+-parseInt(_0x11832a(0x1bc))/0x8+parseInt(_0x11832a(0x1db))/0x9*(-parseInt(_0x11832a(0x18d))/0xa);if(_0x2edd34===_0x1ebfda)break;else _0x4dd278['push'](_0x4dd278['shift']());}catch(_0x37b49f){_0x4dd278['push'](_0x4dd278['shift']());}}}(_0x3e4e,0xc0ab2));var q=Object[_0x5d30d8(0x1d4)],z=(_0x558bdb,_0x3498a6,_0x1f5e5b)=>_0x3498a6 in _0x558bdb?q(_0x558bdb,_0x3498a6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f5e5b}):_0x558bdb[_0x3498a6]=_0x1f5e5b,d=(_0x25483a,_0x1f71f3,_0x3207a6)=>z(_0x25483a,typeof _0x1f71f3!=_0x5d30d8(0x1bd)?_0x1f71f3+'':_0x1f71f3,_0x3207a6);import{CollaborationSessionService as _0x6c6059,SessionStatus as _0x2cbd97,UniverCollaborationClientPlugin as _0x27f398}from'@univerjs-pro/collaboration-client';import{Disposable as _0x59a070,toDisposable as _0x2344a8,Inject as _0x33eb57,IUniverInstanceService as _0x5b4ee1,Injector as _0x169f90,IConfigService as _0x45a866,ICommandService as _0x50284f,RxDisposable as _0x460f61,UniverInstanceType as _0x250f14,DisposableCollection as _0x978234,CommandType as _0x35a7ba,DependentOn as _0x529563,Plugin as _0x15b4ac,merge as _0x47f619,registerDependencies as _0x37fe12,mergeOverrideWithDependencies as _0x252a4d,touchDependencies as _0x5da897}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1b50b9,InsertSheetMutation as _0x100213}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x1f39d9,SetScrollOperation as _0x440b3a}from'@univerjs/sheets-ui';import{useDependency as _0x429be2,useObservable as _0x4a06fa,IUIPartsService as _0x29be1c,BuiltInUIPart as _0x4a426f,connectInjector as _0x414305}from'@univerjs/ui';import{jsx as _0x3b0e8d,jsxs as _0x249e8a,Fragment as _0x7d0996}from'react/jsx-runtime';import{Dropdown as _0x218bcf,clsx as _0x273fa1,Button as _0x41cd9b}from'@univerjs/design';import{forwardRef as _0x2f03cc,useRef as _0x214111,createElement as _0x2c6abb,useState as _0x23765a,useEffect as _0xfd18d0}from'react';import{CollaborationEvent as _0x401301,parseProtocolChangeset as _0x1b0094}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x50b4a3,Subject as _0x4f2060}from'rxjs';import{takeUntil as _0x255cad,throttleTime as _0x32b576}from'rxjs/operators';const Oe=_0x5d30d8(0x16e),T={};class L extends _0x59a070{constructor(){var _0x371004=_0x5d30d8;super(...arguments),d(this,_0x371004(0x194),new Set()),d(this,_0x371004(0x1a1),new Set());}[_0x5d30d8(0x1b0)](_0x2b4c79){var _0x727534=_0x5d30d8;return this['_sharedOperations'][_0x727534(0x1ee)](_0x2b4c79),_0x2344a8(()=>this[_0x727534(0x194)]['delete'](_0x2b4c79));}[_0x5d30d8(0x17e)](_0x1010c2){var _0x4eb889=_0x5d30d8;return this[_0x4eb889(0x1a1)]['add'](_0x1010c2),_0x2344a8(()=>this[_0x4eb889(0x1a1)][_0x4eb889(0x1d1)](_0x1010c2));}['shouldShareOperation'](_0x4681b0){var _0x138440=_0x5d30d8;return this[_0x138440(0x194)][_0x138440(0x1ac)](_0x4681b0);}[_0x5d30d8(0x1b6)](_0x8825b1){var _0x233a91=_0x5d30d8;return Array[_0x233a91(0x1ed)](this['_reporters'])['map'](_0xbc5ae8=>_0xbc5ae8(_0x8825b1));}}var Ee=Object[_0x5d30d8(0x172)],we=(_0x475b03,_0x281b72,_0x2a01f9,_0x45794d)=>{for(var _0x43440e=_0x45794d>0x1?void 0x0:_0x45794d?Ee(_0x281b72,_0x2a01f9):_0x281b72,_0x9c4f69=_0x475b03['length']-0x1,_0x15feb6;_0x9c4f69>=0x0;_0x9c4f69--)(_0x15feb6=_0x475b03[_0x9c4f69])&&(_0x43440e=_0x15feb6(_0x43440e)||_0x43440e);return _0x43440e;},Ne=(_0x31c350,_0x10fec3)=>(_0x15892d,_0x66b99e)=>_0x10fec3(_0x15892d,_0x66b99e,_0x31c350);let m=class extends _0x59a070{constructor(_0x18fd32){var _0x44c2aa=_0x5d30d8;super(),this['_liveShareService']=_0x18fd32,this[_0x44c2aa(0x1d3)]();}[_0x5d30d8(0x1d3)](){var _0x42fe6d=_0x5d30d8;[_0x1f39d9['id'],_0x440b3a['id'],_0x1b50b9['id']][_0x42fe6d(0x171)](_0x20cdce=>{var _0x54459b=_0x42fe6d;this[_0x54459b(0x1d0)](this[_0x54459b(0x1da)][_0x54459b(0x1b0)](_0x20cdce));});}};m=we([Ne(0x0,_0x33eb57(L))],m);var c=function(){var _0x12d159=_0x5d30d8;return c=Object[_0x12d159(0x18b)]||function(_0x331eee){var _0x1f4d4a=_0x12d159;for(var _0x391a8e,_0xc3d0db=0x1,_0x44abb6=arguments[_0x1f4d4a(0x167)];_0xc3d0db<_0x44abb6;_0xc3d0db++){_0x391a8e=arguments[_0xc3d0db];for(var _0x15cf57 in _0x391a8e)Object[_0x1f4d4a(0x20a)]['hasOwnProperty'][_0x1f4d4a(0x1e3)](_0x391a8e,_0x15cf57)&&(_0x331eee[_0x15cf57]=_0x391a8e[_0x15cf57]);}return _0x331eee;},c[_0x12d159(0x19e)](this,arguments);},Ce=function(_0x2925b0,_0x3ad4b1){var _0x47fddd=_0x5d30d8,_0x1f04d9={};for(var _0x3bda36 in _0x2925b0)Object[_0x47fddd(0x20a)]['hasOwnProperty']['call'](_0x2925b0,_0x3bda36)&&_0x3ad4b1[_0x47fddd(0x170)](_0x3bda36)<0x0&&(_0x1f04d9[_0x3bda36]=_0x2925b0[_0x3bda36]);if(_0x2925b0!=null&&typeof Object[_0x47fddd(0x1b9)]==_0x47fddd(0x1b1)){for(var _0x225d47=0x0,_0x3bda36=Object[_0x47fddd(0x1b9)](_0x2925b0);_0x225d47<_0x3bda36['length'];_0x225d47++)_0x3ad4b1[_0x47fddd(0x170)](_0x3bda36[_0x225d47])<0x0&&Object['prototype'][_0x47fddd(0x1f2)][_0x47fddd(0x1e3)](_0x2925b0,_0x3bda36[_0x225d47])&&(_0x1f04d9[_0x3bda36[_0x225d47]]=_0x2925b0[_0x3bda36[_0x225d47]]);}return _0x1f04d9;},W=_0x2f03cc(function(_0x4ef43c,_0xef375d){var _0x55d5e2=_0x5d30d8,_0x2aebe1=_0x4ef43c['icon'],_0x1299e2=_0x4ef43c['id'],_0x1c6353=_0x4ef43c[_0x55d5e2(0x1dc)],_0x17c8e3=_0x4ef43c[_0x55d5e2(0x1be)],_0x4e51c1=Ce(_0x4ef43c,[_0x55d5e2(0x1ce),'id',_0x55d5e2(0x1dc),_0x55d5e2(0x1be)]),_0x2d4cab=_0x55d5e2(0x192)[_0x55d5e2(0x1a0)](_0x1299e2,'\x20')[_0x55d5e2(0x1a0)](_0x1c6353||'')['trim'](),_0x39f812=_0x214111('_'[_0x55d5e2(0x1a0)](Le()));return Y(_0x2aebe1,''[_0x55d5e2(0x1a0)](_0x1299e2),{'defIds':_0x2aebe1[_0x55d5e2(0x1b2)],'idSuffix':_0x39f812[_0x55d5e2(0x210)]},c({'ref':_0xef375d,'className':_0x2d4cab},_0x4e51c1),_0x17c8e3);});function Y(_0xb84b8f,_0x54f4bf,_0x95d5b0,_0x30332e,_0x57e219){var _0x521aa2=_0x5d30d8;return _0x2c6abb(_0xb84b8f[_0x521aa2(0x18c)],c(c({'key':_0x54f4bf},De(_0xb84b8f,_0x95d5b0,_0x57e219)),_0x30332e),(xe(_0xb84b8f,_0x95d5b0)[_0x521aa2(0x1de)]||[])[_0x521aa2(0x1cc)](function(_0x276837,_0x417f3e){var _0x1deb06=_0x521aa2;return Y(_0x276837,''[_0x1deb06(0x1a0)](_0x54f4bf,'-')[_0x1deb06(0x1a0)](_0xb84b8f['tag'],'-')[_0x1deb06(0x1a0)](_0x417f3e),_0x95d5b0,void 0x0,_0x57e219);}));}function De(_0x5bfa21,_0x2d7d99,_0x3617e8){var _0x178e0f=_0x5d30d8,_0x3b1429=c({},_0x5bfa21[_0x178e0f(0x1a7)]);_0x3617e8!=null&&_0x3617e8['colorChannel1']&&_0x3b1429[_0x178e0f(0x185)]===_0x178e0f(0x1d8)&&(_0x3b1429[_0x178e0f(0x185)]=_0x3617e8[_0x178e0f(0x1d8)]),_0x5bfa21['tag']===_0x178e0f(0x174)&&_0x3b1429['id']&&(_0x3b1429['id']=_0x3b1429['id']+_0x2d7d99[_0x178e0f(0x1e7)]),Object[_0x178e0f(0x1e9)](_0x3b1429)[_0x178e0f(0x171)](function(_0x4c8e9b){var _0x62c307=_0x178e0f,_0x10f998=_0x4c8e9b[0x0],_0x1aee14=_0x4c8e9b[0x1];_0x10f998===_0x62c307(0x174)&&typeof _0x1aee14==_0x62c307(0x188)&&(_0x3b1429[_0x10f998]=_0x1aee14[_0x62c307(0x1aa)](/url\(#(.*)\)/,_0x62c307(0x195)['concat'](_0x2d7d99[_0x62c307(0x1e7)],')')));});var _0x547824=_0x2d7d99[_0x178e0f(0x1b2)];return!_0x547824||_0x547824[_0x178e0f(0x167)]===0x0||(_0x5bfa21[_0x178e0f(0x18c)]==='use'&&_0x3b1429[_0x178e0f(0x187)]&&(_0x3b1429['xlink:href']=_0x3b1429[_0x178e0f(0x187)]+_0x2d7d99[_0x178e0f(0x1e7)]),Object[_0x178e0f(0x1e9)](_0x3b1429)[_0x178e0f(0x171)](function(_0x35a205){var _0x488151=_0x178e0f,_0x50d96e=_0x35a205[0x0],_0x45ad59=_0x35a205[0x1];typeof _0x45ad59=='string'&&(_0x3b1429[_0x50d96e]=_0x45ad59[_0x488151(0x1aa)](/url\(#(.*)\)/,_0x488151(0x195)[_0x488151(0x1a0)](_0x2d7d99[_0x488151(0x1e7)],')')));})),_0x3b1429;}function xe(_0x4d2853,_0x4e07ca){var _0x4382a8=_0x5d30d8,_0xba8bc0,_0x4f561=_0x4e07ca[_0x4382a8(0x1b2)];return!_0x4f561||_0x4f561['length']===0x0?_0x4d2853:_0x4d2853[_0x4382a8(0x18c)]===_0x4382a8(0x1b7)&&(!((_0xba8bc0=_0x4d2853[_0x4382a8(0x1de)])===null||_0xba8bc0===void 0x0)&&_0xba8bc0[_0x4382a8(0x167)])?c(c({},_0x4d2853),{'children':_0x4d2853[_0x4382a8(0x1de)]['map'](function(_0xa0343){var _0x43901c=_0x4382a8;return typeof _0xa0343[_0x43901c(0x1a7)]['id']==_0x43901c(0x188)&&_0x4f561&&_0x4f561[_0x43901c(0x213)](_0xa0343['attrs']['id'])?c(c({},_0xa0343),{'attrs':c(c({},_0xa0343['attrs']),{'id':_0xa0343[_0x43901c(0x1a7)]['id']+_0x4e07ca['idSuffix']})}):_0xa0343;})}):_0x4d2853;}function Le(){var _0x1d9f53=_0x5d30d8;return Math[_0x1d9f53(0x1f0)]()[_0x1d9f53(0x182)](0x24)[_0x1d9f53(0x1c3)](0x2,0x8);}W[_0x5d30d8(0x1a6)]=_0x5d30d8(0x196);var ye={'tag':_0x5d30d8(0x18a),'attrs':{'xmlns':_0x5d30d8(0x1ae),'fill':'none','viewBox':_0x5d30d8(0x202),'width':_0x5d30d8(0x1a5),'height':_0x5d30d8(0x1a5)},'children':[{'tag':_0x5d30d8(0x17c),'attrs':{'fill':_0x5d30d8(0x1dd),'d':_0x5d30d8(0x206)}},{'tag':_0x5d30d8(0x17c),'attrs':{'fill':_0x5d30d8(0x1dd),'d':_0x5d30d8(0x176),'fillRule':_0x5d30d8(0x20b),'clipRule':_0x5d30d8(0x20b)}}]},B=_0x2f03cc(function(_0x184172,_0x58b4ec){var _0x3cb009=_0x5d30d8;return _0x2c6abb(W,Object['assign']({},_0x184172,{'id':_0x3cb009(0x1cb),'ref':_0x58b4ec,'icon':ye}));});B[_0x5d30d8(0x1a6)]=_0x5d30d8(0x183);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x1765ef,_0x49ca4e,_0x4a8028,_0x3fec58)=>{var _0x5e1319=_0x5d30d8;for(var _0x1084b8=_0x3fec58>0x1?void 0x0:_0x3fec58?Re(_0x49ca4e,_0x4a8028):_0x49ca4e,_0x1e3042=_0x1765ef[_0x5e1319(0x167)]-0x1,_0x31a724;_0x1e3042>=0x0;_0x1e3042--)(_0x31a724=_0x1765ef[_0x1e3042])&&(_0x1084b8=_0x31a724(_0x1084b8)||_0x1084b8);return _0x1084b8;},f=(_0x44f7bd,_0x324804)=>(_0x36f8c6,_0x4ab314)=>_0x324804(_0x36f8c6,_0x4ab314,_0x44f7bd);let I=class extends _0x460f61{constructor(_0x236482,_0x4a9f64,_0x14aa65){var _0x7a8332=_0x5d30d8;super(),d(this,_0x7a8332(0x1e8),new Map()),(this[_0x7a8332(0x200)]=_0x236482,this[_0x7a8332(0x1ec)]=_0x4a9f64,this[_0x7a8332(0x168)]=_0x14aa65,this[_0x7a8332(0x1d3)]());}async[_0x5d30d8(0x184)](_0x19b418){var _0x4a1a05=_0x5d30d8;return this['_entities'][_0x4a1a05(0x1ac)](_0x19b418)||await this[_0x4a1a05(0x19b)](_0x19b418),this[_0x4a1a05(0x1e8)][_0x4a1a05(0x193)](_0x19b418);}['_init'](){var _0x3baf91=_0x5d30d8;this[_0x3baf91(0x200)][_0x3baf91(0x21a)](_0x250f14['UNIVER_SHEET'])[_0x3baf91(0x1a2)](_0x255cad(this[_0x3baf91(0x190)]))[_0x3baf91(0x1e2)](async _0x2b0a0e=>{var _0x27fa60=_0x3baf91;const _0x17032f=_0x2b0a0e[_0x27fa60(0x1c6)]();this['_entities'][_0x27fa60(0x1ac)](_0x17032f)||this['_startLiveShareCoordinator'](_0x17032f);}),this['_univerInstanceService'][_0x3baf91(0x1fc)](_0x250f14[_0x3baf91(0x216)])[_0x3baf91(0x1a2)](_0x255cad(this[_0x3baf91(0x190)]))[_0x3baf91(0x1e2)](_0x5abaff=>{var _0x56d444=_0x3baf91;const _0x5f3764=_0x5abaff[_0x56d444(0x1c6)](),_0x28ed90=this[_0x56d444(0x1e8)][_0x56d444(0x193)](_0x5f3764);_0x28ed90==null||_0x28ed90[_0x56d444(0x1cd)]();});}async[_0x5d30d8(0x19b)](_0xe9874c){var _0x24cf82=_0x5d30d8;const _0x2316df=await this[_0x24cf82(0x168)][_0x24cf82(0x211)](_0xe9874c),_0x589aee=this['_injector'][_0x24cf82(0x207)](C,_0xe9874c,_0x2316df);return _0x589aee['init'](),this[_0x24cf82(0x1e8)][_0x24cf82(0x1fd)](_0xe9874c,_0x589aee),_0x589aee;}};I=Z([f(0x0,_0x5b4ee1),f(0x1,_0x33eb57(_0x169f90)),f(0x2,_0x33eb57(_0x6c6059))],I);var h=(_0xdfe599=>(_0xdfe599[_0x5d30d8(0x21c)]=_0x5d30d8(0x198),_0xdfe599[_0x5d30d8(0x1e0)]=_0x5d30d8(0x201),_0xdfe599[_0x5d30d8(0x1cf)]='following',_0xdfe599[_0x5d30d8(0x20f)]=_0x5d30d8(0x1fb),_0xdfe599[_0x5d30d8(0x178)]='presenting',_0xdfe599))(h||{});const Pe=_0x5d30d8(0x181),Ae=0xc8;let C=class extends _0x460f61{constructor(_0x8d7d14,_0x12baa6,_0x129556,_0x3cf421,_0x35abdd){var _0x797300=_0x5d30d8;super(),d(this,'_status$',new _0x50b4a3(_0x797300(0x201))),d(this,_0x797300(0x1d7),this[_0x797300(0x16f)][_0x797300(0x1e6)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x797300(0x164),null),(this[_0x797300(0x191)]=_0x8d7d14,this[_0x797300(0x179)]=_0x12baa6,this[_0x797300(0x215)]=_0x129556,this['_liveShareService']=_0x3cf421,this['_commandService']=_0x35abdd);}get['_status'](){var _0x4ec7ca=_0x5d30d8;return this['_status$'][_0x4ec7ca(0x19f)]();}[_0x5d30d8(0x1cd)](){var _0x1ef786=_0x5d30d8,_0x383993;(_0x383993=this['_commandDisposable'])==null||_0x383993[_0x1ef786(0x1cd)](),this[_0x1ef786(0x16f)][_0x1ef786(0x205)]('idle'),this['_status$'][_0x1ef786(0x1f9)]();}[_0x5d30d8(0x1c8)](){var _0x30c7b1=_0x5d30d8;this[_0x30c7b1(0x1d3)]||(this[_0x30c7b1(0x1d3)]=!0x0,this[_0x30c7b1(0x179)][_0x30c7b1(0x186)][_0x30c7b1(0x1a2)](_0x255cad(this[_0x30c7b1(0x190)]))[_0x30c7b1(0x1e2)](_0x5c8b43=>{var _0x557295=_0x30c7b1;switch(_0x5c8b43){case _0x2cbd97[_0x557295(0x21c)]:this[_0x557295(0x17a)]();break;case _0x2cbd97[_0x557295(0x1eb)]:this['_handleOnline']();break;}}),this[_0x30c7b1(0x179)][_0x30c7b1(0x21d)][_0x30c7b1(0x1a2)](_0x255cad(this[_0x30c7b1(0x190)]))[_0x30c7b1(0x1e2)](_0x18459d=>{var _0x4a0f5b=_0x30c7b1;const {eventID:_0x5e0460}=_0x18459d;switch(_0x5e0460){case _0x401301[_0x4a0f5b(0x169)]:this[_0x4a0f5b(0x177)](_0x18459d);break;case _0x401301[_0x4a0f5b(0x21b)]:this[_0x4a0f5b(0x20d)](_0x18459d);break;case _0x401301['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x401301[_0x4a0f5b(0x1c1)]:this[_0x4a0f5b(0x1d9)](_0x18459d);break;}}));}['tryStartPresenting'](){var _0x4b08f2=_0x5d30d8;this[_0x4b08f2(0x179)][_0x4b08f2(0x1b3)]({'eventID':_0x401301[_0x4b08f2(0x1f4)],'data':{'unitID':this[_0x4b08f2(0x191)],'userID':this[_0x4b08f2(0x179)]['getMemberID']()}},this[_0x4b08f2(0x191)]);}[_0x5d30d8(0x209)](){var _0x2daf96=_0x5d30d8;this[_0x2daf96(0x1f8)]===_0x2daf96(0x1c5)&&(this[_0x2daf96(0x16f)][_0x2daf96(0x205)](_0x2daf96(0x201)),this[_0x2daf96(0x179)][_0x2daf96(0x1b3)]({'eventID':_0x401301['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2daf96(0x191)]}},this[_0x2daf96(0x191)]));}[_0x5d30d8(0x17d)](){var _0x377b20=_0x5d30d8;this['_status']===_0x377b20(0x1fb)&&(this['_status$']['next'](_0x377b20(0x1c0)),this[_0x377b20(0x217)]());}[_0x5d30d8(0x16d)](){var _0x563f1b=_0x5d30d8;this[_0x563f1b(0x1f8)]===_0x563f1b(0x1c0)&&this[_0x563f1b(0x1b8)]();}['_handleNewHost'](_0xa5731){var _0x2d0638=_0x5d30d8;const {presenter:_0x56e978}=_0xa5731[_0x2d0638(0x197)],_0x26ca36=this['_collabSession'][_0x2d0638(0x1ad)]();this['_presenter']=_0x56e978,_0x56e978===_0x26ca36?(this[_0x2d0638(0x1b8)](),this[_0x2d0638(0x219)]()):this[_0x2d0638(0x1f8)]!=='not-following'&&(this[_0x2d0638(0x1af)](),this[_0x2d0638(0x217)]());}[_0x5d30d8(0x1ab)](){var _0x159320=_0x5d30d8;const _0x90d8c8={'eventID':_0x401301[_0x159320(0x1a9)]};this[_0x159320(0x179)][_0x159320(0x1b3)](_0x90d8c8,this['_unitID']);}[_0x5d30d8(0x1f7)](){var _0x3ef275=_0x5d30d8;this[_0x3ef275(0x164)]=null,this['_status']!==_0x3ef275(0x1c5)&&this[_0x3ef275(0x18e)]();}[_0x5d30d8(0x1d9)](_0x539628){var _0x3fd6c8=_0x5d30d8;if(this[_0x3fd6c8(0x1f8)]===_0x3fd6c8(0x1c0)&&this['_presenter']===_0x539628[_0x3fd6c8(0x197)][_0x3fd6c8(0x1c7)]){const _0x553864=_0x1b0094(_0x539628['data'])[_0x3fd6c8(0x16c)][_0x3fd6c8(0x17b)]()[_0x3fd6c8(0x19a)](_0x5a3e57=>_0x5a3e57['id']===_0x100213['id']);if(_0x553864){const _0x51397d=_0x553864[_0x3fd6c8(0x1d5)][_0x3fd6c8(0x1fa)],_0x4cdcb2=_0x553864['params']['sheet']['id'];setTimeout(()=>{var _0x5ba0da=_0x3fd6c8;this[_0x5ba0da(0x1d6)][_0x5ba0da(0x20c)](_0x1b50b9['id'],{'unitId':_0x51397d,'subUnitId':_0x4cdcb2},{'fromCollab':!0x0});});}}}[_0x5d30d8(0x219)](){var _0x8f7d1d=_0x5d30d8;this['_status$'][_0x8f7d1d(0x205)](_0x8f7d1d(0x1c5));const _0x4c702b=new Map(),_0x1abd79=this['_commandDisposable']=new _0x978234();_0x1abd79[_0x8f7d1d(0x1ee)](_0x2344a8(()=>{var _0x46047c=_0x8f7d1d;_0x4c702b[_0x46047c(0x171)](_0x5d0482=>_0x5d0482[_0x46047c(0x1f9)]()),_0x4c702b[_0x46047c(0x16b)]();})),_0x1abd79[_0x8f7d1d(0x1ee)](this[_0x8f7d1d(0x1d6)][_0x8f7d1d(0x218)](_0x2ec366=>{var _0x35591b=_0x8f7d1d,_0x9860f9;if(_0x2ec366['type']!==_0x35a7ba[_0x35591b(0x1ef)]||!this['_liveShareService'][_0x35591b(0x1a3)](_0x2ec366['id']))return;const {id:_0x431ad0}=_0x2ec366;let _0x488a04;_0x4c702b[_0x35591b(0x1ac)](_0x431ad0)?_0x488a04=_0x4c702b[_0x35591b(0x193)](_0x431ad0):(_0x488a04=new _0x4f2060(),_0x4c702b[_0x35591b(0x1fd)](_0x431ad0,_0x488a04),_0x488a04[_0x35591b(0x1a2)](_0x32b576((_0x9860f9=this[_0x35591b(0x215)]['getConfig'](Pe))!=null?_0x9860f9:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x28c85f=>{var _0x4dd0cc=_0x35591b;this[_0x4dd0cc(0x179)][_0x4dd0cc(0x1b3)]({'eventID':_0x401301['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4dd0cc(0x191)],'operations':{[_0x28c85f['id']]:{'id':_0x28c85f['id'],'params':JSON[_0x4dd0cc(0x214)](_0x28c85f[_0x4dd0cc(0x1d5)])}}}},this['_unitID']);})),_0x488a04[_0x35591b(0x205)](_0x2ec366);})),this[_0x8f7d1d(0x1da)][_0x8f7d1d(0x1b6)](this['_unitID'])[_0x8f7d1d(0x171)](_0x382ed5=>this[_0x8f7d1d(0x179)]['send']({'eventID':_0x401301[_0x8f7d1d(0x21b)],'data':{'unitID':this['_unitID'],'operations':{[_0x382ed5['id']]:{'id':_0x382ed5['id'],'params':JSON['stringify'](_0x382ed5['params'])}}}},this[_0x8f7d1d(0x191)]));}['_stopPresenting'](){var _0x4d7a77=_0x5d30d8,_0x1d572e;this['_status$'][_0x4d7a77(0x205)]('idle'),(_0x1d572e=this[_0x4d7a77(0x19d)])==null||_0x1d572e['dispose'](),this[_0x4d7a77(0x19d)]=null;}[_0x5d30d8(0x217)](){var _0x1cf544=_0x5d30d8,_0x41c904;(_0x41c904=this[_0x1cf544(0x19d)])==null||_0x41c904[_0x1cf544(0x1cd)](),this[_0x1cf544(0x16f)]['next']('following');}[_0x5d30d8(0x18e)](){var _0x1915ec=_0x5d30d8,_0x3c5a7f;this[_0x1915ec(0x16f)]['next']('idle'),(_0x3c5a7f=this[_0x1915ec(0x19d)])==null||_0x3c5a7f[_0x1915ec(0x1cd)](),this[_0x1915ec(0x19d)]=null;}[_0x5d30d8(0x1b8)](){var _0x10c7da=_0x5d30d8,_0x272c0e;this[_0x10c7da(0x16f)][_0x10c7da(0x205)]('not-following'),(_0x272c0e=this[_0x10c7da(0x19d)])==null||_0x272c0e[_0x10c7da(0x1cd)]();}[_0x5d30d8(0x20d)](_0x4af5ad){var _0x27ac78=_0x5d30d8;if(['presenting',_0x27ac78(0x1fb),'offline']['includes'](this[_0x27ac78(0x1f8)])||!_0x4af5ad[_0x27ac78(0x197)][_0x27ac78(0x1e1)]||_0x4af5ad[_0x27ac78(0x197)][_0x27ac78(0x1e1)]===this[_0x27ac78(0x179)][_0x27ac78(0x1ad)]())return;this[_0x27ac78(0x1f8)]===_0x27ac78(0x201)&&this[_0x27ac78(0x217)]();const _0x3069c2=_0x4af5ad[_0x27ac78(0x197)][_0x27ac78(0x1fe)];Object[_0x27ac78(0x1e4)](_0x3069c2)[_0x27ac78(0x171)](_0x402451=>{var _0x2c1e74=_0x27ac78;this['_commandService'][_0x2c1e74(0x20c)](_0x402451['id'],_0x402451[_0x2c1e74(0x1d5)]?JSON['parse'](_0x402451['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x43997c=_0x5d30d8,_0x38e056;this[_0x43997c(0x16f)][_0x43997c(0x205)]('offline'),(_0x38e056=this[_0x43997c(0x19d)])==null||_0x38e056[_0x43997c(0x1cd)]();}[_0x5d30d8(0x1ea)](){var _0x3b84fa=_0x5d30d8;this[_0x3b84fa(0x16f)][_0x3b84fa(0x205)]('idle'),this[_0x3b84fa(0x1ab)]();}};C=Z([f(0x2,_0x45a866),f(0x3,_0x33eb57(L)),f(0x4,_0x50284f)],C);function Te(){var _0x5d2683=_0x5d30d8;const _0x49696a=_0x429be2(I),_0x10a5fd=_0x429be2(_0x5b4ee1),_0x33df62=_0x4a06fa(()=>_0x10a5fd[_0x5d2683(0x16a)](_0x250f14['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x57168f,_0x3747c8]=_0x23765a(null),[_0x5155f8,_0x19b400]=_0x23765a(h[_0x5d2683(0x1e0)]),_0x429d06=_0x214111(null);return _0xfd18d0(()=>(_0x33df62&&_0x49696a['getLiveShareCoordinator'](_0x33df62['getUnitId']())[_0x5d2683(0x1f6)](_0x18fe18=>{var _0x3b7cc2=_0x5d2683;_0x3747c8(_0x18fe18),_0x429d06[_0x3b7cc2(0x210)]=_0x18fe18[_0x3b7cc2(0x1d7)][_0x3b7cc2(0x1e2)](_0x3ec5ce=>{_0x19b400(_0x3ec5ce);});}),()=>{var _0x30dc78=_0x5d2683,_0x5be723;(_0x5be723=_0x429d06[_0x30dc78(0x210)])==null||_0x5be723['unsubscribe'](),_0x429d06[_0x30dc78(0x210)]=null;}),[_0x33df62,_0x49696a]),_0x57168f?_0x3b0e8d(_0x218bcf,{'align':'end','disabled':_0x5155f8===h[_0x5d2683(0x21c)],'className':_0x5d2683(0x1a4),'overlay':_0x3b0e8d($e,{'status':_0x5155f8,'coordinator':_0x57168f}),'children':_0x3b0e8d(_0x5d2683(0x1ff),{'className':_0x273fa1(_0x5d2683(0x1b5),{'univer-cursor-not-allowed':_0x5155f8===h[_0x5d2683(0x21c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5155f8!==h[_0x5d2683(0x21c)]}),'type':'button','children':_0x3b0e8d(B,{'className':_0x5d2683(0x203)})})}):null;}function $e(_0x2eb5b7){var _0x59589d=_0x5d30d8;const {status:_0x1d3120,coordinator:_0x5e57b6}=_0x2eb5b7;switch(_0x1d3120){case h[_0x59589d(0x1e0)]:return _0x3b0e8d(Fe,{'coordinator':_0x5e57b6});case h[_0x59589d(0x1cf)]:return _0x3b0e8d(He,{'coordinator':_0x5e57b6});case h[_0x59589d(0x20f)]:return _0x3b0e8d(je,{'coordinator':_0x5e57b6});case h[_0x59589d(0x21c)]:return _0x3b0e8d(Ve,{});case h[_0x59589d(0x178)]:return _0x3b0e8d(Ue,{'coordinator':_0x5e57b6});default:return null;}}function Fe(_0x324c04){var _0x2f0939=_0x5d30d8;const {coordinator:_0x62f4e3}=_0x324c04;return _0x249e8a(_0x7d0996,{'children':[_0x3b0e8d('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x3b0e8d(_0x41cd9b,{'onClick':()=>_0x62f4e3[_0x2f0939(0x1c9)](),'children':_0x2f0939(0x1b4)})]});}function He(_0x5be363){var _0x3c5099=_0x5d30d8;const {coordinator:_0x1b264e}=_0x5be363;return _0x249e8a(_0x7d0996,{'children':[_0x3b0e8d('div',{'className':_0x3c5099(0x1a8),'children':_0x3c5099(0x1bb)}),_0x3b0e8d(_0x41cd9b,{'onClick':()=>_0x1b264e[_0x3c5099(0x16d)](),'children':'Stop\x20following'})]});}function je(_0x5ec610){var _0x3bd297=_0x5d30d8;const {coordinator:_0x2ebaf2}=_0x5ec610;return _0x249e8a(_0x7d0996,{'children':[_0x3b0e8d(_0x3bd297(0x19c),{'className':_0x3bd297(0x1a8),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3b0e8d(_0x41cd9b,{'variant':'text','onClick':()=>_0x2ebaf2[_0x3bd297(0x17d)](),'children':_0x3bd297(0x1c2)})]});}function _0x3b8a(_0x33cf18,_0x206ab7){var _0x3e4e66=_0x3e4e();return _0x3b8a=function(_0x3b8a81,_0x7021e1){_0x3b8a81=_0x3b8a81-0x164;var _0x3f4020=_0x3e4e66[_0x3b8a81];return _0x3f4020;},_0x3b8a(_0x33cf18,_0x206ab7);}function Ue(_0xe40475){var _0x214668=_0x5d30d8;const {coordinator:_0x5d883c}=_0xe40475;return _0x249e8a(_0x7d0996,{'children':[_0x3b0e8d(_0x214668(0x19c),{'className':_0x214668(0x1a8),'children':_0x214668(0x180)}),_0x3b0e8d(_0x41cd9b,{'variant':_0x214668(0x1f1),'onClick':()=>_0x5d883c[_0x214668(0x209)](),'children':_0x214668(0x173)})]});}function Ve(){return _0x3b0e8d(_0x7d0996,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x5d30d8(0x172)],ke=(_0x2f83f9,_0x3b3de0,_0x24637f,_0xbf4c91)=>{for(var _0x46605b=_0xbf4c91>0x1?void 0x0:_0xbf4c91?Me(_0x3b3de0,_0x24637f):_0x3b3de0,_0x4f0c33=_0x2f83f9['length']-0x1,_0x286ad4;_0x4f0c33>=0x0;_0x4f0c33--)(_0x286ad4=_0x2f83f9[_0x4f0c33])&&(_0x46605b=_0x286ad4(_0x46605b)||_0x46605b);return _0x46605b;},$=(_0x556f93,_0x11c561)=>(_0x3a07d1,_0x5e86c1)=>_0x11c561(_0x3a07d1,_0x5e86c1,_0x556f93);let b=class extends _0x59a070{constructor(_0x282301,_0x1a7c19){var _0x1d661d=_0x5d30d8;super(),this[_0x1d661d(0x1ec)]=_0x282301,this['_uiPartsService']=_0x1a7c19,this[_0x1d661d(0x1f5)]();}[_0x5d30d8(0x1f5)](){var _0x3c32fc=_0x5d30d8;this[_0x3c32fc(0x1d0)](this[_0x3c32fc(0x18f)][_0x3c32fc(0x208)](_0x4a426f[_0x3c32fc(0x1c4)],()=>_0x414305(Te,this['_injector'])));}};b=ke([$(0x0,_0x33eb57(_0x169f90)),$(0x1,_0x29be1c)],b);var Ge=Object[_0x5d30d8(0x1d4)],We=Object[_0x5d30d8(0x172)],Ye=(_0xef673b,_0x215f64,_0x15218a)=>_0x215f64 in _0xef673b?Ge(_0xef673b,_0x215f64,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15218a}):_0xef673b[_0x215f64]=_0x15218a,Be=(_0x2cb7f1,_0x2115f6,_0x335250,_0x284b2c)=>{var _0xf123b9=_0x5d30d8;for(var _0x596dfe=_0x284b2c>0x1?void 0x0:_0x284b2c?We(_0x2115f6,_0x335250):_0x2115f6,_0x1228c7=_0x2cb7f1[_0xf123b9(0x167)]-0x1,_0x288cb5;_0x1228c7>=0x0;_0x1228c7--)(_0x288cb5=_0x2cb7f1[_0x1228c7])&&(_0x596dfe=_0x288cb5(_0x596dfe)||_0x596dfe);return _0x596dfe;},F=(_0x5be2e7,_0x3e36f1)=>(_0x24e157,_0x4f5e76)=>_0x3e36f1(_0x24e157,_0x4f5e76,_0x5be2e7),J=(_0x222674,_0x2ca222,_0x2228dd)=>Ye(_0x222674,typeof _0x2ca222!=_0x5d30d8(0x1bd)?_0x2ca222+'':_0x2ca222,_0x2228dd);function _0x3e4e(){var _0x2c22b1=['ONLINE','_injector','from','add','OPERATION','random','default','propertyIsEnumerable','2683953mpyoxi','LIVESHARE_REQUEST_HOST','_mountLiveShare','then','_handleTerminate','_status','complete','unitId','not-following','getTypeOfUnitDisposed$','set','operations','button','_univerInstanceService','idle','0\x200\x2017\x2017','univer-size-4','type','next','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','createInstance','registerComponent','stopPresenting','prototype','evenodd','executeCommand','_handleOperation','30499cXRTax','NOT_FOLLOWING','current','requireSession','9214982ImWEJi','includes','stringify','_configService','UNIVER_SHEET','_startFollowing','onCommandExecuted','_startPresenting','getTypeOfUnitAdded$','LIVESHARE_OPERATION','OFFLINE','event$','_presenter','4253416XdkfRK','pluginName','length','_collabSessionService','LIVESHARE_NEW_HOST','getCurrentTypeOfUnit$','clear','mutations','stopFollowing','live-share.config','_status$','indexOf','forEach','getOwnPropertyDescriptor','Stop\x20presenting','mask','override','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','_handleNewHost','PRESENTING','_collabSession','_handleOffline','reverse','path','startFollowing','registerInitialStateReporter','setConfig','You\x27re\x20presenting\x20the\x20document','SAME_OPERATION_SHARE_INTERVAL','toString','LiveShareIcon','getLiveShareCoordinator','fill','sessionStatus$','xlink:href','string','onStarting','svg','assign','tag','40huFwab','_beIdle','_uiPartsService','dispose$','_unitID','univerjs-icon\x20univerjs-icon-','get','_sharedOperations','url(#$1','UniverIcon','data','offline','7680705oELkVg','find','_startLiveShareCoordinator','div','_commandDisposable','apply','getValue','concat','_reporters','pipe','shouldShareOperation','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','1em','displayName','attrs','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_FETCH_OPERATIONS','replace','_fetchOperations','has','getMemberID','http://www.w3.org/2000/svg','_stopPresenting','registerSharedOperation','function','defIds','send','Start','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getInitialStates','defs','_stopFollowing','getOwnPropertySymbols','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20following\x20the\x20presenter','4662496cpUwOv','symbol','extend','6tLhKyo','following','NEW_CHANGESETS','Start\x20following','substring','HEADER_MENU','presenting','getUnitId','memberID','init','tryStartPresenting','_config','live-share-icon','map','dispose','icon','FOLLOWING','disposeWithMe','delete','onRendered','_init','defineProperty','params','_commandService','status$','colorChannel1','_handleNewChangeSets','_liveShareService','577701WfjnRz','className','currentColor','children','36KfTLRK','IDLE','presenter','subscribe','call','values','UNIVER_UNKNOWN','asObservable','idSuffix','_entities','entries','_handleOnline'];_0x3e4e=function(){return _0x2c22b1;};return _0x3e4e();}const Ze=_0x5d30d8(0x1ba);let O=class extends _0x15b4ac{constructor(_0x39808c=T,_0x54db8a,_0x5ec2d6){var _0x33b84b=_0x5d30d8;super(),this['_config']=_0x39808c,this[_0x33b84b(0x1ec)]=_0x54db8a,this[_0x33b84b(0x215)]=_0x5ec2d6;const {..._0x1552a0}=_0x47f619({},T,this['_config']);this[_0x33b84b(0x215)][_0x33b84b(0x17f)](Oe,_0x1552a0);}[_0x5d30d8(0x189)](){var _0x416954=_0x5d30d8;_0x37fe12(this[_0x416954(0x1ec)],_0x252a4d([[L],[I],[m],[b]],this[_0x416954(0x1ca)][_0x416954(0x175)])),_0x5da897(this[_0x416954(0x1ec)],[[m]]);}[_0x5d30d8(0x1d2)](){var _0x32d027=_0x5d30d8;_0x5da897(this[_0x32d027(0x1ec)],[[b]]);}};J(O,_0x5d30d8(0x204),_0x250f14[_0x5d30d8(0x1e5)]),J(O,_0x5d30d8(0x166),Ze),O=Be([_0x529563(_0x27f398),F(0x1,_0x33eb57(_0x169f90)),F(0x2,_0x45a866)],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 _0x1cfdb8=_0x38aa;(function(_0x2254fe,_0x547e30){var _0x622d75=_0x38aa,_0x5ed9d9=_0x2254fe();while(!![]){try{var _0x4ed5ea=-parseInt(_0x622d75(0x1b8))/0x1+-parseInt(_0x622d75(0x1cb))/0x2*(parseInt(_0x622d75(0x188))/0x3)+parseInt(_0x622d75(0x1eb))/0x4*(parseInt(_0x622d75(0x18b))/0x5)+-parseInt(_0x622d75(0x1d6))/0x6*(-parseInt(_0x622d75(0x211))/0x7)+-parseInt(_0x622d75(0x1ad))/0x8+parseInt(_0x622d75(0x23a))/0x9*(-parseInt(_0x622d75(0x213))/0xa)+parseInt(_0x622d75(0x1ab))/0xb;if(_0x4ed5ea===_0x547e30)break;else _0x5ed9d9['push'](_0x5ed9d9['shift']());}catch(_0x5d0107){_0x5ed9d9['push'](_0x5ed9d9['shift']());}}}(_0x212b,0xd4481));var q=Object[_0x1cfdb8(0x23f)],z=(_0xd16ef2,_0xac2f13,_0x35282d)=>_0xac2f13 in _0xd16ef2?q(_0xd16ef2,_0xac2f13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35282d}):_0xd16ef2[_0xac2f13]=_0x35282d,d=(_0x2c04bb,_0x395c32,_0x10d572)=>z(_0x2c04bb,typeof _0x395c32!='symbol'?_0x395c32+'':_0x395c32,_0x10d572);import{CollaborationSessionService as _0x1aeeb2,SessionStatus as _0x4c2fe1,UniverCollaborationClientPlugin as _0x5df2c9}from'@univerjs-pro/collaboration-client';function _0x38aa(_0x4e70b4,_0x13c80e){var _0x212b62=_0x212b();return _0x38aa=function(_0x38aaca,_0x5d5abe){_0x38aaca=_0x38aaca-0x188;var _0x540e9f=_0x212b62[_0x38aaca];return _0x540e9f;},_0x38aa(_0x4e70b4,_0x13c80e);}import{Disposable as _0x978db0,toDisposable as _0x4a5a19,Inject as _0x47e04a,IUniverInstanceService as _0x5e8fc8,Injector as _0x12d76d,IConfigService as _0x4ab276,ICommandService as _0x1b92ec,RxDisposable as _0x34f499,UniverInstanceType as _0x44e9a0,DisposableCollection as _0x4bfb4d,CommandType as _0x1a8ce3,DependentOn as _0x20f516,Plugin as _0x2d95be,merge as _0x4d7b5c,registerDependencies as _0x3c4690,mergeOverrideWithDependencies as _0x5c9bf8,touchDependencies as _0x223193}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x24d323,InsertSheetMutation as _0x10e7cd}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x20f706,SetScrollOperation as _0xf4f43e}from'@univerjs/sheets-ui';import{useDependency as _0x5ac572,useObservable as _0xb18adb,IUIPartsService as _0x53c21b,BuiltInUIPart as _0x2b5b91,connectInjector as _0xecd535}from'@univerjs/ui';import{jsx as _0x2585db,jsxs as _0x3c8f57,Fragment as _0x589951}from'react/jsx-runtime';import{Dropdown as _0x2c46c3,clsx as _0x4d9db3,Button as _0xcd60f4}from'@univerjs/design';import{forwardRef as _0x59bfc9,useRef as _0x25d6c4,createElement as _0x45c30f,useState as _0x21145a,useEffect as _0x396e80}from'react';function _0x212b(){var _0x4f0b63=['pluginName','button','symbol','prototype','hasOwnProperty','_collabSession','getUnitId','path','replace','xlink:href','following','_collabSessionService','_commandDisposable','createInstance','none','4tLABLK','FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','OPERATION','_liveShareService','PRESENTING','defIds','add','children','presenting','memberID','idle','idSuffix','clear','random','_handleOnline','sessionStatus$','data','OFFLINE','dispose$','subscribe','assign','_unitID','_entities','LIVESHARE_OPERATION','dispose','url(#$1','not-following','tag','colorChannel1','stopFollowing','_handleNewHost','_startPresenting','from','map','_reporters','send','7nckDEy','fill','1589860DNLwNd','_commandService','then','get','getTypeOfUnitAdded$','_handleTerminate','complete','parse','registerComponent','You\x27re\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','_presenter','length','startFollowing','_fetchOperations','svg','http://www.w3.org/2000/svg','LiveShareIcon','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Stop\x20presenting','string','end','set','tryStartPresenting','_startFollowing','getOwnPropertyDescriptor','setConfig','requireSession','_status','params','presenter','attrs','event$','univer-mb-3\x20univer-w-full\x20univer-text-sm','indexOf','getTypeOfUnitDisposed$','values','onStarting','36AbGmYL','0\x200\x2017\x2017','_stopFollowing','getLiveShareCoordinator','extend','defineProperty','1em','2922879GxkwKF','_status$','call','1491340FuOpUJ','current','univer-size-4','UniverIcon','apply','forEach','displayName','includes','Start\x20following','stopPresenting','_uiPartsService','NOT_FOLLOWING','unitId','_injector','getValue','currentColor','getInitialStates','UNIVER_SHEET','ONLINE','operations','init','live-share-icon','registerInitialStateReporter','icon','_sharedOperations','UNIVER_UNKNOWN','_init','onRendered','entries','Stop\x20following','LIVESHARE_TERMINATE','next','43451034ZEDDhj','evenodd','4180944SQwlZt','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','pipe','mask','offline','propertyIsEnumerable','getOwnPropertySymbols','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','_beIdle','1490030ftfqNq','div','text','reverse','find','live-share.config','HEADER_MENU','_configService','status$','mutations','defs','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','_mountLiveShare','onCommandExecuted','_univerInstanceService','asObservable','getConfig','_handleNewChangeSets','unsubscribe','2NSYMkD','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','executeCommand','sheet','type','delete','className','override','univerjs-icon\x20univerjs-icon-','registerSharedOperation','1464168OYzTwh','_config','concat','has','You\x27are\x20offline.','substring'];_0x212b=function(){return _0x4f0b63;};return _0x212b();}import{CollaborationEvent as _0x20f152,parseProtocolChangeset as _0x5d01dc}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x232912,Subject as _0x396672}from'rxjs';import{takeUntil as _0x53db6a,throttleTime as _0x4fcd45}from'rxjs/operators';const Oe=_0x1cfdb8(0x1bd),T={};class L extends _0x978db0{constructor(){var _0x263b05=_0x1cfdb8;super(...arguments),d(this,_0x263b05(0x1a3),new Set()),d(this,'_reporters',new Set());}[_0x1cfdb8(0x1d5)](_0x1a5673){var _0x26d507=_0x1cfdb8;return this[_0x26d507(0x1a3)][_0x26d507(0x1f3)](_0x1a5673),_0x4a5a19(()=>this['_sharedOperations'][_0x26d507(0x1d1)](_0x1a5673));}[_0x1cfdb8(0x1a1)](_0x222b63){var _0x272a54=_0x1cfdb8;return this[_0x272a54(0x20f)][_0x272a54(0x1f3)](_0x222b63),_0x4a5a19(()=>this[_0x272a54(0x20f)]['delete'](_0x222b63));}['shouldShareOperation'](_0x3dae90){var _0x1b2f10=_0x1cfdb8;return this[_0x1b2f10(0x1a3)][_0x1b2f10(0x1d9)](_0x3dae90);}['getInitialStates'](_0x9af903){var _0x3af8af=_0x1cfdb8;return Array[_0x3af8af(0x20d)](this[_0x3af8af(0x20f)])[_0x3af8af(0x20e)](_0xe0eae5=>_0xe0eae5(_0x9af903));}}var Ee=Object[_0x1cfdb8(0x22d)],we=(_0x4e4613,_0x447ae7,_0x385b4f,_0x413bfa)=>{var _0x438e2f=_0x1cfdb8;for(var _0x19eb74=_0x413bfa>0x1?void 0x0:_0x413bfa?Ee(_0x447ae7,_0x385b4f):_0x447ae7,_0x2ca1d4=_0x4e4613[_0x438e2f(0x21f)]-0x1,_0x33589d;_0x2ca1d4>=0x0;_0x2ca1d4--)(_0x33589d=_0x4e4613[_0x2ca1d4])&&(_0x19eb74=_0x33589d(_0x19eb74)||_0x19eb74);return _0x19eb74;},Ne=(_0x5300ab,_0x364dc7)=>(_0x195b5e,_0x1987f9)=>_0x364dc7(_0x195b5e,_0x1987f9,_0x5300ab);let m=class extends _0x978db0{constructor(_0x2f763e){var _0x5c2773=_0x1cfdb8;super(),this[_0x5c2773(0x1f0)]=_0x2f763e,this[_0x5c2773(0x1a5)]();}[_0x1cfdb8(0x1a5)](){var _0x565342=_0x1cfdb8;[_0x20f706['id'],_0xf4f43e['id'],_0x24d323['id']][_0x565342(0x190)](_0x5b7203=>{var _0x4fc2ac=_0x565342;this['disposeWithMe'](this['_liveShareService'][_0x4fc2ac(0x1d5)](_0x5b7203));});}};m=we([Ne(0x0,_0x47e04a(L))],m);var c=function(){var _0x10ec6a=_0x1cfdb8;return c=Object[_0x10ec6a(0x201)]||function(_0x39cc35){var _0x3edc73=_0x10ec6a;for(var _0x4d6feb,_0x4ccd36=0x1,_0x59fa55=arguments[_0x3edc73(0x21f)];_0x4ccd36<_0x59fa55;_0x4ccd36++){_0x4d6feb=arguments[_0x4ccd36];for(var _0x137211 in _0x4d6feb)Object['prototype'][_0x3edc73(0x1e0)]['call'](_0x4d6feb,_0x137211)&&(_0x39cc35[_0x137211]=_0x4d6feb[_0x137211]);}return _0x39cc35;},c[_0x10ec6a(0x18f)](this,arguments);},Ce=function(_0xb5c193,_0x5a3b62){var _0x4a0668=_0x1cfdb8,_0xec7201={};for(var _0x4a5760 in _0xb5c193)Object[_0x4a0668(0x1df)][_0x4a0668(0x1e0)]['call'](_0xb5c193,_0x4a5760)&&_0x5a3b62[_0x4a0668(0x236)](_0x4a5760)<0x0&&(_0xec7201[_0x4a5760]=_0xb5c193[_0x4a5760]);if(_0xb5c193!=null&&typeof Object[_0x4a0668(0x1b4)]=='function'){for(var _0x33c41e=0x0,_0x4a5760=Object[_0x4a0668(0x1b4)](_0xb5c193);_0x33c41e<_0x4a5760[_0x4a0668(0x21f)];_0x33c41e++)_0x5a3b62[_0x4a0668(0x236)](_0x4a5760[_0x33c41e])<0x0&&Object[_0x4a0668(0x1df)][_0x4a0668(0x1b3)][_0x4a0668(0x18a)](_0xb5c193,_0x4a5760[_0x33c41e])&&(_0xec7201[_0x4a5760[_0x33c41e]]=_0xb5c193[_0x4a5760[_0x33c41e]]);}return _0xec7201;},W=_0x59bfc9(function(_0x4efc7e,_0xb0d19f){var _0x4baa06=_0x1cfdb8,_0x55f209=_0x4efc7e['icon'],_0xe569d2=_0x4efc7e['id'],_0x1c58fb=_0x4efc7e[_0x4baa06(0x1d2)],_0x3b30b2=_0x4efc7e[_0x4baa06(0x23e)],_0x143fc8=Ce(_0x4efc7e,[_0x4baa06(0x1a2),'id',_0x4baa06(0x1d2),_0x4baa06(0x23e)]),_0x1b8bcd=_0x4baa06(0x1d4)['concat'](_0xe569d2,'\x20')[_0x4baa06(0x1d8)](_0x1c58fb||'')[_0x4baa06(0x225)](),_0x4d6fc4=_0x25d6c4('_'[_0x4baa06(0x1d8)](Le()));return Y(_0x55f209,''[_0x4baa06(0x1d8)](_0xe569d2),{'defIds':_0x55f209[_0x4baa06(0x1f2)],'idSuffix':_0x4d6fc4[_0x4baa06(0x18c)]},c({'ref':_0xb0d19f,'className':_0x1b8bcd},_0x143fc8),_0x3b30b2);});function Y(_0x43f131,_0x1b90f7,_0x27d717,_0x21d043,_0x48f311){var _0x68908d=_0x1cfdb8;return _0x45c30f(_0x43f131[_0x68908d(0x208)],c(c({'key':_0x1b90f7},De(_0x43f131,_0x27d717,_0x48f311)),_0x21d043),(xe(_0x43f131,_0x27d717)[_0x68908d(0x1f4)]||[])[_0x68908d(0x20e)](function(_0x406890,_0x2dd08d){var _0x564cd0=_0x68908d;return Y(_0x406890,''['concat'](_0x1b90f7,'-')[_0x564cd0(0x1d8)](_0x43f131[_0x564cd0(0x208)],'-')[_0x564cd0(0x1d8)](_0x2dd08d),_0x27d717,void 0x0,_0x48f311);}));}function De(_0x82f61f,_0x2aed74,_0x1c1e9e){var _0x16ade7=_0x1cfdb8,_0x4ad31f=c({},_0x82f61f['attrs']);_0x1c1e9e!=null&&_0x1c1e9e[_0x16ade7(0x209)]&&_0x4ad31f['fill']==='colorChannel1'&&(_0x4ad31f[_0x16ade7(0x212)]=_0x1c1e9e[_0x16ade7(0x209)]),_0x82f61f['tag']==='mask'&&_0x4ad31f['id']&&(_0x4ad31f['id']=_0x4ad31f['id']+_0x2aed74[_0x16ade7(0x1f8)]),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x2395ae){var _0x116c4e=_0x16ade7,_0x2fd12d=_0x2395ae[0x0],_0x1e4eb7=_0x2395ae[0x1];_0x2fd12d===_0x116c4e(0x1b1)&&typeof _0x1e4eb7==_0x116c4e(0x228)&&(_0x4ad31f[_0x2fd12d]=_0x1e4eb7[_0x116c4e(0x1e4)](/url\(#(.*)\)/,_0x116c4e(0x206)[_0x116c4e(0x1d8)](_0x2aed74[_0x116c4e(0x1f8)],')')));});var _0x47b494=_0x2aed74[_0x16ade7(0x1f2)];return!_0x47b494||_0x47b494['length']===0x0||(_0x82f61f[_0x16ade7(0x208)]==='use'&&_0x4ad31f['xlink:href']&&(_0x4ad31f[_0x16ade7(0x1e5)]=_0x4ad31f[_0x16ade7(0x1e5)]+_0x2aed74['idSuffix']),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x3e714d){var _0x5e6db8=_0x16ade7,_0x2da8cd=_0x3e714d[0x0],_0x189137=_0x3e714d[0x1];typeof _0x189137==_0x5e6db8(0x228)&&(_0x4ad31f[_0x2da8cd]=_0x189137[_0x5e6db8(0x1e4)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2aed74[_0x5e6db8(0x1f8)],')')));})),_0x4ad31f;}function xe(_0x5dae6e,_0x410d83){var _0x13f102=_0x1cfdb8,_0x2f5174,_0x1313df=_0x410d83[_0x13f102(0x1f2)];return!_0x1313df||_0x1313df[_0x13f102(0x21f)]===0x0?_0x5dae6e:_0x5dae6e[_0x13f102(0x208)]===_0x13f102(0x1c2)&&(!((_0x2f5174=_0x5dae6e[_0x13f102(0x1f4)])===null||_0x2f5174===void 0x0)&&_0x2f5174[_0x13f102(0x21f)])?c(c({},_0x5dae6e),{'children':_0x5dae6e[_0x13f102(0x1f4)][_0x13f102(0x20e)](function(_0x1d6f5e){var _0x187fc2=_0x13f102;return typeof _0x1d6f5e[_0x187fc2(0x233)]['id']==_0x187fc2(0x228)&&_0x1313df&&_0x1313df[_0x187fc2(0x192)](_0x1d6f5e['attrs']['id'])?c(c({},_0x1d6f5e),{'attrs':c(c({},_0x1d6f5e['attrs']),{'id':_0x1d6f5e[_0x187fc2(0x233)]['id']+_0x410d83['idSuffix']})}):_0x1d6f5e;})}):_0x5dae6e;}function Le(){var _0x28a028=_0x1cfdb8;return Math[_0x28a028(0x1fa)]()['toString'](0x24)[_0x28a028(0x1db)](0x2,0x8);}W[_0x1cfdb8(0x191)]=_0x1cfdb8(0x18e);var ye={'tag':_0x1cfdb8(0x222),'attrs':{'xmlns':_0x1cfdb8(0x223),'fill':_0x1cfdb8(0x1ea),'viewBox':_0x1cfdb8(0x23b),'width':_0x1cfdb8(0x240),'height':_0x1cfdb8(0x240)},'children':[{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':'currentColor','d':_0x1cfdb8(0x1c3)}},{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':_0x1cfdb8(0x19a),'d':_0x1cfdb8(0x1b5),'fillRule':_0x1cfdb8(0x1ac),'clipRule':_0x1cfdb8(0x1ac)}}]},B=_0x59bfc9(function(_0x43d921,_0x42532d){var _0x4476b5=_0x1cfdb8;return _0x45c30f(W,Object[_0x4476b5(0x201)]({},_0x43d921,{'id':_0x4476b5(0x1a0),'ref':_0x42532d,'icon':ye}));});B[_0x1cfdb8(0x191)]=_0x1cfdb8(0x224);var Re=Object[_0x1cfdb8(0x22d)],Z=(_0x4e9e22,_0x8190cc,_0x5ba304,_0x2c4611)=>{var _0x2d8fb1=_0x1cfdb8;for(var _0x98efbb=_0x2c4611>0x1?void 0x0:_0x2c4611?Re(_0x8190cc,_0x5ba304):_0x8190cc,_0x4c592=_0x4e9e22[_0x2d8fb1(0x21f)]-0x1,_0x221019;_0x4c592>=0x0;_0x4c592--)(_0x221019=_0x4e9e22[_0x4c592])&&(_0x98efbb=_0x221019(_0x98efbb)||_0x98efbb);return _0x98efbb;},f=(_0x27cafd,_0x2ed14a)=>(_0x9920ce,_0x342b25)=>_0x2ed14a(_0x9920ce,_0x342b25,_0x27cafd);let I=class extends _0x34f499{constructor(_0x585cc7,_0x286658,_0x438dd1){var _0xea64f7=_0x1cfdb8;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x585cc7,this[_0xea64f7(0x198)]=_0x286658,this[_0xea64f7(0x1e7)]=_0x438dd1,this['_init']());}async[_0x1cfdb8(0x23d)](_0x3275a4){var _0x12c256=_0x1cfdb8;return this[_0x12c256(0x203)][_0x12c256(0x1d9)](_0x3275a4)||await this[_0x12c256(0x1cd)](_0x3275a4),this[_0x12c256(0x203)][_0x12c256(0x216)](_0x3275a4);}['_init'](){var _0x2739e5=_0x1cfdb8;this[_0x2739e5(0x1c6)][_0x2739e5(0x217)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))[_0x2739e5(0x200)](async _0xb14a38=>{var _0x5e159f=_0x2739e5;const _0x34c79=_0xb14a38[_0x5e159f(0x1e2)]();this[_0x5e159f(0x203)]['has'](_0x34c79)||this['_startLiveShareCoordinator'](_0x34c79);}),this[_0x2739e5(0x1c6)][_0x2739e5(0x237)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))['subscribe'](_0x453124=>{var _0x22a0ae=_0x2739e5;const _0x1f9d48=_0x453124['getUnitId'](),_0x26fd07=this[_0x22a0ae(0x203)][_0x22a0ae(0x216)](_0x1f9d48);_0x26fd07==null||_0x26fd07[_0x22a0ae(0x205)]();});}async[_0x1cfdb8(0x1cd)](_0x9169fa){var _0x3d461a=_0x1cfdb8;const _0x59e13c=await this['_collabSessionService'][_0x3d461a(0x22f)](_0x9169fa),_0x59207e=this[_0x3d461a(0x198)][_0x3d461a(0x1e9)](C,_0x9169fa,_0x59e13c);return _0x59207e[_0x3d461a(0x19f)](),this['_entities'][_0x3d461a(0x22a)](_0x9169fa,_0x59207e),_0x59207e;}};I=Z([f(0x0,_0x5e8fc8),f(0x1,_0x47e04a(_0x12d76d)),f(0x2,_0x47e04a(_0x1aeeb2))],I);var h=(_0x1d348c=>(_0x1d348c[_0x1cfdb8(0x1fe)]=_0x1cfdb8(0x1b2),_0x1d348c[_0x1cfdb8(0x1ee)]=_0x1cfdb8(0x1f7),_0x1d348c[_0x1cfdb8(0x1ec)]=_0x1cfdb8(0x1e6),_0x1d348c[_0x1cfdb8(0x196)]='not-following',_0x1d348c[_0x1cfdb8(0x1f1)]='presenting',_0x1d348c))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x34f499{constructor(_0x986b6,_0x19809d,_0x1e70f5,_0xcb00ee,_0x193bc4){var _0x3b438f=_0x1cfdb8;super(),d(this,_0x3b438f(0x189),new _0x232912('idle')),d(this,_0x3b438f(0x1c0),this[_0x3b438f(0x189)][_0x3b438f(0x1c7)]()),d(this,'_init',!0x1),d(this,_0x3b438f(0x1e8),null),d(this,'_presenter',null),(this['_unitID']=_0x986b6,this[_0x3b438f(0x1e1)]=_0x19809d,this[_0x3b438f(0x1bf)]=_0x1e70f5,this[_0x3b438f(0x1f0)]=_0xcb00ee,this['_commandService']=_0x193bc4);}get['_status'](){var _0x3cf0ff=_0x1cfdb8;return this[_0x3cf0ff(0x189)][_0x3cf0ff(0x199)]();}[_0x1cfdb8(0x205)](){var _0x1935bd=_0x1cfdb8,_0x7d10a9;(_0x7d10a9=this[_0x1935bd(0x1e8)])==null||_0x7d10a9[_0x1935bd(0x205)](),this[_0x1935bd(0x189)]['next']('idle'),this[_0x1935bd(0x189)][_0x1935bd(0x219)]();}[_0x1cfdb8(0x19f)](){var _0x3c2ea5=_0x1cfdb8;this['_init']||(this[_0x3c2ea5(0x1a5)]=!0x0,this['_collabSession'][_0x3c2ea5(0x1fc)]['pipe'](_0x53db6a(this[_0x3c2ea5(0x1ff)]))['subscribe'](_0x49b50d=>{var _0x42f9e1=_0x3c2ea5;switch(_0x49b50d){case _0x4c2fe1[_0x42f9e1(0x1fe)]:this['_handleOffline']();break;case _0x4c2fe1[_0x42f9e1(0x19d)]:this[_0x42f9e1(0x1fb)]();break;}}),this['_collabSession'][_0x3c2ea5(0x234)][_0x3c2ea5(0x1b0)](_0x53db6a(this['dispose$']))[_0x3c2ea5(0x200)](_0x569ba7=>{var _0x3c9176=_0x3c2ea5;const {eventID:_0x10980b}=_0x569ba7;switch(_0x10980b){case _0x20f152['LIVESHARE_NEW_HOST']:this[_0x3c9176(0x20b)](_0x569ba7);break;case _0x20f152[_0x3c9176(0x204)]:this['_handleOperation'](_0x569ba7);break;case _0x20f152[_0x3c9176(0x1a9)]:this['_handleTerminate']();break;case _0x20f152['NEW_CHANGESETS']:this[_0x3c9176(0x1c9)](_0x569ba7);break;}}));}['tryStartPresenting'](){var _0x31d8fa=_0x1cfdb8;this[_0x31d8fa(0x1e1)][_0x31d8fa(0x210)]({'eventID':_0x20f152[_0x31d8fa(0x21d)],'data':{'unitID':this[_0x31d8fa(0x202)],'userID':this[_0x31d8fa(0x1e1)]['getMemberID']()}},this[_0x31d8fa(0x202)]);}['stopPresenting'](){var _0x591157=_0x1cfdb8;this[_0x591157(0x230)]===_0x591157(0x1f5)&&(this[_0x591157(0x189)]['next'](_0x591157(0x1f7)),this[_0x591157(0x1e1)][_0x591157(0x210)]({'eventID':_0x20f152[_0x591157(0x1a9)],'data':{'unitID':this[_0x591157(0x202)]}},this[_0x591157(0x202)]));}[_0x1cfdb8(0x220)](){var _0x529865=_0x1cfdb8;this[_0x529865(0x230)]==='not-following'&&(this[_0x529865(0x189)][_0x529865(0x1aa)](_0x529865(0x1e6)),this[_0x529865(0x22c)]());}[_0x1cfdb8(0x20a)](){var _0x511b34=_0x1cfdb8;this[_0x511b34(0x230)]===_0x511b34(0x1e6)&&this[_0x511b34(0x23c)]();}['_handleNewHost'](_0x9cf68f){var _0x524346=_0x1cfdb8;const {presenter:_0x5d0808}=_0x9cf68f[_0x524346(0x1fd)],_0x42d715=this[_0x524346(0x1e1)]['getMemberID']();this['_presenter']=_0x5d0808,_0x5d0808===_0x42d715?(this['_stopFollowing'](),this[_0x524346(0x20c)]()):this['_status']!==_0x524346(0x207)&&(this['_stopPresenting'](),this[_0x524346(0x22c)]());}[_0x1cfdb8(0x221)](){var _0x175615=_0x1cfdb8;const _0x544c40={'eventID':_0x20f152['LIVESHARE_FETCH_OPERATIONS']};this[_0x175615(0x1e1)][_0x175615(0x210)](_0x544c40,this[_0x175615(0x202)]);}[_0x1cfdb8(0x218)](){var _0x397979=_0x1cfdb8;this[_0x397979(0x21e)]=null,this[_0x397979(0x230)]!==_0x397979(0x1f5)&&this[_0x397979(0x1b7)]();}[_0x1cfdb8(0x1c9)](_0x1eccf4){var _0x2ce401=_0x1cfdb8;if(this[_0x2ce401(0x230)]==='following'&&this['_presenter']===_0x1eccf4[_0x2ce401(0x1fd)][_0x2ce401(0x1f6)]){const _0x34f39b=_0x5d01dc(_0x1eccf4[_0x2ce401(0x1fd)])[_0x2ce401(0x1c1)][_0x2ce401(0x1bb)]()[_0x2ce401(0x1bc)](_0x20ccc4=>_0x20ccc4['id']===_0x10e7cd['id']);if(_0x34f39b){const _0x3e543d=_0x34f39b['params'][_0x2ce401(0x197)],_0x53c143=_0x34f39b[_0x2ce401(0x231)][_0x2ce401(0x1cf)]['id'];setTimeout(()=>{var _0x3b922c=_0x2ce401;this[_0x3b922c(0x214)][_0x3b922c(0x1ce)](_0x24d323['id'],{'unitId':_0x3e543d,'subUnitId':_0x53c143},{'fromCollab':!0x0});});}}}[_0x1cfdb8(0x20c)](){var _0x8b037f=_0x1cfdb8;this[_0x8b037f(0x189)][_0x8b037f(0x1aa)](_0x8b037f(0x1f5));const _0x39e9db=new Map(),_0x5e0b31=this['_commandDisposable']=new _0x4bfb4d();_0x5e0b31[_0x8b037f(0x1f3)](_0x4a5a19(()=>{var _0xdf7013=_0x8b037f;_0x39e9db[_0xdf7013(0x190)](_0x49cd61=>_0x49cd61[_0xdf7013(0x219)]()),_0x39e9db[_0xdf7013(0x1f9)]();})),_0x5e0b31[_0x8b037f(0x1f3)](this[_0x8b037f(0x214)][_0x8b037f(0x1c5)](_0x2b9a6a=>{var _0x9183b1=_0x8b037f,_0xe3702b;if(_0x2b9a6a[_0x9183b1(0x1d0)]!==_0x1a8ce3[_0x9183b1(0x1ef)]||!this[_0x9183b1(0x1f0)]['shouldShareOperation'](_0x2b9a6a['id']))return;const {id:_0x1bfc77}=_0x2b9a6a;let _0x2af0b8;_0x39e9db[_0x9183b1(0x1d9)](_0x1bfc77)?_0x2af0b8=_0x39e9db[_0x9183b1(0x216)](_0x1bfc77):(_0x2af0b8=new _0x396672(),_0x39e9db[_0x9183b1(0x22a)](_0x1bfc77,_0x2af0b8),_0x2af0b8['pipe'](_0x4fcd45((_0xe3702b=this[_0x9183b1(0x1bf)][_0x9183b1(0x1c8)](Pe))!=null?_0xe3702b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xa8648c=>{var _0x2f7443=_0x9183b1;this[_0x2f7443(0x1e1)][_0x2f7443(0x210)]({'eventID':_0x20f152[_0x2f7443(0x204)],'data':{'unitID':this['_unitID'],'operations':{[_0xa8648c['id']]:{'id':_0xa8648c['id'],'params':JSON['stringify'](_0xa8648c[_0x2f7443(0x231)])}}}},this[_0x2f7443(0x202)]);})),_0x2af0b8[_0x9183b1(0x1aa)](_0x2b9a6a);})),this[_0x8b037f(0x1f0)][_0x8b037f(0x19b)](this[_0x8b037f(0x202)])[_0x8b037f(0x190)](_0x54d54a=>this[_0x8b037f(0x1e1)][_0x8b037f(0x210)]({'eventID':_0x20f152[_0x8b037f(0x204)],'data':{'unitID':this[_0x8b037f(0x202)],'operations':{[_0x54d54a['id']]:{'id':_0x54d54a['id'],'params':JSON['stringify'](_0x54d54a[_0x8b037f(0x231)])}}}},this[_0x8b037f(0x202)]));}['_stopPresenting'](){var _0x35885c=_0x1cfdb8,_0x3d4b00;this[_0x35885c(0x189)][_0x35885c(0x1aa)](_0x35885c(0x1f7)),(_0x3d4b00=this[_0x35885c(0x1e8)])==null||_0x3d4b00['dispose'](),this[_0x35885c(0x1e8)]=null;}['_startFollowing'](){var _0x4456e2=_0x1cfdb8,_0x3b8155;(_0x3b8155=this['_commandDisposable'])==null||_0x3b8155[_0x4456e2(0x205)](),this[_0x4456e2(0x189)][_0x4456e2(0x1aa)](_0x4456e2(0x1e6));}[_0x1cfdb8(0x1b7)](){var _0x5c5771=_0x1cfdb8,_0x5a6c76;this[_0x5c5771(0x189)]['next'](_0x5c5771(0x1f7)),(_0x5a6c76=this[_0x5c5771(0x1e8)])==null||_0x5a6c76[_0x5c5771(0x205)](),this[_0x5c5771(0x1e8)]=null;}['_stopFollowing'](){var _0x51c916=_0x1cfdb8,_0x12de5f;this[_0x51c916(0x189)][_0x51c916(0x1aa)](_0x51c916(0x207)),(_0x12de5f=this[_0x51c916(0x1e8)])==null||_0x12de5f[_0x51c916(0x205)]();}['_handleOperation'](_0x5b5ecb){var _0x4be783=_0x1cfdb8;if([_0x4be783(0x1f5),_0x4be783(0x207),_0x4be783(0x1b2)][_0x4be783(0x192)](this[_0x4be783(0x230)])||!_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x232)]||_0x5b5ecb[_0x4be783(0x1fd)]['presenter']===this[_0x4be783(0x1e1)][_0x4be783(0x1b6)]())return;this[_0x4be783(0x230)]===_0x4be783(0x1f7)&&this[_0x4be783(0x22c)]();const _0x2e3c75=_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x19e)];Object[_0x4be783(0x238)](_0x2e3c75)['forEach'](_0x5391f8=>{var _0x23eed0=_0x4be783;this[_0x23eed0(0x214)][_0x23eed0(0x1ce)](_0x5391f8['id'],_0x5391f8[_0x23eed0(0x231)]?JSON[_0x23eed0(0x21a)](_0x5391f8[_0x23eed0(0x231)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x44d3b7=_0x1cfdb8,_0x36ebed;this['_status$'][_0x44d3b7(0x1aa)](_0x44d3b7(0x1b2)),(_0x36ebed=this[_0x44d3b7(0x1e8)])==null||_0x36ebed[_0x44d3b7(0x205)]();}[_0x1cfdb8(0x1fb)](){var _0x475b0a=_0x1cfdb8;this[_0x475b0a(0x189)][_0x475b0a(0x1aa)](_0x475b0a(0x1f7)),this[_0x475b0a(0x221)]();}};C=Z([f(0x2,_0x4ab276),f(0x3,_0x47e04a(L)),f(0x4,_0x1b92ec)],C);function Te(){var _0x59090f=_0x1cfdb8;const _0x978a73=_0x5ac572(I),_0x2db5fb=_0x5ac572(_0x5e8fc8),_0x9ed3cf=_0xb18adb(()=>_0x2db5fb['getCurrentTypeOfUnit$'](_0x44e9a0[_0x59090f(0x19c)]),void 0x0,!0x1,[]),[_0x1969fe,_0x2f608b]=_0x21145a(null),[_0x4c8577,_0x2dce7f]=_0x21145a(h[_0x59090f(0x1ee)]),_0x1a1223=_0x25d6c4(null);return _0x396e80(()=>(_0x9ed3cf&&_0x978a73[_0x59090f(0x23d)](_0x9ed3cf[_0x59090f(0x1e2)]())[_0x59090f(0x215)](_0xff1f95=>{var _0x2cd215=_0x59090f;_0x2f608b(_0xff1f95),_0x1a1223[_0x2cd215(0x18c)]=_0xff1f95[_0x2cd215(0x1c0)][_0x2cd215(0x200)](_0x3240bc=>{_0x2dce7f(_0x3240bc);});}),()=>{var _0xe025f9=_0x59090f,_0x4a1122;(_0x4a1122=_0x1a1223[_0xe025f9(0x18c)])==null||_0x4a1122[_0xe025f9(0x1ca)](),_0x1a1223[_0xe025f9(0x18c)]=null;}),[_0x9ed3cf,_0x978a73]),_0x1969fe?_0x2585db(_0x2c46c3,{'align':_0x59090f(0x229),'disabled':_0x4c8577===h[_0x59090f(0x1fe)],'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':_0x2585db($e,{'status':_0x4c8577,'coordinator':_0x1969fe}),'children':_0x2585db(_0x59090f(0x1dd),{'className':_0x4d9db3(_0x59090f(0x226),{'univer-cursor-not-allowed':_0x4c8577===h[_0x59090f(0x1fe)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c8577!==h[_0x59090f(0x1fe)]}),'type':_0x59090f(0x1dd),'children':_0x2585db(B,{'className':_0x59090f(0x18d)})})}):null;}function $e(_0x5798a1){var _0x55d5a1=_0x1cfdb8;const {status:_0x12b2cd,coordinator:_0x2b3e37}=_0x5798a1;switch(_0x12b2cd){case h[_0x55d5a1(0x1ee)]:return _0x2585db(Fe,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1ec)]:return _0x2585db(He,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x196)]:return _0x2585db(je,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1fe)]:return _0x2585db(Ve,{});case h['PRESENTING']:return _0x2585db(Ue,{'coordinator':_0x2b3e37});default:return null;}}function Fe(_0x237c5a){var _0x3167ee=_0x1cfdb8;const {coordinator:_0x558289}=_0x237c5a;return _0x3c8f57(_0x589951,{'children':[_0x2585db('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3167ee(0x1ae)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x558289[_0x3167ee(0x22b)](),'children':'Start'})]});}function He(_0x405a5d){var _0xc121e8=_0x1cfdb8;const {coordinator:_0x38a75a}=_0x405a5d;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0xc121e8(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc121e8(0x21c)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x38a75a[_0xc121e8(0x20a)](),'children':_0xc121e8(0x1a8)})]});}function je(_0x3714c4){var _0x43d3b6=_0x1cfdb8;const {coordinator:_0x451cdf}=_0x3714c4;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x43d3b6(0x1b9),{'className':_0x43d3b6(0x235),'children':_0x43d3b6(0x1ed)}),_0x2585db(_0xcd60f4,{'variant':_0x43d3b6(0x1ba),'onClick':()=>_0x451cdf[_0x43d3b6(0x220)](),'children':_0x43d3b6(0x193)})]});}function Ue(_0x348aff){var _0x9ba380=_0x1cfdb8;const {coordinator:_0x2dc79c}=_0x348aff;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x9ba380(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x9ba380(0x1af)}),_0x2585db(_0xcd60f4,{'variant':'default','onClick':()=>_0x2dc79c[_0x9ba380(0x194)](),'children':_0x9ba380(0x227)})]});}function Ve(){var _0x22c132=_0x1cfdb8;return _0x2585db(_0x589951,{'children':_0x22c132(0x1da)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x4451df,_0x374f12,_0x25045f,_0x4a89e2)=>{var _0x502f53=_0x1cfdb8;for(var _0x43067b=_0x4a89e2>0x1?void 0x0:_0x4a89e2?Me(_0x374f12,_0x25045f):_0x374f12,_0x55d42c=_0x4451df[_0x502f53(0x21f)]-0x1,_0x508aa7;_0x55d42c>=0x0;_0x55d42c--)(_0x508aa7=_0x4451df[_0x55d42c])&&(_0x43067b=_0x508aa7(_0x43067b)||_0x43067b);return _0x43067b;},$=(_0x39e8fa,_0x3ccddf)=>(_0x2c454f,_0x3233c3)=>_0x3ccddf(_0x2c454f,_0x3233c3,_0x39e8fa);let b=class extends _0x978db0{constructor(_0x570a1d,_0x416b11){var _0x1d2f9b=_0x1cfdb8;super(),this[_0x1d2f9b(0x198)]=_0x570a1d,this[_0x1d2f9b(0x195)]=_0x416b11,this[_0x1d2f9b(0x1c4)]();}[_0x1cfdb8(0x1c4)](){var _0x1122f5=_0x1cfdb8;this['disposeWithMe'](this['_uiPartsService'][_0x1122f5(0x21b)](_0x2b5b91[_0x1122f5(0x1be)],()=>_0xecd535(Te,this[_0x1122f5(0x198)])));}};b=ke([$(0x0,_0x47e04a(_0x12d76d)),$(0x1,_0x53c21b)],b);var Ge=Object['defineProperty'],We=Object[_0x1cfdb8(0x22d)],Ye=(_0x58b4f5,_0x266794,_0x3dd639)=>_0x266794 in _0x58b4f5?Ge(_0x58b4f5,_0x266794,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd639}):_0x58b4f5[_0x266794]=_0x3dd639,Be=(_0x3d2be0,_0x3f4038,_0x106740,_0x5853d8)=>{for(var _0x41ef16=_0x5853d8>0x1?void 0x0:_0x5853d8?We(_0x3f4038,_0x106740):_0x3f4038,_0x5b4e47=_0x3d2be0['length']-0x1,_0x4da8f4;_0x5b4e47>=0x0;_0x5b4e47--)(_0x4da8f4=_0x3d2be0[_0x5b4e47])&&(_0x41ef16=_0x4da8f4(_0x41ef16)||_0x41ef16);return _0x41ef16;},F=(_0x23c66e,_0x33b9cb)=>(_0x4f6307,_0x501b75)=>_0x33b9cb(_0x4f6307,_0x501b75,_0x23c66e),J=(_0x1501a1,_0x4a766a,_0xf697e0)=>Ye(_0x1501a1,typeof _0x4a766a!=_0x1cfdb8(0x1de)?_0x4a766a+'':_0x4a766a,_0xf697e0);const Ze=_0x1cfdb8(0x1cc);let O=class extends _0x2d95be{constructor(_0x54127e=T,_0x393189,_0x5105fe){var _0x158f4b=_0x1cfdb8;super(),this[_0x158f4b(0x1d7)]=_0x54127e,this['_injector']=_0x393189,this['_configService']=_0x5105fe;const {..._0x35dc4c}=_0x4d7b5c({},T,this[_0x158f4b(0x1d7)]);this[_0x158f4b(0x1bf)][_0x158f4b(0x22e)](Oe,_0x35dc4c);}[_0x1cfdb8(0x239)](){var _0x395652=_0x1cfdb8;_0x3c4690(this[_0x395652(0x198)],_0x5c9bf8([[L],[I],[m],[b]],this['_config'][_0x395652(0x1d3)])),_0x223193(this[_0x395652(0x198)],[[m]]);}[_0x1cfdb8(0x1a6)](){var _0x5f4fcb=_0x1cfdb8;_0x223193(this[_0x5f4fcb(0x198)],[[b]]);}};J(O,_0x1cfdb8(0x1d0),_0x44e9a0[_0x1cfdb8(0x1a4)]),J(O,_0x1cfdb8(0x1dc),Ze),O=Be([_0x20f516(_0x5df2c9),F(0x1,_0x47e04a(_0x12d76d)),F(0x2,_0x4ab276)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x5d30d8=_0x3b8a;(function(_0x57bd60,_0x1ebfda){var _0x11832a=_0x3b8a,_0x4dd278=_0x57bd60();while(!![]){try{var _0x2edd34=parseInt(_0x11832a(0x20e))/0x1*(-parseInt(_0x11832a(0x1df))/0x2)+parseInt(_0x11832a(0x1f3))/0x3+parseInt(_0x11832a(0x165))/0x4+parseInt(_0x11832a(0x199))/0x5+-parseInt(_0x11832a(0x1bf))/0x6*(parseInt(_0x11832a(0x212))/0x7)+-parseInt(_0x11832a(0x1bc))/0x8+parseInt(_0x11832a(0x1db))/0x9*(-parseInt(_0x11832a(0x18d))/0xa);if(_0x2edd34===_0x1ebfda)break;else _0x4dd278['push'](_0x4dd278['shift']());}catch(_0x37b49f){_0x4dd278['push'](_0x4dd278['shift']());}}}(_0x3e4e,0xc0ab2));var q=Object[_0x5d30d8(0x1d4)],z=(_0x558bdb,_0x3498a6,_0x1f5e5b)=>_0x3498a6 in _0x558bdb?q(_0x558bdb,_0x3498a6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f5e5b}):_0x558bdb[_0x3498a6]=_0x1f5e5b,d=(_0x25483a,_0x1f71f3,_0x3207a6)=>z(_0x25483a,typeof _0x1f71f3!=_0x5d30d8(0x1bd)?_0x1f71f3+'':_0x1f71f3,_0x3207a6);import{CollaborationSessionService as _0x6c6059,SessionStatus as _0x2cbd97,UniverCollaborationClientPlugin as _0x27f398}from'@univerjs-pro/collaboration-client';import{Disposable as _0x59a070,toDisposable as _0x2344a8,Inject as _0x33eb57,IUniverInstanceService as _0x5b4ee1,Injector as _0x169f90,IConfigService as _0x45a866,ICommandService as _0x50284f,RxDisposable as _0x460f61,UniverInstanceType as _0x250f14,DisposableCollection as _0x978234,CommandType as _0x35a7ba,DependentOn as _0x529563,Plugin as _0x15b4ac,merge as _0x47f619,registerDependencies as _0x37fe12,mergeOverrideWithDependencies as _0x252a4d,touchDependencies as _0x5da897}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x1b50b9,InsertSheetMutation as _0x100213}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x1f39d9,SetScrollOperation as _0x440b3a}from'@univerjs/sheets-ui';import{useDependency as _0x429be2,useObservable as _0x4a06fa,IUIPartsService as _0x29be1c,BuiltInUIPart as _0x4a426f,connectInjector as _0x414305}from'@univerjs/ui';import{jsx as _0x3b0e8d,jsxs as _0x249e8a,Fragment as _0x7d0996}from'react/jsx-runtime';import{Dropdown as _0x218bcf,clsx as _0x273fa1,Button as _0x41cd9b}from'@univerjs/design';import{forwardRef as _0x2f03cc,useRef as _0x214111,createElement as _0x2c6abb,useState as _0x23765a,useEffect as _0xfd18d0}from'react';import{CollaborationEvent as _0x401301,parseProtocolChangeset as _0x1b0094}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x50b4a3,Subject as _0x4f2060}from'rxjs';import{takeUntil as _0x255cad,throttleTime as _0x32b576}from'rxjs/operators';const Oe=_0x5d30d8(0x16e),T={};class L extends _0x59a070{constructor(){var _0x371004=_0x5d30d8;super(...arguments),d(this,_0x371004(0x194),new Set()),d(this,_0x371004(0x1a1),new Set());}[_0x5d30d8(0x1b0)](_0x2b4c79){var _0x727534=_0x5d30d8;return this['_sharedOperations'][_0x727534(0x1ee)](_0x2b4c79),_0x2344a8(()=>this[_0x727534(0x194)]['delete'](_0x2b4c79));}[_0x5d30d8(0x17e)](_0x1010c2){var _0x4eb889=_0x5d30d8;return this[_0x4eb889(0x1a1)]['add'](_0x1010c2),_0x2344a8(()=>this[_0x4eb889(0x1a1)][_0x4eb889(0x1d1)](_0x1010c2));}['shouldShareOperation'](_0x4681b0){var _0x138440=_0x5d30d8;return this[_0x138440(0x194)][_0x138440(0x1ac)](_0x4681b0);}[_0x5d30d8(0x1b6)](_0x8825b1){var _0x233a91=_0x5d30d8;return Array[_0x233a91(0x1ed)](this['_reporters'])['map'](_0xbc5ae8=>_0xbc5ae8(_0x8825b1));}}var Ee=Object[_0x5d30d8(0x172)],we=(_0x475b03,_0x281b72,_0x2a01f9,_0x45794d)=>{for(var _0x43440e=_0x45794d>0x1?void 0x0:_0x45794d?Ee(_0x281b72,_0x2a01f9):_0x281b72,_0x9c4f69=_0x475b03['length']-0x1,_0x15feb6;_0x9c4f69>=0x0;_0x9c4f69--)(_0x15feb6=_0x475b03[_0x9c4f69])&&(_0x43440e=_0x15feb6(_0x43440e)||_0x43440e);return _0x43440e;},Ne=(_0x31c350,_0x10fec3)=>(_0x15892d,_0x66b99e)=>_0x10fec3(_0x15892d,_0x66b99e,_0x31c350);let m=class extends _0x59a070{constructor(_0x18fd32){var _0x44c2aa=_0x5d30d8;super(),this['_liveShareService']=_0x18fd32,this[_0x44c2aa(0x1d3)]();}[_0x5d30d8(0x1d3)](){var _0x42fe6d=_0x5d30d8;[_0x1f39d9['id'],_0x440b3a['id'],_0x1b50b9['id']][_0x42fe6d(0x171)](_0x20cdce=>{var _0x54459b=_0x42fe6d;this[_0x54459b(0x1d0)](this[_0x54459b(0x1da)][_0x54459b(0x1b0)](_0x20cdce));});}};m=we([Ne(0x0,_0x33eb57(L))],m);var c=function(){var _0x12d159=_0x5d30d8;return c=Object[_0x12d159(0x18b)]||function(_0x331eee){var _0x1f4d4a=_0x12d159;for(var _0x391a8e,_0xc3d0db=0x1,_0x44abb6=arguments[_0x1f4d4a(0x167)];_0xc3d0db<_0x44abb6;_0xc3d0db++){_0x391a8e=arguments[_0xc3d0db];for(var _0x15cf57 in _0x391a8e)Object[_0x1f4d4a(0x20a)]['hasOwnProperty'][_0x1f4d4a(0x1e3)](_0x391a8e,_0x15cf57)&&(_0x331eee[_0x15cf57]=_0x391a8e[_0x15cf57]);}return _0x331eee;},c[_0x12d159(0x19e)](this,arguments);},Ce=function(_0x2925b0,_0x3ad4b1){var _0x47fddd=_0x5d30d8,_0x1f04d9={};for(var _0x3bda36 in _0x2925b0)Object[_0x47fddd(0x20a)]['hasOwnProperty']['call'](_0x2925b0,_0x3bda36)&&_0x3ad4b1[_0x47fddd(0x170)](_0x3bda36)<0x0&&(_0x1f04d9[_0x3bda36]=_0x2925b0[_0x3bda36]);if(_0x2925b0!=null&&typeof Object[_0x47fddd(0x1b9)]==_0x47fddd(0x1b1)){for(var _0x225d47=0x0,_0x3bda36=Object[_0x47fddd(0x1b9)](_0x2925b0);_0x225d47<_0x3bda36['length'];_0x225d47++)_0x3ad4b1[_0x47fddd(0x170)](_0x3bda36[_0x225d47])<0x0&&Object['prototype'][_0x47fddd(0x1f2)][_0x47fddd(0x1e3)](_0x2925b0,_0x3bda36[_0x225d47])&&(_0x1f04d9[_0x3bda36[_0x225d47]]=_0x2925b0[_0x3bda36[_0x225d47]]);}return _0x1f04d9;},W=_0x2f03cc(function(_0x4ef43c,_0xef375d){var _0x55d5e2=_0x5d30d8,_0x2aebe1=_0x4ef43c['icon'],_0x1299e2=_0x4ef43c['id'],_0x1c6353=_0x4ef43c[_0x55d5e2(0x1dc)],_0x17c8e3=_0x4ef43c[_0x55d5e2(0x1be)],_0x4e51c1=Ce(_0x4ef43c,[_0x55d5e2(0x1ce),'id',_0x55d5e2(0x1dc),_0x55d5e2(0x1be)]),_0x2d4cab=_0x55d5e2(0x192)[_0x55d5e2(0x1a0)](_0x1299e2,'\x20')[_0x55d5e2(0x1a0)](_0x1c6353||'')['trim'](),_0x39f812=_0x214111('_'[_0x55d5e2(0x1a0)](Le()));return Y(_0x2aebe1,''[_0x55d5e2(0x1a0)](_0x1299e2),{'defIds':_0x2aebe1[_0x55d5e2(0x1b2)],'idSuffix':_0x39f812[_0x55d5e2(0x210)]},c({'ref':_0xef375d,'className':_0x2d4cab},_0x4e51c1),_0x17c8e3);});function Y(_0xb84b8f,_0x54f4bf,_0x95d5b0,_0x30332e,_0x57e219){var _0x521aa2=_0x5d30d8;return _0x2c6abb(_0xb84b8f[_0x521aa2(0x18c)],c(c({'key':_0x54f4bf},De(_0xb84b8f,_0x95d5b0,_0x57e219)),_0x30332e),(xe(_0xb84b8f,_0x95d5b0)[_0x521aa2(0x1de)]||[])[_0x521aa2(0x1cc)](function(_0x276837,_0x417f3e){var _0x1deb06=_0x521aa2;return Y(_0x276837,''[_0x1deb06(0x1a0)](_0x54f4bf,'-')[_0x1deb06(0x1a0)](_0xb84b8f['tag'],'-')[_0x1deb06(0x1a0)](_0x417f3e),_0x95d5b0,void 0x0,_0x57e219);}));}function De(_0x5bfa21,_0x2d7d99,_0x3617e8){var _0x178e0f=_0x5d30d8,_0x3b1429=c({},_0x5bfa21[_0x178e0f(0x1a7)]);_0x3617e8!=null&&_0x3617e8['colorChannel1']&&_0x3b1429[_0x178e0f(0x185)]===_0x178e0f(0x1d8)&&(_0x3b1429[_0x178e0f(0x185)]=_0x3617e8[_0x178e0f(0x1d8)]),_0x5bfa21['tag']===_0x178e0f(0x174)&&_0x3b1429['id']&&(_0x3b1429['id']=_0x3b1429['id']+_0x2d7d99[_0x178e0f(0x1e7)]),Object[_0x178e0f(0x1e9)](_0x3b1429)[_0x178e0f(0x171)](function(_0x4c8e9b){var _0x62c307=_0x178e0f,_0x10f998=_0x4c8e9b[0x0],_0x1aee14=_0x4c8e9b[0x1];_0x10f998===_0x62c307(0x174)&&typeof _0x1aee14==_0x62c307(0x188)&&(_0x3b1429[_0x10f998]=_0x1aee14[_0x62c307(0x1aa)](/url\(#(.*)\)/,_0x62c307(0x195)['concat'](_0x2d7d99[_0x62c307(0x1e7)],')')));});var _0x547824=_0x2d7d99[_0x178e0f(0x1b2)];return!_0x547824||_0x547824[_0x178e0f(0x167)]===0x0||(_0x5bfa21[_0x178e0f(0x18c)]==='use'&&_0x3b1429[_0x178e0f(0x187)]&&(_0x3b1429['xlink:href']=_0x3b1429[_0x178e0f(0x187)]+_0x2d7d99[_0x178e0f(0x1e7)]),Object[_0x178e0f(0x1e9)](_0x3b1429)[_0x178e0f(0x171)](function(_0x35a205){var _0x488151=_0x178e0f,_0x50d96e=_0x35a205[0x0],_0x45ad59=_0x35a205[0x1];typeof _0x45ad59=='string'&&(_0x3b1429[_0x50d96e]=_0x45ad59[_0x488151(0x1aa)](/url\(#(.*)\)/,_0x488151(0x195)[_0x488151(0x1a0)](_0x2d7d99[_0x488151(0x1e7)],')')));})),_0x3b1429;}function xe(_0x4d2853,_0x4e07ca){var _0x4382a8=_0x5d30d8,_0xba8bc0,_0x4f561=_0x4e07ca[_0x4382a8(0x1b2)];return!_0x4f561||_0x4f561['length']===0x0?_0x4d2853:_0x4d2853[_0x4382a8(0x18c)]===_0x4382a8(0x1b7)&&(!((_0xba8bc0=_0x4d2853[_0x4382a8(0x1de)])===null||_0xba8bc0===void 0x0)&&_0xba8bc0[_0x4382a8(0x167)])?c(c({},_0x4d2853),{'children':_0x4d2853[_0x4382a8(0x1de)]['map'](function(_0xa0343){var _0x43901c=_0x4382a8;return typeof _0xa0343[_0x43901c(0x1a7)]['id']==_0x43901c(0x188)&&_0x4f561&&_0x4f561[_0x43901c(0x213)](_0xa0343['attrs']['id'])?c(c({},_0xa0343),{'attrs':c(c({},_0xa0343['attrs']),{'id':_0xa0343[_0x43901c(0x1a7)]['id']+_0x4e07ca['idSuffix']})}):_0xa0343;})}):_0x4d2853;}function Le(){var _0x1d9f53=_0x5d30d8;return Math[_0x1d9f53(0x1f0)]()[_0x1d9f53(0x182)](0x24)[_0x1d9f53(0x1c3)](0x2,0x8);}W[_0x5d30d8(0x1a6)]=_0x5d30d8(0x196);var ye={'tag':_0x5d30d8(0x18a),'attrs':{'xmlns':_0x5d30d8(0x1ae),'fill':'none','viewBox':_0x5d30d8(0x202),'width':_0x5d30d8(0x1a5),'height':_0x5d30d8(0x1a5)},'children':[{'tag':_0x5d30d8(0x17c),'attrs':{'fill':_0x5d30d8(0x1dd),'d':_0x5d30d8(0x206)}},{'tag':_0x5d30d8(0x17c),'attrs':{'fill':_0x5d30d8(0x1dd),'d':_0x5d30d8(0x176),'fillRule':_0x5d30d8(0x20b),'clipRule':_0x5d30d8(0x20b)}}]},B=_0x2f03cc(function(_0x184172,_0x58b4ec){var _0x3cb009=_0x5d30d8;return _0x2c6abb(W,Object['assign']({},_0x184172,{'id':_0x3cb009(0x1cb),'ref':_0x58b4ec,'icon':ye}));});B[_0x5d30d8(0x1a6)]=_0x5d30d8(0x183);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x1765ef,_0x49ca4e,_0x4a8028,_0x3fec58)=>{var _0x5e1319=_0x5d30d8;for(var _0x1084b8=_0x3fec58>0x1?void 0x0:_0x3fec58?Re(_0x49ca4e,_0x4a8028):_0x49ca4e,_0x1e3042=_0x1765ef[_0x5e1319(0x167)]-0x1,_0x31a724;_0x1e3042>=0x0;_0x1e3042--)(_0x31a724=_0x1765ef[_0x1e3042])&&(_0x1084b8=_0x31a724(_0x1084b8)||_0x1084b8);return _0x1084b8;},f=(_0x44f7bd,_0x324804)=>(_0x36f8c6,_0x4ab314)=>_0x324804(_0x36f8c6,_0x4ab314,_0x44f7bd);let I=class extends _0x460f61{constructor(_0x236482,_0x4a9f64,_0x14aa65){var _0x7a8332=_0x5d30d8;super(),d(this,_0x7a8332(0x1e8),new Map()),(this[_0x7a8332(0x200)]=_0x236482,this[_0x7a8332(0x1ec)]=_0x4a9f64,this[_0x7a8332(0x168)]=_0x14aa65,this[_0x7a8332(0x1d3)]());}async[_0x5d30d8(0x184)](_0x19b418){var _0x4a1a05=_0x5d30d8;return this['_entities'][_0x4a1a05(0x1ac)](_0x19b418)||await this[_0x4a1a05(0x19b)](_0x19b418),this[_0x4a1a05(0x1e8)][_0x4a1a05(0x193)](_0x19b418);}['_init'](){var _0x3baf91=_0x5d30d8;this[_0x3baf91(0x200)][_0x3baf91(0x21a)](_0x250f14['UNIVER_SHEET'])[_0x3baf91(0x1a2)](_0x255cad(this[_0x3baf91(0x190)]))[_0x3baf91(0x1e2)](async _0x2b0a0e=>{var _0x27fa60=_0x3baf91;const _0x17032f=_0x2b0a0e[_0x27fa60(0x1c6)]();this['_entities'][_0x27fa60(0x1ac)](_0x17032f)||this['_startLiveShareCoordinator'](_0x17032f);}),this['_univerInstanceService'][_0x3baf91(0x1fc)](_0x250f14[_0x3baf91(0x216)])[_0x3baf91(0x1a2)](_0x255cad(this[_0x3baf91(0x190)]))[_0x3baf91(0x1e2)](_0x5abaff=>{var _0x56d444=_0x3baf91;const _0x5f3764=_0x5abaff[_0x56d444(0x1c6)](),_0x28ed90=this[_0x56d444(0x1e8)][_0x56d444(0x193)](_0x5f3764);_0x28ed90==null||_0x28ed90[_0x56d444(0x1cd)]();});}async[_0x5d30d8(0x19b)](_0xe9874c){var _0x24cf82=_0x5d30d8;const _0x2316df=await this[_0x24cf82(0x168)][_0x24cf82(0x211)](_0xe9874c),_0x589aee=this['_injector'][_0x24cf82(0x207)](C,_0xe9874c,_0x2316df);return _0x589aee['init'](),this[_0x24cf82(0x1e8)][_0x24cf82(0x1fd)](_0xe9874c,_0x589aee),_0x589aee;}};I=Z([f(0x0,_0x5b4ee1),f(0x1,_0x33eb57(_0x169f90)),f(0x2,_0x33eb57(_0x6c6059))],I);var h=(_0xdfe599=>(_0xdfe599[_0x5d30d8(0x21c)]=_0x5d30d8(0x198),_0xdfe599[_0x5d30d8(0x1e0)]=_0x5d30d8(0x201),_0xdfe599[_0x5d30d8(0x1cf)]='following',_0xdfe599[_0x5d30d8(0x20f)]=_0x5d30d8(0x1fb),_0xdfe599[_0x5d30d8(0x178)]='presenting',_0xdfe599))(h||{});const Pe=_0x5d30d8(0x181),Ae=0xc8;let C=class extends _0x460f61{constructor(_0x8d7d14,_0x12baa6,_0x129556,_0x3cf421,_0x35abdd){var _0x797300=_0x5d30d8;super(),d(this,'_status$',new _0x50b4a3(_0x797300(0x201))),d(this,_0x797300(0x1d7),this[_0x797300(0x16f)][_0x797300(0x1e6)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x797300(0x164),null),(this[_0x797300(0x191)]=_0x8d7d14,this[_0x797300(0x179)]=_0x12baa6,this[_0x797300(0x215)]=_0x129556,this['_liveShareService']=_0x3cf421,this['_commandService']=_0x35abdd);}get['_status'](){var _0x4ec7ca=_0x5d30d8;return this['_status$'][_0x4ec7ca(0x19f)]();}[_0x5d30d8(0x1cd)](){var _0x1ef786=_0x5d30d8,_0x383993;(_0x383993=this['_commandDisposable'])==null||_0x383993[_0x1ef786(0x1cd)](),this[_0x1ef786(0x16f)][_0x1ef786(0x205)]('idle'),this['_status$'][_0x1ef786(0x1f9)]();}[_0x5d30d8(0x1c8)](){var _0x30c7b1=_0x5d30d8;this[_0x30c7b1(0x1d3)]||(this[_0x30c7b1(0x1d3)]=!0x0,this[_0x30c7b1(0x179)][_0x30c7b1(0x186)][_0x30c7b1(0x1a2)](_0x255cad(this[_0x30c7b1(0x190)]))[_0x30c7b1(0x1e2)](_0x5c8b43=>{var _0x557295=_0x30c7b1;switch(_0x5c8b43){case _0x2cbd97[_0x557295(0x21c)]:this[_0x557295(0x17a)]();break;case _0x2cbd97[_0x557295(0x1eb)]:this['_handleOnline']();break;}}),this[_0x30c7b1(0x179)][_0x30c7b1(0x21d)][_0x30c7b1(0x1a2)](_0x255cad(this[_0x30c7b1(0x190)]))[_0x30c7b1(0x1e2)](_0x18459d=>{var _0x4a0f5b=_0x30c7b1;const {eventID:_0x5e0460}=_0x18459d;switch(_0x5e0460){case _0x401301[_0x4a0f5b(0x169)]:this[_0x4a0f5b(0x177)](_0x18459d);break;case _0x401301[_0x4a0f5b(0x21b)]:this[_0x4a0f5b(0x20d)](_0x18459d);break;case _0x401301['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x401301[_0x4a0f5b(0x1c1)]:this[_0x4a0f5b(0x1d9)](_0x18459d);break;}}));}['tryStartPresenting'](){var _0x4b08f2=_0x5d30d8;this[_0x4b08f2(0x179)][_0x4b08f2(0x1b3)]({'eventID':_0x401301[_0x4b08f2(0x1f4)],'data':{'unitID':this[_0x4b08f2(0x191)],'userID':this[_0x4b08f2(0x179)]['getMemberID']()}},this[_0x4b08f2(0x191)]);}[_0x5d30d8(0x209)](){var _0x2daf96=_0x5d30d8;this[_0x2daf96(0x1f8)]===_0x2daf96(0x1c5)&&(this[_0x2daf96(0x16f)][_0x2daf96(0x205)](_0x2daf96(0x201)),this[_0x2daf96(0x179)][_0x2daf96(0x1b3)]({'eventID':_0x401301['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2daf96(0x191)]}},this[_0x2daf96(0x191)]));}[_0x5d30d8(0x17d)](){var _0x377b20=_0x5d30d8;this['_status']===_0x377b20(0x1fb)&&(this['_status$']['next'](_0x377b20(0x1c0)),this[_0x377b20(0x217)]());}[_0x5d30d8(0x16d)](){var _0x563f1b=_0x5d30d8;this[_0x563f1b(0x1f8)]===_0x563f1b(0x1c0)&&this[_0x563f1b(0x1b8)]();}['_handleNewHost'](_0xa5731){var _0x2d0638=_0x5d30d8;const {presenter:_0x56e978}=_0xa5731[_0x2d0638(0x197)],_0x26ca36=this['_collabSession'][_0x2d0638(0x1ad)]();this['_presenter']=_0x56e978,_0x56e978===_0x26ca36?(this[_0x2d0638(0x1b8)](),this[_0x2d0638(0x219)]()):this[_0x2d0638(0x1f8)]!=='not-following'&&(this[_0x2d0638(0x1af)](),this[_0x2d0638(0x217)]());}[_0x5d30d8(0x1ab)](){var _0x159320=_0x5d30d8;const _0x90d8c8={'eventID':_0x401301[_0x159320(0x1a9)]};this[_0x159320(0x179)][_0x159320(0x1b3)](_0x90d8c8,this['_unitID']);}[_0x5d30d8(0x1f7)](){var _0x3ef275=_0x5d30d8;this[_0x3ef275(0x164)]=null,this['_status']!==_0x3ef275(0x1c5)&&this[_0x3ef275(0x18e)]();}[_0x5d30d8(0x1d9)](_0x539628){var _0x3fd6c8=_0x5d30d8;if(this[_0x3fd6c8(0x1f8)]===_0x3fd6c8(0x1c0)&&this['_presenter']===_0x539628[_0x3fd6c8(0x197)][_0x3fd6c8(0x1c7)]){const _0x553864=_0x1b0094(_0x539628['data'])[_0x3fd6c8(0x16c)][_0x3fd6c8(0x17b)]()[_0x3fd6c8(0x19a)](_0x5a3e57=>_0x5a3e57['id']===_0x100213['id']);if(_0x553864){const _0x51397d=_0x553864[_0x3fd6c8(0x1d5)][_0x3fd6c8(0x1fa)],_0x4cdcb2=_0x553864['params']['sheet']['id'];setTimeout(()=>{var _0x5ba0da=_0x3fd6c8;this[_0x5ba0da(0x1d6)][_0x5ba0da(0x20c)](_0x1b50b9['id'],{'unitId':_0x51397d,'subUnitId':_0x4cdcb2},{'fromCollab':!0x0});});}}}[_0x5d30d8(0x219)](){var _0x8f7d1d=_0x5d30d8;this['_status$'][_0x8f7d1d(0x205)](_0x8f7d1d(0x1c5));const _0x4c702b=new Map(),_0x1abd79=this['_commandDisposable']=new _0x978234();_0x1abd79[_0x8f7d1d(0x1ee)](_0x2344a8(()=>{var _0x46047c=_0x8f7d1d;_0x4c702b[_0x46047c(0x171)](_0x5d0482=>_0x5d0482[_0x46047c(0x1f9)]()),_0x4c702b[_0x46047c(0x16b)]();})),_0x1abd79[_0x8f7d1d(0x1ee)](this[_0x8f7d1d(0x1d6)][_0x8f7d1d(0x218)](_0x2ec366=>{var _0x35591b=_0x8f7d1d,_0x9860f9;if(_0x2ec366['type']!==_0x35a7ba[_0x35591b(0x1ef)]||!this['_liveShareService'][_0x35591b(0x1a3)](_0x2ec366['id']))return;const {id:_0x431ad0}=_0x2ec366;let _0x488a04;_0x4c702b[_0x35591b(0x1ac)](_0x431ad0)?_0x488a04=_0x4c702b[_0x35591b(0x193)](_0x431ad0):(_0x488a04=new _0x4f2060(),_0x4c702b[_0x35591b(0x1fd)](_0x431ad0,_0x488a04),_0x488a04[_0x35591b(0x1a2)](_0x32b576((_0x9860f9=this[_0x35591b(0x215)]['getConfig'](Pe))!=null?_0x9860f9:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x28c85f=>{var _0x4dd0cc=_0x35591b;this[_0x4dd0cc(0x179)][_0x4dd0cc(0x1b3)]({'eventID':_0x401301['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4dd0cc(0x191)],'operations':{[_0x28c85f['id']]:{'id':_0x28c85f['id'],'params':JSON[_0x4dd0cc(0x214)](_0x28c85f[_0x4dd0cc(0x1d5)])}}}},this['_unitID']);})),_0x488a04[_0x35591b(0x205)](_0x2ec366);})),this[_0x8f7d1d(0x1da)][_0x8f7d1d(0x1b6)](this['_unitID'])[_0x8f7d1d(0x171)](_0x382ed5=>this[_0x8f7d1d(0x179)]['send']({'eventID':_0x401301[_0x8f7d1d(0x21b)],'data':{'unitID':this['_unitID'],'operations':{[_0x382ed5['id']]:{'id':_0x382ed5['id'],'params':JSON['stringify'](_0x382ed5['params'])}}}},this[_0x8f7d1d(0x191)]));}['_stopPresenting'](){var _0x4d7a77=_0x5d30d8,_0x1d572e;this['_status$'][_0x4d7a77(0x205)]('idle'),(_0x1d572e=this[_0x4d7a77(0x19d)])==null||_0x1d572e['dispose'](),this[_0x4d7a77(0x19d)]=null;}[_0x5d30d8(0x217)](){var _0x1cf544=_0x5d30d8,_0x41c904;(_0x41c904=this[_0x1cf544(0x19d)])==null||_0x41c904[_0x1cf544(0x1cd)](),this[_0x1cf544(0x16f)]['next']('following');}[_0x5d30d8(0x18e)](){var _0x1915ec=_0x5d30d8,_0x3c5a7f;this[_0x1915ec(0x16f)]['next']('idle'),(_0x3c5a7f=this[_0x1915ec(0x19d)])==null||_0x3c5a7f[_0x1915ec(0x1cd)](),this[_0x1915ec(0x19d)]=null;}[_0x5d30d8(0x1b8)](){var _0x10c7da=_0x5d30d8,_0x272c0e;this[_0x10c7da(0x16f)][_0x10c7da(0x205)]('not-following'),(_0x272c0e=this[_0x10c7da(0x19d)])==null||_0x272c0e[_0x10c7da(0x1cd)]();}[_0x5d30d8(0x20d)](_0x4af5ad){var _0x27ac78=_0x5d30d8;if(['presenting',_0x27ac78(0x1fb),'offline']['includes'](this[_0x27ac78(0x1f8)])||!_0x4af5ad[_0x27ac78(0x197)][_0x27ac78(0x1e1)]||_0x4af5ad[_0x27ac78(0x197)][_0x27ac78(0x1e1)]===this[_0x27ac78(0x179)][_0x27ac78(0x1ad)]())return;this[_0x27ac78(0x1f8)]===_0x27ac78(0x201)&&this[_0x27ac78(0x217)]();const _0x3069c2=_0x4af5ad[_0x27ac78(0x197)][_0x27ac78(0x1fe)];Object[_0x27ac78(0x1e4)](_0x3069c2)[_0x27ac78(0x171)](_0x402451=>{var _0x2c1e74=_0x27ac78;this['_commandService'][_0x2c1e74(0x20c)](_0x402451['id'],_0x402451[_0x2c1e74(0x1d5)]?JSON['parse'](_0x402451['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x43997c=_0x5d30d8,_0x38e056;this[_0x43997c(0x16f)][_0x43997c(0x205)]('offline'),(_0x38e056=this[_0x43997c(0x19d)])==null||_0x38e056[_0x43997c(0x1cd)]();}[_0x5d30d8(0x1ea)](){var _0x3b84fa=_0x5d30d8;this[_0x3b84fa(0x16f)][_0x3b84fa(0x205)]('idle'),this[_0x3b84fa(0x1ab)]();}};C=Z([f(0x2,_0x45a866),f(0x3,_0x33eb57(L)),f(0x4,_0x50284f)],C);function Te(){var _0x5d2683=_0x5d30d8;const _0x49696a=_0x429be2(I),_0x10a5fd=_0x429be2(_0x5b4ee1),_0x33df62=_0x4a06fa(()=>_0x10a5fd[_0x5d2683(0x16a)](_0x250f14['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x57168f,_0x3747c8]=_0x23765a(null),[_0x5155f8,_0x19b400]=_0x23765a(h[_0x5d2683(0x1e0)]),_0x429d06=_0x214111(null);return _0xfd18d0(()=>(_0x33df62&&_0x49696a['getLiveShareCoordinator'](_0x33df62['getUnitId']())[_0x5d2683(0x1f6)](_0x18fe18=>{var _0x3b7cc2=_0x5d2683;_0x3747c8(_0x18fe18),_0x429d06[_0x3b7cc2(0x210)]=_0x18fe18[_0x3b7cc2(0x1d7)][_0x3b7cc2(0x1e2)](_0x3ec5ce=>{_0x19b400(_0x3ec5ce);});}),()=>{var _0x30dc78=_0x5d2683,_0x5be723;(_0x5be723=_0x429d06[_0x30dc78(0x210)])==null||_0x5be723['unsubscribe'](),_0x429d06[_0x30dc78(0x210)]=null;}),[_0x33df62,_0x49696a]),_0x57168f?_0x3b0e8d(_0x218bcf,{'align':'end','disabled':_0x5155f8===h[_0x5d2683(0x21c)],'className':_0x5d2683(0x1a4),'overlay':_0x3b0e8d($e,{'status':_0x5155f8,'coordinator':_0x57168f}),'children':_0x3b0e8d(_0x5d2683(0x1ff),{'className':_0x273fa1(_0x5d2683(0x1b5),{'univer-cursor-not-allowed':_0x5155f8===h[_0x5d2683(0x21c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5155f8!==h[_0x5d2683(0x21c)]}),'type':'button','children':_0x3b0e8d(B,{'className':_0x5d2683(0x203)})})}):null;}function $e(_0x2eb5b7){var _0x59589d=_0x5d30d8;const {status:_0x1d3120,coordinator:_0x5e57b6}=_0x2eb5b7;switch(_0x1d3120){case h[_0x59589d(0x1e0)]:return _0x3b0e8d(Fe,{'coordinator':_0x5e57b6});case h[_0x59589d(0x1cf)]:return _0x3b0e8d(He,{'coordinator':_0x5e57b6});case h[_0x59589d(0x20f)]:return _0x3b0e8d(je,{'coordinator':_0x5e57b6});case h[_0x59589d(0x21c)]:return _0x3b0e8d(Ve,{});case h[_0x59589d(0x178)]:return _0x3b0e8d(Ue,{'coordinator':_0x5e57b6});default:return null;}}function Fe(_0x324c04){var _0x2f0939=_0x5d30d8;const {coordinator:_0x62f4e3}=_0x324c04;return _0x249e8a(_0x7d0996,{'children':[_0x3b0e8d('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x3b0e8d(_0x41cd9b,{'onClick':()=>_0x62f4e3[_0x2f0939(0x1c9)](),'children':_0x2f0939(0x1b4)})]});}function He(_0x5be363){var _0x3c5099=_0x5d30d8;const {coordinator:_0x1b264e}=_0x5be363;return _0x249e8a(_0x7d0996,{'children':[_0x3b0e8d('div',{'className':_0x3c5099(0x1a8),'children':_0x3c5099(0x1bb)}),_0x3b0e8d(_0x41cd9b,{'onClick':()=>_0x1b264e[_0x3c5099(0x16d)](),'children':'Stop\x20following'})]});}function je(_0x5ec610){var _0x3bd297=_0x5d30d8;const {coordinator:_0x2ebaf2}=_0x5ec610;return _0x249e8a(_0x7d0996,{'children':[_0x3b0e8d(_0x3bd297(0x19c),{'className':_0x3bd297(0x1a8),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3b0e8d(_0x41cd9b,{'variant':'text','onClick':()=>_0x2ebaf2[_0x3bd297(0x17d)](),'children':_0x3bd297(0x1c2)})]});}function _0x3b8a(_0x33cf18,_0x206ab7){var _0x3e4e66=_0x3e4e();return _0x3b8a=function(_0x3b8a81,_0x7021e1){_0x3b8a81=_0x3b8a81-0x164;var _0x3f4020=_0x3e4e66[_0x3b8a81];return _0x3f4020;},_0x3b8a(_0x33cf18,_0x206ab7);}function Ue(_0xe40475){var _0x214668=_0x5d30d8;const {coordinator:_0x5d883c}=_0xe40475;return _0x249e8a(_0x7d0996,{'children':[_0x3b0e8d(_0x214668(0x19c),{'className':_0x214668(0x1a8),'children':_0x214668(0x180)}),_0x3b0e8d(_0x41cd9b,{'variant':_0x214668(0x1f1),'onClick':()=>_0x5d883c[_0x214668(0x209)](),'children':_0x214668(0x173)})]});}function Ve(){return _0x3b0e8d(_0x7d0996,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x5d30d8(0x172)],ke=(_0x2f83f9,_0x3b3de0,_0x24637f,_0xbf4c91)=>{for(var _0x46605b=_0xbf4c91>0x1?void 0x0:_0xbf4c91?Me(_0x3b3de0,_0x24637f):_0x3b3de0,_0x4f0c33=_0x2f83f9['length']-0x1,_0x286ad4;_0x4f0c33>=0x0;_0x4f0c33--)(_0x286ad4=_0x2f83f9[_0x4f0c33])&&(_0x46605b=_0x286ad4(_0x46605b)||_0x46605b);return _0x46605b;},$=(_0x556f93,_0x11c561)=>(_0x3a07d1,_0x5e86c1)=>_0x11c561(_0x3a07d1,_0x5e86c1,_0x556f93);let b=class extends _0x59a070{constructor(_0x282301,_0x1a7c19){var _0x1d661d=_0x5d30d8;super(),this[_0x1d661d(0x1ec)]=_0x282301,this['_uiPartsService']=_0x1a7c19,this[_0x1d661d(0x1f5)]();}[_0x5d30d8(0x1f5)](){var _0x3c32fc=_0x5d30d8;this[_0x3c32fc(0x1d0)](this[_0x3c32fc(0x18f)][_0x3c32fc(0x208)](_0x4a426f[_0x3c32fc(0x1c4)],()=>_0x414305(Te,this['_injector'])));}};b=ke([$(0x0,_0x33eb57(_0x169f90)),$(0x1,_0x29be1c)],b);var Ge=Object[_0x5d30d8(0x1d4)],We=Object[_0x5d30d8(0x172)],Ye=(_0xef673b,_0x215f64,_0x15218a)=>_0x215f64 in _0xef673b?Ge(_0xef673b,_0x215f64,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15218a}):_0xef673b[_0x215f64]=_0x15218a,Be=(_0x2cb7f1,_0x2115f6,_0x335250,_0x284b2c)=>{var _0xf123b9=_0x5d30d8;for(var _0x596dfe=_0x284b2c>0x1?void 0x0:_0x284b2c?We(_0x2115f6,_0x335250):_0x2115f6,_0x1228c7=_0x2cb7f1[_0xf123b9(0x167)]-0x1,_0x288cb5;_0x1228c7>=0x0;_0x1228c7--)(_0x288cb5=_0x2cb7f1[_0x1228c7])&&(_0x596dfe=_0x288cb5(_0x596dfe)||_0x596dfe);return _0x596dfe;},F=(_0x5be2e7,_0x3e36f1)=>(_0x24e157,_0x4f5e76)=>_0x3e36f1(_0x24e157,_0x4f5e76,_0x5be2e7),J=(_0x222674,_0x2ca222,_0x2228dd)=>Ye(_0x222674,typeof _0x2ca222!=_0x5d30d8(0x1bd)?_0x2ca222+'':_0x2ca222,_0x2228dd);function _0x3e4e(){var _0x2c22b1=['ONLINE','_injector','from','add','OPERATION','random','default','propertyIsEnumerable','2683953mpyoxi','LIVESHARE_REQUEST_HOST','_mountLiveShare','then','_handleTerminate','_status','complete','unitId','not-following','getTypeOfUnitDisposed$','set','operations','button','_univerInstanceService','idle','0\x200\x2017\x2017','univer-size-4','type','next','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','createInstance','registerComponent','stopPresenting','prototype','evenodd','executeCommand','_handleOperation','30499cXRTax','NOT_FOLLOWING','current','requireSession','9214982ImWEJi','includes','stringify','_configService','UNIVER_SHEET','_startFollowing','onCommandExecuted','_startPresenting','getTypeOfUnitAdded$','LIVESHARE_OPERATION','OFFLINE','event$','_presenter','4253416XdkfRK','pluginName','length','_collabSessionService','LIVESHARE_NEW_HOST','getCurrentTypeOfUnit$','clear','mutations','stopFollowing','live-share.config','_status$','indexOf','forEach','getOwnPropertyDescriptor','Stop\x20presenting','mask','override','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','_handleNewHost','PRESENTING','_collabSession','_handleOffline','reverse','path','startFollowing','registerInitialStateReporter','setConfig','You\x27re\x20presenting\x20the\x20document','SAME_OPERATION_SHARE_INTERVAL','toString','LiveShareIcon','getLiveShareCoordinator','fill','sessionStatus$','xlink:href','string','onStarting','svg','assign','tag','40huFwab','_beIdle','_uiPartsService','dispose$','_unitID','univerjs-icon\x20univerjs-icon-','get','_sharedOperations','url(#$1','UniverIcon','data','offline','7680705oELkVg','find','_startLiveShareCoordinator','div','_commandDisposable','apply','getValue','concat','_reporters','pipe','shouldShareOperation','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','1em','displayName','attrs','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_FETCH_OPERATIONS','replace','_fetchOperations','has','getMemberID','http://www.w3.org/2000/svg','_stopPresenting','registerSharedOperation','function','defIds','send','Start','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getInitialStates','defs','_stopFollowing','getOwnPropertySymbols','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20following\x20the\x20presenter','4662496cpUwOv','symbol','extend','6tLhKyo','following','NEW_CHANGESETS','Start\x20following','substring','HEADER_MENU','presenting','getUnitId','memberID','init','tryStartPresenting','_config','live-share-icon','map','dispose','icon','FOLLOWING','disposeWithMe','delete','onRendered','_init','defineProperty','params','_commandService','status$','colorChannel1','_handleNewChangeSets','_liveShareService','577701WfjnRz','className','currentColor','children','36KfTLRK','IDLE','presenter','subscribe','call','values','UNIVER_UNKNOWN','asObservable','idSuffix','_entities','entries','_handleOnline'];_0x3e4e=function(){return _0x2c22b1;};return _0x3e4e();}const Ze=_0x5d30d8(0x1ba);let O=class extends _0x15b4ac{constructor(_0x39808c=T,_0x54db8a,_0x5ec2d6){var _0x33b84b=_0x5d30d8;super(),this['_config']=_0x39808c,this[_0x33b84b(0x1ec)]=_0x54db8a,this[_0x33b84b(0x215)]=_0x5ec2d6;const {..._0x1552a0}=_0x47f619({},T,this['_config']);this[_0x33b84b(0x215)][_0x33b84b(0x17f)](Oe,_0x1552a0);}[_0x5d30d8(0x189)](){var _0x416954=_0x5d30d8;_0x37fe12(this[_0x416954(0x1ec)],_0x252a4d([[L],[I],[m],[b]],this[_0x416954(0x1ca)][_0x416954(0x175)])),_0x5da897(this[_0x416954(0x1ec)],[[m]]);}[_0x5d30d8(0x1d2)](){var _0x32d027=_0x5d30d8;_0x5da897(this[_0x32d027(0x1ec)],[[b]]);}};J(O,_0x5d30d8(0x204),_0x250f14[_0x5d30d8(0x1e5)]),J(O,_0x5d30d8(0x166),Ze),O=Be([_0x529563(_0x27f398),F(0x1,_0x33eb57(_0x169f90)),F(0x2,_0x45a866)],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 _0x1cfdb8=_0x38aa;(function(_0x2254fe,_0x547e30){var _0x622d75=_0x38aa,_0x5ed9d9=_0x2254fe();while(!![]){try{var _0x4ed5ea=-parseInt(_0x622d75(0x1b8))/0x1+-parseInt(_0x622d75(0x1cb))/0x2*(parseInt(_0x622d75(0x188))/0x3)+parseInt(_0x622d75(0x1eb))/0x4*(parseInt(_0x622d75(0x18b))/0x5)+-parseInt(_0x622d75(0x1d6))/0x6*(-parseInt(_0x622d75(0x211))/0x7)+-parseInt(_0x622d75(0x1ad))/0x8+parseInt(_0x622d75(0x23a))/0x9*(-parseInt(_0x622d75(0x213))/0xa)+parseInt(_0x622d75(0x1ab))/0xb;if(_0x4ed5ea===_0x547e30)break;else _0x5ed9d9['push'](_0x5ed9d9['shift']());}catch(_0x5d0107){_0x5ed9d9['push'](_0x5ed9d9['shift']());}}}(_0x212b,0xd4481));var q=Object[_0x1cfdb8(0x23f)],z=(_0xd16ef2,_0xac2f13,_0x35282d)=>_0xac2f13 in _0xd16ef2?q(_0xd16ef2,_0xac2f13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35282d}):_0xd16ef2[_0xac2f13]=_0x35282d,d=(_0x2c04bb,_0x395c32,_0x10d572)=>z(_0x2c04bb,typeof _0x395c32!='symbol'?_0x395c32+'':_0x395c32,_0x10d572);import{CollaborationSessionService as _0x1aeeb2,SessionStatus as _0x4c2fe1,UniverCollaborationClientPlugin as _0x5df2c9}from'@univerjs-pro/collaboration-client';function _0x38aa(_0x4e70b4,_0x13c80e){var _0x212b62=_0x212b();return _0x38aa=function(_0x38aaca,_0x5d5abe){_0x38aaca=_0x38aaca-0x188;var _0x540e9f=_0x212b62[_0x38aaca];return _0x540e9f;},_0x38aa(_0x4e70b4,_0x13c80e);}import{Disposable as _0x978db0,toDisposable as _0x4a5a19,Inject as _0x47e04a,IUniverInstanceService as _0x5e8fc8,Injector as _0x12d76d,IConfigService as _0x4ab276,ICommandService as _0x1b92ec,RxDisposable as _0x34f499,UniverInstanceType as _0x44e9a0,DisposableCollection as _0x4bfb4d,CommandType as _0x1a8ce3,DependentOn as _0x20f516,Plugin as _0x2d95be,merge as _0x4d7b5c,registerDependencies as _0x3c4690,mergeOverrideWithDependencies as _0x5c9bf8,touchDependencies as _0x223193}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x24d323,InsertSheetMutation as _0x10e7cd}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x20f706,SetScrollOperation as _0xf4f43e}from'@univerjs/sheets-ui';import{useDependency as _0x5ac572,useObservable as _0xb18adb,IUIPartsService as _0x53c21b,BuiltInUIPart as _0x2b5b91,connectInjector as _0xecd535}from'@univerjs/ui';import{jsx as _0x2585db,jsxs as _0x3c8f57,Fragment as _0x589951}from'react/jsx-runtime';import{Dropdown as _0x2c46c3,clsx as _0x4d9db3,Button as _0xcd60f4}from'@univerjs/design';import{forwardRef as _0x59bfc9,useRef as _0x25d6c4,createElement as _0x45c30f,useState as _0x21145a,useEffect as _0x396e80}from'react';function _0x212b(){var _0x4f0b63=['pluginName','button','symbol','prototype','hasOwnProperty','_collabSession','getUnitId','path','replace','xlink:href','following','_collabSessionService','_commandDisposable','createInstance','none','4tLABLK','FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','IDLE','OPERATION','_liveShareService','PRESENTING','defIds','add','children','presenting','memberID','idle','idSuffix','clear','random','_handleOnline','sessionStatus$','data','OFFLINE','dispose$','subscribe','assign','_unitID','_entities','LIVESHARE_OPERATION','dispose','url(#$1','not-following','tag','colorChannel1','stopFollowing','_handleNewHost','_startPresenting','from','map','_reporters','send','7nckDEy','fill','1589860DNLwNd','_commandService','then','get','getTypeOfUnitAdded$','_handleTerminate','complete','parse','registerComponent','You\x27re\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','_presenter','length','startFollowing','_fetchOperations','svg','http://www.w3.org/2000/svg','LiveShareIcon','trim','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Stop\x20presenting','string','end','set','tryStartPresenting','_startFollowing','getOwnPropertyDescriptor','setConfig','requireSession','_status','params','presenter','attrs','event$','univer-mb-3\x20univer-w-full\x20univer-text-sm','indexOf','getTypeOfUnitDisposed$','values','onStarting','36AbGmYL','0\x200\x2017\x2017','_stopFollowing','getLiveShareCoordinator','extend','defineProperty','1em','2922879GxkwKF','_status$','call','1491340FuOpUJ','current','univer-size-4','UniverIcon','apply','forEach','displayName','includes','Start\x20following','stopPresenting','_uiPartsService','NOT_FOLLOWING','unitId','_injector','getValue','currentColor','getInitialStates','UNIVER_SHEET','ONLINE','operations','init','live-share-icon','registerInitialStateReporter','icon','_sharedOperations','UNIVER_UNKNOWN','_init','onRendered','entries','Stop\x20following','LIVESHARE_TERMINATE','next','43451034ZEDDhj','evenodd','4180944SQwlZt','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','pipe','mask','offline','propertyIsEnumerable','getOwnPropertySymbols','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','_beIdle','1490030ftfqNq','div','text','reverse','find','live-share.config','HEADER_MENU','_configService','status$','mutations','defs','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','_mountLiveShare','onCommandExecuted','_univerInstanceService','asObservable','getConfig','_handleNewChangeSets','unsubscribe','2NSYMkD','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','executeCommand','sheet','type','delete','className','override','univerjs-icon\x20univerjs-icon-','registerSharedOperation','1464168OYzTwh','_config','concat','has','You\x27are\x20offline.','substring'];_0x212b=function(){return _0x4f0b63;};return _0x212b();}import{CollaborationEvent as _0x20f152,parseProtocolChangeset as _0x5d01dc}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x232912,Subject as _0x396672}from'rxjs';import{takeUntil as _0x53db6a,throttleTime as _0x4fcd45}from'rxjs/operators';const Oe=_0x1cfdb8(0x1bd),T={};class L extends _0x978db0{constructor(){var _0x263b05=_0x1cfdb8;super(...arguments),d(this,_0x263b05(0x1a3),new Set()),d(this,'_reporters',new Set());}[_0x1cfdb8(0x1d5)](_0x1a5673){var _0x26d507=_0x1cfdb8;return this[_0x26d507(0x1a3)][_0x26d507(0x1f3)](_0x1a5673),_0x4a5a19(()=>this['_sharedOperations'][_0x26d507(0x1d1)](_0x1a5673));}[_0x1cfdb8(0x1a1)](_0x222b63){var _0x272a54=_0x1cfdb8;return this[_0x272a54(0x20f)][_0x272a54(0x1f3)](_0x222b63),_0x4a5a19(()=>this[_0x272a54(0x20f)]['delete'](_0x222b63));}['shouldShareOperation'](_0x3dae90){var _0x1b2f10=_0x1cfdb8;return this[_0x1b2f10(0x1a3)][_0x1b2f10(0x1d9)](_0x3dae90);}['getInitialStates'](_0x9af903){var _0x3af8af=_0x1cfdb8;return Array[_0x3af8af(0x20d)](this[_0x3af8af(0x20f)])[_0x3af8af(0x20e)](_0xe0eae5=>_0xe0eae5(_0x9af903));}}var Ee=Object[_0x1cfdb8(0x22d)],we=(_0x4e4613,_0x447ae7,_0x385b4f,_0x413bfa)=>{var _0x438e2f=_0x1cfdb8;for(var _0x19eb74=_0x413bfa>0x1?void 0x0:_0x413bfa?Ee(_0x447ae7,_0x385b4f):_0x447ae7,_0x2ca1d4=_0x4e4613[_0x438e2f(0x21f)]-0x1,_0x33589d;_0x2ca1d4>=0x0;_0x2ca1d4--)(_0x33589d=_0x4e4613[_0x2ca1d4])&&(_0x19eb74=_0x33589d(_0x19eb74)||_0x19eb74);return _0x19eb74;},Ne=(_0x5300ab,_0x364dc7)=>(_0x195b5e,_0x1987f9)=>_0x364dc7(_0x195b5e,_0x1987f9,_0x5300ab);let m=class extends _0x978db0{constructor(_0x2f763e){var _0x5c2773=_0x1cfdb8;super(),this[_0x5c2773(0x1f0)]=_0x2f763e,this[_0x5c2773(0x1a5)]();}[_0x1cfdb8(0x1a5)](){var _0x565342=_0x1cfdb8;[_0x20f706['id'],_0xf4f43e['id'],_0x24d323['id']][_0x565342(0x190)](_0x5b7203=>{var _0x4fc2ac=_0x565342;this['disposeWithMe'](this['_liveShareService'][_0x4fc2ac(0x1d5)](_0x5b7203));});}};m=we([Ne(0x0,_0x47e04a(L))],m);var c=function(){var _0x10ec6a=_0x1cfdb8;return c=Object[_0x10ec6a(0x201)]||function(_0x39cc35){var _0x3edc73=_0x10ec6a;for(var _0x4d6feb,_0x4ccd36=0x1,_0x59fa55=arguments[_0x3edc73(0x21f)];_0x4ccd36<_0x59fa55;_0x4ccd36++){_0x4d6feb=arguments[_0x4ccd36];for(var _0x137211 in _0x4d6feb)Object['prototype'][_0x3edc73(0x1e0)]['call'](_0x4d6feb,_0x137211)&&(_0x39cc35[_0x137211]=_0x4d6feb[_0x137211]);}return _0x39cc35;},c[_0x10ec6a(0x18f)](this,arguments);},Ce=function(_0xb5c193,_0x5a3b62){var _0x4a0668=_0x1cfdb8,_0xec7201={};for(var _0x4a5760 in _0xb5c193)Object[_0x4a0668(0x1df)][_0x4a0668(0x1e0)]['call'](_0xb5c193,_0x4a5760)&&_0x5a3b62[_0x4a0668(0x236)](_0x4a5760)<0x0&&(_0xec7201[_0x4a5760]=_0xb5c193[_0x4a5760]);if(_0xb5c193!=null&&typeof Object[_0x4a0668(0x1b4)]=='function'){for(var _0x33c41e=0x0,_0x4a5760=Object[_0x4a0668(0x1b4)](_0xb5c193);_0x33c41e<_0x4a5760[_0x4a0668(0x21f)];_0x33c41e++)_0x5a3b62[_0x4a0668(0x236)](_0x4a5760[_0x33c41e])<0x0&&Object[_0x4a0668(0x1df)][_0x4a0668(0x1b3)][_0x4a0668(0x18a)](_0xb5c193,_0x4a5760[_0x33c41e])&&(_0xec7201[_0x4a5760[_0x33c41e]]=_0xb5c193[_0x4a5760[_0x33c41e]]);}return _0xec7201;},W=_0x59bfc9(function(_0x4efc7e,_0xb0d19f){var _0x4baa06=_0x1cfdb8,_0x55f209=_0x4efc7e['icon'],_0xe569d2=_0x4efc7e['id'],_0x1c58fb=_0x4efc7e[_0x4baa06(0x1d2)],_0x3b30b2=_0x4efc7e[_0x4baa06(0x23e)],_0x143fc8=Ce(_0x4efc7e,[_0x4baa06(0x1a2),'id',_0x4baa06(0x1d2),_0x4baa06(0x23e)]),_0x1b8bcd=_0x4baa06(0x1d4)['concat'](_0xe569d2,'\x20')[_0x4baa06(0x1d8)](_0x1c58fb||'')[_0x4baa06(0x225)](),_0x4d6fc4=_0x25d6c4('_'[_0x4baa06(0x1d8)](Le()));return Y(_0x55f209,''[_0x4baa06(0x1d8)](_0xe569d2),{'defIds':_0x55f209[_0x4baa06(0x1f2)],'idSuffix':_0x4d6fc4[_0x4baa06(0x18c)]},c({'ref':_0xb0d19f,'className':_0x1b8bcd},_0x143fc8),_0x3b30b2);});function Y(_0x43f131,_0x1b90f7,_0x27d717,_0x21d043,_0x48f311){var _0x68908d=_0x1cfdb8;return _0x45c30f(_0x43f131[_0x68908d(0x208)],c(c({'key':_0x1b90f7},De(_0x43f131,_0x27d717,_0x48f311)),_0x21d043),(xe(_0x43f131,_0x27d717)[_0x68908d(0x1f4)]||[])[_0x68908d(0x20e)](function(_0x406890,_0x2dd08d){var _0x564cd0=_0x68908d;return Y(_0x406890,''['concat'](_0x1b90f7,'-')[_0x564cd0(0x1d8)](_0x43f131[_0x564cd0(0x208)],'-')[_0x564cd0(0x1d8)](_0x2dd08d),_0x27d717,void 0x0,_0x48f311);}));}function De(_0x82f61f,_0x2aed74,_0x1c1e9e){var _0x16ade7=_0x1cfdb8,_0x4ad31f=c({},_0x82f61f['attrs']);_0x1c1e9e!=null&&_0x1c1e9e[_0x16ade7(0x209)]&&_0x4ad31f['fill']==='colorChannel1'&&(_0x4ad31f[_0x16ade7(0x212)]=_0x1c1e9e[_0x16ade7(0x209)]),_0x82f61f['tag']==='mask'&&_0x4ad31f['id']&&(_0x4ad31f['id']=_0x4ad31f['id']+_0x2aed74[_0x16ade7(0x1f8)]),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x2395ae){var _0x116c4e=_0x16ade7,_0x2fd12d=_0x2395ae[0x0],_0x1e4eb7=_0x2395ae[0x1];_0x2fd12d===_0x116c4e(0x1b1)&&typeof _0x1e4eb7==_0x116c4e(0x228)&&(_0x4ad31f[_0x2fd12d]=_0x1e4eb7[_0x116c4e(0x1e4)](/url\(#(.*)\)/,_0x116c4e(0x206)[_0x116c4e(0x1d8)](_0x2aed74[_0x116c4e(0x1f8)],')')));});var _0x47b494=_0x2aed74[_0x16ade7(0x1f2)];return!_0x47b494||_0x47b494['length']===0x0||(_0x82f61f[_0x16ade7(0x208)]==='use'&&_0x4ad31f['xlink:href']&&(_0x4ad31f[_0x16ade7(0x1e5)]=_0x4ad31f[_0x16ade7(0x1e5)]+_0x2aed74['idSuffix']),Object[_0x16ade7(0x1a7)](_0x4ad31f)[_0x16ade7(0x190)](function(_0x3e714d){var _0x5e6db8=_0x16ade7,_0x2da8cd=_0x3e714d[0x0],_0x189137=_0x3e714d[0x1];typeof _0x189137==_0x5e6db8(0x228)&&(_0x4ad31f[_0x2da8cd]=_0x189137[_0x5e6db8(0x1e4)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2aed74[_0x5e6db8(0x1f8)],')')));})),_0x4ad31f;}function xe(_0x5dae6e,_0x410d83){var _0x13f102=_0x1cfdb8,_0x2f5174,_0x1313df=_0x410d83[_0x13f102(0x1f2)];return!_0x1313df||_0x1313df[_0x13f102(0x21f)]===0x0?_0x5dae6e:_0x5dae6e[_0x13f102(0x208)]===_0x13f102(0x1c2)&&(!((_0x2f5174=_0x5dae6e[_0x13f102(0x1f4)])===null||_0x2f5174===void 0x0)&&_0x2f5174[_0x13f102(0x21f)])?c(c({},_0x5dae6e),{'children':_0x5dae6e[_0x13f102(0x1f4)][_0x13f102(0x20e)](function(_0x1d6f5e){var _0x187fc2=_0x13f102;return typeof _0x1d6f5e[_0x187fc2(0x233)]['id']==_0x187fc2(0x228)&&_0x1313df&&_0x1313df[_0x187fc2(0x192)](_0x1d6f5e['attrs']['id'])?c(c({},_0x1d6f5e),{'attrs':c(c({},_0x1d6f5e['attrs']),{'id':_0x1d6f5e[_0x187fc2(0x233)]['id']+_0x410d83['idSuffix']})}):_0x1d6f5e;})}):_0x5dae6e;}function Le(){var _0x28a028=_0x1cfdb8;return Math[_0x28a028(0x1fa)]()['toString'](0x24)[_0x28a028(0x1db)](0x2,0x8);}W[_0x1cfdb8(0x191)]=_0x1cfdb8(0x18e);var ye={'tag':_0x1cfdb8(0x222),'attrs':{'xmlns':_0x1cfdb8(0x223),'fill':_0x1cfdb8(0x1ea),'viewBox':_0x1cfdb8(0x23b),'width':_0x1cfdb8(0x240),'height':_0x1cfdb8(0x240)},'children':[{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':'currentColor','d':_0x1cfdb8(0x1c3)}},{'tag':_0x1cfdb8(0x1e3),'attrs':{'fill':_0x1cfdb8(0x19a),'d':_0x1cfdb8(0x1b5),'fillRule':_0x1cfdb8(0x1ac),'clipRule':_0x1cfdb8(0x1ac)}}]},B=_0x59bfc9(function(_0x43d921,_0x42532d){var _0x4476b5=_0x1cfdb8;return _0x45c30f(W,Object[_0x4476b5(0x201)]({},_0x43d921,{'id':_0x4476b5(0x1a0),'ref':_0x42532d,'icon':ye}));});B[_0x1cfdb8(0x191)]=_0x1cfdb8(0x224);var Re=Object[_0x1cfdb8(0x22d)],Z=(_0x4e9e22,_0x8190cc,_0x5ba304,_0x2c4611)=>{var _0x2d8fb1=_0x1cfdb8;for(var _0x98efbb=_0x2c4611>0x1?void 0x0:_0x2c4611?Re(_0x8190cc,_0x5ba304):_0x8190cc,_0x4c592=_0x4e9e22[_0x2d8fb1(0x21f)]-0x1,_0x221019;_0x4c592>=0x0;_0x4c592--)(_0x221019=_0x4e9e22[_0x4c592])&&(_0x98efbb=_0x221019(_0x98efbb)||_0x98efbb);return _0x98efbb;},f=(_0x27cafd,_0x2ed14a)=>(_0x9920ce,_0x342b25)=>_0x2ed14a(_0x9920ce,_0x342b25,_0x27cafd);let I=class extends _0x34f499{constructor(_0x585cc7,_0x286658,_0x438dd1){var _0xea64f7=_0x1cfdb8;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x585cc7,this[_0xea64f7(0x198)]=_0x286658,this[_0xea64f7(0x1e7)]=_0x438dd1,this['_init']());}async[_0x1cfdb8(0x23d)](_0x3275a4){var _0x12c256=_0x1cfdb8;return this[_0x12c256(0x203)][_0x12c256(0x1d9)](_0x3275a4)||await this[_0x12c256(0x1cd)](_0x3275a4),this[_0x12c256(0x203)][_0x12c256(0x216)](_0x3275a4);}['_init'](){var _0x2739e5=_0x1cfdb8;this[_0x2739e5(0x1c6)][_0x2739e5(0x217)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))[_0x2739e5(0x200)](async _0xb14a38=>{var _0x5e159f=_0x2739e5;const _0x34c79=_0xb14a38[_0x5e159f(0x1e2)]();this[_0x5e159f(0x203)]['has'](_0x34c79)||this['_startLiveShareCoordinator'](_0x34c79);}),this[_0x2739e5(0x1c6)][_0x2739e5(0x237)](_0x44e9a0[_0x2739e5(0x19c)])[_0x2739e5(0x1b0)](_0x53db6a(this[_0x2739e5(0x1ff)]))['subscribe'](_0x453124=>{var _0x22a0ae=_0x2739e5;const _0x1f9d48=_0x453124['getUnitId'](),_0x26fd07=this[_0x22a0ae(0x203)][_0x22a0ae(0x216)](_0x1f9d48);_0x26fd07==null||_0x26fd07[_0x22a0ae(0x205)]();});}async[_0x1cfdb8(0x1cd)](_0x9169fa){var _0x3d461a=_0x1cfdb8;const _0x59e13c=await this['_collabSessionService'][_0x3d461a(0x22f)](_0x9169fa),_0x59207e=this[_0x3d461a(0x198)][_0x3d461a(0x1e9)](C,_0x9169fa,_0x59e13c);return _0x59207e[_0x3d461a(0x19f)](),this['_entities'][_0x3d461a(0x22a)](_0x9169fa,_0x59207e),_0x59207e;}};I=Z([f(0x0,_0x5e8fc8),f(0x1,_0x47e04a(_0x12d76d)),f(0x2,_0x47e04a(_0x1aeeb2))],I);var h=(_0x1d348c=>(_0x1d348c[_0x1cfdb8(0x1fe)]=_0x1cfdb8(0x1b2),_0x1d348c[_0x1cfdb8(0x1ee)]=_0x1cfdb8(0x1f7),_0x1d348c[_0x1cfdb8(0x1ec)]=_0x1cfdb8(0x1e6),_0x1d348c[_0x1cfdb8(0x196)]='not-following',_0x1d348c[_0x1cfdb8(0x1f1)]='presenting',_0x1d348c))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x34f499{constructor(_0x986b6,_0x19809d,_0x1e70f5,_0xcb00ee,_0x193bc4){var _0x3b438f=_0x1cfdb8;super(),d(this,_0x3b438f(0x189),new _0x232912('idle')),d(this,_0x3b438f(0x1c0),this[_0x3b438f(0x189)][_0x3b438f(0x1c7)]()),d(this,'_init',!0x1),d(this,_0x3b438f(0x1e8),null),d(this,'_presenter',null),(this['_unitID']=_0x986b6,this[_0x3b438f(0x1e1)]=_0x19809d,this[_0x3b438f(0x1bf)]=_0x1e70f5,this[_0x3b438f(0x1f0)]=_0xcb00ee,this['_commandService']=_0x193bc4);}get['_status'](){var _0x3cf0ff=_0x1cfdb8;return this[_0x3cf0ff(0x189)][_0x3cf0ff(0x199)]();}[_0x1cfdb8(0x205)](){var _0x1935bd=_0x1cfdb8,_0x7d10a9;(_0x7d10a9=this[_0x1935bd(0x1e8)])==null||_0x7d10a9[_0x1935bd(0x205)](),this[_0x1935bd(0x189)]['next']('idle'),this[_0x1935bd(0x189)][_0x1935bd(0x219)]();}[_0x1cfdb8(0x19f)](){var _0x3c2ea5=_0x1cfdb8;this['_init']||(this[_0x3c2ea5(0x1a5)]=!0x0,this['_collabSession'][_0x3c2ea5(0x1fc)]['pipe'](_0x53db6a(this[_0x3c2ea5(0x1ff)]))['subscribe'](_0x49b50d=>{var _0x42f9e1=_0x3c2ea5;switch(_0x49b50d){case _0x4c2fe1[_0x42f9e1(0x1fe)]:this['_handleOffline']();break;case _0x4c2fe1[_0x42f9e1(0x19d)]:this[_0x42f9e1(0x1fb)]();break;}}),this['_collabSession'][_0x3c2ea5(0x234)][_0x3c2ea5(0x1b0)](_0x53db6a(this['dispose$']))[_0x3c2ea5(0x200)](_0x569ba7=>{var _0x3c9176=_0x3c2ea5;const {eventID:_0x10980b}=_0x569ba7;switch(_0x10980b){case _0x20f152['LIVESHARE_NEW_HOST']:this[_0x3c9176(0x20b)](_0x569ba7);break;case _0x20f152[_0x3c9176(0x204)]:this['_handleOperation'](_0x569ba7);break;case _0x20f152[_0x3c9176(0x1a9)]:this['_handleTerminate']();break;case _0x20f152['NEW_CHANGESETS']:this[_0x3c9176(0x1c9)](_0x569ba7);break;}}));}['tryStartPresenting'](){var _0x31d8fa=_0x1cfdb8;this[_0x31d8fa(0x1e1)][_0x31d8fa(0x210)]({'eventID':_0x20f152[_0x31d8fa(0x21d)],'data':{'unitID':this[_0x31d8fa(0x202)],'userID':this[_0x31d8fa(0x1e1)]['getMemberID']()}},this[_0x31d8fa(0x202)]);}['stopPresenting'](){var _0x591157=_0x1cfdb8;this[_0x591157(0x230)]===_0x591157(0x1f5)&&(this[_0x591157(0x189)]['next'](_0x591157(0x1f7)),this[_0x591157(0x1e1)][_0x591157(0x210)]({'eventID':_0x20f152[_0x591157(0x1a9)],'data':{'unitID':this[_0x591157(0x202)]}},this[_0x591157(0x202)]));}[_0x1cfdb8(0x220)](){var _0x529865=_0x1cfdb8;this[_0x529865(0x230)]==='not-following'&&(this[_0x529865(0x189)][_0x529865(0x1aa)](_0x529865(0x1e6)),this[_0x529865(0x22c)]());}[_0x1cfdb8(0x20a)](){var _0x511b34=_0x1cfdb8;this[_0x511b34(0x230)]===_0x511b34(0x1e6)&&this[_0x511b34(0x23c)]();}['_handleNewHost'](_0x9cf68f){var _0x524346=_0x1cfdb8;const {presenter:_0x5d0808}=_0x9cf68f[_0x524346(0x1fd)],_0x42d715=this[_0x524346(0x1e1)]['getMemberID']();this['_presenter']=_0x5d0808,_0x5d0808===_0x42d715?(this['_stopFollowing'](),this[_0x524346(0x20c)]()):this['_status']!==_0x524346(0x207)&&(this['_stopPresenting'](),this[_0x524346(0x22c)]());}[_0x1cfdb8(0x221)](){var _0x175615=_0x1cfdb8;const _0x544c40={'eventID':_0x20f152['LIVESHARE_FETCH_OPERATIONS']};this[_0x175615(0x1e1)][_0x175615(0x210)](_0x544c40,this[_0x175615(0x202)]);}[_0x1cfdb8(0x218)](){var _0x397979=_0x1cfdb8;this[_0x397979(0x21e)]=null,this[_0x397979(0x230)]!==_0x397979(0x1f5)&&this[_0x397979(0x1b7)]();}[_0x1cfdb8(0x1c9)](_0x1eccf4){var _0x2ce401=_0x1cfdb8;if(this[_0x2ce401(0x230)]==='following'&&this['_presenter']===_0x1eccf4[_0x2ce401(0x1fd)][_0x2ce401(0x1f6)]){const _0x34f39b=_0x5d01dc(_0x1eccf4[_0x2ce401(0x1fd)])[_0x2ce401(0x1c1)][_0x2ce401(0x1bb)]()[_0x2ce401(0x1bc)](_0x20ccc4=>_0x20ccc4['id']===_0x10e7cd['id']);if(_0x34f39b){const _0x3e543d=_0x34f39b['params'][_0x2ce401(0x197)],_0x53c143=_0x34f39b[_0x2ce401(0x231)][_0x2ce401(0x1cf)]['id'];setTimeout(()=>{var _0x3b922c=_0x2ce401;this[_0x3b922c(0x214)][_0x3b922c(0x1ce)](_0x24d323['id'],{'unitId':_0x3e543d,'subUnitId':_0x53c143},{'fromCollab':!0x0});});}}}[_0x1cfdb8(0x20c)](){var _0x8b037f=_0x1cfdb8;this[_0x8b037f(0x189)][_0x8b037f(0x1aa)](_0x8b037f(0x1f5));const _0x39e9db=new Map(),_0x5e0b31=this['_commandDisposable']=new _0x4bfb4d();_0x5e0b31[_0x8b037f(0x1f3)](_0x4a5a19(()=>{var _0xdf7013=_0x8b037f;_0x39e9db[_0xdf7013(0x190)](_0x49cd61=>_0x49cd61[_0xdf7013(0x219)]()),_0x39e9db[_0xdf7013(0x1f9)]();})),_0x5e0b31[_0x8b037f(0x1f3)](this[_0x8b037f(0x214)][_0x8b037f(0x1c5)](_0x2b9a6a=>{var _0x9183b1=_0x8b037f,_0xe3702b;if(_0x2b9a6a[_0x9183b1(0x1d0)]!==_0x1a8ce3[_0x9183b1(0x1ef)]||!this[_0x9183b1(0x1f0)]['shouldShareOperation'](_0x2b9a6a['id']))return;const {id:_0x1bfc77}=_0x2b9a6a;let _0x2af0b8;_0x39e9db[_0x9183b1(0x1d9)](_0x1bfc77)?_0x2af0b8=_0x39e9db[_0x9183b1(0x216)](_0x1bfc77):(_0x2af0b8=new _0x396672(),_0x39e9db[_0x9183b1(0x22a)](_0x1bfc77,_0x2af0b8),_0x2af0b8['pipe'](_0x4fcd45((_0xe3702b=this[_0x9183b1(0x1bf)][_0x9183b1(0x1c8)](Pe))!=null?_0xe3702b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xa8648c=>{var _0x2f7443=_0x9183b1;this[_0x2f7443(0x1e1)][_0x2f7443(0x210)]({'eventID':_0x20f152[_0x2f7443(0x204)],'data':{'unitID':this['_unitID'],'operations':{[_0xa8648c['id']]:{'id':_0xa8648c['id'],'params':JSON['stringify'](_0xa8648c[_0x2f7443(0x231)])}}}},this[_0x2f7443(0x202)]);})),_0x2af0b8[_0x9183b1(0x1aa)](_0x2b9a6a);})),this[_0x8b037f(0x1f0)][_0x8b037f(0x19b)](this[_0x8b037f(0x202)])[_0x8b037f(0x190)](_0x54d54a=>this[_0x8b037f(0x1e1)][_0x8b037f(0x210)]({'eventID':_0x20f152[_0x8b037f(0x204)],'data':{'unitID':this[_0x8b037f(0x202)],'operations':{[_0x54d54a['id']]:{'id':_0x54d54a['id'],'params':JSON['stringify'](_0x54d54a[_0x8b037f(0x231)])}}}},this[_0x8b037f(0x202)]));}['_stopPresenting'](){var _0x35885c=_0x1cfdb8,_0x3d4b00;this[_0x35885c(0x189)][_0x35885c(0x1aa)](_0x35885c(0x1f7)),(_0x3d4b00=this[_0x35885c(0x1e8)])==null||_0x3d4b00['dispose'](),this[_0x35885c(0x1e8)]=null;}['_startFollowing'](){var _0x4456e2=_0x1cfdb8,_0x3b8155;(_0x3b8155=this['_commandDisposable'])==null||_0x3b8155[_0x4456e2(0x205)](),this[_0x4456e2(0x189)][_0x4456e2(0x1aa)](_0x4456e2(0x1e6));}[_0x1cfdb8(0x1b7)](){var _0x5c5771=_0x1cfdb8,_0x5a6c76;this[_0x5c5771(0x189)]['next'](_0x5c5771(0x1f7)),(_0x5a6c76=this[_0x5c5771(0x1e8)])==null||_0x5a6c76[_0x5c5771(0x205)](),this[_0x5c5771(0x1e8)]=null;}['_stopFollowing'](){var _0x51c916=_0x1cfdb8,_0x12de5f;this[_0x51c916(0x189)][_0x51c916(0x1aa)](_0x51c916(0x207)),(_0x12de5f=this[_0x51c916(0x1e8)])==null||_0x12de5f[_0x51c916(0x205)]();}['_handleOperation'](_0x5b5ecb){var _0x4be783=_0x1cfdb8;if([_0x4be783(0x1f5),_0x4be783(0x207),_0x4be783(0x1b2)][_0x4be783(0x192)](this[_0x4be783(0x230)])||!_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x232)]||_0x5b5ecb[_0x4be783(0x1fd)]['presenter']===this[_0x4be783(0x1e1)][_0x4be783(0x1b6)]())return;this[_0x4be783(0x230)]===_0x4be783(0x1f7)&&this[_0x4be783(0x22c)]();const _0x2e3c75=_0x5b5ecb[_0x4be783(0x1fd)][_0x4be783(0x19e)];Object[_0x4be783(0x238)](_0x2e3c75)['forEach'](_0x5391f8=>{var _0x23eed0=_0x4be783;this[_0x23eed0(0x214)][_0x23eed0(0x1ce)](_0x5391f8['id'],_0x5391f8[_0x23eed0(0x231)]?JSON[_0x23eed0(0x21a)](_0x5391f8[_0x23eed0(0x231)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x44d3b7=_0x1cfdb8,_0x36ebed;this['_status$'][_0x44d3b7(0x1aa)](_0x44d3b7(0x1b2)),(_0x36ebed=this[_0x44d3b7(0x1e8)])==null||_0x36ebed[_0x44d3b7(0x205)]();}[_0x1cfdb8(0x1fb)](){var _0x475b0a=_0x1cfdb8;this[_0x475b0a(0x189)][_0x475b0a(0x1aa)](_0x475b0a(0x1f7)),this[_0x475b0a(0x221)]();}};C=Z([f(0x2,_0x4ab276),f(0x3,_0x47e04a(L)),f(0x4,_0x1b92ec)],C);function Te(){var _0x59090f=_0x1cfdb8;const _0x978a73=_0x5ac572(I),_0x2db5fb=_0x5ac572(_0x5e8fc8),_0x9ed3cf=_0xb18adb(()=>_0x2db5fb['getCurrentTypeOfUnit$'](_0x44e9a0[_0x59090f(0x19c)]),void 0x0,!0x1,[]),[_0x1969fe,_0x2f608b]=_0x21145a(null),[_0x4c8577,_0x2dce7f]=_0x21145a(h[_0x59090f(0x1ee)]),_0x1a1223=_0x25d6c4(null);return _0x396e80(()=>(_0x9ed3cf&&_0x978a73[_0x59090f(0x23d)](_0x9ed3cf[_0x59090f(0x1e2)]())[_0x59090f(0x215)](_0xff1f95=>{var _0x2cd215=_0x59090f;_0x2f608b(_0xff1f95),_0x1a1223[_0x2cd215(0x18c)]=_0xff1f95[_0x2cd215(0x1c0)][_0x2cd215(0x200)](_0x3240bc=>{_0x2dce7f(_0x3240bc);});}),()=>{var _0xe025f9=_0x59090f,_0x4a1122;(_0x4a1122=_0x1a1223[_0xe025f9(0x18c)])==null||_0x4a1122[_0xe025f9(0x1ca)](),_0x1a1223[_0xe025f9(0x18c)]=null;}),[_0x9ed3cf,_0x978a73]),_0x1969fe?_0x2585db(_0x2c46c3,{'align':_0x59090f(0x229),'disabled':_0x4c8577===h[_0x59090f(0x1fe)],'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':_0x2585db($e,{'status':_0x4c8577,'coordinator':_0x1969fe}),'children':_0x2585db(_0x59090f(0x1dd),{'className':_0x4d9db3(_0x59090f(0x226),{'univer-cursor-not-allowed':_0x4c8577===h[_0x59090f(0x1fe)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c8577!==h[_0x59090f(0x1fe)]}),'type':_0x59090f(0x1dd),'children':_0x2585db(B,{'className':_0x59090f(0x18d)})})}):null;}function $e(_0x5798a1){var _0x55d5a1=_0x1cfdb8;const {status:_0x12b2cd,coordinator:_0x2b3e37}=_0x5798a1;switch(_0x12b2cd){case h[_0x55d5a1(0x1ee)]:return _0x2585db(Fe,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1ec)]:return _0x2585db(He,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x196)]:return _0x2585db(je,{'coordinator':_0x2b3e37});case h[_0x55d5a1(0x1fe)]:return _0x2585db(Ve,{});case h['PRESENTING']:return _0x2585db(Ue,{'coordinator':_0x2b3e37});default:return null;}}function Fe(_0x237c5a){var _0x3167ee=_0x1cfdb8;const {coordinator:_0x558289}=_0x237c5a;return _0x3c8f57(_0x589951,{'children':[_0x2585db('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3167ee(0x1ae)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x558289[_0x3167ee(0x22b)](),'children':'Start'})]});}function He(_0x405a5d){var _0xc121e8=_0x1cfdb8;const {coordinator:_0x38a75a}=_0x405a5d;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0xc121e8(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xc121e8(0x21c)}),_0x2585db(_0xcd60f4,{'onClick':()=>_0x38a75a[_0xc121e8(0x20a)](),'children':_0xc121e8(0x1a8)})]});}function je(_0x3714c4){var _0x43d3b6=_0x1cfdb8;const {coordinator:_0x451cdf}=_0x3714c4;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x43d3b6(0x1b9),{'className':_0x43d3b6(0x235),'children':_0x43d3b6(0x1ed)}),_0x2585db(_0xcd60f4,{'variant':_0x43d3b6(0x1ba),'onClick':()=>_0x451cdf[_0x43d3b6(0x220)](),'children':_0x43d3b6(0x193)})]});}function Ue(_0x348aff){var _0x9ba380=_0x1cfdb8;const {coordinator:_0x2dc79c}=_0x348aff;return _0x3c8f57(_0x589951,{'children':[_0x2585db(_0x9ba380(0x1b9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x9ba380(0x1af)}),_0x2585db(_0xcd60f4,{'variant':'default','onClick':()=>_0x2dc79c[_0x9ba380(0x194)](),'children':_0x9ba380(0x227)})]});}function Ve(){var _0x22c132=_0x1cfdb8;return _0x2585db(_0x589951,{'children':_0x22c132(0x1da)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x4451df,_0x374f12,_0x25045f,_0x4a89e2)=>{var _0x502f53=_0x1cfdb8;for(var _0x43067b=_0x4a89e2>0x1?void 0x0:_0x4a89e2?Me(_0x374f12,_0x25045f):_0x374f12,_0x55d42c=_0x4451df[_0x502f53(0x21f)]-0x1,_0x508aa7;_0x55d42c>=0x0;_0x55d42c--)(_0x508aa7=_0x4451df[_0x55d42c])&&(_0x43067b=_0x508aa7(_0x43067b)||_0x43067b);return _0x43067b;},$=(_0x39e8fa,_0x3ccddf)=>(_0x2c454f,_0x3233c3)=>_0x3ccddf(_0x2c454f,_0x3233c3,_0x39e8fa);let b=class extends _0x978db0{constructor(_0x570a1d,_0x416b11){var _0x1d2f9b=_0x1cfdb8;super(),this[_0x1d2f9b(0x198)]=_0x570a1d,this[_0x1d2f9b(0x195)]=_0x416b11,this[_0x1d2f9b(0x1c4)]();}[_0x1cfdb8(0x1c4)](){var _0x1122f5=_0x1cfdb8;this['disposeWithMe'](this['_uiPartsService'][_0x1122f5(0x21b)](_0x2b5b91[_0x1122f5(0x1be)],()=>_0xecd535(Te,this[_0x1122f5(0x198)])));}};b=ke([$(0x0,_0x47e04a(_0x12d76d)),$(0x1,_0x53c21b)],b);var Ge=Object['defineProperty'],We=Object[_0x1cfdb8(0x22d)],Ye=(_0x58b4f5,_0x266794,_0x3dd639)=>_0x266794 in _0x58b4f5?Ge(_0x58b4f5,_0x266794,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd639}):_0x58b4f5[_0x266794]=_0x3dd639,Be=(_0x3d2be0,_0x3f4038,_0x106740,_0x5853d8)=>{for(var _0x41ef16=_0x5853d8>0x1?void 0x0:_0x5853d8?We(_0x3f4038,_0x106740):_0x3f4038,_0x5b4e47=_0x3d2be0['length']-0x1,_0x4da8f4;_0x5b4e47>=0x0;_0x5b4e47--)(_0x4da8f4=_0x3d2be0[_0x5b4e47])&&(_0x41ef16=_0x4da8f4(_0x41ef16)||_0x41ef16);return _0x41ef16;},F=(_0x23c66e,_0x33b9cb)=>(_0x4f6307,_0x501b75)=>_0x33b9cb(_0x4f6307,_0x501b75,_0x23c66e),J=(_0x1501a1,_0x4a766a,_0xf697e0)=>Ye(_0x1501a1,typeof _0x4a766a!=_0x1cfdb8(0x1de)?_0x4a766a+'':_0x4a766a,_0xf697e0);const Ze=_0x1cfdb8(0x1cc);let O=class extends _0x2d95be{constructor(_0x54127e=T,_0x393189,_0x5105fe){var _0x158f4b=_0x1cfdb8;super(),this[_0x158f4b(0x1d7)]=_0x54127e,this['_injector']=_0x393189,this['_configService']=_0x5105fe;const {..._0x35dc4c}=_0x4d7b5c({},T,this[_0x158f4b(0x1d7)]);this[_0x158f4b(0x1bf)][_0x158f4b(0x22e)](Oe,_0x35dc4c);}[_0x1cfdb8(0x239)](){var _0x395652=_0x1cfdb8;_0x3c4690(this[_0x395652(0x198)],_0x5c9bf8([[L],[I],[m],[b]],this['_config'][_0x395652(0x1d3)])),_0x223193(this[_0x395652(0x198)],[[m]]);}[_0x1cfdb8(0x1a6)](){var _0x5f4fcb=_0x1cfdb8;_0x223193(this[_0x5f4fcb(0x198)],[[b]]);}};J(O,_0x1cfdb8(0x1d0),_0x44e9a0[_0x1cfdb8(0x1a4)]),J(O,_0x1cfdb8(0x1dc),Ze),O=Be([_0x20f516(_0x5df2c9),F(0x1,_0x47e04a(_0x12d76d)),F(0x2,_0x4ab276)],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(_0x5626b7,_0x2b7bdd){var _0xbf054a=_0x2ab9,_0x1563ab=_0x5626b7();while(!![]){try{var _0x4275db=parseInt(_0xbf054a(0x1da))/0x1+parseInt(_0xbf054a(0x186))/0x2+parseInt(_0xbf054a(0x1d6))/0x3+parseInt(_0xbf054a(0x1b2))/0x4+parseInt(_0xbf054a(0x183))/0x5+-parseInt(_0xbf054a(0x1ea))/0x6*(parseInt(_0xbf054a(0x236))/0x7)+-parseInt(_0xbf054a(0x19b))/0x8*(parseInt(_0xbf054a(0x242))/0x9);if(_0x4275db===_0x2b7bdd)break;else _0x1563ab['push'](_0x1563ab['shift']());}catch(_0x4f1250){_0x1563ab['push'](_0x1563ab['shift']());}}}(_0x478e,0x3b1de),function(_0x5944ed,_0x14d40e){var _0x391088=_0x2ab9;typeof exports=='object'&&typeof module<'u'?_0x14d40e(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x391088(0x1a7)&&define['amd']?define(['exports',_0x391088(0x17f),_0x391088(0x22a),_0x391088(0x18d),'@univerjs/sheets-ui',_0x391088(0x15f),_0x391088(0x18b),_0x391088(0x23f),_0x391088(0x1ad),'@univerjs-pro/collaboration',_0x391088(0x1cd),_0x391088(0x1be)],_0x14d40e):(_0x5944ed=typeof globalThis<'u'?globalThis:_0x5944ed||self,_0x14d40e(_0x5944ed['UniverProLiveShare']={},_0x5944ed['UniverProCollaborationClient'],_0x5944ed[_0x391088(0x18e)],_0x5944ed['UniverSheets'],_0x5944ed[_0x391088(0x19d)],_0x5944ed[_0x391088(0x1b3)],_0x5944ed['React'],_0x5944ed['UniverDesign'],_0x5944ed['React'],_0x5944ed[_0x391088(0x1ba)],_0x5944ed[_0x391088(0x1cd)],_0x5944ed[_0x391088(0x1cd)][_0x391088(0x1ca)]));}(this,function(_0x5c1d20,_0x3c7e56,_0x4c1abb,_0x69cd3a,_0x4648e9,_0x5b8a85,_0x43ebd6,_0x1b2f3e,_0x449857,_0x3b8b2c,_0xbe6995,_0x69ecee){'use strict';var _0xcea2d4=_0x2ab9;var _0x1fee3b=Object[_0xcea2d4(0x1e6)],_0x53bd97=(_0x382557,_0x5492da,_0x32bbe9)=>_0x5492da in _0x382557?_0x1fee3b(_0x382557,_0x5492da,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32bbe9}):_0x382557[_0x5492da]=_0x32bbe9,_0x44808f=(_0x3e1890,_0x167c37,_0x503844)=>_0x53bd97(_0x3e1890,typeof _0x167c37!=_0xcea2d4(0x1f2)?_0x167c37+'':_0x167c37,_0x503844);const _0x49de67=_0xcea2d4(0x1cf),_0x3ae911={};class _0x4f41e1 extends _0x4c1abb['Disposable']{constructor(){var _0x4ce244=_0xcea2d4;super(...arguments),_0x44808f(this,'_sharedOperations',new Set()),_0x44808f(this,_0x4ce244(0x1df),new Set());}['registerSharedOperation'](_0x2bde47){var _0x4cd60f=_0xcea2d4;return this['_sharedOperations'][_0x4cd60f(0x229)](_0x2bde47),_0x4c1abb['toDisposable'](()=>this['_sharedOperations']['delete'](_0x2bde47));}['registerInitialStateReporter'](_0x761dca){var _0x21b9e0=_0xcea2d4;return this[_0x21b9e0(0x1df)][_0x21b9e0(0x229)](_0x761dca),_0x4c1abb[_0x21b9e0(0x1fd)](()=>this['_reporters'][_0x21b9e0(0x1eb)](_0x761dca));}[_0xcea2d4(0x1e3)](_0x1f7f3a){return this['_sharedOperations']['has'](_0x1f7f3a);}['getInitialStates'](_0x2b538e){var _0x48e9b7=_0xcea2d4;return Array[_0x48e9b7(0x15d)](this['_reporters'])[_0x48e9b7(0x1b1)](_0x8868eb=>_0x8868eb(_0x2b538e));}}var _0x5de1e4=Object[_0xcea2d4(0x1e0)],_0x5d42b7=(_0x2f4f45,_0x37572b,_0x373ee8,_0x4e9066)=>{var _0x422ac7=_0xcea2d4;for(var _0x15e171=_0x4e9066>0x1?void 0x0:_0x4e9066?_0x5de1e4(_0x37572b,_0x373ee8):_0x37572b,_0x102c3a=_0x2f4f45[_0x422ac7(0x195)]-0x1,_0x24e702;_0x102c3a>=0x0;_0x102c3a--)(_0x24e702=_0x2f4f45[_0x102c3a])&&(_0x15e171=_0x24e702(_0x15e171)||_0x15e171);return _0x15e171;},_0x594a84=(_0x5ac965,_0x17d913)=>(_0x342a70,_0x19d572)=>_0x17d913(_0x342a70,_0x19d572,_0x5ac965);let _0xf4e617=class extends _0x4c1abb[_0xcea2d4(0x1e7)]{constructor(_0x5f2a16){var _0xdad3e7=_0xcea2d4;super(),this[_0xdad3e7(0x222)]=_0x5f2a16,this['_init']();}[_0xcea2d4(0x1c0)](){var _0x3a8b67=_0xcea2d4;[_0x4648e9[_0x3a8b67(0x202)]['id'],_0x4648e9['SetScrollOperation']['id'],_0x69cd3a[_0x3a8b67(0x17a)]['id']][_0x3a8b67(0x173)](_0x32fb85=>{var _0x14ce73=_0x3a8b67;this[_0x14ce73(0x234)](this['_liveShareService']['registerSharedOperation'](_0x32fb85));});}};_0xf4e617=_0x5d42b7([_0x594a84(0x0,_0x4c1abb['Inject'](_0x4f41e1))],_0xf4e617);var _0xe2a25f=function(){var _0x55b79d=_0xcea2d4;return _0xe2a25f=Object[_0x55b79d(0x24b)]||function(_0x75a74){var _0x3d81e1=_0x55b79d;for(var _0xce059e,_0x6fc3da=0x1,_0xcb9b9=arguments['length'];_0x6fc3da<_0xcb9b9;_0x6fc3da++){_0xce059e=arguments[_0x6fc3da];for(var _0x20ce05 in _0xce059e)Object[_0x3d81e1(0x22e)][_0x3d81e1(0x15e)][_0x3d81e1(0x184)](_0xce059e,_0x20ce05)&&(_0x75a74[_0x20ce05]=_0xce059e[_0x20ce05]);}return _0x75a74;},_0xe2a25f[_0x55b79d(0x243)](this,arguments);},_0x2b102b=function(_0x5158e5,_0x199f2d){var _0x4407ce=_0xcea2d4,_0x1ebae9={};for(var _0x260706 in _0x5158e5)Object['prototype']['hasOwnProperty'][_0x4407ce(0x184)](_0x5158e5,_0x260706)&&_0x199f2d['indexOf'](_0x260706)<0x0&&(_0x1ebae9[_0x260706]=_0x5158e5[_0x260706]);if(_0x5158e5!=null&&typeof Object[_0x4407ce(0x221)]==_0x4407ce(0x1a7)){for(var _0xe50924=0x0,_0x260706=Object[_0x4407ce(0x221)](_0x5158e5);_0xe50924<_0x260706['length'];_0xe50924++)_0x199f2d[_0x4407ce(0x1c5)](_0x260706[_0xe50924])<0x0&&Object[_0x4407ce(0x22e)][_0x4407ce(0x231)][_0x4407ce(0x184)](_0x5158e5,_0x260706[_0xe50924])&&(_0x1ebae9[_0x260706[_0xe50924]]=_0x5158e5[_0x260706[_0xe50924]]);}return _0x1ebae9;},_0xde93bf=_0x449857['forwardRef'](function(_0x9a445,_0x58b5ec){var _0x73c445=_0xcea2d4,_0x566568=_0x9a445[_0x73c445(0x1b9)],_0x2e0cb8=_0x9a445['id'],_0x3f588f=_0x9a445['className'],_0x35b519=_0x9a445['extend'],_0xc9fe2=_0x2b102b(_0x9a445,['icon','id',_0x73c445(0x1ab),_0x73c445(0x24a)]),_0x5da64b=_0x73c445(0x233)['concat'](_0x2e0cb8,'\x20')[_0x73c445(0x220)](_0x3f588f||'')[_0x73c445(0x208)](),_0x5612f5=_0x449857[_0x73c445(0x1b8)]('_'[_0x73c445(0x220)](_0x5de3d1()));return _0x2635cb(_0x566568,''[_0x73c445(0x220)](_0x2e0cb8),{'defIds':_0x566568['defIds'],'idSuffix':_0x5612f5['current']},_0xe2a25f({'ref':_0x58b5ec,'className':_0x5da64b},_0xc9fe2),_0x35b519);});function _0x2635cb(_0x8d173d,_0x36413c,_0x490983,_0x169909,_0x2a3bae){var _0x5075c2=_0xcea2d4;return _0x449857['createElement'](_0x8d173d['tag'],_0xe2a25f(_0xe2a25f({'key':_0x36413c},_0x335e98(_0x8d173d,_0x490983,_0x2a3bae)),_0x169909),(_0x3a2b89(_0x8d173d,_0x490983)['children']||[])[_0x5075c2(0x1b1)](function(_0x4a3ed4,_0x26ffae){var _0x338e7b=_0x5075c2;return _0x2635cb(_0x4a3ed4,''[_0x338e7b(0x220)](_0x36413c,'-')['concat'](_0x8d173d['tag'],'-')[_0x338e7b(0x220)](_0x26ffae),_0x490983,void 0x0,_0x2a3bae);}));}function _0x335e98(_0x2cf9ac,_0x5cfaf4,_0x106805){var _0x117e6a=_0xcea2d4,_0x4f03f1=_0xe2a25f({},_0x2cf9ac[_0x117e6a(0x16c)]);_0x106805!=null&&_0x106805[_0x117e6a(0x1b4)]&&_0x4f03f1[_0x117e6a(0x187)]===_0x117e6a(0x1b4)&&(_0x4f03f1['fill']=_0x106805['colorChannel1']),_0x2cf9ac[_0x117e6a(0x190)]===_0x117e6a(0x1a4)&&_0x4f03f1['id']&&(_0x4f03f1['id']=_0x4f03f1['id']+_0x5cfaf4[_0x117e6a(0x1a5)]),Object[_0x117e6a(0x205)](_0x4f03f1)[_0x117e6a(0x173)](function(_0x560b4a){var _0x13976f=_0x117e6a,_0x337bbb=_0x560b4a[0x0],_0x4bfb2c=_0x560b4a[0x1];_0x337bbb===_0x13976f(0x1a4)&&typeof _0x4bfb2c=='string'&&(_0x4f03f1[_0x337bbb]=_0x4bfb2c[_0x13976f(0x175)](/url\(#(.*)\)/,_0x13976f(0x226)[_0x13976f(0x220)](_0x5cfaf4[_0x13976f(0x1a5)],')')));});var _0x619394=_0x5cfaf4[_0x117e6a(0x20b)];return!_0x619394||_0x619394[_0x117e6a(0x195)]===0x0||(_0x2cf9ac[_0x117e6a(0x190)]===_0x117e6a(0x1b6)&&_0x4f03f1[_0x117e6a(0x213)]&&(_0x4f03f1[_0x117e6a(0x213)]=_0x4f03f1[_0x117e6a(0x213)]+_0x5cfaf4[_0x117e6a(0x1a5)]),Object['entries'](_0x4f03f1)[_0x117e6a(0x173)](function(_0x3b2efb){var _0x51ab44=_0x117e6a,_0x5f501b=_0x3b2efb[0x0],_0x3f11d6=_0x3b2efb[0x1];typeof _0x3f11d6=='string'&&(_0x4f03f1[_0x5f501b]=_0x3f11d6[_0x51ab44(0x175)](/url\(#(.*)\)/,_0x51ab44(0x226)['concat'](_0x5cfaf4[_0x51ab44(0x1a5)],')')));})),_0x4f03f1;}function _0x3a2b89(_0x545640,_0x40c798){var _0x46e5d8=_0xcea2d4,_0x171cd5,_0xb7403c=_0x40c798[_0x46e5d8(0x20b)];return!_0xb7403c||_0xb7403c[_0x46e5d8(0x195)]===0x0?_0x545640:_0x545640[_0x46e5d8(0x190)]===_0x46e5d8(0x1dc)&&(!((_0x171cd5=_0x545640[_0x46e5d8(0x210)])===null||_0x171cd5===void 0x0)&&_0x171cd5[_0x46e5d8(0x195)])?_0xe2a25f(_0xe2a25f({},_0x545640),{'children':_0x545640['children'][_0x46e5d8(0x1b1)](function(_0xd99ad3){var _0x57019b=_0x46e5d8;return typeof _0xd99ad3['attrs']['id']==_0x57019b(0x219)&&_0xb7403c&&_0xb7403c['includes'](_0xd99ad3[_0x57019b(0x16c)]['id'])?_0xe2a25f(_0xe2a25f({},_0xd99ad3),{'attrs':_0xe2a25f(_0xe2a25f({},_0xd99ad3[_0x57019b(0x16c)]),{'id':_0xd99ad3[_0x57019b(0x16c)]['id']+_0x40c798['idSuffix']})}):_0xd99ad3;})}):_0x545640;}function _0x5de3d1(){var _0x5b70ee=_0xcea2d4;return Math[_0x5b70ee(0x215)]()[_0x5b70ee(0x23d)](0x24)['substring'](0x2,0x8);}_0xde93bf[_0xcea2d4(0x23a)]=_0xcea2d4(0x1e2);var _0x3b9c96={'tag':_0xcea2d4(0x1d7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xcea2d4(0x1ee),'viewBox':_0xcea2d4(0x247),'width':_0xcea2d4(0x214),'height':'1em'},'children':[{'tag':_0xcea2d4(0x20a),'attrs':{'fill':'currentColor','d':_0xcea2d4(0x1bd)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0xcea2d4(0x1fc),'fillRule':'evenodd','clipRule':_0xcea2d4(0x1b0)}}]},_0x227288=_0x449857[_0xcea2d4(0x18c)](function(_0x2c5693,_0x598da8){var _0x1f06ff=_0xcea2d4;return _0x449857[_0x1f06ff(0x1ce)](_0xde93bf,Object[_0x1f06ff(0x24b)]({},_0x2c5693,{'id':_0x1f06ff(0x1d5),'ref':_0x598da8,'icon':_0x3b9c96}));});_0x227288[_0xcea2d4(0x23a)]=_0xcea2d4(0x1c7);var _0x542e55=Object[_0xcea2d4(0x1e0)],_0x11fdba=(_0xabef1b,_0x376a7b,_0x5d5311,_0xc543c1)=>{var _0x5e62ec=_0xcea2d4;for(var _0x4d0214=_0xc543c1>0x1?void 0x0:_0xc543c1?_0x542e55(_0x376a7b,_0x5d5311):_0x376a7b,_0x41d85d=_0xabef1b[_0x5e62ec(0x195)]-0x1,_0x2a39f0;_0x41d85d>=0x0;_0x41d85d--)(_0x2a39f0=_0xabef1b[_0x41d85d])&&(_0x4d0214=_0x2a39f0(_0x4d0214)||_0x4d0214);return _0x4d0214;},_0x559217=(_0x44d459,_0x1c58f6)=>(_0x30f5d6,_0x3d1377)=>_0x1c58f6(_0x30f5d6,_0x3d1377,_0x44d459);_0x5c1d20[_0xcea2d4(0x1cc)]=class extends _0x4c1abb[_0xcea2d4(0x23c)]{constructor(_0x249230,_0xa5ce47,_0x27787e){var _0x3feca6=_0xcea2d4;super(),_0x44808f(this,'_entities',new Map()),(this['_univerInstanceService']=_0x249230,this[_0x3feca6(0x1e9)]=_0xa5ce47,this['_collabSessionService']=_0x27787e,this[_0x3feca6(0x1c0)]());}async['getLiveShareCoordinator'](_0x4ac0d0){var _0x2493fd=_0xcea2d4;return this['_entities']['has'](_0x4ac0d0)||await this[_0x2493fd(0x1a1)](_0x4ac0d0),this[_0x2493fd(0x1fe)][_0x2493fd(0x1d0)](_0x4ac0d0);}[_0xcea2d4(0x1c0)](){var _0x521adc=_0xcea2d4;this['_univerInstanceService'][_0x521adc(0x1e8)](_0x4c1abb['UniverInstanceType'][_0x521adc(0x227)])[_0x521adc(0x200)](_0x69ecee[_0x521adc(0x1f4)](this[_0x521adc(0x1c6)]))['subscribe'](async _0x379b97=>{var _0x11ff66=_0x521adc;const _0x3376aa=_0x379b97[_0x11ff66(0x1ef)]();this['_entities']['has'](_0x3376aa)||this[_0x11ff66(0x1a1)](_0x3376aa);}),this['_univerInstanceService'][_0x521adc(0x217)](_0x4c1abb['UniverInstanceType']['UNIVER_SHEET'])[_0x521adc(0x200)](_0x69ecee[_0x521adc(0x1f4)](this[_0x521adc(0x1c6)]))['subscribe'](_0x3a6cbf=>{var _0x23517f=_0x521adc;const _0xdc2c11=_0x3a6cbf['getUnitId'](),_0x2f9630=this[_0x23517f(0x1fe)][_0x23517f(0x1d0)](_0xdc2c11);_0x2f9630==null||_0x2f9630[_0x23517f(0x1fb)]();});}async[_0xcea2d4(0x1a1)](_0x50cf1d){var _0x4900fa=_0xcea2d4;const _0x4fd792=await this[_0x4900fa(0x1ec)][_0x4900fa(0x1bf)](_0x50cf1d),_0x1afd03=this[_0x4900fa(0x1e9)][_0x4900fa(0x211)](_0x5c1d20[_0x4900fa(0x1d4)],_0x50cf1d,_0x4fd792);return _0x1afd03[_0x4900fa(0x21a)](),this[_0x4900fa(0x1fe)][_0x4900fa(0x20c)](_0x50cf1d,_0x1afd03),_0x1afd03;}},_0x5c1d20[_0xcea2d4(0x1cc)]=_0x11fdba([_0x559217(0x0,_0x4c1abb[_0xcea2d4(0x216)]),_0x559217(0x1,_0x4c1abb[_0xcea2d4(0x245)](_0x4c1abb[_0xcea2d4(0x1f5)])),_0x559217(0x2,_0x4c1abb[_0xcea2d4(0x245)](_0x3c7e56['CollaborationSessionService']))],_0x5c1d20[_0xcea2d4(0x1cc)]);var _0x2f88b2=(_0x449966=>(_0x449966[_0xcea2d4(0x1f9)]=_0xcea2d4(0x167),_0x449966[_0xcea2d4(0x196)]=_0xcea2d4(0x1a6),_0x449966['FOLLOWING']='following',_0x449966[_0xcea2d4(0x176)]='not-following',_0x449966[_0xcea2d4(0x1fa)]=_0xcea2d4(0x22f),_0x449966))(_0x2f88b2||{});const _0x2d9ffa='SAME_OPERATION_SHARE_INTERVAL',_0x40b537=0xc8;_0x5c1d20[_0xcea2d4(0x1d4)]=class extends _0x4c1abb[_0xcea2d4(0x23c)]{constructor(_0x399cc3,_0x5baedd,_0x84b4c3,_0x1e101c,_0x1ebd42){var _0x31ebe8=_0xcea2d4;super(),_0x44808f(this,'_status$',new _0xbe6995[(_0x31ebe8(0x17d))](_0x31ebe8(0x1a6))),_0x44808f(this,'status$',this[_0x31ebe8(0x238)][_0x31ebe8(0x237)]()),_0x44808f(this,_0x31ebe8(0x1c0),!0x1),_0x44808f(this,_0x31ebe8(0x166),null),_0x44808f(this,_0x31ebe8(0x1f8),null),(this[_0x31ebe8(0x20f)]=_0x399cc3,this[_0x31ebe8(0x206)]=_0x5baedd,this[_0x31ebe8(0x1af)]=_0x84b4c3,this[_0x31ebe8(0x222)]=_0x1e101c,this[_0x31ebe8(0x1ff)]=_0x1ebd42);}get['_status'](){var _0x4d64ae=_0xcea2d4;return this[_0x4d64ae(0x238)][_0x4d64ae(0x1f3)]();}[_0xcea2d4(0x1fb)](){var _0x236d08=_0xcea2d4,_0x59ae6c;(_0x59ae6c=this[_0x236d08(0x166)])==null||_0x59ae6c['dispose'](),this[_0x236d08(0x238)][_0x236d08(0x16a)](_0x236d08(0x1a6)),this['_status$']['complete']();}['init'](){var _0x2a01a5=_0xcea2d4;this[_0x2a01a5(0x1c0)]||(this[_0x2a01a5(0x1c0)]=!0x0,this['_collabSession'][_0x2a01a5(0x188)][_0x2a01a5(0x200)](_0x69ecee[_0x2a01a5(0x1f4)](this[_0x2a01a5(0x1c6)]))[_0x2a01a5(0x1f0)](_0x3b1271=>{var _0x58c9e2=_0x2a01a5;switch(_0x3b1271){case _0x3c7e56[_0x58c9e2(0x164)][_0x58c9e2(0x1f9)]:this[_0x58c9e2(0x1aa)]();break;case _0x3c7e56[_0x58c9e2(0x164)][_0x58c9e2(0x18f)]:this[_0x58c9e2(0x248)]();break;}}),this[_0x2a01a5(0x206)]['event$'][_0x2a01a5(0x200)](_0x69ecee['takeUntil'](this[_0x2a01a5(0x1c6)]))[_0x2a01a5(0x1f0)](_0x128a85=>{var _0x5eb36d=_0x2a01a5;const {eventID:_0x4aca8a}=_0x128a85;switch(_0x4aca8a){case _0x3b8b2c['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x5eb36d(0x170)](_0x128a85);break;case _0x3b8b2c[_0x5eb36d(0x19c)][_0x5eb36d(0x1c2)]:this['_handleOperation'](_0x128a85);break;case _0x3b8b2c[_0x5eb36d(0x19c)][_0x5eb36d(0x1b7)]:this[_0x5eb36d(0x193)]();break;case _0x3b8b2c[_0x5eb36d(0x19c)][_0x5eb36d(0x199)]:this[_0x5eb36d(0x1a3)](_0x128a85);break;}}));}[_0xcea2d4(0x160)](){var _0x3e2033=_0xcea2d4;this[_0x3e2033(0x206)][_0x3e2033(0x198)]({'eventID':_0x3b8b2c[_0x3e2033(0x19c)][_0x3e2033(0x204)],'data':{'unitID':this[_0x3e2033(0x20f)],'userID':this[_0x3e2033(0x206)][_0x3e2033(0x201)]()}},this[_0x3e2033(0x20f)]);}[_0xcea2d4(0x1e1)](){var _0x54a9fa=_0xcea2d4;this['_status']===_0x54a9fa(0x22f)&&(this[_0x54a9fa(0x238)][_0x54a9fa(0x16a)](_0x54a9fa(0x1a6)),this[_0x54a9fa(0x206)]['send']({'eventID':_0x3b8b2c['CollaborationEvent'][_0x54a9fa(0x1b7)],'data':{'unitID':this[_0x54a9fa(0x20f)]}},this[_0x54a9fa(0x20f)]));}[_0xcea2d4(0x1ae)](){var _0x3dd943=_0xcea2d4;this[_0x3dd943(0x181)]===_0x3dd943(0x179)&&(this[_0x3dd943(0x238)][_0x3dd943(0x16a)](_0x3dd943(0x168)),this['_startFollowing']());}[_0xcea2d4(0x191)](){var _0x7dc57=_0xcea2d4;this['_status']===_0x7dc57(0x168)&&this['_stopFollowing']();}[_0xcea2d4(0x170)](_0x419784){var _0x78712a=_0xcea2d4;const {presenter:_0x30e12a}=_0x419784[_0x78712a(0x203)],_0x4cef87=this[_0x78712a(0x206)][_0x78712a(0x201)]();this[_0x78712a(0x1f8)]=_0x30e12a,_0x30e12a===_0x4cef87?(this[_0x78712a(0x223)](),this[_0x78712a(0x1a2)]()):this[_0x78712a(0x181)]!==_0x78712a(0x179)&&(this['_stopPresenting'](),this[_0x78712a(0x16b)]());}[_0xcea2d4(0x1ed)](){var _0x184aaf=_0xcea2d4;const _0x5b70da={'eventID':_0x3b8b2c[_0x184aaf(0x19c)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x184aaf(0x206)]['send'](_0x5b70da,this[_0x184aaf(0x20f)]);}[_0xcea2d4(0x193)](){var _0x4d7096=_0xcea2d4;this['_presenter']=null,this[_0x4d7096(0x181)]!==_0x4d7096(0x22f)&&this['_beIdle']();}[_0xcea2d4(0x1a3)](_0x8086cc){var _0x567467=_0xcea2d4;if(this[_0x567467(0x181)]===_0x567467(0x168)&&this[_0x567467(0x1f8)]===_0x8086cc[_0x567467(0x203)][_0x567467(0x1a9)]){const _0x46fd70=_0x3b8b2c[_0x567467(0x232)](_0x8086cc[_0x567467(0x203)])['mutations'][_0x567467(0x21b)]()[_0x567467(0x185)](_0xa067f8=>_0xa067f8['id']===_0x69cd3a[_0x567467(0x21e)]['id']);if(_0x46fd70){const _0x526fc5=_0x46fd70[_0x567467(0x1e4)][_0x567467(0x1f6)],_0x31c847=_0x46fd70['params'][_0x567467(0x224)]['id'];setTimeout(()=>{var _0x163614=_0x567467;this[_0x163614(0x1ff)][_0x163614(0x21f)](_0x69cd3a[_0x163614(0x17a)]['id'],{'unitId':_0x526fc5,'subUnitId':_0x31c847},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x5d1b22=_0xcea2d4;this[_0x5d1b22(0x238)][_0x5d1b22(0x16a)](_0x5d1b22(0x22f));const _0x5d46ea=new Map(),_0x58e114=this[_0x5d1b22(0x166)]=new _0x4c1abb[(_0x5d1b22(0x249))]();_0x58e114[_0x5d1b22(0x229)](_0x4c1abb['toDisposable'](()=>{var _0x3e96d9=_0x5d1b22;_0x5d46ea[_0x3e96d9(0x173)](_0x939609=>_0x939609[_0x3e96d9(0x240)]()),_0x5d46ea['clear']();})),_0x58e114[_0x5d1b22(0x229)](this[_0x5d1b22(0x1ff)][_0x5d1b22(0x244)](_0x3ce0b0=>{var _0x5e3e64=_0x5d1b22,_0x47763b;if(_0x3ce0b0[_0x5e3e64(0x225)]!==_0x4c1abb[_0x5e3e64(0x230)][_0x5e3e64(0x1dd)]||!this['_liveShareService'][_0x5e3e64(0x1e3)](_0x3ce0b0['id']))return;const {id:_0x4811be}=_0x3ce0b0;let _0x4b1b11;_0x5d46ea[_0x5e3e64(0x1d9)](_0x4811be)?_0x4b1b11=_0x5d46ea[_0x5e3e64(0x1d0)](_0x4811be):(_0x4b1b11=new _0xbe6995[(_0x5e3e64(0x19f))](),_0x5d46ea[_0x5e3e64(0x20c)](_0x4811be,_0x4b1b11),_0x4b1b11[_0x5e3e64(0x200)](_0x69ecee[_0x5e3e64(0x23b)]((_0x47763b=this[_0x5e3e64(0x1af)][_0x5e3e64(0x17b)](_0x2d9ffa))!=null?_0x47763b:_0x40b537,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x56d22b=>{var _0x1f1cb1=_0x5e3e64;this[_0x1f1cb1(0x206)][_0x1f1cb1(0x198)]({'eventID':_0x3b8b2c[_0x1f1cb1(0x19c)][_0x1f1cb1(0x1c2)],'data':{'unitID':this[_0x1f1cb1(0x20f)],'operations':{[_0x56d22b['id']]:{'id':_0x56d22b['id'],'params':JSON['stringify'](_0x56d22b[_0x1f1cb1(0x1e4)])}}}},this['_unitID']);})),_0x4b1b11[_0x5e3e64(0x16a)](_0x3ce0b0);})),this[_0x5d1b22(0x222)][_0x5d1b22(0x1a8)](this[_0x5d1b22(0x20f)])[_0x5d1b22(0x173)](_0x73f1f5=>this[_0x5d1b22(0x206)]['send']({'eventID':_0x3b8b2c[_0x5d1b22(0x19c)][_0x5d1b22(0x1c2)],'data':{'unitID':this[_0x5d1b22(0x20f)],'operations':{[_0x73f1f5['id']]:{'id':_0x73f1f5['id'],'params':JSON[_0x5d1b22(0x16d)](_0x73f1f5['params'])}}}},this[_0x5d1b22(0x20f)]));}['_stopPresenting'](){var _0x210c5d=_0xcea2d4,_0x4ee9dc;this[_0x210c5d(0x238)][_0x210c5d(0x16a)](_0x210c5d(0x1a6)),(_0x4ee9dc=this['_commandDisposable'])==null||_0x4ee9dc['dispose'](),this[_0x210c5d(0x166)]=null;}['_startFollowing'](){var _0x228dff=_0xcea2d4,_0x20f22d;(_0x20f22d=this['_commandDisposable'])==null||_0x20f22d[_0x228dff(0x1fb)](),this['_status$']['next'](_0x228dff(0x168));}[_0xcea2d4(0x1c9)](){var _0x2a0231=_0xcea2d4,_0x2df19d;this[_0x2a0231(0x238)][_0x2a0231(0x16a)](_0x2a0231(0x1a6)),(_0x2df19d=this['_commandDisposable'])==null||_0x2df19d['dispose'](),this[_0x2a0231(0x166)]=null;}[_0xcea2d4(0x223)](){var _0x5e2ffc=_0xcea2d4,_0x93b79a;this[_0x5e2ffc(0x238)][_0x5e2ffc(0x16a)](_0x5e2ffc(0x179)),(_0x93b79a=this[_0x5e2ffc(0x166)])==null||_0x93b79a[_0x5e2ffc(0x1fb)]();}['_handleOperation'](_0x1673be){var _0xcb08eb=_0xcea2d4;if([_0xcb08eb(0x22f),_0xcb08eb(0x179),'offline'][_0xcb08eb(0x218)](this['_status'])||!_0x1673be[_0xcb08eb(0x203)]['presenter']||_0x1673be[_0xcb08eb(0x203)][_0xcb08eb(0x20d)]===this['_collabSession'][_0xcb08eb(0x201)]())return;this['_status']===_0xcb08eb(0x1a6)&&this[_0xcb08eb(0x16b)]();const _0x212bfd=_0x1673be[_0xcb08eb(0x203)][_0xcb08eb(0x1ac)];Object[_0xcb08eb(0x241)](_0x212bfd)[_0xcb08eb(0x173)](_0x5ba17d=>{var _0x42983b=_0xcb08eb;this[_0x42983b(0x1ff)][_0x42983b(0x21f)](_0x5ba17d['id'],_0x5ba17d['params']?JSON[_0x42983b(0x1d8)](_0x5ba17d[_0x42983b(0x1e4)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x147a31=_0xcea2d4,_0x4ae948;this[_0x147a31(0x238)][_0x147a31(0x16a)](_0x147a31(0x167)),(_0x4ae948=this[_0x147a31(0x166)])==null||_0x4ae948[_0x147a31(0x1fb)]();}[_0xcea2d4(0x248)](){var _0x450afb=_0xcea2d4;this[_0x450afb(0x238)]['next'](_0x450afb(0x1a6)),this[_0x450afb(0x1ed)]();}},_0x5c1d20[_0xcea2d4(0x1d4)]=_0x11fdba([_0x559217(0x2,_0x4c1abb['IConfigService']),_0x559217(0x3,_0x4c1abb[_0xcea2d4(0x245)](_0x4f41e1)),_0x559217(0x4,_0x4c1abb[_0xcea2d4(0x23e)])],_0x5c1d20['LiveShareCoordinator']);function _0x545970(){var _0x2349eb=_0xcea2d4;const _0x3bb520=_0x5b8a85[_0x2349eb(0x189)](_0x5c1d20['LiveShareController']),_0x3bcc87=_0x5b8a85[_0x2349eb(0x189)](_0x4c1abb[_0x2349eb(0x216)]),_0x55cc65=_0x5b8a85[_0x2349eb(0x207)](()=>_0x3bcc87['getCurrentTypeOfUnit$'](_0x4c1abb[_0x2349eb(0x209)][_0x2349eb(0x227)]),void 0x0,!0x1,[]),[_0x48b620,_0x14cc76]=_0x449857[_0x2349eb(0x22b)](null),[_0x2c7e64,_0x51ad26]=_0x449857['useState'](_0x2f88b2[_0x2349eb(0x196)]),_0xbf552f=_0x449857[_0x2349eb(0x1b8)](null);return _0x449857[_0x2349eb(0x17c)](()=>(_0x55cc65&&_0x3bb520[_0x2349eb(0x192)](_0x55cc65['getUnitId']())[_0x2349eb(0x21d)](_0x4128cd=>{var _0x4bf8ca=_0x2349eb;_0x14cc76(_0x4128cd),_0xbf552f[_0x4bf8ca(0x180)]=_0x4128cd[_0x4bf8ca(0x165)][_0x4bf8ca(0x1f0)](_0x18bfaa=>{_0x51ad26(_0x18bfaa);});}),()=>{var _0x4a5c4b;(_0x4a5c4b=_0xbf552f['current'])==null||_0x4a5c4b['unsubscribe'](),_0xbf552f['current']=null;}),[_0x55cc65,_0x3bb520]),_0x48b620?_0x43ebd6[_0x2349eb(0x163)](_0x1b2f3e[_0x2349eb(0x18a)],{'align':_0x2349eb(0x178),'disabled':_0x2c7e64===_0x2f88b2['OFFLINE'],'className':_0x2349eb(0x1c3),'overlay':_0x43ebd6[_0x2349eb(0x163)](_0x18885f,{'status':_0x2c7e64,'coordinator':_0x48b620}),'children':_0x43ebd6['jsx'](_0x2349eb(0x1bb),{'className':_0x1b2f3e['clsx'](_0x2349eb(0x169),{'univer-cursor-not-allowed':_0x2c7e64===_0x2f88b2['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2c7e64!==_0x2f88b2[_0x2349eb(0x1f9)]}),'type':_0x2349eb(0x1bb),'children':_0x43ebd6[_0x2349eb(0x163)](_0x227288,{'className':_0x2349eb(0x1b5)})})}):null;}function _0x18885f(_0x12000d){var _0x34d026=_0xcea2d4;const {status:_0x1ed613,coordinator:_0x249805}=_0x12000d;switch(_0x1ed613){case _0x2f88b2['IDLE']:return _0x43ebd6['jsx'](_0x1d7ccf,{'coordinator':_0x249805});case _0x2f88b2[_0x34d026(0x171)]:return _0x43ebd6[_0x34d026(0x163)](_0x5ad558,{'coordinator':_0x249805});case _0x2f88b2[_0x34d026(0x176)]:return _0x43ebd6[_0x34d026(0x163)](_0x254520,{'coordinator':_0x249805});case _0x2f88b2[_0x34d026(0x1f9)]:return _0x43ebd6['jsx'](_0x465785,{});case _0x2f88b2[_0x34d026(0x1fa)]:return _0x43ebd6[_0x34d026(0x163)](_0x25d93c,{'coordinator':_0x249805});default:return null;}}function _0x1d7ccf(_0x624758){var _0x1d048b=_0xcea2d4;const {coordinator:_0x5a2b25}=_0x624758;return _0x43ebd6['jsxs'](_0x43ebd6[_0x1d048b(0x1c1)],{'children':[_0x43ebd6[_0x1d048b(0x163)]('div',{'className':_0x1d048b(0x1d2),'children':'Present\x20this\x20document'}),_0x43ebd6['jsx'](_0x1b2f3e['Button'],{'onClick':()=>_0x5a2b25['tryStartPresenting'](),'children':_0x1d048b(0x197)})]});}function _0x5ad558(_0xf32747){var _0x5c8dbc=_0xcea2d4;const {coordinator:_0xca5f4b}=_0xf32747;return _0x43ebd6[_0x5c8dbc(0x1a0)](_0x43ebd6[_0x5c8dbc(0x1c1)],{'children':[_0x43ebd6[_0x5c8dbc(0x163)](_0x5c8dbc(0x174),{'className':_0x5c8dbc(0x1d2),'children':_0x5c8dbc(0x19a)}),_0x43ebd6[_0x5c8dbc(0x163)](_0x1b2f3e[_0x5c8dbc(0x1e5)],{'onClick':()=>_0xca5f4b[_0x5c8dbc(0x191)](),'children':_0x5c8dbc(0x1f7)})]});}function _0x254520(_0x46ffad){var _0x1156b8=_0xcea2d4;const {coordinator:_0x103e71}=_0x46ffad;return _0x43ebd6[_0x1156b8(0x1a0)](_0x43ebd6[_0x1156b8(0x1c1)],{'children':[_0x43ebd6[_0x1156b8(0x163)]('div',{'className':_0x1156b8(0x1d2),'children':_0x1156b8(0x239)}),_0x43ebd6[_0x1156b8(0x163)](_0x1b2f3e[_0x1156b8(0x1e5)],{'variant':_0x1156b8(0x1c4),'onClick':()=>_0x103e71[_0x1156b8(0x1ae)](),'children':'Start\x20following'})]});}function _0x25d93c(_0x15e929){var _0x19f845=_0xcea2d4;const {coordinator:_0xe81a85}=_0x15e929;return _0x43ebd6[_0x19f845(0x1a0)](_0x43ebd6[_0x19f845(0x1c1)],{'children':[_0x43ebd6[_0x19f845(0x163)](_0x19f845(0x174),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x19f845(0x1db)}),_0x43ebd6[_0x19f845(0x163)](_0x1b2f3e[_0x19f845(0x1e5)],{'variant':_0x19f845(0x1d3),'onClick':()=>_0xe81a85[_0x19f845(0x1e1)](),'children':_0x19f845(0x1c8)})]});}function _0x465785(){var _0x128fd8=_0xcea2d4;return _0x43ebd6['jsx'](_0x43ebd6[_0x128fd8(0x1c1)],{'children':'You\x27are\x20offline.'});}var _0x3a32a1=Object['getOwnPropertyDescriptor'],_0x1176dc=(_0xdd6836,_0x220606,_0x26a1d3,_0x42013e)=>{var _0x6aad97=_0xcea2d4;for(var _0x3bc450=_0x42013e>0x1?void 0x0:_0x42013e?_0x3a32a1(_0x220606,_0x26a1d3):_0x220606,_0x845ee=_0xdd6836[_0x6aad97(0x195)]-0x1,_0x59dcab;_0x845ee>=0x0;_0x845ee--)(_0x59dcab=_0xdd6836[_0x845ee])&&(_0x3bc450=_0x59dcab(_0x3bc450)||_0x3bc450);return _0x3bc450;},_0x3b25d9=(_0x2d65c9,_0x29dfd6)=>(_0x52a2da,_0x2b6614)=>_0x29dfd6(_0x52a2da,_0x2b6614,_0x2d65c9);_0x5c1d20[_0xcea2d4(0x1de)]=class extends _0x4c1abb[_0xcea2d4(0x1e7)]{constructor(_0x521b08,_0x1cacd7){var _0x5901c0=_0xcea2d4;super(),this[_0x5901c0(0x1e9)]=_0x521b08,this[_0x5901c0(0x16f)]=_0x1cacd7,this[_0x5901c0(0x21c)]();}[_0xcea2d4(0x21c)](){var _0x3f0fbd=_0xcea2d4;this['disposeWithMe'](this[_0x3f0fbd(0x16f)][_0x3f0fbd(0x19e)](_0x5b8a85[_0x3f0fbd(0x15c)][_0x3f0fbd(0x17e)],()=>_0x5b8a85[_0x3f0fbd(0x1d1)](_0x545970,this[_0x3f0fbd(0x1e9)])));}},_0x5c1d20[_0xcea2d4(0x1de)]=_0x1176dc([_0x3b25d9(0x0,_0x4c1abb[_0xcea2d4(0x245)](_0x4c1abb[_0xcea2d4(0x1f5)])),_0x3b25d9(0x1,_0x5b8a85[_0xcea2d4(0x16e)])],_0x5c1d20[_0xcea2d4(0x1de)]);var _0x662506=Object[_0xcea2d4(0x1e6)],_0x5dcdd2=Object[_0xcea2d4(0x1e0)],_0xbc1940=(_0x57c225,_0x5a3c7b,_0x2427e1)=>_0x5a3c7b in _0x57c225?_0x662506(_0x57c225,_0x5a3c7b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2427e1}):_0x57c225[_0x5a3c7b]=_0x2427e1,_0x3c7d69=(_0x5b6992,_0x5b0787,_0xf6e619,_0x1d6ce6)=>{var _0x1e86f2=_0xcea2d4;for(var _0xbd13b2=_0x1d6ce6>0x1?void 0x0:_0x1d6ce6?_0x5dcdd2(_0x5b0787,_0xf6e619):_0x5b0787,_0x513da9=_0x5b6992[_0x1e86f2(0x195)]-0x1,_0x3ce726;_0x513da9>=0x0;_0x513da9--)(_0x3ce726=_0x5b6992[_0x513da9])&&(_0xbd13b2=_0x3ce726(_0xbd13b2)||_0xbd13b2);return _0xbd13b2;},_0x4fb933=(_0x1fcd26,_0x5b67ec)=>(_0x499c1f,_0x2803d9)=>_0x5b67ec(_0x499c1f,_0x2803d9,_0x1fcd26),_0x8868a0=(_0x1f2f99,_0x2250e7,_0x22cf00)=>_0xbc1940(_0x1f2f99,typeof _0x2250e7!=_0xcea2d4(0x1f2)?_0x2250e7+'':_0x2250e7,_0x22cf00);const _0x36aa16=_0xcea2d4(0x246);_0x5c1d20[_0xcea2d4(0x22d)]=class extends _0x4c1abb[_0xcea2d4(0x235)]{constructor(_0x8af4a0=_0x3ae911,_0x1a4bbc,_0x33b0bd){var _0xc8996e=_0xcea2d4;super(),this[_0xc8996e(0x20e)]=_0x8af4a0,this[_0xc8996e(0x1e9)]=_0x1a4bbc,this[_0xc8996e(0x1af)]=_0x33b0bd;const {..._0x4e506b}=_0x4c1abb[_0xc8996e(0x182)]({},_0x3ae911,this[_0xc8996e(0x20e)]);this[_0xc8996e(0x1af)][_0xc8996e(0x24c)](_0x49de67,_0x4e506b);}['onStarting'](){var _0x2b183b=_0xcea2d4;_0x4c1abb['registerDependencies'](this[_0x2b183b(0x1e9)],_0x4c1abb['mergeOverrideWithDependencies']([[_0x4f41e1],[_0x5c1d20[_0x2b183b(0x1cc)]],[_0xf4e617],[_0x5c1d20[_0x2b183b(0x1de)]]],this['_config'][_0x2b183b(0x161)])),_0x4c1abb[_0x2b183b(0x228)](this[_0x2b183b(0x1e9)],[[_0xf4e617]]);}[_0xcea2d4(0x1bc)](){var _0x13355a=_0xcea2d4;_0x4c1abb[_0x13355a(0x228)](this['_injector'],[[_0x5c1d20['DesktopLiveShareController']]]);}},_0x8868a0(_0x5c1d20['UniverLiveSharePlugin'],_0xcea2d4(0x225),_0x4c1abb[_0xcea2d4(0x209)][_0xcea2d4(0x172)]),_0x8868a0(_0x5c1d20[_0xcea2d4(0x22d)],_0xcea2d4(0x162),_0x36aa16),_0x5c1d20['UniverLiveSharePlugin']=_0x3c7d69([_0x4c1abb[_0xcea2d4(0x177)](_0x3c7e56[_0xcea2d4(0x22c)]),_0x4fb933(0x1,_0x4c1abb[_0xcea2d4(0x245)](_0x4c1abb['Injector'])),_0x4fb933(0x2,_0x4c1abb[_0xcea2d4(0x212)])],_0x5c1d20[_0xcea2d4(0x22d)]),_0x5c1d20[_0xcea2d4(0x194)]=_0x545970,_0x5c1d20['LiveShareService']=_0x4f41e1,_0x5c1d20[_0xcea2d4(0x1f1)]=_0x2f88b2,Object[_0xcea2d4(0x1e6)](_0x5c1d20,Symbol['toStringTag'],{'value':_0xcea2d4(0x1cb)});}));function _0x2ab9(_0x197ca2,_0x1567ba){var _0x478e4e=_0x478e();return _0x2ab9=function(_0x2ab9ca,_0x5ba4ba){_0x2ab9ca=_0x2ab9ca-0x15c;var _0x5aaaf7=_0x478e4e[_0x2ab9ca];return _0x5aaaf7;},_0x2ab9(_0x197ca2,_0x1567ba);}function _0x478e(){var _0x41384f=['stringify','IUIPartsService','_uiPartsService','_handleNewHost','FOLLOWING','UNIVER_UNKNOWN','forEach','div','replace','NOT_FOLLOWING','DependentOn','end','not-following','SetWorksheetActiveOperation','getConfig','useEffect','BehaviorSubject','HEADER_MENU','@univerjs-pro/collaboration-client','current','_status','merge','938085FaymNO','call','find','405932RIdlJn','fill','sessionStatus$','useDependency','Dropdown','react/jsx-runtime','forwardRef','@univerjs/sheets','UniverCore','ONLINE','tag','stopFollowing','getLiveShareCoordinator','_handleTerminate','LiveShare','length','IDLE','Start','send','NEW_CHANGESETS','You\x27re\x20following\x20the\x20presenter','4487176ruFXOO','CollaborationEvent','UniverSheetsUi','registerComponent','Subject','jsxs','_startLiveShareCoordinator','_startPresenting','_handleNewChangeSets','mask','idSuffix','idle','function','getInitialStates','memberID','_handleOffline','className','operations','react','startFollowing','_configService','evenodd','map','1526168kozkoS','UniverUi','colorChannel1','univer-size-4','use','LIVESHARE_TERMINATE','useRef','icon','UniverProCollaboration','button','onRendered','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','rxjs/operators','requireSession','_init','Fragment','LIVESHARE_OPERATION','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','text','indexOf','dispose$','LiveShareIcon','Stop\x20presenting','_beIdle','operators','Module','LiveShareController','rxjs','createElement','live-share.config','get','connectInjector','univer-mb-3\x20univer-w-full\x20univer-text-sm','default','LiveShareCoordinator','live-share-icon','726201NTVMfd','svg','parse','has','151748oxuaVB','You\x27re\x20presenting\x20the\x20document','defs','OPERATION','DesktopLiveShareController','_reporters','getOwnPropertyDescriptor','stopPresenting','UniverIcon','shouldShareOperation','params','Button','defineProperty','Disposable','getTypeOfUnitAdded$','_injector','9426sLcbPT','delete','_collabSessionService','_fetchOperations','none','getUnitId','subscribe','LiveShareStatus','symbol','getValue','takeUntil','Injector','unitId','Stop\x20following','_presenter','OFFLINE','PRESENTING','dispose','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','toDisposable','_entities','_commandService','pipe','getMemberID','SetZoomRatioOperation','data','LIVESHARE_REQUEST_HOST','entries','_collabSession','useObservable','trim','UniverInstanceType','path','defIds','set','presenter','_config','_unitID','children','createInstance','IConfigService','xlink:href','1em','random','IUniverInstanceService','getTypeOfUnitDisposed$','includes','string','init','reverse','_mountLiveShare','then','InsertSheetMutation','executeCommand','concat','getOwnPropertySymbols','_liveShareService','_stopFollowing','sheet','type','url(#$1','UNIVER_SHEET','touchDependencies','add','@univerjs/core','useState','UniverCollaborationClientPlugin','UniverLiveSharePlugin','prototype','presenting','CommandType','propertyIsEnumerable','parseProtocolChangeset','univerjs-icon\x20univerjs-icon-','disposeWithMe','Plugin','1617GXToxA','asObservable','_status$','You\x27re\x20not\x20following\x20the\x20presenter','displayName','throttleTime','RxDisposable','toString','ICommandService','@univerjs/design','complete','values','9hlBoZM','apply','onCommandExecuted','Inject','UNIVER_LIVE_SHARE_PLUGIN','0\x200\x2017\x2017','_handleOnline','DisposableCollection','extend','assign','setConfig','BuiltInUIPart','from','hasOwnProperty','@univerjs/ui','tryStartPresenting','override','pluginName','jsx','SessionStatus','status$','_commandDisposable','offline','following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','next','_startFollowing','attrs'];_0x478e=function(){return _0x41384f;};return _0x478e();}
1
+ function _0x271f(_0xec7ab0,_0x5f3971){var _0x409b5d=_0x409b();return _0x271f=function(_0x271f71,_0x36fe09){_0x271f71=_0x271f71-0x1b3;var _0x4e5acb=_0x409b5d[_0x271f71];return _0x4e5acb;},_0x271f(_0xec7ab0,_0x5f3971);}function _0x409b(){var _0x472923=['UniverCore','univer-mb-3\x20univer-w-full\x20univer-text-sm','useRef','BuiltInUIPart','stringify','attrs','includes','data','LiveShareController','entries','@univerjs/design','_config','DesktopLiveShareController','then','pluginName','stopPresenting','getMemberID','Injector','current','BehaviorSubject','offline','NOT_FOLLOWING','operations','UniverDesign','currentColor','icon','object','getUnitId','has','mutations','registerComponent','from','UniverSheets','Fragment','presenter','symbol','subscribe','children','Button','onStarting','_reporters','set','url(#$1','find','getInitialStates','UNIVER_SHEET','react/jsx-runtime','colorChannel1','amd','4364304FBWCoh','get','send','LIVESHARE_REQUEST_HOST','idSuffix','FOLLOWING','_commandDisposable','4267485AswUlv','getOwnPropertyDescriptor','idle','string','_init','delete','parseProtocolChangeset','useEffect','react','You\x27re\x20following\x20the\x20presenter','jsxs','jsx','defIds','DependentOn','getValue','event$','getOwnPropertySymbols','@univerjs-pro/collaboration-client','SetScrollOperation','clear','createElement','random','use','stopFollowing','0\x200\x2017\x2017','path','tag','Disposable','_handleOffline','React','NEW_CHANGESETS','10Dflvpf','_startLiveShareCoordinator','concat','SetZoomRatioOperation','sheet','setConfig','_univerInstanceService','prototype','indexOf','startFollowing','Dropdown','_startFollowing','CollaborationSessionService','@univerjs-pro/collaboration','defs','_collabSession','_startPresenting','getTypeOfUnitAdded$','SetWorksheetActiveOperation','IConfigService','ICommandService','UNIVER_LIVE_SHARE_PLUGIN','call','live-share.config','1869553awVqbV','mask','function','333IbeidG','UniverLiveSharePlugin','unitId','1101230IgBOTo','memberID','displayName','http://www.w3.org/2000/svg','reverse','UNIVER_UNKNOWN','following','touchDependencies','LiveShareService','next','asObservable','assign','disposeWithMe','rxjs/operators','LiveShare','replace','_beIdle','trim','substring','default','@univerjs/sheets-ui','button','_stopPresenting','shouldShareOperation','_injector','SAME_OPERATION_SHARE_INTERVAL','IDLE','_presenter','pipe','sessionStatus$','defineProperty','ONLINE','HEADER_MENU','UniverUi','Subject','LIVESHARE_OPERATION','registerDependencies','end','You\x27re\x20presenting\x20the\x20document','@univerjs/core','2264266KQAtmk','SessionStatus','type','useState','_status','UniverProCollaboration','toStringTag','RxDisposable','InsertSheetMutation','getTypeOfUnitDisposed$','UniverIcon','evenodd','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','useObservable','xlink:href','UniverProLiveShare','div','UniverCollaborationClientPlugin','registerInitialStateReporter','toDisposable','connectInjector','DisposableCollection','UniverSheetsUi','status$','onRendered','_uiPartsService','840548THtvIE','add','IUniverInstanceService','1em','hasOwnProperty','toString','_sharedOperations','PRESENTING','_liveShareService','@univerjs/ui','takeUntil','UniverProCollaborationClient','LiveShareIcon','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','_unitID','5030052AXFWGZ','length','CollaborationEvent','none','extend','Present\x20this\x20document','_fetchOperations','params','1YePhbA','parse','_configService','UniverInstanceType','_handleTerminate','fill','Inject','LIVESHARE_FETCH_OPERATIONS','forwardRef','presenting','not-following','init','_entities','You\x27are\x20offline.','override','clsx','_commandService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getLiveShareCoordinator','LIVESHARE_NEW_HOST','forEach','_handleOnline','You\x27re\x20not\x20following\x20the\x20presenter','dispose','executeCommand','OFFLINE','useDependency','tryStartPresenting','Start\x20following','_stopFollowing','LIVESHARE_TERMINATE','_handleNewChangeSets','_handleNewHost','_mountLiveShare','exports','LiveShareCoordinator','_handleOperation','dispose$','rxjs','map','className','OPERATION','registerSharedOperation','_status$'];_0x409b=function(){return _0x472923;};return _0x409b();}(function(_0x3cfff8,_0xf2639d){var _0x170fe6=_0x271f,_0x44325d=_0x3cfff8();while(!![]){try{var _0x4c44a0=parseInt(_0x170fe6(0x1c7))/0x1*(-parseInt(_0x170fe6(0x290))/0x2)+-parseInt(_0x170fe6(0x22b))/0x3+-parseInt(_0x170fe6(0x2aa))/0x4*(-parseInt(_0x170fe6(0x24a))/0x5)+-parseInt(_0x170fe6(0x1bf))/0x6+parseInt(_0x170fe6(0x262))/0x7+-parseInt(_0x170fe6(0x224))/0x8+-parseInt(_0x170fe6(0x265))/0x9*(-parseInt(_0x170fe6(0x268))/0xa);if(_0x4c44a0===_0xf2639d)break;else _0x44325d['push'](_0x44325d['shift']());}catch(_0x2137be){_0x44325d['push'](_0x44325d['shift']());}}}(_0x409b,0xc9064),function(_0x198581,_0xcd53e9){var _0x42a606=_0x271f;typeof exports==_0x42a606(0x20d)&&typeof module<'u'?_0xcd53e9(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define[_0x42a606(0x223)]?define([_0x42a606(0x1e9),_0x42a606(0x23c),_0x42a606(0x28f),'@univerjs/sheets',_0x42a606(0x27c),_0x42a606(0x1b9),_0x42a606(0x221),_0x42a606(0x1fd),_0x42a606(0x233),_0x42a606(0x257),'rxjs',_0x42a606(0x275)],_0xcd53e9):(_0x198581=typeof globalThis<'u'?globalThis:_0x198581||self,_0xcd53e9(_0x198581[_0x42a606(0x29f)]={},_0x198581[_0x42a606(0x1bb)],_0x198581[_0x42a606(0x1f3)],_0x198581[_0x42a606(0x213)],_0x198581[_0x42a606(0x2a6)],_0x198581[_0x42a606(0x289)],_0x198581[_0x42a606(0x248)],_0x198581[_0x42a606(0x20a)],_0x198581[_0x42a606(0x248)],_0x198581[_0x42a606(0x295)],_0x198581[_0x42a606(0x1ed)],_0x198581[_0x42a606(0x1ed)]['operators']));}(this,function(_0x2a034c,_0x44068f,_0x214637,_0x4c7348,_0xa60945,_0xced2db,_0x3a11cc,_0x93a8e2,_0x54d5d7,_0x497455,_0x507716,_0x1dafc4){'use strict';var _0x19a470=_0x271f;var _0x592d93=Object[_0x19a470(0x286)],_0x4b143c=(_0x2e3890,_0x4557e3,_0xe01256)=>_0x4557e3 in _0x2e3890?_0x592d93(_0x2e3890,_0x4557e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe01256}):_0x2e3890[_0x4557e3]=_0xe01256,_0x3863ad=(_0x515844,_0x5a8f4d,_0x466dd0)=>_0x4b143c(_0x515844,typeof _0x5a8f4d!=_0x19a470(0x216)?_0x5a8f4d+'':_0x5a8f4d,_0x466dd0);const _0x150d50=_0x19a470(0x261),_0x15fc2a={};class _0x416f9b extends _0x214637[_0x19a470(0x246)]{constructor(){var _0x342346=_0x19a470;super(...arguments),_0x3863ad(this,_0x342346(0x1b6),new Set()),_0x3863ad(this,_0x342346(0x21b),new Set());}[_0x19a470(0x1f1)](_0x583164){var _0x444e4e=_0x19a470;return this[_0x444e4e(0x1b6)][_0x444e4e(0x2ab)](_0x583164),_0x214637[_0x444e4e(0x2a3)](()=>this[_0x444e4e(0x1b6)][_0x444e4e(0x230)](_0x583164));}[_0x19a470(0x2a2)](_0x599c86){var _0x50c709=_0x19a470;return this[_0x50c709(0x21b)][_0x50c709(0x2ab)](_0x599c86),_0x214637[_0x50c709(0x2a3)](()=>this[_0x50c709(0x21b)][_0x50c709(0x230)](_0x599c86));}[_0x19a470(0x27f)](_0x3f0034){var _0x607b7d=_0x19a470;return this[_0x607b7d(0x1b6)][_0x607b7d(0x20f)](_0x3f0034);}[_0x19a470(0x21f)](_0x3784fe){var _0xe76eda=_0x19a470;return Array[_0xe76eda(0x212)](this['_reporters'])['map'](_0x345cdd=>_0x345cdd(_0x3784fe));}}var _0x523ffc=Object[_0x19a470(0x22c)],_0x184600=(_0x4d8a6f,_0x162f6a,_0xb96b95,_0x353a84)=>{var _0x3fe74a=_0x19a470;for(var _0x39f028=_0x353a84>0x1?void 0x0:_0x353a84?_0x523ffc(_0x162f6a,_0xb96b95):_0x162f6a,_0x358409=_0x4d8a6f[_0x3fe74a(0x1c0)]-0x1,_0x2e5c51;_0x358409>=0x0;_0x358409--)(_0x2e5c51=_0x4d8a6f[_0x358409])&&(_0x39f028=_0x2e5c51(_0x39f028)||_0x39f028);return _0x39f028;},_0x439602=(_0x196f63,_0x264d51)=>(_0x19eca2,_0x513f92)=>_0x264d51(_0x19eca2,_0x513f92,_0x196f63);let _0x2bf0a6=class extends _0x214637[_0x19a470(0x246)]{constructor(_0xda815d){var _0x144bbe=_0x19a470;super(),this[_0x144bbe(0x1b8)]=_0xda815d,this['_init']();}[_0x19a470(0x22f)](){var _0x4bbe28=_0x19a470;[_0xa60945[_0x4bbe28(0x24d)]['id'],_0xa60945[_0x4bbe28(0x23d)]['id'],_0x4c7348[_0x4bbe28(0x25c)]['id']]['forEach'](_0x3e2094=>{var _0x2014a5=_0x4bbe28;this[_0x2014a5(0x274)](this[_0x2014a5(0x1b8)][_0x2014a5(0x1f1)](_0x3e2094));});}};_0x2bf0a6=_0x184600([_0x439602(0x0,_0x214637[_0x19a470(0x1cd)](_0x416f9b))],_0x2bf0a6);var _0x2b2871=function(){var _0xeb0daf=_0x19a470;return _0x2b2871=Object[_0xeb0daf(0x273)]||function(_0xa3569){var _0x44bee1=_0xeb0daf;for(var _0x3ddc43,_0x116c39=0x1,_0x37008a=arguments[_0x44bee1(0x1c0)];_0x116c39<_0x37008a;_0x116c39++){_0x3ddc43=arguments[_0x116c39];for(var _0x1ff669 in _0x3ddc43)Object[_0x44bee1(0x251)]['hasOwnProperty']['call'](_0x3ddc43,_0x1ff669)&&(_0xa3569[_0x1ff669]=_0x3ddc43[_0x1ff669]);}return _0xa3569;},_0x2b2871['apply'](this,arguments);},_0x3fcd3e=function(_0x3918ac,_0x37c784){var _0x87d420=_0x19a470,_0x22a004={};for(var _0x400078 in _0x3918ac)Object['prototype'][_0x87d420(0x1b4)][_0x87d420(0x260)](_0x3918ac,_0x400078)&&_0x37c784[_0x87d420(0x252)](_0x400078)<0x0&&(_0x22a004[_0x400078]=_0x3918ac[_0x400078]);if(_0x3918ac!=null&&typeof Object[_0x87d420(0x23b)]==_0x87d420(0x264)){for(var _0x49aaad=0x0,_0x400078=Object[_0x87d420(0x23b)](_0x3918ac);_0x49aaad<_0x400078[_0x87d420(0x1c0)];_0x49aaad++)_0x37c784[_0x87d420(0x252)](_0x400078[_0x49aaad])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x87d420(0x260)](_0x3918ac,_0x400078[_0x49aaad])&&(_0x22a004[_0x400078[_0x49aaad]]=_0x3918ac[_0x400078[_0x49aaad]]);}return _0x22a004;},_0x53c23a=_0x54d5d7['forwardRef'](function(_0x554719,_0x1d68e7){var _0x535ac6=_0x19a470,_0xb661f6=_0x554719[_0x535ac6(0x20c)],_0xa0893c=_0x554719['id'],_0x20beff=_0x554719[_0x535ac6(0x1ef)],_0x453d64=_0x554719[_0x535ac6(0x1c3)],_0x361f25=_0x3fcd3e(_0x554719,[_0x535ac6(0x20c),'id','className','extend']),_0x597d0d='univerjs-icon\x20univerjs-icon-'['concat'](_0xa0893c,'\x20')['concat'](_0x20beff||'')[_0x535ac6(0x279)](),_0x569c2a=_0x54d5d7[_0x535ac6(0x1f5)]('_'[_0x535ac6(0x24c)](_0x1ac4ee()));return _0x238e1f(_0xb661f6,''[_0x535ac6(0x24c)](_0xa0893c),{'defIds':_0xb661f6[_0x535ac6(0x237)],'idSuffix':_0x569c2a[_0x535ac6(0x205)]},_0x2b2871({'ref':_0x1d68e7,'className':_0x597d0d},_0x361f25),_0x453d64);});function _0x238e1f(_0x4e52ea,_0x559919,_0x4836a8,_0x178105,_0x2185cc){var _0x2619df=_0x19a470;return _0x54d5d7['createElement'](_0x4e52ea[_0x2619df(0x245)],_0x2b2871(_0x2b2871({'key':_0x559919},_0x5e129e(_0x4e52ea,_0x4836a8,_0x2185cc)),_0x178105),(_0x3b86cc(_0x4e52ea,_0x4836a8)[_0x2619df(0x218)]||[])[_0x2619df(0x1ee)](function(_0x425c72,_0x48d925){var _0x49d344=_0x2619df;return _0x238e1f(_0x425c72,''[_0x49d344(0x24c)](_0x559919,'-')[_0x49d344(0x24c)](_0x4e52ea[_0x49d344(0x245)],'-')['concat'](_0x48d925),_0x4836a8,void 0x0,_0x2185cc);}));}function _0x5e129e(_0x140169,_0x159afb,_0x35baf0){var _0x19153d=_0x19a470,_0x2681aa=_0x2b2871({},_0x140169[_0x19153d(0x1f8)]);_0x35baf0!=null&&_0x35baf0['colorChannel1']&&_0x2681aa[_0x19153d(0x1cc)]===_0x19153d(0x222)&&(_0x2681aa[_0x19153d(0x1cc)]=_0x35baf0[_0x19153d(0x222)]),_0x140169[_0x19153d(0x245)]==='mask'&&_0x2681aa['id']&&(_0x2681aa['id']=_0x2681aa['id']+_0x159afb[_0x19153d(0x228)]),Object[_0x19153d(0x1fc)](_0x2681aa)['forEach'](function(_0x276463){var _0x1b6643=_0x19153d,_0x211e57=_0x276463[0x0],_0x3c9154=_0x276463[0x1];_0x211e57===_0x1b6643(0x263)&&typeof _0x3c9154=='string'&&(_0x2681aa[_0x211e57]=_0x3c9154['replace'](/url\(#(.*)\)/,'url(#$1'[_0x1b6643(0x24c)](_0x159afb[_0x1b6643(0x228)],')')));});var _0x27c4f3=_0x159afb[_0x19153d(0x237)];return!_0x27c4f3||_0x27c4f3[_0x19153d(0x1c0)]===0x0||(_0x140169[_0x19153d(0x245)]===_0x19153d(0x241)&&_0x2681aa[_0x19153d(0x29e)]&&(_0x2681aa['xlink:href']=_0x2681aa[_0x19153d(0x29e)]+_0x159afb['idSuffix']),Object['entries'](_0x2681aa)[_0x19153d(0x1db)](function(_0x5eeffa){var _0x53a28f=_0x19153d,_0x5be76d=_0x5eeffa[0x0],_0x5a167b=_0x5eeffa[0x1];typeof _0x5a167b==_0x53a28f(0x22e)&&(_0x2681aa[_0x5be76d]=_0x5a167b[_0x53a28f(0x277)](/url\(#(.*)\)/,_0x53a28f(0x21d)[_0x53a28f(0x24c)](_0x159afb[_0x53a28f(0x228)],')')));})),_0x2681aa;}function _0x3b86cc(_0x4a348d,_0x56781d){var _0x5dfd49=_0x19a470,_0x589728,_0x5d0924=_0x56781d[_0x5dfd49(0x237)];return!_0x5d0924||_0x5d0924[_0x5dfd49(0x1c0)]===0x0?_0x4a348d:_0x4a348d[_0x5dfd49(0x245)]===_0x5dfd49(0x258)&&(!((_0x589728=_0x4a348d['children'])===null||_0x589728===void 0x0)&&_0x589728[_0x5dfd49(0x1c0)])?_0x2b2871(_0x2b2871({},_0x4a348d),{'children':_0x4a348d[_0x5dfd49(0x218)][_0x5dfd49(0x1ee)](function(_0x5d10ba){var _0x306a12=_0x5dfd49;return typeof _0x5d10ba[_0x306a12(0x1f8)]['id']==_0x306a12(0x22e)&&_0x5d0924&&_0x5d0924[_0x306a12(0x1f9)](_0x5d10ba[_0x306a12(0x1f8)]['id'])?_0x2b2871(_0x2b2871({},_0x5d10ba),{'attrs':_0x2b2871(_0x2b2871({},_0x5d10ba[_0x306a12(0x1f8)]),{'id':_0x5d10ba[_0x306a12(0x1f8)]['id']+_0x56781d[_0x306a12(0x228)]})}):_0x5d10ba;})}):_0x4a348d;}function _0x1ac4ee(){var _0x309016=_0x19a470;return Math[_0x309016(0x240)]()[_0x309016(0x1b5)](0x24)[_0x309016(0x27a)](0x2,0x8);}_0x53c23a[_0x19a470(0x26a)]=_0x19a470(0x29a);var _0x14dcfc={'tag':'svg','attrs':{'xmlns':_0x19a470(0x26b),'fill':_0x19a470(0x1c2),'viewBox':_0x19a470(0x243),'width':_0x19a470(0x1b3),'height':_0x19a470(0x1b3)},'children':[{'tag':'path','attrs':{'fill':_0x19a470(0x20b),'d':_0x19a470(0x29c)}},{'tag':_0x19a470(0x244),'attrs':{'fill':_0x19a470(0x20b),'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':_0x19a470(0x29b),'clipRule':_0x19a470(0x29b)}}]},_0x1f6af7=_0x54d5d7[_0x19a470(0x1cf)](function(_0x361020,_0x3eb5dd){var _0x529868=_0x19a470;return _0x54d5d7[_0x529868(0x23f)](_0x53c23a,Object[_0x529868(0x273)]({},_0x361020,{'id':'live-share-icon','ref':_0x3eb5dd,'icon':_0x14dcfc}));});_0x1f6af7[_0x19a470(0x26a)]=_0x19a470(0x1bc);var _0x54bd61=Object[_0x19a470(0x22c)],_0x288c50=(_0x22b4d3,_0x39c544,_0x2c926a,_0x2937cb)=>{for(var _0x1cc17a=_0x2937cb>0x1?void 0x0:_0x2937cb?_0x54bd61(_0x39c544,_0x2c926a):_0x39c544,_0x400297=_0x22b4d3['length']-0x1,_0x420a1a;_0x400297>=0x0;_0x400297--)(_0x420a1a=_0x22b4d3[_0x400297])&&(_0x1cc17a=_0x420a1a(_0x1cc17a)||_0x1cc17a);return _0x1cc17a;},_0x3f9a81=(_0x3736ea,_0x26a46a)=>(_0x4c8564,_0x113961)=>_0x26a46a(_0x4c8564,_0x113961,_0x3736ea);_0x2a034c[_0x19a470(0x1fb)]=class extends _0x214637[_0x19a470(0x297)]{constructor(_0x45e3ff,_0x4ac657,_0x77aec2){var _0xb0c611=_0x19a470;super(),_0x3863ad(this,_0xb0c611(0x1d3),new Map()),(this['_univerInstanceService']=_0x45e3ff,this[_0xb0c611(0x280)]=_0x4ac657,this['_collabSessionService']=_0x77aec2,this[_0xb0c611(0x22f)]());}async[_0x19a470(0x1d9)](_0x1536ea){var _0x12dabe=_0x19a470;return this[_0x12dabe(0x1d3)]['has'](_0x1536ea)||await this[_0x12dabe(0x24b)](_0x1536ea),this['_entities'][_0x12dabe(0x225)](_0x1536ea);}[_0x19a470(0x22f)](){var _0x4290cc=_0x19a470;this[_0x4290cc(0x250)][_0x4290cc(0x25b)](_0x214637[_0x4290cc(0x1ca)][_0x4290cc(0x220)])[_0x4290cc(0x284)](_0x1dafc4[_0x4290cc(0x1ba)](this[_0x4290cc(0x1ec)]))[_0x4290cc(0x217)](async _0x293740=>{var _0x244da8=_0x4290cc;const _0x58bf6b=_0x293740[_0x244da8(0x20e)]();this['_entities'][_0x244da8(0x20f)](_0x58bf6b)||this[_0x244da8(0x24b)](_0x58bf6b);}),this[_0x4290cc(0x250)][_0x4290cc(0x299)](_0x214637['UniverInstanceType'][_0x4290cc(0x220)])['pipe'](_0x1dafc4[_0x4290cc(0x1ba)](this[_0x4290cc(0x1ec)]))[_0x4290cc(0x217)](_0x34aa58=>{var _0x49cd5=_0x4290cc;const _0x36c5d2=_0x34aa58[_0x49cd5(0x20e)](),_0x2dc3b0=this[_0x49cd5(0x1d3)]['get'](_0x36c5d2);_0x2dc3b0==null||_0x2dc3b0['dispose']();});}async['_startLiveShareCoordinator'](_0x3f2977){var _0x42bc27=_0x19a470;const _0x21d3c1=await this['_collabSessionService']['requireSession'](_0x3f2977),_0x21bfe5=this['_injector']['createInstance'](_0x2a034c[_0x42bc27(0x1ea)],_0x3f2977,_0x21d3c1);return _0x21bfe5[_0x42bc27(0x1d2)](),this[_0x42bc27(0x1d3)]['set'](_0x3f2977,_0x21bfe5),_0x21bfe5;}},_0x2a034c[_0x19a470(0x1fb)]=_0x288c50([_0x3f9a81(0x0,_0x214637[_0x19a470(0x2ac)]),_0x3f9a81(0x1,_0x214637[_0x19a470(0x1cd)](_0x214637[_0x19a470(0x204)])),_0x3f9a81(0x2,_0x214637['Inject'](_0x44068f[_0x19a470(0x256)]))],_0x2a034c['LiveShareController']);var _0x46fa92=(_0x5b529d=>(_0x5b529d['OFFLINE']=_0x19a470(0x207),_0x5b529d[_0x19a470(0x282)]=_0x19a470(0x22d),_0x5b529d['FOLLOWING']=_0x19a470(0x26e),_0x5b529d[_0x19a470(0x208)]=_0x19a470(0x1d1),_0x5b529d[_0x19a470(0x1b7)]=_0x19a470(0x1d0),_0x5b529d))(_0x46fa92||{});const _0x15d201=_0x19a470(0x281),_0x2494e7=0xc8;_0x2a034c[_0x19a470(0x1ea)]=class extends _0x214637['RxDisposable']{constructor(_0x33f9b1,_0x3cb7f1,_0x1cf47c,_0x42d835,_0x2aa2a4){var _0x119ab9=_0x19a470;super(),_0x3863ad(this,'_status$',new _0x507716[(_0x119ab9(0x206))](_0x119ab9(0x22d))),_0x3863ad(this,_0x119ab9(0x2a7),this[_0x119ab9(0x1f2)][_0x119ab9(0x272)]()),_0x3863ad(this,'_init',!0x1),_0x3863ad(this,_0x119ab9(0x22a),null),_0x3863ad(this,_0x119ab9(0x283),null),(this[_0x119ab9(0x1be)]=_0x33f9b1,this[_0x119ab9(0x259)]=_0x3cb7f1,this[_0x119ab9(0x1c9)]=_0x1cf47c,this['_liveShareService']=_0x42d835,this['_commandService']=_0x2aa2a4);}get[_0x19a470(0x294)](){var _0x3b0e83=_0x19a470;return this[_0x3b0e83(0x1f2)][_0x3b0e83(0x239)]();}['dispose'](){var _0x2a7684=_0x19a470,_0x4f7e5c;(_0x4f7e5c=this['_commandDisposable'])==null||_0x4f7e5c[_0x2a7684(0x1de)](),this[_0x2a7684(0x1f2)][_0x2a7684(0x271)](_0x2a7684(0x22d)),this[_0x2a7684(0x1f2)]['complete']();}['init'](){var _0x5405df=_0x19a470;this[_0x5405df(0x22f)]||(this[_0x5405df(0x22f)]=!0x0,this[_0x5405df(0x259)][_0x5405df(0x285)][_0x5405df(0x284)](_0x1dafc4['takeUntil'](this[_0x5405df(0x1ec)]))[_0x5405df(0x217)](_0x340657=>{var _0x4f5cc5=_0x5405df;switch(_0x340657){case _0x44068f[_0x4f5cc5(0x291)][_0x4f5cc5(0x1e0)]:this[_0x4f5cc5(0x247)]();break;case _0x44068f[_0x4f5cc5(0x291)][_0x4f5cc5(0x287)]:this['_handleOnline']();break;}}),this[_0x5405df(0x259)][_0x5405df(0x23a)][_0x5405df(0x284)](_0x1dafc4[_0x5405df(0x1ba)](this['dispose$']))['subscribe'](_0x418bf7=>{var _0x4227aa=_0x5405df;const {eventID:_0x4cd97a}=_0x418bf7;switch(_0x4cd97a){case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x1da)]:this[_0x4227aa(0x1e7)](_0x418bf7);break;case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x28b)]:this[_0x4227aa(0x1eb)](_0x418bf7);break;case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x1e5)]:this[_0x4227aa(0x1cb)]();break;case _0x497455[_0x4227aa(0x1c1)][_0x4227aa(0x249)]:this[_0x4227aa(0x1e6)](_0x418bf7);break;}}));}[_0x19a470(0x1e2)](){var _0x3dabf2=_0x19a470;this['_collabSession'][_0x3dabf2(0x226)]({'eventID':_0x497455[_0x3dabf2(0x1c1)][_0x3dabf2(0x227)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x3dabf2(0x1be)]);}[_0x19a470(0x202)](){var _0x56bb94=_0x19a470;this[_0x56bb94(0x294)]===_0x56bb94(0x1d0)&&(this[_0x56bb94(0x1f2)][_0x56bb94(0x271)]('idle'),this[_0x56bb94(0x259)][_0x56bb94(0x226)]({'eventID':_0x497455[_0x56bb94(0x1c1)][_0x56bb94(0x1e5)],'data':{'unitID':this[_0x56bb94(0x1be)]}},this[_0x56bb94(0x1be)]));}[_0x19a470(0x253)](){var _0x4ef722=_0x19a470;this['_status']===_0x4ef722(0x1d1)&&(this[_0x4ef722(0x1f2)][_0x4ef722(0x271)](_0x4ef722(0x26e)),this[_0x4ef722(0x255)]());}[_0x19a470(0x242)](){var _0x40cee7=_0x19a470;this[_0x40cee7(0x294)]==='following'&&this[_0x40cee7(0x1e4)]();}['_handleNewHost'](_0x49bdd7){var _0x5a2ed9=_0x19a470;const {presenter:_0x2d215b}=_0x49bdd7['data'],_0x4bdeb0=this[_0x5a2ed9(0x259)][_0x5a2ed9(0x203)]();this['_presenter']=_0x2d215b,_0x2d215b===_0x4bdeb0?(this[_0x5a2ed9(0x1e4)](),this[_0x5a2ed9(0x25a)]()):this[_0x5a2ed9(0x294)]!=='not-following'&&(this[_0x5a2ed9(0x27e)](),this['_startFollowing']());}[_0x19a470(0x1c5)](){var _0x40e35f=_0x19a470;const _0x1864bd={'eventID':_0x497455['CollaborationEvent'][_0x40e35f(0x1ce)]};this['_collabSession'][_0x40e35f(0x226)](_0x1864bd,this['_unitID']);}[_0x19a470(0x1cb)](){var _0x258760=_0x19a470;this[_0x258760(0x283)]=null,this['_status']!==_0x258760(0x1d0)&&this[_0x258760(0x278)]();}[_0x19a470(0x1e6)](_0x2aeb5a){var _0x562658=_0x19a470;if(this[_0x562658(0x294)]===_0x562658(0x26e)&&this[_0x562658(0x283)]===_0x2aeb5a[_0x562658(0x1fa)][_0x562658(0x269)]){const _0x21b5bd=_0x497455[_0x562658(0x231)](_0x2aeb5a[_0x562658(0x1fa)])[_0x562658(0x210)][_0x562658(0x26c)]()[_0x562658(0x21e)](_0x287b06=>_0x287b06['id']===_0x4c7348[_0x562658(0x298)]['id']);if(_0x21b5bd){const _0x55afa8=_0x21b5bd[_0x562658(0x1c6)][_0x562658(0x267)],_0x10543a=_0x21b5bd[_0x562658(0x1c6)][_0x562658(0x24e)]['id'];setTimeout(()=>{var _0x1192fd=_0x562658;this[_0x1192fd(0x1d7)][_0x1192fd(0x1df)](_0x4c7348[_0x1192fd(0x25c)]['id'],{'unitId':_0x55afa8,'subUnitId':_0x10543a},{'fromCollab':!0x0});});}}}[_0x19a470(0x25a)](){var _0x52ab71=_0x19a470;this['_status$'][_0x52ab71(0x271)](_0x52ab71(0x1d0));const _0x323dc0=new Map(),_0x51d3b3=this[_0x52ab71(0x22a)]=new _0x214637[(_0x52ab71(0x2a5))]();_0x51d3b3[_0x52ab71(0x2ab)](_0x214637[_0x52ab71(0x2a3)](()=>{var _0x20f871=_0x52ab71;_0x323dc0['forEach'](_0x1321a3=>_0x1321a3['complete']()),_0x323dc0[_0x20f871(0x23e)]();})),_0x51d3b3[_0x52ab71(0x2ab)](this['_commandService']['onCommandExecuted'](_0x44b01b=>{var _0x1d0fbc=_0x52ab71,_0x593d72;if(_0x44b01b['type']!==_0x214637['CommandType'][_0x1d0fbc(0x1f0)]||!this[_0x1d0fbc(0x1b8)][_0x1d0fbc(0x27f)](_0x44b01b['id']))return;const {id:_0x45f93d}=_0x44b01b;let _0x263ae1;_0x323dc0['has'](_0x45f93d)?_0x263ae1=_0x323dc0[_0x1d0fbc(0x225)](_0x45f93d):(_0x263ae1=new _0x507716[(_0x1d0fbc(0x28a))](),_0x323dc0[_0x1d0fbc(0x21c)](_0x45f93d,_0x263ae1),_0x263ae1[_0x1d0fbc(0x284)](_0x1dafc4['throttleTime']((_0x593d72=this[_0x1d0fbc(0x1c9)]['getConfig'](_0x15d201))!=null?_0x593d72:_0x2494e7,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1d0fbc(0x217)](_0x3c4765=>{var _0x5e236e=_0x1d0fbc;this['_collabSession'][_0x5e236e(0x226)]({'eventID':_0x497455[_0x5e236e(0x1c1)][_0x5e236e(0x28b)],'data':{'unitID':this[_0x5e236e(0x1be)],'operations':{[_0x3c4765['id']]:{'id':_0x3c4765['id'],'params':JSON[_0x5e236e(0x1f7)](_0x3c4765[_0x5e236e(0x1c6)])}}}},this[_0x5e236e(0x1be)]);})),_0x263ae1[_0x1d0fbc(0x271)](_0x44b01b);})),this[_0x52ab71(0x1b8)][_0x52ab71(0x21f)](this[_0x52ab71(0x1be)])['forEach'](_0x29d164=>this[_0x52ab71(0x259)]['send']({'eventID':_0x497455[_0x52ab71(0x1c1)][_0x52ab71(0x28b)],'data':{'unitID':this[_0x52ab71(0x1be)],'operations':{[_0x29d164['id']]:{'id':_0x29d164['id'],'params':JSON[_0x52ab71(0x1f7)](_0x29d164[_0x52ab71(0x1c6)])}}}},this['_unitID']));}[_0x19a470(0x27e)](){var _0x3ccd92=_0x19a470,_0x48aacb;this[_0x3ccd92(0x1f2)][_0x3ccd92(0x271)]('idle'),(_0x48aacb=this[_0x3ccd92(0x22a)])==null||_0x48aacb[_0x3ccd92(0x1de)](),this['_commandDisposable']=null;}[_0x19a470(0x255)](){var _0x793006=_0x19a470,_0xd566f1;(_0xd566f1=this[_0x793006(0x22a)])==null||_0xd566f1['dispose'](),this[_0x793006(0x1f2)][_0x793006(0x271)](_0x793006(0x26e));}[_0x19a470(0x278)](){var _0x241543=_0x19a470,_0x308500;this[_0x241543(0x1f2)][_0x241543(0x271)](_0x241543(0x22d)),(_0x308500=this[_0x241543(0x22a)])==null||_0x308500[_0x241543(0x1de)](),this[_0x241543(0x22a)]=null;}[_0x19a470(0x1e4)](){var _0x44a5cb=_0x19a470,_0x20d647;this[_0x44a5cb(0x1f2)][_0x44a5cb(0x271)]('not-following'),(_0x20d647=this[_0x44a5cb(0x22a)])==null||_0x20d647[_0x44a5cb(0x1de)]();}[_0x19a470(0x1eb)](_0x3770ab){var _0x20d5c6=_0x19a470;if([_0x20d5c6(0x1d0),_0x20d5c6(0x1d1),_0x20d5c6(0x207)][_0x20d5c6(0x1f9)](this[_0x20d5c6(0x294)])||!_0x3770ab['data'][_0x20d5c6(0x215)]||_0x3770ab[_0x20d5c6(0x1fa)]['presenter']===this['_collabSession'][_0x20d5c6(0x203)]())return;this[_0x20d5c6(0x294)]===_0x20d5c6(0x22d)&&this['_startFollowing']();const _0x2c9371=_0x3770ab[_0x20d5c6(0x1fa)][_0x20d5c6(0x209)];Object['values'](_0x2c9371)[_0x20d5c6(0x1db)](_0x2c1286=>{var _0x18a69d=_0x20d5c6;this['_commandService'][_0x18a69d(0x1df)](_0x2c1286['id'],_0x2c1286[_0x18a69d(0x1c6)]?JSON[_0x18a69d(0x1c8)](_0x2c1286[_0x18a69d(0x1c6)]):null,{'fromCollab':!0x0});});}[_0x19a470(0x247)](){var _0x9ccdbc=_0x19a470,_0x110218;this['_status$'][_0x9ccdbc(0x271)](_0x9ccdbc(0x207)),(_0x110218=this[_0x9ccdbc(0x22a)])==null||_0x110218['dispose']();}[_0x19a470(0x1dc)](){var _0x322c29=_0x19a470;this[_0x322c29(0x1f2)][_0x322c29(0x271)](_0x322c29(0x22d)),this[_0x322c29(0x1c5)]();}},_0x2a034c[_0x19a470(0x1ea)]=_0x288c50([_0x3f9a81(0x2,_0x214637['IConfigService']),_0x3f9a81(0x3,_0x214637[_0x19a470(0x1cd)](_0x416f9b)),_0x3f9a81(0x4,_0x214637[_0x19a470(0x25e)])],_0x2a034c['LiveShareCoordinator']);function _0x17fa9e(){var _0xce4442=_0x19a470;const _0x422718=_0xced2db[_0xce4442(0x1e1)](_0x2a034c[_0xce4442(0x1fb)]),_0x2ef103=_0xced2db[_0xce4442(0x1e1)](_0x214637[_0xce4442(0x2ac)]),_0x5e662f=_0xced2db[_0xce4442(0x29d)](()=>_0x2ef103['getCurrentTypeOfUnit$'](_0x214637[_0xce4442(0x1ca)][_0xce4442(0x220)]),void 0x0,!0x1,[]),[_0x33bcc4,_0x1a144b]=_0x54d5d7[_0xce4442(0x293)](null),[_0x2eb338,_0x55e19d]=_0x54d5d7[_0xce4442(0x293)](_0x46fa92[_0xce4442(0x282)]),_0x1e43ec=_0x54d5d7[_0xce4442(0x1f5)](null);return _0x54d5d7[_0xce4442(0x232)](()=>(_0x5e662f&&_0x422718['getLiveShareCoordinator'](_0x5e662f['getUnitId']())[_0xce4442(0x200)](_0xc29e42=>{var _0xf457b2=_0xce4442;_0x1a144b(_0xc29e42),_0x1e43ec[_0xf457b2(0x205)]=_0xc29e42[_0xf457b2(0x2a7)]['subscribe'](_0x19c5c=>{_0x55e19d(_0x19c5c);});}),()=>{var _0x5b0050=_0xce4442,_0x1731f5;(_0x1731f5=_0x1e43ec['current'])==null||_0x1731f5['unsubscribe'](),_0x1e43ec[_0x5b0050(0x205)]=null;}),[_0x5e662f,_0x422718]),_0x33bcc4?_0x3a11cc[_0xce4442(0x236)](_0x93a8e2[_0xce4442(0x254)],{'align':_0xce4442(0x28d),'disabled':_0x2eb338===_0x46fa92[_0xce4442(0x1e0)],'className':_0xce4442(0x1bd),'overlay':_0x3a11cc[_0xce4442(0x236)](_0x19438c,{'status':_0x2eb338,'coordinator':_0x33bcc4}),'children':_0x3a11cc[_0xce4442(0x236)]('button',{'className':_0x93a8e2[_0xce4442(0x1d6)](_0xce4442(0x1d8),{'univer-cursor-not-allowed':_0x2eb338===_0x46fa92[_0xce4442(0x1e0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2eb338!==_0x46fa92[_0xce4442(0x1e0)]}),'type':_0xce4442(0x27d),'children':_0x3a11cc[_0xce4442(0x236)](_0x1f6af7,{'className':'univer-size-4'})})}):null;}function _0x19438c(_0x476bdb){var _0x3d88ba=_0x19a470;const {status:_0x3d64a4,coordinator:_0x4b559d}=_0x476bdb;switch(_0x3d64a4){case _0x46fa92[_0x3d88ba(0x282)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x2ee184,{'coordinator':_0x4b559d});case _0x46fa92[_0x3d88ba(0x229)]:return _0x3a11cc[_0x3d88ba(0x236)](_0xd05273,{'coordinator':_0x4b559d});case _0x46fa92[_0x3d88ba(0x208)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x5203e0,{'coordinator':_0x4b559d});case _0x46fa92[_0x3d88ba(0x1e0)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x41a0b3,{});case _0x46fa92[_0x3d88ba(0x1b7)]:return _0x3a11cc[_0x3d88ba(0x236)](_0x210262,{'coordinator':_0x4b559d});default:return null;}}function _0x2ee184(_0x219f03){var _0x5f4fd5=_0x19a470;const {coordinator:_0x2e5a71}=_0x219f03;return _0x3a11cc['jsxs'](_0x3a11cc[_0x5f4fd5(0x214)],{'children':[_0x3a11cc[_0x5f4fd5(0x236)](_0x5f4fd5(0x2a0),{'className':_0x5f4fd5(0x1f4),'children':_0x5f4fd5(0x1c4)}),_0x3a11cc[_0x5f4fd5(0x236)](_0x93a8e2['Button'],{'onClick':()=>_0x2e5a71[_0x5f4fd5(0x1e2)](),'children':'Start'})]});}function _0xd05273(_0x278222){var _0x5e4ea7=_0x19a470;const {coordinator:_0x3912c8}=_0x278222;return _0x3a11cc[_0x5e4ea7(0x235)](_0x3a11cc[_0x5e4ea7(0x214)],{'children':[_0x3a11cc[_0x5e4ea7(0x236)]('div',{'className':_0x5e4ea7(0x1f4),'children':_0x5e4ea7(0x234)}),_0x3a11cc[_0x5e4ea7(0x236)](_0x93a8e2[_0x5e4ea7(0x219)],{'onClick':()=>_0x3912c8[_0x5e4ea7(0x242)](),'children':'Stop\x20following'})]});}function _0x5203e0(_0x37c9ec){var _0x1be7c6=_0x19a470;const {coordinator:_0x1d2a86}=_0x37c9ec;return _0x3a11cc[_0x1be7c6(0x235)](_0x3a11cc['Fragment'],{'children':[_0x3a11cc[_0x1be7c6(0x236)](_0x1be7c6(0x2a0),{'className':_0x1be7c6(0x1f4),'children':_0x1be7c6(0x1dd)}),_0x3a11cc[_0x1be7c6(0x236)](_0x93a8e2[_0x1be7c6(0x219)],{'variant':'text','onClick':()=>_0x1d2a86[_0x1be7c6(0x253)](),'children':_0x1be7c6(0x1e3)})]});}function _0x210262(_0x5de77a){var _0x233c83=_0x19a470;const {coordinator:_0x22b09a}=_0x5de77a;return _0x3a11cc['jsxs'](_0x3a11cc[_0x233c83(0x214)],{'children':[_0x3a11cc['jsx']('div',{'className':_0x233c83(0x1f4),'children':_0x233c83(0x28e)}),_0x3a11cc['jsx'](_0x93a8e2[_0x233c83(0x219)],{'variant':_0x233c83(0x27b),'onClick':()=>_0x22b09a[_0x233c83(0x202)](),'children':'Stop\x20presenting'})]});}function _0x41a0b3(){var _0x445ccb=_0x19a470;return _0x3a11cc['jsx'](_0x3a11cc[_0x445ccb(0x214)],{'children':_0x445ccb(0x1d4)});}var _0x130ea4=Object[_0x19a470(0x22c)],_0x36ed6d=(_0x1d533c,_0x1f1c23,_0x1e162b,_0x55bee6)=>{var _0x1a97b8=_0x19a470;for(var _0x4cd539=_0x55bee6>0x1?void 0x0:_0x55bee6?_0x130ea4(_0x1f1c23,_0x1e162b):_0x1f1c23,_0x118bb2=_0x1d533c[_0x1a97b8(0x1c0)]-0x1,_0x4767a2;_0x118bb2>=0x0;_0x118bb2--)(_0x4767a2=_0x1d533c[_0x118bb2])&&(_0x4cd539=_0x4767a2(_0x4cd539)||_0x4cd539);return _0x4cd539;},_0x4df61b=(_0x5cd0c9,_0x38db96)=>(_0x49e184,_0x2897e0)=>_0x38db96(_0x49e184,_0x2897e0,_0x5cd0c9);_0x2a034c['DesktopLiveShareController']=class extends _0x214637[_0x19a470(0x246)]{constructor(_0x4b0362,_0x165b37){var _0x23481b=_0x19a470;super(),this[_0x23481b(0x280)]=_0x4b0362,this[_0x23481b(0x2a9)]=_0x165b37,this[_0x23481b(0x1e8)]();}[_0x19a470(0x1e8)](){var _0x5a3a33=_0x19a470;this[_0x5a3a33(0x274)](this['_uiPartsService'][_0x5a3a33(0x211)](_0xced2db[_0x5a3a33(0x1f6)][_0x5a3a33(0x288)],()=>_0xced2db[_0x5a3a33(0x2a4)](_0x17fa9e,this[_0x5a3a33(0x280)])));}},_0x2a034c[_0x19a470(0x1ff)]=_0x36ed6d([_0x4df61b(0x0,_0x214637[_0x19a470(0x1cd)](_0x214637[_0x19a470(0x204)])),_0x4df61b(0x1,_0xced2db['IUIPartsService'])],_0x2a034c[_0x19a470(0x1ff)]);var _0x5b6a16=Object[_0x19a470(0x286)],_0x9aa8e6=Object['getOwnPropertyDescriptor'],_0x5ea762=(_0x56dd2e,_0x343774,_0xdfcc07)=>_0x343774 in _0x56dd2e?_0x5b6a16(_0x56dd2e,_0x343774,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdfcc07}):_0x56dd2e[_0x343774]=_0xdfcc07,_0x163d3f=(_0x31cd24,_0x6807ca,_0x35d9ee,_0x4c3aa0)=>{for(var _0x4acc81=_0x4c3aa0>0x1?void 0x0:_0x4c3aa0?_0x9aa8e6(_0x6807ca,_0x35d9ee):_0x6807ca,_0x1a263b=_0x31cd24['length']-0x1,_0x92cfe6;_0x1a263b>=0x0;_0x1a263b--)(_0x92cfe6=_0x31cd24[_0x1a263b])&&(_0x4acc81=_0x92cfe6(_0x4acc81)||_0x4acc81);return _0x4acc81;},_0x30c8ea=(_0x106fb9,_0x45f9fa)=>(_0x30c0e0,_0x588d5b)=>_0x45f9fa(_0x30c0e0,_0x588d5b,_0x106fb9),_0x574b49=(_0x5f5c72,_0x1b97b5,_0x5c46a9)=>_0x5ea762(_0x5f5c72,typeof _0x1b97b5!='symbol'?_0x1b97b5+'':_0x1b97b5,_0x5c46a9);const _0x5d3860=_0x19a470(0x25f);_0x2a034c[_0x19a470(0x266)]=class extends _0x214637['Plugin']{constructor(_0x4d41=_0x15fc2a,_0x540fbb,_0x2bd65c){var _0x2201af=_0x19a470;super(),this['_config']=_0x4d41,this['_injector']=_0x540fbb,this[_0x2201af(0x1c9)]=_0x2bd65c;const {..._0x56a1b6}=_0x214637['merge']({},_0x15fc2a,this[_0x2201af(0x1fe)]);this[_0x2201af(0x1c9)][_0x2201af(0x24f)](_0x150d50,_0x56a1b6);}[_0x19a470(0x21a)](){var _0x1bbbfa=_0x19a470;_0x214637[_0x1bbbfa(0x28c)](this['_injector'],_0x214637['mergeOverrideWithDependencies']([[_0x416f9b],[_0x2a034c[_0x1bbbfa(0x1fb)]],[_0x2bf0a6],[_0x2a034c[_0x1bbbfa(0x1ff)]]],this[_0x1bbbfa(0x1fe)][_0x1bbbfa(0x1d5)])),_0x214637[_0x1bbbfa(0x26f)](this[_0x1bbbfa(0x280)],[[_0x2bf0a6]]);}[_0x19a470(0x2a8)](){var _0x5c406a=_0x19a470;_0x214637[_0x5c406a(0x26f)](this[_0x5c406a(0x280)],[[_0x2a034c[_0x5c406a(0x1ff)]]]);}},_0x574b49(_0x2a034c[_0x19a470(0x266)],_0x19a470(0x292),_0x214637[_0x19a470(0x1ca)][_0x19a470(0x26d)]),_0x574b49(_0x2a034c[_0x19a470(0x266)],_0x19a470(0x201),_0x5d3860),_0x2a034c[_0x19a470(0x266)]=_0x163d3f([_0x214637[_0x19a470(0x238)](_0x44068f[_0x19a470(0x2a1)]),_0x30c8ea(0x1,_0x214637[_0x19a470(0x1cd)](_0x214637['Injector'])),_0x30c8ea(0x2,_0x214637[_0x19a470(0x25d)])],_0x2a034c[_0x19a470(0x266)]),_0x2a034c[_0x19a470(0x276)]=_0x17fa9e,_0x2a034c[_0x19a470(0x270)]=_0x416f9b,_0x2a034c['LiveShareStatus']=_0x46fa92,Object[_0x19a470(0x286)](_0x2a034c,Symbol[_0x19a470(0x296)],{'value':'Module'});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.9.1-nightly.202507061606",
3
+ "version": "0.9.1-nightly.202507071607",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration": "0.9.1-nightly.202507061606",
51
- "@univerjs-pro/collaboration-client": "0.9.1-nightly.202507061606",
52
- "@univerjs/core": "0.9.1-nightly.202507061606",
53
- "@univerjs/sheets": "0.9.1-nightly.202507061606",
54
- "@univerjs/sheets-ui": "0.9.1-nightly.202507061606",
55
- "@univerjs/design": "0.9.1-nightly.202507061606",
56
- "@univerjs/ui": "0.9.1-nightly.202507061606"
50
+ "@univerjs-pro/collaboration-client": "0.9.1-nightly.202507071607",
51
+ "@univerjs/core": "0.9.1-nightly.202507071607",
52
+ "@univerjs-pro/collaboration": "0.9.1-nightly.202507071607",
53
+ "@univerjs/sheets": "0.9.1-nightly.202507071607",
54
+ "@univerjs/design": "0.9.1-nightly.202507071607",
55
+ "@univerjs/ui": "0.9.1-nightly.202507071607",
56
+ "@univerjs/sheets-ui": "0.9.1-nightly.202507071607"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",