@univerjs-pro/live-share 0.10.3 → 0.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x1dc8fd=_0x91bf;(function(_0x24c7ed,_0x307894){var _0x36a35c=_0x91bf,_0x36dc14=_0x24c7ed();while(!![]){try{var _0x279b60=parseInt(_0x36a35c(0x21d))/0x1*(parseInt(_0x36a35c(0x215))/0x2)+-parseInt(_0x36a35c(0x244))/0x3*(parseInt(_0x36a35c(0x222))/0x4)+parseInt(_0x36a35c(0x1b9))/0x5*(parseInt(_0x36a35c(0x224))/0x6)+-parseInt(_0x36a35c(0x1a2))/0x7+-parseInt(_0x36a35c(0x242))/0x8+parseInt(_0x36a35c(0x1af))/0x9+parseInt(_0x36a35c(0x1b5))/0xa;if(_0x279b60===_0x307894)break;else _0x36dc14['push'](_0x36dc14['shift']());}catch(_0x4f4d2d){_0x36dc14['push'](_0x36dc14['shift']());}}}(_0x476b,0xe2f9b));var U=Object[_0x1dc8fd(0x229)],F=(_0xad69b6,_0x55cdfc,_0x309934)=>_0x55cdfc in _0xad69b6?U(_0xad69b6,_0x55cdfc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x309934}):_0xad69b6[_0x55cdfc]=_0x309934,v=(_0x2af697,_0x13a64b,_0x546e9e)=>F(_0x2af697,typeof _0x13a64b!=_0x1dc8fd(0x1cd)?_0x13a64b+'':_0x13a64b,_0x546e9e);Object[_0x1dc8fd(0x229)](exports,Symbol[_0x1dc8fd(0x1f9)],{'value':_0x1dc8fd(0x204)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x5595ef=_0x1dc8fd;return u=Object[_0x5595ef(0x1db)]||function(_0x277e41){var _0x521ecb=_0x5595ef;for(var _0x5b0e39,_0x5535f4=0x1,_0x16a83c=arguments[_0x521ecb(0x25b)];_0x5535f4<_0x16a83c;_0x5535f4++){_0x5b0e39=arguments[_0x5535f4];for(var _0x5d760e in _0x5b0e39)Object[_0x521ecb(0x20c)][_0x521ecb(0x274)]['call'](_0x5b0e39,_0x5d760e)&&(_0x277e41[_0x5d760e]=_0x5b0e39[_0x5d760e]);}return _0x277e41;},u[_0x5595ef(0x266)](this,arguments);},$=function(_0x487752,_0x4c5305){var _0x521f4a=_0x1dc8fd,_0x9bc4db={};for(var _0x42eca9 in _0x487752)Object['prototype'][_0x521f4a(0x274)]['call'](_0x487752,_0x42eca9)&&_0x4c5305[_0x521f4a(0x26f)](_0x42eca9)<0x0&&(_0x9bc4db[_0x42eca9]=_0x487752[_0x42eca9]);if(_0x487752!=null&&typeof Object[_0x521f4a(0x279)]==_0x521f4a(0x238)){for(var _0x39f4e6=0x0,_0x42eca9=Object[_0x521f4a(0x279)](_0x487752);_0x39f4e6<_0x42eca9['length'];_0x39f4e6++)_0x4c5305[_0x521f4a(0x26f)](_0x42eca9[_0x39f4e6])<0x0&&Object[_0x521f4a(0x20c)][_0x521f4a(0x206)][_0x521f4a(0x1f3)](_0x487752,_0x42eca9[_0x39f4e6])&&(_0x9bc4db[_0x42eca9[_0x39f4e6]]=_0x487752[_0x42eca9[_0x39f4e6]]);}return _0x9bc4db;},j=f[_0x1dc8fd(0x269)](function(_0x22d292,_0x1108d6){var _0x8dc45b=_0x1dc8fd,_0x1b26ab=_0x22d292[_0x8dc45b(0x223)],_0x569ed9=_0x22d292['id'],_0x5721e1=_0x22d292['className'],_0x1cea9f=_0x22d292[_0x8dc45b(0x1a1)],_0x75554e=$(_0x22d292,[_0x8dc45b(0x223),'id',_0x8dc45b(0x1c7),_0x8dc45b(0x1a1)]),_0xcc7650=_0x8dc45b(0x25e)[_0x8dc45b(0x1d9)](_0x569ed9,'\x20')[_0x8dc45b(0x1d9)](_0x5721e1||'')[_0x8dc45b(0x1ee)](),_0x31b9a6=f[_0x8dc45b(0x259)]('_'['concat'](k()));return y(_0x1b26ab,''[_0x8dc45b(0x1d9)](_0x569ed9),{'defIds':_0x1b26ab[_0x8dc45b(0x227)],'idSuffix':_0x31b9a6[_0x8dc45b(0x235)]},u({'ref':_0x1108d6,'className':_0xcc7650},_0x75554e),_0x1cea9f);});function y(_0x5ca533,_0x3e8dcc,_0x5ed15b,_0x14e970,_0x2a69f1){var _0x2f34e4=_0x1dc8fd;return f[_0x2f34e4(0x205)](_0x5ca533['tag'],u(u({'key':_0x3e8dcc},H(_0x5ca533,_0x5ed15b,_0x2a69f1)),_0x14e970),(V(_0x5ca533,_0x5ed15b)['children']||[])[_0x2f34e4(0x1df)](function(_0x1594ca,_0x1af8df){var _0x4a3861=_0x2f34e4;return y(_0x1594ca,''[_0x4a3861(0x1d9)](_0x3e8dcc,'-')['concat'](_0x5ca533[_0x4a3861(0x24b)],'-')[_0x4a3861(0x1d9)](_0x1af8df),_0x5ed15b,void 0x0,_0x2a69f1);}));}function H(_0x590f8e,_0x31f57f,_0x5e3172){var _0x15d204=_0x1dc8fd,_0x54dc37=u({},_0x590f8e[_0x15d204(0x1e1)]);_0x5e3172!=null&&_0x5e3172[_0x15d204(0x1c9)]&&_0x54dc37['fill']==='colorChannel1'&&(_0x54dc37[_0x15d204(0x1a3)]=_0x5e3172[_0x15d204(0x1c9)]),_0x590f8e[_0x15d204(0x24b)]===_0x15d204(0x1f7)&&_0x54dc37['id']&&(_0x54dc37['id']=_0x54dc37['id']+_0x31f57f[_0x15d204(0x276)]),Object[_0x15d204(0x1e5)](_0x54dc37)[_0x15d204(0x1d6)](function(_0x36a688){var _0x415a28=_0x15d204,_0x3d8883=_0x36a688[0x0],_0x571c4b=_0x36a688[0x1];_0x3d8883===_0x415a28(0x1f7)&&typeof _0x571c4b==_0x415a28(0x21f)&&(_0x54dc37[_0x3d8883]=_0x571c4b['replace'](/url\(#(.*)\)/,_0x415a28(0x1ab)[_0x415a28(0x1d9)](_0x31f57f[_0x415a28(0x276)],')')));});var _0xf082dd=_0x31f57f[_0x15d204(0x227)];return!_0xf082dd||_0xf082dd[_0x15d204(0x25b)]===0x0||(_0x590f8e['tag']===_0x15d204(0x1f4)&&_0x54dc37['xlink:href']&&(_0x54dc37[_0x15d204(0x1a9)]=_0x54dc37[_0x15d204(0x1a9)]+_0x31f57f[_0x15d204(0x276)]),Object[_0x15d204(0x1e5)](_0x54dc37)[_0x15d204(0x1d6)](function(_0x341bbf){var _0x267172=_0x15d204,_0x4399a6=_0x341bbf[0x0],_0x2fe15f=_0x341bbf[0x1];typeof _0x2fe15f==_0x267172(0x21f)&&(_0x54dc37[_0x4399a6]=_0x2fe15f[_0x267172(0x24c)](/url\(#(.*)\)/,'url(#$1'[_0x267172(0x1d9)](_0x31f57f[_0x267172(0x276)],')')));})),_0x54dc37;}function V(_0x4cfe0c,_0x29ad86){var _0xe1c69a=_0x1dc8fd,_0x255b32,_0x35d679=_0x29ad86[_0xe1c69a(0x227)];return!_0x35d679||_0x35d679['length']===0x0?_0x4cfe0c:_0x4cfe0c[_0xe1c69a(0x24b)]===_0xe1c69a(0x1b3)&&(!((_0x255b32=_0x4cfe0c[_0xe1c69a(0x1c6)])===null||_0x255b32===void 0x0)&&_0x255b32['length'])?u(u({},_0x4cfe0c),{'children':_0x4cfe0c[_0xe1c69a(0x1c6)][_0xe1c69a(0x1df)](function(_0x2f398c){var _0x8a1f45=_0xe1c69a;return typeof _0x2f398c[_0x8a1f45(0x1e1)]['id']==_0x8a1f45(0x21f)&&_0x35d679&&_0x35d679[_0x8a1f45(0x271)](_0x2f398c[_0x8a1f45(0x1e1)]['id'])?u(u({},_0x2f398c),{'attrs':u(u({},_0x2f398c[_0x8a1f45(0x1e1)]),{'id':_0x2f398c[_0x8a1f45(0x1e1)]['id']+_0x29ad86[_0x8a1f45(0x276)]})}):_0x2f398c;})}):_0x4cfe0c;}function k(){var _0x2c2a20=_0x1dc8fd;return Math[_0x2c2a20(0x21b)]()[_0x2c2a20(0x212)](0x24)[_0x2c2a20(0x1bb)](0x2,0x8);}j[_0x1dc8fd(0x1d8)]=_0x1dc8fd(0x267);var M={'tag':'svg','attrs':{'xmlns':_0x1dc8fd(0x23a),'fill':'none','viewBox':_0x1dc8fd(0x1d7),'width':_0x1dc8fd(0x1e3),'height':_0x1dc8fd(0x1e3)},'children':[{'tag':_0x1dc8fd(0x27c),'attrs':{'fill':_0x1dc8fd(0x1ad),'d':_0x1dc8fd(0x1bc)}},{'tag':'path','attrs':{'fill':_0x1dc8fd(0x1ad),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':'evenodd'}}]},P=f[_0x1dc8fd(0x269)](function(_0x4fe4bd,_0x21f876){var _0xd60e81=_0x1dc8fd;return f['createElement'](j,Object['assign']({},_0x4fe4bd,{'id':_0xd60e81(0x260),'ref':_0x21f876,'icon':M}));});P['displayName']='LiveShareIcon';class O extends o[_0x1dc8fd(0x27b)]{constructor(){var _0x2dd87e=_0x1dc8fd;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x2dd87e(0x23f),new Set());}[_0x1dc8fd(0x22a)](_0xde8415){var _0x4f0da1=_0x1dc8fd;return this[_0x4f0da1(0x20e)][_0x4f0da1(0x201)](_0xde8415),o[_0x4f0da1(0x209)](()=>this[_0x4f0da1(0x20e)][_0x4f0da1(0x213)](_0xde8415));}[_0x1dc8fd(0x256)](_0x3d4b34){var _0xe3cd73=_0x1dc8fd;return this[_0xe3cd73(0x23f)]['add'](_0x3d4b34),o[_0xe3cd73(0x209)](()=>this[_0xe3cd73(0x23f)][_0xe3cd73(0x213)](_0x3d4b34));}[_0x1dc8fd(0x218)](_0x15b233){var _0x10ed4f=_0x1dc8fd;return this[_0x10ed4f(0x20e)][_0x10ed4f(0x1d3)](_0x15b233);}[_0x1dc8fd(0x24d)](_0x358a31){var _0x1bc61f=_0x1dc8fd;return Array['from'](this[_0x1bc61f(0x23f)])[_0x1bc61f(0x1df)](_0x34a7d6=>_0x34a7d6(_0x358a31));}}var q=Object[_0x1dc8fd(0x234)],R=(_0x3eed57,_0xa11179,_0x4540b9,_0x304a51)=>{var _0x4cc997=_0x1dc8fd;for(var _0x109b5c=_0x304a51>0x1?void 0x0:_0x304a51?q(_0xa11179,_0x4540b9):_0xa11179,_0xb8a1ac=_0x3eed57[_0x4cc997(0x25b)]-0x1,_0x38bb76;_0xb8a1ac>=0x0;_0xb8a1ac--)(_0x38bb76=_0x3eed57[_0xb8a1ac])&&(_0x109b5c=_0x38bb76(_0x109b5c)||_0x109b5c);return _0x109b5c;},S=(_0x4400f9,_0xd1a335)=>(_0x56c968,_0x257f50)=>_0xd1a335(_0x56c968,_0x257f50,_0x4400f9);exports['LiveShareController']=class extends o[_0x1dc8fd(0x249)]{constructor(_0x44a95e,_0x38e28f,_0x4a2d5c){var _0x56a224=_0x1dc8fd;super(),v(this,_0x56a224(0x214),new Map()),(this[_0x56a224(0x27e)]=_0x44a95e,this[_0x56a224(0x26c)]=_0x38e28f,this[_0x56a224(0x24a)]=_0x4a2d5c,this[_0x56a224(0x248)]());}async[_0x1dc8fd(0x210)](_0x5a3af5){var _0x4917d5=_0x1dc8fd;return this[_0x4917d5(0x214)][_0x4917d5(0x1d3)](_0x5a3af5)||await this[_0x4917d5(0x245)](_0x5a3af5),this[_0x4917d5(0x214)]['get'](_0x5a3af5);}[_0x1dc8fd(0x248)](){var _0x5bc9cf=_0x1dc8fd;this[_0x5bc9cf(0x27e)]['getTypeOfUnitAdded$'](o[_0x5bc9cf(0x268)][_0x5bc9cf(0x216)])[_0x5bc9cf(0x262)](b['takeUntil'](this[_0x5bc9cf(0x1dd)]))[_0x5bc9cf(0x1be)](async _0x5b2b92=>{var _0x57b6f3=_0x5bc9cf;const _0x8e9b0=_0x5b2b92['getUnitId']();this[_0x57b6f3(0x214)]['has'](_0x8e9b0)||this[_0x57b6f3(0x245)](_0x8e9b0);}),this[_0x5bc9cf(0x27e)][_0x5bc9cf(0x280)](o[_0x5bc9cf(0x268)][_0x5bc9cf(0x216)])[_0x5bc9cf(0x262)](b['takeUntil'](this['dispose$']))[_0x5bc9cf(0x1be)](_0x1ee982=>{var _0x5c1a89=_0x5bc9cf;const _0xd15f4a=_0x1ee982[_0x5c1a89(0x1b7)](),_0x292818=this[_0x5c1a89(0x214)][_0x5c1a89(0x23d)](_0xd15f4a);_0x292818==null||_0x292818[_0x5c1a89(0x1b4)]();});}async[_0x1dc8fd(0x245)](_0x266ca6){var _0x26d017=_0x1dc8fd;const _0xd1b2eb=await this['_collabSessionService'][_0x26d017(0x273)](_0x266ca6),_0x5023e0=this[_0x26d017(0x26c)][_0x26d017(0x1e9)](exports[_0x26d017(0x20d)],_0x266ca6,_0xd1b2eb);return _0x5023e0[_0x26d017(0x22d)](),this[_0x26d017(0x214)][_0x26d017(0x252)](_0x266ca6,_0x5023e0),_0x5023e0;}},exports['LiveShareController']=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x1dc8fd(0x1e2)](o[_0x1dc8fd(0x275)])),S(0x2,o['Inject'](m[_0x1dc8fd(0x20f)]))],exports['LiveShareController']);var h=(_0x1e5afa=>(_0x1e5afa[_0x1dc8fd(0x208)]='offline',_0x1e5afa[_0x1dc8fd(0x22f)]='idle',_0x1e5afa[_0x1dc8fd(0x1ea)]='following',_0x1e5afa[_0x1dc8fd(0x26b)]=_0x1dc8fd(0x1d1),_0x1e5afa[_0x1dc8fd(0x200)]='presenting',_0x1e5afa))(h||{});const W=_0x1dc8fd(0x1fc),G=0xc8;exports[_0x1dc8fd(0x20d)]=class extends o[_0x1dc8fd(0x249)]{constructor(_0xf3344b,_0x4edfa1,_0x30c68b,_0x4007d3,_0xbe48a8){var _0x467cb3=_0x1dc8fd;super(),v(this,_0x467cb3(0x1a4),new w[(_0x467cb3(0x278))]('idle')),v(this,'status$',this['_status$'][_0x467cb3(0x250)]()),v(this,'_init',!0x1),v(this,_0x467cb3(0x1dc),null),v(this,_0x467cb3(0x25f),null),(this['_unitID']=_0xf3344b,this[_0x467cb3(0x255)]=_0x4edfa1,this[_0x467cb3(0x1f0)]=_0x30c68b,this[_0x467cb3(0x1de)]=_0x4007d3,this[_0x467cb3(0x23e)]=_0xbe48a8);}get[_0x1dc8fd(0x217)](){var _0x4b0841=_0x1dc8fd;return this[_0x4b0841(0x1a4)][_0x4b0841(0x257)]();}['dispose'](){var _0x33d247=_0x1dc8fd,_0x465c5a;(_0x465c5a=this[_0x33d247(0x1dc)])==null||_0x465c5a[_0x33d247(0x1b4)](),this[_0x33d247(0x1a4)][_0x33d247(0x232)]('idle'),this['_status$']['complete']();}[_0x1dc8fd(0x22d)](){var _0x359efc=_0x1dc8fd;this[_0x359efc(0x248)]||(this[_0x359efc(0x248)]=!0x0,this[_0x359efc(0x255)][_0x359efc(0x258)][_0x359efc(0x262)](b[_0x359efc(0x243)](this[_0x359efc(0x1dd)]))[_0x359efc(0x1be)](_0x374ae4=>{var _0x2cea2a=_0x359efc;switch(_0x374ae4){case m[_0x2cea2a(0x220)][_0x2cea2a(0x208)]:this[_0x2cea2a(0x219)]();break;case m[_0x2cea2a(0x220)]['ONLINE']:this[_0x2cea2a(0x21a)]();break;}}),this[_0x359efc(0x255)]['event$'][_0x359efc(0x262)](b[_0x359efc(0x243)](this[_0x359efc(0x1dd)]))['subscribe'](_0x102843=>{var _0x53867a=_0x359efc;const {eventID:_0x5a5708}=_0x102843;switch(_0x5a5708){case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x53867a(0x1c4)](_0x102843);break;case _[_0x53867a(0x1e8)][_0x53867a(0x1ca)]:this['_handleOperation'](_0x102843);break;case _[_0x53867a(0x1e8)][_0x53867a(0x239)]:this[_0x53867a(0x264)]();break;case _['CollaborationEvent'][_0x53867a(0x1bd)]:this['_handleNewChangeSets'](_0x102843);break;}}));}['tryStartPresenting'](){var _0x23eee8=_0x1dc8fd;this[_0x23eee8(0x255)][_0x23eee8(0x1ed)]({'eventID':_[_0x23eee8(0x1e8)][_0x23eee8(0x265)],'data':{'unitID':this[_0x23eee8(0x1d2)],'userID':this[_0x23eee8(0x255)][_0x23eee8(0x23b)]()}},this['_unitID']);}['stopPresenting'](){var _0x2c2b94=_0x1dc8fd;this[_0x2c2b94(0x217)]===_0x2c2b94(0x1c0)&&(this[_0x2c2b94(0x1a4)][_0x2c2b94(0x232)](_0x2c2b94(0x1f2)),this[_0x2c2b94(0x255)][_0x2c2b94(0x1ed)]({'eventID':_['CollaborationEvent'][_0x2c2b94(0x239)],'data':{'unitID':this[_0x2c2b94(0x1d2)]}},this[_0x2c2b94(0x1d2)]));}[_0x1dc8fd(0x1cc)](){var _0x2365df=_0x1dc8fd;this['_status']===_0x2365df(0x1d1)&&(this[_0x2365df(0x1a4)][_0x2365df(0x232)](_0x2365df(0x22e)),this['_startFollowing']());}[_0x1dc8fd(0x272)](){var _0x166182=_0x1dc8fd;this[_0x166182(0x217)]===_0x166182(0x22e)&&this[_0x166182(0x27d)]();}[_0x1dc8fd(0x1c4)](_0x3e922a){var _0x3fe51a=_0x1dc8fd;const {presenter:_0x3b982c}=_0x3e922a['data'],_0xbb68a2=this[_0x3fe51a(0x255)][_0x3fe51a(0x23b)]();this[_0x3fe51a(0x25f)]=_0x3b982c,_0x3b982c===_0xbb68a2?(this[_0x3fe51a(0x27d)](),this[_0x3fe51a(0x237)]()):this[_0x3fe51a(0x217)]!==_0x3fe51a(0x1d1)&&(this[_0x3fe51a(0x1f8)](),this[_0x3fe51a(0x24e)]());}[_0x1dc8fd(0x1f5)](){var _0x33225a=_0x1dc8fd;const _0x3eb168={'eventID':_[_0x33225a(0x1e8)][_0x33225a(0x1ff)]};this['_collabSession'][_0x33225a(0x1ed)](_0x3eb168,this['_unitID']);}[_0x1dc8fd(0x264)](){var _0x13d0bf=_0x1dc8fd;this[_0x13d0bf(0x25f)]=null,this[_0x13d0bf(0x217)]!=='presenting'&&this[_0x13d0bf(0x25a)]();}[_0x1dc8fd(0x1e7)](_0x43faf9){var _0x1f0c20=_0x1dc8fd;if(this[_0x1f0c20(0x217)]==='following'&&this[_0x1f0c20(0x25f)]===_0x43faf9[_0x1f0c20(0x1b2)][_0x1f0c20(0x253)]){const _0x97c634=_['parseProtocolChangeset'](_0x43faf9[_0x1f0c20(0x1b2)])[_0x1f0c20(0x1e0)][_0x1f0c20(0x1ac)]()['find'](_0x411480=>_0x411480['id']===C[_0x1f0c20(0x1fe)]['id']);if(_0x97c634){const _0x4ae950=_0x97c634[_0x1f0c20(0x1e6)][_0x1f0c20(0x1a8)],_0x2d909c=_0x97c634['params'][_0x1f0c20(0x1fa)]['id'];setTimeout(()=>{var _0x119547=_0x1f0c20;this[_0x119547(0x23e)]['executeCommand'](C[_0x119547(0x24f)]['id'],{'unitId':_0x4ae950,'subUnitId':_0x2d909c},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x26e9fe=_0x1dc8fd;this[_0x26e9fe(0x1a4)][_0x26e9fe(0x232)](_0x26e9fe(0x1c0));const _0x263c7d=new Map(),_0x183470=this[_0x26e9fe(0x1dc)]=new o[(_0x26e9fe(0x225))]();_0x183470[_0x26e9fe(0x201)](o[_0x26e9fe(0x209)](()=>{var _0x1d2f21=_0x26e9fe;_0x263c7d['forEach'](_0x562d7d=>_0x562d7d['complete']()),_0x263c7d[_0x1d2f21(0x203)]();})),_0x183470[_0x26e9fe(0x201)](this[_0x26e9fe(0x23e)][_0x26e9fe(0x228)](_0x5d4624=>{var _0x42d358=_0x26e9fe,_0x32e06f;if(_0x5d4624[_0x42d358(0x1eb)]!==o[_0x42d358(0x202)][_0x42d358(0x1f6)]||!this[_0x42d358(0x1de)][_0x42d358(0x218)](_0x5d4624['id']))return;const {id:_0x4ac668}=_0x5d4624;let _0x2143c5;_0x263c7d[_0x42d358(0x1d3)](_0x4ac668)?_0x2143c5=_0x263c7d['get'](_0x4ac668):(_0x2143c5=new w[(_0x42d358(0x236))](),_0x263c7d['set'](_0x4ac668,_0x2143c5),_0x2143c5['pipe'](b['throttleTime']((_0x32e06f=this[_0x42d358(0x1f0)]['getConfig'](W))!=null?_0x32e06f:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x42d358(0x1be)](_0x43d35d=>{var _0x4b2bc8=_0x42d358;this[_0x4b2bc8(0x255)][_0x4b2bc8(0x1ed)]({'eventID':_[_0x4b2bc8(0x1e8)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4b2bc8(0x1d2)],'operations':{[_0x43d35d['id']]:{'id':_0x43d35d['id'],'params':JSON[_0x4b2bc8(0x246)](_0x43d35d[_0x4b2bc8(0x1e6)])}}}},this[_0x4b2bc8(0x1d2)]);})),_0x2143c5[_0x42d358(0x232)](_0x5d4624);})),this[_0x26e9fe(0x1de)][_0x26e9fe(0x24d)](this[_0x26e9fe(0x1d2)])[_0x26e9fe(0x1d6)](_0x4bda3e=>this[_0x26e9fe(0x255)]['send']({'eventID':_[_0x26e9fe(0x1e8)][_0x26e9fe(0x1ca)],'data':{'unitID':this[_0x26e9fe(0x1d2)],'operations':{[_0x4bda3e['id']]:{'id':_0x4bda3e['id'],'params':JSON[_0x26e9fe(0x246)](_0x4bda3e[_0x26e9fe(0x1e6)])}}}},this[_0x26e9fe(0x1d2)]));}[_0x1dc8fd(0x1f8)](){var _0x4228d0=_0x1dc8fd,_0x580c6e;this[_0x4228d0(0x1a4)]['next'](_0x4228d0(0x1f2)),(_0x580c6e=this[_0x4228d0(0x1dc)])==null||_0x580c6e['dispose'](),this[_0x4228d0(0x1dc)]=null;}[_0x1dc8fd(0x24e)](){var _0x293ad1=_0x1dc8fd,_0x38baf9;(_0x38baf9=this[_0x293ad1(0x1dc)])==null||_0x38baf9['dispose'](),this[_0x293ad1(0x1a4)][_0x293ad1(0x232)](_0x293ad1(0x22e));}[_0x1dc8fd(0x25a)](){var _0xaa5e14=_0x1dc8fd,_0x2ac4ec;this['_status$'][_0xaa5e14(0x232)](_0xaa5e14(0x1f2)),(_0x2ac4ec=this[_0xaa5e14(0x1dc)])==null||_0x2ac4ec['dispose'](),this['_commandDisposable']=null;}[_0x1dc8fd(0x27d)](){var _0x54af52=_0x1dc8fd,_0x44e461;this[_0x54af52(0x1a4)]['next'](_0x54af52(0x1d1)),(_0x44e461=this['_commandDisposable'])==null||_0x44e461[_0x54af52(0x1b4)]();}[_0x1dc8fd(0x1c8)](_0x8b44af){var _0xa96bc7=_0x1dc8fd;if([_0xa96bc7(0x1c0),_0xa96bc7(0x1d1),_0xa96bc7(0x1aa)]['includes'](this['_status'])||!_0x8b44af['data']['presenter']||_0x8b44af['data']['presenter']===this[_0xa96bc7(0x255)][_0xa96bc7(0x23b)]())return;this['_status']==='idle'&&this[_0xa96bc7(0x24e)]();const _0x5a556f=_0x8b44af['data'][_0xa96bc7(0x1cf)];Object[_0xa96bc7(0x226)](_0x5a556f)[_0xa96bc7(0x1d6)](_0x48ba4d=>{var _0x262ec5=_0xa96bc7;this['_commandService'][_0x262ec5(0x1e4)](_0x48ba4d['id'],_0x48ba4d['params']?JSON['parse'](_0x48ba4d[_0x262ec5(0x1e6)]):null,{'fromCollab':!0x0});});}[_0x1dc8fd(0x219)](){var _0x12efd2=_0x1dc8fd,_0x5c042d;this['_status$'][_0x12efd2(0x232)](_0x12efd2(0x1aa)),(_0x5c042d=this[_0x12efd2(0x1dc)])==null||_0x5c042d['dispose']();}[_0x1dc8fd(0x21a)](){var _0x3c1de=_0x1dc8fd;this['_status$'][_0x3c1de(0x232)](_0x3c1de(0x1f2)),this[_0x3c1de(0x1f5)]();}},exports[_0x1dc8fd(0x20d)]=R([S(0x2,o[_0x1dc8fd(0x251)]),S(0x3,o[_0x1dc8fd(0x1e2)](O)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x1d0232=_0x1dc8fd;const _0x43e7a2=p[_0x1d0232(0x25d)](exports[_0x1d0232(0x207)]),_0x350f2f=p[_0x1d0232(0x25d)](o['IUniverInstanceService']),_0x3b4c9e=p['useObservable'](()=>_0x350f2f[_0x1d0232(0x1bf)](o['UniverInstanceType'][_0x1d0232(0x216)]),void 0x0,!0x1,[]),[_0x207eb4,_0xe0849d]=f[_0x1d0232(0x241)](null),[_0x2a1516,_0x238715]=f[_0x1d0232(0x241)](h['IDLE']),_0x47d3f4=f[_0x1d0232(0x259)](null);return f['useEffect'](()=>(_0x3b4c9e&&_0x43e7a2['getLiveShareCoordinator'](_0x3b4c9e[_0x1d0232(0x1b7)]())[_0x1d0232(0x26a)](_0x48ff36=>{var _0xf1c8dd=_0x1d0232;_0xe0849d(_0x48ff36),_0x47d3f4['current']=_0x48ff36[_0xf1c8dd(0x1fb)][_0xf1c8dd(0x1be)](_0x37d2b2=>{_0x238715(_0x37d2b2);});}),()=>{var _0x4d2c43=_0x1d0232,_0x41b641;(_0x41b641=_0x47d3f4[_0x4d2c43(0x235)])==null||_0x41b641[_0x4d2c43(0x1b8)](),_0x47d3f4['current']=null;}),[_0x3b4c9e,_0x43e7a2]),_0x207eb4?l[_0x1d0232(0x1ce)](g['Dropdown'],{'align':_0x1d0232(0x247),'disabled':_0x2a1516===h[_0x1d0232(0x208)],'className':_0x1d0232(0x231),'overlay':l[_0x1d0232(0x1ce)](B,{'status':_0x2a1516,'coordinator':_0x207eb4}),'children':l[_0x1d0232(0x1ce)]('button',{'className':g[_0x1d0232(0x1fd)](_0x1d0232(0x270),{'univer-cursor-not-allowed':_0x2a1516===h[_0x1d0232(0x208)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2a1516!==h[_0x1d0232(0x208)]}),'type':_0x1d0232(0x1c3),'children':l[_0x1d0232(0x1ce)](P,{'className':_0x1d0232(0x221)})})}):null;}function B(_0x1183af){var _0x540d85=_0x1dc8fd;const {status:_0x793a7c,coordinator:_0x29e1e9}=_0x1183af;switch(_0x793a7c){case h['IDLE']:return l[_0x540d85(0x1ce)](Y,{'coordinator':_0x29e1e9});case h[_0x540d85(0x1ea)]:return l['jsx'](Z,{'coordinator':_0x29e1e9});case h[_0x540d85(0x26b)]:return l[_0x540d85(0x1ce)](J,{'coordinator':_0x29e1e9});case h['OFFLINE']:return l[_0x540d85(0x1ce)](z,{});case h[_0x540d85(0x200)]:return l['jsx'](K,{'coordinator':_0x29e1e9});default:return null;}}function Y(_0x2258de){var _0x7089f2=_0x1dc8fd;const {coordinator:_0x13821f}=_0x2258de;return l[_0x7089f2(0x1cb)](l['Fragment'],{'children':[l[_0x7089f2(0x1ce)](_0x7089f2(0x22c),{'className':_0x7089f2(0x27f),'children':_0x7089f2(0x263)}),l[_0x7089f2(0x1ce)](g[_0x7089f2(0x21e)],{'onClick':()=>_0x13821f['tryStartPresenting'](),'children':_0x7089f2(0x1ef)})]});}function Z(_0x38b6c5){var _0xbffc41=_0x1dc8fd;const {coordinator:_0x470739}=_0x38b6c5;return l['jsxs'](l[_0xbffc41(0x1c1)],{'children':[l[_0xbffc41(0x1ce)](_0xbffc41(0x22c),{'className':_0xbffc41(0x27f),'children':_0xbffc41(0x1ae)}),l[_0xbffc41(0x1ce)](g[_0xbffc41(0x21e)],{'onClick':()=>_0x470739['stopFollowing'](),'children':_0xbffc41(0x23c)})]});}function J(_0x294e77){var _0xfb65b2=_0x1dc8fd;const {coordinator:_0x203316}=_0x294e77;return l[_0xfb65b2(0x1cb)](l[_0xfb65b2(0x1c1)],{'children':[l[_0xfb65b2(0x1ce)](_0xfb65b2(0x22c),{'className':_0xfb65b2(0x27f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0xfb65b2(0x1ce)](g[_0xfb65b2(0x21e)],{'variant':_0xfb65b2(0x20b),'onClick':()=>_0x203316[_0xfb65b2(0x1cc)](),'children':'Start\x20following'})]});}function K(_0x16e035){var _0x1f041a=_0x1dc8fd;const {coordinator:_0x2829ad}=_0x16e035;return l[_0x1f041a(0x1cb)](l[_0x1f041a(0x1c1)],{'children':[l[_0x1f041a(0x1ce)]('div',{'className':_0x1f041a(0x27f),'children':_0x1f041a(0x230)}),l[_0x1f041a(0x1ce)](g[_0x1f041a(0x21e)],{'variant':_0x1f041a(0x20a),'onClick':()=>_0x2829ad['stopPresenting'](),'children':_0x1f041a(0x1b0)})]});}function z(){var _0xe47ce4=_0x1dc8fd;return l[_0xe47ce4(0x1ce)](l[_0xe47ce4(0x1c1)],{'children':_0xe47ce4(0x261)});}var Q=Object[_0x1dc8fd(0x234)],X=(_0xbc2cd1,_0x16f816,_0x1622a8,_0x573b81)=>{var _0x5284e1=_0x1dc8fd;for(var _0x3eab5b=_0x573b81>0x1?void 0x0:_0x573b81?Q(_0x16f816,_0x1622a8):_0x16f816,_0x2f2b18=_0xbc2cd1[_0x5284e1(0x25b)]-0x1,_0xae5c37;_0x2f2b18>=0x0;_0x2f2b18--)(_0xae5c37=_0xbc2cd1[_0x2f2b18])&&(_0x3eab5b=_0xae5c37(_0x3eab5b)||_0x3eab5b);return _0x3eab5b;},x=(_0x416930,_0x280105)=>(_0x470eb7,_0x5beba3)=>_0x280105(_0x470eb7,_0x5beba3,_0x416930);exports[_0x1dc8fd(0x233)]=class extends o[_0x1dc8fd(0x27b)]{constructor(_0x4258e2,_0x5ac556){var _0x361346=_0x1dc8fd;super(),this['_injector']=_0x4258e2,this[_0x361346(0x1d0)]=_0x5ac556,this[_0x361346(0x1a5)]();}[_0x1dc8fd(0x1a5)](){var _0x3c0ea6=_0x1dc8fd;this['disposeWithMe'](this[_0x3c0ea6(0x1d0)][_0x3c0ea6(0x277)](p[_0x3c0ea6(0x1c5)][_0x3c0ea6(0x26e)],()=>p['connectInjector'](A,this[_0x3c0ea6(0x26c)])));}},exports['DesktopLiveShareController']=X([x(0x0,o[_0x1dc8fd(0x1e2)](o[_0x1dc8fd(0x275)])),x(0x1,p['IUIPartsService'])],exports[_0x1dc8fd(0x233)]);const ee=_0x1dc8fd(0x1a7),L={};function _0x476b(){var _0x3961bb=['has','mergeOverrideWithDependencies','SetScrollOperation','forEach','0\x200\x2017\x2017','displayName','concat','registerDependencies','assign','_commandDisposable','dispose$','_liveShareService','map','mutations','attrs','Inject','1em','executeCommand','entries','params','_handleNewChangeSets','CollaborationEvent','createInstance','FOLLOWING','type','Plugin','send','trim','Start','_configService','LiveShareStatus','idle','call','use','_fetchOperations','OPERATION','mask','_stopPresenting','toStringTag','sheet','status$','SAME_OPERATION_SHARE_INTERVAL','clsx','InsertSheetMutation','LIVESHARE_FETCH_OPERATIONS','PRESENTING','add','CommandType','clear','Module','createElement','propertyIsEnumerable','LiveShareController','OFFLINE','toDisposable','default','text','prototype','LiveShareCoordinator','_sharedOperations','CollaborationSessionService','getLiveShareCoordinator','DependentOn','toString','delete','_entities','24kGXCDj','UNIVER_SHEET','_status','shouldShareOperation','_handleOffline','_handleOnline','random','onStarting','47863EzLqYS','Button','string','SessionStatus','univer-size-4','77492hLQxun','icon','6mZDUaq','DisposableCollection','values','defIds','onCommandExecuted','defineProperty','registerSharedOperation','pluginName','div','init','following','IDLE','You\x27re\x20presenting\x20the\x20document','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','next','DesktopLiveShareController','getOwnPropertyDescriptor','current','Subject','_startPresenting','function','LIVESHARE_TERMINATE','http://www.w3.org/2000/svg','getMemberID','Stop\x20following','get','_commandService','_reporters','touchDependencies','useState','10440856XKWzor','takeUntil','222yKdrDm','_startLiveShareCoordinator','stringify','end','_init','RxDisposable','_collabSessionService','tag','replace','getInitialStates','_startFollowing','SetWorksheetActiveOperation','asObservable','IConfigService','set','memberID','LiveShareService','_collabSession','registerInitialStateReporter','getValue','sessionStatus$','useRef','_beIdle','length','LiveShare','useDependency','univerjs-icon\x20univerjs-icon-','_presenter','live-share-icon','You\x27are\x20offline.','pipe','Present\x20this\x20document','_handleTerminate','LIVESHARE_REQUEST_HOST','apply','UniverIcon','UniverInstanceType','forwardRef','then','NOT_FOLLOWING','_injector','UNIVER_UNKNOWN','HEADER_MENU','indexOf','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','includes','stopFollowing','requireSession','hasOwnProperty','Injector','idSuffix','registerComponent','BehaviorSubject','getOwnPropertySymbols','merge','Disposable','path','_stopFollowing','_univerInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitDisposed$','UniverCollaborationClientPlugin','extend','14952gSqznS','fill','_status$','_mountLiveShare','_config','live-share.config','unitId','xlink:href','offline','url(#$1','reverse','currentColor','You\x27re\x20following\x20the\x20presenter','15252408YtACdV','Stop\x20presenting','SetZoomRatioOperation','data','defs','dispose','9356910JbGduJ','UNIVER_LIVE_SHARE_PLUGIN','getUnitId','unsubscribe','2328885ViHmDC','UniverLiveSharePlugin','substring','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','NEW_CHANGESETS','subscribe','getCurrentTypeOfUnit$','presenting','Fragment','onRendered','button','_handleNewHost','BuiltInUIPart','children','className','_handleOperation','colorChannel1','LIVESHARE_OPERATION','jsxs','startFollowing','symbol','jsx','operations','_uiPartsService','not-following','_unitID'];_0x476b=function(){return _0x3961bb;};return _0x476b();}var te=Object[_0x1dc8fd(0x234)],ie=(_0x5f1741,_0x47bcf1,_0x82639f,_0x4c0497)=>{var _0x47f0d8=_0x1dc8fd;for(var _0x502fa1=_0x4c0497>0x1?void 0x0:_0x4c0497?te(_0x47bcf1,_0x82639f):_0x47bcf1,_0x58233b=_0x5f1741[_0x47f0d8(0x25b)]-0x1,_0x23bbba;_0x58233b>=0x0;_0x58233b--)(_0x23bbba=_0x5f1741[_0x58233b])&&(_0x502fa1=_0x23bbba(_0x502fa1)||_0x502fa1);return _0x502fa1;},ne=(_0x4547bd,_0x14d2f5)=>(_0x57bd30,_0x319d94)=>_0x14d2f5(_0x57bd30,_0x319d94,_0x4547bd);let E=class extends o[_0x1dc8fd(0x27b)]{constructor(_0x33188e){var _0x7848=_0x1dc8fd;super(),this[_0x7848(0x1de)]=_0x33188e,this[_0x7848(0x248)]();}['_init'](){var _0x4bc61=_0x1dc8fd;[D[_0x4bc61(0x1b1)]['id'],D[_0x4bc61(0x1d5)]['id'],C[_0x4bc61(0x24f)]['id']][_0x4bc61(0x1d6)](_0x310d1d=>{var _0x2fc006=_0x4bc61;this['disposeWithMe'](this[_0x2fc006(0x1de)]['registerSharedOperation'](_0x310d1d));});}};function _0x91bf(_0x6e657,_0x2af79d){var _0x476b28=_0x476b();return _0x91bf=function(_0x91bf60,_0x34f508){_0x91bf60=_0x91bf60-0x1a1;var _0x5de97a=_0x476b28[_0x91bf60];return _0x5de97a;},_0x91bf(_0x6e657,_0x2af79d);}E=ie([ne(0x0,o[_0x1dc8fd(0x1e2)](O))],E);var re=Object[_0x1dc8fd(0x229)],se=Object[_0x1dc8fd(0x234)],oe=(_0x2babfb,_0x54fc86,_0x4c5022)=>_0x54fc86 in _0x2babfb?re(_0x2babfb,_0x54fc86,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c5022}):_0x2babfb[_0x54fc86]=_0x4c5022,ae=(_0x4349a3,_0x214ab7,_0x4712c9,_0x36a59a)=>{var _0xfac4de=_0x1dc8fd;for(var _0x2ebf8f=_0x36a59a>0x1?void 0x0:_0x36a59a?se(_0x214ab7,_0x4712c9):_0x214ab7,_0x1a7ae2=_0x4349a3[_0xfac4de(0x25b)]-0x1,_0x516023;_0x1a7ae2>=0x0;_0x1a7ae2--)(_0x516023=_0x4349a3[_0x1a7ae2])&&(_0x2ebf8f=_0x516023(_0x2ebf8f)||_0x2ebf8f);return _0x2ebf8f;},N=(_0x36e1a1,_0x2e5f14)=>(_0x1c942a,_0x33e1e3)=>_0x2e5f14(_0x1c942a,_0x33e1e3,_0x36e1a1),T=(_0x5619cc,_0x474b3d,_0xacca9a)=>oe(_0x5619cc,typeof _0x474b3d!='symbol'?_0x474b3d+'':_0x474b3d,_0xacca9a);const le=_0x1dc8fd(0x1b6);exports[_0x1dc8fd(0x1ba)]=class extends o[_0x1dc8fd(0x1ec)]{constructor(_0x310e22=L,_0x291693,_0x20ea54){var _0x2b1a6c=_0x1dc8fd;super(),this[_0x2b1a6c(0x1a6)]=_0x310e22,this[_0x2b1a6c(0x26c)]=_0x291693,this[_0x2b1a6c(0x1f0)]=_0x20ea54;const {..._0x12971e}=o[_0x2b1a6c(0x27a)]({},L,this[_0x2b1a6c(0x1a6)]);this[_0x2b1a6c(0x1f0)]['setConfig'](ee,_0x12971e);}[_0x1dc8fd(0x21c)](){var _0x38d15e=_0x1dc8fd;o[_0x38d15e(0x1da)](this['_injector'],o[_0x38d15e(0x1d4)]([[O],[exports[_0x38d15e(0x207)]],[E],[exports['DesktopLiveShareController']]],this[_0x38d15e(0x1a6)]['override'])),o[_0x38d15e(0x240)](this[_0x38d15e(0x26c)],[[E]]);}[_0x1dc8fd(0x1c2)](){var _0x327e26=_0x1dc8fd;o[_0x327e26(0x240)](this[_0x327e26(0x26c)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x1dc8fd(0x1ba)],_0x1dc8fd(0x1eb),o[_0x1dc8fd(0x268)][_0x1dc8fd(0x26d)]),T(exports['UniverLiveSharePlugin'],_0x1dc8fd(0x22b),le),exports['UniverLiveSharePlugin']=ae([o[_0x1dc8fd(0x211)](m[_0x1dc8fd(0x281)]),N(0x1,o[_0x1dc8fd(0x1e2)](o[_0x1dc8fd(0x275)])),N(0x2,o[_0x1dc8fd(0x251)])],exports[_0x1dc8fd(0x1ba)]),exports[_0x1dc8fd(0x25c)]=A,exports[_0x1dc8fd(0x254)]=O,exports[_0x1dc8fd(0x1f1)]=h;
|
|
1
|
+
'use strict';var _0x2e5b6d=_0x3299;(function(_0x566450,_0x20ff32){var _0x22d496=_0x3299,_0x14b7e5=_0x566450();while(!![]){try{var _0x5f2687=parseInt(_0x22d496(0x134))/0x1+parseInt(_0x22d496(0x118))/0x2+-parseInt(_0x22d496(0x141))/0x3*(-parseInt(_0x22d496(0x10c))/0x4)+-parseInt(_0x22d496(0x10e))/0x5+-parseInt(_0x22d496(0x1af))/0x6+-parseInt(_0x22d496(0x1a3))/0x7*(-parseInt(_0x22d496(0x11b))/0x8)+-parseInt(_0x22d496(0x114))/0x9*(parseInt(_0x22d496(0x136))/0xa);if(_0x5f2687===_0x20ff32)break;else _0x14b7e5['push'](_0x14b7e5['shift']());}catch(_0x57ef18){_0x14b7e5['push'](_0x14b7e5['shift']());}}}(_0x58de,0xe1dd1));var U=Object[_0x2e5b6d(0x170)],F=(_0xff076c,_0x1eb752,_0x463a8b)=>_0x1eb752 in _0xff076c?U(_0xff076c,_0x1eb752,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x463a8b}):_0xff076c[_0x1eb752]=_0x463a8b,v=(_0x50c213,_0x52cc53,_0x16c3c2)=>F(_0x50c213,typeof _0x52cc53!='symbol'?_0x52cc53+'':_0x52cc53,_0x16c3c2);Object['defineProperty'](exports,Symbol[_0x2e5b6d(0xd3)],{'value':_0x2e5b6d(0x17a)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x4ffdee=_0x2e5b6d;return u=Object[_0x4ffdee(0x108)]||function(_0x3e3046){var _0x2a0785=_0x4ffdee;for(var _0x2e0ea3,_0x65980=0x1,_0x46e8a2=arguments[_0x2a0785(0x174)];_0x65980<_0x46e8a2;_0x65980++){_0x2e0ea3=arguments[_0x65980];for(var _0x4c7d7d in _0x2e0ea3)Object['prototype'][_0x2a0785(0x159)][_0x2a0785(0xfb)](_0x2e0ea3,_0x4c7d7d)&&(_0x3e3046[_0x4c7d7d]=_0x2e0ea3[_0x4c7d7d]);}return _0x3e3046;},u[_0x4ffdee(0xda)](this,arguments);},$=function(_0x4bf254,_0x164530){var _0xa670a7=_0x2e5b6d,_0x512ef0={};for(var _0x151e6c in _0x4bf254)Object[_0xa670a7(0x188)]['hasOwnProperty'][_0xa670a7(0xfb)](_0x4bf254,_0x151e6c)&&_0x164530[_0xa670a7(0x11a)](_0x151e6c)<0x0&&(_0x512ef0[_0x151e6c]=_0x4bf254[_0x151e6c]);if(_0x4bf254!=null&&typeof Object[_0xa670a7(0x19e)]==_0xa670a7(0x144)){for(var _0x4e07f3=0x0,_0x151e6c=Object[_0xa670a7(0x19e)](_0x4bf254);_0x4e07f3<_0x151e6c['length'];_0x4e07f3++)_0x164530[_0xa670a7(0x11a)](_0x151e6c[_0x4e07f3])<0x0&&Object['prototype'][_0xa670a7(0x198)][_0xa670a7(0xfb)](_0x4bf254,_0x151e6c[_0x4e07f3])&&(_0x512ef0[_0x151e6c[_0x4e07f3]]=_0x4bf254[_0x151e6c[_0x4e07f3]]);}return _0x512ef0;},j=f[_0x2e5b6d(0xf3)](function(_0x31724e,_0x122d22){var _0x373d49=_0x2e5b6d,_0x4112a2=_0x31724e[_0x373d49(0xcb)],_0xdee4a2=_0x31724e['id'],_0x293300=_0x31724e[_0x373d49(0x104)],_0xb10df0=_0x31724e[_0x373d49(0x184)],_0xc11cab=$(_0x31724e,[_0x373d49(0xcb),'id',_0x373d49(0x104),_0x373d49(0x184)]),_0x59f3dc=_0x373d49(0xd4)[_0x373d49(0x168)](_0xdee4a2,'\x20')[_0x373d49(0x168)](_0x293300||'')[_0x373d49(0x140)](),_0x557f90=f[_0x373d49(0x1a8)]('_'[_0x373d49(0x168)](k()));return y(_0x4112a2,''[_0x373d49(0x168)](_0xdee4a2),{'defIds':_0x4112a2['defIds'],'idSuffix':_0x557f90[_0x373d49(0x165)]},u({'ref':_0x122d22,'className':_0x59f3dc},_0xc11cab),_0xb10df0);});function y(_0x3d4f14,_0x53720b,_0x1507c7,_0x3ac69f,_0x5ed765){var _0x597846=_0x2e5b6d;return f['createElement'](_0x3d4f14[_0x597846(0x192)],u(u({'key':_0x53720b},H(_0x3d4f14,_0x1507c7,_0x5ed765)),_0x3ac69f),(V(_0x3d4f14,_0x1507c7)['children']||[])[_0x597846(0x183)](function(_0x4bb580,_0x12b312){var _0x4213ed=_0x597846;return y(_0x4bb580,''[_0x4213ed(0x168)](_0x53720b,'-')['concat'](_0x3d4f14['tag'],'-')[_0x4213ed(0x168)](_0x12b312),_0x1507c7,void 0x0,_0x5ed765);}));}function H(_0xfe9118,_0x2fe788,_0x4efe28){var _0xe1e396=_0x2e5b6d,_0x20754b=u({},_0xfe9118[_0xe1e396(0x1b0)]);_0x4efe28!=null&&_0x4efe28[_0xe1e396(0x16b)]&&_0x20754b[_0xe1e396(0x179)]===_0xe1e396(0x16b)&&(_0x20754b[_0xe1e396(0x179)]=_0x4efe28[_0xe1e396(0x16b)]),_0xfe9118['tag']==='mask'&&_0x20754b['id']&&(_0x20754b['id']=_0x20754b['id']+_0x2fe788[_0xe1e396(0x115)]),Object[_0xe1e396(0x135)](_0x20754b)[_0xe1e396(0x186)](function(_0x581c3a){var _0x504dba=_0xe1e396,_0x3b7067=_0x581c3a[0x0],_0x1b675b=_0x581c3a[0x1];_0x3b7067===_0x504dba(0x142)&&typeof _0x1b675b=='string'&&(_0x20754b[_0x3b7067]=_0x1b675b['replace'](/url\(#(.*)\)/,_0x504dba(0x19c)[_0x504dba(0x168)](_0x2fe788['idSuffix'],')')));});var _0xdf4ce=_0x2fe788['defIds'];return!_0xdf4ce||_0xdf4ce[_0xe1e396(0x174)]===0x0||(_0xfe9118[_0xe1e396(0x192)]===_0xe1e396(0x17d)&&_0x20754b[_0xe1e396(0x12b)]&&(_0x20754b[_0xe1e396(0x12b)]=_0x20754b[_0xe1e396(0x12b)]+_0x2fe788['idSuffix']),Object[_0xe1e396(0x135)](_0x20754b)[_0xe1e396(0x186)](function(_0x33bf32){var _0x48807f=_0xe1e396,_0x3a9c5e=_0x33bf32[0x0],_0x4ad2b9=_0x33bf32[0x1];typeof _0x4ad2b9==_0x48807f(0x133)&&(_0x20754b[_0x3a9c5e]=_0x4ad2b9[_0x48807f(0x155)](/url\(#(.*)\)/,_0x48807f(0x19c)[_0x48807f(0x168)](_0x2fe788['idSuffix'],')')));})),_0x20754b;}function V(_0x3b818f,_0x7250d7){var _0x315ad8=_0x2e5b6d,_0x2a5db6,_0x111876=_0x7250d7[_0x315ad8(0x16c)];return!_0x111876||_0x111876[_0x315ad8(0x174)]===0x0?_0x3b818f:_0x3b818f['tag']===_0x315ad8(0x112)&&(!((_0x2a5db6=_0x3b818f['children'])===null||_0x2a5db6===void 0x0)&&_0x2a5db6[_0x315ad8(0x174)])?u(u({},_0x3b818f),{'children':_0x3b818f[_0x315ad8(0x193)][_0x315ad8(0x183)](function(_0x438adb){var _0x4a23d5=_0x315ad8;return typeof _0x438adb[_0x4a23d5(0x1b0)]['id']==_0x4a23d5(0x133)&&_0x111876&&_0x111876[_0x4a23d5(0x196)](_0x438adb[_0x4a23d5(0x1b0)]['id'])?u(u({},_0x438adb),{'attrs':u(u({},_0x438adb[_0x4a23d5(0x1b0)]),{'id':_0x438adb[_0x4a23d5(0x1b0)]['id']+_0x7250d7[_0x4a23d5(0x115)]})}):_0x438adb;})}):_0x3b818f;}function k(){var _0x15553c=_0x2e5b6d;return Math[_0x15553c(0xe2)]()['toString'](0x24)[_0x15553c(0xd9)](0x2,0x8);}j['displayName']=_0x2e5b6d(0x13a);function _0x3299(_0x2af3f9,_0x301d99){var _0x58dedd=_0x58de();return _0x3299=function(_0x3299a9,_0x43423e){_0x3299a9=_0x3299a9-0xca;var _0x393a03=_0x58dedd[_0x3299a9];return _0x393a03;},_0x3299(_0x2af3f9,_0x301d99);}var M={'tag':_0x2e5b6d(0xce),'attrs':{'xmlns':_0x2e5b6d(0x121),'fill':_0x2e5b6d(0xca),'viewBox':_0x2e5b6d(0x1a5),'width':_0x2e5b6d(0xea),'height':'1em'},'children':[{'tag':_0x2e5b6d(0x154),'attrs':{'fill':_0x2e5b6d(0x175),'d':_0x2e5b6d(0x12d)}},{'tag':_0x2e5b6d(0x154),'attrs':{'fill':_0x2e5b6d(0x175),'d':_0x2e5b6d(0xef),'fillRule':'evenodd','clipRule':_0x2e5b6d(0x148)}}]},P=f['forwardRef'](function(_0x331e19,_0xee1e93){var _0x3ee87f=_0x2e5b6d;return f[_0x3ee87f(0x16a)](j,Object[_0x3ee87f(0x108)]({},_0x331e19,{'id':_0x3ee87f(0x19b),'ref':_0xee1e93,'icon':M}));});P[_0x2e5b6d(0x102)]='LiveShareIcon';class O extends o['Disposable']{constructor(){var _0x4cdd90=_0x2e5b6d;super(...arguments),v(this,_0x4cdd90(0x10a),new Set()),v(this,'_reporters',new Set());}[_0x2e5b6d(0xf8)](_0x51189b){var _0x278a18=_0x2e5b6d;return this[_0x278a18(0x10a)]['add'](_0x51189b),o['toDisposable'](()=>this['_sharedOperations'][_0x278a18(0x125)](_0x51189b));}[_0x2e5b6d(0x139)](_0x585528){var _0x4e6ae2=_0x2e5b6d;return this[_0x4e6ae2(0x17e)][_0x4e6ae2(0x1b2)](_0x585528),o[_0x4e6ae2(0x105)](()=>this[_0x4e6ae2(0x17e)][_0x4e6ae2(0x125)](_0x585528));}[_0x2e5b6d(0x149)](_0x5022f7){var _0x59563b=_0x2e5b6d;return this[_0x59563b(0x10a)][_0x59563b(0x178)](_0x5022f7);}[_0x2e5b6d(0x163)](_0x5cc2fb){var _0x389ae9=_0x2e5b6d;return Array[_0x389ae9(0x13f)](this['_reporters'])[_0x389ae9(0x183)](_0x43ba76=>_0x43ba76(_0x5cc2fb));}}var q=Object['getOwnPropertyDescriptor'],R=(_0x34a84c,_0x78c9bc,_0x269dc1,_0x1c4150)=>{for(var _0x259e10=_0x1c4150>0x1?void 0x0:_0x1c4150?q(_0x78c9bc,_0x269dc1):_0x78c9bc,_0xa8eb35=_0x34a84c['length']-0x1,_0x4181ef;_0xa8eb35>=0x0;_0xa8eb35--)(_0x4181ef=_0x34a84c[_0xa8eb35])&&(_0x259e10=_0x4181ef(_0x259e10)||_0x259e10);return _0x259e10;},S=(_0x13f584,_0x81d73c)=>(_0x55ca76,_0x3a232b)=>_0x81d73c(_0x55ca76,_0x3a232b,_0x13f584);exports['LiveShareController']=class extends o[_0x2e5b6d(0x194)]{constructor(_0x8a0054,_0x4c1bb7,_0x7a9191){var _0xf8940e=_0x2e5b6d;super(),v(this,_0xf8940e(0x103),new Map()),(this[_0xf8940e(0x1a2)]=_0x8a0054,this['_injector']=_0x4c1bb7,this['_collabSessionService']=_0x7a9191,this[_0xf8940e(0x190)]());}async[_0x2e5b6d(0x113)](_0x1fe61e){var _0x4ae096=_0x2e5b6d;return this['_entities'][_0x4ae096(0x178)](_0x1fe61e)||await this[_0x4ae096(0xec)](_0x1fe61e),this[_0x4ae096(0x103)][_0x4ae096(0xf7)](_0x1fe61e);}['_init'](){var _0x2eafc5=_0x2e5b6d;this[_0x2eafc5(0x1a2)][_0x2eafc5(0x145)](o[_0x2eafc5(0xe9)]['UNIVER_SHEET'])[_0x2eafc5(0x126)](b[_0x2eafc5(0xfe)](this[_0x2eafc5(0xcc)]))['subscribe'](async _0x2cdb6a=>{var _0x226e51=_0x2eafc5;const _0x3314c1=_0x2cdb6a[_0x226e51(0xe1)]();this[_0x226e51(0x103)][_0x226e51(0x178)](_0x3314c1)||this['_startLiveShareCoordinator'](_0x3314c1);}),this[_0x2eafc5(0x1a2)]['getTypeOfUnitDisposed$'](o['UniverInstanceType']['UNIVER_SHEET'])[_0x2eafc5(0x126)](b['takeUntil'](this['dispose$']))[_0x2eafc5(0x150)](_0x40881b=>{var _0x5962f2=_0x2eafc5;const _0x4d3b2c=_0x40881b[_0x5962f2(0xe1)](),_0x22aeee=this['_entities']['get'](_0x4d3b2c);_0x22aeee==null||_0x22aeee[_0x5962f2(0x187)]();});}async[_0x2e5b6d(0xec)](_0x37e001){var _0x509ffb=_0x2e5b6d;const _0x47e07d=await this[_0x509ffb(0x13e)][_0x509ffb(0x177)](_0x37e001),_0x2e32e3=this[_0x509ffb(0x17b)][_0x509ffb(0x13d)](exports['LiveShareCoordinator'],_0x37e001,_0x47e07d);return _0x2e32e3[_0x509ffb(0xd1)](),this[_0x509ffb(0x103)][_0x509ffb(0x14c)](_0x37e001,_0x2e32e3),_0x2e32e3;}},exports[_0x2e5b6d(0xeb)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o['Inject'](o[_0x2e5b6d(0xdb)])),S(0x2,o[_0x2e5b6d(0x12f)](m[_0x2e5b6d(0xe8)]))],exports['LiveShareController']);var h=(_0x26f026=>(_0x26f026['OFFLINE']=_0x2e5b6d(0x180),_0x26f026['IDLE']=_0x2e5b6d(0xe6),_0x26f026[_0x2e5b6d(0x130)]=_0x2e5b6d(0x12a),_0x26f026[_0x2e5b6d(0x14f)]=_0x2e5b6d(0x124),_0x26f026[_0x2e5b6d(0x143)]=_0x2e5b6d(0x15f),_0x26f026))(h||{});const W=_0x2e5b6d(0xf5),G=0xc8;exports[_0x2e5b6d(0x160)]=class extends o[_0x2e5b6d(0x194)]{constructor(_0x5df8b8,_0x290d92,_0x374d40,_0x52c8d0,_0x3b9621){var _0x33c433=_0x2e5b6d;super(),v(this,_0x33c433(0xde),new w['BehaviorSubject'](_0x33c433(0xe6))),v(this,_0x33c433(0xe0),this[_0x33c433(0xde)][_0x33c433(0x106)]()),v(this,'_init',!0x1),v(this,_0x33c433(0x11e),null),v(this,'_presenter',null),(this['_unitID']=_0x5df8b8,this['_collabSession']=_0x290d92,this[_0x33c433(0x173)]=_0x374d40,this[_0x33c433(0xf9)]=_0x52c8d0,this[_0x33c433(0xff)]=_0x3b9621);}get[_0x2e5b6d(0x146)](){var _0x20ffa6=_0x2e5b6d;return this[_0x20ffa6(0xde)][_0x20ffa6(0x182)]();}[_0x2e5b6d(0x187)](){var _0x5cc77f=_0x2e5b6d,_0x8646ea;(_0x8646ea=this[_0x5cc77f(0x11e)])==null||_0x8646ea[_0x5cc77f(0x187)](),this[_0x5cc77f(0xde)][_0x5cc77f(0x1a7)](_0x5cc77f(0xe6)),this[_0x5cc77f(0xde)][_0x5cc77f(0x167)]();}[_0x2e5b6d(0xd1)](){var _0x3f7532=_0x2e5b6d;this[_0x3f7532(0x190)]||(this[_0x3f7532(0x190)]=!0x0,this[_0x3f7532(0x162)][_0x3f7532(0xd8)][_0x3f7532(0x126)](b['takeUntil'](this[_0x3f7532(0xcc)]))[_0x3f7532(0x150)](_0x33d93b=>{var _0x4e64d7=_0x3f7532;switch(_0x33d93b){case m['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case m[_0x4e64d7(0x18b)][_0x4e64d7(0x169)]:this[_0x4e64d7(0x120)]();break;}}),this['_collabSession']['event$'][_0x3f7532(0x126)](b[_0x3f7532(0xfe)](this['dispose$']))[_0x3f7532(0x150)](_0x2dbe44=>{var _0x4e6e14=_0x3f7532;const {eventID:_0x27d74d}=_0x2dbe44;switch(_0x27d74d){case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x2dbe44);break;case _['CollaborationEvent'][_0x4e6e14(0x101)]:this[_0x4e6e14(0x13c)](_0x2dbe44);break;case _['CollaborationEvent'][_0x4e6e14(0xdf)]:this['_handleTerminate']();break;case _[_0x4e6e14(0x15e)][_0x4e6e14(0x18c)]:this[_0x4e6e14(0x1a9)](_0x2dbe44);break;}}));}[_0x2e5b6d(0xf1)](){var _0x38c2f8=_0x2e5b6d;this[_0x38c2f8(0x162)][_0x38c2f8(0x111)]({'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x38c2f8(0x158)],'userID':this[_0x38c2f8(0x162)]['getMemberID']()}},this[_0x38c2f8(0x158)]);}[_0x2e5b6d(0x12e)](){var _0x20695a=_0x2e5b6d;this['_status']==='presenting'&&(this['_status$'][_0x20695a(0x1a7)]('idle'),this['_collabSession'][_0x20695a(0x111)]({'eventID':_[_0x20695a(0x15e)][_0x20695a(0xdf)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x2e5b6d(0x13b)](){var _0x456692=_0x2e5b6d;this[_0x456692(0x146)]===_0x456692(0x124)&&(this['_status$']['next'](_0x456692(0x12a)),this[_0x456692(0x164)]());}[_0x2e5b6d(0x1ae)](){var _0x2da935=_0x2e5b6d;this[_0x2da935(0x146)]===_0x2da935(0x12a)&&this['_stopFollowing']();}[_0x2e5b6d(0x18f)](_0x3daeca){var _0x1bab7f=_0x2e5b6d;const {presenter:_0x2446ca}=_0x3daeca[_0x1bab7f(0xf4)],_0x198094=this[_0x1bab7f(0x162)][_0x1bab7f(0x18a)]();this['_presenter']=_0x2446ca,_0x2446ca===_0x198094?(this[_0x1bab7f(0x15c)](),this[_0x1bab7f(0xcf)]()):this[_0x1bab7f(0x146)]!==_0x1bab7f(0x124)&&(this[_0x1bab7f(0xf6)](),this[_0x1bab7f(0x164)]());}['_fetchOperations'](){var _0x423d71=_0x2e5b6d;const _0x223707={'eventID':_[_0x423d71(0x15e)][_0x423d71(0x185)]};this['_collabSession']['send'](_0x223707,this[_0x423d71(0x158)]);}[_0x2e5b6d(0x15b)](){var _0x5d1f8f=_0x2e5b6d;this[_0x5d1f8f(0xd2)]=null,this['_status']!==_0x5d1f8f(0x15f)&&this[_0x5d1f8f(0xf0)]();}[_0x2e5b6d(0x1a9)](_0x5a0341){var _0x504e07=_0x2e5b6d;if(this[_0x504e07(0x146)]==='following'&&this[_0x504e07(0xd2)]===_0x5a0341[_0x504e07(0xf4)][_0x504e07(0x16e)]){const _0x70fe66=_[_0x504e07(0x15d)](_0x5a0341[_0x504e07(0xf4)])[_0x504e07(0x119)][_0x504e07(0x161)]()[_0x504e07(0x1a6)](_0x223c9f=>_0x223c9f['id']===C['InsertSheetMutation']['id']);if(_0x70fe66){const _0x481d16=_0x70fe66['params'][_0x504e07(0x14a)],_0x113f1a=_0x70fe66[_0x504e07(0xe5)][_0x504e07(0xfa)]['id'];setTimeout(()=>{var _0x3f4773=_0x504e07;this[_0x3f4773(0xff)][_0x3f4773(0x191)](C[_0x3f4773(0x10d)]['id'],{'unitId':_0x481d16,'subUnitId':_0x113f1a},{'fromCollab':!0x0});});}}}[_0x2e5b6d(0xcf)](){var _0x4f3b24=_0x2e5b6d;this[_0x4f3b24(0xde)][_0x4f3b24(0x1a7)](_0x4f3b24(0x15f));const _0x1b66a7=new Map(),_0x5f1cba=this['_commandDisposable']=new o[(_0x4f3b24(0x156))]();_0x5f1cba['add'](o[_0x4f3b24(0x105)](()=>{var _0x1bd68d=_0x4f3b24;_0x1b66a7[_0x1bd68d(0x186)](_0x27b010=>_0x27b010[_0x1bd68d(0x167)]()),_0x1b66a7[_0x1bd68d(0xfd)]();})),_0x5f1cba[_0x4f3b24(0x1b2)](this[_0x4f3b24(0xff)][_0x4f3b24(0x14b)](_0xb875d=>{var _0x395f29=_0x4f3b24,_0x2feb4c;if(_0xb875d[_0x395f29(0x19d)]!==o[_0x395f29(0xdd)][_0x395f29(0x189)]||!this[_0x395f29(0xf9)][_0x395f29(0x149)](_0xb875d['id']))return;const {id:_0x5d85bd}=_0xb875d;let _0x427731;_0x1b66a7[_0x395f29(0x178)](_0x5d85bd)?_0x427731=_0x1b66a7[_0x395f29(0xf7)](_0x5d85bd):(_0x427731=new w[(_0x395f29(0xed))](),_0x1b66a7[_0x395f29(0x14c)](_0x5d85bd,_0x427731),_0x427731['pipe'](b[_0x395f29(0xfc)]((_0x2feb4c=this[_0x395f29(0x173)][_0x395f29(0x171)](W))!=null?_0x2feb4c:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5b19fc=>{var _0x1d7502=_0x395f29;this[_0x1d7502(0x162)]['send']({'eventID':_[_0x1d7502(0x15e)][_0x1d7502(0x101)],'data':{'unitID':this[_0x1d7502(0x158)],'operations':{[_0x5b19fc['id']]:{'id':_0x5b19fc['id'],'params':JSON[_0x1d7502(0x127)](_0x5b19fc[_0x1d7502(0xe5)])}}}},this['_unitID']);})),_0x427731[_0x395f29(0x1a7)](_0xb875d);})),this[_0x4f3b24(0xf9)][_0x4f3b24(0x163)](this['_unitID'])[_0x4f3b24(0x186)](_0x5c8dfb=>this[_0x4f3b24(0x162)][_0x4f3b24(0x111)]({'eventID':_[_0x4f3b24(0x15e)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x5c8dfb['id']]:{'id':_0x5c8dfb['id'],'params':JSON[_0x4f3b24(0x127)](_0x5c8dfb['params'])}}}},this['_unitID']));}[_0x2e5b6d(0xf6)](){var _0x1c63af=_0x2e5b6d,_0x242db4;this[_0x1c63af(0xde)][_0x1c63af(0x1a7)](_0x1c63af(0xe6)),(_0x242db4=this[_0x1c63af(0x11e)])==null||_0x242db4[_0x1c63af(0x187)](),this[_0x1c63af(0x11e)]=null;}['_startFollowing'](){var _0xaf84a4=_0x2e5b6d,_0x218bd4;(_0x218bd4=this[_0xaf84a4(0x11e)])==null||_0x218bd4[_0xaf84a4(0x187)](),this[_0xaf84a4(0xde)]['next']('following');}[_0x2e5b6d(0xf0)](){var _0x565fea=_0x2e5b6d,_0x44e40a;this[_0x565fea(0xde)][_0x565fea(0x1a7)](_0x565fea(0xe6)),(_0x44e40a=this['_commandDisposable'])==null||_0x44e40a[_0x565fea(0x187)](),this[_0x565fea(0x11e)]=null;}['_stopFollowing'](){var _0x1a3986=_0x2e5b6d,_0x2068ff;this[_0x1a3986(0xde)][_0x1a3986(0x1a7)](_0x1a3986(0x124)),(_0x2068ff=this[_0x1a3986(0x11e)])==null||_0x2068ff[_0x1a3986(0x187)]();}[_0x2e5b6d(0x13c)](_0xae778c){var _0x42624=_0x2e5b6d;if([_0x42624(0x15f),_0x42624(0x124),_0x42624(0x180)][_0x42624(0x196)](this[_0x42624(0x146)])||!_0xae778c[_0x42624(0xf4)][_0x42624(0xee)]||_0xae778c[_0x42624(0xf4)][_0x42624(0xee)]===this[_0x42624(0x162)]['getMemberID']())return;this[_0x42624(0x146)]===_0x42624(0xe6)&&this['_startFollowing']();const _0x5ec52d=_0xae778c[_0x42624(0xf4)][_0x42624(0x1a1)];Object['values'](_0x5ec52d)['forEach'](_0xa3d88f=>{var _0x4be12f=_0x42624;this[_0x4be12f(0xff)]['executeCommand'](_0xa3d88f['id'],_0xa3d88f[_0x4be12f(0xe5)]?JSON[_0x4be12f(0x18e)](_0xa3d88f['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x34a557=_0x2e5b6d,_0x588d1d;this[_0x34a557(0xde)][_0x34a557(0x1a7)]('offline'),(_0x588d1d=this['_commandDisposable'])==null||_0x588d1d[_0x34a557(0x187)]();}[_0x2e5b6d(0x120)](){var _0x2b7385=_0x2e5b6d;this[_0x2b7385(0xde)][_0x2b7385(0x1a7)](_0x2b7385(0xe6)),this[_0x2b7385(0x195)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x2e5b6d(0xf2)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x2e5b6d(0xd0)])],exports[_0x2e5b6d(0x160)]);function A(){var _0x47bb7f=_0x2e5b6d;const _0x1ca698=p[_0x47bb7f(0x110)](exports['LiveShareController']),_0x18aff3=p[_0x47bb7f(0x110)](o[_0x47bb7f(0x1ad)]),_0x1c4f79=p[_0x47bb7f(0x172)](()=>_0x18aff3['getCurrentTypeOfUnit$'](o[_0x47bb7f(0xe9)][_0x47bb7f(0x10b)]),void 0x0,!0x1,[]),[_0xb8a376,_0xd45d8b]=f[_0x47bb7f(0xd7)](null),[_0x16e7b7,_0x2e09f1]=f['useState'](h[_0x47bb7f(0x137)]),_0x5a5694=f[_0x47bb7f(0x1a8)](null);return f[_0x47bb7f(0x18d)](()=>(_0x1c4f79&&_0x1ca698[_0x47bb7f(0x113)](_0x1c4f79[_0x47bb7f(0xe1)]())[_0x47bb7f(0x16f)](_0x2922ec=>{var _0x18c7ee=_0x47bb7f;_0xd45d8b(_0x2922ec),_0x5a5694[_0x18c7ee(0x165)]=_0x2922ec[_0x18c7ee(0xe0)][_0x18c7ee(0x150)](_0x2d70cd=>{_0x2e09f1(_0x2d70cd);});}),()=>{var _0x5c00ea=_0x47bb7f,_0x5912a9;(_0x5912a9=_0x5a5694[_0x5c00ea(0x165)])==null||_0x5912a9[_0x5c00ea(0x16d)](),_0x5a5694['current']=null;}),[_0x1c4f79,_0x1ca698]),_0xb8a376?l[_0x47bb7f(0x19a)](g[_0x47bb7f(0xd6)],{'align':_0x47bb7f(0x109),'disabled':_0x16e7b7===h[_0x47bb7f(0x1ac)],'className':_0x47bb7f(0x138),'overlay':l[_0x47bb7f(0x19a)](B,{'status':_0x16e7b7,'coordinator':_0xb8a376}),'children':l['jsx']('button',{'className':g[_0x47bb7f(0x11d)](_0x47bb7f(0x1a0),{'univer-cursor-not-allowed':_0x16e7b7===h[_0x47bb7f(0x1ac)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x16e7b7!==h[_0x47bb7f(0x1ac)]}),'type':_0x47bb7f(0x12c),'children':l[_0x47bb7f(0x19a)](P,{'className':_0x47bb7f(0x11f)})})}):null;}function B(_0x776582){var _0x447603=_0x2e5b6d;const {status:_0x321520,coordinator:_0x4372fb}=_0x776582;switch(_0x321520){case h[_0x447603(0x137)]:return l[_0x447603(0x19a)](Y,{'coordinator':_0x4372fb});case h[_0x447603(0x130)]:return l[_0x447603(0x19a)](Z,{'coordinator':_0x4372fb});case h['NOT_FOLLOWING']:return l[_0x447603(0x19a)](J,{'coordinator':_0x4372fb});case h[_0x447603(0x1ac)]:return l[_0x447603(0x19a)](z,{});case h[_0x447603(0x143)]:return l[_0x447603(0x19a)](K,{'coordinator':_0x4372fb});default:return null;}}function Y(_0xb43eb){var _0x474c9f=_0x2e5b6d;const {coordinator:_0x2d2efd}=_0xb43eb;return l['jsxs'](l[_0x474c9f(0xd5)],{'children':[l['jsx']('div',{'className':_0x474c9f(0x100),'children':_0x474c9f(0x17f)}),l[_0x474c9f(0x19a)](g[_0x474c9f(0xe4)],{'onClick':()=>_0x2d2efd[_0x474c9f(0xf1)](),'children':_0x474c9f(0x116)})]});}function Z(_0xb86e37){var _0x262163=_0x2e5b6d;const {coordinator:_0x5e9829}=_0xb86e37;return l[_0x262163(0x166)](l[_0x262163(0xd5)],{'children':[l[_0x262163(0x19a)](_0x262163(0x15a),{'className':_0x262163(0x100),'children':_0x262163(0x10f)}),l[_0x262163(0x19a)](g[_0x262163(0xe4)],{'onClick':()=>_0x5e9829[_0x262163(0x1ae)](),'children':_0x262163(0x14e)})]});}function J(_0x178540){var _0x482a74=_0x2e5b6d;const {coordinator:_0x275c3b}=_0x178540;return l['jsxs'](l[_0x482a74(0xd5)],{'children':[l[_0x482a74(0x19a)](_0x482a74(0x15a),{'className':_0x482a74(0x100),'children':_0x482a74(0x122)}),l[_0x482a74(0x19a)](g['Button'],{'variant':_0x482a74(0x131),'onClick':()=>_0x275c3b[_0x482a74(0x13b)](),'children':_0x482a74(0x181)})]});}function K(_0x37ba5b){var _0x2a8fb3=_0x2e5b6d;const {coordinator:_0x934528}=_0x37ba5b;return l['jsxs'](l[_0x2a8fb3(0xd5)],{'children':[l[_0x2a8fb3(0x19a)](_0x2a8fb3(0x15a),{'className':_0x2a8fb3(0x100),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x2a8fb3(0x19a)](g[_0x2a8fb3(0xe4)],{'variant':'default','onClick':()=>_0x934528[_0x2a8fb3(0x12e)](),'children':_0x2a8fb3(0x147)})]});}function z(){var _0x186afe=_0x2e5b6d;return l[_0x186afe(0x19a)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var Q=Object[_0x2e5b6d(0x176)],X=(_0x5aaa42,_0x310c21,_0x2bb810,_0x20aca2)=>{for(var _0xa8936=_0x20aca2>0x1?void 0x0:_0x20aca2?Q(_0x310c21,_0x2bb810):_0x310c21,_0x584e13=_0x5aaa42['length']-0x1,_0xcba2e3;_0x584e13>=0x0;_0x584e13--)(_0xcba2e3=_0x5aaa42[_0x584e13])&&(_0xa8936=_0xcba2e3(_0xa8936)||_0xa8936);return _0xa8936;},x=(_0x1443c8,_0x474003)=>(_0x2116b9,_0x486c32)=>_0x474003(_0x2116b9,_0x486c32,_0x1443c8);exports[_0x2e5b6d(0x1b1)]=class extends o[_0x2e5b6d(0xdc)]{constructor(_0x4aad40,_0x125dba){var _0x1930b6=_0x2e5b6d;super(),this[_0x1930b6(0x17b)]=_0x4aad40,this[_0x1930b6(0x197)]=_0x125dba,this['_mountLiveShare']();}[_0x2e5b6d(0x1aa)](){var _0x12876c=_0x2e5b6d;this[_0x12876c(0x1a4)](this[_0x12876c(0x197)][_0x12876c(0x17c)](p['BuiltInUIPart'][_0x12876c(0x151)],()=>p[_0x12876c(0x129)](A,this[_0x12876c(0x17b)])));}},exports[_0x2e5b6d(0x1b1)]=X([x(0x0,o[_0x2e5b6d(0x12f)](o[_0x2e5b6d(0xdb)])),x(0x1,p[_0x2e5b6d(0x11c)])],exports[_0x2e5b6d(0x1b1)]);const ee='live-share.config',L={};var te=Object[_0x2e5b6d(0x176)],ie=(_0x2c42eb,_0x43b9e9,_0x16ab73,_0x3b9376)=>{var _0x5cfe66=_0x2e5b6d;for(var _0x2e9048=_0x3b9376>0x1?void 0x0:_0x3b9376?te(_0x43b9e9,_0x16ab73):_0x43b9e9,_0x44f9cc=_0x2c42eb[_0x5cfe66(0x174)]-0x1,_0x1a8ff6;_0x44f9cc>=0x0;_0x44f9cc--)(_0x1a8ff6=_0x2c42eb[_0x44f9cc])&&(_0x2e9048=_0x1a8ff6(_0x2e9048)||_0x2e9048);return _0x2e9048;},ne=(_0x127c37,_0x2dfcf5)=>(_0x33e7dc,_0x2e3b6f)=>_0x2dfcf5(_0x33e7dc,_0x2e3b6f,_0x127c37);let E=class extends o[_0x2e5b6d(0xdc)]{constructor(_0x1aa83f){var _0x21d39d=_0x2e5b6d;super(),this[_0x21d39d(0xf9)]=_0x1aa83f,this['_init']();}[_0x2e5b6d(0x190)](){var _0xd91bed=_0x2e5b6d;[D['SetZoomRatioOperation']['id'],D[_0xd91bed(0xe7)]['id'],C[_0xd91bed(0x10d)]['id']][_0xd91bed(0x186)](_0x44b215=>{var _0x2c4b26=_0xd91bed;this['disposeWithMe'](this[_0x2c4b26(0xf9)]['registerSharedOperation'](_0x44b215));});}};E=ie([ne(0x0,o[_0x2e5b6d(0x12f)](O))],E);var re=Object[_0x2e5b6d(0x170)],se=Object[_0x2e5b6d(0x176)],oe=(_0x5b6eed,_0x233bb7,_0x176190)=>_0x233bb7 in _0x5b6eed?re(_0x5b6eed,_0x233bb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x176190}):_0x5b6eed[_0x233bb7]=_0x176190,ae=(_0x4714cc,_0x131956,_0x2c3c19,_0x43e1f8)=>{var _0x2f694d=_0x2e5b6d;for(var _0x199b12=_0x43e1f8>0x1?void 0x0:_0x43e1f8?se(_0x131956,_0x2c3c19):_0x131956,_0x4559c9=_0x4714cc[_0x2f694d(0x174)]-0x1,_0x4cf8af;_0x4559c9>=0x0;_0x4559c9--)(_0x4cf8af=_0x4714cc[_0x4559c9])&&(_0x199b12=_0x4cf8af(_0x199b12)||_0x199b12);return _0x199b12;},N=(_0x2f4135,_0x36ce5f)=>(_0x1aba6c,_0x66977)=>_0x36ce5f(_0x1aba6c,_0x66977,_0x2f4135),T=(_0x2b5351,_0x68bb65,_0x453bdd)=>oe(_0x2b5351,typeof _0x68bb65!='symbol'?_0x68bb65+'':_0x68bb65,_0x453bdd);function _0x58de(){var _0x5b962c=['22761650nsceuf','IDLE','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','registerInitialStateReporter','UniverIcon','startFollowing','_handleOperation','createInstance','_collabSessionService','from','trim','90RVMeBX','mask','PRESENTING','function','getTypeOfUnitAdded$','_status','Stop\x20presenting','evenodd','shouldShareOperation','unitId','onCommandExecuted','set','onStarting','Stop\x20following','NOT_FOLLOWING','subscribe','HEADER_MENU','UNIVER_LIVE_SHARE_PLUGIN','merge','path','replace','DisposableCollection','LiveShareService','_unitID','hasOwnProperty','div','_handleTerminate','_stopFollowing','parseProtocolChangeset','CollaborationEvent','presenting','LiveShareCoordinator','reverse','_collabSession','getInitialStates','_startFollowing','current','jsxs','complete','concat','ONLINE','createElement','colorChannel1','defIds','unsubscribe','memberID','then','defineProperty','getConfig','useObservable','_configService','length','currentColor','getOwnPropertyDescriptor','requireSession','has','fill','Module','_injector','registerComponent','use','_reporters','Present\x20this\x20document','offline','Start\x20following','getValue','map','extend','LIVESHARE_FETCH_OPERATIONS','forEach','dispose','prototype','OPERATION','getMemberID','SessionStatus','NEW_CHANGESETS','useEffect','parse','_handleNewHost','_init','executeCommand','tag','children','RxDisposable','_fetchOperations','includes','_uiPartsService','propertyIsEnumerable','_config','jsx','live-share-icon','url(#$1','type','getOwnPropertySymbols','mergeOverrideWithDependencies','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','operations','_univerInstanceService','7JxDMso','disposeWithMe','0\x200\x2017\x2017','find','next','useRef','_handleNewChangeSets','_mountLiveShare','touchDependencies','OFFLINE','IUniverInstanceService','stopFollowing','4084350bpdsvA','attrs','DesktopLiveShareController','add','none','icon','dispose$','override','svg','_startPresenting','ICommandService','init','_presenter','toStringTag','univerjs-icon\x20univerjs-icon-','Fragment','Dropdown','useState','sessionStatus$','substring','apply','Injector','Disposable','CommandType','_status$','LIVESHARE_TERMINATE','status$','getUnitId','random','Plugin','Button','params','idle','SetScrollOperation','CollaborationSessionService','UniverInstanceType','1em','LiveShareController','_startLiveShareCoordinator','Subject','presenter','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','_beIdle','tryStartPresenting','IConfigService','forwardRef','data','SAME_OPERATION_SHARE_INTERVAL','_stopPresenting','get','registerSharedOperation','_liveShareService','sheet','call','throttleTime','clear','takeUntil','_commandService','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_OPERATION','displayName','_entities','className','toDisposable','asObservable','LiveShare','assign','end','_sharedOperations','UNIVER_SHEET','127076jBrUyX','SetWorksheetActiveOperation','6829475oziWar','You\x27re\x20following\x20the\x20presenter','useDependency','send','defs','getLiveShareCoordinator','9mLVmhP','idSuffix','Start','onRendered','2486924lFYbQp','mutations','indexOf','10569952sghsYs','IUIPartsService','clsx','_commandDisposable','univer-size-4','_handleOnline','http://www.w3.org/2000/svg','You\x27re\x20not\x20following\x20the\x20presenter','DependentOn','not-following','delete','pipe','stringify','UniverLiveSharePlugin','connectInjector','following','xlink:href','button','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','stopPresenting','Inject','FOLLOWING','text','pluginName','string','1730146SWYBrh','entries'];_0x58de=function(){return _0x5b962c;};return _0x58de();}const le=_0x2e5b6d(0x152);exports[_0x2e5b6d(0x128)]=class extends o[_0x2e5b6d(0xe3)]{constructor(_0x42fbc0=L,_0x2b3690,_0xbe5127){var _0x318e3e=_0x2e5b6d;super(),this[_0x318e3e(0x199)]=_0x42fbc0,this['_injector']=_0x2b3690,this['_configService']=_0xbe5127;const {..._0x4b8613}=o[_0x318e3e(0x153)]({},L,this[_0x318e3e(0x199)]);this['_configService']['setConfig'](ee,_0x4b8613);}[_0x2e5b6d(0x14d)](){var _0x4db057=_0x2e5b6d;o['registerDependencies'](this[_0x4db057(0x17b)],o[_0x4db057(0x19f)]([[O],[exports[_0x4db057(0xeb)]],[E],[exports['DesktopLiveShareController']]],this[_0x4db057(0x199)][_0x4db057(0xcd)])),o[_0x4db057(0x1ab)](this[_0x4db057(0x17b)],[[E]]);}[_0x2e5b6d(0x117)](){var _0x13cd18=_0x2e5b6d;o[_0x13cd18(0x1ab)](this[_0x13cd18(0x17b)],[[exports[_0x13cd18(0x1b1)]]]);}},T(exports[_0x2e5b6d(0x128)],_0x2e5b6d(0x19d),o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x2e5b6d(0x128)],_0x2e5b6d(0x132),le),exports[_0x2e5b6d(0x128)]=ae([o[_0x2e5b6d(0x123)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x2e5b6d(0x12f)](o['Injector'])),N(0x2,o[_0x2e5b6d(0xf2)])],exports[_0x2e5b6d(0x128)]),exports[_0x2e5b6d(0x107)]=A,exports[_0x2e5b6d(0x157)]=O,exports['LiveShareStatus']=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1d91b3=_0x56d4;(function(_0x410680,_0x55d9e8){var _0xd1ec=_0x56d4,_0x3975d0=_0x410680();while(!![]){try{var _0x549993=parseInt(_0xd1ec(0x21d))/0x1+parseInt(_0xd1ec(0x208))/0x2*(-parseInt(_0xd1ec(0x25d))/0x3)+parseInt(_0xd1ec(0x224))/0x4*(-parseInt(_0xd1ec(0x220))/0x5)+-parseInt(_0xd1ec(0x213))/0x6*(-parseInt(_0xd1ec(0x1c8))/0x7)+parseInt(_0xd1ec(0x24f))/0x8+-parseInt(_0xd1ec(0x200))/0x9*(parseInt(_0xd1ec(0x247))/0xa)+parseInt(_0xd1ec(0x24c))/0xb*(parseInt(_0xd1ec(0x20d))/0xc);if(_0x549993===_0x55d9e8)break;else _0x3975d0['push'](_0x3975d0['shift']());}catch(_0x6261eb){_0x3975d0['push'](_0x3975d0['shift']());}}}(_0xcfbf,0xa3ff1));var q=Object[_0x1d91b3(0x1e1)],z=(_0x2707dd,_0x5191d3,_0x323918)=>_0x5191d3 in _0x2707dd?q(_0x2707dd,_0x5191d3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x323918}):_0x2707dd[_0x5191d3]=_0x323918,d=(_0x507b55,_0x5c474d,_0x137522)=>z(_0x507b55,typeof _0x5c474d!=_0x1d91b3(0x1b1)?_0x5c474d+'':_0x5c474d,_0x137522);import{Disposable as _0x191feb,toDisposable as _0x5245b4,IUniverInstanceService as _0x512063,Inject as _0x48870b,Injector as _0x438238,IConfigService as _0x287ab1,ICommandService as _0x39c5a2,RxDisposable as _0xc4fa72,UniverInstanceType as _0x25345c,DisposableCollection as _0x1ff42f,CommandType as _0x45e416,DependentOn as _0x24b533,Plugin as _0x4484ff,merge as _0x5af2c3,registerDependencies as _0x1b55e6,mergeOverrideWithDependencies as _0x4b03db,touchDependencies as _0x14252c}from'@univerjs/core';import{useDependency as _0x597f8c,useObservable as _0x201988,IUIPartsService as _0x361552,BuiltInUIPart as _0x62b12d,connectInjector as _0x2110ef}from'@univerjs/ui';import{jsx as _0xf7dfb7,jsxs as _0x55492e,Fragment as _0x4a7755}from'react/jsx-runtime';import{Dropdown as _0x8c52b3,clsx as _0x5d0285,Button as _0x339215}from'@univerjs/design';import{forwardRef as _0x5008bc,useRef as _0x4e5340,createElement as _0x53edc6,useState as _0x5a5681,useEffect as _0x1b19c3}from'react';import{CollaborationEvent as _0x48ddd3,parseProtocolChangeset as _0xa009ba}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xe30f9e,SessionStatus as _0x4cc7bd,UniverCollaborationClientPlugin as _0x5e3602}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x12de5a,SetWorksheetActiveOperation as _0x1d4cd8}from'@univerjs/sheets';import{BehaviorSubject as _0xc98ea9,Subject as _0x4d009e}from'rxjs';import{takeUntil as _0x8b4f19,throttleTime as _0x3babf7}from'rxjs/operators';import{SetZoomRatioOperation as _0xce97f8,SetScrollOperation as _0x8954b5}from'@univerjs/sheets-ui';var c=function(){var _0x387829=_0x1d91b3;return c=Object[_0x387829(0x1d3)]||function(_0x21da49){var _0x40679d=_0x387829;for(var _0x4a63c8,_0x5bf22a=0x1,_0x2f0812=arguments[_0x40679d(0x244)];_0x5bf22a<_0x2f0812;_0x5bf22a++){_0x4a63c8=arguments[_0x5bf22a];for(var _0x91d53f in _0x4a63c8)Object[_0x40679d(0x23c)][_0x40679d(0x262)][_0x40679d(0x1d7)](_0x4a63c8,_0x91d53f)&&(_0x21da49[_0x91d53f]=_0x4a63c8[_0x91d53f]);}return _0x21da49;},c[_0x387829(0x222)](this,arguments);},Oe=function(_0x1481e0,_0x2b70cf){var _0x1a375b=_0x1d91b3,_0x214831={};for(var _0x545087 in _0x1481e0)Object[_0x1a375b(0x23c)]['hasOwnProperty'][_0x1a375b(0x1d7)](_0x1481e0,_0x545087)&&_0x2b70cf['indexOf'](_0x545087)<0x0&&(_0x214831[_0x545087]=_0x1481e0[_0x545087]);if(_0x1481e0!=null&&typeof Object[_0x1a375b(0x221)]==_0x1a375b(0x21a)){for(var _0x286d47=0x0,_0x545087=Object[_0x1a375b(0x221)](_0x1481e0);_0x286d47<_0x545087['length'];_0x286d47++)_0x2b70cf[_0x1a375b(0x1f8)](_0x545087[_0x286d47])<0x0&&Object[_0x1a375b(0x23c)]['propertyIsEnumerable'][_0x1a375b(0x1d7)](_0x1481e0,_0x545087[_0x286d47])&&(_0x214831[_0x545087[_0x286d47]]=_0x1481e0[_0x545087[_0x286d47]]);}return _0x214831;},W=_0x5008bc(function(_0x268dea,_0x467c57){var _0xfb77ba=_0x1d91b3,_0x1774bf=_0x268dea[_0xfb77ba(0x1bf)],_0x217618=_0x268dea['id'],_0x29914c=_0x268dea[_0xfb77ba(0x20b)],_0x50b912=_0x268dea[_0xfb77ba(0x254)],_0x33d026=Oe(_0x268dea,[_0xfb77ba(0x1bf),'id',_0xfb77ba(0x20b),'extend']),_0x243c69=_0xfb77ba(0x1ff)[_0xfb77ba(0x237)](_0x217618,'\x20')[_0xfb77ba(0x237)](_0x29914c||'')[_0xfb77ba(0x236)](),_0x57c40d=_0x4e5340('_'[_0xfb77ba(0x237)](Ne()));return Y(_0x1774bf,''[_0xfb77ba(0x237)](_0x217618),{'defIds':_0x1774bf[_0xfb77ba(0x227)],'idSuffix':_0x57c40d['current']},c({'ref':_0x467c57,'className':_0x243c69},_0x33d026),_0x50b912);});function Y(_0x38bfb1,_0x5508c1,_0x5bc3d0,_0x31002c,_0x453f81){var _0x5992a2=_0x1d91b3;return _0x53edc6(_0x38bfb1[_0x5992a2(0x1f0)],c(c({'key':_0x5508c1},Ee(_0x38bfb1,_0x5bc3d0,_0x453f81)),_0x31002c),(we(_0x38bfb1,_0x5bc3d0)[_0x5992a2(0x252)]||[])[_0x5992a2(0x255)](function(_0x4f3885,_0x4ccc13){var _0x190d1f=_0x5992a2;return Y(_0x4f3885,''['concat'](_0x5508c1,'-')[_0x190d1f(0x237)](_0x38bfb1['tag'],'-')[_0x190d1f(0x237)](_0x4ccc13),_0x5bc3d0,void 0x0,_0x453f81);}));}function Ee(_0x1a78b5,_0x2a2963,_0x2f556b){var _0x53791e=_0x1d91b3,_0x345ecc=c({},_0x1a78b5[_0x53791e(0x241)]);_0x2f556b!=null&&_0x2f556b[_0x53791e(0x1ce)]&&_0x345ecc[_0x53791e(0x239)]==='colorChannel1'&&(_0x345ecc[_0x53791e(0x239)]=_0x2f556b[_0x53791e(0x1ce)]),_0x1a78b5['tag']===_0x53791e(0x1de)&&_0x345ecc['id']&&(_0x345ecc['id']=_0x345ecc['id']+_0x2a2963['idSuffix']),Object[_0x53791e(0x25c)](_0x345ecc)['forEach'](function(_0x106186){var _0x17b065=_0x53791e,_0x1ff691=_0x106186[0x0],_0x487206=_0x106186[0x1];_0x1ff691===_0x17b065(0x1de)&&typeof _0x487206==_0x17b065(0x1d1)&&(_0x345ecc[_0x1ff691]=_0x487206[_0x17b065(0x23e)](/url\(#(.*)\)/,'url(#$1'[_0x17b065(0x237)](_0x2a2963[_0x17b065(0x260)],')')));});var _0x4e6bfc=_0x2a2963['defIds'];return!_0x4e6bfc||_0x4e6bfc[_0x53791e(0x244)]===0x0||(_0x1a78b5[_0x53791e(0x1f0)]==='use'&&_0x345ecc['xlink:href']&&(_0x345ecc['xlink:href']=_0x345ecc[_0x53791e(0x21e)]+_0x2a2963['idSuffix']),Object[_0x53791e(0x25c)](_0x345ecc)[_0x53791e(0x1f6)](function(_0x1ae11f){var _0x58b403=_0x53791e,_0x4e2c31=_0x1ae11f[0x0],_0x430663=_0x1ae11f[0x1];typeof _0x430663==_0x58b403(0x1d1)&&(_0x345ecc[_0x4e2c31]=_0x430663['replace'](/url\(#(.*)\)/,'url(#$1'[_0x58b403(0x237)](_0x2a2963[_0x58b403(0x260)],')')));})),_0x345ecc;}function we(_0x24d310,_0x474e5f){var _0x5e251c=_0x1d91b3,_0x376f59,_0x12674e=_0x474e5f[_0x5e251c(0x227)];return!_0x12674e||_0x12674e[_0x5e251c(0x244)]===0x0?_0x24d310:_0x24d310[_0x5e251c(0x1f0)]===_0x5e251c(0x1c1)&&(!((_0x376f59=_0x24d310[_0x5e251c(0x252)])===null||_0x376f59===void 0x0)&&_0x376f59[_0x5e251c(0x244)])?c(c({},_0x24d310),{'children':_0x24d310['children'][_0x5e251c(0x255)](function(_0x5853e0){var _0x3fd3bf=_0x5e251c;return typeof _0x5853e0[_0x3fd3bf(0x241)]['id']==_0x3fd3bf(0x1d1)&&_0x12674e&&_0x12674e[_0x3fd3bf(0x1dc)](_0x5853e0['attrs']['id'])?c(c({},_0x5853e0),{'attrs':c(c({},_0x5853e0[_0x3fd3bf(0x241)]),{'id':_0x5853e0['attrs']['id']+_0x474e5f[_0x3fd3bf(0x260)]})}):_0x5853e0;})}):_0x24d310;}function Ne(){var _0x3e2ef0=_0x1d91b3;return Math[_0x3e2ef0(0x1ea)]()['toString'](0x24)['substring'](0x2,0x8);}W[_0x1d91b3(0x25f)]=_0x1d91b3(0x20e);var Ce={'tag':_0x1d91b3(0x263),'attrs':{'xmlns':_0x1d91b3(0x20c),'fill':_0x1d91b3(0x229),'viewBox':'0\x200\x2017\x2017','width':_0x1d91b3(0x250),'height':'1em'},'children':[{'tag':_0x1d91b3(0x1bc),'attrs':{'fill':_0x1d91b3(0x246),'d':_0x1d91b3(0x1cb)}},{'tag':_0x1d91b3(0x1bc),'attrs':{'fill':_0x1d91b3(0x246),'d':_0x1d91b3(0x24a),'fillRule':_0x1d91b3(0x1fc),'clipRule':_0x1d91b3(0x1fc)}}]},B=_0x5008bc(function(_0xb35c0f,_0x56ef12){var _0x221d3e=_0x1d91b3;return _0x53edc6(W,Object[_0x221d3e(0x1d3)]({},_0xb35c0f,{'id':_0x221d3e(0x23d),'ref':_0x56ef12,'icon':Ce}));});B[_0x1d91b3(0x25f)]='LiveShareIcon';class L extends _0x191feb{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x1d91b3(0x22d)](_0x5d0306){var _0x6370ec=_0x1d91b3;return this['_sharedOperations'][_0x6370ec(0x1d2)](_0x5d0306),_0x5245b4(()=>this[_0x6370ec(0x1cc)]['delete'](_0x5d0306));}[_0x1d91b3(0x1b4)](_0xda5b11){var _0x31485a=_0x1d91b3;return this[_0x31485a(0x1bb)][_0x31485a(0x1d2)](_0xda5b11),_0x5245b4(()=>this[_0x31485a(0x1bb)]['delete'](_0xda5b11));}[_0x1d91b3(0x23b)](_0xa9591b){var _0x338870=_0x1d91b3;return this[_0x338870(0x1cc)][_0x338870(0x264)](_0xa9591b);}['getInitialStates'](_0x50c871){var _0x2d054e=_0x1d91b3;return Array[_0x2d054e(0x215)](this['_reporters'])[_0x2d054e(0x255)](_0xca8c17=>_0xca8c17(_0x50c871));}}var De=Object[_0x1d91b3(0x1f9)],Z=(_0xc4afa4,_0x595aa6,_0x5b0205,_0x5ff81)=>{var _0x49c2e8=_0x1d91b3;for(var _0x592f33=_0x5ff81>0x1?void 0x0:_0x5ff81?De(_0x595aa6,_0x5b0205):_0x595aa6,_0x58e75a=_0xc4afa4[_0x49c2e8(0x244)]-0x1,_0x176dd9;_0x58e75a>=0x0;_0x58e75a--)(_0x176dd9=_0xc4afa4[_0x58e75a])&&(_0x592f33=_0x176dd9(_0x592f33)||_0x592f33);return _0x592f33;},f=(_0x5714d7,_0x591e58)=>(_0x304904,_0x2a9047)=>_0x591e58(_0x304904,_0x2a9047,_0x5714d7);let m=class extends _0xc4fa72{constructor(_0x2918da,_0x327a71,_0x3961dd){var _0x4eaa48=_0x1d91b3;super(),d(this,_0x4eaa48(0x1b3),new Map()),(this[_0x4eaa48(0x1e9)]=_0x2918da,this[_0x4eaa48(0x1be)]=_0x327a71,this[_0x4eaa48(0x1fb)]=_0x3961dd,this['_init']());}async[_0x1d91b3(0x1b6)](_0x87d8b4){var _0x644ead=_0x1d91b3;return this[_0x644ead(0x1b3)]['has'](_0x87d8b4)||await this['_startLiveShareCoordinator'](_0x87d8b4),this[_0x644ead(0x1b3)]['get'](_0x87d8b4);}[_0x1d91b3(0x249)](){var _0x356e22=_0x1d91b3;this[_0x356e22(0x1e9)][_0x356e22(0x256)](_0x25345c['UNIVER_SHEET'])[_0x356e22(0x225)](_0x8b4f19(this['dispose$']))[_0x356e22(0x1df)](async _0x528039=>{var _0x1baa49=_0x356e22;const _0x4f4f8e=_0x528039[_0x1baa49(0x248)]();this[_0x1baa49(0x1b3)][_0x1baa49(0x264)](_0x4f4f8e)||this[_0x1baa49(0x1d8)](_0x4f4f8e);}),this[_0x356e22(0x1e9)][_0x356e22(0x214)](_0x25345c[_0x356e22(0x1b0)])[_0x356e22(0x225)](_0x8b4f19(this['dispose$']))[_0x356e22(0x1df)](_0x1bdd25=>{var _0x14db9b=_0x356e22;const _0x37870f=_0x1bdd25[_0x14db9b(0x248)](),_0x3e17b2=this[_0x14db9b(0x1b3)]['get'](_0x37870f);_0x3e17b2==null||_0x3e17b2[_0x14db9b(0x232)]();});}async[_0x1d91b3(0x1d8)](_0x12f43e){var _0x1eb4c0=_0x1d91b3;const _0x528e60=await this[_0x1eb4c0(0x1fb)][_0x1eb4c0(0x21b)](_0x12f43e),_0x5f31df=this[_0x1eb4c0(0x1be)][_0x1eb4c0(0x1e6)](C,_0x12f43e,_0x528e60);return _0x5f31df['init'](),this['_entities'][_0x1eb4c0(0x1c0)](_0x12f43e,_0x5f31df),_0x5f31df;}};m=Z([f(0x0,_0x512063),f(0x1,_0x48870b(_0x438238)),f(0x2,_0x48870b(_0xe30f9e))],m);var h=(_0x5642a3=>(_0x5642a3[_0x1d91b3(0x1ec)]=_0x1d91b3(0x1c7),_0x5642a3[_0x1d91b3(0x253)]=_0x1d91b3(0x20f),_0x5642a3[_0x1d91b3(0x265)]=_0x1d91b3(0x24d),_0x5642a3[_0x1d91b3(0x233)]=_0x1d91b3(0x22e),_0x5642a3[_0x1d91b3(0x202)]=_0x1d91b3(0x21c),_0x5642a3))(h||{});function _0xcfbf(){var _0x353780=['_mountLiveShare','UNIVER_LIVE_SHARE_PLUGIN','_startFollowing','_startPresenting','offline','1281gstghQ','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_OPERATION','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','_sharedOperations','status$','colorChannel1','then','getMemberID','string','add','assign','_uiPartsService','executeCommand','_configService','call','_startLiveShareCoordinator','send','setConfig','tryStartPresenting','includes','stopPresenting','mask','subscribe','You\x27re\x20following\x20the\x20presenter','defineProperty','unitId','override','complete','stringify','createInstance','Start','onRendered','_univerInstanceService','random','You\x27are\x20offline.','OFFLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','OPERATION','tag','You\x27re\x20not\x20following\x20the\x20presenter','asObservable','_collabSession','Stop\x20following','Start\x20following','forEach','get','indexOf','getOwnPropertyDescriptor','current','_collabSessionService','evenodd','onCommandExecuted','reverse','univerjs-icon\x20univerjs-icon-','141993SvHGQb','_status','PRESENTING','div','_handleOnline','NEW_CHANGESETS','_handleTerminate','Present\x20this\x20document','845692cdiHKL','_commandDisposable','unsubscribe','className','http://www.w3.org/2000/svg','16374648bvwsXm','UniverIcon','idle','data','getValue','onStarting','43692PgJoyH','getTypeOfUnitDisposed$','from','LIVESHARE_TERMINATE','dispose$','_handleNewHost','presenter','function','requireSession','presenting','642331ElJdhG','xlink:href','end','5oMehGi','getOwnPropertySymbols','apply','mutations','3629876pkaQFT','pipe','Stop\x20presenting','defIds','next','none','_stopFollowing','find','_handleOffline','registerSharedOperation','not-following','UNIVER_UNKNOWN','text','_presenter','dispose','NOT_FOLLOWING','startFollowing','_unitID','trim','concat','button','fill','live-share.config','shouldShareOperation','prototype','live-share-icon','replace','_commandService','_stopPresenting','attrs','parse','_liveShareService','length','getInitialStates','currentColor','810OfFFqM','getUnitId','_init','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','sessionStatus$','11lfuXFi','following','ONLINE','2906688QejURF','1em','LIVESHARE_REQUEST_HOST','children','IDLE','extend','map','getTypeOfUnitAdded$','HEADER_MENU','params','event$','memberID','_config','entries','6qUenKj','_handleNewChangeSets','displayName','idSuffix','type','hasOwnProperty','svg','has','FOLLOWING','univer-size-4','values','LIVESHARE_NEW_HOST','UNIVER_SHEET','symbol','You\x27re\x20presenting\x20the\x20document','_entities','registerInitialStateReporter','stopFollowing','getLiveShareCoordinator','_handleOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','_status$','sheet','_reporters','path','_fetchOperations','_injector','icon','set','defs','_beIdle'];_0xcfbf=function(){return _0x353780;};return _0xcfbf();}const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0xc4fa72{constructor(_0x43c1f3,_0x2aa253,_0x52e966,_0x25e185,_0x36096d){var _0x4d03b5=_0x1d91b3;super(),d(this,_0x4d03b5(0x1b9),new _0xc98ea9('idle')),d(this,_0x4d03b5(0x1cd),this['_status$'][_0x4d03b5(0x1f2)]()),d(this,'_init',!0x1),d(this,_0x4d03b5(0x209),null),d(this,_0x4d03b5(0x231),null),(this[_0x4d03b5(0x235)]=_0x43c1f3,this[_0x4d03b5(0x1f3)]=_0x2aa253,this[_0x4d03b5(0x1d6)]=_0x52e966,this[_0x4d03b5(0x243)]=_0x25e185,this[_0x4d03b5(0x23f)]=_0x36096d);}get[_0x1d91b3(0x201)](){var _0x37a619=_0x1d91b3;return this[_0x37a619(0x1b9)][_0x37a619(0x211)]();}[_0x1d91b3(0x232)](){var _0x38ab54=_0x1d91b3,_0x5a0807;(_0x5a0807=this[_0x38ab54(0x209)])==null||_0x5a0807[_0x38ab54(0x232)](),this[_0x38ab54(0x1b9)]['next']('idle'),this[_0x38ab54(0x1b9)][_0x38ab54(0x1e4)]();}['init'](){var _0x24211c=_0x1d91b3;this['_init']||(this['_init']=!0x0,this[_0x24211c(0x1f3)][_0x24211c(0x24b)][_0x24211c(0x225)](_0x8b4f19(this[_0x24211c(0x217)]))['subscribe'](_0x56e12a=>{var _0xf3abf9=_0x24211c;switch(_0x56e12a){case _0x4cc7bd[_0xf3abf9(0x1ec)]:this[_0xf3abf9(0x22c)]();break;case _0x4cc7bd[_0xf3abf9(0x24e)]:this[_0xf3abf9(0x204)]();break;}}),this[_0x24211c(0x1f3)][_0x24211c(0x259)][_0x24211c(0x225)](_0x8b4f19(this['dispose$']))['subscribe'](_0x276f30=>{var _0x143202=_0x24211c;const {eventID:_0x6c5e25}=_0x276f30;switch(_0x6c5e25){case _0x48ddd3[_0x143202(0x268)]:this[_0x143202(0x218)](_0x276f30);break;case _0x48ddd3[_0x143202(0x1ca)]:this['_handleOperation'](_0x276f30);break;case _0x48ddd3[_0x143202(0x216)]:this[_0x143202(0x206)]();break;case _0x48ddd3[_0x143202(0x205)]:this[_0x143202(0x25e)](_0x276f30);break;}}));}['tryStartPresenting'](){var _0x34720c=_0x1d91b3;this[_0x34720c(0x1f3)][_0x34720c(0x1d9)]({'eventID':_0x48ddd3[_0x34720c(0x251)],'data':{'unitID':this[_0x34720c(0x235)],'userID':this[_0x34720c(0x1f3)][_0x34720c(0x1d0)]()}},this[_0x34720c(0x235)]);}[_0x1d91b3(0x1dd)](){var _0x332965=_0x1d91b3;this['_status']===_0x332965(0x21c)&&(this['_status$']['next'](_0x332965(0x20f)),this[_0x332965(0x1f3)][_0x332965(0x1d9)]({'eventID':_0x48ddd3[_0x332965(0x216)],'data':{'unitID':this['_unitID']}},this[_0x332965(0x235)]));}[_0x1d91b3(0x234)](){var _0x5c72ab=_0x1d91b3;this[_0x5c72ab(0x201)]===_0x5c72ab(0x22e)&&(this[_0x5c72ab(0x1b9)][_0x5c72ab(0x228)](_0x5c72ab(0x24d)),this[_0x5c72ab(0x1c5)]());}['stopFollowing'](){var _0x413753=_0x1d91b3;this['_status']==='following'&&this[_0x413753(0x22a)]();}[_0x1d91b3(0x218)](_0x328a21){var _0xca4e7=_0x1d91b3;const {presenter:_0x405793}=_0x328a21['data'],_0x54adb2=this[_0xca4e7(0x1f3)][_0xca4e7(0x1d0)]();this[_0xca4e7(0x231)]=_0x405793,_0x405793===_0x54adb2?(this[_0xca4e7(0x22a)](),this['_startPresenting']()):this[_0xca4e7(0x201)]!=='not-following'&&(this[_0xca4e7(0x240)](),this[_0xca4e7(0x1c5)]());}[_0x1d91b3(0x1bd)](){var _0x46bacf=_0x1d91b3;const _0x34b5b9={'eventID':_0x48ddd3[_0x46bacf(0x1c9)]};this[_0x46bacf(0x1f3)]['send'](_0x34b5b9,this[_0x46bacf(0x235)]);}['_handleTerminate'](){var _0xa876ab=_0x1d91b3;this[_0xa876ab(0x231)]=null,this[_0xa876ab(0x201)]!==_0xa876ab(0x21c)&&this[_0xa876ab(0x1c2)]();}[_0x1d91b3(0x25e)](_0x5f08e4){var _0x2bead4=_0x1d91b3;if(this['_status']==='following'&&this['_presenter']===_0x5f08e4[_0x2bead4(0x210)][_0x2bead4(0x25a)]){const _0x22d2cf=_0xa009ba(_0x5f08e4[_0x2bead4(0x210)])[_0x2bead4(0x223)][_0x2bead4(0x1fe)]()[_0x2bead4(0x22b)](_0x12ee7d=>_0x12ee7d['id']===_0x12de5a['id']);if(_0x22d2cf){const _0x49e15b=_0x22d2cf[_0x2bead4(0x258)][_0x2bead4(0x1e2)],_0x2d7838=_0x22d2cf[_0x2bead4(0x258)][_0x2bead4(0x1ba)]['id'];setTimeout(()=>{var _0x427611=_0x2bead4;this[_0x427611(0x23f)][_0x427611(0x1d5)](_0x1d4cd8['id'],{'unitId':_0x49e15b,'subUnitId':_0x2d7838},{'fromCollab':!0x0});});}}}[_0x1d91b3(0x1c6)](){var _0x176621=_0x1d91b3;this[_0x176621(0x1b9)][_0x176621(0x228)](_0x176621(0x21c));const _0x4f7134=new Map(),_0x7b3bd1=this[_0x176621(0x209)]=new _0x1ff42f();_0x7b3bd1[_0x176621(0x1d2)](_0x5245b4(()=>{var _0x23fcb8=_0x176621;_0x4f7134['forEach'](_0x3efffd=>_0x3efffd[_0x23fcb8(0x1e4)]()),_0x4f7134['clear']();})),_0x7b3bd1['add'](this['_commandService'][_0x176621(0x1fd)](_0x5e4ea0=>{var _0x14e063=_0x176621,_0x48b264;if(_0x5e4ea0[_0x14e063(0x261)]!==_0x45e416[_0x14e063(0x1ef)]||!this[_0x14e063(0x243)][_0x14e063(0x23b)](_0x5e4ea0['id']))return;const {id:_0x3787cd}=_0x5e4ea0;let _0x2f07cb;_0x4f7134[_0x14e063(0x264)](_0x3787cd)?_0x2f07cb=_0x4f7134[_0x14e063(0x1f7)](_0x3787cd):(_0x2f07cb=new _0x4d009e(),_0x4f7134['set'](_0x3787cd,_0x2f07cb),_0x2f07cb[_0x14e063(0x225)](_0x3babf7((_0x48b264=this[_0x14e063(0x1d6)]['getConfig'](xe))!=null?_0x48b264:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x14e063(0x1df)](_0x1a6868=>{var _0x2b6282=_0x14e063;this['_collabSession']['send']({'eventID':_0x48ddd3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2b6282(0x235)],'operations':{[_0x1a6868['id']]:{'id':_0x1a6868['id'],'params':JSON['stringify'](_0x1a6868[_0x2b6282(0x258)])}}}},this[_0x2b6282(0x235)]);})),_0x2f07cb['next'](_0x5e4ea0);})),this['_liveShareService'][_0x176621(0x245)](this[_0x176621(0x235)])[_0x176621(0x1f6)](_0x120e3a=>this[_0x176621(0x1f3)][_0x176621(0x1d9)]({'eventID':_0x48ddd3[_0x176621(0x1ca)],'data':{'unitID':this[_0x176621(0x235)],'operations':{[_0x120e3a['id']]:{'id':_0x120e3a['id'],'params':JSON[_0x176621(0x1e5)](_0x120e3a['params'])}}}},this['_unitID']));}['_stopPresenting'](){var _0x510193=_0x1d91b3,_0x9993da;this['_status$'][_0x510193(0x228)]('idle'),(_0x9993da=this[_0x510193(0x209)])==null||_0x9993da[_0x510193(0x232)](),this[_0x510193(0x209)]=null;}[_0x1d91b3(0x1c5)](){var _0x46de51=_0x1d91b3,_0x21a23a;(_0x21a23a=this[_0x46de51(0x209)])==null||_0x21a23a[_0x46de51(0x232)](),this[_0x46de51(0x1b9)][_0x46de51(0x228)](_0x46de51(0x24d));}[_0x1d91b3(0x1c2)](){var _0x5b8f50=_0x1d91b3,_0x2794cb;this[_0x5b8f50(0x1b9)]['next'](_0x5b8f50(0x20f)),(_0x2794cb=this[_0x5b8f50(0x209)])==null||_0x2794cb['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x13831e=_0x1d91b3,_0x1e2561;this[_0x13831e(0x1b9)][_0x13831e(0x228)]('not-following'),(_0x1e2561=this[_0x13831e(0x209)])==null||_0x1e2561['dispose']();}[_0x1d91b3(0x1b7)](_0x4905e8){var _0x5a1bb2=_0x1d91b3;if(['presenting','not-following','offline']['includes'](this['_status'])||!_0x4905e8[_0x5a1bb2(0x210)][_0x5a1bb2(0x219)]||_0x4905e8[_0x5a1bb2(0x210)][_0x5a1bb2(0x219)]===this['_collabSession'][_0x5a1bb2(0x1d0)]())return;this[_0x5a1bb2(0x201)]===_0x5a1bb2(0x20f)&&this[_0x5a1bb2(0x1c5)]();const _0x302d15=_0x4905e8['data']['operations'];Object[_0x5a1bb2(0x267)](_0x302d15)['forEach'](_0x5d08cd=>{var _0x2d01b3=_0x5a1bb2;this['_commandService'][_0x2d01b3(0x1d5)](_0x5d08cd['id'],_0x5d08cd[_0x2d01b3(0x258)]?JSON[_0x2d01b3(0x242)](_0x5d08cd[_0x2d01b3(0x258)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x52eb61=_0x1d91b3,_0x574fcc;this[_0x52eb61(0x1b9)][_0x52eb61(0x228)](_0x52eb61(0x1c7)),(_0x574fcc=this[_0x52eb61(0x209)])==null||_0x574fcc['dispose']();}[_0x1d91b3(0x204)](){var _0x285dd6=_0x1d91b3;this[_0x285dd6(0x1b9)][_0x285dd6(0x228)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x287ab1),f(0x3,_0x48870b(L)),f(0x4,_0x39c5a2)],C);function ye(){var _0x4d6a87=_0x1d91b3;const _0x4df321=_0x597f8c(m),_0x57814c=_0x597f8c(_0x512063),_0x146fd6=_0x201988(()=>_0x57814c['getCurrentTypeOfUnit$'](_0x25345c['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x16466e,_0x5af7f6]=_0x5a5681(null),[_0x14bf10,_0x5bf0b1]=_0x5a5681(h['IDLE']),_0x159bed=_0x4e5340(null);return _0x1b19c3(()=>(_0x146fd6&&_0x4df321[_0x4d6a87(0x1b6)](_0x146fd6[_0x4d6a87(0x248)]())[_0x4d6a87(0x1cf)](_0x3ee502=>{var _0x190e46=_0x4d6a87;_0x5af7f6(_0x3ee502),_0x159bed['current']=_0x3ee502['status$'][_0x190e46(0x1df)](_0x409119=>{_0x5bf0b1(_0x409119);});}),()=>{var _0x3e940a=_0x4d6a87,_0x2589f9;(_0x2589f9=_0x159bed[_0x3e940a(0x1fa)])==null||_0x2589f9[_0x3e940a(0x20a)](),_0x159bed[_0x3e940a(0x1fa)]=null;}),[_0x146fd6,_0x4df321]),_0x16466e?_0xf7dfb7(_0x8c52b3,{'align':_0x4d6a87(0x21f),'disabled':_0x14bf10===h[_0x4d6a87(0x1ec)],'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':_0xf7dfb7(Re,{'status':_0x14bf10,'coordinator':_0x16466e}),'children':_0xf7dfb7('button',{'className':_0x5d0285(_0x4d6a87(0x1ed),{'univer-cursor-not-allowed':_0x14bf10===h[_0x4d6a87(0x1ec)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x14bf10!==h[_0x4d6a87(0x1ec)]}),'type':_0x4d6a87(0x238),'children':_0xf7dfb7(B,{'className':_0x4d6a87(0x266)})})}):null;}function _0x56d4(_0xd9f5aa,_0xc8de5b){var _0xcfbf96=_0xcfbf();return _0x56d4=function(_0x56d4ac,_0x478d93){_0x56d4ac=_0x56d4ac-0x1b0;var _0x1430c5=_0xcfbf96[_0x56d4ac];return _0x1430c5;},_0x56d4(_0xd9f5aa,_0xc8de5b);}function Re(_0x43e784){var _0x4852b9=_0x1d91b3;const {status:_0x524349,coordinator:_0x1785e1}=_0x43e784;switch(_0x524349){case h[_0x4852b9(0x253)]:return _0xf7dfb7(Pe,{'coordinator':_0x1785e1});case h[_0x4852b9(0x265)]:return _0xf7dfb7(Ae,{'coordinator':_0x1785e1});case h['NOT_FOLLOWING']:return _0xf7dfb7(Te,{'coordinator':_0x1785e1});case h[_0x4852b9(0x1ec)]:return _0xf7dfb7(Fe,{});case h[_0x4852b9(0x202)]:return _0xf7dfb7($e,{'coordinator':_0x1785e1});default:return null;}}function Pe(_0x13b59b){var _0x3d465c=_0x1d91b3;const {coordinator:_0x1e3074}=_0x13b59b;return _0x55492e(_0x4a7755,{'children':[_0xf7dfb7('div',{'className':_0x3d465c(0x1b8),'children':_0x3d465c(0x207)}),_0xf7dfb7(_0x339215,{'onClick':()=>_0x1e3074[_0x3d465c(0x1db)](),'children':_0x3d465c(0x1e7)})]});}function Ae(_0x9f03c2){var _0x1df8a4=_0x1d91b3;const {coordinator:_0x1bd7e7}=_0x9f03c2;return _0x55492e(_0x4a7755,{'children':[_0xf7dfb7(_0x1df8a4(0x203),{'className':_0x1df8a4(0x1b8),'children':_0x1df8a4(0x1e0)}),_0xf7dfb7(_0x339215,{'onClick':()=>_0x1bd7e7[_0x1df8a4(0x1b5)](),'children':_0x1df8a4(0x1f4)})]});}function Te(_0x6d54f5){var _0xeaf48d=_0x1d91b3;const {coordinator:_0x5b856a}=_0x6d54f5;return _0x55492e(_0x4a7755,{'children':[_0xf7dfb7('div',{'className':_0xeaf48d(0x1b8),'children':_0xeaf48d(0x1f1)}),_0xf7dfb7(_0x339215,{'variant':_0xeaf48d(0x230),'onClick':()=>_0x5b856a[_0xeaf48d(0x234)](),'children':_0xeaf48d(0x1f5)})]});}function $e(_0x13801a){var _0x386bcf=_0x1d91b3;const {coordinator:_0x48ddac}=_0x13801a;return _0x55492e(_0x4a7755,{'children':[_0xf7dfb7(_0x386bcf(0x203),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x386bcf(0x1b2)}),_0xf7dfb7(_0x339215,{'variant':'default','onClick':()=>_0x48ddac[_0x386bcf(0x1dd)](),'children':_0x386bcf(0x226)})]});}function Fe(){var _0x4356ef=_0x1d91b3;return _0xf7dfb7(_0x4a7755,{'children':_0x4356ef(0x1eb)});}var He=Object[_0x1d91b3(0x1f9)],je=(_0x84da2e,_0x9df147,_0x366922,_0x24ba67)=>{var _0x3e4db2=_0x1d91b3;for(var _0x3fe89d=_0x24ba67>0x1?void 0x0:_0x24ba67?He(_0x9df147,_0x366922):_0x9df147,_0x26d0fc=_0x84da2e[_0x3e4db2(0x244)]-0x1,_0x315693;_0x26d0fc>=0x0;_0x26d0fc--)(_0x315693=_0x84da2e[_0x26d0fc])&&(_0x3fe89d=_0x315693(_0x3fe89d)||_0x3fe89d);return _0x3fe89d;},T=(_0x495b21,_0x5913c0)=>(_0x27a068,_0x40cd36)=>_0x5913c0(_0x27a068,_0x40cd36,_0x495b21);let I=class extends _0x191feb{constructor(_0x25b711,_0x11a9d5){var _0x1ab3d2=_0x1d91b3;super(),this[_0x1ab3d2(0x1be)]=_0x25b711,this[_0x1ab3d2(0x1d4)]=_0x11a9d5,this[_0x1ab3d2(0x1c3)]();}[_0x1d91b3(0x1c3)](){var _0x3d207e=_0x1d91b3;this[_0x3d207e(0x1ee)](this[_0x3d207e(0x1d4)]['registerComponent'](_0x62b12d[_0x3d207e(0x257)],()=>_0x2110ef(ye,this[_0x3d207e(0x1be)])));}};I=je([T(0x0,_0x48870b(_0x438238)),T(0x1,_0x361552)],I);const Ue=_0x1d91b3(0x23a),$={};var Ve=Object[_0x1d91b3(0x1f9)],Me=(_0x4dc2a3,_0x409a47,_0x48adc8,_0x1cd9fe)=>{var _0xe90d6c=_0x1d91b3;for(var _0x53f7e0=_0x1cd9fe>0x1?void 0x0:_0x1cd9fe?Ve(_0x409a47,_0x48adc8):_0x409a47,_0x6c4271=_0x4dc2a3[_0xe90d6c(0x244)]-0x1,_0x2fdbd0;_0x6c4271>=0x0;_0x6c4271--)(_0x2fdbd0=_0x4dc2a3[_0x6c4271])&&(_0x53f7e0=_0x2fdbd0(_0x53f7e0)||_0x53f7e0);return _0x53f7e0;},ke=(_0x5f1b4b,_0x596f71)=>(_0x447bf0,_0x1a31a4)=>_0x596f71(_0x447bf0,_0x1a31a4,_0x5f1b4b);let b=class extends _0x191feb{constructor(_0x77b724){var _0x32beb1=_0x1d91b3;super(),this[_0x32beb1(0x243)]=_0x77b724,this[_0x32beb1(0x249)]();}[_0x1d91b3(0x249)](){[_0xce97f8['id'],_0x8954b5['id'],_0x1d4cd8['id']]['forEach'](_0x41324a=>{var _0x590ce3=_0x56d4;this[_0x590ce3(0x1ee)](this[_0x590ce3(0x243)][_0x590ce3(0x22d)](_0x41324a));});}};b=Me([ke(0x0,_0x48870b(L))],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x4e432b,_0x55b836,_0x1e83dc)=>_0x55b836 in _0x4e432b?Ge(_0x4e432b,_0x55b836,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e83dc}):_0x4e432b[_0x55b836]=_0x1e83dc,Be=(_0x4436fc,_0x4751d1,_0x1f6b70,_0x2a6570)=>{var _0x3ea1fc=_0x1d91b3;for(var _0x32257e=_0x2a6570>0x1?void 0x0:_0x2a6570?We(_0x4751d1,_0x1f6b70):_0x4751d1,_0x38cf2c=_0x4436fc[_0x3ea1fc(0x244)]-0x1,_0xe1b1f1;_0x38cf2c>=0x0;_0x38cf2c--)(_0xe1b1f1=_0x4436fc[_0x38cf2c])&&(_0x32257e=_0xe1b1f1(_0x32257e)||_0x32257e);return _0x32257e;},F=(_0x5cc83b,_0x5a9e30)=>(_0x3c9290,_0x1abd44)=>_0x5a9e30(_0x3c9290,_0x1abd44,_0x5cc83b),J=(_0x357e23,_0x5a8751,_0x947829)=>Ye(_0x357e23,typeof _0x5a8751!=_0x1d91b3(0x1b1)?_0x5a8751+'':_0x5a8751,_0x947829);const Ze=_0x1d91b3(0x1c4);let O=class extends _0x4484ff{constructor(_0x3f53b1=$,_0x3ca828,_0xf2d33d){var _0x326c90=_0x1d91b3;super(),this['_config']=_0x3f53b1,this[_0x326c90(0x1be)]=_0x3ca828,this[_0x326c90(0x1d6)]=_0xf2d33d;const {..._0x1fffb3}=_0x5af2c3({},$,this[_0x326c90(0x25b)]);this[_0x326c90(0x1d6)][_0x326c90(0x1da)](Ue,_0x1fffb3);}[_0x1d91b3(0x212)](){var _0x261351=_0x1d91b3;_0x1b55e6(this[_0x261351(0x1be)],_0x4b03db([[L],[m],[b],[I]],this[_0x261351(0x25b)][_0x261351(0x1e3)])),_0x14252c(this[_0x261351(0x1be)],[[b]]);}[_0x1d91b3(0x1e8)](){var _0x17c6f2=_0x1d91b3;_0x14252c(this[_0x17c6f2(0x1be)],[[I]]);}};J(O,_0x1d91b3(0x261),_0x25345c[_0x1d91b3(0x22f)]),J(O,'pluginName',Ze),O=Be([_0x24b533(_0x5e3602),F(0x1,_0x48870b(_0x438238)),F(0x2,_0x287ab1)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x2a1331=_0x590f;(function(_0x56bc02,_0x135502){var _0x4854d9=_0x590f,_0x4c3a75=_0x56bc02();while(!![]){try{var _0x18dc9a=-parseInt(_0x4854d9(0x22a))/0x1+parseInt(_0x4854d9(0x1c3))/0x2*(parseInt(_0x4854d9(0x1ef))/0x3)+-parseInt(_0x4854d9(0x1f9))/0x4+parseInt(_0x4854d9(0x1ff))/0x5*(parseInt(_0x4854d9(0x23f))/0x6)+-parseInt(_0x4854d9(0x1e8))/0x7*(-parseInt(_0x4854d9(0x1e4))/0x8)+parseInt(_0x4854d9(0x1e6))/0x9*(parseInt(_0x4854d9(0x1a7))/0xa)+-parseInt(_0x4854d9(0x1d9))/0xb;if(_0x18dc9a===_0x135502)break;else _0x4c3a75['push'](_0x4c3a75['shift']());}catch(_0x52e430){_0x4c3a75['push'](_0x4c3a75['shift']());}}}(_0x17df,0x8a1ce));var q=Object[_0x2a1331(0x228)],z=(_0x32d178,_0x2a33f6,_0x43adab)=>_0x2a33f6 in _0x32d178?q(_0x32d178,_0x2a33f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43adab}):_0x32d178[_0x2a33f6]=_0x43adab,d=(_0x2f074f,_0x2a94c5,_0x47ae70)=>z(_0x2f074f,typeof _0x2a94c5!='symbol'?_0x2a94c5+'':_0x2a94c5,_0x47ae70);import{Disposable as _0x59d933,toDisposable as _0x24d03d,IUniverInstanceService as _0x1f8514,Inject as _0x46b9a2,Injector as _0x42e71f,IConfigService as _0x42030a,ICommandService as _0xf03154,RxDisposable as _0x320cd9,UniverInstanceType as _0x293676,DisposableCollection as _0x306776,CommandType as _0x4ddeda,DependentOn as _0x337d27,Plugin as _0x3cfdf9,merge as _0x23b7b3,registerDependencies as _0xebb17a,mergeOverrideWithDependencies as _0x2926f8,touchDependencies as _0x56c4f0}from'@univerjs/core';import{useDependency as _0x2b446e,useObservable as _0x57ba1c,IUIPartsService as _0x355c3f,BuiltInUIPart as _0x139aed,connectInjector as _0x53f1ed}from'@univerjs/ui';import{jsx as _0x2034f8,jsxs as _0x5a8ed4,Fragment as _0x106dbe}from'react/jsx-runtime';import{Dropdown as _0x22fa98,clsx as _0x5db37e,Button as _0x135d4f}from'@univerjs/design';import{forwardRef as _0x1b8510,useRef as _0xf9a751,createElement as _0x1c1fa3,useState as _0x4faa17,useEffect as _0x3abde3}from'react';import{CollaborationEvent as _0x331ac7,parseProtocolChangeset as _0x4fafab}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x42790a,SessionStatus as _0x30f362,UniverCollaborationClientPlugin as _0x2001b5}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5296cd,SetWorksheetActiveOperation as _0x44f129}from'@univerjs/sheets';function _0x17df(){var _0xb806be=['map','UniverIcon','_handleNewHost','UNIVER_UNKNOWN','operations','OPERATION','UNIVER_SHEET','indexOf','_uiPartsService','2aBaksg','asObservable','subscribe','_commandDisposable','_init','propertyIsEnumerable','set','stringify','HEADER_MENU','children','get','You\x27re\x20following\x20the\x20presenter','data','onRendered','_handleOperation','pluginName','_config','replace','_mountLiveShare','getValue','length','executeCommand','13587695aKwxTT','sessionStatus$','idSuffix','find','FOLLOWING','_univerInstanceService','_handleTerminate','Stop\x20following','pipe','getTypeOfUnitDisposed$','shouldShareOperation','88MoXoET','registerSharedOperation','14193hMltle','_entities','535836fCLPWc','getMemberID','from','hasOwnProperty','entries','getUnitId','then','1638831fkcvlz','tag','presenting','params','getOwnPropertyDescriptor','status$','trim','http://www.w3.org/2000/svg','add','live-share-icon','3467572aGQjJr','idle','LIVESHARE_FETCH_OPERATIONS','current','parse','_reporters','62965ZDNwPI','getCurrentTypeOfUnit$','evenodd','_startFollowing','button','Start','xlink:href','forEach','next','registerInitialStateReporter','fill','_startLiveShareCoordinator','LIVESHARE_TERMINATE','attrs','presenter','defIds','_injector','prototype','displayName','send','stopPresenting','className','init','registerComponent','extend','ONLINE','univer-mb-3\x20univer-w-full\x20univer-text-sm','Start\x20following','dispose$','path','values','_stopFollowing','_beIdle','assign','has','LIVESHARE_OPERATION','dispose','currentColor','_startPresenting','NOT_FOLLOWING','unitId','defineProperty','PRESENTING','429800zGrMXb','_liveShareService','_collabSession','delete','NEW_CHANGESETS','svg','default','_commandService','_sharedOperations','following','mask','Present\x20this\x20document','random','SAME_OPERATION_SHARE_INTERVAL','live-share.config','defs','getOwnPropertySymbols','_presenter','_handleOffline','getLiveShareCoordinator','getInitialStates','444jQWGEI','LIVESHARE_NEW_HOST','sheet','none','_unitID','memberID','event$','toString','clear','getTypeOfUnitAdded$','_fetchOperations','_collabSessionService','offline','stopFollowing','_status$','_configService','_handleNewChangeSets','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','icon','string','call','You\x27re\x20presenting\x20the\x20document','onCommandExecuted','concat','substring','startFollowing','complete','4930dVnrjN','url(#$1','_status','override','not-following','div','OFFLINE','IDLE','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','disposeWithMe','createInstance','_handleOnline','colorChannel1','reverse','_stopPresenting','tryStartPresenting','univer-size-4','type','includes'];_0x17df=function(){return _0xb806be;};return _0x17df();}import{BehaviorSubject as _0x314fb5,Subject as _0x4f4978}from'rxjs';import{takeUntil as _0xb43856,throttleTime as _0x1db732}from'rxjs/operators';import{SetZoomRatioOperation as _0x1f1a63,SetScrollOperation as _0x432228}from'@univerjs/sheets-ui';var c=function(){var _0x1db14c=_0x2a1331;return c=Object[_0x1db14c(0x220)]||function(_0x584152){var _0x44c46c=_0x1db14c;for(var _0x2805c3,_0x1dfaa3=0x1,_0x1456e0=arguments[_0x44c46c(0x1d7)];_0x1dfaa3<_0x1456e0;_0x1dfaa3++){_0x2805c3=arguments[_0x1dfaa3];for(var _0x5f7abe in _0x2805c3)Object[_0x44c46c(0x210)]['hasOwnProperty'][_0x44c46c(0x1a0)](_0x2805c3,_0x5f7abe)&&(_0x584152[_0x5f7abe]=_0x2805c3[_0x5f7abe]);}return _0x584152;},c['apply'](this,arguments);},Oe=function(_0x52dfcd,_0xbd9b49){var _0x110f04=_0x2a1331,_0xaeaacb={};for(var _0x3c6d86 in _0x52dfcd)Object[_0x110f04(0x210)][_0x110f04(0x1eb)][_0x110f04(0x1a0)](_0x52dfcd,_0x3c6d86)&&_0xbd9b49[_0x110f04(0x1c1)](_0x3c6d86)<0x0&&(_0xaeaacb[_0x3c6d86]=_0x52dfcd[_0x3c6d86]);if(_0x52dfcd!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x24c9d2=0x0,_0x3c6d86=Object[_0x110f04(0x23a)](_0x52dfcd);_0x24c9d2<_0x3c6d86[_0x110f04(0x1d7)];_0x24c9d2++)_0xbd9b49['indexOf'](_0x3c6d86[_0x24c9d2])<0x0&&Object[_0x110f04(0x210)][_0x110f04(0x1c8)][_0x110f04(0x1a0)](_0x52dfcd,_0x3c6d86[_0x24c9d2])&&(_0xaeaacb[_0x3c6d86[_0x24c9d2]]=_0x52dfcd[_0x3c6d86[_0x24c9d2]]);}return _0xaeaacb;},W=_0x1b8510(function(_0x180150,_0x15024b){var _0x4d5a51=_0x2a1331,_0x2fa703=_0x180150[_0x4d5a51(0x19e)],_0x55351d=_0x180150['id'],_0x1075e9=_0x180150['className'],_0x337ae7=_0x180150[_0x4d5a51(0x217)],_0x45113f=Oe(_0x180150,[_0x4d5a51(0x19e),'id',_0x4d5a51(0x214),_0x4d5a51(0x217)]),_0x24458c='univerjs-icon\x20univerjs-icon-'['concat'](_0x55351d,'\x20')['concat'](_0x1075e9||'')[_0x4d5a51(0x1f5)](),_0x96272c=_0xf9a751('_'[_0x4d5a51(0x1a3)](Ne()));return Y(_0x2fa703,''[_0x4d5a51(0x1a3)](_0x55351d),{'defIds':_0x2fa703[_0x4d5a51(0x20e)],'idSuffix':_0x96272c[_0x4d5a51(0x1fc)]},c({'ref':_0x15024b,'className':_0x24458c},_0x45113f),_0x337ae7);});function Y(_0x57302a,_0x11059d,_0x5648e5,_0x42d2d1,_0x1810a1){var _0x3eeb80=_0x2a1331;return _0x1c1fa3(_0x57302a[_0x3eeb80(0x1f0)],c(c({'key':_0x11059d},Ee(_0x57302a,_0x5648e5,_0x1810a1)),_0x42d2d1),(we(_0x57302a,_0x5648e5)[_0x3eeb80(0x1cc)]||[])[_0x3eeb80(0x1ba)](function(_0x5baa96,_0x32dfcc){var _0x533af8=_0x3eeb80;return Y(_0x5baa96,''[_0x533af8(0x1a3)](_0x11059d,'-')[_0x533af8(0x1a3)](_0x57302a[_0x533af8(0x1f0)],'-')[_0x533af8(0x1a3)](_0x32dfcc),_0x5648e5,void 0x0,_0x1810a1);}));}function Ee(_0x4641e6,_0x59b5fd,_0x16112c){var _0x2dfa67=_0x2a1331,_0x3b4123=c({},_0x4641e6[_0x2dfa67(0x20c)]);_0x16112c!=null&&_0x16112c['colorChannel1']&&_0x3b4123['fill']===_0x2dfa67(0x1b3)&&(_0x3b4123[_0x2dfa67(0x209)]=_0x16112c[_0x2dfa67(0x1b3)]),_0x4641e6[_0x2dfa67(0x1f0)]==='mask'&&_0x3b4123['id']&&(_0x3b4123['id']=_0x3b4123['id']+_0x59b5fd[_0x2dfa67(0x1db)]),Object[_0x2dfa67(0x1ec)](_0x3b4123)['forEach'](function(_0x77d27){var _0xb05d07=_0x2dfa67,_0x171651=_0x77d27[0x0],_0x2650a7=_0x77d27[0x1];_0x171651===_0xb05d07(0x234)&&typeof _0x2650a7==_0xb05d07(0x19f)&&(_0x3b4123[_0x171651]=_0x2650a7[_0xb05d07(0x1d4)](/url\(#(.*)\)/,_0xb05d07(0x1a8)[_0xb05d07(0x1a3)](_0x59b5fd[_0xb05d07(0x1db)],')')));});var _0x4b50fc=_0x59b5fd['defIds'];return!_0x4b50fc||_0x4b50fc[_0x2dfa67(0x1d7)]===0x0||(_0x4641e6[_0x2dfa67(0x1f0)]==='use'&&_0x3b4123['xlink:href']&&(_0x3b4123[_0x2dfa67(0x205)]=_0x3b4123[_0x2dfa67(0x205)]+_0x59b5fd[_0x2dfa67(0x1db)]),Object['entries'](_0x3b4123)[_0x2dfa67(0x206)](function(_0x570bfb){var _0x28eb62=_0x2dfa67,_0x8c993f=_0x570bfb[0x0],_0x615e68=_0x570bfb[0x1];typeof _0x615e68==_0x28eb62(0x19f)&&(_0x3b4123[_0x8c993f]=_0x615e68['replace'](/url\(#(.*)\)/,_0x28eb62(0x1a8)[_0x28eb62(0x1a3)](_0x59b5fd['idSuffix'],')')));})),_0x3b4123;}function we(_0x39054f,_0x5cdc14){var _0x352115=_0x2a1331,_0x1a19b1,_0x154107=_0x5cdc14[_0x352115(0x20e)];return!_0x154107||_0x154107[_0x352115(0x1d7)]===0x0?_0x39054f:_0x39054f[_0x352115(0x1f0)]===_0x352115(0x239)&&(!((_0x1a19b1=_0x39054f['children'])===null||_0x1a19b1===void 0x0)&&_0x1a19b1[_0x352115(0x1d7)])?c(c({},_0x39054f),{'children':_0x39054f['children'][_0x352115(0x1ba)](function(_0x593523){var _0x24cbce=_0x352115;return typeof _0x593523[_0x24cbce(0x20c)]['id']==_0x24cbce(0x19f)&&_0x154107&&_0x154107['includes'](_0x593523[_0x24cbce(0x20c)]['id'])?c(c({},_0x593523),{'attrs':c(c({},_0x593523[_0x24cbce(0x20c)]),{'id':_0x593523['attrs']['id']+_0x5cdc14['idSuffix']})}):_0x593523;})}):_0x39054f;}function Ne(){var _0x428928=_0x2a1331;return Math[_0x428928(0x236)]()[_0x428928(0x246)](0x24)[_0x428928(0x1a4)](0x2,0x8);}W['displayName']=_0x2a1331(0x1bb);var Ce={'tag':_0x2a1331(0x22f),'attrs':{'xmlns':_0x2a1331(0x1f6),'fill':_0x2a1331(0x242),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x2a1331(0x21c),'attrs':{'fill':_0x2a1331(0x224),'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':_0x2a1331(0x21c),'attrs':{'fill':_0x2a1331(0x224),'d':_0x2a1331(0x1af),'fillRule':_0x2a1331(0x201),'clipRule':'evenodd'}}]},B=_0x1b8510(function(_0x5692a6,_0x1aa25f){var _0x29ad92=_0x2a1331;return _0x1c1fa3(W,Object['assign']({},_0x5692a6,{'id':_0x29ad92(0x1f8),'ref':_0x1aa25f,'icon':Ce}));});B[_0x2a1331(0x211)]='LiveShareIcon';class L extends _0x59d933{constructor(){var _0x5bff9c=_0x2a1331;super(...arguments),d(this,_0x5bff9c(0x232),new Set()),d(this,_0x5bff9c(0x1fe),new Set());}[_0x2a1331(0x1e5)](_0x2ecc52){var _0x5d196b=_0x2a1331;return this[_0x5d196b(0x232)][_0x5d196b(0x1f7)](_0x2ecc52),_0x24d03d(()=>this[_0x5d196b(0x232)][_0x5d196b(0x22d)](_0x2ecc52));}[_0x2a1331(0x208)](_0x2d1e04){var _0x14381b=_0x2a1331;return this[_0x14381b(0x1fe)][_0x14381b(0x1f7)](_0x2d1e04),_0x24d03d(()=>this[_0x14381b(0x1fe)][_0x14381b(0x22d)](_0x2d1e04));}['shouldShareOperation'](_0x3568d9){var _0x4c69a0=_0x2a1331;return this[_0x4c69a0(0x232)][_0x4c69a0(0x221)](_0x3568d9);}[_0x2a1331(0x23e)](_0x38c4c5){var _0x47d811=_0x2a1331;return Array[_0x47d811(0x1ea)](this[_0x47d811(0x1fe)])[_0x47d811(0x1ba)](_0x344583=>_0x344583(_0x38c4c5));}}var De=Object[_0x2a1331(0x1f3)],Z=(_0x1149ec,_0x19a82a,_0x402518,_0x4586fa)=>{var _0x9923=_0x2a1331;for(var _0x50f640=_0x4586fa>0x1?void 0x0:_0x4586fa?De(_0x19a82a,_0x402518):_0x19a82a,_0x5e0c3b=_0x1149ec[_0x9923(0x1d7)]-0x1,_0x1b33b0;_0x5e0c3b>=0x0;_0x5e0c3b--)(_0x1b33b0=_0x1149ec[_0x5e0c3b])&&(_0x50f640=_0x1b33b0(_0x50f640)||_0x50f640);return _0x50f640;},f=(_0x232d06,_0x164124)=>(_0x53f55e,_0x1fdb56)=>_0x164124(_0x53f55e,_0x1fdb56,_0x232d06);let m=class extends _0x320cd9{constructor(_0x269e70,_0x1caab8,_0x559b0d){var _0x2c5776=_0x2a1331;super(),d(this,_0x2c5776(0x1e7),new Map()),(this[_0x2c5776(0x1de)]=_0x269e70,this[_0x2c5776(0x20f)]=_0x1caab8,this[_0x2c5776(0x24a)]=_0x559b0d,this[_0x2c5776(0x1c7)]());}async['getLiveShareCoordinator'](_0x2d0290){var _0x13a541=_0x2a1331;return this[_0x13a541(0x1e7)][_0x13a541(0x221)](_0x2d0290)||await this['_startLiveShareCoordinator'](_0x2d0290),this['_entities'][_0x13a541(0x1cd)](_0x2d0290);}[_0x2a1331(0x1c7)](){var _0x3ad7df=_0x2a1331;this['_univerInstanceService'][_0x3ad7df(0x248)](_0x293676[_0x3ad7df(0x1c0)])['pipe'](_0xb43856(this[_0x3ad7df(0x21b)]))[_0x3ad7df(0x1c5)](async _0x4bb8af=>{var _0x2d5131=_0x3ad7df;const _0x1a8bd5=_0x4bb8af['getUnitId']();this[_0x2d5131(0x1e7)][_0x2d5131(0x221)](_0x1a8bd5)||this[_0x2d5131(0x20a)](_0x1a8bd5);}),this[_0x3ad7df(0x1de)][_0x3ad7df(0x1e2)](_0x293676[_0x3ad7df(0x1c0)])[_0x3ad7df(0x1e1)](_0xb43856(this['dispose$']))['subscribe'](_0x3a2281=>{var _0x494f4d=_0x3ad7df;const _0x13d72b=_0x3a2281[_0x494f4d(0x1ed)](),_0x297fdd=this[_0x494f4d(0x1e7)][_0x494f4d(0x1cd)](_0x13d72b);_0x297fdd==null||_0x297fdd[_0x494f4d(0x223)]();});}async[_0x2a1331(0x20a)](_0x14fb05){var _0x3b68ca=_0x2a1331;const _0x2fbe1a=await this['_collabSessionService']['requireSession'](_0x14fb05),_0x33ec34=this['_injector'][_0x3b68ca(0x1b1)](C,_0x14fb05,_0x2fbe1a);return _0x33ec34[_0x3b68ca(0x215)](),this[_0x3b68ca(0x1e7)]['set'](_0x14fb05,_0x33ec34),_0x33ec34;}};m=Z([f(0x0,_0x1f8514),f(0x1,_0x46b9a2(_0x42e71f)),f(0x2,_0x46b9a2(_0x42790a))],m);var h=(_0x505534=>(_0x505534[_0x2a1331(0x1ad)]=_0x2a1331(0x24b),_0x505534[_0x2a1331(0x1ae)]=_0x2a1331(0x1fa),_0x505534[_0x2a1331(0x1dd)]=_0x2a1331(0x233),_0x505534['NOT_FOLLOWING']=_0x2a1331(0x1ab),_0x505534['PRESENTING']=_0x2a1331(0x1f1),_0x505534))(h||{});const xe=_0x2a1331(0x237),Le=0xc8;function _0x590f(_0x27f9e1,_0x1509a1){var _0x17df1c=_0x17df();return _0x590f=function(_0x590f9c,_0x4d9727){_0x590f9c=_0x590f9c-0x198;var _0x11886c=_0x17df1c[_0x590f9c];return _0x11886c;},_0x590f(_0x27f9e1,_0x1509a1);}let C=class extends _0x320cd9{constructor(_0x2c870c,_0x2ae074,_0x4cf696,_0x1db98d,_0x23494e){var _0x1dfe9e=_0x2a1331;super(),d(this,_0x1dfe9e(0x199),new _0x314fb5(_0x1dfe9e(0x1fa))),d(this,_0x1dfe9e(0x1f4),this[_0x1dfe9e(0x199)][_0x1dfe9e(0x1c4)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x1dfe9e(0x23b),null),(this[_0x1dfe9e(0x243)]=_0x2c870c,this[_0x1dfe9e(0x22c)]=_0x2ae074,this[_0x1dfe9e(0x19a)]=_0x4cf696,this[_0x1dfe9e(0x22b)]=_0x1db98d,this[_0x1dfe9e(0x231)]=_0x23494e);}get[_0x2a1331(0x1a9)](){var _0x29e6f6=_0x2a1331;return this[_0x29e6f6(0x199)][_0x29e6f6(0x1d6)]();}[_0x2a1331(0x223)](){var _0x5ee130=_0x2a1331,_0x2df42e;(_0x2df42e=this[_0x5ee130(0x1c6)])==null||_0x2df42e[_0x5ee130(0x223)](),this['_status$'][_0x5ee130(0x207)](_0x5ee130(0x1fa)),this[_0x5ee130(0x199)][_0x5ee130(0x1a6)]();}[_0x2a1331(0x215)](){var _0x301679=_0x2a1331;this[_0x301679(0x1c7)]||(this['_init']=!0x0,this[_0x301679(0x22c)][_0x301679(0x1da)][_0x301679(0x1e1)](_0xb43856(this[_0x301679(0x21b)]))[_0x301679(0x1c5)](_0x363e0d=>{var _0xccfc36=_0x301679;switch(_0x363e0d){case _0x30f362[_0xccfc36(0x1ad)]:this[_0xccfc36(0x23c)]();break;case _0x30f362[_0xccfc36(0x218)]:this[_0xccfc36(0x1b2)]();break;}}),this[_0x301679(0x22c)][_0x301679(0x245)][_0x301679(0x1e1)](_0xb43856(this[_0x301679(0x21b)]))['subscribe'](_0x5ec48f=>{var _0x170f32=_0x301679;const {eventID:_0x33f69b}=_0x5ec48f;switch(_0x33f69b){case _0x331ac7[_0x170f32(0x240)]:this[_0x170f32(0x1bc)](_0x5ec48f);break;case _0x331ac7[_0x170f32(0x222)]:this[_0x170f32(0x1d1)](_0x5ec48f);break;case _0x331ac7[_0x170f32(0x20b)]:this[_0x170f32(0x1df)]();break;case _0x331ac7[_0x170f32(0x22e)]:this[_0x170f32(0x19b)](_0x5ec48f);break;}}));}['tryStartPresenting'](){var _0x2a0074=_0x2a1331;this[_0x2a0074(0x22c)][_0x2a0074(0x212)]({'eventID':_0x331ac7['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x2a0074(0x243)],'userID':this['_collabSession']['getMemberID']()}},this[_0x2a0074(0x243)]);}['stopPresenting'](){var _0xe23218=_0x2a1331;this[_0xe23218(0x1a9)]===_0xe23218(0x1f1)&&(this[_0xe23218(0x199)][_0xe23218(0x207)](_0xe23218(0x1fa)),this['_collabSession']['send']({'eventID':_0x331ac7['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0xe23218(0x243)]}},this[_0xe23218(0x243)]));}[_0x2a1331(0x1a5)](){var _0x51994b=_0x2a1331;this[_0x51994b(0x1a9)]===_0x51994b(0x1ab)&&(this[_0x51994b(0x199)]['next']('following'),this[_0x51994b(0x202)]());}['stopFollowing'](){var _0x51aca0=_0x2a1331;this[_0x51aca0(0x1a9)]===_0x51aca0(0x233)&&this[_0x51aca0(0x21e)]();}[_0x2a1331(0x1bc)](_0x363aa9){var _0x1d72e9=_0x2a1331;const {presenter:_0xe69dd8}=_0x363aa9['data'],_0x5ae7df=this[_0x1d72e9(0x22c)]['getMemberID']();this[_0x1d72e9(0x23b)]=_0xe69dd8,_0xe69dd8===_0x5ae7df?(this[_0x1d72e9(0x21e)](),this[_0x1d72e9(0x225)]()):this[_0x1d72e9(0x1a9)]!==_0x1d72e9(0x1ab)&&(this[_0x1d72e9(0x1b5)](),this[_0x1d72e9(0x202)]());}[_0x2a1331(0x249)](){var _0x597f59=_0x2a1331;const _0xbab893={'eventID':_0x331ac7[_0x597f59(0x1fb)]};this[_0x597f59(0x22c)][_0x597f59(0x212)](_0xbab893,this['_unitID']);}[_0x2a1331(0x1df)](){var _0x2e4566=_0x2a1331;this['_presenter']=null,this[_0x2e4566(0x1a9)]!==_0x2e4566(0x1f1)&&this[_0x2e4566(0x21f)]();}['_handleNewChangeSets'](_0x3eed3b){var _0x1b4273=_0x2a1331;if(this[_0x1b4273(0x1a9)]===_0x1b4273(0x233)&&this[_0x1b4273(0x23b)]===_0x3eed3b['data'][_0x1b4273(0x244)]){const _0x54a4d=_0x4fafab(_0x3eed3b[_0x1b4273(0x1cf)])['mutations'][_0x1b4273(0x1b4)]()[_0x1b4273(0x1dc)](_0x26a699=>_0x26a699['id']===_0x5296cd['id']);if(_0x54a4d){const _0xe533e7=_0x54a4d['params'][_0x1b4273(0x227)],_0x5dc11e=_0x54a4d[_0x1b4273(0x1f2)][_0x1b4273(0x241)]['id'];setTimeout(()=>{var _0x31fca3=_0x1b4273;this[_0x31fca3(0x231)]['executeCommand'](_0x44f129['id'],{'unitId':_0xe533e7,'subUnitId':_0x5dc11e},{'fromCollab':!0x0});});}}}[_0x2a1331(0x225)](){var _0x4f6869=_0x2a1331;this[_0x4f6869(0x199)][_0x4f6869(0x207)](_0x4f6869(0x1f1));const _0x22a79f=new Map(),_0x515c91=this[_0x4f6869(0x1c6)]=new _0x306776();_0x515c91[_0x4f6869(0x1f7)](_0x24d03d(()=>{var _0x32f3c2=_0x4f6869;_0x22a79f[_0x32f3c2(0x206)](_0x42e1cc=>_0x42e1cc[_0x32f3c2(0x1a6)]()),_0x22a79f[_0x32f3c2(0x247)]();})),_0x515c91[_0x4f6869(0x1f7)](this[_0x4f6869(0x231)][_0x4f6869(0x1a2)](_0x3f5800=>{var _0xeaf40e=_0x4f6869,_0x42121b;if(_0x3f5800[_0xeaf40e(0x1b8)]!==_0x4ddeda[_0xeaf40e(0x1bf)]||!this[_0xeaf40e(0x22b)][_0xeaf40e(0x1e3)](_0x3f5800['id']))return;const {id:_0x3e89b0}=_0x3f5800;let _0x1640b4;_0x22a79f[_0xeaf40e(0x221)](_0x3e89b0)?_0x1640b4=_0x22a79f[_0xeaf40e(0x1cd)](_0x3e89b0):(_0x1640b4=new _0x4f4978(),_0x22a79f[_0xeaf40e(0x1c9)](_0x3e89b0,_0x1640b4),_0x1640b4[_0xeaf40e(0x1e1)](_0x1db732((_0x42121b=this[_0xeaf40e(0x19a)]['getConfig'](xe))!=null?_0x42121b:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3aa2b9=>{var _0xd04dd4=_0xeaf40e;this[_0xd04dd4(0x22c)][_0xd04dd4(0x212)]({'eventID':_0x331ac7[_0xd04dd4(0x222)],'data':{'unitID':this[_0xd04dd4(0x243)],'operations':{[_0x3aa2b9['id']]:{'id':_0x3aa2b9['id'],'params':JSON[_0xd04dd4(0x1ca)](_0x3aa2b9[_0xd04dd4(0x1f2)])}}}},this[_0xd04dd4(0x243)]);})),_0x1640b4[_0xeaf40e(0x207)](_0x3f5800);})),this[_0x4f6869(0x22b)]['getInitialStates'](this[_0x4f6869(0x243)])['forEach'](_0xe69c98=>this['_collabSession'][_0x4f6869(0x212)]({'eventID':_0x331ac7['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xe69c98['id']]:{'id':_0xe69c98['id'],'params':JSON['stringify'](_0xe69c98[_0x4f6869(0x1f2)])}}}},this['_unitID']));}[_0x2a1331(0x1b5)](){var _0x436b46=_0x2a1331,_0x345f78;this['_status$'][_0x436b46(0x207)](_0x436b46(0x1fa)),(_0x345f78=this[_0x436b46(0x1c6)])==null||_0x345f78[_0x436b46(0x223)](),this[_0x436b46(0x1c6)]=null;}['_startFollowing'](){var _0x1a60f1=_0x2a1331,_0x3ded12;(_0x3ded12=this[_0x1a60f1(0x1c6)])==null||_0x3ded12[_0x1a60f1(0x223)](),this[_0x1a60f1(0x199)][_0x1a60f1(0x207)]('following');}['_beIdle'](){var _0x3a12a1=_0x2a1331,_0x5b8f30;this[_0x3a12a1(0x199)]['next'](_0x3a12a1(0x1fa)),(_0x5b8f30=this[_0x3a12a1(0x1c6)])==null||_0x5b8f30[_0x3a12a1(0x223)](),this['_commandDisposable']=null;}[_0x2a1331(0x21e)](){var _0x2c3857=_0x2a1331,_0x54a3ea;this[_0x2c3857(0x199)][_0x2c3857(0x207)](_0x2c3857(0x1ab)),(_0x54a3ea=this['_commandDisposable'])==null||_0x54a3ea[_0x2c3857(0x223)]();}[_0x2a1331(0x1d1)](_0x38e7ea){var _0x11962f=_0x2a1331;if(['presenting',_0x11962f(0x1ab),_0x11962f(0x24b)][_0x11962f(0x1b9)](this[_0x11962f(0x1a9)])||!_0x38e7ea[_0x11962f(0x1cf)][_0x11962f(0x20d)]||_0x38e7ea[_0x11962f(0x1cf)][_0x11962f(0x20d)]===this[_0x11962f(0x22c)][_0x11962f(0x1e9)]())return;this[_0x11962f(0x1a9)]===_0x11962f(0x1fa)&&this[_0x11962f(0x202)]();const _0x387c28=_0x38e7ea[_0x11962f(0x1cf)][_0x11962f(0x1be)];Object[_0x11962f(0x21d)](_0x387c28)[_0x11962f(0x206)](_0x3aca9f=>{var _0x4ebb8b=_0x11962f;this['_commandService'][_0x4ebb8b(0x1d8)](_0x3aca9f['id'],_0x3aca9f[_0x4ebb8b(0x1f2)]?JSON[_0x4ebb8b(0x1fd)](_0x3aca9f[_0x4ebb8b(0x1f2)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x212afc=_0x2a1331,_0x3703bd;this[_0x212afc(0x199)][_0x212afc(0x207)](_0x212afc(0x24b)),(_0x3703bd=this[_0x212afc(0x1c6)])==null||_0x3703bd[_0x212afc(0x223)]();}[_0x2a1331(0x1b2)](){var _0x3c96d1=_0x2a1331;this[_0x3c96d1(0x199)][_0x3c96d1(0x207)](_0x3c96d1(0x1fa)),this['_fetchOperations']();}};C=Z([f(0x2,_0x42030a),f(0x3,_0x46b9a2(L)),f(0x4,_0xf03154)],C);function ye(){var _0x2d489b=_0x2a1331;const _0x2e42f1=_0x2b446e(m),_0x20b7bf=_0x2b446e(_0x1f8514),_0x2d0b24=_0x57ba1c(()=>_0x20b7bf[_0x2d489b(0x200)](_0x293676[_0x2d489b(0x1c0)]),void 0x0,!0x1,[]),[_0x379b44,_0x4a3c80]=_0x4faa17(null),[_0x19d428,_0x5453c8]=_0x4faa17(h[_0x2d489b(0x1ae)]),_0x5d9f67=_0xf9a751(null);return _0x3abde3(()=>(_0x2d0b24&&_0x2e42f1[_0x2d489b(0x23d)](_0x2d0b24[_0x2d489b(0x1ed)]())[_0x2d489b(0x1ee)](_0x26222a=>{var _0x16b523=_0x2d489b;_0x4a3c80(_0x26222a),_0x5d9f67[_0x16b523(0x1fc)]=_0x26222a[_0x16b523(0x1f4)]['subscribe'](_0x15d259=>{_0x5453c8(_0x15d259);});}),()=>{var _0x23e938=_0x2d489b,_0x293763;(_0x293763=_0x5d9f67[_0x23e938(0x1fc)])==null||_0x293763['unsubscribe'](),_0x5d9f67['current']=null;}),[_0x2d0b24,_0x2e42f1]),_0x379b44?_0x2034f8(_0x22fa98,{'align':'end','disabled':_0x19d428===h['OFFLINE'],'className':_0x2d489b(0x19c),'overlay':_0x2034f8(Re,{'status':_0x19d428,'coordinator':_0x379b44}),'children':_0x2034f8(_0x2d489b(0x203),{'className':_0x5db37e(_0x2d489b(0x19d),{'univer-cursor-not-allowed':_0x19d428===h[_0x2d489b(0x1ad)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x19d428!==h[_0x2d489b(0x1ad)]}),'type':_0x2d489b(0x203),'children':_0x2034f8(B,{'className':_0x2d489b(0x1b7)})})}):null;}function Re(_0x2f06e2){var _0x9d55c0=_0x2a1331;const {status:_0x15b351,coordinator:_0x3b31e3}=_0x2f06e2;switch(_0x15b351){case h[_0x9d55c0(0x1ae)]:return _0x2034f8(Pe,{'coordinator':_0x3b31e3});case h[_0x9d55c0(0x1dd)]:return _0x2034f8(Ae,{'coordinator':_0x3b31e3});case h[_0x9d55c0(0x226)]:return _0x2034f8(Te,{'coordinator':_0x3b31e3});case h['OFFLINE']:return _0x2034f8(Fe,{});case h[_0x9d55c0(0x229)]:return _0x2034f8($e,{'coordinator':_0x3b31e3});default:return null;}}function Pe(_0x2c9bc7){var _0x3d56df=_0x2a1331;const {coordinator:_0x35bf7d}=_0x2c9bc7;return _0x5a8ed4(_0x106dbe,{'children':[_0x2034f8(_0x3d56df(0x1ac),{'className':_0x3d56df(0x219),'children':_0x3d56df(0x235)}),_0x2034f8(_0x135d4f,{'onClick':()=>_0x35bf7d[_0x3d56df(0x1b6)](),'children':_0x3d56df(0x204)})]});}function Ae(_0x571fde){var _0xd2fb67=_0x2a1331;const {coordinator:_0x16bf7e}=_0x571fde;return _0x5a8ed4(_0x106dbe,{'children':[_0x2034f8(_0xd2fb67(0x1ac),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xd2fb67(0x1ce)}),_0x2034f8(_0x135d4f,{'onClick':()=>_0x16bf7e[_0xd2fb67(0x198)](),'children':_0xd2fb67(0x1e0)})]});}function Te(_0x40f8ba){var _0x383762=_0x2a1331;const {coordinator:_0x5e70ab}=_0x40f8ba;return _0x5a8ed4(_0x106dbe,{'children':[_0x2034f8(_0x383762(0x1ac),{'className':_0x383762(0x219),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2034f8(_0x135d4f,{'variant':'text','onClick':()=>_0x5e70ab[_0x383762(0x1a5)](),'children':_0x383762(0x21a)})]});}function $e(_0x4d6bf4){var _0x3a3251=_0x2a1331;const {coordinator:_0x257b0b}=_0x4d6bf4;return _0x5a8ed4(_0x106dbe,{'children':[_0x2034f8(_0x3a3251(0x1ac),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3a3251(0x1a1)}),_0x2034f8(_0x135d4f,{'variant':_0x3a3251(0x230),'onClick':()=>_0x257b0b[_0x3a3251(0x213)](),'children':'Stop\x20presenting'})]});}function Fe(){return _0x2034f8(_0x106dbe,{'children':'You\x27are\x20offline.'});}var He=Object['getOwnPropertyDescriptor'],je=(_0x2c2417,_0x3a51ec,_0x4ea5ed,_0x3526d4)=>{var _0x11b6c4=_0x2a1331;for(var _0x2398fb=_0x3526d4>0x1?void 0x0:_0x3526d4?He(_0x3a51ec,_0x4ea5ed):_0x3a51ec,_0x70e420=_0x2c2417[_0x11b6c4(0x1d7)]-0x1,_0x2ae8cc;_0x70e420>=0x0;_0x70e420--)(_0x2ae8cc=_0x2c2417[_0x70e420])&&(_0x2398fb=_0x2ae8cc(_0x2398fb)||_0x2398fb);return _0x2398fb;},T=(_0x522a45,_0x51216f)=>(_0x447208,_0x280655)=>_0x51216f(_0x447208,_0x280655,_0x522a45);let I=class extends _0x59d933{constructor(_0x34e10b,_0x4deadf){var _0x426c0d=_0x2a1331;super(),this[_0x426c0d(0x20f)]=_0x34e10b,this[_0x426c0d(0x1c2)]=_0x4deadf,this[_0x426c0d(0x1d5)]();}[_0x2a1331(0x1d5)](){var _0xb64cff=_0x2a1331;this[_0xb64cff(0x1b0)](this[_0xb64cff(0x1c2)][_0xb64cff(0x216)](_0x139aed[_0xb64cff(0x1cb)],()=>_0x53f1ed(ye,this[_0xb64cff(0x20f)])));}};I=je([T(0x0,_0x46b9a2(_0x42e71f)),T(0x1,_0x355c3f)],I);const Ue=_0x2a1331(0x238),$={};var Ve=Object[_0x2a1331(0x1f3)],Me=(_0x452357,_0x5b8de7,_0x57b5a0,_0x3bbad9)=>{var _0x4f2957=_0x2a1331;for(var _0xf12d48=_0x3bbad9>0x1?void 0x0:_0x3bbad9?Ve(_0x5b8de7,_0x57b5a0):_0x5b8de7,_0x50b8a8=_0x452357[_0x4f2957(0x1d7)]-0x1,_0xc03438;_0x50b8a8>=0x0;_0x50b8a8--)(_0xc03438=_0x452357[_0x50b8a8])&&(_0xf12d48=_0xc03438(_0xf12d48)||_0xf12d48);return _0xf12d48;},ke=(_0xd91102,_0x59d295)=>(_0x5e42f3,_0x10aa1e)=>_0x59d295(_0x5e42f3,_0x10aa1e,_0xd91102);let b=class extends _0x59d933{constructor(_0x168e8e){var _0x28de87=_0x2a1331;super(),this[_0x28de87(0x22b)]=_0x168e8e,this['_init']();}['_init'](){[_0x1f1a63['id'],_0x432228['id'],_0x44f129['id']]['forEach'](_0x4578f1=>{var _0x20fd99=_0x590f;this[_0x20fd99(0x1b0)](this[_0x20fd99(0x22b)][_0x20fd99(0x1e5)](_0x4578f1));});}};b=Me([ke(0x0,_0x46b9a2(L))],b);var Ge=Object[_0x2a1331(0x228)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x3480bc,_0xe319e4,_0x4b9fbf)=>_0xe319e4 in _0x3480bc?Ge(_0x3480bc,_0xe319e4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b9fbf}):_0x3480bc[_0xe319e4]=_0x4b9fbf,Be=(_0x1db061,_0xadb093,_0xa9ad3a,_0x5ef862)=>{var _0xacae28=_0x2a1331;for(var _0x333a80=_0x5ef862>0x1?void 0x0:_0x5ef862?We(_0xadb093,_0xa9ad3a):_0xadb093,_0x5eaf90=_0x1db061[_0xacae28(0x1d7)]-0x1,_0x11a26d;_0x5eaf90>=0x0;_0x5eaf90--)(_0x11a26d=_0x1db061[_0x5eaf90])&&(_0x333a80=_0x11a26d(_0x333a80)||_0x333a80);return _0x333a80;},F=(_0x31f3f1,_0x492f08)=>(_0x4da660,_0x3150b9)=>_0x492f08(_0x4da660,_0x3150b9,_0x31f3f1),J=(_0x7bc37a,_0x22ba54,_0x114455)=>Ye(_0x7bc37a,typeof _0x22ba54!='symbol'?_0x22ba54+'':_0x22ba54,_0x114455);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x3cfdf9{constructor(_0x342c71=$,_0x1bad54,_0x13481b){var _0x2729f1=_0x2a1331;super(),this[_0x2729f1(0x1d3)]=_0x342c71,this[_0x2729f1(0x20f)]=_0x1bad54,this[_0x2729f1(0x19a)]=_0x13481b;const {..._0x5cfbbb}=_0x23b7b3({},$,this[_0x2729f1(0x1d3)]);this['_configService']['setConfig'](Ue,_0x5cfbbb);}['onStarting'](){var _0xe3a148=_0x2a1331;_0xebb17a(this[_0xe3a148(0x20f)],_0x2926f8([[L],[m],[b],[I]],this[_0xe3a148(0x1d3)][_0xe3a148(0x1aa)])),_0x56c4f0(this[_0xe3a148(0x20f)],[[b]]);}[_0x2a1331(0x1d0)](){var _0x2a7c3b=_0x2a1331;_0x56c4f0(this[_0x2a7c3b(0x20f)],[[I]]);}};J(O,_0x2a1331(0x1b8),_0x293676[_0x2a1331(0x1bd)]),J(O,_0x2a1331(0x1d2),Ze),O=Be([_0x337d27(_0x2001b5),F(0x1,_0x46b9a2(_0x42e71f)),F(0x2,_0x42030a)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1d91b3=_0x56d4;(function(_0x410680,_0x55d9e8){var _0xd1ec=_0x56d4,_0x3975d0=_0x410680();while(!![]){try{var _0x549993=parseInt(_0xd1ec(0x21d))/0x1+parseInt(_0xd1ec(0x208))/0x2*(-parseInt(_0xd1ec(0x25d))/0x3)+parseInt(_0xd1ec(0x224))/0x4*(-parseInt(_0xd1ec(0x220))/0x5)+-parseInt(_0xd1ec(0x213))/0x6*(-parseInt(_0xd1ec(0x1c8))/0x7)+parseInt(_0xd1ec(0x24f))/0x8+-parseInt(_0xd1ec(0x200))/0x9*(parseInt(_0xd1ec(0x247))/0xa)+parseInt(_0xd1ec(0x24c))/0xb*(parseInt(_0xd1ec(0x20d))/0xc);if(_0x549993===_0x55d9e8)break;else _0x3975d0['push'](_0x3975d0['shift']());}catch(_0x6261eb){_0x3975d0['push'](_0x3975d0['shift']());}}}(_0xcfbf,0xa3ff1));var q=Object[_0x1d91b3(0x1e1)],z=(_0x2707dd,_0x5191d3,_0x323918)=>_0x5191d3 in _0x2707dd?q(_0x2707dd,_0x5191d3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x323918}):_0x2707dd[_0x5191d3]=_0x323918,d=(_0x507b55,_0x5c474d,_0x137522)=>z(_0x507b55,typeof _0x5c474d!=_0x1d91b3(0x1b1)?_0x5c474d+'':_0x5c474d,_0x137522);import{Disposable as _0x191feb,toDisposable as _0x5245b4,IUniverInstanceService as _0x512063,Inject as _0x48870b,Injector as _0x438238,IConfigService as _0x287ab1,ICommandService as _0x39c5a2,RxDisposable as _0xc4fa72,UniverInstanceType as _0x25345c,DisposableCollection as _0x1ff42f,CommandType as _0x45e416,DependentOn as _0x24b533,Plugin as _0x4484ff,merge as _0x5af2c3,registerDependencies as _0x1b55e6,mergeOverrideWithDependencies as _0x4b03db,touchDependencies as _0x14252c}from'@univerjs/core';import{useDependency as _0x597f8c,useObservable as _0x201988,IUIPartsService as _0x361552,BuiltInUIPart as _0x62b12d,connectInjector as _0x2110ef}from'@univerjs/ui';import{jsx as _0xf7dfb7,jsxs as _0x55492e,Fragment as _0x4a7755}from'react/jsx-runtime';import{Dropdown as _0x8c52b3,clsx as _0x5d0285,Button as _0x339215}from'@univerjs/design';import{forwardRef as _0x5008bc,useRef as _0x4e5340,createElement as _0x53edc6,useState as _0x5a5681,useEffect as _0x1b19c3}from'react';import{CollaborationEvent as _0x48ddd3,parseProtocolChangeset as _0xa009ba}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xe30f9e,SessionStatus as _0x4cc7bd,UniverCollaborationClientPlugin as _0x5e3602}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x12de5a,SetWorksheetActiveOperation as _0x1d4cd8}from'@univerjs/sheets';import{BehaviorSubject as _0xc98ea9,Subject as _0x4d009e}from'rxjs';import{takeUntil as _0x8b4f19,throttleTime as _0x3babf7}from'rxjs/operators';import{SetZoomRatioOperation as _0xce97f8,SetScrollOperation as _0x8954b5}from'@univerjs/sheets-ui';var c=function(){var _0x387829=_0x1d91b3;return c=Object[_0x387829(0x1d3)]||function(_0x21da49){var _0x40679d=_0x387829;for(var _0x4a63c8,_0x5bf22a=0x1,_0x2f0812=arguments[_0x40679d(0x244)];_0x5bf22a<_0x2f0812;_0x5bf22a++){_0x4a63c8=arguments[_0x5bf22a];for(var _0x91d53f in _0x4a63c8)Object[_0x40679d(0x23c)][_0x40679d(0x262)][_0x40679d(0x1d7)](_0x4a63c8,_0x91d53f)&&(_0x21da49[_0x91d53f]=_0x4a63c8[_0x91d53f]);}return _0x21da49;},c[_0x387829(0x222)](this,arguments);},Oe=function(_0x1481e0,_0x2b70cf){var _0x1a375b=_0x1d91b3,_0x214831={};for(var _0x545087 in _0x1481e0)Object[_0x1a375b(0x23c)]['hasOwnProperty'][_0x1a375b(0x1d7)](_0x1481e0,_0x545087)&&_0x2b70cf['indexOf'](_0x545087)<0x0&&(_0x214831[_0x545087]=_0x1481e0[_0x545087]);if(_0x1481e0!=null&&typeof Object[_0x1a375b(0x221)]==_0x1a375b(0x21a)){for(var _0x286d47=0x0,_0x545087=Object[_0x1a375b(0x221)](_0x1481e0);_0x286d47<_0x545087['length'];_0x286d47++)_0x2b70cf[_0x1a375b(0x1f8)](_0x545087[_0x286d47])<0x0&&Object[_0x1a375b(0x23c)]['propertyIsEnumerable'][_0x1a375b(0x1d7)](_0x1481e0,_0x545087[_0x286d47])&&(_0x214831[_0x545087[_0x286d47]]=_0x1481e0[_0x545087[_0x286d47]]);}return _0x214831;},W=_0x5008bc(function(_0x268dea,_0x467c57){var _0xfb77ba=_0x1d91b3,_0x1774bf=_0x268dea[_0xfb77ba(0x1bf)],_0x217618=_0x268dea['id'],_0x29914c=_0x268dea[_0xfb77ba(0x20b)],_0x50b912=_0x268dea[_0xfb77ba(0x254)],_0x33d026=Oe(_0x268dea,[_0xfb77ba(0x1bf),'id',_0xfb77ba(0x20b),'extend']),_0x243c69=_0xfb77ba(0x1ff)[_0xfb77ba(0x237)](_0x217618,'\x20')[_0xfb77ba(0x237)](_0x29914c||'')[_0xfb77ba(0x236)](),_0x57c40d=_0x4e5340('_'[_0xfb77ba(0x237)](Ne()));return Y(_0x1774bf,''[_0xfb77ba(0x237)](_0x217618),{'defIds':_0x1774bf[_0xfb77ba(0x227)],'idSuffix':_0x57c40d['current']},c({'ref':_0x467c57,'className':_0x243c69},_0x33d026),_0x50b912);});function Y(_0x38bfb1,_0x5508c1,_0x5bc3d0,_0x31002c,_0x453f81){var _0x5992a2=_0x1d91b3;return _0x53edc6(_0x38bfb1[_0x5992a2(0x1f0)],c(c({'key':_0x5508c1},Ee(_0x38bfb1,_0x5bc3d0,_0x453f81)),_0x31002c),(we(_0x38bfb1,_0x5bc3d0)[_0x5992a2(0x252)]||[])[_0x5992a2(0x255)](function(_0x4f3885,_0x4ccc13){var _0x190d1f=_0x5992a2;return Y(_0x4f3885,''['concat'](_0x5508c1,'-')[_0x190d1f(0x237)](_0x38bfb1['tag'],'-')[_0x190d1f(0x237)](_0x4ccc13),_0x5bc3d0,void 0x0,_0x453f81);}));}function Ee(_0x1a78b5,_0x2a2963,_0x2f556b){var _0x53791e=_0x1d91b3,_0x345ecc=c({},_0x1a78b5[_0x53791e(0x241)]);_0x2f556b!=null&&_0x2f556b[_0x53791e(0x1ce)]&&_0x345ecc[_0x53791e(0x239)]==='colorChannel1'&&(_0x345ecc[_0x53791e(0x239)]=_0x2f556b[_0x53791e(0x1ce)]),_0x1a78b5['tag']===_0x53791e(0x1de)&&_0x345ecc['id']&&(_0x345ecc['id']=_0x345ecc['id']+_0x2a2963['idSuffix']),Object[_0x53791e(0x25c)](_0x345ecc)['forEach'](function(_0x106186){var _0x17b065=_0x53791e,_0x1ff691=_0x106186[0x0],_0x487206=_0x106186[0x1];_0x1ff691===_0x17b065(0x1de)&&typeof _0x487206==_0x17b065(0x1d1)&&(_0x345ecc[_0x1ff691]=_0x487206[_0x17b065(0x23e)](/url\(#(.*)\)/,'url(#$1'[_0x17b065(0x237)](_0x2a2963[_0x17b065(0x260)],')')));});var _0x4e6bfc=_0x2a2963['defIds'];return!_0x4e6bfc||_0x4e6bfc[_0x53791e(0x244)]===0x0||(_0x1a78b5[_0x53791e(0x1f0)]==='use'&&_0x345ecc['xlink:href']&&(_0x345ecc['xlink:href']=_0x345ecc[_0x53791e(0x21e)]+_0x2a2963['idSuffix']),Object[_0x53791e(0x25c)](_0x345ecc)[_0x53791e(0x1f6)](function(_0x1ae11f){var _0x58b403=_0x53791e,_0x4e2c31=_0x1ae11f[0x0],_0x430663=_0x1ae11f[0x1];typeof _0x430663==_0x58b403(0x1d1)&&(_0x345ecc[_0x4e2c31]=_0x430663['replace'](/url\(#(.*)\)/,'url(#$1'[_0x58b403(0x237)](_0x2a2963[_0x58b403(0x260)],')')));})),_0x345ecc;}function we(_0x24d310,_0x474e5f){var _0x5e251c=_0x1d91b3,_0x376f59,_0x12674e=_0x474e5f[_0x5e251c(0x227)];return!_0x12674e||_0x12674e[_0x5e251c(0x244)]===0x0?_0x24d310:_0x24d310[_0x5e251c(0x1f0)]===_0x5e251c(0x1c1)&&(!((_0x376f59=_0x24d310[_0x5e251c(0x252)])===null||_0x376f59===void 0x0)&&_0x376f59[_0x5e251c(0x244)])?c(c({},_0x24d310),{'children':_0x24d310['children'][_0x5e251c(0x255)](function(_0x5853e0){var _0x3fd3bf=_0x5e251c;return typeof _0x5853e0[_0x3fd3bf(0x241)]['id']==_0x3fd3bf(0x1d1)&&_0x12674e&&_0x12674e[_0x3fd3bf(0x1dc)](_0x5853e0['attrs']['id'])?c(c({},_0x5853e0),{'attrs':c(c({},_0x5853e0[_0x3fd3bf(0x241)]),{'id':_0x5853e0['attrs']['id']+_0x474e5f[_0x3fd3bf(0x260)]})}):_0x5853e0;})}):_0x24d310;}function Ne(){var _0x3e2ef0=_0x1d91b3;return Math[_0x3e2ef0(0x1ea)]()['toString'](0x24)['substring'](0x2,0x8);}W[_0x1d91b3(0x25f)]=_0x1d91b3(0x20e);var Ce={'tag':_0x1d91b3(0x263),'attrs':{'xmlns':_0x1d91b3(0x20c),'fill':_0x1d91b3(0x229),'viewBox':'0\x200\x2017\x2017','width':_0x1d91b3(0x250),'height':'1em'},'children':[{'tag':_0x1d91b3(0x1bc),'attrs':{'fill':_0x1d91b3(0x246),'d':_0x1d91b3(0x1cb)}},{'tag':_0x1d91b3(0x1bc),'attrs':{'fill':_0x1d91b3(0x246),'d':_0x1d91b3(0x24a),'fillRule':_0x1d91b3(0x1fc),'clipRule':_0x1d91b3(0x1fc)}}]},B=_0x5008bc(function(_0xb35c0f,_0x56ef12){var _0x221d3e=_0x1d91b3;return _0x53edc6(W,Object[_0x221d3e(0x1d3)]({},_0xb35c0f,{'id':_0x221d3e(0x23d),'ref':_0x56ef12,'icon':Ce}));});B[_0x1d91b3(0x25f)]='LiveShareIcon';class L extends _0x191feb{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x1d91b3(0x22d)](_0x5d0306){var _0x6370ec=_0x1d91b3;return this['_sharedOperations'][_0x6370ec(0x1d2)](_0x5d0306),_0x5245b4(()=>this[_0x6370ec(0x1cc)]['delete'](_0x5d0306));}[_0x1d91b3(0x1b4)](_0xda5b11){var _0x31485a=_0x1d91b3;return this[_0x31485a(0x1bb)][_0x31485a(0x1d2)](_0xda5b11),_0x5245b4(()=>this[_0x31485a(0x1bb)]['delete'](_0xda5b11));}[_0x1d91b3(0x23b)](_0xa9591b){var _0x338870=_0x1d91b3;return this[_0x338870(0x1cc)][_0x338870(0x264)](_0xa9591b);}['getInitialStates'](_0x50c871){var _0x2d054e=_0x1d91b3;return Array[_0x2d054e(0x215)](this['_reporters'])[_0x2d054e(0x255)](_0xca8c17=>_0xca8c17(_0x50c871));}}var De=Object[_0x1d91b3(0x1f9)],Z=(_0xc4afa4,_0x595aa6,_0x5b0205,_0x5ff81)=>{var _0x49c2e8=_0x1d91b3;for(var _0x592f33=_0x5ff81>0x1?void 0x0:_0x5ff81?De(_0x595aa6,_0x5b0205):_0x595aa6,_0x58e75a=_0xc4afa4[_0x49c2e8(0x244)]-0x1,_0x176dd9;_0x58e75a>=0x0;_0x58e75a--)(_0x176dd9=_0xc4afa4[_0x58e75a])&&(_0x592f33=_0x176dd9(_0x592f33)||_0x592f33);return _0x592f33;},f=(_0x5714d7,_0x591e58)=>(_0x304904,_0x2a9047)=>_0x591e58(_0x304904,_0x2a9047,_0x5714d7);let m=class extends _0xc4fa72{constructor(_0x2918da,_0x327a71,_0x3961dd){var _0x4eaa48=_0x1d91b3;super(),d(this,_0x4eaa48(0x1b3),new Map()),(this[_0x4eaa48(0x1e9)]=_0x2918da,this[_0x4eaa48(0x1be)]=_0x327a71,this[_0x4eaa48(0x1fb)]=_0x3961dd,this['_init']());}async[_0x1d91b3(0x1b6)](_0x87d8b4){var _0x644ead=_0x1d91b3;return this[_0x644ead(0x1b3)]['has'](_0x87d8b4)||await this['_startLiveShareCoordinator'](_0x87d8b4),this[_0x644ead(0x1b3)]['get'](_0x87d8b4);}[_0x1d91b3(0x249)](){var _0x356e22=_0x1d91b3;this[_0x356e22(0x1e9)][_0x356e22(0x256)](_0x25345c['UNIVER_SHEET'])[_0x356e22(0x225)](_0x8b4f19(this['dispose$']))[_0x356e22(0x1df)](async _0x528039=>{var _0x1baa49=_0x356e22;const _0x4f4f8e=_0x528039[_0x1baa49(0x248)]();this[_0x1baa49(0x1b3)][_0x1baa49(0x264)](_0x4f4f8e)||this[_0x1baa49(0x1d8)](_0x4f4f8e);}),this[_0x356e22(0x1e9)][_0x356e22(0x214)](_0x25345c[_0x356e22(0x1b0)])[_0x356e22(0x225)](_0x8b4f19(this['dispose$']))[_0x356e22(0x1df)](_0x1bdd25=>{var _0x14db9b=_0x356e22;const _0x37870f=_0x1bdd25[_0x14db9b(0x248)](),_0x3e17b2=this[_0x14db9b(0x1b3)]['get'](_0x37870f);_0x3e17b2==null||_0x3e17b2[_0x14db9b(0x232)]();});}async[_0x1d91b3(0x1d8)](_0x12f43e){var _0x1eb4c0=_0x1d91b3;const _0x528e60=await this[_0x1eb4c0(0x1fb)][_0x1eb4c0(0x21b)](_0x12f43e),_0x5f31df=this[_0x1eb4c0(0x1be)][_0x1eb4c0(0x1e6)](C,_0x12f43e,_0x528e60);return _0x5f31df['init'](),this['_entities'][_0x1eb4c0(0x1c0)](_0x12f43e,_0x5f31df),_0x5f31df;}};m=Z([f(0x0,_0x512063),f(0x1,_0x48870b(_0x438238)),f(0x2,_0x48870b(_0xe30f9e))],m);var h=(_0x5642a3=>(_0x5642a3[_0x1d91b3(0x1ec)]=_0x1d91b3(0x1c7),_0x5642a3[_0x1d91b3(0x253)]=_0x1d91b3(0x20f),_0x5642a3[_0x1d91b3(0x265)]=_0x1d91b3(0x24d),_0x5642a3[_0x1d91b3(0x233)]=_0x1d91b3(0x22e),_0x5642a3[_0x1d91b3(0x202)]=_0x1d91b3(0x21c),_0x5642a3))(h||{});function _0xcfbf(){var _0x353780=['_mountLiveShare','UNIVER_LIVE_SHARE_PLUGIN','_startFollowing','_startPresenting','offline','1281gstghQ','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_OPERATION','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','_sharedOperations','status$','colorChannel1','then','getMemberID','string','add','assign','_uiPartsService','executeCommand','_configService','call','_startLiveShareCoordinator','send','setConfig','tryStartPresenting','includes','stopPresenting','mask','subscribe','You\x27re\x20following\x20the\x20presenter','defineProperty','unitId','override','complete','stringify','createInstance','Start','onRendered','_univerInstanceService','random','You\x27are\x20offline.','OFFLINE','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','disposeWithMe','OPERATION','tag','You\x27re\x20not\x20following\x20the\x20presenter','asObservable','_collabSession','Stop\x20following','Start\x20following','forEach','get','indexOf','getOwnPropertyDescriptor','current','_collabSessionService','evenodd','onCommandExecuted','reverse','univerjs-icon\x20univerjs-icon-','141993SvHGQb','_status','PRESENTING','div','_handleOnline','NEW_CHANGESETS','_handleTerminate','Present\x20this\x20document','845692cdiHKL','_commandDisposable','unsubscribe','className','http://www.w3.org/2000/svg','16374648bvwsXm','UniverIcon','idle','data','getValue','onStarting','43692PgJoyH','getTypeOfUnitDisposed$','from','LIVESHARE_TERMINATE','dispose$','_handleNewHost','presenter','function','requireSession','presenting','642331ElJdhG','xlink:href','end','5oMehGi','getOwnPropertySymbols','apply','mutations','3629876pkaQFT','pipe','Stop\x20presenting','defIds','next','none','_stopFollowing','find','_handleOffline','registerSharedOperation','not-following','UNIVER_UNKNOWN','text','_presenter','dispose','NOT_FOLLOWING','startFollowing','_unitID','trim','concat','button','fill','live-share.config','shouldShareOperation','prototype','live-share-icon','replace','_commandService','_stopPresenting','attrs','parse','_liveShareService','length','getInitialStates','currentColor','810OfFFqM','getUnitId','_init','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','sessionStatus$','11lfuXFi','following','ONLINE','2906688QejURF','1em','LIVESHARE_REQUEST_HOST','children','IDLE','extend','map','getTypeOfUnitAdded$','HEADER_MENU','params','event$','memberID','_config','entries','6qUenKj','_handleNewChangeSets','displayName','idSuffix','type','hasOwnProperty','svg','has','FOLLOWING','univer-size-4','values','LIVESHARE_NEW_HOST','UNIVER_SHEET','symbol','You\x27re\x20presenting\x20the\x20document','_entities','registerInitialStateReporter','stopFollowing','getLiveShareCoordinator','_handleOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','_status$','sheet','_reporters','path','_fetchOperations','_injector','icon','set','defs','_beIdle'];_0xcfbf=function(){return _0x353780;};return _0xcfbf();}const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0xc4fa72{constructor(_0x43c1f3,_0x2aa253,_0x52e966,_0x25e185,_0x36096d){var _0x4d03b5=_0x1d91b3;super(),d(this,_0x4d03b5(0x1b9),new _0xc98ea9('idle')),d(this,_0x4d03b5(0x1cd),this['_status$'][_0x4d03b5(0x1f2)]()),d(this,'_init',!0x1),d(this,_0x4d03b5(0x209),null),d(this,_0x4d03b5(0x231),null),(this[_0x4d03b5(0x235)]=_0x43c1f3,this[_0x4d03b5(0x1f3)]=_0x2aa253,this[_0x4d03b5(0x1d6)]=_0x52e966,this[_0x4d03b5(0x243)]=_0x25e185,this[_0x4d03b5(0x23f)]=_0x36096d);}get[_0x1d91b3(0x201)](){var _0x37a619=_0x1d91b3;return this[_0x37a619(0x1b9)][_0x37a619(0x211)]();}[_0x1d91b3(0x232)](){var _0x38ab54=_0x1d91b3,_0x5a0807;(_0x5a0807=this[_0x38ab54(0x209)])==null||_0x5a0807[_0x38ab54(0x232)](),this[_0x38ab54(0x1b9)]['next']('idle'),this[_0x38ab54(0x1b9)][_0x38ab54(0x1e4)]();}['init'](){var _0x24211c=_0x1d91b3;this['_init']||(this['_init']=!0x0,this[_0x24211c(0x1f3)][_0x24211c(0x24b)][_0x24211c(0x225)](_0x8b4f19(this[_0x24211c(0x217)]))['subscribe'](_0x56e12a=>{var _0xf3abf9=_0x24211c;switch(_0x56e12a){case _0x4cc7bd[_0xf3abf9(0x1ec)]:this[_0xf3abf9(0x22c)]();break;case _0x4cc7bd[_0xf3abf9(0x24e)]:this[_0xf3abf9(0x204)]();break;}}),this[_0x24211c(0x1f3)][_0x24211c(0x259)][_0x24211c(0x225)](_0x8b4f19(this['dispose$']))['subscribe'](_0x276f30=>{var _0x143202=_0x24211c;const {eventID:_0x6c5e25}=_0x276f30;switch(_0x6c5e25){case _0x48ddd3[_0x143202(0x268)]:this[_0x143202(0x218)](_0x276f30);break;case _0x48ddd3[_0x143202(0x1ca)]:this['_handleOperation'](_0x276f30);break;case _0x48ddd3[_0x143202(0x216)]:this[_0x143202(0x206)]();break;case _0x48ddd3[_0x143202(0x205)]:this[_0x143202(0x25e)](_0x276f30);break;}}));}['tryStartPresenting'](){var _0x34720c=_0x1d91b3;this[_0x34720c(0x1f3)][_0x34720c(0x1d9)]({'eventID':_0x48ddd3[_0x34720c(0x251)],'data':{'unitID':this[_0x34720c(0x235)],'userID':this[_0x34720c(0x1f3)][_0x34720c(0x1d0)]()}},this[_0x34720c(0x235)]);}[_0x1d91b3(0x1dd)](){var _0x332965=_0x1d91b3;this['_status']===_0x332965(0x21c)&&(this['_status$']['next'](_0x332965(0x20f)),this[_0x332965(0x1f3)][_0x332965(0x1d9)]({'eventID':_0x48ddd3[_0x332965(0x216)],'data':{'unitID':this['_unitID']}},this[_0x332965(0x235)]));}[_0x1d91b3(0x234)](){var _0x5c72ab=_0x1d91b3;this[_0x5c72ab(0x201)]===_0x5c72ab(0x22e)&&(this[_0x5c72ab(0x1b9)][_0x5c72ab(0x228)](_0x5c72ab(0x24d)),this[_0x5c72ab(0x1c5)]());}['stopFollowing'](){var _0x413753=_0x1d91b3;this['_status']==='following'&&this[_0x413753(0x22a)]();}[_0x1d91b3(0x218)](_0x328a21){var _0xca4e7=_0x1d91b3;const {presenter:_0x405793}=_0x328a21['data'],_0x54adb2=this[_0xca4e7(0x1f3)][_0xca4e7(0x1d0)]();this[_0xca4e7(0x231)]=_0x405793,_0x405793===_0x54adb2?(this[_0xca4e7(0x22a)](),this['_startPresenting']()):this[_0xca4e7(0x201)]!=='not-following'&&(this[_0xca4e7(0x240)](),this[_0xca4e7(0x1c5)]());}[_0x1d91b3(0x1bd)](){var _0x46bacf=_0x1d91b3;const _0x34b5b9={'eventID':_0x48ddd3[_0x46bacf(0x1c9)]};this[_0x46bacf(0x1f3)]['send'](_0x34b5b9,this[_0x46bacf(0x235)]);}['_handleTerminate'](){var _0xa876ab=_0x1d91b3;this[_0xa876ab(0x231)]=null,this[_0xa876ab(0x201)]!==_0xa876ab(0x21c)&&this[_0xa876ab(0x1c2)]();}[_0x1d91b3(0x25e)](_0x5f08e4){var _0x2bead4=_0x1d91b3;if(this['_status']==='following'&&this['_presenter']===_0x5f08e4[_0x2bead4(0x210)][_0x2bead4(0x25a)]){const _0x22d2cf=_0xa009ba(_0x5f08e4[_0x2bead4(0x210)])[_0x2bead4(0x223)][_0x2bead4(0x1fe)]()[_0x2bead4(0x22b)](_0x12ee7d=>_0x12ee7d['id']===_0x12de5a['id']);if(_0x22d2cf){const _0x49e15b=_0x22d2cf[_0x2bead4(0x258)][_0x2bead4(0x1e2)],_0x2d7838=_0x22d2cf[_0x2bead4(0x258)][_0x2bead4(0x1ba)]['id'];setTimeout(()=>{var _0x427611=_0x2bead4;this[_0x427611(0x23f)][_0x427611(0x1d5)](_0x1d4cd8['id'],{'unitId':_0x49e15b,'subUnitId':_0x2d7838},{'fromCollab':!0x0});});}}}[_0x1d91b3(0x1c6)](){var _0x176621=_0x1d91b3;this[_0x176621(0x1b9)][_0x176621(0x228)](_0x176621(0x21c));const _0x4f7134=new Map(),_0x7b3bd1=this[_0x176621(0x209)]=new _0x1ff42f();_0x7b3bd1[_0x176621(0x1d2)](_0x5245b4(()=>{var _0x23fcb8=_0x176621;_0x4f7134['forEach'](_0x3efffd=>_0x3efffd[_0x23fcb8(0x1e4)]()),_0x4f7134['clear']();})),_0x7b3bd1['add'](this['_commandService'][_0x176621(0x1fd)](_0x5e4ea0=>{var _0x14e063=_0x176621,_0x48b264;if(_0x5e4ea0[_0x14e063(0x261)]!==_0x45e416[_0x14e063(0x1ef)]||!this[_0x14e063(0x243)][_0x14e063(0x23b)](_0x5e4ea0['id']))return;const {id:_0x3787cd}=_0x5e4ea0;let _0x2f07cb;_0x4f7134[_0x14e063(0x264)](_0x3787cd)?_0x2f07cb=_0x4f7134[_0x14e063(0x1f7)](_0x3787cd):(_0x2f07cb=new _0x4d009e(),_0x4f7134['set'](_0x3787cd,_0x2f07cb),_0x2f07cb[_0x14e063(0x225)](_0x3babf7((_0x48b264=this[_0x14e063(0x1d6)]['getConfig'](xe))!=null?_0x48b264:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x14e063(0x1df)](_0x1a6868=>{var _0x2b6282=_0x14e063;this['_collabSession']['send']({'eventID':_0x48ddd3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2b6282(0x235)],'operations':{[_0x1a6868['id']]:{'id':_0x1a6868['id'],'params':JSON['stringify'](_0x1a6868[_0x2b6282(0x258)])}}}},this[_0x2b6282(0x235)]);})),_0x2f07cb['next'](_0x5e4ea0);})),this['_liveShareService'][_0x176621(0x245)](this[_0x176621(0x235)])[_0x176621(0x1f6)](_0x120e3a=>this[_0x176621(0x1f3)][_0x176621(0x1d9)]({'eventID':_0x48ddd3[_0x176621(0x1ca)],'data':{'unitID':this[_0x176621(0x235)],'operations':{[_0x120e3a['id']]:{'id':_0x120e3a['id'],'params':JSON[_0x176621(0x1e5)](_0x120e3a['params'])}}}},this['_unitID']));}['_stopPresenting'](){var _0x510193=_0x1d91b3,_0x9993da;this['_status$'][_0x510193(0x228)]('idle'),(_0x9993da=this[_0x510193(0x209)])==null||_0x9993da[_0x510193(0x232)](),this[_0x510193(0x209)]=null;}[_0x1d91b3(0x1c5)](){var _0x46de51=_0x1d91b3,_0x21a23a;(_0x21a23a=this[_0x46de51(0x209)])==null||_0x21a23a[_0x46de51(0x232)](),this[_0x46de51(0x1b9)][_0x46de51(0x228)](_0x46de51(0x24d));}[_0x1d91b3(0x1c2)](){var _0x5b8f50=_0x1d91b3,_0x2794cb;this[_0x5b8f50(0x1b9)]['next'](_0x5b8f50(0x20f)),(_0x2794cb=this[_0x5b8f50(0x209)])==null||_0x2794cb['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x13831e=_0x1d91b3,_0x1e2561;this[_0x13831e(0x1b9)][_0x13831e(0x228)]('not-following'),(_0x1e2561=this[_0x13831e(0x209)])==null||_0x1e2561['dispose']();}[_0x1d91b3(0x1b7)](_0x4905e8){var _0x5a1bb2=_0x1d91b3;if(['presenting','not-following','offline']['includes'](this['_status'])||!_0x4905e8[_0x5a1bb2(0x210)][_0x5a1bb2(0x219)]||_0x4905e8[_0x5a1bb2(0x210)][_0x5a1bb2(0x219)]===this['_collabSession'][_0x5a1bb2(0x1d0)]())return;this[_0x5a1bb2(0x201)]===_0x5a1bb2(0x20f)&&this[_0x5a1bb2(0x1c5)]();const _0x302d15=_0x4905e8['data']['operations'];Object[_0x5a1bb2(0x267)](_0x302d15)['forEach'](_0x5d08cd=>{var _0x2d01b3=_0x5a1bb2;this['_commandService'][_0x2d01b3(0x1d5)](_0x5d08cd['id'],_0x5d08cd[_0x2d01b3(0x258)]?JSON[_0x2d01b3(0x242)](_0x5d08cd[_0x2d01b3(0x258)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x52eb61=_0x1d91b3,_0x574fcc;this[_0x52eb61(0x1b9)][_0x52eb61(0x228)](_0x52eb61(0x1c7)),(_0x574fcc=this[_0x52eb61(0x209)])==null||_0x574fcc['dispose']();}[_0x1d91b3(0x204)](){var _0x285dd6=_0x1d91b3;this[_0x285dd6(0x1b9)][_0x285dd6(0x228)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x287ab1),f(0x3,_0x48870b(L)),f(0x4,_0x39c5a2)],C);function ye(){var _0x4d6a87=_0x1d91b3;const _0x4df321=_0x597f8c(m),_0x57814c=_0x597f8c(_0x512063),_0x146fd6=_0x201988(()=>_0x57814c['getCurrentTypeOfUnit$'](_0x25345c['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x16466e,_0x5af7f6]=_0x5a5681(null),[_0x14bf10,_0x5bf0b1]=_0x5a5681(h['IDLE']),_0x159bed=_0x4e5340(null);return _0x1b19c3(()=>(_0x146fd6&&_0x4df321[_0x4d6a87(0x1b6)](_0x146fd6[_0x4d6a87(0x248)]())[_0x4d6a87(0x1cf)](_0x3ee502=>{var _0x190e46=_0x4d6a87;_0x5af7f6(_0x3ee502),_0x159bed['current']=_0x3ee502['status$'][_0x190e46(0x1df)](_0x409119=>{_0x5bf0b1(_0x409119);});}),()=>{var _0x3e940a=_0x4d6a87,_0x2589f9;(_0x2589f9=_0x159bed[_0x3e940a(0x1fa)])==null||_0x2589f9[_0x3e940a(0x20a)](),_0x159bed[_0x3e940a(0x1fa)]=null;}),[_0x146fd6,_0x4df321]),_0x16466e?_0xf7dfb7(_0x8c52b3,{'align':_0x4d6a87(0x21f),'disabled':_0x14bf10===h[_0x4d6a87(0x1ec)],'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':_0xf7dfb7(Re,{'status':_0x14bf10,'coordinator':_0x16466e}),'children':_0xf7dfb7('button',{'className':_0x5d0285(_0x4d6a87(0x1ed),{'univer-cursor-not-allowed':_0x14bf10===h[_0x4d6a87(0x1ec)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x14bf10!==h[_0x4d6a87(0x1ec)]}),'type':_0x4d6a87(0x238),'children':_0xf7dfb7(B,{'className':_0x4d6a87(0x266)})})}):null;}function _0x56d4(_0xd9f5aa,_0xc8de5b){var _0xcfbf96=_0xcfbf();return _0x56d4=function(_0x56d4ac,_0x478d93){_0x56d4ac=_0x56d4ac-0x1b0;var _0x1430c5=_0xcfbf96[_0x56d4ac];return _0x1430c5;},_0x56d4(_0xd9f5aa,_0xc8de5b);}function Re(_0x43e784){var _0x4852b9=_0x1d91b3;const {status:_0x524349,coordinator:_0x1785e1}=_0x43e784;switch(_0x524349){case h[_0x4852b9(0x253)]:return _0xf7dfb7(Pe,{'coordinator':_0x1785e1});case h[_0x4852b9(0x265)]:return _0xf7dfb7(Ae,{'coordinator':_0x1785e1});case h['NOT_FOLLOWING']:return _0xf7dfb7(Te,{'coordinator':_0x1785e1});case h[_0x4852b9(0x1ec)]:return _0xf7dfb7(Fe,{});case h[_0x4852b9(0x202)]:return _0xf7dfb7($e,{'coordinator':_0x1785e1});default:return null;}}function Pe(_0x13b59b){var _0x3d465c=_0x1d91b3;const {coordinator:_0x1e3074}=_0x13b59b;return _0x55492e(_0x4a7755,{'children':[_0xf7dfb7('div',{'className':_0x3d465c(0x1b8),'children':_0x3d465c(0x207)}),_0xf7dfb7(_0x339215,{'onClick':()=>_0x1e3074[_0x3d465c(0x1db)](),'children':_0x3d465c(0x1e7)})]});}function Ae(_0x9f03c2){var _0x1df8a4=_0x1d91b3;const {coordinator:_0x1bd7e7}=_0x9f03c2;return _0x55492e(_0x4a7755,{'children':[_0xf7dfb7(_0x1df8a4(0x203),{'className':_0x1df8a4(0x1b8),'children':_0x1df8a4(0x1e0)}),_0xf7dfb7(_0x339215,{'onClick':()=>_0x1bd7e7[_0x1df8a4(0x1b5)](),'children':_0x1df8a4(0x1f4)})]});}function Te(_0x6d54f5){var _0xeaf48d=_0x1d91b3;const {coordinator:_0x5b856a}=_0x6d54f5;return _0x55492e(_0x4a7755,{'children':[_0xf7dfb7('div',{'className':_0xeaf48d(0x1b8),'children':_0xeaf48d(0x1f1)}),_0xf7dfb7(_0x339215,{'variant':_0xeaf48d(0x230),'onClick':()=>_0x5b856a[_0xeaf48d(0x234)](),'children':_0xeaf48d(0x1f5)})]});}function $e(_0x13801a){var _0x386bcf=_0x1d91b3;const {coordinator:_0x48ddac}=_0x13801a;return _0x55492e(_0x4a7755,{'children':[_0xf7dfb7(_0x386bcf(0x203),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x386bcf(0x1b2)}),_0xf7dfb7(_0x339215,{'variant':'default','onClick':()=>_0x48ddac[_0x386bcf(0x1dd)](),'children':_0x386bcf(0x226)})]});}function Fe(){var _0x4356ef=_0x1d91b3;return _0xf7dfb7(_0x4a7755,{'children':_0x4356ef(0x1eb)});}var He=Object[_0x1d91b3(0x1f9)],je=(_0x84da2e,_0x9df147,_0x366922,_0x24ba67)=>{var _0x3e4db2=_0x1d91b3;for(var _0x3fe89d=_0x24ba67>0x1?void 0x0:_0x24ba67?He(_0x9df147,_0x366922):_0x9df147,_0x26d0fc=_0x84da2e[_0x3e4db2(0x244)]-0x1,_0x315693;_0x26d0fc>=0x0;_0x26d0fc--)(_0x315693=_0x84da2e[_0x26d0fc])&&(_0x3fe89d=_0x315693(_0x3fe89d)||_0x3fe89d);return _0x3fe89d;},T=(_0x495b21,_0x5913c0)=>(_0x27a068,_0x40cd36)=>_0x5913c0(_0x27a068,_0x40cd36,_0x495b21);let I=class extends _0x191feb{constructor(_0x25b711,_0x11a9d5){var _0x1ab3d2=_0x1d91b3;super(),this[_0x1ab3d2(0x1be)]=_0x25b711,this[_0x1ab3d2(0x1d4)]=_0x11a9d5,this[_0x1ab3d2(0x1c3)]();}[_0x1d91b3(0x1c3)](){var _0x3d207e=_0x1d91b3;this[_0x3d207e(0x1ee)](this[_0x3d207e(0x1d4)]['registerComponent'](_0x62b12d[_0x3d207e(0x257)],()=>_0x2110ef(ye,this[_0x3d207e(0x1be)])));}};I=je([T(0x0,_0x48870b(_0x438238)),T(0x1,_0x361552)],I);const Ue=_0x1d91b3(0x23a),$={};var Ve=Object[_0x1d91b3(0x1f9)],Me=(_0x4dc2a3,_0x409a47,_0x48adc8,_0x1cd9fe)=>{var _0xe90d6c=_0x1d91b3;for(var _0x53f7e0=_0x1cd9fe>0x1?void 0x0:_0x1cd9fe?Ve(_0x409a47,_0x48adc8):_0x409a47,_0x6c4271=_0x4dc2a3[_0xe90d6c(0x244)]-0x1,_0x2fdbd0;_0x6c4271>=0x0;_0x6c4271--)(_0x2fdbd0=_0x4dc2a3[_0x6c4271])&&(_0x53f7e0=_0x2fdbd0(_0x53f7e0)||_0x53f7e0);return _0x53f7e0;},ke=(_0x5f1b4b,_0x596f71)=>(_0x447bf0,_0x1a31a4)=>_0x596f71(_0x447bf0,_0x1a31a4,_0x5f1b4b);let b=class extends _0x191feb{constructor(_0x77b724){var _0x32beb1=_0x1d91b3;super(),this[_0x32beb1(0x243)]=_0x77b724,this[_0x32beb1(0x249)]();}[_0x1d91b3(0x249)](){[_0xce97f8['id'],_0x8954b5['id'],_0x1d4cd8['id']]['forEach'](_0x41324a=>{var _0x590ce3=_0x56d4;this[_0x590ce3(0x1ee)](this[_0x590ce3(0x243)][_0x590ce3(0x22d)](_0x41324a));});}};b=Me([ke(0x0,_0x48870b(L))],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x4e432b,_0x55b836,_0x1e83dc)=>_0x55b836 in _0x4e432b?Ge(_0x4e432b,_0x55b836,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e83dc}):_0x4e432b[_0x55b836]=_0x1e83dc,Be=(_0x4436fc,_0x4751d1,_0x1f6b70,_0x2a6570)=>{var _0x3ea1fc=_0x1d91b3;for(var _0x32257e=_0x2a6570>0x1?void 0x0:_0x2a6570?We(_0x4751d1,_0x1f6b70):_0x4751d1,_0x38cf2c=_0x4436fc[_0x3ea1fc(0x244)]-0x1,_0xe1b1f1;_0x38cf2c>=0x0;_0x38cf2c--)(_0xe1b1f1=_0x4436fc[_0x38cf2c])&&(_0x32257e=_0xe1b1f1(_0x32257e)||_0x32257e);return _0x32257e;},F=(_0x5cc83b,_0x5a9e30)=>(_0x3c9290,_0x1abd44)=>_0x5a9e30(_0x3c9290,_0x1abd44,_0x5cc83b),J=(_0x357e23,_0x5a8751,_0x947829)=>Ye(_0x357e23,typeof _0x5a8751!=_0x1d91b3(0x1b1)?_0x5a8751+'':_0x5a8751,_0x947829);const Ze=_0x1d91b3(0x1c4);let O=class extends _0x4484ff{constructor(_0x3f53b1=$,_0x3ca828,_0xf2d33d){var _0x326c90=_0x1d91b3;super(),this['_config']=_0x3f53b1,this[_0x326c90(0x1be)]=_0x3ca828,this[_0x326c90(0x1d6)]=_0xf2d33d;const {..._0x1fffb3}=_0x5af2c3({},$,this[_0x326c90(0x25b)]);this[_0x326c90(0x1d6)][_0x326c90(0x1da)](Ue,_0x1fffb3);}[_0x1d91b3(0x212)](){var _0x261351=_0x1d91b3;_0x1b55e6(this[_0x261351(0x1be)],_0x4b03db([[L],[m],[b],[I]],this[_0x261351(0x25b)][_0x261351(0x1e3)])),_0x14252c(this[_0x261351(0x1be)],[[b]]);}[_0x1d91b3(0x1e8)](){var _0x17c6f2=_0x1d91b3;_0x14252c(this[_0x17c6f2(0x1be)],[[I]]);}};J(O,_0x1d91b3(0x261),_0x25345c[_0x1d91b3(0x22f)]),J(O,'pluginName',Ze),O=Be([_0x24b533(_0x5e3602),F(0x1,_0x48870b(_0x438238)),F(0x2,_0x287ab1)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x2a1331=_0x590f;(function(_0x56bc02,_0x135502){var _0x4854d9=_0x590f,_0x4c3a75=_0x56bc02();while(!![]){try{var _0x18dc9a=-parseInt(_0x4854d9(0x22a))/0x1+parseInt(_0x4854d9(0x1c3))/0x2*(parseInt(_0x4854d9(0x1ef))/0x3)+-parseInt(_0x4854d9(0x1f9))/0x4+parseInt(_0x4854d9(0x1ff))/0x5*(parseInt(_0x4854d9(0x23f))/0x6)+-parseInt(_0x4854d9(0x1e8))/0x7*(-parseInt(_0x4854d9(0x1e4))/0x8)+parseInt(_0x4854d9(0x1e6))/0x9*(parseInt(_0x4854d9(0x1a7))/0xa)+-parseInt(_0x4854d9(0x1d9))/0xb;if(_0x18dc9a===_0x135502)break;else _0x4c3a75['push'](_0x4c3a75['shift']());}catch(_0x52e430){_0x4c3a75['push'](_0x4c3a75['shift']());}}}(_0x17df,0x8a1ce));var q=Object[_0x2a1331(0x228)],z=(_0x32d178,_0x2a33f6,_0x43adab)=>_0x2a33f6 in _0x32d178?q(_0x32d178,_0x2a33f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43adab}):_0x32d178[_0x2a33f6]=_0x43adab,d=(_0x2f074f,_0x2a94c5,_0x47ae70)=>z(_0x2f074f,typeof _0x2a94c5!='symbol'?_0x2a94c5+'':_0x2a94c5,_0x47ae70);import{Disposable as _0x59d933,toDisposable as _0x24d03d,IUniverInstanceService as _0x1f8514,Inject as _0x46b9a2,Injector as _0x42e71f,IConfigService as _0x42030a,ICommandService as _0xf03154,RxDisposable as _0x320cd9,UniverInstanceType as _0x293676,DisposableCollection as _0x306776,CommandType as _0x4ddeda,DependentOn as _0x337d27,Plugin as _0x3cfdf9,merge as _0x23b7b3,registerDependencies as _0xebb17a,mergeOverrideWithDependencies as _0x2926f8,touchDependencies as _0x56c4f0}from'@univerjs/core';import{useDependency as _0x2b446e,useObservable as _0x57ba1c,IUIPartsService as _0x355c3f,BuiltInUIPart as _0x139aed,connectInjector as _0x53f1ed}from'@univerjs/ui';import{jsx as _0x2034f8,jsxs as _0x5a8ed4,Fragment as _0x106dbe}from'react/jsx-runtime';import{Dropdown as _0x22fa98,clsx as _0x5db37e,Button as _0x135d4f}from'@univerjs/design';import{forwardRef as _0x1b8510,useRef as _0xf9a751,createElement as _0x1c1fa3,useState as _0x4faa17,useEffect as _0x3abde3}from'react';import{CollaborationEvent as _0x331ac7,parseProtocolChangeset as _0x4fafab}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x42790a,SessionStatus as _0x30f362,UniverCollaborationClientPlugin as _0x2001b5}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5296cd,SetWorksheetActiveOperation as _0x44f129}from'@univerjs/sheets';function _0x17df(){var _0xb806be=['map','UniverIcon','_handleNewHost','UNIVER_UNKNOWN','operations','OPERATION','UNIVER_SHEET','indexOf','_uiPartsService','2aBaksg','asObservable','subscribe','_commandDisposable','_init','propertyIsEnumerable','set','stringify','HEADER_MENU','children','get','You\x27re\x20following\x20the\x20presenter','data','onRendered','_handleOperation','pluginName','_config','replace','_mountLiveShare','getValue','length','executeCommand','13587695aKwxTT','sessionStatus$','idSuffix','find','FOLLOWING','_univerInstanceService','_handleTerminate','Stop\x20following','pipe','getTypeOfUnitDisposed$','shouldShareOperation','88MoXoET','registerSharedOperation','14193hMltle','_entities','535836fCLPWc','getMemberID','from','hasOwnProperty','entries','getUnitId','then','1638831fkcvlz','tag','presenting','params','getOwnPropertyDescriptor','status$','trim','http://www.w3.org/2000/svg','add','live-share-icon','3467572aGQjJr','idle','LIVESHARE_FETCH_OPERATIONS','current','parse','_reporters','62965ZDNwPI','getCurrentTypeOfUnit$','evenodd','_startFollowing','button','Start','xlink:href','forEach','next','registerInitialStateReporter','fill','_startLiveShareCoordinator','LIVESHARE_TERMINATE','attrs','presenter','defIds','_injector','prototype','displayName','send','stopPresenting','className','init','registerComponent','extend','ONLINE','univer-mb-3\x20univer-w-full\x20univer-text-sm','Start\x20following','dispose$','path','values','_stopFollowing','_beIdle','assign','has','LIVESHARE_OPERATION','dispose','currentColor','_startPresenting','NOT_FOLLOWING','unitId','defineProperty','PRESENTING','429800zGrMXb','_liveShareService','_collabSession','delete','NEW_CHANGESETS','svg','default','_commandService','_sharedOperations','following','mask','Present\x20this\x20document','random','SAME_OPERATION_SHARE_INTERVAL','live-share.config','defs','getOwnPropertySymbols','_presenter','_handleOffline','getLiveShareCoordinator','getInitialStates','444jQWGEI','LIVESHARE_NEW_HOST','sheet','none','_unitID','memberID','event$','toString','clear','getTypeOfUnitAdded$','_fetchOperations','_collabSessionService','offline','stopFollowing','_status$','_configService','_handleNewChangeSets','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','icon','string','call','You\x27re\x20presenting\x20the\x20document','onCommandExecuted','concat','substring','startFollowing','complete','4930dVnrjN','url(#$1','_status','override','not-following','div','OFFLINE','IDLE','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','disposeWithMe','createInstance','_handleOnline','colorChannel1','reverse','_stopPresenting','tryStartPresenting','univer-size-4','type','includes'];_0x17df=function(){return _0xb806be;};return _0x17df();}import{BehaviorSubject as _0x314fb5,Subject as _0x4f4978}from'rxjs';import{takeUntil as _0xb43856,throttleTime as _0x1db732}from'rxjs/operators';import{SetZoomRatioOperation as _0x1f1a63,SetScrollOperation as _0x432228}from'@univerjs/sheets-ui';var c=function(){var _0x1db14c=_0x2a1331;return c=Object[_0x1db14c(0x220)]||function(_0x584152){var _0x44c46c=_0x1db14c;for(var _0x2805c3,_0x1dfaa3=0x1,_0x1456e0=arguments[_0x44c46c(0x1d7)];_0x1dfaa3<_0x1456e0;_0x1dfaa3++){_0x2805c3=arguments[_0x1dfaa3];for(var _0x5f7abe in _0x2805c3)Object[_0x44c46c(0x210)]['hasOwnProperty'][_0x44c46c(0x1a0)](_0x2805c3,_0x5f7abe)&&(_0x584152[_0x5f7abe]=_0x2805c3[_0x5f7abe]);}return _0x584152;},c['apply'](this,arguments);},Oe=function(_0x52dfcd,_0xbd9b49){var _0x110f04=_0x2a1331,_0xaeaacb={};for(var _0x3c6d86 in _0x52dfcd)Object[_0x110f04(0x210)][_0x110f04(0x1eb)][_0x110f04(0x1a0)](_0x52dfcd,_0x3c6d86)&&_0xbd9b49[_0x110f04(0x1c1)](_0x3c6d86)<0x0&&(_0xaeaacb[_0x3c6d86]=_0x52dfcd[_0x3c6d86]);if(_0x52dfcd!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x24c9d2=0x0,_0x3c6d86=Object[_0x110f04(0x23a)](_0x52dfcd);_0x24c9d2<_0x3c6d86[_0x110f04(0x1d7)];_0x24c9d2++)_0xbd9b49['indexOf'](_0x3c6d86[_0x24c9d2])<0x0&&Object[_0x110f04(0x210)][_0x110f04(0x1c8)][_0x110f04(0x1a0)](_0x52dfcd,_0x3c6d86[_0x24c9d2])&&(_0xaeaacb[_0x3c6d86[_0x24c9d2]]=_0x52dfcd[_0x3c6d86[_0x24c9d2]]);}return _0xaeaacb;},W=_0x1b8510(function(_0x180150,_0x15024b){var _0x4d5a51=_0x2a1331,_0x2fa703=_0x180150[_0x4d5a51(0x19e)],_0x55351d=_0x180150['id'],_0x1075e9=_0x180150['className'],_0x337ae7=_0x180150[_0x4d5a51(0x217)],_0x45113f=Oe(_0x180150,[_0x4d5a51(0x19e),'id',_0x4d5a51(0x214),_0x4d5a51(0x217)]),_0x24458c='univerjs-icon\x20univerjs-icon-'['concat'](_0x55351d,'\x20')['concat'](_0x1075e9||'')[_0x4d5a51(0x1f5)](),_0x96272c=_0xf9a751('_'[_0x4d5a51(0x1a3)](Ne()));return Y(_0x2fa703,''[_0x4d5a51(0x1a3)](_0x55351d),{'defIds':_0x2fa703[_0x4d5a51(0x20e)],'idSuffix':_0x96272c[_0x4d5a51(0x1fc)]},c({'ref':_0x15024b,'className':_0x24458c},_0x45113f),_0x337ae7);});function Y(_0x57302a,_0x11059d,_0x5648e5,_0x42d2d1,_0x1810a1){var _0x3eeb80=_0x2a1331;return _0x1c1fa3(_0x57302a[_0x3eeb80(0x1f0)],c(c({'key':_0x11059d},Ee(_0x57302a,_0x5648e5,_0x1810a1)),_0x42d2d1),(we(_0x57302a,_0x5648e5)[_0x3eeb80(0x1cc)]||[])[_0x3eeb80(0x1ba)](function(_0x5baa96,_0x32dfcc){var _0x533af8=_0x3eeb80;return Y(_0x5baa96,''[_0x533af8(0x1a3)](_0x11059d,'-')[_0x533af8(0x1a3)](_0x57302a[_0x533af8(0x1f0)],'-')[_0x533af8(0x1a3)](_0x32dfcc),_0x5648e5,void 0x0,_0x1810a1);}));}function Ee(_0x4641e6,_0x59b5fd,_0x16112c){var _0x2dfa67=_0x2a1331,_0x3b4123=c({},_0x4641e6[_0x2dfa67(0x20c)]);_0x16112c!=null&&_0x16112c['colorChannel1']&&_0x3b4123['fill']===_0x2dfa67(0x1b3)&&(_0x3b4123[_0x2dfa67(0x209)]=_0x16112c[_0x2dfa67(0x1b3)]),_0x4641e6[_0x2dfa67(0x1f0)]==='mask'&&_0x3b4123['id']&&(_0x3b4123['id']=_0x3b4123['id']+_0x59b5fd[_0x2dfa67(0x1db)]),Object[_0x2dfa67(0x1ec)](_0x3b4123)['forEach'](function(_0x77d27){var _0xb05d07=_0x2dfa67,_0x171651=_0x77d27[0x0],_0x2650a7=_0x77d27[0x1];_0x171651===_0xb05d07(0x234)&&typeof _0x2650a7==_0xb05d07(0x19f)&&(_0x3b4123[_0x171651]=_0x2650a7[_0xb05d07(0x1d4)](/url\(#(.*)\)/,_0xb05d07(0x1a8)[_0xb05d07(0x1a3)](_0x59b5fd[_0xb05d07(0x1db)],')')));});var _0x4b50fc=_0x59b5fd['defIds'];return!_0x4b50fc||_0x4b50fc[_0x2dfa67(0x1d7)]===0x0||(_0x4641e6[_0x2dfa67(0x1f0)]==='use'&&_0x3b4123['xlink:href']&&(_0x3b4123[_0x2dfa67(0x205)]=_0x3b4123[_0x2dfa67(0x205)]+_0x59b5fd[_0x2dfa67(0x1db)]),Object['entries'](_0x3b4123)[_0x2dfa67(0x206)](function(_0x570bfb){var _0x28eb62=_0x2dfa67,_0x8c993f=_0x570bfb[0x0],_0x615e68=_0x570bfb[0x1];typeof _0x615e68==_0x28eb62(0x19f)&&(_0x3b4123[_0x8c993f]=_0x615e68['replace'](/url\(#(.*)\)/,_0x28eb62(0x1a8)[_0x28eb62(0x1a3)](_0x59b5fd['idSuffix'],')')));})),_0x3b4123;}function we(_0x39054f,_0x5cdc14){var _0x352115=_0x2a1331,_0x1a19b1,_0x154107=_0x5cdc14[_0x352115(0x20e)];return!_0x154107||_0x154107[_0x352115(0x1d7)]===0x0?_0x39054f:_0x39054f[_0x352115(0x1f0)]===_0x352115(0x239)&&(!((_0x1a19b1=_0x39054f['children'])===null||_0x1a19b1===void 0x0)&&_0x1a19b1[_0x352115(0x1d7)])?c(c({},_0x39054f),{'children':_0x39054f['children'][_0x352115(0x1ba)](function(_0x593523){var _0x24cbce=_0x352115;return typeof _0x593523[_0x24cbce(0x20c)]['id']==_0x24cbce(0x19f)&&_0x154107&&_0x154107['includes'](_0x593523[_0x24cbce(0x20c)]['id'])?c(c({},_0x593523),{'attrs':c(c({},_0x593523[_0x24cbce(0x20c)]),{'id':_0x593523['attrs']['id']+_0x5cdc14['idSuffix']})}):_0x593523;})}):_0x39054f;}function Ne(){var _0x428928=_0x2a1331;return Math[_0x428928(0x236)]()[_0x428928(0x246)](0x24)[_0x428928(0x1a4)](0x2,0x8);}W['displayName']=_0x2a1331(0x1bb);var Ce={'tag':_0x2a1331(0x22f),'attrs':{'xmlns':_0x2a1331(0x1f6),'fill':_0x2a1331(0x242),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x2a1331(0x21c),'attrs':{'fill':_0x2a1331(0x224),'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':_0x2a1331(0x21c),'attrs':{'fill':_0x2a1331(0x224),'d':_0x2a1331(0x1af),'fillRule':_0x2a1331(0x201),'clipRule':'evenodd'}}]},B=_0x1b8510(function(_0x5692a6,_0x1aa25f){var _0x29ad92=_0x2a1331;return _0x1c1fa3(W,Object['assign']({},_0x5692a6,{'id':_0x29ad92(0x1f8),'ref':_0x1aa25f,'icon':Ce}));});B[_0x2a1331(0x211)]='LiveShareIcon';class L extends _0x59d933{constructor(){var _0x5bff9c=_0x2a1331;super(...arguments),d(this,_0x5bff9c(0x232),new Set()),d(this,_0x5bff9c(0x1fe),new Set());}[_0x2a1331(0x1e5)](_0x2ecc52){var _0x5d196b=_0x2a1331;return this[_0x5d196b(0x232)][_0x5d196b(0x1f7)](_0x2ecc52),_0x24d03d(()=>this[_0x5d196b(0x232)][_0x5d196b(0x22d)](_0x2ecc52));}[_0x2a1331(0x208)](_0x2d1e04){var _0x14381b=_0x2a1331;return this[_0x14381b(0x1fe)][_0x14381b(0x1f7)](_0x2d1e04),_0x24d03d(()=>this[_0x14381b(0x1fe)][_0x14381b(0x22d)](_0x2d1e04));}['shouldShareOperation'](_0x3568d9){var _0x4c69a0=_0x2a1331;return this[_0x4c69a0(0x232)][_0x4c69a0(0x221)](_0x3568d9);}[_0x2a1331(0x23e)](_0x38c4c5){var _0x47d811=_0x2a1331;return Array[_0x47d811(0x1ea)](this[_0x47d811(0x1fe)])[_0x47d811(0x1ba)](_0x344583=>_0x344583(_0x38c4c5));}}var De=Object[_0x2a1331(0x1f3)],Z=(_0x1149ec,_0x19a82a,_0x402518,_0x4586fa)=>{var _0x9923=_0x2a1331;for(var _0x50f640=_0x4586fa>0x1?void 0x0:_0x4586fa?De(_0x19a82a,_0x402518):_0x19a82a,_0x5e0c3b=_0x1149ec[_0x9923(0x1d7)]-0x1,_0x1b33b0;_0x5e0c3b>=0x0;_0x5e0c3b--)(_0x1b33b0=_0x1149ec[_0x5e0c3b])&&(_0x50f640=_0x1b33b0(_0x50f640)||_0x50f640);return _0x50f640;},f=(_0x232d06,_0x164124)=>(_0x53f55e,_0x1fdb56)=>_0x164124(_0x53f55e,_0x1fdb56,_0x232d06);let m=class extends _0x320cd9{constructor(_0x269e70,_0x1caab8,_0x559b0d){var _0x2c5776=_0x2a1331;super(),d(this,_0x2c5776(0x1e7),new Map()),(this[_0x2c5776(0x1de)]=_0x269e70,this[_0x2c5776(0x20f)]=_0x1caab8,this[_0x2c5776(0x24a)]=_0x559b0d,this[_0x2c5776(0x1c7)]());}async['getLiveShareCoordinator'](_0x2d0290){var _0x13a541=_0x2a1331;return this[_0x13a541(0x1e7)][_0x13a541(0x221)](_0x2d0290)||await this['_startLiveShareCoordinator'](_0x2d0290),this['_entities'][_0x13a541(0x1cd)](_0x2d0290);}[_0x2a1331(0x1c7)](){var _0x3ad7df=_0x2a1331;this['_univerInstanceService'][_0x3ad7df(0x248)](_0x293676[_0x3ad7df(0x1c0)])['pipe'](_0xb43856(this[_0x3ad7df(0x21b)]))[_0x3ad7df(0x1c5)](async _0x4bb8af=>{var _0x2d5131=_0x3ad7df;const _0x1a8bd5=_0x4bb8af['getUnitId']();this[_0x2d5131(0x1e7)][_0x2d5131(0x221)](_0x1a8bd5)||this[_0x2d5131(0x20a)](_0x1a8bd5);}),this[_0x3ad7df(0x1de)][_0x3ad7df(0x1e2)](_0x293676[_0x3ad7df(0x1c0)])[_0x3ad7df(0x1e1)](_0xb43856(this['dispose$']))['subscribe'](_0x3a2281=>{var _0x494f4d=_0x3ad7df;const _0x13d72b=_0x3a2281[_0x494f4d(0x1ed)](),_0x297fdd=this[_0x494f4d(0x1e7)][_0x494f4d(0x1cd)](_0x13d72b);_0x297fdd==null||_0x297fdd[_0x494f4d(0x223)]();});}async[_0x2a1331(0x20a)](_0x14fb05){var _0x3b68ca=_0x2a1331;const _0x2fbe1a=await this['_collabSessionService']['requireSession'](_0x14fb05),_0x33ec34=this['_injector'][_0x3b68ca(0x1b1)](C,_0x14fb05,_0x2fbe1a);return _0x33ec34[_0x3b68ca(0x215)](),this[_0x3b68ca(0x1e7)]['set'](_0x14fb05,_0x33ec34),_0x33ec34;}};m=Z([f(0x0,_0x1f8514),f(0x1,_0x46b9a2(_0x42e71f)),f(0x2,_0x46b9a2(_0x42790a))],m);var h=(_0x505534=>(_0x505534[_0x2a1331(0x1ad)]=_0x2a1331(0x24b),_0x505534[_0x2a1331(0x1ae)]=_0x2a1331(0x1fa),_0x505534[_0x2a1331(0x1dd)]=_0x2a1331(0x233),_0x505534['NOT_FOLLOWING']=_0x2a1331(0x1ab),_0x505534['PRESENTING']=_0x2a1331(0x1f1),_0x505534))(h||{});const xe=_0x2a1331(0x237),Le=0xc8;function _0x590f(_0x27f9e1,_0x1509a1){var _0x17df1c=_0x17df();return _0x590f=function(_0x590f9c,_0x4d9727){_0x590f9c=_0x590f9c-0x198;var _0x11886c=_0x17df1c[_0x590f9c];return _0x11886c;},_0x590f(_0x27f9e1,_0x1509a1);}let C=class extends _0x320cd9{constructor(_0x2c870c,_0x2ae074,_0x4cf696,_0x1db98d,_0x23494e){var _0x1dfe9e=_0x2a1331;super(),d(this,_0x1dfe9e(0x199),new _0x314fb5(_0x1dfe9e(0x1fa))),d(this,_0x1dfe9e(0x1f4),this[_0x1dfe9e(0x199)][_0x1dfe9e(0x1c4)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x1dfe9e(0x23b),null),(this[_0x1dfe9e(0x243)]=_0x2c870c,this[_0x1dfe9e(0x22c)]=_0x2ae074,this[_0x1dfe9e(0x19a)]=_0x4cf696,this[_0x1dfe9e(0x22b)]=_0x1db98d,this[_0x1dfe9e(0x231)]=_0x23494e);}get[_0x2a1331(0x1a9)](){var _0x29e6f6=_0x2a1331;return this[_0x29e6f6(0x199)][_0x29e6f6(0x1d6)]();}[_0x2a1331(0x223)](){var _0x5ee130=_0x2a1331,_0x2df42e;(_0x2df42e=this[_0x5ee130(0x1c6)])==null||_0x2df42e[_0x5ee130(0x223)](),this['_status$'][_0x5ee130(0x207)](_0x5ee130(0x1fa)),this[_0x5ee130(0x199)][_0x5ee130(0x1a6)]();}[_0x2a1331(0x215)](){var _0x301679=_0x2a1331;this[_0x301679(0x1c7)]||(this['_init']=!0x0,this[_0x301679(0x22c)][_0x301679(0x1da)][_0x301679(0x1e1)](_0xb43856(this[_0x301679(0x21b)]))[_0x301679(0x1c5)](_0x363e0d=>{var _0xccfc36=_0x301679;switch(_0x363e0d){case _0x30f362[_0xccfc36(0x1ad)]:this[_0xccfc36(0x23c)]();break;case _0x30f362[_0xccfc36(0x218)]:this[_0xccfc36(0x1b2)]();break;}}),this[_0x301679(0x22c)][_0x301679(0x245)][_0x301679(0x1e1)](_0xb43856(this[_0x301679(0x21b)]))['subscribe'](_0x5ec48f=>{var _0x170f32=_0x301679;const {eventID:_0x33f69b}=_0x5ec48f;switch(_0x33f69b){case _0x331ac7[_0x170f32(0x240)]:this[_0x170f32(0x1bc)](_0x5ec48f);break;case _0x331ac7[_0x170f32(0x222)]:this[_0x170f32(0x1d1)](_0x5ec48f);break;case _0x331ac7[_0x170f32(0x20b)]:this[_0x170f32(0x1df)]();break;case _0x331ac7[_0x170f32(0x22e)]:this[_0x170f32(0x19b)](_0x5ec48f);break;}}));}['tryStartPresenting'](){var _0x2a0074=_0x2a1331;this[_0x2a0074(0x22c)][_0x2a0074(0x212)]({'eventID':_0x331ac7['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x2a0074(0x243)],'userID':this['_collabSession']['getMemberID']()}},this[_0x2a0074(0x243)]);}['stopPresenting'](){var _0xe23218=_0x2a1331;this[_0xe23218(0x1a9)]===_0xe23218(0x1f1)&&(this[_0xe23218(0x199)][_0xe23218(0x207)](_0xe23218(0x1fa)),this['_collabSession']['send']({'eventID':_0x331ac7['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0xe23218(0x243)]}},this[_0xe23218(0x243)]));}[_0x2a1331(0x1a5)](){var _0x51994b=_0x2a1331;this[_0x51994b(0x1a9)]===_0x51994b(0x1ab)&&(this[_0x51994b(0x199)]['next']('following'),this[_0x51994b(0x202)]());}['stopFollowing'](){var _0x51aca0=_0x2a1331;this[_0x51aca0(0x1a9)]===_0x51aca0(0x233)&&this[_0x51aca0(0x21e)]();}[_0x2a1331(0x1bc)](_0x363aa9){var _0x1d72e9=_0x2a1331;const {presenter:_0xe69dd8}=_0x363aa9['data'],_0x5ae7df=this[_0x1d72e9(0x22c)]['getMemberID']();this[_0x1d72e9(0x23b)]=_0xe69dd8,_0xe69dd8===_0x5ae7df?(this[_0x1d72e9(0x21e)](),this[_0x1d72e9(0x225)]()):this[_0x1d72e9(0x1a9)]!==_0x1d72e9(0x1ab)&&(this[_0x1d72e9(0x1b5)](),this[_0x1d72e9(0x202)]());}[_0x2a1331(0x249)](){var _0x597f59=_0x2a1331;const _0xbab893={'eventID':_0x331ac7[_0x597f59(0x1fb)]};this[_0x597f59(0x22c)][_0x597f59(0x212)](_0xbab893,this['_unitID']);}[_0x2a1331(0x1df)](){var _0x2e4566=_0x2a1331;this['_presenter']=null,this[_0x2e4566(0x1a9)]!==_0x2e4566(0x1f1)&&this[_0x2e4566(0x21f)]();}['_handleNewChangeSets'](_0x3eed3b){var _0x1b4273=_0x2a1331;if(this[_0x1b4273(0x1a9)]===_0x1b4273(0x233)&&this[_0x1b4273(0x23b)]===_0x3eed3b['data'][_0x1b4273(0x244)]){const _0x54a4d=_0x4fafab(_0x3eed3b[_0x1b4273(0x1cf)])['mutations'][_0x1b4273(0x1b4)]()[_0x1b4273(0x1dc)](_0x26a699=>_0x26a699['id']===_0x5296cd['id']);if(_0x54a4d){const _0xe533e7=_0x54a4d['params'][_0x1b4273(0x227)],_0x5dc11e=_0x54a4d[_0x1b4273(0x1f2)][_0x1b4273(0x241)]['id'];setTimeout(()=>{var _0x31fca3=_0x1b4273;this[_0x31fca3(0x231)]['executeCommand'](_0x44f129['id'],{'unitId':_0xe533e7,'subUnitId':_0x5dc11e},{'fromCollab':!0x0});});}}}[_0x2a1331(0x225)](){var _0x4f6869=_0x2a1331;this[_0x4f6869(0x199)][_0x4f6869(0x207)](_0x4f6869(0x1f1));const _0x22a79f=new Map(),_0x515c91=this[_0x4f6869(0x1c6)]=new _0x306776();_0x515c91[_0x4f6869(0x1f7)](_0x24d03d(()=>{var _0x32f3c2=_0x4f6869;_0x22a79f[_0x32f3c2(0x206)](_0x42e1cc=>_0x42e1cc[_0x32f3c2(0x1a6)]()),_0x22a79f[_0x32f3c2(0x247)]();})),_0x515c91[_0x4f6869(0x1f7)](this[_0x4f6869(0x231)][_0x4f6869(0x1a2)](_0x3f5800=>{var _0xeaf40e=_0x4f6869,_0x42121b;if(_0x3f5800[_0xeaf40e(0x1b8)]!==_0x4ddeda[_0xeaf40e(0x1bf)]||!this[_0xeaf40e(0x22b)][_0xeaf40e(0x1e3)](_0x3f5800['id']))return;const {id:_0x3e89b0}=_0x3f5800;let _0x1640b4;_0x22a79f[_0xeaf40e(0x221)](_0x3e89b0)?_0x1640b4=_0x22a79f[_0xeaf40e(0x1cd)](_0x3e89b0):(_0x1640b4=new _0x4f4978(),_0x22a79f[_0xeaf40e(0x1c9)](_0x3e89b0,_0x1640b4),_0x1640b4[_0xeaf40e(0x1e1)](_0x1db732((_0x42121b=this[_0xeaf40e(0x19a)]['getConfig'](xe))!=null?_0x42121b:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3aa2b9=>{var _0xd04dd4=_0xeaf40e;this[_0xd04dd4(0x22c)][_0xd04dd4(0x212)]({'eventID':_0x331ac7[_0xd04dd4(0x222)],'data':{'unitID':this[_0xd04dd4(0x243)],'operations':{[_0x3aa2b9['id']]:{'id':_0x3aa2b9['id'],'params':JSON[_0xd04dd4(0x1ca)](_0x3aa2b9[_0xd04dd4(0x1f2)])}}}},this[_0xd04dd4(0x243)]);})),_0x1640b4[_0xeaf40e(0x207)](_0x3f5800);})),this[_0x4f6869(0x22b)]['getInitialStates'](this[_0x4f6869(0x243)])['forEach'](_0xe69c98=>this['_collabSession'][_0x4f6869(0x212)]({'eventID':_0x331ac7['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xe69c98['id']]:{'id':_0xe69c98['id'],'params':JSON['stringify'](_0xe69c98[_0x4f6869(0x1f2)])}}}},this['_unitID']));}[_0x2a1331(0x1b5)](){var _0x436b46=_0x2a1331,_0x345f78;this['_status$'][_0x436b46(0x207)](_0x436b46(0x1fa)),(_0x345f78=this[_0x436b46(0x1c6)])==null||_0x345f78[_0x436b46(0x223)](),this[_0x436b46(0x1c6)]=null;}['_startFollowing'](){var _0x1a60f1=_0x2a1331,_0x3ded12;(_0x3ded12=this[_0x1a60f1(0x1c6)])==null||_0x3ded12[_0x1a60f1(0x223)](),this[_0x1a60f1(0x199)][_0x1a60f1(0x207)]('following');}['_beIdle'](){var _0x3a12a1=_0x2a1331,_0x5b8f30;this[_0x3a12a1(0x199)]['next'](_0x3a12a1(0x1fa)),(_0x5b8f30=this[_0x3a12a1(0x1c6)])==null||_0x5b8f30[_0x3a12a1(0x223)](),this['_commandDisposable']=null;}[_0x2a1331(0x21e)](){var _0x2c3857=_0x2a1331,_0x54a3ea;this[_0x2c3857(0x199)][_0x2c3857(0x207)](_0x2c3857(0x1ab)),(_0x54a3ea=this['_commandDisposable'])==null||_0x54a3ea[_0x2c3857(0x223)]();}[_0x2a1331(0x1d1)](_0x38e7ea){var _0x11962f=_0x2a1331;if(['presenting',_0x11962f(0x1ab),_0x11962f(0x24b)][_0x11962f(0x1b9)](this[_0x11962f(0x1a9)])||!_0x38e7ea[_0x11962f(0x1cf)][_0x11962f(0x20d)]||_0x38e7ea[_0x11962f(0x1cf)][_0x11962f(0x20d)]===this[_0x11962f(0x22c)][_0x11962f(0x1e9)]())return;this[_0x11962f(0x1a9)]===_0x11962f(0x1fa)&&this[_0x11962f(0x202)]();const _0x387c28=_0x38e7ea[_0x11962f(0x1cf)][_0x11962f(0x1be)];Object[_0x11962f(0x21d)](_0x387c28)[_0x11962f(0x206)](_0x3aca9f=>{var _0x4ebb8b=_0x11962f;this['_commandService'][_0x4ebb8b(0x1d8)](_0x3aca9f['id'],_0x3aca9f[_0x4ebb8b(0x1f2)]?JSON[_0x4ebb8b(0x1fd)](_0x3aca9f[_0x4ebb8b(0x1f2)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x212afc=_0x2a1331,_0x3703bd;this[_0x212afc(0x199)][_0x212afc(0x207)](_0x212afc(0x24b)),(_0x3703bd=this[_0x212afc(0x1c6)])==null||_0x3703bd[_0x212afc(0x223)]();}[_0x2a1331(0x1b2)](){var _0x3c96d1=_0x2a1331;this[_0x3c96d1(0x199)][_0x3c96d1(0x207)](_0x3c96d1(0x1fa)),this['_fetchOperations']();}};C=Z([f(0x2,_0x42030a),f(0x3,_0x46b9a2(L)),f(0x4,_0xf03154)],C);function ye(){var _0x2d489b=_0x2a1331;const _0x2e42f1=_0x2b446e(m),_0x20b7bf=_0x2b446e(_0x1f8514),_0x2d0b24=_0x57ba1c(()=>_0x20b7bf[_0x2d489b(0x200)](_0x293676[_0x2d489b(0x1c0)]),void 0x0,!0x1,[]),[_0x379b44,_0x4a3c80]=_0x4faa17(null),[_0x19d428,_0x5453c8]=_0x4faa17(h[_0x2d489b(0x1ae)]),_0x5d9f67=_0xf9a751(null);return _0x3abde3(()=>(_0x2d0b24&&_0x2e42f1[_0x2d489b(0x23d)](_0x2d0b24[_0x2d489b(0x1ed)]())[_0x2d489b(0x1ee)](_0x26222a=>{var _0x16b523=_0x2d489b;_0x4a3c80(_0x26222a),_0x5d9f67[_0x16b523(0x1fc)]=_0x26222a[_0x16b523(0x1f4)]['subscribe'](_0x15d259=>{_0x5453c8(_0x15d259);});}),()=>{var _0x23e938=_0x2d489b,_0x293763;(_0x293763=_0x5d9f67[_0x23e938(0x1fc)])==null||_0x293763['unsubscribe'](),_0x5d9f67['current']=null;}),[_0x2d0b24,_0x2e42f1]),_0x379b44?_0x2034f8(_0x22fa98,{'align':'end','disabled':_0x19d428===h['OFFLINE'],'className':_0x2d489b(0x19c),'overlay':_0x2034f8(Re,{'status':_0x19d428,'coordinator':_0x379b44}),'children':_0x2034f8(_0x2d489b(0x203),{'className':_0x5db37e(_0x2d489b(0x19d),{'univer-cursor-not-allowed':_0x19d428===h[_0x2d489b(0x1ad)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x19d428!==h[_0x2d489b(0x1ad)]}),'type':_0x2d489b(0x203),'children':_0x2034f8(B,{'className':_0x2d489b(0x1b7)})})}):null;}function Re(_0x2f06e2){var _0x9d55c0=_0x2a1331;const {status:_0x15b351,coordinator:_0x3b31e3}=_0x2f06e2;switch(_0x15b351){case h[_0x9d55c0(0x1ae)]:return _0x2034f8(Pe,{'coordinator':_0x3b31e3});case h[_0x9d55c0(0x1dd)]:return _0x2034f8(Ae,{'coordinator':_0x3b31e3});case h[_0x9d55c0(0x226)]:return _0x2034f8(Te,{'coordinator':_0x3b31e3});case h['OFFLINE']:return _0x2034f8(Fe,{});case h[_0x9d55c0(0x229)]:return _0x2034f8($e,{'coordinator':_0x3b31e3});default:return null;}}function Pe(_0x2c9bc7){var _0x3d56df=_0x2a1331;const {coordinator:_0x35bf7d}=_0x2c9bc7;return _0x5a8ed4(_0x106dbe,{'children':[_0x2034f8(_0x3d56df(0x1ac),{'className':_0x3d56df(0x219),'children':_0x3d56df(0x235)}),_0x2034f8(_0x135d4f,{'onClick':()=>_0x35bf7d[_0x3d56df(0x1b6)](),'children':_0x3d56df(0x204)})]});}function Ae(_0x571fde){var _0xd2fb67=_0x2a1331;const {coordinator:_0x16bf7e}=_0x571fde;return _0x5a8ed4(_0x106dbe,{'children':[_0x2034f8(_0xd2fb67(0x1ac),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xd2fb67(0x1ce)}),_0x2034f8(_0x135d4f,{'onClick':()=>_0x16bf7e[_0xd2fb67(0x198)](),'children':_0xd2fb67(0x1e0)})]});}function Te(_0x40f8ba){var _0x383762=_0x2a1331;const {coordinator:_0x5e70ab}=_0x40f8ba;return _0x5a8ed4(_0x106dbe,{'children':[_0x2034f8(_0x383762(0x1ac),{'className':_0x383762(0x219),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2034f8(_0x135d4f,{'variant':'text','onClick':()=>_0x5e70ab[_0x383762(0x1a5)](),'children':_0x383762(0x21a)})]});}function $e(_0x4d6bf4){var _0x3a3251=_0x2a1331;const {coordinator:_0x257b0b}=_0x4d6bf4;return _0x5a8ed4(_0x106dbe,{'children':[_0x2034f8(_0x3a3251(0x1ac),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3a3251(0x1a1)}),_0x2034f8(_0x135d4f,{'variant':_0x3a3251(0x230),'onClick':()=>_0x257b0b[_0x3a3251(0x213)](),'children':'Stop\x20presenting'})]});}function Fe(){return _0x2034f8(_0x106dbe,{'children':'You\x27are\x20offline.'});}var He=Object['getOwnPropertyDescriptor'],je=(_0x2c2417,_0x3a51ec,_0x4ea5ed,_0x3526d4)=>{var _0x11b6c4=_0x2a1331;for(var _0x2398fb=_0x3526d4>0x1?void 0x0:_0x3526d4?He(_0x3a51ec,_0x4ea5ed):_0x3a51ec,_0x70e420=_0x2c2417[_0x11b6c4(0x1d7)]-0x1,_0x2ae8cc;_0x70e420>=0x0;_0x70e420--)(_0x2ae8cc=_0x2c2417[_0x70e420])&&(_0x2398fb=_0x2ae8cc(_0x2398fb)||_0x2398fb);return _0x2398fb;},T=(_0x522a45,_0x51216f)=>(_0x447208,_0x280655)=>_0x51216f(_0x447208,_0x280655,_0x522a45);let I=class extends _0x59d933{constructor(_0x34e10b,_0x4deadf){var _0x426c0d=_0x2a1331;super(),this[_0x426c0d(0x20f)]=_0x34e10b,this[_0x426c0d(0x1c2)]=_0x4deadf,this[_0x426c0d(0x1d5)]();}[_0x2a1331(0x1d5)](){var _0xb64cff=_0x2a1331;this[_0xb64cff(0x1b0)](this[_0xb64cff(0x1c2)][_0xb64cff(0x216)](_0x139aed[_0xb64cff(0x1cb)],()=>_0x53f1ed(ye,this[_0xb64cff(0x20f)])));}};I=je([T(0x0,_0x46b9a2(_0x42e71f)),T(0x1,_0x355c3f)],I);const Ue=_0x2a1331(0x238),$={};var Ve=Object[_0x2a1331(0x1f3)],Me=(_0x452357,_0x5b8de7,_0x57b5a0,_0x3bbad9)=>{var _0x4f2957=_0x2a1331;for(var _0xf12d48=_0x3bbad9>0x1?void 0x0:_0x3bbad9?Ve(_0x5b8de7,_0x57b5a0):_0x5b8de7,_0x50b8a8=_0x452357[_0x4f2957(0x1d7)]-0x1,_0xc03438;_0x50b8a8>=0x0;_0x50b8a8--)(_0xc03438=_0x452357[_0x50b8a8])&&(_0xf12d48=_0xc03438(_0xf12d48)||_0xf12d48);return _0xf12d48;},ke=(_0xd91102,_0x59d295)=>(_0x5e42f3,_0x10aa1e)=>_0x59d295(_0x5e42f3,_0x10aa1e,_0xd91102);let b=class extends _0x59d933{constructor(_0x168e8e){var _0x28de87=_0x2a1331;super(),this[_0x28de87(0x22b)]=_0x168e8e,this['_init']();}['_init'](){[_0x1f1a63['id'],_0x432228['id'],_0x44f129['id']]['forEach'](_0x4578f1=>{var _0x20fd99=_0x590f;this[_0x20fd99(0x1b0)](this[_0x20fd99(0x22b)][_0x20fd99(0x1e5)](_0x4578f1));});}};b=Me([ke(0x0,_0x46b9a2(L))],b);var Ge=Object[_0x2a1331(0x228)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x3480bc,_0xe319e4,_0x4b9fbf)=>_0xe319e4 in _0x3480bc?Ge(_0x3480bc,_0xe319e4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b9fbf}):_0x3480bc[_0xe319e4]=_0x4b9fbf,Be=(_0x1db061,_0xadb093,_0xa9ad3a,_0x5ef862)=>{var _0xacae28=_0x2a1331;for(var _0x333a80=_0x5ef862>0x1?void 0x0:_0x5ef862?We(_0xadb093,_0xa9ad3a):_0xadb093,_0x5eaf90=_0x1db061[_0xacae28(0x1d7)]-0x1,_0x11a26d;_0x5eaf90>=0x0;_0x5eaf90--)(_0x11a26d=_0x1db061[_0x5eaf90])&&(_0x333a80=_0x11a26d(_0x333a80)||_0x333a80);return _0x333a80;},F=(_0x31f3f1,_0x492f08)=>(_0x4da660,_0x3150b9)=>_0x492f08(_0x4da660,_0x3150b9,_0x31f3f1),J=(_0x7bc37a,_0x22ba54,_0x114455)=>Ye(_0x7bc37a,typeof _0x22ba54!='symbol'?_0x22ba54+'':_0x22ba54,_0x114455);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x3cfdf9{constructor(_0x342c71=$,_0x1bad54,_0x13481b){var _0x2729f1=_0x2a1331;super(),this[_0x2729f1(0x1d3)]=_0x342c71,this[_0x2729f1(0x20f)]=_0x1bad54,this[_0x2729f1(0x19a)]=_0x13481b;const {..._0x5cfbbb}=_0x23b7b3({},$,this[_0x2729f1(0x1d3)]);this['_configService']['setConfig'](Ue,_0x5cfbbb);}['onStarting'](){var _0xe3a148=_0x2a1331;_0xebb17a(this[_0xe3a148(0x20f)],_0x2926f8([[L],[m],[b],[I]],this[_0xe3a148(0x1d3)][_0xe3a148(0x1aa)])),_0x56c4f0(this[_0xe3a148(0x20f)],[[b]]);}[_0x2a1331(0x1d0)](){var _0x2a7c3b=_0x2a1331;_0x56c4f0(this[_0x2a7c3b(0x20f)],[[I]]);}};J(O,_0x2a1331(0x1b8),_0x293676[_0x2a1331(0x1bd)]),J(O,_0x2a1331(0x1d2),Ze),O=Be([_0x337d27(_0x2001b5),F(0x1,_0x46b9a2(_0x42e71f)),F(0x2,_0x42030a)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x18a3(_0x4b78a8,_0x5deaac){var _0x16c443=_0x16c4();return _0x18a3=function(_0x18a3b4,_0x299a12){_0x18a3b4=_0x18a3b4-0x89;var _0x2ad9dd=_0x16c443[_0x18a3b4];return _0x2ad9dd;},_0x18a3(_0x4b78a8,_0x5deaac);}(function(_0x2b763b,_0x1796a6){var _0x26303a=_0x18a3,_0x4b5640=_0x2b763b();while(!![]){try{var _0x126439=parseInt(_0x26303a(0x165))/0x1+-parseInt(_0x26303a(0xb7))/0x2*(-parseInt(_0x26303a(0xa0))/0x3)+-parseInt(_0x26303a(0xf3))/0x4*(-parseInt(_0x26303a(0x89))/0x5)+-parseInt(_0x26303a(0x11f))/0x6+-parseInt(_0x26303a(0x103))/0x7+-parseInt(_0x26303a(0x160))/0x8+parseInt(_0x26303a(0x112))/0x9*(parseInt(_0x26303a(0x14b))/0xa);if(_0x126439===_0x1796a6)break;else _0x4b5640['push'](_0x4b5640['shift']());}catch(_0x3ee59f){_0x4b5640['push'](_0x4b5640['shift']());}}}(_0x16c4,0x7c9f4),function(_0x1ca1ef,_0x2595bc){var _0x404a94=_0x18a3;typeof exports==_0x404a94(0x8b)&&typeof module<'u'?_0x2595bc(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==_0x404a94(0x95)&&define[_0x404a94(0xbc)]?define([_0x404a94(0xd5),_0x404a94(0x91),_0x404a94(0x135),_0x404a94(0xf7),'@univerjs/design','react',_0x404a94(0xec),_0x404a94(0x138),_0x404a94(0x10c),'rxjs',_0x404a94(0xaa),_0x404a94(0x114)],_0x2595bc):(_0x1ca1ef=typeof globalThis<'u'?globalThis:_0x1ca1ef||self,_0x2595bc(_0x1ca1ef[_0x404a94(0x14a)]={},_0x1ca1ef[_0x404a94(0x122)],_0x1ca1ef[_0x404a94(0xd3)],_0x1ca1ef['React'],_0x1ca1ef[_0x404a94(0x142)],_0x1ca1ef[_0x404a94(0x10d)],_0x1ca1ef[_0x404a94(0x93)],_0x1ca1ef[_0x404a94(0xcd)],_0x1ca1ef['UniverSheets'],_0x1ca1ef[_0x404a94(0x14f)],_0x1ca1ef[_0x404a94(0x14f)][_0x404a94(0x171)],_0x1ca1ef[_0x404a94(0xd6)]));}(this,function(_0x27f1e6,_0x1958a3,_0x47d892,_0x19f47d,_0x516f11,_0x1f017b,_0x58df46,_0x46ed4f,_0x199910,_0x42520b,_0x53cb6a,_0x48a3ac){'use strict';var _0xbdfe94=_0x18a3;var _0x34efdd=Object[_0xbdfe94(0x13f)],_0x47cf4e=(_0x3067ce,_0x216b5c,_0x556240)=>_0x216b5c in _0x3067ce?_0x34efdd(_0x3067ce,_0x216b5c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x556240}):_0x3067ce[_0x216b5c]=_0x556240,_0x4909cf=(_0x5f0561,_0x56b0e7,_0xe8d302)=>_0x47cf4e(_0x5f0561,typeof _0x56b0e7!=_0xbdfe94(0x17d)?_0x56b0e7+'':_0x56b0e7,_0xe8d302),_0x3cf9a6=function(){var _0x3e835a=_0xbdfe94;return _0x3cf9a6=Object['assign']||function(_0x2e00a4){var _0x23e1a0=_0x18a3;for(var _0x56aa6b,_0x55db13=0x1,_0x2b11d0=arguments[_0x23e1a0(0x111)];_0x55db13<_0x2b11d0;_0x55db13++){_0x56aa6b=arguments[_0x55db13];for(var _0x214a42 in _0x56aa6b)Object[_0x23e1a0(0x8d)][_0x23e1a0(0x108)]['call'](_0x56aa6b,_0x214a42)&&(_0x2e00a4[_0x214a42]=_0x56aa6b[_0x214a42]);}return _0x2e00a4;},_0x3cf9a6[_0x3e835a(0x16b)](this,arguments);},_0x297104=function(_0x25f50b,_0x3f06eb){var _0x16e3c8=_0xbdfe94,_0x4f35d0={};for(var _0x56e97f in _0x25f50b)Object[_0x16e3c8(0x8d)][_0x16e3c8(0x108)][_0x16e3c8(0x158)](_0x25f50b,_0x56e97f)&&_0x3f06eb['indexOf'](_0x56e97f)<0x0&&(_0x4f35d0[_0x56e97f]=_0x25f50b[_0x56e97f]);if(_0x25f50b!=null&&typeof Object[_0x16e3c8(0x15c)]=='function'){for(var _0x135a05=0x0,_0x56e97f=Object[_0x16e3c8(0x15c)](_0x25f50b);_0x135a05<_0x56e97f['length'];_0x135a05++)_0x3f06eb[_0x16e3c8(0x175)](_0x56e97f[_0x135a05])<0x0&&Object[_0x16e3c8(0x8d)][_0x16e3c8(0xbd)][_0x16e3c8(0x158)](_0x25f50b,_0x56e97f[_0x135a05])&&(_0x4f35d0[_0x56e97f[_0x135a05]]=_0x25f50b[_0x56e97f[_0x135a05]]);}return _0x4f35d0;},_0x160a12=_0x1f017b[_0xbdfe94(0x134)](function(_0x5e6e75,_0x2b71a3){var _0x46fe51=_0xbdfe94,_0x4b4e04=_0x5e6e75[_0x46fe51(0x16f)],_0x5556e1=_0x5e6e75['id'],_0x2d7f41=_0x5e6e75[_0x46fe51(0x177)],_0x1a3f7c=_0x5e6e75[_0x46fe51(0xc2)],_0x56aa5d=_0x297104(_0x5e6e75,[_0x46fe51(0x16f),'id',_0x46fe51(0x177),'extend']),_0xd851ec=_0x46fe51(0x8f)[_0x46fe51(0x17e)](_0x5556e1,'\x20')[_0x46fe51(0x17e)](_0x2d7f41||'')[_0x46fe51(0xc1)](),_0x2c5ccc=_0x1f017b['useRef']('_'[_0x46fe51(0x17e)](_0x3323bc()));return _0x16d6ff(_0x4b4e04,''['concat'](_0x5556e1),{'defIds':_0x4b4e04[_0x46fe51(0xd1)],'idSuffix':_0x2c5ccc[_0x46fe51(0xb9)]},_0x3cf9a6({'ref':_0x2b71a3,'className':_0xd851ec},_0x56aa5d),_0x1a3f7c);});function _0x16d6ff(_0x372df5,_0x293050,_0x41d1b9,_0x258ad7,_0x35415f){var _0x5f130b=_0xbdfe94;return _0x1f017b[_0x5f130b(0x9a)](_0x372df5[_0x5f130b(0x12a)],_0x3cf9a6(_0x3cf9a6({'key':_0x293050},_0x3cd5e2(_0x372df5,_0x41d1b9,_0x35415f)),_0x258ad7),(_0x4954e8(_0x372df5,_0x41d1b9)[_0x5f130b(0xab)]||[])[_0x5f130b(0x14c)](function(_0x42d631,_0x528d0b){var _0x413a80=_0x5f130b;return _0x16d6ff(_0x42d631,''[_0x413a80(0x17e)](_0x293050,'-')[_0x413a80(0x17e)](_0x372df5['tag'],'-')[_0x413a80(0x17e)](_0x528d0b),_0x41d1b9,void 0x0,_0x35415f);}));}function _0x3cd5e2(_0x1b43a6,_0x239434,_0x4c972e){var _0x1d8f5b=_0xbdfe94,_0x531e23=_0x3cf9a6({},_0x1b43a6[_0x1d8f5b(0x118)]);_0x4c972e!=null&&_0x4c972e['colorChannel1']&&_0x531e23[_0x1d8f5b(0xc5)]==='colorChannel1'&&(_0x531e23['fill']=_0x4c972e[_0x1d8f5b(0x140)]),_0x1b43a6[_0x1d8f5b(0x12a)]==='mask'&&_0x531e23['id']&&(_0x531e23['id']=_0x531e23['id']+_0x239434[_0x1d8f5b(0x15d)]),Object[_0x1d8f5b(0xd2)](_0x531e23)[_0x1d8f5b(0xa1)](function(_0xd5f2bf){var _0x310a02=_0x1d8f5b,_0x4ea85e=_0xd5f2bf[0x0],_0x4b20d8=_0xd5f2bf[0x1];_0x4ea85e===_0x310a02(0xc9)&&typeof _0x4b20d8==_0x310a02(0xd0)&&(_0x531e23[_0x4ea85e]=_0x4b20d8['replace'](/url\(#(.*)\)/,_0x310a02(0xbf)[_0x310a02(0x17e)](_0x239434[_0x310a02(0x15d)],')')));});var _0x48fefa=_0x239434[_0x1d8f5b(0xd1)];return!_0x48fefa||_0x48fefa['length']===0x0||(_0x1b43a6[_0x1d8f5b(0x12a)]===_0x1d8f5b(0xae)&&_0x531e23[_0x1d8f5b(0xac)]&&(_0x531e23[_0x1d8f5b(0xac)]=_0x531e23['xlink:href']+_0x239434[_0x1d8f5b(0x15d)]),Object[_0x1d8f5b(0xd2)](_0x531e23)[_0x1d8f5b(0xa1)](function(_0x2cf0ac){var _0x454430=_0x1d8f5b,_0x43a6c7=_0x2cf0ac[0x0],_0x5db80b=_0x2cf0ac[0x1];typeof _0x5db80b==_0x454430(0xd0)&&(_0x531e23[_0x43a6c7]=_0x5db80b[_0x454430(0x174)](/url\(#(.*)\)/,_0x454430(0xbf)[_0x454430(0x17e)](_0x239434[_0x454430(0x15d)],')')));})),_0x531e23;}function _0x4954e8(_0xca23d4,_0x2b83a6){var _0x4e6465=_0xbdfe94,_0x1dec85,_0x480181=_0x2b83a6[_0x4e6465(0xd1)];return!_0x480181||_0x480181[_0x4e6465(0x111)]===0x0?_0xca23d4:_0xca23d4[_0x4e6465(0x12a)]===_0x4e6465(0x149)&&(!((_0x1dec85=_0xca23d4[_0x4e6465(0xab)])===null||_0x1dec85===void 0x0)&&_0x1dec85[_0x4e6465(0x111)])?_0x3cf9a6(_0x3cf9a6({},_0xca23d4),{'children':_0xca23d4[_0x4e6465(0xab)][_0x4e6465(0x14c)](function(_0x32a1e6){var _0x23f4a6=_0x4e6465;return typeof _0x32a1e6[_0x23f4a6(0x118)]['id']==_0x23f4a6(0xd0)&&_0x480181&&_0x480181['includes'](_0x32a1e6[_0x23f4a6(0x118)]['id'])?_0x3cf9a6(_0x3cf9a6({},_0x32a1e6),{'attrs':_0x3cf9a6(_0x3cf9a6({},_0x32a1e6['attrs']),{'id':_0x32a1e6[_0x23f4a6(0x118)]['id']+_0x2b83a6['idSuffix']})}):_0x32a1e6;})}):_0xca23d4;}function _0x3323bc(){var _0x5ec32b=_0xbdfe94;return Math['random']()[_0x5ec32b(0xca)](0x24)[_0x5ec32b(0xbb)](0x2,0x8);}_0x160a12[_0xbdfe94(0x13e)]=_0xbdfe94(0x162);var _0x2d75bb={'tag':_0xbdfe94(0x146),'attrs':{'xmlns':_0xbdfe94(0x166),'fill':_0xbdfe94(0x17b),'viewBox':_0xbdfe94(0xa8),'width':_0xbdfe94(0x92),'height':'1em'},'children':[{'tag':_0xbdfe94(0xf9),'attrs':{'fill':_0xbdfe94(0xc3),'d':_0xbdfe94(0x90)}},{'tag':_0xbdfe94(0xf9),'attrs':{'fill':_0xbdfe94(0xc3),'d':_0xbdfe94(0xc4),'fillRule':_0xbdfe94(0x144),'clipRule':_0xbdfe94(0x144)}}]},_0x165037=_0x1f017b[_0xbdfe94(0x134)](function(_0x18fcd6,_0x2e2d2d){var _0x8e5bd8=_0xbdfe94;return _0x1f017b[_0x8e5bd8(0x9a)](_0x160a12,Object[_0x8e5bd8(0xf4)]({},_0x18fcd6,{'id':'live-share-icon','ref':_0x2e2d2d,'icon':_0x2d75bb}));});_0x165037[_0xbdfe94(0x13e)]=_0xbdfe94(0x148);class _0x24ac88 extends _0x1958a3['Disposable']{constructor(){var _0x3dff82=_0xbdfe94;super(...arguments),_0x4909cf(this,_0x3dff82(0xb6),new Set()),_0x4909cf(this,_0x3dff82(0x106),new Set());}[_0xbdfe94(0x9c)](_0x535a7b){var _0x4260ef=_0xbdfe94;return this[_0x4260ef(0xb6)]['add'](_0x535a7b),_0x1958a3[_0x4260ef(0xd4)](()=>this[_0x4260ef(0xb6)]['delete'](_0x535a7b));}[_0xbdfe94(0x15a)](_0x21db9a){var _0x49f1cd=_0xbdfe94;return this[_0x49f1cd(0x106)][_0x49f1cd(0xfb)](_0x21db9a),_0x1958a3[_0x49f1cd(0xd4)](()=>this[_0x49f1cd(0x106)][_0x49f1cd(0x15f)](_0x21db9a));}['shouldShareOperation'](_0x3d14dd){var _0x13c498=_0xbdfe94;return this[_0x13c498(0xb6)][_0x13c498(0x12e)](_0x3d14dd);}['getInitialStates'](_0x124615){var _0x5a52bf=_0xbdfe94;return Array[_0x5a52bf(0x8c)](this['_reporters'])['map'](_0x4b6b4b=>_0x4b6b4b(_0x124615));}}var _0x148226=Object[_0xbdfe94(0x176)],_0x2c1b61=(_0x5c9fc5,_0x5a114c,_0x2e6f7c,_0x3ec64f)=>{var _0x399aca=_0xbdfe94;for(var _0x2ad416=_0x3ec64f>0x1?void 0x0:_0x3ec64f?_0x148226(_0x5a114c,_0x2e6f7c):_0x5a114c,_0x3956f9=_0x5c9fc5[_0x399aca(0x111)]-0x1,_0x4e3fd8;_0x3956f9>=0x0;_0x3956f9--)(_0x4e3fd8=_0x5c9fc5[_0x3956f9])&&(_0x2ad416=_0x4e3fd8(_0x2ad416)||_0x2ad416);return _0x2ad416;},_0x4bfdcf=(_0x550cc3,_0x495d18)=>(_0x5e61b9,_0x3c6bc7)=>_0x495d18(_0x5e61b9,_0x3c6bc7,_0x550cc3);_0x27f1e6[_0xbdfe94(0x116)]=class extends _0x1958a3[_0xbdfe94(0x17a)]{constructor(_0x1b380b,_0x3362ea,_0x1a27e7){var _0x5005fa=_0xbdfe94;super(),_0x4909cf(this,_0x5005fa(0xa4),new Map()),(this['_univerInstanceService']=_0x1b380b,this[_0x5005fa(0x8a)]=_0x3362ea,this[_0x5005fa(0x109)]=_0x1a27e7,this[_0x5005fa(0x98)]());}async['getLiveShareCoordinator'](_0xed5907){var _0x22138d=_0xbdfe94;return this[_0x22138d(0xa4)]['has'](_0xed5907)||await this['_startLiveShareCoordinator'](_0xed5907),this[_0x22138d(0xa4)][_0x22138d(0x172)](_0xed5907);}[_0xbdfe94(0x98)](){var _0x25b727=_0xbdfe94;this['_univerInstanceService'][_0x25b727(0x94)](_0x1958a3[_0x25b727(0x155)]['UNIVER_SHEET'])['pipe'](_0x53cb6a['takeUntil'](this[_0x25b727(0x115)]))['subscribe'](async _0x41504c=>{var _0x2527da=_0x25b727;const _0x49835a=_0x41504c[_0x2527da(0x101)]();this[_0x2527da(0xa4)][_0x2527da(0x12e)](_0x49835a)||this['_startLiveShareCoordinator'](_0x49835a);}),this['_univerInstanceService'][_0x25b727(0x13c)](_0x1958a3[_0x25b727(0x155)][_0x25b727(0x105)])[_0x25b727(0xdb)](_0x53cb6a[_0x25b727(0xe8)](this[_0x25b727(0x115)]))['subscribe'](_0x482fd=>{var _0x54db16=_0x25b727;const _0x108a58=_0x482fd[_0x54db16(0x101)](),_0x18e15f=this[_0x54db16(0xa4)]['get'](_0x108a58);_0x18e15f==null||_0x18e15f[_0x54db16(0x15e)]();});}async[_0xbdfe94(0x145)](_0x116bd9){var _0xdf2fc1=_0xbdfe94;const _0x16cd4d=await this[_0xdf2fc1(0x109)]['requireSession'](_0x116bd9),_0x1ee027=this[_0xdf2fc1(0x8a)]['createInstance'](_0x27f1e6['LiveShareCoordinator'],_0x116bd9,_0x16cd4d);return _0x1ee027['init'](),this[_0xdf2fc1(0xa4)][_0xdf2fc1(0x12b)](_0x116bd9,_0x1ee027),_0x1ee027;}},_0x27f1e6['LiveShareController']=_0x2c1b61([_0x4bfdcf(0x0,_0x1958a3['IUniverInstanceService']),_0x4bfdcf(0x1,_0x1958a3['Inject'](_0x1958a3['Injector'])),_0x4bfdcf(0x2,_0x1958a3[_0xbdfe94(0x10a)](_0x46ed4f['CollaborationSessionService']))],_0x27f1e6[_0xbdfe94(0x116)]);var _0x3bf702=(_0x4e9b14=>(_0x4e9b14[_0xbdfe94(0x9d)]='offline',_0x4e9b14[_0xbdfe94(0x161)]=_0xbdfe94(0x125),_0x4e9b14[_0xbdfe94(0xef)]=_0xbdfe94(0x127),_0x4e9b14[_0xbdfe94(0x10f)]='not-following',_0x4e9b14[_0xbdfe94(0x16d)]=_0xbdfe94(0xc6),_0x4e9b14))(_0x3bf702||{});const _0x27d169=_0xbdfe94(0x9f),_0x45b4bc=0xc8;_0x27f1e6[_0xbdfe94(0x147)]=class extends _0x1958a3[_0xbdfe94(0x17a)]{constructor(_0x32e9d2,_0x471219,_0x28fce8,_0x2eed35,_0x24e99b){var _0x249314=_0xbdfe94;super(),_0x4909cf(this,_0x249314(0xa7),new _0x42520b[(_0x249314(0x153))](_0x249314(0x125))),_0x4909cf(this,_0x249314(0xf0),this[_0x249314(0xa7)][_0x249314(0x120)]()),_0x4909cf(this,'_init',!0x1),_0x4909cf(this,_0x249314(0x128),null),_0x4909cf(this,_0x249314(0xf8),null),(this[_0x249314(0xcf)]=_0x32e9d2,this['_collabSession']=_0x471219,this['_configService']=_0x28fce8,this[_0x249314(0xdf)]=_0x2eed35,this[_0x249314(0xf5)]=_0x24e99b);}get['_status'](){var _0x283d57=_0xbdfe94;return this[_0x283d57(0xa7)][_0x283d57(0x126)]();}[_0xbdfe94(0x15e)](){var _0x129073=_0xbdfe94,_0x432f72;(_0x432f72=this[_0x129073(0x128)])==null||_0x432f72[_0x129073(0x15e)](),this['_status$'][_0x129073(0xdd)]('idle'),this[_0x129073(0xa7)][_0x129073(0xe1)]();}['init'](){var _0x305b42=_0xbdfe94;this[_0x305b42(0x98)]||(this[_0x305b42(0x98)]=!0x0,this[_0x305b42(0x11a)][_0x305b42(0x12c)]['pipe'](_0x53cb6a[_0x305b42(0xe8)](this[_0x305b42(0x115)]))[_0x305b42(0x132)](_0x217851=>{var _0x23eb6c=_0x305b42;switch(_0x217851){case _0x46ed4f[_0x23eb6c(0x14e)][_0x23eb6c(0x9d)]:this[_0x23eb6c(0xe7)]();break;case _0x46ed4f[_0x23eb6c(0x14e)][_0x23eb6c(0x107)]:this['_handleOnline']();break;}}),this[_0x305b42(0x11a)]['event$'][_0x305b42(0xdb)](_0x53cb6a[_0x305b42(0xe8)](this[_0x305b42(0x115)]))[_0x305b42(0x132)](_0x273dc2=>{var _0x149e12=_0x305b42;const {eventID:_0x2e8a9f}=_0x273dc2;switch(_0x2e8a9f){case _0x58df46[_0x149e12(0xde)][_0x149e12(0x164)]:this[_0x149e12(0x119)](_0x273dc2);break;case _0x58df46[_0x149e12(0xde)][_0x149e12(0xd7)]:this[_0x149e12(0xf6)](_0x273dc2);break;case _0x58df46[_0x149e12(0xde)][_0x149e12(0xa2)]:this[_0x149e12(0x133)]();break;case _0x58df46[_0x149e12(0xde)][_0x149e12(0x10e)]:this[_0x149e12(0xad)](_0x273dc2);break;}}));}['tryStartPresenting'](){var _0x139cf0=_0xbdfe94;this[_0x139cf0(0x11a)]['send']({'eventID':_0x58df46['CollaborationEvent'][_0x139cf0(0x141)],'data':{'unitID':this['_unitID'],'userID':this[_0x139cf0(0x11a)][_0x139cf0(0xc8)]()}},this[_0x139cf0(0xcf)]);}[_0xbdfe94(0xa9)](){var _0x1b210a=_0xbdfe94;this[_0x1b210a(0x136)]==='presenting'&&(this[_0x1b210a(0xa7)][_0x1b210a(0xdd)](_0x1b210a(0x125)),this['_collabSession'][_0x1b210a(0xfa)]({'eventID':_0x58df46[_0x1b210a(0xde)][_0x1b210a(0xa2)],'data':{'unitID':this[_0x1b210a(0xcf)]}},this[_0x1b210a(0xcf)]));}[_0xbdfe94(0x8e)](){var _0xbf9053=_0xbdfe94;this['_status']==='not-following'&&(this[_0xbf9053(0xa7)]['next'](_0xbf9053(0x127)),this[_0xbf9053(0x124)]());}[_0xbdfe94(0xf1)](){var _0x36adc6=_0xbdfe94;this[_0x36adc6(0x136)]===_0x36adc6(0x127)&&this[_0x36adc6(0xcc)]();}[_0xbdfe94(0x119)](_0x36a71d){var _0x4e4806=_0xbdfe94;const {presenter:_0x4dc490}=_0x36a71d[_0x4e4806(0xfd)],_0x4c3b86=this[_0x4e4806(0x11a)][_0x4e4806(0xc8)]();this[_0x4e4806(0xf8)]=_0x4dc490,_0x4dc490===_0x4c3b86?(this[_0x4e4806(0xcc)](),this['_startPresenting']()):this['_status']!==_0x4e4806(0x16a)&&(this[_0x4e4806(0xb1)](),this[_0x4e4806(0x124)]());}['_fetchOperations'](){var _0x37631b=_0xbdfe94;const _0x13f4d0={'eventID':_0x58df46['CollaborationEvent'][_0x37631b(0xff)]};this['_collabSession'][_0x37631b(0xfa)](_0x13f4d0,this['_unitID']);}[_0xbdfe94(0x133)](){var _0x271cd5=_0xbdfe94;this[_0x271cd5(0xf8)]=null,this[_0x271cd5(0x136)]!=='presenting'&&this[_0x271cd5(0xfc)]();}[_0xbdfe94(0xad)](_0x2aa54c){var _0x446f76=_0xbdfe94;if(this[_0x446f76(0x136)]==='following'&&this['_presenter']===_0x2aa54c[_0x446f76(0xfd)][_0x446f76(0xb5)]){const _0x80e169=_0x58df46[_0x446f76(0xce)](_0x2aa54c[_0x446f76(0xfd)])[_0x446f76(0x137)]['reverse']()['find'](_0x2a6066=>_0x2a6066['id']===_0x199910['InsertSheetMutation']['id']);if(_0x80e169){const _0x2f7b99=_0x80e169[_0x446f76(0x11e)][_0x446f76(0xfe)],_0x3945a1=_0x80e169[_0x446f76(0x11e)][_0x446f76(0xb2)]['id'];setTimeout(()=>{var _0x3484f0=_0x446f76;this[_0x3484f0(0xf5)][_0x3484f0(0x178)](_0x199910['SetWorksheetActiveOperation']['id'],{'unitId':_0x2f7b99,'subUnitId':_0x3945a1},{'fromCollab':!0x0});});}}}[_0xbdfe94(0xd9)](){var _0x2b8d69=_0xbdfe94;this[_0x2b8d69(0xa7)]['next'](_0x2b8d69(0xc6));const _0x3978ed=new Map(),_0x534711=this[_0x2b8d69(0x128)]=new _0x1958a3['DisposableCollection']();_0x534711[_0x2b8d69(0xfb)](_0x1958a3[_0x2b8d69(0xd4)](()=>{var _0x18aa79=_0x2b8d69;_0x3978ed[_0x18aa79(0xa1)](_0x9fcf0f=>_0x9fcf0f['complete']()),_0x3978ed[_0x18aa79(0xaf)]();})),_0x534711[_0x2b8d69(0xfb)](this[_0x2b8d69(0xf5)][_0x2b8d69(0x139)](_0x52da24=>{var _0x28fb99=_0x2b8d69,_0x4b5710;if(_0x52da24['type']!==_0x1958a3[_0x28fb99(0x9b)]['OPERATION']||!this[_0x28fb99(0xdf)][_0x28fb99(0xe4)](_0x52da24['id']))return;const {id:_0x170baa}=_0x52da24;let _0x17621f;_0x3978ed[_0x28fb99(0x12e)](_0x170baa)?_0x17621f=_0x3978ed[_0x28fb99(0x172)](_0x170baa):(_0x17621f=new _0x42520b['Subject'](),_0x3978ed['set'](_0x170baa,_0x17621f),_0x17621f[_0x28fb99(0xdb)](_0x53cb6a['throttleTime']((_0x4b5710=this['_configService'][_0x28fb99(0xeb)](_0x27d169))!=null?_0x4b5710:_0x45b4bc,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x28fb99(0x132)](_0x1f7e50=>{var _0x4d81eb=_0x28fb99;this['_collabSession'][_0x4d81eb(0xfa)]({'eventID':_0x58df46[_0x4d81eb(0xde)][_0x4d81eb(0xd7)],'data':{'unitID':this[_0x4d81eb(0xcf)],'operations':{[_0x1f7e50['id']]:{'id':_0x1f7e50['id'],'params':JSON[_0x4d81eb(0xd8)](_0x1f7e50[_0x4d81eb(0x11e)])}}}},this[_0x4d81eb(0xcf)]);})),_0x17621f['next'](_0x52da24);})),this[_0x2b8d69(0xdf)][_0x2b8d69(0x123)](this[_0x2b8d69(0xcf)])['forEach'](_0x5b31e0=>this['_collabSession'][_0x2b8d69(0xfa)]({'eventID':_0x58df46[_0x2b8d69(0xde)][_0x2b8d69(0xd7)],'data':{'unitID':this[_0x2b8d69(0xcf)],'operations':{[_0x5b31e0['id']]:{'id':_0x5b31e0['id'],'params':JSON[_0x2b8d69(0xd8)](_0x5b31e0[_0x2b8d69(0x11e)])}}}},this[_0x2b8d69(0xcf)]));}[_0xbdfe94(0xb1)](){var _0x2ab2a3=_0xbdfe94,_0x5cd46a;this[_0x2ab2a3(0xa7)]['next'](_0x2ab2a3(0x125)),(_0x5cd46a=this[_0x2ab2a3(0x128)])==null||_0x5cd46a[_0x2ab2a3(0x15e)](),this['_commandDisposable']=null;}[_0xbdfe94(0x124)](){var _0x3f37fa=_0xbdfe94,_0x1a9269;(_0x1a9269=this[_0x3f37fa(0x128)])==null||_0x1a9269[_0x3f37fa(0x15e)](),this[_0x3f37fa(0xa7)]['next'](_0x3f37fa(0x127));}[_0xbdfe94(0xfc)](){var _0x2c195e=_0xbdfe94,_0x4d86c5;this[_0x2c195e(0xa7)]['next'](_0x2c195e(0x125)),(_0x4d86c5=this[_0x2c195e(0x128)])==null||_0x4d86c5[_0x2c195e(0x15e)](),this[_0x2c195e(0x128)]=null;}[_0xbdfe94(0xcc)](){var _0x44e754=_0xbdfe94,_0x4806d0;this[_0x44e754(0xa7)][_0x44e754(0xdd)](_0x44e754(0x16a)),(_0x4806d0=this[_0x44e754(0x128)])==null||_0x4806d0[_0x44e754(0x15e)]();}[_0xbdfe94(0xf6)](_0x366b57){var _0x30895e=_0xbdfe94;if([_0x30895e(0xc6),_0x30895e(0x16a),_0x30895e(0x117)]['includes'](this['_status'])||!_0x366b57[_0x30895e(0xfd)][_0x30895e(0xe2)]||_0x366b57['data'][_0x30895e(0xe2)]===this[_0x30895e(0x11a)][_0x30895e(0xc8)]())return;this[_0x30895e(0x136)]===_0x30895e(0x125)&&this['_startFollowing']();const _0x5be956=_0x366b57[_0x30895e(0xfd)][_0x30895e(0x9e)];Object[_0x30895e(0xa3)](_0x5be956)[_0x30895e(0xa1)](_0x558e10=>{var _0x4096ca=_0x30895e;this['_commandService'][_0x4096ca(0x178)](_0x558e10['id'],_0x558e10['params']?JSON[_0x4096ca(0x167)](_0x558e10[_0x4096ca(0x11e)]):null,{'fromCollab':!0x0});});}[_0xbdfe94(0xe7)](){var _0x25695f=_0xbdfe94,_0x491036;this[_0x25695f(0xa7)][_0x25695f(0xdd)](_0x25695f(0x117)),(_0x491036=this[_0x25695f(0x128)])==null||_0x491036[_0x25695f(0x15e)]();}['_handleOnline'](){var _0x16b11b=_0xbdfe94;this['_status$']['next'](_0x16b11b(0x125)),this[_0x16b11b(0x12d)]();}},_0x27f1e6[_0xbdfe94(0x147)]=_0x2c1b61([_0x4bfdcf(0x2,_0x1958a3['IConfigService']),_0x4bfdcf(0x3,_0x1958a3[_0xbdfe94(0x10a)](_0x24ac88)),_0x4bfdcf(0x4,_0x1958a3[_0xbdfe94(0x170)])],_0x27f1e6[_0xbdfe94(0x147)]);function _0x155eaf(){var _0x301965=_0xbdfe94;const _0x1d5cb2=_0x47d892[_0x301965(0x169)](_0x27f1e6['LiveShareController']),_0x539b86=_0x47d892[_0x301965(0x169)](_0x1958a3['IUniverInstanceService']),_0x39105a=_0x47d892['useObservable'](()=>_0x539b86[_0x301965(0xf2)](_0x1958a3['UniverInstanceType'][_0x301965(0x105)]),void 0x0,!0x1,[]),[_0x590690,_0x3e8855]=_0x1f017b[_0x301965(0xb3)](null),[_0x46146a,_0x7eed91]=_0x1f017b[_0x301965(0xb3)](_0x3bf702['IDLE']),_0x4f4365=_0x1f017b['useRef'](null);return _0x1f017b['useEffect'](()=>(_0x39105a&&_0x1d5cb2[_0x301965(0x143)](_0x39105a[_0x301965(0x101)]())[_0x301965(0x179)](_0x48b7bb=>{var _0xc61812=_0x301965;_0x3e8855(_0x48b7bb),_0x4f4365[_0xc61812(0xb9)]=_0x48b7bb[_0xc61812(0xf0)][_0xc61812(0x132)](_0x208cf5=>{_0x7eed91(_0x208cf5);});}),()=>{var _0x131c20=_0x301965,_0x365310;(_0x365310=_0x4f4365['current'])==null||_0x365310[_0x131c20(0xe9)](),_0x4f4365[_0x131c20(0xb9)]=null;}),[_0x39105a,_0x1d5cb2]),_0x590690?_0x19f47d[_0x301965(0xee)](_0x516f11['Dropdown'],{'align':_0x301965(0x13d),'disabled':_0x46146a===_0x3bf702[_0x301965(0x9d)],'className':_0x301965(0x173),'overlay':_0x19f47d[_0x301965(0xee)](_0x4413e2,{'status':_0x46146a,'coordinator':_0x590690}),'children':_0x19f47d[_0x301965(0xee)]('button',{'className':_0x516f11[_0x301965(0xe3)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x46146a===_0x3bf702['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x46146a!==_0x3bf702['OFFLINE']}),'type':_0x301965(0xb8),'children':_0x19f47d[_0x301965(0xee)](_0x165037,{'className':_0x301965(0x154)})})}):null;}function _0x4413e2(_0x57348c){var _0x15f9c9=_0xbdfe94;const {status:_0x50613c,coordinator:_0x2369a3}=_0x57348c;switch(_0x50613c){case _0x3bf702[_0x15f9c9(0x161)]:return _0x19f47d['jsx'](_0x461f4e,{'coordinator':_0x2369a3});case _0x3bf702[_0x15f9c9(0xef)]:return _0x19f47d[_0x15f9c9(0xee)](_0x32938c,{'coordinator':_0x2369a3});case _0x3bf702[_0x15f9c9(0x10f)]:return _0x19f47d[_0x15f9c9(0xee)](_0x5aee54,{'coordinator':_0x2369a3});case _0x3bf702['OFFLINE']:return _0x19f47d[_0x15f9c9(0xee)](_0x5cb7fd,{});case _0x3bf702[_0x15f9c9(0x16d)]:return _0x19f47d[_0x15f9c9(0xee)](_0x30ba0,{'coordinator':_0x2369a3});default:return null;}}function _0x461f4e(_0xa8b005){var _0x2758b8=_0xbdfe94;const {coordinator:_0x44dcb4}=_0xa8b005;return _0x19f47d['jsxs'](_0x19f47d[_0x2758b8(0x10b)],{'children':[_0x19f47d[_0x2758b8(0xee)](_0x2758b8(0x14d),{'className':_0x2758b8(0xb4),'children':_0x2758b8(0x121)}),_0x19f47d['jsx'](_0x516f11['Button'],{'onClick':()=>_0x44dcb4[_0x2758b8(0x97)](),'children':_0x2758b8(0x159)})]});}function _0x32938c(_0x4cd235){var _0x363f63=_0xbdfe94;const {coordinator:_0x3087be}=_0x4cd235;return _0x19f47d[_0x363f63(0x15b)](_0x19f47d[_0x363f63(0x10b)],{'children':[_0x19f47d[_0x363f63(0xee)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x363f63(0x11d)}),_0x19f47d[_0x363f63(0xee)](_0x516f11[_0x363f63(0x157)],{'onClick':()=>_0x3087be[_0x363f63(0xf1)](),'children':_0x363f63(0xc0)})]});}function _0x5aee54(_0x5d878b){var _0xb98412=_0xbdfe94;const {coordinator:_0x19f415}=_0x5d878b;return _0x19f47d[_0xb98412(0x15b)](_0x19f47d[_0xb98412(0x10b)],{'children':[_0x19f47d[_0xb98412(0xee)](_0xb98412(0x14d),{'className':_0xb98412(0xb4),'children':_0xb98412(0x129)}),_0x19f47d[_0xb98412(0xee)](_0x516f11[_0xb98412(0x157)],{'variant':_0xb98412(0xa5),'onClick':()=>_0x19f415[_0xb98412(0x8e)](),'children':_0xb98412(0xea)})]});}function _0x30ba0(_0xcd9625){var _0x5de7d5=_0xbdfe94;const {coordinator:_0x1ebff4}=_0xcd9625;return _0x19f47d[_0x5de7d5(0x15b)](_0x19f47d[_0x5de7d5(0x10b)],{'children':[_0x19f47d[_0x5de7d5(0xee)]('div',{'className':_0x5de7d5(0xb4),'children':_0x5de7d5(0x156)}),_0x19f47d[_0x5de7d5(0xee)](_0x516f11['Button'],{'variant':_0x5de7d5(0xe5),'onClick':()=>_0x1ebff4[_0x5de7d5(0xa9)](),'children':_0x5de7d5(0x168)})]});}function _0x5cb7fd(){var _0x287de1=_0xbdfe94;return _0x19f47d['jsx'](_0x19f47d['Fragment'],{'children':_0x287de1(0x113)});}var _0x557188=Object['getOwnPropertyDescriptor'],_0x43aa7e=(_0x510ddf,_0x39cf48,_0x83db40,_0x4df229)=>{var _0x5f33cc=_0xbdfe94;for(var _0x2aca2e=_0x4df229>0x1?void 0x0:_0x4df229?_0x557188(_0x39cf48,_0x83db40):_0x39cf48,_0x41f79d=_0x510ddf[_0x5f33cc(0x111)]-0x1,_0x3de9f4;_0x41f79d>=0x0;_0x41f79d--)(_0x3de9f4=_0x510ddf[_0x41f79d])&&(_0x2aca2e=_0x3de9f4(_0x2aca2e)||_0x2aca2e);return _0x2aca2e;},_0x1dd8d9=(_0x57b247,_0x5818bc)=>(_0x44009e,_0x5edef6)=>_0x5818bc(_0x44009e,_0x5edef6,_0x57b247);_0x27f1e6[_0xbdfe94(0x152)]=class extends _0x1958a3[_0xbdfe94(0xbe)]{constructor(_0x5acbb8,_0x5bb801){var _0x123aa8=_0xbdfe94;super(),this[_0x123aa8(0x8a)]=_0x5acbb8,this[_0x123aa8(0x130)]=_0x5bb801,this[_0x123aa8(0x16c)]();}['_mountLiveShare'](){var _0xefb885=_0xbdfe94;this[_0xefb885(0xdc)](this[_0xefb885(0x130)][_0xefb885(0x13a)](_0x47d892['BuiltInUIPart'][_0xefb885(0x150)],()=>_0x47d892[_0xefb885(0xda)](_0x155eaf,this[_0xefb885(0x8a)])));}},_0x27f1e6[_0xbdfe94(0x152)]=_0x43aa7e([_0x1dd8d9(0x0,_0x1958a3['Inject'](_0x1958a3[_0xbdfe94(0x16e)])),_0x1dd8d9(0x1,_0x47d892['IUIPartsService'])],_0x27f1e6[_0xbdfe94(0x152)]);const _0x3c90fe=_0xbdfe94(0x96),_0x470143={};var _0x3e650f=Object[_0xbdfe94(0x176)],_0xcc2e4=(_0x196bc1,_0x4f77b9,_0x12e37a,_0x5c7646)=>{for(var _0x3132a1=_0x5c7646>0x1?void 0x0:_0x5c7646?_0x3e650f(_0x4f77b9,_0x12e37a):_0x4f77b9,_0x51006b=_0x196bc1['length']-0x1,_0x111ff7;_0x51006b>=0x0;_0x51006b--)(_0x111ff7=_0x196bc1[_0x51006b])&&(_0x3132a1=_0x111ff7(_0x3132a1)||_0x3132a1);return _0x3132a1;},_0x170359=(_0x391501,_0x1237fc)=>(_0x4cdbef,_0x29fd14)=>_0x1237fc(_0x4cdbef,_0x29fd14,_0x391501);let _0x1b069c=class extends _0x1958a3[_0xbdfe94(0xbe)]{constructor(_0x3febce){var _0x3c7a17=_0xbdfe94;super(),this[_0x3c7a17(0xdf)]=_0x3febce,this[_0x3c7a17(0x98)]();}[_0xbdfe94(0x98)](){var _0xd7d190=_0xbdfe94;[_0x48a3ac[_0xd7d190(0x12f)]['id'],_0x48a3ac['SetScrollOperation']['id'],_0x199910['SetWorksheetActiveOperation']['id']][_0xd7d190(0xa1)](_0xfae0aa=>{var _0x679f74=_0xd7d190;this[_0x679f74(0xdc)](this[_0x679f74(0xdf)][_0x679f74(0x9c)](_0xfae0aa));});}};_0x1b069c=_0xcc2e4([_0x170359(0x0,_0x1958a3[_0xbdfe94(0x10a)](_0x24ac88))],_0x1b069c);var _0x57095e=Object[_0xbdfe94(0x13f)],_0x1d6628=Object['getOwnPropertyDescriptor'],_0x502548=(_0x129e47,_0x2c82fa,_0x2bc9db)=>_0x2c82fa in _0x129e47?_0x57095e(_0x129e47,_0x2c82fa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bc9db}):_0x129e47[_0x2c82fa]=_0x2bc9db,_0x25bab7=(_0x5ceb1e,_0x15cf57,_0x19cdf6,_0x5512d2)=>{for(var _0x1fa141=_0x5512d2>0x1?void 0x0:_0x5512d2?_0x1d6628(_0x15cf57,_0x19cdf6):_0x15cf57,_0x4b2bc5=_0x5ceb1e['length']-0x1,_0x25e002;_0x4b2bc5>=0x0;_0x4b2bc5--)(_0x25e002=_0x5ceb1e[_0x4b2bc5])&&(_0x1fa141=_0x25e002(_0x1fa141)||_0x1fa141);return _0x1fa141;},_0x1e3690=(_0x14ff0a,_0x10cec2)=>(_0x4ff479,_0x415671)=>_0x10cec2(_0x4ff479,_0x415671,_0x14ff0a),_0x4c25de=(_0x493a65,_0x2564f9,_0xf71210)=>_0x502548(_0x493a65,typeof _0x2564f9!=_0xbdfe94(0x17d)?_0x2564f9+'':_0x2564f9,_0xf71210);const _0x55fae9=_0xbdfe94(0x11c);_0x27f1e6['UniverLiveSharePlugin']=class extends _0x1958a3[_0xbdfe94(0x104)]{constructor(_0x3b63e2=_0x470143,_0x198473,_0x49179e){var _0x5147c4=_0xbdfe94;super(),this[_0x5147c4(0xe6)]=_0x3b63e2,this[_0x5147c4(0x8a)]=_0x198473,this[_0x5147c4(0x110)]=_0x49179e;const {..._0x400350}=_0x1958a3[_0x5147c4(0xa6)]({},_0x470143,this[_0x5147c4(0xe6)]);this['_configService']['setConfig'](_0x3c90fe,_0x400350);}[_0xbdfe94(0x102)](){var _0x347c4f=_0xbdfe94;_0x1958a3[_0x347c4f(0x11b)](this[_0x347c4f(0x8a)],_0x1958a3[_0x347c4f(0xb0)]([[_0x24ac88],[_0x27f1e6[_0x347c4f(0x116)]],[_0x1b069c],[_0x27f1e6['DesktopLiveShareController']]],this[_0x347c4f(0xe6)][_0x347c4f(0x13b)])),_0x1958a3[_0x347c4f(0x17c)](this[_0x347c4f(0x8a)],[[_0x1b069c]]);}[_0xbdfe94(0xba)](){var _0x3aeb7f=_0xbdfe94;_0x1958a3[_0x3aeb7f(0x17c)](this[_0x3aeb7f(0x8a)],[[_0x27f1e6[_0x3aeb7f(0x152)]]]);}},_0x4c25de(_0x27f1e6['UniverLiveSharePlugin'],_0xbdfe94(0xc7),_0x1958a3[_0xbdfe94(0x155)]['UNIVER_UNKNOWN']),_0x4c25de(_0x27f1e6['UniverLiveSharePlugin'],_0xbdfe94(0xe0),_0x55fae9),_0x27f1e6[_0xbdfe94(0x100)]=_0x25bab7([_0x1958a3[_0xbdfe94(0x99)](_0x46ed4f['UniverCollaborationClientPlugin']),_0x1e3690(0x1,_0x1958a3[_0xbdfe94(0x10a)](_0x1958a3[_0xbdfe94(0x16e)])),_0x1e3690(0x2,_0x1958a3[_0xbdfe94(0x131)])],_0x27f1e6[_0xbdfe94(0x100)]),_0x27f1e6[_0xbdfe94(0x163)]=_0x155eaf,_0x27f1e6[_0xbdfe94(0xcb)]=_0x24ac88,_0x27f1e6[_0xbdfe94(0xed)]=_0x3bf702,Object['defineProperty'](_0x27f1e6,Symbol[_0xbdfe94(0x151)],{'value':'Module'});}));function _0x16c4(){var _0x427846=['_collabSession','registerDependencies','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20following\x20the\x20presenter','params','1572300jOedRP','asObservable','Present\x20this\x20document','UniverCore','getInitialStates','_startFollowing','idle','getValue','following','_commandDisposable','You\x27re\x20not\x20following\x20the\x20presenter','tag','set','sessionStatus$','_fetchOperations','has','SetZoomRatioOperation','_uiPartsService','IConfigService','subscribe','_handleTerminate','forwardRef','@univerjs/ui','_status','mutations','@univerjs-pro/collaboration-client','onCommandExecuted','registerComponent','override','getTypeOfUnitDisposed$','end','displayName','defineProperty','colorChannel1','LIVESHARE_REQUEST_HOST','UniverDesign','getLiveShareCoordinator','evenodd','_startLiveShareCoordinator','svg','LiveShareCoordinator','LiveShareIcon','defs','UniverProLiveShare','916140ZTyURX','map','div','SessionStatus','rxjs','HEADER_MENU','toStringTag','DesktopLiveShareController','BehaviorSubject','univer-size-4','UniverInstanceType','You\x27re\x20presenting\x20the\x20document','Button','call','Start','registerInitialStateReporter','jsxs','getOwnPropertySymbols','idSuffix','dispose','delete','3546504oFJcrm','IDLE','UniverIcon','LiveShare','LIVESHARE_NEW_HOST','615173iUAhvV','http://www.w3.org/2000/svg','parse','Stop\x20presenting','useDependency','not-following','apply','_mountLiveShare','PRESENTING','Injector','icon','ICommandService','operators','get','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','replace','indexOf','getOwnPropertyDescriptor','className','executeCommand','then','RxDisposable','none','touchDependencies','symbol','concat','5GiOghF','_injector','object','from','prototype','startFollowing','univerjs-icon\x20univerjs-icon-','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','@univerjs/core','1em','UniverProCollaboration','getTypeOfUnitAdded$','function','live-share.config','tryStartPresenting','_init','DependentOn','createElement','CommandType','registerSharedOperation','OFFLINE','operations','SAME_OPERATION_SHARE_INTERVAL','1127727SGungB','forEach','LIVESHARE_TERMINATE','values','_entities','text','merge','_status$','0\x200\x2017\x2017','stopPresenting','rxjs/operators','children','xlink:href','_handleNewChangeSets','use','clear','mergeOverrideWithDependencies','_stopPresenting','sheet','useState','univer-mb-3\x20univer-w-full\x20univer-text-sm','memberID','_sharedOperations','2kbfGRS','button','current','onRendered','substring','amd','propertyIsEnumerable','Disposable','url(#$1','Stop\x20following','trim','extend','currentColor','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','fill','presenting','type','getMemberID','mask','toString','LiveShareService','_stopFollowing','UniverProCollaborationClient','parseProtocolChangeset','_unitID','string','defIds','entries','UniverUi','toDisposable','exports','UniverSheetsUi','LIVESHARE_OPERATION','stringify','_startPresenting','connectInjector','pipe','disposeWithMe','next','CollaborationEvent','_liveShareService','pluginName','complete','presenter','clsx','shouldShareOperation','default','_config','_handleOffline','takeUntil','unsubscribe','Start\x20following','getConfig','@univerjs-pro/collaboration','LiveShareStatus','jsx','FOLLOWING','status$','stopFollowing','getCurrentTypeOfUnit$','356044GgSOKh','assign','_commandService','_handleOperation','react/jsx-runtime','_presenter','path','send','add','_beIdle','data','unitId','LIVESHARE_FETCH_OPERATIONS','UniverLiveSharePlugin','getUnitId','onStarting','332542ErrSpu','Plugin','UNIVER_SHEET','_reporters','ONLINE','hasOwnProperty','_collabSessionService','Inject','Fragment','@univerjs/sheets','React','NEW_CHANGESETS','NOT_FOLLOWING','_configService','length','18GvOUTx','You\x27are\x20offline.','@univerjs/sheets-ui','dispose$','LiveShareController','offline','attrs','_handleNewHost'];_0x16c4=function(){return _0x427846;};return _0x16c4();}
|
|
1
|
+
function _0x1f1c(_0x3d2a4f,_0x478b64){var _0x28e132=_0x28e1();return _0x1f1c=function(_0x1f1c7e,_0x3b9b57){_0x1f1c7e=_0x1f1c7e-0x1cb;var _0x6425e9=_0x28e132[_0x1f1c7e];return _0x6425e9;},_0x1f1c(_0x3d2a4f,_0x478b64);}(function(_0x547f75,_0x14657c){var _0x178203=_0x1f1c,_0x4c31db=_0x547f75();while(!![]){try{var _0x4c1f7b=parseInt(_0x178203(0x21c))/0x1*(parseInt(_0x178203(0x22d))/0x2)+-parseInt(_0x178203(0x26b))/0x3+parseInt(_0x178203(0x237))/0x4*(-parseInt(_0x178203(0x26f))/0x5)+-parseInt(_0x178203(0x233))/0x6+parseInt(_0x178203(0x24e))/0x7*(-parseInt(_0x178203(0x1fc))/0x8)+parseInt(_0x178203(0x201))/0x9+-parseInt(_0x178203(0x25b))/0xa*(-parseInt(_0x178203(0x212))/0xb);if(_0x4c1f7b===_0x14657c)break;else _0x4c31db['push'](_0x4c31db['shift']());}catch(_0x4a4af2){_0x4c31db['push'](_0x4c31db['shift']());}}}(_0x28e1,0xad41a),function(_0x125456,_0x1064b2){var _0x902d43=_0x1f1c;typeof exports==_0x902d43(0x278)&&typeof module<'u'?_0x1064b2(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==_0x902d43(0x297)&&define[_0x902d43(0x2b3)]?define([_0x902d43(0x203),_0x902d43(0x238),_0x902d43(0x255),_0x902d43(0x248),'@univerjs/design',_0x902d43(0x287),'@univerjs-pro/collaboration',_0x902d43(0x26a),'@univerjs/sheets',_0x902d43(0x29e),'rxjs/operators','@univerjs/sheets-ui'],_0x1064b2):(_0x125456=typeof globalThis<'u'?globalThis:_0x125456||self,_0x1064b2(_0x125456[_0x902d43(0x2b7)]={},_0x125456[_0x902d43(0x20c)],_0x125456[_0x902d43(0x28e)],_0x125456[_0x902d43(0x22c)],_0x125456[_0x902d43(0x298)],_0x125456['React'],_0x125456[_0x902d43(0x254)],_0x125456[_0x902d43(0x28b)],_0x125456[_0x902d43(0x294)],_0x125456['rxjs'],_0x125456[_0x902d43(0x29e)]['operators'],_0x125456[_0x902d43(0x1cd)]));}(this,function(_0x5dd302,_0x5095e8,_0x45c7b8,_0xaab32b,_0xb8c565,_0x19ced9,_0x8cd844,_0x35314d,_0x4635cd,_0x1e1405,_0x27d279,_0xe57dd){'use strict';var _0x158e33=_0x1f1c;var _0x4c2c0d=Object[_0x158e33(0x245)],_0x4b1b73=(_0x560faa,_0x5d4b56,_0x39ebbd)=>_0x5d4b56 in _0x560faa?_0x4c2c0d(_0x560faa,_0x5d4b56,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x39ebbd}):_0x560faa[_0x5d4b56]=_0x39ebbd,_0x58c45e=(_0x28ad1b,_0x7b1e51,_0x54ff91)=>_0x4b1b73(_0x28ad1b,typeof _0x7b1e51!='symbol'?_0x7b1e51+'':_0x7b1e51,_0x54ff91),_0x35c220=function(){var _0x55d020=_0x158e33;return _0x35c220=Object[_0x55d020(0x293)]||function(_0x5155ca){var _0x58db7f=_0x55d020;for(var _0x518e5f,_0x1deda0=0x1,_0x44fa28=arguments['length'];_0x1deda0<_0x44fa28;_0x1deda0++){_0x518e5f=arguments[_0x1deda0];for(var _0xd96c46 in _0x518e5f)Object[_0x58db7f(0x296)][_0x58db7f(0x20f)]['call'](_0x518e5f,_0xd96c46)&&(_0x5155ca[_0xd96c46]=_0x518e5f[_0xd96c46]);}return _0x5155ca;},_0x35c220[_0x55d020(0x275)](this,arguments);},_0x200e53=function(_0x3d606c,_0xee018){var _0x522373=_0x158e33,_0x5f22e9={};for(var _0x97cb48 in _0x3d606c)Object[_0x522373(0x296)][_0x522373(0x20f)]['call'](_0x3d606c,_0x97cb48)&&_0xee018[_0x522373(0x204)](_0x97cb48)<0x0&&(_0x5f22e9[_0x97cb48]=_0x3d606c[_0x97cb48]);if(_0x3d606c!=null&&typeof Object['getOwnPropertySymbols']==_0x522373(0x297)){for(var _0x5efddf=0x0,_0x97cb48=Object[_0x522373(0x1da)](_0x3d606c);_0x5efddf<_0x97cb48[_0x522373(0x1e6)];_0x5efddf++)_0xee018['indexOf'](_0x97cb48[_0x5efddf])<0x0&&Object[_0x522373(0x296)][_0x522373(0x283)][_0x522373(0x220)](_0x3d606c,_0x97cb48[_0x5efddf])&&(_0x5f22e9[_0x97cb48[_0x5efddf]]=_0x3d606c[_0x97cb48[_0x5efddf]]);}return _0x5f22e9;},_0x29e8f2=_0x19ced9[_0x158e33(0x27a)](function(_0x33f6fd,_0x386eb3){var _0x1f4212=_0x158e33,_0x1eedb3=_0x33f6fd[_0x1f4212(0x29f)],_0x1d2bbd=_0x33f6fd['id'],_0x5fc567=_0x33f6fd[_0x1f4212(0x1d7)],_0x3969ab=_0x33f6fd[_0x1f4212(0x262)],_0x4e8872=_0x200e53(_0x33f6fd,[_0x1f4212(0x29f),'id',_0x1f4212(0x1d7),_0x1f4212(0x262)]),_0x1dd071=_0x1f4212(0x205)[_0x1f4212(0x2b9)](_0x1d2bbd,'\x20')[_0x1f4212(0x2b9)](_0x5fc567||'')[_0x1f4212(0x2ae)](),_0xdea88b=_0x19ced9['useRef']('_'[_0x1f4212(0x2b9)](_0x52085b()));return _0xc98aa5(_0x1eedb3,''[_0x1f4212(0x2b9)](_0x1d2bbd),{'defIds':_0x1eedb3['defIds'],'idSuffix':_0xdea88b['current']},_0x35c220({'ref':_0x386eb3,'className':_0x1dd071},_0x4e8872),_0x3969ab);});function _0xc98aa5(_0x2e948e,_0x1011a5,_0x5f00ff,_0x53ad34,_0x421b8f){var _0x172ad8=_0x158e33;return _0x19ced9['createElement'](_0x2e948e['tag'],_0x35c220(_0x35c220({'key':_0x1011a5},_0x26fd1a(_0x2e948e,_0x5f00ff,_0x421b8f)),_0x53ad34),(_0x85e50c(_0x2e948e,_0x5f00ff)[_0x172ad8(0x217)]||[])[_0x172ad8(0x1fe)](function(_0xa5b838,_0x4211a8){var _0x2e510a=_0x172ad8;return _0xc98aa5(_0xa5b838,''['concat'](_0x1011a5,'-')[_0x2e510a(0x2b9)](_0x2e948e[_0x2e510a(0x1f8)],'-')[_0x2e510a(0x2b9)](_0x4211a8),_0x5f00ff,void 0x0,_0x421b8f);}));}function _0x26fd1a(_0x5ec7f2,_0x4b6f97,_0x28f933){var _0x3f7f5b=_0x158e33,_0x126caf=_0x35c220({},_0x5ec7f2[_0x3f7f5b(0x221)]);_0x28f933!=null&&_0x28f933[_0x3f7f5b(0x2a0)]&&_0x126caf['fill']==='colorChannel1'&&(_0x126caf[_0x3f7f5b(0x264)]=_0x28f933['colorChannel1']),_0x5ec7f2[_0x3f7f5b(0x1f8)]===_0x3f7f5b(0x291)&&_0x126caf['id']&&(_0x126caf['id']=_0x126caf['id']+_0x4b6f97[_0x3f7f5b(0x1f6)]),Object[_0x3f7f5b(0x244)](_0x126caf)[_0x3f7f5b(0x281)](function(_0x3f6c9a){var _0x58190b=_0x3f7f5b,_0x449f90=_0x3f6c9a[0x0],_0xcd03d1=_0x3f6c9a[0x1];_0x449f90===_0x58190b(0x291)&&typeof _0xcd03d1==_0x58190b(0x2ac)&&(_0x126caf[_0x449f90]=_0xcd03d1[_0x58190b(0x1eb)](/url\(#(.*)\)/,_0x58190b(0x200)['concat'](_0x4b6f97['idSuffix'],')')));});var _0xcb5803=_0x4b6f97[_0x3f7f5b(0x228)];return!_0xcb5803||_0xcb5803[_0x3f7f5b(0x1e6)]===0x0||(_0x5ec7f2[_0x3f7f5b(0x1f8)]===_0x3f7f5b(0x2bc)&&_0x126caf['xlink:href']&&(_0x126caf[_0x3f7f5b(0x22e)]=_0x126caf[_0x3f7f5b(0x22e)]+_0x4b6f97[_0x3f7f5b(0x1f6)]),Object['entries'](_0x126caf)['forEach'](function(_0x11f4d0){var _0x53a740=_0x3f7f5b,_0x5b6f28=_0x11f4d0[0x0],_0x2a1ccf=_0x11f4d0[0x1];typeof _0x2a1ccf==_0x53a740(0x2ac)&&(_0x126caf[_0x5b6f28]=_0x2a1ccf[_0x53a740(0x1eb)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x4b6f97['idSuffix'],')')));})),_0x126caf;}function _0x85e50c(_0x1dccdd,_0x14380d){var _0x24f3cd=_0x158e33,_0x7eebb7,_0x545238=_0x14380d[_0x24f3cd(0x228)];return!_0x545238||_0x545238[_0x24f3cd(0x1e6)]===0x0?_0x1dccdd:_0x1dccdd['tag']===_0x24f3cd(0x23e)&&(!((_0x7eebb7=_0x1dccdd['children'])===null||_0x7eebb7===void 0x0)&&_0x7eebb7[_0x24f3cd(0x1e6)])?_0x35c220(_0x35c220({},_0x1dccdd),{'children':_0x1dccdd['children']['map'](function(_0x4efb8d){var _0x4b2a3d=_0x24f3cd;return typeof _0x4efb8d[_0x4b2a3d(0x221)]['id']==_0x4b2a3d(0x2ac)&&_0x545238&&_0x545238[_0x4b2a3d(0x265)](_0x4efb8d[_0x4b2a3d(0x221)]['id'])?_0x35c220(_0x35c220({},_0x4efb8d),{'attrs':_0x35c220(_0x35c220({},_0x4efb8d[_0x4b2a3d(0x221)]),{'id':_0x4efb8d[_0x4b2a3d(0x221)]['id']+_0x14380d[_0x4b2a3d(0x1f6)]})}):_0x4efb8d;})}):_0x1dccdd;}function _0x52085b(){var _0x4122cf=_0x158e33;return Math['random']()[_0x4122cf(0x1fa)](0x24)[_0x4122cf(0x223)](0x2,0x8);}_0x29e8f2[_0x158e33(0x2ad)]=_0x158e33(0x1df);var _0x1a6c74={'tag':_0x158e33(0x2b0),'attrs':{'xmlns':_0x158e33(0x282),'fill':'none','viewBox':_0x158e33(0x29b),'width':_0x158e33(0x1fd),'height':_0x158e33(0x1fd)},'children':[{'tag':_0x158e33(0x20d),'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':_0x158e33(0x20d),'attrs':{'fill':_0x158e33(0x1f4),'d':_0x158e33(0x1f1),'fillRule':_0x158e33(0x21a),'clipRule':_0x158e33(0x21a)}}]},_0x28cd68=_0x19ced9[_0x158e33(0x27a)](function(_0x4ef4f4,_0x313518){var _0x3c6a09=_0x158e33;return _0x19ced9[_0x3c6a09(0x215)](_0x29e8f2,Object[_0x3c6a09(0x293)]({},_0x4ef4f4,{'id':_0x3c6a09(0x239),'ref':_0x313518,'icon':_0x1a6c74}));});_0x28cd68[_0x158e33(0x2ad)]=_0x158e33(0x27c);class _0x440482 extends _0x5095e8['Disposable']{constructor(){var _0x1ca4c5=_0x158e33;super(...arguments),_0x58c45e(this,_0x1ca4c5(0x1d8),new Set()),_0x58c45e(this,'_reporters',new Set());}[_0x158e33(0x1d0)](_0x59b33f){var _0x72eebb=_0x158e33;return this['_sharedOperations']['add'](_0x59b33f),_0x5095e8[_0x72eebb(0x2bb)](()=>this[_0x72eebb(0x1d8)][_0x72eebb(0x251)](_0x59b33f));}['registerInitialStateReporter'](_0x93b32f){var _0x1178b8=_0x158e33;return this[_0x1178b8(0x26d)][_0x1178b8(0x24a)](_0x93b32f),_0x5095e8[_0x1178b8(0x2bb)](()=>this[_0x1178b8(0x26d)][_0x1178b8(0x251)](_0x93b32f));}[_0x158e33(0x1cc)](_0x1afa14){var _0x1a4290=_0x158e33;return this[_0x1a4290(0x1d8)][_0x1a4290(0x2a8)](_0x1afa14);}['getInitialStates'](_0x1a7dd7){var _0x195e75=_0x158e33;return Array[_0x195e75(0x2ab)](this[_0x195e75(0x26d)])[_0x195e75(0x1fe)](_0x2231ee=>_0x2231ee(_0x1a7dd7));}}var _0x215158=Object[_0x158e33(0x29c)],_0x4d39a3=(_0x319b48,_0x511825,_0x451b8a,_0x230d21)=>{var _0xed492f=_0x158e33;for(var _0x577bb9=_0x230d21>0x1?void 0x0:_0x230d21?_0x215158(_0x511825,_0x451b8a):_0x511825,_0x59af77=_0x319b48[_0xed492f(0x1e6)]-0x1,_0x371a07;_0x59af77>=0x0;_0x59af77--)(_0x371a07=_0x319b48[_0x59af77])&&(_0x577bb9=_0x371a07(_0x577bb9)||_0x577bb9);return _0x577bb9;},_0x2f9b5a=(_0xd3940e,_0x4dc341)=>(_0x2a1e68,_0x1e80ab)=>_0x4dc341(_0x2a1e68,_0x1e80ab,_0xd3940e);_0x5dd302[_0x158e33(0x216)]=class extends _0x5095e8[_0x158e33(0x1e1)]{constructor(_0x32d808,_0x50d613,_0x1b2a1d){var _0x307f22=_0x158e33;super(),_0x58c45e(this,_0x307f22(0x2b2),new Map()),(this[_0x307f22(0x28d)]=_0x32d808,this['_injector']=_0x50d613,this[_0x307f22(0x1cb)]=_0x1b2a1d,this[_0x307f22(0x20b)]());}async['getLiveShareCoordinator'](_0x1e88ba){var _0x17d7a6=_0x158e33;return this[_0x17d7a6(0x2b2)][_0x17d7a6(0x2a8)](_0x1e88ba)||await this[_0x17d7a6(0x1e8)](_0x1e88ba),this[_0x17d7a6(0x2b2)]['get'](_0x1e88ba);}[_0x158e33(0x20b)](){var _0x43d778=_0x158e33;this[_0x43d778(0x28d)][_0x43d778(0x295)](_0x5095e8[_0x43d778(0x209)]['UNIVER_SHEET'])[_0x43d778(0x247)](_0x27d279[_0x43d778(0x29d)](this['dispose$']))['subscribe'](async _0x204422=>{var _0x5dda4b=_0x43d778;const _0x1ee043=_0x204422[_0x5dda4b(0x21d)]();this[_0x5dda4b(0x2b2)][_0x5dda4b(0x2a8)](_0x1ee043)||this[_0x5dda4b(0x1e8)](_0x1ee043);}),this[_0x43d778(0x28d)]['getTypeOfUnitDisposed$'](_0x5095e8[_0x43d778(0x209)]['UNIVER_SHEET'])[_0x43d778(0x247)](_0x27d279[_0x43d778(0x29d)](this[_0x43d778(0x23f)]))['subscribe'](_0x337418=>{var _0x5b39c4=_0x43d778;const _0x18617a=_0x337418[_0x5b39c4(0x21d)](),_0x58c43b=this['_entities'][_0x5b39c4(0x240)](_0x18617a);_0x58c43b==null||_0x58c43b[_0x5b39c4(0x236)]();});}async['_startLiveShareCoordinator'](_0x2f34c4){var _0x31ffd4=_0x158e33;const _0x414569=await this[_0x31ffd4(0x1cb)][_0x31ffd4(0x241)](_0x2f34c4),_0x2a4dba=this[_0x31ffd4(0x1d5)]['createInstance'](_0x5dd302[_0x31ffd4(0x273)],_0x2f34c4,_0x414569);return _0x2a4dba[_0x31ffd4(0x2a3)](),this[_0x31ffd4(0x2b2)][_0x31ffd4(0x2ba)](_0x2f34c4,_0x2a4dba),_0x2a4dba;}},_0x5dd302[_0x158e33(0x216)]=_0x4d39a3([_0x2f9b5a(0x0,_0x5095e8['IUniverInstanceService']),_0x2f9b5a(0x1,_0x5095e8[_0x158e33(0x25a)](_0x5095e8[_0x158e33(0x227)])),_0x2f9b5a(0x2,_0x5095e8[_0x158e33(0x25a)](_0x35314d[_0x158e33(0x272)]))],_0x5dd302[_0x158e33(0x216)]);var _0x175121=(_0x5c1216=>(_0x5c1216[_0x158e33(0x23c)]=_0x158e33(0x21b),_0x5c1216['IDLE']=_0x158e33(0x263),_0x5c1216[_0x158e33(0x208)]=_0x158e33(0x2af),_0x5c1216[_0x158e33(0x270)]=_0x158e33(0x28f),_0x5c1216[_0x158e33(0x22f)]=_0x158e33(0x1e5),_0x5c1216))(_0x175121||{});const _0x1f7a56=_0x158e33(0x256),_0x3e3944=0xc8;_0x5dd302[_0x158e33(0x273)]=class extends _0x5095e8['RxDisposable']{constructor(_0x334206,_0x290d16,_0x3854b6,_0x32334d,_0x463b8a){var _0x2e7b1b=_0x158e33;super(),_0x58c45e(this,'_status$',new _0x1e1405[(_0x2e7b1b(0x23b))](_0x2e7b1b(0x263))),_0x58c45e(this,_0x2e7b1b(0x1d6),this['_status$'][_0x2e7b1b(0x1ce)]()),_0x58c45e(this,_0x2e7b1b(0x20b),!0x1),_0x58c45e(this,_0x2e7b1b(0x1de),null),_0x58c45e(this,'_presenter',null),(this['_unitID']=_0x334206,this[_0x2e7b1b(0x21e)]=_0x290d16,this['_configService']=_0x3854b6,this['_liveShareService']=_0x32334d,this[_0x2e7b1b(0x231)]=_0x463b8a);}get['_status'](){var _0x1d89db=_0x158e33;return this[_0x1d89db(0x23d)]['getValue']();}[_0x158e33(0x236)](){var _0x236d5b=_0x158e33,_0x2646fb;(_0x2646fb=this[_0x236d5b(0x1de)])==null||_0x2646fb[_0x236d5b(0x236)](),this[_0x236d5b(0x23d)]['next'](_0x236d5b(0x263)),this[_0x236d5b(0x23d)]['complete']();}[_0x158e33(0x2a3)](){var _0xb19f01=_0x158e33;this[_0xb19f01(0x20b)]||(this[_0xb19f01(0x20b)]=!0x0,this['_collabSession'][_0xb19f01(0x284)]['pipe'](_0x27d279[_0xb19f01(0x29d)](this[_0xb19f01(0x23f)]))[_0xb19f01(0x213)](_0x21db9b=>{var _0x133b6f=_0xb19f01;switch(_0x21db9b){case _0x35314d[_0x133b6f(0x1fb)][_0x133b6f(0x23c)]:this['_handleOffline']();break;case _0x35314d[_0x133b6f(0x1fb)][_0x133b6f(0x26c)]:this[_0x133b6f(0x1e2)]();break;}}),this[_0xb19f01(0x21e)]['event$'][_0xb19f01(0x247)](_0x27d279[_0xb19f01(0x29d)](this[_0xb19f01(0x23f)]))[_0xb19f01(0x213)](_0x434f11=>{var _0x32820e=_0xb19f01;const {eventID:_0x34dd95}=_0x434f11;switch(_0x34dd95){case _0x8cd844[_0x32820e(0x1f5)][_0x32820e(0x206)]:this[_0x32820e(0x24f)](_0x434f11);break;case _0x8cd844[_0x32820e(0x1f5)][_0x32820e(0x2a1)]:this[_0x32820e(0x257)](_0x434f11);break;case _0x8cd844[_0x32820e(0x1f5)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x8cd844[_0x32820e(0x1f5)][_0x32820e(0x260)]:this[_0x32820e(0x2a5)](_0x434f11);break;}}));}[_0x158e33(0x1e4)](){var _0x357bba=_0x158e33;this[_0x357bba(0x21e)]['send']({'eventID':_0x8cd844['CollaborationEvent'][_0x357bba(0x268)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x357bba(0x1d4)]()}},this[_0x357bba(0x1ed)]);}[_0x158e33(0x252)](){var _0x17d3d2=_0x158e33;this['_status']===_0x17d3d2(0x1e5)&&(this[_0x17d3d2(0x23d)][_0x17d3d2(0x2b8)](_0x17d3d2(0x263)),this[_0x17d3d2(0x21e)][_0x17d3d2(0x1e7)]({'eventID':_0x8cd844[_0x17d3d2(0x1f5)][_0x17d3d2(0x2b6)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x158e33(0x235)](){var _0x57350e=_0x158e33;this[_0x57350e(0x1cf)]===_0x57350e(0x28f)&&(this[_0x57350e(0x23d)][_0x57350e(0x2b8)]('following'),this[_0x57350e(0x23a)]());}[_0x158e33(0x21f)](){var _0xa64456=_0x158e33;this[_0xa64456(0x1cf)]==='following'&&this[_0xa64456(0x1ff)]();}[_0x158e33(0x24f)](_0x2c0240){var _0x434555=_0x158e33;const {presenter:_0x12822c}=_0x2c0240[_0x434555(0x25e)],_0x2abe70=this[_0x434555(0x21e)][_0x434555(0x1d4)]();this['_presenter']=_0x12822c,_0x12822c===_0x2abe70?(this[_0x434555(0x1ff)](),this[_0x434555(0x222)]()):this[_0x434555(0x1cf)]!==_0x434555(0x28f)&&(this[_0x434555(0x24d)](),this[_0x434555(0x23a)]());}[_0x158e33(0x2b4)](){var _0x4f0a9a=_0x158e33;const _0x2603e8={'eventID':_0x8cd844[_0x4f0a9a(0x1f5)][_0x4f0a9a(0x279)]};this[_0x4f0a9a(0x21e)][_0x4f0a9a(0x1e7)](_0x2603e8,this[_0x4f0a9a(0x1ed)]);}['_handleTerminate'](){var _0x1a94ad=_0x158e33;this[_0x1a94ad(0x1e0)]=null,this[_0x1a94ad(0x1cf)]!==_0x1a94ad(0x1e5)&&this['_beIdle']();}['_handleNewChangeSets'](_0x1b9117){var _0x1b8b70=_0x158e33;if(this[_0x1b8b70(0x1cf)]===_0x1b8b70(0x2af)&&this[_0x1b8b70(0x1e0)]===_0x1b9117[_0x1b8b70(0x25e)][_0x1b8b70(0x2aa)]){const _0x3ba595=_0x8cd844['parseProtocolChangeset'](_0x1b9117[_0x1b8b70(0x25e)])['mutations'][_0x1b8b70(0x285)]()[_0x1b8b70(0x1dd)](_0x40140b=>_0x40140b['id']===_0x4635cd['InsertSheetMutation']['id']);if(_0x3ba595){const _0x45283a=_0x3ba595[_0x1b8b70(0x225)][_0x1b8b70(0x226)],_0x3ce6f6=_0x3ba595[_0x1b8b70(0x225)][_0x1b8b70(0x25f)]['id'];setTimeout(()=>{var _0x54990d=_0x1b8b70;this['_commandService'][_0x54990d(0x1f9)](_0x4635cd[_0x54990d(0x25d)]['id'],{'unitId':_0x45283a,'subUnitId':_0x3ce6f6},{'fromCollab':!0x0});});}}}[_0x158e33(0x222)](){var _0x5c58e1=_0x158e33;this['_status$'][_0x5c58e1(0x2b8)](_0x5c58e1(0x1e5));const _0x1d9be5=new Map(),_0x38d734=this[_0x5c58e1(0x1de)]=new _0x5095e8['DisposableCollection']();_0x38d734['add'](_0x5095e8[_0x5c58e1(0x2bb)](()=>{var _0x373a60=_0x5c58e1;_0x1d9be5[_0x373a60(0x281)](_0x2357c9=>_0x2357c9[_0x373a60(0x207)]()),_0x1d9be5[_0x373a60(0x249)]();})),_0x38d734[_0x5c58e1(0x24a)](this[_0x5c58e1(0x231)]['onCommandExecuted'](_0x20262e=>{var _0x46babf=_0x5c58e1,_0x47327a;if(_0x20262e[_0x46babf(0x28a)]!==_0x5095e8[_0x46babf(0x290)][_0x46babf(0x286)]||!this[_0x46babf(0x211)][_0x46babf(0x1cc)](_0x20262e['id']))return;const {id:_0x8bac8d}=_0x20262e;let _0x1492fd;_0x1d9be5['has'](_0x8bac8d)?_0x1492fd=_0x1d9be5[_0x46babf(0x240)](_0x8bac8d):(_0x1492fd=new _0x1e1405[(_0x46babf(0x1f2))](),_0x1d9be5['set'](_0x8bac8d,_0x1492fd),_0x1492fd['pipe'](_0x27d279[_0x46babf(0x280)]((_0x47327a=this[_0x46babf(0x1ee)][_0x46babf(0x1d3)](_0x1f7a56))!=null?_0x47327a:_0x3e3944,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x46babf(0x213)](_0x1a95d8=>{var _0x4ad6df=_0x46babf;this[_0x4ad6df(0x21e)][_0x4ad6df(0x1e7)]({'eventID':_0x8cd844[_0x4ad6df(0x1f5)][_0x4ad6df(0x2a1)],'data':{'unitID':this[_0x4ad6df(0x1ed)],'operations':{[_0x1a95d8['id']]:{'id':_0x1a95d8['id'],'params':JSON['stringify'](_0x1a95d8['params'])}}}},this[_0x4ad6df(0x1ed)]);})),_0x1492fd[_0x46babf(0x2b8)](_0x20262e);})),this[_0x5c58e1(0x211)]['getInitialStates'](this[_0x5c58e1(0x1ed)])[_0x5c58e1(0x281)](_0xe85d01=>this[_0x5c58e1(0x21e)]['send']({'eventID':_0x8cd844[_0x5c58e1(0x1f5)][_0x5c58e1(0x2a1)],'data':{'unitID':this['_unitID'],'operations':{[_0xe85d01['id']]:{'id':_0xe85d01['id'],'params':JSON[_0x5c58e1(0x289)](_0xe85d01[_0x5c58e1(0x225)])}}}},this[_0x5c58e1(0x1ed)]));}['_stopPresenting'](){var _0x3cbf07=_0x158e33,_0x51739a;this[_0x3cbf07(0x23d)][_0x3cbf07(0x2b8)](_0x3cbf07(0x263)),(_0x51739a=this['_commandDisposable'])==null||_0x51739a[_0x3cbf07(0x236)](),this['_commandDisposable']=null;}[_0x158e33(0x23a)](){var _0x1eb934=_0x158e33,_0x570293;(_0x570293=this[_0x1eb934(0x1de)])==null||_0x570293[_0x1eb934(0x236)](),this[_0x1eb934(0x23d)][_0x1eb934(0x2b8)](_0x1eb934(0x2af));}[_0x158e33(0x258)](){var _0x3092f8=_0x158e33,_0x58f643;this[_0x3092f8(0x23d)]['next'](_0x3092f8(0x263)),(_0x58f643=this['_commandDisposable'])==null||_0x58f643[_0x3092f8(0x236)](),this[_0x3092f8(0x1de)]=null;}['_stopFollowing'](){var _0x368c3f=_0x158e33,_0x850e67;this[_0x368c3f(0x23d)][_0x368c3f(0x2b8)](_0x368c3f(0x28f)),(_0x850e67=this[_0x368c3f(0x1de)])==null||_0x850e67[_0x368c3f(0x236)]();}['_handleOperation'](_0xbaa155){var _0x116656=_0x158e33;if([_0x116656(0x1e5),_0x116656(0x28f),_0x116656(0x21b)][_0x116656(0x265)](this['_status'])||!_0xbaa155[_0x116656(0x25e)][_0x116656(0x27f)]||_0xbaa155[_0x116656(0x25e)]['presenter']===this[_0x116656(0x21e)]['getMemberID']())return;this[_0x116656(0x1cf)]===_0x116656(0x263)&&this[_0x116656(0x23a)]();const _0x54efc7=_0xbaa155[_0x116656(0x25e)][_0x116656(0x1dc)];Object['values'](_0x54efc7)['forEach'](_0x2b7259=>{var _0x3629ac=_0x116656;this['_commandService'][_0x3629ac(0x1f9)](_0x2b7259['id'],_0x2b7259[_0x3629ac(0x225)]?JSON['parse'](_0x2b7259['params']):null,{'fromCollab':!0x0});});}[_0x158e33(0x2a9)](){var _0x35762a=_0x158e33,_0x5dc49d;this[_0x35762a(0x23d)][_0x35762a(0x2b8)](_0x35762a(0x21b)),(_0x5dc49d=this[_0x35762a(0x1de)])==null||_0x5dc49d[_0x35762a(0x236)]();}['_handleOnline'](){var _0x21f334=_0x158e33;this['_status$'][_0x21f334(0x2b8)]('idle'),this[_0x21f334(0x2b4)]();}},_0x5dd302[_0x158e33(0x273)]=_0x4d39a3([_0x2f9b5a(0x2,_0x5095e8[_0x158e33(0x2b1)]),_0x2f9b5a(0x3,_0x5095e8[_0x158e33(0x25a)](_0x440482)),_0x2f9b5a(0x4,_0x5095e8[_0x158e33(0x246)])],_0x5dd302['LiveShareCoordinator']);function _0x42ea34(){var _0x2b21d6=_0x158e33;const _0x5e53ea=_0x45c7b8['useDependency'](_0x5dd302['LiveShareController']),_0x18ce14=_0x45c7b8[_0x2b21d6(0x28c)](_0x5095e8[_0x2b21d6(0x27e)]),_0x1b025a=_0x45c7b8[_0x2b21d6(0x299)](()=>_0x18ce14['getCurrentTypeOfUnit$'](_0x5095e8[_0x2b21d6(0x209)][_0x2b21d6(0x232)]),void 0x0,!0x1,[]),[_0x40f78c,_0x460dda]=_0x19ced9['useState'](null),[_0x2bb034,_0x2bbf43]=_0x19ced9[_0x2b21d6(0x274)](_0x175121['IDLE']),_0x2282ce=_0x19ced9[_0x2b21d6(0x230)](null);return _0x19ced9['useEffect'](()=>(_0x1b025a&&_0x5e53ea[_0x2b21d6(0x271)](_0x1b025a[_0x2b21d6(0x21d)]())[_0x2b21d6(0x250)](_0x2ab4cf=>{var _0x6a363a=_0x2b21d6;_0x460dda(_0x2ab4cf),_0x2282ce[_0x6a363a(0x266)]=_0x2ab4cf[_0x6a363a(0x1d6)]['subscribe'](_0x3fcfe6=>{_0x2bbf43(_0x3fcfe6);});}),()=>{var _0x4a6852=_0x2b21d6,_0x40d9b1;(_0x40d9b1=_0x2282ce[_0x4a6852(0x266)])==null||_0x40d9b1[_0x4a6852(0x1d2)](),_0x2282ce[_0x4a6852(0x266)]=null;}),[_0x1b025a,_0x5e53ea]),_0x40f78c?_0xaab32b[_0x2b21d6(0x1f3)](_0xb8c565[_0x2b21d6(0x2a2)],{'align':_0x2b21d6(0x1e3),'disabled':_0x2bb034===_0x175121[_0x2b21d6(0x23c)],'className':_0x2b21d6(0x1ec),'overlay':_0xaab32b[_0x2b21d6(0x1f3)](_0x20afe8,{'status':_0x2bb034,'coordinator':_0x40f78c}),'children':_0xaab32b[_0x2b21d6(0x1f3)](_0x2b21d6(0x210),{'className':_0xb8c565[_0x2b21d6(0x2a4)](_0x2b21d6(0x22a),{'univer-cursor-not-allowed':_0x2bb034===_0x175121[_0x2b21d6(0x23c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2bb034!==_0x175121[_0x2b21d6(0x23c)]}),'type':_0x2b21d6(0x210),'children':_0xaab32b['jsx'](_0x28cd68,{'className':_0x2b21d6(0x24c)})})}):null;}function _0x20afe8(_0x892d0b){var _0x3cc1a0=_0x158e33;const {status:_0x178d2e,coordinator:_0x3b03a0}=_0x892d0b;switch(_0x178d2e){case _0x175121[_0x3cc1a0(0x26e)]:return _0xaab32b[_0x3cc1a0(0x1f3)](_0x1e5beb,{'coordinator':_0x3b03a0});case _0x175121['FOLLOWING']:return _0xaab32b[_0x3cc1a0(0x1f3)](_0xd24d26,{'coordinator':_0x3b03a0});case _0x175121[_0x3cc1a0(0x270)]:return _0xaab32b[_0x3cc1a0(0x1f3)](_0x68a8ca,{'coordinator':_0x3b03a0});case _0x175121['OFFLINE']:return _0xaab32b['jsx'](_0x341c9e,{});case _0x175121[_0x3cc1a0(0x22f)]:return _0xaab32b[_0x3cc1a0(0x1f3)](_0x3fa766,{'coordinator':_0x3b03a0});default:return null;}}function _0x1e5beb(_0x24c527){var _0x472f2a=_0x158e33;const {coordinator:_0x36dbe6}=_0x24c527;return _0xaab32b[_0x472f2a(0x1f7)](_0xaab32b[_0x472f2a(0x1e9)],{'children':[_0xaab32b['jsx'](_0x472f2a(0x234),{'className':_0x472f2a(0x1db),'children':_0x472f2a(0x24b)}),_0xaab32b[_0x472f2a(0x1f3)](_0xb8c565['Button'],{'onClick':()=>_0x36dbe6[_0x472f2a(0x1e4)](),'children':'Start'})]});}function _0xd24d26(_0x1e2e91){var _0x56cf7e=_0x158e33;const {coordinator:_0x3909d1}=_0x1e2e91;return _0xaab32b[_0x56cf7e(0x1f7)](_0xaab32b[_0x56cf7e(0x1e9)],{'children':[_0xaab32b[_0x56cf7e(0x1f3)](_0x56cf7e(0x234),{'className':_0x56cf7e(0x1db),'children':'You\x27re\x20following\x20the\x20presenter'}),_0xaab32b['jsx'](_0xb8c565[_0x56cf7e(0x214)],{'onClick':()=>_0x3909d1[_0x56cf7e(0x21f)](),'children':_0x56cf7e(0x22b)})]});}function _0x68a8ca(_0x421bcf){var _0x188b99=_0x158e33;const {coordinator:_0x574986}=_0x421bcf;return _0xaab32b['jsxs'](_0xaab32b['Fragment'],{'children':[_0xaab32b[_0x188b99(0x1f3)](_0x188b99(0x234),{'className':_0x188b99(0x1db),'children':_0x188b99(0x1f0)}),_0xaab32b[_0x188b99(0x1f3)](_0xb8c565[_0x188b99(0x214)],{'variant':'text','onClick':()=>_0x574986['startFollowing'](),'children':'Start\x20following'})]});}function _0x3fa766(_0x25531e){var _0x2d6cc8=_0x158e33;const {coordinator:_0x1d95b8}=_0x25531e;return _0xaab32b[_0x2d6cc8(0x1f7)](_0xaab32b['Fragment'],{'children':[_0xaab32b[_0x2d6cc8(0x1f3)](_0x2d6cc8(0x234),{'className':_0x2d6cc8(0x1db),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xaab32b[_0x2d6cc8(0x1f3)](_0xb8c565[_0x2d6cc8(0x214)],{'variant':_0x2d6cc8(0x20a),'onClick':()=>_0x1d95b8[_0x2d6cc8(0x252)](),'children':_0x2d6cc8(0x288)})]});}function _0x341c9e(){var _0x4385e6=_0x158e33;return _0xaab32b[_0x4385e6(0x1f3)](_0xaab32b[_0x4385e6(0x1e9)],{'children':'You\x27are\x20offline.'});}var _0x2bccdd=Object['getOwnPropertyDescriptor'],_0x13d216=(_0x412bb6,_0x21a3a6,_0x248e89,_0x4f2a16)=>{var _0x37c589=_0x158e33;for(var _0x49fd1b=_0x4f2a16>0x1?void 0x0:_0x4f2a16?_0x2bccdd(_0x21a3a6,_0x248e89):_0x21a3a6,_0x1a80be=_0x412bb6[_0x37c589(0x1e6)]-0x1,_0x252910;_0x1a80be>=0x0;_0x1a80be--)(_0x252910=_0x412bb6[_0x1a80be])&&(_0x49fd1b=_0x252910(_0x49fd1b)||_0x49fd1b);return _0x49fd1b;},_0x4f8886=(_0x5c89f1,_0x14b73b)=>(_0x34703f,_0x4165c6)=>_0x14b73b(_0x34703f,_0x4165c6,_0x5c89f1);_0x5dd302[_0x158e33(0x1d9)]=class extends _0x5095e8[_0x158e33(0x276)]{constructor(_0x100860,_0x3dea49){var _0x580260=_0x158e33;super(),this[_0x580260(0x1d5)]=_0x100860,this[_0x580260(0x2b5)]=_0x3dea49,this['_mountLiveShare']();}[_0x158e33(0x1ef)](){var _0x32c2a7=_0x158e33;this[_0x32c2a7(0x25c)](this['_uiPartsService']['registerComponent'](_0x45c7b8[_0x32c2a7(0x29a)][_0x32c2a7(0x218)],()=>_0x45c7b8[_0x32c2a7(0x202)](_0x42ea34,this[_0x32c2a7(0x1d5)])));}},_0x5dd302[_0x158e33(0x1d9)]=_0x13d216([_0x4f8886(0x0,_0x5095e8[_0x158e33(0x25a)](_0x5095e8[_0x158e33(0x227)])),_0x4f8886(0x1,_0x45c7b8['IUIPartsService'])],_0x5dd302[_0x158e33(0x1d9)]);const _0x4a81c0=_0x158e33(0x27b),_0x3ca35a={};var _0x524574=Object[_0x158e33(0x29c)],_0x3a795f=(_0x11f10d,_0x22679b,_0x2a9407,_0x20d830)=>{var _0x19cd9e=_0x158e33;for(var _0xdb5b1f=_0x20d830>0x1?void 0x0:_0x20d830?_0x524574(_0x22679b,_0x2a9407):_0x22679b,_0x16f56b=_0x11f10d[_0x19cd9e(0x1e6)]-0x1,_0x1f7b41;_0x16f56b>=0x0;_0x16f56b--)(_0x1f7b41=_0x11f10d[_0x16f56b])&&(_0xdb5b1f=_0x1f7b41(_0xdb5b1f)||_0xdb5b1f);return _0xdb5b1f;},_0x533b7b=(_0x5ddff4,_0xade315)=>(_0x115dea,_0x17c1d1)=>_0xade315(_0x115dea,_0x17c1d1,_0x5ddff4);let _0x2f1734=class extends _0x5095e8['Disposable']{constructor(_0xd5bfbe){var _0x26faa5=_0x158e33;super(),this[_0x26faa5(0x211)]=_0xd5bfbe,this['_init']();}[_0x158e33(0x20b)](){var _0x35d724=_0x158e33;[_0xe57dd[_0x35d724(0x277)]['id'],_0xe57dd[_0x35d724(0x253)]['id'],_0x4635cd['SetWorksheetActiveOperation']['id']][_0x35d724(0x281)](_0x5b825b=>{var _0x41513b=_0x35d724;this[_0x41513b(0x25c)](this['_liveShareService'][_0x41513b(0x1d0)](_0x5b825b));});}};_0x2f1734=_0x3a795f([_0x533b7b(0x0,_0x5095e8[_0x158e33(0x25a)](_0x440482))],_0x2f1734);var _0x3ded40=Object['defineProperty'],_0x2441dd=Object['getOwnPropertyDescriptor'],_0x46da9b=(_0x4c1887,_0x3bef4b,_0x1eb54c)=>_0x3bef4b in _0x4c1887?_0x3ded40(_0x4c1887,_0x3bef4b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1eb54c}):_0x4c1887[_0x3bef4b]=_0x1eb54c,_0x31ae00=(_0x13fec2,_0x5a911e,_0x279f2d,_0xa9fdc)=>{var _0x43d600=_0x158e33;for(var _0x3e93f9=_0xa9fdc>0x1?void 0x0:_0xa9fdc?_0x2441dd(_0x5a911e,_0x279f2d):_0x5a911e,_0x1ba83a=_0x13fec2[_0x43d600(0x1e6)]-0x1,_0x1fbb35;_0x1ba83a>=0x0;_0x1ba83a--)(_0x1fbb35=_0x13fec2[_0x1ba83a])&&(_0x3e93f9=_0x1fbb35(_0x3e93f9)||_0x3e93f9);return _0x3e93f9;},_0x53d6b7=(_0x58c40b,_0x4574ea)=>(_0x17f1d5,_0x5d9f66)=>_0x4574ea(_0x17f1d5,_0x5d9f66,_0x58c40b),_0xf4895b=(_0x1e7c1d,_0x331211,_0x25a4a9)=>_0x46da9b(_0x1e7c1d,typeof _0x331211!=_0x158e33(0x269)?_0x331211+'':_0x331211,_0x25a4a9);const _0x118914=_0x158e33(0x267);_0x5dd302[_0x158e33(0x1d1)]=class extends _0x5095e8[_0x158e33(0x27d)]{constructor(_0x580066=_0x3ca35a,_0x5a0dc4,_0x4d6199){var _0x1572a6=_0x158e33;super(),this[_0x1572a6(0x219)]=_0x580066,this[_0x1572a6(0x1d5)]=_0x5a0dc4,this['_configService']=_0x4d6199;const {..._0x260d83}=_0x5095e8[_0x1572a6(0x20e)]({},_0x3ca35a,this['_config']);this[_0x1572a6(0x1ee)][_0x1572a6(0x229)](_0x4a81c0,_0x260d83);}[_0x158e33(0x292)](){var _0x3b6ae0=_0x158e33;_0x5095e8['registerDependencies'](this['_injector'],_0x5095e8['mergeOverrideWithDependencies']([[_0x440482],[_0x5dd302[_0x3b6ae0(0x216)]],[_0x2f1734],[_0x5dd302[_0x3b6ae0(0x1d9)]]],this['_config'][_0x3b6ae0(0x2a7)])),_0x5095e8['touchDependencies'](this['_injector'],[[_0x2f1734]]);}[_0x158e33(0x261)](){var _0x6c567a=_0x158e33;_0x5095e8['touchDependencies'](this['_injector'],[[_0x5dd302[_0x6c567a(0x1d9)]]]);}},_0xf4895b(_0x5dd302['UniverLiveSharePlugin'],'type',_0x5095e8[_0x158e33(0x209)][_0x158e33(0x2a6)]),_0xf4895b(_0x5dd302[_0x158e33(0x1d1)],_0x158e33(0x224),_0x118914),_0x5dd302[_0x158e33(0x1d1)]=_0x31ae00([_0x5095e8['DependentOn'](_0x35314d['UniverCollaborationClientPlugin']),_0x53d6b7(0x1,_0x5095e8[_0x158e33(0x25a)](_0x5095e8['Injector'])),_0x53d6b7(0x2,_0x5095e8[_0x158e33(0x2b1)])],_0x5dd302[_0x158e33(0x1d1)]),_0x5dd302[_0x158e33(0x259)]=_0x42ea34,_0x5dd302[_0x158e33(0x1ea)]=_0x440482,_0x5dd302['LiveShareStatus']=_0x175121,Object['defineProperty'](_0x5dd302,Symbol[_0x158e33(0x243)],{'value':_0x158e33(0x242)});}));function _0x28e1(){var _0x3ab1f8=['UniverLiveSharePlugin','unsubscribe','getConfig','getMemberID','_injector','status$','className','_sharedOperations','DesktopLiveShareController','getOwnPropertySymbols','univer-mb-3\x20univer-w-full\x20univer-text-sm','operations','find','_commandDisposable','UniverIcon','_presenter','RxDisposable','_handleOnline','end','tryStartPresenting','presenting','length','send','_startLiveShareCoordinator','Fragment','LiveShareService','replace','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','_configService','_mountLiveShare','You\x27re\x20not\x20following\x20the\x20presenter','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','Subject','jsx','currentColor','CollaborationEvent','idSuffix','jsxs','tag','executeCommand','toString','SessionStatus','1312qrgICG','1em','map','_stopFollowing','url(#$1','4525218xAjedc','connectInjector','exports','indexOf','univerjs-icon\x20univerjs-icon-','LIVESHARE_NEW_HOST','complete','FOLLOWING','UniverInstanceType','default','_init','UniverCore','path','merge','hasOwnProperty','button','_liveShareService','11OpcLXD','subscribe','Button','createElement','LiveShareController','children','HEADER_MENU','_config','evenodd','offline','1EQskUF','getUnitId','_collabSession','stopFollowing','call','attrs','_startPresenting','substring','pluginName','params','unitId','Injector','defIds','setConfig','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Stop\x20following','React','1916878KHeCti','xlink:href','PRESENTING','useRef','_commandService','UNIVER_SHEET','5582568vWQzcs','div','startFollowing','dispose','729148vXKOII','@univerjs/core','live-share-icon','_startFollowing','BehaviorSubject','OFFLINE','_status$','defs','dispose$','get','requireSession','Module','toStringTag','entries','defineProperty','ICommandService','pipe','react/jsx-runtime','clear','add','Present\x20this\x20document','univer-size-4','_stopPresenting','51604sxyyKC','_handleNewHost','then','delete','stopPresenting','SetScrollOperation','UniverProCollaboration','@univerjs/ui','SAME_OPERATION_SHARE_INTERVAL','_handleOperation','_beIdle','LiveShare','Inject','27831670rgOAnJ','disposeWithMe','SetWorksheetActiveOperation','data','sheet','NEW_CHANGESETS','onRendered','extend','idle','fill','includes','current','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_REQUEST_HOST','symbol','@univerjs-pro/collaboration-client','3639081rgJLcq','ONLINE','_reporters','IDLE','5luCwHL','NOT_FOLLOWING','getLiveShareCoordinator','CollaborationSessionService','LiveShareCoordinator','useState','apply','Disposable','SetZoomRatioOperation','object','LIVESHARE_FETCH_OPERATIONS','forwardRef','live-share.config','LiveShareIcon','Plugin','IUniverInstanceService','presenter','throttleTime','forEach','http://www.w3.org/2000/svg','propertyIsEnumerable','sessionStatus$','reverse','OPERATION','react','Stop\x20presenting','stringify','type','UniverProCollaborationClient','useDependency','_univerInstanceService','UniverUi','not-following','CommandType','mask','onStarting','assign','UniverSheets','getTypeOfUnitAdded$','prototype','function','UniverDesign','useObservable','BuiltInUIPart','0\x200\x2017\x2017','getOwnPropertyDescriptor','takeUntil','rxjs','icon','colorChannel1','LIVESHARE_OPERATION','Dropdown','init','clsx','_handleNewChangeSets','UNIVER_UNKNOWN','override','has','_handleOffline','memberID','from','string','displayName','trim','following','svg','IConfigService','_entities','amd','_fetchOperations','_uiPartsService','LIVESHARE_TERMINATE','UniverProLiveShare','next','concat','set','toDisposable','use','_collabSessionService','shouldShareOperation','UniverSheetsUi','asObservable','_status','registerSharedOperation'];_0x28e1=function(){return _0x3ab1f8;};return _0x28e1();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.6",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.10.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/ui": "0.10.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.4",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.10.4",
|
|
52
|
+
"@univerjs/core": "0.10.4",
|
|
53
|
+
"@univerjs/design": "0.10.4",
|
|
54
|
+
"@univerjs/sheets": "0.10.4",
|
|
55
|
+
"@univerjs/ui": "0.10.4",
|
|
56
|
+
"@univerjs/sheets-ui": "0.10.4"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^7.0.6",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs-infra/shared": "0.10.
|
|
66
|
+
"@univerjs-infra/shared": "0.10.4",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|