@univerjs-pro/live-share 0.10.11-nightly.202510220308 → 0.10.12-nightly.202510221114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x465e4e=_0x8434;(function(_0x16e750,_0x18bc36){var _0x42cb74=_0x8434,_0x289bd3=_0x16e750();while(!![]){try{var _0x50a727=-parseInt(_0x42cb74(0x128))/0x1*(parseInt(_0x42cb74(0x189))/0x2)+-parseInt(_0x42cb74(0x172))/0x3*(parseInt(_0x42cb74(0x156))/0x4)+parseInt(_0x42cb74(0x1a9))/0x5+-parseInt(_0x42cb74(0x18d))/0x6*(parseInt(_0x42cb74(0x19f))/0x7)+parseInt(_0x42cb74(0x19b))/0x8+parseInt(_0x42cb74(0x15c))/0x9*(-parseInt(_0x42cb74(0x1ae))/0xa)+parseInt(_0x42cb74(0x1bc))/0xb;if(_0x50a727===_0x18bc36)break;else _0x289bd3['push'](_0x289bd3['shift']());}catch(_0x928319){_0x289bd3['push'](_0x289bd3['shift']());}}}(_0x4674,0x623ff));var U=Object[_0x465e4e(0x1cc)],F=(_0x38c42c,_0x4b6912,_0x44014e)=>_0x4b6912 in _0x38c42c?U(_0x38c42c,_0x4b6912,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44014e}):_0x38c42c[_0x4b6912]=_0x44014e,v=(_0x4d101d,_0x36f860,_0x5194c2)=>F(_0x4d101d,typeof _0x36f860!=_0x465e4e(0x164)?_0x36f860+'':_0x36f860,_0x5194c2);Object[_0x465e4e(0x1cc)](exports,Symbol[_0x465e4e(0x198)],{'value':_0x465e4e(0x14f)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x21c2fd=_0x465e4e;return u=Object[_0x21c2fd(0x16f)]||function(_0x2aaaaa){var _0x3c52ba=_0x21c2fd;for(var _0x50de6e,_0x579d39=0x1,_0x59a41d=arguments[_0x3c52ba(0x14b)];_0x579d39<_0x59a41d;_0x579d39++){_0x50de6e=arguments[_0x579d39];for(var _0x1bb783 in _0x50de6e)Object['prototype'][_0x3c52ba(0x129)]['call'](_0x50de6e,_0x1bb783)&&(_0x2aaaaa[_0x1bb783]=_0x50de6e[_0x1bb783]);}return _0x2aaaaa;},u[_0x21c2fd(0x15e)](this,arguments);},$=function(_0x3b8034,_0x23a5e3){var _0x1f8a46=_0x465e4e,_0xb9060c={};for(var _0x46dc87 in _0x3b8034)Object[_0x1f8a46(0x141)][_0x1f8a46(0x129)]['call'](_0x3b8034,_0x46dc87)&&_0x23a5e3[_0x1f8a46(0x10b)](_0x46dc87)<0x0&&(_0xb9060c[_0x46dc87]=_0x3b8034[_0x46dc87]);if(_0x3b8034!=null&&typeof Object[_0x1f8a46(0x116)]==_0x1f8a46(0x13a)){for(var _0x44b665=0x0,_0x46dc87=Object[_0x1f8a46(0x116)](_0x3b8034);_0x44b665<_0x46dc87['length'];_0x44b665++)_0x23a5e3[_0x1f8a46(0x10b)](_0x46dc87[_0x44b665])<0x0&&Object[_0x1f8a46(0x141)]['propertyIsEnumerable'][_0x1f8a46(0x161)](_0x3b8034,_0x46dc87[_0x44b665])&&(_0xb9060c[_0x46dc87[_0x44b665]]=_0x3b8034[_0x46dc87[_0x44b665]]);}return _0xb9060c;},j=f[_0x465e4e(0x1a6)](function(_0x2e680c,_0x1ffe26){var _0x461673=_0x465e4e,_0x15bc66=_0x2e680c[_0x461673(0x1b8)],_0x51ac51=_0x2e680c['id'],_0x58aeda=_0x2e680c[_0x461673(0x1be)],_0x49393a=_0x2e680c[_0x461673(0x186)],_0x171189=$(_0x2e680c,[_0x461673(0x1b8),'id','className','extend']),_0x165436=_0x461673(0x103)[_0x461673(0x1c8)](_0x51ac51,'\x20')[_0x461673(0x1c8)](_0x58aeda||'')[_0x461673(0x18e)](),_0x155b30=f[_0x461673(0x1b7)]('_'[_0x461673(0x1c8)](k()));return y(_0x15bc66,''[_0x461673(0x1c8)](_0x51ac51),{'defIds':_0x15bc66['defIds'],'idSuffix':_0x155b30['current']},u({'ref':_0x1ffe26,'className':_0x165436},_0x171189),_0x49393a);});function y(_0x45c6a0,_0x51d91d,_0x59b9fd,_0x20d8b0,_0x19452f){var _0x198ff1=_0x465e4e;return f[_0x198ff1(0x127)](_0x45c6a0[_0x198ff1(0x19e)],u(u({'key':_0x51d91d},H(_0x45c6a0,_0x59b9fd,_0x19452f)),_0x20d8b0),(V(_0x45c6a0,_0x59b9fd)[_0x198ff1(0x1ac)]||[])['map'](function(_0x4daf88,_0x44e034){var _0x33e811=_0x198ff1;return y(_0x4daf88,''[_0x33e811(0x1c8)](_0x51d91d,'-')[_0x33e811(0x1c8)](_0x45c6a0[_0x33e811(0x19e)],'-')[_0x33e811(0x1c8)](_0x44e034),_0x59b9fd,void 0x0,_0x19452f);}));}function H(_0x14e83a,_0x3c19f9,_0xbde839){var _0x488874=_0x465e4e,_0x1597f2=u({},_0x14e83a[_0x488874(0x17c)]);_0xbde839!=null&&_0xbde839[_0x488874(0x109)]&&_0x1597f2['fill']===_0x488874(0x109)&&(_0x1597f2[_0x488874(0x168)]=_0xbde839[_0x488874(0x109)]),_0x14e83a[_0x488874(0x19e)]===_0x488874(0x177)&&_0x1597f2['id']&&(_0x1597f2['id']=_0x1597f2['id']+_0x3c19f9[_0x488874(0x111)]),Object[_0x488874(0x12b)](_0x1597f2)['forEach'](function(_0x1e032e){var _0x54d856=_0x488874,_0x5684da=_0x1e032e[0x0],_0x4cf6ff=_0x1e032e[0x1];_0x5684da===_0x54d856(0x177)&&typeof _0x4cf6ff==_0x54d856(0x1d4)&&(_0x1597f2[_0x5684da]=_0x4cf6ff[_0x54d856(0x133)](/url\(#(.*)\)/,_0x54d856(0x1c2)[_0x54d856(0x1c8)](_0x3c19f9[_0x54d856(0x111)],')')));});var _0xa76465=_0x3c19f9[_0x488874(0x139)];return!_0xa76465||_0xa76465[_0x488874(0x14b)]===0x0||(_0x14e83a[_0x488874(0x19e)]==='use'&&_0x1597f2[_0x488874(0x126)]&&(_0x1597f2[_0x488874(0x126)]=_0x1597f2['xlink:href']+_0x3c19f9[_0x488874(0x111)]),Object[_0x488874(0x12b)](_0x1597f2)[_0x488874(0x13b)](function(_0xb9885f){var _0x3da45c=_0x488874,_0x26075b=_0xb9885f[0x0],_0xfd3780=_0xb9885f[0x1];typeof _0xfd3780==_0x3da45c(0x1d4)&&(_0x1597f2[_0x26075b]=_0xfd3780[_0x3da45c(0x133)](/url\(#(.*)\)/,_0x3da45c(0x1c2)[_0x3da45c(0x1c8)](_0x3c19f9[_0x3da45c(0x111)],')')));})),_0x1597f2;}function V(_0x58e383,_0x547eae){var _0x372088=_0x465e4e,_0x46d1ef,_0x7ecd7e=_0x547eae[_0x372088(0x139)];return!_0x7ecd7e||_0x7ecd7e[_0x372088(0x14b)]===0x0?_0x58e383:_0x58e383[_0x372088(0x19e)]===_0x372088(0x1b0)&&(!((_0x46d1ef=_0x58e383[_0x372088(0x1ac)])===null||_0x46d1ef===void 0x0)&&_0x46d1ef[_0x372088(0x14b)])?u(u({},_0x58e383),{'children':_0x58e383[_0x372088(0x1ac)][_0x372088(0x18a)](function(_0x1716fe){var _0xc5fb2d=_0x372088;return typeof _0x1716fe['attrs']['id']==_0xc5fb2d(0x1d4)&&_0x7ecd7e&&_0x7ecd7e[_0xc5fb2d(0x15a)](_0x1716fe[_0xc5fb2d(0x17c)]['id'])?u(u({},_0x1716fe),{'attrs':u(u({},_0x1716fe[_0xc5fb2d(0x17c)]),{'id':_0x1716fe['attrs']['id']+_0x547eae[_0xc5fb2d(0x111)]})}):_0x1716fe;})}):_0x58e383;}function k(){var _0x1b8909=_0x465e4e;return Math[_0x1b8909(0x1e2)]()['toString'](0x24)[_0x1b8909(0x181)](0x2,0x8);}j[_0x465e4e(0x117)]=_0x465e4e(0x16c);var M={'tag':'svg','attrs':{'xmlns':_0x465e4e(0x154),'fill':_0x465e4e(0x167),'viewBox':_0x465e4e(0x188),'width':'1em','height':_0x465e4e(0x1b2)},'children':[{'tag':_0x465e4e(0x10d),'attrs':{'fill':_0x465e4e(0x155),'d':_0x465e4e(0x1bf)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x465e4e(0x16b),'fillRule':_0x465e4e(0x1ab),'clipRule':_0x465e4e(0x1ab)}}]},P=f[_0x465e4e(0x1a6)](function(_0x523cc2,_0x460d9a){var _0x55911f=_0x465e4e;return f[_0x55911f(0x127)](j,Object[_0x55911f(0x16f)]({},_0x523cc2,{'id':_0x55911f(0x170),'ref':_0x460d9a,'icon':M}));});P[_0x465e4e(0x117)]=_0x465e4e(0x110);class O extends o[_0x465e4e(0x195)]{constructor(){var _0x51e625=_0x465e4e;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x51e625(0x104),new Set());}[_0x465e4e(0x12d)](_0x3bb2a3){var _0x1b9e26=_0x465e4e;return this[_0x1b9e26(0x1ba)]['add'](_0x3bb2a3),o[_0x1b9e26(0x197)](()=>this[_0x1b9e26(0x1ba)][_0x1b9e26(0x1de)](_0x3bb2a3));}[_0x465e4e(0x132)](_0x3ab56c){var _0x345db1=_0x465e4e;return this[_0x345db1(0x104)][_0x345db1(0x192)](_0x3ab56c),o[_0x345db1(0x197)](()=>this[_0x345db1(0x104)][_0x345db1(0x1de)](_0x3ab56c));}[_0x465e4e(0x1aa)](_0x1d7fbc){var _0x523465=_0x465e4e;return this['_sharedOperations'][_0x523465(0x1ad)](_0x1d7fbc);}['getInitialStates'](_0x2ae347){var _0x54f5c2=_0x465e4e;return Array[_0x54f5c2(0x144)](this[_0x54f5c2(0x104)])[_0x54f5c2(0x18a)](_0x18ac67=>_0x18ac67(_0x2ae347));}}var q=Object[_0x465e4e(0x174)],R=(_0x483ffa,_0x563d6d,_0x15f6ef,_0x28e07b)=>{for(var _0x2bc722=_0x28e07b>0x1?void 0x0:_0x28e07b?q(_0x563d6d,_0x15f6ef):_0x563d6d,_0x6334f0=_0x483ffa['length']-0x1,_0x120b83;_0x6334f0>=0x0;_0x6334f0--)(_0x120b83=_0x483ffa[_0x6334f0])&&(_0x2bc722=_0x120b83(_0x2bc722)||_0x2bc722);return _0x2bc722;},S=(_0x157f66,_0x2f3e35)=>(_0x1fa18f,_0x46f98f)=>_0x2f3e35(_0x1fa18f,_0x46f98f,_0x157f66);exports['LiveShareController']=class extends o[_0x465e4e(0x1d3)]{constructor(_0x2e7365,_0x2003c7,_0x3b713b){var _0x5a1246=_0x465e4e;super(),v(this,_0x5a1246(0x166),new Map()),(this[_0x5a1246(0x1e1)]=_0x2e7365,this[_0x5a1246(0x12c)]=_0x2003c7,this[_0x5a1246(0x11c)]=_0x3b713b,this[_0x5a1246(0x159)]());}async['getLiveShareCoordinator'](_0x4d3c12){var _0x4fb819=_0x465e4e;return this['_entities']['has'](_0x4d3c12)||await this[_0x4fb819(0x146)](_0x4d3c12),this[_0x4fb819(0x166)][_0x4fb819(0x15f)](_0x4d3c12);}['_init'](){var _0x2b6559=_0x465e4e;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x2b6559(0x13e)][_0x2b6559(0x1c3)])[_0x2b6559(0x1bd)](b[_0x2b6559(0x131)](this[_0x2b6559(0x1df)]))[_0x2b6559(0x17e)](async _0x29034b=>{var _0x493fd2=_0x2b6559;const _0x2e8452=_0x29034b[_0x493fd2(0x1e3)]();this[_0x493fd2(0x166)][_0x493fd2(0x1ad)](_0x2e8452)||this[_0x493fd2(0x146)](_0x2e8452);}),this[_0x2b6559(0x1e1)][_0x2b6559(0x157)](o[_0x2b6559(0x13e)][_0x2b6559(0x1c3)])[_0x2b6559(0x1bd)](b[_0x2b6559(0x131)](this['dispose$']))['subscribe'](_0x3d9c59=>{var _0x548569=_0x2b6559;const _0x5e6200=_0x3d9c59['getUnitId'](),_0x304735=this[_0x548569(0x166)]['get'](_0x5e6200);_0x304735==null||_0x304735['dispose']();});}async[_0x465e4e(0x146)](_0x3b66f8){var _0x5ab7ee=_0x465e4e;const _0x1c67be=await this['_collabSessionService']['requireSession'](_0x3b66f8),_0xea17e2=this['_injector'][_0x5ab7ee(0x17f)](exports[_0x5ab7ee(0x1da)],_0x3b66f8,_0x1c67be);return _0xea17e2[_0x5ab7ee(0x16e)](),this[_0x5ab7ee(0x166)][_0x5ab7ee(0x151)](_0x3b66f8,_0xea17e2),_0xea17e2;}},exports[_0x465e4e(0x191)]=R([S(0x0,o[_0x465e4e(0x114)]),S(0x1,o[_0x465e4e(0x148)](o['Injector'])),S(0x2,o[_0x465e4e(0x148)](m[_0x465e4e(0x12f)]))],exports[_0x465e4e(0x191)]);var h=(_0x47df36=>(_0x47df36[_0x465e4e(0x105)]='offline',_0x47df36[_0x465e4e(0x1c1)]='idle',_0x47df36[_0x465e4e(0x1d2)]=_0x465e4e(0x163),_0x47df36[_0x465e4e(0x185)]=_0x465e4e(0x1c5),_0x47df36[_0x465e4e(0x1c0)]=_0x465e4e(0x1a1),_0x47df36))(h||{});const W='SAME_OPERATION_SHARE_INTERVAL',G=0xc8;exports[_0x465e4e(0x1da)]=class extends o[_0x465e4e(0x1d3)]{constructor(_0xe4ab6e,_0x4939da,_0x38341c,_0x312d5f,_0x3e230a){var _0x16e7c4=_0x465e4e;super(),v(this,_0x16e7c4(0x187),new w[(_0x16e7c4(0x125))]('idle')),v(this,'status$',this[_0x16e7c4(0x187)]['asObservable']()),v(this,_0x16e7c4(0x159),!0x1),v(this,_0x16e7c4(0x1b1),null),v(this,_0x16e7c4(0x1dc),null),(this[_0x16e7c4(0x10c)]=_0xe4ab6e,this[_0x16e7c4(0x1c4)]=_0x4939da,this[_0x16e7c4(0x153)]=_0x38341c,this[_0x16e7c4(0x179)]=_0x312d5f,this[_0x16e7c4(0x1a8)]=_0x3e230a);}get[_0x465e4e(0x1d9)](){var _0x4c453f=_0x465e4e;return this[_0x4c453f(0x187)]['getValue']();}['dispose'](){var _0x3ae027=_0x465e4e,_0x2828b7;(_0x2828b7=this[_0x3ae027(0x1b1)])==null||_0x2828b7[_0x3ae027(0x137)](),this[_0x3ae027(0x187)][_0x3ae027(0x1c7)](_0x3ae027(0x119)),this[_0x3ae027(0x187)][_0x3ae027(0x18f)]();}[_0x465e4e(0x16e)](){var _0x24a968=_0x465e4e;this[_0x24a968(0x159)]||(this[_0x24a968(0x159)]=!0x0,this['_collabSession'][_0x24a968(0x15d)]['pipe'](b[_0x24a968(0x131)](this[_0x24a968(0x1df)]))[_0x24a968(0x17e)](_0x11b522=>{var _0x48b8fb=_0x24a968;switch(_0x11b522){case m['SessionStatus'][_0x48b8fb(0x105)]:this['_handleOffline']();break;case m['SessionStatus'][_0x48b8fb(0x199)]:this['_handleOnline']();break;}}),this[_0x24a968(0x1c4)][_0x24a968(0x1d7)]['pipe'](b[_0x24a968(0x131)](this[_0x24a968(0x1df)]))[_0x24a968(0x17e)](_0x5abf62=>{var _0x1e50c2=_0x24a968;const {eventID:_0x482ebe}=_0x5abf62;switch(_0x482ebe){case _['CollaborationEvent'][_0x1e50c2(0x13d)]:this[_0x1e50c2(0x12a)](_0x5abf62);break;case _[_0x1e50c2(0x147)]['LIVESHARE_OPERATION']:this[_0x1e50c2(0x13f)](_0x5abf62);break;case _[_0x1e50c2(0x147)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _[_0x1e50c2(0x147)][_0x1e50c2(0x1d1)]:this[_0x1e50c2(0x115)](_0x5abf62);break;}}));}[_0x465e4e(0x106)](){var _0x242b6a=_0x465e4e;this[_0x242b6a(0x1c4)]['send']({'eventID':_[_0x242b6a(0x147)][_0x242b6a(0x16a)],'data':{'unitID':this[_0x242b6a(0x10c)],'userID':this[_0x242b6a(0x1c4)][_0x242b6a(0x184)]()}},this[_0x242b6a(0x10c)]);}[_0x465e4e(0x145)](){var _0x3406bc=_0x465e4e;this[_0x3406bc(0x1d9)]===_0x3406bc(0x1a1)&&(this[_0x3406bc(0x187)][_0x3406bc(0x1c7)](_0x3406bc(0x119)),this[_0x3406bc(0x1c4)][_0x3406bc(0x175)]({'eventID':_['CollaborationEvent'][_0x3406bc(0x162)],'data':{'unitID':this[_0x3406bc(0x10c)]}},this[_0x3406bc(0x10c)]));}['startFollowing'](){var _0x57a46e=_0x465e4e;this['_status']==='not-following'&&(this[_0x57a46e(0x187)]['next'](_0x57a46e(0x163)),this[_0x57a46e(0x1b6)]());}[_0x465e4e(0x160)](){var _0x3b42e2=_0x465e4e;this[_0x3b42e2(0x1d9)]===_0x3b42e2(0x163)&&this[_0x3b42e2(0x135)]();}[_0x465e4e(0x12a)](_0x1d7869){var _0x125136=_0x465e4e;const {presenter:_0x43e7e7}=_0x1d7869['data'],_0x5056f9=this[_0x125136(0x1c4)]['getMemberID']();this[_0x125136(0x1dc)]=_0x43e7e7,_0x43e7e7===_0x5056f9?(this[_0x125136(0x135)](),this[_0x125136(0x11f)]()):this['_status']!==_0x125136(0x1c5)&&(this[_0x125136(0x130)](),this[_0x125136(0x1b6)]());}[_0x465e4e(0x1a4)](){var _0x3aaaac=_0x465e4e;const _0x314fbf={'eventID':_[_0x3aaaac(0x147)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession']['send'](_0x314fbf,this['_unitID']);}['_handleTerminate'](){var _0x172d92=_0x465e4e;this[_0x172d92(0x1dc)]=null,this[_0x172d92(0x1d9)]!==_0x172d92(0x1a1)&&this[_0x172d92(0x171)]();}[_0x465e4e(0x115)](_0x5f5cce){var _0x458def=_0x465e4e;if(this[_0x458def(0x1d9)]===_0x458def(0x163)&&this['_presenter']===_0x5f5cce[_0x458def(0x17d)][_0x458def(0x1af)]){const _0x3a1533=_[_0x458def(0x1a5)](_0x5f5cce['data'])[_0x458def(0x183)][_0x458def(0x1d6)]()['find'](_0x513152=>_0x513152['id']===C[_0x458def(0x10a)]['id']);if(_0x3a1533){const _0x55b187=_0x3a1533[_0x458def(0x1d5)][_0x458def(0x1c6)],_0x419099=_0x3a1533[_0x458def(0x1d5)]['sheet']['id'];setTimeout(()=>{var _0x187084=_0x458def;this[_0x187084(0x1a8)][_0x187084(0x140)](C[_0x187084(0x102)]['id'],{'unitId':_0x55b187,'subUnitId':_0x419099},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x265ccc=_0x465e4e;this[_0x265ccc(0x187)][_0x265ccc(0x1c7)](_0x265ccc(0x1a1));const _0x510ed9=new Map(),_0x5d011f=this['_commandDisposable']=new o[(_0x265ccc(0x10e))]();_0x5d011f[_0x265ccc(0x192)](o[_0x265ccc(0x197)](()=>{var _0x2c0893=_0x265ccc;_0x510ed9[_0x2c0893(0x13b)](_0x4d2d41=>_0x4d2d41[_0x2c0893(0x18f)]()),_0x510ed9[_0x2c0893(0x150)]();})),_0x5d011f[_0x265ccc(0x192)](this[_0x265ccc(0x1a8)][_0x265ccc(0x149)](_0x4e8986=>{var _0x2de639=_0x265ccc,_0x3f8ec1;if(_0x4e8986['type']!==o['CommandType'][_0x2de639(0x112)]||!this[_0x2de639(0x179)][_0x2de639(0x1aa)](_0x4e8986['id']))return;const {id:_0x3b6140}=_0x4e8986;let _0x3ee833;_0x510ed9[_0x2de639(0x1ad)](_0x3b6140)?_0x3ee833=_0x510ed9[_0x2de639(0x15f)](_0x3b6140):(_0x3ee833=new w[(_0x2de639(0x143))](),_0x510ed9['set'](_0x3b6140,_0x3ee833),_0x3ee833[_0x2de639(0x1bd)](b[_0x2de639(0x152)]((_0x3f8ec1=this[_0x2de639(0x153)]['getConfig'](W))!=null?_0x3f8ec1:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2de639(0x17e)](_0x326265=>{var _0x1508b7=_0x2de639;this['_collabSession'][_0x1508b7(0x175)]({'eventID':_[_0x1508b7(0x147)][_0x1508b7(0x11a)],'data':{'unitID':this[_0x1508b7(0x10c)],'operations':{[_0x326265['id']]:{'id':_0x326265['id'],'params':JSON[_0x1508b7(0x15b)](_0x326265[_0x1508b7(0x1d5)])}}}},this[_0x1508b7(0x10c)]);})),_0x3ee833[_0x2de639(0x1c7)](_0x4e8986);})),this['_liveShareService'][_0x265ccc(0x11d)](this[_0x265ccc(0x10c)])[_0x265ccc(0x13b)](_0x51d5c2=>this['_collabSession'][_0x265ccc(0x175)]({'eventID':_[_0x265ccc(0x147)][_0x265ccc(0x11a)],'data':{'unitID':this['_unitID'],'operations':{[_0x51d5c2['id']]:{'id':_0x51d5c2['id'],'params':JSON[_0x265ccc(0x15b)](_0x51d5c2['params'])}}}},this[_0x265ccc(0x10c)]));}[_0x465e4e(0x130)](){var _0x4d9f43=_0x465e4e,_0xb2c96;this[_0x4d9f43(0x187)]['next'](_0x4d9f43(0x119)),(_0xb2c96=this[_0x4d9f43(0x1b1)])==null||_0xb2c96['dispose'](),this[_0x4d9f43(0x1b1)]=null;}[_0x465e4e(0x1b6)](){var _0x354abc=_0x465e4e,_0x49e992;(_0x49e992=this[_0x354abc(0x1b1)])==null||_0x49e992[_0x354abc(0x137)](),this[_0x354abc(0x187)][_0x354abc(0x1c7)](_0x354abc(0x163));}[_0x465e4e(0x171)](){var _0x32b78f=_0x465e4e,_0x220f66;this['_status$']['next'](_0x32b78f(0x119)),(_0x220f66=this[_0x32b78f(0x1b1)])==null||_0x220f66[_0x32b78f(0x137)](),this[_0x32b78f(0x1b1)]=null;}[_0x465e4e(0x135)](){var _0x2eab42=_0x465e4e,_0x6179d3;this[_0x2eab42(0x187)]['next'](_0x2eab42(0x1c5)),(_0x6179d3=this[_0x2eab42(0x1b1)])==null||_0x6179d3[_0x2eab42(0x137)]();}['_handleOperation'](_0x43df44){var _0x29b46c=_0x465e4e;if(['presenting','not-following',_0x29b46c(0x19d)]['includes'](this[_0x29b46c(0x1d9)])||!_0x43df44['data']['presenter']||_0x43df44[_0x29b46c(0x17d)]['presenter']===this['_collabSession'][_0x29b46c(0x184)]())return;this[_0x29b46c(0x1d9)]===_0x29b46c(0x119)&&this[_0x29b46c(0x1b6)]();const _0x59d293=_0x43df44['data']['operations'];Object['values'](_0x59d293)[_0x29b46c(0x13b)](_0x2a5755=>{var _0x4fe0cb=_0x29b46c;this['_commandService'][_0x4fe0cb(0x140)](_0x2a5755['id'],_0x2a5755[_0x4fe0cb(0x1d5)]?JSON[_0x4fe0cb(0x1a0)](_0x2a5755[_0x4fe0cb(0x1d5)]):null,{'fromCollab':!0x0});});}[_0x465e4e(0x17a)](){var _0x31a372=_0x465e4e,_0x463a39;this[_0x31a372(0x187)][_0x31a372(0x1c7)](_0x31a372(0x19d)),(_0x463a39=this[_0x31a372(0x1b1)])==null||_0x463a39[_0x31a372(0x137)]();}['_handleOnline'](){var _0x58f643=_0x465e4e;this[_0x58f643(0x187)]['next'](_0x58f643(0x119)),this[_0x58f643(0x1a4)]();}},exports[_0x465e4e(0x1da)]=R([S(0x2,o[_0x465e4e(0x173)]),S(0x3,o[_0x465e4e(0x148)](O)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x3baec0=_0x465e4e;const _0x15fcb8=p['useDependency'](exports[_0x3baec0(0x191)]),_0xaf337d=p[_0x3baec0(0x193)](o[_0x3baec0(0x114)]),_0x46649c=p[_0x3baec0(0x1a7)](()=>_0xaf337d[_0x3baec0(0x190)](o[_0x3baec0(0x13e)][_0x3baec0(0x1c3)]),void 0x0,!0x1,[]),[_0x2a26e7,_0x42225e]=f[_0x3baec0(0x14a)](null),[_0x35a39c,_0x4ac09f]=f[_0x3baec0(0x14a)](h[_0x3baec0(0x1c1)]),_0x3a84e4=f[_0x3baec0(0x1b7)](null);return f[_0x3baec0(0x165)](()=>(_0x46649c&&_0x15fcb8[_0x3baec0(0x18b)](_0x46649c[_0x3baec0(0x1e3)]())['then'](_0x5e0dce=>{var _0x40406a=_0x3baec0;_0x42225e(_0x5e0dce),_0x3a84e4[_0x40406a(0x11e)]=_0x5e0dce[_0x40406a(0x1c9)][_0x40406a(0x17e)](_0x2784bc=>{_0x4ac09f(_0x2784bc);});}),()=>{var _0x4dd103=_0x3baec0,_0x1650d0;(_0x1650d0=_0x3a84e4[_0x4dd103(0x11e)])==null||_0x1650d0[_0x4dd103(0x1cb)](),_0x3a84e4[_0x4dd103(0x11e)]=null;}),[_0x46649c,_0x15fcb8]),_0x2a26e7?l['jsx'](g[_0x3baec0(0x134)],{'align':_0x3baec0(0x1b3),'disabled':_0x35a39c===h[_0x3baec0(0x105)],'className':_0x3baec0(0x118),'overlay':l[_0x3baec0(0x14e)](B,{'status':_0x35a39c,'coordinator':_0x2a26e7}),'children':l[_0x3baec0(0x14e)](_0x3baec0(0x1dd),{'className':g[_0x3baec0(0x14d)](_0x3baec0(0x1b9),{'univer-cursor-not-allowed':_0x35a39c===h[_0x3baec0(0x105)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x35a39c!==h['OFFLINE']}),'type':_0x3baec0(0x1dd),'children':l['jsx'](P,{'className':_0x3baec0(0x1b5)})})}):null;}function _0x8434(_0x5ed61b,_0x21c5a4){var _0x4674d2=_0x4674();return _0x8434=function(_0x84349d,_0x56eb2c){_0x84349d=_0x84349d-0x102;var _0x106519=_0x4674d2[_0x84349d];return _0x106519;},_0x8434(_0x5ed61b,_0x21c5a4);}function B(_0x13597e){var _0x39991e=_0x465e4e;const {status:_0x5220f3,coordinator:_0x586445}=_0x13597e;switch(_0x5220f3){case h['IDLE']:return l['jsx'](Y,{'coordinator':_0x586445});case h[_0x39991e(0x1d2)]:return l[_0x39991e(0x14e)](Z,{'coordinator':_0x586445});case h['NOT_FOLLOWING']:return l[_0x39991e(0x14e)](J,{'coordinator':_0x586445});case h[_0x39991e(0x105)]:return l[_0x39991e(0x14e)](z,{});case h[_0x39991e(0x1c0)]:return l[_0x39991e(0x14e)](K,{'coordinator':_0x586445});default:return null;}}function Y(_0x50471a){var _0x2ba142=_0x465e4e;const {coordinator:_0x2d8136}=_0x50471a;return l[_0x2ba142(0x180)](l[_0x2ba142(0x123)],{'children':[l[_0x2ba142(0x14e)]('div',{'className':_0x2ba142(0x18c),'children':_0x2ba142(0x12e)}),l['jsx'](g[_0x2ba142(0x142)],{'onClick':()=>_0x2d8136[_0x2ba142(0x106)](),'children':'Start'})]});}function Z(_0x8e47ff){var _0x1cd4fd=_0x465e4e;const {coordinator:_0x5daf29}=_0x8e47ff;return l[_0x1cd4fd(0x180)](l[_0x1cd4fd(0x123)],{'children':[l[_0x1cd4fd(0x14e)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g['Button'],{'onClick':()=>_0x5daf29[_0x1cd4fd(0x160)](),'children':_0x1cd4fd(0x176)})]});}function J(_0x5a3c5e){var _0x3734bf=_0x465e4e;const {coordinator:_0x445586}=_0x5a3c5e;return l['jsxs'](l[_0x3734bf(0x123)],{'children':[l[_0x3734bf(0x14e)](_0x3734bf(0x182),{'className':_0x3734bf(0x18c),'children':_0x3734bf(0x136)}),l[_0x3734bf(0x14e)](g[_0x3734bf(0x142)],{'variant':_0x3734bf(0x1e0),'onClick':()=>_0x445586[_0x3734bf(0x196)](),'children':_0x3734bf(0x19c)})]});}function K(_0x1d7112){var _0x372a85=_0x465e4e;const {coordinator:_0x2666f1}=_0x1d7112;return l[_0x372a85(0x180)](l['Fragment'],{'children':[l[_0x372a85(0x14e)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x372a85(0x124)}),l[_0x372a85(0x14e)](g[_0x372a85(0x142)],{'variant':_0x372a85(0x1a2),'onClick':()=>_0x2666f1[_0x372a85(0x145)](),'children':'Stop\x20presenting'})]});}function z(){var _0x58cd1c=_0x465e4e;return l[_0x58cd1c(0x14e)](l[_0x58cd1c(0x123)],{'children':_0x58cd1c(0x1a3)});}var Q=Object[_0x465e4e(0x174)],X=(_0x1ddeac,_0x43657f,_0x1aa765,_0x47206d)=>{var _0x297be8=_0x465e4e;for(var _0x5573e6=_0x47206d>0x1?void 0x0:_0x47206d?Q(_0x43657f,_0x1aa765):_0x43657f,_0x416827=_0x1ddeac[_0x297be8(0x14b)]-0x1,_0x568a7b;_0x416827>=0x0;_0x416827--)(_0x568a7b=_0x1ddeac[_0x416827])&&(_0x5573e6=_0x568a7b(_0x5573e6)||_0x5573e6);return _0x5573e6;},x=(_0x4079b1,_0x51a552)=>(_0x5ed7e1,_0x2b0422)=>_0x51a552(_0x5ed7e1,_0x2b0422,_0x4079b1);exports[_0x465e4e(0x1ce)]=class extends o[_0x465e4e(0x195)]{constructor(_0x4730f8,_0x1c9615){var _0xbfb08b=_0x465e4e;super(),this['_injector']=_0x4730f8,this[_0xbfb08b(0x1d0)]=_0x1c9615,this[_0xbfb08b(0x158)]();}[_0x465e4e(0x158)](){var _0x772c7d=_0x465e4e;this[_0x772c7d(0x1cd)](this[_0x772c7d(0x1d0)][_0x772c7d(0x1db)](p[_0x772c7d(0x1b4)]['HEADER_MENU'],()=>p[_0x772c7d(0x107)](A,this[_0x772c7d(0x12c)])));}},exports[_0x465e4e(0x1ce)]=X([x(0x0,o[_0x465e4e(0x148)](o[_0x465e4e(0x121)])),x(0x1,p[_0x465e4e(0x122)])],exports['DesktopLiveShareController']);const ee='live-share.config',L={};var te=Object['getOwnPropertyDescriptor'],ie=(_0x5cc168,_0x423dcb,_0x551138,_0x125b9f)=>{var _0x172bf3=_0x465e4e;for(var _0x366f70=_0x125b9f>0x1?void 0x0:_0x125b9f?te(_0x423dcb,_0x551138):_0x423dcb,_0x381e49=_0x5cc168[_0x172bf3(0x14b)]-0x1,_0x558e1f;_0x381e49>=0x0;_0x381e49--)(_0x558e1f=_0x5cc168[_0x381e49])&&(_0x366f70=_0x558e1f(_0x366f70)||_0x366f70);return _0x366f70;},ne=(_0x38e1fb,_0x1e49d0)=>(_0x51f44c,_0x26eb18)=>_0x1e49d0(_0x51f44c,_0x26eb18,_0x38e1fb);let E=class extends o[_0x465e4e(0x195)]{constructor(_0x587e8f){var _0x45202c=_0x465e4e;super(),this[_0x45202c(0x179)]=_0x587e8f,this[_0x45202c(0x159)]();}[_0x465e4e(0x159)](){var _0x137ee3=_0x465e4e;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x137ee3(0x13b)](_0x24c14d=>{var _0x116e2f=_0x137ee3;this[_0x116e2f(0x1cd)](this['_liveShareService'][_0x116e2f(0x12d)](_0x24c14d));});}};function _0x4674(){var _0xb2d7c8=['override','IUniverInstanceService','_handleNewChangeSets','getOwnPropertySymbols','displayName','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','idle','LIVESHARE_OPERATION','UniverLiveSharePlugin','_collabSessionService','getInitialStates','current','_startPresenting','onRendered','Injector','IUIPartsService','Fragment','You\x27re\x20presenting\x20the\x20document','BehaviorSubject','xlink:href','createElement','1epErCm','hasOwnProperty','_handleNewHost','entries','_injector','registerSharedOperation','Present\x20this\x20document','CollaborationSessionService','_stopPresenting','takeUntil','registerInitialStateReporter','replace','Dropdown','_stopFollowing','You\x27re\x20not\x20following\x20the\x20presenter','dispose','touchDependencies','defIds','function','forEach','UniverCollaborationClientPlugin','LIVESHARE_NEW_HOST','UniverInstanceType','_handleOperation','executeCommand','prototype','Button','Subject','from','stopPresenting','_startLiveShareCoordinator','CollaborationEvent','Inject','onCommandExecuted','useState','length','merge','clsx','jsx','Module','clear','set','throttleTime','_configService','http://www.w3.org/2000/svg','currentColor','1839724UTgdYq','getTypeOfUnitDisposed$','_mountLiveShare','_init','includes','stringify','74007KxcUct','sessionStatus$','apply','get','stopFollowing','call','LIVESHARE_TERMINATE','following','symbol','useEffect','_entities','none','fill','LiveShareStatus','LIVESHARE_REQUEST_HOST','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','UniverIcon','UNIVER_UNKNOWN','init','assign','live-share-icon','_beIdle','3xFCRhZ','IConfigService','getOwnPropertyDescriptor','send','Stop\x20following','mask','setConfig','_liveShareService','_handleOffline','_config','attrs','data','subscribe','createInstance','jsxs','substring','div','mutations','getMemberID','NOT_FOLLOWING','extend','_status$','0\x200\x2017\x2017','1293130eWpfRV','map','getLiveShareCoordinator','univer-mb-3\x20univer-w-full\x20univer-text-sm','775086rSrKRf','trim','complete','getCurrentTypeOfUnit$','LiveShareController','add','useDependency','UNIVER_LIVE_SHARE_PLUGIN','Disposable','startFollowing','toDisposable','toStringTag','ONLINE','type','3777568LhBVLQ','Start\x20following','offline','tag','14nVmGBi','parse','presenting','default','You\x27are\x20offline.','_fetchOperations','parseProtocolChangeset','forwardRef','useObservable','_commandService','3860315oOHzYU','shouldShareOperation','evenodd','children','has','330IFoMqy','memberID','defs','_commandDisposable','1em','end','BuiltInUIPart','univer-size-4','_startFollowing','useRef','icon','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_sharedOperations','LiveShareService','8738279XPXvcY','pipe','className','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','PRESENTING','IDLE','url(#$1','UNIVER_SHEET','_collabSession','not-following','unitId','next','concat','status$','DependentOn','unsubscribe','defineProperty','disposeWithMe','DesktopLiveShareController','registerDependencies','_uiPartsService','NEW_CHANGESETS','FOLLOWING','RxDisposable','string','params','reverse','event$','Plugin','_status','LiveShareCoordinator','registerComponent','_presenter','button','delete','dispose$','text','_univerInstanceService','random','getUnitId','SetWorksheetActiveOperation','univerjs-icon\x20univerjs-icon-','_reporters','OFFLINE','tryStartPresenting','connectInjector','pluginName','colorChannel1','InsertSheetMutation','indexOf','_unitID','path','DisposableCollection','onStarting','LiveShareIcon','idSuffix','OPERATION'];_0x4674=function(){return _0xb2d7c8;};return _0x4674();}E=ie([ne(0x0,o[_0x465e4e(0x148)](O))],E);var re=Object[_0x465e4e(0x1cc)],se=Object[_0x465e4e(0x174)],oe=(_0x450f8b,_0x4c3fb3,_0xccc055)=>_0x4c3fb3 in _0x450f8b?re(_0x450f8b,_0x4c3fb3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xccc055}):_0x450f8b[_0x4c3fb3]=_0xccc055,ae=(_0x41f60c,_0x25167d,_0x4c6955,_0x29a4d1)=>{var _0x5923ed=_0x465e4e;for(var _0x523705=_0x29a4d1>0x1?void 0x0:_0x29a4d1?se(_0x25167d,_0x4c6955):_0x25167d,_0x18a4c=_0x41f60c[_0x5923ed(0x14b)]-0x1,_0x31c71c;_0x18a4c>=0x0;_0x18a4c--)(_0x31c71c=_0x41f60c[_0x18a4c])&&(_0x523705=_0x31c71c(_0x523705)||_0x523705);return _0x523705;},N=(_0x49eae6,_0x73101b)=>(_0x4f9118,_0x11752a)=>_0x73101b(_0x4f9118,_0x11752a,_0x49eae6),T=(_0x37e9b1,_0xe7e5ea,_0x12517a)=>oe(_0x37e9b1,typeof _0xe7e5ea!='symbol'?_0xe7e5ea+'':_0xe7e5ea,_0x12517a);const le=_0x465e4e(0x194);exports['UniverLiveSharePlugin']=class extends o[_0x465e4e(0x1d8)]{constructor(_0xa80f4=L,_0x78e8a0,_0x1355b6){var _0x367216=_0x465e4e;super(),this['_config']=_0xa80f4,this[_0x367216(0x12c)]=_0x78e8a0,this[_0x367216(0x153)]=_0x1355b6;const {..._0x485cc9}=o[_0x367216(0x14c)]({},L,this[_0x367216(0x17b)]);this[_0x367216(0x153)][_0x367216(0x178)](ee,_0x485cc9);}[_0x465e4e(0x10f)](){var _0xe5faa4=_0x465e4e;o[_0xe5faa4(0x1cf)](this[_0xe5faa4(0x12c)],o['mergeOverrideWithDependencies']([[O],[exports[_0xe5faa4(0x191)]],[E],[exports[_0xe5faa4(0x1ce)]]],this['_config'][_0xe5faa4(0x113)])),o[_0xe5faa4(0x138)](this['_injector'],[[E]]);}[_0x465e4e(0x120)](){var _0x2a5c08=_0x465e4e;o[_0x2a5c08(0x138)](this[_0x2a5c08(0x12c)],[[exports[_0x2a5c08(0x1ce)]]]);}},T(exports['UniverLiveSharePlugin'],_0x465e4e(0x19a),o[_0x465e4e(0x13e)][_0x465e4e(0x16d)]),T(exports['UniverLiveSharePlugin'],_0x465e4e(0x108),le),exports[_0x465e4e(0x11b)]=ae([o[_0x465e4e(0x1ca)](m[_0x465e4e(0x13c)]),N(0x1,o[_0x465e4e(0x148)](o[_0x465e4e(0x121)])),N(0x2,o[_0x465e4e(0x173)])],exports[_0x465e4e(0x11b)]),exports['LiveShare']=A,exports[_0x465e4e(0x1bb)]=O,exports[_0x465e4e(0x169)]=h;
|
|
1
|
+
'use strict';var _0x1a0662=_0x2331;(function(_0x15d73e,_0xb4eda6){var _0x4062cc=_0x2331,_0x3e229b=_0x15d73e();while(!![]){try{var _0x48da1c=parseInt(_0x4062cc(0xa5))/0x1+parseInt(_0x4062cc(0xe4))/0x2*(-parseInt(_0x4062cc(0x15f))/0x3)+parseInt(_0x4062cc(0xe2))/0x4+-parseInt(_0x4062cc(0xb3))/0x5+parseInt(_0x4062cc(0x10b))/0x6+parseInt(_0x4062cc(0xc2))/0x7+-parseInt(_0x4062cc(0x12e))/0x8;if(_0x48da1c===_0xb4eda6)break;else _0x3e229b['push'](_0x3e229b['shift']());}catch(_0xd2c49a){_0x3e229b['push'](_0x3e229b['shift']());}}}(_0x5ecc,0xc9cb2));var U=Object[_0x1a0662(0xb9)],F=(_0x134420,_0x5ba7c0,_0xd5edb8)=>_0x5ba7c0 in _0x134420?U(_0x134420,_0x5ba7c0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd5edb8}):_0x134420[_0x5ba7c0]=_0xd5edb8,v=(_0x4b1989,_0x43bebb,_0xf51cc2)=>F(_0x4b1989,typeof _0x43bebb!=_0x1a0662(0xde)?_0x43bebb+'':_0x43bebb,_0xf51cc2);Object['defineProperty'](exports,Symbol[_0x1a0662(0x117)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0xe9a1ad=_0x1a0662;return u=Object[_0xe9a1ad(0x105)]||function(_0x47a1cd){var _0x35d066=_0xe9a1ad;for(var _0x4dce28,_0x5b2ea7=0x1,_0x6fe5cf=arguments['length'];_0x5b2ea7<_0x6fe5cf;_0x5b2ea7++){_0x4dce28=arguments[_0x5b2ea7];for(var _0x503b86 in _0x4dce28)Object[_0x35d066(0xe0)][_0x35d066(0xcc)][_0x35d066(0xe7)](_0x4dce28,_0x503b86)&&(_0x47a1cd[_0x503b86]=_0x4dce28[_0x503b86]);}return _0x47a1cd;},u[_0xe9a1ad(0xa4)](this,arguments);},$=function(_0x5bf0a7,_0xd32c2b){var _0x3e2620=_0x1a0662,_0x40bc4d={};for(var _0x302a4c in _0x5bf0a7)Object[_0x3e2620(0xe0)][_0x3e2620(0xcc)]['call'](_0x5bf0a7,_0x302a4c)&&_0xd32c2b[_0x3e2620(0xba)](_0x302a4c)<0x0&&(_0x40bc4d[_0x302a4c]=_0x5bf0a7[_0x302a4c]);if(_0x5bf0a7!=null&&typeof Object['getOwnPropertySymbols']==_0x3e2620(0xd6)){for(var _0x1bb84b=0x0,_0x302a4c=Object[_0x3e2620(0xab)](_0x5bf0a7);_0x1bb84b<_0x302a4c[_0x3e2620(0x124)];_0x1bb84b++)_0xd32c2b['indexOf'](_0x302a4c[_0x1bb84b])<0x0&&Object['prototype'][_0x3e2620(0x89)][_0x3e2620(0xe7)](_0x5bf0a7,_0x302a4c[_0x1bb84b])&&(_0x40bc4d[_0x302a4c[_0x1bb84b]]=_0x5bf0a7[_0x302a4c[_0x1bb84b]]);}return _0x40bc4d;},j=f[_0x1a0662(0xb8)](function(_0x572bb8,_0x4bc798){var _0x3e84d=_0x1a0662,_0x5e20ee=_0x572bb8['icon'],_0x1a671b=_0x572bb8['id'],_0x5efff9=_0x572bb8[_0x3e84d(0x147)],_0x8fc825=_0x572bb8['extend'],_0xca3ab3=$(_0x572bb8,['icon','id',_0x3e84d(0x147),_0x3e84d(0x122)]),_0x123c31=_0x3e84d(0xa0)[_0x3e84d(0xc8)](_0x1a671b,'\x20')['concat'](_0x5efff9||'')[_0x3e84d(0xd9)](),_0x3a967b=f[_0x3e84d(0x139)]('_'['concat'](k()));return y(_0x5e20ee,''[_0x3e84d(0xc8)](_0x1a671b),{'defIds':_0x5e20ee['defIds'],'idSuffix':_0x3a967b[_0x3e84d(0x90)]},u({'ref':_0x4bc798,'className':_0x123c31},_0xca3ab3),_0x8fc825);});function y(_0x38fc09,_0x589aa6,_0x356482,_0x137b4b,_0x547d1a){var _0x597296=_0x1a0662;return f[_0x597296(0x13c)](_0x38fc09[_0x597296(0xed)],u(u({'key':_0x589aa6},H(_0x38fc09,_0x356482,_0x547d1a)),_0x137b4b),(V(_0x38fc09,_0x356482)['children']||[])[_0x597296(0xc7)](function(_0x477be1,_0x2eeec3){var _0x11c643=_0x597296;return y(_0x477be1,''[_0x11c643(0xc8)](_0x589aa6,'-')['concat'](_0x38fc09[_0x11c643(0xed)],'-')[_0x11c643(0xc8)](_0x2eeec3),_0x356482,void 0x0,_0x547d1a);}));}function H(_0x331393,_0x1a471c,_0x3e9da3){var _0x2679fb=_0x1a0662,_0x513e4f=u({},_0x331393['attrs']);_0x3e9da3!=null&&_0x3e9da3[_0x2679fb(0x141)]&&_0x513e4f[_0x2679fb(0x11b)]===_0x2679fb(0x141)&&(_0x513e4f['fill']=_0x3e9da3[_0x2679fb(0x141)]),_0x331393[_0x2679fb(0xed)]===_0x2679fb(0xd8)&&_0x513e4f['id']&&(_0x513e4f['id']=_0x513e4f['id']+_0x1a471c[_0x2679fb(0x14d)]),Object['entries'](_0x513e4f)[_0x2679fb(0x9d)](function(_0xc850db){var _0x3c738e=_0x2679fb,_0x18d8d5=_0xc850db[0x0],_0x39d503=_0xc850db[0x1];_0x18d8d5===_0x3c738e(0xd8)&&typeof _0x39d503=='string'&&(_0x513e4f[_0x18d8d5]=_0x39d503[_0x3c738e(0xce)](/url\(#(.*)\)/,'url(#$1'[_0x3c738e(0xc8)](_0x1a471c[_0x3c738e(0x14d)],')')));});var _0x2c0742=_0x1a471c[_0x2679fb(0x80)];return!_0x2c0742||_0x2c0742['length']===0x0||(_0x331393[_0x2679fb(0xed)]==='use'&&_0x513e4f[_0x2679fb(0x10a)]&&(_0x513e4f[_0x2679fb(0x10a)]=_0x513e4f['xlink:href']+_0x1a471c[_0x2679fb(0x14d)]),Object['entries'](_0x513e4f)[_0x2679fb(0x9d)](function(_0x433907){var _0x5397dd=_0x2679fb,_0x168325=_0x433907[0x0],_0x550721=_0x433907[0x1];typeof _0x550721==_0x5397dd(0x95)&&(_0x513e4f[_0x168325]=_0x550721[_0x5397dd(0xce)](/url\(#(.*)\)/,_0x5397dd(0x13b)['concat'](_0x1a471c[_0x5397dd(0x14d)],')')));})),_0x513e4f;}function _0x2331(_0x503aa2,_0x84ac61){var _0x5ecc4c=_0x5ecc();return _0x2331=function(_0x233157,_0x51678f){_0x233157=_0x233157-0x80;var _0x54a53b=_0x5ecc4c[_0x233157];return _0x54a53b;},_0x2331(_0x503aa2,_0x84ac61);}function V(_0x22d112,_0x36ea32){var _0x590834=_0x1a0662,_0x41b256,_0x3e4ce5=_0x36ea32[_0x590834(0x80)];return!_0x3e4ce5||_0x3e4ce5[_0x590834(0x124)]===0x0?_0x22d112:_0x22d112['tag']===_0x590834(0x92)&&(!((_0x41b256=_0x22d112[_0x590834(0xc6)])===null||_0x41b256===void 0x0)&&_0x41b256[_0x590834(0x124)])?u(u({},_0x22d112),{'children':_0x22d112[_0x590834(0xc6)][_0x590834(0xc7)](function(_0x5b5d66){var _0xe0667a=_0x590834;return typeof _0x5b5d66[_0xe0667a(0xad)]['id']==_0xe0667a(0x95)&&_0x3e4ce5&&_0x3e4ce5[_0xe0667a(0xcf)](_0x5b5d66['attrs']['id'])?u(u({},_0x5b5d66),{'attrs':u(u({},_0x5b5d66[_0xe0667a(0xad)]),{'id':_0x5b5d66[_0xe0667a(0xad)]['id']+_0x36ea32[_0xe0667a(0x14d)]})}):_0x5b5d66;})}):_0x22d112;}function k(){var _0x25704f=_0x1a0662;return Math['random']()[_0x25704f(0x10e)](0x24)[_0x25704f(0x12a)](0x2,0x8);}j[_0x1a0662(0x135)]=_0x1a0662(0xcd);var M={'tag':_0x1a0662(0x11a),'attrs':{'xmlns':_0x1a0662(0x128),'fill':_0x1a0662(0x8c),'viewBox':_0x1a0662(0x142),'width':_0x1a0662(0x10d),'height':_0x1a0662(0x10d)},'children':[{'tag':'path','attrs':{'fill':_0x1a0662(0xd3),'d':_0x1a0662(0x145)}},{'tag':_0x1a0662(0xf5),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x1a0662(0x110),'clipRule':_0x1a0662(0x110)}}]},P=f['forwardRef'](function(_0x38c39e,_0x306685){var _0x3bbfbe=_0x1a0662;return f[_0x3bbfbe(0x13c)](j,Object[_0x3bbfbe(0x105)]({},_0x38c39e,{'id':_0x3bbfbe(0x136),'ref':_0x306685,'icon':M}));});P['displayName']=_0x1a0662(0xc1);class O extends o['Disposable']{constructor(){var _0x582208=_0x1a0662;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x582208(0x125),new Set());}[_0x1a0662(0xd4)](_0x181841){var _0x24aa9b=_0x1a0662;return this['_sharedOperations'][_0x24aa9b(0x155)](_0x181841),o['toDisposable'](()=>this[_0x24aa9b(0x11c)][_0x24aa9b(0xdf)](_0x181841));}[_0x1a0662(0x103)](_0x37d178){var _0x7e83ba=_0x1a0662;return this[_0x7e83ba(0x125)][_0x7e83ba(0x155)](_0x37d178),o[_0x7e83ba(0x158)](()=>this['_reporters']['delete'](_0x37d178));}[_0x1a0662(0xa7)](_0x1f2793){var _0x77a7d7=_0x1a0662;return this[_0x77a7d7(0x11c)][_0x77a7d7(0xe6)](_0x1f2793);}['getInitialStates'](_0x4017c1){var _0x4c96b3=_0x1a0662;return Array[_0x4c96b3(0x121)](this['_reporters'])[_0x4c96b3(0xc7)](_0x5d70f9=>_0x5d70f9(_0x4017c1));}}var q=Object[_0x1a0662(0xbc)],R=(_0x452619,_0x134b16,_0x596234,_0x2c5fdf)=>{var _0x3f2769=_0x1a0662;for(var _0x5c1078=_0x2c5fdf>0x1?void 0x0:_0x2c5fdf?q(_0x134b16,_0x596234):_0x134b16,_0x4aefd9=_0x452619[_0x3f2769(0x124)]-0x1,_0x256a62;_0x4aefd9>=0x0;_0x4aefd9--)(_0x256a62=_0x452619[_0x4aefd9])&&(_0x5c1078=_0x256a62(_0x5c1078)||_0x5c1078);return _0x5c1078;},S=(_0x576394,_0x36fa74)=>(_0x39afdb,_0xc005bd)=>_0x36fa74(_0x39afdb,_0xc005bd,_0x576394);exports[_0x1a0662(0x132)]=class extends o[_0x1a0662(0x12c)]{constructor(_0x456429,_0x24c820,_0x9b1204){var _0xb0f381=_0x1a0662;super(),v(this,_0xb0f381(0xf6),new Map()),(this[_0xb0f381(0x12b)]=_0x456429,this['_injector']=_0x24c820,this[_0xb0f381(0x12d)]=_0x9b1204,this[_0xb0f381(0x148)]());}async[_0x1a0662(0xf9)](_0x10484e){var _0x455737=_0x1a0662;return this[_0x455737(0xf6)]['has'](_0x10484e)||await this[_0x455737(0x10c)](_0x10484e),this[_0x455737(0xf6)]['get'](_0x10484e);}[_0x1a0662(0x148)](){var _0x2c50ca=_0x1a0662;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x2c50ca(0x9f)][_0x2c50ca(0x152)])['pipe'](b['takeUntil'](this[_0x2c50ca(0xd5)]))[_0x2c50ca(0xae)](async _0x309501=>{var _0x47fe0e=_0x2c50ca;const _0x2e00e8=_0x309501['getUnitId']();this[_0x47fe0e(0xf6)][_0x47fe0e(0xe6)](_0x2e00e8)||this['_startLiveShareCoordinator'](_0x2e00e8);}),this[_0x2c50ca(0x12b)]['getTypeOfUnitDisposed$'](o['UniverInstanceType']['UNIVER_SHEET'])['pipe'](b['takeUntil'](this[_0x2c50ca(0xd5)]))[_0x2c50ca(0xae)](_0xf66158=>{var _0x146c6a=_0x2c50ca;const _0x41506b=_0xf66158[_0x146c6a(0x13a)](),_0x38f7ad=this[_0x146c6a(0xf6)][_0x146c6a(0x106)](_0x41506b);_0x38f7ad==null||_0x38f7ad[_0x146c6a(0x100)]();});}async[_0x1a0662(0x10c)](_0x350dfb){var _0x4b3817=_0x1a0662;const _0x35bcb4=await this['_collabSessionService'][_0x4b3817(0xee)](_0x350dfb),_0x93204e=this['_injector']['createInstance'](exports[_0x4b3817(0xea)],_0x350dfb,_0x35bcb4);return _0x93204e[_0x4b3817(0x15d)](),this[_0x4b3817(0xf6)][_0x4b3817(0xb0)](_0x350dfb,_0x93204e),_0x93204e;}},exports['LiveShareController']=R([S(0x0,o[_0x1a0662(0x120)]),S(0x1,o[_0x1a0662(0xf2)](o[_0x1a0662(0x8d)])),S(0x2,o[_0x1a0662(0xf2)](m[_0x1a0662(0x83)]))],exports[_0x1a0662(0x132)]);var h=(_0x2336fc=>(_0x2336fc[_0x1a0662(0x14c)]=_0x1a0662(0xac),_0x2336fc[_0x1a0662(0xd1)]=_0x1a0662(0xc9),_0x2336fc[_0x1a0662(0xec)]='following',_0x2336fc[_0x1a0662(0x96)]=_0x1a0662(0x15b),_0x2336fc[_0x1a0662(0x9c)]=_0x1a0662(0xfb),_0x2336fc))(h||{});const W=_0x1a0662(0x114),G=0xc8;exports[_0x1a0662(0xea)]=class extends o[_0x1a0662(0x12c)]{constructor(_0x2f8142,_0x272654,_0x4a51a4,_0x39c9b6,_0xd8530a){var _0x37b76a=_0x1a0662;super(),v(this,'_status$',new w[(_0x37b76a(0xc5))]('idle')),v(this,'status$',this[_0x37b76a(0xcb)][_0x37b76a(0x9b)]()),v(this,_0x37b76a(0x148),!0x1),v(this,'_commandDisposable',null),v(this,'_presenter',null),(this[_0x37b76a(0x156)]=_0x2f8142,this[_0x37b76a(0xfc)]=_0x272654,this['_configService']=_0x4a51a4,this[_0x37b76a(0x131)]=_0x39c9b6,this[_0x37b76a(0x11d)]=_0xd8530a);}get[_0x1a0662(0xa3)](){var _0x225a71=_0x1a0662;return this[_0x225a71(0xcb)]['getValue']();}['dispose'](){var _0x12161c=_0x1a0662,_0x521e60;(_0x521e60=this['_commandDisposable'])==null||_0x521e60['dispose'](),this[_0x12161c(0xcb)]['next']('idle'),this[_0x12161c(0xcb)]['complete']();}['init'](){var _0x571b92=_0x1a0662;this[_0x571b92(0x148)]||(this[_0x571b92(0x148)]=!0x0,this[_0x571b92(0xfc)][_0x571b92(0x11e)][_0x571b92(0x8b)](b[_0x571b92(0x88)](this[_0x571b92(0xd5)]))[_0x571b92(0xae)](_0x43adc2=>{var _0x43eb60=_0x571b92;switch(_0x43adc2){case m[_0x43eb60(0xef)][_0x43eb60(0x14c)]:this[_0x43eb60(0xfe)]();break;case m[_0x43eb60(0xef)][_0x43eb60(0x138)]:this[_0x43eb60(0xe1)]();break;}}),this[_0x571b92(0xfc)]['event$'][_0x571b92(0x8b)](b[_0x571b92(0x88)](this[_0x571b92(0xd5)]))[_0x571b92(0xae)](_0x1b202d=>{var _0x1227ac=_0x571b92;const {eventID:_0x55efa8}=_0x1b202d;switch(_0x55efa8){case _[_0x1227ac(0x8a)][_0x1227ac(0xfd)]:this['_handleNewHost'](_0x1b202d);break;case _[_0x1227ac(0x8a)][_0x1227ac(0x140)]:this[_0x1227ac(0x8e)](_0x1b202d);break;case _[_0x1227ac(0x8a)][_0x1227ac(0x116)]:this[_0x1227ac(0xe9)]();break;case _[_0x1227ac(0x8a)][_0x1227ac(0x112)]:this['_handleNewChangeSets'](_0x1b202d);break;}}));}[_0x1a0662(0xbb)](){var _0x31d936=_0x1a0662;this[_0x31d936(0xfc)]['send']({'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x31d936(0x156)],'userID':this['_collabSession'][_0x31d936(0xa9)]()}},this[_0x31d936(0x156)]);}['stopPresenting'](){var _0xe59017=_0x1a0662;this[_0xe59017(0xa3)]===_0xe59017(0xfb)&&(this['_status$'][_0xe59017(0xa6)](_0xe59017(0xc9)),this[_0xe59017(0xfc)][_0xe59017(0x144)]({'eventID':_[_0xe59017(0x8a)][_0xe59017(0x116)],'data':{'unitID':this[_0xe59017(0x156)]}},this[_0xe59017(0x156)]));}[_0x1a0662(0x108)](){var _0x1fcd1=_0x1a0662;this[_0x1fcd1(0xa3)]===_0x1fcd1(0x15b)&&(this['_status$'][_0x1fcd1(0xa6)](_0x1fcd1(0x137)),this[_0x1fcd1(0x130)]());}[_0x1a0662(0x97)](){var _0x587f6b=_0x1a0662;this['_status']===_0x587f6b(0x137)&&this[_0x587f6b(0x159)]();}[_0x1a0662(0xca)](_0x2be3c9){var _0x38622e=_0x1a0662;const {presenter:_0x33321b}=_0x2be3c9[_0x38622e(0x115)],_0x2390f6=this[_0x38622e(0xfc)][_0x38622e(0xa9)]();this[_0x38622e(0xe5)]=_0x33321b,_0x33321b===_0x2390f6?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x38622e(0xa3)]!==_0x38622e(0x15b)&&(this[_0x38622e(0x150)](),this[_0x38622e(0x130)]());}[_0x1a0662(0x102)](){var _0x5edeaf=_0x1a0662;const _0x50927a={'eventID':_[_0x5edeaf(0x8a)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5edeaf(0xfc)]['send'](_0x50927a,this['_unitID']);}[_0x1a0662(0xe9)](){var _0x85044c=_0x1a0662;this[_0x85044c(0xe5)]=null,this[_0x85044c(0xa3)]!==_0x85044c(0xfb)&&this[_0x85044c(0x101)]();}[_0x1a0662(0x15e)](_0x145013){var _0x57e328=_0x1a0662;if(this[_0x57e328(0xa3)]==='following'&&this['_presenter']===_0x145013[_0x57e328(0x115)]['memberID']){const _0xcafe41=_[_0x57e328(0x9a)](_0x145013[_0x57e328(0x115)])[_0x57e328(0xa8)][_0x57e328(0xa1)]()[_0x57e328(0x15c)](_0x3e7c87=>_0x3e7c87['id']===C['InsertSheetMutation']['id']);if(_0xcafe41){const _0x17d34f=_0xcafe41[_0x57e328(0x113)][_0x57e328(0x119)],_0x5db845=_0xcafe41[_0x57e328(0x113)][_0x57e328(0x154)]['id'];setTimeout(()=>{var _0x4ae699=_0x57e328;this['_commandService'][_0x4ae699(0x10f)](C[_0x4ae699(0x109)]['id'],{'unitId':_0x17d34f,'subUnitId':_0x5db845},{'fromCollab':!0x0});});}}}[_0x1a0662(0xf7)](){var _0x1ea2c6=_0x1a0662;this['_status$'][_0x1ea2c6(0xa6)](_0x1ea2c6(0xfb));const _0x4fadd5=new Map(),_0x2b87bc=this[_0x1ea2c6(0x13f)]=new o[(_0x1ea2c6(0x9e))]();_0x2b87bc[_0x1ea2c6(0x155)](o[_0x1ea2c6(0x158)](()=>{var _0x1fc261=_0x1ea2c6;_0x4fadd5[_0x1fc261(0x9d)](_0x1ac92a=>_0x1ac92a[_0x1fc261(0x104)]()),_0x4fadd5['clear']();})),_0x2b87bc[_0x1ea2c6(0x155)](this['_commandService'][_0x1ea2c6(0x14f)](_0x44f6a4=>{var _0x1e718d=_0x1ea2c6,_0xec9d03;if(_0x44f6a4['type']!==o['CommandType'][_0x1e718d(0xd7)]||!this['_liveShareService']['shouldShareOperation'](_0x44f6a4['id']))return;const {id:_0xa6c52c}=_0x44f6a4;let _0x1a97da;_0x4fadd5[_0x1e718d(0xe6)](_0xa6c52c)?_0x1a97da=_0x4fadd5[_0x1e718d(0x106)](_0xa6c52c):(_0x1a97da=new w[(_0x1e718d(0x134))](),_0x4fadd5[_0x1e718d(0xb0)](_0xa6c52c,_0x1a97da),_0x1a97da['pipe'](b[_0x1e718d(0xbf)]((_0xec9d03=this[_0x1e718d(0x84)]['getConfig'](W))!=null?_0xec9d03:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1e718d(0xae)](_0x297878=>{var _0x2f04a4=_0x1e718d;this[_0x2f04a4(0xfc)]['send']({'eventID':_[_0x2f04a4(0x8a)][_0x2f04a4(0x140)],'data':{'unitID':this[_0x2f04a4(0x156)],'operations':{[_0x297878['id']]:{'id':_0x297878['id'],'params':JSON['stringify'](_0x297878['params'])}}}},this['_unitID']);})),_0x1a97da['next'](_0x44f6a4);})),this[_0x1ea2c6(0x131)][_0x1ea2c6(0xeb)](this[_0x1ea2c6(0x156)])['forEach'](_0x3dee2a=>this[_0x1ea2c6(0xfc)][_0x1ea2c6(0x144)]({'eventID':_[_0x1ea2c6(0x8a)][_0x1ea2c6(0x140)],'data':{'unitID':this[_0x1ea2c6(0x156)],'operations':{[_0x3dee2a['id']]:{'id':_0x3dee2a['id'],'params':JSON[_0x1ea2c6(0x127)](_0x3dee2a[_0x1ea2c6(0x113)])}}}},this[_0x1ea2c6(0x156)]));}[_0x1a0662(0x150)](){var _0x17c0d3=_0x1a0662,_0x3c358c;this[_0x17c0d3(0xcb)][_0x17c0d3(0xa6)](_0x17c0d3(0xc9)),(_0x3c358c=this[_0x17c0d3(0x13f)])==null||_0x3c358c[_0x17c0d3(0x100)](),this[_0x17c0d3(0x13f)]=null;}['_startFollowing'](){var _0x123707=_0x1a0662,_0x27b9a8;(_0x27b9a8=this[_0x123707(0x13f)])==null||_0x27b9a8[_0x123707(0x100)](),this[_0x123707(0xcb)][_0x123707(0xa6)](_0x123707(0x137));}['_beIdle'](){var _0x34d4d7=_0x1a0662,_0x152d2b;this['_status$'][_0x34d4d7(0xa6)](_0x34d4d7(0xc9)),(_0x152d2b=this[_0x34d4d7(0x13f)])==null||_0x152d2b[_0x34d4d7(0x100)](),this[_0x34d4d7(0x13f)]=null;}[_0x1a0662(0x159)](){var _0x15daa3=_0x1a0662,_0x88a90a;this[_0x15daa3(0xcb)]['next'](_0x15daa3(0x15b)),(_0x88a90a=this[_0x15daa3(0x13f)])==null||_0x88a90a[_0x15daa3(0x100)]();}[_0x1a0662(0x8e)](_0x52ec16){var _0x2e30de=_0x1a0662;if([_0x2e30de(0xfb),_0x2e30de(0x15b),'offline'][_0x2e30de(0xcf)](this['_status'])||!_0x52ec16[_0x2e30de(0x115)]['presenter']||_0x52ec16['data'][_0x2e30de(0x98)]===this[_0x2e30de(0xfc)][_0x2e30de(0xa9)]())return;this[_0x2e30de(0xa3)]==='idle'&&this[_0x2e30de(0x130)]();const _0x393d66=_0x52ec16[_0x2e30de(0x115)][_0x2e30de(0x123)];Object[_0x2e30de(0xda)](_0x393d66)[_0x2e30de(0x9d)](_0x47f17c=>{var _0x322b87=_0x2e30de;this['_commandService'][_0x322b87(0x10f)](_0x47f17c['id'],_0x47f17c[_0x322b87(0x113)]?JSON['parse'](_0x47f17c[_0x322b87(0x113)]):null,{'fromCollab':!0x0});});}[_0x1a0662(0xfe)](){var _0x4fd573=_0x1a0662,_0x46eff5;this[_0x4fd573(0xcb)][_0x4fd573(0xa6)](_0x4fd573(0xac)),(_0x46eff5=this['_commandDisposable'])==null||_0x46eff5['dispose']();}[_0x1a0662(0xe1)](){var _0x495117=_0x1a0662;this[_0x495117(0xcb)][_0x495117(0xa6)](_0x495117(0xc9)),this[_0x495117(0x102)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x1a0662(0xd2)]),S(0x3,o[_0x1a0662(0xf2)](O)),S(0x4,o[_0x1a0662(0xb5)])],exports[_0x1a0662(0xea)]);function _0x5ecc(){var _0x2c730a=['not-following','find','init','_handleNewChangeSets','21ncBaPz','defIds','button','live-share.config','CollaborationSessionService','_configService','You\x27are\x20offline.','useObservable','LiveShareService','takeUntil','propertyIsEnumerable','CollaborationEvent','pipe','none','Injector','_handleOperation','Start\x20following','current','merge','defs','Disposable','Fragment','string','NOT_FOLLOWING','stopFollowing','presenter','univer-size-4','parseProtocolChangeset','asObservable','PRESENTING','forEach','DisposableCollection','UniverInstanceType','univerjs-icon\x20univerjs-icon-','reverse','Plugin','_status','apply','636106gWyMbl','next','shouldShareOperation','mutations','getMemberID','UNIVER_UNKNOWN','getOwnPropertySymbols','offline','attrs','subscribe','jsx','set','Present\x20this\x20document','Button','7059370jVNjaa','status$','ICommandService','DependentOn','useState','forwardRef','defineProperty','indexOf','tryStartPresenting','getOwnPropertyDescriptor','div','onStarting','throttleTime','default','LiveShareIcon','8847279yLmULl','_injector','UNIVER_LIVE_SHARE_PLUGIN','BehaviorSubject','children','map','concat','idle','_handleNewHost','_status$','hasOwnProperty','UniverIcon','replace','includes','LiveShareStatus','IDLE','IConfigService','currentColor','registerSharedOperation','dispose$','function','OPERATION','mask','trim','values','Start','You\x27re\x20not\x20following\x20the\x20presenter','end','symbol','delete','prototype','_handleOnline','1750660stXBZl','mergeOverrideWithDependencies','221356iBjYLd','_presenter','has','call','useEffect','_handleTerminate','LiveShareCoordinator','getInitialStates','FOLLOWING','tag','requireSession','SessionStatus','Stop\x20following','_mountLiveShare','Inject','Dropdown','then','path','_entities','_startPresenting','touchDependencies','getLiveShareCoordinator','override','presenting','_collabSession','LIVESHARE_NEW_HOST','_handleOffline','BuiltInUIPart','dispose','_beIdle','_fetchOperations','registerInitialStateReporter','complete','assign','get','You\x27re\x20following\x20the\x20presenter','startFollowing','SetWorksheetActiveOperation','xlink:href','8772810RXFCHK','_startLiveShareCoordinator','1em','toString','executeCommand','evenodd','UniverCollaborationClientPlugin','NEW_CHANGESETS','params','SAME_OPERATION_SHARE_INTERVAL','data','LIVESHARE_TERMINATE','toStringTag','useDependency','unitId','svg','fill','_sharedOperations','_commandService','sessionStatus$','You\x27re\x20presenting\x20the\x20document','IUniverInstanceService','from','extend','operations','length','_reporters','unsubscribe','stringify','http://www.w3.org/2000/svg','registerDependencies','substring','_univerInstanceService','RxDisposable','_collabSessionService','6293096Ihfrwm','_uiPartsService','_startFollowing','_liveShareService','LiveShareController','_config','Subject','displayName','live-share-icon','following','ONLINE','useRef','getUnitId','url(#$1','createElement','pluginName','disposeWithMe','_commandDisposable','LIVESHARE_OPERATION','colorChannel1','0\x200\x2017\x2017','Stop\x20presenting','send','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','clsx','className','_init','DesktopLiveShareController','IUIPartsService','type','OFFLINE','idSuffix','text','onCommandExecuted','_stopPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','UNIVER_SHEET','jsxs','sheet','add','_unitID','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','toDisposable','_stopFollowing','UniverLiveSharePlugin'];_0x5ecc=function(){return _0x2c730a;};return _0x5ecc();}function A(){var _0x5daa6d=_0x1a0662;const _0x170551=p[_0x5daa6d(0x118)](exports[_0x5daa6d(0x132)]),_0x4194c0=p[_0x5daa6d(0x118)](o[_0x5daa6d(0x120)]),_0x1ec8f5=p[_0x5daa6d(0x86)](()=>_0x4194c0['getCurrentTypeOfUnit$'](o['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4951e4,_0x2f2853]=f[_0x5daa6d(0xb7)](null),[_0x17fffd,_0x466ff5]=f[_0x5daa6d(0xb7)](h[_0x5daa6d(0xd1)]),_0x3b6fc5=f[_0x5daa6d(0x139)](null);return f[_0x5daa6d(0xe8)](()=>(_0x1ec8f5&&_0x170551[_0x5daa6d(0xf9)](_0x1ec8f5[_0x5daa6d(0x13a)]())[_0x5daa6d(0xf4)](_0x3a461c=>{var _0x3f6c66=_0x5daa6d;_0x2f2853(_0x3a461c),_0x3b6fc5[_0x3f6c66(0x90)]=_0x3a461c[_0x3f6c66(0xb4)][_0x3f6c66(0xae)](_0x5d816f=>{_0x466ff5(_0x5d816f);});}),()=>{var _0x2137a6=_0x5daa6d,_0x48ff3c;(_0x48ff3c=_0x3b6fc5['current'])==null||_0x48ff3c[_0x2137a6(0x126)](),_0x3b6fc5[_0x2137a6(0x90)]=null;}),[_0x1ec8f5,_0x170551]),_0x4951e4?l[_0x5daa6d(0xaf)](g[_0x5daa6d(0xf3)],{'align':_0x5daa6d(0xdd),'disabled':_0x17fffd===h[_0x5daa6d(0x14c)],'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[_0x5daa6d(0xaf)](B,{'status':_0x17fffd,'coordinator':_0x4951e4}),'children':l['jsx'](_0x5daa6d(0x81),{'className':g[_0x5daa6d(0x146)](_0x5daa6d(0x157),{'univer-cursor-not-allowed':_0x17fffd===h[_0x5daa6d(0x14c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17fffd!==h[_0x5daa6d(0x14c)]}),'type':_0x5daa6d(0x81),'children':l[_0x5daa6d(0xaf)](P,{'className':_0x5daa6d(0x99)})})}):null;}function B(_0x261889){var _0x3e71f2=_0x1a0662;const {status:_0x46476f,coordinator:_0x5a6816}=_0x261889;switch(_0x46476f){case h[_0x3e71f2(0xd1)]:return l[_0x3e71f2(0xaf)](Y,{'coordinator':_0x5a6816});case h[_0x3e71f2(0xec)]:return l[_0x3e71f2(0xaf)](Z,{'coordinator':_0x5a6816});case h[_0x3e71f2(0x96)]:return l[_0x3e71f2(0xaf)](J,{'coordinator':_0x5a6816});case h[_0x3e71f2(0x14c)]:return l[_0x3e71f2(0xaf)](z,{});case h['PRESENTING']:return l[_0x3e71f2(0xaf)](K,{'coordinator':_0x5a6816});default:return null;}}function Y(_0x36ef12){var _0x48c872=_0x1a0662;const {coordinator:_0x4cca1c}=_0x36ef12;return l['jsxs'](l[_0x48c872(0x94)],{'children':[l[_0x48c872(0xaf)](_0x48c872(0xbd),{'className':_0x48c872(0x151),'children':_0x48c872(0xb1)}),l[_0x48c872(0xaf)](g['Button'],{'onClick':()=>_0x4cca1c['tryStartPresenting'](),'children':_0x48c872(0xdb)})]});}function Z(_0x5e2200){var _0xd1753b=_0x1a0662;const {coordinator:_0x38f64e}=_0x5e2200;return l[_0xd1753b(0x153)](l[_0xd1753b(0x94)],{'children':[l[_0xd1753b(0xaf)](_0xd1753b(0xbd),{'className':_0xd1753b(0x151),'children':_0xd1753b(0x107)}),l[_0xd1753b(0xaf)](g[_0xd1753b(0xb2)],{'onClick':()=>_0x38f64e[_0xd1753b(0x97)](),'children':_0xd1753b(0xf0)})]});}function J(_0x2311cb){var _0x57a413=_0x1a0662;const {coordinator:_0x2f0a4b}=_0x2311cb;return l[_0x57a413(0x153)](l[_0x57a413(0x94)],{'children':[l['jsx'](_0x57a413(0xbd),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x57a413(0xdc)}),l[_0x57a413(0xaf)](g[_0x57a413(0xb2)],{'variant':_0x57a413(0x14e),'onClick':()=>_0x2f0a4b[_0x57a413(0x108)](),'children':_0x57a413(0x8f)})]});}function K(_0x2e4f2c){var _0x5206f9=_0x1a0662;const {coordinator:_0x1ec969}=_0x2e4f2c;return l['jsxs'](l[_0x5206f9(0x94)],{'children':[l['jsx']('div',{'className':_0x5206f9(0x151),'children':_0x5206f9(0x11f)}),l[_0x5206f9(0xaf)](g['Button'],{'variant':_0x5206f9(0xc0),'onClick':()=>_0x1ec969['stopPresenting'](),'children':_0x5206f9(0x143)})]});}function z(){var _0x290c72=_0x1a0662;return l['jsx'](l[_0x290c72(0x94)],{'children':_0x290c72(0x85)});}var Q=Object[_0x1a0662(0xbc)],X=(_0x58dae6,_0x1a10a7,_0x2f5bca,_0x2307ba)=>{var _0x1379a9=_0x1a0662;for(var _0x1a4bba=_0x2307ba>0x1?void 0x0:_0x2307ba?Q(_0x1a10a7,_0x2f5bca):_0x1a10a7,_0x59d122=_0x58dae6[_0x1379a9(0x124)]-0x1,_0x264f12;_0x59d122>=0x0;_0x59d122--)(_0x264f12=_0x58dae6[_0x59d122])&&(_0x1a4bba=_0x264f12(_0x1a4bba)||_0x1a4bba);return _0x1a4bba;},x=(_0x2933dc,_0x56f7d8)=>(_0x727a56,_0x25ba29)=>_0x56f7d8(_0x727a56,_0x25ba29,_0x2933dc);exports[_0x1a0662(0x149)]=class extends o[_0x1a0662(0x93)]{constructor(_0x48c56e,_0x4ad4a6){var _0x306028=_0x1a0662;super(),this[_0x306028(0xc3)]=_0x48c56e,this['_uiPartsService']=_0x4ad4a6,this['_mountLiveShare']();}[_0x1a0662(0xf1)](){var _0x30271b=_0x1a0662;this[_0x30271b(0x13e)](this[_0x30271b(0x12f)]['registerComponent'](p[_0x30271b(0xff)]['HEADER_MENU'],()=>p['connectInjector'](A,this[_0x30271b(0xc3)])));}},exports['DesktopLiveShareController']=X([x(0x0,o[_0x1a0662(0xf2)](o[_0x1a0662(0x8d)])),x(0x1,p[_0x1a0662(0x14a)])],exports[_0x1a0662(0x149)]);const ee=_0x1a0662(0x82),L={};var te=Object[_0x1a0662(0xbc)],ie=(_0x1730c8,_0x18f150,_0x367080,_0xadd3b9)=>{var _0xc9500e=_0x1a0662;for(var _0x55ae2b=_0xadd3b9>0x1?void 0x0:_0xadd3b9?te(_0x18f150,_0x367080):_0x18f150,_0x398fc9=_0x1730c8[_0xc9500e(0x124)]-0x1,_0x391d9d;_0x398fc9>=0x0;_0x398fc9--)(_0x391d9d=_0x1730c8[_0x398fc9])&&(_0x55ae2b=_0x391d9d(_0x55ae2b)||_0x55ae2b);return _0x55ae2b;},ne=(_0x4ebc16,_0x112919)=>(_0x30e287,_0x268668)=>_0x112919(_0x30e287,_0x268668,_0x4ebc16);let E=class extends o[_0x1a0662(0x93)]{constructor(_0x18bda0){var _0x484ac3=_0x1a0662;super(),this[_0x484ac3(0x131)]=_0x18bda0,this[_0x484ac3(0x148)]();}[_0x1a0662(0x148)](){var _0x36d098=_0x1a0662;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x36d098(0x109)]['id']]['forEach'](_0x4b0e0a=>{var _0x48345c=_0x36d098;this[_0x48345c(0x13e)](this[_0x48345c(0x131)][_0x48345c(0xd4)](_0x4b0e0a));});}};E=ie([ne(0x0,o['Inject'](O))],E);var re=Object[_0x1a0662(0xb9)],se=Object['getOwnPropertyDescriptor'],oe=(_0x297f00,_0x4acec5,_0x1b7884)=>_0x4acec5 in _0x297f00?re(_0x297f00,_0x4acec5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b7884}):_0x297f00[_0x4acec5]=_0x1b7884,ae=(_0x280ea6,_0xcc6894,_0x2954f9,_0x5c3d22)=>{var _0x195a98=_0x1a0662;for(var _0x26974f=_0x5c3d22>0x1?void 0x0:_0x5c3d22?se(_0xcc6894,_0x2954f9):_0xcc6894,_0x5d526b=_0x280ea6[_0x195a98(0x124)]-0x1,_0x3eedcc;_0x5d526b>=0x0;_0x5d526b--)(_0x3eedcc=_0x280ea6[_0x5d526b])&&(_0x26974f=_0x3eedcc(_0x26974f)||_0x26974f);return _0x26974f;},N=(_0x14e571,_0x480d87)=>(_0x3caa63,_0x574e8d)=>_0x480d87(_0x3caa63,_0x574e8d,_0x14e571),T=(_0x5a6254,_0x2ddf0c,_0x4fb8c1)=>oe(_0x5a6254,typeof _0x2ddf0c!=_0x1a0662(0xde)?_0x2ddf0c+'':_0x2ddf0c,_0x4fb8c1);const le=_0x1a0662(0xc4);exports[_0x1a0662(0x15a)]=class extends o[_0x1a0662(0xa2)]{constructor(_0x273768=L,_0x1e041e,_0xd30fef){var _0x293f71=_0x1a0662;super(),this[_0x293f71(0x133)]=_0x273768,this['_injector']=_0x1e041e,this['_configService']=_0xd30fef;const {..._0x5d99be}=o[_0x293f71(0x91)]({},L,this[_0x293f71(0x133)]);this[_0x293f71(0x84)]['setConfig'](ee,_0x5d99be);}[_0x1a0662(0xbe)](){var _0x562562=_0x1a0662;o[_0x562562(0x129)](this['_injector'],o[_0x562562(0xe3)]([[O],[exports[_0x562562(0x132)]],[E],[exports['DesktopLiveShareController']]],this[_0x562562(0x133)][_0x562562(0xfa)])),o[_0x562562(0xf8)](this[_0x562562(0xc3)],[[E]]);}['onRendered'](){var _0x113e66=_0x1a0662;o[_0x113e66(0xf8)](this[_0x113e66(0xc3)],[[exports[_0x113e66(0x149)]]]);}},T(exports[_0x1a0662(0x15a)],_0x1a0662(0x14b),o[_0x1a0662(0x9f)][_0x1a0662(0xaa)]),T(exports['UniverLiveSharePlugin'],_0x1a0662(0x13d),le),exports[_0x1a0662(0x15a)]=ae([o[_0x1a0662(0xb6)](m[_0x1a0662(0x111)]),N(0x1,o[_0x1a0662(0xf2)](o[_0x1a0662(0x8d)])),N(0x2,o[_0x1a0662(0xd2)])],exports[_0x1a0662(0x15a)]),exports['LiveShare']=A,exports[_0x1a0662(0x87)]=O,exports[_0x1a0662(0xd0)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x239c0b=_0x2444;(function(_0x2a54fa,_0xfc9e3){var _0xaead38=_0x2444,_0x59d8d8=_0x2a54fa();while(!![]){try{var _0x49f0b8=-parseInt(_0xaead38(0xab))/0x1+-parseInt(_0xaead38(0x110))/0x2+parseInt(_0xaead38(0x11c))/0x3+-parseInt(_0xaead38(0xf3))/0x4*(-parseInt(_0xaead38(0x108))/0x5)+parseInt(_0xaead38(0xb6))/0x6*(-parseInt(_0xaead38(0x98))/0x7)+-parseInt(_0xaead38(0x8c))/0x8+parseInt(_0xaead38(0x7d))/0x9*(parseInt(_0xaead38(0xa3))/0xa);if(_0x49f0b8===_0xfc9e3)break;else _0x59d8d8['push'](_0x59d8d8['shift']());}catch(_0x3f1b08){_0x59d8d8['push'](_0x59d8d8['shift']());}}}(_0x842e,0x6bf35));var q=Object[_0x239c0b(0xa2)],z=(_0xcaab1,_0x206ee7,_0x3e9bb5)=>_0x206ee7 in _0xcaab1?q(_0xcaab1,_0x206ee7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e9bb5}):_0xcaab1[_0x206ee7]=_0x3e9bb5,d=(_0x1f2312,_0xf91628,_0x63fef8)=>z(_0x1f2312,typeof _0xf91628!=_0x239c0b(0xc1)?_0xf91628+'':_0xf91628,_0x63fef8);import{Disposable as _0x4f1a9a,toDisposable as _0x4c1d53,IUniverInstanceService as _0x2dfa5a,Inject as _0x118151,Injector as _0x22dad7,IConfigService as _0xb381cc,ICommandService as _0x5034b0,RxDisposable as _0x1d314f,UniverInstanceType as _0x2064ad,DisposableCollection as _0x30b7f0,CommandType as _0x2b2304,DependentOn as _0x441003,Plugin as _0x5cfc72,merge as _0x27fc22,registerDependencies as _0x3dd7c3,mergeOverrideWithDependencies as _0x5b841f,touchDependencies as _0x29821e}from'@univerjs/core';import{useDependency as _0x42b623,useObservable as _0x135486,IUIPartsService as _0x4acb5d,BuiltInUIPart as _0x325284,connectInjector as _0x2ac9c5}from'@univerjs/ui';import{jsx as _0x47e17a,jsxs as _0x4e59d3,Fragment as _0x440c44}from'react/jsx-runtime';import{Dropdown as _0x2b68e4,clsx as _0xc992a1,Button as _0x1e74fe}from'@univerjs/design';import{forwardRef as _0x1f202f,useRef as _0x23f2e6,createElement as _0x488ebe,useState as _0x3852ae,useEffect as _0x198eb4}from'react';import{CollaborationEvent as _0x178878,parseProtocolChangeset as _0x1265b1}from'@univerjs-pro/collaboration';function _0x842e(){var _0x598ce9=['url(#$1','_univerInstanceService','mutations','defs','_startLiveShareCoordinator','not-following','string','status$','delete','LIVESHARE_TERMINATE','IDLE','_stopFollowing','random','xlink:href','pipe','3929895KswCCQ','none','parse','_startFollowing','_presenter','clear','asObservable','UniverIcon','map','children','evenodd','SAME_OPERATION_SHARE_INTERVAL','_collabSession','data','_liveShareService','2399336GiIrUp','live-share.config','concat','presenting','trim','registerComponent','dispose$','operations','_configService','Present\x20this\x20document','propertyIsEnumerable','replace','2933mvPYLi','params','onCommandExecuted','then','end','You\x27re\x20presenting\x20the\x20document','ONLINE','_sharedOperations','fill','stopFollowing','defineProperty','50dPGxyS','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','colorChannel1','requireSession','tryStartPresenting','idSuffix','_status','getCurrentTypeOfUnit$','773849fMpQXy','_commandDisposable','extend','offline','0\x200\x2017\x2017','_status$','complete','_handleTerminate','_collabSessionService','_handleOffline','icon','9054Xxolpk','pluginName','type','getOwnPropertyDescriptor','following','FOLLOWING','set','executeCommand','stopPresenting','univerjs-icon\x20univerjs-icon-','_handleOperation','symbol','_stopPresenting','next','_init','subscribe','default','onRendered','registerInitialStateReporter','current','getConfig','LIVESHARE_NEW_HOST','You\x27re\x20not\x20following\x20the\x20presenter','_entities','has','live-share-icon','LIVESHARE_FETCH_OPERATIONS','_handleOnline','HEADER_MENU','OPERATION','_beIdle','createInstance','_unitID','registerSharedOperation','tag','length','setConfig','stringify','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_handleNewHost','presenter','_reporters','_handleNewChangeSets','unitId','_mountLiveShare','indexOf','Stop\x20following','add','disposeWithMe','_config','div','UNIVER_SHEET','mask','getOwnPropertySymbols','displayName','getUnitId','defIds','currentColor','prototype','You\x27re\x20following\x20the\x20presenter','_fetchOperations','4MMPiLV','hasOwnProperty','function','idle','NOT_FOLLOWING','forEach','path','attrs','entries','_commandService','OFFLINE','You\x27are\x20offline.','sessionStatus$','className','override','apply','dispose','PRESENTING','univer-size-4','Start\x20following','startFollowing','1216335oVixEI','init','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','svg','get','univer-mb-3\x20univer-w-full\x20univer-text-sm','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','send','1473768fEyztU','getMemberID','1em','LIVESHARE_OPERATION','_startPresenting','getInitialStates','toString','getLiveShareCoordinator','call','unsubscribe','_injector','UNIVER_UNKNOWN','1375632mcyghN'];_0x842e=function(){return _0x598ce9;};return _0x842e();}import{CollaborationSessionService as _0x507993,SessionStatus as _0x5201e7,UniverCollaborationClientPlugin as _0x494b9d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xf6ec2e,SetWorksheetActiveOperation as _0x2efdfd}from'@univerjs/sheets';import{BehaviorSubject as _0x2d84f2,Subject as _0x1eb573}from'rxjs';import{takeUntil as _0x1ab3fe,throttleTime as _0x32fc25}from'rxjs/operators';import{SetZoomRatioOperation as _0x4dd051,SetScrollOperation as _0x176684}from'@univerjs/sheets-ui';var c=function(){var _0x40d572=_0x239c0b;return c=Object['assign']||function(_0x182557){var _0xe1a552=_0x2444;for(var _0x2bde42,_0x4069ef=0x1,_0x1eb97c=arguments[_0xe1a552(0xd9)];_0x4069ef<_0x1eb97c;_0x4069ef++){_0x2bde42=arguments[_0x4069ef];for(var _0x316ed8 in _0x2bde42)Object[_0xe1a552(0xf0)]['hasOwnProperty'][_0xe1a552(0x118)](_0x2bde42,_0x316ed8)&&(_0x182557[_0x316ed8]=_0x2bde42[_0x316ed8]);}return _0x182557;},c[_0x40d572(0x102)](this,arguments);},Oe=function(_0x40709b,_0x117a76){var _0x30580b=_0x239c0b,_0x4722ae={};for(var _0x33b6c8 in _0x40709b)Object[_0x30580b(0xf0)][_0x30580b(0xf4)]['call'](_0x40709b,_0x33b6c8)&&_0x117a76[_0x30580b(0xe3)](_0x33b6c8)<0x0&&(_0x4722ae[_0x33b6c8]=_0x40709b[_0x33b6c8]);if(_0x40709b!=null&&typeof Object[_0x30580b(0xeb)]==_0x30580b(0xf5)){for(var _0xb41f96=0x0,_0x33b6c8=Object[_0x30580b(0xeb)](_0x40709b);_0xb41f96<_0x33b6c8[_0x30580b(0xd9)];_0xb41f96++)_0x117a76[_0x30580b(0xe3)](_0x33b6c8[_0xb41f96])<0x0&&Object[_0x30580b(0xf0)][_0x30580b(0x96)]['call'](_0x40709b,_0x33b6c8[_0xb41f96])&&(_0x4722ae[_0x33b6c8[_0xb41f96]]=_0x40709b[_0x33b6c8[_0xb41f96]]);}return _0x4722ae;},W=_0x1f202f(function(_0x369cb6,_0x20f97a){var _0x64c88d=_0x239c0b,_0x4b94a4=_0x369cb6['icon'],_0x4aeb69=_0x369cb6['id'],_0x1f11ce=_0x369cb6[_0x64c88d(0x100)],_0x50c292=_0x369cb6[_0x64c88d(0xad)],_0x5ce5b4=Oe(_0x369cb6,[_0x64c88d(0xb5),'id',_0x64c88d(0x100),'extend']),_0x2f2cf3=_0x64c88d(0xbf)['concat'](_0x4aeb69,'\x20')['concat'](_0x1f11ce||'')[_0x64c88d(0x90)](),_0x3f0c18=_0x23f2e6('_'[_0x64c88d(0x8e)](Ne()));return Y(_0x4b94a4,''['concat'](_0x4aeb69),{'defIds':_0x4b94a4['defIds'],'idSuffix':_0x3f0c18[_0x64c88d(0xc9)]},c({'ref':_0x20f97a,'className':_0x2f2cf3},_0x5ce5b4),_0x50c292);});function Y(_0xb0c3c0,_0x11a9c4,_0x78e620,_0x5e6dc8,_0x4f274b){var _0xc78bac=_0x239c0b;return _0x488ebe(_0xb0c3c0[_0xc78bac(0xd8)],c(c({'key':_0x11a9c4},Ee(_0xb0c3c0,_0x78e620,_0x4f274b)),_0x5e6dc8),(we(_0xb0c3c0,_0x78e620)['children']||[])['map'](function(_0x2eb65e,_0x47c3e7){var _0x52bd27=_0xc78bac;return Y(_0x2eb65e,''[_0x52bd27(0x8e)](_0x11a9c4,'-')[_0x52bd27(0x8e)](_0xb0c3c0[_0x52bd27(0xd8)],'-')[_0x52bd27(0x8e)](_0x47c3e7),_0x78e620,void 0x0,_0x4f274b);}));}function Ee(_0x361ea0,_0x1c6c97,_0x30becb){var _0x5097d5=_0x239c0b,_0x3cb418=c({},_0x361ea0[_0x5097d5(0xfa)]);_0x30becb!=null&&_0x30becb[_0x5097d5(0xa5)]&&_0x3cb418[_0x5097d5(0xa0)]===_0x5097d5(0xa5)&&(_0x3cb418[_0x5097d5(0xa0)]=_0x30becb[_0x5097d5(0xa5)]),_0x361ea0[_0x5097d5(0xd8)]===_0x5097d5(0xea)&&_0x3cb418['id']&&(_0x3cb418['id']=_0x3cb418['id']+_0x1c6c97[_0x5097d5(0xa8)]),Object[_0x5097d5(0xfb)](_0x3cb418)[_0x5097d5(0xf8)](function(_0x47e692){var _0x128707=_0x5097d5,_0x2bcdc3=_0x47e692[0x0],_0x8361ba=_0x47e692[0x1];_0x2bcdc3===_0x128707(0xea)&&typeof _0x8361ba==_0x128707(0x74)&&(_0x3cb418[_0x2bcdc3]=_0x8361ba[_0x128707(0x97)](/url\(#(.*)\)/,_0x128707(0x6e)[_0x128707(0x8e)](_0x1c6c97['idSuffix'],')')));});var _0x748e28=_0x1c6c97[_0x5097d5(0xee)];return!_0x748e28||_0x748e28[_0x5097d5(0xd9)]===0x0||(_0x361ea0['tag']==='use'&&_0x3cb418[_0x5097d5(0x7b)]&&(_0x3cb418[_0x5097d5(0x7b)]=_0x3cb418[_0x5097d5(0x7b)]+_0x1c6c97['idSuffix']),Object[_0x5097d5(0xfb)](_0x3cb418)[_0x5097d5(0xf8)](function(_0xa238a2){var _0xb0bd73=_0x5097d5,_0x456803=_0xa238a2[0x0],_0x3eea57=_0xa238a2[0x1];typeof _0x3eea57==_0xb0bd73(0x74)&&(_0x3cb418[_0x456803]=_0x3eea57[_0xb0bd73(0x97)](/url\(#(.*)\)/,_0xb0bd73(0x6e)[_0xb0bd73(0x8e)](_0x1c6c97['idSuffix'],')')));})),_0x3cb418;}function we(_0x402b15,_0x5cec52){var _0x42aa1b=_0x239c0b,_0x8d354e,_0x48e499=_0x5cec52[_0x42aa1b(0xee)];return!_0x48e499||_0x48e499[_0x42aa1b(0xd9)]===0x0?_0x402b15:_0x402b15[_0x42aa1b(0xd8)]===_0x42aa1b(0x71)&&(!((_0x8d354e=_0x402b15[_0x42aa1b(0x86)])===null||_0x8d354e===void 0x0)&&_0x8d354e['length'])?c(c({},_0x402b15),{'children':_0x402b15[_0x42aa1b(0x86)]['map'](function(_0x4626ed){var _0x50d93b=_0x42aa1b;return typeof _0x4626ed[_0x50d93b(0xfa)]['id']==_0x50d93b(0x74)&&_0x48e499&&_0x48e499['includes'](_0x4626ed[_0x50d93b(0xfa)]['id'])?c(c({},_0x4626ed),{'attrs':c(c({},_0x4626ed[_0x50d93b(0xfa)]),{'id':_0x4626ed[_0x50d93b(0xfa)]['id']+_0x5cec52['idSuffix']})}):_0x4626ed;})}):_0x402b15;}function Ne(){var _0x5f362c=_0x239c0b;return Math[_0x5f362c(0x7a)]()[_0x5f362c(0x116)](0x24)['substring'](0x2,0x8);}W[_0x239c0b(0xec)]=_0x239c0b(0x84);var Ce={'tag':_0x239c0b(0x10b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x239c0b(0x7e),'viewBox':_0x239c0b(0xaf),'width':_0x239c0b(0x112),'height':_0x239c0b(0x112)},'children':[{'tag':_0x239c0b(0xf9),'attrs':{'fill':_0x239c0b(0xef),'d':_0x239c0b(0x10a)}},{'tag':_0x239c0b(0xf9),'attrs':{'fill':'currentColor','d':_0x239c0b(0xdc),'fillRule':_0x239c0b(0x87),'clipRule':'evenodd'}}]},B=_0x1f202f(function(_0x5e81df,_0x5653b0){var _0x576bc3=_0x239c0b;return _0x488ebe(W,Object['assign']({},_0x5e81df,{'id':_0x576bc3(0xcf),'ref':_0x5653b0,'icon':Ce}));});B[_0x239c0b(0xec)]='LiveShareIcon';class L extends _0x4f1a9a{constructor(){var _0x12bcc7=_0x239c0b;super(...arguments),d(this,_0x12bcc7(0x9f),new Set()),d(this,_0x12bcc7(0xdf),new Set());}[_0x239c0b(0xd7)](_0x3dc222){var _0x5eeaa6=_0x239c0b;return this[_0x5eeaa6(0x9f)][_0x5eeaa6(0xe5)](_0x3dc222),_0x4c1d53(()=>this[_0x5eeaa6(0x9f)][_0x5eeaa6(0x76)](_0x3dc222));}[_0x239c0b(0xc8)](_0xc551a){var _0x24b9fb=_0x239c0b;return this[_0x24b9fb(0xdf)]['add'](_0xc551a),_0x4c1d53(()=>this[_0x24b9fb(0xdf)][_0x24b9fb(0x76)](_0xc551a));}['shouldShareOperation'](_0x4604d9){var _0x3cbc7d=_0x239c0b;return this[_0x3cbc7d(0x9f)][_0x3cbc7d(0xce)](_0x4604d9);}[_0x239c0b(0x115)](_0x2811fe){var _0x346f83=_0x239c0b;return Array['from'](this['_reporters'])[_0x346f83(0x85)](_0x2c0025=>_0x2c0025(_0x2811fe));}}var De=Object[_0x239c0b(0xb9)],Z=(_0x5d282c,_0x11c6e0,_0x4a4f0a,_0x58f0e1)=>{var _0x190923=_0x239c0b;for(var _0x47a7f8=_0x58f0e1>0x1?void 0x0:_0x58f0e1?De(_0x11c6e0,_0x4a4f0a):_0x11c6e0,_0x63c21f=_0x5d282c[_0x190923(0xd9)]-0x1,_0x520c7e;_0x63c21f>=0x0;_0x63c21f--)(_0x520c7e=_0x5d282c[_0x63c21f])&&(_0x47a7f8=_0x520c7e(_0x47a7f8)||_0x47a7f8);return _0x47a7f8;},f=(_0x1e93ca,_0x5ce0d4)=>(_0x469231,_0x235636)=>_0x5ce0d4(_0x469231,_0x235636,_0x1e93ca);let m=class extends _0x1d314f{constructor(_0x5b0049,_0x2a0a9c,_0x4650c4){var _0x1066f2=_0x239c0b;super(),d(this,_0x1066f2(0xcd),new Map()),(this[_0x1066f2(0x6f)]=_0x5b0049,this[_0x1066f2(0x11a)]=_0x2a0a9c,this[_0x1066f2(0xb3)]=_0x4650c4,this[_0x1066f2(0xc4)]());}async['getLiveShareCoordinator'](_0x4f0631){var _0x1d2add=_0x239c0b;return this[_0x1d2add(0xcd)]['has'](_0x4f0631)||await this[_0x1d2add(0x72)](_0x4f0631),this[_0x1d2add(0xcd)]['get'](_0x4f0631);}[_0x239c0b(0xc4)](){var _0x211e2c=_0x239c0b;this[_0x211e2c(0x6f)]['getTypeOfUnitAdded$'](_0x2064ad[_0x211e2c(0xe9)])[_0x211e2c(0x7c)](_0x1ab3fe(this[_0x211e2c(0x92)]))[_0x211e2c(0xc5)](async _0x2c1c11=>{var _0x12719c=_0x211e2c;const _0x2105a5=_0x2c1c11['getUnitId']();this['_entities']['has'](_0x2105a5)||this[_0x12719c(0x72)](_0x2105a5);}),this[_0x211e2c(0x6f)]['getTypeOfUnitDisposed$'](_0x2064ad[_0x211e2c(0xe9)])[_0x211e2c(0x7c)](_0x1ab3fe(this['dispose$']))[_0x211e2c(0xc5)](_0x54823b=>{var _0x3dc258=_0x211e2c;const _0x2c9b86=_0x54823b[_0x3dc258(0xed)](),_0x280021=this[_0x3dc258(0xcd)][_0x3dc258(0x10c)](_0x2c9b86);_0x280021==null||_0x280021['dispose']();});}async[_0x239c0b(0x72)](_0x32cc57){var _0x48caaa=_0x239c0b;const _0x14ae83=await this[_0x48caaa(0xb3)][_0x48caaa(0xa6)](_0x32cc57),_0x5b04ba=this[_0x48caaa(0x11a)][_0x48caaa(0xd5)](C,_0x32cc57,_0x14ae83);return _0x5b04ba[_0x48caaa(0x109)](),this[_0x48caaa(0xcd)][_0x48caaa(0xbc)](_0x32cc57,_0x5b04ba),_0x5b04ba;}};m=Z([f(0x0,_0x2dfa5a),f(0x1,_0x118151(_0x22dad7)),f(0x2,_0x118151(_0x507993))],m);var h=(_0x189b4b=>(_0x189b4b['OFFLINE']='offline',_0x189b4b['IDLE']=_0x239c0b(0xf6),_0x189b4b[_0x239c0b(0xbb)]=_0x239c0b(0xba),_0x189b4b[_0x239c0b(0xf7)]=_0x239c0b(0x73),_0x189b4b[_0x239c0b(0x104)]=_0x239c0b(0x8f),_0x189b4b))(h||{});const xe=_0x239c0b(0x88),Le=0xc8;let C=class extends _0x1d314f{constructor(_0x594179,_0x6eb5cd,_0x18e283,_0x531359,_0x1ed166){var _0x21f7a7=_0x239c0b;super(),d(this,_0x21f7a7(0xb0),new _0x2d84f2(_0x21f7a7(0xf6))),d(this,'status$',this[_0x21f7a7(0xb0)][_0x21f7a7(0x83)]()),d(this,_0x21f7a7(0xc4),!0x1),d(this,_0x21f7a7(0xac),null),d(this,_0x21f7a7(0x81),null),(this[_0x21f7a7(0xd6)]=_0x594179,this[_0x21f7a7(0x89)]=_0x6eb5cd,this['_configService']=_0x18e283,this[_0x21f7a7(0x8b)]=_0x531359,this[_0x21f7a7(0xfc)]=_0x1ed166);}get[_0x239c0b(0xa9)](){var _0x19978d=_0x239c0b;return this[_0x19978d(0xb0)]['getValue']();}[_0x239c0b(0x103)](){var _0x428fcf=_0x239c0b,_0x27ebbb;(_0x27ebbb=this[_0x428fcf(0xac)])==null||_0x27ebbb[_0x428fcf(0x103)](),this[_0x428fcf(0xb0)]['next']('idle'),this[_0x428fcf(0xb0)][_0x428fcf(0xb1)]();}[_0x239c0b(0x109)](){var _0x3cd6a8=_0x239c0b;this[_0x3cd6a8(0xc4)]||(this[_0x3cd6a8(0xc4)]=!0x0,this[_0x3cd6a8(0x89)][_0x3cd6a8(0xff)][_0x3cd6a8(0x7c)](_0x1ab3fe(this[_0x3cd6a8(0x92)]))[_0x3cd6a8(0xc5)](_0x3209e2=>{var _0x214b5b=_0x3cd6a8;switch(_0x3209e2){case _0x5201e7[_0x214b5b(0xfd)]:this['_handleOffline']();break;case _0x5201e7[_0x214b5b(0x9e)]:this[_0x214b5b(0xd1)]();break;}}),this[_0x3cd6a8(0x89)]['event$']['pipe'](_0x1ab3fe(this[_0x3cd6a8(0x92)]))[_0x3cd6a8(0xc5)](_0x43ad90=>{var _0x1c5470=_0x3cd6a8;const {eventID:_0x158511}=_0x43ad90;switch(_0x158511){case _0x178878[_0x1c5470(0xcb)]:this[_0x1c5470(0xdd)](_0x43ad90);break;case _0x178878[_0x1c5470(0x113)]:this['_handleOperation'](_0x43ad90);break;case _0x178878[_0x1c5470(0x77)]:this['_handleTerminate']();break;case _0x178878['NEW_CHANGESETS']:this[_0x1c5470(0xe0)](_0x43ad90);break;}}));}[_0x239c0b(0xa7)](){var _0x182893=_0x239c0b;this[_0x182893(0x89)][_0x182893(0x10f)]({'eventID':_0x178878['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x182893(0xd6)],'userID':this[_0x182893(0x89)][_0x182893(0x111)]()}},this[_0x182893(0xd6)]);}[_0x239c0b(0xbe)](){var _0x3a2ea2=_0x239c0b;this[_0x3a2ea2(0xa9)]===_0x3a2ea2(0x8f)&&(this[_0x3a2ea2(0xb0)][_0x3a2ea2(0xc3)]('idle'),this['_collabSession'][_0x3a2ea2(0x10f)]({'eventID':_0x178878[_0x3a2ea2(0x77)],'data':{'unitID':this[_0x3a2ea2(0xd6)]}},this[_0x3a2ea2(0xd6)]));}[_0x239c0b(0x107)](){var _0x20254d=_0x239c0b;this[_0x20254d(0xa9)]===_0x20254d(0x73)&&(this['_status$']['next'](_0x20254d(0xba)),this[_0x20254d(0x80)]());}[_0x239c0b(0xa1)](){var _0x4a0661=_0x239c0b;this[_0x4a0661(0xa9)]==='following'&&this[_0x4a0661(0x79)]();}['_handleNewHost'](_0x323219){var _0x468d69=_0x239c0b;const {presenter:_0x1e636f}=_0x323219[_0x468d69(0x8a)],_0x416a32=this[_0x468d69(0x89)][_0x468d69(0x111)]();this[_0x468d69(0x81)]=_0x1e636f,_0x1e636f===_0x416a32?(this[_0x468d69(0x79)](),this[_0x468d69(0x114)]()):this[_0x468d69(0xa9)]!==_0x468d69(0x73)&&(this[_0x468d69(0xc2)](),this[_0x468d69(0x80)]());}[_0x239c0b(0xf2)](){var _0x45e2fe=_0x239c0b;const _0x255a78={'eventID':_0x178878[_0x45e2fe(0xd0)]};this[_0x45e2fe(0x89)][_0x45e2fe(0x10f)](_0x255a78,this['_unitID']);}[_0x239c0b(0xb2)](){var _0x4d4771=_0x239c0b;this['_presenter']=null,this[_0x4d4771(0xa9)]!==_0x4d4771(0x8f)&&this['_beIdle']();}[_0x239c0b(0xe0)](_0xb82fb2){var _0x264d17=_0x239c0b;if(this[_0x264d17(0xa9)]===_0x264d17(0xba)&&this[_0x264d17(0x81)]===_0xb82fb2[_0x264d17(0x8a)]['memberID']){const _0x45483a=_0x1265b1(_0xb82fb2[_0x264d17(0x8a)])[_0x264d17(0x70)]['reverse']()['find'](_0x404ead=>_0x404ead['id']===_0xf6ec2e['id']);if(_0x45483a){const _0x46300e=_0x45483a['params'][_0x264d17(0xe1)],_0x19f185=_0x45483a[_0x264d17(0x99)]['sheet']['id'];setTimeout(()=>{var _0x145ea5=_0x264d17;this[_0x145ea5(0xfc)][_0x145ea5(0xbd)](_0x2efdfd['id'],{'unitId':_0x46300e,'subUnitId':_0x19f185},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xf81e74=_0x239c0b;this[_0xf81e74(0xb0)]['next'](_0xf81e74(0x8f));const _0x54177a=new Map(),_0x2ff143=this[_0xf81e74(0xac)]=new _0x30b7f0();_0x2ff143[_0xf81e74(0xe5)](_0x4c1d53(()=>{var _0x929f95=_0xf81e74;_0x54177a[_0x929f95(0xf8)](_0x4551f6=>_0x4551f6[_0x929f95(0xb1)]()),_0x54177a[_0x929f95(0x82)]();})),_0x2ff143[_0xf81e74(0xe5)](this[_0xf81e74(0xfc)][_0xf81e74(0x9a)](_0x16ad27=>{var _0x5eb07c=_0xf81e74,_0x5bf32d;if(_0x16ad27['type']!==_0x2b2304[_0x5eb07c(0xd3)]||!this['_liveShareService']['shouldShareOperation'](_0x16ad27['id']))return;const {id:_0x9ce794}=_0x16ad27;let _0x5585f2;_0x54177a[_0x5eb07c(0xce)](_0x9ce794)?_0x5585f2=_0x54177a[_0x5eb07c(0x10c)](_0x9ce794):(_0x5585f2=new _0x1eb573(),_0x54177a['set'](_0x9ce794,_0x5585f2),_0x5585f2['pipe'](_0x32fc25((_0x5bf32d=this[_0x5eb07c(0x94)][_0x5eb07c(0xca)](xe))!=null?_0x5bf32d:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5eb07c(0xc5)](_0x1eb9b4=>{var _0x21f09e=_0x5eb07c;this[_0x21f09e(0x89)][_0x21f09e(0x10f)]({'eventID':_0x178878[_0x21f09e(0x113)],'data':{'unitID':this[_0x21f09e(0xd6)],'operations':{[_0x1eb9b4['id']]:{'id':_0x1eb9b4['id'],'params':JSON[_0x21f09e(0xdb)](_0x1eb9b4[_0x21f09e(0x99)])}}}},this[_0x21f09e(0xd6)]);})),_0x5585f2['next'](_0x16ad27);})),this[_0xf81e74(0x8b)]['getInitialStates'](this[_0xf81e74(0xd6)])[_0xf81e74(0xf8)](_0x297fb2=>this[_0xf81e74(0x89)][_0xf81e74(0x10f)]({'eventID':_0x178878['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xf81e74(0xd6)],'operations':{[_0x297fb2['id']]:{'id':_0x297fb2['id'],'params':JSON[_0xf81e74(0xdb)](_0x297fb2[_0xf81e74(0x99)])}}}},this[_0xf81e74(0xd6)]));}['_stopPresenting'](){var _0x573447=_0x239c0b,_0x3dcf4f;this[_0x573447(0xb0)][_0x573447(0xc3)](_0x573447(0xf6)),(_0x3dcf4f=this[_0x573447(0xac)])==null||_0x3dcf4f[_0x573447(0x103)](),this['_commandDisposable']=null;}[_0x239c0b(0x80)](){var _0x4682f9=_0x239c0b,_0xe2ecd4;(_0xe2ecd4=this[_0x4682f9(0xac)])==null||_0xe2ecd4[_0x4682f9(0x103)](),this[_0x4682f9(0xb0)][_0x4682f9(0xc3)]('following');}[_0x239c0b(0xd4)](){var _0x153251=_0x239c0b,_0x1ac8e4;this[_0x153251(0xb0)][_0x153251(0xc3)](_0x153251(0xf6)),(_0x1ac8e4=this[_0x153251(0xac)])==null||_0x1ac8e4[_0x153251(0x103)](),this[_0x153251(0xac)]=null;}[_0x239c0b(0x79)](){var _0x111c98=_0x239c0b,_0x2e1805;this[_0x111c98(0xb0)]['next'](_0x111c98(0x73)),(_0x2e1805=this[_0x111c98(0xac)])==null||_0x2e1805[_0x111c98(0x103)]();}[_0x239c0b(0xc0)](_0x30fafa){var _0x2ab19c=_0x239c0b;if(['presenting',_0x2ab19c(0x73),_0x2ab19c(0xae)]['includes'](this[_0x2ab19c(0xa9)])||!_0x30fafa[_0x2ab19c(0x8a)][_0x2ab19c(0xde)]||_0x30fafa[_0x2ab19c(0x8a)][_0x2ab19c(0xde)]===this[_0x2ab19c(0x89)][_0x2ab19c(0x111)]())return;this[_0x2ab19c(0xa9)]===_0x2ab19c(0xf6)&&this['_startFollowing']();const _0x34fa5d=_0x30fafa[_0x2ab19c(0x8a)][_0x2ab19c(0x93)];Object['values'](_0x34fa5d)[_0x2ab19c(0xf8)](_0x3daea8=>{var _0x43df1a=_0x2ab19c;this[_0x43df1a(0xfc)]['executeCommand'](_0x3daea8['id'],_0x3daea8[_0x43df1a(0x99)]?JSON[_0x43df1a(0x7f)](_0x3daea8[_0x43df1a(0x99)]):null,{'fromCollab':!0x0});});}[_0x239c0b(0xb4)](){var _0x2e2ea9=_0x239c0b,_0x4266ad;this[_0x2e2ea9(0xb0)][_0x2e2ea9(0xc3)](_0x2e2ea9(0xae)),(_0x4266ad=this['_commandDisposable'])==null||_0x4266ad[_0x2e2ea9(0x103)]();}[_0x239c0b(0xd1)](){var _0x3c2846=_0x239c0b;this[_0x3c2846(0xb0)][_0x3c2846(0xc3)](_0x3c2846(0xf6)),this[_0x3c2846(0xf2)]();}};C=Z([f(0x2,_0xb381cc),f(0x3,_0x118151(L)),f(0x4,_0x5034b0)],C);function ye(){var _0x1b201b=_0x239c0b;const _0x171a12=_0x42b623(m),_0x485c33=_0x42b623(_0x2dfa5a),_0x5910a5=_0x135486(()=>_0x485c33[_0x1b201b(0xaa)](_0x2064ad[_0x1b201b(0xe9)]),void 0x0,!0x1,[]),[_0x4738d6,_0x4541f1]=_0x3852ae(null),[_0x4ba582,_0x41e2e1]=_0x3852ae(h['IDLE']),_0x3b83a8=_0x23f2e6(null);return _0x198eb4(()=>(_0x5910a5&&_0x171a12[_0x1b201b(0x117)](_0x5910a5[_0x1b201b(0xed)]())[_0x1b201b(0x9b)](_0x48c28c=>{var _0x3b0361=_0x1b201b;_0x4541f1(_0x48c28c),_0x3b83a8[_0x3b0361(0xc9)]=_0x48c28c[_0x3b0361(0x75)]['subscribe'](_0x110bb8=>{_0x41e2e1(_0x110bb8);});}),()=>{var _0x463b18=_0x1b201b,_0x58ae4e;(_0x58ae4e=_0x3b83a8[_0x463b18(0xc9)])==null||_0x58ae4e[_0x463b18(0x119)](),_0x3b83a8[_0x463b18(0xc9)]=null;}),[_0x5910a5,_0x171a12]),_0x4738d6?_0x47e17a(_0x2b68e4,{'align':_0x1b201b(0x9c),'disabled':_0x4ba582===h[_0x1b201b(0xfd)],'className':_0x1b201b(0xa4),'overlay':_0x47e17a(Re,{'status':_0x4ba582,'coordinator':_0x4738d6}),'children':_0x47e17a('button',{'className':_0xc992a1(_0x1b201b(0x10e),{'univer-cursor-not-allowed':_0x4ba582===h[_0x1b201b(0xfd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4ba582!==h[_0x1b201b(0xfd)]}),'type':'button','children':_0x47e17a(B,{'className':_0x1b201b(0x105)})})}):null;}function Re(_0x291c13){var _0x4c1bd7=_0x239c0b;const {status:_0xb058af,coordinator:_0xe08f44}=_0x291c13;switch(_0xb058af){case h[_0x4c1bd7(0x78)]:return _0x47e17a(Pe,{'coordinator':_0xe08f44});case h[_0x4c1bd7(0xbb)]:return _0x47e17a(Ae,{'coordinator':_0xe08f44});case h['NOT_FOLLOWING']:return _0x47e17a(Te,{'coordinator':_0xe08f44});case h[_0x4c1bd7(0xfd)]:return _0x47e17a(Fe,{});case h['PRESENTING']:return _0x47e17a($e,{'coordinator':_0xe08f44});default:return null;}}function Pe(_0x47d11a){var _0x3a3262=_0x239c0b;const {coordinator:_0x4ecdd0}=_0x47d11a;return _0x4e59d3(_0x440c44,{'children':[_0x47e17a(_0x3a3262(0xe8),{'className':_0x3a3262(0x10d),'children':_0x3a3262(0x95)}),_0x47e17a(_0x1e74fe,{'onClick':()=>_0x4ecdd0[_0x3a3262(0xa7)](),'children':'Start'})]});}function Ae(_0xc065c5){var _0x2e1ed6=_0x239c0b;const {coordinator:_0x415f7f}=_0xc065c5;return _0x4e59d3(_0x440c44,{'children':[_0x47e17a(_0x2e1ed6(0xe8),{'className':_0x2e1ed6(0x10d),'children':_0x2e1ed6(0xf1)}),_0x47e17a(_0x1e74fe,{'onClick':()=>_0x415f7f[_0x2e1ed6(0xa1)](),'children':_0x2e1ed6(0xe4)})]});}function Te(_0x4ab611){var _0x3f3b33=_0x239c0b;const {coordinator:_0x549ca0}=_0x4ab611;return _0x4e59d3(_0x440c44,{'children':[_0x47e17a(_0x3f3b33(0xe8),{'className':_0x3f3b33(0x10d),'children':_0x3f3b33(0xcc)}),_0x47e17a(_0x1e74fe,{'variant':'text','onClick':()=>_0x549ca0['startFollowing'](),'children':_0x3f3b33(0x106)})]});}function $e(_0x4d9438){var _0x4f5f9d=_0x239c0b;const {coordinator:_0x52bce8}=_0x4d9438;return _0x4e59d3(_0x440c44,{'children':[_0x47e17a(_0x4f5f9d(0xe8),{'className':_0x4f5f9d(0x10d),'children':_0x4f5f9d(0x9d)}),_0x47e17a(_0x1e74fe,{'variant':_0x4f5f9d(0xc6),'onClick':()=>_0x52bce8['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x3fbdeb=_0x239c0b;return _0x47e17a(_0x440c44,{'children':_0x3fbdeb(0xfe)});}var He=Object[_0x239c0b(0xb9)],je=(_0x5ba463,_0x3ccafe,_0x3af7ca,_0x315723)=>{for(var _0x1be4c9=_0x315723>0x1?void 0x0:_0x315723?He(_0x3ccafe,_0x3af7ca):_0x3ccafe,_0x1e7fa9=_0x5ba463['length']-0x1,_0x229432;_0x1e7fa9>=0x0;_0x1e7fa9--)(_0x229432=_0x5ba463[_0x1e7fa9])&&(_0x1be4c9=_0x229432(_0x1be4c9)||_0x1be4c9);return _0x1be4c9;},T=(_0x50fa50,_0x52b515)=>(_0x38a856,_0x410c49)=>_0x52b515(_0x38a856,_0x410c49,_0x50fa50);let I=class extends _0x4f1a9a{constructor(_0xe7b520,_0x4a2e0e){var _0x352572=_0x239c0b;super(),this[_0x352572(0x11a)]=_0xe7b520,this['_uiPartsService']=_0x4a2e0e,this[_0x352572(0xe2)]();}[_0x239c0b(0xe2)](){var _0x8e36be=_0x239c0b;this[_0x8e36be(0xe6)](this['_uiPartsService'][_0x8e36be(0x91)](_0x325284[_0x8e36be(0xd2)],()=>_0x2ac9c5(ye,this['_injector'])));}};I=je([T(0x0,_0x118151(_0x22dad7)),T(0x1,_0x4acb5d)],I);const Ue=_0x239c0b(0x8d),$={};var Ve=Object[_0x239c0b(0xb9)],Me=(_0xf337a4,_0x458a30,_0x3840d9,_0x7959e0)=>{var _0x3243fd=_0x239c0b;for(var _0xb9eb40=_0x7959e0>0x1?void 0x0:_0x7959e0?Ve(_0x458a30,_0x3840d9):_0x458a30,_0x2806be=_0xf337a4[_0x3243fd(0xd9)]-0x1,_0x33a161;_0x2806be>=0x0;_0x2806be--)(_0x33a161=_0xf337a4[_0x2806be])&&(_0xb9eb40=_0x33a161(_0xb9eb40)||_0xb9eb40);return _0xb9eb40;},ke=(_0x2cf8cc,_0x2b5aaf)=>(_0x2bde50,_0x46da27)=>_0x2b5aaf(_0x2bde50,_0x46da27,_0x2cf8cc);let b=class extends _0x4f1a9a{constructor(_0x43e7c0){var _0x3ee693=_0x239c0b;super(),this[_0x3ee693(0x8b)]=_0x43e7c0,this['_init']();}[_0x239c0b(0xc4)](){var _0x8b159f=_0x239c0b;[_0x4dd051['id'],_0x176684['id'],_0x2efdfd['id']][_0x8b159f(0xf8)](_0x599527=>{var _0x36d546=_0x8b159f;this['disposeWithMe'](this[_0x36d546(0x8b)][_0x36d546(0xd7)](_0x599527));});}};b=Me([ke(0x0,_0x118151(L))],b);function _0x2444(_0x4ab1f7,_0x721903){var _0x842eee=_0x842e();return _0x2444=function(_0x2444cf,_0x25e9b0){_0x2444cf=_0x2444cf-0x6e;var _0x1d3122=_0x842eee[_0x2444cf];return _0x1d3122;},_0x2444(_0x4ab1f7,_0x721903);}var Ge=Object[_0x239c0b(0xa2)],We=Object[_0x239c0b(0xb9)],Ye=(_0x3ff4a6,_0x405254,_0x38219e)=>_0x405254 in _0x3ff4a6?Ge(_0x3ff4a6,_0x405254,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38219e}):_0x3ff4a6[_0x405254]=_0x38219e,Be=(_0x3dcdf4,_0x17ec9b,_0x3c42e3,_0x4309f8)=>{for(var _0x2ed27c=_0x4309f8>0x1?void 0x0:_0x4309f8?We(_0x17ec9b,_0x3c42e3):_0x17ec9b,_0x2169aa=_0x3dcdf4['length']-0x1,_0x223936;_0x2169aa>=0x0;_0x2169aa--)(_0x223936=_0x3dcdf4[_0x2169aa])&&(_0x2ed27c=_0x223936(_0x2ed27c)||_0x2ed27c);return _0x2ed27c;},F=(_0x5c74bc,_0x5c77fa)=>(_0x59555d,_0x163e5f)=>_0x5c77fa(_0x59555d,_0x163e5f,_0x5c74bc),J=(_0x191287,_0x168b73,_0x1d8ab2)=>Ye(_0x191287,typeof _0x168b73!='symbol'?_0x168b73+'':_0x168b73,_0x1d8ab2);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x5cfc72{constructor(_0x512923=$,_0x1b8c2a,_0x240484){var _0x196d4c=_0x239c0b;super(),this['_config']=_0x512923,this[_0x196d4c(0x11a)]=_0x1b8c2a,this['_configService']=_0x240484;const {..._0x2d8159}=_0x27fc22({},$,this[_0x196d4c(0xe7)]);this[_0x196d4c(0x94)][_0x196d4c(0xda)](Ue,_0x2d8159);}['onStarting'](){var _0x34f6c4=_0x239c0b;_0x3dd7c3(this[_0x34f6c4(0x11a)],_0x5b841f([[L],[m],[b],[I]],this[_0x34f6c4(0xe7)][_0x34f6c4(0x101)])),_0x29821e(this['_injector'],[[b]]);}[_0x239c0b(0xc7)](){var _0x151c57=_0x239c0b;_0x29821e(this[_0x151c57(0x11a)],[[I]]);}};J(O,_0x239c0b(0xb8),_0x2064ad[_0x239c0b(0x11b)]),J(O,_0x239c0b(0xb7),Ze),O=Be([_0x441003(_0x494b9d),F(0x1,_0x118151(_0x22dad7)),F(0x2,_0xb381cc)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x327e99=_0x3688;(function(_0x2f5a52,_0x1d1acd){var _0x45ca94=_0x3688,_0x2db100=_0x2f5a52();while(!![]){try{var _0x3ff171=parseInt(_0x45ca94(0x8e))/0x1+parseInt(_0x45ca94(0xe5))/0x2+-parseInt(_0x45ca94(0xdc))/0x3+parseInt(_0x45ca94(0x88))/0x4*(-parseInt(_0x45ca94(0x6c))/0x5)+parseInt(_0x45ca94(0xea))/0x6*(-parseInt(_0x45ca94(0xab))/0x7)+-parseInt(_0x45ca94(0x7a))/0x8*(parseInt(_0x45ca94(0x70))/0x9)+parseInt(_0x45ca94(0xf6))/0xa;if(_0x3ff171===_0x1d1acd)break;else _0x2db100['push'](_0x2db100['shift']());}catch(_0x44d1ed){_0x2db100['push'](_0x2db100['shift']());}}}(_0x3700,0x6c1d9));var q=Object['defineProperty'],z=(_0x5b270f,_0x442639,_0x138dd8)=>_0x442639 in _0x5b270f?q(_0x5b270f,_0x442639,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x138dd8}):_0x5b270f[_0x442639]=_0x138dd8,d=(_0x4f288f,_0x134075,_0x231e9b)=>z(_0x4f288f,typeof _0x134075!=_0x327e99(0x110)?_0x134075+'':_0x134075,_0x231e9b);import{Disposable as _0x5bd465,toDisposable as _0x2fd3a3,IUniverInstanceService as _0x43cb00,Inject as _0x322c89,Injector as _0x5c2be7,IConfigService as _0x155baf,ICommandService as _0x20c766,RxDisposable as _0x354256,UniverInstanceType as _0x3a995a,DisposableCollection as _0x5aba15,CommandType as _0x3665fe,DependentOn as _0x19b5d5,Plugin as _0x219943,merge as _0x156a51,registerDependencies as _0x14872e,mergeOverrideWithDependencies as _0x56051a,touchDependencies as _0x25c9a6}from'@univerjs/core';import{useDependency as _0x52f11b,useObservable as _0x999678,IUIPartsService as _0xc8b11c,BuiltInUIPart as _0xfe26a1,connectInjector as _0x3de016}from'@univerjs/ui';import{jsx as _0x3c1611,jsxs as _0x440d17,Fragment as _0x3e88f6}from'react/jsx-runtime';import{Dropdown as _0x58654a,clsx as _0x4c2d4b,Button as _0x5087e0}from'@univerjs/design';import{forwardRef as _0xc91793,useRef as _0x5a6ac8,createElement as _0x3a9eb0,useState as _0x2ab18d,useEffect as _0x20b184}from'react';import{CollaborationEvent as _0x436ce5,parseProtocolChangeset as _0x41dbe4}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x464491,SessionStatus as _0xec3b07,UniverCollaborationClientPlugin as _0x2156c1}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x134af5,SetWorksheetActiveOperation as _0x3d1e6a}from'@univerjs/sheets';import{BehaviorSubject as _0x217b49,Subject as _0x4b9add}from'rxjs';import{takeUntil as _0x58b5ad,throttleTime as _0x49ae5d}from'rxjs/operators';import{SetZoomRatioOperation as _0x4a29e4,SetScrollOperation as _0x2ca7f0}from'@univerjs/sheets-ui';var c=function(){var _0x3ae2ea=_0x327e99;return c=Object[_0x3ae2ea(0x107)]||function(_0x192e6e){var _0x3eab5e=_0x3ae2ea;for(var _0x1903c6,_0x27ecdf=0x1,_0x556a93=arguments[_0x3eab5e(0xd1)];_0x27ecdf<_0x556a93;_0x27ecdf++){_0x1903c6=arguments[_0x27ecdf];for(var _0x59d558 in _0x1903c6)Object['prototype'][_0x3eab5e(0x7d)][_0x3eab5e(0xd8)](_0x1903c6,_0x59d558)&&(_0x192e6e[_0x59d558]=_0x1903c6[_0x59d558]);}return _0x192e6e;},c[_0x3ae2ea(0xae)](this,arguments);},Oe=function(_0x381cb6,_0x49a668){var _0x31e99c=_0x327e99,_0x466bcb={};for(var _0x18df95 in _0x381cb6)Object[_0x31e99c(0xa1)][_0x31e99c(0x7d)][_0x31e99c(0xd8)](_0x381cb6,_0x18df95)&&_0x49a668[_0x31e99c(0xb4)](_0x18df95)<0x0&&(_0x466bcb[_0x18df95]=_0x381cb6[_0x18df95]);if(_0x381cb6!=null&&typeof Object[_0x31e99c(0xc8)]==_0x31e99c(0x10a)){for(var _0x23c8c2=0x0,_0x18df95=Object[_0x31e99c(0xc8)](_0x381cb6);_0x23c8c2<_0x18df95[_0x31e99c(0xd1)];_0x23c8c2++)_0x49a668[_0x31e99c(0xb4)](_0x18df95[_0x23c8c2])<0x0&&Object[_0x31e99c(0xa1)]['propertyIsEnumerable']['call'](_0x381cb6,_0x18df95[_0x23c8c2])&&(_0x466bcb[_0x18df95[_0x23c8c2]]=_0x381cb6[_0x18df95[_0x23c8c2]]);}return _0x466bcb;},W=_0xc91793(function(_0x6c243c,_0x211825){var _0x3c4b46=_0x327e99,_0x3c8218=_0x6c243c[_0x3c4b46(0x9c)],_0x58ab1c=_0x6c243c['id'],_0x14f147=_0x6c243c['className'],_0x41c4d7=_0x6c243c[_0x3c4b46(0x11c)],_0x6fbe0e=Oe(_0x6c243c,[_0x3c4b46(0x9c),'id',_0x3c4b46(0xba),_0x3c4b46(0x11c)]),_0x48b0f4=_0x3c4b46(0xf1)['concat'](_0x58ab1c,'\x20')['concat'](_0x14f147||'')[_0x3c4b46(0xbb)](),_0x22c1a8=_0x5a6ac8('_'[_0x3c4b46(0xb5)](Ne()));return Y(_0x3c8218,''[_0x3c4b46(0xb5)](_0x58ab1c),{'defIds':_0x3c8218[_0x3c4b46(0x6b)],'idSuffix':_0x22c1a8[_0x3c4b46(0x10f)]},c({'ref':_0x211825,'className':_0x48b0f4},_0x6fbe0e),_0x41c4d7);});function _0x3688(_0x329e62,_0x542e27){var _0x370032=_0x3700();return _0x3688=function(_0x368811,_0x542c4e){_0x368811=_0x368811-0x6b;var _0x3bbac5=_0x370032[_0x368811];return _0x3bbac5;},_0x3688(_0x329e62,_0x542e27);}function Y(_0xeb623c,_0x6911a1,_0x57fe7e,_0x454e08,_0x3a6054){var _0x54f2f9=_0x327e99;return _0x3a9eb0(_0xeb623c[_0x54f2f9(0xda)],c(c({'key':_0x6911a1},Ee(_0xeb623c,_0x57fe7e,_0x3a6054)),_0x454e08),(we(_0xeb623c,_0x57fe7e)[_0x54f2f9(0x86)]||[])[_0x54f2f9(0xee)](function(_0x21652c,_0x290144){var _0x13289b=_0x54f2f9;return Y(_0x21652c,''['concat'](_0x6911a1,'-')['concat'](_0xeb623c[_0x13289b(0xda)],'-')[_0x13289b(0xb5)](_0x290144),_0x57fe7e,void 0x0,_0x3a6054);}));}function Ee(_0x4efcf4,_0x1caf9b,_0x2ff7c9){var _0x53e28c=_0x327e99,_0x4adb43=c({},_0x4efcf4['attrs']);_0x2ff7c9!=null&&_0x2ff7c9[_0x53e28c(0x8b)]&&_0x4adb43[_0x53e28c(0xe9)]===_0x53e28c(0x8b)&&(_0x4adb43[_0x53e28c(0xe9)]=_0x2ff7c9[_0x53e28c(0x8b)]),_0x4efcf4[_0x53e28c(0xda)]===_0x53e28c(0x99)&&_0x4adb43['id']&&(_0x4adb43['id']=_0x4adb43['id']+_0x1caf9b[_0x53e28c(0xfa)]),Object[_0x53e28c(0x9b)](_0x4adb43)[_0x53e28c(0xcd)](function(_0x49086e){var _0x5bb195=_0x53e28c,_0x2a7d69=_0x49086e[0x0],_0x422665=_0x49086e[0x1];_0x2a7d69==='mask'&&typeof _0x422665==_0x5bb195(0xb8)&&(_0x4adb43[_0x2a7d69]=_0x422665[_0x5bb195(0x11e)](/url\(#(.*)\)/,'url(#$1'[_0x5bb195(0xb5)](_0x1caf9b[_0x5bb195(0xfa)],')')));});var _0x4cd989=_0x1caf9b['defIds'];return!_0x4cd989||_0x4cd989[_0x53e28c(0xd1)]===0x0||(_0x4efcf4[_0x53e28c(0xda)]===_0x53e28c(0x81)&&_0x4adb43[_0x53e28c(0xdf)]&&(_0x4adb43[_0x53e28c(0xdf)]=_0x4adb43[_0x53e28c(0xdf)]+_0x1caf9b[_0x53e28c(0xfa)]),Object['entries'](_0x4adb43)[_0x53e28c(0xcd)](function(_0x1ee9cd){var _0x56fe34=_0x53e28c,_0x7a5740=_0x1ee9cd[0x0],_0x164437=_0x1ee9cd[0x1];typeof _0x164437=='string'&&(_0x4adb43[_0x7a5740]=_0x164437['replace'](/url\(#(.*)\)/,_0x56fe34(0x85)[_0x56fe34(0xb5)](_0x1caf9b[_0x56fe34(0xfa)],')')));})),_0x4adb43;}function we(_0x4ff11b,_0x37e6a3){var _0xae17ea=_0x327e99,_0x2044e9,_0xf4ae1e=_0x37e6a3[_0xae17ea(0x6b)];return!_0xf4ae1e||_0xf4ae1e[_0xae17ea(0xd1)]===0x0?_0x4ff11b:_0x4ff11b[_0xae17ea(0xda)]===_0xae17ea(0x76)&&(!((_0x2044e9=_0x4ff11b[_0xae17ea(0x86)])===null||_0x2044e9===void 0x0)&&_0x2044e9[_0xae17ea(0xd1)])?c(c({},_0x4ff11b),{'children':_0x4ff11b[_0xae17ea(0x86)]['map'](function(_0x5abe70){var _0x203a28=_0xae17ea;return typeof _0x5abe70['attrs']['id']==_0x203a28(0xb8)&&_0xf4ae1e&&_0xf4ae1e['includes'](_0x5abe70[_0x203a28(0xdb)]['id'])?c(c({},_0x5abe70),{'attrs':c(c({},_0x5abe70['attrs']),{'id':_0x5abe70[_0x203a28(0xdb)]['id']+_0x37e6a3[_0x203a28(0xfa)]})}):_0x5abe70;})}):_0x4ff11b;}function _0x3700(){var _0x2b8e45=['shouldShareOperation','Stop\x20following','xlink:href','values','data','_status','OFFLINE','live-share-icon','581586QxFtVx','tryStartPresenting','SAME_OPERATION_SHARE_INTERVAL','registerSharedOperation','fill','8670vadRYF','status$','getValue','FOLLOWING','map','init','dispose$','univerjs-icon\x20univerjs-icon-','LIVESHARE_FETCH_OPERATIONS','_fetchOperations','complete','reverse','10656620wCszDd','_init','asObservable','currentColor','idSuffix','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleNewChangeSets','offline','_commandService','_configService','event$','from','has','executeCommand','memberID','add','presenting','assign','_status$','LIVESHARE_TERMINATE','function','pluginName','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','div','getOwnPropertyDescriptor','current','symbol','ONLINE','onStarting','_startFollowing','set','_reporters','createInstance','_startLiveShareCoordinator','LIVESHARE_REQUEST_HOST','startFollowing','getLiveShareCoordinator','registerInitialStateReporter','extend','NEW_CHANGESETS','replace','clear','defIds','25HBNqIe','stringify','mutations','_beIdle','162VVVApb','stopFollowing','_entities','_stopPresenting','pipe','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','defs','disposeWithMe','_commandDisposable','LiveShareIcon','389480dRgHpu','_handleOperation','default','hasOwnProperty','_collabSessionService','then','_handleNewHost','use','_injector','presenter','UniverIcon','url(#$1','children','getCurrentTypeOfUnit$','93292kRjNPB','You\x27re\x20presenting\x20the\x20document','_handleOnline','colorChannel1','override','_mountLiveShare','672011mAztgb','IDLE','_liveShareService','random','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','not-following','params','_handleTerminate','_univerInstanceService','type','_startPresenting','mask','next','entries','icon','operations','UNIVER_SHEET','LIVESHARE_OPERATION','_collabSession','prototype','getInitialStates','subscribe','PRESENTING','end','toString','sessionStatus$','svg','delete','following','259oUDnmZ','0\x200\x2017\x2017','evenodd','apply','1em','substring','requireSession','unitId','NOT_FOLLOWING','indexOf','concat','get','univer-size-4','string','getUnitId','className','trim','univer-mb-3\x20univer-w-full\x20univer-text-sm','getMemberID','LIVESHARE_NEW_HOST','_config','_sharedOperations','button','Present\x20this\x20document','dispose','live-share.config','send','path','UNIVER_UNKNOWN','getOwnPropertySymbols','defineProperty','HEADER_MENU','_unitID','setConfig','forEach','UNIVER_LIVE_SHARE_PLUGIN','displayName','idle','length','unsubscribe','OPERATION','_presenter','registerComponent','onCommandExecuted','stopPresenting','call','_uiPartsService','tag','attrs','1617645fsCgxw'];_0x3700=function(){return _0x2b8e45;};return _0x3700();}function Ne(){var _0xd6a5ca=_0x327e99;return Math[_0xd6a5ca(0x91)]()[_0xd6a5ca(0xa6)](0x24)[_0xd6a5ca(0xb0)](0x2,0x8);}W[_0x327e99(0xcf)]=_0x327e99(0x84);var Ce={'tag':_0x327e99(0xa8),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x327e99(0xac),'width':_0x327e99(0xaf),'height':'1em'},'children':[{'tag':_0x327e99(0xc6),'attrs':{'fill':_0x327e99(0xf9),'d':_0x327e99(0x75)}},{'tag':_0x327e99(0xc6),'attrs':{'fill':'currentColor','d':_0x327e99(0x10c),'fillRule':_0x327e99(0xad),'clipRule':'evenodd'}}]},B=_0xc91793(function(_0x25535b,_0x25c479){var _0x237eaf=_0x327e99;return _0x3a9eb0(W,Object[_0x237eaf(0x107)]({},_0x25535b,{'id':_0x237eaf(0xe4),'ref':_0x25c479,'icon':Ce}));});B['displayName']=_0x327e99(0x79);class L extends _0x5bd465{constructor(){var _0x5b67b3=_0x327e99;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x5b67b3(0x115),new Set());}[_0x327e99(0xe8)](_0x589f1d){var _0x510421=_0x327e99;return this[_0x510421(0xc0)]['add'](_0x589f1d),_0x2fd3a3(()=>this[_0x510421(0xc0)][_0x510421(0xa9)](_0x589f1d));}[_0x327e99(0x11b)](_0x286240){var _0x3e51b8=_0x327e99;return this[_0x3e51b8(0x115)][_0x3e51b8(0x105)](_0x286240),_0x2fd3a3(()=>this[_0x3e51b8(0x115)][_0x3e51b8(0xa9)](_0x286240));}[_0x327e99(0xdd)](_0x45dfbb){var _0x145acf=_0x327e99;return this[_0x145acf(0xc0)][_0x145acf(0x102)](_0x45dfbb);}[_0x327e99(0xa2)](_0xed0d51){var _0x41f794=_0x327e99;return Array[_0x41f794(0x101)](this[_0x41f794(0x115)])[_0x41f794(0xee)](_0x405406=>_0x405406(_0xed0d51));}}var De=Object[_0x327e99(0x10e)],Z=(_0x31538c,_0x340ccc,_0x1e4285,_0x3960ab)=>{for(var _0x61d9fa=_0x3960ab>0x1?void 0x0:_0x3960ab?De(_0x340ccc,_0x1e4285):_0x340ccc,_0x134096=_0x31538c['length']-0x1,_0x115d9a;_0x134096>=0x0;_0x134096--)(_0x115d9a=_0x31538c[_0x134096])&&(_0x61d9fa=_0x115d9a(_0x61d9fa)||_0x61d9fa);return _0x61d9fa;},f=(_0x45b57b,_0x5df7c9)=>(_0x2dc940,_0xb331f7)=>_0x5df7c9(_0x2dc940,_0xb331f7,_0x45b57b);let m=class extends _0x354256{constructor(_0x4b1c89,_0x20d0a6,_0x40fe64){var _0x2d5b48=_0x327e99;super(),d(this,'_entities',new Map()),(this[_0x2d5b48(0x96)]=_0x4b1c89,this[_0x2d5b48(0x82)]=_0x20d0a6,this['_collabSessionService']=_0x40fe64,this[_0x2d5b48(0xf7)]());}async[_0x327e99(0x11a)](_0x4e2682){var _0x236a87=_0x327e99;return this[_0x236a87(0x72)][_0x236a87(0x102)](_0x4e2682)||await this[_0x236a87(0x117)](_0x4e2682),this[_0x236a87(0x72)]['get'](_0x4e2682);}[_0x327e99(0xf7)](){var _0x50701e=_0x327e99;this[_0x50701e(0x96)]['getTypeOfUnitAdded$'](_0x3a995a['UNIVER_SHEET'])[_0x50701e(0x74)](_0x58b5ad(this[_0x50701e(0xf0)]))[_0x50701e(0xa3)](async _0x1c44d9=>{var _0x1ab681=_0x50701e;const _0x3e6a1c=_0x1c44d9[_0x1ab681(0xb9)]();this['_entities'][_0x1ab681(0x102)](_0x3e6a1c)||this[_0x1ab681(0x117)](_0x3e6a1c);}),this[_0x50701e(0x96)]['getTypeOfUnitDisposed$'](_0x3a995a[_0x50701e(0x9e)])['pipe'](_0x58b5ad(this[_0x50701e(0xf0)]))[_0x50701e(0xa3)](_0x4fd6be=>{var _0x19c403=_0x50701e;const _0x32de8b=_0x4fd6be[_0x19c403(0xb9)](),_0x199d3c=this[_0x19c403(0x72)][_0x19c403(0xb6)](_0x32de8b);_0x199d3c==null||_0x199d3c[_0x19c403(0xc3)]();});}async[_0x327e99(0x117)](_0x34fbd7){var _0x59e693=_0x327e99;const _0x3f4e96=await this[_0x59e693(0x7e)][_0x59e693(0xb1)](_0x34fbd7),_0x3fee51=this[_0x59e693(0x82)][_0x59e693(0x116)](C,_0x34fbd7,_0x3f4e96);return _0x3fee51[_0x59e693(0xef)](),this[_0x59e693(0x72)][_0x59e693(0x114)](_0x34fbd7,_0x3fee51),_0x3fee51;}};m=Z([f(0x0,_0x43cb00),f(0x1,_0x322c89(_0x5c2be7)),f(0x2,_0x322c89(_0x464491))],m);var h=(_0x40c159=>(_0x40c159[_0x327e99(0xe3)]='offline',_0x40c159[_0x327e99(0x8f)]=_0x327e99(0xd0),_0x40c159[_0x327e99(0xed)]=_0x327e99(0xaa),_0x40c159[_0x327e99(0xb3)]=_0x327e99(0x93),_0x40c159[_0x327e99(0xa4)]=_0x327e99(0x106),_0x40c159))(h||{});const xe=_0x327e99(0xe7),Le=0xc8;let C=class extends _0x354256{constructor(_0x13138c,_0x2efb69,_0x559f8a,_0x4a56e8,_0x46b814){var _0x3799c9=_0x327e99;super(),d(this,_0x3799c9(0x108),new _0x217b49(_0x3799c9(0xd0))),d(this,_0x3799c9(0xeb),this[_0x3799c9(0x108)][_0x3799c9(0xf8)]()),d(this,_0x3799c9(0xf7),!0x1),d(this,_0x3799c9(0x78),null),d(this,_0x3799c9(0xd4),null),(this['_unitID']=_0x13138c,this[_0x3799c9(0xa0)]=_0x2efb69,this[_0x3799c9(0xff)]=_0x559f8a,this[_0x3799c9(0x90)]=_0x4a56e8,this[_0x3799c9(0xfe)]=_0x46b814);}get['_status'](){var _0x6728ae=_0x327e99;return this[_0x6728ae(0x108)][_0x6728ae(0xec)]();}[_0x327e99(0xc3)](){var _0x1afc60=_0x327e99,_0x5b73eb;(_0x5b73eb=this['_commandDisposable'])==null||_0x5b73eb[_0x1afc60(0xc3)](),this[_0x1afc60(0x108)][_0x1afc60(0x9a)]('idle'),this[_0x1afc60(0x108)][_0x1afc60(0xf4)]();}['init'](){var _0x5d218f=_0x327e99;this[_0x5d218f(0xf7)]||(this[_0x5d218f(0xf7)]=!0x0,this[_0x5d218f(0xa0)][_0x5d218f(0xa7)][_0x5d218f(0x74)](_0x58b5ad(this[_0x5d218f(0xf0)]))[_0x5d218f(0xa3)](_0x25ceb6=>{var _0x227c5d=_0x5d218f;switch(_0x25ceb6){case _0xec3b07[_0x227c5d(0xe3)]:this['_handleOffline']();break;case _0xec3b07[_0x227c5d(0x111)]:this['_handleOnline']();break;}}),this[_0x5d218f(0xa0)][_0x5d218f(0x100)][_0x5d218f(0x74)](_0x58b5ad(this[_0x5d218f(0xf0)]))[_0x5d218f(0xa3)](_0x1a8470=>{var _0x198537=_0x5d218f;const {eventID:_0x4242e1}=_0x1a8470;switch(_0x4242e1){case _0x436ce5[_0x198537(0xbe)]:this[_0x198537(0x80)](_0x1a8470);break;case _0x436ce5[_0x198537(0x9f)]:this[_0x198537(0x7b)](_0x1a8470);break;case _0x436ce5['LIVESHARE_TERMINATE']:this[_0x198537(0x95)]();break;case _0x436ce5[_0x198537(0x11d)]:this[_0x198537(0xfc)](_0x1a8470);break;}}));}[_0x327e99(0xe6)](){var _0x2c6681=_0x327e99;this[_0x2c6681(0xa0)][_0x2c6681(0xc5)]({'eventID':_0x436ce5[_0x2c6681(0x118)],'data':{'unitID':this[_0x2c6681(0xcb)],'userID':this[_0x2c6681(0xa0)]['getMemberID']()}},this[_0x2c6681(0xcb)]);}[_0x327e99(0xd7)](){var _0x1025ac=_0x327e99;this[_0x1025ac(0xe2)]==='presenting'&&(this[_0x1025ac(0x108)]['next'](_0x1025ac(0xd0)),this[_0x1025ac(0xa0)][_0x1025ac(0xc5)]({'eventID':_0x436ce5[_0x1025ac(0x109)],'data':{'unitID':this[_0x1025ac(0xcb)]}},this[_0x1025ac(0xcb)]));}[_0x327e99(0x119)](){var _0x1d7d77=_0x327e99;this[_0x1d7d77(0xe2)]===_0x1d7d77(0x93)&&(this[_0x1d7d77(0x108)][_0x1d7d77(0x9a)](_0x1d7d77(0xaa)),this['_startFollowing']());}[_0x327e99(0x71)](){var _0x35fc2f=_0x327e99;this['_status']===_0x35fc2f(0xaa)&&this['_stopFollowing']();}[_0x327e99(0x80)](_0x578f0f){var _0xf4555a=_0x327e99;const {presenter:_0x41c05b}=_0x578f0f[_0xf4555a(0xe1)],_0x17d407=this['_collabSession'][_0xf4555a(0xbd)]();this['_presenter']=_0x41c05b,_0x41c05b===_0x17d407?(this['_stopFollowing'](),this[_0xf4555a(0x98)]()):this[_0xf4555a(0xe2)]!=='not-following'&&(this[_0xf4555a(0x73)](),this[_0xf4555a(0x113)]());}[_0x327e99(0xf3)](){var _0x4a32fd=_0x327e99;const _0x28ebba={'eventID':_0x436ce5[_0x4a32fd(0xf2)]};this[_0x4a32fd(0xa0)]['send'](_0x28ebba,this['_unitID']);}[_0x327e99(0x95)](){var _0x2efdf7=_0x327e99;this[_0x2efdf7(0xd4)]=null,this[_0x2efdf7(0xe2)]!==_0x2efdf7(0x106)&&this[_0x2efdf7(0x6f)]();}[_0x327e99(0xfc)](_0x162e12){var _0x424de5=_0x327e99;if(this[_0x424de5(0xe2)]===_0x424de5(0xaa)&&this[_0x424de5(0xd4)]===_0x162e12['data'][_0x424de5(0x104)]){const _0x172fe7=_0x41dbe4(_0x162e12[_0x424de5(0xe1)])[_0x424de5(0x6e)][_0x424de5(0xf5)]()['find'](_0x480de1=>_0x480de1['id']===_0x134af5['id']);if(_0x172fe7){const _0xcd2dd=_0x172fe7[_0x424de5(0x94)][_0x424de5(0xb2)],_0x29a8b7=_0x172fe7[_0x424de5(0x94)]['sheet']['id'];setTimeout(()=>{var _0x3559d9=_0x424de5;this['_commandService'][_0x3559d9(0x103)](_0x3d1e6a['id'],{'unitId':_0xcd2dd,'subUnitId':_0x29a8b7},{'fromCollab':!0x0});});}}}[_0x327e99(0x98)](){var _0x3da4a4=_0x327e99;this['_status$'][_0x3da4a4(0x9a)](_0x3da4a4(0x106));const _0x1bf93d=new Map(),_0x451f3e=this[_0x3da4a4(0x78)]=new _0x5aba15();_0x451f3e['add'](_0x2fd3a3(()=>{var _0x40b967=_0x3da4a4;_0x1bf93d[_0x40b967(0xcd)](_0x3d0cc8=>_0x3d0cc8['complete']()),_0x1bf93d[_0x40b967(0x11f)]();})),_0x451f3e[_0x3da4a4(0x105)](this[_0x3da4a4(0xfe)][_0x3da4a4(0xd6)](_0x8030da=>{var _0x138f06=_0x3da4a4,_0x49c68e;if(_0x8030da[_0x138f06(0x97)]!==_0x3665fe[_0x138f06(0xd3)]||!this['_liveShareService'][_0x138f06(0xdd)](_0x8030da['id']))return;const {id:_0x29da5b}=_0x8030da;let _0x24ab59;_0x1bf93d[_0x138f06(0x102)](_0x29da5b)?_0x24ab59=_0x1bf93d[_0x138f06(0xb6)](_0x29da5b):(_0x24ab59=new _0x4b9add(),_0x1bf93d[_0x138f06(0x114)](_0x29da5b,_0x24ab59),_0x24ab59[_0x138f06(0x74)](_0x49ae5d((_0x49c68e=this[_0x138f06(0xff)]['getConfig'](xe))!=null?_0x49c68e:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x138f06(0xa3)](_0x33e610=>{var _0x2388ae=_0x138f06;this['_collabSession'][_0x2388ae(0xc5)]({'eventID':_0x436ce5[_0x2388ae(0x9f)],'data':{'unitID':this[_0x2388ae(0xcb)],'operations':{[_0x33e610['id']]:{'id':_0x33e610['id'],'params':JSON['stringify'](_0x33e610['params'])}}}},this[_0x2388ae(0xcb)]);})),_0x24ab59['next'](_0x8030da);})),this['_liveShareService']['getInitialStates'](this[_0x3da4a4(0xcb)])[_0x3da4a4(0xcd)](_0x53e1e5=>this['_collabSession'][_0x3da4a4(0xc5)]({'eventID':_0x436ce5[_0x3da4a4(0x9f)],'data':{'unitID':this[_0x3da4a4(0xcb)],'operations':{[_0x53e1e5['id']]:{'id':_0x53e1e5['id'],'params':JSON[_0x3da4a4(0x6d)](_0x53e1e5[_0x3da4a4(0x94)])}}}},this[_0x3da4a4(0xcb)]));}[_0x327e99(0x73)](){var _0x185989=_0x327e99,_0x301739;this[_0x185989(0x108)]['next'](_0x185989(0xd0)),(_0x301739=this['_commandDisposable'])==null||_0x301739['dispose'](),this[_0x185989(0x78)]=null;}[_0x327e99(0x113)](){var _0x4578cb=_0x327e99,_0x86a397;(_0x86a397=this[_0x4578cb(0x78)])==null||_0x86a397['dispose'](),this[_0x4578cb(0x108)]['next'](_0x4578cb(0xaa));}[_0x327e99(0x6f)](){var _0x57ebe8=_0x327e99,_0x12b98d;this[_0x57ebe8(0x108)][_0x57ebe8(0x9a)]('idle'),(_0x12b98d=this[_0x57ebe8(0x78)])==null||_0x12b98d[_0x57ebe8(0xc3)](),this[_0x57ebe8(0x78)]=null;}['_stopFollowing'](){var _0xd956f5=_0x327e99,_0x17c684;this[_0xd956f5(0x108)][_0xd956f5(0x9a)](_0xd956f5(0x93)),(_0x17c684=this[_0xd956f5(0x78)])==null||_0x17c684['dispose']();}[_0x327e99(0x7b)](_0x5073e6){var _0x5bc075=_0x327e99;if([_0x5bc075(0x106),_0x5bc075(0x93),_0x5bc075(0xfd)]['includes'](this['_status'])||!_0x5073e6[_0x5bc075(0xe1)]['presenter']||_0x5073e6[_0x5bc075(0xe1)][_0x5bc075(0x83)]===this[_0x5bc075(0xa0)][_0x5bc075(0xbd)]())return;this[_0x5bc075(0xe2)]===_0x5bc075(0xd0)&&this['_startFollowing']();const _0x2607dc=_0x5073e6[_0x5bc075(0xe1)][_0x5bc075(0x9d)];Object[_0x5bc075(0xe0)](_0x2607dc)[_0x5bc075(0xcd)](_0x4ae3e4=>{var _0x4e0134=_0x5bc075;this[_0x4e0134(0xfe)][_0x4e0134(0x103)](_0x4ae3e4['id'],_0x4ae3e4['params']?JSON['parse'](_0x4ae3e4[_0x4e0134(0x94)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1313ea=_0x327e99,_0x33a332;this[_0x1313ea(0x108)][_0x1313ea(0x9a)](_0x1313ea(0xfd)),(_0x33a332=this[_0x1313ea(0x78)])==null||_0x33a332['dispose']();}[_0x327e99(0x8a)](){var _0x4bfb38=_0x327e99;this['_status$'][_0x4bfb38(0x9a)]('idle'),this[_0x4bfb38(0xf3)]();}};C=Z([f(0x2,_0x155baf),f(0x3,_0x322c89(L)),f(0x4,_0x20c766)],C);function ye(){var _0x445732=_0x327e99;const _0x4dbb5a=_0x52f11b(m),_0x59f803=_0x52f11b(_0x43cb00),_0x179da6=_0x999678(()=>_0x59f803[_0x445732(0x87)](_0x3a995a[_0x445732(0x9e)]),void 0x0,!0x1,[]),[_0x3e8bcf,_0x3f25bb]=_0x2ab18d(null),[_0x16dc69,_0x15e9f2]=_0x2ab18d(h['IDLE']),_0x31ab1b=_0x5a6ac8(null);return _0x20b184(()=>(_0x179da6&&_0x4dbb5a[_0x445732(0x11a)](_0x179da6[_0x445732(0xb9)]())[_0x445732(0x7f)](_0x1eb3ba=>{var _0x3e0866=_0x445732;_0x3f25bb(_0x1eb3ba),_0x31ab1b[_0x3e0866(0x10f)]=_0x1eb3ba[_0x3e0866(0xeb)]['subscribe'](_0x233f16=>{_0x15e9f2(_0x233f16);});}),()=>{var _0x4d589e=_0x445732,_0x10d370;(_0x10d370=_0x31ab1b[_0x4d589e(0x10f)])==null||_0x10d370[_0x4d589e(0xd2)](),_0x31ab1b[_0x4d589e(0x10f)]=null;}),[_0x179da6,_0x4dbb5a]),_0x3e8bcf?_0x3c1611(_0x58654a,{'align':_0x445732(0xa5),'disabled':_0x16dc69===h[_0x445732(0xe3)],'className':_0x445732(0x92),'overlay':_0x3c1611(Re,{'status':_0x16dc69,'coordinator':_0x3e8bcf}),'children':_0x3c1611(_0x445732(0xc1),{'className':_0x4c2d4b(_0x445732(0xfb),{'univer-cursor-not-allowed':_0x16dc69===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x16dc69!==h['OFFLINE']}),'type':_0x445732(0xc1),'children':_0x3c1611(B,{'className':_0x445732(0xb7)})})}):null;}function Re(_0x5b1157){var _0x40b133=_0x327e99;const {status:_0x35a836,coordinator:_0x457b6a}=_0x5b1157;switch(_0x35a836){case h[_0x40b133(0x8f)]:return _0x3c1611(Pe,{'coordinator':_0x457b6a});case h[_0x40b133(0xed)]:return _0x3c1611(Ae,{'coordinator':_0x457b6a});case h['NOT_FOLLOWING']:return _0x3c1611(Te,{'coordinator':_0x457b6a});case h['OFFLINE']:return _0x3c1611(Fe,{});case h[_0x40b133(0xa4)]:return _0x3c1611($e,{'coordinator':_0x457b6a});default:return null;}}function Pe(_0x450919){var _0x49631a=_0x327e99;const {coordinator:_0x1c6a96}=_0x450919;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611(_0x49631a(0x10d),{'className':_0x49631a(0xbc),'children':_0x49631a(0xc2)}),_0x3c1611(_0x5087e0,{'onClick':()=>_0x1c6a96['tryStartPresenting'](),'children':'Start'})]});}function Ae(_0x55e7da){var _0x2cc8de=_0x327e99;const {coordinator:_0x29bab4}=_0x55e7da;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611(_0x2cc8de(0x10d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x3c1611(_0x5087e0,{'onClick':()=>_0x29bab4[_0x2cc8de(0x71)](),'children':_0x2cc8de(0xde)})]});}function Te(_0x315389){var _0x27f81e=_0x327e99;const {coordinator:_0x1f4416}=_0x315389;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611(_0x27f81e(0x10d),{'className':_0x27f81e(0xbc),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3c1611(_0x5087e0,{'variant':'text','onClick':()=>_0x1f4416[_0x27f81e(0x119)](),'children':'Start\x20following'})]});}function $e(_0x206800){var _0x20efb1=_0x327e99;const {coordinator:_0x3d1b8e}=_0x206800;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x20efb1(0x89)}),_0x3c1611(_0x5087e0,{'variant':_0x20efb1(0x7c),'onClick':()=>_0x3d1b8e[_0x20efb1(0xd7)](),'children':'Stop\x20presenting'})]});}function Fe(){return _0x3c1611(_0x3e88f6,{'children':'You\x27are\x20offline.'});}var He=Object[_0x327e99(0x10e)],je=(_0x2491f7,_0x684c8f,_0x49ad1b,_0x130eb1)=>{var _0x8e64c3=_0x327e99;for(var _0x1f7318=_0x130eb1>0x1?void 0x0:_0x130eb1?He(_0x684c8f,_0x49ad1b):_0x684c8f,_0x304d24=_0x2491f7[_0x8e64c3(0xd1)]-0x1,_0x266b85;_0x304d24>=0x0;_0x304d24--)(_0x266b85=_0x2491f7[_0x304d24])&&(_0x1f7318=_0x266b85(_0x1f7318)||_0x1f7318);return _0x1f7318;},T=(_0x9515df,_0x205b52)=>(_0x28d989,_0x5c805d)=>_0x205b52(_0x28d989,_0x5c805d,_0x9515df);let I=class extends _0x5bd465{constructor(_0x1291ae,_0x5c8028){var _0x47e37d=_0x327e99;super(),this[_0x47e37d(0x82)]=_0x1291ae,this[_0x47e37d(0xd9)]=_0x5c8028,this[_0x47e37d(0x8d)]();}[_0x327e99(0x8d)](){var _0x4d9887=_0x327e99;this[_0x4d9887(0x77)](this['_uiPartsService'][_0x4d9887(0xd5)](_0xfe26a1[_0x4d9887(0xca)],()=>_0x3de016(ye,this['_injector'])));}};I=je([T(0x0,_0x322c89(_0x5c2be7)),T(0x1,_0xc8b11c)],I);const Ue=_0x327e99(0xc4),$={};var Ve=Object[_0x327e99(0x10e)],Me=(_0x3893f6,_0x4a3e69,_0x18b11e,_0x377e57)=>{for(var _0x45ce1d=_0x377e57>0x1?void 0x0:_0x377e57?Ve(_0x4a3e69,_0x18b11e):_0x4a3e69,_0x3d1faa=_0x3893f6['length']-0x1,_0x349abb;_0x3d1faa>=0x0;_0x3d1faa--)(_0x349abb=_0x3893f6[_0x3d1faa])&&(_0x45ce1d=_0x349abb(_0x45ce1d)||_0x45ce1d);return _0x45ce1d;},ke=(_0x59a17b,_0x15552d)=>(_0x1f1526,_0x48d6b6)=>_0x15552d(_0x1f1526,_0x48d6b6,_0x59a17b);let b=class extends _0x5bd465{constructor(_0x21a1b6){var _0x8cac12=_0x327e99;super(),this[_0x8cac12(0x90)]=_0x21a1b6,this[_0x8cac12(0xf7)]();}[_0x327e99(0xf7)](){[_0x4a29e4['id'],_0x2ca7f0['id'],_0x3d1e6a['id']]['forEach'](_0x4eef9d=>{var _0xbd4d24=_0x3688;this[_0xbd4d24(0x77)](this[_0xbd4d24(0x90)][_0xbd4d24(0xe8)](_0x4eef9d));});}};b=Me([ke(0x0,_0x322c89(L))],b);var Ge=Object[_0x327e99(0xc9)],We=Object['getOwnPropertyDescriptor'],Ye=(_0xc51dc8,_0x2943e6,_0x377435)=>_0x2943e6 in _0xc51dc8?Ge(_0xc51dc8,_0x2943e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x377435}):_0xc51dc8[_0x2943e6]=_0x377435,Be=(_0x13ab0,_0x46d566,_0x54c85e,_0x4403ee)=>{var _0x1b7b20=_0x327e99;for(var _0x464a5b=_0x4403ee>0x1?void 0x0:_0x4403ee?We(_0x46d566,_0x54c85e):_0x46d566,_0x2f2f4e=_0x13ab0[_0x1b7b20(0xd1)]-0x1,_0x478438;_0x2f2f4e>=0x0;_0x2f2f4e--)(_0x478438=_0x13ab0[_0x2f2f4e])&&(_0x464a5b=_0x478438(_0x464a5b)||_0x464a5b);return _0x464a5b;},F=(_0x4ffd8a,_0x3f3f48)=>(_0x406501,_0x850323)=>_0x3f3f48(_0x406501,_0x850323,_0x4ffd8a),J=(_0x398162,_0x1a589b,_0x4bfe4f)=>Ye(_0x398162,typeof _0x1a589b!=_0x327e99(0x110)?_0x1a589b+'':_0x1a589b,_0x4bfe4f);const Ze=_0x327e99(0xce);let O=class extends _0x219943{constructor(_0x4b18e9=$,_0x471e8b,_0x11b280){var _0x3da602=_0x327e99;super(),this['_config']=_0x4b18e9,this['_injector']=_0x471e8b,this['_configService']=_0x11b280;const {..._0xb4fdc8}=_0x156a51({},$,this[_0x3da602(0xbf)]);this[_0x3da602(0xff)][_0x3da602(0xcc)](Ue,_0xb4fdc8);}[_0x327e99(0x112)](){var _0x45f0cf=_0x327e99;_0x14872e(this[_0x45f0cf(0x82)],_0x56051a([[L],[m],[b],[I]],this[_0x45f0cf(0xbf)][_0x45f0cf(0x8c)])),_0x25c9a6(this[_0x45f0cf(0x82)],[[b]]);}['onRendered'](){var _0x25762c=_0x327e99;_0x25c9a6(this[_0x25762c(0x82)],[[I]]);}};J(O,'type',_0x3a995a[_0x327e99(0xc7)]),J(O,_0x327e99(0x10b),Ze),O=Be([_0x19b5d5(_0x2156c1),F(0x1,_0x322c89(_0x5c2be7)),F(0x2,_0x155baf)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x239c0b=_0x2444;(function(_0x2a54fa,_0xfc9e3){var _0xaead38=_0x2444,_0x59d8d8=_0x2a54fa();while(!![]){try{var _0x49f0b8=-parseInt(_0xaead38(0xab))/0x1+-parseInt(_0xaead38(0x110))/0x2+parseInt(_0xaead38(0x11c))/0x3+-parseInt(_0xaead38(0xf3))/0x4*(-parseInt(_0xaead38(0x108))/0x5)+parseInt(_0xaead38(0xb6))/0x6*(-parseInt(_0xaead38(0x98))/0x7)+-parseInt(_0xaead38(0x8c))/0x8+parseInt(_0xaead38(0x7d))/0x9*(parseInt(_0xaead38(0xa3))/0xa);if(_0x49f0b8===_0xfc9e3)break;else _0x59d8d8['push'](_0x59d8d8['shift']());}catch(_0x3f1b08){_0x59d8d8['push'](_0x59d8d8['shift']());}}}(_0x842e,0x6bf35));var q=Object[_0x239c0b(0xa2)],z=(_0xcaab1,_0x206ee7,_0x3e9bb5)=>_0x206ee7 in _0xcaab1?q(_0xcaab1,_0x206ee7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e9bb5}):_0xcaab1[_0x206ee7]=_0x3e9bb5,d=(_0x1f2312,_0xf91628,_0x63fef8)=>z(_0x1f2312,typeof _0xf91628!=_0x239c0b(0xc1)?_0xf91628+'':_0xf91628,_0x63fef8);import{Disposable as _0x4f1a9a,toDisposable as _0x4c1d53,IUniverInstanceService as _0x2dfa5a,Inject as _0x118151,Injector as _0x22dad7,IConfigService as _0xb381cc,ICommandService as _0x5034b0,RxDisposable as _0x1d314f,UniverInstanceType as _0x2064ad,DisposableCollection as _0x30b7f0,CommandType as _0x2b2304,DependentOn as _0x441003,Plugin as _0x5cfc72,merge as _0x27fc22,registerDependencies as _0x3dd7c3,mergeOverrideWithDependencies as _0x5b841f,touchDependencies as _0x29821e}from'@univerjs/core';import{useDependency as _0x42b623,useObservable as _0x135486,IUIPartsService as _0x4acb5d,BuiltInUIPart as _0x325284,connectInjector as _0x2ac9c5}from'@univerjs/ui';import{jsx as _0x47e17a,jsxs as _0x4e59d3,Fragment as _0x440c44}from'react/jsx-runtime';import{Dropdown as _0x2b68e4,clsx as _0xc992a1,Button as _0x1e74fe}from'@univerjs/design';import{forwardRef as _0x1f202f,useRef as _0x23f2e6,createElement as _0x488ebe,useState as _0x3852ae,useEffect as _0x198eb4}from'react';import{CollaborationEvent as _0x178878,parseProtocolChangeset as _0x1265b1}from'@univerjs-pro/collaboration';function _0x842e(){var _0x598ce9=['url(#$1','_univerInstanceService','mutations','defs','_startLiveShareCoordinator','not-following','string','status$','delete','LIVESHARE_TERMINATE','IDLE','_stopFollowing','random','xlink:href','pipe','3929895KswCCQ','none','parse','_startFollowing','_presenter','clear','asObservable','UniverIcon','map','children','evenodd','SAME_OPERATION_SHARE_INTERVAL','_collabSession','data','_liveShareService','2399336GiIrUp','live-share.config','concat','presenting','trim','registerComponent','dispose$','operations','_configService','Present\x20this\x20document','propertyIsEnumerable','replace','2933mvPYLi','params','onCommandExecuted','then','end','You\x27re\x20presenting\x20the\x20document','ONLINE','_sharedOperations','fill','stopFollowing','defineProperty','50dPGxyS','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','colorChannel1','requireSession','tryStartPresenting','idSuffix','_status','getCurrentTypeOfUnit$','773849fMpQXy','_commandDisposable','extend','offline','0\x200\x2017\x2017','_status$','complete','_handleTerminate','_collabSessionService','_handleOffline','icon','9054Xxolpk','pluginName','type','getOwnPropertyDescriptor','following','FOLLOWING','set','executeCommand','stopPresenting','univerjs-icon\x20univerjs-icon-','_handleOperation','symbol','_stopPresenting','next','_init','subscribe','default','onRendered','registerInitialStateReporter','current','getConfig','LIVESHARE_NEW_HOST','You\x27re\x20not\x20following\x20the\x20presenter','_entities','has','live-share-icon','LIVESHARE_FETCH_OPERATIONS','_handleOnline','HEADER_MENU','OPERATION','_beIdle','createInstance','_unitID','registerSharedOperation','tag','length','setConfig','stringify','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_handleNewHost','presenter','_reporters','_handleNewChangeSets','unitId','_mountLiveShare','indexOf','Stop\x20following','add','disposeWithMe','_config','div','UNIVER_SHEET','mask','getOwnPropertySymbols','displayName','getUnitId','defIds','currentColor','prototype','You\x27re\x20following\x20the\x20presenter','_fetchOperations','4MMPiLV','hasOwnProperty','function','idle','NOT_FOLLOWING','forEach','path','attrs','entries','_commandService','OFFLINE','You\x27are\x20offline.','sessionStatus$','className','override','apply','dispose','PRESENTING','univer-size-4','Start\x20following','startFollowing','1216335oVixEI','init','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','svg','get','univer-mb-3\x20univer-w-full\x20univer-text-sm','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','send','1473768fEyztU','getMemberID','1em','LIVESHARE_OPERATION','_startPresenting','getInitialStates','toString','getLiveShareCoordinator','call','unsubscribe','_injector','UNIVER_UNKNOWN','1375632mcyghN'];_0x842e=function(){return _0x598ce9;};return _0x842e();}import{CollaborationSessionService as _0x507993,SessionStatus as _0x5201e7,UniverCollaborationClientPlugin as _0x494b9d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xf6ec2e,SetWorksheetActiveOperation as _0x2efdfd}from'@univerjs/sheets';import{BehaviorSubject as _0x2d84f2,Subject as _0x1eb573}from'rxjs';import{takeUntil as _0x1ab3fe,throttleTime as _0x32fc25}from'rxjs/operators';import{SetZoomRatioOperation as _0x4dd051,SetScrollOperation as _0x176684}from'@univerjs/sheets-ui';var c=function(){var _0x40d572=_0x239c0b;return c=Object['assign']||function(_0x182557){var _0xe1a552=_0x2444;for(var _0x2bde42,_0x4069ef=0x1,_0x1eb97c=arguments[_0xe1a552(0xd9)];_0x4069ef<_0x1eb97c;_0x4069ef++){_0x2bde42=arguments[_0x4069ef];for(var _0x316ed8 in _0x2bde42)Object[_0xe1a552(0xf0)]['hasOwnProperty'][_0xe1a552(0x118)](_0x2bde42,_0x316ed8)&&(_0x182557[_0x316ed8]=_0x2bde42[_0x316ed8]);}return _0x182557;},c[_0x40d572(0x102)](this,arguments);},Oe=function(_0x40709b,_0x117a76){var _0x30580b=_0x239c0b,_0x4722ae={};for(var _0x33b6c8 in _0x40709b)Object[_0x30580b(0xf0)][_0x30580b(0xf4)]['call'](_0x40709b,_0x33b6c8)&&_0x117a76[_0x30580b(0xe3)](_0x33b6c8)<0x0&&(_0x4722ae[_0x33b6c8]=_0x40709b[_0x33b6c8]);if(_0x40709b!=null&&typeof Object[_0x30580b(0xeb)]==_0x30580b(0xf5)){for(var _0xb41f96=0x0,_0x33b6c8=Object[_0x30580b(0xeb)](_0x40709b);_0xb41f96<_0x33b6c8[_0x30580b(0xd9)];_0xb41f96++)_0x117a76[_0x30580b(0xe3)](_0x33b6c8[_0xb41f96])<0x0&&Object[_0x30580b(0xf0)][_0x30580b(0x96)]['call'](_0x40709b,_0x33b6c8[_0xb41f96])&&(_0x4722ae[_0x33b6c8[_0xb41f96]]=_0x40709b[_0x33b6c8[_0xb41f96]]);}return _0x4722ae;},W=_0x1f202f(function(_0x369cb6,_0x20f97a){var _0x64c88d=_0x239c0b,_0x4b94a4=_0x369cb6['icon'],_0x4aeb69=_0x369cb6['id'],_0x1f11ce=_0x369cb6[_0x64c88d(0x100)],_0x50c292=_0x369cb6[_0x64c88d(0xad)],_0x5ce5b4=Oe(_0x369cb6,[_0x64c88d(0xb5),'id',_0x64c88d(0x100),'extend']),_0x2f2cf3=_0x64c88d(0xbf)['concat'](_0x4aeb69,'\x20')['concat'](_0x1f11ce||'')[_0x64c88d(0x90)](),_0x3f0c18=_0x23f2e6('_'[_0x64c88d(0x8e)](Ne()));return Y(_0x4b94a4,''['concat'](_0x4aeb69),{'defIds':_0x4b94a4['defIds'],'idSuffix':_0x3f0c18[_0x64c88d(0xc9)]},c({'ref':_0x20f97a,'className':_0x2f2cf3},_0x5ce5b4),_0x50c292);});function Y(_0xb0c3c0,_0x11a9c4,_0x78e620,_0x5e6dc8,_0x4f274b){var _0xc78bac=_0x239c0b;return _0x488ebe(_0xb0c3c0[_0xc78bac(0xd8)],c(c({'key':_0x11a9c4},Ee(_0xb0c3c0,_0x78e620,_0x4f274b)),_0x5e6dc8),(we(_0xb0c3c0,_0x78e620)['children']||[])['map'](function(_0x2eb65e,_0x47c3e7){var _0x52bd27=_0xc78bac;return Y(_0x2eb65e,''[_0x52bd27(0x8e)](_0x11a9c4,'-')[_0x52bd27(0x8e)](_0xb0c3c0[_0x52bd27(0xd8)],'-')[_0x52bd27(0x8e)](_0x47c3e7),_0x78e620,void 0x0,_0x4f274b);}));}function Ee(_0x361ea0,_0x1c6c97,_0x30becb){var _0x5097d5=_0x239c0b,_0x3cb418=c({},_0x361ea0[_0x5097d5(0xfa)]);_0x30becb!=null&&_0x30becb[_0x5097d5(0xa5)]&&_0x3cb418[_0x5097d5(0xa0)]===_0x5097d5(0xa5)&&(_0x3cb418[_0x5097d5(0xa0)]=_0x30becb[_0x5097d5(0xa5)]),_0x361ea0[_0x5097d5(0xd8)]===_0x5097d5(0xea)&&_0x3cb418['id']&&(_0x3cb418['id']=_0x3cb418['id']+_0x1c6c97[_0x5097d5(0xa8)]),Object[_0x5097d5(0xfb)](_0x3cb418)[_0x5097d5(0xf8)](function(_0x47e692){var _0x128707=_0x5097d5,_0x2bcdc3=_0x47e692[0x0],_0x8361ba=_0x47e692[0x1];_0x2bcdc3===_0x128707(0xea)&&typeof _0x8361ba==_0x128707(0x74)&&(_0x3cb418[_0x2bcdc3]=_0x8361ba[_0x128707(0x97)](/url\(#(.*)\)/,_0x128707(0x6e)[_0x128707(0x8e)](_0x1c6c97['idSuffix'],')')));});var _0x748e28=_0x1c6c97[_0x5097d5(0xee)];return!_0x748e28||_0x748e28[_0x5097d5(0xd9)]===0x0||(_0x361ea0['tag']==='use'&&_0x3cb418[_0x5097d5(0x7b)]&&(_0x3cb418[_0x5097d5(0x7b)]=_0x3cb418[_0x5097d5(0x7b)]+_0x1c6c97['idSuffix']),Object[_0x5097d5(0xfb)](_0x3cb418)[_0x5097d5(0xf8)](function(_0xa238a2){var _0xb0bd73=_0x5097d5,_0x456803=_0xa238a2[0x0],_0x3eea57=_0xa238a2[0x1];typeof _0x3eea57==_0xb0bd73(0x74)&&(_0x3cb418[_0x456803]=_0x3eea57[_0xb0bd73(0x97)](/url\(#(.*)\)/,_0xb0bd73(0x6e)[_0xb0bd73(0x8e)](_0x1c6c97['idSuffix'],')')));})),_0x3cb418;}function we(_0x402b15,_0x5cec52){var _0x42aa1b=_0x239c0b,_0x8d354e,_0x48e499=_0x5cec52[_0x42aa1b(0xee)];return!_0x48e499||_0x48e499[_0x42aa1b(0xd9)]===0x0?_0x402b15:_0x402b15[_0x42aa1b(0xd8)]===_0x42aa1b(0x71)&&(!((_0x8d354e=_0x402b15[_0x42aa1b(0x86)])===null||_0x8d354e===void 0x0)&&_0x8d354e['length'])?c(c({},_0x402b15),{'children':_0x402b15[_0x42aa1b(0x86)]['map'](function(_0x4626ed){var _0x50d93b=_0x42aa1b;return typeof _0x4626ed[_0x50d93b(0xfa)]['id']==_0x50d93b(0x74)&&_0x48e499&&_0x48e499['includes'](_0x4626ed[_0x50d93b(0xfa)]['id'])?c(c({},_0x4626ed),{'attrs':c(c({},_0x4626ed[_0x50d93b(0xfa)]),{'id':_0x4626ed[_0x50d93b(0xfa)]['id']+_0x5cec52['idSuffix']})}):_0x4626ed;})}):_0x402b15;}function Ne(){var _0x5f362c=_0x239c0b;return Math[_0x5f362c(0x7a)]()[_0x5f362c(0x116)](0x24)['substring'](0x2,0x8);}W[_0x239c0b(0xec)]=_0x239c0b(0x84);var Ce={'tag':_0x239c0b(0x10b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x239c0b(0x7e),'viewBox':_0x239c0b(0xaf),'width':_0x239c0b(0x112),'height':_0x239c0b(0x112)},'children':[{'tag':_0x239c0b(0xf9),'attrs':{'fill':_0x239c0b(0xef),'d':_0x239c0b(0x10a)}},{'tag':_0x239c0b(0xf9),'attrs':{'fill':'currentColor','d':_0x239c0b(0xdc),'fillRule':_0x239c0b(0x87),'clipRule':'evenodd'}}]},B=_0x1f202f(function(_0x5e81df,_0x5653b0){var _0x576bc3=_0x239c0b;return _0x488ebe(W,Object['assign']({},_0x5e81df,{'id':_0x576bc3(0xcf),'ref':_0x5653b0,'icon':Ce}));});B[_0x239c0b(0xec)]='LiveShareIcon';class L extends _0x4f1a9a{constructor(){var _0x12bcc7=_0x239c0b;super(...arguments),d(this,_0x12bcc7(0x9f),new Set()),d(this,_0x12bcc7(0xdf),new Set());}[_0x239c0b(0xd7)](_0x3dc222){var _0x5eeaa6=_0x239c0b;return this[_0x5eeaa6(0x9f)][_0x5eeaa6(0xe5)](_0x3dc222),_0x4c1d53(()=>this[_0x5eeaa6(0x9f)][_0x5eeaa6(0x76)](_0x3dc222));}[_0x239c0b(0xc8)](_0xc551a){var _0x24b9fb=_0x239c0b;return this[_0x24b9fb(0xdf)]['add'](_0xc551a),_0x4c1d53(()=>this[_0x24b9fb(0xdf)][_0x24b9fb(0x76)](_0xc551a));}['shouldShareOperation'](_0x4604d9){var _0x3cbc7d=_0x239c0b;return this[_0x3cbc7d(0x9f)][_0x3cbc7d(0xce)](_0x4604d9);}[_0x239c0b(0x115)](_0x2811fe){var _0x346f83=_0x239c0b;return Array['from'](this['_reporters'])[_0x346f83(0x85)](_0x2c0025=>_0x2c0025(_0x2811fe));}}var De=Object[_0x239c0b(0xb9)],Z=(_0x5d282c,_0x11c6e0,_0x4a4f0a,_0x58f0e1)=>{var _0x190923=_0x239c0b;for(var _0x47a7f8=_0x58f0e1>0x1?void 0x0:_0x58f0e1?De(_0x11c6e0,_0x4a4f0a):_0x11c6e0,_0x63c21f=_0x5d282c[_0x190923(0xd9)]-0x1,_0x520c7e;_0x63c21f>=0x0;_0x63c21f--)(_0x520c7e=_0x5d282c[_0x63c21f])&&(_0x47a7f8=_0x520c7e(_0x47a7f8)||_0x47a7f8);return _0x47a7f8;},f=(_0x1e93ca,_0x5ce0d4)=>(_0x469231,_0x235636)=>_0x5ce0d4(_0x469231,_0x235636,_0x1e93ca);let m=class extends _0x1d314f{constructor(_0x5b0049,_0x2a0a9c,_0x4650c4){var _0x1066f2=_0x239c0b;super(),d(this,_0x1066f2(0xcd),new Map()),(this[_0x1066f2(0x6f)]=_0x5b0049,this[_0x1066f2(0x11a)]=_0x2a0a9c,this[_0x1066f2(0xb3)]=_0x4650c4,this[_0x1066f2(0xc4)]());}async['getLiveShareCoordinator'](_0x4f0631){var _0x1d2add=_0x239c0b;return this[_0x1d2add(0xcd)]['has'](_0x4f0631)||await this[_0x1d2add(0x72)](_0x4f0631),this[_0x1d2add(0xcd)]['get'](_0x4f0631);}[_0x239c0b(0xc4)](){var _0x211e2c=_0x239c0b;this[_0x211e2c(0x6f)]['getTypeOfUnitAdded$'](_0x2064ad[_0x211e2c(0xe9)])[_0x211e2c(0x7c)](_0x1ab3fe(this[_0x211e2c(0x92)]))[_0x211e2c(0xc5)](async _0x2c1c11=>{var _0x12719c=_0x211e2c;const _0x2105a5=_0x2c1c11['getUnitId']();this['_entities']['has'](_0x2105a5)||this[_0x12719c(0x72)](_0x2105a5);}),this[_0x211e2c(0x6f)]['getTypeOfUnitDisposed$'](_0x2064ad[_0x211e2c(0xe9)])[_0x211e2c(0x7c)](_0x1ab3fe(this['dispose$']))[_0x211e2c(0xc5)](_0x54823b=>{var _0x3dc258=_0x211e2c;const _0x2c9b86=_0x54823b[_0x3dc258(0xed)](),_0x280021=this[_0x3dc258(0xcd)][_0x3dc258(0x10c)](_0x2c9b86);_0x280021==null||_0x280021['dispose']();});}async[_0x239c0b(0x72)](_0x32cc57){var _0x48caaa=_0x239c0b;const _0x14ae83=await this[_0x48caaa(0xb3)][_0x48caaa(0xa6)](_0x32cc57),_0x5b04ba=this[_0x48caaa(0x11a)][_0x48caaa(0xd5)](C,_0x32cc57,_0x14ae83);return _0x5b04ba[_0x48caaa(0x109)](),this[_0x48caaa(0xcd)][_0x48caaa(0xbc)](_0x32cc57,_0x5b04ba),_0x5b04ba;}};m=Z([f(0x0,_0x2dfa5a),f(0x1,_0x118151(_0x22dad7)),f(0x2,_0x118151(_0x507993))],m);var h=(_0x189b4b=>(_0x189b4b['OFFLINE']='offline',_0x189b4b['IDLE']=_0x239c0b(0xf6),_0x189b4b[_0x239c0b(0xbb)]=_0x239c0b(0xba),_0x189b4b[_0x239c0b(0xf7)]=_0x239c0b(0x73),_0x189b4b[_0x239c0b(0x104)]=_0x239c0b(0x8f),_0x189b4b))(h||{});const xe=_0x239c0b(0x88),Le=0xc8;let C=class extends _0x1d314f{constructor(_0x594179,_0x6eb5cd,_0x18e283,_0x531359,_0x1ed166){var _0x21f7a7=_0x239c0b;super(),d(this,_0x21f7a7(0xb0),new _0x2d84f2(_0x21f7a7(0xf6))),d(this,'status$',this[_0x21f7a7(0xb0)][_0x21f7a7(0x83)]()),d(this,_0x21f7a7(0xc4),!0x1),d(this,_0x21f7a7(0xac),null),d(this,_0x21f7a7(0x81),null),(this[_0x21f7a7(0xd6)]=_0x594179,this[_0x21f7a7(0x89)]=_0x6eb5cd,this['_configService']=_0x18e283,this[_0x21f7a7(0x8b)]=_0x531359,this[_0x21f7a7(0xfc)]=_0x1ed166);}get[_0x239c0b(0xa9)](){var _0x19978d=_0x239c0b;return this[_0x19978d(0xb0)]['getValue']();}[_0x239c0b(0x103)](){var _0x428fcf=_0x239c0b,_0x27ebbb;(_0x27ebbb=this[_0x428fcf(0xac)])==null||_0x27ebbb[_0x428fcf(0x103)](),this[_0x428fcf(0xb0)]['next']('idle'),this[_0x428fcf(0xb0)][_0x428fcf(0xb1)]();}[_0x239c0b(0x109)](){var _0x3cd6a8=_0x239c0b;this[_0x3cd6a8(0xc4)]||(this[_0x3cd6a8(0xc4)]=!0x0,this[_0x3cd6a8(0x89)][_0x3cd6a8(0xff)][_0x3cd6a8(0x7c)](_0x1ab3fe(this[_0x3cd6a8(0x92)]))[_0x3cd6a8(0xc5)](_0x3209e2=>{var _0x214b5b=_0x3cd6a8;switch(_0x3209e2){case _0x5201e7[_0x214b5b(0xfd)]:this['_handleOffline']();break;case _0x5201e7[_0x214b5b(0x9e)]:this[_0x214b5b(0xd1)]();break;}}),this[_0x3cd6a8(0x89)]['event$']['pipe'](_0x1ab3fe(this[_0x3cd6a8(0x92)]))[_0x3cd6a8(0xc5)](_0x43ad90=>{var _0x1c5470=_0x3cd6a8;const {eventID:_0x158511}=_0x43ad90;switch(_0x158511){case _0x178878[_0x1c5470(0xcb)]:this[_0x1c5470(0xdd)](_0x43ad90);break;case _0x178878[_0x1c5470(0x113)]:this['_handleOperation'](_0x43ad90);break;case _0x178878[_0x1c5470(0x77)]:this['_handleTerminate']();break;case _0x178878['NEW_CHANGESETS']:this[_0x1c5470(0xe0)](_0x43ad90);break;}}));}[_0x239c0b(0xa7)](){var _0x182893=_0x239c0b;this[_0x182893(0x89)][_0x182893(0x10f)]({'eventID':_0x178878['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x182893(0xd6)],'userID':this[_0x182893(0x89)][_0x182893(0x111)]()}},this[_0x182893(0xd6)]);}[_0x239c0b(0xbe)](){var _0x3a2ea2=_0x239c0b;this[_0x3a2ea2(0xa9)]===_0x3a2ea2(0x8f)&&(this[_0x3a2ea2(0xb0)][_0x3a2ea2(0xc3)]('idle'),this['_collabSession'][_0x3a2ea2(0x10f)]({'eventID':_0x178878[_0x3a2ea2(0x77)],'data':{'unitID':this[_0x3a2ea2(0xd6)]}},this[_0x3a2ea2(0xd6)]));}[_0x239c0b(0x107)](){var _0x20254d=_0x239c0b;this[_0x20254d(0xa9)]===_0x20254d(0x73)&&(this['_status$']['next'](_0x20254d(0xba)),this[_0x20254d(0x80)]());}[_0x239c0b(0xa1)](){var _0x4a0661=_0x239c0b;this[_0x4a0661(0xa9)]==='following'&&this[_0x4a0661(0x79)]();}['_handleNewHost'](_0x323219){var _0x468d69=_0x239c0b;const {presenter:_0x1e636f}=_0x323219[_0x468d69(0x8a)],_0x416a32=this[_0x468d69(0x89)][_0x468d69(0x111)]();this[_0x468d69(0x81)]=_0x1e636f,_0x1e636f===_0x416a32?(this[_0x468d69(0x79)](),this[_0x468d69(0x114)]()):this[_0x468d69(0xa9)]!==_0x468d69(0x73)&&(this[_0x468d69(0xc2)](),this[_0x468d69(0x80)]());}[_0x239c0b(0xf2)](){var _0x45e2fe=_0x239c0b;const _0x255a78={'eventID':_0x178878[_0x45e2fe(0xd0)]};this[_0x45e2fe(0x89)][_0x45e2fe(0x10f)](_0x255a78,this['_unitID']);}[_0x239c0b(0xb2)](){var _0x4d4771=_0x239c0b;this['_presenter']=null,this[_0x4d4771(0xa9)]!==_0x4d4771(0x8f)&&this['_beIdle']();}[_0x239c0b(0xe0)](_0xb82fb2){var _0x264d17=_0x239c0b;if(this[_0x264d17(0xa9)]===_0x264d17(0xba)&&this[_0x264d17(0x81)]===_0xb82fb2[_0x264d17(0x8a)]['memberID']){const _0x45483a=_0x1265b1(_0xb82fb2[_0x264d17(0x8a)])[_0x264d17(0x70)]['reverse']()['find'](_0x404ead=>_0x404ead['id']===_0xf6ec2e['id']);if(_0x45483a){const _0x46300e=_0x45483a['params'][_0x264d17(0xe1)],_0x19f185=_0x45483a[_0x264d17(0x99)]['sheet']['id'];setTimeout(()=>{var _0x145ea5=_0x264d17;this[_0x145ea5(0xfc)][_0x145ea5(0xbd)](_0x2efdfd['id'],{'unitId':_0x46300e,'subUnitId':_0x19f185},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xf81e74=_0x239c0b;this[_0xf81e74(0xb0)]['next'](_0xf81e74(0x8f));const _0x54177a=new Map(),_0x2ff143=this[_0xf81e74(0xac)]=new _0x30b7f0();_0x2ff143[_0xf81e74(0xe5)](_0x4c1d53(()=>{var _0x929f95=_0xf81e74;_0x54177a[_0x929f95(0xf8)](_0x4551f6=>_0x4551f6[_0x929f95(0xb1)]()),_0x54177a[_0x929f95(0x82)]();})),_0x2ff143[_0xf81e74(0xe5)](this[_0xf81e74(0xfc)][_0xf81e74(0x9a)](_0x16ad27=>{var _0x5eb07c=_0xf81e74,_0x5bf32d;if(_0x16ad27['type']!==_0x2b2304[_0x5eb07c(0xd3)]||!this['_liveShareService']['shouldShareOperation'](_0x16ad27['id']))return;const {id:_0x9ce794}=_0x16ad27;let _0x5585f2;_0x54177a[_0x5eb07c(0xce)](_0x9ce794)?_0x5585f2=_0x54177a[_0x5eb07c(0x10c)](_0x9ce794):(_0x5585f2=new _0x1eb573(),_0x54177a['set'](_0x9ce794,_0x5585f2),_0x5585f2['pipe'](_0x32fc25((_0x5bf32d=this[_0x5eb07c(0x94)][_0x5eb07c(0xca)](xe))!=null?_0x5bf32d:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5eb07c(0xc5)](_0x1eb9b4=>{var _0x21f09e=_0x5eb07c;this[_0x21f09e(0x89)][_0x21f09e(0x10f)]({'eventID':_0x178878[_0x21f09e(0x113)],'data':{'unitID':this[_0x21f09e(0xd6)],'operations':{[_0x1eb9b4['id']]:{'id':_0x1eb9b4['id'],'params':JSON[_0x21f09e(0xdb)](_0x1eb9b4[_0x21f09e(0x99)])}}}},this[_0x21f09e(0xd6)]);})),_0x5585f2['next'](_0x16ad27);})),this[_0xf81e74(0x8b)]['getInitialStates'](this[_0xf81e74(0xd6)])[_0xf81e74(0xf8)](_0x297fb2=>this[_0xf81e74(0x89)][_0xf81e74(0x10f)]({'eventID':_0x178878['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xf81e74(0xd6)],'operations':{[_0x297fb2['id']]:{'id':_0x297fb2['id'],'params':JSON[_0xf81e74(0xdb)](_0x297fb2[_0xf81e74(0x99)])}}}},this[_0xf81e74(0xd6)]));}['_stopPresenting'](){var _0x573447=_0x239c0b,_0x3dcf4f;this[_0x573447(0xb0)][_0x573447(0xc3)](_0x573447(0xf6)),(_0x3dcf4f=this[_0x573447(0xac)])==null||_0x3dcf4f[_0x573447(0x103)](),this['_commandDisposable']=null;}[_0x239c0b(0x80)](){var _0x4682f9=_0x239c0b,_0xe2ecd4;(_0xe2ecd4=this[_0x4682f9(0xac)])==null||_0xe2ecd4[_0x4682f9(0x103)](),this[_0x4682f9(0xb0)][_0x4682f9(0xc3)]('following');}[_0x239c0b(0xd4)](){var _0x153251=_0x239c0b,_0x1ac8e4;this[_0x153251(0xb0)][_0x153251(0xc3)](_0x153251(0xf6)),(_0x1ac8e4=this[_0x153251(0xac)])==null||_0x1ac8e4[_0x153251(0x103)](),this[_0x153251(0xac)]=null;}[_0x239c0b(0x79)](){var _0x111c98=_0x239c0b,_0x2e1805;this[_0x111c98(0xb0)]['next'](_0x111c98(0x73)),(_0x2e1805=this[_0x111c98(0xac)])==null||_0x2e1805[_0x111c98(0x103)]();}[_0x239c0b(0xc0)](_0x30fafa){var _0x2ab19c=_0x239c0b;if(['presenting',_0x2ab19c(0x73),_0x2ab19c(0xae)]['includes'](this[_0x2ab19c(0xa9)])||!_0x30fafa[_0x2ab19c(0x8a)][_0x2ab19c(0xde)]||_0x30fafa[_0x2ab19c(0x8a)][_0x2ab19c(0xde)]===this[_0x2ab19c(0x89)][_0x2ab19c(0x111)]())return;this[_0x2ab19c(0xa9)]===_0x2ab19c(0xf6)&&this['_startFollowing']();const _0x34fa5d=_0x30fafa[_0x2ab19c(0x8a)][_0x2ab19c(0x93)];Object['values'](_0x34fa5d)[_0x2ab19c(0xf8)](_0x3daea8=>{var _0x43df1a=_0x2ab19c;this[_0x43df1a(0xfc)]['executeCommand'](_0x3daea8['id'],_0x3daea8[_0x43df1a(0x99)]?JSON[_0x43df1a(0x7f)](_0x3daea8[_0x43df1a(0x99)]):null,{'fromCollab':!0x0});});}[_0x239c0b(0xb4)](){var _0x2e2ea9=_0x239c0b,_0x4266ad;this[_0x2e2ea9(0xb0)][_0x2e2ea9(0xc3)](_0x2e2ea9(0xae)),(_0x4266ad=this['_commandDisposable'])==null||_0x4266ad[_0x2e2ea9(0x103)]();}[_0x239c0b(0xd1)](){var _0x3c2846=_0x239c0b;this[_0x3c2846(0xb0)][_0x3c2846(0xc3)](_0x3c2846(0xf6)),this[_0x3c2846(0xf2)]();}};C=Z([f(0x2,_0xb381cc),f(0x3,_0x118151(L)),f(0x4,_0x5034b0)],C);function ye(){var _0x1b201b=_0x239c0b;const _0x171a12=_0x42b623(m),_0x485c33=_0x42b623(_0x2dfa5a),_0x5910a5=_0x135486(()=>_0x485c33[_0x1b201b(0xaa)](_0x2064ad[_0x1b201b(0xe9)]),void 0x0,!0x1,[]),[_0x4738d6,_0x4541f1]=_0x3852ae(null),[_0x4ba582,_0x41e2e1]=_0x3852ae(h['IDLE']),_0x3b83a8=_0x23f2e6(null);return _0x198eb4(()=>(_0x5910a5&&_0x171a12[_0x1b201b(0x117)](_0x5910a5[_0x1b201b(0xed)]())[_0x1b201b(0x9b)](_0x48c28c=>{var _0x3b0361=_0x1b201b;_0x4541f1(_0x48c28c),_0x3b83a8[_0x3b0361(0xc9)]=_0x48c28c[_0x3b0361(0x75)]['subscribe'](_0x110bb8=>{_0x41e2e1(_0x110bb8);});}),()=>{var _0x463b18=_0x1b201b,_0x58ae4e;(_0x58ae4e=_0x3b83a8[_0x463b18(0xc9)])==null||_0x58ae4e[_0x463b18(0x119)](),_0x3b83a8[_0x463b18(0xc9)]=null;}),[_0x5910a5,_0x171a12]),_0x4738d6?_0x47e17a(_0x2b68e4,{'align':_0x1b201b(0x9c),'disabled':_0x4ba582===h[_0x1b201b(0xfd)],'className':_0x1b201b(0xa4),'overlay':_0x47e17a(Re,{'status':_0x4ba582,'coordinator':_0x4738d6}),'children':_0x47e17a('button',{'className':_0xc992a1(_0x1b201b(0x10e),{'univer-cursor-not-allowed':_0x4ba582===h[_0x1b201b(0xfd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4ba582!==h[_0x1b201b(0xfd)]}),'type':'button','children':_0x47e17a(B,{'className':_0x1b201b(0x105)})})}):null;}function Re(_0x291c13){var _0x4c1bd7=_0x239c0b;const {status:_0xb058af,coordinator:_0xe08f44}=_0x291c13;switch(_0xb058af){case h[_0x4c1bd7(0x78)]:return _0x47e17a(Pe,{'coordinator':_0xe08f44});case h[_0x4c1bd7(0xbb)]:return _0x47e17a(Ae,{'coordinator':_0xe08f44});case h['NOT_FOLLOWING']:return _0x47e17a(Te,{'coordinator':_0xe08f44});case h[_0x4c1bd7(0xfd)]:return _0x47e17a(Fe,{});case h['PRESENTING']:return _0x47e17a($e,{'coordinator':_0xe08f44});default:return null;}}function Pe(_0x47d11a){var _0x3a3262=_0x239c0b;const {coordinator:_0x4ecdd0}=_0x47d11a;return _0x4e59d3(_0x440c44,{'children':[_0x47e17a(_0x3a3262(0xe8),{'className':_0x3a3262(0x10d),'children':_0x3a3262(0x95)}),_0x47e17a(_0x1e74fe,{'onClick':()=>_0x4ecdd0[_0x3a3262(0xa7)](),'children':'Start'})]});}function Ae(_0xc065c5){var _0x2e1ed6=_0x239c0b;const {coordinator:_0x415f7f}=_0xc065c5;return _0x4e59d3(_0x440c44,{'children':[_0x47e17a(_0x2e1ed6(0xe8),{'className':_0x2e1ed6(0x10d),'children':_0x2e1ed6(0xf1)}),_0x47e17a(_0x1e74fe,{'onClick':()=>_0x415f7f[_0x2e1ed6(0xa1)](),'children':_0x2e1ed6(0xe4)})]});}function Te(_0x4ab611){var _0x3f3b33=_0x239c0b;const {coordinator:_0x549ca0}=_0x4ab611;return _0x4e59d3(_0x440c44,{'children':[_0x47e17a(_0x3f3b33(0xe8),{'className':_0x3f3b33(0x10d),'children':_0x3f3b33(0xcc)}),_0x47e17a(_0x1e74fe,{'variant':'text','onClick':()=>_0x549ca0['startFollowing'](),'children':_0x3f3b33(0x106)})]});}function $e(_0x4d9438){var _0x4f5f9d=_0x239c0b;const {coordinator:_0x52bce8}=_0x4d9438;return _0x4e59d3(_0x440c44,{'children':[_0x47e17a(_0x4f5f9d(0xe8),{'className':_0x4f5f9d(0x10d),'children':_0x4f5f9d(0x9d)}),_0x47e17a(_0x1e74fe,{'variant':_0x4f5f9d(0xc6),'onClick':()=>_0x52bce8['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x3fbdeb=_0x239c0b;return _0x47e17a(_0x440c44,{'children':_0x3fbdeb(0xfe)});}var He=Object[_0x239c0b(0xb9)],je=(_0x5ba463,_0x3ccafe,_0x3af7ca,_0x315723)=>{for(var _0x1be4c9=_0x315723>0x1?void 0x0:_0x315723?He(_0x3ccafe,_0x3af7ca):_0x3ccafe,_0x1e7fa9=_0x5ba463['length']-0x1,_0x229432;_0x1e7fa9>=0x0;_0x1e7fa9--)(_0x229432=_0x5ba463[_0x1e7fa9])&&(_0x1be4c9=_0x229432(_0x1be4c9)||_0x1be4c9);return _0x1be4c9;},T=(_0x50fa50,_0x52b515)=>(_0x38a856,_0x410c49)=>_0x52b515(_0x38a856,_0x410c49,_0x50fa50);let I=class extends _0x4f1a9a{constructor(_0xe7b520,_0x4a2e0e){var _0x352572=_0x239c0b;super(),this[_0x352572(0x11a)]=_0xe7b520,this['_uiPartsService']=_0x4a2e0e,this[_0x352572(0xe2)]();}[_0x239c0b(0xe2)](){var _0x8e36be=_0x239c0b;this[_0x8e36be(0xe6)](this['_uiPartsService'][_0x8e36be(0x91)](_0x325284[_0x8e36be(0xd2)],()=>_0x2ac9c5(ye,this['_injector'])));}};I=je([T(0x0,_0x118151(_0x22dad7)),T(0x1,_0x4acb5d)],I);const Ue=_0x239c0b(0x8d),$={};var Ve=Object[_0x239c0b(0xb9)],Me=(_0xf337a4,_0x458a30,_0x3840d9,_0x7959e0)=>{var _0x3243fd=_0x239c0b;for(var _0xb9eb40=_0x7959e0>0x1?void 0x0:_0x7959e0?Ve(_0x458a30,_0x3840d9):_0x458a30,_0x2806be=_0xf337a4[_0x3243fd(0xd9)]-0x1,_0x33a161;_0x2806be>=0x0;_0x2806be--)(_0x33a161=_0xf337a4[_0x2806be])&&(_0xb9eb40=_0x33a161(_0xb9eb40)||_0xb9eb40);return _0xb9eb40;},ke=(_0x2cf8cc,_0x2b5aaf)=>(_0x2bde50,_0x46da27)=>_0x2b5aaf(_0x2bde50,_0x46da27,_0x2cf8cc);let b=class extends _0x4f1a9a{constructor(_0x43e7c0){var _0x3ee693=_0x239c0b;super(),this[_0x3ee693(0x8b)]=_0x43e7c0,this['_init']();}[_0x239c0b(0xc4)](){var _0x8b159f=_0x239c0b;[_0x4dd051['id'],_0x176684['id'],_0x2efdfd['id']][_0x8b159f(0xf8)](_0x599527=>{var _0x36d546=_0x8b159f;this['disposeWithMe'](this[_0x36d546(0x8b)][_0x36d546(0xd7)](_0x599527));});}};b=Me([ke(0x0,_0x118151(L))],b);function _0x2444(_0x4ab1f7,_0x721903){var _0x842eee=_0x842e();return _0x2444=function(_0x2444cf,_0x25e9b0){_0x2444cf=_0x2444cf-0x6e;var _0x1d3122=_0x842eee[_0x2444cf];return _0x1d3122;},_0x2444(_0x4ab1f7,_0x721903);}var Ge=Object[_0x239c0b(0xa2)],We=Object[_0x239c0b(0xb9)],Ye=(_0x3ff4a6,_0x405254,_0x38219e)=>_0x405254 in _0x3ff4a6?Ge(_0x3ff4a6,_0x405254,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38219e}):_0x3ff4a6[_0x405254]=_0x38219e,Be=(_0x3dcdf4,_0x17ec9b,_0x3c42e3,_0x4309f8)=>{for(var _0x2ed27c=_0x4309f8>0x1?void 0x0:_0x4309f8?We(_0x17ec9b,_0x3c42e3):_0x17ec9b,_0x2169aa=_0x3dcdf4['length']-0x1,_0x223936;_0x2169aa>=0x0;_0x2169aa--)(_0x223936=_0x3dcdf4[_0x2169aa])&&(_0x2ed27c=_0x223936(_0x2ed27c)||_0x2ed27c);return _0x2ed27c;},F=(_0x5c74bc,_0x5c77fa)=>(_0x59555d,_0x163e5f)=>_0x5c77fa(_0x59555d,_0x163e5f,_0x5c74bc),J=(_0x191287,_0x168b73,_0x1d8ab2)=>Ye(_0x191287,typeof _0x168b73!='symbol'?_0x168b73+'':_0x168b73,_0x1d8ab2);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x5cfc72{constructor(_0x512923=$,_0x1b8c2a,_0x240484){var _0x196d4c=_0x239c0b;super(),this['_config']=_0x512923,this[_0x196d4c(0x11a)]=_0x1b8c2a,this['_configService']=_0x240484;const {..._0x2d8159}=_0x27fc22({},$,this[_0x196d4c(0xe7)]);this[_0x196d4c(0x94)][_0x196d4c(0xda)](Ue,_0x2d8159);}['onStarting'](){var _0x34f6c4=_0x239c0b;_0x3dd7c3(this[_0x34f6c4(0x11a)],_0x5b841f([[L],[m],[b],[I]],this[_0x34f6c4(0xe7)][_0x34f6c4(0x101)])),_0x29821e(this['_injector'],[[b]]);}[_0x239c0b(0xc7)](){var _0x151c57=_0x239c0b;_0x29821e(this[_0x151c57(0x11a)],[[I]]);}};J(O,_0x239c0b(0xb8),_0x2064ad[_0x239c0b(0x11b)]),J(O,_0x239c0b(0xb7),Ze),O=Be([_0x441003(_0x494b9d),F(0x1,_0x118151(_0x22dad7)),F(0x2,_0xb381cc)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x327e99=_0x3688;(function(_0x2f5a52,_0x1d1acd){var _0x45ca94=_0x3688,_0x2db100=_0x2f5a52();while(!![]){try{var _0x3ff171=parseInt(_0x45ca94(0x8e))/0x1+parseInt(_0x45ca94(0xe5))/0x2+-parseInt(_0x45ca94(0xdc))/0x3+parseInt(_0x45ca94(0x88))/0x4*(-parseInt(_0x45ca94(0x6c))/0x5)+parseInt(_0x45ca94(0xea))/0x6*(-parseInt(_0x45ca94(0xab))/0x7)+-parseInt(_0x45ca94(0x7a))/0x8*(parseInt(_0x45ca94(0x70))/0x9)+parseInt(_0x45ca94(0xf6))/0xa;if(_0x3ff171===_0x1d1acd)break;else _0x2db100['push'](_0x2db100['shift']());}catch(_0x44d1ed){_0x2db100['push'](_0x2db100['shift']());}}}(_0x3700,0x6c1d9));var q=Object['defineProperty'],z=(_0x5b270f,_0x442639,_0x138dd8)=>_0x442639 in _0x5b270f?q(_0x5b270f,_0x442639,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x138dd8}):_0x5b270f[_0x442639]=_0x138dd8,d=(_0x4f288f,_0x134075,_0x231e9b)=>z(_0x4f288f,typeof _0x134075!=_0x327e99(0x110)?_0x134075+'':_0x134075,_0x231e9b);import{Disposable as _0x5bd465,toDisposable as _0x2fd3a3,IUniverInstanceService as _0x43cb00,Inject as _0x322c89,Injector as _0x5c2be7,IConfigService as _0x155baf,ICommandService as _0x20c766,RxDisposable as _0x354256,UniverInstanceType as _0x3a995a,DisposableCollection as _0x5aba15,CommandType as _0x3665fe,DependentOn as _0x19b5d5,Plugin as _0x219943,merge as _0x156a51,registerDependencies as _0x14872e,mergeOverrideWithDependencies as _0x56051a,touchDependencies as _0x25c9a6}from'@univerjs/core';import{useDependency as _0x52f11b,useObservable as _0x999678,IUIPartsService as _0xc8b11c,BuiltInUIPart as _0xfe26a1,connectInjector as _0x3de016}from'@univerjs/ui';import{jsx as _0x3c1611,jsxs as _0x440d17,Fragment as _0x3e88f6}from'react/jsx-runtime';import{Dropdown as _0x58654a,clsx as _0x4c2d4b,Button as _0x5087e0}from'@univerjs/design';import{forwardRef as _0xc91793,useRef as _0x5a6ac8,createElement as _0x3a9eb0,useState as _0x2ab18d,useEffect as _0x20b184}from'react';import{CollaborationEvent as _0x436ce5,parseProtocolChangeset as _0x41dbe4}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x464491,SessionStatus as _0xec3b07,UniverCollaborationClientPlugin as _0x2156c1}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x134af5,SetWorksheetActiveOperation as _0x3d1e6a}from'@univerjs/sheets';import{BehaviorSubject as _0x217b49,Subject as _0x4b9add}from'rxjs';import{takeUntil as _0x58b5ad,throttleTime as _0x49ae5d}from'rxjs/operators';import{SetZoomRatioOperation as _0x4a29e4,SetScrollOperation as _0x2ca7f0}from'@univerjs/sheets-ui';var c=function(){var _0x3ae2ea=_0x327e99;return c=Object[_0x3ae2ea(0x107)]||function(_0x192e6e){var _0x3eab5e=_0x3ae2ea;for(var _0x1903c6,_0x27ecdf=0x1,_0x556a93=arguments[_0x3eab5e(0xd1)];_0x27ecdf<_0x556a93;_0x27ecdf++){_0x1903c6=arguments[_0x27ecdf];for(var _0x59d558 in _0x1903c6)Object['prototype'][_0x3eab5e(0x7d)][_0x3eab5e(0xd8)](_0x1903c6,_0x59d558)&&(_0x192e6e[_0x59d558]=_0x1903c6[_0x59d558]);}return _0x192e6e;},c[_0x3ae2ea(0xae)](this,arguments);},Oe=function(_0x381cb6,_0x49a668){var _0x31e99c=_0x327e99,_0x466bcb={};for(var _0x18df95 in _0x381cb6)Object[_0x31e99c(0xa1)][_0x31e99c(0x7d)][_0x31e99c(0xd8)](_0x381cb6,_0x18df95)&&_0x49a668[_0x31e99c(0xb4)](_0x18df95)<0x0&&(_0x466bcb[_0x18df95]=_0x381cb6[_0x18df95]);if(_0x381cb6!=null&&typeof Object[_0x31e99c(0xc8)]==_0x31e99c(0x10a)){for(var _0x23c8c2=0x0,_0x18df95=Object[_0x31e99c(0xc8)](_0x381cb6);_0x23c8c2<_0x18df95[_0x31e99c(0xd1)];_0x23c8c2++)_0x49a668[_0x31e99c(0xb4)](_0x18df95[_0x23c8c2])<0x0&&Object[_0x31e99c(0xa1)]['propertyIsEnumerable']['call'](_0x381cb6,_0x18df95[_0x23c8c2])&&(_0x466bcb[_0x18df95[_0x23c8c2]]=_0x381cb6[_0x18df95[_0x23c8c2]]);}return _0x466bcb;},W=_0xc91793(function(_0x6c243c,_0x211825){var _0x3c4b46=_0x327e99,_0x3c8218=_0x6c243c[_0x3c4b46(0x9c)],_0x58ab1c=_0x6c243c['id'],_0x14f147=_0x6c243c['className'],_0x41c4d7=_0x6c243c[_0x3c4b46(0x11c)],_0x6fbe0e=Oe(_0x6c243c,[_0x3c4b46(0x9c),'id',_0x3c4b46(0xba),_0x3c4b46(0x11c)]),_0x48b0f4=_0x3c4b46(0xf1)['concat'](_0x58ab1c,'\x20')['concat'](_0x14f147||'')[_0x3c4b46(0xbb)](),_0x22c1a8=_0x5a6ac8('_'[_0x3c4b46(0xb5)](Ne()));return Y(_0x3c8218,''[_0x3c4b46(0xb5)](_0x58ab1c),{'defIds':_0x3c8218[_0x3c4b46(0x6b)],'idSuffix':_0x22c1a8[_0x3c4b46(0x10f)]},c({'ref':_0x211825,'className':_0x48b0f4},_0x6fbe0e),_0x41c4d7);});function _0x3688(_0x329e62,_0x542e27){var _0x370032=_0x3700();return _0x3688=function(_0x368811,_0x542c4e){_0x368811=_0x368811-0x6b;var _0x3bbac5=_0x370032[_0x368811];return _0x3bbac5;},_0x3688(_0x329e62,_0x542e27);}function Y(_0xeb623c,_0x6911a1,_0x57fe7e,_0x454e08,_0x3a6054){var _0x54f2f9=_0x327e99;return _0x3a9eb0(_0xeb623c[_0x54f2f9(0xda)],c(c({'key':_0x6911a1},Ee(_0xeb623c,_0x57fe7e,_0x3a6054)),_0x454e08),(we(_0xeb623c,_0x57fe7e)[_0x54f2f9(0x86)]||[])[_0x54f2f9(0xee)](function(_0x21652c,_0x290144){var _0x13289b=_0x54f2f9;return Y(_0x21652c,''['concat'](_0x6911a1,'-')['concat'](_0xeb623c[_0x13289b(0xda)],'-')[_0x13289b(0xb5)](_0x290144),_0x57fe7e,void 0x0,_0x3a6054);}));}function Ee(_0x4efcf4,_0x1caf9b,_0x2ff7c9){var _0x53e28c=_0x327e99,_0x4adb43=c({},_0x4efcf4['attrs']);_0x2ff7c9!=null&&_0x2ff7c9[_0x53e28c(0x8b)]&&_0x4adb43[_0x53e28c(0xe9)]===_0x53e28c(0x8b)&&(_0x4adb43[_0x53e28c(0xe9)]=_0x2ff7c9[_0x53e28c(0x8b)]),_0x4efcf4[_0x53e28c(0xda)]===_0x53e28c(0x99)&&_0x4adb43['id']&&(_0x4adb43['id']=_0x4adb43['id']+_0x1caf9b[_0x53e28c(0xfa)]),Object[_0x53e28c(0x9b)](_0x4adb43)[_0x53e28c(0xcd)](function(_0x49086e){var _0x5bb195=_0x53e28c,_0x2a7d69=_0x49086e[0x0],_0x422665=_0x49086e[0x1];_0x2a7d69==='mask'&&typeof _0x422665==_0x5bb195(0xb8)&&(_0x4adb43[_0x2a7d69]=_0x422665[_0x5bb195(0x11e)](/url\(#(.*)\)/,'url(#$1'[_0x5bb195(0xb5)](_0x1caf9b[_0x5bb195(0xfa)],')')));});var _0x4cd989=_0x1caf9b['defIds'];return!_0x4cd989||_0x4cd989[_0x53e28c(0xd1)]===0x0||(_0x4efcf4[_0x53e28c(0xda)]===_0x53e28c(0x81)&&_0x4adb43[_0x53e28c(0xdf)]&&(_0x4adb43[_0x53e28c(0xdf)]=_0x4adb43[_0x53e28c(0xdf)]+_0x1caf9b[_0x53e28c(0xfa)]),Object['entries'](_0x4adb43)[_0x53e28c(0xcd)](function(_0x1ee9cd){var _0x56fe34=_0x53e28c,_0x7a5740=_0x1ee9cd[0x0],_0x164437=_0x1ee9cd[0x1];typeof _0x164437=='string'&&(_0x4adb43[_0x7a5740]=_0x164437['replace'](/url\(#(.*)\)/,_0x56fe34(0x85)[_0x56fe34(0xb5)](_0x1caf9b[_0x56fe34(0xfa)],')')));})),_0x4adb43;}function we(_0x4ff11b,_0x37e6a3){var _0xae17ea=_0x327e99,_0x2044e9,_0xf4ae1e=_0x37e6a3[_0xae17ea(0x6b)];return!_0xf4ae1e||_0xf4ae1e[_0xae17ea(0xd1)]===0x0?_0x4ff11b:_0x4ff11b[_0xae17ea(0xda)]===_0xae17ea(0x76)&&(!((_0x2044e9=_0x4ff11b[_0xae17ea(0x86)])===null||_0x2044e9===void 0x0)&&_0x2044e9[_0xae17ea(0xd1)])?c(c({},_0x4ff11b),{'children':_0x4ff11b[_0xae17ea(0x86)]['map'](function(_0x5abe70){var _0x203a28=_0xae17ea;return typeof _0x5abe70['attrs']['id']==_0x203a28(0xb8)&&_0xf4ae1e&&_0xf4ae1e['includes'](_0x5abe70[_0x203a28(0xdb)]['id'])?c(c({},_0x5abe70),{'attrs':c(c({},_0x5abe70['attrs']),{'id':_0x5abe70[_0x203a28(0xdb)]['id']+_0x37e6a3[_0x203a28(0xfa)]})}):_0x5abe70;})}):_0x4ff11b;}function _0x3700(){var _0x2b8e45=['shouldShareOperation','Stop\x20following','xlink:href','values','data','_status','OFFLINE','live-share-icon','581586QxFtVx','tryStartPresenting','SAME_OPERATION_SHARE_INTERVAL','registerSharedOperation','fill','8670vadRYF','status$','getValue','FOLLOWING','map','init','dispose$','univerjs-icon\x20univerjs-icon-','LIVESHARE_FETCH_OPERATIONS','_fetchOperations','complete','reverse','10656620wCszDd','_init','asObservable','currentColor','idSuffix','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleNewChangeSets','offline','_commandService','_configService','event$','from','has','executeCommand','memberID','add','presenting','assign','_status$','LIVESHARE_TERMINATE','function','pluginName','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','div','getOwnPropertyDescriptor','current','symbol','ONLINE','onStarting','_startFollowing','set','_reporters','createInstance','_startLiveShareCoordinator','LIVESHARE_REQUEST_HOST','startFollowing','getLiveShareCoordinator','registerInitialStateReporter','extend','NEW_CHANGESETS','replace','clear','defIds','25HBNqIe','stringify','mutations','_beIdle','162VVVApb','stopFollowing','_entities','_stopPresenting','pipe','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','defs','disposeWithMe','_commandDisposable','LiveShareIcon','389480dRgHpu','_handleOperation','default','hasOwnProperty','_collabSessionService','then','_handleNewHost','use','_injector','presenter','UniverIcon','url(#$1','children','getCurrentTypeOfUnit$','93292kRjNPB','You\x27re\x20presenting\x20the\x20document','_handleOnline','colorChannel1','override','_mountLiveShare','672011mAztgb','IDLE','_liveShareService','random','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','not-following','params','_handleTerminate','_univerInstanceService','type','_startPresenting','mask','next','entries','icon','operations','UNIVER_SHEET','LIVESHARE_OPERATION','_collabSession','prototype','getInitialStates','subscribe','PRESENTING','end','toString','sessionStatus$','svg','delete','following','259oUDnmZ','0\x200\x2017\x2017','evenodd','apply','1em','substring','requireSession','unitId','NOT_FOLLOWING','indexOf','concat','get','univer-size-4','string','getUnitId','className','trim','univer-mb-3\x20univer-w-full\x20univer-text-sm','getMemberID','LIVESHARE_NEW_HOST','_config','_sharedOperations','button','Present\x20this\x20document','dispose','live-share.config','send','path','UNIVER_UNKNOWN','getOwnPropertySymbols','defineProperty','HEADER_MENU','_unitID','setConfig','forEach','UNIVER_LIVE_SHARE_PLUGIN','displayName','idle','length','unsubscribe','OPERATION','_presenter','registerComponent','onCommandExecuted','stopPresenting','call','_uiPartsService','tag','attrs','1617645fsCgxw'];_0x3700=function(){return _0x2b8e45;};return _0x3700();}function Ne(){var _0xd6a5ca=_0x327e99;return Math[_0xd6a5ca(0x91)]()[_0xd6a5ca(0xa6)](0x24)[_0xd6a5ca(0xb0)](0x2,0x8);}W[_0x327e99(0xcf)]=_0x327e99(0x84);var Ce={'tag':_0x327e99(0xa8),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x327e99(0xac),'width':_0x327e99(0xaf),'height':'1em'},'children':[{'tag':_0x327e99(0xc6),'attrs':{'fill':_0x327e99(0xf9),'d':_0x327e99(0x75)}},{'tag':_0x327e99(0xc6),'attrs':{'fill':'currentColor','d':_0x327e99(0x10c),'fillRule':_0x327e99(0xad),'clipRule':'evenodd'}}]},B=_0xc91793(function(_0x25535b,_0x25c479){var _0x237eaf=_0x327e99;return _0x3a9eb0(W,Object[_0x237eaf(0x107)]({},_0x25535b,{'id':_0x237eaf(0xe4),'ref':_0x25c479,'icon':Ce}));});B['displayName']=_0x327e99(0x79);class L extends _0x5bd465{constructor(){var _0x5b67b3=_0x327e99;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x5b67b3(0x115),new Set());}[_0x327e99(0xe8)](_0x589f1d){var _0x510421=_0x327e99;return this[_0x510421(0xc0)]['add'](_0x589f1d),_0x2fd3a3(()=>this[_0x510421(0xc0)][_0x510421(0xa9)](_0x589f1d));}[_0x327e99(0x11b)](_0x286240){var _0x3e51b8=_0x327e99;return this[_0x3e51b8(0x115)][_0x3e51b8(0x105)](_0x286240),_0x2fd3a3(()=>this[_0x3e51b8(0x115)][_0x3e51b8(0xa9)](_0x286240));}[_0x327e99(0xdd)](_0x45dfbb){var _0x145acf=_0x327e99;return this[_0x145acf(0xc0)][_0x145acf(0x102)](_0x45dfbb);}[_0x327e99(0xa2)](_0xed0d51){var _0x41f794=_0x327e99;return Array[_0x41f794(0x101)](this[_0x41f794(0x115)])[_0x41f794(0xee)](_0x405406=>_0x405406(_0xed0d51));}}var De=Object[_0x327e99(0x10e)],Z=(_0x31538c,_0x340ccc,_0x1e4285,_0x3960ab)=>{for(var _0x61d9fa=_0x3960ab>0x1?void 0x0:_0x3960ab?De(_0x340ccc,_0x1e4285):_0x340ccc,_0x134096=_0x31538c['length']-0x1,_0x115d9a;_0x134096>=0x0;_0x134096--)(_0x115d9a=_0x31538c[_0x134096])&&(_0x61d9fa=_0x115d9a(_0x61d9fa)||_0x61d9fa);return _0x61d9fa;},f=(_0x45b57b,_0x5df7c9)=>(_0x2dc940,_0xb331f7)=>_0x5df7c9(_0x2dc940,_0xb331f7,_0x45b57b);let m=class extends _0x354256{constructor(_0x4b1c89,_0x20d0a6,_0x40fe64){var _0x2d5b48=_0x327e99;super(),d(this,'_entities',new Map()),(this[_0x2d5b48(0x96)]=_0x4b1c89,this[_0x2d5b48(0x82)]=_0x20d0a6,this['_collabSessionService']=_0x40fe64,this[_0x2d5b48(0xf7)]());}async[_0x327e99(0x11a)](_0x4e2682){var _0x236a87=_0x327e99;return this[_0x236a87(0x72)][_0x236a87(0x102)](_0x4e2682)||await this[_0x236a87(0x117)](_0x4e2682),this[_0x236a87(0x72)]['get'](_0x4e2682);}[_0x327e99(0xf7)](){var _0x50701e=_0x327e99;this[_0x50701e(0x96)]['getTypeOfUnitAdded$'](_0x3a995a['UNIVER_SHEET'])[_0x50701e(0x74)](_0x58b5ad(this[_0x50701e(0xf0)]))[_0x50701e(0xa3)](async _0x1c44d9=>{var _0x1ab681=_0x50701e;const _0x3e6a1c=_0x1c44d9[_0x1ab681(0xb9)]();this['_entities'][_0x1ab681(0x102)](_0x3e6a1c)||this[_0x1ab681(0x117)](_0x3e6a1c);}),this[_0x50701e(0x96)]['getTypeOfUnitDisposed$'](_0x3a995a[_0x50701e(0x9e)])['pipe'](_0x58b5ad(this[_0x50701e(0xf0)]))[_0x50701e(0xa3)](_0x4fd6be=>{var _0x19c403=_0x50701e;const _0x32de8b=_0x4fd6be[_0x19c403(0xb9)](),_0x199d3c=this[_0x19c403(0x72)][_0x19c403(0xb6)](_0x32de8b);_0x199d3c==null||_0x199d3c[_0x19c403(0xc3)]();});}async[_0x327e99(0x117)](_0x34fbd7){var _0x59e693=_0x327e99;const _0x3f4e96=await this[_0x59e693(0x7e)][_0x59e693(0xb1)](_0x34fbd7),_0x3fee51=this[_0x59e693(0x82)][_0x59e693(0x116)](C,_0x34fbd7,_0x3f4e96);return _0x3fee51[_0x59e693(0xef)](),this[_0x59e693(0x72)][_0x59e693(0x114)](_0x34fbd7,_0x3fee51),_0x3fee51;}};m=Z([f(0x0,_0x43cb00),f(0x1,_0x322c89(_0x5c2be7)),f(0x2,_0x322c89(_0x464491))],m);var h=(_0x40c159=>(_0x40c159[_0x327e99(0xe3)]='offline',_0x40c159[_0x327e99(0x8f)]=_0x327e99(0xd0),_0x40c159[_0x327e99(0xed)]=_0x327e99(0xaa),_0x40c159[_0x327e99(0xb3)]=_0x327e99(0x93),_0x40c159[_0x327e99(0xa4)]=_0x327e99(0x106),_0x40c159))(h||{});const xe=_0x327e99(0xe7),Le=0xc8;let C=class extends _0x354256{constructor(_0x13138c,_0x2efb69,_0x559f8a,_0x4a56e8,_0x46b814){var _0x3799c9=_0x327e99;super(),d(this,_0x3799c9(0x108),new _0x217b49(_0x3799c9(0xd0))),d(this,_0x3799c9(0xeb),this[_0x3799c9(0x108)][_0x3799c9(0xf8)]()),d(this,_0x3799c9(0xf7),!0x1),d(this,_0x3799c9(0x78),null),d(this,_0x3799c9(0xd4),null),(this['_unitID']=_0x13138c,this[_0x3799c9(0xa0)]=_0x2efb69,this[_0x3799c9(0xff)]=_0x559f8a,this[_0x3799c9(0x90)]=_0x4a56e8,this[_0x3799c9(0xfe)]=_0x46b814);}get['_status'](){var _0x6728ae=_0x327e99;return this[_0x6728ae(0x108)][_0x6728ae(0xec)]();}[_0x327e99(0xc3)](){var _0x1afc60=_0x327e99,_0x5b73eb;(_0x5b73eb=this['_commandDisposable'])==null||_0x5b73eb[_0x1afc60(0xc3)](),this[_0x1afc60(0x108)][_0x1afc60(0x9a)]('idle'),this[_0x1afc60(0x108)][_0x1afc60(0xf4)]();}['init'](){var _0x5d218f=_0x327e99;this[_0x5d218f(0xf7)]||(this[_0x5d218f(0xf7)]=!0x0,this[_0x5d218f(0xa0)][_0x5d218f(0xa7)][_0x5d218f(0x74)](_0x58b5ad(this[_0x5d218f(0xf0)]))[_0x5d218f(0xa3)](_0x25ceb6=>{var _0x227c5d=_0x5d218f;switch(_0x25ceb6){case _0xec3b07[_0x227c5d(0xe3)]:this['_handleOffline']();break;case _0xec3b07[_0x227c5d(0x111)]:this['_handleOnline']();break;}}),this[_0x5d218f(0xa0)][_0x5d218f(0x100)][_0x5d218f(0x74)](_0x58b5ad(this[_0x5d218f(0xf0)]))[_0x5d218f(0xa3)](_0x1a8470=>{var _0x198537=_0x5d218f;const {eventID:_0x4242e1}=_0x1a8470;switch(_0x4242e1){case _0x436ce5[_0x198537(0xbe)]:this[_0x198537(0x80)](_0x1a8470);break;case _0x436ce5[_0x198537(0x9f)]:this[_0x198537(0x7b)](_0x1a8470);break;case _0x436ce5['LIVESHARE_TERMINATE']:this[_0x198537(0x95)]();break;case _0x436ce5[_0x198537(0x11d)]:this[_0x198537(0xfc)](_0x1a8470);break;}}));}[_0x327e99(0xe6)](){var _0x2c6681=_0x327e99;this[_0x2c6681(0xa0)][_0x2c6681(0xc5)]({'eventID':_0x436ce5[_0x2c6681(0x118)],'data':{'unitID':this[_0x2c6681(0xcb)],'userID':this[_0x2c6681(0xa0)]['getMemberID']()}},this[_0x2c6681(0xcb)]);}[_0x327e99(0xd7)](){var _0x1025ac=_0x327e99;this[_0x1025ac(0xe2)]==='presenting'&&(this[_0x1025ac(0x108)]['next'](_0x1025ac(0xd0)),this[_0x1025ac(0xa0)][_0x1025ac(0xc5)]({'eventID':_0x436ce5[_0x1025ac(0x109)],'data':{'unitID':this[_0x1025ac(0xcb)]}},this[_0x1025ac(0xcb)]));}[_0x327e99(0x119)](){var _0x1d7d77=_0x327e99;this[_0x1d7d77(0xe2)]===_0x1d7d77(0x93)&&(this[_0x1d7d77(0x108)][_0x1d7d77(0x9a)](_0x1d7d77(0xaa)),this['_startFollowing']());}[_0x327e99(0x71)](){var _0x35fc2f=_0x327e99;this['_status']===_0x35fc2f(0xaa)&&this['_stopFollowing']();}[_0x327e99(0x80)](_0x578f0f){var _0xf4555a=_0x327e99;const {presenter:_0x41c05b}=_0x578f0f[_0xf4555a(0xe1)],_0x17d407=this['_collabSession'][_0xf4555a(0xbd)]();this['_presenter']=_0x41c05b,_0x41c05b===_0x17d407?(this['_stopFollowing'](),this[_0xf4555a(0x98)]()):this[_0xf4555a(0xe2)]!=='not-following'&&(this[_0xf4555a(0x73)](),this[_0xf4555a(0x113)]());}[_0x327e99(0xf3)](){var _0x4a32fd=_0x327e99;const _0x28ebba={'eventID':_0x436ce5[_0x4a32fd(0xf2)]};this[_0x4a32fd(0xa0)]['send'](_0x28ebba,this['_unitID']);}[_0x327e99(0x95)](){var _0x2efdf7=_0x327e99;this[_0x2efdf7(0xd4)]=null,this[_0x2efdf7(0xe2)]!==_0x2efdf7(0x106)&&this[_0x2efdf7(0x6f)]();}[_0x327e99(0xfc)](_0x162e12){var _0x424de5=_0x327e99;if(this[_0x424de5(0xe2)]===_0x424de5(0xaa)&&this[_0x424de5(0xd4)]===_0x162e12['data'][_0x424de5(0x104)]){const _0x172fe7=_0x41dbe4(_0x162e12[_0x424de5(0xe1)])[_0x424de5(0x6e)][_0x424de5(0xf5)]()['find'](_0x480de1=>_0x480de1['id']===_0x134af5['id']);if(_0x172fe7){const _0xcd2dd=_0x172fe7[_0x424de5(0x94)][_0x424de5(0xb2)],_0x29a8b7=_0x172fe7[_0x424de5(0x94)]['sheet']['id'];setTimeout(()=>{var _0x3559d9=_0x424de5;this['_commandService'][_0x3559d9(0x103)](_0x3d1e6a['id'],{'unitId':_0xcd2dd,'subUnitId':_0x29a8b7},{'fromCollab':!0x0});});}}}[_0x327e99(0x98)](){var _0x3da4a4=_0x327e99;this['_status$'][_0x3da4a4(0x9a)](_0x3da4a4(0x106));const _0x1bf93d=new Map(),_0x451f3e=this[_0x3da4a4(0x78)]=new _0x5aba15();_0x451f3e['add'](_0x2fd3a3(()=>{var _0x40b967=_0x3da4a4;_0x1bf93d[_0x40b967(0xcd)](_0x3d0cc8=>_0x3d0cc8['complete']()),_0x1bf93d[_0x40b967(0x11f)]();})),_0x451f3e[_0x3da4a4(0x105)](this[_0x3da4a4(0xfe)][_0x3da4a4(0xd6)](_0x8030da=>{var _0x138f06=_0x3da4a4,_0x49c68e;if(_0x8030da[_0x138f06(0x97)]!==_0x3665fe[_0x138f06(0xd3)]||!this['_liveShareService'][_0x138f06(0xdd)](_0x8030da['id']))return;const {id:_0x29da5b}=_0x8030da;let _0x24ab59;_0x1bf93d[_0x138f06(0x102)](_0x29da5b)?_0x24ab59=_0x1bf93d[_0x138f06(0xb6)](_0x29da5b):(_0x24ab59=new _0x4b9add(),_0x1bf93d[_0x138f06(0x114)](_0x29da5b,_0x24ab59),_0x24ab59[_0x138f06(0x74)](_0x49ae5d((_0x49c68e=this[_0x138f06(0xff)]['getConfig'](xe))!=null?_0x49c68e:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x138f06(0xa3)](_0x33e610=>{var _0x2388ae=_0x138f06;this['_collabSession'][_0x2388ae(0xc5)]({'eventID':_0x436ce5[_0x2388ae(0x9f)],'data':{'unitID':this[_0x2388ae(0xcb)],'operations':{[_0x33e610['id']]:{'id':_0x33e610['id'],'params':JSON['stringify'](_0x33e610['params'])}}}},this[_0x2388ae(0xcb)]);})),_0x24ab59['next'](_0x8030da);})),this['_liveShareService']['getInitialStates'](this[_0x3da4a4(0xcb)])[_0x3da4a4(0xcd)](_0x53e1e5=>this['_collabSession'][_0x3da4a4(0xc5)]({'eventID':_0x436ce5[_0x3da4a4(0x9f)],'data':{'unitID':this[_0x3da4a4(0xcb)],'operations':{[_0x53e1e5['id']]:{'id':_0x53e1e5['id'],'params':JSON[_0x3da4a4(0x6d)](_0x53e1e5[_0x3da4a4(0x94)])}}}},this[_0x3da4a4(0xcb)]));}[_0x327e99(0x73)](){var _0x185989=_0x327e99,_0x301739;this[_0x185989(0x108)]['next'](_0x185989(0xd0)),(_0x301739=this['_commandDisposable'])==null||_0x301739['dispose'](),this[_0x185989(0x78)]=null;}[_0x327e99(0x113)](){var _0x4578cb=_0x327e99,_0x86a397;(_0x86a397=this[_0x4578cb(0x78)])==null||_0x86a397['dispose'](),this[_0x4578cb(0x108)]['next'](_0x4578cb(0xaa));}[_0x327e99(0x6f)](){var _0x57ebe8=_0x327e99,_0x12b98d;this[_0x57ebe8(0x108)][_0x57ebe8(0x9a)]('idle'),(_0x12b98d=this[_0x57ebe8(0x78)])==null||_0x12b98d[_0x57ebe8(0xc3)](),this[_0x57ebe8(0x78)]=null;}['_stopFollowing'](){var _0xd956f5=_0x327e99,_0x17c684;this[_0xd956f5(0x108)][_0xd956f5(0x9a)](_0xd956f5(0x93)),(_0x17c684=this[_0xd956f5(0x78)])==null||_0x17c684['dispose']();}[_0x327e99(0x7b)](_0x5073e6){var _0x5bc075=_0x327e99;if([_0x5bc075(0x106),_0x5bc075(0x93),_0x5bc075(0xfd)]['includes'](this['_status'])||!_0x5073e6[_0x5bc075(0xe1)]['presenter']||_0x5073e6[_0x5bc075(0xe1)][_0x5bc075(0x83)]===this[_0x5bc075(0xa0)][_0x5bc075(0xbd)]())return;this[_0x5bc075(0xe2)]===_0x5bc075(0xd0)&&this['_startFollowing']();const _0x2607dc=_0x5073e6[_0x5bc075(0xe1)][_0x5bc075(0x9d)];Object[_0x5bc075(0xe0)](_0x2607dc)[_0x5bc075(0xcd)](_0x4ae3e4=>{var _0x4e0134=_0x5bc075;this[_0x4e0134(0xfe)][_0x4e0134(0x103)](_0x4ae3e4['id'],_0x4ae3e4['params']?JSON['parse'](_0x4ae3e4[_0x4e0134(0x94)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1313ea=_0x327e99,_0x33a332;this[_0x1313ea(0x108)][_0x1313ea(0x9a)](_0x1313ea(0xfd)),(_0x33a332=this[_0x1313ea(0x78)])==null||_0x33a332['dispose']();}[_0x327e99(0x8a)](){var _0x4bfb38=_0x327e99;this['_status$'][_0x4bfb38(0x9a)]('idle'),this[_0x4bfb38(0xf3)]();}};C=Z([f(0x2,_0x155baf),f(0x3,_0x322c89(L)),f(0x4,_0x20c766)],C);function ye(){var _0x445732=_0x327e99;const _0x4dbb5a=_0x52f11b(m),_0x59f803=_0x52f11b(_0x43cb00),_0x179da6=_0x999678(()=>_0x59f803[_0x445732(0x87)](_0x3a995a[_0x445732(0x9e)]),void 0x0,!0x1,[]),[_0x3e8bcf,_0x3f25bb]=_0x2ab18d(null),[_0x16dc69,_0x15e9f2]=_0x2ab18d(h['IDLE']),_0x31ab1b=_0x5a6ac8(null);return _0x20b184(()=>(_0x179da6&&_0x4dbb5a[_0x445732(0x11a)](_0x179da6[_0x445732(0xb9)]())[_0x445732(0x7f)](_0x1eb3ba=>{var _0x3e0866=_0x445732;_0x3f25bb(_0x1eb3ba),_0x31ab1b[_0x3e0866(0x10f)]=_0x1eb3ba[_0x3e0866(0xeb)]['subscribe'](_0x233f16=>{_0x15e9f2(_0x233f16);});}),()=>{var _0x4d589e=_0x445732,_0x10d370;(_0x10d370=_0x31ab1b[_0x4d589e(0x10f)])==null||_0x10d370[_0x4d589e(0xd2)](),_0x31ab1b[_0x4d589e(0x10f)]=null;}),[_0x179da6,_0x4dbb5a]),_0x3e8bcf?_0x3c1611(_0x58654a,{'align':_0x445732(0xa5),'disabled':_0x16dc69===h[_0x445732(0xe3)],'className':_0x445732(0x92),'overlay':_0x3c1611(Re,{'status':_0x16dc69,'coordinator':_0x3e8bcf}),'children':_0x3c1611(_0x445732(0xc1),{'className':_0x4c2d4b(_0x445732(0xfb),{'univer-cursor-not-allowed':_0x16dc69===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x16dc69!==h['OFFLINE']}),'type':_0x445732(0xc1),'children':_0x3c1611(B,{'className':_0x445732(0xb7)})})}):null;}function Re(_0x5b1157){var _0x40b133=_0x327e99;const {status:_0x35a836,coordinator:_0x457b6a}=_0x5b1157;switch(_0x35a836){case h[_0x40b133(0x8f)]:return _0x3c1611(Pe,{'coordinator':_0x457b6a});case h[_0x40b133(0xed)]:return _0x3c1611(Ae,{'coordinator':_0x457b6a});case h['NOT_FOLLOWING']:return _0x3c1611(Te,{'coordinator':_0x457b6a});case h['OFFLINE']:return _0x3c1611(Fe,{});case h[_0x40b133(0xa4)]:return _0x3c1611($e,{'coordinator':_0x457b6a});default:return null;}}function Pe(_0x450919){var _0x49631a=_0x327e99;const {coordinator:_0x1c6a96}=_0x450919;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611(_0x49631a(0x10d),{'className':_0x49631a(0xbc),'children':_0x49631a(0xc2)}),_0x3c1611(_0x5087e0,{'onClick':()=>_0x1c6a96['tryStartPresenting'](),'children':'Start'})]});}function Ae(_0x55e7da){var _0x2cc8de=_0x327e99;const {coordinator:_0x29bab4}=_0x55e7da;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611(_0x2cc8de(0x10d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x3c1611(_0x5087e0,{'onClick':()=>_0x29bab4[_0x2cc8de(0x71)](),'children':_0x2cc8de(0xde)})]});}function Te(_0x315389){var _0x27f81e=_0x327e99;const {coordinator:_0x1f4416}=_0x315389;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611(_0x27f81e(0x10d),{'className':_0x27f81e(0xbc),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3c1611(_0x5087e0,{'variant':'text','onClick':()=>_0x1f4416[_0x27f81e(0x119)](),'children':'Start\x20following'})]});}function $e(_0x206800){var _0x20efb1=_0x327e99;const {coordinator:_0x3d1b8e}=_0x206800;return _0x440d17(_0x3e88f6,{'children':[_0x3c1611('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x20efb1(0x89)}),_0x3c1611(_0x5087e0,{'variant':_0x20efb1(0x7c),'onClick':()=>_0x3d1b8e[_0x20efb1(0xd7)](),'children':'Stop\x20presenting'})]});}function Fe(){return _0x3c1611(_0x3e88f6,{'children':'You\x27are\x20offline.'});}var He=Object[_0x327e99(0x10e)],je=(_0x2491f7,_0x684c8f,_0x49ad1b,_0x130eb1)=>{var _0x8e64c3=_0x327e99;for(var _0x1f7318=_0x130eb1>0x1?void 0x0:_0x130eb1?He(_0x684c8f,_0x49ad1b):_0x684c8f,_0x304d24=_0x2491f7[_0x8e64c3(0xd1)]-0x1,_0x266b85;_0x304d24>=0x0;_0x304d24--)(_0x266b85=_0x2491f7[_0x304d24])&&(_0x1f7318=_0x266b85(_0x1f7318)||_0x1f7318);return _0x1f7318;},T=(_0x9515df,_0x205b52)=>(_0x28d989,_0x5c805d)=>_0x205b52(_0x28d989,_0x5c805d,_0x9515df);let I=class extends _0x5bd465{constructor(_0x1291ae,_0x5c8028){var _0x47e37d=_0x327e99;super(),this[_0x47e37d(0x82)]=_0x1291ae,this[_0x47e37d(0xd9)]=_0x5c8028,this[_0x47e37d(0x8d)]();}[_0x327e99(0x8d)](){var _0x4d9887=_0x327e99;this[_0x4d9887(0x77)](this['_uiPartsService'][_0x4d9887(0xd5)](_0xfe26a1[_0x4d9887(0xca)],()=>_0x3de016(ye,this['_injector'])));}};I=je([T(0x0,_0x322c89(_0x5c2be7)),T(0x1,_0xc8b11c)],I);const Ue=_0x327e99(0xc4),$={};var Ve=Object[_0x327e99(0x10e)],Me=(_0x3893f6,_0x4a3e69,_0x18b11e,_0x377e57)=>{for(var _0x45ce1d=_0x377e57>0x1?void 0x0:_0x377e57?Ve(_0x4a3e69,_0x18b11e):_0x4a3e69,_0x3d1faa=_0x3893f6['length']-0x1,_0x349abb;_0x3d1faa>=0x0;_0x3d1faa--)(_0x349abb=_0x3893f6[_0x3d1faa])&&(_0x45ce1d=_0x349abb(_0x45ce1d)||_0x45ce1d);return _0x45ce1d;},ke=(_0x59a17b,_0x15552d)=>(_0x1f1526,_0x48d6b6)=>_0x15552d(_0x1f1526,_0x48d6b6,_0x59a17b);let b=class extends _0x5bd465{constructor(_0x21a1b6){var _0x8cac12=_0x327e99;super(),this[_0x8cac12(0x90)]=_0x21a1b6,this[_0x8cac12(0xf7)]();}[_0x327e99(0xf7)](){[_0x4a29e4['id'],_0x2ca7f0['id'],_0x3d1e6a['id']]['forEach'](_0x4eef9d=>{var _0xbd4d24=_0x3688;this[_0xbd4d24(0x77)](this[_0xbd4d24(0x90)][_0xbd4d24(0xe8)](_0x4eef9d));});}};b=Me([ke(0x0,_0x322c89(L))],b);var Ge=Object[_0x327e99(0xc9)],We=Object['getOwnPropertyDescriptor'],Ye=(_0xc51dc8,_0x2943e6,_0x377435)=>_0x2943e6 in _0xc51dc8?Ge(_0xc51dc8,_0x2943e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x377435}):_0xc51dc8[_0x2943e6]=_0x377435,Be=(_0x13ab0,_0x46d566,_0x54c85e,_0x4403ee)=>{var _0x1b7b20=_0x327e99;for(var _0x464a5b=_0x4403ee>0x1?void 0x0:_0x4403ee?We(_0x46d566,_0x54c85e):_0x46d566,_0x2f2f4e=_0x13ab0[_0x1b7b20(0xd1)]-0x1,_0x478438;_0x2f2f4e>=0x0;_0x2f2f4e--)(_0x478438=_0x13ab0[_0x2f2f4e])&&(_0x464a5b=_0x478438(_0x464a5b)||_0x464a5b);return _0x464a5b;},F=(_0x4ffd8a,_0x3f3f48)=>(_0x406501,_0x850323)=>_0x3f3f48(_0x406501,_0x850323,_0x4ffd8a),J=(_0x398162,_0x1a589b,_0x4bfe4f)=>Ye(_0x398162,typeof _0x1a589b!=_0x327e99(0x110)?_0x1a589b+'':_0x1a589b,_0x4bfe4f);const Ze=_0x327e99(0xce);let O=class extends _0x219943{constructor(_0x4b18e9=$,_0x471e8b,_0x11b280){var _0x3da602=_0x327e99;super(),this['_config']=_0x4b18e9,this['_injector']=_0x471e8b,this['_configService']=_0x11b280;const {..._0xb4fdc8}=_0x156a51({},$,this[_0x3da602(0xbf)]);this[_0x3da602(0xff)][_0x3da602(0xcc)](Ue,_0xb4fdc8);}[_0x327e99(0x112)](){var _0x45f0cf=_0x327e99;_0x14872e(this[_0x45f0cf(0x82)],_0x56051a([[L],[m],[b],[I]],this[_0x45f0cf(0xbf)][_0x45f0cf(0x8c)])),_0x25c9a6(this[_0x45f0cf(0x82)],[[b]]);}['onRendered'](){var _0x25762c=_0x327e99;_0x25c9a6(this[_0x25762c(0x82)],[[I]]);}};J(O,'type',_0x3a995a[_0x327e99(0xc7)]),J(O,_0x327e99(0x10b),Ze),O=Be([_0x19b5d5(_0x2156c1),F(0x1,_0x322c89(_0x5c2be7)),F(0x2,_0x155baf)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5176(_0x260534,_0x2a60ae){var _0x121b66=_0x121b();return _0x5176=function(_0x5176ed,_0x2d7752){_0x5176ed=_0x5176ed-0xbe;var _0x4e571b=_0x121b66[_0x5176ed];return _0x4e571b;},_0x5176(_0x260534,_0x2a60ae);}(function(_0x2b3af0,_0x36a966){var _0x120563=_0x5176,_0x2b5c11=_0x2b3af0();while(!![]){try{var _0x5e1409=parseInt(_0x120563(0x120))/0x1+-parseInt(_0x120563(0xfc))/0x2*(parseInt(_0x120563(0x177))/0x3)+parseInt(_0x120563(0x184))/0x4*(parseInt(_0x120563(0xbf))/0x5)+parseInt(_0x120563(0x111))/0x6+parseInt(_0x120563(0x118))/0x7+-parseInt(_0x120563(0x14d))/0x8+-parseInt(_0x120563(0x13e))/0x9*(parseInt(_0x120563(0x154))/0xa);if(_0x5e1409===_0x36a966)break;else _0x2b5c11['push'](_0x2b5c11['shift']());}catch(_0x28fc35){_0x2b5c11['push'](_0x2b5c11['shift']());}}}(_0x121b,0x7ae7d),function(_0x267809,_0x5618a1){var _0x39d40a=_0x5176;typeof exports==_0x39d40a(0x123)&&typeof module<'u'?_0x5618a1(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x39d40a(0xc2)&&define['amd']?define(['exports',_0x39d40a(0xf4),_0x39d40a(0x17f),_0x39d40a(0xf6),_0x39d40a(0x137),_0x39d40a(0xd3),_0x39d40a(0x150),_0x39d40a(0x179),_0x39d40a(0x124),'rxjs',_0x39d40a(0x127),_0x39d40a(0x18c)],_0x5618a1):(_0x267809=typeof globalThis<'u'?globalThis:_0x267809||self,_0x5618a1(_0x267809[_0x39d40a(0xc9)]={},_0x267809[_0x39d40a(0x163)],_0x267809['UniverUi'],_0x267809[_0x39d40a(0x148)],_0x267809[_0x39d40a(0x18f)],_0x267809[_0x39d40a(0x148)],_0x267809[_0x39d40a(0xdc)],_0x267809[_0x39d40a(0xca)],_0x267809[_0x39d40a(0x196)],_0x267809[_0x39d40a(0xd6)],_0x267809[_0x39d40a(0xd6)][_0x39d40a(0x11b)],_0x267809['UniverSheetsUi']));}(this,function(_0x3d2538,_0x12f4f1,_0x10e076,_0x14fb5b,_0x1fa1dc,_0x13f6b6,_0x3b76ec,_0x46d621,_0x22916a,_0x44bc7e,_0x3e5de7,_0x456593){'use strict';var _0x2d08a5=_0x5176;var _0xc3b82a=Object[_0x2d08a5(0x107)],_0x43db6c=(_0x556560,_0x20783a,_0x1fbae0)=>_0x20783a in _0x556560?_0xc3b82a(_0x556560,_0x20783a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fbae0}):_0x556560[_0x20783a]=_0x1fbae0,_0x8c096d=(_0x294919,_0x394d46,_0x115388)=>_0x43db6c(_0x294919,typeof _0x394d46!='symbol'?_0x394d46+'':_0x394d46,_0x115388),_0x16b35d=function(){var _0x3223c6=_0x2d08a5;return _0x16b35d=Object[_0x3223c6(0x18a)]||function(_0x179fc3){var _0x25643e=_0x3223c6;for(var _0x2ff0ff,_0x233634=0x1,_0x2ac7a2=arguments[_0x25643e(0x136)];_0x233634<_0x2ac7a2;_0x233634++){_0x2ff0ff=arguments[_0x233634];for(var _0x5e55c4 in _0x2ff0ff)Object['prototype']['hasOwnProperty'][_0x25643e(0xc5)](_0x2ff0ff,_0x5e55c4)&&(_0x179fc3[_0x5e55c4]=_0x2ff0ff[_0x5e55c4]);}return _0x179fc3;},_0x16b35d[_0x3223c6(0x143)](this,arguments);},_0x577960=function(_0x747d1c,_0x35b721){var _0x5d6963=_0x2d08a5,_0xc5be71={};for(var _0x4262d7 in _0x747d1c)Object['prototype']['hasOwnProperty'][_0x5d6963(0xc5)](_0x747d1c,_0x4262d7)&&_0x35b721[_0x5d6963(0x195)](_0x4262d7)<0x0&&(_0xc5be71[_0x4262d7]=_0x747d1c[_0x4262d7]);if(_0x747d1c!=null&&typeof Object[_0x5d6963(0x14b)]==_0x5d6963(0xc2)){for(var _0x4c0eba=0x0,_0x4262d7=Object['getOwnPropertySymbols'](_0x747d1c);_0x4c0eba<_0x4262d7[_0x5d6963(0x136)];_0x4c0eba++)_0x35b721[_0x5d6963(0x195)](_0x4262d7[_0x4c0eba])<0x0&&Object[_0x5d6963(0x13a)][_0x5d6963(0x1a3)]['call'](_0x747d1c,_0x4262d7[_0x4c0eba])&&(_0xc5be71[_0x4262d7[_0x4c0eba]]=_0x747d1c[_0x4262d7[_0x4c0eba]]);}return _0xc5be71;},_0x5848e4=_0x13f6b6[_0x2d08a5(0x176)](function(_0x1ae7a8,_0x4f8d5e){var _0x4da7cd=_0x2d08a5,_0xb3e25c=_0x1ae7a8['icon'],_0x5280a2=_0x1ae7a8['id'],_0x1d89d9=_0x1ae7a8[_0x4da7cd(0x197)],_0x1b7c4b=_0x1ae7a8[_0x4da7cd(0xe0)],_0x190acd=_0x577960(_0x1ae7a8,[_0x4da7cd(0x133),'id',_0x4da7cd(0x197),_0x4da7cd(0xe0)]),_0x4775c4=_0x4da7cd(0x145)[_0x4da7cd(0x138)](_0x5280a2,'\x20')[_0x4da7cd(0x138)](_0x1d89d9||'')[_0x4da7cd(0x169)](),_0x33e0ec=_0x13f6b6[_0x4da7cd(0x101)]('_'[_0x4da7cd(0x138)](_0x4ff146()));return _0x20fe3c(_0xb3e25c,''[_0x4da7cd(0x138)](_0x5280a2),{'defIds':_0xb3e25c['defIds'],'idSuffix':_0x33e0ec['current']},_0x16b35d({'ref':_0x4f8d5e,'className':_0x4775c4},_0x190acd),_0x1b7c4b);});function _0x20fe3c(_0x510b47,_0x904e77,_0x244b34,_0x302c82,_0x2aed0d){var _0x3222d5=_0x2d08a5;return _0x13f6b6[_0x3222d5(0xd7)](_0x510b47['tag'],_0x16b35d(_0x16b35d({'key':_0x904e77},_0x4ec62b(_0x510b47,_0x244b34,_0x2aed0d)),_0x302c82),(_0x292c06(_0x510b47,_0x244b34)['children']||[])['map'](function(_0x5d6fe2,_0x1c3716){var _0xbd9094=_0x3222d5;return _0x20fe3c(_0x5d6fe2,''[_0xbd9094(0x138)](_0x904e77,'-')[_0xbd9094(0x138)](_0x510b47[_0xbd9094(0xf2)],'-')['concat'](_0x1c3716),_0x244b34,void 0x0,_0x2aed0d);}));}function _0x4ec62b(_0x1f6552,_0x9483e0,_0x28e5a7){var _0x36d283=_0x2d08a5,_0x4b983b=_0x16b35d({},_0x1f6552['attrs']);_0x28e5a7!=null&&_0x28e5a7['colorChannel1']&&_0x4b983b[_0x36d283(0xd5)]===_0x36d283(0xeb)&&(_0x4b983b[_0x36d283(0xd5)]=_0x28e5a7[_0x36d283(0xeb)]),_0x1f6552['tag']===_0x36d283(0x128)&&_0x4b983b['id']&&(_0x4b983b['id']=_0x4b983b['id']+_0x9483e0[_0x36d283(0x11d)]),Object[_0x36d283(0x10d)](_0x4b983b)[_0x36d283(0x12f)](function(_0x43eda2){var _0xa427dd=_0x36d283,_0x1c57d6=_0x43eda2[0x0],_0x5191a8=_0x43eda2[0x1];_0x1c57d6===_0xa427dd(0x128)&&typeof _0x5191a8==_0xa427dd(0xea)&&(_0x4b983b[_0x1c57d6]=_0x5191a8[_0xa427dd(0x193)](/url\(#(.*)\)/,_0xa427dd(0x19c)[_0xa427dd(0x138)](_0x9483e0[_0xa427dd(0x11d)],')')));});var _0x2023e6=_0x9483e0[_0x36d283(0x19e)];return!_0x2023e6||_0x2023e6[_0x36d283(0x136)]===0x0||(_0x1f6552[_0x36d283(0xf2)]==='use'&&_0x4b983b[_0x36d283(0xe2)]&&(_0x4b983b['xlink:href']=_0x4b983b[_0x36d283(0xe2)]+_0x9483e0[_0x36d283(0x11d)]),Object[_0x36d283(0x10d)](_0x4b983b)[_0x36d283(0x12f)](function(_0x4182d1){var _0x36c6e1=_0x36d283,_0x2e000e=_0x4182d1[0x0],_0x137a50=_0x4182d1[0x1];typeof _0x137a50=='string'&&(_0x4b983b[_0x2e000e]=_0x137a50[_0x36c6e1(0x193)](/url\(#(.*)\)/,_0x36c6e1(0x19c)[_0x36c6e1(0x138)](_0x9483e0['idSuffix'],')')));})),_0x4b983b;}function _0x292c06(_0x462792,_0x5dd242){var _0x300608=_0x2d08a5,_0x2fb0a3,_0x4b0e41=_0x5dd242['defIds'];return!_0x4b0e41||_0x4b0e41[_0x300608(0x136)]===0x0?_0x462792:_0x462792[_0x300608(0xf2)]===_0x300608(0x152)&&(!((_0x2fb0a3=_0x462792[_0x300608(0x115)])===null||_0x2fb0a3===void 0x0)&&_0x2fb0a3[_0x300608(0x136)])?_0x16b35d(_0x16b35d({},_0x462792),{'children':_0x462792[_0x300608(0x115)][_0x300608(0x17a)](function(_0x57611b){var _0x4574f5=_0x300608;return typeof _0x57611b[_0x4574f5(0x108)]['id']==_0x4574f5(0xea)&&_0x4b0e41&&_0x4b0e41[_0x4574f5(0x125)](_0x57611b[_0x4574f5(0x108)]['id'])?_0x16b35d(_0x16b35d({},_0x57611b),{'attrs':_0x16b35d(_0x16b35d({},_0x57611b[_0x4574f5(0x108)]),{'id':_0x57611b[_0x4574f5(0x108)]['id']+_0x5dd242[_0x4574f5(0x11d)]})}):_0x57611b;})}):_0x462792;}function _0x4ff146(){var _0x228392=_0x2d08a5;return Math[_0x228392(0x17e)]()[_0x228392(0x105)](0x24)[_0x228392(0x13b)](0x2,0x8);}_0x5848e4[_0x2d08a5(0x1a0)]=_0x2d08a5(0x11c);var _0xebec68={'tag':_0x2d08a5(0x1a2),'attrs':{'xmlns':_0x2d08a5(0x199),'fill':_0x2d08a5(0x109),'viewBox':'0\x200\x2017\x2017','width':_0x2d08a5(0xfa),'height':_0x2d08a5(0xfa)},'children':[{'tag':_0x2d08a5(0xe5),'attrs':{'fill':_0x2d08a5(0xd8),'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':_0x2d08a5(0xe5),'attrs':{'fill':_0x2d08a5(0xd8),'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'}}]},_0x4a8d7c=_0x13f6b6['forwardRef'](function(_0x3121fd,_0xd9a8ad){var _0x1a7e76=_0x2d08a5;return _0x13f6b6[_0x1a7e76(0xd7)](_0x5848e4,Object[_0x1a7e76(0x18a)]({},_0x3121fd,{'id':_0x1a7e76(0x14a),'ref':_0xd9a8ad,'icon':_0xebec68}));});_0x4a8d7c[_0x2d08a5(0x1a0)]=_0x2d08a5(0x153);class _0xc03e40 extends _0x12f4f1[_0x2d08a5(0x158)]{constructor(){var _0x275e54=_0x2d08a5;super(...arguments),_0x8c096d(this,'_sharedOperations',new Set()),_0x8c096d(this,_0x275e54(0xc4),new Set());}['registerSharedOperation'](_0x3c8b77){var _0x55abd8=_0x2d08a5;return this['_sharedOperations'][_0x55abd8(0x1a5)](_0x3c8b77),_0x12f4f1[_0x55abd8(0x16c)](()=>this[_0x55abd8(0x166)]['delete'](_0x3c8b77));}[_0x2d08a5(0x1a6)](_0xbe1d3){var _0x5a3d79=_0x2d08a5;return this[_0x5a3d79(0xc4)][_0x5a3d79(0x1a5)](_0xbe1d3),_0x12f4f1[_0x5a3d79(0x16c)](()=>this[_0x5a3d79(0xc4)][_0x5a3d79(0xcc)](_0xbe1d3));}[_0x2d08a5(0x14c)](_0x512bac){var _0x56efec=_0x2d08a5;return this[_0x56efec(0x166)]['has'](_0x512bac);}['getInitialStates'](_0x513e7c){var _0x37decd=_0x2d08a5;return Array[_0x37decd(0xf8)](this['_reporters'])[_0x37decd(0x17a)](_0x171da2=>_0x171da2(_0x513e7c));}}var _0x5566dc=Object[_0x2d08a5(0x15c)],_0x58062f=(_0x40f195,_0x3f32e4,_0x2ce11c,_0x4967a0)=>{var _0xb3c5c1=_0x2d08a5;for(var _0x340247=_0x4967a0>0x1?void 0x0:_0x4967a0?_0x5566dc(_0x3f32e4,_0x2ce11c):_0x3f32e4,_0x33dad0=_0x40f195[_0xb3c5c1(0x136)]-0x1,_0x532144;_0x33dad0>=0x0;_0x33dad0--)(_0x532144=_0x40f195[_0x33dad0])&&(_0x340247=_0x532144(_0x340247)||_0x340247);return _0x340247;},_0x4d566a=(_0x42cf67,_0x40bac4)=>(_0x4528f7,_0xf7bfa5)=>_0x40bac4(_0x4528f7,_0xf7bfa5,_0x42cf67);_0x3d2538[_0x2d08a5(0x168)]=class extends _0x12f4f1[_0x2d08a5(0xe8)]{constructor(_0x454f99,_0x50c1bc,_0x58cf9a){var _0x5ea209=_0x2d08a5;super(),_0x8c096d(this,_0x5ea209(0xe9),new Map()),(this[_0x5ea209(0x19a)]=_0x454f99,this[_0x5ea209(0x12a)]=_0x50c1bc,this[_0x5ea209(0x16a)]=_0x58cf9a,this['_init']());}async['getLiveShareCoordinator'](_0x31379e){var _0x4c15cb=_0x2d08a5;return this[_0x4c15cb(0xe9)][_0x4c15cb(0x16b)](_0x31379e)||await this[_0x4c15cb(0xe7)](_0x31379e),this[_0x4c15cb(0xe9)][_0x4c15cb(0x135)](_0x31379e);}[_0x2d08a5(0x10b)](){var _0x5c8b2e=_0x2d08a5;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x12f4f1[_0x5c8b2e(0xfb)][_0x5c8b2e(0x15e)])['pipe'](_0x3e5de7[_0x5c8b2e(0xc8)](this[_0x5c8b2e(0x103)]))[_0x5c8b2e(0x190)](async _0x37d1a7=>{var _0xeb0d3b=_0x5c8b2e;const _0x347a02=_0x37d1a7[_0xeb0d3b(0x112)]();this['_entities'][_0xeb0d3b(0x16b)](_0x347a02)||this[_0xeb0d3b(0xe7)](_0x347a02);}),this[_0x5c8b2e(0x19a)][_0x5c8b2e(0x13c)](_0x12f4f1[_0x5c8b2e(0xfb)][_0x5c8b2e(0x15e)])[_0x5c8b2e(0x19f)](_0x3e5de7[_0x5c8b2e(0xc8)](this[_0x5c8b2e(0x103)]))[_0x5c8b2e(0x190)](_0x355a39=>{var _0x46bade=_0x5c8b2e;const _0x16ad77=_0x355a39[_0x46bade(0x112)](),_0x485662=this[_0x46bade(0xe9)][_0x46bade(0x135)](_0x16ad77);_0x485662==null||_0x485662['dispose']();});}async['_startLiveShareCoordinator'](_0x114c7f){var _0x1d8e5b=_0x2d08a5;const _0x12336f=await this[_0x1d8e5b(0x16a)]['requireSession'](_0x114c7f),_0x3f0c4c=this[_0x1d8e5b(0x12a)][_0x1d8e5b(0x100)](_0x3d2538['LiveShareCoordinator'],_0x114c7f,_0x12336f);return _0x3f0c4c['init'](),this[_0x1d8e5b(0xe9)][_0x1d8e5b(0x140)](_0x114c7f,_0x3f0c4c),_0x3f0c4c;}},_0x3d2538[_0x2d08a5(0x168)]=_0x58062f([_0x4d566a(0x0,_0x12f4f1['IUniverInstanceService']),_0x4d566a(0x1,_0x12f4f1[_0x2d08a5(0x141)](_0x12f4f1['Injector'])),_0x4d566a(0x2,_0x12f4f1[_0x2d08a5(0x141)](_0x46d621['CollaborationSessionService']))],_0x3d2538[_0x2d08a5(0x168)]);var _0x398d2d=(_0x39e96f=>(_0x39e96f[_0x2d08a5(0x11f)]=_0x2d08a5(0x12c),_0x39e96f[_0x2d08a5(0x149)]=_0x2d08a5(0xf5),_0x39e96f[_0x2d08a5(0xf9)]=_0x2d08a5(0x15b),_0x39e96f[_0x2d08a5(0x12b)]=_0x2d08a5(0x191),_0x39e96f[_0x2d08a5(0xe6)]=_0x2d08a5(0x13f),_0x39e96f))(_0x398d2d||{});const _0x3eec04=_0x2d08a5(0x134),_0xb73a5c=0xc8;_0x3d2538[_0x2d08a5(0xdd)]=class extends _0x12f4f1[_0x2d08a5(0xe8)]{constructor(_0x13cd12,_0x17a9b4,_0x5f4ef8,_0x41e536,_0xea17d8){var _0x19e34d=_0x2d08a5;super(),_0x8c096d(this,'_status$',new _0x44bc7e['BehaviorSubject'](_0x19e34d(0xf5))),_0x8c096d(this,'status$',this[_0x19e34d(0xcb)][_0x19e34d(0x161)]()),_0x8c096d(this,_0x19e34d(0x10b),!0x1),_0x8c096d(this,'_commandDisposable',null),_0x8c096d(this,'_presenter',null),(this[_0x19e34d(0x14e)]=_0x13cd12,this[_0x19e34d(0x131)]=_0x17a9b4,this[_0x19e34d(0xc3)]=_0x5f4ef8,this[_0x19e34d(0x194)]=_0x41e536,this[_0x19e34d(0x126)]=_0xea17d8);}get[_0x2d08a5(0xee)](){var _0x2ed712=_0x2d08a5;return this[_0x2ed712(0xcb)][_0x2ed712(0x18d)]();}[_0x2d08a5(0xc0)](){var _0x2901c7=_0x2d08a5,_0x522f86;(_0x522f86=this[_0x2901c7(0xf0)])==null||_0x522f86[_0x2901c7(0xc0)](),this[_0x2901c7(0xcb)]['next'](_0x2901c7(0xf5)),this[_0x2901c7(0xcb)][_0x2901c7(0xf7)]();}[_0x2d08a5(0x10e)](){var _0x5b79b=_0x2d08a5;this[_0x5b79b(0x10b)]||(this[_0x5b79b(0x10b)]=!0x0,this[_0x5b79b(0x131)]['sessionStatus$'][_0x5b79b(0x19f)](_0x3e5de7[_0x5b79b(0xc8)](this[_0x5b79b(0x103)]))[_0x5b79b(0x190)](_0x5caaab=>{var _0x5ecc13=_0x5b79b;switch(_0x5caaab){case _0x46d621[_0x5ecc13(0xd0)][_0x5ecc13(0x11f)]:this['_handleOffline']();break;case _0x46d621[_0x5ecc13(0xd0)]['ONLINE']:this[_0x5ecc13(0x164)]();break;}}),this[_0x5b79b(0x131)][_0x5b79b(0xdb)][_0x5b79b(0x19f)](_0x3e5de7[_0x5b79b(0xc8)](this[_0x5b79b(0x103)]))[_0x5b79b(0x190)](_0x496152=>{var _0x308e42=_0x5b79b;const {eventID:_0x7228ea}=_0x496152;switch(_0x7228ea){case _0x3b76ec[_0x308e42(0xd9)][_0x308e42(0x170)]:this[_0x308e42(0xdf)](_0x496152);break;case _0x3b76ec['CollaborationEvent'][_0x308e42(0x182)]:this[_0x308e42(0x102)](_0x496152);break;case _0x3b76ec[_0x308e42(0xd9)][_0x308e42(0x19b)]:this[_0x308e42(0x192)]();break;case _0x3b76ec[_0x308e42(0xd9)][_0x308e42(0xcd)]:this[_0x308e42(0x157)](_0x496152);break;}}));}[_0x2d08a5(0x171)](){var _0x53b9d8=_0x2d08a5;this[_0x53b9d8(0x131)][_0x53b9d8(0x1ac)]({'eventID':_0x3b76ec[_0x53b9d8(0xd9)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x53b9d8(0x14e)],'userID':this[_0x53b9d8(0x131)]['getMemberID']()}},this[_0x53b9d8(0x14e)]);}[_0x2d08a5(0x132)](){var _0x280eeb=_0x2d08a5;this[_0x280eeb(0xee)]===_0x280eeb(0x13f)&&(this[_0x280eeb(0xcb)][_0x280eeb(0x12e)](_0x280eeb(0xf5)),this['_collabSession'][_0x280eeb(0x1ac)]({'eventID':_0x3b76ec[_0x280eeb(0xd9)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x280eeb(0x14e)]}},this['_unitID']));}[_0x2d08a5(0x186)](){var _0xcee24d=_0x2d08a5;this[_0xcee24d(0xee)]===_0xcee24d(0x191)&&(this['_status$']['next']('following'),this[_0xcee24d(0x10a)]());}[_0x2d08a5(0x165)](){var _0x56298d=_0x2d08a5;this[_0x56298d(0xee)]===_0x56298d(0x15b)&&this[_0x56298d(0x147)]();}[_0x2d08a5(0xdf)](_0x34a9a3){var _0x35a6c2=_0x2d08a5;const {presenter:_0x429890}=_0x34a9a3[_0x35a6c2(0x129)],_0x3671b6=this[_0x35a6c2(0x131)][_0x35a6c2(0x178)]();this[_0x35a6c2(0x17b)]=_0x429890,_0x429890===_0x3671b6?(this[_0x35a6c2(0x147)](),this[_0x35a6c2(0x116)]()):this[_0x35a6c2(0xee)]!==_0x35a6c2(0x191)&&(this[_0x35a6c2(0x1a4)](),this[_0x35a6c2(0x10a)]());}[_0x2d08a5(0x175)](){var _0x5b5263=_0x2d08a5;const _0x5d3a18={'eventID':_0x3b76ec[_0x5b5263(0xd9)][_0x5b5263(0x16d)]};this[_0x5b5263(0x131)][_0x5b5263(0x1ac)](_0x5d3a18,this[_0x5b5263(0x14e)]);}[_0x2d08a5(0x192)](){var _0x1dd137=_0x2d08a5;this[_0x1dd137(0x17b)]=null,this['_status']!==_0x1dd137(0x13f)&&this['_beIdle']();}[_0x2d08a5(0x157)](_0x1e109c){var _0x127fbb=_0x2d08a5;if(this[_0x127fbb(0xee)]===_0x127fbb(0x15b)&&this[_0x127fbb(0x17b)]===_0x1e109c[_0x127fbb(0x129)]['memberID']){const _0x50cb97=_0x3b76ec[_0x127fbb(0x122)](_0x1e109c[_0x127fbb(0x129)])[_0x127fbb(0x17d)]['reverse']()[_0x127fbb(0xf1)](_0x29edf6=>_0x29edf6['id']===_0x22916a['InsertSheetMutation']['id']);if(_0x50cb97){const _0x3e4a48=_0x50cb97[_0x127fbb(0x121)]['unitId'],_0x5c9c42=_0x50cb97[_0x127fbb(0x121)][_0x127fbb(0xce)]['id'];setTimeout(()=>{var _0x3eb838=_0x127fbb;this[_0x3eb838(0x126)][_0x3eb838(0x144)](_0x22916a[_0x3eb838(0xd2)]['id'],{'unitId':_0x3e4a48,'subUnitId':_0x5c9c42},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x52fa8c=_0x2d08a5;this[_0x52fa8c(0xcb)]['next']('presenting');const _0x3c3c8=new Map(),_0x5443f3=this[_0x52fa8c(0xf0)]=new _0x12f4f1['DisposableCollection']();_0x5443f3[_0x52fa8c(0x1a5)](_0x12f4f1['toDisposable'](()=>{var _0x5f277f=_0x52fa8c;_0x3c3c8['forEach'](_0x279760=>_0x279760['complete']()),_0x3c3c8[_0x5f277f(0x113)]();})),_0x5443f3[_0x52fa8c(0x1a5)](this[_0x52fa8c(0x126)][_0x52fa8c(0xec)](_0x564a52=>{var _0x3ab472=_0x52fa8c,_0x1656c1;if(_0x564a52[_0x3ab472(0x19d)]!==_0x12f4f1['CommandType']['OPERATION']||!this[_0x3ab472(0x194)]['shouldShareOperation'](_0x564a52['id']))return;const {id:_0x270f08}=_0x564a52;let _0x144c37;_0x3c3c8[_0x3ab472(0x16b)](_0x270f08)?_0x144c37=_0x3c3c8[_0x3ab472(0x135)](_0x270f08):(_0x144c37=new _0x44bc7e[(_0x3ab472(0xc1))](),_0x3c3c8[_0x3ab472(0x140)](_0x270f08,_0x144c37),_0x144c37['pipe'](_0x3e5de7[_0x3ab472(0xd1)]((_0x1656c1=this['_configService'][_0x3ab472(0x110)](_0x3eec04))!=null?_0x1656c1:_0xb73a5c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3ab472(0x190)](_0xfb80de=>{var _0xcfe731=_0x3ab472;this[_0xcfe731(0x131)][_0xcfe731(0x1ac)]({'eventID':_0x3b76ec['CollaborationEvent'][_0xcfe731(0x182)],'data':{'unitID':this[_0xcfe731(0x14e)],'operations':{[_0xfb80de['id']]:{'id':_0xfb80de['id'],'params':JSON[_0xcfe731(0x106)](_0xfb80de['params'])}}}},this[_0xcfe731(0x14e)]);})),_0x144c37[_0x3ab472(0x12e)](_0x564a52);})),this[_0x52fa8c(0x194)]['getInitialStates'](this[_0x52fa8c(0x14e)])[_0x52fa8c(0x12f)](_0x1ba46c=>this['_collabSession'][_0x52fa8c(0x1ac)]({'eventID':_0x3b76ec[_0x52fa8c(0xd9)][_0x52fa8c(0x182)],'data':{'unitID':this[_0x52fa8c(0x14e)],'operations':{[_0x1ba46c['id']]:{'id':_0x1ba46c['id'],'params':JSON[_0x52fa8c(0x106)](_0x1ba46c[_0x52fa8c(0x121)])}}}},this[_0x52fa8c(0x14e)]));}['_stopPresenting'](){var _0x4ef351=_0x2d08a5,_0x18f5b4;this[_0x4ef351(0xcb)][_0x4ef351(0x12e)](_0x4ef351(0xf5)),(_0x18f5b4=this[_0x4ef351(0xf0)])==null||_0x18f5b4[_0x4ef351(0xc0)](),this[_0x4ef351(0xf0)]=null;}['_startFollowing'](){var _0xd7dd8f=_0x2d08a5,_0x5a6e66;(_0x5a6e66=this[_0xd7dd8f(0xf0)])==null||_0x5a6e66[_0xd7dd8f(0xc0)](),this['_status$'][_0xd7dd8f(0x12e)](_0xd7dd8f(0x15b));}[_0x2d08a5(0x1a8)](){var _0x30803d=_0x2d08a5,_0x3e331a;this[_0x30803d(0xcb)]['next']('idle'),(_0x3e331a=this[_0x30803d(0xf0)])==null||_0x3e331a[_0x30803d(0xc0)](),this[_0x30803d(0xf0)]=null;}[_0x2d08a5(0x147)](){var _0x3d7712=_0x2d08a5,_0x34c1db;this[_0x3d7712(0xcb)][_0x3d7712(0x12e)](_0x3d7712(0x191)),(_0x34c1db=this[_0x3d7712(0xf0)])==null||_0x34c1db['dispose']();}[_0x2d08a5(0x102)](_0x438f6c){var _0x38cbab=_0x2d08a5;if([_0x38cbab(0x13f),_0x38cbab(0x191),'offline'][_0x38cbab(0x125)](this[_0x38cbab(0xee)])||!_0x438f6c['data']['presenter']||_0x438f6c['data'][_0x38cbab(0xef)]===this[_0x38cbab(0x131)][_0x38cbab(0x178)]())return;this[_0x38cbab(0xee)]===_0x38cbab(0xf5)&&this[_0x38cbab(0x10a)]();const _0x3f3243=_0x438f6c['data'][_0x38cbab(0xc6)];Object[_0x38cbab(0x142)](_0x3f3243)['forEach'](_0x2fcff3=>{var _0x523b27=_0x38cbab;this[_0x523b27(0x126)]['executeCommand'](_0x2fcff3['id'],_0x2fcff3[_0x523b27(0x121)]?JSON[_0x523b27(0xc7)](_0x2fcff3['params']):null,{'fromCollab':!0x0});});}[_0x2d08a5(0x15f)](){var _0x20e904=_0x2d08a5,_0xabc026;this[_0x20e904(0xcb)][_0x20e904(0x12e)](_0x20e904(0x12c)),(_0xabc026=this[_0x20e904(0xf0)])==null||_0xabc026[_0x20e904(0xc0)]();}[_0x2d08a5(0x164)](){var _0x505624=_0x2d08a5;this[_0x505624(0xcb)][_0x505624(0x12e)](_0x505624(0xf5)),this[_0x505624(0x175)]();}},_0x3d2538[_0x2d08a5(0xdd)]=_0x58062f([_0x4d566a(0x2,_0x12f4f1[_0x2d08a5(0x16f)]),_0x4d566a(0x3,_0x12f4f1[_0x2d08a5(0x141)](_0xc03e40)),_0x4d566a(0x4,_0x12f4f1[_0x2d08a5(0x18e)])],_0x3d2538[_0x2d08a5(0xdd)]);function _0x50ba3e(){var _0x948d00=_0x2d08a5;const _0x5905a0=_0x10e076[_0x948d00(0x117)](_0x3d2538[_0x948d00(0x168)]),_0x41dc68=_0x10e076[_0x948d00(0x117)](_0x12f4f1['IUniverInstanceService']),_0x44402f=_0x10e076[_0x948d00(0x198)](()=>_0x41dc68[_0x948d00(0xf3)](_0x12f4f1[_0x948d00(0xfb)][_0x948d00(0x15e)]),void 0x0,!0x1,[]),[_0x4ea94a,_0x5d295d]=_0x13f6b6[_0x948d00(0x14f)](null),[_0x5eff17,_0x3acec0]=_0x13f6b6[_0x948d00(0x14f)](_0x398d2d[_0x948d00(0x149)]),_0x37934d=_0x13f6b6[_0x948d00(0x101)](null);return _0x13f6b6[_0x948d00(0xfd)](()=>(_0x44402f&&_0x5905a0[_0x948d00(0x183)](_0x44402f[_0x948d00(0x112)]())[_0x948d00(0x18b)](_0x502695=>{var _0x2d9361=_0x948d00;_0x5d295d(_0x502695),_0x37934d[_0x2d9361(0x17c)]=_0x502695[_0x2d9361(0x16e)][_0x2d9361(0x190)](_0x2e0ac4=>{_0x3acec0(_0x2e0ac4);});}),()=>{var _0xc48b0=_0x948d00,_0xdb920c;(_0xdb920c=_0x37934d[_0xc48b0(0x17c)])==null||_0xdb920c[_0xc48b0(0xed)](),_0x37934d[_0xc48b0(0x17c)]=null;}),[_0x44402f,_0x5905a0]),_0x4ea94a?_0x14fb5b[_0x948d00(0x1aa)](_0x1fa1dc[_0x948d00(0x1ab)],{'align':_0x948d00(0xe4),'disabled':_0x5eff17===_0x398d2d['OFFLINE'],'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':_0x14fb5b[_0x948d00(0x1aa)](_0x527584,{'status':_0x5eff17,'coordinator':_0x4ea94a}),'children':_0x14fb5b[_0x948d00(0x1aa)]('button',{'className':_0x1fa1dc[_0x948d00(0x181)](_0x948d00(0xe3),{'univer-cursor-not-allowed':_0x5eff17===_0x398d2d['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5eff17!==_0x398d2d['OFFLINE']}),'type':'button','children':_0x14fb5b[_0x948d00(0x1aa)](_0x4a8d7c,{'className':_0x948d00(0x13d)})})}):null;}function _0x527584(_0xa14cc2){var _0x1f9d15=_0x2d08a5;const {status:_0x1ad11a,coordinator:_0x22c7a2}=_0xa14cc2;switch(_0x1ad11a){case _0x398d2d[_0x1f9d15(0x149)]:return _0x14fb5b[_0x1f9d15(0x1aa)](_0x257ad7,{'coordinator':_0x22c7a2});case _0x398d2d[_0x1f9d15(0xf9)]:return _0x14fb5b[_0x1f9d15(0x1aa)](_0x30f3ff,{'coordinator':_0x22c7a2});case _0x398d2d[_0x1f9d15(0x12b)]:return _0x14fb5b['jsx'](_0x3864dc,{'coordinator':_0x22c7a2});case _0x398d2d[_0x1f9d15(0x11f)]:return _0x14fb5b[_0x1f9d15(0x1aa)](_0x20770c,{});case _0x398d2d[_0x1f9d15(0xe6)]:return _0x14fb5b[_0x1f9d15(0x1aa)](_0x13f96e,{'coordinator':_0x22c7a2});default:return null;}}function _0x257ad7(_0xd66cd0){var _0x99fad0=_0x2d08a5;const {coordinator:_0xc5692}=_0xd66cd0;return _0x14fb5b[_0x99fad0(0x160)](_0x14fb5b[_0x99fad0(0x139)],{'children':[_0x14fb5b[_0x99fad0(0x1aa)](_0x99fad0(0x1a9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x99fad0(0x189)}),_0x14fb5b[_0x99fad0(0x1aa)](_0x1fa1dc['Button'],{'onClick':()=>_0xc5692[_0x99fad0(0x171)](),'children':'Start'})]});}function _0x30f3ff(_0x2151b1){var _0x5d4062=_0x2d08a5;const {coordinator:_0x449cdd}=_0x2151b1;return _0x14fb5b[_0x5d4062(0x160)](_0x14fb5b[_0x5d4062(0x139)],{'children':[_0x14fb5b[_0x5d4062(0x1aa)](_0x5d4062(0x1a9),{'className':_0x5d4062(0x114),'children':_0x5d4062(0x162)}),_0x14fb5b['jsx'](_0x1fa1dc[_0x5d4062(0x119)],{'onClick':()=>_0x449cdd['stopFollowing'](),'children':_0x5d4062(0x15a)})]});}function _0x3864dc(_0x3d36a8){var _0x4d3fb1=_0x2d08a5;const {coordinator:_0xd0768e}=_0x3d36a8;return _0x14fb5b[_0x4d3fb1(0x160)](_0x14fb5b[_0x4d3fb1(0x139)],{'children':[_0x14fb5b[_0x4d3fb1(0x1aa)](_0x4d3fb1(0x1a9),{'className':_0x4d3fb1(0x114),'children':_0x4d3fb1(0xd4)}),_0x14fb5b[_0x4d3fb1(0x1aa)](_0x1fa1dc[_0x4d3fb1(0x119)],{'variant':_0x4d3fb1(0x151),'onClick':()=>_0xd0768e['startFollowing'](),'children':_0x4d3fb1(0x172)})]});}function _0x13f96e(_0x2cc563){var _0x4e63b1=_0x2d08a5;const {coordinator:_0x12dbda}=_0x2cc563;return _0x14fb5b[_0x4e63b1(0x160)](_0x14fb5b['Fragment'],{'children':[_0x14fb5b[_0x4e63b1(0x1aa)](_0x4e63b1(0x1a9),{'className':_0x4e63b1(0x114),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x14fb5b[_0x4e63b1(0x1aa)](_0x1fa1dc[_0x4e63b1(0x119)],{'variant':_0x4e63b1(0x11e),'onClick':()=>_0x12dbda[_0x4e63b1(0x132)](),'children':_0x4e63b1(0x11a)})]});}function _0x20770c(){var _0x448469=_0x2d08a5;return _0x14fb5b['jsx'](_0x14fb5b['Fragment'],{'children':_0x448469(0x187)});}var _0x135e6f=Object[_0x2d08a5(0x15c)],_0x20fb5e=(_0x5101da,_0x139be6,_0x5f1340,_0x2b2dd7)=>{for(var _0x493d59=_0x2b2dd7>0x1?void 0x0:_0x2b2dd7?_0x135e6f(_0x139be6,_0x5f1340):_0x139be6,_0x3a07ac=_0x5101da['length']-0x1,_0x36bc11;_0x3a07ac>=0x0;_0x3a07ac--)(_0x36bc11=_0x5101da[_0x3a07ac])&&(_0x493d59=_0x36bc11(_0x493d59)||_0x493d59);return _0x493d59;},_0x50e6ad=(_0x1ff230,_0xbac776)=>(_0x1745e7,_0x1ff57f)=>_0xbac776(_0x1745e7,_0x1ff57f,_0x1ff230);_0x3d2538[_0x2d08a5(0x174)]=class extends _0x12f4f1[_0x2d08a5(0x158)]{constructor(_0x10c15e,_0x3ed44c){var _0x4dfe0b=_0x2d08a5;super(),this['_injector']=_0x10c15e,this[_0x4dfe0b(0x173)]=_0x3ed44c,this[_0x4dfe0b(0x180)]();}[_0x2d08a5(0x180)](){var _0x2fe8f5=_0x2d08a5;this[_0x2fe8f5(0x1a1)](this[_0x2fe8f5(0x173)][_0x2fe8f5(0x185)](_0x10e076['BuiltInUIPart']['HEADER_MENU'],()=>_0x10e076[_0x2fe8f5(0x1a7)](_0x50ba3e,this['_injector'])));}},_0x3d2538[_0x2d08a5(0x174)]=_0x20fb5e([_0x50e6ad(0x0,_0x12f4f1[_0x2d08a5(0x141)](_0x12f4f1['Injector'])),_0x50e6ad(0x1,_0x10e076[_0x2d08a5(0x130)])],_0x3d2538[_0x2d08a5(0x174)]);const _0xf82468=_0x2d08a5(0x104),_0x1c62a3={};var _0x553482=Object['getOwnPropertyDescriptor'],_0x51a473=(_0x51829c,_0x1bc305,_0x108bd0,_0x275bb5)=>{var _0x5b72f6=_0x2d08a5;for(var _0x734893=_0x275bb5>0x1?void 0x0:_0x275bb5?_0x553482(_0x1bc305,_0x108bd0):_0x1bc305,_0x8687c9=_0x51829c[_0x5b72f6(0x136)]-0x1,_0x1ada8a;_0x8687c9>=0x0;_0x8687c9--)(_0x1ada8a=_0x51829c[_0x8687c9])&&(_0x734893=_0x1ada8a(_0x734893)||_0x734893);return _0x734893;},_0x48e85d=(_0x564538,_0x1ac956)=>(_0x99c56,_0x405c4b)=>_0x1ac956(_0x99c56,_0x405c4b,_0x564538);let _0x34cf59=class extends _0x12f4f1[_0x2d08a5(0x158)]{constructor(_0x18a132){super(),this['_liveShareService']=_0x18a132,this['_init']();}[_0x2d08a5(0x10b)](){var _0x4bd843=_0x2d08a5;[_0x456593['SetZoomRatioOperation']['id'],_0x456593[_0x4bd843(0x159)]['id'],_0x22916a[_0x4bd843(0xd2)]['id']]['forEach'](_0x38cffc=>{var _0xbf7255=_0x4bd843;this[_0xbf7255(0x1a1)](this[_0xbf7255(0x194)][_0xbf7255(0x155)](_0x38cffc));});}};_0x34cf59=_0x51a473([_0x48e85d(0x0,_0x12f4f1[_0x2d08a5(0x141)](_0xc03e40))],_0x34cf59);var _0x2565dc=Object[_0x2d08a5(0x107)],_0x5c3498=Object[_0x2d08a5(0x15c)],_0x4cceea=(_0x4e689f,_0x28b693,_0x69d6ee)=>_0x28b693 in _0x4e689f?_0x2565dc(_0x4e689f,_0x28b693,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x69d6ee}):_0x4e689f[_0x28b693]=_0x69d6ee,_0x83d839=(_0x2f0e04,_0x8bdd1f,_0x448369,_0xea96dc)=>{var _0x2c04a5=_0x2d08a5;for(var _0xb3341e=_0xea96dc>0x1?void 0x0:_0xea96dc?_0x5c3498(_0x8bdd1f,_0x448369):_0x8bdd1f,_0x4f5269=_0x2f0e04[_0x2c04a5(0x136)]-0x1,_0x1f6d6a;_0x4f5269>=0x0;_0x4f5269--)(_0x1f6d6a=_0x2f0e04[_0x4f5269])&&(_0xb3341e=_0x1f6d6a(_0xb3341e)||_0xb3341e);return _0xb3341e;},_0x23ed80=(_0xecde7f,_0x5cb7e5)=>(_0x56abb6,_0x11390e)=>_0x5cb7e5(_0x56abb6,_0x11390e,_0xecde7f),_0x56a956=(_0x2d71d9,_0x3549db,_0x489bbe)=>_0x4cceea(_0x2d71d9,typeof _0x3549db!='symbol'?_0x3549db+'':_0x3549db,_0x489bbe);const _0x4c69b2='UNIVER_LIVE_SHARE_PLUGIN';_0x3d2538[_0x2d08a5(0x167)]=class extends _0x12f4f1['Plugin']{constructor(_0x1e01d8=_0x1c62a3,_0x489658,_0x27f3a4){var _0x1d82e8=_0x2d08a5;super(),this['_config']=_0x1e01d8,this[_0x1d82e8(0x12a)]=_0x489658,this[_0x1d82e8(0xc3)]=_0x27f3a4;const {..._0x33f709}=_0x12f4f1[_0x1d82e8(0xfe)]({},_0x1c62a3,this[_0x1d82e8(0x146)]);this['_configService'][_0x1d82e8(0xcf)](_0xf82468,_0x33f709);}['onStarting'](){var _0x386ba2=_0x2d08a5;_0x12f4f1[_0x386ba2(0xda)](this[_0x386ba2(0x12a)],_0x12f4f1[_0x386ba2(0x10c)]([[_0xc03e40],[_0x3d2538['LiveShareController']],[_0x34cf59],[_0x3d2538[_0x386ba2(0x174)]]],this[_0x386ba2(0x146)][_0x386ba2(0xff)])),_0x12f4f1[_0x386ba2(0x188)](this[_0x386ba2(0x12a)],[[_0x34cf59]]);}[_0x2d08a5(0x10f)](){var _0x230a20=_0x2d08a5;_0x12f4f1[_0x230a20(0x188)](this[_0x230a20(0x12a)],[[_0x3d2538[_0x230a20(0x174)]]]);}},_0x56a956(_0x3d2538[_0x2d08a5(0x167)],_0x2d08a5(0x19d),_0x12f4f1[_0x2d08a5(0xfb)][_0x2d08a5(0x15d)]),_0x56a956(_0x3d2538['UniverLiveSharePlugin'],'pluginName',_0x4c69b2),_0x3d2538[_0x2d08a5(0x167)]=_0x83d839([_0x12f4f1[_0x2d08a5(0xde)](_0x46d621['UniverCollaborationClientPlugin']),_0x23ed80(0x1,_0x12f4f1[_0x2d08a5(0x141)](_0x12f4f1['Injector'])),_0x23ed80(0x2,_0x12f4f1[_0x2d08a5(0x16f)])],_0x3d2538[_0x2d08a5(0x167)]),_0x3d2538[_0x2d08a5(0x156)]=_0x50ba3e,_0x3d2538['LiveShareService']=_0xc03e40,_0x3d2538[_0x2d08a5(0xe1)]=_0x398d2d,Object['defineProperty'](_0x3d2538,Symbol[_0x2d08a5(0xbe)],{'value':_0x2d08a5(0x12d)});}));function _0x121b(){var _0x4e6878=['_commandService','rxjs/operators','mask','data','_injector','NOT_FOLLOWING','offline','Module','next','forEach','IUIPartsService','_collabSession','stopPresenting','icon','SAME_OPERATION_SHARE_INTERVAL','get','length','@univerjs/design','concat','Fragment','prototype','substring','getTypeOfUnitDisposed$','univer-size-4','132948IdxubR','presenting','set','Inject','values','apply','executeCommand','univerjs-icon\x20univerjs-icon-','_config','_stopFollowing','React','IDLE','live-share-icon','getOwnPropertySymbols','shouldShareOperation','3104KibZVn','_unitID','useState','@univerjs-pro/collaboration','text','defs','LiveShareIcon','660nHTIAo','registerSharedOperation','LiveShare','_handleNewChangeSets','Disposable','SetScrollOperation','Stop\x20following','following','getOwnPropertyDescriptor','UNIVER_UNKNOWN','UNIVER_SHEET','_handleOffline','jsxs','asObservable','You\x27re\x20following\x20the\x20presenter','UniverCore','_handleOnline','stopFollowing','_sharedOperations','UniverLiveSharePlugin','LiveShareController','trim','_collabSessionService','has','toDisposable','LIVESHARE_FETCH_OPERATIONS','status$','IConfigService','LIVESHARE_NEW_HOST','tryStartPresenting','Start\x20following','_uiPartsService','DesktopLiveShareController','_fetchOperations','forwardRef','237078BAjvfs','getMemberID','@univerjs-pro/collaboration-client','map','_presenter','current','mutations','random','@univerjs/ui','_mountLiveShare','clsx','LIVESHARE_OPERATION','getLiveShareCoordinator','49988lhEYgn','registerComponent','startFollowing','You\x27are\x20offline.','touchDependencies','Present\x20this\x20document','assign','then','@univerjs/sheets-ui','getValue','ICommandService','UniverDesign','subscribe','not-following','_handleTerminate','replace','_liveShareService','indexOf','UniverSheets','className','useObservable','http://www.w3.org/2000/svg','_univerInstanceService','LIVESHARE_TERMINATE','url(#$1','type','defIds','pipe','displayName','disposeWithMe','svg','propertyIsEnumerable','_stopPresenting','add','registerInitialStateReporter','connectInjector','_beIdle','div','jsx','Dropdown','send','toStringTag','250NXfePH','dispose','Subject','function','_configService','_reporters','call','operations','parse','takeUntil','UniverProLiveShare','UniverProCollaborationClient','_status$','delete','NEW_CHANGESETS','sheet','setConfig','SessionStatus','throttleTime','SetWorksheetActiveOperation','react','You\x27re\x20not\x20following\x20the\x20presenter','fill','rxjs','createElement','currentColor','CollaborationEvent','registerDependencies','event$','UniverProCollaboration','LiveShareCoordinator','DependentOn','_handleNewHost','extend','LiveShareStatus','xlink:href','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','end','path','PRESENTING','_startLiveShareCoordinator','RxDisposable','_entities','string','colorChannel1','onCommandExecuted','unsubscribe','_status','presenter','_commandDisposable','find','tag','getCurrentTypeOfUnit$','@univerjs/core','idle','react/jsx-runtime','complete','from','FOLLOWING','1em','UniverInstanceType','2XSiiha','useEffect','merge','override','createInstance','useRef','_handleOperation','dispose$','live-share.config','toString','stringify','defineProperty','attrs','none','_startFollowing','_init','mergeOverrideWithDependencies','entries','init','onRendered','getConfig','868998TFMKnZ','getUnitId','clear','univer-mb-3\x20univer-w-full\x20univer-text-sm','children','_startPresenting','useDependency','338457ZCGMNQ','Button','Stop\x20presenting','operators','UniverIcon','idSuffix','default','OFFLINE','739753oOdItG','params','parseProtocolChangeset','object','@univerjs/sheets','includes'];_0x121b=function(){return _0x4e6878;};return _0x121b();}
|
|
1
|
+
function _0x3342(){var _0x3e7dbb=['useRef','exports','946616eheZqc','children','_commandDisposable','function','requireSession','path','@univerjs/design','IUniverInstanceService','defineProperty','1364526zkSsam','values','clear','div','pipe','UniverIcon','useDependency','getInitialStates','next','ICommandService','SetScrollOperation','LIVESHARE_OPERATION','OFFLINE','UniverCore','url(#$1','evenodd','extend','add','currentColor','mergeOverrideWithDependencies','sheet','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','0\x200\x2017\x2017','tag','4715991hMNxQg','Plugin','none','unsubscribe','onCommandExecuted','@univerjs/sheets','UniverProCollaborationClient','use','stopFollowing','UNIVER_UNKNOWN','useEffect','button','operations','HEADER_MENU','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','LIVESHARE_REQUEST_HOST','executeCommand','Start\x20following','length','trim','LiveShareCoordinator','_reporters','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LiveShare','SessionStatus','delete','SAME_OPERATION_SHARE_INTERVAL','UniverUi','onRendered','getOwnPropertyDescriptor','symbol','BehaviorSubject','has','_stopFollowing','LiveShareService','override','Disposable','getTypeOfUnitDisposed$','_sharedOperations','UniverDesign','_handleOffline','from','init','UNIVER_SHEET','prototype','Dropdown','pluginName','LiveShareIcon','UniverInstanceType','amd','univerjs-icon\x20univerjs-icon-','entries','live-share-icon','defIds','univer-mb-3\x20univer-w-full\x20univer-text-sm','Module','Fragment','offline','svg','_presenter','dispose$','Inject','UniverLiveSharePlugin','371368gDpyTZ','NOT_FOLLOWING','You\x27are\x20offline.','215442Jytnku','_liveShareService','LIVESHARE_FETCH_OPERATIONS','react/jsx-runtime','_handleNewHost','current','_startFollowing','You\x27re\x20following\x20the\x20presenter','toDisposable','_commandService','string','Injector','presenter','reverse','getConfig','univer-size-4','useObservable','SetWorksheetActiveOperation','OPERATION','presenting','_fetchOperations','http://www.w3.org/2000/svg','registerDependencies','tryStartPresenting','end','dispose','jsx','getMemberID','mask','registerComponent','memberID','React','rxjs','_unitID','_entities','stopPresenting','shouldShareOperation','idSuffix','idle','IConfigService','concat','ONLINE','propertyIsEnumerable','_beIdle','status$','UniverProLiveShare','_init','FOLLOWING','_mountLiveShare','LiveShareStatus','apply','SetZoomRatioOperation','_config','setConfig','find','getLiveShareCoordinator','_handleOnline','UniverProCollaboration','fill','@univerjs/ui','NEW_CHANGESETS','stringify','toStringTag','touchDependencies','indexOf','RxDisposable','_status$','assign','LIVESHARE_TERMINATE','default','not-following','_stopPresenting','complete','_startLiveShareCoordinator','1630494kGLxWa','UniverSheetsUi','IDLE','parseProtocolChangeset','DisposableCollection','sessionStatus$','Stop\x20following','includes','throttleTime','asObservable','send','rxjs/operators','replace','unitId','_status','forwardRef','4721440nOefed','Button','object','params','Start','displayName','_startPresenting','@univerjs-pro/collaboration-client','parse','You\x27re\x20presenting\x20the\x20document','forEach','colorChannel1','jsxs','DesktopLiveShareController','_collabSession','set','80FefwWM','createInstance','createElement','xlink:href','map','takeUntil','substring','UniverCollaborationClientPlugin','Subject','LIVESHARE_NEW_HOST','type','_injector','_handleOperation','operators','getTypeOfUnitAdded$','startFollowing','following','@univerjs/core','disposeWithMe','react','CollaborationEvent','connectInjector','call','_configService','onStarting','data','attrs','toString','useState','_univerInstanceService','live-share.config','_handleTerminate','getUnitId','Stop\x20presenting','event$','LiveShareController','className','registerSharedOperation','_handleNewChangeSets','hasOwnProperty','_uiPartsService','text','Present\x20this\x20document','subscribe'];_0x3342=function(){return _0x3e7dbb;};return _0x3342();}function _0xc68b(_0xe51ddd,_0x480460){var _0x3342ce=_0x3342();return _0xc68b=function(_0xc68b6,_0x5259e3){_0xc68b6=_0xc68b6-0x136;var _0x5f5071=_0x3342ce[_0xc68b6];return _0x5f5071;},_0xc68b(_0xe51ddd,_0x480460);}(function(_0x4b8282,_0x15ce84){var _0x4ef4b7=_0xc68b,_0xcfaaca=_0x4b8282();while(!![]){try{var _0x390569=-parseInt(_0x4ef4b7(0x181))/0x1+-parseInt(_0x4ef4b7(0x225))/0x2+parseInt(_0x4ef4b7(0x1ce))/0x3+parseInt(_0x4ef4b7(0x1de))/0x4+parseInt(_0x4ef4b7(0x1ee))/0x5*(-parseInt(_0x4ef4b7(0x184))/0x6)+parseInt(_0x4ef4b7(0x142))/0x7+-parseInt(_0x4ef4b7(0x21c))/0x8;if(_0x390569===_0x15ce84)break;else _0xcfaaca['push'](_0xcfaaca['shift']());}catch(_0x3a6257){_0xcfaaca['push'](_0xcfaaca['shift']());}}}(_0x3342,0x9ef5d),function(_0x2a2bcb,_0x55e24a){var _0x291ce7=_0xc68b;typeof exports==_0x291ce7(0x1e0)&&typeof module<'u'?_0x55e24a(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x291ce7(0x21f)&&define[_0x291ce7(0x173)]?define([_0x291ce7(0x21b),_0x291ce7(0x1ff),_0x291ce7(0x1bf),_0x291ce7(0x187),_0x291ce7(0x222),_0x291ce7(0x201),'@univerjs-pro/collaboration',_0x291ce7(0x1e5),_0x291ce7(0x147),'rxjs',_0x291ce7(0x1d9),'@univerjs/sheets-ui'],_0x55e24a):(_0x2a2bcb=typeof globalThis<'u'?globalThis:_0x2a2bcb||self,_0x55e24a(_0x2a2bcb[_0x291ce7(0x1b1)]={},_0x2a2bcb[_0x291ce7(0x137)],_0x2a2bcb[_0x291ce7(0x15d)],_0x2a2bcb[_0x291ce7(0x1a3)],_0x2a2bcb[_0x291ce7(0x169)],_0x2a2bcb[_0x291ce7(0x1a3)],_0x2a2bcb[_0x291ce7(0x1bd)],_0x2a2bcb[_0x291ce7(0x148)],_0x2a2bcb['UniverSheets'],_0x2a2bcb['rxjs'],_0x2a2bcb[_0x291ce7(0x1a4)][_0x291ce7(0x1fb)],_0x2a2bcb[_0x291ce7(0x1cf)]));}(this,function(_0x1520b7,_0x254525,_0x1265c0,_0x34697a,_0xb2f997,_0x63ebd3,_0x459267,_0x1c25f1,_0x2e4173,_0xa9fa0c,_0x4d3c97,_0x1e4dcf){'use strict';var _0x2d0b43=_0xc68b;var _0x2abcbb=Object[_0x2d0b43(0x224)],_0x24e278=(_0x22afa6,_0x2bb91f,_0x38fb8e)=>_0x2bb91f in _0x22afa6?_0x2abcbb(_0x22afa6,_0x2bb91f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38fb8e}):_0x22afa6[_0x2bb91f]=_0x38fb8e,_0x490da9=(_0xdffa98,_0x21efba,_0x37070b)=>_0x24e278(_0xdffa98,typeof _0x21efba!=_0x2d0b43(0x160)?_0x21efba+'':_0x21efba,_0x37070b),_0x27bf37=function(){var _0x6688b1=_0x2d0b43;return _0x27bf37=Object['assign']||function(_0xa6e086){var _0x40261c=_0xc68b;for(var _0x507711,_0x2d5bb2=0x1,_0x513cf3=arguments[_0x40261c(0x154)];_0x2d5bb2<_0x513cf3;_0x2d5bb2++){_0x507711=arguments[_0x2d5bb2];for(var _0x3498ec in _0x507711)Object[_0x40261c(0x16e)]['hasOwnProperty'][_0x40261c(0x204)](_0x507711,_0x3498ec)&&(_0xa6e086[_0x3498ec]=_0x507711[_0x3498ec]);}return _0xa6e086;},_0x27bf37[_0x6688b1(0x1b6)](this,arguments);},_0x5e3ed5=function(_0x198e2a,_0x130cb2){var _0x1fc0dc=_0x2d0b43,_0x6264ee={};for(var _0x2b0462 in _0x198e2a)Object[_0x1fc0dc(0x16e)][_0x1fc0dc(0x215)][_0x1fc0dc(0x204)](_0x198e2a,_0x2b0462)&&_0x130cb2['indexOf'](_0x2b0462)<0x0&&(_0x6264ee[_0x2b0462]=_0x198e2a[_0x2b0462]);if(_0x198e2a!=null&&typeof Object['getOwnPropertySymbols']==_0x1fc0dc(0x21f)){for(var _0x110393=0x0,_0x2b0462=Object['getOwnPropertySymbols'](_0x198e2a);_0x110393<_0x2b0462[_0x1fc0dc(0x154)];_0x110393++)_0x130cb2[_0x1fc0dc(0x1c4)](_0x2b0462[_0x110393])<0x0&&Object[_0x1fc0dc(0x16e)][_0x1fc0dc(0x1ae)][_0x1fc0dc(0x204)](_0x198e2a,_0x2b0462[_0x110393])&&(_0x6264ee[_0x2b0462[_0x110393]]=_0x198e2a[_0x2b0462[_0x110393]]);}return _0x6264ee;},_0x502a00=_0x63ebd3[_0x2d0b43(0x1dd)](function(_0xbdda0f,_0xa11a0b){var _0x381769=_0x2d0b43,_0x3a8d06=_0xbdda0f['icon'],_0xe79c6f=_0xbdda0f['id'],_0x30a873=_0xbdda0f[_0x381769(0x212)],_0x3dde2f=_0xbdda0f[_0x381769(0x13a)],_0x250b98=_0x5e3ed5(_0xbdda0f,['icon','id',_0x381769(0x212),'extend']),_0x36f921=_0x381769(0x174)[_0x381769(0x1ac)](_0xe79c6f,'\x20')[_0x381769(0x1ac)](_0x30a873||'')[_0x381769(0x155)](),_0x5a2be2=_0x63ebd3[_0x381769(0x21a)]('_'['concat'](_0xfe732d()));return _0x3d20c5(_0x3a8d06,''[_0x381769(0x1ac)](_0xe79c6f),{'defIds':_0x3a8d06[_0x381769(0x177)],'idSuffix':_0x5a2be2['current']},_0x27bf37({'ref':_0xa11a0b,'className':_0x36f921},_0x250b98),_0x3dde2f);});function _0x3d20c5(_0x280735,_0x2b520f,_0x49b609,_0x95e35c,_0x1f4abd){var _0x1a6b0a=_0x2d0b43;return _0x63ebd3[_0x1a6b0a(0x1f0)](_0x280735[_0x1a6b0a(0x141)],_0x27bf37(_0x27bf37({'key':_0x2b520f},_0x1793ad(_0x280735,_0x49b609,_0x1f4abd)),_0x95e35c),(_0x20df4a(_0x280735,_0x49b609)[_0x1a6b0a(0x21d)]||[])['map'](function(_0x1821c6,_0x14c45e){var _0x26f456=_0x1a6b0a;return _0x3d20c5(_0x1821c6,''['concat'](_0x2b520f,'-')['concat'](_0x280735[_0x26f456(0x141)],'-')[_0x26f456(0x1ac)](_0x14c45e),_0x49b609,void 0x0,_0x1f4abd);}));}function _0x1793ad(_0x2e4cd7,_0x4f2494,_0x1e83ee){var _0x3259cb=_0x2d0b43,_0x56f6f7=_0x27bf37({},_0x2e4cd7['attrs']);_0x1e83ee!=null&&_0x1e83ee[_0x3259cb(0x1e9)]&&_0x56f6f7['fill']===_0x3259cb(0x1e9)&&(_0x56f6f7[_0x3259cb(0x1be)]=_0x1e83ee[_0x3259cb(0x1e9)]),_0x2e4cd7[_0x3259cb(0x141)]===_0x3259cb(0x1a0)&&_0x56f6f7['id']&&(_0x56f6f7['id']=_0x56f6f7['id']+_0x4f2494[_0x3259cb(0x1a9)]),Object[_0x3259cb(0x175)](_0x56f6f7)[_0x3259cb(0x1e8)](function(_0xe5a313){var _0x37c772=_0x3259cb,_0x1654e0=_0xe5a313[0x0],_0x5a229e=_0xe5a313[0x1];_0x1654e0===_0x37c772(0x1a0)&&typeof _0x5a229e==_0x37c772(0x18e)&&(_0x56f6f7[_0x1654e0]=_0x5a229e[_0x37c772(0x1da)](/url\(#(.*)\)/,_0x37c772(0x138)[_0x37c772(0x1ac)](_0x4f2494[_0x37c772(0x1a9)],')')));});var _0xfd8b00=_0x4f2494['defIds'];return!_0xfd8b00||_0xfd8b00[_0x3259cb(0x154)]===0x0||(_0x2e4cd7[_0x3259cb(0x141)]===_0x3259cb(0x149)&&_0x56f6f7['xlink:href']&&(_0x56f6f7[_0x3259cb(0x1f1)]=_0x56f6f7[_0x3259cb(0x1f1)]+_0x4f2494[_0x3259cb(0x1a9)]),Object[_0x3259cb(0x175)](_0x56f6f7)[_0x3259cb(0x1e8)](function(_0xd8e309){var _0x1eb9f6=_0x3259cb,_0xd8e014=_0xd8e309[0x0],_0x4d7d44=_0xd8e309[0x1];typeof _0x4d7d44==_0x1eb9f6(0x18e)&&(_0x56f6f7[_0xd8e014]=_0x4d7d44['replace'](/url\(#(.*)\)/,_0x1eb9f6(0x138)['concat'](_0x4f2494['idSuffix'],')')));})),_0x56f6f7;}function _0x20df4a(_0x48af8a,_0x5195dc){var _0x3438b2=_0x2d0b43,_0x5b88fe,_0x13eacb=_0x5195dc['defIds'];return!_0x13eacb||_0x13eacb[_0x3438b2(0x154)]===0x0?_0x48af8a:_0x48af8a[_0x3438b2(0x141)]==='defs'&&(!((_0x5b88fe=_0x48af8a['children'])===null||_0x5b88fe===void 0x0)&&_0x5b88fe[_0x3438b2(0x154)])?_0x27bf37(_0x27bf37({},_0x48af8a),{'children':_0x48af8a[_0x3438b2(0x21d)]['map'](function(_0x55efe5){var _0x1b4162=_0x3438b2;return typeof _0x55efe5[_0x1b4162(0x208)]['id']=='string'&&_0x13eacb&&_0x13eacb[_0x1b4162(0x1d5)](_0x55efe5['attrs']['id'])?_0x27bf37(_0x27bf37({},_0x55efe5),{'attrs':_0x27bf37(_0x27bf37({},_0x55efe5[_0x1b4162(0x208)]),{'id':_0x55efe5[_0x1b4162(0x208)]['id']+_0x5195dc[_0x1b4162(0x1a9)]})}):_0x55efe5;})}):_0x48af8a;}function _0xfe732d(){var _0x24aee3=_0x2d0b43;return Math['random']()[_0x24aee3(0x209)](0x24)[_0x24aee3(0x1f4)](0x2,0x8);}_0x502a00['displayName']=_0x2d0b43(0x22a);var _0xa87034={'tag':_0x2d0b43(0x17c),'attrs':{'xmlns':_0x2d0b43(0x199),'fill':_0x2d0b43(0x144),'viewBox':_0x2d0b43(0x140),'width':'1em','height':'1em'},'children':[{'tag':_0x2d0b43(0x221),'attrs':{'fill':_0x2d0b43(0x13c),'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':_0x2d0b43(0x221),'attrs':{'fill':_0x2d0b43(0x13c),'d':_0x2d0b43(0x13f),'fillRule':'evenodd','clipRule':_0x2d0b43(0x139)}}]},_0x1935ab=_0x63ebd3['forwardRef'](function(_0x3ba269,_0x20265b){var _0x12ba82=_0x2d0b43;return _0x63ebd3[_0x12ba82(0x1f0)](_0x502a00,Object[_0x12ba82(0x1c7)]({},_0x3ba269,{'id':_0x12ba82(0x176),'ref':_0x20265b,'icon':_0xa87034}));});_0x1935ab[_0x2d0b43(0x1e3)]=_0x2d0b43(0x171);class _0x2ae9cb extends _0x254525[_0x2d0b43(0x166)]{constructor(){var _0x1a55a0=_0x2d0b43;super(...arguments),_0x490da9(this,_0x1a55a0(0x168),new Set()),_0x490da9(this,_0x1a55a0(0x157),new Set());}['registerSharedOperation'](_0x31ee9d){var _0x42aef0=_0x2d0b43;return this['_sharedOperations'][_0x42aef0(0x13b)](_0x31ee9d),_0x254525[_0x42aef0(0x18c)](()=>this['_sharedOperations'][_0x42aef0(0x15b)](_0x31ee9d));}['registerInitialStateReporter'](_0x4e76df){var _0x4a8b81=_0x2d0b43;return this[_0x4a8b81(0x157)][_0x4a8b81(0x13b)](_0x4e76df),_0x254525['toDisposable'](()=>this[_0x4a8b81(0x157)]['delete'](_0x4e76df));}[_0x2d0b43(0x1a8)](_0x3a4cc2){return this['_sharedOperations']['has'](_0x3a4cc2);}[_0x2d0b43(0x22c)](_0x1762a3){var _0x4b3a50=_0x2d0b43;return Array[_0x4b3a50(0x16b)](this['_reporters'])[_0x4b3a50(0x1f2)](_0x247056=>_0x247056(_0x1762a3));}}var _0x440699=Object[_0x2d0b43(0x15f)],_0x4c9124=(_0x2bf5fd,_0x4a972f,_0x3cc6b8,_0x5f2ed8)=>{var _0xbad9d9=_0x2d0b43;for(var _0x1d735b=_0x5f2ed8>0x1?void 0x0:_0x5f2ed8?_0x440699(_0x4a972f,_0x3cc6b8):_0x4a972f,_0x5ae7af=_0x2bf5fd[_0xbad9d9(0x154)]-0x1,_0x2a23ea;_0x5ae7af>=0x0;_0x5ae7af--)(_0x2a23ea=_0x2bf5fd[_0x5ae7af])&&(_0x1d735b=_0x2a23ea(_0x1d735b)||_0x1d735b);return _0x1d735b;},_0x265a4e=(_0x1f355d,_0x4cf3bf)=>(_0x3b363c,_0x1ec67e)=>_0x4cf3bf(_0x3b363c,_0x1ec67e,_0x1f355d);_0x1520b7[_0x2d0b43(0x211)]=class extends _0x254525[_0x2d0b43(0x1c5)]{constructor(_0x5cd535,_0x2fd15f,_0x5c0f7a){var _0x21b4b0=_0x2d0b43;super(),_0x490da9(this,_0x21b4b0(0x1a6),new Map()),(this[_0x21b4b0(0x20b)]=_0x5cd535,this[_0x21b4b0(0x1f9)]=_0x2fd15f,this['_collabSessionService']=_0x5c0f7a,this[_0x21b4b0(0x1b2)]());}async[_0x2d0b43(0x1bb)](_0x5f275c){var _0x19fa22=_0x2d0b43;return this[_0x19fa22(0x1a6)][_0x19fa22(0x162)](_0x5f275c)||await this[_0x19fa22(0x1cd)](_0x5f275c),this[_0x19fa22(0x1a6)]['get'](_0x5f275c);}['_init'](){var _0x32674e=_0x2d0b43;this[_0x32674e(0x20b)][_0x32674e(0x1fc)](_0x254525['UniverInstanceType'][_0x32674e(0x16d)])[_0x32674e(0x229)](_0x4d3c97[_0x32674e(0x1f3)](this[_0x32674e(0x17e)]))['subscribe'](async _0x85c66a=>{var _0x1e2d2c=_0x32674e;const _0x3d5d10=_0x85c66a[_0x1e2d2c(0x20e)]();this[_0x1e2d2c(0x1a6)][_0x1e2d2c(0x162)](_0x3d5d10)||this['_startLiveShareCoordinator'](_0x3d5d10);}),this['_univerInstanceService'][_0x32674e(0x167)](_0x254525[_0x32674e(0x172)][_0x32674e(0x16d)])[_0x32674e(0x229)](_0x4d3c97[_0x32674e(0x1f3)](this[_0x32674e(0x17e)]))[_0x32674e(0x219)](_0x3a08b4=>{var _0x5a7def=_0x32674e;const _0x3fd124=_0x3a08b4[_0x5a7def(0x20e)](),_0x9ed50=this['_entities']['get'](_0x3fd124);_0x9ed50==null||_0x9ed50[_0x5a7def(0x19d)]();});}async[_0x2d0b43(0x1cd)](_0x4e3a67){var _0x218ccd=_0x2d0b43;const _0xeada47=await this['_collabSessionService'][_0x218ccd(0x220)](_0x4e3a67),_0x3b7a53=this['_injector'][_0x218ccd(0x1ef)](_0x1520b7[_0x218ccd(0x156)],_0x4e3a67,_0xeada47);return _0x3b7a53[_0x218ccd(0x16c)](),this[_0x218ccd(0x1a6)][_0x218ccd(0x1ed)](_0x4e3a67,_0x3b7a53),_0x3b7a53;}},_0x1520b7[_0x2d0b43(0x211)]=_0x4c9124([_0x265a4e(0x0,_0x254525[_0x2d0b43(0x223)]),_0x265a4e(0x1,_0x254525['Inject'](_0x254525[_0x2d0b43(0x18f)])),_0x265a4e(0x2,_0x254525[_0x2d0b43(0x17f)](_0x1c25f1['CollaborationSessionService']))],_0x1520b7[_0x2d0b43(0x211)]);var _0x1f0a2b=(_0x47555f=>(_0x47555f[_0x2d0b43(0x136)]=_0x2d0b43(0x17b),_0x47555f[_0x2d0b43(0x1d0)]=_0x2d0b43(0x1aa),_0x47555f[_0x2d0b43(0x1b3)]=_0x2d0b43(0x1fe),_0x47555f[_0x2d0b43(0x182)]=_0x2d0b43(0x1ca),_0x47555f['PRESENTING']='presenting',_0x47555f))(_0x1f0a2b||{});const _0x34e797=_0x2d0b43(0x15c),_0x1efd7d=0xc8;_0x1520b7['LiveShareCoordinator']=class extends _0x254525[_0x2d0b43(0x1c5)]{constructor(_0x1645ac,_0x4a582e,_0x15fc7c,_0x27ee57,_0x3c6355){var _0x30b885=_0x2d0b43;super(),_0x490da9(this,_0x30b885(0x1c6),new _0xa9fa0c[(_0x30b885(0x161))]('idle')),_0x490da9(this,_0x30b885(0x1b0),this[_0x30b885(0x1c6)][_0x30b885(0x1d7)]()),_0x490da9(this,_0x30b885(0x1b2),!0x1),_0x490da9(this,'_commandDisposable',null),_0x490da9(this,_0x30b885(0x17d),null),(this[_0x30b885(0x1a5)]=_0x1645ac,this[_0x30b885(0x1ec)]=_0x4a582e,this[_0x30b885(0x205)]=_0x15fc7c,this[_0x30b885(0x185)]=_0x27ee57,this[_0x30b885(0x18d)]=_0x3c6355);}get[_0x2d0b43(0x1dc)](){return this['_status$']['getValue']();}['dispose'](){var _0x16b944=_0x2d0b43,_0x24021c;(_0x24021c=this[_0x16b944(0x21e)])==null||_0x24021c[_0x16b944(0x19d)](),this['_status$'][_0x16b944(0x22d)](_0x16b944(0x1aa)),this[_0x16b944(0x1c6)][_0x16b944(0x1cc)]();}[_0x2d0b43(0x16c)](){var _0x6a5b9c=_0x2d0b43;this[_0x6a5b9c(0x1b2)]||(this[_0x6a5b9c(0x1b2)]=!0x0,this['_collabSession'][_0x6a5b9c(0x1d3)][_0x6a5b9c(0x229)](_0x4d3c97[_0x6a5b9c(0x1f3)](this[_0x6a5b9c(0x17e)]))[_0x6a5b9c(0x219)](_0x1822c=>{var _0x2298ae=_0x6a5b9c;switch(_0x1822c){case _0x1c25f1[_0x2298ae(0x15a)]['OFFLINE']:this[_0x2298ae(0x16a)]();break;case _0x1c25f1[_0x2298ae(0x15a)][_0x2298ae(0x1ad)]:this['_handleOnline']();break;}}),this[_0x6a5b9c(0x1ec)][_0x6a5b9c(0x210)][_0x6a5b9c(0x229)](_0x4d3c97[_0x6a5b9c(0x1f3)](this['dispose$']))[_0x6a5b9c(0x219)](_0x390333=>{var _0xf7afb2=_0x6a5b9c;const {eventID:_0x50abd6}=_0x390333;switch(_0x50abd6){case _0x459267[_0xf7afb2(0x202)][_0xf7afb2(0x1f7)]:this[_0xf7afb2(0x188)](_0x390333);break;case _0x459267[_0xf7afb2(0x202)][_0xf7afb2(0x230)]:this[_0xf7afb2(0x1fa)](_0x390333);break;case _0x459267[_0xf7afb2(0x202)][_0xf7afb2(0x1c8)]:this[_0xf7afb2(0x20d)]();break;case _0x459267[_0xf7afb2(0x202)][_0xf7afb2(0x1c0)]:this[_0xf7afb2(0x214)](_0x390333);break;}}));}['tryStartPresenting'](){var _0x573fb5=_0x2d0b43;this[_0x573fb5(0x1ec)][_0x573fb5(0x1d8)]({'eventID':_0x459267[_0x573fb5(0x202)][_0x573fb5(0x151)],'data':{'unitID':this[_0x573fb5(0x1a5)],'userID':this['_collabSession']['getMemberID']()}},this[_0x573fb5(0x1a5)]);}[_0x2d0b43(0x1a7)](){var _0x40ee18=_0x2d0b43;this[_0x40ee18(0x1dc)]==='presenting'&&(this[_0x40ee18(0x1c6)][_0x40ee18(0x22d)](_0x40ee18(0x1aa)),this['_collabSession'][_0x40ee18(0x1d8)]({'eventID':_0x459267['CollaborationEvent'][_0x40ee18(0x1c8)],'data':{'unitID':this[_0x40ee18(0x1a5)]}},this[_0x40ee18(0x1a5)]));}['startFollowing'](){var _0xca17ab=_0x2d0b43;this[_0xca17ab(0x1dc)]===_0xca17ab(0x1ca)&&(this[_0xca17ab(0x1c6)][_0xca17ab(0x22d)](_0xca17ab(0x1fe)),this[_0xca17ab(0x18a)]());}[_0x2d0b43(0x14a)](){var _0x234ac6=_0x2d0b43;this[_0x234ac6(0x1dc)]===_0x234ac6(0x1fe)&&this['_stopFollowing']();}['_handleNewHost'](_0x2746a9){var _0xed63fc=_0x2d0b43;const {presenter:_0x331268}=_0x2746a9[_0xed63fc(0x207)],_0x473c3d=this['_collabSession'][_0xed63fc(0x19f)]();this[_0xed63fc(0x17d)]=_0x331268,_0x331268===_0x473c3d?(this[_0xed63fc(0x163)](),this[_0xed63fc(0x1e4)]()):this[_0xed63fc(0x1dc)]!==_0xed63fc(0x1ca)&&(this[_0xed63fc(0x1cb)](),this[_0xed63fc(0x18a)]());}['_fetchOperations'](){var _0x1560cc=_0x2d0b43;const _0x78a767={'eventID':_0x459267[_0x1560cc(0x202)][_0x1560cc(0x186)]};this[_0x1560cc(0x1ec)][_0x1560cc(0x1d8)](_0x78a767,this[_0x1560cc(0x1a5)]);}[_0x2d0b43(0x20d)](){var _0x411298=_0x2d0b43;this[_0x411298(0x17d)]=null,this[_0x411298(0x1dc)]!==_0x411298(0x197)&&this[_0x411298(0x1af)]();}[_0x2d0b43(0x214)](_0xabb5e){var _0x5906a1=_0x2d0b43;if(this[_0x5906a1(0x1dc)]===_0x5906a1(0x1fe)&&this[_0x5906a1(0x17d)]===_0xabb5e['data'][_0x5906a1(0x1a2)]){const _0x4f59ca=_0x459267[_0x5906a1(0x1d1)](_0xabb5e[_0x5906a1(0x207)])['mutations'][_0x5906a1(0x191)]()[_0x5906a1(0x1ba)](_0xdc85f6=>_0xdc85f6['id']===_0x2e4173['InsertSheetMutation']['id']);if(_0x4f59ca){const _0x1be26e=_0x4f59ca[_0x5906a1(0x1e1)][_0x5906a1(0x1db)],_0x4c3bd9=_0x4f59ca[_0x5906a1(0x1e1)][_0x5906a1(0x13e)]['id'];setTimeout(()=>{var _0x503ac3=_0x5906a1;this[_0x503ac3(0x18d)][_0x503ac3(0x152)](_0x2e4173['SetWorksheetActiveOperation']['id'],{'unitId':_0x1be26e,'subUnitId':_0x4c3bd9},{'fromCollab':!0x0});});}}}[_0x2d0b43(0x1e4)](){var _0x2cbdff=_0x2d0b43;this[_0x2cbdff(0x1c6)]['next'](_0x2cbdff(0x197));const _0x3ea253=new Map(),_0x42418e=this['_commandDisposable']=new _0x254525[(_0x2cbdff(0x1d2))]();_0x42418e[_0x2cbdff(0x13b)](_0x254525[_0x2cbdff(0x18c)](()=>{var _0x590a79=_0x2cbdff;_0x3ea253[_0x590a79(0x1e8)](_0xcad5f=>_0xcad5f[_0x590a79(0x1cc)]()),_0x3ea253[_0x590a79(0x227)]();})),_0x42418e['add'](this[_0x2cbdff(0x18d)][_0x2cbdff(0x146)](_0x1e9b5d=>{var _0xadef2e=_0x2cbdff,_0x37899c;if(_0x1e9b5d[_0xadef2e(0x1f8)]!==_0x254525['CommandType'][_0xadef2e(0x196)]||!this[_0xadef2e(0x185)][_0xadef2e(0x1a8)](_0x1e9b5d['id']))return;const {id:_0x1459c7}=_0x1e9b5d;let _0x1966da;_0x3ea253[_0xadef2e(0x162)](_0x1459c7)?_0x1966da=_0x3ea253['get'](_0x1459c7):(_0x1966da=new _0xa9fa0c[(_0xadef2e(0x1f6))](),_0x3ea253['set'](_0x1459c7,_0x1966da),_0x1966da[_0xadef2e(0x229)](_0x4d3c97[_0xadef2e(0x1d6)]((_0x37899c=this[_0xadef2e(0x205)][_0xadef2e(0x192)](_0x34e797))!=null?_0x37899c:_0x1efd7d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xadef2e(0x219)](_0x16772c=>{var _0x4eab4b=_0xadef2e;this[_0x4eab4b(0x1ec)]['send']({'eventID':_0x459267[_0x4eab4b(0x202)][_0x4eab4b(0x230)],'data':{'unitID':this['_unitID'],'operations':{[_0x16772c['id']]:{'id':_0x16772c['id'],'params':JSON['stringify'](_0x16772c[_0x4eab4b(0x1e1)])}}}},this[_0x4eab4b(0x1a5)]);})),_0x1966da['next'](_0x1e9b5d);})),this[_0x2cbdff(0x185)]['getInitialStates'](this[_0x2cbdff(0x1a5)])[_0x2cbdff(0x1e8)](_0x5da156=>this[_0x2cbdff(0x1ec)][_0x2cbdff(0x1d8)]({'eventID':_0x459267['CollaborationEvent'][_0x2cbdff(0x230)],'data':{'unitID':this[_0x2cbdff(0x1a5)],'operations':{[_0x5da156['id']]:{'id':_0x5da156['id'],'params':JSON[_0x2cbdff(0x1c1)](_0x5da156[_0x2cbdff(0x1e1)])}}}},this['_unitID']));}[_0x2d0b43(0x1cb)](){var _0x557b92=_0x2d0b43,_0x184187;this['_status$'][_0x557b92(0x22d)]('idle'),(_0x184187=this[_0x557b92(0x21e)])==null||_0x184187['dispose'](),this[_0x557b92(0x21e)]=null;}['_startFollowing'](){var _0x1b0451=_0x2d0b43,_0x352c95;(_0x352c95=this['_commandDisposable'])==null||_0x352c95[_0x1b0451(0x19d)](),this[_0x1b0451(0x1c6)][_0x1b0451(0x22d)](_0x1b0451(0x1fe));}[_0x2d0b43(0x1af)](){var _0x3e86c8=_0x2d0b43,_0xbab36;this[_0x3e86c8(0x1c6)]['next'](_0x3e86c8(0x1aa)),(_0xbab36=this[_0x3e86c8(0x21e)])==null||_0xbab36[_0x3e86c8(0x19d)](),this['_commandDisposable']=null;}[_0x2d0b43(0x163)](){var _0x604865=_0x2d0b43,_0x1b1065;this[_0x604865(0x1c6)][_0x604865(0x22d)](_0x604865(0x1ca)),(_0x1b1065=this[_0x604865(0x21e)])==null||_0x1b1065[_0x604865(0x19d)]();}[_0x2d0b43(0x1fa)](_0x34af69){var _0x25fca6=_0x2d0b43;if([_0x25fca6(0x197),_0x25fca6(0x1ca),_0x25fca6(0x17b)]['includes'](this['_status'])||!_0x34af69[_0x25fca6(0x207)][_0x25fca6(0x190)]||_0x34af69['data'][_0x25fca6(0x190)]===this[_0x25fca6(0x1ec)][_0x25fca6(0x19f)]())return;this['_status']===_0x25fca6(0x1aa)&&this['_startFollowing']();const _0x3a59c2=_0x34af69[_0x25fca6(0x207)][_0x25fca6(0x14e)];Object[_0x25fca6(0x226)](_0x3a59c2)[_0x25fca6(0x1e8)](_0x4fcf66=>{var _0x13775e=_0x25fca6;this[_0x13775e(0x18d)][_0x13775e(0x152)](_0x4fcf66['id'],_0x4fcf66[_0x13775e(0x1e1)]?JSON[_0x13775e(0x1e6)](_0x4fcf66['params']):null,{'fromCollab':!0x0});});}[_0x2d0b43(0x16a)](){var _0xf873e0=_0x2d0b43,_0x55bbe3;this['_status$'][_0xf873e0(0x22d)](_0xf873e0(0x17b)),(_0x55bbe3=this['_commandDisposable'])==null||_0x55bbe3['dispose']();}[_0x2d0b43(0x1bc)](){var _0x22cd2b=_0x2d0b43;this['_status$']['next'](_0x22cd2b(0x1aa)),this[_0x22cd2b(0x198)]();}},_0x1520b7[_0x2d0b43(0x156)]=_0x4c9124([_0x265a4e(0x2,_0x254525[_0x2d0b43(0x1ab)]),_0x265a4e(0x3,_0x254525[_0x2d0b43(0x17f)](_0x2ae9cb)),_0x265a4e(0x4,_0x254525[_0x2d0b43(0x22e)])],_0x1520b7['LiveShareCoordinator']);function _0x4b27b9(){var _0x947ccc=_0x2d0b43;const _0x2ef887=_0x1265c0[_0x947ccc(0x22b)](_0x1520b7['LiveShareController']),_0x47e08b=_0x1265c0[_0x947ccc(0x22b)](_0x254525[_0x947ccc(0x223)]),_0x5f51a8=_0x1265c0[_0x947ccc(0x194)](()=>_0x47e08b['getCurrentTypeOfUnit$'](_0x254525[_0x947ccc(0x172)][_0x947ccc(0x16d)]),void 0x0,!0x1,[]),[_0x1070e6,_0x4812ec]=_0x63ebd3[_0x947ccc(0x20a)](null),[_0x53c6f6,_0x3a4e00]=_0x63ebd3[_0x947ccc(0x20a)](_0x1f0a2b['IDLE']),_0x53fb38=_0x63ebd3[_0x947ccc(0x21a)](null);return _0x63ebd3[_0x947ccc(0x14c)](()=>(_0x5f51a8&&_0x2ef887[_0x947ccc(0x1bb)](_0x5f51a8[_0x947ccc(0x20e)]())['then'](_0x19a2ec=>{var _0x3361c2=_0x947ccc;_0x4812ec(_0x19a2ec),_0x53fb38[_0x3361c2(0x189)]=_0x19a2ec[_0x3361c2(0x1b0)][_0x3361c2(0x219)](_0x51b742=>{_0x3a4e00(_0x51b742);});}),()=>{var _0x30dfe0=_0x947ccc,_0x29fa60;(_0x29fa60=_0x53fb38['current'])==null||_0x29fa60[_0x30dfe0(0x145)](),_0x53fb38[_0x30dfe0(0x189)]=null;}),[_0x5f51a8,_0x2ef887]),_0x1070e6?_0x34697a[_0x947ccc(0x19e)](_0xb2f997[_0x947ccc(0x16f)],{'align':_0x947ccc(0x19c),'disabled':_0x53c6f6===_0x1f0a2b[_0x947ccc(0x136)],'className':_0x947ccc(0x150),'overlay':_0x34697a[_0x947ccc(0x19e)](_0x38c80e,{'status':_0x53c6f6,'coordinator':_0x1070e6}),'children':_0x34697a[_0x947ccc(0x19e)](_0x947ccc(0x14d),{'className':_0xb2f997['clsx'](_0x947ccc(0x158),{'univer-cursor-not-allowed':_0x53c6f6===_0x1f0a2b['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x53c6f6!==_0x1f0a2b[_0x947ccc(0x136)]}),'type':_0x947ccc(0x14d),'children':_0x34697a['jsx'](_0x1935ab,{'className':_0x947ccc(0x193)})})}):null;}function _0x38c80e(_0x2efa66){var _0x54f733=_0x2d0b43;const {status:_0xc9cd3,coordinator:_0x58d569}=_0x2efa66;switch(_0xc9cd3){case _0x1f0a2b[_0x54f733(0x1d0)]:return _0x34697a[_0x54f733(0x19e)](_0x198024,{'coordinator':_0x58d569});case _0x1f0a2b[_0x54f733(0x1b3)]:return _0x34697a[_0x54f733(0x19e)](_0x4b8868,{'coordinator':_0x58d569});case _0x1f0a2b['NOT_FOLLOWING']:return _0x34697a[_0x54f733(0x19e)](_0x241f6c,{'coordinator':_0x58d569});case _0x1f0a2b['OFFLINE']:return _0x34697a[_0x54f733(0x19e)](_0x4d2b11,{});case _0x1f0a2b['PRESENTING']:return _0x34697a['jsx'](_0x154b37,{'coordinator':_0x58d569});default:return null;}}function _0x198024(_0x49efba){var _0x40fd32=_0x2d0b43;const {coordinator:_0x127eda}=_0x49efba;return _0x34697a['jsxs'](_0x34697a['Fragment'],{'children':[_0x34697a[_0x40fd32(0x19e)](_0x40fd32(0x228),{'className':_0x40fd32(0x178),'children':_0x40fd32(0x218)}),_0x34697a['jsx'](_0xb2f997[_0x40fd32(0x1df)],{'onClick':()=>_0x127eda[_0x40fd32(0x19b)](),'children':_0x40fd32(0x1e2)})]});}function _0x4b8868(_0x2bdb6e){var _0x1cab00=_0x2d0b43;const {coordinator:_0x2b48f9}=_0x2bdb6e;return _0x34697a[_0x1cab00(0x1ea)](_0x34697a[_0x1cab00(0x17a)],{'children':[_0x34697a[_0x1cab00(0x19e)]('div',{'className':_0x1cab00(0x178),'children':_0x1cab00(0x18b)}),_0x34697a[_0x1cab00(0x19e)](_0xb2f997[_0x1cab00(0x1df)],{'onClick':()=>_0x2b48f9[_0x1cab00(0x14a)](),'children':_0x1cab00(0x1d4)})]});}function _0x241f6c(_0x4f8257){var _0x2fba46=_0x2d0b43;const {coordinator:_0x5258a3}=_0x4f8257;return _0x34697a[_0x2fba46(0x1ea)](_0x34697a['Fragment'],{'children':[_0x34697a[_0x2fba46(0x19e)](_0x2fba46(0x228),{'className':_0x2fba46(0x178),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x34697a[_0x2fba46(0x19e)](_0xb2f997[_0x2fba46(0x1df)],{'variant':_0x2fba46(0x217),'onClick':()=>_0x5258a3[_0x2fba46(0x1fd)](),'children':_0x2fba46(0x153)})]});}function _0x154b37(_0x291cdf){var _0x485584=_0x2d0b43;const {coordinator:_0x36f7ed}=_0x291cdf;return _0x34697a[_0x485584(0x1ea)](_0x34697a[_0x485584(0x17a)],{'children':[_0x34697a[_0x485584(0x19e)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x485584(0x1e7)}),_0x34697a[_0x485584(0x19e)](_0xb2f997[_0x485584(0x1df)],{'variant':_0x485584(0x1c9),'onClick':()=>_0x36f7ed['stopPresenting'](),'children':_0x485584(0x20f)})]});}function _0x4d2b11(){var _0x951fed=_0x2d0b43;return _0x34697a[_0x951fed(0x19e)](_0x34697a[_0x951fed(0x17a)],{'children':_0x951fed(0x183)});}var _0x450346=Object['getOwnPropertyDescriptor'],_0xed796=(_0x1263fd,_0x2874dc,_0xaefe1f,_0xf7d804)=>{var _0x35eafc=_0x2d0b43;for(var _0x37b68e=_0xf7d804>0x1?void 0x0:_0xf7d804?_0x450346(_0x2874dc,_0xaefe1f):_0x2874dc,_0x74cea9=_0x1263fd[_0x35eafc(0x154)]-0x1,_0x530a8a;_0x74cea9>=0x0;_0x74cea9--)(_0x530a8a=_0x1263fd[_0x74cea9])&&(_0x37b68e=_0x530a8a(_0x37b68e)||_0x37b68e);return _0x37b68e;},_0x1a2d30=(_0x1edc16,_0x17038e)=>(_0x5bb83d,_0x53ca0b)=>_0x17038e(_0x5bb83d,_0x53ca0b,_0x1edc16);_0x1520b7[_0x2d0b43(0x1eb)]=class extends _0x254525[_0x2d0b43(0x166)]{constructor(_0x422520,_0xa4c6f8){var _0x474dae=_0x2d0b43;super(),this[_0x474dae(0x1f9)]=_0x422520,this[_0x474dae(0x216)]=_0xa4c6f8,this[_0x474dae(0x1b4)]();}[_0x2d0b43(0x1b4)](){var _0x9b519=_0x2d0b43;this[_0x9b519(0x200)](this[_0x9b519(0x216)][_0x9b519(0x1a1)](_0x1265c0['BuiltInUIPart'][_0x9b519(0x14f)],()=>_0x1265c0[_0x9b519(0x203)](_0x4b27b9,this[_0x9b519(0x1f9)])));}},_0x1520b7[_0x2d0b43(0x1eb)]=_0xed796([_0x1a2d30(0x0,_0x254525['Inject'](_0x254525[_0x2d0b43(0x18f)])),_0x1a2d30(0x1,_0x1265c0['IUIPartsService'])],_0x1520b7['DesktopLiveShareController']);const _0x599463=_0x2d0b43(0x20c),_0x1ad809={};var _0x568550=Object[_0x2d0b43(0x15f)],_0x17d2c3=(_0x1f3891,_0x4f1230,_0xef0c,_0x355e14)=>{for(var _0x5a36c0=_0x355e14>0x1?void 0x0:_0x355e14?_0x568550(_0x4f1230,_0xef0c):_0x4f1230,_0x31691e=_0x1f3891['length']-0x1,_0x5d506a;_0x31691e>=0x0;_0x31691e--)(_0x5d506a=_0x1f3891[_0x31691e])&&(_0x5a36c0=_0x5d506a(_0x5a36c0)||_0x5a36c0);return _0x5a36c0;},_0x28e704=(_0x1f5f9a,_0x869e22)=>(_0x427ebc,_0x1d8830)=>_0x869e22(_0x427ebc,_0x1d8830,_0x1f5f9a);let _0xeaa1b6=class extends _0x254525[_0x2d0b43(0x166)]{constructor(_0x4b0036){var _0x58a369=_0x2d0b43;super(),this[_0x58a369(0x185)]=_0x4b0036,this[_0x58a369(0x1b2)]();}['_init'](){var _0x7e560d=_0x2d0b43;[_0x1e4dcf[_0x7e560d(0x1b7)]['id'],_0x1e4dcf[_0x7e560d(0x22f)]['id'],_0x2e4173[_0x7e560d(0x195)]['id']][_0x7e560d(0x1e8)](_0x5c3362=>{var _0x1dcc5b=_0x7e560d;this[_0x1dcc5b(0x200)](this[_0x1dcc5b(0x185)][_0x1dcc5b(0x213)](_0x5c3362));});}};_0xeaa1b6=_0x17d2c3([_0x28e704(0x0,_0x254525[_0x2d0b43(0x17f)](_0x2ae9cb))],_0xeaa1b6);var _0x2a757f=Object['defineProperty'],_0xc7f9f1=Object[_0x2d0b43(0x15f)],_0x10a278=(_0x3839d1,_0x838ed1,_0x2a0c59)=>_0x838ed1 in _0x3839d1?_0x2a757f(_0x3839d1,_0x838ed1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a0c59}):_0x3839d1[_0x838ed1]=_0x2a0c59,_0x84bb7f=(_0x569ffe,_0x27e0a1,_0x3ad3d6,_0x468c39)=>{for(var _0x10e04e=_0x468c39>0x1?void 0x0:_0x468c39?_0xc7f9f1(_0x27e0a1,_0x3ad3d6):_0x27e0a1,_0x51bd97=_0x569ffe['length']-0x1,_0x36f351;_0x51bd97>=0x0;_0x51bd97--)(_0x36f351=_0x569ffe[_0x51bd97])&&(_0x10e04e=_0x36f351(_0x10e04e)||_0x10e04e);return _0x10e04e;},_0x3fa640=(_0x1a849b,_0x40e82f)=>(_0x3e7d18,_0x13bf96)=>_0x40e82f(_0x3e7d18,_0x13bf96,_0x1a849b),_0x3157d2=(_0x10f708,_0x130b49,_0x56deb2)=>_0x10a278(_0x10f708,typeof _0x130b49!=_0x2d0b43(0x160)?_0x130b49+'':_0x130b49,_0x56deb2);const _0x202457='UNIVER_LIVE_SHARE_PLUGIN';_0x1520b7[_0x2d0b43(0x180)]=class extends _0x254525[_0x2d0b43(0x143)]{constructor(_0x519aa5=_0x1ad809,_0xc13626,_0x583093){var _0x305d3b=_0x2d0b43;super(),this[_0x305d3b(0x1b8)]=_0x519aa5,this[_0x305d3b(0x1f9)]=_0xc13626,this[_0x305d3b(0x205)]=_0x583093;const {..._0x2c37c8}=_0x254525['merge']({},_0x1ad809,this[_0x305d3b(0x1b8)]);this[_0x305d3b(0x205)][_0x305d3b(0x1b9)](_0x599463,_0x2c37c8);}[_0x2d0b43(0x206)](){var _0x3774c6=_0x2d0b43;_0x254525[_0x3774c6(0x19a)](this['_injector'],_0x254525[_0x3774c6(0x13d)]([[_0x2ae9cb],[_0x1520b7[_0x3774c6(0x211)]],[_0xeaa1b6],[_0x1520b7[_0x3774c6(0x1eb)]]],this['_config'][_0x3774c6(0x165)])),_0x254525['touchDependencies'](this[_0x3774c6(0x1f9)],[[_0xeaa1b6]]);}[_0x2d0b43(0x15e)](){var _0x5b7653=_0x2d0b43;_0x254525[_0x5b7653(0x1c3)](this[_0x5b7653(0x1f9)],[[_0x1520b7[_0x5b7653(0x1eb)]]]);}},_0x3157d2(_0x1520b7['UniverLiveSharePlugin'],_0x2d0b43(0x1f8),_0x254525[_0x2d0b43(0x172)][_0x2d0b43(0x14b)]),_0x3157d2(_0x1520b7[_0x2d0b43(0x180)],_0x2d0b43(0x170),_0x202457),_0x1520b7['UniverLiveSharePlugin']=_0x84bb7f([_0x254525['DependentOn'](_0x1c25f1[_0x2d0b43(0x1f5)]),_0x3fa640(0x1,_0x254525[_0x2d0b43(0x17f)](_0x254525[_0x2d0b43(0x18f)])),_0x3fa640(0x2,_0x254525[_0x2d0b43(0x1ab)])],_0x1520b7[_0x2d0b43(0x180)]),_0x1520b7[_0x2d0b43(0x159)]=_0x4b27b9,_0x1520b7[_0x2d0b43(0x164)]=_0x2ae9cb,_0x1520b7[_0x2d0b43(0x1b5)]=_0x1f0a2b,Object[_0x2d0b43(0x224)](_0x1520b7,Symbol[_0x2d0b43(0x1c2)],{'value':_0x2d0b43(0x179)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.12-nightly.202510221114",
|
|
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.9",
|
|
50
|
-
"@univerjs-pro/collaboration
|
|
51
|
-
"@univerjs-pro/collaboration": "0.10.
|
|
52
|
-
"@univerjs/core": "0.10.
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/sheets-ui": "0.10.
|
|
56
|
-
"@univerjs/ui": "0.10.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.12-nightly.202510221114",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.10.12-nightly.202510221114",
|
|
52
|
+
"@univerjs/core": "0.10.12-nightly.202510221114",
|
|
53
|
+
"@univerjs/sheets": "0.10.12-nightly.202510221114",
|
|
54
|
+
"@univerjs/design": "0.10.12-nightly.202510221114",
|
|
55
|
+
"@univerjs/sheets-ui": "0.10.12-nightly.202510221114",
|
|
56
|
+
"@univerjs/ui": "0.10.12-nightly.202510221114"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"vite": "^7.1.10",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
66
|
"@univerjs/protocol": "0.1.47-alpha.0",
|
|
67
|
-
"@univerjs-infra/shared": "0.10.
|
|
67
|
+
"@univerjs-infra/shared": "0.10.12"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|