@univerjs-pro/live-share 0.10.11-nightly.202510220308 → 0.10.12
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 +10 -10
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 _0x494188=_0x1cfd;(function(_0x3bf652,_0x268a1f){var _0x2ae28a=_0x1cfd,_0x2ab953=_0x3bf652();while(!![]){try{var _0x534466=-parseInt(_0x2ae28a(0x1eb))/0x1+-parseInt(_0x2ae28a(0x188))/0x2*(-parseInt(_0x2ae28a(0x1f1))/0x3)+parseInt(_0x2ae28a(0x1f0))/0x4*(parseInt(_0x2ae28a(0x1a8))/0x5)+-parseInt(_0x2ae28a(0x1e4))/0x6+parseInt(_0x2ae28a(0x1b7))/0x7*(-parseInt(_0x2ae28a(0x265))/0x8)+-parseInt(_0x2ae28a(0x1e0))/0x9+parseInt(_0x2ae28a(0x207))/0xa*(parseInt(_0x2ae28a(0x21b))/0xb);if(_0x534466===_0x268a1f)break;else _0x2ab953['push'](_0x2ab953['shift']());}catch(_0x452772){_0x2ab953['push'](_0x2ab953['shift']());}}}(_0x5736,0x2c3bc));var U=Object[_0x494188(0x23a)],F=(_0x4b45a6,_0x3f811e,_0x35175d)=>_0x3f811e in _0x4b45a6?U(_0x4b45a6,_0x3f811e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35175d}):_0x4b45a6[_0x3f811e]=_0x35175d,v=(_0x5a1767,_0x59ef00,_0x41ab7d)=>F(_0x5a1767,typeof _0x59ef00!=_0x494188(0x1da)?_0x59ef00+'':_0x59ef00,_0x41ab7d);Object['defineProperty'](exports,Symbol[_0x494188(0x1f3)],{'value':_0x494188(0x199)});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 _0x287457=_0x494188;return u=Object['assign']||function(_0x2666a9){var _0xbadda3=_0x1cfd;for(var _0x127e25,_0x4bebed=0x1,_0x5294f5=arguments[_0xbadda3(0x194)];_0x4bebed<_0x5294f5;_0x4bebed++){_0x127e25=arguments[_0x4bebed];for(var _0x426025 in _0x127e25)Object[_0xbadda3(0x236)][_0xbadda3(0x193)]['call'](_0x127e25,_0x426025)&&(_0x2666a9[_0x426025]=_0x127e25[_0x426025]);}return _0x2666a9;},u[_0x287457(0x198)](this,arguments);},$=function(_0x30a14f,_0x3b60d5){var _0x5d6391=_0x494188,_0x19ae7f={};for(var _0xad81c0 in _0x30a14f)Object['prototype'][_0x5d6391(0x193)][_0x5d6391(0x1bf)](_0x30a14f,_0xad81c0)&&_0x3b60d5[_0x5d6391(0x1dc)](_0xad81c0)<0x0&&(_0x19ae7f[_0xad81c0]=_0x30a14f[_0xad81c0]);if(_0x30a14f!=null&&typeof Object[_0x5d6391(0x1d2)]==_0x5d6391(0x267)){for(var _0x2cdf7c=0x0,_0xad81c0=Object[_0x5d6391(0x1d2)](_0x30a14f);_0x2cdf7c<_0xad81c0[_0x5d6391(0x194)];_0x2cdf7c++)_0x3b60d5[_0x5d6391(0x1dc)](_0xad81c0[_0x2cdf7c])<0x0&&Object[_0x5d6391(0x236)][_0x5d6391(0x260)][_0x5d6391(0x1bf)](_0x30a14f,_0xad81c0[_0x2cdf7c])&&(_0x19ae7f[_0xad81c0[_0x2cdf7c]]=_0x30a14f[_0xad81c0[_0x2cdf7c]]);}return _0x19ae7f;},j=f[_0x494188(0x1b1)](function(_0xc291a3,_0xa92bcf){var _0x47ae9d=_0x494188,_0x1daf9f=_0xc291a3['icon'],_0x370559=_0xc291a3['id'],_0x5ceda2=_0xc291a3[_0x47ae9d(0x217)],_0x2ab4d2=_0xc291a3['extend'],_0x324662=$(_0xc291a3,[_0x47ae9d(0x264),'id',_0x47ae9d(0x217),_0x47ae9d(0x223)]),_0x3d08d4=_0x47ae9d(0x200)['concat'](_0x370559,'\x20')['concat'](_0x5ceda2||'')[_0x47ae9d(0x213)](),_0x366fac=f[_0x47ae9d(0x19d)]('_'[_0x47ae9d(0x21e)](k()));return y(_0x1daf9f,''[_0x47ae9d(0x21e)](_0x370559),{'defIds':_0x1daf9f['defIds'],'idSuffix':_0x366fac['current']},u({'ref':_0xa92bcf,'className':_0x3d08d4},_0x324662),_0x2ab4d2);});function y(_0x233ab0,_0x32f4e5,_0x4b2a98,_0x3a5663,_0xbc19fb){var _0x202ad4=_0x494188;return f[_0x202ad4(0x22a)](_0x233ab0[_0x202ad4(0x1ce)],u(u({'key':_0x32f4e5},H(_0x233ab0,_0x4b2a98,_0xbc19fb)),_0x3a5663),(V(_0x233ab0,_0x4b2a98)[_0x202ad4(0x227)]||[])[_0x202ad4(0x1ab)](function(_0x1dc582,_0x5d813){var _0x14edcd=_0x202ad4;return y(_0x1dc582,''[_0x14edcd(0x21e)](_0x32f4e5,'-')[_0x14edcd(0x21e)](_0x233ab0['tag'],'-')[_0x14edcd(0x21e)](_0x5d813),_0x4b2a98,void 0x0,_0xbc19fb);}));}function H(_0x245c5f,_0xcc9abe,_0x176f5e){var _0x1183a9=_0x494188,_0x5564e2=u({},_0x245c5f[_0x1183a9(0x1ea)]);_0x176f5e!=null&&_0x176f5e[_0x1183a9(0x1a1)]&&_0x5564e2[_0x1183a9(0x251)]===_0x1183a9(0x1a1)&&(_0x5564e2[_0x1183a9(0x251)]=_0x176f5e[_0x1183a9(0x1a1)]),_0x245c5f[_0x1183a9(0x1ce)]==='mask'&&_0x5564e2['id']&&(_0x5564e2['id']=_0x5564e2['id']+_0xcc9abe[_0x1183a9(0x237)]),Object['entries'](_0x5564e2)[_0x1183a9(0x1d8)](function(_0x2d5866){var _0xb4f477=_0x1183a9,_0x145c37=_0x2d5866[0x0],_0x2b301f=_0x2d5866[0x1];_0x145c37===_0xb4f477(0x231)&&typeof _0x2b301f=='string'&&(_0x5564e2[_0x145c37]=_0x2b301f['replace'](/url\(#(.*)\)/,_0xb4f477(0x256)[_0xb4f477(0x21e)](_0xcc9abe['idSuffix'],')')));});var _0x5dba6d=_0xcc9abe[_0x1183a9(0x1c0)];return!_0x5dba6d||_0x5dba6d[_0x1183a9(0x194)]===0x0||(_0x245c5f[_0x1183a9(0x1ce)]===_0x1183a9(0x228)&&_0x5564e2[_0x1183a9(0x21f)]&&(_0x5564e2[_0x1183a9(0x21f)]=_0x5564e2[_0x1183a9(0x21f)]+_0xcc9abe[_0x1183a9(0x237)]),Object[_0x1183a9(0x23f)](_0x5564e2)[_0x1183a9(0x1d8)](function(_0x53b5f8){var _0x353c6f=_0x1183a9,_0x4abd84=_0x53b5f8[0x0],_0x4d7018=_0x53b5f8[0x1];typeof _0x4d7018==_0x353c6f(0x240)&&(_0x5564e2[_0x4abd84]=_0x4d7018[_0x353c6f(0x1fb)](/url\(#(.*)\)/,_0x353c6f(0x256)[_0x353c6f(0x21e)](_0xcc9abe[_0x353c6f(0x237)],')')));})),_0x5564e2;}function V(_0x3cfac0,_0x3f88e6){var _0x392400=_0x494188,_0x2f9a7f,_0x2058e7=_0x3f88e6[_0x392400(0x1c0)];return!_0x2058e7||_0x2058e7[_0x392400(0x194)]===0x0?_0x3cfac0:_0x3cfac0[_0x392400(0x1ce)]===_0x392400(0x233)&&(!((_0x2f9a7f=_0x3cfac0[_0x392400(0x227)])===null||_0x2f9a7f===void 0x0)&&_0x2f9a7f['length'])?u(u({},_0x3cfac0),{'children':_0x3cfac0[_0x392400(0x227)][_0x392400(0x1ab)](function(_0x5eddd4){var _0x216381=_0x392400;return typeof _0x5eddd4[_0x216381(0x1ea)]['id']==_0x216381(0x240)&&_0x2058e7&&_0x2058e7[_0x216381(0x1d0)](_0x5eddd4[_0x216381(0x1ea)]['id'])?u(u({},_0x5eddd4),{'attrs':u(u({},_0x5eddd4[_0x216381(0x1ea)]),{'id':_0x5eddd4[_0x216381(0x1ea)]['id']+_0x3f88e6[_0x216381(0x237)]})}):_0x5eddd4;})}):_0x3cfac0;}function k(){var _0x20f43a=_0x494188;return Math['random']()['toString'](0x24)[_0x20f43a(0x1ac)](0x2,0x8);}j[_0x494188(0x18b)]=_0x494188(0x232);var M={'tag':'svg','attrs':{'xmlns':_0x494188(0x195),'fill':_0x494188(0x22c),'viewBox':_0x494188(0x261),'width':_0x494188(0x20d),'height':_0x494188(0x20d)},'children':[{'tag':_0x494188(0x216),'attrs':{'fill':_0x494188(0x1fe),'d':_0x494188(0x1c4)}},{'tag':'path','attrs':{'fill':_0x494188(0x1fe),'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':_0x494188(0x20f),'clipRule':_0x494188(0x20f)}}]},P=f['forwardRef'](function(_0x39074d,_0x219869){var _0x3e9e3f=_0x494188;return f[_0x3e9e3f(0x22a)](j,Object['assign']({},_0x39074d,{'id':_0x3e9e3f(0x1af),'ref':_0x219869,'icon':M}));});function _0x5736(){var _0x3d3bbc=['has','_status','You\x27are\x20offline.','onStarting','disposeWithMe','throttleTime','_commandDisposable','onCommandExecuted','LIVESHARE_OPERATION','propertyIsEnumerable','0\x200\x2017\x2017','_uiPartsService','shouldShareOperation','icon','48EoLLlS','jsxs','function','connectInjector','BehaviorSubject','pipe','LiveShareController','271494PTStmj','Plugin','IUniverInstanceService','displayName','getCurrentTypeOfUnit$','parseProtocolChangeset','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','type','touchDependencies','_startPresenting','getConfig','hasOwnProperty','length','http://www.w3.org/2000/svg','You\x27re\x20not\x20following\x20the\x20presenter','init','apply','Module','Injector','_startFollowing','Fragment','useRef','delete','send','complete','colorChannel1','Button','executeCommand','values','stopFollowing','_startLiveShareCoordinator','LiveShareService','5xXEKwm','CollaborationSessionService','UNIVER_SHEET','map','substring','get','tryStartPresenting','live-share-icon','_liveShareService','forwardRef','getOwnPropertyDescriptor','_collabSessionService','_stopPresenting','NOT_FOLLOWING','_handleOperation','173187EAdxjk','operations','SessionStatus','_handleNewHost','UNIVER_UNKNOWN','offline','SetWorksheetActiveOperation','FOLLOWING','call','defIds','_handleNewChangeSets','RxDisposable','find','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_commandService','IDLE','CollaborationEvent','button','LiveShareCoordinator','_collabSession','reverse','You\x27re\x20following\x20the\x20presenter','UniverLiveSharePlugin','tag','then','includes','memberID','getOwnPropertySymbols','following','next','_stopFollowing','Inject','current','forEach','from','symbol','IUIPartsService','indexOf','DesktopLiveShareController','SetZoomRatioOperation','CommandType','2523141DRfixQ','default','presenting','_config','2062980ZmadMk','not-following','LIVESHARE_REQUEST_HOST','useDependency','getMemberID','params','attrs','39548ORzSZz','mutations','Start\x20following','DependentOn','getUnitId','1203880IZKNZV','6kYFgJy','_unitID','toStringTag','HEADER_MENU','Disposable','ONLINE','OFFLINE','data','clear','OPERATION','replace','UniverInstanceType','_sharedOperations','currentColor','_beIdle','univerjs-icon\x20univerjs-icon-','jsx','registerSharedOperation','add','toDisposable','registerInitialStateReporter','_status$','4208890aiTdjK','div','UniverCollaborationClientPlugin','useState','subscribe','startFollowing','1em','registerComponent','evenodd','_configService','PRESENTING','univer-size-4','trim','You\x27re\x20presenting\x20the\x20document','LIVESHARE_FETCH_OPERATIONS','path','className','live-share.config','idle','Subject','11jfbbyo','_init','_entities','concat','xlink:href','dispose','useEffect','requireSession','extend','getTypeOfUnitAdded$','takeUntil','override','children','use','end','createElement','LiveShare','none','UNIVER_LIVE_SHARE_PLUGIN','unsubscribe','presenter','_mountLiveShare','mask','UniverIcon','defs','_handleOnline','useObservable','prototype','idSuffix','NEW_CHANGESETS','stopPresenting','defineProperty','set','dispose$','_handleTerminate','_presenter','entries','string','_univerInstanceService','_reporters','Present\x20this\x20document','Dropdown','stringify','getInitialStates','univer-mb-3\x20univer-w-full\x20univer-text-sm','SetScrollOperation','LiveShareStatus','pluginName','onRendered','_handleOffline','getValue','text','LIVESHARE_NEW_HOST','InsertSheetMutation','fill','_injector','BuiltInUIPart','IConfigService','Start','url(#$1'];_0x5736=function(){return _0x3d3bbc;};return _0x5736();}P[_0x494188(0x18b)]='LiveShareIcon';class O extends o[_0x494188(0x1f5)]{constructor(){var _0x2f0493=_0x494188;super(...arguments),v(this,_0x2f0493(0x1fd),new Set()),v(this,'_reporters',new Set());}[_0x494188(0x202)](_0x44b467){var _0x22df32=_0x494188;return this[_0x22df32(0x1fd)][_0x22df32(0x203)](_0x44b467),o[_0x22df32(0x204)](()=>this[_0x22df32(0x1fd)][_0x22df32(0x19e)](_0x44b467));}[_0x494188(0x205)](_0x2af5e0){var _0x367d07=_0x494188;return this[_0x367d07(0x242)]['add'](_0x2af5e0),o[_0x367d07(0x204)](()=>this[_0x367d07(0x242)][_0x367d07(0x19e)](_0x2af5e0));}[_0x494188(0x263)](_0x237e6d){var _0x6f0700=_0x494188;return this[_0x6f0700(0x1fd)][_0x6f0700(0x257)](_0x237e6d);}['getInitialStates'](_0x31aa5f){var _0x2c9972=_0x494188;return Array[_0x2c9972(0x1d9)](this['_reporters'])[_0x2c9972(0x1ab)](_0x4b9150=>_0x4b9150(_0x31aa5f));}}var q=Object[_0x494188(0x1b2)],R=(_0x7a92e1,_0xe8fa39,_0x5c04b8,_0x520392)=>{var _0x2d6992=_0x494188;for(var _0x32e0ba=_0x520392>0x1?void 0x0:_0x520392?q(_0xe8fa39,_0x5c04b8):_0xe8fa39,_0x2260db=_0x7a92e1[_0x2d6992(0x194)]-0x1,_0x2d4806;_0x2260db>=0x0;_0x2260db--)(_0x2d4806=_0x7a92e1[_0x2260db])&&(_0x32e0ba=_0x2d4806(_0x32e0ba)||_0x32e0ba);return _0x32e0ba;},S=(_0x22ebeb,_0x40c6cd)=>(_0x4c6a04,_0x41208d)=>_0x40c6cd(_0x4c6a04,_0x41208d,_0x22ebeb);exports[_0x494188(0x187)]=class extends o[_0x494188(0x1c2)]{constructor(_0x139f2a,_0x5c9141,_0x4dacd8){var _0x4b2ad3=_0x494188;super(),v(this,_0x4b2ad3(0x21d),new Map()),(this[_0x4b2ad3(0x241)]=_0x139f2a,this[_0x4b2ad3(0x252)]=_0x5c9141,this[_0x4b2ad3(0x1b3)]=_0x4dacd8,this['_init']());}async['getLiveShareCoordinator'](_0x4049b8){var _0x52eb65=_0x494188;return this['_entities'][_0x52eb65(0x257)](_0x4049b8)||await this[_0x52eb65(0x1a6)](_0x4049b8),this[_0x52eb65(0x21d)]['get'](_0x4049b8);}[_0x494188(0x21c)](){var _0x51bffc=_0x494188;this[_0x51bffc(0x241)][_0x51bffc(0x224)](o['UniverInstanceType'][_0x51bffc(0x1aa)])[_0x51bffc(0x186)](b[_0x51bffc(0x225)](this[_0x51bffc(0x23c)]))['subscribe'](async _0x1bb286=>{var _0x211cd8=_0x51bffc;const _0x5e412d=_0x1bb286[_0x211cd8(0x1ef)]();this[_0x211cd8(0x21d)][_0x211cd8(0x257)](_0x5e412d)||this[_0x211cd8(0x1a6)](_0x5e412d);}),this[_0x51bffc(0x241)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x51bffc(0x1aa)])[_0x51bffc(0x186)](b[_0x51bffc(0x225)](this[_0x51bffc(0x23c)]))[_0x51bffc(0x20b)](_0x2e28e1=>{var _0x574bf0=_0x51bffc;const _0x140b0f=_0x2e28e1['getUnitId'](),_0x4f6b11=this[_0x574bf0(0x21d)][_0x574bf0(0x1ad)](_0x140b0f);_0x4f6b11==null||_0x4f6b11[_0x574bf0(0x220)]();});}async[_0x494188(0x1a6)](_0x3082dc){var _0x59e61f=_0x494188;const _0x3d7242=await this['_collabSessionService'][_0x59e61f(0x222)](_0x3082dc),_0x28cf0d=this['_injector']['createInstance'](exports[_0x59e61f(0x1c9)],_0x3082dc,_0x3d7242);return _0x28cf0d[_0x59e61f(0x197)](),this[_0x59e61f(0x21d)][_0x59e61f(0x23b)](_0x3082dc,_0x28cf0d),_0x28cf0d;}},exports[_0x494188(0x187)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x494188(0x1d6)](o[_0x494188(0x19a)])),S(0x2,o[_0x494188(0x1d6)](m[_0x494188(0x1a9)]))],exports[_0x494188(0x187)]);var h=(_0x5b1b05=>(_0x5b1b05[_0x494188(0x1f7)]=_0x494188(0x1bc),_0x5b1b05['IDLE']=_0x494188(0x219),_0x5b1b05[_0x494188(0x1be)]=_0x494188(0x1d3),_0x5b1b05['NOT_FOLLOWING']=_0x494188(0x1e5),_0x5b1b05[_0x494188(0x211)]='presenting',_0x5b1b05))(h||{});const W='SAME_OPERATION_SHARE_INTERVAL',G=0xc8;exports[_0x494188(0x1c9)]=class extends o[_0x494188(0x1c2)]{constructor(_0xb760a4,_0x177e21,_0x2884f5,_0xe8d0f2,_0x3944a4){var _0xc09fe4=_0x494188;super(),v(this,_0xc09fe4(0x206),new w[(_0xc09fe4(0x185))](_0xc09fe4(0x219))),v(this,'status$',this['_status$']['asObservable']()),v(this,'_init',!0x1),v(this,_0xc09fe4(0x25d),null),v(this,_0xc09fe4(0x23e),null),(this['_unitID']=_0xb760a4,this[_0xc09fe4(0x1ca)]=_0x177e21,this[_0xc09fe4(0x210)]=_0x2884f5,this[_0xc09fe4(0x1b0)]=_0xe8d0f2,this['_commandService']=_0x3944a4);}get[_0x494188(0x258)](){var _0x29a618=_0x494188;return this[_0x29a618(0x206)][_0x29a618(0x24d)]();}[_0x494188(0x220)](){var _0x5058ad=_0x494188,_0x26b093;(_0x26b093=this[_0x5058ad(0x25d)])==null||_0x26b093[_0x5058ad(0x220)](),this[_0x5058ad(0x206)][_0x5058ad(0x1d4)](_0x5058ad(0x219)),this['_status$'][_0x5058ad(0x1a0)]();}[_0x494188(0x197)](){var _0x43d172=_0x494188;this['_init']||(this[_0x43d172(0x21c)]=!0x0,this[_0x43d172(0x1ca)]['sessionStatus$'][_0x43d172(0x186)](b[_0x43d172(0x225)](this[_0x43d172(0x23c)]))['subscribe'](_0x39e11f=>{var _0x2aa6cc=_0x43d172;switch(_0x39e11f){case m['SessionStatus']['OFFLINE']:this[_0x2aa6cc(0x24c)]();break;case m[_0x2aa6cc(0x1b9)][_0x2aa6cc(0x1f6)]:this[_0x2aa6cc(0x234)]();break;}}),this['_collabSession']['event$']['pipe'](b['takeUntil'](this[_0x43d172(0x23c)]))[_0x43d172(0x20b)](_0x6fb3f6=>{var _0x38ebc3=_0x43d172;const {eventID:_0x4eb884}=_0x6fb3f6;switch(_0x4eb884){case _['CollaborationEvent'][_0x38ebc3(0x24f)]:this[_0x38ebc3(0x1ba)](_0x6fb3f6);break;case _[_0x38ebc3(0x1c7)]['LIVESHARE_OPERATION']:this[_0x38ebc3(0x1b6)](_0x6fb3f6);break;case _['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x38ebc3(0x23d)]();break;case _[_0x38ebc3(0x1c7)][_0x38ebc3(0x238)]:this[_0x38ebc3(0x1c1)](_0x6fb3f6);break;}}));}[_0x494188(0x1ae)](){var _0x156709=_0x494188;this['_collabSession'][_0x156709(0x19f)]({'eventID':_['CollaborationEvent'][_0x156709(0x1e6)],'data':{'unitID':this[_0x156709(0x1f2)],'userID':this['_collabSession']['getMemberID']()}},this[_0x156709(0x1f2)]);}[_0x494188(0x239)](){var _0x29d1cc=_0x494188;this[_0x29d1cc(0x258)]==='presenting'&&(this[_0x29d1cc(0x206)][_0x29d1cc(0x1d4)](_0x29d1cc(0x219)),this['_collabSession'][_0x29d1cc(0x19f)]({'eventID':_[_0x29d1cc(0x1c7)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x29d1cc(0x1f2)]}},this[_0x29d1cc(0x1f2)]));}[_0x494188(0x20c)](){var _0x3ccd49=_0x494188;this[_0x3ccd49(0x258)]==='not-following'&&(this[_0x3ccd49(0x206)][_0x3ccd49(0x1d4)](_0x3ccd49(0x1d3)),this[_0x3ccd49(0x19b)]());}[_0x494188(0x1a5)](){var _0x282460=_0x494188;this[_0x282460(0x258)]==='following'&&this[_0x282460(0x1d5)]();}[_0x494188(0x1ba)](_0x1eda81){var _0x4b27aa=_0x494188;const {presenter:_0x2fec6f}=_0x1eda81[_0x4b27aa(0x1f8)],_0x57770c=this[_0x4b27aa(0x1ca)][_0x4b27aa(0x1e8)]();this[_0x4b27aa(0x23e)]=_0x2fec6f,_0x2fec6f===_0x57770c?(this[_0x4b27aa(0x1d5)](),this[_0x4b27aa(0x191)]()):this[_0x4b27aa(0x258)]!==_0x4b27aa(0x1e5)&&(this['_stopPresenting'](),this[_0x4b27aa(0x19b)]());}['_fetchOperations'](){var _0x4dc848=_0x494188;const _0xf6c922={'eventID':_[_0x4dc848(0x1c7)][_0x4dc848(0x215)]};this[_0x4dc848(0x1ca)][_0x4dc848(0x19f)](_0xf6c922,this['_unitID']);}['_handleTerminate'](){var _0x395137=_0x494188;this[_0x395137(0x23e)]=null,this[_0x395137(0x258)]!=='presenting'&&this[_0x395137(0x1ff)]();}[_0x494188(0x1c1)](_0x1a9e1b){var _0x3e2659=_0x494188;if(this[_0x3e2659(0x258)]==='following'&&this[_0x3e2659(0x23e)]===_0x1a9e1b['data'][_0x3e2659(0x1d1)]){const _0x27869a=_[_0x3e2659(0x18d)](_0x1a9e1b[_0x3e2659(0x1f8)])[_0x3e2659(0x1ec)][_0x3e2659(0x1cb)]()[_0x3e2659(0x1c3)](_0x2ea5a3=>_0x2ea5a3['id']===C[_0x3e2659(0x250)]['id']);if(_0x27869a){const _0x489810=_0x27869a['params']['unitId'],_0x1ee85d=_0x27869a['params']['sheet']['id'];setTimeout(()=>{var _0x18165a=_0x3e2659;this[_0x18165a(0x1c5)][_0x18165a(0x1a3)](C[_0x18165a(0x1bd)]['id'],{'unitId':_0x489810,'subUnitId':_0x1ee85d},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x75179e=_0x494188;this['_status$'][_0x75179e(0x1d4)](_0x75179e(0x1e2));const _0x3b954c=new Map(),_0x5a445a=this[_0x75179e(0x25d)]=new o['DisposableCollection']();_0x5a445a['add'](o[_0x75179e(0x204)](()=>{var _0x4531de=_0x75179e;_0x3b954c[_0x4531de(0x1d8)](_0x2e6491=>_0x2e6491[_0x4531de(0x1a0)]()),_0x3b954c[_0x4531de(0x1f9)]();})),_0x5a445a[_0x75179e(0x203)](this[_0x75179e(0x1c5)][_0x75179e(0x25e)](_0x119dca=>{var _0x3a1e1a=_0x75179e,_0x22ad65;if(_0x119dca[_0x3a1e1a(0x18f)]!==o[_0x3a1e1a(0x1df)][_0x3a1e1a(0x1fa)]||!this['_liveShareService'][_0x3a1e1a(0x263)](_0x119dca['id']))return;const {id:_0x18fcb4}=_0x119dca;let _0x201ebf;_0x3b954c[_0x3a1e1a(0x257)](_0x18fcb4)?_0x201ebf=_0x3b954c[_0x3a1e1a(0x1ad)](_0x18fcb4):(_0x201ebf=new w[(_0x3a1e1a(0x21a))](),_0x3b954c[_0x3a1e1a(0x23b)](_0x18fcb4,_0x201ebf),_0x201ebf[_0x3a1e1a(0x186)](b[_0x3a1e1a(0x25c)]((_0x22ad65=this[_0x3a1e1a(0x210)][_0x3a1e1a(0x192)](W))!=null?_0x22ad65:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1301b8=>{var _0x25e05e=_0x3a1e1a;this[_0x25e05e(0x1ca)][_0x25e05e(0x19f)]({'eventID':_['CollaborationEvent'][_0x25e05e(0x25f)],'data':{'unitID':this['_unitID'],'operations':{[_0x1301b8['id']]:{'id':_0x1301b8['id'],'params':JSON[_0x25e05e(0x245)](_0x1301b8[_0x25e05e(0x1e9)])}}}},this[_0x25e05e(0x1f2)]);})),_0x201ebf[_0x3a1e1a(0x1d4)](_0x119dca);})),this[_0x75179e(0x1b0)][_0x75179e(0x246)](this[_0x75179e(0x1f2)])[_0x75179e(0x1d8)](_0xceb4d5=>this['_collabSession']['send']({'eventID':_[_0x75179e(0x1c7)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x75179e(0x1f2)],'operations':{[_0xceb4d5['id']]:{'id':_0xceb4d5['id'],'params':JSON['stringify'](_0xceb4d5[_0x75179e(0x1e9)])}}}},this[_0x75179e(0x1f2)]));}[_0x494188(0x1b4)](){var _0x4c6bde=_0x494188,_0x22efd0;this[_0x4c6bde(0x206)][_0x4c6bde(0x1d4)](_0x4c6bde(0x219)),(_0x22efd0=this[_0x4c6bde(0x25d)])==null||_0x22efd0[_0x4c6bde(0x220)](),this[_0x4c6bde(0x25d)]=null;}[_0x494188(0x19b)](){var _0x4bdbc8=_0x494188,_0x5c61f1;(_0x5c61f1=this[_0x4bdbc8(0x25d)])==null||_0x5c61f1[_0x4bdbc8(0x220)](),this[_0x4bdbc8(0x206)][_0x4bdbc8(0x1d4)](_0x4bdbc8(0x1d3));}[_0x494188(0x1ff)](){var _0x259dab=_0x494188,_0x22e1d8;this[_0x259dab(0x206)][_0x259dab(0x1d4)](_0x259dab(0x219)),(_0x22e1d8=this[_0x259dab(0x25d)])==null||_0x22e1d8[_0x259dab(0x220)](),this[_0x259dab(0x25d)]=null;}[_0x494188(0x1d5)](){var _0x47c413=_0x494188,_0x4f9d3f;this['_status$'][_0x47c413(0x1d4)](_0x47c413(0x1e5)),(_0x4f9d3f=this[_0x47c413(0x25d)])==null||_0x4f9d3f[_0x47c413(0x220)]();}['_handleOperation'](_0x5ba7dd){var _0x1788e1=_0x494188;if(['presenting',_0x1788e1(0x1e5),'offline'][_0x1788e1(0x1d0)](this[_0x1788e1(0x258)])||!_0x5ba7dd[_0x1788e1(0x1f8)][_0x1788e1(0x22f)]||_0x5ba7dd['data']['presenter']===this[_0x1788e1(0x1ca)][_0x1788e1(0x1e8)]())return;this[_0x1788e1(0x258)]===_0x1788e1(0x219)&&this[_0x1788e1(0x19b)]();const _0x1415a8=_0x5ba7dd[_0x1788e1(0x1f8)][_0x1788e1(0x1b8)];Object[_0x1788e1(0x1a4)](_0x1415a8)['forEach'](_0xb8f7d=>{var _0x4a7f3d=_0x1788e1;this['_commandService'][_0x4a7f3d(0x1a3)](_0xb8f7d['id'],_0xb8f7d[_0x4a7f3d(0x1e9)]?JSON['parse'](_0xb8f7d[_0x4a7f3d(0x1e9)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1eddef=_0x494188,_0x3a6df6;this[_0x1eddef(0x206)][_0x1eddef(0x1d4)]('offline'),(_0x3a6df6=this[_0x1eddef(0x25d)])==null||_0x3a6df6[_0x1eddef(0x220)]();}[_0x494188(0x234)](){var _0x150418=_0x494188;this[_0x150418(0x206)]['next']('idle'),this['_fetchOperations']();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x494188(0x254)]),S(0x3,o['Inject'](O)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x1fa9a5=_0x494188;const _0x6f928c=p[_0x1fa9a5(0x1e7)](exports['LiveShareController']),_0x12939c=p['useDependency'](o[_0x1fa9a5(0x18a)]),_0x4f4f4e=p[_0x1fa9a5(0x235)](()=>_0x12939c[_0x1fa9a5(0x18c)](o[_0x1fa9a5(0x1fc)][_0x1fa9a5(0x1aa)]),void 0x0,!0x1,[]),[_0x14b1cd,_0x3021fe]=f[_0x1fa9a5(0x20a)](null),[_0x2c35d2,_0x2b77c8]=f[_0x1fa9a5(0x20a)](h[_0x1fa9a5(0x1c6)]),_0x1f9148=f[_0x1fa9a5(0x19d)](null);return f[_0x1fa9a5(0x221)](()=>(_0x4f4f4e&&_0x6f928c['getLiveShareCoordinator'](_0x4f4f4e[_0x1fa9a5(0x1ef)]())[_0x1fa9a5(0x1cf)](_0x2037a2=>{var _0x618a4d=_0x1fa9a5;_0x3021fe(_0x2037a2),_0x1f9148[_0x618a4d(0x1d7)]=_0x2037a2['status$'][_0x618a4d(0x20b)](_0x3a226c=>{_0x2b77c8(_0x3a226c);});}),()=>{var _0x271749=_0x1fa9a5,_0x34f50f;(_0x34f50f=_0x1f9148[_0x271749(0x1d7)])==null||_0x34f50f[_0x271749(0x22e)](),_0x1f9148['current']=null;}),[_0x4f4f4e,_0x6f928c]),_0x14b1cd?l['jsx'](g[_0x1fa9a5(0x244)],{'align':_0x1fa9a5(0x229),'disabled':_0x2c35d2===h[_0x1fa9a5(0x1f7)],'className':_0x1fa9a5(0x18e),'overlay':l[_0x1fa9a5(0x201)](B,{'status':_0x2c35d2,'coordinator':_0x14b1cd}),'children':l[_0x1fa9a5(0x201)](_0x1fa9a5(0x1c8),{'className':g['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2c35d2===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2c35d2!==h[_0x1fa9a5(0x1f7)]}),'type':_0x1fa9a5(0x1c8),'children':l['jsx'](P,{'className':_0x1fa9a5(0x212)})})}):null;}function B(_0x26039d){var _0x24074e=_0x494188;const {status:_0x711a63,coordinator:_0x5528b9}=_0x26039d;switch(_0x711a63){case h[_0x24074e(0x1c6)]:return l[_0x24074e(0x201)](Y,{'coordinator':_0x5528b9});case h['FOLLOWING']:return l[_0x24074e(0x201)](Z,{'coordinator':_0x5528b9});case h[_0x24074e(0x1b5)]:return l['jsx'](J,{'coordinator':_0x5528b9});case h['OFFLINE']:return l[_0x24074e(0x201)](z,{});case h[_0x24074e(0x211)]:return l['jsx'](K,{'coordinator':_0x5528b9});default:return null;}}function Y(_0x37537b){var _0x21e964=_0x494188;const {coordinator:_0x190dd2}=_0x37537b;return l[_0x21e964(0x266)](l['Fragment'],{'children':[l[_0x21e964(0x201)](_0x21e964(0x208),{'className':_0x21e964(0x247),'children':_0x21e964(0x243)}),l['jsx'](g[_0x21e964(0x1a2)],{'onClick':()=>_0x190dd2[_0x21e964(0x1ae)](),'children':_0x21e964(0x255)})]});}function _0x1cfd(_0x396829,_0x315ffe){var _0x573663=_0x5736();return _0x1cfd=function(_0x1cfd2b,_0x4dcbb6){_0x1cfd2b=_0x1cfd2b-0x184;var _0x1100be=_0x573663[_0x1cfd2b];return _0x1100be;},_0x1cfd(_0x396829,_0x315ffe);}function Z(_0x2f36c5){var _0x1bbff9=_0x494188;const {coordinator:_0x275784}=_0x2f36c5;return l[_0x1bbff9(0x266)](l[_0x1bbff9(0x19c)],{'children':[l['jsx'](_0x1bbff9(0x208),{'className':_0x1bbff9(0x247),'children':_0x1bbff9(0x1cc)}),l[_0x1bbff9(0x201)](g[_0x1bbff9(0x1a2)],{'onClick':()=>_0x275784['stopFollowing'](),'children':'Stop\x20following'})]});}function J(_0x34e8d1){var _0x28600a=_0x494188;const {coordinator:_0x1862ac}=_0x34e8d1;return l[_0x28600a(0x266)](l['Fragment'],{'children':[l[_0x28600a(0x201)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28600a(0x196)}),l[_0x28600a(0x201)](g[_0x28600a(0x1a2)],{'variant':_0x28600a(0x24e),'onClick':()=>_0x1862ac[_0x28600a(0x20c)](),'children':_0x28600a(0x1ed)})]});}function K(_0x16a9dc){var _0x509d14=_0x494188;const {coordinator:_0x3fbfa1}=_0x16a9dc;return l[_0x509d14(0x266)](l['Fragment'],{'children':[l[_0x509d14(0x201)](_0x509d14(0x208),{'className':_0x509d14(0x247),'children':_0x509d14(0x214)}),l['jsx'](g[_0x509d14(0x1a2)],{'variant':_0x509d14(0x1e1),'onClick':()=>_0x3fbfa1[_0x509d14(0x239)](),'children':'Stop\x20presenting'})]});}function z(){var _0x58152e=_0x494188;return l[_0x58152e(0x201)](l[_0x58152e(0x19c)],{'children':_0x58152e(0x259)});}var Q=Object['getOwnPropertyDescriptor'],X=(_0x16ff0a,_0x2d71e8,_0x55a500,_0xbcf167)=>{for(var _0x164e18=_0xbcf167>0x1?void 0x0:_0xbcf167?Q(_0x2d71e8,_0x55a500):_0x2d71e8,_0x49b8db=_0x16ff0a['length']-0x1,_0x4aa4dc;_0x49b8db>=0x0;_0x49b8db--)(_0x4aa4dc=_0x16ff0a[_0x49b8db])&&(_0x164e18=_0x4aa4dc(_0x164e18)||_0x164e18);return _0x164e18;},x=(_0x4277c3,_0x49d70e)=>(_0x2f1ac7,_0x38ccc7)=>_0x49d70e(_0x2f1ac7,_0x38ccc7,_0x4277c3);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x58f7e0,_0x46f1d4){var _0x5b18c2=_0x494188;super(),this['_injector']=_0x58f7e0,this[_0x5b18c2(0x262)]=_0x46f1d4,this[_0x5b18c2(0x230)]();}[_0x494188(0x230)](){var _0x8cd429=_0x494188;this[_0x8cd429(0x25b)](this[_0x8cd429(0x262)][_0x8cd429(0x20e)](p[_0x8cd429(0x253)][_0x8cd429(0x1f4)],()=>p[_0x8cd429(0x184)](A,this[_0x8cd429(0x252)])));}},exports['DesktopLiveShareController']=X([x(0x0,o['Inject'](o[_0x494188(0x19a)])),x(0x1,p[_0x494188(0x1db)])],exports[_0x494188(0x1dd)]);const ee=_0x494188(0x218),L={};var te=Object[_0x494188(0x1b2)],ie=(_0x57b2b5,_0x179dc2,_0x9236dc,_0x204576)=>{var _0xa37e72=_0x494188;for(var _0xce74b2=_0x204576>0x1?void 0x0:_0x204576?te(_0x179dc2,_0x9236dc):_0x179dc2,_0x196271=_0x57b2b5[_0xa37e72(0x194)]-0x1,_0x408bcb;_0x196271>=0x0;_0x196271--)(_0x408bcb=_0x57b2b5[_0x196271])&&(_0xce74b2=_0x408bcb(_0xce74b2)||_0xce74b2);return _0xce74b2;},ne=(_0x50c8d8,_0x37625b)=>(_0x505a4d,_0x5d231e)=>_0x37625b(_0x505a4d,_0x5d231e,_0x50c8d8);let E=class extends o[_0x494188(0x1f5)]{constructor(_0x316ea4){var _0x3d3e0e=_0x494188;super(),this['_liveShareService']=_0x316ea4,this[_0x3d3e0e(0x21c)]();}[_0x494188(0x21c)](){var _0x294643=_0x494188;[D[_0x294643(0x1de)]['id'],D[_0x294643(0x248)]['id'],C[_0x294643(0x1bd)]['id']][_0x294643(0x1d8)](_0x133c0d=>{var _0x14558e=_0x294643;this[_0x14558e(0x25b)](this['_liveShareService'][_0x14558e(0x202)](_0x133c0d));});}};E=ie([ne(0x0,o[_0x494188(0x1d6)](O))],E);var re=Object[_0x494188(0x23a)],se=Object[_0x494188(0x1b2)],oe=(_0x158f5b,_0x2e0e0c,_0x43927c)=>_0x2e0e0c in _0x158f5b?re(_0x158f5b,_0x2e0e0c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43927c}):_0x158f5b[_0x2e0e0c]=_0x43927c,ae=(_0x4845c7,_0x41b267,_0x472da1,_0x498462)=>{for(var _0x338236=_0x498462>0x1?void 0x0:_0x498462?se(_0x41b267,_0x472da1):_0x41b267,_0x5f1b75=_0x4845c7['length']-0x1,_0x1bc6e6;_0x5f1b75>=0x0;_0x5f1b75--)(_0x1bc6e6=_0x4845c7[_0x5f1b75])&&(_0x338236=_0x1bc6e6(_0x338236)||_0x338236);return _0x338236;},N=(_0xeb706,_0x3c645e)=>(_0x4fe3a1,_0x3226fd)=>_0x3c645e(_0x4fe3a1,_0x3226fd,_0xeb706),T=(_0xf5e104,_0x21c5d6,_0x324ba4)=>oe(_0xf5e104,typeof _0x21c5d6!='symbol'?_0x21c5d6+'':_0x21c5d6,_0x324ba4);const le=_0x494188(0x22d);exports[_0x494188(0x1cd)]=class extends o[_0x494188(0x189)]{constructor(_0x41ce10=L,_0x3c1d40,_0x166558){var _0x39164b=_0x494188;super(),this[_0x39164b(0x1e3)]=_0x41ce10,this[_0x39164b(0x252)]=_0x3c1d40,this['_configService']=_0x166558;const {..._0x33702a}=o['merge']({},L,this[_0x39164b(0x1e3)]);this[_0x39164b(0x210)]['setConfig'](ee,_0x33702a);}[_0x494188(0x25a)](){var _0x5c40ab=_0x494188;o['registerDependencies'](this[_0x5c40ab(0x252)],o['mergeOverrideWithDependencies']([[O],[exports['LiveShareController']],[E],[exports[_0x5c40ab(0x1dd)]]],this[_0x5c40ab(0x1e3)][_0x5c40ab(0x226)])),o[_0x5c40ab(0x190)](this[_0x5c40ab(0x252)],[[E]]);}[_0x494188(0x24b)](){var _0x1ee460=_0x494188;o['touchDependencies'](this[_0x1ee460(0x252)],[[exports[_0x1ee460(0x1dd)]]]);}},T(exports[_0x494188(0x1cd)],_0x494188(0x18f),o[_0x494188(0x1fc)][_0x494188(0x1bb)]),T(exports[_0x494188(0x1cd)],_0x494188(0x24a),le),exports[_0x494188(0x1cd)]=ae([o[_0x494188(0x1ee)](m[_0x494188(0x209)]),N(0x1,o[_0x494188(0x1d6)](o[_0x494188(0x19a)])),N(0x2,o[_0x494188(0x254)])],exports['UniverLiveSharePlugin']),exports[_0x494188(0x22b)]=A,exports[_0x494188(0x1a7)]=O,exports[_0x494188(0x249)]=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 _0x1624f5=_0x5b64;(function(_0x53b827,_0x1d7bf4){var _0xa9d55f=_0x5b64,_0x116499=_0x53b827();while(!![]){try{var _0x426e29=parseInt(_0xa9d55f(0x165))/0x1*(-parseInt(_0xa9d55f(0x13e))/0x2)+parseInt(_0xa9d55f(0x13c))/0x3+-parseInt(_0xa9d55f(0x102))/0x4+-parseInt(_0xa9d55f(0x100))/0x5+-parseInt(_0xa9d55f(0x144))/0x6+parseInt(_0xa9d55f(0x138))/0x7*(-parseInt(_0xa9d55f(0xf5))/0x8)+parseInt(_0xa9d55f(0x167))/0x9;if(_0x426e29===_0x1d7bf4)break;else _0x116499['push'](_0x116499['shift']());}catch(_0x512ef6){_0x116499['push'](_0x116499['shift']());}}}(_0x1dcd,0x1c9d5));var q=Object[_0x1624f5(0x116)],z=(_0x3800f7,_0x137fc7,_0x38e8f7)=>_0x137fc7 in _0x3800f7?q(_0x3800f7,_0x137fc7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38e8f7}):_0x3800f7[_0x137fc7]=_0x38e8f7,d=(_0x949d89,_0x498301,_0x32f874)=>z(_0x949d89,typeof _0x498301!=_0x1624f5(0x13f)?_0x498301+'':_0x498301,_0x32f874);import{Disposable as _0x1b6eaf,toDisposable as _0x28aff6,IUniverInstanceService as _0x13109b,Inject as _0x1a16ba,Injector as _0x3396c5,IConfigService as _0x375812,ICommandService as _0x4355bd,RxDisposable as _0x1d139d,UniverInstanceType as _0x3c6f33,DisposableCollection as _0x10ce83,CommandType as _0x47f736,DependentOn as _0x3283e7,Plugin as _0x421668,merge as _0xeb06ad,registerDependencies as _0x31d9a6,mergeOverrideWithDependencies as _0x50a260,touchDependencies as _0x58db42}from'@univerjs/core';import{useDependency as _0x5de910,useObservable as _0x47a6de,IUIPartsService as _0x11fbb0,BuiltInUIPart as _0x3bea30,connectInjector as _0x2d8986}from'@univerjs/ui';import{jsx as _0xdece36,jsxs as _0x297d42,Fragment as _0x4b0c6c}from'react/jsx-runtime';import{Dropdown as _0x3c7f31,clsx as _0x3914c5,Button as _0x4fc5ad}from'@univerjs/design';import{forwardRef as _0x3e5310,useRef as _0x338ee2,createElement as _0x4d1ec5,useState as _0x281766,useEffect as _0x37dd39}from'react';import{CollaborationEvent as _0xdbe7ec,parseProtocolChangeset as _0x378c0b}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5f1249,SessionStatus as _0x110f90,UniverCollaborationClientPlugin as _0x32ab4c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1f6f57,SetWorksheetActiveOperation as _0x22b854}from'@univerjs/sheets';import{BehaviorSubject as _0x17f9f2,Subject as _0x257f72}from'rxjs';import{takeUntil as _0x55a56f,throttleTime as _0x5c958e}from'rxjs/operators';import{SetZoomRatioOperation as _0x499661,SetScrollOperation as _0x2cab7e}from'@univerjs/sheets-ui';var c=function(){var _0xdcd6fd=_0x1624f5;return c=Object[_0xdcd6fd(0x12b)]||function(_0x54a868){var _0x226f3e=_0xdcd6fd;for(var _0x10e957,_0x56e995=0x1,_0x144918=arguments[_0x226f3e(0x119)];_0x56e995<_0x144918;_0x56e995++){_0x10e957=arguments[_0x56e995];for(var _0x1ae8f7 in _0x10e957)Object[_0x226f3e(0xda)][_0x226f3e(0x13d)]['call'](_0x10e957,_0x1ae8f7)&&(_0x54a868[_0x1ae8f7]=_0x10e957[_0x1ae8f7]);}return _0x54a868;},c['apply'](this,arguments);},Oe=function(_0x235bd9,_0x2e98bf){var _0x3af152=_0x1624f5,_0x2f119f={};for(var _0x60bf77 in _0x235bd9)Object['prototype']['hasOwnProperty']['call'](_0x235bd9,_0x60bf77)&&_0x2e98bf[_0x3af152(0x105)](_0x60bf77)<0x0&&(_0x2f119f[_0x60bf77]=_0x235bd9[_0x60bf77]);if(_0x235bd9!=null&&typeof Object[_0x3af152(0x121)]=='function'){for(var _0x244ecb=0x0,_0x60bf77=Object['getOwnPropertySymbols'](_0x235bd9);_0x244ecb<_0x60bf77[_0x3af152(0x119)];_0x244ecb++)_0x2e98bf[_0x3af152(0x105)](_0x60bf77[_0x244ecb])<0x0&&Object[_0x3af152(0xda)][_0x3af152(0xde)][_0x3af152(0x126)](_0x235bd9,_0x60bf77[_0x244ecb])&&(_0x2f119f[_0x60bf77[_0x244ecb]]=_0x235bd9[_0x60bf77[_0x244ecb]]);}return _0x2f119f;},W=_0x3e5310(function(_0x185737,_0x3f7af5){var _0x4ccfac=_0x1624f5,_0xbbc366=_0x185737[_0x4ccfac(0xd4)],_0x2a8a15=_0x185737['id'],_0x4fcea8=_0x185737[_0x4ccfac(0x10c)],_0x5016b0=_0x185737['extend'],_0x57d59b=Oe(_0x185737,[_0x4ccfac(0xd4),'id','className','extend']),_0x476b9b=_0x4ccfac(0x11a)['concat'](_0x2a8a15,'\x20')[_0x4ccfac(0x11d)](_0x4fcea8||'')[_0x4ccfac(0x10d)](),_0x11dd71=_0x338ee2('_'[_0x4ccfac(0x11d)](Ne()));return Y(_0xbbc366,''[_0x4ccfac(0x11d)](_0x2a8a15),{'defIds':_0xbbc366['defIds'],'idSuffix':_0x11dd71[_0x4ccfac(0x141)]},c({'ref':_0x3f7af5,'className':_0x476b9b},_0x57d59b),_0x5016b0);});function Y(_0x43386a,_0x3c788a,_0xd065d5,_0x23bfcd,_0x1dda16){var _0x4c108b=_0x1624f5;return _0x4d1ec5(_0x43386a[_0x4c108b(0x118)],c(c({'key':_0x3c788a},Ee(_0x43386a,_0xd065d5,_0x1dda16)),_0x23bfcd),(we(_0x43386a,_0xd065d5)[_0x4c108b(0x15f)]||[])['map'](function(_0x244848,_0x719d53){var _0x7e3bbb=_0x4c108b;return Y(_0x244848,''['concat'](_0x3c788a,'-')[_0x7e3bbb(0x11d)](_0x43386a[_0x7e3bbb(0x118)],'-')['concat'](_0x719d53),_0xd065d5,void 0x0,_0x1dda16);}));}function Ee(_0x1e6fc6,_0x32cd02,_0x52b76a){var _0x4a04d5=_0x1624f5,_0x3833ed=c({},_0x1e6fc6[_0x4a04d5(0x12c)]);_0x52b76a!=null&&_0x52b76a[_0x4a04d5(0x132)]&&_0x3833ed['fill']===_0x4a04d5(0x132)&&(_0x3833ed[_0x4a04d5(0x129)]=_0x52b76a[_0x4a04d5(0x132)]),_0x1e6fc6[_0x4a04d5(0x118)]===_0x4a04d5(0x125)&&_0x3833ed['id']&&(_0x3833ed['id']=_0x3833ed['id']+_0x32cd02[_0x4a04d5(0x11b)]),Object['entries'](_0x3833ed)['forEach'](function(_0x28fd02){var _0x18dd81=_0x4a04d5,_0x2bdc1d=_0x28fd02[0x0],_0x37b000=_0x28fd02[0x1];_0x2bdc1d===_0x18dd81(0x125)&&typeof _0x37b000==_0x18dd81(0xd3)&&(_0x3833ed[_0x2bdc1d]=_0x37b000['replace'](/url\(#(.*)\)/,_0x18dd81(0x111)[_0x18dd81(0x11d)](_0x32cd02[_0x18dd81(0x11b)],')')));});var _0x51b7dc=_0x32cd02[_0x4a04d5(0xca)];return!_0x51b7dc||_0x51b7dc[_0x4a04d5(0x119)]===0x0||(_0x1e6fc6['tag']==='use'&&_0x3833ed[_0x4a04d5(0xf3)]&&(_0x3833ed[_0x4a04d5(0xf3)]=_0x3833ed[_0x4a04d5(0xf3)]+_0x32cd02[_0x4a04d5(0x11b)]),Object[_0x4a04d5(0x157)](_0x3833ed)['forEach'](function(_0x286606){var _0x387258=_0x4a04d5,_0x1e46ae=_0x286606[0x0],_0x434716=_0x286606[0x1];typeof _0x434716=='string'&&(_0x3833ed[_0x1e46ae]=_0x434716[_0x387258(0xf4)](/url\(#(.*)\)/,'url(#$1'[_0x387258(0x11d)](_0x32cd02[_0x387258(0x11b)],')')));})),_0x3833ed;}function we(_0x21db93,_0x354467){var _0x432555=_0x1624f5,_0x183735,_0x4b5562=_0x354467[_0x432555(0xca)];return!_0x4b5562||_0x4b5562['length']===0x0?_0x21db93:_0x21db93[_0x432555(0x118)]===_0x432555(0x163)&&(!((_0x183735=_0x21db93[_0x432555(0x15f)])===null||_0x183735===void 0x0)&&_0x183735[_0x432555(0x119)])?c(c({},_0x21db93),{'children':_0x21db93[_0x432555(0x15f)][_0x432555(0x108)](function(_0x5d77f4){var _0x85b954=_0x432555;return typeof _0x5d77f4[_0x85b954(0x12c)]['id']=='string'&&_0x4b5562&&_0x4b5562[_0x85b954(0xcf)](_0x5d77f4[_0x85b954(0x12c)]['id'])?c(c({},_0x5d77f4),{'attrs':c(c({},_0x5d77f4['attrs']),{'id':_0x5d77f4['attrs']['id']+_0x354467[_0x85b954(0x11b)]})}):_0x5d77f4;})}):_0x21db93;}function Ne(){var _0x997a0b=_0x1624f5;return Math[_0x997a0b(0x14f)]()['toString'](0x24)[_0x997a0b(0x158)](0x2,0x8);}W['displayName']='UniverIcon';var Ce={'tag':_0x1624f5(0xcd),'attrs':{'xmlns':_0x1624f5(0x140),'fill':_0x1624f5(0x12e),'viewBox':_0x1624f5(0x115),'width':_0x1624f5(0xc5),'height':_0x1624f5(0xc5)},'children':[{'tag':_0x1624f5(0xdc),'attrs':{'fill':_0x1624f5(0xbe),'d':_0x1624f5(0xf6)}},{'tag':_0x1624f5(0xdc),'attrs':{'fill':_0x1624f5(0xbe),'d':_0x1624f5(0x154),'fillRule':_0x1624f5(0x164),'clipRule':_0x1624f5(0x164)}}]},B=_0x3e5310(function(_0x1ead5a,_0x4e470e){var _0x3904a5=_0x1624f5;return _0x4d1ec5(W,Object[_0x3904a5(0x12b)]({},_0x1ead5a,{'id':_0x3904a5(0x148),'ref':_0x4e470e,'icon':Ce}));});B['displayName']=_0x1624f5(0x16a);class L extends _0x1b6eaf{constructor(){var _0x3e2b51=_0x1624f5;super(...arguments),d(this,_0x3e2b51(0xe8),new Set()),d(this,'_reporters',new Set());}[_0x1624f5(0x151)](_0x2207a7){var _0x431a31=_0x1624f5;return this[_0x431a31(0xe8)]['add'](_0x2207a7),_0x28aff6(()=>this[_0x431a31(0xe8)][_0x431a31(0xdf)](_0x2207a7));}[_0x1624f5(0xdd)](_0x33bc1f){var _0x42553d=_0x1624f5;return this[_0x42553d(0xc1)]['add'](_0x33bc1f),_0x28aff6(()=>this['_reporters'][_0x42553d(0xdf)](_0x33bc1f));}['shouldShareOperation'](_0xdd9c42){var _0x5e0242=_0x1624f5;return this[_0x5e0242(0xe8)]['has'](_0xdd9c42);}[_0x1624f5(0x134)](_0x2c1589){var _0x314727=_0x1624f5;return Array[_0x314727(0x122)](this[_0x314727(0xc1)])[_0x314727(0x108)](_0x43de8a=>_0x43de8a(_0x2c1589));}}function _0x1dcd(){var _0x28513a=['M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_OPERATION','_unitID','_liveShareService','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_uiPartsService','_handleOffline','stringify','next','PRESENTING','74140iuoDyB','univer-size-4','406860BLEGRW','getTypeOfUnitAdded$','div','indexOf','You\x27re\x20following\x20the\x20presenter','set','map','_startFollowing','_commandDisposable','_collabSession','className','trim','_stopPresenting','disposeWithMe','LIVESHARE_TERMINATE','url(#$1','_init','ONLINE','tryStartPresenting','0\x200\x2017\x2017','defineProperty','unsubscribe','tag','length','univerjs-icon\x20univerjs-icon-','idSuffix','_commandService','concat','_presenter','_startLiveShareCoordinator','presenter','getOwnPropertySymbols','from','OPERATION','pipe','mask','call','getCurrentTypeOfUnit$','memberID','fill','presenting','assign','attrs','onStarting','none','createInstance','getMemberID','onCommandExecuted','colorChannel1','Stop\x20following','getInitialStates','values','Start','UNIVER_SHEET','325913EimVJC','_stopFollowing','end','type','255066kFZGnw','hasOwnProperty','194EwgVdm','symbol','http://www.w3.org/2000/svg','current','send','complete','607110AyLOKQ','offline','_collabSessionService','default','live-share-icon','_config','live-share.config','_mountLiveShare','dispose$','FOLLOWING','_entities','random','NOT_FOLLOWING','registerSharedOperation','startFollowing','_handleNewHost','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','_status$','pluginName','entries','substring','stopFollowing','_fetchOperations','_injector','_handleNewChangeSets','univer-mb-3\x20univer-w-full\x20univer-text-sm','init','children','NEW_CHANGESETS','add','_beIdle','defs','evenodd','463AytIhM','setConfig','3072429zyQfNQ','following','getUnitId','LiveShareIcon','_configService','mutations','currentColor','dispose','has','_reporters','IDLE','asObservable','params','1em','forEach','getLiveShareCoordinator','parse','UNIVER_LIVE_SHARE_PLUGIN','defIds','override','OFFLINE','svg','_univerInstanceService','includes','executeCommand','registerComponent','_startPresenting','string','icon','subscribe','find','sheet','LIVESHARE_NEW_HOST','onRendered','prototype','LIVESHARE_REQUEST_HOST','path','registerInitialStateReporter','propertyIsEnumerable','delete','You\x27are\x20offline.','then','_handleOnline','not-following','getOwnPropertyDescriptor','Start\x20following','You\x27re\x20presenting\x20the\x20document','LIVESHARE_FETCH_OPERATIONS','_sharedOperations','clear','getConfig','event$','data','You\x27re\x20not\x20following\x20the\x20presenter','_status','Stop\x20presenting','idle','get','_handleTerminate','xlink:href','replace','8werfDF'];_0x1dcd=function(){return _0x28513a;};return _0x1dcd();}var De=Object['getOwnPropertyDescriptor'],Z=(_0x5e1ae9,_0x3d12fc,_0x14520e,_0x5c471f)=>{var _0x1a43e8=_0x1624f5;for(var _0x1abf9c=_0x5c471f>0x1?void 0x0:_0x5c471f?De(_0x3d12fc,_0x14520e):_0x3d12fc,_0x36eb2b=_0x5e1ae9[_0x1a43e8(0x119)]-0x1,_0x327f1f;_0x36eb2b>=0x0;_0x36eb2b--)(_0x327f1f=_0x5e1ae9[_0x36eb2b])&&(_0x1abf9c=_0x327f1f(_0x1abf9c)||_0x1abf9c);return _0x1abf9c;},f=(_0x497b82,_0xd96d94)=>(_0x235d26,_0x24c018)=>_0xd96d94(_0x235d26,_0x24c018,_0x497b82);let m=class extends _0x1d139d{constructor(_0x4ea6cd,_0x21dacf,_0x28139b){var _0x3bdab9=_0x1624f5;super(),d(this,'_entities',new Map()),(this[_0x3bdab9(0xce)]=_0x4ea6cd,this[_0x3bdab9(0x15b)]=_0x21dacf,this['_collabSessionService']=_0x28139b,this[_0x3bdab9(0x112)]());}async[_0x1624f5(0xc7)](_0x29e2e9){var _0x3bc832=_0x1624f5;return this[_0x3bc832(0x14e)][_0x3bc832(0xc0)](_0x29e2e9)||await this['_startLiveShareCoordinator'](_0x29e2e9),this[_0x3bc832(0x14e)][_0x3bc832(0xf1)](_0x29e2e9);}[_0x1624f5(0x112)](){var _0x37697d=_0x1624f5;this[_0x37697d(0xce)][_0x37697d(0x103)](_0x3c6f33[_0x37697d(0x137)])[_0x37697d(0x124)](_0x55a56f(this['dispose$']))[_0x37697d(0xd5)](async _0x368049=>{var _0x11ca06=_0x37697d;const _0x27d0d1=_0x368049[_0x11ca06(0x169)]();this['_entities'][_0x11ca06(0xc0)](_0x27d0d1)||this[_0x11ca06(0x11f)](_0x27d0d1);}),this[_0x37697d(0xce)]['getTypeOfUnitDisposed$'](_0x3c6f33[_0x37697d(0x137)])[_0x37697d(0x124)](_0x55a56f(this['dispose$']))['subscribe'](_0x8448ba=>{var _0x48842d=_0x37697d;const _0x1bc052=_0x8448ba[_0x48842d(0x169)](),_0x14fa43=this[_0x48842d(0x14e)]['get'](_0x1bc052);_0x14fa43==null||_0x14fa43[_0x48842d(0xbf)]();});}async['_startLiveShareCoordinator'](_0x2feeec){var _0x440e31=_0x1624f5;const _0x26c6b6=await this[_0x440e31(0x146)]['requireSession'](_0x2feeec),_0x328bd1=this[_0x440e31(0x15b)][_0x440e31(0x12f)](C,_0x2feeec,_0x26c6b6);return _0x328bd1[_0x440e31(0x15e)](),this['_entities'][_0x440e31(0x107)](_0x2feeec,_0x328bd1),_0x328bd1;}};m=Z([f(0x0,_0x13109b),f(0x1,_0x1a16ba(_0x3396c5)),f(0x2,_0x1a16ba(_0x5f1249))],m);var h=(_0x1a6731=>(_0x1a6731[_0x1624f5(0xcc)]=_0x1624f5(0x145),_0x1a6731[_0x1624f5(0xc2)]='idle',_0x1a6731[_0x1624f5(0x14d)]=_0x1624f5(0x168),_0x1a6731[_0x1624f5(0x150)]=_0x1624f5(0xe3),_0x1a6731[_0x1624f5(0xff)]=_0x1624f5(0x12a),_0x1a6731))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x1d139d{constructor(_0x3a6f96,_0x4b1346,_0x4b25c1,_0x964c42,_0x12700f){var _0x1f5e0d=_0x1624f5;super(),d(this,_0x1f5e0d(0x155),new _0x17f9f2(_0x1f5e0d(0xf0))),d(this,'status$',this[_0x1f5e0d(0x155)][_0x1f5e0d(0xc3)]()),d(this,'_init',!0x1),d(this,_0x1f5e0d(0x10a),null),d(this,_0x1f5e0d(0x11e),null),(this[_0x1f5e0d(0xf8)]=_0x3a6f96,this[_0x1f5e0d(0x10b)]=_0x4b1346,this['_configService']=_0x4b25c1,this['_liveShareService']=_0x964c42,this[_0x1f5e0d(0x11c)]=_0x12700f);}get[_0x1624f5(0xee)](){var _0x1a24f2=_0x1624f5;return this[_0x1a24f2(0x155)]['getValue']();}[_0x1624f5(0xbf)](){var _0x3632f3=_0x1624f5,_0x230cff;(_0x230cff=this['_commandDisposable'])==null||_0x230cff[_0x3632f3(0xbf)](),this['_status$'][_0x3632f3(0xfe)](_0x3632f3(0xf0)),this[_0x3632f3(0x155)][_0x3632f3(0x143)]();}['init'](){var _0x5a030c=_0x1624f5;this[_0x5a030c(0x112)]||(this['_init']=!0x0,this[_0x5a030c(0x10b)]['sessionStatus$'][_0x5a030c(0x124)](_0x55a56f(this[_0x5a030c(0x14c)]))[_0x5a030c(0xd5)](_0x119102=>{var _0x100286=_0x5a030c;switch(_0x119102){case _0x110f90['OFFLINE']:this[_0x100286(0xfc)]();break;case _0x110f90[_0x100286(0x113)]:this['_handleOnline']();break;}}),this[_0x5a030c(0x10b)][_0x5a030c(0xeb)]['pipe'](_0x55a56f(this[_0x5a030c(0x14c)]))[_0x5a030c(0xd5)](_0x2249cf=>{var _0xe11e7a=_0x5a030c;const {eventID:_0x15cb95}=_0x2249cf;switch(_0x15cb95){case _0xdbe7ec[_0xe11e7a(0xd8)]:this[_0xe11e7a(0x153)](_0x2249cf);break;case _0xdbe7ec['LIVESHARE_OPERATION']:this['_handleOperation'](_0x2249cf);break;case _0xdbe7ec[_0xe11e7a(0x110)]:this[_0xe11e7a(0xf2)]();break;case _0xdbe7ec[_0xe11e7a(0x160)]:this[_0xe11e7a(0x15c)](_0x2249cf);break;}}));}[_0x1624f5(0x114)](){var _0x2aa600=_0x1624f5;this[_0x2aa600(0x10b)][_0x2aa600(0x142)]({'eventID':_0xdbe7ec[_0x2aa600(0xdb)],'data':{'unitID':this[_0x2aa600(0xf8)],'userID':this[_0x2aa600(0x10b)][_0x2aa600(0x130)]()}},this[_0x2aa600(0xf8)]);}['stopPresenting'](){var _0x34c0ef=_0x1624f5;this[_0x34c0ef(0xee)]===_0x34c0ef(0x12a)&&(this[_0x34c0ef(0x155)][_0x34c0ef(0xfe)](_0x34c0ef(0xf0)),this[_0x34c0ef(0x10b)][_0x34c0ef(0x142)]({'eventID':_0xdbe7ec['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x34c0ef(0xf8)]}},this[_0x34c0ef(0xf8)]));}[_0x1624f5(0x152)](){var _0x5b78dd=_0x1624f5;this[_0x5b78dd(0xee)]===_0x5b78dd(0xe3)&&(this[_0x5b78dd(0x155)][_0x5b78dd(0xfe)](_0x5b78dd(0x168)),this[_0x5b78dd(0x109)]());}[_0x1624f5(0x159)](){var _0x2e17e8=_0x1624f5;this[_0x2e17e8(0xee)]===_0x2e17e8(0x168)&&this[_0x2e17e8(0x139)]();}[_0x1624f5(0x153)](_0x199c9f){var _0x5de5b2=_0x1624f5;const {presenter:_0xc25ece}=_0x199c9f[_0x5de5b2(0xec)],_0x2a52ec=this['_collabSession'][_0x5de5b2(0x130)]();this[_0x5de5b2(0x11e)]=_0xc25ece,_0xc25ece===_0x2a52ec?(this[_0x5de5b2(0x139)](),this[_0x5de5b2(0xd2)]()):this[_0x5de5b2(0xee)]!==_0x5de5b2(0xe3)&&(this[_0x5de5b2(0x10e)](),this[_0x5de5b2(0x109)]());}[_0x1624f5(0x15a)](){var _0x5a89dc=_0x1624f5;const _0x292f93={'eventID':_0xdbe7ec[_0x5a89dc(0xe7)]};this['_collabSession'][_0x5a89dc(0x142)](_0x292f93,this['_unitID']);}[_0x1624f5(0xf2)](){var _0xbfeedb=_0x1624f5;this[_0xbfeedb(0x11e)]=null,this['_status']!==_0xbfeedb(0x12a)&&this[_0xbfeedb(0x162)]();}[_0x1624f5(0x15c)](_0x2c0466){var _0x3a5d73=_0x1624f5;if(this[_0x3a5d73(0xee)]===_0x3a5d73(0x168)&&this[_0x3a5d73(0x11e)]===_0x2c0466[_0x3a5d73(0xec)][_0x3a5d73(0x128)]){const _0x3e108c=_0x378c0b(_0x2c0466[_0x3a5d73(0xec)])[_0x3a5d73(0xbd)]['reverse']()[_0x3a5d73(0xd6)](_0x705fd1=>_0x705fd1['id']===_0x1f6f57['id']);if(_0x3e108c){const _0x11e563=_0x3e108c[_0x3a5d73(0xc4)]['unitId'],_0x407fb6=_0x3e108c[_0x3a5d73(0xc4)][_0x3a5d73(0xd7)]['id'];setTimeout(()=>{var _0x1fc93d=_0x3a5d73;this['_commandService'][_0x1fc93d(0xd0)](_0x22b854['id'],{'unitId':_0x11e563,'subUnitId':_0x407fb6},{'fromCollab':!0x0});});}}}[_0x1624f5(0xd2)](){var _0x34e469=_0x1624f5;this[_0x34e469(0x155)]['next']('presenting');const _0x5f065f=new Map(),_0x5a2552=this[_0x34e469(0x10a)]=new _0x10ce83();_0x5a2552[_0x34e469(0x161)](_0x28aff6(()=>{var _0x4fd7bb=_0x34e469;_0x5f065f['forEach'](_0xb46e94=>_0xb46e94[_0x4fd7bb(0x143)]()),_0x5f065f[_0x4fd7bb(0xe9)]();})),_0x5a2552[_0x34e469(0x161)](this[_0x34e469(0x11c)][_0x34e469(0x131)](_0x3a5256=>{var _0x46a5da=_0x34e469,_0x373615;if(_0x3a5256[_0x46a5da(0x13b)]!==_0x47f736[_0x46a5da(0x123)]||!this[_0x46a5da(0xf9)]['shouldShareOperation'](_0x3a5256['id']))return;const {id:_0xefdcfb}=_0x3a5256;let _0x56eba9;_0x5f065f[_0x46a5da(0xc0)](_0xefdcfb)?_0x56eba9=_0x5f065f['get'](_0xefdcfb):(_0x56eba9=new _0x257f72(),_0x5f065f[_0x46a5da(0x107)](_0xefdcfb,_0x56eba9),_0x56eba9[_0x46a5da(0x124)](_0x5c958e((_0x373615=this['_configService'][_0x46a5da(0xea)](xe))!=null?_0x373615:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x46a5da(0xd5)](_0xb92a00=>{var _0x19c24e=_0x46a5da;this[_0x19c24e(0x10b)][_0x19c24e(0x142)]({'eventID':_0xdbe7ec[_0x19c24e(0xf7)],'data':{'unitID':this[_0x19c24e(0xf8)],'operations':{[_0xb92a00['id']]:{'id':_0xb92a00['id'],'params':JSON[_0x19c24e(0xfd)](_0xb92a00[_0x19c24e(0xc4)])}}}},this[_0x19c24e(0xf8)]);})),_0x56eba9[_0x46a5da(0xfe)](_0x3a5256);})),this[_0x34e469(0xf9)][_0x34e469(0x134)](this[_0x34e469(0xf8)])[_0x34e469(0xc6)](_0x27b8ad=>this[_0x34e469(0x10b)]['send']({'eventID':_0xdbe7ec[_0x34e469(0xf7)],'data':{'unitID':this['_unitID'],'operations':{[_0x27b8ad['id']]:{'id':_0x27b8ad['id'],'params':JSON['stringify'](_0x27b8ad[_0x34e469(0xc4)])}}}},this[_0x34e469(0xf8)]));}[_0x1624f5(0x10e)](){var _0x31b380=_0x1624f5,_0x3326ac;this[_0x31b380(0x155)][_0x31b380(0xfe)](_0x31b380(0xf0)),(_0x3326ac=this[_0x31b380(0x10a)])==null||_0x3326ac[_0x31b380(0xbf)](),this[_0x31b380(0x10a)]=null;}['_startFollowing'](){var _0x4f8a4b=_0x1624f5,_0x19c327;(_0x19c327=this[_0x4f8a4b(0x10a)])==null||_0x19c327[_0x4f8a4b(0xbf)](),this[_0x4f8a4b(0x155)]['next'](_0x4f8a4b(0x168));}[_0x1624f5(0x162)](){var _0x2e1604=_0x1624f5,_0xb02f06;this[_0x2e1604(0x155)][_0x2e1604(0xfe)](_0x2e1604(0xf0)),(_0xb02f06=this[_0x2e1604(0x10a)])==null||_0xb02f06[_0x2e1604(0xbf)](),this[_0x2e1604(0x10a)]=null;}[_0x1624f5(0x139)](){var _0x3a4ba1=_0x1624f5,_0x3d454f;this[_0x3a4ba1(0x155)][_0x3a4ba1(0xfe)](_0x3a4ba1(0xe3)),(_0x3d454f=this[_0x3a4ba1(0x10a)])==null||_0x3d454f[_0x3a4ba1(0xbf)]();}['_handleOperation'](_0x316364){var _0x49ac78=_0x1624f5;if([_0x49ac78(0x12a),_0x49ac78(0xe3),'offline'][_0x49ac78(0xcf)](this[_0x49ac78(0xee)])||!_0x316364[_0x49ac78(0xec)][_0x49ac78(0x120)]||_0x316364[_0x49ac78(0xec)][_0x49ac78(0x120)]===this[_0x49ac78(0x10b)][_0x49ac78(0x130)]())return;this[_0x49ac78(0xee)]===_0x49ac78(0xf0)&&this[_0x49ac78(0x109)]();const _0x2b6337=_0x316364['data']['operations'];Object[_0x49ac78(0x135)](_0x2b6337)['forEach'](_0x137ec1=>{var _0x258367=_0x49ac78;this[_0x258367(0x11c)][_0x258367(0xd0)](_0x137ec1['id'],_0x137ec1['params']?JSON[_0x258367(0xc8)](_0x137ec1['params']):null,{'fromCollab':!0x0});});}[_0x1624f5(0xfc)](){var _0x18b554=_0x1624f5,_0x197e89;this[_0x18b554(0x155)][_0x18b554(0xfe)](_0x18b554(0x145)),(_0x197e89=this['_commandDisposable'])==null||_0x197e89[_0x18b554(0xbf)]();}[_0x1624f5(0xe2)](){var _0x395dfc=_0x1624f5;this[_0x395dfc(0x155)][_0x395dfc(0xfe)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x375812),f(0x3,_0x1a16ba(L)),f(0x4,_0x4355bd)],C);function _0x5b64(_0x75cad4,_0x27882b){var _0x1dcd45=_0x1dcd();return _0x5b64=function(_0x5b64a5,_0x3f906e){_0x5b64a5=_0x5b64a5-0xbd;var _0x136e16=_0x1dcd45[_0x5b64a5];return _0x136e16;},_0x5b64(_0x75cad4,_0x27882b);}function ye(){var _0x25c236=_0x1624f5;const _0xa57749=_0x5de910(m),_0x1a69d0=_0x5de910(_0x13109b),_0x5f2013=_0x47a6de(()=>_0x1a69d0[_0x25c236(0x127)](_0x3c6f33['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x410d44,_0x892b4d]=_0x281766(null),[_0x3f177d,_0x4620a8]=_0x281766(h['IDLE']),_0x456296=_0x338ee2(null);return _0x37dd39(()=>(_0x5f2013&&_0xa57749[_0x25c236(0xc7)](_0x5f2013[_0x25c236(0x169)]())[_0x25c236(0xe1)](_0x2eab0a=>{var _0x352367=_0x25c236;_0x892b4d(_0x2eab0a),_0x456296[_0x352367(0x141)]=_0x2eab0a['status$'][_0x352367(0xd5)](_0x1471c5=>{_0x4620a8(_0x1471c5);});}),()=>{var _0x1d0b5e=_0x25c236,_0x2f5034;(_0x2f5034=_0x456296['current'])==null||_0x2f5034[_0x1d0b5e(0x117)](),_0x456296['current']=null;}),[_0x5f2013,_0xa57749]),_0x410d44?_0xdece36(_0x3c7f31,{'align':_0x25c236(0x13a),'disabled':_0x3f177d===h[_0x25c236(0xcc)],'className':_0x25c236(0xfa),'overlay':_0xdece36(Re,{'status':_0x3f177d,'coordinator':_0x410d44}),'children':_0xdece36('button',{'className':_0x3914c5('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3f177d===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f177d!==h[_0x25c236(0xcc)]}),'type':'button','children':_0xdece36(B,{'className':_0x25c236(0x101)})})}):null;}function Re(_0x272ae1){var _0x3ed1ac=_0x1624f5;const {status:_0x143f53,coordinator:_0xe25b4d}=_0x272ae1;switch(_0x143f53){case h[_0x3ed1ac(0xc2)]:return _0xdece36(Pe,{'coordinator':_0xe25b4d});case h[_0x3ed1ac(0x14d)]:return _0xdece36(Ae,{'coordinator':_0xe25b4d});case h[_0x3ed1ac(0x150)]:return _0xdece36(Te,{'coordinator':_0xe25b4d});case h['OFFLINE']:return _0xdece36(Fe,{});case h[_0x3ed1ac(0xff)]:return _0xdece36($e,{'coordinator':_0xe25b4d});default:return null;}}function Pe(_0x53480b){var _0x53fd14=_0x1624f5;const {coordinator:_0x2ec6bb}=_0x53480b;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x53fd14(0x104),{'className':_0x53fd14(0x15d),'children':'Present\x20this\x20document'}),_0xdece36(_0x4fc5ad,{'onClick':()=>_0x2ec6bb[_0x53fd14(0x114)](),'children':_0x53fd14(0x136)})]});}function Ae(_0x5e491a){var _0x3dd88b=_0x1624f5;const {coordinator:_0x1d9faa}=_0x5e491a;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x3dd88b(0x104),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3dd88b(0x106)}),_0xdece36(_0x4fc5ad,{'onClick':()=>_0x1d9faa[_0x3dd88b(0x159)](),'children':_0x3dd88b(0x133)})]});}function Te(_0x3958de){var _0x200147=_0x1624f5;const {coordinator:_0x17bafa}=_0x3958de;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x200147(0x104),{'className':_0x200147(0x15d),'children':_0x200147(0xed)}),_0xdece36(_0x4fc5ad,{'variant':'text','onClick':()=>_0x17bafa[_0x200147(0x152)](),'children':_0x200147(0xe5)})]});}function $e(_0x1bdb65){var _0x36de1c=_0x1624f5;const {coordinator:_0x32c49f}=_0x1bdb65;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x36de1c(0x104),{'className':_0x36de1c(0x15d),'children':_0x36de1c(0xe6)}),_0xdece36(_0x4fc5ad,{'variant':_0x36de1c(0x147),'onClick':()=>_0x32c49f['stopPresenting'](),'children':_0x36de1c(0xef)})]});}function Fe(){var _0x1f408e=_0x1624f5;return _0xdece36(_0x4b0c6c,{'children':_0x1f408e(0xe0)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x4a5cd0,_0x56ec7d,_0x4a07a1,_0x43f51d)=>{for(var _0x312b66=_0x43f51d>0x1?void 0x0:_0x43f51d?He(_0x56ec7d,_0x4a07a1):_0x56ec7d,_0x5e2b17=_0x4a5cd0['length']-0x1,_0x70c671;_0x5e2b17>=0x0;_0x5e2b17--)(_0x70c671=_0x4a5cd0[_0x5e2b17])&&(_0x312b66=_0x70c671(_0x312b66)||_0x312b66);return _0x312b66;},T=(_0x48b01d,_0x52bae4)=>(_0x2c23b7,_0x16a0d9)=>_0x52bae4(_0x2c23b7,_0x16a0d9,_0x48b01d);let I=class extends _0x1b6eaf{constructor(_0xddf493,_0x3f325f){var _0x33290d=_0x1624f5;super(),this['_injector']=_0xddf493,this[_0x33290d(0xfb)]=_0x3f325f,this[_0x33290d(0x14b)]();}[_0x1624f5(0x14b)](){var _0x5c9790=_0x1624f5;this[_0x5c9790(0x10f)](this[_0x5c9790(0xfb)][_0x5c9790(0xd1)](_0x3bea30['HEADER_MENU'],()=>_0x2d8986(ye,this[_0x5c9790(0x15b)])));}};I=je([T(0x0,_0x1a16ba(_0x3396c5)),T(0x1,_0x11fbb0)],I);const Ue=_0x1624f5(0x14a),$={};var Ve=Object[_0x1624f5(0xe4)],Me=(_0x33a5c8,_0x43e9d5,_0x522230,_0x347814)=>{for(var _0x19318b=_0x347814>0x1?void 0x0:_0x347814?Ve(_0x43e9d5,_0x522230):_0x43e9d5,_0x3fd19a=_0x33a5c8['length']-0x1,_0x532104;_0x3fd19a>=0x0;_0x3fd19a--)(_0x532104=_0x33a5c8[_0x3fd19a])&&(_0x19318b=_0x532104(_0x19318b)||_0x19318b);return _0x19318b;},ke=(_0x47fe43,_0x1725ee)=>(_0x41c0ef,_0x4c4ea2)=>_0x1725ee(_0x41c0ef,_0x4c4ea2,_0x47fe43);let b=class extends _0x1b6eaf{constructor(_0x555ec0){var _0x5235b1=_0x1624f5;super(),this[_0x5235b1(0xf9)]=_0x555ec0,this[_0x5235b1(0x112)]();}[_0x1624f5(0x112)](){[_0x499661['id'],_0x2cab7e['id'],_0x22b854['id']]['forEach'](_0xc969b1=>{var _0x40478d=_0x5b64;this[_0x40478d(0x10f)](this[_0x40478d(0xf9)][_0x40478d(0x151)](_0xc969b1));});}};b=Me([ke(0x0,_0x1a16ba(L))],b);var Ge=Object[_0x1624f5(0x116)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x51de7b,_0x26fc2b,_0x1c97db)=>_0x26fc2b in _0x51de7b?Ge(_0x51de7b,_0x26fc2b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c97db}):_0x51de7b[_0x26fc2b]=_0x1c97db,Be=(_0x176f47,_0xb2d4a1,_0x1cf0de,_0x146465)=>{var _0x227497=_0x1624f5;for(var _0x317f9a=_0x146465>0x1?void 0x0:_0x146465?We(_0xb2d4a1,_0x1cf0de):_0xb2d4a1,_0xc19992=_0x176f47[_0x227497(0x119)]-0x1,_0x18f836;_0xc19992>=0x0;_0xc19992--)(_0x18f836=_0x176f47[_0xc19992])&&(_0x317f9a=_0x18f836(_0x317f9a)||_0x317f9a);return _0x317f9a;},F=(_0x5e3931,_0x319e11)=>(_0x3cd99a,_0x45525a)=>_0x319e11(_0x3cd99a,_0x45525a,_0x5e3931),J=(_0x43c658,_0x1d2691,_0x5d948d)=>Ye(_0x43c658,typeof _0x1d2691!=_0x1624f5(0x13f)?_0x1d2691+'':_0x1d2691,_0x5d948d);const Ze=_0x1624f5(0xc9);let O=class extends _0x421668{constructor(_0xaefa75=$,_0x5a671f,_0x7f3fb1){var _0x45ba57=_0x1624f5;super(),this[_0x45ba57(0x149)]=_0xaefa75,this[_0x45ba57(0x15b)]=_0x5a671f,this[_0x45ba57(0x16b)]=_0x7f3fb1;const {..._0x18c999}=_0xeb06ad({},$,this[_0x45ba57(0x149)]);this[_0x45ba57(0x16b)][_0x45ba57(0x166)](Ue,_0x18c999);}[_0x1624f5(0x12d)](){var _0x5f355=_0x1624f5;_0x31d9a6(this[_0x5f355(0x15b)],_0x50a260([[L],[m],[b],[I]],this['_config'][_0x5f355(0xcb)])),_0x58db42(this[_0x5f355(0x15b)],[[b]]);}[_0x1624f5(0xd9)](){var _0x11c14b=_0x1624f5;_0x58db42(this[_0x11c14b(0x15b)],[[I]]);}};J(O,'type',_0x3c6f33['UNIVER_UNKNOWN']),J(O,_0x1624f5(0x156),Ze),O=Be([_0x3283e7(_0x32ab4c),F(0x1,_0x1a16ba(_0x3396c5)),F(0x2,_0x375812)],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 _0x1624f5=_0x5b64;(function(_0x53b827,_0x1d7bf4){var _0xa9d55f=_0x5b64,_0x116499=_0x53b827();while(!![]){try{var _0x426e29=parseInt(_0xa9d55f(0x165))/0x1*(-parseInt(_0xa9d55f(0x13e))/0x2)+parseInt(_0xa9d55f(0x13c))/0x3+-parseInt(_0xa9d55f(0x102))/0x4+-parseInt(_0xa9d55f(0x100))/0x5+-parseInt(_0xa9d55f(0x144))/0x6+parseInt(_0xa9d55f(0x138))/0x7*(-parseInt(_0xa9d55f(0xf5))/0x8)+parseInt(_0xa9d55f(0x167))/0x9;if(_0x426e29===_0x1d7bf4)break;else _0x116499['push'](_0x116499['shift']());}catch(_0x512ef6){_0x116499['push'](_0x116499['shift']());}}}(_0x1dcd,0x1c9d5));var q=Object[_0x1624f5(0x116)],z=(_0x3800f7,_0x137fc7,_0x38e8f7)=>_0x137fc7 in _0x3800f7?q(_0x3800f7,_0x137fc7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38e8f7}):_0x3800f7[_0x137fc7]=_0x38e8f7,d=(_0x949d89,_0x498301,_0x32f874)=>z(_0x949d89,typeof _0x498301!=_0x1624f5(0x13f)?_0x498301+'':_0x498301,_0x32f874);import{Disposable as _0x1b6eaf,toDisposable as _0x28aff6,IUniverInstanceService as _0x13109b,Inject as _0x1a16ba,Injector as _0x3396c5,IConfigService as _0x375812,ICommandService as _0x4355bd,RxDisposable as _0x1d139d,UniverInstanceType as _0x3c6f33,DisposableCollection as _0x10ce83,CommandType as _0x47f736,DependentOn as _0x3283e7,Plugin as _0x421668,merge as _0xeb06ad,registerDependencies as _0x31d9a6,mergeOverrideWithDependencies as _0x50a260,touchDependencies as _0x58db42}from'@univerjs/core';import{useDependency as _0x5de910,useObservable as _0x47a6de,IUIPartsService as _0x11fbb0,BuiltInUIPart as _0x3bea30,connectInjector as _0x2d8986}from'@univerjs/ui';import{jsx as _0xdece36,jsxs as _0x297d42,Fragment as _0x4b0c6c}from'react/jsx-runtime';import{Dropdown as _0x3c7f31,clsx as _0x3914c5,Button as _0x4fc5ad}from'@univerjs/design';import{forwardRef as _0x3e5310,useRef as _0x338ee2,createElement as _0x4d1ec5,useState as _0x281766,useEffect as _0x37dd39}from'react';import{CollaborationEvent as _0xdbe7ec,parseProtocolChangeset as _0x378c0b}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5f1249,SessionStatus as _0x110f90,UniverCollaborationClientPlugin as _0x32ab4c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x1f6f57,SetWorksheetActiveOperation as _0x22b854}from'@univerjs/sheets';import{BehaviorSubject as _0x17f9f2,Subject as _0x257f72}from'rxjs';import{takeUntil as _0x55a56f,throttleTime as _0x5c958e}from'rxjs/operators';import{SetZoomRatioOperation as _0x499661,SetScrollOperation as _0x2cab7e}from'@univerjs/sheets-ui';var c=function(){var _0xdcd6fd=_0x1624f5;return c=Object[_0xdcd6fd(0x12b)]||function(_0x54a868){var _0x226f3e=_0xdcd6fd;for(var _0x10e957,_0x56e995=0x1,_0x144918=arguments[_0x226f3e(0x119)];_0x56e995<_0x144918;_0x56e995++){_0x10e957=arguments[_0x56e995];for(var _0x1ae8f7 in _0x10e957)Object[_0x226f3e(0xda)][_0x226f3e(0x13d)]['call'](_0x10e957,_0x1ae8f7)&&(_0x54a868[_0x1ae8f7]=_0x10e957[_0x1ae8f7]);}return _0x54a868;},c['apply'](this,arguments);},Oe=function(_0x235bd9,_0x2e98bf){var _0x3af152=_0x1624f5,_0x2f119f={};for(var _0x60bf77 in _0x235bd9)Object['prototype']['hasOwnProperty']['call'](_0x235bd9,_0x60bf77)&&_0x2e98bf[_0x3af152(0x105)](_0x60bf77)<0x0&&(_0x2f119f[_0x60bf77]=_0x235bd9[_0x60bf77]);if(_0x235bd9!=null&&typeof Object[_0x3af152(0x121)]=='function'){for(var _0x244ecb=0x0,_0x60bf77=Object['getOwnPropertySymbols'](_0x235bd9);_0x244ecb<_0x60bf77[_0x3af152(0x119)];_0x244ecb++)_0x2e98bf[_0x3af152(0x105)](_0x60bf77[_0x244ecb])<0x0&&Object[_0x3af152(0xda)][_0x3af152(0xde)][_0x3af152(0x126)](_0x235bd9,_0x60bf77[_0x244ecb])&&(_0x2f119f[_0x60bf77[_0x244ecb]]=_0x235bd9[_0x60bf77[_0x244ecb]]);}return _0x2f119f;},W=_0x3e5310(function(_0x185737,_0x3f7af5){var _0x4ccfac=_0x1624f5,_0xbbc366=_0x185737[_0x4ccfac(0xd4)],_0x2a8a15=_0x185737['id'],_0x4fcea8=_0x185737[_0x4ccfac(0x10c)],_0x5016b0=_0x185737['extend'],_0x57d59b=Oe(_0x185737,[_0x4ccfac(0xd4),'id','className','extend']),_0x476b9b=_0x4ccfac(0x11a)['concat'](_0x2a8a15,'\x20')[_0x4ccfac(0x11d)](_0x4fcea8||'')[_0x4ccfac(0x10d)](),_0x11dd71=_0x338ee2('_'[_0x4ccfac(0x11d)](Ne()));return Y(_0xbbc366,''[_0x4ccfac(0x11d)](_0x2a8a15),{'defIds':_0xbbc366['defIds'],'idSuffix':_0x11dd71[_0x4ccfac(0x141)]},c({'ref':_0x3f7af5,'className':_0x476b9b},_0x57d59b),_0x5016b0);});function Y(_0x43386a,_0x3c788a,_0xd065d5,_0x23bfcd,_0x1dda16){var _0x4c108b=_0x1624f5;return _0x4d1ec5(_0x43386a[_0x4c108b(0x118)],c(c({'key':_0x3c788a},Ee(_0x43386a,_0xd065d5,_0x1dda16)),_0x23bfcd),(we(_0x43386a,_0xd065d5)[_0x4c108b(0x15f)]||[])['map'](function(_0x244848,_0x719d53){var _0x7e3bbb=_0x4c108b;return Y(_0x244848,''['concat'](_0x3c788a,'-')[_0x7e3bbb(0x11d)](_0x43386a[_0x7e3bbb(0x118)],'-')['concat'](_0x719d53),_0xd065d5,void 0x0,_0x1dda16);}));}function Ee(_0x1e6fc6,_0x32cd02,_0x52b76a){var _0x4a04d5=_0x1624f5,_0x3833ed=c({},_0x1e6fc6[_0x4a04d5(0x12c)]);_0x52b76a!=null&&_0x52b76a[_0x4a04d5(0x132)]&&_0x3833ed['fill']===_0x4a04d5(0x132)&&(_0x3833ed[_0x4a04d5(0x129)]=_0x52b76a[_0x4a04d5(0x132)]),_0x1e6fc6[_0x4a04d5(0x118)]===_0x4a04d5(0x125)&&_0x3833ed['id']&&(_0x3833ed['id']=_0x3833ed['id']+_0x32cd02[_0x4a04d5(0x11b)]),Object['entries'](_0x3833ed)['forEach'](function(_0x28fd02){var _0x18dd81=_0x4a04d5,_0x2bdc1d=_0x28fd02[0x0],_0x37b000=_0x28fd02[0x1];_0x2bdc1d===_0x18dd81(0x125)&&typeof _0x37b000==_0x18dd81(0xd3)&&(_0x3833ed[_0x2bdc1d]=_0x37b000['replace'](/url\(#(.*)\)/,_0x18dd81(0x111)[_0x18dd81(0x11d)](_0x32cd02[_0x18dd81(0x11b)],')')));});var _0x51b7dc=_0x32cd02[_0x4a04d5(0xca)];return!_0x51b7dc||_0x51b7dc[_0x4a04d5(0x119)]===0x0||(_0x1e6fc6['tag']==='use'&&_0x3833ed[_0x4a04d5(0xf3)]&&(_0x3833ed[_0x4a04d5(0xf3)]=_0x3833ed[_0x4a04d5(0xf3)]+_0x32cd02[_0x4a04d5(0x11b)]),Object[_0x4a04d5(0x157)](_0x3833ed)['forEach'](function(_0x286606){var _0x387258=_0x4a04d5,_0x1e46ae=_0x286606[0x0],_0x434716=_0x286606[0x1];typeof _0x434716=='string'&&(_0x3833ed[_0x1e46ae]=_0x434716[_0x387258(0xf4)](/url\(#(.*)\)/,'url(#$1'[_0x387258(0x11d)](_0x32cd02[_0x387258(0x11b)],')')));})),_0x3833ed;}function we(_0x21db93,_0x354467){var _0x432555=_0x1624f5,_0x183735,_0x4b5562=_0x354467[_0x432555(0xca)];return!_0x4b5562||_0x4b5562['length']===0x0?_0x21db93:_0x21db93[_0x432555(0x118)]===_0x432555(0x163)&&(!((_0x183735=_0x21db93[_0x432555(0x15f)])===null||_0x183735===void 0x0)&&_0x183735[_0x432555(0x119)])?c(c({},_0x21db93),{'children':_0x21db93[_0x432555(0x15f)][_0x432555(0x108)](function(_0x5d77f4){var _0x85b954=_0x432555;return typeof _0x5d77f4[_0x85b954(0x12c)]['id']=='string'&&_0x4b5562&&_0x4b5562[_0x85b954(0xcf)](_0x5d77f4[_0x85b954(0x12c)]['id'])?c(c({},_0x5d77f4),{'attrs':c(c({},_0x5d77f4['attrs']),{'id':_0x5d77f4['attrs']['id']+_0x354467[_0x85b954(0x11b)]})}):_0x5d77f4;})}):_0x21db93;}function Ne(){var _0x997a0b=_0x1624f5;return Math[_0x997a0b(0x14f)]()['toString'](0x24)[_0x997a0b(0x158)](0x2,0x8);}W['displayName']='UniverIcon';var Ce={'tag':_0x1624f5(0xcd),'attrs':{'xmlns':_0x1624f5(0x140),'fill':_0x1624f5(0x12e),'viewBox':_0x1624f5(0x115),'width':_0x1624f5(0xc5),'height':_0x1624f5(0xc5)},'children':[{'tag':_0x1624f5(0xdc),'attrs':{'fill':_0x1624f5(0xbe),'d':_0x1624f5(0xf6)}},{'tag':_0x1624f5(0xdc),'attrs':{'fill':_0x1624f5(0xbe),'d':_0x1624f5(0x154),'fillRule':_0x1624f5(0x164),'clipRule':_0x1624f5(0x164)}}]},B=_0x3e5310(function(_0x1ead5a,_0x4e470e){var _0x3904a5=_0x1624f5;return _0x4d1ec5(W,Object[_0x3904a5(0x12b)]({},_0x1ead5a,{'id':_0x3904a5(0x148),'ref':_0x4e470e,'icon':Ce}));});B['displayName']=_0x1624f5(0x16a);class L extends _0x1b6eaf{constructor(){var _0x3e2b51=_0x1624f5;super(...arguments),d(this,_0x3e2b51(0xe8),new Set()),d(this,'_reporters',new Set());}[_0x1624f5(0x151)](_0x2207a7){var _0x431a31=_0x1624f5;return this[_0x431a31(0xe8)]['add'](_0x2207a7),_0x28aff6(()=>this[_0x431a31(0xe8)][_0x431a31(0xdf)](_0x2207a7));}[_0x1624f5(0xdd)](_0x33bc1f){var _0x42553d=_0x1624f5;return this[_0x42553d(0xc1)]['add'](_0x33bc1f),_0x28aff6(()=>this['_reporters'][_0x42553d(0xdf)](_0x33bc1f));}['shouldShareOperation'](_0xdd9c42){var _0x5e0242=_0x1624f5;return this[_0x5e0242(0xe8)]['has'](_0xdd9c42);}[_0x1624f5(0x134)](_0x2c1589){var _0x314727=_0x1624f5;return Array[_0x314727(0x122)](this[_0x314727(0xc1)])[_0x314727(0x108)](_0x43de8a=>_0x43de8a(_0x2c1589));}}function _0x1dcd(){var _0x28513a=['M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_OPERATION','_unitID','_liveShareService','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_uiPartsService','_handleOffline','stringify','next','PRESENTING','74140iuoDyB','univer-size-4','406860BLEGRW','getTypeOfUnitAdded$','div','indexOf','You\x27re\x20following\x20the\x20presenter','set','map','_startFollowing','_commandDisposable','_collabSession','className','trim','_stopPresenting','disposeWithMe','LIVESHARE_TERMINATE','url(#$1','_init','ONLINE','tryStartPresenting','0\x200\x2017\x2017','defineProperty','unsubscribe','tag','length','univerjs-icon\x20univerjs-icon-','idSuffix','_commandService','concat','_presenter','_startLiveShareCoordinator','presenter','getOwnPropertySymbols','from','OPERATION','pipe','mask','call','getCurrentTypeOfUnit$','memberID','fill','presenting','assign','attrs','onStarting','none','createInstance','getMemberID','onCommandExecuted','colorChannel1','Stop\x20following','getInitialStates','values','Start','UNIVER_SHEET','325913EimVJC','_stopFollowing','end','type','255066kFZGnw','hasOwnProperty','194EwgVdm','symbol','http://www.w3.org/2000/svg','current','send','complete','607110AyLOKQ','offline','_collabSessionService','default','live-share-icon','_config','live-share.config','_mountLiveShare','dispose$','FOLLOWING','_entities','random','NOT_FOLLOWING','registerSharedOperation','startFollowing','_handleNewHost','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','_status$','pluginName','entries','substring','stopFollowing','_fetchOperations','_injector','_handleNewChangeSets','univer-mb-3\x20univer-w-full\x20univer-text-sm','init','children','NEW_CHANGESETS','add','_beIdle','defs','evenodd','463AytIhM','setConfig','3072429zyQfNQ','following','getUnitId','LiveShareIcon','_configService','mutations','currentColor','dispose','has','_reporters','IDLE','asObservable','params','1em','forEach','getLiveShareCoordinator','parse','UNIVER_LIVE_SHARE_PLUGIN','defIds','override','OFFLINE','svg','_univerInstanceService','includes','executeCommand','registerComponent','_startPresenting','string','icon','subscribe','find','sheet','LIVESHARE_NEW_HOST','onRendered','prototype','LIVESHARE_REQUEST_HOST','path','registerInitialStateReporter','propertyIsEnumerable','delete','You\x27are\x20offline.','then','_handleOnline','not-following','getOwnPropertyDescriptor','Start\x20following','You\x27re\x20presenting\x20the\x20document','LIVESHARE_FETCH_OPERATIONS','_sharedOperations','clear','getConfig','event$','data','You\x27re\x20not\x20following\x20the\x20presenter','_status','Stop\x20presenting','idle','get','_handleTerminate','xlink:href','replace','8werfDF'];_0x1dcd=function(){return _0x28513a;};return _0x1dcd();}var De=Object['getOwnPropertyDescriptor'],Z=(_0x5e1ae9,_0x3d12fc,_0x14520e,_0x5c471f)=>{var _0x1a43e8=_0x1624f5;for(var _0x1abf9c=_0x5c471f>0x1?void 0x0:_0x5c471f?De(_0x3d12fc,_0x14520e):_0x3d12fc,_0x36eb2b=_0x5e1ae9[_0x1a43e8(0x119)]-0x1,_0x327f1f;_0x36eb2b>=0x0;_0x36eb2b--)(_0x327f1f=_0x5e1ae9[_0x36eb2b])&&(_0x1abf9c=_0x327f1f(_0x1abf9c)||_0x1abf9c);return _0x1abf9c;},f=(_0x497b82,_0xd96d94)=>(_0x235d26,_0x24c018)=>_0xd96d94(_0x235d26,_0x24c018,_0x497b82);let m=class extends _0x1d139d{constructor(_0x4ea6cd,_0x21dacf,_0x28139b){var _0x3bdab9=_0x1624f5;super(),d(this,'_entities',new Map()),(this[_0x3bdab9(0xce)]=_0x4ea6cd,this[_0x3bdab9(0x15b)]=_0x21dacf,this['_collabSessionService']=_0x28139b,this[_0x3bdab9(0x112)]());}async[_0x1624f5(0xc7)](_0x29e2e9){var _0x3bc832=_0x1624f5;return this[_0x3bc832(0x14e)][_0x3bc832(0xc0)](_0x29e2e9)||await this['_startLiveShareCoordinator'](_0x29e2e9),this[_0x3bc832(0x14e)][_0x3bc832(0xf1)](_0x29e2e9);}[_0x1624f5(0x112)](){var _0x37697d=_0x1624f5;this[_0x37697d(0xce)][_0x37697d(0x103)](_0x3c6f33[_0x37697d(0x137)])[_0x37697d(0x124)](_0x55a56f(this['dispose$']))[_0x37697d(0xd5)](async _0x368049=>{var _0x11ca06=_0x37697d;const _0x27d0d1=_0x368049[_0x11ca06(0x169)]();this['_entities'][_0x11ca06(0xc0)](_0x27d0d1)||this[_0x11ca06(0x11f)](_0x27d0d1);}),this[_0x37697d(0xce)]['getTypeOfUnitDisposed$'](_0x3c6f33[_0x37697d(0x137)])[_0x37697d(0x124)](_0x55a56f(this['dispose$']))['subscribe'](_0x8448ba=>{var _0x48842d=_0x37697d;const _0x1bc052=_0x8448ba[_0x48842d(0x169)](),_0x14fa43=this[_0x48842d(0x14e)]['get'](_0x1bc052);_0x14fa43==null||_0x14fa43[_0x48842d(0xbf)]();});}async['_startLiveShareCoordinator'](_0x2feeec){var _0x440e31=_0x1624f5;const _0x26c6b6=await this[_0x440e31(0x146)]['requireSession'](_0x2feeec),_0x328bd1=this[_0x440e31(0x15b)][_0x440e31(0x12f)](C,_0x2feeec,_0x26c6b6);return _0x328bd1[_0x440e31(0x15e)](),this['_entities'][_0x440e31(0x107)](_0x2feeec,_0x328bd1),_0x328bd1;}};m=Z([f(0x0,_0x13109b),f(0x1,_0x1a16ba(_0x3396c5)),f(0x2,_0x1a16ba(_0x5f1249))],m);var h=(_0x1a6731=>(_0x1a6731[_0x1624f5(0xcc)]=_0x1624f5(0x145),_0x1a6731[_0x1624f5(0xc2)]='idle',_0x1a6731[_0x1624f5(0x14d)]=_0x1624f5(0x168),_0x1a6731[_0x1624f5(0x150)]=_0x1624f5(0xe3),_0x1a6731[_0x1624f5(0xff)]=_0x1624f5(0x12a),_0x1a6731))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x1d139d{constructor(_0x3a6f96,_0x4b1346,_0x4b25c1,_0x964c42,_0x12700f){var _0x1f5e0d=_0x1624f5;super(),d(this,_0x1f5e0d(0x155),new _0x17f9f2(_0x1f5e0d(0xf0))),d(this,'status$',this[_0x1f5e0d(0x155)][_0x1f5e0d(0xc3)]()),d(this,'_init',!0x1),d(this,_0x1f5e0d(0x10a),null),d(this,_0x1f5e0d(0x11e),null),(this[_0x1f5e0d(0xf8)]=_0x3a6f96,this[_0x1f5e0d(0x10b)]=_0x4b1346,this['_configService']=_0x4b25c1,this['_liveShareService']=_0x964c42,this[_0x1f5e0d(0x11c)]=_0x12700f);}get[_0x1624f5(0xee)](){var _0x1a24f2=_0x1624f5;return this[_0x1a24f2(0x155)]['getValue']();}[_0x1624f5(0xbf)](){var _0x3632f3=_0x1624f5,_0x230cff;(_0x230cff=this['_commandDisposable'])==null||_0x230cff[_0x3632f3(0xbf)](),this['_status$'][_0x3632f3(0xfe)](_0x3632f3(0xf0)),this[_0x3632f3(0x155)][_0x3632f3(0x143)]();}['init'](){var _0x5a030c=_0x1624f5;this[_0x5a030c(0x112)]||(this['_init']=!0x0,this[_0x5a030c(0x10b)]['sessionStatus$'][_0x5a030c(0x124)](_0x55a56f(this[_0x5a030c(0x14c)]))[_0x5a030c(0xd5)](_0x119102=>{var _0x100286=_0x5a030c;switch(_0x119102){case _0x110f90['OFFLINE']:this[_0x100286(0xfc)]();break;case _0x110f90[_0x100286(0x113)]:this['_handleOnline']();break;}}),this[_0x5a030c(0x10b)][_0x5a030c(0xeb)]['pipe'](_0x55a56f(this[_0x5a030c(0x14c)]))[_0x5a030c(0xd5)](_0x2249cf=>{var _0xe11e7a=_0x5a030c;const {eventID:_0x15cb95}=_0x2249cf;switch(_0x15cb95){case _0xdbe7ec[_0xe11e7a(0xd8)]:this[_0xe11e7a(0x153)](_0x2249cf);break;case _0xdbe7ec['LIVESHARE_OPERATION']:this['_handleOperation'](_0x2249cf);break;case _0xdbe7ec[_0xe11e7a(0x110)]:this[_0xe11e7a(0xf2)]();break;case _0xdbe7ec[_0xe11e7a(0x160)]:this[_0xe11e7a(0x15c)](_0x2249cf);break;}}));}[_0x1624f5(0x114)](){var _0x2aa600=_0x1624f5;this[_0x2aa600(0x10b)][_0x2aa600(0x142)]({'eventID':_0xdbe7ec[_0x2aa600(0xdb)],'data':{'unitID':this[_0x2aa600(0xf8)],'userID':this[_0x2aa600(0x10b)][_0x2aa600(0x130)]()}},this[_0x2aa600(0xf8)]);}['stopPresenting'](){var _0x34c0ef=_0x1624f5;this[_0x34c0ef(0xee)]===_0x34c0ef(0x12a)&&(this[_0x34c0ef(0x155)][_0x34c0ef(0xfe)](_0x34c0ef(0xf0)),this[_0x34c0ef(0x10b)][_0x34c0ef(0x142)]({'eventID':_0xdbe7ec['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x34c0ef(0xf8)]}},this[_0x34c0ef(0xf8)]));}[_0x1624f5(0x152)](){var _0x5b78dd=_0x1624f5;this[_0x5b78dd(0xee)]===_0x5b78dd(0xe3)&&(this[_0x5b78dd(0x155)][_0x5b78dd(0xfe)](_0x5b78dd(0x168)),this[_0x5b78dd(0x109)]());}[_0x1624f5(0x159)](){var _0x2e17e8=_0x1624f5;this[_0x2e17e8(0xee)]===_0x2e17e8(0x168)&&this[_0x2e17e8(0x139)]();}[_0x1624f5(0x153)](_0x199c9f){var _0x5de5b2=_0x1624f5;const {presenter:_0xc25ece}=_0x199c9f[_0x5de5b2(0xec)],_0x2a52ec=this['_collabSession'][_0x5de5b2(0x130)]();this[_0x5de5b2(0x11e)]=_0xc25ece,_0xc25ece===_0x2a52ec?(this[_0x5de5b2(0x139)](),this[_0x5de5b2(0xd2)]()):this[_0x5de5b2(0xee)]!==_0x5de5b2(0xe3)&&(this[_0x5de5b2(0x10e)](),this[_0x5de5b2(0x109)]());}[_0x1624f5(0x15a)](){var _0x5a89dc=_0x1624f5;const _0x292f93={'eventID':_0xdbe7ec[_0x5a89dc(0xe7)]};this['_collabSession'][_0x5a89dc(0x142)](_0x292f93,this['_unitID']);}[_0x1624f5(0xf2)](){var _0xbfeedb=_0x1624f5;this[_0xbfeedb(0x11e)]=null,this['_status']!==_0xbfeedb(0x12a)&&this[_0xbfeedb(0x162)]();}[_0x1624f5(0x15c)](_0x2c0466){var _0x3a5d73=_0x1624f5;if(this[_0x3a5d73(0xee)]===_0x3a5d73(0x168)&&this[_0x3a5d73(0x11e)]===_0x2c0466[_0x3a5d73(0xec)][_0x3a5d73(0x128)]){const _0x3e108c=_0x378c0b(_0x2c0466[_0x3a5d73(0xec)])[_0x3a5d73(0xbd)]['reverse']()[_0x3a5d73(0xd6)](_0x705fd1=>_0x705fd1['id']===_0x1f6f57['id']);if(_0x3e108c){const _0x11e563=_0x3e108c[_0x3a5d73(0xc4)]['unitId'],_0x407fb6=_0x3e108c[_0x3a5d73(0xc4)][_0x3a5d73(0xd7)]['id'];setTimeout(()=>{var _0x1fc93d=_0x3a5d73;this['_commandService'][_0x1fc93d(0xd0)](_0x22b854['id'],{'unitId':_0x11e563,'subUnitId':_0x407fb6},{'fromCollab':!0x0});});}}}[_0x1624f5(0xd2)](){var _0x34e469=_0x1624f5;this[_0x34e469(0x155)]['next']('presenting');const _0x5f065f=new Map(),_0x5a2552=this[_0x34e469(0x10a)]=new _0x10ce83();_0x5a2552[_0x34e469(0x161)](_0x28aff6(()=>{var _0x4fd7bb=_0x34e469;_0x5f065f['forEach'](_0xb46e94=>_0xb46e94[_0x4fd7bb(0x143)]()),_0x5f065f[_0x4fd7bb(0xe9)]();})),_0x5a2552[_0x34e469(0x161)](this[_0x34e469(0x11c)][_0x34e469(0x131)](_0x3a5256=>{var _0x46a5da=_0x34e469,_0x373615;if(_0x3a5256[_0x46a5da(0x13b)]!==_0x47f736[_0x46a5da(0x123)]||!this[_0x46a5da(0xf9)]['shouldShareOperation'](_0x3a5256['id']))return;const {id:_0xefdcfb}=_0x3a5256;let _0x56eba9;_0x5f065f[_0x46a5da(0xc0)](_0xefdcfb)?_0x56eba9=_0x5f065f['get'](_0xefdcfb):(_0x56eba9=new _0x257f72(),_0x5f065f[_0x46a5da(0x107)](_0xefdcfb,_0x56eba9),_0x56eba9[_0x46a5da(0x124)](_0x5c958e((_0x373615=this['_configService'][_0x46a5da(0xea)](xe))!=null?_0x373615:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x46a5da(0xd5)](_0xb92a00=>{var _0x19c24e=_0x46a5da;this[_0x19c24e(0x10b)][_0x19c24e(0x142)]({'eventID':_0xdbe7ec[_0x19c24e(0xf7)],'data':{'unitID':this[_0x19c24e(0xf8)],'operations':{[_0xb92a00['id']]:{'id':_0xb92a00['id'],'params':JSON[_0x19c24e(0xfd)](_0xb92a00[_0x19c24e(0xc4)])}}}},this[_0x19c24e(0xf8)]);})),_0x56eba9[_0x46a5da(0xfe)](_0x3a5256);})),this[_0x34e469(0xf9)][_0x34e469(0x134)](this[_0x34e469(0xf8)])[_0x34e469(0xc6)](_0x27b8ad=>this[_0x34e469(0x10b)]['send']({'eventID':_0xdbe7ec[_0x34e469(0xf7)],'data':{'unitID':this['_unitID'],'operations':{[_0x27b8ad['id']]:{'id':_0x27b8ad['id'],'params':JSON['stringify'](_0x27b8ad[_0x34e469(0xc4)])}}}},this[_0x34e469(0xf8)]));}[_0x1624f5(0x10e)](){var _0x31b380=_0x1624f5,_0x3326ac;this[_0x31b380(0x155)][_0x31b380(0xfe)](_0x31b380(0xf0)),(_0x3326ac=this[_0x31b380(0x10a)])==null||_0x3326ac[_0x31b380(0xbf)](),this[_0x31b380(0x10a)]=null;}['_startFollowing'](){var _0x4f8a4b=_0x1624f5,_0x19c327;(_0x19c327=this[_0x4f8a4b(0x10a)])==null||_0x19c327[_0x4f8a4b(0xbf)](),this[_0x4f8a4b(0x155)]['next'](_0x4f8a4b(0x168));}[_0x1624f5(0x162)](){var _0x2e1604=_0x1624f5,_0xb02f06;this[_0x2e1604(0x155)][_0x2e1604(0xfe)](_0x2e1604(0xf0)),(_0xb02f06=this[_0x2e1604(0x10a)])==null||_0xb02f06[_0x2e1604(0xbf)](),this[_0x2e1604(0x10a)]=null;}[_0x1624f5(0x139)](){var _0x3a4ba1=_0x1624f5,_0x3d454f;this[_0x3a4ba1(0x155)][_0x3a4ba1(0xfe)](_0x3a4ba1(0xe3)),(_0x3d454f=this[_0x3a4ba1(0x10a)])==null||_0x3d454f[_0x3a4ba1(0xbf)]();}['_handleOperation'](_0x316364){var _0x49ac78=_0x1624f5;if([_0x49ac78(0x12a),_0x49ac78(0xe3),'offline'][_0x49ac78(0xcf)](this[_0x49ac78(0xee)])||!_0x316364[_0x49ac78(0xec)][_0x49ac78(0x120)]||_0x316364[_0x49ac78(0xec)][_0x49ac78(0x120)]===this[_0x49ac78(0x10b)][_0x49ac78(0x130)]())return;this[_0x49ac78(0xee)]===_0x49ac78(0xf0)&&this[_0x49ac78(0x109)]();const _0x2b6337=_0x316364['data']['operations'];Object[_0x49ac78(0x135)](_0x2b6337)['forEach'](_0x137ec1=>{var _0x258367=_0x49ac78;this[_0x258367(0x11c)][_0x258367(0xd0)](_0x137ec1['id'],_0x137ec1['params']?JSON[_0x258367(0xc8)](_0x137ec1['params']):null,{'fromCollab':!0x0});});}[_0x1624f5(0xfc)](){var _0x18b554=_0x1624f5,_0x197e89;this[_0x18b554(0x155)][_0x18b554(0xfe)](_0x18b554(0x145)),(_0x197e89=this['_commandDisposable'])==null||_0x197e89[_0x18b554(0xbf)]();}[_0x1624f5(0xe2)](){var _0x395dfc=_0x1624f5;this[_0x395dfc(0x155)][_0x395dfc(0xfe)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x375812),f(0x3,_0x1a16ba(L)),f(0x4,_0x4355bd)],C);function _0x5b64(_0x75cad4,_0x27882b){var _0x1dcd45=_0x1dcd();return _0x5b64=function(_0x5b64a5,_0x3f906e){_0x5b64a5=_0x5b64a5-0xbd;var _0x136e16=_0x1dcd45[_0x5b64a5];return _0x136e16;},_0x5b64(_0x75cad4,_0x27882b);}function ye(){var _0x25c236=_0x1624f5;const _0xa57749=_0x5de910(m),_0x1a69d0=_0x5de910(_0x13109b),_0x5f2013=_0x47a6de(()=>_0x1a69d0[_0x25c236(0x127)](_0x3c6f33['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x410d44,_0x892b4d]=_0x281766(null),[_0x3f177d,_0x4620a8]=_0x281766(h['IDLE']),_0x456296=_0x338ee2(null);return _0x37dd39(()=>(_0x5f2013&&_0xa57749[_0x25c236(0xc7)](_0x5f2013[_0x25c236(0x169)]())[_0x25c236(0xe1)](_0x2eab0a=>{var _0x352367=_0x25c236;_0x892b4d(_0x2eab0a),_0x456296[_0x352367(0x141)]=_0x2eab0a['status$'][_0x352367(0xd5)](_0x1471c5=>{_0x4620a8(_0x1471c5);});}),()=>{var _0x1d0b5e=_0x25c236,_0x2f5034;(_0x2f5034=_0x456296['current'])==null||_0x2f5034[_0x1d0b5e(0x117)](),_0x456296['current']=null;}),[_0x5f2013,_0xa57749]),_0x410d44?_0xdece36(_0x3c7f31,{'align':_0x25c236(0x13a),'disabled':_0x3f177d===h[_0x25c236(0xcc)],'className':_0x25c236(0xfa),'overlay':_0xdece36(Re,{'status':_0x3f177d,'coordinator':_0x410d44}),'children':_0xdece36('button',{'className':_0x3914c5('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3f177d===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f177d!==h[_0x25c236(0xcc)]}),'type':'button','children':_0xdece36(B,{'className':_0x25c236(0x101)})})}):null;}function Re(_0x272ae1){var _0x3ed1ac=_0x1624f5;const {status:_0x143f53,coordinator:_0xe25b4d}=_0x272ae1;switch(_0x143f53){case h[_0x3ed1ac(0xc2)]:return _0xdece36(Pe,{'coordinator':_0xe25b4d});case h[_0x3ed1ac(0x14d)]:return _0xdece36(Ae,{'coordinator':_0xe25b4d});case h[_0x3ed1ac(0x150)]:return _0xdece36(Te,{'coordinator':_0xe25b4d});case h['OFFLINE']:return _0xdece36(Fe,{});case h[_0x3ed1ac(0xff)]:return _0xdece36($e,{'coordinator':_0xe25b4d});default:return null;}}function Pe(_0x53480b){var _0x53fd14=_0x1624f5;const {coordinator:_0x2ec6bb}=_0x53480b;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x53fd14(0x104),{'className':_0x53fd14(0x15d),'children':'Present\x20this\x20document'}),_0xdece36(_0x4fc5ad,{'onClick':()=>_0x2ec6bb[_0x53fd14(0x114)](),'children':_0x53fd14(0x136)})]});}function Ae(_0x5e491a){var _0x3dd88b=_0x1624f5;const {coordinator:_0x1d9faa}=_0x5e491a;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x3dd88b(0x104),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3dd88b(0x106)}),_0xdece36(_0x4fc5ad,{'onClick':()=>_0x1d9faa[_0x3dd88b(0x159)](),'children':_0x3dd88b(0x133)})]});}function Te(_0x3958de){var _0x200147=_0x1624f5;const {coordinator:_0x17bafa}=_0x3958de;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x200147(0x104),{'className':_0x200147(0x15d),'children':_0x200147(0xed)}),_0xdece36(_0x4fc5ad,{'variant':'text','onClick':()=>_0x17bafa[_0x200147(0x152)](),'children':_0x200147(0xe5)})]});}function $e(_0x1bdb65){var _0x36de1c=_0x1624f5;const {coordinator:_0x32c49f}=_0x1bdb65;return _0x297d42(_0x4b0c6c,{'children':[_0xdece36(_0x36de1c(0x104),{'className':_0x36de1c(0x15d),'children':_0x36de1c(0xe6)}),_0xdece36(_0x4fc5ad,{'variant':_0x36de1c(0x147),'onClick':()=>_0x32c49f['stopPresenting'](),'children':_0x36de1c(0xef)})]});}function Fe(){var _0x1f408e=_0x1624f5;return _0xdece36(_0x4b0c6c,{'children':_0x1f408e(0xe0)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x4a5cd0,_0x56ec7d,_0x4a07a1,_0x43f51d)=>{for(var _0x312b66=_0x43f51d>0x1?void 0x0:_0x43f51d?He(_0x56ec7d,_0x4a07a1):_0x56ec7d,_0x5e2b17=_0x4a5cd0['length']-0x1,_0x70c671;_0x5e2b17>=0x0;_0x5e2b17--)(_0x70c671=_0x4a5cd0[_0x5e2b17])&&(_0x312b66=_0x70c671(_0x312b66)||_0x312b66);return _0x312b66;},T=(_0x48b01d,_0x52bae4)=>(_0x2c23b7,_0x16a0d9)=>_0x52bae4(_0x2c23b7,_0x16a0d9,_0x48b01d);let I=class extends _0x1b6eaf{constructor(_0xddf493,_0x3f325f){var _0x33290d=_0x1624f5;super(),this['_injector']=_0xddf493,this[_0x33290d(0xfb)]=_0x3f325f,this[_0x33290d(0x14b)]();}[_0x1624f5(0x14b)](){var _0x5c9790=_0x1624f5;this[_0x5c9790(0x10f)](this[_0x5c9790(0xfb)][_0x5c9790(0xd1)](_0x3bea30['HEADER_MENU'],()=>_0x2d8986(ye,this[_0x5c9790(0x15b)])));}};I=je([T(0x0,_0x1a16ba(_0x3396c5)),T(0x1,_0x11fbb0)],I);const Ue=_0x1624f5(0x14a),$={};var Ve=Object[_0x1624f5(0xe4)],Me=(_0x33a5c8,_0x43e9d5,_0x522230,_0x347814)=>{for(var _0x19318b=_0x347814>0x1?void 0x0:_0x347814?Ve(_0x43e9d5,_0x522230):_0x43e9d5,_0x3fd19a=_0x33a5c8['length']-0x1,_0x532104;_0x3fd19a>=0x0;_0x3fd19a--)(_0x532104=_0x33a5c8[_0x3fd19a])&&(_0x19318b=_0x532104(_0x19318b)||_0x19318b);return _0x19318b;},ke=(_0x47fe43,_0x1725ee)=>(_0x41c0ef,_0x4c4ea2)=>_0x1725ee(_0x41c0ef,_0x4c4ea2,_0x47fe43);let b=class extends _0x1b6eaf{constructor(_0x555ec0){var _0x5235b1=_0x1624f5;super(),this[_0x5235b1(0xf9)]=_0x555ec0,this[_0x5235b1(0x112)]();}[_0x1624f5(0x112)](){[_0x499661['id'],_0x2cab7e['id'],_0x22b854['id']]['forEach'](_0xc969b1=>{var _0x40478d=_0x5b64;this[_0x40478d(0x10f)](this[_0x40478d(0xf9)][_0x40478d(0x151)](_0xc969b1));});}};b=Me([ke(0x0,_0x1a16ba(L))],b);var Ge=Object[_0x1624f5(0x116)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x51de7b,_0x26fc2b,_0x1c97db)=>_0x26fc2b in _0x51de7b?Ge(_0x51de7b,_0x26fc2b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c97db}):_0x51de7b[_0x26fc2b]=_0x1c97db,Be=(_0x176f47,_0xb2d4a1,_0x1cf0de,_0x146465)=>{var _0x227497=_0x1624f5;for(var _0x317f9a=_0x146465>0x1?void 0x0:_0x146465?We(_0xb2d4a1,_0x1cf0de):_0xb2d4a1,_0xc19992=_0x176f47[_0x227497(0x119)]-0x1,_0x18f836;_0xc19992>=0x0;_0xc19992--)(_0x18f836=_0x176f47[_0xc19992])&&(_0x317f9a=_0x18f836(_0x317f9a)||_0x317f9a);return _0x317f9a;},F=(_0x5e3931,_0x319e11)=>(_0x3cd99a,_0x45525a)=>_0x319e11(_0x3cd99a,_0x45525a,_0x5e3931),J=(_0x43c658,_0x1d2691,_0x5d948d)=>Ye(_0x43c658,typeof _0x1d2691!=_0x1624f5(0x13f)?_0x1d2691+'':_0x1d2691,_0x5d948d);const Ze=_0x1624f5(0xc9);let O=class extends _0x421668{constructor(_0xaefa75=$,_0x5a671f,_0x7f3fb1){var _0x45ba57=_0x1624f5;super(),this[_0x45ba57(0x149)]=_0xaefa75,this[_0x45ba57(0x15b)]=_0x5a671f,this[_0x45ba57(0x16b)]=_0x7f3fb1;const {..._0x18c999}=_0xeb06ad({},$,this[_0x45ba57(0x149)]);this[_0x45ba57(0x16b)][_0x45ba57(0x166)](Ue,_0x18c999);}[_0x1624f5(0x12d)](){var _0x5f355=_0x1624f5;_0x31d9a6(this[_0x5f355(0x15b)],_0x50a260([[L],[m],[b],[I]],this['_config'][_0x5f355(0xcb)])),_0x58db42(this[_0x5f355(0x15b)],[[b]]);}[_0x1624f5(0xd9)](){var _0x11c14b=_0x1624f5;_0x58db42(this[_0x11c14b(0x15b)],[[I]]);}};J(O,'type',_0x3c6f33['UNIVER_UNKNOWN']),J(O,_0x1624f5(0x156),Ze),O=Be([_0x3283e7(_0x32ab4c),F(0x1,_0x1a16ba(_0x3396c5)),F(0x2,_0x375812)],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 _0x5d39(_0x35a7a5,_0x5df52d){var _0x50ffee=_0x50ff();return _0x5d39=function(_0x5d3974,_0x205f67){_0x5d3974=_0x5d3974-0x1c4;var _0x17ee30=_0x50ffee[_0x5d3974];return _0x17ee30;},_0x5d39(_0x35a7a5,_0x5df52d);}function _0x50ff(){var _0x18f121=['merge','9630960awPFhI','univer-mb-3\x20univer-w-full\x20univer-text-sm','set','LIVESHARE_FETCH_OPERATIONS','IDLE','react/jsx-runtime','useEffect','button','unitId','_collabSession','live-share.config','executeCommand','end','_handleNewChangeSets','touchDependencies','_configService','trim','next','evenodd','LiveShareIcon','UniverCollaborationClientPlugin','LIVESHARE_NEW_HOST','HEADER_MENU','stopFollowing','Plugin','_stopFollowing','_injector','colorChannel1','call','parseProtocolChangeset','FOLLOWING','UNIVER_LIVE_SHARE_PLUGIN','getMemberID','_presenter','getUnitId','reverse','dispose','children','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','xlink:href','You\x27re\x20not\x20following\x20the\x20presenter','LiveShareController','@univerjs/sheets-ui','shouldShareOperation','getTypeOfUnitDisposed$','defs','@univerjs/ui','throttleTime','_univerInstanceService','22uHbUGk','BuiltInUIPart','1008QZzpME','disposeWithMe','exports','forwardRef','_commandDisposable','useDependency','get','13318083QCiLCf','DesktopLiveShareController','Disposable','univerjs-icon\x20univerjs-icon-','requireSession','use','event$','mergeOverrideWithDependencies','LiveShareStatus','jsx','icon','SetZoomRatioOperation','_status','react','_handleOffline','jsxs','You\x27are\x20offline.','_fetchOperations','offline','override','CollaborationSessionService','function','OFFLINE','1121045NSiejl','text','string','NOT_FOLLOWING','forEach','map','getOwnPropertyDescriptor','status$','IUIPartsService','stringify','not-following','_reporters','559007AmNvSv','InsertSheetMutation','IUniverInstanceService','getLiveShareCoordinator','data','connectInjector','has','fill','LIVESHARE_TERMINATE','UniverProLiveShare','_startPresenting','_status$','_config','CollaborationEvent','clear','You\x27re\x20presenting\x20the\x20document','createInstance','idSuffix','concat','operations','Button','extend','parse','_unitID','takeUntil','_entities','_sharedOperations','propertyIsEnumerable','operators','asObservable','params','useObservable','attrs','_init','LiveShareCoordinator','Stop\x20presenting','tag','UNIVER_SHEET','subscribe','rxjs/operators','init','path','amd','SetScrollOperation','svg','Start','@univerjs/core','UniverIcon','presenting','1em','getTypeOfUnitAdded$','_uiPartsService','entries','CommandType','random','_beIdle','setConfig','SessionStatus','UniverProCollaborationClient','useState','UniverInstanceType','toStringTag','ICommandService','delete','getCurrentTypeOfUnit$','displayName','registerDependencies','RxDisposable','dispose$','find','_startLiveShareCoordinator','send','className','Inject','object','28AJiVua','getInitialStates','Present\x20this\x20document','UniverDesign','presenter','_stopPresenting','assign','clsx','type','replace','_handleOnline','apply','PRESENTING','_handleNewHost','sessionStatus$','LIVESHARE_OPERATION','getOwnPropertySymbols','28668qaDHec','onCommandExecuted','createElement','useRef','live-share-icon','UniverUi','indexOf','1214aUncfP','registerInitialStateReporter','NEW_CHANGESETS','BehaviorSubject','UniverSheetsUi','_handleOperation','pluginName','length','Dropdown','defIds','Fragment','startFollowing','pipe','276kUddUB','React','current','mask','currentColor','8digWrj','_liveShareService','onRendered','_startFollowing','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','toDisposable','url(#$1','UniverSheets','UniverProCollaboration','defineProperty','div','includes','hasOwnProperty','UNIVER_UNKNOWN','mutations','following','idle','stopPresenting','default','add','_handleTerminate','complete','symbol','_mountLiveShare','rxjs','UniverLiveSharePlugin','prototype','registerSharedOperation','_commandService','tryStartPresenting','Subject','_collabSessionService','305652XWkFcz','SetWorksheetActiveOperation','ONLINE'];_0x50ff=function(){return _0x18f121;};return _0x50ff();}(function(_0x321478,_0x30ad21){var _0x380df7=_0x5d39,_0x4d90dc=_0x321478();while(!![]){try{var _0x421dd0=-parseInt(_0x380df7(0x210))/0x1+-parseInt(_0x380df7(0x273))/0x2*(-parseInt(_0x380df7(0x280))/0x3)+parseInt(_0x380df7(0x25b))/0x4*(parseInt(_0x380df7(0x204))/0x5)+parseInt(_0x380df7(0x26c))/0x6*(-parseInt(_0x380df7(0x1e6))/0x7)+parseInt(_0x380df7(0x285))/0x8*(parseInt(_0x380df7(0x1ed))/0x9)+-parseInt(_0x380df7(0x2a9))/0xa+-parseInt(_0x380df7(0x1e4))/0xb*(parseInt(_0x380df7(0x2a5))/0xc);if(_0x421dd0===_0x30ad21)break;else _0x4d90dc['push'](_0x4d90dc['shift']());}catch(_0x202b69){_0x4d90dc['push'](_0x4d90dc['shift']());}}}(_0x50ff,0xce0f1),function(_0x4bf2f9,_0x4b4ff3){var _0x489d18=_0x5d39;typeof exports==_0x489d18(0x25a)&&typeof module<'u'?_0x4b4ff3(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==_0x489d18(0x202)&&define[_0x489d18(0x23a)]?define([_0x489d18(0x1e8),_0x489d18(0x23e),_0x489d18(0x1e1),_0x489d18(0x2ae),'@univerjs/design',_0x489d18(0x1fa),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','@univerjs/sheets',_0x489d18(0x29d),_0x489d18(0x237),_0x489d18(0x1dd)],_0x4b4ff3):(_0x4bf2f9=typeof globalThis<'u'?globalThis:_0x4bf2f9||self,_0x4b4ff3(_0x4bf2f9[_0x489d18(0x219)]={},_0x4bf2f9['UniverCore'],_0x4bf2f9[_0x489d18(0x271)],_0x4bf2f9['React'],_0x4bf2f9[_0x489d18(0x25e)],_0x4bf2f9[_0x489d18(0x281)],_0x4bf2f9[_0x489d18(0x28d)],_0x4bf2f9[_0x489d18(0x24a)],_0x4bf2f9[_0x489d18(0x28c)],_0x4bf2f9[_0x489d18(0x29d)],_0x4bf2f9['rxjs'][_0x489d18(0x22c)],_0x4bf2f9[_0x489d18(0x277)]));}(this,function(_0x387e7b,_0x4c8bc9,_0x14ca99,_0x51500c,_0xef6c63,_0x125ae4,_0x1ab4e0,_0x45e5c0,_0x25c260,_0x35efc0,_0x42fe9a,_0x27b8a0){'use strict';var _0x5f4722=_0x5d39;var _0x13bec9=Object[_0x5f4722(0x28e)],_0x472b9a=(_0x884813,_0x1b7803,_0x247e1a)=>_0x1b7803 in _0x884813?_0x13bec9(_0x884813,_0x1b7803,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x247e1a}):_0x884813[_0x1b7803]=_0x247e1a,_0x151b9e=(_0x1893e0,_0x454e24,_0xfdee74)=>_0x472b9a(_0x1893e0,typeof _0x454e24!='symbol'?_0x454e24+'':_0x454e24,_0xfdee74),_0x1e5460=function(){var _0x2f28af=_0x5f4722;return _0x1e5460=Object[_0x2f28af(0x261)]||function(_0x54d6bf){var _0x49c114=_0x2f28af;for(var _0x2103b2,_0x2ae7a9=0x1,_0x3252fa=arguments['length'];_0x2ae7a9<_0x3252fa;_0x2ae7a9++){_0x2103b2=arguments[_0x2ae7a9];for(var _0x2361ca in _0x2103b2)Object[_0x49c114(0x29f)][_0x49c114(0x291)][_0x49c114(0x1cf)](_0x2103b2,_0x2361ca)&&(_0x54d6bf[_0x2361ca]=_0x2103b2[_0x2361ca]);}return _0x54d6bf;},_0x1e5460[_0x2f28af(0x266)](this,arguments);},_0x1ee06f=function(_0x30aca8,_0x15628c){var _0x5a942d=_0x5f4722,_0x5d5e83={};for(var _0x50a34d in _0x30aca8)Object[_0x5a942d(0x29f)]['hasOwnProperty'][_0x5a942d(0x1cf)](_0x30aca8,_0x50a34d)&&_0x15628c[_0x5a942d(0x272)](_0x50a34d)<0x0&&(_0x5d5e83[_0x50a34d]=_0x30aca8[_0x50a34d]);if(_0x30aca8!=null&&typeof Object[_0x5a942d(0x26b)]==_0x5a942d(0x202)){for(var _0x3857bb=0x0,_0x50a34d=Object[_0x5a942d(0x26b)](_0x30aca8);_0x3857bb<_0x50a34d['length'];_0x3857bb++)_0x15628c['indexOf'](_0x50a34d[_0x3857bb])<0x0&&Object[_0x5a942d(0x29f)][_0x5a942d(0x22b)][_0x5a942d(0x1cf)](_0x30aca8,_0x50a34d[_0x3857bb])&&(_0x5d5e83[_0x50a34d[_0x3857bb]]=_0x30aca8[_0x50a34d[_0x3857bb]]);}return _0x5d5e83;},_0x2f0c4f=_0x125ae4[_0x5f4722(0x1e9)](function(_0x939f8b,_0x1a60a8){var _0x457d91=_0x5f4722,_0x555ab6=_0x939f8b['icon'],_0x456b0b=_0x939f8b['id'],_0xb46cdb=_0x939f8b[_0x457d91(0x258)],_0x2b9c0c=_0x939f8b['extend'],_0x5e3405=_0x1ee06f(_0x939f8b,[_0x457d91(0x1f7),'id','className',_0x457d91(0x225)]),_0x15dc3e=_0x457d91(0x1f0)[_0x457d91(0x222)](_0x456b0b,'\x20')['concat'](_0xb46cdb||'')[_0x457d91(0x2b9)](),_0x25de49=_0x125ae4[_0x457d91(0x26f)]('_'[_0x457d91(0x222)](_0x3a5738()));return _0x552203(_0x555ab6,''['concat'](_0x456b0b),{'defIds':_0x555ab6['defIds'],'idSuffix':_0x25de49[_0x457d91(0x282)]},_0x1e5460({'ref':_0x1a60a8,'className':_0x15dc3e},_0x5e3405),_0x2b9c0c);});function _0x552203(_0x423b3a,_0x547a6e,_0x594dec,_0x1dc8b8,_0x4968cf){var _0x826ef4=_0x5f4722;return _0x125ae4[_0x826ef4(0x26e)](_0x423b3a[_0x826ef4(0x234)],_0x1e5460(_0x1e5460({'key':_0x547a6e},_0x26a54a(_0x423b3a,_0x594dec,_0x4968cf)),_0x1dc8b8),(_0x37cf28(_0x423b3a,_0x594dec)['children']||[])[_0x826ef4(0x209)](function(_0x10f035,_0x3db8a5){var _0x6c1982=_0x826ef4;return _0x552203(_0x10f035,''[_0x6c1982(0x222)](_0x547a6e,'-')['concat'](_0x423b3a[_0x6c1982(0x234)],'-')['concat'](_0x3db8a5),_0x594dec,void 0x0,_0x4968cf);}));}function _0x26a54a(_0x2fe3f4,_0x8335ff,_0xc8c446){var _0x1da526=_0x5f4722,_0x2c4f05=_0x1e5460({},_0x2fe3f4['attrs']);_0xc8c446!=null&&_0xc8c446['colorChannel1']&&_0x2c4f05['fill']===_0x1da526(0x1ce)&&(_0x2c4f05[_0x1da526(0x217)]=_0xc8c446['colorChannel1']),_0x2fe3f4[_0x1da526(0x234)]===_0x1da526(0x283)&&_0x2c4f05['id']&&(_0x2c4f05['id']=_0x2c4f05['id']+_0x8335ff[_0x1da526(0x221)]),Object[_0x1da526(0x244)](_0x2c4f05)[_0x1da526(0x208)](function(_0x352294){var _0x4611ee=_0x1da526,_0x3ec4dc=_0x352294[0x0],_0x47dacf=_0x352294[0x1];_0x3ec4dc===_0x4611ee(0x283)&&typeof _0x47dacf=='string'&&(_0x2c4f05[_0x3ec4dc]=_0x47dacf['replace'](/url\(#(.*)\)/,_0x4611ee(0x28b)[_0x4611ee(0x222)](_0x8335ff['idSuffix'],')')));});var _0x21aafd=_0x8335ff['defIds'];return!_0x21aafd||_0x21aafd['length']===0x0||(_0x2fe3f4['tag']===_0x1da526(0x1f2)&&_0x2c4f05['xlink:href']&&(_0x2c4f05[_0x1da526(0x1da)]=_0x2c4f05['xlink:href']+_0x8335ff[_0x1da526(0x221)]),Object[_0x1da526(0x244)](_0x2c4f05)[_0x1da526(0x208)](function(_0x478a50){var _0x454ad5=_0x1da526,_0x1b0c7f=_0x478a50[0x0],_0x598a29=_0x478a50[0x1];typeof _0x598a29==_0x454ad5(0x206)&&(_0x2c4f05[_0x1b0c7f]=_0x598a29[_0x454ad5(0x264)](/url\(#(.*)\)/,_0x454ad5(0x28b)[_0x454ad5(0x222)](_0x8335ff[_0x454ad5(0x221)],')')));})),_0x2c4f05;}function _0x37cf28(_0x39f9f6,_0x101148){var _0x58f003=_0x5f4722,_0x23c854,_0x3fa51d=_0x101148[_0x58f003(0x27c)];return!_0x3fa51d||_0x3fa51d[_0x58f003(0x27a)]===0x0?_0x39f9f6:_0x39f9f6[_0x58f003(0x234)]===_0x58f003(0x1e0)&&(!((_0x23c854=_0x39f9f6[_0x58f003(0x1d8)])===null||_0x23c854===void 0x0)&&_0x23c854['length'])?_0x1e5460(_0x1e5460({},_0x39f9f6),{'children':_0x39f9f6['children'][_0x58f003(0x209)](function(_0xde1ee1){var _0x56a494=_0x58f003;return typeof _0xde1ee1[_0x56a494(0x230)]['id']==_0x56a494(0x206)&&_0x3fa51d&&_0x3fa51d[_0x56a494(0x290)](_0xde1ee1['attrs']['id'])?_0x1e5460(_0x1e5460({},_0xde1ee1),{'attrs':_0x1e5460(_0x1e5460({},_0xde1ee1[_0x56a494(0x230)]),{'id':_0xde1ee1['attrs']['id']+_0x101148[_0x56a494(0x221)]})}):_0xde1ee1;})}):_0x39f9f6;}function _0x3a5738(){var _0x5e67d3=_0x5f4722;return Math[_0x5e67d3(0x246)]()['toString'](0x24)['substring'](0x2,0x8);}_0x2f0c4f[_0x5f4722(0x251)]=_0x5f4722(0x23f);var _0x510b8a={'tag':_0x5f4722(0x23c),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x5f4722(0x241),'height':'1em'},'children':[{'tag':_0x5f4722(0x239),'attrs':{'fill':_0x5f4722(0x284),'d':_0x5f4722(0x289)}},{'tag':_0x5f4722(0x239),'attrs':{'fill':_0x5f4722(0x284),'d':_0x5f4722(0x1d9),'fillRule':_0x5f4722(0x1c5),'clipRule':_0x5f4722(0x1c5)}}]},_0x4b8bd8=_0x125ae4[_0x5f4722(0x1e9)](function(_0x1c7dae,_0x500812){var _0x3918c4=_0x5f4722;return _0x125ae4[_0x3918c4(0x26e)](_0x2f0c4f,Object[_0x3918c4(0x261)]({},_0x1c7dae,{'id':_0x3918c4(0x270),'ref':_0x500812,'icon':_0x510b8a}));});_0x4b8bd8['displayName']=_0x5f4722(0x1c6);class _0xa82131 extends _0x4c8bc9[_0x5f4722(0x1ef)]{constructor(){var _0x46552a=_0x5f4722;super(...arguments),_0x151b9e(this,_0x46552a(0x22a),new Set()),_0x151b9e(this,_0x46552a(0x20f),new Set());}[_0x5f4722(0x2a0)](_0x6de1e9){var _0xd8892f=_0x5f4722;return this['_sharedOperations'][_0xd8892f(0x298)](_0x6de1e9),_0x4c8bc9['toDisposable'](()=>this[_0xd8892f(0x22a)][_0xd8892f(0x24f)](_0x6de1e9));}[_0x5f4722(0x274)](_0x52e82d){var _0x46bd3a=_0x5f4722;return this[_0x46bd3a(0x20f)][_0x46bd3a(0x298)](_0x52e82d),_0x4c8bc9[_0x46bd3a(0x28a)](()=>this['_reporters'][_0x46bd3a(0x24f)](_0x52e82d));}[_0x5f4722(0x1de)](_0x131aca){var _0x5be7a7=_0x5f4722;return this[_0x5be7a7(0x22a)][_0x5be7a7(0x216)](_0x131aca);}[_0x5f4722(0x25c)](_0x1991ae){var _0xb1bd42=_0x5f4722;return Array['from'](this[_0xb1bd42(0x20f)])[_0xb1bd42(0x209)](_0x5f2912=>_0x5f2912(_0x1991ae));}}var _0x5303ee=Object[_0x5f4722(0x20a)],_0x4c62a6=(_0x1da831,_0x1a8ce8,_0x205455,_0x4db49a)=>{var _0x486e4e=_0x5f4722;for(var _0x2c8165=_0x4db49a>0x1?void 0x0:_0x4db49a?_0x5303ee(_0x1a8ce8,_0x205455):_0x1a8ce8,_0xdffe1a=_0x1da831[_0x486e4e(0x27a)]-0x1,_0x3bf1a5;_0xdffe1a>=0x0;_0xdffe1a--)(_0x3bf1a5=_0x1da831[_0xdffe1a])&&(_0x2c8165=_0x3bf1a5(_0x2c8165)||_0x2c8165);return _0x2c8165;},_0x4a136a=(_0x40639a,_0x4068f4)=>(_0x1b878a,_0x3ac7a8)=>_0x4068f4(_0x1b878a,_0x3ac7a8,_0x40639a);_0x387e7b[_0x5f4722(0x1dc)]=class extends _0x4c8bc9[_0x5f4722(0x253)]{constructor(_0x5e96c2,_0x41e7e8,_0x45e5f8){var _0x426a65=_0x5f4722;super(),_0x151b9e(this,_0x426a65(0x229),new Map()),(this['_univerInstanceService']=_0x5e96c2,this[_0x426a65(0x1cd)]=_0x41e7e8,this['_collabSessionService']=_0x45e5f8,this[_0x426a65(0x231)]());}async[_0x5f4722(0x213)](_0x51904f){var _0x1e3f0d=_0x5f4722;return this[_0x1e3f0d(0x229)][_0x1e3f0d(0x216)](_0x51904f)||await this[_0x1e3f0d(0x256)](_0x51904f),this['_entities'][_0x1e3f0d(0x1ec)](_0x51904f);}[_0x5f4722(0x231)](){var _0x552e4c=_0x5f4722;this[_0x552e4c(0x1e3)][_0x552e4c(0x242)](_0x4c8bc9[_0x552e4c(0x24c)][_0x552e4c(0x235)])[_0x552e4c(0x27f)](_0x42fe9a[_0x552e4c(0x228)](this[_0x552e4c(0x254)]))[_0x552e4c(0x236)](async _0x1b3407=>{var _0x4d2d59=_0x552e4c;const _0x411026=_0x1b3407['getUnitId']();this[_0x4d2d59(0x229)][_0x4d2d59(0x216)](_0x411026)||this[_0x4d2d59(0x256)](_0x411026);}),this[_0x552e4c(0x1e3)][_0x552e4c(0x1df)](_0x4c8bc9[_0x552e4c(0x24c)]['UNIVER_SHEET'])[_0x552e4c(0x27f)](_0x42fe9a['takeUntil'](this[_0x552e4c(0x254)]))[_0x552e4c(0x236)](_0x4ba3b7=>{var _0x363c9b=_0x552e4c;const _0x391a77=_0x4ba3b7[_0x363c9b(0x1d5)](),_0x3d8211=this[_0x363c9b(0x229)][_0x363c9b(0x1ec)](_0x391a77);_0x3d8211==null||_0x3d8211['dispose']();});}async[_0x5f4722(0x256)](_0x48ef86){var _0x2ff63e=_0x5f4722;const _0x63cdfd=await this[_0x2ff63e(0x2a4)][_0x2ff63e(0x1f1)](_0x48ef86),_0x305b89=this[_0x2ff63e(0x1cd)][_0x2ff63e(0x220)](_0x387e7b[_0x2ff63e(0x232)],_0x48ef86,_0x63cdfd);return _0x305b89[_0x2ff63e(0x238)](),this[_0x2ff63e(0x229)][_0x2ff63e(0x2ab)](_0x48ef86,_0x305b89),_0x305b89;}},_0x387e7b[_0x5f4722(0x1dc)]=_0x4c62a6([_0x4a136a(0x0,_0x4c8bc9[_0x5f4722(0x212)]),_0x4a136a(0x1,_0x4c8bc9[_0x5f4722(0x259)](_0x4c8bc9['Injector'])),_0x4a136a(0x2,_0x4c8bc9[_0x5f4722(0x259)](_0x45e5c0[_0x5f4722(0x201)]))],_0x387e7b[_0x5f4722(0x1dc)]);var _0x28b580=(_0x3d2f98=>(_0x3d2f98[_0x5f4722(0x203)]=_0x5f4722(0x1ff),_0x3d2f98[_0x5f4722(0x2ad)]=_0x5f4722(0x295),_0x3d2f98[_0x5f4722(0x1d1)]=_0x5f4722(0x294),_0x3d2f98[_0x5f4722(0x207)]=_0x5f4722(0x20e),_0x3d2f98[_0x5f4722(0x267)]='presenting',_0x3d2f98))(_0x28b580||{});const _0x2ab819='SAME_OPERATION_SHARE_INTERVAL',_0x131354=0xc8;_0x387e7b[_0x5f4722(0x232)]=class extends _0x4c8bc9[_0x5f4722(0x253)]{constructor(_0x1d6267,_0x44ef00,_0x382459,_0x113ad4,_0x2f7995){var _0x71a392=_0x5f4722;super(),_0x151b9e(this,_0x71a392(0x21b),new _0x35efc0[(_0x71a392(0x276))](_0x71a392(0x295))),_0x151b9e(this,_0x71a392(0x20b),this[_0x71a392(0x21b)][_0x71a392(0x22d)]()),_0x151b9e(this,_0x71a392(0x231),!0x1),_0x151b9e(this,_0x71a392(0x1ea),null),_0x151b9e(this,_0x71a392(0x1d4),null),(this[_0x71a392(0x227)]=_0x1d6267,this[_0x71a392(0x2b2)]=_0x44ef00,this[_0x71a392(0x2b8)]=_0x382459,this['_liveShareService']=_0x113ad4,this[_0x71a392(0x2a1)]=_0x2f7995);}get[_0x5f4722(0x1f9)](){var _0x465d0a=_0x5f4722;return this[_0x465d0a(0x21b)]['getValue']();}['dispose'](){var _0xe2471d=_0x5f4722,_0x107389;(_0x107389=this['_commandDisposable'])==null||_0x107389[_0xe2471d(0x1d7)](),this[_0xe2471d(0x21b)][_0xe2471d(0x1c4)](_0xe2471d(0x295)),this['_status$'][_0xe2471d(0x29a)]();}[_0x5f4722(0x238)](){var _0x1ee104=_0x5f4722;this[_0x1ee104(0x231)]||(this[_0x1ee104(0x231)]=!0x0,this[_0x1ee104(0x2b2)][_0x1ee104(0x269)]['pipe'](_0x42fe9a[_0x1ee104(0x228)](this['dispose$']))['subscribe'](_0x2f42be=>{var _0x104a1a=_0x1ee104;switch(_0x2f42be){case _0x45e5c0[_0x104a1a(0x249)][_0x104a1a(0x203)]:this['_handleOffline']();break;case _0x45e5c0[_0x104a1a(0x249)][_0x104a1a(0x2a7)]:this[_0x104a1a(0x265)]();break;}}),this[_0x1ee104(0x2b2)][_0x1ee104(0x1f3)][_0x1ee104(0x27f)](_0x42fe9a[_0x1ee104(0x228)](this[_0x1ee104(0x254)]))[_0x1ee104(0x236)](_0x4ef3bc=>{var _0xc1a41a=_0x1ee104;const {eventID:_0x22a037}=_0x4ef3bc;switch(_0x22a037){case _0x1ab4e0[_0xc1a41a(0x21d)][_0xc1a41a(0x1c8)]:this[_0xc1a41a(0x268)](_0x4ef3bc);break;case _0x1ab4e0[_0xc1a41a(0x21d)][_0xc1a41a(0x26a)]:this['_handleOperation'](_0x4ef3bc);break;case _0x1ab4e0[_0xc1a41a(0x21d)][_0xc1a41a(0x218)]:this[_0xc1a41a(0x299)]();break;case _0x1ab4e0[_0xc1a41a(0x21d)][_0xc1a41a(0x275)]:this[_0xc1a41a(0x2b6)](_0x4ef3bc);break;}}));}[_0x5f4722(0x2a2)](){var _0x445c7d=_0x5f4722;this[_0x445c7d(0x2b2)][_0x445c7d(0x257)]({'eventID':_0x1ab4e0[_0x445c7d(0x21d)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x445c7d(0x227)],'userID':this[_0x445c7d(0x2b2)][_0x445c7d(0x1d3)]()}},this[_0x445c7d(0x227)]);}['stopPresenting'](){var _0x3c6d5a=_0x5f4722;this['_status']===_0x3c6d5a(0x240)&&(this[_0x3c6d5a(0x21b)][_0x3c6d5a(0x1c4)](_0x3c6d5a(0x295)),this[_0x3c6d5a(0x2b2)][_0x3c6d5a(0x257)]({'eventID':_0x1ab4e0[_0x3c6d5a(0x21d)][_0x3c6d5a(0x218)],'data':{'unitID':this['_unitID']}},this[_0x3c6d5a(0x227)]));}[_0x5f4722(0x27e)](){var _0x58fc6f=_0x5f4722;this['_status']===_0x58fc6f(0x20e)&&(this[_0x58fc6f(0x21b)][_0x58fc6f(0x1c4)](_0x58fc6f(0x294)),this['_startFollowing']());}[_0x5f4722(0x1ca)](){var _0x41f3cd=_0x5f4722;this[_0x41f3cd(0x1f9)]===_0x41f3cd(0x294)&&this[_0x41f3cd(0x1cc)]();}[_0x5f4722(0x268)](_0x213f35){var _0x92d53c=_0x5f4722;const {presenter:_0x49ef63}=_0x213f35[_0x92d53c(0x214)],_0x392a68=this[_0x92d53c(0x2b2)]['getMemberID']();this[_0x92d53c(0x1d4)]=_0x49ef63,_0x49ef63===_0x392a68?(this[_0x92d53c(0x1cc)](),this[_0x92d53c(0x21a)]()):this[_0x92d53c(0x1f9)]!==_0x92d53c(0x20e)&&(this[_0x92d53c(0x260)](),this[_0x92d53c(0x288)]());}[_0x5f4722(0x1fe)](){var _0xf9d234=_0x5f4722;const _0x1d992e={'eventID':_0x1ab4e0[_0xf9d234(0x21d)][_0xf9d234(0x2ac)]};this[_0xf9d234(0x2b2)]['send'](_0x1d992e,this[_0xf9d234(0x227)]);}[_0x5f4722(0x299)](){var _0x4f1cfd=_0x5f4722;this[_0x4f1cfd(0x1d4)]=null,this[_0x4f1cfd(0x1f9)]!==_0x4f1cfd(0x240)&&this['_beIdle']();}[_0x5f4722(0x2b6)](_0x41d95f){var _0x5b4af4=_0x5f4722;if(this[_0x5b4af4(0x1f9)]===_0x5b4af4(0x294)&&this[_0x5b4af4(0x1d4)]===_0x41d95f[_0x5b4af4(0x214)]['memberID']){const _0x718a34=_0x1ab4e0[_0x5b4af4(0x1d0)](_0x41d95f['data'])[_0x5b4af4(0x293)][_0x5b4af4(0x1d6)]()[_0x5b4af4(0x255)](_0x1a3196=>_0x1a3196['id']===_0x25c260[_0x5b4af4(0x211)]['id']);if(_0x718a34){const _0xa84549=_0x718a34[_0x5b4af4(0x22e)][_0x5b4af4(0x2b1)],_0x5b140a=_0x718a34[_0x5b4af4(0x22e)]['sheet']['id'];setTimeout(()=>{var _0x2ebd14=_0x5b4af4;this['_commandService'][_0x2ebd14(0x2b4)](_0x25c260[_0x2ebd14(0x2a6)]['id'],{'unitId':_0xa84549,'subUnitId':_0x5b140a},{'fromCollab':!0x0});});}}}[_0x5f4722(0x21a)](){var _0xabc41f=_0x5f4722;this['_status$'][_0xabc41f(0x1c4)](_0xabc41f(0x240));const _0x513b02=new Map(),_0x445e4e=this[_0xabc41f(0x1ea)]=new _0x4c8bc9['DisposableCollection']();_0x445e4e[_0xabc41f(0x298)](_0x4c8bc9[_0xabc41f(0x28a)](()=>{var _0x35a908=_0xabc41f;_0x513b02[_0x35a908(0x208)](_0x9d7b3b=>_0x9d7b3b[_0x35a908(0x29a)]()),_0x513b02[_0x35a908(0x21e)]();})),_0x445e4e[_0xabc41f(0x298)](this['_commandService'][_0xabc41f(0x26d)](_0x4fb41=>{var _0x65f826=_0xabc41f,_0x1a25f9;if(_0x4fb41['type']!==_0x4c8bc9[_0x65f826(0x245)]['OPERATION']||!this[_0x65f826(0x286)][_0x65f826(0x1de)](_0x4fb41['id']))return;const {id:_0x2ef96a}=_0x4fb41;let _0x227133;_0x513b02['has'](_0x2ef96a)?_0x227133=_0x513b02[_0x65f826(0x1ec)](_0x2ef96a):(_0x227133=new _0x35efc0[(_0x65f826(0x2a3))](),_0x513b02[_0x65f826(0x2ab)](_0x2ef96a,_0x227133),_0x227133[_0x65f826(0x27f)](_0x42fe9a[_0x65f826(0x1e2)]((_0x1a25f9=this[_0x65f826(0x2b8)]['getConfig'](_0x2ab819))!=null?_0x1a25f9:_0x131354,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x65f826(0x236)](_0x33522a=>{var _0x32cf6d=_0x65f826;this[_0x32cf6d(0x2b2)]['send']({'eventID':_0x1ab4e0[_0x32cf6d(0x21d)][_0x32cf6d(0x26a)],'data':{'unitID':this[_0x32cf6d(0x227)],'operations':{[_0x33522a['id']]:{'id':_0x33522a['id'],'params':JSON[_0x32cf6d(0x20d)](_0x33522a['params'])}}}},this[_0x32cf6d(0x227)]);})),_0x227133['next'](_0x4fb41);})),this[_0xabc41f(0x286)]['getInitialStates'](this[_0xabc41f(0x227)])[_0xabc41f(0x208)](_0x471122=>this[_0xabc41f(0x2b2)][_0xabc41f(0x257)]({'eventID':_0x1ab4e0['CollaborationEvent'][_0xabc41f(0x26a)],'data':{'unitID':this[_0xabc41f(0x227)],'operations':{[_0x471122['id']]:{'id':_0x471122['id'],'params':JSON[_0xabc41f(0x20d)](_0x471122[_0xabc41f(0x22e)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x100483=_0x5f4722,_0xfe780d;this[_0x100483(0x21b)]['next']('idle'),(_0xfe780d=this['_commandDisposable'])==null||_0xfe780d['dispose'](),this[_0x100483(0x1ea)]=null;}[_0x5f4722(0x288)](){var _0x132e30=_0x5f4722,_0x480fba;(_0x480fba=this[_0x132e30(0x1ea)])==null||_0x480fba['dispose'](),this[_0x132e30(0x21b)][_0x132e30(0x1c4)](_0x132e30(0x294));}[_0x5f4722(0x247)](){var _0x323d1b=_0x5f4722,_0xdf453c;this[_0x323d1b(0x21b)][_0x323d1b(0x1c4)](_0x323d1b(0x295)),(_0xdf453c=this['_commandDisposable'])==null||_0xdf453c[_0x323d1b(0x1d7)](),this[_0x323d1b(0x1ea)]=null;}[_0x5f4722(0x1cc)](){var _0x571aa4=_0x5f4722,_0x5c2c97;this[_0x571aa4(0x21b)][_0x571aa4(0x1c4)](_0x571aa4(0x20e)),(_0x5c2c97=this['_commandDisposable'])==null||_0x5c2c97[_0x571aa4(0x1d7)]();}[_0x5f4722(0x278)](_0x28fb19){var _0x33d353=_0x5f4722;if([_0x33d353(0x240),_0x33d353(0x20e),'offline'][_0x33d353(0x290)](this['_status'])||!_0x28fb19[_0x33d353(0x214)][_0x33d353(0x25f)]||_0x28fb19['data'][_0x33d353(0x25f)]===this[_0x33d353(0x2b2)][_0x33d353(0x1d3)]())return;this[_0x33d353(0x1f9)]===_0x33d353(0x295)&&this[_0x33d353(0x288)]();const _0x152a03=_0x28fb19['data'][_0x33d353(0x223)];Object['values'](_0x152a03)[_0x33d353(0x208)](_0x3d2e3d=>{var _0x3121a6=_0x33d353;this['_commandService'][_0x3121a6(0x2b4)](_0x3d2e3d['id'],_0x3d2e3d[_0x3121a6(0x22e)]?JSON[_0x3121a6(0x226)](_0x3d2e3d[_0x3121a6(0x22e)]):null,{'fromCollab':!0x0});});}[_0x5f4722(0x1fb)](){var _0x35d54c=_0x5f4722,_0x3e64e0;this[_0x35d54c(0x21b)]['next']('offline'),(_0x3e64e0=this[_0x35d54c(0x1ea)])==null||_0x3e64e0['dispose']();}[_0x5f4722(0x265)](){var _0x3513e5=_0x5f4722;this[_0x3513e5(0x21b)]['next']('idle'),this[_0x3513e5(0x1fe)]();}},_0x387e7b[_0x5f4722(0x232)]=_0x4c62a6([_0x4a136a(0x2,_0x4c8bc9['IConfigService']),_0x4a136a(0x3,_0x4c8bc9[_0x5f4722(0x259)](_0xa82131)),_0x4a136a(0x4,_0x4c8bc9[_0x5f4722(0x24e)])],_0x387e7b[_0x5f4722(0x232)]);function _0x4742b7(){var _0x4153c4=_0x5f4722;const _0x311269=_0x14ca99['useDependency'](_0x387e7b['LiveShareController']),_0x154868=_0x14ca99[_0x4153c4(0x1eb)](_0x4c8bc9[_0x4153c4(0x212)]),_0x2dee52=_0x14ca99[_0x4153c4(0x22f)](()=>_0x154868[_0x4153c4(0x250)](_0x4c8bc9['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3dc9f3,_0x1b2da5]=_0x125ae4[_0x4153c4(0x24b)](null),[_0x382a00,_0x4cb1f6]=_0x125ae4[_0x4153c4(0x24b)](_0x28b580[_0x4153c4(0x2ad)]),_0x1635bb=_0x125ae4[_0x4153c4(0x26f)](null);return _0x125ae4[_0x4153c4(0x2af)](()=>(_0x2dee52&&_0x311269[_0x4153c4(0x213)](_0x2dee52[_0x4153c4(0x1d5)]())['then'](_0x1ff977=>{var _0x5a3f63=_0x4153c4;_0x1b2da5(_0x1ff977),_0x1635bb['current']=_0x1ff977[_0x5a3f63(0x20b)][_0x5a3f63(0x236)](_0x26dc54=>{_0x4cb1f6(_0x26dc54);});}),()=>{var _0x4c4153=_0x4153c4,_0x1efaff;(_0x1efaff=_0x1635bb[_0x4c4153(0x282)])==null||_0x1efaff['unsubscribe'](),_0x1635bb[_0x4c4153(0x282)]=null;}),[_0x2dee52,_0x311269]),_0x3dc9f3?_0x51500c[_0x4153c4(0x1f6)](_0xef6c63[_0x4153c4(0x27b)],{'align':_0x4153c4(0x2b5),'disabled':_0x382a00===_0x28b580[_0x4153c4(0x203)],'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':_0x51500c[_0x4153c4(0x1f6)](_0x33ab3f,{'status':_0x382a00,'coordinator':_0x3dc9f3}),'children':_0x51500c[_0x4153c4(0x1f6)]('button',{'className':_0xef6c63[_0x4153c4(0x262)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x382a00===_0x28b580['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x382a00!==_0x28b580[_0x4153c4(0x203)]}),'type':_0x4153c4(0x2b0),'children':_0x51500c['jsx'](_0x4b8bd8,{'className':'univer-size-4'})})}):null;}function _0x33ab3f(_0x591ab0){var _0x579472=_0x5f4722;const {status:_0x13f41b,coordinator:_0xc4b6ac}=_0x591ab0;switch(_0x13f41b){case _0x28b580[_0x579472(0x2ad)]:return _0x51500c[_0x579472(0x1f6)](_0x1956cd,{'coordinator':_0xc4b6ac});case _0x28b580[_0x579472(0x1d1)]:return _0x51500c[_0x579472(0x1f6)](_0x3d6a49,{'coordinator':_0xc4b6ac});case _0x28b580[_0x579472(0x207)]:return _0x51500c[_0x579472(0x1f6)](_0x1379c1,{'coordinator':_0xc4b6ac});case _0x28b580[_0x579472(0x203)]:return _0x51500c[_0x579472(0x1f6)](_0x5de413,{});case _0x28b580['PRESENTING']:return _0x51500c['jsx'](_0x47c838,{'coordinator':_0xc4b6ac});default:return null;}}function _0x1956cd(_0xee1c17){var _0x22c997=_0x5f4722;const {coordinator:_0x3ebd39}=_0xee1c17;return _0x51500c[_0x22c997(0x1fc)](_0x51500c[_0x22c997(0x27d)],{'children':[_0x51500c[_0x22c997(0x1f6)](_0x22c997(0x28f),{'className':_0x22c997(0x2aa),'children':_0x22c997(0x25d)}),_0x51500c['jsx'](_0xef6c63['Button'],{'onClick':()=>_0x3ebd39[_0x22c997(0x2a2)](),'children':_0x22c997(0x23d)})]});}function _0x3d6a49(_0x363ef3){var _0x341c94=_0x5f4722;const {coordinator:_0x314c61}=_0x363ef3;return _0x51500c['jsxs'](_0x51500c[_0x341c94(0x27d)],{'children':[_0x51500c['jsx'](_0x341c94(0x28f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x51500c[_0x341c94(0x1f6)](_0xef6c63[_0x341c94(0x224)],{'onClick':()=>_0x314c61[_0x341c94(0x1ca)](),'children':'Stop\x20following'})]});}function _0x1379c1(_0xa3db8e){var _0x874049=_0x5f4722;const {coordinator:_0x5f1c78}=_0xa3db8e;return _0x51500c[_0x874049(0x1fc)](_0x51500c['Fragment'],{'children':[_0x51500c['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x874049(0x1db)}),_0x51500c[_0x874049(0x1f6)](_0xef6c63[_0x874049(0x224)],{'variant':_0x874049(0x205),'onClick':()=>_0x5f1c78[_0x874049(0x27e)](),'children':'Start\x20following'})]});}function _0x47c838(_0x1923e1){var _0x5c102c=_0x5f4722;const {coordinator:_0x1552c4}=_0x1923e1;return _0x51500c[_0x5c102c(0x1fc)](_0x51500c['Fragment'],{'children':[_0x51500c[_0x5c102c(0x1f6)]('div',{'className':_0x5c102c(0x2aa),'children':_0x5c102c(0x21f)}),_0x51500c[_0x5c102c(0x1f6)](_0xef6c63['Button'],{'variant':_0x5c102c(0x297),'onClick':()=>_0x1552c4[_0x5c102c(0x296)](),'children':_0x5c102c(0x233)})]});}function _0x5de413(){var _0x33988e=_0x5f4722;return _0x51500c['jsx'](_0x51500c['Fragment'],{'children':_0x33988e(0x1fd)});}var _0x21f353=Object[_0x5f4722(0x20a)],_0x37fdc2=(_0x17c79c,_0x5176cd,_0x45d4c9,_0x50756b)=>{var _0xd43e3=_0x5f4722;for(var _0x900a26=_0x50756b>0x1?void 0x0:_0x50756b?_0x21f353(_0x5176cd,_0x45d4c9):_0x5176cd,_0x59f554=_0x17c79c[_0xd43e3(0x27a)]-0x1,_0x554d25;_0x59f554>=0x0;_0x59f554--)(_0x554d25=_0x17c79c[_0x59f554])&&(_0x900a26=_0x554d25(_0x900a26)||_0x900a26);return _0x900a26;},_0x95c535=(_0x3615c8,_0x24c0fd)=>(_0x3b3aec,_0x5879b5)=>_0x24c0fd(_0x3b3aec,_0x5879b5,_0x3615c8);_0x387e7b[_0x5f4722(0x1ee)]=class extends _0x4c8bc9[_0x5f4722(0x1ef)]{constructor(_0x5156da,_0xd24ec4){var _0x3f470b=_0x5f4722;super(),this[_0x3f470b(0x1cd)]=_0x5156da,this[_0x3f470b(0x243)]=_0xd24ec4,this[_0x3f470b(0x29c)]();}['_mountLiveShare'](){var _0x19c607=_0x5f4722;this[_0x19c607(0x1e7)](this[_0x19c607(0x243)]['registerComponent'](_0x14ca99[_0x19c607(0x1e5)][_0x19c607(0x1c9)],()=>_0x14ca99[_0x19c607(0x215)](_0x4742b7,this[_0x19c607(0x1cd)])));}},_0x387e7b['DesktopLiveShareController']=_0x37fdc2([_0x95c535(0x0,_0x4c8bc9['Inject'](_0x4c8bc9['Injector'])),_0x95c535(0x1,_0x14ca99[_0x5f4722(0x20c)])],_0x387e7b[_0x5f4722(0x1ee)]);const _0x32310f=_0x5f4722(0x2b3),_0x117485={};var _0x1c6273=Object[_0x5f4722(0x20a)],_0x3332a3=(_0x57f69a,_0x529578,_0x485a5b,_0x24dce7)=>{var _0x898ae4=_0x5f4722;for(var _0x44da9f=_0x24dce7>0x1?void 0x0:_0x24dce7?_0x1c6273(_0x529578,_0x485a5b):_0x529578,_0x2f0b80=_0x57f69a[_0x898ae4(0x27a)]-0x1,_0x21dfc1;_0x2f0b80>=0x0;_0x2f0b80--)(_0x21dfc1=_0x57f69a[_0x2f0b80])&&(_0x44da9f=_0x21dfc1(_0x44da9f)||_0x44da9f);return _0x44da9f;},_0x39ea52=(_0x5e65eb,_0x1c427c)=>(_0x219d41,_0x1e4b88)=>_0x1c427c(_0x219d41,_0x1e4b88,_0x5e65eb);let _0x43e167=class extends _0x4c8bc9[_0x5f4722(0x1ef)]{constructor(_0xf21b03){super(),this['_liveShareService']=_0xf21b03,this['_init']();}['_init'](){var _0x3ec266=_0x5f4722;[_0x27b8a0[_0x3ec266(0x1f8)]['id'],_0x27b8a0[_0x3ec266(0x23b)]['id'],_0x25c260['SetWorksheetActiveOperation']['id']]['forEach'](_0x2d613f=>{var _0x11da29=_0x3ec266;this[_0x11da29(0x1e7)](this['_liveShareService'][_0x11da29(0x2a0)](_0x2d613f));});}};_0x43e167=_0x3332a3([_0x39ea52(0x0,_0x4c8bc9[_0x5f4722(0x259)](_0xa82131))],_0x43e167);var _0x23d879=Object[_0x5f4722(0x28e)],_0x262e85=Object[_0x5f4722(0x20a)],_0x2218b3=(_0x2b1ff9,_0x41c72b,_0x59a02d)=>_0x41c72b in _0x2b1ff9?_0x23d879(_0x2b1ff9,_0x41c72b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59a02d}):_0x2b1ff9[_0x41c72b]=_0x59a02d,_0x157a4b=(_0x3c2d41,_0x28a361,_0x42f56a,_0x2a5e6f)=>{var _0x515ff3=_0x5f4722;for(var _0x5a11a1=_0x2a5e6f>0x1?void 0x0:_0x2a5e6f?_0x262e85(_0x28a361,_0x42f56a):_0x28a361,_0x35de43=_0x3c2d41[_0x515ff3(0x27a)]-0x1,_0x36f030;_0x35de43>=0x0;_0x35de43--)(_0x36f030=_0x3c2d41[_0x35de43])&&(_0x5a11a1=_0x36f030(_0x5a11a1)||_0x5a11a1);return _0x5a11a1;},_0x22ba3a=(_0x41235c,_0x14da37)=>(_0x4964ca,_0x2f8698)=>_0x14da37(_0x4964ca,_0x2f8698,_0x41235c),_0x436f5e=(_0x1b2fc3,_0x124816,_0x32dde4)=>_0x2218b3(_0x1b2fc3,typeof _0x124816!=_0x5f4722(0x29b)?_0x124816+'':_0x124816,_0x32dde4);const _0x21f216=_0x5f4722(0x1d2);_0x387e7b[_0x5f4722(0x29e)]=class extends _0x4c8bc9[_0x5f4722(0x1cb)]{constructor(_0x2ca78f=_0x117485,_0x192ec,_0x7a1494){var _0x5bc864=_0x5f4722;super(),this[_0x5bc864(0x21c)]=_0x2ca78f,this[_0x5bc864(0x1cd)]=_0x192ec,this[_0x5bc864(0x2b8)]=_0x7a1494;const {..._0x4e217e}=_0x4c8bc9[_0x5bc864(0x2a8)]({},_0x117485,this[_0x5bc864(0x21c)]);this[_0x5bc864(0x2b8)][_0x5bc864(0x248)](_0x32310f,_0x4e217e);}['onStarting'](){var _0x2b36ca=_0x5f4722;_0x4c8bc9[_0x2b36ca(0x252)](this[_0x2b36ca(0x1cd)],_0x4c8bc9[_0x2b36ca(0x1f4)]([[_0xa82131],[_0x387e7b[_0x2b36ca(0x1dc)]],[_0x43e167],[_0x387e7b[_0x2b36ca(0x1ee)]]],this[_0x2b36ca(0x21c)][_0x2b36ca(0x200)])),_0x4c8bc9[_0x2b36ca(0x2b7)](this[_0x2b36ca(0x1cd)],[[_0x43e167]]);}[_0x5f4722(0x287)](){var _0x20355d=_0x5f4722;_0x4c8bc9[_0x20355d(0x2b7)](this[_0x20355d(0x1cd)],[[_0x387e7b[_0x20355d(0x1ee)]]]);}},_0x436f5e(_0x387e7b[_0x5f4722(0x29e)],_0x5f4722(0x263),_0x4c8bc9[_0x5f4722(0x24c)][_0x5f4722(0x292)]),_0x436f5e(_0x387e7b[_0x5f4722(0x29e)],_0x5f4722(0x279),_0x21f216),_0x387e7b[_0x5f4722(0x29e)]=_0x157a4b([_0x4c8bc9['DependentOn'](_0x45e5c0[_0x5f4722(0x1c7)]),_0x22ba3a(0x1,_0x4c8bc9[_0x5f4722(0x259)](_0x4c8bc9['Injector'])),_0x22ba3a(0x2,_0x4c8bc9['IConfigService'])],_0x387e7b[_0x5f4722(0x29e)]),_0x387e7b['LiveShare']=_0x4742b7,_0x387e7b['LiveShareService']=_0xa82131,_0x387e7b[_0x5f4722(0x1f5)]=_0x28b580,Object[_0x5f4722(0x28e)](_0x387e7b,Symbol[_0x5f4722(0x24d)],{'value':'Module'});}));
|
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",
|
|
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/sheets": "0.10.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.12",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.10.12",
|
|
52
|
+
"@univerjs/core": "0.10.12",
|
|
53
|
+
"@univerjs/sheets": "0.10.12",
|
|
54
|
+
"@univerjs/sheets-ui": "0.10.12",
|
|
55
|
+
"@univerjs/ui": "0.10.12",
|
|
56
|
+
"@univerjs/design": "0.10.12"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.9.3",
|
|
64
64
|
"vite": "^7.1.10",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs
|
|
66
|
+
"@univerjs-infra/shared": "0.10.12",
|
|
67
|
+
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|