@univerjs-pro/live-share 0.8.1-nightly.202506171607 → 0.8.1-nightly.202506191607

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 _0x466a9f=_0x5997;(function(_0x5aa950,_0x2a3f6d){var _0x507314=_0x5997,_0x2c2e40=_0x5aa950();while(!![]){try{var _0xdd64d7=-parseInt(_0x507314(0x148))/0x1*(-parseInt(_0x507314(0x160))/0x2)+-parseInt(_0x507314(0x154))/0x3*(parseInt(_0x507314(0x14d))/0x4)+parseInt(_0x507314(0xe8))/0x5+-parseInt(_0x507314(0x147))/0x6*(parseInt(_0x507314(0xe0))/0x7)+-parseInt(_0x507314(0x126))/0x8+-parseInt(_0x507314(0xcc))/0x9+parseInt(_0x507314(0x18f))/0xa;if(_0xdd64d7===_0x2a3f6d)break;else _0x2c2e40['push'](_0x2c2e40['shift']());}catch(_0x4eefef){_0x2c2e40['push'](_0x2c2e40['shift']());}}}(_0x2ee6,0x7c4e8));var U=Object['defineProperty'],F=(_0x3fe1f3,_0x4ceb71,_0x477c13)=>_0x4ceb71 in _0x3fe1f3?U(_0x3fe1f3,_0x4ceb71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x477c13}):_0x3fe1f3[_0x4ceb71]=_0x477c13,v=(_0x5e4c20,_0x23919b,_0x221f43)=>F(_0x5e4c20,typeof _0x23919b!=_0x466a9f(0x120)?_0x23919b+'':_0x23919b,_0x221f43);Object[_0x466a9f(0x19d)](exports,Symbol[_0x466a9f(0x163)],{'value':_0x466a9f(0x12f)});const m=require(_0x466a9f(0x1a6)),o=require(_0x466a9f(0x143)),C=require('@univerjs/sheets'),w=require(_0x466a9f(0x17b)),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require(_0x466a9f(0x11e)),_=require(_0x466a9f(0x1a4)),D=require(_0x466a9f(0x117)),b=require(_0x466a9f(0x102)),$=_0x466a9f(0x144),x={};class O extends o['Disposable']{constructor(){super(...arguments),v(this,'_sharedOperations',new Set()),v(this,'_reporters',new Set());}['registerSharedOperation'](_0xd417cd){var _0x4afd2e=_0x466a9f;return this[_0x4afd2e(0x10f)][_0x4afd2e(0x173)](_0xd417cd),o[_0x4afd2e(0xe4)](()=>this[_0x4afd2e(0x10f)]['delete'](_0xd417cd));}[_0x466a9f(0xd9)](_0x2ffb03){var _0x58163e=_0x466a9f;return this[_0x58163e(0xe1)][_0x58163e(0x173)](_0x2ffb03),o['toDisposable'](()=>this[_0x58163e(0xe1)][_0x58163e(0xe5)](_0x2ffb03));}['shouldShareOperation'](_0x56eca3){var _0x25c829=_0x466a9f;return this[_0x25c829(0x10f)][_0x25c829(0x130)](_0x56eca3);}[_0x466a9f(0x141)](_0x2e3213){var _0x422008=_0x466a9f;return Array[_0x422008(0x1ae)](this['_reporters'])['map'](_0x5cb0bb=>_0x5cb0bb(_0x2e3213));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x2f66b0,_0xc6c40,_0x4560ea,_0x10daee)=>{var _0x234e75=_0x466a9f;for(var _0x94c825=_0x10daee>0x1?void 0x0:_0x10daee?H(_0xc6c40,_0x4560ea):_0xc6c40,_0x540df1=_0x2f66b0[_0x234e75(0x198)]-0x1,_0x51a8fb;_0x540df1>=0x0;_0x540df1--)(_0x51a8fb=_0x2f66b0[_0x540df1])&&(_0x94c825=_0x51a8fb(_0x94c825)||_0x94c825);return _0x94c825;},k=(_0x1d57cf,_0x10a738)=>(_0xf06280,_0x5ee9ff)=>_0x10a738(_0xf06280,_0x5ee9ff,_0x1d57cf);let E=class extends o['Disposable']{constructor(_0x135e06){var _0x33a4d5=_0x466a9f;super(),this[_0x33a4d5(0x131)]=_0x135e06,this['_init']();}[_0x466a9f(0x13c)](){var _0x511372=_0x466a9f;[w['SetZoomRatioOperation']['id'],w[_0x511372(0x184)]['id'],C['SetWorksheetActiveOperation']['id']][_0x511372(0x149)](_0x3e7a20=>{var _0x3e36fd=_0x511372;this[_0x3e36fd(0x150)](this[_0x3e36fd(0x131)]['registerSharedOperation'](_0x3e7a20));});}};E=V([k(0x0,o[_0x466a9f(0x182)](O))],E);var u=function(){var _0x3135e4=_0x466a9f;return u=Object[_0x3135e4(0xd7)]||function(_0x2273c7){var _0x5bad0f=_0x3135e4;for(var _0x1a423a,_0x25dc89=0x1,_0x2d0faf=arguments[_0x5bad0f(0x198)];_0x25dc89<_0x2d0faf;_0x25dc89++){_0x1a423a=arguments[_0x25dc89];for(var _0x29b376 in _0x1a423a)Object['prototype'][_0x5bad0f(0x136)]['call'](_0x1a423a,_0x29b376)&&(_0x2273c7[_0x29b376]=_0x1a423a[_0x29b376]);}return _0x2273c7;},u['apply'](this,arguments);},M=function(_0x470957,_0x2b6d23){var _0x5d0165=_0x466a9f,_0x581df7={};for(var _0x231356 in _0x470957)Object[_0x5d0165(0x16d)][_0x5d0165(0x136)][_0x5d0165(0xd3)](_0x470957,_0x231356)&&_0x2b6d23[_0x5d0165(0x18c)](_0x231356)<0x0&&(_0x581df7[_0x231356]=_0x470957[_0x231356]);if(_0x470957!=null&&typeof Object[_0x5d0165(0x199)]==_0x5d0165(0xd8)){for(var _0x3d319c=0x0,_0x231356=Object[_0x5d0165(0x199)](_0x470957);_0x3d319c<_0x231356[_0x5d0165(0x198)];_0x3d319c++)_0x2b6d23[_0x5d0165(0x18c)](_0x231356[_0x3d319c])<0x0&&Object[_0x5d0165(0x16d)][_0x5d0165(0xfd)][_0x5d0165(0xd3)](_0x470957,_0x231356[_0x3d319c])&&(_0x581df7[_0x231356[_0x3d319c]]=_0x470957[_0x231356[_0x3d319c]]);}return _0x581df7;},j=f[_0x466a9f(0xe9)](function(_0x464d76,_0x4da443){var _0x22c7d7=_0x466a9f,_0x577c87=_0x464d76['icon'],_0x2a96bc=_0x464d76['id'],_0x12fa39=_0x464d76['className'],_0x1c5a4a=_0x464d76['extend'],_0x3f1148=M(_0x464d76,[_0x22c7d7(0x194),'id',_0x22c7d7(0x119),_0x22c7d7(0xed)]),_0x4392d3=_0x22c7d7(0xfb)['concat'](_0x2a96bc,'\x20')[_0x22c7d7(0x1aa)](_0x12fa39||'')['trim'](),_0x51e9ad=f['useRef']('_'[_0x22c7d7(0x1aa)](G()));return y(_0x577c87,''[_0x22c7d7(0x1aa)](_0x2a96bc),{'defIds':_0x577c87[_0x22c7d7(0x14c)],'idSuffix':_0x51e9ad[_0x22c7d7(0xe3)]},u({'ref':_0x4da443,'className':_0x4392d3},_0x3f1148),_0x1c5a4a);});function y(_0x349ab6,_0x324e72,_0x248801,_0x3ad6cc,_0x2d888c){var _0x1d5c3f=_0x466a9f;return f[_0x1d5c3f(0x140)](_0x349ab6[_0x1d5c3f(0x170)],u(u({'key':_0x324e72},q(_0x349ab6,_0x248801,_0x2d888c)),_0x3ad6cc),(W(_0x349ab6,_0x248801)[_0x1d5c3f(0x15c)]||[])[_0x1d5c3f(0x172)](function(_0x4920fe,_0x5776c8){var _0x22bdf0=_0x1d5c3f;return y(_0x4920fe,''[_0x22bdf0(0x1aa)](_0x324e72,'-')[_0x22bdf0(0x1aa)](_0x349ab6[_0x22bdf0(0x170)],'-')[_0x22bdf0(0x1aa)](_0x5776c8),_0x248801,void 0x0,_0x2d888c);}));}function q(_0x31cea3,_0x56ab16,_0x3d22ab){var _0x3447b9=_0x466a9f,_0x5011be=u({},_0x31cea3[_0x3447b9(0xe2)]);_0x3d22ab!=null&&_0x3d22ab[_0x3447b9(0x196)]&&_0x5011be[_0x3447b9(0x137)]==='colorChannel1'&&(_0x5011be['fill']=_0x3d22ab['colorChannel1']),_0x31cea3['tag']==='mask'&&_0x5011be['id']&&(_0x5011be['id']=_0x5011be['id']+_0x56ab16[_0x3447b9(0xec)]),Object[_0x3447b9(0x168)](_0x5011be)['forEach'](function(_0x42d337){var _0x2b8d15=_0x3447b9,_0x10ef43=_0x42d337[0x0],_0x3f873d=_0x42d337[0x1];_0x10ef43===_0x2b8d15(0x167)&&typeof _0x3f873d==_0x2b8d15(0x189)&&(_0x5011be[_0x10ef43]=_0x3f873d[_0x2b8d15(0x15e)](/url\(#(.*)\)/,_0x2b8d15(0x156)[_0x2b8d15(0x1aa)](_0x56ab16[_0x2b8d15(0xec)],')')));});var _0x27c573=_0x56ab16[_0x3447b9(0x14c)];return!_0x27c573||_0x27c573[_0x3447b9(0x198)]===0x0||(_0x31cea3[_0x3447b9(0x170)]===_0x3447b9(0x187)&&_0x5011be[_0x3447b9(0x16a)]&&(_0x5011be[_0x3447b9(0x16a)]=_0x5011be[_0x3447b9(0x16a)]+_0x56ab16[_0x3447b9(0xec)]),Object[_0x3447b9(0x168)](_0x5011be)[_0x3447b9(0x149)](function(_0x4fc9c7){var _0x445fc7=_0x3447b9,_0x3a9cc6=_0x4fc9c7[0x0],_0x4d3b85=_0x4fc9c7[0x1];typeof _0x4d3b85==_0x445fc7(0x189)&&(_0x5011be[_0x3a9cc6]=_0x4d3b85[_0x445fc7(0x15e)](/url\(#(.*)\)/,'url(#$1'[_0x445fc7(0x1aa)](_0x56ab16[_0x445fc7(0xec)],')')));})),_0x5011be;}function W(_0x8aa5c,_0x3fc7dc){var _0x2745c0=_0x466a9f,_0x59aed3,_0x64056f=_0x3fc7dc['defIds'];return!_0x64056f||_0x64056f[_0x2745c0(0x198)]===0x0?_0x8aa5c:_0x8aa5c['tag']===_0x2745c0(0x1b7)&&(!((_0x59aed3=_0x8aa5c[_0x2745c0(0x15c)])===null||_0x59aed3===void 0x0)&&_0x59aed3[_0x2745c0(0x198)])?u(u({},_0x8aa5c),{'children':_0x8aa5c[_0x2745c0(0x15c)][_0x2745c0(0x172)](function(_0x29979d){var _0xd5ae6d=_0x2745c0;return typeof _0x29979d[_0xd5ae6d(0xe2)]['id']==_0xd5ae6d(0x189)&&_0x64056f&&_0x64056f[_0xd5ae6d(0x104)](_0x29979d['attrs']['id'])?u(u({},_0x29979d),{'attrs':u(u({},_0x29979d[_0xd5ae6d(0xe2)]),{'id':_0x29979d[_0xd5ae6d(0xe2)]['id']+_0x3fc7dc[_0xd5ae6d(0xec)]})}):_0x29979d;})}):_0x8aa5c;}function G(){var _0x38aeaf=_0x466a9f;return Math[_0x38aeaf(0x19f)]()[_0x38aeaf(0x1af)](0x24)[_0x38aeaf(0x165)](0x2,0x8);}j[_0x466a9f(0x18a)]=_0x466a9f(0x19b);var B={'tag':_0x466a9f(0x17a),'attrs':{'xmlns':_0x466a9f(0x1b6),'fill':_0x466a9f(0x17f),'viewBox':_0x466a9f(0x19e),'width':_0x466a9f(0x1b2),'height':_0x466a9f(0x1b2)},'children':[{'tag':_0x466a9f(0x17d),'attrs':{'fill':'currentColor','d':_0x466a9f(0xe6)}},{'tag':_0x466a9f(0x17d),'attrs':{'fill':_0x466a9f(0xcb),'d':_0x466a9f(0xff),'fillRule':'evenodd','clipRule':_0x466a9f(0x192)}}]},P=f[_0x466a9f(0xe9)](function(_0x46a2af,_0x94976f){var _0x587af1=_0x466a9f;return f[_0x587af1(0x140)](j,Object['assign']({},_0x46a2af,{'id':_0x587af1(0x103),'ref':_0x94976f,'icon':B}));});P[_0x466a9f(0x18a)]=_0x466a9f(0x11b);var Y=Object['getOwnPropertyDescriptor'],R=(_0x15b06e,_0xb089f8,_0x41952d,_0xb46ac3)=>{var _0x1f32e0=_0x466a9f;for(var _0x4cae1e=_0xb46ac3>0x1?void 0x0:_0xb46ac3?Y(_0xb089f8,_0x41952d):_0xb089f8,_0x1af37a=_0x15b06e[_0x1f32e0(0x198)]-0x1,_0x4fe284;_0x1af37a>=0x0;_0x1af37a--)(_0x4fe284=_0x15b06e[_0x1af37a])&&(_0x4cae1e=_0x4fe284(_0x4cae1e)||_0x4cae1e);return _0x4cae1e;},S=(_0x2c1dc4,_0x55dcdb)=>(_0x283f64,_0x2ed6e7)=>_0x55dcdb(_0x283f64,_0x2ed6e7,_0x2c1dc4);function _0x5997(_0x1a09af,_0x276e60){var _0x2ee661=_0x2ee6();return _0x5997=function(_0x5997f0,_0x2e4546){_0x5997f0=_0x5997f0-0xcb;var _0x1c6d7f=_0x2ee661[_0x5997f0];return _0x1c6d7f;},_0x5997(_0x1a09af,_0x276e60);}exports[_0x466a9f(0x122)]=class extends o[_0x466a9f(0x177)]{constructor(_0x2375ca,_0xff9636,_0x31ae45){var _0x1345de=_0x466a9f;super(),v(this,'_entities',new Map()),(this[_0x1345de(0xd1)]=_0x2375ca,this[_0x1345de(0xe7)]=_0xff9636,this[_0x1345de(0xfa)]=_0x31ae45,this[_0x1345de(0x13c)]());}async[_0x466a9f(0x12a)](_0x12ed30){var _0xdb6194=_0x466a9f;return this[_0xdb6194(0xf7)]['has'](_0x12ed30)||await this[_0xdb6194(0x164)](_0x12ed30),this[_0xdb6194(0xf7)][_0xdb6194(0x112)](_0x12ed30);}[_0x466a9f(0x13c)](){var _0x38e2a7=_0x466a9f;this[_0x38e2a7(0xd1)]['getTypeOfUnitAdded$'](o[_0x38e2a7(0xf6)]['UNIVER_SHEET'])[_0x38e2a7(0x1b1)](b[_0x38e2a7(0x11c)](this['dispose$']))[_0x38e2a7(0x125)](async _0x22085e=>{var _0x7fcf4=_0x38e2a7;const _0x3cd2c2=_0x22085e[_0x7fcf4(0x18b)]();this[_0x7fcf4(0xf7)][_0x7fcf4(0x130)](_0x3cd2c2)||this[_0x7fcf4(0x164)](_0x3cd2c2);}),this[_0x38e2a7(0xd1)][_0x38e2a7(0xd6)](o['UniverInstanceType']['UNIVER_SHEET'])['pipe'](b[_0x38e2a7(0x11c)](this['dispose$']))[_0x38e2a7(0x125)](_0x171bfa=>{var _0x47f5ec=_0x38e2a7;const _0x1ae43d=_0x171bfa[_0x47f5ec(0x18b)](),_0x2c206e=this['_entities'][_0x47f5ec(0x112)](_0x1ae43d);_0x2c206e==null||_0x2c206e['dispose']();});}async['_startLiveShareCoordinator'](_0x1c28ea){var _0x50336c=_0x466a9f;const _0x29488f=await this[_0x50336c(0xfa)][_0x50336c(0x15f)](_0x1c28ea),_0x554308=this['_injector'][_0x50336c(0x195)](exports[_0x50336c(0x13d)],_0x1c28ea,_0x29488f);return _0x554308[_0x50336c(0xf0)](),this[_0x50336c(0xf7)][_0x50336c(0x123)](_0x1c28ea,_0x554308),_0x554308;}},exports['LiveShareController']=R([S(0x0,o[_0x466a9f(0x190)]),S(0x1,o[_0x466a9f(0x182)](o['Injector'])),S(0x2,o['Inject'](m[_0x466a9f(0x157)]))],exports[_0x466a9f(0x122)]);var h=(_0x2f4afa=>(_0x2f4afa[_0x466a9f(0x13a)]=_0x466a9f(0x13f),_0x2f4afa[_0x466a9f(0xde)]=_0x466a9f(0x18e),_0x2f4afa[_0x466a9f(0x171)]=_0x466a9f(0x107),_0x2f4afa[_0x466a9f(0x19a)]=_0x466a9f(0x124),_0x2f4afa[_0x466a9f(0x10b)]='presenting',_0x2f4afa))(h||{});const Z=_0x466a9f(0x111),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x466a9f(0x177)]{constructor(_0x17691a,_0x2a7607,_0x275e58,_0x399d37,_0x1f24c5){var _0x4768ce=_0x466a9f;super(),v(this,_0x4768ce(0xcd),new D[(_0x4768ce(0x155))](_0x4768ce(0x18e))),v(this,'status$',this[_0x4768ce(0xcd)]['asObservable']()),v(this,_0x4768ce(0x13c),!0x1),v(this,_0x4768ce(0x174),null),v(this,'_presenter',null),(this['_unitID']=_0x17691a,this[_0x4768ce(0x135)]=_0x2a7607,this['_configService']=_0x275e58,this[_0x4768ce(0x131)]=_0x399d37,this[_0x4768ce(0x127)]=_0x1f24c5);}get[_0x466a9f(0x129)](){var _0x3fb022=_0x466a9f;return this[_0x3fb022(0xcd)][_0x3fb022(0x1b3)]();}['dispose'](){var _0x1555c3=_0x466a9f,_0x4dbd36;(_0x4dbd36=this[_0x1555c3(0x174)])==null||_0x4dbd36[_0x1555c3(0x14a)](),this[_0x1555c3(0xcd)][_0x1555c3(0x15b)](_0x1555c3(0x18e)),this['_status$'][_0x1555c3(0x114)]();}[_0x466a9f(0xf0)](){var _0x4e4a94=_0x466a9f;this[_0x4e4a94(0x13c)]||(this['_init']=!0x0,this[_0x4e4a94(0x135)][_0x4e4a94(0x16f)][_0x4e4a94(0x1b1)](b[_0x4e4a94(0x11c)](this[_0x4e4a94(0x178)]))[_0x4e4a94(0x125)](_0x3604a6=>{var _0x2b6e8c=_0x4e4a94;switch(_0x3604a6){case m[_0x2b6e8c(0x118)][_0x2b6e8c(0x13a)]:this[_0x2b6e8c(0xda)]();break;case m[_0x2b6e8c(0x118)][_0x2b6e8c(0xf5)]:this[_0x2b6e8c(0xd0)]();break;}}),this[_0x4e4a94(0x135)][_0x4e4a94(0x128)][_0x4e4a94(0x1b1)](b['takeUntil'](this[_0x4e4a94(0x178)]))['subscribe'](_0x5bdac5=>{var _0x305dfc=_0x4e4a94;const {eventID:_0x509c14}=_0x5bdac5;switch(_0x509c14){case _['CollaborationEvent'][_0x305dfc(0x15a)]:this['_handleNewHost'](_0x5bdac5);break;case _[_0x305dfc(0x1ab)][_0x305dfc(0x110)]:this[_0x305dfc(0x18d)](_0x5bdac5);break;case _[_0x305dfc(0x1ab)][_0x305dfc(0xeb)]:this[_0x305dfc(0x142)]();break;case _['CollaborationEvent']['NEW_CHANGESETS']:this[_0x305dfc(0x1a3)](_0x5bdac5);break;}}));}[_0x466a9f(0x1a9)](){var _0x178f5b=_0x466a9f;this[_0x178f5b(0x135)]['send']({'eventID':_[_0x178f5b(0x1ab)][_0x178f5b(0x10d)],'data':{'unitID':this[_0x178f5b(0x12b)],'userID':this[_0x178f5b(0x135)][_0x178f5b(0x1a2)]()}},this['_unitID']);}[_0x466a9f(0xf2)](){var _0x32542a=_0x466a9f;this[_0x32542a(0x129)]===_0x32542a(0x151)&&(this['_status$'][_0x32542a(0x15b)](_0x32542a(0x18e)),this['_collabSession'][_0x32542a(0x162)]({'eventID':_['CollaborationEvent'][_0x32542a(0xeb)],'data':{'unitID':this[_0x32542a(0x12b)]}},this['_unitID']));}[_0x466a9f(0xdb)](){var _0x2421da=_0x466a9f;this[_0x2421da(0x129)]===_0x2421da(0x124)&&(this['_status$'][_0x2421da(0x15b)]('following'),this[_0x2421da(0x13b)]());}[_0x466a9f(0x186)](){var _0x2e8184=_0x466a9f;this['_status']==='following'&&this[_0x2e8184(0x19c)]();}[_0x466a9f(0x10e)](_0x5e1f4d){var _0x2f503b=_0x466a9f;const {presenter:_0x1f1acd}=_0x5e1f4d[_0x2f503b(0x1b0)],_0x1632ca=this[_0x2f503b(0x135)][_0x2f503b(0x1a2)]();this[_0x2f503b(0xf9)]=_0x1f1acd,_0x1f1acd===_0x1632ca?(this[_0x2f503b(0x19c)](),this['_startPresenting']()):this[_0x2f503b(0x129)]!==_0x2f503b(0x124)&&(this[_0x2f503b(0xd4)](),this[_0x2f503b(0x13b)]());}[_0x466a9f(0x188)](){var _0x34e68e=_0x466a9f;const _0x30f2bf={'eventID':_['CollaborationEvent'][_0x34e68e(0xdc)]};this[_0x34e68e(0x135)][_0x34e68e(0x162)](_0x30f2bf,this[_0x34e68e(0x12b)]);}[_0x466a9f(0x142)](){var _0x12f394=_0x466a9f;this[_0x12f394(0xf9)]=null,this[_0x12f394(0x129)]!==_0x12f394(0x151)&&this[_0x12f394(0x106)]();}[_0x466a9f(0x1a3)](_0x574f3a){var _0x507a6d=_0x466a9f;if(this[_0x507a6d(0x129)]==='following'&&this[_0x507a6d(0xf9)]===_0x574f3a[_0x507a6d(0x1b0)][_0x507a6d(0x1a7)]){const _0x4f9173=_[_0x507a6d(0x109)](_0x574f3a[_0x507a6d(0x1b0)])[_0x507a6d(0x108)][_0x507a6d(0x15d)]()[_0x507a6d(0x17c)](_0x1ef326=>_0x1ef326['id']===C[_0x507a6d(0x1a1)]['id']);if(_0x4f9173){const _0x19ab1b=_0x4f9173[_0x507a6d(0x13e)][_0x507a6d(0x10a)],_0x47b81c=_0x4f9173['params'][_0x507a6d(0x100)]['id'];setTimeout(()=>{var _0x4ca170=_0x507a6d;this[_0x4ca170(0x127)][_0x4ca170(0x1ad)](C[_0x4ca170(0x16e)]['id'],{'unitId':_0x19ab1b,'subUnitId':_0x47b81c},{'fromCollab':!0x0});});}}}[_0x466a9f(0x11f)](){var _0x44562e=_0x466a9f;this['_status$'][_0x44562e(0x15b)]('presenting');const _0x1d3988=new Map(),_0x44c532=this[_0x44562e(0x174)]=new o[(_0x44562e(0x169))]();_0x44c532[_0x44562e(0x173)](o[_0x44562e(0xe4)](()=>{var _0x48a37c=_0x44562e;_0x1d3988[_0x48a37c(0x149)](_0xf7539=>_0xf7539[_0x48a37c(0x114)]()),_0x1d3988['clear']();})),_0x44c532[_0x44562e(0x173)](this[_0x44562e(0x127)][_0x44562e(0x179)](_0x2cf445=>{var _0x410812=_0x44562e,_0x100ad1;if(_0x2cf445['type']!==o[_0x410812(0x183)][_0x410812(0x153)]||!this['_liveShareService'][_0x410812(0xf4)](_0x2cf445['id']))return;const {id:_0x18ac46}=_0x2cf445;let _0x5c4074;_0x1d3988[_0x410812(0x130)](_0x18ac46)?_0x5c4074=_0x1d3988[_0x410812(0x112)](_0x18ac46):(_0x5c4074=new D[(_0x410812(0xce))](),_0x1d3988['set'](_0x18ac46,_0x5c4074),_0x5c4074['pipe'](b[_0x410812(0xd2)]((_0x100ad1=this[_0x410812(0x158)][_0x410812(0x1ac)](Z))!=null?_0x100ad1:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2fa01a=>{var _0x41a7fc=_0x410812;this['_collabSession'][_0x41a7fc(0x162)]({'eventID':_[_0x41a7fc(0x1ab)][_0x41a7fc(0x110)],'data':{'unitID':this[_0x41a7fc(0x12b)],'operations':{[_0x2fa01a['id']]:{'id':_0x2fa01a['id'],'params':JSON[_0x41a7fc(0x180)](_0x2fa01a['params'])}}}},this[_0x41a7fc(0x12b)]);})),_0x5c4074[_0x410812(0x15b)](_0x2cf445);})),this[_0x44562e(0x131)][_0x44562e(0x141)](this['_unitID'])[_0x44562e(0x149)](_0x5053aa=>this['_collabSession'][_0x44562e(0x162)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x44562e(0x12b)],'operations':{[_0x5053aa['id']]:{'id':_0x5053aa['id'],'params':JSON[_0x44562e(0x180)](_0x5053aa[_0x44562e(0x13e)])}}}},this[_0x44562e(0x12b)]));}[_0x466a9f(0xd4)](){var _0x260f00=_0x466a9f,_0x16af70;this[_0x260f00(0xcd)][_0x260f00(0x15b)]('idle'),(_0x16af70=this[_0x260f00(0x174)])==null||_0x16af70[_0x260f00(0x14a)](),this[_0x260f00(0x174)]=null;}['_startFollowing'](){var _0x40cd6d=_0x466a9f,_0x24770e;(_0x24770e=this[_0x40cd6d(0x174)])==null||_0x24770e['dispose'](),this['_status$']['next'](_0x40cd6d(0x107));}['_beIdle'](){var _0x402ab1=_0x466a9f,_0x2ea5b3;this[_0x402ab1(0xcd)][_0x402ab1(0x15b)](_0x402ab1(0x18e)),(_0x2ea5b3=this[_0x402ab1(0x174)])==null||_0x2ea5b3[_0x402ab1(0x14a)](),this[_0x402ab1(0x174)]=null;}['_stopFollowing'](){var _0x171d65=_0x466a9f,_0x4f5210;this[_0x171d65(0xcd)][_0x171d65(0x15b)](_0x171d65(0x124)),(_0x4f5210=this['_commandDisposable'])==null||_0x4f5210[_0x171d65(0x14a)]();}['_handleOperation'](_0x1acf04){var _0x577ef1=_0x466a9f;if(['presenting',_0x577ef1(0x124),_0x577ef1(0x13f)][_0x577ef1(0x104)](this[_0x577ef1(0x129)])||!_0x1acf04[_0x577ef1(0x1b0)][_0x577ef1(0x12d)]||_0x1acf04['data'][_0x577ef1(0x12d)]===this['_collabSession'][_0x577ef1(0x1a2)]())return;this['_status']==='idle'&&this[_0x577ef1(0x13b)]();const _0x35ad69=_0x1acf04[_0x577ef1(0x1b0)][_0x577ef1(0x132)];Object[_0x577ef1(0x16b)](_0x35ad69)[_0x577ef1(0x149)](_0x239924=>{var _0x567cb9=_0x577ef1;this[_0x567cb9(0x127)]['executeCommand'](_0x239924['id'],_0x239924[_0x567cb9(0x13e)]?JSON['parse'](_0x239924[_0x567cb9(0x13e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x584da0=_0x466a9f,_0xf933b3;this[_0x584da0(0xcd)][_0x584da0(0x15b)](_0x584da0(0x13f)),(_0xf933b3=this[_0x584da0(0x174)])==null||_0xf933b3[_0x584da0(0x14a)]();}[_0x466a9f(0xd0)](){var _0x526e8d=_0x466a9f;this['_status$'][_0x526e8d(0x15b)]('idle'),this[_0x526e8d(0x188)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x466a9f(0x11a)]),S(0x3,o[_0x466a9f(0x182)](O)),S(0x4,o[_0x466a9f(0x16c)])],exports[_0x466a9f(0x13d)]);function A(){var _0x3dae4c=_0x466a9f;const _0x51e07a=p['useDependency'](exports['LiveShareController']),_0x104843=p[_0x3dae4c(0x14b)](o[_0x3dae4c(0x190)]),_0x6967c=p['useObservable'](()=>_0x104843[_0x3dae4c(0xd5)](o[_0x3dae4c(0xf6)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1cd69f,_0x1786b5]=f[_0x3dae4c(0xdf)](null),[_0x1556bb,_0x720d5e]=f[_0x3dae4c(0xdf)](h['IDLE']),_0x11201f=f[_0x3dae4c(0x12e)](null);return f['useEffect'](()=>(_0x6967c&&_0x51e07a['getLiveShareCoordinator'](_0x6967c[_0x3dae4c(0x18b)]())['then'](_0x50beb3=>{var _0x168d64=_0x3dae4c;_0x1786b5(_0x50beb3),_0x11201f[_0x168d64(0xe3)]=_0x50beb3['status$'][_0x168d64(0x125)](_0xd5318c=>{_0x720d5e(_0xd5318c);});}),()=>{var _0x53dc68=_0x3dae4c,_0x413626;(_0x413626=_0x11201f[_0x53dc68(0xe3)])==null||_0x413626[_0x53dc68(0x12c)](),_0x11201f[_0x53dc68(0xe3)]=null;}),[_0x6967c,_0x51e07a]),_0x1cd69f?l['jsx'](g['Dropdown'],{'align':_0x3dae4c(0xfe),'disabled':_0x1556bb===h[_0x3dae4c(0x13a)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x3dae4c(0x116)](K,{'status':_0x1556bb,'coordinator':_0x1cd69f}),'children':l[_0x3dae4c(0x116)]('button',{'className':g['clsx'](_0x3dae4c(0xea),{'univer-cursor-not-allowed':_0x1556bb===h[_0x3dae4c(0x13a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1556bb!==h['OFFLINE']}),'type':'button','children':l[_0x3dae4c(0x116)](P,{'className':_0x3dae4c(0x1b4)})})}):null;}function K(_0x1253e1){var _0x1a3404=_0x466a9f;const {status:_0x5bfeca,coordinator:_0x582d89}=_0x1253e1;switch(_0x5bfeca){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x582d89});case h['FOLLOWING']:return l[_0x1a3404(0x116)](Q,{'coordinator':_0x582d89});case h[_0x1a3404(0x19a)]:return l[_0x1a3404(0x116)](X,{'coordinator':_0x582d89});case h[_0x1a3404(0x13a)]:return l[_0x1a3404(0x116)](te,{});case h[_0x1a3404(0x10b)]:return l[_0x1a3404(0x116)](ee,{'coordinator':_0x582d89});default:return null;}}function z(_0x505037){var _0x32f8b5=_0x466a9f;const {coordinator:_0x4c5adf}=_0x505037;return l[_0x32f8b5(0x145)](l[_0x32f8b5(0x146)],{'children':[l[_0x32f8b5(0x116)](_0x32f8b5(0x14e),{'className':_0x32f8b5(0x185),'children':'Present\x20this\x20document'}),l['jsx'](g[_0x32f8b5(0x17e)],{'onClick':()=>_0x4c5adf[_0x32f8b5(0x1a9)](),'children':_0x32f8b5(0xf8)})]});}function Q(_0x53e815){var _0x458d52=_0x466a9f;const {coordinator:_0x5efbd2}=_0x53e815;return l[_0x458d52(0x145)](l['Fragment'],{'children':[l['jsx'](_0x458d52(0x14e),{'className':_0x458d52(0x185),'children':_0x458d52(0x181)}),l[_0x458d52(0x116)](g[_0x458d52(0x17e)],{'onClick':()=>_0x5efbd2['stopFollowing'](),'children':_0x458d52(0x105)})]});}function _0x2ee6(){var _0x4aa18a=['tag','FOLLOWING','map','add','_commandDisposable','_uiPartsService','registerDependencies','RxDisposable','dispose$','onCommandExecuted','svg','@univerjs/sheets-ui','find','path','Button','none','stringify','You\x27re\x20following\x20the\x20presenter','Inject','CommandType','SetScrollOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','use','_fetchOperations','string','displayName','getUnitId','indexOf','_handleOperation','idle','23001500chIRzm','IUniverInstanceService','Stop\x20presenting','evenodd','LiveShare','icon','createInstance','colorChannel1','setConfig','length','getOwnPropertySymbols','NOT_FOLLOWING','UniverIcon','_stopFollowing','defineProperty','0\x200\x2017\x2017','random','IUIPartsService','InsertSheetMutation','getMemberID','_handleNewChangeSets','@univerjs-pro/collaboration','Plugin','@univerjs-pro/collaboration-client','memberID','touchDependencies','tryStartPresenting','concat','CollaborationEvent','getConfig','executeCommand','from','toString','data','pipe','1em','getValue','univer-size-4','UniverLiveSharePlugin','http://www.w3.org/2000/svg','defs','currentColor','8592165BlOeyF','_status$','Subject','You\x27are\x20offline.','_handleOnline','_univerInstanceService','throttleTime','call','_stopPresenting','getCurrentTypeOfUnit$','getTypeOfUnitDisposed$','assign','function','registerInitialStateReporter','_handleOffline','startFollowing','LIVESHARE_FETCH_OPERATIONS','_config','IDLE','useState','1445689zFZDTy','_reporters','attrs','current','toDisposable','delete','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','_injector','1594105PEBEDQ','forwardRef','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_TERMINATE','idSuffix','extend','DependentOn','UniverCollaborationClientPlugin','init','UNIVER_UNKNOWN','stopPresenting','type','shouldShareOperation','ONLINE','UniverInstanceType','_entities','Start','_presenter','_collabSessionService','univerjs-icon\x20univerjs-icon-','Disposable','propertyIsEnumerable','end','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','sheet','onStarting','rxjs/operators','live-share-icon','includes','Stop\x20following','_beIdle','following','mutations','parseProtocolChangeset','unitId','PRESENTING','LiveShareStatus','LIVESHARE_REQUEST_HOST','_handleNewHost','_sharedOperations','LIVESHARE_OPERATION','SAME_OPERATION_SHARE_INTERVAL','get','DesktopLiveShareController','complete','text','jsx','rxjs','SessionStatus','className','IConfigService','LiveShareIcon','takeUntil','BuiltInUIPart','react','_startPresenting','symbol','connectInjector','LiveShareController','set','not-following','subscribe','6014176kkIJLr','_commandService','event$','_status','getLiveShareCoordinator','_unitID','unsubscribe','presenter','useRef','Module','has','_liveShareService','operations','Start\x20following','_mountLiveShare','_collabSession','hasOwnProperty','fill','LiveShareService','onRendered','OFFLINE','_startFollowing','_init','LiveShareCoordinator','params','offline','createElement','getInitialStates','_handleTerminate','@univerjs/core','live-share.config','jsxs','Fragment','6zRVFIY','5Wwncjc','forEach','dispose','useDependency','defIds','3038488HWbNgu','div','UNIVER_LIVE_SHARE_PLUGIN','disposeWithMe','presenting','You\x27re\x20not\x20following\x20the\x20presenter','OPERATION','3TpIgTi','BehaviorSubject','url(#$1','CollaborationSessionService','_configService','getOwnPropertyDescriptor','LIVESHARE_NEW_HOST','next','children','reverse','replace','requireSession','225118nTKkAI','override','send','toStringTag','_startLiveShareCoordinator','substring','Injector','mask','entries','DisposableCollection','xlink:href','values','ICommandService','prototype','SetWorksheetActiveOperation','sessionStatus$'];_0x2ee6=function(){return _0x4aa18a;};return _0x2ee6();}function X(_0x22f4fe){var _0x1ec70d=_0x466a9f;const {coordinator:_0x2c8d2b}=_0x22f4fe;return l['jsxs'](l[_0x1ec70d(0x146)],{'children':[l['jsx'](_0x1ec70d(0x14e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1ec70d(0x152)}),l[_0x1ec70d(0x116)](g[_0x1ec70d(0x17e)],{'variant':_0x1ec70d(0x115),'onClick':()=>_0x2c8d2b[_0x1ec70d(0xdb)](),'children':_0x1ec70d(0x133)})]});}function ee(_0x28a66e){var _0x871e51=_0x466a9f;const {coordinator:_0x279e1f}=_0x28a66e;return l[_0x871e51(0x145)](l[_0x871e51(0x146)],{'children':[l['jsx']('div',{'className':_0x871e51(0x185),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x871e51(0x116)](g[_0x871e51(0x17e)],{'variant':'default','onClick':()=>_0x279e1f['stopPresenting'](),'children':_0x871e51(0x191)})]});}function te(){var _0x27b9cf=_0x466a9f;return l[_0x27b9cf(0x116)](l[_0x27b9cf(0x146)],{'children':_0x27b9cf(0xcf)});}var ie=Object[_0x466a9f(0x159)],ne=(_0xd13e81,_0x5ba878,_0x2f186b,_0x42bcfc)=>{var _0x387e7d=_0x466a9f;for(var _0x29fb48=_0x42bcfc>0x1?void 0x0:_0x42bcfc?ie(_0x5ba878,_0x2f186b):_0x5ba878,_0x10e18b=_0xd13e81[_0x387e7d(0x198)]-0x1,_0x2554ae;_0x10e18b>=0x0;_0x10e18b--)(_0x2554ae=_0xd13e81[_0x10e18b])&&(_0x29fb48=_0x2554ae(_0x29fb48)||_0x29fb48);return _0x29fb48;},L=(_0x102e72,_0x188764)=>(_0x4d047b,_0x4005ea)=>_0x188764(_0x4d047b,_0x4005ea,_0x102e72);exports[_0x466a9f(0x113)]=class extends o[_0x466a9f(0xfc)]{constructor(_0x5b05d5,_0x1f29af){var _0x38bfec=_0x466a9f;super(),this[_0x38bfec(0xe7)]=_0x5b05d5,this[_0x38bfec(0x175)]=_0x1f29af,this[_0x38bfec(0x134)]();}[_0x466a9f(0x134)](){var _0x2ccde1=_0x466a9f;this[_0x2ccde1(0x150)](this['_uiPartsService']['registerComponent'](p[_0x2ccde1(0x11d)]['HEADER_MENU'],()=>p[_0x2ccde1(0x121)](A,this[_0x2ccde1(0xe7)])));}},exports[_0x466a9f(0x113)]=ne([L(0x0,o[_0x466a9f(0x182)](o[_0x466a9f(0x166)])),L(0x1,p[_0x466a9f(0x1a0)])],exports[_0x466a9f(0x113)]);var re=Object[_0x466a9f(0x19d)],se=Object[_0x466a9f(0x159)],oe=(_0x35958a,_0x6a6fda,_0x510909)=>_0x6a6fda in _0x35958a?re(_0x35958a,_0x6a6fda,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x510909}):_0x35958a[_0x6a6fda]=_0x510909,ae=(_0x1b958b,_0x4295f9,_0x8a1c78,_0x499580)=>{var _0x16d058=_0x466a9f;for(var _0xebdf83=_0x499580>0x1?void 0x0:_0x499580?se(_0x4295f9,_0x8a1c78):_0x4295f9,_0x57fcb3=_0x1b958b[_0x16d058(0x198)]-0x1,_0x3cafb3;_0x57fcb3>=0x0;_0x57fcb3--)(_0x3cafb3=_0x1b958b[_0x57fcb3])&&(_0xebdf83=_0x3cafb3(_0xebdf83)||_0xebdf83);return _0xebdf83;},N=(_0xbf61dc,_0x9f5a73)=>(_0x3e0dca,_0x467f2c)=>_0x9f5a73(_0x3e0dca,_0x467f2c,_0xbf61dc),T=(_0x1e2684,_0x50f9b7,_0x41f7a9)=>oe(_0x1e2684,typeof _0x50f9b7!=_0x466a9f(0x120)?_0x50f9b7+'':_0x50f9b7,_0x41f7a9);const le=_0x466a9f(0x14f);exports[_0x466a9f(0x1b5)]=class extends o[_0x466a9f(0x1a5)]{constructor(_0x1994b6=x,_0xb30ccb,_0x75e0d0){var _0x304e44=_0x466a9f;super(),this[_0x304e44(0xdd)]=_0x1994b6,this[_0x304e44(0xe7)]=_0xb30ccb,this['_configService']=_0x75e0d0;const {..._0x757394}=o['merge']({},x,this[_0x304e44(0xdd)]);this[_0x304e44(0x158)][_0x304e44(0x197)]($,_0x757394);}[_0x466a9f(0x101)](){var _0x3bcd1e=_0x466a9f;o[_0x3bcd1e(0x176)](this[_0x3bcd1e(0xe7)],o['mergeOverrideWithDependencies']([[O],[exports['LiveShareController']],[E],[exports[_0x3bcd1e(0x113)]]],this[_0x3bcd1e(0xdd)][_0x3bcd1e(0x161)])),o[_0x3bcd1e(0x1a8)](this[_0x3bcd1e(0xe7)],[[E]]);}[_0x466a9f(0x139)](){var _0x2dc73f=_0x466a9f;o[_0x2dc73f(0x1a8)](this[_0x2dc73f(0xe7)],[[exports[_0x2dc73f(0x113)]]]);}},T(exports[_0x466a9f(0x1b5)],_0x466a9f(0xf3),o['UniverInstanceType'][_0x466a9f(0xf1)]),T(exports[_0x466a9f(0x1b5)],'pluginName',le),exports[_0x466a9f(0x1b5)]=ae([o[_0x466a9f(0xee)](m[_0x466a9f(0xef)]),N(0x1,o[_0x466a9f(0x182)](o[_0x466a9f(0x166)])),N(0x2,o[_0x466a9f(0x11a)])],exports[_0x466a9f(0x1b5)]),exports[_0x466a9f(0x193)]=A,exports[_0x466a9f(0x138)]=O,exports[_0x466a9f(0x10c)]=h;
1
+ 'use strict';var _0x5bcf12=_0x3d7e;(function(_0x1162eb,_0x45203e){var _0x711d9a=_0x3d7e,_0x30cb27=_0x1162eb();while(!![]){try{var _0x26be92=parseInt(_0x711d9a(0xd7))/0x1+parseInt(_0x711d9a(0x119))/0x2+-parseInt(_0x711d9a(0xec))/0x3*(-parseInt(_0x711d9a(0x103))/0x4)+-parseInt(_0x711d9a(0x10c))/0x5+parseInt(_0x711d9a(0x13d))/0x6+-parseInt(_0x711d9a(0x173))/0x7+-parseInt(_0x711d9a(0x13b))/0x8;if(_0x26be92===_0x45203e)break;else _0x30cb27['push'](_0x30cb27['shift']());}catch(_0x5e9bc1){_0x30cb27['push'](_0x30cb27['shift']());}}}(_0x3d0b,0xb5aed));var U=Object['defineProperty'],F=(_0x254bf6,_0x17cb25,_0x1c3609)=>_0x17cb25 in _0x254bf6?U(_0x254bf6,_0x17cb25,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c3609}):_0x254bf6[_0x17cb25]=_0x1c3609,v=(_0x5c8495,_0x7d1ff8,_0xb04cf8)=>F(_0x5c8495,typeof _0x7d1ff8!=_0x5bcf12(0x13c)?_0x7d1ff8+'':_0x7d1ff8,_0xb04cf8);Object[_0x5bcf12(0x1b1)](exports,Symbol[_0x5bcf12(0x122)],{'value':_0x5bcf12(0x13f)});const m=require(_0x5bcf12(0x105)),o=require('@univerjs/core'),C=require(_0x5bcf12(0x1ad)),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require(_0x5bcf12(0x13a)),g=require(_0x5bcf12(0xd5)),f=require(_0x5bcf12(0xda)),_=require(_0x5bcf12(0x128)),D=require(_0x5bcf12(0xcc)),b=require(_0x5bcf12(0x169)),$='live-share.config',x={};class O extends o[_0x5bcf12(0x1ae)]{constructor(){super(...arguments),v(this,'_sharedOperations',new Set()),v(this,'_reporters',new Set());}[_0x5bcf12(0x118)](_0x2b384b){var _0x1a71f6=_0x5bcf12;return this[_0x1a71f6(0x110)][_0x1a71f6(0x10f)](_0x2b384b),o[_0x1a71f6(0x109)](()=>this[_0x1a71f6(0x110)][_0x1a71f6(0x12f)](_0x2b384b));}[_0x5bcf12(0x1a7)](_0x12ff7f){var _0x404ff3=_0x5bcf12;return this[_0x404ff3(0x19f)][_0x404ff3(0x10f)](_0x12ff7f),o['toDisposable'](()=>this['_reporters']['delete'](_0x12ff7f));}[_0x5bcf12(0x172)](_0xe8efd9){var _0x10b478=_0x5bcf12;return this[_0x10b478(0x110)]['has'](_0xe8efd9);}[_0x5bcf12(0xf3)](_0x5f2e40){var _0x33e357=_0x5bcf12;return Array[_0x33e357(0x11f)](this[_0x33e357(0x19f)])['map'](_0x593c34=>_0x593c34(_0x5f2e40));}}var H=Object[_0x5bcf12(0x117)],V=(_0x31581e,_0x38e58,_0x56c8ed,_0x57cc3e)=>{var _0x11c52d=_0x5bcf12;for(var _0x2139e0=_0x57cc3e>0x1?void 0x0:_0x57cc3e?H(_0x38e58,_0x56c8ed):_0x38e58,_0x182280=_0x31581e[_0x11c52d(0x195)]-0x1,_0x9f5cf4;_0x182280>=0x0;_0x182280--)(_0x9f5cf4=_0x31581e[_0x182280])&&(_0x2139e0=_0x9f5cf4(_0x2139e0)||_0x2139e0);return _0x2139e0;},k=(_0x40157d,_0x7b6ae4)=>(_0xf2c708,_0x3b4e2e)=>_0x7b6ae4(_0xf2c708,_0x3b4e2e,_0x40157d);let E=class extends o[_0x5bcf12(0x1ae)]{constructor(_0x5cbb29){var _0x19bade=_0x5bcf12;super(),this[_0x19bade(0xf2)]=_0x5cbb29,this[_0x19bade(0x12a)]();}[_0x5bcf12(0x12a)](){var _0x31a7cc=_0x5bcf12;[w[_0x31a7cc(0x15c)]['id'],w[_0x31a7cc(0xd0)]['id'],C[_0x31a7cc(0x112)]['id']]['forEach'](_0x170383=>{var _0x24651e=_0x31a7cc;this[_0x24651e(0x1a5)](this[_0x24651e(0xf2)][_0x24651e(0x118)](_0x170383));});}};E=V([k(0x0,o['Inject'](O))],E);function _0x3d7e(_0x28addc,_0x5e8808){var _0x3d0b0e=_0x3d0b();return _0x3d7e=function(_0x3d7e25,_0x1eb6ac){_0x3d7e25=_0x3d7e25-0xcc;var _0x20be86=_0x3d0b0e[_0x3d7e25];return _0x20be86;},_0x3d7e(_0x28addc,_0x5e8808);}var u=function(){var _0x166ba9=_0x5bcf12;return u=Object[_0x166ba9(0xf4)]||function(_0x43c4e5){var _0x3517fb=_0x166ba9;for(var _0x3db4e5,_0x2744aa=0x1,_0x200ce4=arguments[_0x3517fb(0x195)];_0x2744aa<_0x200ce4;_0x2744aa++){_0x3db4e5=arguments[_0x2744aa];for(var _0x4ba61f in _0x3db4e5)Object[_0x3517fb(0x181)][_0x3517fb(0x150)][_0x3517fb(0xe6)](_0x3db4e5,_0x4ba61f)&&(_0x43c4e5[_0x4ba61f]=_0x3db4e5[_0x4ba61f]);}return _0x43c4e5;},u[_0x166ba9(0x124)](this,arguments);},M=function(_0x2be84d,_0xdb3eb4){var _0x20ea3d=_0x5bcf12,_0x49c7d7={};for(var _0x4e4e10 in _0x2be84d)Object['prototype']['hasOwnProperty'][_0x20ea3d(0xe6)](_0x2be84d,_0x4e4e10)&&_0xdb3eb4['indexOf'](_0x4e4e10)<0x0&&(_0x49c7d7[_0x4e4e10]=_0x2be84d[_0x4e4e10]);if(_0x2be84d!=null&&typeof Object[_0x20ea3d(0xcf)]==_0x20ea3d(0x11c)){for(var _0x1e413d=0x0,_0x4e4e10=Object[_0x20ea3d(0xcf)](_0x2be84d);_0x1e413d<_0x4e4e10[_0x20ea3d(0x195)];_0x1e413d++)_0xdb3eb4[_0x20ea3d(0x102)](_0x4e4e10[_0x1e413d])<0x0&&Object[_0x20ea3d(0x181)][_0x20ea3d(0x167)][_0x20ea3d(0xe6)](_0x2be84d,_0x4e4e10[_0x1e413d])&&(_0x49c7d7[_0x4e4e10[_0x1e413d]]=_0x2be84d[_0x4e4e10[_0x1e413d]]);}return _0x49c7d7;},j=f['forwardRef'](function(_0x3d9b6f,_0x138573){var _0x407d06=_0x5bcf12,_0x2a011e=_0x3d9b6f[_0x407d06(0x163)],_0x95f899=_0x3d9b6f['id'],_0x1cb342=_0x3d9b6f[_0x407d06(0xe7)],_0xb891e0=_0x3d9b6f[_0x407d06(0x187)],_0x5acc05=M(_0x3d9b6f,[_0x407d06(0x163),'id','className','extend']),_0x31ac26=_0x407d06(0x182)['concat'](_0x95f899,'\x20')[_0x407d06(0x18c)](_0x1cb342||'')['trim'](),_0x4c48fe=f[_0x407d06(0x10e)]('_'[_0x407d06(0x18c)](G()));return y(_0x2a011e,''['concat'](_0x95f899),{'defIds':_0x2a011e['defIds'],'idSuffix':_0x4c48fe['current']},u({'ref':_0x138573,'className':_0x31ac26},_0x5acc05),_0xb891e0);});function y(_0x1eda89,_0x8b0606,_0x381b1d,_0x154402,_0x1d0180){var _0x57678a=_0x5bcf12;return f[_0x57678a(0x133)](_0x1eda89['tag'],u(u({'key':_0x8b0606},q(_0x1eda89,_0x381b1d,_0x1d0180)),_0x154402),(W(_0x1eda89,_0x381b1d)['children']||[])['map'](function(_0x3fbafa,_0x428865){var _0x4b6c21=_0x57678a;return y(_0x3fbafa,''[_0x4b6c21(0x18c)](_0x8b0606,'-')[_0x4b6c21(0x18c)](_0x1eda89['tag'],'-')['concat'](_0x428865),_0x381b1d,void 0x0,_0x1d0180);}));}function q(_0x8393e2,_0x296048,_0x430bb1){var _0x5265de=_0x5bcf12,_0x2801de=u({},_0x8393e2[_0x5265de(0x164)]);_0x430bb1!=null&&_0x430bb1[_0x5265de(0xe8)]&&_0x2801de[_0x5265de(0x142)]===_0x5265de(0xe8)&&(_0x2801de['fill']=_0x430bb1[_0x5265de(0xe8)]),_0x8393e2['tag']===_0x5265de(0x134)&&_0x2801de['id']&&(_0x2801de['id']=_0x2801de['id']+_0x296048[_0x5265de(0xf7)]),Object[_0x5265de(0x193)](_0x2801de)[_0x5265de(0xfd)](function(_0x1f989e){var _0x357a95=_0x5265de,_0x1a90fd=_0x1f989e[0x0],_0x8ae0c8=_0x1f989e[0x1];_0x1a90fd===_0x357a95(0x134)&&typeof _0x8ae0c8=='string'&&(_0x2801de[_0x1a90fd]=_0x8ae0c8[_0x357a95(0x185)](/url\(#(.*)\)/,_0x357a95(0x162)[_0x357a95(0x18c)](_0x296048[_0x357a95(0xf7)],')')));});var _0x4a399f=_0x296048[_0x5265de(0xe2)];return!_0x4a399f||_0x4a399f[_0x5265de(0x195)]===0x0||(_0x8393e2['tag']===_0x5265de(0xf8)&&_0x2801de['xlink:href']&&(_0x2801de[_0x5265de(0x136)]=_0x2801de[_0x5265de(0x136)]+_0x296048[_0x5265de(0xf7)]),Object[_0x5265de(0x193)](_0x2801de)['forEach'](function(_0x5d426a){var _0x51c0c9=_0x5265de,_0x4502c7=_0x5d426a[0x0],_0x4db3be=_0x5d426a[0x1];typeof _0x4db3be==_0x51c0c9(0xed)&&(_0x2801de[_0x4502c7]=_0x4db3be['replace'](/url\(#(.*)\)/,_0x51c0c9(0x162)[_0x51c0c9(0x18c)](_0x296048[_0x51c0c9(0xf7)],')')));})),_0x2801de;}function W(_0x13c8a8,_0x12dfff){var _0x114840=_0x5bcf12,_0x4ca85c,_0x5701fa=_0x12dfff['defIds'];return!_0x5701fa||_0x5701fa[_0x114840(0x195)]===0x0?_0x13c8a8:_0x13c8a8[_0x114840(0xd1)]===_0x114840(0x1a0)&&(!((_0x4ca85c=_0x13c8a8[_0x114840(0x166)])===null||_0x4ca85c===void 0x0)&&_0x4ca85c['length'])?u(u({},_0x13c8a8),{'children':_0x13c8a8[_0x114840(0x166)][_0x114840(0x16e)](function(_0x34fe6a){var _0x394be6=_0x114840;return typeof _0x34fe6a[_0x394be6(0x164)]['id']==_0x394be6(0xed)&&_0x5701fa&&_0x5701fa['includes'](_0x34fe6a['attrs']['id'])?u(u({},_0x34fe6a),{'attrs':u(u({},_0x34fe6a[_0x394be6(0x164)]),{'id':_0x34fe6a['attrs']['id']+_0x12dfff[_0x394be6(0xf7)]})}):_0x34fe6a;})}):_0x13c8a8;}function G(){var _0x731069=_0x5bcf12;return Math['random']()[_0x731069(0x189)](0x24)[_0x731069(0x121)](0x2,0x8);}j[_0x5bcf12(0x1a4)]=_0x5bcf12(0x196);var B={'tag':_0x5bcf12(0x127),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x5bcf12(0x15e),'height':_0x5bcf12(0x15e)},'children':[{'tag':'path','attrs':{'fill':_0x5bcf12(0x139),'d':_0x5bcf12(0x1ab)}},{'tag':_0x5bcf12(0x148),'attrs':{'fill':_0x5bcf12(0x139),'d':_0x5bcf12(0x16b),'fillRule':_0x5bcf12(0x1aa),'clipRule':'evenodd'}}]},P=f[_0x5bcf12(0x135)](function(_0x4e6b1c,_0x101943){var _0x259f6e=_0x5bcf12;return f['createElement'](j,Object['assign']({},_0x4e6b1c,{'id':_0x259f6e(0x18f),'ref':_0x101943,'icon':B}));});P[_0x5bcf12(0x1a4)]='LiveShareIcon';var Y=Object[_0x5bcf12(0x117)],R=(_0x3052c8,_0x453129,_0x410752,_0x20030d)=>{var _0x565cf4=_0x5bcf12;for(var _0x1ae8ca=_0x20030d>0x1?void 0x0:_0x20030d?Y(_0x453129,_0x410752):_0x453129,_0x509f0f=_0x3052c8[_0x565cf4(0x195)]-0x1,_0x2f9b05;_0x509f0f>=0x0;_0x509f0f--)(_0x2f9b05=_0x3052c8[_0x509f0f])&&(_0x1ae8ca=_0x2f9b05(_0x1ae8ca)||_0x1ae8ca);return _0x1ae8ca;},S=(_0x5b4fa7,_0x43b364)=>(_0x5220a9,_0x2a91ec)=>_0x43b364(_0x5220a9,_0x2a91ec,_0x5b4fa7);exports[_0x5bcf12(0x174)]=class extends o[_0x5bcf12(0x107)]{constructor(_0x5b3062,_0x3cf344,_0x2e1301){var _0x4ed229=_0x5bcf12;super(),v(this,'_entities',new Map()),(this[_0x4ed229(0x11b)]=_0x5b3062,this[_0x4ed229(0x1a8)]=_0x3cf344,this[_0x4ed229(0xe5)]=_0x2e1301,this['_init']());}async[_0x5bcf12(0x1b4)](_0x29a5b0){var _0x368054=_0x5bcf12;return this['_entities'][_0x368054(0xcd)](_0x29a5b0)||await this['_startLiveShareCoordinator'](_0x29a5b0),this[_0x368054(0x15d)][_0x368054(0x1a6)](_0x29a5b0);}[_0x5bcf12(0x12a)](){var _0x3eff68=_0x5bcf12;this[_0x3eff68(0x11b)][_0x3eff68(0x108)](o[_0x3eff68(0x17a)]['UNIVER_SHEET'])[_0x3eff68(0x19c)](b[_0x3eff68(0x141)](this['dispose$']))[_0x3eff68(0x17e)](async _0x25f7b1=>{var _0x138e35=_0x3eff68;const _0x8fced3=_0x25f7b1[_0x138e35(0x116)]();this['_entities'][_0x138e35(0xcd)](_0x8fced3)||this[_0x138e35(0x12d)](_0x8fced3);}),this[_0x3eff68(0x11b)][_0x3eff68(0xfb)](o['UniverInstanceType'][_0x3eff68(0x1b2)])[_0x3eff68(0x19c)](b[_0x3eff68(0x141)](this['dispose$']))[_0x3eff68(0x17e)](_0x115bec=>{var _0xb5a2b9=_0x3eff68;const _0xacbfeb=_0x115bec[_0xb5a2b9(0x116)](),_0x5146f1=this[_0xb5a2b9(0x15d)][_0xb5a2b9(0x1a6)](_0xacbfeb);_0x5146f1==null||_0x5146f1[_0xb5a2b9(0x18b)]();});}async[_0x5bcf12(0x12d)](_0x2f0b38){var _0x1cdf19=_0x5bcf12;const _0x2bcf28=await this[_0x1cdf19(0xe5)][_0x1cdf19(0x198)](_0x2f0b38),_0x549370=this[_0x1cdf19(0x1a8)][_0x1cdf19(0x151)](exports['LiveShareCoordinator'],_0x2f0b38,_0x2bcf28);return _0x549370['init'](),this[_0x1cdf19(0x15d)][_0x1cdf19(0x153)](_0x2f0b38,_0x549370),_0x549370;}},exports['LiveShareController']=R([S(0x0,o[_0x5bcf12(0x137)]),S(0x1,o['Inject'](o[_0x5bcf12(0xee)])),S(0x2,o[_0x5bcf12(0xe1)](m['CollaborationSessionService']))],exports[_0x5bcf12(0x174)]);var h=(_0x488d4f=>(_0x488d4f['OFFLINE']=_0x5bcf12(0xd8),_0x488d4f[_0x5bcf12(0x147)]=_0x5bcf12(0x100),_0x488d4f[_0x5bcf12(0x101)]=_0x5bcf12(0xd9),_0x488d4f[_0x5bcf12(0xde)]=_0x5bcf12(0x17d),_0x488d4f[_0x5bcf12(0x115)]=_0x5bcf12(0x159),_0x488d4f))(h||{});const Z=_0x5bcf12(0x168),J=0xc8;exports[_0x5bcf12(0x171)]=class extends o[_0x5bcf12(0x107)]{constructor(_0x163fca,_0x5e4216,_0x19c17c,_0x4d21f1,_0x392baf){var _0x228f7a=_0x5bcf12;super(),v(this,'_status$',new D[(_0x228f7a(0x19a))]('idle')),v(this,_0x228f7a(0x192),this[_0x228f7a(0x176)][_0x228f7a(0x183)]()),v(this,'_init',!0x1),v(this,_0x228f7a(0x1ac),null),v(this,'_presenter',null),(this[_0x228f7a(0x146)]=_0x163fca,this[_0x228f7a(0x149)]=_0x5e4216,this[_0x228f7a(0x132)]=_0x19c17c,this[_0x228f7a(0xf2)]=_0x4d21f1,this[_0x228f7a(0xeb)]=_0x392baf);}get['_status'](){var _0x240f47=_0x5bcf12;return this['_status$'][_0x240f47(0x140)]();}['dispose'](){var _0x55574b=_0x5bcf12,_0xc37b2d;(_0xc37b2d=this[_0x55574b(0x1ac)])==null||_0xc37b2d['dispose'](),this[_0x55574b(0x176)][_0x55574b(0xf0)](_0x55574b(0x100)),this[_0x55574b(0x176)][_0x55574b(0x16c)]();}['init'](){var _0x36ed62=_0x5bcf12;this[_0x36ed62(0x12a)]||(this['_init']=!0x0,this[_0x36ed62(0x149)]['sessionStatus$'][_0x36ed62(0x19c)](b[_0x36ed62(0x141)](this[_0x36ed62(0x157)]))['subscribe'](_0x83740f=>{var _0x26592f=_0x36ed62;switch(_0x83740f){case m[_0x26592f(0x154)][_0x26592f(0x16f)]:this[_0x26592f(0x113)]();break;case m['SessionStatus']['ONLINE']:this[_0x26592f(0x1a3)]();break;}}),this['_collabSession']['event$'][_0x36ed62(0x19c)](b[_0x36ed62(0x141)](this[_0x36ed62(0x157)]))[_0x36ed62(0x17e)](_0x18db00=>{var _0x216ec5=_0x36ed62;const {eventID:_0x5f377b}=_0x18db00;switch(_0x5f377b){case _[_0x216ec5(0x14c)]['LIVESHARE_NEW_HOST']:this[_0x216ec5(0x12c)](_0x18db00);break;case _[_0x216ec5(0x14c)]['LIVESHARE_OPERATION']:this[_0x216ec5(0xe3)](_0x18db00);break;case _[_0x216ec5(0x14c)]['LIVESHARE_TERMINATE']:this[_0x216ec5(0x144)]();break;case _[_0x216ec5(0x14c)][_0x216ec5(0x114)]:this['_handleNewChangeSets'](_0x18db00);break;}}));}[_0x5bcf12(0x130)](){var _0x2648cc=_0x5bcf12;this[_0x2648cc(0x149)][_0x2648cc(0x104)]({'eventID':_[_0x2648cc(0x14c)][_0x2648cc(0x1b3)],'data':{'unitID':this['_unitID'],'userID':this[_0x2648cc(0x149)][_0x2648cc(0x18a)]()}},this[_0x2648cc(0x146)]);}['stopPresenting'](){var _0x4b0b4e=_0x5bcf12;this['_status']===_0x4b0b4e(0x159)&&(this['_status$']['next'](_0x4b0b4e(0x100)),this[_0x4b0b4e(0x149)][_0x4b0b4e(0x104)]({'eventID':_['CollaborationEvent'][_0x4b0b4e(0x179)],'data':{'unitID':this[_0x4b0b4e(0x146)]}},this[_0x4b0b4e(0x146)]));}[_0x5bcf12(0xf1)](){var _0x128b55=_0x5bcf12;this[_0x128b55(0x199)]===_0x128b55(0x17d)&&(this['_status$'][_0x128b55(0xf0)]('following'),this[_0x128b55(0x14d)]());}['stopFollowing'](){var _0xf900dc=_0x5bcf12;this[_0xf900dc(0x199)]===_0xf900dc(0xd9)&&this[_0xf900dc(0x158)]();}[_0x5bcf12(0x12c)](_0x30d4b5){var _0x425b2b=_0x5bcf12;const {presenter:_0x2cff8a}=_0x30d4b5[_0x425b2b(0xe4)],_0x59fd04=this[_0x425b2b(0x149)][_0x425b2b(0x18a)]();this[_0x425b2b(0xce)]=_0x2cff8a,_0x2cff8a===_0x59fd04?(this[_0x425b2b(0x158)](),this['_startPresenting']()):this[_0x425b2b(0x199)]!==_0x425b2b(0x17d)&&(this[_0x425b2b(0x1a9)](),this[_0x425b2b(0x14d)]());}[_0x5bcf12(0x11d)](){var _0x3bbdaa=_0x5bcf12;const _0x2791e5={'eventID':_[_0x3bbdaa(0x14c)][_0x3bbdaa(0x19e)]};this[_0x3bbdaa(0x149)][_0x3bbdaa(0x104)](_0x2791e5,this['_unitID']);}[_0x5bcf12(0x144)](){var _0x2dbf2c=_0x5bcf12;this[_0x2dbf2c(0xce)]=null,this[_0x2dbf2c(0x199)]!==_0x2dbf2c(0x159)&&this[_0x2dbf2c(0x188)]();}[_0x5bcf12(0x106)](_0x3e6a79){var _0x441f38=_0x5bcf12;if(this[_0x441f38(0x199)]===_0x441f38(0xd9)&&this[_0x441f38(0xce)]===_0x3e6a79[_0x441f38(0xe4)]['memberID']){const _0xfba3cf=_[_0x441f38(0x126)](_0x3e6a79['data'])[_0x441f38(0xdf)]['reverse']()[_0x441f38(0x12e)](_0x330bb8=>_0x330bb8['id']===C[_0x441f38(0x138)]['id']);if(_0xfba3cf){const _0x5971f9=_0xfba3cf[_0x441f38(0x18e)][_0x441f38(0xdb)],_0x57e88a=_0xfba3cf[_0x441f38(0x18e)][_0x441f38(0xfe)]['id'];setTimeout(()=>{var _0xb71c61=_0x441f38;this['_commandService'][_0xb71c61(0xd6)](C[_0xb71c61(0x112)]['id'],{'unitId':_0x5971f9,'subUnitId':_0x57e88a},{'fromCollab':!0x0});});}}}[_0x5bcf12(0xd3)](){var _0x532574=_0x5bcf12;this['_status$'][_0x532574(0xf0)](_0x532574(0x159));const _0x166a9d=new Map(),_0x55b8f4=this[_0x532574(0x1ac)]=new o[(_0x532574(0xd2))]();_0x55b8f4['add'](o[_0x532574(0x109)](()=>{var _0x2a1c0d=_0x532574;_0x166a9d['forEach'](_0x5bd090=>_0x5bd090[_0x2a1c0d(0x16c)]()),_0x166a9d[_0x2a1c0d(0x165)]();})),_0x55b8f4['add'](this[_0x532574(0xeb)][_0x532574(0x123)](_0x2b38bc=>{var _0x3dfc66=_0x532574,_0x5020a9;if(_0x2b38bc['type']!==o[_0x3dfc66(0x1a1)]['OPERATION']||!this[_0x3dfc66(0xf2)]['shouldShareOperation'](_0x2b38bc['id']))return;const {id:_0x1ffa56}=_0x2b38bc;let _0x4c9143;_0x166a9d['has'](_0x1ffa56)?_0x4c9143=_0x166a9d[_0x3dfc66(0x1a6)](_0x1ffa56):(_0x4c9143=new D[(_0x3dfc66(0xfa))](),_0x166a9d['set'](_0x1ffa56,_0x4c9143),_0x4c9143[_0x3dfc66(0x19c)](b['throttleTime']((_0x5020a9=this[_0x3dfc66(0x132)][_0x3dfc66(0x14e)](Z))!=null?_0x5020a9:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3dfc66(0x17e)](_0x3bdf99=>{var _0x2b4bae=_0x3dfc66;this[_0x2b4bae(0x149)]['send']({'eventID':_[_0x2b4bae(0x14c)][_0x2b4bae(0x156)],'data':{'unitID':this[_0x2b4bae(0x146)],'operations':{[_0x3bdf99['id']]:{'id':_0x3bdf99['id'],'params':JSON['stringify'](_0x3bdf99[_0x2b4bae(0x18e)])}}}},this['_unitID']);})),_0x4c9143[_0x3dfc66(0xf0)](_0x2b38bc);})),this[_0x532574(0xf2)]['getInitialStates'](this[_0x532574(0x146)])[_0x532574(0xfd)](_0x3204d6=>this[_0x532574(0x149)]['send']({'eventID':_[_0x532574(0x14c)][_0x532574(0x156)],'data':{'unitID':this[_0x532574(0x146)],'operations':{[_0x3204d6['id']]:{'id':_0x3204d6['id'],'params':JSON[_0x532574(0xe9)](_0x3204d6[_0x532574(0x18e)])}}}},this[_0x532574(0x146)]));}[_0x5bcf12(0x1a9)](){var _0x2c0bb0=_0x5bcf12,_0x2fb35c;this['_status$'][_0x2c0bb0(0xf0)](_0x2c0bb0(0x100)),(_0x2fb35c=this[_0x2c0bb0(0x1ac)])==null||_0x2fb35c['dispose'](),this[_0x2c0bb0(0x1ac)]=null;}[_0x5bcf12(0x14d)](){var _0x30f180=_0x5bcf12,_0x18bfde;(_0x18bfde=this[_0x30f180(0x1ac)])==null||_0x18bfde['dispose'](),this['_status$'][_0x30f180(0xf0)](_0x30f180(0xd9));}[_0x5bcf12(0x188)](){var _0x1901aa=_0x5bcf12,_0x90bec0;this[_0x1901aa(0x176)][_0x1901aa(0xf0)]('idle'),(_0x90bec0=this[_0x1901aa(0x1ac)])==null||_0x90bec0['dispose'](),this[_0x1901aa(0x1ac)]=null;}['_stopFollowing'](){var _0x526960=_0x5bcf12,_0x3180b1;this['_status$'][_0x526960(0xf0)](_0x526960(0x17d)),(_0x3180b1=this[_0x526960(0x1ac)])==null||_0x3180b1[_0x526960(0x18b)]();}['_handleOperation'](_0x5be400){var _0x4434b4=_0x5bcf12;if([_0x4434b4(0x159),'not-following',_0x4434b4(0xd8)][_0x4434b4(0x191)](this[_0x4434b4(0x199)])||!_0x5be400[_0x4434b4(0xe4)][_0x4434b4(0x16d)]||_0x5be400[_0x4434b4(0xe4)]['presenter']===this['_collabSession'][_0x4434b4(0x18a)]())return;this['_status']===_0x4434b4(0x100)&&this[_0x4434b4(0x14d)]();const _0x4cbaa7=_0x5be400[_0x4434b4(0xe4)][_0x4434b4(0x10d)];Object[_0x4434b4(0x111)](_0x4cbaa7)[_0x4434b4(0xfd)](_0x2d57c9=>{var _0x5966d1=_0x4434b4;this[_0x5966d1(0xeb)][_0x5966d1(0xd6)](_0x2d57c9['id'],_0x2d57c9['params']?JSON['parse'](_0x2d57c9['params']):null,{'fromCollab':!0x0});});}[_0x5bcf12(0x113)](){var _0x285e13=_0x5bcf12,_0x494719;this[_0x285e13(0x176)][_0x285e13(0xf0)](_0x285e13(0xd8)),(_0x494719=this['_commandDisposable'])==null||_0x494719[_0x285e13(0x18b)]();}['_handleOnline'](){var _0xa4b749=_0x5bcf12;this['_status$'][_0xa4b749(0xf0)](_0xa4b749(0x100)),this['_fetchOperations']();}},exports[_0x5bcf12(0x171)]=R([S(0x2,o[_0x5bcf12(0xfc)]),S(0x3,o[_0x5bcf12(0xe1)](O)),S(0x4,o[_0x5bcf12(0x19b)])],exports[_0x5bcf12(0x171)]);function A(){var _0x226a17=_0x5bcf12;const _0x267adf=p[_0x226a17(0x145)](exports[_0x226a17(0x174)]),_0x214170=p[_0x226a17(0x145)](o['IUniverInstanceService']),_0x4eeeb2=p[_0x226a17(0xdc)](()=>_0x214170[_0x226a17(0x120)](o[_0x226a17(0x17a)][_0x226a17(0x1b2)]),void 0x0,!0x1,[]),[_0x3105df,_0x1b8391]=f['useState'](null),[_0x35a8f2,_0x46b90d]=f[_0x226a17(0x177)](h[_0x226a17(0x147)]),_0x3bd0c2=f['useRef'](null);return f[_0x226a17(0xf5)](()=>(_0x4eeeb2&&_0x267adf[_0x226a17(0x1b4)](_0x4eeeb2[_0x226a17(0x116)]())[_0x226a17(0x125)](_0x268a60=>{var _0x1ab6f7=_0x226a17;_0x1b8391(_0x268a60),_0x3bd0c2[_0x1ab6f7(0x129)]=_0x268a60[_0x1ab6f7(0x192)][_0x1ab6f7(0x17e)](_0x352e6f=>{_0x46b90d(_0x352e6f);});}),()=>{var _0x5e9037=_0x226a17,_0x504823;(_0x504823=_0x3bd0c2[_0x5e9037(0x129)])==null||_0x504823[_0x5e9037(0x11e)](),_0x3bd0c2[_0x5e9037(0x129)]=null;}),[_0x4eeeb2,_0x267adf]),_0x3105df?l[_0x226a17(0x14b)](g['Dropdown'],{'align':_0x226a17(0x152),'disabled':_0x35a8f2===h['OFFLINE'],'className':_0x226a17(0x11a),'overlay':l['jsx'](K,{'status':_0x35a8f2,'coordinator':_0x3105df}),'children':l['jsx']('button',{'className':g['clsx'](_0x226a17(0x14a),{'univer-cursor-not-allowed':_0x35a8f2===h[_0x226a17(0x16f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x35a8f2!==h[_0x226a17(0x16f)]}),'type':_0x226a17(0x197),'children':l[_0x226a17(0x14b)](P,{'className':'univer-size-4'})})}):null;}function K(_0x18f05e){var _0x4d2c8a=_0x5bcf12;const {status:_0x56df55,coordinator:_0x50897c}=_0x18f05e;switch(_0x56df55){case h[_0x4d2c8a(0x147)]:return l[_0x4d2c8a(0x14b)](z,{'coordinator':_0x50897c});case h[_0x4d2c8a(0x101)]:return l[_0x4d2c8a(0x14b)](Q,{'coordinator':_0x50897c});case h[_0x4d2c8a(0xde)]:return l[_0x4d2c8a(0x14b)](X,{'coordinator':_0x50897c});case h[_0x4d2c8a(0x16f)]:return l[_0x4d2c8a(0x14b)](te,{});case h[_0x4d2c8a(0x115)]:return l[_0x4d2c8a(0x14b)](ee,{'coordinator':_0x50897c});default:return null;}}function _0x3d0b(){var _0x14b554=['SAME_OPERATION_SHARE_INTERVAL','rxjs/operators','setConfig','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','complete','presenter','map','OFFLINE','You\x27re\x20following\x20the\x20presenter','LiveShareCoordinator','shouldShareOperation','7165914RuZZop','LiveShareController','Plugin','_status$','useState','default','LIVESHARE_TERMINATE','UniverInstanceType','univer-mb-3\x20univer-w-full\x20univer-text-sm','onRendered','not-following','subscribe','stopFollowing','Button','prototype','univerjs-icon\x20univerjs-icon-','asObservable','Stop\x20following','replace','_uiPartsService','extend','_beIdle','toString','getMemberID','dispose','concat','text','params','live-share-icon','registerComponent','includes','status$','entries','IUIPartsService','length','UniverIcon','button','requireSession','_status','BehaviorSubject','ICommandService','pipe','DesktopLiveShareController','LIVESHARE_FETCH_OPERATIONS','_reporters','defs','CommandType','BuiltInUIPart','_handleOnline','displayName','disposeWithMe','get','registerInitialStateReporter','_injector','_stopPresenting','evenodd','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_commandDisposable','@univerjs/sheets','Disposable','jsxs','connectInjector','defineProperty','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','getLiveShareCoordinator','rxjs','has','_presenter','getOwnPropertySymbols','SetScrollOperation','tag','DisposableCollection','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/design','executeCommand','776250MYgrOi','offline','following','react','unitId','useObservable','UniverCollaborationClientPlugin','NOT_FOLLOWING','mutations','You\x27are\x20offline.','Inject','defIds','_handleOperation','data','_collabSessionService','call','className','colorChannel1','stringify','You\x27re\x20presenting\x20the\x20document','_commandService','1077OXSypO','string','Injector','touchDependencies','next','startFollowing','_liveShareService','getInitialStates','assign','useEffect','HEADER_MENU','idSuffix','use','registerDependencies','Subject','getTypeOfUnitDisposed$','IConfigService','forEach','sheet','Fragment','idle','FOLLOWING','indexOf','8180uzXErL','send','@univerjs-pro/collaboration-client','_handleNewChangeSets','RxDisposable','getTypeOfUnitAdded$','toDisposable','mergeOverrideWithDependencies','Start','4926795SZhuoE','operations','useRef','add','_sharedOperations','values','SetWorksheetActiveOperation','_handleOffline','NEW_CHANGESETS','PRESENTING','getUnitId','getOwnPropertyDescriptor','registerSharedOperation','2583488cfVRGY','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_univerInstanceService','function','_fetchOperations','unsubscribe','from','getCurrentTypeOfUnit$','substring','toStringTag','onCommandExecuted','apply','then','parseProtocolChangeset','svg','@univerjs-pro/collaboration','current','_init','UniverLiveSharePlugin','_handleNewHost','_startLiveShareCoordinator','find','delete','tryStartPresenting','type','_configService','createElement','mask','forwardRef','xlink:href','IUniverInstanceService','InsertSheetMutation','currentColor','react/jsx-runtime','1029464bVoOkd','symbol','478608wHpbAp','You\x27re\x20not\x20following\x20the\x20presenter','Module','getValue','takeUntil','fill','Start\x20following','_handleTerminate','useDependency','_unitID','IDLE','path','_collabSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','jsx','CollaborationEvent','_startFollowing','getConfig','merge','hasOwnProperty','createInstance','end','set','SessionStatus','_config','LIVESHARE_OPERATION','dispose$','_stopFollowing','presenting','stopPresenting','div','SetZoomRatioOperation','_entities','1em','Present\x20this\x20document','LiveShareService','pluginName','url(#$1','icon','attrs','clear','children','propertyIsEnumerable'];_0x3d0b=function(){return _0x14b554;};return _0x3d0b();}function z(_0x264336){var _0x439702=_0x5bcf12;const {coordinator:_0x2f9dc9}=_0x264336;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x439702(0x15b),{'className':_0x439702(0x17b),'children':_0x439702(0x15f)}),l[_0x439702(0x14b)](g['Button'],{'onClick':()=>_0x2f9dc9['tryStartPresenting'](),'children':_0x439702(0x10b)})]});}function Q(_0x5f554d){var _0x570067=_0x5bcf12;const {coordinator:_0x4acd3f}=_0x5f554d;return l[_0x570067(0x1af)](l[_0x570067(0xff)],{'children':[l[_0x570067(0x14b)](_0x570067(0x15b),{'className':_0x570067(0x17b),'children':_0x570067(0x170)}),l[_0x570067(0x14b)](g['Button'],{'onClick':()=>_0x4acd3f[_0x570067(0x17f)](),'children':_0x570067(0x184)})]});}function X(_0x464e41){var _0x38f8bb=_0x5bcf12;const {coordinator:_0x5e2c7b}=_0x464e41;return l[_0x38f8bb(0x1af)](l[_0x38f8bb(0xff)],{'children':[l['jsx'](_0x38f8bb(0x15b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x38f8bb(0x13e)}),l[_0x38f8bb(0x14b)](g[_0x38f8bb(0x180)],{'variant':_0x38f8bb(0x18d),'onClick':()=>_0x5e2c7b[_0x38f8bb(0xf1)](),'children':_0x38f8bb(0x143)})]});}function ee(_0x3f6aaa){var _0x3fb2c1=_0x5bcf12;const {coordinator:_0x286155}=_0x3f6aaa;return l[_0x3fb2c1(0x1af)](l[_0x3fb2c1(0xff)],{'children':[l[_0x3fb2c1(0x14b)](_0x3fb2c1(0x15b),{'className':_0x3fb2c1(0x17b),'children':_0x3fb2c1(0xea)}),l[_0x3fb2c1(0x14b)](g[_0x3fb2c1(0x180)],{'variant':_0x3fb2c1(0x178),'onClick':()=>_0x286155[_0x3fb2c1(0x15a)](),'children':'Stop\x20presenting'})]});}function te(){var _0x3b32de=_0x5bcf12;return l[_0x3b32de(0x14b)](l[_0x3b32de(0xff)],{'children':_0x3b32de(0xe0)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x1d3c7b,_0xb5d20e,_0x216cff,_0x5dc489)=>{var _0x85b67a=_0x5bcf12;for(var _0x1782ae=_0x5dc489>0x1?void 0x0:_0x5dc489?ie(_0xb5d20e,_0x216cff):_0xb5d20e,_0x2d7129=_0x1d3c7b[_0x85b67a(0x195)]-0x1,_0x5771ae;_0x2d7129>=0x0;_0x2d7129--)(_0x5771ae=_0x1d3c7b[_0x2d7129])&&(_0x1782ae=_0x5771ae(_0x1782ae)||_0x1782ae);return _0x1782ae;},L=(_0x294ee8,_0x4433b0)=>(_0x42092f,_0x57b8c0)=>_0x4433b0(_0x42092f,_0x57b8c0,_0x294ee8);exports[_0x5bcf12(0x19d)]=class extends o[_0x5bcf12(0x1ae)]{constructor(_0x512249,_0x43a814){var _0x351cd8=_0x5bcf12;super(),this[_0x351cd8(0x1a8)]=_0x512249,this[_0x351cd8(0x186)]=_0x43a814,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x11e2ec=_0x5bcf12;this[_0x11e2ec(0x1a5)](this[_0x11e2ec(0x186)][_0x11e2ec(0x190)](p[_0x11e2ec(0x1a2)][_0x11e2ec(0xf6)],()=>p[_0x11e2ec(0x1b0)](A,this[_0x11e2ec(0x1a8)])));}},exports[_0x5bcf12(0x19d)]=ne([L(0x0,o[_0x5bcf12(0xe1)](o[_0x5bcf12(0xee)])),L(0x1,p[_0x5bcf12(0x194)])],exports[_0x5bcf12(0x19d)]);var re=Object[_0x5bcf12(0x1b1)],se=Object[_0x5bcf12(0x117)],oe=(_0x1bdb2d,_0x24625a,_0x2b96c5)=>_0x24625a in _0x1bdb2d?re(_0x1bdb2d,_0x24625a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b96c5}):_0x1bdb2d[_0x24625a]=_0x2b96c5,ae=(_0x403e12,_0x38d19b,_0x190e0a,_0x3af89e)=>{for(var _0x47511d=_0x3af89e>0x1?void 0x0:_0x3af89e?se(_0x38d19b,_0x190e0a):_0x38d19b,_0x5adf5c=_0x403e12['length']-0x1,_0x157cce;_0x5adf5c>=0x0;_0x5adf5c--)(_0x157cce=_0x403e12[_0x5adf5c])&&(_0x47511d=_0x157cce(_0x47511d)||_0x47511d);return _0x47511d;},N=(_0xb08298,_0x381bdb)=>(_0x2d94d9,_0x1e5f17)=>_0x381bdb(_0x2d94d9,_0x1e5f17,_0xb08298),T=(_0x52cbad,_0xa43a46,_0x2cd775)=>oe(_0x52cbad,typeof _0xa43a46!='symbol'?_0xa43a46+'':_0xa43a46,_0x2cd775);const le=_0x5bcf12(0xd4);exports[_0x5bcf12(0x12b)]=class extends o[_0x5bcf12(0x175)]{constructor(_0x1cff11=x,_0x4a9caa,_0x460c76){var _0x31ed02=_0x5bcf12;super(),this[_0x31ed02(0x155)]=_0x1cff11,this['_injector']=_0x4a9caa,this[_0x31ed02(0x132)]=_0x460c76;const {..._0x215856}=o[_0x31ed02(0x14f)]({},x,this[_0x31ed02(0x155)]);this[_0x31ed02(0x132)][_0x31ed02(0x16a)]($,_0x215856);}['onStarting'](){var _0x907036=_0x5bcf12;o[_0x907036(0xf9)](this[_0x907036(0x1a8)],o[_0x907036(0x10a)]([[O],[exports[_0x907036(0x174)]],[E],[exports[_0x907036(0x19d)]]],this[_0x907036(0x155)]['override'])),o[_0x907036(0xef)](this[_0x907036(0x1a8)],[[E]]);}[_0x5bcf12(0x17c)](){var _0x46c6b9=_0x5bcf12;o[_0x46c6b9(0xef)](this[_0x46c6b9(0x1a8)],[[exports[_0x46c6b9(0x19d)]]]);}},T(exports[_0x5bcf12(0x12b)],_0x5bcf12(0x131),o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x5bcf12(0x12b)],_0x5bcf12(0x161),le),exports[_0x5bcf12(0x12b)]=ae([o['DependentOn'](m[_0x5bcf12(0xdd)]),N(0x1,o[_0x5bcf12(0xe1)](o[_0x5bcf12(0xee)])),N(0x2,o[_0x5bcf12(0xfc)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=A,exports[_0x5bcf12(0x160)]=O,exports['LiveShareStatus']=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x31198e=_0x30db;(function(_0xed52d5,_0x473d22){var _0x54ae83=_0x30db,_0x1098da=_0xed52d5();while(!![]){try{var _0x4c8fb0=parseInt(_0x54ae83(0x17b))/0x1+-parseInt(_0x54ae83(0x1b5))/0x2*(parseInt(_0x54ae83(0x1d2))/0x3)+-parseInt(_0x54ae83(0x1ba))/0x4+-parseInt(_0x54ae83(0x167))/0x5+-parseInt(_0x54ae83(0x143))/0x6+-parseInt(_0x54ae83(0x1a4))/0x7+parseInt(_0x54ae83(0x1cd))/0x8;if(_0x4c8fb0===_0x473d22)break;else _0x1098da['push'](_0x1098da['shift']());}catch(_0x27a0e5){_0x1098da['push'](_0x1098da['shift']());}}}(_0x4014,0xa6c93));var q=Object[_0x31198e(0x1b2)],z=(_0x3461eb,_0x7b6b31,_0x4978f0)=>_0x7b6b31 in _0x3461eb?q(_0x3461eb,_0x7b6b31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4978f0}):_0x3461eb[_0x7b6b31]=_0x4978f0,d=(_0x4154d7,_0x3dff64,_0x28f982)=>z(_0x4154d7,typeof _0x3dff64!=_0x31198e(0x1d3)?_0x3dff64+'':_0x3dff64,_0x28f982);import{CollaborationSessionService as _0x3797e6,SessionStatus as _0xbb74fd,UniverCollaborationClientPlugin as _0x40f314}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3039f2,toDisposable as _0x322b7a,Inject as _0x44183f,IUniverInstanceService as _0xa538ea,Injector as _0x59ff7b,IConfigService as _0x5ad91b,ICommandService as _0x1f2ab5,RxDisposable as _0x25d182,UniverInstanceType as _0x384d9f,DisposableCollection as _0x8826e3,CommandType as _0x5520f3,DependentOn as _0x5e6bbe,Plugin as _0x95d93e,merge as _0x46d38b,registerDependencies as _0x352343,mergeOverrideWithDependencies as _0x5ee3d2,touchDependencies as _0x3f2e03}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x45d30c,InsertSheetMutation as _0x182beb}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x56f8dd,SetScrollOperation as _0x39acd7}from'@univerjs/sheets-ui';import{useDependency as _0x1bdc43,useObservable as _0x5068f5,IUIPartsService as _0x3210f0,BuiltInUIPart as _0x2a6ff0,connectInjector as _0x5a25e5}from'@univerjs/ui';import{jsx as _0x15aab4,jsxs as _0x346495,Fragment as _0x5b11db}from'react/jsx-runtime';import{Dropdown as _0x3cbf5d,clsx as _0x378b8b,Button as _0x225bf1}from'@univerjs/design';import{forwardRef as _0x35ed48,useRef as _0x3745a5,createElement as _0x15565a,useState as _0x3b70aa,useEffect as _0x3a4d4a}from'react';import{CollaborationEvent as _0x25e5a9,parseProtocolChangeset as _0x2b7d41}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x231456,Subject as _0x5b5f3e}from'rxjs';function _0x30db(_0x2b5ac1,_0xdadc39){var _0x4014f1=_0x4014();return _0x30db=function(_0x30db0c,_0x274aab){_0x30db0c=_0x30db0c-0x137;var _0x1887b8=_0x4014f1[_0x30db0c];return _0x1887b8;},_0x30db(_0x2b5ac1,_0xdadc39);}import{takeUntil as _0x3106b9,throttleTime as _0x21d466}from'rxjs/operators';const Oe=_0x31198e(0x1d0),T={};class L extends _0x3039f2{constructor(){var _0x2f49d2=_0x31198e;super(...arguments),d(this,_0x2f49d2(0x15a),new Set()),d(this,_0x2f49d2(0x1bd),new Set());}[_0x31198e(0x1d5)](_0x365283){var _0x36af5c=_0x31198e;return this['_sharedOperations'][_0x36af5c(0x1a2)](_0x365283),_0x322b7a(()=>this[_0x36af5c(0x15a)][_0x36af5c(0x16a)](_0x365283));}[_0x31198e(0x1db)](_0x576ac5){var _0x17f2be=_0x31198e;return this[_0x17f2be(0x1bd)][_0x17f2be(0x1a2)](_0x576ac5),_0x322b7a(()=>this[_0x17f2be(0x1bd)][_0x17f2be(0x16a)](_0x576ac5));}[_0x31198e(0x174)](_0x2d1832){var _0x563c9a=_0x31198e;return this['_sharedOperations'][_0x563c9a(0x173)](_0x2d1832);}[_0x31198e(0x17f)](_0xfb26cf){var _0x113f6e=_0x31198e;return Array['from'](this[_0x113f6e(0x1bd)])[_0x113f6e(0x1a7)](_0x598bc2=>_0x598bc2(_0xfb26cf));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x22e794,_0x9ad2b6,_0x200a03,_0x2996e7)=>{for(var _0x14cdbc=_0x2996e7>0x1?void 0x0:_0x2996e7?Ee(_0x9ad2b6,_0x200a03):_0x9ad2b6,_0x1d7526=_0x22e794['length']-0x1,_0x25e93e;_0x1d7526>=0x0;_0x1d7526--)(_0x25e93e=_0x22e794[_0x1d7526])&&(_0x14cdbc=_0x25e93e(_0x14cdbc)||_0x14cdbc);return _0x14cdbc;},Ne=(_0x2de2b2,_0x8669e9)=>(_0x70f1be,_0x248c2f)=>_0x8669e9(_0x70f1be,_0x248c2f,_0x2de2b2);let m=class extends _0x3039f2{constructor(_0x494c2e){var _0x5ed743=_0x31198e;super(),this[_0x5ed743(0x1b3)]=_0x494c2e,this[_0x5ed743(0x19e)]();}['_init'](){var _0x1fd796=_0x31198e;[_0x56f8dd['id'],_0x39acd7['id'],_0x45d30c['id']][_0x1fd796(0x198)](_0x4053f9=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x4053f9));});}};function _0x4014(){var _0x4c674b=['_sharedOperations','dispose$','_handleOnline','operations','mutations','prototype','fill','next','clear','live-share-icon','propertyIsEnumerable','getTypeOfUnitAdded$','attrs','635010wcKJpr','_commandService','LiveShareIcon','delete','currentColor','_status$','Start\x20following','getOwnPropertyDescriptor','text','_collabSession','You\x27re\x20not\x20following\x20the\x20presenter','then','has','shouldShareOperation','length','univerjs-icon\x20univerjs-icon-','defIds','tryStartPresenting','trim','_config','307382dfKnLy','OFFLINE','div','_startFollowing','getInitialStates','memberID','status$','setConfig','_unitID','_presenter','1em','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','set','pipe','HEADER_MENU','tag','dispose','_collabSessionService','getCurrentTypeOfUnit$','_handleNewChangeSets','0\x200\x2017\x2017','concat','call','idSuffix','mask','LIVESHARE_FETCH_OPERATIONS','idle','onStarting','forEach','following','_univerInstanceService','Present\x20this\x20document','IDLE','unitId','_init','getMemberID','startFollowing','PRESENTING','add','type','7111937TjIJpc','presenter','defs','map','stopPresenting','string','LIVESHARE_TERMINATE','LIVESHARE_NEW_HOST','_handleOperation','UNIVER_SHEET','requireSession','FOLLOWING','extend','onRendered','defineProperty','_liveShareService','http://www.w3.org/2000/svg','549166HBgFUL','none','assign','ONLINE','univer-size-4','2863008ONuVEO','button','data','_reporters','_configService','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_entities','displayName','getTypeOfUnitDisposed$','NEW_CHANGESETS','not-following','_startPresenting','Start','executeCommand','values','_handleTerminate','offline','subscribe','init','27622824CsdptJ','icon','current','live-share.config','get','6WSepWY','symbol','unsubscribe','registerSharedOperation','complete','NOT_FOLLOWING','_stopPresenting','UNIVER_UNKNOWN','indexOf','registerInitialStateReporter','override','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinator','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','getOwnPropertySymbols','includes','sheet','_status','_startLiveShareCoordinator','_handleNewHost','_stopFollowing','You\x27re\x20presenting\x20the\x20document','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','_handleOffline','svg','find','xlink:href','entries','_fetchOperations','_uiPartsService','reverse','presenting','colorChannel1','send','4015014BeOJQU','LIVESHARE_OPERATION','getConfig','stopFollowing','_injector','getValue','pluginName','toString','children','params','stringify','asObservable','apply','className','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_beIdle','UniverIcon','getUnitId','_commandDisposable','parse','evenodd','LIVESHARE_REQUEST_HOST','univer-mb-3\x20univer-w-full\x20univer-text-sm'];_0x4014=function(){return _0x4c674b;};return _0x4014();}m=we([Ne(0x0,_0x44183f(L))],m);var c=function(){var _0x469d03=_0x31198e;return c=Object[_0x469d03(0x1b7)]||function(_0x2c039d){var _0x3b30a8=_0x469d03;for(var _0x2182d4,_0x29c714=0x1,_0x2f7ea8=arguments[_0x3b30a8(0x175)];_0x29c714<_0x2f7ea8;_0x29c714++){_0x2182d4=arguments[_0x29c714];for(var _0x44dc78 in _0x2182d4)Object[_0x3b30a8(0x15f)]['hasOwnProperty'][_0x3b30a8(0x192)](_0x2182d4,_0x44dc78)&&(_0x2c039d[_0x44dc78]=_0x2182d4[_0x44dc78]);}return _0x2c039d;},c[_0x469d03(0x14f)](this,arguments);},Ce=function(_0x17f5c1,_0x4d78f4){var _0x543fba=_0x31198e,_0x5c688a={};for(var _0x182bf0 in _0x17f5c1)Object[_0x543fba(0x15f)]['hasOwnProperty'][_0x543fba(0x192)](_0x17f5c1,_0x182bf0)&&_0x4d78f4[_0x543fba(0x1da)](_0x182bf0)<0x0&&(_0x5c688a[_0x182bf0]=_0x17f5c1[_0x182bf0]);if(_0x17f5c1!=null&&typeof Object[_0x543fba(0x1e0)]=='function'){for(var _0x348462=0x0,_0x182bf0=Object['getOwnPropertySymbols'](_0x17f5c1);_0x348462<_0x182bf0[_0x543fba(0x175)];_0x348462++)_0x4d78f4[_0x543fba(0x1da)](_0x182bf0[_0x348462])<0x0&&Object['prototype'][_0x543fba(0x164)]['call'](_0x17f5c1,_0x182bf0[_0x348462])&&(_0x5c688a[_0x182bf0[_0x348462]]=_0x17f5c1[_0x182bf0[_0x348462]]);}return _0x5c688a;},W=_0x35ed48(function(_0x939879,_0x3f12ec){var _0x3575da=_0x31198e,_0x15b519=_0x939879[_0x3575da(0x1ce)],_0x113ddc=_0x939879['id'],_0x45465c=_0x939879['className'],_0x38f5c5=_0x939879[_0x3575da(0x1b0)],_0x1acc17=Ce(_0x939879,[_0x3575da(0x1ce),'id',_0x3575da(0x150),_0x3575da(0x1b0)]),_0x563d2c=_0x3575da(0x176)['concat'](_0x113ddc,'\x20')[_0x3575da(0x191)](_0x45465c||'')[_0x3575da(0x179)](),_0x266c6d=_0x3745a5('_'['concat'](Le()));return Y(_0x15b519,''[_0x3575da(0x191)](_0x113ddc),{'defIds':_0x15b519[_0x3575da(0x177)],'idSuffix':_0x266c6d[_0x3575da(0x1cf)]},c({'ref':_0x3f12ec,'className':_0x563d2c},_0x1acc17),_0x38f5c5);});function Y(_0x1d3ee5,_0x5b7941,_0xa05807,_0x36525f,_0x9e122e){var _0x48bbb5=_0x31198e;return _0x15565a(_0x1d3ee5[_0x48bbb5(0x18b)],c(c({'key':_0x5b7941},De(_0x1d3ee5,_0xa05807,_0x9e122e)),_0x36525f),(xe(_0x1d3ee5,_0xa05807)[_0x48bbb5(0x14b)]||[])['map'](function(_0x47e4eb,_0x3de012){var _0x49cb2d=_0x48bbb5;return Y(_0x47e4eb,''[_0x49cb2d(0x191)](_0x5b7941,'-')['concat'](_0x1d3ee5[_0x49cb2d(0x18b)],'-')['concat'](_0x3de012),_0xa05807,void 0x0,_0x9e122e);}));}function De(_0x2fd1eb,_0x543afd,_0x3a54b3){var _0x7db80e=_0x31198e,_0x1c4cd3=c({},_0x2fd1eb['attrs']);_0x3a54b3!=null&&_0x3a54b3[_0x7db80e(0x141)]&&_0x1c4cd3['fill']===_0x7db80e(0x141)&&(_0x1c4cd3[_0x7db80e(0x160)]=_0x3a54b3[_0x7db80e(0x141)]),_0x2fd1eb[_0x7db80e(0x18b)]==='mask'&&_0x1c4cd3['id']&&(_0x1c4cd3['id']=_0x1c4cd3['id']+_0x543afd[_0x7db80e(0x193)]),Object[_0x7db80e(0x13c)](_0x1c4cd3)['forEach'](function(_0x68f6b5){var _0x504694=_0x7db80e,_0x27dd93=_0x68f6b5[0x0],_0x3f7b78=_0x68f6b5[0x1];_0x27dd93===_0x504694(0x194)&&typeof _0x3f7b78==_0x504694(0x1a9)&&(_0x1c4cd3[_0x27dd93]=_0x3f7b78['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x543afd[_0x504694(0x193)],')')));});var _0x418e55=_0x543afd[_0x7db80e(0x177)];return!_0x418e55||_0x418e55[_0x7db80e(0x175)]===0x0||(_0x2fd1eb['tag']==='use'&&_0x1c4cd3[_0x7db80e(0x13b)]&&(_0x1c4cd3[_0x7db80e(0x13b)]=_0x1c4cd3[_0x7db80e(0x13b)]+_0x543afd[_0x7db80e(0x193)]),Object['entries'](_0x1c4cd3)[_0x7db80e(0x198)](function(_0x2cbca2){var _0x265d09=_0x7db80e,_0x4bcb2b=_0x2cbca2[0x0],_0x10cba0=_0x2cbca2[0x1];typeof _0x10cba0=='string'&&(_0x1c4cd3[_0x4bcb2b]=_0x10cba0['replace'](/url\(#(.*)\)/,'url(#$1'[_0x265d09(0x191)](_0x543afd[_0x265d09(0x193)],')')));})),_0x1c4cd3;}function xe(_0x69e268,_0x48d728){var _0x3e0d7b=_0x31198e,_0x2de8f9,_0x6f3d14=_0x48d728[_0x3e0d7b(0x177)];return!_0x6f3d14||_0x6f3d14[_0x3e0d7b(0x175)]===0x0?_0x69e268:_0x69e268[_0x3e0d7b(0x18b)]===_0x3e0d7b(0x1a6)&&(!((_0x2de8f9=_0x69e268[_0x3e0d7b(0x14b)])===null||_0x2de8f9===void 0x0)&&_0x2de8f9[_0x3e0d7b(0x175)])?c(c({},_0x69e268),{'children':_0x69e268[_0x3e0d7b(0x14b)][_0x3e0d7b(0x1a7)](function(_0x5bf157){var _0x1b10ab=_0x3e0d7b;return typeof _0x5bf157[_0x1b10ab(0x166)]['id']==_0x1b10ab(0x1a9)&&_0x6f3d14&&_0x6f3d14[_0x1b10ab(0x1e1)](_0x5bf157[_0x1b10ab(0x166)]['id'])?c(c({},_0x5bf157),{'attrs':c(c({},_0x5bf157[_0x1b10ab(0x166)]),{'id':_0x5bf157['attrs']['id']+_0x48d728[_0x1b10ab(0x193)]})}):_0x5bf157;})}):_0x69e268;}function Le(){var _0x339947=_0x31198e;return Math['random']()[_0x339947(0x14a)](0x24)['substring'](0x2,0x8);}W[_0x31198e(0x1c1)]=_0x31198e(0x153);var ye={'tag':_0x31198e(0x139),'attrs':{'xmlns':_0x31198e(0x1b4),'fill':_0x31198e(0x1b6),'viewBox':_0x31198e(0x190),'width':_0x31198e(0x185),'height':_0x31198e(0x185)},'children':[{'tag':'path','attrs':{'fill':_0x31198e(0x16b),'d':_0x31198e(0x1df)}},{'tag':'path','attrs':{'fill':_0x31198e(0x16b),'d':_0x31198e(0x1bf),'fillRule':_0x31198e(0x157),'clipRule':'evenodd'}}]},B=_0x35ed48(function(_0x118fdf,_0x1439f6){var _0x343ea1=_0x31198e;return _0x15565a(W,Object[_0x343ea1(0x1b7)]({},_0x118fdf,{'id':_0x343ea1(0x163),'ref':_0x1439f6,'icon':ye}));});B[_0x31198e(0x1c1)]=_0x31198e(0x169);var Re=Object[_0x31198e(0x16e)],Z=(_0x32ed89,_0x69c933,_0x53a364,_0x3314b2)=>{for(var _0x2c66be=_0x3314b2>0x1?void 0x0:_0x3314b2?Re(_0x69c933,_0x53a364):_0x69c933,_0x35c3e1=_0x32ed89['length']-0x1,_0x56bc81;_0x35c3e1>=0x0;_0x35c3e1--)(_0x56bc81=_0x32ed89[_0x35c3e1])&&(_0x2c66be=_0x56bc81(_0x2c66be)||_0x2c66be);return _0x2c66be;},f=(_0x485c98,_0x16dd65)=>(_0xfb2e34,_0x59141a)=>_0x16dd65(_0xfb2e34,_0x59141a,_0x485c98);let I=class extends _0x25d182{constructor(_0x219269,_0x1d6ecd,_0x31c117){var _0x11d7b3=_0x31198e;super(),d(this,_0x11d7b3(0x1c0),new Map()),(this[_0x11d7b3(0x19a)]=_0x219269,this[_0x11d7b3(0x147)]=_0x1d6ecd,this['_collabSessionService']=_0x31c117,this[_0x11d7b3(0x19e)]());}async[_0x31198e(0x1de)](_0x1a7c6b){var _0x37cc77=_0x31198e;return this[_0x37cc77(0x1c0)][_0x37cc77(0x173)](_0x1a7c6b)||await this[_0x37cc77(0x1e4)](_0x1a7c6b),this[_0x37cc77(0x1c0)]['get'](_0x1a7c6b);}[_0x31198e(0x19e)](){var _0xe49bb3=_0x31198e;this['_univerInstanceService'][_0xe49bb3(0x165)](_0x384d9f[_0xe49bb3(0x1ad)])[_0xe49bb3(0x189)](_0x3106b9(this[_0xe49bb3(0x15b)]))[_0xe49bb3(0x1cb)](async _0x5a2bed=>{var _0xfa790b=_0xe49bb3;const _0x3ee190=_0x5a2bed[_0xfa790b(0x154)]();this[_0xfa790b(0x1c0)][_0xfa790b(0x173)](_0x3ee190)||this['_startLiveShareCoordinator'](_0x3ee190);}),this[_0xe49bb3(0x19a)][_0xe49bb3(0x1c2)](_0x384d9f[_0xe49bb3(0x1ad)])[_0xe49bb3(0x189)](_0x3106b9(this['dispose$']))[_0xe49bb3(0x1cb)](_0x42d38e=>{var _0xcf174=_0xe49bb3;const _0x5d817e=_0x42d38e[_0xcf174(0x154)](),_0x281491=this[_0xcf174(0x1c0)]['get'](_0x5d817e);_0x281491==null||_0x281491['dispose']();});}async[_0x31198e(0x1e4)](_0x2af52d){var _0x4e1990=_0x31198e;const _0x391200=await this[_0x4e1990(0x18d)][_0x4e1990(0x1ae)](_0x2af52d),_0x432ced=this[_0x4e1990(0x147)]['createInstance'](C,_0x2af52d,_0x391200);return _0x432ced[_0x4e1990(0x1cc)](),this[_0x4e1990(0x1c0)][_0x4e1990(0x188)](_0x2af52d,_0x432ced),_0x432ced;}};I=Z([f(0x0,_0xa538ea),f(0x1,_0x44183f(_0x59ff7b)),f(0x2,_0x44183f(_0x3797e6))],I);var h=(_0x3232cd=>(_0x3232cd[_0x31198e(0x17c)]=_0x31198e(0x1ca),_0x3232cd[_0x31198e(0x19c)]='idle',_0x3232cd[_0x31198e(0x1af)]=_0x31198e(0x199),_0x3232cd['NOT_FOLLOWING']=_0x31198e(0x1c4),_0x3232cd[_0x31198e(0x1a1)]=_0x31198e(0x140),_0x3232cd))(h||{});const Pe=_0x31198e(0x186),Ae=0xc8;let C=class extends _0x25d182{constructor(_0x59e35b,_0x2d85de,_0x18ca40,_0x1d23da,_0x3d9e4c){var _0x5e9c6a=_0x31198e;super(),d(this,_0x5e9c6a(0x16c),new _0x231456('idle')),d(this,_0x5e9c6a(0x181),this[_0x5e9c6a(0x16c)][_0x5e9c6a(0x14e)]()),d(this,_0x5e9c6a(0x19e),!0x1),d(this,_0x5e9c6a(0x155),null),d(this,_0x5e9c6a(0x184),null),(this['_unitID']=_0x59e35b,this[_0x5e9c6a(0x170)]=_0x2d85de,this[_0x5e9c6a(0x1be)]=_0x18ca40,this[_0x5e9c6a(0x1b3)]=_0x1d23da,this['_commandService']=_0x3d9e4c);}get[_0x31198e(0x1e3)](){var _0x24dc83=_0x31198e;return this['_status$'][_0x24dc83(0x148)]();}[_0x31198e(0x18c)](){var _0x5cee9c=_0x31198e,_0x3a56f0;(_0x3a56f0=this[_0x5cee9c(0x155)])==null||_0x3a56f0[_0x5cee9c(0x18c)](),this[_0x5cee9c(0x16c)]['next'](_0x5cee9c(0x196)),this[_0x5cee9c(0x16c)][_0x5cee9c(0x1d6)]();}[_0x31198e(0x1cc)](){var _0x5e8908=_0x31198e;this['_init']||(this['_init']=!0x0,this[_0x5e8908(0x170)]['sessionStatus$'][_0x5e8908(0x189)](_0x3106b9(this['dispose$']))[_0x5e8908(0x1cb)](_0x4f0ea7=>{var _0x3cbb36=_0x5e8908;switch(_0x4f0ea7){case _0xbb74fd[_0x3cbb36(0x17c)]:this['_handleOffline']();break;case _0xbb74fd[_0x3cbb36(0x1b8)]:this['_handleOnline']();break;}}),this[_0x5e8908(0x170)]['event$'][_0x5e8908(0x189)](_0x3106b9(this['dispose$']))[_0x5e8908(0x1cb)](_0x2a152d=>{var _0x37f555=_0x5e8908;const {eventID:_0x4d63f3}=_0x2a152d;switch(_0x4d63f3){case _0x25e5a9[_0x37f555(0x1ab)]:this[_0x37f555(0x1e5)](_0x2a152d);break;case _0x25e5a9['LIVESHARE_OPERATION']:this['_handleOperation'](_0x2a152d);break;case _0x25e5a9[_0x37f555(0x1aa)]:this[_0x37f555(0x1c9)]();break;case _0x25e5a9[_0x37f555(0x1c3)]:this[_0x37f555(0x18f)](_0x2a152d);break;}}));}[_0x31198e(0x178)](){var _0x2951bc=_0x31198e;this[_0x2951bc(0x170)][_0x2951bc(0x142)]({'eventID':_0x25e5a9[_0x2951bc(0x158)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x2951bc(0x19f)]()}},this[_0x2951bc(0x183)]);}[_0x31198e(0x1a8)](){var _0x538883=_0x31198e;this[_0x538883(0x1e3)]==='presenting'&&(this[_0x538883(0x16c)][_0x538883(0x161)](_0x538883(0x196)),this['_collabSession'][_0x538883(0x142)]({'eventID':_0x25e5a9[_0x538883(0x1aa)],'data':{'unitID':this[_0x538883(0x183)]}},this[_0x538883(0x183)]));}[_0x31198e(0x1a0)](){var _0x4b72ea=_0x31198e;this[_0x4b72ea(0x1e3)]==='not-following'&&(this[_0x4b72ea(0x16c)][_0x4b72ea(0x161)](_0x4b72ea(0x199)),this['_startFollowing']());}[_0x31198e(0x146)](){var _0x481b41=_0x31198e;this['_status']===_0x481b41(0x199)&&this[_0x481b41(0x1e6)]();}[_0x31198e(0x1e5)](_0x3d2c91){var _0x4c3e3d=_0x31198e;const {presenter:_0x1d111c}=_0x3d2c91[_0x4c3e3d(0x1bc)],_0x487473=this['_collabSession'][_0x4c3e3d(0x19f)]();this[_0x4c3e3d(0x184)]=_0x1d111c,_0x1d111c===_0x487473?(this[_0x4c3e3d(0x1e6)](),this[_0x4c3e3d(0x1c5)]()):this['_status']!==_0x4c3e3d(0x1c4)&&(this[_0x4c3e3d(0x1d8)](),this[_0x4c3e3d(0x17e)]());}[_0x31198e(0x13d)](){var _0x2d1520=_0x31198e;const _0x48f96d={'eventID':_0x25e5a9[_0x2d1520(0x195)]};this[_0x2d1520(0x170)][_0x2d1520(0x142)](_0x48f96d,this['_unitID']);}[_0x31198e(0x1c9)](){var _0x166412=_0x31198e;this['_presenter']=null,this[_0x166412(0x1e3)]!==_0x166412(0x140)&&this[_0x166412(0x152)]();}[_0x31198e(0x18f)](_0x432340){var _0x12c3bc=_0x31198e;if(this[_0x12c3bc(0x1e3)]===_0x12c3bc(0x199)&&this['_presenter']===_0x432340[_0x12c3bc(0x1bc)][_0x12c3bc(0x180)]){const _0x444890=_0x2b7d41(_0x432340['data'])[_0x12c3bc(0x15e)][_0x12c3bc(0x13f)]()[_0x12c3bc(0x13a)](_0x3031de=>_0x3031de['id']===_0x182beb['id']);if(_0x444890){const _0x2bd419=_0x444890[_0x12c3bc(0x14c)][_0x12c3bc(0x19d)],_0x7bcdb5=_0x444890[_0x12c3bc(0x14c)][_0x12c3bc(0x1e2)]['id'];setTimeout(()=>{var _0x4dd280=_0x12c3bc;this[_0x4dd280(0x168)][_0x4dd280(0x1c7)](_0x45d30c['id'],{'unitId':_0x2bd419,'subUnitId':_0x7bcdb5},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xe8a878=_0x31198e;this['_status$']['next'](_0xe8a878(0x140));const _0x4ec10d=new Map(),_0x4a21f1=this[_0xe8a878(0x155)]=new _0x8826e3();_0x4a21f1['add'](_0x322b7a(()=>{var _0x341c9c=_0xe8a878;_0x4ec10d[_0x341c9c(0x198)](_0xcb57a7=>_0xcb57a7[_0x341c9c(0x1d6)]()),_0x4ec10d[_0x341c9c(0x162)]();})),_0x4a21f1[_0xe8a878(0x1a2)](this[_0xe8a878(0x168)]['onCommandExecuted'](_0x3526f8=>{var _0x4a509d=_0xe8a878,_0x2b7e77;if(_0x3526f8['type']!==_0x5520f3['OPERATION']||!this[_0x4a509d(0x1b3)][_0x4a509d(0x174)](_0x3526f8['id']))return;const {id:_0x68a216}=_0x3526f8;let _0x5cdd59;_0x4ec10d[_0x4a509d(0x173)](_0x68a216)?_0x5cdd59=_0x4ec10d[_0x4a509d(0x1d1)](_0x68a216):(_0x5cdd59=new _0x5b5f3e(),_0x4ec10d[_0x4a509d(0x188)](_0x68a216,_0x5cdd59),_0x5cdd59[_0x4a509d(0x189)](_0x21d466((_0x2b7e77=this[_0x4a509d(0x1be)][_0x4a509d(0x145)](Pe))!=null?_0x2b7e77:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a509d(0x1cb)](_0x1c2ad1=>{var _0x480d0d=_0x4a509d;this[_0x480d0d(0x170)][_0x480d0d(0x142)]({'eventID':_0x25e5a9[_0x480d0d(0x144)],'data':{'unitID':this['_unitID'],'operations':{[_0x1c2ad1['id']]:{'id':_0x1c2ad1['id'],'params':JSON[_0x480d0d(0x14d)](_0x1c2ad1[_0x480d0d(0x14c)])}}}},this[_0x480d0d(0x183)]);})),_0x5cdd59[_0x4a509d(0x161)](_0x3526f8);})),this[_0xe8a878(0x1b3)]['getInitialStates'](this['_unitID'])[_0xe8a878(0x198)](_0x2bef31=>this[_0xe8a878(0x170)][_0xe8a878(0x142)]({'eventID':_0x25e5a9[_0xe8a878(0x144)],'data':{'unitID':this[_0xe8a878(0x183)],'operations':{[_0x2bef31['id']]:{'id':_0x2bef31['id'],'params':JSON['stringify'](_0x2bef31[_0xe8a878(0x14c)])}}}},this[_0xe8a878(0x183)]));}[_0x31198e(0x1d8)](){var _0x5d4a38=_0x31198e,_0x122c66;this[_0x5d4a38(0x16c)]['next'](_0x5d4a38(0x196)),(_0x122c66=this[_0x5d4a38(0x155)])==null||_0x122c66[_0x5d4a38(0x18c)](),this['_commandDisposable']=null;}[_0x31198e(0x17e)](){var _0x5685b0=_0x31198e,_0x33646b;(_0x33646b=this[_0x5685b0(0x155)])==null||_0x33646b[_0x5685b0(0x18c)](),this[_0x5685b0(0x16c)]['next']('following');}[_0x31198e(0x152)](){var _0x470ba6=_0x31198e,_0x465739;this[_0x470ba6(0x16c)][_0x470ba6(0x161)]('idle'),(_0x465739=this[_0x470ba6(0x155)])==null||_0x465739[_0x470ba6(0x18c)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5900ea=_0x31198e,_0x528159;this[_0x5900ea(0x16c)][_0x5900ea(0x161)](_0x5900ea(0x1c4)),(_0x528159=this[_0x5900ea(0x155)])==null||_0x528159[_0x5900ea(0x18c)]();}[_0x31198e(0x1ac)](_0x10e7bc){var _0x4894c3=_0x31198e;if([_0x4894c3(0x140),'not-following',_0x4894c3(0x1ca)][_0x4894c3(0x1e1)](this[_0x4894c3(0x1e3)])||!_0x10e7bc[_0x4894c3(0x1bc)][_0x4894c3(0x1a5)]||_0x10e7bc['data'][_0x4894c3(0x1a5)]===this[_0x4894c3(0x170)]['getMemberID']())return;this['_status']===_0x4894c3(0x196)&&this[_0x4894c3(0x17e)]();const _0xdf26ad=_0x10e7bc[_0x4894c3(0x1bc)][_0x4894c3(0x15d)];Object[_0x4894c3(0x1c8)](_0xdf26ad)[_0x4894c3(0x198)](_0x4ab220=>{var _0x32b62e=_0x4894c3;this['_commandService']['executeCommand'](_0x4ab220['id'],_0x4ab220['params']?JSON[_0x32b62e(0x156)](_0x4ab220[_0x32b62e(0x14c)]):null,{'fromCollab':!0x0});});}[_0x31198e(0x138)](){var _0x53a2fe=_0x31198e,_0x238252;this[_0x53a2fe(0x16c)][_0x53a2fe(0x161)](_0x53a2fe(0x1ca)),(_0x238252=this[_0x53a2fe(0x155)])==null||_0x238252[_0x53a2fe(0x18c)]();}[_0x31198e(0x15c)](){var _0x381c50=_0x31198e;this['_status$'][_0x381c50(0x161)](_0x381c50(0x196)),this[_0x381c50(0x13d)]();}};C=Z([f(0x2,_0x5ad91b),f(0x3,_0x44183f(L)),f(0x4,_0x1f2ab5)],C);function Te(){var _0x22cfea=_0x31198e;const _0xce3369=_0x1bdc43(I),_0x56216f=_0x1bdc43(_0xa538ea),_0x48c8fb=_0x5068f5(()=>_0x56216f[_0x22cfea(0x18e)](_0x384d9f['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x125df2,_0x1d1654]=_0x3b70aa(null),[_0x59d74f,_0x50f151]=_0x3b70aa(h[_0x22cfea(0x19c)]),_0x58eb84=_0x3745a5(null);return _0x3a4d4a(()=>(_0x48c8fb&&_0xce3369[_0x22cfea(0x1de)](_0x48c8fb[_0x22cfea(0x154)]())[_0x22cfea(0x172)](_0x109ec6=>{var _0x1eb9e1=_0x22cfea;_0x1d1654(_0x109ec6),_0x58eb84[_0x1eb9e1(0x1cf)]=_0x109ec6['status$'][_0x1eb9e1(0x1cb)](_0x38d64d=>{_0x50f151(_0x38d64d);});}),()=>{var _0x4cccea=_0x22cfea,_0x31bbbf;(_0x31bbbf=_0x58eb84[_0x4cccea(0x1cf)])==null||_0x31bbbf[_0x4cccea(0x1d4)](),_0x58eb84['current']=null;}),[_0x48c8fb,_0xce3369]),_0x125df2?_0x15aab4(_0x3cbf5d,{'align':'end','disabled':_0x59d74f===h[_0x22cfea(0x17c)],'className':_0x22cfea(0x137),'overlay':_0x15aab4($e,{'status':_0x59d74f,'coordinator':_0x125df2}),'children':_0x15aab4(_0x22cfea(0x1bb),{'className':_0x378b8b(_0x22cfea(0x151),{'univer-cursor-not-allowed':_0x59d74f===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59d74f!==h[_0x22cfea(0x17c)]}),'type':_0x22cfea(0x1bb),'children':_0x15aab4(B,{'className':_0x22cfea(0x1b9)})})}):null;}function $e(_0x273b1c){var _0x170935=_0x31198e;const {status:_0x2258ba,coordinator:_0x535858}=_0x273b1c;switch(_0x2258ba){case h[_0x170935(0x19c)]:return _0x15aab4(Fe,{'coordinator':_0x535858});case h[_0x170935(0x1af)]:return _0x15aab4(He,{'coordinator':_0x535858});case h[_0x170935(0x1d7)]:return _0x15aab4(je,{'coordinator':_0x535858});case h[_0x170935(0x17c)]:return _0x15aab4(Ve,{});case h[_0x170935(0x1a1)]:return _0x15aab4(Ue,{'coordinator':_0x535858});default:return null;}}function Fe(_0x5eba7a){var _0x55a95d=_0x31198e;const {coordinator:_0x4841e7}=_0x5eba7a;return _0x346495(_0x5b11db,{'children':[_0x15aab4(_0x55a95d(0x17d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x55a95d(0x19b)}),_0x15aab4(_0x225bf1,{'onClick':()=>_0x4841e7[_0x55a95d(0x178)](),'children':_0x55a95d(0x1c6)})]});}function He(_0x46482c){var _0x4747b1=_0x31198e;const {coordinator:_0x1d9a79}=_0x46482c;return _0x346495(_0x5b11db,{'children':[_0x15aab4(_0x4747b1(0x17d),{'className':_0x4747b1(0x159),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x15aab4(_0x225bf1,{'onClick':()=>_0x1d9a79['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x20291c){var _0x5d87a1=_0x31198e;const {coordinator:_0x1b510c}=_0x20291c;return _0x346495(_0x5b11db,{'children':[_0x15aab4(_0x5d87a1(0x17d),{'className':_0x5d87a1(0x159),'children':_0x5d87a1(0x171)}),_0x15aab4(_0x225bf1,{'variant':_0x5d87a1(0x16f),'onClick':()=>_0x1b510c[_0x5d87a1(0x1a0)](),'children':_0x5d87a1(0x16d)})]});}function Ue(_0x4015eb){var _0x12d97d=_0x31198e;const {coordinator:_0x4da420}=_0x4015eb;return _0x346495(_0x5b11db,{'children':[_0x15aab4('div',{'className':_0x12d97d(0x159),'children':_0x12d97d(0x1e7)}),_0x15aab4(_0x225bf1,{'variant':'default','onClick':()=>_0x4da420['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x15aab4(_0x5b11db,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x31198e(0x16e)],ke=(_0xc990f1,_0x12255d,_0x3c8ce0,_0x477b6a)=>{var _0x2c545f=_0x31198e;for(var _0x568556=_0x477b6a>0x1?void 0x0:_0x477b6a?Me(_0x12255d,_0x3c8ce0):_0x12255d,_0x3f2658=_0xc990f1[_0x2c545f(0x175)]-0x1,_0x45076f;_0x3f2658>=0x0;_0x3f2658--)(_0x45076f=_0xc990f1[_0x3f2658])&&(_0x568556=_0x45076f(_0x568556)||_0x568556);return _0x568556;},$=(_0x11e861,_0x33c6d0)=>(_0x220c4c,_0x3ed586)=>_0x33c6d0(_0x220c4c,_0x3ed586,_0x11e861);let b=class extends _0x3039f2{constructor(_0x2159d3,_0x513542){var _0x3485e7=_0x31198e;super(),this[_0x3485e7(0x147)]=_0x2159d3,this[_0x3485e7(0x13e)]=_0x513542,this[_0x3485e7(0x187)]();}[_0x31198e(0x187)](){var _0x58fe06=_0x31198e;this['disposeWithMe'](this[_0x58fe06(0x13e)]['registerComponent'](_0x2a6ff0[_0x58fe06(0x18a)],()=>_0x5a25e5(Te,this[_0x58fe06(0x147)])));}};b=ke([$(0x0,_0x44183f(_0x59ff7b)),$(0x1,_0x3210f0)],b);var Ge=Object[_0x31198e(0x1b2)],We=Object[_0x31198e(0x16e)],Ye=(_0x84819e,_0x116b02,_0xf3d972)=>_0x116b02 in _0x84819e?Ge(_0x84819e,_0x116b02,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf3d972}):_0x84819e[_0x116b02]=_0xf3d972,Be=(_0x5c772f,_0x4ab359,_0x5bfe46,_0xb6edb6)=>{var _0xe5dd9c=_0x31198e;for(var _0x3601bb=_0xb6edb6>0x1?void 0x0:_0xb6edb6?We(_0x4ab359,_0x5bfe46):_0x4ab359,_0x124836=_0x5c772f[_0xe5dd9c(0x175)]-0x1,_0x3b7604;_0x124836>=0x0;_0x124836--)(_0x3b7604=_0x5c772f[_0x124836])&&(_0x3601bb=_0x3b7604(_0x3601bb)||_0x3601bb);return _0x3601bb;},F=(_0x391319,_0x395c9e)=>(_0x224f67,_0x56d130)=>_0x395c9e(_0x224f67,_0x56d130,_0x391319),J=(_0x4b365e,_0x18f896,_0x87715f)=>Ye(_0x4b365e,typeof _0x18f896!=_0x31198e(0x1d3)?_0x18f896+'':_0x18f896,_0x87715f);const Ze=_0x31198e(0x1dd);let O=class extends _0x95d93e{constructor(_0x13202f=T,_0x2aeddd,_0xa5c3f1){var _0xd97a1c=_0x31198e;super(),this['_config']=_0x13202f,this[_0xd97a1c(0x147)]=_0x2aeddd,this['_configService']=_0xa5c3f1;const {..._0x5b1104}=_0x46d38b({},T,this['_config']);this[_0xd97a1c(0x1be)][_0xd97a1c(0x182)](Oe,_0x5b1104);}[_0x31198e(0x197)](){var _0x36e2d8=_0x31198e;_0x352343(this[_0x36e2d8(0x147)],_0x5ee3d2([[L],[I],[m],[b]],this[_0x36e2d8(0x17a)][_0x36e2d8(0x1dc)])),_0x3f2e03(this[_0x36e2d8(0x147)],[[m]]);}[_0x31198e(0x1b1)](){_0x3f2e03(this['_injector'],[[b]]);}};J(O,_0x31198e(0x1a3),_0x384d9f[_0x31198e(0x1d9)]),J(O,_0x31198e(0x149),Ze),O=Be([_0x5e6bbe(_0x40f314),F(0x1,_0x44183f(_0x59ff7b)),F(0x2,_0x5ad91b)],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 _0x1d2061=_0x148e;(function(_0x39dcc5,_0x57177e){var _0x3de184=_0x148e,_0x1a0c45=_0x39dcc5();while(!![]){try{var _0x2ac413=parseInt(_0x3de184(0x107))/0x1*(parseInt(_0x3de184(0xd2))/0x2)+-parseInt(_0x3de184(0x174))/0x3*(parseInt(_0x3de184(0x15f))/0x4)+-parseInt(_0x3de184(0x121))/0x5*(parseInt(_0x3de184(0x152))/0x6)+parseInt(_0x3de184(0x123))/0x7+-parseInt(_0x3de184(0x179))/0x8+-parseInt(_0x3de184(0x126))/0x9*(parseInt(_0x3de184(0x13e))/0xa)+parseInt(_0x3de184(0x159))/0xb;if(_0x2ac413===_0x57177e)break;else _0x1a0c45['push'](_0x1a0c45['shift']());}catch(_0x33d5c6){_0x1a0c45['push'](_0x1a0c45['shift']());}}}(_0x49dd,0xe2e94));var q=Object[_0x1d2061(0xf0)],z=(_0x412ba5,_0x797004,_0x221430)=>_0x797004 in _0x412ba5?q(_0x412ba5,_0x797004,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x221430}):_0x412ba5[_0x797004]=_0x221430,d=(_0x5ad454,_0x5d4cb8,_0x51012d)=>z(_0x5ad454,typeof _0x5d4cb8!='symbol'?_0x5d4cb8+'':_0x5d4cb8,_0x51012d);import{CollaborationSessionService as _0x4cd42a,SessionStatus as _0x2067be,UniverCollaborationClientPlugin as _0x3e8e9b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3ee941,toDisposable as _0x48aed0,Inject as _0x253fee,IUniverInstanceService as _0x33424e,Injector as _0x57aad1,IConfigService as _0xa95083,ICommandService as _0x4e7867,RxDisposable as _0x2ac371,UniverInstanceType as _0xa2c22f,DisposableCollection as _0x25b081,CommandType as _0x382cb4,DependentOn as _0x394549,Plugin as _0x2dc2c4,merge as _0x4db2d4,registerDependencies as _0x5d2766,mergeOverrideWithDependencies as _0x4e7ffe,touchDependencies as _0x86b33f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x2aa18e,InsertSheetMutation as _0xc429d8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x646c22,SetScrollOperation as _0x16bed9}from'@univerjs/sheets-ui';function _0x148e(_0x56ae18,_0x16b15e){var _0x49dd57=_0x49dd();return _0x148e=function(_0x148ebf,_0x4df02c){_0x148ebf=_0x148ebf-0xce;var _0x565179=_0x49dd57[_0x148ebf];return _0x565179;},_0x148e(_0x56ae18,_0x16b15e);}import{useDependency as _0x37b90a,useObservable as _0x33fa75,IUIPartsService as _0x3fcef6,BuiltInUIPart as _0x5b8b60,connectInjector as _0x1e3e05}from'@univerjs/ui';import{jsx as _0x1e62c2,jsxs as _0x12b645,Fragment as _0x4b49ed}from'react/jsx-runtime';import{Dropdown as _0x2f9467,clsx as _0x3df6c9,Button as _0x5a17cb}from'@univerjs/design';function _0x49dd(){var _0x5375fb=['init','replace','attrs','type','text','unsubscribe','string','_sharedOperations','1323492qayczy','createInstance','children','_univerInstanceService','getUnitId','disposeWithMe','1em','26708198mVLIzq','getOwnPropertyDescriptor','LIVESHARE_OPERATION','_handleOnline','data','UniverIcon','4wJXgbq','url(#$1','tryStartPresenting','none','_liveShareService','concat','univerjs-icon\x20univerjs-icon-','shouldShareOperation','getTypeOfUnitAdded$','get','then','_uiPartsService','fill','_init','LIVESHARE_FETCH_OPERATIONS','stopPresenting','currentColor','params','sheet','pluginName','dispose$','2899923MdEGxm','presenting','displayName','stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','8116048gbwdRF','onStarting','parse','_stopFollowing','_startPresenting','OFFLINE','_entities','delete','Present\x20this\x20document','path','1700JdGSkd','prototype','symbol','UNIVER_SHEET','trim','_presenter','live-share-icon','defIds','LIVESHARE_NEW_HOST','_configService','onRendered','pipe','offline','tag','mutations','toString','substring','end','_unitID','className','unitId','indexOf','HEADER_MENU','Start','_collabSessionService','getTypeOfUnitDisposed$','getLiveShareCoordinator','div','assign','http://www.w3.org/2000/svg','defineProperty','presenter','_mountLiveShare','memberID','event$','LIVESHARE_REQUEST_HOST','_injector','set','send','startFollowing','_stopPresenting','_collabSession','find','button','getCurrentTypeOfUnit$','_handleOffline','IDLE','idSuffix','xlink:href','next','includes','call','stringify','1607wHtwxw','You\x27re\x20not\x20following\x20the\x20presenter','dispose','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','sessionStatus$','_fetchOperations','_config','_handleTerminate','_commandDisposable','getMemberID','LIVESHARE_TERMINATE','forEach','_reporters','_handleOperation','idle','NOT_FOLLOWING','FOLLOWING','getOwnPropertySymbols','length','colorChannel1','subscribe','hasOwnProperty','You\x27re\x20following\x20the\x20presenter','complete','map','values','20vvxuXL','override','585879uQZcbC','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_commandService','54cJwseE','_handleNewHost','_startFollowing','not-following','PRESENTING','_startLiveShareCoordinator','reverse','_status$','mask','You\x27are\x20offline.','status$','icon','_status','live-share.config','getConfig','extend','add','ONLINE','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','registerSharedOperation','function','executeCommand','defs','_beIdle','141270FvkwDJ','0\x200\x2017\x2017','univer-size-4','SAME_OPERATION_SHARE_INTERVAL','_handleNewChangeSets','getInitialStates','current','svg','entries','has','onCommandExecuted','following'];_0x49dd=function(){return _0x5375fb;};return _0x49dd();}import{forwardRef as _0x181876,useRef as _0xec2e7b,createElement as _0x43b433,useState as _0x1669ac,useEffect as _0x483153}from'react';import{CollaborationEvent as _0x68e326,parseProtocolChangeset as _0x5bc805}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2a4565,Subject as _0xcf50bc}from'rxjs';import{takeUntil as _0x3f0d49,throttleTime as _0x461b27}from'rxjs/operators';const Oe=_0x1d2061(0x133),T={};class L extends _0x3ee941{constructor(){var _0x2f54a5=_0x1d2061;super(...arguments),d(this,_0x2f54a5(0x151),new Set()),d(this,_0x2f54a5(0x113),new Set());}[_0x1d2061(0x139)](_0x5343a2){var _0x3efda4=_0x1d2061;return this[_0x3efda4(0x151)][_0x3efda4(0x136)](_0x5343a2),_0x48aed0(()=>this[_0x3efda4(0x151)][_0x3efda4(0xcf)](_0x5343a2));}['registerInitialStateReporter'](_0x4ca4b3){var _0x20a830=_0x1d2061;return this['_reporters']['add'](_0x4ca4b3),_0x48aed0(()=>this[_0x20a830(0x113)]['delete'](_0x4ca4b3));}[_0x1d2061(0x166)](_0x244420){var _0x56da68=_0x1d2061;return this[_0x56da68(0x151)][_0x56da68(0x147)](_0x244420);}[_0x1d2061(0x143)](_0x41438a){return Array['from'](this['_reporters'])['map'](_0x47c1b6=>_0x47c1b6(_0x41438a));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x566674,_0x5802b7,_0x462824,_0x58a310)=>{var _0x5e8afa=_0x1d2061;for(var _0x17e0b8=_0x58a310>0x1?void 0x0:_0x58a310?Ee(_0x5802b7,_0x462824):_0x5802b7,_0x38f38b=_0x566674[_0x5e8afa(0x119)]-0x1,_0xcc8898;_0x38f38b>=0x0;_0x38f38b--)(_0xcc8898=_0x566674[_0x38f38b])&&(_0x17e0b8=_0xcc8898(_0x17e0b8)||_0x17e0b8);return _0x17e0b8;},Ne=(_0x197ea,_0x23b7cb)=>(_0xf6c81d,_0x4f6945)=>_0x23b7cb(_0xf6c81d,_0x4f6945,_0x197ea);let m=class extends _0x3ee941{constructor(_0xe3584e){var _0x315288=_0x1d2061;super(),this[_0x315288(0x163)]=_0xe3584e,this[_0x315288(0x16c)]();}[_0x1d2061(0x16c)](){var _0x15dbbd=_0x1d2061;[_0x646c22['id'],_0x16bed9['id'],_0x2aa18e['id']][_0x15dbbd(0x112)](_0x8083e1=>{var _0x5709b6=_0x15dbbd;this[_0x5709b6(0x157)](this[_0x5709b6(0x163)]['registerSharedOperation'](_0x8083e1));});}};m=we([Ne(0x0,_0x253fee(L))],m);var c=function(){var _0x32a5b3=_0x1d2061;return c=Object[_0x32a5b3(0xee)]||function(_0x26a00e){var _0x5e9a97=_0x32a5b3;for(var _0x242225,_0x5780e7=0x1,_0x43ab36=arguments[_0x5e9a97(0x119)];_0x5780e7<_0x43ab36;_0x5780e7++){_0x242225=arguments[_0x5780e7];for(var _0x3fba03 in _0x242225)Object[_0x5e9a97(0xd3)][_0x5e9a97(0x11c)][_0x5e9a97(0x105)](_0x242225,_0x3fba03)&&(_0x26a00e[_0x3fba03]=_0x242225[_0x3fba03]);}return _0x26a00e;},c['apply'](this,arguments);},Ce=function(_0x4a701d,_0x4c241e){var _0x50335e=_0x1d2061,_0x27d899={};for(var _0x12b216 in _0x4a701d)Object[_0x50335e(0xd3)][_0x50335e(0x11c)][_0x50335e(0x105)](_0x4a701d,_0x12b216)&&_0x4c241e[_0x50335e(0xe7)](_0x12b216)<0x0&&(_0x27d899[_0x12b216]=_0x4a701d[_0x12b216]);if(_0x4a701d!=null&&typeof Object[_0x50335e(0x118)]==_0x50335e(0x13a)){for(var _0x157435=0x0,_0x12b216=Object[_0x50335e(0x118)](_0x4a701d);_0x157435<_0x12b216[_0x50335e(0x119)];_0x157435++)_0x4c241e[_0x50335e(0xe7)](_0x12b216[_0x157435])<0x0&&Object[_0x50335e(0xd3)]['propertyIsEnumerable'][_0x50335e(0x105)](_0x4a701d,_0x12b216[_0x157435])&&(_0x27d899[_0x12b216[_0x157435]]=_0x4a701d[_0x12b216[_0x157435]]);}return _0x27d899;},W=_0x181876(function(_0x142d4d,_0x378d5a){var _0x4a1cef=_0x1d2061,_0x5d401f=_0x142d4d[_0x4a1cef(0x131)],_0x4282ee=_0x142d4d['id'],_0x28cc70=_0x142d4d[_0x4a1cef(0xe5)],_0x334218=_0x142d4d['extend'],_0x2515de=Ce(_0x142d4d,['icon','id','className',_0x4a1cef(0x135)]),_0x27bfd4=_0x4a1cef(0x165)[_0x4a1cef(0x164)](_0x4282ee,'\x20')[_0x4a1cef(0x164)](_0x28cc70||'')[_0x4a1cef(0xd6)](),_0x583809=_0xec2e7b('_'[_0x4a1cef(0x164)](Le()));return Y(_0x5d401f,''['concat'](_0x4282ee),{'defIds':_0x5d401f[_0x4a1cef(0xd9)],'idSuffix':_0x583809[_0x4a1cef(0x144)]},c({'ref':_0x378d5a,'className':_0x27bfd4},_0x2515de),_0x334218);});function Y(_0x35ddae,_0x297073,_0x60c24d,_0x167e17,_0x18972a){var _0xf26800=_0x1d2061;return _0x43b433(_0x35ddae[_0xf26800(0xdf)],c(c({'key':_0x297073},De(_0x35ddae,_0x60c24d,_0x18972a)),_0x167e17),(xe(_0x35ddae,_0x60c24d)[_0xf26800(0x154)]||[])[_0xf26800(0x11f)](function(_0x37efb0,_0x250f77){var _0x32b446=_0xf26800;return Y(_0x37efb0,''[_0x32b446(0x164)](_0x297073,'-')['concat'](_0x35ddae[_0x32b446(0xdf)],'-')[_0x32b446(0x164)](_0x250f77),_0x60c24d,void 0x0,_0x18972a);}));}function De(_0x253a8b,_0x3dca18,_0x3451bf){var _0x5a3a6f=_0x1d2061,_0x3061c9=c({},_0x253a8b[_0x5a3a6f(0x14c)]);_0x3451bf!=null&&_0x3451bf[_0x5a3a6f(0x11a)]&&_0x3061c9['fill']===_0x5a3a6f(0x11a)&&(_0x3061c9[_0x5a3a6f(0x16b)]=_0x3451bf[_0x5a3a6f(0x11a)]),_0x253a8b['tag']==='mask'&&_0x3061c9['id']&&(_0x3061c9['id']=_0x3061c9['id']+_0x3dca18['idSuffix']),Object[_0x5a3a6f(0x146)](_0x3061c9)['forEach'](function(_0x2758ff){var _0x53be68=_0x5a3a6f,_0x11cdb5=_0x2758ff[0x0],_0x2accf6=_0x2758ff[0x1];_0x11cdb5===_0x53be68(0x12e)&&typeof _0x2accf6==_0x53be68(0x150)&&(_0x3061c9[_0x11cdb5]=_0x2accf6[_0x53be68(0x14b)](/url\(#(.*)\)/,_0x53be68(0x160)[_0x53be68(0x164)](_0x3dca18[_0x53be68(0x101)],')')));});var _0x1ab441=_0x3dca18[_0x5a3a6f(0xd9)];return!_0x1ab441||_0x1ab441[_0x5a3a6f(0x119)]===0x0||(_0x253a8b[_0x5a3a6f(0xdf)]==='use'&&_0x3061c9[_0x5a3a6f(0x102)]&&(_0x3061c9['xlink:href']=_0x3061c9[_0x5a3a6f(0x102)]+_0x3dca18['idSuffix']),Object[_0x5a3a6f(0x146)](_0x3061c9)['forEach'](function(_0x1938fc){var _0x8ceccb=_0x5a3a6f,_0x365d31=_0x1938fc[0x0],_0x2d9fcd=_0x1938fc[0x1];typeof _0x2d9fcd==_0x8ceccb(0x150)&&(_0x3061c9[_0x365d31]=_0x2d9fcd[_0x8ceccb(0x14b)](/url\(#(.*)\)/,_0x8ceccb(0x160)[_0x8ceccb(0x164)](_0x3dca18[_0x8ceccb(0x101)],')')));})),_0x3061c9;}function xe(_0x57c66c,_0x3f75cd){var _0x73acae=_0x1d2061,_0x40ed2a,_0x54b3ee=_0x3f75cd[_0x73acae(0xd9)];return!_0x54b3ee||_0x54b3ee[_0x73acae(0x119)]===0x0?_0x57c66c:_0x57c66c['tag']===_0x73acae(0x13c)&&(!((_0x40ed2a=_0x57c66c[_0x73acae(0x154)])===null||_0x40ed2a===void 0x0)&&_0x40ed2a['length'])?c(c({},_0x57c66c),{'children':_0x57c66c['children'][_0x73acae(0x11f)](function(_0x279034){var _0x579247=_0x73acae;return typeof _0x279034[_0x579247(0x14c)]['id']=='string'&&_0x54b3ee&&_0x54b3ee[_0x579247(0x104)](_0x279034[_0x579247(0x14c)]['id'])?c(c({},_0x279034),{'attrs':c(c({},_0x279034[_0x579247(0x14c)]),{'id':_0x279034[_0x579247(0x14c)]['id']+_0x3f75cd[_0x579247(0x101)]})}):_0x279034;})}):_0x57c66c;}function Le(){var _0x18d726=_0x1d2061;return Math['random']()[_0x18d726(0xe1)](0x24)[_0x18d726(0xe2)](0x2,0x8);}W[_0x1d2061(0x176)]=_0x1d2061(0x15e);var ye={'tag':_0x1d2061(0x145),'attrs':{'xmlns':_0x1d2061(0xef),'fill':_0x1d2061(0x162),'viewBox':_0x1d2061(0x13f),'width':_0x1d2061(0x158),'height':_0x1d2061(0x158)},'children':[{'tag':_0x1d2061(0xd1),'attrs':{'fill':'currentColor','d':_0x1d2061(0x138)}},{'tag':_0x1d2061(0xd1),'attrs':{'fill':_0x1d2061(0x16f),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x181876(function(_0x134ef0,_0x21a8f8){var _0x2e2fa9=_0x1d2061;return _0x43b433(W,Object['assign']({},_0x134ef0,{'id':_0x2e2fa9(0xd8),'ref':_0x21a8f8,'icon':ye}));});B[_0x1d2061(0x176)]='LiveShareIcon';var Re=Object[_0x1d2061(0x15a)],Z=(_0x4945f4,_0xb10b67,_0x445c66,_0x4893a6)=>{var _0x4476f9=_0x1d2061;for(var _0x3c51cc=_0x4893a6>0x1?void 0x0:_0x4893a6?Re(_0xb10b67,_0x445c66):_0xb10b67,_0x33bd42=_0x4945f4[_0x4476f9(0x119)]-0x1,_0x501c27;_0x33bd42>=0x0;_0x33bd42--)(_0x501c27=_0x4945f4[_0x33bd42])&&(_0x3c51cc=_0x501c27(_0x3c51cc)||_0x3c51cc);return _0x3c51cc;},f=(_0x348de4,_0x3e7d51)=>(_0x20643b,_0x200493)=>_0x3e7d51(_0x20643b,_0x200493,_0x348de4);let I=class extends _0x2ac371{constructor(_0x4a48a4,_0x1cf881,_0x53401c){var _0x17a61a=_0x1d2061;super(),d(this,'_entities',new Map()),(this[_0x17a61a(0x155)]=_0x4a48a4,this[_0x17a61a(0xf6)]=_0x1cf881,this[_0x17a61a(0xea)]=_0x53401c,this[_0x17a61a(0x16c)]());}async[_0x1d2061(0xec)](_0x5ff3c){var _0x56a3b5=_0x1d2061;return this[_0x56a3b5(0xce)][_0x56a3b5(0x147)](_0x5ff3c)||await this[_0x56a3b5(0x12b)](_0x5ff3c),this[_0x56a3b5(0xce)][_0x56a3b5(0x168)](_0x5ff3c);}[_0x1d2061(0x16c)](){var _0x353ae8=_0x1d2061;this['_univerInstanceService'][_0x353ae8(0x167)](_0xa2c22f[_0x353ae8(0xd5)])[_0x353ae8(0xdd)](_0x3f0d49(this[_0x353ae8(0x173)]))[_0x353ae8(0x11b)](async _0x25172d=>{var _0x18f4af=_0x353ae8;const _0x3a6083=_0x25172d['getUnitId']();this[_0x18f4af(0xce)][_0x18f4af(0x147)](_0x3a6083)||this[_0x18f4af(0x12b)](_0x3a6083);}),this[_0x353ae8(0x155)][_0x353ae8(0xeb)](_0xa2c22f[_0x353ae8(0xd5)])[_0x353ae8(0xdd)](_0x3f0d49(this[_0x353ae8(0x173)]))[_0x353ae8(0x11b)](_0x767fbd=>{var _0x5075f4=_0x353ae8;const _0x1d13a6=_0x767fbd['getUnitId'](),_0x213a30=this[_0x5075f4(0xce)][_0x5075f4(0x168)](_0x1d13a6);_0x213a30==null||_0x213a30[_0x5075f4(0x109)]();});}async[_0x1d2061(0x12b)](_0x2d1539){var _0x55ec85=_0x1d2061;const _0x1a4c3d=await this[_0x55ec85(0xea)]['requireSession'](_0x2d1539),_0x254672=this[_0x55ec85(0xf6)][_0x55ec85(0x153)](C,_0x2d1539,_0x1a4c3d);return _0x254672[_0x55ec85(0x14a)](),this[_0x55ec85(0xce)]['set'](_0x2d1539,_0x254672),_0x254672;}};I=Z([f(0x0,_0x33424e),f(0x1,_0x253fee(_0x57aad1)),f(0x2,_0x253fee(_0x4cd42a))],I);var h=(_0x35ccaf=>(_0x35ccaf['OFFLINE']='offline',_0x35ccaf[_0x1d2061(0x100)]='idle',_0x35ccaf[_0x1d2061(0x117)]='following',_0x35ccaf['NOT_FOLLOWING']=_0x1d2061(0x129),_0x35ccaf[_0x1d2061(0x12a)]=_0x1d2061(0x175),_0x35ccaf))(h||{});const Pe=_0x1d2061(0x141),Ae=0xc8;let C=class extends _0x2ac371{constructor(_0x4499a2,_0xcf3359,_0x15743b,_0x403753,_0x17e1a8){var _0x207318=_0x1d2061;super(),d(this,'_status$',new _0x2a4565('idle')),d(this,_0x207318(0x130),this[_0x207318(0x12d)]['asObservable']()),d(this,'_init',!0x1),d(this,_0x207318(0x10f),null),d(this,'_presenter',null),(this[_0x207318(0xe4)]=_0x4499a2,this['_collabSession']=_0xcf3359,this['_configService']=_0x15743b,this[_0x207318(0x163)]=_0x403753,this[_0x207318(0x125)]=_0x17e1a8);}get[_0x1d2061(0x132)](){var _0x3c3a48=_0x1d2061;return this[_0x3c3a48(0x12d)]['getValue']();}[_0x1d2061(0x109)](){var _0x1d8ed4=_0x1d2061,_0x5bb294;(_0x5bb294=this[_0x1d8ed4(0x10f)])==null||_0x5bb294[_0x1d8ed4(0x109)](),this[_0x1d8ed4(0x12d)][_0x1d8ed4(0x103)]('idle'),this['_status$'][_0x1d8ed4(0x11e)]();}[_0x1d2061(0x14a)](){var _0x2a3546=_0x1d2061;this[_0x2a3546(0x16c)]||(this[_0x2a3546(0x16c)]=!0x0,this['_collabSession'][_0x2a3546(0x10b)]['pipe'](_0x3f0d49(this[_0x2a3546(0x173)]))[_0x2a3546(0x11b)](_0x38a6cb=>{var _0x5303ef=_0x2a3546;switch(_0x38a6cb){case _0x2067be[_0x5303ef(0x17e)]:this[_0x5303ef(0xff)]();break;case _0x2067be[_0x5303ef(0x137)]:this[_0x5303ef(0x15c)]();break;}}),this['_collabSession'][_0x2a3546(0xf4)][_0x2a3546(0xdd)](_0x3f0d49(this[_0x2a3546(0x173)]))['subscribe'](_0x3ef69b=>{var _0x4450cf=_0x2a3546;const {eventID:_0x34f20e}=_0x3ef69b;switch(_0x34f20e){case _0x68e326[_0x4450cf(0xda)]:this['_handleNewHost'](_0x3ef69b);break;case _0x68e326[_0x4450cf(0x15b)]:this[_0x4450cf(0x114)](_0x3ef69b);break;case _0x68e326[_0x4450cf(0x111)]:this[_0x4450cf(0x10e)]();break;case _0x68e326['NEW_CHANGESETS']:this[_0x4450cf(0x142)](_0x3ef69b);break;}}));}['tryStartPresenting'](){var _0x398c10=_0x1d2061;this[_0x398c10(0xfb)][_0x398c10(0xf8)]({'eventID':_0x68e326[_0x398c10(0xf5)],'data':{'unitID':this[_0x398c10(0xe4)],'userID':this[_0x398c10(0xfb)][_0x398c10(0x110)]()}},this[_0x398c10(0xe4)]);}[_0x1d2061(0x16e)](){var _0x46c97f=_0x1d2061;this[_0x46c97f(0x132)]===_0x46c97f(0x175)&&(this[_0x46c97f(0x12d)][_0x46c97f(0x103)]('idle'),this[_0x46c97f(0xfb)][_0x46c97f(0xf8)]({'eventID':_0x68e326[_0x46c97f(0x111)],'data':{'unitID':this[_0x46c97f(0xe4)]}},this[_0x46c97f(0xe4)]));}[_0x1d2061(0xf9)](){var _0x62e876=_0x1d2061;this[_0x62e876(0x132)]==='not-following'&&(this[_0x62e876(0x12d)]['next'](_0x62e876(0x149)),this[_0x62e876(0x128)]());}[_0x1d2061(0x177)](){var _0xf19cf3=_0x1d2061;this[_0xf19cf3(0x132)]===_0xf19cf3(0x149)&&this['_stopFollowing']();}[_0x1d2061(0x127)](_0x11b7ea){var _0x2bbe22=_0x1d2061;const {presenter:_0x5fac1c}=_0x11b7ea[_0x2bbe22(0x15d)],_0x532d2b=this['_collabSession'][_0x2bbe22(0x110)]();this[_0x2bbe22(0xd7)]=_0x5fac1c,_0x5fac1c===_0x532d2b?(this[_0x2bbe22(0x17c)](),this[_0x2bbe22(0x17d)]()):this[_0x2bbe22(0x132)]!=='not-following'&&(this[_0x2bbe22(0xfa)](),this[_0x2bbe22(0x128)]());}[_0x1d2061(0x10c)](){var _0x254434=_0x1d2061;const _0x4ced6f={'eventID':_0x68e326[_0x254434(0x16d)]};this[_0x254434(0xfb)]['send'](_0x4ced6f,this[_0x254434(0xe4)]);}[_0x1d2061(0x10e)](){var _0x19c764=_0x1d2061;this[_0x19c764(0xd7)]=null,this[_0x19c764(0x132)]!==_0x19c764(0x175)&&this[_0x19c764(0x13d)]();}['_handleNewChangeSets'](_0x51a3e5){var _0x10b70d=_0x1d2061;if(this[_0x10b70d(0x132)]===_0x10b70d(0x149)&&this[_0x10b70d(0xd7)]===_0x51a3e5[_0x10b70d(0x15d)][_0x10b70d(0xf3)]){const _0x418104=_0x5bc805(_0x51a3e5[_0x10b70d(0x15d)])[_0x10b70d(0xe0)][_0x10b70d(0x12c)]()[_0x10b70d(0xfc)](_0x2f904b=>_0x2f904b['id']===_0xc429d8['id']);if(_0x418104){const _0xd68611=_0x418104['params'][_0x10b70d(0xe6)],_0x437630=_0x418104[_0x10b70d(0x170)][_0x10b70d(0x171)]['id'];setTimeout(()=>{var _0x1cf163=_0x10b70d;this[_0x1cf163(0x125)][_0x1cf163(0x13b)](_0x2aa18e['id'],{'unitId':_0xd68611,'subUnitId':_0x437630},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xb43744=_0x1d2061;this['_status$']['next'](_0xb43744(0x175));const _0x457d59=new Map(),_0x34f55c=this[_0xb43744(0x10f)]=new _0x25b081();_0x34f55c[_0xb43744(0x136)](_0x48aed0(()=>{var _0x384826=_0xb43744;_0x457d59[_0x384826(0x112)](_0x17d152=>_0x17d152[_0x384826(0x11e)]()),_0x457d59['clear']();})),_0x34f55c['add'](this[_0xb43744(0x125)][_0xb43744(0x148)](_0x1a1d12=>{var _0x62faf4=_0xb43744,_0x4f9f22;if(_0x1a1d12[_0x62faf4(0x14d)]!==_0x382cb4['OPERATION']||!this[_0x62faf4(0x163)][_0x62faf4(0x166)](_0x1a1d12['id']))return;const {id:_0x17ecb5}=_0x1a1d12;let _0x4596b3;_0x457d59[_0x62faf4(0x147)](_0x17ecb5)?_0x4596b3=_0x457d59[_0x62faf4(0x168)](_0x17ecb5):(_0x4596b3=new _0xcf50bc(),_0x457d59[_0x62faf4(0xf7)](_0x17ecb5,_0x4596b3),_0x4596b3[_0x62faf4(0xdd)](_0x461b27((_0x4f9f22=this[_0x62faf4(0xdb)][_0x62faf4(0x134)](Pe))!=null?_0x4f9f22:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x62faf4(0x11b)](_0x5349ad=>{var _0x5c1c77=_0x62faf4;this[_0x5c1c77(0xfb)][_0x5c1c77(0xf8)]({'eventID':_0x68e326[_0x5c1c77(0x15b)],'data':{'unitID':this[_0x5c1c77(0xe4)],'operations':{[_0x5349ad['id']]:{'id':_0x5349ad['id'],'params':JSON[_0x5c1c77(0x106)](_0x5349ad['params'])}}}},this[_0x5c1c77(0xe4)]);})),_0x4596b3[_0x62faf4(0x103)](_0x1a1d12);})),this['_liveShareService'][_0xb43744(0x143)](this[_0xb43744(0xe4)])[_0xb43744(0x112)](_0x5c97e2=>this['_collabSession']['send']({'eventID':_0x68e326[_0xb43744(0x15b)],'data':{'unitID':this[_0xb43744(0xe4)],'operations':{[_0x5c97e2['id']]:{'id':_0x5c97e2['id'],'params':JSON[_0xb43744(0x106)](_0x5c97e2[_0xb43744(0x170)])}}}},this[_0xb43744(0xe4)]));}['_stopPresenting'](){var _0x55c875=_0x1d2061,_0x4a6bfc;this['_status$']['next'](_0x55c875(0x115)),(_0x4a6bfc=this[_0x55c875(0x10f)])==null||_0x4a6bfc[_0x55c875(0x109)](),this['_commandDisposable']=null;}[_0x1d2061(0x128)](){var _0x5917e4=_0x1d2061,_0x4c25ac;(_0x4c25ac=this[_0x5917e4(0x10f)])==null||_0x4c25ac[_0x5917e4(0x109)](),this[_0x5917e4(0x12d)]['next']('following');}[_0x1d2061(0x13d)](){var _0x3360d1=_0x1d2061,_0x200d1f;this[_0x3360d1(0x12d)][_0x3360d1(0x103)](_0x3360d1(0x115)),(_0x200d1f=this[_0x3360d1(0x10f)])==null||_0x200d1f['dispose'](),this[_0x3360d1(0x10f)]=null;}[_0x1d2061(0x17c)](){var _0x4f568b=_0x1d2061,_0x41b231;this[_0x4f568b(0x12d)][_0x4f568b(0x103)](_0x4f568b(0x129)),(_0x41b231=this['_commandDisposable'])==null||_0x41b231[_0x4f568b(0x109)]();}['_handleOperation'](_0x5de271){var _0x3f33ee=_0x1d2061;if([_0x3f33ee(0x175),'not-following',_0x3f33ee(0xde)][_0x3f33ee(0x104)](this[_0x3f33ee(0x132)])||!_0x5de271[_0x3f33ee(0x15d)][_0x3f33ee(0xf1)]||_0x5de271[_0x3f33ee(0x15d)][_0x3f33ee(0xf1)]===this[_0x3f33ee(0xfb)][_0x3f33ee(0x110)]())return;this[_0x3f33ee(0x132)]===_0x3f33ee(0x115)&&this[_0x3f33ee(0x128)]();const _0x425c60=_0x5de271[_0x3f33ee(0x15d)]['operations'];Object[_0x3f33ee(0x120)](_0x425c60)[_0x3f33ee(0x112)](_0x20a5c7=>{var _0xe493c4=_0x3f33ee;this['_commandService']['executeCommand'](_0x20a5c7['id'],_0x20a5c7['params']?JSON[_0xe493c4(0x17b)](_0x20a5c7['params']):null,{'fromCollab':!0x0});});}[_0x1d2061(0xff)](){var _0x534ae3=_0x1d2061,_0x3bab3e;this[_0x534ae3(0x12d)][_0x534ae3(0x103)](_0x534ae3(0xde)),(_0x3bab3e=this[_0x534ae3(0x10f)])==null||_0x3bab3e[_0x534ae3(0x109)]();}[_0x1d2061(0x15c)](){var _0x4a5c8f=_0x1d2061;this['_status$'][_0x4a5c8f(0x103)](_0x4a5c8f(0x115)),this[_0x4a5c8f(0x10c)]();}};C=Z([f(0x2,_0xa95083),f(0x3,_0x253fee(L)),f(0x4,_0x4e7867)],C);function Te(){var _0xf7f46a=_0x1d2061;const _0xf4e780=_0x37b90a(I),_0x310cd7=_0x37b90a(_0x33424e),_0x571020=_0x33fa75(()=>_0x310cd7[_0xf7f46a(0xfe)](_0xa2c22f[_0xf7f46a(0xd5)]),void 0x0,!0x1,[]),[_0x1dd626,_0x5becf5]=_0x1669ac(null),[_0x260d25,_0x4ab75c]=_0x1669ac(h[_0xf7f46a(0x100)]),_0x15bb17=_0xec2e7b(null);return _0x483153(()=>(_0x571020&&_0xf4e780[_0xf7f46a(0xec)](_0x571020[_0xf7f46a(0x156)]())[_0xf7f46a(0x169)](_0x3631a1=>{var _0xcbe0c5=_0xf7f46a;_0x5becf5(_0x3631a1),_0x15bb17[_0xcbe0c5(0x144)]=_0x3631a1[_0xcbe0c5(0x130)]['subscribe'](_0xd47ecb=>{_0x4ab75c(_0xd47ecb);});}),()=>{var _0x5b3e1c=_0xf7f46a,_0x34064f;(_0x34064f=_0x15bb17[_0x5b3e1c(0x144)])==null||_0x34064f[_0x5b3e1c(0x14f)](),_0x15bb17[_0x5b3e1c(0x144)]=null;}),[_0x571020,_0xf4e780]),_0x1dd626?_0x1e62c2(_0x2f9467,{'align':_0xf7f46a(0xe3),'disabled':_0x260d25===h[_0xf7f46a(0x17e)],'className':_0xf7f46a(0x124),'overlay':_0x1e62c2($e,{'status':_0x260d25,'coordinator':_0x1dd626}),'children':_0x1e62c2(_0xf7f46a(0xfd),{'className':_0x3df6c9(_0xf7f46a(0x10a),{'univer-cursor-not-allowed':_0x260d25===h[_0xf7f46a(0x17e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x260d25!==h[_0xf7f46a(0x17e)]}),'type':_0xf7f46a(0xfd),'children':_0x1e62c2(B,{'className':_0xf7f46a(0x140)})})}):null;}function $e(_0x4ab5d3){var _0x2c4dda=_0x1d2061;const {status:_0x5948e3,coordinator:_0x1e6e89}=_0x4ab5d3;switch(_0x5948e3){case h[_0x2c4dda(0x100)]:return _0x1e62c2(Fe,{'coordinator':_0x1e6e89});case h[_0x2c4dda(0x117)]:return _0x1e62c2(He,{'coordinator':_0x1e6e89});case h[_0x2c4dda(0x116)]:return _0x1e62c2(je,{'coordinator':_0x1e6e89});case h['OFFLINE']:return _0x1e62c2(Ve,{});case h[_0x2c4dda(0x12a)]:return _0x1e62c2(Ue,{'coordinator':_0x1e6e89});default:return null;}}function Fe(_0x568cab){var _0x2b2b33=_0x1d2061;const {coordinator:_0x28bab8}=_0x568cab;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2(_0x2b2b33(0xed),{'className':_0x2b2b33(0x178),'children':_0x2b2b33(0xd0)}),_0x1e62c2(_0x5a17cb,{'onClick':()=>_0x28bab8[_0x2b2b33(0x161)](),'children':_0x2b2b33(0xe9)})]});}function He(_0x1fd0f8){var _0x149305=_0x1d2061;const {coordinator:_0x4cee6a}=_0x1fd0f8;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2('div',{'className':_0x149305(0x178),'children':_0x149305(0x11d)}),_0x1e62c2(_0x5a17cb,{'onClick':()=>_0x4cee6a[_0x149305(0x177)](),'children':'Stop\x20following'})]});}function je(_0x3db4e5){var _0x5ec24b=_0x1d2061;const {coordinator:_0x3feaed}=_0x3db4e5;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2(_0x5ec24b(0xed),{'className':_0x5ec24b(0x178),'children':_0x5ec24b(0x108)}),_0x1e62c2(_0x5a17cb,{'variant':_0x5ec24b(0x14e),'onClick':()=>_0x3feaed[_0x5ec24b(0xf9)](),'children':'Start\x20following'})]});}function Ue(_0x5d5393){var _0x5bccdf=_0x1d2061;const {coordinator:_0x1eb76c}=_0x5d5393;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2('div',{'className':_0x5bccdf(0x178),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x1e62c2(_0x5a17cb,{'variant':'default','onClick':()=>_0x1eb76c['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x4d80a3=_0x1d2061;return _0x1e62c2(_0x4b49ed,{'children':_0x4d80a3(0x12f)});}var Me=Object[_0x1d2061(0x15a)],ke=(_0x5f3770,_0x578690,_0x4875f0,_0x55609e)=>{var _0x40f501=_0x1d2061;for(var _0x558ede=_0x55609e>0x1?void 0x0:_0x55609e?Me(_0x578690,_0x4875f0):_0x578690,_0x354389=_0x5f3770[_0x40f501(0x119)]-0x1,_0x43a533;_0x354389>=0x0;_0x354389--)(_0x43a533=_0x5f3770[_0x354389])&&(_0x558ede=_0x43a533(_0x558ede)||_0x558ede);return _0x558ede;},$=(_0x2276c7,_0x560b84)=>(_0x3949cf,_0x534f13)=>_0x560b84(_0x3949cf,_0x534f13,_0x2276c7);let b=class extends _0x3ee941{constructor(_0x595b0e,_0x4a7cb4){var _0x40d2bb=_0x1d2061;super(),this[_0x40d2bb(0xf6)]=_0x595b0e,this[_0x40d2bb(0x16a)]=_0x4a7cb4,this[_0x40d2bb(0xf2)]();}[_0x1d2061(0xf2)](){var _0x45ea31=_0x1d2061;this['disposeWithMe'](this[_0x45ea31(0x16a)]['registerComponent'](_0x5b8b60[_0x45ea31(0xe8)],()=>_0x1e3e05(Te,this[_0x45ea31(0xf6)])));}};b=ke([$(0x0,_0x253fee(_0x57aad1)),$(0x1,_0x3fcef6)],b);var Ge=Object[_0x1d2061(0xf0)],We=Object[_0x1d2061(0x15a)],Ye=(_0x208938,_0x331e17,_0x134bde)=>_0x331e17 in _0x208938?Ge(_0x208938,_0x331e17,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x134bde}):_0x208938[_0x331e17]=_0x134bde,Be=(_0x1a4f79,_0x3a0100,_0x511f08,_0x2b4a2e)=>{var _0x35183f=_0x1d2061;for(var _0x4e7eb2=_0x2b4a2e>0x1?void 0x0:_0x2b4a2e?We(_0x3a0100,_0x511f08):_0x3a0100,_0x477017=_0x1a4f79[_0x35183f(0x119)]-0x1,_0x3ef9bc;_0x477017>=0x0;_0x477017--)(_0x3ef9bc=_0x1a4f79[_0x477017])&&(_0x4e7eb2=_0x3ef9bc(_0x4e7eb2)||_0x4e7eb2);return _0x4e7eb2;},F=(_0x50b941,_0x3b683e)=>(_0x13cfd4,_0x506198)=>_0x3b683e(_0x13cfd4,_0x506198,_0x50b941),J=(_0x21c049,_0x3d5f05,_0x48afaf)=>Ye(_0x21c049,typeof _0x3d5f05!=_0x1d2061(0xd4)?_0x3d5f05+'':_0x3d5f05,_0x48afaf);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x2dc2c4{constructor(_0x452d74=T,_0x1bc2bf,_0xbf81e4){var _0x2b104b=_0x1d2061;super(),this[_0x2b104b(0x10d)]=_0x452d74,this[_0x2b104b(0xf6)]=_0x1bc2bf,this['_configService']=_0xbf81e4;const {..._0x3f77d9}=_0x4db2d4({},T,this[_0x2b104b(0x10d)]);this['_configService']['setConfig'](Oe,_0x3f77d9);}[_0x1d2061(0x17a)](){var _0x30f2d8=_0x1d2061;_0x5d2766(this[_0x30f2d8(0xf6)],_0x4e7ffe([[L],[I],[m],[b]],this[_0x30f2d8(0x10d)][_0x30f2d8(0x122)])),_0x86b33f(this[_0x30f2d8(0xf6)],[[m]]);}[_0x1d2061(0xdc)](){_0x86b33f(this['_injector'],[[b]]);}};J(O,_0x1d2061(0x14d),_0xa2c22f['UNIVER_UNKNOWN']),J(O,_0x1d2061(0x172),Ze),O=Be([_0x394549(_0x3e8e9b),F(0x1,_0x253fee(_0x57aad1)),F(0x2,_0xa95083)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.css CHANGED
@@ -1 +1 @@
1
- .univer-mb-3{margin-bottom:12px}.univer-box-border{box-sizing:border-box}.univer-size-4{width:16px;height:16px}.univer-w-full{width:100%}.univer-min-w-60{min-width:240px}.univer-cursor-not-allowed{cursor:not-allowed}.univer-cursor-pointer{cursor:pointer}.univer-border-none{border-style:none}.univer-bg-gray-400{background-color:var(--univer-gray-400)}.univer-bg-gray-900{background-color:var(--univer-gray-900)}.univer-px-4{padding-left:16px;padding-right:16px}.univer-py-3{padding-top:12px;padding-bottom:12px}.univer-text-sm{font-size:14px;line-height:20px}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-gray-900{color:var(--univer-gray-900)}.univer-outline-none{outline:2px solid transparent;outline-offset:2px}.hover\:univer-bg-gray-400:hover{background-color:var(--univer-gray-400)}.dark\:\!univer-bg-white:where(.univer-dark,.univer-dark *){background-color:var(--univer-white)!important}.dark\:\!univer-text-white:where(.univer-dark,.univer-dark *){color:var(--univer-white)!important}
1
+ .univer-mb-3{margin-bottom:.75rem}.univer-box-border{box-sizing:border-box}.univer-size-4{width:1rem;height:1rem}.univer-w-full{width:100%}.univer-min-w-60{min-width:15rem}.univer-cursor-not-allowed{cursor:not-allowed}.univer-cursor-pointer{cursor:pointer}.univer-border-none{border-style:none}.univer-bg-gray-400{background-color:var(--univer-gray-400)}.univer-bg-gray-900{background-color:var(--univer-gray-900)}.univer-px-4{padding-left:1rem;padding-right:1rem}.univer-py-3{padding-top:.75rem;padding-bottom:.75rem}.univer-text-sm{font-size:.875rem;line-height:1.25rem}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-gray-900{color:var(--univer-gray-900)}.univer-outline-none{outline:2px solid transparent;outline-offset:2px}.hover\:univer-bg-gray-400:hover{background-color:var(--univer-gray-400)}.dark\:\!univer-bg-white:where(.univer-dark,.univer-dark *){background-color:var(--univer-white)!important}.dark\:\!univer-text-white:where(.univer-dark,.univer-dark *){color:var(--univer-white)!important}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x31198e=_0x30db;(function(_0xed52d5,_0x473d22){var _0x54ae83=_0x30db,_0x1098da=_0xed52d5();while(!![]){try{var _0x4c8fb0=parseInt(_0x54ae83(0x17b))/0x1+-parseInt(_0x54ae83(0x1b5))/0x2*(parseInt(_0x54ae83(0x1d2))/0x3)+-parseInt(_0x54ae83(0x1ba))/0x4+-parseInt(_0x54ae83(0x167))/0x5+-parseInt(_0x54ae83(0x143))/0x6+-parseInt(_0x54ae83(0x1a4))/0x7+parseInt(_0x54ae83(0x1cd))/0x8;if(_0x4c8fb0===_0x473d22)break;else _0x1098da['push'](_0x1098da['shift']());}catch(_0x27a0e5){_0x1098da['push'](_0x1098da['shift']());}}}(_0x4014,0xa6c93));var q=Object[_0x31198e(0x1b2)],z=(_0x3461eb,_0x7b6b31,_0x4978f0)=>_0x7b6b31 in _0x3461eb?q(_0x3461eb,_0x7b6b31,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4978f0}):_0x3461eb[_0x7b6b31]=_0x4978f0,d=(_0x4154d7,_0x3dff64,_0x28f982)=>z(_0x4154d7,typeof _0x3dff64!=_0x31198e(0x1d3)?_0x3dff64+'':_0x3dff64,_0x28f982);import{CollaborationSessionService as _0x3797e6,SessionStatus as _0xbb74fd,UniverCollaborationClientPlugin as _0x40f314}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3039f2,toDisposable as _0x322b7a,Inject as _0x44183f,IUniverInstanceService as _0xa538ea,Injector as _0x59ff7b,IConfigService as _0x5ad91b,ICommandService as _0x1f2ab5,RxDisposable as _0x25d182,UniverInstanceType as _0x384d9f,DisposableCollection as _0x8826e3,CommandType as _0x5520f3,DependentOn as _0x5e6bbe,Plugin as _0x95d93e,merge as _0x46d38b,registerDependencies as _0x352343,mergeOverrideWithDependencies as _0x5ee3d2,touchDependencies as _0x3f2e03}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x45d30c,InsertSheetMutation as _0x182beb}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x56f8dd,SetScrollOperation as _0x39acd7}from'@univerjs/sheets-ui';import{useDependency as _0x1bdc43,useObservable as _0x5068f5,IUIPartsService as _0x3210f0,BuiltInUIPart as _0x2a6ff0,connectInjector as _0x5a25e5}from'@univerjs/ui';import{jsx as _0x15aab4,jsxs as _0x346495,Fragment as _0x5b11db}from'react/jsx-runtime';import{Dropdown as _0x3cbf5d,clsx as _0x378b8b,Button as _0x225bf1}from'@univerjs/design';import{forwardRef as _0x35ed48,useRef as _0x3745a5,createElement as _0x15565a,useState as _0x3b70aa,useEffect as _0x3a4d4a}from'react';import{CollaborationEvent as _0x25e5a9,parseProtocolChangeset as _0x2b7d41}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x231456,Subject as _0x5b5f3e}from'rxjs';function _0x30db(_0x2b5ac1,_0xdadc39){var _0x4014f1=_0x4014();return _0x30db=function(_0x30db0c,_0x274aab){_0x30db0c=_0x30db0c-0x137;var _0x1887b8=_0x4014f1[_0x30db0c];return _0x1887b8;},_0x30db(_0x2b5ac1,_0xdadc39);}import{takeUntil as _0x3106b9,throttleTime as _0x21d466}from'rxjs/operators';const Oe=_0x31198e(0x1d0),T={};class L extends _0x3039f2{constructor(){var _0x2f49d2=_0x31198e;super(...arguments),d(this,_0x2f49d2(0x15a),new Set()),d(this,_0x2f49d2(0x1bd),new Set());}[_0x31198e(0x1d5)](_0x365283){var _0x36af5c=_0x31198e;return this['_sharedOperations'][_0x36af5c(0x1a2)](_0x365283),_0x322b7a(()=>this[_0x36af5c(0x15a)][_0x36af5c(0x16a)](_0x365283));}[_0x31198e(0x1db)](_0x576ac5){var _0x17f2be=_0x31198e;return this[_0x17f2be(0x1bd)][_0x17f2be(0x1a2)](_0x576ac5),_0x322b7a(()=>this[_0x17f2be(0x1bd)][_0x17f2be(0x16a)](_0x576ac5));}[_0x31198e(0x174)](_0x2d1832){var _0x563c9a=_0x31198e;return this['_sharedOperations'][_0x563c9a(0x173)](_0x2d1832);}[_0x31198e(0x17f)](_0xfb26cf){var _0x113f6e=_0x31198e;return Array['from'](this[_0x113f6e(0x1bd)])[_0x113f6e(0x1a7)](_0x598bc2=>_0x598bc2(_0xfb26cf));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x22e794,_0x9ad2b6,_0x200a03,_0x2996e7)=>{for(var _0x14cdbc=_0x2996e7>0x1?void 0x0:_0x2996e7?Ee(_0x9ad2b6,_0x200a03):_0x9ad2b6,_0x1d7526=_0x22e794['length']-0x1,_0x25e93e;_0x1d7526>=0x0;_0x1d7526--)(_0x25e93e=_0x22e794[_0x1d7526])&&(_0x14cdbc=_0x25e93e(_0x14cdbc)||_0x14cdbc);return _0x14cdbc;},Ne=(_0x2de2b2,_0x8669e9)=>(_0x70f1be,_0x248c2f)=>_0x8669e9(_0x70f1be,_0x248c2f,_0x2de2b2);let m=class extends _0x3039f2{constructor(_0x494c2e){var _0x5ed743=_0x31198e;super(),this[_0x5ed743(0x1b3)]=_0x494c2e,this[_0x5ed743(0x19e)]();}['_init'](){var _0x1fd796=_0x31198e;[_0x56f8dd['id'],_0x39acd7['id'],_0x45d30c['id']][_0x1fd796(0x198)](_0x4053f9=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x4053f9));});}};function _0x4014(){var _0x4c674b=['_sharedOperations','dispose$','_handleOnline','operations','mutations','prototype','fill','next','clear','live-share-icon','propertyIsEnumerable','getTypeOfUnitAdded$','attrs','635010wcKJpr','_commandService','LiveShareIcon','delete','currentColor','_status$','Start\x20following','getOwnPropertyDescriptor','text','_collabSession','You\x27re\x20not\x20following\x20the\x20presenter','then','has','shouldShareOperation','length','univerjs-icon\x20univerjs-icon-','defIds','tryStartPresenting','trim','_config','307382dfKnLy','OFFLINE','div','_startFollowing','getInitialStates','memberID','status$','setConfig','_unitID','_presenter','1em','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','set','pipe','HEADER_MENU','tag','dispose','_collabSessionService','getCurrentTypeOfUnit$','_handleNewChangeSets','0\x200\x2017\x2017','concat','call','idSuffix','mask','LIVESHARE_FETCH_OPERATIONS','idle','onStarting','forEach','following','_univerInstanceService','Present\x20this\x20document','IDLE','unitId','_init','getMemberID','startFollowing','PRESENTING','add','type','7111937TjIJpc','presenter','defs','map','stopPresenting','string','LIVESHARE_TERMINATE','LIVESHARE_NEW_HOST','_handleOperation','UNIVER_SHEET','requireSession','FOLLOWING','extend','onRendered','defineProperty','_liveShareService','http://www.w3.org/2000/svg','549166HBgFUL','none','assign','ONLINE','univer-size-4','2863008ONuVEO','button','data','_reporters','_configService','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_entities','displayName','getTypeOfUnitDisposed$','NEW_CHANGESETS','not-following','_startPresenting','Start','executeCommand','values','_handleTerminate','offline','subscribe','init','27622824CsdptJ','icon','current','live-share.config','get','6WSepWY','symbol','unsubscribe','registerSharedOperation','complete','NOT_FOLLOWING','_stopPresenting','UNIVER_UNKNOWN','indexOf','registerInitialStateReporter','override','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinator','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','getOwnPropertySymbols','includes','sheet','_status','_startLiveShareCoordinator','_handleNewHost','_stopFollowing','You\x27re\x20presenting\x20the\x20document','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','_handleOffline','svg','find','xlink:href','entries','_fetchOperations','_uiPartsService','reverse','presenting','colorChannel1','send','4015014BeOJQU','LIVESHARE_OPERATION','getConfig','stopFollowing','_injector','getValue','pluginName','toString','children','params','stringify','asObservable','apply','className','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_beIdle','UniverIcon','getUnitId','_commandDisposable','parse','evenodd','LIVESHARE_REQUEST_HOST','univer-mb-3\x20univer-w-full\x20univer-text-sm'];_0x4014=function(){return _0x4c674b;};return _0x4014();}m=we([Ne(0x0,_0x44183f(L))],m);var c=function(){var _0x469d03=_0x31198e;return c=Object[_0x469d03(0x1b7)]||function(_0x2c039d){var _0x3b30a8=_0x469d03;for(var _0x2182d4,_0x29c714=0x1,_0x2f7ea8=arguments[_0x3b30a8(0x175)];_0x29c714<_0x2f7ea8;_0x29c714++){_0x2182d4=arguments[_0x29c714];for(var _0x44dc78 in _0x2182d4)Object[_0x3b30a8(0x15f)]['hasOwnProperty'][_0x3b30a8(0x192)](_0x2182d4,_0x44dc78)&&(_0x2c039d[_0x44dc78]=_0x2182d4[_0x44dc78]);}return _0x2c039d;},c[_0x469d03(0x14f)](this,arguments);},Ce=function(_0x17f5c1,_0x4d78f4){var _0x543fba=_0x31198e,_0x5c688a={};for(var _0x182bf0 in _0x17f5c1)Object[_0x543fba(0x15f)]['hasOwnProperty'][_0x543fba(0x192)](_0x17f5c1,_0x182bf0)&&_0x4d78f4[_0x543fba(0x1da)](_0x182bf0)<0x0&&(_0x5c688a[_0x182bf0]=_0x17f5c1[_0x182bf0]);if(_0x17f5c1!=null&&typeof Object[_0x543fba(0x1e0)]=='function'){for(var _0x348462=0x0,_0x182bf0=Object['getOwnPropertySymbols'](_0x17f5c1);_0x348462<_0x182bf0[_0x543fba(0x175)];_0x348462++)_0x4d78f4[_0x543fba(0x1da)](_0x182bf0[_0x348462])<0x0&&Object['prototype'][_0x543fba(0x164)]['call'](_0x17f5c1,_0x182bf0[_0x348462])&&(_0x5c688a[_0x182bf0[_0x348462]]=_0x17f5c1[_0x182bf0[_0x348462]]);}return _0x5c688a;},W=_0x35ed48(function(_0x939879,_0x3f12ec){var _0x3575da=_0x31198e,_0x15b519=_0x939879[_0x3575da(0x1ce)],_0x113ddc=_0x939879['id'],_0x45465c=_0x939879['className'],_0x38f5c5=_0x939879[_0x3575da(0x1b0)],_0x1acc17=Ce(_0x939879,[_0x3575da(0x1ce),'id',_0x3575da(0x150),_0x3575da(0x1b0)]),_0x563d2c=_0x3575da(0x176)['concat'](_0x113ddc,'\x20')[_0x3575da(0x191)](_0x45465c||'')[_0x3575da(0x179)](),_0x266c6d=_0x3745a5('_'['concat'](Le()));return Y(_0x15b519,''[_0x3575da(0x191)](_0x113ddc),{'defIds':_0x15b519[_0x3575da(0x177)],'idSuffix':_0x266c6d[_0x3575da(0x1cf)]},c({'ref':_0x3f12ec,'className':_0x563d2c},_0x1acc17),_0x38f5c5);});function Y(_0x1d3ee5,_0x5b7941,_0xa05807,_0x36525f,_0x9e122e){var _0x48bbb5=_0x31198e;return _0x15565a(_0x1d3ee5[_0x48bbb5(0x18b)],c(c({'key':_0x5b7941},De(_0x1d3ee5,_0xa05807,_0x9e122e)),_0x36525f),(xe(_0x1d3ee5,_0xa05807)[_0x48bbb5(0x14b)]||[])['map'](function(_0x47e4eb,_0x3de012){var _0x49cb2d=_0x48bbb5;return Y(_0x47e4eb,''[_0x49cb2d(0x191)](_0x5b7941,'-')['concat'](_0x1d3ee5[_0x49cb2d(0x18b)],'-')['concat'](_0x3de012),_0xa05807,void 0x0,_0x9e122e);}));}function De(_0x2fd1eb,_0x543afd,_0x3a54b3){var _0x7db80e=_0x31198e,_0x1c4cd3=c({},_0x2fd1eb['attrs']);_0x3a54b3!=null&&_0x3a54b3[_0x7db80e(0x141)]&&_0x1c4cd3['fill']===_0x7db80e(0x141)&&(_0x1c4cd3[_0x7db80e(0x160)]=_0x3a54b3[_0x7db80e(0x141)]),_0x2fd1eb[_0x7db80e(0x18b)]==='mask'&&_0x1c4cd3['id']&&(_0x1c4cd3['id']=_0x1c4cd3['id']+_0x543afd[_0x7db80e(0x193)]),Object[_0x7db80e(0x13c)](_0x1c4cd3)['forEach'](function(_0x68f6b5){var _0x504694=_0x7db80e,_0x27dd93=_0x68f6b5[0x0],_0x3f7b78=_0x68f6b5[0x1];_0x27dd93===_0x504694(0x194)&&typeof _0x3f7b78==_0x504694(0x1a9)&&(_0x1c4cd3[_0x27dd93]=_0x3f7b78['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x543afd[_0x504694(0x193)],')')));});var _0x418e55=_0x543afd[_0x7db80e(0x177)];return!_0x418e55||_0x418e55[_0x7db80e(0x175)]===0x0||(_0x2fd1eb['tag']==='use'&&_0x1c4cd3[_0x7db80e(0x13b)]&&(_0x1c4cd3[_0x7db80e(0x13b)]=_0x1c4cd3[_0x7db80e(0x13b)]+_0x543afd[_0x7db80e(0x193)]),Object['entries'](_0x1c4cd3)[_0x7db80e(0x198)](function(_0x2cbca2){var _0x265d09=_0x7db80e,_0x4bcb2b=_0x2cbca2[0x0],_0x10cba0=_0x2cbca2[0x1];typeof _0x10cba0=='string'&&(_0x1c4cd3[_0x4bcb2b]=_0x10cba0['replace'](/url\(#(.*)\)/,'url(#$1'[_0x265d09(0x191)](_0x543afd[_0x265d09(0x193)],')')));})),_0x1c4cd3;}function xe(_0x69e268,_0x48d728){var _0x3e0d7b=_0x31198e,_0x2de8f9,_0x6f3d14=_0x48d728[_0x3e0d7b(0x177)];return!_0x6f3d14||_0x6f3d14[_0x3e0d7b(0x175)]===0x0?_0x69e268:_0x69e268[_0x3e0d7b(0x18b)]===_0x3e0d7b(0x1a6)&&(!((_0x2de8f9=_0x69e268[_0x3e0d7b(0x14b)])===null||_0x2de8f9===void 0x0)&&_0x2de8f9[_0x3e0d7b(0x175)])?c(c({},_0x69e268),{'children':_0x69e268[_0x3e0d7b(0x14b)][_0x3e0d7b(0x1a7)](function(_0x5bf157){var _0x1b10ab=_0x3e0d7b;return typeof _0x5bf157[_0x1b10ab(0x166)]['id']==_0x1b10ab(0x1a9)&&_0x6f3d14&&_0x6f3d14[_0x1b10ab(0x1e1)](_0x5bf157[_0x1b10ab(0x166)]['id'])?c(c({},_0x5bf157),{'attrs':c(c({},_0x5bf157[_0x1b10ab(0x166)]),{'id':_0x5bf157['attrs']['id']+_0x48d728[_0x1b10ab(0x193)]})}):_0x5bf157;})}):_0x69e268;}function Le(){var _0x339947=_0x31198e;return Math['random']()[_0x339947(0x14a)](0x24)['substring'](0x2,0x8);}W[_0x31198e(0x1c1)]=_0x31198e(0x153);var ye={'tag':_0x31198e(0x139),'attrs':{'xmlns':_0x31198e(0x1b4),'fill':_0x31198e(0x1b6),'viewBox':_0x31198e(0x190),'width':_0x31198e(0x185),'height':_0x31198e(0x185)},'children':[{'tag':'path','attrs':{'fill':_0x31198e(0x16b),'d':_0x31198e(0x1df)}},{'tag':'path','attrs':{'fill':_0x31198e(0x16b),'d':_0x31198e(0x1bf),'fillRule':_0x31198e(0x157),'clipRule':'evenodd'}}]},B=_0x35ed48(function(_0x118fdf,_0x1439f6){var _0x343ea1=_0x31198e;return _0x15565a(W,Object[_0x343ea1(0x1b7)]({},_0x118fdf,{'id':_0x343ea1(0x163),'ref':_0x1439f6,'icon':ye}));});B[_0x31198e(0x1c1)]=_0x31198e(0x169);var Re=Object[_0x31198e(0x16e)],Z=(_0x32ed89,_0x69c933,_0x53a364,_0x3314b2)=>{for(var _0x2c66be=_0x3314b2>0x1?void 0x0:_0x3314b2?Re(_0x69c933,_0x53a364):_0x69c933,_0x35c3e1=_0x32ed89['length']-0x1,_0x56bc81;_0x35c3e1>=0x0;_0x35c3e1--)(_0x56bc81=_0x32ed89[_0x35c3e1])&&(_0x2c66be=_0x56bc81(_0x2c66be)||_0x2c66be);return _0x2c66be;},f=(_0x485c98,_0x16dd65)=>(_0xfb2e34,_0x59141a)=>_0x16dd65(_0xfb2e34,_0x59141a,_0x485c98);let I=class extends _0x25d182{constructor(_0x219269,_0x1d6ecd,_0x31c117){var _0x11d7b3=_0x31198e;super(),d(this,_0x11d7b3(0x1c0),new Map()),(this[_0x11d7b3(0x19a)]=_0x219269,this[_0x11d7b3(0x147)]=_0x1d6ecd,this['_collabSessionService']=_0x31c117,this[_0x11d7b3(0x19e)]());}async[_0x31198e(0x1de)](_0x1a7c6b){var _0x37cc77=_0x31198e;return this[_0x37cc77(0x1c0)][_0x37cc77(0x173)](_0x1a7c6b)||await this[_0x37cc77(0x1e4)](_0x1a7c6b),this[_0x37cc77(0x1c0)]['get'](_0x1a7c6b);}[_0x31198e(0x19e)](){var _0xe49bb3=_0x31198e;this['_univerInstanceService'][_0xe49bb3(0x165)](_0x384d9f[_0xe49bb3(0x1ad)])[_0xe49bb3(0x189)](_0x3106b9(this[_0xe49bb3(0x15b)]))[_0xe49bb3(0x1cb)](async _0x5a2bed=>{var _0xfa790b=_0xe49bb3;const _0x3ee190=_0x5a2bed[_0xfa790b(0x154)]();this[_0xfa790b(0x1c0)][_0xfa790b(0x173)](_0x3ee190)||this['_startLiveShareCoordinator'](_0x3ee190);}),this[_0xe49bb3(0x19a)][_0xe49bb3(0x1c2)](_0x384d9f[_0xe49bb3(0x1ad)])[_0xe49bb3(0x189)](_0x3106b9(this['dispose$']))[_0xe49bb3(0x1cb)](_0x42d38e=>{var _0xcf174=_0xe49bb3;const _0x5d817e=_0x42d38e[_0xcf174(0x154)](),_0x281491=this[_0xcf174(0x1c0)]['get'](_0x5d817e);_0x281491==null||_0x281491['dispose']();});}async[_0x31198e(0x1e4)](_0x2af52d){var _0x4e1990=_0x31198e;const _0x391200=await this[_0x4e1990(0x18d)][_0x4e1990(0x1ae)](_0x2af52d),_0x432ced=this[_0x4e1990(0x147)]['createInstance'](C,_0x2af52d,_0x391200);return _0x432ced[_0x4e1990(0x1cc)](),this[_0x4e1990(0x1c0)][_0x4e1990(0x188)](_0x2af52d,_0x432ced),_0x432ced;}};I=Z([f(0x0,_0xa538ea),f(0x1,_0x44183f(_0x59ff7b)),f(0x2,_0x44183f(_0x3797e6))],I);var h=(_0x3232cd=>(_0x3232cd[_0x31198e(0x17c)]=_0x31198e(0x1ca),_0x3232cd[_0x31198e(0x19c)]='idle',_0x3232cd[_0x31198e(0x1af)]=_0x31198e(0x199),_0x3232cd['NOT_FOLLOWING']=_0x31198e(0x1c4),_0x3232cd[_0x31198e(0x1a1)]=_0x31198e(0x140),_0x3232cd))(h||{});const Pe=_0x31198e(0x186),Ae=0xc8;let C=class extends _0x25d182{constructor(_0x59e35b,_0x2d85de,_0x18ca40,_0x1d23da,_0x3d9e4c){var _0x5e9c6a=_0x31198e;super(),d(this,_0x5e9c6a(0x16c),new _0x231456('idle')),d(this,_0x5e9c6a(0x181),this[_0x5e9c6a(0x16c)][_0x5e9c6a(0x14e)]()),d(this,_0x5e9c6a(0x19e),!0x1),d(this,_0x5e9c6a(0x155),null),d(this,_0x5e9c6a(0x184),null),(this['_unitID']=_0x59e35b,this[_0x5e9c6a(0x170)]=_0x2d85de,this[_0x5e9c6a(0x1be)]=_0x18ca40,this[_0x5e9c6a(0x1b3)]=_0x1d23da,this['_commandService']=_0x3d9e4c);}get[_0x31198e(0x1e3)](){var _0x24dc83=_0x31198e;return this['_status$'][_0x24dc83(0x148)]();}[_0x31198e(0x18c)](){var _0x5cee9c=_0x31198e,_0x3a56f0;(_0x3a56f0=this[_0x5cee9c(0x155)])==null||_0x3a56f0[_0x5cee9c(0x18c)](),this[_0x5cee9c(0x16c)]['next'](_0x5cee9c(0x196)),this[_0x5cee9c(0x16c)][_0x5cee9c(0x1d6)]();}[_0x31198e(0x1cc)](){var _0x5e8908=_0x31198e;this['_init']||(this['_init']=!0x0,this[_0x5e8908(0x170)]['sessionStatus$'][_0x5e8908(0x189)](_0x3106b9(this['dispose$']))[_0x5e8908(0x1cb)](_0x4f0ea7=>{var _0x3cbb36=_0x5e8908;switch(_0x4f0ea7){case _0xbb74fd[_0x3cbb36(0x17c)]:this['_handleOffline']();break;case _0xbb74fd[_0x3cbb36(0x1b8)]:this['_handleOnline']();break;}}),this[_0x5e8908(0x170)]['event$'][_0x5e8908(0x189)](_0x3106b9(this['dispose$']))[_0x5e8908(0x1cb)](_0x2a152d=>{var _0x37f555=_0x5e8908;const {eventID:_0x4d63f3}=_0x2a152d;switch(_0x4d63f3){case _0x25e5a9[_0x37f555(0x1ab)]:this[_0x37f555(0x1e5)](_0x2a152d);break;case _0x25e5a9['LIVESHARE_OPERATION']:this['_handleOperation'](_0x2a152d);break;case _0x25e5a9[_0x37f555(0x1aa)]:this[_0x37f555(0x1c9)]();break;case _0x25e5a9[_0x37f555(0x1c3)]:this[_0x37f555(0x18f)](_0x2a152d);break;}}));}[_0x31198e(0x178)](){var _0x2951bc=_0x31198e;this[_0x2951bc(0x170)][_0x2951bc(0x142)]({'eventID':_0x25e5a9[_0x2951bc(0x158)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x2951bc(0x19f)]()}},this[_0x2951bc(0x183)]);}[_0x31198e(0x1a8)](){var _0x538883=_0x31198e;this[_0x538883(0x1e3)]==='presenting'&&(this[_0x538883(0x16c)][_0x538883(0x161)](_0x538883(0x196)),this['_collabSession'][_0x538883(0x142)]({'eventID':_0x25e5a9[_0x538883(0x1aa)],'data':{'unitID':this[_0x538883(0x183)]}},this[_0x538883(0x183)]));}[_0x31198e(0x1a0)](){var _0x4b72ea=_0x31198e;this[_0x4b72ea(0x1e3)]==='not-following'&&(this[_0x4b72ea(0x16c)][_0x4b72ea(0x161)](_0x4b72ea(0x199)),this['_startFollowing']());}[_0x31198e(0x146)](){var _0x481b41=_0x31198e;this['_status']===_0x481b41(0x199)&&this[_0x481b41(0x1e6)]();}[_0x31198e(0x1e5)](_0x3d2c91){var _0x4c3e3d=_0x31198e;const {presenter:_0x1d111c}=_0x3d2c91[_0x4c3e3d(0x1bc)],_0x487473=this['_collabSession'][_0x4c3e3d(0x19f)]();this[_0x4c3e3d(0x184)]=_0x1d111c,_0x1d111c===_0x487473?(this[_0x4c3e3d(0x1e6)](),this[_0x4c3e3d(0x1c5)]()):this['_status']!==_0x4c3e3d(0x1c4)&&(this[_0x4c3e3d(0x1d8)](),this[_0x4c3e3d(0x17e)]());}[_0x31198e(0x13d)](){var _0x2d1520=_0x31198e;const _0x48f96d={'eventID':_0x25e5a9[_0x2d1520(0x195)]};this[_0x2d1520(0x170)][_0x2d1520(0x142)](_0x48f96d,this['_unitID']);}[_0x31198e(0x1c9)](){var _0x166412=_0x31198e;this['_presenter']=null,this[_0x166412(0x1e3)]!==_0x166412(0x140)&&this[_0x166412(0x152)]();}[_0x31198e(0x18f)](_0x432340){var _0x12c3bc=_0x31198e;if(this[_0x12c3bc(0x1e3)]===_0x12c3bc(0x199)&&this['_presenter']===_0x432340[_0x12c3bc(0x1bc)][_0x12c3bc(0x180)]){const _0x444890=_0x2b7d41(_0x432340['data'])[_0x12c3bc(0x15e)][_0x12c3bc(0x13f)]()[_0x12c3bc(0x13a)](_0x3031de=>_0x3031de['id']===_0x182beb['id']);if(_0x444890){const _0x2bd419=_0x444890[_0x12c3bc(0x14c)][_0x12c3bc(0x19d)],_0x7bcdb5=_0x444890[_0x12c3bc(0x14c)][_0x12c3bc(0x1e2)]['id'];setTimeout(()=>{var _0x4dd280=_0x12c3bc;this[_0x4dd280(0x168)][_0x4dd280(0x1c7)](_0x45d30c['id'],{'unitId':_0x2bd419,'subUnitId':_0x7bcdb5},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xe8a878=_0x31198e;this['_status$']['next'](_0xe8a878(0x140));const _0x4ec10d=new Map(),_0x4a21f1=this[_0xe8a878(0x155)]=new _0x8826e3();_0x4a21f1['add'](_0x322b7a(()=>{var _0x341c9c=_0xe8a878;_0x4ec10d[_0x341c9c(0x198)](_0xcb57a7=>_0xcb57a7[_0x341c9c(0x1d6)]()),_0x4ec10d[_0x341c9c(0x162)]();})),_0x4a21f1[_0xe8a878(0x1a2)](this[_0xe8a878(0x168)]['onCommandExecuted'](_0x3526f8=>{var _0x4a509d=_0xe8a878,_0x2b7e77;if(_0x3526f8['type']!==_0x5520f3['OPERATION']||!this[_0x4a509d(0x1b3)][_0x4a509d(0x174)](_0x3526f8['id']))return;const {id:_0x68a216}=_0x3526f8;let _0x5cdd59;_0x4ec10d[_0x4a509d(0x173)](_0x68a216)?_0x5cdd59=_0x4ec10d[_0x4a509d(0x1d1)](_0x68a216):(_0x5cdd59=new _0x5b5f3e(),_0x4ec10d[_0x4a509d(0x188)](_0x68a216,_0x5cdd59),_0x5cdd59[_0x4a509d(0x189)](_0x21d466((_0x2b7e77=this[_0x4a509d(0x1be)][_0x4a509d(0x145)](Pe))!=null?_0x2b7e77:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a509d(0x1cb)](_0x1c2ad1=>{var _0x480d0d=_0x4a509d;this[_0x480d0d(0x170)][_0x480d0d(0x142)]({'eventID':_0x25e5a9[_0x480d0d(0x144)],'data':{'unitID':this['_unitID'],'operations':{[_0x1c2ad1['id']]:{'id':_0x1c2ad1['id'],'params':JSON[_0x480d0d(0x14d)](_0x1c2ad1[_0x480d0d(0x14c)])}}}},this[_0x480d0d(0x183)]);})),_0x5cdd59[_0x4a509d(0x161)](_0x3526f8);})),this[_0xe8a878(0x1b3)]['getInitialStates'](this['_unitID'])[_0xe8a878(0x198)](_0x2bef31=>this[_0xe8a878(0x170)][_0xe8a878(0x142)]({'eventID':_0x25e5a9[_0xe8a878(0x144)],'data':{'unitID':this[_0xe8a878(0x183)],'operations':{[_0x2bef31['id']]:{'id':_0x2bef31['id'],'params':JSON['stringify'](_0x2bef31[_0xe8a878(0x14c)])}}}},this[_0xe8a878(0x183)]));}[_0x31198e(0x1d8)](){var _0x5d4a38=_0x31198e,_0x122c66;this[_0x5d4a38(0x16c)]['next'](_0x5d4a38(0x196)),(_0x122c66=this[_0x5d4a38(0x155)])==null||_0x122c66[_0x5d4a38(0x18c)](),this['_commandDisposable']=null;}[_0x31198e(0x17e)](){var _0x5685b0=_0x31198e,_0x33646b;(_0x33646b=this[_0x5685b0(0x155)])==null||_0x33646b[_0x5685b0(0x18c)](),this[_0x5685b0(0x16c)]['next']('following');}[_0x31198e(0x152)](){var _0x470ba6=_0x31198e,_0x465739;this[_0x470ba6(0x16c)][_0x470ba6(0x161)]('idle'),(_0x465739=this[_0x470ba6(0x155)])==null||_0x465739[_0x470ba6(0x18c)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5900ea=_0x31198e,_0x528159;this[_0x5900ea(0x16c)][_0x5900ea(0x161)](_0x5900ea(0x1c4)),(_0x528159=this[_0x5900ea(0x155)])==null||_0x528159[_0x5900ea(0x18c)]();}[_0x31198e(0x1ac)](_0x10e7bc){var _0x4894c3=_0x31198e;if([_0x4894c3(0x140),'not-following',_0x4894c3(0x1ca)][_0x4894c3(0x1e1)](this[_0x4894c3(0x1e3)])||!_0x10e7bc[_0x4894c3(0x1bc)][_0x4894c3(0x1a5)]||_0x10e7bc['data'][_0x4894c3(0x1a5)]===this[_0x4894c3(0x170)]['getMemberID']())return;this['_status']===_0x4894c3(0x196)&&this[_0x4894c3(0x17e)]();const _0xdf26ad=_0x10e7bc[_0x4894c3(0x1bc)][_0x4894c3(0x15d)];Object[_0x4894c3(0x1c8)](_0xdf26ad)[_0x4894c3(0x198)](_0x4ab220=>{var _0x32b62e=_0x4894c3;this['_commandService']['executeCommand'](_0x4ab220['id'],_0x4ab220['params']?JSON[_0x32b62e(0x156)](_0x4ab220[_0x32b62e(0x14c)]):null,{'fromCollab':!0x0});});}[_0x31198e(0x138)](){var _0x53a2fe=_0x31198e,_0x238252;this[_0x53a2fe(0x16c)][_0x53a2fe(0x161)](_0x53a2fe(0x1ca)),(_0x238252=this[_0x53a2fe(0x155)])==null||_0x238252[_0x53a2fe(0x18c)]();}[_0x31198e(0x15c)](){var _0x381c50=_0x31198e;this['_status$'][_0x381c50(0x161)](_0x381c50(0x196)),this[_0x381c50(0x13d)]();}};C=Z([f(0x2,_0x5ad91b),f(0x3,_0x44183f(L)),f(0x4,_0x1f2ab5)],C);function Te(){var _0x22cfea=_0x31198e;const _0xce3369=_0x1bdc43(I),_0x56216f=_0x1bdc43(_0xa538ea),_0x48c8fb=_0x5068f5(()=>_0x56216f[_0x22cfea(0x18e)](_0x384d9f['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x125df2,_0x1d1654]=_0x3b70aa(null),[_0x59d74f,_0x50f151]=_0x3b70aa(h[_0x22cfea(0x19c)]),_0x58eb84=_0x3745a5(null);return _0x3a4d4a(()=>(_0x48c8fb&&_0xce3369[_0x22cfea(0x1de)](_0x48c8fb[_0x22cfea(0x154)]())[_0x22cfea(0x172)](_0x109ec6=>{var _0x1eb9e1=_0x22cfea;_0x1d1654(_0x109ec6),_0x58eb84[_0x1eb9e1(0x1cf)]=_0x109ec6['status$'][_0x1eb9e1(0x1cb)](_0x38d64d=>{_0x50f151(_0x38d64d);});}),()=>{var _0x4cccea=_0x22cfea,_0x31bbbf;(_0x31bbbf=_0x58eb84[_0x4cccea(0x1cf)])==null||_0x31bbbf[_0x4cccea(0x1d4)](),_0x58eb84['current']=null;}),[_0x48c8fb,_0xce3369]),_0x125df2?_0x15aab4(_0x3cbf5d,{'align':'end','disabled':_0x59d74f===h[_0x22cfea(0x17c)],'className':_0x22cfea(0x137),'overlay':_0x15aab4($e,{'status':_0x59d74f,'coordinator':_0x125df2}),'children':_0x15aab4(_0x22cfea(0x1bb),{'className':_0x378b8b(_0x22cfea(0x151),{'univer-cursor-not-allowed':_0x59d74f===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59d74f!==h[_0x22cfea(0x17c)]}),'type':_0x22cfea(0x1bb),'children':_0x15aab4(B,{'className':_0x22cfea(0x1b9)})})}):null;}function $e(_0x273b1c){var _0x170935=_0x31198e;const {status:_0x2258ba,coordinator:_0x535858}=_0x273b1c;switch(_0x2258ba){case h[_0x170935(0x19c)]:return _0x15aab4(Fe,{'coordinator':_0x535858});case h[_0x170935(0x1af)]:return _0x15aab4(He,{'coordinator':_0x535858});case h[_0x170935(0x1d7)]:return _0x15aab4(je,{'coordinator':_0x535858});case h[_0x170935(0x17c)]:return _0x15aab4(Ve,{});case h[_0x170935(0x1a1)]:return _0x15aab4(Ue,{'coordinator':_0x535858});default:return null;}}function Fe(_0x5eba7a){var _0x55a95d=_0x31198e;const {coordinator:_0x4841e7}=_0x5eba7a;return _0x346495(_0x5b11db,{'children':[_0x15aab4(_0x55a95d(0x17d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x55a95d(0x19b)}),_0x15aab4(_0x225bf1,{'onClick':()=>_0x4841e7[_0x55a95d(0x178)](),'children':_0x55a95d(0x1c6)})]});}function He(_0x46482c){var _0x4747b1=_0x31198e;const {coordinator:_0x1d9a79}=_0x46482c;return _0x346495(_0x5b11db,{'children':[_0x15aab4(_0x4747b1(0x17d),{'className':_0x4747b1(0x159),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x15aab4(_0x225bf1,{'onClick':()=>_0x1d9a79['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x20291c){var _0x5d87a1=_0x31198e;const {coordinator:_0x1b510c}=_0x20291c;return _0x346495(_0x5b11db,{'children':[_0x15aab4(_0x5d87a1(0x17d),{'className':_0x5d87a1(0x159),'children':_0x5d87a1(0x171)}),_0x15aab4(_0x225bf1,{'variant':_0x5d87a1(0x16f),'onClick':()=>_0x1b510c[_0x5d87a1(0x1a0)](),'children':_0x5d87a1(0x16d)})]});}function Ue(_0x4015eb){var _0x12d97d=_0x31198e;const {coordinator:_0x4da420}=_0x4015eb;return _0x346495(_0x5b11db,{'children':[_0x15aab4('div',{'className':_0x12d97d(0x159),'children':_0x12d97d(0x1e7)}),_0x15aab4(_0x225bf1,{'variant':'default','onClick':()=>_0x4da420['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x15aab4(_0x5b11db,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x31198e(0x16e)],ke=(_0xc990f1,_0x12255d,_0x3c8ce0,_0x477b6a)=>{var _0x2c545f=_0x31198e;for(var _0x568556=_0x477b6a>0x1?void 0x0:_0x477b6a?Me(_0x12255d,_0x3c8ce0):_0x12255d,_0x3f2658=_0xc990f1[_0x2c545f(0x175)]-0x1,_0x45076f;_0x3f2658>=0x0;_0x3f2658--)(_0x45076f=_0xc990f1[_0x3f2658])&&(_0x568556=_0x45076f(_0x568556)||_0x568556);return _0x568556;},$=(_0x11e861,_0x33c6d0)=>(_0x220c4c,_0x3ed586)=>_0x33c6d0(_0x220c4c,_0x3ed586,_0x11e861);let b=class extends _0x3039f2{constructor(_0x2159d3,_0x513542){var _0x3485e7=_0x31198e;super(),this[_0x3485e7(0x147)]=_0x2159d3,this[_0x3485e7(0x13e)]=_0x513542,this[_0x3485e7(0x187)]();}[_0x31198e(0x187)](){var _0x58fe06=_0x31198e;this['disposeWithMe'](this[_0x58fe06(0x13e)]['registerComponent'](_0x2a6ff0[_0x58fe06(0x18a)],()=>_0x5a25e5(Te,this[_0x58fe06(0x147)])));}};b=ke([$(0x0,_0x44183f(_0x59ff7b)),$(0x1,_0x3210f0)],b);var Ge=Object[_0x31198e(0x1b2)],We=Object[_0x31198e(0x16e)],Ye=(_0x84819e,_0x116b02,_0xf3d972)=>_0x116b02 in _0x84819e?Ge(_0x84819e,_0x116b02,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf3d972}):_0x84819e[_0x116b02]=_0xf3d972,Be=(_0x5c772f,_0x4ab359,_0x5bfe46,_0xb6edb6)=>{var _0xe5dd9c=_0x31198e;for(var _0x3601bb=_0xb6edb6>0x1?void 0x0:_0xb6edb6?We(_0x4ab359,_0x5bfe46):_0x4ab359,_0x124836=_0x5c772f[_0xe5dd9c(0x175)]-0x1,_0x3b7604;_0x124836>=0x0;_0x124836--)(_0x3b7604=_0x5c772f[_0x124836])&&(_0x3601bb=_0x3b7604(_0x3601bb)||_0x3601bb);return _0x3601bb;},F=(_0x391319,_0x395c9e)=>(_0x224f67,_0x56d130)=>_0x395c9e(_0x224f67,_0x56d130,_0x391319),J=(_0x4b365e,_0x18f896,_0x87715f)=>Ye(_0x4b365e,typeof _0x18f896!=_0x31198e(0x1d3)?_0x18f896+'':_0x18f896,_0x87715f);const Ze=_0x31198e(0x1dd);let O=class extends _0x95d93e{constructor(_0x13202f=T,_0x2aeddd,_0xa5c3f1){var _0xd97a1c=_0x31198e;super(),this['_config']=_0x13202f,this[_0xd97a1c(0x147)]=_0x2aeddd,this['_configService']=_0xa5c3f1;const {..._0x5b1104}=_0x46d38b({},T,this['_config']);this[_0xd97a1c(0x1be)][_0xd97a1c(0x182)](Oe,_0x5b1104);}[_0x31198e(0x197)](){var _0x36e2d8=_0x31198e;_0x352343(this[_0x36e2d8(0x147)],_0x5ee3d2([[L],[I],[m],[b]],this[_0x36e2d8(0x17a)][_0x36e2d8(0x1dc)])),_0x3f2e03(this[_0x36e2d8(0x147)],[[m]]);}[_0x31198e(0x1b1)](){_0x3f2e03(this['_injector'],[[b]]);}};J(O,_0x31198e(0x1a3),_0x384d9f[_0x31198e(0x1d9)]),J(O,_0x31198e(0x149),Ze),O=Be([_0x5e6bbe(_0x40f314),F(0x1,_0x44183f(_0x59ff7b)),F(0x2,_0x5ad91b)],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 _0x1d2061=_0x148e;(function(_0x39dcc5,_0x57177e){var _0x3de184=_0x148e,_0x1a0c45=_0x39dcc5();while(!![]){try{var _0x2ac413=parseInt(_0x3de184(0x107))/0x1*(parseInt(_0x3de184(0xd2))/0x2)+-parseInt(_0x3de184(0x174))/0x3*(parseInt(_0x3de184(0x15f))/0x4)+-parseInt(_0x3de184(0x121))/0x5*(parseInt(_0x3de184(0x152))/0x6)+parseInt(_0x3de184(0x123))/0x7+-parseInt(_0x3de184(0x179))/0x8+-parseInt(_0x3de184(0x126))/0x9*(parseInt(_0x3de184(0x13e))/0xa)+parseInt(_0x3de184(0x159))/0xb;if(_0x2ac413===_0x57177e)break;else _0x1a0c45['push'](_0x1a0c45['shift']());}catch(_0x33d5c6){_0x1a0c45['push'](_0x1a0c45['shift']());}}}(_0x49dd,0xe2e94));var q=Object[_0x1d2061(0xf0)],z=(_0x412ba5,_0x797004,_0x221430)=>_0x797004 in _0x412ba5?q(_0x412ba5,_0x797004,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x221430}):_0x412ba5[_0x797004]=_0x221430,d=(_0x5ad454,_0x5d4cb8,_0x51012d)=>z(_0x5ad454,typeof _0x5d4cb8!='symbol'?_0x5d4cb8+'':_0x5d4cb8,_0x51012d);import{CollaborationSessionService as _0x4cd42a,SessionStatus as _0x2067be,UniverCollaborationClientPlugin as _0x3e8e9b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3ee941,toDisposable as _0x48aed0,Inject as _0x253fee,IUniverInstanceService as _0x33424e,Injector as _0x57aad1,IConfigService as _0xa95083,ICommandService as _0x4e7867,RxDisposable as _0x2ac371,UniverInstanceType as _0xa2c22f,DisposableCollection as _0x25b081,CommandType as _0x382cb4,DependentOn as _0x394549,Plugin as _0x2dc2c4,merge as _0x4db2d4,registerDependencies as _0x5d2766,mergeOverrideWithDependencies as _0x4e7ffe,touchDependencies as _0x86b33f}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x2aa18e,InsertSheetMutation as _0xc429d8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x646c22,SetScrollOperation as _0x16bed9}from'@univerjs/sheets-ui';function _0x148e(_0x56ae18,_0x16b15e){var _0x49dd57=_0x49dd();return _0x148e=function(_0x148ebf,_0x4df02c){_0x148ebf=_0x148ebf-0xce;var _0x565179=_0x49dd57[_0x148ebf];return _0x565179;},_0x148e(_0x56ae18,_0x16b15e);}import{useDependency as _0x37b90a,useObservable as _0x33fa75,IUIPartsService as _0x3fcef6,BuiltInUIPart as _0x5b8b60,connectInjector as _0x1e3e05}from'@univerjs/ui';import{jsx as _0x1e62c2,jsxs as _0x12b645,Fragment as _0x4b49ed}from'react/jsx-runtime';import{Dropdown as _0x2f9467,clsx as _0x3df6c9,Button as _0x5a17cb}from'@univerjs/design';function _0x49dd(){var _0x5375fb=['init','replace','attrs','type','text','unsubscribe','string','_sharedOperations','1323492qayczy','createInstance','children','_univerInstanceService','getUnitId','disposeWithMe','1em','26708198mVLIzq','getOwnPropertyDescriptor','LIVESHARE_OPERATION','_handleOnline','data','UniverIcon','4wJXgbq','url(#$1','tryStartPresenting','none','_liveShareService','concat','univerjs-icon\x20univerjs-icon-','shouldShareOperation','getTypeOfUnitAdded$','get','then','_uiPartsService','fill','_init','LIVESHARE_FETCH_OPERATIONS','stopPresenting','currentColor','params','sheet','pluginName','dispose$','2899923MdEGxm','presenting','displayName','stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','8116048gbwdRF','onStarting','parse','_stopFollowing','_startPresenting','OFFLINE','_entities','delete','Present\x20this\x20document','path','1700JdGSkd','prototype','symbol','UNIVER_SHEET','trim','_presenter','live-share-icon','defIds','LIVESHARE_NEW_HOST','_configService','onRendered','pipe','offline','tag','mutations','toString','substring','end','_unitID','className','unitId','indexOf','HEADER_MENU','Start','_collabSessionService','getTypeOfUnitDisposed$','getLiveShareCoordinator','div','assign','http://www.w3.org/2000/svg','defineProperty','presenter','_mountLiveShare','memberID','event$','LIVESHARE_REQUEST_HOST','_injector','set','send','startFollowing','_stopPresenting','_collabSession','find','button','getCurrentTypeOfUnit$','_handleOffline','IDLE','idSuffix','xlink:href','next','includes','call','stringify','1607wHtwxw','You\x27re\x20not\x20following\x20the\x20presenter','dispose','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','sessionStatus$','_fetchOperations','_config','_handleTerminate','_commandDisposable','getMemberID','LIVESHARE_TERMINATE','forEach','_reporters','_handleOperation','idle','NOT_FOLLOWING','FOLLOWING','getOwnPropertySymbols','length','colorChannel1','subscribe','hasOwnProperty','You\x27re\x20following\x20the\x20presenter','complete','map','values','20vvxuXL','override','585879uQZcbC','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_commandService','54cJwseE','_handleNewHost','_startFollowing','not-following','PRESENTING','_startLiveShareCoordinator','reverse','_status$','mask','You\x27are\x20offline.','status$','icon','_status','live-share.config','getConfig','extend','add','ONLINE','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','registerSharedOperation','function','executeCommand','defs','_beIdle','141270FvkwDJ','0\x200\x2017\x2017','univer-size-4','SAME_OPERATION_SHARE_INTERVAL','_handleNewChangeSets','getInitialStates','current','svg','entries','has','onCommandExecuted','following'];_0x49dd=function(){return _0x5375fb;};return _0x49dd();}import{forwardRef as _0x181876,useRef as _0xec2e7b,createElement as _0x43b433,useState as _0x1669ac,useEffect as _0x483153}from'react';import{CollaborationEvent as _0x68e326,parseProtocolChangeset as _0x5bc805}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2a4565,Subject as _0xcf50bc}from'rxjs';import{takeUntil as _0x3f0d49,throttleTime as _0x461b27}from'rxjs/operators';const Oe=_0x1d2061(0x133),T={};class L extends _0x3ee941{constructor(){var _0x2f54a5=_0x1d2061;super(...arguments),d(this,_0x2f54a5(0x151),new Set()),d(this,_0x2f54a5(0x113),new Set());}[_0x1d2061(0x139)](_0x5343a2){var _0x3efda4=_0x1d2061;return this[_0x3efda4(0x151)][_0x3efda4(0x136)](_0x5343a2),_0x48aed0(()=>this[_0x3efda4(0x151)][_0x3efda4(0xcf)](_0x5343a2));}['registerInitialStateReporter'](_0x4ca4b3){var _0x20a830=_0x1d2061;return this['_reporters']['add'](_0x4ca4b3),_0x48aed0(()=>this[_0x20a830(0x113)]['delete'](_0x4ca4b3));}[_0x1d2061(0x166)](_0x244420){var _0x56da68=_0x1d2061;return this[_0x56da68(0x151)][_0x56da68(0x147)](_0x244420);}[_0x1d2061(0x143)](_0x41438a){return Array['from'](this['_reporters'])['map'](_0x47c1b6=>_0x47c1b6(_0x41438a));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x566674,_0x5802b7,_0x462824,_0x58a310)=>{var _0x5e8afa=_0x1d2061;for(var _0x17e0b8=_0x58a310>0x1?void 0x0:_0x58a310?Ee(_0x5802b7,_0x462824):_0x5802b7,_0x38f38b=_0x566674[_0x5e8afa(0x119)]-0x1,_0xcc8898;_0x38f38b>=0x0;_0x38f38b--)(_0xcc8898=_0x566674[_0x38f38b])&&(_0x17e0b8=_0xcc8898(_0x17e0b8)||_0x17e0b8);return _0x17e0b8;},Ne=(_0x197ea,_0x23b7cb)=>(_0xf6c81d,_0x4f6945)=>_0x23b7cb(_0xf6c81d,_0x4f6945,_0x197ea);let m=class extends _0x3ee941{constructor(_0xe3584e){var _0x315288=_0x1d2061;super(),this[_0x315288(0x163)]=_0xe3584e,this[_0x315288(0x16c)]();}[_0x1d2061(0x16c)](){var _0x15dbbd=_0x1d2061;[_0x646c22['id'],_0x16bed9['id'],_0x2aa18e['id']][_0x15dbbd(0x112)](_0x8083e1=>{var _0x5709b6=_0x15dbbd;this[_0x5709b6(0x157)](this[_0x5709b6(0x163)]['registerSharedOperation'](_0x8083e1));});}};m=we([Ne(0x0,_0x253fee(L))],m);var c=function(){var _0x32a5b3=_0x1d2061;return c=Object[_0x32a5b3(0xee)]||function(_0x26a00e){var _0x5e9a97=_0x32a5b3;for(var _0x242225,_0x5780e7=0x1,_0x43ab36=arguments[_0x5e9a97(0x119)];_0x5780e7<_0x43ab36;_0x5780e7++){_0x242225=arguments[_0x5780e7];for(var _0x3fba03 in _0x242225)Object[_0x5e9a97(0xd3)][_0x5e9a97(0x11c)][_0x5e9a97(0x105)](_0x242225,_0x3fba03)&&(_0x26a00e[_0x3fba03]=_0x242225[_0x3fba03]);}return _0x26a00e;},c['apply'](this,arguments);},Ce=function(_0x4a701d,_0x4c241e){var _0x50335e=_0x1d2061,_0x27d899={};for(var _0x12b216 in _0x4a701d)Object[_0x50335e(0xd3)][_0x50335e(0x11c)][_0x50335e(0x105)](_0x4a701d,_0x12b216)&&_0x4c241e[_0x50335e(0xe7)](_0x12b216)<0x0&&(_0x27d899[_0x12b216]=_0x4a701d[_0x12b216]);if(_0x4a701d!=null&&typeof Object[_0x50335e(0x118)]==_0x50335e(0x13a)){for(var _0x157435=0x0,_0x12b216=Object[_0x50335e(0x118)](_0x4a701d);_0x157435<_0x12b216[_0x50335e(0x119)];_0x157435++)_0x4c241e[_0x50335e(0xe7)](_0x12b216[_0x157435])<0x0&&Object[_0x50335e(0xd3)]['propertyIsEnumerable'][_0x50335e(0x105)](_0x4a701d,_0x12b216[_0x157435])&&(_0x27d899[_0x12b216[_0x157435]]=_0x4a701d[_0x12b216[_0x157435]]);}return _0x27d899;},W=_0x181876(function(_0x142d4d,_0x378d5a){var _0x4a1cef=_0x1d2061,_0x5d401f=_0x142d4d[_0x4a1cef(0x131)],_0x4282ee=_0x142d4d['id'],_0x28cc70=_0x142d4d[_0x4a1cef(0xe5)],_0x334218=_0x142d4d['extend'],_0x2515de=Ce(_0x142d4d,['icon','id','className',_0x4a1cef(0x135)]),_0x27bfd4=_0x4a1cef(0x165)[_0x4a1cef(0x164)](_0x4282ee,'\x20')[_0x4a1cef(0x164)](_0x28cc70||'')[_0x4a1cef(0xd6)](),_0x583809=_0xec2e7b('_'[_0x4a1cef(0x164)](Le()));return Y(_0x5d401f,''['concat'](_0x4282ee),{'defIds':_0x5d401f[_0x4a1cef(0xd9)],'idSuffix':_0x583809[_0x4a1cef(0x144)]},c({'ref':_0x378d5a,'className':_0x27bfd4},_0x2515de),_0x334218);});function Y(_0x35ddae,_0x297073,_0x60c24d,_0x167e17,_0x18972a){var _0xf26800=_0x1d2061;return _0x43b433(_0x35ddae[_0xf26800(0xdf)],c(c({'key':_0x297073},De(_0x35ddae,_0x60c24d,_0x18972a)),_0x167e17),(xe(_0x35ddae,_0x60c24d)[_0xf26800(0x154)]||[])[_0xf26800(0x11f)](function(_0x37efb0,_0x250f77){var _0x32b446=_0xf26800;return Y(_0x37efb0,''[_0x32b446(0x164)](_0x297073,'-')['concat'](_0x35ddae[_0x32b446(0xdf)],'-')[_0x32b446(0x164)](_0x250f77),_0x60c24d,void 0x0,_0x18972a);}));}function De(_0x253a8b,_0x3dca18,_0x3451bf){var _0x5a3a6f=_0x1d2061,_0x3061c9=c({},_0x253a8b[_0x5a3a6f(0x14c)]);_0x3451bf!=null&&_0x3451bf[_0x5a3a6f(0x11a)]&&_0x3061c9['fill']===_0x5a3a6f(0x11a)&&(_0x3061c9[_0x5a3a6f(0x16b)]=_0x3451bf[_0x5a3a6f(0x11a)]),_0x253a8b['tag']==='mask'&&_0x3061c9['id']&&(_0x3061c9['id']=_0x3061c9['id']+_0x3dca18['idSuffix']),Object[_0x5a3a6f(0x146)](_0x3061c9)['forEach'](function(_0x2758ff){var _0x53be68=_0x5a3a6f,_0x11cdb5=_0x2758ff[0x0],_0x2accf6=_0x2758ff[0x1];_0x11cdb5===_0x53be68(0x12e)&&typeof _0x2accf6==_0x53be68(0x150)&&(_0x3061c9[_0x11cdb5]=_0x2accf6[_0x53be68(0x14b)](/url\(#(.*)\)/,_0x53be68(0x160)[_0x53be68(0x164)](_0x3dca18[_0x53be68(0x101)],')')));});var _0x1ab441=_0x3dca18[_0x5a3a6f(0xd9)];return!_0x1ab441||_0x1ab441[_0x5a3a6f(0x119)]===0x0||(_0x253a8b[_0x5a3a6f(0xdf)]==='use'&&_0x3061c9[_0x5a3a6f(0x102)]&&(_0x3061c9['xlink:href']=_0x3061c9[_0x5a3a6f(0x102)]+_0x3dca18['idSuffix']),Object[_0x5a3a6f(0x146)](_0x3061c9)['forEach'](function(_0x1938fc){var _0x8ceccb=_0x5a3a6f,_0x365d31=_0x1938fc[0x0],_0x2d9fcd=_0x1938fc[0x1];typeof _0x2d9fcd==_0x8ceccb(0x150)&&(_0x3061c9[_0x365d31]=_0x2d9fcd[_0x8ceccb(0x14b)](/url\(#(.*)\)/,_0x8ceccb(0x160)[_0x8ceccb(0x164)](_0x3dca18[_0x8ceccb(0x101)],')')));})),_0x3061c9;}function xe(_0x57c66c,_0x3f75cd){var _0x73acae=_0x1d2061,_0x40ed2a,_0x54b3ee=_0x3f75cd[_0x73acae(0xd9)];return!_0x54b3ee||_0x54b3ee[_0x73acae(0x119)]===0x0?_0x57c66c:_0x57c66c['tag']===_0x73acae(0x13c)&&(!((_0x40ed2a=_0x57c66c[_0x73acae(0x154)])===null||_0x40ed2a===void 0x0)&&_0x40ed2a['length'])?c(c({},_0x57c66c),{'children':_0x57c66c['children'][_0x73acae(0x11f)](function(_0x279034){var _0x579247=_0x73acae;return typeof _0x279034[_0x579247(0x14c)]['id']=='string'&&_0x54b3ee&&_0x54b3ee[_0x579247(0x104)](_0x279034[_0x579247(0x14c)]['id'])?c(c({},_0x279034),{'attrs':c(c({},_0x279034[_0x579247(0x14c)]),{'id':_0x279034[_0x579247(0x14c)]['id']+_0x3f75cd[_0x579247(0x101)]})}):_0x279034;})}):_0x57c66c;}function Le(){var _0x18d726=_0x1d2061;return Math['random']()[_0x18d726(0xe1)](0x24)[_0x18d726(0xe2)](0x2,0x8);}W[_0x1d2061(0x176)]=_0x1d2061(0x15e);var ye={'tag':_0x1d2061(0x145),'attrs':{'xmlns':_0x1d2061(0xef),'fill':_0x1d2061(0x162),'viewBox':_0x1d2061(0x13f),'width':_0x1d2061(0x158),'height':_0x1d2061(0x158)},'children':[{'tag':_0x1d2061(0xd1),'attrs':{'fill':'currentColor','d':_0x1d2061(0x138)}},{'tag':_0x1d2061(0xd1),'attrs':{'fill':_0x1d2061(0x16f),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x181876(function(_0x134ef0,_0x21a8f8){var _0x2e2fa9=_0x1d2061;return _0x43b433(W,Object['assign']({},_0x134ef0,{'id':_0x2e2fa9(0xd8),'ref':_0x21a8f8,'icon':ye}));});B[_0x1d2061(0x176)]='LiveShareIcon';var Re=Object[_0x1d2061(0x15a)],Z=(_0x4945f4,_0xb10b67,_0x445c66,_0x4893a6)=>{var _0x4476f9=_0x1d2061;for(var _0x3c51cc=_0x4893a6>0x1?void 0x0:_0x4893a6?Re(_0xb10b67,_0x445c66):_0xb10b67,_0x33bd42=_0x4945f4[_0x4476f9(0x119)]-0x1,_0x501c27;_0x33bd42>=0x0;_0x33bd42--)(_0x501c27=_0x4945f4[_0x33bd42])&&(_0x3c51cc=_0x501c27(_0x3c51cc)||_0x3c51cc);return _0x3c51cc;},f=(_0x348de4,_0x3e7d51)=>(_0x20643b,_0x200493)=>_0x3e7d51(_0x20643b,_0x200493,_0x348de4);let I=class extends _0x2ac371{constructor(_0x4a48a4,_0x1cf881,_0x53401c){var _0x17a61a=_0x1d2061;super(),d(this,'_entities',new Map()),(this[_0x17a61a(0x155)]=_0x4a48a4,this[_0x17a61a(0xf6)]=_0x1cf881,this[_0x17a61a(0xea)]=_0x53401c,this[_0x17a61a(0x16c)]());}async[_0x1d2061(0xec)](_0x5ff3c){var _0x56a3b5=_0x1d2061;return this[_0x56a3b5(0xce)][_0x56a3b5(0x147)](_0x5ff3c)||await this[_0x56a3b5(0x12b)](_0x5ff3c),this[_0x56a3b5(0xce)][_0x56a3b5(0x168)](_0x5ff3c);}[_0x1d2061(0x16c)](){var _0x353ae8=_0x1d2061;this['_univerInstanceService'][_0x353ae8(0x167)](_0xa2c22f[_0x353ae8(0xd5)])[_0x353ae8(0xdd)](_0x3f0d49(this[_0x353ae8(0x173)]))[_0x353ae8(0x11b)](async _0x25172d=>{var _0x18f4af=_0x353ae8;const _0x3a6083=_0x25172d['getUnitId']();this[_0x18f4af(0xce)][_0x18f4af(0x147)](_0x3a6083)||this[_0x18f4af(0x12b)](_0x3a6083);}),this[_0x353ae8(0x155)][_0x353ae8(0xeb)](_0xa2c22f[_0x353ae8(0xd5)])[_0x353ae8(0xdd)](_0x3f0d49(this[_0x353ae8(0x173)]))[_0x353ae8(0x11b)](_0x767fbd=>{var _0x5075f4=_0x353ae8;const _0x1d13a6=_0x767fbd['getUnitId'](),_0x213a30=this[_0x5075f4(0xce)][_0x5075f4(0x168)](_0x1d13a6);_0x213a30==null||_0x213a30[_0x5075f4(0x109)]();});}async[_0x1d2061(0x12b)](_0x2d1539){var _0x55ec85=_0x1d2061;const _0x1a4c3d=await this[_0x55ec85(0xea)]['requireSession'](_0x2d1539),_0x254672=this[_0x55ec85(0xf6)][_0x55ec85(0x153)](C,_0x2d1539,_0x1a4c3d);return _0x254672[_0x55ec85(0x14a)](),this[_0x55ec85(0xce)]['set'](_0x2d1539,_0x254672),_0x254672;}};I=Z([f(0x0,_0x33424e),f(0x1,_0x253fee(_0x57aad1)),f(0x2,_0x253fee(_0x4cd42a))],I);var h=(_0x35ccaf=>(_0x35ccaf['OFFLINE']='offline',_0x35ccaf[_0x1d2061(0x100)]='idle',_0x35ccaf[_0x1d2061(0x117)]='following',_0x35ccaf['NOT_FOLLOWING']=_0x1d2061(0x129),_0x35ccaf[_0x1d2061(0x12a)]=_0x1d2061(0x175),_0x35ccaf))(h||{});const Pe=_0x1d2061(0x141),Ae=0xc8;let C=class extends _0x2ac371{constructor(_0x4499a2,_0xcf3359,_0x15743b,_0x403753,_0x17e1a8){var _0x207318=_0x1d2061;super(),d(this,'_status$',new _0x2a4565('idle')),d(this,_0x207318(0x130),this[_0x207318(0x12d)]['asObservable']()),d(this,'_init',!0x1),d(this,_0x207318(0x10f),null),d(this,'_presenter',null),(this[_0x207318(0xe4)]=_0x4499a2,this['_collabSession']=_0xcf3359,this['_configService']=_0x15743b,this[_0x207318(0x163)]=_0x403753,this[_0x207318(0x125)]=_0x17e1a8);}get[_0x1d2061(0x132)](){var _0x3c3a48=_0x1d2061;return this[_0x3c3a48(0x12d)]['getValue']();}[_0x1d2061(0x109)](){var _0x1d8ed4=_0x1d2061,_0x5bb294;(_0x5bb294=this[_0x1d8ed4(0x10f)])==null||_0x5bb294[_0x1d8ed4(0x109)](),this[_0x1d8ed4(0x12d)][_0x1d8ed4(0x103)]('idle'),this['_status$'][_0x1d8ed4(0x11e)]();}[_0x1d2061(0x14a)](){var _0x2a3546=_0x1d2061;this[_0x2a3546(0x16c)]||(this[_0x2a3546(0x16c)]=!0x0,this['_collabSession'][_0x2a3546(0x10b)]['pipe'](_0x3f0d49(this[_0x2a3546(0x173)]))[_0x2a3546(0x11b)](_0x38a6cb=>{var _0x5303ef=_0x2a3546;switch(_0x38a6cb){case _0x2067be[_0x5303ef(0x17e)]:this[_0x5303ef(0xff)]();break;case _0x2067be[_0x5303ef(0x137)]:this[_0x5303ef(0x15c)]();break;}}),this['_collabSession'][_0x2a3546(0xf4)][_0x2a3546(0xdd)](_0x3f0d49(this[_0x2a3546(0x173)]))['subscribe'](_0x3ef69b=>{var _0x4450cf=_0x2a3546;const {eventID:_0x34f20e}=_0x3ef69b;switch(_0x34f20e){case _0x68e326[_0x4450cf(0xda)]:this['_handleNewHost'](_0x3ef69b);break;case _0x68e326[_0x4450cf(0x15b)]:this[_0x4450cf(0x114)](_0x3ef69b);break;case _0x68e326[_0x4450cf(0x111)]:this[_0x4450cf(0x10e)]();break;case _0x68e326['NEW_CHANGESETS']:this[_0x4450cf(0x142)](_0x3ef69b);break;}}));}['tryStartPresenting'](){var _0x398c10=_0x1d2061;this[_0x398c10(0xfb)][_0x398c10(0xf8)]({'eventID':_0x68e326[_0x398c10(0xf5)],'data':{'unitID':this[_0x398c10(0xe4)],'userID':this[_0x398c10(0xfb)][_0x398c10(0x110)]()}},this[_0x398c10(0xe4)]);}[_0x1d2061(0x16e)](){var _0x46c97f=_0x1d2061;this[_0x46c97f(0x132)]===_0x46c97f(0x175)&&(this[_0x46c97f(0x12d)][_0x46c97f(0x103)]('idle'),this[_0x46c97f(0xfb)][_0x46c97f(0xf8)]({'eventID':_0x68e326[_0x46c97f(0x111)],'data':{'unitID':this[_0x46c97f(0xe4)]}},this[_0x46c97f(0xe4)]));}[_0x1d2061(0xf9)](){var _0x62e876=_0x1d2061;this[_0x62e876(0x132)]==='not-following'&&(this[_0x62e876(0x12d)]['next'](_0x62e876(0x149)),this[_0x62e876(0x128)]());}[_0x1d2061(0x177)](){var _0xf19cf3=_0x1d2061;this[_0xf19cf3(0x132)]===_0xf19cf3(0x149)&&this['_stopFollowing']();}[_0x1d2061(0x127)](_0x11b7ea){var _0x2bbe22=_0x1d2061;const {presenter:_0x5fac1c}=_0x11b7ea[_0x2bbe22(0x15d)],_0x532d2b=this['_collabSession'][_0x2bbe22(0x110)]();this[_0x2bbe22(0xd7)]=_0x5fac1c,_0x5fac1c===_0x532d2b?(this[_0x2bbe22(0x17c)](),this[_0x2bbe22(0x17d)]()):this[_0x2bbe22(0x132)]!=='not-following'&&(this[_0x2bbe22(0xfa)](),this[_0x2bbe22(0x128)]());}[_0x1d2061(0x10c)](){var _0x254434=_0x1d2061;const _0x4ced6f={'eventID':_0x68e326[_0x254434(0x16d)]};this[_0x254434(0xfb)]['send'](_0x4ced6f,this[_0x254434(0xe4)]);}[_0x1d2061(0x10e)](){var _0x19c764=_0x1d2061;this[_0x19c764(0xd7)]=null,this[_0x19c764(0x132)]!==_0x19c764(0x175)&&this[_0x19c764(0x13d)]();}['_handleNewChangeSets'](_0x51a3e5){var _0x10b70d=_0x1d2061;if(this[_0x10b70d(0x132)]===_0x10b70d(0x149)&&this[_0x10b70d(0xd7)]===_0x51a3e5[_0x10b70d(0x15d)][_0x10b70d(0xf3)]){const _0x418104=_0x5bc805(_0x51a3e5[_0x10b70d(0x15d)])[_0x10b70d(0xe0)][_0x10b70d(0x12c)]()[_0x10b70d(0xfc)](_0x2f904b=>_0x2f904b['id']===_0xc429d8['id']);if(_0x418104){const _0xd68611=_0x418104['params'][_0x10b70d(0xe6)],_0x437630=_0x418104[_0x10b70d(0x170)][_0x10b70d(0x171)]['id'];setTimeout(()=>{var _0x1cf163=_0x10b70d;this[_0x1cf163(0x125)][_0x1cf163(0x13b)](_0x2aa18e['id'],{'unitId':_0xd68611,'subUnitId':_0x437630},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xb43744=_0x1d2061;this['_status$']['next'](_0xb43744(0x175));const _0x457d59=new Map(),_0x34f55c=this[_0xb43744(0x10f)]=new _0x25b081();_0x34f55c[_0xb43744(0x136)](_0x48aed0(()=>{var _0x384826=_0xb43744;_0x457d59[_0x384826(0x112)](_0x17d152=>_0x17d152[_0x384826(0x11e)]()),_0x457d59['clear']();})),_0x34f55c['add'](this[_0xb43744(0x125)][_0xb43744(0x148)](_0x1a1d12=>{var _0x62faf4=_0xb43744,_0x4f9f22;if(_0x1a1d12[_0x62faf4(0x14d)]!==_0x382cb4['OPERATION']||!this[_0x62faf4(0x163)][_0x62faf4(0x166)](_0x1a1d12['id']))return;const {id:_0x17ecb5}=_0x1a1d12;let _0x4596b3;_0x457d59[_0x62faf4(0x147)](_0x17ecb5)?_0x4596b3=_0x457d59[_0x62faf4(0x168)](_0x17ecb5):(_0x4596b3=new _0xcf50bc(),_0x457d59[_0x62faf4(0xf7)](_0x17ecb5,_0x4596b3),_0x4596b3[_0x62faf4(0xdd)](_0x461b27((_0x4f9f22=this[_0x62faf4(0xdb)][_0x62faf4(0x134)](Pe))!=null?_0x4f9f22:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x62faf4(0x11b)](_0x5349ad=>{var _0x5c1c77=_0x62faf4;this[_0x5c1c77(0xfb)][_0x5c1c77(0xf8)]({'eventID':_0x68e326[_0x5c1c77(0x15b)],'data':{'unitID':this[_0x5c1c77(0xe4)],'operations':{[_0x5349ad['id']]:{'id':_0x5349ad['id'],'params':JSON[_0x5c1c77(0x106)](_0x5349ad['params'])}}}},this[_0x5c1c77(0xe4)]);})),_0x4596b3[_0x62faf4(0x103)](_0x1a1d12);})),this['_liveShareService'][_0xb43744(0x143)](this[_0xb43744(0xe4)])[_0xb43744(0x112)](_0x5c97e2=>this['_collabSession']['send']({'eventID':_0x68e326[_0xb43744(0x15b)],'data':{'unitID':this[_0xb43744(0xe4)],'operations':{[_0x5c97e2['id']]:{'id':_0x5c97e2['id'],'params':JSON[_0xb43744(0x106)](_0x5c97e2[_0xb43744(0x170)])}}}},this[_0xb43744(0xe4)]));}['_stopPresenting'](){var _0x55c875=_0x1d2061,_0x4a6bfc;this['_status$']['next'](_0x55c875(0x115)),(_0x4a6bfc=this[_0x55c875(0x10f)])==null||_0x4a6bfc[_0x55c875(0x109)](),this['_commandDisposable']=null;}[_0x1d2061(0x128)](){var _0x5917e4=_0x1d2061,_0x4c25ac;(_0x4c25ac=this[_0x5917e4(0x10f)])==null||_0x4c25ac[_0x5917e4(0x109)](),this[_0x5917e4(0x12d)]['next']('following');}[_0x1d2061(0x13d)](){var _0x3360d1=_0x1d2061,_0x200d1f;this[_0x3360d1(0x12d)][_0x3360d1(0x103)](_0x3360d1(0x115)),(_0x200d1f=this[_0x3360d1(0x10f)])==null||_0x200d1f['dispose'](),this[_0x3360d1(0x10f)]=null;}[_0x1d2061(0x17c)](){var _0x4f568b=_0x1d2061,_0x41b231;this[_0x4f568b(0x12d)][_0x4f568b(0x103)](_0x4f568b(0x129)),(_0x41b231=this['_commandDisposable'])==null||_0x41b231[_0x4f568b(0x109)]();}['_handleOperation'](_0x5de271){var _0x3f33ee=_0x1d2061;if([_0x3f33ee(0x175),'not-following',_0x3f33ee(0xde)][_0x3f33ee(0x104)](this[_0x3f33ee(0x132)])||!_0x5de271[_0x3f33ee(0x15d)][_0x3f33ee(0xf1)]||_0x5de271[_0x3f33ee(0x15d)][_0x3f33ee(0xf1)]===this[_0x3f33ee(0xfb)][_0x3f33ee(0x110)]())return;this[_0x3f33ee(0x132)]===_0x3f33ee(0x115)&&this[_0x3f33ee(0x128)]();const _0x425c60=_0x5de271[_0x3f33ee(0x15d)]['operations'];Object[_0x3f33ee(0x120)](_0x425c60)[_0x3f33ee(0x112)](_0x20a5c7=>{var _0xe493c4=_0x3f33ee;this['_commandService']['executeCommand'](_0x20a5c7['id'],_0x20a5c7['params']?JSON[_0xe493c4(0x17b)](_0x20a5c7['params']):null,{'fromCollab':!0x0});});}[_0x1d2061(0xff)](){var _0x534ae3=_0x1d2061,_0x3bab3e;this[_0x534ae3(0x12d)][_0x534ae3(0x103)](_0x534ae3(0xde)),(_0x3bab3e=this[_0x534ae3(0x10f)])==null||_0x3bab3e[_0x534ae3(0x109)]();}[_0x1d2061(0x15c)](){var _0x4a5c8f=_0x1d2061;this['_status$'][_0x4a5c8f(0x103)](_0x4a5c8f(0x115)),this[_0x4a5c8f(0x10c)]();}};C=Z([f(0x2,_0xa95083),f(0x3,_0x253fee(L)),f(0x4,_0x4e7867)],C);function Te(){var _0xf7f46a=_0x1d2061;const _0xf4e780=_0x37b90a(I),_0x310cd7=_0x37b90a(_0x33424e),_0x571020=_0x33fa75(()=>_0x310cd7[_0xf7f46a(0xfe)](_0xa2c22f[_0xf7f46a(0xd5)]),void 0x0,!0x1,[]),[_0x1dd626,_0x5becf5]=_0x1669ac(null),[_0x260d25,_0x4ab75c]=_0x1669ac(h[_0xf7f46a(0x100)]),_0x15bb17=_0xec2e7b(null);return _0x483153(()=>(_0x571020&&_0xf4e780[_0xf7f46a(0xec)](_0x571020[_0xf7f46a(0x156)]())[_0xf7f46a(0x169)](_0x3631a1=>{var _0xcbe0c5=_0xf7f46a;_0x5becf5(_0x3631a1),_0x15bb17[_0xcbe0c5(0x144)]=_0x3631a1[_0xcbe0c5(0x130)]['subscribe'](_0xd47ecb=>{_0x4ab75c(_0xd47ecb);});}),()=>{var _0x5b3e1c=_0xf7f46a,_0x34064f;(_0x34064f=_0x15bb17[_0x5b3e1c(0x144)])==null||_0x34064f[_0x5b3e1c(0x14f)](),_0x15bb17[_0x5b3e1c(0x144)]=null;}),[_0x571020,_0xf4e780]),_0x1dd626?_0x1e62c2(_0x2f9467,{'align':_0xf7f46a(0xe3),'disabled':_0x260d25===h[_0xf7f46a(0x17e)],'className':_0xf7f46a(0x124),'overlay':_0x1e62c2($e,{'status':_0x260d25,'coordinator':_0x1dd626}),'children':_0x1e62c2(_0xf7f46a(0xfd),{'className':_0x3df6c9(_0xf7f46a(0x10a),{'univer-cursor-not-allowed':_0x260d25===h[_0xf7f46a(0x17e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x260d25!==h[_0xf7f46a(0x17e)]}),'type':_0xf7f46a(0xfd),'children':_0x1e62c2(B,{'className':_0xf7f46a(0x140)})})}):null;}function $e(_0x4ab5d3){var _0x2c4dda=_0x1d2061;const {status:_0x5948e3,coordinator:_0x1e6e89}=_0x4ab5d3;switch(_0x5948e3){case h[_0x2c4dda(0x100)]:return _0x1e62c2(Fe,{'coordinator':_0x1e6e89});case h[_0x2c4dda(0x117)]:return _0x1e62c2(He,{'coordinator':_0x1e6e89});case h[_0x2c4dda(0x116)]:return _0x1e62c2(je,{'coordinator':_0x1e6e89});case h['OFFLINE']:return _0x1e62c2(Ve,{});case h[_0x2c4dda(0x12a)]:return _0x1e62c2(Ue,{'coordinator':_0x1e6e89});default:return null;}}function Fe(_0x568cab){var _0x2b2b33=_0x1d2061;const {coordinator:_0x28bab8}=_0x568cab;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2(_0x2b2b33(0xed),{'className':_0x2b2b33(0x178),'children':_0x2b2b33(0xd0)}),_0x1e62c2(_0x5a17cb,{'onClick':()=>_0x28bab8[_0x2b2b33(0x161)](),'children':_0x2b2b33(0xe9)})]});}function He(_0x1fd0f8){var _0x149305=_0x1d2061;const {coordinator:_0x4cee6a}=_0x1fd0f8;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2('div',{'className':_0x149305(0x178),'children':_0x149305(0x11d)}),_0x1e62c2(_0x5a17cb,{'onClick':()=>_0x4cee6a[_0x149305(0x177)](),'children':'Stop\x20following'})]});}function je(_0x3db4e5){var _0x5ec24b=_0x1d2061;const {coordinator:_0x3feaed}=_0x3db4e5;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2(_0x5ec24b(0xed),{'className':_0x5ec24b(0x178),'children':_0x5ec24b(0x108)}),_0x1e62c2(_0x5a17cb,{'variant':_0x5ec24b(0x14e),'onClick':()=>_0x3feaed[_0x5ec24b(0xf9)](),'children':'Start\x20following'})]});}function Ue(_0x5d5393){var _0x5bccdf=_0x1d2061;const {coordinator:_0x1eb76c}=_0x5d5393;return _0x12b645(_0x4b49ed,{'children':[_0x1e62c2('div',{'className':_0x5bccdf(0x178),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x1e62c2(_0x5a17cb,{'variant':'default','onClick':()=>_0x1eb76c['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x4d80a3=_0x1d2061;return _0x1e62c2(_0x4b49ed,{'children':_0x4d80a3(0x12f)});}var Me=Object[_0x1d2061(0x15a)],ke=(_0x5f3770,_0x578690,_0x4875f0,_0x55609e)=>{var _0x40f501=_0x1d2061;for(var _0x558ede=_0x55609e>0x1?void 0x0:_0x55609e?Me(_0x578690,_0x4875f0):_0x578690,_0x354389=_0x5f3770[_0x40f501(0x119)]-0x1,_0x43a533;_0x354389>=0x0;_0x354389--)(_0x43a533=_0x5f3770[_0x354389])&&(_0x558ede=_0x43a533(_0x558ede)||_0x558ede);return _0x558ede;},$=(_0x2276c7,_0x560b84)=>(_0x3949cf,_0x534f13)=>_0x560b84(_0x3949cf,_0x534f13,_0x2276c7);let b=class extends _0x3ee941{constructor(_0x595b0e,_0x4a7cb4){var _0x40d2bb=_0x1d2061;super(),this[_0x40d2bb(0xf6)]=_0x595b0e,this[_0x40d2bb(0x16a)]=_0x4a7cb4,this[_0x40d2bb(0xf2)]();}[_0x1d2061(0xf2)](){var _0x45ea31=_0x1d2061;this['disposeWithMe'](this[_0x45ea31(0x16a)]['registerComponent'](_0x5b8b60[_0x45ea31(0xe8)],()=>_0x1e3e05(Te,this[_0x45ea31(0xf6)])));}};b=ke([$(0x0,_0x253fee(_0x57aad1)),$(0x1,_0x3fcef6)],b);var Ge=Object[_0x1d2061(0xf0)],We=Object[_0x1d2061(0x15a)],Ye=(_0x208938,_0x331e17,_0x134bde)=>_0x331e17 in _0x208938?Ge(_0x208938,_0x331e17,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x134bde}):_0x208938[_0x331e17]=_0x134bde,Be=(_0x1a4f79,_0x3a0100,_0x511f08,_0x2b4a2e)=>{var _0x35183f=_0x1d2061;for(var _0x4e7eb2=_0x2b4a2e>0x1?void 0x0:_0x2b4a2e?We(_0x3a0100,_0x511f08):_0x3a0100,_0x477017=_0x1a4f79[_0x35183f(0x119)]-0x1,_0x3ef9bc;_0x477017>=0x0;_0x477017--)(_0x3ef9bc=_0x1a4f79[_0x477017])&&(_0x4e7eb2=_0x3ef9bc(_0x4e7eb2)||_0x4e7eb2);return _0x4e7eb2;},F=(_0x50b941,_0x3b683e)=>(_0x13cfd4,_0x506198)=>_0x3b683e(_0x13cfd4,_0x506198,_0x50b941),J=(_0x21c049,_0x3d5f05,_0x48afaf)=>Ye(_0x21c049,typeof _0x3d5f05!=_0x1d2061(0xd4)?_0x3d5f05+'':_0x3d5f05,_0x48afaf);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x2dc2c4{constructor(_0x452d74=T,_0x1bc2bf,_0xbf81e4){var _0x2b104b=_0x1d2061;super(),this[_0x2b104b(0x10d)]=_0x452d74,this[_0x2b104b(0xf6)]=_0x1bc2bf,this['_configService']=_0xbf81e4;const {..._0x3f77d9}=_0x4db2d4({},T,this[_0x2b104b(0x10d)]);this['_configService']['setConfig'](Oe,_0x3f77d9);}[_0x1d2061(0x17a)](){var _0x30f2d8=_0x1d2061;_0x5d2766(this[_0x30f2d8(0xf6)],_0x4e7ffe([[L],[I],[m],[b]],this[_0x30f2d8(0x10d)][_0x30f2d8(0x122)])),_0x86b33f(this[_0x30f2d8(0xf6)],[[m]]);}[_0x1d2061(0xdc)](){_0x86b33f(this['_injector'],[[b]]);}};J(O,_0x1d2061(0x14d),_0xa2c22f['UNIVER_UNKNOWN']),J(O,_0x1d2061(0x172),Ze),O=Be([_0x394549(_0x3e8e9b),F(0x1,_0x253fee(_0x57aad1)),F(0x2,_0xa95083)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xf064(_0x455266,_0x100f08){var _0x494457=_0x4944();return _0xf064=function(_0xf064cc,_0x5d198a){_0xf064cc=_0xf064cc-0x124;var _0x5efebf=_0x494457[_0xf064cc];return _0x5efebf;},_0xf064(_0x455266,_0x100f08);}(function(_0x3bda4a,_0x22f41f){var _0x4de00e=_0xf064,_0x55ac12=_0x3bda4a();while(!![]){try{var _0x441b56=parseInt(_0x4de00e(0x177))/0x1*(parseInt(_0x4de00e(0x160))/0x2)+-parseInt(_0x4de00e(0x1b4))/0x3+parseInt(_0x4de00e(0x222))/0x4*(-parseInt(_0x4de00e(0x148))/0x5)+parseInt(_0x4de00e(0x1b0))/0x6*(parseInt(_0x4de00e(0x19f))/0x7)+-parseInt(_0x4de00e(0x218))/0x8*(parseInt(_0x4de00e(0x175))/0x9)+parseInt(_0x4de00e(0x12e))/0xa+parseInt(_0x4de00e(0x1c1))/0xb*(parseInt(_0x4de00e(0x1ff))/0xc);if(_0x441b56===_0x22f41f)break;else _0x55ac12['push'](_0x55ac12['shift']());}catch(_0x35061c){_0x55ac12['push'](_0x55ac12['shift']());}}}(_0x4944,0x75cd1),function(_0x2079e7,_0x75e601){var _0x4dfacd=_0xf064;typeof exports==_0x4dfacd(0x19b)&&typeof module<'u'?_0x75e601(exports,require(_0x4dfacd(0x201)),require('@univerjs/core'),require(_0x4dfacd(0x12c)),require(_0x4dfacd(0x1a0)),require(_0x4dfacd(0x16b)),require('react/jsx-runtime'),require(_0x4dfacd(0x184)),require('react'),require(_0x4dfacd(0x196)),require(_0x4dfacd(0x185)),require('rxjs/operators')):typeof define==_0x4dfacd(0x163)&&define[_0x4dfacd(0x1ce)]?define(['exports',_0x4dfacd(0x201),_0x4dfacd(0x13a),_0x4dfacd(0x12c),_0x4dfacd(0x1a0),'@univerjs/ui',_0x4dfacd(0x1c2),_0x4dfacd(0x184),_0x4dfacd(0x1d0),_0x4dfacd(0x196),_0x4dfacd(0x185),'rxjs/operators'],_0x75e601):(_0x2079e7=typeof globalThis<'u'?globalThis:_0x2079e7||self,_0x75e601(_0x2079e7[_0x4dfacd(0x1b1)]={},_0x2079e7[_0x4dfacd(0x13e)],_0x2079e7['UniverCore'],_0x2079e7[_0x4dfacd(0x20b)],_0x2079e7[_0x4dfacd(0x16c)],_0x2079e7[_0x4dfacd(0x12b)],_0x2079e7[_0x4dfacd(0x214)],_0x2079e7[_0x4dfacd(0x17a)],_0x2079e7[_0x4dfacd(0x214)],_0x2079e7[_0x4dfacd(0x20e)],_0x2079e7['rxjs'],_0x2079e7[_0x4dfacd(0x185)]['operators']));}(this,function(_0x5848de,_0x35345e,_0x5b051f,_0x55b262,_0x6df264,_0x323124,_0x581f33,_0x3c2d10,_0x238a88,_0xb00fc9,_0x4d9170,_0x103952){'use strict';var _0x44527d=_0xf064;var _0x108561=Object[_0x44527d(0x180)],_0x23b577=(_0x49aeb2,_0x17c725,_0x5f427d)=>_0x17c725 in _0x49aeb2?_0x108561(_0x49aeb2,_0x17c725,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f427d}):_0x49aeb2[_0x17c725]=_0x5f427d,_0x408819=(_0x4f0d42,_0x176fcb,_0x2fad3e)=>_0x23b577(_0x4f0d42,typeof _0x176fcb!=_0x44527d(0x1a7)?_0x176fcb+'':_0x176fcb,_0x2fad3e);const _0x1d2199=_0x44527d(0x200),_0xaec017={};class _0x5f1dbb extends _0x5b051f[_0x44527d(0x19e)]{constructor(){var _0x4d1914=_0x44527d;super(...arguments),_0x408819(this,_0x4d1914(0x146),new Set()),_0x408819(this,_0x4d1914(0x172),new Set());}['registerSharedOperation'](_0x513f32){var _0x4d7c9a=_0x44527d;return this['_sharedOperations'][_0x4d7c9a(0x1ec)](_0x513f32),_0x5b051f[_0x4d7c9a(0x1f0)](()=>this[_0x4d7c9a(0x146)]['delete'](_0x513f32));}[_0x44527d(0x203)](_0x48a051){var _0x8dae3=_0x44527d;return this[_0x8dae3(0x172)][_0x8dae3(0x1ec)](_0x48a051),_0x5b051f[_0x8dae3(0x1f0)](()=>this[_0x8dae3(0x172)][_0x8dae3(0x190)](_0x48a051));}[_0x44527d(0x138)](_0x5a9b91){var _0x1cd573=_0x44527d;return this['_sharedOperations'][_0x1cd573(0x1ae)](_0x5a9b91);}[_0x44527d(0x202)](_0x4efa65){var _0x3979f4=_0x44527d;return Array[_0x3979f4(0x17b)](this['_reporters'])[_0x3979f4(0x151)](_0x5b7ca3=>_0x5b7ca3(_0x4efa65));}}var _0x1ce212=Object[_0x44527d(0x1df)],_0x312a1e=(_0x232486,_0x1ba67,_0x5d1287,_0x764d4d)=>{for(var _0x2135ad=_0x764d4d>0x1?void 0x0:_0x764d4d?_0x1ce212(_0x1ba67,_0x5d1287):_0x1ba67,_0x6cff51=_0x232486['length']-0x1,_0x4da1d9;_0x6cff51>=0x0;_0x6cff51--)(_0x4da1d9=_0x232486[_0x6cff51])&&(_0x2135ad=_0x4da1d9(_0x2135ad)||_0x2135ad);return _0x2135ad;},_0x1e5a26=(_0x1c889b,_0x2b937c)=>(_0x89bbf1,_0x425230)=>_0x2b937c(_0x89bbf1,_0x425230,_0x1c889b);let _0x21e531=class extends _0x5b051f['Disposable']{constructor(_0x52d407){var _0x1675bf=_0x44527d;super(),this[_0x1675bf(0x13f)]=_0x52d407,this[_0x1675bf(0x143)]();}[_0x44527d(0x143)](){var _0x3c7737=_0x44527d;[_0x6df264[_0x3c7737(0x14b)]['id'],_0x6df264['SetScrollOperation']['id'],_0x55b262[_0x3c7737(0x1bd)]['id']][_0x3c7737(0x167)](_0x407696=>{var _0x2c272e=_0x3c7737;this[_0x2c272e(0x176)](this['_liveShareService'][_0x2c272e(0x1e4)](_0x407696));});}};_0x21e531=_0x312a1e([_0x1e5a26(0x0,_0x5b051f[_0x44527d(0x174)](_0x5f1dbb))],_0x21e531);var _0x276913=function(){var _0x140691=_0x44527d;return _0x276913=Object[_0x140691(0x1cd)]||function(_0x1b8ebb){var _0x5209ce=_0x140691;for(var _0x19b7d1,_0x70d03a=0x1,_0x347a99=arguments[_0x5209ce(0x1f2)];_0x70d03a<_0x347a99;_0x70d03a++){_0x19b7d1=arguments[_0x70d03a];for(var _0x48250c in _0x19b7d1)Object[_0x5209ce(0x14d)]['hasOwnProperty'][_0x5209ce(0x1ea)](_0x19b7d1,_0x48250c)&&(_0x1b8ebb[_0x48250c]=_0x19b7d1[_0x48250c]);}return _0x1b8ebb;},_0x276913[_0x140691(0x1e6)](this,arguments);},_0x3e991c=function(_0x19810f,_0x5373f4){var _0x72d964=_0x44527d,_0x55b24d={};for(var _0x54c00e in _0x19810f)Object[_0x72d964(0x14d)][_0x72d964(0x20a)][_0x72d964(0x1ea)](_0x19810f,_0x54c00e)&&_0x5373f4['indexOf'](_0x54c00e)<0x0&&(_0x55b24d[_0x54c00e]=_0x19810f[_0x54c00e]);if(_0x19810f!=null&&typeof Object[_0x72d964(0x1a6)]==_0x72d964(0x163)){for(var _0x121c72=0x0,_0x54c00e=Object[_0x72d964(0x1a6)](_0x19810f);_0x121c72<_0x54c00e[_0x72d964(0x1f2)];_0x121c72++)_0x5373f4[_0x72d964(0x1fc)](_0x54c00e[_0x121c72])<0x0&&Object[_0x72d964(0x14d)][_0x72d964(0x15f)]['call'](_0x19810f,_0x54c00e[_0x121c72])&&(_0x55b24d[_0x54c00e[_0x121c72]]=_0x19810f[_0x54c00e[_0x121c72]]);}return _0x55b24d;},_0x276f39=_0x238a88[_0x44527d(0x14e)](function(_0x40fbb4,_0x5d0db0){var _0x289fa0=_0x44527d,_0x16b776=_0x40fbb4[_0x289fa0(0x126)],_0x4843e9=_0x40fbb4['id'],_0x9b15aa=_0x40fbb4[_0x289fa0(0x1e2)],_0x4731df=_0x40fbb4[_0x289fa0(0x197)],_0x3e75f0=_0x3e991c(_0x40fbb4,['icon','id',_0x289fa0(0x1e2),_0x289fa0(0x197)]),_0x4070ac=_0x289fa0(0x14a)[_0x289fa0(0x20d)](_0x4843e9,'\x20')[_0x289fa0(0x20d)](_0x9b15aa||'')[_0x289fa0(0x1c3)](),_0x3e1032=_0x238a88[_0x289fa0(0x21e)]('_'[_0x289fa0(0x20d)](_0x3e96a1()));return _0x3f2747(_0x16b776,''[_0x289fa0(0x20d)](_0x4843e9),{'defIds':_0x16b776[_0x289fa0(0x142)],'idSuffix':_0x3e1032[_0x289fa0(0x21c)]},_0x276913({'ref':_0x5d0db0,'className':_0x4070ac},_0x3e75f0),_0x4731df);});function _0x3f2747(_0x3b2619,_0x1e8f06,_0x3d5a5e,_0xffcf49,_0x3279d0){var _0x122c05=_0x44527d;return _0x238a88['createElement'](_0x3b2619[_0x122c05(0x1b6)],_0x276913(_0x276913({'key':_0x1e8f06},_0x499c36(_0x3b2619,_0x3d5a5e,_0x3279d0)),_0xffcf49),(_0x295ea2(_0x3b2619,_0x3d5a5e)[_0x122c05(0x14f)]||[])[_0x122c05(0x151)](function(_0x27f58c,_0x3d574d){var _0x3bb24b=_0x122c05;return _0x3f2747(_0x27f58c,''[_0x3bb24b(0x20d)](_0x1e8f06,'-')[_0x3bb24b(0x20d)](_0x3b2619['tag'],'-')[_0x3bb24b(0x20d)](_0x3d574d),_0x3d5a5e,void 0x0,_0x3279d0);}));}function _0x499c36(_0x348cca,_0x3d2de4,_0x157682){var _0x14961b=_0x44527d,_0x3234dc=_0x276913({},_0x348cca[_0x14961b(0x16a)]);_0x157682!=null&&_0x157682['colorChannel1']&&_0x3234dc[_0x14961b(0x199)]===_0x14961b(0x152)&&(_0x3234dc[_0x14961b(0x199)]=_0x157682[_0x14961b(0x152)]),_0x348cca['tag']==='mask'&&_0x3234dc['id']&&(_0x3234dc['id']=_0x3234dc['id']+_0x3d2de4[_0x14961b(0x1ee)]),Object[_0x14961b(0x207)](_0x3234dc)[_0x14961b(0x167)](function(_0x555292){var _0x263b3d=_0x14961b,_0x39e8eb=_0x555292[0x0],_0x9f660d=_0x555292[0x1];_0x39e8eb===_0x263b3d(0x1b2)&&typeof _0x9f660d=='string'&&(_0x3234dc[_0x39e8eb]=_0x9f660d[_0x263b3d(0x171)](/url\(#(.*)\)/,_0x263b3d(0x206)['concat'](_0x3d2de4['idSuffix'],')')));});var _0x20be2e=_0x3d2de4[_0x14961b(0x142)];return!_0x20be2e||_0x20be2e[_0x14961b(0x1f2)]===0x0||(_0x348cca[_0x14961b(0x1b6)]==='use'&&_0x3234dc['xlink:href']&&(_0x3234dc['xlink:href']=_0x3234dc[_0x14961b(0x198)]+_0x3d2de4['idSuffix']),Object[_0x14961b(0x207)](_0x3234dc)[_0x14961b(0x167)](function(_0x522576){var _0x164fb8=_0x14961b,_0x992eb8=_0x522576[0x0],_0x3f4c30=_0x522576[0x1];typeof _0x3f4c30==_0x164fb8(0x187)&&(_0x3234dc[_0x992eb8]=_0x3f4c30[_0x164fb8(0x171)](/url\(#(.*)\)/,_0x164fb8(0x206)['concat'](_0x3d2de4['idSuffix'],')')));})),_0x3234dc;}function _0x295ea2(_0x5d48e3,_0x587c12){var _0x1987bf=_0x44527d,_0x2d471b,_0x177987=_0x587c12[_0x1987bf(0x142)];return!_0x177987||_0x177987[_0x1987bf(0x1f2)]===0x0?_0x5d48e3:_0x5d48e3[_0x1987bf(0x1b6)]==='defs'&&(!((_0x2d471b=_0x5d48e3[_0x1987bf(0x14f)])===null||_0x2d471b===void 0x0)&&_0x2d471b['length'])?_0x276913(_0x276913({},_0x5d48e3),{'children':_0x5d48e3[_0x1987bf(0x14f)]['map'](function(_0x25d9af){var _0x58de58=_0x1987bf;return typeof _0x25d9af[_0x58de58(0x16a)]['id']==_0x58de58(0x187)&&_0x177987&&_0x177987[_0x58de58(0x1aa)](_0x25d9af['attrs']['id'])?_0x276913(_0x276913({},_0x25d9af),{'attrs':_0x276913(_0x276913({},_0x25d9af[_0x58de58(0x16a)]),{'id':_0x25d9af[_0x58de58(0x16a)]['id']+_0x587c12[_0x58de58(0x1ee)]})}):_0x25d9af;})}):_0x5d48e3;}function _0x3e96a1(){var _0x60e611=_0x44527d;return Math['random']()[_0x60e611(0x1c9)](0x24)[_0x60e611(0x157)](0x2,0x8);}_0x276f39[_0x44527d(0x1fa)]=_0x44527d(0x18e);var _0x5172e0={'tag':'svg','attrs':{'xmlns':_0x44527d(0x1ac),'fill':_0x44527d(0x1a4),'viewBox':_0x44527d(0x1dd),'width':_0x44527d(0x1bb),'height':_0x44527d(0x1bb)},'children':[{'tag':_0x44527d(0x1e5),'attrs':{'fill':_0x44527d(0x212),'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':_0x44527d(0x1e5),'attrs':{'fill':'currentColor','d':_0x44527d(0x134),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x5eb312=_0x238a88[_0x44527d(0x14e)](function(_0x1c00c9,_0x33e3de){var _0x5636e3=_0x44527d;return _0x238a88[_0x5636e3(0x1be)](_0x276f39,Object['assign']({},_0x1c00c9,{'id':_0x5636e3(0x1cc),'ref':_0x33e3de,'icon':_0x5172e0}));});_0x5eb312['displayName']=_0x44527d(0x130);var _0x2dcf04=Object[_0x44527d(0x1df)],_0xb222d7=(_0x4a31ca,_0x24b63c,_0x1c28be,_0xfa7d6a)=>{var _0x46ef4d=_0x44527d;for(var _0x5118f5=_0xfa7d6a>0x1?void 0x0:_0xfa7d6a?_0x2dcf04(_0x24b63c,_0x1c28be):_0x24b63c,_0x1ee961=_0x4a31ca[_0x46ef4d(0x1f2)]-0x1,_0x57110f;_0x1ee961>=0x0;_0x1ee961--)(_0x57110f=_0x4a31ca[_0x1ee961])&&(_0x5118f5=_0x57110f(_0x5118f5)||_0x5118f5);return _0x5118f5;},_0x43040c=(_0x4f3c46,_0x43d52b)=>(_0x5c0d39,_0xa98435)=>_0x43d52b(_0x5c0d39,_0xa98435,_0x4f3c46);_0x5848de['LiveShareController']=class extends _0x5b051f[_0x44527d(0x1ca)]{constructor(_0x33ff25,_0x13d4c1,_0x23d1b8){var _0x3ae59f=_0x44527d;super(),_0x408819(this,_0x3ae59f(0x1e9),new Map()),(this['_univerInstanceService']=_0x33ff25,this[_0x3ae59f(0x1d6)]=_0x13d4c1,this[_0x3ae59f(0x1d4)]=_0x23d1b8,this[_0x3ae59f(0x143)]());}async[_0x44527d(0x16d)](_0x2dde17){var _0x1af230=_0x44527d;return this[_0x1af230(0x1e9)][_0x1af230(0x1ae)](_0x2dde17)||await this['_startLiveShareCoordinator'](_0x2dde17),this['_entities']['get'](_0x2dde17);}[_0x44527d(0x143)](){var _0x45bc6e=_0x44527d;this[_0x45bc6e(0x166)][_0x45bc6e(0x16e)](_0x5b051f['UniverInstanceType'][_0x45bc6e(0x153)])[_0x45bc6e(0x17d)](_0x103952['takeUntil'](this[_0x45bc6e(0x1f5)]))[_0x45bc6e(0x210)](async _0x10a32b=>{var _0x961296=_0x45bc6e;const _0x4d8d33=_0x10a32b[_0x961296(0x1c7)]();this[_0x961296(0x1e9)][_0x961296(0x1ae)](_0x4d8d33)||this[_0x961296(0x1dc)](_0x4d8d33);}),this[_0x45bc6e(0x166)][_0x45bc6e(0x1a5)](_0x5b051f[_0x45bc6e(0x1c5)][_0x45bc6e(0x153)])['pipe'](_0x103952[_0x45bc6e(0x1b9)](this[_0x45bc6e(0x1f5)]))[_0x45bc6e(0x210)](_0x3a37f1=>{var _0x2d7a6f=_0x45bc6e;const _0x57b176=_0x3a37f1['getUnitId'](),_0x1e6f55=this[_0x2d7a6f(0x1e9)][_0x2d7a6f(0x1cf)](_0x57b176);_0x1e6f55==null||_0x1e6f55['dispose']();});}async[_0x44527d(0x1dc)](_0x7d0ba9){var _0x248b58=_0x44527d;const _0x17384a=await this[_0x248b58(0x1d4)][_0x248b58(0x1a2)](_0x7d0ba9),_0x42923b=this[_0x248b58(0x1d6)][_0x248b58(0x21a)](_0x5848de[_0x248b58(0x147)],_0x7d0ba9,_0x17384a);return _0x42923b[_0x248b58(0x1a9)](),this[_0x248b58(0x1e9)][_0x248b58(0x140)](_0x7d0ba9,_0x42923b),_0x42923b;}},_0x5848de[_0x44527d(0x133)]=_0xb222d7([_0x43040c(0x0,_0x5b051f[_0x44527d(0x16f)]),_0x43040c(0x1,_0x5b051f[_0x44527d(0x174)](_0x5b051f[_0x44527d(0x154)])),_0x43040c(0x2,_0x5b051f[_0x44527d(0x174)](_0x35345e[_0x44527d(0x1a3)]))],_0x5848de[_0x44527d(0x133)]);var _0x5093ed=(_0x15216c=>(_0x15216c[_0x44527d(0x18d)]='offline',_0x15216c['IDLE']='idle',_0x15216c[_0x44527d(0x136)]=_0x44527d(0x17f),_0x15216c[_0x44527d(0x12a)]=_0x44527d(0x211),_0x15216c['PRESENTING']=_0x44527d(0x1a1),_0x15216c))(_0x5093ed||{});const _0x1608bf=_0x44527d(0x1f4),_0x3c9dbd=0xc8;_0x5848de[_0x44527d(0x147)]=class extends _0x5b051f['RxDisposable']{constructor(_0x2ff36c,_0x2ca1a2,_0x39e560,_0x484734,_0x2f832a){var _0x4c6287=_0x44527d;super(),_0x408819(this,_0x4c6287(0x1f8),new _0x4d9170[(_0x4c6287(0x1e8))]('idle')),_0x408819(this,'status$',this[_0x4c6287(0x1f8)][_0x4c6287(0x1a8)]()),_0x408819(this,_0x4c6287(0x143),!0x1),_0x408819(this,_0x4c6287(0x1d3),null),_0x408819(this,_0x4c6287(0x209),null),(this['_unitID']=_0x2ff36c,this[_0x4c6287(0x132)]=_0x2ca1a2,this[_0x4c6287(0x170)]=_0x39e560,this[_0x4c6287(0x13f)]=_0x484734,this[_0x4c6287(0x150)]=_0x2f832a);}get[_0x44527d(0x213)](){var _0x698cdb=_0x44527d;return this[_0x698cdb(0x1f8)][_0x698cdb(0x127)]();}['dispose'](){var _0x37dc16=_0x44527d,_0x4e213c;(_0x4e213c=this[_0x37dc16(0x1d3)])==null||_0x4e213c['dispose'](),this[_0x37dc16(0x1f8)]['next'](_0x37dc16(0x1d5)),this[_0x37dc16(0x1f8)][_0x37dc16(0x193)]();}[_0x44527d(0x1a9)](){var _0x1e4aff=_0x44527d;this['_init']||(this[_0x1e4aff(0x143)]=!0x0,this[_0x1e4aff(0x132)][_0x1e4aff(0x1f3)][_0x1e4aff(0x17d)](_0x103952[_0x1e4aff(0x1b9)](this[_0x1e4aff(0x1f5)]))[_0x1e4aff(0x210)](_0x2d718f=>{var _0x3142ce=_0x1e4aff;switch(_0x2d718f){case _0x35345e[_0x3142ce(0x162)][_0x3142ce(0x18d)]:this[_0x3142ce(0x169)]();break;case _0x35345e[_0x3142ce(0x162)][_0x3142ce(0x1f1)]:this[_0x3142ce(0x131)]();break;}}),this[_0x1e4aff(0x132)][_0x1e4aff(0x1f7)]['pipe'](_0x103952[_0x1e4aff(0x1b9)](this[_0x1e4aff(0x1f5)]))[_0x1e4aff(0x210)](_0x1c31f6=>{var _0x122ff3=_0x1e4aff;const {eventID:_0x3f4c38}=_0x1c31f6;switch(_0x3f4c38){case _0xb00fc9[_0x122ff3(0x141)][_0x122ff3(0x1ab)]:this[_0x122ff3(0x21d)](_0x1c31f6);break;case _0xb00fc9[_0x122ff3(0x141)]['LIVESHARE_OPERATION']:this[_0x122ff3(0x1c0)](_0x1c31f6);break;case _0xb00fc9[_0x122ff3(0x141)][_0x122ff3(0x125)]:this['_handleTerminate']();break;case _0xb00fc9[_0x122ff3(0x141)][_0x122ff3(0x21f)]:this[_0x122ff3(0x155)](_0x1c31f6);break;}}));}[_0x44527d(0x1e3)](){var _0x38b664=_0x44527d;this['_collabSession'][_0x38b664(0x216)]({'eventID':_0xb00fc9['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x38b664(0x186)],'userID':this[_0x38b664(0x132)][_0x38b664(0x13c)]()}},this[_0x38b664(0x186)]);}[_0x44527d(0x18a)](){var _0x4aa47b=_0x44527d;this['_status']==='presenting'&&(this[_0x4aa47b(0x1f8)][_0x4aa47b(0x156)](_0x4aa47b(0x1d5)),this[_0x4aa47b(0x132)]['send']({'eventID':_0xb00fc9['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4aa47b(0x186)]}},this[_0x4aa47b(0x186)]));}['startFollowing'](){var _0x4af77a=_0x44527d;this['_status']==='not-following'&&(this[_0x4af77a(0x1f8)][_0x4af77a(0x156)](_0x4af77a(0x17f)),this[_0x4af77a(0x1c8)]());}['stopFollowing'](){var _0x2884ed=_0x44527d;this['_status']===_0x2884ed(0x17f)&&this[_0x2884ed(0x15c)]();}[_0x44527d(0x21d)](_0x53de5e){var _0x5aab94=_0x44527d;const {presenter:_0x1ed7be}=_0x53de5e[_0x5aab94(0x1b7)],_0x30f762=this[_0x5aab94(0x132)][_0x5aab94(0x13c)]();this['_presenter']=_0x1ed7be,_0x1ed7be===_0x30f762?(this['_stopFollowing'](),this[_0x5aab94(0x1db)]()):this['_status']!==_0x5aab94(0x211)&&(this[_0x5aab94(0x1eb)](),this[_0x5aab94(0x1c8)]());}[_0x44527d(0x1d1)](){var _0x558563=_0x44527d;const _0x4f4867={'eventID':_0xb00fc9[_0x558563(0x141)][_0x558563(0x18c)]};this[_0x558563(0x132)][_0x558563(0x216)](_0x4f4867,this[_0x558563(0x186)]);}[_0x44527d(0x1b8)](){var _0x3c3151=_0x44527d;this[_0x3c3151(0x209)]=null,this[_0x3c3151(0x213)]!==_0x3c3151(0x1a1)&&this[_0x3c3151(0x1fe)]();}[_0x44527d(0x155)](_0x27cf0c){var _0x157f38=_0x44527d;if(this[_0x157f38(0x213)]==='following'&&this['_presenter']===_0x27cf0c[_0x157f38(0x1b7)][_0x157f38(0x128)]){const _0x48dbed=_0xb00fc9[_0x157f38(0x1fb)](_0x27cf0c[_0x157f38(0x1b7)])['mutations']['reverse']()['find'](_0x42de48=>_0x42de48['id']===_0x55b262[_0x157f38(0x1e7)]['id']);if(_0x48dbed){const _0x214cf0=_0x48dbed[_0x157f38(0x1f9)][_0x157f38(0x181)],_0xa76841=_0x48dbed[_0x157f38(0x1f9)]['sheet']['id'];setTimeout(()=>{var _0x301bf7=_0x157f38;this[_0x301bf7(0x150)][_0x301bf7(0x182)](_0x55b262['SetWorksheetActiveOperation']['id'],{'unitId':_0x214cf0,'subUnitId':_0xa76841},{'fromCollab':!0x0});});}}}[_0x44527d(0x1db)](){var _0x2779d6=_0x44527d;this[_0x2779d6(0x1f8)][_0x2779d6(0x156)](_0x2779d6(0x1a1));const _0x5acbe0=new Map(),_0x568a7f=this[_0x2779d6(0x1d3)]=new _0x5b051f[(_0x2779d6(0x205))]();_0x568a7f['add'](_0x5b051f[_0x2779d6(0x1f0)](()=>{var _0x9747e6=_0x2779d6;_0x5acbe0['forEach'](_0x4910bb=>_0x4910bb[_0x9747e6(0x193)]()),_0x5acbe0[_0x9747e6(0x221)]();})),_0x568a7f[_0x2779d6(0x1ec)](this[_0x2779d6(0x150)][_0x2779d6(0x20c)](_0x31f6c5=>{var _0x405fb5=_0x2779d6,_0x30904e;if(_0x31f6c5[_0x405fb5(0x15e)]!==_0x5b051f[_0x405fb5(0x1d9)][_0x405fb5(0x1cb)]||!this[_0x405fb5(0x13f)][_0x405fb5(0x138)](_0x31f6c5['id']))return;const {id:_0x56b8ee}=_0x31f6c5;let _0x2e6b01;_0x5acbe0[_0x405fb5(0x1ae)](_0x56b8ee)?_0x2e6b01=_0x5acbe0[_0x405fb5(0x1cf)](_0x56b8ee):(_0x2e6b01=new _0x4d9170[(_0x405fb5(0x165))](),_0x5acbe0[_0x405fb5(0x140)](_0x56b8ee,_0x2e6b01),_0x2e6b01[_0x405fb5(0x17d)](_0x103952[_0x405fb5(0x1bf)]((_0x30904e=this[_0x405fb5(0x170)]['getConfig'](_0x1608bf))!=null?_0x30904e:_0x3c9dbd,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x405fb5(0x210)](_0x3fd9cd=>{var _0x207b5f=_0x405fb5;this[_0x207b5f(0x132)][_0x207b5f(0x216)]({'eventID':_0xb00fc9[_0x207b5f(0x141)][_0x207b5f(0x208)],'data':{'unitID':this['_unitID'],'operations':{[_0x3fd9cd['id']]:{'id':_0x3fd9cd['id'],'params':JSON[_0x207b5f(0x21b)](_0x3fd9cd[_0x207b5f(0x1f9)])}}}},this[_0x207b5f(0x186)]);})),_0x2e6b01[_0x405fb5(0x156)](_0x31f6c5);})),this[_0x2779d6(0x13f)][_0x2779d6(0x202)](this[_0x2779d6(0x186)])['forEach'](_0x36e697=>this[_0x2779d6(0x132)][_0x2779d6(0x216)]({'eventID':_0xb00fc9[_0x2779d6(0x141)][_0x2779d6(0x208)],'data':{'unitID':this[_0x2779d6(0x186)],'operations':{[_0x36e697['id']]:{'id':_0x36e697['id'],'params':JSON['stringify'](_0x36e697[_0x2779d6(0x1f9)])}}}},this['_unitID']));}[_0x44527d(0x1eb)](){var _0x436eb0=_0x44527d,_0x1e9d68;this[_0x436eb0(0x1f8)][_0x436eb0(0x156)](_0x436eb0(0x1d5)),(_0x1e9d68=this[_0x436eb0(0x1d3)])==null||_0x1e9d68[_0x436eb0(0x1ed)](),this['_commandDisposable']=null;}[_0x44527d(0x1c8)](){var _0x1e06f4=_0x44527d,_0x2b88f9;(_0x2b88f9=this['_commandDisposable'])==null||_0x2b88f9['dispose'](),this[_0x1e06f4(0x1f8)][_0x1e06f4(0x156)](_0x1e06f4(0x17f));}['_beIdle'](){var _0x4cb088=_0x44527d,_0x47adae;this[_0x4cb088(0x1f8)][_0x4cb088(0x156)](_0x4cb088(0x1d5)),(_0x47adae=this[_0x4cb088(0x1d3)])==null||_0x47adae['dispose'](),this[_0x4cb088(0x1d3)]=null;}['_stopFollowing'](){var _0x283cbe=_0x44527d,_0x2709f7;this[_0x283cbe(0x1f8)][_0x283cbe(0x156)]('not-following'),(_0x2709f7=this[_0x283cbe(0x1d3)])==null||_0x2709f7[_0x283cbe(0x1ed)]();}['_handleOperation'](_0x27fa46){var _0x5b3e30=_0x44527d;if([_0x5b3e30(0x1a1),_0x5b3e30(0x211),_0x5b3e30(0x179)]['includes'](this[_0x5b3e30(0x213)])||!_0x27fa46['data'][_0x5b3e30(0x135)]||_0x27fa46[_0x5b3e30(0x1b7)][_0x5b3e30(0x135)]===this['_collabSession'][_0x5b3e30(0x13c)]())return;this[_0x5b3e30(0x213)]==='idle'&&this[_0x5b3e30(0x1c8)]();const _0x4d12ab=_0x27fa46[_0x5b3e30(0x1b7)][_0x5b3e30(0x1e1)];Object[_0x5b3e30(0x1c4)](_0x4d12ab)[_0x5b3e30(0x167)](_0x32116f=>{var _0x29f20b=_0x5b3e30;this[_0x29f20b(0x150)][_0x29f20b(0x182)](_0x32116f['id'],_0x32116f[_0x29f20b(0x1f9)]?JSON['parse'](_0x32116f['params']):null,{'fromCollab':!0x0});});}[_0x44527d(0x169)](){var _0x554a9c=_0x44527d,_0x135e4d;this[_0x554a9c(0x1f8)][_0x554a9c(0x156)]('offline'),(_0x135e4d=this[_0x554a9c(0x1d3)])==null||_0x135e4d['dispose']();}[_0x44527d(0x131)](){var _0x20e742=_0x44527d;this[_0x20e742(0x1f8)]['next'](_0x20e742(0x1d5)),this[_0x20e742(0x1d1)]();}},_0x5848de[_0x44527d(0x147)]=_0xb222d7([_0x43040c(0x2,_0x5b051f[_0x44527d(0x1f6)]),_0x43040c(0x3,_0x5b051f['Inject'](_0x5f1dbb)),_0x43040c(0x4,_0x5b051f[_0x44527d(0x1de)])],_0x5848de[_0x44527d(0x147)]);function _0x22d785(){var _0x468523=_0x44527d;const _0x1763e3=_0x323124[_0x468523(0x18f)](_0x5848de[_0x468523(0x133)]),_0x15748c=_0x323124[_0x468523(0x18f)](_0x5b051f[_0x468523(0x16f)]),_0x40b579=_0x323124['useObservable'](()=>_0x15748c[_0x468523(0x1ba)](_0x5b051f[_0x468523(0x1c5)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x48803d,_0x445798]=_0x238a88['useState'](null),[_0x51a996,_0x3b4300]=_0x238a88['useState'](_0x5093ed[_0x468523(0x1e0)]),_0x1b5f1e=_0x238a88[_0x468523(0x21e)](null);return _0x238a88['useEffect'](()=>(_0x40b579&&_0x1763e3[_0x468523(0x16d)](_0x40b579[_0x468523(0x1c7)]())[_0x468523(0x137)](_0x5a3aa1=>{var _0x189191=_0x468523;_0x445798(_0x5a3aa1),_0x1b5f1e['current']=_0x5a3aa1[_0x189191(0x1b3)]['subscribe'](_0x5c16f3=>{_0x3b4300(_0x5c16f3);});}),()=>{var _0x38a8c9=_0x468523,_0x56cdd5;(_0x56cdd5=_0x1b5f1e[_0x38a8c9(0x21c)])==null||_0x56cdd5[_0x38a8c9(0x204)](),_0x1b5f1e[_0x38a8c9(0x21c)]=null;}),[_0x40b579,_0x1763e3]),_0x48803d?_0x581f33[_0x468523(0x149)](_0x3c2d10[_0x468523(0x220)],{'align':_0x468523(0x168),'disabled':_0x51a996===_0x5093ed['OFFLINE'],'className':_0x468523(0x14c),'overlay':_0x581f33[_0x468523(0x149)](_0xf4dc93,{'status':_0x51a996,'coordinator':_0x48803d}),'children':_0x581f33['jsx'](_0x468523(0x189),{'className':_0x3c2d10[_0x468523(0x164)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x51a996===_0x5093ed['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51a996!==_0x5093ed[_0x468523(0x18d)]}),'type':_0x468523(0x189),'children':_0x581f33[_0x468523(0x149)](_0x5eb312,{'className':_0x468523(0x1fd)})})}):null;}function _0xf4dc93(_0x1d9538){var _0x1e8a3e=_0x44527d;const {status:_0x55c294,coordinator:_0x50c55b}=_0x1d9538;switch(_0x55c294){case _0x5093ed[_0x1e8a3e(0x1e0)]:return _0x581f33[_0x1e8a3e(0x149)](_0x263005,{'coordinator':_0x50c55b});case _0x5093ed[_0x1e8a3e(0x136)]:return _0x581f33[_0x1e8a3e(0x149)](_0x4edd73,{'coordinator':_0x50c55b});case _0x5093ed[_0x1e8a3e(0x12a)]:return _0x581f33[_0x1e8a3e(0x149)](_0x415480,{'coordinator':_0x50c55b});case _0x5093ed[_0x1e8a3e(0x18d)]:return _0x581f33['jsx'](_0x4de7dd,{});case _0x5093ed[_0x1e8a3e(0x17e)]:return _0x581f33[_0x1e8a3e(0x149)](_0x513bd7,{'coordinator':_0x50c55b});default:return null;}}function _0x263005(_0x56da51){var _0xa47145=_0x44527d;const {coordinator:_0x901244}=_0x56da51;return _0x581f33[_0xa47145(0x158)](_0x581f33['Fragment'],{'children':[_0x581f33[_0xa47145(0x149)](_0xa47145(0x194),{'className':_0xa47145(0x161),'children':_0xa47145(0x12d)}),_0x581f33[_0xa47145(0x149)](_0x3c2d10['Button'],{'onClick':()=>_0x901244[_0xa47145(0x1e3)](),'children':_0xa47145(0x1d2)})]});}function _0x4edd73(_0x459366){var _0x414d34=_0x44527d;const {coordinator:_0x2a837e}=_0x459366;return _0x581f33[_0x414d34(0x158)](_0x581f33['Fragment'],{'children':[_0x581f33[_0x414d34(0x149)](_0x414d34(0x194),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x581f33[_0x414d34(0x149)](_0x3c2d10[_0x414d34(0x191)],{'onClick':()=>_0x2a837e[_0x414d34(0x124)](),'children':_0x414d34(0x129)})]});}function _0x415480(_0x2434a0){var _0x510628=_0x44527d;const {coordinator:_0x3f2391}=_0x2434a0;return _0x581f33['jsxs'](_0x581f33['Fragment'],{'children':[_0x581f33['jsx'](_0x510628(0x194),{'className':_0x510628(0x161),'children':_0x510628(0x1af)}),_0x581f33[_0x510628(0x149)](_0x3c2d10[_0x510628(0x191)],{'variant':_0x510628(0x144),'onClick':()=>_0x3f2391[_0x510628(0x1d8)](),'children':_0x510628(0x19c)})]});}function _0x513bd7(_0x1b6095){var _0x51a011=_0x44527d;const {coordinator:_0x1c6c21}=_0x1b6095;return _0x581f33[_0x51a011(0x158)](_0x581f33[_0x51a011(0x13b)],{'children':[_0x581f33[_0x51a011(0x149)](_0x51a011(0x194),{'className':_0x51a011(0x161),'children':_0x51a011(0x18b)}),_0x581f33[_0x51a011(0x149)](_0x3c2d10[_0x51a011(0x191)],{'variant':_0x51a011(0x17c),'onClick':()=>_0x1c6c21['stopPresenting'](),'children':_0x51a011(0x217)})]});}function _0x4de7dd(){var _0x222897=_0x44527d;return _0x581f33['jsx'](_0x581f33[_0x222897(0x13b)],{'children':_0x222897(0x195)});}var _0x2bfc55=Object[_0x44527d(0x1df)],_0x24cf7e=(_0x6c72d6,_0x992ca,_0x3bddc2,_0x54b0a6)=>{for(var _0x51e35c=_0x54b0a6>0x1?void 0x0:_0x54b0a6?_0x2bfc55(_0x992ca,_0x3bddc2):_0x992ca,_0x5ecac0=_0x6c72d6['length']-0x1,_0x46b5fd;_0x5ecac0>=0x0;_0x5ecac0--)(_0x46b5fd=_0x6c72d6[_0x5ecac0])&&(_0x51e35c=_0x46b5fd(_0x51e35c)||_0x51e35c);return _0x51e35c;},_0x1ce3aa=(_0x2f603d,_0x224445)=>(_0x416ddd,_0x13fb0f)=>_0x224445(_0x416ddd,_0x13fb0f,_0x2f603d);_0x5848de[_0x44527d(0x1c6)]=class extends _0x5b051f['Disposable']{constructor(_0x54bcab,_0x2066f0){var _0x164eda=_0x44527d;super(),this[_0x164eda(0x1d6)]=_0x54bcab,this[_0x164eda(0x1da)]=_0x2066f0,this['_mountLiveShare']();}[_0x44527d(0x192)](){var _0x3f04f6=_0x44527d;this['disposeWithMe'](this[_0x3f04f6(0x1da)][_0x3f04f6(0x15a)](_0x323124[_0x3f04f6(0x178)][_0x3f04f6(0x219)],()=>_0x323124['connectInjector'](_0x22d785,this[_0x3f04f6(0x1d6)])));}},_0x5848de[_0x44527d(0x1c6)]=_0x24cf7e([_0x1ce3aa(0x0,_0x5b051f[_0x44527d(0x174)](_0x5b051f['Injector'])),_0x1ce3aa(0x1,_0x323124[_0x44527d(0x1bc)])],_0x5848de[_0x44527d(0x1c6)]);var _0x49377b=Object['defineProperty'],_0x5da5d9=Object[_0x44527d(0x1df)],_0x4e8dae=(_0x1a607c,_0x1bc48f,_0x470727)=>_0x1bc48f in _0x1a607c?_0x49377b(_0x1a607c,_0x1bc48f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x470727}):_0x1a607c[_0x1bc48f]=_0x470727,_0x1d1eb0=(_0x527e02,_0x4fe770,_0x34a2d5,_0x472618)=>{var _0x23b898=_0x44527d;for(var _0x3fa4a6=_0x472618>0x1?void 0x0:_0x472618?_0x5da5d9(_0x4fe770,_0x34a2d5):_0x4fe770,_0x55e1f0=_0x527e02[_0x23b898(0x1f2)]-0x1,_0x925b8d;_0x55e1f0>=0x0;_0x55e1f0--)(_0x925b8d=_0x527e02[_0x55e1f0])&&(_0x3fa4a6=_0x925b8d(_0x3fa4a6)||_0x3fa4a6);return _0x3fa4a6;},_0x4321c9=(_0x5b06c1,_0x422043)=>(_0x42ec90,_0x58db71)=>_0x422043(_0x42ec90,_0x58db71,_0x5b06c1),_0x37bedb=(_0x2c1313,_0x1421e8,_0x88533c)=>_0x4e8dae(_0x2c1313,typeof _0x1421e8!=_0x44527d(0x1a7)?_0x1421e8+'':_0x1421e8,_0x88533c);const _0x23a3dc=_0x44527d(0x159);_0x5848de[_0x44527d(0x1ef)]=class extends _0x5b051f[_0x44527d(0x215)]{constructor(_0x35c708=_0xaec017,_0x372313,_0x3abbe3){var _0x2055dc=_0x44527d;super(),this[_0x2055dc(0x1d7)]=_0x35c708,this[_0x2055dc(0x1d6)]=_0x372313,this[_0x2055dc(0x170)]=_0x3abbe3;const {..._0x158674}=_0x5b051f['merge']({},_0xaec017,this['_config']);this[_0x2055dc(0x170)][_0x2055dc(0x13d)](_0x1d2199,_0x158674);}[_0x44527d(0x12f)](){var _0x3e3c4e=_0x44527d;_0x5b051f[_0x3e3c4e(0x1b5)](this[_0x3e3c4e(0x1d6)],_0x5b051f['mergeOverrideWithDependencies']([[_0x5f1dbb],[_0x5848de[_0x3e3c4e(0x133)]],[_0x21e531],[_0x5848de[_0x3e3c4e(0x1c6)]]],this[_0x3e3c4e(0x1d7)][_0x3e3c4e(0x15b)])),_0x5b051f[_0x3e3c4e(0x188)](this['_injector'],[[_0x21e531]]);}[_0x44527d(0x173)](){var _0xd89bda=_0x44527d;_0x5b051f['touchDependencies'](this[_0xd89bda(0x1d6)],[[_0x5848de[_0xd89bda(0x1c6)]]]);}},_0x37bedb(_0x5848de[_0x44527d(0x1ef)],_0x44527d(0x15e),_0x5b051f[_0x44527d(0x1c5)][_0x44527d(0x20f)]),_0x37bedb(_0x5848de['UniverLiveSharePlugin'],'pluginName',_0x23a3dc),_0x5848de[_0x44527d(0x1ef)]=_0x1d1eb0([_0x5b051f[_0x44527d(0x1ad)](_0x35345e[_0x44527d(0x19a)]),_0x4321c9(0x1,_0x5b051f['Inject'](_0x5b051f[_0x44527d(0x154)])),_0x4321c9(0x2,_0x5b051f[_0x44527d(0x1f6)])],_0x5848de['UniverLiveSharePlugin']),_0x5848de[_0x44527d(0x145)]=_0x22d785,_0x5848de[_0x44527d(0x183)]=_0x5f1dbb,_0x5848de[_0x44527d(0x139)]=_0x5093ed,Object[_0x44527d(0x180)](_0x5848de,Symbol[_0x44527d(0x19d)],{'value':_0x44527d(0x15d)});}));function _0x4944(){var _0x2f5979=['univerjs-icon\x20univerjs-icon-','SetZoomRatioOperation','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','prototype','forwardRef','children','_commandService','map','colorChannel1','UNIVER_SHEET','Injector','_handleNewChangeSets','next','substring','jsxs','UNIVER_LIVE_SHARE_PLUGIN','registerComponent','override','_stopFollowing','Module','type','propertyIsEnumerable','2KJTeMl','univer-mb-3\x20univer-w-full\x20univer-text-sm','SessionStatus','function','clsx','Subject','_univerInstanceService','forEach','end','_handleOffline','attrs','@univerjs/ui','UniverSheetsUi','getLiveShareCoordinator','getTypeOfUnitAdded$','IUniverInstanceService','_configService','replace','_reporters','onRendered','Inject','9531EifYsX','disposeWithMe','300808nUfJxo','BuiltInUIPart','offline','UniverDesign','from','default','pipe','PRESENTING','following','defineProperty','unitId','executeCommand','LiveShareService','@univerjs/design','rxjs','_unitID','string','touchDependencies','button','stopPresenting','You\x27re\x20presenting\x20the\x20document','LIVESHARE_FETCH_OPERATIONS','OFFLINE','UniverIcon','useDependency','delete','Button','_mountLiveShare','complete','div','You\x27are\x20offline.','@univerjs-pro/collaboration','extend','xlink:href','fill','UniverCollaborationClientPlugin','object','Start\x20following','toStringTag','Disposable','1295mFoDQe','@univerjs/sheets-ui','presenting','requireSession','CollaborationSessionService','none','getTypeOfUnitDisposed$','getOwnPropertySymbols','symbol','asObservable','init','includes','LIVESHARE_NEW_HOST','http://www.w3.org/2000/svg','DependentOn','has','You\x27re\x20not\x20following\x20the\x20presenter','16620qlPFsP','UniverProLiveShare','mask','status$','2695773ShNwkc','registerDependencies','tag','data','_handleTerminate','takeUntil','getCurrentTypeOfUnit$','1em','IUIPartsService','SetWorksheetActiveOperation','createElement','throttleTime','_handleOperation','37565jBzZEv','react/jsx-runtime','trim','values','UniverInstanceType','DesktopLiveShareController','getUnitId','_startFollowing','toString','RxDisposable','OPERATION','live-share-icon','assign','amd','get','react','_fetchOperations','Start','_commandDisposable','_collabSessionService','idle','_injector','_config','startFollowing','CommandType','_uiPartsService','_startPresenting','_startLiveShareCoordinator','0\x200\x2017\x2017','ICommandService','getOwnPropertyDescriptor','IDLE','operations','className','tryStartPresenting','registerSharedOperation','path','apply','InsertSheetMutation','BehaviorSubject','_entities','call','_stopPresenting','add','dispose','idSuffix','UniverLiveSharePlugin','toDisposable','ONLINE','length','sessionStatus$','SAME_OPERATION_SHARE_INTERVAL','dispose$','IConfigService','event$','_status$','params','displayName','parseProtocolChangeset','indexOf','univer-size-4','_beIdle','5844MxfIRV','live-share.config','@univerjs-pro/collaboration-client','getInitialStates','registerInitialStateReporter','unsubscribe','DisposableCollection','url(#$1','entries','LIVESHARE_OPERATION','_presenter','hasOwnProperty','UniverSheets','onCommandExecuted','concat','UniverProCollaboration','UNIVER_UNKNOWN','subscribe','not-following','currentColor','_status','React','Plugin','send','Stop\x20presenting','3112xdKceO','HEADER_MENU','createInstance','stringify','current','_handleNewHost','useRef','NEW_CHANGESETS','Dropdown','clear','760568QOjDOt','stopFollowing','LIVESHARE_TERMINATE','icon','getValue','memberID','Stop\x20following','NOT_FOLLOWING','UniverUi','@univerjs/sheets','Present\x20this\x20document','772600ARsKaz','onStarting','LiveShareIcon','_handleOnline','_collabSession','LiveShareController','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','presenter','FOLLOWING','then','shouldShareOperation','LiveShareStatus','@univerjs/core','Fragment','getMemberID','setConfig','UniverProCollaborationClient','_liveShareService','set','CollaborationEvent','defIds','_init','text','LiveShare','_sharedOperations','LiveShareCoordinator','20tjScJM','jsx'];_0x4944=function(){return _0x2f5979;};return _0x4944();}
1
+ function _0x49c5(_0x45a3b6,_0x3e54b9){var _0x4bf3c9=_0x4bf3();return _0x49c5=function(_0x49c56a,_0x3942ae){_0x49c56a=_0x49c56a-0xdc;var _0x4a7a0b=_0x4bf3c9[_0x49c56a];return _0x4a7a0b;},_0x49c5(_0x45a3b6,_0x3e54b9);}(function(_0x5602fe,_0x1798ba){var _0x4a745e=_0x49c5,_0x4bd177=_0x5602fe();while(!![]){try{var _0x3d7aa1=-parseInt(_0x4a745e(0x16a))/0x1*(-parseInt(_0x4a745e(0x1b7))/0x2)+-parseInt(_0x4a745e(0x143))/0x3+parseInt(_0x4a745e(0x1a6))/0x4+-parseInt(_0x4a745e(0x1af))/0x5+parseInt(_0x4a745e(0x10e))/0x6+-parseInt(_0x4a745e(0x169))/0x7*(parseInt(_0x4a745e(0x181))/0x8)+-parseInt(_0x4a745e(0x18c))/0x9;if(_0x3d7aa1===_0x1798ba)break;else _0x4bd177['push'](_0x4bd177['shift']());}catch(_0x549f96){_0x4bd177['push'](_0x4bd177['shift']());}}}(_0x4bf3,0xd1624),function(_0x578401,_0x4b097f){var _0x184fa3=_0x49c5;typeof exports==_0x184fa3(0x125)&&typeof module<'u'?_0x4b097f(exports,require(_0x184fa3(0x146)),require(_0x184fa3(0x1be)),require('@univerjs/sheets'),require(_0x184fa3(0x14b)),require(_0x184fa3(0x122)),require(_0x184fa3(0x193)),require(_0x184fa3(0x148)),require(_0x184fa3(0xde)),require(_0x184fa3(0x171)),require(_0x184fa3(0x170)),require(_0x184fa3(0x155))):typeof define==_0x184fa3(0x118)&&define[_0x184fa3(0x121)]?define([_0x184fa3(0x11f),_0x184fa3(0x146),_0x184fa3(0x1be),'@univerjs/sheets',_0x184fa3(0x14b),'@univerjs/ui','react/jsx-runtime',_0x184fa3(0x148),_0x184fa3(0xde),'@univerjs-pro/collaboration',_0x184fa3(0x170),_0x184fa3(0x155)],_0x4b097f):(_0x578401=typeof globalThis<'u'?globalThis:_0x578401||self,_0x4b097f(_0x578401[_0x184fa3(0x1c8)]={},_0x578401[_0x184fa3(0x15a)],_0x578401[_0x184fa3(0xf4)],_0x578401[_0x184fa3(0x142)],_0x578401[_0x184fa3(0x1b8)],_0x578401[_0x184fa3(0x15b)],_0x578401[_0x184fa3(0xff)],_0x578401['UniverDesign'],_0x578401[_0x184fa3(0xff)],_0x578401[_0x184fa3(0x1ae)],_0x578401[_0x184fa3(0x170)],_0x578401[_0x184fa3(0x170)][_0x184fa3(0x1d1)]));}(this,function(_0x4d0bf9,_0x31a4d5,_0x5b7315,_0x5062e6,_0x3161fc,_0xf9f633,_0x1fa38f,_0x4c7aec,_0x1f06fd,_0x111110,_0x345978,_0x42fe46){'use strict';var _0x3c140a=_0x49c5;var _0x5d0a4b=Object['defineProperty'],_0x1bf031=(_0x4f7e4c,_0xc0a3c6,_0x389333)=>_0xc0a3c6 in _0x4f7e4c?_0x5d0a4b(_0x4f7e4c,_0xc0a3c6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x389333}):_0x4f7e4c[_0xc0a3c6]=_0x389333,_0xd19089=(_0x3048b7,_0x359d12,_0x34d553)=>_0x1bf031(_0x3048b7,typeof _0x359d12!=_0x3c140a(0x12d)?_0x359d12+'':_0x359d12,_0x34d553);const _0x1f8533=_0x3c140a(0x1d0),_0xb1cc6a={};class _0x5510c9 extends _0x5b7315[_0x3c140a(0x16b)]{constructor(){var _0x552a31=_0x3c140a;super(...arguments),_0xd19089(this,'_sharedOperations',new Set()),_0xd19089(this,_0x552a31(0x10c),new Set());}[_0x3c140a(0x1c1)](_0x11be34){var _0x196923=_0x3c140a;return this['_sharedOperations']['add'](_0x11be34),_0x5b7315['toDisposable'](()=>this['_sharedOperations'][_0x196923(0x1d2)](_0x11be34));}[_0x3c140a(0x1cd)](_0x52da84){var _0x165677=_0x3c140a;return this['_reporters'][_0x165677(0x109)](_0x52da84),_0x5b7315[_0x165677(0x140)](()=>this[_0x165677(0x10c)][_0x165677(0x1d2)](_0x52da84));}[_0x3c140a(0x1c5)](_0x27ad27){var _0x35f8a2=_0x3c140a;return this[_0x35f8a2(0x108)]['has'](_0x27ad27);}['getInitialStates'](_0x3aa900){var _0x24ac3a=_0x3c140a;return Array['from'](this[_0x24ac3a(0x10c)])['map'](_0x206bfd=>_0x206bfd(_0x3aa900));}}var _0x262881=Object[_0x3c140a(0x18e)],_0xcc9ee9=(_0x204ee0,_0x1fe775,_0x22226a,_0x1f5d2c)=>{var _0x190017=_0x3c140a;for(var _0x201d08=_0x1f5d2c>0x1?void 0x0:_0x1f5d2c?_0x262881(_0x1fe775,_0x22226a):_0x1fe775,_0x50523c=_0x204ee0[_0x190017(0x129)]-0x1,_0x43b27b;_0x50523c>=0x0;_0x50523c--)(_0x43b27b=_0x204ee0[_0x50523c])&&(_0x201d08=_0x43b27b(_0x201d08)||_0x201d08);return _0x201d08;},_0x358a37=(_0x523344,_0x2a6097)=>(_0x3f83c2,_0x546451)=>_0x2a6097(_0x3f83c2,_0x546451,_0x523344);let _0x22ed5a=class extends _0x5b7315[_0x3c140a(0x16b)]{constructor(_0x4493d3){var _0x4de9b0=_0x3c140a;super(),this[_0x4de9b0(0x189)]=_0x4493d3,this[_0x4de9b0(0x1b4)]();}[_0x3c140a(0x1b4)](){var _0x342454=_0x3c140a;[_0x3161fc[_0x342454(0x195)]['id'],_0x3161fc[_0x342454(0x150)]['id'],_0x5062e6[_0x342454(0x131)]['id']][_0x342454(0xf9)](_0xbb809b=>{var _0x42f42f=_0x342454;this[_0x42f42f(0x14a)](this['_liveShareService']['registerSharedOperation'](_0xbb809b));});}};_0x22ed5a=_0xcc9ee9([_0x358a37(0x0,_0x5b7315[_0x3c140a(0xe4)](_0x5510c9))],_0x22ed5a);var _0x45812b=function(){var _0x453dfa=_0x3c140a;return _0x45812b=Object['assign']||function(_0x234088){var _0x26a944=_0x49c5;for(var _0x40c62f,_0x42bd0c=0x1,_0xe3b997=arguments['length'];_0x42bd0c<_0xe3b997;_0x42bd0c++){_0x40c62f=arguments[_0x42bd0c];for(var _0x5d2d38 in _0x40c62f)Object['prototype']['hasOwnProperty'][_0x26a944(0x12c)](_0x40c62f,_0x5d2d38)&&(_0x234088[_0x5d2d38]=_0x40c62f[_0x5d2d38]);}return _0x234088;},_0x45812b[_0x453dfa(0x1ce)](this,arguments);},_0xd9f73=function(_0x3a6f98,_0x5b7a04){var _0x200c52=_0x3c140a,_0x533e31={};for(var _0x31ac72 in _0x3a6f98)Object[_0x200c52(0x183)]['hasOwnProperty']['call'](_0x3a6f98,_0x31ac72)&&_0x5b7a04[_0x200c52(0x136)](_0x31ac72)<0x0&&(_0x533e31[_0x31ac72]=_0x3a6f98[_0x31ac72]);if(_0x3a6f98!=null&&typeof Object[_0x200c52(0x1bf)]==_0x200c52(0x118)){for(var _0x526e88=0x0,_0x31ac72=Object[_0x200c52(0x1bf)](_0x3a6f98);_0x526e88<_0x31ac72['length'];_0x526e88++)_0x5b7a04[_0x200c52(0x136)](_0x31ac72[_0x526e88])<0x0&&Object[_0x200c52(0x183)][_0x200c52(0x115)][_0x200c52(0x12c)](_0x3a6f98,_0x31ac72[_0x526e88])&&(_0x533e31[_0x31ac72[_0x526e88]]=_0x3a6f98[_0x31ac72[_0x526e88]]);}return _0x533e31;},_0xe41621=_0x1f06fd[_0x3c140a(0x106)](function(_0x5d7d75,_0x5955de){var _0x2b306a=_0x3c140a,_0x342965=_0x5d7d75[_0x2b306a(0xf1)],_0x287522=_0x5d7d75['id'],_0x164377=_0x5d7d75[_0x2b306a(0x1bd)],_0x720c0=_0x5d7d75[_0x2b306a(0x100)],_0xa8fea2=_0xd9f73(_0x5d7d75,[_0x2b306a(0xf1),'id',_0x2b306a(0x1bd),_0x2b306a(0x100)]),_0x4bedba=_0x2b306a(0x1ad)[_0x2b306a(0x176)](_0x287522,'\x20')[_0x2b306a(0x176)](_0x164377||'')['trim'](),_0x4d57d6=_0x1f06fd['useRef']('_'[_0x2b306a(0x176)](_0x239640()));return _0x2f78b8(_0x342965,''[_0x2b306a(0x176)](_0x287522),{'defIds':_0x342965[_0x2b306a(0x101)],'idSuffix':_0x4d57d6['current']},_0x45812b({'ref':_0x5955de,'className':_0x4bedba},_0xa8fea2),_0x720c0);});function _0x2f78b8(_0x1ded98,_0x269f65,_0x224d2e,_0x32d295,_0x179ae7){var _0x276b7b=_0x3c140a;return _0x1f06fd[_0x276b7b(0x198)](_0x1ded98[_0x276b7b(0x1b2)],_0x45812b(_0x45812b({'key':_0x269f65},_0x37f38e(_0x1ded98,_0x224d2e,_0x179ae7)),_0x32d295),(_0x4d9781(_0x1ded98,_0x224d2e)[_0x276b7b(0x167)]||[])['map'](function(_0x398aab,_0x51cdba){var _0x4f906a=_0x276b7b;return _0x2f78b8(_0x398aab,''[_0x4f906a(0x176)](_0x269f65,'-')[_0x4f906a(0x176)](_0x1ded98[_0x4f906a(0x1b2)],'-')['concat'](_0x51cdba),_0x224d2e,void 0x0,_0x179ae7);}));}function _0x37f38e(_0x582ed9,_0x284e61,_0x3331a9){var _0x2d2132=_0x3c140a,_0x2e6736=_0x45812b({},_0x582ed9['attrs']);_0x3331a9!=null&&_0x3331a9[_0x2d2132(0x1a0)]&&_0x2e6736[_0x2d2132(0x124)]==='colorChannel1'&&(_0x2e6736[_0x2d2132(0x124)]=_0x3331a9['colorChannel1']),_0x582ed9['tag']===_0x2d2132(0x107)&&_0x2e6736['id']&&(_0x2e6736['id']=_0x2e6736['id']+_0x284e61['idSuffix']),Object['entries'](_0x2e6736)['forEach'](function(_0x1884dc){var _0x275c3a=_0x2d2132,_0x121f9c=_0x1884dc[0x0],_0x359515=_0x1884dc[0x1];_0x121f9c===_0x275c3a(0x107)&&typeof _0x359515==_0x275c3a(0x11c)&&(_0x2e6736[_0x121f9c]=_0x359515[_0x275c3a(0x1ac)](/url\(#(.*)\)/,'url(#$1'[_0x275c3a(0x176)](_0x284e61[_0x275c3a(0x11d)],')')));});var _0x12af31=_0x284e61[_0x2d2132(0x101)];return!_0x12af31||_0x12af31['length']===0x0||(_0x582ed9[_0x2d2132(0x1b2)]===_0x2d2132(0x19a)&&_0x2e6736[_0x2d2132(0x175)]&&(_0x2e6736[_0x2d2132(0x175)]=_0x2e6736[_0x2d2132(0x175)]+_0x284e61[_0x2d2132(0x11d)]),Object['entries'](_0x2e6736)[_0x2d2132(0xf9)](function(_0x182782){var _0x40bc1b=_0x2d2132,_0x2c1b22=_0x182782[0x0],_0x103779=_0x182782[0x1];typeof _0x103779==_0x40bc1b(0x11c)&&(_0x2e6736[_0x2c1b22]=_0x103779[_0x40bc1b(0x1ac)](/url\(#(.*)\)/,_0x40bc1b(0xed)[_0x40bc1b(0x176)](_0x284e61[_0x40bc1b(0x11d)],')')));})),_0x2e6736;}function _0x4d9781(_0x4d2f9b,_0x4bb948){var _0x2606a9=_0x3c140a,_0x4e4795,_0xba5ac6=_0x4bb948[_0x2606a9(0x101)];return!_0xba5ac6||_0xba5ac6['length']===0x0?_0x4d2f9b:_0x4d2f9b['tag']===_0x2606a9(0x157)&&(!((_0x4e4795=_0x4d2f9b[_0x2606a9(0x167)])===null||_0x4e4795===void 0x0)&&_0x4e4795[_0x2606a9(0x129)])?_0x45812b(_0x45812b({},_0x4d2f9b),{'children':_0x4d2f9b[_0x2606a9(0x167)][_0x2606a9(0x17b)](function(_0x4e8ac0){var _0x45e80b=_0x2606a9;return typeof _0x4e8ac0[_0x45e80b(0x159)]['id']=='string'&&_0xba5ac6&&_0xba5ac6['includes'](_0x4e8ac0[_0x45e80b(0x159)]['id'])?_0x45812b(_0x45812b({},_0x4e8ac0),{'attrs':_0x45812b(_0x45812b({},_0x4e8ac0['attrs']),{'id':_0x4e8ac0[_0x45e80b(0x159)]['id']+_0x4bb948['idSuffix']})}):_0x4e8ac0;})}):_0x4d2f9b;}function _0x239640(){var _0xcb5ec0=_0x3c140a;return Math[_0xcb5ec0(0xe7)]()[_0xcb5ec0(0x116)](0x24)['substring'](0x2,0x8);}_0xe41621[_0x3c140a(0x1cf)]=_0x3c140a(0x19b);var _0x53b81d={'tag':_0x3c140a(0x192),'attrs':{'xmlns':_0x3c140a(0x1cb),'fill':_0x3c140a(0x173),'viewBox':'0\x200\x2017\x2017','width':_0x3c140a(0x17f),'height':_0x3c140a(0x17f)},'children':[{'tag':_0x3c140a(0x127),'attrs':{'fill':_0x3c140a(0x15f),'d':_0x3c140a(0x114)}},{'tag':_0x3c140a(0x127),'attrs':{'fill':_0x3c140a(0x15f),'d':_0x3c140a(0xfb),'fillRule':_0x3c140a(0xf8),'clipRule':_0x3c140a(0xf8)}}]},_0x2908f4=_0x1f06fd[_0x3c140a(0x106)](function(_0x2ad571,_0x57cf12){var _0x180ab4=_0x3c140a;return _0x1f06fd[_0x180ab4(0x198)](_0xe41621,Object[_0x180ab4(0x19f)]({},_0x2ad571,{'id':_0x180ab4(0x15e),'ref':_0x57cf12,'icon':_0x53b81d}));});_0x2908f4[_0x3c140a(0x1cf)]=_0x3c140a(0x179);var _0x26a48e=Object['getOwnPropertyDescriptor'],_0x2830d5=(_0x3910f0,_0x4268c8,_0x5a328e,_0x43f8ef)=>{for(var _0x2500b5=_0x43f8ef>0x1?void 0x0:_0x43f8ef?_0x26a48e(_0x4268c8,_0x5a328e):_0x4268c8,_0x4c3228=_0x3910f0['length']-0x1,_0x4350a5;_0x4c3228>=0x0;_0x4c3228--)(_0x4350a5=_0x3910f0[_0x4c3228])&&(_0x2500b5=_0x4350a5(_0x2500b5)||_0x2500b5);return _0x2500b5;},_0x2f5969=(_0x111e83,_0x757bff)=>(_0x1a6590,_0x568d28)=>_0x757bff(_0x1a6590,_0x568d28,_0x111e83);_0x4d0bf9['LiveShareController']=class extends _0x5b7315[_0x3c140a(0x186)]{constructor(_0x1a060a,_0x27ab42,_0x413509){var _0x4df598=_0x3c140a;super(),_0xd19089(this,'_entities',new Map()),(this[_0x4df598(0x18f)]=_0x1a060a,this[_0x4df598(0x161)]=_0x27ab42,this[_0x4df598(0x13e)]=_0x413509,this[_0x4df598(0x1b4)]());}async[_0x3c140a(0x10a)](_0x5a5b8f){var _0x427a8c=_0x3c140a;return this['_entities'][_0x427a8c(0x182)](_0x5a5b8f)||await this[_0x427a8c(0x141)](_0x5a5b8f),this[_0x427a8c(0x13b)][_0x427a8c(0x130)](_0x5a5b8f);}[_0x3c140a(0x1b4)](){var _0x6557be=_0x3c140a;this[_0x6557be(0x18f)][_0x6557be(0x194)](_0x5b7315[_0x6557be(0x1b1)][_0x6557be(0x177)])[_0x6557be(0xee)](_0x42fe46[_0x6557be(0x144)](this[_0x6557be(0x1bc)]))[_0x6557be(0x185)](async _0x440088=>{var _0x6b53a7=_0x6557be;const _0x9c1045=_0x440088['getUnitId']();this[_0x6b53a7(0x13b)]['has'](_0x9c1045)||this['_startLiveShareCoordinator'](_0x9c1045);}),this['_univerInstanceService'][_0x6557be(0x162)](_0x5b7315[_0x6557be(0x1b1)][_0x6557be(0x177)])[_0x6557be(0xee)](_0x42fe46[_0x6557be(0x144)](this[_0x6557be(0x1bc)]))[_0x6557be(0x185)](_0x3c14aa=>{var _0x2a8a0d=_0x6557be;const _0x5819da=_0x3c14aa[_0x2a8a0d(0xef)](),_0x154a49=this['_entities']['get'](_0x5819da);_0x154a49==null||_0x154a49['dispose']();});}async['_startLiveShareCoordinator'](_0x42b2a1){var _0x326390=_0x3c140a;const _0x7a8dc0=await this[_0x326390(0x13e)][_0x326390(0x168)](_0x42b2a1),_0x4a9f90=this[_0x326390(0x161)][_0x326390(0x10f)](_0x4d0bf9[_0x326390(0x11e)],_0x42b2a1,_0x7a8dc0);return _0x4a9f90[_0x326390(0x1a7)](),this[_0x326390(0x13b)][_0x326390(0x147)](_0x42b2a1,_0x4a9f90),_0x4a9f90;}},_0x4d0bf9[_0x3c140a(0x13f)]=_0x2830d5([_0x2f5969(0x0,_0x5b7315[_0x3c140a(0x153)]),_0x2f5969(0x1,_0x5b7315[_0x3c140a(0xe4)](_0x5b7315['Injector'])),_0x2f5969(0x2,_0x5b7315['Inject'](_0x31a4d5['CollaborationSessionService']))],_0x4d0bf9[_0x3c140a(0x13f)]);var _0x582d0d=(_0x4f9852=>(_0x4f9852[_0x3c140a(0x19d)]=_0x3c140a(0x1c7),_0x4f9852['IDLE']=_0x3c140a(0x14f),_0x4f9852[_0x3c140a(0xf6)]='following',_0x4f9852[_0x3c140a(0x164)]=_0x3c140a(0x19e),_0x4f9852['PRESENTING']='presenting',_0x4f9852))(_0x582d0d||{});const _0x2c3bc6=_0x3c140a(0x103),_0x49c66b=0xc8;_0x4d0bf9[_0x3c140a(0x11e)]=class extends _0x5b7315[_0x3c140a(0x186)]{constructor(_0x3d97e0,_0x146c17,_0x220a2d,_0x467f39,_0x531d9e){var _0xa150c2=_0x3c140a;super(),_0xd19089(this,_0xa150c2(0x1a1),new _0x345978[(_0xa150c2(0xeb))](_0xa150c2(0x14f))),_0xd19089(this,_0xa150c2(0x174),this[_0xa150c2(0x1a1)]['asObservable']()),_0xd19089(this,_0xa150c2(0x1b4),!0x1),_0xd19089(this,'_commandDisposable',null),_0xd19089(this,'_presenter',null),(this[_0xa150c2(0x187)]=_0x3d97e0,this['_collabSession']=_0x146c17,this[_0xa150c2(0x123)]=_0x220a2d,this[_0xa150c2(0x189)]=_0x467f39,this[_0xa150c2(0x18b)]=_0x531d9e);}get[_0x3c140a(0x18a)](){return this['_status$']['getValue']();}[_0x3c140a(0x10d)](){var _0x6dd131=_0x3c140a,_0x5e0af4;(_0x5e0af4=this[_0x6dd131(0xec)])==null||_0x5e0af4[_0x6dd131(0x10d)](),this[_0x6dd131(0x1a1)][_0x6dd131(0x1a5)](_0x6dd131(0x14f)),this['_status$'][_0x6dd131(0xe6)]();}['init'](){var _0x43105f=_0x3c140a;this[_0x43105f(0x1b4)]||(this[_0x43105f(0x1b4)]=!0x0,this['_collabSession'][_0x43105f(0x119)][_0x43105f(0xee)](_0x42fe46[_0x43105f(0x144)](this[_0x43105f(0x1bc)]))[_0x43105f(0x185)](_0xa69707=>{var _0x2022d1=_0x43105f;switch(_0xa69707){case _0x31a4d5['SessionStatus']['OFFLINE']:this[_0x2022d1(0xe9)]();break;case _0x31a4d5[_0x2022d1(0x126)][_0x2022d1(0x154)]:this[_0x2022d1(0x197)]();break;}}),this[_0x43105f(0xe0)][_0x43105f(0x117)][_0x43105f(0xee)](_0x42fe46[_0x43105f(0x144)](this[_0x43105f(0x1bc)]))['subscribe'](_0x494228=>{var _0x1b9a64=_0x43105f;const {eventID:_0x5c1b7b}=_0x494228;switch(_0x5c1b7b){case _0x111110[_0x1b9a64(0x156)][_0x1b9a64(0xf3)]:this[_0x1b9a64(0x139)](_0x494228);break;case _0x111110['CollaborationEvent'][_0x1b9a64(0x16c)]:this[_0x1b9a64(0x199)](_0x494228);break;case _0x111110[_0x1b9a64(0x156)][_0x1b9a64(0x134)]:this[_0x1b9a64(0x1c9)]();break;case _0x111110['CollaborationEvent'][_0x1b9a64(0x15d)]:this[_0x1b9a64(0xe2)](_0x494228);break;}}));}[_0x3c140a(0x132)](){var _0x294df3=_0x3c140a;this[_0x294df3(0xe0)][_0x294df3(0x152)]({'eventID':_0x111110[_0x294df3(0x156)][_0x294df3(0x12e)],'data':{'unitID':this[_0x294df3(0x187)],'userID':this['_collabSession']['getMemberID']()}},this[_0x294df3(0x187)]);}[_0x3c140a(0xf5)](){var _0xfda328=_0x3c140a;this[_0xfda328(0x18a)]===_0xfda328(0x19c)&&(this[_0xfda328(0x1a1)][_0xfda328(0x1a5)](_0xfda328(0x14f)),this['_collabSession'][_0xfda328(0x152)]({'eventID':_0x111110['CollaborationEvent'][_0xfda328(0x134)],'data':{'unitID':this[_0xfda328(0x187)]}},this[_0xfda328(0x187)]));}[_0x3c140a(0x180)](){var _0xae083f=_0x3c140a;this[_0xae083f(0x18a)]==='not-following'&&(this['_status$']['next'](_0xae083f(0x17c)),this[_0xae083f(0xfe)]());}[_0x3c140a(0x16d)](){var _0x2f1a6f=_0x3c140a;this['_status']===_0x2f1a6f(0x17c)&&this['_stopFollowing']();}[_0x3c140a(0x139)](_0x5a55a0){var _0x23715a=_0x3c140a;const {presenter:_0x4d37cc}=_0x5a55a0['data'],_0x170c6d=this[_0x23715a(0xe0)]['getMemberID']();this[_0x23715a(0x133)]=_0x4d37cc,_0x4d37cc===_0x170c6d?(this[_0x23715a(0x17a)](),this['_startPresenting']()):this[_0x23715a(0x18a)]!==_0x23715a(0x19e)&&(this[_0x23715a(0xe3)](),this['_startFollowing']());}[_0x3c140a(0x1c2)](){var _0x59474d=_0x3c140a;const _0x316ad2={'eventID':_0x111110[_0x59474d(0x156)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x59474d(0xe0)][_0x59474d(0x152)](_0x316ad2,this[_0x59474d(0x187)]);}[_0x3c140a(0x1c9)](){var _0x35b1ba=_0x3c140a;this['_presenter']=null,this['_status']!==_0x35b1ba(0x19c)&&this['_beIdle']();}[_0x3c140a(0xe2)](_0xfceef6){var _0x221703=_0x3c140a;if(this[_0x221703(0x18a)]===_0x221703(0x17c)&&this[_0x221703(0x133)]===_0xfceef6[_0x221703(0x137)][_0x221703(0x13c)]){const _0x2268ac=_0x111110[_0x221703(0xdc)](_0xfceef6['data'])[_0x221703(0x172)]['reverse']()[_0x221703(0x1a8)](_0x134266=>_0x134266['id']===_0x5062e6['InsertSheetMutation']['id']);if(_0x2268ac){const _0x1a8162=_0x2268ac[_0x221703(0x1b0)]['unitId'],_0x4ff4ca=_0x2268ac[_0x221703(0x1b0)][_0x221703(0xe1)]['id'];setTimeout(()=>{var _0x273b43=_0x221703;this[_0x273b43(0x18b)][_0x273b43(0x1c3)](_0x5062e6[_0x273b43(0x131)]['id'],{'unitId':_0x1a8162,'subUnitId':_0x4ff4ca},{'fromCollab':!0x0});});}}}[_0x3c140a(0x135)](){var _0x52e678=_0x3c140a;this[_0x52e678(0x1a1)][_0x52e678(0x1a5)](_0x52e678(0x19c));const _0x4e5606=new Map(),_0x135834=this[_0x52e678(0xec)]=new _0x5b7315[(_0x52e678(0x14c))]();_0x135834[_0x52e678(0x109)](_0x5b7315[_0x52e678(0x140)](()=>{var _0x501a63=_0x52e678;_0x4e5606[_0x501a63(0xf9)](_0x1605c7=>_0x1605c7[_0x501a63(0xe6)]()),_0x4e5606['clear']();})),_0x135834[_0x52e678(0x109)](this[_0x52e678(0x18b)][_0x52e678(0x111)](_0x4fbfb7=>{var _0x47daa5=_0x52e678,_0x29c797;if(_0x4fbfb7[_0x47daa5(0x112)]!==_0x5b7315[_0x47daa5(0x1ca)][_0x47daa5(0x1b3)]||!this[_0x47daa5(0x189)][_0x47daa5(0x1c5)](_0x4fbfb7['id']))return;const {id:_0x300603}=_0x4fbfb7;let _0x37e01c;_0x4e5606[_0x47daa5(0x182)](_0x300603)?_0x37e01c=_0x4e5606[_0x47daa5(0x130)](_0x300603):(_0x37e01c=new _0x345978['Subject'](),_0x4e5606[_0x47daa5(0x147)](_0x300603,_0x37e01c),_0x37e01c[_0x47daa5(0xee)](_0x42fe46['throttleTime']((_0x29c797=this[_0x47daa5(0x123)][_0x47daa5(0x11b)](_0x2c3bc6))!=null?_0x29c797:_0x49c66b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x47daa5(0x185)](_0x36384c=>{var _0x2f1eaa=_0x47daa5;this[_0x2f1eaa(0xe0)][_0x2f1eaa(0x152)]({'eventID':_0x111110[_0x2f1eaa(0x156)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2f1eaa(0x187)],'operations':{[_0x36384c['id']]:{'id':_0x36384c['id'],'params':JSON['stringify'](_0x36384c[_0x2f1eaa(0x1b0)])}}}},this[_0x2f1eaa(0x187)]);})),_0x37e01c[_0x47daa5(0x1a5)](_0x4fbfb7);})),this[_0x52e678(0x189)][_0x52e678(0x12f)](this[_0x52e678(0x187)])[_0x52e678(0xf9)](_0x195c4b=>this[_0x52e678(0xe0)]['send']({'eventID':_0x111110[_0x52e678(0x156)][_0x52e678(0x16c)],'data':{'unitID':this[_0x52e678(0x187)],'operations':{[_0x195c4b['id']]:{'id':_0x195c4b['id'],'params':JSON[_0x52e678(0xf7)](_0x195c4b[_0x52e678(0x1b0)])}}}},this[_0x52e678(0x187)]));}['_stopPresenting'](){var _0x29ff4f=_0x3c140a,_0x3c4148;this[_0x29ff4f(0x1a1)][_0x29ff4f(0x1a5)]('idle'),(_0x3c4148=this['_commandDisposable'])==null||_0x3c4148[_0x29ff4f(0x10d)](),this[_0x29ff4f(0xec)]=null;}['_startFollowing'](){var _0x162881=_0x3c140a,_0x18730a;(_0x18730a=this[_0x162881(0xec)])==null||_0x18730a[_0x162881(0x10d)](),this[_0x162881(0x1a1)]['next'](_0x162881(0x17c));}[_0x3c140a(0x190)](){var _0x1d393d=_0x3c140a,_0x5972ef;this[_0x1d393d(0x1a1)][_0x1d393d(0x1a5)](_0x1d393d(0x14f)),(_0x5972ef=this['_commandDisposable'])==null||_0x5972ef[_0x1d393d(0x10d)](),this['_commandDisposable']=null;}[_0x3c140a(0x17a)](){var _0x1b5807=_0x3c140a,_0x3ea680;this[_0x1b5807(0x1a1)]['next'](_0x1b5807(0x19e)),(_0x3ea680=this['_commandDisposable'])==null||_0x3ea680[_0x1b5807(0x10d)]();}['_handleOperation'](_0x4455ea){var _0x250277=_0x3c140a;if([_0x250277(0x19c),_0x250277(0x19e),'offline'][_0x250277(0x1b6)](this[_0x250277(0x18a)])||!_0x4455ea[_0x250277(0x137)]['presenter']||_0x4455ea[_0x250277(0x137)]['presenter']===this[_0x250277(0xe0)]['getMemberID']())return;this[_0x250277(0x18a)]==='idle'&&this[_0x250277(0xfe)]();const _0x3f149f=_0x4455ea[_0x250277(0x137)][_0x250277(0x151)];Object[_0x250277(0x17d)](_0x3f149f)[_0x250277(0xf9)](_0x406c3c=>{var _0x3017bb=_0x250277;this[_0x3017bb(0x18b)][_0x3017bb(0x1c3)](_0x406c3c['id'],_0x406c3c[_0x3017bb(0x1b0)]?JSON['parse'](_0x406c3c[_0x3017bb(0x1b0)]):null,{'fromCollab':!0x0});});}[_0x3c140a(0xe9)](){var _0x2f91b2=_0x3c140a,_0x4781a1;this[_0x2f91b2(0x1a1)][_0x2f91b2(0x1a5)](_0x2f91b2(0x1c7)),(_0x4781a1=this[_0x2f91b2(0xec)])==null||_0x4781a1['dispose']();}[_0x3c140a(0x197)](){var _0x2b3d3c=_0x3c140a;this['_status$'][_0x2b3d3c(0x1a5)](_0x2b3d3c(0x14f)),this[_0x2b3d3c(0x1c2)]();}},_0x4d0bf9[_0x3c140a(0x11e)]=_0x2830d5([_0x2f5969(0x2,_0x5b7315['IConfigService']),_0x2f5969(0x3,_0x5b7315[_0x3c140a(0xe4)](_0x5510c9)),_0x2f5969(0x4,_0x5b7315[_0x3c140a(0x1b5)])],_0x4d0bf9[_0x3c140a(0x11e)]);function _0x42cbbf(){var _0x5e99e9=_0x3c140a;const _0x141ffe=_0xf9f633[_0x5e99e9(0x196)](_0x4d0bf9['LiveShareController']),_0xa52d21=_0xf9f633[_0x5e99e9(0x196)](_0x5b7315[_0x5e99e9(0x153)]),_0x6e28d1=_0xf9f633[_0x5e99e9(0x14e)](()=>_0xa52d21[_0x5e99e9(0x1c0)](_0x5b7315['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x354927,_0x4e0b8a]=_0x1f06fd[_0x5e99e9(0x1cc)](null),[_0x129bc6,_0x21765a]=_0x1f06fd[_0x5e99e9(0x1cc)](_0x582d0d['IDLE']),_0x48bde7=_0x1f06fd[_0x5e99e9(0x166)](null);return _0x1f06fd[_0x5e99e9(0x1a2)](()=>(_0x6e28d1&&_0x141ffe['getLiveShareCoordinator'](_0x6e28d1[_0x5e99e9(0xef)]())[_0x5e99e9(0x128)](_0x538684=>{var _0x69edc6=_0x5e99e9;_0x4e0b8a(_0x538684),_0x48bde7[_0x69edc6(0x17e)]=_0x538684[_0x69edc6(0x174)][_0x69edc6(0x185)](_0x4666ff=>{_0x21765a(_0x4666ff);});}),()=>{var _0x295031=_0x5e99e9,_0x30d20c;(_0x30d20c=_0x48bde7[_0x295031(0x17e)])==null||_0x30d20c[_0x295031(0xf0)](),_0x48bde7[_0x295031(0x17e)]=null;}),[_0x6e28d1,_0x141ffe]),_0x354927?_0x1fa38f[_0x5e99e9(0x1bb)](_0x4c7aec[_0x5e99e9(0xe8)],{'align':_0x5e99e9(0x113),'disabled':_0x129bc6===_0x582d0d['OFFLINE'],'className':_0x5e99e9(0x12b),'overlay':_0x1fa38f[_0x5e99e9(0x1bb)](_0x5356ba,{'status':_0x129bc6,'coordinator':_0x354927}),'children':_0x1fa38f[_0x5e99e9(0x1bb)](_0x5e99e9(0xdd),{'className':_0x4c7aec[_0x5e99e9(0x110)](_0x5e99e9(0x1ba),{'univer-cursor-not-allowed':_0x129bc6===_0x582d0d['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x129bc6!==_0x582d0d['OFFLINE']}),'type':_0x5e99e9(0xdd),'children':_0x1fa38f[_0x5e99e9(0x1bb)](_0x2908f4,{'className':_0x5e99e9(0x145)})})}):null;}function _0x5356ba(_0x2e3da2){var _0x1df9fd=_0x3c140a;const {status:_0x225e6c,coordinator:_0x511c4d}=_0x2e3da2;switch(_0x225e6c){case _0x582d0d['IDLE']:return _0x1fa38f[_0x1df9fd(0x1bb)](_0x5b33ec,{'coordinator':_0x511c4d});case _0x582d0d[_0x1df9fd(0xf6)]:return _0x1fa38f[_0x1df9fd(0x1bb)](_0x41a2fa,{'coordinator':_0x511c4d});case _0x582d0d[_0x1df9fd(0x164)]:return _0x1fa38f[_0x1df9fd(0x1bb)](_0x4e989f,{'coordinator':_0x511c4d});case _0x582d0d['OFFLINE']:return _0x1fa38f[_0x1df9fd(0x1bb)](_0x3e1e7d,{});case _0x582d0d[_0x1df9fd(0x1a9)]:return _0x1fa38f[_0x1df9fd(0x1bb)](_0x59afdb,{'coordinator':_0x511c4d});default:return null;}}function _0x5b33ec(_0x5a7a13){var _0x485f0b=_0x3c140a;const {coordinator:_0x22adb}=_0x5a7a13;return _0x1fa38f['jsxs'](_0x1fa38f[_0x485f0b(0x1a3)],{'children':[_0x1fa38f[_0x485f0b(0x1bb)](_0x485f0b(0x10b),{'className':_0x485f0b(0xdf),'children':'Present\x20this\x20document'}),_0x1fa38f[_0x485f0b(0x1bb)](_0x4c7aec[_0x485f0b(0xea)],{'onClick':()=>_0x22adb[_0x485f0b(0x132)](),'children':'Start'})]});}function _0x41a2fa(_0x28e2ae){var _0x5ca2ed=_0x3c140a;const {coordinator:_0x43fc94}=_0x28e2ae;return _0x1fa38f[_0x5ca2ed(0x165)](_0x1fa38f['Fragment'],{'children':[_0x1fa38f[_0x5ca2ed(0x1bb)](_0x5ca2ed(0x10b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x1fa38f['jsx'](_0x4c7aec[_0x5ca2ed(0xea)],{'onClick':()=>_0x43fc94['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x4e989f(_0x405317){var _0x363d27=_0x3c140a;const {coordinator:_0x411a65}=_0x405317;return _0x1fa38f['jsxs'](_0x1fa38f[_0x363d27(0x1a3)],{'children':[_0x1fa38f['jsx'](_0x363d27(0x10b),{'className':_0x363d27(0xdf),'children':_0x363d27(0x158)}),_0x1fa38f['jsx'](_0x4c7aec[_0x363d27(0xea)],{'variant':_0x363d27(0x18d),'onClick':()=>_0x411a65['startFollowing'](),'children':_0x363d27(0x13d)})]});}function _0x59afdb(_0x53b23d){var _0x5ef793=_0x3c140a;const {coordinator:_0x1e6f76}=_0x53b23d;return _0x1fa38f[_0x5ef793(0x165)](_0x1fa38f[_0x5ef793(0x1a3)],{'children':[_0x1fa38f['jsx']('div',{'className':_0x5ef793(0xdf),'children':_0x5ef793(0x11a)}),_0x1fa38f[_0x5ef793(0x1bb)](_0x4c7aec[_0x5ef793(0xea)],{'variant':_0x5ef793(0x160),'onClick':()=>_0x1e6f76['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x3e1e7d(){var _0x1714a1=_0x3c140a;return _0x1fa38f[_0x1714a1(0x1bb)](_0x1fa38f[_0x1714a1(0x1a3)],{'children':'You\x27are\x20offline.'});}var _0x3afa03=Object['getOwnPropertyDescriptor'],_0x50107b=(_0x485c11,_0x3ae854,_0x46087c,_0x2f7274)=>{for(var _0x174e30=_0x2f7274>0x1?void 0x0:_0x2f7274?_0x3afa03(_0x3ae854,_0x46087c):_0x3ae854,_0x11fe65=_0x485c11['length']-0x1,_0x57fc81;_0x11fe65>=0x0;_0x11fe65--)(_0x57fc81=_0x485c11[_0x11fe65])&&(_0x174e30=_0x57fc81(_0x174e30)||_0x174e30);return _0x174e30;},_0x3fd6a0=(_0x4a35a5,_0x576117)=>(_0xc4143b,_0x13f255)=>_0x576117(_0xc4143b,_0x13f255,_0x4a35a5);_0x4d0bf9[_0x3c140a(0x1c4)]=class extends _0x5b7315['Disposable']{constructor(_0x2507bd,_0x1d0b9b){var _0x469381=_0x3c140a;super(),this[_0x469381(0x161)]=_0x2507bd,this[_0x469381(0x184)]=_0x1d0b9b,this[_0x469381(0x12a)]();}[_0x3c140a(0x12a)](){var _0x2bd17c=_0x3c140a;this[_0x2bd17c(0x14a)](this[_0x2bd17c(0x184)]['registerComponent'](_0xf9f633[_0x2bd17c(0x178)][_0x2bd17c(0x1a4)],()=>_0xf9f633[_0x2bd17c(0x16f)](_0x42cbbf,this[_0x2bd17c(0x161)])));}},_0x4d0bf9[_0x3c140a(0x1c4)]=_0x50107b([_0x3fd6a0(0x0,_0x5b7315[_0x3c140a(0xe4)](_0x5b7315[_0x3c140a(0x1aa)])),_0x3fd6a0(0x1,_0xf9f633['IUIPartsService'])],_0x4d0bf9[_0x3c140a(0x1c4)]);var _0x17a2b7=Object[_0x3c140a(0xfd)],_0x336f79=Object[_0x3c140a(0x18e)],_0x43e273=(_0x49cc5c,_0x1eed89,_0x2552a5)=>_0x1eed89 in _0x49cc5c?_0x17a2b7(_0x49cc5c,_0x1eed89,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2552a5}):_0x49cc5c[_0x1eed89]=_0x2552a5,_0x420cf3=(_0x291263,_0x47c08d,_0x6d2d22,_0x61b83f)=>{var _0x106b6a=_0x3c140a;for(var _0x242390=_0x61b83f>0x1?void 0x0:_0x61b83f?_0x336f79(_0x47c08d,_0x6d2d22):_0x47c08d,_0xf31848=_0x291263[_0x106b6a(0x129)]-0x1,_0xe9b0fc;_0xf31848>=0x0;_0xf31848--)(_0xe9b0fc=_0x291263[_0xf31848])&&(_0x242390=_0xe9b0fc(_0x242390)||_0x242390);return _0x242390;},_0x33f93a=(_0x368de8,_0x5b4265)=>(_0x52116f,_0x23f63b)=>_0x5b4265(_0x52116f,_0x23f63b,_0x368de8),_0x402b05=(_0x51d079,_0x24e84f,_0x48dbec)=>_0x43e273(_0x51d079,typeof _0x24e84f!=_0x3c140a(0x12d)?_0x24e84f+'':_0x24e84f,_0x48dbec);const _0xb53b50=_0x3c140a(0x1ab);_0x4d0bf9[_0x3c140a(0x1c6)]=class extends _0x5b7315[_0x3c140a(0x104)]{constructor(_0x40e6c2=_0xb1cc6a,_0x4c1711,_0x390482){var _0x941736=_0x3c140a;super(),this['_config']=_0x40e6c2,this['_injector']=_0x4c1711,this['_configService']=_0x390482;const {..._0x78648f}=_0x5b7315[_0x941736(0xfa)]({},_0xb1cc6a,this[_0x941736(0xfc)]);this[_0x941736(0x123)][_0x941736(0x188)](_0x1f8533,_0x78648f);}[_0x3c140a(0x120)](){var _0x2135f6=_0x3c140a;_0x5b7315[_0x2135f6(0x149)](this[_0x2135f6(0x161)],_0x5b7315['mergeOverrideWithDependencies']([[_0x5510c9],[_0x4d0bf9[_0x2135f6(0x13f)]],[_0x22ed5a],[_0x4d0bf9['DesktopLiveShareController']]],this[_0x2135f6(0xfc)][_0x2135f6(0x191)])),_0x5b7315[_0x2135f6(0x138)](this['_injector'],[[_0x22ed5a]]);}[_0x3c140a(0xf2)](){var _0x2db0b6=_0x3c140a;_0x5b7315[_0x2db0b6(0x138)](this[_0x2db0b6(0x161)],[[_0x4d0bf9[_0x2db0b6(0x1c4)]]]);}},_0x402b05(_0x4d0bf9[_0x3c140a(0x1c6)],_0x3c140a(0x112),_0x5b7315[_0x3c140a(0x1b1)][_0x3c140a(0x102)]),_0x402b05(_0x4d0bf9[_0x3c140a(0x1c6)],_0x3c140a(0x105),_0xb53b50),_0x4d0bf9[_0x3c140a(0x1c6)]=_0x420cf3([_0x5b7315[_0x3c140a(0x16e)](_0x31a4d5[_0x3c140a(0x13a)]),_0x33f93a(0x1,_0x5b7315[_0x3c140a(0xe4)](_0x5b7315['Injector'])),_0x33f93a(0x2,_0x5b7315[_0x3c140a(0x14d)])],_0x4d0bf9[_0x3c140a(0x1c6)]),_0x4d0bf9[_0x3c140a(0x15c)]=_0x42cbbf,_0x4d0bf9[_0x3c140a(0x1b9)]=_0x5510c9,_0x4d0bf9[_0x3c140a(0x163)]=_0x582d0d,Object['defineProperty'](_0x4d0bf9,Symbol[_0x3c140a(0xe5)],{'value':'Module'});}));function _0x4bf3(){var _0x1682da=['SAME_OPERATION_SHARE_INTERVAL','Plugin','pluginName','forwardRef','mask','_sharedOperations','add','getLiveShareCoordinator','div','_reporters','dispose','4163766SkkYdj','createInstance','clsx','onCommandExecuted','type','end','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','propertyIsEnumerable','toString','event$','function','sessionStatus$','You\x27re\x20presenting\x20the\x20document','getConfig','string','idSuffix','LiveShareCoordinator','exports','onStarting','amd','@univerjs/ui','_configService','fill','object','SessionStatus','path','then','length','_mountLiveShare','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','call','symbol','LIVESHARE_REQUEST_HOST','getInitialStates','get','SetWorksheetActiveOperation','tryStartPresenting','_presenter','LIVESHARE_TERMINATE','_startPresenting','indexOf','data','touchDependencies','_handleNewHost','UniverCollaborationClientPlugin','_entities','memberID','Start\x20following','_collabSessionService','LiveShareController','toDisposable','_startLiveShareCoordinator','UniverSheets','4076403sJNCdG','takeUntil','univer-size-4','@univerjs-pro/collaboration-client','set','@univerjs/design','registerDependencies','disposeWithMe','@univerjs/sheets-ui','DisposableCollection','IConfigService','useObservable','idle','SetScrollOperation','operations','send','IUniverInstanceService','ONLINE','rxjs/operators','CollaborationEvent','defs','You\x27re\x20not\x20following\x20the\x20presenter','attrs','UniverProCollaborationClient','UniverUi','LiveShare','NEW_CHANGESETS','live-share-icon','currentColor','default','_injector','getTypeOfUnitDisposed$','LiveShareStatus','NOT_FOLLOWING','jsxs','useRef','children','requireSession','70YDKESL','268178CFUlkB','Disposable','LIVESHARE_OPERATION','stopFollowing','DependentOn','connectInjector','rxjs','@univerjs-pro/collaboration','mutations','none','status$','xlink:href','concat','UNIVER_SHEET','BuiltInUIPart','LiveShareIcon','_stopFollowing','map','following','values','current','1em','startFollowing','21488UvLNbq','has','prototype','_uiPartsService','subscribe','RxDisposable','_unitID','setConfig','_liveShareService','_status','_commandService','926154VWGkmu','text','getOwnPropertyDescriptor','_univerInstanceService','_beIdle','override','svg','react/jsx-runtime','getTypeOfUnitAdded$','SetZoomRatioOperation','useDependency','_handleOnline','createElement','_handleOperation','use','UniverIcon','presenting','OFFLINE','not-following','assign','colorChannel1','_status$','useEffect','Fragment','HEADER_MENU','next','4163608LXkVgy','init','find','PRESENTING','Injector','UNIVER_LIVE_SHARE_PLUGIN','replace','univerjs-icon\x20univerjs-icon-','UniverProCollaboration','965970hHqyfs','params','UniverInstanceType','tag','OPERATION','_init','ICommandService','includes','6GTTRjB','UniverSheetsUi','LiveShareService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','jsx','dispose$','className','@univerjs/core','getOwnPropertySymbols','getCurrentTypeOfUnit$','registerSharedOperation','_fetchOperations','executeCommand','DesktopLiveShareController','shouldShareOperation','UniverLiveSharePlugin','offline','UniverProLiveShare','_handleTerminate','CommandType','http://www.w3.org/2000/svg','useState','registerInitialStateReporter','apply','displayName','live-share.config','operators','delete','parseProtocolChangeset','button','react','univer-mb-3\x20univer-w-full\x20univer-text-sm','_collabSession','sheet','_handleNewChangeSets','_stopPresenting','Inject','toStringTag','complete','random','Dropdown','_handleOffline','Button','BehaviorSubject','_commandDisposable','url(#$1','pipe','getUnitId','unsubscribe','icon','onRendered','LIVESHARE_NEW_HOST','UniverCore','stopPresenting','FOLLOWING','stringify','evenodd','forEach','merge','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_config','defineProperty','_startFollowing','React','extend','defIds','UNIVER_UNKNOWN'];_0x4bf3=function(){return _0x1682da;};return _0x4bf3();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.1-nightly.202506171607",
3
+ "version": "0.8.1-nightly.202506191607",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration": "0.8.1-nightly.202506171607",
51
- "@univerjs/core": "0.8.1-nightly.202506171607",
52
- "@univerjs/design": "0.8.1-nightly.202506171607",
53
- "@univerjs/sheets": "0.8.1-nightly.202506171607",
54
- "@univerjs-pro/collaboration-client": "0.8.1-nightly.202506171607",
55
- "@univerjs/ui": "0.8.1-nightly.202506171607",
56
- "@univerjs/sheets-ui": "0.8.1-nightly.202506171607"
50
+ "@univerjs-pro/collaboration": "0.8.1-nightly.202506191607",
51
+ "@univerjs-pro/collaboration-client": "0.8.1-nightly.202506191607",
52
+ "@univerjs/core": "0.8.1-nightly.202506191607",
53
+ "@univerjs/design": "0.8.1-nightly.202506191607",
54
+ "@univerjs/sheets": "0.8.1-nightly.202506191607",
55
+ "@univerjs/sheets-ui": "0.8.1-nightly.202506191607",
56
+ "@univerjs/ui": "0.8.1-nightly.202506191607"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.5",
@@ -63,8 +63,8 @@
63
63
  "typescript": "^5.8.3",
64
64
  "vite": "^6.3.5",
65
65
  "vitest": "^3.2.3",
66
- "@univerjs-infra/shared": "0.8.1",
67
- "@univerjs/protocol": "0.1.47-alpha.0"
66
+ "@univerjs/protocol": "0.1.47-alpha.0",
67
+ "@univerjs-infra/shared": "0.8.1"
68
68
  },
69
69
  "scripts": {
70
70
  "test": "vitest run",