@univerjs-pro/live-share 0.8.1-nightly.202506121607 → 0.8.1-nightly.202506141606

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 _0x82621=_0x123a;(function(_0x30ed67,_0x3b200a){var _0x2fd9be=_0x123a,_0x3c0cf8=_0x30ed67();while(!![]){try{var _0x16ee94=-parseInt(_0x2fd9be(0xff))/0x1+parseInt(_0x2fd9be(0x102))/0x2*(parseInt(_0x2fd9be(0x118))/0x3)+-parseInt(_0x2fd9be(0x134))/0x4+parseInt(_0x2fd9be(0xb1))/0x5+-parseInt(_0x2fd9be(0x10f))/0x6+parseInt(_0x2fd9be(0xa3))/0x7*(parseInt(_0x2fd9be(0x10e))/0x8)+parseInt(_0x2fd9be(0xe6))/0x9;if(_0x16ee94===_0x3b200a)break;else _0x3c0cf8['push'](_0x3c0cf8['shift']());}catch(_0x337851){_0x3c0cf8['push'](_0x3c0cf8['shift']());}}}(_0x1392,0x686cd));var U=Object[_0x82621(0xd1)],F=(_0x2a5944,_0x27b13d,_0x40e04d)=>_0x27b13d in _0x2a5944?U(_0x2a5944,_0x27b13d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40e04d}):_0x2a5944[_0x27b13d]=_0x40e04d,v=(_0x7eecb0,_0x31d989,_0x53e0a4)=>F(_0x7eecb0,typeof _0x31d989!=_0x82621(0x94)?_0x31d989+'':_0x31d989,_0x53e0a4);Object[_0x82621(0xd1)](exports,Symbol[_0x82621(0x125)],{'value':_0x82621(0xf3)});const m=require(_0x82621(0xc1)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require(_0x82621(0x89)),p=require(_0x82621(0xb2)),l=require('react/jsx-runtime'),g=require(_0x82621(0xa9)),f=require('react'),_=require(_0x82621(0x157)),D=require('rxjs'),b=require(_0x82621(0x10d)),$=_0x82621(0x8a),x={};class O extends o[_0x82621(0x146)]{constructor(){var _0xd2a5e0=_0x82621;super(...arguments),v(this,_0xd2a5e0(0x119),new Set()),v(this,_0xd2a5e0(0xc7),new Set());}[_0x82621(0x11a)](_0x29f5de){var _0x4f119a=_0x82621;return this[_0x4f119a(0x119)][_0x4f119a(0xd3)](_0x29f5de),o[_0x4f119a(0xc9)](()=>this[_0x4f119a(0x119)][_0x4f119a(0x103)](_0x29f5de));}[_0x82621(0x13b)](_0x5ad70e){var _0x129557=_0x82621;return this[_0x129557(0xc7)]['add'](_0x5ad70e),o[_0x129557(0xc9)](()=>this[_0x129557(0xc7)][_0x129557(0x103)](_0x5ad70e));}[_0x82621(0x131)](_0x2f6807){var _0x4199eb=_0x82621;return this[_0x4199eb(0x119)][_0x4199eb(0x15c)](_0x2f6807);}[_0x82621(0x111)](_0x1c3b1d){var _0x164ea4=_0x82621;return Array[_0x164ea4(0xb8)](this[_0x164ea4(0xc7)])[_0x164ea4(0xbc)](_0x142a02=>_0x142a02(_0x1c3b1d));}}var H=Object[_0x82621(0xbd)],V=(_0xa923f5,_0x4577d3,_0x231496,_0x26c922)=>{var _0xcf4c09=_0x82621;for(var _0x46903e=_0x26c922>0x1?void 0x0:_0x26c922?H(_0x4577d3,_0x231496):_0x4577d3,_0x5e96fb=_0xa923f5[_0xcf4c09(0x14c)]-0x1,_0xa51acf;_0x5e96fb>=0x0;_0x5e96fb--)(_0xa51acf=_0xa923f5[_0x5e96fb])&&(_0x46903e=_0xa51acf(_0x46903e)||_0x46903e);return _0x46903e;},k=(_0x27a0dd,_0x234544)=>(_0x5bfb6c,_0x5931c3)=>_0x234544(_0x5bfb6c,_0x5931c3,_0x27a0dd);let E=class extends o[_0x82621(0x146)]{constructor(_0x537420){super(),this['_liveShareService']=_0x537420,this['_init']();}[_0x82621(0x14f)](){var _0x4a671e=_0x82621;[w['SetZoomRatioOperation']['id'],w[_0x4a671e(0xe7)]['id'],C[_0x4a671e(0xdb)]['id']][_0x4a671e(0x10a)](_0x3c53c5=>{var _0x51f17a=_0x4a671e;this[_0x51f17a(0xf1)](this[_0x51f17a(0xcf)]['registerSharedOperation'](_0x3c53c5));});}};E=V([k(0x0,o[_0x82621(0xa7)](O))],E);var u=function(){var _0x122630=_0x82621;return u=Object['assign']||function(_0xf064d2){var _0x13b2c5=_0x123a;for(var _0x43c08c,_0x259927=0x1,_0x1d14eb=arguments[_0x13b2c5(0x14c)];_0x259927<_0x1d14eb;_0x259927++){_0x43c08c=arguments[_0x259927];for(var _0x395c8e in _0x43c08c)Object[_0x13b2c5(0x11b)][_0x13b2c5(0xe5)]['call'](_0x43c08c,_0x395c8e)&&(_0xf064d2[_0x395c8e]=_0x43c08c[_0x395c8e]);}return _0xf064d2;},u[_0x122630(0xec)](this,arguments);},M=function(_0x387218,_0x3795ae){var _0x2bda0b=_0x82621,_0x6942a8={};for(var _0x19ad33 in _0x387218)Object[_0x2bda0b(0x11b)]['hasOwnProperty']['call'](_0x387218,_0x19ad33)&&_0x3795ae[_0x2bda0b(0xd8)](_0x19ad33)<0x0&&(_0x6942a8[_0x19ad33]=_0x387218[_0x19ad33]);if(_0x387218!=null&&typeof Object['getOwnPropertySymbols']==_0x2bda0b(0xc6)){for(var _0x3ef627=0x0,_0x19ad33=Object['getOwnPropertySymbols'](_0x387218);_0x3ef627<_0x19ad33[_0x2bda0b(0x14c)];_0x3ef627++)_0x3795ae[_0x2bda0b(0xd8)](_0x19ad33[_0x3ef627])<0x0&&Object[_0x2bda0b(0x11b)]['propertyIsEnumerable']['call'](_0x387218,_0x19ad33[_0x3ef627])&&(_0x6942a8[_0x19ad33[_0x3ef627]]=_0x387218[_0x19ad33[_0x3ef627]]);}return _0x6942a8;},j=f[_0x82621(0x16c)](function(_0x3c67a1,_0x198fd9){var _0x5edaf9=_0x82621,_0x54308e=_0x3c67a1[_0x5edaf9(0xce)],_0x4727b1=_0x3c67a1['id'],_0x46d4bf=_0x3c67a1[_0x5edaf9(0xf6)],_0x45992a=_0x3c67a1[_0x5edaf9(0x11e)],_0x5f1c46=M(_0x3c67a1,[_0x5edaf9(0xce),'id',_0x5edaf9(0xf6),_0x5edaf9(0x11e)]),_0x44db73=_0x5edaf9(0x15b)[_0x5edaf9(0x104)](_0x4727b1,'\x20')[_0x5edaf9(0x104)](_0x46d4bf||'')[_0x5edaf9(0x101)](),_0xdcb8fa=f[_0x5edaf9(0x12a)]('_'[_0x5edaf9(0x104)](G()));return y(_0x54308e,''['concat'](_0x4727b1),{'defIds':_0x54308e[_0x5edaf9(0xc2)],'idSuffix':_0xdcb8fa[_0x5edaf9(0x12d)]},u({'ref':_0x198fd9,'className':_0x44db73},_0x5f1c46),_0x45992a);});function y(_0x440525,_0x4c1f3e,_0x542913,_0x106d89,_0x27db6a){var _0x18a18e=_0x82621;return f[_0x18a18e(0xbe)](_0x440525[_0x18a18e(0xba)],u(u({'key':_0x4c1f3e},q(_0x440525,_0x542913,_0x27db6a)),_0x106d89),(W(_0x440525,_0x542913)['children']||[])[_0x18a18e(0xbc)](function(_0x523ac4,_0x8e10b9){var _0x5927dc=_0x18a18e;return y(_0x523ac4,''[_0x5927dc(0x104)](_0x4c1f3e,'-')[_0x5927dc(0x104)](_0x440525[_0x5927dc(0xba)],'-')[_0x5927dc(0x104)](_0x8e10b9),_0x542913,void 0x0,_0x27db6a);}));}function _0x123a(_0x189a99,_0x3fef79){var _0x139215=_0x1392();return _0x123a=function(_0x123aaf,_0x40c89c){_0x123aaf=_0x123aaf-0x88;var _0x148235=_0x139215[_0x123aaf];return _0x148235;},_0x123a(_0x189a99,_0x3fef79);}function q(_0x3a44e7,_0x570845,_0xdf0614){var _0x4a061a=_0x82621,_0x7e6605=u({},_0x3a44e7[_0x4a061a(0x163)]);_0xdf0614!=null&&_0xdf0614[_0x4a061a(0x8b)]&&_0x7e6605[_0x4a061a(0x11f)]===_0x4a061a(0x8b)&&(_0x7e6605[_0x4a061a(0x11f)]=_0xdf0614['colorChannel1']),_0x3a44e7[_0x4a061a(0xba)]==='mask'&&_0x7e6605['id']&&(_0x7e6605['id']=_0x7e6605['id']+_0x570845[_0x4a061a(0x13e)]),Object[_0x4a061a(0xfd)](_0x7e6605)[_0x4a061a(0x10a)](function(_0x5e58bb){var _0x591653=_0x4a061a,_0x527a66=_0x5e58bb[0x0],_0x1c7e3c=_0x5e58bb[0x1];_0x527a66===_0x591653(0x16b)&&typeof _0x1c7e3c==_0x591653(0x108)&&(_0x7e6605[_0x527a66]=_0x1c7e3c[_0x591653(0x9a)](/url\(#(.*)\)/,_0x591653(0xb0)[_0x591653(0x104)](_0x570845[_0x591653(0x13e)],')')));});var _0x3a6eee=_0x570845[_0x4a061a(0xc2)];return!_0x3a6eee||_0x3a6eee[_0x4a061a(0x14c)]===0x0||(_0x3a44e7[_0x4a061a(0xba)]===_0x4a061a(0x90)&&_0x7e6605[_0x4a061a(0xea)]&&(_0x7e6605[_0x4a061a(0xea)]=_0x7e6605[_0x4a061a(0xea)]+_0x570845[_0x4a061a(0x13e)]),Object[_0x4a061a(0xfd)](_0x7e6605)['forEach'](function(_0xae70aa){var _0x3bef11=_0x4a061a,_0x11c8bc=_0xae70aa[0x0],_0x224c42=_0xae70aa[0x1];typeof _0x224c42==_0x3bef11(0x108)&&(_0x7e6605[_0x11c8bc]=_0x224c42[_0x3bef11(0x9a)](/url\(#(.*)\)/,_0x3bef11(0xb0)[_0x3bef11(0x104)](_0x570845[_0x3bef11(0x13e)],')')));})),_0x7e6605;}function W(_0x2eb6fb,_0x348b91){var _0x151ecc=_0x82621,_0x10e133,_0x3aff9b=_0x348b91['defIds'];return!_0x3aff9b||_0x3aff9b[_0x151ecc(0x14c)]===0x0?_0x2eb6fb:_0x2eb6fb[_0x151ecc(0xba)]==='defs'&&(!((_0x10e133=_0x2eb6fb[_0x151ecc(0x153)])===null||_0x10e133===void 0x0)&&_0x10e133['length'])?u(u({},_0x2eb6fb),{'children':_0x2eb6fb[_0x151ecc(0x153)][_0x151ecc(0xbc)](function(_0x39a092){var _0x143a07=_0x151ecc;return typeof _0x39a092[_0x143a07(0x163)]['id']==_0x143a07(0x108)&&_0x3aff9b&&_0x3aff9b[_0x143a07(0x121)](_0x39a092[_0x143a07(0x163)]['id'])?u(u({},_0x39a092),{'attrs':u(u({},_0x39a092[_0x143a07(0x163)]),{'id':_0x39a092[_0x143a07(0x163)]['id']+_0x348b91[_0x143a07(0x13e)]})}):_0x39a092;})}):_0x2eb6fb;}function G(){var _0x51da23=_0x82621;return Math[_0x51da23(0xd4)]()[_0x51da23(0x154)](0x24)['substring'](0x2,0x8);}j[_0x82621(0x130)]='UniverIcon';var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x82621(0x9e),'viewBox':_0x82621(0x12c),'width':'1em','height':_0x82621(0x13f)},'children':[{'tag':_0x82621(0x14d),'attrs':{'fill':_0x82621(0xfe),'d':_0x82621(0x161)}},{'tag':_0x82621(0x14d),'attrs':{'fill':'currentColor','d':_0x82621(0x88),'fillRule':'evenodd','clipRule':'evenodd'}}]},P=f[_0x82621(0x16c)](function(_0x3b9e5f,_0x393a42){var _0x549227=_0x82621;return f[_0x549227(0xbe)](j,Object[_0x549227(0x14a)]({},_0x3b9e5f,{'id':_0x549227(0x8d),'ref':_0x393a42,'icon':B}));});P['displayName']=_0x82621(0x144);var Y=Object[_0x82621(0xbd)],R=(_0x2ff270,_0x537d59,_0x164de6,_0x593360)=>{var _0x3328e9=_0x82621;for(var _0x2230b6=_0x593360>0x1?void 0x0:_0x593360?Y(_0x537d59,_0x164de6):_0x537d59,_0x35be23=_0x2ff270[_0x3328e9(0x14c)]-0x1,_0x412dca;_0x35be23>=0x0;_0x35be23--)(_0x412dca=_0x2ff270[_0x35be23])&&(_0x2230b6=_0x412dca(_0x2230b6)||_0x2230b6);return _0x2230b6;},S=(_0x62e088,_0x20c9e0)=>(_0x37d3eb,_0x3ff8ca)=>_0x20c9e0(_0x37d3eb,_0x3ff8ca,_0x62e088);exports[_0x82621(0xd5)]=class extends o[_0x82621(0x142)]{constructor(_0x2cca50,_0x3e7295,_0x19b4f0){var _0x3d54b2=_0x82621;super(),v(this,_0x3d54b2(0x124),new Map()),(this[_0x3d54b2(0x9d)]=_0x2cca50,this[_0x3d54b2(0xa4)]=_0x3e7295,this['_collabSessionService']=_0x19b4f0,this['_init']());}async[_0x82621(0xc4)](_0x23f6ab){var _0x3e5f73=_0x82621;return this[_0x3e5f73(0x124)][_0x3e5f73(0x15c)](_0x23f6ab)||await this[_0x3e5f73(0x145)](_0x23f6ab),this['_entities'][_0x3e5f73(0xde)](_0x23f6ab);}[_0x82621(0x14f)](){var _0x2b3dfa=_0x82621;this['_univerInstanceService'][_0x2b3dfa(0x10b)](o[_0x2b3dfa(0xfb)][_0x2b3dfa(0x15a)])['pipe'](b[_0x2b3dfa(0x167)](this[_0x2b3dfa(0xdd)]))[_0x2b3dfa(0x99)](async _0x117c47=>{var _0x521631=_0x2b3dfa;const _0x4e01c5=_0x117c47[_0x521631(0xab)]();this[_0x521631(0x124)][_0x521631(0x15c)](_0x4e01c5)||this[_0x521631(0x145)](_0x4e01c5);}),this['_univerInstanceService'][_0x2b3dfa(0xcc)](o[_0x2b3dfa(0xfb)][_0x2b3dfa(0x15a)])['pipe'](b[_0x2b3dfa(0x167)](this[_0x2b3dfa(0xdd)]))['subscribe'](_0x29c103=>{var _0x1d93c8=_0x2b3dfa;const _0x492983=_0x29c103[_0x1d93c8(0xab)](),_0x105e40=this[_0x1d93c8(0x124)][_0x1d93c8(0xde)](_0x492983);_0x105e40==null||_0x105e40[_0x1d93c8(0x15f)]();});}async[_0x82621(0x145)](_0x2c0d0f){var _0x1378ca=_0x82621;const _0x153000=await this['_collabSessionService'][_0x1378ca(0x105)](_0x2c0d0f),_0x4bbbf1=this[_0x1378ca(0xa4)][_0x1378ca(0x122)](exports[_0x1378ca(0xd2)],_0x2c0d0f,_0x153000);return _0x4bbbf1[_0x1378ca(0x12e)](),this[_0x1378ca(0x124)][_0x1378ca(0xd9)](_0x2c0d0f,_0x4bbbf1),_0x4bbbf1;}},exports[_0x82621(0xd5)]=R([S(0x0,o[_0x82621(0xad)]),S(0x1,o[_0x82621(0xa7)](o[_0x82621(0x115)])),S(0x2,o[_0x82621(0xa7)](m[_0x82621(0x156)]))],exports['LiveShareController']);var h=(_0x327600=>(_0x327600[_0x82621(0x158)]=_0x82621(0x9b),_0x327600[_0x82621(0x95)]=_0x82621(0xeb),_0x327600[_0x82621(0xb9)]=_0x82621(0x120),_0x327600[_0x82621(0x13c)]=_0x82621(0x139),_0x327600[_0x82621(0x160)]=_0x82621(0x126),_0x327600))(h||{});const Z=_0x82621(0xc3),J=0xc8;exports[_0x82621(0xd2)]=class extends o[_0x82621(0x142)]{constructor(_0x5e21cb,_0x4c35a8,_0x2ef228,_0x2142c0,_0x15181f){var _0x1604ec=_0x82621;super(),v(this,'_status$',new D[(_0x1604ec(0xe2))](_0x1604ec(0xeb))),v(this,_0x1604ec(0xd0),this[_0x1604ec(0xe4)][_0x1604ec(0x169)]()),v(this,_0x1604ec(0x14f),!0x1),v(this,_0x1604ec(0x16a),null),v(this,_0x1604ec(0x112),null),(this[_0x1604ec(0x14e)]=_0x5e21cb,this[_0x1604ec(0x9c)]=_0x4c35a8,this[_0x1604ec(0x133)]=_0x2ef228,this['_liveShareService']=_0x2142c0,this[_0x1604ec(0xee)]=_0x15181f);}get[_0x82621(0x15d)](){var _0x15dc0f=_0x82621;return this[_0x15dc0f(0xe4)][_0x15dc0f(0x162)]();}[_0x82621(0x15f)](){var _0x4f8ffd=_0x82621,_0x348138;(_0x348138=this[_0x4f8ffd(0x16a)])==null||_0x348138['dispose'](),this[_0x4f8ffd(0xe4)]['next'](_0x4f8ffd(0xeb)),this[_0x4f8ffd(0xe4)][_0x4f8ffd(0x8f)]();}[_0x82621(0x12e)](){var _0x111437=_0x82621;this[_0x111437(0x14f)]||(this[_0x111437(0x14f)]=!0x0,this[_0x111437(0x9c)][_0x111437(0x135)][_0x111437(0xd7)](b['takeUntil'](this[_0x111437(0xdd)]))[_0x111437(0x99)](_0x35686e=>{var _0x4f297c=_0x111437;switch(_0x35686e){case m[_0x4f297c(0xcd)][_0x4f297c(0x158)]:this[_0x4f297c(0x10c)]();break;case m['SessionStatus']['ONLINE']:this[_0x4f297c(0x164)]();break;}}),this[_0x111437(0x9c)]['event$'][_0x111437(0xd7)](b[_0x111437(0x167)](this[_0x111437(0xdd)]))[_0x111437(0x99)](_0x20824f=>{var _0x141995=_0x111437;const {eventID:_0x3b30c5}=_0x20824f;switch(_0x3b30c5){case _[_0x141995(0xb4)][_0x141995(0xdf)]:this[_0x141995(0xda)](_0x20824f);break;case _[_0x141995(0xb4)][_0x141995(0xf5)]:this[_0x141995(0xf2)](_0x20824f);break;case _['CollaborationEvent'][_0x141995(0x9f)]:this[_0x141995(0xaf)]();break;case _[_0x141995(0xb4)][_0x141995(0xe1)]:this[_0x141995(0x165)](_0x20824f);break;}}));}['tryStartPresenting'](){var _0x24b53e=_0x82621;this[_0x24b53e(0x9c)][_0x24b53e(0xf0)]({'eventID':_['CollaborationEvent'][_0x24b53e(0x109)],'data':{'unitID':this[_0x24b53e(0x14e)],'userID':this[_0x24b53e(0x9c)][_0x24b53e(0xcb)]()}},this[_0x24b53e(0x14e)]);}[_0x82621(0x100)](){var _0x27a176=_0x82621;this[_0x27a176(0x15d)]===_0x27a176(0x126)&&(this[_0x27a176(0xe4)]['next'](_0x27a176(0xeb)),this[_0x27a176(0x9c)][_0x27a176(0xf0)]({'eventID':_[_0x27a176(0xb4)][_0x27a176(0x9f)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){var _0x4bf30=_0x82621;this['_status']===_0x4bf30(0x139)&&(this[_0x4bf30(0xe4)][_0x4bf30(0x96)](_0x4bf30(0x120)),this[_0x4bf30(0x11c)]());}[_0x82621(0x150)](){var _0x47319b=_0x82621;this[_0x47319b(0x15d)]===_0x47319b(0x120)&&this['_stopFollowing']();}[_0x82621(0xda)](_0x23fc4e){var _0x1f1eb3=_0x82621;const {presenter:_0x37eec3}=_0x23fc4e[_0x1f1eb3(0xe3)],_0x351c88=this[_0x1f1eb3(0x9c)][_0x1f1eb3(0xcb)]();this[_0x1f1eb3(0x112)]=_0x37eec3,_0x37eec3===_0x351c88?(this[_0x1f1eb3(0xe8)](),this[_0x1f1eb3(0x137)]()):this['_status']!==_0x1f1eb3(0x139)&&(this[_0x1f1eb3(0xb3)](),this[_0x1f1eb3(0x11c)]());}[_0x82621(0xf7)](){var _0x1300e4=_0x82621;const _0x25097a={'eventID':_[_0x1300e4(0xb4)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x1300e4(0x9c)][_0x1300e4(0xf0)](_0x25097a,this[_0x1300e4(0x14e)]);}[_0x82621(0xaf)](){var _0x26a352=_0x82621;this[_0x26a352(0x112)]=null,this[_0x26a352(0x15d)]!==_0x26a352(0x126)&&this[_0x26a352(0xa8)]();}[_0x82621(0x165)](_0x31efbb){var _0x5407ae=_0x82621;if(this[_0x5407ae(0x15d)]===_0x5407ae(0x120)&&this['_presenter']===_0x31efbb[_0x5407ae(0xe3)]['memberID']){const _0x477b1d=_[_0x5407ae(0xa5)](_0x31efbb[_0x5407ae(0xe3)])['mutations'][_0x5407ae(0x127)]()[_0x5407ae(0x14b)](_0x114b04=>_0x114b04['id']===C['InsertSheetMutation']['id']);if(_0x477b1d){const _0x2bb82b=_0x477b1d[_0x5407ae(0x113)][_0x5407ae(0xe9)],_0x4de91f=_0x477b1d[_0x5407ae(0x113)]['sheet']['id'];setTimeout(()=>{var _0xa3273c=_0x5407ae;this['_commandService'][_0xa3273c(0x12f)](C[_0xa3273c(0xdb)]['id'],{'unitId':_0x2bb82b,'subUnitId':_0x4de91f},{'fromCollab':!0x0});});}}}[_0x82621(0x137)](){var _0xa04a47=_0x82621;this[_0xa04a47(0xe4)][_0xa04a47(0x96)](_0xa04a47(0x126));const _0xfd2679=new Map(),_0x232dc7=this['_commandDisposable']=new o['DisposableCollection']();_0x232dc7['add'](o[_0xa04a47(0xc9)](()=>{var _0x3803d3=_0xa04a47;_0xfd2679[_0x3803d3(0x10a)](_0x11d0dc=>_0x11d0dc[_0x3803d3(0x8f)]()),_0xfd2679[_0x3803d3(0x166)]();})),_0x232dc7[_0xa04a47(0xd3)](this['_commandService'][_0xa04a47(0xaa)](_0xa6d11a=>{var _0x172a48=_0xa04a47,_0x1967d8;if(_0xa6d11a['type']!==o[_0x172a48(0x92)][_0x172a48(0x15e)]||!this[_0x172a48(0xcf)][_0x172a48(0x131)](_0xa6d11a['id']))return;const {id:_0x3762c8}=_0xa6d11a;let _0x4241c8;_0xfd2679[_0x172a48(0x15c)](_0x3762c8)?_0x4241c8=_0xfd2679[_0x172a48(0xde)](_0x3762c8):(_0x4241c8=new D[(_0x172a48(0x147))](),_0xfd2679[_0x172a48(0xd9)](_0x3762c8,_0x4241c8),_0x4241c8['pipe'](b[_0x172a48(0xfc)]((_0x1967d8=this[_0x172a48(0x133)][_0x172a48(0xf9)](Z))!=null?_0x1967d8:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2696c5=>{var _0x3dc48d=_0x172a48;this['_collabSession'][_0x3dc48d(0xf0)]({'eventID':_['CollaborationEvent'][_0x3dc48d(0xf5)],'data':{'unitID':this[_0x3dc48d(0x14e)],'operations':{[_0x2696c5['id']]:{'id':_0x2696c5['id'],'params':JSON[_0x3dc48d(0xb6)](_0x2696c5['params'])}}}},this[_0x3dc48d(0x14e)]);})),_0x4241c8['next'](_0xa6d11a);})),this['_liveShareService'][_0xa04a47(0x111)](this[_0xa04a47(0x14e)])[_0xa04a47(0x10a)](_0x515976=>this[_0xa04a47(0x9c)][_0xa04a47(0xf0)]({'eventID':_[_0xa04a47(0xb4)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xa04a47(0x14e)],'operations':{[_0x515976['id']]:{'id':_0x515976['id'],'params':JSON[_0xa04a47(0xb6)](_0x515976['params'])}}}},this['_unitID']));}[_0x82621(0xb3)](){var _0xc405d=_0x82621,_0x530107;this['_status$'][_0xc405d(0x96)](_0xc405d(0xeb)),(_0x530107=this[_0xc405d(0x16a)])==null||_0x530107[_0xc405d(0x15f)](),this[_0xc405d(0x16a)]=null;}[_0x82621(0x11c)](){var _0x1b240e=_0x82621,_0x1e581d;(_0x1e581d=this[_0x1b240e(0x16a)])==null||_0x1e581d[_0x1b240e(0x15f)](),this['_status$']['next'](_0x1b240e(0x120));}[_0x82621(0xa8)](){var _0x22d0fe=_0x82621,_0x20e536;this[_0x22d0fe(0xe4)]['next'](_0x22d0fe(0xeb)),(_0x20e536=this[_0x22d0fe(0x16a)])==null||_0x20e536[_0x22d0fe(0x15f)](),this['_commandDisposable']=null;}[_0x82621(0xe8)](){var _0x5cdaac=_0x82621,_0x5ab927;this['_status$'][_0x5cdaac(0x96)](_0x5cdaac(0x139)),(_0x5ab927=this[_0x5cdaac(0x16a)])==null||_0x5ab927['dispose']();}[_0x82621(0xf2)](_0x5bdf7b){var _0x14e2f2=_0x82621;if([_0x14e2f2(0x126),_0x14e2f2(0x139),'offline']['includes'](this['_status'])||!_0x5bdf7b[_0x14e2f2(0xe3)][_0x14e2f2(0xe0)]||_0x5bdf7b[_0x14e2f2(0xe3)][_0x14e2f2(0xe0)]===this['_collabSession'][_0x14e2f2(0xcb)]())return;this[_0x14e2f2(0x15d)]===_0x14e2f2(0xeb)&&this[_0x14e2f2(0x11c)]();const _0x2e83a0=_0x5bdf7b[_0x14e2f2(0xe3)][_0x14e2f2(0x110)];Object[_0x14e2f2(0x148)](_0x2e83a0)[_0x14e2f2(0x10a)](_0x1bea2c=>{var _0x4f7d53=_0x14e2f2;this[_0x4f7d53(0xee)]['executeCommand'](_0x1bea2c['id'],_0x1bea2c[_0x4f7d53(0x113)]?JSON['parse'](_0x1bea2c[_0x4f7d53(0x113)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x54a60b=_0x82621,_0xdbd172;this[_0x54a60b(0xe4)][_0x54a60b(0x96)](_0x54a60b(0x9b)),(_0xdbd172=this[_0x54a60b(0x16a)])==null||_0xdbd172['dispose']();}[_0x82621(0x164)](){var _0x5774f3=_0x82621;this[_0x5774f3(0xe4)][_0x5774f3(0x96)](_0x5774f3(0xeb)),this[_0x5774f3(0xf7)]();}},exports[_0x82621(0xd2)]=R([S(0x2,o[_0x82621(0x91)]),S(0x3,o[_0x82621(0xa7)](O)),S(0x4,o[_0x82621(0x152)])],exports[_0x82621(0xd2)]);function A(){var _0x9999fb=_0x82621;const _0x5ed723=p['useDependency'](exports[_0x9999fb(0xd5)]),_0x28230e=p[_0x9999fb(0xa6)](o[_0x9999fb(0xad)]),_0x53c4b0=p[_0x9999fb(0x11d)](()=>_0x28230e['getCurrentTypeOfUnit$'](o[_0x9999fb(0xfb)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x2f51b3,_0x2a7eb1]=f[_0x9999fb(0x106)](null),[_0x10fe99,_0x286af8]=f['useState'](h[_0x9999fb(0x95)]),_0x2d65f1=f['useRef'](null);return f[_0x9999fb(0x151)](()=>(_0x53c4b0&&_0x5ed723[_0x9999fb(0xc4)](_0x53c4b0['getUnitId']())[_0x9999fb(0x16d)](_0x59cdc2=>{var _0x1fed68=_0x9999fb;_0x2a7eb1(_0x59cdc2),_0x2d65f1[_0x1fed68(0x12d)]=_0x59cdc2[_0x1fed68(0xd0)][_0x1fed68(0x99)](_0x2a15d3=>{_0x286af8(_0x2a15d3);});}),()=>{var _0x2f1eef=_0x9999fb,_0x5762b7;(_0x5762b7=_0x2d65f1[_0x2f1eef(0x12d)])==null||_0x5762b7[_0x2f1eef(0x132)](),_0x2d65f1[_0x2f1eef(0x12d)]=null;}),[_0x53c4b0,_0x5ed723]),_0x2f51b3?l['jsx'](g[_0x9999fb(0x141)],{'align':_0x9999fb(0x107),'disabled':_0x10fe99===h[_0x9999fb(0x158)],'className':_0x9999fb(0x93),'overlay':l[_0x9999fb(0x138)](K,{'status':_0x10fe99,'coordinator':_0x2f51b3}),'children':l['jsx'](_0x9999fb(0x129),{'className':g[_0x9999fb(0xca)](_0x9999fb(0xb5),{'univer-cursor-not-allowed':_0x10fe99===h[_0x9999fb(0x158)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x10fe99!==h[_0x9999fb(0x158)]}),'type':_0x9999fb(0x129),'children':l[_0x9999fb(0x138)](P,{'className':_0x9999fb(0xc8)})})}):null;}function _0x1392(){var _0x256620=['SetScrollOperation','_stopFollowing','unitId','xlink:href','idle','apply','You\x27are\x20offline.','_commandService','startFollowing','send','disposeWithMe','_handleOperation','Module','DependentOn','LIVESHARE_OPERATION','className','_fetchOperations','onRendered','getConfig','type','UniverInstanceType','throttleTime','entries','currentColor','77384xgESwE','stopPresenting','trim','234548rYhBmp','delete','concat','requireSession','useState','end','string','LIVESHARE_REQUEST_HOST','forEach','getTypeOfUnitAdded$','_handleOffline','rxjs/operators','32vFxbqA','4028940CNTqbt','operations','getInitialStates','_presenter','params','_uiPartsService','Injector','BuiltInUIPart','touchDependencies','12IDWTab','_sharedOperations','registerSharedOperation','prototype','_startFollowing','useObservable','extend','fill','following','includes','createInstance','DesktopLiveShareController','_entities','toStringTag','presenting','reverse','Start\x20following','button','useRef','div','0\x200\x2017\x2017','current','init','executeCommand','displayName','shouldShareOperation','unsubscribe','_configService','2336952GnROqb','sessionStatus$','_config','_startPresenting','jsx','not-following','IUIPartsService','registerInitialStateReporter','NOT_FOLLOWING','Stop\x20following','idSuffix','1em','text','Dropdown','RxDisposable','UniverLiveSharePlugin','LiveShareIcon','_startLiveShareCoordinator','Disposable','Subject','values','HEADER_MENU','assign','find','length','path','_unitID','_init','stopFollowing','useEffect','ICommandService','children','toString','override','CollaborationSessionService','@univerjs-pro/collaboration','OFFLINE','UniverCollaborationClientPlugin','UNIVER_SHEET','univerjs-icon\x20univerjs-icon-','has','_status','OPERATION','dispose','PRESENTING','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','getValue','attrs','_handleOnline','_handleNewChangeSets','clear','takeUntil','registerDependencies','asObservable','_commandDisposable','mask','forwardRef','then','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','@univerjs/sheets-ui','live-share.config','colorChannel1','setConfig','live-share-icon','merge','complete','use','IConfigService','CommandType','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','symbol','IDLE','next','_mountLiveShare','default','subscribe','replace','offline','_collabSession','_univerInstanceService','none','LIVESHARE_TERMINATE','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','Plugin','16891hYgwsZ','_injector','parseProtocolChangeset','useDependency','Inject','_beIdle','@univerjs/design','onCommandExecuted','getUnitId','Fragment','IUniverInstanceService','You\x27re\x20presenting\x20the\x20document','_handleTerminate','url(#$1','175425QGUxHL','@univerjs/ui','_stopPresenting','CollaborationEvent','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','stringify','Button','from','FOLLOWING','tag','jsxs','map','getOwnPropertyDescriptor','createElement','pluginName','mergeOverrideWithDependencies','@univerjs-pro/collaboration-client','defIds','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','function','_reporters','univer-size-4','toDisposable','clsx','getMemberID','getTypeOfUnitDisposed$','SessionStatus','icon','_liveShareService','status$','defineProperty','LiveShareCoordinator','add','random','LiveShareController','LiveShare','pipe','indexOf','set','_handleNewHost','SetWorksheetActiveOperation','LiveShareService','dispose$','get','LIVESHARE_NEW_HOST','presenter','NEW_CHANGESETS','BehaviorSubject','data','_status$','hasOwnProperty','11223036vsrmhl'];_0x1392=function(){return _0x256620;};return _0x1392();}function K(_0x33771e){var _0x2d5cf5=_0x82621;const {status:_0x5efd91,coordinator:_0x206829}=_0x33771e;switch(_0x5efd91){case h['IDLE']:return l[_0x2d5cf5(0x138)](z,{'coordinator':_0x206829});case h[_0x2d5cf5(0xb9)]:return l[_0x2d5cf5(0x138)](Q,{'coordinator':_0x206829});case h[_0x2d5cf5(0x13c)]:return l[_0x2d5cf5(0x138)](X,{'coordinator':_0x206829});case h[_0x2d5cf5(0x158)]:return l[_0x2d5cf5(0x138)](te,{});case h[_0x2d5cf5(0x160)]:return l[_0x2d5cf5(0x138)](ee,{'coordinator':_0x206829});default:return null;}}function z(_0x275b90){var _0x1d5481=_0x82621;const {coordinator:_0xc31190}=_0x275b90;return l['jsxs'](l[_0x1d5481(0xac)],{'children':[l['jsx'](_0x1d5481(0x12b),{'className':_0x1d5481(0xa1),'children':'Present\x20this\x20document'}),l['jsx'](g[_0x1d5481(0xb7)],{'onClick':()=>_0xc31190['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x58d8f2){var _0xabbd97=_0x82621;const {coordinator:_0x48a2e9}=_0x58d8f2;return l[_0xabbd97(0xbb)](l[_0xabbd97(0xac)],{'children':[l['jsx']('div',{'className':_0xabbd97(0xa1),'children':_0xabbd97(0xc5)}),l[_0xabbd97(0x138)](g[_0xabbd97(0xb7)],{'onClick':()=>_0x48a2e9[_0xabbd97(0x150)](),'children':_0xabbd97(0x13d)})]});}function X(_0x2f3d61){var _0x82e40a=_0x82621;const {coordinator:_0x14af81}=_0x2f3d61;return l[_0x82e40a(0xbb)](l['Fragment'],{'children':[l[_0x82e40a(0x138)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x82e40a(0x138)](g[_0x82e40a(0xb7)],{'variant':_0x82e40a(0x140),'onClick':()=>_0x14af81[_0x82e40a(0xef)](),'children':_0x82e40a(0x128)})]});}function ee(_0x385ef9){var _0x5f5244=_0x82621;const {coordinator:_0x143508}=_0x385ef9;return l[_0x5f5244(0xbb)](l['Fragment'],{'children':[l[_0x5f5244(0x138)](_0x5f5244(0x12b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5f5244(0xae)}),l[_0x5f5244(0x138)](g['Button'],{'variant':_0x5f5244(0x98),'onClick':()=>_0x143508[_0x5f5244(0x100)](),'children':_0x5f5244(0xa0)})]});}function te(){var _0x1e2c12=_0x82621;return l[_0x1e2c12(0x138)](l['Fragment'],{'children':_0x1e2c12(0xed)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x3580ff,_0x96b643,_0x19442b,_0x111763)=>{var _0x503c2e=_0x82621;for(var _0x4ea384=_0x111763>0x1?void 0x0:_0x111763?ie(_0x96b643,_0x19442b):_0x96b643,_0x254947=_0x3580ff[_0x503c2e(0x14c)]-0x1,_0x5bf518;_0x254947>=0x0;_0x254947--)(_0x5bf518=_0x3580ff[_0x254947])&&(_0x4ea384=_0x5bf518(_0x4ea384)||_0x4ea384);return _0x4ea384;},L=(_0x63c2a8,_0x3afa14)=>(_0x33abc9,_0x557a1a)=>_0x3afa14(_0x33abc9,_0x557a1a,_0x63c2a8);exports[_0x82621(0x123)]=class extends o[_0x82621(0x146)]{constructor(_0x53b154,_0x56d33a){var _0x3a4af4=_0x82621;super(),this[_0x3a4af4(0xa4)]=_0x53b154,this[_0x3a4af4(0x114)]=_0x56d33a,this[_0x3a4af4(0x97)]();}[_0x82621(0x97)](){var _0x1cf7f=_0x82621;this[_0x1cf7f(0xf1)](this['_uiPartsService']['registerComponent'](p[_0x1cf7f(0x116)][_0x1cf7f(0x149)],()=>p['connectInjector'](A,this[_0x1cf7f(0xa4)])));}},exports[_0x82621(0x123)]=ne([L(0x0,o[_0x82621(0xa7)](o[_0x82621(0x115)])),L(0x1,p[_0x82621(0x13a)])],exports['DesktopLiveShareController']);var re=Object[_0x82621(0xd1)],se=Object[_0x82621(0xbd)],oe=(_0x340f65,_0x1d8b9d,_0x1c7926)=>_0x1d8b9d in _0x340f65?re(_0x340f65,_0x1d8b9d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c7926}):_0x340f65[_0x1d8b9d]=_0x1c7926,ae=(_0x4a3c98,_0x356547,_0x1063af,_0x516c8c)=>{for(var _0x531979=_0x516c8c>0x1?void 0x0:_0x516c8c?se(_0x356547,_0x1063af):_0x356547,_0x5351a7=_0x4a3c98['length']-0x1,_0x4ddc85;_0x5351a7>=0x0;_0x5351a7--)(_0x4ddc85=_0x4a3c98[_0x5351a7])&&(_0x531979=_0x4ddc85(_0x531979)||_0x531979);return _0x531979;},N=(_0xdd6ec3,_0x4c7618)=>(_0x5116a9,_0x59bbe0)=>_0x4c7618(_0x5116a9,_0x59bbe0,_0xdd6ec3),T=(_0x354338,_0x18dfd4,_0x5110cf)=>oe(_0x354338,typeof _0x18dfd4!='symbol'?_0x18dfd4+'':_0x18dfd4,_0x5110cf);const le='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o[_0x82621(0xa2)]{constructor(_0x16e0f5=x,_0x51c585,_0x32ca22){var _0x5a661b=_0x82621;super(),this[_0x5a661b(0x136)]=_0x16e0f5,this['_injector']=_0x51c585,this['_configService']=_0x32ca22;const {..._0x5207f9}=o[_0x5a661b(0x8e)]({},x,this[_0x5a661b(0x136)]);this[_0x5a661b(0x133)][_0x5a661b(0x8c)]($,_0x5207f9);}['onStarting'](){var _0x5718b6=_0x82621;o[_0x5718b6(0x168)](this[_0x5718b6(0xa4)],o[_0x5718b6(0xc0)]([[O],[exports[_0x5718b6(0xd5)]],[E],[exports['DesktopLiveShareController']]],this['_config'][_0x5718b6(0x155)])),o[_0x5718b6(0x117)](this[_0x5718b6(0xa4)],[[E]]);}[_0x82621(0xf8)](){var _0x3d3416=_0x82621;o['touchDependencies'](this[_0x3d3416(0xa4)],[[exports[_0x3d3416(0x123)]]]);}},T(exports[_0x82621(0x143)],_0x82621(0xfa),o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x82621(0x143)],_0x82621(0xbf),le),exports['UniverLiveSharePlugin']=ae([o[_0x82621(0xf4)](m[_0x82621(0x159)]),N(0x1,o[_0x82621(0xa7)](o['Injector'])),N(0x2,o[_0x82621(0x91)])],exports[_0x82621(0x143)]),exports[_0x82621(0xd6)]=A,exports[_0x82621(0xdc)]=O,exports['LiveShareStatus']=h;
1
+ 'use strict';var _0x172af3=_0x529f;(function(_0x529b15,_0x3e316d){var _0x219961=_0x529f,_0x48d60f=_0x529b15();while(!![]){try{var _0x3ae95e=-parseInt(_0x219961(0x27c))/0x1+parseInt(_0x219961(0x22f))/0x2+parseInt(_0x219961(0x1c3))/0x3*(-parseInt(_0x219961(0x1c9))/0x4)+-parseInt(_0x219961(0x24f))/0x5+-parseInt(_0x219961(0x1d5))/0x6*(parseInt(_0x219961(0x1b6))/0x7)+parseInt(_0x219961(0x27b))/0x8+parseInt(_0x219961(0x26a))/0x9*(parseInt(_0x219961(0x27f))/0xa);if(_0x3ae95e===_0x3e316d)break;else _0x48d60f['push'](_0x48d60f['shift']());}catch(_0x271a54){_0x48d60f['push'](_0x48d60f['shift']());}}}(_0xfe4a,0x27d9d));var U=Object[_0x172af3(0x240)],F=(_0x4eabd4,_0x11a074,_0x54f7b9)=>_0x11a074 in _0x4eabd4?U(_0x4eabd4,_0x11a074,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54f7b9}):_0x4eabd4[_0x11a074]=_0x54f7b9,v=(_0x54c6e4,_0x4dfc3e,_0x380c8c)=>F(_0x54c6e4,typeof _0x4dfc3e!=_0x172af3(0x1ef)?_0x4dfc3e+'':_0x4dfc3e,_0x380c8c);Object['defineProperty'](exports,Symbol[_0x172af3(0x20f)],{'value':_0x172af3(0x218)});const m=require(_0x172af3(0x251)),o=require('@univerjs/core'),C=require(_0x172af3(0x22d)),w=require(_0x172af3(0x25b)),p=require(_0x172af3(0x20c)),l=require(_0x172af3(0x221)),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require(_0x172af3(0x25e)),b=require(_0x172af3(0x226)),$=_0x172af3(0x1b4),x={};class O extends o[_0x172af3(0x272)]{constructor(){var _0x304725=_0x172af3;super(...arguments),v(this,_0x304725(0x26c),new Set()),v(this,_0x304725(0x253),new Set());}[_0x172af3(0x264)](_0x28394f){var _0x138eaf=_0x172af3;return this['_sharedOperations'][_0x138eaf(0x273)](_0x28394f),o[_0x138eaf(0x1c0)](()=>this[_0x138eaf(0x26c)][_0x138eaf(0x1da)](_0x28394f));}[_0x172af3(0x1f6)](_0x305482){var _0xed450b=_0x172af3;return this[_0xed450b(0x253)][_0xed450b(0x273)](_0x305482),o[_0xed450b(0x1c0)](()=>this[_0xed450b(0x253)][_0xed450b(0x1da)](_0x305482));}[_0x172af3(0x1ff)](_0xe9afd8){var _0x104879=_0x172af3;return this[_0x104879(0x26c)]['has'](_0xe9afd8);}['getInitialStates'](_0x187ddf){var _0x40bbf1=_0x172af3;return Array['from'](this[_0x40bbf1(0x253)])[_0x40bbf1(0x227)](_0x7a084e=>_0x7a084e(_0x187ddf));}}var H=Object[_0x172af3(0x1e2)],V=(_0x570c2e,_0x365dcd,_0x3cf957,_0x1c19d5)=>{var _0x2c88d4=_0x172af3;for(var _0x95d6a1=_0x1c19d5>0x1?void 0x0:_0x1c19d5?H(_0x365dcd,_0x3cf957):_0x365dcd,_0x14ec31=_0x570c2e[_0x2c88d4(0x1b7)]-0x1,_0x4173dd;_0x14ec31>=0x0;_0x14ec31--)(_0x4173dd=_0x570c2e[_0x14ec31])&&(_0x95d6a1=_0x4173dd(_0x95d6a1)||_0x95d6a1);return _0x95d6a1;},k=(_0x350fef,_0x1e6a10)=>(_0x472110,_0x17707b)=>_0x1e6a10(_0x472110,_0x17707b,_0x350fef);let E=class extends o[_0x172af3(0x272)]{constructor(_0x5b8670){var _0x3dd94a=_0x172af3;super(),this['_liveShareService']=_0x5b8670,this[_0x3dd94a(0x225)]();}[_0x172af3(0x225)](){var _0x223d8f=_0x172af3;[w[_0x223d8f(0x1ed)]['id'],w[_0x223d8f(0x246)]['id'],C[_0x223d8f(0x242)]['id']][_0x223d8f(0x219)](_0x222422=>{var _0x4c1659=_0x223d8f;this[_0x4c1659(0x1c8)](this[_0x4c1659(0x1de)][_0x4c1659(0x264)](_0x222422));});}};E=V([k(0x0,o[_0x172af3(0x275)](O))],E);var u=function(){var _0x10cd85=_0x172af3;return u=Object[_0x10cd85(0x1a8)]||function(_0x2d8e58){var _0x41eff5=_0x10cd85;for(var _0xdc82e6,_0x10a3a5=0x1,_0x45e531=arguments[_0x41eff5(0x1b7)];_0x10a3a5<_0x45e531;_0x10a3a5++){_0xdc82e6=arguments[_0x10a3a5];for(var _0x2218d6 in _0xdc82e6)Object['prototype'][_0x41eff5(0x1db)]['call'](_0xdc82e6,_0x2218d6)&&(_0x2d8e58[_0x2218d6]=_0xdc82e6[_0x2218d6]);}return _0x2d8e58;},u[_0x10cd85(0x23c)](this,arguments);},M=function(_0x1f51eb,_0x4bbaf9){var _0x45c6f3=_0x172af3,_0xf804ab={};for(var _0x25f8ef in _0x1f51eb)Object[_0x45c6f3(0x277)][_0x45c6f3(0x1db)][_0x45c6f3(0x211)](_0x1f51eb,_0x25f8ef)&&_0x4bbaf9['indexOf'](_0x25f8ef)<0x0&&(_0xf804ab[_0x25f8ef]=_0x1f51eb[_0x25f8ef]);if(_0x1f51eb!=null&&typeof Object[_0x45c6f3(0x1d9)]==_0x45c6f3(0x232)){for(var _0x58fbb5=0x0,_0x25f8ef=Object['getOwnPropertySymbols'](_0x1f51eb);_0x58fbb5<_0x25f8ef['length'];_0x58fbb5++)_0x4bbaf9[_0x45c6f3(0x1ca)](_0x25f8ef[_0x58fbb5])<0x0&&Object[_0x45c6f3(0x277)][_0x45c6f3(0x21a)][_0x45c6f3(0x211)](_0x1f51eb,_0x25f8ef[_0x58fbb5])&&(_0xf804ab[_0x25f8ef[_0x58fbb5]]=_0x1f51eb[_0x25f8ef[_0x58fbb5]]);}return _0xf804ab;},j=f[_0x172af3(0x268)](function(_0x31749f,_0x54a74c){var _0x59c340=_0x172af3,_0xdb49bf=_0x31749f[_0x59c340(0x24d)],_0x33bc3d=_0x31749f['id'],_0x4dd5df=_0x31749f[_0x59c340(0x283)],_0x57deab=_0x31749f[_0x59c340(0x21c)],_0x189401=M(_0x31749f,[_0x59c340(0x24d),'id',_0x59c340(0x283),_0x59c340(0x21c)]),_0xbd2557=_0x59c340(0x1d0)['concat'](_0x33bc3d,'\x20')['concat'](_0x4dd5df||'')[_0x59c340(0x249)](),_0x3dc0db=f[_0x59c340(0x276)]('_'[_0x59c340(0x243)](G()));return y(_0xdb49bf,''[_0x59c340(0x243)](_0x33bc3d),{'defIds':_0xdb49bf[_0x59c340(0x209)],'idSuffix':_0x3dc0db[_0x59c340(0x23d)]},u({'ref':_0x54a74c,'className':_0xbd2557},_0x189401),_0x57deab);});function y(_0x23560b,_0x2952c1,_0xcc90a3,_0x4c501e,_0x3a9e00){var _0x218b7b=_0x172af3;return f[_0x218b7b(0x20a)](_0x23560b[_0x218b7b(0x255)],u(u({'key':_0x2952c1},q(_0x23560b,_0xcc90a3,_0x3a9e00)),_0x4c501e),(W(_0x23560b,_0xcc90a3)['children']||[])[_0x218b7b(0x227)](function(_0x27f33d,_0xd252b5){var _0x18b0db=_0x218b7b;return y(_0x27f33d,''[_0x18b0db(0x243)](_0x2952c1,'-')[_0x18b0db(0x243)](_0x23560b[_0x18b0db(0x255)],'-')[_0x18b0db(0x243)](_0xd252b5),_0xcc90a3,void 0x0,_0x3a9e00);}));}function q(_0x5b36ed,_0x2ff40d,_0x2029f6){var _0x359a00=_0x172af3,_0x7398e4=u({},_0x5b36ed[_0x359a00(0x1cd)]);_0x2029f6!=null&&_0x2029f6[_0x359a00(0x22c)]&&_0x7398e4['fill']===_0x359a00(0x22c)&&(_0x7398e4[_0x359a00(0x1be)]=_0x2029f6[_0x359a00(0x22c)]),_0x5b36ed[_0x359a00(0x255)]===_0x359a00(0x20b)&&_0x7398e4['id']&&(_0x7398e4['id']=_0x7398e4['id']+_0x2ff40d[_0x359a00(0x1ce)]),Object[_0x359a00(0x267)](_0x7398e4)[_0x359a00(0x219)](function(_0x2ef49f){var _0x339922=_0x359a00,_0xa0090c=_0x2ef49f[0x0],_0x3516a8=_0x2ef49f[0x1];_0xa0090c===_0x339922(0x20b)&&typeof _0x3516a8=='string'&&(_0x7398e4[_0xa0090c]=_0x3516a8[_0x339922(0x237)](/url\(#(.*)\)/,_0x339922(0x1a7)[_0x339922(0x243)](_0x2ff40d['idSuffix'],')')));});var _0x2e94a1=_0x2ff40d[_0x359a00(0x209)];return!_0x2e94a1||_0x2e94a1['length']===0x0||(_0x5b36ed[_0x359a00(0x255)]===_0x359a00(0x1d1)&&_0x7398e4[_0x359a00(0x28a)]&&(_0x7398e4['xlink:href']=_0x7398e4[_0x359a00(0x28a)]+_0x2ff40d[_0x359a00(0x1ce)]),Object['entries'](_0x7398e4)['forEach'](function(_0x208ce5){var _0x5c9751=_0x359a00,_0xe66f7a=_0x208ce5[0x0],_0x1f7aa7=_0x208ce5[0x1];typeof _0x1f7aa7==_0x5c9751(0x284)&&(_0x7398e4[_0xe66f7a]=_0x1f7aa7[_0x5c9751(0x237)](/url\(#(.*)\)/,_0x5c9751(0x1a7)[_0x5c9751(0x243)](_0x2ff40d[_0x5c9751(0x1ce)],')')));})),_0x7398e4;}function W(_0x4cc65c,_0x185dab){var _0x5f5e98=_0x172af3,_0x4e9ca7,_0x480c6c=_0x185dab[_0x5f5e98(0x209)];return!_0x480c6c||_0x480c6c[_0x5f5e98(0x1b7)]===0x0?_0x4cc65c:_0x4cc65c[_0x5f5e98(0x255)]===_0x5f5e98(0x245)&&(!((_0x4e9ca7=_0x4cc65c['children'])===null||_0x4e9ca7===void 0x0)&&_0x4e9ca7[_0x5f5e98(0x1b7)])?u(u({},_0x4cc65c),{'children':_0x4cc65c[_0x5f5e98(0x26f)]['map'](function(_0x2271c3){var _0x42267e=_0x5f5e98;return typeof _0x2271c3[_0x42267e(0x1cd)]['id']==_0x42267e(0x284)&&_0x480c6c&&_0x480c6c[_0x42267e(0x215)](_0x2271c3[_0x42267e(0x1cd)]['id'])?u(u({},_0x2271c3),{'attrs':u(u({},_0x2271c3[_0x42267e(0x1cd)]),{'id':_0x2271c3['attrs']['id']+_0x185dab[_0x42267e(0x1ce)]})}):_0x2271c3;})}):_0x4cc65c;}function G(){var _0x30c408=_0x172af3;return Math['random']()['toString'](0x24)[_0x30c408(0x289)](0x2,0x8);}j[_0x172af3(0x1fb)]=_0x172af3(0x1e7);var B={'tag':_0x172af3(0x1eb),'attrs':{'xmlns':_0x172af3(0x1e5),'fill':_0x172af3(0x1b0),'viewBox':_0x172af3(0x25a),'width':_0x172af3(0x223),'height':_0x172af3(0x223)},'children':[{'tag':_0x172af3(0x1e9),'attrs':{'fill':_0x172af3(0x1cf),'d':_0x172af3(0x228)}},{'tag':_0x172af3(0x1e9),'attrs':{'fill':_0x172af3(0x1cf),'d':_0x172af3(0x1e4),'fillRule':_0x172af3(0x1f0),'clipRule':_0x172af3(0x1f0)}}]},P=f[_0x172af3(0x268)](function(_0x1f3d3c,_0x1effa2){var _0x4a2768=_0x172af3;return f[_0x4a2768(0x20a)](j,Object['assign']({},_0x1f3d3c,{'id':_0x4a2768(0x1cb),'ref':_0x1effa2,'icon':B}));});P[_0x172af3(0x1fb)]=_0x172af3(0x1b1);var Y=Object[_0x172af3(0x1e2)],R=(_0x4485f8,_0x1f0b52,_0x11c69b,_0x324fbb)=>{for(var _0x48f8a3=_0x324fbb>0x1?void 0x0:_0x324fbb?Y(_0x1f0b52,_0x11c69b):_0x1f0b52,_0x133ce9=_0x4485f8['length']-0x1,_0x10ae57;_0x133ce9>=0x0;_0x133ce9--)(_0x10ae57=_0x4485f8[_0x133ce9])&&(_0x48f8a3=_0x10ae57(_0x48f8a3)||_0x48f8a3);return _0x48f8a3;},S=(_0xda6e60,_0x39cb67)=>(_0x4f0641,_0x35d7f1)=>_0x39cb67(_0x4f0641,_0x35d7f1,_0xda6e60);exports[_0x172af3(0x22b)]=class extends o[_0x172af3(0x1f8)]{constructor(_0x5d0bae,_0x310de8,_0x51cc33){var _0x4b8882=_0x172af3;super(),v(this,_0x4b8882(0x27d),new Map()),(this['_univerInstanceService']=_0x5d0bae,this[_0x4b8882(0x24b)]=_0x310de8,this[_0x4b8882(0x20d)]=_0x51cc33,this[_0x4b8882(0x225)]());}async[_0x172af3(0x1d7)](_0x327f06){var _0x59f157=_0x172af3;return this[_0x59f157(0x27d)]['has'](_0x327f06)||await this[_0x59f157(0x21d)](_0x327f06),this[_0x59f157(0x27d)]['get'](_0x327f06);}['_init'](){var _0x5e6fa4=_0x172af3;this['_univerInstanceService'][_0x5e6fa4(0x1bf)](o[_0x5e6fa4(0x21f)]['UNIVER_SHEET'])['pipe'](b[_0x5e6fa4(0x1ad)](this[_0x5e6fa4(0x258)]))[_0x5e6fa4(0x269)](async _0xebe753=>{var _0x461291=_0x5e6fa4;const _0x50fe96=_0xebe753[_0x461291(0x24c)]();this[_0x461291(0x27d)][_0x461291(0x1a5)](_0x50fe96)||this[_0x461291(0x21d)](_0x50fe96);}),this[_0x5e6fa4(0x202)][_0x5e6fa4(0x241)](o[_0x5e6fa4(0x21f)][_0x5e6fa4(0x222)])['pipe'](b[_0x5e6fa4(0x1ad)](this[_0x5e6fa4(0x258)]))[_0x5e6fa4(0x269)](_0x364b91=>{var _0x31dd4c=_0x5e6fa4;const _0x9ec1fc=_0x364b91[_0x31dd4c(0x24c)](),_0x373a7c=this[_0x31dd4c(0x27d)][_0x31dd4c(0x244)](_0x9ec1fc);_0x373a7c==null||_0x373a7c['dispose']();});}async['_startLiveShareCoordinator'](_0x76d8fe){var _0x31c929=_0x172af3;const _0x1d1a3c=await this['_collabSessionService'][_0x31c929(0x24a)](_0x76d8fe),_0x27b294=this[_0x31c929(0x24b)][_0x31c929(0x281)](exports['LiveShareCoordinator'],_0x76d8fe,_0x1d1a3c);return _0x27b294[_0x31c929(0x22a)](),this[_0x31c929(0x27d)][_0x31c929(0x210)](_0x76d8fe,_0x27b294),_0x27b294;}},exports[_0x172af3(0x22b)]=R([S(0x0,o[_0x172af3(0x1ab)]),S(0x1,o[_0x172af3(0x275)](o[_0x172af3(0x206)])),S(0x2,o[_0x172af3(0x275)](m[_0x172af3(0x1f3)]))],exports[_0x172af3(0x22b)]);var h=(_0x4d2dc7=>(_0x4d2dc7[_0x172af3(0x1a2)]='offline',_0x4d2dc7['IDLE']=_0x172af3(0x1fa),_0x4d2dc7[_0x172af3(0x1e1)]=_0x172af3(0x1c2),_0x4d2dc7[_0x172af3(0x282)]=_0x172af3(0x1ba),_0x4d2dc7[_0x172af3(0x1e6)]='presenting',_0x4d2dc7))(h||{});const Z=_0x172af3(0x239),J=0xc8;exports[_0x172af3(0x1aa)]=class extends o[_0x172af3(0x1f8)]{constructor(_0x1f6686,_0x2ad1de,_0xdaa5f0,_0x4fc225,_0x3f020c){var _0x155fa9=_0x172af3;super(),v(this,_0x155fa9(0x1ae),new D[(_0x155fa9(0x216))](_0x155fa9(0x1fa))),v(this,_0x155fa9(0x23f),this[_0x155fa9(0x1ae)]['asObservable']()),v(this,_0x155fa9(0x225),!0x1),v(this,_0x155fa9(0x217),null),v(this,_0x155fa9(0x24e),null),(this[_0x155fa9(0x212)]=_0x1f6686,this[_0x155fa9(0x201)]=_0x2ad1de,this[_0x155fa9(0x20e)]=_0xdaa5f0,this[_0x155fa9(0x1de)]=_0x4fc225,this['_commandService']=_0x3f020c);}get[_0x172af3(0x1c1)](){var _0x547d07=_0x172af3;return this[_0x547d07(0x1ae)]['getValue']();}[_0x172af3(0x224)](){var _0xa6ac95=_0x172af3,_0x3e97cf;(_0x3e97cf=this[_0xa6ac95(0x217)])==null||_0x3e97cf[_0xa6ac95(0x224)](),this[_0xa6ac95(0x1ae)][_0xa6ac95(0x1fd)](_0xa6ac95(0x1fa)),this[_0xa6ac95(0x1ae)][_0xa6ac95(0x1fe)]();}[_0x172af3(0x22a)](){var _0x656986=_0x172af3;this[_0x656986(0x225)]||(this[_0x656986(0x225)]=!0x0,this[_0x656986(0x201)][_0x656986(0x254)][_0x656986(0x1bd)](b[_0x656986(0x1ad)](this['dispose$']))[_0x656986(0x269)](_0x48fad6=>{var _0x565927=_0x656986;switch(_0x48fad6){case m[_0x565927(0x1e3)][_0x565927(0x1a2)]:this[_0x565927(0x1d4)]();break;case m[_0x565927(0x1e3)]['ONLINE']:this[_0x565927(0x1b3)]();break;}}),this['_collabSession'][_0x656986(0x1f7)][_0x656986(0x1bd)](b['takeUntil'](this[_0x656986(0x258)]))['subscribe'](_0x5c6685=>{var _0x3fcf6d=_0x656986;const {eventID:_0x273ab0}=_0x5c6685;switch(_0x273ab0){case _['CollaborationEvent'][_0x3fcf6d(0x23b)]:this[_0x3fcf6d(0x1a3)](_0x5c6685);break;case _[_0x3fcf6d(0x21b)][_0x3fcf6d(0x27e)]:this[_0x3fcf6d(0x200)](_0x5c6685);break;case _[_0x3fcf6d(0x21b)][_0x3fcf6d(0x1c4)]:this[_0x3fcf6d(0x1b8)]();break;case _[_0x3fcf6d(0x21b)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x5c6685);break;}}));}['tryStartPresenting'](){var _0xac65ba=_0x172af3;this[_0xac65ba(0x201)][_0xac65ba(0x26e)]({'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xac65ba(0x212)],'userID':this['_collabSession'][_0xac65ba(0x1d3)]()}},this[_0xac65ba(0x212)]);}[_0x172af3(0x1bb)](){var _0x39e530=_0x172af3;this[_0x39e530(0x1c1)]===_0x39e530(0x1f9)&&(this[_0x39e530(0x1ae)][_0x39e530(0x1fd)]('idle'),this[_0x39e530(0x201)]['send']({'eventID':_[_0x39e530(0x21b)][_0x39e530(0x1c4)],'data':{'unitID':this[_0x39e530(0x212)]}},this[_0x39e530(0x212)]));}[_0x172af3(0x1ec)](){var _0x3701b0=_0x172af3;this[_0x3701b0(0x1c1)]===_0x3701b0(0x1ba)&&(this[_0x3701b0(0x1ae)]['next'](_0x3701b0(0x1c2)),this[_0x3701b0(0x287)]());}[_0x172af3(0x231)](){var _0x4bf9ea=_0x172af3;this[_0x4bf9ea(0x1c1)]==='following'&&this[_0x4bf9ea(0x236)]();}['_handleNewHost'](_0x301463){var _0x15d0e0=_0x172af3;const {presenter:_0x41d232}=_0x301463['data'],_0x5c6494=this[_0x15d0e0(0x201)]['getMemberID']();this[_0x15d0e0(0x24e)]=_0x41d232,_0x41d232===_0x5c6494?(this[_0x15d0e0(0x236)](),this[_0x15d0e0(0x1bc)]()):this['_status']!==_0x15d0e0(0x1ba)&&(this[_0x15d0e0(0x205)](),this[_0x15d0e0(0x287)]());}[_0x172af3(0x1ac)](){var _0x39a279=_0x172af3;const _0x33dfe6={'eventID':_[_0x39a279(0x21b)][_0x39a279(0x1dc)]};this[_0x39a279(0x201)][_0x39a279(0x26e)](_0x33dfe6,this['_unitID']);}['_handleTerminate'](){var _0x22f162=_0x172af3;this[_0x22f162(0x24e)]=null,this[_0x22f162(0x1c1)]!==_0x22f162(0x1f9)&&this[_0x22f162(0x259)]();}[_0x172af3(0x26d)](_0x1eae1c){var _0x486713=_0x172af3;if(this['_status']===_0x486713(0x1c2)&&this['_presenter']===_0x1eae1c['data'][_0x486713(0x248)]){const _0x30c68b=_[_0x486713(0x261)](_0x1eae1c[_0x486713(0x25c)])[_0x486713(0x262)][_0x486713(0x230)]()[_0x486713(0x288)](_0xcc6efa=>_0xcc6efa['id']===C['InsertSheetMutation']['id']);if(_0x30c68b){const _0xcaab1f=_0x30c68b[_0x486713(0x1f1)]['unitId'],_0xfbc437=_0x30c68b[_0x486713(0x1f1)]['sheet']['id'];setTimeout(()=>{var _0x29ddbe=_0x486713;this[_0x29ddbe(0x1a4)][_0x29ddbe(0x256)](C[_0x29ddbe(0x242)]['id'],{'unitId':_0xcaab1f,'subUnitId':_0xfbc437},{'fromCollab':!0x0});});}}}[_0x172af3(0x1bc)](){var _0x12e44f=_0x172af3;this[_0x12e44f(0x1ae)][_0x12e44f(0x1fd)](_0x12e44f(0x1f9));const _0x28eaef=new Map(),_0x39178d=this[_0x12e44f(0x217)]=new o[(_0x12e44f(0x235))]();_0x39178d[_0x12e44f(0x273)](o[_0x12e44f(0x1c0)](()=>{var _0x16be22=_0x12e44f;_0x28eaef[_0x16be22(0x219)](_0x3a22f8=>_0x3a22f8[_0x16be22(0x1fe)]()),_0x28eaef[_0x16be22(0x1ee)]();})),_0x39178d[_0x12e44f(0x273)](this[_0x12e44f(0x1a4)][_0x12e44f(0x280)](_0xeb5ad2=>{var _0x3cb790=_0x12e44f,_0x14d509;if(_0xeb5ad2[_0x3cb790(0x250)]!==o['CommandType'][_0x3cb790(0x23a)]||!this[_0x3cb790(0x1de)][_0x3cb790(0x1ff)](_0xeb5ad2['id']))return;const {id:_0x12bb13}=_0xeb5ad2;let _0x28cae1;_0x28eaef['has'](_0x12bb13)?_0x28cae1=_0x28eaef[_0x3cb790(0x244)](_0x12bb13):(_0x28cae1=new D[(_0x3cb790(0x257))](),_0x28eaef[_0x3cb790(0x210)](_0x12bb13,_0x28cae1),_0x28cae1[_0x3cb790(0x1bd)](b[_0x3cb790(0x203)]((_0x14d509=this[_0x3cb790(0x20e)][_0x3cb790(0x1f2)](Z))!=null?_0x14d509:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3cb790(0x269)](_0x41e0d4=>{var _0x166083=_0x3cb790;this[_0x166083(0x201)][_0x166083(0x26e)]({'eventID':_[_0x166083(0x21b)][_0x166083(0x27e)],'data':{'unitID':this[_0x166083(0x212)],'operations':{[_0x41e0d4['id']]:{'id':_0x41e0d4['id'],'params':JSON['stringify'](_0x41e0d4[_0x166083(0x1f1)])}}}},this[_0x166083(0x212)]);})),_0x28cae1[_0x3cb790(0x1fd)](_0xeb5ad2);})),this[_0x12e44f(0x1de)]['getInitialStates'](this[_0x12e44f(0x212)])[_0x12e44f(0x219)](_0x1082d0=>this[_0x12e44f(0x201)][_0x12e44f(0x26e)]({'eventID':_['CollaborationEvent'][_0x12e44f(0x27e)],'data':{'unitID':this['_unitID'],'operations':{[_0x1082d0['id']]:{'id':_0x1082d0['id'],'params':JSON[_0x12e44f(0x1cc)](_0x1082d0['params'])}}}},this[_0x12e44f(0x212)]));}['_stopPresenting'](){var _0x3959de=_0x172af3,_0x3f06b3;this[_0x3959de(0x1ae)][_0x3959de(0x1fd)]('idle'),(_0x3f06b3=this[_0x3959de(0x217)])==null||_0x3f06b3['dispose'](),this[_0x3959de(0x217)]=null;}['_startFollowing'](){var _0xca6c4c=_0x172af3,_0x27f480;(_0x27f480=this['_commandDisposable'])==null||_0x27f480[_0xca6c4c(0x224)](),this[_0xca6c4c(0x1ae)][_0xca6c4c(0x1fd)](_0xca6c4c(0x1c2));}[_0x172af3(0x259)](){var _0x613d3c=_0x172af3,_0x59f530;this[_0x613d3c(0x1ae)]['next'](_0x613d3c(0x1fa)),(_0x59f530=this['_commandDisposable'])==null||_0x59f530[_0x613d3c(0x224)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0xb28165=_0x172af3,_0x2c4655;this[_0xb28165(0x1ae)][_0xb28165(0x1fd)](_0xb28165(0x1ba)),(_0x2c4655=this[_0xb28165(0x217)])==null||_0x2c4655[_0xb28165(0x224)]();}['_handleOperation'](_0x471452){var _0x2dbe90=_0x172af3;if([_0x2dbe90(0x1f9),_0x2dbe90(0x1ba),_0x2dbe90(0x278)][_0x2dbe90(0x215)](this[_0x2dbe90(0x1c1)])||!_0x471452[_0x2dbe90(0x25c)][_0x2dbe90(0x220)]||_0x471452[_0x2dbe90(0x25c)][_0x2dbe90(0x220)]===this['_collabSession'][_0x2dbe90(0x1d3)]())return;this[_0x2dbe90(0x1c1)]===_0x2dbe90(0x1fa)&&this[_0x2dbe90(0x287)]();const _0x5bff11=_0x471452['data'][_0x2dbe90(0x21e)];Object[_0x2dbe90(0x271)](_0x5bff11)['forEach'](_0x3c7b0e=>{var _0x30f2e4=_0x2dbe90;this['_commandService'][_0x30f2e4(0x256)](_0x3c7b0e['id'],_0x3c7b0e['params']?JSON['parse'](_0x3c7b0e[_0x30f2e4(0x1f1)]):null,{'fromCollab':!0x0});});}[_0x172af3(0x1d4)](){var _0x5015c2=_0x172af3,_0x208275;this[_0x5015c2(0x1ae)][_0x5015c2(0x1fd)](_0x5015c2(0x278)),(_0x208275=this[_0x5015c2(0x217)])==null||_0x208275['dispose']();}[_0x172af3(0x1b3)](){var _0x4f5797=_0x172af3;this[_0x4f5797(0x1ae)][_0x4f5797(0x1fd)](_0x4f5797(0x1fa)),this[_0x4f5797(0x1ac)]();}},exports[_0x172af3(0x1aa)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x172af3(0x275)](O)),S(0x4,o[_0x172af3(0x279)])],exports['LiveShareCoordinator']);function A(){var _0x520ebe=_0x172af3;const _0x1a3a7b=p['useDependency'](exports[_0x520ebe(0x22b)]),_0x321149=p[_0x520ebe(0x26b)](o[_0x520ebe(0x1ab)]),_0x1ee95c=p[_0x520ebe(0x214)](()=>_0x321149['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x520ebe(0x222)]),void 0x0,!0x1,[]),[_0x2cbf31,_0x37d1c6]=f['useState'](null),[_0x76892c,_0x22ca62]=f[_0x520ebe(0x1ea)](h[_0x520ebe(0x229)]),_0x40d890=f[_0x520ebe(0x276)](null);return f[_0x520ebe(0x274)](()=>(_0x1ee95c&&_0x1a3a7b['getLiveShareCoordinator'](_0x1ee95c[_0x520ebe(0x24c)]())[_0x520ebe(0x28b)](_0x34df94=>{var _0x30f923=_0x520ebe;_0x37d1c6(_0x34df94),_0x40d890['current']=_0x34df94['status$'][_0x30f923(0x269)](_0x4ca6c8=>{_0x22ca62(_0x4ca6c8);});}),()=>{var _0x554879=_0x520ebe,_0x1b9a16;(_0x1b9a16=_0x40d890[_0x554879(0x23d)])==null||_0x1b9a16['unsubscribe'](),_0x40d890[_0x554879(0x23d)]=null;}),[_0x1ee95c,_0x1a3a7b]),_0x2cbf31?l[_0x520ebe(0x286)](g[_0x520ebe(0x285)],{'align':_0x520ebe(0x1fc),'disabled':_0x76892c===h[_0x520ebe(0x1a2)],'className':_0x520ebe(0x1a1),'overlay':l[_0x520ebe(0x286)](K,{'status':_0x76892c,'coordinator':_0x2cbf31}),'children':l['jsx'](_0x520ebe(0x1a9),{'className':g['clsx'](_0x520ebe(0x213),{'univer-cursor-not-allowed':_0x76892c===h[_0x520ebe(0x1a2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x76892c!==h[_0x520ebe(0x1a2)]}),'type':_0x520ebe(0x1a9),'children':l[_0x520ebe(0x286)](P,{'className':'univer-size-4'})})}):null;}function K(_0x519f8e){var _0xdd543d=_0x172af3;const {status:_0x32d458,coordinator:_0x589d33}=_0x519f8e;switch(_0x32d458){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x589d33});case h[_0xdd543d(0x1e1)]:return l[_0xdd543d(0x286)](Q,{'coordinator':_0x589d33});case h[_0xdd543d(0x282)]:return l[_0xdd543d(0x286)](X,{'coordinator':_0x589d33});case h[_0xdd543d(0x1a2)]:return l[_0xdd543d(0x286)](te,{});case h['PRESENTING']:return l[_0xdd543d(0x286)](ee,{'coordinator':_0x589d33});default:return null;}}function z(_0x225301){var _0xebb54c=_0x172af3;const {coordinator:_0x4b5a17}=_0x225301;return l[_0xebb54c(0x1d2)](l[_0xebb54c(0x1b5)],{'children':[l[_0xebb54c(0x286)](_0xebb54c(0x1f5),{'className':_0xebb54c(0x1b9),'children':_0xebb54c(0x23e)}),l[_0xebb54c(0x286)](g[_0xebb54c(0x1e0)],{'onClick':()=>_0x4b5a17[_0xebb54c(0x238)](),'children':_0xebb54c(0x25f)})]});}function _0x529f(_0x5a5c6e,_0x1019dc){var _0xfe4a35=_0xfe4a();return _0x529f=function(_0x529f65,_0x150e2e){_0x529f65=_0x529f65-0x1a1;var _0x2a1857=_0xfe4a35[_0x529f65];return _0x2a1857;},_0x529f(_0x5a5c6e,_0x1019dc);}function Q(_0x3fc891){var _0x25ddc4=_0x172af3;const {coordinator:_0x472b74}=_0x3fc891;return l['jsxs'](l['Fragment'],{'children':[l[_0x25ddc4(0x286)]('div',{'className':_0x25ddc4(0x1b9),'children':_0x25ddc4(0x270)}),l[_0x25ddc4(0x286)](g[_0x25ddc4(0x1e0)],{'onClick':()=>_0x472b74[_0x25ddc4(0x231)](),'children':'Stop\x20following'})]});}function X(_0xc28d81){var _0x91a38f=_0x172af3;const {coordinator:_0x1025ed}=_0xc28d81;return l[_0x91a38f(0x1d2)](l[_0x91a38f(0x1b5)],{'children':[l[_0x91a38f(0x286)](_0x91a38f(0x1f5),{'className':_0x91a38f(0x1b9),'children':_0x91a38f(0x1d8)}),l[_0x91a38f(0x286)](g[_0x91a38f(0x1e0)],{'variant':_0x91a38f(0x22e),'onClick':()=>_0x1025ed[_0x91a38f(0x1ec)](),'children':_0x91a38f(0x1b2)})]});}function _0xfe4a(){var _0x15bcf8=['UniverInstanceType','presenter','react/jsx-runtime','UNIVER_SHEET','1em','dispose','_init','rxjs/operators','map','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','IDLE','init','LiveShareController','colorChannel1','@univerjs/sheets','text','576838DyQmdr','reverse','stopFollowing','function','connectInjector','_config','DisposableCollection','_stopFollowing','replace','tryStartPresenting','SAME_OPERATION_SHARE_INTERVAL','OPERATION','LIVESHARE_NEW_HOST','apply','current','Present\x20this\x20document','status$','defineProperty','getTypeOfUnitDisposed$','SetWorksheetActiveOperation','concat','get','defs','SetScrollOperation','LiveShare','memberID','trim','requireSession','_injector','getUnitId','icon','_presenter','3830iwdCBQ','type','@univerjs-pro/collaboration-client','onStarting','_reporters','sessionStatus$','tag','executeCommand','Subject','dispose$','_beIdle','0\x200\x2017\x2017','@univerjs/sheets-ui','data','Stop\x20presenting','rxjs','Start','HEADER_MENU','parseProtocolChangeset','mutations','registerDependencies','registerSharedOperation','UNIVER_UNKNOWN','mergeOverrideWithDependencies','entries','forwardRef','subscribe','1908JrabbF','useDependency','_sharedOperations','_handleNewChangeSets','send','children','You\x27re\x20following\x20the\x20presenter','values','Disposable','add','useEffect','Inject','useRef','prototype','offline','ICommandService','_uiPartsService','187152ANZCuc','218590kIGcsp','_entities','LIVESHARE_OPERATION','25180sxINfq','onCommandExecuted','createInstance','NOT_FOLLOWING','className','string','Dropdown','jsx','_startFollowing','find','substring','xlink:href','then','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','OFFLINE','_handleNewHost','_commandService','has','_mountLiveShare','url(#$1','assign','button','LiveShareCoordinator','IUniverInstanceService','_fetchOperations','takeUntil','_status$','LiveShareService','none','LiveShareIcon','Start\x20following','_handleOnline','live-share.config','Fragment','343aGhnRo','length','_handleTerminate','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','stopPresenting','_startPresenting','pipe','fill','getTypeOfUnitAdded$','toDisposable','_status','following','4569Iqowzg','LIVESHARE_TERMINATE','You\x27re\x20presenting\x20the\x20document','touchDependencies','setConfig','disposeWithMe','484PlEGmr','indexOf','live-share-icon','stringify','attrs','idSuffix','currentColor','univerjs-icon\x20univerjs-icon-','use','jsxs','getMemberID','_handleOffline','34134fFVFBv','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinator','You\x27re\x20not\x20following\x20the\x20presenter','getOwnPropertySymbols','delete','hasOwnProperty','LIVESHARE_FETCH_OPERATIONS','merge','_liveShareService','LiveShareStatus','Button','FOLLOWING','getOwnPropertyDescriptor','SessionStatus','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','http://www.w3.org/2000/svg','PRESENTING','UniverIcon','pluginName','path','useState','svg','startFollowing','SetZoomRatioOperation','clear','symbol','evenodd','params','getConfig','CollaborationSessionService','BuiltInUIPart','div','registerInitialStateReporter','event$','RxDisposable','presenting','idle','displayName','end','next','complete','shouldShareOperation','_handleOperation','_collabSession','_univerInstanceService','throttleTime','IConfigService','_stopPresenting','Injector','DesktopLiveShareController','UniverLiveSharePlugin','defIds','createElement','mask','@univerjs/ui','_collabSessionService','_configService','toStringTag','set','call','_unitID','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','useObservable','includes','BehaviorSubject','_commandDisposable','Module','forEach','propertyIsEnumerable','CollaborationEvent','extend','_startLiveShareCoordinator','operations'];_0xfe4a=function(){return _0x15bcf8;};return _0xfe4a();}function ee(_0x4189c7){var _0x556d10=_0x172af3;const {coordinator:_0x37c51d}=_0x4189c7;return l[_0x556d10(0x1d2)](l[_0x556d10(0x1b5)],{'children':[l[_0x556d10(0x286)]('div',{'className':_0x556d10(0x1b9),'children':_0x556d10(0x1c5)}),l[_0x556d10(0x286)](g[_0x556d10(0x1e0)],{'variant':'default','onClick':()=>_0x37c51d[_0x556d10(0x1bb)](),'children':_0x556d10(0x25d)})]});}function te(){var _0x32c6ab=_0x172af3;return l[_0x32c6ab(0x286)](l[_0x32c6ab(0x1b5)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x172af3(0x1e2)],ne=(_0x38d755,_0x4645f8,_0x458bad,_0x19d222)=>{var _0x3f1f9a=_0x172af3;for(var _0x59cc44=_0x19d222>0x1?void 0x0:_0x19d222?ie(_0x4645f8,_0x458bad):_0x4645f8,_0x30f531=_0x38d755[_0x3f1f9a(0x1b7)]-0x1,_0x2cb840;_0x30f531>=0x0;_0x30f531--)(_0x2cb840=_0x38d755[_0x30f531])&&(_0x59cc44=_0x2cb840(_0x59cc44)||_0x59cc44);return _0x59cc44;},L=(_0x1ba22d,_0x449959)=>(_0x297955,_0x4a7fe8)=>_0x449959(_0x297955,_0x4a7fe8,_0x1ba22d);exports['DesktopLiveShareController']=class extends o[_0x172af3(0x272)]{constructor(_0x2cccb3,_0x3f8162){var _0x5be244=_0x172af3;super(),this['_injector']=_0x2cccb3,this[_0x5be244(0x27a)]=_0x3f8162,this[_0x5be244(0x1a6)]();}[_0x172af3(0x1a6)](){var _0x5d9905=_0x172af3;this['disposeWithMe'](this[_0x5d9905(0x27a)]['registerComponent'](p[_0x5d9905(0x1f4)][_0x5d9905(0x260)],()=>p[_0x5d9905(0x233)](A,this['_injector'])));}},exports[_0x172af3(0x207)]=ne([L(0x0,o[_0x172af3(0x275)](o[_0x172af3(0x206)])),L(0x1,p['IUIPartsService'])],exports[_0x172af3(0x207)]);var re=Object[_0x172af3(0x240)],se=Object[_0x172af3(0x1e2)],oe=(_0x33dfd5,_0x3bc0cf,_0x328d20)=>_0x3bc0cf in _0x33dfd5?re(_0x33dfd5,_0x3bc0cf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x328d20}):_0x33dfd5[_0x3bc0cf]=_0x328d20,ae=(_0x2e319a,_0x5c80a8,_0x41e32b,_0x899ccf)=>{var _0xb79b10=_0x172af3;for(var _0x2cc470=_0x899ccf>0x1?void 0x0:_0x899ccf?se(_0x5c80a8,_0x41e32b):_0x5c80a8,_0x4e6f1b=_0x2e319a[_0xb79b10(0x1b7)]-0x1,_0xbaaa72;_0x4e6f1b>=0x0;_0x4e6f1b--)(_0xbaaa72=_0x2e319a[_0x4e6f1b])&&(_0x2cc470=_0xbaaa72(_0x2cc470)||_0x2cc470);return _0x2cc470;},N=(_0x304486,_0x3f580f)=>(_0x580357,_0x4796c1)=>_0x3f580f(_0x580357,_0x4796c1,_0x304486),T=(_0x59c203,_0x2995a6,_0x48f354)=>oe(_0x59c203,typeof _0x2995a6!=_0x172af3(0x1ef)?_0x2995a6+'':_0x2995a6,_0x48f354);const le=_0x172af3(0x1d6);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x3f1094=x,_0x6d38a2,_0x48227c){var _0x3bb55a=_0x172af3;super(),this['_config']=_0x3f1094,this['_injector']=_0x6d38a2,this[_0x3bb55a(0x20e)]=_0x48227c;const {..._0x5909dc}=o[_0x3bb55a(0x1dd)]({},x,this[_0x3bb55a(0x234)]);this['_configService'][_0x3bb55a(0x1c7)]($,_0x5909dc);}[_0x172af3(0x252)](){var _0x5e1773=_0x172af3;o[_0x5e1773(0x263)](this[_0x5e1773(0x24b)],o[_0x5e1773(0x266)]([[O],[exports['LiveShareController']],[E],[exports[_0x5e1773(0x207)]]],this[_0x5e1773(0x234)]['override'])),o[_0x5e1773(0x1c6)](this['_injector'],[[E]]);}['onRendered'](){var _0x3f1bba=_0x172af3;o[_0x3f1bba(0x1c6)](this[_0x3f1bba(0x24b)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x172af3(0x208)],_0x172af3(0x250),o['UniverInstanceType'][_0x172af3(0x265)]),T(exports[_0x172af3(0x208)],_0x172af3(0x1e8),le),exports[_0x172af3(0x208)]=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x172af3(0x275)](o[_0x172af3(0x206)])),N(0x2,o[_0x172af3(0x204)])],exports[_0x172af3(0x208)]),exports[_0x172af3(0x247)]=A,exports[_0x172af3(0x1af)]=O,exports[_0x172af3(0x1df)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x1d8b53=_0x4a93;(function(_0x1c412a,_0x4721e1){var _0x48051f=_0x4a93,_0x5ebf7c=_0x1c412a();while(!![]){try{var _0x2cc816=-parseInt(_0x48051f(0x1e8))/0x1+-parseInt(_0x48051f(0x1d5))/0x2*(parseInt(_0x48051f(0x204))/0x3)+parseInt(_0x48051f(0x20d))/0x4+parseInt(_0x48051f(0x1c4))/0x5*(-parseInt(_0x48051f(0x220))/0x6)+parseInt(_0x48051f(0x21c))/0x7+-parseInt(_0x48051f(0x1a9))/0x8+parseInt(_0x48051f(0x1ef))/0x9;if(_0x2cc816===_0x4721e1)break;else _0x5ebf7c['push'](_0x5ebf7c['shift']());}catch(_0x47f457){_0x5ebf7c['push'](_0x5ebf7c['shift']());}}}(_0x3bc7,0xb2c5d));var q=Object[_0x1d8b53(0x1be)],z=(_0x1b8315,_0x9c876a,_0x1ad484)=>_0x9c876a in _0x1b8315?q(_0x1b8315,_0x9c876a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ad484}):_0x1b8315[_0x9c876a]=_0x1ad484,d=(_0xe4ee69,_0x20184e,_0x1dcd7d)=>z(_0xe4ee69,typeof _0x20184e!=_0x1d8b53(0x1a7)?_0x20184e+'':_0x20184e,_0x1dcd7d);import{CollaborationSessionService as _0x4cef2c,SessionStatus as _0x5cfa23,UniverCollaborationClientPlugin as _0x4073ea}from'@univerjs-pro/collaboration-client';import{Disposable as _0xea3d2e,toDisposable as _0x172916,Inject as _0x239a44,IUniverInstanceService as _0xe4611b,Injector as _0x192d3b,IConfigService as _0x558741,ICommandService as _0x584762,RxDisposable as _0x260b45,UniverInstanceType as _0x33fb10,DisposableCollection as _0x211483,CommandType as _0x5e8cc6,DependentOn as _0x98ddff,Plugin as _0x587f09,merge as _0xa177d7,registerDependencies as _0x174d4e,mergeOverrideWithDependencies as _0x27a061,touchDependencies as _0x49be97}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x286b47,InsertSheetMutation as _0x331837}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x158b6e,SetScrollOperation as _0x4d2280}from'@univerjs/sheets-ui';import{useDependency as _0x14ae59,useObservable as _0xe07f56,IUIPartsService as _0x241906,BuiltInUIPart as _0x1217a7,connectInjector as _0x5143ac}from'@univerjs/ui';import{jsx as _0x2f0961,jsxs as _0x2dbab2,Fragment as _0x12f368}from'react/jsx-runtime';import{Dropdown as _0x46ea1d,clsx as _0x39a291,Button as _0x226687}from'@univerjs/design';import{forwardRef as _0x15ec25,useRef as _0x3ecb29,createElement as _0x16e93a,useState as _0x48688c,useEffect as _0x22643b}from'react';import{CollaborationEvent as _0x30c7bc,parseProtocolChangeset as _0x1495b0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3cc28c,Subject as _0x4fab24}from'rxjs';import{takeUntil as _0x1ced03,throttleTime as _0x32385e}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0xea3d2e{constructor(){var _0x258f43=_0x1d8b53;super(...arguments),d(this,_0x258f43(0x217),new Set()),d(this,_0x258f43(0x1ed),new Set());}[_0x1d8b53(0x21d)](_0x4cbe8a){var _0x4c88d8=_0x1d8b53;return this['_sharedOperations']['add'](_0x4cbe8a),_0x172916(()=>this[_0x4c88d8(0x217)][_0x4c88d8(0x20e)](_0x4cbe8a));}[_0x1d8b53(0x1bf)](_0xceda9c){var _0x27f845=_0x1d8b53;return this[_0x27f845(0x1ed)][_0x27f845(0x1c1)](_0xceda9c),_0x172916(()=>this[_0x27f845(0x1ed)][_0x27f845(0x20e)](_0xceda9c));}['shouldShareOperation'](_0x3c2446){var _0x489af5=_0x1d8b53;return this[_0x489af5(0x217)][_0x489af5(0x19b)](_0x3c2446);}['getInitialStates'](_0x185644){var _0x5662c7=_0x1d8b53;return Array[_0x5662c7(0x174)](this['_reporters'])[_0x5662c7(0x1b8)](_0x3c81ab=>_0x3c81ab(_0x185644));}}var Ee=Object[_0x1d8b53(0x1e2)],we=(_0x1a142e,_0x249868,_0x25d5e9,_0x3699e1)=>{for(var _0x32749e=_0x3699e1>0x1?void 0x0:_0x3699e1?Ee(_0x249868,_0x25d5e9):_0x249868,_0x14af68=_0x1a142e['length']-0x1,_0x4a9ed9;_0x14af68>=0x0;_0x14af68--)(_0x4a9ed9=_0x1a142e[_0x14af68])&&(_0x32749e=_0x4a9ed9(_0x32749e)||_0x32749e);return _0x32749e;},Ne=(_0x207cb9,_0x46b086)=>(_0x561061,_0xf87905)=>_0x46b086(_0x561061,_0xf87905,_0x207cb9);let m=class extends _0xea3d2e{constructor(_0x7300ec){var _0x108b47=_0x1d8b53;super(),this['_liveShareService']=_0x7300ec,this[_0x108b47(0x1f8)]();}[_0x1d8b53(0x1f8)](){var _0x47120d=_0x1d8b53;[_0x158b6e['id'],_0x4d2280['id'],_0x286b47['id']][_0x47120d(0x194)](_0x5b528d=>{var _0x4f00fb=_0x47120d;this[_0x4f00fb(0x219)](this[_0x4f00fb(0x180)][_0x4f00fb(0x21d)](_0x5b528d));});}};m=we([Ne(0x0,_0x239a44(L))],m);function _0x4a93(_0x2fd27e,_0x12a581){var _0x3bc7b3=_0x3bc7();return _0x4a93=function(_0x4a939b,_0x4f5d24){_0x4a939b=_0x4a939b-0x16c;var _0x1c49ee=_0x3bc7b3[_0x4a939b];return _0x1c49ee;},_0x4a93(_0x2fd27e,_0x12a581);}var c=function(){var _0x26a520=_0x1d8b53;return c=Object[_0x26a520(0x198)]||function(_0xbf9792){var _0x1ef818=_0x26a520;for(var _0x2e00f4,_0x45a39e=0x1,_0x22e0e0=arguments[_0x1ef818(0x188)];_0x45a39e<_0x22e0e0;_0x45a39e++){_0x2e00f4=arguments[_0x45a39e];for(var _0x53003f in _0x2e00f4)Object[_0x1ef818(0x1dd)]['hasOwnProperty'][_0x1ef818(0x175)](_0x2e00f4,_0x53003f)&&(_0xbf9792[_0x53003f]=_0x2e00f4[_0x53003f]);}return _0xbf9792;},c[_0x26a520(0x1c0)](this,arguments);},Ce=function(_0x1e0df3,_0x18ad15){var _0x59a2e4=_0x1d8b53,_0x244a8b={};for(var _0x3ad7aa in _0x1e0df3)Object['prototype']['hasOwnProperty'][_0x59a2e4(0x175)](_0x1e0df3,_0x3ad7aa)&&_0x18ad15[_0x59a2e4(0x191)](_0x3ad7aa)<0x0&&(_0x244a8b[_0x3ad7aa]=_0x1e0df3[_0x3ad7aa]);if(_0x1e0df3!=null&&typeof Object['getOwnPropertySymbols']==_0x59a2e4(0x170)){for(var _0x19eba5=0x0,_0x3ad7aa=Object[_0x59a2e4(0x209)](_0x1e0df3);_0x19eba5<_0x3ad7aa[_0x59a2e4(0x188)];_0x19eba5++)_0x18ad15[_0x59a2e4(0x191)](_0x3ad7aa[_0x19eba5])<0x0&&Object[_0x59a2e4(0x1dd)]['propertyIsEnumerable'][_0x59a2e4(0x175)](_0x1e0df3,_0x3ad7aa[_0x19eba5])&&(_0x244a8b[_0x3ad7aa[_0x19eba5]]=_0x1e0df3[_0x3ad7aa[_0x19eba5]]);}return _0x244a8b;},W=_0x15ec25(function(_0x22a4f9,_0x18b145){var _0x22c426=_0x1d8b53,_0x74fc5b=_0x22a4f9[_0x22c426(0x1b7)],_0x546ff6=_0x22a4f9['id'],_0x3c29e4=_0x22a4f9[_0x22c426(0x16f)],_0x40e04e=_0x22a4f9['extend'],_0x245f9d=Ce(_0x22a4f9,['icon','id',_0x22c426(0x16f),_0x22c426(0x171)]),_0x2de780=_0x22c426(0x1fc)[_0x22c426(0x1c8)](_0x546ff6,'\x20')[_0x22c426(0x1c8)](_0x3c29e4||'')[_0x22c426(0x16c)](),_0x34ecf4=_0x3ecb29('_'['concat'](Le()));return Y(_0x74fc5b,''['concat'](_0x546ff6),{'defIds':_0x74fc5b[_0x22c426(0x1a6)],'idSuffix':_0x34ecf4[_0x22c426(0x197)]},c({'ref':_0x18b145,'className':_0x2de780},_0x245f9d),_0x40e04e);});function Y(_0x357dcc,_0xd13a72,_0x51a57e,_0x174d64,_0x12fe0e){var _0x59fb1b=_0x1d8b53;return _0x16e93a(_0x357dcc['tag'],c(c({'key':_0xd13a72},De(_0x357dcc,_0x51a57e,_0x12fe0e)),_0x174d64),(xe(_0x357dcc,_0x51a57e)[_0x59fb1b(0x1a8)]||[])[_0x59fb1b(0x1b8)](function(_0x215130,_0x2954ea){var _0xe4ba90=_0x59fb1b;return Y(_0x215130,''[_0xe4ba90(0x1c8)](_0xd13a72,'-')[_0xe4ba90(0x1c8)](_0x357dcc[_0xe4ba90(0x1fe)],'-')['concat'](_0x2954ea),_0x51a57e,void 0x0,_0x12fe0e);}));}function De(_0x4fb37a,_0x17e4ae,_0x140622){var _0x4c57ec=_0x1d8b53,_0x575c2e=c({},_0x4fb37a[_0x4c57ec(0x218)]);_0x140622!=null&&_0x140622['colorChannel1']&&_0x575c2e[_0x4c57ec(0x19d)]===_0x4c57ec(0x19e)&&(_0x575c2e[_0x4c57ec(0x19d)]=_0x140622[_0x4c57ec(0x19e)]),_0x4fb37a[_0x4c57ec(0x1fe)]===_0x4c57ec(0x1d6)&&_0x575c2e['id']&&(_0x575c2e['id']=_0x575c2e['id']+_0x17e4ae[_0x4c57ec(0x1af)]),Object[_0x4c57ec(0x1f3)](_0x575c2e)[_0x4c57ec(0x194)](function(_0x1392e8){var _0x1d9695=_0x4c57ec,_0x4f189c=_0x1392e8[0x0],_0x5cc21c=_0x1392e8[0x1];_0x4f189c==='mask'&&typeof _0x5cc21c=='string'&&(_0x575c2e[_0x4f189c]=_0x5cc21c[_0x1d9695(0x1ee)](/url\(#(.*)\)/,_0x1d9695(0x1b9)[_0x1d9695(0x1c8)](_0x17e4ae[_0x1d9695(0x1af)],')')));});var _0x5f3a5c=_0x17e4ae[_0x4c57ec(0x1a6)];return!_0x5f3a5c||_0x5f3a5c['length']===0x0||(_0x4fb37a[_0x4c57ec(0x1fe)]==='use'&&_0x575c2e[_0x4c57ec(0x214)]&&(_0x575c2e[_0x4c57ec(0x214)]=_0x575c2e[_0x4c57ec(0x214)]+_0x17e4ae[_0x4c57ec(0x1af)]),Object[_0x4c57ec(0x1f3)](_0x575c2e)[_0x4c57ec(0x194)](function(_0x367307){var _0x380aba=_0x4c57ec,_0x3fb3f5=_0x367307[0x0],_0xd9c0dc=_0x367307[0x1];typeof _0xd9c0dc==_0x380aba(0x196)&&(_0x575c2e[_0x3fb3f5]=_0xd9c0dc['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x17e4ae[_0x380aba(0x1af)],')')));})),_0x575c2e;}function xe(_0x12ba6e,_0x4b1536){var _0x160606=_0x1d8b53,_0x17c74b,_0x156cd4=_0x4b1536[_0x160606(0x1a6)];return!_0x156cd4||_0x156cd4['length']===0x0?_0x12ba6e:_0x12ba6e[_0x160606(0x1fe)]===_0x160606(0x208)&&(!((_0x17c74b=_0x12ba6e['children'])===null||_0x17c74b===void 0x0)&&_0x17c74b[_0x160606(0x188)])?c(c({},_0x12ba6e),{'children':_0x12ba6e[_0x160606(0x1a8)][_0x160606(0x1b8)](function(_0x5a92f0){var _0x4c7f0f=_0x160606;return typeof _0x5a92f0[_0x4c7f0f(0x218)]['id']==_0x4c7f0f(0x196)&&_0x156cd4&&_0x156cd4['includes'](_0x5a92f0['attrs']['id'])?c(c({},_0x5a92f0),{'attrs':c(c({},_0x5a92f0[_0x4c7f0f(0x218)]),{'id':_0x5a92f0[_0x4c7f0f(0x218)]['id']+_0x4b1536['idSuffix']})}):_0x5a92f0;})}):_0x12ba6e;}function Le(){var _0x5e8c8=_0x1d8b53;return Math[_0x5e8c8(0x1dc)]()[_0x5e8c8(0x21f)](0x24)[_0x5e8c8(0x206)](0x2,0x8);}W['displayName']=_0x1d8b53(0x1b4);var ye={'tag':'svg','attrs':{'xmlns':_0x1d8b53(0x19f),'fill':_0x1d8b53(0x17f),'viewBox':'0\x200\x2017\x2017','width':_0x1d8b53(0x1f4),'height':_0x1d8b53(0x1f4)},'children':[{'tag':_0x1d8b53(0x1f2),'attrs':{'fill':_0x1d8b53(0x1f9),'d':_0x1d8b53(0x179)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x1d8b53(0x215),'fillRule':_0x1d8b53(0x1cd),'clipRule':'evenodd'}}]},B=_0x15ec25(function(_0x5a2619,_0x143821){var _0xc16824=_0x1d8b53;return _0x16e93a(W,Object['assign']({},_0x5a2619,{'id':_0xc16824(0x1bd),'ref':_0x143821,'icon':ye}));});B[_0x1d8b53(0x1e6)]=_0x1d8b53(0x18f);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x40c314,_0x3a0ec6,_0x2bc05e,_0x2a5976)=>{var _0x3f37c1=_0x1d8b53;for(var _0x17dbc5=_0x2a5976>0x1?void 0x0:_0x2a5976?Re(_0x3a0ec6,_0x2bc05e):_0x3a0ec6,_0x313424=_0x40c314[_0x3f37c1(0x188)]-0x1,_0x187c97;_0x313424>=0x0;_0x313424--)(_0x187c97=_0x40c314[_0x313424])&&(_0x17dbc5=_0x187c97(_0x17dbc5)||_0x17dbc5);return _0x17dbc5;},f=(_0x86ef21,_0x1eb35f)=>(_0x231bb1,_0x4f3bf4)=>_0x1eb35f(_0x231bb1,_0x4f3bf4,_0x86ef21);let I=class extends _0x260b45{constructor(_0x5f6d2b,_0x9ca862,_0x49c362){var _0x4fbbf4=_0x1d8b53;super(),d(this,_0x4fbbf4(0x17d),new Map()),(this[_0x4fbbf4(0x17c)]=_0x5f6d2b,this[_0x4fbbf4(0x1ca)]=_0x9ca862,this[_0x4fbbf4(0x1c5)]=_0x49c362,this[_0x4fbbf4(0x1f8)]());}async[_0x1d8b53(0x1d4)](_0xe3a0e4){var _0x46da20=_0x1d8b53;return this[_0x46da20(0x17d)][_0x46da20(0x19b)](_0xe3a0e4)||await this[_0x46da20(0x16e)](_0xe3a0e4),this[_0x46da20(0x17d)][_0x46da20(0x20a)](_0xe3a0e4);}[_0x1d8b53(0x1f8)](){var _0x2d063f=_0x1d8b53;this[_0x2d063f(0x17c)][_0x2d063f(0x1f0)](_0x33fb10[_0x2d063f(0x221)])[_0x2d063f(0x193)](_0x1ced03(this[_0x2d063f(0x1d0)]))[_0x2d063f(0x182)](async _0x5af0db=>{var _0x33ea4a=_0x2d063f;const _0xf8fe09=_0x5af0db[_0x33ea4a(0x207)]();this[_0x33ea4a(0x17d)]['has'](_0xf8fe09)||this[_0x33ea4a(0x16e)](_0xf8fe09);}),this[_0x2d063f(0x17c)][_0x2d063f(0x1ea)](_0x33fb10[_0x2d063f(0x221)])[_0x2d063f(0x193)](_0x1ced03(this[_0x2d063f(0x1d0)]))['subscribe'](_0x5f4a45=>{var _0x12a431=_0x2d063f;const _0x7539de=_0x5f4a45[_0x12a431(0x207)](),_0x48abca=this[_0x12a431(0x17d)][_0x12a431(0x20a)](_0x7539de);_0x48abca==null||_0x48abca[_0x12a431(0x189)]();});}async[_0x1d8b53(0x16e)](_0x267c9e){var _0x33374b=_0x1d8b53;const _0x3af11c=await this[_0x33374b(0x1c5)][_0x33374b(0x1c7)](_0x267c9e),_0x1a2adb=this[_0x33374b(0x1ca)]['createInstance'](C,_0x267c9e,_0x3af11c);return _0x1a2adb['init'](),this[_0x33374b(0x17d)][_0x33374b(0x213)](_0x267c9e,_0x1a2adb),_0x1a2adb;}};I=Z([f(0x0,_0xe4611b),f(0x1,_0x239a44(_0x192d3b)),f(0x2,_0x239a44(_0x4cef2c))],I);var h=(_0x1121fa=>(_0x1121fa['OFFLINE']=_0x1d8b53(0x1ad),_0x1121fa[_0x1d8b53(0x18a)]=_0x1d8b53(0x173),_0x1121fa['FOLLOWING']='following',_0x1121fa[_0x1d8b53(0x1de)]=_0x1d8b53(0x20b),_0x1121fa[_0x1d8b53(0x21b)]=_0x1d8b53(0x1c9),_0x1121fa))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x260b45{constructor(_0x36254e,_0x29780f,_0x29f97e,_0xb9965a,_0x8dbfab){var _0x39fda8=_0x1d8b53;super(),d(this,_0x39fda8(0x1df),new _0x3cc28c(_0x39fda8(0x173))),d(this,_0x39fda8(0x1b3),this[_0x39fda8(0x1df)][_0x39fda8(0x212)]()),d(this,'_init',!0x1),d(this,_0x39fda8(0x177),null),d(this,_0x39fda8(0x1e0),null),(this['_unitID']=_0x36254e,this[_0x39fda8(0x205)]=_0x29780f,this['_configService']=_0x29f97e,this[_0x39fda8(0x180)]=_0xb9965a,this[_0x39fda8(0x185)]=_0x8dbfab);}get[_0x1d8b53(0x1a4)](){var _0x5da06c=_0x1d8b53;return this['_status$'][_0x5da06c(0x1d8)]();}[_0x1d8b53(0x189)](){var _0xe3b2c9=_0x1d8b53,_0x3b64a4;(_0x3b64a4=this[_0xe3b2c9(0x177)])==null||_0x3b64a4[_0xe3b2c9(0x189)](),this[_0xe3b2c9(0x1df)][_0xe3b2c9(0x1e5)](_0xe3b2c9(0x173)),this[_0xe3b2c9(0x1df)][_0xe3b2c9(0x1da)]();}[_0x1d8b53(0x1e7)](){var _0x14ad78=_0x1d8b53;this[_0x14ad78(0x1f8)]||(this[_0x14ad78(0x1f8)]=!0x0,this['_collabSession'][_0x14ad78(0x1ec)][_0x14ad78(0x193)](_0x1ced03(this[_0x14ad78(0x1d0)]))[_0x14ad78(0x182)](_0x59bf7a=>{var _0x1840d9=_0x14ad78;switch(_0x59bf7a){case _0x5cfa23[_0x1840d9(0x1aa)]:this[_0x1840d9(0x1ae)]();break;case _0x5cfa23[_0x1840d9(0x18e)]:this[_0x1840d9(0x1a5)]();break;}}),this[_0x14ad78(0x205)]['event$'][_0x14ad78(0x193)](_0x1ced03(this[_0x14ad78(0x1d0)]))[_0x14ad78(0x182)](_0x43904e=>{var _0xb170c3=_0x14ad78;const {eventID:_0x58bec8}=_0x43904e;switch(_0x58bec8){case _0x30c7bc[_0xb170c3(0x19a)]:this[_0xb170c3(0x1fd)](_0x43904e);break;case _0x30c7bc[_0xb170c3(0x195)]:this[_0xb170c3(0x1e9)](_0x43904e);break;case _0x30c7bc[_0xb170c3(0x201)]:this[_0xb170c3(0x21a)]();break;case _0x30c7bc[_0xb170c3(0x1d7)]:this[_0xb170c3(0x1fb)](_0x43904e);break;}}));}['tryStartPresenting'](){var _0x1db995=_0x1d8b53;this['_collabSession'][_0x1db995(0x1c6)]({'eventID':_0x30c7bc[_0x1db995(0x16d)],'data':{'unitID':this[_0x1db995(0x17e)],'userID':this[_0x1db995(0x205)]['getMemberID']()}},this[_0x1db995(0x17e)]);}[_0x1d8b53(0x203)](){var _0x5d6f76=_0x1d8b53;this[_0x5d6f76(0x1a4)]===_0x5d6f76(0x1c9)&&(this[_0x5d6f76(0x1df)][_0x5d6f76(0x1e5)]('idle'),this['_collabSession']['send']({'eventID':_0x30c7bc['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x5d6f76(0x17e)]}},this[_0x5d6f76(0x17e)]));}[_0x1d8b53(0x1cb)](){var _0x4106f2=_0x1d8b53;this[_0x4106f2(0x1a4)]===_0x4106f2(0x20b)&&(this[_0x4106f2(0x1df)][_0x4106f2(0x1e5)](_0x4106f2(0x1bc)),this[_0x4106f2(0x1ff)]());}['stopFollowing'](){var _0x1ec1c7=_0x1d8b53;this[_0x1ec1c7(0x1a4)]==='following'&&this[_0x1ec1c7(0x1f6)]();}['_handleNewHost'](_0x4b3227){var _0x11d74b=_0x1d8b53;const {presenter:_0x5b616d}=_0x4b3227[_0x11d74b(0x210)],_0x4eaaad=this[_0x11d74b(0x205)]['getMemberID']();this['_presenter']=_0x5b616d,_0x5b616d===_0x4eaaad?(this['_stopFollowing'](),this[_0x11d74b(0x18d)]()):this['_status']!==_0x11d74b(0x20b)&&(this[_0x11d74b(0x20f)](),this[_0x11d74b(0x1ff)]());}[_0x1d8b53(0x1a2)](){var _0x440bab=_0x1d8b53;const _0x4d8bf5={'eventID':_0x30c7bc[_0x440bab(0x1bb)]};this[_0x440bab(0x205)][_0x440bab(0x1c6)](_0x4d8bf5,this['_unitID']);}[_0x1d8b53(0x21a)](){var _0x52478d=_0x1d8b53;this[_0x52478d(0x1e0)]=null,this[_0x52478d(0x1a4)]!==_0x52478d(0x1c9)&&this[_0x52478d(0x1b1)]();}[_0x1d8b53(0x1fb)](_0x57ed1a){var _0xea3bc6=_0x1d8b53;if(this['_status']==='following'&&this[_0xea3bc6(0x1e0)]===_0x57ed1a[_0xea3bc6(0x210)][_0xea3bc6(0x1cc)]){const _0x4006f0=_0x1495b0(_0x57ed1a['data'])[_0xea3bc6(0x1db)][_0xea3bc6(0x183)]()[_0xea3bc6(0x19c)](_0x4aad10=>_0x4aad10['id']===_0x331837['id']);if(_0x4006f0){const _0x3d832b=_0x4006f0[_0xea3bc6(0x1b5)][_0xea3bc6(0x1f7)],_0xb20378=_0x4006f0[_0xea3bc6(0x1b5)][_0xea3bc6(0x1ba)]['id'];setTimeout(()=>{var _0x1fce3e=_0xea3bc6;this[_0x1fce3e(0x185)][_0x1fce3e(0x1cf)](_0x286b47['id'],{'unitId':_0x3d832b,'subUnitId':_0xb20378},{'fromCollab':!0x0});});}}}[_0x1d8b53(0x18d)](){var _0x53e7da=_0x1d8b53;this['_status$']['next'](_0x53e7da(0x1c9));const _0x4ac352=new Map(),_0x28dcc5=this['_commandDisposable']=new _0x211483();_0x28dcc5['add'](_0x172916(()=>{var _0x143db0=_0x53e7da;_0x4ac352[_0x143db0(0x194)](_0xaff821=>_0xaff821[_0x143db0(0x1da)]()),_0x4ac352[_0x143db0(0x1f5)]();})),_0x28dcc5['add'](this[_0x53e7da(0x185)][_0x53e7da(0x1a1)](_0x1235b7=>{var _0x339098=_0x53e7da,_0x2da055;if(_0x1235b7['type']!==_0x5e8cc6[_0x339098(0x199)]||!this[_0x339098(0x180)]['shouldShareOperation'](_0x1235b7['id']))return;const {id:_0x1b78e2}=_0x1235b7;let _0x511d48;_0x4ac352[_0x339098(0x19b)](_0x1b78e2)?_0x511d48=_0x4ac352[_0x339098(0x20a)](_0x1b78e2):(_0x511d48=new _0x4fab24(),_0x4ac352[_0x339098(0x213)](_0x1b78e2,_0x511d48),_0x511d48[_0x339098(0x193)](_0x32385e((_0x2da055=this[_0x339098(0x192)][_0x339098(0x1eb)](Pe))!=null?_0x2da055:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x339098(0x182)](_0x5cff80=>{var _0x131167=_0x339098;this['_collabSession'][_0x131167(0x1c6)]({'eventID':_0x30c7bc['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x5cff80['id']]:{'id':_0x5cff80['id'],'params':JSON['stringify'](_0x5cff80[_0x131167(0x1b5)])}}}},this['_unitID']);})),_0x511d48[_0x339098(0x1e5)](_0x1235b7);})),this[_0x53e7da(0x180)][_0x53e7da(0x1d1)](this[_0x53e7da(0x17e)])['forEach'](_0x25938e=>this[_0x53e7da(0x205)]['send']({'eventID':_0x30c7bc['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x53e7da(0x17e)],'operations':{[_0x25938e['id']]:{'id':_0x25938e['id'],'params':JSON[_0x53e7da(0x190)](_0x25938e['params'])}}}},this[_0x53e7da(0x17e)]));}[_0x1d8b53(0x20f)](){var _0x5622a0=_0x1d8b53,_0x1c9957;this[_0x5622a0(0x1df)][_0x5622a0(0x1e5)]('idle'),(_0x1c9957=this[_0x5622a0(0x177)])==null||_0x1c9957[_0x5622a0(0x189)](),this[_0x5622a0(0x177)]=null;}[_0x1d8b53(0x1ff)](){var _0x1c7d57=_0x1d8b53,_0x293426;(_0x293426=this['_commandDisposable'])==null||_0x293426['dispose'](),this[_0x1c7d57(0x1df)][_0x1c7d57(0x1e5)](_0x1c7d57(0x1bc));}[_0x1d8b53(0x1b1)](){var _0x29782e=_0x1d8b53,_0x114f3f;this[_0x29782e(0x1df)][_0x29782e(0x1e5)](_0x29782e(0x173)),(_0x114f3f=this[_0x29782e(0x177)])==null||_0x114f3f[_0x29782e(0x189)](),this[_0x29782e(0x177)]=null;}[_0x1d8b53(0x1f6)](){var _0x3f3989=_0x1d8b53,_0xa5d20d;this[_0x3f3989(0x1df)][_0x3f3989(0x1e5)](_0x3f3989(0x20b)),(_0xa5d20d=this['_commandDisposable'])==null||_0xa5d20d['dispose']();}[_0x1d8b53(0x1e9)](_0x29ee44){var _0x14243a=_0x1d8b53;if([_0x14243a(0x1c9),_0x14243a(0x20b),_0x14243a(0x1ad)][_0x14243a(0x1f1)](this[_0x14243a(0x1a4)])||!_0x29ee44[_0x14243a(0x210)][_0x14243a(0x17b)]||_0x29ee44['data'][_0x14243a(0x17b)]===this[_0x14243a(0x205)][_0x14243a(0x216)]())return;this[_0x14243a(0x1a4)]===_0x14243a(0x173)&&this[_0x14243a(0x1ff)]();const _0x12b7d3=_0x29ee44['data'][_0x14243a(0x1d2)];Object['values'](_0x12b7d3)[_0x14243a(0x194)](_0x3e84d9=>{var _0x416310=_0x14243a;this[_0x416310(0x185)][_0x416310(0x1cf)](_0x3e84d9['id'],_0x3e84d9[_0x416310(0x1b5)]?JSON[_0x416310(0x1e3)](_0x3e84d9[_0x416310(0x1b5)]):null,{'fromCollab':!0x0});});}[_0x1d8b53(0x1ae)](){var _0x1243a3=_0x1d8b53,_0x322e14;this[_0x1243a3(0x1df)][_0x1243a3(0x1e5)]('offline'),(_0x322e14=this['_commandDisposable'])==null||_0x322e14['dispose']();}[_0x1d8b53(0x1a5)](){var _0x5e4c7e=_0x1d8b53;this[_0x5e4c7e(0x1df)][_0x5e4c7e(0x1e5)](_0x5e4c7e(0x173)),this[_0x5e4c7e(0x1a2)]();}};C=Z([f(0x2,_0x558741),f(0x3,_0x239a44(L)),f(0x4,_0x584762)],C);function Te(){var _0xe3a83d=_0x1d8b53;const _0x1bc609=_0x14ae59(I),_0x1e5726=_0x14ae59(_0xe4611b),_0x1ba9de=_0xe07f56(()=>_0x1e5726[_0xe3a83d(0x17a)](_0x33fb10[_0xe3a83d(0x221)]),void 0x0,!0x1,[]),[_0x1fba3a,_0x4232ef]=_0x48688c(null),[_0x17c024,_0x19feac]=_0x48688c(h[_0xe3a83d(0x18a)]),_0x28b61e=_0x3ecb29(null);return _0x22643b(()=>(_0x1ba9de&&_0x1bc609['getLiveShareCoordinator'](_0x1ba9de[_0xe3a83d(0x207)]())[_0xe3a83d(0x1ce)](_0x2c8aa5=>{var _0xdc5ecc=_0xe3a83d;_0x4232ef(_0x2c8aa5),_0x28b61e['current']=_0x2c8aa5[_0xdc5ecc(0x1b3)][_0xdc5ecc(0x182)](_0xb71cd0=>{_0x19feac(_0xb71cd0);});}),()=>{var _0x49eb77=_0xe3a83d,_0x5ae364;(_0x5ae364=_0x28b61e[_0x49eb77(0x197)])==null||_0x5ae364[_0x49eb77(0x18c)](),_0x28b61e[_0x49eb77(0x197)]=null;}),[_0x1ba9de,_0x1bc609]),_0x1fba3a?_0x2f0961(_0x46ea1d,{'align':'end','disabled':_0x17c024===h[_0xe3a83d(0x1aa)],'className':_0xe3a83d(0x202),'overlay':_0x2f0961($e,{'status':_0x17c024,'coordinator':_0x1fba3a}),'children':_0x2f0961(_0xe3a83d(0x1b0),{'className':_0x39a291(_0xe3a83d(0x176),{'univer-cursor-not-allowed':_0x17c024===h[_0xe3a83d(0x1aa)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17c024!==h[_0xe3a83d(0x1aa)]}),'type':'button','children':_0x2f0961(B,{'className':_0xe3a83d(0x1c3)})})}):null;}function $e(_0x5c5ffa){var _0x12f431=_0x1d8b53;const {status:_0x2e8476,coordinator:_0x155618}=_0x5c5ffa;switch(_0x2e8476){case h['IDLE']:return _0x2f0961(Fe,{'coordinator':_0x155618});case h[_0x12f431(0x186)]:return _0x2f0961(He,{'coordinator':_0x155618});case h['NOT_FOLLOWING']:return _0x2f0961(je,{'coordinator':_0x155618});case h[_0x12f431(0x1aa)]:return _0x2f0961(Ve,{});case h[_0x12f431(0x21b)]:return _0x2f0961(Ue,{'coordinator':_0x155618});default:return null;}}function Fe(_0xf4ece9){var _0x3f55bc=_0x1d8b53;const {coordinator:_0x17275a}=_0xf4ece9;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x3f55bc(0x1b2),{'className':_0x3f55bc(0x1b6),'children':_0x3f55bc(0x200)}),_0x2f0961(_0x226687,{'onClick':()=>_0x17275a['tryStartPresenting'](),'children':_0x3f55bc(0x21e)})]});}function He(_0x25a0b9){var _0x321832=_0x1d8b53;const {coordinator:_0x3d2ca7}=_0x25a0b9;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x321832(0x1b2),{'className':_0x321832(0x1b6),'children':_0x321832(0x222)}),_0x2f0961(_0x226687,{'onClick':()=>_0x3d2ca7[_0x321832(0x1fa)](),'children':_0x321832(0x1c2)})]});}function je(_0x4844c4){var _0x1f2650=_0x1d8b53;const {coordinator:_0x161fb8}=_0x4844c4;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x1f2650(0x1b2),{'className':_0x1f2650(0x1b6),'children':_0x1f2650(0x1ab)}),_0x2f0961(_0x226687,{'variant':_0x1f2650(0x1a3),'onClick':()=>_0x161fb8['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x2a1062){var _0x3284b0=_0x1d8b53;const {coordinator:_0x394e66}=_0x2a1062;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x3284b0(0x1b2),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3284b0(0x1e1)}),_0x2f0961(_0x226687,{'variant':_0x3284b0(0x178),'onClick':()=>_0x394e66[_0x3284b0(0x203)](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x2f0961(_0x12f368,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x1d8b53(0x1e2)],ke=(_0x7123c9,_0x540667,_0x25ddae,_0xe8ad5a)=>{for(var _0x3b45e5=_0xe8ad5a>0x1?void 0x0:_0xe8ad5a?Me(_0x540667,_0x25ddae):_0x540667,_0x184b4a=_0x7123c9['length']-0x1,_0x4df781;_0x184b4a>=0x0;_0x184b4a--)(_0x4df781=_0x7123c9[_0x184b4a])&&(_0x3b45e5=_0x4df781(_0x3b45e5)||_0x3b45e5);return _0x3b45e5;},$=(_0x239d77,_0x1be1f5)=>(_0x42470d,_0x4b0316)=>_0x1be1f5(_0x42470d,_0x4b0316,_0x239d77);let b=class extends _0xea3d2e{constructor(_0x37729d,_0x1e1b1a){var _0x1baec1=_0x1d8b53;super(),this[_0x1baec1(0x1ca)]=_0x37729d,this[_0x1baec1(0x172)]=_0x1e1b1a,this[_0x1baec1(0x181)]();}[_0x1d8b53(0x181)](){var _0x33301f=_0x1d8b53;this[_0x33301f(0x219)](this['_uiPartsService'][_0x33301f(0x187)](_0x1217a7['HEADER_MENU'],()=>_0x5143ac(Te,this[_0x33301f(0x1ca)])));}};b=ke([$(0x0,_0x239a44(_0x192d3b)),$(0x1,_0x241906)],b);var Ge=Object['defineProperty'],We=Object[_0x1d8b53(0x1e2)],Ye=(_0x2707be,_0x5ec934,_0x104535)=>_0x5ec934 in _0x2707be?Ge(_0x2707be,_0x5ec934,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x104535}):_0x2707be[_0x5ec934]=_0x104535,Be=(_0x437d4d,_0x3544ba,_0x1be1cf,_0x202747)=>{var _0x116cb5=_0x1d8b53;for(var _0x39bad7=_0x202747>0x1?void 0x0:_0x202747?We(_0x3544ba,_0x1be1cf):_0x3544ba,_0x597aba=_0x437d4d[_0x116cb5(0x188)]-0x1,_0x211365;_0x597aba>=0x0;_0x597aba--)(_0x211365=_0x437d4d[_0x597aba])&&(_0x39bad7=_0x211365(_0x39bad7)||_0x39bad7);return _0x39bad7;},F=(_0x150923,_0x45834a)=>(_0xbb135f,_0x28d233)=>_0x45834a(_0xbb135f,_0x28d233,_0x150923),J=(_0x302fa7,_0x3c5270,_0xa67b06)=>Ye(_0x302fa7,typeof _0x3c5270!=_0x1d8b53(0x1a7)?_0x3c5270+'':_0x3c5270,_0xa67b06);function _0x3bc7(){var _0x46974d=['idSuffix','button','_beIdle','div','status$','UniverIcon','params','univer-mb-3\x20univer-w-full\x20univer-text-sm','icon','map','url(#$1','sheet','LIVESHARE_FETCH_OPERATIONS','following','live-share-icon','defineProperty','registerInitialStateReporter','apply','add','Stop\x20following','univer-size-4','161795fsSAun','_collabSessionService','send','requireSession','concat','presenting','_injector','startFollowing','memberID','evenodd','then','executeCommand','dispose$','getInitialStates','operations','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinator','2mdHYkt','mask','NEW_CHANGESETS','getValue','onStarting','complete','mutations','random','prototype','NOT_FOLLOWING','_status$','_presenter','You\x27re\x20presenting\x20the\x20document','getOwnPropertyDescriptor','parse','onRendered','next','displayName','init','642928HNEwYN','_handleOperation','getTypeOfUnitDisposed$','getConfig','sessionStatus$','_reporters','replace','23040747ntBToN','getTypeOfUnitAdded$','includes','path','entries','1em','clear','_stopFollowing','unitId','_init','currentColor','stopFollowing','_handleNewChangeSets','univerjs-icon\x20univerjs-icon-','_handleNewHost','tag','_startFollowing','Present\x20this\x20document','LIVESHARE_TERMINATE','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','stopPresenting','2534781ybidcH','_collabSession','substring','getUnitId','defs','getOwnPropertySymbols','get','not-following','override','3180276UfaCjV','delete','_stopPresenting','data','UNIVER_UNKNOWN','asObservable','set','xlink:href','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','_sharedOperations','attrs','disposeWithMe','_handleTerminate','PRESENTING','6303717rzJBYO','registerSharedOperation','Start','toString','138ufAhsK','UNIVER_SHEET','You\x27re\x20following\x20the\x20presenter','trim','LIVESHARE_REQUEST_HOST','_startLiveShareCoordinator','className','function','extend','_uiPartsService','idle','from','call','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','default','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','getCurrentTypeOfUnit$','presenter','_univerInstanceService','_entities','_unitID','none','_liveShareService','_mountLiveShare','subscribe','reverse','_config','_commandService','FOLLOWING','registerComponent','length','dispose','IDLE','pluginName','unsubscribe','_startPresenting','ONLINE','LiveShareIcon','stringify','indexOf','_configService','pipe','forEach','LIVESHARE_OPERATION','string','current','assign','OPERATION','LIVESHARE_NEW_HOST','has','find','fill','colorChannel1','http://www.w3.org/2000/svg','setConfig','onCommandExecuted','_fetchOperations','text','_status','_handleOnline','defIds','symbol','children','10330544BTrdHs','OFFLINE','You\x27re\x20not\x20following\x20the\x20presenter','type','offline','_handleOffline'];_0x3bc7=function(){return _0x46974d;};return _0x3bc7();}const Ze=_0x1d8b53(0x1d3);let O=class extends _0x587f09{constructor(_0x4c3fd6=T,_0x162f54,_0x1a5871){var _0x237978=_0x1d8b53;super(),this[_0x237978(0x184)]=_0x4c3fd6,this[_0x237978(0x1ca)]=_0x162f54,this[_0x237978(0x192)]=_0x1a5871;const {..._0x1dfa6c}=_0xa177d7({},T,this['_config']);this[_0x237978(0x192)][_0x237978(0x1a0)](Oe,_0x1dfa6c);}[_0x1d8b53(0x1d9)](){var _0x2870a0=_0x1d8b53;_0x174d4e(this[_0x2870a0(0x1ca)],_0x27a061([[L],[I],[m],[b]],this[_0x2870a0(0x184)][_0x2870a0(0x20c)])),_0x49be97(this[_0x2870a0(0x1ca)],[[m]]);}[_0x1d8b53(0x1e4)](){var _0x1afc44=_0x1d8b53;_0x49be97(this[_0x1afc44(0x1ca)],[[b]]);}};J(O,_0x1d8b53(0x1ac),_0x33fb10[_0x1d8b53(0x211)]),J(O,_0x1d8b53(0x18b),Ze),O=Be([_0x98ddff(_0x4073ea),F(0x1,_0x239a44(_0x192d3b)),F(0x2,_0x558741)],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 _0x9778e6=_0x4bc8;(function(_0x14ac5d,_0x11d897){var _0x1eb99b=_0x4bc8,_0x2de207=_0x14ac5d();while(!![]){try{var _0x3e6909=-parseInt(_0x1eb99b(0x200))/0x1+-parseInt(_0x1eb99b(0x1fd))/0x2+-parseInt(_0x1eb99b(0x20b))/0x3+parseInt(_0x1eb99b(0x223))/0x4*(parseInt(_0x1eb99b(0x236))/0x5)+parseInt(_0x1eb99b(0x1be))/0x6*(parseInt(_0x1eb99b(0x251))/0x7)+-parseInt(_0x1eb99b(0x1c6))/0x8*(-parseInt(_0x1eb99b(0x227))/0x9)+parseInt(_0x1eb99b(0x1aa))/0xa*(parseInt(_0x1eb99b(0x250))/0xb);if(_0x3e6909===_0x11d897)break;else _0x2de207['push'](_0x2de207['shift']());}catch(_0x500ae6){_0x2de207['push'](_0x2de207['shift']());}}}(_0x1ca5,0x7b5c3));function _0x4bc8(_0x15361e,_0x447668){var _0x1ca50d=_0x1ca5();return _0x4bc8=function(_0x4bc897,_0x3ba5f8){_0x4bc897=_0x4bc897-0x1aa;var _0x34657f=_0x1ca50d[_0x4bc897];return _0x34657f;},_0x4bc8(_0x15361e,_0x447668);}var q=Object[_0x9778e6(0x1d2)],z=(_0x26e524,_0xf61c4d,_0x4196fd)=>_0xf61c4d in _0x26e524?q(_0x26e524,_0xf61c4d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4196fd}):_0x26e524[_0xf61c4d]=_0x4196fd,d=(_0x1fdead,_0x1207bb,_0x41fe7a)=>z(_0x1fdead,typeof _0x1207bb!=_0x9778e6(0x1f3)?_0x1207bb+'':_0x1207bb,_0x41fe7a);import{CollaborationSessionService as _0x4a76a3,SessionStatus as _0x3b9352,UniverCollaborationClientPlugin as _0x571ab9}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2e3155,toDisposable as _0x516894,Inject as _0x16d04b,IUniverInstanceService as _0x521bf2,Injector as _0x58e3c4,IConfigService as _0x3f3ec1,ICommandService as _0x3ac4bd,RxDisposable as _0x56497b,UniverInstanceType as _0x595007,DisposableCollection as _0x72472d,CommandType as _0x22b12f,DependentOn as _0x2d3671,Plugin as _0x2e613d,merge as _0x1f82eb,registerDependencies as _0x4f0f22,mergeOverrideWithDependencies as _0x1a5aac,touchDependencies as _0x3bf4fc}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xc3474a,InsertSheetMutation as _0x37a933}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x48bc76,SetScrollOperation as _0x4aa3ed}from'@univerjs/sheets-ui';import{useDependency as _0x1e8d4a,useObservable as _0x104952,IUIPartsService as _0x3628a7,BuiltInUIPart as _0x48da4f,connectInjector as _0x328b1c}from'@univerjs/ui';import{jsx as _0x16b57f,jsxs as _0xa7baf9,Fragment as _0x3c08dd}from'react/jsx-runtime';import{Dropdown as _0x4368ad,clsx as _0x571c3e,Button as _0x2cc199}from'@univerjs/design';import{forwardRef as _0x3c17af,useRef as _0x2a7acc,createElement as _0x44a707,useState as _0x3e204,useEffect as _0x278b9b}from'react';import{CollaborationEvent as _0x18ef0a,parseProtocolChangeset as _0x8ba9d1}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x572475,Subject as _0x9b51d0}from'rxjs';import{takeUntil as _0x109cce,throttleTime as _0xeb248e}from'rxjs/operators';const Oe=_0x9778e6(0x1c5),T={};class L extends _0x2e3155{constructor(){var _0xd1aa01=_0x9778e6;super(...arguments),d(this,_0xd1aa01(0x24a),new Set()),d(this,_0xd1aa01(0x241),new Set());}[_0x9778e6(0x213)](_0x41f394){var _0x2f126e=_0x9778e6;return this[_0x2f126e(0x24a)][_0x2f126e(0x232)](_0x41f394),_0x516894(()=>this[_0x2f126e(0x24a)]['delete'](_0x41f394));}[_0x9778e6(0x240)](_0x527f31){var _0x3b7f11=_0x9778e6;return this[_0x3b7f11(0x241)]['add'](_0x527f31),_0x516894(()=>this['_reporters'][_0x3b7f11(0x1e0)](_0x527f31));}['shouldShareOperation'](_0xb20aac){var _0x3c2509=_0x9778e6;return this['_sharedOperations'][_0x3c2509(0x228)](_0xb20aac);}[_0x9778e6(0x1c4)](_0x323e4f){var _0x2d87e6=_0x9778e6;return Array[_0x2d87e6(0x256)](this['_reporters'])['map'](_0x216371=>_0x216371(_0x323e4f));}}var Ee=Object[_0x9778e6(0x1d8)],we=(_0x154012,_0x3128ea,_0x2039d9,_0x215468)=>{for(var _0x9535d2=_0x215468>0x1?void 0x0:_0x215468?Ee(_0x3128ea,_0x2039d9):_0x3128ea,_0x1cf8ee=_0x154012['length']-0x1,_0x539d84;_0x1cf8ee>=0x0;_0x1cf8ee--)(_0x539d84=_0x154012[_0x1cf8ee])&&(_0x9535d2=_0x539d84(_0x9535d2)||_0x9535d2);return _0x9535d2;},Ne=(_0x21bc29,_0x50a234)=>(_0x58eed9,_0x31dcbb)=>_0x50a234(_0x58eed9,_0x31dcbb,_0x21bc29);let m=class extends _0x2e3155{constructor(_0x54a40b){var _0x48a647=_0x9778e6;super(),this[_0x48a647(0x1fe)]=_0x54a40b,this['_init']();}[_0x9778e6(0x252)](){[_0x48bc76['id'],_0x4aa3ed['id'],_0xc3474a['id']]['forEach'](_0x5d2021=>{var _0x51202e=_0x4bc8;this[_0x51202e(0x1db)](this[_0x51202e(0x1fe)][_0x51202e(0x213)](_0x5d2021));});}};m=we([Ne(0x0,_0x16d04b(L))],m);var c=function(){var _0x2a1847=_0x9778e6;return c=Object[_0x2a1847(0x1d6)]||function(_0x526998){var _0x212f88=_0x2a1847;for(var _0x892e65,_0x1c2e1f=0x1,_0x51918f=arguments[_0x212f88(0x1e6)];_0x1c2e1f<_0x51918f;_0x1c2e1f++){_0x892e65=arguments[_0x1c2e1f];for(var _0x300345 in _0x892e65)Object[_0x212f88(0x1af)][_0x212f88(0x21d)][_0x212f88(0x1e5)](_0x892e65,_0x300345)&&(_0x526998[_0x300345]=_0x892e65[_0x300345]);}return _0x526998;},c['apply'](this,arguments);},Ce=function(_0x4d049a,_0x5be463){var _0x5b89ea=_0x9778e6,_0x155407={};for(var _0x2d3459 in _0x4d049a)Object[_0x5b89ea(0x1af)]['hasOwnProperty'][_0x5b89ea(0x1e5)](_0x4d049a,_0x2d3459)&&_0x5be463['indexOf'](_0x2d3459)<0x0&&(_0x155407[_0x2d3459]=_0x4d049a[_0x2d3459]);if(_0x4d049a!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x3599ae=0x0,_0x2d3459=Object[_0x5b89ea(0x225)](_0x4d049a);_0x3599ae<_0x2d3459[_0x5b89ea(0x1e6)];_0x3599ae++)_0x5be463['indexOf'](_0x2d3459[_0x3599ae])<0x0&&Object[_0x5b89ea(0x1af)][_0x5b89ea(0x22b)][_0x5b89ea(0x1e5)](_0x4d049a,_0x2d3459[_0x3599ae])&&(_0x155407[_0x2d3459[_0x3599ae]]=_0x4d049a[_0x2d3459[_0x3599ae]]);}return _0x155407;},W=_0x3c17af(function(_0x3baaaf,_0x23cbbb){var _0x37676c=_0x9778e6,_0x30e14e=_0x3baaaf['icon'],_0x38f7a2=_0x3baaaf['id'],_0x15ffb4=_0x3baaaf[_0x37676c(0x229)],_0x24fca3=_0x3baaaf[_0x37676c(0x239)],_0x24835c=Ce(_0x3baaaf,[_0x37676c(0x205),'id',_0x37676c(0x229),_0x37676c(0x239)]),_0x4e7213=_0x37676c(0x21f)[_0x37676c(0x234)](_0x38f7a2,'\x20')['concat'](_0x15ffb4||'')[_0x37676c(0x24b)](),_0x16eb74=_0x2a7acc('_'[_0x37676c(0x234)](Le()));return Y(_0x30e14e,''[_0x37676c(0x234)](_0x38f7a2),{'defIds':_0x30e14e['defIds'],'idSuffix':_0x16eb74[_0x37676c(0x1f8)]},c({'ref':_0x23cbbb,'className':_0x4e7213},_0x24835c),_0x24fca3);});function Y(_0x43644b,_0x441f21,_0x3fcc06,_0x55ce89,_0x5b4d27){var _0x552e4b=_0x9778e6;return _0x44a707(_0x43644b[_0x552e4b(0x1b5)],c(c({'key':_0x441f21},De(_0x43644b,_0x3fcc06,_0x5b4d27)),_0x55ce89),(xe(_0x43644b,_0x3fcc06)[_0x552e4b(0x1d9)]||[])[_0x552e4b(0x23e)](function(_0xa30801,_0x2ca8dd){var _0x1c3150=_0x552e4b;return Y(_0xa30801,''[_0x1c3150(0x234)](_0x441f21,'-')[_0x1c3150(0x234)](_0x43644b['tag'],'-')['concat'](_0x2ca8dd),_0x3fcc06,void 0x0,_0x5b4d27);}));}function De(_0x182fd1,_0x5077e5,_0x831702){var _0x3be067=_0x9778e6,_0x5158d3=c({},_0x182fd1[_0x3be067(0x1e7)]);_0x831702!=null&&_0x831702[_0x3be067(0x215)]&&_0x5158d3['fill']==='colorChannel1'&&(_0x5158d3[_0x3be067(0x1c0)]=_0x831702[_0x3be067(0x215)]),_0x182fd1[_0x3be067(0x1b5)]==='mask'&&_0x5158d3['id']&&(_0x5158d3['id']=_0x5158d3['id']+_0x5077e5[_0x3be067(0x207)]),Object[_0x3be067(0x1c9)](_0x5158d3)[_0x3be067(0x22c)](function(_0x5560e5){var _0x400d95=_0x3be067,_0x178b7f=_0x5560e5[0x0],_0xfa8479=_0x5560e5[0x1];_0x178b7f==='mask'&&typeof _0xfa8479==_0x400d95(0x1b1)&&(_0x5158d3[_0x178b7f]=_0xfa8479[_0x400d95(0x1ae)](/url\(#(.*)\)/,_0x400d95(0x20d)[_0x400d95(0x234)](_0x5077e5[_0x400d95(0x207)],')')));});var _0x55d415=_0x5077e5['defIds'];return!_0x55d415||_0x55d415[_0x3be067(0x1e6)]===0x0||(_0x182fd1[_0x3be067(0x1b5)]==='use'&&_0x5158d3[_0x3be067(0x243)]&&(_0x5158d3[_0x3be067(0x243)]=_0x5158d3[_0x3be067(0x243)]+_0x5077e5['idSuffix']),Object[_0x3be067(0x1c9)](_0x5158d3)[_0x3be067(0x22c)](function(_0x26b38d){var _0x227253=_0x3be067,_0x233bde=_0x26b38d[0x0],_0x485e3c=_0x26b38d[0x1];typeof _0x485e3c==_0x227253(0x1b1)&&(_0x5158d3[_0x233bde]=_0x485e3c[_0x227253(0x1ae)](/url\(#(.*)\)/,'url(#$1'[_0x227253(0x234)](_0x5077e5[_0x227253(0x207)],')')));})),_0x5158d3;}function xe(_0x35cc67,_0x1734a2){var _0x3c56a4=_0x9778e6,_0x2ca0de,_0x9110c3=_0x1734a2[_0x3c56a4(0x1d0)];return!_0x9110c3||_0x9110c3[_0x3c56a4(0x1e6)]===0x0?_0x35cc67:_0x35cc67['tag']===_0x3c56a4(0x1b0)&&(!((_0x2ca0de=_0x35cc67[_0x3c56a4(0x1d9)])===null||_0x2ca0de===void 0x0)&&_0x2ca0de[_0x3c56a4(0x1e6)])?c(c({},_0x35cc67),{'children':_0x35cc67[_0x3c56a4(0x1d9)][_0x3c56a4(0x23e)](function(_0x3d2552){var _0x21170a=_0x3c56a4;return typeof _0x3d2552[_0x21170a(0x1e7)]['id']==_0x21170a(0x1b1)&&_0x9110c3&&_0x9110c3[_0x21170a(0x24c)](_0x3d2552['attrs']['id'])?c(c({},_0x3d2552),{'attrs':c(c({},_0x3d2552['attrs']),{'id':_0x3d2552['attrs']['id']+_0x1734a2[_0x21170a(0x207)]})}):_0x3d2552;})}):_0x35cc67;}function Le(){var _0x296200=_0x9778e6;return Math[_0x296200(0x1cb)]()['toString'](0x24)[_0x296200(0x20c)](0x2,0x8);}W[_0x9778e6(0x206)]=_0x9778e6(0x219);var ye={'tag':_0x9778e6(0x1bd),'attrs':{'xmlns':_0x9778e6(0x245),'fill':'none','viewBox':_0x9778e6(0x21e),'width':_0x9778e6(0x1ee),'height':_0x9778e6(0x1ee)},'children':[{'tag':_0x9778e6(0x1b3),'attrs':{'fill':_0x9778e6(0x1ca),'d':_0x9778e6(0x1c7)}},{'tag':_0x9778e6(0x1b3),'attrs':{'fill':_0x9778e6(0x1ca),'d':_0x9778e6(0x249),'fillRule':_0x9778e6(0x23b),'clipRule':_0x9778e6(0x23b)}}]},B=_0x3c17af(function(_0x20b13a,_0x46e66c){var _0x12211c=_0x9778e6;return _0x44a707(W,Object[_0x12211c(0x1d6)]({},_0x20b13a,{'id':_0x12211c(0x1fb),'ref':_0x46e66c,'icon':ye}));});B[_0x9778e6(0x206)]=_0x9778e6(0x1c8);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x163aa8,_0x233050,_0x2401be,_0x239fd1)=>{for(var _0x4f040e=_0x239fd1>0x1?void 0x0:_0x239fd1?Re(_0x233050,_0x2401be):_0x233050,_0x554d77=_0x163aa8['length']-0x1,_0xc8dc02;_0x554d77>=0x0;_0x554d77--)(_0xc8dc02=_0x163aa8[_0x554d77])&&(_0x4f040e=_0xc8dc02(_0x4f040e)||_0x4f040e);return _0x4f040e;},f=(_0x938857,_0x4424fa)=>(_0x2d391e,_0x4a8213)=>_0x4424fa(_0x2d391e,_0x4a8213,_0x938857);let I=class extends _0x56497b{constructor(_0x585701,_0x452757,_0x4267a2){var _0x281a94=_0x9778e6;super(),d(this,'_entities',new Map()),(this[_0x281a94(0x1bc)]=_0x585701,this[_0x281a94(0x25a)]=_0x452757,this[_0x281a94(0x22e)]=_0x4267a2,this[_0x281a94(0x252)]());}async[_0x9778e6(0x1bf)](_0x56dfd9){var _0x52512e=_0x9778e6;return this[_0x52512e(0x217)][_0x52512e(0x228)](_0x56dfd9)||await this[_0x52512e(0x255)](_0x56dfd9),this[_0x52512e(0x217)][_0x52512e(0x247)](_0x56dfd9);}[_0x9778e6(0x252)](){var _0xd5a30c=_0x9778e6;this[_0xd5a30c(0x1bc)][_0xd5a30c(0x238)](_0x595007[_0xd5a30c(0x1f6)])['pipe'](_0x109cce(this[_0xd5a30c(0x221)]))[_0xd5a30c(0x1fa)](async _0xe0b0c6=>{var _0x4508e5=_0xd5a30c;const _0x373326=_0xe0b0c6[_0x4508e5(0x224)]();this[_0x4508e5(0x217)][_0x4508e5(0x228)](_0x373326)||this[_0x4508e5(0x255)](_0x373326);}),this[_0xd5a30c(0x1bc)]['getTypeOfUnitDisposed$'](_0x595007['UNIVER_SHEET'])[_0xd5a30c(0x1f5)](_0x109cce(this[_0xd5a30c(0x221)]))[_0xd5a30c(0x1fa)](_0x52fa72=>{var _0x248dff=_0xd5a30c;const _0x2a810a=_0x52fa72['getUnitId'](),_0x445d9c=this[_0x248dff(0x217)][_0x248dff(0x247)](_0x2a810a);_0x445d9c==null||_0x445d9c[_0x248dff(0x1fc)]();});}async[_0x9778e6(0x255)](_0x4bbccd){var _0x1d72ae=_0x9778e6;const _0x43c962=await this[_0x1d72ae(0x22e)]['requireSession'](_0x4bbccd),_0x16198c=this[_0x1d72ae(0x25a)]['createInstance'](C,_0x4bbccd,_0x43c962);return _0x16198c[_0x1d72ae(0x1b8)](),this[_0x1d72ae(0x217)][_0x1d72ae(0x22d)](_0x4bbccd,_0x16198c),_0x16198c;}};I=Z([f(0x0,_0x521bf2),f(0x1,_0x16d04b(_0x58e3c4)),f(0x2,_0x16d04b(_0x4a76a3))],I);var h=(_0x223ec6=>(_0x223ec6[_0x9778e6(0x1d4)]=_0x9778e6(0x1e8),_0x223ec6[_0x9778e6(0x1cd)]=_0x9778e6(0x24e),_0x223ec6['FOLLOWING']='following',_0x223ec6['NOT_FOLLOWING']=_0x9778e6(0x202),_0x223ec6['PRESENTING']=_0x9778e6(0x1b2),_0x223ec6))(h||{});const Pe=_0x9778e6(0x201),Ae=0xc8;let C=class extends _0x56497b{constructor(_0x59878a,_0xa07c25,_0x3ab47f,_0x20ca62,_0x5e2543){var _0x352431=_0x9778e6;super(),d(this,_0x352431(0x20f),new _0x572475('idle')),d(this,_0x352431(0x208),this[_0x352431(0x20f)]['asObservable']()),d(this,_0x352431(0x252),!0x1),d(this,_0x352431(0x220),null),d(this,_0x352431(0x22f),null),(this[_0x352431(0x1c2)]=_0x59878a,this['_collabSession']=_0xa07c25,this[_0x352431(0x212)]=_0x3ab47f,this[_0x352431(0x1fe)]=_0x20ca62,this[_0x352431(0x235)]=_0x5e2543);}get[_0x9778e6(0x21c)](){var _0x2f7ade=_0x9778e6;return this[_0x2f7ade(0x20f)][_0x2f7ade(0x248)]();}[_0x9778e6(0x1fc)](){var _0x497318=_0x9778e6,_0x1f137e;(_0x1f137e=this['_commandDisposable'])==null||_0x1f137e[_0x497318(0x1fc)](),this[_0x497318(0x20f)]['next'](_0x497318(0x24e)),this[_0x497318(0x20f)][_0x497318(0x1de)]();}[_0x9778e6(0x1b8)](){var _0x360bc6=_0x9778e6;this[_0x360bc6(0x252)]||(this['_init']=!0x0,this[_0x360bc6(0x1d1)][_0x360bc6(0x1f2)][_0x360bc6(0x1f5)](_0x109cce(this[_0x360bc6(0x221)]))[_0x360bc6(0x1fa)](_0x55c0e6=>{var _0x21db46=_0x360bc6;switch(_0x55c0e6){case _0x3b9352[_0x21db46(0x1d4)]:this[_0x21db46(0x1ab)]();break;case _0x3b9352[_0x21db46(0x23c)]:this[_0x21db46(0x1e3)]();break;}}),this[_0x360bc6(0x1d1)][_0x360bc6(0x257)][_0x360bc6(0x1f5)](_0x109cce(this['dispose$']))[_0x360bc6(0x1fa)](_0x40c1ee=>{var _0x1d59c7=_0x360bc6;const {eventID:_0x1a8084}=_0x40c1ee;switch(_0x1a8084){case _0x18ef0a[_0x1d59c7(0x1d3)]:this[_0x1d59c7(0x24f)](_0x40c1ee);break;case _0x18ef0a[_0x1d59c7(0x1b6)]:this['_handleOperation'](_0x40c1ee);break;case _0x18ef0a[_0x1d59c7(0x259)]:this[_0x1d59c7(0x1ba)]();break;case _0x18ef0a[_0x1d59c7(0x1f9)]:this['_handleNewChangeSets'](_0x40c1ee);break;}}));}[_0x9778e6(0x1eb)](){var _0x493789=_0x9778e6;this[_0x493789(0x1d1)][_0x493789(0x23f)]({'eventID':_0x18ef0a[_0x493789(0x1cc)],'data':{'unitID':this[_0x493789(0x1c2)],'userID':this[_0x493789(0x1d1)]['getMemberID']()}},this[_0x493789(0x1c2)]);}[_0x9778e6(0x1ad)](){var _0x1f0c09=_0x9778e6;this[_0x1f0c09(0x21c)]==='presenting'&&(this[_0x1f0c09(0x20f)]['next'](_0x1f0c09(0x24e)),this[_0x1f0c09(0x1d1)][_0x1f0c09(0x23f)]({'eventID':_0x18ef0a[_0x1f0c09(0x259)],'data':{'unitID':this[_0x1f0c09(0x1c2)]}},this[_0x1f0c09(0x1c2)]));}[_0x9778e6(0x231)](){var _0x87d918=_0x9778e6;this['_status']===_0x87d918(0x202)&&(this['_status$'][_0x87d918(0x230)]('following'),this[_0x87d918(0x1da)]());}[_0x9778e6(0x1b4)](){var _0x313bfa=_0x9778e6;this['_status']===_0x313bfa(0x1c3)&&this[_0x313bfa(0x1e1)]();}[_0x9778e6(0x24f)](_0x1e6251){var _0x45c2e2=_0x9778e6;const {presenter:_0x25eb82}=_0x1e6251[_0x45c2e2(0x1ef)],_0x17edca=this['_collabSession'][_0x45c2e2(0x258)]();this[_0x45c2e2(0x22f)]=_0x25eb82,_0x25eb82===_0x17edca?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x45c2e2(0x21c)]!=='not-following'&&(this['_stopPresenting'](),this[_0x45c2e2(0x1da)]());}['_fetchOperations'](){var _0x2f20d2=_0x9778e6;const _0x515b27={'eventID':_0x18ef0a[_0x2f20d2(0x214)]};this[_0x2f20d2(0x1d1)][_0x2f20d2(0x23f)](_0x515b27,this['_unitID']);}[_0x9778e6(0x1ba)](){var _0x2950b8=_0x9778e6;this[_0x2950b8(0x22f)]=null,this[_0x2950b8(0x21c)]!=='presenting'&&this[_0x2950b8(0x204)]();}[_0x9778e6(0x22a)](_0x3dcaf8){var _0xa7653f=_0x9778e6;if(this[_0xa7653f(0x21c)]===_0xa7653f(0x1c3)&&this['_presenter']===_0x3dcaf8[_0xa7653f(0x1ef)]['memberID']){const _0x540ab7=_0x8ba9d1(_0x3dcaf8['data'])[_0xa7653f(0x1ac)]['reverse']()[_0xa7653f(0x1ff)](_0x11b8e9=>_0x11b8e9['id']===_0x37a933['id']);if(_0x540ab7){const _0x1990eb=_0x540ab7[_0xa7653f(0x1b7)][_0xa7653f(0x1f7)],_0xbb730b=_0x540ab7[_0xa7653f(0x1b7)][_0xa7653f(0x21b)]['id'];setTimeout(()=>{var _0x168fe7=_0xa7653f;this[_0x168fe7(0x235)][_0x168fe7(0x20e)](_0xc3474a['id'],{'unitId':_0x1990eb,'subUnitId':_0xbb730b},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3a1dc3=_0x9778e6;this['_status$'][_0x3a1dc3(0x230)](_0x3a1dc3(0x1b2));const _0x4462f7=new Map(),_0x231123=this[_0x3a1dc3(0x220)]=new _0x72472d();_0x231123[_0x3a1dc3(0x232)](_0x516894(()=>{var _0x13707c=_0x3a1dc3;_0x4462f7[_0x13707c(0x22c)](_0x4b9c13=>_0x4b9c13[_0x13707c(0x1de)]()),_0x4462f7['clear']();})),_0x231123[_0x3a1dc3(0x232)](this[_0x3a1dc3(0x235)][_0x3a1dc3(0x203)](_0x345d34=>{var _0x4f37e1=_0x3a1dc3,_0x5aed38;if(_0x345d34[_0x4f37e1(0x25b)]!==_0x22b12f['OPERATION']||!this[_0x4f37e1(0x1fe)][_0x4f37e1(0x1b9)](_0x345d34['id']))return;const {id:_0xb54910}=_0x345d34;let _0x135a84;_0x4462f7['has'](_0xb54910)?_0x135a84=_0x4462f7[_0x4f37e1(0x247)](_0xb54910):(_0x135a84=new _0x9b51d0(),_0x4462f7[_0x4f37e1(0x22d)](_0xb54910,_0x135a84),_0x135a84[_0x4f37e1(0x1f5)](_0xeb248e((_0x5aed38=this[_0x4f37e1(0x212)][_0x4f37e1(0x209)](Pe))!=null?_0x5aed38:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4f37e1(0x1fa)](_0x12ca8c=>{var _0x2ec78f=_0x4f37e1;this[_0x2ec78f(0x1d1)][_0x2ec78f(0x23f)]({'eventID':_0x18ef0a[_0x2ec78f(0x1b6)],'data':{'unitID':this[_0x2ec78f(0x1c2)],'operations':{[_0x12ca8c['id']]:{'id':_0x12ca8c['id'],'params':JSON[_0x2ec78f(0x1e2)](_0x12ca8c[_0x2ec78f(0x1b7)])}}}},this['_unitID']);})),_0x135a84[_0x4f37e1(0x230)](_0x345d34);})),this['_liveShareService'][_0x3a1dc3(0x1c4)](this[_0x3a1dc3(0x1c2)])[_0x3a1dc3(0x22c)](_0x19ff4a=>this[_0x3a1dc3(0x1d1)][_0x3a1dc3(0x23f)]({'eventID':_0x18ef0a[_0x3a1dc3(0x1b6)],'data':{'unitID':this['_unitID'],'operations':{[_0x19ff4a['id']]:{'id':_0x19ff4a['id'],'params':JSON[_0x3a1dc3(0x1e2)](_0x19ff4a[_0x3a1dc3(0x1b7)])}}}},this['_unitID']));}[_0x9778e6(0x24d)](){var _0x612c59=_0x9778e6,_0x13bb51;this[_0x612c59(0x20f)][_0x612c59(0x230)]('idle'),(_0x13bb51=this[_0x612c59(0x220)])==null||_0x13bb51['dispose'](),this[_0x612c59(0x220)]=null;}[_0x9778e6(0x1da)](){var _0x1f1057=_0x9778e6,_0x35c0af;(_0x35c0af=this[_0x1f1057(0x220)])==null||_0x35c0af[_0x1f1057(0x1fc)](),this[_0x1f1057(0x20f)][_0x1f1057(0x230)]('following');}[_0x9778e6(0x204)](){var _0x301940=_0x9778e6,_0x4164eb;this['_status$'][_0x301940(0x230)]('idle'),(_0x4164eb=this['_commandDisposable'])==null||_0x4164eb[_0x301940(0x1fc)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5b5724=_0x9778e6,_0x244ce7;this[_0x5b5724(0x20f)][_0x5b5724(0x230)](_0x5b5724(0x202)),(_0x244ce7=this[_0x5b5724(0x220)])==null||_0x244ce7[_0x5b5724(0x1fc)]();}[_0x9778e6(0x23d)](_0x56a3b5){var _0x268d49=_0x9778e6;if([_0x268d49(0x1b2),_0x268d49(0x202),'offline'][_0x268d49(0x24c)](this[_0x268d49(0x21c)])||!_0x56a3b5[_0x268d49(0x1ef)][_0x268d49(0x1f0)]||_0x56a3b5[_0x268d49(0x1ef)]['presenter']===this[_0x268d49(0x1d1)]['getMemberID']())return;this[_0x268d49(0x21c)]===_0x268d49(0x24e)&&this[_0x268d49(0x1da)]();const _0x31a7de=_0x56a3b5[_0x268d49(0x1ef)]['operations'];Object[_0x268d49(0x21a)](_0x31a7de)['forEach'](_0x141c41=>{var _0x5274ec=_0x268d49;this[_0x5274ec(0x235)][_0x5274ec(0x20e)](_0x141c41['id'],_0x141c41[_0x5274ec(0x1b7)]?JSON[_0x5274ec(0x233)](_0x141c41['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4ba58e=_0x9778e6,_0x15f6f8;this[_0x4ba58e(0x20f)][_0x4ba58e(0x230)](_0x4ba58e(0x1e8)),(_0x15f6f8=this[_0x4ba58e(0x220)])==null||_0x15f6f8['dispose']();}[_0x9778e6(0x1e3)](){var _0x1ebf6d=_0x9778e6;this[_0x1ebf6d(0x20f)][_0x1ebf6d(0x230)](_0x1ebf6d(0x24e)),this[_0x1ebf6d(0x218)]();}};C=Z([f(0x2,_0x3f3ec1),f(0x3,_0x16d04b(L)),f(0x4,_0x3ac4bd)],C);function Te(){var _0x15129b=_0x9778e6;const _0x2021f0=_0x1e8d4a(I),_0x19de99=_0x1e8d4a(_0x521bf2),_0x139b86=_0x104952(()=>_0x19de99[_0x15129b(0x226)](_0x595007[_0x15129b(0x1f6)]),void 0x0,!0x1,[]),[_0x4fe615,_0x5ee33c]=_0x3e204(null),[_0x3725a9,_0x309794]=_0x3e204(h[_0x15129b(0x1cd)]),_0x28b18a=_0x2a7acc(null);return _0x278b9b(()=>(_0x139b86&&_0x2021f0[_0x15129b(0x1bf)](_0x139b86[_0x15129b(0x224)]())[_0x15129b(0x242)](_0x4e04bf=>{var _0x2a60d0=_0x15129b;_0x5ee33c(_0x4e04bf),_0x28b18a[_0x2a60d0(0x1f8)]=_0x4e04bf['status$']['subscribe'](_0x2daf30=>{_0x309794(_0x2daf30);});}),()=>{var _0x28f18f=_0x15129b,_0x298c53;(_0x298c53=_0x28b18a[_0x28f18f(0x1f8)])==null||_0x298c53[_0x28f18f(0x20a)](),_0x28b18a['current']=null;}),[_0x139b86,_0x2021f0]),_0x4fe615?_0x16b57f(_0x4368ad,{'align':'end','disabled':_0x3725a9===h[_0x15129b(0x1d4)],'className':_0x15129b(0x23a),'overlay':_0x16b57f($e,{'status':_0x3725a9,'coordinator':_0x4fe615}),'children':_0x16b57f(_0x15129b(0x1d7),{'className':_0x571c3e(_0x15129b(0x1e4),{'univer-cursor-not-allowed':_0x3725a9===h[_0x15129b(0x1d4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3725a9!==h[_0x15129b(0x1d4)]}),'type':_0x15129b(0x1d7),'children':_0x16b57f(B,{'className':_0x15129b(0x216)})})}):null;}function _0x1ca5(){var _0x43c624=['UniverIcon','values','sheet','_status','hasOwnProperty','0\x200\x2017\x2017','univerjs-icon\x20univerjs-icon-','_commandDisposable','dispose$','onRendered','82456BrdoRV','getUnitId','getOwnPropertySymbols','getCurrentTypeOfUnit$','126081wTUSST','has','className','_handleNewChangeSets','propertyIsEnumerable','forEach','set','_collabSessionService','_presenter','next','startFollowing','add','parse','concat','_commandService','25WCrIHr','_config','getTypeOfUnitAdded$','extend','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','evenodd','ONLINE','_handleOperation','map','send','registerInitialStateReporter','_reporters','then','xlink:href','onStarting','http://www.w3.org/2000/svg','text','get','getValue','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','_sharedOperations','trim','includes','_stopPresenting','idle','_handleNewHost','22DNszsp','7xnCYPj','_init','default','Present\x20this\x20document','_startLiveShareCoordinator','from','event$','getMemberID','LIVESHARE_TERMINATE','_injector','type','5673350KqvAgc','_handleOffline','mutations','stopPresenting','replace','prototype','defs','string','presenting','path','stopFollowing','tag','LIVESHARE_OPERATION','params','init','shouldShareOperation','_handleTerminate','UNIVER_UNKNOWN','_univerInstanceService','svg','2405190KwJoEC','getLiveShareCoordinator','fill','You\x27are\x20offline.','_unitID','following','getInitialStates','live-share.config','248QYNZBR','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','LiveShareIcon','entries','currentColor','random','LIVESHARE_REQUEST_HOST','IDLE','Stop\x20following','div','defIds','_collabSession','defineProperty','LIVESHARE_NEW_HOST','OFFLINE','_mountLiveShare','assign','button','getOwnPropertyDescriptor','children','_startFollowing','disposeWithMe','_uiPartsService','NOT_FOLLOWING','complete','univer-mb-3\x20univer-w-full\x20univer-text-sm','delete','_stopFollowing','stringify','_handleOnline','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','call','length','attrs','offline','You\x27re\x20presenting\x20the\x20document','UNIVER_LIVE_SHARE_PLUGIN','tryStartPresenting','Stop\x20presenting','HEADER_MENU','1em','data','presenter','override','sessionStatus$','symbol','PRESENTING','pipe','UNIVER_SHEET','unitId','current','NEW_CHANGESETS','subscribe','live-share-icon','dispose','1431398rWBTbG','_liveShareService','find','97783CxzKdb','SAME_OPERATION_SHARE_INTERVAL','not-following','onCommandExecuted','_beIdle','icon','displayName','idSuffix','status$','getConfig','unsubscribe','2262357CmEJNj','substring','url(#$1','executeCommand','_status$','FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','_configService','registerSharedOperation','LIVESHARE_FETCH_OPERATIONS','colorChannel1','univer-size-4','_entities','_fetchOperations'];_0x1ca5=function(){return _0x43c624;};return _0x1ca5();}function $e(_0x56447f){var _0x17dfc8=_0x9778e6;const {status:_0x30d87e,coordinator:_0x6700b4}=_0x56447f;switch(_0x30d87e){case h['IDLE']:return _0x16b57f(Fe,{'coordinator':_0x6700b4});case h[_0x17dfc8(0x210)]:return _0x16b57f(He,{'coordinator':_0x6700b4});case h[_0x17dfc8(0x1dd)]:return _0x16b57f(je,{'coordinator':_0x6700b4});case h[_0x17dfc8(0x1d4)]:return _0x16b57f(Ve,{});case h[_0x17dfc8(0x1f4)]:return _0x16b57f(Ue,{'coordinator':_0x6700b4});default:return null;}}function Fe(_0x10993c){var _0x462e42=_0x9778e6;const {coordinator:_0x128451}=_0x10993c;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f(_0x462e42(0x1cf),{'className':_0x462e42(0x1df),'children':_0x462e42(0x254)}),_0x16b57f(_0x2cc199,{'onClick':()=>_0x128451[_0x462e42(0x1eb)](),'children':'Start'})]});}function He(_0x73395e){var _0x41920b=_0x9778e6;const {coordinator:_0x15dc69}=_0x73395e;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f('div',{'className':_0x41920b(0x1df),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x16b57f(_0x2cc199,{'onClick':()=>_0x15dc69[_0x41920b(0x1b4)](),'children':_0x41920b(0x1ce)})]});}function je(_0x108783){var _0x16ba73=_0x9778e6;const {coordinator:_0x28ae63}=_0x108783;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f(_0x16ba73(0x1cf),{'className':_0x16ba73(0x1df),'children':_0x16ba73(0x211)}),_0x16b57f(_0x2cc199,{'variant':_0x16ba73(0x246),'onClick':()=>_0x28ae63[_0x16ba73(0x231)](),'children':'Start\x20following'})]});}function Ue(_0x529e6c){var _0x49928f=_0x9778e6;const {coordinator:_0x3ab0fd}=_0x529e6c;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f(_0x49928f(0x1cf),{'className':_0x49928f(0x1df),'children':_0x49928f(0x1e9)}),_0x16b57f(_0x2cc199,{'variant':_0x49928f(0x253),'onClick':()=>_0x3ab0fd[_0x49928f(0x1ad)](),'children':_0x49928f(0x1ec)})]});}function Ve(){var _0xb86d4d=_0x9778e6;return _0x16b57f(_0x3c08dd,{'children':_0xb86d4d(0x1c1)});}var Me=Object[_0x9778e6(0x1d8)],ke=(_0x428261,_0x3470a6,_0x51eba9,_0x58bd24)=>{for(var _0x279155=_0x58bd24>0x1?void 0x0:_0x58bd24?Me(_0x3470a6,_0x51eba9):_0x3470a6,_0x385067=_0x428261['length']-0x1,_0x2e5976;_0x385067>=0x0;_0x385067--)(_0x2e5976=_0x428261[_0x385067])&&(_0x279155=_0x2e5976(_0x279155)||_0x279155);return _0x279155;},$=(_0x522291,_0x5d824a)=>(_0x107270,_0x3e15f6)=>_0x5d824a(_0x107270,_0x3e15f6,_0x522291);let b=class extends _0x2e3155{constructor(_0x161338,_0x4d6de6){var _0x215a3e=_0x9778e6;super(),this[_0x215a3e(0x25a)]=_0x161338,this[_0x215a3e(0x1dc)]=_0x4d6de6,this['_mountLiveShare']();}[_0x9778e6(0x1d5)](){var _0x3ea2ed=_0x9778e6;this['disposeWithMe'](this[_0x3ea2ed(0x1dc)]['registerComponent'](_0x48da4f[_0x3ea2ed(0x1ed)],()=>_0x328b1c(Te,this[_0x3ea2ed(0x25a)])));}};b=ke([$(0x0,_0x16d04b(_0x58e3c4)),$(0x1,_0x3628a7)],b);var Ge=Object[_0x9778e6(0x1d2)],We=Object[_0x9778e6(0x1d8)],Ye=(_0x4b4eeb,_0xb3e767,_0x5774a4)=>_0xb3e767 in _0x4b4eeb?Ge(_0x4b4eeb,_0xb3e767,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5774a4}):_0x4b4eeb[_0xb3e767]=_0x5774a4,Be=(_0x262f7c,_0x696649,_0x16433,_0x46326d)=>{var _0x365e1d=_0x9778e6;for(var _0x465847=_0x46326d>0x1?void 0x0:_0x46326d?We(_0x696649,_0x16433):_0x696649,_0x32d4a8=_0x262f7c[_0x365e1d(0x1e6)]-0x1,_0x46465f;_0x32d4a8>=0x0;_0x32d4a8--)(_0x46465f=_0x262f7c[_0x32d4a8])&&(_0x465847=_0x46465f(_0x465847)||_0x465847);return _0x465847;},F=(_0x2d383f,_0x734eb8)=>(_0xf10a80,_0x1f5497)=>_0x734eb8(_0xf10a80,_0x1f5497,_0x2d383f),J=(_0xfe0826,_0x4f6431,_0x379f2e)=>Ye(_0xfe0826,typeof _0x4f6431!=_0x9778e6(0x1f3)?_0x4f6431+'':_0x4f6431,_0x379f2e);const Ze=_0x9778e6(0x1ea);let O=class extends _0x2e613d{constructor(_0x4a32a9=T,_0x5bab26,_0x19b372){var _0x42ef4e=_0x9778e6;super(),this[_0x42ef4e(0x237)]=_0x4a32a9,this[_0x42ef4e(0x25a)]=_0x5bab26,this['_configService']=_0x19b372;const {..._0x1e3470}=_0x1f82eb({},T,this[_0x42ef4e(0x237)]);this['_configService']['setConfig'](Oe,_0x1e3470);}[_0x9778e6(0x244)](){var _0x48707b=_0x9778e6;_0x4f0f22(this[_0x48707b(0x25a)],_0x1a5aac([[L],[I],[m],[b]],this[_0x48707b(0x237)][_0x48707b(0x1f1)])),_0x3bf4fc(this['_injector'],[[m]]);}[_0x9778e6(0x222)](){var _0x2f3bbd=_0x9778e6;_0x3bf4fc(this[_0x2f3bbd(0x25a)],[[b]]);}};J(O,_0x9778e6(0x25b),_0x595007[_0x9778e6(0x1bb)]),J(O,'pluginName',Ze),O=Be([_0x2d3671(_0x571ab9),F(0x1,_0x16d04b(_0x58e3c4)),F(0x2,_0x3f3ec1)],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 _0x1d8b53=_0x4a93;(function(_0x1c412a,_0x4721e1){var _0x48051f=_0x4a93,_0x5ebf7c=_0x1c412a();while(!![]){try{var _0x2cc816=-parseInt(_0x48051f(0x1e8))/0x1+-parseInt(_0x48051f(0x1d5))/0x2*(parseInt(_0x48051f(0x204))/0x3)+parseInt(_0x48051f(0x20d))/0x4+parseInt(_0x48051f(0x1c4))/0x5*(-parseInt(_0x48051f(0x220))/0x6)+parseInt(_0x48051f(0x21c))/0x7+-parseInt(_0x48051f(0x1a9))/0x8+parseInt(_0x48051f(0x1ef))/0x9;if(_0x2cc816===_0x4721e1)break;else _0x5ebf7c['push'](_0x5ebf7c['shift']());}catch(_0x47f457){_0x5ebf7c['push'](_0x5ebf7c['shift']());}}}(_0x3bc7,0xb2c5d));var q=Object[_0x1d8b53(0x1be)],z=(_0x1b8315,_0x9c876a,_0x1ad484)=>_0x9c876a in _0x1b8315?q(_0x1b8315,_0x9c876a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ad484}):_0x1b8315[_0x9c876a]=_0x1ad484,d=(_0xe4ee69,_0x20184e,_0x1dcd7d)=>z(_0xe4ee69,typeof _0x20184e!=_0x1d8b53(0x1a7)?_0x20184e+'':_0x20184e,_0x1dcd7d);import{CollaborationSessionService as _0x4cef2c,SessionStatus as _0x5cfa23,UniverCollaborationClientPlugin as _0x4073ea}from'@univerjs-pro/collaboration-client';import{Disposable as _0xea3d2e,toDisposable as _0x172916,Inject as _0x239a44,IUniverInstanceService as _0xe4611b,Injector as _0x192d3b,IConfigService as _0x558741,ICommandService as _0x584762,RxDisposable as _0x260b45,UniverInstanceType as _0x33fb10,DisposableCollection as _0x211483,CommandType as _0x5e8cc6,DependentOn as _0x98ddff,Plugin as _0x587f09,merge as _0xa177d7,registerDependencies as _0x174d4e,mergeOverrideWithDependencies as _0x27a061,touchDependencies as _0x49be97}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x286b47,InsertSheetMutation as _0x331837}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x158b6e,SetScrollOperation as _0x4d2280}from'@univerjs/sheets-ui';import{useDependency as _0x14ae59,useObservable as _0xe07f56,IUIPartsService as _0x241906,BuiltInUIPart as _0x1217a7,connectInjector as _0x5143ac}from'@univerjs/ui';import{jsx as _0x2f0961,jsxs as _0x2dbab2,Fragment as _0x12f368}from'react/jsx-runtime';import{Dropdown as _0x46ea1d,clsx as _0x39a291,Button as _0x226687}from'@univerjs/design';import{forwardRef as _0x15ec25,useRef as _0x3ecb29,createElement as _0x16e93a,useState as _0x48688c,useEffect as _0x22643b}from'react';import{CollaborationEvent as _0x30c7bc,parseProtocolChangeset as _0x1495b0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3cc28c,Subject as _0x4fab24}from'rxjs';import{takeUntil as _0x1ced03,throttleTime as _0x32385e}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0xea3d2e{constructor(){var _0x258f43=_0x1d8b53;super(...arguments),d(this,_0x258f43(0x217),new Set()),d(this,_0x258f43(0x1ed),new Set());}[_0x1d8b53(0x21d)](_0x4cbe8a){var _0x4c88d8=_0x1d8b53;return this['_sharedOperations']['add'](_0x4cbe8a),_0x172916(()=>this[_0x4c88d8(0x217)][_0x4c88d8(0x20e)](_0x4cbe8a));}[_0x1d8b53(0x1bf)](_0xceda9c){var _0x27f845=_0x1d8b53;return this[_0x27f845(0x1ed)][_0x27f845(0x1c1)](_0xceda9c),_0x172916(()=>this[_0x27f845(0x1ed)][_0x27f845(0x20e)](_0xceda9c));}['shouldShareOperation'](_0x3c2446){var _0x489af5=_0x1d8b53;return this[_0x489af5(0x217)][_0x489af5(0x19b)](_0x3c2446);}['getInitialStates'](_0x185644){var _0x5662c7=_0x1d8b53;return Array[_0x5662c7(0x174)](this['_reporters'])[_0x5662c7(0x1b8)](_0x3c81ab=>_0x3c81ab(_0x185644));}}var Ee=Object[_0x1d8b53(0x1e2)],we=(_0x1a142e,_0x249868,_0x25d5e9,_0x3699e1)=>{for(var _0x32749e=_0x3699e1>0x1?void 0x0:_0x3699e1?Ee(_0x249868,_0x25d5e9):_0x249868,_0x14af68=_0x1a142e['length']-0x1,_0x4a9ed9;_0x14af68>=0x0;_0x14af68--)(_0x4a9ed9=_0x1a142e[_0x14af68])&&(_0x32749e=_0x4a9ed9(_0x32749e)||_0x32749e);return _0x32749e;},Ne=(_0x207cb9,_0x46b086)=>(_0x561061,_0xf87905)=>_0x46b086(_0x561061,_0xf87905,_0x207cb9);let m=class extends _0xea3d2e{constructor(_0x7300ec){var _0x108b47=_0x1d8b53;super(),this['_liveShareService']=_0x7300ec,this[_0x108b47(0x1f8)]();}[_0x1d8b53(0x1f8)](){var _0x47120d=_0x1d8b53;[_0x158b6e['id'],_0x4d2280['id'],_0x286b47['id']][_0x47120d(0x194)](_0x5b528d=>{var _0x4f00fb=_0x47120d;this[_0x4f00fb(0x219)](this[_0x4f00fb(0x180)][_0x4f00fb(0x21d)](_0x5b528d));});}};m=we([Ne(0x0,_0x239a44(L))],m);function _0x4a93(_0x2fd27e,_0x12a581){var _0x3bc7b3=_0x3bc7();return _0x4a93=function(_0x4a939b,_0x4f5d24){_0x4a939b=_0x4a939b-0x16c;var _0x1c49ee=_0x3bc7b3[_0x4a939b];return _0x1c49ee;},_0x4a93(_0x2fd27e,_0x12a581);}var c=function(){var _0x26a520=_0x1d8b53;return c=Object[_0x26a520(0x198)]||function(_0xbf9792){var _0x1ef818=_0x26a520;for(var _0x2e00f4,_0x45a39e=0x1,_0x22e0e0=arguments[_0x1ef818(0x188)];_0x45a39e<_0x22e0e0;_0x45a39e++){_0x2e00f4=arguments[_0x45a39e];for(var _0x53003f in _0x2e00f4)Object[_0x1ef818(0x1dd)]['hasOwnProperty'][_0x1ef818(0x175)](_0x2e00f4,_0x53003f)&&(_0xbf9792[_0x53003f]=_0x2e00f4[_0x53003f]);}return _0xbf9792;},c[_0x26a520(0x1c0)](this,arguments);},Ce=function(_0x1e0df3,_0x18ad15){var _0x59a2e4=_0x1d8b53,_0x244a8b={};for(var _0x3ad7aa in _0x1e0df3)Object['prototype']['hasOwnProperty'][_0x59a2e4(0x175)](_0x1e0df3,_0x3ad7aa)&&_0x18ad15[_0x59a2e4(0x191)](_0x3ad7aa)<0x0&&(_0x244a8b[_0x3ad7aa]=_0x1e0df3[_0x3ad7aa]);if(_0x1e0df3!=null&&typeof Object['getOwnPropertySymbols']==_0x59a2e4(0x170)){for(var _0x19eba5=0x0,_0x3ad7aa=Object[_0x59a2e4(0x209)](_0x1e0df3);_0x19eba5<_0x3ad7aa[_0x59a2e4(0x188)];_0x19eba5++)_0x18ad15[_0x59a2e4(0x191)](_0x3ad7aa[_0x19eba5])<0x0&&Object[_0x59a2e4(0x1dd)]['propertyIsEnumerable'][_0x59a2e4(0x175)](_0x1e0df3,_0x3ad7aa[_0x19eba5])&&(_0x244a8b[_0x3ad7aa[_0x19eba5]]=_0x1e0df3[_0x3ad7aa[_0x19eba5]]);}return _0x244a8b;},W=_0x15ec25(function(_0x22a4f9,_0x18b145){var _0x22c426=_0x1d8b53,_0x74fc5b=_0x22a4f9[_0x22c426(0x1b7)],_0x546ff6=_0x22a4f9['id'],_0x3c29e4=_0x22a4f9[_0x22c426(0x16f)],_0x40e04e=_0x22a4f9['extend'],_0x245f9d=Ce(_0x22a4f9,['icon','id',_0x22c426(0x16f),_0x22c426(0x171)]),_0x2de780=_0x22c426(0x1fc)[_0x22c426(0x1c8)](_0x546ff6,'\x20')[_0x22c426(0x1c8)](_0x3c29e4||'')[_0x22c426(0x16c)](),_0x34ecf4=_0x3ecb29('_'['concat'](Le()));return Y(_0x74fc5b,''['concat'](_0x546ff6),{'defIds':_0x74fc5b[_0x22c426(0x1a6)],'idSuffix':_0x34ecf4[_0x22c426(0x197)]},c({'ref':_0x18b145,'className':_0x2de780},_0x245f9d),_0x40e04e);});function Y(_0x357dcc,_0xd13a72,_0x51a57e,_0x174d64,_0x12fe0e){var _0x59fb1b=_0x1d8b53;return _0x16e93a(_0x357dcc['tag'],c(c({'key':_0xd13a72},De(_0x357dcc,_0x51a57e,_0x12fe0e)),_0x174d64),(xe(_0x357dcc,_0x51a57e)[_0x59fb1b(0x1a8)]||[])[_0x59fb1b(0x1b8)](function(_0x215130,_0x2954ea){var _0xe4ba90=_0x59fb1b;return Y(_0x215130,''[_0xe4ba90(0x1c8)](_0xd13a72,'-')[_0xe4ba90(0x1c8)](_0x357dcc[_0xe4ba90(0x1fe)],'-')['concat'](_0x2954ea),_0x51a57e,void 0x0,_0x12fe0e);}));}function De(_0x4fb37a,_0x17e4ae,_0x140622){var _0x4c57ec=_0x1d8b53,_0x575c2e=c({},_0x4fb37a[_0x4c57ec(0x218)]);_0x140622!=null&&_0x140622['colorChannel1']&&_0x575c2e[_0x4c57ec(0x19d)]===_0x4c57ec(0x19e)&&(_0x575c2e[_0x4c57ec(0x19d)]=_0x140622[_0x4c57ec(0x19e)]),_0x4fb37a[_0x4c57ec(0x1fe)]===_0x4c57ec(0x1d6)&&_0x575c2e['id']&&(_0x575c2e['id']=_0x575c2e['id']+_0x17e4ae[_0x4c57ec(0x1af)]),Object[_0x4c57ec(0x1f3)](_0x575c2e)[_0x4c57ec(0x194)](function(_0x1392e8){var _0x1d9695=_0x4c57ec,_0x4f189c=_0x1392e8[0x0],_0x5cc21c=_0x1392e8[0x1];_0x4f189c==='mask'&&typeof _0x5cc21c=='string'&&(_0x575c2e[_0x4f189c]=_0x5cc21c[_0x1d9695(0x1ee)](/url\(#(.*)\)/,_0x1d9695(0x1b9)[_0x1d9695(0x1c8)](_0x17e4ae[_0x1d9695(0x1af)],')')));});var _0x5f3a5c=_0x17e4ae[_0x4c57ec(0x1a6)];return!_0x5f3a5c||_0x5f3a5c['length']===0x0||(_0x4fb37a[_0x4c57ec(0x1fe)]==='use'&&_0x575c2e[_0x4c57ec(0x214)]&&(_0x575c2e[_0x4c57ec(0x214)]=_0x575c2e[_0x4c57ec(0x214)]+_0x17e4ae[_0x4c57ec(0x1af)]),Object[_0x4c57ec(0x1f3)](_0x575c2e)[_0x4c57ec(0x194)](function(_0x367307){var _0x380aba=_0x4c57ec,_0x3fb3f5=_0x367307[0x0],_0xd9c0dc=_0x367307[0x1];typeof _0xd9c0dc==_0x380aba(0x196)&&(_0x575c2e[_0x3fb3f5]=_0xd9c0dc['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x17e4ae[_0x380aba(0x1af)],')')));})),_0x575c2e;}function xe(_0x12ba6e,_0x4b1536){var _0x160606=_0x1d8b53,_0x17c74b,_0x156cd4=_0x4b1536[_0x160606(0x1a6)];return!_0x156cd4||_0x156cd4['length']===0x0?_0x12ba6e:_0x12ba6e[_0x160606(0x1fe)]===_0x160606(0x208)&&(!((_0x17c74b=_0x12ba6e['children'])===null||_0x17c74b===void 0x0)&&_0x17c74b[_0x160606(0x188)])?c(c({},_0x12ba6e),{'children':_0x12ba6e[_0x160606(0x1a8)][_0x160606(0x1b8)](function(_0x5a92f0){var _0x4c7f0f=_0x160606;return typeof _0x5a92f0[_0x4c7f0f(0x218)]['id']==_0x4c7f0f(0x196)&&_0x156cd4&&_0x156cd4['includes'](_0x5a92f0['attrs']['id'])?c(c({},_0x5a92f0),{'attrs':c(c({},_0x5a92f0[_0x4c7f0f(0x218)]),{'id':_0x5a92f0[_0x4c7f0f(0x218)]['id']+_0x4b1536['idSuffix']})}):_0x5a92f0;})}):_0x12ba6e;}function Le(){var _0x5e8c8=_0x1d8b53;return Math[_0x5e8c8(0x1dc)]()[_0x5e8c8(0x21f)](0x24)[_0x5e8c8(0x206)](0x2,0x8);}W['displayName']=_0x1d8b53(0x1b4);var ye={'tag':'svg','attrs':{'xmlns':_0x1d8b53(0x19f),'fill':_0x1d8b53(0x17f),'viewBox':'0\x200\x2017\x2017','width':_0x1d8b53(0x1f4),'height':_0x1d8b53(0x1f4)},'children':[{'tag':_0x1d8b53(0x1f2),'attrs':{'fill':_0x1d8b53(0x1f9),'d':_0x1d8b53(0x179)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x1d8b53(0x215),'fillRule':_0x1d8b53(0x1cd),'clipRule':'evenodd'}}]},B=_0x15ec25(function(_0x5a2619,_0x143821){var _0xc16824=_0x1d8b53;return _0x16e93a(W,Object['assign']({},_0x5a2619,{'id':_0xc16824(0x1bd),'ref':_0x143821,'icon':ye}));});B[_0x1d8b53(0x1e6)]=_0x1d8b53(0x18f);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x40c314,_0x3a0ec6,_0x2bc05e,_0x2a5976)=>{var _0x3f37c1=_0x1d8b53;for(var _0x17dbc5=_0x2a5976>0x1?void 0x0:_0x2a5976?Re(_0x3a0ec6,_0x2bc05e):_0x3a0ec6,_0x313424=_0x40c314[_0x3f37c1(0x188)]-0x1,_0x187c97;_0x313424>=0x0;_0x313424--)(_0x187c97=_0x40c314[_0x313424])&&(_0x17dbc5=_0x187c97(_0x17dbc5)||_0x17dbc5);return _0x17dbc5;},f=(_0x86ef21,_0x1eb35f)=>(_0x231bb1,_0x4f3bf4)=>_0x1eb35f(_0x231bb1,_0x4f3bf4,_0x86ef21);let I=class extends _0x260b45{constructor(_0x5f6d2b,_0x9ca862,_0x49c362){var _0x4fbbf4=_0x1d8b53;super(),d(this,_0x4fbbf4(0x17d),new Map()),(this[_0x4fbbf4(0x17c)]=_0x5f6d2b,this[_0x4fbbf4(0x1ca)]=_0x9ca862,this[_0x4fbbf4(0x1c5)]=_0x49c362,this[_0x4fbbf4(0x1f8)]());}async[_0x1d8b53(0x1d4)](_0xe3a0e4){var _0x46da20=_0x1d8b53;return this[_0x46da20(0x17d)][_0x46da20(0x19b)](_0xe3a0e4)||await this[_0x46da20(0x16e)](_0xe3a0e4),this[_0x46da20(0x17d)][_0x46da20(0x20a)](_0xe3a0e4);}[_0x1d8b53(0x1f8)](){var _0x2d063f=_0x1d8b53;this[_0x2d063f(0x17c)][_0x2d063f(0x1f0)](_0x33fb10[_0x2d063f(0x221)])[_0x2d063f(0x193)](_0x1ced03(this[_0x2d063f(0x1d0)]))[_0x2d063f(0x182)](async _0x5af0db=>{var _0x33ea4a=_0x2d063f;const _0xf8fe09=_0x5af0db[_0x33ea4a(0x207)]();this[_0x33ea4a(0x17d)]['has'](_0xf8fe09)||this[_0x33ea4a(0x16e)](_0xf8fe09);}),this[_0x2d063f(0x17c)][_0x2d063f(0x1ea)](_0x33fb10[_0x2d063f(0x221)])[_0x2d063f(0x193)](_0x1ced03(this[_0x2d063f(0x1d0)]))['subscribe'](_0x5f4a45=>{var _0x12a431=_0x2d063f;const _0x7539de=_0x5f4a45[_0x12a431(0x207)](),_0x48abca=this[_0x12a431(0x17d)][_0x12a431(0x20a)](_0x7539de);_0x48abca==null||_0x48abca[_0x12a431(0x189)]();});}async[_0x1d8b53(0x16e)](_0x267c9e){var _0x33374b=_0x1d8b53;const _0x3af11c=await this[_0x33374b(0x1c5)][_0x33374b(0x1c7)](_0x267c9e),_0x1a2adb=this[_0x33374b(0x1ca)]['createInstance'](C,_0x267c9e,_0x3af11c);return _0x1a2adb['init'](),this[_0x33374b(0x17d)][_0x33374b(0x213)](_0x267c9e,_0x1a2adb),_0x1a2adb;}};I=Z([f(0x0,_0xe4611b),f(0x1,_0x239a44(_0x192d3b)),f(0x2,_0x239a44(_0x4cef2c))],I);var h=(_0x1121fa=>(_0x1121fa['OFFLINE']=_0x1d8b53(0x1ad),_0x1121fa[_0x1d8b53(0x18a)]=_0x1d8b53(0x173),_0x1121fa['FOLLOWING']='following',_0x1121fa[_0x1d8b53(0x1de)]=_0x1d8b53(0x20b),_0x1121fa[_0x1d8b53(0x21b)]=_0x1d8b53(0x1c9),_0x1121fa))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x260b45{constructor(_0x36254e,_0x29780f,_0x29f97e,_0xb9965a,_0x8dbfab){var _0x39fda8=_0x1d8b53;super(),d(this,_0x39fda8(0x1df),new _0x3cc28c(_0x39fda8(0x173))),d(this,_0x39fda8(0x1b3),this[_0x39fda8(0x1df)][_0x39fda8(0x212)]()),d(this,'_init',!0x1),d(this,_0x39fda8(0x177),null),d(this,_0x39fda8(0x1e0),null),(this['_unitID']=_0x36254e,this[_0x39fda8(0x205)]=_0x29780f,this['_configService']=_0x29f97e,this[_0x39fda8(0x180)]=_0xb9965a,this[_0x39fda8(0x185)]=_0x8dbfab);}get[_0x1d8b53(0x1a4)](){var _0x5da06c=_0x1d8b53;return this['_status$'][_0x5da06c(0x1d8)]();}[_0x1d8b53(0x189)](){var _0xe3b2c9=_0x1d8b53,_0x3b64a4;(_0x3b64a4=this[_0xe3b2c9(0x177)])==null||_0x3b64a4[_0xe3b2c9(0x189)](),this[_0xe3b2c9(0x1df)][_0xe3b2c9(0x1e5)](_0xe3b2c9(0x173)),this[_0xe3b2c9(0x1df)][_0xe3b2c9(0x1da)]();}[_0x1d8b53(0x1e7)](){var _0x14ad78=_0x1d8b53;this[_0x14ad78(0x1f8)]||(this[_0x14ad78(0x1f8)]=!0x0,this['_collabSession'][_0x14ad78(0x1ec)][_0x14ad78(0x193)](_0x1ced03(this[_0x14ad78(0x1d0)]))[_0x14ad78(0x182)](_0x59bf7a=>{var _0x1840d9=_0x14ad78;switch(_0x59bf7a){case _0x5cfa23[_0x1840d9(0x1aa)]:this[_0x1840d9(0x1ae)]();break;case _0x5cfa23[_0x1840d9(0x18e)]:this[_0x1840d9(0x1a5)]();break;}}),this[_0x14ad78(0x205)]['event$'][_0x14ad78(0x193)](_0x1ced03(this[_0x14ad78(0x1d0)]))[_0x14ad78(0x182)](_0x43904e=>{var _0xb170c3=_0x14ad78;const {eventID:_0x58bec8}=_0x43904e;switch(_0x58bec8){case _0x30c7bc[_0xb170c3(0x19a)]:this[_0xb170c3(0x1fd)](_0x43904e);break;case _0x30c7bc[_0xb170c3(0x195)]:this[_0xb170c3(0x1e9)](_0x43904e);break;case _0x30c7bc[_0xb170c3(0x201)]:this[_0xb170c3(0x21a)]();break;case _0x30c7bc[_0xb170c3(0x1d7)]:this[_0xb170c3(0x1fb)](_0x43904e);break;}}));}['tryStartPresenting'](){var _0x1db995=_0x1d8b53;this['_collabSession'][_0x1db995(0x1c6)]({'eventID':_0x30c7bc[_0x1db995(0x16d)],'data':{'unitID':this[_0x1db995(0x17e)],'userID':this[_0x1db995(0x205)]['getMemberID']()}},this[_0x1db995(0x17e)]);}[_0x1d8b53(0x203)](){var _0x5d6f76=_0x1d8b53;this[_0x5d6f76(0x1a4)]===_0x5d6f76(0x1c9)&&(this[_0x5d6f76(0x1df)][_0x5d6f76(0x1e5)]('idle'),this['_collabSession']['send']({'eventID':_0x30c7bc['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x5d6f76(0x17e)]}},this[_0x5d6f76(0x17e)]));}[_0x1d8b53(0x1cb)](){var _0x4106f2=_0x1d8b53;this[_0x4106f2(0x1a4)]===_0x4106f2(0x20b)&&(this[_0x4106f2(0x1df)][_0x4106f2(0x1e5)](_0x4106f2(0x1bc)),this[_0x4106f2(0x1ff)]());}['stopFollowing'](){var _0x1ec1c7=_0x1d8b53;this[_0x1ec1c7(0x1a4)]==='following'&&this[_0x1ec1c7(0x1f6)]();}['_handleNewHost'](_0x4b3227){var _0x11d74b=_0x1d8b53;const {presenter:_0x5b616d}=_0x4b3227[_0x11d74b(0x210)],_0x4eaaad=this[_0x11d74b(0x205)]['getMemberID']();this['_presenter']=_0x5b616d,_0x5b616d===_0x4eaaad?(this['_stopFollowing'](),this[_0x11d74b(0x18d)]()):this['_status']!==_0x11d74b(0x20b)&&(this[_0x11d74b(0x20f)](),this[_0x11d74b(0x1ff)]());}[_0x1d8b53(0x1a2)](){var _0x440bab=_0x1d8b53;const _0x4d8bf5={'eventID':_0x30c7bc[_0x440bab(0x1bb)]};this[_0x440bab(0x205)][_0x440bab(0x1c6)](_0x4d8bf5,this['_unitID']);}[_0x1d8b53(0x21a)](){var _0x52478d=_0x1d8b53;this[_0x52478d(0x1e0)]=null,this[_0x52478d(0x1a4)]!==_0x52478d(0x1c9)&&this[_0x52478d(0x1b1)]();}[_0x1d8b53(0x1fb)](_0x57ed1a){var _0xea3bc6=_0x1d8b53;if(this['_status']==='following'&&this[_0xea3bc6(0x1e0)]===_0x57ed1a[_0xea3bc6(0x210)][_0xea3bc6(0x1cc)]){const _0x4006f0=_0x1495b0(_0x57ed1a['data'])[_0xea3bc6(0x1db)][_0xea3bc6(0x183)]()[_0xea3bc6(0x19c)](_0x4aad10=>_0x4aad10['id']===_0x331837['id']);if(_0x4006f0){const _0x3d832b=_0x4006f0[_0xea3bc6(0x1b5)][_0xea3bc6(0x1f7)],_0xb20378=_0x4006f0[_0xea3bc6(0x1b5)][_0xea3bc6(0x1ba)]['id'];setTimeout(()=>{var _0x1fce3e=_0xea3bc6;this[_0x1fce3e(0x185)][_0x1fce3e(0x1cf)](_0x286b47['id'],{'unitId':_0x3d832b,'subUnitId':_0xb20378},{'fromCollab':!0x0});});}}}[_0x1d8b53(0x18d)](){var _0x53e7da=_0x1d8b53;this['_status$']['next'](_0x53e7da(0x1c9));const _0x4ac352=new Map(),_0x28dcc5=this['_commandDisposable']=new _0x211483();_0x28dcc5['add'](_0x172916(()=>{var _0x143db0=_0x53e7da;_0x4ac352[_0x143db0(0x194)](_0xaff821=>_0xaff821[_0x143db0(0x1da)]()),_0x4ac352[_0x143db0(0x1f5)]();})),_0x28dcc5['add'](this[_0x53e7da(0x185)][_0x53e7da(0x1a1)](_0x1235b7=>{var _0x339098=_0x53e7da,_0x2da055;if(_0x1235b7['type']!==_0x5e8cc6[_0x339098(0x199)]||!this[_0x339098(0x180)]['shouldShareOperation'](_0x1235b7['id']))return;const {id:_0x1b78e2}=_0x1235b7;let _0x511d48;_0x4ac352[_0x339098(0x19b)](_0x1b78e2)?_0x511d48=_0x4ac352[_0x339098(0x20a)](_0x1b78e2):(_0x511d48=new _0x4fab24(),_0x4ac352[_0x339098(0x213)](_0x1b78e2,_0x511d48),_0x511d48[_0x339098(0x193)](_0x32385e((_0x2da055=this[_0x339098(0x192)][_0x339098(0x1eb)](Pe))!=null?_0x2da055:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x339098(0x182)](_0x5cff80=>{var _0x131167=_0x339098;this['_collabSession'][_0x131167(0x1c6)]({'eventID':_0x30c7bc['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x5cff80['id']]:{'id':_0x5cff80['id'],'params':JSON['stringify'](_0x5cff80[_0x131167(0x1b5)])}}}},this['_unitID']);})),_0x511d48[_0x339098(0x1e5)](_0x1235b7);})),this[_0x53e7da(0x180)][_0x53e7da(0x1d1)](this[_0x53e7da(0x17e)])['forEach'](_0x25938e=>this[_0x53e7da(0x205)]['send']({'eventID':_0x30c7bc['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x53e7da(0x17e)],'operations':{[_0x25938e['id']]:{'id':_0x25938e['id'],'params':JSON[_0x53e7da(0x190)](_0x25938e['params'])}}}},this[_0x53e7da(0x17e)]));}[_0x1d8b53(0x20f)](){var _0x5622a0=_0x1d8b53,_0x1c9957;this[_0x5622a0(0x1df)][_0x5622a0(0x1e5)]('idle'),(_0x1c9957=this[_0x5622a0(0x177)])==null||_0x1c9957[_0x5622a0(0x189)](),this[_0x5622a0(0x177)]=null;}[_0x1d8b53(0x1ff)](){var _0x1c7d57=_0x1d8b53,_0x293426;(_0x293426=this['_commandDisposable'])==null||_0x293426['dispose'](),this[_0x1c7d57(0x1df)][_0x1c7d57(0x1e5)](_0x1c7d57(0x1bc));}[_0x1d8b53(0x1b1)](){var _0x29782e=_0x1d8b53,_0x114f3f;this[_0x29782e(0x1df)][_0x29782e(0x1e5)](_0x29782e(0x173)),(_0x114f3f=this[_0x29782e(0x177)])==null||_0x114f3f[_0x29782e(0x189)](),this[_0x29782e(0x177)]=null;}[_0x1d8b53(0x1f6)](){var _0x3f3989=_0x1d8b53,_0xa5d20d;this[_0x3f3989(0x1df)][_0x3f3989(0x1e5)](_0x3f3989(0x20b)),(_0xa5d20d=this['_commandDisposable'])==null||_0xa5d20d['dispose']();}[_0x1d8b53(0x1e9)](_0x29ee44){var _0x14243a=_0x1d8b53;if([_0x14243a(0x1c9),_0x14243a(0x20b),_0x14243a(0x1ad)][_0x14243a(0x1f1)](this[_0x14243a(0x1a4)])||!_0x29ee44[_0x14243a(0x210)][_0x14243a(0x17b)]||_0x29ee44['data'][_0x14243a(0x17b)]===this[_0x14243a(0x205)][_0x14243a(0x216)]())return;this[_0x14243a(0x1a4)]===_0x14243a(0x173)&&this[_0x14243a(0x1ff)]();const _0x12b7d3=_0x29ee44['data'][_0x14243a(0x1d2)];Object['values'](_0x12b7d3)[_0x14243a(0x194)](_0x3e84d9=>{var _0x416310=_0x14243a;this[_0x416310(0x185)][_0x416310(0x1cf)](_0x3e84d9['id'],_0x3e84d9[_0x416310(0x1b5)]?JSON[_0x416310(0x1e3)](_0x3e84d9[_0x416310(0x1b5)]):null,{'fromCollab':!0x0});});}[_0x1d8b53(0x1ae)](){var _0x1243a3=_0x1d8b53,_0x322e14;this[_0x1243a3(0x1df)][_0x1243a3(0x1e5)]('offline'),(_0x322e14=this['_commandDisposable'])==null||_0x322e14['dispose']();}[_0x1d8b53(0x1a5)](){var _0x5e4c7e=_0x1d8b53;this[_0x5e4c7e(0x1df)][_0x5e4c7e(0x1e5)](_0x5e4c7e(0x173)),this[_0x5e4c7e(0x1a2)]();}};C=Z([f(0x2,_0x558741),f(0x3,_0x239a44(L)),f(0x4,_0x584762)],C);function Te(){var _0xe3a83d=_0x1d8b53;const _0x1bc609=_0x14ae59(I),_0x1e5726=_0x14ae59(_0xe4611b),_0x1ba9de=_0xe07f56(()=>_0x1e5726[_0xe3a83d(0x17a)](_0x33fb10[_0xe3a83d(0x221)]),void 0x0,!0x1,[]),[_0x1fba3a,_0x4232ef]=_0x48688c(null),[_0x17c024,_0x19feac]=_0x48688c(h[_0xe3a83d(0x18a)]),_0x28b61e=_0x3ecb29(null);return _0x22643b(()=>(_0x1ba9de&&_0x1bc609['getLiveShareCoordinator'](_0x1ba9de[_0xe3a83d(0x207)]())[_0xe3a83d(0x1ce)](_0x2c8aa5=>{var _0xdc5ecc=_0xe3a83d;_0x4232ef(_0x2c8aa5),_0x28b61e['current']=_0x2c8aa5[_0xdc5ecc(0x1b3)][_0xdc5ecc(0x182)](_0xb71cd0=>{_0x19feac(_0xb71cd0);});}),()=>{var _0x49eb77=_0xe3a83d,_0x5ae364;(_0x5ae364=_0x28b61e[_0x49eb77(0x197)])==null||_0x5ae364[_0x49eb77(0x18c)](),_0x28b61e[_0x49eb77(0x197)]=null;}),[_0x1ba9de,_0x1bc609]),_0x1fba3a?_0x2f0961(_0x46ea1d,{'align':'end','disabled':_0x17c024===h[_0xe3a83d(0x1aa)],'className':_0xe3a83d(0x202),'overlay':_0x2f0961($e,{'status':_0x17c024,'coordinator':_0x1fba3a}),'children':_0x2f0961(_0xe3a83d(0x1b0),{'className':_0x39a291(_0xe3a83d(0x176),{'univer-cursor-not-allowed':_0x17c024===h[_0xe3a83d(0x1aa)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17c024!==h[_0xe3a83d(0x1aa)]}),'type':'button','children':_0x2f0961(B,{'className':_0xe3a83d(0x1c3)})})}):null;}function $e(_0x5c5ffa){var _0x12f431=_0x1d8b53;const {status:_0x2e8476,coordinator:_0x155618}=_0x5c5ffa;switch(_0x2e8476){case h['IDLE']:return _0x2f0961(Fe,{'coordinator':_0x155618});case h[_0x12f431(0x186)]:return _0x2f0961(He,{'coordinator':_0x155618});case h['NOT_FOLLOWING']:return _0x2f0961(je,{'coordinator':_0x155618});case h[_0x12f431(0x1aa)]:return _0x2f0961(Ve,{});case h[_0x12f431(0x21b)]:return _0x2f0961(Ue,{'coordinator':_0x155618});default:return null;}}function Fe(_0xf4ece9){var _0x3f55bc=_0x1d8b53;const {coordinator:_0x17275a}=_0xf4ece9;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x3f55bc(0x1b2),{'className':_0x3f55bc(0x1b6),'children':_0x3f55bc(0x200)}),_0x2f0961(_0x226687,{'onClick':()=>_0x17275a['tryStartPresenting'](),'children':_0x3f55bc(0x21e)})]});}function He(_0x25a0b9){var _0x321832=_0x1d8b53;const {coordinator:_0x3d2ca7}=_0x25a0b9;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x321832(0x1b2),{'className':_0x321832(0x1b6),'children':_0x321832(0x222)}),_0x2f0961(_0x226687,{'onClick':()=>_0x3d2ca7[_0x321832(0x1fa)](),'children':_0x321832(0x1c2)})]});}function je(_0x4844c4){var _0x1f2650=_0x1d8b53;const {coordinator:_0x161fb8}=_0x4844c4;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x1f2650(0x1b2),{'className':_0x1f2650(0x1b6),'children':_0x1f2650(0x1ab)}),_0x2f0961(_0x226687,{'variant':_0x1f2650(0x1a3),'onClick':()=>_0x161fb8['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x2a1062){var _0x3284b0=_0x1d8b53;const {coordinator:_0x394e66}=_0x2a1062;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x3284b0(0x1b2),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3284b0(0x1e1)}),_0x2f0961(_0x226687,{'variant':_0x3284b0(0x178),'onClick':()=>_0x394e66[_0x3284b0(0x203)](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x2f0961(_0x12f368,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x1d8b53(0x1e2)],ke=(_0x7123c9,_0x540667,_0x25ddae,_0xe8ad5a)=>{for(var _0x3b45e5=_0xe8ad5a>0x1?void 0x0:_0xe8ad5a?Me(_0x540667,_0x25ddae):_0x540667,_0x184b4a=_0x7123c9['length']-0x1,_0x4df781;_0x184b4a>=0x0;_0x184b4a--)(_0x4df781=_0x7123c9[_0x184b4a])&&(_0x3b45e5=_0x4df781(_0x3b45e5)||_0x3b45e5);return _0x3b45e5;},$=(_0x239d77,_0x1be1f5)=>(_0x42470d,_0x4b0316)=>_0x1be1f5(_0x42470d,_0x4b0316,_0x239d77);let b=class extends _0xea3d2e{constructor(_0x37729d,_0x1e1b1a){var _0x1baec1=_0x1d8b53;super(),this[_0x1baec1(0x1ca)]=_0x37729d,this[_0x1baec1(0x172)]=_0x1e1b1a,this[_0x1baec1(0x181)]();}[_0x1d8b53(0x181)](){var _0x33301f=_0x1d8b53;this[_0x33301f(0x219)](this['_uiPartsService'][_0x33301f(0x187)](_0x1217a7['HEADER_MENU'],()=>_0x5143ac(Te,this[_0x33301f(0x1ca)])));}};b=ke([$(0x0,_0x239a44(_0x192d3b)),$(0x1,_0x241906)],b);var Ge=Object['defineProperty'],We=Object[_0x1d8b53(0x1e2)],Ye=(_0x2707be,_0x5ec934,_0x104535)=>_0x5ec934 in _0x2707be?Ge(_0x2707be,_0x5ec934,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x104535}):_0x2707be[_0x5ec934]=_0x104535,Be=(_0x437d4d,_0x3544ba,_0x1be1cf,_0x202747)=>{var _0x116cb5=_0x1d8b53;for(var _0x39bad7=_0x202747>0x1?void 0x0:_0x202747?We(_0x3544ba,_0x1be1cf):_0x3544ba,_0x597aba=_0x437d4d[_0x116cb5(0x188)]-0x1,_0x211365;_0x597aba>=0x0;_0x597aba--)(_0x211365=_0x437d4d[_0x597aba])&&(_0x39bad7=_0x211365(_0x39bad7)||_0x39bad7);return _0x39bad7;},F=(_0x150923,_0x45834a)=>(_0xbb135f,_0x28d233)=>_0x45834a(_0xbb135f,_0x28d233,_0x150923),J=(_0x302fa7,_0x3c5270,_0xa67b06)=>Ye(_0x302fa7,typeof _0x3c5270!=_0x1d8b53(0x1a7)?_0x3c5270+'':_0x3c5270,_0xa67b06);function _0x3bc7(){var _0x46974d=['idSuffix','button','_beIdle','div','status$','UniverIcon','params','univer-mb-3\x20univer-w-full\x20univer-text-sm','icon','map','url(#$1','sheet','LIVESHARE_FETCH_OPERATIONS','following','live-share-icon','defineProperty','registerInitialStateReporter','apply','add','Stop\x20following','univer-size-4','161795fsSAun','_collabSessionService','send','requireSession','concat','presenting','_injector','startFollowing','memberID','evenodd','then','executeCommand','dispose$','getInitialStates','operations','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinator','2mdHYkt','mask','NEW_CHANGESETS','getValue','onStarting','complete','mutations','random','prototype','NOT_FOLLOWING','_status$','_presenter','You\x27re\x20presenting\x20the\x20document','getOwnPropertyDescriptor','parse','onRendered','next','displayName','init','642928HNEwYN','_handleOperation','getTypeOfUnitDisposed$','getConfig','sessionStatus$','_reporters','replace','23040747ntBToN','getTypeOfUnitAdded$','includes','path','entries','1em','clear','_stopFollowing','unitId','_init','currentColor','stopFollowing','_handleNewChangeSets','univerjs-icon\x20univerjs-icon-','_handleNewHost','tag','_startFollowing','Present\x20this\x20document','LIVESHARE_TERMINATE','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','stopPresenting','2534781ybidcH','_collabSession','substring','getUnitId','defs','getOwnPropertySymbols','get','not-following','override','3180276UfaCjV','delete','_stopPresenting','data','UNIVER_UNKNOWN','asObservable','set','xlink:href','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','_sharedOperations','attrs','disposeWithMe','_handleTerminate','PRESENTING','6303717rzJBYO','registerSharedOperation','Start','toString','138ufAhsK','UNIVER_SHEET','You\x27re\x20following\x20the\x20presenter','trim','LIVESHARE_REQUEST_HOST','_startLiveShareCoordinator','className','function','extend','_uiPartsService','idle','from','call','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','default','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','getCurrentTypeOfUnit$','presenter','_univerInstanceService','_entities','_unitID','none','_liveShareService','_mountLiveShare','subscribe','reverse','_config','_commandService','FOLLOWING','registerComponent','length','dispose','IDLE','pluginName','unsubscribe','_startPresenting','ONLINE','LiveShareIcon','stringify','indexOf','_configService','pipe','forEach','LIVESHARE_OPERATION','string','current','assign','OPERATION','LIVESHARE_NEW_HOST','has','find','fill','colorChannel1','http://www.w3.org/2000/svg','setConfig','onCommandExecuted','_fetchOperations','text','_status','_handleOnline','defIds','symbol','children','10330544BTrdHs','OFFLINE','You\x27re\x20not\x20following\x20the\x20presenter','type','offline','_handleOffline'];_0x3bc7=function(){return _0x46974d;};return _0x3bc7();}const Ze=_0x1d8b53(0x1d3);let O=class extends _0x587f09{constructor(_0x4c3fd6=T,_0x162f54,_0x1a5871){var _0x237978=_0x1d8b53;super(),this[_0x237978(0x184)]=_0x4c3fd6,this[_0x237978(0x1ca)]=_0x162f54,this[_0x237978(0x192)]=_0x1a5871;const {..._0x1dfa6c}=_0xa177d7({},T,this['_config']);this[_0x237978(0x192)][_0x237978(0x1a0)](Oe,_0x1dfa6c);}[_0x1d8b53(0x1d9)](){var _0x2870a0=_0x1d8b53;_0x174d4e(this[_0x2870a0(0x1ca)],_0x27a061([[L],[I],[m],[b]],this[_0x2870a0(0x184)][_0x2870a0(0x20c)])),_0x49be97(this[_0x2870a0(0x1ca)],[[m]]);}[_0x1d8b53(0x1e4)](){var _0x1afc44=_0x1d8b53;_0x49be97(this[_0x1afc44(0x1ca)],[[b]]);}};J(O,_0x1d8b53(0x1ac),_0x33fb10[_0x1d8b53(0x211)]),J(O,_0x1d8b53(0x18b),Ze),O=Be([_0x98ddff(_0x4073ea),F(0x1,_0x239a44(_0x192d3b)),F(0x2,_0x558741)],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 _0x9778e6=_0x4bc8;(function(_0x14ac5d,_0x11d897){var _0x1eb99b=_0x4bc8,_0x2de207=_0x14ac5d();while(!![]){try{var _0x3e6909=-parseInt(_0x1eb99b(0x200))/0x1+-parseInt(_0x1eb99b(0x1fd))/0x2+-parseInt(_0x1eb99b(0x20b))/0x3+parseInt(_0x1eb99b(0x223))/0x4*(parseInt(_0x1eb99b(0x236))/0x5)+parseInt(_0x1eb99b(0x1be))/0x6*(parseInt(_0x1eb99b(0x251))/0x7)+-parseInt(_0x1eb99b(0x1c6))/0x8*(-parseInt(_0x1eb99b(0x227))/0x9)+parseInt(_0x1eb99b(0x1aa))/0xa*(parseInt(_0x1eb99b(0x250))/0xb);if(_0x3e6909===_0x11d897)break;else _0x2de207['push'](_0x2de207['shift']());}catch(_0x500ae6){_0x2de207['push'](_0x2de207['shift']());}}}(_0x1ca5,0x7b5c3));function _0x4bc8(_0x15361e,_0x447668){var _0x1ca50d=_0x1ca5();return _0x4bc8=function(_0x4bc897,_0x3ba5f8){_0x4bc897=_0x4bc897-0x1aa;var _0x34657f=_0x1ca50d[_0x4bc897];return _0x34657f;},_0x4bc8(_0x15361e,_0x447668);}var q=Object[_0x9778e6(0x1d2)],z=(_0x26e524,_0xf61c4d,_0x4196fd)=>_0xf61c4d in _0x26e524?q(_0x26e524,_0xf61c4d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4196fd}):_0x26e524[_0xf61c4d]=_0x4196fd,d=(_0x1fdead,_0x1207bb,_0x41fe7a)=>z(_0x1fdead,typeof _0x1207bb!=_0x9778e6(0x1f3)?_0x1207bb+'':_0x1207bb,_0x41fe7a);import{CollaborationSessionService as _0x4a76a3,SessionStatus as _0x3b9352,UniverCollaborationClientPlugin as _0x571ab9}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2e3155,toDisposable as _0x516894,Inject as _0x16d04b,IUniverInstanceService as _0x521bf2,Injector as _0x58e3c4,IConfigService as _0x3f3ec1,ICommandService as _0x3ac4bd,RxDisposable as _0x56497b,UniverInstanceType as _0x595007,DisposableCollection as _0x72472d,CommandType as _0x22b12f,DependentOn as _0x2d3671,Plugin as _0x2e613d,merge as _0x1f82eb,registerDependencies as _0x4f0f22,mergeOverrideWithDependencies as _0x1a5aac,touchDependencies as _0x3bf4fc}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xc3474a,InsertSheetMutation as _0x37a933}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x48bc76,SetScrollOperation as _0x4aa3ed}from'@univerjs/sheets-ui';import{useDependency as _0x1e8d4a,useObservable as _0x104952,IUIPartsService as _0x3628a7,BuiltInUIPart as _0x48da4f,connectInjector as _0x328b1c}from'@univerjs/ui';import{jsx as _0x16b57f,jsxs as _0xa7baf9,Fragment as _0x3c08dd}from'react/jsx-runtime';import{Dropdown as _0x4368ad,clsx as _0x571c3e,Button as _0x2cc199}from'@univerjs/design';import{forwardRef as _0x3c17af,useRef as _0x2a7acc,createElement as _0x44a707,useState as _0x3e204,useEffect as _0x278b9b}from'react';import{CollaborationEvent as _0x18ef0a,parseProtocolChangeset as _0x8ba9d1}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x572475,Subject as _0x9b51d0}from'rxjs';import{takeUntil as _0x109cce,throttleTime as _0xeb248e}from'rxjs/operators';const Oe=_0x9778e6(0x1c5),T={};class L extends _0x2e3155{constructor(){var _0xd1aa01=_0x9778e6;super(...arguments),d(this,_0xd1aa01(0x24a),new Set()),d(this,_0xd1aa01(0x241),new Set());}[_0x9778e6(0x213)](_0x41f394){var _0x2f126e=_0x9778e6;return this[_0x2f126e(0x24a)][_0x2f126e(0x232)](_0x41f394),_0x516894(()=>this[_0x2f126e(0x24a)]['delete'](_0x41f394));}[_0x9778e6(0x240)](_0x527f31){var _0x3b7f11=_0x9778e6;return this[_0x3b7f11(0x241)]['add'](_0x527f31),_0x516894(()=>this['_reporters'][_0x3b7f11(0x1e0)](_0x527f31));}['shouldShareOperation'](_0xb20aac){var _0x3c2509=_0x9778e6;return this['_sharedOperations'][_0x3c2509(0x228)](_0xb20aac);}[_0x9778e6(0x1c4)](_0x323e4f){var _0x2d87e6=_0x9778e6;return Array[_0x2d87e6(0x256)](this['_reporters'])['map'](_0x216371=>_0x216371(_0x323e4f));}}var Ee=Object[_0x9778e6(0x1d8)],we=(_0x154012,_0x3128ea,_0x2039d9,_0x215468)=>{for(var _0x9535d2=_0x215468>0x1?void 0x0:_0x215468?Ee(_0x3128ea,_0x2039d9):_0x3128ea,_0x1cf8ee=_0x154012['length']-0x1,_0x539d84;_0x1cf8ee>=0x0;_0x1cf8ee--)(_0x539d84=_0x154012[_0x1cf8ee])&&(_0x9535d2=_0x539d84(_0x9535d2)||_0x9535d2);return _0x9535d2;},Ne=(_0x21bc29,_0x50a234)=>(_0x58eed9,_0x31dcbb)=>_0x50a234(_0x58eed9,_0x31dcbb,_0x21bc29);let m=class extends _0x2e3155{constructor(_0x54a40b){var _0x48a647=_0x9778e6;super(),this[_0x48a647(0x1fe)]=_0x54a40b,this['_init']();}[_0x9778e6(0x252)](){[_0x48bc76['id'],_0x4aa3ed['id'],_0xc3474a['id']]['forEach'](_0x5d2021=>{var _0x51202e=_0x4bc8;this[_0x51202e(0x1db)](this[_0x51202e(0x1fe)][_0x51202e(0x213)](_0x5d2021));});}};m=we([Ne(0x0,_0x16d04b(L))],m);var c=function(){var _0x2a1847=_0x9778e6;return c=Object[_0x2a1847(0x1d6)]||function(_0x526998){var _0x212f88=_0x2a1847;for(var _0x892e65,_0x1c2e1f=0x1,_0x51918f=arguments[_0x212f88(0x1e6)];_0x1c2e1f<_0x51918f;_0x1c2e1f++){_0x892e65=arguments[_0x1c2e1f];for(var _0x300345 in _0x892e65)Object[_0x212f88(0x1af)][_0x212f88(0x21d)][_0x212f88(0x1e5)](_0x892e65,_0x300345)&&(_0x526998[_0x300345]=_0x892e65[_0x300345]);}return _0x526998;},c['apply'](this,arguments);},Ce=function(_0x4d049a,_0x5be463){var _0x5b89ea=_0x9778e6,_0x155407={};for(var _0x2d3459 in _0x4d049a)Object[_0x5b89ea(0x1af)]['hasOwnProperty'][_0x5b89ea(0x1e5)](_0x4d049a,_0x2d3459)&&_0x5be463['indexOf'](_0x2d3459)<0x0&&(_0x155407[_0x2d3459]=_0x4d049a[_0x2d3459]);if(_0x4d049a!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x3599ae=0x0,_0x2d3459=Object[_0x5b89ea(0x225)](_0x4d049a);_0x3599ae<_0x2d3459[_0x5b89ea(0x1e6)];_0x3599ae++)_0x5be463['indexOf'](_0x2d3459[_0x3599ae])<0x0&&Object[_0x5b89ea(0x1af)][_0x5b89ea(0x22b)][_0x5b89ea(0x1e5)](_0x4d049a,_0x2d3459[_0x3599ae])&&(_0x155407[_0x2d3459[_0x3599ae]]=_0x4d049a[_0x2d3459[_0x3599ae]]);}return _0x155407;},W=_0x3c17af(function(_0x3baaaf,_0x23cbbb){var _0x37676c=_0x9778e6,_0x30e14e=_0x3baaaf['icon'],_0x38f7a2=_0x3baaaf['id'],_0x15ffb4=_0x3baaaf[_0x37676c(0x229)],_0x24fca3=_0x3baaaf[_0x37676c(0x239)],_0x24835c=Ce(_0x3baaaf,[_0x37676c(0x205),'id',_0x37676c(0x229),_0x37676c(0x239)]),_0x4e7213=_0x37676c(0x21f)[_0x37676c(0x234)](_0x38f7a2,'\x20')['concat'](_0x15ffb4||'')[_0x37676c(0x24b)](),_0x16eb74=_0x2a7acc('_'[_0x37676c(0x234)](Le()));return Y(_0x30e14e,''[_0x37676c(0x234)](_0x38f7a2),{'defIds':_0x30e14e['defIds'],'idSuffix':_0x16eb74[_0x37676c(0x1f8)]},c({'ref':_0x23cbbb,'className':_0x4e7213},_0x24835c),_0x24fca3);});function Y(_0x43644b,_0x441f21,_0x3fcc06,_0x55ce89,_0x5b4d27){var _0x552e4b=_0x9778e6;return _0x44a707(_0x43644b[_0x552e4b(0x1b5)],c(c({'key':_0x441f21},De(_0x43644b,_0x3fcc06,_0x5b4d27)),_0x55ce89),(xe(_0x43644b,_0x3fcc06)[_0x552e4b(0x1d9)]||[])[_0x552e4b(0x23e)](function(_0xa30801,_0x2ca8dd){var _0x1c3150=_0x552e4b;return Y(_0xa30801,''[_0x1c3150(0x234)](_0x441f21,'-')[_0x1c3150(0x234)](_0x43644b['tag'],'-')['concat'](_0x2ca8dd),_0x3fcc06,void 0x0,_0x5b4d27);}));}function De(_0x182fd1,_0x5077e5,_0x831702){var _0x3be067=_0x9778e6,_0x5158d3=c({},_0x182fd1[_0x3be067(0x1e7)]);_0x831702!=null&&_0x831702[_0x3be067(0x215)]&&_0x5158d3['fill']==='colorChannel1'&&(_0x5158d3[_0x3be067(0x1c0)]=_0x831702[_0x3be067(0x215)]),_0x182fd1[_0x3be067(0x1b5)]==='mask'&&_0x5158d3['id']&&(_0x5158d3['id']=_0x5158d3['id']+_0x5077e5[_0x3be067(0x207)]),Object[_0x3be067(0x1c9)](_0x5158d3)[_0x3be067(0x22c)](function(_0x5560e5){var _0x400d95=_0x3be067,_0x178b7f=_0x5560e5[0x0],_0xfa8479=_0x5560e5[0x1];_0x178b7f==='mask'&&typeof _0xfa8479==_0x400d95(0x1b1)&&(_0x5158d3[_0x178b7f]=_0xfa8479[_0x400d95(0x1ae)](/url\(#(.*)\)/,_0x400d95(0x20d)[_0x400d95(0x234)](_0x5077e5[_0x400d95(0x207)],')')));});var _0x55d415=_0x5077e5['defIds'];return!_0x55d415||_0x55d415[_0x3be067(0x1e6)]===0x0||(_0x182fd1[_0x3be067(0x1b5)]==='use'&&_0x5158d3[_0x3be067(0x243)]&&(_0x5158d3[_0x3be067(0x243)]=_0x5158d3[_0x3be067(0x243)]+_0x5077e5['idSuffix']),Object[_0x3be067(0x1c9)](_0x5158d3)[_0x3be067(0x22c)](function(_0x26b38d){var _0x227253=_0x3be067,_0x233bde=_0x26b38d[0x0],_0x485e3c=_0x26b38d[0x1];typeof _0x485e3c==_0x227253(0x1b1)&&(_0x5158d3[_0x233bde]=_0x485e3c[_0x227253(0x1ae)](/url\(#(.*)\)/,'url(#$1'[_0x227253(0x234)](_0x5077e5[_0x227253(0x207)],')')));})),_0x5158d3;}function xe(_0x35cc67,_0x1734a2){var _0x3c56a4=_0x9778e6,_0x2ca0de,_0x9110c3=_0x1734a2[_0x3c56a4(0x1d0)];return!_0x9110c3||_0x9110c3[_0x3c56a4(0x1e6)]===0x0?_0x35cc67:_0x35cc67['tag']===_0x3c56a4(0x1b0)&&(!((_0x2ca0de=_0x35cc67[_0x3c56a4(0x1d9)])===null||_0x2ca0de===void 0x0)&&_0x2ca0de[_0x3c56a4(0x1e6)])?c(c({},_0x35cc67),{'children':_0x35cc67[_0x3c56a4(0x1d9)][_0x3c56a4(0x23e)](function(_0x3d2552){var _0x21170a=_0x3c56a4;return typeof _0x3d2552[_0x21170a(0x1e7)]['id']==_0x21170a(0x1b1)&&_0x9110c3&&_0x9110c3[_0x21170a(0x24c)](_0x3d2552['attrs']['id'])?c(c({},_0x3d2552),{'attrs':c(c({},_0x3d2552['attrs']),{'id':_0x3d2552['attrs']['id']+_0x1734a2[_0x21170a(0x207)]})}):_0x3d2552;})}):_0x35cc67;}function Le(){var _0x296200=_0x9778e6;return Math[_0x296200(0x1cb)]()['toString'](0x24)[_0x296200(0x20c)](0x2,0x8);}W[_0x9778e6(0x206)]=_0x9778e6(0x219);var ye={'tag':_0x9778e6(0x1bd),'attrs':{'xmlns':_0x9778e6(0x245),'fill':'none','viewBox':_0x9778e6(0x21e),'width':_0x9778e6(0x1ee),'height':_0x9778e6(0x1ee)},'children':[{'tag':_0x9778e6(0x1b3),'attrs':{'fill':_0x9778e6(0x1ca),'d':_0x9778e6(0x1c7)}},{'tag':_0x9778e6(0x1b3),'attrs':{'fill':_0x9778e6(0x1ca),'d':_0x9778e6(0x249),'fillRule':_0x9778e6(0x23b),'clipRule':_0x9778e6(0x23b)}}]},B=_0x3c17af(function(_0x20b13a,_0x46e66c){var _0x12211c=_0x9778e6;return _0x44a707(W,Object[_0x12211c(0x1d6)]({},_0x20b13a,{'id':_0x12211c(0x1fb),'ref':_0x46e66c,'icon':ye}));});B[_0x9778e6(0x206)]=_0x9778e6(0x1c8);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x163aa8,_0x233050,_0x2401be,_0x239fd1)=>{for(var _0x4f040e=_0x239fd1>0x1?void 0x0:_0x239fd1?Re(_0x233050,_0x2401be):_0x233050,_0x554d77=_0x163aa8['length']-0x1,_0xc8dc02;_0x554d77>=0x0;_0x554d77--)(_0xc8dc02=_0x163aa8[_0x554d77])&&(_0x4f040e=_0xc8dc02(_0x4f040e)||_0x4f040e);return _0x4f040e;},f=(_0x938857,_0x4424fa)=>(_0x2d391e,_0x4a8213)=>_0x4424fa(_0x2d391e,_0x4a8213,_0x938857);let I=class extends _0x56497b{constructor(_0x585701,_0x452757,_0x4267a2){var _0x281a94=_0x9778e6;super(),d(this,'_entities',new Map()),(this[_0x281a94(0x1bc)]=_0x585701,this[_0x281a94(0x25a)]=_0x452757,this[_0x281a94(0x22e)]=_0x4267a2,this[_0x281a94(0x252)]());}async[_0x9778e6(0x1bf)](_0x56dfd9){var _0x52512e=_0x9778e6;return this[_0x52512e(0x217)][_0x52512e(0x228)](_0x56dfd9)||await this[_0x52512e(0x255)](_0x56dfd9),this[_0x52512e(0x217)][_0x52512e(0x247)](_0x56dfd9);}[_0x9778e6(0x252)](){var _0xd5a30c=_0x9778e6;this[_0xd5a30c(0x1bc)][_0xd5a30c(0x238)](_0x595007[_0xd5a30c(0x1f6)])['pipe'](_0x109cce(this[_0xd5a30c(0x221)]))[_0xd5a30c(0x1fa)](async _0xe0b0c6=>{var _0x4508e5=_0xd5a30c;const _0x373326=_0xe0b0c6[_0x4508e5(0x224)]();this[_0x4508e5(0x217)][_0x4508e5(0x228)](_0x373326)||this[_0x4508e5(0x255)](_0x373326);}),this[_0xd5a30c(0x1bc)]['getTypeOfUnitDisposed$'](_0x595007['UNIVER_SHEET'])[_0xd5a30c(0x1f5)](_0x109cce(this[_0xd5a30c(0x221)]))[_0xd5a30c(0x1fa)](_0x52fa72=>{var _0x248dff=_0xd5a30c;const _0x2a810a=_0x52fa72['getUnitId'](),_0x445d9c=this[_0x248dff(0x217)][_0x248dff(0x247)](_0x2a810a);_0x445d9c==null||_0x445d9c[_0x248dff(0x1fc)]();});}async[_0x9778e6(0x255)](_0x4bbccd){var _0x1d72ae=_0x9778e6;const _0x43c962=await this[_0x1d72ae(0x22e)]['requireSession'](_0x4bbccd),_0x16198c=this[_0x1d72ae(0x25a)]['createInstance'](C,_0x4bbccd,_0x43c962);return _0x16198c[_0x1d72ae(0x1b8)](),this[_0x1d72ae(0x217)][_0x1d72ae(0x22d)](_0x4bbccd,_0x16198c),_0x16198c;}};I=Z([f(0x0,_0x521bf2),f(0x1,_0x16d04b(_0x58e3c4)),f(0x2,_0x16d04b(_0x4a76a3))],I);var h=(_0x223ec6=>(_0x223ec6[_0x9778e6(0x1d4)]=_0x9778e6(0x1e8),_0x223ec6[_0x9778e6(0x1cd)]=_0x9778e6(0x24e),_0x223ec6['FOLLOWING']='following',_0x223ec6['NOT_FOLLOWING']=_0x9778e6(0x202),_0x223ec6['PRESENTING']=_0x9778e6(0x1b2),_0x223ec6))(h||{});const Pe=_0x9778e6(0x201),Ae=0xc8;let C=class extends _0x56497b{constructor(_0x59878a,_0xa07c25,_0x3ab47f,_0x20ca62,_0x5e2543){var _0x352431=_0x9778e6;super(),d(this,_0x352431(0x20f),new _0x572475('idle')),d(this,_0x352431(0x208),this[_0x352431(0x20f)]['asObservable']()),d(this,_0x352431(0x252),!0x1),d(this,_0x352431(0x220),null),d(this,_0x352431(0x22f),null),(this[_0x352431(0x1c2)]=_0x59878a,this['_collabSession']=_0xa07c25,this[_0x352431(0x212)]=_0x3ab47f,this[_0x352431(0x1fe)]=_0x20ca62,this[_0x352431(0x235)]=_0x5e2543);}get[_0x9778e6(0x21c)](){var _0x2f7ade=_0x9778e6;return this[_0x2f7ade(0x20f)][_0x2f7ade(0x248)]();}[_0x9778e6(0x1fc)](){var _0x497318=_0x9778e6,_0x1f137e;(_0x1f137e=this['_commandDisposable'])==null||_0x1f137e[_0x497318(0x1fc)](),this[_0x497318(0x20f)]['next'](_0x497318(0x24e)),this[_0x497318(0x20f)][_0x497318(0x1de)]();}[_0x9778e6(0x1b8)](){var _0x360bc6=_0x9778e6;this[_0x360bc6(0x252)]||(this['_init']=!0x0,this[_0x360bc6(0x1d1)][_0x360bc6(0x1f2)][_0x360bc6(0x1f5)](_0x109cce(this[_0x360bc6(0x221)]))[_0x360bc6(0x1fa)](_0x55c0e6=>{var _0x21db46=_0x360bc6;switch(_0x55c0e6){case _0x3b9352[_0x21db46(0x1d4)]:this[_0x21db46(0x1ab)]();break;case _0x3b9352[_0x21db46(0x23c)]:this[_0x21db46(0x1e3)]();break;}}),this[_0x360bc6(0x1d1)][_0x360bc6(0x257)][_0x360bc6(0x1f5)](_0x109cce(this['dispose$']))[_0x360bc6(0x1fa)](_0x40c1ee=>{var _0x1d59c7=_0x360bc6;const {eventID:_0x1a8084}=_0x40c1ee;switch(_0x1a8084){case _0x18ef0a[_0x1d59c7(0x1d3)]:this[_0x1d59c7(0x24f)](_0x40c1ee);break;case _0x18ef0a[_0x1d59c7(0x1b6)]:this['_handleOperation'](_0x40c1ee);break;case _0x18ef0a[_0x1d59c7(0x259)]:this[_0x1d59c7(0x1ba)]();break;case _0x18ef0a[_0x1d59c7(0x1f9)]:this['_handleNewChangeSets'](_0x40c1ee);break;}}));}[_0x9778e6(0x1eb)](){var _0x493789=_0x9778e6;this[_0x493789(0x1d1)][_0x493789(0x23f)]({'eventID':_0x18ef0a[_0x493789(0x1cc)],'data':{'unitID':this[_0x493789(0x1c2)],'userID':this[_0x493789(0x1d1)]['getMemberID']()}},this[_0x493789(0x1c2)]);}[_0x9778e6(0x1ad)](){var _0x1f0c09=_0x9778e6;this[_0x1f0c09(0x21c)]==='presenting'&&(this[_0x1f0c09(0x20f)]['next'](_0x1f0c09(0x24e)),this[_0x1f0c09(0x1d1)][_0x1f0c09(0x23f)]({'eventID':_0x18ef0a[_0x1f0c09(0x259)],'data':{'unitID':this[_0x1f0c09(0x1c2)]}},this[_0x1f0c09(0x1c2)]));}[_0x9778e6(0x231)](){var _0x87d918=_0x9778e6;this['_status']===_0x87d918(0x202)&&(this['_status$'][_0x87d918(0x230)]('following'),this[_0x87d918(0x1da)]());}[_0x9778e6(0x1b4)](){var _0x313bfa=_0x9778e6;this['_status']===_0x313bfa(0x1c3)&&this[_0x313bfa(0x1e1)]();}[_0x9778e6(0x24f)](_0x1e6251){var _0x45c2e2=_0x9778e6;const {presenter:_0x25eb82}=_0x1e6251[_0x45c2e2(0x1ef)],_0x17edca=this['_collabSession'][_0x45c2e2(0x258)]();this[_0x45c2e2(0x22f)]=_0x25eb82,_0x25eb82===_0x17edca?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x45c2e2(0x21c)]!=='not-following'&&(this['_stopPresenting'](),this[_0x45c2e2(0x1da)]());}['_fetchOperations'](){var _0x2f20d2=_0x9778e6;const _0x515b27={'eventID':_0x18ef0a[_0x2f20d2(0x214)]};this[_0x2f20d2(0x1d1)][_0x2f20d2(0x23f)](_0x515b27,this['_unitID']);}[_0x9778e6(0x1ba)](){var _0x2950b8=_0x9778e6;this[_0x2950b8(0x22f)]=null,this[_0x2950b8(0x21c)]!=='presenting'&&this[_0x2950b8(0x204)]();}[_0x9778e6(0x22a)](_0x3dcaf8){var _0xa7653f=_0x9778e6;if(this[_0xa7653f(0x21c)]===_0xa7653f(0x1c3)&&this['_presenter']===_0x3dcaf8[_0xa7653f(0x1ef)]['memberID']){const _0x540ab7=_0x8ba9d1(_0x3dcaf8['data'])[_0xa7653f(0x1ac)]['reverse']()[_0xa7653f(0x1ff)](_0x11b8e9=>_0x11b8e9['id']===_0x37a933['id']);if(_0x540ab7){const _0x1990eb=_0x540ab7[_0xa7653f(0x1b7)][_0xa7653f(0x1f7)],_0xbb730b=_0x540ab7[_0xa7653f(0x1b7)][_0xa7653f(0x21b)]['id'];setTimeout(()=>{var _0x168fe7=_0xa7653f;this[_0x168fe7(0x235)][_0x168fe7(0x20e)](_0xc3474a['id'],{'unitId':_0x1990eb,'subUnitId':_0xbb730b},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3a1dc3=_0x9778e6;this['_status$'][_0x3a1dc3(0x230)](_0x3a1dc3(0x1b2));const _0x4462f7=new Map(),_0x231123=this[_0x3a1dc3(0x220)]=new _0x72472d();_0x231123[_0x3a1dc3(0x232)](_0x516894(()=>{var _0x13707c=_0x3a1dc3;_0x4462f7[_0x13707c(0x22c)](_0x4b9c13=>_0x4b9c13[_0x13707c(0x1de)]()),_0x4462f7['clear']();})),_0x231123[_0x3a1dc3(0x232)](this[_0x3a1dc3(0x235)][_0x3a1dc3(0x203)](_0x345d34=>{var _0x4f37e1=_0x3a1dc3,_0x5aed38;if(_0x345d34[_0x4f37e1(0x25b)]!==_0x22b12f['OPERATION']||!this[_0x4f37e1(0x1fe)][_0x4f37e1(0x1b9)](_0x345d34['id']))return;const {id:_0xb54910}=_0x345d34;let _0x135a84;_0x4462f7['has'](_0xb54910)?_0x135a84=_0x4462f7[_0x4f37e1(0x247)](_0xb54910):(_0x135a84=new _0x9b51d0(),_0x4462f7[_0x4f37e1(0x22d)](_0xb54910,_0x135a84),_0x135a84[_0x4f37e1(0x1f5)](_0xeb248e((_0x5aed38=this[_0x4f37e1(0x212)][_0x4f37e1(0x209)](Pe))!=null?_0x5aed38:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4f37e1(0x1fa)](_0x12ca8c=>{var _0x2ec78f=_0x4f37e1;this[_0x2ec78f(0x1d1)][_0x2ec78f(0x23f)]({'eventID':_0x18ef0a[_0x2ec78f(0x1b6)],'data':{'unitID':this[_0x2ec78f(0x1c2)],'operations':{[_0x12ca8c['id']]:{'id':_0x12ca8c['id'],'params':JSON[_0x2ec78f(0x1e2)](_0x12ca8c[_0x2ec78f(0x1b7)])}}}},this['_unitID']);})),_0x135a84[_0x4f37e1(0x230)](_0x345d34);})),this['_liveShareService'][_0x3a1dc3(0x1c4)](this[_0x3a1dc3(0x1c2)])[_0x3a1dc3(0x22c)](_0x19ff4a=>this[_0x3a1dc3(0x1d1)][_0x3a1dc3(0x23f)]({'eventID':_0x18ef0a[_0x3a1dc3(0x1b6)],'data':{'unitID':this['_unitID'],'operations':{[_0x19ff4a['id']]:{'id':_0x19ff4a['id'],'params':JSON[_0x3a1dc3(0x1e2)](_0x19ff4a[_0x3a1dc3(0x1b7)])}}}},this['_unitID']));}[_0x9778e6(0x24d)](){var _0x612c59=_0x9778e6,_0x13bb51;this[_0x612c59(0x20f)][_0x612c59(0x230)]('idle'),(_0x13bb51=this[_0x612c59(0x220)])==null||_0x13bb51['dispose'](),this[_0x612c59(0x220)]=null;}[_0x9778e6(0x1da)](){var _0x1f1057=_0x9778e6,_0x35c0af;(_0x35c0af=this[_0x1f1057(0x220)])==null||_0x35c0af[_0x1f1057(0x1fc)](),this[_0x1f1057(0x20f)][_0x1f1057(0x230)]('following');}[_0x9778e6(0x204)](){var _0x301940=_0x9778e6,_0x4164eb;this['_status$'][_0x301940(0x230)]('idle'),(_0x4164eb=this['_commandDisposable'])==null||_0x4164eb[_0x301940(0x1fc)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5b5724=_0x9778e6,_0x244ce7;this[_0x5b5724(0x20f)][_0x5b5724(0x230)](_0x5b5724(0x202)),(_0x244ce7=this[_0x5b5724(0x220)])==null||_0x244ce7[_0x5b5724(0x1fc)]();}[_0x9778e6(0x23d)](_0x56a3b5){var _0x268d49=_0x9778e6;if([_0x268d49(0x1b2),_0x268d49(0x202),'offline'][_0x268d49(0x24c)](this[_0x268d49(0x21c)])||!_0x56a3b5[_0x268d49(0x1ef)][_0x268d49(0x1f0)]||_0x56a3b5[_0x268d49(0x1ef)]['presenter']===this[_0x268d49(0x1d1)]['getMemberID']())return;this[_0x268d49(0x21c)]===_0x268d49(0x24e)&&this[_0x268d49(0x1da)]();const _0x31a7de=_0x56a3b5[_0x268d49(0x1ef)]['operations'];Object[_0x268d49(0x21a)](_0x31a7de)['forEach'](_0x141c41=>{var _0x5274ec=_0x268d49;this[_0x5274ec(0x235)][_0x5274ec(0x20e)](_0x141c41['id'],_0x141c41[_0x5274ec(0x1b7)]?JSON[_0x5274ec(0x233)](_0x141c41['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4ba58e=_0x9778e6,_0x15f6f8;this[_0x4ba58e(0x20f)][_0x4ba58e(0x230)](_0x4ba58e(0x1e8)),(_0x15f6f8=this[_0x4ba58e(0x220)])==null||_0x15f6f8['dispose']();}[_0x9778e6(0x1e3)](){var _0x1ebf6d=_0x9778e6;this[_0x1ebf6d(0x20f)][_0x1ebf6d(0x230)](_0x1ebf6d(0x24e)),this[_0x1ebf6d(0x218)]();}};C=Z([f(0x2,_0x3f3ec1),f(0x3,_0x16d04b(L)),f(0x4,_0x3ac4bd)],C);function Te(){var _0x15129b=_0x9778e6;const _0x2021f0=_0x1e8d4a(I),_0x19de99=_0x1e8d4a(_0x521bf2),_0x139b86=_0x104952(()=>_0x19de99[_0x15129b(0x226)](_0x595007[_0x15129b(0x1f6)]),void 0x0,!0x1,[]),[_0x4fe615,_0x5ee33c]=_0x3e204(null),[_0x3725a9,_0x309794]=_0x3e204(h[_0x15129b(0x1cd)]),_0x28b18a=_0x2a7acc(null);return _0x278b9b(()=>(_0x139b86&&_0x2021f0[_0x15129b(0x1bf)](_0x139b86[_0x15129b(0x224)]())[_0x15129b(0x242)](_0x4e04bf=>{var _0x2a60d0=_0x15129b;_0x5ee33c(_0x4e04bf),_0x28b18a[_0x2a60d0(0x1f8)]=_0x4e04bf['status$']['subscribe'](_0x2daf30=>{_0x309794(_0x2daf30);});}),()=>{var _0x28f18f=_0x15129b,_0x298c53;(_0x298c53=_0x28b18a[_0x28f18f(0x1f8)])==null||_0x298c53[_0x28f18f(0x20a)](),_0x28b18a['current']=null;}),[_0x139b86,_0x2021f0]),_0x4fe615?_0x16b57f(_0x4368ad,{'align':'end','disabled':_0x3725a9===h[_0x15129b(0x1d4)],'className':_0x15129b(0x23a),'overlay':_0x16b57f($e,{'status':_0x3725a9,'coordinator':_0x4fe615}),'children':_0x16b57f(_0x15129b(0x1d7),{'className':_0x571c3e(_0x15129b(0x1e4),{'univer-cursor-not-allowed':_0x3725a9===h[_0x15129b(0x1d4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3725a9!==h[_0x15129b(0x1d4)]}),'type':_0x15129b(0x1d7),'children':_0x16b57f(B,{'className':_0x15129b(0x216)})})}):null;}function _0x1ca5(){var _0x43c624=['UniverIcon','values','sheet','_status','hasOwnProperty','0\x200\x2017\x2017','univerjs-icon\x20univerjs-icon-','_commandDisposable','dispose$','onRendered','82456BrdoRV','getUnitId','getOwnPropertySymbols','getCurrentTypeOfUnit$','126081wTUSST','has','className','_handleNewChangeSets','propertyIsEnumerable','forEach','set','_collabSessionService','_presenter','next','startFollowing','add','parse','concat','_commandService','25WCrIHr','_config','getTypeOfUnitAdded$','extend','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','evenodd','ONLINE','_handleOperation','map','send','registerInitialStateReporter','_reporters','then','xlink:href','onStarting','http://www.w3.org/2000/svg','text','get','getValue','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','_sharedOperations','trim','includes','_stopPresenting','idle','_handleNewHost','22DNszsp','7xnCYPj','_init','default','Present\x20this\x20document','_startLiveShareCoordinator','from','event$','getMemberID','LIVESHARE_TERMINATE','_injector','type','5673350KqvAgc','_handleOffline','mutations','stopPresenting','replace','prototype','defs','string','presenting','path','stopFollowing','tag','LIVESHARE_OPERATION','params','init','shouldShareOperation','_handleTerminate','UNIVER_UNKNOWN','_univerInstanceService','svg','2405190KwJoEC','getLiveShareCoordinator','fill','You\x27are\x20offline.','_unitID','following','getInitialStates','live-share.config','248QYNZBR','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','LiveShareIcon','entries','currentColor','random','LIVESHARE_REQUEST_HOST','IDLE','Stop\x20following','div','defIds','_collabSession','defineProperty','LIVESHARE_NEW_HOST','OFFLINE','_mountLiveShare','assign','button','getOwnPropertyDescriptor','children','_startFollowing','disposeWithMe','_uiPartsService','NOT_FOLLOWING','complete','univer-mb-3\x20univer-w-full\x20univer-text-sm','delete','_stopFollowing','stringify','_handleOnline','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','call','length','attrs','offline','You\x27re\x20presenting\x20the\x20document','UNIVER_LIVE_SHARE_PLUGIN','tryStartPresenting','Stop\x20presenting','HEADER_MENU','1em','data','presenter','override','sessionStatus$','symbol','PRESENTING','pipe','UNIVER_SHEET','unitId','current','NEW_CHANGESETS','subscribe','live-share-icon','dispose','1431398rWBTbG','_liveShareService','find','97783CxzKdb','SAME_OPERATION_SHARE_INTERVAL','not-following','onCommandExecuted','_beIdle','icon','displayName','idSuffix','status$','getConfig','unsubscribe','2262357CmEJNj','substring','url(#$1','executeCommand','_status$','FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','_configService','registerSharedOperation','LIVESHARE_FETCH_OPERATIONS','colorChannel1','univer-size-4','_entities','_fetchOperations'];_0x1ca5=function(){return _0x43c624;};return _0x1ca5();}function $e(_0x56447f){var _0x17dfc8=_0x9778e6;const {status:_0x30d87e,coordinator:_0x6700b4}=_0x56447f;switch(_0x30d87e){case h['IDLE']:return _0x16b57f(Fe,{'coordinator':_0x6700b4});case h[_0x17dfc8(0x210)]:return _0x16b57f(He,{'coordinator':_0x6700b4});case h[_0x17dfc8(0x1dd)]:return _0x16b57f(je,{'coordinator':_0x6700b4});case h[_0x17dfc8(0x1d4)]:return _0x16b57f(Ve,{});case h[_0x17dfc8(0x1f4)]:return _0x16b57f(Ue,{'coordinator':_0x6700b4});default:return null;}}function Fe(_0x10993c){var _0x462e42=_0x9778e6;const {coordinator:_0x128451}=_0x10993c;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f(_0x462e42(0x1cf),{'className':_0x462e42(0x1df),'children':_0x462e42(0x254)}),_0x16b57f(_0x2cc199,{'onClick':()=>_0x128451[_0x462e42(0x1eb)](),'children':'Start'})]});}function He(_0x73395e){var _0x41920b=_0x9778e6;const {coordinator:_0x15dc69}=_0x73395e;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f('div',{'className':_0x41920b(0x1df),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x16b57f(_0x2cc199,{'onClick':()=>_0x15dc69[_0x41920b(0x1b4)](),'children':_0x41920b(0x1ce)})]});}function je(_0x108783){var _0x16ba73=_0x9778e6;const {coordinator:_0x28ae63}=_0x108783;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f(_0x16ba73(0x1cf),{'className':_0x16ba73(0x1df),'children':_0x16ba73(0x211)}),_0x16b57f(_0x2cc199,{'variant':_0x16ba73(0x246),'onClick':()=>_0x28ae63[_0x16ba73(0x231)](),'children':'Start\x20following'})]});}function Ue(_0x529e6c){var _0x49928f=_0x9778e6;const {coordinator:_0x3ab0fd}=_0x529e6c;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f(_0x49928f(0x1cf),{'className':_0x49928f(0x1df),'children':_0x49928f(0x1e9)}),_0x16b57f(_0x2cc199,{'variant':_0x49928f(0x253),'onClick':()=>_0x3ab0fd[_0x49928f(0x1ad)](),'children':_0x49928f(0x1ec)})]});}function Ve(){var _0xb86d4d=_0x9778e6;return _0x16b57f(_0x3c08dd,{'children':_0xb86d4d(0x1c1)});}var Me=Object[_0x9778e6(0x1d8)],ke=(_0x428261,_0x3470a6,_0x51eba9,_0x58bd24)=>{for(var _0x279155=_0x58bd24>0x1?void 0x0:_0x58bd24?Me(_0x3470a6,_0x51eba9):_0x3470a6,_0x385067=_0x428261['length']-0x1,_0x2e5976;_0x385067>=0x0;_0x385067--)(_0x2e5976=_0x428261[_0x385067])&&(_0x279155=_0x2e5976(_0x279155)||_0x279155);return _0x279155;},$=(_0x522291,_0x5d824a)=>(_0x107270,_0x3e15f6)=>_0x5d824a(_0x107270,_0x3e15f6,_0x522291);let b=class extends _0x2e3155{constructor(_0x161338,_0x4d6de6){var _0x215a3e=_0x9778e6;super(),this[_0x215a3e(0x25a)]=_0x161338,this[_0x215a3e(0x1dc)]=_0x4d6de6,this['_mountLiveShare']();}[_0x9778e6(0x1d5)](){var _0x3ea2ed=_0x9778e6;this['disposeWithMe'](this[_0x3ea2ed(0x1dc)]['registerComponent'](_0x48da4f[_0x3ea2ed(0x1ed)],()=>_0x328b1c(Te,this[_0x3ea2ed(0x25a)])));}};b=ke([$(0x0,_0x16d04b(_0x58e3c4)),$(0x1,_0x3628a7)],b);var Ge=Object[_0x9778e6(0x1d2)],We=Object[_0x9778e6(0x1d8)],Ye=(_0x4b4eeb,_0xb3e767,_0x5774a4)=>_0xb3e767 in _0x4b4eeb?Ge(_0x4b4eeb,_0xb3e767,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5774a4}):_0x4b4eeb[_0xb3e767]=_0x5774a4,Be=(_0x262f7c,_0x696649,_0x16433,_0x46326d)=>{var _0x365e1d=_0x9778e6;for(var _0x465847=_0x46326d>0x1?void 0x0:_0x46326d?We(_0x696649,_0x16433):_0x696649,_0x32d4a8=_0x262f7c[_0x365e1d(0x1e6)]-0x1,_0x46465f;_0x32d4a8>=0x0;_0x32d4a8--)(_0x46465f=_0x262f7c[_0x32d4a8])&&(_0x465847=_0x46465f(_0x465847)||_0x465847);return _0x465847;},F=(_0x2d383f,_0x734eb8)=>(_0xf10a80,_0x1f5497)=>_0x734eb8(_0xf10a80,_0x1f5497,_0x2d383f),J=(_0xfe0826,_0x4f6431,_0x379f2e)=>Ye(_0xfe0826,typeof _0x4f6431!=_0x9778e6(0x1f3)?_0x4f6431+'':_0x4f6431,_0x379f2e);const Ze=_0x9778e6(0x1ea);let O=class extends _0x2e613d{constructor(_0x4a32a9=T,_0x5bab26,_0x19b372){var _0x42ef4e=_0x9778e6;super(),this[_0x42ef4e(0x237)]=_0x4a32a9,this[_0x42ef4e(0x25a)]=_0x5bab26,this['_configService']=_0x19b372;const {..._0x1e3470}=_0x1f82eb({},T,this[_0x42ef4e(0x237)]);this['_configService']['setConfig'](Oe,_0x1e3470);}[_0x9778e6(0x244)](){var _0x48707b=_0x9778e6;_0x4f0f22(this[_0x48707b(0x25a)],_0x1a5aac([[L],[I],[m],[b]],this[_0x48707b(0x237)][_0x48707b(0x1f1)])),_0x3bf4fc(this['_injector'],[[m]]);}[_0x9778e6(0x222)](){var _0x2f3bbd=_0x9778e6;_0x3bf4fc(this[_0x2f3bbd(0x25a)],[[b]]);}};J(O,_0x9778e6(0x25b),_0x595007[_0x9778e6(0x1bb)]),J(O,'pluginName',Ze),O=Be([_0x2d3671(_0x571ab9),F(0x1,_0x16d04b(_0x58e3c4)),F(0x2,_0x3f3ec1)],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 _0x3394(_0x1e9046,_0x2c6d51){var _0x153c07=_0x153c();return _0x3394=function(_0x33944c,_0x5229a4){_0x33944c=_0x33944c-0xc9;var _0x46f2a9=_0x153c07[_0x33944c];return _0x46f2a9;},_0x3394(_0x1e9046,_0x2c6d51);}(function(_0x529dec,_0xaac5fc){var _0x2776c6=_0x3394,_0x3bb475=_0x529dec();while(!![]){try{var _0xe39c22=-parseInt(_0x2776c6(0x1b1))/0x1*(parseInt(_0x2776c6(0x1a5))/0x2)+-parseInt(_0x2776c6(0x12d))/0x3+parseInt(_0x2776c6(0xea))/0x4*(parseInt(_0x2776c6(0x173))/0x5)+parseInt(_0x2776c6(0xcf))/0x6+-parseInt(_0x2776c6(0x1b7))/0x7+parseInt(_0x2776c6(0xf6))/0x8*(-parseInt(_0x2776c6(0x1ac))/0x9)+parseInt(_0x2776c6(0xca))/0xa*(parseInt(_0x2776c6(0x1bd))/0xb);if(_0xe39c22===_0xaac5fc)break;else _0x3bb475['push'](_0x3bb475['shift']());}catch(_0x3ed20c){_0x3bb475['push'](_0x3bb475['shift']());}}}(_0x153c,0xd1d90),function(_0x17bed8,_0x232923){var _0x4b4152=_0x3394;typeof exports==_0x4b4152(0x1c2)&&typeof module<'u'?_0x232923(exports,require(_0x4b4152(0xff)),require('@univerjs/core'),require(_0x4b4152(0x126)),require(_0x4b4152(0x124)),require(_0x4b4152(0x196)),require('react/jsx-runtime'),require(_0x4b4152(0x122)),require(_0x4b4152(0x118)),require(_0x4b4152(0x145)),require(_0x4b4152(0xd9)),require(_0x4b4152(0x149))):typeof define==_0x4b4152(0x19a)&&define[_0x4b4152(0xd7)]?define([_0x4b4152(0x10d),_0x4b4152(0xff),'@univerjs/core',_0x4b4152(0x126),'@univerjs/sheets-ui',_0x4b4152(0x196),_0x4b4152(0x165),_0x4b4152(0x122),_0x4b4152(0x118),_0x4b4152(0x145),_0x4b4152(0xd9),_0x4b4152(0x149)],_0x232923):(_0x17bed8=typeof globalThis<'u'?globalThis:_0x17bed8||self,_0x232923(_0x17bed8[_0x4b4152(0x172)]={},_0x17bed8[_0x4b4152(0x168)],_0x17bed8['UniverCore'],_0x17bed8[_0x4b4152(0x14a)],_0x17bed8['UniverSheetsUi'],_0x17bed8[_0x4b4152(0x1af)],_0x17bed8[_0x4b4152(0x13f)],_0x17bed8['UniverDesign'],_0x17bed8[_0x4b4152(0x13f)],_0x17bed8[_0x4b4152(0x1a6)],_0x17bed8['rxjs'],_0x17bed8['rxjs'][_0x4b4152(0x17a)]));}(this,function(_0x9d65a9,_0x86b772,_0x316aa6,_0x1e2386,_0x22fe0a,_0x3dd8a2,_0x4ada9b,_0x47873f,_0x1a47e4,_0x282f28,_0xc3d7ef,_0x546085){'use strict';var _0x5c1d3b=_0x3394;var _0x1703f3=Object['defineProperty'],_0x45186c=(_0x12f8b9,_0xccc00c,_0x164d8f)=>_0xccc00c in _0x12f8b9?_0x1703f3(_0x12f8b9,_0xccc00c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x164d8f}):_0x12f8b9[_0xccc00c]=_0x164d8f,_0x114bd5=(_0x3e1d63,_0x2aed11,_0x1e7b31)=>_0x45186c(_0x3e1d63,typeof _0x2aed11!=_0x5c1d3b(0x1b5)?_0x2aed11+'':_0x2aed11,_0x1e7b31);const _0x4de99d=_0x5c1d3b(0x130),_0x4bd88c={};class _0x5baadc extends _0x316aa6[_0x5c1d3b(0xe2)]{constructor(){var _0x448aed=_0x5c1d3b;super(...arguments),_0x114bd5(this,_0x448aed(0x129),new Set()),_0x114bd5(this,_0x448aed(0x137),new Set());}[_0x5c1d3b(0x141)](_0x195f53){var _0x49b8bb=_0x5c1d3b;return this[_0x49b8bb(0x129)][_0x49b8bb(0x17c)](_0x195f53),_0x316aa6[_0x49b8bb(0x179)](()=>this[_0x49b8bb(0x129)][_0x49b8bb(0x1bf)](_0x195f53));}[_0x5c1d3b(0xf7)](_0x47d323){var _0x589e9c=_0x5c1d3b;return this[_0x589e9c(0x137)][_0x589e9c(0x17c)](_0x47d323),_0x316aa6['toDisposable'](()=>this[_0x589e9c(0x137)][_0x589e9c(0x1bf)](_0x47d323));}['shouldShareOperation'](_0x29cab0){var _0x11f00c=_0x5c1d3b;return this[_0x11f00c(0x129)][_0x11f00c(0x156)](_0x29cab0);}[_0x5c1d3b(0xe0)](_0x5307d0){var _0x26c055=_0x5c1d3b;return Array[_0x26c055(0xdd)](this['_reporters'])['map'](_0x95d92f=>_0x95d92f(_0x5307d0));}}var _0x23e466=Object[_0x5c1d3b(0x146)],_0x3a41a9=(_0x5e1eba,_0x279218,_0xc758dd,_0x5b08ab)=>{var _0x20a0e8=_0x5c1d3b;for(var _0x55d357=_0x5b08ab>0x1?void 0x0:_0x5b08ab?_0x23e466(_0x279218,_0xc758dd):_0x279218,_0x4f9cf0=_0x5e1eba[_0x20a0e8(0x1a4)]-0x1,_0x528af3;_0x4f9cf0>=0x0;_0x4f9cf0--)(_0x528af3=_0x5e1eba[_0x4f9cf0])&&(_0x55d357=_0x528af3(_0x55d357)||_0x55d357);return _0x55d357;},_0x5d657f=(_0x513181,_0x59865d)=>(_0x2b456c,_0x3a31a0)=>_0x59865d(_0x2b456c,_0x3a31a0,_0x513181);let _0x57d48f=class extends _0x316aa6['Disposable']{constructor(_0x477f7e){var _0x1c181e=_0x5c1d3b;super(),this[_0x1c181e(0x15e)]=_0x477f7e,this[_0x1c181e(0x128)]();}[_0x5c1d3b(0x128)](){var _0x35c376=_0x5c1d3b;[_0x22fe0a[_0x35c376(0x12c)]['id'],_0x22fe0a[_0x35c376(0xce)]['id'],_0x1e2386[_0x35c376(0xef)]['id']][_0x35c376(0x1bb)](_0x39c3a9=>{var _0x452eff=_0x35c376;this[_0x452eff(0x110)](this[_0x452eff(0x15e)]['registerSharedOperation'](_0x39c3a9));});}};_0x57d48f=_0x3a41a9([_0x5d657f(0x0,_0x316aa6[_0x5c1d3b(0x187)](_0x5baadc))],_0x57d48f);var _0x127126=function(){var _0xab64cf=_0x5c1d3b;return _0x127126=Object['assign']||function(_0x493dab){var _0x2a670f=_0x3394;for(var _0x23917c,_0x5843aa=0x1,_0x192a88=arguments[_0x2a670f(0x1a4)];_0x5843aa<_0x192a88;_0x5843aa++){_0x23917c=arguments[_0x5843aa];for(var _0x4a1caf in _0x23917c)Object[_0x2a670f(0x111)][_0x2a670f(0x158)][_0x2a670f(0x133)](_0x23917c,_0x4a1caf)&&(_0x493dab[_0x4a1caf]=_0x23917c[_0x4a1caf]);}return _0x493dab;},_0x127126[_0xab64cf(0xf0)](this,arguments);},_0x48e15f=function(_0x1d0a03,_0x35be50){var _0x37082c=_0x5c1d3b,_0x534f61={};for(var _0x24fbc0 in _0x1d0a03)Object[_0x37082c(0x111)][_0x37082c(0x158)][_0x37082c(0x133)](_0x1d0a03,_0x24fbc0)&&_0x35be50[_0x37082c(0x10f)](_0x24fbc0)<0x0&&(_0x534f61[_0x24fbc0]=_0x1d0a03[_0x24fbc0]);if(_0x1d0a03!=null&&typeof Object[_0x37082c(0x1b9)]==_0x37082c(0x19a)){for(var _0x29f182=0x0,_0x24fbc0=Object[_0x37082c(0x1b9)](_0x1d0a03);_0x29f182<_0x24fbc0[_0x37082c(0x1a4)];_0x29f182++)_0x35be50['indexOf'](_0x24fbc0[_0x29f182])<0x0&&Object[_0x37082c(0x111)][_0x37082c(0xe3)]['call'](_0x1d0a03,_0x24fbc0[_0x29f182])&&(_0x534f61[_0x24fbc0[_0x29f182]]=_0x1d0a03[_0x24fbc0[_0x29f182]]);}return _0x534f61;},_0x46ab69=_0x1a47e4['forwardRef'](function(_0x59c714,_0x459695){var _0x2fd4ea=_0x5c1d3b,_0x1a5ea0=_0x59c714[_0x2fd4ea(0x178)],_0x13dc18=_0x59c714['id'],_0x1cbfa7=_0x59c714[_0x2fd4ea(0x134)],_0x1525d0=_0x59c714[_0x2fd4ea(0x188)],_0x523fec=_0x48e15f(_0x59c714,[_0x2fd4ea(0x178),'id',_0x2fd4ea(0x134),_0x2fd4ea(0x188)]),_0x489684=_0x2fd4ea(0x197)[_0x2fd4ea(0x153)](_0x13dc18,'\x20')[_0x2fd4ea(0x153)](_0x1cbfa7||'')[_0x2fd4ea(0x116)](),_0x46ed0e=_0x1a47e4[_0x2fd4ea(0x15f)]('_'[_0x2fd4ea(0x153)](_0x2a2ba0()));return _0x4940cd(_0x1a5ea0,''[_0x2fd4ea(0x153)](_0x13dc18),{'defIds':_0x1a5ea0[_0x2fd4ea(0x193)],'idSuffix':_0x46ed0e[_0x2fd4ea(0xf1)]},_0x127126({'ref':_0x459695,'className':_0x489684},_0x523fec),_0x1525d0);});function _0x4940cd(_0x3e8a66,_0x506e48,_0xf68342,_0x146673,_0x883ea8){var _0x3a9c79=_0x5c1d3b;return _0x1a47e4[_0x3a9c79(0x162)](_0x3e8a66[_0x3a9c79(0x199)],_0x127126(_0x127126({'key':_0x506e48},_0x553663(_0x3e8a66,_0xf68342,_0x883ea8)),_0x146673),(_0x2acc33(_0x3e8a66,_0xf68342)['children']||[])['map'](function(_0x2f88a5,_0x47ea11){var _0x1b598a=_0x3a9c79;return _0x4940cd(_0x2f88a5,''[_0x1b598a(0x153)](_0x506e48,'-')['concat'](_0x3e8a66[_0x1b598a(0x199)],'-')[_0x1b598a(0x153)](_0x47ea11),_0xf68342,void 0x0,_0x883ea8);}));}function _0x553663(_0x51e834,_0x4b2038,_0x42fbb3){var _0x17426a=_0x5c1d3b,_0x113d8c=_0x127126({},_0x51e834[_0x17426a(0x1a1)]);_0x42fbb3!=null&&_0x42fbb3[_0x17426a(0x12e)]&&_0x113d8c[_0x17426a(0xcb)]==='colorChannel1'&&(_0x113d8c[_0x17426a(0xcb)]=_0x42fbb3['colorChannel1']),_0x51e834[_0x17426a(0x199)]===_0x17426a(0x18e)&&_0x113d8c['id']&&(_0x113d8c['id']=_0x113d8c['id']+_0x4b2038[_0x17426a(0x177)]),Object[_0x17426a(0x1a9)](_0x113d8c)[_0x17426a(0x1bb)](function(_0x22b455){var _0x3ef4da=_0x17426a,_0x3fd6bd=_0x22b455[0x0],_0x4d34f5=_0x22b455[0x1];_0x3fd6bd===_0x3ef4da(0x18e)&&typeof _0x4d34f5==_0x3ef4da(0x131)&&(_0x113d8c[_0x3fd6bd]=_0x4d34f5[_0x3ef4da(0xec)](/url\(#(.*)\)/,_0x3ef4da(0xd4)[_0x3ef4da(0x153)](_0x4b2038[_0x3ef4da(0x177)],')')));});var _0x7a34bf=_0x4b2038[_0x17426a(0x193)];return!_0x7a34bf||_0x7a34bf[_0x17426a(0x1a4)]===0x0||(_0x51e834[_0x17426a(0x199)]===_0x17426a(0x112)&&_0x113d8c[_0x17426a(0x147)]&&(_0x113d8c[_0x17426a(0x147)]=_0x113d8c[_0x17426a(0x147)]+_0x4b2038[_0x17426a(0x177)]),Object['entries'](_0x113d8c)[_0x17426a(0x1bb)](function(_0x5a6595){var _0x25883e=_0x17426a,_0xfd0f40=_0x5a6595[0x0],_0x5803e8=_0x5a6595[0x1];typeof _0x5803e8==_0x25883e(0x131)&&(_0x113d8c[_0xfd0f40]=_0x5803e8[_0x25883e(0xec)](/url\(#(.*)\)/,_0x25883e(0xd4)[_0x25883e(0x153)](_0x4b2038['idSuffix'],')')));})),_0x113d8c;}function _0x2acc33(_0x45cdb7,_0x3ba615){var _0x2d2363=_0x5c1d3b,_0x6d2228,_0x789492=_0x3ba615[_0x2d2363(0x193)];return!_0x789492||_0x789492[_0x2d2363(0x1a4)]===0x0?_0x45cdb7:_0x45cdb7[_0x2d2363(0x199)]===_0x2d2363(0xfe)&&(!((_0x6d2228=_0x45cdb7[_0x2d2363(0x11b)])===null||_0x6d2228===void 0x0)&&_0x6d2228[_0x2d2363(0x1a4)])?_0x127126(_0x127126({},_0x45cdb7),{'children':_0x45cdb7['children'][_0x2d2363(0x182)](function(_0x5dd6d1){var _0x22b15f=_0x2d2363;return typeof _0x5dd6d1['attrs']['id']==_0x22b15f(0x131)&&_0x789492&&_0x789492[_0x22b15f(0x16d)](_0x5dd6d1[_0x22b15f(0x1a1)]['id'])?_0x127126(_0x127126({},_0x5dd6d1),{'attrs':_0x127126(_0x127126({},_0x5dd6d1[_0x22b15f(0x1a1)]),{'id':_0x5dd6d1[_0x22b15f(0x1a1)]['id']+_0x3ba615['idSuffix']})}):_0x5dd6d1;})}):_0x45cdb7;}function _0x2a2ba0(){var _0x6012e9=_0x5c1d3b;return Math[_0x6012e9(0x1be)]()[_0x6012e9(0x14d)](0x24)['substring'](0x2,0x8);}_0x46ab69[_0x5c1d3b(0x11a)]=_0x5c1d3b(0x16c);var _0x15adc1={'tag':_0x5c1d3b(0x100),'attrs':{'xmlns':_0x5c1d3b(0x16f),'fill':_0x5c1d3b(0x18c),'viewBox':_0x5c1d3b(0x109),'width':_0x5c1d3b(0x10c),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5c1d3b(0x148),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x5c1d3b(0xe9),'attrs':{'fill':_0x5c1d3b(0x148),'d':_0x5c1d3b(0x144),'fillRule':_0x5c1d3b(0x104),'clipRule':_0x5c1d3b(0x104)}}]},_0x4c6420=_0x1a47e4[_0x5c1d3b(0x16e)](function(_0x120e61,_0x47d8b1){var _0x415c33=_0x5c1d3b;return _0x1a47e4['createElement'](_0x46ab69,Object[_0x415c33(0x119)]({},_0x120e61,{'id':_0x415c33(0xd8),'ref':_0x47d8b1,'icon':_0x15adc1}));});_0x4c6420[_0x5c1d3b(0x11a)]=_0x5c1d3b(0xdb);var _0x462ccf=Object[_0x5c1d3b(0x146)],_0x2d5a8a=(_0x39f160,_0x2d8e3b,_0x234d79,_0x28330d)=>{var _0x1d8531=_0x5c1d3b;for(var _0x316688=_0x28330d>0x1?void 0x0:_0x28330d?_0x462ccf(_0x2d8e3b,_0x234d79):_0x2d8e3b,_0x1ca03c=_0x39f160[_0x1d8531(0x1a4)]-0x1,_0x1bfe5b;_0x1ca03c>=0x0;_0x1ca03c--)(_0x1bfe5b=_0x39f160[_0x1ca03c])&&(_0x316688=_0x1bfe5b(_0x316688)||_0x316688);return _0x316688;},_0x7f39df=(_0x6d7da4,_0x506c19)=>(_0xdce870,_0x944f32)=>_0x506c19(_0xdce870,_0x944f32,_0x6d7da4);_0x9d65a9[_0x5c1d3b(0x12b)]=class extends _0x316aa6[_0x5c1d3b(0x171)]{constructor(_0x58d228,_0x31152c,_0xd3acac){var _0x461fd0=_0x5c1d3b;super(),_0x114bd5(this,_0x461fd0(0x19e),new Map()),(this[_0x461fd0(0x198)]=_0x58d228,this['_injector']=_0x31152c,this[_0x461fd0(0x159)]=_0xd3acac,this['_init']());}async[_0x5c1d3b(0xf5)](_0x5d3d0f){var _0x3b9059=_0x5c1d3b;return this[_0x3b9059(0x19e)]['has'](_0x5d3d0f)||await this[_0x3b9059(0x155)](_0x5d3d0f),this[_0x3b9059(0x19e)][_0x3b9059(0x108)](_0x5d3d0f);}[_0x5c1d3b(0x128)](){var _0x1126a1=_0x5c1d3b;this[_0x1126a1(0x198)]['getTypeOfUnitAdded$'](_0x316aa6['UniverInstanceType']['UNIVER_SHEET'])[_0x1126a1(0x192)](_0x546085[_0x1126a1(0x14e)](this['dispose$']))[_0x1126a1(0xd1)](async _0x4fd9c9=>{var _0x562ad2=_0x1126a1;const _0x5c5f19=_0x4fd9c9['getUnitId']();this['_entities'][_0x562ad2(0x156)](_0x5c5f19)||this[_0x562ad2(0x155)](_0x5c5f19);}),this[_0x1126a1(0x198)]['getTypeOfUnitDisposed$'](_0x316aa6[_0x1126a1(0x151)][_0x1126a1(0x17f)])[_0x1126a1(0x192)](_0x546085[_0x1126a1(0x14e)](this['dispose$']))[_0x1126a1(0xd1)](_0x175969=>{var _0x1575ad=_0x1126a1;const _0x277a0f=_0x175969[_0x1575ad(0x1a7)](),_0x588093=this[_0x1575ad(0x19e)]['get'](_0x277a0f);_0x588093==null||_0x588093['dispose']();});}async[_0x5c1d3b(0x155)](_0x3f866a){var _0x11b43f=_0x5c1d3b;const _0x445ad3=await this[_0x11b43f(0x159)][_0x11b43f(0x170)](_0x3f866a),_0x2b2937=this[_0x11b43f(0x13e)][_0x11b43f(0x180)](_0x9d65a9[_0x11b43f(0x169)],_0x3f866a,_0x445ad3);return _0x2b2937[_0x11b43f(0x138)](),this[_0x11b43f(0x19e)][_0x11b43f(0x14b)](_0x3f866a,_0x2b2937),_0x2b2937;}},_0x9d65a9['LiveShareController']=_0x2d5a8a([_0x7f39df(0x0,_0x316aa6['IUniverInstanceService']),_0x7f39df(0x1,_0x316aa6[_0x5c1d3b(0x187)](_0x316aa6[_0x5c1d3b(0xcd)])),_0x7f39df(0x2,_0x316aa6[_0x5c1d3b(0x187)](_0x86b772['CollaborationSessionService']))],_0x9d65a9[_0x5c1d3b(0x12b)]);var _0x38e00d=(_0x365640=>(_0x365640[_0x5c1d3b(0x113)]=_0x5c1d3b(0x120),_0x365640[_0x5c1d3b(0x17b)]=_0x5c1d3b(0xfc),_0x365640[_0x5c1d3b(0x1c0)]=_0x5c1d3b(0x15c),_0x365640[_0x5c1d3b(0x15b)]='not-following',_0x365640[_0x5c1d3b(0x1b8)]='presenting',_0x365640))(_0x38e00d||{});const _0x4ae4f7=_0x5c1d3b(0x19c),_0x55dfbc=0xc8;_0x9d65a9[_0x5c1d3b(0x169)]=class extends _0x316aa6[_0x5c1d3b(0x171)]{constructor(_0x389dcd,_0x2ff69b,_0x5abef3,_0x918d3,_0x4bc630){var _0x587da0=_0x5c1d3b;super(),_0x114bd5(this,_0x587da0(0x136),new _0xc3d7ef['BehaviorSubject'](_0x587da0(0xfc))),_0x114bd5(this,_0x587da0(0x176),this[_0x587da0(0x136)]['asObservable']()),_0x114bd5(this,_0x587da0(0x128),!0x1),_0x114bd5(this,'_commandDisposable',null),_0x114bd5(this,_0x587da0(0x1b0),null),(this[_0x587da0(0x121)]=_0x389dcd,this[_0x587da0(0x1a3)]=_0x2ff69b,this['_configService']=_0x5abef3,this[_0x587da0(0x15e)]=_0x918d3,this[_0x587da0(0xfa)]=_0x4bc630);}get[_0x5c1d3b(0x186)](){var _0xefce6f=_0x5c1d3b;return this[_0xefce6f(0x136)][_0xefce6f(0xfd)]();}[_0x5c1d3b(0x125)](){var _0x2cb2cb=_0x5c1d3b,_0x29f1d5;(_0x29f1d5=this[_0x2cb2cb(0x191)])==null||_0x29f1d5[_0x2cb2cb(0x125)](),this[_0x2cb2cb(0x136)][_0x2cb2cb(0x184)]('idle'),this['_status$'][_0x2cb2cb(0x106)]();}['init'](){var _0x4271b6=_0x5c1d3b;this[_0x4271b6(0x128)]||(this[_0x4271b6(0x128)]=!0x0,this[_0x4271b6(0x1a3)][_0x4271b6(0xd5)][_0x4271b6(0x192)](_0x546085[_0x4271b6(0x14e)](this[_0x4271b6(0x190)]))[_0x4271b6(0xd1)](_0xfdaec8=>{var _0xefdb64=_0x4271b6;switch(_0xfdaec8){case _0x86b772[_0xefdb64(0x13a)][_0xefdb64(0x113)]:this[_0xefdb64(0x15a)]();break;case _0x86b772[_0xefdb64(0x13a)]['ONLINE']:this[_0xefdb64(0xfb)]();break;}}),this['_collabSession'][_0x4271b6(0x175)][_0x4271b6(0x192)](_0x546085[_0x4271b6(0x14e)](this[_0x4271b6(0x190)]))[_0x4271b6(0xd1)](_0x4eb542=>{var _0x538281=_0x4271b6;const {eventID:_0x6027e9}=_0x4eb542;switch(_0x6027e9){case _0x282f28['CollaborationEvent'][_0x538281(0x1aa)]:this[_0x538281(0x19b)](_0x4eb542);break;case _0x282f28[_0x538281(0x11e)][_0x538281(0xd2)]:this[_0x538281(0x115)](_0x4eb542);break;case _0x282f28[_0x538281(0x11e)][_0x538281(0x13d)]:this[_0x538281(0x161)]();break;case _0x282f28['CollaborationEvent'][_0x538281(0x135)]:this[_0x538281(0x195)](_0x4eb542);break;}}));}['tryStartPresenting'](){var _0x23593e=_0x5c1d3b;this[_0x23593e(0x1a3)][_0x23593e(0xe8)]({'eventID':_0x282f28[_0x23593e(0x11e)][_0x23593e(0x1ab)],'data':{'unitID':this[_0x23593e(0x121)],'userID':this[_0x23593e(0x1a3)][_0x23593e(0x1ae)]()}},this[_0x23593e(0x121)]);}[_0x5c1d3b(0x18d)](){var _0x3be14d=_0x5c1d3b;this[_0x3be14d(0x186)]===_0x3be14d(0x1b3)&&(this['_status$'][_0x3be14d(0x184)]('idle'),this[_0x3be14d(0x1a3)][_0x3be14d(0xe8)]({'eventID':_0x282f28[_0x3be14d(0x11e)][_0x3be14d(0x13d)],'data':{'unitID':this[_0x3be14d(0x121)]}},this[_0x3be14d(0x121)]));}['startFollowing'](){var _0x34bd9a=_0x5c1d3b;this[_0x34bd9a(0x186)]===_0x34bd9a(0x1b6)&&(this[_0x34bd9a(0x136)][_0x34bd9a(0x184)](_0x34bd9a(0x15c)),this['_startFollowing']());}[_0x5c1d3b(0x1ba)](){var _0x547995=_0x5c1d3b;this[_0x547995(0x186)]===_0x547995(0x15c)&&this[_0x547995(0x154)]();}[_0x5c1d3b(0x19b)](_0x5e0e64){var _0xda48cc=_0x5c1d3b;const {presenter:_0x591a61}=_0x5e0e64[_0xda48cc(0x142)],_0x1de12c=this[_0xda48cc(0x1a3)][_0xda48cc(0x1ae)]();this[_0xda48cc(0x1b0)]=_0x591a61,_0x591a61===_0x1de12c?(this[_0xda48cc(0x154)](),this[_0xda48cc(0x152)]()):this[_0xda48cc(0x186)]!==_0xda48cc(0x1b6)&&(this[_0xda48cc(0x1ad)](),this[_0xda48cc(0x163)]());}['_fetchOperations'](){var _0x4abcb0=_0x5c1d3b;const _0x4d179={'eventID':_0x282f28[_0x4abcb0(0x11e)][_0x4abcb0(0x183)]};this[_0x4abcb0(0x1a3)][_0x4abcb0(0xe8)](_0x4d179,this['_unitID']);}[_0x5c1d3b(0x161)](){var _0x480a68=_0x5c1d3b;this[_0x480a68(0x1b0)]=null,this[_0x480a68(0x186)]!==_0x480a68(0x1b3)&&this[_0x480a68(0x19d)]();}['_handleNewChangeSets'](_0x4eda82){var _0x2270b1=_0x5c1d3b;if(this['_status']===_0x2270b1(0x15c)&&this[_0x2270b1(0x1b0)]===_0x4eda82[_0x2270b1(0x142)][_0x2270b1(0x10b)]){const _0x48a574=_0x282f28[_0x2270b1(0xd0)](_0x4eda82['data'])[_0x2270b1(0x123)][_0x2270b1(0x17e)]()[_0x2270b1(0xd3)](_0x7d3a60=>_0x7d3a60['id']===_0x1e2386[_0x2270b1(0x11d)]['id']);if(_0x48a574){const _0x56197b=_0x48a574[_0x2270b1(0x10a)][_0x2270b1(0x132)],_0x2acbd0=_0x48a574[_0x2270b1(0x10a)][_0x2270b1(0x157)]['id'];setTimeout(()=>{var _0x5b514b=_0x2270b1;this['_commandService'][_0x5b514b(0x150)](_0x1e2386[_0x5b514b(0xef)]['id'],{'unitId':_0x56197b,'subUnitId':_0x2acbd0},{'fromCollab':!0x0});});}}}[_0x5c1d3b(0x152)](){var _0x32c24a=_0x5c1d3b;this[_0x32c24a(0x136)][_0x32c24a(0x184)](_0x32c24a(0x1b3));const _0xd05577=new Map(),_0x1c5586=this['_commandDisposable']=new _0x316aa6[(_0x32c24a(0xdc))]();_0x1c5586[_0x32c24a(0x17c)](_0x316aa6[_0x32c24a(0x179)](()=>{var _0x515376=_0x32c24a;_0xd05577[_0x515376(0x1bb)](_0x19098f=>_0x19098f[_0x515376(0x106)]()),_0xd05577['clear']();})),_0x1c5586[_0x32c24a(0x17c)](this[_0x32c24a(0xfa)][_0x32c24a(0x14c)](_0x523049=>{var _0x59aa1f=_0x32c24a,_0x59b961;if(_0x523049[_0x59aa1f(0xeb)]!==_0x316aa6[_0x59aa1f(0xe4)][_0x59aa1f(0x18f)]||!this['_liveShareService']['shouldShareOperation'](_0x523049['id']))return;const {id:_0x699924}=_0x523049;let _0x558f62;_0xd05577['has'](_0x699924)?_0x558f62=_0xd05577[_0x59aa1f(0x108)](_0x699924):(_0x558f62=new _0xc3d7ef['Subject'](),_0xd05577[_0x59aa1f(0x14b)](_0x699924,_0x558f62),_0x558f62[_0x59aa1f(0x192)](_0x546085['throttleTime']((_0x59b961=this[_0x59aa1f(0x15d)][_0x59aa1f(0x1a0)](_0x4ae4f7))!=null?_0x59b961:_0x55dfbc,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59aa1f(0xd1)](_0x98ff3e=>{var _0x530374=_0x59aa1f;this[_0x530374(0x1a3)][_0x530374(0xe8)]({'eventID':_0x282f28[_0x530374(0x11e)][_0x530374(0xd2)],'data':{'unitID':this[_0x530374(0x121)],'operations':{[_0x98ff3e['id']]:{'id':_0x98ff3e['id'],'params':JSON[_0x530374(0x139)](_0x98ff3e[_0x530374(0x10a)])}}}},this[_0x530374(0x121)]);})),_0x558f62[_0x59aa1f(0x184)](_0x523049);})),this[_0x32c24a(0x15e)]['getInitialStates'](this[_0x32c24a(0x121)])['forEach'](_0x369e4b=>this['_collabSession'][_0x32c24a(0xe8)]({'eventID':_0x282f28['CollaborationEvent'][_0x32c24a(0xd2)],'data':{'unitID':this['_unitID'],'operations':{[_0x369e4b['id']]:{'id':_0x369e4b['id'],'params':JSON[_0x32c24a(0x139)](_0x369e4b[_0x32c24a(0x10a)])}}}},this['_unitID']));}[_0x5c1d3b(0x1ad)](){var _0x10bdf8=_0x5c1d3b,_0x4b1df0;this[_0x10bdf8(0x136)][_0x10bdf8(0x184)]('idle'),(_0x4b1df0=this['_commandDisposable'])==null||_0x4b1df0[_0x10bdf8(0x125)](),this[_0x10bdf8(0x191)]=null;}[_0x5c1d3b(0x163)](){var _0x412d19=_0x5c1d3b,_0x3dcc11;(_0x3dcc11=this[_0x412d19(0x191)])==null||_0x3dcc11[_0x412d19(0x125)](),this[_0x412d19(0x136)]['next'](_0x412d19(0x15c));}['_beIdle'](){var _0xd4d42b=_0x5c1d3b,_0x13f36;this['_status$'][_0xd4d42b(0x184)]('idle'),(_0x13f36=this[_0xd4d42b(0x191)])==null||_0x13f36[_0xd4d42b(0x125)](),this[_0xd4d42b(0x191)]=null;}['_stopFollowing'](){var _0x52930b=_0x5c1d3b,_0x29efc9;this[_0x52930b(0x136)][_0x52930b(0x184)](_0x52930b(0x1b6)),(_0x29efc9=this['_commandDisposable'])==null||_0x29efc9[_0x52930b(0x125)]();}[_0x5c1d3b(0x115)](_0x5c39ef){var _0x23f844=_0x5c1d3b;if([_0x23f844(0x1b3),_0x23f844(0x1b6),_0x23f844(0x120)][_0x23f844(0x16d)](this[_0x23f844(0x186)])||!_0x5c39ef['data'][_0x23f844(0x105)]||_0x5c39ef[_0x23f844(0x142)][_0x23f844(0x105)]===this[_0x23f844(0x1a3)][_0x23f844(0x1ae)]())return;this['_status']===_0x23f844(0xfc)&&this[_0x23f844(0x163)]();const _0x582305=_0x5c39ef[_0x23f844(0x142)][_0x23f844(0xee)];Object[_0x23f844(0x164)](_0x582305)['forEach'](_0x20db9c=>{var _0x50163a=_0x23f844;this[_0x50163a(0xfa)][_0x50163a(0x150)](_0x20db9c['id'],_0x20db9c[_0x50163a(0x10a)]?JSON[_0x50163a(0x14f)](_0x20db9c[_0x50163a(0x10a)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x2cab58=_0x5c1d3b,_0x2e57ca;this[_0x2cab58(0x136)][_0x2cab58(0x184)](_0x2cab58(0x120)),(_0x2e57ca=this['_commandDisposable'])==null||_0x2e57ca[_0x2cab58(0x125)]();}[_0x5c1d3b(0xfb)](){var _0x5a3298=_0x5c1d3b;this[_0x5a3298(0x136)][_0x5a3298(0x184)](_0x5a3298(0xfc)),this[_0x5a3298(0x140)]();}},_0x9d65a9['LiveShareCoordinator']=_0x2d5a8a([_0x7f39df(0x2,_0x316aa6[_0x5c1d3b(0x12f)]),_0x7f39df(0x3,_0x316aa6[_0x5c1d3b(0x187)](_0x5baadc)),_0x7f39df(0x4,_0x316aa6['ICommandService'])],_0x9d65a9[_0x5c1d3b(0x169)]);function _0x4400d0(){var _0x235692=_0x5c1d3b;const _0x2ff5de=_0x3dd8a2['useDependency'](_0x9d65a9[_0x235692(0x12b)]),_0x284a88=_0x3dd8a2[_0x235692(0x1b4)](_0x316aa6[_0x235692(0x160)]),_0xed7c08=_0x3dd8a2['useObservable'](()=>_0x284a88[_0x235692(0x127)](_0x316aa6['UniverInstanceType'][_0x235692(0x17f)]),void 0x0,!0x1,[]),[_0x431cf8,_0x236d3a]=_0x1a47e4[_0x235692(0xf8)](null),[_0x403828,_0x27c204]=_0x1a47e4[_0x235692(0xf8)](_0x38e00d[_0x235692(0x17b)]),_0x55c451=_0x1a47e4[_0x235692(0x15f)](null);return _0x1a47e4[_0x235692(0xe1)](()=>(_0xed7c08&&_0x2ff5de[_0x235692(0xf5)](_0xed7c08[_0x235692(0x1a7)]())[_0x235692(0x13b)](_0x2570e6=>{var _0x5536c8=_0x235692;_0x236d3a(_0x2570e6),_0x55c451['current']=_0x2570e6[_0x5536c8(0x176)][_0x5536c8(0xd1)](_0x117d86=>{_0x27c204(_0x117d86);});}),()=>{var _0x285cfd=_0x235692,_0x4b63e2;(_0x4b63e2=_0x55c451[_0x285cfd(0xf1)])==null||_0x4b63e2[_0x285cfd(0x12a)](),_0x55c451['current']=null;}),[_0xed7c08,_0x2ff5de]),_0x431cf8?_0x4ada9b[_0x235692(0xdf)](_0x47873f[_0x235692(0xf4)],{'align':_0x235692(0x103),'disabled':_0x403828===_0x38e00d[_0x235692(0x113)],'className':_0x235692(0x181),'overlay':_0x4ada9b[_0x235692(0xdf)](_0x40051e,{'status':_0x403828,'coordinator':_0x431cf8}),'children':_0x4ada9b[_0x235692(0xdf)](_0x235692(0x189),{'className':_0x47873f[_0x235692(0x11c)](_0x235692(0xf3),{'univer-cursor-not-allowed':_0x403828===_0x38e00d[_0x235692(0x113)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x403828!==_0x38e00d[_0x235692(0x113)]}),'type':_0x235692(0x189),'children':_0x4ada9b['jsx'](_0x4c6420,{'className':_0x235692(0x11f)})})}):null;}function _0x40051e(_0x4ebbd4){var _0x22b721=_0x5c1d3b;const {status:_0x184de8,coordinator:_0x37a48a}=_0x4ebbd4;switch(_0x184de8){case _0x38e00d['IDLE']:return _0x4ada9b[_0x22b721(0xdf)](_0x3f302c,{'coordinator':_0x37a48a});case _0x38e00d[_0x22b721(0x1c0)]:return _0x4ada9b[_0x22b721(0xdf)](_0x3bfef9,{'coordinator':_0x37a48a});case _0x38e00d[_0x22b721(0x15b)]:return _0x4ada9b[_0x22b721(0xdf)](_0x264b1b,{'coordinator':_0x37a48a});case _0x38e00d[_0x22b721(0x113)]:return _0x4ada9b[_0x22b721(0xdf)](_0x40c5ea,{});case _0x38e00d['PRESENTING']:return _0x4ada9b[_0x22b721(0xdf)](_0x1efcb9,{'coordinator':_0x37a48a});default:return null;}}function _0x3f302c(_0x44b591){var _0x13ede0=_0x5c1d3b;const {coordinator:_0x411bb6}=_0x44b591;return _0x4ada9b[_0x13ede0(0x19f)](_0x4ada9b['Fragment'],{'children':[_0x4ada9b[_0x13ede0(0xdf)](_0x13ede0(0x101),{'className':_0x13ede0(0x17d),'children':'Present\x20this\x20document'}),_0x4ada9b['jsx'](_0x47873f[_0x13ede0(0x166)],{'onClick':()=>_0x411bb6['tryStartPresenting'](),'children':_0x13ede0(0x174)})]});}function _0x3bfef9(_0x28c9cf){var _0x10f961=_0x5c1d3b;const {coordinator:_0x4fc1cd}=_0x28c9cf;return _0x4ada9b['jsxs'](_0x4ada9b[_0x10f961(0xde)],{'children':[_0x4ada9b[_0x10f961(0xdf)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x10f961(0x16a)}),_0x4ada9b[_0x10f961(0xdf)](_0x47873f['Button'],{'onClick':()=>_0x4fc1cd[_0x10f961(0x1ba)](),'children':_0x10f961(0x13c)})]});}function _0x264b1b(_0x503b86){var _0x17b31f=_0x5c1d3b;const {coordinator:_0x31a9ed}=_0x503b86;return _0x4ada9b['jsxs'](_0x4ada9b[_0x17b31f(0xde)],{'children':[_0x4ada9b[_0x17b31f(0xdf)]('div',{'className':_0x17b31f(0x17d),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4ada9b[_0x17b31f(0xdf)](_0x47873f[_0x17b31f(0x166)],{'variant':'text','onClick':()=>_0x31a9ed[_0x17b31f(0xc9)](),'children':_0x17b31f(0x117)})]});}function _0x1efcb9(_0x56f54b){var _0x191c3d=_0x5c1d3b;const {coordinator:_0x1f8a97}=_0x56f54b;return _0x4ada9b[_0x191c3d(0x19f)](_0x4ada9b['Fragment'],{'children':[_0x4ada9b['jsx'](_0x191c3d(0x101),{'className':_0x191c3d(0x17d),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4ada9b[_0x191c3d(0xdf)](_0x47873f[_0x191c3d(0x166)],{'variant':_0x191c3d(0xd6),'onClick':()=>_0x1f8a97[_0x191c3d(0x18d)](),'children':_0x191c3d(0x1a2)})]});}function _0x40c5ea(){var _0x2c990d=_0x5c1d3b;return _0x4ada9b[_0x2c990d(0xdf)](_0x4ada9b['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x824deb=Object['getOwnPropertyDescriptor'],_0x4a001b=(_0x69ceb5,_0x6977e2,_0x5791ae,_0xd3850)=>{for(var _0x32de74=_0xd3850>0x1?void 0x0:_0xd3850?_0x824deb(_0x6977e2,_0x5791ae):_0x6977e2,_0x898f6=_0x69ceb5['length']-0x1,_0x51fedf;_0x898f6>=0x0;_0x898f6--)(_0x51fedf=_0x69ceb5[_0x898f6])&&(_0x32de74=_0x51fedf(_0x32de74)||_0x32de74);return _0x32de74;},_0x325caf=(_0x57977f,_0x35cd39)=>(_0x229bec,_0x3060e1)=>_0x35cd39(_0x229bec,_0x3060e1,_0x57977f);_0x9d65a9[_0x5c1d3b(0xda)]=class extends _0x316aa6['Disposable']{constructor(_0x2b5dca,_0x552281){var _0x1e5be3=_0x5c1d3b;super(),this[_0x1e5be3(0x13e)]=_0x2b5dca,this[_0x1e5be3(0x18a)]=_0x552281,this[_0x1e5be3(0x143)]();}[_0x5c1d3b(0x143)](){var _0x46b636=_0x5c1d3b;this[_0x46b636(0x110)](this[_0x46b636(0x18a)][_0x46b636(0x16b)](_0x3dd8a2[_0x46b636(0x1a8)][_0x46b636(0x1bc)],()=>_0x3dd8a2[_0x46b636(0x10e)](_0x4400d0,this[_0x46b636(0x13e)])));}},_0x9d65a9[_0x5c1d3b(0xda)]=_0x4a001b([_0x325caf(0x0,_0x316aa6['Inject'](_0x316aa6[_0x5c1d3b(0xcd)])),_0x325caf(0x1,_0x3dd8a2['IUIPartsService'])],_0x9d65a9[_0x5c1d3b(0xda)]);var _0x51f9a9=Object[_0x5c1d3b(0xe6)],_0x1722e0=Object['getOwnPropertyDescriptor'],_0x2d519c=(_0x54ca43,_0xc7c6b4,_0xbd63c8)=>_0xc7c6b4 in _0x54ca43?_0x51f9a9(_0x54ca43,_0xc7c6b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbd63c8}):_0x54ca43[_0xc7c6b4]=_0xbd63c8,_0x19f6db=(_0x3e387a,_0x11ed07,_0x1ab967,_0x28b852)=>{var _0x38be7d=_0x5c1d3b;for(var _0x231291=_0x28b852>0x1?void 0x0:_0x28b852?_0x1722e0(_0x11ed07,_0x1ab967):_0x11ed07,_0x1a85ae=_0x3e387a[_0x38be7d(0x1a4)]-0x1,_0x101fcc;_0x1a85ae>=0x0;_0x1a85ae--)(_0x101fcc=_0x3e387a[_0x1a85ae])&&(_0x231291=_0x101fcc(_0x231291)||_0x231291);return _0x231291;},_0x34a180=(_0x30f5b3,_0x4b6a22)=>(_0x22ec79,_0x499a02)=>_0x4b6a22(_0x22ec79,_0x499a02,_0x30f5b3),_0x64ea99=(_0x4fed24,_0x1413a8,_0x55b08c)=>_0x2d519c(_0x4fed24,typeof _0x1413a8!=_0x5c1d3b(0x1b5)?_0x1413a8+'':_0x1413a8,_0x55b08c);const _0x28a12f='UNIVER_LIVE_SHARE_PLUGIN';_0x9d65a9[_0x5c1d3b(0x102)]=class extends _0x316aa6[_0x5c1d3b(0x167)]{constructor(_0x4aca74=_0x4bd88c,_0x5c9ea4,_0x4e70dc){var _0x3132b6=_0x5c1d3b;super(),this['_config']=_0x4aca74,this['_injector']=_0x5c9ea4,this[_0x3132b6(0x15d)]=_0x4e70dc;const {..._0x53886b}=_0x316aa6[_0x3132b6(0x1c1)]({},_0x4bd88c,this[_0x3132b6(0x18b)]);this[_0x3132b6(0x15d)][_0x3132b6(0xe7)](_0x4de99d,_0x53886b);}['onStarting'](){var _0x71b70c=_0x5c1d3b;_0x316aa6['registerDependencies'](this[_0x71b70c(0x13e)],_0x316aa6[_0x71b70c(0x107)]([[_0x5baadc],[_0x9d65a9[_0x71b70c(0x12b)]],[_0x57d48f],[_0x9d65a9[_0x71b70c(0xda)]]],this[_0x71b70c(0x18b)][_0x71b70c(0xed)])),_0x316aa6['touchDependencies'](this[_0x71b70c(0x13e)],[[_0x57d48f]]);}[_0x5c1d3b(0xe5)](){var _0x39dcd4=_0x5c1d3b;_0x316aa6[_0x39dcd4(0xcc)](this[_0x39dcd4(0x13e)],[[_0x9d65a9[_0x39dcd4(0xda)]]]);}},_0x64ea99(_0x9d65a9['UniverLiveSharePlugin'],_0x5c1d3b(0xeb),_0x316aa6['UniverInstanceType']['UNIVER_UNKNOWN']),_0x64ea99(_0x9d65a9[_0x5c1d3b(0x102)],'pluginName',_0x28a12f),_0x9d65a9[_0x5c1d3b(0x102)]=_0x19f6db([_0x316aa6[_0x5c1d3b(0xf2)](_0x86b772[_0x5c1d3b(0x185)]),_0x34a180(0x1,_0x316aa6[_0x5c1d3b(0x187)](_0x316aa6[_0x5c1d3b(0xcd)])),_0x34a180(0x2,_0x316aa6[_0x5c1d3b(0x12f)])],_0x9d65a9['UniverLiveSharePlugin']),_0x9d65a9['LiveShare']=_0x4400d0,_0x9d65a9[_0x5c1d3b(0xf9)]=_0x5baadc,_0x9d65a9[_0x5c1d3b(0x1b2)]=_0x38e00d,Object[_0x5c1d3b(0xe6)](_0x9d65a9,Symbol[_0x5c1d3b(0x114)],{'value':_0x5c1d3b(0x194)});}));function _0x153c(){var _0x25be8f=['0\x200\x2017\x2017','params','memberID','1em','exports','connectInjector','indexOf','disposeWithMe','prototype','use','OFFLINE','toStringTag','_handleOperation','trim','Start\x20following','react','assign','displayName','children','clsx','InsertSheetMutation','CollaborationEvent','univer-size-4','offline','_unitID','@univerjs/design','mutations','@univerjs/sheets-ui','dispose','@univerjs/sheets','getCurrentTypeOfUnit$','_init','_sharedOperations','unsubscribe','LiveShareController','SetZoomRatioOperation','4443444DwdBWY','colorChannel1','IConfigService','live-share.config','string','unitId','call','className','NEW_CHANGESETS','_status$','_reporters','init','stringify','SessionStatus','then','Stop\x20following','LIVESHARE_TERMINATE','_injector','React','_fetchOperations','registerSharedOperation','data','_mountLiveShare','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','@univerjs-pro/collaboration','getOwnPropertyDescriptor','xlink:href','currentColor','rxjs/operators','UniverSheets','set','onCommandExecuted','toString','takeUntil','parse','executeCommand','UniverInstanceType','_startPresenting','concat','_stopFollowing','_startLiveShareCoordinator','has','sheet','hasOwnProperty','_collabSessionService','_handleOffline','NOT_FOLLOWING','following','_configService','_liveShareService','useRef','IUniverInstanceService','_handleTerminate','createElement','_startFollowing','values','react/jsx-runtime','Button','Plugin','UniverProCollaborationClient','LiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','registerComponent','UniverIcon','includes','forwardRef','http://www.w3.org/2000/svg','requireSession','RxDisposable','UniverProLiveShare','2768210VUpvYu','Start','event$','status$','idSuffix','icon','toDisposable','operators','IDLE','add','univer-mb-3\x20univer-w-full\x20univer-text-sm','reverse','UNIVER_SHEET','createInstance','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','map','LIVESHARE_FETCH_OPERATIONS','next','UniverCollaborationClientPlugin','_status','Inject','extend','button','_uiPartsService','_config','none','stopPresenting','mask','OPERATION','dispose$','_commandDisposable','pipe','defIds','Module','_handleNewChangeSets','@univerjs/ui','univerjs-icon\x20univerjs-icon-','_univerInstanceService','tag','function','_handleNewHost','SAME_OPERATION_SHARE_INTERVAL','_beIdle','_entities','jsxs','getConfig','attrs','Stop\x20presenting','_collabSession','length','1609842hcnUID','UniverProCollaboration','getUnitId','BuiltInUIPart','entries','LIVESHARE_NEW_HOST','LIVESHARE_REQUEST_HOST','26577NCiThO','_stopPresenting','getMemberID','UniverUi','_presenter','2gEFUYQ','LiveShareStatus','presenting','useDependency','symbol','not-following','5900629fXkdzW','PRESENTING','getOwnPropertySymbols','stopFollowing','forEach','HEADER_MENU','583rtrjpU','random','delete','FOLLOWING','merge','object','startFollowing','909010ZRfEJa','fill','touchDependencies','Injector','SetScrollOperation','660762OGxICg','parseProtocolChangeset','subscribe','LIVESHARE_OPERATION','find','url(#$1','sessionStatus$','default','amd','live-share-icon','rxjs','DesktopLiveShareController','LiveShareIcon','DisposableCollection','from','Fragment','jsx','getInitialStates','useEffect','Disposable','propertyIsEnumerable','CommandType','onRendered','defineProperty','setConfig','send','path','4mWTalu','type','replace','override','operations','SetWorksheetActiveOperation','apply','current','DependentOn','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Dropdown','getLiveShareCoordinator','1864MWYuza','registerInitialStateReporter','useState','LiveShareService','_commandService','_handleOnline','idle','getValue','defs','@univerjs-pro/collaboration-client','svg','div','UniverLiveSharePlugin','end','evenodd','presenter','complete','mergeOverrideWithDependencies','get'];_0x153c=function(){return _0x25be8f;};return _0x153c();}
1
+ function _0x20cf(){var _0x2cf59f=['pipe','div','getCurrentTypeOfUnit$','UniverProCollaborationClient','Present\x20this\x20document','dispose$','createInstance','set','asObservable','add','tryStartPresenting','CommandType','onRendered','useState','@univerjs/ui','SessionStatus','className','You\x27re\x20presenting\x20the\x20document','_startPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','override','LiveShareService','UniverCore','init','2038353fQuNGT','@univerjs/core','pluginName','getInitialStates','_commandService','operations','UniverProCollaboration','ONLINE','icon','_handleOperation','_reporters','rxjs/operators','6360330igAbBL','PRESENTING','includes','operators','@univerjs-pro/collaboration','defineProperty','UniverSheetsUi','You\x27are\x20offline.','unsubscribe','10231760wMFAeB','requireSession','delete','xlink:href','DisposableCollection','getOwnPropertySymbols','trim','attrs','stringify','idSuffix','_injector','1588239cjENWl','UniverDesign','startFollowing','getUnitId','Injector','Dropdown','symbol','presenter','memberID','send','parse','998115IostEN','throttleTime','_status','idle','LiveShare','@univerjs/sheets','BehaviorSubject','colorChannel1','stopFollowing','mask','_startLiveShareCoordinator','stopPresenting','forwardRef','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','object','_stopPresenting','_startFollowing','live-share-icon','Start','Stop\x20presenting','disposeWithMe','length','InsertSheetMutation','_univerInstanceService','LiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','toString','_handleTerminate','UniverUi','UNIVER_SHEET','takeUntil','mutations','Plugin','setConfig','displayName','registerSharedOperation','executeCommand','find','presenting','_handleNewChangeSets','string','RxDisposable','_commandDisposable','live-share.config','react','call','clear','params','function','unitId','registerDependencies','681996xYibdf','_stopFollowing','complete','useRef','_status$','toDisposable','UniverInstanceType','_fetchOperations','children','_beIdle','UniverIcon','entries','subscribe','assign','apply','_sharedOperations','concat','replace','toStringTag','type','2Cpcphe','LiveShareStatus','_presenter','Fragment','getLiveShareCoordinator','OPERATION','getOwnPropertyDescriptor','button','getConfig','shouldShareOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','_collabSessionService','OFFLINE','offline','next','default','fill','registerComponent','1em','Inject','3891364vflmsl','url(#$1','React','current','@univerjs/design','UniverCollaborationClientPlugin','jsx','clsx','end','LIVESHARE_TERMINATE','_configService','UniverSheets','tag','jsxs','dispose','_unitID','IUIPartsService','_handleOnline','Disposable','hasOwnProperty','rxjs','propertyIsEnumerable','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','FOLLOWING','LiveShareController','NEW_CHANGESETS','_handleOffline','UniverProLiveShare','indexOf','path','onStarting','currentColor','svg','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','UNIVER_LIVE_SHARE_PLUGIN','ICommandService','_handleNewHost','forEach','http://www.w3.org/2000/svg','You\x27re\x20not\x20following\x20the\x20presenter','getMemberID','createElement','univerjs-icon\x20univerjs-icon-','IUniverInstanceService','LIVESHARE_NEW_HOST','DependentOn','useEffect','IConfigService','24biJgsO','substring','@univerjs-pro/collaboration-client','SetScrollOperation','data','NOT_FOLLOWING','not-following','following','has','Module','extend','_config','IDLE','_mountLiveShare','UNIVER_UNKNOWN','@univerjs/sheets-ui','get','map','UniverLiveSharePlugin','from','SetZoomRatioOperation','evenodd','_entities','text','reverse','_uiPartsService','prototype','_init','defIds','_collabSession','parseProtocolChangeset','touchDependencies','values','Subject','DesktopLiveShareController','Button','event$','_liveShareService','use','CollaborationEvent','LIVESHARE_OPERATION'];_0x20cf=function(){return _0x2cf59f;};return _0x20cf();}function _0x5441(_0x5f31bf,_0x121cbe){var _0x20cf05=_0x20cf();return _0x5441=function(_0x5441a3,_0x443e9c){_0x5441a3=_0x5441a3-0x105;var _0x2c659a=_0x20cf05[_0x5441a3];return _0x2c659a;},_0x5441(_0x5f31bf,_0x121cbe);}(function(_0x266915,_0x3b7aca){var _0x359fb3=_0x5441,_0x4c511d=_0x266915();while(!![]){try{var _0xb85ea9=-parseInt(_0x359fb3(0x171))/0x1*(parseInt(_0x359fb3(0x1b8))/0x2)+parseInt(_0x359fb3(0x146))/0x3+-parseInt(_0x359fb3(0x1cc))/0x4+parseInt(_0x359fb3(0x152))/0x5+-parseInt(_0x359fb3(0x1a4))/0x6+parseInt(_0x359fb3(0x15b))/0x7+parseInt(_0x359fb3(0x105))/0x8*(-parseInt(_0x359fb3(0x166))/0x9);if(_0xb85ea9===_0x3b7aca)break;else _0x4c511d['push'](_0x4c511d['shift']());}catch(_0x4101f7){_0x4c511d['push'](_0x4c511d['shift']());}}}(_0x20cf,0xc31ba),function(_0x4f5e26,_0x1fe49c){var _0x49ec35=_0x5441;typeof exports==_0x49ec35(0x17f)&&typeof module<'u'?_0x1fe49c(exports,require(_0x49ec35(0x107)),require(_0x49ec35(0x147)),require(_0x49ec35(0x176)),require(_0x49ec35(0x114)),require(_0x49ec35(0x13c)),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require(_0x49ec35(0x156)),require(_0x49ec35(0x1e0)),require(_0x49ec35(0x151))):typeof define==_0x49ec35(0x1a1)&&define['amd']?define(['exports','@univerjs-pro/collaboration-client',_0x49ec35(0x147),_0x49ec35(0x176),_0x49ec35(0x114),'@univerjs/ui','react/jsx-runtime',_0x49ec35(0x1d0),_0x49ec35(0x19d),_0x49ec35(0x156),'rxjs','rxjs/operators'],_0x1fe49c):(_0x4f5e26=typeof globalThis<'u'?globalThis:_0x4f5e26||self,_0x1fe49c(_0x4f5e26[_0x49ec35(0x1e7)]={},_0x4f5e26[_0x49ec35(0x131)],_0x4f5e26[_0x49ec35(0x144)],_0x4f5e26[_0x49ec35(0x1d7)],_0x4f5e26[_0x49ec35(0x158)],_0x4f5e26[_0x49ec35(0x18d)],_0x4f5e26[_0x49ec35(0x1ce)],_0x4f5e26[_0x49ec35(0x167)],_0x4f5e26[_0x49ec35(0x1ce)],_0x4f5e26[_0x49ec35(0x14c)],_0x4f5e26[_0x49ec35(0x1e0)],_0x4f5e26['rxjs'][_0x49ec35(0x155)]));}(this,function(_0x2a3b99,_0x149759,_0x6fbf19,_0x21c53d,_0x305a22,_0x35edf1,_0x4f88dd,_0x51ebe9,_0x6e62c0,_0x3c0848,_0x2e9a4,_0xd12273){'use strict';var _0x8cbab7=_0x5441;var _0x302a6a=Object['defineProperty'],_0x48d2ca=(_0x45a6f5,_0x246c73,_0x297ae5)=>_0x246c73 in _0x45a6f5?_0x302a6a(_0x45a6f5,_0x246c73,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x297ae5}):_0x45a6f5[_0x246c73]=_0x297ae5,_0x3f43da=(_0x51d433,_0x3686c7,_0x319760)=>_0x48d2ca(_0x51d433,typeof _0x3686c7!='symbol'?_0x3686c7+'':_0x3686c7,_0x319760);const _0x3863b5=_0x8cbab7(0x19c),_0x212de5={};class _0x42c9b5 extends _0x6fbf19['Disposable']{constructor(){var _0x3a9383=_0x8cbab7;super(...arguments),_0x3f43da(this,_0x3a9383(0x1b3),new Set()),_0x3f43da(this,_0x3a9383(0x150),new Set());}[_0x8cbab7(0x194)](_0x1c15fe){var _0x38632f=_0x8cbab7;return this[_0x38632f(0x1b3)]['add'](_0x1c15fe),_0x6fbf19[_0x38632f(0x1a9)](()=>this[_0x38632f(0x1b3)][_0x38632f(0x15d)](_0x1c15fe));}['registerInitialStateReporter'](_0x32e578){var _0x13ca47=_0x8cbab7;return this[_0x13ca47(0x150)][_0x13ca47(0x137)](_0x32e578),_0x6fbf19[_0x13ca47(0x1a9)](()=>this['_reporters'][_0x13ca47(0x15d)](_0x32e578));}[_0x8cbab7(0x1c1)](_0x2d5a01){return this['_sharedOperations']['has'](_0x2d5a01);}[_0x8cbab7(0x149)](_0x1c7a91){var _0x26a1a3=_0x8cbab7;return Array[_0x26a1a3(0x118)](this[_0x26a1a3(0x150)])[_0x26a1a3(0x116)](_0x1bf1c0=>_0x1bf1c0(_0x1c7a91));}}var _0x4dad81=Object[_0x8cbab7(0x1be)],_0x3615bc=(_0x6eb443,_0x166154,_0x19ea80,_0x2b1fab)=>{var _0x60cd99=_0x8cbab7;for(var _0x5d05fe=_0x2b1fab>0x1?void 0x0:_0x2b1fab?_0x4dad81(_0x166154,_0x19ea80):_0x166154,_0x561912=_0x6eb443[_0x60cd99(0x186)]-0x1,_0x53e8de;_0x561912>=0x0;_0x561912--)(_0x53e8de=_0x6eb443[_0x561912])&&(_0x5d05fe=_0x53e8de(_0x5d05fe)||_0x5d05fe);return _0x5d05fe;},_0x5736ad=(_0x1b7ef4,_0x36b7d6)=>(_0x2516ad,_0x2808c7)=>_0x36b7d6(_0x2516ad,_0x2808c7,_0x1b7ef4);let _0x175749=class extends _0x6fbf19[_0x8cbab7(0x1de)]{constructor(_0x52e53f){var _0x2e02cc=_0x8cbab7;super(),this[_0x2e02cc(0x12a)]=_0x52e53f,this[_0x2e02cc(0x120)]();}[_0x8cbab7(0x120)](){var _0x489b52=_0x8cbab7;[_0x305a22[_0x489b52(0x119)]['id'],_0x305a22[_0x489b52(0x108)]['id'],_0x21c53d['SetWorksheetActiveOperation']['id']]['forEach'](_0x4378c1=>{var _0x241155=_0x489b52;this[_0x241155(0x185)](this['_liveShareService'][_0x241155(0x194)](_0x4378c1));});}};_0x175749=_0x3615bc([_0x5736ad(0x0,_0x6fbf19[_0x8cbab7(0x1cb)](_0x42c9b5))],_0x175749);var _0x5ebf7c=function(){var _0x4d78ee=_0x8cbab7;return _0x5ebf7c=Object[_0x4d78ee(0x1b1)]||function(_0x58760e){var _0x20595a=_0x4d78ee;for(var _0x1a47de,_0x3cde1c=0x1,_0x183c0c=arguments[_0x20595a(0x186)];_0x3cde1c<_0x183c0c;_0x3cde1c++){_0x1a47de=arguments[_0x3cde1c];for(var _0x4152e0 in _0x1a47de)Object['prototype'][_0x20595a(0x1df)][_0x20595a(0x19e)](_0x1a47de,_0x4152e0)&&(_0x58760e[_0x4152e0]=_0x1a47de[_0x4152e0]);}return _0x58760e;},_0x5ebf7c[_0x4d78ee(0x1b2)](this,arguments);},_0x3d8f0c=function(_0x3677a6,_0x9965af){var _0x45e7f7=_0x8cbab7,_0x2a431a={};for(var _0x190823 in _0x3677a6)Object[_0x45e7f7(0x11f)]['hasOwnProperty'][_0x45e7f7(0x19e)](_0x3677a6,_0x190823)&&_0x9965af[_0x45e7f7(0x1e8)](_0x190823)<0x0&&(_0x2a431a[_0x190823]=_0x3677a6[_0x190823]);if(_0x3677a6!=null&&typeof Object[_0x45e7f7(0x160)]==_0x45e7f7(0x1a1)){for(var _0x45d59f=0x0,_0x190823=Object[_0x45e7f7(0x160)](_0x3677a6);_0x45d59f<_0x190823[_0x45e7f7(0x186)];_0x45d59f++)_0x9965af[_0x45e7f7(0x1e8)](_0x190823[_0x45d59f])<0x0&&Object[_0x45e7f7(0x11f)][_0x45e7f7(0x1e1)][_0x45e7f7(0x19e)](_0x3677a6,_0x190823[_0x45d59f])&&(_0x2a431a[_0x190823[_0x45d59f]]=_0x3677a6[_0x190823[_0x45d59f]]);}return _0x2a431a;},_0x133e75=_0x6e62c0['forwardRef'](function(_0x4312bf,_0x2a9437){var _0x55902f=_0x8cbab7,_0xf40f2c=_0x4312bf[_0x55902f(0x14e)],_0x370ba6=_0x4312bf['id'],_0x1746e7=_0x4312bf[_0x55902f(0x13e)],_0x46ad3d=_0x4312bf[_0x55902f(0x10f)],_0x2804bc=_0x3d8f0c(_0x4312bf,[_0x55902f(0x14e),'id',_0x55902f(0x13e),_0x55902f(0x10f)]),_0x2ec8cd=_0x55902f(0x1f6)['concat'](_0x370ba6,'\x20')['concat'](_0x1746e7||'')[_0x55902f(0x161)](),_0x2cfb98=_0x6e62c0[_0x55902f(0x1a7)]('_'[_0x55902f(0x1b4)](_0x54ab60()));return _0x5d6f24(_0xf40f2c,''[_0x55902f(0x1b4)](_0x370ba6),{'defIds':_0xf40f2c[_0x55902f(0x121)],'idSuffix':_0x2cfb98[_0x55902f(0x1cf)]},_0x5ebf7c({'ref':_0x2a9437,'className':_0x2ec8cd},_0x2804bc),_0x46ad3d);});function _0x5d6f24(_0x4f631e,_0x96656b,_0x2f1753,_0x3614ee,_0x13d8d8){var _0x479348=_0x8cbab7;return _0x6e62c0['createElement'](_0x4f631e[_0x479348(0x1d8)],_0x5ebf7c(_0x5ebf7c({'key':_0x96656b},_0x41aed(_0x4f631e,_0x2f1753,_0x13d8d8)),_0x3614ee),(_0x33abec(_0x4f631e,_0x2f1753)['children']||[])[_0x479348(0x116)](function(_0x4b385a,_0x2f2b92){var _0x502e13=_0x479348;return _0x5d6f24(_0x4b385a,''[_0x502e13(0x1b4)](_0x96656b,'-')[_0x502e13(0x1b4)](_0x4f631e[_0x502e13(0x1d8)],'-')[_0x502e13(0x1b4)](_0x2f2b92),_0x2f1753,void 0x0,_0x13d8d8);}));}function _0x41aed(_0x4a044c,_0x3b34f0,_0xc029b1){var _0x161b3a=_0x8cbab7,_0x16afd0=_0x5ebf7c({},_0x4a044c['attrs']);_0xc029b1!=null&&_0xc029b1[_0x161b3a(0x178)]&&_0x16afd0[_0x161b3a(0x1c8)]===_0x161b3a(0x178)&&(_0x16afd0[_0x161b3a(0x1c8)]=_0xc029b1[_0x161b3a(0x178)]),_0x4a044c[_0x161b3a(0x1d8)]===_0x161b3a(0x17a)&&_0x16afd0['id']&&(_0x16afd0['id']=_0x16afd0['id']+_0x3b34f0[_0x161b3a(0x164)]),Object[_0x161b3a(0x1af)](_0x16afd0)[_0x161b3a(0x1f1)](function(_0x544a6a){var _0x4f9098=_0x161b3a,_0x23c08e=_0x544a6a[0x0],_0xfc2710=_0x544a6a[0x1];_0x23c08e==='mask'&&typeof _0xfc2710==_0x4f9098(0x199)&&(_0x16afd0[_0x23c08e]=_0xfc2710[_0x4f9098(0x1b5)](/url\(#(.*)\)/,_0x4f9098(0x1cd)[_0x4f9098(0x1b4)](_0x3b34f0[_0x4f9098(0x164)],')')));});var _0x4ec96c=_0x3b34f0[_0x161b3a(0x121)];return!_0x4ec96c||_0x4ec96c[_0x161b3a(0x186)]===0x0||(_0x4a044c[_0x161b3a(0x1d8)]===_0x161b3a(0x12b)&&_0x16afd0[_0x161b3a(0x15e)]&&(_0x16afd0['xlink:href']=_0x16afd0[_0x161b3a(0x15e)]+_0x3b34f0[_0x161b3a(0x164)]),Object[_0x161b3a(0x1af)](_0x16afd0)[_0x161b3a(0x1f1)](function(_0x8e88f0){var _0x4ffcc8=_0x161b3a,_0x745a68=_0x8e88f0[0x0],_0x23da25=_0x8e88f0[0x1];typeof _0x23da25==_0x4ffcc8(0x199)&&(_0x16afd0[_0x745a68]=_0x23da25[_0x4ffcc8(0x1b5)](/url\(#(.*)\)/,_0x4ffcc8(0x1cd)[_0x4ffcc8(0x1b4)](_0x3b34f0['idSuffix'],')')));})),_0x16afd0;}function _0x33abec(_0x45c444,_0x3a6b29){var _0x21eaf4=_0x8cbab7,_0x32d904,_0x4890c3=_0x3a6b29['defIds'];return!_0x4890c3||_0x4890c3[_0x21eaf4(0x186)]===0x0?_0x45c444:_0x45c444['tag']==='defs'&&(!((_0x32d904=_0x45c444[_0x21eaf4(0x1ac)])===null||_0x32d904===void 0x0)&&_0x32d904[_0x21eaf4(0x186)])?_0x5ebf7c(_0x5ebf7c({},_0x45c444),{'children':_0x45c444['children']['map'](function(_0x521682){var _0x10daff=_0x21eaf4;return typeof _0x521682[_0x10daff(0x162)]['id']==_0x10daff(0x199)&&_0x4890c3&&_0x4890c3[_0x10daff(0x154)](_0x521682['attrs']['id'])?_0x5ebf7c(_0x5ebf7c({},_0x521682),{'attrs':_0x5ebf7c(_0x5ebf7c({},_0x521682[_0x10daff(0x162)]),{'id':_0x521682[_0x10daff(0x162)]['id']+_0x3a6b29[_0x10daff(0x164)]})}):_0x521682;})}):_0x45c444;}function _0x54ab60(){var _0x5c2ed4=_0x8cbab7;return Math['random']()[_0x5c2ed4(0x18b)](0x24)[_0x5c2ed4(0x106)](0x2,0x8);}_0x133e75[_0x8cbab7(0x193)]=_0x8cbab7(0x1ae);var _0x2e1562={'tag':_0x8cbab7(0x1ec),'attrs':{'xmlns':_0x8cbab7(0x1f2),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x8cbab7(0x1ca),'height':_0x8cbab7(0x1ca)},'children':[{'tag':_0x8cbab7(0x1e9),'attrs':{'fill':'currentColor','d':_0x8cbab7(0x17e)}},{'tag':_0x8cbab7(0x1e9),'attrs':{'fill':_0x8cbab7(0x1eb),'d':_0x8cbab7(0x1ed),'fillRule':_0x8cbab7(0x11a),'clipRule':'evenodd'}}]},_0x426b84=_0x6e62c0[_0x8cbab7(0x17d)](function(_0x2c810a,_0x170fd0){var _0xe1b6f=_0x8cbab7;return _0x6e62c0[_0xe1b6f(0x1f5)](_0x133e75,Object[_0xe1b6f(0x1b1)]({},_0x2c810a,{'id':_0xe1b6f(0x182),'ref':_0x170fd0,'icon':_0x2e1562}));});_0x426b84[_0x8cbab7(0x193)]='LiveShareIcon';var _0x25ceab=Object['getOwnPropertyDescriptor'],_0x5a41fd=(_0x3ac263,_0x54428d,_0x35b4fa,_0x19154a)=>{var _0x2288bc=_0x8cbab7;for(var _0x5ee80a=_0x19154a>0x1?void 0x0:_0x19154a?_0x25ceab(_0x54428d,_0x35b4fa):_0x54428d,_0x4e432b=_0x3ac263[_0x2288bc(0x186)]-0x1,_0x32ab93;_0x4e432b>=0x0;_0x4e432b--)(_0x32ab93=_0x3ac263[_0x4e432b])&&(_0x5ee80a=_0x32ab93(_0x5ee80a)||_0x5ee80a);return _0x5ee80a;},_0x43bcc3=(_0x32371c,_0x28139e)=>(_0x485dd6,_0x110f29)=>_0x28139e(_0x485dd6,_0x110f29,_0x32371c);_0x2a3b99[_0x8cbab7(0x1e4)]=class extends _0x6fbf19[_0x8cbab7(0x19a)]{constructor(_0xe9acc1,_0xb36089,_0x238157){var _0x207b49=_0x8cbab7;super(),_0x3f43da(this,_0x207b49(0x11b),new Map()),(this[_0x207b49(0x188)]=_0xe9acc1,this[_0x207b49(0x165)]=_0xb36089,this[_0x207b49(0x1c3)]=_0x238157,this[_0x207b49(0x120)]());}async[_0x8cbab7(0x1bc)](_0x13bed9){var _0x42ff14=_0x8cbab7;return this[_0x42ff14(0x11b)][_0x42ff14(0x10d)](_0x13bed9)||await this[_0x42ff14(0x17b)](_0x13bed9),this['_entities'][_0x42ff14(0x115)](_0x13bed9);}[_0x8cbab7(0x120)](){var _0x5ebf42=_0x8cbab7;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x6fbf19[_0x5ebf42(0x1aa)][_0x5ebf42(0x18e)])[_0x5ebf42(0x12e)](_0xd12273[_0x5ebf42(0x18f)](this['dispose$']))[_0x5ebf42(0x1b0)](async _0x12f635=>{var _0x42b961=_0x5ebf42;const _0x42db54=_0x12f635[_0x42b961(0x169)]();this['_entities'][_0x42b961(0x10d)](_0x42db54)||this[_0x42b961(0x17b)](_0x42db54);}),this[_0x5ebf42(0x188)]['getTypeOfUnitDisposed$'](_0x6fbf19['UniverInstanceType'][_0x5ebf42(0x18e)])['pipe'](_0xd12273[_0x5ebf42(0x18f)](this[_0x5ebf42(0x133)]))[_0x5ebf42(0x1b0)](_0x2bb90f=>{var _0x5a34ce=_0x5ebf42;const _0x519e7b=_0x2bb90f[_0x5a34ce(0x169)](),_0x1c26d9=this[_0x5a34ce(0x11b)][_0x5a34ce(0x115)](_0x519e7b);_0x1c26d9==null||_0x1c26d9[_0x5a34ce(0x1da)]();});}async[_0x8cbab7(0x17b)](_0xdeed9a){var _0x421eaa=_0x8cbab7;const _0x37c0ff=await this[_0x421eaa(0x1c3)][_0x421eaa(0x15c)](_0xdeed9a),_0x559da4=this[_0x421eaa(0x165)][_0x421eaa(0x134)](_0x2a3b99[_0x421eaa(0x189)],_0xdeed9a,_0x37c0ff);return _0x559da4['init'](),this[_0x421eaa(0x11b)][_0x421eaa(0x135)](_0xdeed9a,_0x559da4),_0x559da4;}},_0x2a3b99[_0x8cbab7(0x1e4)]=_0x5a41fd([_0x43bcc3(0x0,_0x6fbf19[_0x8cbab7(0x1f7)]),_0x43bcc3(0x1,_0x6fbf19['Inject'](_0x6fbf19[_0x8cbab7(0x16a)])),_0x43bcc3(0x2,_0x6fbf19['Inject'](_0x149759['CollaborationSessionService']))],_0x2a3b99[_0x8cbab7(0x1e4)]);var _0xc98a21=(_0x5367e7=>(_0x5367e7['OFFLINE']='offline',_0x5367e7['IDLE']=_0x8cbab7(0x174),_0x5367e7[_0x8cbab7(0x1e3)]=_0x8cbab7(0x10c),_0x5367e7[_0x8cbab7(0x10a)]=_0x8cbab7(0x10b),_0x5367e7[_0x8cbab7(0x153)]='presenting',_0x5367e7))(_0xc98a21||{});const _0x58dad8=_0x8cbab7(0x18a),_0xe99e49=0xc8;_0x2a3b99[_0x8cbab7(0x189)]=class extends _0x6fbf19[_0x8cbab7(0x19a)]{constructor(_0x4bce06,_0x10aab0,_0x5186a0,_0x2c8a66,_0x12735d){var _0x461124=_0x8cbab7;super(),_0x3f43da(this,_0x461124(0x1a8),new _0x2e9a4[(_0x461124(0x177))](_0x461124(0x174))),_0x3f43da(this,'status$',this[_0x461124(0x1a8)][_0x461124(0x136)]()),_0x3f43da(this,'_init',!0x1),_0x3f43da(this,_0x461124(0x19b),null),_0x3f43da(this,_0x461124(0x1ba),null),(this['_unitID']=_0x4bce06,this['_collabSession']=_0x10aab0,this[_0x461124(0x1d6)]=_0x5186a0,this[_0x461124(0x12a)]=_0x2c8a66,this[_0x461124(0x14a)]=_0x12735d);}get[_0x8cbab7(0x173)](){var _0x4c9073=_0x8cbab7;return this[_0x4c9073(0x1a8)]['getValue']();}[_0x8cbab7(0x1da)](){var _0x2ba8e1=_0x8cbab7,_0x909eaf;(_0x909eaf=this[_0x2ba8e1(0x19b)])==null||_0x909eaf[_0x2ba8e1(0x1da)](),this[_0x2ba8e1(0x1a8)][_0x2ba8e1(0x1c6)](_0x2ba8e1(0x174)),this[_0x2ba8e1(0x1a8)][_0x2ba8e1(0x1a6)]();}[_0x8cbab7(0x145)](){var _0x532610=_0x8cbab7;this[_0x532610(0x120)]||(this[_0x532610(0x120)]=!0x0,this[_0x532610(0x122)]['sessionStatus$'][_0x532610(0x12e)](_0xd12273[_0x532610(0x18f)](this[_0x532610(0x133)]))['subscribe'](_0x52de89=>{var _0x306eb0=_0x532610;switch(_0x52de89){case _0x149759['SessionStatus'][_0x306eb0(0x1c4)]:this[_0x306eb0(0x1e6)]();break;case _0x149759[_0x306eb0(0x13d)][_0x306eb0(0x14d)]:this[_0x306eb0(0x1dd)]();break;}}),this[_0x532610(0x122)][_0x532610(0x129)][_0x532610(0x12e)](_0xd12273[_0x532610(0x18f)](this[_0x532610(0x133)]))[_0x532610(0x1b0)](_0x19e568=>{var _0x410984=_0x532610;const {eventID:_0x32bf45}=_0x19e568;switch(_0x32bf45){case _0x3c0848[_0x410984(0x12c)][_0x410984(0x1f8)]:this[_0x410984(0x1f0)](_0x19e568);break;case _0x3c0848['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x19e568);break;case _0x3c0848[_0x410984(0x12c)][_0x410984(0x1d5)]:this[_0x410984(0x18c)]();break;case _0x3c0848[_0x410984(0x12c)][_0x410984(0x1e5)]:this[_0x410984(0x198)](_0x19e568);break;}}));}[_0x8cbab7(0x138)](){var _0x7dc8dc=_0x8cbab7;this['_collabSession'][_0x7dc8dc(0x16f)]({'eventID':_0x3c0848[_0x7dc8dc(0x12c)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x7dc8dc(0x1db)],'userID':this[_0x7dc8dc(0x122)]['getMemberID']()}},this['_unitID']);}[_0x8cbab7(0x17c)](){var _0x1b6a79=_0x8cbab7;this[_0x1b6a79(0x173)]===_0x1b6a79(0x197)&&(this['_status$'][_0x1b6a79(0x1c6)](_0x1b6a79(0x174)),this['_collabSession'][_0x1b6a79(0x16f)]({'eventID':_0x3c0848[_0x1b6a79(0x12c)][_0x1b6a79(0x1d5)],'data':{'unitID':this['_unitID']}},this[_0x1b6a79(0x1db)]));}['startFollowing'](){var _0x138249=_0x8cbab7;this[_0x138249(0x173)]===_0x138249(0x10b)&&(this[_0x138249(0x1a8)]['next'](_0x138249(0x10c)),this[_0x138249(0x181)]());}[_0x8cbab7(0x179)](){var _0x287a30=_0x8cbab7;this['_status']===_0x287a30(0x10c)&&this[_0x287a30(0x1a5)]();}[_0x8cbab7(0x1f0)](_0xb3aa4a){var _0x27d477=_0x8cbab7;const {presenter:_0x3b798f}=_0xb3aa4a['data'],_0x3e6116=this['_collabSession'][_0x27d477(0x1f4)]();this[_0x27d477(0x1ba)]=_0x3b798f,_0x3b798f===_0x3e6116?(this[_0x27d477(0x1a5)](),this['_startPresenting']()):this[_0x27d477(0x173)]!==_0x27d477(0x10b)&&(this[_0x27d477(0x180)](),this[_0x27d477(0x181)]());}[_0x8cbab7(0x1ab)](){var _0x3d28d3=_0x8cbab7;const _0x1174f4={'eventID':_0x3c0848[_0x3d28d3(0x12c)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x3d28d3(0x122)][_0x3d28d3(0x16f)](_0x1174f4,this[_0x3d28d3(0x1db)]);}['_handleTerminate'](){var _0x5a34d1=_0x8cbab7;this[_0x5a34d1(0x1ba)]=null,this[_0x5a34d1(0x173)]!==_0x5a34d1(0x197)&&this['_beIdle']();}[_0x8cbab7(0x198)](_0x1ab76f){var _0x28b746=_0x8cbab7;if(this[_0x28b746(0x173)]==='following'&&this[_0x28b746(0x1ba)]===_0x1ab76f[_0x28b746(0x109)][_0x28b746(0x16e)]){const _0xabc68d=_0x3c0848[_0x28b746(0x123)](_0x1ab76f[_0x28b746(0x109)])[_0x28b746(0x190)][_0x28b746(0x11d)]()[_0x28b746(0x196)](_0x1e4149=>_0x1e4149['id']===_0x21c53d[_0x28b746(0x187)]['id']);if(_0xabc68d){const _0x39275e=_0xabc68d[_0x28b746(0x1a0)][_0x28b746(0x1a2)],_0x4df739=_0xabc68d[_0x28b746(0x1a0)]['sheet']['id'];setTimeout(()=>{var _0x3d5bab=_0x28b746;this[_0x3d5bab(0x14a)][_0x3d5bab(0x195)](_0x21c53d['SetWorksheetActiveOperation']['id'],{'unitId':_0x39275e,'subUnitId':_0x4df739},{'fromCollab':!0x0});});}}}[_0x8cbab7(0x140)](){var _0x357429=_0x8cbab7;this[_0x357429(0x1a8)][_0x357429(0x1c6)](_0x357429(0x197));const _0x40884f=new Map(),_0x2d5611=this['_commandDisposable']=new _0x6fbf19[(_0x357429(0x15f))]();_0x2d5611[_0x357429(0x137)](_0x6fbf19[_0x357429(0x1a9)](()=>{var _0x282455=_0x357429;_0x40884f[_0x282455(0x1f1)](_0x362e96=>_0x362e96['complete']()),_0x40884f[_0x282455(0x19f)]();})),_0x2d5611[_0x357429(0x137)](this[_0x357429(0x14a)]['onCommandExecuted'](_0x3a9239=>{var _0x1aaf6c=_0x357429,_0x58681c;if(_0x3a9239[_0x1aaf6c(0x1b7)]!==_0x6fbf19[_0x1aaf6c(0x139)][_0x1aaf6c(0x1bd)]||!this[_0x1aaf6c(0x12a)][_0x1aaf6c(0x1c1)](_0x3a9239['id']))return;const {id:_0x5f513c}=_0x3a9239;let _0x13e495;_0x40884f[_0x1aaf6c(0x10d)](_0x5f513c)?_0x13e495=_0x40884f[_0x1aaf6c(0x115)](_0x5f513c):(_0x13e495=new _0x2e9a4[(_0x1aaf6c(0x126))](),_0x40884f[_0x1aaf6c(0x135)](_0x5f513c,_0x13e495),_0x13e495[_0x1aaf6c(0x12e)](_0xd12273[_0x1aaf6c(0x172)]((_0x58681c=this[_0x1aaf6c(0x1d6)][_0x1aaf6c(0x1c0)](_0x58dad8))!=null?_0x58681c:_0xe99e49,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1ed76d=>{var _0x4546a2=_0x1aaf6c;this['_collabSession'][_0x4546a2(0x16f)]({'eventID':_0x3c0848[_0x4546a2(0x12c)][_0x4546a2(0x12d)],'data':{'unitID':this[_0x4546a2(0x1db)],'operations':{[_0x1ed76d['id']]:{'id':_0x1ed76d['id'],'params':JSON[_0x4546a2(0x163)](_0x1ed76d[_0x4546a2(0x1a0)])}}}},this[_0x4546a2(0x1db)]);})),_0x13e495['next'](_0x3a9239);})),this[_0x357429(0x12a)][_0x357429(0x149)](this[_0x357429(0x1db)])['forEach'](_0x11122e=>this[_0x357429(0x122)][_0x357429(0x16f)]({'eventID':_0x3c0848[_0x357429(0x12c)][_0x357429(0x12d)],'data':{'unitID':this['_unitID'],'operations':{[_0x11122e['id']]:{'id':_0x11122e['id'],'params':JSON[_0x357429(0x163)](_0x11122e[_0x357429(0x1a0)])}}}},this[_0x357429(0x1db)]));}[_0x8cbab7(0x180)](){var _0x3805b2=_0x8cbab7,_0x3b7e77;this[_0x3805b2(0x1a8)][_0x3805b2(0x1c6)](_0x3805b2(0x174)),(_0x3b7e77=this[_0x3805b2(0x19b)])==null||_0x3b7e77[_0x3805b2(0x1da)](),this[_0x3805b2(0x19b)]=null;}[_0x8cbab7(0x181)](){var _0x14f0b6=_0x8cbab7,_0x4356bb;(_0x4356bb=this[_0x14f0b6(0x19b)])==null||_0x4356bb[_0x14f0b6(0x1da)](),this['_status$']['next'](_0x14f0b6(0x10c));}[_0x8cbab7(0x1ad)](){var _0x3e82c3=_0x8cbab7,_0x50c9f9;this[_0x3e82c3(0x1a8)][_0x3e82c3(0x1c6)]('idle'),(_0x50c9f9=this['_commandDisposable'])==null||_0x50c9f9[_0x3e82c3(0x1da)](),this[_0x3e82c3(0x19b)]=null;}[_0x8cbab7(0x1a5)](){var _0x73d177=_0x8cbab7,_0x208b37;this[_0x73d177(0x1a8)][_0x73d177(0x1c6)](_0x73d177(0x10b)),(_0x208b37=this[_0x73d177(0x19b)])==null||_0x208b37['dispose']();}[_0x8cbab7(0x14f)](_0x4afb35){var _0x19e418=_0x8cbab7;if([_0x19e418(0x197),'not-following',_0x19e418(0x1c5)][_0x19e418(0x154)](this[_0x19e418(0x173)])||!_0x4afb35[_0x19e418(0x109)]['presenter']||_0x4afb35['data'][_0x19e418(0x16d)]===this[_0x19e418(0x122)][_0x19e418(0x1f4)]())return;this[_0x19e418(0x173)]===_0x19e418(0x174)&&this[_0x19e418(0x181)]();const _0x56a51e=_0x4afb35[_0x19e418(0x109)][_0x19e418(0x14b)];Object[_0x19e418(0x125)](_0x56a51e)[_0x19e418(0x1f1)](_0x47f2f2=>{var _0x531c7f=_0x19e418;this[_0x531c7f(0x14a)][_0x531c7f(0x195)](_0x47f2f2['id'],_0x47f2f2[_0x531c7f(0x1a0)]?JSON[_0x531c7f(0x170)](_0x47f2f2['params']):null,{'fromCollab':!0x0});});}[_0x8cbab7(0x1e6)](){var _0x3510bd=_0x8cbab7,_0x10de93;this[_0x3510bd(0x1a8)][_0x3510bd(0x1c6)](_0x3510bd(0x1c5)),(_0x10de93=this[_0x3510bd(0x19b)])==null||_0x10de93[_0x3510bd(0x1da)]();}[_0x8cbab7(0x1dd)](){var _0x57dae5=_0x8cbab7;this[_0x57dae5(0x1a8)][_0x57dae5(0x1c6)](_0x57dae5(0x174)),this[_0x57dae5(0x1ab)]();}},_0x2a3b99[_0x8cbab7(0x189)]=_0x5a41fd([_0x43bcc3(0x2,_0x6fbf19[_0x8cbab7(0x1fb)]),_0x43bcc3(0x3,_0x6fbf19[_0x8cbab7(0x1cb)](_0x42c9b5)),_0x43bcc3(0x4,_0x6fbf19[_0x8cbab7(0x1ef)])],_0x2a3b99[_0x8cbab7(0x189)]);function _0x293d4c(){var _0x6edf14=_0x8cbab7;const _0xc62d42=_0x35edf1['useDependency'](_0x2a3b99[_0x6edf14(0x1e4)]),_0x186f40=_0x35edf1['useDependency'](_0x6fbf19[_0x6edf14(0x1f7)]),_0x4853c3=_0x35edf1['useObservable'](()=>_0x186f40[_0x6edf14(0x130)](_0x6fbf19[_0x6edf14(0x1aa)][_0x6edf14(0x18e)]),void 0x0,!0x1,[]),[_0x2bfe3f,_0x1204be]=_0x6e62c0[_0x6edf14(0x13b)](null),[_0xc06390,_0x58a109]=_0x6e62c0['useState'](_0xc98a21[_0x6edf14(0x111)]),_0x175848=_0x6e62c0[_0x6edf14(0x1a7)](null);return _0x6e62c0[_0x6edf14(0x1fa)](()=>(_0x4853c3&&_0xc62d42[_0x6edf14(0x1bc)](_0x4853c3[_0x6edf14(0x169)]())['then'](_0x297294=>{_0x1204be(_0x297294),_0x175848['current']=_0x297294['status$']['subscribe'](_0x390c9f=>{_0x58a109(_0x390c9f);});}),()=>{var _0x27aba3=_0x6edf14,_0x26ce2b;(_0x26ce2b=_0x175848['current'])==null||_0x26ce2b[_0x27aba3(0x15a)](),_0x175848[_0x27aba3(0x1cf)]=null;}),[_0x4853c3,_0xc62d42]),_0x2bfe3f?_0x4f88dd[_0x6edf14(0x1d2)](_0x51ebe9[_0x6edf14(0x16b)],{'align':_0x6edf14(0x1d4),'disabled':_0xc06390===_0xc98a21[_0x6edf14(0x1c4)],'className':_0x6edf14(0x1e2),'overlay':_0x4f88dd['jsx'](_0x1c2007,{'status':_0xc06390,'coordinator':_0x2bfe3f}),'children':_0x4f88dd[_0x6edf14(0x1d2)](_0x6edf14(0x1bf),{'className':_0x51ebe9[_0x6edf14(0x1d3)](_0x6edf14(0x141),{'univer-cursor-not-allowed':_0xc06390===_0xc98a21[_0x6edf14(0x1c4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xc06390!==_0xc98a21[_0x6edf14(0x1c4)]}),'type':_0x6edf14(0x1bf),'children':_0x4f88dd[_0x6edf14(0x1d2)](_0x426b84,{'className':'univer-size-4'})})}):null;}function _0x1c2007(_0x347738){var _0x299df7=_0x8cbab7;const {status:_0x26f5f1,coordinator:_0x4f7229}=_0x347738;switch(_0x26f5f1){case _0xc98a21['IDLE']:return _0x4f88dd['jsx'](_0x4cc56b,{'coordinator':_0x4f7229});case _0xc98a21[_0x299df7(0x1e3)]:return _0x4f88dd[_0x299df7(0x1d2)](_0x1bc565,{'coordinator':_0x4f7229});case _0xc98a21['NOT_FOLLOWING']:return _0x4f88dd[_0x299df7(0x1d2)](_0x2c5824,{'coordinator':_0x4f7229});case _0xc98a21[_0x299df7(0x1c4)]:return _0x4f88dd[_0x299df7(0x1d2)](_0x457f79,{});case _0xc98a21[_0x299df7(0x153)]:return _0x4f88dd[_0x299df7(0x1d2)](_0x5bf013,{'coordinator':_0x4f7229});default:return null;}}function _0x4cc56b(_0x4668c1){var _0xf175e2=_0x8cbab7;const {coordinator:_0x2affa9}=_0x4668c1;return _0x4f88dd[_0xf175e2(0x1d9)](_0x4f88dd[_0xf175e2(0x1bb)],{'children':[_0x4f88dd[_0xf175e2(0x1d2)](_0xf175e2(0x12f),{'className':_0xf175e2(0x1c2),'children':_0xf175e2(0x132)}),_0x4f88dd[_0xf175e2(0x1d2)](_0x51ebe9[_0xf175e2(0x128)],{'onClick':()=>_0x2affa9[_0xf175e2(0x138)](),'children':_0xf175e2(0x183)})]});}function _0x1bc565(_0x2c74ae){var _0x475626=_0x8cbab7;const {coordinator:_0x5e2a9c}=_0x2c74ae;return _0x4f88dd[_0x475626(0x1d9)](_0x4f88dd[_0x475626(0x1bb)],{'children':[_0x4f88dd[_0x475626(0x1d2)](_0x475626(0x12f),{'className':_0x475626(0x1c2),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4f88dd[_0x475626(0x1d2)](_0x51ebe9['Button'],{'onClick':()=>_0x5e2a9c[_0x475626(0x179)](),'children':'Stop\x20following'})]});}function _0x2c5824(_0xe2dad){var _0x48a231=_0x8cbab7;const {coordinator:_0x20916c}=_0xe2dad;return _0x4f88dd[_0x48a231(0x1d9)](_0x4f88dd[_0x48a231(0x1bb)],{'children':[_0x4f88dd['jsx'](_0x48a231(0x12f),{'className':_0x48a231(0x1c2),'children':_0x48a231(0x1f3)}),_0x4f88dd[_0x48a231(0x1d2)](_0x51ebe9[_0x48a231(0x128)],{'variant':_0x48a231(0x11c),'onClick':()=>_0x20916c[_0x48a231(0x168)](),'children':'Start\x20following'})]});}function _0x5bf013(_0xd0a2c4){var _0x50585f=_0x8cbab7;const {coordinator:_0x24e730}=_0xd0a2c4;return _0x4f88dd[_0x50585f(0x1d9)](_0x4f88dd[_0x50585f(0x1bb)],{'children':[_0x4f88dd[_0x50585f(0x1d2)](_0x50585f(0x12f),{'className':_0x50585f(0x1c2),'children':_0x50585f(0x13f)}),_0x4f88dd[_0x50585f(0x1d2)](_0x51ebe9['Button'],{'variant':_0x50585f(0x1c7),'onClick':()=>_0x24e730['stopPresenting'](),'children':_0x50585f(0x184)})]});}function _0x457f79(){var _0x90b262=_0x8cbab7;return _0x4f88dd[_0x90b262(0x1d2)](_0x4f88dd['Fragment'],{'children':_0x90b262(0x159)});}var _0xbe0f2c=Object['getOwnPropertyDescriptor'],_0x538f8f=(_0x161f6c,_0x320a0a,_0x39276b,_0x53430c)=>{var _0x4daac3=_0x8cbab7;for(var _0xce3376=_0x53430c>0x1?void 0x0:_0x53430c?_0xbe0f2c(_0x320a0a,_0x39276b):_0x320a0a,_0x38934e=_0x161f6c[_0x4daac3(0x186)]-0x1,_0x336865;_0x38934e>=0x0;_0x38934e--)(_0x336865=_0x161f6c[_0x38934e])&&(_0xce3376=_0x336865(_0xce3376)||_0xce3376);return _0xce3376;},_0x1fac57=(_0x4f60f5,_0x51dbf5)=>(_0x19bc1f,_0xfb3d6d)=>_0x51dbf5(_0x19bc1f,_0xfb3d6d,_0x4f60f5);_0x2a3b99[_0x8cbab7(0x127)]=class extends _0x6fbf19[_0x8cbab7(0x1de)]{constructor(_0x22e80d,_0x5c9796){var _0x2a46bf=_0x8cbab7;super(),this[_0x2a46bf(0x165)]=_0x22e80d,this[_0x2a46bf(0x11e)]=_0x5c9796,this[_0x2a46bf(0x112)]();}[_0x8cbab7(0x112)](){var _0x22f241=_0x8cbab7;this['disposeWithMe'](this[_0x22f241(0x11e)][_0x22f241(0x1c9)](_0x35edf1['BuiltInUIPart']['HEADER_MENU'],()=>_0x35edf1['connectInjector'](_0x293d4c,this[_0x22f241(0x165)])));}},_0x2a3b99[_0x8cbab7(0x127)]=_0x538f8f([_0x1fac57(0x0,_0x6fbf19[_0x8cbab7(0x1cb)](_0x6fbf19['Injector'])),_0x1fac57(0x1,_0x35edf1[_0x8cbab7(0x1dc)])],_0x2a3b99[_0x8cbab7(0x127)]);var _0xb66fbe=Object[_0x8cbab7(0x157)],_0x3fcf9f=Object[_0x8cbab7(0x1be)],_0x3f2f82=(_0x15dcca,_0xb01a05,_0x1b505f)=>_0xb01a05 in _0x15dcca?_0xb66fbe(_0x15dcca,_0xb01a05,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b505f}):_0x15dcca[_0xb01a05]=_0x1b505f,_0x139afe=(_0x52bb5f,_0x26787e,_0x39bde2,_0x18488b)=>{var _0x4dc4dc=_0x8cbab7;for(var _0x1164b4=_0x18488b>0x1?void 0x0:_0x18488b?_0x3fcf9f(_0x26787e,_0x39bde2):_0x26787e,_0x4df89e=_0x52bb5f[_0x4dc4dc(0x186)]-0x1,_0x2c9ef9;_0x4df89e>=0x0;_0x4df89e--)(_0x2c9ef9=_0x52bb5f[_0x4df89e])&&(_0x1164b4=_0x2c9ef9(_0x1164b4)||_0x1164b4);return _0x1164b4;},_0x303f03=(_0x6a6ffb,_0x3fdc10)=>(_0x29a66d,_0xf9c8f8)=>_0x3fdc10(_0x29a66d,_0xf9c8f8,_0x6a6ffb),_0x1a85d1=(_0x5d36d4,_0x2f3022,_0x1fc042)=>_0x3f2f82(_0x5d36d4,typeof _0x2f3022!=_0x8cbab7(0x16c)?_0x2f3022+'':_0x2f3022,_0x1fc042);const _0x439d56=_0x8cbab7(0x1ee);_0x2a3b99[_0x8cbab7(0x117)]=class extends _0x6fbf19[_0x8cbab7(0x191)]{constructor(_0x57d262=_0x212de5,_0x46c57a,_0x11e9e9){var _0xf77823=_0x8cbab7;super(),this[_0xf77823(0x110)]=_0x57d262,this['_injector']=_0x46c57a,this[_0xf77823(0x1d6)]=_0x11e9e9;const {..._0x357662}=_0x6fbf19['merge']({},_0x212de5,this[_0xf77823(0x110)]);this[_0xf77823(0x1d6)][_0xf77823(0x192)](_0x3863b5,_0x357662);}[_0x8cbab7(0x1ea)](){var _0x1f8d0c=_0x8cbab7;_0x6fbf19[_0x1f8d0c(0x1a3)](this[_0x1f8d0c(0x165)],_0x6fbf19['mergeOverrideWithDependencies']([[_0x42c9b5],[_0x2a3b99[_0x1f8d0c(0x1e4)]],[_0x175749],[_0x2a3b99['DesktopLiveShareController']]],this[_0x1f8d0c(0x110)][_0x1f8d0c(0x142)])),_0x6fbf19[_0x1f8d0c(0x124)](this[_0x1f8d0c(0x165)],[[_0x175749]]);}[_0x8cbab7(0x13a)](){var _0x34f8b1=_0x8cbab7;_0x6fbf19[_0x34f8b1(0x124)](this[_0x34f8b1(0x165)],[[_0x2a3b99[_0x34f8b1(0x127)]]]);}},_0x1a85d1(_0x2a3b99[_0x8cbab7(0x117)],_0x8cbab7(0x1b7),_0x6fbf19[_0x8cbab7(0x1aa)][_0x8cbab7(0x113)]),_0x1a85d1(_0x2a3b99[_0x8cbab7(0x117)],_0x8cbab7(0x148),_0x439d56),_0x2a3b99[_0x8cbab7(0x117)]=_0x139afe([_0x6fbf19[_0x8cbab7(0x1f9)](_0x149759[_0x8cbab7(0x1d1)]),_0x303f03(0x1,_0x6fbf19[_0x8cbab7(0x1cb)](_0x6fbf19[_0x8cbab7(0x16a)])),_0x303f03(0x2,_0x6fbf19[_0x8cbab7(0x1fb)])],_0x2a3b99['UniverLiveSharePlugin']),_0x2a3b99[_0x8cbab7(0x175)]=_0x293d4c,_0x2a3b99[_0x8cbab7(0x143)]=_0x42c9b5,_0x2a3b99[_0x8cbab7(0x1b9)]=_0xc98a21,Object[_0x8cbab7(0x157)](_0x2a3b99,Symbol[_0x8cbab7(0x1b6)],{'value':_0x8cbab7(0x10e)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.1-nightly.202506121607",
3
+ "version": "0.8.1-nightly.202506141606",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,22 +47,22 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration": "0.8.1-nightly.202506121607",
51
- "@univerjs-pro/collaboration-client": "0.8.1-nightly.202506121607",
52
- "@univerjs/core": "0.8.1-nightly.202506121607",
53
- "@univerjs/design": "0.8.1-nightly.202506121607",
54
- "@univerjs/sheets-ui": "0.8.1-nightly.202506121607",
55
- "@univerjs/sheets": "0.8.1-nightly.202506121607",
56
- "@univerjs/ui": "0.8.1-nightly.202506121607"
50
+ "@univerjs-pro/collaboration-client": "0.8.1-nightly.202506141606",
51
+ "@univerjs/core": "0.8.1-nightly.202506141606",
52
+ "@univerjs/design": "0.8.1-nightly.202506141606",
53
+ "@univerjs/sheets": "0.8.1-nightly.202506141606",
54
+ "@univerjs/sheets-ui": "0.8.1-nightly.202506141606",
55
+ "@univerjs-pro/collaboration": "0.8.1-nightly.202506141606",
56
+ "@univerjs/ui": "0.8.1-nightly.202506141606"
57
57
  },
58
58
  "devDependencies": {
59
- "postcss": "^8.5.4",
59
+ "postcss": "^8.5.5",
60
60
  "react": "18.3.1",
61
61
  "rxjs": "7.8.2",
62
62
  "tailwindcss": "^3.4.17",
63
63
  "typescript": "^5.8.3",
64
64
  "vite": "^6.3.5",
65
- "vitest": "^3.2.0",
65
+ "vitest": "^3.2.3",
66
66
  "@univerjs-infra/shared": "0.8.1",
67
67
  "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },