@univerjs-pro/live-share 0.15.3-insiders.20260131-b9b8805 → 0.15.3-insiders.20260131-cbd5fac

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/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x199ffd=_0x5557;(function(_0x25144b,_0x160ed4){const _0x5d60d1=_0x5557,_0x4d102a=_0x25144b();while(!![]){try{const _0x690048=-parseInt(_0x5d60d1(0xe9))/0x1+-parseInt(_0x5d60d1(0xe1))/0x2+parseInt(_0x5d60d1(0xe2))/0x3+parseInt(_0x5d60d1(0xd4))/0x4+parseInt(_0x5d60d1(0xd9))/0x5+parseInt(_0x5d60d1(0xe8))/0x6+-parseInt(_0x5d60d1(0xe3))/0x7*(parseInt(_0x5d60d1(0xd3))/0x8);if(_0x690048===_0x160ed4)break;else _0x4d102a['push'](_0x4d102a['shift']());}catch(_0x3b8bd0){_0x4d102a['push'](_0x4d102a['shift']());}}}(_0x55d5,0x586ed));var h=Object[_0x199ffd(0xd6)],u=(_0x4bdfc1,_0x51ffe8,_0x53bd5e)=>_0x51ffe8 in _0x4bdfc1?h(_0x4bdfc1,_0x51ffe8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53bd5e}):_0x4bdfc1[_0x51ffe8]=_0x53bd5e,S=(_0x1e305c,_0x4f0da6,_0x1fb81b)=>u(_0x1e305c,typeof _0x4f0da6!=_0x199ffd(0xcf)?_0x4f0da6+'':_0x4f0da6,_0x1fb81b);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');function _0x5557(_0x55d507,_0xa68bd6){_0x55d507=_0x55d507-0xc9;const _0x55d59a=_0x55d5();let _0x555760=_0x55d59a[_0x55d507];return _0x555760;}class I extends c['FUniver']{constructor(){const _0x4112c1=_0x199ffd;super(...arguments),S(this,_0x4112c1(0xdd));}[_0x199ffd(0xcd)](_0x47e388){const _0x144e0e=_0x199ffd;this[_0x144e0e(0xdd)]=_0x47e388[_0x144e0e(0xda)](s[_0x144e0e(0xd0)]);}[_0x199ffd(0xc9)](){const _0x2b54e1=_0x199ffd;var _0x387571;const _0x192a7f=this[_0x2b54e1(0xea)][_0x2b54e1(0xda)](n[_0x2b54e1(0xd2)])['getCurrentUnitOfType'](n['UniverInstanceType']['UNIVER_SHEET']);if(!_0x192a7f)throw new Error('No\x20active\x20workbook\x20found.');const _0x7fdb75=_0x192a7f['getUnitId'](),_0x2cac47=this['_liveShareController'][_0x2b54e1(0xdc)](_0x7fdb75);return(_0x387571=_0x2cac47==null?void 0x0:_0x2cac47['getStatus']())!=null?_0x387571:s[_0x2b54e1(0xd8)][_0x2b54e1(0xe7)];}[_0x199ffd(0xcc)](){const _0x40ab56=_0x199ffd,_0x830f31=this[_0x40ab56(0xea)][_0x40ab56(0xda)](n[_0x40ab56(0xd2)])[_0x40ab56(0xe4)](n[_0x40ab56(0xdf)][_0x40ab56(0xd5)]);if(!_0x830f31)throw new Error(_0x40ab56(0xde));const _0x87a03f=_0x830f31[_0x40ab56(0xce)](),_0x3e2489=this['_liveShareController'][_0x40ab56(0xdc)](_0x87a03f);if(!_0x3e2489)throw new Error(_0x40ab56(0xcb));_0x3e2489[_0x40ab56(0xcc)]();}[_0x199ffd(0xe6)](){const _0x13e14d=_0x199ffd,_0x26ed4c=this[_0x13e14d(0xea)][_0x13e14d(0xda)](n[_0x13e14d(0xd2)])[_0x13e14d(0xe4)](n[_0x13e14d(0xdf)]['UNIVER_SHEET']);if(!_0x26ed4c)throw new Error('No\x20active\x20workbook\x20found.');const _0x9f2df7=_0x26ed4c[_0x13e14d(0xce)](),_0x184fdb=this['_liveShareController'][_0x13e14d(0xdc)](_0x9f2df7);if(!_0x184fdb)throw new Error(_0x13e14d(0xcb));_0x184fdb[_0x13e14d(0xe6)]();}[_0x199ffd(0xe0)](){const _0x50dc10=_0x199ffd,_0x142a09=this[_0x50dc10(0xea)][_0x50dc10(0xda)](n[_0x50dc10(0xd2)])['getCurrentUnitOfType'](n[_0x50dc10(0xdf)][_0x50dc10(0xd5)]);if(!_0x142a09)throw new Error('No\x20active\x20workbook\x20found.');const _0x4704d0=_0x142a09[_0x50dc10(0xce)](),_0x3389b3=this[_0x50dc10(0xdd)][_0x50dc10(0xdc)](_0x4704d0);if(!_0x3389b3)throw new Error(_0x50dc10(0xcb));_0x3389b3[_0x50dc10(0xca)]();}[_0x199ffd(0xdb)](){const _0x50941d=_0x199ffd,_0x10d704=this['_injector'][_0x50941d(0xda)](n[_0x50941d(0xd2)])['getCurrentUnitOfType'](n[_0x50941d(0xdf)]['UNIVER_SHEET']);if(!_0x10d704)throw new Error(_0x50941d(0xde));const _0x1532c5=_0x10d704[_0x50941d(0xce)](),_0x11e74c=this[_0x50941d(0xdd)]['getLiveShareCoordinatorSync'](_0x1532c5);if(!_0x11e74c)throw new Error(_0x50941d(0xcb));_0x11e74c[_0x50941d(0xdb)]();}}c[_0x199ffd(0xd1)]['extend'](I);function _0x55d5(){const _0x3169b7=['FUniver','IUniverInstanceService','24WwfljM','2835844vuCfAZ','UNIVER_SHEET','defineProperty','LiveShareStatusEnum','LiveShareStatus','263380LODdjF','get','stopPresenting','getLiveShareCoordinatorSync','_liveShareController','No\x20active\x20workbook\x20found.','UniverInstanceType','startPresenting','698298oDfYkp','2096601NlnwAH','2377270sZwfOe','getCurrentUnitOfType','extend','stopFollowing','IDLE','2436930CaFdBD','136459UAcKat','_injector','getLiveShareStatus','tryStartPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','_initialize','getUnitId','symbol','LiveShareController'];_0x55d5=function(){return _0x3169b7;};return _0x55d5();}class l extends c['FEnum']{get[_0x199ffd(0xd7)](){return s['LiveShareStatus'];}}c['FEnum'][_0x199ffd(0xe5)](l);
1
+ 'use strict';const _0x4f3ddf=_0x12bb;function _0x12bb(_0x3d75dc,_0x40b13c){_0x3d75dc=_0x3d75dc-0x161;const _0x3bf3c2=_0x3bf3();let _0x12bbad=_0x3bf3c2[_0x3d75dc];return _0x12bbad;}(function(_0x4a5479,_0x501b8b){const _0x5103d1=_0x12bb,_0x158871=_0x4a5479();while(!![]){try{const _0x1c9dc4=-parseInt(_0x5103d1(0x170))/0x1+-parseInt(_0x5103d1(0x177))/0x2*(-parseInt(_0x5103d1(0x17a))/0x3)+parseInt(_0x5103d1(0x163))/0x4*(-parseInt(_0x5103d1(0x164))/0x5)+parseInt(_0x5103d1(0x16d))/0x6*(parseInt(_0x5103d1(0x173))/0x7)+parseInt(_0x5103d1(0x17d))/0x8*(parseInt(_0x5103d1(0x171))/0x9)+parseInt(_0x5103d1(0x178))/0xa*(parseInt(_0x5103d1(0x17c))/0xb)+-parseInt(_0x5103d1(0x167))/0xc;if(_0x1c9dc4===_0x501b8b)break;else _0x158871['push'](_0x158871['shift']());}catch(_0x505f09){_0x158871['push'](_0x158871['shift']());}}}(_0x3bf3,0xe4e00));function _0x3bf3(){const _0x2fc81f=['2760662sTMwrW','19080AlTYQI','IUniverInstanceService','3bWQGZB','LiveShareController','5291PaEZSV','7427624gVvVvl','extend','stopFollowing','get','getLiveShareCoordinatorSync','UNIVER_SHEET','_liveShareController','20972rGsAfT','10hUeOPR','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','20339988KvVVTw','_injector','startFollowing','LiveShareStatus','getLiveShareStatus','No\x20active\x20workbook\x20found.','647706BjRZcz','stopPresenting','IDLE','1771036GVcetP','9RGzMbc','UniverInstanceType','77aflUcB','FUniver','getCurrentUnitOfType','defineProperty'];_0x3bf3=function(){return _0x2fc81f;};return _0x3bf3();}var h=Object[_0x4f3ddf(0x176)],u=(_0x58e8a3,_0x403681,_0x5992c4)=>_0x403681 in _0x58e8a3?h(_0x58e8a3,_0x403681,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5992c4}):_0x58e8a3[_0x403681]=_0x5992c4,S=(_0x3c4149,_0x134e98,_0x3de478)=>u(_0x3c4149,typeof _0x134e98!='symbol'?_0x134e98+'':_0x134e98,_0x3de478);const s=require('@univerjs-pro/live-share'),n=require('@univerjs/core'),c=require('@univerjs/core/facade');class I extends c[_0x4f3ddf(0x174)]{constructor(){super(...arguments),S(this,'_liveShareController');}['_initialize'](_0x2df78a){const _0x3ae167=_0x4f3ddf;this[_0x3ae167(0x162)]=_0x2df78a[_0x3ae167(0x180)](s[_0x3ae167(0x17b)]);}[_0x4f3ddf(0x16b)](){const _0x4211ff=_0x4f3ddf;var _0x48542c;const _0x47e141=this['_injector']['get'](n['IUniverInstanceService'])[_0x4211ff(0x175)](n['UniverInstanceType'][_0x4211ff(0x161)]);if(!_0x47e141)throw new Error('No\x20active\x20workbook\x20found.');const _0x214ab5=_0x47e141['getUnitId'](),_0x470b53=this[_0x4211ff(0x162)][_0x4211ff(0x181)](_0x214ab5);return(_0x48542c=_0x470b53==null?void 0x0:_0x470b53['getStatus']())!=null?_0x48542c:s['LiveShareStatus'][_0x4211ff(0x16f)];}[_0x4f3ddf(0x169)](){const _0x2e95df=_0x4f3ddf,_0x1eaf87=this['_injector'][_0x2e95df(0x180)](n[_0x2e95df(0x179)])[_0x2e95df(0x175)](n[_0x2e95df(0x172)]['UNIVER_SHEET']);if(!_0x1eaf87)throw new Error(_0x2e95df(0x16c));const _0x131064=_0x1eaf87[_0x2e95df(0x165)](),_0x204f5d=this[_0x2e95df(0x162)]['getLiveShareCoordinatorSync'](_0x131064);if(!_0x204f5d)throw new Error(_0x2e95df(0x166));_0x204f5d[_0x2e95df(0x169)]();}[_0x4f3ddf(0x17f)](){const _0x33a108=_0x4f3ddf,_0xfb9959=this[_0x33a108(0x168)][_0x33a108(0x180)](n['IUniverInstanceService'])[_0x33a108(0x175)](n[_0x33a108(0x172)][_0x33a108(0x161)]);if(!_0xfb9959)throw new Error(_0x33a108(0x16c));const _0x518e42=_0xfb9959[_0x33a108(0x165)](),_0x528adc=this['_liveShareController'][_0x33a108(0x181)](_0x518e42);if(!_0x528adc)throw new Error(_0x33a108(0x166));_0x528adc[_0x33a108(0x17f)]();}['startPresenting'](){const _0x31b74d=_0x4f3ddf,_0x28fccd=this['_injector'][_0x31b74d(0x180)](n[_0x31b74d(0x179)])['getCurrentUnitOfType'](n[_0x31b74d(0x172)]['UNIVER_SHEET']);if(!_0x28fccd)throw new Error(_0x31b74d(0x16c));const _0x2b59e4=_0x28fccd[_0x31b74d(0x165)](),_0x198e49=this[_0x31b74d(0x162)]['getLiveShareCoordinatorSync'](_0x2b59e4);if(!_0x198e49)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x198e49['tryStartPresenting']();}[_0x4f3ddf(0x16e)](){const _0x28ff3b=_0x4f3ddf,_0x255f1b=this[_0x28ff3b(0x168)][_0x28ff3b(0x180)](n[_0x28ff3b(0x179)])[_0x28ff3b(0x175)](n[_0x28ff3b(0x172)][_0x28ff3b(0x161)]);if(!_0x255f1b)throw new Error('No\x20active\x20workbook\x20found.');const _0x40faa3=_0x255f1b['getUnitId'](),_0x3d587e=this[_0x28ff3b(0x162)][_0x28ff3b(0x181)](_0x40faa3);if(!_0x3d587e)throw new Error(_0x28ff3b(0x166));_0x3d587e[_0x28ff3b(0x16e)]();}}c[_0x4f3ddf(0x174)][_0x4f3ddf(0x17e)](I);class l extends c['FEnum']{get['LiveShareStatusEnum'](){const _0x3ba7e=_0x4f3ddf;return s[_0x3ba7e(0x16a)];}}c['FEnum'][_0x4f3ddf(0x17e)](l);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1fd348=_0xa007;(function(_0x461b18,_0x32e70b){const _0xfb21f7=_0xa007,_0x42e09e=_0x461b18();while(!![]){try{const _0x51eb1d=-parseInt(_0xfb21f7(0xd7))/0x1+-parseInt(_0xfb21f7(0x18b))/0x2*(parseInt(_0xfb21f7(0x155))/0x3)+-parseInt(_0xfb21f7(0x113))/0x4+parseInt(_0xfb21f7(0xea))/0x5*(parseInt(_0xfb21f7(0x10b))/0x6)+parseInt(_0xfb21f7(0x192))/0x7+-parseInt(_0xfb21f7(0xd8))/0x8+parseInt(_0xfb21f7(0xd6))/0x9*(parseInt(_0xfb21f7(0x11b))/0xa);if(_0x51eb1d===_0x32e70b)break;else _0x42e09e['push'](_0x42e09e['shift']());}catch(_0x59f4cd){_0x42e09e['push'](_0x42e09e['shift']());}}}(_0x57a8,0x99762));var T=Object['defineProperty'],U=(_0xce50db,_0x5e800e,_0x1cba45)=>_0x5e800e in _0xce50db?T(_0xce50db,_0x5e800e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cba45}):_0xce50db[_0x5e800e]=_0x1cba45,_=(_0x530ca2,_0x46c029,_0x213282)=>U(_0x530ca2,typeof _0x46c029!=_0x1fd348(0xe4)?_0x46c029+'':_0x46c029,_0x213282);Object[_0x1fd348(0x10d)](exports,Symbol[_0x1fd348(0x120)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0xb6bb66,..._0x535a9d}){const _0x2a345a=_0x1fd348,{icon:_0x185216,id:_0x511c18,className:_0x1ec6a6,extend:_0x15939a,..._0x1e9c0e}=_0x535a9d,_0x3dc88d=(_0x2a345a(0x197)+_0x511c18+'\x20'+(_0x1ec6a6||''))[_0x2a345a(0x144)](),_0x3c8d0e=v[_0x2a345a(0x19a)]('_'+H());return j(_0x185216,''+_0x511c18,{'defIds':_0x185216['defIds'],'idSuffix':_0x3c8d0e[_0x2a345a(0x15f)]},{'ref':_0xb6bb66,'className':_0x3dc88d,..._0x1e9c0e},_0x15939a);}function j(_0x1da547,_0x3321a4,_0x5c22d9,_0x1fcf52,_0x166a2a){const _0x1c88ac=_0x1fd348;return v[_0x1c88ac(0x11c)](_0x1da547['tag'],{'key':_0x3321a4,...y(_0x1da547,_0x5c22d9,_0x166a2a),..._0x1fcf52},(F(_0x1da547,_0x5c22d9)[_0x1c88ac(0x17d)]||[])[_0x1c88ac(0x143)]((_0x35b5f6,_0x1b386a)=>j(_0x35b5f6,_0x3321a4+'-'+_0x1da547[_0x1c88ac(0x12a)]+'-'+_0x1b386a,_0x5c22d9,void 0x0,_0x166a2a)));}function y(_0x5304c6,_0x5bff17,_0x2eefae){const _0x2a1d94=_0x1fd348,_0x35eb71={..._0x5304c6[_0x2a1d94(0x135)]};_0x2eefae!=null&&_0x2eefae[_0x2a1d94(0x129)]&&_0x35eb71[_0x2a1d94(0x149)]===_0x2a1d94(0x129)&&(_0x35eb71[_0x2a1d94(0x149)]=_0x2eefae[_0x2a1d94(0x129)]),_0x5304c6[_0x2a1d94(0x12a)]===_0x2a1d94(0x196)&&_0x35eb71['id']&&(_0x35eb71['id']=_0x35eb71['id']+_0x5bff17['idSuffix']),Object['entries'](_0x35eb71)[_0x2a1d94(0x148)](([_0x16865c,_0x3d2fe6])=>{const _0x46e6be=_0x2a1d94;_0x16865c===_0x46e6be(0x196)&&typeof _0x3d2fe6==_0x46e6be(0xe3)&&(_0x35eb71[_0x16865c]=_0x3d2fe6['replace'](/url\(#(.*)\)/,_0x46e6be(0x130)+_0x5bff17['idSuffix']+')'));});const {defIds:_0x5aeb44}=_0x5bff17;return!_0x5aeb44||_0x5aeb44['length']===0x0||(_0x5304c6[_0x2a1d94(0x12a)]===_0x2a1d94(0x18d)&&_0x35eb71[_0x2a1d94(0xe6)]&&(_0x35eb71[_0x2a1d94(0xe6)]=_0x35eb71[_0x2a1d94(0xe6)]+_0x5bff17['idSuffix']),Object[_0x2a1d94(0x181)](_0x35eb71)[_0x2a1d94(0x148)](([_0x525cb0,_0x157c67])=>{const _0x42499f=_0x2a1d94;typeof _0x157c67==_0x42499f(0xe3)&&(_0x35eb71[_0x525cb0]=_0x157c67[_0x42499f(0xe7)](/url\(#(.*)\)/,_0x42499f(0x130)+_0x5bff17[_0x42499f(0x128)]+')'));})),_0x35eb71;}function F(_0x24523b,_0x5a9c9c){const _0x5a4064=_0x1fd348;var _0x27a06b;const {defIds:_0x4f407e}=_0x5a9c9c;return!_0x4f407e||_0x4f407e['length']===0x0?_0x24523b:_0x24523b[_0x5a4064(0x12a)]===_0x5a4064(0x177)&&((_0x27a06b=_0x24523b[_0x5a4064(0x17d)])!=null&&_0x27a06b[_0x5a4064(0x15e)])?{..._0x24523b,'children':_0x24523b[_0x5a4064(0x17d)][_0x5a4064(0x143)](_0x597f1=>typeof _0x597f1[_0x5a4064(0x135)]['id']==_0x5a4064(0xe3)&&_0x4f407e&&_0x4f407e[_0x5a4064(0x160)](_0x597f1['attrs']['id'])?{..._0x597f1,'attrs':{..._0x597f1['attrs'],'id':_0x597f1[_0x5a4064(0x135)]['id']+_0x5a9c9c['idSuffix']}}:_0x597f1)}:_0x24523b;}function H(){const _0x16d97a=_0x1fd348;return Math[_0x16d97a(0x153)]()[_0x16d97a(0x195)](0x24)[_0x16d97a(0x132)](0x2,0x8);}x[_0x1fd348(0x15a)]=_0x1fd348(0xd9);const V={'tag':_0x1fd348(0x183),'attrs':{'xmlns':_0x1fd348(0x139),'fill':_0x1fd348(0x12c),'viewBox':_0x1fd348(0xed),'width':_0x1fd348(0xcd),'height':'1em'},'children':[{'tag':_0x1fd348(0x1aa),'attrs':{'fill':_0x1fd348(0x13a),'d':_0x1fd348(0x164)}},{'tag':'path','attrs':{'fill':_0x1fd348(0x13a),'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':_0x1fd348(0xd5),'clipRule':_0x1fd348(0xd5)}}]},R=v[_0x1fd348(0x1a2)](function(_0x10e687,_0x12d0f2){const _0x1383a9=_0x1fd348;return v[_0x1383a9(0x11c)](x,Object[_0x1383a9(0x11e)]({},_0x10e687,{'id':'live-share-icon','ref':_0x12d0f2,'icon':V}));});R[_0x1fd348(0x15a)]='LiveShareIcon';class E extends o[_0x1fd348(0x18a)]{constructor(){const _0x279a76=_0x1fd348;super(...arguments),_(this,_0x279a76(0x127),new Set()),_(this,_0x279a76(0xff),new Set());}[_0x1fd348(0x12f)](_0x4d2666){const _0x588c09=_0x1fd348;return this['_sharedOperations']['add'](_0x4d2666),o['toDisposable'](()=>this[_0x588c09(0x127)][_0x588c09(0xe8)](_0x4d2666));}[_0x1fd348(0x172)](_0x352cb3){const _0x5d6ed0=_0x1fd348;return this[_0x5d6ed0(0xff)][_0x5d6ed0(0x175)](_0x352cb3),o[_0x5d6ed0(0x168)](()=>this['_reporters'][_0x5d6ed0(0xe8)](_0x352cb3));}[_0x1fd348(0x133)](_0x28022d){const _0x3eb741=_0x1fd348;return this[_0x3eb741(0x127)][_0x3eb741(0x150)](_0x28022d);}[_0x1fd348(0x104)](_0x26acac){const _0x1dcdf7=_0x1fd348;return Array[_0x1dcdf7(0x14f)](this['_reporters'])[_0x1dcdf7(0x143)](_0x37c8e0=>_0x37c8e0(_0x26acac));}}var M=Object[_0x1fd348(0xfe)],P=(_0x3353e8,_0x35afa1,_0x3c7389,_0x3ecc5f)=>{const _0x1f6e4c=_0x1fd348;for(var _0x55c780=_0x3ecc5f>0x1?void 0x0:_0x3ecc5f?M(_0x35afa1,_0x3c7389):_0x35afa1,_0x6b8e98=_0x3353e8[_0x1f6e4c(0x15e)]-0x1,_0x193ebd;_0x6b8e98>=0x0;_0x6b8e98--)(_0x193ebd=_0x3353e8[_0x6b8e98])&&(_0x55c780=_0x193ebd(_0x55c780)||_0x55c780);return _0x55c780;},S=(_0x424158,_0x4a9f3d)=>(_0x12af7e,_0x3082ba)=>_0x4a9f3d(_0x12af7e,_0x3082ba,_0x424158);exports[_0x1fd348(0x152)]=class extends o['RxDisposable']{constructor(_0x24bffe,_0x57ac9d,_0x2bb1d4){const _0x2c4e79=_0x1fd348;super(),_(this,_0x2c4e79(0x17b),new Map()),(this[_0x2c4e79(0xda)]=_0x24bffe,this[_0x2c4e79(0x16b)]=_0x57ac9d,this['_collabSessionService']=_0x2bb1d4,this[_0x2c4e79(0x122)]());}async[_0x1fd348(0x18f)](_0x3f8f40){return this['_entities']['has'](_0x3f8f40)||await this['_startLiveShareCoordinator'](_0x3f8f40),this['_entities']['get'](_0x3f8f40);}[_0x1fd348(0xf4)](_0x3891a2){const _0x21d053=_0x1fd348;var _0x68e4e8;return(_0x68e4e8=this[_0x21d053(0x17b)][_0x21d053(0x115)](_0x3891a2))!=null?_0x68e4e8:null;}[_0x1fd348(0x122)](){const _0xc8f1cb=_0x1fd348;this[_0xc8f1cb(0xda)]['getTypeOfUnitAdded$'](o[_0xc8f1cb(0x119)][_0xc8f1cb(0x187)])[_0xc8f1cb(0xe9)](I['takeUntil'](this['dispose$']))[_0xc8f1cb(0x114)](async _0x513c69=>{const _0x52056f=_0xc8f1cb,_0x2b4c73=_0x513c69['getUnitId']();this[_0x52056f(0x17b)][_0x52056f(0x150)](_0x2b4c73)||this[_0x52056f(0xf9)](_0x2b4c73);}),this[_0xc8f1cb(0xda)][_0xc8f1cb(0x161)](o[_0xc8f1cb(0x119)][_0xc8f1cb(0x187)])[_0xc8f1cb(0xe9)](I['takeUntil'](this[_0xc8f1cb(0x13b)]))[_0xc8f1cb(0x114)](_0x31428c=>{const _0x117f11=_0xc8f1cb,_0x4cbbd7=_0x31428c['getUnitId'](),_0x32b510=this[_0x117f11(0x17b)]['get'](_0x4cbbd7);_0x32b510==null||_0x32b510[_0x117f11(0xf5)]();});}async[_0x1fd348(0xf9)](_0x2a64c5){const _0x3b084f=_0x1fd348,_0x5052fd=await this[_0x3b084f(0x10c)][_0x3b084f(0x140)](_0x2a64c5),_0x93d141=this['_injector']['createInstance'](exports[_0x3b084f(0x137)],_0x2a64c5,_0x5052fd);return _0x93d141[_0x3b084f(0x16c)](),this[_0x3b084f(0x17b)][_0x3b084f(0x100)](_0x2a64c5,_0x93d141),_0x93d141;}},exports[_0x1fd348(0x152)]=P([S(0x0,o[_0x1fd348(0x17f)]),S(0x1,o[_0x1fd348(0x103)](o['Injector'])),S(0x2,o[_0x1fd348(0x103)](b[_0x1fd348(0x101)]))],exports[_0x1fd348(0x152)]);var u=(_0x21db48=>(_0x21db48['OFFLINE']='offline',_0x21db48[_0x1fd348(0x18e)]=_0x1fd348(0x159),_0x21db48[_0x1fd348(0x198)]=_0x1fd348(0x10a),_0x21db48[_0x1fd348(0xe5)]='not-following',_0x21db48[_0x1fd348(0x16e)]=_0x1fd348(0x107),_0x21db48))(u||{});const k=_0x1fd348(0x191),q=0xc8;exports[_0x1fd348(0x137)]=class extends o[_0x1fd348(0x163)]{constructor(_0x4c99ea,_0x1cf720,_0x392b63,_0x55bb72,_0x4cca8c){const _0x48e511=_0x1fd348;super(),_(this,_0x48e511(0x17c),new O[(_0x48e511(0xd2))](_0x48e511(0x159))),_(this,_0x48e511(0xfd),this[_0x48e511(0x17c)][_0x48e511(0x105)]()),_(this,_0x48e511(0x122),!0x1),_(this,_0x48e511(0xe2),null),_(this,_0x48e511(0xeb),null),(this[_0x48e511(0x167)]=_0x4c99ea,this['_collabSession']=_0x1cf720,this['_configService']=_0x392b63,this[_0x48e511(0x19d)]=_0x55bb72,this[_0x48e511(0x117)]=_0x4cca8c);}get[_0x1fd348(0x158)](){const _0x5c51a9=_0x1fd348;return this[_0x5c51a9(0x17c)][_0x5c51a9(0x142)]();}[_0x1fd348(0xf5)](){const _0x50b860=_0x1fd348;var _0x185a68;(_0x185a68=this[_0x50b860(0xe2)])==null||_0x185a68['dispose'](),this[_0x50b860(0x17c)][_0x50b860(0x157)](_0x50b860(0x159)),this['_status$']['complete']();}['getStatus'](){const _0x2525fc=_0x1fd348;return this[_0x2525fc(0x158)];}[_0x1fd348(0x16c)](){const _0x5e558c=_0x1fd348;this[_0x5e558c(0x122)]||(this[_0x5e558c(0x122)]=!0x0,this['_collabSession']['sessionStatus$'][_0x5e558c(0xe9)](I['takeUntil'](this[_0x5e558c(0x13b)]))[_0x5e558c(0x114)](_0x3aba48=>{const _0x40fdcd=_0x5e558c;switch(_0x3aba48){case b[_0x40fdcd(0x188)]['OFFLINE']:this[_0x40fdcd(0x17e)]();break;case b[_0x40fdcd(0x188)]['ONLINE']:this[_0x40fdcd(0x173)]();break;}}),this[_0x5e558c(0xf1)][_0x5e558c(0x185)][_0x5e558c(0xe9)](I[_0x5e558c(0x179)](this[_0x5e558c(0x13b)]))['subscribe'](_0x1061ee=>{const _0x2b050b=_0x5e558c,{eventID:_0x58a740}=_0x1061ee;switch(_0x58a740){case d['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x2b050b(0x180)](_0x1061ee);break;case d[_0x2b050b(0xf0)][_0x2b050b(0x111)]:this[_0x2b050b(0x15c)](_0x1061ee);break;case d[_0x2b050b(0xf0)][_0x2b050b(0x1a6)]:this[_0x2b050b(0xf3)]();break;case d[_0x2b050b(0xf0)][_0x2b050b(0x124)]:this[_0x2b050b(0x156)](_0x1061ee);break;}}));}[_0x1fd348(0xd1)](){const _0x5bee05=_0x1fd348;this[_0x5bee05(0xf1)][_0x5bee05(0x109)]({'eventID':d['CollaborationEvent'][_0x5bee05(0x112)],'data':{'unitID':this[_0x5bee05(0x167)],'userID':this[_0x5bee05(0xf1)][_0x5bee05(0x12b)]()}},this[_0x5bee05(0x167)]);}[_0x1fd348(0x18c)](){const _0x1c3ac7=_0x1fd348;this[_0x1c3ac7(0x158)]===_0x1c3ac7(0x107)&&(this['_status$'][_0x1c3ac7(0x157)](_0x1c3ac7(0x159)),this[_0x1c3ac7(0xf1)][_0x1c3ac7(0x109)]({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1c3ac7(0x167)]}},this['_unitID']));}['startFollowing'](){const _0x3b31ae=_0x1fd348;this[_0x3b31ae(0x158)]==='not-following'&&(this['_status$'][_0x3b31ae(0x157)](_0x3b31ae(0x10a)),this[_0x3b31ae(0x14c)]());}[_0x1fd348(0x118)](){const _0x540ba8=_0x1fd348;this[_0x540ba8(0x158)]===_0x540ba8(0x10a)&&this[_0x540ba8(0xfc)]();}['_handleNewHost'](_0x21824b){const _0x2835cd=_0x1fd348,{presenter:_0x53abf5}=_0x21824b[_0x2835cd(0x1a7)],_0x4db7ac=this[_0x2835cd(0xf1)][_0x2835cd(0x12b)]();this[_0x2835cd(0xeb)]=_0x53abf5,_0x53abf5===_0x4db7ac?(this[_0x2835cd(0xfc)](),this['_startPresenting']()):this[_0x2835cd(0x158)]!==_0x2835cd(0x15b)&&(this[_0x2835cd(0x184)](),this[_0x2835cd(0x14c)]());}[_0x1fd348(0x13f)](){const _0x544c3e=_0x1fd348,_0x3b59eb={'eventID':d['CollaborationEvent'][_0x544c3e(0x13e)]};this[_0x544c3e(0xf1)][_0x544c3e(0x109)](_0x3b59eb,this[_0x544c3e(0x167)]);}[_0x1fd348(0xf3)](){const _0x335622=_0x1fd348;this[_0x335622(0xeb)]=null,this[_0x335622(0x158)]!==_0x335622(0x107)&&this[_0x335622(0x11a)]();}[_0x1fd348(0x156)](_0x2aa9b9){const _0x4385c7=_0x1fd348;if(this[_0x4385c7(0x158)]==='following'&&this[_0x4385c7(0xeb)]===_0x2aa9b9[_0x4385c7(0x1a7)][_0x4385c7(0x102)]){const _0x450b57=d[_0x4385c7(0x16a)](_0x2aa9b9['data'])[_0x4385c7(0xe1)][_0x4385c7(0xe0)]()['find'](_0x46b65a=>_0x46b65a['id']===C[_0x4385c7(0x146)]['id']);if(_0x450b57){const _0x495d69=_0x450b57[_0x4385c7(0x12e)][_0x4385c7(0x16d)],_0x222bc9=_0x450b57[_0x4385c7(0x12e)][_0x4385c7(0x199)]['id'];setTimeout(()=>{const _0x51c554=_0x4385c7;this['_commandService'][_0x51c554(0x193)](C[_0x51c554(0xd4)]['id'],{'unitId':_0x495d69,'subUnitId':_0x222bc9},{'fromCollab':!0x0});});}}}[_0x1fd348(0x10e)](){const _0x424ed8=_0x1fd348;this[_0x424ed8(0x17c)][_0x424ed8(0x157)]('presenting');const _0x1861d5=new Map(),_0x1369e5=this[_0x424ed8(0xe2)]=new o['DisposableCollection']();_0x1369e5['add'](o[_0x424ed8(0x168)](()=>{const _0x31224c=_0x424ed8;_0x1861d5[_0x31224c(0x148)](_0x93ef1a=>_0x93ef1a[_0x31224c(0xcf)]()),_0x1861d5[_0x31224c(0x151)]();})),_0x1369e5[_0x424ed8(0x175)](this[_0x424ed8(0x117)][_0x424ed8(0xdf)](_0x5a5328=>{const _0x4c8a28=_0x424ed8;var _0x554528;if(_0x5a5328[_0x4c8a28(0x11d)]!==o[_0x4c8a28(0xfb)][_0x4c8a28(0x1ab)]||!this[_0x4c8a28(0x19d)]['shouldShareOperation'](_0x5a5328['id']))return;const {id:_0x4e9f66}=_0x5a5328;let _0x232a5c;_0x1861d5[_0x4c8a28(0x150)](_0x4e9f66)?_0x232a5c=_0x1861d5[_0x4c8a28(0x115)](_0x4e9f66):(_0x232a5c=new O[(_0x4c8a28(0x14d))](),_0x1861d5[_0x4c8a28(0x100)](_0x4e9f66,_0x232a5c),_0x232a5c[_0x4c8a28(0xe9)](I[_0x4c8a28(0x131)]((_0x554528=this['_configService'][_0x4c8a28(0x166)](k))!=null?_0x554528:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x9202c7=>{const _0x1b553a=_0x4c8a28;this[_0x1b553a(0xf1)][_0x1b553a(0x109)]({'eventID':d[_0x1b553a(0xf0)][_0x1b553a(0x111)],'data':{'unitID':this[_0x1b553a(0x167)],'operations':{[_0x9202c7['id']]:{'id':_0x9202c7['id'],'params':JSON[_0x1b553a(0xf2)](_0x9202c7[_0x1b553a(0x12e)])}}}},this['_unitID']);})),_0x232a5c[_0x4c8a28(0x157)](_0x5a5328);})),this['_liveShareService']['getInitialStates'](this[_0x424ed8(0x167)])[_0x424ed8(0x148)](_0x47f5ae=>this['_collabSession'][_0x424ed8(0x109)]({'eventID':d[_0x424ed8(0xf0)][_0x424ed8(0x111)],'data':{'unitID':this[_0x424ed8(0x167)],'operations':{[_0x47f5ae['id']]:{'id':_0x47f5ae['id'],'params':JSON[_0x424ed8(0xf2)](_0x47f5ae[_0x424ed8(0x12e)])}}}},this[_0x424ed8(0x167)]));}['_stopPresenting'](){const _0x55ffc7=_0x1fd348;var _0x551858;this['_status$']['next']('idle'),(_0x551858=this[_0x55ffc7(0xe2)])==null||_0x551858[_0x55ffc7(0xf5)](),this[_0x55ffc7(0xe2)]=null;}['_startFollowing'](){const _0x16ad44=_0x1fd348;var _0x588103;(_0x588103=this[_0x16ad44(0xe2)])==null||_0x588103[_0x16ad44(0xf5)](),this[_0x16ad44(0x17c)]['next'](_0x16ad44(0x10a));}['_beIdle'](){const _0x10aecb=_0x1fd348;var _0x5f2d00;this[_0x10aecb(0x17c)]['next'](_0x10aecb(0x159)),(_0x5f2d00=this[_0x10aecb(0xe2)])==null||_0x5f2d00[_0x10aecb(0xf5)](),this[_0x10aecb(0xe2)]=null;}[_0x1fd348(0xfc)](){const _0x59456e=_0x1fd348;var _0x399d41;this['_status$'][_0x59456e(0x157)]('not-following'),(_0x399d41=this[_0x59456e(0xe2)])==null||_0x399d41[_0x59456e(0xf5)]();}[_0x1fd348(0x15c)](_0x19fb85){const _0x39d245=_0x1fd348;if([_0x39d245(0x107),'not-following',_0x39d245(0x11f)]['includes'](this['_status'])||!_0x19fb85[_0x39d245(0x1a7)][_0x39d245(0x145)]||_0x19fb85[_0x39d245(0x1a7)][_0x39d245(0x145)]===this['_collabSession'][_0x39d245(0x12b)]())return;this[_0x39d245(0x158)]===_0x39d245(0x159)&&this[_0x39d245(0x14c)]();const _0x119004=_0x19fb85['data'][_0x39d245(0x19e)];Object[_0x39d245(0x19c)](_0x119004)['forEach'](_0x340090=>{const _0x559404=_0x39d245;this[_0x559404(0x117)][_0x559404(0x193)](_0x340090['id'],_0x340090[_0x559404(0x12e)]?JSON[_0x559404(0x1a8)](_0x340090[_0x559404(0x12e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3051a5=_0x1fd348;var _0x3be3f0;this[_0x3051a5(0x17c)][_0x3051a5(0x157)](_0x3051a5(0x11f)),(_0x3be3f0=this['_commandDisposable'])==null||_0x3be3f0[_0x3051a5(0xf5)]();}[_0x1fd348(0x173)](){const _0x38639c=_0x1fd348;this[_0x38639c(0x17c)][_0x38639c(0x157)](_0x38639c(0x159)),this['_fetchOperations']();}},exports[_0x1fd348(0x137)]=P([S(0x2,o[_0x1fd348(0xf7)]),S(0x3,o[_0x1fd348(0x103)](E)),S(0x4,o[_0x1fd348(0x126)])],exports[_0x1fd348(0x137)]);function $(){const _0x45a451=_0x1fd348,_0x4f58b8=p['useDependency'](exports['LiveShareController']),_0x72c0de=p[_0x45a451(0x194)](o[_0x45a451(0x17f)]),_0xa0595c=p['useObservable'](()=>_0x72c0de[_0x45a451(0xfa)](o['UniverInstanceType'][_0x45a451(0x187)]),void 0x0,!0x1,[]),[_0x310272,_0x2c83b8]=v[_0x45a451(0x138)](null),[_0x55638c,_0x393d23]=v['useState'](u['IDLE']),_0x146b30=v['useRef'](null);return v[_0x45a451(0x190)](()=>(_0xa0595c&&_0x4f58b8[_0x45a451(0x18f)](_0xa0595c['getUnitId']())[_0x45a451(0x1a1)](_0x4dd9fb=>{const _0x1b0eb7=_0x45a451;_0x2c83b8(_0x4dd9fb),_0x146b30[_0x1b0eb7(0x15f)]=_0x4dd9fb[_0x1b0eb7(0xfd)]['subscribe'](_0x4c7251=>{_0x393d23(_0x4c7251);});}),()=>{const _0x53fc0d=_0x45a451;var _0x93c168;(_0x93c168=_0x146b30['current'])==null||_0x93c168[_0x53fc0d(0x154)](),_0x146b30[_0x53fc0d(0x15f)]=null;}),[_0xa0595c,_0x4f58b8]),_0x310272?l[_0x45a451(0xde)](f['Dropdown'],{'align':_0x45a451(0x14b),'disabled':_0x55638c===u[_0x45a451(0x116)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x45a451(0xde)](W,{'status':_0x55638c,'coordinator':_0x310272}),'children':l[_0x45a451(0xde)]('button',{'className':f[_0x45a451(0x15d)](_0x45a451(0x14a),{'univer-cursor-not-allowed':_0x55638c===u[_0x45a451(0x116)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x55638c!==u[_0x45a451(0x116)]}),'type':_0x45a451(0x1a5),'children':l[_0x45a451(0xde)](R,{'className':_0x45a451(0xce)})})}):null;}function W(_0x206bcd){const _0x217fbf=_0x1fd348,{status:_0x670296,coordinator:_0x25da6b}=_0x206bcd;switch(_0x670296){case u['IDLE']:return l[_0x217fbf(0xde)](G,{'coordinator':_0x25da6b});case u[_0x217fbf(0x198)]:return l[_0x217fbf(0xde)](B,{'coordinator':_0x25da6b});case u[_0x217fbf(0xe5)]:return l['jsx'](Y,{'coordinator':_0x25da6b});case u['OFFLINE']:return l['jsx'](J,{});case u['PRESENTING']:return l['jsx'](Z,{'coordinator':_0x25da6b});default:return null;}}function G(_0x34e5c3){const _0x22f021=_0x1fd348,{coordinator:_0x466e9e}=_0x34e5c3;return l[_0x22f021(0x162)](l['Fragment'],{'children':[l[_0x22f021(0xde)](_0x22f021(0x141),{'className':_0x22f021(0xd3),'children':_0x22f021(0x17a)}),l[_0x22f021(0xde)](f[_0x22f021(0x14e)],{'onClick':()=>_0x466e9e[_0x22f021(0xd1)](),'children':_0x22f021(0xdc)})]});}function B(_0x446071){const _0x513ac2=_0x1fd348,{coordinator:_0x165e58}=_0x446071;return l[_0x513ac2(0x162)](l[_0x513ac2(0x186)],{'children':[l['jsx'](_0x513ac2(0x141),{'className':_0x513ac2(0xd3),'children':_0x513ac2(0x165)}),l[_0x513ac2(0xde)](f[_0x513ac2(0x14e)],{'onClick':()=>_0x165e58[_0x513ac2(0x118)](),'children':'Stop\x20following'})]});}function Y(_0x3d860b){const _0x5006ad=_0x1fd348,{coordinator:_0x24cbd2}=_0x3d860b;return l['jsxs'](l['Fragment'],{'children':[l[_0x5006ad(0xde)](_0x5006ad(0x141),{'className':_0x5006ad(0xd3),'children':_0x5006ad(0x170)}),l[_0x5006ad(0xde)](f[_0x5006ad(0x14e)],{'variant':_0x5006ad(0xd0),'onClick':()=>_0x24cbd2[_0x5006ad(0x16f)](),'children':_0x5006ad(0x125)})]});}function Z(_0x4afd97){const _0x4f54e1=_0x1fd348,{coordinator:_0x4fef9b}=_0x4afd97;return l[_0x4f54e1(0x162)](l['Fragment'],{'children':[l[_0x4f54e1(0xde)](_0x4f54e1(0x141),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4f54e1(0x10f)}),l[_0x4f54e1(0xde)](f[_0x4f54e1(0x14e)],{'variant':_0x4f54e1(0x123),'onClick':()=>_0x4fef9b[_0x4f54e1(0x18c)](),'children':_0x4f54e1(0x189)})]});}function J(){const _0xbc44f9=_0x1fd348;return l['jsx'](l[_0xbc44f9(0x186)],{'children':_0xbc44f9(0x108)});}function _0xa007(_0x58ec80,_0x4fd6be){_0x58ec80=_0x58ec80-0xcd;const _0x57a874=_0x57a8();let _0xa0077b=_0x57a874[_0x58ec80];return _0xa0077b;}var K=Object[_0x1fd348(0xfe)],z=(_0x527c8c,_0x4d268b,_0x7b7d1f,_0x3c4435)=>{for(var _0x3d1c2f=_0x3c4435>0x1?void 0x0:_0x3c4435?K(_0x4d268b,_0x7b7d1f):_0x4d268b,_0x4d1e8c=_0x527c8c['length']-0x1,_0x49db05;_0x4d1e8c>=0x0;_0x4d1e8c--)(_0x49db05=_0x527c8c[_0x4d1e8c])&&(_0x3d1c2f=_0x49db05(_0x3d1c2f)||_0x3d1c2f);return _0x3d1c2f;},L=(_0x27951d,_0x13da31)=>(_0x482993,_0x1289c4)=>_0x13da31(_0x482993,_0x1289c4,_0x27951d);exports['DesktopLiveShareController']=class extends o[_0x1fd348(0x18a)]{constructor(_0x4a8935,_0x142746){const _0x4f8143=_0x1fd348;super(),this[_0x4f8143(0x16b)]=_0x4a8935,this[_0x4f8143(0x13c)]=_0x142746,this[_0x4f8143(0x182)]();}[_0x1fd348(0x182)](){const _0x236606=_0x1fd348;this[_0x236606(0x19b)](this[_0x236606(0x13c)][_0x236606(0x1a3)](p[_0x236606(0x106)][_0x236606(0x110)],()=>p['connectInjector']($,this[_0x236606(0x16b)])));}},exports[_0x1fd348(0x147)]=z([L(0x0,o[_0x1fd348(0x103)](o[_0x1fd348(0x169)])),L(0x1,p[_0x1fd348(0xee)])],exports[_0x1fd348(0x147)]);const Q=_0x1fd348(0x19f),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x20624c,_0x569e8c,_0x55e309,_0x2bcc46)=>{const _0x253998=_0x1fd348;for(var _0x848755=_0x2bcc46>0x1?void 0x0:_0x2bcc46?X(_0x569e8c,_0x55e309):_0x569e8c,_0x133d3a=_0x20624c[_0x253998(0x15e)]-0x1,_0x481256;_0x133d3a>=0x0;_0x133d3a--)(_0x481256=_0x20624c[_0x133d3a])&&(_0x848755=_0x481256(_0x848755)||_0x848755);return _0x848755;},te=(_0x16f6ff,_0x51a5ec)=>(_0x3e3a67,_0x5e6675)=>_0x51a5ec(_0x3e3a67,_0x5e6675,_0x16f6ff);let m=class extends o[_0x1fd348(0x18a)]{constructor(_0xfa289){const _0x2d0985=_0x1fd348;super(),this[_0x2d0985(0x19d)]=_0xfa289,this[_0x2d0985(0x122)]();}[_0x1fd348(0x122)](){const _0x2dae66=_0x1fd348;[D[_0x2dae66(0xf8)]['id'],D[_0x2dae66(0x136)]['id'],C[_0x2dae66(0xd4)]['id']][_0x2dae66(0x148)](_0x21de4a=>{const _0x5b9f3d=_0x2dae66;this[_0x5b9f3d(0x19b)](this['_liveShareService'][_0x5b9f3d(0x12f)](_0x21de4a));});}};m=ee([te(0x0,o[_0x1fd348(0x103)](E))],m);function _0x57a8(){const _0x40c611=['requireSession','div','getValue','map','trim','presenter','InsertSheetMutation','DesktopLiveShareController','forEach','fill','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','end','_startFollowing','Subject','Button','from','has','clear','LiveShareController','random','unsubscribe','186aEpGVI','_handleNewChangeSets','next','_status','idle','displayName','not-following','_handleOperation','clsx','length','current','includes','getTypeOfUnitDisposed$','jsxs','RxDisposable','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','You\x27re\x20following\x20the\x20presenter','getConfig','_unitID','toDisposable','Injector','parseProtocolChangeset','_injector','init','unitId','PRESENTING','startFollowing','You\x27re\x20not\x20following\x20the\x20presenter','touchDependencies','registerInitialStateReporter','_handleOnline','UNIVER_UNKNOWN','add','_configService','defs','UniverCollaborationClientPlugin','takeUntil','Present\x20this\x20document','_entities','_status$','children','_handleOffline','IUniverInstanceService','_handleNewHost','entries','_mountLiveShare','svg','_stopPresenting','event$','Fragment','UNIVER_SHEET','SessionStatus','Stop\x20presenting','Disposable','19252jLAYvj','stopPresenting','use','IDLE','getLiveShareCoordinator','useEffect','SAME_OPERATION_SHARE_INTERVAL','3508778MzAohG','executeCommand','useDependency','toString','mask','univerjs-icon\x20univerjs-icon-','FOLLOWING','sheet','useRef','disposeWithMe','values','_liveShareService','operations','live-share.config','merge','then','forwardRef','registerComponent','LiveShare','button','LIVESHARE_TERMINATE','data','parse','Plugin','path','OPERATION','1em','univer-size-4','complete','text','tryStartPresenting','BehaviorSubject','univer-mb-3\x20univer-w-full\x20univer-text-sm','SetWorksheetActiveOperation','evenodd','1719LpMfsW','846751TerYCC','6310568PpFyLk','UniverIcon','_univerInstanceService','UNIVER_LIVE_SHARE_PLUGIN','Start','onRendered','jsx','onCommandExecuted','reverse','mutations','_commandDisposable','string','symbol','NOT_FOLLOWING','xlink:href','replace','delete','pipe','25vPmBNu','_presenter','LiveShareStatus','0\x200\x2017\x2017','IUIPartsService','LiveShareService','CollaborationEvent','_collabSession','stringify','_handleTerminate','getLiveShareCoordinatorSync','dispose','override','IConfigService','SetZoomRatioOperation','_startLiveShareCoordinator','getCurrentTypeOfUnit$','CommandType','_stopFollowing','status$','getOwnPropertyDescriptor','_reporters','set','CollaborationSessionService','memberID','Inject','getInitialStates','asObservable','BuiltInUIPart','presenting','You\x27are\x20offline.','send','following','976248zENfEp','_collabSessionService','defineProperty','_startPresenting','You\x27re\x20presenting\x20the\x20document','HEADER_MENU','LIVESHARE_OPERATION','LIVESHARE_REQUEST_HOST','567560RotpZt','subscribe','get','OFFLINE','_commandService','stopFollowing','UniverInstanceType','_beIdle','88380vvlBRb','createElement','type','assign','offline','toStringTag','_config','_init','default','NEW_CHANGESETS','Start\x20following','ICommandService','_sharedOperations','idSuffix','colorChannel1','tag','getMemberID','none','DependentOn','params','registerSharedOperation','url(#$1','throttleTime','substring','shouldShareOperation','UniverLiveSharePlugin','attrs','SetScrollOperation','LiveShareCoordinator','useState','http://www.w3.org/2000/svg','currentColor','dispose$','_uiPartsService','setConfig','LIVESHARE_FETCH_OPERATIONS','_fetchOperations'];_0x57a8=function(){return _0x40c611;};return _0x57a8();}var ie=Object[_0x1fd348(0x10d)],se=Object['getOwnPropertyDescriptor'],ne=(_0x18c99c,_0x29179a,_0x34b2e7)=>_0x29179a in _0x18c99c?ie(_0x18c99c,_0x29179a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34b2e7}):_0x18c99c[_0x29179a]=_0x34b2e7,re=(_0x280ea3,_0x1c651e,_0x55e98e,_0x5d85e8)=>{const _0x42747e=_0x1fd348;for(var _0x482915=_0x5d85e8>0x1?void 0x0:_0x5d85e8?se(_0x1c651e,_0x55e98e):_0x1c651e,_0x8c23c=_0x280ea3[_0x42747e(0x15e)]-0x1,_0x2e6ca3;_0x8c23c>=0x0;_0x8c23c--)(_0x2e6ca3=_0x280ea3[_0x8c23c])&&(_0x482915=_0x2e6ca3(_0x482915)||_0x482915);return _0x482915;},N=(_0x348c3d,_0x2111df)=>(_0x4ffee3,_0x47a5c7)=>_0x2111df(_0x4ffee3,_0x47a5c7,_0x348c3d),A=(_0x459050,_0x1deac3,_0x34f117)=>ne(_0x459050,typeof _0x1deac3!=_0x1fd348(0xe4)?_0x1deac3+'':_0x1deac3,_0x34f117);const oe=_0x1fd348(0xdb);exports['UniverLiveSharePlugin']=class extends o[_0x1fd348(0x1a9)]{constructor(_0x4e191b=w,_0x4f7a88,_0x1333a7){const _0x35a91e=_0x1fd348;super(),this[_0x35a91e(0x121)]=_0x4e191b,this[_0x35a91e(0x16b)]=_0x4f7a88,this[_0x35a91e(0x176)]=_0x1333a7;const {..._0x21f580}=o[_0x35a91e(0x1a0)]({},w,this[_0x35a91e(0x121)]);this['_configService'][_0x35a91e(0x13d)](Q,_0x21f580);}['onStarting'](){const _0xe3f5d=_0x1fd348;o['registerDependencies'](this[_0xe3f5d(0x16b)],o['mergeOverrideWithDependencies']([[E],[exports[_0xe3f5d(0x152)]],[m],[exports['DesktopLiveShareController']]],this[_0xe3f5d(0x121)][_0xe3f5d(0xf6)])),o[_0xe3f5d(0x171)](this[_0xe3f5d(0x16b)],[[m]]);}[_0x1fd348(0xdd)](){const _0x18e4aa=_0x1fd348;o[_0x18e4aa(0x171)](this['_injector'],[[exports[_0x18e4aa(0x147)]]]);}},A(exports[_0x1fd348(0x134)],'type',o['UniverInstanceType'][_0x1fd348(0x174)]),A(exports[_0x1fd348(0x134)],'pluginName',oe),exports[_0x1fd348(0x134)]=re([o[_0x1fd348(0x12d)](b[_0x1fd348(0x178)]),N(0x1,o[_0x1fd348(0x103)](o[_0x1fd348(0x169)])),N(0x2,o[_0x1fd348(0xf7)])],exports[_0x1fd348(0x134)]),exports[_0x1fd348(0x1a4)]=$,exports[_0x1fd348(0xef)]=E,exports[_0x1fd348(0xec)]=u;
1
+ 'use strict';const _0xa3ede=_0x1414;(function(_0x3da658,_0x1a6a78){const _0x2752ce=_0x1414,_0x30a035=_0x3da658();while(!![]){try{const _0x45a89f=parseInt(_0x2752ce(0x1a6))/0x1*(parseInt(_0x2752ce(0x165))/0x2)+parseInt(_0x2752ce(0x112))/0x3*(-parseInt(_0x2752ce(0xe6))/0x4)+-parseInt(_0x2752ce(0x116))/0x5+parseInt(_0x2752ce(0x14c))/0x6*(parseInt(_0x2752ce(0x17d))/0x7)+-parseInt(_0x2752ce(0xf8))/0x8+parseInt(_0x2752ce(0x16b))/0x9*(-parseInt(_0x2752ce(0x14d))/0xa)+parseInt(_0x2752ce(0x107))/0xb;if(_0x45a89f===_0x1a6a78)break;else _0x30a035['push'](_0x30a035['shift']());}catch(_0x425210){_0x30a035['push'](_0x30a035['shift']());}}}(_0x409c,0xe5413));var T=Object[_0xa3ede(0xef)],U=(_0x300354,_0x427b65,_0x4d2b6b)=>_0x427b65 in _0x300354?T(_0x300354,_0x427b65,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d2b6b}):_0x300354[_0x427b65]=_0x4d2b6b,_=(_0x3679da,_0x59562d,_0x4e5e44)=>U(_0x3679da,typeof _0x59562d!=_0xa3ede(0x1ac)?_0x59562d+'':_0x59562d,_0x4e5e44);Object['defineProperty'](exports,Symbol[_0xa3ede(0x18e)],{'value':_0xa3ede(0xdd)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x2884ac,..._0x42e01f}){const _0x476eb1=_0xa3ede,{icon:_0x404bc4,id:_0x2abea8,className:_0x5e9ce9,extend:_0x1047b3,..._0x27bbe1}=_0x42e01f,_0x1d37ba=(_0x476eb1(0x1aa)+_0x2abea8+'\x20'+(_0x5e9ce9||''))['trim'](),_0x2eb3d1=v[_0x476eb1(0x12f)]('_'+H());return j(_0x404bc4,''+_0x2abea8,{'defIds':_0x404bc4[_0x476eb1(0xe3)],'idSuffix':_0x2eb3d1[_0x476eb1(0x16d)]},{'ref':_0x2884ac,'className':_0x1d37ba,..._0x27bbe1},_0x1047b3);}function j(_0x3c6c89,_0x27b0d8,_0x3cfeb7,_0x5ee408,_0x203de1){const _0x4d87ef=_0xa3ede;return v[_0x4d87ef(0x127)](_0x3c6c89[_0x4d87ef(0x161)],{'key':_0x27b0d8,...y(_0x3c6c89,_0x3cfeb7,_0x203de1),..._0x5ee408},(F(_0x3c6c89,_0x3cfeb7)[_0x4d87ef(0xe7)]||[])[_0x4d87ef(0x147)]((_0x4caf5e,_0x434a75)=>j(_0x4caf5e,_0x27b0d8+'-'+_0x3c6c89[_0x4d87ef(0x161)]+'-'+_0x434a75,_0x3cfeb7,void 0x0,_0x203de1)));}function y(_0x5565a5,_0x492f6b,_0x444303){const _0x535a99=_0xa3ede,_0x112a34={..._0x5565a5[_0x535a99(0x111)]};_0x444303!=null&&_0x444303[_0x535a99(0x122)]&&_0x112a34[_0x535a99(0x17e)]==='colorChannel1'&&(_0x112a34[_0x535a99(0x17e)]=_0x444303[_0x535a99(0x122)]),_0x5565a5[_0x535a99(0x161)]===_0x535a99(0x17a)&&_0x112a34['id']&&(_0x112a34['id']=_0x112a34['id']+_0x492f6b[_0x535a99(0x176)]),Object['entries'](_0x112a34)['forEach'](([_0xf9210a,_0x367f0d])=>{const _0x2ab9f1=_0x535a99;_0xf9210a==='mask'&&typeof _0x367f0d==_0x2ab9f1(0x17b)&&(_0x112a34[_0xf9210a]=_0x367f0d['replace'](/url\(#(.*)\)/,_0x2ab9f1(0x19b)+_0x492f6b[_0x2ab9f1(0x176)]+')'));});const {defIds:_0x18ee2e}=_0x492f6b;return!_0x18ee2e||_0x18ee2e[_0x535a99(0x18c)]===0x0||(_0x5565a5[_0x535a99(0x161)]===_0x535a99(0x13f)&&_0x112a34[_0x535a99(0xf6)]&&(_0x112a34[_0x535a99(0xf6)]=_0x112a34[_0x535a99(0xf6)]+_0x492f6b['idSuffix']),Object['entries'](_0x112a34)[_0x535a99(0x16c)](([_0x4b077,_0x326d8d])=>{const _0x2198e5=_0x535a99;typeof _0x326d8d=='string'&&(_0x112a34[_0x4b077]=_0x326d8d[_0x2198e5(0x169)](/url\(#(.*)\)/,_0x2198e5(0x19b)+_0x492f6b[_0x2198e5(0x176)]+')'));})),_0x112a34;}function F(_0x553783,_0x5ce415){const _0x474973=_0xa3ede;var _0x2dc96f;const {defIds:_0x558bb5}=_0x5ce415;return!_0x558bb5||_0x558bb5[_0x474973(0x18c)]===0x0?_0x553783:_0x553783['tag']==='defs'&&((_0x2dc96f=_0x553783['children'])!=null&&_0x2dc96f[_0x474973(0x18c)])?{..._0x553783,'children':_0x553783[_0x474973(0xe7)][_0x474973(0x147)](_0x3313d6=>typeof _0x3313d6[_0x474973(0x111)]['id']==_0x474973(0x17b)&&_0x558bb5&&_0x558bb5[_0x474973(0x128)](_0x3313d6[_0x474973(0x111)]['id'])?{..._0x3313d6,'attrs':{..._0x3313d6[_0x474973(0x111)],'id':_0x3313d6[_0x474973(0x111)]['id']+_0x5ce415[_0x474973(0x176)]}}:_0x3313d6)}:_0x553783;}function H(){const _0x3c7abf=_0xa3ede;return Math[_0x3c7abf(0x168)]()[_0x3c7abf(0x11f)](0x24)[_0x3c7abf(0xec)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':'svg','attrs':{'xmlns':_0xa3ede(0xfe),'fill':_0xa3ede(0x175),'viewBox':_0xa3ede(0x146),'width':_0xa3ede(0x12a),'height':_0xa3ede(0x12a)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0xa3ede(0x19f)}},{'tag':_0xa3ede(0x10e),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0xa3ede(0xfa),'clipRule':_0xa3ede(0xfa)}}]},R=v[_0xa3ede(0x137)](function(_0x5ace2e,_0x2bac1c){const _0xefde4a=_0xa3ede;return v[_0xefde4a(0x127)](x,Object['assign']({},_0x5ace2e,{'id':'live-share-icon','ref':_0x2bac1c,'icon':V}));});function _0x1414(_0x2024fb,_0x5ce453){_0x2024fb=_0x2024fb-0xdd;const _0x409cb8=_0x409c();let _0x141418=_0x409cb8[_0x2024fb];return _0x141418;}R[_0xa3ede(0x15f)]=_0xa3ede(0x11e);class E extends o[_0xa3ede(0x141)]{constructor(){const _0xea54e4=_0xa3ede;super(...arguments),_(this,_0xea54e4(0x155),new Set()),_(this,'_reporters',new Set());}['registerSharedOperation'](_0x45976f){const _0x179e48=_0xa3ede;return this[_0x179e48(0x155)][_0x179e48(0x15a)](_0x45976f),o['toDisposable'](()=>this[_0x179e48(0x155)][_0x179e48(0xf3)](_0x45976f));}[_0xa3ede(0x108)](_0x47c66d){const _0x381d42=_0xa3ede;return this[_0x381d42(0x123)][_0x381d42(0x15a)](_0x47c66d),o[_0x381d42(0x13a)](()=>this['_reporters'][_0x381d42(0xf3)](_0x47c66d));}[_0xa3ede(0x16a)](_0x32af55){return this['_sharedOperations']['has'](_0x32af55);}[_0xa3ede(0x13b)](_0x27cb93){const _0x530621=_0xa3ede;return Array['from'](this[_0x530621(0x123)])[_0x530621(0x147)](_0x51ad7d=>_0x51ad7d(_0x27cb93));}}var M=Object[_0xa3ede(0x16f)],P=(_0x253cc8,_0x1302e3,_0x38f866,_0xec46e6)=>{const _0x57c0ef=_0xa3ede;for(var _0x507e4d=_0xec46e6>0x1?void 0x0:_0xec46e6?M(_0x1302e3,_0x38f866):_0x1302e3,_0x2fc534=_0x253cc8[_0x57c0ef(0x18c)]-0x1,_0x227081;_0x2fc534>=0x0;_0x2fc534--)(_0x227081=_0x253cc8[_0x2fc534])&&(_0x507e4d=_0x227081(_0x507e4d)||_0x507e4d);return _0x507e4d;},S=(_0x12bf69,_0x111761)=>(_0x130670,_0xdd08a0)=>_0x111761(_0x130670,_0xdd08a0,_0x12bf69);exports[_0xa3ede(0x191)]=class extends o['RxDisposable']{constructor(_0x1f7cae,_0x258dab,_0x662b03){const _0x7a9516=_0xa3ede;super(),_(this,_0x7a9516(0x167),new Map()),(this['_univerInstanceService']=_0x1f7cae,this[_0x7a9516(0x106)]=_0x258dab,this[_0x7a9516(0x197)]=_0x662b03,this[_0x7a9516(0x131)]());}async[_0xa3ede(0xf9)](_0x5ef58e){const _0x232278=_0xa3ede;return this[_0x232278(0x167)][_0x232278(0xf1)](_0x5ef58e)||await this[_0x232278(0x187)](_0x5ef58e),this[_0x232278(0x167)]['get'](_0x5ef58e);}['getLiveShareCoordinatorSync'](_0x2c9abf){const _0x3f9b84=_0xa3ede;var _0x3328ae;return(_0x3328ae=this[_0x3f9b84(0x167)]['get'](_0x2c9abf))!=null?_0x3328ae:null;}[_0xa3ede(0x131)](){const _0x1c06c8=_0xa3ede;this[_0x1c06c8(0x10d)]['getTypeOfUnitAdded$'](o[_0x1c06c8(0x177)][_0x1c06c8(0x114)])['pipe'](I['takeUntil'](this[_0x1c06c8(0x196)]))[_0x1c06c8(0x14f)](async _0x17465e=>{const _0x322b81=_0x1c06c8,_0x137714=_0x17465e['getUnitId']();this[_0x322b81(0x167)][_0x322b81(0xf1)](_0x137714)||this[_0x322b81(0x187)](_0x137714);}),this[_0x1c06c8(0x10d)][_0x1c06c8(0xe0)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x1c06c8(0x17c)](I['takeUntil'](this['dispose$']))[_0x1c06c8(0x14f)](_0x3739ed=>{const _0xbe0895=_0x1c06c8,_0x5c1231=_0x3739ed[_0xbe0895(0x164)](),_0x1eacc9=this[_0xbe0895(0x167)][_0xbe0895(0x1a0)](_0x5c1231);_0x1eacc9==null||_0x1eacc9[_0xbe0895(0xdf)]();});}async[_0xa3ede(0x187)](_0x1ce4eb){const _0x557422=_0xa3ede,_0x3f3964=await this[_0x557422(0x197)][_0x557422(0x118)](_0x1ce4eb),_0x19aab8=this[_0x557422(0x106)]['createInstance'](exports[_0x557422(0x178)],_0x1ce4eb,_0x3f3964);return _0x19aab8[_0x557422(0xeb)](),this[_0x557422(0x167)]['set'](_0x1ce4eb,_0x19aab8),_0x19aab8;}},exports[_0xa3ede(0x191)]=P([S(0x0,o[_0xa3ede(0x11a)]),S(0x1,o[_0xa3ede(0x109)](o['Injector'])),S(0x2,o['Inject'](b[_0xa3ede(0x149)]))],exports[_0xa3ede(0x191)]);var u=(_0x4555d9=>(_0x4555d9['OFFLINE']=_0xa3ede(0x181),_0x4555d9[_0xa3ede(0x1a2)]='idle',_0x4555d9[_0xa3ede(0x12d)]=_0xa3ede(0x172),_0x4555d9['NOT_FOLLOWING']=_0xa3ede(0x1a1),_0x4555d9[_0xa3ede(0x1a4)]='presenting',_0x4555d9))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports['LiveShareCoordinator']=class extends o[_0xa3ede(0x133)]{constructor(_0x8c8d95,_0x587d4d,_0x403db2,_0x1dd574,_0x7c7d2b){const _0x3b37a0=_0xa3ede;super(),_(this,_0x3b37a0(0x188),new O[(_0x3b37a0(0x1ad))]('idle')),_(this,_0x3b37a0(0x121),this[_0x3b37a0(0x188)][_0x3b37a0(0x1a7)]()),_(this,_0x3b37a0(0x131),!0x1),_(this,_0x3b37a0(0x10b),null),_(this,_0x3b37a0(0x163),null),(this[_0x3b37a0(0x154)]=_0x8c8d95,this[_0x3b37a0(0x129)]=_0x587d4d,this[_0x3b37a0(0x100)]=_0x403db2,this[_0x3b37a0(0x195)]=_0x1dd574,this[_0x3b37a0(0x19a)]=_0x7c7d2b);}get[_0xa3ede(0x189)](){const _0x4bc046=_0xa3ede;return this[_0x4bc046(0x188)]['getValue']();}[_0xa3ede(0xdf)](){const _0x5d9f92=_0xa3ede;var _0x6548a9;(_0x6548a9=this[_0x5d9f92(0x10b)])==null||_0x6548a9[_0x5d9f92(0xdf)](),this[_0x5d9f92(0x188)]['next'](_0x5d9f92(0xe2)),this['_status$'][_0x5d9f92(0x18d)]();}[_0xa3ede(0x138)](){const _0x98b9ac=_0xa3ede;return this[_0x98b9ac(0x189)];}['init'](){const _0x1eea7b=_0xa3ede;this[_0x1eea7b(0x131)]||(this[_0x1eea7b(0x131)]=!0x0,this[_0x1eea7b(0x129)]['sessionStatus$'][_0x1eea7b(0x17c)](I[_0x1eea7b(0x156)](this[_0x1eea7b(0x196)]))['subscribe'](_0x25a14e=>{const _0x5b068e=_0x1eea7b;switch(_0x25a14e){case b[_0x5b068e(0x15e)][_0x5b068e(0x117)]:this[_0x5b068e(0xff)]();break;case b[_0x5b068e(0x15e)]['ONLINE']:this[_0x5b068e(0x110)]();break;}}),this[_0x1eea7b(0x129)][_0x1eea7b(0xed)][_0x1eea7b(0x17c)](I[_0x1eea7b(0x156)](this['dispose$']))[_0x1eea7b(0x14f)](_0x439c9d=>{const _0x36546f=_0x1eea7b,{eventID:_0x4b10cc}=_0x439c9d;switch(_0x4b10cc){case d[_0x36546f(0x170)][_0x36546f(0x14b)]:this['_handleNewHost'](_0x439c9d);break;case d[_0x36546f(0x170)][_0x36546f(0x18a)]:this[_0x36546f(0xf4)](_0x439c9d);break;case d[_0x36546f(0x170)]['LIVESHARE_TERMINATE']:this[_0x36546f(0x1a8)]();break;case d[_0x36546f(0x170)]['NEW_CHANGESETS']:this[_0x36546f(0x198)](_0x439c9d);break;}}));}[_0xa3ede(0xe8)](){const _0x39c099=_0xa3ede;this[_0x39c099(0x129)][_0x39c099(0xf7)]({'eventID':d[_0x39c099(0x170)][_0x39c099(0x15d)],'data':{'unitID':this[_0x39c099(0x154)],'userID':this[_0x39c099(0x129)][_0x39c099(0x135)]()}},this['_unitID']);}[_0xa3ede(0x10f)](){const _0x42ef2d=_0xa3ede;this['_status']===_0x42ef2d(0x14e)&&(this[_0x42ef2d(0x188)][_0x42ef2d(0xfc)](_0x42ef2d(0xe2)),this[_0x42ef2d(0x129)][_0x42ef2d(0xf7)]({'eventID':d[_0x42ef2d(0x170)][_0x42ef2d(0x12e)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0xa3ede(0x1a9)](){const _0x36e6a8=_0xa3ede;this['_status']===_0x36e6a8(0x1a1)&&(this[_0x36e6a8(0x188)]['next'](_0x36e6a8(0x172)),this[_0x36e6a8(0x157)]());}[_0xa3ede(0xf5)](){const _0x31e713=_0xa3ede;this[_0x31e713(0x189)]===_0x31e713(0x172)&&this['_stopFollowing']();}[_0xa3ede(0x153)](_0x248d80){const _0x50611c=_0xa3ede,{presenter:_0x4cb770}=_0x248d80[_0x50611c(0x184)],_0x4200d4=this[_0x50611c(0x129)]['getMemberID']();this[_0x50611c(0x163)]=_0x4cb770,_0x4cb770===_0x4200d4?(this['_stopFollowing'](),this[_0x50611c(0x119)]()):this[_0x50611c(0x189)]!==_0x50611c(0x1a1)&&(this[_0x50611c(0xee)](),this[_0x50611c(0x157)]());}[_0xa3ede(0x12b)](){const _0x3d95ac=_0xa3ede,_0xee313f={'eventID':d[_0x3d95ac(0x170)][_0x3d95ac(0x192)]};this[_0x3d95ac(0x129)][_0x3d95ac(0xf7)](_0xee313f,this[_0x3d95ac(0x154)]);}[_0xa3ede(0x1a8)](){const _0x858827=_0xa3ede;this[_0x858827(0x163)]=null,this['_status']!==_0x858827(0x14e)&&this[_0x858827(0x19e)]();}[_0xa3ede(0x198)](_0x5a2e6e){const _0x455c2a=_0xa3ede;if(this[_0x455c2a(0x189)]===_0x455c2a(0x172)&&this[_0x455c2a(0x163)]===_0x5a2e6e[_0x455c2a(0x184)]['memberID']){const _0x5ad206=d[_0x455c2a(0x174)](_0x5a2e6e[_0x455c2a(0x184)])[_0x455c2a(0xfd)][_0x455c2a(0x18b)]()['find'](_0x39864f=>_0x39864f['id']===C[_0x455c2a(0xe1)]['id']);if(_0x5ad206){const _0x508568=_0x5ad206[_0x455c2a(0x190)][_0x455c2a(0xe4)],_0x3da130=_0x5ad206['params'][_0x455c2a(0x12c)]['id'];setTimeout(()=>{const _0x43ce17=_0x455c2a;this[_0x43ce17(0x19a)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x508568,'subUnitId':_0x3da130},{'fromCollab':!0x0});});}}}[_0xa3ede(0x119)](){const _0x453fc6=_0xa3ede;this[_0x453fc6(0x188)][_0x453fc6(0xfc)](_0x453fc6(0x14e));const _0x1c5703=new Map(),_0x5d8ab=this[_0x453fc6(0x10b)]=new o[(_0x453fc6(0x13d))]();_0x5d8ab[_0x453fc6(0x15a)](o[_0x453fc6(0x13a)](()=>{const _0x30a249=_0x453fc6;_0x1c5703[_0x30a249(0x16c)](_0x16b8ca=>_0x16b8ca[_0x30a249(0x18d)]()),_0x1c5703[_0x30a249(0x15b)]();})),_0x5d8ab[_0x453fc6(0x15a)](this[_0x453fc6(0x19a)][_0x453fc6(0x14a)](_0x3a6088=>{const _0x3227ae=_0x453fc6;var _0x352804;if(_0x3a6088[_0x3227ae(0x11b)]!==o[_0x3227ae(0x144)]['OPERATION']||!this[_0x3227ae(0x195)][_0x3227ae(0x16a)](_0x3a6088['id']))return;const {id:_0x5d2d69}=_0x3a6088;let _0x935d05;_0x1c5703[_0x3227ae(0xf1)](_0x5d2d69)?_0x935d05=_0x1c5703['get'](_0x5d2d69):(_0x935d05=new O[(_0x3227ae(0x1a5))](),_0x1c5703[_0x3227ae(0x1a3)](_0x5d2d69,_0x935d05),_0x935d05[_0x3227ae(0x17c)](I[_0x3227ae(0x1ab)]((_0x352804=this['_configService'][_0x3227ae(0x125)](k))!=null?_0x352804:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xeb50bd=>{const _0x5d366e=_0x3227ae;this[_0x5d366e(0x129)][_0x5d366e(0xf7)]({'eventID':d[_0x5d366e(0x170)][_0x5d366e(0x18a)],'data':{'unitID':this[_0x5d366e(0x154)],'operations':{[_0xeb50bd['id']]:{'id':_0xeb50bd['id'],'params':JSON['stringify'](_0xeb50bd['params'])}}}},this[_0x5d366e(0x154)]);})),_0x935d05['next'](_0x3a6088);})),this[_0x453fc6(0x195)][_0x453fc6(0x13b)](this['_unitID'])[_0x453fc6(0x16c)](_0x127762=>this['_collabSession'][_0x453fc6(0xf7)]({'eventID':d[_0x453fc6(0x170)][_0x453fc6(0x18a)],'data':{'unitID':this[_0x453fc6(0x154)],'operations':{[_0x127762['id']]:{'id':_0x127762['id'],'params':JSON[_0x453fc6(0xf2)](_0x127762[_0x453fc6(0x190)])}}}},this[_0x453fc6(0x154)]));}[_0xa3ede(0xee)](){const _0xb68493=_0xa3ede;var _0x36c989;this['_status$']['next']('idle'),(_0x36c989=this[_0xb68493(0x10b)])==null||_0x36c989['dispose'](),this[_0xb68493(0x10b)]=null;}['_startFollowing'](){const _0x3fb340=_0xa3ede;var _0x11c4ee;(_0x11c4ee=this[_0x3fb340(0x10b)])==null||_0x11c4ee[_0x3fb340(0xdf)](),this[_0x3fb340(0x188)]['next'](_0x3fb340(0x172));}[_0xa3ede(0x19e)](){const _0x50f5ba=_0xa3ede;var _0x5a1b83;this[_0x50f5ba(0x188)][_0x50f5ba(0xfc)](_0x50f5ba(0xe2)),(_0x5a1b83=this[_0x50f5ba(0x10b)])==null||_0x5a1b83[_0x50f5ba(0xdf)](),this[_0x50f5ba(0x10b)]=null;}[_0xa3ede(0x183)](){const _0x24e0b2=_0xa3ede;var _0x1a9b4d;this['_status$']['next']('not-following'),(_0x1a9b4d=this[_0x24e0b2(0x10b)])==null||_0x1a9b4d[_0x24e0b2(0xdf)]();}[_0xa3ede(0xf4)](_0x2e69f5){const _0x4b542b=_0xa3ede;if(['presenting',_0x4b542b(0x1a1),_0x4b542b(0x181)][_0x4b542b(0x128)](this[_0x4b542b(0x189)])||!_0x2e69f5[_0x4b542b(0x184)]['presenter']||_0x2e69f5[_0x4b542b(0x184)][_0x4b542b(0x193)]===this['_collabSession'][_0x4b542b(0x135)]())return;this[_0x4b542b(0x189)]===_0x4b542b(0xe2)&&this[_0x4b542b(0x157)]();const _0x2c5761=_0x2e69f5[_0x4b542b(0x184)]['operations'];Object[_0x4b542b(0x132)](_0x2c5761)[_0x4b542b(0x16c)](_0xfbcfee=>{const _0x19ff34=_0x4b542b;this['_commandService']['executeCommand'](_0xfbcfee['id'],_0xfbcfee[_0x19ff34(0x190)]?JSON[_0x19ff34(0x18f)](_0xfbcfee['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x12523e=_0xa3ede;var _0x21e17f;this[_0x12523e(0x188)][_0x12523e(0xfc)]('offline'),(_0x21e17f=this[_0x12523e(0x10b)])==null||_0x21e17f[_0x12523e(0xdf)]();}[_0xa3ede(0x110)](){const _0x162b10=_0xa3ede;this[_0x162b10(0x188)][_0x162b10(0xfc)](_0x162b10(0xe2)),this['_fetchOperations']();}},exports[_0xa3ede(0x178)]=P([S(0x2,o[_0xa3ede(0xfb)]),S(0x3,o[_0xa3ede(0x109)](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function $(){const _0x530067=_0xa3ede,_0x5e6814=p['useDependency'](exports[_0x530067(0x191)]),_0x582743=p['useDependency'](o[_0x530067(0x11a)]),_0x114552=p['useObservable'](()=>_0x582743['getCurrentTypeOfUnit$'](o[_0x530067(0x177)][_0x530067(0x114)]),void 0x0,!0x1,[]),[_0x5c1b7a,_0x5d53a6]=v[_0x530067(0x113)](null),[_0x7a901f,_0x3f0876]=v['useState'](u[_0x530067(0x1a2)]),_0x570af4=v[_0x530067(0x12f)](null);return v[_0x530067(0x171)](()=>(_0x114552&&_0x5e6814[_0x530067(0xf9)](_0x114552['getUnitId']())[_0x530067(0x19d)](_0x45a76d=>{const _0x184d15=_0x530067;_0x5d53a6(_0x45a76d),_0x570af4[_0x184d15(0x16d)]=_0x45a76d[_0x184d15(0x121)][_0x184d15(0x14f)](_0x4e0ee0=>{_0x3f0876(_0x4e0ee0);});}),()=>{const _0x2deed0=_0x530067;var _0x414224;(_0x414224=_0x570af4['current'])==null||_0x414224[_0x2deed0(0x120)](),_0x570af4['current']=null;}),[_0x114552,_0x5e6814]),_0x5c1b7a?l[_0x530067(0x17f)](f[_0x530067(0xea)],{'align':'end','disabled':_0x7a901f===u[_0x530067(0x117)],'className':_0x530067(0x143),'overlay':l[_0x530067(0x17f)](W,{'status':_0x7a901f,'coordinator':_0x5c1b7a}),'children':l[_0x530067(0x17f)]('button',{'className':f[_0x530067(0x130)](_0x530067(0x11c),{'univer-cursor-not-allowed':_0x7a901f===u[_0x530067(0x117)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x7a901f!==u[_0x530067(0x117)]}),'type':_0x530067(0x104),'children':l['jsx'](R,{'className':_0x530067(0x101)})})}):null;}function W(_0x478f7f){const _0x718012=_0xa3ede,{status:_0x3f2e90,coordinator:_0x666873}=_0x478f7f;switch(_0x3f2e90){case u[_0x718012(0x1a2)]:return l[_0x718012(0x17f)](G,{'coordinator':_0x666873});case u[_0x718012(0x12d)]:return l[_0x718012(0x17f)](B,{'coordinator':_0x666873});case u[_0x718012(0x162)]:return l[_0x718012(0x17f)](Y,{'coordinator':_0x666873});case u[_0x718012(0x117)]:return l[_0x718012(0x17f)](J,{});case u[_0x718012(0x1a4)]:return l[_0x718012(0x17f)](Z,{'coordinator':_0x666873});default:return null;}}function G(_0x8b13e9){const _0xc1f5f9=_0xa3ede,{coordinator:_0x3e7aa1}=_0x8b13e9;return l[_0xc1f5f9(0x136)](l[_0xc1f5f9(0xe5)],{'children':[l['jsx'](_0xc1f5f9(0x10a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l['jsx'](f[_0xc1f5f9(0x159)],{'onClick':()=>_0x3e7aa1[_0xc1f5f9(0xe8)](),'children':_0xc1f5f9(0x160)})]});}function B(_0x314e66){const _0x51e54b=_0xa3ede,{coordinator:_0x5ce518}=_0x314e66;return l[_0x51e54b(0x136)](l[_0x51e54b(0xe5)],{'children':[l[_0x51e54b(0x17f)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x51e54b(0x179)}),l[_0x51e54b(0x17f)](f['Button'],{'onClick':()=>_0x5ce518['stopFollowing'](),'children':_0x51e54b(0x124)})]});}function Y(_0x265305){const _0x3a561f=_0xa3ede,{coordinator:_0x562e13}=_0x265305;return l[_0x3a561f(0x136)](l[_0x3a561f(0xe5)],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3a561f(0x158)}),l['jsx'](f[_0x3a561f(0x159)],{'variant':_0x3a561f(0x126),'onClick':()=>_0x562e13['startFollowing'](),'children':_0x3a561f(0x115)})]});}function Z(_0x50e436){const _0x3d67b8=_0xa3ede,{coordinator:_0x523553}=_0x50e436;return l['jsxs'](l[_0x3d67b8(0xe5)],{'children':[l['jsx'](_0x3d67b8(0x10a),{'className':_0x3d67b8(0x11d),'children':_0x3d67b8(0x105)}),l[_0x3d67b8(0x17f)](f[_0x3d67b8(0x159)],{'variant':_0x3d67b8(0x103),'onClick':()=>_0x523553[_0x3d67b8(0x10f)](),'children':_0x3d67b8(0xf0)})]});}function J(){const _0x5bbf1e=_0xa3ede;return l[_0x5bbf1e(0x17f)](l['Fragment'],{'children':_0x5bbf1e(0x186)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x29a78f,_0x2c1996,_0x5cb021,_0x482653)=>{const _0x3a15b6=_0xa3ede;for(var _0x282cd6=_0x482653>0x1?void 0x0:_0x482653?K(_0x2c1996,_0x5cb021):_0x2c1996,_0x115bb9=_0x29a78f[_0x3a15b6(0x18c)]-0x1,_0x3946e0;_0x115bb9>=0x0;_0x115bb9--)(_0x3946e0=_0x29a78f[_0x115bb9])&&(_0x282cd6=_0x3946e0(_0x282cd6)||_0x282cd6);return _0x282cd6;},L=(_0x2a4899,_0x15e169)=>(_0x2db560,_0x399b3c)=>_0x15e169(_0x2db560,_0x399b3c,_0x2a4899);function _0x409c(){const _0x5a9246=['random','replace','shouldShareOperation','137583vlHPKK','forEach','current','UniverCollaborationClientPlugin','getOwnPropertyDescriptor','CollaborationEvent','useEffect','following','LiveShareStatus','parseProtocolChangeset','none','idSuffix','UniverInstanceType','LiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','mask','string','pipe','10311602DjXUaq','fill','jsx','LiveShareService','offline','override','_stopFollowing','data','UNIVER_UNKNOWN','You\x27are\x20offline.','_startLiveShareCoordinator','_status$','_status','LIVESHARE_OPERATION','reverse','length','complete','toStringTag','parse','params','LiveShareController','LIVESHARE_FETCH_OPERATIONS','presenter','BuiltInUIPart','_liveShareService','dispose$','_collabSessionService','_handleNewChangeSets','onStarting','_commandService','url(#$1','Injector','then','_beIdle','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','get','not-following','IDLE','set','PRESENTING','Subject','947oFQwfU','asObservable','_handleTerminate','startFollowing','univerjs-icon\x20univerjs-icon-','throttleTime','symbol','BehaviorSubject','Module','_uiPartsService','dispose','getTypeOfUnitDisposed$','InsertSheetMutation','idle','defIds','unitId','Fragment','44ZHGsDk','children','tryStartPresenting','registerDependencies','Dropdown','init','substring','event$','_stopPresenting','defineProperty','Stop\x20presenting','has','stringify','delete','_handleOperation','stopFollowing','xlink:href','send','13798616DlGxUu','getLiveShareCoordinator','evenodd','IConfigService','next','mutations','http://www.w3.org/2000/svg','_handleOffline','_configService','univer-size-4','SetWorksheetActiveOperation','default','button','You\x27re\x20presenting\x20the\x20document','_injector','55054725wxlibr','registerInitialStateReporter','Inject','div','_commandDisposable','connectInjector','_univerInstanceService','path','stopPresenting','_handleOnline','attrs','351966ARNtWE','useState','UNIVER_SHEET','Start\x20following','6906675pLCEqE','OFFLINE','requireSession','_startPresenting','IUniverInstanceService','type','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareIcon','toString','unsubscribe','status$','colorChannel1','_reporters','Stop\x20following','getConfig','text','createElement','includes','_collabSession','1em','_fetchOperations','sheet','FOLLOWING','LIVESHARE_TERMINATE','useRef','clsx','_init','values','RxDisposable','_config','getMemberID','jsxs','forwardRef','getStatus','disposeWithMe','toDisposable','getInitialStates','_mountLiveShare','DisposableCollection','registerSharedOperation','use','UNIVER_LIVE_SHARE_PLUGIN','Disposable','registerComponent','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','CommandType','SetScrollOperation','0\x200\x2017\x2017','map','setConfig','CollaborationSessionService','onCommandExecuted','LIVESHARE_NEW_HOST','6RstCGn','790NuxsaJ','presenting','subscribe','IUIPartsService','touchDependencies','pluginName','_handleNewHost','_unitID','_sharedOperations','takeUntil','_startFollowing','You\x27re\x20not\x20following\x20the\x20presenter','Button','add','clear','DesktopLiveShareController','LIVESHARE_REQUEST_HOST','SessionStatus','displayName','Start','tag','NOT_FOLLOWING','_presenter','getUnitId','138RXaXQz','UniverLiveSharePlugin','_entities'];_0x409c=function(){return _0x5a9246;};return _0x409c();}exports[_0xa3ede(0x15c)]=class extends o[_0xa3ede(0x141)]{constructor(_0x47912b,_0x496117){const _0x260cc6=_0xa3ede;super(),this['_injector']=_0x47912b,this[_0x260cc6(0xde)]=_0x496117,this['_mountLiveShare']();}[_0xa3ede(0x13c)](){const _0x2d2947=_0xa3ede;this['disposeWithMe'](this[_0x2d2947(0xde)][_0x2d2947(0x142)](p[_0x2d2947(0x194)]['HEADER_MENU'],()=>p[_0x2d2947(0x10c)]($,this[_0x2d2947(0x106)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0xa3ede(0x109)](o[_0xa3ede(0x19c)])),L(0x1,p[_0xa3ede(0x150)])],exports[_0xa3ede(0x15c)]);const Q='live-share.config',w={};var X=Object[_0xa3ede(0x16f)],ee=(_0x48cf39,_0x341092,_0xb0fe9f,_0x5f5d18)=>{const _0x8f9f22=_0xa3ede;for(var _0xe39a18=_0x5f5d18>0x1?void 0x0:_0x5f5d18?X(_0x341092,_0xb0fe9f):_0x341092,_0x134da6=_0x48cf39[_0x8f9f22(0x18c)]-0x1,_0x302ca8;_0x134da6>=0x0;_0x134da6--)(_0x302ca8=_0x48cf39[_0x134da6])&&(_0xe39a18=_0x302ca8(_0xe39a18)||_0xe39a18);return _0xe39a18;},te=(_0x378a6e,_0xe6e1e5)=>(_0x53fadb,_0x7155f2)=>_0xe6e1e5(_0x53fadb,_0x7155f2,_0x378a6e);let m=class extends o['Disposable']{constructor(_0x5c0640){const _0x6b10f2=_0xa3ede;super(),this[_0x6b10f2(0x195)]=_0x5c0640,this['_init']();}[_0xa3ede(0x131)](){const _0x2da8c0=_0xa3ede;[D['SetZoomRatioOperation']['id'],D[_0x2da8c0(0x145)]['id'],C[_0x2da8c0(0x102)]['id']][_0x2da8c0(0x16c)](_0x4e4c4c=>{const _0x66c979=_0x2da8c0;this[_0x66c979(0x139)](this[_0x66c979(0x195)][_0x66c979(0x13e)](_0x4e4c4c));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0xa3ede(0xef)],se=Object[_0xa3ede(0x16f)],ne=(_0x4de822,_0x39a374,_0x15df34)=>_0x39a374 in _0x4de822?ie(_0x4de822,_0x39a374,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x15df34}):_0x4de822[_0x39a374]=_0x15df34,re=(_0xf26cfd,_0x31b7b6,_0x4abfaf,_0x46882c)=>{for(var _0x3c85ff=_0x46882c>0x1?void 0x0:_0x46882c?se(_0x31b7b6,_0x4abfaf):_0x31b7b6,_0x2f339a=_0xf26cfd['length']-0x1,_0x8ba626;_0x2f339a>=0x0;_0x2f339a--)(_0x8ba626=_0xf26cfd[_0x2f339a])&&(_0x3c85ff=_0x8ba626(_0x3c85ff)||_0x3c85ff);return _0x3c85ff;},N=(_0x464d5f,_0x115aee)=>(_0x5de1f4,_0x274a32)=>_0x115aee(_0x5de1f4,_0x274a32,_0x464d5f),A=(_0x53c07b,_0x302a6d,_0x18fae7)=>ne(_0x53c07b,typeof _0x302a6d!=_0xa3ede(0x1ac)?_0x302a6d+'':_0x302a6d,_0x18fae7);const oe=_0xa3ede(0x140);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x4ed88c=w,_0x1d3eed,_0x52da9e){const _0x1ef716=_0xa3ede;super(),this[_0x1ef716(0x134)]=_0x4ed88c,this['_injector']=_0x1d3eed,this[_0x1ef716(0x100)]=_0x52da9e;const {..._0x1a4a1c}=o['merge']({},w,this[_0x1ef716(0x134)]);this[_0x1ef716(0x100)][_0x1ef716(0x148)](Q,_0x1a4a1c);}[_0xa3ede(0x199)](){const _0x2c5755=_0xa3ede;o[_0x2c5755(0xe9)](this[_0x2c5755(0x106)],o['mergeOverrideWithDependencies']([[E],[exports[_0x2c5755(0x191)]],[m],[exports[_0x2c5755(0x15c)]]],this[_0x2c5755(0x134)][_0x2c5755(0x182)])),o[_0x2c5755(0x151)](this[_0x2c5755(0x106)],[[m]]);}['onRendered'](){const _0x48bd63=_0xa3ede;o[_0x48bd63(0x151)](this['_injector'],[[exports[_0x48bd63(0x15c)]]]);}},A(exports[_0xa3ede(0x166)],_0xa3ede(0x11b),o[_0xa3ede(0x177)][_0xa3ede(0x185)]),A(exports[_0xa3ede(0x166)],_0xa3ede(0x152),oe),exports[_0xa3ede(0x166)]=re([o['DependentOn'](b[_0xa3ede(0x16e)]),N(0x1,o[_0xa3ede(0x109)](o[_0xa3ede(0x19c)])),N(0x2,o['IConfigService'])],exports[_0xa3ede(0x166)]),exports['LiveShare']=$,exports[_0xa3ede(0x180)]=E,exports[_0xa3ede(0x173)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x3656(){const _0xb26a08=['getLiveShareCoordinatorSync','18fUtzzN','1042PEDedq','_initialize','getStatus','No\x20active\x20workbook\x20found.','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','509LvPkbq','startPresenting','8AzVUzw','stopPresenting','11EhMFVx','87642Aaszak','defineProperty','stopFollowing','756685SZVSnB','6436325JFadDk','getCurrentUnitOfType','getUnitId','_injector','_liveShareController','getLiveShareStatus','UNIVER_SHEET','6827247wXYAJJ','extend','IDLE','151832obIGfY','LiveShareStatusEnum','1056730sCnWCe','get'];_0x3656=function(){return _0xb26a08;};return _0x3656();}function _0x2848(_0x2249a3,_0x5f15aa){_0x2249a3=_0x2249a3-0xc7;const _0x3656ff=_0x3656();let _0x284883=_0x3656ff[_0x2249a3];return _0x284883;}const _0x51c276=_0x2848;(function(_0x21c34f,_0x5be724){const _0x114fa2=_0x2848,_0x2f1d0b=_0x21c34f();while(!![]){try{const _0x319609=-parseInt(_0x114fa2(0xc7))/0x1*(-parseInt(_0x114fa2(0xe0))/0x2)+parseInt(_0x114fa2(0xcc))/0x3+parseInt(_0x114fa2(0xda))/0x4+-parseInt(_0x114fa2(0xcf))/0x5*(-parseInt(_0x114fa2(0xdf))/0x6)+-parseInt(_0x114fa2(0xd0))/0x7*(parseInt(_0x114fa2(0xc9))/0x8)+parseInt(_0x114fa2(0xd7))/0x9+parseInt(_0x114fa2(0xdc))/0xa*(-parseInt(_0x114fa2(0xcb))/0xb);if(_0x319609===_0x5be724)break;else _0x2f1d0b['push'](_0x2f1d0b['shift']());}catch(_0x58f759){_0x2f1d0b['push'](_0x2f1d0b['shift']());}}}(_0x3656,0x7ee7f));var l=Object[_0x51c276(0xcd)],w=(_0x278a8b,_0x2e95b4,_0x4ecd76)=>_0x2e95b4 in _0x278a8b?l(_0x278a8b,_0x2e95b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ecd76}):_0x278a8b[_0x2e95b4]=_0x4ecd76,v=(_0x3876a1,_0x422d25,_0x539fdc)=>w(_0x3876a1,typeof _0x422d25!='symbol'?_0x422d25+'':_0x422d25,_0x539fdc);import{LiveShareController as _0x27c601,LiveShareStatus as _0x177451}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x375412,UniverInstanceType as _0x39c699}from'@univerjs/core';import{FUniver as _0x499820,FEnum as _0x3e7ed2}from'@univerjs/core/facade';class g extends _0x499820{constructor(){const _0x24c0bc=_0x51c276;super(...arguments),v(this,_0x24c0bc(0xd4));}[_0x51c276(0xe1)](_0x522c9d){const _0x1678dd=_0x51c276;this[_0x1678dd(0xd4)]=_0x522c9d['get'](_0x27c601);}[_0x51c276(0xd5)](){const _0x449d2d=_0x51c276;var _0xd8db0d;const _0xcf97ba=this[_0x449d2d(0xd3)]['get'](_0x375412)[_0x449d2d(0xd1)](_0x39c699[_0x449d2d(0xd6)]);if(!_0xcf97ba)throw new Error(_0x449d2d(0xe3));const _0x4285e6=_0xcf97ba[_0x449d2d(0xd2)](),_0x482a0d=this[_0x449d2d(0xd4)][_0x449d2d(0xde)](_0x4285e6);return(_0xd8db0d=_0x482a0d==null?void 0x0:_0x482a0d[_0x449d2d(0xe2)]())!=null?_0xd8db0d:_0x177451[_0x449d2d(0xd9)];}[_0x51c276(0xe4)](){const _0x43044c=_0x51c276,_0x1604d7=this[_0x43044c(0xd3)][_0x43044c(0xdd)](_0x375412)[_0x43044c(0xd1)](_0x39c699['UNIVER_SHEET']);if(!_0x1604d7)throw new Error(_0x43044c(0xe3));const _0x1fa117=_0x1604d7[_0x43044c(0xd2)](),_0x2c5a89=this[_0x43044c(0xd4)]['getLiveShareCoordinatorSync'](_0x1fa117);if(!_0x2c5a89)throw new Error(_0x43044c(0xe5));_0x2c5a89[_0x43044c(0xe4)]();}[_0x51c276(0xce)](){const _0x3b67f1=_0x51c276,_0x26d9f4=this[_0x3b67f1(0xd3)][_0x3b67f1(0xdd)](_0x375412)[_0x3b67f1(0xd1)](_0x39c699[_0x3b67f1(0xd6)]);if(!_0x26d9f4)throw new Error(_0x3b67f1(0xe3));const _0x45dbbb=_0x26d9f4['getUnitId'](),_0x4ad5f1=this[_0x3b67f1(0xd4)]['getLiveShareCoordinatorSync'](_0x45dbbb);if(!_0x4ad5f1)throw new Error(_0x3b67f1(0xe5));_0x4ad5f1[_0x3b67f1(0xce)]();}[_0x51c276(0xc8)](){const _0x226a47=_0x51c276,_0x932ee7=this[_0x226a47(0xd3)][_0x226a47(0xdd)](_0x375412)[_0x226a47(0xd1)](_0x39c699['UNIVER_SHEET']);if(!_0x932ee7)throw new Error(_0x226a47(0xe3));const _0x3f0357=_0x932ee7[_0x226a47(0xd2)](),_0x4ffc2a=this[_0x226a47(0xd4)][_0x226a47(0xde)](_0x3f0357);if(!_0x4ffc2a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4ffc2a['tryStartPresenting']();}[_0x51c276(0xca)](){const _0x4ac2c6=_0x51c276,_0x118424=this[_0x4ac2c6(0xd3)][_0x4ac2c6(0xdd)](_0x375412)[_0x4ac2c6(0xd1)](_0x39c699[_0x4ac2c6(0xd6)]);if(!_0x118424)throw new Error('No\x20active\x20workbook\x20found.');const _0x936750=_0x118424['getUnitId'](),_0x392581=this[_0x4ac2c6(0xd4)][_0x4ac2c6(0xde)](_0x936750);if(!_0x392581)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x392581['stopPresenting']();}}_0x499820[_0x51c276(0xd8)](g);class f extends _0x3e7ed2{get[_0x51c276(0xdb)](){return _0x177451;}}_0x3e7ed2[_0x51c276(0xd8)](f);
1
+ const _0x19b141=_0x53dd;(function(_0x510e30,_0x21a070){const _0x3f0bca=_0x53dd,_0x22cb3e=_0x510e30();while(!![]){try{const _0x2270cb=parseInt(_0x3f0bca(0x12b))/0x1*(parseInt(_0x3f0bca(0x120))/0x2)+parseInt(_0x3f0bca(0x122))/0x3+parseInt(_0x3f0bca(0x136))/0x4+-parseInt(_0x3f0bca(0x125))/0x5*(-parseInt(_0x3f0bca(0x12e))/0x6)+parseInt(_0x3f0bca(0x137))/0x7+parseInt(_0x3f0bca(0x11e))/0x8+parseInt(_0x3f0bca(0x121))/0x9*(-parseInt(_0x3f0bca(0x133))/0xa);if(_0x2270cb===_0x21a070)break;else _0x22cb3e['push'](_0x22cb3e['shift']());}catch(_0x4f2e98){_0x22cb3e['push'](_0x22cb3e['shift']());}}}(_0x406e,0x54b90));var l=Object[_0x19b141(0x130)],w=(_0xfdb7f9,_0x849b5a,_0xa45fa8)=>_0x849b5a in _0xfdb7f9?l(_0xfdb7f9,_0x849b5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa45fa8}):_0xfdb7f9[_0x849b5a]=_0xa45fa8,v=(_0x76a04e,_0xb9c0e0,_0x5be59d)=>w(_0x76a04e,typeof _0xb9c0e0!=_0x19b141(0x126)?_0xb9c0e0+'':_0xb9c0e0,_0x5be59d);import{LiveShareController as _0x2cb6f1,LiveShareStatus as _0x1a5913}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x240b98,UniverInstanceType as _0x5dad90}from'@univerjs/core';import{FUniver as _0x3008c3,FEnum as _0xecc156}from'@univerjs/core/facade';function _0x53dd(_0xf68f15,_0x1ff45b){_0xf68f15=_0xf68f15-0x11e;const _0x406e43=_0x406e();let _0x53dd48=_0x406e43[_0xf68f15];return _0x53dd48;}class g extends _0x3008c3{constructor(){const _0x47105d=_0x19b141;super(...arguments),v(this,_0x47105d(0x13a));}['_initialize'](_0x5728bd){const _0x43b6ae=_0x19b141;this[_0x43b6ae(0x13a)]=_0x5728bd[_0x43b6ae(0x127)](_0x2cb6f1);}[_0x19b141(0x131)](){const _0x58f527=_0x19b141;var _0x4e5aa9;const _0x5e4049=this[_0x58f527(0x139)][_0x58f527(0x127)](_0x240b98)[_0x58f527(0x124)](_0x5dad90[_0x58f527(0x12d)]);if(!_0x5e4049)throw new Error(_0x58f527(0x12a));const _0x2ea060=_0x5e4049['getUnitId'](),_0x144bc7=this[_0x58f527(0x13a)]['getLiveShareCoordinatorSync'](_0x2ea060);return(_0x4e5aa9=_0x144bc7==null?void 0x0:_0x144bc7[_0x58f527(0x12f)]())!=null?_0x4e5aa9:_0x1a5913[_0x58f527(0x132)];}[_0x19b141(0x135)](){const _0x46e1b2=_0x19b141,_0x4cd5fd=this[_0x46e1b2(0x139)][_0x46e1b2(0x127)](_0x240b98)[_0x46e1b2(0x124)](_0x5dad90[_0x46e1b2(0x12d)]);if(!_0x4cd5fd)throw new Error(_0x46e1b2(0x12a));const _0x2a4b38=_0x4cd5fd[_0x46e1b2(0x123)](),_0x22d5ad=this[_0x46e1b2(0x13a)][_0x46e1b2(0x128)](_0x2a4b38);if(!_0x22d5ad)throw new Error(_0x46e1b2(0x138));_0x22d5ad[_0x46e1b2(0x135)]();}[_0x19b141(0x12c)](){const _0x494fe7=_0x19b141,_0x3d317a=this[_0x494fe7(0x139)][_0x494fe7(0x127)](_0x240b98)[_0x494fe7(0x124)](_0x5dad90['UNIVER_SHEET']);if(!_0x3d317a)throw new Error(_0x494fe7(0x12a));const _0x517dde=_0x3d317a[_0x494fe7(0x123)](),_0x3e00e3=this[_0x494fe7(0x13a)][_0x494fe7(0x128)](_0x517dde);if(!_0x3e00e3)throw new Error(_0x494fe7(0x138));_0x3e00e3['stopFollowing']();}['startPresenting'](){const _0x2bf9bf=_0x19b141,_0x4d06e3=this['_injector']['get'](_0x240b98)['getCurrentUnitOfType'](_0x5dad90[_0x2bf9bf(0x12d)]);if(!_0x4d06e3)throw new Error(_0x2bf9bf(0x12a));const _0x585e38=_0x4d06e3['getUnitId'](),_0x45aa14=this[_0x2bf9bf(0x13a)][_0x2bf9bf(0x128)](_0x585e38);if(!_0x45aa14)throw new Error(_0x2bf9bf(0x138));_0x45aa14['tryStartPresenting']();}[_0x19b141(0x129)](){const _0x5f0070=_0x19b141,_0x2b02e2=this[_0x5f0070(0x139)][_0x5f0070(0x127)](_0x240b98)[_0x5f0070(0x124)](_0x5dad90[_0x5f0070(0x12d)]);if(!_0x2b02e2)throw new Error('No\x20active\x20workbook\x20found.');const _0x3da6de=_0x2b02e2[_0x5f0070(0x123)](),_0x17c536=this[_0x5f0070(0x13a)][_0x5f0070(0x128)](_0x3da6de);if(!_0x17c536)throw new Error(_0x5f0070(0x138));_0x17c536[_0x5f0070(0x129)]();}}function _0x406e(){const _0x454398=['1164670qWoMKd','symbol','get','getLiveShareCoordinatorSync','stopPresenting','No\x20active\x20workbook\x20found.','3PzbrAB','stopFollowing','UNIVER_SHEET','6KjpvBv','getStatus','defineProperty','getLiveShareStatus','IDLE','1360qeBBuD','extend','startFollowing','1705752SGaTMY','2801694ZfcfZm','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_injector','_liveShareController','3033064jIaGAV','LiveShareStatusEnum','352418FCoMoW','128367taiytc','958254sdfIKO','getUnitId','getCurrentUnitOfType'];_0x406e=function(){return _0x454398;};return _0x406e();}_0x3008c3[_0x19b141(0x134)](g);class f extends _0xecc156{get[_0x19b141(0x11f)](){return _0x1a5913;}}_0xecc156[_0x19b141(0x134)](f);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3a48b0=_0x24da;(function(_0x2d507c,_0x512c41){const _0x37d282=_0x24da,_0x4619a9=_0x2d507c();while(!![]){try{const _0x476a05=parseInt(_0x37d282(0x175))/0x1*(-parseInt(_0x37d282(0x16d))/0x2)+-parseInt(_0x37d282(0x176))/0x3+-parseInt(_0x37d282(0x13f))/0x4*(-parseInt(_0x37d282(0x1c5))/0x5)+-parseInt(_0x37d282(0x141))/0x6*(parseInt(_0x37d282(0x183))/0x7)+parseInt(_0x37d282(0x14b))/0x8*(parseInt(_0x37d282(0x140))/0x9)+-parseInt(_0x37d282(0x12f))/0xa+parseInt(_0x37d282(0x147))/0xb*(parseInt(_0x37d282(0x12a))/0xc);if(_0x476a05===_0x512c41)break;else _0x4619a9['push'](_0x4619a9['shift']());}catch(_0x463c5c){_0x4619a9['push'](_0x4619a9['shift']());}}}(_0x1866,0x639a5));var J=Object[_0x3a48b0(0x126)],K=(_0x58c613,_0x50059e,_0x3bfb64)=>_0x50059e in _0x58c613?J(_0x58c613,_0x50059e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bfb64}):_0x58c613[_0x50059e]=_0x3bfb64,u=(_0x4375c3,_0x103317,_0x54a65a)=>K(_0x4375c3,typeof _0x103317!=_0x3a48b0(0x170)?_0x103317+'':_0x103317,_0x54a65a);import{Disposable as _0xdc5bc,toDisposable as _0x4c5488,Inject as _0x3cc5dc,Injector as _0x40bad3,RxDisposable as _0x3cf172,UniverInstanceType as _0x46f478,DisposableCollection as _0x186e13,CommandType as _0x2644e5,IUniverInstanceService as _0x155e3b,IConfigService as _0x3609ed,ICommandService as _0x4bc6e7,DependentOn as _0xeaa0b2,Plugin as _0x2c2008,merge as _0x46002f,registerDependencies as _0x4ce657,mergeOverrideWithDependencies as _0x46574a,touchDependencies as _0x4d5b23}from'@univerjs/core';import{useDependency as _0x35feb0,useObservable as _0x3009e7,BuiltInUIPart as _0x50392a,connectInjector as _0x57a52a,IUIPartsService as _0x25e85a}from'@univerjs/ui';import{jsx as _0x40948b,jsxs as _0x46a17b,Fragment as _0x4b0054}from'react/jsx-runtime';import{Dropdown as _0x1174ca,clsx as _0x3f01c6,Button as _0x5c9227}from'@univerjs/design';import{useRef as _0x2ed13b,createElement as _0x405a1f,forwardRef as _0x4785f6,useState as _0x247868,useEffect as _0x3307bc}from'react';import{CollaborationEvent as _0x9ef2e2,parseProtocolChangeset as _0x592d58}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4ec532,SessionStatus as _0x3b064e,UniverCollaborationClientPlugin as _0x148cb5}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5e2ee2,SetWorksheetActiveOperation as _0x24e2a6}from'@univerjs/sheets';import{BehaviorSubject as _0x177dca,Subject as _0x24aae7}from'rxjs';import{takeUntil as _0x4e5b2e,throttleTime as _0x3a9e24}from'rxjs/operators';import{SetZoomRatioOperation as _0x46bd10,SetScrollOperation as _0x47775a}from'@univerjs/sheets-ui';function k({ref:_0x232902,..._0x1cffc8}){const _0x332326=_0x3a48b0,{icon:_0x61c613,id:_0x2eb174,className:_0x8d5ce2,extend:_0x4d9904,..._0x56dc15}=_0x1cffc8,_0x199378=(_0x332326(0x1b4)+_0x2eb174+'\x20'+(_0x8d5ce2||''))['trim'](),_0x4dce4e=_0x2ed13b('_'+Oe());return G(_0x61c613,''+_0x2eb174,{'defIds':_0x61c613[_0x332326(0x15b)],'idSuffix':_0x4dce4e[_0x332326(0x161)]},{'ref':_0x232902,'className':_0x199378,..._0x56dc15},_0x4d9904);}function G(_0x313ad4,_0x387da8,_0x8516cb,_0x45eb90,_0x12c850){const _0x5cdde3=_0x3a48b0;return _0x405a1f(_0x313ad4[_0x5cdde3(0x163)],{'key':_0x387da8,...be(_0x313ad4,_0x8516cb,_0x12c850),..._0x45eb90},(Ee(_0x313ad4,_0x8516cb)['children']||[])['map']((_0x1aabee,_0x2a2457)=>G(_0x1aabee,_0x387da8+'-'+_0x313ad4['tag']+'-'+_0x2a2457,_0x8516cb,void 0x0,_0x12c850)));}function be(_0x512cd5,_0x319eb8,_0x4cb4c9){const _0x174cb1=_0x3a48b0,_0x285b23={..._0x512cd5[_0x174cb1(0x1b1)]};_0x4cb4c9!=null&&_0x4cb4c9['colorChannel1']&&_0x285b23['fill']===_0x174cb1(0x1c2)&&(_0x285b23[_0x174cb1(0x138)]=_0x4cb4c9['colorChannel1']),_0x512cd5[_0x174cb1(0x163)]==='mask'&&_0x285b23['id']&&(_0x285b23['id']=_0x285b23['id']+_0x319eb8[_0x174cb1(0x159)]),Object[_0x174cb1(0x122)](_0x285b23)[_0x174cb1(0x1b7)](([_0x44e491,_0x57684d])=>{const _0x55d141=_0x174cb1;_0x44e491==='mask'&&typeof _0x57684d==_0x55d141(0x168)&&(_0x285b23[_0x44e491]=_0x57684d[_0x55d141(0x166)](/url\(#(.*)\)/,'url(#$1'+_0x319eb8[_0x55d141(0x159)]+')'));});const {defIds:_0xe56201}=_0x319eb8;return!_0xe56201||_0xe56201[_0x174cb1(0x1ad)]===0x0||(_0x512cd5[_0x174cb1(0x163)]===_0x174cb1(0x1be)&&_0x285b23[_0x174cb1(0x14e)]&&(_0x285b23[_0x174cb1(0x14e)]=_0x285b23[_0x174cb1(0x14e)]+_0x319eb8[_0x174cb1(0x159)]),Object[_0x174cb1(0x122)](_0x285b23)['forEach'](([_0x522e34,_0x18337b])=>{const _0x11501c=_0x174cb1;typeof _0x18337b==_0x11501c(0x168)&&(_0x285b23[_0x522e34]=_0x18337b['replace'](/url\(#(.*)\)/,_0x11501c(0x16e)+_0x319eb8[_0x11501c(0x159)]+')'));})),_0x285b23;}function Ee(_0x4c9762,_0x2afb29){const _0x1fce3e=_0x3a48b0;var _0xc2ca90;const {defIds:_0x52e97f}=_0x2afb29;return!_0x52e97f||_0x52e97f[_0x1fce3e(0x1ad)]===0x0?_0x4c9762:_0x4c9762[_0x1fce3e(0x163)]===_0x1fce3e(0x1c9)&&((_0xc2ca90=_0x4c9762[_0x1fce3e(0x1b2)])!=null&&_0xc2ca90[_0x1fce3e(0x1ad)])?{..._0x4c9762,'children':_0x4c9762[_0x1fce3e(0x1b2)][_0x1fce3e(0x18e)](_0x2328d9=>typeof _0x2328d9[_0x1fce3e(0x1b1)]['id']==_0x1fce3e(0x168)&&_0x52e97f&&_0x52e97f[_0x1fce3e(0x11e)](_0x2328d9[_0x1fce3e(0x1b1)]['id'])?{..._0x2328d9,'attrs':{..._0x2328d9[_0x1fce3e(0x1b1)],'id':_0x2328d9[_0x1fce3e(0x1b1)]['id']+_0x2afb29[_0x1fce3e(0x159)]}}:_0x2328d9)}:_0x4c9762;}function Oe(){const _0x2fa3ef=_0x3a48b0;return Math[_0x2fa3ef(0x1c3)]()[_0x2fa3ef(0x169)](0x24)[_0x2fa3ef(0x178)](0x2,0x8);}k[_0x3a48b0(0x136)]=_0x3a48b0(0x121);const we={'tag':'svg','attrs':{'xmlns':_0x3a48b0(0x197),'fill':_0x3a48b0(0x164),'viewBox':_0x3a48b0(0x16b),'width':_0x3a48b0(0x154),'height':'1em'},'children':[{'tag':_0x3a48b0(0x198),'attrs':{'fill':'currentColor','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':_0x3a48b0(0x198),'attrs':{'fill':_0x3a48b0(0x171),'d':_0x3a48b0(0x1b9),'fillRule':_0x3a48b0(0x167),'clipRule':_0x3a48b0(0x167)}}]},W=_0x4785f6(function(_0x1ebb35,_0xbcdeca){const _0x412318=_0x3a48b0;return _0x405a1f(k,Object[_0x412318(0x15c)]({},_0x1ebb35,{'id':_0x412318(0x19c),'ref':_0xbcdeca,'icon':we}));});function _0x1866(){const _0xf525bc=['setConfig','_handleOnline','IDLE','defineProperty','getTypeOfUnitDisposed$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','pipe','24TvTjhF','FOLLOWING','send','PRESENTING','shouldShareOperation','6215210btnMea','_startFollowing','getConfig','params','override','stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','displayName','LIVESHARE_NEW_HOST','fill','OFFLINE','UNIVER_LIVE_SHARE_PLUGIN','parse','_beIdle','_handleOffline','_startPresenting','2661380uKaeXc','153wSKVWo','6AJSBMw','dispose$','presenting','data','Start\x20following','_handleNewHost','2557522xoUuKO','dispose','requireSession','clear','265568OAYtTh','unitId','operations','xlink:href','registerSharedOperation','_commandService','getOwnPropertyDescriptor','univer-size-4','_config','1em','type','_presenter','div','You\x27re\x20following\x20the\x20presenter','idSuffix','tryStartPresenting','defIds','assign','_handleNewChangeSets','stopPresenting','_handleTerminate','_injector','current','_init','tag','none','NEW_CHANGESETS','replace','evenodd','string','toString','button','0\x200\x2017\x2017','_sharedOperations','37528yCSVmj','url(#$1','mutations','symbol','currentColor','complete','_fetchOperations','_liveShareService','8BDelBK','939162jxNykl','idle','substring','UNIVER_UNKNOWN','_handleOperation','getMemberID','next','getStatus','_configService','disposeWithMe','status$','Stop\x20presenting','_entities','1414147BRJtmR','get','sheet','UNIVER_SHEET','startFollowing','You\x27re\x20presenting\x20the\x20document','add','then','presenter','unsubscribe','init','map','LIVESHARE_TERMINATE','SAME_OPERATION_SHARE_INTERVAL','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_unitID','default','_status','getInitialStates','createInstance','http://www.w3.org/2000/svg','path','You\x27re\x20not\x20following\x20the\x20presenter','find','_univerInstanceService','live-share-icon','offline','live-share.config','subscribe','ONLINE','_reporters','getValue','set','LiveShareIcon','reverse','from','registerInitialStateReporter','end','has','stringify','_collabSessionService','onStarting','length','LIVESHARE_FETCH_OPERATIONS','_status$','executeCommand','attrs','children','delete','univerjs-icon\x20univerjs-icon-','_collabSession','LIVESHARE_OPERATION','forEach','Stop\x20following','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','getLiveShareCoordinator','_stopPresenting','_stopFollowing','HEADER_MENU','use','_commandDisposable','NOT_FOLLOWING','memberID','colorChannel1','random','onRendered','5wiQhee','OPERATION','following','Start','defs','LIVESHARE_REQUEST_HOST','not-following','getUnitId','includes','_mountLiveShare','text','UniverIcon','entries'];_0x1866=function(){return _0xf525bc;};return _0x1866();}W[_0x3a48b0(0x136)]=_0x3a48b0(0x1a4);class L extends _0xdc5bc{constructor(){const _0x2620a5=_0x3a48b0;super(...arguments),u(this,_0x2620a5(0x16c),new Set()),u(this,_0x2620a5(0x1a1),new Set());}['registerSharedOperation'](_0x403b19){const _0x2dd2be=_0x3a48b0;return this[_0x2dd2be(0x16c)][_0x2dd2be(0x189)](_0x403b19),_0x4c5488(()=>this[_0x2dd2be(0x16c)][_0x2dd2be(0x1b3)](_0x403b19));}[_0x3a48b0(0x1a7)](_0x1b8add){const _0x1099fd=_0x3a48b0;return this[_0x1099fd(0x1a1)][_0x1099fd(0x189)](_0x1b8add),_0x4c5488(()=>this[_0x1099fd(0x1a1)][_0x1099fd(0x1b3)](_0x1b8add));}[_0x3a48b0(0x12e)](_0xdd6c27){const _0x43d216=_0x3a48b0;return this[_0x43d216(0x16c)][_0x43d216(0x1a9)](_0xdd6c27);}[_0x3a48b0(0x195)](_0x5b4295){const _0x1bd610=_0x3a48b0;return Array[_0x1bd610(0x1a6)](this[_0x1bd610(0x1a1)])[_0x1bd610(0x18e)](_0x323240=>_0x323240(_0x5b4295));}}var Ne=Object[_0x3a48b0(0x151)],Y=(_0x426be1,_0x590d59,_0x54995b,_0x5852eb)=>{const _0x4c51d3=_0x3a48b0;for(var _0x1687c9=_0x5852eb>0x1?void 0x0:_0x5852eb?Ne(_0x590d59,_0x54995b):_0x590d59,_0xc2ce7c=_0x426be1[_0x4c51d3(0x1ad)]-0x1,_0x2795cf;_0xc2ce7c>=0x0;_0xc2ce7c--)(_0x2795cf=_0x426be1[_0xc2ce7c])&&(_0x1687c9=_0x2795cf(_0x1687c9)||_0x1687c9);return _0x1687c9;},_=(_0x17a9b8,_0x2f8e53)=>(_0x53faae,_0x5c0e80)=>_0x2f8e53(_0x53faae,_0x5c0e80,_0x17a9b8);let S=class extends _0x3cf172{constructor(_0x249c38,_0x226c37,_0x566a53){const _0x5789cc=_0x3a48b0;super(),u(this,_0x5789cc(0x182),new Map()),(this[_0x5789cc(0x19b)]=_0x249c38,this[_0x5789cc(0x160)]=_0x226c37,this[_0x5789cc(0x1ab)]=_0x566a53,this['_init']());}async[_0x3a48b0(0x1ba)](_0x211db0){const _0x17facf=_0x3a48b0;return this[_0x17facf(0x182)]['has'](_0x211db0)||await this['_startLiveShareCoordinator'](_0x211db0),this['_entities']['get'](_0x211db0);}['getLiveShareCoordinatorSync'](_0x1228d4){const _0x29bdfc=_0x3a48b0;var _0x1a18da;return(_0x1a18da=this[_0x29bdfc(0x182)][_0x29bdfc(0x184)](_0x1228d4))!=null?_0x1a18da:null;}[_0x3a48b0(0x162)](){const _0x379a58=_0x3a48b0;this[_0x379a58(0x19b)]['getTypeOfUnitAdded$'](_0x46f478[_0x379a58(0x186)])['pipe'](_0x4e5b2e(this[_0x379a58(0x142)]))[_0x379a58(0x19f)](async _0x505ca3=>{const _0x810ba0=_0x379a58,_0x3023df=_0x505ca3[_0x810ba0(0x11d)]();this[_0x810ba0(0x182)][_0x810ba0(0x1a9)](_0x3023df)||this['_startLiveShareCoordinator'](_0x3023df);}),this['_univerInstanceService'][_0x379a58(0x127)](_0x46f478[_0x379a58(0x186)])[_0x379a58(0x129)](_0x4e5b2e(this[_0x379a58(0x142)]))['subscribe'](_0xa56c91=>{const _0x2e3340=_0x379a58,_0x41abec=_0xa56c91[_0x2e3340(0x11d)](),_0x22d12d=this[_0x2e3340(0x182)]['get'](_0x41abec);_0x22d12d==null||_0x22d12d['dispose']();});}async['_startLiveShareCoordinator'](_0x4dcdd1){const _0x5b8728=_0x3a48b0,_0x188c9a=await this[_0x5b8728(0x1ab)][_0x5b8728(0x149)](_0x4dcdd1),_0x4aed20=this[_0x5b8728(0x160)][_0x5b8728(0x196)](N,_0x4dcdd1,_0x188c9a);return _0x4aed20[_0x5b8728(0x18d)](),this[_0x5b8728(0x182)]['set'](_0x4dcdd1,_0x4aed20),_0x4aed20;}};S=Y([_(0x0,_0x155e3b),_(0x1,_0x3cc5dc(_0x40bad3)),_(0x2,_0x3cc5dc(_0x4ec532))],S);var c=(_0x501d2b=>(_0x501d2b['OFFLINE']=_0x3a48b0(0x19d),_0x501d2b[_0x3a48b0(0x125)]=_0x3a48b0(0x177),_0x501d2b['FOLLOWING']=_0x3a48b0(0x1c7),_0x501d2b[_0x3a48b0(0x1c0)]=_0x3a48b0(0x11c),_0x501d2b[_0x3a48b0(0x12d)]=_0x3a48b0(0x143),_0x501d2b))(c||{});function _0x24da(_0x3647a3,_0x5a3580){_0x3647a3=_0x3647a3-0x11c;const _0x186615=_0x1866();let _0x24daae=_0x186615[_0x3647a3];return _0x24daae;}const Ce=_0x3a48b0(0x190),De=0xc8;let N=class extends _0x3cf172{constructor(_0x57df03,_0x48eae4,_0x1efcd3,_0x12283d,_0xd7ff84){const _0x317ede=_0x3a48b0;super(),u(this,_0x317ede(0x1af),new _0x177dca(_0x317ede(0x177))),u(this,_0x317ede(0x180),this['_status$']['asObservable']()),u(this,'_init',!0x1),u(this,_0x317ede(0x1bf),null),u(this,'_presenter',null),(this[_0x317ede(0x192)]=_0x57df03,this['_collabSession']=_0x48eae4,this[_0x317ede(0x17e)]=_0x1efcd3,this[_0x317ede(0x174)]=_0x12283d,this[_0x317ede(0x150)]=_0xd7ff84);}get[_0x3a48b0(0x194)](){const _0x2eabae=_0x3a48b0;return this[_0x2eabae(0x1af)][_0x2eabae(0x1a2)]();}[_0x3a48b0(0x148)](){const _0x35a210=_0x3a48b0;var _0xe130a1;(_0xe130a1=this['_commandDisposable'])==null||_0xe130a1[_0x35a210(0x148)](),this[_0x35a210(0x1af)][_0x35a210(0x17c)](_0x35a210(0x177)),this[_0x35a210(0x1af)][_0x35a210(0x172)]();}[_0x3a48b0(0x17d)](){const _0x1f8cd7=_0x3a48b0;return this[_0x1f8cd7(0x194)];}['init'](){const _0x1baaf8=_0x3a48b0;this[_0x1baaf8(0x162)]||(this['_init']=!0x0,this[_0x1baaf8(0x1b5)]['sessionStatus$'][_0x1baaf8(0x129)](_0x4e5b2e(this[_0x1baaf8(0x142)]))[_0x1baaf8(0x19f)](_0x551b30=>{const _0x57ed06=_0x1baaf8;switch(_0x551b30){case _0x3b064e[_0x57ed06(0x139)]:this['_handleOffline']();break;case _0x3b064e[_0x57ed06(0x1a0)]:this[_0x57ed06(0x124)]();break;}}),this[_0x1baaf8(0x1b5)]['event$']['pipe'](_0x4e5b2e(this[_0x1baaf8(0x142)]))[_0x1baaf8(0x19f)](_0x1c41f7=>{const _0x5bea3f=_0x1baaf8,{eventID:_0xeda5de}=_0x1c41f7;switch(_0xeda5de){case _0x9ef2e2[_0x5bea3f(0x137)]:this[_0x5bea3f(0x146)](_0x1c41f7);break;case _0x9ef2e2[_0x5bea3f(0x1b6)]:this[_0x5bea3f(0x17a)](_0x1c41f7);break;case _0x9ef2e2['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x9ef2e2[_0x5bea3f(0x165)]:this['_handleNewChangeSets'](_0x1c41f7);break;}}));}[_0x3a48b0(0x15a)](){const _0x1443de=_0x3a48b0;this[_0x1443de(0x1b5)]['send']({'eventID':_0x9ef2e2[_0x1443de(0x1ca)],'data':{'unitID':this[_0x1443de(0x192)],'userID':this[_0x1443de(0x1b5)][_0x1443de(0x17b)]()}},this[_0x1443de(0x192)]);}[_0x3a48b0(0x15e)](){const _0x525173=_0x3a48b0;this[_0x525173(0x194)]===_0x525173(0x143)&&(this[_0x525173(0x1af)][_0x525173(0x17c)]('idle'),this[_0x525173(0x1b5)][_0x525173(0x12c)]({'eventID':_0x9ef2e2[_0x525173(0x18f)],'data':{'unitID':this[_0x525173(0x192)]}},this[_0x525173(0x192)]));}[_0x3a48b0(0x187)](){const _0x2592fb=_0x3a48b0;this['_status']===_0x2592fb(0x11c)&&(this[_0x2592fb(0x1af)][_0x2592fb(0x17c)](_0x2592fb(0x1c7)),this[_0x2592fb(0x130)]());}[_0x3a48b0(0x134)](){const _0x3306cb=_0x3a48b0;this[_0x3306cb(0x194)]===_0x3306cb(0x1c7)&&this[_0x3306cb(0x1bc)]();}[_0x3a48b0(0x146)](_0x5f04d6){const _0x3a2242=_0x3a48b0,{presenter:_0x168053}=_0x5f04d6['data'],_0x4e8891=this['_collabSession'][_0x3a2242(0x17b)]();this[_0x3a2242(0x156)]=_0x168053,_0x168053===_0x4e8891?(this[_0x3a2242(0x1bc)](),this[_0x3a2242(0x13e)]()):this[_0x3a2242(0x194)]!==_0x3a2242(0x11c)&&(this[_0x3a2242(0x1bb)](),this[_0x3a2242(0x130)]());}[_0x3a48b0(0x173)](){const _0x42f569=_0x3a48b0,_0x5b94f9={'eventID':_0x9ef2e2[_0x42f569(0x1ae)]};this[_0x42f569(0x1b5)][_0x42f569(0x12c)](_0x5b94f9,this[_0x42f569(0x192)]);}[_0x3a48b0(0x15f)](){const _0x4d1f5c=_0x3a48b0;this['_presenter']=null,this[_0x4d1f5c(0x194)]!==_0x4d1f5c(0x143)&&this[_0x4d1f5c(0x13c)]();}[_0x3a48b0(0x15d)](_0x3ed8f5){const _0x2d2aaa=_0x3a48b0;if(this['_status']===_0x2d2aaa(0x1c7)&&this[_0x2d2aaa(0x156)]===_0x3ed8f5[_0x2d2aaa(0x144)][_0x2d2aaa(0x1c1)]){const _0x20a341=_0x592d58(_0x3ed8f5[_0x2d2aaa(0x144)])[_0x2d2aaa(0x16f)][_0x2d2aaa(0x1a5)]()[_0x2d2aaa(0x19a)](_0x15e5d1=>_0x15e5d1['id']===_0x5e2ee2['id']);if(_0x20a341){const _0x340248=_0x20a341[_0x2d2aaa(0x132)][_0x2d2aaa(0x14c)],_0x31bf19=_0x20a341['params'][_0x2d2aaa(0x185)]['id'];setTimeout(()=>{const _0x457913=_0x2d2aaa;this[_0x457913(0x150)][_0x457913(0x1b0)](_0x24e2a6['id'],{'unitId':_0x340248,'subUnitId':_0x31bf19},{'fromCollab':!0x0});});}}}[_0x3a48b0(0x13e)](){const _0x450884=_0x3a48b0;this[_0x450884(0x1af)][_0x450884(0x17c)](_0x450884(0x143));const _0x4da42f=new Map(),_0x2e1c46=this['_commandDisposable']=new _0x186e13();_0x2e1c46['add'](_0x4c5488(()=>{const _0x1ff69f=_0x450884;_0x4da42f[_0x1ff69f(0x1b7)](_0x3d2d5c=>_0x3d2d5c[_0x1ff69f(0x172)]()),_0x4da42f[_0x1ff69f(0x14a)]();})),_0x2e1c46[_0x450884(0x189)](this['_commandService']['onCommandExecuted'](_0x488f48=>{const _0x4ee9ba=_0x450884;var _0x3aa6e4;if(_0x488f48[_0x4ee9ba(0x155)]!==_0x2644e5[_0x4ee9ba(0x1c6)]||!this['_liveShareService'][_0x4ee9ba(0x12e)](_0x488f48['id']))return;const {id:_0x4a1f48}=_0x488f48;let _0x23a48b;_0x4da42f[_0x4ee9ba(0x1a9)](_0x4a1f48)?_0x23a48b=_0x4da42f[_0x4ee9ba(0x184)](_0x4a1f48):(_0x23a48b=new _0x24aae7(),_0x4da42f[_0x4ee9ba(0x1a3)](_0x4a1f48,_0x23a48b),_0x23a48b[_0x4ee9ba(0x129)](_0x3a9e24((_0x3aa6e4=this['_configService'][_0x4ee9ba(0x131)](Ce))!=null?_0x3aa6e4:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ee9ba(0x19f)](_0x1a749c=>{const _0x3851d2=_0x4ee9ba;this['_collabSession'][_0x3851d2(0x12c)]({'eventID':_0x9ef2e2[_0x3851d2(0x1b6)],'data':{'unitID':this[_0x3851d2(0x192)],'operations':{[_0x1a749c['id']]:{'id':_0x1a749c['id'],'params':JSON[_0x3851d2(0x1aa)](_0x1a749c[_0x3851d2(0x132)])}}}},this[_0x3851d2(0x192)]);})),_0x23a48b[_0x4ee9ba(0x17c)](_0x488f48);})),this['_liveShareService'][_0x450884(0x195)](this[_0x450884(0x192)])[_0x450884(0x1b7)](_0x22a9e8=>this['_collabSession'][_0x450884(0x12c)]({'eventID':_0x9ef2e2[_0x450884(0x1b6)],'data':{'unitID':this[_0x450884(0x192)],'operations':{[_0x22a9e8['id']]:{'id':_0x22a9e8['id'],'params':JSON[_0x450884(0x1aa)](_0x22a9e8['params'])}}}},this['_unitID']));}[_0x3a48b0(0x1bb)](){const _0x4d99f9=_0x3a48b0;var _0x350df0;this[_0x4d99f9(0x1af)]['next'](_0x4d99f9(0x177)),(_0x350df0=this['_commandDisposable'])==null||_0x350df0[_0x4d99f9(0x148)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x41de9c=_0x3a48b0;var _0x4205c4;(_0x4205c4=this[_0x41de9c(0x1bf)])==null||_0x4205c4[_0x41de9c(0x148)](),this[_0x41de9c(0x1af)][_0x41de9c(0x17c)](_0x41de9c(0x1c7));}[_0x3a48b0(0x13c)](){const _0x14b3c2=_0x3a48b0;var _0x17e11c;this[_0x14b3c2(0x1af)][_0x14b3c2(0x17c)](_0x14b3c2(0x177)),(_0x17e11c=this[_0x14b3c2(0x1bf)])==null||_0x17e11c[_0x14b3c2(0x148)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x54f8af=_0x3a48b0;var _0xdadff5;this['_status$'][_0x54f8af(0x17c)](_0x54f8af(0x11c)),(_0xdadff5=this[_0x54f8af(0x1bf)])==null||_0xdadff5[_0x54f8af(0x148)]();}[_0x3a48b0(0x17a)](_0x1468a5){const _0x4d68b1=_0x3a48b0;if(['presenting',_0x4d68b1(0x11c),_0x4d68b1(0x19d)][_0x4d68b1(0x11e)](this[_0x4d68b1(0x194)])||!_0x1468a5[_0x4d68b1(0x144)][_0x4d68b1(0x18b)]||_0x1468a5[_0x4d68b1(0x144)][_0x4d68b1(0x18b)]===this[_0x4d68b1(0x1b5)][_0x4d68b1(0x17b)]())return;this['_status']===_0x4d68b1(0x177)&&this[_0x4d68b1(0x130)]();const _0x9a57d8=_0x1468a5[_0x4d68b1(0x144)][_0x4d68b1(0x14d)];Object['values'](_0x9a57d8)[_0x4d68b1(0x1b7)](_0xd38bf=>{const _0x54e3c0=_0x4d68b1;this[_0x54e3c0(0x150)][_0x54e3c0(0x1b0)](_0xd38bf['id'],_0xd38bf[_0x54e3c0(0x132)]?JSON[_0x54e3c0(0x13b)](_0xd38bf[_0x54e3c0(0x132)]):null,{'fromCollab':!0x0});});}[_0x3a48b0(0x13d)](){const _0x805573=_0x3a48b0;var _0x282d05;this[_0x805573(0x1af)][_0x805573(0x17c)](_0x805573(0x19d)),(_0x282d05=this[_0x805573(0x1bf)])==null||_0x282d05['dispose']();}[_0x3a48b0(0x124)](){const _0x3803cf=_0x3a48b0;this[_0x3803cf(0x1af)][_0x3803cf(0x17c)](_0x3803cf(0x177)),this[_0x3803cf(0x173)]();}};N=Y([_(0x2,_0x3609ed),_(0x3,_0x3cc5dc(L)),_(0x4,_0x4bc6e7)],N);function Le(){const _0x1dd7f3=_0x3a48b0,_0x220fc1=_0x35feb0(S),_0x41f9ed=_0x35feb0(_0x155e3b),_0x27a5a5=_0x3009e7(()=>_0x41f9ed['getCurrentTypeOfUnit$'](_0x46f478[_0x1dd7f3(0x186)]),void 0x0,!0x1,[]),[_0x325e28,_0x4593a4]=_0x247868(null),[_0x391ad4,_0x505d3f]=_0x247868(c['IDLE']),_0x199200=_0x2ed13b(null);return _0x3307bc(()=>(_0x27a5a5&&_0x220fc1[_0x1dd7f3(0x1ba)](_0x27a5a5['getUnitId']())[_0x1dd7f3(0x18a)](_0x50c59a=>{const _0x48d3c8=_0x1dd7f3;_0x4593a4(_0x50c59a),_0x199200['current']=_0x50c59a['status$'][_0x48d3c8(0x19f)](_0x299cd2=>{_0x505d3f(_0x299cd2);});}),()=>{const _0x50347a=_0x1dd7f3;var _0x1b46e6;(_0x1b46e6=_0x199200[_0x50347a(0x161)])==null||_0x1b46e6[_0x50347a(0x18c)](),_0x199200[_0x50347a(0x161)]=null;}),[_0x27a5a5,_0x220fc1]),_0x325e28?_0x40948b(_0x1174ca,{'align':_0x1dd7f3(0x1a8),'disabled':_0x391ad4===c[_0x1dd7f3(0x139)],'className':_0x1dd7f3(0x191),'overlay':_0x40948b(Re,{'status':_0x391ad4,'coordinator':_0x325e28}),'children':_0x40948b(_0x1dd7f3(0x16a),{'className':_0x3f01c6(_0x1dd7f3(0x128),{'univer-cursor-not-allowed':_0x391ad4===c[_0x1dd7f3(0x139)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x391ad4!==c[_0x1dd7f3(0x139)]}),'type':_0x1dd7f3(0x16a),'children':_0x40948b(W,{'className':_0x1dd7f3(0x152)})})}):null;}function Re(_0x4653c1){const _0x41b38b=_0x3a48b0,{status:_0x4ebb78,coordinator:_0x14e0c5}=_0x4653c1;switch(_0x4ebb78){case c[_0x41b38b(0x125)]:return _0x40948b($e,{'coordinator':_0x14e0c5});case c[_0x41b38b(0x12b)]:return _0x40948b(xe,{'coordinator':_0x14e0c5});case c[_0x41b38b(0x1c0)]:return _0x40948b(Pe,{'coordinator':_0x14e0c5});case c[_0x41b38b(0x139)]:return _0x40948b(Te,{});case c[_0x41b38b(0x12d)]:return _0x40948b(Ae,{'coordinator':_0x14e0c5});default:return null;}}function $e(_0x33afa8){const _0x31c492=_0x3a48b0,{coordinator:_0x3e3239}=_0x33afa8;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0x31c492(0x157),{'className':_0x31c492(0x135),'children':'Present\x20this\x20document'}),_0x40948b(_0x5c9227,{'onClick':()=>_0x3e3239[_0x31c492(0x15a)](),'children':_0x31c492(0x1c8)})]});}function xe(_0xa947ff){const _0xdea2a5=_0x3a48b0,{coordinator:_0x557512}=_0xa947ff;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0xdea2a5(0x157),{'className':_0xdea2a5(0x135),'children':_0xdea2a5(0x158)}),_0x40948b(_0x5c9227,{'onClick':()=>_0x557512['stopFollowing'](),'children':_0xdea2a5(0x1b8)})]});}function Pe(_0x2e9be2){const _0x6e8af8=_0x3a48b0,{coordinator:_0x5ca46e}=_0x2e9be2;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0x6e8af8(0x157),{'className':_0x6e8af8(0x135),'children':_0x6e8af8(0x199)}),_0x40948b(_0x5c9227,{'variant':_0x6e8af8(0x120),'onClick':()=>_0x5ca46e[_0x6e8af8(0x187)](),'children':_0x6e8af8(0x145)})]});}function Ae(_0x5331e7){const _0x2d043f=_0x3a48b0,{coordinator:_0xe776f0}=_0x5331e7;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0x2d043f(0x157),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2d043f(0x188)}),_0x40948b(_0x5c9227,{'variant':_0x2d043f(0x193),'onClick':()=>_0xe776f0[_0x2d043f(0x15e)](),'children':_0x2d043f(0x181)})]});}function Te(){return _0x40948b(_0x4b0054,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x3a48b0(0x151)],He=(_0x4a69c4,_0x32bce8,_0x5693ed,_0x413137)=>{const _0x488d8d=_0x3a48b0;for(var _0x548eaf=_0x413137>0x1?void 0x0:_0x413137?Fe(_0x32bce8,_0x5693ed):_0x32bce8,_0x2c1cdb=_0x4a69c4[_0x488d8d(0x1ad)]-0x1,_0x26f9dd;_0x2c1cdb>=0x0;_0x2c1cdb--)(_0x26f9dd=_0x4a69c4[_0x2c1cdb])&&(_0x548eaf=_0x26f9dd(_0x548eaf)||_0x548eaf);return _0x548eaf;},A=(_0x2f94a2,_0x259a0f)=>(_0x24eefb,_0x1d8309)=>_0x259a0f(_0x24eefb,_0x1d8309,_0x2f94a2);let m=class extends _0xdc5bc{constructor(_0x13f32b,_0x4b0d54){const _0x3f5d68=_0x3a48b0;super(),this[_0x3f5d68(0x160)]=_0x13f32b,this['_uiPartsService']=_0x4b0d54,this[_0x3f5d68(0x11f)]();}[_0x3a48b0(0x11f)](){const _0x1c31ff=_0x3a48b0;this[_0x1c31ff(0x17f)](this['_uiPartsService']['registerComponent'](_0x50392a[_0x1c31ff(0x1bd)],()=>_0x57a52a(Le,this['_injector'])));}};m=He([A(0x0,_0x3cc5dc(_0x40bad3)),A(0x1,_0x25e85a)],m);const ye=_0x3a48b0(0x19e),T={};var Ue=Object[_0x3a48b0(0x151)],Ve=(_0x311b28,_0x3beadb,_0x1158ac,_0x2ba428)=>{const _0x1105b6=_0x3a48b0;for(var _0x1f739c=_0x2ba428>0x1?void 0x0:_0x2ba428?Ue(_0x3beadb,_0x1158ac):_0x3beadb,_0x13ddf6=_0x311b28[_0x1105b6(0x1ad)]-0x1,_0x18edc4;_0x13ddf6>=0x0;_0x13ddf6--)(_0x18edc4=_0x311b28[_0x13ddf6])&&(_0x1f739c=_0x18edc4(_0x1f739c)||_0x1f739c);return _0x1f739c;},je=(_0x20d649,_0x1602b7)=>(_0x19066f,_0x41a38d)=>_0x1602b7(_0x19066f,_0x41a38d,_0x20d649);let I=class extends _0xdc5bc{constructor(_0x125572){const _0x135ca9=_0x3a48b0;super(),this['_liveShareService']=_0x125572,this[_0x135ca9(0x162)]();}[_0x3a48b0(0x162)](){const _0x277dce=_0x3a48b0;[_0x46bd10['id'],_0x47775a['id'],_0x24e2a6['id']][_0x277dce(0x1b7)](_0x1e44ca=>{const _0x2331ca=_0x277dce;this[_0x2331ca(0x17f)](this[_0x2331ca(0x174)][_0x2331ca(0x14f)](_0x1e44ca));});}};I=Ve([je(0x0,_0x3cc5dc(L))],I);var Me=Object[_0x3a48b0(0x126)],ke=Object[_0x3a48b0(0x151)],Ge=(_0xe55661,_0x3c480b,_0x4dfbd4)=>_0x3c480b in _0xe55661?Me(_0xe55661,_0x3c480b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4dfbd4}):_0xe55661[_0x3c480b]=_0x4dfbd4,We=(_0x55fd20,_0xc2fe45,_0x1a713a,_0x1b4b67)=>{const _0x271d6d=_0x3a48b0;for(var _0x470ab0=_0x1b4b67>0x1?void 0x0:_0x1b4b67?ke(_0xc2fe45,_0x1a713a):_0xc2fe45,_0x90d51c=_0x55fd20[_0x271d6d(0x1ad)]-0x1,_0x236415;_0x90d51c>=0x0;_0x90d51c--)(_0x236415=_0x55fd20[_0x90d51c])&&(_0x470ab0=_0x236415(_0x470ab0)||_0x470ab0);return _0x470ab0;},F=(_0x322ae5,_0x233444)=>(_0x463364,_0x10fa6f)=>_0x233444(_0x463364,_0x10fa6f,_0x322ae5),B=(_0x187df0,_0x3de30b,_0x3f1a60)=>Ge(_0x187df0,typeof _0x3de30b!=_0x3a48b0(0x170)?_0x3de30b+'':_0x3de30b,_0x3f1a60);const Ye=_0x3a48b0(0x13a);let b=class extends _0x2c2008{constructor(_0x5324dd=T,_0x395ee4,_0x35a199){const _0x1b72c3=_0x3a48b0;super(),this[_0x1b72c3(0x153)]=_0x5324dd,this[_0x1b72c3(0x160)]=_0x395ee4,this[_0x1b72c3(0x17e)]=_0x35a199;const {..._0x3e8f36}=_0x46002f({},T,this[_0x1b72c3(0x153)]);this[_0x1b72c3(0x17e)][_0x1b72c3(0x123)](ye,_0x3e8f36);}[_0x3a48b0(0x1ac)](){const _0x5e874e=_0x3a48b0;_0x4ce657(this['_injector'],_0x46574a([[L],[S],[I],[m]],this[_0x5e874e(0x153)][_0x5e874e(0x133)])),_0x4d5b23(this[_0x5e874e(0x160)],[[I]]);}[_0x3a48b0(0x1c4)](){const _0x4b2ec1=_0x3a48b0;_0x4d5b23(this[_0x4b2ec1(0x160)],[[m]]);}};B(b,'type',_0x46f478[_0x3a48b0(0x179)]),B(b,'pluginName',Ye),b=We([_0xeaa0b2(_0x148cb5),F(0x1,_0x3cc5dc(_0x40bad3)),F(0x2,_0x3609ed)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
1
+ const _0xeaafbf=_0xdc09;(function(_0x3c0e30,_0x38996b){const _0x4dd8d7=_0xdc09,_0x118b02=_0x3c0e30();while(!![]){try{const _0x1065c8=-parseInt(_0x4dd8d7(0x1c2))/0x1+-parseInt(_0x4dd8d7(0x1bd))/0x2+-parseInt(_0x4dd8d7(0x1bb))/0x3+-parseInt(_0x4dd8d7(0x193))/0x4+-parseInt(_0x4dd8d7(0x1a6))/0x5+parseInt(_0x4dd8d7(0x1da))/0x6*(-parseInt(_0x4dd8d7(0x1ef))/0x7)+parseInt(_0x4dd8d7(0x1c4))/0x8*(parseInt(_0x4dd8d7(0x1b8))/0x9);if(_0x1065c8===_0x38996b)break;else _0x118b02['push'](_0x118b02['shift']());}catch(_0xfd1525){_0x118b02['push'](_0x118b02['shift']());}}}(_0x8dab,0x873c4));var J=Object[_0xeaafbf(0x17b)],K=(_0xb0d402,_0x2be509,_0x26d1d6)=>_0x2be509 in _0xb0d402?J(_0xb0d402,_0x2be509,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26d1d6}):_0xb0d402[_0x2be509]=_0x26d1d6,u=(_0x34ebdc,_0x23eff7,_0x11f60a)=>K(_0x34ebdc,typeof _0x23eff7!=_0xeaafbf(0x180)?_0x23eff7+'':_0x23eff7,_0x11f60a);import{Disposable as _0x469b92,toDisposable as _0x1332f1,Inject as _0x3ffeae,Injector as _0x3e453a,RxDisposable as _0x53e8b0,UniverInstanceType as _0x59dbcd,DisposableCollection as _0x5d9210,CommandType as _0xef2d8d,IUniverInstanceService as _0xe4bcbd,IConfigService as _0x4c72af,ICommandService as _0x465a1b,DependentOn as _0x168090,Plugin as _0x5b0277,merge as _0x3e2e87,registerDependencies as _0x5b8f83,mergeOverrideWithDependencies as _0xed68fc,touchDependencies as _0x98ac8}from'@univerjs/core';import{useDependency as _0x5ec2d9,useObservable as _0x19a9c6,BuiltInUIPart as _0x4f4074,connectInjector as _0x445f22,IUIPartsService as _0x59077d}from'@univerjs/ui';import{jsx as _0x115494,jsxs as _0xe77572,Fragment as _0x8cbe17}from'react/jsx-runtime';import{Dropdown as _0x4dbc1e,clsx as _0x5af8db,Button as _0x39e985}from'@univerjs/design';import{useRef as _0x54096f,createElement as _0x14f037,forwardRef as _0x35b873,useState as _0x2b6511,useEffect as _0x51812f}from'react';import{CollaborationEvent as _0x262122,parseProtocolChangeset as _0x4ddb9c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x20d5f8,SessionStatus as _0x5d00b9,UniverCollaborationClientPlugin as _0x2f3e48}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x541fcc,SetWorksheetActiveOperation as _0x23cd6c}from'@univerjs/sheets';import{BehaviorSubject as _0xe1c438,Subject as _0x444884}from'rxjs';import{takeUntil as _0x5b42f5,throttleTime as _0x475c1c}from'rxjs/operators';import{SetZoomRatioOperation as _0x19b70e,SetScrollOperation as _0x49dea0}from'@univerjs/sheets-ui';function k({ref:_0xbb029c,..._0x4f0b59}){const _0x13959b=_0xeaafbf,{icon:_0x492154,id:_0x58f041,className:_0x4663e8,extend:_0x568981,..._0x2e4434}=_0x4f0b59,_0x36dc72=('univerjs-icon\x20univerjs-icon-'+_0x58f041+'\x20'+(_0x4663e8||''))['trim'](),_0xb7e30c=_0x54096f('_'+Oe());return G(_0x492154,''+_0x58f041,{'defIds':_0x492154[_0x13959b(0x1dc)],'idSuffix':_0xb7e30c[_0x13959b(0x1aa)]},{'ref':_0xbb029c,'className':_0x36dc72,..._0x2e4434},_0x568981);}function _0xdc09(_0x2f06b1,_0x2018aa){_0x2f06b1=_0x2f06b1-0x14c;const _0x8dab6e=_0x8dab();let _0xdc0948=_0x8dab6e[_0x2f06b1];return _0xdc0948;}function G(_0x4aa988,_0x200841,_0x965d06,_0x352386,_0x4ba864){const _0x101f96=_0xeaafbf;return _0x14f037(_0x4aa988['tag'],{'key':_0x200841,...be(_0x4aa988,_0x965d06,_0x4ba864),..._0x352386},(Ee(_0x4aa988,_0x965d06)[_0x101f96(0x1a1)]||[])[_0x101f96(0x194)]((_0xed229f,_0x372dc8)=>G(_0xed229f,_0x200841+'-'+_0x4aa988[_0x101f96(0x185)]+'-'+_0x372dc8,_0x965d06,void 0x0,_0x4ba864)));}function be(_0x260322,_0x193244,_0x1241b9){const _0x453856=_0xeaafbf,_0x1916a5={..._0x260322['attrs']};_0x1241b9!=null&&_0x1241b9[_0x453856(0x150)]&&_0x1916a5[_0x453856(0x198)]===_0x453856(0x150)&&(_0x1916a5[_0x453856(0x198)]=_0x1241b9[_0x453856(0x150)]),_0x260322['tag']===_0x453856(0x170)&&_0x1916a5['id']&&(_0x1916a5['id']=_0x1916a5['id']+_0x193244['idSuffix']),Object['entries'](_0x1916a5)[_0x453856(0x19b)](([_0x21237a,_0x2b6fb7])=>{const _0x28e993=_0x453856;_0x21237a===_0x28e993(0x170)&&typeof _0x2b6fb7==_0x28e993(0x1ae)&&(_0x1916a5[_0x21237a]=_0x2b6fb7[_0x28e993(0x173)](/url\(#(.*)\)/,'url(#$1'+_0x193244['idSuffix']+')'));});const {defIds:_0x2de0f6}=_0x193244;return!_0x2de0f6||_0x2de0f6[_0x453856(0x1eb)]===0x0||(_0x260322[_0x453856(0x185)]===_0x453856(0x16b)&&_0x1916a5['xlink:href']&&(_0x1916a5[_0x453856(0x1ba)]=_0x1916a5[_0x453856(0x1ba)]+_0x193244[_0x453856(0x181)]),Object[_0x453856(0x161)](_0x1916a5)['forEach'](([_0x381f4b,_0x4053b4])=>{const _0x28fae8=_0x453856;typeof _0x4053b4==_0x28fae8(0x1ae)&&(_0x1916a5[_0x381f4b]=_0x4053b4[_0x28fae8(0x173)](/url\(#(.*)\)/,_0x28fae8(0x165)+_0x193244[_0x28fae8(0x181)]+')'));})),_0x1916a5;}function Ee(_0x29154a,_0x42a8e8){const _0x41952d=_0xeaafbf;var _0x22b5e6;const {defIds:_0x18175e}=_0x42a8e8;return!_0x18175e||_0x18175e['length']===0x0?_0x29154a:_0x29154a['tag']==='defs'&&((_0x22b5e6=_0x29154a[_0x41952d(0x1a1)])!=null&&_0x22b5e6[_0x41952d(0x1eb)])?{..._0x29154a,'children':_0x29154a[_0x41952d(0x1a1)][_0x41952d(0x194)](_0x5ecaa4=>typeof _0x5ecaa4[_0x41952d(0x1f6)]['id']=='string'&&_0x18175e&&_0x18175e[_0x41952d(0x156)](_0x5ecaa4[_0x41952d(0x1f6)]['id'])?{..._0x5ecaa4,'attrs':{..._0x5ecaa4['attrs'],'id':_0x5ecaa4[_0x41952d(0x1f6)]['id']+_0x42a8e8[_0x41952d(0x181)]}}:_0x5ecaa4)}:_0x29154a;}function Oe(){const _0x429dad=_0xeaafbf;return Math[_0x429dad(0x154)]()['toString'](0x24)['substring'](0x2,0x8);}k['displayName']=_0xeaafbf(0x1b0);const we={'tag':_0xeaafbf(0x1d7),'attrs':{'xmlns':_0xeaafbf(0x1b4),'fill':_0xeaafbf(0x1ca),'viewBox':_0xeaafbf(0x1e8),'width':'1em','height':_0xeaafbf(0x1c5)},'children':[{'tag':_0xeaafbf(0x1d6),'attrs':{'fill':'currentColor','d':_0xeaafbf(0x1b9)}},{'tag':_0xeaafbf(0x1d6),'attrs':{'fill':_0xeaafbf(0x18e),'d':_0xeaafbf(0x199),'fillRule':_0xeaafbf(0x1ec),'clipRule':_0xeaafbf(0x1ec)}}]},W=_0x35b873(function(_0x2586dc,_0x410ffd){const _0x34b4cb=_0xeaafbf;return _0x14f037(k,Object['assign']({},_0x2586dc,{'id':_0x34b4cb(0x151),'ref':_0x410ffd,'icon':we}));});W[_0xeaafbf(0x1c3)]=_0xeaafbf(0x17e);class L extends _0x469b92{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0xeaafbf(0x1b3)](_0x3458e5){const _0x47b0b9=_0xeaafbf;return this[_0x47b0b9(0x1cd)][_0x47b0b9(0x19f)](_0x3458e5),_0x1332f1(()=>this[_0x47b0b9(0x1cd)]['delete'](_0x3458e5));}[_0xeaafbf(0x1a9)](_0x5352e4){const _0x83f52b=_0xeaafbf;return this[_0x83f52b(0x1e3)][_0x83f52b(0x19f)](_0x5352e4),_0x1332f1(()=>this[_0x83f52b(0x1e3)][_0x83f52b(0x1b6)](_0x5352e4));}[_0xeaafbf(0x155)](_0x4217a3){const _0x49c1ce=_0xeaafbf;return this[_0x49c1ce(0x1cd)]['has'](_0x4217a3);}[_0xeaafbf(0x17a)](_0x458ab1){const _0x1eefcb=_0xeaafbf;return Array[_0x1eefcb(0x174)](this['_reporters'])[_0x1eefcb(0x194)](_0x494c12=>_0x494c12(_0x458ab1));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0xeac1a2,_0x550436,_0x5bf40,_0x928e9b)=>{const _0x3898e2=_0xeaafbf;for(var _0x336691=_0x928e9b>0x1?void 0x0:_0x928e9b?Ne(_0x550436,_0x5bf40):_0x550436,_0xf083b7=_0xeac1a2[_0x3898e2(0x1eb)]-0x1,_0x27c0d7;_0xf083b7>=0x0;_0xf083b7--)(_0x27c0d7=_0xeac1a2[_0xf083b7])&&(_0x336691=_0x27c0d7(_0x336691)||_0x336691);return _0x336691;},_=(_0x2f0c3c,_0x240e29)=>(_0x548fd3,_0x1cb362)=>_0x240e29(_0x548fd3,_0x1cb362,_0x2f0c3c);let S=class extends _0x53e8b0{constructor(_0x177280,_0x178e3a,_0x4786a1){const _0x193f23=_0xeaafbf;super(),u(this,_0x193f23(0x1d3),new Map()),(this['_univerInstanceService']=_0x177280,this[_0x193f23(0x187)]=_0x178e3a,this[_0x193f23(0x1a4)]=_0x4786a1,this['_init']());}async[_0xeaafbf(0x16e)](_0x1ee66d){const _0x3e853a=_0xeaafbf;return this['_entities']['has'](_0x1ee66d)||await this[_0x3e853a(0x1de)](_0x1ee66d),this['_entities'][_0x3e853a(0x175)](_0x1ee66d);}['getLiveShareCoordinatorSync'](_0x2eaf9e){const _0x2a439b=_0xeaafbf;var _0x566f31;return(_0x566f31=this[_0x2a439b(0x1d3)]['get'](_0x2eaf9e))!=null?_0x566f31:null;}[_0xeaafbf(0x195)](){const _0x138478=_0xeaafbf;this[_0x138478(0x191)]['getTypeOfUnitAdded$'](_0x59dbcd['UNIVER_SHEET'])[_0x138478(0x1e2)](_0x5b42f5(this[_0x138478(0x1dd)]))[_0x138478(0x1a2)](async _0x4e3e4a=>{const _0x1c95df=_0x138478,_0x35a83f=_0x4e3e4a['getUnitId']();this[_0x1c95df(0x1d3)]['has'](_0x35a83f)||this['_startLiveShareCoordinator'](_0x35a83f);}),this['_univerInstanceService'][_0x138478(0x14d)](_0x59dbcd[_0x138478(0x1c9)])['pipe'](_0x5b42f5(this[_0x138478(0x1dd)]))[_0x138478(0x1a2)](_0x34b40d=>{const _0x387cdc=_0x138478,_0x2c7b46=_0x34b40d[_0x387cdc(0x1e7)](),_0x187c8c=this[_0x387cdc(0x1d3)]['get'](_0x2c7b46);_0x187c8c==null||_0x187c8c[_0x387cdc(0x1ab)]();});}async[_0xeaafbf(0x1de)](_0x2fd9b0){const _0x105aa4=_0xeaafbf,_0x5ea380=await this[_0x105aa4(0x1a4)][_0x105aa4(0x1e6)](_0x2fd9b0),_0x5c0e61=this['_injector'][_0x105aa4(0x19a)](N,_0x2fd9b0,_0x5ea380);return _0x5c0e61[_0x105aa4(0x1f2)](),this['_entities'][_0x105aa4(0x168)](_0x2fd9b0,_0x5c0e61),_0x5c0e61;}};S=Y([_(0x0,_0xe4bcbd),_(0x1,_0x3ffeae(_0x3e453a)),_(0x2,_0x3ffeae(_0x20d5f8))],S);var c=(_0x1b0196=>(_0x1b0196['OFFLINE']=_0xeaafbf(0x1b1),_0x1b0196[_0xeaafbf(0x1ea)]='idle',_0x1b0196[_0xeaafbf(0x1a7)]=_0xeaafbf(0x14f),_0x1b0196[_0xeaafbf(0x18c)]=_0xeaafbf(0x1c1),_0x1b0196[_0xeaafbf(0x1ac)]=_0xeaafbf(0x1e0),_0x1b0196))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x53e8b0{constructor(_0x3402d4,_0x10c663,_0x35e49b,_0x4cee76,_0x2ba87e){const _0x2d9361=_0xeaafbf;super(),u(this,_0x2d9361(0x1e4),new _0xe1c438('idle')),u(this,_0x2d9361(0x164),this['_status$'][_0x2d9361(0x190)]()),u(this,_0x2d9361(0x195),!0x1),u(this,_0x2d9361(0x1c7),null),u(this,_0x2d9361(0x179),null),(this['_unitID']=_0x3402d4,this['_collabSession']=_0x10c663,this['_configService']=_0x35e49b,this[_0x2d9361(0x1af)]=_0x4cee76,this[_0x2d9361(0x157)]=_0x2ba87e);}get[_0xeaafbf(0x186)](){const _0xd7cc41=_0xeaafbf;return this[_0xd7cc41(0x1e4)][_0xd7cc41(0x177)]();}[_0xeaafbf(0x1ab)](){const _0x34dd90=_0xeaafbf;var _0x37718f;(_0x37718f=this[_0x34dd90(0x1c7)])==null||_0x37718f['dispose'](),this[_0x34dd90(0x1e4)][_0x34dd90(0x16c)](_0x34dd90(0x1b5)),this['_status$']['complete']();}[_0xeaafbf(0x1a0)](){return this['_status'];}[_0xeaafbf(0x1f2)](){const _0x2fe4c5=_0xeaafbf;this['_init']||(this[_0x2fe4c5(0x195)]=!0x0,this[_0x2fe4c5(0x1d9)][_0x2fe4c5(0x1b2)]['pipe'](_0x5b42f5(this[_0x2fe4c5(0x1dd)]))['subscribe'](_0x1f2199=>{const _0x47b8dd=_0x2fe4c5;switch(_0x1f2199){case _0x5d00b9[_0x47b8dd(0x1d8)]:this[_0x47b8dd(0x15a)]();break;case _0x5d00b9['ONLINE']:this['_handleOnline']();break;}}),this[_0x2fe4c5(0x1d9)][_0x2fe4c5(0x158)][_0x2fe4c5(0x1e2)](_0x5b42f5(this[_0x2fe4c5(0x1dd)]))[_0x2fe4c5(0x1a2)](_0xb5e492=>{const _0x3ee01f=_0x2fe4c5,{eventID:_0x3962c5}=_0xb5e492;switch(_0x3962c5){case _0x262122[_0x3ee01f(0x1bc)]:this[_0x3ee01f(0x183)](_0xb5e492);break;case _0x262122['LIVESHARE_OPERATION']:this[_0x3ee01f(0x160)](_0xb5e492);break;case _0x262122[_0x3ee01f(0x1be)]:this[_0x3ee01f(0x1d5)]();break;case _0x262122[_0x3ee01f(0x169)]:this[_0x3ee01f(0x17d)](_0xb5e492);break;}}));}[_0xeaafbf(0x152)](){const _0x37ce68=_0xeaafbf;this[_0x37ce68(0x1d9)]['send']({'eventID':_0x262122[_0x37ce68(0x159)],'data':{'unitID':this[_0x37ce68(0x1f4)],'userID':this[_0x37ce68(0x1d9)][_0x37ce68(0x1d1)]()}},this[_0x37ce68(0x1f4)]);}[_0xeaafbf(0x1ce)](){const _0x119916=_0xeaafbf;this['_status']===_0x119916(0x1e0)&&(this['_status$'][_0x119916(0x16c)](_0x119916(0x1b5)),this[_0x119916(0x1d9)]['send']({'eventID':_0x262122[_0x119916(0x1be)],'data':{'unitID':this['_unitID']}},this[_0x119916(0x1f4)]));}['startFollowing'](){const _0x390d27=_0xeaafbf;this[_0x390d27(0x186)]===_0x390d27(0x1c1)&&(this[_0x390d27(0x1e4)][_0x390d27(0x16c)](_0x390d27(0x14f)),this['_startFollowing']());}[_0xeaafbf(0x178)](){const _0x5e21b5=_0xeaafbf;this['_status']===_0x5e21b5(0x14f)&&this[_0x5e21b5(0x1a3)]();}[_0xeaafbf(0x183)](_0x241bf0){const _0xb5da06=_0xeaafbf,{presenter:_0x1b5428}=_0x241bf0[_0xb5da06(0x19e)],_0x1b4d9d=this[_0xb5da06(0x1d9)][_0xb5da06(0x1d1)]();this[_0xb5da06(0x179)]=_0x1b5428,_0x1b5428===_0x1b4d9d?(this[_0xb5da06(0x1a3)](),this[_0xb5da06(0x16f)]()):this[_0xb5da06(0x186)]!=='not-following'&&(this['_stopPresenting'](),this[_0xb5da06(0x1c0)]());}[_0xeaafbf(0x176)](){const _0x5d7f54=_0xeaafbf,_0x39fe61={'eventID':_0x262122['LIVESHARE_FETCH_OPERATIONS']};this[_0x5d7f54(0x1d9)][_0x5d7f54(0x1a8)](_0x39fe61,this['_unitID']);}[_0xeaafbf(0x1d5)](){const _0x37124c=_0xeaafbf;this[_0x37124c(0x179)]=null,this[_0x37124c(0x186)]!=='presenting'&&this[_0x37124c(0x1f0)]();}[_0xeaafbf(0x17d)](_0x25ae0f){const _0x1665f8=_0xeaafbf;if(this['_status']===_0x1665f8(0x14f)&&this[_0x1665f8(0x179)]===_0x25ae0f['data']['memberID']){const _0x57189f=_0x4ddb9c(_0x25ae0f['data'])['mutations']['reverse']()[_0x1665f8(0x18b)](_0x59434=>_0x59434['id']===_0x541fcc['id']);if(_0x57189f){const _0x31bf58=_0x57189f[_0x1665f8(0x17f)][_0x1665f8(0x19c)],_0x371dbd=_0x57189f[_0x1665f8(0x17f)][_0x1665f8(0x1d2)]['id'];setTimeout(()=>{const _0x3ca709=_0x1665f8;this[_0x3ca709(0x157)]['executeCommand'](_0x23cd6c['id'],{'unitId':_0x31bf58,'subUnitId':_0x371dbd},{'fromCollab':!0x0});});}}}[_0xeaafbf(0x16f)](){const _0x2f3047=_0xeaafbf;this['_status$'][_0x2f3047(0x16c)]('presenting');const _0xe52312=new Map(),_0x57b066=this['_commandDisposable']=new _0x5d9210();_0x57b066[_0x2f3047(0x19f)](_0x1332f1(()=>{const _0x55701d=_0x2f3047;_0xe52312['forEach'](_0x4cad1d=>_0x4cad1d[_0x55701d(0x1b7)]()),_0xe52312[_0x55701d(0x14e)]();})),_0x57b066['add'](this['_commandService']['onCommandExecuted'](_0x1db345=>{const _0x448ce9=_0x2f3047;var _0x515726;if(_0x1db345[_0x448ce9(0x1df)]!==_0xef2d8d['OPERATION']||!this[_0x448ce9(0x1af)][_0x448ce9(0x155)](_0x1db345['id']))return;const {id:_0x3788fb}=_0x1db345;let _0x40e6d9;_0xe52312[_0x448ce9(0x184)](_0x3788fb)?_0x40e6d9=_0xe52312[_0x448ce9(0x175)](_0x3788fb):(_0x40e6d9=new _0x444884(),_0xe52312[_0x448ce9(0x168)](_0x3788fb,_0x40e6d9),_0x40e6d9[_0x448ce9(0x1e2)](_0x475c1c((_0x515726=this[_0x448ce9(0x1c8)][_0x448ce9(0x1a5)](Ce))!=null?_0x515726:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x448ce9(0x1a2)](_0x12703d=>{const _0x160c8c=_0x448ce9;this['_collabSession'][_0x160c8c(0x1a8)]({'eventID':_0x262122[_0x160c8c(0x18d)],'data':{'unitID':this[_0x160c8c(0x1f4)],'operations':{[_0x12703d['id']]:{'id':_0x12703d['id'],'params':JSON[_0x160c8c(0x162)](_0x12703d[_0x160c8c(0x17f)])}}}},this[_0x160c8c(0x1f4)]);})),_0x40e6d9['next'](_0x1db345);})),this[_0x2f3047(0x1af)][_0x2f3047(0x17a)](this[_0x2f3047(0x1f4)])[_0x2f3047(0x19b)](_0x59d3d3=>this['_collabSession'][_0x2f3047(0x1a8)]({'eventID':_0x262122[_0x2f3047(0x18d)],'data':{'unitID':this[_0x2f3047(0x1f4)],'operations':{[_0x59d3d3['id']]:{'id':_0x59d3d3['id'],'params':JSON['stringify'](_0x59d3d3[_0x2f3047(0x17f)])}}}},this[_0x2f3047(0x1f4)]));}[_0xeaafbf(0x1f5)](){const _0x5ce73b=_0xeaafbf;var _0x1b4eb0;this[_0x5ce73b(0x1e4)][_0x5ce73b(0x16c)](_0x5ce73b(0x1b5)),(_0x1b4eb0=this[_0x5ce73b(0x1c7)])==null||_0x1b4eb0[_0x5ce73b(0x1ab)](),this['_commandDisposable']=null;}[_0xeaafbf(0x1c0)](){const _0x5bdf5a=_0xeaafbf;var _0x52daa3;(_0x52daa3=this[_0x5bdf5a(0x1c7)])==null||_0x52daa3[_0x5bdf5a(0x1ab)](),this[_0x5bdf5a(0x1e4)][_0x5bdf5a(0x16c)]('following');}['_beIdle'](){const _0xfb8a17=_0xeaafbf;var _0x24eedc;this['_status$'][_0xfb8a17(0x16c)](_0xfb8a17(0x1b5)),(_0x24eedc=this[_0xfb8a17(0x1c7)])==null||_0x24eedc[_0xfb8a17(0x1ab)](),this[_0xfb8a17(0x1c7)]=null;}['_stopFollowing'](){const _0x9cf165=_0xeaafbf;var _0x1c2615;this[_0x9cf165(0x1e4)]['next']('not-following'),(_0x1c2615=this[_0x9cf165(0x1c7)])==null||_0x1c2615[_0x9cf165(0x1ab)]();}['_handleOperation'](_0x56bd0b){const _0x5f1201=_0xeaafbf;if(['presenting','not-following',_0x5f1201(0x1b1)][_0x5f1201(0x156)](this[_0x5f1201(0x186)])||!_0x56bd0b['data']['presenter']||_0x56bd0b[_0x5f1201(0x19e)][_0x5f1201(0x15f)]===this[_0x5f1201(0x1d9)]['getMemberID']())return;this['_status']===_0x5f1201(0x1b5)&&this['_startFollowing']();const _0x185482=_0x56bd0b[_0x5f1201(0x19e)][_0x5f1201(0x1d0)];Object[_0x5f1201(0x197)](_0x185482)[_0x5f1201(0x19b)](_0x2176bf=>{const _0x3a16ab=_0x5f1201;this[_0x3a16ab(0x157)][_0x3a16ab(0x1cb)](_0x2176bf['id'],_0x2176bf[_0x3a16ab(0x17f)]?JSON['parse'](_0x2176bf[_0x3a16ab(0x17f)]):null,{'fromCollab':!0x0});});}[_0xeaafbf(0x15a)](){const _0x41b0cf=_0xeaafbf;var _0x4655eb;this[_0x41b0cf(0x1e4)][_0x41b0cf(0x16c)](_0x41b0cf(0x1b1)),(_0x4655eb=this[_0x41b0cf(0x1c7)])==null||_0x4655eb[_0x41b0cf(0x1ab)]();}[_0xeaafbf(0x163)](){const _0x54e03c=_0xeaafbf;this[_0x54e03c(0x1e4)][_0x54e03c(0x16c)]('idle'),this['_fetchOperations']();}};N=Y([_(0x2,_0x4c72af),_(0x3,_0x3ffeae(L)),_(0x4,_0x465a1b)],N);function Le(){const _0x3e3a6b=_0xeaafbf,_0x2fe6ce=_0x5ec2d9(S),_0x14569b=_0x5ec2d9(_0xe4bcbd),_0x4ed2cf=_0x19a9c6(()=>_0x14569b[_0x3e3a6b(0x188)](_0x59dbcd['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x433c77,_0x146c40]=_0x2b6511(null),[_0x218c0a,_0x4c7962]=_0x2b6511(c[_0x3e3a6b(0x1ea)]),_0x16c7cb=_0x54096f(null);return _0x51812f(()=>(_0x4ed2cf&&_0x2fe6ce['getLiveShareCoordinator'](_0x4ed2cf[_0x3e3a6b(0x1e7)]())[_0x3e3a6b(0x18f)](_0x151884=>{const _0x2d8ee4=_0x3e3a6b;_0x146c40(_0x151884),_0x16c7cb['current']=_0x151884['status$'][_0x2d8ee4(0x1a2)](_0x4523a1=>{_0x4c7962(_0x4523a1);});}),()=>{const _0x2ed7c0=_0x3e3a6b;var _0x41decb;(_0x41decb=_0x16c7cb[_0x2ed7c0(0x1aa)])==null||_0x41decb[_0x2ed7c0(0x166)](),_0x16c7cb['current']=null;}),[_0x4ed2cf,_0x2fe6ce]),_0x433c77?_0x115494(_0x4dbc1e,{'align':_0x3e3a6b(0x19d),'disabled':_0x218c0a===c['OFFLINE'],'className':_0x3e3a6b(0x1cc),'overlay':_0x115494(Re,{'status':_0x218c0a,'coordinator':_0x433c77}),'children':_0x115494(_0x3e3a6b(0x192),{'className':_0x5af8db(_0x3e3a6b(0x15e),{'univer-cursor-not-allowed':_0x218c0a===c[_0x3e3a6b(0x1d8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x218c0a!==c['OFFLINE']}),'type':'button','children':_0x115494(W,{'className':_0x3e3a6b(0x189)})})}):null;}function Re(_0x5a29e0){const _0xa34a80=_0xeaafbf,{status:_0x191d5c,coordinator:_0x35fec2}=_0x5a29e0;switch(_0x191d5c){case c[_0xa34a80(0x1ea)]:return _0x115494($e,{'coordinator':_0x35fec2});case c[_0xa34a80(0x1a7)]:return _0x115494(xe,{'coordinator':_0x35fec2});case c[_0xa34a80(0x18c)]:return _0x115494(Pe,{'coordinator':_0x35fec2});case c[_0xa34a80(0x1d8)]:return _0x115494(Te,{});case c[_0xa34a80(0x1ac)]:return _0x115494(Ae,{'coordinator':_0x35fec2});default:return null;}}function $e(_0xed49df){const _0x446b3f=_0xeaafbf,{coordinator:_0x3d93d7}=_0xed49df;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x446b3f(0x14c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x446b3f(0x16a)}),_0x115494(_0x39e985,{'onClick':()=>_0x3d93d7[_0x446b3f(0x152)](),'children':_0x446b3f(0x18a)})]});}function xe(_0x567050){const _0x2b63c2=_0xeaafbf,{coordinator:_0x4eedf0}=_0x567050;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x2b63c2(0x14c),{'className':_0x2b63c2(0x1ee),'children':_0x2b63c2(0x1e1)}),_0x115494(_0x39e985,{'onClick':()=>_0x4eedf0[_0x2b63c2(0x178)](),'children':_0x2b63c2(0x1f1)})]});}function Pe(_0x24ca1c){const _0x42fc4e=_0xeaafbf,{coordinator:_0x140011}=_0x24ca1c;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x42fc4e(0x14c),{'className':_0x42fc4e(0x1ee),'children':_0x42fc4e(0x1db)}),_0x115494(_0x39e985,{'variant':_0x42fc4e(0x153),'onClick':()=>_0x140011[_0x42fc4e(0x1ad)](),'children':_0x42fc4e(0x1bf)})]});}function Ae(_0x57ba39){const _0x1d5485=_0xeaafbf,{coordinator:_0x2a6bc1}=_0x57ba39;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x1d5485(0x14c),{'className':_0x1d5485(0x1ee),'children':_0x1d5485(0x171)}),_0x115494(_0x39e985,{'variant':'default','onClick':()=>_0x2a6bc1['stopPresenting'](),'children':_0x1d5485(0x15c)})]});}function Te(){const _0xed729e=_0xeaafbf;return _0x115494(_0x8cbe17,{'children':_0xed729e(0x1cf)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x1070ca,_0x2ea655,_0x29f5f4,_0x2d21d1)=>{for(var _0x338152=_0x2d21d1>0x1?void 0x0:_0x2d21d1?Fe(_0x2ea655,_0x29f5f4):_0x2ea655,_0x10d774=_0x1070ca['length']-0x1,_0x4413f7;_0x10d774>=0x0;_0x10d774--)(_0x4413f7=_0x1070ca[_0x10d774])&&(_0x338152=_0x4413f7(_0x338152)||_0x338152);return _0x338152;},A=(_0x4b46c4,_0x2a4cd2)=>(_0x343d3d,_0x3a7621)=>_0x2a4cd2(_0x343d3d,_0x3a7621,_0x4b46c4);let m=class extends _0x469b92{constructor(_0x443b42,_0xceac33){const _0x14068c=_0xeaafbf;super(),this[_0x14068c(0x187)]=_0x443b42,this[_0x14068c(0x16d)]=_0xceac33,this[_0x14068c(0x1e9)]();}[_0xeaafbf(0x1e9)](){const _0x23f52b=_0xeaafbf;this[_0x23f52b(0x15d)](this[_0x23f52b(0x16d)][_0x23f52b(0x1e5)](_0x4f4074[_0x23f52b(0x15b)],()=>_0x445f22(Le,this[_0x23f52b(0x187)])));}};m=He([A(0x0,_0x3ffeae(_0x3e453a)),A(0x1,_0x59077d)],m);const ye='live-share.config',T={};var Ue=Object[_0xeaafbf(0x1d4)],Ve=(_0x5e3edc,_0x2be997,_0x290c48,_0x142563)=>{const _0x106a35=_0xeaafbf;for(var _0xb2325c=_0x142563>0x1?void 0x0:_0x142563?Ue(_0x2be997,_0x290c48):_0x2be997,_0x402af1=_0x5e3edc[_0x106a35(0x1eb)]-0x1,_0x20c30a;_0x402af1>=0x0;_0x402af1--)(_0x20c30a=_0x5e3edc[_0x402af1])&&(_0xb2325c=_0x20c30a(_0xb2325c)||_0xb2325c);return _0xb2325c;},je=(_0x354443,_0x347a1)=>(_0x3e23cb,_0x363b5b)=>_0x347a1(_0x3e23cb,_0x363b5b,_0x354443);let I=class extends _0x469b92{constructor(_0x3374f9){const _0x2d8c35=_0xeaafbf;super(),this[_0x2d8c35(0x1af)]=_0x3374f9,this['_init']();}['_init'](){[_0x19b70e['id'],_0x49dea0['id'],_0x23cd6c['id']]['forEach'](_0x4892fc=>{const _0x14136e=_0xdc09;this[_0x14136e(0x15d)](this[_0x14136e(0x1af)][_0x14136e(0x1b3)](_0x4892fc));});}};I=Ve([je(0x0,_0x3ffeae(L))],I);var Me=Object[_0xeaafbf(0x17b)],ke=Object[_0xeaafbf(0x1d4)],Ge=(_0x2d9aab,_0x2ae8c1,_0x278e7a)=>_0x2ae8c1 in _0x2d9aab?Me(_0x2d9aab,_0x2ae8c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x278e7a}):_0x2d9aab[_0x2ae8c1]=_0x278e7a,We=(_0x2d8af8,_0x59446d,_0x1620ca,_0x40fd14)=>{for(var _0x3a2f05=_0x40fd14>0x1?void 0x0:_0x40fd14?ke(_0x59446d,_0x1620ca):_0x59446d,_0x7c7518=_0x2d8af8['length']-0x1,_0x256f51;_0x7c7518>=0x0;_0x7c7518--)(_0x256f51=_0x2d8af8[_0x7c7518])&&(_0x3a2f05=_0x256f51(_0x3a2f05)||_0x3a2f05);return _0x3a2f05;},F=(_0x28e6b1,_0x24f0b7)=>(_0x852165,_0x264c14)=>_0x24f0b7(_0x852165,_0x264c14,_0x28e6b1),B=(_0x384a9c,_0x1e8801,_0xba87a7)=>Ge(_0x384a9c,typeof _0x1e8801!=_0xeaafbf(0x180)?_0x1e8801+'':_0x1e8801,_0xba87a7);const Ye=_0xeaafbf(0x1ed);let b=class extends _0x5b0277{constructor(_0x4e333b=T,_0x39bb27,_0x4ed240){const _0x148cdf=_0xeaafbf;super(),this[_0x148cdf(0x196)]=_0x4e333b,this[_0x148cdf(0x187)]=_0x39bb27,this[_0x148cdf(0x1c8)]=_0x4ed240;const {..._0x177318}=_0x3e2e87({},T,this[_0x148cdf(0x196)]);this[_0x148cdf(0x1c8)][_0x148cdf(0x182)](ye,_0x177318);}[_0xeaafbf(0x17c)](){const _0x43f473=_0xeaafbf;_0x5b8f83(this[_0x43f473(0x187)],_0xed68fc([[L],[S],[I],[m]],this[_0x43f473(0x196)][_0x43f473(0x1f3)])),_0x98ac8(this[_0x43f473(0x187)],[[I]]);}[_0xeaafbf(0x1c6)](){_0x98ac8(this['_injector'],[[m]]);}};B(b,_0xeaafbf(0x1df),_0x59dbcd[_0xeaafbf(0x167)]),B(b,_0xeaafbf(0x172),Ye),b=We([_0x168090(_0x2f3e48),F(0x1,_0x3ffeae(_0x3e453a)),F(0x2,_0x4c72af)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};function _0x8dab(){const _0x21dcb4=['You\x27are\x20offline.','operations','getMemberID','sheet','_entities','getOwnPropertyDescriptor','_handleTerminate','path','svg','OFFLINE','_collabSession','66fjrokb','You\x27re\x20not\x20following\x20the\x20presenter','defIds','dispose$','_startLiveShareCoordinator','type','presenting','You\x27re\x20following\x20the\x20presenter','pipe','_reporters','_status$','registerComponent','requireSession','getUnitId','0\x200\x2017\x2017','_mountLiveShare','IDLE','length','evenodd','UNIVER_LIVE_SHARE_PLUGIN','univer-mb-3\x20univer-w-full\x20univer-text-sm','464394hcOILR','_beIdle','Stop\x20following','init','override','_unitID','_stopPresenting','attrs','div','getTypeOfUnitDisposed$','clear','following','colorChannel1','live-share-icon','tryStartPresenting','text','random','shouldShareOperation','includes','_commandService','event$','LIVESHARE_REQUEST_HOST','_handleOffline','HEADER_MENU','Stop\x20presenting','disposeWithMe','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenter','_handleOperation','entries','stringify','_handleOnline','status$','url(#$1','unsubscribe','UNIVER_UNKNOWN','set','NEW_CHANGESETS','Present\x20this\x20document','use','next','_uiPartsService','getLiveShareCoordinator','_startPresenting','mask','You\x27re\x20presenting\x20the\x20document','pluginName','replace','from','get','_fetchOperations','getValue','stopFollowing','_presenter','getInitialStates','defineProperty','onStarting','_handleNewChangeSets','LiveShareIcon','params','symbol','idSuffix','setConfig','_handleNewHost','has','tag','_status','_injector','getCurrentTypeOfUnit$','univer-size-4','Start','find','NOT_FOLLOWING','LIVESHARE_OPERATION','currentColor','then','asObservable','_univerInstanceService','button','617564galGbR','map','_init','_config','values','fill','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','createInstance','forEach','unitId','end','data','add','getStatus','children','subscribe','_stopFollowing','_collabSessionService','getConfig','1966715IjmesY','FOLLOWING','send','registerInitialStateReporter','current','dispose','PRESENTING','startFollowing','string','_liveShareService','UniverIcon','offline','sessionStatus$','registerSharedOperation','http://www.w3.org/2000/svg','idle','delete','complete','9GCYmqs','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','xlink:href','2282085tUNUdw','LIVESHARE_NEW_HOST','1947232rPoilJ','LIVESHARE_TERMINATE','Start\x20following','_startFollowing','not-following','274964UGWBGz','displayName','30725560CxnjQF','1em','onRendered','_commandDisposable','_configService','UNIVER_SHEET','none','executeCommand','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','_sharedOperations','stopPresenting'];_0x8dab=function(){return _0x21dcb4;};return _0x8dab();}
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x3656(){const _0xb26a08=['getLiveShareCoordinatorSync','18fUtzzN','1042PEDedq','_initialize','getStatus','No\x20active\x20workbook\x20found.','startFollowing','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','509LvPkbq','startPresenting','8AzVUzw','stopPresenting','11EhMFVx','87642Aaszak','defineProperty','stopFollowing','756685SZVSnB','6436325JFadDk','getCurrentUnitOfType','getUnitId','_injector','_liveShareController','getLiveShareStatus','UNIVER_SHEET','6827247wXYAJJ','extend','IDLE','151832obIGfY','LiveShareStatusEnum','1056730sCnWCe','get'];_0x3656=function(){return _0xb26a08;};return _0x3656();}function _0x2848(_0x2249a3,_0x5f15aa){_0x2249a3=_0x2249a3-0xc7;const _0x3656ff=_0x3656();let _0x284883=_0x3656ff[_0x2249a3];return _0x284883;}const _0x51c276=_0x2848;(function(_0x21c34f,_0x5be724){const _0x114fa2=_0x2848,_0x2f1d0b=_0x21c34f();while(!![]){try{const _0x319609=-parseInt(_0x114fa2(0xc7))/0x1*(-parseInt(_0x114fa2(0xe0))/0x2)+parseInt(_0x114fa2(0xcc))/0x3+parseInt(_0x114fa2(0xda))/0x4+-parseInt(_0x114fa2(0xcf))/0x5*(-parseInt(_0x114fa2(0xdf))/0x6)+-parseInt(_0x114fa2(0xd0))/0x7*(parseInt(_0x114fa2(0xc9))/0x8)+parseInt(_0x114fa2(0xd7))/0x9+parseInt(_0x114fa2(0xdc))/0xa*(-parseInt(_0x114fa2(0xcb))/0xb);if(_0x319609===_0x5be724)break;else _0x2f1d0b['push'](_0x2f1d0b['shift']());}catch(_0x58f759){_0x2f1d0b['push'](_0x2f1d0b['shift']());}}}(_0x3656,0x7ee7f));var l=Object[_0x51c276(0xcd)],w=(_0x278a8b,_0x2e95b4,_0x4ecd76)=>_0x2e95b4 in _0x278a8b?l(_0x278a8b,_0x2e95b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ecd76}):_0x278a8b[_0x2e95b4]=_0x4ecd76,v=(_0x3876a1,_0x422d25,_0x539fdc)=>w(_0x3876a1,typeof _0x422d25!='symbol'?_0x422d25+'':_0x422d25,_0x539fdc);import{LiveShareController as _0x27c601,LiveShareStatus as _0x177451}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x375412,UniverInstanceType as _0x39c699}from'@univerjs/core';import{FUniver as _0x499820,FEnum as _0x3e7ed2}from'@univerjs/core/facade';class g extends _0x499820{constructor(){const _0x24c0bc=_0x51c276;super(...arguments),v(this,_0x24c0bc(0xd4));}[_0x51c276(0xe1)](_0x522c9d){const _0x1678dd=_0x51c276;this[_0x1678dd(0xd4)]=_0x522c9d['get'](_0x27c601);}[_0x51c276(0xd5)](){const _0x449d2d=_0x51c276;var _0xd8db0d;const _0xcf97ba=this[_0x449d2d(0xd3)]['get'](_0x375412)[_0x449d2d(0xd1)](_0x39c699[_0x449d2d(0xd6)]);if(!_0xcf97ba)throw new Error(_0x449d2d(0xe3));const _0x4285e6=_0xcf97ba[_0x449d2d(0xd2)](),_0x482a0d=this[_0x449d2d(0xd4)][_0x449d2d(0xde)](_0x4285e6);return(_0xd8db0d=_0x482a0d==null?void 0x0:_0x482a0d[_0x449d2d(0xe2)]())!=null?_0xd8db0d:_0x177451[_0x449d2d(0xd9)];}[_0x51c276(0xe4)](){const _0x43044c=_0x51c276,_0x1604d7=this[_0x43044c(0xd3)][_0x43044c(0xdd)](_0x375412)[_0x43044c(0xd1)](_0x39c699['UNIVER_SHEET']);if(!_0x1604d7)throw new Error(_0x43044c(0xe3));const _0x1fa117=_0x1604d7[_0x43044c(0xd2)](),_0x2c5a89=this[_0x43044c(0xd4)]['getLiveShareCoordinatorSync'](_0x1fa117);if(!_0x2c5a89)throw new Error(_0x43044c(0xe5));_0x2c5a89[_0x43044c(0xe4)]();}[_0x51c276(0xce)](){const _0x3b67f1=_0x51c276,_0x26d9f4=this[_0x3b67f1(0xd3)][_0x3b67f1(0xdd)](_0x375412)[_0x3b67f1(0xd1)](_0x39c699[_0x3b67f1(0xd6)]);if(!_0x26d9f4)throw new Error(_0x3b67f1(0xe3));const _0x45dbbb=_0x26d9f4['getUnitId'](),_0x4ad5f1=this[_0x3b67f1(0xd4)]['getLiveShareCoordinatorSync'](_0x45dbbb);if(!_0x4ad5f1)throw new Error(_0x3b67f1(0xe5));_0x4ad5f1[_0x3b67f1(0xce)]();}[_0x51c276(0xc8)](){const _0x226a47=_0x51c276,_0x932ee7=this[_0x226a47(0xd3)][_0x226a47(0xdd)](_0x375412)[_0x226a47(0xd1)](_0x39c699['UNIVER_SHEET']);if(!_0x932ee7)throw new Error(_0x226a47(0xe3));const _0x3f0357=_0x932ee7[_0x226a47(0xd2)](),_0x4ffc2a=this[_0x226a47(0xd4)][_0x226a47(0xde)](_0x3f0357);if(!_0x4ffc2a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4ffc2a['tryStartPresenting']();}[_0x51c276(0xca)](){const _0x4ac2c6=_0x51c276,_0x118424=this[_0x4ac2c6(0xd3)][_0x4ac2c6(0xdd)](_0x375412)[_0x4ac2c6(0xd1)](_0x39c699[_0x4ac2c6(0xd6)]);if(!_0x118424)throw new Error('No\x20active\x20workbook\x20found.');const _0x936750=_0x118424['getUnitId'](),_0x392581=this[_0x4ac2c6(0xd4)][_0x4ac2c6(0xde)](_0x936750);if(!_0x392581)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x392581['stopPresenting']();}}_0x499820[_0x51c276(0xd8)](g);class f extends _0x3e7ed2{get[_0x51c276(0xdb)](){return _0x177451;}}_0x3e7ed2[_0x51c276(0xd8)](f);
1
+ const _0x19b141=_0x53dd;(function(_0x510e30,_0x21a070){const _0x3f0bca=_0x53dd,_0x22cb3e=_0x510e30();while(!![]){try{const _0x2270cb=parseInt(_0x3f0bca(0x12b))/0x1*(parseInt(_0x3f0bca(0x120))/0x2)+parseInt(_0x3f0bca(0x122))/0x3+parseInt(_0x3f0bca(0x136))/0x4+-parseInt(_0x3f0bca(0x125))/0x5*(-parseInt(_0x3f0bca(0x12e))/0x6)+parseInt(_0x3f0bca(0x137))/0x7+parseInt(_0x3f0bca(0x11e))/0x8+parseInt(_0x3f0bca(0x121))/0x9*(-parseInt(_0x3f0bca(0x133))/0xa);if(_0x2270cb===_0x21a070)break;else _0x22cb3e['push'](_0x22cb3e['shift']());}catch(_0x4f2e98){_0x22cb3e['push'](_0x22cb3e['shift']());}}}(_0x406e,0x54b90));var l=Object[_0x19b141(0x130)],w=(_0xfdb7f9,_0x849b5a,_0xa45fa8)=>_0x849b5a in _0xfdb7f9?l(_0xfdb7f9,_0x849b5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa45fa8}):_0xfdb7f9[_0x849b5a]=_0xa45fa8,v=(_0x76a04e,_0xb9c0e0,_0x5be59d)=>w(_0x76a04e,typeof _0xb9c0e0!=_0x19b141(0x126)?_0xb9c0e0+'':_0xb9c0e0,_0x5be59d);import{LiveShareController as _0x2cb6f1,LiveShareStatus as _0x1a5913}from'@univerjs-pro/live-share';import{IUniverInstanceService as _0x240b98,UniverInstanceType as _0x5dad90}from'@univerjs/core';import{FUniver as _0x3008c3,FEnum as _0xecc156}from'@univerjs/core/facade';function _0x53dd(_0xf68f15,_0x1ff45b){_0xf68f15=_0xf68f15-0x11e;const _0x406e43=_0x406e();let _0x53dd48=_0x406e43[_0xf68f15];return _0x53dd48;}class g extends _0x3008c3{constructor(){const _0x47105d=_0x19b141;super(...arguments),v(this,_0x47105d(0x13a));}['_initialize'](_0x5728bd){const _0x43b6ae=_0x19b141;this[_0x43b6ae(0x13a)]=_0x5728bd[_0x43b6ae(0x127)](_0x2cb6f1);}[_0x19b141(0x131)](){const _0x58f527=_0x19b141;var _0x4e5aa9;const _0x5e4049=this[_0x58f527(0x139)][_0x58f527(0x127)](_0x240b98)[_0x58f527(0x124)](_0x5dad90[_0x58f527(0x12d)]);if(!_0x5e4049)throw new Error(_0x58f527(0x12a));const _0x2ea060=_0x5e4049['getUnitId'](),_0x144bc7=this[_0x58f527(0x13a)]['getLiveShareCoordinatorSync'](_0x2ea060);return(_0x4e5aa9=_0x144bc7==null?void 0x0:_0x144bc7[_0x58f527(0x12f)]())!=null?_0x4e5aa9:_0x1a5913[_0x58f527(0x132)];}[_0x19b141(0x135)](){const _0x46e1b2=_0x19b141,_0x4cd5fd=this[_0x46e1b2(0x139)][_0x46e1b2(0x127)](_0x240b98)[_0x46e1b2(0x124)](_0x5dad90[_0x46e1b2(0x12d)]);if(!_0x4cd5fd)throw new Error(_0x46e1b2(0x12a));const _0x2a4b38=_0x4cd5fd[_0x46e1b2(0x123)](),_0x22d5ad=this[_0x46e1b2(0x13a)][_0x46e1b2(0x128)](_0x2a4b38);if(!_0x22d5ad)throw new Error(_0x46e1b2(0x138));_0x22d5ad[_0x46e1b2(0x135)]();}[_0x19b141(0x12c)](){const _0x494fe7=_0x19b141,_0x3d317a=this[_0x494fe7(0x139)][_0x494fe7(0x127)](_0x240b98)[_0x494fe7(0x124)](_0x5dad90['UNIVER_SHEET']);if(!_0x3d317a)throw new Error(_0x494fe7(0x12a));const _0x517dde=_0x3d317a[_0x494fe7(0x123)](),_0x3e00e3=this[_0x494fe7(0x13a)][_0x494fe7(0x128)](_0x517dde);if(!_0x3e00e3)throw new Error(_0x494fe7(0x138));_0x3e00e3['stopFollowing']();}['startPresenting'](){const _0x2bf9bf=_0x19b141,_0x4d06e3=this['_injector']['get'](_0x240b98)['getCurrentUnitOfType'](_0x5dad90[_0x2bf9bf(0x12d)]);if(!_0x4d06e3)throw new Error(_0x2bf9bf(0x12a));const _0x585e38=_0x4d06e3['getUnitId'](),_0x45aa14=this[_0x2bf9bf(0x13a)][_0x2bf9bf(0x128)](_0x585e38);if(!_0x45aa14)throw new Error(_0x2bf9bf(0x138));_0x45aa14['tryStartPresenting']();}[_0x19b141(0x129)](){const _0x5f0070=_0x19b141,_0x2b02e2=this[_0x5f0070(0x139)][_0x5f0070(0x127)](_0x240b98)[_0x5f0070(0x124)](_0x5dad90[_0x5f0070(0x12d)]);if(!_0x2b02e2)throw new Error('No\x20active\x20workbook\x20found.');const _0x3da6de=_0x2b02e2[_0x5f0070(0x123)](),_0x17c536=this[_0x5f0070(0x13a)][_0x5f0070(0x128)](_0x3da6de);if(!_0x17c536)throw new Error(_0x5f0070(0x138));_0x17c536[_0x5f0070(0x129)]();}}function _0x406e(){const _0x454398=['1164670qWoMKd','symbol','get','getLiveShareCoordinatorSync','stopPresenting','No\x20active\x20workbook\x20found.','3PzbrAB','stopFollowing','UNIVER_SHEET','6KjpvBv','getStatus','defineProperty','getLiveShareStatus','IDLE','1360qeBBuD','extend','startFollowing','1705752SGaTMY','2801694ZfcfZm','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_injector','_liveShareController','3033064jIaGAV','LiveShareStatusEnum','352418FCoMoW','128367taiytc','958254sdfIKO','getUnitId','getCurrentUnitOfType'];_0x406e=function(){return _0x454398;};return _0x406e();}_0x3008c3[_0x19b141(0x134)](g);class f extends _0xecc156{get[_0x19b141(0x11f)](){return _0x1a5913;}}_0xecc156[_0x19b141(0x134)](f);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3a48b0=_0x24da;(function(_0x2d507c,_0x512c41){const _0x37d282=_0x24da,_0x4619a9=_0x2d507c();while(!![]){try{const _0x476a05=parseInt(_0x37d282(0x175))/0x1*(-parseInt(_0x37d282(0x16d))/0x2)+-parseInt(_0x37d282(0x176))/0x3+-parseInt(_0x37d282(0x13f))/0x4*(-parseInt(_0x37d282(0x1c5))/0x5)+-parseInt(_0x37d282(0x141))/0x6*(parseInt(_0x37d282(0x183))/0x7)+parseInt(_0x37d282(0x14b))/0x8*(parseInt(_0x37d282(0x140))/0x9)+-parseInt(_0x37d282(0x12f))/0xa+parseInt(_0x37d282(0x147))/0xb*(parseInt(_0x37d282(0x12a))/0xc);if(_0x476a05===_0x512c41)break;else _0x4619a9['push'](_0x4619a9['shift']());}catch(_0x463c5c){_0x4619a9['push'](_0x4619a9['shift']());}}}(_0x1866,0x639a5));var J=Object[_0x3a48b0(0x126)],K=(_0x58c613,_0x50059e,_0x3bfb64)=>_0x50059e in _0x58c613?J(_0x58c613,_0x50059e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bfb64}):_0x58c613[_0x50059e]=_0x3bfb64,u=(_0x4375c3,_0x103317,_0x54a65a)=>K(_0x4375c3,typeof _0x103317!=_0x3a48b0(0x170)?_0x103317+'':_0x103317,_0x54a65a);import{Disposable as _0xdc5bc,toDisposable as _0x4c5488,Inject as _0x3cc5dc,Injector as _0x40bad3,RxDisposable as _0x3cf172,UniverInstanceType as _0x46f478,DisposableCollection as _0x186e13,CommandType as _0x2644e5,IUniverInstanceService as _0x155e3b,IConfigService as _0x3609ed,ICommandService as _0x4bc6e7,DependentOn as _0xeaa0b2,Plugin as _0x2c2008,merge as _0x46002f,registerDependencies as _0x4ce657,mergeOverrideWithDependencies as _0x46574a,touchDependencies as _0x4d5b23}from'@univerjs/core';import{useDependency as _0x35feb0,useObservable as _0x3009e7,BuiltInUIPart as _0x50392a,connectInjector as _0x57a52a,IUIPartsService as _0x25e85a}from'@univerjs/ui';import{jsx as _0x40948b,jsxs as _0x46a17b,Fragment as _0x4b0054}from'react/jsx-runtime';import{Dropdown as _0x1174ca,clsx as _0x3f01c6,Button as _0x5c9227}from'@univerjs/design';import{useRef as _0x2ed13b,createElement as _0x405a1f,forwardRef as _0x4785f6,useState as _0x247868,useEffect as _0x3307bc}from'react';import{CollaborationEvent as _0x9ef2e2,parseProtocolChangeset as _0x592d58}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4ec532,SessionStatus as _0x3b064e,UniverCollaborationClientPlugin as _0x148cb5}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5e2ee2,SetWorksheetActiveOperation as _0x24e2a6}from'@univerjs/sheets';import{BehaviorSubject as _0x177dca,Subject as _0x24aae7}from'rxjs';import{takeUntil as _0x4e5b2e,throttleTime as _0x3a9e24}from'rxjs/operators';import{SetZoomRatioOperation as _0x46bd10,SetScrollOperation as _0x47775a}from'@univerjs/sheets-ui';function k({ref:_0x232902,..._0x1cffc8}){const _0x332326=_0x3a48b0,{icon:_0x61c613,id:_0x2eb174,className:_0x8d5ce2,extend:_0x4d9904,..._0x56dc15}=_0x1cffc8,_0x199378=(_0x332326(0x1b4)+_0x2eb174+'\x20'+(_0x8d5ce2||''))['trim'](),_0x4dce4e=_0x2ed13b('_'+Oe());return G(_0x61c613,''+_0x2eb174,{'defIds':_0x61c613[_0x332326(0x15b)],'idSuffix':_0x4dce4e[_0x332326(0x161)]},{'ref':_0x232902,'className':_0x199378,..._0x56dc15},_0x4d9904);}function G(_0x313ad4,_0x387da8,_0x8516cb,_0x45eb90,_0x12c850){const _0x5cdde3=_0x3a48b0;return _0x405a1f(_0x313ad4[_0x5cdde3(0x163)],{'key':_0x387da8,...be(_0x313ad4,_0x8516cb,_0x12c850),..._0x45eb90},(Ee(_0x313ad4,_0x8516cb)['children']||[])['map']((_0x1aabee,_0x2a2457)=>G(_0x1aabee,_0x387da8+'-'+_0x313ad4['tag']+'-'+_0x2a2457,_0x8516cb,void 0x0,_0x12c850)));}function be(_0x512cd5,_0x319eb8,_0x4cb4c9){const _0x174cb1=_0x3a48b0,_0x285b23={..._0x512cd5[_0x174cb1(0x1b1)]};_0x4cb4c9!=null&&_0x4cb4c9['colorChannel1']&&_0x285b23['fill']===_0x174cb1(0x1c2)&&(_0x285b23[_0x174cb1(0x138)]=_0x4cb4c9['colorChannel1']),_0x512cd5[_0x174cb1(0x163)]==='mask'&&_0x285b23['id']&&(_0x285b23['id']=_0x285b23['id']+_0x319eb8[_0x174cb1(0x159)]),Object[_0x174cb1(0x122)](_0x285b23)[_0x174cb1(0x1b7)](([_0x44e491,_0x57684d])=>{const _0x55d141=_0x174cb1;_0x44e491==='mask'&&typeof _0x57684d==_0x55d141(0x168)&&(_0x285b23[_0x44e491]=_0x57684d[_0x55d141(0x166)](/url\(#(.*)\)/,'url(#$1'+_0x319eb8[_0x55d141(0x159)]+')'));});const {defIds:_0xe56201}=_0x319eb8;return!_0xe56201||_0xe56201[_0x174cb1(0x1ad)]===0x0||(_0x512cd5[_0x174cb1(0x163)]===_0x174cb1(0x1be)&&_0x285b23[_0x174cb1(0x14e)]&&(_0x285b23[_0x174cb1(0x14e)]=_0x285b23[_0x174cb1(0x14e)]+_0x319eb8[_0x174cb1(0x159)]),Object[_0x174cb1(0x122)](_0x285b23)['forEach'](([_0x522e34,_0x18337b])=>{const _0x11501c=_0x174cb1;typeof _0x18337b==_0x11501c(0x168)&&(_0x285b23[_0x522e34]=_0x18337b['replace'](/url\(#(.*)\)/,_0x11501c(0x16e)+_0x319eb8[_0x11501c(0x159)]+')'));})),_0x285b23;}function Ee(_0x4c9762,_0x2afb29){const _0x1fce3e=_0x3a48b0;var _0xc2ca90;const {defIds:_0x52e97f}=_0x2afb29;return!_0x52e97f||_0x52e97f[_0x1fce3e(0x1ad)]===0x0?_0x4c9762:_0x4c9762[_0x1fce3e(0x163)]===_0x1fce3e(0x1c9)&&((_0xc2ca90=_0x4c9762[_0x1fce3e(0x1b2)])!=null&&_0xc2ca90[_0x1fce3e(0x1ad)])?{..._0x4c9762,'children':_0x4c9762[_0x1fce3e(0x1b2)][_0x1fce3e(0x18e)](_0x2328d9=>typeof _0x2328d9[_0x1fce3e(0x1b1)]['id']==_0x1fce3e(0x168)&&_0x52e97f&&_0x52e97f[_0x1fce3e(0x11e)](_0x2328d9[_0x1fce3e(0x1b1)]['id'])?{..._0x2328d9,'attrs':{..._0x2328d9[_0x1fce3e(0x1b1)],'id':_0x2328d9[_0x1fce3e(0x1b1)]['id']+_0x2afb29[_0x1fce3e(0x159)]}}:_0x2328d9)}:_0x4c9762;}function Oe(){const _0x2fa3ef=_0x3a48b0;return Math[_0x2fa3ef(0x1c3)]()[_0x2fa3ef(0x169)](0x24)[_0x2fa3ef(0x178)](0x2,0x8);}k[_0x3a48b0(0x136)]=_0x3a48b0(0x121);const we={'tag':'svg','attrs':{'xmlns':_0x3a48b0(0x197),'fill':_0x3a48b0(0x164),'viewBox':_0x3a48b0(0x16b),'width':_0x3a48b0(0x154),'height':'1em'},'children':[{'tag':_0x3a48b0(0x198),'attrs':{'fill':'currentColor','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':_0x3a48b0(0x198),'attrs':{'fill':_0x3a48b0(0x171),'d':_0x3a48b0(0x1b9),'fillRule':_0x3a48b0(0x167),'clipRule':_0x3a48b0(0x167)}}]},W=_0x4785f6(function(_0x1ebb35,_0xbcdeca){const _0x412318=_0x3a48b0;return _0x405a1f(k,Object[_0x412318(0x15c)]({},_0x1ebb35,{'id':_0x412318(0x19c),'ref':_0xbcdeca,'icon':we}));});function _0x1866(){const _0xf525bc=['setConfig','_handleOnline','IDLE','defineProperty','getTypeOfUnitDisposed$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','pipe','24TvTjhF','FOLLOWING','send','PRESENTING','shouldShareOperation','6215210btnMea','_startFollowing','getConfig','params','override','stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','displayName','LIVESHARE_NEW_HOST','fill','OFFLINE','UNIVER_LIVE_SHARE_PLUGIN','parse','_beIdle','_handleOffline','_startPresenting','2661380uKaeXc','153wSKVWo','6AJSBMw','dispose$','presenting','data','Start\x20following','_handleNewHost','2557522xoUuKO','dispose','requireSession','clear','265568OAYtTh','unitId','operations','xlink:href','registerSharedOperation','_commandService','getOwnPropertyDescriptor','univer-size-4','_config','1em','type','_presenter','div','You\x27re\x20following\x20the\x20presenter','idSuffix','tryStartPresenting','defIds','assign','_handleNewChangeSets','stopPresenting','_handleTerminate','_injector','current','_init','tag','none','NEW_CHANGESETS','replace','evenodd','string','toString','button','0\x200\x2017\x2017','_sharedOperations','37528yCSVmj','url(#$1','mutations','symbol','currentColor','complete','_fetchOperations','_liveShareService','8BDelBK','939162jxNykl','idle','substring','UNIVER_UNKNOWN','_handleOperation','getMemberID','next','getStatus','_configService','disposeWithMe','status$','Stop\x20presenting','_entities','1414147BRJtmR','get','sheet','UNIVER_SHEET','startFollowing','You\x27re\x20presenting\x20the\x20document','add','then','presenter','unsubscribe','init','map','LIVESHARE_TERMINATE','SAME_OPERATION_SHARE_INTERVAL','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_unitID','default','_status','getInitialStates','createInstance','http://www.w3.org/2000/svg','path','You\x27re\x20not\x20following\x20the\x20presenter','find','_univerInstanceService','live-share-icon','offline','live-share.config','subscribe','ONLINE','_reporters','getValue','set','LiveShareIcon','reverse','from','registerInitialStateReporter','end','has','stringify','_collabSessionService','onStarting','length','LIVESHARE_FETCH_OPERATIONS','_status$','executeCommand','attrs','children','delete','univerjs-icon\x20univerjs-icon-','_collabSession','LIVESHARE_OPERATION','forEach','Stop\x20following','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','getLiveShareCoordinator','_stopPresenting','_stopFollowing','HEADER_MENU','use','_commandDisposable','NOT_FOLLOWING','memberID','colorChannel1','random','onRendered','5wiQhee','OPERATION','following','Start','defs','LIVESHARE_REQUEST_HOST','not-following','getUnitId','includes','_mountLiveShare','text','UniverIcon','entries'];_0x1866=function(){return _0xf525bc;};return _0x1866();}W[_0x3a48b0(0x136)]=_0x3a48b0(0x1a4);class L extends _0xdc5bc{constructor(){const _0x2620a5=_0x3a48b0;super(...arguments),u(this,_0x2620a5(0x16c),new Set()),u(this,_0x2620a5(0x1a1),new Set());}['registerSharedOperation'](_0x403b19){const _0x2dd2be=_0x3a48b0;return this[_0x2dd2be(0x16c)][_0x2dd2be(0x189)](_0x403b19),_0x4c5488(()=>this[_0x2dd2be(0x16c)][_0x2dd2be(0x1b3)](_0x403b19));}[_0x3a48b0(0x1a7)](_0x1b8add){const _0x1099fd=_0x3a48b0;return this[_0x1099fd(0x1a1)][_0x1099fd(0x189)](_0x1b8add),_0x4c5488(()=>this[_0x1099fd(0x1a1)][_0x1099fd(0x1b3)](_0x1b8add));}[_0x3a48b0(0x12e)](_0xdd6c27){const _0x43d216=_0x3a48b0;return this[_0x43d216(0x16c)][_0x43d216(0x1a9)](_0xdd6c27);}[_0x3a48b0(0x195)](_0x5b4295){const _0x1bd610=_0x3a48b0;return Array[_0x1bd610(0x1a6)](this[_0x1bd610(0x1a1)])[_0x1bd610(0x18e)](_0x323240=>_0x323240(_0x5b4295));}}var Ne=Object[_0x3a48b0(0x151)],Y=(_0x426be1,_0x590d59,_0x54995b,_0x5852eb)=>{const _0x4c51d3=_0x3a48b0;for(var _0x1687c9=_0x5852eb>0x1?void 0x0:_0x5852eb?Ne(_0x590d59,_0x54995b):_0x590d59,_0xc2ce7c=_0x426be1[_0x4c51d3(0x1ad)]-0x1,_0x2795cf;_0xc2ce7c>=0x0;_0xc2ce7c--)(_0x2795cf=_0x426be1[_0xc2ce7c])&&(_0x1687c9=_0x2795cf(_0x1687c9)||_0x1687c9);return _0x1687c9;},_=(_0x17a9b8,_0x2f8e53)=>(_0x53faae,_0x5c0e80)=>_0x2f8e53(_0x53faae,_0x5c0e80,_0x17a9b8);let S=class extends _0x3cf172{constructor(_0x249c38,_0x226c37,_0x566a53){const _0x5789cc=_0x3a48b0;super(),u(this,_0x5789cc(0x182),new Map()),(this[_0x5789cc(0x19b)]=_0x249c38,this[_0x5789cc(0x160)]=_0x226c37,this[_0x5789cc(0x1ab)]=_0x566a53,this['_init']());}async[_0x3a48b0(0x1ba)](_0x211db0){const _0x17facf=_0x3a48b0;return this[_0x17facf(0x182)]['has'](_0x211db0)||await this['_startLiveShareCoordinator'](_0x211db0),this['_entities']['get'](_0x211db0);}['getLiveShareCoordinatorSync'](_0x1228d4){const _0x29bdfc=_0x3a48b0;var _0x1a18da;return(_0x1a18da=this[_0x29bdfc(0x182)][_0x29bdfc(0x184)](_0x1228d4))!=null?_0x1a18da:null;}[_0x3a48b0(0x162)](){const _0x379a58=_0x3a48b0;this[_0x379a58(0x19b)]['getTypeOfUnitAdded$'](_0x46f478[_0x379a58(0x186)])['pipe'](_0x4e5b2e(this[_0x379a58(0x142)]))[_0x379a58(0x19f)](async _0x505ca3=>{const _0x810ba0=_0x379a58,_0x3023df=_0x505ca3[_0x810ba0(0x11d)]();this[_0x810ba0(0x182)][_0x810ba0(0x1a9)](_0x3023df)||this['_startLiveShareCoordinator'](_0x3023df);}),this['_univerInstanceService'][_0x379a58(0x127)](_0x46f478[_0x379a58(0x186)])[_0x379a58(0x129)](_0x4e5b2e(this[_0x379a58(0x142)]))['subscribe'](_0xa56c91=>{const _0x2e3340=_0x379a58,_0x41abec=_0xa56c91[_0x2e3340(0x11d)](),_0x22d12d=this[_0x2e3340(0x182)]['get'](_0x41abec);_0x22d12d==null||_0x22d12d['dispose']();});}async['_startLiveShareCoordinator'](_0x4dcdd1){const _0x5b8728=_0x3a48b0,_0x188c9a=await this[_0x5b8728(0x1ab)][_0x5b8728(0x149)](_0x4dcdd1),_0x4aed20=this[_0x5b8728(0x160)][_0x5b8728(0x196)](N,_0x4dcdd1,_0x188c9a);return _0x4aed20[_0x5b8728(0x18d)](),this[_0x5b8728(0x182)]['set'](_0x4dcdd1,_0x4aed20),_0x4aed20;}};S=Y([_(0x0,_0x155e3b),_(0x1,_0x3cc5dc(_0x40bad3)),_(0x2,_0x3cc5dc(_0x4ec532))],S);var c=(_0x501d2b=>(_0x501d2b['OFFLINE']=_0x3a48b0(0x19d),_0x501d2b[_0x3a48b0(0x125)]=_0x3a48b0(0x177),_0x501d2b['FOLLOWING']=_0x3a48b0(0x1c7),_0x501d2b[_0x3a48b0(0x1c0)]=_0x3a48b0(0x11c),_0x501d2b[_0x3a48b0(0x12d)]=_0x3a48b0(0x143),_0x501d2b))(c||{});function _0x24da(_0x3647a3,_0x5a3580){_0x3647a3=_0x3647a3-0x11c;const _0x186615=_0x1866();let _0x24daae=_0x186615[_0x3647a3];return _0x24daae;}const Ce=_0x3a48b0(0x190),De=0xc8;let N=class extends _0x3cf172{constructor(_0x57df03,_0x48eae4,_0x1efcd3,_0x12283d,_0xd7ff84){const _0x317ede=_0x3a48b0;super(),u(this,_0x317ede(0x1af),new _0x177dca(_0x317ede(0x177))),u(this,_0x317ede(0x180),this['_status$']['asObservable']()),u(this,'_init',!0x1),u(this,_0x317ede(0x1bf),null),u(this,'_presenter',null),(this[_0x317ede(0x192)]=_0x57df03,this['_collabSession']=_0x48eae4,this[_0x317ede(0x17e)]=_0x1efcd3,this[_0x317ede(0x174)]=_0x12283d,this[_0x317ede(0x150)]=_0xd7ff84);}get[_0x3a48b0(0x194)](){const _0x2eabae=_0x3a48b0;return this[_0x2eabae(0x1af)][_0x2eabae(0x1a2)]();}[_0x3a48b0(0x148)](){const _0x35a210=_0x3a48b0;var _0xe130a1;(_0xe130a1=this['_commandDisposable'])==null||_0xe130a1[_0x35a210(0x148)](),this[_0x35a210(0x1af)][_0x35a210(0x17c)](_0x35a210(0x177)),this[_0x35a210(0x1af)][_0x35a210(0x172)]();}[_0x3a48b0(0x17d)](){const _0x1f8cd7=_0x3a48b0;return this[_0x1f8cd7(0x194)];}['init'](){const _0x1baaf8=_0x3a48b0;this[_0x1baaf8(0x162)]||(this['_init']=!0x0,this[_0x1baaf8(0x1b5)]['sessionStatus$'][_0x1baaf8(0x129)](_0x4e5b2e(this[_0x1baaf8(0x142)]))[_0x1baaf8(0x19f)](_0x551b30=>{const _0x57ed06=_0x1baaf8;switch(_0x551b30){case _0x3b064e[_0x57ed06(0x139)]:this['_handleOffline']();break;case _0x3b064e[_0x57ed06(0x1a0)]:this[_0x57ed06(0x124)]();break;}}),this[_0x1baaf8(0x1b5)]['event$']['pipe'](_0x4e5b2e(this[_0x1baaf8(0x142)]))[_0x1baaf8(0x19f)](_0x1c41f7=>{const _0x5bea3f=_0x1baaf8,{eventID:_0xeda5de}=_0x1c41f7;switch(_0xeda5de){case _0x9ef2e2[_0x5bea3f(0x137)]:this[_0x5bea3f(0x146)](_0x1c41f7);break;case _0x9ef2e2[_0x5bea3f(0x1b6)]:this[_0x5bea3f(0x17a)](_0x1c41f7);break;case _0x9ef2e2['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x9ef2e2[_0x5bea3f(0x165)]:this['_handleNewChangeSets'](_0x1c41f7);break;}}));}[_0x3a48b0(0x15a)](){const _0x1443de=_0x3a48b0;this[_0x1443de(0x1b5)]['send']({'eventID':_0x9ef2e2[_0x1443de(0x1ca)],'data':{'unitID':this[_0x1443de(0x192)],'userID':this[_0x1443de(0x1b5)][_0x1443de(0x17b)]()}},this[_0x1443de(0x192)]);}[_0x3a48b0(0x15e)](){const _0x525173=_0x3a48b0;this[_0x525173(0x194)]===_0x525173(0x143)&&(this[_0x525173(0x1af)][_0x525173(0x17c)]('idle'),this[_0x525173(0x1b5)][_0x525173(0x12c)]({'eventID':_0x9ef2e2[_0x525173(0x18f)],'data':{'unitID':this[_0x525173(0x192)]}},this[_0x525173(0x192)]));}[_0x3a48b0(0x187)](){const _0x2592fb=_0x3a48b0;this['_status']===_0x2592fb(0x11c)&&(this[_0x2592fb(0x1af)][_0x2592fb(0x17c)](_0x2592fb(0x1c7)),this[_0x2592fb(0x130)]());}[_0x3a48b0(0x134)](){const _0x3306cb=_0x3a48b0;this[_0x3306cb(0x194)]===_0x3306cb(0x1c7)&&this[_0x3306cb(0x1bc)]();}[_0x3a48b0(0x146)](_0x5f04d6){const _0x3a2242=_0x3a48b0,{presenter:_0x168053}=_0x5f04d6['data'],_0x4e8891=this['_collabSession'][_0x3a2242(0x17b)]();this[_0x3a2242(0x156)]=_0x168053,_0x168053===_0x4e8891?(this[_0x3a2242(0x1bc)](),this[_0x3a2242(0x13e)]()):this[_0x3a2242(0x194)]!==_0x3a2242(0x11c)&&(this[_0x3a2242(0x1bb)](),this[_0x3a2242(0x130)]());}[_0x3a48b0(0x173)](){const _0x42f569=_0x3a48b0,_0x5b94f9={'eventID':_0x9ef2e2[_0x42f569(0x1ae)]};this[_0x42f569(0x1b5)][_0x42f569(0x12c)](_0x5b94f9,this[_0x42f569(0x192)]);}[_0x3a48b0(0x15f)](){const _0x4d1f5c=_0x3a48b0;this['_presenter']=null,this[_0x4d1f5c(0x194)]!==_0x4d1f5c(0x143)&&this[_0x4d1f5c(0x13c)]();}[_0x3a48b0(0x15d)](_0x3ed8f5){const _0x2d2aaa=_0x3a48b0;if(this['_status']===_0x2d2aaa(0x1c7)&&this[_0x2d2aaa(0x156)]===_0x3ed8f5[_0x2d2aaa(0x144)][_0x2d2aaa(0x1c1)]){const _0x20a341=_0x592d58(_0x3ed8f5[_0x2d2aaa(0x144)])[_0x2d2aaa(0x16f)][_0x2d2aaa(0x1a5)]()[_0x2d2aaa(0x19a)](_0x15e5d1=>_0x15e5d1['id']===_0x5e2ee2['id']);if(_0x20a341){const _0x340248=_0x20a341[_0x2d2aaa(0x132)][_0x2d2aaa(0x14c)],_0x31bf19=_0x20a341['params'][_0x2d2aaa(0x185)]['id'];setTimeout(()=>{const _0x457913=_0x2d2aaa;this[_0x457913(0x150)][_0x457913(0x1b0)](_0x24e2a6['id'],{'unitId':_0x340248,'subUnitId':_0x31bf19},{'fromCollab':!0x0});});}}}[_0x3a48b0(0x13e)](){const _0x450884=_0x3a48b0;this[_0x450884(0x1af)][_0x450884(0x17c)](_0x450884(0x143));const _0x4da42f=new Map(),_0x2e1c46=this['_commandDisposable']=new _0x186e13();_0x2e1c46['add'](_0x4c5488(()=>{const _0x1ff69f=_0x450884;_0x4da42f[_0x1ff69f(0x1b7)](_0x3d2d5c=>_0x3d2d5c[_0x1ff69f(0x172)]()),_0x4da42f[_0x1ff69f(0x14a)]();})),_0x2e1c46[_0x450884(0x189)](this['_commandService']['onCommandExecuted'](_0x488f48=>{const _0x4ee9ba=_0x450884;var _0x3aa6e4;if(_0x488f48[_0x4ee9ba(0x155)]!==_0x2644e5[_0x4ee9ba(0x1c6)]||!this['_liveShareService'][_0x4ee9ba(0x12e)](_0x488f48['id']))return;const {id:_0x4a1f48}=_0x488f48;let _0x23a48b;_0x4da42f[_0x4ee9ba(0x1a9)](_0x4a1f48)?_0x23a48b=_0x4da42f[_0x4ee9ba(0x184)](_0x4a1f48):(_0x23a48b=new _0x24aae7(),_0x4da42f[_0x4ee9ba(0x1a3)](_0x4a1f48,_0x23a48b),_0x23a48b[_0x4ee9ba(0x129)](_0x3a9e24((_0x3aa6e4=this['_configService'][_0x4ee9ba(0x131)](Ce))!=null?_0x3aa6e4:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ee9ba(0x19f)](_0x1a749c=>{const _0x3851d2=_0x4ee9ba;this['_collabSession'][_0x3851d2(0x12c)]({'eventID':_0x9ef2e2[_0x3851d2(0x1b6)],'data':{'unitID':this[_0x3851d2(0x192)],'operations':{[_0x1a749c['id']]:{'id':_0x1a749c['id'],'params':JSON[_0x3851d2(0x1aa)](_0x1a749c[_0x3851d2(0x132)])}}}},this[_0x3851d2(0x192)]);})),_0x23a48b[_0x4ee9ba(0x17c)](_0x488f48);})),this['_liveShareService'][_0x450884(0x195)](this[_0x450884(0x192)])[_0x450884(0x1b7)](_0x22a9e8=>this['_collabSession'][_0x450884(0x12c)]({'eventID':_0x9ef2e2[_0x450884(0x1b6)],'data':{'unitID':this[_0x450884(0x192)],'operations':{[_0x22a9e8['id']]:{'id':_0x22a9e8['id'],'params':JSON[_0x450884(0x1aa)](_0x22a9e8['params'])}}}},this['_unitID']));}[_0x3a48b0(0x1bb)](){const _0x4d99f9=_0x3a48b0;var _0x350df0;this[_0x4d99f9(0x1af)]['next'](_0x4d99f9(0x177)),(_0x350df0=this['_commandDisposable'])==null||_0x350df0[_0x4d99f9(0x148)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x41de9c=_0x3a48b0;var _0x4205c4;(_0x4205c4=this[_0x41de9c(0x1bf)])==null||_0x4205c4[_0x41de9c(0x148)](),this[_0x41de9c(0x1af)][_0x41de9c(0x17c)](_0x41de9c(0x1c7));}[_0x3a48b0(0x13c)](){const _0x14b3c2=_0x3a48b0;var _0x17e11c;this[_0x14b3c2(0x1af)][_0x14b3c2(0x17c)](_0x14b3c2(0x177)),(_0x17e11c=this[_0x14b3c2(0x1bf)])==null||_0x17e11c[_0x14b3c2(0x148)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x54f8af=_0x3a48b0;var _0xdadff5;this['_status$'][_0x54f8af(0x17c)](_0x54f8af(0x11c)),(_0xdadff5=this[_0x54f8af(0x1bf)])==null||_0xdadff5[_0x54f8af(0x148)]();}[_0x3a48b0(0x17a)](_0x1468a5){const _0x4d68b1=_0x3a48b0;if(['presenting',_0x4d68b1(0x11c),_0x4d68b1(0x19d)][_0x4d68b1(0x11e)](this[_0x4d68b1(0x194)])||!_0x1468a5[_0x4d68b1(0x144)][_0x4d68b1(0x18b)]||_0x1468a5[_0x4d68b1(0x144)][_0x4d68b1(0x18b)]===this[_0x4d68b1(0x1b5)][_0x4d68b1(0x17b)]())return;this['_status']===_0x4d68b1(0x177)&&this[_0x4d68b1(0x130)]();const _0x9a57d8=_0x1468a5[_0x4d68b1(0x144)][_0x4d68b1(0x14d)];Object['values'](_0x9a57d8)[_0x4d68b1(0x1b7)](_0xd38bf=>{const _0x54e3c0=_0x4d68b1;this[_0x54e3c0(0x150)][_0x54e3c0(0x1b0)](_0xd38bf['id'],_0xd38bf[_0x54e3c0(0x132)]?JSON[_0x54e3c0(0x13b)](_0xd38bf[_0x54e3c0(0x132)]):null,{'fromCollab':!0x0});});}[_0x3a48b0(0x13d)](){const _0x805573=_0x3a48b0;var _0x282d05;this[_0x805573(0x1af)][_0x805573(0x17c)](_0x805573(0x19d)),(_0x282d05=this[_0x805573(0x1bf)])==null||_0x282d05['dispose']();}[_0x3a48b0(0x124)](){const _0x3803cf=_0x3a48b0;this[_0x3803cf(0x1af)][_0x3803cf(0x17c)](_0x3803cf(0x177)),this[_0x3803cf(0x173)]();}};N=Y([_(0x2,_0x3609ed),_(0x3,_0x3cc5dc(L)),_(0x4,_0x4bc6e7)],N);function Le(){const _0x1dd7f3=_0x3a48b0,_0x220fc1=_0x35feb0(S),_0x41f9ed=_0x35feb0(_0x155e3b),_0x27a5a5=_0x3009e7(()=>_0x41f9ed['getCurrentTypeOfUnit$'](_0x46f478[_0x1dd7f3(0x186)]),void 0x0,!0x1,[]),[_0x325e28,_0x4593a4]=_0x247868(null),[_0x391ad4,_0x505d3f]=_0x247868(c['IDLE']),_0x199200=_0x2ed13b(null);return _0x3307bc(()=>(_0x27a5a5&&_0x220fc1[_0x1dd7f3(0x1ba)](_0x27a5a5['getUnitId']())[_0x1dd7f3(0x18a)](_0x50c59a=>{const _0x48d3c8=_0x1dd7f3;_0x4593a4(_0x50c59a),_0x199200['current']=_0x50c59a['status$'][_0x48d3c8(0x19f)](_0x299cd2=>{_0x505d3f(_0x299cd2);});}),()=>{const _0x50347a=_0x1dd7f3;var _0x1b46e6;(_0x1b46e6=_0x199200[_0x50347a(0x161)])==null||_0x1b46e6[_0x50347a(0x18c)](),_0x199200[_0x50347a(0x161)]=null;}),[_0x27a5a5,_0x220fc1]),_0x325e28?_0x40948b(_0x1174ca,{'align':_0x1dd7f3(0x1a8),'disabled':_0x391ad4===c[_0x1dd7f3(0x139)],'className':_0x1dd7f3(0x191),'overlay':_0x40948b(Re,{'status':_0x391ad4,'coordinator':_0x325e28}),'children':_0x40948b(_0x1dd7f3(0x16a),{'className':_0x3f01c6(_0x1dd7f3(0x128),{'univer-cursor-not-allowed':_0x391ad4===c[_0x1dd7f3(0x139)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x391ad4!==c[_0x1dd7f3(0x139)]}),'type':_0x1dd7f3(0x16a),'children':_0x40948b(W,{'className':_0x1dd7f3(0x152)})})}):null;}function Re(_0x4653c1){const _0x41b38b=_0x3a48b0,{status:_0x4ebb78,coordinator:_0x14e0c5}=_0x4653c1;switch(_0x4ebb78){case c[_0x41b38b(0x125)]:return _0x40948b($e,{'coordinator':_0x14e0c5});case c[_0x41b38b(0x12b)]:return _0x40948b(xe,{'coordinator':_0x14e0c5});case c[_0x41b38b(0x1c0)]:return _0x40948b(Pe,{'coordinator':_0x14e0c5});case c[_0x41b38b(0x139)]:return _0x40948b(Te,{});case c[_0x41b38b(0x12d)]:return _0x40948b(Ae,{'coordinator':_0x14e0c5});default:return null;}}function $e(_0x33afa8){const _0x31c492=_0x3a48b0,{coordinator:_0x3e3239}=_0x33afa8;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0x31c492(0x157),{'className':_0x31c492(0x135),'children':'Present\x20this\x20document'}),_0x40948b(_0x5c9227,{'onClick':()=>_0x3e3239[_0x31c492(0x15a)](),'children':_0x31c492(0x1c8)})]});}function xe(_0xa947ff){const _0xdea2a5=_0x3a48b0,{coordinator:_0x557512}=_0xa947ff;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0xdea2a5(0x157),{'className':_0xdea2a5(0x135),'children':_0xdea2a5(0x158)}),_0x40948b(_0x5c9227,{'onClick':()=>_0x557512['stopFollowing'](),'children':_0xdea2a5(0x1b8)})]});}function Pe(_0x2e9be2){const _0x6e8af8=_0x3a48b0,{coordinator:_0x5ca46e}=_0x2e9be2;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0x6e8af8(0x157),{'className':_0x6e8af8(0x135),'children':_0x6e8af8(0x199)}),_0x40948b(_0x5c9227,{'variant':_0x6e8af8(0x120),'onClick':()=>_0x5ca46e[_0x6e8af8(0x187)](),'children':_0x6e8af8(0x145)})]});}function Ae(_0x5331e7){const _0x2d043f=_0x3a48b0,{coordinator:_0xe776f0}=_0x5331e7;return _0x46a17b(_0x4b0054,{'children':[_0x40948b(_0x2d043f(0x157),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2d043f(0x188)}),_0x40948b(_0x5c9227,{'variant':_0x2d043f(0x193),'onClick':()=>_0xe776f0[_0x2d043f(0x15e)](),'children':_0x2d043f(0x181)})]});}function Te(){return _0x40948b(_0x4b0054,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x3a48b0(0x151)],He=(_0x4a69c4,_0x32bce8,_0x5693ed,_0x413137)=>{const _0x488d8d=_0x3a48b0;for(var _0x548eaf=_0x413137>0x1?void 0x0:_0x413137?Fe(_0x32bce8,_0x5693ed):_0x32bce8,_0x2c1cdb=_0x4a69c4[_0x488d8d(0x1ad)]-0x1,_0x26f9dd;_0x2c1cdb>=0x0;_0x2c1cdb--)(_0x26f9dd=_0x4a69c4[_0x2c1cdb])&&(_0x548eaf=_0x26f9dd(_0x548eaf)||_0x548eaf);return _0x548eaf;},A=(_0x2f94a2,_0x259a0f)=>(_0x24eefb,_0x1d8309)=>_0x259a0f(_0x24eefb,_0x1d8309,_0x2f94a2);let m=class extends _0xdc5bc{constructor(_0x13f32b,_0x4b0d54){const _0x3f5d68=_0x3a48b0;super(),this[_0x3f5d68(0x160)]=_0x13f32b,this['_uiPartsService']=_0x4b0d54,this[_0x3f5d68(0x11f)]();}[_0x3a48b0(0x11f)](){const _0x1c31ff=_0x3a48b0;this[_0x1c31ff(0x17f)](this['_uiPartsService']['registerComponent'](_0x50392a[_0x1c31ff(0x1bd)],()=>_0x57a52a(Le,this['_injector'])));}};m=He([A(0x0,_0x3cc5dc(_0x40bad3)),A(0x1,_0x25e85a)],m);const ye=_0x3a48b0(0x19e),T={};var Ue=Object[_0x3a48b0(0x151)],Ve=(_0x311b28,_0x3beadb,_0x1158ac,_0x2ba428)=>{const _0x1105b6=_0x3a48b0;for(var _0x1f739c=_0x2ba428>0x1?void 0x0:_0x2ba428?Ue(_0x3beadb,_0x1158ac):_0x3beadb,_0x13ddf6=_0x311b28[_0x1105b6(0x1ad)]-0x1,_0x18edc4;_0x13ddf6>=0x0;_0x13ddf6--)(_0x18edc4=_0x311b28[_0x13ddf6])&&(_0x1f739c=_0x18edc4(_0x1f739c)||_0x1f739c);return _0x1f739c;},je=(_0x20d649,_0x1602b7)=>(_0x19066f,_0x41a38d)=>_0x1602b7(_0x19066f,_0x41a38d,_0x20d649);let I=class extends _0xdc5bc{constructor(_0x125572){const _0x135ca9=_0x3a48b0;super(),this['_liveShareService']=_0x125572,this[_0x135ca9(0x162)]();}[_0x3a48b0(0x162)](){const _0x277dce=_0x3a48b0;[_0x46bd10['id'],_0x47775a['id'],_0x24e2a6['id']][_0x277dce(0x1b7)](_0x1e44ca=>{const _0x2331ca=_0x277dce;this[_0x2331ca(0x17f)](this[_0x2331ca(0x174)][_0x2331ca(0x14f)](_0x1e44ca));});}};I=Ve([je(0x0,_0x3cc5dc(L))],I);var Me=Object[_0x3a48b0(0x126)],ke=Object[_0x3a48b0(0x151)],Ge=(_0xe55661,_0x3c480b,_0x4dfbd4)=>_0x3c480b in _0xe55661?Me(_0xe55661,_0x3c480b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4dfbd4}):_0xe55661[_0x3c480b]=_0x4dfbd4,We=(_0x55fd20,_0xc2fe45,_0x1a713a,_0x1b4b67)=>{const _0x271d6d=_0x3a48b0;for(var _0x470ab0=_0x1b4b67>0x1?void 0x0:_0x1b4b67?ke(_0xc2fe45,_0x1a713a):_0xc2fe45,_0x90d51c=_0x55fd20[_0x271d6d(0x1ad)]-0x1,_0x236415;_0x90d51c>=0x0;_0x90d51c--)(_0x236415=_0x55fd20[_0x90d51c])&&(_0x470ab0=_0x236415(_0x470ab0)||_0x470ab0);return _0x470ab0;},F=(_0x322ae5,_0x233444)=>(_0x463364,_0x10fa6f)=>_0x233444(_0x463364,_0x10fa6f,_0x322ae5),B=(_0x187df0,_0x3de30b,_0x3f1a60)=>Ge(_0x187df0,typeof _0x3de30b!=_0x3a48b0(0x170)?_0x3de30b+'':_0x3de30b,_0x3f1a60);const Ye=_0x3a48b0(0x13a);let b=class extends _0x2c2008{constructor(_0x5324dd=T,_0x395ee4,_0x35a199){const _0x1b72c3=_0x3a48b0;super(),this[_0x1b72c3(0x153)]=_0x5324dd,this[_0x1b72c3(0x160)]=_0x395ee4,this[_0x1b72c3(0x17e)]=_0x35a199;const {..._0x3e8f36}=_0x46002f({},T,this[_0x1b72c3(0x153)]);this[_0x1b72c3(0x17e)][_0x1b72c3(0x123)](ye,_0x3e8f36);}[_0x3a48b0(0x1ac)](){const _0x5e874e=_0x3a48b0;_0x4ce657(this['_injector'],_0x46574a([[L],[S],[I],[m]],this[_0x5e874e(0x153)][_0x5e874e(0x133)])),_0x4d5b23(this[_0x5e874e(0x160)],[[I]]);}[_0x3a48b0(0x1c4)](){const _0x4b2ec1=_0x3a48b0;_0x4d5b23(this[_0x4b2ec1(0x160)],[[m]]);}};B(b,'type',_0x46f478[_0x3a48b0(0x179)]),B(b,'pluginName',Ye),b=We([_0xeaa0b2(_0x148cb5),F(0x1,_0x3cc5dc(_0x40bad3)),F(0x2,_0x3609ed)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
1
+ const _0xeaafbf=_0xdc09;(function(_0x3c0e30,_0x38996b){const _0x4dd8d7=_0xdc09,_0x118b02=_0x3c0e30();while(!![]){try{const _0x1065c8=-parseInt(_0x4dd8d7(0x1c2))/0x1+-parseInt(_0x4dd8d7(0x1bd))/0x2+-parseInt(_0x4dd8d7(0x1bb))/0x3+-parseInt(_0x4dd8d7(0x193))/0x4+-parseInt(_0x4dd8d7(0x1a6))/0x5+parseInt(_0x4dd8d7(0x1da))/0x6*(-parseInt(_0x4dd8d7(0x1ef))/0x7)+parseInt(_0x4dd8d7(0x1c4))/0x8*(parseInt(_0x4dd8d7(0x1b8))/0x9);if(_0x1065c8===_0x38996b)break;else _0x118b02['push'](_0x118b02['shift']());}catch(_0xfd1525){_0x118b02['push'](_0x118b02['shift']());}}}(_0x8dab,0x873c4));var J=Object[_0xeaafbf(0x17b)],K=(_0xb0d402,_0x2be509,_0x26d1d6)=>_0x2be509 in _0xb0d402?J(_0xb0d402,_0x2be509,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26d1d6}):_0xb0d402[_0x2be509]=_0x26d1d6,u=(_0x34ebdc,_0x23eff7,_0x11f60a)=>K(_0x34ebdc,typeof _0x23eff7!=_0xeaafbf(0x180)?_0x23eff7+'':_0x23eff7,_0x11f60a);import{Disposable as _0x469b92,toDisposable as _0x1332f1,Inject as _0x3ffeae,Injector as _0x3e453a,RxDisposable as _0x53e8b0,UniverInstanceType as _0x59dbcd,DisposableCollection as _0x5d9210,CommandType as _0xef2d8d,IUniverInstanceService as _0xe4bcbd,IConfigService as _0x4c72af,ICommandService as _0x465a1b,DependentOn as _0x168090,Plugin as _0x5b0277,merge as _0x3e2e87,registerDependencies as _0x5b8f83,mergeOverrideWithDependencies as _0xed68fc,touchDependencies as _0x98ac8}from'@univerjs/core';import{useDependency as _0x5ec2d9,useObservable as _0x19a9c6,BuiltInUIPart as _0x4f4074,connectInjector as _0x445f22,IUIPartsService as _0x59077d}from'@univerjs/ui';import{jsx as _0x115494,jsxs as _0xe77572,Fragment as _0x8cbe17}from'react/jsx-runtime';import{Dropdown as _0x4dbc1e,clsx as _0x5af8db,Button as _0x39e985}from'@univerjs/design';import{useRef as _0x54096f,createElement as _0x14f037,forwardRef as _0x35b873,useState as _0x2b6511,useEffect as _0x51812f}from'react';import{CollaborationEvent as _0x262122,parseProtocolChangeset as _0x4ddb9c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x20d5f8,SessionStatus as _0x5d00b9,UniverCollaborationClientPlugin as _0x2f3e48}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x541fcc,SetWorksheetActiveOperation as _0x23cd6c}from'@univerjs/sheets';import{BehaviorSubject as _0xe1c438,Subject as _0x444884}from'rxjs';import{takeUntil as _0x5b42f5,throttleTime as _0x475c1c}from'rxjs/operators';import{SetZoomRatioOperation as _0x19b70e,SetScrollOperation as _0x49dea0}from'@univerjs/sheets-ui';function k({ref:_0xbb029c,..._0x4f0b59}){const _0x13959b=_0xeaafbf,{icon:_0x492154,id:_0x58f041,className:_0x4663e8,extend:_0x568981,..._0x2e4434}=_0x4f0b59,_0x36dc72=('univerjs-icon\x20univerjs-icon-'+_0x58f041+'\x20'+(_0x4663e8||''))['trim'](),_0xb7e30c=_0x54096f('_'+Oe());return G(_0x492154,''+_0x58f041,{'defIds':_0x492154[_0x13959b(0x1dc)],'idSuffix':_0xb7e30c[_0x13959b(0x1aa)]},{'ref':_0xbb029c,'className':_0x36dc72,..._0x2e4434},_0x568981);}function _0xdc09(_0x2f06b1,_0x2018aa){_0x2f06b1=_0x2f06b1-0x14c;const _0x8dab6e=_0x8dab();let _0xdc0948=_0x8dab6e[_0x2f06b1];return _0xdc0948;}function G(_0x4aa988,_0x200841,_0x965d06,_0x352386,_0x4ba864){const _0x101f96=_0xeaafbf;return _0x14f037(_0x4aa988['tag'],{'key':_0x200841,...be(_0x4aa988,_0x965d06,_0x4ba864),..._0x352386},(Ee(_0x4aa988,_0x965d06)[_0x101f96(0x1a1)]||[])[_0x101f96(0x194)]((_0xed229f,_0x372dc8)=>G(_0xed229f,_0x200841+'-'+_0x4aa988[_0x101f96(0x185)]+'-'+_0x372dc8,_0x965d06,void 0x0,_0x4ba864)));}function be(_0x260322,_0x193244,_0x1241b9){const _0x453856=_0xeaafbf,_0x1916a5={..._0x260322['attrs']};_0x1241b9!=null&&_0x1241b9[_0x453856(0x150)]&&_0x1916a5[_0x453856(0x198)]===_0x453856(0x150)&&(_0x1916a5[_0x453856(0x198)]=_0x1241b9[_0x453856(0x150)]),_0x260322['tag']===_0x453856(0x170)&&_0x1916a5['id']&&(_0x1916a5['id']=_0x1916a5['id']+_0x193244['idSuffix']),Object['entries'](_0x1916a5)[_0x453856(0x19b)](([_0x21237a,_0x2b6fb7])=>{const _0x28e993=_0x453856;_0x21237a===_0x28e993(0x170)&&typeof _0x2b6fb7==_0x28e993(0x1ae)&&(_0x1916a5[_0x21237a]=_0x2b6fb7[_0x28e993(0x173)](/url\(#(.*)\)/,'url(#$1'+_0x193244['idSuffix']+')'));});const {defIds:_0x2de0f6}=_0x193244;return!_0x2de0f6||_0x2de0f6[_0x453856(0x1eb)]===0x0||(_0x260322[_0x453856(0x185)]===_0x453856(0x16b)&&_0x1916a5['xlink:href']&&(_0x1916a5[_0x453856(0x1ba)]=_0x1916a5[_0x453856(0x1ba)]+_0x193244[_0x453856(0x181)]),Object[_0x453856(0x161)](_0x1916a5)['forEach'](([_0x381f4b,_0x4053b4])=>{const _0x28fae8=_0x453856;typeof _0x4053b4==_0x28fae8(0x1ae)&&(_0x1916a5[_0x381f4b]=_0x4053b4[_0x28fae8(0x173)](/url\(#(.*)\)/,_0x28fae8(0x165)+_0x193244[_0x28fae8(0x181)]+')'));})),_0x1916a5;}function Ee(_0x29154a,_0x42a8e8){const _0x41952d=_0xeaafbf;var _0x22b5e6;const {defIds:_0x18175e}=_0x42a8e8;return!_0x18175e||_0x18175e['length']===0x0?_0x29154a:_0x29154a['tag']==='defs'&&((_0x22b5e6=_0x29154a[_0x41952d(0x1a1)])!=null&&_0x22b5e6[_0x41952d(0x1eb)])?{..._0x29154a,'children':_0x29154a[_0x41952d(0x1a1)][_0x41952d(0x194)](_0x5ecaa4=>typeof _0x5ecaa4[_0x41952d(0x1f6)]['id']=='string'&&_0x18175e&&_0x18175e[_0x41952d(0x156)](_0x5ecaa4[_0x41952d(0x1f6)]['id'])?{..._0x5ecaa4,'attrs':{..._0x5ecaa4['attrs'],'id':_0x5ecaa4[_0x41952d(0x1f6)]['id']+_0x42a8e8[_0x41952d(0x181)]}}:_0x5ecaa4)}:_0x29154a;}function Oe(){const _0x429dad=_0xeaafbf;return Math[_0x429dad(0x154)]()['toString'](0x24)['substring'](0x2,0x8);}k['displayName']=_0xeaafbf(0x1b0);const we={'tag':_0xeaafbf(0x1d7),'attrs':{'xmlns':_0xeaafbf(0x1b4),'fill':_0xeaafbf(0x1ca),'viewBox':_0xeaafbf(0x1e8),'width':'1em','height':_0xeaafbf(0x1c5)},'children':[{'tag':_0xeaafbf(0x1d6),'attrs':{'fill':'currentColor','d':_0xeaafbf(0x1b9)}},{'tag':_0xeaafbf(0x1d6),'attrs':{'fill':_0xeaafbf(0x18e),'d':_0xeaafbf(0x199),'fillRule':_0xeaafbf(0x1ec),'clipRule':_0xeaafbf(0x1ec)}}]},W=_0x35b873(function(_0x2586dc,_0x410ffd){const _0x34b4cb=_0xeaafbf;return _0x14f037(k,Object['assign']({},_0x2586dc,{'id':_0x34b4cb(0x151),'ref':_0x410ffd,'icon':we}));});W[_0xeaafbf(0x1c3)]=_0xeaafbf(0x17e);class L extends _0x469b92{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0xeaafbf(0x1b3)](_0x3458e5){const _0x47b0b9=_0xeaafbf;return this[_0x47b0b9(0x1cd)][_0x47b0b9(0x19f)](_0x3458e5),_0x1332f1(()=>this[_0x47b0b9(0x1cd)]['delete'](_0x3458e5));}[_0xeaafbf(0x1a9)](_0x5352e4){const _0x83f52b=_0xeaafbf;return this[_0x83f52b(0x1e3)][_0x83f52b(0x19f)](_0x5352e4),_0x1332f1(()=>this[_0x83f52b(0x1e3)][_0x83f52b(0x1b6)](_0x5352e4));}[_0xeaafbf(0x155)](_0x4217a3){const _0x49c1ce=_0xeaafbf;return this[_0x49c1ce(0x1cd)]['has'](_0x4217a3);}[_0xeaafbf(0x17a)](_0x458ab1){const _0x1eefcb=_0xeaafbf;return Array[_0x1eefcb(0x174)](this['_reporters'])[_0x1eefcb(0x194)](_0x494c12=>_0x494c12(_0x458ab1));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0xeac1a2,_0x550436,_0x5bf40,_0x928e9b)=>{const _0x3898e2=_0xeaafbf;for(var _0x336691=_0x928e9b>0x1?void 0x0:_0x928e9b?Ne(_0x550436,_0x5bf40):_0x550436,_0xf083b7=_0xeac1a2[_0x3898e2(0x1eb)]-0x1,_0x27c0d7;_0xf083b7>=0x0;_0xf083b7--)(_0x27c0d7=_0xeac1a2[_0xf083b7])&&(_0x336691=_0x27c0d7(_0x336691)||_0x336691);return _0x336691;},_=(_0x2f0c3c,_0x240e29)=>(_0x548fd3,_0x1cb362)=>_0x240e29(_0x548fd3,_0x1cb362,_0x2f0c3c);let S=class extends _0x53e8b0{constructor(_0x177280,_0x178e3a,_0x4786a1){const _0x193f23=_0xeaafbf;super(),u(this,_0x193f23(0x1d3),new Map()),(this['_univerInstanceService']=_0x177280,this[_0x193f23(0x187)]=_0x178e3a,this[_0x193f23(0x1a4)]=_0x4786a1,this['_init']());}async[_0xeaafbf(0x16e)](_0x1ee66d){const _0x3e853a=_0xeaafbf;return this['_entities']['has'](_0x1ee66d)||await this[_0x3e853a(0x1de)](_0x1ee66d),this['_entities'][_0x3e853a(0x175)](_0x1ee66d);}['getLiveShareCoordinatorSync'](_0x2eaf9e){const _0x2a439b=_0xeaafbf;var _0x566f31;return(_0x566f31=this[_0x2a439b(0x1d3)]['get'](_0x2eaf9e))!=null?_0x566f31:null;}[_0xeaafbf(0x195)](){const _0x138478=_0xeaafbf;this[_0x138478(0x191)]['getTypeOfUnitAdded$'](_0x59dbcd['UNIVER_SHEET'])[_0x138478(0x1e2)](_0x5b42f5(this[_0x138478(0x1dd)]))[_0x138478(0x1a2)](async _0x4e3e4a=>{const _0x1c95df=_0x138478,_0x35a83f=_0x4e3e4a['getUnitId']();this[_0x1c95df(0x1d3)]['has'](_0x35a83f)||this['_startLiveShareCoordinator'](_0x35a83f);}),this['_univerInstanceService'][_0x138478(0x14d)](_0x59dbcd[_0x138478(0x1c9)])['pipe'](_0x5b42f5(this[_0x138478(0x1dd)]))[_0x138478(0x1a2)](_0x34b40d=>{const _0x387cdc=_0x138478,_0x2c7b46=_0x34b40d[_0x387cdc(0x1e7)](),_0x187c8c=this[_0x387cdc(0x1d3)]['get'](_0x2c7b46);_0x187c8c==null||_0x187c8c[_0x387cdc(0x1ab)]();});}async[_0xeaafbf(0x1de)](_0x2fd9b0){const _0x105aa4=_0xeaafbf,_0x5ea380=await this[_0x105aa4(0x1a4)][_0x105aa4(0x1e6)](_0x2fd9b0),_0x5c0e61=this['_injector'][_0x105aa4(0x19a)](N,_0x2fd9b0,_0x5ea380);return _0x5c0e61[_0x105aa4(0x1f2)](),this['_entities'][_0x105aa4(0x168)](_0x2fd9b0,_0x5c0e61),_0x5c0e61;}};S=Y([_(0x0,_0xe4bcbd),_(0x1,_0x3ffeae(_0x3e453a)),_(0x2,_0x3ffeae(_0x20d5f8))],S);var c=(_0x1b0196=>(_0x1b0196['OFFLINE']=_0xeaafbf(0x1b1),_0x1b0196[_0xeaafbf(0x1ea)]='idle',_0x1b0196[_0xeaafbf(0x1a7)]=_0xeaafbf(0x14f),_0x1b0196[_0xeaafbf(0x18c)]=_0xeaafbf(0x1c1),_0x1b0196[_0xeaafbf(0x1ac)]=_0xeaafbf(0x1e0),_0x1b0196))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x53e8b0{constructor(_0x3402d4,_0x10c663,_0x35e49b,_0x4cee76,_0x2ba87e){const _0x2d9361=_0xeaafbf;super(),u(this,_0x2d9361(0x1e4),new _0xe1c438('idle')),u(this,_0x2d9361(0x164),this['_status$'][_0x2d9361(0x190)]()),u(this,_0x2d9361(0x195),!0x1),u(this,_0x2d9361(0x1c7),null),u(this,_0x2d9361(0x179),null),(this['_unitID']=_0x3402d4,this['_collabSession']=_0x10c663,this['_configService']=_0x35e49b,this[_0x2d9361(0x1af)]=_0x4cee76,this[_0x2d9361(0x157)]=_0x2ba87e);}get[_0xeaafbf(0x186)](){const _0xd7cc41=_0xeaafbf;return this[_0xd7cc41(0x1e4)][_0xd7cc41(0x177)]();}[_0xeaafbf(0x1ab)](){const _0x34dd90=_0xeaafbf;var _0x37718f;(_0x37718f=this[_0x34dd90(0x1c7)])==null||_0x37718f['dispose'](),this[_0x34dd90(0x1e4)][_0x34dd90(0x16c)](_0x34dd90(0x1b5)),this['_status$']['complete']();}[_0xeaafbf(0x1a0)](){return this['_status'];}[_0xeaafbf(0x1f2)](){const _0x2fe4c5=_0xeaafbf;this['_init']||(this[_0x2fe4c5(0x195)]=!0x0,this[_0x2fe4c5(0x1d9)][_0x2fe4c5(0x1b2)]['pipe'](_0x5b42f5(this[_0x2fe4c5(0x1dd)]))['subscribe'](_0x1f2199=>{const _0x47b8dd=_0x2fe4c5;switch(_0x1f2199){case _0x5d00b9[_0x47b8dd(0x1d8)]:this[_0x47b8dd(0x15a)]();break;case _0x5d00b9['ONLINE']:this['_handleOnline']();break;}}),this[_0x2fe4c5(0x1d9)][_0x2fe4c5(0x158)][_0x2fe4c5(0x1e2)](_0x5b42f5(this[_0x2fe4c5(0x1dd)]))[_0x2fe4c5(0x1a2)](_0xb5e492=>{const _0x3ee01f=_0x2fe4c5,{eventID:_0x3962c5}=_0xb5e492;switch(_0x3962c5){case _0x262122[_0x3ee01f(0x1bc)]:this[_0x3ee01f(0x183)](_0xb5e492);break;case _0x262122['LIVESHARE_OPERATION']:this[_0x3ee01f(0x160)](_0xb5e492);break;case _0x262122[_0x3ee01f(0x1be)]:this[_0x3ee01f(0x1d5)]();break;case _0x262122[_0x3ee01f(0x169)]:this[_0x3ee01f(0x17d)](_0xb5e492);break;}}));}[_0xeaafbf(0x152)](){const _0x37ce68=_0xeaafbf;this[_0x37ce68(0x1d9)]['send']({'eventID':_0x262122[_0x37ce68(0x159)],'data':{'unitID':this[_0x37ce68(0x1f4)],'userID':this[_0x37ce68(0x1d9)][_0x37ce68(0x1d1)]()}},this[_0x37ce68(0x1f4)]);}[_0xeaafbf(0x1ce)](){const _0x119916=_0xeaafbf;this['_status']===_0x119916(0x1e0)&&(this['_status$'][_0x119916(0x16c)](_0x119916(0x1b5)),this[_0x119916(0x1d9)]['send']({'eventID':_0x262122[_0x119916(0x1be)],'data':{'unitID':this['_unitID']}},this[_0x119916(0x1f4)]));}['startFollowing'](){const _0x390d27=_0xeaafbf;this[_0x390d27(0x186)]===_0x390d27(0x1c1)&&(this[_0x390d27(0x1e4)][_0x390d27(0x16c)](_0x390d27(0x14f)),this['_startFollowing']());}[_0xeaafbf(0x178)](){const _0x5e21b5=_0xeaafbf;this['_status']===_0x5e21b5(0x14f)&&this[_0x5e21b5(0x1a3)]();}[_0xeaafbf(0x183)](_0x241bf0){const _0xb5da06=_0xeaafbf,{presenter:_0x1b5428}=_0x241bf0[_0xb5da06(0x19e)],_0x1b4d9d=this[_0xb5da06(0x1d9)][_0xb5da06(0x1d1)]();this[_0xb5da06(0x179)]=_0x1b5428,_0x1b5428===_0x1b4d9d?(this[_0xb5da06(0x1a3)](),this[_0xb5da06(0x16f)]()):this[_0xb5da06(0x186)]!=='not-following'&&(this['_stopPresenting'](),this[_0xb5da06(0x1c0)]());}[_0xeaafbf(0x176)](){const _0x5d7f54=_0xeaafbf,_0x39fe61={'eventID':_0x262122['LIVESHARE_FETCH_OPERATIONS']};this[_0x5d7f54(0x1d9)][_0x5d7f54(0x1a8)](_0x39fe61,this['_unitID']);}[_0xeaafbf(0x1d5)](){const _0x37124c=_0xeaafbf;this[_0x37124c(0x179)]=null,this[_0x37124c(0x186)]!=='presenting'&&this[_0x37124c(0x1f0)]();}[_0xeaafbf(0x17d)](_0x25ae0f){const _0x1665f8=_0xeaafbf;if(this['_status']===_0x1665f8(0x14f)&&this[_0x1665f8(0x179)]===_0x25ae0f['data']['memberID']){const _0x57189f=_0x4ddb9c(_0x25ae0f['data'])['mutations']['reverse']()[_0x1665f8(0x18b)](_0x59434=>_0x59434['id']===_0x541fcc['id']);if(_0x57189f){const _0x31bf58=_0x57189f[_0x1665f8(0x17f)][_0x1665f8(0x19c)],_0x371dbd=_0x57189f[_0x1665f8(0x17f)][_0x1665f8(0x1d2)]['id'];setTimeout(()=>{const _0x3ca709=_0x1665f8;this[_0x3ca709(0x157)]['executeCommand'](_0x23cd6c['id'],{'unitId':_0x31bf58,'subUnitId':_0x371dbd},{'fromCollab':!0x0});});}}}[_0xeaafbf(0x16f)](){const _0x2f3047=_0xeaafbf;this['_status$'][_0x2f3047(0x16c)]('presenting');const _0xe52312=new Map(),_0x57b066=this['_commandDisposable']=new _0x5d9210();_0x57b066[_0x2f3047(0x19f)](_0x1332f1(()=>{const _0x55701d=_0x2f3047;_0xe52312['forEach'](_0x4cad1d=>_0x4cad1d[_0x55701d(0x1b7)]()),_0xe52312[_0x55701d(0x14e)]();})),_0x57b066['add'](this['_commandService']['onCommandExecuted'](_0x1db345=>{const _0x448ce9=_0x2f3047;var _0x515726;if(_0x1db345[_0x448ce9(0x1df)]!==_0xef2d8d['OPERATION']||!this[_0x448ce9(0x1af)][_0x448ce9(0x155)](_0x1db345['id']))return;const {id:_0x3788fb}=_0x1db345;let _0x40e6d9;_0xe52312[_0x448ce9(0x184)](_0x3788fb)?_0x40e6d9=_0xe52312[_0x448ce9(0x175)](_0x3788fb):(_0x40e6d9=new _0x444884(),_0xe52312[_0x448ce9(0x168)](_0x3788fb,_0x40e6d9),_0x40e6d9[_0x448ce9(0x1e2)](_0x475c1c((_0x515726=this[_0x448ce9(0x1c8)][_0x448ce9(0x1a5)](Ce))!=null?_0x515726:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x448ce9(0x1a2)](_0x12703d=>{const _0x160c8c=_0x448ce9;this['_collabSession'][_0x160c8c(0x1a8)]({'eventID':_0x262122[_0x160c8c(0x18d)],'data':{'unitID':this[_0x160c8c(0x1f4)],'operations':{[_0x12703d['id']]:{'id':_0x12703d['id'],'params':JSON[_0x160c8c(0x162)](_0x12703d[_0x160c8c(0x17f)])}}}},this[_0x160c8c(0x1f4)]);})),_0x40e6d9['next'](_0x1db345);})),this[_0x2f3047(0x1af)][_0x2f3047(0x17a)](this[_0x2f3047(0x1f4)])[_0x2f3047(0x19b)](_0x59d3d3=>this['_collabSession'][_0x2f3047(0x1a8)]({'eventID':_0x262122[_0x2f3047(0x18d)],'data':{'unitID':this[_0x2f3047(0x1f4)],'operations':{[_0x59d3d3['id']]:{'id':_0x59d3d3['id'],'params':JSON['stringify'](_0x59d3d3[_0x2f3047(0x17f)])}}}},this[_0x2f3047(0x1f4)]));}[_0xeaafbf(0x1f5)](){const _0x5ce73b=_0xeaafbf;var _0x1b4eb0;this[_0x5ce73b(0x1e4)][_0x5ce73b(0x16c)](_0x5ce73b(0x1b5)),(_0x1b4eb0=this[_0x5ce73b(0x1c7)])==null||_0x1b4eb0[_0x5ce73b(0x1ab)](),this['_commandDisposable']=null;}[_0xeaafbf(0x1c0)](){const _0x5bdf5a=_0xeaafbf;var _0x52daa3;(_0x52daa3=this[_0x5bdf5a(0x1c7)])==null||_0x52daa3[_0x5bdf5a(0x1ab)](),this[_0x5bdf5a(0x1e4)][_0x5bdf5a(0x16c)]('following');}['_beIdle'](){const _0xfb8a17=_0xeaafbf;var _0x24eedc;this['_status$'][_0xfb8a17(0x16c)](_0xfb8a17(0x1b5)),(_0x24eedc=this[_0xfb8a17(0x1c7)])==null||_0x24eedc[_0xfb8a17(0x1ab)](),this[_0xfb8a17(0x1c7)]=null;}['_stopFollowing'](){const _0x9cf165=_0xeaafbf;var _0x1c2615;this[_0x9cf165(0x1e4)]['next']('not-following'),(_0x1c2615=this[_0x9cf165(0x1c7)])==null||_0x1c2615[_0x9cf165(0x1ab)]();}['_handleOperation'](_0x56bd0b){const _0x5f1201=_0xeaafbf;if(['presenting','not-following',_0x5f1201(0x1b1)][_0x5f1201(0x156)](this[_0x5f1201(0x186)])||!_0x56bd0b['data']['presenter']||_0x56bd0b[_0x5f1201(0x19e)][_0x5f1201(0x15f)]===this[_0x5f1201(0x1d9)]['getMemberID']())return;this['_status']===_0x5f1201(0x1b5)&&this['_startFollowing']();const _0x185482=_0x56bd0b[_0x5f1201(0x19e)][_0x5f1201(0x1d0)];Object[_0x5f1201(0x197)](_0x185482)[_0x5f1201(0x19b)](_0x2176bf=>{const _0x3a16ab=_0x5f1201;this[_0x3a16ab(0x157)][_0x3a16ab(0x1cb)](_0x2176bf['id'],_0x2176bf[_0x3a16ab(0x17f)]?JSON['parse'](_0x2176bf[_0x3a16ab(0x17f)]):null,{'fromCollab':!0x0});});}[_0xeaafbf(0x15a)](){const _0x41b0cf=_0xeaafbf;var _0x4655eb;this[_0x41b0cf(0x1e4)][_0x41b0cf(0x16c)](_0x41b0cf(0x1b1)),(_0x4655eb=this[_0x41b0cf(0x1c7)])==null||_0x4655eb[_0x41b0cf(0x1ab)]();}[_0xeaafbf(0x163)](){const _0x54e03c=_0xeaafbf;this[_0x54e03c(0x1e4)][_0x54e03c(0x16c)]('idle'),this['_fetchOperations']();}};N=Y([_(0x2,_0x4c72af),_(0x3,_0x3ffeae(L)),_(0x4,_0x465a1b)],N);function Le(){const _0x3e3a6b=_0xeaafbf,_0x2fe6ce=_0x5ec2d9(S),_0x14569b=_0x5ec2d9(_0xe4bcbd),_0x4ed2cf=_0x19a9c6(()=>_0x14569b[_0x3e3a6b(0x188)](_0x59dbcd['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x433c77,_0x146c40]=_0x2b6511(null),[_0x218c0a,_0x4c7962]=_0x2b6511(c[_0x3e3a6b(0x1ea)]),_0x16c7cb=_0x54096f(null);return _0x51812f(()=>(_0x4ed2cf&&_0x2fe6ce['getLiveShareCoordinator'](_0x4ed2cf[_0x3e3a6b(0x1e7)]())[_0x3e3a6b(0x18f)](_0x151884=>{const _0x2d8ee4=_0x3e3a6b;_0x146c40(_0x151884),_0x16c7cb['current']=_0x151884['status$'][_0x2d8ee4(0x1a2)](_0x4523a1=>{_0x4c7962(_0x4523a1);});}),()=>{const _0x2ed7c0=_0x3e3a6b;var _0x41decb;(_0x41decb=_0x16c7cb[_0x2ed7c0(0x1aa)])==null||_0x41decb[_0x2ed7c0(0x166)](),_0x16c7cb['current']=null;}),[_0x4ed2cf,_0x2fe6ce]),_0x433c77?_0x115494(_0x4dbc1e,{'align':_0x3e3a6b(0x19d),'disabled':_0x218c0a===c['OFFLINE'],'className':_0x3e3a6b(0x1cc),'overlay':_0x115494(Re,{'status':_0x218c0a,'coordinator':_0x433c77}),'children':_0x115494(_0x3e3a6b(0x192),{'className':_0x5af8db(_0x3e3a6b(0x15e),{'univer-cursor-not-allowed':_0x218c0a===c[_0x3e3a6b(0x1d8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x218c0a!==c['OFFLINE']}),'type':'button','children':_0x115494(W,{'className':_0x3e3a6b(0x189)})})}):null;}function Re(_0x5a29e0){const _0xa34a80=_0xeaafbf,{status:_0x191d5c,coordinator:_0x35fec2}=_0x5a29e0;switch(_0x191d5c){case c[_0xa34a80(0x1ea)]:return _0x115494($e,{'coordinator':_0x35fec2});case c[_0xa34a80(0x1a7)]:return _0x115494(xe,{'coordinator':_0x35fec2});case c[_0xa34a80(0x18c)]:return _0x115494(Pe,{'coordinator':_0x35fec2});case c[_0xa34a80(0x1d8)]:return _0x115494(Te,{});case c[_0xa34a80(0x1ac)]:return _0x115494(Ae,{'coordinator':_0x35fec2});default:return null;}}function $e(_0xed49df){const _0x446b3f=_0xeaafbf,{coordinator:_0x3d93d7}=_0xed49df;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x446b3f(0x14c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x446b3f(0x16a)}),_0x115494(_0x39e985,{'onClick':()=>_0x3d93d7[_0x446b3f(0x152)](),'children':_0x446b3f(0x18a)})]});}function xe(_0x567050){const _0x2b63c2=_0xeaafbf,{coordinator:_0x4eedf0}=_0x567050;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x2b63c2(0x14c),{'className':_0x2b63c2(0x1ee),'children':_0x2b63c2(0x1e1)}),_0x115494(_0x39e985,{'onClick':()=>_0x4eedf0[_0x2b63c2(0x178)](),'children':_0x2b63c2(0x1f1)})]});}function Pe(_0x24ca1c){const _0x42fc4e=_0xeaafbf,{coordinator:_0x140011}=_0x24ca1c;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x42fc4e(0x14c),{'className':_0x42fc4e(0x1ee),'children':_0x42fc4e(0x1db)}),_0x115494(_0x39e985,{'variant':_0x42fc4e(0x153),'onClick':()=>_0x140011[_0x42fc4e(0x1ad)](),'children':_0x42fc4e(0x1bf)})]});}function Ae(_0x57ba39){const _0x1d5485=_0xeaafbf,{coordinator:_0x2a6bc1}=_0x57ba39;return _0xe77572(_0x8cbe17,{'children':[_0x115494(_0x1d5485(0x14c),{'className':_0x1d5485(0x1ee),'children':_0x1d5485(0x171)}),_0x115494(_0x39e985,{'variant':'default','onClick':()=>_0x2a6bc1['stopPresenting'](),'children':_0x1d5485(0x15c)})]});}function Te(){const _0xed729e=_0xeaafbf;return _0x115494(_0x8cbe17,{'children':_0xed729e(0x1cf)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x1070ca,_0x2ea655,_0x29f5f4,_0x2d21d1)=>{for(var _0x338152=_0x2d21d1>0x1?void 0x0:_0x2d21d1?Fe(_0x2ea655,_0x29f5f4):_0x2ea655,_0x10d774=_0x1070ca['length']-0x1,_0x4413f7;_0x10d774>=0x0;_0x10d774--)(_0x4413f7=_0x1070ca[_0x10d774])&&(_0x338152=_0x4413f7(_0x338152)||_0x338152);return _0x338152;},A=(_0x4b46c4,_0x2a4cd2)=>(_0x343d3d,_0x3a7621)=>_0x2a4cd2(_0x343d3d,_0x3a7621,_0x4b46c4);let m=class extends _0x469b92{constructor(_0x443b42,_0xceac33){const _0x14068c=_0xeaafbf;super(),this[_0x14068c(0x187)]=_0x443b42,this[_0x14068c(0x16d)]=_0xceac33,this[_0x14068c(0x1e9)]();}[_0xeaafbf(0x1e9)](){const _0x23f52b=_0xeaafbf;this[_0x23f52b(0x15d)](this[_0x23f52b(0x16d)][_0x23f52b(0x1e5)](_0x4f4074[_0x23f52b(0x15b)],()=>_0x445f22(Le,this[_0x23f52b(0x187)])));}};m=He([A(0x0,_0x3ffeae(_0x3e453a)),A(0x1,_0x59077d)],m);const ye='live-share.config',T={};var Ue=Object[_0xeaafbf(0x1d4)],Ve=(_0x5e3edc,_0x2be997,_0x290c48,_0x142563)=>{const _0x106a35=_0xeaafbf;for(var _0xb2325c=_0x142563>0x1?void 0x0:_0x142563?Ue(_0x2be997,_0x290c48):_0x2be997,_0x402af1=_0x5e3edc[_0x106a35(0x1eb)]-0x1,_0x20c30a;_0x402af1>=0x0;_0x402af1--)(_0x20c30a=_0x5e3edc[_0x402af1])&&(_0xb2325c=_0x20c30a(_0xb2325c)||_0xb2325c);return _0xb2325c;},je=(_0x354443,_0x347a1)=>(_0x3e23cb,_0x363b5b)=>_0x347a1(_0x3e23cb,_0x363b5b,_0x354443);let I=class extends _0x469b92{constructor(_0x3374f9){const _0x2d8c35=_0xeaafbf;super(),this[_0x2d8c35(0x1af)]=_0x3374f9,this['_init']();}['_init'](){[_0x19b70e['id'],_0x49dea0['id'],_0x23cd6c['id']]['forEach'](_0x4892fc=>{const _0x14136e=_0xdc09;this[_0x14136e(0x15d)](this[_0x14136e(0x1af)][_0x14136e(0x1b3)](_0x4892fc));});}};I=Ve([je(0x0,_0x3ffeae(L))],I);var Me=Object[_0xeaafbf(0x17b)],ke=Object[_0xeaafbf(0x1d4)],Ge=(_0x2d9aab,_0x2ae8c1,_0x278e7a)=>_0x2ae8c1 in _0x2d9aab?Me(_0x2d9aab,_0x2ae8c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x278e7a}):_0x2d9aab[_0x2ae8c1]=_0x278e7a,We=(_0x2d8af8,_0x59446d,_0x1620ca,_0x40fd14)=>{for(var _0x3a2f05=_0x40fd14>0x1?void 0x0:_0x40fd14?ke(_0x59446d,_0x1620ca):_0x59446d,_0x7c7518=_0x2d8af8['length']-0x1,_0x256f51;_0x7c7518>=0x0;_0x7c7518--)(_0x256f51=_0x2d8af8[_0x7c7518])&&(_0x3a2f05=_0x256f51(_0x3a2f05)||_0x3a2f05);return _0x3a2f05;},F=(_0x28e6b1,_0x24f0b7)=>(_0x852165,_0x264c14)=>_0x24f0b7(_0x852165,_0x264c14,_0x28e6b1),B=(_0x384a9c,_0x1e8801,_0xba87a7)=>Ge(_0x384a9c,typeof _0x1e8801!=_0xeaafbf(0x180)?_0x1e8801+'':_0x1e8801,_0xba87a7);const Ye=_0xeaafbf(0x1ed);let b=class extends _0x5b0277{constructor(_0x4e333b=T,_0x39bb27,_0x4ed240){const _0x148cdf=_0xeaafbf;super(),this[_0x148cdf(0x196)]=_0x4e333b,this[_0x148cdf(0x187)]=_0x39bb27,this[_0x148cdf(0x1c8)]=_0x4ed240;const {..._0x177318}=_0x3e2e87({},T,this[_0x148cdf(0x196)]);this[_0x148cdf(0x1c8)][_0x148cdf(0x182)](ye,_0x177318);}[_0xeaafbf(0x17c)](){const _0x43f473=_0xeaafbf;_0x5b8f83(this[_0x43f473(0x187)],_0xed68fc([[L],[S],[I],[m]],this[_0x43f473(0x196)][_0x43f473(0x1f3)])),_0x98ac8(this[_0x43f473(0x187)],[[I]]);}[_0xeaafbf(0x1c6)](){_0x98ac8(this['_injector'],[[m]]);}};B(b,_0xeaafbf(0x1df),_0x59dbcd[_0xeaafbf(0x167)]),B(b,_0xeaafbf(0x172),Ye),b=We([_0x168090(_0x2f3e48),F(0x1,_0x3ffeae(_0x3e453a)),F(0x2,_0x4c72af)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};function _0x8dab(){const _0x21dcb4=['You\x27are\x20offline.','operations','getMemberID','sheet','_entities','getOwnPropertyDescriptor','_handleTerminate','path','svg','OFFLINE','_collabSession','66fjrokb','You\x27re\x20not\x20following\x20the\x20presenter','defIds','dispose$','_startLiveShareCoordinator','type','presenting','You\x27re\x20following\x20the\x20presenter','pipe','_reporters','_status$','registerComponent','requireSession','getUnitId','0\x200\x2017\x2017','_mountLiveShare','IDLE','length','evenodd','UNIVER_LIVE_SHARE_PLUGIN','univer-mb-3\x20univer-w-full\x20univer-text-sm','464394hcOILR','_beIdle','Stop\x20following','init','override','_unitID','_stopPresenting','attrs','div','getTypeOfUnitDisposed$','clear','following','colorChannel1','live-share-icon','tryStartPresenting','text','random','shouldShareOperation','includes','_commandService','event$','LIVESHARE_REQUEST_HOST','_handleOffline','HEADER_MENU','Stop\x20presenting','disposeWithMe','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenter','_handleOperation','entries','stringify','_handleOnline','status$','url(#$1','unsubscribe','UNIVER_UNKNOWN','set','NEW_CHANGESETS','Present\x20this\x20document','use','next','_uiPartsService','getLiveShareCoordinator','_startPresenting','mask','You\x27re\x20presenting\x20the\x20document','pluginName','replace','from','get','_fetchOperations','getValue','stopFollowing','_presenter','getInitialStates','defineProperty','onStarting','_handleNewChangeSets','LiveShareIcon','params','symbol','idSuffix','setConfig','_handleNewHost','has','tag','_status','_injector','getCurrentTypeOfUnit$','univer-size-4','Start','find','NOT_FOLLOWING','LIVESHARE_OPERATION','currentColor','then','asObservable','_univerInstanceService','button','617564galGbR','map','_init','_config','values','fill','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','createInstance','forEach','unitId','end','data','add','getStatus','children','subscribe','_stopFollowing','_collabSessionService','getConfig','1966715IjmesY','FOLLOWING','send','registerInitialStateReporter','current','dispose','PRESENTING','startFollowing','string','_liveShareService','UniverIcon','offline','sessionStatus$','registerSharedOperation','http://www.w3.org/2000/svg','idle','delete','complete','9GCYmqs','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','xlink:href','2282085tUNUdw','LIVESHARE_NEW_HOST','1947232rPoilJ','LIVESHARE_TERMINATE','Start\x20following','_startFollowing','not-following','274964UGWBGz','displayName','30725560CxnjQF','1em','onRendered','_commandDisposable','_configService','UNIVER_SHEET','none','executeCommand','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','_sharedOperations','stopPresenting'];_0x8dab=function(){return _0x21dcb4;};return _0x8dab();}
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x19ef(_0x45575e,_0x74ce50){_0x45575e=_0x45575e-0x76;const _0x448d52=_0x448d();let _0x19efaa=_0x448d52[_0x45575e];return _0x19efaa;}(function(_0x2bb34a,_0x7e96e2){const _0x49b450=_0x19ef,_0xd32969=_0x2bb34a();while(!![]){try{const _0x4f6175=-parseInt(_0x49b450(0x8a))/0x1+parseInt(_0x49b450(0x9a))/0x2*(-parseInt(_0x49b450(0x77))/0x3)+parseInt(_0x49b450(0x81))/0x4+-parseInt(_0x49b450(0x7e))/0x5*(parseInt(_0x49b450(0x7c))/0x6)+parseInt(_0x49b450(0x8c))/0x7+-parseInt(_0x49b450(0x87))/0x8+-parseInt(_0x49b450(0x79))/0x9*(-parseInt(_0x49b450(0x83))/0xa);if(_0x4f6175===_0x7e96e2)break;else _0xd32969['push'](_0xd32969['shift']());}catch(_0x259f4d){_0xd32969['push'](_0xd32969['shift']());}}}(_0x448d,0xf0a76),function(_0xcf1c27,_0x1393ca){const _0x17939c=_0x19ef;typeof exports==_0x17939c(0x76)&&typeof module<'u'?_0x1393ca(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x17939c(0x89)&&define[_0x17939c(0x91)]?define([_0x17939c(0x9c),_0x17939c(0x94),_0x17939c(0x96)],_0x1393ca):(_0xcf1c27=typeof globalThis<'u'?globalThis:_0xcf1c27||self,_0x1393ca(_0xcf1c27[_0x17939c(0x8e)],_0xcf1c27[_0x17939c(0x9b)],_0xcf1c27['UniverCoreFacade']));}(this,function(_0x1efa23,_0x2fcff2,_0x49c941){'use strict';const _0xbfaf25=_0x19ef;var _0x2dec41=Object[_0xbfaf25(0x8d)],_0x2f3583=(_0x4b6792,_0x295ca9,_0x1b2ffc)=>_0x295ca9 in _0x4b6792?_0x2dec41(_0x4b6792,_0x295ca9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b2ffc}):_0x4b6792[_0x295ca9]=_0x1b2ffc,_0x5f41b3=(_0x34db40,_0x56cfd2,_0x228ac9)=>_0x2f3583(_0x34db40,typeof _0x56cfd2!='symbol'?_0x56cfd2+'':_0x56cfd2,_0x228ac9);class _0x5b13cf extends _0x49c941[_0xbfaf25(0x99)]{constructor(){const _0x20c63b=_0xbfaf25;super(...arguments),_0x5f41b3(this,_0x20c63b(0x98));}['_initialize'](_0x545b3f){this['_liveShareController']=_0x545b3f['get'](_0x1efa23['LiveShareController']);}[_0xbfaf25(0x7f)](){const _0x37b33f=_0xbfaf25;var _0x5cf0f2;const _0x5d599d=this['_injector'][_0x37b33f(0x9e)](_0x2fcff2['IUniverInstanceService'])['getCurrentUnitOfType'](_0x2fcff2[_0x37b33f(0x88)][_0x37b33f(0x7d)]);if(!_0x5d599d)throw new Error('No\x20active\x20workbook\x20found.');const _0x2043a1=_0x5d599d[_0x37b33f(0x7b)](),_0x3ae7ad=this[_0x37b33f(0x98)]['getLiveShareCoordinatorSync'](_0x2043a1);return(_0x5cf0f2=_0x3ae7ad==null?void 0x0:_0x3ae7ad[_0x37b33f(0x90)]())!=null?_0x5cf0f2:_0x1efa23['LiveShareStatus'][_0x37b33f(0x93)];}[_0xbfaf25(0x7a)](){const _0x5e385c=_0xbfaf25,_0x3903b4=this[_0x5e385c(0x92)][_0x5e385c(0x9e)](_0x2fcff2['IUniverInstanceService'])[_0x5e385c(0x80)](_0x2fcff2[_0x5e385c(0x88)][_0x5e385c(0x7d)]);if(!_0x3903b4)throw new Error('No\x20active\x20workbook\x20found.');const _0x2733d3=_0x3903b4[_0x5e385c(0x7b)](),_0x47f90a=this['_liveShareController'][_0x5e385c(0x8f)](_0x2733d3);if(!_0x47f90a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x47f90a[_0x5e385c(0x7a)]();}['stopFollowing'](){const _0x4514cc=_0xbfaf25,_0x55ca37=this[_0x4514cc(0x92)]['get'](_0x2fcff2[_0x4514cc(0x86)])['getCurrentUnitOfType'](_0x2fcff2[_0x4514cc(0x88)]['UNIVER_SHEET']);if(!_0x55ca37)throw new Error(_0x4514cc(0x78));const _0x5d9b7f=_0x55ca37[_0x4514cc(0x7b)](),_0x1c4a8a=this['_liveShareController'][_0x4514cc(0x8f)](_0x5d9b7f);if(!_0x1c4a8a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1c4a8a[_0x4514cc(0x9f)]();}[_0xbfaf25(0xa0)](){const _0x16ff12=_0xbfaf25,_0x44cec7=this[_0x16ff12(0x92)][_0x16ff12(0x9e)](_0x2fcff2[_0x16ff12(0x86)])[_0x16ff12(0x80)](_0x2fcff2[_0x16ff12(0x88)][_0x16ff12(0x7d)]);if(!_0x44cec7)throw new Error(_0x16ff12(0x78));const _0xded08f=_0x44cec7[_0x16ff12(0x7b)](),_0x2c775f=this['_liveShareController']['getLiveShareCoordinatorSync'](_0xded08f);if(!_0x2c775f)throw new Error(_0x16ff12(0x85));_0x2c775f[_0x16ff12(0x95)]();}[_0xbfaf25(0x9d)](){const _0x20c715=_0xbfaf25,_0x4e737d=this['_injector'][_0x20c715(0x9e)](_0x2fcff2[_0x20c715(0x86)])['getCurrentUnitOfType'](_0x2fcff2[_0x20c715(0x88)][_0x20c715(0x7d)]);if(!_0x4e737d)throw new Error(_0x20c715(0x78));const _0x59dc9b=_0x4e737d[_0x20c715(0x7b)](),_0x9b47f3=this['_liveShareController'][_0x20c715(0x8f)](_0x59dc9b);if(!_0x9b47f3)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x9b47f3[_0x20c715(0x9d)]();}}_0x49c941[_0xbfaf25(0x99)][_0xbfaf25(0x84)](_0x5b13cf);class _0x59108f extends _0x49c941[_0xbfaf25(0x8b)]{get[_0xbfaf25(0x97)](){const _0x373065=_0xbfaf25;return _0x1efa23[_0x373065(0x82)];}}_0x49c941[_0xbfaf25(0x8b)][_0xbfaf25(0x84)](_0x59108f);}));function _0x448d(){const _0x4b20a6=['UniverProLiveShare','getLiveShareCoordinatorSync','getStatus','amd','_injector','IDLE','@univerjs/core','tryStartPresenting','@univerjs/core/facade','LiveShareStatusEnum','_liveShareController','FUniver','29416YAXMLf','UniverCore','@univerjs-pro/live-share','stopPresenting','get','stopFollowing','startPresenting','object','57eClxzQ','No\x20active\x20workbook\x20found.','9wBoGlw','startFollowing','getUnitId','2037954jNjLDU','UNIVER_SHEET','5GYkmsk','getLiveShareStatus','getCurrentUnitOfType','6654188wmsiQx','LiveShareStatus','11376130mtFabG','extend','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','IUniverInstanceService','14095896GOtckB','UniverInstanceType','function','157821HIVyUe','FEnum','5064339tMmeJw','defineProperty'];_0x448d=function(){return _0x4b20a6;};return _0x448d();}
1
+ function _0x5cc6(){const _0x1a4e56=['157451EsjtdZ','extend','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs/core','UNIVER_SHEET','_initialize','startFollowing','_injector','_liveShareController','1185bXJmUV','get','defineProperty','getLiveShareCoordinatorSync','LiveShareStatus','54590uwRnKz','FEnum','UniverProLiveShare','9mYzFpP','3245496ZCWIVQ','FUniver','137zMiwpn','72yyxexA','512216vaKSRF','stopPresenting','startPresenting','8376BDwjOY','symbol','319GmZfIT','getUnitId','No\x20active\x20workbook\x20found.','object','UniverCoreFacade','2195154gTFddF','UniverCore','IUniverInstanceService','getCurrentUnitOfType','getLiveShareStatus','@univerjs/core/facade','tryStartPresenting','amd','5356nJzmgf','stopFollowing','UniverInstanceType','LiveShareController'];_0x5cc6=function(){return _0x1a4e56;};return _0x5cc6();}function _0x47f4(_0x5682ba,_0x2cf5d0){_0x5682ba=_0x5682ba-0x17e;const _0x5cc6a4=_0x5cc6();let _0x47f498=_0x5cc6a4[_0x5682ba];return _0x47f498;}(function(_0xb4328c,_0x3c90ce){const _0x4cfdd2=_0x47f4,_0x43bf74=_0xb4328c();while(!![]){try{const _0x53548e=parseInt(_0x4cfdd2(0x1a3))/0x1*(-parseInt(_0x4cfdd2(0x18b))/0x2)+parseInt(_0x4cfdd2(0x1a0))/0x3*(parseInt(_0x4cfdd2(0x1a5))/0x4)+-parseInt(_0x4cfdd2(0x198))/0x5*(-parseInt(_0x4cfdd2(0x1a8))/0x6)+parseInt(_0x4cfdd2(0x18f))/0x7*(parseInt(_0x4cfdd2(0x1a4))/0x8)+-parseInt(_0x4cfdd2(0x183))/0x9+-parseInt(_0x4cfdd2(0x19d))/0xa*(-parseInt(_0x4cfdd2(0x17e))/0xb)+-parseInt(_0x4cfdd2(0x1a1))/0xc;if(_0x53548e===_0x3c90ce)break;else _0x43bf74['push'](_0x43bf74['shift']());}catch(_0x57ea7d){_0x43bf74['push'](_0x43bf74['shift']());}}}(_0x5cc6,0x2f7d0),function(_0x3e8f32,_0x4abbfe){const _0x4ed894=_0x47f4;typeof exports==_0x4ed894(0x181)&&typeof module<'u'?_0x4abbfe(require('@univerjs-pro/live-share'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x4ed894(0x18a)]?define(['@univerjs-pro/live-share',_0x4ed894(0x192),_0x4ed894(0x188)],_0x4abbfe):(_0x3e8f32=typeof globalThis<'u'?globalThis:_0x3e8f32||self,_0x4abbfe(_0x3e8f32[_0x4ed894(0x19f)],_0x3e8f32[_0x4ed894(0x184)],_0x3e8f32[_0x4ed894(0x182)]));}(this,function(_0x4477ed,_0xb974cb,_0x3677e8){'use strict';const _0x522f26=_0x47f4;var _0x498212=Object[_0x522f26(0x19a)],_0x3f27bd=(_0x3c0a50,_0x2eebe5,_0x530460)=>_0x2eebe5 in _0x3c0a50?_0x498212(_0x3c0a50,_0x2eebe5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x530460}):_0x3c0a50[_0x2eebe5]=_0x530460,_0x28bf27=(_0x32ad56,_0x716fcb,_0x32e36f)=>_0x3f27bd(_0x32ad56,typeof _0x716fcb!=_0x522f26(0x1a9)?_0x716fcb+'':_0x716fcb,_0x32e36f);class _0x5c2251 extends _0x3677e8[_0x522f26(0x1a2)]{constructor(){const _0xa16958=_0x522f26;super(...arguments),_0x28bf27(this,_0xa16958(0x197));}[_0x522f26(0x194)](_0x145332){const _0x275fba=_0x522f26;this['_liveShareController']=_0x145332[_0x275fba(0x199)](_0x4477ed[_0x275fba(0x18e)]);}[_0x522f26(0x187)](){const _0x4f6fed=_0x522f26;var _0x19221d;const _0x168733=this['_injector'][_0x4f6fed(0x199)](_0xb974cb[_0x4f6fed(0x185)])['getCurrentUnitOfType'](_0xb974cb[_0x4f6fed(0x18d)][_0x4f6fed(0x193)]);if(!_0x168733)throw new Error(_0x4f6fed(0x180));const _0x1d9dac=_0x168733[_0x4f6fed(0x17f)](),_0x36b89f=this['_liveShareController'][_0x4f6fed(0x19b)](_0x1d9dac);return(_0x19221d=_0x36b89f==null?void 0x0:_0x36b89f['getStatus']())!=null?_0x19221d:_0x4477ed['LiveShareStatus']['IDLE'];}[_0x522f26(0x195)](){const _0x5eff36=_0x522f26,_0x53f274=this[_0x5eff36(0x196)][_0x5eff36(0x199)](_0xb974cb[_0x5eff36(0x185)])[_0x5eff36(0x186)](_0xb974cb[_0x5eff36(0x18d)][_0x5eff36(0x193)]);if(!_0x53f274)throw new Error('No\x20active\x20workbook\x20found.');const _0x41458e=_0x53f274[_0x5eff36(0x17f)](),_0x574356=this['_liveShareController'][_0x5eff36(0x19b)](_0x41458e);if(!_0x574356)throw new Error(_0x5eff36(0x191));_0x574356['startFollowing']();}[_0x522f26(0x18c)](){const _0x1b1bf7=_0x522f26,_0x192c25=this[_0x1b1bf7(0x196)][_0x1b1bf7(0x199)](_0xb974cb[_0x1b1bf7(0x185)])['getCurrentUnitOfType'](_0xb974cb['UniverInstanceType'][_0x1b1bf7(0x193)]);if(!_0x192c25)throw new Error(_0x1b1bf7(0x180));const _0x5e0314=_0x192c25[_0x1b1bf7(0x17f)](),_0x56d383=this[_0x1b1bf7(0x197)][_0x1b1bf7(0x19b)](_0x5e0314);if(!_0x56d383)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x56d383[_0x1b1bf7(0x18c)]();}[_0x522f26(0x1a7)](){const _0x1c49d3=_0x522f26,_0x2f35ea=this['_injector'][_0x1c49d3(0x199)](_0xb974cb[_0x1c49d3(0x185)])['getCurrentUnitOfType'](_0xb974cb[_0x1c49d3(0x18d)]['UNIVER_SHEET']);if(!_0x2f35ea)throw new Error(_0x1c49d3(0x180));const _0x532e2c=_0x2f35ea[_0x1c49d3(0x17f)](),_0x329754=this[_0x1c49d3(0x197)][_0x1c49d3(0x19b)](_0x532e2c);if(!_0x329754)throw new Error(_0x1c49d3(0x191));_0x329754[_0x1c49d3(0x189)]();}['stopPresenting'](){const _0x2a2f8d=_0x522f26,_0x30e2eb=this['_injector']['get'](_0xb974cb[_0x2a2f8d(0x185)])[_0x2a2f8d(0x186)](_0xb974cb[_0x2a2f8d(0x18d)][_0x2a2f8d(0x193)]);if(!_0x30e2eb)throw new Error(_0x2a2f8d(0x180));const _0x490d21=_0x30e2eb[_0x2a2f8d(0x17f)](),_0xff7bde=this[_0x2a2f8d(0x197)][_0x2a2f8d(0x19b)](_0x490d21);if(!_0xff7bde)throw new Error(_0x2a2f8d(0x191));_0xff7bde[_0x2a2f8d(0x1a6)]();}}_0x3677e8[_0x522f26(0x1a2)][_0x522f26(0x190)](_0x5c2251);class _0x355e77 extends _0x3677e8[_0x522f26(0x19e)]{get['LiveShareStatusEnum'](){const _0x70bcf9=_0x522f26;return _0x4477ed[_0x70bcf9(0x19c)];}}_0x3677e8[_0x522f26(0x19e)]['extend'](_0x355e77);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x263ef1,_0x3aa58f){const _0x873629=_0x580b,_0x3e137a=_0x263ef1();while(!![]){try{const _0x3e5c13=-parseInt(_0x873629(0x221))/0x1*(parseInt(_0x873629(0x22f))/0x2)+parseInt(_0x873629(0x15c))/0x3*(-parseInt(_0x873629(0x178))/0x4)+-parseInt(_0x873629(0x1ad))/0x5+parseInt(_0x873629(0x21e))/0x6*(-parseInt(_0x873629(0x1f1))/0x7)+-parseInt(_0x873629(0x1f3))/0x8+parseInt(_0x873629(0x1b2))/0x9*(parseInt(_0x873629(0x16d))/0xa)+parseInt(_0x873629(0x1b7))/0xb;if(_0x3e5c13===_0x3aa58f)break;else _0x3e137a['push'](_0x3e137a['shift']());}catch(_0x2d1cad){_0x3e137a['push'](_0x3e137a['shift']());}}}(_0x4bdb,0x49184),function(_0x41b9a2,_0xe1d745){const _0x3b089e=_0x580b;typeof exports==_0x3b089e(0x167)&&typeof module<'u'?_0xe1d745(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==_0x3b089e(0x1ee)&&define[_0x3b089e(0x212)]?define([_0x3b089e(0x16a),'@univerjs/core','@univerjs/ui',_0x3b089e(0x17a),_0x3b089e(0x22d),_0x3b089e(0x1bf),_0x3b089e(0x1bc),_0x3b089e(0x207),'@univerjs/sheets',_0x3b089e(0x1c9),_0x3b089e(0x1ef),'@univerjs/sheets-ui'],_0xe1d745):(_0x41b9a2=typeof globalThis<'u'?globalThis:_0x41b9a2||self,_0xe1d745(_0x41b9a2['UniverProLiveShare']={},_0x41b9a2[_0x3b089e(0x1b5)],_0x41b9a2[_0x3b089e(0x198)],_0x41b9a2['React'],_0x41b9a2['UniverDesign'],_0x41b9a2[_0x3b089e(0x219)],_0x41b9a2[_0x3b089e(0x1bd)],_0x41b9a2['UniverProCollaborationClient'],_0x41b9a2[_0x3b089e(0x187)],_0x41b9a2['rxjs'],_0x41b9a2[_0x3b089e(0x1c9)]['operators'],_0x41b9a2[_0x3b089e(0x1a7)]));}(this,function(_0x4f6949,_0x3661a0,_0xc625f8,_0x1cf0c0,_0x3038ae,_0x1909e5,_0x3f1b37,_0x4d45c4,_0x45c3f5,_0x377157,_0x28786d,_0x41b85b){'use strict';const _0x383982=_0x580b;var _0x13e9d1=Object[_0x383982(0x192)],_0x74a945=(_0x2d6815,_0x3f2014,_0x11bd16)=>_0x3f2014 in _0x2d6815?_0x13e9d1(_0x2d6815,_0x3f2014,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x11bd16}):_0x2d6815[_0x3f2014]=_0x11bd16,_0x12380a=(_0x2f6656,_0x353ada,_0x5af544)=>_0x74a945(_0x2f6656,typeof _0x353ada!=_0x383982(0x181)?_0x353ada+'':_0x353ada,_0x5af544);function _0x77efee({ref:_0x25839a,..._0x5758b0}){const _0x51072a=_0x383982,{icon:_0x5affc0,id:_0x5af71e,className:_0x54384f,extend:_0x620391,..._0x432e2e}=_0x5758b0,_0x53b4a1=('univerjs-icon\x20univerjs-icon-'+_0x5af71e+'\x20'+(_0x54384f||''))[_0x51072a(0x1f7)](),_0x2a864d=_0x1909e5[_0x51072a(0x203)]('_'+_0x31f567());return _0x58a216(_0x5affc0,''+_0x5af71e,{'defIds':_0x5affc0[_0x51072a(0x1d7)],'idSuffix':_0x2a864d[_0x51072a(0x1ab)]},{'ref':_0x25839a,'className':_0x53b4a1,..._0x432e2e},_0x620391);}function _0x58a216(_0x41dcab,_0x567989,_0x7bcfd7,_0x42213d,_0x3efa24){const _0xcd50f3=_0x383982;return _0x1909e5['createElement'](_0x41dcab[_0xcd50f3(0x21a)],{'key':_0x567989,..._0x392aac(_0x41dcab,_0x7bcfd7,_0x3efa24),..._0x42213d},(_0x4f3d0d(_0x41dcab,_0x7bcfd7)[_0xcd50f3(0x23c)]||[])['map']((_0x21d01d,_0x50f2f1)=>_0x58a216(_0x21d01d,_0x567989+'-'+_0x41dcab[_0xcd50f3(0x21a)]+'-'+_0x50f2f1,_0x7bcfd7,void 0x0,_0x3efa24)));}function _0x392aac(_0x1394c3,_0x272705,_0x4404c8){const _0x25622e=_0x383982,_0x4785ce={..._0x1394c3[_0x25622e(0x197)]};_0x4404c8!=null&&_0x4404c8['colorChannel1']&&_0x4785ce[_0x25622e(0x22a)]===_0x25622e(0x1f5)&&(_0x4785ce[_0x25622e(0x22a)]=_0x4404c8[_0x25622e(0x1f5)]),_0x1394c3[_0x25622e(0x21a)]==='mask'&&_0x4785ce['id']&&(_0x4785ce['id']=_0x4785ce['id']+_0x272705[_0x25622e(0x19a)]),Object[_0x25622e(0x1d8)](_0x4785ce)[_0x25622e(0x1d4)](([_0xf0b24c,_0x3a6593])=>{const _0x298640=_0x25622e;_0xf0b24c===_0x298640(0x15d)&&typeof _0x3a6593==_0x298640(0x1b1)&&(_0x4785ce[_0xf0b24c]=_0x3a6593['replace'](/url\(#(.*)\)/,'url(#$1'+_0x272705[_0x298640(0x19a)]+')'));});const {defIds:_0x276c55}=_0x272705;return!_0x276c55||_0x276c55[_0x25622e(0x18c)]===0x0||(_0x1394c3[_0x25622e(0x21a)]==='use'&&_0x4785ce[_0x25622e(0x23a)]&&(_0x4785ce[_0x25622e(0x23a)]=_0x4785ce[_0x25622e(0x23a)]+_0x272705[_0x25622e(0x19a)]),Object['entries'](_0x4785ce)[_0x25622e(0x1d4)](([_0x219cab,_0x2889d6])=>{const _0x25c687=_0x25622e;typeof _0x2889d6==_0x25c687(0x1b1)&&(_0x4785ce[_0x219cab]=_0x2889d6[_0x25c687(0x1a3)](/url\(#(.*)\)/,_0x25c687(0x1a9)+_0x272705[_0x25c687(0x19a)]+')'));})),_0x4785ce;}function _0x4f3d0d(_0x306f10,_0x13299a){const _0x33c7f1=_0x383982;var _0x30d480;const {defIds:_0x2674aa}=_0x13299a;return!_0x2674aa||_0x2674aa['length']===0x0?_0x306f10:_0x306f10[_0x33c7f1(0x21a)]===_0x33c7f1(0x195)&&((_0x30d480=_0x306f10[_0x33c7f1(0x23c)])!=null&&_0x30d480[_0x33c7f1(0x18c)])?{..._0x306f10,'children':_0x306f10[_0x33c7f1(0x23c)][_0x33c7f1(0x227)](_0x17ab43=>typeof _0x17ab43[_0x33c7f1(0x197)]['id']==_0x33c7f1(0x1b1)&&_0x2674aa&&_0x2674aa[_0x33c7f1(0x170)](_0x17ab43[_0x33c7f1(0x197)]['id'])?{..._0x17ab43,'attrs':{..._0x17ab43[_0x33c7f1(0x197)],'id':_0x17ab43['attrs']['id']+_0x13299a[_0x33c7f1(0x19a)]}}:_0x17ab43)}:_0x306f10;}function _0x31f567(){const _0x14351f=_0x383982;return Math[_0x14351f(0x16f)]()[_0x14351f(0x205)](0x24)['substring'](0x2,0x8);}_0x77efee[_0x383982(0x173)]='UniverIcon';const _0x556a97={'tag':_0x383982(0x1ca),'attrs':{'xmlns':_0x383982(0x160),'fill':_0x383982(0x209),'viewBox':_0x383982(0x211),'width':_0x383982(0x1cd),'height':'1em'},'children':[{'tag':_0x383982(0x23e),'attrs':{'fill':_0x383982(0x164),'d':_0x383982(0x1fe)}},{'tag':_0x383982(0x23e),'attrs':{'fill':_0x383982(0x164),'d':_0x383982(0x1d9),'fillRule':_0x383982(0x15e),'clipRule':_0x383982(0x15e)}}]},_0x5a436d=_0x1909e5[_0x383982(0x15b)](function(_0x1ce644,_0x2c7380){const _0x303471=_0x383982;return _0x1909e5['createElement'](_0x77efee,Object[_0x303471(0x213)]({},_0x1ce644,{'id':_0x303471(0x210),'ref':_0x2c7380,'icon':_0x556a97}));});_0x5a436d[_0x383982(0x173)]=_0x383982(0x1d3);class _0x2a4178 extends _0x3661a0['Disposable']{constructor(){const _0xc9aed9=_0x383982;super(...arguments),_0x12380a(this,'_sharedOperations',new Set()),_0x12380a(this,_0xc9aed9(0x1e1),new Set());}['registerSharedOperation'](_0x44c6d6){const _0x4696f3=_0x383982;return this[_0x4696f3(0x1dc)][_0x4696f3(0x22c)](_0x44c6d6),_0x3661a0['toDisposable'](()=>this[_0x4696f3(0x1dc)][_0x4696f3(0x19f)](_0x44c6d6));}[_0x383982(0x1c2)](_0x8b9ff8){const _0x487031=_0x383982;return this[_0x487031(0x1e1)]['add'](_0x8b9ff8),_0x3661a0[_0x487031(0x20a)](()=>this['_reporters']['delete'](_0x8b9ff8));}['shouldShareOperation'](_0x31714d){const _0x57d129=_0x383982;return this['_sharedOperations'][_0x57d129(0x222)](_0x31714d);}[_0x383982(0x1e7)](_0x389c97){const _0x3b0fea=_0x383982;return Array[_0x3b0fea(0x242)](this[_0x3b0fea(0x1e1)])[_0x3b0fea(0x227)](_0x48bcb7=>_0x48bcb7(_0x389c97));}}var _0x1c5fd9=Object[_0x383982(0x231)],_0x4477f4=(_0x302975,_0x50a6f2,_0x2c4a56,_0x5788fe)=>{const _0x589a80=_0x383982;for(var _0x3ddc56=_0x5788fe>0x1?void 0x0:_0x5788fe?_0x1c5fd9(_0x50a6f2,_0x2c4a56):_0x50a6f2,_0x5650d8=_0x302975[_0x589a80(0x18c)]-0x1,_0x5cdf78;_0x5650d8>=0x0;_0x5650d8--)(_0x5cdf78=_0x302975[_0x5650d8])&&(_0x3ddc56=_0x5cdf78(_0x3ddc56)||_0x3ddc56);return _0x3ddc56;},_0xe44ae=(_0x3445c6,_0x4190b0)=>(_0x615dc8,_0x200b73)=>_0x4190b0(_0x615dc8,_0x200b73,_0x3445c6);_0x4f6949['LiveShareController']=class extends _0x3661a0[_0x383982(0x236)]{constructor(_0x3af343,_0x2b7f4a,_0x4ed82b){const _0x17e312=_0x383982;super(),_0x12380a(this,_0x17e312(0x217),new Map()),(this[_0x17e312(0x16c)]=_0x3af343,this[_0x17e312(0x1fc)]=_0x2b7f4a,this[_0x17e312(0x188)]=_0x4ed82b,this['_init']());}async[_0x383982(0x163)](_0x76102){const _0x149788=_0x383982;return this[_0x149788(0x217)]['has'](_0x76102)||await this[_0x149788(0x1c4)](_0x76102),this[_0x149788(0x217)][_0x149788(0x1df)](_0x76102);}[_0x383982(0x1a0)](_0x5800cf){const _0x3ce8d0=_0x383982;var _0x4678cd;return(_0x4678cd=this['_entities'][_0x3ce8d0(0x1df)](_0x5800cf))!=null?_0x4678cd:null;}[_0x383982(0x193)](){const _0x5ca807=_0x383982;this[_0x5ca807(0x16c)][_0x5ca807(0x196)](_0x3661a0[_0x5ca807(0x184)]['UNIVER_SHEET'])[_0x5ca807(0x206)](_0x28786d[_0x5ca807(0x169)](this[_0x5ca807(0x1cc)]))[_0x5ca807(0x21c)](async _0x31c5e0=>{const _0x33270a=_0x5ca807,_0x54502f=_0x31c5e0[_0x33270a(0x1ea)]();this[_0x33270a(0x217)][_0x33270a(0x222)](_0x54502f)||this[_0x33270a(0x1c4)](_0x54502f);}),this[_0x5ca807(0x16c)][_0x5ca807(0x1cb)](_0x3661a0[_0x5ca807(0x184)][_0x5ca807(0x171)])[_0x5ca807(0x206)](_0x28786d[_0x5ca807(0x169)](this[_0x5ca807(0x1cc)]))[_0x5ca807(0x21c)](_0x1d30ca=>{const _0x2b14c2=_0x5ca807,_0xeddbf4=_0x1d30ca[_0x2b14c2(0x1ea)](),_0x3b7817=this['_entities'][_0x2b14c2(0x1df)](_0xeddbf4);_0x3b7817==null||_0x3b7817[_0x2b14c2(0x17e)]();});}async[_0x383982(0x1c4)](_0x15d5e3){const _0x199e79=_0x383982,_0x26e19a=await this[_0x199e79(0x188)][_0x199e79(0x176)](_0x15d5e3),_0x1b540a=this[_0x199e79(0x1fc)][_0x199e79(0x1b4)](_0x4f6949[_0x199e79(0x21b)],_0x15d5e3,_0x26e19a);return _0x1b540a[_0x199e79(0x19e)](),this[_0x199e79(0x217)][_0x199e79(0x18d)](_0x15d5e3,_0x1b540a),_0x1b540a;}},_0x4f6949[_0x383982(0x1ed)]=_0x4477f4([_0xe44ae(0x0,_0x3661a0[_0x383982(0x1e9)]),_0xe44ae(0x1,_0x3661a0[_0x383982(0x1ce)](_0x3661a0['Injector'])),_0xe44ae(0x2,_0x3661a0['Inject'](_0x4d45c4[_0x383982(0x1c7)]))],_0x4f6949[_0x383982(0x1ed)]);var _0x47fdc0=(_0x3ec001=>(_0x3ec001[_0x383982(0x1e8)]='offline',_0x3ec001[_0x383982(0x17c)]=_0x383982(0x23b),_0x3ec001['FOLLOWING']='following',_0x3ec001[_0x383982(0x1cf)]=_0x383982(0x21f),_0x3ec001[_0x383982(0x183)]=_0x383982(0x1ae),_0x3ec001))(_0x47fdc0||{});const _0x2c74c0=_0x383982(0x1c3),_0x50c959=0xc8;_0x4f6949[_0x383982(0x21b)]=class extends _0x3661a0['RxDisposable']{constructor(_0x20b2a8,_0x546d85,_0x369c7b,_0x44225b,_0x331962){const _0x4a5bd5=_0x383982;super(),_0x12380a(this,_0x4a5bd5(0x1a4),new _0x377157[(_0x4a5bd5(0x182))]('idle')),_0x12380a(this,_0x4a5bd5(0x20f),this['_status$']['asObservable']()),_0x12380a(this,'_init',!0x1),_0x12380a(this,_0x4a5bd5(0x1eb),null),_0x12380a(this,_0x4a5bd5(0x1a2),null),(this['_unitID']=_0x20b2a8,this[_0x4a5bd5(0x1e6)]=_0x546d85,this[_0x4a5bd5(0x1db)]=_0x369c7b,this[_0x4a5bd5(0x15f)]=_0x44225b,this['_commandService']=_0x331962);}get['_status'](){const _0x25faf7=_0x383982;return this[_0x25faf7(0x1a4)][_0x25faf7(0x218)]();}[_0x383982(0x17e)](){const _0x25e619=_0x383982;var _0x4954b1;(_0x4954b1=this[_0x25e619(0x1eb)])==null||_0x4954b1['dispose'](),this['_status$']['next'](_0x25e619(0x23b)),this['_status$'][_0x25e619(0x214)]();}['getStatus'](){const _0x1d787f=_0x383982;return this[_0x1d787f(0x16e)];}['init'](){const _0xf05f=_0x383982;this[_0xf05f(0x193)]||(this[_0xf05f(0x193)]=!0x0,this[_0xf05f(0x1e6)][_0xf05f(0x17f)][_0xf05f(0x206)](_0x28786d[_0xf05f(0x169)](this[_0xf05f(0x1cc)]))[_0xf05f(0x21c)](_0x2c4f6c=>{const _0x2697d7=_0xf05f;switch(_0x2c4f6c){case _0x4d45c4[_0x2697d7(0x19b)][_0x2697d7(0x1e8)]:this[_0x2697d7(0x1dd)]();break;case _0x4d45c4[_0x2697d7(0x19b)][_0x2697d7(0x19c)]:this[_0x2697d7(0x189)]();break;}}),this['_collabSession'][_0xf05f(0x1a5)]['pipe'](_0x28786d[_0xf05f(0x169)](this[_0xf05f(0x1cc)]))[_0xf05f(0x21c)](_0x31ae7a=>{const _0x181f4f=_0xf05f,{eventID:_0x536d95}=_0x31ae7a;switch(_0x536d95){case _0x3f1b37[_0x181f4f(0x1fd)][_0x181f4f(0x1e2)]:this[_0x181f4f(0x230)](_0x31ae7a);break;case _0x3f1b37[_0x181f4f(0x1fd)][_0x181f4f(0x1f9)]:this['_handleOperation'](_0x31ae7a);break;case _0x3f1b37[_0x181f4f(0x1fd)][_0x181f4f(0x19d)]:this['_handleTerminate']();break;case _0x3f1b37[_0x181f4f(0x1fd)]['NEW_CHANGESETS']:this[_0x181f4f(0x1ac)](_0x31ae7a);break;}}));}['tryStartPresenting'](){const _0x4d788c=_0x383982;this[_0x4d788c(0x1e6)][_0x4d788c(0x1c1)]({'eventID':_0x3f1b37[_0x4d788c(0x1fd)][_0x4d788c(0x1b3)],'data':{'unitID':this[_0x4d788c(0x1e4)],'userID':this[_0x4d788c(0x1e6)]['getMemberID']()}},this[_0x4d788c(0x1e4)]);}[_0x383982(0x244)](){const _0x425936=_0x383982;this['_status']===_0x425936(0x1ae)&&(this[_0x425936(0x1a4)][_0x425936(0x1bb)](_0x425936(0x23b)),this['_collabSession']['send']({'eventID':_0x3f1b37[_0x425936(0x1fd)][_0x425936(0x19d)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x383982(0x194)](){const _0x5458bf=_0x383982;this[_0x5458bf(0x16e)]===_0x5458bf(0x21f)&&(this[_0x5458bf(0x1a4)][_0x5458bf(0x1bb)]('following'),this['_startFollowing']());}['stopFollowing'](){const _0x437bf2=_0x383982;this['_status']===_0x437bf2(0x1aa)&&this[_0x437bf2(0x20b)]();}['_handleNewHost'](_0x341976){const _0x50147d=_0x383982,{presenter:_0x144db6}=_0x341976[_0x50147d(0x215)],_0x59856a=this[_0x50147d(0x1e6)][_0x50147d(0x190)]();this[_0x50147d(0x1a2)]=_0x144db6,_0x144db6===_0x59856a?(this['_stopFollowing'](),this[_0x50147d(0x1f4)]()):this[_0x50147d(0x16e)]!==_0x50147d(0x21f)&&(this[_0x50147d(0x1b0)](),this[_0x50147d(0x216)]());}[_0x383982(0x20e)](){const _0x2b213e=_0x383982,_0x36b921={'eventID':_0x3f1b37[_0x2b213e(0x1fd)][_0x2b213e(0x1ff)]};this[_0x2b213e(0x1e6)][_0x2b213e(0x1c1)](_0x36b921,this[_0x2b213e(0x1e4)]);}[_0x383982(0x1d0)](){const _0x377c78=_0x383982;this[_0x377c78(0x1a2)]=null,this[_0x377c78(0x16e)]!==_0x377c78(0x1ae)&&this[_0x377c78(0x204)]();}['_handleNewChangeSets'](_0x5d6c66){const _0x2a8160=_0x383982;if(this[_0x2a8160(0x16e)]===_0x2a8160(0x1aa)&&this[_0x2a8160(0x1a2)]===_0x5d6c66[_0x2a8160(0x215)][_0x2a8160(0x233)]){const _0x435440=_0x3f1b37['parseProtocolChangeset'](_0x5d6c66[_0x2a8160(0x215)])[_0x2a8160(0x172)][_0x2a8160(0x162)]()[_0x2a8160(0x17d)](_0x1ae1b9=>_0x1ae1b9['id']===_0x45c3f5[_0x2a8160(0x1c6)]['id']);if(_0x435440){const _0x16e6a1=_0x435440[_0x2a8160(0x177)]['unitId'],_0x56ab3a=_0x435440[_0x2a8160(0x177)][_0x2a8160(0x17b)]['id'];setTimeout(()=>{const _0x4d2eb5=_0x2a8160;this[_0x4d2eb5(0x165)][_0x4d2eb5(0x1e5)](_0x45c3f5[_0x4d2eb5(0x175)]['id'],{'unitId':_0x16e6a1,'subUnitId':_0x56ab3a},{'fromCollab':!0x0});});}}}[_0x383982(0x1f4)](){const _0x3bda14=_0x383982;this[_0x3bda14(0x1a4)][_0x3bda14(0x1bb)](_0x3bda14(0x1ae));const _0x198db0=new Map(),_0x4ec3fe=this[_0x3bda14(0x1eb)]=new _0x3661a0[(_0x3bda14(0x224))]();_0x4ec3fe[_0x3bda14(0x22c)](_0x3661a0[_0x3bda14(0x20a)](()=>{const _0xae4d5c=_0x3bda14;_0x198db0[_0xae4d5c(0x1d4)](_0x25cf8d=>_0x25cf8d['complete']()),_0x198db0[_0xae4d5c(0x1d2)]();})),_0x4ec3fe['add'](this['_commandService']['onCommandExecuted'](_0x34d65b=>{const _0x198f43=_0x3bda14;var _0x13a7f0;if(_0x34d65b[_0x198f43(0x229)]!==_0x3661a0[_0x198f43(0x1f8)]['OPERATION']||!this[_0x198f43(0x15f)][_0x198f43(0x220)](_0x34d65b['id']))return;const {id:_0x23cbca}=_0x34d65b;let _0x1f1eef;_0x198db0[_0x198f43(0x222)](_0x23cbca)?_0x1f1eef=_0x198db0[_0x198f43(0x1df)](_0x23cbca):(_0x1f1eef=new _0x377157['Subject'](),_0x198db0[_0x198f43(0x18d)](_0x23cbca,_0x1f1eef),_0x1f1eef[_0x198f43(0x206)](_0x28786d['throttleTime']((_0x13a7f0=this[_0x198f43(0x1db)][_0x198f43(0x21d)](_0x2c74c0))!=null?_0x13a7f0:_0x50c959,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4c5d0e=>{const _0x1285ab=_0x198f43;this[_0x1285ab(0x1e6)][_0x1285ab(0x1c1)]({'eventID':_0x3f1b37[_0x1285ab(0x1fd)][_0x1285ab(0x1f9)],'data':{'unitID':this[_0x1285ab(0x1e4)],'operations':{[_0x4c5d0e['id']]:{'id':_0x4c5d0e['id'],'params':JSON[_0x1285ab(0x199)](_0x4c5d0e[_0x1285ab(0x177)])}}}},this[_0x1285ab(0x1e4)]);})),_0x1f1eef[_0x198f43(0x1bb)](_0x34d65b);})),this[_0x3bda14(0x15f)][_0x3bda14(0x1e7)](this[_0x3bda14(0x1e4)])['forEach'](_0x4bfde8=>this[_0x3bda14(0x1e6)]['send']({'eventID':_0x3f1b37[_0x3bda14(0x1fd)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3bda14(0x1e4)],'operations':{[_0x4bfde8['id']]:{'id':_0x4bfde8['id'],'params':JSON[_0x3bda14(0x199)](_0x4bfde8['params'])}}}},this[_0x3bda14(0x1e4)]));}['_stopPresenting'](){const _0x3560f5=_0x383982;var _0x56a896;this[_0x3560f5(0x1a4)][_0x3560f5(0x1bb)]('idle'),(_0x56a896=this[_0x3560f5(0x1eb)])==null||_0x56a896[_0x3560f5(0x17e)](),this['_commandDisposable']=null;}[_0x383982(0x216)](){const _0x592bcd=_0x383982;var _0x47a16b;(_0x47a16b=this['_commandDisposable'])==null||_0x47a16b[_0x592bcd(0x17e)](),this[_0x592bcd(0x1a4)]['next'](_0x592bcd(0x1aa));}[_0x383982(0x204)](){const _0x160ad1=_0x383982;var _0x6f4d8d;this[_0x160ad1(0x1a4)]['next'](_0x160ad1(0x23b)),(_0x6f4d8d=this[_0x160ad1(0x1eb)])==null||_0x6f4d8d['dispose'](),this['_commandDisposable']=null;}[_0x383982(0x20b)](){const _0x21fd9b=_0x383982;var _0x46da51;this[_0x21fd9b(0x1a4)][_0x21fd9b(0x1bb)](_0x21fd9b(0x21f)),(_0x46da51=this[_0x21fd9b(0x1eb)])==null||_0x46da51[_0x21fd9b(0x17e)]();}[_0x383982(0x1fa)](_0x5f24b9){const _0x5e2dbd=_0x383982;if(['presenting',_0x5e2dbd(0x21f),_0x5e2dbd(0x1a6)]['includes'](this[_0x5e2dbd(0x16e)])||!_0x5f24b9[_0x5e2dbd(0x215)]['presenter']||_0x5f24b9[_0x5e2dbd(0x215)][_0x5e2dbd(0x1d1)]===this[_0x5e2dbd(0x1e6)]['getMemberID']())return;this['_status']===_0x5e2dbd(0x23b)&&this[_0x5e2dbd(0x216)]();const _0x1980f6=_0x5f24b9[_0x5e2dbd(0x215)][_0x5e2dbd(0x166)];Object[_0x5e2dbd(0x1fb)](_0x1980f6)[_0x5e2dbd(0x1d4)](_0x2cbdcd=>{const _0x344c99=_0x5e2dbd;this['_commandService'][_0x344c99(0x1e5)](_0x2cbdcd['id'],_0x2cbdcd['params']?JSON[_0x344c99(0x1af)](_0x2cbdcd[_0x344c99(0x177)]):null,{'fromCollab':!0x0});});}[_0x383982(0x1dd)](){const _0x288d86=_0x383982;var _0x344a95;this[_0x288d86(0x1a4)]['next']('offline'),(_0x344a95=this[_0x288d86(0x1eb)])==null||_0x344a95[_0x288d86(0x17e)]();}[_0x383982(0x189)](){const _0x341a5c=_0x383982;this[_0x341a5c(0x1a4)][_0x341a5c(0x1bb)](_0x341a5c(0x23b)),this['_fetchOperations']();}},_0x4f6949[_0x383982(0x21b)]=_0x4477f4([_0xe44ae(0x2,_0x3661a0[_0x383982(0x1a8)]),_0xe44ae(0x3,_0x3661a0[_0x383982(0x1ce)](_0x2a4178)),_0xe44ae(0x4,_0x3661a0['ICommandService'])],_0x4f6949[_0x383982(0x21b)]);function _0x3b1ad4(){const _0x30bee0=_0x383982,_0x3542f9=_0xc625f8['useDependency'](_0x4f6949['LiveShareController']),_0x4c475d=_0xc625f8[_0x30bee0(0x200)](_0x3661a0[_0x30bee0(0x1e9)]),_0x4fdd4a=_0xc625f8['useObservable'](()=>_0x4c475d[_0x30bee0(0x241)](_0x3661a0[_0x30bee0(0x184)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x7ec7ab,_0x1fb8c1]=_0x1909e5['useState'](null),[_0x38e8fd,_0x3c3613]=_0x1909e5[_0x30bee0(0x20c)](_0x47fdc0['IDLE']),_0x4a5ca9=_0x1909e5[_0x30bee0(0x203)](null);return _0x1909e5[_0x30bee0(0x1c5)](()=>(_0x4fdd4a&&_0x3542f9['getLiveShareCoordinator'](_0x4fdd4a[_0x30bee0(0x1ea)]())[_0x30bee0(0x191)](_0x1da931=>{const _0x3bcc65=_0x30bee0;_0x1fb8c1(_0x1da931),_0x4a5ca9['current']=_0x1da931[_0x3bcc65(0x20f)][_0x3bcc65(0x21c)](_0x1ee0e0=>{_0x3c3613(_0x1ee0e0);});}),()=>{const _0x111b6c=_0x30bee0;var _0x3e2d77;(_0x3e2d77=_0x4a5ca9[_0x111b6c(0x1ab)])==null||_0x3e2d77[_0x111b6c(0x1ec)](),_0x4a5ca9[_0x111b6c(0x1ab)]=null;}),[_0x4fdd4a,_0x3542f9]),_0x7ec7ab?_0x1cf0c0['jsx'](_0x3038ae[_0x30bee0(0x16b)],{'align':'end','disabled':_0x38e8fd===_0x47fdc0[_0x30bee0(0x1e8)],'className':_0x30bee0(0x1e3),'overlay':_0x1cf0c0[_0x30bee0(0x23d)](_0x3b86f8,{'status':_0x38e8fd,'coordinator':_0x7ec7ab}),'children':_0x1cf0c0[_0x30bee0(0x23d)](_0x30bee0(0x1a1),{'className':_0x3038ae[_0x30bee0(0x232)](_0x30bee0(0x240),{'univer-cursor-not-allowed':_0x38e8fd===_0x47fdc0[_0x30bee0(0x1e8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38e8fd!==_0x47fdc0[_0x30bee0(0x1e8)]}),'type':'button','children':_0x1cf0c0[_0x30bee0(0x23d)](_0x5a436d,{'className':_0x30bee0(0x1b8)})})}):null;}function _0x3b86f8(_0x2dab4d){const _0x17e022=_0x383982,{status:_0x4531fb,coordinator:_0x471d54}=_0x2dab4d;switch(_0x4531fb){case _0x47fdc0[_0x17e022(0x17c)]:return _0x1cf0c0[_0x17e022(0x23d)](_0x2dfe6e,{'coordinator':_0x471d54});case _0x47fdc0[_0x17e022(0x235)]:return _0x1cf0c0[_0x17e022(0x23d)](_0x314523,{'coordinator':_0x471d54});case _0x47fdc0['NOT_FOLLOWING']:return _0x1cf0c0[_0x17e022(0x23d)](_0x6e77a,{'coordinator':_0x471d54});case _0x47fdc0['OFFLINE']:return _0x1cf0c0[_0x17e022(0x23d)](_0x674361,{});case _0x47fdc0[_0x17e022(0x183)]:return _0x1cf0c0['jsx'](_0x12deeb,{'coordinator':_0x471d54});default:return null;}}function _0x2dfe6e(_0x5bdd01){const _0x393e68=_0x383982,{coordinator:_0x3cab9c}=_0x5bdd01;return _0x1cf0c0[_0x393e68(0x1de)](_0x1cf0c0['Fragment'],{'children':[_0x1cf0c0[_0x393e68(0x23d)](_0x393e68(0x1ba),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x393e68(0x18a)}),_0x1cf0c0[_0x393e68(0x23d)](_0x3038ae[_0x393e68(0x1da)],{'onClick':()=>_0x3cab9c['tryStartPresenting'](),'children':_0x393e68(0x185)})]});}function _0x314523(_0x53c90b){const _0x4884af=_0x383982,{coordinator:_0x28b6a6}=_0x53c90b;return _0x1cf0c0[_0x4884af(0x1de)](_0x1cf0c0[_0x4884af(0x208)],{'children':[_0x1cf0c0[_0x4884af(0x23d)]('div',{'className':_0x4884af(0x186),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x1cf0c0['jsx'](_0x3038ae['Button'],{'onClick':()=>_0x28b6a6[_0x4884af(0x1f0)](),'children':_0x4884af(0x228)})]});}function _0x6e77a(_0x412ce6){const _0x116123=_0x383982,{coordinator:_0x5e7fee}=_0x412ce6;return _0x1cf0c0['jsxs'](_0x1cf0c0[_0x116123(0x208)],{'children':[_0x1cf0c0['jsx'](_0x116123(0x1ba),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x116123(0x161)}),_0x1cf0c0[_0x116123(0x23d)](_0x3038ae[_0x116123(0x1da)],{'variant':'text','onClick':()=>_0x5e7fee[_0x116123(0x194)](),'children':_0x116123(0x18e)})]});}function _0x12deeb(_0x17dfe5){const _0x17bce8=_0x383982,{coordinator:_0x280c99}=_0x17dfe5;return _0x1cf0c0[_0x17bce8(0x1de)](_0x1cf0c0[_0x17bce8(0x208)],{'children':[_0x1cf0c0[_0x17bce8(0x23d)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x17bce8(0x180)}),_0x1cf0c0['jsx'](_0x3038ae[_0x17bce8(0x1da)],{'variant':_0x17bce8(0x239),'onClick':()=>_0x280c99['stopPresenting'](),'children':_0x17bce8(0x202)})]});}function _0x674361(){const _0x45a48b=_0x383982;return _0x1cf0c0[_0x45a48b(0x23d)](_0x1cf0c0[_0x45a48b(0x208)],{'children':_0x45a48b(0x1b6)});}var _0x5b174c=Object['getOwnPropertyDescriptor'],_0x3e8558=(_0x4e15d8,_0x1cf360,_0x14ee44,_0x2d53c2)=>{const _0x417f48=_0x383982;for(var _0x1917fb=_0x2d53c2>0x1?void 0x0:_0x2d53c2?_0x5b174c(_0x1cf360,_0x14ee44):_0x1cf360,_0x499b84=_0x4e15d8[_0x417f48(0x18c)]-0x1,_0x38f63e;_0x499b84>=0x0;_0x499b84--)(_0x38f63e=_0x4e15d8[_0x499b84])&&(_0x1917fb=_0x38f63e(_0x1917fb)||_0x1917fb);return _0x1917fb;},_0x24b25a=(_0x4554a5,_0x304532)=>(_0x523ec3,_0x5b0a6c)=>_0x304532(_0x523ec3,_0x5b0a6c,_0x4554a5);_0x4f6949[_0x383982(0x237)]=class extends _0x3661a0[_0x383982(0x1be)]{constructor(_0x25266d,_0x3fe872){const _0x2744dd=_0x383982;super(),this[_0x2744dd(0x1fc)]=_0x25266d,this['_uiPartsService']=_0x3fe872,this[_0x2744dd(0x243)]();}[_0x383982(0x243)](){const _0x5c2095=_0x383982;this['disposeWithMe'](this[_0x5c2095(0x1f6)]['registerComponent'](_0xc625f8[_0x5c2095(0x179)][_0x5c2095(0x225)],()=>_0xc625f8[_0x5c2095(0x18f)](_0x3b1ad4,this[_0x5c2095(0x1fc)])));}},_0x4f6949[_0x383982(0x237)]=_0x3e8558([_0x24b25a(0x0,_0x3661a0[_0x383982(0x1ce)](_0x3661a0[_0x383982(0x18b)])),_0x24b25a(0x1,_0xc625f8[_0x383982(0x20d)])],_0x4f6949[_0x383982(0x237)]);const _0x527972=_0x383982(0x238),_0x13831b={};var _0x1f5e92=Object[_0x383982(0x231)],_0x5bbdb7=(_0x22f29d,_0x363c8f,_0x9f787a,_0x76abb0)=>{const _0x4435b4=_0x383982;for(var _0x35e171=_0x76abb0>0x1?void 0x0:_0x76abb0?_0x1f5e92(_0x363c8f,_0x9f787a):_0x363c8f,_0x1e6848=_0x22f29d[_0x4435b4(0x18c)]-0x1,_0x32fc6d;_0x1e6848>=0x0;_0x1e6848--)(_0x32fc6d=_0x22f29d[_0x1e6848])&&(_0x35e171=_0x32fc6d(_0x35e171)||_0x35e171);return _0x35e171;},_0x7c96dd=(_0x5c332a,_0x23c057)=>(_0x40f9ba,_0x2506c6)=>_0x23c057(_0x40f9ba,_0x2506c6,_0x5c332a);let _0x4a31de=class extends _0x3661a0[_0x383982(0x1be)]{constructor(_0x158bd9){const _0x1371d8=_0x383982;super(),this['_liveShareService']=_0x158bd9,this[_0x1371d8(0x193)]();}['_init'](){const _0x477864=_0x383982;[_0x41b85b[_0x477864(0x1d5)]['id'],_0x41b85b[_0x477864(0x1b9)]['id'],_0x45c3f5[_0x477864(0x175)]['id']][_0x477864(0x1d4)](_0x3c5575=>{const _0x4d1646=_0x477864;this[_0x4d1646(0x223)](this[_0x4d1646(0x15f)][_0x4d1646(0x168)](_0x3c5575));});}};_0x4a31de=_0x5bbdb7([_0x7c96dd(0x0,_0x3661a0[_0x383982(0x1ce)](_0x2a4178))],_0x4a31de);var _0x63bf72=Object[_0x383982(0x192)],_0x22b6a0=Object[_0x383982(0x231)],_0x537b2f=(_0x16caea,_0x155ba5,_0x18d295)=>_0x155ba5 in _0x16caea?_0x63bf72(_0x16caea,_0x155ba5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18d295}):_0x16caea[_0x155ba5]=_0x18d295,_0x297010=(_0x351dc5,_0x1c66d6,_0x4a05bf,_0x53574f)=>{for(var _0x20d562=_0x53574f>0x1?void 0x0:_0x53574f?_0x22b6a0(_0x1c66d6,_0x4a05bf):_0x1c66d6,_0x52cd0d=_0x351dc5['length']-0x1,_0x2a7fa6;_0x52cd0d>=0x0;_0x52cd0d--)(_0x2a7fa6=_0x351dc5[_0x52cd0d])&&(_0x20d562=_0x2a7fa6(_0x20d562)||_0x20d562);return _0x20d562;},_0x19dc4a=(_0x2b27a4,_0x2091a2)=>(_0x137d66,_0x4f3713)=>_0x2091a2(_0x137d66,_0x4f3713,_0x2b27a4),_0x48b8b7=(_0x129eed,_0x46e25f,_0x5754bb)=>_0x537b2f(_0x129eed,typeof _0x46e25f!=_0x383982(0x181)?_0x46e25f+'':_0x46e25f,_0x5754bb);const _0xa62149='UNIVER_LIVE_SHARE_PLUGIN';_0x4f6949['UniverLiveSharePlugin']=class extends _0x3661a0['Plugin']{constructor(_0x362be5=_0x13831b,_0x5c299a,_0x3ca6d3){const _0x5812dd=_0x383982;super(),this['_config']=_0x362be5,this[_0x5812dd(0x1fc)]=_0x5c299a,this[_0x5812dd(0x1db)]=_0x3ca6d3;const {..._0x19ea63}=_0x3661a0['merge']({},_0x13831b,this['_config']);this['_configService'][_0x5812dd(0x201)](_0x527972,_0x19ea63);}[_0x383982(0x174)](){const _0x25d9fd=_0x383982;_0x3661a0['registerDependencies'](this[_0x25d9fd(0x1fc)],_0x3661a0[_0x25d9fd(0x1c8)]([[_0x2a4178],[_0x4f6949[_0x25d9fd(0x1ed)]],[_0x4a31de],[_0x4f6949[_0x25d9fd(0x237)]]],this[_0x25d9fd(0x22e)][_0x25d9fd(0x1d6)])),_0x3661a0[_0x25d9fd(0x1c0)](this['_injector'],[[_0x4a31de]]);}['onRendered'](){const _0x41554f=_0x383982;_0x3661a0[_0x41554f(0x1c0)](this[_0x41554f(0x1fc)],[[_0x4f6949[_0x41554f(0x237)]]]);}},_0x48b8b7(_0x4f6949[_0x383982(0x1e0)],_0x383982(0x229),_0x3661a0[_0x383982(0x184)][_0x383982(0x23f)]),_0x48b8b7(_0x4f6949[_0x383982(0x1e0)],_0x383982(0x234),_0xa62149),_0x4f6949[_0x383982(0x1e0)]=_0x297010([_0x3661a0['DependentOn'](_0x4d45c4[_0x383982(0x226)]),_0x19dc4a(0x1,_0x3661a0[_0x383982(0x1ce)](_0x3661a0['Injector'])),_0x19dc4a(0x2,_0x3661a0[_0x383982(0x1a8)])],_0x4f6949[_0x383982(0x1e0)]),_0x4f6949['LiveShare']=_0x3b1ad4,_0x4f6949['LiveShareService']=_0x2a4178,_0x4f6949[_0x383982(0x1f2)]=_0x47fdc0,Object[_0x383982(0x192)](_0x4f6949,Symbol[_0x383982(0x22b)],{'value':'Module'});}));function _0x580b(_0x157737,_0x2cbfbc){_0x157737=_0x157737-0x15b;const _0x4bdb86=_0x4bdb();let _0x580b35=_0x4bdb86[_0x157737];return _0x580b35;}function _0x4bdb(){const _0x5e27d7=['current','_handleNewChangeSets','778840HlKEfp','presenting','parse','_stopPresenting','string','440991dDtaDb','LIVESHARE_REQUEST_HOST','createInstance','UniverCore','You\x27are\x20offline.','16161343KdFdzV','univer-size-4','SetScrollOperation','div','next','@univerjs-pro/collaboration','UniverProCollaboration','Disposable','react','touchDependencies','send','registerInitialStateReporter','SAME_OPERATION_SHARE_INTERVAL','_startLiveShareCoordinator','useEffect','InsertSheetMutation','CollaborationSessionService','mergeOverrideWithDependencies','rxjs','svg','getTypeOfUnitDisposed$','dispose$','1em','Inject','NOT_FOLLOWING','_handleTerminate','presenter','clear','LiveShareIcon','forEach','SetZoomRatioOperation','override','defIds','entries','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','Button','_configService','_sharedOperations','_handleOffline','jsxs','get','UniverLiveSharePlugin','_reporters','LIVESHARE_NEW_HOST','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_unitID','executeCommand','_collabSession','getInitialStates','OFFLINE','IUniverInstanceService','getUnitId','_commandDisposable','unsubscribe','LiveShareController','function','rxjs/operators','stopFollowing','1475509JqjQHR','LiveShareStatus','3097576nfFTfK','_startPresenting','colorChannel1','_uiPartsService','trim','CommandType','LIVESHARE_OPERATION','_handleOperation','values','_injector','CollaborationEvent','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_FETCH_OPERATIONS','useDependency','setConfig','Stop\x20presenting','useRef','_beIdle','toString','pipe','@univerjs-pro/collaboration-client','Fragment','none','toDisposable','_stopFollowing','useState','IUIPartsService','_fetchOperations','status$','live-share-icon','0\x200\x2017\x2017','amd','assign','complete','data','_startFollowing','_entities','getValue','React','tag','LiveShareCoordinator','subscribe','getConfig','6tjqbWm','not-following','shouldShareOperation','4546TPZOtN','has','disposeWithMe','DisposableCollection','HEADER_MENU','UniverCollaborationClientPlugin','map','Stop\x20following','type','fill','toStringTag','add','@univerjs/design','_config','46HYSTBQ','_handleNewHost','getOwnPropertyDescriptor','clsx','memberID','pluginName','FOLLOWING','RxDisposable','DesktopLiveShareController','live-share.config','default','xlink:href','idle','children','jsx','path','UNIVER_UNKNOWN','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getCurrentTypeOfUnit$','from','_mountLiveShare','stopPresenting','forwardRef','20406KhnyFJ','mask','evenodd','_liveShareService','http://www.w3.org/2000/svg','You\x27re\x20not\x20following\x20the\x20presenter','reverse','getLiveShareCoordinator','currentColor','_commandService','operations','object','registerSharedOperation','takeUntil','exports','Dropdown','_univerInstanceService','10LWomGY','_status','random','includes','UNIVER_SHEET','mutations','displayName','onStarting','SetWorksheetActiveOperation','requireSession','params','212xVreNJ','BuiltInUIPart','react/jsx-runtime','sheet','IDLE','find','dispose','sessionStatus$','You\x27re\x20presenting\x20the\x20document','symbol','BehaviorSubject','PRESENTING','UniverInstanceType','Start','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverSheets','_collabSessionService','_handleOnline','Present\x20this\x20document','Injector','length','set','Start\x20following','connectInjector','getMemberID','then','defineProperty','_init','startFollowing','defs','getTypeOfUnitAdded$','attrs','UniverUi','stringify','idSuffix','SessionStatus','ONLINE','LIVESHARE_TERMINATE','init','delete','getLiveShareCoordinatorSync','button','_presenter','replace','_status$','event$','offline','UniverSheetsUi','IConfigService','url(#$1','following'];_0x4bdb=function(){return _0x5e27d7;};return _0x4bdb();}
1
+ function _0x5045(){const _0x48dae2=['915035youKiY','_liveShareService','react','presenter','getLiveShareCoordinatorSync','toDisposable','tryStartPresenting','575999YioADH','status$','shouldShareOperation','_entities','240MKoiyI','@univerjs/design','mergeOverrideWithDependencies','UNIVER_SHEET','jsxs','@univerjs-pro/collaboration-client','You\x27re\x20not\x20following\x20the\x20presenter','IConfigService','LIVESHARE_TERMINATE','_commandDisposable','Inject','Button','complete','use','LiveShareService','UNIVER_UNKNOWN','defineProperty','SessionStatus','_beIdle','_collabSessionService','IDLE','react/jsx-runtime','NOT_FOLLOWING','next','mutations','exports','has','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','string','_handleNewChangeSets','takeUntil','Module','_handleOperation','registerInitialStateReporter','getValue','pipe','univerjs-icon\x20univerjs-icon-','idSuffix','from','text','_init','event$','@univerjs/ui','xlink:href','live-share.config','PRESENTING','_mountLiveShare','1em','getUnitId','url(#$1','_handleTerminate','colorChannel1','UniverInstanceType','object','forEach','jsx','operations','mask','delete','@univerjs/sheets','0\x200\x2017\x2017','currentColor','_handleOffline','useState','LiveShareController','UniverProCollaboration','getTypeOfUnitAdded$','LIVESHARE_REQUEST_HOST','React','send','parseProtocolChangeset','@univerjs/sheets-ui','getCurrentTypeOfUnit$','fill','18THTKQa','symbol','_stopPresenting','_startPresenting','_configService','forwardRef','values','BehaviorSubject','set','DependentOn','onRendered','BuiltInUIPart','803370DjBfNI','live-share-icon','_fetchOperations','pluginName','CommandType','LIVESHARE_OPERATION','trim','OPERATION','stringify','attrs','function','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','toStringTag','_collabSession','executeCommand','defIds','Start','displayName','memberID','univer-mb-3\x20univer-w-full\x20univer-text-sm','getLiveShareCoordinator','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','rxjs','useRef','tag','Injector','_stopFollowing','OFFLINE','LIVESHARE_FETCH_OPERATIONS','button','connectInjector','InsertSheetMutation','_status','FOLLOWING','svg','http://www.w3.org/2000/svg','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','touchDependencies','useDependency','presenting','UniverCollaborationClientPlugin','type','rxjs/operators','HEADER_MENU','You\x27are\x20offline.','UniverDesign','registerDependencies','following','_presenter','Plugin','data','RxDisposable','@univerjs-pro/collaboration','Present\x20this\x20document','dispose','You\x27re\x20following\x20the\x20presenter','onStarting','reverse','_startFollowing','_unitID','UniverProLiveShare','SetWorksheetActiveOperation','disposeWithMe','requireSession','path','_status$','@univerjs/core','SAME_OPERATION_SHARE_INTERVAL','8694954jCeTRa','entries','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20presenting\x20the\x20document','get','current','stopFollowing','div','add','createElement','stopPresenting','unitId','IUniverInstanceService','offline','Start\x20following','replace','getTypeOfUnitDisposed$','UniverProCollaborationClient','asObservable','dispose$','defs','CollaborationEvent','idle','LiveShare','LiveShareCoordinator','init','785530TFqCNj','params','startFollowing','length','then','sessionStatus$','evenodd','_univerInstanceService','getMemberID','end','sheet','UniverSheetsUi','includes','subscribe','_commandService','DesktopLiveShareController','assign','_handleNewHost','find','CollaborationSessionService','NEW_CHANGESETS','ICommandService','UniverLiveSharePlugin','map','_handleOnline','Fragment','_reporters','operators','_injector','_config','1379vEfHwO','getOwnPropertyDescriptor','unsubscribe','Subject','not-following','85888UbIHaw','getInitialStates','Stop\x20following','Disposable','clear','children','getStatus','Dropdown','_startLiveShareCoordinator','_sharedOperations','21496StrxDf','registerComponent'];_0x5045=function(){return _0x48dae2;};return _0x5045();}function _0x3042(_0x4ceaa7,_0x254c3c){_0x4ceaa7=_0x4ceaa7-0x16d;const _0x5045a3=_0x5045();let _0x3042df=_0x5045a3[_0x4ceaa7];return _0x3042df;}(function(_0x596752,_0x3cad45){const _0xf4d860=_0x3042,_0x19a7a8=_0x596752();while(!![]){try{const _0x35e8cf=parseInt(_0xf4d860(0x1b6))/0x1+-parseInt(_0xf4d860(0x210))/0x2+parseInt(_0xf4d860(0x1ba))/0x3*(parseInt(_0xf4d860(0x1a3))/0x4)+parseInt(_0xf4d860(0x1af))/0x5+-parseInt(_0xf4d860(0x254))/0x6+-parseInt(_0xf4d860(0x19e))/0x7*(-parseInt(_0xf4d860(0x1ad))/0x8)+-parseInt(_0xf4d860(0x204))/0x9*(parseInt(_0xf4d860(0x180))/0xa);if(_0x35e8cf===_0x3cad45)break;else _0x19a7a8['push'](_0x19a7a8['shift']());}catch(_0x46acda){_0x19a7a8['push'](_0x19a7a8['shift']());}}}(_0x5045,0xf3b0b),function(_0x53332a,_0x2b1868){const _0x106b6c=_0x3042;typeof exports==_0x106b6c(0x1ef)&&typeof module<'u'?_0x2b1868(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==_0x106b6c(0x21a)&&define['amd']?define([_0x106b6c(0x1d3),_0x106b6c(0x252),_0x106b6c(0x1e4),_0x106b6c(0x1cf),_0x106b6c(0x1bb),_0x106b6c(0x1b1),_0x106b6c(0x244),_0x106b6c(0x1bf),_0x106b6c(0x1f5),_0x106b6c(0x226),_0x106b6c(0x23a),_0x106b6c(0x201)],_0x2b1868):(_0x53332a=typeof globalThis<'u'?globalThis:_0x53332a||self,_0x2b1868(_0x53332a[_0x106b6c(0x24c)]={},_0x53332a['UniverCore'],_0x53332a['UniverUi'],_0x53332a[_0x106b6c(0x1fe)],_0x53332a[_0x106b6c(0x23d)],_0x53332a[_0x106b6c(0x1fe)],_0x53332a[_0x106b6c(0x1fb)],_0x53332a[_0x106b6c(0x177)],_0x53332a['UniverSheets'],_0x53332a[_0x106b6c(0x226)],_0x53332a['rxjs'][_0x106b6c(0x19b)],_0x53332a[_0x106b6c(0x18b)]));}(this,function(_0x14c64b,_0x3b08ea,_0x38aee4,_0x7a8eef,_0x52db5b,_0x1f34a2,_0x783a72,_0x40969f,_0x251183,_0x116976,_0x1fbc4f,_0x192478){'use strict';const _0x5eb223=_0x3042;var _0x15c28c=Object[_0x5eb223(0x1ca)],_0x3c20d7=(_0x21593b,_0x2eb5ee,_0x24b87f)=>_0x2eb5ee in _0x21593b?_0x15c28c(_0x21593b,_0x2eb5ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24b87f}):_0x21593b[_0x2eb5ee]=_0x24b87f,_0x1e0155=(_0x4dc528,_0x3e17fe,_0x7ebd63)=>_0x3c20d7(_0x4dc528,typeof _0x3e17fe!=_0x5eb223(0x205)?_0x3e17fe+'':_0x3e17fe,_0x7ebd63);function _0x41c359({ref:_0x194369,..._0x32f431}){const _0x334f9b=_0x5eb223,{icon:_0x2a85c1,id:_0x2e7033,className:_0x4d2e00,extend:_0x229223,..._0x3da465}=_0x32f431,_0x13cc38=(_0x334f9b(0x1de)+_0x2e7033+'\x20'+(_0x4d2e00||''))[_0x334f9b(0x216)](),_0x2ae2d1=_0x1f34a2['useRef']('_'+_0x496c9a());return _0x572cb4(_0x2a85c1,''+_0x2e7033,{'defIds':_0x2a85c1[_0x334f9b(0x21f)],'idSuffix':_0x2ae2d1['current']},{'ref':_0x194369,'className':_0x13cc38,..._0x3da465},_0x229223);}function _0x572cb4(_0x35339d,_0x21323c,_0x5836aa,_0x297608,_0x3db32a){const _0x4a0ef6=_0x5eb223;return _0x1f34a2['createElement'](_0x35339d['tag'],{'key':_0x21323c,..._0x81421d(_0x35339d,_0x5836aa,_0x3db32a),..._0x297608},(_0x5e03e7(_0x35339d,_0x5836aa)[_0x4a0ef6(0x1a8)]||[])['map']((_0xa7ef93,_0x5556b0)=>_0x572cb4(_0xa7ef93,_0x21323c+'-'+_0x35339d[_0x4a0ef6(0x228)]+'-'+_0x5556b0,_0x5836aa,void 0x0,_0x3db32a)));}function _0x81421d(_0x4ea638,_0x4993e4,_0x577ec0){const _0x102094=_0x5eb223,_0x4cc069={..._0x4ea638['attrs']};_0x577ec0!=null&&_0x577ec0['colorChannel1']&&_0x4cc069[_0x102094(0x203)]==='colorChannel1'&&(_0x4cc069[_0x102094(0x203)]=_0x577ec0[_0x102094(0x1ed)]),_0x4ea638['tag']===_0x102094(0x1f3)&&_0x4cc069['id']&&(_0x4cc069['id']=_0x4cc069['id']+_0x4993e4['idSuffix']),Object['entries'](_0x4cc069)['forEach'](([_0x11185e,_0x47fb21])=>{const _0x50f43d=_0x102094;_0x11185e===_0x50f43d(0x1f3)&&typeof _0x47fb21==_0x50f43d(0x1d6)&&(_0x4cc069[_0x11185e]=_0x47fb21['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4993e4[_0x50f43d(0x1df)]+')'));});const {defIds:_0x309eb6}=_0x4993e4;return!_0x309eb6||_0x309eb6['length']===0x0||(_0x4ea638['tag']===_0x102094(0x1c7)&&_0x4cc069[_0x102094(0x1e5)]&&(_0x4cc069[_0x102094(0x1e5)]=_0x4cc069['xlink:href']+_0x4993e4[_0x102094(0x1df)]),Object[_0x102094(0x255)](_0x4cc069)[_0x102094(0x1f0)](([_0x48b678,_0x3427b2])=>{const _0xa376c2=_0x102094;typeof _0x3427b2==_0xa376c2(0x1d6)&&(_0x4cc069[_0x48b678]=_0x3427b2[_0xa376c2(0x175)](/url\(#(.*)\)/,_0xa376c2(0x1eb)+_0x4993e4['idSuffix']+')'));})),_0x4cc069;}function _0x5e03e7(_0x2cac65,_0x1f51e7){const _0x267b27=_0x5eb223;var _0x32bf3d;const {defIds:_0x4aaef6}=_0x1f51e7;return!_0x4aaef6||_0x4aaef6[_0x267b27(0x183)]===0x0?_0x2cac65:_0x2cac65[_0x267b27(0x228)]===_0x267b27(0x17a)&&((_0x32bf3d=_0x2cac65[_0x267b27(0x1a8)])!=null&&_0x32bf3d[_0x267b27(0x183)])?{..._0x2cac65,'children':_0x2cac65[_0x267b27(0x1a8)][_0x267b27(0x197)](_0x573928=>typeof _0x573928[_0x267b27(0x219)]['id']==_0x267b27(0x1d6)&&_0x4aaef6&&_0x4aaef6['includes'](_0x573928[_0x267b27(0x219)]['id'])?{..._0x573928,'attrs':{..._0x573928['attrs'],'id':_0x573928[_0x267b27(0x219)]['id']+_0x1f51e7[_0x267b27(0x1df)]}}:_0x573928)}:_0x2cac65;}function _0x496c9a(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x41c359[_0x5eb223(0x221)]='UniverIcon';const _0x4cc053={'tag':_0x5eb223(0x232),'attrs':{'xmlns':_0x5eb223(0x233),'fill':'none','viewBox':_0x5eb223(0x1f6),'width':_0x5eb223(0x1e9),'height':_0x5eb223(0x1e9)},'children':[{'tag':_0x5eb223(0x250),'attrs':{'fill':_0x5eb223(0x1f7),'d':_0x5eb223(0x1d5)}},{'tag':_0x5eb223(0x250),'attrs':{'fill':'currentColor','d':_0x5eb223(0x225),'fillRule':_0x5eb223(0x186),'clipRule':_0x5eb223(0x186)}}]},_0x1f8833=_0x1f34a2[_0x5eb223(0x209)](function(_0xa8ec08,_0x3eb833){const _0x1a06a8=_0x5eb223;return _0x1f34a2[_0x1a06a8(0x16f)](_0x41c359,Object[_0x1a06a8(0x190)]({},_0xa8ec08,{'id':_0x1a06a8(0x211),'ref':_0x3eb833,'icon':_0x4cc053}));});_0x1f8833['displayName']='LiveShareIcon';class _0x17df7c extends _0x3b08ea['Disposable']{constructor(){const _0x3fc30e=_0x5eb223;super(...arguments),_0x1e0155(this,_0x3fc30e(0x1ac),new Set()),_0x1e0155(this,_0x3fc30e(0x19a),new Set());}['registerSharedOperation'](_0x169fb7){const _0x4b1f2a=_0x5eb223;return this[_0x4b1f2a(0x1ac)][_0x4b1f2a(0x16e)](_0x169fb7),_0x3b08ea[_0x4b1f2a(0x1b4)](()=>this['_sharedOperations'][_0x4b1f2a(0x1f4)](_0x169fb7));}[_0x5eb223(0x1db)](_0x29ca7c){const _0x42ce4d=_0x5eb223;return this[_0x42ce4d(0x19a)][_0x42ce4d(0x16e)](_0x29ca7c),_0x3b08ea[_0x42ce4d(0x1b4)](()=>this[_0x42ce4d(0x19a)][_0x42ce4d(0x1f4)](_0x29ca7c));}[_0x5eb223(0x1b8)](_0x59a279){const _0x3089f5=_0x5eb223;return this['_sharedOperations'][_0x3089f5(0x1d4)](_0x59a279);}['getInitialStates'](_0x1258b6){const _0x28c1ba=_0x5eb223;return Array[_0x28c1ba(0x1e0)](this['_reporters'])['map'](_0x5eca17=>_0x5eca17(_0x1258b6));}}var _0x10bb46=Object[_0x5eb223(0x19f)],_0x1cfc5e=(_0x3b7f96,_0x2e6b1b,_0x2c1570,_0x285569)=>{for(var _0x13d114=_0x285569>0x1?void 0x0:_0x285569?_0x10bb46(_0x2e6b1b,_0x2c1570):_0x2e6b1b,_0x27dc79=_0x3b7f96['length']-0x1,_0xe00bd8;_0x27dc79>=0x0;_0x27dc79--)(_0xe00bd8=_0x3b7f96[_0x27dc79])&&(_0x13d114=_0xe00bd8(_0x13d114)||_0x13d114);return _0x13d114;},_0x25ca2a=(_0x3662fb,_0x510d95)=>(_0x2582dc,_0x464624)=>_0x510d95(_0x2582dc,_0x464624,_0x3662fb);_0x14c64b[_0x5eb223(0x1fa)]=class extends _0x3b08ea['RxDisposable']{constructor(_0x2b2fae,_0x2724b7,_0x2db5ca){const _0x9d2c90=_0x5eb223;super(),_0x1e0155(this,_0x9d2c90(0x1b9),new Map()),(this[_0x9d2c90(0x187)]=_0x2b2fae,this[_0x9d2c90(0x19c)]=_0x2724b7,this[_0x9d2c90(0x1cd)]=_0x2db5ca,this[_0x9d2c90(0x1e2)]());}async['getLiveShareCoordinator'](_0x4bfbd0){const _0x337039=_0x5eb223;return this['_entities'][_0x337039(0x1d4)](_0x4bfbd0)||await this[_0x337039(0x1ab)](_0x4bfbd0),this[_0x337039(0x1b9)]['get'](_0x4bfbd0);}[_0x5eb223(0x1b3)](_0x46bb2e){var _0x32a828;return(_0x32a828=this['_entities']['get'](_0x46bb2e))!=null?_0x32a828:null;}['_init'](){const _0x2c9ae1=_0x5eb223;this[_0x2c9ae1(0x187)][_0x2c9ae1(0x1fc)](_0x3b08ea[_0x2c9ae1(0x1ee)]['UNIVER_SHEET'])[_0x2c9ae1(0x1dd)](_0x1fbc4f[_0x2c9ae1(0x1d8)](this[_0x2c9ae1(0x179)]))[_0x2c9ae1(0x18d)](async _0x799fd9=>{const _0x4441eb=_0x2c9ae1,_0x2d859c=_0x799fd9[_0x4441eb(0x1ea)]();this[_0x4441eb(0x1b9)][_0x4441eb(0x1d4)](_0x2d859c)||this[_0x4441eb(0x1ab)](_0x2d859c);}),this[_0x2c9ae1(0x187)][_0x2c9ae1(0x176)](_0x3b08ea['UniverInstanceType'][_0x2c9ae1(0x1bd)])['pipe'](_0x1fbc4f[_0x2c9ae1(0x1d8)](this[_0x2c9ae1(0x179)]))[_0x2c9ae1(0x18d)](_0x811623=>{const _0x1849f6=_0x2c9ae1,_0x486abd=_0x811623[_0x1849f6(0x1ea)](),_0x396b93=this[_0x1849f6(0x1b9)][_0x1849f6(0x258)](_0x486abd);_0x396b93==null||_0x396b93['dispose']();});}async[_0x5eb223(0x1ab)](_0x59ca2e){const _0x56971e=_0x5eb223,_0x237285=await this['_collabSessionService'][_0x56971e(0x24f)](_0x59ca2e),_0x1c3d20=this[_0x56971e(0x19c)]['createInstance'](_0x14c64b[_0x56971e(0x17e)],_0x59ca2e,_0x237285);return _0x1c3d20[_0x56971e(0x17f)](),this[_0x56971e(0x1b9)][_0x56971e(0x20c)](_0x59ca2e,_0x1c3d20),_0x1c3d20;}},_0x14c64b[_0x5eb223(0x1fa)]=_0x1cfc5e([_0x25ca2a(0x0,_0x3b08ea['IUniverInstanceService']),_0x25ca2a(0x1,_0x3b08ea[_0x5eb223(0x1c4)](_0x3b08ea[_0x5eb223(0x229)])),_0x25ca2a(0x2,_0x3b08ea['Inject'](_0x40969f[_0x5eb223(0x193)]))],_0x14c64b[_0x5eb223(0x1fa)]);var _0x43b619=(_0x5d57bb=>(_0x5d57bb[_0x5eb223(0x22b)]='offline',_0x5d57bb['IDLE']=_0x5eb223(0x17c),_0x5d57bb[_0x5eb223(0x231)]='following',_0x5d57bb['NOT_FOLLOWING']=_0x5eb223(0x1a2),_0x5d57bb[_0x5eb223(0x1e7)]=_0x5eb223(0x237),_0x5d57bb))(_0x43b619||{});const _0x4b9604=_0x5eb223(0x253),_0x4e8a3f=0xc8;_0x14c64b[_0x5eb223(0x17e)]=class extends _0x3b08ea[_0x5eb223(0x243)]{constructor(_0x57ff91,_0x376199,_0x2c392f,_0x3c3a62,_0x452cd9){const _0x42fe3e=_0x5eb223;super(),_0x1e0155(this,_0x42fe3e(0x251),new _0x116976[(_0x42fe3e(0x20b))](_0x42fe3e(0x17c))),_0x1e0155(this,_0x42fe3e(0x1b7),this[_0x42fe3e(0x251)][_0x42fe3e(0x178)]()),_0x1e0155(this,'_init',!0x1),_0x1e0155(this,_0x42fe3e(0x1c3),null),_0x1e0155(this,_0x42fe3e(0x240),null),(this[_0x42fe3e(0x24b)]=_0x57ff91,this[_0x42fe3e(0x21d)]=_0x376199,this[_0x42fe3e(0x208)]=_0x2c392f,this[_0x42fe3e(0x1b0)]=_0x3c3a62,this['_commandService']=_0x452cd9);}get[_0x5eb223(0x230)](){const _0x1bc0ba=_0x5eb223;return this[_0x1bc0ba(0x251)][_0x1bc0ba(0x1dc)]();}['dispose'](){const _0x1e39d2=_0x5eb223;var _0x239707;(_0x239707=this[_0x1e39d2(0x1c3)])==null||_0x239707[_0x1e39d2(0x246)](),this[_0x1e39d2(0x251)]['next']('idle'),this[_0x1e39d2(0x251)][_0x1e39d2(0x1c6)]();}[_0x5eb223(0x1a9)](){const _0x1fa8ec=_0x5eb223;return this[_0x1fa8ec(0x230)];}[_0x5eb223(0x17f)](){const _0x13bac7=_0x5eb223;this[_0x13bac7(0x1e2)]||(this[_0x13bac7(0x1e2)]=!0x0,this[_0x13bac7(0x21d)][_0x13bac7(0x185)][_0x13bac7(0x1dd)](_0x1fbc4f[_0x13bac7(0x1d8)](this[_0x13bac7(0x179)]))['subscribe'](_0x3a5d43=>{const _0x41a405=_0x13bac7;switch(_0x3a5d43){case _0x40969f[_0x41a405(0x1cb)][_0x41a405(0x22b)]:this[_0x41a405(0x1f8)]();break;case _0x40969f[_0x41a405(0x1cb)]['ONLINE']:this[_0x41a405(0x198)]();break;}}),this[_0x13bac7(0x21d)][_0x13bac7(0x1e3)][_0x13bac7(0x1dd)](_0x1fbc4f[_0x13bac7(0x1d8)](this['dispose$']))[_0x13bac7(0x18d)](_0x44c2f7=>{const _0xafbeed=_0x13bac7,{eventID:_0x38d204}=_0x44c2f7;switch(_0x38d204){case _0x783a72[_0xafbeed(0x17b)]['LIVESHARE_NEW_HOST']:this[_0xafbeed(0x191)](_0x44c2f7);break;case _0x783a72[_0xafbeed(0x17b)][_0xafbeed(0x215)]:this[_0xafbeed(0x1da)](_0x44c2f7);break;case _0x783a72['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0xafbeed(0x1ec)]();break;case _0x783a72[_0xafbeed(0x17b)][_0xafbeed(0x194)]:this[_0xafbeed(0x1d7)](_0x44c2f7);break;}}));}[_0x5eb223(0x1b5)](){const _0x16d3f4=_0x5eb223;this[_0x16d3f4(0x21d)][_0x16d3f4(0x1ff)]({'eventID':_0x783a72[_0x16d3f4(0x17b)][_0x16d3f4(0x1fd)],'data':{'unitID':this['_unitID'],'userID':this[_0x16d3f4(0x21d)][_0x16d3f4(0x188)]()}},this[_0x16d3f4(0x24b)]);}[_0x5eb223(0x170)](){const _0x1949a5=_0x5eb223;this['_status']==='presenting'&&(this[_0x1949a5(0x251)]['next'](_0x1949a5(0x17c)),this[_0x1949a5(0x21d)][_0x1949a5(0x1ff)]({'eventID':_0x783a72[_0x1949a5(0x17b)][_0x1949a5(0x1c2)],'data':{'unitID':this['_unitID']}},this[_0x1949a5(0x24b)]));}['startFollowing'](){const _0x3e3262=_0x5eb223;this[_0x3e3262(0x230)]===_0x3e3262(0x1a2)&&(this[_0x3e3262(0x251)][_0x3e3262(0x1d1)](_0x3e3262(0x23f)),this[_0x3e3262(0x24a)]());}[_0x5eb223(0x25a)](){const _0x52e193=_0x5eb223;this[_0x52e193(0x230)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x307379){const _0x377977=_0x5eb223,{presenter:_0x22f236}=_0x307379[_0x377977(0x242)],_0x4a86bb=this[_0x377977(0x21d)][_0x377977(0x188)]();this[_0x377977(0x240)]=_0x22f236,_0x22f236===_0x4a86bb?(this['_stopFollowing'](),this[_0x377977(0x207)]()):this[_0x377977(0x230)]!==_0x377977(0x1a2)&&(this[_0x377977(0x206)](),this[_0x377977(0x24a)]());}[_0x5eb223(0x212)](){const _0x530a2d=_0x5eb223,_0x2e4d2a={'eventID':_0x783a72[_0x530a2d(0x17b)][_0x530a2d(0x22c)]};this['_collabSession']['send'](_0x2e4d2a,this[_0x530a2d(0x24b)]);}[_0x5eb223(0x1ec)](){const _0x4f2d9f=_0x5eb223;this[_0x4f2d9f(0x240)]=null,this[_0x4f2d9f(0x230)]!==_0x4f2d9f(0x237)&&this[_0x4f2d9f(0x1cc)]();}['_handleNewChangeSets'](_0x6e86d5){const _0x635e72=_0x5eb223;if(this[_0x635e72(0x230)]==='following'&&this['_presenter']===_0x6e86d5['data'][_0x635e72(0x222)]){const _0x28e984=_0x783a72[_0x635e72(0x200)](_0x6e86d5[_0x635e72(0x242)])[_0x635e72(0x1d2)][_0x635e72(0x249)]()[_0x635e72(0x192)](_0xa86460=>_0xa86460['id']===_0x251183[_0x635e72(0x22f)]['id']);if(_0x28e984){const _0x4d5b47=_0x28e984[_0x635e72(0x181)][_0x635e72(0x171)],_0x4863cb=_0x28e984[_0x635e72(0x181)][_0x635e72(0x18a)]['id'];setTimeout(()=>{const _0x3e365a=_0x635e72;this[_0x3e365a(0x18e)]['executeCommand'](_0x251183[_0x3e365a(0x24d)]['id'],{'unitId':_0x4d5b47,'subUnitId':_0x4863cb},{'fromCollab':!0x0});});}}}[_0x5eb223(0x207)](){const _0x463a20=_0x5eb223;this[_0x463a20(0x251)][_0x463a20(0x1d1)]('presenting');const _0xb76fbb=new Map(),_0x5559a0=this[_0x463a20(0x1c3)]=new _0x3b08ea['DisposableCollection']();_0x5559a0[_0x463a20(0x16e)](_0x3b08ea[_0x463a20(0x1b4)](()=>{const _0xc35cf7=_0x463a20;_0xb76fbb[_0xc35cf7(0x1f0)](_0x46f5c7=>_0x46f5c7['complete']()),_0xb76fbb[_0xc35cf7(0x1a7)]();})),_0x5559a0[_0x463a20(0x16e)](this[_0x463a20(0x18e)]['onCommandExecuted'](_0x812a9e=>{const _0x3c6fc4=_0x463a20;var _0x4ce1d4;if(_0x812a9e[_0x3c6fc4(0x239)]!==_0x3b08ea[_0x3c6fc4(0x214)][_0x3c6fc4(0x217)]||!this['_liveShareService']['shouldShareOperation'](_0x812a9e['id']))return;const {id:_0x4d88a2}=_0x812a9e;let _0xe32717;_0xb76fbb[_0x3c6fc4(0x1d4)](_0x4d88a2)?_0xe32717=_0xb76fbb['get'](_0x4d88a2):(_0xe32717=new _0x116976[(_0x3c6fc4(0x1a1))](),_0xb76fbb[_0x3c6fc4(0x20c)](_0x4d88a2,_0xe32717),_0xe32717[_0x3c6fc4(0x1dd)](_0x1fbc4f['throttleTime']((_0x4ce1d4=this[_0x3c6fc4(0x208)]['getConfig'](_0x4b9604))!=null?_0x4ce1d4:_0x4e8a3f,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x54f501=>{const _0x3079e7=_0x3c6fc4;this[_0x3079e7(0x21d)][_0x3079e7(0x1ff)]({'eventID':_0x783a72[_0x3079e7(0x17b)][_0x3079e7(0x215)],'data':{'unitID':this[_0x3079e7(0x24b)],'operations':{[_0x54f501['id']]:{'id':_0x54f501['id'],'params':JSON[_0x3079e7(0x218)](_0x54f501[_0x3079e7(0x181)])}}}},this[_0x3079e7(0x24b)]);})),_0xe32717[_0x3c6fc4(0x1d1)](_0x812a9e);})),this[_0x463a20(0x1b0)][_0x463a20(0x1a4)](this[_0x463a20(0x24b)])['forEach'](_0x9f9535=>this[_0x463a20(0x21d)][_0x463a20(0x1ff)]({'eventID':_0x783a72['CollaborationEvent'][_0x463a20(0x215)],'data':{'unitID':this[_0x463a20(0x24b)],'operations':{[_0x9f9535['id']]:{'id':_0x9f9535['id'],'params':JSON[_0x463a20(0x218)](_0x9f9535[_0x463a20(0x181)])}}}},this[_0x463a20(0x24b)]));}['_stopPresenting'](){const _0x32deb3=_0x5eb223;var _0x447e1b;this[_0x32deb3(0x251)][_0x32deb3(0x1d1)](_0x32deb3(0x17c)),(_0x447e1b=this['_commandDisposable'])==null||_0x447e1b[_0x32deb3(0x246)](),this[_0x32deb3(0x1c3)]=null;}[_0x5eb223(0x24a)](){const _0xd68181=_0x5eb223;var _0x25be54;(_0x25be54=this[_0xd68181(0x1c3)])==null||_0x25be54['dispose'](),this[_0xd68181(0x251)][_0xd68181(0x1d1)](_0xd68181(0x23f));}['_beIdle'](){const _0x42abe3=_0x5eb223;var _0x15e5f5;this['_status$'][_0x42abe3(0x1d1)](_0x42abe3(0x17c)),(_0x15e5f5=this['_commandDisposable'])==null||_0x15e5f5[_0x42abe3(0x246)](),this[_0x42abe3(0x1c3)]=null;}[_0x5eb223(0x22a)](){const _0x5531a8=_0x5eb223;var _0x26c7c8;this[_0x5531a8(0x251)][_0x5531a8(0x1d1)](_0x5531a8(0x1a2)),(_0x26c7c8=this['_commandDisposable'])==null||_0x26c7c8[_0x5531a8(0x246)]();}[_0x5eb223(0x1da)](_0x4b248a){const _0x48c5d4=_0x5eb223;if(['presenting',_0x48c5d4(0x1a2),_0x48c5d4(0x173)][_0x48c5d4(0x18c)](this[_0x48c5d4(0x230)])||!_0x4b248a['data']['presenter']||_0x4b248a[_0x48c5d4(0x242)][_0x48c5d4(0x1b2)]===this[_0x48c5d4(0x21d)]['getMemberID']())return;this[_0x48c5d4(0x230)]==='idle'&&this[_0x48c5d4(0x24a)]();const _0x40448f=_0x4b248a[_0x48c5d4(0x242)][_0x48c5d4(0x1f2)];Object[_0x48c5d4(0x20a)](_0x40448f)[_0x48c5d4(0x1f0)](_0x527575=>{const _0x3a4b80=_0x48c5d4;this['_commandService'][_0x3a4b80(0x21e)](_0x527575['id'],_0x527575[_0x3a4b80(0x181)]?JSON['parse'](_0x527575[_0x3a4b80(0x181)]):null,{'fromCollab':!0x0});});}[_0x5eb223(0x1f8)](){const _0x731ee2=_0x5eb223;var _0x3dea1e;this['_status$'][_0x731ee2(0x1d1)](_0x731ee2(0x173)),(_0x3dea1e=this['_commandDisposable'])==null||_0x3dea1e[_0x731ee2(0x246)]();}[_0x5eb223(0x198)](){const _0x9aee88=_0x5eb223;this['_status$'][_0x9aee88(0x1d1)]('idle'),this[_0x9aee88(0x212)]();}},_0x14c64b['LiveShareCoordinator']=_0x1cfc5e([_0x25ca2a(0x2,_0x3b08ea[_0x5eb223(0x1c1)]),_0x25ca2a(0x3,_0x3b08ea['Inject'](_0x17df7c)),_0x25ca2a(0x4,_0x3b08ea[_0x5eb223(0x195)])],_0x14c64b['LiveShareCoordinator']);function _0x222f8b(){const _0x41b199=_0x5eb223,_0x5b8602=_0x38aee4[_0x41b199(0x236)](_0x14c64b[_0x41b199(0x1fa)]),_0x6d19e=_0x38aee4[_0x41b199(0x236)](_0x3b08ea[_0x41b199(0x172)]),_0x441f3b=_0x38aee4['useObservable'](()=>_0x6d19e[_0x41b199(0x202)](_0x3b08ea[_0x41b199(0x1ee)][_0x41b199(0x1bd)]),void 0x0,!0x1,[]),[_0x211a3e,_0x363399]=_0x1f34a2[_0x41b199(0x1f9)](null),[_0x2be25d,_0x9d6322]=_0x1f34a2[_0x41b199(0x1f9)](_0x43b619['IDLE']),_0x2ee513=_0x1f34a2[_0x41b199(0x227)](null);return _0x1f34a2['useEffect'](()=>(_0x441f3b&&_0x5b8602[_0x41b199(0x224)](_0x441f3b[_0x41b199(0x1ea)]())[_0x41b199(0x184)](_0x2a5852=>{const _0x595bec=_0x41b199;_0x363399(_0x2a5852),_0x2ee513[_0x595bec(0x259)]=_0x2a5852[_0x595bec(0x1b7)][_0x595bec(0x18d)](_0x225aa4=>{_0x9d6322(_0x225aa4);});}),()=>{const _0x129c9f=_0x41b199;var _0x44751b;(_0x44751b=_0x2ee513['current'])==null||_0x44751b[_0x129c9f(0x1a0)](),_0x2ee513[_0x129c9f(0x259)]=null;}),[_0x441f3b,_0x5b8602]),_0x211a3e?_0x7a8eef['jsx'](_0x52db5b[_0x41b199(0x1aa)],{'align':_0x41b199(0x189),'disabled':_0x2be25d===_0x43b619[_0x41b199(0x22b)],'className':_0x41b199(0x21b),'overlay':_0x7a8eef[_0x41b199(0x1f1)](_0x2f49e5,{'status':_0x2be25d,'coordinator':_0x211a3e}),'children':_0x7a8eef[_0x41b199(0x1f1)](_0x41b199(0x22d),{'className':_0x52db5b['clsx'](_0x41b199(0x234),{'univer-cursor-not-allowed':_0x2be25d===_0x43b619['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2be25d!==_0x43b619[_0x41b199(0x22b)]}),'type':'button','children':_0x7a8eef[_0x41b199(0x1f1)](_0x1f8833,{'className':'univer-size-4'})})}):null;}function _0x2f49e5(_0x38cec3){const _0x311d1b=_0x5eb223,{status:_0x3854ab,coordinator:_0x178f6f}=_0x38cec3;switch(_0x3854ab){case _0x43b619[_0x311d1b(0x1ce)]:return _0x7a8eef[_0x311d1b(0x1f1)](_0x536f7f,{'coordinator':_0x178f6f});case _0x43b619[_0x311d1b(0x231)]:return _0x7a8eef[_0x311d1b(0x1f1)](_0x108732,{'coordinator':_0x178f6f});case _0x43b619[_0x311d1b(0x1d0)]:return _0x7a8eef[_0x311d1b(0x1f1)](_0x509845,{'coordinator':_0x178f6f});case _0x43b619[_0x311d1b(0x22b)]:return _0x7a8eef[_0x311d1b(0x1f1)](_0x3e48c9,{});case _0x43b619[_0x311d1b(0x1e7)]:return _0x7a8eef[_0x311d1b(0x1f1)](_0x18d8ad,{'coordinator':_0x178f6f});default:return null;}}function _0x536f7f(_0x224566){const _0x5f35b0=_0x5eb223,{coordinator:_0x4d1370}=_0x224566;return _0x7a8eef[_0x5f35b0(0x1be)](_0x7a8eef[_0x5f35b0(0x199)],{'children':[_0x7a8eef[_0x5f35b0(0x1f1)](_0x5f35b0(0x16d),{'className':_0x5f35b0(0x223),'children':_0x5f35b0(0x245)}),_0x7a8eef[_0x5f35b0(0x1f1)](_0x52db5b['Button'],{'onClick':()=>_0x4d1370[_0x5f35b0(0x1b5)](),'children':_0x5f35b0(0x220)})]});}function _0x108732(_0x57be52){const _0x1fb9ef=_0x5eb223,{coordinator:_0xfa032}=_0x57be52;return _0x7a8eef['jsxs'](_0x7a8eef[_0x1fb9ef(0x199)],{'children':[_0x7a8eef[_0x1fb9ef(0x1f1)](_0x1fb9ef(0x16d),{'className':_0x1fb9ef(0x223),'children':_0x1fb9ef(0x247)}),_0x7a8eef[_0x1fb9ef(0x1f1)](_0x52db5b[_0x1fb9ef(0x1c5)],{'onClick':()=>_0xfa032[_0x1fb9ef(0x25a)](),'children':_0x1fb9ef(0x1a5)})]});}function _0x509845(_0x323bce){const _0x586118=_0x5eb223,{coordinator:_0x1dcb1e}=_0x323bce;return _0x7a8eef['jsxs'](_0x7a8eef[_0x586118(0x199)],{'children':[_0x7a8eef[_0x586118(0x1f1)](_0x586118(0x16d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x586118(0x1c0)}),_0x7a8eef[_0x586118(0x1f1)](_0x52db5b[_0x586118(0x1c5)],{'variant':_0x586118(0x1e1),'onClick':()=>_0x1dcb1e[_0x586118(0x182)](),'children':_0x586118(0x174)})]});}function _0x18d8ad(_0x185021){const _0x1c4b9c=_0x5eb223,{coordinator:_0x33866d}=_0x185021;return _0x7a8eef[_0x1c4b9c(0x1be)](_0x7a8eef[_0x1c4b9c(0x199)],{'children':[_0x7a8eef['jsx'](_0x1c4b9c(0x16d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1c4b9c(0x257)}),_0x7a8eef[_0x1c4b9c(0x1f1)](_0x52db5b[_0x1c4b9c(0x1c5)],{'variant':'default','onClick':()=>_0x33866d[_0x1c4b9c(0x170)](),'children':'Stop\x20presenting'})]});}function _0x3e48c9(){const _0x2eeb7a=_0x5eb223;return _0x7a8eef[_0x2eeb7a(0x1f1)](_0x7a8eef['Fragment'],{'children':_0x2eeb7a(0x23c)});}var _0x18e130=Object[_0x5eb223(0x19f)],_0x1f4784=(_0x5c180c,_0x464a43,_0x3bbe3d,_0x3b5033)=>{const _0x6d684b=_0x5eb223;for(var _0x2e4df6=_0x3b5033>0x1?void 0x0:_0x3b5033?_0x18e130(_0x464a43,_0x3bbe3d):_0x464a43,_0x1a6165=_0x5c180c[_0x6d684b(0x183)]-0x1,_0x11d446;_0x1a6165>=0x0;_0x1a6165--)(_0x11d446=_0x5c180c[_0x1a6165])&&(_0x2e4df6=_0x11d446(_0x2e4df6)||_0x2e4df6);return _0x2e4df6;},_0x515fdf=(_0x3045af,_0x2acbe4)=>(_0x56e5f1,_0x49d59d)=>_0x2acbe4(_0x56e5f1,_0x49d59d,_0x3045af);_0x14c64b['DesktopLiveShareController']=class extends _0x3b08ea[_0x5eb223(0x1a6)]{constructor(_0x211729,_0x28c858){const _0x5450c6=_0x5eb223;super(),this[_0x5450c6(0x19c)]=_0x211729,this['_uiPartsService']=_0x28c858,this[_0x5450c6(0x1e8)]();}[_0x5eb223(0x1e8)](){const _0x581424=_0x5eb223;this[_0x581424(0x24e)](this['_uiPartsService'][_0x581424(0x1ae)](_0x38aee4[_0x581424(0x20f)][_0x581424(0x23b)],()=>_0x38aee4[_0x581424(0x22e)](_0x222f8b,this[_0x581424(0x19c)])));}},_0x14c64b['DesktopLiveShareController']=_0x1f4784([_0x515fdf(0x0,_0x3b08ea[_0x5eb223(0x1c4)](_0x3b08ea[_0x5eb223(0x229)])),_0x515fdf(0x1,_0x38aee4['IUIPartsService'])],_0x14c64b[_0x5eb223(0x18f)]);const _0x29b329=_0x5eb223(0x1e6),_0x8b2a92={};var _0x86c6fa=Object[_0x5eb223(0x19f)],_0x1bf6a5=(_0x54aac9,_0x3a6d9b,_0xb4298e,_0x4a1cbf)=>{const _0x2b8e23=_0x5eb223;for(var _0x425472=_0x4a1cbf>0x1?void 0x0:_0x4a1cbf?_0x86c6fa(_0x3a6d9b,_0xb4298e):_0x3a6d9b,_0x57ddcb=_0x54aac9[_0x2b8e23(0x183)]-0x1,_0x557d2c;_0x57ddcb>=0x0;_0x57ddcb--)(_0x557d2c=_0x54aac9[_0x57ddcb])&&(_0x425472=_0x557d2c(_0x425472)||_0x425472);return _0x425472;},_0x2abed2=(_0x2cebb0,_0x7f8287)=>(_0x6de0d1,_0x13db94)=>_0x7f8287(_0x6de0d1,_0x13db94,_0x2cebb0);let _0x201342=class extends _0x3b08ea['Disposable']{constructor(_0xb7e199){const _0x2aaa32=_0x5eb223;super(),this['_liveShareService']=_0xb7e199,this[_0x2aaa32(0x1e2)]();}['_init'](){const _0x559dfd=_0x5eb223;[_0x192478['SetZoomRatioOperation']['id'],_0x192478['SetScrollOperation']['id'],_0x251183[_0x559dfd(0x24d)]['id']][_0x559dfd(0x1f0)](_0x1298f3=>{const _0x3ab413=_0x559dfd;this[_0x3ab413(0x24e)](this[_0x3ab413(0x1b0)]['registerSharedOperation'](_0x1298f3));});}};_0x201342=_0x1bf6a5([_0x2abed2(0x0,_0x3b08ea[_0x5eb223(0x1c4)](_0x17df7c))],_0x201342);var _0x5e864e=Object['defineProperty'],_0x9ebeef=Object[_0x5eb223(0x19f)],_0x59ae8f=(_0x3da65f,_0x43e3e6,_0x4cbd48)=>_0x43e3e6 in _0x3da65f?_0x5e864e(_0x3da65f,_0x43e3e6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cbd48}):_0x3da65f[_0x43e3e6]=_0x4cbd48,_0xc7c0ed=(_0x43922a,_0x3ed0d2,_0x5ca36a,_0x30e9f0)=>{const _0x2b86e2=_0x5eb223;for(var _0x5c2dc4=_0x30e9f0>0x1?void 0x0:_0x30e9f0?_0x9ebeef(_0x3ed0d2,_0x5ca36a):_0x3ed0d2,_0x56083a=_0x43922a[_0x2b86e2(0x183)]-0x1,_0x29d316;_0x56083a>=0x0;_0x56083a--)(_0x29d316=_0x43922a[_0x56083a])&&(_0x5c2dc4=_0x29d316(_0x5c2dc4)||_0x5c2dc4);return _0x5c2dc4;},_0x5d3601=(_0x3ef1e9,_0x1e9747)=>(_0x19e167,_0x2c8f9b)=>_0x1e9747(_0x19e167,_0x2c8f9b,_0x3ef1e9),_0x41a621=(_0x25fa07,_0x1e979d,_0x9e25b6)=>_0x59ae8f(_0x25fa07,typeof _0x1e979d!=_0x5eb223(0x205)?_0x1e979d+'':_0x1e979d,_0x9e25b6);const _0xd872ed=_0x5eb223(0x256);_0x14c64b[_0x5eb223(0x196)]=class extends _0x3b08ea[_0x5eb223(0x241)]{constructor(_0x50066d=_0x8b2a92,_0x5b10b6,_0x86d5c5){const _0x2ca827=_0x5eb223;super(),this[_0x2ca827(0x19d)]=_0x50066d,this[_0x2ca827(0x19c)]=_0x5b10b6,this[_0x2ca827(0x208)]=_0x86d5c5;const {..._0x2148f9}=_0x3b08ea['merge']({},_0x8b2a92,this[_0x2ca827(0x19d)]);this['_configService']['setConfig'](_0x29b329,_0x2148f9);}[_0x5eb223(0x248)](){const _0x2a9366=_0x5eb223;_0x3b08ea[_0x2a9366(0x23e)](this[_0x2a9366(0x19c)],_0x3b08ea[_0x2a9366(0x1bc)]([[_0x17df7c],[_0x14c64b[_0x2a9366(0x1fa)]],[_0x201342],[_0x14c64b['DesktopLiveShareController']]],this[_0x2a9366(0x19d)]['override'])),_0x3b08ea[_0x2a9366(0x235)](this['_injector'],[[_0x201342]]);}[_0x5eb223(0x20e)](){const _0x5af82a=_0x5eb223;_0x3b08ea[_0x5af82a(0x235)](this[_0x5af82a(0x19c)],[[_0x14c64b[_0x5af82a(0x18f)]]]);}},_0x41a621(_0x14c64b[_0x5eb223(0x196)],_0x5eb223(0x239),_0x3b08ea[_0x5eb223(0x1ee)][_0x5eb223(0x1c9)]),_0x41a621(_0x14c64b['UniverLiveSharePlugin'],_0x5eb223(0x213),_0xd872ed),_0x14c64b[_0x5eb223(0x196)]=_0xc7c0ed([_0x3b08ea[_0x5eb223(0x20d)](_0x40969f[_0x5eb223(0x238)]),_0x5d3601(0x1,_0x3b08ea[_0x5eb223(0x1c4)](_0x3b08ea[_0x5eb223(0x229)])),_0x5d3601(0x2,_0x3b08ea['IConfigService'])],_0x14c64b[_0x5eb223(0x196)]),_0x14c64b[_0x5eb223(0x17d)]=_0x222f8b,_0x14c64b[_0x5eb223(0x1c8)]=_0x17df7c,_0x14c64b['LiveShareStatus']=_0x43b619,Object['defineProperty'](_0x14c64b,Symbol[_0x5eb223(0x21c)],{'value':_0x5eb223(0x1d9)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.15.3-insiders.20260131-b9b8805",
3
+ "version": "0.15.3-insiders.20260131-cbd5fac",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,13 +57,13 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.1.1",
60
- "@univerjs-pro/collaboration": "0.15.3-insiders.20260131-b9b8805",
61
- "@univerjs-pro/collaboration-client": "0.15.3-insiders.20260131-b9b8805",
62
- "@univerjs/core": "0.15.3-insiders.20260131-b9b8805",
63
- "@univerjs/sheets": "0.15.3-insiders.20260131-b9b8805",
64
- "@univerjs/design": "0.15.3-insiders.20260131-b9b8805",
65
- "@univerjs/ui": "0.15.3-insiders.20260131-b9b8805",
66
- "@univerjs/sheets-ui": "0.15.3-insiders.20260131-b9b8805"
60
+ "@univerjs-pro/collaboration-client": "0.15.3-insiders.20260131-cbd5fac",
61
+ "@univerjs-pro/collaboration": "0.15.3-insiders.20260131-cbd5fac",
62
+ "@univerjs/design": "0.15.3-insiders.20260131-cbd5fac",
63
+ "@univerjs/sheets": "0.15.3-insiders.20260131-cbd5fac",
64
+ "@univerjs/sheets-ui": "0.15.3-insiders.20260131-cbd5fac",
65
+ "@univerjs/ui": "0.15.3-insiders.20260131-cbd5fac",
66
+ "@univerjs/core": "0.15.3-insiders.20260131-cbd5fac"
67
67
  },
68
68
  "devDependencies": {
69
69
  "postcss": "^8.5.6",
@@ -73,8 +73,8 @@
73
73
  "typescript": "^5.9.3",
74
74
  "vite": "^7.3.1",
75
75
  "vitest": "^4.0.18",
76
- "@univerjs-infra/shared": "0.15.3",
77
- "@univerjs/protocol": "0.1.48"
76
+ "@univerjs/protocol": "0.1.48",
77
+ "@univerjs-infra/shared": "0.15.3"
78
78
  },
79
79
  "scripts": {
80
80
  "test": "vitest run",